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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c7d831b338083ffb7801ae4b5c6a6311bceda60 | 1,024 | cpp | C++ | implementations/SparseTable.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | 1 | 2019-12-15T22:23:20.000Z | 2019-12-15T22:23:20.000Z | implementations/SparseTable.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | implementations/SparseTable.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
constexpr int MaxN = 100005;
constexpr int MaxST = 25;
int logt[MaxN+1];
// Min sparse table
int st[MaxST][MaxN];
inline int rangeMin(int l, int r) {
int k = logt[r-l+1];
return min(st[k][l], st[k][r - (1<<k) + 1]);
}
int main() {
ios_base::sync_wi... | 19.692308 | 61 | 0.452148 | LeoRiether |
3c81b6723cb715f803551a89bdea8aa0ba41daa9 | 3,490 | hpp | C++ | include/caffe/util/ocl_wrapper.hpp | gujunli/OpenCL-CAFFE-Research | e8848f727733e503671e0e6a68aa885973b31197 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/util/ocl_wrapper.hpp | gujunli/OpenCL-CAFFE-Research | e8848f727733e503671e0e6a68aa885973b31197 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/util/ocl_wrapper.hpp | gujunli/OpenCL-CAFFE-Research | e8848f727733e503671e0e6a68aa885973b31197 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 AMD DNN contributors.
#ifndef _CAFFE_UTIL_OCL_WRAPPER_HPP_
#define _CAFFE_UTIL_OCL_WRAPPER_HPP_
namespace caffe {
template <typename Dtype>
void transform_gpu(cl_kernel Kernel, Dtype* src, Dtype* dst, const int top_offset, const int N_, const int M_, const int packing_num);
template <typename Dtyp... | 53.692308 | 318 | 0.791977 | gujunli |
3c84bd5c70d13e3c256eccacd919378dd395d07a | 292 | cpp | C++ | 3/pjs/6_2440_pjs.cpp | KNU-CS09/Baekjoon | 77253565dd23004668ca3f548a196e78142a1e29 | [
"MIT"
] | null | null | null | 3/pjs/6_2440_pjs.cpp | KNU-CS09/Baekjoon | 77253565dd23004668ca3f548a196e78142a1e29 | [
"MIT"
] | 8 | 2018-05-30T07:48:49.000Z | 2018-06-15T00:10:05.000Z | 3/pjs/6_2440_pjs.cpp | KNU-CS09/Baekjoon | 77253565dd23004668ca3f548a196e78142a1e29 | [
"MIT"
] | null | null | null | #include "1.h"
using namespace std;
void print2440()
{
int a;
while (1)
{
cin >> a;
if (1 <= a <= 100)
break;
}
int flag = a;
for (int i = 1; i <= a; i++)
{
for (int j = flag; j > 0; j--)
{
cout << "*";
}
cout << "\n";
flag--;
}
} | 10.814815 | 33 | 0.380137 | KNU-CS09 |
3c88f2435528479eca2ba6869ef1f47ef728bce7 | 635 | cpp | C++ | PiCameraVersion/TwinPixelofxCV/src/main.cpp | oxcdx/TwinPixel | 673b9d564bff10f4607f0f9ea247fd20a9fec1b2 | [
"MIT"
] | 1 | 2020-06-16T14:23:24.000Z | 2020-06-16T14:23:24.000Z | PiCameraVersion/TwinPixelofxCV/src/main.cpp | oxcdx/TwinPixel | 673b9d564bff10f4607f0f9ea247fd20a9fec1b2 | [
"MIT"
] | null | null | null | PiCameraVersion/TwinPixelofxCV/src/main.cpp | oxcdx/TwinPixel | 673b9d564bff10f4607f0f9ea247fd20a9fec1b2 | [
"MIT"
] | null | null | null | #include "ofMain.h"
#include "ofApp.h"
int main() {
//ofSetupOpenGL(1280, 720, OF_WINDOW);
//settings if OF_FULLSCREEN causing problems on linux, or more flexibility needed across multiple monitors
// ofGLFWWindowSettings settings;
// settings.windowMode = OF_WINDOW;
// settings.setSize(3840, 1080);... | 26.458333 | 110 | 0.696063 | oxcdx |
3c8ee7cb2696c4a7b814649430c2d4f492504db7 | 4,534 | cpp | C++ | Board.cpp | neta-r/Message-board | c0fc2d10343167322cdd363a081fa0f7950cf09a | [
"MIT"
] | null | null | null | Board.cpp | neta-r/Message-board | c0fc2d10343167322cdd363a081fa0f7950cf09a | [
"MIT"
] | null | null | null | Board.cpp | neta-r/Message-board | c0fc2d10343167322cdd363a081fa0f7950cf09a | [
"MIT"
] | null | null | null | #include "Board.hpp"
#include "Direction.hpp"
#include <exception>
using namespace std;
namespace ariel {
Board::Board() { //Initialize of the board's proportion to +-infinity
this->min_col = std::numeric_limits<unsigned int>::max();
this->min_row = std::numeric_limits<unsigned int>::max();
... | 34.610687 | 126 | 0.531981 | neta-r |
3c93b20891d576f9170388dd96c15904ed0b9389 | 419 | cpp | C++ | leetcode101.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | leetcode101.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | leetcode101.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | bool flip(TreeNode* left, TreeNode* right)
{
if(left != NULL && right == NULL){return 0;}
if(left == NULL && right != NULL){return 0;}
if(left == NULL && right == NULL){return 1;}
if(left->val != right->val){return 0;}
return flip(left->left, right->right) && flip(left->right, right->left);
}
bool ... | 27.933333 | 76 | 0.594272 | thomasjmurphy |
3c93ee838d81c76beca148ce6800521536acb5a5 | 1,213 | cpp | C++ | examples/Task/notify.cpp | feabhas/FreeRTOS-Cpp | f6e4f5ceed964043c00e05024a4dfd3cd5f58a14 | [
"MIT"
] | 9 | 2022-01-21T07:51:07.000Z | 2022-03-29T16:19:30.000Z | examples/Task/notify.cpp | feabhas/FreeRTOS-Cpp | f6e4f5ceed964043c00e05024a4dfd3cd5f58a14 | [
"MIT"
] | 1 | 2022-03-09T08:42:27.000Z | 2022-03-12T20:30:04.000Z | examples/Task/notify.cpp | feabhas/FreeRTOS-Cpp | f6e4f5ceed964043c00e05024a4dfd3cd5f58a14 | [
"MIT"
] | 2 | 2022-02-03T16:32:15.000Z | 2022-03-09T08:43:05.000Z | #include <FreeRTOS/Task.hpp>
class MyTask : public FreeRTOS::Task {
public:
void taskFunction() final;
};
void MyTask::taskFunction() {
for (;;) {
// ...
}
}
MyTask task1;
MyTask task2;
MyTask task3;
MyTask task4;
void aFunction() {
// Set bit 8 in the 0th notification value of task1.
task1.notify(Fr... | 29.585366 | 79 | 0.701566 | feabhas |
3c940b70c15cb6b02d303b5234770fe7a3beaf66 | 1,140 | cpp | C++ | code83.cpp | luciferwzp/C-code | 8cfed431bf658d8c5a4d0b4f2cdab740c6ee4bd0 | [
"MIT"
] | 2 | 2019-08-18T19:33:34.000Z | 2019-11-25T06:02:19.000Z | code83.cpp | luciferwzp/C-code | 8cfed431bf658d8c5a4d0b4f2cdab740c6ee4bd0 | [
"MIT"
] | null | null | null | code83.cpp | luciferwzp/C-code | 8cfed431bf658d8c5a4d0b4f2cdab740c6ee4bd0 | [
"MIT"
] | null | null | null | //Web系统通常会频繁地访问数据库,如果每次访问都创建新连接,性能会很差。
//为了提高性能,架构师决定 复用已经创建的连接。当收到请求,并且连接池中没有剩余可用的连接时,系统会创建一个新连接,
//当请求处理完成时该连接会被放入连接池中,供后续请求使用。
//现在提供你处理请求的日志,请你分析一下连接池最多需要创建多少个连接。
//输入描述: 输入包含多组数据,每组数据第一行包含一个正整数n(1≤n≤1000),表示请求的数量。
//紧接着n行,每行包含一个请求编号id(A、B、C……、Z)和操作(connect或disconnect)。
//输出描述: 对应每一组数据,输出连接池最多需要创建多少个连接。
//示例1: 输入
/... | 21.509434 | 64 | 0.599123 | luciferwzp |
3c9b4e215ca8bd8d4f38febbdb9c973cba0af8f0 | 1,967 | hpp | C++ | src/framework/memory/std_allocator.hpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/framework/memory/std_allocator.hpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/framework/memory/std_allocator.hpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #ifndef _OP_MEMORY_STD_ALLOCATOR_HPP_
#define _OP_MEMORY_STD_ALLOCATOR_HPP_
#include <cstddef>
#include <cstdint>
#include <new>
namespace openperf::memory {
template <class T, class Impl> class std_allocator
{
Impl m_impl;
public:
using pointer = T*;
using const_pointer = const T*;
using reference ... | 25.545455 | 78 | 0.647178 | smprogsoft |
3c9ce784ed07a69fa34a67a26a8603d3345bd9c1 | 6,224 | cpp | C++ | code/source/Common/UString.cpp | TheodorusWare/Archivarius | c7bc89a2faaadc37bb65c24fc2e978c915edd582 | [
"Apache-2.0"
] | null | null | null | code/source/Common/UString.cpp | TheodorusWare/Archivarius | c7bc89a2faaadc37bb65c24fc2e978c915edd582 | [
"Apache-2.0"
] | null | null | null | code/source/Common/UString.cpp | TheodorusWare/Archivarius | c7bc89a2faaadc37bb65c24fc2e978c915edd582 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2018-2020 Theodorus Software
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 in writing,... | 17.240997 | 75 | 0.637371 | TheodorusWare |
3c9d4d551435c8e8cc00518353aa3955554e7de0 | 166 | cpp | C++ | tests/concurrent/B4.cpp | stevencpp/cpp_modules | a49f8077450eef378d8788ea1e12685cb280ba0e | [
"MIT"
] | 18 | 2019-12-27T20:05:00.000Z | 2022-01-27T16:10:14.000Z | tests/concurrent/B4.cpp | stevencpp/cpp_modules | a49f8077450eef378d8788ea1e12685cb280ba0e | [
"MIT"
] | 1 | 2020-02-01T22:55:50.000Z | 2020-02-01T22:55:50.000Z | tests/concurrent/B4.cpp | stevencpp/cpp_modules | a49f8077450eef378d8788ea1e12685cb280ba0e | [
"MIT"
] | 1 | 2021-01-30T11:39:12.000Z | 2021-01-30T11:39:12.000Z | export module B4;
#include "H4.h"
import std.core;
import C;
#include "funcsig.h"
export namespace B4 {
void foo() {
C::foo();
printf("%s\n", FUNCSIG);
}
} | 10.375 | 26 | 0.614458 | stevencpp |
3c9f32df7dd65be096081c9f1f8e87a908a07b60 | 1,657 | hpp | C++ | src/parameter.hpp | nizox/libddwaf | 841cbf703375ae0561b1e9c272a40734830b22fd | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/parameter.hpp | nizox/libddwaf | 841cbf703375ae0561b1e9c272a40734830b22fd | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/parameter.hpp | nizox/libddwaf | 841cbf703375ae0561b1e9c272a40734830b22fd | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | // Unless explicitly stated otherwise all files in this repository are
// dual-licensed under the Apache-2.0 License or BSD-3-Clause License.
//
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2021 Datadog, Inc.
#ifndef PARAMETER_H
#define PARAMETER_H
#include <ddwaf.... | 21.519481 | 84 | 0.694025 | nizox |
3c9fcff5045b12f4a774a11b6787888ec91acfe2 | 624 | hpp | C++ | apps/opencs/model/world/pathgrid.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/pathgrid.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/pathgrid.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef CSM_WOLRD_PATHGRID_H
#define CSM_WOLRD_PATHGRID_H
#include <vector>
#include <string>
#include <components/esm/loadpgrd.hpp>
#include "idcollection.hpp"
#include "cell.hpp"
namespace CSMWorld
{
/// \brief Wrapper for Pathgrid record
///
/// \attention The mData.mX and mData.mY fields of the ESM:... | 22.285714 | 93 | 0.682692 | Bodillium |
3ca302392e8c1fd418eddba59878975449712b52 | 2,045 | hpp | C++ | include/PgfPlotsPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | include/PgfPlotsPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | include/PgfPlotsPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | /**
* @author Karl Smith
* @date Mar 1, 2018
*/
#ifndef PGFPLOTSPLOT_HPP
#define PGFPLOTSPLOT_HPP
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <TNamed.h>
#include <TGraph.h>
#include <TH1.h>
#include <TH2.h>
#include "TikzOptions.hpp"
class PgfPlotsPlot {
public:
PgfPlot... | 30.073529 | 78 | 0.633252 | ksmith0 |
3ca423485719900034fd447deeda1d5f1632d931 | 4,618 | cc | C++ | db/chunklog.cc | Meggie4/hotness_aware_leveldb | 9aaa30245f28e68f31bd9399678b3aa546d3816a | [
"BSD-3-Clause"
] | null | null | null | db/chunklog.cc | Meggie4/hotness_aware_leveldb | 9aaa30245f28e68f31bd9399678b3aa546d3816a | [
"BSD-3-Clause"
] | null | null | null | db/chunklog.cc | Meggie4/hotness_aware_leveldb | 9aaa30245f28e68f31bd9399678b3aa546d3816a | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <stdint.h>
#include <stdio.h>
#include <cstdlib>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "port/port.h"
#include "db/chunklog.h"
#include "db/dbformat.h"
#include "port/cache_flush.h"
#include "util/debug.h"
namespace ... | 40.156522 | 120 | 0.665223 | Meggie4 |
3caec7482f837ef9f327eaab697d9f17670979d7 | 2,162 | cpp | C++ | Roll-Call System/Roll-Call System/main.cpp | CuteBoiz/Atmel | ff27f46a1eec40f2fdc2ecee86303baa568416d0 | [
"Unlicense"
] | null | null | null | Roll-Call System/Roll-Call System/main.cpp | CuteBoiz/Atmel | ff27f46a1eec40f2fdc2ecee86303baa568416d0 | [
"Unlicense"
] | null | null | null | Roll-Call System/Roll-Call System/main.cpp | CuteBoiz/Atmel | ff27f46a1eec40f2fdc2ecee86303baa568416d0 | [
"Unlicense"
] | null | null | null | #include "PS2.h"
#include "Nokia5110.h"
char *mySystem[] = {"1.RFID", "2.Setting"};
char *RFID[] = {"1.Tags List","2.Add New Tag"," Back"};
char *Setting[] = {"1.Light", "2.Contrast", " Back"};
char *List[] = {"1.Phat", "2.Vinh", "3.Tuan"};
void USART_Init();
void USART_Transmit(char data);
void USART_SendStrin... | 19.303571 | 62 | 0.569843 | CuteBoiz |
3cb1cf8c12cfd31dd4a0a2f2352140fe60e4d1e6 | 1,593 | cpp | C++ | test/src/max_pool.cpp | shibii/nn | 2022ec423c3bfe179997630d6ba705aeaabdd918 | [
"MIT"
] | 1 | 2020-11-17T14:25:28.000Z | 2020-11-17T14:25:28.000Z | test/src/max_pool.cpp | shibii/nn | 2022ec423c3bfe179997630d6ba705aeaabdd918 | [
"MIT"
] | null | null | null | test/src/max_pool.cpp | shibii/nn | 2022ec423c3bfe179997630d6ba705aeaabdd918 | [
"MIT"
] | null | null | null | #include <sstream>
#include "catch.hpp"
#include <cereal/types/vector.hpp>
#include "techniques/max_pool.hpp"
#include "feed.hpp"
#include "util.hpp"
TEST_CASE("max pool", "[max pool]") {
float hostinput[] = { 1,2,1,0,0,1,1,1,2,3,1,1,0,0,1,2,0,0,1,
1,1,1,3,1,1,1,2,0,0,2,0,0,0,0,0,1 };
float hostexpected[] = ... | 33.893617 | 76 | 0.642812 | shibii |
3cb34515cdcecf85e229f418d4d49f32242aa5ac | 1,079 | cpp | C++ | 10. Regular Expression Matching.cpp | WenHsuanYu/Leetcode | 9c035035bee8e10f4acb8d2aaddfd15dc006f78a | [
"MIT"
] | null | null | null | 10. Regular Expression Matching.cpp | WenHsuanYu/Leetcode | 9c035035bee8e10f4acb8d2aaddfd15dc006f78a | [
"MIT"
] | null | null | null | 10. Regular Expression Matching.cpp | WenHsuanYu/Leetcode | 9c035035bee8e10f4acb8d2aaddfd15dc006f78a | [
"MIT"
] | null | null | null | class Solution {
public:
bool isMatch(string s, string p) {
vector<vector<bool> >dp(s.length() + 1, vector<bool>(p.length() + 1, false));
// dp[i][j]
//case 1: i = 0, j = 0
dp[0][0] = true;
//case 2: i > 0, j = 0
//dp[i > 0][j=0] = false;
//case 3: i = 0, j >... | 35.966667 | 121 | 0.333642 | WenHsuanYu |
3cb36cdee29fa5716559a059094423466b3a7f3f | 1,620 | cpp | C++ | 100-199/181.cpp | FuckAlgorithm/sgu | 8cfc94a198bfe36471218047625d8af5d88b1c3b | [
"MIT"
] | 3 | 2015-06-12T08:13:04.000Z | 2015-09-18T06:48:34.000Z | 100-199/181.cpp | FuckAlgorithm/sgu | 8cfc94a198bfe36471218047625d8af5d88b1c3b | [
"MIT"
] | null | null | null | 100-199/181.cpp | FuckAlgorithm/sgu | 8cfc94a198bfe36471218047625d8af5d88b1c3b | [
"MIT"
] | 1 | 2015-07-08T06:15:57.000Z | 2015-07-08T06:15:57.000Z | /*************************************************************************
181. X-Sequence
time limit per test: 0.25 sec.
memory limit per test: 4096 KB
input: standard
output: standard
Let {xi} be the infinite sequence... | 20.769231 | 171 | 0.424691 | FuckAlgorithm |
3cb3a4e23ced78054ab178ab943ad43673d3b61c | 30,774 | cpp | C++ | core/src/wallet/cosmos/CosmosLikeMessage.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/wallet/cosmos/CosmosLikeMessage.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/wallet/cosmos/CosmosLikeMessage.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | /*
*
* CosmosLikeMessage
*
* Created by El Khalil Bellakrid on 14/06/2019.
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ledger
*
* 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 Softwa... | 40.438896 | 100 | 0.72662 | RomanWlm |
3cb3a5ee1047dc6888abc72f9ede8160c729a0ae | 576 | cpp | C++ | gui/plotPoint.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | 30 | 2015-04-29T05:13:02.000Z | 2022-03-21T02:07:41.000Z | gui/plotPoint.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | 2 | 2017-11-07T05:42:56.000Z | 2020-07-20T16:32:02.000Z | gui/plotPoint.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | 14 | 2015-04-29T20:31:00.000Z | 2021-06-10T03:09:53.000Z | #include "plotPoint.h"
#include "plotScene.h"
QRectF Point::boundingRect() const {
return(QRectF(-r,-r,2*r,2*r));
}
void Point::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) {
//qDebug() << "Point::paint" << x << " " << y << " " << r;
painter->setBrush(brush);
p... | 24 | 83 | 0.585069 | pvnuffel |
3cb5d90db16890eb222d246100cd288233614841 | 4,157 | cpp | C++ | source/get.cpp | ict-project/libict-utf8 | 88460cff256b7d85c93aedad15158d53230b228c | [
"BSD-3-Clause"
] | null | null | null | source/get.cpp | ict-project/libict-utf8 | 88460cff256b7d85c93aedad15158d53230b228c | [
"BSD-3-Clause"
] | null | null | null | source/get.cpp | ict-project/libict-utf8 | 88460cff256b7d85c93aedad15158d53230b228c | [
"BSD-3-Clause"
] | null | null | null | //! @file
//! @brief UTF8 get module - Source file.
//! @author Mariusz Ornowski (mariusz.ornowski@ict-project.pl)
//! @version 1.0
//! @date 2012-2021
//! @copyright ICT-Project Mariusz Ornowski (ict-project.pl)
/* **************************************************************
Copyright (c) 2012-2021, ICT-Project Mari... | 35.836207 | 70 | 0.628338 | ict-project |
3cb8ed56ecbce0facfbe87dd351852467830973d | 2,407 | cpp | C++ | Week 2/Palindrome selection.cpp | SemyonSemenov/Basics-of-Cpp-Development-White-Belt | 44133f525bbb373f4c3debb456361a1b7a9a34d5 | [
"MIT"
] | null | null | null | Week 2/Palindrome selection.cpp | SemyonSemenov/Basics-of-Cpp-Development-White-Belt | 44133f525bbb373f4c3debb456361a1b7a9a34d5 | [
"MIT"
] | null | null | null | Week 2/Palindrome selection.cpp | SemyonSemenov/Basics-of-Cpp-Development-White-Belt | 44133f525bbb373f4c3debb456361a1b7a9a34d5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
void NEW_BUS(map<string, vector<string>>& bus_stops, string bus, string stop){
bus_stops[bus].push_back(stop);
}
void BUSES_FOR_STOP(map<string, vector<string>>& bus_stops, vector<string> buses, string stop){
/*if (bus_stops... | 19.892562 | 95 | 0.555463 | SemyonSemenov |
3cbb37231e0a14fe4451ebd81d0e94a0ad07f8c9 | 1,322 | cpp | C++ | FlyEngine/Source/DockPanel.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/DockPanel.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/DockPanel.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | #include "DockPanel.h"
#include "imgui.h"
#include "mmgr.h"
DockPanel::DockPanel(std::string newPanelName, bool isVisible)
{
panelName = newPanelName;
visible = isVisible;
}
DockPanel::~DockPanel()
{
}
string DockPanel::GetName() const
{
return panelName;
}
inline void DockPanel::SetName(string newName)
{
panel... | 13.915789 | 72 | 0.72466 | rogerta97 |
3cbc07acf6e85bf09cb32afe658356e17f634003 | 232 | cpp | C++ | cpp/821-830/Consecutive Numbers Sum.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/821-830/Consecutive Numbers Sum.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/821-830/Consecutive Numbers Sum.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
int consecutiveNumbersSum(int N) {
int ans = 1;
for (int i = 2; i * (i + 1) / 2 <= N; ++i) {
if ((N - i * (i + 1) / 2) % i == 0) ++ans;
}
return ans;
}
};
| 21.090909 | 54 | 0.383621 | KaiyuWei |
3cbfbfc0a15b9608c843eddab154c4622f38ac04 | 15,140 | cpp | C++ | Libraries/GUI/Utilities.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 1 | 2019-04-22T00:10:49.000Z | 2019-04-22T00:10:49.000Z | Libraries/GUI/Utilities.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | null | null | null | Libraries/GUI/Utilities.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 2 | 2017-10-16T15:40:55.000Z | 2019-04-22T00:10:50.000Z | #include "GEK/GUI/Utilities.hpp"
#include "GEK/Math/Common.hpp"
#include "GEK/Math/Vector4.hpp"
#include "imgui_internal.h"
#include <unordered_map>
namespace Gek
{
namespace UI
{
ImVec2 GetWindowContentRegionSize(void)
{
return (ImGui::GetWindowContentRegionMax() - ImGui::GetWindow... | 44.011628 | 199 | 0.576288 | xycsoscyx |
3cc08e8d7be2d10bdd6d8fa751c7c2df91799c3e | 1,040 | cpp | C++ | leetcode/docu/528.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/528.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/528.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | #include "cpp_header.h"
class Solution {
vector<int> mw;
random_device rd;
mt19937 gen;
uniform_int_distribution<> distribu;
public:
Solution(vector<int>& w){
mw = vector<int>(w.size(), 0);
mw[0] = w[0];
for(int i = 1; i < w.size(); i++)
{
mw[i] = mw[i-1]+w[i];
}
gen = mt19937(rd());
distribu = u... | 17.04918 | 54 | 0.510577 | sczzq |
3cce6b24fb8e812fc80bc87691b5ac6380830604 | 4,928 | cpp | C++ | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessTilts.cpp | tahirap/PX4-Autopilot | 6b26f3616e4d1e4aa89f046503aa7b574e66d13d | [
"BSD-3-Clause"
] | 4,224 | 2015-01-02T11:51:02.000Z | 2020-10-27T23:42:28.000Z | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessTilts.cpp | tahirap/PX4-Autopilot | 6b26f3616e4d1e4aa89f046503aa7b574e66d13d | [
"BSD-3-Clause"
] | 11,736 | 2015-01-01T11:59:16.000Z | 2020-10-28T17:13:38.000Z | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessTilts.cpp | tahirap/PX4-Autopilot | 6b26f3616e4d1e4aa89f046503aa7b574e66d13d | [
"BSD-3-Clause"
] | 11,850 | 2015-01-02T14:54:47.000Z | 2020-10-28T16:42:47.000Z | /****************************************************************************
*
* Copyright (c) 2021 PX4 Development Team. 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. Redistri... | 35.2 | 121 | 0.701502 | tahirap |
3ccf63f67c42119f4f2796eaa7087e94dd4e1a90 | 2,417 | cpp | C++ | src/lunar-master/cosptest.cpp | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | null | null | null | src/lunar-master/cosptest.cpp | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | null | null | null | src/lunar-master/cosptest.cpp | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | 1 | 2019-10-12T03:23:41.000Z | 2019-10-12T03:23:41.000Z | /* Copyright (C) 2018, Project Pluto
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope t... | 36.074627 | 74 | 0.581713 | TehSnappy |
3ccf71ceff7e9f593d43d0c5c316c7dc53415428 | 614 | hpp | C++ | Source/BigNumber.hpp | shu456/BigNumber | d587fdffcb71d9917e8b1019793211dd86cf8ad4 | [
"MIT"
] | null | null | null | Source/BigNumber.hpp | shu456/BigNumber | d587fdffcb71d9917e8b1019793211dd86cf8ad4 | [
"MIT"
] | null | null | null | Source/BigNumber.hpp | shu456/BigNumber | d587fdffcb71d9917e8b1019793211dd86cf8ad4 | [
"MIT"
] | null | null | null | #ifndef BIGNUMBER_HPP
#define BIGNUMBER_HPP
#include <iostream>
#include <string>
#include "container.hpp"
class BigNumber
{
using Numbers = std::vector<unsigned>;
public:
BigNumber();
BigNumber(std::string const&);
/**
* Operations
*/
BigNumber& operator=(BigNumber const& );
BigNumber& operator=(std::string ... | 18.606061 | 68 | 0.697068 | shu456 |
3cd20697d98b213d67db2ceb1da83435a014782a | 8,268 | cpp | C++ | simulation_code/src/simudrive.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | null | null | null | simulation_code/src/simudrive.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | null | null | null | simulation_code/src/simudrive.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | null | null | null | #include "simulation_code/simudrive.h"
SimulationDrive::SimulationDrive()
: nh_priv_("~")
{
//Init gazebo ros turtlebot3 node
ROS_INFO("Running simudrive node");
auto ret = init();
ROS_ASSERT(ret);
}
SimulationDrive::~SimulationDrive()
{
updateCommandVelocity(0.0, 0.0);
ros::shutdown();
}
/***********... | 23.895954 | 153 | 0.576318 | lottegr |
3cd3c11814c7c4f7b88ea8f96a93cb4bce587685 | 1,224 | cpp | C++ | Raspi-c/tools/camera.cpp | hex-plex/Light-Gun.apk | 1187b2504bab33a646e93e0ae8ad16489f2b4e7a | [
"MIT"
] | 3 | 2020-08-15T11:22:53.000Z | 2021-02-27T13:09:27.000Z | Raspi-c/tools/camera.cpp | hex-plex/Light-Gun.apk | 1187b2504bab33a646e93e0ae8ad16489f2b4e7a | [
"MIT"
] | null | null | null | Raspi-c/tools/camera.cpp | hex-plex/Light-Gun.apk | 1187b2504bab33a646e93e0ae8ad16489f2b4e7a | [
"MIT"
] | 1 | 2020-06-24T18:04:36.000Z | 2020-06-24T18:04:36.000Z | #include <opencv2/highgui.hpp>
#include <iostream>
int main(int argc, char** argv){
cv::Mat image;
cv::VideoCapture cap;
cap.open(0,cv::CAP_ANY);
if(!cap.isOpened()){
std::cout << "Could not open the camera" <<std::endl;
return -1;
}
std::cout<<"BRIGHTNESS "<<cap.set(cv::CAP_PROP_BRIGHTNESS,10)<<"\n";
//std... | 28.465116 | 101 | 0.58415 | hex-plex |
3cd5e9a59642c9d5799250f50fc28b3a0a198138 | 1,316 | cc | C++ | Daily_Problem/2101/Beginning/210106_Evaluate_Division/method1/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | 1 | 2020-02-07T12:25:56.000Z | 2020-02-07T12:25:56.000Z | Daily_Problem/2101/Beginning/210106_Evaluate_Division/method1/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | Daily_Problem/2101/Beginning/210106_Evaluate_Division/method1/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | #include <string>
#include <unordered_map>
#include <vector>
#include "union_find.hpp"
using std::string;
using std::unordered_map;
using std::vector;
class Solution {
public:
// 使用带权值的并查集来实现
vector<double> calcEquation(vector<vector<string>>& equations,
vector<double>& val... | 26.857143 | 71 | 0.490881 | sheriby |
3cd699727c326ba42c3425ed6d45800bf77afc8a | 1,193 | cpp | C++ | AP325/Q-6-12.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | AP325/Q-6-12.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | AP325/Q-6-12.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr const int INF = 1e9 + 9;
// constexpr const ll INF = 1L << 60;
constexpr const ll MOD = 1e9 + 9;
ll solve(vector<int> &nums, const int days) {
priority_queue<pair<ll, ll>> pq; // best value, i: best value on day i
vector<ll> best(num... | 26.511111 | 75 | 0.515507 | Superdanby |
3cd9b603954ba8767a068b1e2e3a6d03377486a4 | 1,049 | hpp | C++ | include/SpriteTextureManager.hpp | FromAlaska/CornHub | d6280e1d66f15cd58fd0d8086c7beeb7b7db3e8b | [
"Unlicense"
] | 2 | 2018-09-24T21:58:50.000Z | 2019-04-18T21:32:04.000Z | include/SpriteTextureManager.hpp | FromAlaska/CornHub | d6280e1d66f15cd58fd0d8086c7beeb7b7db3e8b | [
"Unlicense"
] | null | null | null | include/SpriteTextureManager.hpp | FromAlaska/CornHub | d6280e1d66f15cd58fd0d8086c7beeb7b7db3e8b | [
"Unlicense"
] | null | null | null | #ifndef SPRITETEXTUREMANAGER_HPP
#define SPRITETEXTUREMANAGER_HPP
#include <stdio.h>
#include <string>
using std::string;
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <vector>
#include <iostream>
using std::cout;
using std::endl;
namespace Corn
{
c... | 22.319149 | 72 | 0.709247 | FromAlaska |
3cdad157765b4f616b4fbc3a1c76b665cd7601b0 | 2,834 | hpp | C++ | include/simple-timer.hpp | travisdowns/fastscancount | a4ebedd1167462a0ed3c87cecca4d9cbd04cc6dc | [
"Apache-2.0"
] | 1 | 2019-10-25T02:50:39.000Z | 2019-10-25T02:50:39.000Z | include/simple-timer.hpp | travisdowns/fastscancount | a4ebedd1167462a0ed3c87cecca4d9cbd04cc6dc | [
"Apache-2.0"
] | null | null | null | include/simple-timer.hpp | travisdowns/fastscancount | a4ebedd1167462a0ed3c87cecca4d9cbd04cc6dc | [
"Apache-2.0"
] | 1 | 2021-10-02T21:43:17.000Z | 2021-10-02T21:43:17.000Z | /*
* simpler-timer.hpp
*
* A simple timer class that allows timing of scoped regions.
*/
#ifndef SIMPLE_TIMER_HPP_
#define SIMPLE_TIMER_HPP_
#include <cinttypes>
#include <stdexcept>
#include <chrono>
#include <string>
#include <cstdio>
#if !defined(ENABLE_TIMER) || !ENABLE_TIMER
#define DISABLE_TIMER
#endif
te... | 21.968992 | 109 | 0.601623 | travisdowns |
3cdbc0039646e4f25dc722cf6a588dd5e1c154a5 | 11,134 | cpp | C++ | src/collision_detection.cpp | deadVertex/physics-engine | a877b849cdb211e82e2280af06472090512fe846 | [
"MIT"
] | null | null | null | src/collision_detection.cpp | deadVertex/physics-engine | a877b849cdb211e82e2280af06472090512fe846 | [
"MIT"
] | 15 | 2021-03-31T23:01:47.000Z | 2021-04-07T05:03:58.000Z | src/collision_detection.cpp | deadVertex/physics-engine | a877b849cdb211e82e2280af06472090512fe846 | [
"MIT"
] | 1 | 2021-04-05T13:15:53.000Z | 2021-04-05T13:15:53.000Z | #include "collision_detection.h"
#include <cstdio>
CollisionWorld CreateCollisionWorld(
Box *boxes, u32 boxCount, Circle *circles, u32 circleCount)
{
CollisionWorld result = {};
result.boxes = boxes;
result.maxBoxes = boxCount;
result.circles = circles;
result.maxCircles = circleCount;
re... | 29.770053 | 80 | 0.589276 | deadVertex |
3cdf1764833cc03b6327fe6da44b7cc52adf3cc2 | 1,340 | hpp | C++ | BlockTree/BlockTreeWidget.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | null | null | null | BlockTree/BlockTreeWidget.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | null | null | null | BlockTree/BlockTreeWidget.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2014-2017 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <Pothos/Config.hpp>
#include <QTreeWidget>
#include <QJsonArray>
#include <QJsonObject>
#include <QString>
#include <QList>
#include <map>
class QTimer;
class QMimeData;
class BlockTreeWidgetItem;
class GraphEditorTabs;
//... | 21.967213 | 68 | 0.75 | sielicki |
c9e63692b31bcd0a5defedb5cb2eb47ed56b43be | 28,062 | cpp | C++ | src/cpu/x64/matmul/brgemm_matmul_utils.cpp | YangQun1/oneDNN | 3497cdc194e76ba122a8012175e38aaacbf17b9a | [
"Apache-2.0"
] | null | null | null | src/cpu/x64/matmul/brgemm_matmul_utils.cpp | YangQun1/oneDNN | 3497cdc194e76ba122a8012175e38aaacbf17b9a | [
"Apache-2.0"
] | null | null | null | src/cpu/x64/matmul/brgemm_matmul_utils.cpp | YangQun1/oneDNN | 3497cdc194e76ba122a8012175e38aaacbf17b9a | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021 Intel Corporation
*
* 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.o... | 42.518182 | 80 | 0.620875 | YangQun1 |
c9ebe05294ed2b3936166cefd1c4e3209906a58b | 990 | cpp | C++ | PC_Aula_15/2. Max Area of Island/MaxAreaofIsland.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | PC_Aula_15/2. Max Area of Island/MaxAreaofIsland.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | PC_Aula_15/2. Max Area of Island/MaxAreaofIsland.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
int maxAreaOfIsland(vector<vector<int>>& grid) {
int m=grid.size();
int n=grid[0].size();
int res=0;
for(int i=0;i<m;i++)
for(int j=0;j<n;j++)
if(grid[i... | 26.756757 | 81 | 0.463636 | ElizabethYasmin |
c9fdd4946d70fc537e3ebca4d2cdcf24da70b79d | 24,105 | cpp | C++ | src/Plugins/AndroidNativeFacebookPlugin/AndroidNativeFacebookModule.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/AndroidNativeFacebookPlugin/AndroidNativeFacebookModule.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/AndroidNativeFacebookPlugin/AndroidNativeFacebookModule.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "AndroidNativeFacebookModule.h"
#include "Interface/ThreadServiceInterface.h"
#include "Kernel/Callback.h"
#include "Kernel/FactorableUnique.h"
#include "Kernel/Document.h"
#include "Environment/Android/AndroidUtils.h"
#ifdef MENGINE_USE_SCRIPT_SERVICE
# include "pybind/pybind.hpp"
#endif
#define FACEBO... | 41.346484 | 168 | 0.584816 | Terryhata6 |
a0010b39bbac0e822abea33362572084446ebee2 | 2,788 | cpp | C++ | libs/fnd/iterator/test/src/unit_test_fnd_iterator_advance.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/iterator/test/src/unit_test_fnd_iterator_advance.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/iterator/test/src/unit_test_fnd_iterator_advance.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_iterator_advance.cpp
*
* @brief advance のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/iterator/advance.hpp>
#include <bksge/fnd/iterator/begin.hpp>
#include <bksge/fnd/iterator/end.hpp>
#include <bksge/fnd/array.hpp>
#include <gtest/gtest.h>
#include <vector>
#include ... | 20.5 | 44 | 0.564921 | myoukaku |
a0026e50d098244324aa4dd296f37cf4f6ec4579 | 1,040 | hpp | C++ | include/SpecialHeap/BinaryHeap.hpp | bohdan200211/oop_lab3b_concurrency | 5715370381278b734ab245ef53ce3e86f1e9b2f8 | [
"MIT"
] | null | null | null | include/SpecialHeap/BinaryHeap.hpp | bohdan200211/oop_lab3b_concurrency | 5715370381278b734ab245ef53ce3e86f1e9b2f8 | [
"MIT"
] | null | null | null | include/SpecialHeap/BinaryHeap.hpp | bohdan200211/oop_lab3b_concurrency | 5715370381278b734ab245ef53ce3e86f1e9b2f8 | [
"MIT"
] | null | null | null | //
// Created by Bohdan on 07.09.2020.
//
#pragma once
#include <cstdio>
#include <stdexcept>
/// Here was implement standard Binary Heap with min-heap property.
/// @see https://www.andrew.cmu.edu/course/15-121/lectures/Binary%20Heaps/heaps.html
template<typename Key, typename Data>
class BinaryHeap {
private:
... | 24.186047 | 84 | 0.656731 | bohdan200211 |
a00279b4eeb854c47e9f943aba253734e46fb74d | 6,861 | cpp | C++ | OsiInterface/NodeHooks.cpp | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 192 | 2019-12-30T23:42:48.000Z | 2022-03-28T04:43:47.000Z | OsiInterface/NodeHooks.cpp | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 74 | 2020-01-13T21:46:09.000Z | 2022-03-19T14:53:40.000Z | OsiInterface/NodeHooks.cpp | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 30 | 2019-10-24T23:26:38.000Z | 2022-03-26T22:11:25.000Z | #include "stdafx.h"
#include "NodeHooks.h"
#include <sstream>
#include <memory>
#include <cassert>
namespace dse
{
template <typename T>
class ROWriteAnchor
{
public:
ROWriteAnchor(T * region)
: region_(region)
{
BOOL succeeded = VirtualProtect((LPVOID)region_, sizeof(T), PAGE_READWRITE, &oldProtect_);
... | 26.287356 | 124 | 0.712578 | LuxenBZH |
a0097308f3cff4feadfb6cd48305bb63b34e1671 | 1,295 | cpp | C++ | test/doc/hyperbolic/direct_hyperbolic.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | test/doc/hyperbolic/direct_hyperbolic.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | null | null | null | test/doc/hyperbolic/direct_hyperbolic.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*
Copyright 2017 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//======================================... | 37 | 100 | 0.437838 | TobiasLudwig |
a00b54e3c6a33ac8552d354bf1427eee6b5b4a29 | 2,360 | hpp | C++ | include/codegen/include/UnityEngine/Timeline/TrackBindingFlags.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Timeline/TrackBindingFlags.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Timeline/TrackBindingFlags.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:25 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 52.444444 | 110 | 0.755932 | Futuremappermydud |
a00ba6eafd2378d62fb5ae29a879528e7a858da8 | 3,240 | cpp | C++ | src/LibAmqp/Transport/Connection/SessionTest.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 6 | 2015-11-05T10:28:59.000Z | 2021-05-06T03:50:12.000Z | src/LibAmqp/Transport/Connection/SessionTest.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 2 | 2015-04-21T09:57:43.000Z | 2015-04-21T10:00:46.000Z | src/LibAmqp/Transport/Connection/SessionTest.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 4 | 2016-09-14T08:01:24.000Z | 2021-06-15T11:24:14.000Z | /*
Copyright 2011-2012 StormMQ Limited
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 ... | 32.4 | 108 | 0.694444 | travelping |
a00de29f4bd7013a23efebd3596798740a91627d | 17,433 | cc | C++ | src/bin/d2/tests/d2_queue_mgr_unittests.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | null | null | null | src/bin/d2/tests/d2_queue_mgr_unittests.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | null | null | null | src/bin/d2/tests/d2_queue_mgr_unittests.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2013-2020 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <asiolink/io_se... | 39.352144 | 80 | 0.674525 | oss-mirror |
a010141e854005177085ab2e045c0469260f908a | 8,585 | cpp | C++ | DeferredLightLab.cpp | catinapoke/directx-engine | b967eff417d170fce947066486b01a1003fa20ce | [
"MIT"
] | null | null | null | DeferredLightLab.cpp | catinapoke/directx-engine | b967eff417d170fce947066486b01a1003fa20ce | [
"MIT"
] | null | null | null | DeferredLightLab.cpp | catinapoke/directx-engine | b967eff417d170fce947066486b01a1003fa20ce | [
"MIT"
] | null | null | null | #include "DeferredLightLab.h"
#include <vector>
#include "AmbientRenderData.h"
#include "DeviceResources.h"
#include "Renderer.h"
#include "MeshLoader.h"
#include "InputDevice/InputDevice.h"
#include "Basic3DMaterial.h"
#include "LineStripMaterial.h"
#include "MeshMaterial.h"
#include "BoxRenderData.h"
#include "Pl... | 44.481865 | 184 | 0.762959 | catinapoke |
a01c79e692e6481798bfa3606b50bd230e97c339 | 5,341 | cpp | C++ | src/TBAinternal.cpp | JadenMcElvey/4112-Cpp-TBA-Scouting-Application | 0db233ce7097165d889deb5a4832513f30fe8e3b | [
"MIT"
] | null | null | null | src/TBAinternal.cpp | JadenMcElvey/4112-Cpp-TBA-Scouting-Application | 0db233ce7097165d889deb5a4832513f30fe8e3b | [
"MIT"
] | 1 | 2017-11-22T21:58:15.000Z | 2017-11-26T03:02:25.000Z | src/TBAinternal.cpp | JadenMcElvey/4112-Cpp-TBA-Scouting-Application | 0db233ce7097165d889deb5a4832513f30fe8e3b | [
"MIT"
] | null | null | null | #include "TBAinternal.hpp"
using namespace std;
string performtostring(curlpp::Easy& request, string& url,const string& AuthKey)
{
//returns TBA response as string to be parsed
try {
string userAgent = "4112-Cpp-Scouting/1.0.1 https://goo.gl/RLJpkt";
list<string> header;
header.push_back("X-TBA-Auth-Ke... | 27.673575 | 149 | 0.646695 | JadenMcElvey |
a020a338f37438d3b4892a1f2c56a70a4ebf1aec | 2,483 | cpp | C++ | 99.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 99.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 99.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Sol... | 29.211765 | 132 | 0.691502 | Alex-Amber |
a029904a6942945cd02c66ddc78b6fc87f615fb3 | 1,698 | cpp | C++ | MFC/13-ShortCut/ShortCutDoc.cpp | NestorJavier/Programacion_avanzada-Visual- | 1ccb8d41988d860689a6f8ef74bdd53da62c5214 | [
"MIT"
] | null | null | null | MFC/13-ShortCut/ShortCutDoc.cpp | NestorJavier/Programacion_avanzada-Visual- | 1ccb8d41988d860689a6f8ef74bdd53da62c5214 | [
"MIT"
] | null | null | null | MFC/13-ShortCut/ShortCutDoc.cpp | NestorJavier/Programacion_avanzada-Visual- | 1ccb8d41988d860689a6f8ef74bdd53da62c5214 | [
"MIT"
] | null | null | null | // ShortCutDoc.cpp : implementation of the CShortCutDoc class
//
#include "stdafx.h"
#include "ShortCut.h"
#include "ShortCutDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CShortC... | 19.976471 | 77 | 0.564193 | NestorJavier |
a031dc3e87ccf3d2f1d0915c3bd6ff35672bcd27 | 1,522 | cpp | C++ | OJ/LeetCode/leetcode/problems/151.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | OJ/LeetCode/leetcode/problems/151.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | 2 | 2021-10-31T10:05:45.000Z | 2022-02-12T15:17:53.000Z | OJ/LeetCode/leetcode/151.cpp | ONGOING-Z/Learn-Algorithm-and-DataStructure | 3a512bd83cc6ed5035ac4550da2f511298b947c0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
#include <set>
#include <stack>
#include <cmath>
using namespace std;
/* Leetcode */
/* Type: */
/* 题目信息 */
/*
*
*/
/* my solution */
// solution-1, 8ms, defeat 50%
class Solution {
publ... | 18.119048 | 49 | 0.468463 | ONGOING-Z |
a0328364e5459b7d25996f1525b4a342fe6a79d3 | 8,589 | cpp | C++ | Babylon.js-2.4.0/Exporters/FBX/BabylonFbxNative/BabylonLight.cpp | Chaseshak/RetroVRCade | 7e999af33941f159f40f8e15f648ae04d66c1f8f | [
"Apache-2.0"
] | 2 | 2016-10-26T17:59:36.000Z | 2021-01-21T13:01:03.000Z | Babylon.js-2.4.0/Exporters/FBX/BabylonFbxNative/BabylonLight.cpp | Chaseshak/RetroVRCade | 7e999af33941f159f40f8e15f648ae04d66c1f8f | [
"Apache-2.0"
] | 1 | 2021-10-16T04:50:11.000Z | 2021-10-16T04:50:11.000Z | Babylon.js-2.4.0/Exporters/FBX/BabylonFbxNative/BabylonLight.cpp | Chaseshak/RetroVRCade | 7e999af33941f159f40f8e15f648ae04d66c1f8f | [
"Apache-2.0"
] | 1 | 2019-04-08T07:49:27.000Z | 2019-04-08T07:49:27.000Z | #include "stdafx.h"
#include "BabylonLight.h"
#include "NodeHelpers.h"
#include "GlobalSettings.h"
web::json::value BabylonLight::toJson() const
{
auto jobj = web::json::value::object();
jobj[L"name"] = web::json::value::string(name);
jobj[L"id"] = web::json::value::string(id);
if (parentId.size() > 0)
... | 33.682353 | 223 | 0.692979 | Chaseshak |
a034d31b9a2e0c580d088612121efd8f098e9e81 | 6,591 | cpp | C++ | test/varianttestbadaccess.cpp | katreniak/cppwamp | b37d3a9e83bca9594d6acd29a3fb7db39bda6cc9 | [
"BSL-1.0"
] | 39 | 2015-04-04T00:29:47.000Z | 2021-06-27T11:25:38.000Z | test/varianttestbadaccess.cpp | katreniak/cppwamp | b37d3a9e83bca9594d6acd29a3fb7db39bda6cc9 | [
"BSL-1.0"
] | 115 | 2015-04-04T01:59:32.000Z | 2020-12-04T09:23:09.000Z | test/varianttestbadaccess.cpp | katreniak/cppwamp | b37d3a9e83bca9594d6acd29a3fb7db39bda6cc9 | [
"BSL-1.0"
] | 8 | 2015-05-04T06:24:55.000Z | 2020-11-11T12:38:46.000Z | /*------------------------------------------------------------------------------
Copyright Butterfly Energy Systems 2014-2015.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LI... | 31.535885 | 80 | 0.56122 | katreniak |
a037d95852faf116e296237462bdcef5e7c630a6 | 1,186 | cpp | C++ | leetcode/valid_palindrome/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | leetcode/valid_palindrome/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | leetcode/valid_palindrome/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdint>
#include <climits>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
bool isPalindrome(string s) {
int front = 0;
int end = s.size() - 1;
while(front < end)
{
if(isalnum(... | 22.377358 | 58 | 0.368465 | yylzl |
a03943bcc50e2b432a0c8bb65acc13fc0477d505 | 1,812 | hpp | C++ | tests/database_test.hpp | Wassasin/librusql | 207919e5da1e9e49d4c575c81699fcb1d8cd6204 | [
"BSD-3-Clause"
] | 2 | 2018-01-16T18:05:21.000Z | 2021-02-02T05:04:51.000Z | tests/database_test.hpp | Wassasin/librusql | 207919e5da1e9e49d4c575c81699fcb1d8cd6204 | [
"BSD-3-Clause"
] | null | null | null | tests/database_test.hpp | Wassasin/librusql | 207919e5da1e9e49d4c575c81699fcb1d8cd6204 | [
"BSD-3-Clause"
] | null | null | null | #include <memory>
#include <ctime>
#include <cstring>
#include <cstdlib>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <rusql/database.hpp>
static bool is_embedded;
static std::string embedded_dir;
std::string get_tempdir() {
time_t last_time = time(NULL);
int seq = 1;
int attempts = ... | 26.647059 | 113 | 0.651214 | Wassasin |
a0452e2ef13518f20a65850359d6f0038a3114e5 | 8,275 | cc | C++ | bundles/async_remote_services/examples/HardcodedExampleSerializer.cc | tira-misu/celix | 3df528d41c6a49a377514e1360f1bcb7b39cebd3 | [
"Apache-2.0"
] | null | null | null | bundles/async_remote_services/examples/HardcodedExampleSerializer.cc | tira-misu/celix | 3df528d41c6a49a377514e1360f1bcb7b39cebd3 | [
"Apache-2.0"
] | null | null | null | bundles/async_remote_services/examples/HardcodedExampleSerializer.cc | tira-misu/celix | 3df528d41c6a49a377514e1360f1bcb7b39cebd3 | [
"Apache-2.0"
] | null | null | null | //
// Created by oipo on 01-03-21.
//
#include "HardcodedExampleSerializer.h"
#include <rapidjson/document.h>
#include <rapidjson/writer.h>
AddArgsSerializer::AddArgsSerializer(std::shared_ptr<celix::dm::DependencyManager> mng) : _mng(std::move(mng)) {
_svc.deserialize = [](void*, const struct iovec* input, size_... | 34.623431 | 122 | 0.637704 | tira-misu |
a049ef23ebe90a8af63492528c91b902d2b3e54e | 2,045 | cpp | C++ | src/+cv/decomposeProjectionMatrix.cpp | schloegl/mexopencv | b7a34df8f844ceb5bebb93f439eb35135e9c074d | [
"BSD-3-Clause"
] | 87 | 2016-10-28T18:36:43.000Z | 2022-02-03T08:34:45.000Z | src/+cv/decomposeProjectionMatrix.cpp | schloegl/mexopencv | b7a34df8f844ceb5bebb93f439eb35135e9c074d | [
"BSD-3-Clause"
] | 17 | 2016-11-06T10:36:35.000Z | 2021-07-15T11:37:14.000Z | src/+cv/decomposeProjectionMatrix.cpp | schloegl/mexopencv | b7a34df8f844ceb5bebb93f439eb35135e9c074d | [
"BSD-3-Clause"
] | 23 | 2016-10-30T11:48:55.000Z | 2021-03-22T10:33:27.000Z | /**
* @file decomposeProjectionMatrix.cpp
* @brief mex interface for decomposeProjectionMatrix
* @author Kota Yamaguchi
* @date 2011
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/// Field names for struct
const char* _fieldnames[] = {"cameraMatrix", "rotMatrix", "transVect",
"rotMatrX"... | 36.517857 | 90 | 0.7022 | schloegl |
a04f3cf6f4fa8b486398881924657e548195315c | 20,917 | cpp | C++ | tests/Core6502Tests_ROR.cpp | evanstoddard/Proc6502 | 3988fd749fc2088ba62536c88dce356cb8fc056c | [
"MIT"
] | null | null | null | tests/Core6502Tests_ROR.cpp | evanstoddard/Proc6502 | 3988fd749fc2088ba62536c88dce356cb8fc056c | [
"MIT"
] | null | null | null | tests/Core6502Tests_ROR.cpp | evanstoddard/Proc6502 | 3988fd749fc2088ba62536c88dce356cb8fc056c | [
"MIT"
] | 1 | 2021-06-07T13:33:17.000Z | 2021-06-07T13:33:17.000Z | #include <gtest/gtest.h>
#include "Core6502.hpp"
class Core6502Tests_ROR : public testing::Test
{
public:
uint8_t mem[0xFFFF];
Core6502::CPU *cpu;
virtual void SetUp()
{
// Create CPU
cpu = new Core6502::CPU(mem);
cpu->reset();
}
virtual void TearDown()
{
delete cpu;
}
};
... | 30.096403 | 84 | 0.699575 | evanstoddard |
a0518904eed54f3ad9219a4f921003efe55b59b1 | 22,127 | cpp | C++ | src/energyplus/Test/FanSystemModel_GTest.cpp | macumber/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | src/energyplus/Test/FanSystemModel_GTest.cpp | macumber/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | src/energyplus/Test/FanSystemModel_GTest.cpp | macumber/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 46.978769 | 130 | 0.736521 | macumber |
a05a94cdf0684eb5bff3d648974c65144be1dc47 | 1,514 | cpp | C++ | ExtractFasta/ParseBed.cpp | ResearchDx/ExtractFasta | 6ae1fb3884402b05d162f7cff9eb67e3422f80dd | [
"MIT"
] | null | null | null | ExtractFasta/ParseBed.cpp | ResearchDx/ExtractFasta | 6ae1fb3884402b05d162f7cff9eb67e3422f80dd | [
"MIT"
] | null | null | null | ExtractFasta/ParseBed.cpp | ResearchDx/ExtractFasta | 6ae1fb3884402b05d162f7cff9eb67e3422f80dd | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ParseBed.h"
ParseBed::ParseBed()
{
}
ParseBed::ParseBed(std::string r)
{
this->set_bed_file(r);
}
void ParseBed::set_bed_file(std::string fn)
{
this->fn = fn;
this->fs = new std::fstream;
(*this->fs).open(this->fn, std::ios::in);
}
BedEntry* ParseBed::ReadBed()
{
std::string *li... | 14.990099 | 73 | 0.582563 | ResearchDx |
a05e83d0478f3c76771dd70007902d7d855faa55 | 6,828 | hpp | C++ | source/zisc/core/zisc/data_structure/mutex_bst-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 2 | 2017-10-18T13:24:11.000Z | 2018-05-15T00:40:52.000Z | source/zisc/core/zisc/data_structure/mutex_bst-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 9 | 2016-09-05T11:07:03.000Z | 2019-07-05T15:31:04.000Z | source/zisc/core/zisc/data_structure/mutex_bst-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | null | null | null | /*!
\file mutex_bst-inl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_MUTEX_BST_INL_HPP
#define ZISC_M... | 22.313725 | 79 | 0.665202 | byzin |
a060f5da31544acef777a0201caaf2c4c33c4c94 | 2,298 | hpp | C++ | ajg/synth/engines/ssi/options.hpp | legutierr/synth | 7540072bde2ea9c8258c2dca69d2ed3bd62fb991 | [
"BSL-1.0"
] | 1 | 2016-04-10T14:13:34.000Z | 2016-04-10T14:13:34.000Z | ajg/synth/engines/ssi/options.hpp | legutierr/synth | 7540072bde2ea9c8258c2dca69d2ed3bd62fb991 | [
"BSL-1.0"
] | null | null | null | ajg/synth/engines/ssi/options.hpp | legutierr/synth | 7540072bde2ea9c8258c2dca69d2ed3bd62fb991 | [
"BSL-1.0"
] | null | null | null | // (C) Copyright 2014 Alvaro J. Genial (http://alva.ro)
// Use, modification and distribution are subject to 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 AJG_SYNTH_ENGINES_SSI_OPTIONS_HPP_INCLUDED
#define AJG_SYNTH_ENGIN... | 36.47619 | 116 | 0.611401 | legutierr |
a06109e2840efbe6f51996b6d687265e6cf87d32 | 2,216 | cpp | C++ | vsmanager.cpp | jgressmann/vsprojectmanager | a9a981babaf59afd17bf61c9e6f305af9eb99349 | [
"MIT"
] | 1 | 2016-05-30T14:30:31.000Z | 2016-05-30T14:30:31.000Z | vsmanager.cpp | jgressmann/vsprojectmanager | a9a981babaf59afd17bf61c9e6f305af9eb99349 | [
"MIT"
] | null | null | null | vsmanager.cpp | jgressmann/vsprojectmanager | a9a981babaf59afd17bf61c9e6f305af9eb99349 | [
"MIT"
] | null | null | null | /**************************************************************************
**
** The MIT License (MIT)
**
** Copyright (c) 2016 Jean Gressmann
**
** 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 So... | 32.588235 | 85 | 0.677798 | jgressmann |
a067973a48cc60fa6c11e8cf8e8cacf1db687882 | 3,734 | cpp | C++ | Source/UMod/Entities/Weapons/WeaponPhysgun.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 21 | 2015-09-03T13:17:55.000Z | 2022-03-28T15:55:42.000Z | Source/UMod/Entities/Weapons/WeaponPhysgun.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 24 | 2015-09-19T18:03:30.000Z | 2018-12-21T10:53:01.000Z | Source/UMod/Entities/Weapons/WeaponPhysgun.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 17 | 2015-09-03T13:18:04.000Z | 2021-11-24T02:14:11.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "UMod.h"
#include "WeaponPhysgun.h"
#include "Player/UModCharacter.h"
#include "Entities/EntityBase.h"
#include "Renderer/LaserBeamRenderer.h"
bool ActorHasMesh(AActor *act)
{
TArray<UStaticMeshComponent*> comps;
act->GetCompon... | 24.090323 | 123 | 0.71639 | StoneLineDevTeam |
a067fddd83d5c8a7acf8d7dc0f34dbf515ce7902 | 3,137 | cpp | C++ | BattleTank/Source/BattleTank/Private/TankAimingComponent.cpp | muazr/BattleTank | 3bcf352945d35fcbeced6e07bce36c2ebf1c4df8 | [
"MIT"
] | 1 | 2019-06-22T16:45:57.000Z | 2019-06-22T16:45:57.000Z | BattleTank/Source/BattleTank/Private/TankAimingComponent.cpp | muazr/BattleTank | 3bcf352945d35fcbeced6e07bce36c2ebf1c4df8 | [
"MIT"
] | null | null | null | BattleTank/Source/BattleTank/Private/TankAimingComponent.cpp | muazr/BattleTank | 3bcf352945d35fcbeced6e07bce36c2ebf1c4df8 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankAimingComponent.h"
#include "TankBarrel.h"
#include "TankTurret.h"
#include "Projectile.h"
#include "GameFramework/Actor.h"
#include "Kismet/GameplayStatics.h"
#include "Components/StaticMeshComponent.h"
// Sets default valu... | 23.765152 | 126 | 0.759324 | muazr |
a06e33443a33bebd3472fb2ce64af686ba1adc58 | 3,992 | cpp | C++ | tc 160+/GeometricProgressions.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/GeometricProgressions.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/GeometricProgressions.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
using namespace std;
map<int, int> f(int x) {
map<int, int> ret;
if (x == 0) {
retur... | 31.936 | 309 | 0.448146 | ibudiselic |
a06f8ce3e99468229af46d11ed094689d8834177 | 4,626 | hpp | C++ | Libs/MaterialSystem/MaterialManager.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/MaterialSystem/MaterialManager.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/MaterialSystem/MaterialManager.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
/**********************************/
/*** Material Manager Interface ***/
/**********************************/
#ifndef CAFU_MATSYS_MATERIAL_MANAGER_INTERFACE_HPP_INCL... | 52.568182 | 143 | 0.701902 | dns |
a06ffad2ac02037cddce1c1299574965e298fbaa | 2,696 | cpp | C++ | Code/Solution/Game/Source/GuiButton.cpp | adrianam4/Easings-and-Splines-for-UI-Animations | f0a0b66ed8ca094536d44bfeec80ae03d2d8c0c4 | [
"MIT"
] | null | null | null | Code/Solution/Game/Source/GuiButton.cpp | adrianam4/Easings-and-Splines-for-UI-Animations | f0a0b66ed8ca094536d44bfeec80ae03d2d8c0c4 | [
"MIT"
] | null | null | null | Code/Solution/Game/Source/GuiButton.cpp | adrianam4/Easings-and-Splines-for-UI-Animations | f0a0b66ed8ca094536d44bfeec80ae03d2d8c0c4 | [
"MIT"
] | null | null | null | #include "GuiButton.h"
#include "App.h"
#include "Audio.h"
GuiButton::GuiButton(uint32 id, SDL_Rect bounds, const char* text, Menu* listener) : GuiControl(GuiControlType::BUTTON, id)
{
this->bounds = bounds;
this->text = text;
this->state = GuiControlState::NORMAL;
this->observer = listener;
//Load Fx
clickFx =... | 25.67619 | 142 | 0.687685 | adrianam4 |
a071a15f0f85d7b85279a71084a2e5e621a562b5 | 5,222 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/av/Wmp11ClientSite.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 2 | 2020-05-18T17:00:43.000Z | 2021-12-01T10:00:29.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/av/Wmp11ClientSite.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 5 | 2020-05-05T08:05:01.000Z | 2021-12-11T21:35:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/av/Wmp11ClientSite.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 4 | 2020-05-04T06:43:25.000Z | 2022-02-20T12:02:50.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "precomp.hpp"
// #include "Wmp11ClientSite.tmh"
MtDefine(Wmp11ClientSite, Mem, "Wmp11ClientSite");
//+--... | 24.288372 | 80 | 0.5 | nsivov |
a0762f7bcae283018737d6a08b4223d62f2bfc19 | 6,326 | cc | C++ | wrspice/devlib/b3soi-3.0/b3sconv.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/b3soi-3.0/b3sconv.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/b3soi-3.0/b3sconv.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 45.185714 | 82 | 0.45068 | wrcad |
a0773aedd1f1534924d4cd68f34a828be7d5350f | 882 | hpp | C++ | include/game/entity.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | include/game/entity.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | include/game/entity.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "transform.hpp"
#include "types.hpp"
namespace gold {
struct entity : public object {
protected:
friend struct engine;
friend struct camera;
static object& getPrototype();
public:
entity();
entity(object config);
transform getTransform();
var initialize(list args = {});
/... | 23.210526 | 46 | 0.673469 | CoryNull |
a0787488174750075f3b93c4b6093ea81e1e930f | 14,950 | cpp | C++ | src/search.cpp | pirsquared314/SpareDuck | 826dd62b0819b9d5f2519de1ded284a8ecc8abd5 | [
"MIT"
] | 2 | 2021-07-20T02:52:48.000Z | 2021-08-04T01:20:58.000Z | src/search.cpp | pirsquared314/spareduck | 826dd62b0819b9d5f2519de1ded284a8ecc8abd5 | [
"MIT"
] | null | null | null | src/search.cpp | pirsquared314/spareduck | 826dd62b0819b9d5f2519de1ded284a8ecc8abd5 | [
"MIT"
] | null | null | null | #include "search.hpp"
#include <assert.h>
#include <cstddef>
#include <iostream>
/*
A simple implementation of fail-soft negamax alpha-beta search.
Features: qsearch, futility, delta, tt
More info:
- http://en.wikipedia.org/wiki/Alpha-beta_pruning
- http://chessprogramming.wikispaces.com/Alpha-Be... | 36.198547 | 165 | 0.541739 | pirsquared314 |
a07dde62475b2ed60c545cd5f62c117a2bd2228b | 1,336 | cpp | C++ | kakao_code_festival_2017/round1/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | kakao_code_festival_2017/round1/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | kakao_code_festival_2017/round1/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | /*
KAKAO CODE FESTIVAL 2017 ROUND1 - A
URL : http://tech.kakao.com/2017/08/11/code-festival-round-1/
*/
#include <iostream>
#include <algorithm>
using namespace std;
int picture[100][100];
int checked[100][100];
int m, n;
int max_size = 0;
int max_color = 0;
int cnt = 0;
int search(int x, int y) {
int value = pi... | 19.362319 | 78 | 0.502994 | sjnov11 |
a0852dcc49a4207707eb96f47962640e0416b405 | 3,277 | cpp | C++ | test/test_classifyInputString.cpp | spameier/btcr-DID-method | 3ae3d681fb35558f935a2855a52244acab46b582 | [
"BSD-3-Clause"
] | null | null | null | test/test_classifyInputString.cpp | spameier/btcr-DID-method | 3ae3d681fb35558f935a2855a52244acab46b582 | [
"BSD-3-Clause"
] | null | null | null | test/test_classifyInputString.cpp | spameier/btcr-DID-method | 3ae3d681fb35558f935a2855a52244acab46b582 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "classifyInputString.h"
#include "classifyInputString.cpp"
TEST(ClassifyInputStringTest, test_empty) {
EXPECT_EQ(classifyInputString(""), unknown_param);
}
TEST(ClassifyInputStringTest, test_random) {
EXPECT_EQ(classifyInputString("oihjediouhwisdubch"), unknown_param);
}
T... | 46.814286 | 119 | 0.810192 | spameier |
a08a8e2dcc47092bb9a10a7c2fca7a734ade9580 | 9,100 | cpp | C++ | Source/Framework/Utility/Utility/TeFrameAllocator.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 57 | 2019-09-02T01:10:37.000Z | 2022-01-11T06:28:10.000Z | Source/Framework/Utility/Utility/TeFrameAllocator.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Framework/Utility/Utility/TeFrameAllocator.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 6 | 2020-02-29T17:19:30.000Z | 2021-10-30T04:29:22.000Z | #include "Prerequisites/TePrerequisitesUtility.h"
#include "Utility/TeFrameAllocator.h"
namespace te
{
UINT8* FrameAllocator::MemBlock::Allocate(UINT32 amount)
{
UINT8* freePtr = &_data[_freePtr];
_freePtr += amount;
return freePtr;
}
void FrameAllocator::MemBlock::Clear()
... | 28.08642 | 126 | 0.53978 | GameDevery |
a08e676ff715ffb2ebc9835308ce3fc138ee02e5 | 1,247 | cpp | C++ | examples/core/vsgmemory/vsgmemory.cpp | VulkanWorks/vsgExamples | 32ae782bc181f2949037b89f06fac36a17098ea8 | [
"MIT"
] | 1 | 2020-02-13T07:21:54.000Z | 2020-02-13T07:21:54.000Z | examples/core/vsgmemory/vsgmemory.cpp | VulkanWorks/vsgExamples | 32ae782bc181f2949037b89f06fac36a17098ea8 | [
"MIT"
] | null | null | null | examples/core/vsgmemory/vsgmemory.cpp | VulkanWorks/vsgExamples | 32ae782bc181f2949037b89f06fac36a17098ea8 | [
"MIT"
] | null | null | null | #include <vsg/core/Auxiliary.h>
#include <vsg/core/Object.h>
#include <vsg/core/observer_ptr.h>
#include <vsg/core/ref_ptr.h>
#include <vsg/nodes/Group.h>
#include <vsg/nodes/LOD.h>
#include <vsg/nodes/QuadGroup.h>
#include <vsg/utils/CommandLine.h>
#include <vsg/io/Options.h>
#include <chrono>
#include <iostream>
#i... | 27.108696 | 162 | 0.675221 | VulkanWorks |
a093d999ace9377c94cc84ef345afb136c168c51 | 11,503 | hpp | C++ | GSGL/src/scenegraph/node.hpp | kulibali/periapsis | 8a8588caff526d3b17604c96338145329be160b8 | [
"MIT"
] | null | null | null | GSGL/src/scenegraph/node.hpp | kulibali/periapsis | 8a8588caff526d3b17604c96338145329be160b8 | [
"MIT"
] | null | null | null | GSGL/src/scenegraph/node.hpp | kulibali/periapsis | 8a8588caff526d3b17604c96338145329be160b8 | [
"MIT"
] | null | null | null | #ifndef GSGL_SG_NODE_H
#define GSGL_SG_NODE_H
//
// $Id$
//
// Copyright (c) 2008, The Periapsis Project. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistribut... | 46.57085 | 186 | 0.626011 | kulibali |
90b6464cb060ed6ec403ddddb4760cb0c343bf66 | 484 | cpp | C++ | OB/Core/VSCOBProximity.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | OB/Core/VSCOBProximity.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | OB/Core/VSCOBProximity.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null |
#include "VSCOBProximity.h"
#include "VSCOB.h"
#include "VSCException.h"
#include "VSCOBElement.h"
#include "VSCOBScene.h"
std::ostream& VSC::OB::operator << (std::ostream& stream, const Proximity& collision)
{
stream << "Proximity between element: " << *collision.getFirstElement() << " and element: " << *colli... | 28.470588 | 129 | 0.667355 | jbat100 |
90b9699ca25840b9cd2e2ca3adddc100930ba5d2 | 1,534 | cpp | C++ | src/objects/TriangleNetObject.cpp | citron0xa9/CookieQuestCpp | 0e9050c6f5fef390b35bdb030f940619e88f9ff8 | [
"MIT"
] | null | null | null | src/objects/TriangleNetObject.cpp | citron0xa9/CookieQuestCpp | 0e9050c6f5fef390b35bdb030f940619e88f9ff8 | [
"MIT"
] | null | null | null | src/objects/TriangleNetObject.cpp | citron0xa9/CookieQuestCpp | 0e9050c6f5fef390b35bdb030f940619e88f9ff8 | [
"MIT"
] | null | null | null | #include "TriangleNetObject.h"
TriangleNetObject::TriangleNetObject(Material *materialPtr, Geometry *geometryPtr, Program *renderProgPtr)
: m_MaterialPtr{ materialPtr }, m_GeometryPtr{ geometryPtr }, m_ProgramPtr{renderProgPtr}
{
}
TriangleNetObject::~TriangleNetObject()
{
}
Object * TriangleNetObject::copy() const... | 24.741935 | 106 | 0.778357 | citron0xa9 |
90b9c771c7a9c89ca19c15b19a42370ac5b6e725 | 571 | cpp | C++ | src/platforms/rainier/ingraham.cpp | spinler/platform-fru-detect | bb1785e88d980a75467b3afd89abf1790ea1f325 | [
"Apache-2.0"
] | null | null | null | src/platforms/rainier/ingraham.cpp | spinler/platform-fru-detect | bb1785e88d980a75467b3afd89abf1790ea1f325 | [
"Apache-2.0"
] | null | null | null | src/platforms/rainier/ingraham.cpp | spinler/platform-fru-detect | bb1785e88d980a75467b3afd89abf1790ea1f325 | [
"Apache-2.0"
] | null | null | null | /* SPDX-License-Identifier: Apache-2.0 */
#include "platforms/rainier.hpp"
#include "sysfs/i2c.hpp"
#include <filesystem>
namespace fs = std::filesystem;
Ingraham::Ingraham(Inventory* inventory, Nisqually* nisqually) :
inventory(inventory), nisqually(nisqually)
{}
SysfsI2CBus Ingraham::getPCIeSlotI2CBus(int slo... | 21.148148 | 71 | 0.735552 | spinler |
90bc7bf284cfacaac7ae3945b9fa65cedb27f1ec | 279 | hpp | C++ | src/samples.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/samples.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/samples.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #ifndef INCLUDED_SAMPLES
#define INCLUDED_SAMPLES
#include <fauxmix/api.hpp>
typedef unsigned int id;
namespace sample
{
extern id ost;
extern id shot;
extern id footstep1;
extern id footstep2;
extern id footstep3;
extern id emitter_ost;
}
#endif
| 14.684211 | 26 | 0.706093 | wareya |
90c3afdb1e2fc3926494b7377cc7765255320e89 | 2,514 | cpp | C++ | Code/Libs/System/AppPath.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | Code/Libs/System/AppPath.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | 8 | 2016-11-17T00:39:03.000Z | 2016-11-29T14:46:27.000Z | Code/Libs/System/AppPath.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | #include "AppPath.hpp"
#include <errno.h>
// Mac OS X
#if defined(__APPLE__)
# include <mach-o/dyld.h>
char *Ax::System::GetAppPath(char *buff, size_t n) {
uint32_t size;
size = n;
if (_NSGetExecutablePath(buff, &size)!=0) {
errno = ERANGE;
return (char *)0;
}
return buff;
}
// Linux
#elif defined(linux)|... | 18.902256 | 86 | 0.634447 | NotKyon |
90c3b4bd03c16d72a8ab0e1abe3fcd7770e2abc7 | 1,147 | hpp | C++ | impl/jamtemplate/common/tilemap/tileson_loader.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap/tileson_loader.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap/tileson_loader.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | #ifndef GUARD_JAMTEMPLATE_TILESON_LOADER_HPP
#define GUARD_JAMTEMPLATE_TILESON_LOADER_HPP
#include "info_rect.hpp"
#include "shape.hpp"
#include "sprite.hpp"
#include "texture_manager_interface.hpp"
#include "tile_info.hpp"
#include "tile_node.hpp"
#include "tilemap_collisions.hpp"
#include "tilemap_manager_tileson_im... | 27.97561 | 99 | 0.773322 | runvs |
90c6dfeeaec5a3f8536b3f86bd9985d0c201d0ca | 1,648 | hpp | C++ | include/hal/DisplayDevice.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/hal/DisplayDevice.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/hal/DisplayDevice.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_HAL_DISPLAYDEVICE_HPP_
#define SAPI_HAL_DISPLAYDEVICE_HPP_
#include "Device.hpp"
#include "Display.hpp"
namespace hal {
/*! \brief Display Device
* \details This class is a display device. It inherits... | 22.27027 | 100 | 0.714199 | bander9289 |
90c886532c516b438e1a0b5e3299f81bf27c759a | 851 | hpp | C++ | include/x/connection_manager.hpp | System233/asio-kcp | e3efec19480009c8a67e6f256cff88d4d0b4df4a | [
"MIT"
] | null | null | null | include/x/connection_manager.hpp | System233/asio-kcp | e3efec19480009c8a67e6f256cff88d4d0b4df4a | [
"MIT"
] | null | null | null | include/x/connection_manager.hpp | System233/asio-kcp | e3efec19480009c8a67e6f256cff88d4d0b4df4a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 github.com/System233
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#ifndef ASIO_KCP_CONNECTION_H
#define ASIO_KCP_CONNECTION_H
#include <unordered_map>
#include <boost/asio.hpp>
namespace asiokcp{
using boost::asio::ip::udp;
class channel;
... | 30.392857 | 102 | 0.722679 | System233 |
90cd8ed3484a42eb0b61f8785a60ea995f019c3f | 5,304 | cpp | C++ | tc 160+/PyramidPuzzle.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/PyramidPuzzle.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/PyramidPuzzle.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class Perm {
public:
Perm(int n): repr(n, 0) {
for (int i=0; i<n; ++i) {
repr[i] = i;
}
}
int size() const {
... | 23.891892 | 317 | 0.505656 | ibudiselic |
90cdcba8bcf6a2d16bc93037bf7c3a24dac6ca53 | 680 | hpp | C++ | example/src/Graphics/Texture2D.hpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | example/src/Graphics/Texture2D.hpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | example/src/Graphics/Texture2D.hpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | #pragma once
#include "Texture.hpp"
namespace Engine {
namespace Graphics {
/*!
* @ingroup Graphics
*/
class Texture2D: public Texture {
public:
/*!
* @param data The pointer to the raw pixels data
* @param width The width of the image held by the data pointer
* @param height... | 25.185185 | 95 | 0.644118 | siddhartha-crypto |
90ce97d8a0c0eaead94f2970a0dc27634ff512ff | 1,733 | cpp | C++ | Cpp/Week 8/[Inheritance]Virtual class .cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | Cpp/Week 8/[Inheritance]Virtual class .cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | Cpp/Week 8/[Inheritance]Virtual class .cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include <fstream>
using namespace std;
class base
{
public:
base() { name = " "; age = 0;}
void setname(const string str) { name = str; }
void setage(const int a) { age = a; }
string getname() const { return name; }
int getage... | 21.936709 | 80 | 0.560877 | lixk28 |
90d35ec9119053da28009f3a8234b5ec3e290fc7 | 746 | cpp | C++ | main.cpp | zeithrold/dut-elab-test-core | 503d231cefa3b1b6ad50bc5b8a07601a5433a284 | [
"BSD-3-Clause"
] | 1 | 2021-10-10T10:52:26.000Z | 2021-10-10T10:52:26.000Z | main.cpp | zeithrold/dut-elab-test-core | 503d231cefa3b1b6ad50bc5b8a07601a5433a284 | [
"BSD-3-Clause"
] | 1 | 2021-10-10T11:15:00.000Z | 2021-10-10T11:40:59.000Z | main.cpp | zeithrold/dut-elab-test-core | 503d231cefa3b1b6ad50bc5b8a07601a5433a284 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include "io.h"
#include "database.h"
#define PRINT_STAR std::cout << "******************************************" << std::endl
using namespace std;
int main() {
std::cout << "Hello, World!" << std::endl;
dutelab::open_database();
bool is_interrupt = false;
dutelab::start();
... | 20.722222 | 89 | 0.502681 | zeithrold |
90d3ddd55d08cc3ac300be2b70841e7747cd1cd8 | 2,533 | hh | C++ | gazebo/gui/LightMaker.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/gui/LightMaker.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/gui/LightMaker.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* 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... | 29.114943 | 80 | 0.686932 | otamachan |
90d48658e9f61af1a9f7168af90c040501d96d01 | 808 | cpp | C++ | Tests/main.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Tests/main.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Tests/main.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | #include <iostream>
#include "MLProc.h"
#include "MLDSP.h"
void testSymbols()
{
MLSymbol a("test#15");
MLSymbol b("test#*");
MLSymbol c("test2#17");
/*
debug << a.getString() << "\n";
debug << b.getString() << "\n";
MLPath p("voices/voice#2/osc/eskimo/level");
debug << p << "\n";
debug << q << "\n";
*/... | 14.962963 | 64 | 0.52104 | afofo |
90d74f65e2ce17d3f4b58472467039a1ba2ce369 | 2,573 | cpp | C++ | Sources/blocks/HistoBlock.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 2 | 2015-01-12T11:27:45.000Z | 2015-03-25T18:24:38.000Z | Sources/blocks/HistoBlock.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 30 | 2015-01-07T11:59:07.000Z | 2015-04-24T13:02:01.000Z | Sources/blocks/HistoBlock.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 1 | 2018-12-20T12:18:18.000Z | 2018-12-20T12:18:18.000Z |
#include <vector>
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable:4996 4251 4275 4800)
#endif
#include <opencv2/imgproc.hpp>
#ifdef _WIN32
#pragma warning(pop)
#endif
#include "Block.h"
#include "ParamValidator.h"
using namespace charliesoft;
using std::vector;
using std::string;
using cv::Mat;
namesp... | 28.910112 | 117 | 0.725223 | Petititi |
90df2e7fac8792a4b861eb03eb0b10d82984dcb1 | 315 | hpp | C++ | experimental/Pomdog.Experimental/Skeletal2D/SkinnedMeshPart.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/SkinnedMeshPart.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/SkinnedMeshPart.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include <cstdint>
namespace Pomdog {
class SkinnedMeshPart {
public:
std::uint16_t VertexCount;
std::uint16_t VertexOffset;
std::uint16_t PrimitiveCount;
std::uint16_t StartIndex;
};
} // namespace Pomdog
| 15 | 71 | 0.71746 | ValtoForks |
90e005611e5f83e0da0aa1c474cc78159134acd5 | 8,432 | cpp | C++ | NWNXLib/API/Mac/API/CExoMemman.cpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/CExoMemman.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CExoMemman.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #include "CExoMemman.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
#include "CExoMemHeap.hpp"
namespace NWNXLib {
namespace API {
CExoMemman::~CExoMemman()
{
CExoMemman__CExoMemmanDtor(this);
}
void CExoMemman::AddFreeRecord(uint32_t a0)
{
return CExoMemman__AddFreeRecord(this, a0);
}
voi... | 30.773723 | 109 | 0.761148 | acaos |
90e222291ba94439361998e17ee2234811b0d526 | 3,653 | cpp | C++ | sfmltests/bouncer.cpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | sfmltests/bouncer.cpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | sfmltests/bouncer.cpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <cstdlib>
#include <iostream>
namespace movement
{
class Bouncer
{
public:
Bouncer(const float POINT_A, const float POINT_B, const float SPEED)
: m_pointA(POINT_A)
, m_pointB(POINT_B)
, m_speed(SPEED)
, m_pos(POINT_A)
... | 24.682432 | 97 | 0.62305 | Biyorne |
90e23bf9cc00316df6ab59dce02ffa83bcbf33dd | 1,385 | cpp | C++ | ScreenQuad.cpp | brucelevis/TerrainEngine-OpenGL | 012dc1bd80c0e50fc68e85df77fa69928ee4b225 | [
"MIT"
] | null | null | null | ScreenQuad.cpp | brucelevis/TerrainEngine-OpenGL | 012dc1bd80c0e50fc68e85df77fa69928ee4b225 | [
"MIT"
] | null | null | null | ScreenQuad.cpp | brucelevis/TerrainEngine-OpenGL | 012dc1bd80c0e50fc68e85df77fa69928ee4b225 | [
"MIT"
] | 1 | 2020-05-19T03:56:44.000Z | 2020-05-19T03:56:44.000Z | #include "ScreenQuad.h"
unsigned int ScreenQuad::quadVAO = 0;
unsigned int ScreenQuad::quadVBO = 0;
bool ScreenQuad::initialized = false;
ScreenQuad::ScreenQuad(const char * fragmentPath)
{
initializeQuad();
//shad = new Shader("shaders/screen.vert", fragmentPath);
shad = new Shader("ScreenQuad_" + getShaderName(f... | 25.181818 | 97 | 0.690975 | brucelevis |
90e29653ede2f4d911e638710e2ef6ad79fe81c5 | 4,112 | hpp | C++ | rcff/include/CXKJ/RCF/Version.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null | rcff/include/CXKJ/RCF/Version.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null | rcff/include/CXKJ/RCF/Version.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null |
//******************************************************************************
// RCF - Remote Call Framework
//
// Copyright (c) 2005 - 2019, Delta V Software. All rights reserved.
// http://www.deltavsoft.com
//
// RCF is distributed under dual licenses - closed source or GPL.
// Consult your particular license fo... | 37.724771 | 203 | 0.646887 | DayBreakZhang |
90e2bd6f02327df0132e62f35aa48ab9468c5fc7 | 9,060 | cpp | C++ | Ui/utils/sngtypes.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | Ui/utils/sngtypes.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | Ui/utils/sngtypes.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | /* ########################################################################
Node Type classes
########################################################################
*/
#include <Muse.h>
#include "SngList.h"
#include "SngTypes.h"
#include <ctype.h>
#include <iomanip.h>
int DisksType::ID = 5;
... | 28.401254 | 108 | 0.444702 | jgunthorpe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.