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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
381bb6c4e8dac9d9dd84692b34e68c17bcff6c29 | 19,861 | cpp | C++ | samples/WTL10/General/Events/MainDlg_in.cpp | TimoKunze/ProgressBarControl | c844589b85190c7fc77b3fd1637bcf0f4f9ce5bb | [
"MIT"
] | 1 | 2019-12-12T08:13:42.000Z | 2019-12-12T08:13:42.000Z | samples/WTL10/General/Events/MainDlg_in.cpp | TimoKunze/ProgressBarControl | c844589b85190c7fc77b3fd1637bcf0f4f9ce5bb | [
"MIT"
] | null | null | null | samples/WTL10/General/Events/MainDlg_in.cpp | TimoKunze/ProgressBarControl | c844589b85190c7fc77b3fd1637bcf0f4f9ce5bb | [
"MIT"
] | 1 | 2021-12-09T18:21:45.000Z | 2021-12-09T18:21:45.000Z | // MainDlg.cpp : implementation of the CMainDlg class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "MainDlg.h"
#include ".\maindlg.h"
BOOL CMainDlg::PreTranslateMessage(MSG* pMsg)
{
return CWindow::IsDialogMessage(pMsg);
}
LRES... | 28.951895 | 210 | 0.686622 | TimoKunze |
38237c4e1fa92d37b5d9db25e1e62eafc3c6b50d | 313 | cpp | C++ | DEV/src/form_pclselectedfeatures.cpp | hsean/PCL-GUI | 9bbaea809a6b01e51292aad914ded77761b8bf66 | [
"MIT"
] | null | null | null | DEV/src/form_pclselectedfeatures.cpp | hsean/PCL-GUI | 9bbaea809a6b01e51292aad914ded77761b8bf66 | [
"MIT"
] | null | null | null | DEV/src/form_pclselectedfeatures.cpp | hsean/PCL-GUI | 9bbaea809a6b01e51292aad914ded77761b8bf66 | [
"MIT"
] | 1 | 2021-01-31T11:28:18.000Z | 2021-01-31T11:28:18.000Z | #include "form_pclselectedfeatures.h"
#include "ui_form_pclselectedfeatures.h"
Form_pclSelectedFeatures::Form_pclSelectedFeatures(QWidget *parent) :
QWidget(parent),
ui(new Ui::Form_pclSelectedFeatures)
{
ui->setupUi(this);
}
Form_pclSelectedFeatures::~Form_pclSelectedFeatures()
{
delete ui;
}
| 20.866667 | 69 | 0.769968 | hsean |
382657ac454bce0e6fef529adf5ce3299e3f7e28 | 1,241 | cpp | C++ | src/win32/ResourceWin32.cpp | Prin-E/PangPang | 47bc3f9e28ee677b1d0abbaf2a5ba534347c74a9 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/win32/ResourceWin32.cpp | Prin-E/PangPang | 47bc3f9e28ee677b1d0abbaf2a5ba534347c74a9 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/win32/ResourceWin32.cpp | Prin-E/PangPang | 47bc3f9e28ee677b1d0abbaf2a5ba534347c74a9 | [
"BSL-1.0",
"MIT"
] | null | null | null | #include "Common.h"
#include "resource1.h"
#include "ResourceWin32.h"
#include "zip.h"
#include "unzip.h"
namespace PangPang
{
ResourceWin32::ResourceWin32(std::shared_ptr<void> ptr, size_t size)
: holder(ptr), ptr(ptr.get()), size(size)
{
}
ResourceWin32::~ResourceWin32()
{
}
ResourcePtr ResourceWin32::Open(const... | 22.563636 | 89 | 0.693795 | Prin-E |
3827ba673f32b1ad140ea47e02b225e9f90ddc61 | 4,776 | hpp | C++ | source/CompiletimeMath.hpp | Sidelobe/HyperBuffer | 4aa7abc43f5bfae0adb18f7497e3490083ede5de | [
"MIT"
] | 5 | 2020-04-20T13:02:22.000Z | 2021-04-14T19:56:42.000Z | source/CompiletimeMath.hpp | Sidelobe/HyperBuffer | 4aa7abc43f5bfae0adb18f7497e3490083ede5de | [
"MIT"
] | 10 | 2020-04-03T11:38:10.000Z | 2022-01-08T12:53:44.000Z | source/CompiletimeMath.hpp | Sidelobe/HyperBuffer | 4aa7abc43f5bfae0adb18f7497e3490083ede5de | [
"MIT"
] | null | null | null | //
// ╦ ╦┬ ┬┌─┐┌─┐┬─┐ ╔╗ ┬ ┬┌─┐┌─┐┌─┐┬─┐
// ╠═╣└┬┘├─┘├┤ ├┬┘ ╠╩╗│ │├┤ ├┤ ├┤ ├┬┘
// ╩ ╩ ┴ ┴ └─┘┴└─ ╚═╝└─┘└ └ └─┘┴└─
//
// © 2020 Lorenz Bucher - all rights reserved
#pragma once
#include <type_traits>
namespace slb
{
// MARK: - Variadic arguments / parameter pack helpers -- [resolved at compile time!]
names... | 35.117647 | 122 | 0.667504 | Sidelobe |
3828fab5c76d0dd4323e81e3bd07407d145d687d | 1,715 | cpp | C++ | GeeksForGeeks/Median_in_sorted_rowwise_matrix/Solution.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 42 | 2021-09-26T18:02:52.000Z | 2022-03-15T01:52:15.000Z | GeeksForGeeks/Median_in_sorted_rowwise_matrix/Solution.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 404 | 2021-09-24T19:55:10.000Z | 2021-11-03T05:47:47.000Z | GeeksForGeeks/Median_in_sorted_rowwise_matrix/Solution.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 140 | 2021-09-22T20:50:04.000Z | 2022-01-22T16:59:09.000Z | //Question Statement:
//Given a row wise sorted matrix of size RxC where R and C are always odd, find the median of the matrix.
#include <iostream>
#include <vector>
using namespace std;
int median(vector<vector<int>> &matrix, int r, int c)
{
int lowval = matrix[0][0];
// smallest value in matrix i.e first e... | 26.796875 | 105 | 0.504373 | Rupali409 |
382d6aa1f33d0f101a6bdf3de01923a727725251 | 151 | hpp | C++ | src/solid/single_resp/lion.hpp | loic-yvonnet/solid-and-fast-cpp | 33bebcd70efee35bf3f3341984704d023a98147b | [
"MIT"
] | null | null | null | src/solid/single_resp/lion.hpp | loic-yvonnet/solid-and-fast-cpp | 33bebcd70efee35bf3f3341984704d023a98147b | [
"MIT"
] | null | null | null | src/solid/single_resp/lion.hpp | loic-yvonnet/solid-and-fast-cpp | 33bebcd70efee35bf3f3341984704d023a98147b | [
"MIT"
] | null | null | null | #ifndef LION_HPP
#define LION_HPP
class lion {
public:
constexpr void roar() const noexcept;
constexpr void sleep() const noexcept;
};
#endif | 15.1 | 42 | 0.721854 | loic-yvonnet |
382f04794165679c0f125eb36244f50a741a5acc | 1,116 | cpp | C++ | demos/tutorial/2D_mesh.cpp | tbellotti/samurai | b10fa2115d69eb184609103579ba433ff09891df | [
"BSD-3-Clause"
] | 13 | 2021-01-07T19:23:42.000Z | 2022-01-26T13:07:41.000Z | demos/tutorial/2D_mesh.cpp | gouarin/samurai | 7ae877997e8b9bdb85b84acaabb3c0483ff78689 | [
"BSD-3-Clause"
] | 1 | 2021-07-04T17:30:47.000Z | 2021-07-04T17:30:47.000Z | demos/tutorial/2D_mesh.cpp | gouarin/samurai | 7ae877997e8b9bdb85b84acaabb3c0483ff78689 | [
"BSD-3-Clause"
] | 2 | 2021-01-07T15:54:49.000Z | 2021-02-24T13:11:42.000Z | // Copyright 2021 SAMURAI TEAM. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <iostream>
#include <samurai/cell_array.hpp>
#include <samurai/cell_list.hpp>
#include <samurai/hdf5.hpp>
int main()
{
constexpr std::size_t dim = ... | 25.953488 | 53 | 0.567204 | tbellotti |
383f038347a2d6d06e8806409f011a05bce3abf6 | 587 | cpp | C++ | OnlineJudgeUVa/C++/10xxx/10038 - Jolly Jumpers/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | OnlineJudgeUVa/C++/10xxx/10038 - Jolly Jumpers/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | OnlineJudgeUVa/C++/10xxx/10038 - Jolly Jumpers/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
using namespace std;
int main(){
int n, actual, next;
set<int> myset;
while(cin >> n){
myset.clear();
cin >> actual;
for(int i=1; i < n; i++){
cin >> next;
myset.insert(max(actual, next)-min(actual, next));
// cout << max(actual, next)-min(actual... | 18.34375 | 61 | 0.502555 | DVRodri8 |
38486a02183a237de40b576e19f59e08c42735c3 | 1,264 | cpp | C++ | online_judges/cf/gym/101572/e/e.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | 2 | 2018-02-20T14:44:57.000Z | 2018-02-20T14:45:03.000Z | online_judges/cf/gym/101572/e/e.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | online_judges/cf/gym/101572/e/e.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
// By Miguel Ortiz https://github.com/miaortizma
#define F first
#define S second
typedef pair<int, int> pi;
typedef pair<int, pi> pp;
typedef long long ll;
const int N = 510;
int M[N][N];
bool vis[N][N];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
int... | 18.865672 | 48 | 0.449367 | miaortizma |
384963d30ba5daecdeb9e8ab3587fef1a501f680 | 815 | cpp | C++ | lab/experiment10.cpp | kavya98527/Data-Structures | e654bc3d8304b04bc2dc933d025fdddaa95be8d1 | [
"Unlicense"
] | null | null | null | lab/experiment10.cpp | kavya98527/Data-Structures | e654bc3d8304b04bc2dc933d025fdddaa95be8d1 | [
"Unlicense"
] | null | null | null | lab/experiment10.cpp | kavya98527/Data-Structures | e654bc3d8304b04bc2dc933d025fdddaa95be8d1 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
int merge(int *A, int M, int *B, int N, int *C)
{ //Enter your code here
int p = 0;
int q = 0;
int k = 0;
int c=0;
while ( p < M && q < N) {
if (A[p] < B[q])
{
C[k++] = A[p++];
c++;
}
else {... | 18.953488 | 48 | 0.316564 | kavya98527 |
384dc5b17551ac9e43a0ac60b7e00874588869cc | 2,704 | hpp | C++ | src/nark/config.hpp | rockeet/nark-bone | 11263ff5a192c85e4a2776aac1096d01138483d2 | [
"BSD-3-Clause"
] | 18 | 2015-02-12T04:41:22.000Z | 2018-08-22T07:44:13.000Z | src/nark/config.hpp | rockeet/nark-bone | 11263ff5a192c85e4a2776aac1096d01138483d2 | [
"BSD-3-Clause"
] | null | null | null | src/nark/config.hpp | rockeet/nark-bone | 11263ff5a192c85e4a2776aac1096d01138483d2 | [
"BSD-3-Clause"
] | 13 | 2015-05-24T12:24:46.000Z | 2021-01-05T10:59:40.000Z | #ifndef __nark_config_h__
#define __nark_config_h__
#if defined(_MSC_VER)
# pragma once
#ifndef _CRT_SECURE_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS
#endif
#ifndef _CRT_NONSTDC_NO_WARNINGS
#define _CRT_NONSTDC_NO_WARNINGS
#endif
#ifndef _SCL_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#endif
# if defi... | 25.271028 | 85 | 0.712648 | rockeet |
38511e6cb48ff64e83c4db840050e079c830b70c | 34 | hpp | C++ | src/boost_fusion_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/tuple.hpp>
| 17 | 33 | 0.764706 | miathedev |
ee30551f87e571f2717972f8037039d31654301d | 597 | cpp | C++ | 11428.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 11428.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 11428.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int n,p,m,i,j;
while(1)
{
scanf("%d",&n);
if(n==0)
break;
p=0;
m=sqrt(n);
for(i=2;i<=m;i++)
{
for(j=1;j<i;j++)
{
if((i*i*i)-(j... | 17.558824 | 42 | 0.304858 | abdullah1107 |
ee36d629fecfb0fa9f5f8f7fdb0637bd2b4e8757 | 2,253 | cpp | C++ | src/xalanc/XercesParserLiaison/Deprecated/XercesToXalanNodeMap.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/XercesParserLiaison/Deprecated/XercesToXalanNodeMap.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/XercesParserLiaison/Deprecated/XercesToXalanNodeMap.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 19.763158 | 81 | 0.711052 | ulisesten |
ee38f47120067dbc57b92a3438ac2d54a575ba82 | 5,769 | cc | C++ | internal/ceres/jet_traits_test.cc | siga-cx/ceres-solver | 93511bfdc92e9ad56caf80f87163a01ea406d36b | [
"Apache-2.0"
] | null | null | null | internal/ceres/jet_traits_test.cc | siga-cx/ceres-solver | 93511bfdc92e9ad56caf80f87163a01ea406d36b | [
"Apache-2.0"
] | null | null | null | internal/ceres/jet_traits_test.cc | siga-cx/ceres-solver | 93511bfdc92e9ad56caf80f87163a01ea406d36b | [
"Apache-2.0"
] | 1 | 2022-03-26T13:33:51.000Z | 2022-03-26T13:33:51.000Z | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2022 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... | 46.902439 | 80 | 0.716762 | siga-cx |
ee3a7ba1996dd56c43bd842f20b2668cd915880e | 4,878 | cpp | C++ | src/test/scheduler_tests.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/test/scheduler_tests.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/test/scheduler_tests.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 3 | 2019-01-24T07:48:15.000Z | 2021-06-11T13:34:44.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2012-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <ran... | 29.209581 | 138 | 0.650062 | yinchengtsinghua |
ee3eef79db49534e63e2cfdb3e33ec3e5d51d243 | 1,777 | hpp | C++ | utils/channel/output.hpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | utils/channel/output.hpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | utils/channel/output.hpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | #pragma once
#include <utils/channel/ochannel.hpp>
namespace utils::channel {
template<class T, class Iterator = T*>
class output
{
Iterator begin_;
Iterator end_;
public:
output(Iterator begin, Iterator end) noexcept(std::is_nothrow_move_constructible_v<Iterator>)
: begin_(std::move(begin))
, end_(std:... | 24.680556 | 154 | 0.689927 | hardened-steel |
ee47712daea13b46a342a7aaa792cf16e426733b | 623 | cpp | C++ | UVA10105.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA10105.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA10105.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <unordered_map>
#include <utility>
using namespace std;
unordered_map<int, unordered_map<int, long long> > comb;
long long proc(int n, int m) {
if (m == 0 || m == n) return 1;
if (m < 0 || m > n) return 0;
if (comb[n][m] == 0) comb[n][m] = proc(n-1, m-1) + proc(n-1, m);
ret... | 22.25 | 68 | 0.467095 | MaSteve |
ee47f24487ac0e2de9f70e90e0d5a00c83d3e63a | 26,368 | cc | C++ | arcane/src/arcane/impl/SequentialParallelMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/impl/SequentialParallelMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/impl/SequentialParallelMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 32.038882 | 99 | 0.595912 | JeromeDuboisPro |
ee556cc9be253e5df345dabc7c8a9e6fa457855d | 751 | hpp | C++ | eigen_utilities/include/eigen_utilities/operator_utilities.hpp | noelc-s/amber_developer_stack | dda28b1b79f8df6eb56c41a0e1b5c1d167631176 | [
"MIT"
] | 1 | 2021-11-18T04:36:22.000Z | 2021-11-18T04:36:22.000Z | eigen_utilities/include/eigen_utilities/operator_utilities.hpp | noelc-s/amber_developer_stack | dda28b1b79f8df6eb56c41a0e1b5c1d167631176 | [
"MIT"
] | null | null | null | eigen_utilities/include/eigen_utilities/operator_utilities.hpp | noelc-s/amber_developer_stack | dda28b1b79f8df6eb56c41a0e1b5c1d167631176 | [
"MIT"
] | 1 | 2021-08-04T21:22:48.000Z | 2021-08-04T21:22:48.000Z | /**
* @author Eric Cousineau <eacousineau@gmail.com>, member of Dr. Aaron
* Ames's AMBER Lab
*/
#ifndef EIGEN_OPERATOR_UTILITIES_H
#define EIGEN_OPERTAOR_UTILITIES_h
#include <Eigen/Dense>
namespace Eigen
{
template<typename Derived>
Eigen::MatrixBase<Derived>& operator-=(Eigen::MatrixBase<Derived> &X, const ... | 24.225806 | 104 | 0.696405 | noelc-s |
ee5b96b725b1f9ce5813d7e6e897075f8f54fc31 | 21,485 | cpp | C++ | src/rtcmix/intraverse.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 40 | 2015-01-14T20:52:42.000Z | 2022-03-09T00:50:45.000Z | src/rtcmix/intraverse.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 20 | 2015-01-26T19:02:59.000Z | 2022-01-30T18:00:39.000Z | src/rtcmix/intraverse.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 14 | 2015-01-14T20:52:43.000Z | 2021-09-24T02:24:32.000Z | /* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include <RTcmix.h>
#include "prototypes.h"
#include <pthread.h>
#ifndef EMBEDDED
#include <iostream>
#endif
#include... | 28.38177 | 120 | 0.614708 | ijc8 |
ee5c3ab28778cfd5da7877c64185c8948c48b7c0 | 2,314 | cpp | C++ | cl_dll/debug_wireframe_movement.cpp | ijaazahmed03/In-The-80s | ea06026ed04b263fd02e8376be42361b33043a2f | [
"Unlicense"
] | null | null | null | cl_dll/debug_wireframe_movement.cpp | ijaazahmed03/In-The-80s | ea06026ed04b263fd02e8376be42361b33043a2f | [
"Unlicense"
] | null | null | null | cl_dll/debug_wireframe_movement.cpp | ijaazahmed03/In-The-80s | ea06026ed04b263fd02e8376be42361b33043a2f | [
"Unlicense"
] | null | null | null | #include "wrect.h"
#include "cl_dll.h"
#include "cl_util.h"
#include "triangleapi.h"
#include "r_studioint.h"
#include "com_model.h"
#include "debug_wireframe.h"
#include "debug_wireframe_utils.h"
#include "pm_defs.h"
#include <vector>
/*
===========================================
Debug wirefram... | 20.846847 | 76 | 0.655575 | ijaazahmed03 |
ee666c579abb743ec614cd6f6a0de494449ac99b | 3,123 | cpp | C++ | net/udp_connection.cpp | yplusplus/cube | 948860e2de07d7bad48a2f2d33a159aa5c1020a8 | [
"MIT"
] | 18 | 2016-10-26T07:06:24.000Z | 2021-09-16T01:53:31.000Z | net/udp_connection.cpp | yplusplus/cube | 948860e2de07d7bad48a2f2d33a159aa5c1020a8 | [
"MIT"
] | 2 | 2017-07-15T11:37:34.000Z | 2017-07-15T12:02:09.000Z | net/udp_connection.cpp | yplusplus/cube | 948860e2de07d7bad48a2f2d33a159aa5c1020a8 | [
"MIT"
] | 3 | 2016-10-26T12:41:17.000Z | 2017-09-05T12:18:24.000Z | #include <sys/types.h>
#include <sys/socket.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "udp_connection.h"
#include "event_loop.h"
#include "eventor.h"
#include "socket.h"
#include "base/strings.h"
namespace cube {
namespace net {
UdpConnection::UdpConnection(EventLoop *event_loop,
... | 26.025 | 169 | 0.60903 | yplusplus |
ee6c8187aa0d11d63723453fb26707eb775485c9 | 2,198 | cpp | C++ | CXXPRIMER/ch02/main.cpp | Clelo4/OS_study | cf12a4721c3c9c338f91c2cdf069ac3b49b60522 | [
"MIT"
] | null | null | null | CXXPRIMER/ch02/main.cpp | Clelo4/OS_study | cf12a4721c3c9c338f91c2cdf069ac3b49b60522 | [
"MIT"
] | null | null | null | CXXPRIMER/ch02/main.cpp | Clelo4/OS_study | cf12a4721c3c9c338f91c2cdf069ac3b49b60522 | [
"MIT"
] | null | null | null | /**
* @file main.cpp
* @author Jack
* @mail chengjunjie.jack@gmail.com
* @date 2021-12-30
* @version 0.1
*
* @copyright Copyright (c) 2021
*/
#include <iostream>
void Literals() {
std::cout << "(char) a: " << sizeof('a') << std::endl;
std::cout << "(Unicode 16 character) u'a': " << sizeof(u'a') << std::en... | 30.527778 | 80 | 0.530937 | Clelo4 |
ee6d80fdc5dfd5e9f3c8a3a29f00be37c3ca4aa4 | 672 | hpp | C++ | Showcase Program/src/Parts/StencilPart.hpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null | Showcase Program/src/Parts/StencilPart.hpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null | Showcase Program/src/Parts/StencilPart.hpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null |
#pragma once
#include <Aether.hpp>
#include "Part.hpp"
class StencilPart : public Part {
public:
StencilPart();
virtual void Draw(const ae::Matrix3x3& transform) override;
virtual bool HandleEvent(ae::EventMouseButtonPressed& event, const ae::Matrix3x3& view, const ae::Vector2f& model) override;
virtual void H... | 30.545455 | 126 | 0.760417 | WiktorKasjaniuk |
ee6d8cbf49fa08c6297835a69380b42b6af198f6 | 2,958 | cpp | C++ | dotnet/native/sealnet/encryptor_wrapper.cpp | deisler134/SEAL | 4a019473ad90b066b593f5714d6bf07d3a3ed671 | [
"MIT"
] | 1 | 2019-09-17T13:21:31.000Z | 2019-09-17T13:21:31.000Z | dotnet/native/sealnet/encryptor_wrapper.cpp | KoizumiRuby/SEAL | 1d5c8169aa5aca9deb75c4079e53ea8d5e94007d | [
"MIT"
] | null | null | null | dotnet/native/sealnet/encryptor_wrapper.cpp | KoizumiRuby/SEAL | 1d5c8169aa5aca9deb75c4079e53ea8d5e94007d | [
"MIT"
] | 1 | 2020-08-09T08:38:44.000Z | 2020-08-09T08:38:44.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/encryptor_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/encryptor.h"
using namespace std;
using namespace seal;
using namespace sealnet;
SEALNET... | 27.388889 | 126 | 0.701149 | deisler134 |
ee707a558d95336610f34071409e0132c3dfa9c8 | 14,272 | cpp | C++ | src/progress.cpp | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | 3 | 2021-02-05T15:43:21.000Z | 2021-05-08T05:31:54.000Z | src/progress.cpp | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | null | null | null | src/progress.cpp | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright © 2021 Nikita Dudko. All rights reserved.
* Contacts: <nikita.dudko.95@gmail.com>
*
* 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... | 27.712621 | 77 | 0.680283 | lem0nez |
ee7784aeaa12dd9122a306f1909ea694658e1851 | 4,204 | cpp | C++ | lib/CodeGen/Primitives/PrimitiveMethod.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | lib/CodeGen/Primitives/PrimitiveMethod.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | lib/CodeGen/Primitives/PrimitiveMethod.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #include <assert.h>
#include <stdexcept>
#include <string>
#include <vector>
#include <locic/AST/Function.hpp>
#include <locic/AST/Type.hpp>
#include <locic/AST/TypeInstance.hpp>
#include <locic/CodeGen/ArgInfo.hpp>
#include <locic/CodeGen/CallEmitter.hpp>
#include <locic/CodeGen/ConstantGenerator.hpp>
#include <loc... | 37.873874 | 153 | 0.723121 | scross99 |
ee78e4bf26ffd64134363e8018677a75e93bcf81 | 201 | hpp | C++ | include/awl/backends/x11/free.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/x11/free.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/x11/free.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_X11_FREE_HPP_INCLUDED
#define AWL_BACKENDS_X11_FREE_HPP_INCLUDED
#include <awl/detail/symbol.hpp>
namespace awl::backends::x11
{
AWL_DETAIL_SYMBOL
void free(void *);
}
#endif
| 13.4 | 42 | 0.80597 | freundlich |
ee7a4e92930577c19e04438a9d09cf34f7f9649b | 723 | hpp | C++ | include/RED4ext/Types/generated/quest/ShowCustomQuestNotification_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/quest/ShowCustomQuestNotification_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/quest/ShowCustomQuestNotification_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/quest/CustomQuestNotificationData.hpp>
#include <RED4ext/Types/generated/quest/IUIManagerNodeType.hpp>
namespace RED4ext
{
namespace... | 30.125 | 84 | 0.802213 | Cyberpunk-Extended-Development-Team |
ee7f4bcf31b65fbe9291ae66ec34e92ed64fa5c3 | 2,890 | cc | C++ | src/Boolean_Sample.cc | OliWenman/geant4tomosim | 663961933628eba678534bbe9bf099c6bcf5514b | [
"Apache-2.0"
] | 4 | 2019-05-14T15:24:05.000Z | 2022-01-28T19:29:23.000Z | src/Boolean_Sample.cc | OliWenman/geant4tomosim | 663961933628eba678534bbe9bf099c6bcf5514b | [
"Apache-2.0"
] | 1 | 2019-05-13T09:47:12.000Z | 2019-05-13T09:47:12.000Z | src/Boolean_Sample.cc | OliWenman/geant4tomosim | 663961933628eba678534bbe9bf099c6bcf5514b | [
"Apache-2.0"
] | 3 | 2019-05-13T08:59:55.000Z | 2021-09-15T18:16:18.000Z | #include "Boolean_Sample.hh"
#include "G4RotationMatrix.hh"
#include "G4SolidStore.hh"
#include "G4SubtractionSolid.hh"
Boolean_Sample:: Boolean_Sample(std::string _name,
std::string _type,
double_vector1D _dim,
... | 28.613861 | 125 | 0.603114 | OliWenman |
ee83a22fe210c67bd4c85594b6f639a6553ae9f6 | 989 | cpp | C++ | Source Code/UnitTests/Engine-Tests/Tests/HashTests.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 9 | 2018-05-02T19:53:41.000Z | 2021-10-18T18:30:47.000Z | Source Code/UnitTests/Engine-Tests/Tests/HashTests.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 7 | 2018-02-01T12:16:43.000Z | 2019-10-21T14:03:43.000Z | Source Code/UnitTests/Engine-Tests/Tests/HashTests.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 1 | 2020-09-08T03:28:22.000Z | 2020-09-08T03:28:22.000Z | #include "stdafx.h"
#include "Headers/Defines.h"
#include "Platform/Headers/PlatformDefines.h"
#include "Core/Math/Headers/MathHelper.h"
#include "Core/Resources/Headers/ResourceDescriptor.h"
namespace Divide {
TEST(HashCombineStr)
{
const string inputA = "bla1";
const string inputB = "bla1";
... | 21.977778 | 55 | 0.665319 | IonutCava |
ee85e761aef21bebcc9344b160af6f77557c6c07 | 29,182 | cpp | C++ | C++/Xplatform/eXtended_STL/xstring/Project/src/xstring.cpp | chenecharry/Libraries | e9e0d03db2396fc567725276f1983f97af4bddcd | [
"Apache-2.0"
] | null | null | null | C++/Xplatform/eXtended_STL/xstring/Project/src/xstring.cpp | chenecharry/Libraries | e9e0d03db2396fc567725276f1983f97af4bddcd | [
"Apache-2.0"
] | null | null | null | C++/Xplatform/eXtended_STL/xstring/Project/src/xstring.cpp | chenecharry/Libraries | e9e0d03db2396fc567725276f1983f97af4bddcd | [
"Apache-2.0"
] | null | null | null | #pragma warning (disable : 26444) // allow anynomous objects
#pragma warning (disable : 26812) // allow normal enums from STL
#include "xstring.h"
#include <stdlib.h>
const xstring xstring::static_class;
xstring Color::Black = "\033[30m";
xstring Color::Red = "\033[31m";
xstring Color::Green = "\033[32m"... | 28.498047 | 133 | 0.54561 | chenecharry |
ee8d846cb80a9f1099dbc9a3d191567318a406b9 | 457 | hpp | C++ | examples/cpp/FmCppDeviceSim/DeviceSimulator.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | examples/cpp/FmCppDeviceSim/DeviceSimulator.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | examples/cpp/FmCppDeviceSim/DeviceSimulator.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | #ifndef DEVICESIMULATOR_HPP
#define DEVICESIMULATOR_HPP
#include "ISimulator.hpp"
#include "Device.hpp"
class DeviceSimulator : public ISimulator
{
public:
DeviceSimulator(boost::asio::io_service&);
void start(const std::string&, const int, const std::string&);
private:
std::unique_ptr<fm::Device> devi... | 20.772727 | 97 | 0.743982 | nawbar23 |
ee8d9d46269329729c63fb543b76bc33880aa3f0 | 716 | hpp | C++ | Chip8lib/core/cpu/instructions/subrutineReturnInstruction.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/core/cpu/instructions/subrutineReturnInstruction.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/core/cpu/instructions/subrutineReturnInstruction.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | /*
* subrutineReturnInstruction.hpp
*
* Created on: Jul 21, 2016
* Author: Tomas Stibrany
*/
#ifndef CORE_CPU_INSTRUCTIONS_SUBRUTINERETURNINSTRUCTION_HPP_
#define CORE_CPU_INSTRUCTIONS_SUBRUTINERETURNINSTRUCTION_HPP_
#include "../../../chip8Types.hpp"
#include "iinstruction.hpp"
namespace chip8 { namespace... | 19.351351 | 73 | 0.756983 | tstibro |
ee90451c43017dd280516ccb3336945b5d4f5ad0 | 1,386 | cc | C++ | proof/alpha.cc | austrin/max-bisection-analysis | 8dd8c39693a86a6132c89f42f45dbd9bfef4ae46 | [
"MIT"
] | 1 | 2021-07-09T07:56:57.000Z | 2021-07-09T07:56:57.000Z | proof/alpha.cc | austrin/max-bisection-analysis | 8dd8c39693a86a6132c89f42f45dbd9bfef4ae46 | [
"MIT"
] | null | null | null | proof/alpha.cc | austrin/max-bisection-analysis | 8dd8c39693a86a6132c89f42f45dbd9bfef4ae46 | [
"MIT"
] | 1 | 2020-05-09T03:45:47.000Z | 2020-05-09T03:45:47.000Z | #include "alpha.h"
#include "gaussian.h"
Pairing::Pairing(double c, double A, double B): c(c), A(A), B(B) {}
I Pairing::f(const I& x) const {
assert(x >= 0.0);
return A*max(0.0, x-B);
}
I Pairing::r(const I& mu) const {
if (poslt(mu, 0.0)) {
if (posgt(mu, 0.0)) {
return hull(-r(I(0.0, -mu.lower())), r(I(0... | 26.653846 | 78 | 0.580808 | austrin |
ee92703c4d47a29736fe129b45e5d76189391b7e | 28,099 | cpp | C++ | src/integrators/volphotonmap.cpp | bwiberg/beam-radiance-estimate-pbrt | e4165de160a565e3f6821b93acb243b4feda4286 | [
"BSD-2-Clause"
] | null | null | null | src/integrators/volphotonmap.cpp | bwiberg/beam-radiance-estimate-pbrt | e4165de160a565e3f6821b93acb243b4feda4286 | [
"BSD-2-Clause"
] | null | null | null | src/integrators/volphotonmap.cpp | bwiberg/beam-radiance-estimate-pbrt | e4165de160a565e3f6821b93acb243b4feda4286 | [
"BSD-2-Clause"
] | null | null | null | /**
* Created by Benjamin Wiberg on 08/06/2017.
*/
#include "volphotonmap.h"
#include <array>
#include <samplers/zerotwosequence.h>
#include <base/mutex.h> // from glog
#include <samplers/halton.h>
#include "scene.h"
#include "progressreporter.h"
#include "paramset.h"
#include "camera.h"
namespace pbrt {
//STAT_COU... | 43.362654 | 124 | 0.543009 | bwiberg |
ee94ae4595b969c052fc4c21b9774ffce2ed60dd | 2,321 | cpp | C++ | src/mods/LoreInteractionMod/LoreInteractionMod.cpp | thetrueoneshots/CubeMegaMod | b5efbd559cbd2b7399f42b4ffab3453a1dd544bf | [
"MIT"
] | 39 | 2021-02-28T04:17:16.000Z | 2022-02-23T14:25:41.000Z | src/mods/LoreInteractionMod/LoreInteractionMod.cpp | thetrueoneshots/CubeMegaMod | b5efbd559cbd2b7399f42b4ffab3453a1dd544bf | [
"MIT"
] | 16 | 2021-03-12T04:44:33.000Z | 2022-03-31T14:16:16.000Z | src/mods/LoreInteractionMod/LoreInteractionMod.cpp | thetrueoneshots/CubeMegaMod | b5efbd559cbd2b7399f42b4ffab3453a1dd544bf | [
"MIT"
] | 3 | 2021-09-10T14:19:08.000Z | 2021-12-19T20:45:04.000Z | #include "LoreInteractionMod.h"
static void AnnounceFoundLoreItem(cube::Game* game, int type)
{
const static wchar_t* places[] = {
L"hidden behind the description",
L"burried in the ground",
L"covered in mud",
L"next to the object",
L"by accident",
};
const static int places_size = sizeof(places) / sizeof... | 24.177083 | 124 | 0.653167 | thetrueoneshots |
ee97205a4e49f1a8e25592541ad103947328c2a2 | 1,212 | hpp | C++ | include/hydro/parser/__ast/TryStmt.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/parser/__ast/TryStmt.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/parser/__ast/TryStmt.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 21.263158 | 98 | 0.570957 | hydraate |
eea19beeb3220c1444eadd4b2f1e7721a75f6c47 | 72,908 | cpp | C++ | src/data_store/data_store_conduit.cpp | aj-prime/lbann | a4cf81386b3f43586057b5312192e180b1259add | [
"Apache-2.0"
] | null | null | null | src/data_store/data_store_conduit.cpp | aj-prime/lbann | a4cf81386b3f43586057b5312192e180b1259add | [
"Apache-2.0"
] | 5 | 2021-07-15T20:51:21.000Z | 2022-01-01T03:18:05.000Z | src/data_store/data_store_conduit.cpp | aj-prime/lbann | a4cf81386b3f43586057b5312192e180b1259add | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 35.306538 | 232 | 0.663206 | aj-prime |
eea63ab77269307148f6affb6d0eac49b82e7b1c | 5,414 | cpp | C++ | src/FluidDynamicsPlugin/Thruster.cpp | k38-suzuki/hairo-world-plugin | 031375812b278d88116f92320d8c5ce74eba7a0a | [
"MIT"
] | 5 | 2020-12-16T22:18:46.000Z | 2022-03-26T08:39:51.000Z | src/FluidDynamicsPlugin/Thruster.cpp | k38-suzuki/hairo-world-plugin | 031375812b278d88116f92320d8c5ce74eba7a0a | [
"MIT"
] | 2 | 2021-06-29T04:03:15.000Z | 2021-06-29T05:46:15.000Z | src/FluidDynamicsPlugin/Thruster.cpp | k38-suzuki/hairo-world-plugin | 031375812b278d88116f92320d8c5ce74eba7a0a | [
"MIT"
] | 2 | 2021-06-19T17:11:12.000Z | 2021-07-09T06:58:47.000Z | /**
\file
\author Kenta Suzuki
*/
#include "Thruster.h"
#include <cnoid/Archive>
#include <cnoid/EigenUtil>
#include <cnoid/MeshGenerator>
#include <cnoid/Link>
#include <cnoid/SceneDevice>
#include <cnoid/SceneMarkers>
#include <cnoid/SceneShape>
#include <cnoid/StdBodyLoader>
#include <cnoid/StdBodyWriter>
us... | 20.585551 | 93 | 0.647765 | k38-suzuki |
eeaaab993232a8b9d7b79ef42d8de2bb17e2a9b1 | 16,321 | cpp | C++ | components/scream/src/physics/p3/atmosphere_microphysics.cpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/physics/p3/atmosphere_microphysics.cpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/physics/p3/atmosphere_microphysics.cpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | #include "physics/p3/atmosphere_microphysics.hpp"
// Needed for p3_init, the only F90 code still used.
#include "physics/p3/p3_f90.hpp"
#include "ekat/ekat_assert.hpp"
#include "ekat/util/ekat_units.hpp"
#include <array>
namespace scream
{
/*
* P3 Microphysics routines
*/
using namespace p3;
using view_1d = ... | 46.366477 | 148 | 0.694688 | ashlynrlee |
eeab3251d9a7b9cee6d7c54b07cdce3f6c8b592b | 3,832 | cpp | C++ | BetaEngine/Comp/Lab4/Source/SpriteSource.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab4/Source/SpriteSource.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab4/Source/SpriteSource.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SpriteSource.h"
/* 1. SpriteSource (constructor)
* * Simple constructor, just make sure everything gets initialized properly using the provided parameters/sane default values.
*/
SpriteSource::SpriteSource(const Beta::Texture *_texture, std::string _name, unsigned _numCols,... | 48.506329 | 260 | 0.707203 | PowerUser64 |
eeace7fc0a3ce8541017848ae79bdcdead810b96 | 1,513 | cpp | C++ | Intermediate/Build/Win64/UnrealEditor/Inc/VlcMediaFactory/VlcMediaFactory.init.gen.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | 1 | 2022-03-23T04:35:54.000Z | 2022-03-23T04:35:54.000Z | Intermediate/Build/Win64/UnrealEditor/Inc/VlcMediaFactory/VlcMediaFactory.init.gen.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | null | null | null | Intermediate/Build/Win64/UnrealEditor/Inc/VlcMediaFactory/VlcMediaFactory.init.gen.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
====================================================================... | 50.433333 | 306 | 0.745539 | jeirix |
eeaff3adfd0134be65704fd1c6883551b780930d | 1,755 | hpp | C++ | include/cppurses/widget/widgets/detail/nearly_equal.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | 1 | 2020-02-22T21:18:11.000Z | 2020-02-22T21:18:11.000Z | include/cppurses/widget/widgets/detail/nearly_equal.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | include/cppurses/widget/widgets/detail/nearly_equal.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_WIDGET_WIDGETS_DETAIL_NEARLY_EQUAL_HPP
#define CPPURSES_WIDGET_WIDGETS_DETAIL_NEARLY_EQUAL_HPP
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <type_traits>
namespace cppurses {
namespace detail {
/// Type punning to reinterpret a value of U as T.
template <typename... | 33.113208 | 78 | 0.708262 | thknepper |
eeb0b9ea9066adc4534c9766db96fc3016d89b12 | 3,155 | cpp | C++ | src/image_management/local/main.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/local/main.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/local/main.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null |
/** TP 5ETI IMI- CPE Lyon - 2015-2016 */
/**
#include "lib/common/error_handling.hpp"
#include "discrete/bresenham.hpp"
#include "discrete/bresenham_octant.hpp"
#include "discrete/line_discrete.hpp"
#include "discrete/line_interpolation_parameter.hpp"
#include "image/image.hpp"
#include "image/io/image_ppm.hpp"
#in... | 29.212963 | 86 | 0.577179 | Neckrome |
eeb1c8ad8006ef30fff7f3f65b8b49d0ecc58c7b | 62,957 | cpp | C++ | pxr/imaging/hdsi/implicitSurfaceSceneIndex.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | 1 | 2021-09-25T12:49:37.000Z | 2021-09-25T12:49:37.000Z | pxr/imaging/hdsi/implicitSurfaceSceneIndex.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | null | null | null | pxr/imaging/hdsi/implicitSurfaceSceneIndex.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | 1 | 2020-10-24T00:43:14.000Z | 2020-10-24T00:43:14.000Z | //
// Copyright 2022 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 37.452112 | 80 | 0.598948 | dgovil |
eeb241955f76e439a4d8bf82e09156d4539a094d | 3,049 | cpp | C++ | 30_eigenerCode/VectorDequeList/main.cpp | theroyalcoder/HF-ICT-3-SEM-AAD | 2dfa964b890199c1097e0c72c8abd68f1703cb29 | [
"MIT"
] | null | null | null | 30_eigenerCode/VectorDequeList/main.cpp | theroyalcoder/HF-ICT-3-SEM-AAD | 2dfa964b890199c1097e0c72c8abd68f1703cb29 | [
"MIT"
] | null | null | null | 30_eigenerCode/VectorDequeList/main.cpp | theroyalcoder/HF-ICT-3-SEM-AAD | 2dfa964b890199c1097e0c72c8abd68f1703cb29 | [
"MIT"
] | null | null | null | #include <iostream>
#include <deque>
#include <vector>
#include <list>
#include <map>
#include <queue>
using namespace std;
int main() {
deque<int> deque1;
// insert at the end
deque1.push_back(rand());
// insert at the start
deque1.push_front(rand());
// loop through elements
deque<int>... | 24.198413 | 112 | 0.566415 | theroyalcoder |
eeb7f3e8d4e1441a5d69cb4aa45c94b9c52a08a2 | 1,627 | hpp | C++ | rule_engine.hpp | bjdm/ebpfsnitch | 957850cb25efaeca93c4b392975fac1440e950fb | [
"BSD-3-Clause"
] | null | null | null | rule_engine.hpp | bjdm/ebpfsnitch | 957850cb25efaeca93c4b392975fac1440e950fb | [
"BSD-3-Clause"
] | null | null | null | rule_engine.hpp | bjdm/ebpfsnitch | 957850cb25efaeca93c4b392975fac1440e950fb | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vector>
#include <shared_mutex>
#include <nlohmann/json.hpp>
#include "misc.hpp"
enum class field_t {
executable,
destination_address,
destination_port,
source_address,
source_port,
container_id,
protocol,
user_id
};
field_t field_from_string(const std::string... | 22.597222 | 76 | 0.642286 | bjdm |
eeb92bd4ab7c28c1fce5dafc7a4cf46e948d9921 | 120 | hpp | C++ | Playground.hpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | Playground.hpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | Playground.hpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | class Playground
{
public:
Playground();
~Playground();
int test()
{
return 42;
}
private:
}; | 9.230769 | 17 | 0.525 | bruennijs |
eebd9ad925212a9468e4b780a95478b7e4204792 | 9,788 | cpp | C++ | Eldritch-Source/Code/Libraries/3D/src/animationstate.cpp | inferno986return/eldritch-mirror | fefdb06f392b3f8c17f0617a1101c503620bc6fd | [
"Zlib",
"Unlicense"
] | 91 | 2015-01-27T22:56:26.000Z | 2022-03-25T13:33:18.000Z | Code/Libraries/3D/src/animationstate.cpp | rohit-n/Eldritch | b1d2a200eac9c8026e696bdac1f7d2ca629dd38c | [
"Zlib"
] | 2 | 2019-01-04T21:42:26.000Z | 2019-01-06T14:34:08.000Z | Code/Libraries/3D/src/animationstate.cpp | Neb-Software/mEldritch | 7d07a845b3f04242ddf1f0abbad606c830ac8f20 | [
"Zlib"
] | 21 | 2015-04-06T17:41:17.000Z | 2021-06-15T00:26:18.000Z | #include "core.h"
#include "animationstate.h"
#include "animation.h"
#include "bonearray.h"
#include "mathcore.h"
#include "matrix.h"
#include "bonearray.h"
#include "animevent.h"
AnimationState::AnimationState()
: m_AnimationLayer()
, m_Mesh( NULL )
, m_SuppressAnimEvents( false )
, m_AnimationListeners(... | 27.264624 | 147 | 0.705047 | inferno986return |
eec37102220bb2a5da280361379dcc6b39bc8cd8 | 7,095 | cpp | C++ | src/reflowscan.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | 1 | 2018-03-01T13:03:01.000Z | 2018-03-01T13:03:01.000Z | src/reflowscan.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | src/reflowscan.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | /*
Minetest
Copyright (C) 2016 MillersMan <millersman@users.noreply.github.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later... | 34.110577 | 83 | 0.697252 | crazyBaboon |
eed25529be3e7e7f33bea20d04f5fa805de13def | 1,484 | hpp | C++ | include/codegen/include/UnityEngine/Space.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Space.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Space.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:27 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 38.051282 | 76 | 0.690027 | Futuremappermydud |
eed3defcddacd353b00dab8aabbe45cd60d1eaa4 | 2,901 | cpp | C++ | aws-cpp-sdk-pinpoint-email/source/model/SendEmailRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-pinpoint-email/source/model/SendEmailRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-pinpoint-email/source/model/SendEmailRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 27.367925 | 129 | 0.766287 | curiousjgeorge |
eeda5900e8ce91bc3ebfc2ea22216680cffd1da5 | 667 | cpp | C++ | Problems/0260. Single Number III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0260. Single Number III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0260. Single Number III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> singleNumber(vector<int>& nums) {
vector< int> ans(2,0);
int mask{};
for( int i:nums)
mask^=i;
mask = mask & (~(mask-1));
// this bit is only set in one of the two numbers present only once int the array
for( int i:nu... | 33.35 | 90 | 0.52024 | KrKush23 |
4abb2583cdbbed1caa553227ea92359a83b019a6 | 10,361 | cpp | C++ | interface_opencl/zset_get.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | null | null | null | interface_opencl/zset_get.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T10:05:16.000Z | 2021-03-13T10:05:16.000Z | interface_opencl/zset_get.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | null | null | null | /*
-- MAGMA (version 1.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author Mark Gates
@precisions normal z -> s d c
*/
#include <stdlib.h>
#include <stdio.h>
#include "magma.h"
#include "error.h"
#if defined(HAVE_cl... | 30.563422 | 79 | 0.590097 | Zhitao-Li |
4abb3f5d89b46942dd2ee0e635f64148983bbdc9 | 738 | hpp | C++ | defs.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | 1 | 2020-08-16T00:09:30.000Z | 2020-08-16T00:09:30.000Z | defs.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | 1 | 2021-04-20T07:45:53.000Z | 2021-05-16T22:11:12.000Z | defs.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | null | null | null | #ifndef _DEFS_H
#define _DEFS_H
#define MVP_BRANCHFACTOR 2 /* each level of internal node splits into branchfactor child nodes */
#define MVP_PATHLENGTH 8 /* no. vantage points in leaf node */
#define MVP_LEAFCAP 30 /* max. number points allowed in leaf node */
#define MVP_LEVELSPERNODE 2 /* number vantag... | 52.714286 | 99 | 0.644986 | starkdg |
4ac0f56da8960363d60f4d285f5af23d2dca1641 | 1,495 | cpp | C++ | app/src/main/cpp/main_activity.cpp | nb7123/OpenGLSample | 7ac778d7877cb5f71e225ee3952eedae090549e5 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/main_activity.cpp | nb7123/OpenGLSample | 7ac778d7877cb5f71e225ee3952eedae090549e5 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/main_activity.cpp | nb7123/OpenGLSample | 7ac778d7877cb5f71e225ee3952eedae090549e5 | [
"Apache-2.0"
] | null | null | null | //
// Created by michael on 17-11-28.
//
#include <EGL/egl.h>
#include <android_native_app_glue.h>
#include <string>
#include "engine/Engine.h"
/**
* android 应用主入口函数
* This is the main entry point of a native application that is using
* android_native_app_glue. It runs in its own thread, with its own
* event lo... | 28.207547 | 73 | 0.557191 | nb7123 |
4ac1f494b50e565a3513e73ce21e6aef1b107889 | 161 | cpp | C++ | RW.GameLib/src/Utils/TimerFuncs.cpp | Termimad/UWOL | f6fb3e0d04d54d6338b4c661338648c8abf448bb | [
"MIT"
] | 4 | 2016-10-17T14:32:53.000Z | 2021-06-03T23:17:56.000Z | RW.GameLib/src/Utils/TimerFuncs.cpp | Termimad/UWOL | f6fb3e0d04d54d6338b4c661338648c8abf448bb | [
"MIT"
] | 4 | 2017-03-02T21:07:04.000Z | 2017-03-02T21:45:14.000Z | RW.GameLib/src/Utils/TimerFuncs.cpp | Termimad/UWOL | f6fb3e0d04d54d6338b4c661338648c8abf448bb | [
"MIT"
] | 3 | 2016-09-20T16:30:06.000Z | 2020-04-17T07:05:36.000Z | #include "Utils/TimerFuncs.h"
int TimerFuncs::GetTicks()
{
return SDL_GetTicks();
}
void TimerFuncs::Sleep(unsigned int milliSecs) {
SDL_Delay(milliSecs);
}
| 14.636364 | 48 | 0.73913 | Termimad |
4ac4e45b73f8823dbd66659db9a43cb602c1952f | 568 | cpp | C++ | sort/counter_sort.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 1 | 2020-04-14T05:44:50.000Z | 2020-04-14T05:44:50.000Z | sort/counter_sort.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | null | null | null | sort/counter_sort.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 2 | 2020-09-02T08:56:31.000Z | 2021-06-22T11:20:58.000Z | #include <iostream>
#include <algorithm>
#include <map>
#include <vector>
#include <cstdlib>
#include <ctime>
using namespace std;
int rec;
map<double, int> cnt;
int main()
{
vector<double> arr;
srand(time(0));
for (int i = 0; i < 10; i++) {
arr.push_back(rand() % 1000 + 1);
cnt[arr.back()]++;
}
vector<doub... | 16.228571 | 39 | 0.572183 | FrancsXiang |
4aca51cc63152a9b64b0d6e1999c208076ab32d9 | 2,791 | hh | C++ | src/weapon.hh | matthew-c21/srpg-engine | e767a7211d55b0998dd4f6c1c02ebf6994fdd74c | [
"MIT"
] | null | null | null | src/weapon.hh | matthew-c21/srpg-engine | e767a7211d55b0998dd4f6c1c02ebf6994fdd74c | [
"MIT"
] | null | null | null | src/weapon.hh | matthew-c21/srpg-engine | e767a7211d55b0998dd4f6c1c02ebf6994fdd74c | [
"MIT"
] | null | null | null | #ifndef SRPG_ENGINE_WEAPON_HH
#define SRPG_ENGINE_WEAPON_HH
#include <cstdint>
#include <functional>
#include <memory>
#include <utility>
#include "unit_attrs.hh"
// TODO(matthew-c21): Add builders.
namespace srpg {
class Unit;
enum class WeaponType {
Axe = 0x01,
Tome = 0x02,
Lance = 0x04,
Sword = 0x08,
... | 22.150794 | 107 | 0.715156 | matthew-c21 |
4ace6ae7d8261de19bb1ba0701b8a1e428849075 | 3,977 | cc | C++ | test/pc/e2e/test_activities_executor.cc | pablito25sp/webrtc-src | d25c2ac74afc25f65d111771dbfabd6db25d2498 | [
"BSD-3-Clause"
] | 45 | 2020-11-25T06:17:12.000Z | 2022-03-26T03:49:51.000Z | test/pc/e2e/test_activities_executor.cc | pablito25sp/webrtc-src | d25c2ac74afc25f65d111771dbfabd6db25d2498 | [
"BSD-3-Clause"
] | 31 | 2020-11-17T05:30:13.000Z | 2021-12-14T02:19:00.000Z | test/pc/e2e/test_activities_executor.cc | pablito25sp/webrtc-src | d25c2ac74afc25f65d111771dbfabd6db25d2498 | [
"BSD-3-Clause"
] | 20 | 2020-11-17T06:24:14.000Z | 2022-03-10T07:08:53.000Z | /*
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 31.816 | 79 | 0.685693 | pablito25sp |
4aceaa81ce096b25391f858ca8b296649bc3add1 | 4,283 | cpp | C++ | test/TestBlackBorderProcessor.cpp | aufano/hyperion | cd543a063af50455e3e92fc9e89c2503bef95188 | [
"MIT"
] | null | null | null | test/TestBlackBorderProcessor.cpp | aufano/hyperion | cd543a063af50455e3e92fc9e89c2503bef95188 | [
"MIT"
] | null | null | null | test/TestBlackBorderProcessor.cpp | aufano/hyperion | cd543a063af50455e3e92fc9e89c2503bef95188 | [
"MIT"
] | null | null | null |
// STL includes
#include <cassert>
#include <random>
#include <iostream>
// Utils includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
// Blackborder includes
#include "blackborder/BlackBorderProcessor.h"
using namespace hyperion;
ColorRgb randomColor()
{
const uint8_t randomRedValue = uint8_t(rand() %... | 27.632258 | 224 | 0.669858 | aufano |
4acecda1c04d739f8b82b9108194a2bbedc74153 | 52,012 | cpp | C++ | SpatialGDK/Intermediate/Build/Win64/UE4Editor/Inc/SpatialGDK/SpatialPingComponent.gen.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | null | null | null | SpatialGDK/Intermediate/Build/Win64/UE4Editor/Inc/SpatialGDK/SpatialPingComponent.gen.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | null | null | null | SpatialGDK/Intermediate/Build/Win64/UE4Editor/Inc/SpatialGDK/SpatialPingComponent.gen.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... | 74.091168 | 875 | 0.856591 | Bowbee |
4ad0cae691e13e66c8e02ea8f13bfa8b808ad043 | 8,124 | cpp | C++ | iris/classes/AppScene.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | iris/classes/AppScene.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | iris/classes/AppScene.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | #include "AppScene.h"
USING_IRIS
AppScene::AppScene()
: m_gameObject(NULL)
, m_gameObject1(NULL)
, m_camera(NULL)
{
m_name = "app_scene";
}
AppScene::~AppScene()
{
}
AppScene *AppScene::create()
{
AppScene *appScene = new (std::nothrow) AppScene();
if(appScene && appScene->initWithCam... | 35.168831 | 119 | 0.625677 | pixelsquare |
4ad6ebbbc38716e3d35ff83f8f996c156bc5ea79 | 4,353 | hpp | C++ | xmrstak/net/jpsock.hpp | danyalson-py/cryptoanalyst-mining | 3a0e52b329a1a80fbc7d8ad404144aafec44b722 | [
"Unlicense"
] | null | null | null | xmrstak/net/jpsock.hpp | danyalson-py/cryptoanalyst-mining | 3a0e52b329a1a80fbc7d8ad404144aafec44b722 | [
"Unlicense"
] | null | null | null | xmrstak/net/jpsock.hpp | danyalson-py/cryptoanalyst-mining | 3a0e52b329a1a80fbc7d8ad404144aafec44b722 | [
"Unlicense"
] | null | null | null | #pragma once
#include "msgstruct.hpp"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/jconf.hpp"
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <string>
#include <thread>
/* Our pool can have two kinds of errors:
- Parsing or connection error
Those are fatal errors (we drop the... | 29.214765 | 184 | 0.747071 | danyalson-py |
4ade206b0f532b77b2221a98bcac55628deab08f | 2,856 | cc | C++ | +audstream/source/PsychSourceGL/Source/Octave/WaitSecs.cc | peterzh/signals | 5ab72195ff532f07d23efeba040a320affb0d18d | [
"Apache-2.0"
] | 3 | 2018-06-25T23:13:45.000Z | 2019-11-22T15:03:17.000Z | PsychSourceGL/Source/Octave/WaitSecs.cc | aleslab/Psychtoolbox-3-aleslab-fork | 2df66e5fb8c20d5d7bf0a91ce11562331afd4352 | [
"MIT"
] | 15 | 2018-05-01T18:04:54.000Z | 2020-02-15T19:58:30.000Z | PsychSourceGL/Source/Octave/WaitSecs.cc | aleslab/Psychtoolbox-3-aleslab-fork | 2df66e5fb8c20d5d7bf0a91ce11562331afd4352 | [
"MIT"
] | 7 | 2018-05-01T17:46:30.000Z | 2020-05-14T00:00:30.000Z | // This C++ file is the interface between GNU/Octave and Psychtoolbox
// module WaitSecs. It defines the entry-point function FWaitSecs and the online
// help for WaitSecs. The function itself (see bottom of file) is just a
// wrapper around octFunction(), the real command dispatcher defined in
// the PsychScriptingGlu... | 41.391304 | 80 | 0.759804 | peterzh |
4adff611aaf7ec28880acac9c7566cf51a5d645a | 882 | cpp | C++ | src/net/ParsingResult.cpp | phofman/qt-components | 8ed67d79006647ffbb41b1ee0cd6b30536636e8c | [
"MIT"
] | null | null | null | src/net/ParsingResult.cpp | phofman/qt-components | 8ed67d79006647ffbb41b1ee0cd6b30536636e8c | [
"MIT"
] | null | null | null | src/net/ParsingResult.cpp | phofman/qt-components | 8ed67d79006647ffbb41b1ee0cd6b30536636e8c | [
"MIT"
] | null | null | null | #include "ParsingResult.h"
ParsingResult::ParsingResult(QObject *parent, int errorCode, const QString &message, int pageNumer, int prevPageNumber, int nextPageNumber)
: QObject(parent)
{
errorCode_ = errorCode;
message_ = message;
pageNumber_ = pageNumer;
prevPageNumber_ = prevPageNumber;
... | 18.765957 | 140 | 0.69161 | phofman |
4ae0763def31d9760a3d6c01ffc36f4484e64699 | 5,075 | hpp | C++ | include/rasm2/shell/shell_server.hpp | ASM-Advised-Projects/rasm-software | e28a17f96f70d89a4939e40a64e9e2e6a5ed7674 | [
"MIT"
] | 3 | 2019-10-31T15:04:35.000Z | 2021-06-24T16:35:18.000Z | include/rasm2/shell/shell_server.hpp | ASM-Advised-Projects/rasm-software | e28a17f96f70d89a4939e40a64e9e2e6a5ed7674 | [
"MIT"
] | null | null | null | include/rasm2/shell/shell_server.hpp | ASM-Advised-Projects/rasm-software | e28a17f96f70d89a4939e40a64e9e2e6a5ed7674 | [
"MIT"
] | 2 | 2019-02-26T20:41:15.000Z | 2019-05-14T01:40:40.000Z | /**
* Defines the ShellSession and RasmShellServer classes.
*/
#ifndef RASM2_SHELL_SHELL_SERVER_HPP
#define RASM2_SHELL_SHELL_SERVER_HPP
#include <string.h>
#include <Poco/Net/ServerSocket.h>
#include <Poco/Thread.h>
#include <Poco/Runnable.h>
#define SHELL_SERVER_PORT 5000
#define MAX_SHELLS 5
#define MAX_SHELL_... | 23.714953 | 81 | 0.672709 | ASM-Advised-Projects |
4ae20195b17056eb22fa7a0fa024c7338cba22ab | 26,163 | hpp | C++ | include/pstore/mcrepo/generic_section.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | null | null | null | include/pstore/mcrepo/generic_section.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 1 | 2021-03-09T21:33:38.000Z | 2021-03-09T21:33:38.000Z | include/pstore/mcrepo/generic_section.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | null | null | null | //===- include/pstore/mcrepo/generic_section.hpp ----------*- mode: C++ -*-===//
//* _ _ _ *
//* __ _ ___ _ __ ___ _ __(_) ___ ___ ___ ___| |_(_) ___ _ __ *
//* / _` |/ _ \ '_ \ / _ \ '__| |/ __| / __|/ _ \/ __| __| |/ _ \| '_ \ *
//* | (_| |... | 49.364151 | 100 | 0.533807 | paulhuggett |
4ae4269e1ae9e2a4b45604515fee31b62f00568a | 1,665 | hpp | C++ | include/sensor.hpp | pooja-kabra/ackermann_controller | c9f142a51b4223a6416be8ba1201d024675abc0f | [
"MIT"
] | null | null | null | include/sensor.hpp | pooja-kabra/ackermann_controller | c9f142a51b4223a6416be8ba1201d024675abc0f | [
"MIT"
] | null | null | null | include/sensor.hpp | pooja-kabra/ackermann_controller | c9f142a51b4223a6416be8ba1201d024675abc0f | [
"MIT"
] | 1 | 2021-10-04T23:23:22.000Z | 2021-10-04T23:23:22.000Z | /**
* @file sensor.hpp
* @author Markose Jacob, Pooja Kabra
* @brief This file declares the sensor that senses the Robot's
* heading and linear speed in global frame
* @version 0.1
* @date 2021-10-16
*
* @copyright Copyright (c) 2021
*
*/
#pragma once
#include <iostream>
#include <vector>
namespace... | 30.272727 | 109 | 0.63003 | pooja-kabra |
4ae4f9584af780341e0fbd0b109b55cbc3e3ceb1 | 14,415 | cpp | C++ | src/libcore/src/ccm/misc/FormattedFloatingDecimal.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 6 | 2018-05-08T10:08:21.000Z | 2021-11-13T13:22:58.000Z | src/libcore/src/ccm/misc/FormattedFloatingDecimal.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 1 | 2018-05-08T10:20:17.000Z | 2018-07-23T05:19:19.000Z | src/libcore/src/ccm/misc/FormattedFloatingDecimal.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 4 | 2018-03-13T06:21:11.000Z | 2021-06-19T02:48:07.000Z | //=========================================================================
// Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project
//
// 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 Lic... | 32.539503 | 108 | 0.547208 | sparkoss |
4ae7bc74dd796131cec5fd2cae4f13d1f02887bb | 29 | cpp | C++ | src/type.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/type.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/type.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | 1 | 2020-04-01T13:36:51.000Z | 2020-04-01T13:36:51.000Z | #include "../include/type.h"
| 14.5 | 28 | 0.655172 | chloro-pn |
4aec37dfe6a83627bc224a95cb13aa391d8acdd9 | 569 | hpp | C++ | libraries/lua-gph/lib/inc/lapi.hpp | ypenghui6test/cocos-mainnet | 2dbfa903a6dceb3d3ec421481aa4b8c3896dcbe7 | [
"MIT"
] | 29 | 2021-02-04T22:26:34.000Z | 2021-02-18T17:31:13.000Z | libraries/lua-gph/lib/inc/lapi.hpp | CocosBlockchainExpedition/cocos-mainnet | e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b | [
"MIT"
] | 3 | 2020-02-10T11:06:02.000Z | 2020-03-18T07:24:08.000Z | libraries/lua-gph/lib/inc/lapi.hpp | CocosBlockchainExpedition/cocos-mainnet | e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b | [
"MIT"
] | 3 | 2019-12-11T07:16:41.000Z | 2019-12-12T09:37:05.000Z | /*
** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $
** Auxiliary functions from Lua API
** See Copyright Notice in lua.h
*/
#ifndef lapi_h
#define lapi_h
#include "llimits.hpp"
#include "lstate.hpp"
#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
"stack overflow");}... | 22.76 | 79 | 0.592267 | ypenghui6test |
4af161e83d7d86c13b1761057aa7e5e3a5d83479 | 1,454 | cpp | C++ | inputfilter/BSCInputFilter.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | 7 | 2018-03-22T23:38:01.000Z | 2022-03-29T19:38:02.000Z | inputfilter/BSCInputFilter.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | 40 | 2015-05-16T19:58:38.000Z | 2022-03-29T19:32:34.000Z | inputfilter/BSCInputFilter.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | 5 | 2015-11-18T09:17:08.000Z | 2021-11-02T10:46:18.000Z | #include <InputServerFilter.h>
#include "BSCApp.h"
#include "PublicMessages.h"
#include <Roster.h>
class BSCInputFilter : public BInputServerFilter {
status_t InitCheck();
filter_result Filter(BMessage* message, BList* outList);
};
status_t
BSCInputFilter::InitCheck()
{
return B_NO_ERROR;
}
filter_result
BS... | 20.194444 | 64 | 0.674003 | humdingerb |
4af1df37bedc01e81a0dab218272a09772045ad7 | 6,402 | cpp | C++ | mp/src/game/client/Mod/GUI_WebWindow.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 7 | 2019-02-04T01:17:26.000Z | 2022-02-26T21:36:34.000Z | mp/src/game/client/Mod/GUI_WebWindow.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 11 | 2016-05-06T22:44:46.000Z | 2016-05-06T22:45:03.000Z | mp/src/game/client/Mod/GUI_WebWindow.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 2 | 2016-06-28T11:34:53.000Z | 2017-04-01T18:08:46.000Z | /* ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/LGPL 2.1/GPL 2.0
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
...
for the specific language governing rights and limitations under the
License.
The Original Code... | 23.028777 | 106 | 0.680412 | hekar |
4af23c11a51e97543d31614c8491712d8867bde8 | 3,147 | cpp | C++ | tycho-ipl/image_magick_utils.cpp | martin-slater/tycho-ipl | d5a896a389575325c82f50813d0a7c738804cdf5 | [
"MIT"
] | null | null | null | tycho-ipl/image_magick_utils.cpp | martin-slater/tycho-ipl | d5a896a389575325c82f50813d0a7c738804cdf5 | [
"MIT"
] | null | null | null | tycho-ipl/image_magick_utils.cpp | martin-slater/tycho-ipl | d5a896a389575325c82f50813d0a7c738804cdf5 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------
// Image Processing Library
//
// MIT License
// Copyright (c) 2018 Martin A Slater (mslater@hellinc.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fil... | 32.112245 | 81 | 0.536384 | martin-slater |
4af2be11e1388c5349ca6266116548d8d1f37dfc | 8,417 | cpp | C++ | unittests/runtime/CompatibilityOverrideConcurrency.cpp | thomassw66/swift | d67461770f24ee6048d1ee8fbc4d6c88d688254c | [
"Apache-2.0"
] | null | null | null | unittests/runtime/CompatibilityOverrideConcurrency.cpp | thomassw66/swift | d67461770f24ee6048d1ee8fbc4d6c88d688254c | [
"Apache-2.0"
] | 1 | 2018-11-19T08:10:30.000Z | 2018-11-19T08:10:30.000Z | unittests/runtime/CompatibilityOverrideConcurrency.cpp | thomassw66/swift | d67461770f24ee6048d1ee8fbc4d6c88d688254c | [
"Apache-2.0"
] | null | null | null | //===--- CompatibilityOverrideConcurrency.cpp - Compatibility override tests ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.... | 31.762264 | 89 | 0.771059 | thomassw66 |
4af8ad1194e444f98bbac9ae56523e0bbbddf89f | 4,319 | hpp | C++ | tpls/pressio/include/pressio/utils/logger/utils_logger_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tpls/pressio/include/pressio/utils/logger/utils_logger_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tpls/pressio/include/pressio/utils/logger/utils_logger_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z |
#ifndef UTILS_LOGGER_UTILS_LOGGER_IMPL_HPP_
#define UTILS_LOGGER_UTILS_LOGGER_IMPL_HPP_
#ifdef PRESSIO_ENABLE_TPL_MPI
#include <mpi.h>
#endif
#include <chrono>
#include <initializer_list>
#include "./spdlog/tweakme.hpp"
#include "./spdlog/details/null_mutex.hpp"
#include "./spdlog/common.hpp"
#include "./spdlog/deta... | 29.380952 | 85 | 0.695994 | fnrizzi |
4afcd2bf54e7846f595a9eeb822c0806809982b2 | 1,375 | cpp | C++ | src/logi/swapchain/swapchain_image.cpp | PrimozLavric/VulkanRenderer | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | 6 | 2021-04-06T02:37:55.000Z | 2021-11-24T06:14:04.000Z | src/logi/swapchain/swapchain_image.cpp | PrimozLavric/Logi | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | null | null | null | src/logi/swapchain/swapchain_image.cpp | PrimozLavric/Logi | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | null | null | null | /**
* Project Logi source code
* Copyright (C) 2019 Primoz Lavric
*
* 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 versio... | 36.184211 | 106 | 0.757091 | PrimozLavric |
ab0191effee7779662fd302c5a09fd36c3823920 | 19,547 | hpp | C++ | dependencies/osi_clp/Clp/src/ClpInterior.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 5 | 2020-01-28T08:38:35.000Z | 2021-06-19T04:11:23.000Z | dependencies/osi_clp/Clp/src/ClpInterior.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | dependencies/osi_clp/Clp/src/ClpInterior.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 3 | 2019-11-26T14:43:13.000Z | 2021-10-06T08:03:46.000Z | /* $Id$ */
// Copyright (C) 2003, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
/*
Authors
John Tomlin (pdco)
John Forrest (standard predictor-corrector)
Note JJF has added arrays - this takes ... | 34.232925 | 92 | 0.626848 | zyxrrr |
ab06af52c2e8590a397f0db12847796e82cd846d | 967 | cpp | C++ | Siv3D/src/ThirdParty/infoware/src/detail/cpuid_non_windows.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 709 | 2016-03-19T07:55:58.000Z | 2022-03-31T08:02:22.000Z | src/detail/cpuid_non_windows.cpp | Ryan-rsm-McKenzie/infoware | a469f54b81ddf954f73b38e717c7aea2de36aa90 | [
"CC0-1.0"
] | 415 | 2017-05-21T05:05:02.000Z | 2022-03-29T16:08:27.000Z | src/detail/cpuid_non_windows.cpp | Ryan-rsm-McKenzie/infoware | a469f54b81ddf954f73b38e717c7aea2de36aa90 | [
"CC0-1.0"
] | 123 | 2016-03-19T12:47:08.000Z | 2022-03-25T03:47:51.000Z | // infoware - C++ System information Library
//
// Written in 2016-2020 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwi... | 29.30303 | 105 | 0.712513 | tas9n |
ab087594e1fefcae79573b5378df7590ca8acf71 | 2,078 | hpp | C++ | mi/ArgumentImporter.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | mi/ArgumentImporter.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | 1 | 2017-06-14T04:32:12.000Z | 2017-06-14T04:32:12.000Z | mi/ArgumentImporter.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | /**
* @file ArgumentImporter.hpp
* @author Takashi Michikawa <michikawa@acm.org>
*/
#pragma once
#ifndef MI_ARGUMENT_IMPORTER_HPP
#define MI_ARGUMENT_IMPORTER_HPP 1
#include "Importer.hpp"
#include "Argument.hpp"
#include "Tokenizer.hpp"
namespace mi
{
/**
* @class Importer
* ... | 35.827586 | 86 | 0.382579 | tmichi |
ab092efac54c26e1cb55b38cf81c5073da6cf5eb | 5,644 | cpp | C++ | tools/code/pmtech_editor/pmtech_editor.cpp | polymonster/pmtech | a51df48bad07c489fbf71928f10c56a415c87c4d | [
"MIT"
] | 661 | 2018-01-20T00:34:35.000Z | 2022-03-28T02:22:17.000Z | tools/code/pmtech_editor/pmtech_editor.cpp | ford442/pmtech | 99fa197653e3b6d73c2c1be46d61cb0aaea3769c | [
"MIT"
] | 54 | 2017-03-16T22:25:26.000Z | 2021-09-18T12:52:01.000Z | tools/code/pmtech_editor/pmtech_editor.cpp | ford442/pmtech | 99fa197653e3b6d73c2c1be46d61cb0aaea3769c | [
"MIT"
] | 38 | 2019-03-22T03:05:44.000Z | 2022-03-09T14:06:46.000Z | #include "ecs/ecs_editor.h"
#include "ecs/ecs_resources.h"
#include "ecs/ecs_scene.h"
#include "ecs/ecs_utilities.h"
#include "volume_generator.h"
#include "camera.h"
#include "debug_render.h"
#include "dev_ui.h"
#include "loader.h"
#include "pmfx.h"
#include "file_system.h"
#include "hash.h"
#include "input.h"
#incl... | 24.53913 | 116 | 0.608611 | polymonster |
ab0aaa43f2933b6d1289affc5ea9070659e2a7b9 | 212 | cpp | C++ | Source/SimplexNoise/Private/SimplexNoiseModule.cpp | gaborpapp/UE4SimplexNoise | adf79ece547e7e4aab8595edc5530dfce84b4c3e | [
"MIT"
] | null | null | null | Source/SimplexNoise/Private/SimplexNoiseModule.cpp | gaborpapp/UE4SimplexNoise | adf79ece547e7e4aab8595edc5530dfce84b4c3e | [
"MIT"
] | null | null | null | Source/SimplexNoise/Private/SimplexNoiseModule.cpp | gaborpapp/UE4SimplexNoise | adf79ece547e7e4aab8595edc5530dfce84b4c3e | [
"MIT"
] | null | null | null | /*
SimplexNoise 1.0.0
-----
DevDad - Afan Olovcic @ art-and-code.com - 08/12/2015
*/
#include "SimplexNoisePrivatePCH.h"
//DEFINE_LOG_CATEGORY(Victory)
IMPLEMENT_MODULE(FDefaultGameModuleImpl, SimplexNoise); | 21.2 | 55 | 0.75 | gaborpapp |
ab10152bab59a4a801b5d245b25e1ff9092442dd | 4,450 | cpp | C++ | framework/test/gtest/UtilsTest.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | framework/test/gtest/UtilsTest.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | framework/test/gtest/UtilsTest.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed under the Ap... | 29.276316 | 79 | 0.713258 | fmilano |
ab1289ec818c3142e1199a34dc640112e38d8a50 | 1,958 | cpp | C++ | src/transmission/functions.cpp | rnascunha/coap-te | eaff16162b1a524ad06e18dbdc79ca4c8658b3a8 | [
"MIT"
] | null | null | null | src/transmission/functions.cpp | rnascunha/coap-te | eaff16162b1a524ad06e18dbdc79ca4c8658b3a8 | [
"MIT"
] | null | null | null | src/transmission/functions.cpp | rnascunha/coap-te | eaff16162b1a524ad06e18dbdc79ca4c8658b3a8 | [
"MIT"
] | null | null | null | #include "functions.hpp"
#include "port/port.hpp"
#include "internal/helper.hpp"
#include "message/serialize.hpp"
namespace CoAP{
namespace Transmission{
std::size_t
make_response_code_error(CoAP::Message::message const& msg,
std::uint8_t* buffer, std::size_t buffer_len,
CoAP::Message::code err_code, const ch... | 26.459459 | 108 | 0.76047 | rnascunha |
ab139730a4dc535c0a13b63017a601309afd1f4c | 1,969 | hpp | C++ | include/FunctionLogObserver.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/FunctionLogObserver.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/FunctionLogObserver.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | #ifndef H_AW_FUNCTIONLOGOBSERVER
#define H_AW_FUNCTIONLOGOBSERVER
#include <string>
#include <set>
#include <vector>
#include <functional>
#include <mutex>
#include "LogObserver.hpp"
namespace aw {
class FunctionLogObserver : public LogObserver {
public:
typedef std::function<void(LogLevel, const std::string&, ... | 35.8 | 99 | 0.723718 | DangerInteractive |
ab187146ca121528d19f1a9c13f5d4bfa1e9bc0d | 3,120 | hpp | C++ | src/Ports.hpp | miRackModular/VCVRack-Holon.ist | 2d64e00b3c292ac36be9e7d426f66ceaf4fe9acb | [
"CC0-1.0"
] | 15 | 2018-11-06T16:19:29.000Z | 2020-08-09T13:14:26.000Z | src/Ports.hpp | miRackModular/VCVRack-Holon.ist | 2d64e00b3c292ac36be9e7d426f66ceaf4fe9acb | [
"CC0-1.0"
] | 20 | 2018-10-25T11:55:45.000Z | 2021-12-13T16:14:54.000Z | src/Ports.hpp | miRackModular/VCVRack-Holon.ist | 2d64e00b3c292ac36be9e7d426f66ceaf4fe9acb | [
"CC0-1.0"
] | 5 | 2018-12-13T09:06:37.000Z | 2020-01-31T11:12:15.000Z | #ifndef PORTS_HPP
#define PORTS_HPP
#include <stdlib.h>
#include <sys/time.h>
#include <mutex>
#include <thread>
#include <string>
#include "OSCServer.hpp"
#include "MdnsServer.hpp"
#define PORTS_NUM_CHANNELS 8
#define PORTS_MAX_INSTANCE_COUNT 10
#define PORTS_OSC_PORT 9000
#define PORTS_TRIGGER_CY... | 28.363636 | 76 | 0.780769 | miRackModular |
ab1ad854ce0187ea598719439f68b57d1653eaeb | 3,355 | cc | C++ | src/event_listener.cc | rongzeng54/kvrocks | 64f4bedc5e3b8fe83f898af3fc41a69a6d80e57d | [
"MIT"
] | null | null | null | src/event_listener.cc | rongzeng54/kvrocks | 64f4bedc5e3b8fe83f898af3fc41a69a6d80e57d | [
"MIT"
] | null | null | null | src/event_listener.cc | rongzeng54/kvrocks | 64f4bedc5e3b8fe83f898af3fc41a69a6d80e57d | [
"MIT"
] | null | null | null | #include "event_listener.h"
#include <string>
void EventListener::OnCompactionCompleted(rocksdb::DB *db, const rocksdb::CompactionJobInfo &ci) {
LOG(INFO) << "[event_listener/compaction_completed] column family: " << ci.cf_name
<< ", reason: " << static_cast<int>(ci.compaction_reason)
<< ", c... | 48.623188 | 106 | 0.6307 | rongzeng54 |
ab1b2f45c80eb955032c7eb8aaf0701d51aa7d2f | 1,938 | cpp | C++ | days/15/p1/src/main.cpp | mraasvel/aoc2021 | c3b459544828875d7cefb6ee8542251d760ccc29 | [
"MIT"
] | null | null | null | days/15/p1/src/main.cpp | mraasvel/aoc2021 | c3b459544828875d7cefb6ee8542251d760ccc29 | [
"MIT"
] | null | null | null | days/15/p1/src/main.cpp | mraasvel/aoc2021 | c3b459544828875d7cefb6ee8542251d760ccc29 | [
"MIT"
] | null | null | null | #include "include.hpp"
using namespace std;
typedef util::Point<size_t> Point;
typedef util::HashPoint<int> HashPoint;
typedef std::unordered_set<Point, HashPoint> PointSet;
// typedef std::unordered_map<Point, VALUE, HashPoint> PointHash;
struct Map {
Map() : width(0), height(0) {}
size_t Index(Point p) const {... | 20.4 | 66 | 0.639319 | mraasvel |
ab1c45c575bd5128eda6fd9f3c6ddddb14668f3d | 4,007 | cc | C++ | utils/grammar/rules-utils.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/grammar/rules-utils.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/grammar/rules-utils.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | 1 | 2021-03-20T03:40:21.000Z | 2021-03-20T03:40:21.000Z | // Copyright 2020 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 ... | 32.577236 | 79 | 0.63988 | yangzhigang1999 |
ab1c8dcc491110885294d44cc5d789e8c15d996f | 4,864 | cpp | C++ | SpaceShip_ConsoleGame/Lamterengine/Source/LamterEngine/Structures/Game.cpp | JoanOrtiga/SpaceShip_ConsoleGame | 3c0245a5c6bac5f4319d3e4b858c292a3d06c9a6 | [
"MIT"
] | null | null | null | SpaceShip_ConsoleGame/Lamterengine/Source/LamterEngine/Structures/Game.cpp | JoanOrtiga/SpaceShip_ConsoleGame | 3c0245a5c6bac5f4319d3e4b858c292a3d06c9a6 | [
"MIT"
] | null | null | null | SpaceShip_ConsoleGame/Lamterengine/Source/LamterEngine/Structures/Game.cpp | JoanOrtiga/SpaceShip_ConsoleGame | 3c0245a5c6bac5f4319d3e4b858c292a3d06c9a6 | [
"MIT"
] | null | null | null | #include "Game.h"
#include <algorithm>
#include <map>
#include <sstream>
#include <unordered_map>
#include "Collider.h"
#include "../Console/ConsoleController.h"
#include "../XMLParser/XMLManager.h"
namespace Lamter
{
Game::Game() : gameObjects(new std::vector<Lamter::GameObject*>()), addGameObjectsQueue(new std::... | 20.965517 | 136 | 0.666324 | JoanOrtiga |
ab1d1a540190a63a1306f30ebe81bf0065023a50 | 5,984 | cpp | C++ | mtTorrent/Core/Dht/Communication.cpp | RazielXT/mtTorrent | 01faaea8e46886668d52e5c38ee3367ecb19f6ab | [
"MIT"
] | 11 | 2016-03-08T11:49:43.000Z | 2020-05-14T03:12:59.000Z | mtTorrent/Core/Dht/Communication.cpp | RazielXT/mtTorrent | 01faaea8e46886668d52e5c38ee3367ecb19f6ab | [
"MIT"
] | 8 | 2020-05-13T13:16:17.000Z | 2021-01-02T19:59:03.000Z | mtTorrent/Core/Dht/Communication.cpp | RazielXT/mtTorrent | 01faaea8e46886668d52e5c38ee3367ecb19f6ab | [
"MIT"
] | 5 | 2019-04-04T02:08:10.000Z | 2022-03-17T09:02:34.000Z | #include "Dht/Communication.h"
#include "Configuration.h"
#include "utils/HexEncoding.h"
#include "utils/Filesystem.h"
#include <fstream>
mtt::dht::Communication* comm;
#define DHT_LOG(x) WRITE_LOG(LogTypeDht, x)
mtt::dht::Communication::Communication() : responder(*this)
{
udp = UdpAsyncComm::Get();
comm = this;
... | 22.927203 | 135 | 0.68867 | RazielXT |
ab26b53b0d92606ac7c902f6b8b4d6a02bda4fa1 | 6,719 | cpp | C++ | utils/loadImage.cpp | togawamanabu/RoboND-DeepRL-Project | d3705eab15b01c381c1299bd3b5ee78e72339f2c | [
"MIT"
] | 56 | 2018-05-04T04:39:23.000Z | 2021-08-07T20:39:44.000Z | utils/loadImage.cpp | togawamanabu/RoboND-DeepRL-Project | d3705eab15b01c381c1299bd3b5ee78e72339f2c | [
"MIT"
] | 5 | 2018-05-09T22:18:12.000Z | 2020-06-07T20:57:29.000Z | utils/loadImage.cpp | togawamanabu/RoboND-DeepRL-Project | d3705eab15b01c381c1299bd3b5ee78e72339f2c | [
"MIT"
] | 91 | 2018-05-01T03:59:57.000Z | 2021-04-27T09:17:25.000Z | /*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* 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... | 28.231092 | 114 | 0.642953 | togawamanabu |
ab2b1d675b44239704bb9c4434ec28dfefbc485a | 294 | cpp | C++ | 4to/tp35.cpp | TomasDmArg/EEST-N5 | bb295f81d6ec567e2264bac10cef62b0a3bdb042 | [
"MIT"
] | 1 | 2021-06-12T01:48:07.000Z | 2021-06-12T01:48:07.000Z | 4to/tp35.cpp | TomasDmArg/EEST-N5 | bb295f81d6ec567e2264bac10cef62b0a3bdb042 | [
"MIT"
] | null | null | null | 4to/tp35.cpp | TomasDmArg/EEST-N5 | bb295f81d6ec567e2264bac10cef62b0a3bdb042 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool esPrimo(int n){
if (n == 0 || n == 1 || n == 4) return false;
for (int x = 2; x < n / 2; x++){
if (n % x == 0) return false;
}
return true;
}
int main(){
int n; cin >> n;
esPrimo(n) ? cout << "Es primo" : cout << "No es primo";
return 0;
} | 21 | 57 | 0.537415 | TomasDmArg |
ab2b9c06b2cad621daa6d90fe8eba38d3478e66e | 9,302 | cpp | C++ | sdl2/openblock/src/game/states/substates/ingame/PlayerSelect.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/src/game/states/substates/ingame/PlayerSelect.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/src/game/states/substates/ingame/PlayerSelect.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | #include "PlayerSelect.h"
#include "Countdown.h"
#include "FadeInOut.h"
#include "Gameplay.h"
#include "game/AppContext.h"
#include "game/components/Mino.h"
#include "game/components/MinoStorage.h"
#include "game/states/IngameState.h"
#include "game/util/CircularModulo.h"
#include "system/Color.h"
#include "system/Fon... | 35.101887 | 110 | 0.596861 | pdpdds |
ab2ceee1e261b79e86c70b8af9d47ff4bfeca718 | 499 | cpp | C++ | LV-Template/Source/UI-Methods/UI-Paint.cpp | landonviator/LV_Template | 8051a57f8ec301b90536e3550b5b7543920ef40f | [
"MIT"
] | 1 | 2022-02-11T22:48:56.000Z | 2022-02-11T22:48:56.000Z | LV-Template/Source/UI-Methods/UI-Paint.cpp | landonviator/LV_Template | 8051a57f8ec301b90536e3550b5b7543920ef40f | [
"MIT"
] | null | null | null | LV-Template/Source/UI-Methods/UI-Paint.cpp | landonviator/LV_Template | 8051a57f8ec301b90536e3550b5b7543920ef40f | [
"MIT"
] | null | null | null | /*
==============================================================================
UI-Paint.cpp
Created: 24 Oct 2021 1:41:00am
Author: Landon Viator
==============================================================================
*/
#include "../PluginEditor.h"
void LVTemplateAudioProcessorEditor::uiP... | 23.761905 | 80 | 0.430862 | landonviator |
ab2e4e876028e01d9da0281c770f8b4f06a5ef24 | 4,359 | cpp | C++ | osg/Geode.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2019-05-09T14:09:05.000Z | 2022-03-21T01:31:41.000Z | osg/Geode.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | osg/Geode.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2018-05-10T07:54:23.000Z | 2020-01-08T07:37:05.000Z | // Copyright (C) 2016 Gideon May (gideon@borges.xyz)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, a... | 31.817518 | 107 | 0.617573 | gideonmay |
ab2f47b977326d432ca433f54347e8e3ee863dac | 2,545 | hh | C++ | ACAP_linux/3rd/CoMISo/NSolver/BoundConstraint.hh | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 216 | 2018-09-09T11:53:56.000Z | 2022-03-19T13:41:35.000Z | ACAP_linux/3rd/CoMISo/NSolver/BoundConstraint.hh | gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 13 | 2018-10-23T08:29:09.000Z | 2021-09-08T06:45:34.000Z | ACAP_linux/3rd/CoMISo/NSolver/BoundConstraint.hh | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 41 | 2018-09-13T08:50:41.000Z | 2022-02-23T00:33:54.000Z | //=============================================================================
//
// CLASS BoundConstraint
//
//=============================================================================
#ifndef COMISO_BOUNDCONSTRAINT_HH
#define COMISO_BOUNDCONSTRAINT_HH
//== INCLUDES ==========================================... | 31.419753 | 110 | 0.490373 | shubhMaheshwari |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.