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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b9027e84e808aa0513dd18b0f066437ed41c0c9 | 4,364 | cpp | C++ | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | 27.275 | 87 | 0.702796 | justinc1 |
3b97ac6c3bf82e29620f29be6892e404d66a2a79 | 656 | cpp | C++ | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
void sortare(int n, int a[], int b[]){
for(int i=0; i<n; i++)
for(int j=i; j<=n; j++){
if(b[i]>b[j]){
swap(a[i], a[j]);
swap(b[i], b[j]);
}
else if(b[i]==b[j] && a[i]>a[j]) swap(a[i], a[j]);
... | 16 | 62 | 0.356707 | Al3x76 |
3b998dcf30bdf1043fcee76236d2c2bc85631cb9 | 693 | cc | C++ | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | // Copyright Robert Dickerson 2014
# <memory>
# <utility>
# <vector>
# "include/common.h"
# "include/ui.h"
# "include/uiwidget.h"
namespace Hodhr {
UI::UI() {}
UI::UI(unsigned int width, unsigned int height) {
this->width_ = width;
this->height_ = height;
}
UI::~UI() {
}
void UI::addWidge... | 18.72973 | 68 | 0.591631 | rfdickerson |
3b9fef178cd33e0eccc8c75a1dfc803a0dd6efd4 | 1,974 | cpp | C++ | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
class FibonacciDiv2 {
public:
int find(int N)
{
const int M = 10000;
lli f[M];
f[0] = 0;
... | 35.25 | 308 | 0.56231 | Johniel |
3ba2c813ebaf581f07e6f8c104775d26d78dce86 | 536 | cpp | C++ | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2021-04-03T11:17:33.000Z | 2021-04-03T11:17:33.000Z | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | null | null | null | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2020-07-24T15:27:46.000Z | 2020-07-24T15:27:46.000Z | #include <iostream>
#include <cstdio>
#include <vector>
using std::cin;
using std::cout;
using std::string;
int main()
{
int T, N, p, i;
string tmp;
scanf("%d", &T);
while(T--)
{
std::vector<int> v;
p = 0;
scanf("%d", &N);
cin.ignore();
while(N--)
{
cin >> tmp;
if(tmp == "LEFT")
{
--p... | 11.404255 | 26 | 0.462687 | danielcunhaa |
3bac9edd3e207204994f707fa60dac9cc7eec706 | 3,757 | cpp | C++ | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | // MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "Behavior.h"
#include "MainFrm.h"
#include "BehaviorView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define PanelWidth 255
////////////////////////////////////////////////... | 23.778481 | 118 | 0.656375 | Zenologos |
3bacf72cec810dac1550092f9731888c45627ba4 | 1,322 | cpp | C++ | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieeb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | 1 | 2020-01-30T20:08:24.000Z | 2020-01-30T20:08:24.000Z | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using namespace __gnu_cxx;
typedef double db;
typedef long long ll;
typedef pair<db, db> pdd;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef unsigned long long ull;
#define F first
#define S second
#define pnl printf("\n")
#define ... | 22.793103 | 82 | 0.530257 | Sohieeb |
3bb0d9bf02ab1c70f8dbf03eba031bab2438ab04 | 1,429 | cpp | C++ | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | #include "Events/Mouse.h"
using namespace Sourcehold::Events;
Mouse::Mouse()
{
}
Mouse::~Mouse()
{
}
bool Mouse::LmbDown()
{
if(event.button.state == SDL_PRESSED && event.button.button == SDL_BUTTON_LEFT) return true;
return false;
}
bool Mouse::MmbDown()
{
if(event.button.state == SDL_PRESSED && eve... | 17.641975 | 99 | 0.649405 | apodrugin |
3bb82e8ccfcf489a410625500805f375e6d2ce52 | 2,428 | cpp | C++ | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | #include <GL/glew.h>
#include "shader.hpp"
#include "util.hpp"
#include <exception>
#include <iostream>
#include <sstream>
Shader_Program::Shader_Program() {
this->program = glCreateProgram();
}
void Shader_Program::add(const char* filename, Shader::shadertype_t type) {
GLenum new_type = 0;
switch (type) {
cas... | 23.12381 | 97 | 0.697282 | Sirflankalot |
3bb8eddd3363495b44f89ed84c03525240d0634e | 6,416 | cpp | C++ | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | #include "icsneo/communication/decoder.h"
#include "icsneo/communication/communication.h"
#include "icsneo/communication/message/serialnumbermessage.h"
#include "icsneo/communication/message/resetstatusmessage.h"
#include "icsneo/communication/message/readsettingsmessage.h"
#include "icsneo/communication/command.h"
#in... | 41.662338 | 110 | 0.678928 | tysonite |
3bb99a80ece30631ca12d9c95f5a61d40e457070 | 583 | hpp | C++ | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | //This code is under MIT licence, you can find the complete file here: https://github.com/kwiato88/sock/blob/master/LICENSE
#pragma once
#include <string>
#include <memory>
#include "SockListeningSocket.hpp"
#include "SockConnection.hpp"
namespace sock
{
class Server
{
public:
/**
* throws Error
*... | 18.21875 | 124 | 0.67753 | kwiato88 |
3bbae5d44f5b85c4e47398acdb93bf11b4935b23 | 921 | cc | C++ | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | #include <iostream>
#include "exercise2.h"
// int main()
int main()
{
int *my_data = nullptr;
unsigned int size = 3;
my_data = new int[size];
my_data[0] = 0;
my_data[1] = 1;
my_data[2] = 2; // int main()
std::cout << "Start-values of the array: " << std::endl;
for (unsigned int i = 0... | 19.595745 | 61 | 0.508143 | j3l4ck0ut |
3bc2701501bd1cf63d2e04504dd315c3acd18f2d | 1,550 | cpp | C++ | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | // https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
// Can also be done via 102 Level Order Traversal method, and reverse alternating vectors.
class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> zzlo;
if (!roo... | 27.678571 | 90 | 0.447742 | GokulVSD |
3bc38704cb1d4c2d9e9698e85ba7d7668c5400f9 | 13,701 | hpp | C++ | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | /**
* @file oglplus/uniform_subroutines.hpp
* @brief Wrapper for uniform subroutine operations
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. 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_... | 22.911371 | 76 | 0.735786 | vif |
3bc8e22408de0785bc50e9c5fd6d2d3ac2c52a63 | 4,515 | cpp | C++ | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.h"
#include "thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.tcc"
#include <thrift/lib/cpp2/gen/service_cp... | 42.196262 | 311 | 0.786932 | malmerey |
3bcb4804632671983b95c5a24b7b502affc8182a | 484 | cpp | C++ | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | 1 | 2021-09-07T00:06:43.000Z | 2021-09-07T00:06:43.000Z | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | null | null | null | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | null | null | null | /* Leia uma letra e verifique se letra é "F" e escreva “F – Feminino” ou “M” e escreva “M – Masculino”,
se não for nem F ou M, escreva “Sexo Inválido” */
#include <stdio.h>
int main(){
char sexo;
printf("Digite a letra referente ao sexo: ");
scanf("%s", &sexo);
if(sexo =='f' || sexo == 'F'){
... | 24.2 | 103 | 0.539256 | rsmwall |
3bcb5d5e03703ef0e08ba991e8649916e8ca8b64 | 11,670 | cpp | C++ | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "OISConfig.h"
#ifdef OIS_WIN32_WIIMOTE_SUPPORT
/*
The zlib/libpng License
Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of ... | 31.203209 | 106 | 0.666153 | ghoulsblade |
3bcd84eba9673176c345a9a40fa09fd9367ecb2a | 1,455 | hpp | C++ | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #ifndef _FTL_RGBD_SCREENCAPTURE_HPP_
#define _FTL_RGBD_SCREENCAPTURE_HPP_
#include "../../basesource.hpp"
#include <ftl/config.h>
#include <ftl/codecs/touch.hpp>
namespace ftl {
namespace rgbd {
namespace detail {
#ifdef HAVE_X11
struct X11State;
typedef X11State ImplState;
#else
typedef int ImplState;
#endif
cla... | 22.384615 | 122 | 0.74433 | knicos |
3bd66fa82497c9025472bbb04d455e4e6ad9150d | 2,001 | cpp | C++ | src/runtime_src/core/edge/user/device_linux.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/edge/user/device_linux.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | 1 | 2019-08-14T05:47:34.000Z | 2019-08-14T16:21:49.000Z | src/runtime_src/core/edge/user/device_linux.cpp | larry9523/XRT | d046a37b323e16cdbda57d65d0b8fc0469a96123 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 23.541176 | 110 | 0.718141 | cellery |
3bd72206f92aad7c20c4be271bba52d2c3f48943 | 10,128 | hpp | C++ | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #pragma once
#include <assert.h>
#include "natalie/env.hpp"
#include "natalie/forward.hpp"
#include "natalie/gc.hpp"
#include "natalie/global_env.hpp"
#include "natalie/macros.hpp"
#include "natalie/method_visibility.hpp"
#include "natalie/object_type.hpp"
#include "natalie/value.hpp"
#include "tm/hashmap.hpp"
names... | 33.76 | 163 | 0.655608 | natalie-lang |
3bd90cf5b0d3fb9f817a2f94c935e86335bc02d4 | 6,935 | cpp | C++ | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | /*
** TP CPE Lyon
** Copyright (C) 2015 Damien Rohmer
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later ve... | 39.856322 | 118 | 0.627397 | Neckrome |
3bdaaa126f48ef28a0f539ba46397f3bc53d6277 | 995 | cpp | C++ | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#define ll long long
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define mst(a,b) memset((a),(b),sizeof(a))
#define PII pair<int,int>
using namespace std;
template<class ... | 18.773585 | 67 | 0.574874 | songhn233 |
3be54d8117eee3a2945d79380715c028264d6324 | 2,669 | cpp | C++ | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 173 | 2020-04-09T18:39:39.000Z | 2022-03-15T06:15:07.000Z | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 538 | 2020-04-09T18:34:04.000Z | 2022-02-20T09:53:17.000Z | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 89 | 2020-04-14T20:46:48.000Z | 2022-03-14T16:45:30.000Z | #include <memory>
#include <ignition/msgs/joint_trajectory.pb.h>
#include <ignition/transport/Node.hh>
#include <ros/ros.h>
#include <trajectory_msgs/JointTrajectory.h>
#include <nodelet/nodelet.h>
#include <ros_ign_bridge/convert.hpp>
#include <pluginlib/class_list_macros.h>
using namespace ros_ign_bridge;
names... | 31.4 | 118 | 0.715624 | jfkeller |
3beb3f81bf5ec69428d08f176bc4edde3ddc0edc | 518 | hpp | C++ | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "mesh.hpp"
#include "mesh/vertex/is_valid.hpp"
#include "mesh/vertex/proxy.hpp"
#include <range/v3/view/filter.hpp>
#include <range/v3/view/iota.hpp>
#include <range/v3/view/transform.hpp>
namespace face_vertex {
inline
auto vertices(Mesh& m) {
return ranges::views::ints(uint32_t(0), vert... | 21.583333 | 60 | 0.667954 | the-last-willy |
3bed17f1ca772fbb99cd489f79a67eb67330052b | 31,137 | cpp | C++ | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 41.295756 | 233 | 0.765616 | crazecdwn |
3bf46a0fed869fb16189bcd0d03036eb87c1b47f | 268 | cpp | C++ | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | 1 | 2021-09-15T21:11:57.000Z | 2021-09-15T21:11:57.000Z | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | null | null | null | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | 4 | 2019-12-02T15:17:46.000Z | 2021-10-09T17:32:34.000Z | #include <iostream>
#include <xtime_cpu_time.hpp>
#include <xtime.hpp>
using namespace std;
int main() {
cout << "get_cpu_time " << xtime::get_cpu_time() << endl;
xtime::delay(1);
cout << "get_cpu_time " << xtime::get_cpu_time() << endl;
return 0;
}
| 20.615385 | 61 | 0.634328 | NewYaroslav |
3bf512f486a98f2559dc956fa2be08138c3b36be | 4,571 | cpp | C++ | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | /**-------------------------------------------------------------------------
@file device_intrf.h
@brief Generic data transfer interface class
This class is used to implement device communication interfaces such as I2C, UART, etc...
Not limited to wired or physical interface. It could be soft interface as well... | 29.490323 | 90 | 0.625027 | tmaltesen |
0eca31a0efd30ecc59040446adea1a6eb5710747 | 2,925 | cpp | C++ | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | /** ----------------------------------------------------------------------
* Copyright 2014 < Ammar Husain (Carnegie Mellon University) >
*
* @file pe1.cpp
* @author Ammar Husain <ahusain@nrec.ri.cmu.edu>
* @date Thu Jul 31 17:18:28 2014
*
* @brief Boiler Plate
*
*
---------------------------------... | 22.674419 | 78 | 0.472479 | ammarhusain |
0ecc00b0f90f69711c95911041ca882e83883e44 | 386 | hpp | C++ | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 284 | 2017-11-07T10:06:48.000Z | 2021-01-12T15:32:51.000Z | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 38 | 2018-01-14T12:34:54.000Z | 2020-09-26T15:32:43.000Z | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 31 | 2017-11-30T11:22:21.000Z | 2020-11-03T05:27:47.000Z | #ifndef TERMOX_WIDGET_DETAIL_GRAPH_TREE_HPP
#define TERMOX_WIDGET_DETAIL_GRAPH_TREE_HPP
#include <string>
namespace ox {
class Widget;
} // namespace ox
namespace ox::detail {
/// Outputs filename.gz graph description of widget tree hierarchy.
void graph_tree(Widget const& w, std::string const& filename);
} // na... | 24.125 | 67 | 0.787565 | a-n-t-h-o-n-y |
0ecd6a9209dfdca0807b129c53b07b9bd52a2b18 | 8,676 | cpp | C++ | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | GoSSIP-SJTU/TripleDoggy | 03648d6b19c812504b14e8b98c8c7b3f443f4e54 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | Ewenwan/TripleDoggy | 01db804b6570b1e25e29a387aa2addb68b48335f | [
"Apache-2.0"
] | 7 | 2018-10-05T04:54:18.000Z | 2020-10-02T07:58:13.000Z | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | Ewenwan/TripleDoggy | 01db804b6570b1e25e29a387aa2addb68b48335f | [
"Apache-2.0"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | // RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-cuda-mode -emit-llvm-bc %s -o %t-ppc-host.bc
// RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-cuda-mode -emit-l... | 68.314961 | 263 | 0.496657 | GoSSIP-SJTU |
0ed5374b36fe6cfc5418b1179c1430a452a9f234 | 996 | cpp | C++ | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2014-09-22
#include <vector>
#include <algorithm>
#include <cstdio>
using namespace std;
bool is_knumber[1000001];
int knumber_count[1000001];
bool is_prime(int x) {
if (x < 2) return false;
for (int i = 2; i*i <= x; i++) {
if (x%i == 0) return false;
}
return true;
}
int main() {
is_knum... | 24.292683 | 67 | 0.451807 | ohmyjons |
0eda560b7d2a090781ddb30fa8826d263deb8ece | 7,425 | cc | C++ | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2014 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Softwa... | 26.423488 | 76 | 0.701953 | benjaminlarson |
0edc0724375eb70b19edbe2a8bba0e6a6dc3afbb | 5,684 | cpp | C++ | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | null | null | null | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | null | null | null | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | 2 | 2016-03-17T11:19:16.000Z | 2020-03-16T16:17:56.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... | 30.55914 | 113 | 0.586735 | 675492062 |
0ee668cd7e9d9c4fb2248aa67d6343d78edc9c8f | 2,879 | cpp | C++ | src/tunit/src/tunit/base_assert.cpp | gammasoft71/tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | 3 | 2021-03-06T17:24:02.000Z | 2021-12-16T09:28:02.000Z | src/tunit/src/tunit/base_assert.cpp | gammasoft71/xtd_tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | null | null | null | src/tunit/src/tunit/base_assert.cpp | gammasoft71/xtd_tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | null | null | null | #include "../../include/tunit/base_assert.h"
#include "../../include/tunit/settings.h"
#include "../../include/tunit/unit_test.h"
#include "../../include/tunit/test.h"
#include <string>
using namespace tunit;
using namespace std;
using namespace std::string_literals;
void base_assert::abort(const std::string& message... | 48.79661 | 189 | 0.708232 | gammasoft71 |
0eec0041e39485e247332af6c9bf97a50b2ffe9b | 914 | cpp | C++ | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | #include <seqan3/alphabet/all.hpp>
#include <seqan3/alphabet/nucleotide/dna4.hpp>
using namespace seqan3;
int main()
{
{
//! [ambiguity]
// does not work:
// dna4 my_letter{0}; // we want to set the default, an A
// dna4 my_letter{'A'}; // we also want to set an A, but we are setting value 65
// std::cout <... | 27.69697 | 101 | 0.656455 | giesselmann |
0ef273bb0bba5bb5a016e5381507d4a862ce6aba | 2,331 | cpp | C++ | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | 2 | 2021-07-14T03:21:06.000Z | 2021-11-11T08:00:47.000Z | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | 1 | 2021-06-09T14:57:15.000Z | 2021-06-09T14:57:15.000Z | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | null | null | null | // Virtual Tree
//
// Comprime uma arvore dado um conjunto S de vertices, de forma que
// o conjunto de vertices da arvore comprimida contenha S e seja
// minimal e fechado sobre a operacao de LCA
// Se |S| = k, a arvore comprimida tem O(k) vertices
//
// O(k log(k))
template<typename T> struct rmq {
vector<T> v;
in... | 28.426829 | 75 | 0.525526 | WUST-mengqinyu |
0ef318d8a0262f4ac60ff7ccad926430b6ba0d92 | 1,472 | cpp | C++ | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 2 | 2019-04-02T14:19:01.000Z | 2021-05-27T13:42:20.000Z | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 4 | 2016-11-05T14:17:14.000Z | 2017-03-30T15:03:37.000Z | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cg/base/base.h"
#include "learn_dx11/base/app.h"
#include "learn_dx11/mesh_rnd/displacement_mapping_example.h"
#include "learn_dx11/mesh_rnd/vertex_skinning_example.h"
#include "learn_dx11/mesh_rnd/static_mesh_example.h"
#include "learn_dx11/tess/terrain_tessellation_example.h"
#inc... | 36.8 | 70 | 0.73981 | ref2401 |
0ef4dffeb637cea383fa8a726c05f9d1530ee4c5 | 1,092 | cpp | C++ | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
const int MOD = 1e9 + 7;
const int prime[5] = {2, 3, 5, 7};
int n;
pair<int, int> a[maxn];
long long f[maxn][1 << 5];
inline long long Mod(long long x){
x %= MOD;
while(x < 0) x += MOD;
return x;
}
int main(){
cin >> n;
for(int i = 1; i <= n;... | 22.75 | 56 | 0.436813 | AndrewWayne |
0ef562c6206a1f153152841347903e2e8807e985 | 1,894 | cpp | C++ | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
*/
#include <iostream>
#include <vector>
#include "coreneur... | 32.655172 | 85 | 0.517951 | alexsavulescu |
0ef6894d4557dab17c758afa406847753ecefed5 | 8,368 | cpp | C++ | src/modules/muorb/adsp/px4muorb.cpp | Qsome43/Firmware | 430c32fa4087f988e7bd8b3daf3326cfac186221 | [
"BSD-3-Clause"
] | 10 | 2020-11-25T14:04:15.000Z | 2022-03-02T23:46:57.000Z | src/modules/muorb/adsp/px4muorb.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 20 | 2017-11-30T09:49:45.000Z | 2018-02-12T07:56:29.000Z | src/modules/muorb/adsp/px4muorb.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 10 | 2019-04-02T09:06:30.000Z | 2021-06-23T15:52:33.000Z | /****************************************************************************
*
* Copyright (C) 2015 Mark Charlebois. 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... | 28.175084 | 89 | 0.724426 | Qsome43 |
0ef78fa196c8777e3aaf95426c8713f14e088661 | 353 | cpp | C++ | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | null | null | null | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | 2 | 2021-09-02T20:33:10.000Z | 2022-03-29T10:04:07.000Z | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdlib>
#include<cmath>
using namespace std;
int main(){
int N;
cout<<"Masukan Banyaknya Bilangan Prima yang ingin ditampilkan"<<endl;
cin >> N;
int counter = 0, x = 1;
while(counter!=N){
if(x%2!=0){
cout<<x<<endl;
counter+=1;
... | 14.708333 | 74 | 0.509915 | rainoverme002 |
0ef9314af14bf74923771005982042c09bd08fae | 4,898 | hpp | C++ | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 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://w... | 43.345133 | 100 | 0.459371 | pqLee |
0ef9679a8de0384af7cd0aacea5daf32d2d6feb7 | 8,811 | cpp | C++ | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 2 | 2020-07-08T22:07:55.000Z | 2020-08-21T05:42:34.000Z | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 2 | 2020-09-11T01:01:00.000Z | 2020-12-07T23:09:35.000Z | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 1 | 2021-09-28T16:39:30.000Z | 2021-09-28T16:39:30.000Z | #include "stdafx.h"
#include "ModelTextures.h"
#include "PolyModel.h"
#include "ASEModel.h"
#include "OOFModel.h"
#include "rendermodel.h"
using namespace RenderModel;
//------------------------------------------------------------------------------
void CModel::Init(void)
{
memset(m_teamTextures, 0, sizeof(m_teamTe... | 26.459459 | 125 | 0.555442 | overload-development-community |
0eff3206742a98bcc95c1c129d5b80ac03da4a86 | 15,066 | cpp | C++ | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | 2 | 2016-04-19T18:26:37.000Z | 2016-04-20T21:56:01.000Z | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | null | null | null | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | null | null | null | #include "syntactic.hpp"
#include "node.hpp"
Syntactic::Syntactic(Lexic* lex) {
lexic = lex;
Analize();
}
void Syntactic::Analize() {
tree = Translation_Unit();
}
Node* Syntactic::Translation_Unit() {
Program* nodent = new Program();
Node* aux = nullptr;
while( lexic->Token != Token::END_OF_F... | 22.32 | 76 | 0.557812 | Donluigimx |
160223bd99ab97b75926acbb952eafbf66a5bc08 | 1,114 | inl | C++ | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | 11 | 2021-06-27T09:02:07.000Z | 2022-03-13T07:40:36.000Z | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | null | null | null | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | 6 | 2021-06-09T08:01:36.000Z | 2021-12-06T07:28:52.000Z | // Components
using TimeType = int;
using Position = Vector2i;
using Orientation = float;
struct InitialPosition : Position { using Position::Position; };
struct StartPosition : Position { using Position::Position; };
struct Size : Position { using Position::Position; };
struct InitialSize : Size { using Size::Siz... | 21.423077 | 87 | 0.698384 | Daandelange |
1605232a7fe88177bff7ee2fc6b5c326e32c634e | 612 | cpp | C++ | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/419722#problem/Z
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll n, cnt = 1;
cin >> n;
vector<pair<bool... | 21.857143 | 76 | 0.46732 | MaGnsio |
16064c8d3937a988233e43709e7ba84375c7714f | 17,259 | cpp | C++ | getic/texref.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/texref.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/texref.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null |
#include "stdafx.h"
#include "winwrap.h"
#include "GL/gl.h"
#include "texref.h"
#include "geticapp.h"
#include "glwindow.h"
#include "view3d.h"
#include "geticmainwnd.h"
#ifdef WINDOWS
# pragma warning (disable: 4786)
#endif
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#en... | 27.265403 | 106 | 0.547598 | circinusX1 |
160851bb5c5591be914c9f011ac26f1690b40c9a | 7,036 | cpp | C++ | src/materialsystem/stdshaders/detail_grass.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/materialsystem/stdshaders/detail_grass.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/materialsystem/stdshaders/detail_grass.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
#include "BaseVSShader.h"
#include "mathlib/vmatrix.h"
#include "convar.h"
#include "cpp_shader_constant_register_map.h"
#include "detail_prop_shader_ps30.inc"
#include "detail_prop_shader_vs30.inc"
static const float kDefaultSpecColor[] = { 0.905750f, 1.0f, 0.675000f };
BEGIN_VS_SHADER(detail_grass, ""... | 34.15534 | 140 | 0.777146 | cstom4994 |
160939911fffefe5565b85cc0728557ffca85107 | 721 | cpp | C++ | libs/storage/storage.cpp | digitalpiloten/pxt-ev3 | b9b21328b16cc69963b45efcb9999f511224f2d0 | [
"MIT"
] | 40 | 2019-05-11T06:19:58.000Z | 2022-02-19T19:44:19.000Z | libs/storage/storage.cpp | digitalpiloten/pxt-ev3 | b9b21328b16cc69963b45efcb9999f511224f2d0 | [
"MIT"
] | 113 | 2019-05-27T17:55:18.000Z | 2022-02-20T11:57:21.000Z | libs/storage/storage.cpp | digitalpiloten/pxt-ev3 | b9b21328b16cc69963b45efcb9999f511224f2d0 | [
"MIT"
] | 33 | 2019-05-18T08:11:25.000Z | 2022-02-15T02:15:05.000Z | #include "pxt.h"
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
namespace storage {
/** Will be moved. */
//%
Buffer __stringToBuffer(String s) {
return mkBuffer((uint8_t *)s->data, s->length);
}
/** Will be moved. */
//%
String __bufferToString(Buffer s) {
return mkStri... | 16.022222 | 70 | 0.631068 | digitalpiloten |
160ad4687ce21f5680448aa95550f036121f2bd6 | 2,561 | hpp | C++ | src/mlpack/methods/emst/union_find.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | src/mlpack/methods/emst/union_find.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | src/mlpack/methods/emst/union_find.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | /**
* @file union_find.hpp
* @author Bill March (march@gatech.edu)
*
* Implements a union-find data structure. This structure tracks the components
* of a graph. Each point in the graph is initially in its own component.
* Calling unionfind.Union(x, y) unites the components indexed by x and y.
* unionfind.Find... | 24.390476 | 80 | 0.64467 | RMaron |
160fa8e9240bf2cf611313c54ab694d7ce45fb96 | 761 | cpp | C++ | SDKs/CryCode/3.6.15/CryEngine/CryAction/TweakMenu/TweakMetadataCallback.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.6.15/CryEngine/CryAction/TweakMenu/TweakMetadataCallback.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.6.15/CryEngine/CryAction/TweakMenu/TweakMetadataCallback.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2011.
-------------------------------------------------------------------------
Description:
Header for tweak item that calls a user-supplied function
***************************************... | 26.241379 | 108 | 0.554534 | amrhead |
161165f52353d152ea0877dccf35228cd35ef63e | 5,330 | cc | C++ | IntegrationWithMacSim/src/noc.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2021-11-25T20:09:08.000Z | 2021-11-25T20:09:08.000Z | IntegrationWithMacSim/src/noc.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2021-11-03T21:15:53.000Z | 2021-11-04T15:53:20.000Z | IntegrationWithMacSim/src/noc.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2020-11-25T14:09:30.000Z | 2020-11-25T14:09:30.000Z | /*
Copyright (c) <2012>, <Georgia Institute of Technology> 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 list of conditions... | 29.447514 | 95 | 0.63546 | uwuser |
16119af1d41acfc6f2b844d8848278e5436a4773 | 2,797 | hpp | C++ | lib/RdfQueryDB.hpp | ericprud/SWObjects | c2ceae74a9e20649dac84f1da1a4b0d2bd9ddce6 | [
"MIT"
] | 8 | 2015-06-29T17:17:37.000Z | 2021-05-21T12:05:40.000Z | lib/RdfQueryDB.hpp | ericprud/SWObjects | c2ceae74a9e20649dac84f1da1a4b0d2bd9ddce6 | [
"MIT"
] | 2 | 2016-01-17T20:12:24.000Z | 2016-12-20T20:32:52.000Z | lib/RdfQueryDB.hpp | ericprud/SWObjects | c2ceae74a9e20649dac84f1da1a4b0d2bd9ddce6 | [
"MIT"
] | 2 | 2015-04-08T19:12:02.000Z | 2020-01-28T08:52:16.000Z | /* RdfQueryDB - sets of variable bindings and their proofs.
* $Id: RdfQueryDB.hpp,v 1.4 2008-10-24 10:57:31 eric Exp $
*/
#ifndef RDF_QUERY_DB_H
#define RDF_QUERY_DB_H
#include "RdfDB.hpp"
namespace w3c_sw {
class DBExpressor;
class RdfQueryDB : public RdfDB {
friend class DBExpressor;
Operation* op;
co... | 41.746269 | 173 | 0.757955 | ericprud |
1618b550128137b262fa34e786a344b04e1d2a2c | 4,842 | cc | C++ | simulation/src/EventAction.cc | ThorbenQuast/HGCal_TB_Geant4 | 5da74358e5c4495e14a7de1b92d60ee5015decb3 | [
"MIT"
] | 1 | 2021-02-18T05:40:51.000Z | 2021-02-18T05:40:51.000Z | simulation/src/EventAction.cc | innonano/HGCal_TB_Geant4 | 9accdd0587b51f8bf34bd2e087c70c3e028c256e | [
"MIT"
] | null | null | null | simulation/src/EventAction.cc | innonano/HGCal_TB_Geant4 | 9accdd0587b51f8bf34bd2e087c70c3e028c256e | [
"MIT"
] | 3 | 2018-11-05T20:12:04.000Z | 2021-02-18T05:40:31.000Z |
#include "EventAction.hh"
#include "RunAction.hh"
#include "G4Event.hh"
#include "G4SDManager.hh"
#include "G4RunManager.hh"
#include "SiliconPixelHit.hh"
#include "SiPMHit.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
EventAction::EventAction()
: G4UserEventAction()
{
hitTi... | 30.074534 | 87 | 0.686493 | ThorbenQuast |
161918df61a566882b454429ffa1fdb6d358aa49 | 110,081 | hh | C++ | pes.timed/proof.hh | jkeiren/TimeSolver | 246d54d43a529c05eccdef4567700eef3b3b1a57 | [
"MIT"
] | 4 | 2018-12-19T14:30:27.000Z | 2022-03-20T20:19:20.000Z | pes.timed/proof.hh | jkeiren/TimeSolver | 246d54d43a529c05eccdef4567700eef3b3b1a57 | [
"MIT"
] | null | null | null | pes.timed/proof.hh | jkeiren/TimeSolver | 246d54d43a529c05eccdef4567700eef3b3b1a57 | [
"MIT"
] | 2 | 2019-04-24T03:18:20.000Z | 2019-09-13T07:49:00.000Z | /** \file proof.hh
* Proof-search implementation for timed-automata model checking, based on PESs.
* @author Peter Fontana
* @author Dezhuang Zhang
* @author Rance Cleaveland
* @author Jeroen Keiren
* @copyright MIT Licence, see the accompanying LICENCE.txt
*/
#ifndef PROOF_HH
#define PROOF_HH
#include "cpplog... | 40.102368 | 176 | 0.60669 | jkeiren |
161c3bd38812f910febb041729d9d9625ce01c7e | 1,691 | cpp | C++ | 454 Anagrams.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 454 Anagrams.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 454 Anagrams.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
bool lexicographic(const string& first, const string& second)
{
return lexicographical_compare(first.begin(), first.end(), second.begin(), second.end());
}
const vector<int> letterBase(128, 0);
vector<int> GetLette... | 21.961039 | 93 | 0.506801 | zihadboss |
1621b7ddaa1c3f98bf723935fc741fb89f7865e9 | 553 | cpp | C++ | examples/q13_timer/src/process/faucet.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q13_timer/src/process/faucet.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q13_timer/src/process/faucet.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <cpen333/process/event.h>
int main(int argc, char* argv[]) {
if (argc < 4) {
std::cout << "Not enough arguments, needed 3: clock_event_name, id, # drips" << std::endl;
return -1;
}
std::string event_name = argv[1];
int id = atoi(argv[2]);
... | 23.041667 | 95 | 0.562387 | ubc333 |
16256d643420b1409f162fbda6387fc24e5c7d59 | 632 | hh | C++ | source/fit/KBCurve.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2021-05-24T19:43:30.000Z | 2022-01-06T21:03:23.000Z | source/fit/KBCurve.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 4 | 2020-05-04T15:52:26.000Z | 2021-09-13T10:51:03.000Z | source/fit/KBCurve.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2020-06-14T10:53:58.000Z | 2022-01-06T21:03:30.000Z | #ifndef KBCURVE_HH
#define KBCURVE_HH
#include "TGraph.h"
class KBCurve : public TGraph
{
public:
KBCurve();
KBCurve(Int_t nPoints);
virtual ~KBCurve() {};
void SetUnitLength(Double_t unitLength);
Double_t GetUnitLength();
void SetTension(Double_t tension);
Double_t GetTension();
... | 17.555556 | 64 | 0.681962 | ggfdsa10 |
1625d579a73047472e7de0805adef62f4f4a9354 | 635 | cc | C++ | Code/1199-hexspeak.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1199-hexspeak.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1199-hexspeak.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
string toHexspeak(string num) {
long long llnum = stoll(num);
string result = "";
while (true) {
int n = llnum % 16;
if (n == 0) {
result = 'O' + result;
} else if (n == 1) {
result = 'I' + result;
... | 25.4 | 38 | 0.344882 | SMartQi |
162d134f7db3456f3d73f91e3d43a5318628459f | 1,578 | hxx | C++ | stdxx/matrix/matrix3op.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-08T10:14:38.000Z | 2022-03-08T10:14:38.000Z | stdxx/matrix/matrix3op.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-11T11:43:31.000Z | 2022-03-11T23:18:06.000Z | stdxx/matrix/matrix3op.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | null | null | null | #pragma once
#include "matrix3.hxx"
namespace stx {
template<typename T>
std::ostream & operator<<(std::ostream & out, const matrix3<T> & m) {
out << "[";
for(std::size_t y = 0; y < 3; y++) {
out << (y ? "|" : "");
for(std::size_t x = 0; x < 3; x++) {
out << (x ? "," : "") << m(x,y);
}
}
out << "... | 21.324324 | 77 | 0.481622 | JeneLitsch |
162d46690fc654b4d7cde774d65c85ed797c068a | 2,321 | hpp | C++ | test/tostring.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | null | null | null | test/tostring.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | null | null | null | test/tostring.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | 1 | 2022-02-19T08:08:21.000Z | 2022-02-19T08:08:21.000Z | #pragma once
#ifndef BE_GFX_CATCH_TOSTRING_HPP_
#define BE_GFX_CATCH_TOSTRING_HPP_
#include <glm/glm.hpp>
#include <be/core/glm.hpp>
#include <be/core/extents.hpp>
#include <sstream>
#include <iomanip>
namespace Catch {
inline std::string toString(const be::RGB& value) {
std::ostringstream oss;
oss << "rgb[ " ... | 31.794521 | 138 | 0.570444 | magicmoremagic |
162ff519ae045b904d687bee4e303bfcf6f5ffcf | 446 | hpp | C++ | include/mamap/arguments/properties/propertystring.hpp | JoshuaSBrown/MAMAP | 0a50455dd6c75726046fc040b0834a9d3273c6eb | [
"MIT"
] | null | null | null | include/mamap/arguments/properties/propertystring.hpp | JoshuaSBrown/MAMAP | 0a50455dd6c75726046fc040b0834a9d3273c6eb | [
"MIT"
] | null | null | null | include/mamap/arguments/properties/propertystring.hpp | JoshuaSBrown/MAMAP | 0a50455dd6c75726046fc040b0834a9d3273c6eb | [
"MIT"
] | 1 | 2020-12-10T05:18:17.000Z | 2020-12-10T05:18:17.000Z |
#ifndef _MAMAP_PROPERTY_STRING_HPP
#define _MAMAP_PROPERTY_STRING_HPP
#include "propertyobject.hpp"
namespace mamap {
class PropertyString : public PropertyObject {
private:
virtual PropertyType getPropertyType_(void) const noexcept final {
return PropertyType::STRING;
}
public:
PropertyString... | 18.583333 | 70 | 0.755605 | JoshuaSBrown |
16309c68162ae51f513dd3d7e0021c772f9adb72 | 65,341 | cpp | C++ | libraries/app/application.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | 1 | 2019-07-05T14:37:30.000Z | 2019-07-05T14:37:30.000Z | libraries/app/application.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | null | null | null | libraries/app/application.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Total Games LLC 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 ri... | 42.567427 | 173 | 0.653984 | totalgames |
163253d691d9e2ba6090e9c5b14f7ff95ed761af | 3,271 | cpp | C++ | watchX/lib/BMP280/pressure.cpp | murataka/watchX | 74fddc87d90af88197cb83ee7c8c4439330c9957 | [
"Apache-2.0"
] | 6 | 2018-06-29T04:34:57.000Z | 2020-08-04T05:37:52.000Z | watchX/lib/BMP280/pressure.cpp | murataka/watchX | 74fddc87d90af88197cb83ee7c8c4439330c9957 | [
"Apache-2.0"
] | null | null | null | watchX/lib/BMP280/pressure.cpp | murataka/watchX | 74fddc87d90af88197cb83ee7c8c4439330c9957 | [
"Apache-2.0"
] | 2 | 2018-06-22T23:08:14.000Z | 2020-08-05T22:53:41.000Z | #include "pressure.h"
#include <Wire.h>
#define Addr 0x76
void getPressure(){
unsigned int b1[24];
unsigned int data[8];
for (int i = 0; i < 24; i++)
{
// Start I2C Transmission
Wire.beginTransmission(Addr);
// Select data register
Wire.write((136 + i));
// Stop I2C Transmission
Wire.e... | 29.468468 | 113 | 0.580862 | murataka |
163474d01da8a5f8172bac0823c7232f4aee3967 | 969 | cpp | C++ | src/BehavioralDesignPatterns/Observer/observer.cpp | straceX/DesignPatterns | d35a5afb936deaf8cad5ea3899d70b38070f720a | [
"Apache-2.0"
] | null | null | null | src/BehavioralDesignPatterns/Observer/observer.cpp | straceX/DesignPatterns | d35a5afb936deaf8cad5ea3899d70b38070f720a | [
"Apache-2.0"
] | null | null | null | src/BehavioralDesignPatterns/Observer/observer.cpp | straceX/DesignPatterns | d35a5afb936deaf8cad5ea3899d70b38070f720a | [
"Apache-2.0"
] | null | null | null | #include "observer.h"
#include <iostream>
int Observer::m_currentId = 0;
Observer::Observer(Observable &observable)
: m_observable(observable)
, m_id{++Observer::m_currentId}
{
m_observable.Attach(this);
std::cout<< "New observer(" << m_id << ") is created.\n";
}
Observer::~Observer()
{
std::cout<... | 19.38 | 103 | 0.610939 | straceX |
16357609b78e8315152b0b14eb682f03da804cce | 3,685 | cpp | C++ | MonoNative/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DirectorySecurity.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DirectorySecurity.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DirectorySecurity.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DirectorySecurity.h>
#include <mscorlib/System/mscorlib_System_Type.h>
#include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_AccessRule.h>
#include <mscorlib/System/Security/Principal/mscorlib_Syste... | 43.352941 | 194 | 0.766621 | brunolauze |
16363101665f96a106508fd22e0d8c316daaf86d | 40,694 | cpp | C++ | packages/monte_carlo/estimator/native/src/MonteCarlo_EstimatorHandlerFactory_Root.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_EstimatorHandlerFactory_Root.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_EstimatorHandlerFactory_Root.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_EstimatorHandlerFactory_Root.cpp
//! \author Alex Robinson, Eli Moll
//! \brief Estimator handler factory class declaration.
//!
//---------------------------------------------------------------------------//
//... | 34.544992 | 123 | 0.682189 | lkersting |
163a6e7527f717d8fe00b547b87a5d7c7ac998aa | 9,783 | cc | C++ | packager/media/formats/mp2t/es_parser_audio.cc | MarcusWichelmann/shaka-packager | 02ac2dfb3990403984c53275a983443bb520ebe1 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/formats/mp2t/es_parser_audio.cc | MarcusWichelmann/shaka-packager | 02ac2dfb3990403984c53275a983443bb520ebe1 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/formats/mp2t/es_parser_audio.cc | MarcusWichelmann/shaka-packager | 02ac2dfb3990403984c53275a983443bb520ebe1 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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 "packager/media/formats/mp2t/es_parser_audio.h"
#include <stdint.h>
#include <algorithm>
#include <list>
#include "packager/base/logging.h"
#i... | 35.966912 | 89 | 0.682102 | MarcusWichelmann |
163b1d2e6e32094a5f4fc7850b2e88ccaf0997e5 | 1,318 | cpp | C++ | examples/cpp/comm/event/event.cpp | grisharav/bond | db05b170c83f74d0ea561d109ea90ed63b13cfa6 | [
"MIT"
] | null | null | null | examples/cpp/comm/event/event.cpp | grisharav/bond | db05b170c83f74d0ea561d109ea90ed63b13cfa6 | [
"MIT"
] | null | null | null | examples/cpp/comm/event/event.cpp | grisharav/bond | db05b170c83f74d0ea561d109ea90ed63b13cfa6 | [
"MIT"
] | null | null | null |
//
// This is an example of a service, that waits for events.
//
// Include auto-generated files.
#include "event_reflection.h"
#include "event_comm.h"
// Include preferred transport
#include <bond/comm/transport/epoxy.h>
#include <future>
using namespace examples::event;
// Implement service
class ServiceImpl :... | 21.258065 | 65 | 0.672989 | grisharav |
163cc95c6a97ea9b78a1919f26670e1fc8ae7228 | 115 | cpp | C++ | 22-matrix/cpp/matrix.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 143 | 2016-07-28T06:00:43.000Z | 2022-03-30T14:08:50.000Z | 22-matrix/cpp/matrix.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 3 | 2017-11-28T10:09:52.000Z | 2021-08-30T09:20:41.000Z | 22-matrix/cpp/matrix.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 24 | 2016-10-27T02:02:44.000Z | 2022-02-06T07:37:07.000Z | #include "matrix.h"
template<typename T>
Matrix<T>::Matrix(unsigned _rows, unsigned _cols, const T& _initial) {
} | 19.166667 | 70 | 0.730435 | skaadin |
163f9a502544c4964749390feb397ba8a80596bf | 2,047 | hpp | C++ | src/Instruction.hpp | zlin888/irispl | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | 4 | 2020-04-01T05:45:30.000Z | 2020-05-14T06:38:25.000Z | src/Instruction.hpp | zlin888/typed-scheme | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | null | null | null | src/Instruction.hpp | zlin888/typed-scheme | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | null | null | null | //
// Created by Zhitao Lin on 2020/2/7.
//
#ifndef TYPED_SCHEME_INSTRUCTION_HPP
#define TYPED_SCHEME_INSTRUCTION_HPP
#include "Utils.hpp"
#include "IrisObject.hpp"
#include <string>
#include <regex>
enum class InstructionType {
LABEL, COMMENT, INSTRUCTION
};
typedef Type InstructionArgumentType;
using namespa... | 28.430556 | 105 | 0.66683 | zlin888 |
164015c21310c532e9555386da829ef2916f23c7 | 1,027 | cc | C++ | nox/src/lib/errno_exception.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/lib/errno_exception.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/lib/errno_exception.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 28.527778 | 71 | 0.700097 | ayjazz |
f37eb3020f4934146d3ad4cfa9d402c19d058026 | 11,557 | cxx | C++ | Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-02-13T14:48:19.000Z | 2019-12-03T02:54:28.000Z | Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | null | null | null | Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-01-17T10:36:14.000Z | 2019-12-03T02:54:36.000Z | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 33.792398 | 136 | 0.652332 | lfyater |
f37ed7c34d6a0e5fa8dbf7eabe786acbdb52c244 | 12,168 | cc | C++ | src/crawler_robot_ros/src/teleop_crawler.cc | m-shimizu/Samples_Gazebo_ROS | 54ecfc2d77dc8aacce010151593d1d08d04f7bce | [
"MIT"
] | 5 | 2019-01-08T12:54:10.000Z | 2022-02-18T10:08:22.000Z | src/crawler_robot_ros/src/teleop_crawler.cc | RoboCup-RSVRL/RoboCup2021RVRL_Demo | 431e18505abf34353de526c2b4f5ad75046ea07e | [
"MIT"
] | 2 | 2019-01-11T14:32:07.000Z | 2020-01-17T10:20:08.000Z | src/crawler_robot_ros/src/teleop_crawler.cc | m-shimizu/Samples_Gazebo_ROS | 54ecfc2d77dc8aacce010151593d1d08d04f7bce | [
"MIT"
] | 2 | 2019-03-20T04:51:08.000Z | 2020-06-22T06:32:16.000Z | //=============================================================================
// This program is a modification of
// $(find hector_quadrotor_teleop)/src/quadrotor_teleop.cpp
// Editor : Masaru Shimizu
// E-mail : shimizu@sist.chukyo-u.ac.jp
// Updated : 25 Mar.2018
//=============================... | 37.78882 | 123 | 0.623192 | m-shimizu |
f381d82ade9cf79577fc7f5f4381a32ff13f55af | 18,359 | cpp | C++ | arangod/Aql/AqlItemBlock.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | arangod/Aql/AqlItemBlock.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | arangod/Aql/AqlItemBlock.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 31.382906 | 95 | 0.58086 | specimen151 |
f38c7428cc403ad2c6895dfc5acd40986d8d32a7 | 3,525 | cpp | C++ | src/connectivity/nrf_pipe.cpp | Niels-Post/cpp_mesh | 2750d9e824bffd820d872f6e57dbadf6a1138246 | [
"BSL-1.0"
] | null | null | null | src/connectivity/nrf_pipe.cpp | Niels-Post/cpp_mesh | 2750d9e824bffd820d872f6e57dbadf6a1138246 | [
"BSL-1.0"
] | null | null | null | src/connectivity/nrf_pipe.cpp | Niels-Post/cpp_mesh | 2750d9e824bffd820d872f6e57dbadf6a1138246 | [
"BSL-1.0"
] | null | null | null | /*
*
* Copyright Niels Post 2019.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* https://www.boost.org/LICENSE_1_0.txt)
*
*/
#include <mesh/connectivity/nrf_pipe.hpp>
using nrf24l01::nrf24l01plus;
using std::array;
using nrf24l01::NRF_REGISTER;... | 32.943925 | 103 | 0.524255 | Niels-Post |
f38e728136bd47738a2e51e2ed8c70a9b4871006 | 4,032 | cpp | C++ | src/Library/Lights/PointLight.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/Lights/PointLight.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/Lights/PointLight.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// PointLight.cpp - Implementation of the PointLight class
//
// Author: Aravind Krishnaswamy
// Date of Birth: November 23, 2001
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
///////////////... | 25.518987 | 97 | 0.678075 | aravindkrishnaswamy |
f3908c189a183597f84f29fd60b95505608abae2 | 239 | hpp | C++ | include/zisa/math/cartesian.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/cartesian.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/cartesian.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef CARTESIAN_H_RGB4Z
#define CARTESIAN_H_RGB4Z
#include "cartesian_decl.hpp"
// #include "cartesian_impl.hpp"
#endif /* end of include guard */
| 21.727273 | 54 | 0.757322 | 1uc |
f39b386621000227146d97e26b37e3345670db71 | 6,513 | cpp | C++ | src/app-output-model.cpp | mattbucknall/font2c | 8823ae1c441217c1ea18c506899e88be24682778 | [
"0BSD"
] | null | null | null | src/app-output-model.cpp | mattbucknall/font2c | 8823ae1c441217c1ea18c506899e88be24682778 | [
"0BSD"
] | null | null | null | src/app-output-model.cpp | mattbucknall/font2c | 8823ae1c441217c1ea18c506899e88be24682778 | [
"0BSD"
] | null | null | null | /*
* font2c - Command-line utility for converting font glyphs into bitmap images
* embeddable in C source code.
*
* https://github.com/mattbucknall/font2c
*
* Copyright (C) 2022 Matthew T. Bucknall
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is her... | 30.577465 | 111 | 0.589283 | mattbucknall |
f39badab9c1be08f0b51d335f9e89d4b6c088d84 | 732 | hpp | C++ | ad_map_access/src/route/RouteOperationPrivate.hpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | ad_map_access/src/route/RouteOperationPrivate.hpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | ad_map_access/src/route/RouteOperationPrivate.hpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | // ----------------- BEGIN LICENSE BLOCK ---------------------------------
//
// Copyright (C) 2020-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
//
// ----------------- END LICENSE BLOCK -----------------------------------
#pragma once
#include "ad/map/lane/Types.hpp"
#include "ad/map/route/Types.hpp"
n... | 29.28 | 105 | 0.655738 | woojinjjang |
f3a0a846bb5ea5754b7a0c0aa7630ac4c19aa1e7 | 74 | cpp | C++ | src/Main.cpp | ArrowganceStudios/Gladiators-of-Nyquistborgh | 753be76066dff0e2ad2db540babd91dd1462c545 | [
"Apache-2.0"
] | null | null | null | src/Main.cpp | ArrowganceStudios/Gladiators-of-Nyquistborgh | 753be76066dff0e2ad2db540babd91dd1462c545 | [
"Apache-2.0"
] | null | null | null | src/Main.cpp | ArrowganceStudios/Gladiators-of-Nyquistborgh | 753be76066dff0e2ad2db540babd91dd1462c545 | [
"Apache-2.0"
] | null | null | null | #include "Core.h"
int main(void)
{
Core core;
core.Run();
return 0;
} | 8.222222 | 17 | 0.608108 | ArrowganceStudios |
f3a2e4b8cfda9db61192f49680bbbff61180175c | 7,273 | cpp | C++ | library/src/blas1/rocblas_axpy_strided_batched.cpp | zjunweihit/rocBLAS | c8bda2d15a7772d810810492ebed616eec0959a5 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_axpy_strided_batched.cpp | zjunweihit/rocBLAS | c8bda2d15a7772d810810492ebed616eec0959a5 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_axpy_strided_batched.cpp | zjunweihit/rocBLAS | c8bda2d15a7772d810810492ebed616eec0959a5 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2019 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "rocblas_axpy_strided_batched.hpp"
#include "logging.h"
namespace
{
template <typename>
conste... | 39.527174 | 97 | 0.348824 | zjunweihit |
f3a47c6dfad18480ead9ba1530ba53b0536f859b | 7,029 | cpp | C++ | tests/benchmark.cpp | MateusMP/TightECS | 2abc21bd40496814c3a8460c406b57a1a78bd78d | [
"MIT"
] | null | null | null | tests/benchmark.cpp | MateusMP/TightECS | 2abc21bd40496814c3a8460c406b57a1a78bd78d | [
"MIT"
] | null | null | null | tests/benchmark.cpp | MateusMP/TightECS | 2abc21bd40496814c3a8460c406b57a1a78bd78d | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <string_view>
#include "catch2/catch.hpp"
#define TECS_LOG_ERROR(message) std::cout << message << std::endl;
#define TECS_ASSERT(expr, message) REQUIRE(expr)
#include <tecs/tecs.h>
#define MEGABYTES(bytes) 1024 * 1024 * (double)bytes
class Timer {
typedef std::chr... | 27.892857 | 88 | 0.596529 | MateusMP |
f3a4d651405c54ce59e6cd1dd7db2f9079ec058b | 1,558 | cpp | C++ | SDK/ARKSurvivalEvolved_CannonMuzzleFlashEmitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_CannonMuzzleFlashEmitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_CannonMuzzleFlashEmitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_CannonMuzzleFlashEmitter_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------... | 27.333333 | 155 | 0.716945 | 2bite |
f3ad4241486ead3d1bd43ec06a52c44e528fc940 | 2,307 | hpp | C++ | engine/gems/composite/part_ref.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/gems/composite/part_ref.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/gems/composite/part_ref.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-07-02T11:51:17.000Z | 2020-07-02T11:51:17.000Z | /*
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 24.542553 | 89 | 0.727352 | stereoboy |
f3ae6222b0e2a760eb5af4abf5431c9d0de2a3a1 | 31,931 | cpp | C++ | code/components/ros-patches-five/src/SCUIStub.cpp | liquiad/fivem | 36e943be678cd8b677b8c0a32831ccf592d2e84d | [
"MIT"
] | null | null | null | code/components/ros-patches-five/src/SCUIStub.cpp | liquiad/fivem | 36e943be678cd8b677b8c0a32831ccf592d2e84d | [
"MIT"
] | null | null | null | code/components/ros-patches-five/src/SCUIStub.cpp | liquiad/fivem | 36e943be678cd8b677b8c0a32831ccf592d2e84d | [
"MIT"
] | null | null | null | /*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include <ros/EndpointMapper.h>
#include <fstream>
#include <cpr/cpr.h>
#include "base64.h"
#include <botan/botan.h>
#i... | 31.614851 | 241 | 0.619805 | liquiad |
f3b1489269e8bd438d5c8da7c260fa8ac1d55d51 | 2,165 | hpp | C++ | alpaka/test/unit/math/src/Defines.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 6 | 2021-02-01T09:01:39.000Z | 2021-11-14T17:09:03.000Z | alpaka/test/unit/math/src/Defines.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 17 | 2020-11-09T14:13:50.000Z | 2021-11-03T11:54:54.000Z | alpaka/test/unit/math/src/Defines.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | null | null | null | /** Copyright 2019 Jakob Krude, Benjamin Worpitz
*
* This file is part of alpaka.
*
* 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/.
*/
#pragma once
#include <cm... | 30.492958 | 117 | 0.455427 | alpaka-group |
f3b1ab508b6600f27ff7b25ec38b851a4d0af170 | 868 | cpp | C++ | packages/nextalign/src/translate/translate.cpp | Centralize/nextclade | 22115d497a877369f1e8b765e80ddc68cbbca65f | [
"MIT"
] | null | null | null | packages/nextalign/src/translate/translate.cpp | Centralize/nextclade | 22115d497a877369f1e8b765e80ddc68cbbca65f | [
"MIT"
] | null | null | null | packages/nextalign/src/translate/translate.cpp | Centralize/nextclade | 22115d497a877369f1e8b765e80ddc68cbbca65f | [
"MIT"
] | null | null | null | #include "translate.h"
#include <nextalign/nextalign.h>
#include <common/contract.h>
#include "../utils/safe_cast.h"
#include "decode.h"
AminoacidSequence translate(const NucleotideSequenceView& seq, bool translatePastStop /* = false */) {
const int seqLength = safe_cast<int>(seq.size());
// NOTE: rounds the r... | 25.529412 | 102 | 0.686636 | Centralize |
f3b224f34fdcdac455d84b7699f1eafc88c52504 | 1,645 | cpp | C++ | src/lib/cpp/jsontest.cpp | chetmurthy/thrift-nicejson | 3ce7a84af55591be4388f93c095032d739ee3917 | [
"Apache-2.0"
] | 8 | 2017-11-14T13:22:09.000Z | 2020-07-30T02:33:18.000Z | src/lib/cpp/jsontest.cpp | chetmurthy/thrift-nicejson | 3ce7a84af55591be4388f93c095032d739ee3917 | [
"Apache-2.0"
] | null | null | null | src/lib/cpp/jsontest.cpp | chetmurthy/thrift-nicejson | 3ce7a84af55591be4388f93c095032d739ee3917 | [
"Apache-2.0"
] | 3 | 2017-11-18T10:53:10.000Z | 2018-01-16T20:11:28.000Z | #include <list>
#include <boost/smart_ptr.hpp>
#include "gtest/gtest.h"
#include "json.hpp"
using boost::shared_ptr;
using std::cout;
using std::endl;
using std::string;
using std::map;
using std::list;
using std::set;
using nlohmann::json;
TEST( JSON, ParseEmpty )
{
json j = "{}"_json ;
ASSERT_TRUE( j.empty()... | 18.076923 | 83 | 0.604863 | chetmurthy |
f3b363767bf31e84477c936caa92f14fde7d5b17 | 1,257 | cpp | C++ | DOJ/#271.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | DOJ/#271.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | DOJ/#271.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2022
*/
#include <algorithm>
#include <cstdio>
#include <cstring>
int n, m, a[1010], w[1010], par[1010], rev[1010], dfn[1010], R[1010], timer;
int head[1010], to[1010], next[1010], tot, f[1010][10010];
inline void add_edge(int u, int v)
{
t... | 21.305085 | 81 | 0.411297 | Nickel-Angel |
f3ba6502ac1ae470689769379110d397b47903da | 12,489 | cpp | C++ | extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp | sukoi26/JUCE | e3233ae230ac0c13f73ee2d08bd8f2c9b12c4b19 | [
"ISC",
"Unlicense"
] | 1 | 2016-08-15T14:11:21.000Z | 2016-08-15T14:11:21.000Z | extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp | sukoi26/JUCE | e3233ae230ac0c13f73ee2d08bd8f2c9b12c4b19 | [
"ISC",
"Unlicense"
] | 4 | 2019-02-11T11:52:13.000Z | 2020-10-09T06:39:18.000Z | extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp | sukoi26/JUCE | e3233ae230ac0c13f73ee2d08bd8f2c9b12c4b19 | [
"ISC",
"Unlicense"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... | 31.69797 | 118 | 0.601409 | sukoi26 |
f3bc3d85cca6953aa2fdb72863e5fa5e0f7b49ae | 406 | cpp | C++ | 12/1252. Cells with Odd Values in a Matrix.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | null | null | null | 12/1252. Cells with Odd Values in a Matrix.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | 1 | 2021-12-25T10:33:23.000Z | 2022-02-16T00:34:05.000Z | 12/1252. Cells with Odd Values in a Matrix.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | null | null | null | class Solution {
public:
int oddCells(int n, int m, vector<vector<int>>& indices) {
vector<char> row(n), col(m);
for(auto &p : indices) {
row[p[0]] ^= 1;
col[p[1]] ^= 1;
}
int odd_row = count(row.begin(), row.end(), 1);
int odd_col = count(col.begin(),... | 29 | 62 | 0.480296 | eagleoflqj |
f3bd4cc65abe5ab8574c58d5683e5480c27636ee | 4,358 | hpp | C++ | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/ssse3/lookup.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/ssse3/lookup.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/ssse3/lookup.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... | 37.568966 | 83 | 0.465351 | psiha |
f3bd882b23304c981cc8597b8a54a839997c3928 | 1,776 | cpp | C++ | src/OpenLoco/GameCommands/ChangeLoan.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 180 | 2018-01-18T07:56:44.000Z | 2019-02-18T21:33:45.000Z | src/OpenLoco/GameCommands/ChangeLoan.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 186 | 2018-01-18T13:17:58.000Z | 2019-02-10T12:28:35.000Z | src/OpenLoco/GameCommands/ChangeLoan.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 35 | 2018-01-18T12:38:26.000Z | 2018-11-14T16:01:32.000Z | #include "../CompanyManager.h"
#include "../Economy/Economy.h"
#include "../Localisation/StringIds.h"
#include "../Ui/WindowManager.h"
#include "GameCommands.h"
using namespace OpenLoco::Interop;
namespace OpenLoco::GameCommands
{
// 0x0046DE88
static uint32_t changeLoan(const currency32_t newLoan, const uint... | 31.714286 | 130 | 0.608108 | JimmyAllnighter |
f3c03b0daea9ca0d5c3e8d5fbc08a11e39101eb5 | 1,046 | hpp | C++ | llog/loggable.hpp | Roslaniec/LLog | b75930e137a90f12fa9b5ade2b998e27d2da81ec | [
"MIT"
] | 2 | 2020-07-24T18:23:14.000Z | 2021-05-02T10:42:51.000Z | llog/loggable.hpp | Roslaniec/LLog | b75930e137a90f12fa9b5ade2b998e27d2da81ec | [
"MIT"
] | null | null | null | llog/loggable.hpp | Roslaniec/LLog | b75930e137a90f12fa9b5ade2b998e27d2da81ec | [
"MIT"
] | 2 | 2018-04-04T13:54:56.000Z | 2019-08-28T20:33:59.000Z | //
// Copyright (C) 2013 Karol Roslaniec <llog@roslaniec.net>
//
#ifndef LINKO_LOGGABLE_HPP
#define LINKO_LOGGABLE_HPP
#include "logger.hpp"
#include "loglevel.hpp"
/*
* Normally Log instances are created for each thread.
* Loggable/Logger classes create Log instance for a single object (module).
* Motivation fo... | 16.34375 | 76 | 0.623327 | Roslaniec |
f3c0531d6ea7fcb8eeb8ca82263e885c8b03a7f3 | 1,111 | cpp | C++ | core/runtime/binaryen/runtime_api/metadata_impl.cpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | core/runtime/binaryen/runtime_api/metadata_impl.cpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | core/runtime/binaryen/runtime_api/metadata_impl.cpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "runtime/binaryen/runtime_api/metadata_impl.hpp"
namespace kagome::runtime::binaryen {
using primitives::OpaqueMetadata;
MetadataImpl::MetadataImpl(
const std::shared_ptr<RuntimeEnvironmentFactory>... | 34.71875 | 79 | 0.718272 | igor-egorov |
f3c51551c8b30ae7dfe299ad87002fdbcc97fc3c | 3,196 | cpp | C++ | examples/lowlevel/benchmark_getifaddrs.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | 3 | 2020-02-13T02:08:06.000Z | 2020-10-06T16:26:30.000Z | examples/lowlevel/benchmark_getifaddrs.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | examples/lowlevel/benchmark_getifaddrs.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2020, Grigory Buteyko aka Hrissan
// Licensed under the MIT License. See LICENSE for details.
// This code is based on work of https://gist.github.com/alessandro40/7e24df0a17803b71bbdf
// Answers the following question - will filling UDP buffer return EAGAIN from sendto (expected, allows 100% ch... | 29.321101 | 116 | 0.679599 | hrissan |
f3cdb83991c26672aeb097a3c65d862867469b00 | 1,306 | cpp | C++ | Source/KEngine/src/KEngine/Entity/Entity.cpp | yxbh/KEngine | 04d2aced738984f53bf1b2b84b49fbbabfbe6587 | [
"Zlib"
] | 1 | 2020-05-29T03:30:08.000Z | 2020-05-29T03:30:08.000Z | Source/KEngine/src/KEngine/Entity/Entity.cpp | yxbh/KEngine | 04d2aced738984f53bf1b2b84b49fbbabfbe6587 | [
"Zlib"
] | null | null | null | Source/KEngine/src/KEngine/Entity/Entity.cpp | yxbh/KEngine | 04d2aced738984f53bf1b2b84b49fbbabfbe6587 | [
"Zlib"
] | null | null | null | #include <KEngine/Entity/Entity.hpp>
#include <KEngine/Entity/EntityComponentID.hpp>
#include <KEngine/Entity/IEntityComponent.hpp>
#include <cassert>
namespace ke
{
Entity::Entity(const ke::EntityID p_ID)
: m_EntityID(p_ID)
{}
Entity::Entity(ke::Entity && p_rrEntity)
: m_ComponentSPMap(std::move(p_rrEntit... | 27.208333 | 115 | 0.712098 | yxbh |
f3d138a0c233bb7ae6d56da60ceeb78fcfaa0298 | 896 | hpp | C++ | libs/scenic/include/sge/scenic/render_context/manager_base.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/scenic/include/sge/scenic/render_context/manager_base.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/scenic/include/sge/scenic/render_context/manager_base.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_SCENIC_RENDER_CONTEXT_MANAGER_BASE_HPP_INCLUDED
#define SGE_SCENIC_RENDER_CONTEXT_MANAG... | 25.6 | 68 | 0.768973 | cpreh |
f3d5e5c9725dab8afe3bcbcae2d3126cb8eb97af | 258 | cpp | C++ | src/Networking/log.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/log.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/log.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null |
#include "log.h"
#include <iostream>
int LOG_LEVEL = LOG_INFO;
int LOG_DEBUG = 0;
int LOG_INFO = 1;
int LOG_WARN = 2;
int LOG_ERROR = 3;
void log(int level, std::string const &msg)
{
if (level >= LOG_LEVEL)
{
std::cout << msg << std::endl;
}
}
| 13.578947 | 43 | 0.624031 | jonahbardos |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.