hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94c8af32110bf8d1516cfcda59fdbd3a8a4dbde1 | 1,572 | cpp | C++ | 63.Search-in-Rotated-Sorted-Array.cpp | DeepDuke/Lintcode-Solution | 7c92d03f1267ed84e26180fdeb8abdfc67708019 | [
"MIT"
] | null | null | null | 63.Search-in-Rotated-Sorted-Array.cpp | DeepDuke/Lintcode-Solution | 7c92d03f1267ed84e26180fdeb8abdfc67708019 | [
"MIT"
] | null | null | null | 63.Search-in-Rotated-Sorted-Array.cpp | DeepDuke/Lintcode-Solution | 7c92d03f1267ed84e26180fdeb8abdfc67708019 | [
"MIT"
] | null | null | null | /*
当数组元素有重复时,修改findPivot函数里>改成>=即可,其余与62题基本一样
*/
class Solution {
public:
/**
* @param A: an integer ratated sorted array and duplicates are allowed
* @param target: An integer
* @return: a boolean
*/
int findPivot(vector<int> A){
int L = 0, R = A.size()-1;
while(L < R-1){
... | 28.581818 | 75 | 0.442748 | DeepDuke |
94d287c82bff7c330ca856577cc0f244f8041636 | 1,411 | cxx | C++ | src/Internal/FontManager.cxx | EXio4/framefun | f055ba82e6c24609dc88b1ea2b03412748809bde | [
"MIT"
] | 1 | 2017-09-30T06:28:57.000Z | 2017-09-30T06:28:57.000Z | src/Internal/FontManager.cxx | EXio4/framefun | f055ba82e6c24609dc88b1ea2b03412748809bde | [
"MIT"
] | null | null | null | src/Internal/FontManager.cxx | EXio4/framefun | f055ba82e6c24609dc88b1ea2b03412748809bde | [
"MIT"
] | null | null | null | #include "Internal/FontManager.h"
namespace Internal {
FontManager::FontManager(Drawer& backend) : backend(backend) {
#include "font.h"
}
bool FontManager::check_bit(int c, int x, int y) {
if (bits[c].size() == 0) return false;
if (x < 0 || x >= FONT_WIDTH) return false;
if (y < 0 || y >= FONT_HEIGHT... | 30.673913 | 106 | 0.464918 | EXio4 |
94d2fed44993131ce2714cef730071ddf5ba1edf | 604 | cpp | C++ | sample02.cpp | tomoaki0705/sampleMsa | b97b4697cb633e290f643bdb368a235afbde6b95 | [
"MIT"
] | 2 | 2017-08-16T07:03:32.000Z | 2018-07-02T08:22:35.000Z | sample02.cpp | tomoaki0705/sampleMsa | b97b4697cb633e290f643bdb368a235afbde6b95 | [
"MIT"
] | null | null | null | sample02.cpp | tomoaki0705/sampleMsa | b97b4697cb633e290f643bdb368a235afbde6b95 | [
"MIT"
] | null | null | null | #include <msa.h>
#include <iostream>
const char src1[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, };
const char src2[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, };
char dst[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
int main(int argc, char**argv)
{
v16i8 v_src1, v_src2, v_dst;
v_s... | 25.166667 | 77 | 0.551325 | tomoaki0705 |
94dbeda51791685f326d833076c7d11f2b415bd9 | 1,164 | hh | C++ | system-test/maxtest/include/maxtest/execute_cmd.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | system-test/maxtest/include/maxtest/execute_cmd.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | system-test/maxtest/include/maxtest/execute_cmd.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <maxtest/ccdefs.hh>
/**
* @brief execute_cmd Execute shell command
* @param cmd Command line
* @param res Pointer to variable that will contain command console output (stdout)
* @return Process exit code
*/
int execute_cmd(char * cmd, char ** res);
namespace maxtest
{
class VMNode;
}
names... | 24.765957 | 99 | 0.68299 | sdrik |
94e32da4e7dcb55dd209aa18b620c521dbab2b7d | 31,963 | cpp | C++ | tau/TauEngine/src/model/SimpleOBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/src/model/SimpleOBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/src/model/SimpleOBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma warning(push, 0)
#include <cstdio>
#include <cstring>
#pragma warning(pop)
#include <maths/Maths.hpp>
#include <model/OBJLoader.hpp>
#include <memory>
#include "VFS.hpp"
#include "Timings.hpp"
namespace objl
{
float Vector3::magnitude() const noexcept
{
return sqrtf(this->magnitud... | 36.6969 | 259 | 0.439633 | hyfloac |
94e6b825a689255aad87f7906de452f9ac29aae3 | 1,070 | cpp | C++ | Online Judges/LightOJ/1025 - The Specials Menu.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1025 - The Specials Menu.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1025 - The Specials Menu.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define rep(i,p,n) for( i = p; i<n;i++)
#define lld long long int
#define Clear(a,b) memset(a,b,sizeof(a))
template<class T>inline bool read(T &x) {
int c=getchar();
int sgn=1;
while(~c&&c<'0'||c>'9') {
if(c=='-')sgn=-1;
c=ge... | 16.461538 | 58 | 0.461682 | akazad13 |
94e7b9fa7f1886713e2364dd7780f6b612101828 | 6,481 | cpp | C++ | src/textGUI.cpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | 9 | 2016-01-17T21:24:17.000Z | 2021-11-23T17:39:38.000Z | src/textGUI.cpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | null | null | null | src/textGUI.cpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | null | null | null | /*----------------------------------------------------------------------------/
/ JPEG and PNG Image Viewer for the Casio Prizm
/ Copyright 2014 tny. internet media
/ http://i.tny.im / admin@tny.im
/-----------------------------------------------------------------------------/
/ Copyright (c) 2014, Gabriel Maia and t... | 38.577381 | 144 | 0.61472 | gbl08ma |
94ec18963741edd2f2b908aa71c7ce514cef5e85 | 125 | cpp | C++ | System/RocketState.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | System/RocketState.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | System/RocketState.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | #include "RocketState.h"
RocketState::RocketState() {
}
RocketState::~RocketState() {
}
//this was updated | 11.363636 | 30 | 0.616 | MatthewGotte |
94fa2db144ba53ea10218b9e1f20d235fbac0519 | 604 | cpp | C++ | cpp/23716.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/23716.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/23716.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
int main() {
fastio;
int N; cin >> N;
for (int c = 1; c <= N; c++) {
string a, b; cin >> a >> b;
auto Sol = [&]() -> int {
int ret = 0;
for (const char& c : a) {
int mn = 1e9;
for (int i = 0; i < 26; i++) ... | 24.16 | 86 | 0.407285 | jinhan814 |
94fc43200d02999ede0b5b79a1b7abbea456baff | 171 | cpp | C++ | src/PerTypeStorage.cpp | deadmorous/factory | be42a869739deaa615a45070d0747ce4460c0250 | [
"MIT"
] | null | null | null | src/PerTypeStorage.cpp | deadmorous/factory | be42a869739deaa615a45070d0747ce4460c0250 | [
"MIT"
] | null | null | null | src/PerTypeStorage.cpp | deadmorous/factory | be42a869739deaa615a45070d0747ce4460c0250 | [
"MIT"
] | 1 | 2021-01-23T03:14:19.000Z | 2021-01-23T03:14:19.000Z | // PerTypeStorage.cpp
#include "factory/PerTypeStorage.hpp"
namespace ctm {
FACTORY_API PerTypeStorage::Data *PerTypeStorage::m_data = nullptr;
} // end namespace ctm
| 17.1 | 67 | 0.766082 | deadmorous |
94feb374137d200d9037b7f72eff91565a44c0c2 | 699 | cpp | C++ | Chapter5/Example/L5.11.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | 1 | 2022-02-13T02:22:39.000Z | 2022-02-13T02:22:39.000Z | Chapter5/Example/L5.11.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | Chapter5/Example/L5.11.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | /* 原书例5.11 */
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int a[11][11];
a[1][1] = 1; // 设定第一行的值
for (int i = 2; i <= 10; ++i) { // 从第二行开始推
a[i][1] = 1;
a[i][i] = 1; // 设定每一行的首尾值为1
for (int j = 2... | 27.96 | 77 | 0.347639 | flics04 |
a206f99c83620519cf0febe925ed158d343b62d3 | 310 | cpp | C++ | 14. Binary Tree/02 Recursive Traversals/02 Tree Traversals.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 190 | 2021-02-10T17:01:01.000Z | 2022-03-20T00:21:43.000Z | 14. Binary Tree/02 Recursive Traversals/02 Tree Traversals.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | null | null | null | 14. Binary Tree/02 Recursive Traversals/02 Tree Traversals.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 27 | 2021-03-26T11:35:15.000Z | 2022-03-06T07:34:54.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
/*
Tree Traversal :
a. Breadth First Traversal (level order traversal)
b. Depth First Traversal
b.1 Inorder Traversal (Left Root Right)
b.2 Preorder Traversal (Root Left Right)
b.3 Postorder Traversal (Left Right Root)
*/
return 0;
} | 14.761905 | 51 | 0.7 | VivekYadav105 |
a2087fb11d50919ec2044a9fcbca451ae028eb5a | 15,473 | cpp | C++ | SOURCES/acmi/src/acmiview.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/acmi/src/acmiview.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/acmi/src/acmiview.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #pragma optimize( "", off )
#include <windows.h>
#include "resource.h"
#include "Graphics/include/renderwire.h"
#include "Graphics/include/terrtex.h"
#include "Graphics/include/rViewPnt.h"
#include "Graphics/include/loader.h"
#include "Graphics/include/drawbsp.h"
#include "Graphics/include/drawpole.h"
#include "Graphi... | 23.443939 | 141 | 0.530925 | IsraelyFlightSimulator |
a2095ce13b8222a929e704828f6060b4d074900a | 1,920 | hpp | C++ | example/content/meta/skeleton.hpp | Seng3694/TXPK | 76a5441dc70b4a5d5d2596525de950a2d2e65aab | [
"MIT"
] | 6 | 2019-01-05T08:14:02.000Z | 2021-12-02T18:29:35.000Z | example/content/meta/skeleton.hpp | lineCode/TXPK | 20d4cd75611a44babf2bf41d5359141020dc6684 | [
"MIT"
] | 1 | 2018-03-28T06:33:08.000Z | 2018-03-29T08:22:43.000Z | example/content/meta/skeleton.hpp | Seng3694/TexturePacker | 76a5441dc70b4a5d5d2596525de950a2d2e65aab | [
"MIT"
] | 2 | 2018-12-11T01:11:20.000Z | 2020-10-30T08:14:04.000Z | #pragma once
#define SKELETON_ATTACK_1 0
#define SKELETON_ATTACK_2 1
#define SKELETON_ATTACK_3 2
#define SKELETON_ATTACK_4 3
#define SKELETON_ATTACK_5 4
#define SKELETON_ATTACK_6 5
#define SKELETON_ATTACK_7 6
#define SKELETON_ATTACK_8 7
#define SKELETON_ATTACK_9 8
#define SKELETON_ATTACK_10 9
#define SKELETON_ATTACK_1... | 26.666667 | 29 | 0.854167 | Seng3694 |
a20f733ceab85e87e666cc6b0b24dc1a0d8aee7a | 3,274 | hpp | C++ | framework/frontend/parser/ll/ll_algorithm.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | 2 | 2018-12-21T17:08:55.000Z | 2018-12-21T17:08:57.000Z | framework/frontend/parser/ll/ll_algorithm.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | null | null | null | framework/frontend/parser/ll/ll_algorithm.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | null | null | null | //..............................
// UI Lab Inc. Arthur Amshukov .
//..............................
#ifndef __LL_ALGORITHM_H__
#define __LL_ALGORITHM_H__
#pragma once
BEGIN_NAMESPACE(frontend)
USINGNAMESPACE(core)
class ll_algorithm : private noncopyable
{
public:
using symbol_type = gramma... | 38.517647 | 122 | 0.580024 | aamshukov |
a20fc9ecd2dd2cd79c6fa3aecd87c583a6da3247 | 6,025 | hpp | C++ | include/pfp/parse.hpp | AaronHong1024/pfp-cst | 0390fce9915e789595f1fd699d7c5fd5ea61fd25 | [
"MIT"
] | 6 | 2020-06-23T11:46:27.000Z | 2021-06-01T09:59:01.000Z | include/pfp/parse.hpp | maxrossi91/pfp-data-structures | 6c5c1b801573d1c5116297e3cca20d1517c41e7b | [
"MIT"
] | null | null | null | include/pfp/parse.hpp | maxrossi91/pfp-data-structures | 6c5c1b801573d1c5116297e3cca20d1517c41e7b | [
"MIT"
] | 1 | 2021-11-25T05:30:53.000Z | 2021-11-25T05:30:53.000Z | /* pfp-parse - prefix free parsing parse
Copyright (C) 2020 Massimiliano Rossi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option)... | 30.897436 | 111 | 0.641494 | AaronHong1024 |
a2120217dc2454cf7dffc794c1f67bfdcdbb8d74 | 302 | hpp | C++ | CoreLib/exception.hpp | NuLL3rr0r/footpal-native-server | f28cad64c9e098cdeb63296c4733e0ad1a912139 | [
"Unlicense",
"MIT"
] | 1 | 2022-01-22T09:49:42.000Z | 2022-01-22T09:49:42.000Z | CoreLib/exception.hpp | NuLL3rr0r/footpal-native-server | f28cad64c9e098cdeb63296c4733e0ad1a912139 | [
"Unlicense",
"MIT"
] | null | null | null | CoreLib/exception.hpp | NuLL3rr0r/footpal-native-server | f28cad64c9e098cdeb63296c4733e0ad1a912139 | [
"Unlicense",
"MIT"
] | null | null | null | #ifndef CORELIB_EXCEPTION_HPP
#define CORELIB_EXCEPTION_HPP
#include <stdexcept>
#include <string>
namespace CoreLib {
class Exception;
}
class CoreLib::Exception : public std::runtime_error
{
public:
explicit Exception(const std::string &message);
};
#endif /* CORELIB_EXCEPTION_HPP */
| 14.380952 | 52 | 0.748344 | NuLL3rr0r |
b8c703dfa4b754cdadd071c944984223795bb4dd | 2,787 | hpp | C++ | include/asioext/socks/error.hpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 17 | 2018-04-13T00:38:55.000Z | 2022-01-21T08:38:36.000Z | include/asioext/socks/error.hpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 4 | 2017-03-16T03:34:38.000Z | 2020-05-08T00:05:51.000Z | include/asioext/socks/error.hpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 5 | 2017-09-06T15:56:04.000Z | 2021-09-14T07:38:02.000Z | /// @file
/// Defines SOCKS error codes.
///
/// @copyright Copyright (c) 2018 Tim Niederhausen (tim@rnc-ag.de)
/// 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 ASIOEXT_SOCKS_ERROR_HPP
#define ASIOEXT_... | 21.438462 | 80 | 0.736634 | zweistein-frm2 |
b8cb35dad706ff2045f5839502444072a4f5826a | 253 | cpp | C++ | Console Test Alpha/Node Chap.cpp | StoutGames/Afford | 73f016fa873c228f9aa320552749d39c245fdb15 | [
"MIT"
] | 1 | 2016-05-11T02:01:20.000Z | 2016-05-11T02:01:20.000Z | Console Test Alpha/Node Chap.cpp | StoutGames/Afford | 73f016fa873c228f9aa320552749d39c245fdb15 | [
"MIT"
] | null | null | null | Console Test Alpha/Node Chap.cpp | StoutGames/Afford | 73f016fa873c228f9aa320552749d39c245fdb15 | [
"MIT"
] | null | null | null | #include "Afford\Node.h"
#include "Afford Chap.h"
namespace Stout {
namespace TAlpha {
namespace Node {
class Chap : public Stout::Afford::Base::Node,
public Stout::TAlpha::Afford::Chap {
ST_AF_DECLARE_NODE(Chap)
};
}
}
} | 14.055556 | 48 | 0.636364 | StoutGames |
b8cf4d5dcda348618fe59d0be1faaa247dcbfb2f | 1,399 | cpp | C++ | src/Triangle.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/Triangle.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/Triangle.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | #include "Triangle.h"
#include <iostream>
Triangle::Triangle(std::vector<Vertex> vector3): vec3(vector3)
{
mids = std::vector<Vertex>();
calculateMids();
}
Triangle::Triangle()
{
}
Triangle::Triangle(float vertices[])
{
this->vec3 = std::vector<Vertex>();
this->mids = std::vector<Vertex>();
for(int i = 0; i <... | 17.4875 | 70 | 0.538956 | MickAlmighty |
b8e0aed1db1e71752196e93dd51589ea878dd6d3 | 4,206 | cpp | C++ | Sail/src/API/DX12/resources/DescriptorHeap.cpp | BTH-StoraSpel-DXR/SPLASH | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 12 | 2019-09-11T15:52:31.000Z | 2021-11-14T20:33:35.000Z | Sail/src/API/DX12/resources/DescriptorHeap.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 227 | 2019-09-11T08:40:24.000Z | 2020-06-26T14:12:07.000Z | Sail/src/API/DX12/resources/DescriptorHeap.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 2 | 2020-10-26T02:35:18.000Z | 2020-10-26T02:36:01.000Z | #include "pch.h"
#include "DescriptorHeap.h"
#include "Sail/Application.h"
DescriptorHeap::DescriptorHeap(D3D12_DESCRIPTOR_HEAP_TYPE type, unsigned int numDescriptors, bool shaderVisible, bool frameDependant)
: m_numDescriptors(numDescriptors)
, m_index(0)
, m_frameDependant(frameDependant)
{
m_context = Applicat... | 41.643564 | 360 | 0.795768 | BTH-StoraSpel-DXR |
b8e1b4dbfa69461a54aeba01cc4c641953e96d1c | 6,121 | hpp | C++ | src/graphics/effects/FXAA.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | src/graphics/effects/FXAA.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | src/graphics/effects/FXAA.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | #pragma once
/**
* Copyright (c) 2022 Sam Belliveau
*
* 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, modi... | 37.323171 | 113 | 0.556935 | Sam-Belliveau |
b8ea187a70b3a4fbc2365e1cba954ae14def70bf | 2,908 | hxx | C++ | main/DelayRebootHelper.hxx | atanisoft/esp32olcbhub | 81dcf84c65fd28fd2ad86c3cf2ade7ef3f4ce0a4 | [
"BSD-2-Clause"
] | 2 | 2020-11-06T18:46:32.000Z | 2021-04-09T18:30:01.000Z | main/DelayRebootHelper.hxx | atanisoft/esp32olcbhub | 81dcf84c65fd28fd2ad86c3cf2ade7ef3f4ce0a4 | [
"BSD-2-Clause"
] | 29 | 2020-11-06T18:46:03.000Z | 2021-05-30T12:53:58.000Z | main/DelayRebootHelper.hxx | atanisoft/esp32olcbhub | 81dcf84c65fd28fd2ad86c3cf2ade7ef3f4ce0a4 | [
"BSD-2-Clause"
] | null | null | null | /** \copyright
* Copyright (c) 2020, Mike Dunston
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this l... | 31.956044 | 79 | 0.709422 | atanisoft |
b8ea85780745b7feb45657a4dc6d929fac6744e7 | 426 | hpp | C++ | cho/inc/cho/generated/riot_api_platform.hpp | Querijn/ChoPlusPlus | 9ff68c7ae6594ca9bdb6928489c7ac01b15d0aee | [
"MIT"
] | 2 | 2017-05-22T10:45:27.000Z | 2020-06-15T13:49:50.000Z | cho/inc/cho/generated/riot_api_platform.hpp | Querijn/ChoPlusPlus | 9ff68c7ae6594ca9bdb6928489c7ac01b15d0aee | [
"MIT"
] | 5 | 2017-05-23T06:35:24.000Z | 2019-02-02T11:47:06.000Z | cho/inc/cho/generated/riot_api_platform.hpp | Querijn/ChoPlusPlus | 9ff68c7ae6594ca9bdb6928489c7ac01b15d0aee | [
"MIT"
] | null | null | null | #pragma once
// This file is automatically generated!
// To edit this, edit template/platform_header.mst and run cho_generator.
namespace cho
{
enum class platform_id
{
br1 = 0,
eun1 = 1,
euw1 = 2,
jp1 = 3,
kr = 4,
la1 = 5,
la2 = 6,
na1 = 7,
oc1 = 8,
tr1 = 9,
ru = 10,
pbe1 = 11,
americas = ... | 15.777778 | 73 | 0.626761 | Querijn |
b8ed1379e1795e54597a71b4c4623421ca77fc2d | 403 | cpp | C++ | src/simple/client.cpp | AndreyMokryj/unix-ipc-lab | 6a11b71b3215f9e7d8d3a9f192ab202c1882864f | [
"MIT"
] | 1 | 2020-11-20T19:42:43.000Z | 2020-11-20T19:42:43.000Z | src/simple/client.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | src/simple/client.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | #include "../message.hpp"
#include "../channel.hpp"
int main()
{
auto channel = ipc::Channel::Client(8000);
{
auto msg = data::Message();
channel.Read((char *)&msg, sizeof(msg));
std::cout << "server: " << msg << '\n';
}
{
auto msg = data::Message::Notice("Hi, All!");
... | 20.15 | 53 | 0.51861 | AndreyMokryj |
b8ed1454ccc8e9d69e2a70774a9d41871f1d28dd | 1,754 | hh | C++ | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 28.290323 | 107 | 0.729761 | dune-community |
b8f0b20d21c6af78b09716b18b0fdc53cde18d26 | 1,056 | cpp | C++ | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | #include "shared/memory/object_hook.hpp"
namespace shared::memory
{
ObjectHook::ObjectHook( void* procedure, void* replace )
{
if( !Create( procedure, replace ) )
{
// throw exception
}
}
ObjectHook::~ObjectHook()
{
Destroy();
}
bool ObjectHook::Create( void* procedure, void* replace )
{
m_procedure = reinte... | 16 | 71 | 0.683712 | jrnh |
b8f2f9f8e7d01089771601f40f0d32177ba7b6b6 | 7,492 | cpp | C++ | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 2 | 2021-04-14T13:58:50.000Z | 2021-08-09T19:42:25.000Z | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 1 | 2021-08-31T10:32:07.000Z | 2021-09-03T15:03:00.000Z | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 1 | 2022-03-25T12:32:52.000Z | 2022-03-25T12:32:52.000Z | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright 2021 XIA LLC, 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/LICE... | 34.846512 | 94 | 0.66204 | xiallc |
b8f4da58cdcea145f36de4a07347a2722cec931e | 4,927 | cpp | C++ | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2020 University of Luxembourg. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list... | 32.846667 | 96 | 0.669373 | DonTassettitos |
7700edddfcf6f467fd7181d3a8c7e5cb6628a2ed | 9,639 | cpp | C++ | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/net/internal/ScopedReferenceStore.hpp"
#include "coherence/net/CacheService.hpp"
#include "coherence/net/ServiceIn... | 29.033133 | 86 | 0.618425 | chpatel3 |
7702889edaa42726c728c30d3c1a615134795250 | 3,429 | cpp | C++ | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | 2 | 2022-03-24T11:37:10.000Z | 2022-03-24T11:37:18.000Z | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | null | null | null | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | null | null | null | #include <iostream>
#include <filesystem>
#include <cassert>
#include <MultiGenerator/Interface/Component.hpp>
namespace Workflow = MultiGenerator::Workflow;
namespace Variable = MultiGenerator::Variable;
namespace Interface = MultiGenerator::Interface;
class AddGenerator : public Interface::GeneratingTask {
private... | 25.977273 | 84 | 0.551473 | ctj12461 |
7702b2745333aef83310036b29b12bb8ed2f4c03 | 818 | cpp | C++ | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | #include "InimigoBoss.h"
InimigoBoss::InimigoBoss(int _tipo, int _id, int _x,int _y)
:Inimigo( _tipo, _id, _x, _y)
{
TamanhoH = BossSizeInit_H;
TamanhoW = BossSizeInit_W;
EstadoBoca = Fechada;
}
InimigoBoss::~InimigoBoss(void)
{
}
bool InimigoBoss::RetiraVida(int _dano){
//se estiver com a boca aberta, po... | 18.177778 | 76 | 0.717604 | dicamarques14 |
770c98f96afd1faac686df9c2b581be9f2d5940e | 5,472 | cpp | C++ | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | #include "SDialogueGraphNode.h"
#include "SGraphPin.h"
#include "Widgets/SBoxPanel.h"
#include "DialogueEdNode.h"
#include "DialogueGraphColors.h"
#include "GraphEditorSettings.h"
#include "SlateOptMacros.h"
#include "Widgets/Text/SInlineEditableTextBlock.h"
class SDialogueGraphPin : public SGraphPin
{
publ... | 25.933649 | 99 | 0.716374 | WiseMooseGames |
771216fc5562c9d774ebeae84b46310519d28a0c | 843 | cpp | C++ | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | 1 | 2020-07-04T11:04:54.000Z | 2020-07-04T11:04:54.000Z | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | null | null | null | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | null | null | null | #include "j1Pool.h"
#include "j1Emitter.h"
#include "j1Particle.h"
#include <assert.h>
j1Pool::j1Pool(j1Emitter* emitter)
{
size = emitter->GetSize();
vec = new j1Particle[size];
startParticle = &vec[0];
}
j1Pool::~j1Pool()
{
delete[] vec;
vec = nullptr;
}
bool j1Pool::Update(float dt)
{
for (int i = 0; i < s... | 17.5625 | 144 | 0.646501 | xavimarin35 |
7715ccb2e84ebdaf36cd03fede19adaafc650c04 | 6,197 | cpp | C++ | engine/src/channelmodifier.cpp | hawesy/qlcplus | 1702f03144fe210611881f15424a535febae0c6a | [
"ECL-2.0",
"Apache-2.0"
] | 478 | 2015-01-20T14:51:17.000Z | 2022-03-31T06:56:05.000Z | engine/src/channelmodifier.cpp | hjtappe/qlcplus | b5537fa11d419d148eca5cb1321ee98d3dc5047b | [
"ECL-2.0",
"Apache-2.0"
] | 711 | 2015-01-05T06:50:06.000Z | 2022-03-06T20:31:07.000Z | engine/src/channelmodifier.cpp | hjtappe/qlcplus | b5537fa11d419d148eca5cb1321ee98d3dc5047b | [
"ECL-2.0",
"Apache-2.0"
] | 386 | 2015-01-07T15:36:59.000Z | 2022-03-31T06:56:07.000Z | /*
Q Light Controller Plus
channelmodifier.cpp
Copyright (c) Massimo Callegari
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.txt
U... | 29.231132 | 115 | 0.597224 | hawesy |
7724de68ca3d4c8b204642f4e2dd1d9c6e779d5f | 7,764 | cpp | C++ | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | #include "../../../src/net/socket_impl.h"
#include "../../../src/net/socket_opt_impl.h"
#include <mercury/nio/buffer.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/HelperMacros.h>
... | 33.61039 | 82 | 0.635111 | luckysym |
7725f6bf849068cd3a35a8f021547f344178a896 | 4,017 | cpp | C++ | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2008, Laminar Research.
*
* 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, ... | 37.194444 | 145 | 0.702514 | rromanchuk |
772cee79e402b32aa9ca343e60ad1a7e676adfae | 2,368 | cc | C++ | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | 1 | 2021-07-26T06:35:37.000Z | 2021-07-26T06:35:37.000Z | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | null | null | null | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | 1 | 2021-07-26T06:35:38.000Z | 2021-07-26T06:35:38.000Z | #include "ipopt_solver.h"
#include "ipopt_adapter.h"
namespace ifopt {
IpoptSolver::IpoptSolver()
{
ipopt_app_ = std::make_shared<Ipopt::IpoptApplication>();
/* Which linear solver to use. Mumps is default because it comes with the
* precompiled ubuntu binaries. However, the coin-hsl solvers can be
*... | 32.438356 | 115 | 0.679476 | huhumeng |
772d08cb0f190ed4030f52d2fc69eb6cd9fa8b24 | 14,280 | cpp | C++ | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | #include <list>
#include "file.hpp"
#include "exception.hpp"
#include "../log.hpp"
#include "raw_file.hpp"
#include "mapped_file.hpp"
#if defined(_WINDOWS)
#include <Windows.h>
class win_error_string
{
public:
~win_error_string()
{
if (err_)
{
... | 26.201835 | 90 | 0.4993 | GregoryIstratov |
772da99d579715b5ed8d54c711413f99cfeab239 | 7,520 | cpp | C++ | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 27.545788 | 116 | 0.653324 | CAJ2 |
772e8a733ed13ca3796de488e295342493c60d4c | 2,292 | cc | C++ | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | #include <stdlib.h>
#include <dlfcn.h>
#include <stdio.h>
#include "vtv_utils.h"
#include "vtv_rts.h"
#include "pthread.h"
#define NUM_REPEATS 10
#define NUM_THREADS 10
#define NUM_SOS 100
#define NUM_SOS_PER_THREAD (NUM_SOS/NUM_THREADS)
typedef void (*voidfn)(void);
int failures = 0;
void
__vtv_verify_fail (void ... | 20.283186 | 92 | 0.624346 | best08618 |
772ebce74f6d6f6cf88ae89042c524213ec6c9e9 | 3,402 | cpp | C++ | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 6 | 2021-01-28T08:51:08.000Z | 2022-01-06T23:19:27.000Z | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 1 | 2020-08-30T10:42:54.000Z | 2020-09-01T07:28:11.000Z | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 1 | 2021-09-22T00:31:55.000Z | 2021-09-22T00:31:55.000Z | #include <iostream>
#include <vector>
#include "../../src/LinearAlgebra/Models/Vector.h"
#include "../../src/PrePost/Mesher/GrandStructure.h"
#include "../../src/FEM/Controller/BoundaryCondition.h"
#include "../../src/FEM/Equation/Truss.h"
#include "../../src/FEM/Controller/Assembling.h"
#include "../../src/LinearAlg... | 37.8 | 121 | 0.566725 | PANFACTORY |
7730b84a349f6fb3551c12ac0141ca6904d56f67 | 6,493 | cc | C++ | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | /**
* @file LibMultiSense/details/flash.cc
*
* Copyright 2013
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 30.919048 | 82 | 0.630833 | DArpinoRobotics |
77355e54b6042162562346981da3997f1f648ba6 | 3,476 | hpp | C++ | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | district1/tyslin-core | 4ad5592e29e07ccc466a232f4b407c0d7ef105dd | [
"MIT"
] | 8 | 2019-05-20T00:50:41.000Z | 2019-12-17T23:50:03.000Z | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | jacekdalecki84/LocalCoin-core | 9ffa8785a305c730257690ca274533cc69c0560d | [
"MIT"
] | 3 | 2019-07-17T18:42:29.000Z | 2022-02-18T00:21:20.000Z | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | jacekdalecki84/LocalCoin-core | 9ffa8785a305c730257690ca274533cc69c0560d | [
"MIT"
] | 7 | 2019-04-11T14:20:15.000Z | 2022-01-20T15:06:57.000Z | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... | 35.469388 | 118 | 0.743671 | district1 |
7740256b51351f4881c05b33d494a513ff2cf626 | 1,438 | cpp | C++ | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 25.678571 | 82 | 0.700974 | solotzg |
7744ac9c2457c9e52ff425bfcc6a79a27d828f58 | 5,828 | cpp | C++ | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2009 Cyrus Daboo. 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
Unle... | 22.765625 | 113 | 0.590597 | mulberry-mail |
7746185f4742e46753a900c16c6d6e56806cae65 | 3,408 | cpp | C++ | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | 2 | 2019-12-08T12:41:01.000Z | 2021-01-25T22:31:47.000Z | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | null | null | null | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | null | null | null | /*
* events.cpp
*
* Created on: Nov 23, 2017
* Author: Nicholas Hallman
* Omid Ghiyasian
*/
#include"events.hpp"
int speedX = 0;
int speedY = 0;
int runs = 0;
void mouseOver(int x, int y){
y = 768 - y;
int change = 0;
int index = buttonOver(x, y);
if(index != -1){
glutSetCursor(GLUT_CURSOR_... | 19.146067 | 85 | 0.561913 | NicholasHallman |
77485cf0749e102ac8fbf1a459e2682b643e644e | 1,779 | hpp | C++ | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 70 | 2015-01-15T09:05:15.000Z | 2021-12-08T15:49:31.000Z | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 4 | 2015-06-18T19:25:34.000Z | 2016-05-13T19:49:51.000Z | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 5 | 2015-07-10T08:18:09.000Z | 2021-12-01T07:17:57.000Z | #ifndef MPLLIBS_METAMONAD_V1_IMPL_MATCH_BOXED_IMPL_HPP
#define MPLLIBS_METAMONAD_V1_IMPL_MATCH_BOXED_IMPL_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LIC... | 28.238095 | 79 | 0.605396 | sabel83 |
774ef12ba7d744a60fdbef0a4283c54a8f1f3ae5 | 31,705 | cpp | C++ | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | 36 | 2019-01-13T02:37:45.000Z | 2021-09-22T02:27:49.000Z | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | null | null | null | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | 5 | 2019-01-12T20:09:32.000Z | 2022-02-03T18:06:40.000Z | #include <imgui_impl_dx11.cpp>
//#include "cray_hlsl_code.h"
internal ID3DBlob *
CompileDXShaderFromFile(LPCWSTR Path, char *EntryPoint, char *Target, UINT Flags)
{
ID3DBlob *CompiledCode = 0;
ID3DBlob *ShaderError = 0;
HRESULT CompiledShader = D3DCompileFromFile(Path, 0,
... | 39.830402 | 155 | 0.654849 | ALEXMORF |
77517aa35c0b1e66609f0b11a4de78cb609ca5a4 | 733 | cpp | C++ | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 37 | 2018-05-21T03:04:43.000Z | 2022-02-17T11:19:03.000Z | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 4 | 2018-07-14T23:57:11.000Z | 2022-02-04T01:31:12.000Z | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 8 | 2019-04-26T20:13:18.000Z | 2021-11-18T13:24:37.000Z | #include <cassert>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <fstream>
#include "lib/parse_trace.h"
#include "lib/solve_mcf.h"
int main(int argc, char* argv[]) {
if (argc != 3) {
std::cerr << argv[0] << " traceFile cacheSize" << std::endl;
return 1... | 20.361111 | 68 | 0.604366 | dasebe |
77523e7965d744b41208b37d8fa71878ab300e0c | 3,330 | cpp | C++ | third_party/libosmium/test/t/tags/test_tag_list.cpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | 1 | 2016-11-29T15:02:40.000Z | 2016-11-29T15:02:40.000Z | third_party/libosmium/test/t/tags/test_tag_list.cpp | aaronbenz/osrm-backend | 758d4023050d1f49971f919cea872a2276dafe14 | [
"BSD-2-Clause"
] | 1 | 2019-02-04T18:10:57.000Z | 2019-02-04T18:10:57.000Z | third_party/libosmium/test/t/tags/test_tag_list.cpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | null | null | null | #include "catch.hpp"
#include <osmium/builder/builder_helper.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/osm/tag.hpp>
TEST_CASE("create tag list") {
osmium::memory::Buffer buffer(10240);
SECTION("with TagListBuilder from char*") {
{
osmium::builder::TagListBuilder builder(bu... | 32.330097 | 100 | 0.565766 | Mapotempo |
7753416567c24701ce09016caf57ca0eef8a8efd | 867 | cpp | C++ | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | #include "Log4CxxLogMessageReceiver.hpp"
using namespace pistis::logging;
using namespace pistis::log4cxx;
const Log4CxxLogLevelTranslator Log4CxxLogMessageReceiver::_LOG4CXX_LEVEL;
Log4CxxLogMessageReceiver::Log4CxxLogMessageReceiver(
LogMessageFactory* factory,
const ::log4cxx::LoggerPtr& logger
):
_fa... | 26.272727 | 74 | 0.732411 | tomault |
775d97d6727f184cce3d273681bb6ad2b0124fc8 | 2,576 | hpp | C++ | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright © 2019 Nikita Dudko. All rights reserved.
* Contacts: <nikita.dudko.95@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses... | 33.454545 | 76 | 0.726708 | lem0nez |
7764bf44fbd662d7d1ce9b42d955824374cd57d2 | 1,129 | cpp | C++ | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | 6 | 2019-09-27T06:16:12.000Z | 2022-02-26T08:00:05.000Z | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | null | null | null | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | 1 | 2019-06-04T17:19:16.000Z | 2019-06-04T17:19:16.000Z |
#include "abstrarenderer.h"
#include "renderevent.h"
namespace vm
{
void AbstraRenderer::DispatchOnRenderStartedEvent()
{
//Debug("AbstraRenderer::DispatchOnRenderStartedEvent\n");
for ( auto it = startedCallbacks.begin(); it != startedCallbacks.end(); ) {
auto &item = *it;
if ( item->IsEnabled() && item->OnRe... | 26.255814 | 103 | 0.719221 | cad420 |
7765a1ed9a9c5b979d17ec0a327499ae3b54d25d | 11,160 | cpp | C++ | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | /** @file simpletest_ext.cpp
* @brief simpletest extended functions.
* @copyright Copyright (c) 2018 Jonathan Lemos
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "simpletest_ext.hpp"
#include <algorithm>
#include <cstring>
... | 32.347826 | 183 | 0.685663 | jonathanrlemos |
776821dc1eb910559898126559b27fb056207c36 | 202,797 | cpp | C++ | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "pochivm.h"
#include "test_util_helper.h"
#include "codegen_context.hpp"
using namespace PochiVM;
TEST(SanityCallCppFn, Sanity_1)
{
AutoThreadPochiVMContext apv;
AutoThreadErrorContext arc;
AutoThreadLLVMCodegenContext alc;
thread_pochiVMContext->m_curModule = new A... | 35.085986 | 141 | 0.575521 | dghosef |
776f8bc0138eb89dff3d759bf1a1164fbecb291c | 67 | cpp | C++ | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | 1 | 2021-01-05T22:09:40.000Z | 2021-01-05T22:09:40.000Z | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | null | null | null | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | null | null | null | #include "application.h"
#include "Arduino.h"
#include "Particle.h" | 22.333333 | 24 | 0.746269 | briveramelo |
a55d8a44778f92a3dd34aa1540fb7c6422cd70a6 | 8,577 | cpp | C++ | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | #include "SceneImporter.h"
#include "Assimp/include/assimp/cimport.h"
#include "Assimp/include/assimp/postprocess.h"
#include "Assimp/include/assimp/scene.h"
#include "Assimp/include/assimp/material.h"
#include "Assimp/include/assimp/mesh.h"
#include "Application.h"
#include "MathGeoLib/include/Math/Quat.h"
#include "G... | 31.766667 | 133 | 0.684738 | solidajenjo |
a55dae0639153cbaa330affc0ee782540544ed64 | 1,391 | hpp | C++ | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 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)
#pragma once
#include <containers/algorithms/advance.hpp>
#include <containers/begin_end.hpp>
#include <containers/is_range.hpp>
#... | 28.387755 | 80 | 0.732566 | davidstone |
a5615e2ba2388eb520677bd1c5ba42c564fdd2a5 | 17,115 | cpp | C++ | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | 41 | 2021-06-25T14:20:29.000Z | 2022-01-16T02:50:50.000Z | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | /*! \file
\brief A string input.
Copyright (C) 2019-2022 kaoru https://www.tetengo.org/
*/
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <string>
#include <boost/operators.hpp>
#include <boost/preprocessor.hpp>
#include <boost/scope_exit.hpp>
#include <boost/test/unit_test... | 30.5625 | 108 | 0.623138 | tetengo |
a574588d367f4ee86b2f57386b0a4171a28702ae | 8,688 | cc | C++ | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | #include "ScadDebugFile.h"
using namespace std;
using namespace mgl;
using namespace libthing;
#include "log.h"
ScadDebugFile::ScadDebugFile() :filename("")
{}
void ScadDebugFile::open(const char* path)
{
assert(isOpened() == false);
filename = path;
out.open(filename.c_str(), ios::out);
if(!out.good())
{
s... | 25.934328 | 144 | 0.498504 | hugomatic |
a5796ec2dd175185170a74ed94140f0730b7fa20 | 311 | cpp | C++ | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 77 | 2019-10-28T05:38:51.000Z | 2022-03-15T01:53:48.000Z | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 3 | 2019-12-26T15:39:55.000Z | 2020-10-29T14:55:50.000Z | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 24 | 2020-01-08T04:12:52.000Z | 2022-03-12T22:26:07.000Z | #include "extern_header.h"
// since global_x still needs to be defined somewhere,
// we define it (for example) in this source file
#include<iostream>
using namespace std;
int main()
{
// Access global_x defined in header file.
extern int global_x;
cout << "global_int = " << global_x<<endl;
} | 18.294118 | 54 | 0.691318 | iarjunphp |
a57de2904f7a1c71d13f316bead9a12a885dc077 | 229 | cpp | C++ | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
double N, cnt = 0; cin >> N;
for (int i = 1; i <= N; ++i) if (i % 2 != 0) cnt++;
printf("%f\n", cnt / N);
} | 22.9 | 55 | 0.550218 | H-Tatsuhiro |
a57e133d4cf637ace821e9892025b5e4be05ca01 | 3,373 | cpp | C++ | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_lime_net_HTTPRequest
#include <lime/net/HTTPRequest.h>
#endif
#ifndef INCLUDED_lime_net__HTTPRequest_AbstractHTTPRequest
#include <lime/net/_HTTPRequest/AbstractHTTPRequest.h>
#endif
#ifndef INCLUDED_lime_net__IHTTPRequest
#include <lime/net/_IHTTPRequest.... | 31.523364 | 161 | 0.774681 | seanbashaw |
a5838ec6687d07809c4bbf549fa9a084f549a284 | 810 | cpp | C++ | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | #include "TransformationComponentWidgetItem.h"
namespace editor::impl {
TransformationComponentWidgetItem::TransformationComponentWidgetItem(QTreeWidget* parent)
: QTreeWidgetItem(parent)
, m_TransformationComponentWidget(nullptr)
, m_WidgetWrapper(nullptr)
, m_Entity(nullptr) {
m_WidgetWrapper = ... | 32.4 | 121 | 0.760494 | obivan43 |
a58886b327c1a8bdaf68e69cf0d4559eddc8ff89 | 11,869 | hpp | C++ | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | #ifndef SHELLY_STREAM_HPP
#define SHELLY_STREAM_HPP
#include <set>
#include <vector>
#include <cassert>
#include <algorithm>
#include <functional>
namespace shelly {
namespace stream {
inline namespace v1 {
template<typename Stream, typename In, typename Out, typename Func>
class MapStream;
template<typename Stream,... | 22.143657 | 101 | 0.612857 | Zaspire |
a59714480448a0b391489b10ca3d034c3b60a9ee | 177 | cpp | C++ | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 6 | 2017-12-08T17:09:14.000Z | 2020-05-28T15:42:26.000Z | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 12 | 2017-11-16T09:48:51.000Z | 2022-01-07T16:28:46.000Z | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 7 | 2017-12-08T17:35:58.000Z | 2021-12-16T17:38:46.000Z | #include "commentEndingGrammar_def.hpp"
template Grawitas::CommentEndingGrammar<std::string::const_iterator, boost::spirit::qi::iso8859_1::blank_type>::CommentEndingGrammar();
| 44.25 | 135 | 0.819209 | lewishamulton |
a5984c1ec2ac00c6fc9fcf4ff86dfdcc2f303cd2 | 4,309 | cc | C++ | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/task/sequence_manager/task_order.h"
#include "base/task/sequence_manager/enqueue_order.h"
#include "base/time/time.h"
#include "testing/gt... | 33.146154 | 77 | 0.696913 | qoor |
a599085877c1c6c86feac1c428f1bac90102b736 | 3,531 | cpp | C++ | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | #include "Player.hpp"
namespace WappieJump
{
Player::Player(GameDataRef data) : _data(data)
{
_player = _data->characterSprite;
_player.setPosition(SCREEN_WIDTH / 2, SCREEN_HEIGHT - 100.0f);
}
bool Player::hasReachedMaxDistance()
{
return _reachedMaxDistance;
}
sf::Sprite* Player::GetPlayerSprite()
{
... | 17.923858 | 88 | 0.657604 | ingmarinho |
a59fe3020a142e2cead64a15edbf4a8a933a16a1 | 1,330 | cpp | C++ | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | // Logic.cpp >> defines game logic
#include "stdafx.h"
#include "Global.h"
#include "The Snake Dec.h"
using namespace std;
void Logic()
{
int prevX = tailX[0];
int prevY = tailY[0];
int prev2X, prev2Y;
tailX[0] = x;
tailY[0] = y;
// move snake's some item and remove the last
//
for (int i = 1; i < nTail; i+... | 15.833333 | 51 | 0.542105 | septimomend |
a5a1369f2736012f66742a8db545de7fc2b5aa02 | 9,656 | cpp | C++ | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | #include "register.hpp"
#include <cstdio>
#include "store.hpp"
#define REG_EVENT(type, callback) (register_for_event(type, callback, NULL))
#define REG_INDEXED_CHANNEL(name, index, type, target) register_for_channel(SCS_TELEMETRY_##name, index, SCS_VALUE_TYPE_##type, SCS_TELEMETRY_CHANNEL_FLAG_each_frame, telemetry_s... | 76.634921 | 198 | 0.831504 | Marcin648 |
a5a273f6bc5fa8ce4c636fdf9e0002ecd30ad38a | 3,219 | cpp | C++ | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 1 | 2021-12-31T17:20:01.000Z | 2021-12-31T17:20:01.000Z | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░
// ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
// █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║
// ██╔═██╗░░░████╔═████║░██╔... | 30.367925 | 104 | 0.522523 | edwig |
a5a5171da5795cf7179afc0cfa567031eb3d5268 | 1,181 | cpp | C++ | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | 1 | 2022-03-10T17:04:38.000Z | 2022-03-10T17:04:38.000Z | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | null | null | null | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//...
int n,m,x;
int o=0;
int data[x];
//...
cout
<< "=== [ Sequential Searching ] ===\n"
<< ". . .\n"
<< "Input total data : ";cin>>n;
//...
system("cls");
cout << "( INPUT DATA )\n";
for(x=0;x<n;x... | 23.62 | 66 | 0.288738 | V1ccus |
a5a5da7a338313925b4f92828704b4b73083d60c | 642 | cc | C++ | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 3,100 | 2018-05-03T10:04:39.000Z | 2022-03-31T04:51:53.000Z | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 671 | 2018-05-04T00:51:22.000Z | 2022-03-31T15:20:22.000Z | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 877 | 2018-05-03T21:01:17.000Z | 2022-03-31T19:43:14.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | 30.571429 | 79 | 0.364486 | cloudhaacker |
a5a9eb0628eeda6adf7dc0841f8e783ee56da3b2 | 973 | cpp | C++ | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 20 | 2015-03-29T02:14:03.000Z | 2021-11-14T12:27:02.000Z | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | null | null | null | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 12 | 2015-05-04T06:39:10.000Z | 2022-02-23T06:48:04.000Z | #include "PCH.h"
#include "DxbcContainerHeader.h"
using namespace SlimShader;
DxbcContainerHeader DxbcContainerHeader::Parse(BytecodeReader& reader)
{
auto fourCc = reader.ReadUInt32();
if (fourCc != 'CBXD')
throw new std::runtime_error("Invalid FourCC");
DxbcContainerHeader result;
result._fourCc = fourCc;
r... | 20.270833 | 70 | 0.758479 | tgjones |
a5ac6409b69e83489a2863310e082573c7b88a8c | 1,228 | cpp | C++ | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | #include "../lib/environ.hh"
Environ::Environ(void) {
signalpath = "templates/signal.sdf";
roadpath = "templates/road.sdf";
greenpath = "templates/green.sdf";
redpath = "templates/red.sdf";
roads = new Road(roadpath);
}
void Environ::insert_road(double x, double y) {
roads->create(x,y);
}
void Environ::remove_... | 25.583333 | 68 | 0.659609 | sarvesh0303 |
a5adb803ee1b80ad69427730898a538c07829726 | 12,458 | cpp | C++ | src/cedar/scheduler.cpp | cedar-lang/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 3 | 2020-10-02T05:46:42.000Z | 2021-11-14T20:33:24.000Z | src/cedar/scheduler.cpp | nickwanninger/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 2 | 2019-01-09T07:37:08.000Z | 2019-02-20T21:54:43.000Z | src/cedar/scheduler.cpp | cedar-lang/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 1 | 2019-01-02T14:12:25.000Z | 2019-01-02T14:12:25.000Z | /*
* MIT License
*
* Copyright (c) 2018 Nick Wanninger
*
* 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... | 22.6098 | 80 | 0.662466 | cedar-lang |
a5aeb33f4231c5cbee3529ff96663cfdf204a458 | 866 | hpp | C++ | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | #pragma once
#include "Attachement.hpp"
#include "Hardpoint.hpp"
#include <functional>
#include <deque>
namespace Game
{
class Weapon;
class Mount : public Attachement
{
public:
virtual bool isMount() const override { return true; }
std::size_t getHardpointCount() const;
Hardpoint& getHardpoint(std::s... | 23.405405 | 85 | 0.729792 | ananace |
a5b1d3d4921deaccdef036edcba41be523f71ea5 | 927 | cpp | C++ | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | null | null | null | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | 1 | 2017-04-04T23:58:04.000Z | 2017-04-04T23:58:04.000Z | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | null | null | null | /*
* File: Material.cpp
* Author: larso
*
* Created on 2. januar 2016, 21:18
*/
#include "Material.h"
namespace Engine
{
Material::Material() :
color(1.f, 1.f, 1.f, 1.f),
lightSource(nullptr),
texture(nullptr)
{
}
Material::Material(glm::vec4 color) :
color(color),
lightSource(nullptr),
texture(n... | 13.632353 | 60 | 0.649407 | larso0 |
a5b38bb8354dd4da401e817f28624c212bc2ee19 | 17,025 | cpp | C++ | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | #include "parprior.hpp"
#include <sstream>
#include <cmath> // fmod, sqrt...
#include <limits> // for infinity
#include "macros.hpp"
/* methods for ParPrior */
ParPrior::ParPrior() :
name(""), elements(1), // use default value defined for ParElt
lboundbool(false), lbound(0.0),
uboundbool(false), ubound(0.0),
ho... | 25.222222 | 103 | 0.64605 | eeg-lanl |
a5ba8f31c1311dc7fb390ba9cfec09bd8c82eb09 | 1,727 | cpp | C++ | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
/*
* Complete the 'gradingStudents' function below.
*
* The function is expected to return an INTEGER_ARRAY.
* The function accepts INTEGER_ARRAY grades as parameter.
*/
vector<int> gradingStudents(vector<... | 18.178947 | 79 | 0.507238 | power-factory |
a5bd71f0c77425d4f89651aa34913807939c56e8 | 3,179 | cpp | C++ | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "assimp.h"
using namespace L;
bool assimp_material_loader(ResourceSlot& slot, Material::Intermediate& intermediate) {
if(!assimp_supported_extensions.find(slot.ext)) {
return false;
}
Buffer buffer = slot.read_source_file();
const aiScene* scene = aiImportFileFromMemory((const char*)buffer.data... | 38.301205 | 151 | 0.745517 | Lyatus |
a5caed45284fa8671f5b2c1a1b0b5ff2ca2fc0ce | 985 | cpp | C++ | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "audioreceiver.hpp"
#include "global/event.hpp"
namespace clover {
namespace audio {
AudioReceiver::AudioReceiver()
: created(false)
, lowpass(1.0){
}
AudioReceiver::AudioReceiver(AudioReceiver&& other)
: created(other.created)
, position(std::move(other.position))
, lowpass(other.lowpass){
}
Au... | 18.240741 | 56 | 0.711675 | crafn |
a5cbea2efd96f41229ef523eddd1b3186ba8206f | 1,032 | hpp | C++ | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #pragma once
#include "assfire/router/api/RouterEngineType.hpp"
#include "assfire/router/api/DistanceMatrixCachingPolicy.hpp"
#include "assfire/router/api/DistanceMatrixErrorPolicy.hpp"
#include "assfire/router/api/RoutingProfile.hpp"
#include "assfire/router/api/DistanceMatrix.hpp"
#include "assfire/router/api/RouteP... | 41.28 | 195 | 0.773256 | Eaglegor |
a5d2e4c8682ac34ddd16ff3dc8b2f6ce920e5783 | 22,359 | cpp | C++ | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <iostream>
#include <map>
#include "defines.h"
#include "file/format/st_hitPoints.h"
#include "../../file/format/st_common.h"
#include "fio_v1.h"
#include "file/file_io.h"
#include "file/fio_strings.h"
//#undef main
std::string FIL... | 43.415534 | 124 | 0.65562 | pdpdds |
77776bafa6cffa8f633bd3ea17301651d423b3c1 | 3,711 | cpp | C++ | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 281 | 2019-06-06T05:58:59.000Z | 2022-03-06T12:20:09.000Z | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 590 | 2019-09-22T00:26:10.000Z | 2022-03-31T19:21:58.000Z | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 44 | 2019-10-08T08:24:20.000Z | 2022-02-26T04:21:44.000Z | // SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
#include "DataHelpers.h"
#include "sfizz/Synt... | 29.220472 | 100 | 0.619779 | michaelwillis |
7780fac57c339cfe9c2e9c1f0b3dc94ee2e3c2d8 | 5,515 | cpp | C++ | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 57 | 2019-09-02T01:10:37.000Z | 2022-01-11T06:28:10.000Z | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 6 | 2020-02-29T17:19:30.000Z | 2021-10-30T04:29:22.000Z | #include "Utility/TeUUID.h"
#include "Utility/TePlatformUtility.h"
namespace
{
constexpr const char HEX_TO_LITERAL[16] =
{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
constexpr const te::UINT8 LITERAL_TO_HEX[256] =
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,... | 32.827381 | 118 | 0.470172 | GameDevery |
778e88fb99be6de595b832ff5ded79063eef0573 | 450 | hpp | C++ | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | null | null | null | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | null | null | null | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | 2 | 2019-08-05T07:13:19.000Z | 2021-02-22T16:39:11.000Z | #pragma once
#include <cslibs_indexed_storage/utility/options.hpp>
namespace cslibs_indexed_storage {
namespace option {
namespace tags
{
struct array_size {};
struct array_offset {};
}
template<std::size_t... sizes>
struct array_size : define_value_option<tags::array_size, std::size_t, sizes...> {};
template<type... | 19.565217 | 87 | 0.757778 | doge-of-the-day |
778f96d165cc63c8ffabcb660677e280a20fbda6 | 499 | cpp | C++ | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a,b,c;
cout << "Enter three numbers: ";
cin >> a >> b >> c;
cout << "Smallest number is ";
if (a < b ) {
//a is less than b
if (a < c) {
//a is less than both b and c
cout << a << endl;
} ... | 15.59375 | 42 | 0.396794 | hskhakh81 |
779168e78d7cd3a75bffafe6539f02369c33edfa | 1,909 | hpp | C++ | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | #pragma once
#include <functional>
#include <vector>
#include "Ease.hpp"
class Tween
{
public:
typedef std::function<void(float)> TweenUpdate;
typedef std::function<void()> TweenComplete;
enum Type
{
OneShot,
Boomerang
};
struct TweenInstance
{
TweenInstance(Ease::Type type, float start, float end, fl... | 26.150685 | 111 | 0.701414 | FoxelCode |
7793741c5e572186e66db4decf7bc22fbcb56148 | 744 | hpp | C++ | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | 1 | 2017-02-23T05:55:41.000Z | 2017-02-23T05:55:41.000Z | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | null | null | null | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | null | null | null | #ifndef _BACKUP_H_
#define _BACKUP_H_
#include "cmdline.hpp"
#include "in.hpp"
class Backup
{
public:
Backup();
Backup(const string &filename);
bool execute(const vector<string> &lhs, const vector<string> &rhs, int (& currFD)[2]);
string checkSymbol(vector<string> input, string& path);
//virtual bool isValid()... | 17.714286 | 93 | 0.68414 | awilk003 |
7798d6f5ac29752e357acd8f06b49568e12da74f | 540 | cpp | C++ | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | /*
* MotherBoard.cpp
*
* Created on: Nov 29, 2021
* Author: asharbinkhalil
*/
#include "MotherBoard.h"
MotherBoard::MotherBoard()
{
ports=NULL;
mm= NULL;
}
MotherBoard::MotherBoard(Port *portt, MainMemory *mmm)
{
this->mm=mmm;
ports = new Port[100];
this->ports =portt;
}
Port*& MotherBoard:... | 14.594595 | 56 | 0.633333 | asharbinkhalil |
7799ef317865f1290846f2f9d9a0e638caee193b | 3,945 | cpp | C++ | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <bmp180.h>
static const int samples = 1;
static const int fileNameSize = 20;
unsigned char oss_mode = ModeOss3;
/// create file name string from date and time
in... | 26.3 | 193 | 0.54398 | freepax |
779a7afc3f0d526d53f1b9c77f29a74d8b63d139 | 2,478 | cpp | C++ | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | #include "chessAI.h"
#include <ctime>
namespace AI {
const double INF = 1e9;
double checkWin(){
bool check = GameHandler::isKingAttacked(BoardStructure::currMoveColor);
bool movesLeft = GameHandler::movePossible(BoardStructure::currMoveColor, check);
if(check and !movesLeft){
return -INF;
} else if(!mov... | 27.533333 | 128 | 0.608555 | ReaLNeroM |
779c2d1f078a8625d18e620577a22388f4fcd7d0 | 780 | cpp | C++ | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
system("clear");
cout << "Enter the string for letter pyramid: ";
string input_string {};
getline(cin,input_string);
size_t length = input_string.length();
for(size_t i=0; i < lengt... | 19.02439 | 74 | 0.478205 | saurabhkakade21 |
77a0ec555011909ee9c5d5bd2557f02bd81c29d7 | 3,950 | cpp | C++ | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | 3 | 2019-07-30T17:31:06.000Z | 2019-12-15T01:58:01.000Z | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | null | null | null | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | 1 | 2019-08-04T22:42:02.000Z | 2019-08-04T22:42:02.000Z | // system
#include <sstream>
// libraries
#include <appimage/appimage++.h>
#include <appimage/utils/ResourcesExtractor.h>
#include <XdgUtils/DesktopEntry/DesktopEntry.h>
// local
#include "utils.h"
#include "InspectorDBusInterface.h"
// generated by `qt5_add_dbus_adaptor` cmake function
#include "inspectoradaptor.h"... | 38.72549 | 117 | 0.677468 | azubieta |
77a2c4cb19b899252c40e62bf376ef877098475c | 1,098 | cpp | C++ | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | #include <math/math.h>
namespace math
{
//TODO: Fix this trash
void integrate(double interval, double *result)
{
double precision = 10000;
double dx = interval/precision;
double iterator = 0.0;
for (uint64_t i = 0; i < (uint64_t)precision; i++)
{
... | 26.142857 | 107 | 0.503643 | epochx64 |
77a3b14f9a704748bc6dea5fadb39fa52b905050 | 41,022 | cpp | C++ | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | // This is a part of the High Performance CD Engine Library.
// Copyright (C) 2001-2003 Primo Software Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// High Performance CD Engine Reference and related
// electronic documentation provided with the library.
// S... | 25.848771 | 255 | 0.696821 | primoburner |
77ad6cb48aa0dae50ccaec2352ee4ae8bb6d6fb3 | 446 | cpp | C++ | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | 1 | 2019-09-10T08:17:02.000Z | 2019-09-10T08:17:02.000Z | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | null | null | null | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#define INF 1000000000
using namespace std;
int main(){
int n;
int kase=0;
// int array[];
while(scanf("%d",&n)==1 && n){ //循环输入n
int min=INF,max=-INF,s=0;
for(int i=0;i<n;i++){
int x;
scanf("%d",&x);
s+=x;
if(x>max)max=x;
if(x<min)min=x;
}
if(ka... | 17.84 | 62 | 0.544843 | zhaojing1995 |
77beae06fbb30367f42202ba358ac662369901b7 | 6,952 | hpp | C++ | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | //
// Copyright 2007-2008 Christian Henning, Andreas Pokorny, Lubomir Bourdev
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_EXTENSION_IO_PNG_DETAIL_SUPPORTED_TYPES_HPP
#define BOOST_GIL_EXT... | 35.835052 | 80 | 0.757768 | sdebionne |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.