hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c403ff5a3810febf624d8bd9279b6b4689089dc7 | 15,300 | hpp | C++ | include/multiformats/multicodec.hpp | matt1795/multiformats | 52dac14cad10c0e3066bc20d068f8475b9cde0ea | [
"MIT"
] | null | null | null | include/multiformats/multicodec.hpp | matt1795/multiformats | 52dac14cad10c0e3066bc20d068f8475b9cde0ea | [
"MIT"
] | null | null | null | include/multiformats/multicodec.hpp | matt1795/multiformats | 52dac14cad10c0e3066bc20d068f8475b9cde0ea | [
"MIT"
] | null | null | null | // Multicodec -- self-describing serialization
//
// Author: Matthew Knight
// File Name: multicodec.hpp
// Date: 2019-09-12
// Multicode: self-des
//
// Author: Matthew Knight
// File Name: varint.hpp
// Date: 2019-09-12
#pragma once
#include "varint.hpp"
#include <unordered_map>
namespace Multiformats::Multicodec... | 34 | 72 | 0.462353 | matt1795 |
c404c9bd1852b6a0b6a16a8985f4edd9e05ff1a1 | 3,677 | cpp | C++ | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include <cstring>
#include <map>
#include <vector>
#include <algorithm>
#include "fml32.h"
using namespace std;
map<string, int> field_types = { {"short", FLD_SHORT},
{"long", FLD_LON... | 25.013605 | 86 | 0.468045 | georgekap1an |
c406b67425e72a0706e0b857c7b610d383085ed7 | 1,285 | cpp | C++ | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | #include "communicator.h"
#include "buggy.h"
#define TELEMETRY_SEND_INTERVAL_MS 20
Communicator::Communicator() :
rx_len(0), tx_len(0), hdlc(rx_buffer, 255) {
}
Communicator::~Communicator() {
}
void Communicator::setup() {
SERIALDEV.begin(57600);
}
void Communicator::send_telemetry(bc_telemetry_packet... | 25.7 | 105 | 0.703502 | rustbuggy |
c407af2e873f201a2050a01ec30a53118ba9d4a5 | 6,854 | cc | C++ | tensorflow/compiler/tf2tensorrt/convert/ops/binary_ops.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | 1 | 2022-03-18T17:36:11.000Z | 2022-03-18T17:36:11.000Z | tensorflow/compiler/tf2tensorrt/convert/ops/binary_ops.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/tf2tensorrt/convert/ops/binary_ops.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 36.457447 | 80 | 0.680041 | TheRakeshPurohit |
c40c1d04c07da1e11bdf85f84f5de02707442315 | 7,955 | cpp | C++ | api/core/nodejs/NJSHttpRequestCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSHttpRequestCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSHttpRequestCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from http_client.djinni
#include "NJSHttpRequestCpp.hpp"
using namespace v8;
using namespace node;
using namespace std;
NAN_METHOD(NJSHttpRequest::getMethod) {
//Check if method called with right number of arguments
if(info.Length() != ... | 32.736626 | 133 | 0.684098 | kodxana |
c410f0432ed40acfb602906bd40567884995f094 | 4,384 | hxx | C++ | src/B200Control.hxx | kb1vc/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 14 | 2017-10-27T16:01:05.000Z | 2021-03-16T08:12:42.000Z | src/B200Control.hxx | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 11 | 2017-09-16T03:13:11.000Z | 2020-12-11T09:11:35.000Z | src/B200Control.hxx | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 6 | 2017-09-13T12:47:43.000Z | 2020-12-02T20:54:25.000Z | /*
Copyright (c) 2015, Matthew H. Reilly (kb1vc)
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 conditi... | 33.465649 | 76 | 0.697765 | kb1vc |
c414c54065c421c49d58c31d44f944112adfe4a8 | 689 | cpp | C++ | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #include "Arduino.h"
int initialValue = OSCCAL;
void setup() {
OSCCAL = 152;
Serial.begin(115200);
Serial.print("Factory OSCCAL value: ");
Serial.println(initialValue);
delay(1000);
int start = initialValue - 30;
int end = initialValue + 30;
for(int i = start; i <= end; i++) {
OSCCAL = i;
Se... | 20.264706 | 80 | 0.63135 | chacal |
c41ad1f3189dbe817d84577affcaa45b525c0d2d | 7,028 | cpp | C++ | src/WMIMapper/WMIProvider/WMIAssociatorProvider.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/WMIMapper/WMIProvider/WMIAssociatorProvider.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/WMIMapper/WMIProvider/WMIAssociatorProvider.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | 1 | 2022-03-07T22:54:02.000Z | 2022-03-07T22:54:02.000Z | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | 30.960352 | 86 | 0.601736 | ncultra |
c41b4b5918c025516f31de6bedf75081b80944b7 | 4,667 | cc | C++ | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | #include "ts_date.h"
#include <iostream>
namespace timestamp {
/**
* Date - class constructor
* @_date_separator: date separator specifier
* @_date_format: date format specifier
*
* This constructor creates an object of the Date class. This also sets variables
* date_separator and date_format by values giv... | 42.816514 | 84 | 0.501393 | viild |
c42248c19c9cc378643079329c525eae88ba2b59 | 650 | cpp | C++ | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | #include "cells.hpp"
double distance(cell_ptr_type const& cell, cell_ptr_type const& candidate)
{
std::int64_t const x_distance(cell->x - candidate->x);
std::int64_t const y_distance(cell->y - candidate->y);
return std::sqrt((x_distance * x_distance) + (y_distance * y_distance));
}
void nearest(cell_ptr_type con... | 27.083333 | 124 | 0.750769 | mdyring |
c42518839cae6410547324002541980702a5a16f | 5,739 | cpp | C++ | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | /*!
* This is a template code to demonstrate how to measure runtime of part of your code.
* I'm using the chrono C++ library.
* @date September 8th, 2020.
* @author Selan
*/
#include <iostream>
#include "../include/sorting.h"
using namespace sa;
using namespace scenario;
int main(int argc, char* argv[])
{
... | 32.241573 | 147 | 0.520822 | fernando-ff |
c427e994ecf404db3580dad5752fd8d515da6ca9 | 929 | cpp | C++ | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | #include "Button.h"
Button::Button()
{
initial_pos = { 0,0 };
position = { 0,0 };
state = IDLE;
type = UIType::BUTTON;
action = NO_ACTION;
parent = nullptr;
callback = nullptr;
visible = true;
color = GREY;
movable = false;
is_moving = false;
}
Button::Butto... | 18.58 | 119 | 0.629709 | DavidTello1 |
c42afb3fa52986dae505e3caccfae1a6374c7b86 | 2,154 | cpp | C++ | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z |
#include "stdafx.h"
char _szLogFilePath[MAX_PATH] = _T("");
bool _bEnableLogFile = TRUE;
#define MAX_LOG_FILE_SIZE (10*1024*1024)
void LOG_TO_FILE(const char* szMsg, ... )
{
int nBuf;
CFile file;
BOOL result=FALSE;
TCHAR szLog[MAX_PATH];
TCHAR szBuffer[MAX_PATH];
SYSTEMTIME time;
DWORD dw... | 24.477273 | 96 | 0.665738 | cuongquay |
c42b6a0e93098a30341ca88730d5da4230d28d46 | 1,839 | cpp | C++ | core/src/attribute/attr_op_ctx.cpp | qf6101/algorithm-components | f7307e4bd9697ee473d5763e0a61df7891b699f6 | [
"Apache-2.0"
] | 2 | 2019-11-27T11:43:45.000Z | 2020-11-09T09:21:23.000Z | core/src/attribute/attr_op_ctx.cpp | qf6101/algorithm-components | f7307e4bd9697ee473d5763e0a61df7891b699f6 | [
"Apache-2.0"
] | null | null | null | core/src/attribute/attr_op_ctx.cpp | qf6101/algorithm-components | f7307e4bd9697ee473d5763e0a61df7891b699f6 | [
"Apache-2.0"
] | 2 | 2019-12-16T18:54:17.000Z | 2020-02-24T07:52:24.000Z | //
// Created by qfeng on 2019-01-08.
//
#include "attribute/attr_op_ctx.h"
namespace algocomp {
bool AttrOpCtx::parse_patterns(const string in_aname, const string out_gname, const string out_fname,
const string proc_desc, const string param_desc) {
// Check the lengths ... | 34.055556 | 120 | 0.578575 | qf6101 |
c42bd72bc949eae469cdb64fb79257ba0a6f03c7 | 337 | cpp | C++ | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int sum = 0,prev = 0,n,curr,mx = -1;
cin>>n;
for(int i=0;i<n;i++){
cin>>curr;
mx = max(mx, curr);
sum+=(prev - curr);
prev = curr;
}
if(-mx < sum){
cout<<mx<<endl;
}else{
cout<<(-sum)<<endl;
... | 18.722222 | 40 | 0.445104 | Darknez07 |
c42ef21b974a5abebada1141571cd117b3940722 | 6,072 | hpp | C++ | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 23 | 2015-04-22T19:50:01.000Z | 2021-12-14T03:15:28.000Z | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 2 | 2015-12-03T01:57:57.000Z | 2017-08-02T10:35:16.000Z | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 7 | 2015-04-24T18:50:05.000Z | 2021-09-01T22:26:16.000Z | #ifndef __RANK_TREE_H__
#define __RANK_TREE_H__
#define __STDC_LIMIT_MACROS
#include <cstdint>
#include <set>
#include <string>
using namespace std;
class RankTree;
class RankTreeNode;
/*
This file contains two classes that implement a treap-based
RankTree. A RankTree is an unsorted (i.e. not sorted by the valu... | 30.512563 | 70 | 0.716074 | jcipar |
c431a77079049e64dc2de53094506c3399cfd1ea | 7,501 | cpp | C++ | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | 2 | 2022-01-29T08:51:50.000Z | 2022-02-22T12:07:09.000Z | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | #include "QtNodeWidget.h"
#include "Node.h"
#include "NodePort.h"
#include "Common.h"
#include "FInstance.h"
#include "Field.h"
namespace Qt
{
QtNodeWidget::QtNodeWidget(std::shared_ptr<Node> base)
{
mNode = base;
if (mNode != nullptr)
{
//initialize in node ports
auto inputs = mNode->getImportNodes(... | 22.730303 | 176 | 0.669111 | hanxingyixue |
c43258d612d7a20d4320976bd321012ea237f7f3 | 11,239 | cpp | C++ | car_control/four_wheels/src/stm32.cpp | MingshanHe/hybrid_robot_demo | 49fdd466bc9936acf947a18f2f66348e981360ff | [
"MIT"
] | 2 | 2021-11-18T14:23:35.000Z | 2022-03-16T08:17:16.000Z | car_control/four_wheels/src/stm32.cpp | MingshanHe/hybrid_robot_demo | 49fdd466bc9936acf947a18f2f66348e981360ff | [
"MIT"
] | null | null | null | car_control/four_wheels/src/stm32.cpp | MingshanHe/hybrid_robot_demo | 49fdd466bc9936acf947a18f2f66348e981360ff | [
"MIT"
] | null | null | null | //ROS headers
#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include "std_msgs/String.h"
#include "sensor_msgs/JointState.h"
#include "std_msgs/Float64MultiArray.h"
#include "std_msgs/Int64MultiArray.h"
#include "nav_msgs/Odometry.h"
#include "sensor_msgs/Range.h"
#include <tf/transform_broadcaster.h>
#include ... | 25.25618 | 118 | 0.634309 | MingshanHe |
c43c00bdcc437ef647e6ce9b56c6a0577620bd87 | 317 | hpp | C++ | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | #ifndef LIST_H
#define LIST_H
#include <iostream>
#include <cstdlib>
struct Node{
int _value;
Node *_next;
};
struct List{
Node *_head;
Node *_toe;
int _size;
List();
void insert(int value);
void remove(int value);
void print();
void clearList();
int removeFirst();
int indexOf(int value);
};
#endif | 12.192308 | 24 | 0.678233 | pganaclara |
c43c3810a2fcb02d8fefa698ad44adb50bc57366 | 469 | hpp | C++ | src/shared/Constants.hpp | darkenk/soldat_cpp | 5d455bbb4f8a82dd6316642a96917f2de2cedec6 | [
"Zlib"
] | 3 | 2022-01-21T10:38:06.000Z | 2022-02-01T16:44:46.000Z | src/shared/Constants.hpp | darkenk/soldat_cpp | 5d455bbb4f8a82dd6316642a96917f2de2cedec6 | [
"Zlib"
] | null | null | null | src/shared/Constants.hpp | darkenk/soldat_cpp | 5d455bbb4f8a82dd6316642a96917f2de2cedec6 | [
"Zlib"
] | null | null | null | #pragma once
#include "common/Constants.hpp"
#include <string_view>
namespace Constants
{
#if SERVER
constexpr std::int32_t MAX_PUSHTICK = 0;
#else
constexpr std::int32_t MAX_PUSHTICK = 125;
#endif
#if !SERVER
constexpr std::int32_t WEP_RESTRICT_WIDTH = 64;
constexpr std::int32_t WEP_RESTRICT_HEIGHT = 64;
constexpr ... | 19.541667 | 48 | 0.773987 | darkenk |
c43f941882e34e24e3847d5a088a4dd6c6c05ad7 | 1,588 | hpp | C++ | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 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 appl... | 27.859649 | 80 | 0.702141 | Rouein |
c43f960bc7bc771bbfe611a40384bad0874f9ead | 500 | cpp | C++ | cpp-prime/c3/ex3-17.cpp | XiaochenCui/cpp-study | b18a2deb3961b095e67243a8df09e50b740701a9 | [
"BSD-2-Clause"
] | null | null | null | cpp-prime/c3/ex3-17.cpp | XiaochenCui/cpp-study | b18a2deb3961b095e67243a8df09e50b740701a9 | [
"BSD-2-Clause"
] | null | null | null | cpp-prime/c3/ex3-17.cpp | XiaochenCui/cpp-study | b18a2deb3961b095e67243a8df09e50b740701a9 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by 崔晓晨 on 2019-07-13.
//
#include <vector>
#include <iostream>
using namespace std;
int main() {
vector<string> v;
string word;
while (cin >> word) {
cout << word << endl;
v.push_back(word);
}
cout << "input end" << endl;
for (auto &w: v)
for (auto &c: w... | 17.857143 | 55 | 0.448 | XiaochenCui |
c44054490a86b5f2e548ea13a7bc9f615c1c1da2 | 3,403 | cpp | C++ | game/picktransportform.cpp | spiffcode/hostile-takeover | 363c8f7f02c25f90255b28a5e2eaea784b2a502f | [
"BSD-2-Clause-FreeBSD"
] | 113 | 2015-01-07T00:37:37.000Z | 2022-03-08T17:58:24.000Z | game/picktransportform.cpp | ptitSeb/hostile-takeover | db70254a966ca3223178e669594f3b704b5471a2 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-04-13T16:16:00.000Z | 2021-06-08T04:49:09.000Z | game/picktransportform.cpp | spiffcode/hostile-takeover | 363c8f7f02c25f90255b28a5e2eaea784b2a502f | [
"BSD-2-Clause-FreeBSD"
] | 49 | 2015-01-08T04:27:35.000Z | 2022-03-08T04:55:08.000Z | #include "picktransportform.h"
namespace wi {
PickTransportForm::PickTransportForm()
{
m_ptra = NULL;
}
bool PickTransportForm::Init(FormMgr *pfrmm, IniReader *pini, word idf)
{
if (!ShellForm::Init(pfrmm, pini, idf))
return false;
m_ctrad = gtram.GetTransportDescriptions(m_atrad, kctrad... | 25.395522 | 105 | 0.624743 | spiffcode |
c44189af9440f3c37acb9d41835c67f360cdebec | 13,746 | cpp | C++ | CBP/CBP/Template.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 3 | 2020-06-21T18:10:19.000Z | 2021-02-05T21:33:18.000Z | CBP/CBP/Template.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 2 | 2020-08-29T14:29:19.000Z | 2020-09-10T18:40:52.000Z | CBP/CBP/Template.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 4 | 2020-08-25T17:56:35.000Z | 2021-11-25T09:39:47.000Z | #include "pch.h"
#include "Template.h"
#include "Drivers/cbp.h"
#include "Drivers/data.h"
#include "Drivers/tasks.h"
namespace CBP
{
ITemplate ITemplate::m_Instance;
ITemplate::ITemplate() :
m_dataPhysics("^[a-zA-Z0-9_\\- ]+$"),
m_dataNode("^[a-zA-Z0-9_\\- ]+$")
{
}
TRecPlugin::... | 29.371795 | 114 | 0.427615 | clayne |
c451dd0429e13c18467bad9561ae85fed6c0d775 | 4,557 | cpp | C++ | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <eosio/asset.hpp>
#include <eosio/crypto.hpp>
#include <document_graph/document.hpp>
#include <document_graph/content_wrapper.hpp>
#include <common.hpp>
#include <util.hpp>
#include <proposals/suspend_proposal.hpp>
#include <assignment.hpp>
#include <period.hpp>
#include <logger/logger.... | 31.645833 | 111 | 0.608075 | josejulio |
c452ebadb7f1449e7544266d9ccd6ff610a13784 | 9,964 | cc | C++ | cc/signature/rsa_ssa_pss_verify_key_manager_test.cc | ishworgurung/tink | a534939d24261604f703003ae91e493cfdedc8d5 | [
"Apache-2.0"
] | 1 | 2019-03-31T07:52:05.000Z | 2019-03-31T07:52:05.000Z | cc/signature/rsa_ssa_pss_verify_key_manager_test.cc | J-Sarkcess/tink | ba64189ae1a44c2935f060a4de06bdc2df721a93 | [
"Apache-2.0"
] | 1 | 2020-11-11T16:45:00.000Z | 2020-11-11T16:45:00.000Z | cc/signature/rsa_ssa_pss_verify_key_manager_test.cc | J-Sarkcess/tink | ba64189ae1a44c2935f060a4de06bdc2df721a93 | [
"Apache-2.0"
] | 1 | 2019-09-20T01:59:16.000Z | 2019-09-20T01:59:16.000Z | // Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 40.016064 | 95 | 0.721397 | ishworgurung |
c4537ba4537cc9b03abcf586ad609e65902780fd | 178,970 | cpp | C++ | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | #include "../GameEngineCore/HardwareRenderer.h"
#include "CoreLib/WinForm/Debug.h"
#include "CoreLib/VectorMath.h"
#include "CoreLib/PerformanceCounter.h"
#include "../Engine.h"
#include "CoreLib/ShortList.h"
#include "CoreLib/LibIO.h"
#include "volk.h"
#include "vulkan.hpp"
#include <mutex>
// Only execute actions of... | 37.630362 | 204 | 0.709493 | csyonghe |
c453e694b608ec8aaf75c2c292ce965af3712fc3 | 1,740 | cpp | C++ | compiled/cpp_stl_11/expr_io_pos.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 4 | 2017-04-08T12:55:11.000Z | 2020-12-05T21:09:31.000Z | compiled/cpp_stl_11/expr_io_pos.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 7 | 2018-04-23T01:30:33.000Z | 2020-10-30T23:56:14.000Z | compiled/cpp_stl_11/expr_io_pos.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 6 | 2017-04-08T11:41:14.000Z | 2020-10-30T22:47:31.000Z | // This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "expr_io_pos.h"
expr_io_pos_t::expr_io_pos_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, expr_io_pos_t* p__root) : kaitai::kstruct(p__io) {
m__parent = p__parent;
m__root = this;
m_substrea... | 35.510204 | 152 | 0.73046 | smarek |
c4553de6373a9657acb50c651dc4c0b91d3cef5e | 3,529 | hpp | C++ | qtgui/soda_comboboxes.hpp | kb1vc/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 14 | 2017-10-27T16:01:05.000Z | 2021-03-16T08:12:42.000Z | qtgui/soda_comboboxes.hpp | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 11 | 2017-09-16T03:13:11.000Z | 2020-12-11T09:11:35.000Z | qtgui/soda_comboboxes.hpp | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 6 | 2017-09-13T12:47:43.000Z | 2020-12-02T20:54:25.000Z | /*
Copyright (c) 2017 Matthew H. Reilly (kb1vc)
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 and... | 27.356589 | 90 | 0.672428 | kb1vc |
c45750110fd1766af0cb80565f33cf45b2902093 | 1,118 | cpp | C++ | Phoebe-core/src/ph/debug/PerformanceInfo.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | 1 | 2017-02-26T23:37:37.000Z | 2017-02-26T23:37:37.000Z | Phoebe-core/src/ph/debug/PerformanceInfo.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | null | null | null | Phoebe-core/src/ph/debug/PerformanceInfo.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | null | null | null | #include "PerformanceInfo.h"
#include "ph/app/Application.h"
namespace ph { namespace debug {
using namespace math;
using namespace renderer;
PerformanceInfo::PerformanceInfo()
: Layer2D(ShaderManager::Get("Font"), Mat4::Orthographic(-16.0f, 16.0f, -9.0f, 9.0f, -1.0f, 1.0f)) {
}
PerformanceInfo::~Performance... | 31.942857 | 117 | 0.676208 | JRBonilla |
c4577e5ca14344a5247089b2e3adaa0551c37da3 | 2,299 | hpp | C++ | hw4/sdb.hpp | ss8651twtw/Unix-Programming | bf6f132e03d1c57ee901dcba2104db102051052e | [
"MIT"
] | 19 | 2019-10-20T09:02:12.000Z | 2022-03-28T20:07:06.000Z | hw4/sdb.hpp | ss8651twtw/Unix-Programming | bf6f132e03d1c57ee901dcba2104db102051052e | [
"MIT"
] | null | null | null | hw4/sdb.hpp | ss8651twtw/Unix-Programming | bf6f132e03d1c57ee901dcba2104db102051052e | [
"MIT"
] | 3 | 2021-05-27T03:20:34.000Z | 2021-06-18T07:35:38.000Z | #pragma once
#include <string>
#include <sstream>
#include <vector>
#define PB push_back
#define NOLOAD 0
#define LOADED 1
#define RUNNING 2
#define MAXASM 0x100
using namespace std;
typedef vector<string> VS;
typedef long long LL;
typedef unsigned char UC;
struct breakpoint {
int id;
LL addr;
UC or... | 19.649573 | 69 | 0.552414 | ss8651twtw |
c45bf601ddc8ca5628cb190857128f9a5577812f | 1,794 | cpp | C++ | liftoff-physics/liftoff-physics/driven_body.cpp | AgentTroll/liftoff | d300cbc716c811dca036527b99c0537ed1a6dbf6 | [
"Apache-2.0"
] | 1 | 2021-10-30T05:59:36.000Z | 2021-10-30T05:59:36.000Z | liftoff-physics/liftoff-physics/driven_body.cpp | caojohnny/liftoff | d300cbc716c811dca036527b99c0537ed1a6dbf6 | [
"Apache-2.0"
] | null | null | null | liftoff-physics/liftoff-physics/driven_body.cpp | caojohnny/liftoff | d300cbc716c811dca036527b99c0537ed1a6dbf6 | [
"Apache-2.0"
] | null | null | null | #include "driven_body.h"
namespace liftoff {
driven_body::driven_body(double body_mass, d_idx_t db_driver_idx, int body_derivatives, double db_time_step) :
body(body_mass, body_derivatives), driver_idx(db_driver_idx), time_step(db_time_step) {
for (int i = 0; i < body_derivatives; ++i) {
... | 28.03125 | 114 | 0.576923 | AgentTroll |
c45cccdafbadfaeff80917ea46b7c84afd239ef4 | 15,287 | cc | C++ | gazebo/physics/ModelState.cc | harderthan/gazebo | f00a0e4239ddb08b299dc21ab1ef106ecedb0fac | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2015-04-06T16:17:36.000Z | 2015-04-06T16:17:36.000Z | gazebo/physics/ModelState.cc | harderthan/gazebo | f00a0e4239ddb08b299dc21ab1ef106ecedb0fac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/ModelState.cc | harderthan/gazebo | f00a0e4239ddb08b299dc21ab1ef106ecedb0fac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2015 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 ... | 27.744102 | 82 | 0.596127 | harderthan |
c46026e88d71cf275f6bd0d46af96202541d9c9f | 3,448 | hpp | C++ | src/frovedis/matrix/cir_array_list.hpp | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | src/frovedis/matrix/cir_array_list.hpp | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | src/frovedis/matrix/cir_array_list.hpp | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #ifndef _C_ARRAY_LIST_HPP_
#define _C_ARRAY_LIST_HPP_
#include <vector>
#include "../core/exceptions.hpp"
#include <boost/lexical_cast.hpp>
#define ITOS boost::lexical_cast<std::string>
namespace frovedis {
template <class T>
struct cir_array_list {
explicit cir_array_list(size_t size=10):
rear(-1), front(-1... | 24.985507 | 80 | 0.632251 | XpressAI |
c465c8d17760be36b0247edede5e4117f865bfaa | 1,578 | cc | C++ | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include "media_factory_sdl.hpp"
#include "image_sdl.hpp"
#include "window_manager_sdl.hpp"
MediaFactorySdl::MediaFactorySdl() {
initialiseSdl();
}
MediaFactorySdl::~MediaFactorySdl() {
Mix_FreeMusic(music_);
musi... | 23.909091 | 108 | 0.688213 | Jaween |
c465cfdf9a8e67089fa4a6fd52040316b1aea520 | 3,956 | cpp | C++ | Competitive Programming/Practice(Div.2 A)/TreeAndQueries_CF_375D.cpp | Brabec/Hacktoberfest2020 | d3a85850a462ab24abf59d68b5142e0b61b5ce37 | [
"MIT"
] | null | null | null | Competitive Programming/Practice(Div.2 A)/TreeAndQueries_CF_375D.cpp | Brabec/Hacktoberfest2020 | d3a85850a462ab24abf59d68b5142e0b61b5ce37 | [
"MIT"
] | null | null | null | Competitive Programming/Practice(Div.2 A)/TreeAndQueries_CF_375D.cpp | Brabec/Hacktoberfest2020 | d3a85850a462ab24abf59d68b5142e0b61b5ce37 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define int long long int
#define ll long long
#define quickie ios_base::sync_with_stdio(false); cin.tie(NULL);
#define rep(i, a, b) for(int i=a; i<b; i++)
#define rep1(i, a, b) for(int i=a; i<=b; i++)
#define repp(i, a, b) for(int i=b-1; i>=a; i--)
#define pb push_back
#de... | 21.15508 | 106 | 0.471183 | Brabec |
c466dadaccef19813483ba8370f6b329ac159cbb | 711 | cpp | C++ | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR_CORE | 4d4e77bf643dc9b98de9f38445eae690290e1895 | [
"MIT"
] | 3 | 2020-12-13T19:53:17.000Z | 2021-12-29T14:53:35.000Z | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR_CORE | 4d4e77bf643dc9b98de9f38445eae690290e1895 | [
"MIT"
] | 1 | 2021-10-06T09:36:34.000Z | 2021-10-09T03:46:37.000Z | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR | c08dfce35ccaa4bde046eb5b9e94d53eb65e7586 | [
"MIT"
] | null | null | null | #include "gear_core_common.h"
#include "Timer.h"
using namespace gear;
using namespace core;
Timer::Timer()
{
m_StartTimePoint = std::chrono::system_clock::now();
m_NowTimePoint = std::chrono::system_clock::now();
}
Timer::~Timer()
{
}
void Timer::Update()
{
GetDeltaTime();
}
double Timer::GetTime()
{
m_NowTim... | 16.928571 | 55 | 0.739803 | AndrewRichards-Code |
c466dcdd1f20af1289d978da91deb2db339b9179 | 2,811 | cpp | C++ | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | 3 | 2018-05-29T12:18:08.000Z | 2018-06-20T16:14:13.000Z | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | null | null | null | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | null | null | null | #include "GameApp.h"
using namespace DirectX;
GameApp::GameApp(HINSTANCE hInstance)
: D3DApp(hInstance)
{
}
GameApp::~GameApp()
{
}
bool GameApp::Init()
{
if (!D3DApp::Init())
return false;
if (!InitResource())
return false;
return true;
}
void GameApp::Compute()
{
assert(m_pd... | 31.943182 | 129 | 0.708645 | MKXJun |
c467869984f55a64d01d2ba3444c5246a1b017b0 | 2,048 | hpp | C++ | src/librcl/scene_encoder.hpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | 17 | 2019-03-12T14:52:22.000Z | 2021-11-09T01:16:23.000Z | src/librcl/scene_encoder.hpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | null | null | null | src/librcl/scene_encoder.hpp | s3a-spatialaudio/VISR | 55f6289bc5058d4898106f3520e1a60644ffb3ab | [
"ISC"
] | 2 | 2019-08-11T12:53:07.000Z | 2021-06-22T10:08:08.000Z | /* Copyright Institute of Sound and Vibration Research - All rights reserved */
#ifndef VISR_LIBRCL_SCENE_ENCODER_HPP_INCLUDED
#define VISR_LIBRCL_SCENE_ENCODER_HPP_INCLUDED
#include "export_symbols.hpp"
#include <libvisr/atomic_component.hpp>
#include <libvisr/constants.hpp>
#include <libvisr/parameter_input.hpp>
#... | 29.257143 | 122 | 0.737305 | s3a-spatialaudio |
c467b7e1d8f23903c808048aaf4e21c7effcd1c6 | 1,104 | cpp | C++ | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
/*n=3
3
1 3 6
1 3 6
1 6 3
3 1 6
3 6 1
6 1 3
6 3 1
*/
vector<vector<int>> permute(vector<int> &num)
{
... | 18.098361 | 84 | 0.48913 | anujjain5699 |
c469ae0d20e412b6b651b03d9b5b605532924a60 | 3,075 | hpp | C++ | llarp/net/net_addr.hpp | tewinget/loki-network | 556277a2609dfc7417a67a61c1a5e3951640c764 | [
"Zlib"
] | 1 | 2021-02-10T03:41:22.000Z | 2021-02-10T03:41:22.000Z | llarp/net/net_addr.hpp | tzf-key/loki-network | 01b3c0363caa746abf0fa52d27ffef1c84141cc3 | [
"Zlib"
] | 2 | 2019-12-19T15:37:07.000Z | 2020-01-31T19:42:28.000Z | llarp/net/net_addr.hpp | tzf-key/loki-network | 01b3c0363caa746abf0fa52d27ffef1c84141cc3 | [
"Zlib"
] | null | null | null | #ifndef LLARP_NET_ADDR_HPP
#define LLARP_NET_ADDR_HPP
#include <net/address_info.hpp>
#include <net/net.h>
#include <net/net.hpp>
#include <util/string_view.hpp>
#include <net/net_int.hpp>
#include <string>
namespace llarp
{
// real work
struct Addr
{
// network order
sockaddr_in6 _addr;
sockaddr_i... | 17.877907 | 75 | 0.602276 | tewinget |
c46a08da8a12a35a95113790233bd223db6b80b4 | 376 | cpp | C++ | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
int x, y;
int station[4];
int main() {
// 조건에 맞게 실행하면 된다
for (int i = 0; i < 4; i++) {
scanf("%d %d", &x, &y);
station[i] = station[i - 1] - x;
station[i] = station[i] + y;
}
printf("%d\n", max(statio... | 20.888889 | 83 | 0.489362 | KimBoWoon |
c46ac87562bbd364481c80a2db80feb7f61e5bcc | 504 | cpp | C++ | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | /**
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#include <iostream>
#include <exception>
void error( const std::string &what)
{
throw std::runtime_error( what);
}
int main(int argc, char* argv[])... | 15.75 | 66 | 0.595238 | DannyHavenith |
c46bafdebaa88d95ca854cbed10fd83fd8e896ab | 2,431 | cc | C++ | src/chrome/app/breakpad_field_trial_win.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | chrome/app/breakpad_field_trial_win.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | chrome/app/breakpad_field_trial_win.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright (c) 2012 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 "chrome/app/breakpad_field_trial_win.h"
#include "base/lazy_instance.h"
#include "base/string_util.h"
#include "base/string16.h"
#include "b... | 41.20339 | 80 | 0.744961 | jxjnjjn |
c46bb90f4171afb1b290cd9bcaf163f5c6ba264e | 6,586 | cpp | C++ | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 27.90678 | 104 | 0.684482 | AnthonyM |
c46ce61033da4da5bcced60f1ac8e2280f66df5b | 355 | hpp | C++ | ddbtoaster/experiments/src/tpch/query12.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 38 | 2017-09-29T08:12:31.000Z | 2022-03-31T03:56:20.000Z | ddbtoaster/experiments/src/tpch/query12.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 33 | 2018-04-05T02:42:39.000Z | 2022-02-18T02:13:57.000Z | ddbtoaster/experiments/src/tpch/query12.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 17 | 2017-09-29T08:16:00.000Z | 2022-02-18T04:22:29.000Z | #define USE_TPCH_ORDERS
#define USE_TPCH_LINEITEM
#ifdef BATCH_MODE
#include "codegen_batch/Tpch12VCpp.hpp"
#else
#include "codegen/Tpch12VCpp.hpp"
#endif
namespace dbtoaster
{
class data_t;
void print_result(data_t& data)
{
std::cout << "HIGH_LINE_COUNT: " << data.get_HIGH_LINE_COUNT().c... | 16.904762 | 96 | 0.676056 | szarnyasg |
c47023396d2b11a6e4bc5eec694d80d879aca542 | 631 | cpp | C++ | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | #include <maths/vector2.h>
#include <math.h>
namespace gef
{
const Vector2 Vector2::kZero(0.0f, 0.0f);
const Vector2 Vector2::kOne(1.0f, 1.0f);
void Vector2::Normalise()
{
float length = Length();
x /= length;
y /= length;
}
float Vector2::LengthSqr() const
{
return (x*x + y*y);
}
float Vector2::... | 14.674419 | 53 | 0.630745 | JD1305 |
c4704897edbdc6505338ba35d372c032016f8987 | 3,329 | cc | C++ | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file test_Mesh1D.cc
* \author Jeremy Roberts
* \date Apr 1, 2012
* \brief Test of Mesh1D class.
* \note Copyright (C) 2012 Jeremy Roberts.
*/
//---------------------------------------------------------------------------... | 26.420635 | 79 | 0.479423 | RLReed |
c4709fa177c376c60cb488f07a8d73a95f86c4d4 | 6,522 | cpp | C++ | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | 24 | 2021-03-16T13:22:08.000Z | 2022-02-20T12:43:35.000Z | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | null | null | null | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | 4 | 2021-03-16T16:38:54.000Z | 2022-01-17T17:31:55.000Z | #include "fluid-solver.hpp"
#include <iostream>
#include "util.hpp"
#include "../gl-util/fbo.hpp"
#include "../gl-util/shader.hpp"
#include "../gl-util/quad.hpp"
#include "../shaders/screen.vert"
#include "../shaders/stencil.vert"
#include "../shaders/fluid-solver/advect.frag"
#include "../shaders/fluid-solver/forc... | 25.778656 | 105 | 0.679853 | linusmossberg |
c470ab62adc02621ce365f085edd2d3ecd22735e | 170 | cpp | C++ | solutions/beecrowd/1959/1959.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 18 | 2015-01-22T04:08:51.000Z | 2022-01-08T22:36:47.000Z | solutions/beecrowd/1959/1959.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 4 | 2016-04-25T12:32:46.000Z | 2021-06-15T18:01:30.000Z | solutions/beecrowd/1959/1959.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 25 | 2015-03-02T06:21:51.000Z | 2021-09-12T20:49:21.000Z | #include <cstdint>
#include <iostream>
int main() {
uint32_t n, l;
while (std::cin >> n >> l) {
std::cout << n * l << std::endl;
}
return 0;
}
| 13.076923 | 40 | 0.482353 | deniscostadsc |
c4746985d107bc2f5bbec86fa80042245f0952ec | 5,554 | cpp | C++ | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | 2 | 2016-12-03T22:09:50.000Z | 2021-08-31T12:44:24.000Z | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2018-05-26T19:27:12.000Z | 2021-08-31T12:44:28.000Z | //$$CDS-header$$
#include "set/hdr_set.h"
#include <cds/container/michael_list_dhp.h>
#include <cds/container/split_list_set.h>
namespace set {
namespace {
struct DHP_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
type... | 35.151899 | 83 | 0.53547 | simple555a |
c47970c86327841ab6ac5370fb8a4c301bc6a496 | 22,935 | cpp | C++ | src/CrossValidation.cpp | wfondrie/percolator | bd29e37399f2ed58385287a97b555bb06642ff18 | [
"Apache-2.0"
] | null | null | null | src/CrossValidation.cpp | wfondrie/percolator | bd29e37399f2ed58385287a97b555bb06642ff18 | [
"Apache-2.0"
] | null | null | null | src/CrossValidation.cpp | wfondrie/percolator | bd29e37399f2ed58385287a97b555bb06642ff18 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
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:... | 38.872881 | 142 | 0.648398 | wfondrie |
c47b6e6d60d3b8d1b15d6d00b83fac6f1b76f623 | 11,768 | cpp | C++ | src/hir2mpl/bytecode_input/dex/src/class_loader_context.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 2 | 2019-09-06T07:02:41.000Z | 2019-09-09T12:24:46.000Z | src/hir2mpl/bytecode_input/dex/src/class_loader_context.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | src/hir2mpl/bytecode_input/dex/src/class_loader_context.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... | 41.730496 | 116 | 0.706237 | venshine |
c47b7ead145c3e58aa8d9672e76278c81ffb18e1 | 2,019 | cpp | C++ | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | 5 | 2017-04-28T10:30:36.000Z | 2019-08-26T05:53:55.000Z | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | null | null | null | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------
// <copyright file="ExceptionHandling.cpp" company="CodeValue">
// Copyright (c) 2011 by CodeValue Ltd. All rights reserved
// </copyright>
//
// http://codevalue.com
// Licensed under the Educational Community License version 1.0 (http://www... | 22.433333 | 105 | 0.583952 | alonf |
c4817c5bea747ea1744463c6b31413300f928cd8 | 7,261 | cpp | C++ | Task 3/src/main.cpp | Niapollab/Microprocessor-Architecture_5-semester | 6f7303ce85d45720ee7c847cb9969fc7cc5a1737 | [
"Apache-2.0"
] | 1 | 2021-12-20T04:44:23.000Z | 2021-12-20T04:44:23.000Z | Task 3/src/main.cpp | Niapollab/Microprocessor-Architecture_5-semester | 6f7303ce85d45720ee7c847cb9969fc7cc5a1737 | [
"Apache-2.0"
] | null | null | null | Task 3/src/main.cpp | Niapollab/Microprocessor-Architecture_5-semester | 6f7303ce85d45720ee7c847cb9969fc7cc5a1737 | [
"Apache-2.0"
] | null | null | null | #include <Arduino.h>
#ifdef __PLATFORMIO_BUILD_DEBUG__
#include <avr_debugger.h>
#endif
#include "Digit.h"
#include "State.h"
// FIXME: 5 or 7 != 0
#include <LiquidCrystal_I2C.h>
#include "LCDSerialUserInterface.h"
#include "NumberBuilder.h"
#include "Calculator.h"
#include "InterruptUtils.h"
#include <Keypad.h>
#inclu... | 24.284281 | 100 | 0.628564 | Niapollab |
c48569951844b3364da391edfc422359933cc089 | 1,048 | cpp | C++ | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | null | null | null | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | null | null | null | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | 1 | 2019-08-15T04:59:08.000Z | 2019-08-15T04:59:08.000Z | //
// Jewel.cpp
// MatchMaster
//
// Created by Ghost on 14-3-18.
//
//
#include "Jewel.h"
Jewel::Jewel():x(-1), y(-1)
{
}
Jewel::~Jewel()
{
}
bool Jewel::init()
{
return true;
}
bool Jewel::initWithJewelType(JewelType tempType)
{
if (!this->init()) return false;
type = tempType;
retur... | 18.385965 | 85 | 0.647901 | Ghost233 |
c4867c8cb97824bd50616c96010b28aa6589a24b | 2,721 | cpp | C++ | src/modules/multigrid/test/MultigridBaseTest.cpp | ess-dmsc/event-formation-un | 62a2842ea7140162ab9625d22b96f6df369ec07c | [
"BSD-2-Clause"
] | 8 | 2017-12-02T09:20:26.000Z | 2022-03-28T08:17:40.000Z | src/modules/multigrid/test/MultigridBaseTest.cpp | ess-dmsc/event-formation-un | 62a2842ea7140162ab9625d22b96f6df369ec07c | [
"BSD-2-Clause"
] | 296 | 2017-10-24T09:06:10.000Z | 2022-03-31T07:31:06.000Z | src/modules/multigrid/test/MultigridBaseTest.cpp | ess-dmsc/event-formation-un | 62a2842ea7140162ab9625d22b96f6df369ec07c | [
"BSD-2-Clause"
] | 8 | 2018-04-08T15:35:50.000Z | 2021-04-12T05:06:15.000Z | /** Copyright (C) 2018 European Spallation Source ERIC */
/** @file
*
* \brief Unit tests.
*/
#include <common/testutils/TestBase.h>
#include <multigrid/MultigridBase.h>
#include <common/testutils/TestUDPServer.h>
// \todo use reference data instead
#include <multigrid/mesytec/test/TestData.h>
class MultigridB... | 33.182927 | 87 | 0.767365 | ess-dmsc |
c4890b4eefdcb2aa0ce94060079a7a1916c33d93 | 3,546 | cpp | C++ | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | #include "oggstdafx.h"
#include "OggStreamMapper.h"
#include "OggDemuxFilter.h"
#include "OggDemuxOutputPin.h"
OggStreamMapper::OggStreamMapper(OggDemuxFilter* inParentFilter, CCritSec* inParentFilterLock):
mStreamState(STRMAP_READY),
mParentFilter(inParentFilter),
mParentFilterLock(inParentFilterLock),
mFishHeadP... | 21.754601 | 188 | 0.632262 | miahmie |
c4899eee09beb6df36ed93266dd2fd1c24838d29 | 3,365 | cpp | C++ | Atif/src/source/volumefraction.cpp | jiangj-physchem/Interface_project | 36d17fc28dc1e3dec0b9c80575242b792eb9671b | [
"MIT"
] | 15 | 2021-01-16T04:49:08.000Z | 2022-02-22T14:17:35.000Z | Atif/program/src/volumefraction.cpp | leying-w/Atif | 7d4c4e0cc8fa159912e2f634056608023257f986 | [
"MIT"
] | null | null | null | Atif/program/src/volumefraction.cpp | leying-w/Atif | 7d4c4e0cc8fa159912e2f634056608023257f986 | [
"MIT"
] | 4 | 2021-01-16T08:16:57.000Z | 2022-03-24T05:18:51.000Z | //***********solve the possion equation****************//
#include "clibrary.h"
#include "volumefraction.h"
#include "simpsonintegration.h"
#include "constantnum.h"
extern double dr;
extern short nspecies;
extern int LLIM; //the minimum lower limit of intergral
extern int ngrid; //the number of grids
extern int ngrid_... | 23.047945 | 99 | 0.453195 | jiangj-physchem |
c48b85bae19a358d7910403bc2e1c2f37226976a | 12,349 | cpp | C++ | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | 1 | 2019-03-27T15:16:06.000Z | 2019-03-27T15:16:06.000Z | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | //
// main.cpp
// ClassificationTool
//
// Created by Avraam Tapinos
// Copyright © 2018 Avraam Tapinos. All rights reserved.
//
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include "ClassificationTree.hpp"
#include "ClassificationInitiation.hpp"
#include "InstructionsClass.hpp"
#include "Pri... | 40.224756 | 226 | 0.412746 | Avramis |
c48c2ee9e3197b16a27fe91445f6d9332d26960b | 1,532 | cpp | C++ | source/consumers/add_ons/Status.cpp | ess-dmsc/daquiri | f218d9a62cdf568b4a52454f1e35d87ec262391c | [
"BSD-2-Clause"
] | 2 | 2018-03-25T05:31:44.000Z | 2019-07-25T05:17:51.000Z | source/consumers/add_ons/Status.cpp | ess-dmsc/daquiri | f218d9a62cdf568b4a52454f1e35d87ec262391c | [
"BSD-2-Clause"
] | 158 | 2017-11-16T09:20:24.000Z | 2022-03-28T11:39:43.000Z | source/consumers/add_ons/Status.cpp | ess-dmsc/daquiri | f218d9a62cdf568b4a52454f1e35d87ec262391c | [
"BSD-2-Clause"
] | 2 | 2018-09-20T08:29:21.000Z | 2020-08-04T18:34:50.000Z | #include <consumers/add_ons/Status.h>
#include <core/util/logger.h>
namespace DAQuiri {
Status Status::extract(const Spill& spill)
{
Status ret;
ret.valid = true;
ret.type = spill.type;
ret.producer_time = spill.time;
ret.consumer_time = std::chrono::system_clock::now();
ret.timebase = spill.event_model.t... | 25.114754 | 87 | 0.66188 | ess-dmsc |
c49028d1192c300940990602f81a94e14d93b315 | 1,720 | hh | C++ | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 7 | 2016-08-25T14:22:36.000Z | 2020-05-25T17:27:51.000Z | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 1 | 2018-07-11T12:37:55.000Z | 2018-07-12T00:05:33.000Z | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 2 | 2017-06-09T01:22:36.000Z | 2021-09-29T16:27:58.000Z | /*
* EHttpProxyResponse.hh
*
* Created on: 2016-6-16
* Author: cxxjava@lotuseed.com
*/
#ifndef EHTTPPROXYRESPONSE_HH_
#define EHTTPPROXYRESPONSE_HH_
#include "Efc.hh"
namespace efc {
namespace eio {
/**
* HttpProxyResponse.java - Wrapper class for HTTP requests.
*
* @author <a href="http://mina.apache... | 17.55102 | 68 | 0.656977 | developkits |
c4929eabdecbf5c91d24efca9ac82ed4aa17b111 | 1,529 | cpp | C++ | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | #include "bundlenotebook.h"
#include <QDebug>
#include <notebookconfigmgr/bundlenotebookconfigmgr.h>
#include <notebookconfigmgr/notebookconfig.h>
#include <utils/fileutils.h>
using namespace vnotex;
BundleNotebook::BundleNotebook(const NotebookParameters &p_paras,
QObject *p_parent)
... | 25.065574 | 97 | 0.717462 | lizhyumzi |
c4934fc0ce7bf9cefa9ffea2b003ffb8525b07cc | 11,857 | cpp | C++ | src/taesooLib/BaseLib/motion/COM_IKsolver.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | src/taesooLib/BaseLib/motion/COM_IKsolver.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | src/taesooLib/BaseLib/motion/COM_IKsolver.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | \
#include "stdafx.h"
#include "../math/mathclass.h"
#include "../math/optimize.h"
#include "FullbodyIK_MotionDOF.h"
#include "Motion.h"
#include "MotionUtil.h"
#include "MotionLoader.h"
#include "MotionDOF.h"
#include "IKSolver.h"
#include "VRMLloader.h"
#include "COM_IKsolver.h"
//#define DEBUG_DRAW
#ifd... | 28.030733 | 227 | 0.6909 | jackthgu |
c49555699704ba251e7aa7e167445a0e0e1da0fe | 5,439 | cpp | C++ | thirdparty/box2d-optimized/src/dynamics/b2_contact_manager.cpp | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 113 | 2020-02-25T03:19:32.000Z | 2021-05-17T09:15:40.000Z | thirdparty/box2d-optimized/src/dynamics/b2_contact_manager.cpp | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 172 | 2020-02-21T08:56:42.000Z | 2021-05-12T03:18:40.000Z | thirdparty/box2d-optimized/src/dynamics/b2_contact_manager.cpp | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 62 | 2020-02-23T14:10:16.000Z | 2021-05-14T13:53:19.000Z | // MIT License
// Copyright (c) 2019 Erin Catto
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merg... | 28.777778 | 96 | 0.702887 | rh101 |
c496dbaf648e776db621b9e232a872c94c9bbb9a | 1,759 | cpp | C++ | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "State_GBox_PortalFalling.h"
#include "Components/ArrowComponent.h"
#include "Kismet/KismetMathLibrary.h"
void UState_GBox_PortalFalling::Init(class UStateMng_GC* pMng)
{
Super::Init(pMng);
}
void UState_GBox_PortalFalling::Ent... | 23.453333 | 123 | 0.744741 | Bornsoul |
c4980ab09e9d77dbb2c8d9831116c537b0f9c153 | 6,185 | cpp | C++ | src/resqml2/GridConnectionSetRepresentation.cpp | untereiner/fesapi | 98b00320a82c88b2fda0ae0654cedd80afce317d | [
"Apache-2.0"
] | null | null | null | src/resqml2/GridConnectionSetRepresentation.cpp | untereiner/fesapi | 98b00320a82c88b2fda0ae0654cedd80afce317d | [
"Apache-2.0"
] | null | null | null | src/resqml2/GridConnectionSetRepresentation.cpp | untereiner/fesapi | 98b00320a82c88b2fda0ae0654cedd80afce317d | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 41.790541 | 248 | 0.778981 | untereiner |
7bca72dc0998bc5a01d85613d7788660c4674b5a | 2,835 | cpp | C++ | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "opentxs/core/contract/Signabl... | 18.9 | 80 | 0.635626 | nopdotcom |
7bcc1244e660d129d58a585782226d055037ca59 | 7,386 | cpp | C++ | sdk/cpp/tests/test_crud.cpp | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/cpp/tests/test_crud.cpp | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/cpp/tests/test_crud.cpp | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* ----------------------------------------------------------------
Copyright 2016 Cisco Systems
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
U... | 34.194444 | 143 | 0.710804 | ygorelik |
7bceb4b4391f4d47a51fa2ffaa23871c2b0e0154 | 1,251 | cpp | C++ | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 8 | 2022-03-13T10:25:33.000Z | 2022-03-30T08:26:00.000Z | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | null | null | null | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 2 | 2022-03-20T12:09:52.000Z | 2022-03-21T03:43:01.000Z | #include<iostream>
#include<vector>
#include<string>
using namespace std;
vector<string> vec;
void reload(string str){
for(int i = 0 ; i < str.size(); i++){
if(!isdigit(str[i])) vec.push_back(str.substr(i,1));
else{
int k = i;
while(k < str.size() && isdigit(str[k])){
... | 23.603774 | 60 | 0.446843 | Bc-Gg |
7bd08ac1997b871c58ceed62d3596283bf8e1709 | 2,548 | cpp | C++ | core/stream/MediaClientSocketStream.cpp | fritzprix/MediaPipe | b52806abeb905efef3341244cdf1b9969c773a87 | [
"BSD-2-Clause"
] | 1 | 2016-03-18T11:33:51.000Z | 2016-03-18T11:33:51.000Z | core/stream/MediaClientSocketStream.cpp | fritzprix/MediaPipe | b52806abeb905efef3341244cdf1b9969c773a87 | [
"BSD-2-Clause"
] | null | null | null | core/stream/MediaClientSocketStream.cpp | fritzprix/MediaPipe | b52806abeb905efef3341244cdf1b9969c773a87 | [
"BSD-2-Clause"
] | 1 | 2022-02-08T05:11:20.000Z | 2022-02-08T05:11:20.000Z | /*
* MediaClientSocketStream.cpp
*
* Created on: Mar 24, 2016
* Author: innocentevil
*/
#include "MediaClientSocketStream.h"
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <stdint.h>
#incl... | 22.156522 | 80 | 0.707221 | fritzprix |
7bd1cfc86febc7e5396c15b3672edf01a9161a05 | 719 | hpp | C++ | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | /* // \\
// \\
// \\
//WARNING\\
// \\
=============
DO NOT edit project_env.hpp, or your changes
will be OVERWRITTEN at the next run of CMake.
Instead, edit config/project_env.config.hpp.
*/
#ifndef RENDERBOI__PROJECT_ENV_HPP
#define RENDERBOI__PROJECT_ENV_HPP
#def... | 28.76 | 83 | 0.69541 | deqyra |
7bd4b729890d17a0f9f607d9ae876845b809829d | 881 | cpp | C++ | contests/Codeforces Round #613 Div 2/Just_eat_it.cpp | Razdeep/Codeforces-Solutions | e808575219ec15bc07720d6abafe3c4c8df036f4 | [
"MIT"
] | 2 | 2020-08-27T18:21:04.000Z | 2020-08-30T13:24:39.000Z | contests/Codeforces Round #613 Div 2/Just_eat_it.cpp | Razdeep/Codeforces-Solutions | e808575219ec15bc07720d6abafe3c4c8df036f4 | [
"MIT"
] | null | null | null | contests/Codeforces Round #613 Div 2/Just_eat_it.cpp | Razdeep/Codeforces-Solutions | e808575219ec15bc07720d6abafe3c4c8df036f4 | [
"MIT"
] | null | null | null | // https://codeforces.com/contest/1285/problem/B
/**
* Idea:
* if any of the prefix-sum or suffix-sum is found to be non-positive,
* we can simply get rid of the reducing prefix/suffix(negative) to get a value
* that is greater(or equal) than the sum of all elements
*
*/
#include <iostream>
#include <ve... | 14.209677 | 81 | 0.557321 | Razdeep |
7bd5d27e7e74782ea76332989b3d7f1c904558e9 | 7,959 | cpp | C++ | gtsam/sfm/tests/testSfmData.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-04T07:01:48.000Z | 2022-03-04T07:01:48.000Z | gtsam/sfm/tests/testSfmData.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | null | null | null | gtsam/sfm/tests/testSfmData.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-21T06:58:34.000Z | 2022-03-21T06:58:34.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 37.018605 | 80 | 0.64204 | h-rover |
7bd95920884728e3b7eac3b62bb72ebae7d25242 | 5,652 | cpp | C++ | svntrunk/src/pk/globject/test/iv00.cpp | Bhaskers-Blu-Org1/BlueMatter | 1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e | [
"BSD-2-Clause"
] | 7 | 2020-02-25T15:46:18.000Z | 2022-02-25T07:04:47.000Z | svntrunk/src/pk/globject/test/iv00.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | null | null | null | svntrunk/src/pk/globject/test/iv00.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | 5 | 2019-06-06T16:30:21.000Z | 2020-11-16T19:43:01.000Z | /* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... | 27.980198 | 118 | 0.595718 | Bhaskers-Blu-Org1 |
7bda53c935b0e4f4ecfc7bd36fb9a8023239cad7 | 19,914 | hpp | C++ | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 16 | 2016-06-07T22:12:02.000Z | 2021-12-15T12:40:52.000Z | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 1 | 2017-11-13T20:59:33.000Z | 2018-12-14T16:40:01.000Z | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 7 | 2016-08-19T21:31:41.000Z | 2021-12-19T14:58:45.000Z | /*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... | 39.828 | 162 | 0.638496 | tcpan |
7bdcaaa3422757a0519edafe8464468dacdbe5b7 | 3,162 | cxx | C++ | Hekateros/sw/libhekateros/hekDesc.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | Hekateros/sw/libhekateros/hekDesc.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | Hekateros/sw/libhekateros/hekDesc.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Package: Hekateros
//
// Library: libhekateros
//
// File: hekDesc.cxx
//
/*! \file
*
* $LastChangedDate: 2014-09-18 16:53:49 -0600 (Thu, 18 Sep 2014) $
* $Rev: 3748 $
*
* \brief Hekateros full description.
*
* \autho... | 24.703125 | 80 | 0.670778 | roadnarrows-robotics |
7bdf2919746c1ef8a07bf6b606e7bef8996c222e | 4,284 | cpp | C++ | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | 1 | 2019-10-14T09:16:49.000Z | 2019-10-14T09:16:49.000Z | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | null | null | null | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | null | null | null | #include <texture.hpp>
#include <glad/glad.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace RGLA {
Texture::~Texture() {
if (_id) {
glDeleteTextures(1, &_id);
}
}
void Texture::BindData() {
RGLA_ENSURE(_data, "Texture data is null");
glGenT... | 33.46875 | 155 | 0.57493 | asp437 |
7be50ea787e471968b9171387bfb2a4bf10d218b | 8,127 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/nim/project/nimbuildconfiguration.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/plugins/nim/project/nimbuildconfiguration.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/nim/project/nimbuildconfiguration.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) Filippo Cucchetto <filippocucchetto@gmail.com>
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this fil... | 36.773756 | 112 | 0.708503 | kevinlq |
7be983b085d817ba0cca72e3dd0057a12b25612a | 996 | cpp | C++ | legacy/src/pngs2video.cpp | ethank5149/Ising-Model-Visual | 1c83634504467cf4ee4347419f9adbf328773c11 | [
"MIT"
] | null | null | null | legacy/src/pngs2video.cpp | ethank5149/Ising-Model-Visual | 1c83634504467cf4ee4347419f9adbf328773c11 | [
"MIT"
] | null | null | null | legacy/src/pngs2video.cpp | ethank5149/Ising-Model-Visual | 1c83634504467cf4ee4347419f9adbf328773c11 | [
"MIT"
] | 1 | 2021-03-08T13:22:29.000Z | 2021-03-08T13:22:29.000Z | ///\file pngs2video.cpp
///\author Ethan Knox
///\date 7/22/2020.
#include "../include/pngs2video.h"
#include "../include/clean.h"
#include <boost/process.hpp>
#include <fmt/format.h>
#include <iostream>
///\brief Creates a video of the simulation
///
///Uses ffmpeg to convert the png frames into both a gif and mp4, ... | 34.344828 | 161 | 0.650602 | ethank5149 |
7beae5cc43cbe3529528fa238c0aa6e1844d096a | 1,373 | cpp | C++ | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | 1 | 2015-03-26T14:49:14.000Z | 2015-03-26T14:49:14.000Z | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | null | null | null | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <cassert>
using namespace std;
class MinHeap {
private:
int *heap, size;
bool dirty;
void restore();
public:
MinHeap(int *heap, int size);
~MinHeap();
int extract();
};
int main() {
int n;
scanf("%d", &n);
assert(n > 0);
int *arr = n... | 19.614286 | 68 | 0.525127 | bound1ess |
7bec1dbe1f989c7bf2d177c3d1f54a8ec8d9e2c9 | 26,694 | cpp | C++ | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | //****************************************************
// RV - I-Hawk
// Starting HARM avionics systems upgrade 07/2008
//****************************************************
#include "stdhdr.h"
#include "F4Vu.h"
#include "missile.h"
#include "Graphics\Include\display.h"
#include "simveh.h"
#include "airunit.h"
#incl... | 30.57732 | 131 | 0.674908 | markbb1957 |
7bed07f3315ed9ee128c09c6a60b76fced607344 | 2,922 | cpp | C++ | Core/Code/Rendering/mitkRenderWindow.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 5 | 2015-05-27T06:57:53.000Z | 2020-03-12T21:08:23.000Z | Core/Code/Rendering/mitkRenderWindow.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 4 | 2020-09-17T16:01:55.000Z | 2022-01-18T21:12:10.000Z | Core/Code/Rendering/mitkRenderWindow.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 2 | 2016-08-17T12:01:04.000Z | 2020-03-12T22:36:36.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 29.22 | 152 | 0.729295 | danielknorr |
7bed2175f712018866ba8bfb087e58ac472f3cb8 | 3,906 | hpp | C++ | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | /*!
* \file
* \brief A Module is an abstract concept. Basically, all the objects used in a Simulation are a Module.
*
* \section LICENSE
* This file is under MIT license (https://opensource.org/licenses/MIT).
*/
#ifndef MODULE_HPP_
#define MODULE_HPP_
#include <string>
#include <sstream>
#include <typeinfo>
#in... | 21.821229 | 104 | 0.664875 | codechecker123 |
7bf09e9b58f09da5ba62e3de63240aada28fbc9b | 9,377 | cpp | C++ | Solutions/MBED_GR_PEACH/DeviceCode/TouchPanel/MBED_GR_PEACH_touchpanel_driver.cpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | null | null | null | Solutions/MBED_GR_PEACH/DeviceCode/TouchPanel/MBED_GR_PEACH_touchpanel_driver.cpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | null | null | null | Solutions/MBED_GR_PEACH/DeviceCode/TouchPanel/MBED_GR_PEACH_touchpanel_driver.cpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | 1 | 2019-12-05T18:59:01.000Z | 2019-12-05T18:59:01.000Z | ////////////////////////////////////////////////////////////////////////////
// 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
//
// Unl... | 30.054487 | 129 | 0.628986 | Sirokujira |
7bf41dbef6119e66d3f13a2a1786b8f77b4dcdf4 | 3,480 | cpp | C++ | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | kerry-Cho/maskrcnn_benchmark.cpp | f110f7b6d6ac87b919b8f7aa95527c68f74d234a | [
"MIT"
] | 99 | 2019-05-01T15:23:45.000Z | 2022-01-30T05:11:40.000Z | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | conanhung/maskrcnn_benchmark.cpp | eab9787d3140e003662a31a8e01f7ae39469e9a0 | [
"MIT"
] | 18 | 2019-05-21T11:31:44.000Z | 2020-04-03T09:59:27.000Z | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | conanhung/maskrcnn_benchmark.cpp | eab9787d3140e003662a31a8e01f7ae39469e9a0 | [
"MIT"
] | 27 | 2019-05-12T05:41:08.000Z | 2021-02-07T01:58:01.000Z | #include "roi_heads/mask_head/mask_head.h"
namespace rcnn{
namespace modeling{
std::pair<std::vector<rcnn::structures::BoxList>, std::vector<torch::Tensor>> KeepOnlyPositiveBoxes(std::vector<rcnn::structures::BoxList> boxes){
std::vector<rcnn::structures::BoxList> positive_boxes;
std::vector<torch::Tensor> posit... | 44.615385 | 251 | 0.718103 | kerry-Cho |
7bf4af8d04f359d4f6c7d56c9539443f8bf100af | 115 | cc | C++ | tests/CompileTests/ElsaTestCases/t0003.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0003.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0003.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z |
typedef int x;
int main()
{
x (y); // this is a declaration according to cppstd sec. 6.8
return y;
}
| 9.583333 | 65 | 0.582609 | maurizioabba |
7bf5d269727403e5b16d4eb0b068d86e75be43f0 | 1,810 | cpp | C++ | cpp_src/problem012.cpp | PhilippSchuette/projecteuler | b74f76e8f27769d5cfc4227ccfb272d0a83ef587 | [
"MIT"
] | 4 | 2018-09-24T14:14:39.000Z | 2021-04-13T01:57:12.000Z | cpp_src/problem012.cpp | PhilippSchuette/projecteuler | b74f76e8f27769d5cfc4227ccfb272d0a83ef587 | [
"MIT"
] | 25 | 2018-09-24T14:18:19.000Z | 2021-05-08T07:03:31.000Z | cpp_src/problem012.cpp | PhilippSchuette/projecteuler | b74f76e8f27769d5cfc4227ccfb272d0a83ef587 | [
"MIT"
] | 3 | 2019-03-01T14:22:21.000Z | 2021-04-13T01:57:53.000Z | // Project Euler Problem 012 Solution
//
// Problem statement: The sequence of triangle numbers is generated by adding the natural numbers. So the 7^{th} triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:<p style="text-align:center;">1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...Let us lis... | 39.347826 | 707 | 0.653591 | PhilippSchuette |
7bf645240fb591fe4703883df53f340eae8e37bc | 7,397 | hpp | C++ | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_DSL_WHITESPACE_HPP_INCLUDED
#define LEXY_DSL_WHITESPACE_HPP_INCLUDED
#include <lexy/dsl/base.hpp>
#include ... | 34.565421 | 100 | 0.596728 | IohannRabeson |
7bf87b1b45b9b9d354e72a09ee6337256937ac23 | 5,695 | cpp | C++ | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | 4 | 2016-11-29T06:48:50.000Z | 2021-05-07T00:47:34.000Z | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | null | null | null | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | null | null | null | #include "fft.h"
#include <vector>
#include <iostream>
#include <iomanip>
#include <memory>
#include <limits>
#include "stopwatch.h"
#include "asserts.h"
static double worstError0, worstError1, worstError2;
//template<typename T, int logPoints>
//int64_t testffttype(FFT<T, logPoints> &fft, bool fulltest = false)
//{... | 33.89881 | 104 | 0.482704 | doug65536 |
7bfff6ec873202ad7b3c311ab4a11c2ff58abb1c | 233 | cpp | C++ | uva/c/11875.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/c/11875.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/c/11875.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
main() {
int i, j, n, T, C = 1;
scanf("%d", &T);
while (T--) {
scanf("%d", &n);
for (i = 0; i < n; ++i) {
scanf("%d", &j);
if (i == n/2)
printf("Case %d: %d\n", C++, j);
}
}
}
| 16.642857 | 40 | 0.347639 | dk00 |
d0007e4615c7d6b1caca6af03543590e94d246ee | 4,831 | cpp | C++ | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | #include "EEPROMController.hpp"
EEPROMController::EEPROMController(Valve* v1, Valve* v2, Valve* v3, Valve* v4) {
valve1 = v1;
valve2 = v2;
valve3 = v3;
valve4 = v4;
}
void EEPROMController::initValves(){
uint16_t sig;
sig = eeprom_read_word(&signature);
Serial.print(sig);
if (sig == 0x74EE) { ... | 36.598485 | 80 | 0.732354 | samuelmoll |
d00111b7d02c5829f3f6b20ff69e453bed2b1704 | 1,576 | cpp | C++ | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 5 | 2019-02-26T18:46:52.000Z | 2022-01-27T23:48:26.000Z | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 1 | 2020-06-07T23:44:29.000Z | 2021-04-03T18:49:54.000Z | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | null | null | null | #include "erm/rendering/buffers/IBuffer.h"
#include "erm/rendering/Device.h"
#include "erm/utils/Utils.h"
#include "erm/utils/VkUtils.h"
namespace erm {
IBuffer::IBuffer(
Device& device,
size_t size,
vk::BufferUsageFlags buf,
vk::MemoryPropertyFlags mpf)
: mDevice(device)
, mBufferSize(size)
, mBuf(buf)
, m... | 20.205128 | 58 | 0.713198 | JALB91 |
d00140b5e36afdf186c95bc8c102d3d5a7b9dded | 3,360 | hpp | C++ | modules/cvv/src/qtutil/signalslot.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 36 | 2017-04-13T03:01:06.000Z | 2022-01-09T10:38:27.000Z | modules/cvv/src/qtutil/signalslot.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 7 | 2018-10-16T07:28:12.000Z | 2018-11-15T02:21:16.000Z | modules/cvv/src/qtutil/signalslot.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 22 | 2015-10-23T19:36:18.000Z | 2021-02-02T12:20:32.000Z | #ifndef CVVISUAL_SIGNALEMITTER_HPP
#define CVVISUAL_SIGNALEMITTER_HPP
// std
#include <functional>
#include <stdexcept>
#include <opencv2/core.hpp>
// QT
#include <QObject>
#include <QString>
namespace cvv
{
namespace qtutil
{
/**
* @brief The Signal class can be used for privat or static signals and in case
* ... | 17.409326 | 79 | 0.624107 | Nondzu |
d002dacc2b7be2a4fc0cc23114bf1b0d8927518a | 4,849 | cpp | C++ | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 13 | 2016-10-19T00:33:23.000Z | 2022-02-23T07:55:30.000Z | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 1 | 2020-10-03T03:47:09.000Z | 2020-10-03T03:47:09.000Z | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 7 | 2017-07-19T11:24:27.000Z | 2022-02-23T07:55:34.000Z | /*
SoLoud audio engine
Copyright (c) 2013-2015 Jari Komppa
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 this software.
Permission is granted to anyone to use this software for any purpose,
including comm... | 31.901316 | 91 | 0.716849 | Roastmaster |
d003ae19dbe95949e6e4f1e98779e8d6585a6096 | 4,364 | cpp | C++ | pxr/base/tf/testenv/stopwatch.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 3,680 | 2016-07-26T18:28:11.000Z | 2022-03-31T09:55:05.000Z | pxr/base/tf/testenv/stopwatch.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 1,759 | 2016-07-26T19:19:59.000Z | 2022-03-31T21:24:00.000Z | pxr/base/tf/testenv/stopwatch.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 904 | 2016-07-26T18:33:40.000Z | 2022-03-31T09:55:16.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 28.710526 | 75 | 0.597388 | DougRogers-DigitalFish |
d007579be52b2bc3053deb5e6505441e1af4de2d | 2,791 | cc | C++ | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 7 | 2018-12-19T15:04:49.000Z | 2020-05-22T07:28:33.000Z | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 4 | 2018-07-11T15:09:08.000Z | 2018-10-19T14:19:56.000Z | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 5 | 2018-06-27T19:19:42.000Z | 2019-05-02T05:09:27.000Z | /*
* Copyright 2014 Fraunhofer FOKUS
*
* 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 agree... | 37.716216 | 78 | 0.601218 | vishalbhoj |
d007dd1f0b1cb50a338cc2ad623470753bf57881 | 2,149 | cpp | C++ | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include <EuhatPreDef.h>
#include <common/OpCommon.h>
#include <common/JyDataStream.h>
#include <common/md5.h>
#include <common/JyDataCrypto.h>
#include "JyBuf.h"
#include <EuhatPostDef.h>
JyBuf::JyBuf(int len)
{
reset(len);
}
JyBuf::JyBuf(const string& str)
{
reset(opMemDup(str.c_str(), str.length()), str.length()... | 14.82069 | 79 | 0.651931 | euhat |
d00c070a9b04ac395548f79326e857653e45567d | 392 | cc | C++ | chrome/browser/ui/constrained_window.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | chrome/browser/ui/constrained_window.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | chrome/browser/ui/constrained_window.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2011 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 "chrome/browser/ui/constrained_window.h"
#include "base/logging.h"
void ConstrainedWindow::FocusConstrainedWindow() {
}
gfx::NativeWindow ... | 24.5 | 73 | 0.755102 | Scopetta197 |
d00da18a0a2cbde1713a1834424e176d8bdde966 | 425 | cpp | C++ | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 290 | 2019-06-06T22:20:36.000Z | 2022-03-27T12:45:04.000Z | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 536 | 2019-06-06T18:25:36.000Z | 2022-03-29T11:46:36.000Z | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 82 | 2019-06-06T18:17:55.000Z | 2022-03-21T07:40:31.000Z | #include <iostream>
bool is_prime(long long a){
for (long long div=2;div*div<=a;++div){
if(a%div==0)return false;
}
return true;
}
int main() {
int t = 2397;
printf("%d\n", t);
int q=0;
for (long long p=2;p<30;++p){
if (!is_prime(p))continue;
for (long long k=0;k<p;++k){
for (long long... | 17 | 44 | 0.501176 | tko919 |