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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21b7b165f624e89398583caebcbdf007153ffcea | 6,181 | cpp | C++ | qmk_firmware/quantum/serial_link/tests/transport_tests.cpp | igagis/best84kb | e4f58e0138b0835b39e636d69658183a8e74594e | [
"MIT"
] | 2 | 2019-05-13T05:19:02.000Z | 2021-11-29T09:07:43.000Z | qmk_firmware/quantum/serial_link/tests/transport_tests.cpp | igagis/best84kb | e4f58e0138b0835b39e636d69658183a8e74594e | [
"MIT"
] | null | null | null | qmk_firmware/quantum/serial_link/tests/transport_tests.cpp | igagis/best84kb | e4f58e0138b0835b39e636d69658183a8e74594e | [
"MIT"
] | 1 | 2020-11-05T02:23:49.000Z | 2020-11-05T02:23:49.000Z | /*
The MIT License (MIT)
Copyright (c) 2016 Fred Sundvik
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, ... | 32.703704 | 104 | 0.738554 | igagis |
21c04010e161eed4e3d4bc7c6c16d1be21dec5af | 2,977 | hpp | C++ | src/number_theory/modulo.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 14 | 2019-04-23T21:44:12.000Z | 2022-03-04T22:48:59.000Z | src/number_theory/modulo.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 3 | 2019-04-25T10:45:32.000Z | 2020-08-05T22:40:39.000Z | src/number_theory/modulo.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 1 | 2020-07-16T22:16:33.000Z | 2020-07-16T22:16:33.000Z | #pragma once
#include "core/all.hpp"
namespace modulo_namespace {
template <typename... Args> using invert_t = decltype(invert(std::declval<Args>()...));
/*! @brief Returns \f$a^b\f$
* @param a the base
* @param b the exponent
*
* Time complexity: \f$O(\log_2 |b|)\f$ multiplications
*/
template <typename T> T powe... | 32.714286 | 98 | 0.642257 | RamchandraApte |
21cb346ca25d20a839156d4a39c533e1731addd1 | 737 | cpp | C++ | Questions Level-Wise/Hard/find-minimum-in-rotated-sorted-array-ii.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Questions Level-Wise/Hard/find-minimum-in-rotated-sorted-array-ii.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Questions Level-Wise/Hard/find-minimum-in-rotated-sorted-array-ii.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | class Solution {
public:
int binarysearch(vector<int> nums,int l,int h)
{
while(l<h)
{
int mid=(h-l)/2+l;
if(nums[l]<nums[h])
return nums[l];
else if(l+1==h)
return nums[h];
else if(nums[l]>=nums[mid]&&nums[mid]<=num... | 24.566667 | 59 | 0.419267 | PrakharPipersania |
21d3802f04245351d855c9ca5900a75a6cde87b5 | 2,522 | cpp | C++ | src/EZOI/1018/kaleidoscope.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/EZOI/1018/kaleidoscope.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/EZOI/1018/kaleidoscope.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <iostream>
typedef long long ll;
int n, m;
template <typename T>
T read();
class Star {
private:
const static int MAX_N = 200050;
public:
struct Node {
int v;
int nxt;
ll w;
} node[MAX_N << 1];
int head[MAX_N];
int c... | 21.016667 | 69 | 0.406027 | krishukr |
21dcf21fc5692fa094e45e1ac901bd23ca517dbe | 146 | cpp | C++ | MemLeak/src/Shape/Line/Line.cpp | pk8868/MemLeak | 72f937110c2b67547f67bdea60d2e80b0f5581a1 | [
"MIT"
] | null | null | null | MemLeak/src/Shape/Line/Line.cpp | pk8868/MemLeak | 72f937110c2b67547f67bdea60d2e80b0f5581a1 | [
"MIT"
] | null | null | null | MemLeak/src/Shape/Line/Line.cpp | pk8868/MemLeak | 72f937110c2b67547f67bdea60d2e80b0f5581a1 | [
"MIT"
] | null | null | null | #include "mpch.h"
#include "Line.hpp"
namespace ml {
Line::Line(Vec2f a, Vec2f b) {
transform.setPoint(a, 0);
transform.setPoint(b, 1);
}
}
| 16.222222 | 31 | 0.650685 | pk8868 |
21e7e4c022bf5ddcc7dc9dfefcdc89b2686c2df5 | 332 | cpp | C++ | docs/mfc/codesnippet/CPP/clistbox-class_29.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/codesnippet/CPP/clistbox-class_29.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/codesnippet/CPP/clistbox-class_29.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | void CMyODListBox::OnLButtonDown(UINT nFlags, CPoint point)
{
BOOL bOutside = TRUE;
UINT uItem = ItemFromPoint(point, bOutside);
if (!bOutside)
{
// Set the anchor to be the middle item.
SetAnchorIndex(uItem);
ASSERT((UINT)GetAnchorIndex() == uItem);
}
CListBox::OnLButtonDown(nFlag... | 23.714286 | 59 | 0.662651 | bobbrow |
21e9d91ffbb9f9ccc18cf739ab91c534075e5f63 | 422 | cpp | C++ | CodeForces/SystemofEquations.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | CodeForces/SystemofEquations.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | CodeForces/SystemofEquations.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
int temp = n;
int count = 0;
map<int, int> mp;
while (n != 0) {
int a = sqrt(n);
int b = temp - pow(a, 2);
mp[a] = b;
n--;
}
for (auto &pr : mp) {
if (pr.first + pow(pr.second, 2) == m) {
count++;
}
if (pr.secon... | 16.88 | 79 | 0.481043 | mysterio0801 |
21e9ecdbe50ce01fc0c3a82d9ea330a09897dad5 | 14,755 | cpp | C++ | Engine/source/T3D/components/physics/rigidBodyComponent.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 10 | 2015-03-12T20:20:34.000Z | 2021-02-03T08:07:31.000Z | Engine/source/T3D/components/physics/rigidBodyComponent.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 3 | 2015-07-04T23:50:43.000Z | 2016-08-01T09:19:52.000Z | Engine/source/T3D/components/physics/rigidBodyComponent.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 6 | 2015-11-28T16:18:26.000Z | 2020-03-29T17:14:56.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 31.595289 | 148 | 0.681261 | John3 |
21ed3f17619794aef95953a386f528f7ea2f97a7 | 1,335 | cpp | C++ | Sort/heap_sort_src/heap_sort.cpp | yichenluan/Algorithm101 | a516fa5dad34ed431fa6fb2efab7bce4a90213bc | [
"MIT"
] | 1 | 2018-10-30T10:02:11.000Z | 2018-10-30T10:02:11.000Z | Sort/heap_sort_src/heap_sort.cpp | yichenluan/Algorithm101 | a516fa5dad34ed431fa6fb2efab7bce4a90213bc | [
"MIT"
] | null | null | null | Sort/heap_sort_src/heap_sort.cpp | yichenluan/Algorithm101 | a516fa5dad34ed431fa6fb2efab7bce4a90213bc | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
using namespace std;
template<class It>
void printByIt(It begin, It end);
template<class It>
void printByIt(It begin, It end) {
for (It curr = begin; curr != end; ++curr) {
cout << *curr << " ";
}
cout << endl;
}
void sink(vector<int>& a, int k, int N) {
... | 22.25 | 60 | 0.468914 | yichenluan |
21ee74d06c68e18c398f9bb4c9583345361f9456 | 60 | hpp | C++ | src/boost_spirit_home_support_nonterminal_locals.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_support_nonterminal_locals.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_support_nonterminal_locals.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/support/nonterminal/locals.hpp>
| 30 | 59 | 0.816667 | miathedev |
21fb53a330953c1ce3974576a63b90ad5df83880 | 4,214 | hpp | C++ | include/ndtree/algorithm/node_neighbors.hpp | gnzlbg/htree | 30e29145b6b0b0f4d1106f05376df94bd58cadc9 | [
"BSL-1.0"
] | 15 | 2015-09-02T13:25:55.000Z | 2021-04-23T04:02:19.000Z | include/ndtree/algorithm/node_neighbors.hpp | gnzlbg/htree | 30e29145b6b0b0f4d1106f05376df94bd58cadc9 | [
"BSL-1.0"
] | 1 | 2015-11-18T03:50:18.000Z | 2016-06-16T08:34:01.000Z | include/ndtree/algorithm/node_neighbors.hpp | gnzlbg/htree | 30e29145b6b0b0f4d1106f05376df94bd58cadc9 | [
"BSL-1.0"
] | 4 | 2016-05-20T18:57:27.000Z | 2019-03-17T09:18:13.000Z | #pragma once
/// \file node_neighbors.hpp
#include <ndtree/algorithm/node_location.hpp>
#include <ndtree/algorithm/node_or_parent_at.hpp>
#include <ndtree/algorithm/shift_location.hpp>
#include <ndtree/concepts.hpp>
#include <ndtree/location/default.hpp>
#include <ndtree/relations/neighbor.hpp>
#include <ndtree/types.h... | 38.66055 | 80 | 0.665638 | gnzlbg |
21fd4bc267f14b60f09e459e847e00fd01369c86 | 995 | cpp | C++ | Arrays/moveposneg.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | Arrays/moveposneg.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | Arrays/moveposneg.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Move all negative numbers to beginning and positive to end with constant extra space
Input: -12, 11, -13, -5, 6, -7, 5, -3, -6
Output: -12 -13 -5 -7 -3 -6 11 6 5
https://www.geeksforgeeks.org/move-negative-numbers-beginning-positive-end-constant-extra-space/
*/
#include<iostream>
using namespace std;
int main()
{
... | 21.170213 | 96 | 0.491457 | thisisnitish |
1d019fde0e400dd85407182f3575e568a42677b0 | 1,127 | cpp | C++ | Source/RTSProject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Private/Libraries/RTSConstructionLibrary.cpp | HeadClot/ue4-rts | 53499c49942aada835b121c89419aaa0be624cbd | [
"MIT"
] | 617 | 2017-04-16T13:34:20.000Z | 2022-03-31T23:43:47.000Z | Source/RTSProject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Private/Libraries/RTSConstructionLibrary.cpp | freezernick/ue4-rts | 14ac47ce07d920c01c999f78996791c75de8ff8a | [
"MIT"
] | 178 | 2017-04-05T19:30:21.000Z | 2022-03-11T05:44:03.000Z | Source/RTSProject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Private/Libraries/RTSConstructionLibrary.cpp | freezernick/ue4-rts | 14ac47ce07d920c01c999f78996791c75de8ff8a | [
"MIT"
] | 147 | 2017-06-27T08:35:09.000Z | 2022-03-28T03:06:17.000Z | #include "Libraries/RTSConstructionLibrary.h"
#include "Construction/RTSBuilderComponent.h"
int32 URTSConstructionLibrary::GetConstructableBuildingIndex(AActor* Builder, TSubclassOf<AActor> BuildingClass)
{
if (!IsValid(Builder))
{
return INDEX_NONE;
}
URTSBuilderComponent* BuilderComponent ... | 28.175 | 112 | 0.753327 | HeadClot |
1d01d78a62b4b0e4ac4e5254e1866e2051263ade | 710 | hpp | C++ | source/query_processor.hpp | simonenkos/dnsperf | 85f8ba97b9a85cf84b2d87610f829d526af459f8 | [
"MIT"
] | null | null | null | source/query_processor.hpp | simonenkos/dnsperf | 85f8ba97b9a85cf84b2d87610f829d526af459f8 | [
"MIT"
] | null | null | null | source/query_processor.hpp | simonenkos/dnsperf | 85f8ba97b9a85cf84b2d87610f829d526af459f8 | [
"MIT"
] | null | null | null | #ifndef DNSPERF_QUERY_PROCESSOR_HPP
#define DNSPERF_QUERY_PROCESSOR_HPP
#include <string>
#include <cstdint>
#include "query_result.hpp"
/**
* Interface of processor which is responsible for making a query.
*/
struct query_processor
{
query_processor() = default;
query_processor(const query_processor & ... | 25.357143 | 73 | 0.725352 | simonenkos |
1d0af241a2faaa6acd1f66644a479013f931bef4 | 868 | cpp | C++ | src/lib/MutexBase.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/MutexBase.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/MutexBase.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010, Piet Hein Schouten. All rights reserved.
* This code is licensed under a BSD-style license that can be
* found in the LICENSE file. The license can also be found at:
* http://www.boi-project.org/license
*/
#include "ThreadLockData.h"
#include "Mutex.h"
#include "MutexBase.h"
namespace BOI ... | 18.869565 | 63 | 0.686636 | romoadri21 |
1d0bd93afc7c766106a533846cefcae4e2fd40c8 | 3,426 | cc | C++ | src/server_main.cc | magazino/tf_service | da63e90b062a57eb1280b589ef8f249be5d422c4 | [
"Apache-2.0"
] | 17 | 2019-12-11T14:26:21.000Z | 2022-01-30T03:41:40.000Z | src/server_main.cc | magazino/tf_service | da63e90b062a57eb1280b589ef8f249be5d422c4 | [
"Apache-2.0"
] | 8 | 2019-12-13T14:45:32.000Z | 2022-02-14T16:22:30.000Z | src/server_main.cc | magazino/tf_service | da63e90b062a57eb1280b589ef8f249be5d422c4 | [
"Apache-2.0"
] | 2 | 2020-07-29T08:47:50.000Z | 2021-12-13T10:38:39.000Z | // Copyright 2019 Magazino GmbH
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 36.063158 | 80 | 0.686223 | magazino |
1d0ebd650e004eb8f4e81f6a905b6b1723f5f9f7 | 63,741 | cpp | C++ | src/plugin/kernel/src/AFCKernelModule.cpp | ArkGame/ArkGameFrame | a7f8413dd416cd1ac5b12adbdd84f010f59f11e2 | [
"Apache-2.0"
] | 168 | 2016-08-18T07:24:48.000Z | 2018-02-06T06:40:45.000Z | src/plugin/kernel/src/AFCKernelModule.cpp | Mu-L/ARK | a7f8413dd416cd1ac5b12adbdd84f010f59f11e2 | [
"Apache-2.0"
] | 11 | 2019-05-27T12:26:02.000Z | 2021-05-12T02:45:16.000Z | src/plugin/kernel/src/AFCKernelModule.cpp | ArkGame/ArkGameFrame | a7f8413dd416cd1ac5b12adbdd84f010f59f11e2 | [
"Apache-2.0"
] | 51 | 2016-09-01T10:17:38.000Z | 2018-02-06T10:45:25.000Z | /*
* This source file is part of ARK
* For the latest info, see https://github.com/ArkNX
*
* Copyright (c) 2013-2020 ArkNX authors.
*
* 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
*
... | 28.725101 | 120 | 0.643259 | ArkGame |
1d10590f67240a9e3501b73e806bb57d339aeb08 | 574 | cpp | C++ | UnitTest/OpenToolTest.cpp | Neuromancer2701/OpenTool | b109e1d798fcca92f23b12e1bb5de898361641a4 | [
"Apache-2.0"
] | 1 | 2017-08-30T05:59:47.000Z | 2017-08-30T05:59:47.000Z | UnitTest/OpenToolTest.cpp | Neuromancer2701/OpenTool | b109e1d798fcca92f23b12e1bb5de898361641a4 | [
"Apache-2.0"
] | null | null | null | UnitTest/OpenToolTest.cpp | Neuromancer2701/OpenTool | b109e1d798fcca92f23b12e1bb5de898361641a4 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Name : OpenToolTest.cpp
// Author :
// Version :
// Copyright :
// Description : Hello World in C++, Ansi-style
//============================================================================
#include "Server.h"
#inclu... | 17.393939 | 78 | 0.439024 | Neuromancer2701 |
1d117be860a84dc612994f2ead8819ad6300b505 | 6,885 | cpp | C++ | src/cli.cpp | CynusW/pg-fetch | bbcd639dbdc67e94f8b02c99b267a12b24300465 | [
"MIT"
] | 1 | 2020-04-16T15:10:20.000Z | 2020-04-16T15:10:20.000Z | src/cli.cpp | CynusW/pg-fetch | bbcd639dbdc67e94f8b02c99b267a12b24300465 | [
"MIT"
] | null | null | null | src/cli.cpp | CynusW/pg-fetch | bbcd639dbdc67e94f8b02c99b267a12b24300465 | [
"MIT"
] | null | null | null | #include "pgf/cli.hpp"
#include "pgf/util.hpp"
#include <cassert>
namespace pgf
{
CommandOptionValue::CommandOptionValue(const CommandOptionValueType& type)
: type(type)
{
switch (type)
{
case CommandOptionValueType::Int:
data = 0;
break;
... | 28.6875 | 114 | 0.444735 | CynusW |
1d12265999bf15a69bf71cd08842c9fa6a5943cb | 4,741 | cpp | C++ | src/dialog/PriceHistory.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 3 | 2019-04-08T19:17:51.000Z | 2019-05-21T01:01:29.000Z | src/dialog/PriceHistory.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-04-30T23:39:06.000Z | 2019-07-27T00:07:20.000Z | src/dialog/PriceHistory.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-02-28T09:22:18.000Z | 2019-02-28T09:22:18.000Z | /**
* Copyright 2020 Colin Doig. Distributed under the MIT license.
*/
#include <wx/wx.h>
#include <wx/dcclient.h>
#include <wx/dcmemory.h>
#include <wx/file.h>
#include <wx/sizer.h>
#include <wx/mstream.h>
#include <wx/stdpaths.h>
#include <wx/stattext.h>
#include <wx/wfstream.h>
#include <wx/url.h>
#include <curl... | 31.606667 | 99 | 0.674119 | captain-igloo |
1d131892aa907fe7c6c9b8a43c537b45deac968d | 382 | hpp | C++ | include/locic/Support/Hasher.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | include/locic/Support/Hasher.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | include/locic/Support/Hasher.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #ifndef LOCIC_SUPPORT_HASHER_HPP
#define LOCIC_SUPPORT_HASHER_HPP
#include <cstddef>
#include <locic/Support/Hash.hpp>
namespace locic{
class Hasher {
public:
Hasher();
void addValue(size_t value);
template <typename T>
void add(const T& object) {
addValue(hashObject<T>(object));
}
size_t... | 12.322581 | 35 | 0.675393 | scross99 |
1d1a805f6372f1eca7b7c40773034606e218253a | 8,602 | cpp | C++ | sources/GS_CO_0.3/main.cpp | Jazzzy/GS_CO_FirstOpenGLProject | 4048b15fdc75ecf826258c1193bb6da2f2b28e7a | [
"Apache-2.0"
] | null | null | null | sources/GS_CO_0.3/main.cpp | Jazzzy/GS_CO_FirstOpenGLProject | 4048b15fdc75ecf826258c1193bb6da2f2b28e7a | [
"Apache-2.0"
] | null | null | null | sources/GS_CO_0.3/main.cpp | Jazzzy/GS_CO_FirstOpenGLProject | 4048b15fdc75ecf826258c1193bb6da2f2b28e7a | [
"Apache-2.0"
] | null | null | null | #pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cmath>
#include <Windows.h>
#include "Camara.h"
#include "objLoader.h"
#include "player.h"
#include "Luz.h"
#include "hud.h"
#include "mundo.h"
#include "colisiones.h"
#include <conio.h>
#include <stdlib.h>
#include <al\al.h>
#include <al\alc.h>... | 19.461538 | 150 | 0.666008 | Jazzzy |
1d22dee0f995a9780c5640ceacf6fdbcb0c4d5bf | 5,048 | cpp | C++ | ecm/src/v20190719/model/PeakBase.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | ecm/src/v20190719/model/PeakBase.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | ecm/src/v20190719/model/PeakBase.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.736264 | 140 | 0.695721 | suluner |
918f20f50d64eb3cfc21d7e7cd53b8b6c2a70df5 | 6,728 | cc | C++ | src/ShaderCompiler/Private/MetalCompiler.cc | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/ShaderCompiler/Private/MetalCompiler.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/ShaderCompiler/Private/MetalCompiler.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include <Kaleido3D.h>
#include "MetalCompiler.h"
#include <Core/Utils/MD5.h>
#include <Core/Os.h>
#include "GLSLangUtils.h"
#include "SPIRVCrossUtils.h"
#define METAL_BIN_DIR_MACOS "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/"
#define METAL_BIN_DIR_IOS "/Applications/Xcode.app/Conten... | 31.586854 | 121 | 0.582194 | PixPh |
919a463419264750d166d11f2fcd75703cf8ae1f | 32,321 | cpp | C++ | XRVessels/XRVesselCtrlDemo/ParserTreeNode.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 10 | 2021-08-20T05:49:10.000Z | 2022-01-07T13:00:20.000Z | XRVessels/XRVesselCtrlDemo/ParserTreeNode.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | null | null | null | XRVessels/XRVesselCtrlDemo/ParserTreeNode.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 4 | 2021-09-11T12:08:01.000Z | 2022-02-09T00:16:19.000Z | /**
XR Vessel add-ons for OpenOrbiter Space Flight Simulator
Copyright (C) 2006-2021 Douglas Beachy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any... | 42.696169 | 189 | 0.643173 | dbeachy1 |
919d7d690b95402d371b19dc25e50af043a8fb21 | 2,188 | cpp | C++ | src/main.cpp | daichi-ishida/Visual-Simulation-of-Smoke | b925d0cfc86f642ab4ee9470e67360b2ab5adcb2 | [
"MIT"
] | 13 | 2018-06-12T11:42:19.000Z | 2021-12-28T00:57:46.000Z | src/main.cpp | daichi-ishida/Visual-Simulation-of-Smoke | b925d0cfc86f642ab4ee9470e67360b2ab5adcb2 | [
"MIT"
] | 2 | 2018-05-10T13:32:02.000Z | 2018-05-12T18:32:53.000Z | src/main.cpp | daichi-ishida/Visual-Simulation-of-Smoke | b925d0cfc86f642ab4ee9470e67360b2ab5adcb2 | [
"MIT"
] | 7 | 2020-01-06T07:07:19.000Z | 2021-12-06T15:43:00.000Z | #include <memory>
#include <sys/time.h>
#define GLFW_INCLUDE_GLU
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "constants.hpp"
#include "Scene.hpp"
#include "Simulator.hpp"
#include "MACGrid.hpp"
int main()
{
if (glfwInit() == GLFW_FALSE)
{
fprintf(stderr, "Initializatio... | 25.149425 | 106 | 0.59415 | daichi-ishida |
91a7b84e71b83bb1d8f1f43442cbe90a3dafe442 | 1,143 | cpp | C++ | source/src/graphics.cpp | AndrewPomorski/KWCGame | b1a748ad0b11d44c6df329345e072cf63fcb5e16 | [
"MIT"
] | null | null | null | source/src/graphics.cpp | AndrewPomorski/KWCGame | b1a748ad0b11d44c6df329345e072cf63fcb5e16 | [
"MIT"
] | null | null | null | source/src/graphics.cpp | AndrewPomorski/KWCGame | b1a748ad0b11d44c6df329345e072cf63fcb5e16 | [
"MIT"
] | null | null | null | #include "SDL.h"
#include <SDL2/SDL_image.h>
#include "graphics.h"
#include "globals.h"
/*
* Graphics class implementation.
* Holds all information dealing with game graphics.
*/
Graphics::Graphics(){
SDL_CreateWindowAndRenderer(globals::SCREEN_WIDTH, globals::SCREEN_HEIGHT, 0, &this->_window, &this->_renderer);
SD... | 22.86 | 113 | 0.741907 | AndrewPomorski |
91a8b666f9cf365fc0a1b889422c3d8fac1755d8 | 3,809 | cpp | C++ | qCC/ccColorGradientDlg.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | qCC/ccColorGradientDlg.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | qCC/ccColorGradientDlg.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | 1 | 2019-02-03T12:19:42.000Z | 2019-02-03T12:19:42.000Z | //##########################################################################
//# #
//# CLOUDCOMPARE #
//# #
//# This pr... | 31.221311 | 101 | 0.631137 | ohanlonl |
91abcc4e5cff1535f9fe5d288498f031d2373a63 | 4,016 | hpp | C++ | include/public/coherence/io/pof/PofAnnotationSerializer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/public/coherence/io/pof/PofAnnotationSerializer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/public/coherence/io/pof/PofAnnotationSerializer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_POF_ANNOTATION_SERIALIZER_HPP
#define COH_POF_ANNOTATION_SERIALIZER_HPP
#include "coherence/lang.ns"
#include "coherence/io/pof/P... | 33.190083 | 92 | 0.648904 | chpatel3 |
91b5701c29df069d7c47d5e8cdbb85b3183b0582 | 1,255 | cpp | C++ | graphs/dinic.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | graphs/dinic.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | graphs/dinic.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | // Dinic - O(n^2 * m)
// Max flow
const int N = 1e5 + 5;
const int INF = 0x3f3f3f3f;
struct edge { int v, c, f; };
int n, s, t, h[N], st[N];
vector<edge> edgs;
vector<int> g[N];
// directed from u to v with cap(u, v) = c
void add_edge(int u, int v, int c) {
int k = edgs.size();
edgs.push_back({... | 19.920635 | 55 | 0.467729 | hsnavarro |
91b78f33891c2e2ba7f7dc198195baf90da2033d | 4,582 | cpp | C++ | tests/tests/array/test_fixedlengtharray.cpp | jnory/YuNomi | c7a2750010d531af53a7a3007ca9b9e6b69dae93 | [
"MIT"
] | 8 | 2016-09-10T05:45:59.000Z | 2019-04-06T13:27:18.000Z | tests/tests/array/test_fixedlengtharray.cpp | jnory/YuNomi | c7a2750010d531af53a7a3007ca9b9e6b69dae93 | [
"MIT"
] | 1 | 2017-11-18T19:49:37.000Z | 2018-05-05T09:49:27.000Z | tests/tests/array/test_fixedlengtharray.cpp | jnory/YuNomi | c7a2750010d531af53a7a3007ca9b9e6b69dae93 | [
"MIT"
] | 1 | 2015-12-06T20:51:10.000Z | 2015-12-06T20:51:10.000Z | #include "gtest/gtest.h"
#include "yunomi/array/fixedlengtharray.hpp"
TEST(TestFixedLengthArray, test_init){
yunomi::array::FixedLengthArray array(10, 1);
EXPECT_EQ(10, array.size());
EXPECT_EQ(1, array.bits_per_slot());
}
TEST(TestFixedLengthArray, test_ten_values){
yunomi::array::FixedLengthArray a... | 29 | 64 | 0.576168 | jnory |
91ba70ddc6aa008b545aa52db848a7b88fafef6e | 1,238 | cpp | C++ | wpl1000/utility.cpp | ola-ct/gpstools | 6a221553077139ad30e0ddf9ee155024ad7a4d26 | [
"BSD-3-Clause"
] | null | null | null | wpl1000/utility.cpp | ola-ct/gpstools | 6a221553077139ad30e0ddf9ee155024ad7a4d26 | [
"BSD-3-Clause"
] | null | null | null | wpl1000/utility.cpp | ola-ct/gpstools | 6a221553077139ad30e0ddf9ee155024ad7a4d26 | [
"BSD-3-Clause"
] | null | null | null | // $Id$
// Copyright (c) 2009 Oliver Lau <oliver@ersatzworld.net>
#include "stdafx.h"
VOID Warn(LPTSTR lpszMessage)
{
MessageBox(NULL, (LPCTSTR)lpszMessage, TEXT("Fehler"), MB_OK);
}
VOID Error(LPTSTR lpszFunction, LONG lErrCode)
{
LPVOID lpMsgBuf;
LPVOID lpDisplayBuf;
if (lErrCode =... | 27.511111 | 93 | 0.64378 | ola-ct |
91bbe1f1e423082754525c7a24e8c6c981b1580a | 498 | cpp | C++ | DUT S2/M2103 - Prog Objet/cplus/tests_TPs/testTP1.cpp | Carduin/IUT | 2642c23d3a3c4932ddaeb9d5f482be35def9273b | [
"MIT"
] | 5 | 2022-02-08T09:36:54.000Z | 2022-02-10T08:47:17.000Z | DUT S2/M2103 - Prog Objet/cplus/tests_TPs/testTP1.cpp | Carduin/IUT | 2642c23d3a3c4932ddaeb9d5f482be35def9273b | [
"MIT"
] | null | null | null | DUT S2/M2103 - Prog Objet/cplus/tests_TPs/testTP1.cpp | Carduin/IUT | 2642c23d3a3c4932ddaeb9d5f482be35def9273b | [
"MIT"
] | 3 | 2021-12-10T16:11:46.000Z | 2022-02-15T15:07:41.000Z | #include "Fenetre.h"
#include "Souris.h"
int main (int argc, char **argv){
gtk_init(&argc, &argv);
Fenetre f;
Souris s;
int b, x, y;
f.apparait("Test TP1",500,400,0,0,100,100,100);
s.associerA(f);
f.choixCouleurTrace(255,100,100);
f.ecrit(10,100,"Bravo, vous avez bien parametre vot... | 17.172414 | 77 | 0.608434 | Carduin |
91bf84920e2f84cee2312fae1434faf045fc4cc4 | 622 | cpp | C++ | source/globjects/source/AttachedRenderbuffer.cpp | kateyy/globjects | 4c5fc073063ca52ea32ce0adb57009a3c52f72a8 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | external/globjects-0.5.0/source/globjects/source/AttachedRenderbuffer.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | external/globjects-0.5.0/source/globjects/source/AttachedRenderbuffer.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z | #include <globjects/AttachedRenderbuffer.h>
#include <cassert>
#include <globjects/Renderbuffer.h>
using namespace gl;
namespace globjects
{
AttachedRenderbuffer::AttachedRenderbuffer(Framebuffer * fbo, const GLenum attachment, Renderbuffer * renderBuffer)
: FramebufferAttachment(fbo, attachment)
, m_renderBuffe... | 17.771429 | 116 | 0.790997 | kateyy |
91c2b85dd910620172b6fd358a4f88b066339835 | 1,042 | cpp | C++ | test/HW_B2/tests_task_D.cpp | GAlekseyV/YandexTraining | e49ce6616e2584a80857a8b2f45b700f12b1fb85 | [
"Unlicense"
] | 1 | 2021-09-21T23:24:37.000Z | 2021-09-21T23:24:37.000Z | test/HW_B2/tests_task_D.cpp | GAlekseyV/YandexTraining | e49ce6616e2584a80857a8b2f45b700f12b1fb85 | [
"Unlicense"
] | null | null | null | test/HW_B2/tests_task_D.cpp | GAlekseyV/YandexTraining | e49ce6616e2584a80857a8b2f45b700f12b1fb85 | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <catch2/catch.hpp>
#include <vector>
std::vector<int> calc_ans(const std::vector<int> &seq, int l);
TEST_CASE("D. Лавочки в атриуме", " ")
{
REQUIRE(calc_ans({ 0, 2 }, 5) == std::vector<int>{ 2 });
REQUIRE(calc_ans({ 1, 4, 8, 11 }, 13) == std::vector<int>{ 4, 8 });
REQUIRE(calc_ans... | 22.170213 | 77 | 0.53167 | GAlekseyV |
91c4a0ead6e52ce6c394ce7b7155be6042fb6f51 | 1,684 | cpp | C++ | tests/src/test_colors.cpp | jegabe/ColorMyConsole | 825855916f93279477051c54715fe76a99629c2a | [
"MIT"
] | null | null | null | tests/src/test_colors.cpp | jegabe/ColorMyConsole | 825855916f93279477051c54715fe76a99629c2a | [
"MIT"
] | null | null | null | tests/src/test_colors.cpp | jegabe/ColorMyConsole | 825855916f93279477051c54715fe76a99629c2a | [
"MIT"
] | null | null | null | // (c) 2021 Jens Ganter-Benzing. Licensed under the MIT license.
#include <iostream>
#include <colmc/setup.h>
#include <colmc/sequences.h>
using namespace colmc;
struct color {
const char* esc_sequence;
const char* name;
};
const struct color bg_colors[] = {
{ back::black, "black " },
{ back::red, "red ... | 30.071429 | 132 | 0.589074 | jegabe |
91c6879681bb3ad66670d6360cc3f0a4fac38d31 | 2,807 | cp | C++ | Comm/Mod/Streams.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2016-03-17T08:27:05.000Z | 2016-03-17T08:27:05.000Z | Comm/Mod/Streams.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | null | null | null | Comm/Mod/Streams.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | 1 | 2018-03-14T17:53:27.000Z | 2018-03-14T17:53:27.000Z | MODULE CommStreams;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
IMPORT Meta;
CONST
... | 32.639535 | 105 | 0.56466 | romiras |
91ca06b4ec287cce73acf4d73eb84dcf5e090adb | 587 | hxx | C++ | src/include/Elastic/Apm/Config/IRawSnapshot.hxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | src/include/Elastic/Apm/Config/IRawSnapshot.hxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | src/include/Elastic/Apm/Config/IRawSnapshot.hxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Elastic/Apm/Util/String.hxx"
#include "Elastic/Apm/Util/Optional.hxx"
namespace Elastic { namespace Apm { namespace Config
{
using namespace Elastic::Apm;
class IRawSnapshot
{
protected:
using String = Util::String;
template< typename T >
using Optional = Util::Optional< T >;
p... | 16.305556 | 78 | 0.667802 | SergeyKleyman |
91cad30ec6590d8dda7374c959f0048d19154093 | 467 | cpp | C++ | src/receivers/evaluator/IdentifierReceiverEvaluator.cpp | benhj/arrow | a88caec0bcf44f70343d6f8d3a4be5790d903ddb | [
"MIT"
] | 19 | 2019-12-10T07:35:08.000Z | 2021-09-27T11:49:37.000Z | src/receivers/evaluator/IdentifierReceiverEvaluator.cpp | benhj/arrow | a88caec0bcf44f70343d6f8d3a4be5790d903ddb | [
"MIT"
] | 22 | 2020-02-09T15:39:53.000Z | 2020-03-02T19:04:40.000Z | src/receivers/evaluator/IdentifierReceiverEvaluator.cpp | benhj/arrow | a88caec0bcf44f70343d6f8d3a4be5790d903ddb | [
"MIT"
] | 2 | 2020-02-17T21:20:43.000Z | 2020-03-02T00:42:08.000Z | /// (c) Ben Jones 2019
#include "IdentifierReceiverEvaluator.hpp"
#include "parser/LanguageException.hpp"
#include <utility>
namespace arrow {
IdentifierReceiverEvaluator::IdentifierReceiverEvaluator(Token tok)
: m_tok(std::move(tok))
{
}
void IdentifierReceiverEvaluator::evaluate(Type incomi... | 24.578947 | 94 | 0.702355 | benhj |
91ce8c90b43c369c3352048a25ece820de97be26 | 814 | cpp | C++ | src/Frameworks/PythonFramework/PythonSchedulePipe.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Frameworks/PythonFramework/PythonSchedulePipe.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Frameworks/PythonFramework/PythonSchedulePipe.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "PythonSchedulePipe.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
PythonSchedulePipe::PythonSchedulePipe()
{
}
//////////////////////////////////////////////////////////////////////////
PythonSchedulePipe::~PythonSchedulePipe()
{
... | 31.307692 | 97 | 0.388206 | Terryhata6 |
91d1a1704e26fdad9ce7d50a91d33736456872b1 | 2,677 | cpp | C++ | src/EnemyController.cpp | CS126SP20/final-project-Tejesh2001 | 70a5d11504f968714392c92d70c472c38e4b0116 | [
"MIT"
] | null | null | null | src/EnemyController.cpp | CS126SP20/final-project-Tejesh2001 | 70a5d11504f968714392c92d70c472c38e4b0116 | [
"MIT"
] | null | null | null | src/EnemyController.cpp | CS126SP20/final-project-Tejesh2001 | 70a5d11504f968714392c92d70c472c38e4b0116 | [
"MIT"
] | 1 | 2020-09-06T12:47:47.000Z | 2020-09-06T12:47:47.000Z | #pragma once
#include "mylibrary/EnemyController.h"
#include <cinder/app/AppBase.h>
#include "cinder/Rand.h"
#include "mylibrary/CoordinateConversions.h"
#include "mylibrary/ProjectWideConstants.h"
namespace mylibrary {
using std::list;
EnemyController::EnemyController() = default;
void EnemyController::setup(b2World... | 29.417582 | 77 | 0.694061 | CS126SP20 |
91d9b1be00d77e8275bd5320f99ca23afed93674 | 509 | hpp | C++ | src/Engine/Scene/Scene.hpp | Liljan/Ape-Engine | 174842ada3a565e83569722837b242fa9faa4114 | [
"MIT"
] | null | null | null | src/Engine/Scene/Scene.hpp | Liljan/Ape-Engine | 174842ada3a565e83569722837b242fa9faa4114 | [
"MIT"
] | null | null | null | src/Engine/Scene/Scene.hpp | Liljan/Ape-Engine | 174842ada3a565e83569722837b242fa9faa4114 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Datatypes.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
class SceneManager;
class ResourceManager;
class Scene
{
public:
~Scene() = default;
virtual void HandleInput(sf::Event& event) = 0;
virtual void Update(float dt) = 0;
virtual void Draw(sf::RenderWindow& window) = 0;
virtu... | 18.178571 | 49 | 0.72888 | Liljan |
91de5fa1a8e651537de6d2da28989c95dbbf40f9 | 10,420 | cpp | C++ | Source/Mesh.cpp | DavidColson/Polybox | 6c3d5939c4baa124e5113fd4146a654f6005e7f6 | [
"MIT"
] | 252 | 2021-08-18T10:43:37.000Z | 2022-03-20T18:43:59.000Z | Source/Mesh.cpp | DavidColson/Polybox | 6c3d5939c4baa124e5113fd4146a654f6005e7f6 | [
"MIT"
] | 3 | 2021-12-01T09:08:33.000Z | 2022-01-14T08:56:19.000Z | Source/Mesh.cpp | DavidColson/Polybox | 6c3d5939c4baa124e5113fd4146a654f6005e7f6 | [
"MIT"
] | 10 | 2021-11-30T16:17:54.000Z | 2022-03-28T17:56:18.000Z | #include "Mesh.h"
#include "Core/Json.h"
#include "Core/Base64.h"
#include <SDL_rwops.h>
#include <string>
// ***********************************************************************
int Primitive::GetNumVertices()
{
return (int)m_vertices.size();
}
// **********************************************************... | 30.828402 | 174 | 0.533685 | DavidColson |
91de6d6f2835be44a67f4886901402cab72c55e3 | 4,432 | hh | C++ | net.ssa/xrLC/OpenMesh/Tools/Utils/MeshCheckerT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xrLC/OpenMesh/Tools/Utils/MeshCheckerT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xrLC/OpenMesh/Tools/Utils/MeshCheckerT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | //=============================================================================
//
// OpenMesh
// Copyright (C) 2003 by Computer Graphics Group, RWTH Aachen
... | 38.53913 | 80 | 0.38944 | ixray-team |
91e8f446e650ca0fded7d5f413dc6a1eda5c0fc9 | 1,707 | cpp | C++ | sources/game/spatial.cpp | ucpu/mazetd | f6ef70a142579b558caa4a7d0e5bdd8177e5fa75 | [
"MIT"
] | 2 | 2021-06-27T01:58:23.000Z | 2021-08-16T20:24:29.000Z | sources/game/spatial.cpp | ucpu/mazetd | f6ef70a142579b558caa4a7d0e5bdd8177e5fa75 | [
"MIT"
] | 2 | 2022-02-03T23:40:10.000Z | 2022-03-15T06:22:29.000Z | sources/game/spatial.cpp | ucpu/mazetd | f6ef70a142579b558caa4a7d0e5bdd8177e5fa75 | [
"MIT"
] | 1 | 2022-01-26T21:07:41.000Z | 2022-01-26T21:07:41.000Z | #include <cage-core/entitiesVisitor.h>
#include <cage-core/spatialStructure.h>
#include "../game.h"
#include "../grid.h"
namespace
{
Holder<SpatialStructure> monstersData = newSpatialStructure({});
Holder<SpatialStructure> structsData = newSpatialStructure({});
Holder<SpatialQuery> monstersQuery = newSpatialQuery(... | 23.708333 | 90 | 0.727592 | ucpu |
91eb95f6a67a682eb83e45a9575e14e3f217c3b9 | 372 | cpp | C++ | Core/Logger/src/Logger.cpp | WSeegers/-toy-StackMachine | 4d1c1b487369604f931f4bfa459e350b5349a9c3 | [
"MIT"
] | null | null | null | Core/Logger/src/Logger.cpp | WSeegers/-toy-StackMachine | 4d1c1b487369604f931f4bfa459e350b5349a9c3 | [
"MIT"
] | null | null | null | Core/Logger/src/Logger.cpp | WSeegers/-toy-StackMachine | 4d1c1b487369604f931f4bfa459e350b5349a9c3 | [
"MIT"
] | null | null | null | #include "../include/Logger.hpp"
#include <iostream>
void Logger::LexicalError(const std::string &msg, int line, int index)
{
std::cerr << "Lexical Error -> "
<< line << ":" << index << " : " << msg << std::endl;
}
void Logger::RuntimeError(const std::string &msg, int line)
{
std::cerr << "Runtime Error -> L... | 23.25 | 70 | 0.572581 | WSeegers |
91ef59cbd345291b9cbc8c26db1740a71088a7ff | 4,449 | cpp | C++ | src/Psn/Exports.cpp | ahmed-agiza/OpenPhySyn | 51841240e5213a7e74bc6321bbe4193323378c8e | [
"BSD-3-Clause"
] | null | null | null | src/Psn/Exports.cpp | ahmed-agiza/OpenPhySyn | 51841240e5213a7e74bc6321bbe4193323378c8e | [
"BSD-3-Clause"
] | null | null | null | src/Psn/Exports.cpp | ahmed-agiza/OpenPhySyn | 51841240e5213a7e74bc6321bbe4193323378c8e | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License
// Copyright (c) 2019, SCALE Lab, Brown University
// 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 n... | 22.469697 | 80 | 0.710497 | ahmed-agiza |
91f3b792dec221d489aa79578b01b1f483bfe1c8 | 22,008 | cpp | C++ | SimplECircuitCybSys/src/SimplECircuitCybSys.cpp | gpvigano/DigitalScenarioFramework | a1cab48df1f4a3d9b54e6cf00c5d0d0058e771f1 | [
"MIT"
] | 1 | 2021-12-21T17:28:39.000Z | 2021-12-21T17:28:39.000Z | SimplECircuitCybSys/src/SimplECircuitCybSys.cpp | gpvigano/DigitalScenarioFramework | a1cab48df1f4a3d9b54e6cf00c5d0d0058e771f1 | [
"MIT"
] | null | null | null | SimplECircuitCybSys/src/SimplECircuitCybSys.cpp | gpvigano/DigitalScenarioFramework | a1cab48df1f4a3d9b54e6cf00c5d0d0058e771f1 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------//
// Digital Scenario Framework //
// by Giovanni Paolo Vigano', 2021 //
//--------------------------------------------------------------------//
//
// Distributed under the ... | 25.325662 | 129 | 0.639313 | gpvigano |
91f65d12c52f59ce95cf6cfcb87d5e478ce374e8 | 1,860 | cpp | C++ | SDLClassesTests/SurfaceTest.cpp | SmallLuma/SDLClasses | 6348dd5d75b366d5e5e67f4074d7ebe0bd2173ee | [
"Zlib"
] | 4 | 2017-06-27T03:34:32.000Z | 2018-03-12T01:30:25.000Z | SDLClassesTests/SurfaceTest.cpp | SmallLuma/SDLClasses | 6348dd5d75b366d5e5e67f4074d7ebe0bd2173ee | [
"Zlib"
] | null | null | null | SDLClassesTests/SurfaceTest.cpp | SmallLuma/SDLClasses | 6348dd5d75b366d5e5e67f4074d7ebe0bd2173ee | [
"Zlib"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include <SDLInstance.h>
#include <Window.h>
#include <Vector4.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace SDLClassesTests
{
TEST_CLASS(SurfaceTest)
{
public:
TEST_METHOD(SimpleDraw)
{
using namespace SDL;
::SDL::SDLInstance sd... | 25.833333 | 114 | 0.649462 | SmallLuma |
91f82f77b5df8436fbb041aa30b09d76d3c6190c | 1,254 | hpp | C++ | include/codegen/include/UnityEngine/AddComponentMenu.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/AddComponentMenu.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/AddComponentMenu.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:29 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Attribute
#include "System/Attribute.hpp"
#include "u... | 35.828571 | 90 | 0.698565 | Futuremappermydud |
91fe1f3f1f9adda77b276622415cd80ae8fdd668 | 1,904 | cpp | C++ | gui/menu-predicate.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | gui/menu-predicate.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | gui/menu-predicate.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... | 37.333333 | 80 | 0.703256 | lukas-ke |
91fe5ec015a859e4baf8fbfd0bede4e736578a86 | 1,417 | hpp | C++ | node/silkworm/stagedsync/stage_senders.hpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | node/silkworm/stagedsync/stage_senders.hpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | node/silkworm/stagedsync/stage_senders.hpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021-2022 The Silkworm Authors
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 ag... | 32.953488 | 101 | 0.754411 | elmato |
6201580492f357eb45a9360ec184df9935f3f922 | 668 | cpp | C++ | UVA00455.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA00455.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA00455.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
using namespace std;
int main() {
int T;
bool first = false;
cin >> T;
while (T--) {
if (first) printf("\n");
else first = true;
string s;
cin >> s;
int i = 1;
for (; i < s.length(); i++) {
if (s.length() % i == 0) {
... | 23.034483 | 72 | 0.314371 | MaSteve |
620df08526200389fea0d2478c6d953d8b88a02b | 18,641 | cc | C++ | src/util.cc | unclearness/ugu | 641c5170147091e82578fa6bcd84f3484172f487 | [
"MIT"
] | 18 | 2019-12-29T17:27:55.000Z | 2022-02-21T11:02:35.000Z | src/util.cc | unclearness/ugu | 641c5170147091e82578fa6bcd84f3484172f487 | [
"MIT"
] | 1 | 2021-07-22T12:04:53.000Z | 2021-07-22T12:04:53.000Z | src/util.cc | unclearness/ugu | 641c5170147091e82578fa6bcd84f3484172f487 | [
"MIT"
] | 2 | 2021-02-26T06:58:36.000Z | 2021-07-05T12:24:09.000Z | /*
* Copyright (C) 2019, unclearness
* All rights reserved.
*/
#include <fstream>
#include "ugu/util/io_util.h"
#include "ugu/util/math_util.h"
#include "ugu/util/raster_util.h"
#include "ugu/util/rgbd_util.h"
namespace {
bool Depth2PointCloudImpl(const ugu::Image1f& depth, const ugu::Image3b& color,
... | 32.362847 | 80 | 0.612682 | unclearness |
620eedbea94b69b261f8911bc2a684500a7554ec | 2,874 | hpp | C++ | sdk/identity/azure-identity/inc/azure/identity/client_certificate_credential.hpp | JinmingHu-MSFT/azure-sdk-for-cpp | 933486385a54a5a09a7444dbd823425f145ad75a | [
"MIT"
] | 1 | 2022-01-19T22:54:41.000Z | 2022-01-19T22:54:41.000Z | sdk/identity/azure-identity/inc/azure/identity/client_certificate_credential.hpp | LarryOsterman/azure-sdk-for-cpp | d96216f50909a2bd39b555c9088f685bf0f7d6e6 | [
"MIT"
] | null | null | null | sdk/identity/azure-identity/inc/azure/identity/client_certificate_credential.hpp | LarryOsterman/azure-sdk-for-cpp | d96216f50909a2bd39b555c9088f685bf0f7d6e6 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Client Certificate Credential and options.
*/
#pragma once
#include "azure/identity/dll_import_export.hpp"
#include <azure/core/credentials/credentials.hpp>
#include <azure/core/credentials/token_cre... | 29.628866 | 100 | 0.699026 | JinmingHu-MSFT |
6211bc69c80917d0126fa9ea034fd82551348b1d | 203 | cpp | C++ | core/objects/utility/Dynamic.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 20 | 2021-04-02T04:30:08.000Z | 2022-03-01T09:52:01.000Z | core/objects/utility/Dynamic.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | null | null | null | core/objects/utility/Dynamic.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 1 | 2022-01-22T11:44:52.000Z | 2022-01-22T11:44:52.000Z | #include "objects/utility/Dynamic.h"
NAMESPACE_SPH_BEGIN
Dynamic::Dynamic() = default;
/// Needs to be in .cpp to compile with clang, for some reason
Dynamic::~Dynamic() = default;
NAMESPACE_SPH_END
| 18.454545 | 62 | 0.748768 | pavelsevecek |
6212bc8831b2ba6f1511f39ce1398e5a6770e78c | 5,734 | cpp | C++ | Codes/String/SuffixArrayShort.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | 18 | 2015-05-24T20:28:46.000Z | 2021-01-27T02:34:43.000Z | Codes/String/SuffixArrayShort.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | null | null | null | Codes/String/SuffixArrayShort.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | 4 | 2015-05-24T20:28:32.000Z | 2021-01-30T04:04:55.000Z | typedef vector<int> VI;
struct SuffixArray {
int N;
string A;
VI SA, RA, LCP;
SuffixArray(const string &B) :
N(B.size()), A(B), SA(B.size()), RA(B.size()), LCP(B.size()) {
for (int i = 0; i < N; ++i)
SA[i] = i, RA[i] = A[i];
if(N == 1) RA[0] = 0;
}
void countingSort(int H) {
auto vrank = [&](int i) {... | 26.423963 | 109 | 0.452389 | cjtoribio |
62156bb4143b403e6bd804aa6095f394decd67db | 39,862 | cpp | C++ | Kuplung/kuplung/utilities/renderers/default-forward/DefaultForwardRenderer.cpp | supudo/Kuplung | f0e11934fde0675fa531e6dc263bedcc20a5ea1a | [
"Unlicense"
] | 14 | 2017-02-17T17:12:40.000Z | 2021-12-22T01:55:06.000Z | Kuplung/kuplung/utilities/renderers/default-forward/DefaultForwardRenderer.cpp | supudo/Kuplung | f0e11934fde0675fa531e6dc263bedcc20a5ea1a | [
"Unlicense"
] | null | null | null | Kuplung/kuplung/utilities/renderers/default-forward/DefaultForwardRenderer.cpp | supudo/Kuplung | f0e11934fde0675fa531e6dc263bedcc20a5ea1a | [
"Unlicense"
] | 1 | 2019-10-15T08:10:10.000Z | 2019-10-15T08:10:10.000Z | //
// DefaultForwardRenderer.cpp
// Kuplung
//
// Created by Sergey Petrov on 12/16/15.
// Copyright © 2015 supudo.net. All rights reserved.
//
#include "DefaultForwardRenderer.hpp"
#include "kuplung/utilities/stb/stb_image_write.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>
#i... | 57.027182 | 251 | 0.736365 | supudo |
6217a1836b7e95e4c902fa7d2642aa70a2c8edc7 | 4,122 | cpp | C++ | src/legecy/stereo_block_matching.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | src/legecy/stereo_block_matching.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | src/legecy/stereo_block_matching.cpp | behnamasadi/OpenCVProjects | 157c8d536c78c5660b64a23300a7aaf941584756 | [
"BSD-3-Clause"
] | null | null | null | #include <opencv2/opencv.hpp>
const char *windowDisparity = "Disparity";
cv::Mat imgLeft;
cv::Mat imgRight;
cv::Mat imgDisparity16S;
cv::Mat imgDisparity8U;
int ndisparities= 16*5;
int SADWindowSize= 21;
double minVal; double maxVal;
cv::StereoBM sbm( cv::StereoBM::NARROW_PRESET,ndisparities,SADWindowSize )... | 25.288344 | 148 | 0.673459 | behnamasadi |
6218b5bec030cb10643d1c699b703620e70da83f | 950 | cpp | C++ | 42dynamicProgrammingPractice/dynamicPragrammingPractice/dynamicPragrammingPractice/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | 1 | 2019-05-01T04:51:14.000Z | 2019-05-01T04:51:14.000Z | 42dynamicProgrammingPractice/dynamicPragrammingPractice/dynamicPragrammingPractice/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | 42dynamicProgrammingPractice/dynamicPragrammingPractice/dynamicPragrammingPractice/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | //
// main.cpp
// dynamicPragrammingPractice
//
// Created by Gguomingyue on 2019/2/20.
// Copyright © 2019 Gmingyue. All rights reserved.
//
#include <iostream>
using namespace std;
static char a[6] = {'m', 'i', 't', 'c', 'm', 'u'};
static char b[6] = {'m', 't', 'a', 'c', 'n', 'u'};
static int n = 6;
static int ... | 19.791667 | 51 | 0.458947 | mingyuefly |
6223b18bd74bb8dd8120c7c358f1f1422a950de1 | 4,420 | hpp | C++ | include/System/IO/FileInfo.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/IO/FileInfo.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/IO/FileInfo.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.IO.FileSystemInfo
#include "System/IO/FileSystemInfo.hpp"
#inc... | 47.021277 | 162 | 0.703846 | darknight1050 |
62337383665e6d6b0264360ab9ed7e191ee04b7a | 168 | hpp | C++ | src/main.hpp | ziggi/rustext | 5dcfe9f07f9a13b4f2979f98663a68c2ac62e163 | [
"MIT"
] | 20 | 2016-09-19T20:37:36.000Z | 2022-02-26T14:16:28.000Z | src/main.hpp | ziggi/rustext | 5dcfe9f07f9a13b4f2979f98663a68c2ac62e163 | [
"MIT"
] | 6 | 2016-12-27T16:49:01.000Z | 2020-11-22T16:50:29.000Z | src/main.hpp | ziggi/rustext | 5dcfe9f07f9a13b4f2979f98663a68c2ac62e163 | [
"MIT"
] | 1 | 2019-02-21T08:10:43.000Z | 2019-02-21T08:10:43.000Z | /*
About: rustext main
Author: ziggi
*/
#ifndef MAIN_H
#define MAIN_H
#include <map>
#include "common.hpp"
#include "converter.hpp"
logprintf_t logprintf;
#endif
| 10.5 | 24 | 0.720238 | ziggi |
62360aef9279d488b4ee2c24e9591aedb0cd169d | 834 | cpp | C++ | src/actions/move_by_action.cpp | tomalbrc/rawket-engine | 2b7da4f33c874154120fc2d1529081f4f4ae33c7 | [
"MIT"
] | null | null | null | src/actions/move_by_action.cpp | tomalbrc/rawket-engine | 2b7da4f33c874154120fc2d1529081f4f4ae33c7 | [
"MIT"
] | 1 | 2016-03-18T13:54:22.000Z | 2016-08-11T22:02:28.000Z | src/actions/move_by_action.cpp | tomalbrc/FayEngine | 2b7da4f33c874154120fc2d1529081f4f4ae33c7 | [
"MIT"
] | null | null | null | //
// move_by_action.cpp
// rawket
//
// Created by Tom Albrecht on 09.12.15.
//
//
#include "move_by_action.hpp"
RKT_NAMESPACE_BEGIN
move_by_action_ptr move_by_action::create(double pduration, vec2f offset) {
move_by_action_ptr p(new move_by_action());
p->init(pduration, offset);
return p;
}
bool ... | 19.857143 | 116 | 0.707434 | tomalbrc |
623939f0120a593b016902b94a91af7d88e57e7c | 8,257 | cpp | C++ | src/Equations/Fluid/HottailRateTermHighZ.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Equations/Fluid/HottailRateTermHighZ.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Equations/Fluid/HottailRateTermHighZ.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Implementation of equation term representing the runaway generation rate
* due to hottail when using an analytic distribution function
*/
#include "DREAM/Equations/Fluid/HottailRateTermHighZ.hpp"
using namespace DREAM;
/**
* Constructor.
*
* gsl_altPc* contains parameters and functions needed
* to eval... | 34.987288 | 138 | 0.669977 | chalmersplasmatheory |
623a159d3ca2db1b550deccf4256c78327c053ba | 3,197 | hpp | C++ | Examples/ProgAnalysis/Cfg.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Examples/ProgAnalysis/Cfg.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Examples/ProgAnalysis/Cfg.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef _WALI_CFG_HPP_
#define _WALI_CFG_HPP_
/*
* @author Akash Lal
*/
/*
* This file includes an abstract class for a Control Flow Graph (CFG). A CFG is represented
* as a graph over CFGNodes and CFGEdges.
*
* This abstract class is meant to provide just enough interface to be able to
* construct a WPDS.
... | 25.373016 | 92 | 0.684079 | jusito |
623bfc1dbecdd6ebf1bfdefa4e2bb2b501853294 | 2,740 | cpp | C++ | LifeBrush/Source/LifeBrush/Simulation/Brownian.cpp | timdecode/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 33 | 2019-04-23T23:00:09.000Z | 2021-11-09T11:44:09.000Z | LifeBrush/Source/LifeBrush/Simulation/Brownian.cpp | MyelinsheathXD/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 1 | 2019-10-09T15:57:56.000Z | 2020-03-05T20:01:01.000Z | LifeBrush/Source/LifeBrush/Simulation/Brownian.cpp | MyelinsheathXD/LifeBrush | dbc65bcc0ec77f9168e08cf7b39539af94420725 | [
"MIT"
] | 6 | 2019-04-25T00:10:55.000Z | 2021-04-12T05:16:28.000Z | // Copyright (c) 2019 Timothy Davison. All rights reserved.
#include "LifeBrush.h"
#include "Simulation/FlexElements.h"
#include "Brownian.h"
void USingleParticleBrownianSimulation::attach()
{
rand.GenerateNewSeed();
}
void USingleParticleBrownianSimulation::detach()
{
}
void USingleParticleBrownianSimulation::... | 21.574803 | 90 | 0.724453 | timdecode |
623c158b82f5ffc0d0db2e2fb7c1f16ace9c978f | 2,652 | cpp | C++ | src/Camera2D.cpp | jasonwnorris/SuperAwesomeGameEngine | 908adf2099898b2c2028a8c8e8887f1d53be181f | [
"MIT"
] | 1 | 2016-05-21T12:45:20.000Z | 2016-05-21T12:45:20.000Z | src/Camera2D.cpp | jasonwnorris/SuperAwesomeGameEngine | 908adf2099898b2c2028a8c8e8887f1d53be181f | [
"MIT"
] | null | null | null | src/Camera2D.cpp | jasonwnorris/SuperAwesomeGameEngine | 908adf2099898b2c2028a8c8e8887f1d53be181f | [
"MIT"
] | null | null | null | // Camera2D.cpp
// SAGE Includes
#include <SAGE/Camera2D.hpp>
namespace SAGE
{
const Camera2D Camera2D::DefaultCamera;
int Camera2D::DefaultWidth = 1280;
int Camera2D::DefaultHeight = 720;
Camera2D::Camera2D()
{
m_Position = Vector2::Zero;
m_Rotation = 0.0f;
m_Scale = Vector2::One;
m_Width = DefaultWidt... | 19.791045 | 116 | 0.707391 | jasonwnorris |
9a8b7cab21f5563369369e89adf76a80a30f01c3 | 5,975 | cpp | C++ | opengl/texture.cpp | yRezaei/cpp-utils | 3e1ba264bdb6e2339b7b5f2c4e5c3ab7d8097332 | [
"MIT"
] | null | null | null | opengl/texture.cpp | yRezaei/cpp-utils | 3e1ba264bdb6e2339b7b5f2c4e5c3ab7d8097332 | [
"MIT"
] | null | null | null | opengl/texture.cpp | yRezaei/cpp-utils | 3e1ba264bdb6e2339b7b5f2c4e5c3ab7d8097332 | [
"MIT"
] | null | null | null | #include "../rendering/gl_utility.hpp"
#include "texture.h"
namespace gl
{
int format_to_texture(image::Format format)
{
switch (format)
{
case image::ALPHA:
case image::GRAYSCALE:
return GL_RED;
case image::GRAYSCALE_ALPHA:
ASSERT("Unkown format 'GRAYSCALE_ALPHA'!!!!");
case image::RGB:
return ... | 33.757062 | 167 | 0.743096 | yRezaei |
9a90a34a50edc5648df12b76cb1b02e0be8f77fc | 737 | cpp | C++ | InfoX/lungimea_coordonate_segment.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | 1 | 2022-03-31T21:45:03.000Z | 2022-03-31T21:45:03.000Z | InfoX/lungimea_coordonate_segment.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | InfoX/lungimea_coordonate_segment.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | // Citesc coordonatele A(x1,y1), B(x2,y2).
// Afiseaza lungimea AB si coordonatele mijlocului segmentului AB.
#include <iostream>
#include <math.h>
using namespace std;
int main(){
float x1, y1, x2, y2, ab, c1, c2;
cout << "Introdu coordonata punctului A - x1: "; cin >> x1;
cout << "Introdu coordonata p... | 29.48 | 117 | 0.573948 | jbara2002 |
9a92781c5880a10d8cbdff21bdb1f9650bb73f75 | 12,314 | cpp | C++ | cmd_vcf_sample_summary.cpp | Yichen-Si/cramore | 18ed327c2bb9deb6c2ec4243d259b93142304719 | [
"Apache-2.0"
] | 2 | 2019-03-04T23:08:17.000Z | 2021-08-24T08:10:03.000Z | cmd_vcf_sample_summary.cpp | Yichen-Si/cramore | 18ed327c2bb9deb6c2ec4243d259b93142304719 | [
"Apache-2.0"
] | 2 | 2018-09-19T05:16:20.000Z | 2020-10-01T18:28:36.000Z | cmd_vcf_sample_summary.cpp | Yichen-Si/cramore | 18ed327c2bb9deb6c2ec4243d259b93142304719 | [
"Apache-2.0"
] | 3 | 2018-09-06T22:04:40.000Z | 2019-08-19T16:55:42.000Z | #include "bcf_filter_arg.h"
#include "cramore.h"
#include "bcf_ordered_reader.h"
int32_t cmdVcfSampleSummary(int32_t argc, char** argv) {
std::string inVcf;
std::string out;
std::string reg;
std::vector<std::string> sumFields;
int32_t minDistBp = 0;
int32_t verbose = 1000;
bool countVariants = false; //... | 33.82967 | 183 | 0.617265 | Yichen-Si |
9a96b1ef62c7fd3cd7363e2485646d7bc9ee2186 | 589 | cpp | C++ | volume2/1161_10May2006_1186596.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume2/1161_10May2006_1186596.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume2/1161_10May2006_1186596.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | //1161
#include <stdio.h>
#include <math.h>
int arr[107];
double res = 0;
void Sq(int* a, int n){
int p = a[n>>1];
int i = 0 , j = n;
int temp;
do{
while(a[i] < p)i++;
while(a[j] > p)j--;
if(i <= j){
temp = a[i];
a[i] = a[j];
a[j] = temp;
i++;
j--;
}
}while(i <= j);
if(j >... | 12.270833 | 27 | 0.419355 | andriybuday |
9a989fbef319496656a1b096f8e75ab1160136fc | 4,103 | cpp | C++ | src/solver.cpp | oygx210/dmsc-visualizer | c0d571beb5dc6a4c76ef27b9d57139cb48376756 | [
"MIT"
] | null | null | null | src/solver.cpp | oygx210/dmsc-visualizer | c0d571beb5dc6a4c76ef27b9d57139cb48376756 | [
"MIT"
] | null | null | null | src/solver.cpp | oygx210/dmsc-visualizer | c0d571beb5dc6a4c76ef27b9d57139cb48376756 | [
"MIT"
] | 1 | 2021-12-13T02:28:00.000Z | 2021-12-13T02:28:00.000Z | #include "dmsc/solver.hpp"
#include "dmsc/glm_include.hpp"
#include <cmath>
#include <ctime>
#include <fstream>
#include <random>
namespace dmsc {
float Solver::nextCommunication(const InterSatelliteLink& edge, const float time_0) {
// edge is never visible?
float t_visible = nextVisibility(edge, time_0);
... | 32.307087 | 99 | 0.520107 | oygx210 |
9a9ea4fd5b4657ee6f817ddef3d9c02f4b17b117 | 674 | cpp | C++ | solution.cpp | kylianlee/acmicpc_11000 | df4fc833ee5aef7385250683d69405400557687e | [
"MIT"
] | null | null | null | solution.cpp | kylianlee/acmicpc_11000 | df4fc833ee5aef7385250683d69405400557687e | [
"MIT"
] | null | null | null | solution.cpp | kylianlee/acmicpc_11000 | df4fc833ee5aef7385250683d69405400557687e | [
"MIT"
] | null | null | null | //
// Created by Kylian Lee on 2021/09/18.
//
#include <iostream>
#include <vector>
#include <queue>
#include <utility>
using namespace std;
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> pq;
int main(){
int class_num;
scanf("%d", &class_num);
for (int i = 0; i < class_num; ++i) {
int s... | 19.823529 | 69 | 0.591988 | kylianlee |
9a9fffcd98f63cbc05284239b58ae4182f83c68b | 3,301 | cpp | C++ | addons/ofxKinectForWindows2/example/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | addons/ofxKinectForWindows2/example/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | addons/ofxKinectForWindows2/example/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | #include "ofApp.h"
int previewWidth = 512;
int previewHeight = 424;
//--------------------------------------------------------------
void ofApp::setup(){
kinect.open();
kinect.initDepthSource();
kinect.initColorSource();
kinect.initInfraredSource();
kinect.initBodySource();
kinect.initBodyIndexSource();
ofSetW... | 27.057377 | 142 | 0.541351 | syeminpark |
9aa057125e59591d9eef384321180649580e4163 | 17,493 | cpp | C++ | application_sandbox/stencil_export/main.cpp | apazylbe/vulkan_test_applications | 250bb3d371e3c587a8d1ceb5f9187a960b61d63f | [
"Apache-2.0"
] | null | null | null | application_sandbox/stencil_export/main.cpp | apazylbe/vulkan_test_applications | 250bb3d371e3c587a8d1ceb5f9187a960b61d63f | [
"Apache-2.0"
] | null | null | null | application_sandbox/stencil_export/main.cpp | apazylbe/vulkan_test_applications | 250bb3d371e3c587a8d1ceb5f9187a960b61d63f | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 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 ... | 42.980344 | 81 | 0.565998 | apazylbe |
9aa44ab013d4ea06a37dab5fec1871e02da1e5f3 | 2,639 | hpp | C++ | src/dwalker/include/PEManager.hpp | shmmsra/dwalker | 4996adcec11bb92ad6d67a8d2e79bd5b022cb67f | [
"MIT"
] | null | null | null | src/dwalker/include/PEManager.hpp | shmmsra/dwalker | 4996adcec11bb92ad6d67a8d2e79bd5b022cb67f | [
"MIT"
] | null | null | null | src/dwalker/include/PEManager.hpp | shmmsra/dwalker | 4996adcec11bb92ad6d67a8d2e79bd5b022cb67f | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <memory>
#include <PHLib.hpp>
#include <PE.hpp>
#include <ApiSet.hpp>
struct PeImport {
unsigned short Hint;
unsigned short Ordinal;
std::string Name;
std::string ModuleName;
bool ImportByOrdinal;
bool DelayImport;
PeImport(const ... | 22.176471 | 88 | 0.685866 | shmmsra |
9aaa7871a9043ee5b33360e07308437e026f85f4 | 2,746 | cpp | C++ | openbr/plugins/gui/drawgridlines.cpp | gaatyin/openbr | a55fa7bd0038b323ade2340c69f109146f084218 | [
"Apache-2.0"
] | 1 | 2021-04-26T12:53:42.000Z | 2021-04-26T12:53:42.000Z | openbr/plugins/gui/drawgridlines.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | openbr/plugins/gui/drawgridlines.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... | 42.90625 | 98 | 0.545157 | gaatyin |
9aae4ee0b7a4aa188f2e2316079f4f471f1c8a5a | 3,416 | cpp | C++ | 51nod/1037.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | 51nod/1037.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | 51nod/1037.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #pragma GCC optimize 2
#include <bits/stdc++.h>
#define N 100020
#define ll long long
using namespace std;
inline ll read(){
ll x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
inline ll rand(ll mx) {
... | 19.52 | 74 | 0.43589 | swwind |
9aae8cf1d38d195dab8f63a67a3e221bba43032a | 4,484 | cpp | C++ | src/ProvisioningCipher.cpp | yorickdewid/Signalpp | c66d7455f46b883caf61cabd0dd01d3eb0839515 | [
"BSD-3-Clause"
] | 1 | 2017-07-08T12:36:01.000Z | 2017-07-08T12:36:01.000Z | src/ProvisioningCipher.cpp | yorickdewid/Signalpp | c66d7455f46b883caf61cabd0dd01d3eb0839515 | [
"BSD-3-Clause"
] | null | null | null | src/ProvisioningCipher.cpp | yorickdewid/Signalpp | c66d7455f46b883caf61cabd0dd01d3eb0839515 | [
"BSD-3-Clause"
] | null | null | null | #include "Logger.h"
#include "Helper.h"
#include "Base64.h"
#include "CryptoProvider.h"
#include "ProvisioningCipher.h"
#include "KeyHelper.h"
#include "DeviceMessages.pb.h"
#include <hkdf.h>
using namespace signalpp;
ProvisioningCipher::ProvisioningCipher() {
signal_context_create(&context, 0);//TODO: move
Crypt... | 30.503401 | 170 | 0.730375 | yorickdewid |
9ab1177dc03c9f6f2a1d23f0cb4f5347d31e75e6 | 838 | hpp | C++ | include/Shared/SecureRandomGenerator.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | 1 | 2018-02-25T18:18:59.000Z | 2018-02-25T18:18:59.000Z | include/Shared/SecureRandomGenerator.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | include/Shared/SecureRandomGenerator.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Erewhon Shared" project
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef EREWHON_SHARED_SECURE_RANDOM_GENERATOR_HPP
#define EREWHON_SHARED_SECURE_RANDOM_GENERATOR_HPP
#include <Nazara/Prerequisites.hpp>
... | 24.647059 | 74 | 0.791169 | Praetonus |
9ab5a593606dbad340bc4e354322fc60326629f2 | 3,736 | hpp | C++ | src/nes/Bus.hpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | src/nes/Bus.hpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | src/nes/Bus.hpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | /*******************************************************************************
MIT License
Copyright (c) 2020 Chris Luby
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, inc... | 40.172043 | 113 | 0.679069 | clubycoder |
9ab787a76aabe3939baecda3e75cc51ceb500c25 | 13,834 | cpp | C++ | src/commlib/zcelib/zce_os_adapt_file.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 72 | 2015-01-08T05:01:48.000Z | 2021-12-28T06:13:03.000Z | src/commlib/zcelib/zce_os_adapt_file.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 4 | 2016-01-18T12:24:59.000Z | 2019-10-12T07:19:15.000Z | src/commlib/zcelib/zce_os_adapt_file.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 40 | 2015-01-26T06:49:18.000Z | 2021-07-20T08:11:48.000Z |
#include "zce_predefine.h"
#include "zce_log_logging.h"
#include "zce_os_adapt_predefine.h"
#include "zce_os_adapt_time.h"
#include "zce_os_adapt_error.h"
#include "zce_os_adapt_file.h"
//读取文件
ssize_t zce::read(ZCE_HANDLE file_handle, void *buf, size_t count)
{
//WINDOWS下,长度无法突破32位的,参数限制了ReadFileEx也一样,大概WINDOWS认为... | 23.851724 | 100 | 0.596791 | sailzeng |
9abde0e1a533551f721424fa5fc2b5863565cf40 | 3,076 | hpp | C++ | include/imshowExtension.hpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | include/imshowExtension.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | include/imshowExtension.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #pragma once
#include "common.hpp"
#include "plot.hpp"
namespace cp
{
//normalize image and then cast to 8U and imshow. NORM_INF(32) scale 0-max
CP_EXPORT void imshowNormalize(std::string wname, cv::InputArray src, const int norm_type = cv::NORM_MINMAX);
//scaling ax+b, cast to 8U, and then imshow
CP_EXPORT void... | 53.964912 | 264 | 0.723992 | norishigefukushima |
9ac2befbec92d17e178d0f4b36cde20082d4b268 | 22,941 | cpp | C++ | src/game/server/tf/lfe_population_manager.cpp | bluedogz162/tf_coop_extended_custom | 0212744ebef4f74c4e0047320d9da7d8571a8ee0 | [
"Unlicense"
] | 4 | 2020-04-24T22:20:34.000Z | 2022-01-10T23:16:53.000Z | src/game/server/tf/lfe_population_manager.cpp | bluedogz162/tf_coop_extended_custom | 0212744ebef4f74c4e0047320d9da7d8571a8ee0 | [
"Unlicense"
] | 1 | 2020-05-01T19:13:25.000Z | 2020-05-02T07:01:45.000Z | src/game/server/tf/lfe_population_manager.cpp | bluedogz162/tf_coop_extended_custom | 0212744ebef4f74c4e0047320d9da7d8571a8ee0 | [
"Unlicense"
] | 3 | 2020-04-24T22:20:36.000Z | 2022-02-21T21:48:05.000Z | //============== Copyright LFE-TEAM Not All rights reserved. =================//
//
// Purpose: The system for handling npc population in horde.
//
//=============================================================================//
#include "cbase.h"
#include "lfe_population_manager.h"
#include "lfe_populator.h"
#includ... | 23.529231 | 131 | 0.604682 | bluedogz162 |
9ac36668ebf224af45f6581f291782de87fa1cf3 | 907 | cpp | C++ | ABC/ABC112/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC112/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC112/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <sstream>
//#include <string>
//#include <vector>
//#include <map>
//#include <queue>
//#include <algorithm>
//
//#ifdef _DEBUG
//#define DMP(x) cerr << #x << ": " << x << "\n"
//#else
//#define DMP(x) ((void)0)
//#endif
//
//const int MOD = 100000... | 16.796296 | 48 | 0.500551 | rajyan |
9ac6322841b57030d1ffefc3981f8aa763fe4557 | 604 | hpp | C++ | code/source/nodes/nodeeventreceiverproxy_we.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/nodes/nodeeventreceiverproxy_we.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/nodes/nodeeventreceiverproxy_we.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_NODES_NODEEVENTRECEIVERPROXY_WE_HPP
#define CLOVER_NODES_NODEEVENTRECEIVERPROXY_WE_HPP
#include "build.hpp"
#include "game/worldentity_handle.hpp"
#include "nodeeventreceiverproxy.hpp"
namespace clover {
namespace nodes {
class WeNodeEventReceiverProxy : public NodeEventReceiverProxy {
public:
WeNod... | 24.16 | 64 | 0.812914 | crafn |
9ac7237ca05e7e2e4a70b7a4ef8ce99427e70b55 | 706 | hpp | C++ | src/examples/countPages/countPagesXercesHandler.hpp | Ace7k3/wiki_xml_dump_xerces | d64cc24042902668380140a7349ca06b73702dfe | [
"MIT"
] | null | null | null | src/examples/countPages/countPagesXercesHandler.hpp | Ace7k3/wiki_xml_dump_xerces | d64cc24042902668380140a7349ca06b73702dfe | [
"MIT"
] | null | null | null | src/examples/countPages/countPagesXercesHandler.hpp | Ace7k3/wiki_xml_dump_xerces | d64cc24042902668380140a7349ca06b73702dfe | [
"MIT"
] | null | null | null | #pragma once
#include <stack>
#include <vector>
#include <functional>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/sax2/Attributes.hpp>
class CountPagesXercesHandler : public xercesc::DefaultHandler {
public:
inline CountPagesXercesHandler()
:_count(0)
{}
inline std::size_t count() const
... | 19.611111 | 140 | 0.705382 | Ace7k3 |
9acb80343745b42c4bb07dafb27a2d3583a520e1 | 1,074 | hpp | C++ | include/mizuiro/color/format/homogenous_ns/access/channel_max.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/color/format/homogenous_ns/access/channel_max.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/color/format/homogenous_ns/access/channel_max.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// 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 MIZUIRO_COLOR_FORMAT_HOMOGENOUS_NS_ACCESS_CHANNEL_MAX_HPP_INCLUDED
#define MIZUIRO_COLOR_FO... | 34.645161 | 83 | 0.773743 | cpreh |
9ad178998e9d7bddea98bf82d283cfd62859e2c3 | 434 | hpp | C++ | libs/audio/include/sge/audio/scalar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/audio/include/sge/audio/scalar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/audio/include/sge/audio/scalar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_AUDIO_SCALAR_HPP_INCLUDED
#define SGE_AUDIO_SCALAR_HPP_INCLUDED
namespace sge::audio
{... | 24.111111 | 78 | 0.721198 | cpreh |
9ad52b34ad0783975a3999c5c1685561b0fd81e5 | 9,656 | cpp | C++ | src/utils/MRMTransitionGroupPicker.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | 1 | 2018-03-06T14:12:09.000Z | 2018-03-06T14:12:09.000Z | src/utils/MRMTransitionGroupPicker.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/utils/MRMTransitionGroupPicker.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and ... | 36.996169 | 180 | 0.669635 | mrurik |
9ad530e8c61cd3c1e30ce8873c247cec6018247f | 224 | cpp | C++ | Simple++/Math/BasicComparable.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Math/BasicComparable.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Math/BasicComparable.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | #include "BasicComparable.h"
namespace Math {
namespace Compare {
Math::Compare::Value BasicComparable::compare( const BasicComparable & x, const BasicComparable & y ) {
return Math::Compare::Value::Equal;
}
}
}
| 18.666667 | 105 | 0.709821 | Oriode |
9ad5afe335bc55d7b951a5583a233c23e0705871 | 1,918 | hpp | C++ | source/Dream/Core/Dictionary.hpp | kurocha/dream | b2c7d94903e1e8c6bfb043d3b62234508687f435 | [
"MIT",
"Unlicense"
] | 1 | 2017-04-30T18:59:26.000Z | 2017-04-30T18:59:26.000Z | source/Dream/Core/Dictionary.hpp | kurocha/dream | b2c7d94903e1e8c6bfb043d3b62234508687f435 | [
"MIT",
"Unlicense"
] | null | null | null | source/Dream/Core/Dictionary.hpp | kurocha/dream | b2c7d94903e1e8c6bfb043d3b62234508687f435 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Core/Dictionary.h
// This file is part of the "Dream" project, and is released under the MIT license.
//
// Created by Samuel Williams on 22/12/08.
// Copyright (c) 2008 Samuel Williams. All rights reserved.
//
//
#ifndef _DREAM_CORE_DICTIONARY_H
#define _DREAM_CORE_DICTIONARY_H
#include "../Class.hpp"
#inc... | 20.189474 | 84 | 0.642336 | kurocha |
9ad990306a63baa4bd49cea67cea1fb856ce4358 | 3,821 | cpp | C++ | TopCoder/SRM/RollingDiceDivTwo.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | TopCoder/SRM/RollingDiceDivTwo.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | TopCoder/SRM/RollingDiceDivTwo.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// END CUT HERE
#line 5 "RollingDiceDivTwo.cpp"
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <bitset>
#include <deque>
#include <set>
#include <sstream>
using n... | 43.420455 | 316 | 0.601413 | vios-fish |
9add92b66c69ce97d207a2ef75fb688e284cf1cd | 336 | cpp | C++ | Medium/984_String_Without_AAA_OR_BBB.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/984_String_Without_AAA_OR_BBB.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/984_String_Without_AAA_OR_BBB.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class Solution {
public:
string strWithout3a3b(int A, int B) {
if(A == 0) return string(B, 'b');
if(B == 0) return string(A, 'a');
if(A == B) return "ab" + strWithout3a3b(A-1, B-1);
if(A > B) return "aab" + strWithout3a3b(A-2, B-1);
else return strWithout3a3b(A-1, B-2) +... | 33.6 | 60 | 0.520833 | ShehabMMohamed |
9ae2d2a93d3009f6349963a53676a439d288f7a1 | 966 | cpp | C++ | master/core/third/libtorrent/bindings/python/src/utility.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 32 | 2016-05-22T23:09:19.000Z | 2022-03-13T03:32:27.000Z | master/core/third/libtorrent/bindings/python/src/utility.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 2 | 2016-05-30T19:45:58.000Z | 2018-01-24T22:29:51.000Z | master/core/third/libtorrent/bindings/python/src/utility.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 17 | 2016-05-27T11:01:42.000Z | 2022-03-13T03:32:30.000Z | // Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <libtorrent/identify_client.hpp>
#include <libtorrent/bencode.hpp>
#include <boost/python.hpp... | 25.421053 | 72 | 0.723602 | importlib |
9af179cef0a5044d31324b068da1750c1dfc675b | 11,071 | cpp | C++ | xeon_version/src/shared_functions.cpp | Draxent/GameOfLife | bd7dacf1c2d8a591218f17348479318626101dfa | [
"Apache-2.0"
] | 2 | 2015-11-27T01:14:02.000Z | 2015-12-01T13:23:53.000Z | xeon_version/src/shared_functions.cpp | Draxent/GameOfLife | bd7dacf1c2d8a591218f17348479318626101dfa | [
"Apache-2.0"
] | null | null | null | xeon_version/src/shared_functions.cpp | Draxent/GameOfLife | bd7dacf1c2d8a591218f17348479318626101dfa | [
"Apache-2.0"
] | null | null | null | /**
* @file shared_functions.cpp
* @brief Implementation of some functions that are shared by all different development methodologies used in this application.
* @author Federico Conte (draxent)
*
* Copyright 2015 Federico Conte
* https://github.com/Draxent/GameOfLife
*
* Licensed under the Apache License, Ve... | 36.65894 | 175 | 0.661639 | Draxent |
9af1f94e0a3ed34c776977d3e4dcb238933dec3a | 21,751 | cpp | C++ | src/gui/Gui.cpp | beichendexiatian/InstanceFusion | cd48e3f477595a48d845ce01302f564b6b3fc6f6 | [
"Apache-2.0"
] | null | null | null | src/gui/Gui.cpp | beichendexiatian/InstanceFusion | cd48e3f477595a48d845ce01302f564b6b3fc6f6 | [
"Apache-2.0"
] | null | null | null | src/gui/Gui.cpp | beichendexiatian/InstanceFusion | cd48e3f477595a48d845ce01302f564b6b3fc6f6 | [
"Apache-2.0"
] | null | null | null | /*
* This file is part of SemanticFusion.
*
* Copyright (C) 2017 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is SemanticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the co... | 37.95986 | 162 | 0.688336 | beichendexiatian |
9af4379272c078c327799156deec4941a3abc3cb | 3,486 | hh | C++ | Contract/DB/AwaitableQuery.hh | decouple/common | b1798868ab03ff349dccfd3fef09331ec0a1f4d3 | [
"MIT"
] | null | null | null | Contract/DB/AwaitableQuery.hh | decouple/common | b1798868ab03ff349dccfd3fef09331ec0a1f4d3 | [
"MIT"
] | null | null | null | Contract/DB/AwaitableQuery.hh | decouple/common | b1798868ab03ff349dccfd3fef09331ec0a1f4d3 | [
"MIT"
] | null | null | null | <?hh // strict
namespace Decouple\Common\Contract\DB;
/**
* This software is maintained voluntarily under the MIT license.
* For more information, see <http://www.decouple.io/>
*/
use Decouple\Common\Contract\Buildable;
/**
* An awaitable query interface implemented by classes that are queryable asynchronously
*
... | 41.5 | 92 | 0.706827 | decouple |
9af5c007b6c7c2cc3f91e6d52c50e167dc930311 | 22,323 | cpp | C++ | rfal_st25tb.cpp | DiegoOst/RFAL | 4d050bf2084f1c89746f4ad4a51542c64d555193 | [
"Apache-2.0"
] | null | null | null | rfal_st25tb.cpp | DiegoOst/RFAL | 4d050bf2084f1c89746f4ad4a51542c64d555193 | [
"Apache-2.0"
] | null | null | null | rfal_st25tb.cpp | DiegoOst/RFAL | 4d050bf2084f1c89746f4ad4a51542c64d555193 | [
"Apache-2.0"
] | null | null | null |
/******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2>
*
* Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License");
* You may not use this file except in compliance with the License.
... | 43.17795 | 346 | 0.560857 | DiegoOst |
9af98a615cfbf0ee6e792a1299bf60ecec5e0c5c | 2,084 | cpp | C++ | LeetCode/DynamicProgramming/BestTimeToBuyAndSellStockii.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/DynamicProgramming/BestTimeToBuyAndSellStockii.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/DynamicProgramming/BestTimeToBuyAndSellStockii.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 122 Best time to Buy And Sell Stock ii
* Medium
* Shuo Feng
* 2021.11.10
*/
#include<iostream>
#include<vector>
using namespace std;
/*
* Solution 1: Dp
*/
class Solution {
public:
int maxProfit(vector<int>& prices) {
int days = prices.size();
// The maximum profit we can g... | 22.901099 | 70 | 0.458733 | a4org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.