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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edad738c6933a31132ed838252b55eb49e03c4f8 | 546 | cpp | C++ | lib/src/http_get_video_dir.cpp | asjadenet/videoplayer | 551ff1f3122c479a3e4f0c6db73cc50d98a12d50 | [
"MIT"
] | 1 | 2019-01-24T01:06:35.000Z | 2019-01-24T01:06:35.000Z | lib/src/http_get_video_dir.cpp | asjadenet/videoplayer | 551ff1f3122c479a3e4f0c6db73cc50d98a12d50 | [
"MIT"
] | null | null | null | lib/src/http_get_video_dir.cpp | asjadenet/videoplayer | 551ff1f3122c479a3e4f0c6db73cc50d98a12d50 | [
"MIT"
] | null | null | null | #include <HttpGet.h>
#include <parse_video_dir.h>
#include <Config.h>
#include "http_get_video_dir.h"
std::string http_get_video_dir(const std::string& host, const std::string& port) {
auto result = HttpGet::execute(host, port,
"/jsonrpc?request={\"jsonrpc\":\"2.0\",\"method\":\"... | 36.4 | 150 | 0.589744 | asjadenet |
edb0758d2eaaf4e45aa0bfe39a1d07303c834c1b | 692 | cpp | C++ | recursion/tricky_permutations.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 5 | 2020-10-01T13:08:35.000Z | 2021-02-01T17:51:15.000Z | recursion/tricky_permutations.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 21 | 2020-10-01T12:58:05.000Z | 2020-10-07T11:58:30.000Z | recursion/tricky_permutations.cpp | sansyrox/summer_of_cpp | e07acee254e25febe5b11bc1adc743f5aaf57cc8 | [
"MIT"
] | 23 | 2020-10-01T12:59:06.000Z | 2020-10-15T13:08:34.000Z | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
vector<string> v;
bool find(vector<string> v, string s){
for(auto j:v){
if(j==s) return true;
}
return false;
}
void genPerms(string a, int i=0){
if(i==a.length()){
... | 16.093023 | 38 | 0.498555 | nancyanand2807 |
edb3127b3a39867f4ff418e670cf19564f38cb3d | 1,807 | hpp | C++ | external/boost_1_60_0/qsboost/bind/placeholders.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/bind/placeholders.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/bind/placeholders.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | #ifndef QSBOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
#define QSBOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
//
// bind/placeholders.hpp - _N definitions
//
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
// C... | 28.68254 | 67 | 0.724958 | wouterboomsma |
edb4a282b36986958f451763d8cbc554b43ddc19 | 4,580 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 13(Unsorted Linked List)/list(9).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 13(Unsorted Linked List)/list(9).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 13(Unsorted Linked List)/list(9).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include "list.h"
#include <iostream>
using namespace std;
template<class T>
SinglyLinkedList<T>::SinglyLinkedList()
{
// cout << "In SinglyLinkedList constructor"<<endl;
head = curptr = NULL;
length=0;
}
template<class T>
SinglyLinkedList<T>::~SinglyLinkedList()
{
// cout << "In SinglyLinkedList Destru... | 17.821012 | 62 | 0.591921 | diptu |
edb66fd9c074a0961add1e263b10476aeda145ab | 6,256 | cpp | C++ | Jelly/src/Enemy.cpp | RikdeRooij/Hazel | 029fd852872be2be66f97f8bb9e4ee525751b18d | [
"Apache-2.0"
] | 1 | 2021-06-17T14:15:45.000Z | 2021-06-17T14:15:45.000Z | Jelly/src/Enemy.cpp | RikdeRooij/Hazel | 029fd852872be2be66f97f8bb9e4ee525751b18d | [
"Apache-2.0"
] | null | null | null | Jelly/src/Enemy.cpp | RikdeRooij/Hazel | 029fd852872be2be66f97f8bb9e4ee525751b18d | [
"Apache-2.0"
] | null | null | null | #include "Enemy.h"
#include "DebugDraw.h"
#include "RaysCastCallback.h"
#include "Player.h"
#include "JellyGame.h"
using namespace Jelly;
void CreateSensor(b2Body* physBody, float size, float xsign)
{
b2PolygonShape shape2;
auto s = b2Vec2(size * 0.5f * UNRATIO, size * 0.5f * UNRATIO);
auto ss = b2Vec2(si... | 28.053812 | 111 | 0.571771 | RikdeRooij |
edb6fe437d2bb1188d8243cff6280547de498f16 | 31,577 | cpp | C++ | libraries/shared/src/SharedUtil.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | libraries/shared/src/SharedUtil.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | libraries/shared/src/SharedUtil.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | //
// SharedUtil.cpp
// libraries/shared/src
//
// Created by Stephen Birarda on 2/22/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "SharedUtil.h"
#include <ca... | 36.212156 | 129 | 0.611838 | aoighost |
edbce77cd0d02aadd523124df8bee1350c8fcba2 | 1,291 | cpp | C++ | LeetCode/ThousandOne/0438-find_anagram_in_str.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0438-find_anagram_in_str.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0438-find_anagram_in_str.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 438. 找到字符串中所有字母异位词
给定一个字符串 s 和一个非空字符串 p,找到 s 中所有是 p 的字母异位词的子串,返回这些子串的起始索引。
字符串只包含小写英文字母,并且字符串 s 和 p 的长度都不超过 20100。
说明:
字母异位词指字母相同,但排列不同的字符串。
不考虑答案输出的顺序。
示例 1:
输入:
s: "cbaebabacd" p: "abc"
输出:
[0, 6]
解释:
起始索引等于 0 的子串是 "cba", 它是 "abc" 的字母异位词。
起始索引等于 6 的子串是 "bac", 它是 "abc" 的字母异位词。
示例 2:... | 17.445946 | 62 | 0.580945 | Ginkgo-Biloba |
edbf3dda46a1ba091ee6ce6d80ed662cb90df5ab | 3,244 | hh | C++ | src/image/containers.hh | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/image/containers.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/image/containers.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#ifndef CONTAINERS_HH
#define CONTAINERS_HH
#include <filesystem>
#include <thread>
#include "logger/logger.hh"
#include "nbt/chunk.hh"
#include "nbt/region.hh"
#include "utils/path_hack.hh"
namespace pixel_terrain::image {
class options {
std::filesystem::path out_path_;... | 27.726496 | 79 | 0.550863 | kofuk |
edc310e89300aec2b6ac2337862772ca3877d685 | 11,168 | cpp | C++ | benchmark/MeasurementVectorBenchmark.cpp | rafaelrietmann/ukf | bf53dacafbfee8c7591c48a66b50229f82afe4b4 | [
"MIT"
] | 320 | 2015-01-07T05:49:59.000Z | 2022-03-31T01:52:15.000Z | benchmark/MeasurementVectorBenchmark.cpp | msnh2012/ukf | 04f0a996fee1f49699142bf5b149548a8d3a4ad1 | [
"MIT"
] | 22 | 2015-03-03T17:28:32.000Z | 2022-02-16T14:46:54.000Z | benchmark/MeasurementVectorBenchmark.cpp | msnh2012/ukf | 04f0a996fee1f49699142bf5b149548a8d3a4ad1 | [
"MIT"
] | 155 | 2015-02-20T01:18:06.000Z | 2022-02-22T01:58:53.000Z | #include <benchmark/benchmark.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include "UKF/Types.h"
#include "UKF/StateVector.h"
#include "UKF/MeasurementVector.h"
enum MyStateVectorFields {
AngularVelocity,
Altitude,
Velocity,
Attitude
};
using MyStateVector = UKF::StateVector<
UKF::Field<Vel... | 39.323944 | 120 | 0.756089 | rafaelrietmann |
edc774546d5f85f566a8c072ec7c0221d8378532 | 3,405 | cpp | C++ | Source/SuperFastHash.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | 4 | 2019-10-05T20:01:22.000Z | 2021-11-30T15:22:03.000Z | Source/SuperFastHash.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | null | null | null | Source/SuperFastHash.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
... | 25.222222 | 87 | 0.648164 | sh4k3n |
edc84b114b39543cc6ec6b19ae3224a65e227a88 | 12,302 | cpp | C++ | security.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | security.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | security.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | #include <Windows.h>
#include <TlHelp32.h>
#include <tchar.h>
#include "xor.h"
#include "security.h"
CSecurity Security;
typedef struct _UNICODE_STRING
{
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;
typedef struct _LDR_MODULE_DUMMY_
{
LIST_ENTRY In... | 34.55618 | 132 | 0.624776 | Cloudfare |
edc89ddec2a77f1500d32cb80448f45dc1a05ff9 | 604 | hpp | C++ | src/lang/ast_node_base_class_undefines.hpp | fl4shk/liborangepower | a2aa99a7f9b35cc06ad78976406432913718800b | [
"MIT"
] | 2 | 2019-01-02T02:07:44.000Z | 2022-03-21T10:22:18.000Z | src/lang/ast_node_base_class_undefines.hpp | fl4shk/liborangepower | a2aa99a7f9b35cc06ad78976406432913718800b | [
"MIT"
] | null | null | null | src/lang/ast_node_base_class_undefines.hpp | fl4shk/liborangepower | a2aa99a7f9b35cc06ad78976406432913718800b | [
"MIT"
] | 1 | 2019-01-01T02:51:25.000Z | 2019-01-01T02:51:25.000Z | //#ifndef liborangepower_lang_ast_node_base_class_undefines_hpp
//#define liborangepower_lang_ast_node_base_class_undefines_hpp
// lang/ast_node_base_class_undefines.hpp
#undef MEMB_VAR
#undef _DECL_MEMB_VAR
#undef _COPY_MEMB_VAR
#undef _INNER_WRAP_DATA
#undef _PLUS_RAW_NEWLINE
#undef DATA
#undef _INNER_ACCEPT_CHIL... | 20.827586 | 66 | 0.865894 | fl4shk |
edc9353c0f0000526ec752051cee6281accf3b4e | 1,550 | cpp | C++ | src/Board/Subgrid.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | src/Board/Subgrid.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | src/Board/Subgrid.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | #include "Subgrid.hpp"
#include "ElementList.hpp"
#include "ElementWrapper.hpp"
#include "Grid.hpp"
#include "Tile.hpp"
#include <utility>
Subgrid::Subgrid(Grid* grid, const short index)
: Region(index, RegionType::SUBGRID)
, m_grid(grid)
{
const auto lambda = [&](const std::shared_ptr<Tile>& tile) {
... | 23.484848 | 100 | 0.629677 | renanmoreira17 |
edceeea4acc50296e38bf268baa2122e75513c76 | 528 | cc | C++ | src/scanner.cc | jorenheit/brainfix | 4254fcfb6dc29dd8bb63fbde9db49570ce99971d | [
"MIT"
] | 1 | 2022-02-01T17:13:03.000Z | 2022-02-01T17:13:03.000Z | src/scanner.cc | jorenheit/brainfix | 4254fcfb6dc29dd8bb63fbde9db49570ce99971d | [
"MIT"
] | null | null | null | src/scanner.cc | jorenheit/brainfix | 4254fcfb6dc29dd8bb63fbde9db49570ce99971d | [
"MIT"
] | null | null | null | #include "scanner.ih"
std::string Scanner::escape(char c)
{
switch (c)
{
case 'n': return std::string(1, '\n');
case 't': return std::string(1, '\t');
case '0': return std::string(1, '\0');
default: return std::string(1, c);
}
}
std::string Scanner::escape(std::string const &matched)
{
... | 22.956522 | 85 | 0.583333 | jorenheit |
edd5f4c6a6e6747ac841211200f30e239465d367 | 3,013 | hpp | C++ | src/input_manager.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | src/input_manager.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | 1 | 2018-06-02T05:38:40.000Z | 2018-06-02T07:47:41.000Z | src/input_manager.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | //
// Copyright r6eve 2019 -
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <iostream>
#include "def_global.hpp"
namespace input_device {
enum {
up = 0,
... | 28.158879 | 80 | 0.637239 | r6eve |
edd9d00f8905ab686fa0a2800b5720bd706aff30 | 21,040 | cpp | C++ | src/common/WFiles.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | 2 | 2017-09-17T12:09:16.000Z | 2021-05-15T21:36:47.000Z | src/common/WFiles.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | null | null | null | src/common/WFiles.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | 1 | 2021-07-16T07:53:55.000Z | 2021-07-16T07:53:55.000Z |
/*
Copyright (c) 2014-2015 Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followin... | 24.073227 | 164 | 0.649287 | laurent22 |
eddaf1174e8952f6f40aa0b48d5bf99c517752dd | 4,852 | hpp | C++ | include/Siv3D/Random.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | 1 | 2018-05-23T10:57:32.000Z | 2018-05-23T10:57:32.000Z | include/Siv3D/Random.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | include/Siv3D/Random.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <algorithm>
# include ... | 19.102362 | 85 | 0.590066 | cs3238-tsuzu |
eddbd0b22f7f39d6f011aa22dd60f81737810f49 | 409 | cpp | C++ | mordor/tests/statistics.cpp | mtanski/mordor | cf6f0a0f31aec7188286302ceeff3018e6b65cb8 | [
"BSD-3-Clause"
] | 2 | 2015-03-19T14:20:28.000Z | 2016-03-16T05:04:53.000Z | mordor/tests/statistics.cpp | mtanski/mordor | cf6f0a0f31aec7188286302ceeff3018e6b65cb8 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T15:28:11.000Z | 2017-09-09T15:28:11.000Z | mordor/tests/statistics.cpp | mtanski/mordor | cf6f0a0f31aec7188286302ceeff3018e6b65cb8 | [
"BSD-3-Clause"
] | 3 | 2015-06-02T19:33:39.000Z | 2020-09-08T21:45:11.000Z | #include "../statistics.h"
#include "../test/test.h"
using namespace Mordor;
MORDOR_UNITTEST(Statistics, dumpStat)
{
SumStatistic<int> sumStat("s");
sumStat.add(5);
std::ostringstream os;
sumStat.dump(os);
std::ostringstream expectedOS;
expectedOS << typeid(sumStat).name() << ": "
<< s... | 24.058824 | 57 | 0.640587 | mtanski |
ede4d92a23ef54a2c01fadcae45c92b2e1f04f4f | 124,794 | cpp | C++ | img_molecule_limonene.cpp | emvivre/Chirality-game | b538bec3f6cf7aa5b39d28125f63c207273af22b | [
"WTFPL"
] | null | null | null | img_molecule_limonene.cpp | emvivre/Chirality-game | b538bec3f6cf7aa5b39d28125f63c207273af22b | [
"WTFPL"
] | null | null | null | img_molecule_limonene.cpp | emvivre/Chirality-game | b538bec3f6cf7aa5b39d28125f63c207273af22b | [
"WTFPL"
] | null | null | null | /**
* Copyright: (c) 2014 François Lozes <emvivre@urdn.com.ua>
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Do What The Fuck You Want To
* Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
*/
#include "... | 371.410714 | 388 | 0.658429 | emvivre |
ede6fa8c309ba99f9686cae131de3ee4d96685c2 | 64 | hpp | C++ | src/boost_spirit_home_karma_directive_strict_relaxed.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_karma_directive_strict_relaxed.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_karma_directive_strict_relaxed.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/karma/directive/strict_relaxed.hpp>
| 32 | 63 | 0.828125 | miathedev |
edecb85140a0464e8f20644644ec3a45c40539e8 | 547 | cpp | C++ | C++_Practice/21_Judgement.cpp | TuringGu/RELearning | a44813d6ae0416631bf5b345a7606cdf3d1a3ffe | [
"MIT"
] | null | null | null | C++_Practice/21_Judgement.cpp | TuringGu/RELearning | a44813d6ae0416631bf5b345a7606cdf3d1a3ffe | [
"MIT"
] | null | null | null | C++_Practice/21_Judgement.cpp | TuringGu/RELearning | a44813d6ae0416631bf5b345a7606cdf3d1a3ffe | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
int flag{ 0 };
//if else
int a = 10, b = 20;
int c = a > b ? 10 : 20;
// switch
std::cout << "enter a number: " << std::endl;
std::cin >> flag;
switch (flag)
{
case 1:
std::cout << "you entered " << "one" << std::endl;
break;
case 2:
std::cout << "you entered " << "... | 16.575758 | 55 | 0.52468 | TuringGu |
edeec01836e0189d3f82c8a0f9967e05fd700abb | 1,681 | cpp | C++ | plugins/scripting/python3/src/Python3/python3streamredirect.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 5 | 2018-05-16T14:09:34.000Z | 2019-10-24T19:01:15.000Z | plugins/scripting/python3/src/Python3/python3streamredirect.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 71 | 2017-06-20T06:41:42.000Z | 2021-01-11T11:18:53.000Z | plugins/scripting/python3/src/Python3/python3streamredirect.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 2 | 2018-05-16T13:57:25.000Z | 2018-05-16T13:57:51.000Z | #include "python3lib.h"
#include "python3streamredirect.h"
#include "Meta/keyvalue/metatable_impl.h"
#include "util/pyobjectutil.h"
METATABLE_BEGIN(Engine::Scripting::Python3::Python3StreamRedirect)
FUNCTION(write, text)
METATABLE_END(Engine::Scripting::Python3::Python3StreamRedirect)
namespace Engine {
namespace ... | 25.861538 | 97 | 0.578227 | MadManRises |
edf05447693d3900c46d11cadb3724b075ae4dbb | 1,721 | cpp | C++ | Qt5Practice/Qt5_test06DifPaint/mainwindow.cpp | whuer-xiaojie/Qt_Test | 5d3477f4f59c1c084a448a8a12bf536af5cad274 | [
"Apache-2.0"
] | null | null | null | Qt5Practice/Qt5_test06DifPaint/mainwindow.cpp | whuer-xiaojie/Qt_Test | 5d3477f4f59c1c084a448a8a12bf536af5cad274 | [
"Apache-2.0"
] | null | null | null | Qt5Practice/Qt5_test06DifPaint/mainwindow.cpp | whuer-xiaojie/Qt_Test | 5d3477f4f59c1c084a448a8a12bf536af5cad274 | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QPixmap>
#include<QPainter>
#include<QPicture>
#include<QImage>
#include<QDebug>
#include<QPaintEvent>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
//QPixmap 绘图
QPixmap pixmap(... | 25.308824 | 71 | 0.627542 | whuer-xiaojie |
edf300b27119caf77bde5338d5b712ae1f5c9540 | 3,479 | cpp | C++ | AppleOpenSource/WebKit2-7609.3.5.1.3/WebProcess/WebPage/WebContextMenu.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | AppleOpenSource/WebKit2-7609.3.5.1.3/WebProcess/WebPage/WebContextMenu.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | AppleOpenSource/WebKit2-7609.3.5.1.3/WebProcess/WebPage/WebContextMenu.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* Copyright (C) 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either... | 32.514019 | 165 | 0.748491 | lzackx |
edf39f22544469d4aa6bdb83a78ce0302183f0fd | 16,365 | cpp | C++ | src/tga_vulkan/WSI_glfw/tga_vulkan_wsi.cpp | Estard/TGA | 511f79b61966d12ab652ef80e14a62ad7ab8b40c | [
"MIT"
] | 4 | 2020-11-04T10:49:01.000Z | 2021-07-29T10:24:46.000Z | src/tga_vulkan/WSI_glfw/tga_vulkan_wsi.cpp | Estard/TGA | 511f79b61966d12ab652ef80e14a62ad7ab8b40c | [
"MIT"
] | null | null | null | src/tga_vulkan/WSI_glfw/tga_vulkan_wsi.cpp | Estard/TGA | 511f79b61966d12ab652ef80e14a62ad7ab8b40c | [
"MIT"
] | 2 | 2020-04-17T11:26:07.000Z | 2021-06-03T13:59:18.000Z | #include "tga/tga_vulkan/tga_vulkan_WSI.hpp"
#include <iostream>
#include "GLFW/glfw3.h"
namespace tga
{
VulkanWSI::VulkanWSI() { glfwInit(); }
VulkanWSI::~VulkanWSI() { glfwTerminate(); }
void VulkanWSI::setVulkanHandles(vk::Instance _instance, vk::PhysicalDevice _pDevice, vk::Device _device,
... | 46.491477 | 120 | 0.586923 | Estard |
edf4b0b92c379e04b91233be7de3e64e41a4be8e | 5,235 | hpp | C++ | src/detail/chainable_setter.hpp | 2bbb/ofxChainableSetting | cbec4deb4d8653a9cb6fe3db1541967395799c64 | [
"MIT"
] | 2 | 2017-04-30T19:07:54.000Z | 2019-11-26T09:53:04.000Z | src/detail/chainable_setter.hpp | 2bbb/ofxChainableSetting | cbec4deb4d8653a9cb6fe3db1541967395799c64 | [
"MIT"
] | null | null | null | src/detail/chainable_setter.hpp | 2bbb/ofxChainableSetting | cbec4deb4d8653a9cb6fe3db1541967395799c64 | [
"MIT"
] | null | null | null | //
// chainable_setter.hpp
//
// Created by ISHII 2bit on 2017/04/14.
//
//
#pragma once
#define bbb_chainable_setter_is_loaded
#include <utility>
#include <iostream>
namespace bbb {
template <typename parent_type>
struct base_setter {
void set_parent(parent_type *parent) { this->parent = parent; ... | 34.9 | 114 | 0.582426 | 2bbb |
edf90b7a696f5248de310ece4f341c36503e3bb5 | 2,733 | cpp | C++ | 14.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | 14.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | 14.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | //#define PARTONE
#include "template.hpp"
using Map = std::map<I64, I64>;
#ifdef PARTONE
static I64 mask_digits(const std::string &mask_string, I64 n)
{
FOR(i, 36) {
switch (mask_string[i]) {
case '0':
n &= ~(1LL << (35 - i));
break;
case '1':
n |= (1LL << (35 - i));
break;
}
}
return n;
}
i... | 20.395522 | 71 | 0.524332 | malkiewiczm |
edff6d371e848e70a34c1d3bbf3191e78417298e | 8,438 | cpp | C++ | KinectExplorer-D2D/KinectSettings.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | null | null | null | KinectExplorer-D2D/KinectSettings.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | null | null | null | KinectExplorer-D2D/KinectSettings.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | 1 | 2019-03-18T07:52:11.000Z | 2019-03-18T07:52:11.000Z | //------------------------------------------------------------------------------
// <copyright file="KinectSettings.cpp" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
#include "stda... | 31.962121 | 301 | 0.650984 | MxWang6 |
6100753330faec37f7b47b17cd8fdf0fb0302f74 | 1,375 | hpp | C++ | cl/sampler.hpp | eti-p-doray/inf8702 | 1f420f6a6d8df5e9f5dce7c6192b622c761a909a | [
"MIT"
] | null | null | null | cl/sampler.hpp | eti-p-doray/inf8702 | 1f420f6a6d8df5e9f5dce7c6192b622c761a909a | [
"MIT"
] | null | null | null | cl/sampler.hpp | eti-p-doray/inf8702 | 1f420f6a6d8df5e9f5dce7c6192b622c761a909a | [
"MIT"
] | null | null | null | #pragma once
namespace cl {
#pragma once
#include "cl/wrapper.hpp"
namespace cl {
struct sampler_traits {
using handle = cl_sampler;
using info = cl_sampler_info;
static constexpr auto get_info = clGetSamplerInfo;
static constexpr auto retain = clRetainSampler;
static constexpr auto release = clReleaseS... | 21.825397 | 105 | 0.730909 | eti-p-doray |
61015b823b66adde701611ee03e07b0e57048e28 | 9,032 | cpp | C++ | src/dnssd/avahi/poller.cpp | breese/trial.aware | b5b0c74e24d20e6e5f947be1d29bae42ce4377a1 | [
"BSL-1.0"
] | 2 | 2019-10-30T17:26:02.000Z | 2020-06-21T09:11:02.000Z | src/dnssd/avahi/poller.cpp | breese/trial.aware | b5b0c74e24d20e6e5f947be1d29bae42ce4377a1 | [
"BSL-1.0"
] | null | null | null | src/dnssd/avahi/poller.cpp | breese/trial.aware | b5b0c74e24d20e6e5f947be1d29bae42ce4377a1 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Bjorn Reese <breese@users.sourceforge.net>
//
// 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)
/... | 26.801187 | 102 | 0.525354 | breese |
610240fecb042f9a4bb1d955683da4362edf0be0 | 794 | hpp | C++ | src/Core/CResource.hpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | 1 | 2019-06-14T08:24:17.000Z | 2019-06-14T08:24:17.000Z | src/Core/CResource.hpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | null | null | null | src/Core/CResource.hpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | null | null | null | #ifndef _DEF_OMEGLOND3D_CRESOURCE_HPP
#define _DEF_OMEGLOND3D_CRESOURCE_HPP
#include "IResource.hpp"
namespace OMGL3D
{
namespace CORE
{
class CResource : public IResource
{
public:
virtual ~CResource();
std::string GetName() const;
void SetName(... | 15.269231 | 51 | 0.539043 | Sebajuste |
610306273673f04a1537335fe579fc48b6ad3b3b | 6,049 | hpp | C++ | libvast/vast/bloom_filter.hpp | JoeLoser/vast | 0380180cba549c0b839b286d8a58f2aaf2759aec | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/bloom_filter.hpp | JoeLoser/vast | 0380180cba549c0b839b286d8a58f2aaf2759aec | [
"BSD-3-Clause"
] | 7 | 2021-11-15T01:30:45.000Z | 2022-03-04T01:19:21.000Z | libvast/vast/bloom_filter.hpp | satta/vast | 6c7587effd4265c4a5de23252bc7c7af3ef78bee | [
"BSD-3-Clause"
] | null | null | null | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2020 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/bitvector.hpp"
#include "va... | 34.565714 | 79 | 0.654488 | JoeLoser |
6106dc7fcfbe213dbe63901912367d8e4d12d64b | 5,516 | cpp | C++ | src/splicigar/main.cpp | preciserobot/rex | 91b58e22ea45b56b01a2cdd2ea63b253c9edc467 | [
"BSD-4-Clause-UC"
] | null | null | null | src/splicigar/main.cpp | preciserobot/rex | 91b58e22ea45b56b01a2cdd2ea63b253c9edc467 | [
"BSD-4-Clause-UC"
] | null | null | null | src/splicigar/main.cpp | preciserobot/rex | 91b58e22ea45b56b01a2cdd2ea63b253c9edc467 | [
"BSD-4-Clause-UC"
] | null | null | null |
/*
* splicigar - returns cigar lines of possible splice juntion neighboring exons using a given half length
*
* Created by David Brawand on 12.02.10.
* Added exon stringency filter on 14.04.10.
* Copyright 2010 UNIL. All rights reserved.
*
*/
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include... | 35.358974 | 235 | 0.576505 | preciserobot |
6108a7c0e904093b649846226a7b921d4a75a3ba | 11,493 | cc | C++ | src/raft/raft_message.cc | zerolocusta/raft-in-cpp | 9785732ca45d032d33ee45fa08da28b9cd301c5f | [
"MIT"
] | 1 | 2019-10-29T14:47:18.000Z | 2019-10-29T14:47:18.000Z | src/raft/raft_message.cc | zerolocusta/simple-raft-kvdb-cpp | 9785732ca45d032d33ee45fa08da28b9cd301c5f | [
"MIT"
] | null | null | null | src/raft/raft_message.cc | zerolocusta/simple-raft-kvdb-cpp | 9785732ca45d032d33ee45fa08da28b9cd301c5f | [
"MIT"
] | null | null | null | #include <err.h>
#include "raft_message.h"
namespace raft
{
PackedMessage::PackedMessage(void *data, uint32_t size)
{
uint32_t be32 = htobe32(size);
data_ = new char[be32 + size];
::memcpy(data_, &be32, sizeof be32);
::memcpy(data_ + sizeof be32, data, size);
size_ = size + sizeof be32;
}
PackedM... | 37.805921 | 206 | 0.740625 | zerolocusta |
6109d1038242f8cce80a143b956b138ceae87ac5 | 10,613 | hpp | C++ | Lib/Chip/Unknown/STMicro/STM32F41x/I2C2.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/STMicro/STM32F41x/I2C2.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/STMicro/STM32F41x/I2C2.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Inter-integrated circuit
namespace I2c2Cr1{ ///<Control register 1
using Addr = Register::Address<0x40005800,0xffff4004,0x00000000,std::uint32_t>;
///Software reset
constexpr Register::FieldLocation<Addr,Register::maskFrom... | 76.352518 | 218 | 0.708471 | operativeF |
610d74b748c83335239dac6f37f23ef2ecd2f6f4 | 1,411 | cpp | C++ | codesptb.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | codesptb.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | codesptb.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2014-05-01
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#define CUTOFF 30
using namespace std;
int buf[200000];
int in()
{
char c;
do
c=getchar_unlocked();
while (c<=32);
int res=0;
do
{
res=(res<<1)+(res<<3)+c-'0';
c=getchar_unlocked()... | 19.597222 | 66 | 0.425939 | ohmyjons |
6110bb50833f0c21dd6f306bd88923f11fdada6c | 328 | cc | C++ | src/range.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/range.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/range.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | #include "include/jade.hpp"
FUNCTION ARRAY<long> RANGE(long low, long high) {
IF (low > high) THEN
ABORT("Out of Bounds error in RANGE() function");
END
IF (low > 0) high+=1;
long array_size = high - low;
ARRAY<long> v(array_size);
std::iota (std::begin(v), std::end(v), low);
retu... | 21.866667 | 57 | 0.594512 | xet7 |
6110d4c021446f8d3d019f5f72622a1d51ab371f | 255 | cpp | C++ | EJERCICIOS/Ejercicio 42/factura.cpp | alanmauri/CPP | 6d5f0fa24f7d410e2a6caddd1ad01efe9380a3f5 | [
"MIT"
] | null | null | null | EJERCICIOS/Ejercicio 42/factura.cpp | alanmauri/CPP | 6d5f0fa24f7d410e2a6caddd1ad01efe9380a3f5 | [
"MIT"
] | null | null | null | EJERCICIOS/Ejercicio 42/factura.cpp | alanmauri/CPP | 6d5f0fa24f7d410e2a6caddd1ad01efe9380a3f5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
double subtotal;
string listaProducto;
void agregarProducto(string descripcion, int cantidad, double precio)
{
listaProducto = listaProducto + descripcion + '\n';
subtotal= subtotal(cantidad * precio);
}
| 15.9375 | 69 | 0.752941 | alanmauri |
6113c5957d5d32655dedd690c6cb0f03d5964e21 | 997 | cpp | C++ | src/GameObject.cpp | Delpod/Asimo-s-Escape | 4d2a599fcb17f4c76cfda45cb2c310bd01f66faa | [
"Zlib",
"Apache-2.0"
] | 1 | 2021-01-19T21:20:35.000Z | 2021-01-19T21:20:35.000Z | src/GameObject.cpp | Delpod/Asimo-s-Escape | 4d2a599fcb17f4c76cfda45cb2c310bd01f66faa | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/GameObject.cpp | Delpod/Asimo-s-Escape | 4d2a599fcb17f4c76cfda45cb2c310bd01f66faa | [
"Zlib",
"Apache-2.0"
] | null | null | null | #include "GameObject.h"
#include "Game.h"
GameObject::GameObject(sf::Texture &texture, sf::Vector2f position, sf::IntRect textureRect) : body(nullptr),
deadly(false) {
m_pSprite.setTexture(texture);
m_pSprite.setPosition(position);
m_pSprite.setTextureRect(textureRect);
m_textureRect = textureRect;
}
sf::Sprite* ... | 31.15625 | 125 | 0.737212 | Delpod |
6114ae19ed5a7a6f1d33caf3ca2245d1ea2cd411 | 5,520 | hpp | C++ | engine/shadercompiler/src/includer.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 18 | 2020-08-11T18:13:49.000Z | 2022-03-08T21:42:54.000Z | engine/shadercompiler/src/includer.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 11 | 2020-08-27T12:37:48.000Z | 2022-02-21T05:17:03.000Z | engine/shadercompiler/src/includer.hpp | redstrate/prism | acb6c5306c6f60088744191f3d3d8713fc6950bd | [
"MIT"
] | 1 | 2020-12-08T14:01:48.000Z | 2020-12-08T14:01:48.000Z | //
// Copyright (C) 2002-2005 3Dlabs Inc. Ltd.
// Copyright (C) 2017 Google, Inc.
//
// 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... | 39.148936 | 107 | 0.669022 | redstrate |
61165c19c70dab51f3f78b9b3d2896f96b56cf8b | 10,092 | cpp | C++ | LargeBarrelAnalysis/SignalFinderTools.cpp | flukson/j-pet-framework-examples | 8f50490b5a21013990aff187fc6da87812a5f8e1 | [
"Apache-2.0"
] | null | null | null | LargeBarrelAnalysis/SignalFinderTools.cpp | flukson/j-pet-framework-examples | 8f50490b5a21013990aff187fc6da87812a5f8e1 | [
"Apache-2.0"
] | null | null | null | LargeBarrelAnalysis/SignalFinderTools.cpp | flukson/j-pet-framework-examples | 8f50490b5a21013990aff187fc6da87812a5f8e1 | [
"Apache-2.0"
] | null | null | null | /**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | 36.565217 | 161 | 0.65329 | flukson |
61180eead96a97ab80ef88a0f44026a4380f1b2c | 2,378 | cpp | C++ | SensorizerServer/MidiRepeater.cpp | DrumPants/Sensorizer-DrumPants-Firmware | dabd037bb7e475de574a1ebdb21734da075b21cb | [
"Apache-2.0"
] | 9 | 2015-09-30T07:38:17.000Z | 2020-01-17T12:35:15.000Z | SensorizerServer/MidiRepeater.cpp | DrumPants/Sensorizer-DrumPants-Firmware | dabd037bb7e475de574a1ebdb21734da075b21cb | [
"Apache-2.0"
] | 1 | 2015-10-03T02:54:08.000Z | 2015-10-03T03:09:38.000Z | SensorizerServer/MidiRepeater.cpp | DrumPants/Sensorizer-DrumPants-Firmware | dabd037bb7e475de574a1ebdb21734da075b21cb | [
"Apache-2.0"
] | 1 | 2018-07-10T00:43:47.000Z | 2018-07-10T00:43:47.000Z | /**
* Copyright 2011-2015 DrumPants, Inc.
*
* http://developers.drumpants.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
*... | 25.031579 | 136 | 0.688394 | DrumPants |
611bb6305af983ebbfc4cec9968b57488a186514 | 161 | cpp | C++ | volume4/1327_18Mar2006_1122206.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume4/1327_18Mar2006_1122206.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume4/1327_18Mar2006_1122206.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int A, B;
cin>>A>>B;
if(!(A%2) && !(B%2)){
cout<<(B-A)/2;
}else
cout<<(B-A)/2 + 1;
return 0;
} | 10.733333 | 22 | 0.503106 | andriybuday |
611d63c817bdc6f56c96bbbe0caf6269e9906993 | 862 | hxx | C++ | mod/mod-packages.hxx | build2/brep | d259750511b3c2aaeace49f8ccb1d7f3ad561452 | [
"MIT"
] | 9 | 2018-05-30T12:01:14.000Z | 2021-04-02T21:21:10.000Z | mod/mod-packages.hxx | build2/brep | d259750511b3c2aaeace49f8ccb1d7f3ad561452 | [
"MIT"
] | 2 | 2021-03-28T14:13:39.000Z | 2022-01-24T12:57:57.000Z | mod/mod-packages.hxx | build2/brep | d259750511b3c2aaeace49f8ccb1d7f3ad561452 | [
"MIT"
] | 2 | 2019-01-09T12:09:39.000Z | 2022-03-06T18:43:07.000Z | // file : mod/mod-packages.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef MOD_MOD_PACKAGES_HXX
#define MOD_MOD_PACKAGES_HXX
#include <libbrep/types.hxx>
#include <libbrep/utility.hxx>
#include <mod/module-options.hxx>
#include <mod/database-module.hxx>
namespace brep
{
class packag... | 20.52381 | 74 | 0.682135 | build2 |
611fe0436a01041dcf73fb89094f3286971f4435 | 1,326 | cpp | C++ | test/gl/image_test.cpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | null | null | null | test/gl/image_test.cpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | 9 | 2019-12-22T17:57:29.000Z | 2020-03-30T22:06:53.000Z | test/gl/image_test.cpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | null | null | null | //
// Created by Harrand on 04/01/2020.
//
#include "test_framework.hpp"
#include "core/core.hpp"
#include "core/tz_glad/glad_context.hpp"
#include "gl/image.hpp"
tz::test::Case checkerboard()
{
tz::test::Case test_case("tz::gl::Image Checkerboard Tests");
tz::gl::PixelRGBA8 black_pixel{std::byte{}, std::byte{}, st... | 31.571429 | 113 | 0.696833 | Harrand |
61230c0d3a9f3e2f6608027e89291572aa254335 | 8,737 | cc | C++ | tests/libtests/feassemble/obsolete/TestElasticityExplicitLgDeformCases.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/feassemble/obsolete/TestElasticityExplicitLgDeformCases.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/feassemble/obsolete/TestElasticityExplicitLgDeformCases.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 34.262745 | 103 | 0.717409 | Grant-Block |
6123a40f9c31834647fdf416cd0cada805900218 | 10,297 | cpp | C++ | Tests/DisplayModeSelectionTest/main.cpp | HermanLederer/gtaRenderHook | 2ce53ce954c2d298717119dd6d02a2e58fff3aed | [
"MIT"
] | null | null | null | Tests/DisplayModeSelectionTest/main.cpp | HermanLederer/gtaRenderHook | 2ce53ce954c2d298717119dd6d02a2e58fff3aed | [
"MIT"
] | null | null | null | Tests/DisplayModeSelectionTest/main.cpp | HermanLederer/gtaRenderHook | 2ce53ce954c2d298717119dd6d02a2e58fff3aed | [
"MIT"
] | null | null | null | #include <Engine/Common/ISwapchain.h>
#include <Engine/D3D11Impl/D3D11DeviceState.h>
#include <Engine/IRenderer.h>
#include <Engine/VulkanImpl/VulkanDeviceState.h>
#include <Engine/VulkanImpl/VulkanShader.h>
#include <TestUtils\WindowsSampleWrapper.h>
#include <memory>
std::unique_ptr<rh::engine::IRenderer> rh::engine... | 33.760656 | 80 | 0.637953 | HermanLederer |
612443f025657703c144c9d5c877c3c5c9eabc1e | 1,647 | cpp | C++ | src/renderer/test/hlsl/struct.cpp | Ryp/reaper | da7b3aa4a69b95ced2496214e5cea4eb7823593a | [
"MIT"
] | 10 | 2018-08-16T05:32:46.000Z | 2022-02-04T09:55:54.000Z | src/renderer/test/hlsl/struct.cpp | Ryp/reaper | da7b3aa4a69b95ced2496214e5cea4eb7823593a | [
"MIT"
] | null | null | null | src/renderer/test/hlsl/struct.cpp | Ryp/reaper | da7b3aa4a69b95ced2496214e5cea4eb7823593a | [
"MIT"
] | 1 | 2019-05-13T17:56:35.000Z | 2019-05-13T17:56:35.000Z | ////////////////////////////////////////////////////////////////////////////////
/// Reaper
///
/// Copyright (c) 2015-2021 Thibault Schueller
/// This file is distributed under the MIT License
////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <doctest/doctes... | 20.848101 | 80 | 0.445052 | Ryp |
6124bd52c2bea7fbb7f2410dc5d8172ff22320ad | 1,921 | cpp | C++ | aws-cpp-sdk-kinesis-video-archived-media/source/model/TimestampRange.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-kinesis-video-archived-media/source/model/TimestampRange.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-kinesis-video-archived-media/source/model/TimestampRange.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 23.144578 | 83 | 0.752212 | curiousjgeorge |
6124def4434b339515f5a40ce97910faafe6b9e8 | 13,002 | cpp | C++ | src/crypto/SecretKey.cpp | Rajan2000/stellar-core | e47d483433ce4f7eaf0a0512e2556beb482c8851 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 10 | 2019-07-01T19:09:58.000Z | 2022-03-13T14:39:06.000Z | src/crypto/SecretKey.cpp | Rajan2000/stellar-core | e47d483433ce4f7eaf0a0512e2556beb482c8851 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/crypto/SecretKey.cpp | Rajan2000/stellar-core | e47d483433ce4f7eaf0a0512e2556beb482c8851 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2015-04-11T02:33:46.000Z | 2021-11-24T10:27:28.000Z | // Copyright 2014 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "crypto/SecretKey.h"
#include "crypto/BLAKE2.h"
#include "crypto/CryptoError.h"
#inclu... | 24.122449 | 80 | 0.645439 | Rajan2000 |
61257521d0f747b2a6514ac94431a25b9e1464c9 | 1,661 | hpp | C++ | Siv3D/src/Siv3D/Script/Bind/Script_Optional.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Script/Bind/Script_Optional.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Script/Bind/Script_Optional.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Script.hpp>
# include <Siv3D/... | 17.860215 | 62 | 0.67068 | Fuyutsubaki |
6125a7bc160209f19904ee64f4166d97fd37a911 | 7,474 | cpp | C++ | practice/37-sudoku-solver/LeetCode_37_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/37-sudoku-solver/LeetCode_37_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/37-sudoku-solver/LeetCode_37_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | /**
编写一个程序,通过已填充的空格来解决数独问题。
一个数独的解法需遵循如下规则:
数字 1-9 在每一行只能出现一次。
数字 1-9 在每一列只能出现一次。
数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。
空白格用 '.' 表示。
一个数独。
答案被标成红色。
Note:
给定的数独序列只包含数字 1-9 和字符 '.' 。
你可以假设给定的数独只有唯一解。
给定数独永远是 9x9 形式的。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/sudoku-solver
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处... | 24.187702 | 84 | 0.42494 | manajay |
6126e8cadd5c8cbabda88097dcc69ae11434ae4a | 1,756 | cc | C++ | graph/dfs.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | graph/dfs.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | graph/dfs.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | /* Recursive Depth First Search
** |V| + |E|
* Recursive DFS with different options (storing times, connected/unconnected graph).
* this is very much pseudocode, needs a lot of problem adaption anyway\\
* \emph{Input:} A source vertex $s$, a target vertex $t$, and adjlist $G$ and the time (0 at the start)\\
* \emph{Out... | 31.357143 | 105 | 0.616173 | mwien |
612ad4ab4679e0071823ad4a1026640f3d0f6e28 | 15,460 | cc | C++ | modules/remote_bitrate_estimator/test/metric_recorder.cc | bighitbiker3/webrtc | 276763201d0fe590f19429497df2b33b07c87040 | [
"DOC",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | modules/remote_bitrate_estimator/test/metric_recorder.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | modules/remote_bitrate_estimator/test/metric_recorder.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 34.355556 | 80 | 0.689909 | bighitbiker3 |
612bea666fa1e8b038903d83fda87357df49a92e | 1,690 | cpp | C++ | Vulkan/Present.cpp | fluffels/jcwk | 46ca2bc28f959c8eb0b174c5dc0a522147a1a5f4 | [
"MIT"
] | 1 | 2021-06-23T02:02:21.000Z | 2021-06-23T02:02:21.000Z | Vulkan/Present.cpp | fluffels/jcwk | 46ca2bc28f959c8eb0b174c5dc0a522147a1a5f4 | [
"MIT"
] | 3 | 2020-11-12T11:32:33.000Z | 2021-05-06T14:42:51.000Z | Vulkan/Present.cpp | fluffels/jcwk | 46ca2bc28f959c8eb0b174c5dc0a522147a1a5f4 | [
"MIT"
] | null | null | null | #include <limits>
#include "Vulkan.h"
#undef max
void present(Vulkan& vk, VkCommandBuffer* cmds, uint32_t cmdCount) {
uint32_t imageIndex = 0;
auto result = vkAcquireNextImageKHR(
vk.device,
vk.swap.handle,
std::numeric_limits<uint64_t>::max(),
vk.swap.imageReady,
VK_N... | 33.8 | 68 | 0.698817 | fluffels |
612d3c0d9affd47146efe213caca6b79c58305f3 | 769 | cpp | C++ | src/libs/program/subcommand_option.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/program/subcommand_option.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/program/subcommand_option.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "subcommand_option.hpp"
gorc::subcommand_option::subcommand_option(subcommand_registry ®,
maybe<int> &binding)
: reg(reg)
, binding(binding)
{
return;
}
void gorc::subcommand_option::reset()
{
binding = nothing;
}
void gorc::subcommand_option::lo... | 23.30303 | 74 | 0.635891 | jdmclark |
612e20392d3b22b7db972c3d14dbfd3bafdd2a88 | 2,622 | cpp | C++ | opengl-gui/src/Widgets/TextArea.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | 2 | 2019-08-27T00:37:11.000Z | 2021-11-25T14:34:23.000Z | opengl-gui/src/Widgets/TextArea.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | null | null | null | opengl-gui/src/Widgets/TextArea.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | 2 | 2018-10-18T12:12:28.000Z | 2019-08-27T00:36:21.000Z | #include "Widgets/TextArea.h"
namespace {
std::vector<std::vector<OpenGLGUI::Text>> layoutText(std::string text, std::shared_ptr<OpenGLGUI::FontBrush> fontBrush, int width, int height)
{
std::vector<std::vector<OpenGLGUI::Text>> lines;
std::vector<OpenGLGUI::Text> currentLine;
std::shared_ptr<OpenGLGUI::Font>... | 29.133333 | 248 | 0.672769 | ChewyGumball |
612f38a28d9cbf55c5c8ccca296a1cda791a725f | 4,192 | cpp | C++ | src/libtsduck/crypto/tsCipherChaining.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 542 | 2017-06-21T07:40:10.000Z | 2022-03-29T13:44:39.000Z | src/libtsduck/crypto/tsCipherChaining.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 939 | 2017-09-01T21:00:42.000Z | 2022-03-31T14:39:27.000Z | src/libtsduck/crypto/tsCipherChaining.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 167 | 2017-10-30T12:07:29.000Z | 2022-03-23T11:36:10.000Z | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 33.007874 | 121 | 0.57896 | harmonicinc-com |
9ed33833715eff9c6df0fcfce988b29108843402 | 7,775 | cpp | C++ | ProjectEuler+/euler-0341.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0341.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0341.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Golomb's self-describing sequence
//
// # URL
// https://projecteuler.net/problem=341
// http://euler.stephan-brumme.com/341/
//
// # Problem
// The Golomb's self-describing sequence `G(n)` is the only nondecreasing sequence of natural numbers su... | 38.112745 | 203 | 0.590611 | sarvekash |
9ed85862684081952eaa378ce68d29fcbc72a44b | 671 | cpp | C++ | tests/testFrameworkConsistencyTests.cpp | wulcat/Physics3D | dab5574f28f1e2831d568a5ce104f1b4a7bc28bb | [
"MIT"
] | 1 | 2021-02-14T07:07:51.000Z | 2021-02-14T07:07:51.000Z | tests/testFrameworkConsistencyTests.cpp | sierra-zero/Physics3D | 155aa492dbe83cfd1d8d41ac9180312823a51d8b | [
"MIT"
] | null | null | null | tests/testFrameworkConsistencyTests.cpp | sierra-zero/Physics3D | 155aa492dbe83cfd1d8d41ac9180312823a51d8b | [
"MIT"
] | 1 | 2021-03-28T18:51:10.000Z | 2021-03-28T18:51:10.000Z | #include "testsMain.h"
#include "compare.h"
#include "testValues.h"
#include "simulation.h"
#include "randomValues.h"
#include <array>
#include "../physics/misc/toString.h"
#include "../physics/math/taylorExpansion.h"
#define DELTA_T 0.005
TEST_CASE(testEstimateDerivativesOfComputeOverTime) {
FullTaylorExpansion<... | 30.5 | 111 | 0.76155 | wulcat |
9eda29730982c2a791c7d3fdbff4d7120bd1c219 | 10,395 | cpp | C++ | user_models/src/ican_app_dtnsubscriber.cpp | uclanrl/dt-icansim | 3d4288145abe4cafbbd75af2b0bc697c0bebe4e8 | [
"bzip2-1.0.6"
] | null | null | null | user_models/src/ican_app_dtnsubscriber.cpp | uclanrl/dt-icansim | 3d4288145abe4cafbbd75af2b0bc697c0bebe4e8 | [
"bzip2-1.0.6"
] | null | null | null | user_models/src/ican_app_dtnsubscriber.cpp | uclanrl/dt-icansim | 3d4288145abe4cafbbd75af2b0bc697c0bebe4e8 | [
"bzip2-1.0.6"
] | null | null | null | /*
* Copyright (c) 2013, Network Research Lab, University of California, Los Angeles
* Coded by Yu-Ting Yu [yutingyu@cs.ucla.edu]
* 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... | 38.076923 | 187 | 0.607792 | uclanrl |
9edbf9448db565c20b097a07588c012e7583c0b1 | 5,958 | cpp | C++ | test/MathUtils.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | test/MathUtils.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | test/MathUtils.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | #include "NAS2D/MathUtils.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
TEST(MathUtils, lineIntersectsCircle) {
const auto circleCenter = NAS2D::Point{0, 0};
// Interior
EXPECT_TRUE((lineIntersectsCircle(NAS2D::Point{-1, 0}, NAS2D::Point{1, 0}, circleCenter, 1)));
EXPECT_TRUE((lineIntersectsCircle(NAS2D:... | 46.546875 | 98 | 0.708795 | Brett208 |
9ede447ed61fcffdf1e327dd5c7977b4c8d4b2d3 | 5,819 | cpp | C++ | examples/stencils.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | examples/stencils.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | examples/stencils.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | /**
The MIT License
Copyright (c) 2014-2017 The University of Utah
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, modif... | 40.409722 | 96 | 0.691184 | MaxZZG |
9ede70af27567db4985f78d522c08cb52960c29f | 28,457 | cpp | C++ | src/gui/settings.cpp | amoekesch/Kompass | 34f8f9d6579f4c221282d79b6b61f678baa0f738 | [
"MIT"
] | null | null | null | src/gui/settings.cpp | amoekesch/Kompass | 34f8f9d6579f4c221282d79b6b61f678baa0f738 | [
"MIT"
] | null | null | null | src/gui/settings.cpp | amoekesch/Kompass | 34f8f9d6579f4c221282d79b6b61f678baa0f738 | [
"MIT"
] | 1 | 2022-01-29T02:33:54.000Z | 2022-01-29T02:33:54.000Z | #include "settings.h"
Settings::Settings(TrayIcon *trayIcon, QWidget *parent) : QDialog(parent)
{
this->trayIcon = trayIcon;
setupUi();
setupData();
}
/**
* Setup dialog elements
* @brief Settings::setupUi
*/
void Settings::setupUi()
{
/**
* -------------------------------------------
* ... | 37.443421 | 138 | 0.640827 | amoekesch |
9edf986f0f9e9a08f05feccaca123622858ba98b | 1,888 | hpp | C++ | src/include/carve/collection_types.hpp | paulobala/ofxCarveCSG | 03ed31758cd866f78252ecbd734b8ed1adffe6f9 | [
"MIT"
] | 3 | 2015-05-19T08:46:57.000Z | 2020-05-25T06:38:02.000Z | src/include/carve/collection_types.hpp | paulobala/ofxCarveCSG | 03ed31758cd866f78252ecbd734b8ed1adffe6f9 | [
"MIT"
] | null | null | null | src/include/carve/collection_types.hpp | paulobala/ofxCarveCSG | 03ed31758cd866f78252ecbd734b8ed1adffe6f9 | [
"MIT"
] | 1 | 2019-05-24T15:32:56.000Z | 2019-05-24T15:32:56.000Z |
// Begin License:
// Copyright (C) 2006-2011 Tobias Sargeant (tobias.sargeant@gmail.com).
// All rights reserved.
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// This file may be used under the terms of the GNU General Public
// License version 2.0 as published by the Free Software Found... | 29.5 | 71 | 0.683792 | paulobala |
9ee255db45690eb8a2dbc85303ce700bf39fdcdf | 2,735 | cpp | C++ | doc/4.4.0/MPG/linear.cpp | zayenz/gecode.github.io | e759c2c1940d9a018373bcc6c316d9cb04efa5a0 | [
"MIT-feh"
] | 1 | 2020-10-28T06:11:30.000Z | 2020-10-28T06:11:30.000Z | doc/4.4.0/MPG/linear.cpp | zayenz/gecode.github.io | e759c2c1940d9a018373bcc6c316d9cb04efa5a0 | [
"MIT-feh"
] | 1 | 2019-05-05T11:10:31.000Z | 2019-05-05T11:10:31.000Z | doc/4.4.0/MPG/linear.cpp | zayenz/gecode.github.io | e759c2c1940d9a018373bcc6c316d9cb04efa5a0 | [
"MIT-feh"
] | 4 | 2019-05-03T18:43:19.000Z | 2020-12-17T04:06:59.000Z | /*
* Authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2008-2015
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software, to deal in the software without restriction,
* including without limitation the rights to use, cop... | 39.637681 | 78 | 0.692139 | zayenz |
9ee2f3dab5e307e5ba646b7683cfebbbb5798f91 | 41,408 | hpp | C++ | [教程] [本人] Counterstrike Global Offensive/Q.hvh陀螺自瞄/bsp_parser.hpp | RuiAoo/Game-Cheating-Tutorial | 8d67314d42ae019a7b7d2ed85c2be4f0a2199297 | [
"MIT"
] | 4 | 2020-12-25T19:18:06.000Z | 2022-03-25T01:55:37.000Z | [教程] [本人] Counterstrike Global Offensive/Q.hvh陀螺自瞄/bsp_parser.hpp | themaoci/Game-Cheating-Tutorial | 8d67314d42ae019a7b7d2ed85c2be4f0a2199297 | [
"MIT"
] | null | null | null | [教程] [本人] Counterstrike Global Offensive/Q.hvh陀螺自瞄/bsp_parser.hpp | themaoci/Game-Cheating-Tutorial | 8d67314d42ae019a7b7d2ed85c2be4f0a2199297 | [
"MIT"
] | 2 | 2022-03-22T05:51:02.000Z | 2022-03-22T11:34:59.000Z | ///--------------------------------------------------------------------------------
///-- Author ReactiioN
///-- Copyright 2016-2020, ReactiioN
///-- License MIT
///--------------------------------------------------------------------------------
#ifndef BSPPARSERH
#define BSPPARSERH
#pragma warning(di... | 26.224193 | 172 | 0.609568 | RuiAoo |
9eeda50f40146688515e294ed4404e157c7b5596 | 495 | cpp | C++ | src/qthemes/walletupdateviewdialog.cpp | eddef/anoncoin | 7a018e15c814bba30e805cfe83f187388eadc0a8 | [
"MIT"
] | 90 | 2015-01-13T14:32:43.000Z | 2020-10-15T23:07:11.000Z | src/qthemes/walletupdateviewdialog.cpp | nonlinear-chaos-order-etc-etal/anoncoin | 5e441d8746240072f1379577e14ff7a17390b81f | [
"MIT"
] | 91 | 2015-01-07T03:44:14.000Z | 2020-12-24T13:56:27.000Z | src/qthemes/walletupdateviewdialog.cpp | nonlinear-chaos-order-etc-etal/anoncoin | 5e441d8746240072f1379577e14ff7a17390b81f | [
"MIT"
] | 42 | 2015-01-28T12:34:14.000Z | 2021-05-06T16:16:48.000Z | // Copyright (c) 2013-2017 The Anoncoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletupdateviewdialog.h"
#include "ui_walletupdateviewdialog.h"
WalletUpdateViewDialog::WalletUpdateViewDialog(Q... | 26.052632 | 70 | 0.765657 | eddef |
9eef9dfaf96dc936d0ccc2650df441729b530cbf | 1,140 | cpp | C++ | src/camera.cpp | gecko-robotics/gecko-opencv | 084fde09ac7e407da9e941a69a4cb8fcfeda2799 | [
"MIT"
] | 1 | 2020-03-15T19:24:43.000Z | 2020-03-15T19:24:43.000Z | src/camera.cpp | gecko-robotics/gecko-opencv | 084fde09ac7e407da9e941a69a4cb8fcfeda2799 | [
"MIT"
] | null | null | null | src/camera.cpp | gecko-robotics/gecko-opencv | 084fde09ac7e407da9e941a69a4cb8fcfeda2799 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <gecko/gecko.hpp>
#include <gecko/msgpack/msgs.hpp>
#include <opencv2/opencv.hpp>
#include "message.hpp"
using namespace cv;
using namespace std;
int main(){
gecko::init();
Mat src;
VideoCapture cam;
cam.open(0);
cam.set(CAP_PROP_FRAME_WIDTH, 640);
... | 20.357143 | 55 | 0.527193 | gecko-robotics |
9ef1cd348e782a92ccfd2e85f22eac11f34ca802 | 4,876 | cpp | C++ | libs/ml/src/ops/activations/leaky_relu.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ml/src/ops/activations/leaky_relu.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ml/src/ops/activations/leaky_relu.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 30.860759 | 96 | 0.671042 | robertdickson |
9ef41150e8480aa968ac8af8e9c9bb60bf6f911c | 1,967 | cc | C++ | test/di-lib-test/LoggerTest.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | test/di-lib-test/LoggerTest.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | test/di-lib-test/LoggerTest.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | /**
* @file LoggerTest.cc
* @brief Implementation of unit test for an implementation of logger.
* @copyright Copyright (c) 2020 Yasuaki Miyoshi.
*
* This software is released under the MIT License.
* see http://opensource.org/licenses/mit-license.php
*/
#include <gtest/gtest.h>
#include <gtest/fakeit.hpp>
#inc... | 23.698795 | 70 | 0.664464 | yasuaki-miyoshi |
9ef949f81d3c1b0c78cb561f9935fcc2e67d3456 | 3,824 | cpp | C++ | MonoNative.Tests/mscorlib/System/mscorlib_System_ExecutionEngineException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_ExecutionEngineException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_ExecutionEngineException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: ExecutionEngineException
// C++ Typed Name: mscorlib::System::ExecutionEngineException
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_ExecutionEngineExcepti... | 23.9 | 106 | 0.744247 | brunolauze |
9ef9bf801dd957c662893f06f4ecfcb95d457a45 | 1,812 | cpp | C++ | src/route/replication_change_handler.cpp | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 489 | 2019-08-09T18:50:19.000Z | 2022-03-31T20:06:30.000Z | src/route/replication_change_handler.cpp | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 46 | 2019-08-27T12:13:09.000Z | 2021-10-06T06:05:33.000Z | src/route/replication_change_handler.cpp | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 109 | 2019-08-16T03:07:12.000Z | 2022-02-26T01:31:17.000Z | // Copyright 2019 U.C. Berkeley RISE Lab
//
// 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... | 38.553191 | 80 | 0.663907 | stolet |
9efb015f6d24c9820019c7a83203c9e64b0c674b | 1,861 | cc | C++ | src/roots/test/tstfdjac.cc | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 43 | 2017-02-17T23:47:36.000Z | 2022-03-14T07:53:43.000Z | src/roots/test/tstfdjac.cc | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 848 | 2017-01-16T01:03:38.000Z | 2022-01-11T18:56:50.000Z | src/roots/test/tstfdjac.cc | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 31 | 2017-03-02T19:51:15.000Z | 2021-09-08T02:33:34.000Z | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file roots/test/tstfdjac.cc
* \author Kent Budge
* \date Mon Aug 9 13:39:20 2004
* \note Copyright 2016-2020 Triad National Security, LLC., All rights reserved. */
//-----------------------------------... | 32.086207 | 100 | 0.350887 | jhchang-lanl |
9efda3f3195a7dca0c9d709754610d53fa42bcdc | 5,507 | cpp | C++ | test/strings.cpp | tilnewman/utilz | 401c2efe79bdddb786f04d153e7f443246268948 | [
"MIT"
] | null | null | null | test/strings.cpp | tilnewman/utilz | 401c2efe79bdddb786f04d153e7f443246268948 | [
"MIT"
] | null | null | null | test/strings.cpp | tilnewman/utilz | 401c2efe79bdddb786f04d153e7f443246268948 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "utilz/strings.hpp"
using namespace utilz;
TEST_CASE("upperAndLower", "[upperAndLower]")
{
CHECK(isUpper('A'));
CHECK(isUpper('a') == false);
CHECK(isUpper('0') == false);
CHECK(isUpper('\0') == false);
CHECK(isUpper('\127') == false);
CHECK(isUpper('\255') == fa... | 31.83237 | 89 | 0.568731 | tilnewman |
9efdde2c19947cf87fefe1433d0741d9c5b7e81e | 1,536 | hpp | C++ | sprout/cstdint.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | 1 | 2016-09-29T21:55:58.000Z | 2016-09-29T21:55:58.000Z | sprout/cstdint.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | null | null | null | sprout/cstdint.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... | 32 | 84 | 0.63737 | EzoeRyou |
9eff614c1245ec6e8480507a5814ba1b3dfefa66 | 874 | cpp | C++ | ColorTransfer/hw2.2/main.cpp | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | ColorTransfer/hw2.2/main.cpp | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | ColorTransfer/hw2.2/main.cpp | hsinewu/School | 2c55a3fd4a7794e64651b66d36f439a11c180b2c | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <cassert>
using namespace std;
int printTable(const int h, const int v, const int n){
cout << "\tn\tK\tTHC\tOPT\tL\tmxc\tCL" << endl;
int bestk = 0,goodk=0;
int mxc = 0;
int Uc = h*v/n;
double thc = log2(2*n+1);
double opt = thc * Uc;
for(int k=1,maxk=h*v/n; k<=max... | 23 | 138 | 0.504577 | hsinewu |
9efff5e0efbbad6219fde5c5ba524aaa8ca40be4 | 6,136 | cpp | C++ | src/Library/Core/FileSystem/PermissionSet.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | null | null | null | src/Library/Core/FileSystem/PermissionSet.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | null | null | null | src/Library/Core/FileSystem/PermissionSet.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | 1 | 2020-12-01T14:50:50.000Z | 2020-12-01T14:50:50.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Core
/// @file Library/Core/FileSystem/PermissionSet.cpp
/// @author Lucas Brémond <lucas@loftorbital.com>
///... | 36.52381 | 167 | 0.383963 | cowlicks |
730644d4c1ccf4fd7d9b962bda161f174237706e | 20,780 | cpp | C++ | programs/koinos_chain/main.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | programs/koinos_chain/main.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | programs/koinos_chain/main.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <string>
#include <boost/asio.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/program_options.hpp>
#include <boost/thread/sync_bounded_queue.hpp>
#include <yaml-cpp/yaml.h>
#include <google/protobuf/util/json_util.h>
... | 36.713781 | 181 | 0.576275 | joticajulian |
7307bd870d88963f31631b4c7027563256fb7b7c | 14,425 | cpp | C++ | Desktop/FOSSA-GroundStationControlPanel/FOSSAGSCP/MessageHandlers/FOSSASAT2_MessageHandler.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 2 | 2021-11-07T16:26:46.000Z | 2022-03-20T10:14:41.000Z | Desktop/FOSSA-GroundStationControlPanel/FOSSAGSCP/MessageHandlers/FOSSASAT2_MessageHandler.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 18 | 2020-08-28T13:38:36.000Z | 2020-09-30T11:08:42.000Z | Desktop/FOSSA-GroundStationControlPanel/FOSSAGSCP/MessageHandlers/FOSSASAT2_MessageHandler.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 2 | 2020-07-29T21:19:28.000Z | 2021-08-16T03:58:14.000Z | #include "FOSSASAT2_MessageHandler.h"
#include "../systeminformationpane.h"
#include "../ui_systeminformationpane.h"
#include "../mainwindow.h"
#include "../ui_mainwindow.h"
#include "../messagelogframe.h"
#include "../ui_messagelogframe.h"
void FOSSASAT2::MessageHandler::Handle(FOSSASAT2::Messages::SystemInfo msg, s... | 59.607438 | 147 | 0.825511 | FOSSASystems |
73093e0a1e1b7be8e1f0ba7f223d308cbb3aa8f1 | 5,499 | hpp | C++ | Engine/Rendering/Renderer.hpp | seb776/Tricible | fb1b7c7e027231c158a1945d3568777c4092ca6d | [
"Apache-2.0"
] | 2 | 2017-09-08T04:52:01.000Z | 2018-10-13T14:30:52.000Z | Engine/Rendering/Renderer.hpp | seb776/Tricible | fb1b7c7e027231c158a1945d3568777c4092ca6d | [
"Apache-2.0"
] | 2 | 2018-10-24T12:48:00.000Z | 2018-11-02T16:15:21.000Z | Engine/Rendering/Renderer.hpp | seb776/Tricible | fb1b7c7e027231c158a1945d3568777c4092ca6d | [
"Apache-2.0"
] | 1 | 2018-03-17T23:45:21.000Z | 2018-03-17T23:45:21.000Z | #pragma once
#include <iostream>
#include <vector>
#include <CL/cl2.hpp>
#include "../Scene/IntersectionInfo.hpp"
#include "../Scene/Sphere.hpp"
#include "../Scene/Plane.hpp"
#include "../Scene/Triangle.hpp"
#include "../Scene/ALight.hpp"
#include "../Scene/Scene.hpp"
#include "../Scene/Camera.hpp"
#include "../Tools/... | 31.786127 | 168 | 0.635025 | seb776 |
730c7cda6ba4a143dc80e99a7e5e12f5523ef53e | 1,165 | cpp | C++ | Ejercicios/Ejercicio44_punto_de_Venta_parte5/Factura.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44_punto_de_Venta_parte5/Factura.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44_punto_de_Venta_parte5/Factura.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
double subtotal = 0;
string listaProductos;
void agregarProducto(string descripcion, int cantidad, double precio)
{
listaProductos = listaProductos + descripcion + '\n';
subtotal = subtotal + (cantidad * precio);
}
void imprimirFactura()
{
//datos de entra... | 27.093023 | 79 | 0.593133 | Maldanar201 |
730ee948419c510cd5a0b075b38277b171c9b6ad | 1,136 | cpp | C++ | array/238.product-of-array-except-self.0.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | array/238.product-of-array-except-self.0.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | array/238.product-of-array-except-self.0.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | /*
* [238] Product of Array Except Self
*
* https://leetcode.com/problems/product-of-array-except-self/description/
*
* algorithms
* Medium (51.44%)
* Total Accepted: 174.5K
* Total Submissions: 339.1K
* Testcase Example: '[1,2,3,4]'
*
* Given an array nums of n integers where n > 1, return an array out... | 24.695652 | 78 | 0.571303 | yeweili94 |
731078e3cca09de9b7f2a58853daab638030ecf5 | 1,858 | hpp | C++ | configuration/configmgr/configmgrlib/mod_template_support/Variables.hpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | configuration/configmgr/configmgrlib/mod_template_support/Variables.hpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | configuration/configmgr/configmgrlib/mod_template_support/Variables.hpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2018 HPCC 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... | 32.596491 | 156 | 0.643703 | jeclrsg |
73154f1463dc0e95144524ce5ad3fa010e1f17b4 | 400 | cpp | C++ | 02_Practice/Ch10/practice10-13.cpp | khsexk/OOP_by_cpp | 803b7f69a0514fc058d20c58ebb2c11bffa66ed0 | [
"MIT"
] | null | null | null | 02_Practice/Ch10/practice10-13.cpp | khsexk/OOP_by_cpp | 803b7f69a0514fc058d20c58ebb2c11bffa66ed0 | [
"MIT"
] | null | null | null | 02_Practice/Ch10/practice10-13.cpp | khsexk/OOP_by_cpp | 803b7f69a0514fc058d20c58ebb2c11bffa66ed0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
vector<int> v;
cout << "5개의 정수를 입력하세요>> ";
for(int i=0 ; i<5 ; i++){
int n;
cin >> n;
v.push_back(n);
}
sort(v.begin(), v.end());
vector<int>::iterator it;
for(it=v.begin(... | 17.391304 | 45 | 0.4725 | khsexk |
73155ef1a3d923f3e1c6786163620d38f320d553 | 5,239 | cpp | C++ | earth_enterprise/src/server/mod_fdb/unpackermanager.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | 1 | 2019-09-03T06:08:04.000Z | 2019-09-03T06:08:04.000Z | earth_enterprise/src/server/mod_fdb/unpackermanager.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | null | null | null | earth_enterprise/src/server/mod_fdb/unpackermanager.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 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... | 34.24183 | 80 | 0.730292 | seamusdunlop123 |
731628dd670593a284b13b9c50278195008c997e | 1,290 | cpp | C++ | pgadmin/hotdraw/figures/hdRectangleFigure.cpp | jinfroster/pgadmin3 | 8d573a7f13a8b4161225363f1972d75004589275 | [
"PostgreSQL"
] | null | null | null | pgadmin/hotdraw/figures/hdRectangleFigure.cpp | jinfroster/pgadmin3 | 8d573a7f13a8b4161225363f1972d75004589275 | [
"PostgreSQL"
] | null | null | null | pgadmin/hotdraw/figures/hdRectangleFigure.cpp | jinfroster/pgadmin3 | 8d573a7f13a8b4161225363f1972d75004589275 | [
"PostgreSQL"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// hdRectangleFigure.cpp - A simple rectangle figure
//
////////////////////////////... | 24.339623 | 85 | 0.663566 | jinfroster |
731663b535b4f9e317f23296c5d978eeb59d870d | 26,219 | cpp | C++ | Plugins/Area/Area.cpp | GideonCrawle/unified | 2a310e0012badfcc9675bd8c8554613b5354e21a | [
"MIT"
] | null | null | null | Plugins/Area/Area.cpp | GideonCrawle/unified | 2a310e0012badfcc9675bd8c8554613b5354e21a | [
"MIT"
] | null | null | null | Plugins/Area/Area.cpp | GideonCrawle/unified | 2a310e0012badfcc9675bd8c8554613b5354e21a | [
"MIT"
] | null | null | null | #include "Area.hpp"
#include "API/CAppManager.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CNWSModule.hpp"
#include "API/CNWSTrigger.hpp"
#include "API/CNWSTile.hpp"
#include "API/CNWTileData.hpp"
#include "API/CNWSAmbientSound.hpp"
#include "API/CResStruct.hpp"
#include "API/CNWSCreature.hpp"
#include "API/CNW... | 29.998856 | 127 | 0.599603 | GideonCrawle |
731929676fcb16cba7fd64e4d1723bda2d455820 | 1,517 | cpp | C++ | articulations_point.cpp | tz01x/Algorithm | e64a5ceeff01e1b144866760e1682619d9bb0539 | [
"MIT"
] | null | null | null | articulations_point.cpp | tz01x/Algorithm | e64a5ceeff01e1b144866760e1682619d9bb0539 | [
"MIT"
] | null | null | null | articulations_point.cpp | tz01x/Algorithm | e64a5ceeff01e1b144866760e1682619d9bb0539 | [
"MIT"
] | 1 | 2021-01-18T15:46:34.000Z | 2021-01-18T15:46:34.000Z | #include<iostream>
#include<vector>
using namespace std;
int _time=0;
const int _size=10;
vector<int>graph[_size];
int color[_size];
int prev[_size];
int d[_size];
int f[_size];
int low[_size];
void dfs_visit(int v)
{
color[v]=1;
_time+=1;
d[v]=_time;
low[v]=d[v];
for(int i=0; i... | 17.639535 | 56 | 0.388926 | tz01x |
73210595f80820d4bc9a9389717bc0eb0b5f6289 | 2,586 | cpp | C++ | BOCA/AG/src/generator.cpp | Raquel29/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | 1 | 2020-05-24T02:22:13.000Z | 2020-05-24T02:22:13.000Z | BOCA/AG/src/generator.cpp | danielsaad/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | null | null | null | BOCA/AG/src/generator.cpp | danielsaad/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | 4 | 2019-05-15T10:55:57.000Z | 2019-10-26T13:46:48.000Z | #include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
const int MIN_N = 1;
const int MAX_N = 1e5;
const double MIN_V = -50.0;
const double MAX_V = 50.0;
const int rnd_test_n = 50;
template <typename T> void append(vector<T> &dest, const vector<T> &orig) {
dest.insert(dest.... | 24.396226 | 75 | 0.617556 | Raquel29 |
7322e7814e7024232046e7411cb1fe1d6e5fab64 | 4,053 | cpp | C++ | src/matUtils/describe.cpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | src/matUtils/describe.cpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | src/matUtils/describe.cpp | theosanderson/usher | a58c56361cbd40be9dd671afabfa0839aa1cd58e | [
"MIT"
] | null | null | null | #include "describe.hpp"
std::vector<std::string> mutation_paths(const MAT::Tree& T, std::vector<std::string> samples) {
std::vector<std::string> mpaths;
mpaths.push_back("sample_id\tpath_from_root");
for (auto sample: samples) {
std::string cpath = sample + "\t";
auto root_to_sample ... | 44.054348 | 137 | 0.506785 | theosanderson |
7322f78fb03ebbf9e6ec2fceb6d5aaae0ef66312 | 1,653 | cpp | C++ | flyweight_handmade/src/main.cpp | Thordreck/design_patterns_cpp | b7b8ccc76ba26b2f63b80a2022616f266001d85d | [
"MIT"
] | 1 | 2020-02-27T09:39:13.000Z | 2020-02-27T09:39:13.000Z | flyweight_handmade/src/main.cpp | Thordreck/design_patterns_cpp | b7b8ccc76ba26b2f63b80a2022616f266001d85d | [
"MIT"
] | null | null | null | flyweight_handmade/src/main.cpp | Thordreck/design_patterns_cpp | b7b8ccc76ba26b2f63b80a2022616f266001d85d | [
"MIT"
] | null | null | null | #include <map>
#include <string>
#include <sstream>
#include <iostream>
#include <boost/bimap.hpp>
// Bad implementation
struct BadUser
{
std::string name;
};
// Flyweight implementation
using key = uint32_t;
struct User
{
User(const std::string& _first_name, const std::string& _last_name)
: first_n... | 19.915663 | 71 | 0.554749 | Thordreck |
7331dc0b8fe960196a61778f185da6af56508db2 | 851 | cpp | C++ | src/Engine/TextureManager.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Engine/TextureManager.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Engine/TextureManager.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null |
#include "TextureManager.hpp"
TextureManager::TextureManager() {
textureCount = 0;
}
TextureManager& TextureManager::getInstance()
{
static TextureManager instance;
return instance;
}
std::shared_ptr<Texture> TextureManager::getTexture(unsigned int textureID)
{
return textures.at(textureID).second;
}
u... | 27.451613 | 87 | 0.710928 | charlieSewell |
73360d0c3164f3f81e58c104dd2a42e81bc1b59f | 2,261 | cpp | C++ | src/DescriptorSets.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/DescriptorSets.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/DescriptorSets.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | #include <gbVk/DescriptorSets.hpp>
#include <gbVk/DescriptorSet.hpp>
#include <gbVk/Exceptions.hpp>
#include <gbBase/Assert.hpp>
namespace GHULBUS_VULKAN_NAMESPACE
{
DescriptorSets::DescriptorSets(VkDevice logical_device, VkDescriptorPool descriptor_pool,
std::vector<VkDescriptorSet> ... | 31.402778 | 119 | 0.708094 | ComicSansMS |
7339441b0f7e5ce5f5e4d3a45cf8bae997f721cb | 1,399 | cpp | C++ | src/vpg/ecs/coordinator.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 3 | 2021-03-01T16:00:04.000Z | 2022-01-07T03:45:32.000Z | src/vpg/ecs/coordinator.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | null | null | null | src/vpg/ecs/coordinator.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 2 | 2021-03-27T03:54:24.000Z | 2021-06-22T13:53:07.000Z | #include <vpg/ecs/coordinator.hpp>
using namespace vpg::ecs;
EntityManager* Coordinator::entity_manager;
ComponentManager* Coordinator::component_manager;
SystemManager* Coordinator::system_manager;
void Coordinator::init() {
Coordinator::entity_manager = new EntityManager();
Coordinator::component_manager =... | 33.309524 | 82 | 0.764117 | RiscadoA |
733aa5dd5cee7e3d0971b9a33b13021549b2bb7c | 1,115 | cpp | C++ | rclcpp/src/rclcpp/generic_publisher.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 271 | 2015-04-07T15:26:53.000Z | 2022-03-31T17:42:58.000Z | rclcpp/src/rclcpp/generic_publisher.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 1,676 | 2015-01-15T23:46:56.000Z | 2022-03-31T21:32:06.000Z | rclcpp/src/rclcpp/generic_publisher.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 299 | 2015-10-05T16:51:32.000Z | 2022-03-30T11:23:18.000Z | // Copyright 2018, Bosch Software Innovations GmbH.
// Copyright 2021, Apex.AI 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
//... | 31.857143 | 98 | 0.750673 | jlack1987 |
733ab413cbd65cc36cd5c460707989d85209d60b | 12,434 | cpp | C++ | Examples/Beginner/02_IntroducingPVRShell/OGLES/OGLESIntroducingPVRShell.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | null | null | null | Examples/Beginner/02_IntroducingPVRShell/OGLES/OGLESIntroducingPVRShell.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | null | null | null | Examples/Beginner/02_IntroducingPVRShell/OGLES/OGLESIntroducingPVRShell.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | null | null | null | /*!*********************************************************************************************************************
\File OGLESIntroducingPVRShell.cpp
\Title Introduces PVRShell
\Author PowerVR by Imagination, Developer Technology Team
\Copyright Copyright (c) Imagination Technologies Limit... | 41.036304 | 131 | 0.637044 | kusharami |
733af3a7744f90b2453a8cffa75262fda58a92cb | 29,366 | cpp | C++ | src/server/game/Battlegrounds/Zones/BattlegroundBG.cpp | Frankenhooker/ArkCORE | 0a7be7fc0b67e9ef3de421ab5de6012eac7dec6d | [
"OpenSSL"
] | 1 | 2020-03-27T15:13:49.000Z | 2020-03-27T15:13:49.000Z | src/server/game/Battlegrounds/Zones/BattlegroundBG.cpp | Frankenhooker/ArkCORE | 0a7be7fc0b67e9ef3de421ab5de6012eac7dec6d | [
"OpenSSL"
] | null | null | null | src/server/game/Battlegrounds/Zones/BattlegroundBG.cpp | Frankenhooker/ArkCORE | 0a7be7fc0b67e9ef3de421ab5de6012eac7dec6d | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; ... | 43.248895 | 2,238 | 0.657189 | Frankenhooker |
733daf02579f5fe384df00ed67128d6fdd6be52f | 2,362 | hh | C++ | src/mem/cache/split_mshr_cache.hh | xiaoyaozi5566/DynamicCache | 250e7a901f3244f69d0c8de4d3f525a92dbfaac5 | [
"BSD-3-Clause"
] | null | null | null | src/mem/cache/split_mshr_cache.hh | xiaoyaozi5566/DynamicCache | 250e7a901f3244f69d0c8de4d3f525a92dbfaac5 | [
"BSD-3-Clause"
] | null | null | null | src/mem/cache/split_mshr_cache.hh | xiaoyaozi5566/DynamicCache | 250e7a901f3244f69d0c8de4d3f525a92dbfaac5 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T18:02:56.000Z | 2021-07-05T18:02:56.000Z | #include "mem/cache/base.hh"
#include "mem/cache/cache.hh"
#include "params/BaseCache.hh"
#include "stdio.h"
typedef BaseCacheParams Params;
template <class TagStore>
class SplitMSHRCache : public Cache<TagStore>
{
typedef typename Cache<TagStore>::MemSidePacketQueue MemSidePacketQueue;
private:
MSHRQueu... | 32.805556 | 83 | 0.596528 | xiaoyaozi5566 |
7340d6cd0c5a3f2220523abb7f0dc6014eaf6324 | 3,550 | cpp | C++ | romsel_aktheme/arm9/source/windows/smallclock.cpp | ccccmark/TWiLightMenu | 1c7ac841044e042829313d8e9d54f1f790d5ac58 | [
"MIT"
] | null | null | null | romsel_aktheme/arm9/source/windows/smallclock.cpp | ccccmark/TWiLightMenu | 1c7ac841044e042829313d8e9d54f1f790d5ac58 | [
"MIT"
] | null | null | null | romsel_aktheme/arm9/source/windows/smallclock.cpp | ccccmark/TWiLightMenu | 1c7ac841044e042829313d8e9d54f1f790d5ac58 | [
"MIT"
] | null | null | null | /*
smallclock.cpp
Copyright (C) 2007 Acekard, www.acekard.com
Copyright (C) 2007-2009 somebody
Copyright (C) 2009 yellow wood goblin
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fo... | 26.893939 | 106 | 0.62169 | ccccmark |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.