hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbdd62d38a7bf704b5643280deadf44d1d0b69b1 | 3,531 | cpp | C++ | src/bounce/colour/factory.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | src/bounce/colour/factory.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | src/bounce/colour/factory.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | #include <cmath>
#include <bounce/colour/colour.hpp>
/**
* Construct a Colour from red, green, blue, and alpha components.
*
* @param r Red component as integer in range 0-255.
* @param g Green component as integer in range 0-255.
* @param b Blue component as integer in range 0-255.
* @param a Alpha component as... | 28.248 | 84 | 0.608893 | cbosoft |
fbde78a2c0a18cd8a0b149fe1e43d016d784dbd9 | 57 | hpp | C++ | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/algorithm/iteration/fold_fwd.hpp>
| 28.5 | 56 | 0.824561 | miathedev |
fbe72457c27be685c36473d4c044cf3c06b2be33 | 6,434 | cpp | C++ | samples/find_skills.cpp | robert-lindsey/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 19 | 2015-11-02T01:28:57.000Z | 2022-03-31T06:14:46.000Z | samples/find_skills.cpp | wpmarinho/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 1 | 2017-04-13T08:18:40.000Z | 2017-04-13T08:18:40.000Z | samples/find_skills.cpp | wpmarinho/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 6 | 2016-11-08T02:18:47.000Z | 2020-12-20T20:18:05.000Z | /*
The MIT License (MIT)
Copyright (c) 2015 Robert Lindsey
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge... | 42.328947 | 208 | 0.688685 | robert-lindsey |
fbeba41c6180654d034034683e1745858fbf062e | 4,556 | cpp | C++ | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | 4 | 2016-04-20T09:40:11.000Z | 2017-05-03T16:10:21.000Z | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | null | null | null | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | 1 | 2022-02-14T16:08:44.000Z | 2022-02-14T16:08:44.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// SimpleExamples.cpp
//
// Copyright (c) 2016 Semenyakin Vladimir (semenyakinVS@gmail.com)
//
// Distributed under the MIT (See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT)
//
///////////////////////... | 22.333333 | 80 | 0.604039 | vsemenyakin |
fbef2e73b429e89c438fa94ed6d69603116738e3 | 543 | hpp | C++ | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | 1 | 2020-07-29T20:42:58.000Z | 2020-07-29T20:42:58.000Z | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null |
// Copyright Ricardo Calheiros de Miranda Cosme 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <coruja/support/signal/signal.hpp>
#include <QObject>
namespace saci { namespace qt { names... | 20.884615 | 61 | 0.694291 | ricardocosme |
fbf0fd20244b9a436c76b3d15fb05eb9bfd0a876 | 3,559 | cpp | C++ | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 29 | 2020-04-13T04:40:35.000Z | 2021-12-17T11:21:35.000Z | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 6 | 2020-03-12T17:40:00.000Z | 2021-01-20T12:15:08.000Z | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 9 | 2020-09-28T05:00:30.000Z | 2022-03-04T02:11:49.000Z | /**
* @file test_arithmetic.cpp
* @author Lee J. O'Riordan (lee.oriordan@ichec.ie)
* @brief Tests for quantum arithmetic using the (QFT) implementation.
* @version 0.1
* @date 2019-09-10
*
* @copyright Copyright (c) 2019
*
*/
//#define CATCH_CONFIG_RUNNER
//#define CATCH_CONFIG_MAIN
#include "catch2/catch.... | 33.261682 | 177 | 0.522338 | ICHEC |
fbf14989c686bd39138739662273650e0e82ed31 | 1,650 | cpp | C++ | lib/Core/Analysis.cpp | SavchenkoValeriy/tau | 91d339ca998698354a5ebe447e9ca9a12cf81a4d | [
"Apache-2.0"
] | 2 | 2021-09-08T07:03:40.000Z | 2021-09-12T18:30:35.000Z | lib/Core/Analysis.cpp | SavchenkoValeriy/tau | 91d339ca998698354a5ebe447e9ca9a12cf81a4d | [
"Apache-2.0"
] | null | null | null | lib/Core/Analysis.cpp | SavchenkoValeriy/tau | 91d339ca998698354a5ebe447e9ca9a12cf81a4d | [
"Apache-2.0"
] | null | null | null | #include "tau/Core/Analysis.h"
#include "tau/Core/Checker.h"
#include "tau/Core/CheckerRegistry.h"
#include "tau/Core/FlowSensitive.h"
#include "tau/Core/StateEventForest.h"
#include <mlir/Pass/Pass.h>
#include <memory>
using namespace tau;
using namespace tau::core;
using namespace mlir;
namespace {
class MainAna... | 31.132075 | 76 | 0.709091 | SavchenkoValeriy |
fbf333c20937358a3fbfbca4d735273dfdc8cf57 | 876 | cpp | C++ | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | 1 | 2022-01-14T11:28:52.000Z | 2022-01-14T11:28:52.000Z | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | null | null | null | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | 1 | 2022-01-16T04:03:22.000Z | 2022-01-16T04:03:22.000Z | #include <cstdint>
#include <iostream>
#include <sstream>
#include <string_view>
#include <vector>
using namespace std;
void miniMaxSum(vector<int> arr);
int main() {
vector<int> arr1 = {1,2,3,4,5};
miniMaxSum(arr1);
vector<int> arr2 = {396285104, 573261094, 759641832, 819230764, 364801279};
miniMax... | 22.461538 | 79 | 0.554795 | cosmicraccoon |
fbf4da4195b971bab3ced48a59650ed1409c4af5 | 2,460 | cpp | C++ | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 24 | 2016-12-03T09:12:43.000Z | 2022-03-29T19:51:48.000Z | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 4 | 2016-12-03T09:14:42.000Z | 2022-03-29T22:02:21.000Z | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 7 | 2018-01-01T09:14:10.000Z | 2022-03-29T21:50:11.000Z | /**********************************************************
DO NOT EDIT
This file was generated from stone specification "errors"
Part of "Ardi - the organizer" project.
osoft4ardi@gmail.com
www.prokarpaty.net
***********************************************************/
#include "gmail/errors/ErrorsErrorInfo.h"
u... | 28.604651 | 128 | 0.662602 | Vadimatorik |
fbf720108d6eecac8dde98a078834605d0b3e9c3 | 21,560 | cpp | C++ | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | /* Pi computation using Chudnovsky's algorithm.
* Copyright 2002, 2005 Hanhong Xue (macroxue at yahoo dot com)
* Slightly modified 2005 by Torbjorn Granlund to allow more than 2G
digits to be computed.
* Slightly adjusted to this framework and C++-ified by Roman Hiestand.
* Redistribution and use in... | 25.975904 | 151 | 0.594573 | grevutiu-gabriel |
fbf90592be1f53883bb92c67228c0a20b858c2dd | 448 | cpp | C++ | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
vector<int>& local(int tail){
vector<int> ret;
ret.push_back(tail);
return ret;
}
void local2(vector<int>& ret){
vector<int> tmp;
tmp.push_back(100);
ret=tmp;
}
int main(){
vector<int> ret = local(3);
for(int i=0;i<ret.size();i++){
cout<<ret[i]<<"\t... | 14 | 32 | 0.616071 | learnMachining |
2200f774972a68cf4589c8bc9a556d2e4273354f | 5,908 | cc | C++ | cpp_src/core/nsselecter/selectiterator.cc | Smolevich/reindexer | 139a27a5f07023af40e08b6f9e9b27abb9bc4939 | [
"Apache-2.0"
] | null | null | null | cpp_src/core/nsselecter/selectiterator.cc | Smolevich/reindexer | 139a27a5f07023af40e08b6f9e9b27abb9bc4939 | [
"Apache-2.0"
] | null | null | null | cpp_src/core/nsselecter/selectiterator.cc | Smolevich/reindexer | 139a27a5f07023af40e08b6f9e9b27abb9bc4939 | [
"Apache-2.0"
] | null | null | null |
#include "selectiterator.h"
#include <algorithm>
#include <cmath>
namespace reindexer {
using std::min;
using std::max;
void SelectIterator::Bind(PayloadType type, int field) {
for (auto &cmp : comparators_) cmp.Bind(type, field);
}
void SelectIterator::Start(bool reverse) {
reverse_ = reverse;
lastIt_ = begin(... | 25.912281 | 111 | 0.602065 | Smolevich |
2201bd69181c37d32eea4b6aaa03b91a7e6e322e | 680 | cpp | C++ | Vijos/1979.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Vijos/1979.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Vijos/1979.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include<cstdio>
using namespace std;
int n;
int minn = 10000000;
int t[200005] = {0};
int s[200005] = {0};
int can[200005] = {0};
int c[200005] = {0};
int tt = -1;
inline int min(int a, int b)
{
if (a < b)return a;
return b;
}
void dfs(int now, int step)
{
if (can[now] == tt)
{
minn = min(minn, step - s[now])... | 12.592593 | 34 | 0.464706 | HeRaNO |
220207339b9b1875c3927fda39ba5bc6bbba2e41 | 252 | cpp | C++ | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | 1 | 2020-09-07T12:19:27.000Z | 2020-09-07T12:19:27.000Z | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n, cont, cont2=1;
scanf("%d",&n);
for(cont=1; cont <= n; cont++){
for(int c=1; c <= 3; c++){
printf("%d ",cont2);
cont2++;
}
printf("PUM\n");
cont2++;
}
return 0;
}
| 11.454545 | 32 | 0.503968 | yunger7 |
22041b9172a3b515906ba2e835c0b5fa2a8b79b4 | 4,016 | cpp | C++ | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | 1 | 2022-03-01T22:55:59.000Z | 2022-03-01T22:55:59.000Z | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Whitley Software Services, 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 32.918033 | 98 | 0.676544 | JWhitleyWork |
220dfccf2f990d477259c634d97fa0fad7296a57 | 10,831 | cpp | C++ | C++ Programs/deque.cpp | Anshhdeep/Hacktoberfest2020-Expert | 8745380deb626d1a06faf5a60ca37081aaeab426 | [
"MIT"
] | 77 | 2020-10-01T10:06:59.000Z | 2021-11-08T08:57:18.000Z | C++ Programs/deque.cpp | Anshhdeep/Hacktoberfest2020-Expert | 8745380deb626d1a06faf5a60ca37081aaeab426 | [
"MIT"
] | 46 | 2020-09-27T04:55:36.000Z | 2021-05-14T18:49:06.000Z | C++ Programs/deque.cpp | Anshhdeep/Hacktoberfest2020-Expert | 8745380deb626d1a06faf5a60ca37081aaeab426 | [
"MIT"
] | 327 | 2020-09-26T17:06:03.000Z | 2021-10-09T06:04:39.000Z | /*
Write a program to implement input, and output restricted deque.
Note that deque can be input restricted or output restricted.
It cannot be input restricted as well as output restricted at the same time.
Your program should have the option to implement as input restricted deque or output restricted deque. Dep... | 39.819853 | 149 | 0.444096 | Anshhdeep |
220e212eb0d699a0d8f86461454b89dbb0ddc22f | 452 | cpp | C++ | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | 2 | 2020-10-14T19:40:42.000Z | 2020-10-21T21:35:19.000Z | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | null | null | null | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | 1 | 2020-10-14T19:40:56.000Z | 2020-10-14T19:40:56.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
stack<int> nums;
int n, soma = 0;
cin >> n;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
if (x == 0)
{
nums.pop();
}
else
{
nums.push(x);
}
}... | 11.894737 | 31 | 0.35177 | tiago-rodrigues1 |
220e75eb2b22e35b2d13695a9388f9ce08d2a788 | 3,415 | cc | C++ | c/subdoc-retrieving.cc | RichardSmedley/devguide-examples | 604d7a03bf7f8dbceed71cb0784b5558ed92b5cf | [
"Apache-2.0"
] | 60 | 2015-10-08T02:58:03.000Z | 2021-08-08T17:01:27.000Z | c/subdoc-retrieving.cc | RichardSmedley/devguide-examples | 604d7a03bf7f8dbceed71cb0784b5558ed92b5cf | [
"Apache-2.0"
] | 10 | 2015-10-29T21:00:20.000Z | 2018-06-28T11:07:00.000Z | c/subdoc-retrieving.cc | RichardSmedley/devguide-examples | 604d7a03bf7f8dbceed71cb0784b5558ed92b5cf | [
"Apache-2.0"
] | 50 | 2015-10-07T20:39:12.000Z | 2021-07-12T15:53:26.000Z | #include <libcouchbase/couchbase.h>
#if LCB_VERSION < 0x020508
#error "Example requires libcouchbase 2.5.8 or greater!"
#endif
#include <libcouchbase/subdoc.h>
#include <string>
#include <vector>
struct Result {
std::string value;
lcb_error_t status;
Result() : status(LCB_SUCCESS) {}
};
struct SubdocResu... | 29.95614 | 113 | 0.647731 | RichardSmedley |
81fb7d84458669303bff3c24e1cb72a066fc3845 | 5,531 | cpp | C++ | utility/IniFile.cpp | oldjun/yazi-frame | c5102707d60a40894a4faa0a9b073e6933ea9515 | [
"MIT"
] | null | null | null | utility/IniFile.cpp | oldjun/yazi-frame | c5102707d60a40894a4faa0a9b073e6933ea9515 | [
"MIT"
] | null | null | null | utility/IniFile.cpp | oldjun/yazi-frame | c5102707d60a40894a4faa0a9b073e6933ea9515 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <algorithm>
#include "IniFile.h"
using namespace yazi::utility;
Value::Value()
{
}
Value::Value(bool value)
{
*this = value;
}
Value::Value(int value)
{
*this = value;
}
Value::Value(double value)
{
*this = value;
}
Value::Value(const string & value) : m... | 20.63806 | 92 | 0.547821 | oldjun |
81fc5c9dd013afe3c3020854ec13a328e15204b0 | 12,248 | cpp | C++ | Engine/Layout/Fonts/TextDrawer.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 47 | 2018-04-27T02:16:26.000Z | 2022-02-28T05:21:24.000Z | Engine/Layout/Fonts/TextDrawer.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 2 | 2018-11-13T18:46:41.000Z | 2022-03-12T00:04:44.000Z | Engine/Layout/Fonts/TextDrawer.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 6 | 2019-08-10T21:56:23.000Z | 2020-10-21T11:18:29.000Z | /****************************************************************************
// Usagi Engine, Copyright © Vitei, Inc. 2013
****************************************************************************/
#include "Engine/Common/Common.h"
#include "Engine/Layout/Fonts/Text.h"
#include "Engine/Graphics/RenderConsts.h"
#in... | 29.301435 | 112 | 0.693093 | vitei |
81ff2d102aa8bd3e3e38987b8b412ee8afa94673 | 2,370 | cpp | C++ | ion/src/device/shared/drivers/battery.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,442 | 2017-08-28T19:39:45.000Z | 2022-03-30T00:56:14.000Z | ion/src/device/shared/drivers/battery.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,321 | 2017-08-28T23:03:10.000Z | 2022-03-31T19:32:17.000Z | ion/src/device/shared/drivers/battery.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 421 | 2017-08-28T22:02:39.000Z | 2022-03-28T20:52:21.000Z | #include "battery.h"
#include <drivers/config/battery.h>
/* To measure the battery voltage, we're using the internal ADC. The ADC works
* by comparing the input voltage to a reference voltage. The only fixed voltage
* we have around is 2.8V, so that's the one we're using as a refrence. However,
* and ADC can only m... | 35.373134 | 115 | 0.704219 | VersiraSec |
c300782df7efba0e00f703054f85fb02ca7e50d7 | 2,064 | cpp | C++ | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 7 | 2016-07-06T14:20:00.000Z | 2021-02-26T02:31:27.000Z | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 1 | 2021-04-19T09:47:38.000Z | 2021-04-19T14:17:29.000Z | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 1 | 2020-07-11T14:13:55.000Z | 2020-07-11T14:13:55.000Z | #include "df_bitmap.h"
#include "df_window.h"
int main()
{
CreateWin(800, 600, WT_WINDOWED, "Clipping test");
BitmapClear(g_window->bmp, g_colourBlack);
// Set clip rect as 100,150 -> 700,450
RectOutline(g_window->bmp, 100, 150, 600, 300, Colour(255, 50, 50));
SetClipRect(g_window->b... | 27.52 | 73 | 0.600775 | kayabe |
c300cf79399c9b3eb6d83ee34e142d7a4d2058ce | 60 | cpp | C++ | Classes/src/Vector.cpp | fatih-iver-2016400264/The-C-Plus-Plus-Programming-Language | dae68e933ba3f95faea65d5b681d1df4fb212f88 | [
"MIT"
] | null | null | null | Classes/src/Vector.cpp | fatih-iver-2016400264/The-C-Plus-Plus-Programming-Language | dae68e933ba3f95faea65d5b681d1df4fb212f88 | [
"MIT"
] | null | null | null | Classes/src/Vector.cpp | fatih-iver-2016400264/The-C-Plus-Plus-Programming-Language | dae68e933ba3f95faea65d5b681d1df4fb212f88 | [
"MIT"
] | null | null | null | #include "Vector.h"
Vector::~Vector()
{
//dtor
}
| 8.571429 | 20 | 0.5 | fatih-iver-2016400264 |
c30511f76344c76e2faff78924ce385caf102e3c | 7,744 | cpp | C++ | src/testing/decoder/main.cpp | myrjola/cee_scrap | f0c9cee7545956aa3b9abf2654a08085010589b7 | [
"MIT"
] | null | null | null | src/testing/decoder/main.cpp | myrjola/cee_scrap | f0c9cee7545956aa3b9abf2654a08085010589b7 | [
"MIT"
] | null | null | null | src/testing/decoder/main.cpp | myrjola/cee_scrap | f0c9cee7545956aa3b9abf2654a08085010589b7 | [
"MIT"
] | null | null | null | /*
* Copyright:
* Gabriel Hjort Blindell, 2012
*
* 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, m... | 30.488189 | 80 | 0.573605 | myrjola |
c306e9a157712ad3bf6e29adefaf72eb7c4ab6c7 | 684 | hpp | C++ | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef POINTLIGHTCOMPONENT_H_
#define POINTLIGHTCOMPONENT_H_
#include "graphics/PointLightHandle.hpp"
#include "ecs/Serialization.hpp"
namespace ice_engine
{
namespace ecs
{
struct PointLightComponent
{
PointLightComponent() = default;
PointLightComponent(graphics::PointLightHandle pointLightHandle) : pointLig... | 15.545455 | 102 | 0.773392 | icebreakersentertainment |
c307d022ce3cf615d1a42b5c55b49fcd1dcd518b | 2,457 | hpp | C++ | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | 1 | 2018-05-23T10:57:32.000Z | 2018-05-23T10:57:32.000Z | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | #pragma once
namespace Util {
Vec2 unitVector(const Vec2& v) {
double len = sqrt(v.x * v.x + v.y * v.y);
return Vec2{v.x / len, v.y / len};
}
template<typename T>
std::function<T(double)> EasingFunction(T (*easeFunc)(double f(double), const T& , const T& , const ... | 29.60241 | 150 | 0.457875 | cs3238-tsuzu |
c309db8c95080cfdb1fae4b86159bd896941f456 | 81 | hpp | C++ | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
namespace NWNXLib {
namespace API {
class z_free_func { };
}
}
| 6.75 | 22 | 0.666667 | acaos |
c3166ffc9c7f6797078a0b8521285d8280f0a787 | 1,650 | cpp | C++ | admin/services/drizzle/service/dload.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/services/drizzle/service/dload.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/services/drizzle/service/dload.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2002 Microsoft Corporation
Module Name:
dload.c
Abstract:
This file implements delay-load error handling for QMGR.DLL
--*/
#include "qmgrlib.h"
#include <delayimp.h>
#include "dload.tmh"
FARPROC
WINAPI
BITS_DelayLoadFailureHook(
UINT unReason,
PDelayLoad... | 24.264706 | 87 | 0.650909 | npocmaka |
c3201a16b03b17297369d5bf235a4aa6e51f4ffc | 2,167 | cpp | C++ | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | //question 4; redo
//quick sort a linked list (partitian around value x)
/*
* Write code to partition linked list around a value x, such that
* nodes less than x come before all the nodes greater than or equal to x.
* If x is in the list, the values of x only need to be after the elements less
* than x.
... | 23.813187 | 81 | 0.507614 | kgajwan1 |
c32200cde0d232285fb96b51716a7712689c9e18 | 820 | cpp | C++ | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | #include "Hashtable.h"
#define SIZE 10
#define PRIME 7
int HashTable::hash(int key)
{
return key % SIZE;
}
int HashTable::primeHash(int key)
{
return PRIME - (key % PRIME);
}
int HashTable::doubleHash(int key)
{
int idx = hash(key);
int i = 0;
while (ht[(hash(idx) + i * primeHash(key)) % SIZE] !... | 16.4 | 62 | 0.531707 | justanindieguy |
c3220f6ddf60694b9b83a77a1d49ba0c7968633c | 658 | hpp | C++ | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | 1 | 2016-10-11T11:46:44.000Z | 2016-10-11T11:46:44.000Z | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | null | null | null | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | 1 | 2021-08-12T07:56:48.000Z | 2021-08-12T07:56:48.000Z | /*
* QNXIPCUnServer.hpp
*
* Created on: 10.05.2014
* Author: Art
*/
#ifndef QNXIPCUNSERVER_HPP_
#define QNXIPCUNSERVER_HPP_
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
... | 18.277778 | 50 | 0.658055 | SKART1 |
c322730a0f7abfc245f70857fb60697a6f79a040 | 4,584 | cpp | C++ | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | 1 | 2021-11-08T23:02:22.000Z | 2021-11-08T23:02:22.000Z | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | null | null | null | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | 1 | 2021-11-08T23:02:29.000Z | 2021-11-08T23:02:29.000Z | /**
* @file trajectoryError.cpp
* @author Sijie Shen (kiorisyshen@gmail.com)
* @brief
* @version 0.1
* @date 2020-10-29
*
* @copyright Copyright (c) 2020
*
*/
#include "config.hpp"
#include "common/glfwEntry.hpp"
#include <sophus/se3.hpp>
#include <iostream>
#include <fstream>
using namespace Sophus;
usi... | 32.510638 | 134 | 0.552356 | kiorisyshen |
c328fe04feac3a3d1fc369370f2959dd38574cf1 | 43,251 | cpp | C++ | src/CQChartsPivotPlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsPivotPlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsPivotPlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | #include <CQChartsPivotPlot.h>
#include <CQChartsView.h>
#include <CQChartsAxis.h>
#include <CQChartsTip.h>
#include <CQChartsDataLabel.h>
#include <CQChartsUtil.h>
#include <CQChartsDrawUtil.h>
#include <CQChartsHtml.h>
#include <CQChartsModelDetails.h>
#include <CQChartsPaintDevice.h>
#include <CQCharts.h>
#include ... | 24.449406 | 100 | 0.620795 | Qt-Widgets |
c32cba259a53fa074573c971503934a64a51331a | 1,446 | cc | C++ | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | #include "rb_tree.hh"
#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <chrono>
#include <set>
int main(int argc, char ** argv) {
rb_tree<int> a = { 9,8,7,6,5,4,3,2,1,10 };
char break_char = '/';
int i = 1;
for(; i < argc && argv[i][0] != break_char; ++i) {
a... | 21.909091 | 100 | 0.470954 | rtpax |
c33662713fcaca261702640c6f7aee9e808fdc48 | 13,633 | hpp | C++ | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 1 | 2021-07-30T14:02:43.000Z | 2021-07-30T14:02:43.000Z | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | null | null | null | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 2 | 2017-01-27T16:53:08.000Z | 2017-08-27T07:28:43.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Idlib: A C++ utility library
// Copyright (C) 2017-2018 Michael Heilmann
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any dama... | 39.515942 | 146 | 0.570527 | egoboo |
c33c79a35981a48ab55c1d82b0fbe2180510ab1d | 11,741 | cpp | C++ | SimTKmath/tests/EigenTest.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 1,916 | 2015-01-01T09:35:21.000Z | 2022-03-30T11:38:43.000Z | SimTKmath/tests/EigenTest.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 389 | 2015-01-01T01:13:51.000Z | 2022-03-16T15:30:58.000Z | SimTKmath/tests/EigenTest.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 486 | 2015-01-02T10:25:49.000Z | 2022-03-16T15:31:40.000Z | /* -------------------------------------------------------------------------- *
* SimTK Simbody: SimTKmath *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 37.874194 | 135 | 0.531556 | e-schumann |
c33cd058c67c3ab6cef9bf4871158ee48e0ebe88 | 3,387 | cpp | C++ | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | 5 | 2022-02-18T17:08:28.000Z | 2022-02-26T15:51:49.000Z | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | null | null | null | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | null | null | null | #include "CvoltonOptionsLayer.h"
#include "../managers/CvoltonManager.h"
#include <cocos2d.h>
#include <gd.h>
using namespace cocos2d;
using namespace gd;
CvoltonOptionsLayer* CvoltonOptionsLayer::create(){
auto ret = new CvoltonOptionsLayer();
if (ret && ret->init()) {
//robert 1 :D
ret->aut... | 32.257143 | 152 | 0.683791 | Cvolton |
c3401344afd2d9979a23234067c7f5be7ab122f1 | 4,986 | hpp | C++ | lib/swig/cpp_wrappers/item_list.hpp | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | lib/swig/cpp_wrappers/item_list.hpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | lib/swig/cpp_wrappers/item_list.hpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | /*
* Copyright (c) 2017-2018 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#ifndef CPP_WRAPPERS_ITEM_LIST_HPP
#define CPP_WRAPPERS_ITEM_LIST_HPP
#include <pkmn/config.hpp>
#include <pkmn/exce... | 26.380952 | 77 | 0.484958 | ncorgan |
c341672ffe47f504f68b477b3cc52b299f00dc60 | 1,289 | cpp | C++ | uva/974 - Kaprekar Numbers.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/974 - Kaprekar Numbers.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/974 - Kaprekar Numbers.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | #include <iostream>
#define MAX 40001
using namespace std;
int kaprekar[MAX];
void pre_calc()
{
int first,second,square,multiplier;
int i;
for(i = 2 ; i < MAX ; i++)
{
second = 0;
square = i*i;
for(first = square,multiplier = 1 ; first > 0 ; multiplier *= 10)
... | 18.681159 | 74 | 0.395656 | taufique71 |
c3489742c80f6506fdda0a7904ee10525297d75f | 1,889 | hpp | C++ | willow/include/popart/op/zeros.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/include/popart/op/zeros.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/include/popart/op/zeros.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#ifndef GUARD_NEURALNET_ZEROS_HPP
#define GUARD_NEURALNET_ZEROS_HPP
#include <memory>
#include <vector>
#include <popart/op/shapeorlike.hpp>
namespace popart {
class ZerosBaseOp : public ShapeOrLikeOp {
public:
ZerosBaseOp(const OperatorIdentifier &opid_,
... | 24.217949 | 78 | 0.704076 | gglin001 |
c34ec6a6828b95af6ec55993e26e860b2442fe57 | 1,329 | cpp | C++ | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVMtlBillboard.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVMtlBillboard.h"
#include "../mtl/SVTexture.h"
#include "../rendercore/SVRenderer.h"
#include "../basesys/SVCameraMgr.h"
#include "../node/SVCameraNode.h"
SVMtlBillboard::SVMtlBillbo... | 22.913793 | 70 | 0.708804 | SVEChina |
c34fda69b78394c1a198ecd33a3406d798f19404 | 5,625 | cpp | C++ | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | 1 | 2020-05-28T07:04:17.000Z | 2020-05-28T07:04:17.000Z | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | null | null | null | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | null | null | null | #include "CADialogueInstanceComponent.h"
#include <Stats/Stats.h>
#include "CADialogueSubsystem.h"
#include "CADialogueSpeakerDataAsset.h"
UCADialogueInstanceComponent::UCADialogueInstanceComponent()
: bRegisterOnBeginPlay(true)
, bDeregisterOnEndPlay(true)
, bCheckQueueDuringTick(true)
{
SetTickGrou... | 30.241935 | 139 | 0.7888 | cmacnair |
c3564f826b0b4973701267def4a3df16588d0c0f | 1,947 | hpp | C++ | src/LCD/ILCD.hpp | Gegel85/GBEmulator | 9899223d63d08bf77848c89a14f69221722adcc7 | [
"MIT"
] | null | null | null | src/LCD/ILCD.hpp | Gegel85/GBEmulator | 9899223d63d08bf77848c89a14f69221722adcc7 | [
"MIT"
] | 6 | 2019-11-27T18:14:52.000Z | 2021-07-27T14:42:21.000Z | src/LCD/ILCD.hpp | Gegel85/GBEmulator | 9899223d63d08bf77848c89a14f69221722adcc7 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2019
** GBEmulator
** File description:
** ILCD.hpp
*/
#ifndef GBEMULATOR_ILCD_HPP
#define GBEMULATOR_ILCD_HPP
#include <SFML/Graphics.hpp>
#include <vector>
namespace GBEmulator::Debugger {
class Debugger;
}
namespace GBEmulator::Graphics
{
/*!
* @struct RGBColor
* @brief Couleur d'aff... | 23.178571 | 79 | 0.67283 | Gegel85 |
c358ba043b1e7e9d30ea0243fb7949c1615cb752 | 5,634 | hpp | C++ | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | 1 | 2022-02-22T12:22:11.000Z | 2022-02-22T12:22:11.000Z | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | null | null | null | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | null | null | null | /**
* @file Query.hpp
* @author ZerethjiN
* @brief Get and iterate queries by necessary Component,
* Filter and Exclusion Type.
* @version 0.1
* @date 2022-02-22
*
* @copyright Copyright (c) 2022 - ZerethjiN
*
*/
#ifndef ZERENGINE_VIEW_HPP
#define ZERENGINE_VIEW_HPP
#include <vector>
#includ... | 37.56 | 206 | 0.538871 | ZerethjiN |
c3593916217254776807a6bef5895a34460f6c3c | 903 | cc | C++ | tools/baulk/commands.extract.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | tools/baulk/commands.extract.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | tools/baulk/commands.extract.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | #include "baulk.hpp"
#include <bela/terminal.hpp>
#include <baulk/archive.hpp>
#include "extractor.hpp"
#include "commands.hpp"
namespace baulk::commands {
void usage_extract() {
bela::FPrintF(stderr, LR"(Usage: baulk extract [archive] [destination]
Extract files from archive. alias 'e'.
Supported formats:
zip (... | 23.763158 | 91 | 0.709856 | dandycheung |
c359fbc6a1bcf947c5f548f6baa9e55851ffaa11 | 867 | cpp | C++ | src/bs_gstl/src/covariance_param.cpp | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 70 | 2015-01-21T12:24:50.000Z | 2022-03-16T02:10:45.000Z | src/bs_gstl/src/covariance_param.cpp | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 8 | 2015-04-22T13:14:30.000Z | 2021-11-23T12:16:32.000Z | src/bs_gstl/src/covariance_param.cpp | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 18 | 2015-02-15T18:04:31.000Z | 2021-01-16T08:54:32.000Z | /*
Copyright 2009 HPGL Team
This file is part of HPGL (High Perfomance Geostatistics Library).
HPGL is free software: you can redistribute it and/or modify it under the terms of the BSD License.
You should have received a copy of the BSD License along with HPGL.
*/
#include "stdafx.h"
#include ... | 23.432432 | 103 | 0.683968 | hpgl |
c35a99931796bf519defa205d44427c647516e33 | 928 | cpp | C++ | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | 5 | 2021-11-19T03:23:54.000Z | 2022-03-10T11:39:39.000Z | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | null | null | null | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | null | null | null | #include <filesystem>
#include <iostream>
#include "zipper.h"
namespace fs = std::filesystem;
int main() {
{
zipper::Zip zip("test_copy.zip");
zipper::enumerate("test.zip", [&zip](auto &unzip) {
if (unzip.is_dir()) {
zip.add_dir(unzip.file_path());
} else {
std::string buf;
... | 21.090909 | 55 | 0.539871 | yhirose |
c35f89dee167b4e2d5cf609194e855f49c31c594 | 1,023 | cpp | C++ | dp/pallindromic_substring/c++/pallindromic_substring.cpp | avi-pal/al-go-rithms | 5167a20f1db7b366ff19f2962c1746a02e4f5067 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | dp/pallindromic_substring/c++/pallindromic_substring.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | dp/pallindromic_substring/c++/pallindromic_substring.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | #include <bits/stdc++.h>
using namespace std;
vector< vector<bool> > dp;
string s;
void preprocess() {
int n = s.size();
//single letter is always a pallindrome
for(int i = 0; i < n; ++i)
dp[i][i] = true;
//if adjacent letters are same then they are pallindrome
for(int i = 0; i < n - 1; ++i)
if(s[i] == s[... | 20.058824 | 61 | 0.562072 | avi-pal |
c36257953b0843cbdd42c39cec7789e738846239 | 271 | cpp | C++ | src/stp/common/spharmonics.cpp | SKA-ScienceDataProcessor/FastImaging | 8103fb4d20434ffdc45dee7471dafc6be66354bb | [
"Apache-2.0"
] | 7 | 2017-02-13T11:21:21.000Z | 2020-07-20T16:07:39.000Z | src/stp/common/spharmonics.cpp | SKA-ScienceDataProcessor/FastImaging | 8103fb4d20434ffdc45dee7471dafc6be66354bb | [
"Apache-2.0"
] | 15 | 2016-09-11T11:14:35.000Z | 2017-08-29T14:21:46.000Z | src/stp/common/spharmonics.cpp | SKA-ScienceDataProcessor/FastImaging | 8103fb4d20434ffdc45dee7471dafc6be66354bb | [
"Apache-2.0"
] | 4 | 2016-10-28T16:17:08.000Z | 2021-12-22T12:11:12.000Z | // Fix bug in spherical harmonics library (CHECK was not defined when NDEBUG is defined)
namespace sh {
namespace {
#ifdef NDEBUG
#define CHECK(condition, message) \
do { \
} while (false)
#endif
}
}
#include "sh/spherical_harmonics.cc"
| 20.846154 | 88 | 0.645756 | SKA-ScienceDataProcessor |
c36483081ab57078b5563e184ff0565a2b56cf83 | 987 | cpp | C++ | src/xml_test.cpp | IU-nanoBio/pc4nanobio | f9412bc16061009a08fd3640d2886d5b78510918 | [
"BSD-3-Clause"
] | null | null | null | src/xml_test.cpp | IU-nanoBio/pc4nanobio | f9412bc16061009a08fd3640d2886d5b78510918 | [
"BSD-3-Clause"
] | null | null | null | src/xml_test.cpp | IU-nanoBio/pc4nanobio | f9412bc16061009a08fd3640d2886d5b78510918 | [
"BSD-3-Clause"
] | null | null | null | #include "./BioFVM/pugixml.hpp"
#include "./beta/PhysiCell_pugixml.h"
// using namespace BioFVM;
using namespace PhysiCell;
// g++ -o test xml_test.cpp ./BioFVM/pugixml.cpp ./beta/PhysiCell_pugixml.cpp
int main( int argc, char* argv[] )
{
load_PhysiCell_config_file( "./config/PhysiCell_settings.xml" );
pu... | 21.456522 | 77 | 0.622087 | IU-nanoBio |
c3677928e71409ac330fab4a18a1844895088577 | 1,150 | cc | C++ | build/ARM/python/_m5/param_BiModeBP.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/python/_m5/param_BiModeBP.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/python/_m5/param_BiModeBP.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "params/BiModeBP.hh"
#include "python/pybind11/core.hh"
#include "sim/init.hh"
#include "sim/sim_object.hh"
#include "cpu/pred/bi_mode.hh"
#include "base/types.hh"
#include "base/types.hh"
#include "base/types.hh"
#include "base/types.hh"
namespace py... | 31.944444 | 121 | 0.71913 | msharmavikram |
c37116e69d9b05bdeb8af656b9608d5b9d667512 | 20,878 | cpp | C++ | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.08.03 - Victor Dods
#include <iomanip>
#include <iostream>
#include <limits>
#include <lvd/req.hpp>
#include <lvd/test.hpp>
#include "sept/ArrayTerm.hpp"
#include "sept/ctl/ClearOutput.hpp"
#include "sept/ctl/EndOfFile.hpp"
#include "sept/ctl/Output.hpp"
#include "sept/ctl/RequestSyncInput.hpp"
#include "sept/... | 46.190265 | 196 | 0.727991 | vdods |
c37a89150a835d992693a41c3a9ae351f4ab6278 | 35,254 | cpp | C++ | Source/ANGLE/libANGLE/renderer/d3d/d3d11/texture_format_table.cpp | wpbest/xpf | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | Source/ANGLE/libANGLE/renderer/d3d/d3d11/texture_format_table.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | Source/ANGLE/libANGLE/renderer/d3d/d3d11/texture_format_table.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z |
//
// Copyright 2015 The ANGLE 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.
//
// texture_format_table:
// Queries for full textureFormat information based in internalFormat
//
#include "libANGLE/renderer/d3d/d3d11/text... | 84.949398 | 267 | 0.631162 | wpbest |
c37b3cf792da318764b4da0ace9ba4f7d52d9c9d | 1,854 | hpp | C++ | modules/cdm_websocketpp.hpp | TyRoXx/cdm | 758cb59106c6acdc987b6f859387db2398415127 | [
"MIT"
] | 4 | 2015-11-01T20:41:55.000Z | 2021-08-04T00:49:37.000Z | modules/cdm_websocketpp.hpp | TyRoXx/cdm | 758cb59106c6acdc987b6f859387db2398415127 | [
"MIT"
] | 1 | 2015-10-29T21:33:53.000Z | 2015-10-29T21:33:53.000Z | modules/cdm_websocketpp.hpp | TyRoXx/cdm | 758cb59106c6acdc987b6f859387db2398415127 | [
"MIT"
] | 1 | 2021-08-04T00:49:38.000Z | 2021-08-04T00:49:38.000Z | #ifndef CDM_WEBSOCKETPP_HPP
#define CDM_WEBSOCKETPP_HPP
#include "cdm_boost.hpp"
#include <ventura/file_operations.hpp>
namespace cdm
{
struct websocketpp_paths
{
ventura::absolute_path include;
ventura::absolute_path boost_root;
};
inline websocketpp_paths install_websocketpp(ventura::absolute_path const &o... | 39.446809 | 116 | 0.666127 | TyRoXx |
c37c29b2f3e47059339f0213dc29fbfcf42ed057 | 1,188 | cpp | C++ | problems/add_two_numbers_ii/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/add_two_numbers_ii/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/add_two_numbers_ii/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | class Solution {
public:
ListNode * addTwoNumbers(ListNode * l1, ListNode * l2) {
string s1, s2;
while (l1 != NULL) {
s1.push_back(l1 -> val + '0');
l1 = l1 -> next;
}
while (l2 != NULL) {
s2.push_back(l2 -> val... | 25.826087 | 65 | 0.31734 | sauravchandra1 |
c37e2006e3a232abfc5fec05a3915259897ddd1e | 2,287 | cpp | C++ | Neander/NeanderProcessor.cpp | pietrocaselani/Neander | 9c79a001f4ed2496256c90e546ce33edc881f85f | [
"Apache-2.0"
] | 1 | 2018-01-30T20:25:27.000Z | 2018-01-30T20:25:27.000Z | Neander/NeanderProcessor.cpp | pietrocaselani/Neander | 9c79a001f4ed2496256c90e546ce33edc881f85f | [
"Apache-2.0"
] | null | null | null | Neander/NeanderProcessor.cpp | pietrocaselani/Neander | 9c79a001f4ed2496256c90e546ce33edc881f85f | [
"Apache-2.0"
] | null | null | null | //
// Created by Pietro Caselani on 11/13/15.
//
#include "NeanderProcessor.h"
#include "NOP.h"
#include "STA.h"
#include "LDA.h"
#include "HLT.h"
#include "NOT.h"
#include "OR.h"
#include "AND.h"
#include "ADD.h"
#include "JMP.h"
#include "JN.h"
#include "JZ.h"
using namespace Neander;
NeanderProcessor::NeanderProc... | 26.287356 | 79 | 0.729777 | pietrocaselani |
c37e5885f4473f9993d4de42ebb9c546a2d82948 | 1,451 | cpp | C++ | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | 1 | 2021-10-20T07:44:36.000Z | 2021-10-20T07:44:36.000Z | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | #include "snabl/call.hpp"
#include "snabl/env.hpp"
#include "snabl/parser.hpp"
#include "snabl/run.hpp"
namespace snabl {
void Env::run(string_view in) {
const string s(in);
istringstream ss(s);
run(ss);
}
void Env::run(istream &in) {
Forms fs;
Parser(*this).parse(in, fs);
const auto start_pc(_ops.siz... | 21.028986 | 74 | 0.607857 | ricelang |
c380295cbd43ceb7225b5d3f146080d2d90d3a16 | 1,737 | cpp | C++ | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 2 | 2021-02-04T08:37:57.000Z | 2021-12-03T16:02:52.000Z | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 21 | 2020-05-06T12:52:11.000Z | 2022-03-31T13:11:23.000Z | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 1 | 2022-01-03T03:53:50.000Z | 2022-01-03T03:53:50.000Z | #include "obscura/Target_Crystal.hpp"
#include <cmath>
#include "libphysica/Natural_Units.hpp"
#include "libphysica/Utilities.hpp"
#include "version.hpp"
namespace obscura
{
using namespace libphysica::natural_units;
Crystal::Crystal(std::string target)
: name(target), dE(0.1 * eV), dq(0.02 * aEM * mElectron)
{
d... | 29.948276 | 108 | 0.653425 | temken |
c380ec117a6bb44fd41cceb31bbbdf7a78c79257 | 1,263 | cpp | C++ | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#include <sge/font/object_fwd.hpp>
#include <sge/font/string.hpp>
#include <sge/font/text_parameter... | 32.384615 | 61 | 0.70388 | cpreh |
c381b8b43c8df81ec35eff19a352d5be3333009e | 188 | cpp | C++ | ffmpeg/src/main/cpp/TXCallBack.cpp | taxiao213/ndk_project | 3c7f227b4d7d11190a967b824d5f1e349003146d | [
"Apache-2.0"
] | 6 | 2021-04-29T09:52:49.000Z | 2021-12-23T07:48:19.000Z | ffmpeg/src/main/cpp/TXCallBack.cpp | taxiao213/ndk_project | 3c7f227b4d7d11190a967b824d5f1e349003146d | [
"Apache-2.0"
] | null | null | null | ffmpeg/src/main/cpp/TXCallBack.cpp | taxiao213/ndk_project | 3c7f227b4d7d11190a967b824d5f1e349003146d | [
"Apache-2.0"
] | 1 | 2021-06-29T03:52:27.000Z | 2021-06-29T03:52:27.000Z | //
// Created by yin13 on 2021/5/25.
//
#include "TXCallBack.h"
TXCallBack::TXCallBack(int buffer_size, void *buffer) {
this->buffer_size = buffer_size;
this->buffer = buffer;
}
| 17.090909 | 55 | 0.675532 | taxiao213 |
c38336fdb4fd6bbc709fc4823139cac01261e7da | 1,605 | cpp | C++ | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | #include "pch.h"
#include "leetcode-cpp/p2/p2_list_node.h" // ListNode
#include "leetcode-cpp/p2/p2_solution.h"
namespace leetcode {
namespace p2 {
ListNode *Solution::to_list(const std::vector<int> &digits) noexcept {
ListNode *root_node{nullptr};
ListNode *previous_node{nullptr};
for (const auto &digit : d... | 21.986301 | 78 | 0.677882 | ch200c |
c384afa3273c20a22e23627549d07bfcd06ed238 | 3,127 | cpp | C++ | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | #include "PlaceholderParser.hpp"
namespace Slic3r {
PlaceholderParser::PlaceholderParser()
{
// TODO: port these methods to C++, then call them here
// this->apply_env_variables();
// this->update_timestamp();
}
PlaceholderParser::~PlaceholderParser()
{
}
void PlaceholderParser::apply_config(DynamicPr... | 25.842975 | 72 | 0.560921 | hroncok |
c38f497f127a3abcfcec78484fa01201ebd286b0 | 24,200 | cpp | C++ | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | // TODO/current state:
// - pressure correction seems not to work for larger dt (it at least
// seems like that is the problem. Maybe we can't just move dt out
// of the linear system?)
// - also for smaller dt: density can just vanish which should
// not happen (mass preservation). only approximation errors?... | 31.387808 | 80 | 0.707893 | nyorain |
c3932da7c1f71fdb243944622036a2fc4d6631cc | 119 | cpp | C++ | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include "sync/once.hpp"
TEST_CASE("sync.Once", "[Once]") {
}
| 13.222222 | 34 | 0.697479 | iwongdotcn |
c39d09c74b2357c1ebedaba8432dc7d38f0484bd | 4,578 | cpp | C++ | ace/tao/tests/MT_Client/orb_creation.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tao/tests/MT_Client/orb_creation.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tao/tests/MT_Client/orb_creation.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // orb_creation.cpp,v 1.5 2001/03/26 21:17:09 coryan Exp
#include "testC.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
ACE_RCSID(MT_Client, orb_creation, "orb_creation.cpp,v 1.5 2001/03/26 21:17:09 coryan Exp")
const char *ior = "file://test.ior";
int nthreads = 5;
int niteratio... | 25.433333 | 92 | 0.483617 | tharindusathis |
c39f2dc62a78c88a57d3b3bda9002bb44f134ea5 | 2,824 | inl | C++ | Base/PLMath/include/PLMath/Line.inl | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLMath/include/PLMath/Line.inl | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLMath/include/PLMath/Line.inl | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: Line.inl *
* Line inline implementation
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of c... | 28.24 | 97 | 0.542493 | ktotheoz |
c39fc99068f583dd0bacff691c637fbb6eef291b | 315 | cpp | C++ | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | 1 | 2022-02-03T17:10:29.000Z | 2022-02-03T17:10:29.000Z | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | null | null | null | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | null | null | null | // redbox, 2021
#include "InstancedPlugin.h"
#define LOCTEXT_NAMESPACE "FInstancedPluginModule"
DEFINE_LOG_CATEGORY(IPLog);
void FInstancedPluginModule::StartupModule()
{
}
void FInstancedPluginModule::ShutdownModule()
{
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FInstancedPluginModule, InstancedPlugin)
| 14.318182 | 57 | 0.812698 | redcatbox |
c3a15e53f26e01e9197c5eec46f350229140ff1e | 1,591 | cpp | C++ | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
template <class T,int Maxsize>
class Stack
{
T arr[Maxsize];
int top;
public:
Stack(){top=-1;}
bool IsEmpty(){ return top==-1;}
bool IsFull(){return top==Maxsize-1;}
void Push(T item){
if (IsFull()) {cout<<"Stack Overflow";return;}
... | 25.66129 | 62 | 0.51917 | compliment |
c3ac989045af53b11b8ba10c22de21f57b09a634 | 2,828 | cpp | C++ | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | /**
* @author Justin Noel
* @file RestCaller.cpp
*/
#include "RestCaller.h"
#include "EnumRequestVerbs.h"
#include "Http.h"
/**
* @brief Helper macro to perform a bool to string conversion.
* @param b bool to convert to True or False
*/
#define BOOL_TO_STRING(b) b ? TEXT("True") : TEXT("False")
namespace
{
... | 30.73913 | 113 | 0.696252 | jgnoel86 |
c3acbe8eb76ee0f61088f215003d018284ca6011 | 321 | cpp | C++ | code/source/ResourceHolder.cpp | Pridexs/projectM | a189c543763f1eff8fa0dcfda6162e3c5b8faf00 | [
"MIT"
] | null | null | null | code/source/ResourceHolder.cpp | Pridexs/projectM | a189c543763f1eff8fa0dcfda6162e3c5b8faf00 | [
"MIT"
] | null | null | null | code/source/ResourceHolder.cpp | Pridexs/projectM | a189c543763f1eff8fa0dcfda6162e3c5b8faf00 | [
"MIT"
] | null | null | null | /*
* This code is from projectM a 2D side scroller using SFML.
* It was made using the help of the SFML Game Development Book
*
* If you have any questions, please contact me at
* pridexs.com
*
* For more information visit the repo for this project at:
* github.com/pridexs
*
* Alexandre Maros - 2016
*/
... | 22.928571 | 63 | 0.694704 | Pridexs |
ce79c2f9194c692487463dba065079cd12ac4f4b | 17,003 | cpp | C++ | test/gt_eoam.cpp | Ed-Yang/eoam | 8ff7bd0b8872899417cdfd0de972dc8d18c35cd9 | [
"MIT"
] | 10 | 2019-04-11T15:44:21.000Z | 2022-02-15T17:39:15.000Z | test/gt_eoam.cpp | Ed-Yang/eoam | 8ff7bd0b8872899417cdfd0de972dc8d18c35cd9 | [
"MIT"
] | 4 | 2020-01-06T23:01:41.000Z | 2021-06-11T11:31:16.000Z | test/gt_eoam.cpp | Ed-Yang/eoam | 8ff7bd0b8872899417cdfd0de972dc8d18c35cd9 | [
"MIT"
] | 2 | 2018-07-30T03:15:19.000Z | 2021-04-21T09:26:02.000Z | #include <stdio.h>
#include <stdlib.h> /* exit */
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h> /* fork */
#include <signal.h>
#include <pcap.h>
#include "xutl_bits.h"
#include "xutl_os.h"
#include "xutl_dev.h"
#include "xutl_dbg.h"
#include "eoam_fsm.h"
#include "eoam_cout.h"
#... | 27.965461 | 94 | 0.641593 | Ed-Yang |
ce7b97b5606f0062fc0bd13488a29b0339e81e5e | 1,023 | cpp | C++ | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: JU_AAA: aniks2645, kzvd4729, prdx9_abir created: Sep/18/2017 19:11
* solution_verdict: Accepted language: GNU C++14
* run... | 31 | 111 | 0.367546 | kzvd4729 |
ce83158233b8e50e505e6793dd28e467e0563501 | 320 | cpp | C++ | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "VoxerEngine.h"
const int32 VOXEL_IN_CHUNK_XY = 32;
const int32 VOXEL_IN_CHUNK_Z = 128;
const float VOXEL_SIZE = 100.0f;
const float CHUNK_SIZE_XY = VOXEL_IN_CHUNK_XY * VOXEL_SIZE;
const float CHUNK_SIZE_Z = VOXEL_IN_CHUNK_Z * VOXEL_SIZE;
const float CHUNK_LOADING_RADIUS = 300.0f * 100.0f; | 35.555556 | 59 | 0.79375 | cLazyZombie |
ce9024173e807d12e7bd7393a6934a483b003b5d | 4,930 | cpp | C++ | source/AIvanov.FMI.OOP.ContextFreeGrammars/ContextFreeGrammars.Grammars/grammar.cpp | startrunner/fmi-oop-context-free-grammars | b83cc5f813923c482a0da9c9715d001c965078a2 | [
"MIT"
] | 2 | 2019-06-05T06:44:39.000Z | 2020-08-18T05:50:26.000Z | source/AIvanov.FMI.OOP.ContextFreeGrammars/ContextFreeGrammars.Grammars/grammar.cpp | startrunner/fmi-oop-context-free-grammars | b83cc5f813923c482a0da9c9715d001c965078a2 | [
"MIT"
] | null | null | null | source/AIvanov.FMI.OOP.ContextFreeGrammars/ContextFreeGrammars.Grammars/grammar.cpp | startrunner/fmi-oop-context-free-grammars | b83cc5f813923c482a0da9c9715d001c965078a2 | [
"MIT"
] | null | null | null | #include "grammar.h"
#include "stdafx.h"
#include "grammar.h"
#include "../ContextFreeGrammars.Infrastructure/stringutil.h"
#include "../ContextFreeGrammars.Infrastructure/bitmaskutil.h"
#include "cyk_parse_tree.h"
using namespace std;
vector<string> grammar::get_rule_names() const
{
vector<string> ruleNames;
ruleN... | 27.087912 | 111 | 0.741379 | startrunner |
ce92b226bd83633d208f299a00e4799d860fd19f | 6,021 | cpp | C++ | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | 1 | 2019-03-28T08:05:11.000Z | 2019-03-28T08:05:11.000Z | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "par_matrix_IO.hpp"
#include "matrix_IO.hpp"
#include <float.h>
#include <stdio.h>
bool little_endian()
{
int num = 1;
return (*(char *)&num == 1);
}
template <class T>
void endi... | 29.228155 | 99 | 0.556884 | lwhZJU |
ce9a7783cfc131e34abe6d5a90009f4e96e5d442 | 182 | cpp | C++ | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | #include "CompanionWindowShader.h"
CompanionWindowShader::CompanionWindowShader(const std::string & path)
:Shader(path)
{
}
CompanionWindowShader::~CompanionWindowShader()
{
}
| 13 | 70 | 0.774725 | jeroennelis |
ce9cd661c526fc2cd1cac19b1bd9ab0d5a3e514c | 4,329 | cpp | C++ | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null |
#include "Gwen/Util/ControlFactory.h"
#include "Gwen/Controls.h"
namespace Gwen
{
namespace ControlFactory
{
using namespace Gwen;
namespace Properties
{
class NumPages : public ControlFactory::Property
{
GWEN_CONTROL_FACTORY_PROPERTY(NumPages,... | 30.702128 | 96 | 0.478632 | Oipo |
ce9dff368a7649c3796f8f77a41fa1500dbd6de4 | 1,803 | cpp | C++ | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 1 | 2020-05-08T08:55:55.000Z | 2020-05-08T08:55:55.000Z | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 1 | 2020-01-16T23:22:52.000Z | 2020-01-16T23:22:52.000Z | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 2 | 2020-07-01T01:35:55.000Z | 2022-03-09T14:58:27.000Z | // #include <iostream>
// #include <vector>
// #include "../include/pruner.hpp"
// For creating the MAIN
// #define CATCH_CONFIG_MAIN
// #include "catch.hpp"
// int main () {
TEST_CASE("Post order sequences respects all", "[postorder]") {
// Tree 1 {1-0, 3-1, 2-1} : Multiple parents ----------------------------... | 25.757143 | 80 | 0.559068 | USCbiostats |
ce9e81fff09369844ccb84f00ffad951b3473572 | 1,080 | cpp | C++ | app-logic-template/source/input.cpp | rwarnking/app-logic-template | be16ae91359504873678ccd37db89be996f8af00 | [
"MIT"
] | null | null | null | app-logic-template/source/input.cpp | rwarnking/app-logic-template | be16ae91359504873678ccd37db89be996f8af00 | [
"MIT"
] | null | null | null | app-logic-template/source/input.cpp | rwarnking/app-logic-template | be16ae91359504873678ccd37db89be996f8af00 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////
// Filename: input.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////
#include "..\header\input.h"
//////////////
// INCLUDES //
//////////////
#include <winuser.h>
... | 22.978723 | 99 | 0.531481 | rwarnking |
ce9e94dd87af1108da6db33ce127b6a757fae4aa | 6,923 | hpp | C++ | include/ztd/idk/to_address.hpp | nickelpro/idk | 5ebf7d6357d214d55f877d1ede3efde7f0debc39 | [
"Apache-2.0"
] | 13 | 2021-07-03T13:21:04.000Z | 2022-03-15T06:51:32.000Z | include/ztd/idk/to_address.hpp | nickelpro/idk | 5ebf7d6357d214d55f877d1ede3efde7f0debc39 | [
"Apache-2.0"
] | 4 | 2021-07-05T17:43:11.000Z | 2022-03-28T02:38:57.000Z | include/ztd/idk/to_address.hpp | nickelpro/idk | 5ebf7d6357d214d55f877d1ede3efde7f0debc39 | [
"Apache-2.0"
] | 5 | 2021-07-03T18:08:49.000Z | 2022-03-27T20:37:12.000Z | // =============================================================================
//
// ztd.idk
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC
// Contact: opensource@soasis.org
//
// Commercial License Usage
// Licensees holding valid commercial ztd.idk licenses may use this file in
// a... | 38.248619 | 145 | 0.69623 | nickelpro |
ce9f1d3a59ee2159f318d1b1705ababd3e587557 | 741 | hpp | C++ | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | 1 | 2021-09-29T14:33:37.000Z | 2021-09-29T14:33:37.000Z | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | #ifndef C32DE65B_193C_4675_A77E_2D558E3B681D
#define C32DE65B_193C_4675_A77E_2D558E3B681D
#include <Scene.hpp>
#include <graphics/Shaders.hpp>
#include <graphics/Sprite.hpp>
namespace wars::scenes
{
// A Scene that was created merely for testing purposes. It will be removed
// once I am done testing the engi... | 23.903226 | 79 | 0.668016 | Hello56721 |
cea5b7267975300c33b63905a2300402c09f7a1d | 4,585 | cpp | C++ | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | 1 | 2021-06-10T13:09:57.000Z | 2021-06-10T13:09:57.000Z | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | null | null | null | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015 Nicolas Weber / GCC / TU-Darmstadt. All rights reserved.
// Use of this source code is governed by the BSD 3-Clause license that can be
// found in the LICENSE file.
#include <matog/shared.h>
#include <matog/log.h>
#include <matog/util.h>
#include <matog/cuda.h>
#include "../db.h"
namespace mat... | 27.45509 | 159 | 0.620938 | mergian |
cea66dafe7fe4922f0779bc38f1c1edffcfc88d1 | 906 | cpp | C++ | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file theory_builtin.cpp
** \verbatim
** Top contributors (to current version):
** Morgan Deters, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
** in the... | 29.225806 | 80 | 0.65894 | guykatzz |
cea6a4131c4624c35d0beac5401a138d23e1b28e | 104 | cpp | C++ | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 10 | 2015-02-17T15:27:50.000Z | 2021-12-10T08:34:13.000Z | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 6 | 2016-05-10T17:11:09.000Z | 2022-03-31T07:52:11.000Z | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 13 | 2016-05-01T09:56:51.000Z | 2022-03-28T09:27:49.000Z | #include <eeros/types.hpp>
namespace eeros {
namespace control {
uint16_t signalCounter = 1;
};
};
| 13 | 29 | 0.692308 | ClaudiaVisentin |
cea7481197caf24e8155c88a1911c8ddde1f3f6b | 5,023 | cpp | C++ | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | /*
* dragon_tbb.c
*
* Created on: 2011-08-17
* Author: Francis Giraldeau <francis.giraldeau@gmail.com>
*/
#include <iostream>
extern "C" {
#include "dragon.h"
#include "color.h"
#include "utils.h"
}
#include "dragon_tbb.h"
#include "tbb/tbb.h"
#include "TidMap.h"
using namespace std;
using namespace tbb;
... | 23.147465 | 76 | 0.703365 | oliviercotte |
ceabb556984890110a2bbda9613c09ece48f2327 | 251 | cpp | C++ | predavanje2/zadatak8.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | predavanje2/zadatak8.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | predavanje2/zadatak8.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | // Što je izlaz sljedećeg programa;
#include <iostream>
using std::cout;
using std::endl;
int main()
{
int x = 10;
int& ref = x;
ref = 20;
cout << "x = " << x << endl;
x = 30;
cout << "ref = " << ref << endl;
return 0;
} | 15.6875 | 36 | 0.498008 | Miillky |
ceb676365ebeab917f716db889a115e06b4390c6 | 135 | cc | C++ | tests/CompileTests/ElsaTestCases/t0089.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0089.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0089.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // t0089.cc
// replicate problem with reported decl/defn mismatch with static funcs
class A {
static int foo();
};
int A::foo()
{}
| 13.5 | 71 | 0.674074 | maurizioabba |
ceb703cec92b104d6578796e141bfe46342097c2 | 1,307 | cpp | C++ | util/system/fs.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | 39 | 2015-03-12T19:49:24.000Z | 2020-11-11T09:58:15.000Z | util/system/fs.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | null | null | null | util/system/fs.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | 11 | 2016-01-14T16:42:00.000Z | 2022-01-17T11:47:33.000Z | #include <util/system/defaults.h>
#if defined(_win_)
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define NOMINMAX
#include <windows.h>
#endif
#include <util/stream/file.h>
#include "fs.h"
#include "oldfile.h"
int NFs::Remove(const char* name) {
struct stat sb;
... | 22.534483 | 85 | 0.656465 | jjzhang166 |
cebbee5c13026874a2f1cf8930de0f557e8bfb6e | 646 | cpp | C++ | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <sstream>
using namespace std;
/* Test cases
2 2
3 1 5 4
5 1 2 8 9 3
0 1
1 3
*/
int main() {
int n, q;
cin >> n >> q;
int** v = new int*[n];
int sz = 0;
for (int i = 0; i < n; ++i) {
ci... | 14.355556 | 34 | 0.4613 | maxerin |
cec08afa5d27601d3ba6d21c7d42a13ad1df4d37 | 2,612 | hpp | C++ | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | #ifndef NUMBERWITHUNITS_
#define NUMBERWITHUNITS_
#include <iostream>
#include <string>
#include <unordered_map>
#include <exception>
namespace ariel
{
typedef struct unit{
std::string s;
double value;
} unit;
class NumberWithUnits{
private:
double value;
std::string... | 34.368421 | 92 | 0.602986 | AndreyFriedman |
ceca5783190fdcab0a078c64ca3c7e20b3e26761 | 8,092 | cpp | C++ | Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessLensBlur.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessLensBlur.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessLensBlur.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
PostProcessLensBlur.cpp: Post processing lens blur implementation.
=============================================================================*/
#include "RendererPrivate.h"
... | 34.14346 | 175 | 0.780153 | PopCap |
ceca584b89843cb8e54883b0626a8621155d9276 | 1,722 | cpp | C++ | src/main/native/cpp/WSProvider_Encoder.cpp | virtuald/halsim-websocket | 90c3c06fb70e7cb62e400807ea9ac590dfce84ea | [
"BSD-3-Clause"
] | 1 | 2020-07-06T03:54:10.000Z | 2020-07-06T03:54:10.000Z | src/main/native/cpp/WSProvider_Encoder.cpp | virtuald/halsim-websocket | 90c3c06fb70e7cb62e400807ea9ac590dfce84ea | [
"BSD-3-Clause"
] | 1 | 2020-07-11T15:57:33.000Z | 2020-07-11T15:57:33.000Z | src/main/native/cpp/WSProvider_Encoder.cpp | virtuald/halsim-websocket | 90c3c06fb70e7cb62e400807ea9ac590dfce84ea | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 42 | 80 | 0.58072 | virtuald |
cecfb3edf1a044fa934c6b6bd761a0db6bf9eea9 | 334 | cpp | C++ | leetcode/dp/easy/509.fibonacci-number.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 23 | 2021-10-30T04:11:52.000Z | 2021-11-27T09:16:18.000Z | leetcode/dp/easy/509.fibonacci-number.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | null | null | null | leetcode/dp/easy/509.fibonacci-number.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | 4 | 2021-10-30T03:26:05.000Z | 2021-11-14T12:15:04.000Z | // https://leetcode.com/problems/fibonacci-number/
class Solution {
public:
int fib(int n) {
// Optimal DP soluchan ^_^
int dp[31] = {0};
dp[0] = 0;
dp[1] = 1;
for(int i= 2;i<=n;i++){
dp[i] = dp[i-1] + dp[i-2];
}
return d... | 19.647059 | 50 | 0.398204 | saurabhraj042 |
ced149eae597bd1145e9c123ff34805727b4e06a | 154 | cpp | C++ | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | void RTCSessionDescriptionRequestImpl::requestFailed(const String& error)
{
if (m_errorCallback)
m_errorCallback->handleEvent(error);
clear();
}
| 19.25 | 73 | 0.766234 | awsm-research |
cedf5b2d27c672cbed92dc6d3755136d04d3bc7d | 3,242 | cpp | C++ | CaWE/MapEditor/Commands/ModifyModel.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/Commands/ModifyModel.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/Commands/ModifyModel.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ModifyModel.hpp"
#include "../MapModel.hpp"
#include "../MapDocument.hpp"
#include "../../GameConfig.hpp"
#include "ClipSys/CollisionModelMan.hpp"
#includ... | 31.173077 | 111 | 0.720234 | dns |
cedff17fe333b554e3f64e5aef703ec7d0492757 | 1,597 | hpp | C++ | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | 2 | 2021-05-30T16:34:26.000Z | 2021-08-03T11:37:37.000Z | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | null | null | null | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | null | null | null | #pragma once
#define _WINSOCK_DEPRECATED_NO_WARNINGS // for WSAAsyncSelect
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <list>
#include <unordered_map>
#include <queue>
#include <SFML/System.hpp>
#include "Client.hpp"
#pragma comment(lib, "ws2_32.lib")
#define WM_SOCKET (WM_USER + 1)
#define SERVERIP "127.... | 20.74026 | 70 | 0.77583 | pablotomico |
cee1b328714115caaae03c466d11e2b9bfbbad75 | 565 | hpp | C++ | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_INPUT_JOYPAD_FF_TYPE_HPP_INCLUDED
#define SGE_INPUT_JOYPAD_FF_TYPE_HPP_INCLUDED
#inclu... | 17.121212 | 61 | 0.707965 | cpreh |
cee2e5dacc70cacb04f9d72dba7983963af2225d | 4,643 | cpp | C++ | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null |
// This C++ header is part of the sprpwr library.
// With this library multivariate formal power
// series can be expanded.
//
// Author: Michael Borinsky
// License: MIT
// Copyright 2019
#include <iostream>
#include <iterator>
#include <algorithm>
#include <chrono>
#include <functional>
#include <cmath>
#inclu... | 25.097297 | 120 | 0.539953 | michibo |
cee8037d931c29951736acde86b76fabda6f5f5d | 2,391 | cpp | C++ | sources/Skybox.cpp | HamilcarR/Se-Hara | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | 2 | 2016-11-29T04:32:32.000Z | 2017-10-14T06:21:09.000Z | sources/Skybox.cpp | HamilcarR/ZeEngine | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | 1 | 2016-11-24T04:38:42.000Z | 2016-11-24T04:38:42.000Z | sources/Skybox.cpp | HamilcarR/Sahara | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | null | null | null | #include "../includes/Skybox.h"
using namespace std;
using namespace glm;
float SIZE = 500.f;
GLfloat VERTICES[] = {
-SIZE, SIZE, -SIZE,
-SIZE, -SIZE, -SIZE,
SIZE, -SIZE, -SIZE,
SIZE, -SIZE, -SIZE,
SIZE, SIZE, -SIZE,
-SIZE, SIZE, -SIZE,
-SIZE, -SIZE, SIZE,
-SIZE, -SIZE, -SIZE,
-S... | 19.128 | 80 | 0.63279 | HamilcarR |
cee972d963b9bb5c2777aa27731e9bf8dd4ba863 | 15,395 | cc | C++ | RecoTracker/MkFitCMS/standalone/MkStandaloneSeqs.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | RecoTracker/MkFitCMS/standalone/MkStandaloneSeqs.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | RecoTracker/MkFitCMS/standalone/MkStandaloneSeqs.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2022-02-27T06:12:26.000Z | 2022-02-27T06:12:26.000Z | #include "RecoTracker/MkFitCMS/standalone/MkStandaloneSeqs.h"
#include "RecoTracker/MkFitCMS/interface/MkStdSeqs.h"
#include "RecoTracker/MkFitCore/interface/HitStructures.h"
#include "RecoTracker/MkFitCore/standalone/Event.h"
#include "RecoTracker/MkFitCore/src/Debug.h"
#include "oneapi/tbb/parallel_for.h"
namespa... | 38.012346 | 127 | 0.558883 | PKUfudawei |