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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
012dc09728c78acb741ec75b891a62e956adaf5e | 2,860 | hpp | C++ | src/graph/include/graph/queue/SegmentTreeQueue.hpp | SkyterX/rpclass | 5e80ec4e0b876eb498351bcf7d6f5983fe5c7934 | [
"Apache-2.0"
] | null | null | null | src/graph/include/graph/queue/SegmentTreeQueue.hpp | SkyterX/rpclass | 5e80ec4e0b876eb498351bcf7d6f5983fe5c7934 | [
"Apache-2.0"
] | null | null | null | src/graph/include/graph/queue/SegmentTreeQueue.hpp | SkyterX/rpclass | 5e80ec4e0b876eb498351bcf7d6f5983fe5c7934 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <graph/queue/PriorityQueue.hpp>
#include <vector>
namespace graph
{
namespace queue
{
template <typename TKey, typename TDataId>
class SegmentTreeQueue {
private:
using QueueItemType = QueueItem<TKey, TDataId>;
std::vector<QueueItemType> tree;
TDataId baseSize;
void InsertIn... | 22.170543 | 81 | 0.621329 | SkyterX |
0134213ad1c6183a11180ca349f3cad3485dde1b | 10,597 | ipp | C++ | MyLibrary/DS_CharTree.ipp | shangjiaxuan/Simple-shell | 6e6d15ef16ac5d651ba3f0db7bdbaf6556042243 | [
"MIT"
] | 7 | 2018-09-07T14:42:22.000Z | 2020-02-17T15:43:55.000Z | MyLibrary/DS_CharTree.ipp | shangjiaxuan/Simple-shell | 6e6d15ef16ac5d651ba3f0db7bdbaf6556042243 | [
"MIT"
] | 3 | 2018-10-03T16:35:36.000Z | 2018-12-20T17:12:47.000Z | MyLibrary/DS_CharTree.ipp | shangjiaxuan/Simple-shell | 6e6d15ef16ac5d651ba3f0db7bdbaf6556042243 | [
"MIT"
] | 3 | 2019-09-06T06:09:34.000Z | 2019-09-06T15:07:21.000Z | #pragma once
template<typename tree_type, typename content_type>
void Basic_Type_Tree<tree_type, content_type>::node::destroy() {
if(next) {
for(size_t i = 0; i < find_MAX<tree_type>(); i++) {
if(next[i]) {
next[i]->destroy();
delete next[i];
next[i] = nullptr;
}
}
delete[] next;
next = null... | 25.909535 | 129 | 0.687742 | shangjiaxuan |
0134240f6052346af54f9d63fa0b24d641dd8951 | 2,679 | cpp | C++ | engine/gfx/gl/src/gfx_gl_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 12 | 2017-02-25T17:14:15.000Z | 2021-08-02T13:39:18.000Z | engine/gfx/gl/src/gfx_gl_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 31 | 2017-02-23T06:59:44.000Z | 2017-05-21T11:49:10.000Z | engine/gfx/gl/src/gfx_gl_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 5 | 2017-05-02T05:34:53.000Z | 2020-05-19T06:57:50.000Z | /*
* Copyright (c) 2012-2018 Robin Degen
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge,... | 30.793103 | 95 | 0.738335 | aeon-engine |
01477c9d103f69c84b681bf7f457ff20096c6a1e | 3,709 | hpp | C++ | packages/utility/core/src/Utility_ParameterListCompatibleObject.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/utility/core/src/Utility_ParameterListCompatibleObject.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/utility/core/src/Utility_ParameterListCompatibleObject.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file Utility_ParameterListCompatibleObject.hpp
//! \author Alex Robinson
//! \brief ParameterList compatible object base class declaration
//!
//---------------------------------------------------------------------------//
#ifn... | 29.436508 | 89 | 0.634133 | lkersting |
014f5f284e7f9b24808023c8221b5c6c129865b6 | 319 | cpp | C++ | sources/split_houses/split_houses.cpp | jacek143/code_area_template | 57784b1d6139c6f7cb8be0ebd3fee162f1d5e558 | [
"MIT"
] | null | null | null | sources/split_houses/split_houses.cpp | jacek143/code_area_template | 57784b1d6139c6f7cb8be0ebd3fee162f1d5e558 | [
"MIT"
] | null | null | null | sources/split_houses/split_houses.cpp | jacek143/code_area_template | 57784b1d6139c6f7cb8be0ebd3fee162f1d5e558 | [
"MIT"
] | null | null | null | #include "split_houses.h"
using std::string;
string split_houses::splitHouses(string house_placement) {
if (string::npos != house_placement.find("HH")) {
house_placement = "";
} else {
for (auto &&c : house_placement) {
if (c == '.') {
c = 'B';
}
}
}
return house_placement;
}
| 18.764706 | 58 | 0.579937 | jacek143 |
0150f99d96403e583d918d7cbaba773fcef2f343 | 5,845 | hpp | C++ | seq/Seq.hpp | MartinMetaksov/diku.OptionsPricing | 1734801dddf7faa9e7c6ed1a46acb6ef8492e33c | [
"ISC"
] | 3 | 2019-01-11T11:13:13.000Z | 2020-06-16T10:20:46.000Z | seq/Seq.hpp | MartinMetaksov/diku.OptionsPricing | 1734801dddf7faa9e7c6ed1a46acb6ef8492e33c | [
"ISC"
] | null | null | null | seq/Seq.hpp | MartinMetaksov/diku.OptionsPricing | 1734801dddf7faa9e7c6ed1a46acb6ef8492e33c | [
"ISC"
] | 1 | 2019-01-09T21:47:46.000Z | 2019-01-09T21:47:46.000Z | #ifndef SEQ_HPP
#define SEQ_HPP
#include "../common/OptionConstants.hpp"
#include "../common/Domain.hpp"
using namespace trinom;
namespace seq
{
struct jvalue
{
real rate;
real pu;
real pm;
real pd;
};
/**
* Sequential version that computes the bond tree until bond maturity
* and prices the opt... | 29.974359 | 138 | 0.483319 | MartinMetaksov |
0152171b335dc0e63d3fc8aee1843f53804e2b3c | 3,268 | cpp | C++ | impl/types.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | 38 | 2015-02-15T18:35:02.000Z | 2021-12-05T04:43:11.000Z | impl/types.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | null | null | null | impl/types.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | 12 | 2015-07-14T22:31:41.000Z | 2021-07-18T15:28:16.000Z | // Copyright (c) 2010, Adam Petersen <adam@adampetersen.se>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this... | 39.853659 | 140 | 0.714504 | fire-archive |
015509ad3ed98a4f3b25fdfde35a98bc3e5a908d | 1,426 | hpp | C++ | gnnt/gnnt/utility/tuple_helpers.hpp | iulian-rusu/genetic-nn-trainer | a4840fe3bbab18d4d2bf50dbcc886e9dbffc9e55 | [
"MIT"
] | 1 | 2022-01-16T16:08:31.000Z | 2022-01-16T16:08:31.000Z | gnnt/gnnt/utility/tuple_helpers.hpp | iulian-rusu/genetic-nn-trainer | a4840fe3bbab18d4d2bf50dbcc886e9dbffc9e55 | [
"MIT"
] | null | null | null | gnnt/gnnt/utility/tuple_helpers.hpp | iulian-rusu/genetic-nn-trainer | a4840fe3bbab18d4d2bf50dbcc886e9dbffc9e55 | [
"MIT"
] | null | null | null | #ifndef GENETIC_NN_TRAINER_TUPLE_HELPERS_HPP
#define GENETIC_NN_TRAINER_TUPLE_HELPERS_HPP
#include <tuple>
#include <gnnt/utility/meta.hpp>
namespace gnnt
{
namespace detail
{
template<std::size_t Index, typename Func, typename... Tuples>
constexpr void apply_tuples(Func &&func, Tuples &&... t... | 33.952381 | 108 | 0.614306 | iulian-rusu |
015650711ba8ccdf05014f45ee17f0a1b0738219 | 613 | cpp | C++ | 4/Cluster.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | 4/Cluster.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | 4/Cluster.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | #include <iostream>
class Cluster {
private:
int clusterIndex;
int clusterSize;
std::string clusterInfo = "";
bool clusterBool;
public:
Cluster(int index, int size) {
clusterSize = size;
clusterIndex = index;
clusterBool = true;
}
int getClusterIndex() {
return clusterIndex;
}
bool isFree() {
retu... | 14.255814 | 40 | 0.673736 | ulyanyunakh |
0161b2dbe489405a0beda60e29c2c27ca01a3ca9 | 1,655 | cc | C++ | src/recordfile.cc | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | src/recordfile.cc | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | src/recordfile.cc | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | #include "eucsearch.h"
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
/* a record file is a binary data file of the following format
* unsigned int size_of_float; unsigned int num_of_entries; unsigned int dim;
* float; float; float; ...
*/
int read_file(const char... | 22.364865 | 78 | 0.580665 | girke-lab |
016675f321dd2c8376b55d1f1ade478534829cf3 | 872 | cpp | C++ | Current/82_Remove_Duplicates_from_Sorted_List_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | 3 | 2019-09-21T16:25:44.000Z | 2021-08-29T20:43:57.000Z | Current/82_Remove_Duplicates_from_Sorted_List_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | Current/82_Remove_Duplicates_from_Sorted_List_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | #include <iostream>
// Definition for singly-linked list.
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode* deleteDuplicates(ListNode* head) {
if (head == NULL || head->next == NULL) return head;
ListNode *tmp = ne... | 24.914286 | 60 | 0.482798 | camelboat |
016701cf265d4697f4de63f9af42cf3bab338e08 | 2,237 | hpp | C++ | input/input_processing.hpp | xxoenoexx/xui | 85b0fb48476e2d52882e300fa52c8e5c3dc2be09 | [
"MIT"
] | 16 | 2020-05-01T21:21:49.000Z | 2022-01-14T11:38:19.000Z | input/input_processing.hpp | xxoenoexx/xui | 85b0fb48476e2d52882e300fa52c8e5c3dc2be09 | [
"MIT"
] | null | null | null | input/input_processing.hpp | xxoenoexx/xui | 85b0fb48476e2d52882e300fa52c8e5c3dc2be09 | [
"MIT"
] | 3 | 2020-07-04T03:19:51.000Z | 2021-12-10T00:28:39.000Z | #ifndef xui_distrubution
#define xui_distrubution
namespace xui {
// Key activities.
enum key_activity : std::uint8_t {
// Key initial release.
KEY_ACTIVITY_RELEASE = 0U ,
// Key initial press.
KEY_ACTIVITY_PRESS ,
// Key is held.
KEY_ACTIVITY_HELD
};
// Input command for recursion.
struct input_comm... | 22.37 | 117 | 0.650425 | xxoenoexx |
6c64049f040178f030621c6d5eeff336e8d7c8e5 | 20,813 | cpp | C++ | Lynx/src/Tools.cpp | ten3roberts/Lynx | ce93906998654f900d70788ec8d3c8073bc09617 | [
"Apache-2.0"
] | null | null | null | Lynx/src/Tools.cpp | ten3roberts/Lynx | ce93906998654f900d70788ec8d3c8073bc09617 | [
"Apache-2.0"
] | null | null | null | Lynx/src/Tools.cpp | ten3roberts/Lynx | ce93906998654f900d70788ec8d3c8073bc09617 | [
"Apache-2.0"
] | null | null | null | #include "Tools.h"
#include <limits.h>
#include <filesystem>
#include <fstream>
#include "pch.h"
#if PL_LINUX
#include <unistd.h>
#elif PL_WINDOWS
#include <Windows.h>
#include <direct.h>
#include <shlobj_core.h>
#include <stdio.h>
#include <sys/types.h>
#endif
using namespace Math;
#if PL_LINUX
void Tools::setWo... | 24.34269 | 116 | 0.625763 | ten3roberts |
6c7113c3774fc88c5e5a73e9006f579b5456ef99 | 2,614 | hpp | C++ | include/avis/glfw/vulkan_window.hpp | qzed/avis | 5c9a4fcbdf44abd340e1fefa8f961439a93d4ae7 | [
"MIT"
] | 2 | 2020-07-15T21:02:47.000Z | 2021-07-22T20:49:20.000Z | include/avis/glfw/vulkan_window.hpp | qzed/avis | 5c9a4fcbdf44abd340e1fefa8f961439a93d4ae7 | [
"MIT"
] | null | null | null | include/avis/glfw/vulkan_window.hpp | qzed/avis | 5c9a4fcbdf44abd340e1fefa8f961439a93d4ae7 | [
"MIT"
] | null | null | null | #pragma once
#include <avis/glfw/window.hpp>
#include <avis/vulkan/instance.hpp>
#include <utility>
namespace avis {
namespace glfw {
class vulkan_window : private glfw::window {
public:
vulkan_window()
: window{}
, instance_{nullptr}
, alloc_{nullptr}
, surface_{nullptr} {}
... | 28.725275 | 100 | 0.683627 | qzed |
6c72bba1626b5820bc06aeaaebb00ecc3d59324f | 1,375 | hpp | C++ | src/org/apache/poi/hssf/record/aggregates/RecordAggregate_SerializingRecordVisitor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/aggregates/RecordAggregate_SerializingRecordVisitor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/aggregates/RecordAggregate_SerializingRecordVisitor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/record/aggregates/RecordAggregate.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/aggregates/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <org/apache/poi/hssf/record/aggregates/Reco... | 28.645833 | 87 | 0.754909 | pebble2015 |
6c7d78856a047f8e23b10b30293335bc39d33a1f | 1,572 | cpp | C++ | contest-2/a-cpp/main.cpp | easimonenko/solution-problems-from-codeforces | 64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f | [
"MIT"
] | 1 | 2018-12-03T02:06:05.000Z | 2018-12-03T02:06:05.000Z | contest-2/a-cpp/main.cpp | easimonenko/solution-problems-from-codeforces | 64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f | [
"MIT"
] | null | null | null | contest-2/a-cpp/main.cpp | easimonenko/solution-problems-from-codeforces | 64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <list>
#include <set>
#include <map>
using namespace std;
int main(int argc, char* argv[]) {
#ifdef __DEBUG__
//freopen("A_1.in", "r", stdin);
#endif
int n;
cin >> n;
list<pair<string,int> > records;
for (int i = 0; i < n; i++) {
static strin... | 26.644068 | 97 | 0.495547 | easimonenko |
6c83d631eb66eb12ca516974988da7e57613a4dd | 27,596 | cpp | C++ | src/lib/top_level/projective_space/projective_space_global.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/top_level/projective_space/projective_space_global.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/top_level/projective_space/projective_space_global.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | /*
* projective_space_global.cpp
*
* Created on: Oct 9, 2021
* Author: betten
*/
#include "orbiter.h"
using namespace std;
namespace orbiter {
namespace top_level {
void projective_space_global::map(
projective_space_with_action *PA,
std::string &label,
std::string &evaluate_text,
int verbose_l... | 23.646958 | 133 | 0.69713 | abetten |
6c85556bfaea7336d8d4acf07b447387fd4144c6 | 2,787 | cpp | C++ | rx64m_SIDE/main.cpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 1 | 2020-01-16T03:38:30.000Z | 2020-01-16T03:38:30.000Z | rx64m_SIDE/main.cpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | rx64m_SIDE/main.cpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | //=====================================================================//
/*! @file
@brief RX64M SIDE sample @n
・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @n
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni... | 20.954887 | 87 | 0.604593 | duybang140494 |
6c9664c5af29d4f6bb793cfa341857c391bb71a5 | 1,898 | cpp | C++ | src/libgeometry/gpoint.cpp | Nikolay-Kha/PCBConverter | f168f22badbf3a7ec578e1ed97966a2255cbfd7b | [
"MIT"
] | 51 | 2015-12-06T18:23:21.000Z | 2022-01-27T01:34:00.000Z | src/libgeometry/gpoint.cpp | fenqinyao/PCBConverter | f168f22badbf3a7ec578e1ed97966a2255cbfd7b | [
"MIT"
] | 5 | 2018-02-23T13:05:33.000Z | 2022-01-20T23:42:47.000Z | src/libgeometry/gpoint.cpp | fenqinyao/PCBConverter | f168f22badbf3a7ec578e1ed97966a2255cbfd7b | [
"MIT"
] | 19 | 2016-07-31T14:21:43.000Z | 2021-11-24T15:20:22.000Z | #include "gpoint.h"
#include <math.h>
GPoint::GPoint()
:next(0)
{
}
GPoint::GPoint(double nx, double ny)
:next(0)
{
x = nx;
y = ny;
}
GPoint & GPoint::operator=(const GPoint &other)
{
if (this == &other) {
return *this;
}
this->x = other.x;
this->y = other.y;
return *this... | 17.099099 | 65 | 0.592729 | Nikolay-Kha |
6c97854fc4ae5507b0d188e418598f9443971aa9 | 1,496 | cpp | C++ | lib/graphbuilder.cpp | julienlopez/CppDependencyAnalyzer | d29065e7988ef7f553785ce7cb8bf2bb03097c66 | [
"MIT"
] | null | null | null | lib/graphbuilder.cpp | julienlopez/CppDependencyAnalyzer | d29065e7988ef7f553785ce7cb8bf2bb03097c66 | [
"MIT"
] | 7 | 2019-12-10T12:59:20.000Z | 2020-07-01T14:13:44.000Z | lib/graphbuilder.cpp | julienlopez/CppDependencyAnalyzer | d29065e7988ef7f553785ce7cb8bf2bb03097c66 | [
"MIT"
] | null | null | null | #include "graphbuilder.hpp"
#include "utils/strings.hpp"
#include <iostream>
namespace Cda
{
void GraphBuilder::buildGraph(const std::vector<Class>& classes)
{
for(const auto& c : classes)
{
m_vertex_mapping[c.name] = boost::add_vertex(VertexProperties{c.name}, m_graph);
}
for(const auto& c... | 25.793103 | 88 | 0.630348 | julienlopez |
6c9aed94d77cbda73c1c6d5c9647c3d9976ca0cf | 1,216 | cpp | C++ | test/test_integrate.cpp | tivole/Numerary | 2034cd0fbd5d68cd2120baf2c613da54b10a738b | [
"MIT"
] | 14 | 2020-02-21T06:09:55.000Z | 2021-07-08T10:00:06.000Z | test/test_integrate.cpp | tivole/Ti_Numerary | 2034cd0fbd5d68cd2120baf2c613da54b10a738b | [
"MIT"
] | null | null | null | test/test_integrate.cpp | tivole/Ti_Numerary | 2034cd0fbd5d68cd2120baf2c613da54b10a738b | [
"MIT"
] | 1 | 2020-08-12T11:12:27.000Z | 2020-08-12T11:12:27.000Z | // test_integrate.cpp
// (c) Tivole
#include <boost/test/unit_test.hpp>
#include "../src/numerary.hpp"
namespace numerary
{
BOOST_AUTO_TEST_SUITE(TestIntegrate)
double test_integrate_function_1(double x) {
return 5*pow(x, 3) + 2*cos(x);
}
double test_integrate_function_2(double x) {... | 25.333333 | 81 | 0.583059 | tivole |
6cb37370e5c14996bd43d8cc75bc250059b6fc25 | 7,493 | cpp | C++ | menuband/fadetsk.cpp | sphinxlogic/shell32 | ef38d3338afd575a2d456d737c7bd6a105392d88 | [
"MIT"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | shell/shell32/menuband/fadetsk.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | shell/shell32/menuband/fadetsk.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "shellprv.h"
#include "common.h"
#include "fadetsk.h"
BOOL BlendLayeredWindow(HWND hwnd, HDC hdcDest, POINT* ppt, SIZE* psize, HDC hdc, POINT* pptSrc, BYTE bBlendConst)
{
BLENDFUNCTION blend;
blend.BlendOp = AC_SRC_OVER;
blend.BlendFlags = 0;
blend.AlphaFormat = 0;
blend.SourceCo... | 27.547794 | 115 | 0.56039 | sphinxlogic |
6cb4e5a46711b4127c0acabda8ae8c509b984dfb | 11,973 | cpp | C++ | src/demos/bitmap_font/main.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | 1 | 2022-02-15T21:00:31.000Z | 2022-02-15T21:00:31.000Z | src/demos/bitmap_font/main.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | src/demos/bitmap_font/main.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | /**
* swr - a software rasterizer
*
* software renderer demonstration (bitmap font).
*
* \author Felix Lubbe
* \copyright Copyright (c) 2021
* \license Distributed under the MIT software license (see accompanying LICENSE.txt).
*/
/* boost */
#include <boost/container/static_vector.hpp>
#include "fmt/format.... | 28.304965 | 172 | 0.601437 | flubbe |
6cb719a2baf73a1726d681e004eace64762f77dd | 641 | c++ | C++ | archivarius/pump.c++ | dsvi/archivarius | c0e394c82c1244f1032f656f782189af23d02f00 | [
"Zlib"
] | null | null | null | archivarius/pump.c++ | dsvi/archivarius | c0e394c82c1244f1032f656f782189af23d02f00 | [
"Zlib"
] | null | null | null | archivarius/pump.c++ | dsvi/archivarius | c0e394c82c1244f1032f656f782189af23d02f00 | [
"Zlib"
] | 2 | 2020-03-27T22:08:35.000Z | 2020-04-01T22:14:56.000Z | #include "precomp.h"
#include "pump.h"
#include "exception.h"
namespace archi{
void pump(Stream_in &in, u64 to, Stream_out *out, std::string_view fname, Buffer &tmp, u64 &num_already_pumped )
{
ASSERT(num_already_pumped <= to);
while (num_already_pumped < to){
auto num_left = to - num_already_pumped;
auto to_p... | 24.653846 | 112 | 0.684867 | dsvi |
6cb901e2a57a68286e59a05e33be1a0165bd56c1 | 838 | cpp | C++ | 64.cpp | bodhiye/Offer | c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c | [
"MIT"
] | 1 | 2018-05-08T01:35:49.000Z | 2018-05-08T01:35:49.000Z | 64.cpp | bodhiye/Offer | c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c | [
"MIT"
] | null | null | null | 64.cpp | bodhiye/Offer | c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c | [
"MIT"
] | 1 | 2021-07-24T02:15:42.000Z | 2021-07-24T02:15:42.000Z | #include <iostream>
#include <vector>
#include <deque>
using namespace std;
vector<int> maxInWindows(const vector<int> &num, unsigned int size) {
vector<int> v;
deque<int> d;
for (unsigned int i = 0; i < num.size(); ++i) {
while (d.size() && num[d.back()] <= num[i])
d.pop_back();
... | 23.277778 | 69 | 0.484487 | bodhiye |
6cbea552e85a84bb281ad04af5db457f2edac191 | 171 | cpp | C++ | main.cpp | RafaelNatsu/JoaoV_TrabalhoPratico | c91ae82419c61ef31ee7c27cc9f0cbf12aae11a4 | [
"MIT"
] | null | null | null | main.cpp | RafaelNatsu/JoaoV_TrabalhoPratico | c91ae82419c61ef31ee7c27cc9f0cbf12aae11a4 | [
"MIT"
] | null | null | null | main.cpp | RafaelNatsu/JoaoV_TrabalhoPratico | c91ae82419c61ef31ee7c27cc9f0cbf12aae11a4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//TODO receber arquivo
int qtdLojas, limiteMotos, qtdDrones, custoKmMoto, custoKmCaminhao;
return 0;
} | 15.545455 | 71 | 0.707602 | RafaelNatsu |
6cbf9e26bdf68f45067a64d7efe2a667e969afcd | 1,618 | hpp | C++ | libs/core/include/fcppt/container/raw_vector/rep_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/raw_vector/rep_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/raw_vector/rep_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_CONTAINER_RAW_VECTOR_REP_IMPL_HPP_INCLUDED
#define FCPPT_CONTAINER_RAW_VECTOR_REP_IM... | 11.475177 | 61 | 0.695303 | pmiddend |
6cc0bcb10cacae2096941f64edf4685bd71ed0e6 | 2,538 | cpp | C++ | Blank Project/Ship.cpp | BertTDev/Graphics-Island | ce7c15cba8ad86df658c35b3bb37d63ef12bc985 | [
"MIT"
] | null | null | null | Blank Project/Ship.cpp | BertTDev/Graphics-Island | ce7c15cba8ad86df658c35b3bb37d63ef12bc985 | [
"MIT"
] | null | null | null | Blank Project/Ship.cpp | BertTDev/Graphics-Island | ce7c15cba8ad86df658c35b3bb37d63ef12bc985 | [
"MIT"
] | null | null | null | #include "Ship.h"
#include <cmath>
bool Ship::texLoaded = false;
vector<GLuint> Ship::matTextures = vector<GLuint>();
Ship::Ship(Mesh* m, Shader* s, Light* l, Camera* c, MeshMaterial* mm, Vector3 pos, float sc)
{
this->SetMesh(m);
this->SetShader(s);
this->SetCamera(c);
this->material = mm;
this->SetColour(Vector... | 31.333333 | 130 | 0.69937 | BertTDev |
6cc126603f309132db312289cf8f1773b0d072ec | 5,970 | cc | C++ | util/unicode_transcode.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | util/unicode_transcode.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | util/unicode_transcode.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | // Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License, version 2.0, as
// published by the Free Software Foundation.
//
// This program is also distributed w... | 21.552347 | 81 | 0.573032 | realnickel |
6cc4b89c1db2a0245f5c7979a84369ea0ad3a98a | 6,223 | cpp | C++ | RGTokenizer.cpp | renjiezhu/minimal-database | 587dbd8e791917d84bcd4c12a19158c44a2f4f4a | [
"MIT"
] | null | null | null | RGTokenizer.cpp | renjiezhu/minimal-database | 587dbd8e791917d84bcd4c12a19158c44a2f4f4a | [
"MIT"
] | null | null | null | RGTokenizer.cpp | renjiezhu/minimal-database | 587dbd8e791917d84bcd4c12a19158c44a2f4f4a | [
"MIT"
] | null | null | null | //
// RGTokenizer.cpp
// Database1
//
// Created by rick gessner on 3/24/19.
// Copyright © 2019 rick gessner. All rights reserved.
//
#include "RGTokenizer.hpp"
namespace ECE141 {
RGTokenizer::RGTokenizer(std::istream &anInput) : Tokenizer(anInput) {
}
bool isWhitespace(char aChar) {
static... | 33.820652 | 100 | 0.485457 | renjiezhu |
6cd56d5e8b595c26c33e244022a49e5797efa37d | 2,125 | cpp | C++ | AAEngine/src/Scene/Prop.cpp | mattearly/AncientArcher | 7a2101bbabfe0633e4e32e345b10c751ec3e197a | [
"MIT"
] | 23 | 2020-05-03T09:40:30.000Z | 2022-03-07T23:44:19.000Z | AAEngine/src/Scene/Prop.cpp | mattearly/AncientArcher | 7a2101bbabfe0633e4e32e345b10c751ec3e197a | [
"MIT"
] | null | null | null | AAEngine/src/Scene/Prop.cpp | mattearly/AncientArcher | 7a2101bbabfe0633e4e32e345b10c751ec3e197a | [
"MIT"
] | 7 | 2021-01-19T16:27:41.000Z | 2021-11-17T11:56:34.000Z | #include "Prop.h"
#include "Camera.h"
#include "../Renderer/OpenGL/OGLGraphics.h"
#include "../Renderer/ModelLoader.h"
#include "../Renderer/LoadCube.h"
#include "../Utility/Conversions.h"
namespace AA {
Prop::Prop(const char* path) {
if (ModelLoader::LoadGameObjectFromFile(*this, path) == -1)
throw ("failed to... | 31.716418 | 83 | 0.619765 | mattearly |
6cd6e67aae3f1fb666e301353fbbe1615f51f848 | 3,855 | cpp | C++ | cl_dll/poke646/scope.cpp | malortie/hl-poke646-vendetta | d284a8a002a9a17f5ff051720115d896f839eb3b | [
"Apache-2.0"
] | null | null | null | cl_dll/poke646/scope.cpp | malortie/hl-poke646-vendetta | d284a8a002a9a17f5ff051720115d896f839eb3b | [
"Apache-2.0"
] | 1 | 2021-12-31T13:59:47.000Z | 2021-12-31T13:59:47.000Z | cl_dll/poke646/scope.cpp | malortie/hl-poke646 | 1143534626b547620b66990b1312715569ffae34 | [
"Apache-2.0"
] | null | null | null | /***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... | 22.412791 | 97 | 0.714916 | malortie |
6cd90d587c805c2f62445939085dcbb7c05acc42 | 3,640 | cc | C++ | gtests/exp2/exp2_callback.cc | amd/aocl-libm-ose | a43e092b03213eb0e129a1cc129900e6e4475778 | [
"BSD-3-Clause"
] | 66 | 2020-11-04T17:06:10.000Z | 2022-03-10T08:03:12.000Z | gtests/exp2/exp2_callback.cc | amd/aocl-libm-ose | a43e092b03213eb0e129a1cc129900e6e4475778 | [
"BSD-3-Clause"
] | 8 | 2021-04-18T18:37:53.000Z | 2022-03-11T12:49:31.000Z | gtests/exp2/exp2_callback.cc | amd/aocl-libm-ose | a43e092b03213eb0e129a1cc129900e6e4475778 | [
"BSD-3-Clause"
] | 8 | 2020-11-09T03:45:01.000Z | 2021-11-08T02:25:31.000Z | /*
* Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved
*/
#include <cmath>
#include "libm_tests.h"
#include "../../include/libm_macros.h"
#define AMD_LIBM_VEC_EXPERIMENTAL
#include "../../include/libm_amd.h"
#include "../../include/libm/amd_funcs_internal.h"
#include <fmaintrin.h>
#include <... | 23.037975 | 75 | 0.671429 | amd |
6cde09071d083d25f6a7b24e61ca44744073f84f | 1,914 | cpp | C++ | chapter14_multi_threads/14_8_2_sigmask.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | chapter14_multi_threads/14_8_2_sigmask.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | chapter14_multi_threads/14_8_2_sigmask.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | #include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
// 这个程序跑起来有点奇怪,暂时放弃
/* Simple error handling functions */
#define handle_error_en(en, msg) \
do \
{ \
errno = en; \
... | 25.184211 | 65 | 0.547544 | olez961 |
6cdeaf7aa051ddcd01e60b0afe0f22b045c1b429 | 880 | cpp | C++ | Engine/src/Engine/Graphics/VertexLayout.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 23 | 2021-05-23T10:13:55.000Z | 2022-03-24T14:49:30.000Z | Engine/src/Engine/Graphics/VertexLayout.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 1 | 2021-09-07T12:26:33.000Z | 2021-09-27T19:06:00.000Z | Engine/src/Engine/Graphics/VertexLayout.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 3 | 2021-05-30T17:31:47.000Z | 2021-09-20T06:42:39.000Z | #include "VertexLayout.h"
#include "OpenGL/glVertexLayout.h"
#ifdef LIGHT_PLATFORM_WINDOWS
#include "DirectX/dxVertexLayout.h"
#include "DirectX/dxSharedContext.h"
#endif
#include "GraphicsContext.h"
namespace Light {
Ref<VertexLayout> VertexLayout::Create(Ref<VertexBuffer> vertexBuffer, Ref<Shader> shader, cons... | 30.344828 | 197 | 0.770455 | Light3039 |
6ce6c9a8f6971151476845b488074ff8bcadb625 | 2,044 | hpp | C++ | libnhttp/nhttp/hal/os/posix.hpp | jay94ks/libnhttp | a244eb2d04c339454ef4831b43d1ab270ee7d13d | [
"MIT"
] | 4 | 2021-04-11T22:46:13.000Z | 2021-05-27T06:01:37.000Z | libnhttp/nhttp/hal/os/posix.hpp | jay94ks/libnhttp | a244eb2d04c339454ef4831b43d1ab270ee7d13d | [
"MIT"
] | 3 | 2021-05-26T04:16:56.000Z | 2021-05-27T04:34:14.000Z | libnhttp/nhttp/hal/os/posix.hpp | jay94ks/libnhttp | a244eb2d04c339454ef4831b43d1ab270ee7d13d | [
"MIT"
] | 1 | 2021-04-11T22:46:15.000Z | 2021-04-11T22:46:15.000Z | #pragma once
#include "../../types.hpp"
#if (!defined(_WIN32) && !defined(_WIN64))
# define NHTTP_OS_POSIX 1
# include <pthread.h>
#else
# if defined(_MSC_VER) && defined(__INTELLISENSE__)
# define NHTTP_OS_POSIX 1
# else
# define NHTTP_OS_POSIX 0
# endif
#endif
namespace nhttp {
namespace hal {
#if defined(_MSC_V... | 26.894737 | 80 | 0.756849 | jay94ks |
6ce77922327cd718a30e5763f88fbf4635b1a8ec | 457 | cpp | C++ | Codeforces/1000~1999/1249/E.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1249/E.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1249/E.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
#define int long long
const int N = 2e5 + 52;
int n, mn, c, a[N], b[N], ans[N];
signed main() {
scanf("%lld%lld", &n, &c);
for (int i = 2; i <= n; i++) scanf("%lld", a + i);
for (int i = 2; i <= n; i++) scanf("%lld", b + i);
printf("0 ");
for (int i = 2; ... | 24.052632 | 54 | 0.487965 | tiger0132 |
6ce797a5372f85794724b3dac31f51bad49042b4 | 149 | cpp | C++ | src/uimagehlp.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 4 | 2016-09-07T07:02:52.000Z | 2019-06-22T08:55:53.000Z | src/uimagehlp.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | null | null | null | src/uimagehlp.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 3 | 2019-06-22T16:00:39.000Z | 2022-03-09T13:46:27.000Z | #include <windows.h>
#include <tchar.h>
#include <imagehlp.h>
#include "uimagehlp.h"
UImageHelp::UImageHelp()
{
}
UImageHelp::~UImageHelp()
{
}
| 9.3125 | 25 | 0.677852 | fox000002 |
6ce7a6200daeacc48c0975c8492c66818a7fb16f | 663 | hpp | C++ | source/Utility.hpp | Tchayen/comf | 6ab2beac919e30ecbbba11817855a795731e8788 | [
"MIT"
] | 3 | 2021-06-16T17:18:38.000Z | 2021-12-03T07:51:25.000Z | source/Utility.hpp | Tchayen/comf | 6ab2beac919e30ecbbba11817855a795731e8788 | [
"MIT"
] | null | null | null | source/Utility.hpp | Tchayen/comf | 6ab2beac919e30ecbbba11817855a795731e8788 | [
"MIT"
] | 1 | 2021-06-16T17:18:42.000Z | 2021-06-16T17:18:42.000Z | #ifndef __UTILITY_H__
#define __UTILITY_H__
#include <Windows.h>
#include <fstream>
#include <sstream>
using int8 = std::int8_t;
using int16 = std::int16_t;
using int32 = std::int32_t;
using int64 = std::int64_t;
using uint8 = std::uint8_t;
using uint16 = std::uint16_t;
using uint32 = std::uint32_t;
u... | 20.090909 | 45 | 0.651584 | Tchayen |
6cf20276b6a37231693558a36ccc5df726e05a8c | 6,933 | cpp | C++ | slturn.cpp | jhdewitt/sltk | b551ac3b0e2f19094f93fc1611cba3e40ac36113 | [
"MIT"
] | 191 | 2015-04-10T00:11:33.000Z | 2022-03-30T16:19:17.000Z | slturn.cpp | AlicePang/sltk | b551ac3b0e2f19094f93fc1611cba3e40ac36113 | [
"MIT"
] | 24 | 2018-03-08T23:06:45.000Z | 2021-01-11T02:01:25.000Z | slturn.cpp | AlicePang/sltk | b551ac3b0e2f19094f93fc1611cba3e40ac36113 | [
"MIT"
] | 50 | 2017-07-17T17:26:53.000Z | 2022-02-28T02:01:57.000Z | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <math.h>
#include <vector>
#include <termios.h>
#include <signal.h>
#include <sys/time.h>
//#include "hid.h"
#include "ports.h"
#include "lo/lo.h"
#define DBUG 0
// HID STUFF
extern "C" {
int rawhid_open(int max, int vid, i... | 23.743151 | 93 | 0.507861 | jhdewitt |
9f08b1b881601aad7a60af884bdd13de774086ee | 209 | cpp | C++ | etc/config/src/ICONV_CONST_CHAR.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/ICONV_CONST_CHAR.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/ICONV_CONST_CHAR.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | // checking for POSIX iconv()
#include <iconv.h>
int foo ()
{
const char* const_ptr = 0;
char* non_const_ptr = 0;
iconv_t *it = 0;
return iconv (*it, &const_ptr, 0, &non_const_ptr, 0);
}
| 14.928571 | 57 | 0.593301 | Hower91 |
9f09a9594a69231c1fa81cad58be82b539848544 | 5,087 | cpp | C++ | src/examples/tutorial/ascent_intro/cpp/blueprint_example1.cpp | xuanhuang1/ascent | 2a919cc1b28cbc1994321bcee47632376c96e1bb | [
"BSD-3-Clause"
] | 97 | 2017-10-23T23:59:46.000Z | 2022-03-02T22:21:00.000Z | src/examples/tutorial/ascent_intro/cpp/blueprint_example1.cpp | xuanhuang1/ascent | 2a919cc1b28cbc1994321bcee47632376c96e1bb | [
"BSD-3-Clause"
] | 475 | 2017-09-12T22:46:37.000Z | 2022-03-18T19:19:04.000Z | src/examples/tutorial/ascent_intro/cpp/blueprint_example1.cpp | xuanhuang1/ascent | 2a919cc1b28cbc1994321bcee47632376c96e1bb | [
"BSD-3-Clause"
] | 39 | 2017-09-12T20:18:29.000Z | 2022-01-20T00:22:55.000Z | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-716457
//
// All rights reserved.
//
// This file is part of Ascent.
//
// For details, see:... | 35.082759 | 79 | 0.640259 | xuanhuang1 |
9f0c23b3b5b32b8fec2db5cbe460a101fe0b815f | 2,358 | cc | C++ | base/untyped_buffer_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 10 | 2015-10-28T18:54:41.000Z | 2021-12-29T16:48:31.000Z | base/untyped_buffer_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 95 | 2020-02-27T22:34:02.000Z | 2022-03-06T19:45:24.000Z | base/untyped_buffer_test.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 2 | 2019-02-01T23:16:04.000Z | 2020-02-27T16:06:02.000Z | #include "base/untyped_buffer.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace base {
namespace {
using ::testing::IsEmpty;
using ::testing::Not;
TEST(UntypedBuffer, DefaultConstructorInvariants) {
untyped_buffer buf;
EXPECT_EQ(buf.size(), 0);
EXPECT_THAT(buf, IsEmpty());
}
TEST(UntypedBuffer, C... | 21.833333 | 60 | 0.658609 | asoffer |
9f0e0a239c1aad3540be718782db0086d98e1a8f | 324 | cpp | C++ | src/rand64.cpp | sewbacca/Lizard | f61bf45e72b1ee9e7d700d6694d64af7a53946fa | [
"MIT"
] | null | null | null | src/rand64.cpp | sewbacca/Lizard | f61bf45e72b1ee9e7d700d6694d64af7a53946fa | [
"MIT"
] | null | null | null | src/rand64.cpp | sewbacca/Lizard | f61bf45e72b1ee9e7d700d6694d64af7a53946fa | [
"MIT"
] | null | null | null |
#include "rand64.h"
bitboard rand64()
{
return (static_cast<U64>(std::rand()) + (static_cast<U64>(std::rand()) << 15) +
(static_cast<U64>(std::rand()) << 30) + (static_cast<U64>(std::rand()) << 45) +
(static_cast<U64>(std::rand() & 0xf) << 60));
}
bitboard rand64_fewbits() { return rand64() & rand64() & rand64(... | 29.454545 | 81 | 0.604938 | sewbacca |
9f0fce3256348b26f01f4935f8cd46a9c31ce169 | 504 | cpp | C++ | src/invalidkeyexception.cpp | mika-s/chip8emu | a66fb7f8a50b094a6cb5c1028c2fc93bd5f5677a | [
"MIT"
] | null | null | null | src/invalidkeyexception.cpp | mika-s/chip8emu | a66fb7f8a50b094a6cb5c1028c2fc93bd5f5677a | [
"MIT"
] | null | null | null | src/invalidkeyexception.cpp | mika-s/chip8emu | a66fb7f8a50b094a6cb5c1028c2fc93bd5f5677a | [
"MIT"
] | null | null | null | #include <sstream>
#include "invalidkeyexception.h"
namespace Emu {
InvalidKeyException::InvalidKeyException(int keyNumber, int max)
: runtime_error("Invalid key") {
makeMessage(keyNumber, max);
}
const char* InvalidKeyException::what() const noexcept {
return message.c_str();
}
void InvalidKeyExceptio... | 21 | 86 | 0.678571 | mika-s |
9f12f178a04ff46e2ef04c8721bb892a6dfa6d84 | 1,483 | cpp | C++ | 001-100/093-Restore_IP_Addresses-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 001-100/093-Restore_IP_Addresses-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 001-100/093-Restore_IP_Addresses-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // Given a string containing only digits, restore it by returning all possible
// valid IP address combinations.
// For example:
// Given "25525511135",
// return ["255.255.11.135", "255.255.111.35"]. (Order does not matter)
class Solution {
public:
vector<string> restoreIpAddresses(string s) {
if (s.s... | 34.488372 | 78 | 0.327714 | ysmiles |
2f63326e6bd8bcf1c34eefd4fd9aa2fdc9655934 | 505 | cpp | C++ | builder.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | builder.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | builder.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | #include "builder.hpp"
#include <uuid/uuid.h>
#include <sstream>
#include "types.hpp"
void generate_uuid(std::string &uuid) {
uuid_t id;
uuid_generate(id);
char sid[UUID_LENGTH];
uuid_unparse_lower(id, sid);
uuid.assign(sid);
}
void generate_special_uuid(std::string &uuid) {
generate_uuid(uuid);
for ... | 19.423077 | 56 | 0.629703 | KoyamaSohei |
2f6f9d859899344ccd6cfacce358743a87de3266 | 117 | cpp | C++ | Test/Expect/test113.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | 2 | 2021-05-27T18:22:01.000Z | 2021-05-29T13:40:38.000Z | Test/Expect/test113.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | 1 | 2020-10-24T22:25:37.000Z | 2020-10-24T22:25:37.000Z | Test/Expect/test113.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | null | null | null | #include <propeller.h>
#include "test113.h"
int32_t test113::Foo(int32_t Aa)
{
return (Aa | (Z << 1));
}
| 13 | 33 | 0.581197 | archivest |
2f7102039a19d4c97d0d9ccc03c2c314227ee431 | 1,153 | cpp | C++ | packages/monte_carlo/collision/photon/src/MonteCarlo_CoupledStandardCompleteDopplerBroadenedPhotonEnergyDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_CoupledStandardCompleteDopplerBroadenedPhotonEnergyDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_CoupledStandardCompleteDopplerBroadenedPhotonEnergyDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_CoupledStandardCompleteDopplerBroadenedPhotonEnergyDistribution.cpp
//! \author Alex Robinson
//! \brief The coupled complete Doppler broadened photon energy dist. inst.
//!
//------------------------------------... | 50.130435 | 129 | 0.633131 | bam241 |
2f7ae8452be2892cef9f27959705547aae83a4ac | 2,636 | hpp | C++ | libs/fnd/functional/include/bksge/fnd/functional/detail/less_builtin_ptr_cmp.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/functional/include/bksge/fnd/functional/detail/less_builtin_ptr_cmp.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/functional/include/bksge/fnd/functional/detail/less_builtin_ptr_cmp.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file less_builtin_ptr_cmp.hpp
*
* @brief less_builtin_ptr_cmp クラステンプレートの定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_FUNCTIONAL_DETAIL_LESS_BUILTIN_PTR_CMP_HPP
#define BKSGE_FND_FUNCTIONAL_DETAIL_LESS_BUILTIN_PTR_CMP_HPP
#include <bksge/fnd/concepts/same_as.hpp>
#include <bksge/fnd/concepts/... | 25.346154 | 105 | 0.691199 | myoukaku |
2f8cff561f3bcbc3824f440f54d75563a600ffb8 | 2,411 | cpp | C++ | Codeforces/151B - Phone Numbers.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/151B - Phone Numbers.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/151B - Phone Numbers.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool is_taxi(const string &str) {
vector<int> freq(10, 0);
for (int i = 0; i < 8; ++i)
if (isdigit(str[i]))
freq[ str[i] - '0' ]++;
for (int i = 0; i < 10; ++i) if (freq[i] == 6) return true;
return false;
}
boo... | 27.089888 | 83 | 0.460805 | naimulcsx |
2f9c0331539e36bd9ff8463b34594ef16384dccb | 13,654 | hpp | C++ | include/RAJA/pattern/teams/teams_cuda.hpp | joshessman-llnl/RAJA | 705ec4d9a84a4f22d8757686b232cd027d682f71 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/pattern/teams/teams_cuda.hpp | joshessman-llnl/RAJA | 705ec4d9a84a4f22d8757686b232cd027d682f71 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/pattern/teams/teams_cuda.hpp | joshessman-llnl/RAJA | 705ec4d9a84a4f22d8757686b232cd027d682f71 | [
"BSD-3-Clause"
] | null | null | null | /*!
******************************************************************************
*
* \file
*
* \brief RAJA header file containing user interface for RAJA::Teams::cuda
*
******************************************************************************
*/
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 25.191882 | 79 | 0.626776 | joshessman-llnl |
2fa4e4833a834d7133da59446617b8c87b496e58 | 1,278 | cpp | C++ | leetcode/leetcode_1.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | 2 | 2021-04-28T07:40:13.000Z | 2022-01-13T09:03:07.000Z | leetcode/leetcode_1.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | null | null | null | leetcode/leetcode_1.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | null | null | null | //
// Created by kongshui on 5/12/21.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <numeric>
#include <array>
using namespace std;
/*
* 给定 nums = [2, 7, 11, 15], target = 9
* 因为 nums[0] + nums[1] = 2 + 7 = 9
* 所以返回 [0, 1]
*
* */
class Solution
{
public:
ve... | 20.612903 | 69 | 0.484351 | kongshuiJ |
2fa8a517ec7766543aeec729656a24a34b4d2240 | 9,817 | cpp | C++ | src/bindings/qt/QDateTime/QDateTime.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | 1 | 2018-02-22T01:09:18.000Z | 2018-02-22T01:09:18.000Z | src/bindings/qt/QDateTime/QDateTime.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | src/bindings/qt/QDateTime/QDateTime.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Charon Platform 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 <lua/lua.hpp>
#include <QtCore>
#include <iostream>
/**
* checkQDateTime
*/
QDateTime *
checkQDateTime( lua_State *L ) {
return *... | 27.731638 | 93 | 0.724661 | lazaroness |
2faac4478577106ed5cf409749b01b774db922df | 27,615 | cc | C++ | code/render/particles/base/particlesysteminstancebase.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/particles/base/particlesysteminstancebase.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/particles/base/particlesysteminstancebase.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// particlesysteminstancebase.cc
// (C) 2008 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "parti... | 36.770972 | 148 | 0.617454 | gscept |
2fb0b741315ab31c4ee89df4be848b15ca296a72 | 12,882 | cpp | C++ | Game/OGRE/OgreMain/src/OgreSerializer.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/OgreMain/src/OgreSerializer.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/OgreMain/src/OgreSerializer.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free software... | 32.612658 | 102 | 0.504037 | hackerlank |
2fb14a4b83d6755919b37c27c25589cbde206e6f | 3,508 | cpp | C++ | unit_tests/mapTest.cpp | mescourrou/epstl | 0b89c913932483dd41690155033e41868a7c9ce2 | [
"MIT"
] | null | null | null | unit_tests/mapTest.cpp | mescourrou/epstl | 0b89c913932483dd41690155033e41868a7c9ce2 | [
"MIT"
] | null | null | null | unit_tests/mapTest.cpp | mescourrou/epstl | 0b89c913932483dd41690155033e41868a7c9ce2 | [
"MIT"
] | null | null | null | #include <map.hpp>
#include "mapTest.hpp"
namespace epstl
{
#ifdef USE_CUSTOM_STL
/*
* Insert values in the map
*/
TEST_F(mapTest, insert)
{
map<int, int> m;
EXPECT_TRUE(m.insert(10, 0));
EXPECT_EQ(*m.at(10), 0);
EXPECT_FALSE(m.insert(10, 1));
EXPECT_TRUE(m.insert(13, 2));
EXPECT_TRUE(m.in... | 18.463158 | 60 | 0.547605 | mescourrou |
2fb1bd010ff391851ac17563abbff3beee0f4451 | 1,141 | hpp | C++ | include/cpp_io/unified/print.hpp | faithandbrave/cpp_io | 01192c08f64f8b9b4bd56eae7836f7ab442a409d | [
"MIT"
] | 3 | 2018-05-02T05:49:42.000Z | 2020-06-02T10:32:17.000Z | include/cpp_io/unified/print.hpp | faithandbrave/cpp_io | 01192c08f64f8b9b4bd56eae7836f7ab442a409d | [
"MIT"
] | null | null | null | include/cpp_io/unified/print.hpp | faithandbrave/cpp_io | 01192c08f64f8b9b4bd56eae7836f7ab442a409d | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include "../stream/file.hpp"
#include "../traits/is_stream.hpp"
#include "../print/uint.hpp"
#include "../print/sint.hpp"
namespace io {
template <class OStream, class T, class... Options>
std::enable_if_t<is_stream_v<OStream>> print(OStream& os, T&& x, Options&&... options) {
... | 27.829268 | 88 | 0.620508 | faithandbrave |
2fb413ad7b7b9ce4cf9b632d047c047e469fa077 | 341 | cpp | C++ | publisher_subscriber/src/node.cpp | griswaldbrooks/dependency_injection_ros | 7a494912eb878917f841d9f8159a0f9d68ad9f1b | [
"MIT"
] | 1 | 2021-09-11T14:17:14.000Z | 2021-09-11T14:17:14.000Z | publisher_subscriber/src/node.cpp | PickNikRobotics/ros_testing_templates | 8e0394929f30dd785b0311e40c71d5e677adfa65 | [
"MIT"
] | null | null | null | publisher_subscriber/src/node.cpp | PickNikRobotics/ros_testing_templates | 8e0394929f30dd785b0311e40c71d5e677adfa65 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <memory>
#include "publisher_subscriber/incrementer.h"
#include "publisher_subscriber/ros_middleware.h"
int main(int argc, char **argv) {
ros::init(argc, argv, "Incrementer");
ros::NodeHandle n;
Incrementer incrementer{std::make_unique<RosMiddleware>(n, "/in", "/out")};
ros::sp... | 20.058824 | 77 | 0.70088 | griswaldbrooks |
2fb8244cddac9c1afcc02ae86ffad10158fa83af | 3,064 | cpp | C++ | Backtracking/Rat in a Maze Problem - I/Solution.cpp | VarunSAthreya/LeetCode-Solutions | aeab92df5bca208c2442ffdb1487fe5e3aadb3de | [
"MIT"
] | 1 | 2021-11-24T16:20:32.000Z | 2021-11-24T16:20:32.000Z | Backtracking/Rat in a Maze Problem - I/Solution.cpp | VarunSAthreya/LeetCode-Solutions | aeab92df5bca208c2442ffdb1487fe5e3aadb3de | [
"MIT"
] | null | null | null | Backtracking/Rat in a Maze Problem - I/Solution.cpp | VarunSAthreya/LeetCode-Solutions | aeab92df5bca208c2442ffdb1487fe5e3aadb3de | [
"MIT"
] | 3 | 2021-09-03T15:14:12.000Z | 2022-03-07T04:04:32.000Z | // { Driver Code Starts
// Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
// User function template for C++
class Solution
{
public:
vector<string> findPath(vector<vector<int>> &m, int n)
{
// Your code goes here
string s = "";
vector<stri... | 26.188034 | 124 | 0.398172 | VarunSAthreya |
2fbc65eda8a7317727cbe33228cfcfbeabed1dca | 5,530 | cpp | C++ | pwn_cc_test.cpp | eugene-che/pwn_cc | 464a639570f6366efed965eed0375e0da9cde36d | [
"Apache-2.0"
] | 1 | 2018-08-06T17:57:26.000Z | 2018-08-06T17:57:26.000Z | pwn_cc_test.cpp | eugene-che/pwn_cc | 464a639570f6366efed965eed0375e0da9cde36d | [
"Apache-2.0"
] | 1 | 2018-08-27T12:33:07.000Z | 2018-08-27T14:16:09.000Z | pwn_cc_test.cpp | eugene-che/pwn_cc | 464a639570f6366efed965eed0375e0da9cde36d | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_MODULE pwncc
#include <boost/test/unit_test.hpp>
#include "pwn_cc.hpp"
BOOST_AUTO_TEST_SUITE(pwncc_convex)
BOOST_AUTO_TEST_CASE(construct_from_rate_latency_list) {
BOOST_CHECK_THROW((convex_curve{{0.0, 1.0}}), std::runtime_error);
BOOST_CHECK_THROW((convex_curve{{1.0, 1.0/0.0}}), std::runtime_er... | 43.543307 | 114 | 0.65443 | eugene-che |
2fbd77f597ac8288ab433b8a58ce655a4e918ea2 | 25,860 | cpp | C++ | cpp/subprojects/common/src/common/rule_refinement/rule_refinement_exact.cpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | null | null | null | cpp/subprojects/common/src/common/rule_refinement/rule_refinement_exact.cpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | null | null | null | cpp/subprojects/common/src/common/rule_refinement/rule_refinement_exact.cpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | 1 | 2022-03-08T22:06:56.000Z | 2022-03-08T22:06:56.000Z | #include "common/rule_refinement/rule_refinement_exact.hpp"
#include "common/math/math.hpp"
#define USE_NEQ false
#define USE_LEQ true
template<class T>
ExactRuleRefinement<T>::ExactRuleRefinement(
std::unique_ptr<IHeadRefinement> headRefinementPtr, const T& labelIndices, uint32 numExamples,
uint32 ... | 48.609023 | 121 | 0.532869 | mrapp-ke |
2fbf818cbf61968fa6ac25ef5db9a8653bbdb5f1 | 12,071 | cxx | C++ | Applications/OtsuThresholdImage/niftkOtsuThresholdImage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | Applications/OtsuThresholdImage/niftkOtsuThresholdImage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | Applications/OtsuThresholdImage/niftkOtsuThresholdImage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 25.73774 | 104 | 0.565653 | NifTK |
2fc25386f4faa52dcc1e5a640ea275a40d4d59cd | 9,168 | cpp | C++ | Src/PlayerHandGadget.cpp | muffinista/palm-pitch | aa09c857b1ccc14672b3eb038a419bd13abc0925 | [
"MIT"
] | 1 | 2015-11-13T21:40:35.000Z | 2015-11-13T21:40:35.000Z | Src/PlayerHandGadget.cpp | muffinista/palm-pitch | aa09c857b1ccc14672b3eb038a419bd13abc0925 | [
"MIT"
] | null | null | null | Src/PlayerHandGadget.cpp | muffinista/palm-pitch | aa09c857b1ccc14672b3eb038a419bd13abc0925 | [
"MIT"
] | null | null | null | #include "Common.h"
#include "PlayerHandGadget.h"
#include "GameManager.h"
Int16 CPlayerHandGadget::card_width = 20;
Int16 CPlayerHandGadget::card_height = 28;
Int16 CPlayerHandGadget::card_spacing = 14;
extern GameManager *gManager;
CPlayerHandGadget::CPlayerHandGadget() {
Reset();
}
Boolean CPlay... | 23.937337 | 113 | 0.626745 | muffinista |
2fc5cc3f1ab9b0f5773e3e5119db452c0769ee7e | 949 | hpp | C++ | test/mock/core/crypto/vrf_provider_mock.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/vrf_provider_mock.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/vrf_provider_mock.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_VRF_PROVIDER_MOCK_HPP
#define KAGOME_VRF_PROVIDER_MOCK_HPP
#include <gmock/gmock.h>
#include "crypto/vrf_provider.hpp"
namespace kagome::crypto {
struct VRFProviderMock : public VRFProvider {
MO... | 31.633333 | 73 | 0.57745 | FlorianFranzen |
2fca1b3b137b6b12c4d3cdf91ffd7da63d69ff5d | 319 | cpp | C++ | ieee_sep/loWPAN.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/loWPAN.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/loWPAN.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// loWPAN.cpp
// Implementation of the Class loWPAN
// Created on: 13-Apr-2020 2:51:34 PM
// Original author: svanausdall
///////////////////////////////////////////////////////////
#include "loWPAN.h"
loWPAN::loWPAN(){
}
loWPAN::~loWPAN(){
} | 16.789474 | 59 | 0.398119 | Tylores |
2fcc2e41faf658913f336f8dee4f65b638b6861c | 406 | cpp | C++ | 575.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 575.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 575.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
int distributeCandies(vector<int>& candies) {
int num=candies.size()/2;
map<int,int> candykind;
for(int i=0;i<candies.size();i++){
if(candykind.count(candies[i])==1){
continue;
}
candykind[candies[i]]=1;
}
... | 25.375 | 49 | 0.514778 | zfang399 |
2fceb1442852ec637848faba82e54cb43252e411 | 319 | cpp | C++ | Discipline.cpp | dkolesni-prog/UNI_BAZA | f8fc4c22c6c485e022dc71572c8c59f8de29c4e9 | [
"MIT"
] | null | null | null | Discipline.cpp | dkolesni-prog/UNI_BAZA | f8fc4c22c6c485e022dc71572c8c59f8de29c4e9 | [
"MIT"
] | null | null | null | Discipline.cpp | dkolesni-prog/UNI_BAZA | f8fc4c22c6c485e022dc71572c8c59f8de29c4e9 | [
"MIT"
] | null | null | null | #include "Discipline.h"
std::ostream& operator<<(std::ostream& out, const Discipline& discipline) {
out << discipline._name << " " << discipline._qpersonal;
return out;
}
std::istream& operator>>(std::istream& in, Discipline& discipline) {
in >> discipline._name >> discipline._qpersonal;
return in;
} | 29 | 75 | 0.677116 | dkolesni-prog |
2fd5dd31671614953b4e7129424ec435b92738a5 | 10,641 | cpp | C++ | Source/Urho3D/Graphics/OpenGL/OGLComputeDevice.cpp | crystaldev3d/rbfx | 88db56f05d9c2f50d427cb8b2ab06d1feaef36b3 | [
"MIT"
] | 48 | 2016-11-14T00:39:35.000Z | 2018-12-18T16:37:43.000Z | Source/Urho3D/Graphics/OpenGL/OGLComputeDevice.cpp | crystaldev3d/rbfx | 88db56f05d9c2f50d427cb8b2ab06d1feaef36b3 | [
"MIT"
] | 54 | 2017-10-18T07:18:12.000Z | 2018-12-23T14:09:30.000Z | Source/Urho3D/Graphics/OpenGL/OGLComputeDevice.cpp | crystaldev3d/rbfx | 88db56f05d9c2f50d427cb8b2ab06d1feaef36b3 | [
"MIT"
] | 10 | 2017-11-10T11:46:15.000Z | 2018-12-18T11:58:44.000Z | //
// Copyright (c) 2017-2020 the Urho3D project.
//
// 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, m... | 31.764179 | 166 | 0.643267 | crystaldev3d |
2fd7db47709ce2d027a57a8b6710879395eb3f5b | 4,219 | cpp | C++ | os-programming/assignDoc7/Assignment07.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | os-programming/assignDoc7/Assignment07.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | os-programming/assignDoc7/Assignment07.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <cstring>
#include <string>
#pragma warning (disable:4996)
using namespace std;
vector<int>total, request, available, release, waitIndex;
vector<vector<int>>MAX, ALLOCATION, NEED;
int n, m; //n=프로세스의 갯수, m=자원의 갯수
struct Wait {
int wait_processNum... | 21.747423 | 90 | 0.565774 | dkswnkk |
7c873778a6201a56239447a738f0b37d76aec884 | 2,245 | hpp | C++ | source/core/config.hpp | GanbaraKnight/light-field-renderer | 5b161a32ded80078f564d9177e12d19c44c6003b | [
"MIT"
] | null | null | null | source/core/config.hpp | GanbaraKnight/light-field-renderer | 5b161a32ded80078f564d9177e12d19c44c6003b | [
"MIT"
] | null | null | null | source/core/config.hpp | GanbaraKnight/light-field-renderer | 5b161a32ded80078f564d9177e12d19c44c6003b | [
"MIT"
] | null | null | null | #pragma once
#include <experimental/filesystem>
#include <glm/glm.hpp>
#include <map>
class Config
{
public:
Config() { defaults(); }
void open(std::experimental::filesystem::path path);
void defaults();
struct Property
{
Property() { }
Property(float value, float min, float ma... | 24.67033 | 116 | 0.616036 | GanbaraKnight |
7c8b4d28ae72ebf3ebb74b2aed783489cb0232fb | 356 | cpp | C++ | sgu/113/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | sgu/113/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | sgu/113/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int k=0;k<n;++k){
int s;
cin>>s;
int c=0;
for(int i=2;i<=sqrt(s);++i){
while(s%i==0){
s/=i;
c++;
if(c>2){
break;
}
}
if(c>2){
break;
}
}
if(s>1)c++;
if(c>2||c<2)cout<<"No"<<e... | 11.866667 | 30 | 0.457865 | sjj118 |
7c8bc758f6bda7256d920478868f46cf7c01bc0d | 6,865 | cpp | C++ | ice/src/LexicalAnalyzer.cpp | chen770701780/ice | 573a35a68ffa7659a3fc1d031163b4efd60107e9 | [
"MIT"
] | null | null | null | ice/src/LexicalAnalyzer.cpp | chen770701780/ice | 573a35a68ffa7659a3fc1d031163b4efd60107e9 | [
"MIT"
] | null | null | null | ice/src/LexicalAnalyzer.cpp | chen770701780/ice | 573a35a68ffa7659a3fc1d031163b4efd60107e9 | [
"MIT"
] | null | null | null | #include "Ice.h"
namespace Ice
{
// analyze the line & generate tokens
void LexicalAnalyzer::analy(::std::string line)
{
auto state = State::Begin;
auto reading = line.c_str();
::std::string value;
// until *reading == '\0'
while (*reading)
{
switch (state)
{
case State::Begin:
switch ... | 18.554054 | 105 | 0.505025 | chen770701780 |
7c8bcd7ef7f6fc8f12ec6934b5b838986d48c5ca | 11,683 | cpp | C++ | decoder/source/ptm/trc_pkt_elem_ptm.cpp | rossburton/OpenCSD | 01d44a34f8fc057f4b041c01f8d9502d77fe612f | [
"BSD-3-Clause"
] | 84 | 2015-08-07T09:40:59.000Z | 2022-03-14T09:04:33.000Z | decoder/source/ptm/trc_pkt_elem_ptm.cpp | rossburton/OpenCSD | 01d44a34f8fc057f4b041c01f8d9502d77fe612f | [
"BSD-3-Clause"
] | 41 | 2016-07-28T09:14:06.000Z | 2022-03-04T10:47:42.000Z | decoder/source/ptm/trc_pkt_elem_ptm.cpp | rossburton/OpenCSD | 01d44a34f8fc057f4b041c01f8d9502d77fe612f | [
"BSD-3-Clause"
] | 37 | 2016-06-08T15:40:47.000Z | 2022-02-18T09:29:35.000Z | /*
* \file trc_pkt_elem_ptm.cpp
* \brief OpenCSD :
*
* \copyright Copyright (c) 2015, ARM Limited. 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. Redistributi... | 24.647679 | 111 | 0.587606 | rossburton |
7c8d55a9592c734851e4833661655a2025cd3329 | 39,923 | cpp | C++ | src/sparse-analysis/compute-gs-analyzer.cpp | tanner-andrulis/timeloop | acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951 | [
"BSD-3-Clause"
] | 1 | 2022-03-05T03:07:51.000Z | 2022-03-05T03:07:51.000Z | src/sparse-analysis/compute-gs-analyzer.cpp | tanner-andrulis/timeloop | acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951 | [
"BSD-3-Clause"
] | null | null | null | src/sparse-analysis/compute-gs-analyzer.cpp | tanner-andrulis/timeloop | acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2021, NVIDIA CORPORATION. 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 condi... | 44.55692 | 156 | 0.659044 | tanner-andrulis |
7c8e58f4130910a4b6accd103561f0c7434adf56 | 2,220 | cpp | C++ | src/lib/instrumentor.cpp | codewangler/cpp_starter_project | 49262641a36e1027fcf2018210613f662a071563 | [
"MIT"
] | null | null | null | src/lib/instrumentor.cpp | codewangler/cpp_starter_project | 49262641a36e1027fcf2018210613f662a071563 | [
"MIT"
] | null | null | null | src/lib/instrumentor.cpp | codewangler/cpp_starter_project | 49262641a36e1027fcf2018210613f662a071563 | [
"MIT"
] | null | null | null | // @file instrumentor.hpp
// @author Roger Davies [rdavies3000@gmail.com]
//
// Copyright (c) 2021 Roger Davies, all rights reserved
#include "instrumentor.hpp"
namespace rtb {
void Instrumentor::BeginSession(const std::string& name,
const std::string& filepath) {
output... | 26.428571 | 79 | 0.644595 | codewangler |
7c9f3d4353723d963540e3783060db0a9ba830d5 | 1,187 | cpp | C++ | search_engine/request_queue.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:01:03.000Z | 2022-03-15T19:01:03.000Z | search_engine/request_queue.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:11:59.000Z | 2022-03-15T19:11:59.000Z | search_engine/request_queue.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | null | null | null | #include "request_queue.h"
#include <deque>
#include <string>
#include <vector>
#include "search_server.h"
RequestQueue::RequestQueue(const SearchServer& search_server) : search_server_(search_server) {}
std::vector<Document> RequestQueue::AddFindRequest(const std::string& raw_query, DocumentStatus status) {
st... | 26.977273 | 105 | 0.715249 | oleg-nazarov |
7cad3eda27a39e247647680ae57cb09bf7c311c8 | 2,110 | hpp | C++ | src/Graphics/VulkanContext.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | 1 | 2022-01-24T18:15:56.000Z | 2022-01-24T18:15:56.000Z | src/Graphics/VulkanContext.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | src/Graphics/VulkanContext.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | #pragma once
#include "IO.hpp"
#include "VulkanSync.hpp"
#include "VulkanImgui.hpp"
#include "VulkanFrame.hpp"
#include "VulkanDevice.hpp"
#include "VulkanSurface.hpp"
#include "VulkanInstance.hpp"
#include "VulkanSwapchain.hpp"
#include "VulkanDescriptor.hpp"
#include "VulkanCommandPool.hpp"
namespace Ondine::Graphi... | 27.402597 | 63 | 0.7891 | llGuy |
7cb096cb607c6a686cf3b8f8c7cfac9b9697e009 | 1,581 | hpp | C++ | src/shogun/lib/tapkee/projection.hpp | aquatiko/shogun | d8ae83467038a1159e9c40f2d79393c7de14a712 | [
"BSD-3-Clause"
] | 2 | 2015-01-13T15:18:27.000Z | 2015-05-01T13:28:48.000Z | src/shogun/lib/tapkee/projection.hpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | src/shogun/lib/tapkee/projection.hpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Copyright (c) 2012-2013 Sergey Lisitsyn, Fernando Iglesias
*/
#ifndef TAPKEE_PROJECTION_H_
#define TAPKEE_PROJECTION_H_
namespace tapkee
{
//! A base class for implementation of projecting
struct ProjectionImplementation
{
virtual... | 23.597015 | 104 | 0.764706 | aquatiko |
7cb1136057e25f1389a87e3c428370b8e7bef790 | 595 | hpp | C++ | BioInf/BioInf/CommonHeaders.hpp | abuterin/BIOINF_OLC | be136d2c36c21e94a69b565916f89553a34dfb68 | [
"MIT"
] | null | null | null | BioInf/BioInf/CommonHeaders.hpp | abuterin/BIOINF_OLC | be136d2c36c21e94a69b565916f89553a34dfb68 | [
"MIT"
] | null | null | null | BioInf/BioInf/CommonHeaders.hpp | abuterin/BIOINF_OLC | be136d2c36c21e94a69b565916f89553a34dfb68 | [
"MIT"
] | null | null | null | //#pragma once
#ifndef COMMON_H_
#define COMMON_H_
#include <iostream>
#include <vector>
#include <map>
//#include <minmax.h>
#include <algorithm> // std::sort
#include <list>
#include <unordered_set>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <cstring>
#include <set>
#include "Read.hpp"
#inclu... | 19.833333 | 37 | 0.712605 | abuterin |
7cb7bbe2e8dfc76822f5c73bdbf6bde10801ef35 | 2,652 | cpp | C++ | TDEngine2/plugins/WindowsInputContext/source/CKeyboard.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/plugins/WindowsInputContext/source/CKeyboard.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/plugins/WindowsInputContext/source/CKeyboard.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "./../include/CKeyboard.h"
#include <core/IInputContext.h>
#include "./../include/CDirectInputMappings.h"
#include <cstring>
#if defined (TDE2_USE_WIN32PLATFORM)
namespace TDEngine2
{
CKeyboard::CKeyboard():
CBaseInputDevice()
{
}
E_RESULT_CODE CKeyboard::_createInternalHandlers(const TInternalInputD... | 21.047619 | 108 | 0.725867 | bnoazx005 |
7cc2e504b1ea6f7553204f2388275258728850b2 | 1,308 | cpp | C++ | Effective Debugging: 66 Specific Ways to Debug Software and Systems/src/commits/StagedFilesList.cpp | juliagoda/BookProjects | d2c2da993cc9fcbfead696b78d3bf98c66e3373c | [
"Unlicense"
] | null | null | null | Effective Debugging: 66 Specific Ways to Debug Software and Systems/src/commits/StagedFilesList.cpp | juliagoda/BookProjects | d2c2da993cc9fcbfead696b78d3bf98c66e3373c | [
"Unlicense"
] | null | null | null | Effective Debugging: 66 Specific Ways to Debug Software and Systems/src/commits/StagedFilesList.cpp | juliagoda/BookProjects | d2c2da993cc9fcbfead696b78d3bf98c66e3373c | [
"Unlicense"
] | null | null | null | #include "StagedFilesList.h"
#include <GitQlientRole.h>
#include <QMenu>
StagedFilesList::StagedFilesList(QWidget *parent)
: QListWidget(parent)
{
connect(this, &QListWidget::customContextMenuRequested, this, &StagedFilesList::onContextMenu);
connect(this, &QListWidget::itemDoubleClicked, this, &StagedFiles... | 27.25 | 116 | 0.707951 | juliagoda |
7cc67ee17af4365bc3a6e5d6181e92da83f11028 | 135 | cpp | C++ | c02/ex2_8.cpp | qzhang0/CppPrimer | 315ef879bd4d3b51d594e33b049adee0d47e4c11 | [
"MIT"
] | null | null | null | c02/ex2_8.cpp | qzhang0/CppPrimer | 315ef879bd4d3b51d594e33b049adee0d47e4c11 | [
"MIT"
] | null | null | null | c02/ex2_8.cpp | qzhang0/CppPrimer | 315ef879bd4d3b51d594e33b049adee0d47e4c11 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
cout << 2 << "\115\012";
cout << 2 << "\t\115\012";
return 0;
} | 15 | 30 | 0.511111 | qzhang0 |
7cce5856cd1df0289b7a2b8479fa45cf5dfac1e7 | 2,023 | cpp | C++ | Inimigo.cpp | weldisalves/Trabalho-Final | 1a2161ee05a3d2bd4fb6644d918b7730105fe490 | [
"Apache-2.0"
] | null | null | null | Inimigo.cpp | weldisalves/Trabalho-Final | 1a2161ee05a3d2bd4fb6644d918b7730105fe490 | [
"Apache-2.0"
] | null | null | null | Inimigo.cpp | weldisalves/Trabalho-Final | 1a2161ee05a3d2bd4fb6644d918b7730105fe490 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <math.h>
#include "Inimigo.h"
#include "Elemento.h"
#include "Player.h"
Inimigo::Inimigo(){
this->x=0;
this->y=0;
this->hp=0;
this->ataque=0;
this->defesa =0;
this->deslocamento =0.1;
// retangulo.setX(-30 + getX());
// retangulo.setY(-30 + getY());
// retangulo.setWidth(60);
// r... | 20.23 | 76 | 0.591201 | weldisalves |
7cce5db8be0bc0dd69e353de367cffa48284cca0 | 4,447 | cpp | C++ | qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/object.cpp | largeriver/twrp | 767b63ed5e0763538466569984cf7930d9c59921 | [
"MIT"
] | null | null | null | qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/object.cpp | largeriver/twrp | 767b63ed5e0763538466569984cf7930d9c59921 | [
"MIT"
] | null | null | null | qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/object.cpp | largeriver/twrp | 767b63ed5e0763538466569984cf7930d9c59921 | [
"MIT"
] | null | null | null | // checkbox.cpp - GUICheckbox object
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/reboot.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <time.h>
#include <unistd.h>
#include <... | 21.075829 | 98 | 0.652125 | largeriver |
7cd2728be3b8f5ddd853b20013413293a1a005ef | 1,822 | cc | C++ | src/csvparser.cc | CS126SP20/final-project-renzol2 | 5803a1eaa8a27e9f1288946d34f34dedb10c2fa0 | [
"MIT"
] | null | null | null | src/csvparser.cc | CS126SP20/final-project-renzol2 | 5803a1eaa8a27e9f1288946d34f34dedb10c2fa0 | [
"MIT"
] | null | null | null | src/csvparser.cc | CS126SP20/final-project-renzol2 | 5803a1eaa8a27e9f1288946d34f34dedb10c2fa0 | [
"MIT"
] | 1 | 2021-02-01T23:13:57.000Z | 2021-02-01T23:13:57.000Z | //
// Created by Renzo Ledesma on 4/25/2020.
//
#include "coviddata/csvparser.h"
#include <iostream>
#include <fstream>
namespace coviddata {
/**
* Parses through a single CSV file and stores the values
* @param filename name of file to parse
*/
CsvParser::CsvParser(const std::string& filename) : fail_(false) {
... | 26.028571 | 132 | 0.695939 | CS126SP20 |
7cd2cff28f4660b8e45e73aa2585627cca5568aa | 13,396 | cpp | C++ | cliff_detector/src/cliff_detector.cpp | mdrwiega/kinect_nav_tools | f30d64833fbdd6d4eb8fa114b2afead51226f30e | [
"BSD-3-Clause"
] | null | null | null | cliff_detector/src/cliff_detector.cpp | mdrwiega/kinect_nav_tools | f30d64833fbdd6d4eb8fa114b2afead51226f30e | [
"BSD-3-Clause"
] | null | null | null | cliff_detector/src/cliff_detector.cpp | mdrwiega/kinect_nav_tools | f30d64833fbdd6d4eb8fa114b2afead51226f30e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016-2021 Michał Drwięga (drwiega.michal@gmail.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 32.753056 | 98 | 0.68401 | mdrwiega |
7ce67b835356af4c2b7823c3cc1559fd37f4798f | 14,101 | cpp | C++ | game/client/tfo/InventoryPanel.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 13 | 2016-04-05T23:23:16.000Z | 2022-03-20T11:06:04.000Z | game/client/tfo/InventoryPanel.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | null | null | null | game/client/tfo/InventoryPanel.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 4 | 2016-04-05T23:23:19.000Z | 2021-05-16T05:09:46.000Z | //========= Copyright Bernt Andreas Eide, All rights reserved. ============//
//
// Purpose: Inventory Panel GUI - Still quite hardcoded, this file has been heavily refactored and tweaked for the past years.
//
//=============================================================================//
#include "cbase.h"
#includ... | 27.274662 | 318 | 0.714914 | BerntA |
7ce686d8aabd0de2845110d70a6fb5f28beb8e68 | 3,458 | cpp | C++ | src/input.cpp | ghotinggoad/psychosis | 65259e55017818a1d59b44e9d07cd71c86e50eb8 | [
"Apache-2.0"
] | 1 | 2020-05-19T14:10:13.000Z | 2020-05-19T14:10:13.000Z | src/input.cpp | ghotinggoad/psychosis | 65259e55017818a1d59b44e9d07cd71c86e50eb8 | [
"Apache-2.0"
] | null | null | null | src/input.cpp | ghotinggoad/psychosis | 65259e55017818a1d59b44e9d07cd71c86e50eb8 | [
"Apache-2.0"
] | null | null | null | #include "../include/global.hpp"
double xlast;
double ylast;
void initInput(){
glfwSetKeyCallback(window, key_callback);
glfwGetCursorPos(window, &xlast, &ylast);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
glfwSetCursorPosCallback(window, mouse_callback);
}
// Movement FORWARD = 0,... | 31.153153 | 90 | 0.578369 | ghotinggoad |
7cea266f4cafe1a3389c0f6dd565c544e0f8991c | 94 | cpp | C++ | NeuralNetwork/Utils.cpp | FerMod/NeuralNetwork | 639eaf1a2e0566f5ff7f04dff8ad0156b1691a13 | [
"MIT"
] | 1 | 2019-01-27T21:37:46.000Z | 2019-01-27T21:37:46.000Z | NeuralNetwork/Utils.cpp | FerMod/NeuralNetwork | 639eaf1a2e0566f5ff7f04dff8ad0156b1691a13 | [
"MIT"
] | null | null | null | NeuralNetwork/Utils.cpp | FerMod/NeuralNetwork | 639eaf1a2e0566f5ff7f04dff8ad0156b1691a13 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Utils.hpp"
using namespace NeuralNetwork;
using namespace Utils;
| 13.428571 | 30 | 0.765957 | FerMod |
7cef27e290e7f8f34ba436fcefc74aa4a8e56e80 | 2,975 | cpp | C++ | Hermes/src/Vector/mat.cpp | chris-chan-commits/Lore-Frameworks | 1ffceecd3ede866407070419c175edd5d879bcb6 | [
"Apache-2.0"
] | 2 | 2021-04-26T16:06:57.000Z | 2021-04-28T04:10:21.000Z | Hermes/src/Vector/mat.cpp | chris-chan-commits/Lore-Frameworks | 1ffceecd3ede866407070419c175edd5d879bcb6 | [
"Apache-2.0"
] | null | null | null | Hermes/src/Vector/mat.cpp | chris-chan-commits/Lore-Frameworks | 1ffceecd3ede866407070419c175edd5d879bcb6 | [
"Apache-2.0"
] | 1 | 2021-05-12T18:57:32.000Z | 2021-05-12T18:57:32.000Z | #include "mat.h"
namespace Hermes {
mat4::mat4(float matrix[4][4])
{
for (int y = 0; y < 4; y++)
{
for (int x = 0; x < 4; x++)
{
m[y][x] = matrix[y][x];
}
}
}
mat4::mat4()
{
for (int y = 0; y < 4; y++)
{
for (int x = 0; x < 4; x++)
{
m[y][x] = 0.0f;
}
}
}
mat4::mat4(float ... | 16.256831 | 97 | 0.488739 | chris-chan-commits |
7cf48351b1a2510b3c9a01dd5481ca8c6a2f3a49 | 6,479 | hpp | C++ | Ponce/include_IDA6.8/lex.hpp | fcccode/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | 1 | 2019-12-30T00:19:08.000Z | 2019-12-30T00:19:08.000Z | Ponce/include_IDA6.8/lex.hpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | Ponce/include_IDA6.8/lex.hpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | /*
* Interactive disassembler (IDA).
* Copyright (c) 1990-2015 Hex-Rays
* ALL RIGHTS RESERVED.
*
*/
#ifndef LEX_HPP
#define LEX_HPP
#pragma pack(push, 1) // IDA uses 1 byte alignments!
/*! \file lex.hpp
\brief Tools for parsing C-like input
Functions in this file use objects of opaque type... | 27.222689 | 127 | 0.590215 | fcccode |
7cfa6e11b3e5cf43be74ce410d371456ed970e54 | 4,819 | cpp | C++ | dp/third-party/hyperscan/src/parser/AsciiComponentClass.cpp | jtravee/neuvector | a88b9363108fc5c412be3007c3d4fb700d18decc | [
"Apache-2.0"
] | 2,868 | 2017-10-26T02:25:23.000Z | 2022-03-31T23:24:16.000Z | src/parser/AsciiComponentClass.cpp | kuangxiaohong/phytium-hyperscan | ae1932734859906278dba623b77f99bba1010d5c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 270 | 2017-10-30T19:53:54.000Z | 2022-03-30T22:03:17.000Z | src/parser/AsciiComponentClass.cpp | kuangxiaohong/phytium-hyperscan | ae1932734859906278dba623b77f99bba1010d5c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 403 | 2017-11-02T01:18:22.000Z | 2022-03-14T08:46:20.000Z | /*
* Copyright (c) 2015, Intel Corporation
*
* 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 the follow... | 29.931677 | 80 | 0.690185 | jtravee |
cfac7934151c34ce20450470ba0c3fd03fa15e65 | 11,117 | cpp | C++ | QuadDecode/Examples/main.cpp | brainchen98/Team-PI-Lib | fa6324c9bb3ea03b86a0ab49c683f3fc35084511 | [
"MIT"
] | 2 | 2015-09-30T05:27:57.000Z | 2015-10-12T08:05:45.000Z | QuadDecode/Examples/main.cpp | brainchen98/Team-PI-Lib | fa6324c9bb3ea03b86a0ab49c683f3fc35084511 | [
"MIT"
] | null | null | null | QuadDecode/Examples/main.cpp | brainchen98/Team-PI-Lib | fa6324c9bb3ea03b86a0ab49c683f3fc35084511 | [
"MIT"
] | 2 | 2018-07-16T22:37:49.000Z | 2018-12-18T11:55:29.000Z | /* Send back values to be read by Python pyserial
Send back 6 values for realtime X,Y,Z and latched X,Y,Z
On button push, latch X,Y,Z with realtime X,Y,Z
Send lines with
RX<value>\n (realtime)
RY<value>\n
RZ<value>\n
LX<value>\n (latched)
LY<value>\n
LZ<value>\n
Send back <value> as ascii strin... | 28.950521 | 75 | 0.658271 | brainchen98 |
cfaeaa7b7b8b1e42f56059d014abbbed7d284886 | 6,452 | cpp | C++ | extension/main.cpp | limuhit/pseudocylindrical_convolution | 8af02a2d8f018177efdf7e73edffde87b7efdafe | [
"MIT"
] | 6 | 2022-02-15T07:37:28.000Z | 2022-03-07T01:57:01.000Z | extension/main.cpp | limuhit/pseudocylindrical_convolution | 8af02a2d8f018177efdf7e73edffde87b7efdafe | [
"MIT"
] | 2 | 2022-03-01T17:27:24.000Z | 2022-03-30T17:58:01.000Z | extension/main.cpp | limuhit/pseudocylindrical_convolution | 8af02a2d8f018177efdf7e73edffde87b7efdafe | [
"MIT"
] | 1 | 2022-03-25T03:00:06.000Z | 2022-03-25T03:00:06.000Z | #include "main.hpp"
#include <torch/extension.h>
namespace py = pybind11;
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
py::class_<projects_opt>(m,"ProjectsOp")
.def(py::init<int, int , std::vector<float>, std::vector<float>, float, bool, int, bool>())
.def("to", &projects_opt::to)
.def("f... | 47.094891 | 99 | 0.642436 | limuhit |
cfb148fc5261c9f8d4028f6d52fde03e55ad963e | 5,627 | cpp | C++ | guia2/ejercicio2.cpp | junrrein/ic2017 | e7ab09257093a56751c58a4633a049f7746f00e3 | [
"Unlicense"
] | null | null | null | guia2/ejercicio2.cpp | junrrein/ic2017 | e7ab09257093a56751c58a4633a049f7746f00e3 | [
"Unlicense"
] | null | null | null | guia2/ejercicio2.cpp | junrrein/ic2017 | e7ab09257093a56751c58a4633a049f7746f00e3 | [
"Unlicense"
] | null | null | null | #include "radial_por_lotes.cpp"
#include "mlp_salida_lineal.cpp"
#include "../guia1/particionar.cpp"
#include <gnuplot-iostream.h>
#include "../config.hpp"
int main()
{
arma_rng::set_seed_random();
mat datos;
datos.load(config::sourceDir + "/guia2/datos/mervalTuplas.csv");
const string rutaParticiones... | 46.891667 | 131 | 0.550382 | junrrein |
cfb2248baf34f00d845a5519c893236d2a1b29ad | 362 | cpp | C++ | Geolocalizacion/interface.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | Geolocalizacion/interface.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | Geolocalizacion/interface.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | #include "interface.h"
Interface::Interface(QQuickItem *parent) : QQuickItem(parent) {
}
void Interface::setBasicText(const QString &newBasicText) {
if (m_basicText != newBasicText)
m_basicText = newBasicText;
else
return;
}
void Interface::showInConsole(const QString &text) con... | 21.294118 | 64 | 0.646409 | ZoraDomain |
cfb5e390034a103e5f3234ff1d6f9428fa055d0d | 286 | cpp | C++ | override.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | override.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | override.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | 1 | 2020-02-21T17:16:50.000Z | 2020-02-21T17:16:50.000Z | #include <iostream>
using namespace std;
class base
{
public:
virtual void fbase(int data1)final
{
cout << "base::fbase(int)" << endl;
}
};
class fabase:public base
{
public:
void fbase(int data1)override
{
cout << "base:fbase(int,int)" << endl;
}
};
int main()
{
}
| 9.225806 | 40 | 0.622378 | zyfjeff |
cfb70495b8562650c20b59aa0056f54a8c85a895 | 7,680 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.KeyedHashAlgorithm/CPP/encodewithcontoso.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-03-12T19:26:36.000Z | 2022-01-10T21:45:33.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.KeyedHashAlgorithm/CPP/encodewithcontoso.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.KeyedHashAlgorithm/CPP/encodewithcontoso.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z | // This sample class demonstrates how to use the ContosoKeyedHash class to
// compute Hash
//<Snippet21>
#using <System.dll>
#using "contosokeyedhash.dll"
using namespace Contoso;
using namespace System;
using namespace System::IO;
using namespace System::Text;
using namespace System::Collections;
using namespace Syste... | 32.820513 | 85 | 0.542318 | BohdanMosiyuk |
cfb9d3c19a694e489cf92648c20dc2238c33b254 | 30,073 | cpp | C++ | src/Tracker/IntelT265/Tracker.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | null | null | null | src/Tracker/IntelT265/Tracker.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | null | null | null | src/Tracker/IntelT265/Tracker.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | null | null | null | #include <glm/common.hpp>
#include <glm/mat4x4.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/gtx/quaternion.hpp>
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
#include <array>
#include <cmath>
#include <iostream>
#include <fstream>
#include <vector>
#include <iomanip>
#include <opencv2/... | 46.842679 | 368 | 0.521797 | marceline-cramer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.