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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26aafafa1e15945cfb078fc0036ce452fa9c48ec | 1,582 | cpp | C++ | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | 3 | 2021-03-01T20:41:13.000Z | 2021-07-10T13:45:47.000Z | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWEngine.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SWG... | 22.927536 | 93 | 0.638432 | odayibasi |
26ad16b39d41842f89804514657cea52c7bdd61d | 465 | hpp | C++ | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | #ifndef PACKT_LOG_HPP
#define PACKT_LOG_HPP
namespace packt{
class Log{
public :
static void error(const char* pMessage, ...);
static void warn(const char* pMessage, ...);
static void info(const char* pMessage, ...);
static void debug(const char* pMessage, ..... | 23.25 | 63 | 0.608602 | gabberrr |
26b0126479025af6a267667497a2684fadcb22fe | 665 | cpp | C++ | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* swapNodes(L... | 24.62963 | 62 | 0.509774 | sahib-pratap-singh |
26b0eb9bfb52517da9666fac5814f60ec18925de | 8,347 | cpp | C++ | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : MongoDB
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#include "Mongo/SFMon... | 23.315642 | 129 | 0.639391 | blue3k |
26b2dcab06202bb9d541a0aa3cce49cfd7c80e68 | 646 | cpp | C++ | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | 4 | 2015-01-19T03:26:26.000Z | 2015-06-03T04:00:04.000Z | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | null | null | null | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | null | null | null | //
// BaseParticle.cpp
// ParticlesWithClass
//
// Created by Christopher P. Baker on 10/4/13.
//
//
#include "BaseParticle.h"
BaseParticle::BaseParticle(): age(0)
{
// age = 0;
}
void BaseParticle::update()
{
age++; // age = age + 1;
// velocity.x += acceleration.x;
// velocity.y += acceleration.y;
/... | 15.756098 | 47 | 0.600619 | bakercp |
564e0c63ff6c30cfb070b04f4f513df606454268 | 371 | cpp | C++ | Cplus/ValidParenthesisString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/ValidParenthesisString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/ValidParenthesisString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <string>
using namespace std;
class Solution
{
public:
bool checkValidString(string s)
{
int low = 0, high = 0; //the number of left bracket in range [low,high]
for (auto c : s)
{
if (c == '(')
++low;
else if (low > 0)
--low;
if (c == ')')
--high;
else
++high;
if (high ... | 14.269231 | 73 | 0.525606 | JumHorn |
56527053e241f875ecbd56dcf113446e33b46d75 | 1,110 | cpp | C++ | C++/995.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | 1 | 2021-08-31T08:53:47.000Z | 2021-08-31T08:53:47.000Z | C++/995.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | C++/995.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | class Solution {
public:
int minKBitFlips(vector<int>& A, int K) {
int res = 0, n = A.size();
queue<int> q;
for (int i = 0; i < n; i++) {
if (!q.empty() && i >= (q.front() + K)) q.pop();
if (q.size() % 2 == A[i]) {
if (i + K > n) return -1;
... | 30 | 60 | 0.266667 | TianChenjiang |
56552c5602d6b401e0859f30057450441da4adf6 | 480 | cpp | C++ | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | 1 | 2018-10-12T08:41:06.000Z | 2018-10-12T08:41:06.000Z | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | 1 | 2018-10-16T01:43:57.000Z | 2018-10-16T01:43:57.000Z | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | null | null | null | #include "Subject.h"
#include "Observer.h"
void Subject::attach(const std::shared_ptr<IObserver>& observer)
{
observers_.emplace_back(observer);
}
void Subject::detach(const std::shared_ptr<IObserver>& observer)
{
for (auto it = observers_.begin(); it != observers_.end(); ++it) {
if (*it == observer)... | 20 | 70 | 0.6 | zxc6419 |
5657655a453f76d8a8b03cc76f581bb469401fd7 | 2,184 | cpp | C++ | src/modules/uavcan/libuavcan/libuavcan/src/marshal/uc_bit_array_copy.cpp | lsr123/PX4-loacl_code | b2464dfa3e011545b94bbd9a22066aeb47245578 | [
"MIT"
] | 25 | 2016-09-04T18:29:15.000Z | 2022-01-10T16:52:42.000Z | src/modules/uavcan/libuavcan/libuavcan/src/marshal/uc_bit_array_copy.cpp | lsr123/PX4-loacl_code | b2464dfa3e011545b94bbd9a22066aeb47245578 | [
"MIT"
] | 9 | 2016-08-24T18:17:12.000Z | 2021-08-25T14:28:29.000Z | src/modules/uavcan/libuavcan/libuavcan/src/marshal/uc_bit_array_copy.cpp | lsr123/PX4-loacl_code | b2464dfa3e011545b94bbd9a22066aeb47245578 | [
"MIT"
] | 142 | 2016-03-27T14:58:48.000Z | 2022-01-14T17:25:14.000Z | /*
* Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <uavcan/marshal/bit_stream.hpp>
#include <climits>
#include <cstring>
#include <cstddef>
namespace uavcan
{
void bitarrayCopy(const unsigned char* src, std::size_t src_offset, std::size_t src_len,
unsigned char* dst, std... | 36.4 | 103 | 0.518773 | lsr123 |
565ac8fd9a92e90e13386bbf6cca2cff2cdd9fd5 | 2,308 | hpp | C++ | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | 3 | 2021-05-07T12:47:00.000Z | 2021-10-01T05:30:02.000Z | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | null | null | null | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | 1 | 2021-05-07T12:49:10.000Z | 2021-05-07T12:49:10.000Z | /*============================================================================*/
/* File Description */
/*============================================================================*/
/**
* @file ImagePreprocessing.hpp
*/
/*===========================... | 43.54717 | 88 | 0.19844 | jnkl314 |
565ae6589c03d9b18695250bbf8a61b7e4e6a2bf | 567 | cpp | C++ | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "mylist.h"
void myList::initList()
{
head = new Node;
head->next = nullptr;
}
void myList::insertList(int data)
{
Node * cur = new Node;
cur->data = data;
cur->next = head->next;
head->next = cur;
}
void myList::traverseList()
{
Node * subHead = head->next;
... | 14.538462 | 44 | 0.539683 | zhongchen43 |
5660588d847ac55f4645a5898474d0da88a1358a | 77,057 | cc | C++ | mysql-server/sql/item_create.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/item_create.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/item_create.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2000, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (includ... | 36.468055 | 80 | 0.695278 | silenc3502 |
56605b196ceca79d7ba05e1d509a34d59d9dba4d | 1,083 | hpp | C++ | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | 2 | 2021-09-27T03:28:17.000Z | 2022-01-06T13:38:24.000Z | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | null | null | null | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <string>
#include <sstream>
#include <dlfcn.h>
namespace fenestra {
class DL {
public:
DL(char const * filename, int flag)
: handle_(dlopen(filename, flag))
{
if (!handle_)
{
std::stringstream strm;
strm << "dlopen failed: " << dlerror();
throw std::runtime... | 17.467742 | 77 | 0.585411 | cout |
566338aaf82313a6b707f21c8465d9de8ac5caa9 | 1,725 | cpp | C++ | BZOJ/BZOJ3751.cpp | xehoth/OnlineJudgeCodes | 013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7 | [
"Apache-2.0"
] | 7 | 2017-09-21T13:20:05.000Z | 2020-03-02T03:03:04.000Z | BZOJ/BZOJ3751.cpp | xehoth/OnlineJudgeCodes | 013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7 | [
"Apache-2.0"
] | null | null | null | BZOJ/BZOJ3751.cpp | xehoth/OnlineJudgeCodes | 013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7 | [
"Apache-2.0"
] | 3 | 2019-01-05T07:02:57.000Z | 2019-06-13T08:23:13.000Z | #include <bits/stdc++.h>
using namespace std;
char ch;
inline void read(int &x) {
x = 0;
do ch = getchar(); while (!isdigit(ch));
while (isdigit(ch)) x = (x << 1) + (x << 3) + (ch ^ '0'), ch = getchar();
}
const int MAXN = 100;
const int MAXLEN = 10000 + 1;
const int MAXM = 1000000;
const int MOD1 = 21893;
... | 30.263158 | 88 | 0.456232 | xehoth |
5667ea22918e69d4edc8eb83655dc846f088439c | 6,693 | cpp | C++ | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 6 | 2020-07-18T20:03:27.000Z | 2021-11-15T18:44:38.000Z | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 35 | 2020-05-08T05:51:40.000Z | 2021-07-01T15:38:59.000Z | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 5 | 2020-05-07T23:04:35.000Z | 2021-11-15T18:46:09.000Z | /******************************************************************************
* *
* Copyright 2020 Lawrence Livermore National Security, LLC and other *
* Whole Cell Simulator Project Developers. See the top-level COPYRIGHT *
... | 35.791444 | 81 | 0.617959 | JaeseungYeom |
5667fa55d788f1f1c45f73f1c20d9d3a11872252 | 8,897 | cpp | C++ | saber/funcs/impl/x86/saber_conv_eltwise.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 533 | 2018-05-18T06:14:04.000Z | 2022-03-23T11:46:30.000Z | saber/funcs/impl/x86/saber_conv_eltwise.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 100 | 2018-05-26T08:32:48.000Z | 2022-03-17T03:26:25.000Z | saber/funcs/impl/x86/saber_conv_eltwise.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 167 | 2018-05-18T06:14:35.000Z | 2022-02-14T01:44:20.000Z |
#include "saber/funcs/impl/x86/saber_conv_eltwise.h"
#include "saber/funcs/calibrate.h"
#include "saber_conv_eltwise.h"
#include "saber/funcs/impl/x86/saber_im2col_conv.h"
#include "saber/funcs/impl/x86/kernel/jit_avx2_conv.h"
#include "saber/funcs/impl/x86/kernel/jit_uni_dwconv.h"
#include "saber/funcs/impl/x86/kern... | 39.542222 | 177 | 0.643363 | baajur |
5670ad038cdf5e3bbb6cdd2439be7c086b2faf91 | 1,284 | cpp | C++ | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 19 | 2015-09-02T03:25:55.000Z | 2021-03-07T15:02:33.000Z | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 2 | 2015-12-11T12:03:11.000Z | 2017-09-13T09:03:33.000Z | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 6 | 2015-11-25T08:55:51.000Z | 2021-03-07T15:02:36.000Z | #include <cassert>
#include "linear/condition_variable.h"
#include "mutex_impl.h"
namespace linear {
// class condition_variable_impl
class condition_variable::condition_variable_impl {
public:
typedef uv_cond_t* native_handle_type;
condition_variable_impl() {
if (uv_cond_init(&cond_)) {
assert(fals... | 20.380952 | 76 | 0.721184 | linear-rpc |
56717aca6075857c5a3037aa37733eaf62c665fc | 602 | cpp | C++ | plugins/d3d9/src/volumefuncs/dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/volumefuncs/dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/volumefuncs/dim.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/d3d9/d3dinclude.hpp>
#include <sge/d3d9/volumefuncs/dim.hpp>
#include <sge/d3d9/volum... | 35.411765 | 81 | 0.729236 | cpreh |
5672725f8048606de81028dc78b7d552f3000205 | 2,039 | cpp | C++ | CodeChef/Cook/NOV17/ques2.cpp | ritwik1503/Competitive-Coding-1 | ffefe5f8b299c623af1ef01bf024af339401de0b | [
"MIT"
] | 29 | 2016-09-02T04:48:59.000Z | 2016-09-08T18:13:05.000Z | CodeChef/Cook/NOV17/ques2.cpp | ritwik1503/Competitive-Coding-1 | ffefe5f8b299c623af1ef01bf024af339401de0b | [
"MIT"
] | 2 | 2016-09-02T05:20:02.000Z | 2016-10-13T06:31:31.000Z | CodeChef/Cook/NOV17/ques2.cpp | ritwik1503/Competitive-Coding-1 | ffefe5f8b299c623af1ef01bf024af339401de0b | [
"MIT"
] | 7 | 2017-04-01T20:07:03.000Z | 2020-10-16T12:28:54.000Z | #include "bits/stdc++.h"
using namespace std;
# define s(n) scanf("%d",&n)
# define sc(n) scanf("%c",&n)
# define sl(n) scanf("%lld",&n)
# define sf(n) scanf("%lf",&n)
# define ss(n) scanf("%s",n)
#define R(... | 17.42735 | 57 | 0.451692 | ritwik1503 |
5676b4817c3d55277811bb8713eaf91634b5bb08 | 16,902 | cpp | C++ | src/tests/accuracy_test_mixed_radices.cpp | JishinMaster/clFFT | b22bef6eab6f22ee5cd6d589177af6b829644a84 | [
"Apache-2.0"
] | null | null | null | src/tests/accuracy_test_mixed_radices.cpp | JishinMaster/clFFT | b22bef6eab6f22ee5cd6d589177af6b829644a84 | [
"Apache-2.0"
] | null | null | null | src/tests/accuracy_test_mixed_radices.cpp | JishinMaster/clFFT | b22bef6eab6f22ee5cd6d589177af6b829644a84 | [
"Apache-2.0"
] | null | null | null | /* ************************************************************************
* Copyright 2013 Advanced Micro Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 32.072106 | 80 | 0.630813 | JishinMaster |
567866d1e74fb3b1119d7b642afc3c0399c310ce | 412 | cpp | C++ | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 1 | 2020-11-06T03:36:03.000Z | 2020-11-06T03:36:03.000Z | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | null | null | null | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 2 | 2020-11-06T03:39:10.000Z | 2021-04-04T04:38:30.000Z | vector<int> get_prime(int n){
if(n <= 1) return vector<int>();
vector<bool> is_prime(n+1, true);
vector<int> prime;
is_prime[0] = is_prime[1] = 0;
for (int i = 2; i <= n; ++i) {
if(is_prime[i]) prime.emplace_back(i);
for (auto &&j : prime){
if(i*j > n) break;
... | 27.466667 | 46 | 0.478155 | beet-aizu |
56789baca194114cc0112e70f167c8f5fa34cf2e | 1,143 | cpp | C++ | source/code/providers/support/scxcimutils.cpp | pigera/scxcore | 7cb5b2c81521d0f984b4a1c8c1f80cea5c9ca9b9 | [
"MS-PL"
] | 18 | 2016-04-25T18:24:40.000Z | 2019-04-12T01:39:46.000Z | source/code/providers/support/scxcimutils.cpp | pigera/scxcore | 7cb5b2c81521d0f984b4a1c8c1f80cea5c9ca9b9 | [
"MS-PL"
] | 58 | 2016-03-11T20:46:18.000Z | 2019-04-01T09:19:41.000Z | source/code/providers/support/scxcimutils.cpp | pigera/scxcore | 7cb5b2c81521d0f984b4a1c8c1f80cea5c9ca9b9 | [
"MS-PL"
] | 18 | 2019-05-07T06:41:41.000Z | 2021-11-10T10:05:47.000Z | /*----------------------------------------------------------------------------
Copyright (c) Microsoft Corporation. All rights reserved. See license.txt for license information.
*/
/**
\file scxcimutils.cpp
\brief SCX CIM Utility Functions
\date 2013-03-08 08:26:00
*/
/*-----------------... | 33.617647 | 147 | 0.570429 | pigera |
567a03f7fa7c2a89b3688b352280997ee7035ad3 | 3,395 | cpp | C++ | src/simulation/dynamics/_GeneralModuleFiles/svIntegratorRK4.cpp | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | src/simulation/dynamics/_GeneralModuleFiles/svIntegratorRK4.cpp | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | src/simulation/dynamics/_GeneralModuleFiles/svIntegratorRK4.cpp | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | /*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
... | 41.402439 | 218 | 0.71782 | ian-cooke |
567cb4ad34d91bf7773defccb1f0c32cb98104e9 | 1,693 | cpp | C++ | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | 2 | 2018-06-22T06:21:09.000Z | 2018-08-14T14:50:26.000Z | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | 1 | 2019-01-09T07:17:26.000Z | 2019-01-09T07:17:26.000Z | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | null | null | null | /*
Author: Stefano Di Paolo
License: MIT, https://en.wikipedia.org/wiki/MIT_License
Date: 2018-03-18
Ceiling Fan (http://www.microentropie.com)
Arduino ESP8266 based.
enum -> string
Sources repository: https://github.com/microentropie/
*/
#include <Arduino.h>
#include "machine_io.h"
const char *OutSetActionToS... | 21.987013 | 107 | 0.708801 | microentropie |
56874e1072ff084335c24bf69ef2d1dd56a794ce | 972 | hpp | C++ | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | #ifndef JSONVALUE_HPP
#define JSONVALUE_HPP
#include "Common.hpp"
#include <cstdint>
#include <memory>
class JSONObject;
class JSONValue {
public:
JSONValue();
JSONValue(const JSONValue &other);
explicit JSONValue(const bool boolean);
explicit JSONValue(const std::int32_t integer);
explicit JSONValue(cons... | 19.058824 | 51 | 0.720165 | zingkg |
568bfac8f68862a8110041e534cf735231e8b4fc | 771 | cpp | C++ | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | null | null | null | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | null | null | null | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | 1 | 2018-09-14T18:50:48.000Z | 2018-09-14T18:50:48.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int medium(int a, int b, int c) { return a + b + c - min(a, min(b, c)) - max(a, max(b, c)); }
int main()
{
const int n = 3;
string s[3];
vector<int> v[3];
for (int i = 0; i < n; ++i)
{
cin >> s[i];
v[i].push_back(1);
for (size_t ... | 16.404255 | 93 | 0.440986 | dluschan |
56928d9a14ab284082c2715318b1cbb0dcf07494 | 2,689 | cpp | C++ | third_party/virtualbox/src/libs/kStuff/kStuff/kProfiler2/dllmain-win.cpp | remynicol/icebox | 5ebc3ca57c09c27493e5ec8236d6d028d34d5fbd | [
"MIT"
] | 1 | 2015-04-30T14:18:45.000Z | 2015-04-30T14:18:45.000Z | VirtualBox-5.0.0/src/libs/kStuff/kStuff/kProfiler2/dllmain-win.cpp | egraba/vbox_openbsd | 6cb82f2eed1fa697d088cecc91722b55b19713c2 | [
"MIT"
] | null | null | null | VirtualBox-5.0.0/src/libs/kStuff/kStuff/kProfiler2/dllmain-win.cpp | egraba/vbox_openbsd | 6cb82f2eed1fa697d088cecc91722b55b19713c2 | [
"MIT"
] | null | null | null | /* $Id: dllmain-win.cpp 29 2009-07-01 20:30:29Z bird $ */
/** @file
* kProfiler Mark 2 - The Windows DllMain for the profiler DLL.
*/
/*
* Copyright (c) 2006-2007 Knut St. Osmundsen <bird-kStuff-spamix@anduin.net>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software... | 35.381579 | 86 | 0.624768 | remynicol |
56978dd994eedd1f89a7c8ac0f2011fea9d2e380 | 13,525 | cpp | C++ | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | 22 | 2020-08-03T18:28:39.000Z | 2021-09-27T00:25:26.000Z | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | null | null | null | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | 5 | 2020-08-20T02:53:31.000Z | 2021-04-13T23:43:12.000Z | /*
* Author: Hardik Soni
* Email: hks57@cornell.edu
*/
#include "frontends/p4/methodInstance.h"
#include "toWellFormedParser.h"
namespace CSA {
bool CheckParserGuard::preorder(const IR::ParserState* parserState) {
if (parserState->name != IR::ParserState::start)
return false;
available = false;
... | 34.240506 | 86 | 0.606433 | pauladbol |
569b397cf3f0a6a91851dfa723b1248a57745e8f | 205 | cpp | C++ | fayllar bn ishlash/yoz.cpp | AxlidinovJ/masalalar_C | ca48c0db29155016a729fbe23030d4a638175d9b | [
"MIT"
] | 3 | 2021-12-02T20:28:27.000Z | 2021-12-08T10:21:24.000Z | fayllar bn ishlash/yoz.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | fayllar bn ishlash/yoz.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main(){
ofstream yoz("output.txt");
ifstream oqi("input.txt");
string a,b;
getline(cin,a);
yoz<<a<<"\n";
getline(cin,b);
yoz<<b;
} | 13.666667 | 28 | 0.639024 | AxlidinovJ |
56a16de88663001d682cfb265109e3277f8bb47f | 669 | cpp | C++ | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | 7 | 2020-08-13T05:23:08.000Z | 2022-02-13T16:20:58.000Z | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | #include <MeowPCH.h>
#include <glad/glad.h>
#include <Meow/Core.h>
#include <Meow/Utils/Log.h>
#include <Meow/Renderer/Shader.h>
void GlClearError()
{
while (glGetError() != GL_NO_ERROR);
}
bool GlLogCall(const char* functionName, const char* file, const int& line)
{
while (GLenum error = glGetError())
{... | 19.114286 | 114 | 0.599402 | vedpatil611 |
56a173b8caf7a28532cca3ca505debb37852af26 | 155,952 | cpp | C++ | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | /* Generated code for Python source for module 'confirm'
* created by Nuitka version 0.5.28.2
*
* This code is in part copyright 2017 Kay Hayen.
*
* 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 Li... | 33.082732 | 237 | 0.700741 | Pckool |
56a27c551a4e2ca1b9ab86804b051a4585cb5005 | 862 | cpp | C++ | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | #include <Arduino.h>
#include <FastLED.h>
#include "buildconfig.h"
#include "tallyleds.h"
#include "state/state_client_channel.h"
#include "state/state_programpreview.h"
CRGB _tallyLeds[TALLY_LEDS_COUNT];
void tallyleds_setup()
{
FastLED.addLeds<WS2812B, TALLY_LEDS_PIN, GRB>(_tallyLeds, TALLY_LEDS_COUNT);
Fa... | 22.684211 | 87 | 0.686775 | bjornvdh |
56a45f32b5d0921f3202e603d18c736c7762bc59 | 17,734 | cpp | C++ | src/core/crypto/PaymentCode.cpp | pjz/opentxs | 04cb17a7d1870c4c3b264e4307b9e9f248f24c87 | [
"MIT"
] | null | null | null | src/core/crypto/PaymentCode.cpp | pjz/opentxs | 04cb17a7d1870c4c3b264e4307b9e9f248f24c87 | [
"MIT"
] | null | null | null | src/core/crypto/PaymentCode.cpp | pjz/opentxs | 04cb17a7d1870c4c3b264e4307b9e9f248f24c87 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "PaymentCode.hpp"
#if OT_CRYP... | 28.603226 | 80 | 0.655464 | pjz |
56a4fc290b889cca1aa05543ca4c94922efb40fa | 146 | hpp | C++ | src/IceRay/main/interface/c/core/render/render.hpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRay/main/interface/c/core/render/render.hpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRay/main/interface/c/core/render/render.hpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | #include "./engine.hpp"
#include "./pierce.hpp"
#include "./pixel.hpp"
#include "./ray.hpp"
#include "./scanner.hpp"
#include "./sheaf.hpp"
| 20.857143 | 25 | 0.630137 | dmilos |
56a5ff61401c8f6aa65cc145933769f4d8b65d56 | 2,353 | cpp | C++ | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | 2 | 2021-07-15T21:18:36.000Z | 2022-02-11T06:35:29.000Z | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | null | null | null | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | null | null | null | /*
* ******************************************************************
* Created by Marko Kungla on 2010
* Updated by Marko Kungla on Aug 6, 2016 - 6:17:00 PM
*
* @copyright 2010 - 2016 Marko Kungla - https://github.com/mkungla
* @license MIT
*
* Package name howiphp
* @category HOWI3
* @p... | 24.257732 | 71 | 0.588185 | mkungla |
56a6461a3e15692f4d1511e8b3390a626130eea0 | 637 | hpp | C++ | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #ifndef DISPLAYFUNCS_HPP
#define DISPLAYFUNCS_HPP
#include <string>
void MoveOutputCursorBack();
// This function displays OneLiners.
// Basically, OneLiners are fleeting outputs which are to be erased after they
// are displayed. These are always displayed in between square brackets.
void DisplayOneLinerString( con... | 31.85 | 78 | 0.769231 | Electrux |
56a85177bc8e0c3252dec35c85841e652b6e80d4 | 4,107 | cpp | C++ | src/common/DomString.cpp | McMurphy-Luo/easy-svg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | 3 | 2018-06-02T09:51:41.000Z | 2019-08-29T14:58:52.000Z | src/common/DomString.cpp | McMurphy-Luo/tinysvg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | null | null | null | src/common/DomString.cpp | McMurphy-Luo/tinysvg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | null | null | null | #include "./DomString.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#ifdef TINYSVG_WIN32
#include <Windows.h>
#endif
using std::size_t;
using std::transform;
using std::function;
using std::ostream;
using std::wstring;
using std::vector;
using std::isspace;
NAMESPACE_BEGIN
Utf8String WideStringToUtf... | 22.690608 | 114 | 0.686389 | McMurphy-Luo |
56a9297e916362da111e46580007a0c3715d1251 | 2,634 | cpp | C++ | src/core/tensor/TensorShape.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/core/tensor/TensorShape.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/core/tensor/TensorShape.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 40.523077 | 80 | 0.671222 | alexbatashev |
56aa1a1438243572aa725f37b93b57fe6b1d1615 | 215 | cpp | C++ | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
vector<string> v{"Kant", "Plato", "Aristotle", "Kierkegard", "Hume"};
for (auto i = v.begin(); i != v.end(); ++i)
cout << *i << ' ';
}
| 21.5 | 71 | 0.567442 | tmdefreitas |
56af7d5d5809bd0bdb320ff68d0bcc49f0e9c837 | 2,648 | hpp | C++ | include/pl/restrict.hpp | CppPhil/philslib | 9d60d7f3a43b9de62f7e5d9550541293e0b15333 | [
"Unlicense"
] | 3 | 2017-10-29T09:36:18.000Z | 2022-03-07T20:04:08.000Z | include/pl/restrict.hpp | CppPhil/philslib | 9d60d7f3a43b9de62f7e5d9550541293e0b15333 | [
"Unlicense"
] | 1 | 2018-02-13T16:07:30.000Z | 2018-02-13T16:07:30.000Z | include/pl/restrict.hpp | CppPhil/philslib | 9d60d7f3a43b9de62f7e5d9550541293e0b15333 | [
"Unlicense"
] | 3 | 2017-10-29T09:24:20.000Z | 2018-11-03T09:53:46.000Z | /* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictions ... | 42.031746 | 130 | 0.761707 | CppPhil |
56af8a1f9a3f67e64f01a71f4de7d6a7c7389bf8 | 18,216 | cpp | C++ | src/gui/auxiliary/window_builder.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 12 | 2015-03-04T15:07:00.000Z | 2019-09-13T16:31:06.000Z | src/gui/auxiliary/window_builder.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | null | null | null | src/gui/auxiliary/window_builder.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 5 | 2017-04-22T08:16:48.000Z | 2020-07-12T03:35:16.000Z | /* $Id: window_builder.cpp 49207 2011-04-14 18:40:26Z mordante $ */
/*
Copyright (C) 2008 - 2011 by Mark de Wever <koraq@xs4all.nl>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General... | 31.846154 | 86 | 0.628513 | blackberry |
56b0be2c7000698ce1593ea0b5c7c7f5204e3dd2 | 645 | cpp | C++ | Tests/FEZLynx/LEDMatrix/Main.cpp | ghi-electronics/Gadgeteering | d3f5076c4e0b62e0a9dc65f1e7cabe545159ccc4 | [
"Apache-2.0"
] | 1 | 2019-07-19T04:56:43.000Z | 2019-07-19T04:56:43.000Z | Tests/FEZLynx/LEDMatrix/Main.cpp | ghi-electronics/Gadgeteering | d3f5076c4e0b62e0a9dc65f1e7cabe545159ccc4 | [
"Apache-2.0"
] | null | null | null | Tests/FEZLynx/LEDMatrix/Main.cpp | ghi-electronics/Gadgeteering | d3f5076c4e0b62e0a9dc65f1e7cabe545159ccc4 | [
"Apache-2.0"
] | 4 | 2019-01-14T09:50:36.000Z | 2021-03-25T07:12:38.000Z | #include <iostream>
#include <Gadgeteering.h>
#include <Mainboards/FEZLynxS4.h>
#include <Modules/LEDMatrix.h>
using namespace std;
using namespace gadgeteering;
using namespace gadgeteering::mainboards;
using namespace gadgeteering::modules;
int main(int argc, char** argv)
{
fez_lynx_s4 board;
led... | 21.5 | 80 | 0.682171 | ghi-electronics |
56b356366350355144c73d7e05ed06b0e8561746 | 5,196 | cc | C++ | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Ford Motor Company
* All rights reserved.
*
*/
#include "include/bluetooth_multi_block.h"
#include <math.h>
/* constructor */
bluetooth_multi_block::bluetooth_multi_block(double sample_rate, double center_freq, double squelch_threshold)
{
d_cumulative_count = 0;
d_samp... | 27.204188 | 130 | 0.699577 | lixiaozhang |
56b7d7c42b1e090165bd2225d2c96f4adc2a8825 | 1,526 | cpp | C++ | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <stack>
using namespace std;
vector<string> splitString(string str,string split){
vector<string> ret;
string::size_type lastpos,pos;
lastpos = 0;
pos = str.find(split);
while (pos!=string::npos){
string temp = str.substr(las... | 22.441176 | 63 | 0.45675 | warjiang |
56bbfb252ef09c5f16419da5baafc0a83327077a | 673 | cc | C++ | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | 3 | 2017-04-03T07:07:19.000Z | 2019-10-31T10:51:27.000Z | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | null | null | null | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | null | null | null | #include <iostream>
struct ListNode {
int val;
ListNode* next;
ListNode(int x): val(x), next(nullptr) {}
};
class Solution {
public:
void deleteNode(ListNode* node);
};
void Solution::deleteNode(ListNode* node) {
*node = *node->next;
}
int main() {
ListNode node1(5);
ListNode node2(3);
ListNode node... | 18.189189 | 94 | 0.606241 | bcbcarl |
56c49bedcac0eb9d06276194a93c0bc803ed4e16 | 2,242 | cpp | C++ | sdk/boost_1_30_0/libs/python/test/bases.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/python/test/bases.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/python/test/bases.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | // Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include ... | 35.03125 | 133 | 0.610169 | acidicMercury8 |
56c54997a0d0ac9ee7fa95ebf4e062a511ee24c9 | 664 | hpp | C++ | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../GpLogConsumer.hpp"
namespace GPlatform {
class GpLogConsumerConsole final: public GpLogConsumer
{
public:
CLASS_REMOVE_CTRS_DEFAULT_MOVE_COPY(GpLogConsumerConsole)
CLASS_DECLARE_DEFAULTS(GpLogConsumerConsole)
public:
GpLogConsumerConsole ... | 30.181818 | 96 | 0.649096 | aofitserov |
56c76f6bb0f11fc5c66a2e921a7fc29368e626b2 | 218 | cpp | C++ | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | #include "Error.h"
#include <sge_core/log/Log.h>
namespace sge {
Error::Error(const SrcLoc& loc, StrView msg)
: _loc(loc), _msg(msg)
{
SGE_LOG("Error: {}", msg);
SGE_ASSERT(false);
}
} // namespace
| 15.571429 | 46 | 0.614679 | SimpleTalkCpp |
56c83a80101ec1fcda9503bdb84a1528d5b1bedf | 5,221 | cpp | C++ | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | #include <string>
#include <algorithm>
#include <bitset>
#include <iostream>
#include "parser_helpers.hpp"
using namespace std;
DeclarationSpecifiers get_storage_class_specifier(DeclarationSpecifiers ds) {
return static_cast<DeclarationSpecifiers>(ds & 0b11111000000000);
}
DeclarationSpecifiers get_type_specifie... | 39.255639 | 106 | 0.701015 | ac56 |
56c9e15ac2a64a52b0a8c59303c4d40d8bcc8551 | 3,625 | cpp | C++ | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 18 | 2016-05-10T15:54:05.000Z | 2022-03-29T22:27:30.000Z | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 4 | 2017-04-12T12:52:14.000Z | 2019-05-10T10:50:48.000Z | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 3 | 2019-05-10T09:30:20.000Z | 2020-12-20T08:08:20.000Z | #include <QtGui>
#include <QtWidgets>
#include "vizpoint.h"
#include "vizprojection.h"
const int VizPoint::NO_COORD;
VizPoint::VizPoint(VizPolyhedron *polyhedron) :
QGraphicsObject(polyhedron), m_polyhedron(polyhedron) {
setFlag(QGraphicsItem::ItemIsSelectable);
setFlag(QGraphicsItem::ItemIsMovable);
setFlag... | 31.25 | 102 | 0.729655 | ftynse |
08cb2801dc2c87ff64aae5a950adf7e07e76b4fb | 360 | hpp | C++ | cleanup/cleanup.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | 4 | 2020-10-28T21:31:30.000Z | 2021-08-02T21:38:22.000Z | cleanup/cleanup.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | null | null | null | cleanup/cleanup.hpp | alipha/cpp | 0e880164e58ee8fcfe2fc818b4b9de289a4dd476 | [
"MIT"
] | null | null | null | #ifndef LIPH_CLEANUP_HPP
#define LIPH_CLEANUP_HPP
#include <utility>
template<typename Func>
struct cleanup {
cleanup(Func f) : func(std::move(f)) {}
~cleanup() noexcept(noexcept(std::declval<Func>()())) { func(); }
private:
cleanup(const cleanup &) = delete;
cleanup &operator=(const cleanup &) =... | 18.947368 | 69 | 0.65 | alipha |
08d1c9ee2b263aa11dbf3370fe8fd500199ed93a | 800 | hpp | C++ | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 4 | 2021-12-20T19:35:20.000Z | 2021-12-27T10:59:35.000Z | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | null | null | null | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 3 | 2021-12-27T06:51:00.000Z | 2021-12-31T07:42:45.000Z | #ifndef PARTICLE_SYS_VULKAN_ENGINE_HPP
#define PARTICLE_SYS_VULKAN_ENGINE_HPP
#include "IOManager.hpp"
#include "Camera.hpp"
#include "EventHandler.hpp"
#include "Perspective.hpp"
#include "VulkanRenderer.hpp"
#include "Ui.hpp"
#include "ModelInstanceInfo.hpp"
class Engine final
{
public:
Engine() = default;
... | 22.857143 | 50 | 0.7125 | cledant |
08d1d2c5b6c8f24eaa5c0ceef7581c4bc0336445 | 649 | cpp | C++ | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | #pragma once
#include "StagePlayTime.h"
namespace Lunia {
namespace XRated {
namespace Database {
namespace Info {
void StagePlayTime::Serialize(Serializer::IStreamWriter& out) const
{
out.Begin(L"AllM::XRated::Database::Info::StagePlayTimeInfo");
out.Write(L"AveragePlayTime", AveragePlayTime);... | 28.217391 | 71 | 0.701079 | Teles1 |
08da535c0ca7f38e948683589c0c432d7833709e | 9,023 | cpp | C++ | provers/cryptominisat-5.0.1/src/reducedb.cpp | aristk/static-analyser | 6e3973b79c1e9bd6c9e7281ba9a9c75b348e42c6 | [
"MIT"
] | 1 | 2018-08-25T07:11:59.000Z | 2018-08-25T07:11:59.000Z | provers/cryptominisat-5.0.1/src/reducedb.cpp | aristk/static-analyser | 6e3973b79c1e9bd6c9e7281ba9a9c75b348e42c6 | [
"MIT"
] | null | null | null | provers/cryptominisat-5.0.1/src/reducedb.cpp | aristk/static-analyser | 6e3973b79c1e9bd6c9e7281ba9a9c75b348e42c6 | [
"MIT"
] | null | null | null | /******************************************
Copyright (c) 2016, Mate Soos
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,... | 29.295455 | 116 | 0.6172 | aristk |
08e238bedaf7fd14cba28b7f62613337d06757c8 | 3,698 | hpp | C++ | libproxyobject/include/sirikata/proxyobject/Invokable.hpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 31 | 2015-01-28T17:01:10.000Z | 2021-11-04T08:30:37.000Z | libproxyobject/include/sirikata/proxyobject/Invokable.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libproxyobject/include/sirikata/proxyobject/Invokable.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 9 | 2015-08-02T18:39:49.000Z | 2019-10-11T10:32:30.000Z | #ifndef _SIRIKATA_INVOKABLE_HPP_
#define _SIRIKATA_INVOKABLE_HPP_
#include <sirikata/proxyobject/Platform.hpp>
#include <sirikata/core/util/SpaceObjectReference.hpp>
#include <vector>
#include <boost/any.hpp>
namespace Sirikata
{
class SIRIKATA_PROXYOBJECT_EXPORT Invokable
{
public:
virtual boost::any in... | 41.088889 | 88 | 0.706869 | sirikata |
08e375d113f6bb9bd254539c84a3a4ad9b6008ec | 1,525 | hpp | C++ | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | 2 | 2018-02-07T01:19:37.000Z | 2018-02-09T14:27:48.000Z | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
// @author Tony Richards - <trichards@indiezen.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 22.426471 | 80 | 0.403934 | hatboysoftware |
08e499151a4220e05a56a56ccec442bb0e87d39d | 22,435 | hpp | C++ | f9_os/inc/os/devices/stm32f7_uart.hpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/inc/os/devices/stm32f7_uart.hpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/inc/os/devices/stm32f7_uart.hpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | 1 | 2020-03-08T01:08:38.000Z | 2020-03-08T01:08:38.000Z |
#ifndef _OS_STM32F7_UART_HPP_
#define _OS_STM32F7_UART_HPP_
#include "../types.hpp"
#include "../driver.hpp"
#include "usart.hpp"
#include <stm32f7xx.h>
#include <stm32746g_discovery.h>
namespace os {
namespace device {
namespace stm32f7xx {
enum class uart_flag : uint32_t {
teack = ((uint32_t)0x002000... | 42.330189 | 199 | 0.604546 | ghsecuritylab |
08e54fe8632e15e764e0332edaca50b3e6c9818e | 1,297 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrxml/pcrgenxml_numericsetting.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrxml/pcrgenxml_numericsetting.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrxml/pcrgenxml_numericsetting.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | /*!
\note
Do not edit, generated from libs/pcrxml/generate.py
*/
#ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
#ifndef INCLUDED_PCRGENXML_NUMERICSETTING
#include "pcrgenxml_numericsetting.h"
#define INCLUDED_PCRGENXML_NUMERICSETTING
#endif
#ifndef INCLUDED_QDOM
#include <qdom.h>
#define... | 19.953846 | 97 | 0.752506 | quanpands |
08e5bd8c625c56319fb1f55f6f1a6d2a0a51b838 | 1,929 | cpp | C++ | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | 1 | 2022-02-24T04:32:07.000Z | 2022-02-24T04:32:07.000Z | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | null | null | null | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | null | null | null | #include "writeclient.h"
WriteClient::WriteClient()
{
}
//初始化静态成员变量
WriteClient* WriteClient::writeClient = nullptr;
WriteClient * WriteClient::getTcpSocketClient(){
if(writeClient == nullptr){
writeClient = new WriteClient;
unordered_map<string, string> configMap = ConfigReader::readServerConfig(... | 33.842105 | 129 | 0.599274 | canghenzhilei123 |
08e6faef1b3c3afad12f18c5a6e3060f3c84f0e5 | 2,411 | hpp | C++ | include/boost/hana/traversable.hpp | josephwinston/hana | a8586ec1812e14e43dfd6867209412aa1d254e1a | [
"BSL-1.0"
] | null | null | null | include/boost/hana/traversable.hpp | josephwinston/hana | a8586ec1812e14e43dfd6867209412aa1d254e1a | [
"BSL-1.0"
] | null | null | null | include/boost/hana/traversable.hpp | josephwinston/hana | a8586ec1812e14e43dfd6867209412aa1d254e1a | [
"BSL-1.0"
] | null | null | null | /*!
@file
Defines `boost::hana::Traversable`.
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_TRAVERSABLE_HPP
#define BOOST_HANA_TRAVERSABLE_HPP
#include <boost/hana/fwd/trave... | 34.942029 | 78 | 0.528411 | josephwinston |
08ea9b946787faac58c7a98335de4d245353c590 | 1,166 | cpp | C++ | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | #include <numeric>
#include <vector>
#include <iostream>
#include <algorithm>
#define FOR(i, a, b) for (int i = a; i < (b); i++)
using namespace std;
// binary search
int furthestBuilding(vector<int> &heights, int bricks, int ladders) {
const int n = heights.size();
if (ladders >= n - 1) return n - 1;
vect... | 23.795918 | 69 | 0.518868 | yanjinbin |
08ef6b8f98e1d6ecc10a830288430e89684b1276 | 6,065 | cpp | C++ | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 96 | 2015-01-23T10:15:09.000Z | 2022-02-06T18:31:02.000Z | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 105 | 2015-01-14T09:01:06.000Z | 2022-03-05T06:10:39.000Z | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 157 | 2015-01-26T13:35:51.000Z | 2022-02-14T11:12:27.000Z | //
// Copyright (c) 2018-2020, Cem Bassoy, cem.bassoy@gmail.com
// Copyright (c) 2019-2020, Amit Singh, amitsingh19975@gmail.com
//
// 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)
//
// The authors grateful... | 25.376569 | 145 | 0.55911 | samd2 |
08f52ff15c6e14ab1a07ce7a246078a90c4c5e1a | 201 | hpp | C++ | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | #pragma once
#include "color.hpp"
#include <glm/glm.hpp>
namespace rt {
struct Light {
glm::vec3 position;
Color color;
float intensity;
};
float getLightAttenuation(float distance);
}
| 11.166667 | 43 | 0.691542 | Martstol |
08f5c7dda582bb390256b2c599f0cadb6e3ca280 | 3,247 | cpp | C++ | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #pragma GCC optimize 2
#include <bits/stdc++.h>
#define N 100020
#define mod 998244353
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
ch... | 21.084416 | 63 | 0.453342 | swwind |
08f6734c6ac36dca31c9da634ad7e6df4e7f17ea | 104 | hpp | C++ | third_party/amo/amo/nil.hpp | amoylel/NCUI | a3b315ebf97d9903766efdafa42c24d4212d5ad6 | [
"BSD-2-Clause"
] | 24 | 2018-11-20T14:45:57.000Z | 2021-12-30T13:38:42.000Z | third_party/amo/amo/nil.hpp | amoylel/NCUI | a3b315ebf97d9903766efdafa42c24d4212d5ad6 | [
"BSD-2-Clause"
] | null | null | null | third_party/amo/amo/nil.hpp | amoylel/NCUI | a3b315ebf97d9903766efdafa42c24d4212d5ad6 | [
"BSD-2-Clause"
] | 11 | 2018-11-29T00:09:14.000Z | 2021-11-23T08:13:17.000Z | #ifndef AMO_NIL_HPP__
#define AMO_NIL_HPP__
namespace amo
{
class nil{};
}
#endif // AMO_NIL_HPP__
| 9.454545 | 23 | 0.730769 | amoylel |
08f797ff05bc6118f221cecdeca564c870ef170d | 14,795 | cc | C++ | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | #include "Font_Control.h"
#include "Lighting.h"
#include "Environment.h"
#include "RenderWorld.h"
#include "Sound_Control.h"
#include "Overhead.h"
#include "Game_Clock.h"
#include "Quests.h"
#include "Ambient_Control.h"
#include "AIMMembers.h"
#include "Strategic_Event_Handler.h"
#include "BobbyR.h"
#include "Mercs.h"
... | 22.973602 | 131 | 0.700777 | hb029 |
08fc5a17d69882619a629f3a66d3f0fcdc1980a3 | 505 | cpp | C++ | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | #include <Hazel.h>
#include <Hazel/Core/EntryPoint.h>
#include "EditorLayer.h"
// #include "TestLayer.h"
// #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) // ������ڵ�ַ
namespace Hazel {
class Hazelnut :public Application
{
public:
Hazelnut()
: Application("Hazel Editor... | 14.852941 | 93 | 0.6 | 1111mp |
1c0413681a7a626bf4522c62f20d71d77c41ba78 | 3,799 | hpp | C++ | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 46 | 2017-02-15T14:24:14.000Z | 2021-10-01T14:25:57.000Z | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 27 | 2017-02-15T15:13:42.000Z | 2021-08-28T15:29:01.000Z | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 39 | 2017-05-18T11:51:03.000Z | 2021-09-14T09:07:01.000Z | /**
* \file
* \brief Due / sam3x8e native SPI.
* \author Chris Smeele
* \date 2016-10-09
* \copyright Copyright (c) 2016, Chris Smeele
*
* 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)
*/
#pra... | 31.92437 | 98 | 0.501974 | TheBlindMick |
1c05c5525846bf8590635cf4b01bd5f86593a3d2 | 1,968 | cpp | C++ | test/Enbian.cpp | weiboad/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 62 | 2017-02-15T11:36:46.000Z | 2022-03-14T09:11:10.000Z | test/Enbian.cpp | AraHaan/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 5 | 2017-02-21T05:32:14.000Z | 2017-05-21T13:15:07.000Z | test/Enbian.cpp | AraHaan/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 22 | 2017-02-16T02:11:25.000Z | 2020-02-12T18:12:44.000Z | #include <adbase/Utility.hpp>
#include <gtest/gtest.h>
#include <cassert>
template<typename T>
std::string convertString(T value) {
char bytes[sizeof(T)];
memcpy(bytes, &value, sizeof(T));
return adbase::bytesToHexString(bytes, sizeof(T));
}
TEST(EnbianTest, EnbianHostToNet) {
uint64_t test = 1234;
# if __BYTE_O... | 29.818182 | 64 | 0.737297 | weiboad |
1c091b9e7478c8a027cb5e61564533e39dcd26e6 | 1,126 | cpp | C++ | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Kattis_Free Food
//
// Created by mcr on 24/10/2020.
//
#pragma GCC optimize(3,"Ofast","inline")
//#include <bits/stdc++.h>
#include<iostream>
#include<sstream>
#include<iomanip>
#include<math.h>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<stack>
#include<set>
#incl... | 16.318841 | 44 | 0.587922 | Kattis-Everyday |
1c0a751d644df835f363fa0fc5b061f1282eb853 | 1,988 | cpp | C++ | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | #include "AnimateImage.hpp"
AnimateImage::AnimateImage(int delay){
this->delay = delay;
this->currentFrame = 0;
this->currentTime = 0;
this->width = 0;
this->height = 0;
}
void AnimateImage::AddImage(ppImage* image, int offsetX, int offsetY){
this->frames.push_back(image);
this->offsetX.push_back(offsetX);
th... | 22.337079 | 93 | 0.677062 | spywhere |
1c0daa45ec57664ccb1c164c0a7cdd0b7dc62640 | 184 | cpp | C++ | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | #include "src2.h"
void leak_taint(int i) {
// this should just provide a sink
}
int sanitize(int i) {
if (i == 13) {
return 0;
} else {
return i;
}
}
| 13.142857 | 38 | 0.51087 | flix- |
1c0e1ed414cfe75462028da2d61903ee1c14adee | 287 | cpp | C++ | cpp_playground/ex091/touppercase.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 14 | 2019-04-23T13:45:10.000Z | 2022-03-12T18:26:47.000Z | cpp_playground/ex091/touppercase.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | null | null | null | cpp_playground/ex091/touppercase.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 9 | 2019-09-01T15:17:45.000Z | 2020-11-13T20:31:36.000Z | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
vector<string> v{"hello", "hi", "hallo"};
for (string s : v)
{
transform(s.begin(), s.end(), s.begin(), ::toupper);
cout << s << endl;
}
}
/*
HELLO
HI
HALLO
*/ | 13.666667 | 60 | 0.547038 | chgogos |
1c0e207601a3694788988ba6653328e15ac35498 | 4,328 | hpp | C++ | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | #ifndef _STATIC_POLY__ENCAP_HPP_
#define _STATIC_POLY__ENCAP_HPP_
#include <iostream>
#include <type_traits>
using namespace std;
#include "static_poly_traits.hpp"
template<
typename TimeT,
typename SpatialT
>
class Encapsulation
{
static_assert(is_floating_point<TimeT>::value,
"temporal type ... | 30.478873 | 121 | 0.694316 | torbjoernk |
1c0f82d4ed8bfe5b6bc31548b60861ba251a2a7c | 970 | cpp | C++ | lib/utilities/log.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | lib/utilities/log.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | lib/utilities/log.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | #include "log.h"
#include <boost/log/core.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/trivial.hpp>
#include "utilities/error.h"
namespace cpt {
namespace {
boost::log::trivial::severity_level log_level_to_boost(LogLevel lvl) {
switch(lvl) {
case LogLevel::Debug:
return boost::log::tr... | 21.555556 | 70 | 0.636082 | b3h47pte |
1c11a0d9d0b8384a5357b98b3bbcc180f753768f | 907 | cpp | C++ | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:58:54.000Z | 2021-05-09T00:12:52.000Z | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 7 | 2019-02-12T21:15:29.000Z | 2019-03-05T23:41:45.000Z | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:59:34.000Z | 2019-04-16T10:31:46.000Z | #include "Blob.hpp"
#include <git2/blob.h>
#include "ObjectId.hpp"
#include "Repository.hpp"
namespace gitpp {
Blob::~Blob() = default;
std::optional<Blob> Blob::fromId(const Repository& repo, const ObjectId& id) noexcept {
git_blob* handle = nullptr;
if (git_blob_lookup(&handle, repo.handle(), id.handle()) ==... | 23.25641 | 87 | 0.701213 | Templar-von-Midgard |
1c133593e43952292e69bc558708ae7c575b47a2 | 7,696 | cxx | C++ | main/xmloff/source/text/txtsecte.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/xmloff/source/text/txtsecte.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/xmloff/source/text/txtsecte.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 30.180392 | 71 | 0.713358 | Grosskopf |
1c1c6f73388c02a2e1370f9e79ea6d5745c7081c | 9,133 | cpp | C++ | qt-creator-opensource-src-4.6.1/tests/auto/debugger/tst_gdb.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/tests/auto/debugger/tst_gdb.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/tests/auto/debugger/tst_gdb.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 31.933566 | 91 | 0.525895 | kevinlq |
1c1d71566f523021b5c8d706b5d3194b3704f555 | 1,734 | cpp | C++ | SemiPerfect Numbers/SemiPerfect Numbers.cpp | philippossfrn/Integer-Sequences | ba803320ab6e1abd921db402c60fb8c48a5877d5 | [
"Unlicense"
] | 48 | 2021-06-28T05:53:43.000Z | 2022-03-17T10:37:26.000Z | SemiPerfect Numbers/SemiPerfect Numbers.cpp | philippossfrn/Integer-Sequences | ba803320ab6e1abd921db402c60fb8c48a5877d5 | [
"Unlicense"
] | 99 | 2021-06-28T03:16:51.000Z | 2022-03-17T00:18:50.000Z | SemiPerfect Numbers/SemiPerfect Numbers.cpp | philippossfrn/Integer-Sequences | ba803320ab6e1abd921db402c60fb8c48a5877d5 | [
"Unlicense"
] | 140 | 2021-06-28T06:29:19.000Z | 2022-03-30T11:15:45.000Z | // C++ program to check if the number
// is semi-perfect or not
#include <bits/stdc++.h>
using namespace std;
// code to find all the factors of
// the number excluding the number itself
vector<int> factors(int n)
{
// vector to store the factors
vector<int> v;
v.push_back(1);
// note that this loop runs till sqr... | 18.645161 | 50 | 0.572088 | philippossfrn |
1c1f2370817e9ad0d7be6bc77ed207a8b5fb6423 | 13,040 | cpp | C++ | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | /*
This is klsupport.cpp
Coxeter version 3.0 Copyright (C) 2002 Fokko du Cloux
See file main.cpp for full copyright notice
*/
#include <coxeter/klsupport.h>
/*
This module contains code for the operations that can be "factored out"
amongst the various k-l tables : the ordinary one, the inverse one, and
... | 22.678261 | 79 | 0.62362 | iclue-summer-2020 |
1c269a2ef4165c956770762e75b5242b3408491f | 2,478 | cpp | C++ | plugins/robots/interpreters/ev3KitInterpreter/src/robotModel/real/parts/button.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 39 | 2015-01-26T16:18:43.000Z | 2021-12-20T23:36:41.000Z | plugins/robots/interpreters/ev3KitInterpreter/src/robotModel/real/parts/button.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 1,248 | 2019-02-21T19:32:09.000Z | 2022-03-29T16:50:04.000Z | plugins/robots/interpreters/ev3KitInterpreter/src/robotModel/real/parts/button.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 58 | 2015-03-03T12:57:28.000Z | 2020-05-09T15:54:42.000Z | /* Copyright 2007-2015 QReal Research Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 35.4 | 91 | 0.751412 | anastasia143 |
1c29b9bdf60312afc68f7d855e00f438907bfc7a | 4,752 | cpp | C++ | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | 2 | 2015-12-30T00:32:09.000Z | 2016-02-27T14:50:06.000Z | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | //
// EngineSTD - EngineIDE Development Interface
//
// Programmers :
// Viviennie Anthony
// Andrej Skorinko
//
// Vivienne Anthony - Copyright (c) 2008-2015
//
#include "EngineIDEStd.h"
#include "GameLogic/EditorGameLogic.h"
#include "EngineIDEApplication.h"
// Core editor headers
#include "Cor... | 25.010526 | 110 | 0.71633 | vivienneanthony |
1c2f3d1bb19333df5691900e141e914494500695 | 2,005 | cpp | C++ | dev/Code/Framework/AzQtComponents/Platform/Windows/AzQtComponents/Utilities/HandleDpiAwareness_Windows.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzQtComponents/Platform/Windows/AzQtComponents/Utilities/HandleDpiAwareness_Windows.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzQtComponents/Platform/Windows/AzQtComponents/Utilities/HandleDpiAwareness_Windows.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 38.557692 | 107 | 0.6 | brianherrera |
1c301be6d48b2e25d7a824238159737bcb2c1194 | 1,173 | cpp | C++ | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | 1 | 2020-02-27T15:52:01.000Z | 2020-02-27T15:52:01.000Z | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | null | null | null | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | null | null | null | #include "headers/matrix.h"
#include <cmath>
void buildRotMatrix(float *x, float *y, float *z, float *m) {
m[0] = x[0];
m[1] = x[1];
m[2] = x[2];
m[3] = 0;
m[4] = y[0];
m[5] = y[1];
m[6] = y[2];
m[7] = 0;
m[8] = z[0];
m[9] = z[1];
... | 23 | 86 | 0.356351 | pimonteiro |
1c3120c64362eb74c070b75290a9d4c24d495311 | 766 | cpp | C++ | 3. Структуры данных/59. Правильная скобочная последовательность #3716/[OK]225982.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 19 | 2018-05-19T16:37:14.000Z | 2022-03-23T20:13:43.000Z | 3. Структуры данных/59. Правильная скобочная последовательность #3716/[OK]225982.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 6 | 2020-05-07T21:06:48.000Z | 2020-06-05T17:52:57.000Z | 3. Структуры данных/59. Правильная скобочная последовательность #3716/[OK]225982.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 31 | 2019-03-01T21:41:38.000Z | 2022-03-27T17:56:39.000Z | #include <fstream>
#include <iostream>
#include <vector>
#include <map>
#include <string>
using namespace std;
string s;
vector<int> vec;
int main()
{
ofstream cout("output.txt");
ifstream cin("input.txt");
cin>>s;
for(int i=0; i<s.size(); i++)
{
if(s[i] == '(')
... | 19.641026 | 51 | 0.426893 | godnoTA |
1c34e2b351fc1ffc5ff5627122fa54bfc6c8c643 | 524 | cpp | C++ | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | 1 | 2020-11-10T05:34:42.000Z | 2020-11-10T05:34:42.000Z |
#include "test_common.h"
#include "xdb/redis/RedisClient.h"
#include <glog/logging.h>
#include <memory>
#ifdef OPEN_REDIS_CLIENT
//------------------------------------------------------------------------
// 测试Redis连接
//------------------------------------------------------------------------
TEST_UNIT(TestRedisCon... | 22.782609 | 74 | 0.501908 | xgm-skywave |
1c3dc86257880d9a8ce0a15a6ea5c8f2261ef841 | 1,710 | cpp | C++ | idstringmodel.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | idstringmodel.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | idstringmodel.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | #include "idstringmodel.h"
IdStringModel::IdStringModel(QObject *parent)
: QAbstractListModel(parent)
{
}
QVariant IdStringModel::headerData(int section, Qt::Orientation orientation, int role) const
{
Q_UNUSED(section)
Q_UNUSED(orientation)
Q_UNUSED(role)
return QVariant(QString());
}... | 23.108108 | 93 | 0.602924 | igrekus |
1c40427bc0d54ed0d8da6acc39438b856ecd18d8 | 1,177 | cpp | C++ | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <functional>
#include <iterator>
#define SIZE 100010
#define OFFSET 200010
#de... | 21.017857 | 51 | 0.540357 | codgician |
1c47e04b85e4097e0b31890a20d7a1e3e579881c | 707 | hpp | C++ | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | /**
* @file NoConstruct.hpp
* @author Zachary Frost
* @date Created on 2021-04-28
* @copyright See LICENSE.md at repo root
* @brief Helpers for classes that can't be constructed.
*/
#pragma once
#define PR_NO_CONSTRUCT(ClassName) \
public: \
Cla... | 33.666667 | 56 | 0.475248 | PrismalEngine |
1c4afcbaf6309a8e4e65ebb9b14b82bb658771a8 | 813 | cpp | C++ | examples/accented_44.cpp | sevagh/libjungle | a7153b327fcc83459d1bb7c36d7aae9eead51d42 | [
"MIT"
] | 2 | 2020-06-14T03:06:03.000Z | 2022-03-26T06:53:17.000Z | examples/accented_44.cpp | sevagh/libmetro | a7153b327fcc83459d1bb7c36d7aae9eead51d42 | [
"MIT"
] | null | null | null | examples/accented_44.cpp | sevagh/libmetro | a7153b327fcc83459d1bb7c36d7aae9eead51d42 | [
"MIT"
] | null | null | null | #include "libmetro.h"
#include <iostream>
int main(int argc, char** argv)
{
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " bpm" << std::endl;
exit(1);
}
int bpm = std::stoi(argv[1]);
try {
auto metronome = metro::Metronome(bpm);
auto downbeat = metro::Note(metro::Note::Timbre::Sine, 540.0, 100.0... | 23.228571 | 72 | 0.634686 | sevagh |
1c4b73270aee77c9880b7d92fcaa572baa59cf72 | 19,610 | cpp | C++ | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file bmp.cpp
* @brief Ecriture des images bitmap (8,24bpp) avec ou sans palette.
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-10
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/image/precompiled.h"
#include "o3d/ima... | 23.179669 | 96 | 0.55232 | dream-overflow |
1c4d3c254589284f3ad07c6d2c71205ccbc2cda6 | 1,378 | hpp | C++ | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_CONTAINER_BUFFER_APPEND_FROM_HPP_INCLUDED
#define FCPPT_CONTAINER_BUFFER_APPEND_FROM... | 17.666667 | 84 | 0.727141 | pmiddend |
1c4d7bb923510bd97fdabdad032b5f7d9b8d07db | 449 | cpp | C++ | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | #include "LibraryASub/LibraryASub.hpp"
#include <LibraryInterfaceB.hpp>
#include <LibraryInterfaceA.hpp>
#include <iostream>
namespace NLibraryA
{
CLibraryASub::CLibraryASub()
{
std::cout<<"CLibraryASub\n";
NLibraryInterfaceB::CLibraryInterfaceB b;
NLibraryInterfaceA::CLibraryInterfaceA a;
#ifdef DEFINE_LIB_A
st... | 21.380952 | 62 | 0.750557 | iblis-ms |
1c52e534ec053556c4779b621be17179225ead2a | 2,977 | cpp | C++ | android-28/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JByteArray.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "../../java/nio/ByteBuffer.hpp"
#include "../../java/security/Provider.hpp"
#include "../../java/security/Provider_Service.hpp"
#include "./MacSpi.hpp"
#include "./Mac.hpp"
namespace javax::crypto
{
// Fields
// QJni... | 18.490683 | 81 | 0.63218 | YJBeetle |
1c67498588d9ed9ef41f3b2e8d4370762a2f8e87 | 22,197 | cpp | C++ | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 47 | 2021-11-08T15:16:02.000Z | 2022-03-23T17:06:54.000Z | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 2 | 2021-11-09T00:39:03.000Z | 2021-11-09T09:43:27.000Z | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 3 | 2021-11-27T04:13:20.000Z | 2022-02-11T05:20:48.000Z | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 41.412313 | 135 | 0.686985 | nvpro-samples |
1c67c55c417563f795a2d8dc17b6ad69cdc80067 | 777 | cpp | C++ | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAX_SIZE = 10;
void input_number(int index, int (&arr)[MAX_SIZE]);
double get_average(int size, int arr[MAX_SIZE]);
int main() {
double avg;
int i, size, sum;
int arr[MAX_SIZE];
cout << "Enter size <= " << MAX_SIZE << ": ";
cin >> size;
f... | 16.531915 | 51 | 0.545689 | lcary |
1c6afb422ab4eb0719c86f8ab4cae2335e4553ce | 444 | hpp | C++ | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | #ifndef SOURCES_SCOUT_SPRITENODE_HPP_
#define SOURCES_SCOUT_SPRITENODE_HPP_
#include "SceneNode.hpp"
#include <SFML/Graphics/Sprite.hpp>
class SpriteNode : public SceneNode
{
public:
explicit SpriteNode(const sf::Texture& texture);
SpriteNode(const sf::Texture& texture, const sf::IntRect& rect);
private... | 21.142857 | 86 | 0.752252 | GatorQue |
1c6b12000c7e371996cc24cdd0b04b70acd17fb9 | 1,518 | cpp | C++ | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | #include <vs/base/math/ScreenCoords2WorldCoords.h>
namespace vs
{
namespace base
{
namespace math
{
ScreenCoords2WorldCoords::ScreenCoords2WorldCoords()
: xScreenHalf(1), yScreenHalf(1), viewingAngle(1), ratio(1),
viewingPlaneX(1, 0, 0), viewingPlaneY(0, 1, 0), viewingPlaneZ(0, 0, 1),
position(0, 0, 0), up(0, ... | 30.979592 | 81 | 0.653491 | sizilium |
1c6cdc8e9528b410315dc6356d22c4028b3bf41c | 6,936 | cpp | C++ | src/config.cpp | nathiss/Darwin | 5248376e6179ed1ba461e4d01aa92c51ecc1632d | [
"MIT"
] | null | null | null | src/config.cpp | nathiss/Darwin | 5248376e6179ed1ba461e4d01aa92c51ecc1632d | [
"MIT"
] | null | null | null | src/config.cpp | nathiss/Darwin | 5248376e6179ed1ba461e4d01aa92c51ecc1632d | [
"MIT"
] | null | null | null | //
// Created by nathiss on 10/11/2019.
//
#include <stdexcept>
#include <thread>
#include <fmt/format.h>
#include <darwin/cross/average_incubator.hpp>
#include <darwin/config.hpp>
#include <darwin/mutate/rectangle_mutator.hpp>
#include <darwin/score/square_judge.hpp>
namespace darwin {
Config::Config(int argc, ch... | 31.671233 | 117 | 0.699683 | nathiss |
1c6df3e502aa02b3658ca0436f830b7b8e29f1f5 | 782 | hpp | C++ | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 409 | 2015-01-03T00:08:16.000Z | 2021-11-29T05:42:06.000Z | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 185 | 2015-01-03T14:52:31.000Z | 2021-11-19T20:58:48.000Z | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 74 | 2015-01-12T19:08:54.000Z | 2021-11-22T23:43:59.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVOpenHexagon/Data/ColorData.hpp"
#include <variant>
namespace Json {
class Value;
}
namespace ssvuj {
using Obj = Json::Value;
}
namespac... | 19.073171 | 69 | 0.650895 | duck-37 |