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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57121d0a35995fa55a197a9d74bedae40fc22706 | 65,051 | cpp | C++ | ToolKit/CommandBars/XTPOffice2007Theme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/CommandBars/XTPOffice2007Theme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/CommandBars/XTPOffice2007Theme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPOffice2007Theme.cpp : implementation of the CXTPOffice2007Theme class.
//
// This file is a part of the XTREME COMMANDBARS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEV... | 37.129566 | 237 | 0.722449 | 11Zero |
57146c208bcc5eb9197cd457f651b034f0c145d7 | 379 | cpp | C++ | formatters.cpp | vovkasm/input-source-switcher | c5bab3de716db5e3dae3703ed3b72f2bf1cd51d3 | [
"MIT"
] | 120 | 2015-01-01T12:28:42.000Z | 2022-03-24T06:44:49.000Z | formatters.cpp | vovkasm/input-source-switcher | c5bab3de716db5e3dae3703ed3b72f2bf1cd51d3 | [
"MIT"
] | 8 | 2015-04-04T07:40:39.000Z | 2021-06-10T14:34:51.000Z | formatters.cpp | vovkasm/input-source-switcher | c5bab3de716db5e3dae3703ed3b72f2bf1cd51d3 | [
"MIT"
] | 10 | 2017-05-14T05:18:52.000Z | 2022-01-05T00:03:11.000Z | #include "formatters.h"
#include "utils.h"
#include <iostream>
std::ostream&
InputSourceFormatter::write(std::ostream& os) const {
CFStringRef value = (CFStringRef)TISGetInputSourceProperty(_is, kTISPropertyInputSourceID);
return os << stringFromCFString(value);
}
std::ostream& operator<<(std::ostream& os, co... | 27.071429 | 95 | 0.741425 | vovkasm |
57221477cf4421cbb70c283c7392b2d21d6f627d | 16,510 | cpp | C++ | kernel/user_krnl/scatter_krnl/src/hls/scatter.cpp | WenqiJiang/FPGA-ANNS-with_network | 8586986e99593d8099ab3fb3ee6b919ffd480253 | [
"zlib-acknowledgement"
] | 86 | 2020-11-11T13:10:50.000Z | 2022-03-30T15:41:02.000Z | kernel/user_krnl/scatter_krnl/src/hls/scatter.cpp | pouya-haghi/Vitis_with_100Gbps_TCP-IP | fda50cf01e6ab6eba376c7cbf0b5ccc73deb9136 | [
"zlib-acknowledgement"
] | 4 | 2020-11-20T16:40:33.000Z | 2022-02-23T09:58:37.000Z | kernel/user_krnl/scatter_krnl/src/hls/scatter.cpp | pouya-haghi/Vitis_with_100Gbps_TCP-IP | fda50cf01e6ab6eba376c7cbf0b5ccc73deb9136 | [
"zlib-acknowledgement"
] | 33 | 2020-11-23T12:41:07.000Z | 2022-03-30T13:42:47.000Z | /************************************************
Copyright (c) 2018, Systems Group, ETH Zurich.
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 c... | 27.562604 | 101 | 0.711448 | WenqiJiang |
5723fb1252c32683cfecff1963da1c9415daf650 | 708 | cpp | C++ | beluga/base/CountDownLatch.cpp | ZhangSenyan/beluga | 1a44f062e82d0edd6bace9ab5ff0c5745e99d881 | [
"MIT"
] | 1 | 2019-07-09T12:36:24.000Z | 2019-07-09T12:36:24.000Z | beluga/base/CountDownLatch.cpp | SenyanZhang/HCCServer | 1a44f062e82d0edd6bace9ab5ff0c5745e99d881 | [
"MIT"
] | null | null | null | beluga/base/CountDownLatch.cpp | SenyanZhang/HCCServer | 1a44f062e82d0edd6bace9ab5ff0c5745e99d881 | [
"MIT"
] | null | null | null | /**
* @author Zhang Senyan
* Date: 2019-06-10
*/
#include "beluga/base/CountDownLatch.h"
// 构造函数
CountDownLatch::CountDownLatch(int count)
: _mutex(),
_condition(),
_count(count)
{
}
/**
* Function: 每来一个线程 count值 减 1
* 当所有线程都到达时,通知所有线程开始运行
*/
void CountDownLatch::countDown()
{
std::unique_lock<s... | 14.16 | 43 | 0.574859 | ZhangSenyan |
5725436faf16dac191929c2b7ec0107303fb71be | 5,484 | cpp | C++ | libs/tweedledum/tests/Passes/Optimization/gate_cancellation.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 7 | 2020-03-13T17:08:01.000Z | 2021-11-17T11:43:58.000Z | libs/tweedledum/tests/Passes/Optimization/gate_cancellation.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 2 | 2021-03-16T12:05:50.000Z | 2021-03-16T13:06:47.000Z | libs/tweedledum/tests/Passes/Optimization/gate_cancellation.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 8 | 2020-02-13T18:05:55.000Z | 2021-03-16T11:12:33.000Z | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#include "tweedledum/Passes/Optim... | 33.851852 | 80 | 0.586798 | fmozafari |
5729580abb93f63233c9e63c68d484269e474e4e | 464 | cpp | C++ | LeetCodeSolutions/LeetCode_0452.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | LeetCodeSolutions/LeetCode_0452.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | LeetCodeSolutions/LeetCode_0452.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | bool cmp(const vector<int> &a, const vector<int> & b){
return a[1] < b[1];
}
class Solution {
public:
int findMinArrowShots(vector<vector<int>>& points) {
if (points.size() == 0) return 0;
sort(points.begin(), points.end(), cmp);
int cnt = 1;
int r = points[0][1];
for(au... | 23.2 | 56 | 0.446121 | lih627 |
572b98f6c9bab8b9db04bfc9b6d4fe24433bf717 | 342 | hpp | C++ | bsengine/src/bstorm/lua_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/lua_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/lua_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <luajit/lua.hpp>
namespace bstorm
{
void* GetPointerFromLuaRegistry(lua_State* L, const char* key);
void SetPointerToLuaRegistry(lua_State* L, const char* key, void* p);
// serialize stack top chunk. this function doesn't remove stack top.
void SerializeChunk(lua_State* L, std... | 26.307692 | 69 | 0.763158 | At-sushi |
5732f9d033d5694dc42d03b439807ec6a7bcdc4c | 4,041 | cpp | C++ | system/src/active_object.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | system/src/active_object.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | system/src/active_object.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | /**
******************************************************************************
Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwa... | 25.738854 | 99 | 0.563722 | zsoltmazlo |
573507ee5fa5d94dabcf72c51e4056ab27fc592c | 5,233 | hpp | C++ | ct_core/include/ct/external/cppad/cg/atomic_fun.hpp | vklemm/control-toolbox | f5f8cf9331c0aecd721ff6296154e2a55c72f679 | [
"BSD-2-Clause"
] | 1 | 2019-12-01T14:45:18.000Z | 2019-12-01T14:45:18.000Z | ct_core/include/external/cppad/cg/atomic_fun.hpp | ADVRHumanoids/ct | 774ad978c032fda0ef3c2eed0dc3f25f829df7f8 | [
"Apache-2.0"
] | null | null | null | ct_core/include/external/cppad/cg/atomic_fun.hpp | ADVRHumanoids/ct | 774ad978c032fda0ef3c2eed0dc3f25f829df7f8 | [
"Apache-2.0"
] | 1 | 2022-02-03T06:28:39.000Z | 2022-02-03T06:28:39.000Z | #ifndef CPPAD_CG_ATOMIC_FUN_INCLUDED
#define CPPAD_CG_ATOMIC_FUN_INCLUDED
/* --------------------------------------------------------------------------
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
* Copyright (C) 2013 Ciengis
*
* CppADCodeGen is distributed under multiple licens... | 35.598639 | 81 | 0.501624 | vklemm |
57406487b1cc9c7e646db11d66cd573c0fd93905 | 1,742 | cpp | C++ | Day_73.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | 8 | 2021-02-07T16:31:28.000Z | 2021-06-11T18:53:23.000Z | Day_73.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | null | null | null | Day_73.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | 1 | 2021-05-25T17:17:58.000Z | 2021-05-25T17:17:58.000Z | /*
DAY 73 : Merge Sort for Doubly Linked List.
https://www.geeksforgeeks.org/merge-sort-for-doubly-linked-list/
QUESTION : Given Pointer/Reference to the head of a doubly linked list of N nodes,
the task is to Sort the given doubly linked list using Merge Sort in both non-decreasing
and non-increasing order.
... | 23.226667 | 90 | 0.56946 | iamakkkhil |
57417dc3d97cc4b3c0b4153984d67c0eae47081f | 1,465 | hpp | C++ | include/cppcoro/detail/get_awaiter.hpp | richard-vock/cppcoro | 8933f03ff18b6a004a3ff2a271f4f74fafb29a96 | [
"MIT"
] | 2,324 | 2017-04-20T00:53:31.000Z | 2022-03-31T08:30:35.000Z | include/cppcoro/detail/get_awaiter.hpp | AlexCr4ckPentest/cppcoro | 4e6b44eaec34b8a7fb82357515ece84d64381a50 | [
"MIT"
] | 165 | 2017-04-10T21:40:51.000Z | 2022-02-25T15:45:38.000Z | include/cppcoro/detail/get_awaiter.hpp | AlexCr4ckPentest/cppcoro | 4e6b44eaec34b8a7fb82357515ece84d64381a50 | [
"MIT"
] | 325 | 2017-05-04T18:48:21.000Z | 2022-03-28T19:29:54.000Z | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_DETAIL_GET_AWAITER_HPP_INCLUDED
#define CPPCORO_DETAIL_... | 29.3 | 79 | 0.634812 | richard-vock |
57419cd4bacc108d7d3b42a8794cf17af04b80a4 | 179 | cpp | C++ | cpp/451-460/Minimum Moves to Equal Array Elements.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/451-460/Minimum Moves to Equal Array Elements.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/451-460/Minimum Moves to Equal Array Elements.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
int minMoves(vector<int>& nums) {
return accumulate(begin(nums), end(nums), 0) - nums.size() * *min_element(begin(nums), end(nums));
}
};
| 25.571429 | 106 | 0.620112 | KaiyuWei |
574233ee48c1636f6f89996586f890c722689385 | 647 | cpp | C++ | tests/thread_pool_options.t.cpp | alfishe/thread-pool-cpp | ddf4468b056c686917082f0570a7c8c926231214 | [
"MIT"
] | 6 | 2018-10-05T07:38:51.000Z | 2021-02-21T15:08:52.000Z | tests/thread_pool_options.t.cpp | alfishe/thread-pool-cpp | ddf4468b056c686917082f0570a7c8c926231214 | [
"MIT"
] | null | null | null | tests/thread_pool_options.t.cpp | alfishe/thread-pool-cpp | ddf4468b056c686917082f0570a7c8c926231214 | [
"MIT"
] | 2 | 2020-07-01T16:08:44.000Z | 2021-02-10T19:35:11.000Z | #include <gtest/gtest.h>
#include <thread_pool/thread_pool_options.hpp>
#include <thread>
TEST(ThreadPoolOptions, ctor)
{
tp::ThreadPoolOptions options;
ASSERT_EQ(1024, options.queueSize());
ASSERT_EQ(std::max<size_t>(1u, std::thread::hardware_concurrency()),
options.threadCount());
}
TES... | 20.870968 | 72 | 0.692427 | alfishe |
57484dc13d9249df4f69fbafd93f82cd8595f57c | 682 | cpp | C++ | com/example/use_tmap.cpp | onecoolx/xoc | bf8a18cb19826a9f210abf68de21bc684e3e35bf | [
"BSD-3-Clause"
] | 111 | 2015-08-21T01:53:55.000Z | 2022-03-07T12:24:30.000Z | src/com/example/use_tmap.cpp | onecoolx/xocfe | d021e522184ca921d9a19d56a8756f223385dbb7 | [
"BSD-3-Clause"
] | 7 | 2015-01-27T03:16:48.000Z | 2022-01-01T09:22:24.000Z | src/com/example/use_tmap.cpp | onecoolx/xocfe | d021e522184ca921d9a19d56a8756f223385dbb7 | [
"BSD-3-Clause"
] | 17 | 2015-08-06T03:10:28.000Z | 2021-03-28T11:17:51.000Z | #include "stdio.h"
#include "xcominc.h"
int main()
{
TMap<int, char const*> map;
map.set(123, "Mike");
map.set(234, "Charlie");
map.set(345, "Tom");
printf("\nIterate map via string pointer:\n");
TMapIter<int, char const*> iter;
char const* str;
for (int v = map.get_first(iter, &str);
... | 24.357143 | 68 | 0.546921 | onecoolx |
574bcd3a19afd6ee0d949b1c3f0a3e5f56101dcc | 15,224 | cpp | C++ | src/test-kl-term.cpp | boennecd/VAJointSurv | 3c777ec89f7efb92dbfbfa0f751b3954bcfbfdc2 | [
"MIT"
] | null | null | null | src/test-kl-term.cpp | boennecd/VAJointSurv | 3c777ec89f7efb92dbfbfa0f751b3954bcfbfdc2 | [
"MIT"
] | 1 | 2021-11-17T08:12:46.000Z | 2021-11-17T08:12:46.000Z | src/test-kl-term.cpp | boennecd/VAJointSurv | 3c777ec89f7efb92dbfbfa0f751b3954bcfbfdc2 | [
"MIT"
] | null | null | null | #include "testthat-wrapper.h"
#include "kl-term.h"
#include <memory.h>
#include "log-cholesky.h"
namespace {
/*
set.seed(1)
n_shared <- 2L
n_shared_surv <- 3L
n_vars <- n_shared + n_shared_surv
Omega <- drop(rWishart(1, n_vars, diag(n_vars)))
Xi <- drop(rWishart(1, n_shared_surv, diag(n_shared_surv)))
Psi <- d... | 42.52514 | 501 | 0.630452 | boennecd |
57530570e040e9271cd97c63f84eb65ee98db4b1 | 68,104 | hpp | C++ | src/gfcc/contrib/hf_tamm_common.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null | src/gfcc/contrib/hf_tamm_common.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null | src/gfcc/contrib/hf_tamm_common.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null |
#ifndef TAMM_METHODS_HF_TAMM_COMMON_HPP_
#define TAMM_METHODS_HF_TAMM_COMMON_HPP_
#include "scf_guess.hpp"
//TODO: UHF,ROHF,diis,3c,dft
template<typename TensorType>
void diis(ExecutionContext& ec, TiledIndexSpace& tAO, Tensor<TensorType> D, Tensor<TensorType> F, Tensor<TensorType> err_mat,
int iter, int... | 40.683393 | 169 | 0.527194 | smferdous1 |
575bd60daeb03316072ee5c5d48fe88600650dd9 | 3,980 | cpp | C++ | include/hydro/vm/opcodes.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/vm/opcodes.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/vm/opcodes.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 18.256881 | 50 | 0.651256 | hydraate |
575cdf4e598f7fc44d408de41714626774f44a4a | 5,615 | cpp | C++ | test/burst/functional/each.cpp | izvolov/thrust | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 85 | 2015-11-25T14:05:42.000Z | 2021-11-15T11:47:19.000Z | test/burst/functional/each.cpp | izvolov/burst | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 147 | 2015-01-11T08:36:53.000Z | 2021-11-04T09:03:36.000Z | test/burst/functional/each.cpp | izvolov/thrust | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 6 | 2016-06-02T17:28:26.000Z | 2020-04-05T11:16:16.000Z | #include <burst/algorithm/sum.hpp>
#include <burst/functional/each.hpp>
#include <burst/functional/only.hpp>
#include <burst/integer/intlog2.hpp>
#include <burst/tuple/make_tuple.hpp>
#include <utility/caller_dummies.hpp>
#include <utility/io/tuple.hpp>
#include <doctest/doctest.h>
#include <functional>
#include <str... | 27.257282 | 98 | 0.56919 | izvolov |
575fa2d9d35b946fe7d857ab35c666577962fdfa | 1,204 | cc | C++ | test/GridTest.cc | batman-nair/IRCIS | 9072f79cc8887ebf3b35cd4e977bf79686a94760 | [
"MIT"
] | 104 | 2020-02-13T19:12:30.000Z | 2022-01-29T21:33:35.000Z | test/GridTest.cc | batman-nair/IRCIS | 9072f79cc8887ebf3b35cd4e977bf79686a94760 | [
"MIT"
] | 6 | 2020-02-22T06:29:51.000Z | 2020-06-04T13:18:48.000Z | test/GridTest.cc | batman-nair/IRCIS | 9072f79cc8887ebf3b35cd4e977bf79686a94760 | [
"MIT"
] | 3 | 2020-02-16T11:58:26.000Z | 2020-10-15T02:38:39.000Z | #include <gtest/gtest.h>
#include <Grid.h>
namespace Ircis {
class GridTest : public ::testing::Test {
protected:
void SetUp() override {
}
// void TearDown() override {}
Grid file_test_{"hello_world.txt"};
};
TEST_F(GridTest, NullTest) {
try {
Grid test("nonexistent_text_file.txt... | 27.363636 | 74 | 0.615449 | batman-nair |
576073545174c1e6ecb804ae99c6a9bda1337799 | 24,600 | cpp | C++ | src/IDTF/Helpers/ConverterHelpers.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/IDTF/Helpers/ConverterHelpers.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/IDTF/Helpers/ConverterHelpers.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 1999 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 29.74607 | 126 | 0.585976 | alemuntoni |
5762948219dec61ac231c532bd1f7b2bb317f6bd | 4,600 | cpp | C++ | examples/google-code-jam/morbidel/qualify_C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/morbidel/qualify_C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/morbidel/qualify_C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | /*
* Google Code Jam 2017
* Qualification Round - Problem C - Bathroom Stalls
*/
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <iostream>
#include <sstream>
#include <functional>
#include <deque>
#include <cstdio>
... | 21.004566 | 122 | 0.481957 | rbenic-fer |
5767011d207c350e387968f3a0a2de6438c45c48 | 76 | cc | C++ | Ex02_Factory_Method/src/3_factory_method_advanced/java.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | 64 | 2015-01-18T17:53:56.000Z | 2022-03-06T11:37:25.000Z | Ex02_Factory_Method/src/3_factory_method_advanced/java.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | null | null | null | Ex02_Factory_Method/src/3_factory_method_advanced/java.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | 24 | 2015-03-22T02:00:10.000Z | 2022-01-18T13:17:26.000Z | #include "java.h"
#include "factory.h"
REGISTER_CLASS("Java", Java);
| 12.666667 | 30 | 0.644737 | kks32 |
5767211b54e310e51da10b711ab450bd1abd8947 | 6,769 | cpp | C++ | cpp/src/datacentric/dc/platform/data_source/mongo/mongo_data_source_base_data.cpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | 1 | 2019-08-08T01:27:47.000Z | 2019-08-08T01:27:47.000Z | cpp/src/datacentric/dc/platform/data_source/mongo/mongo_data_source_base_data.cpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/platform/data_source/mongo/mongo_data_source_base_data.cpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric 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 agreed to ... | 43.670968 | 167 | 0.635692 | datacentricorg |
5771fd768792e98746f4aa037bb9ee4f86e05fe9 | 334 | cpp | C++ | resource/cpp/primer-ppt/class3_code/14_this指针3.cpp | yuenshome/yuenshome.github.io | 5d9c4f27fc58d62dde1eb90b49affff51417e22a | [
"MIT"
] | 73 | 2018-11-29T08:15:58.000Z | 2022-02-14T08:45:24.000Z | resource/cpp/primer-ppt/class3_code/14_this指针3.cpp | yuenshome/yuenshome.github.io | 5d9c4f27fc58d62dde1eb90b49affff51417e22a | [
"MIT"
] | 136 | 2017-11-04T07:51:31.000Z | 2021-12-24T11:10:52.000Z | resource/cpp/primer-ppt/class3_code/14_this指针3.cpp | yuenshome/yuenshome.github.io | 5d9c4f27fc58d62dde1eb90b49affff51417e22a | [
"MIT"
] | 15 | 2019-02-28T11:51:36.000Z | 2022-02-14T08:45:26.000Z | #include <iostream>
#include <string.h>
using namespace std;
class A {
public:
A(int num) { this->num = num; }
A& add(int n) { num += n; return *this; }
int get_num()const { return num; }
private:
int num;
};
int main() {
A a1(1);
a1.add(2).add(3).add(4).add(5);
cout << a1.get_num() << endl; //15
... | 19.647059 | 43 | 0.565868 | yuenshome |
57765801a2295b3a3434e8c40cd7154492aa22e7 | 431 | cpp | C++ | products/ROCKET-STATS/rstats_modules/generic_random_numbers/src/UIRStatsGRN.cpp | cbtek/RStats2017 | e383416ee52784be6486b9a2e5f517fbfaf8a416 | [
"MIT"
] | null | null | null | products/ROCKET-STATS/rstats_modules/generic_random_numbers/src/UIRStatsGRN.cpp | cbtek/RStats2017 | e383416ee52784be6486b9a2e5f517fbfaf8a416 | [
"MIT"
] | 3 | 2017-07-12T17:10:52.000Z | 2017-09-21T19:06:59.000Z | products/ROCKET-STATS/rstats_modules/generic_random_numbers/src/UIRStatsGRN.cpp | cbtek/RStats2017 | e383416ee52784be6486b9a2e5f517fbfaf8a416 | [
"MIT"
] | null | null | null | /*
UIRStatsGRN.cpp
*/
//UIRStatsGRN.cpp generated by cbtek on 06-03-2017 at 06:54:36 PM
#include "UIRStatsGRN.h"
#include "ui_UIRStatsGRN.h"
namespace cbtek {
namespace rocketstats {
namespace modules {
namespace grn {
UIRStatsGRN::UIRStatsGRN(QWidget *parent) :
QMainWindow(parent),
m_ui(new Ui_UI... | 14.366667 | 65 | 0.693735 | cbtek |
577f5458af6a0232d234a26b6030cc1ea9fa26ff | 3,890 | cc | C++ | Encoding.cc | Ratismal/phosg | df1169fcd67fa854d2d136f0e53565f4d7a827b0 | [
"MIT"
] | null | null | null | Encoding.cc | Ratismal/phosg | df1169fcd67fa854d2d136f0e53565f4d7a827b0 | [
"MIT"
] | null | null | null | Encoding.cc | Ratismal/phosg | df1169fcd67fa854d2d136f0e53565f4d7a827b0 | [
"MIT"
] | null | null | null | #include "Encoding.hh"
#include <stdexcept>
using namespace std;
const char* DEFAULT_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const char* URLSAFE_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
string base64_encode(const void* vdata, size_t size,... | 32.689076 | 98 | 0.604113 | Ratismal |
578399706fdcc3bae08c4743eaf4c97f412795de | 1,811 | hpp | C++ | ql/experimental/models/all.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 4 | 2016-03-28T15:05:23.000Z | 2020-02-17T23:05:57.000Z | ql/experimental/models/all.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | ql/experimental/models/all.hpp | pcaspers/quantlib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 10 | 2015-01-26T14:50:24.000Z | 2015-10-23T07:41:30.000Z | /* This file is automatically generated; do not edit. */
/* Add the files to be included into Makefile.am instead. */
#include <ql/experimental/models/adjusterhelper.hpp>
#include <ql/experimental/models/betaeta.hpp>
#include <ql/experimental/models/betaetacore.hpp>
#include <ql/experimental/models/betaetaswaption... | 51.742857 | 75 | 0.829376 | universe1987 |
5788d7682f790720eefff879dc05cee774b6d34c | 2,109 | hpp | C++ | algo/hash.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 41 | 2019-09-24T02:17:34.000Z | 2022-01-18T03:14:46.000Z | algo/hash.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 2 | 2019-11-04T09:01:40.000Z | 2020-06-23T03:03:38.000Z | algo/hash.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 8 | 2019-09-24T02:17:35.000Z | 2021-09-11T00:21:03.000Z | /* 模块:hash
* 类型:函数单体
* 功能:得到一个对象的 hash 值
* 用法:
* TODO ===========================================================
*
* 注意:
* - 不同字节数的类型即使值相同也会具有不同的 hash 值
* - hash(u08('a')) != hash(u16('a'))
*/
#ifndef xpack_algo_hash
#define xpack_algo_hash
#pragma push_macro("xuser")
#undef xuser
#define xuser mixc::algo_... | 26.3625 | 103 | 0.521574 | Better-Idea |
c232948cea0f446dae3856388e8ee3071b0cb546 | 692 | cc | C++ | lib/tonic/dart_sticky_error.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | lib/tonic/dart_sticky_error.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | lib/tonic/dart_sticky_error.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "lib/tonic/dart_sticky_error.h"
namespace tonic {
bool DartStickyError::MaybeSet(Dart_Handle result) {
if (!Dart_IsError(result)) {
// Not... | 23.066667 | 73 | 0.713873 | bleonard252 |
c23479eea22d6a2a9a691b5a11f0cac9329f1207 | 10,382 | cpp | C++ | Blizzlike/Trinity/Scripts/Dungeons/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/Dungeons/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/Dungeons/FrozenHalls/ForgeOfSouls/forge_of_souls.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
*
* 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 2 of the License, or (at your
* option) any later ve... | 30.445748 | 122 | 0.518108 | 499453466 |
c236e0243ae7eea0c01dfe5f7149d82859c663e1 | 16,217 | cpp | C++ | AIPDebug/sql/sqldesktop.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/sql/sqldesktop.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/sql/sqldesktop.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | #include "sqldesktop.h"
#include <QApplication>
SqlDesktop::SqlDesktop(QWidget *parent) : QWidget(parent)
{
initUI();
initDir();
initSql();
}
SqlDesktop::~SqlDesktop()
{
thread->quit();
thread->wait();
}
void SqlDesktop::initUI()
{
initLayout();
initSqlSignOut();
initSqlDisplay();
... | 29.97597 | 99 | 0.608867 | Bluce-Song |
c23791e0e269ff8e30743f53cc0e645a359aa687 | 2,936 | cpp | C++ | storage/driver.azure/src/logging_windows.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 1 | 2022-03-06T09:23:56.000Z | 2022-03-06T09:23:56.000Z | storage/driver.azure/src/logging_windows.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 3 | 2021-04-23T18:12:20.000Z | 2021-04-23T18:12:47.000Z | storage/driver.azure/src/logging_windows.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | null | null | null | // -----------------------------------------------------------------------------------------
// <copyright file="logging_windows.cpp" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | 31.913043 | 126 | 0.665531 | gamunu |
c237cf9da89d5b5527a68a0f88613f7206dbdd6f | 26,423 | cpp | C++ | bot/src/cpp/navigation/WaypointNavMethod.cpp | Bots-United/whichbot | c5db2a6cc3f90930139503b344074376a9cdaabb | [
"BSD-2-Clause"
] | null | null | null | bot/src/cpp/navigation/WaypointNavMethod.cpp | Bots-United/whichbot | c5db2a6cc3f90930139503b344074376a9cdaabb | [
"BSD-2-Clause"
] | null | null | null | bot/src/cpp/navigation/WaypointNavMethod.cpp | Bots-United/whichbot | c5db2a6cc3f90930139503b344074376a9cdaabb | [
"BSD-2-Clause"
] | 1 | 2020-04-06T02:02:28.000Z | 2020-04-06T02:02:28.000Z | //
// $Id: WaypointNavMethod.cpp,v 1.8 2005/12/14 19:25:39 clamatius Exp $
// Copyright (c) 2003, WhichBot Project
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | 33.02875 | 236 | 0.643341 | Bots-United |
c23a8c54e3aa47c199b3edd44eb5907605b86c1e | 5,662 | cpp | C++ | lib/helion/ast.cpp | nickwanninger/helion | 5821af2893b77c21293779c93e34aa73fdb25846 | [
"MIT"
] | 1 | 2019-06-11T06:49:15.000Z | 2019-06-11T06:49:15.000Z | lib/helion/ast.cpp | nickwanninger/helion | 5821af2893b77c21293779c93e34aa73fdb25846 | [
"MIT"
] | null | null | null | lib/helion/ast.cpp | nickwanninger/helion | 5821af2893b77c21293779c93e34aa73fdb25846 | [
"MIT"
] | 1 | 2019-06-10T16:48:55.000Z | 2019-06-10T16:48:55.000Z | // [License]
// MIT - See LICENSE.md file in the package.
#include <cxxabi.h>
#include <helion/ast.h>
#include <helion/pstate.h>
#include <atomic>
using namespace helion;
using namespace helion::ast;
text ast::module::str(int depth) {
text s;
for (auto d : typedefs) {
s += d->str(0);
s += "\n";
}
... | 14.084577 | 66 | 0.423878 | nickwanninger |
c23ea5ec79839db0b76773914e28a1b08b195e19 | 3,498 | cpp | C++ | source/laplace/render/r_context.cpp | ogryzko/laplace | be63caa0c6d1c4fceab02ab5b41b6d307ef7baaf | [
"MIT"
] | 3 | 2021-05-17T21:15:28.000Z | 2021-09-06T23:01:52.000Z | source/laplace/render/r_context.cpp | ogryzko/laplace | be63caa0c6d1c4fceab02ab5b41b6d307ef7baaf | [
"MIT"
] | 33 | 2021-10-20T10:47:07.000Z | 2022-02-26T02:24:20.000Z | source/laplace/render/r_context.cpp | automainint/laplace | 66956df506918d48d79527e524ff606bb197d8af | [
"MIT"
] | null | null | null | /* laplace/render/r_context.cpp
*
* Copyright (c) 2021 Mitya Selivanov
*
* This file is part of the Laplace project.
*
* Laplace is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
*... | 27.984 | 70 | 0.634648 | ogryzko |
c244d0764ec49e5e6f436851fb429e5726f2ecd4 | 2,293 | cpp | C++ | non_convex_cuda/Common/family.cpp | dongdong12311/Non-convex-Risk-Parity- | 2cc254de0aa52493e062db94a5671307092f284a | [
"MIT"
] | null | null | null | non_convex_cuda/Common/family.cpp | dongdong12311/Non-convex-Risk-Parity- | 2cc254de0aa52493e062db94a5671307092f284a | [
"MIT"
] | null | null | null | non_convex_cuda/Common/family.cpp | dongdong12311/Non-convex-Risk-Parity- | 2cc254de0aa52493e062db94a5671307092f284a | [
"MIT"
] | null | null | null | #include"family.h"
#include"MultiScaleTools.h"
#include<stdio.h>
#include<iostream>
#include<stdlib.h>
Family::Family(std::vector<int> &dim_,std::vector<double> &mu_,int nlayers):
dim(dim_),mu(mu_)
{
this->totalnum = 1;
for (int i = 0 ; i < dim.size() ; ++i){
this->totalnum *= dim[i];
}
... | 31.847222 | 97 | 0.590493 | dongdong12311 |
c24746b5dca1fa77f117e4a1204bc877dfb5430d | 507 | cpp | C++ | BOJ_백준/10025 게으른 백곰 (슬라이딩 윈도우).cpp | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 2 | 2020-12-30T03:35:51.000Z | 2021-02-28T20:39:09.000Z | BOJ_백준/10025 게으른 백곰 (슬라이딩 윈도우).cpp | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 1 | 2020-12-08T08:48:40.000Z | 2021-04-09T04:58:57.000Z | BOJ_백준/10025 게으른 백곰 (슬라이딩 윈도우).cpp | woorimlee/Algorithm-Repository | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int arr[1000001] = { 0, };
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(NULL);
int N, K, g, x;
cin >> N >> K;
for (int i = 0; i < N; i++) {
cin >> g >> x;
arr[x] = g;
}
K = 2 * K + 1;
int ans = 0, sum = 0;
for (int i ... | 16.354839 | 40 | 0.39645 | woorimlee |
c24b508ee7d4abd2478ed42db14ea2e82110be0e | 3,707 | hpp | C++ | addons/modules/includes/moduleActivationAttributes.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/modules/includes/moduleActivationAttributes.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/modules/includes/moduleActivationAttributes.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z |
class GVAR(activationSettingsSubCategory): GVAR(moduleSubCategory) {
displayName = CSTRING(Attributes_activationSettingsSubCategory);
property = QGVAR(activationSettingsSubCategory);
};
class GVAR(activationMode): Default {
displayName = CSTRING(Attributes_activationMode);
tooltip = CSTRING(Attributes... | 40.736264 | 159 | 0.753439 | Krzyciu |
c2504519bf80afe8eeabb869b9f306c703b8e401 | 8,469 | cpp | C++ | lib/ut_content_codec.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | null | null | null | lib/ut_content_codec.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | null | null | null | lib/ut_content_codec.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | 1 | 2019-09-06T02:07:22.000Z | 2019-09-06T02:07:22.000Z | #include "fs123/content_codec.hpp"
#include "fs123/acfd.hpp"
#include "fs123/sharedkeydir.hpp"
#include <core123/sew.hpp>
#include <core123/autoclosers.hpp>
#include <core123/exnest.hpp>
#include <core123/strutils.hpp>
#include <cassert>
#include <functional>
#include <iostream>
using namespace core123;
static std::s... | 42.989848 | 144 | 0.641634 | mheily |
c251ad3d91af6bcb12018fa938354462eb5b1d5a | 1,492 | cpp | C++ | assignment4/main.cpp | connorramsden/game-architecture | 52a1a7bedad8ccc2c73cd43c14fc8165f608b2ce | [
"MIT"
] | null | null | null | assignment4/main.cpp | connorramsden/game-architecture | 52a1a7bedad8ccc2c73cd43c14fc8165f608b2ce | [
"MIT"
] | null | null | null | assignment4/main.cpp | connorramsden/game-architecture | 52a1a7bedad8ccc2c73cd43c14fc8165f608b2ce | [
"MIT"
] | null | null | null | /*********************************************************************
** Author: Connor Ramsden **
** Class: EGP-310-02 **
** Assignment: Assignment 04 **
** Certification of Authenticity: **
** I certify that this assignment is entirely my own work. **
** Assignment 04 Auth... | 29.254902 | 104 | 0.636729 | connorramsden |
c2521d12bdb8fd9b269635c2e8c1062c19b1df65 | 2,813 | cpp | C++ | src/render/circle/renderCircle.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | 11 | 2021-11-29T10:32:29.000Z | 2022-02-13T12:11:26.000Z | src/render/circle/renderCircle.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | src/render/circle/renderCircle.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | #pragma once
#include "../../util/util.cpp"
#include "../common/canvasContext.cpp"
#include "../common/color.cpp"
#include "../common/coordinateSpace.cpp"
#include "../common/glUtil.cpp"
#include <emscripten.h>
struct LayoutedCircle
{
CoordinateSpace coordinateSpace;
float x, y;
float size;
Color colo... | 31.255556 | 95 | 0.646285 | ilidemi |
c254c1cda30211dcf84c866ed314dfcfbe6f7701 | 617 | hpp | C++ | include/httpserver/HttpServer.hpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 8 | 2019-06-10T19:44:48.000Z | 2021-06-10T23:03:24.000Z | include/httpserver/HttpServer.hpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 10 | 2019-05-15T21:01:54.000Z | 2021-01-16T23:08:53.000Z | include/httpserver/HttpServer.hpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 2 | 2021-09-17T08:20:07.000Z | 2022-03-29T01:17:07.000Z | #pragma once
#include <WString.h>
#include <Client.h>
#include <functional>
#include "HttpMethod.hpp"
#include "ServerHandler.hpp"
class HttpServer {
public:
~HttpServer();
void handleClient(Client& client);
void on(HttpMethod method, const String& path, ServerHandler::THandlerFunction fn);
void send... | 25.708333 | 87 | 0.730956 | aetas |
c26093993f9d174a9d7cc03b7606566b54e979d4 | 1,656 | hpp | C++ | fon9/io/win/IocpTcpServer.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/io/win/IocpTcpServer.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/io/win/IocpTcpServer.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | /// \file fon9/io/win/IocpTcpServer.hpp
/// \author fonwinz@gmail.com
#ifndef __fon9_io_win_IocpTcpServer_hpp__
#define __fon9_io_win_IocpTcpServer_hpp__
#include "fon9/io/win/IocpSocket.hpp"
#include "fon9/io/TcpServerBase.hpp"
namespace fon9 { namespace io {
class IocpTcpListener;
/// \ingroup io
/// Windows TcpS... | 33.12 | 115 | 0.759058 | fonwin |
c26ace84ba60c308c9044f91f45eba984ae6209c | 979 | hpp | C++ | AnimSprite.hpp | sim642/AirTraffic | f53451c2976923ef94ed44f96d94f753e4a038c8 | [
"MIT"
] | 2 | 2016-06-10T06:05:28.000Z | 2019-02-07T16:21:15.000Z | AnimSprite.hpp | sim642/AirTraffic | f53451c2976923ef94ed44f96d94f753e4a038c8 | [
"MIT"
] | 2 | 2015-07-06T12:16:28.000Z | 2016-12-20T20:12:53.000Z | AnimSprite.hpp | sim642/AirTraffic | f53451c2976923ef94ed44f96d94f753e4a038c8 | [
"MIT"
] | null | null | null | #ifndef ANIMSPRITE_H
#define ANIMSPRITE_H
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/System/Vector2.hpp>
class AnimSprite : public sf::Sprite
{
public:
AnimSprite(); // doesn't work properly
AnimSprite(const sf::Texture &texture, const sf::Vector2i &frameSize, const float &frameRate);
... | 25.763158 | 102 | 0.65475 | sim642 |
c26c253bc884ddf59257612a8fabc2818a1f4d76 | 909 | cpp | C++ | unused/tinyxml_test2.cpp | tyt2y3/tinybind | 04a50a813521b468ae3994f848baac0c6f61e4dc | [
"Unlicense",
"MIT"
] | 18 | 2015-02-25T09:04:38.000Z | 2021-06-10T13:57:20.000Z | unused/tinyxml_test2.cpp | chinarouter/tinybind2 | d4e898332cdfd1ecf47cee382ad1d8b3f0cabf11 | [
"Unlicense",
"MIT"
] | 1 | 2016-03-18T11:03:31.000Z | 2016-03-24T17:32:56.000Z | unused/tinyxml_test2.cpp | tyt2y3/tinybind | 04a50a813521b468ae3994f848baac0c6f61e4dc | [
"Unlicense",
"MIT"
] | 12 | 2015-04-09T06:34:49.000Z | 2020-06-09T11:42:22.000Z | #include <stdio.h>
#include <stdlib.h>
#include "svg_cpp_definition.h"
#include "../tinyxml/tinyxml.h"
#include "../tinyxml/tinyxml.cpp"
#include "../tinyxml/tinyxmlerror.cpp"
#include "../tinyxml/tinyxmlparser.cpp"
#include "../tinyxml/tinystr.cpp"
#include "../tinyxml/tinystr.h"
#include "win32com.h" //to solve "err... | 22.725 | 88 | 0.718372 | tyt2y3 |
c26d52188ca2228890315622355f3a45b8afb063 | 175 | cpp | C++ | interpreter/AST/ASTIfElseStatementNode.cpp | FlareCoding/Trent | afaf81d2854aaf4f394036e78a8df4b361177753 | [
"MIT"
] | 4 | 2021-07-16T12:25:25.000Z | 2021-12-11T08:52:09.000Z | interpreter/AST/ASTIfElseStatementNode.cpp | FlareCoding/Trent | afaf81d2854aaf4f394036e78a8df4b361177753 | [
"MIT"
] | null | null | null | interpreter/AST/ASTIfElseStatementNode.cpp | FlareCoding/Trent | afaf81d2854aaf4f394036e78a8df4b361177753 | [
"MIT"
] | null | null | null | #include "ASTIfElseStatementNode.h"
namespace trent
{
ASTIfElseStatementNode::ASTIfElseStatementNode()
{
this->d_type = ASTNodeType::IfElseStatement;
}
}
| 17.5 | 52 | 0.708571 | FlareCoding |
c26f78c565aa905f78a26a60cbc68d34535a5f88 | 250 | cc | C++ | c++/basic/DS/stl/vector.cc | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | 2 | 2018-01-04T00:47:25.000Z | 2018-01-12T08:07:50.000Z | c++/basic/DS/stl/vector.cc | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | 1 | 2018-01-08T14:45:55.000Z | 2018-01-09T05:02:09.000Z | c++/basic/DS/stl/vector.cc | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using std::vector;
void print(int i) { std::cout << i; }
int main() {
vector<int> L{1, 2, 3, 4, 5};
L.push_back(-1);
std::for_each(L.begin(), L.end(), print);
std::cout << '\n';
}
| 16.666667 | 43 | 0.584 | dannypsnl |
c2716eec98d32deb9c67074d7a30ea8f33cbbfef | 2,153 | cpp | C++ | z.cpp | pexeer/p-base | 14830facd0ba6831575ae271dd506071c90763aa | [
"BSD-3-Clause"
] | null | null | null | z.cpp | pexeer/p-base | 14830facd0ba6831575ae271dd506071c90763aa | [
"BSD-3-Clause"
] | null | null | null | z.cpp | pexeer/p-base | 14830facd0ba6831575ae271dd506071c90763aa | [
"BSD-3-Clause"
] | 1 | 2018-04-21T15:57:52.000Z | 2018-04-21T15:57:52.000Z | #include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "p/base/endpoint.h"
#include "p/base/socket.h"
#include <string>
#include <signal.h>
#include <assert.h>
int main() {
p::base::EndPoint endpoint;
printf("sizeof(EndPoint) == %lu\n", sizeof(endpoint));
if (endpoint) {
... | 21.107843 | 73 | 0.503484 | pexeer |
c27450f7ebbbe050edb7ccfa346adc3b5f2c4696 | 882 | cpp | C++ | BitEngine/src/BitEngine/Game/ECS/Transform2DComponent.cpp | MateusMP/BitEngine | 920bbf693b74cd87dc98703ee48b126785bcf4db | [
"Zlib"
] | 3 | 2018-01-15T17:12:15.000Z | 2020-01-28T22:39:41.000Z | BitEngine/src/BitEngine/Game/ECS/Transform2DComponent.cpp | MateusMP/BitEngine | 920bbf693b74cd87dc98703ee48b126785bcf4db | [
"Zlib"
] | null | null | null | BitEngine/src/BitEngine/Game/ECS/Transform2DComponent.cpp | MateusMP/BitEngine | 920bbf693b74cd87dc98703ee48b126785bcf4db | [
"Zlib"
] | null | null | null | #include "BitEngine/Game/ECS/Transform2DComponent.h"
#include <math.h>
namespace BitEngine {
Transform2DComponent::Transform2DComponent()
: position(0.0f, 0.0f)
, scale(1.0f, 1.0f)
, rotation(0.0f)
, m_dirty(true)
{
}
Transform2DComponent::~Transform2DComponent()
{
}
const Vec2& T... | 16.961538 | 59 | 0.665533 | MateusMP |
c27ac0da460dcdbff5e35777d8ca5d3aff04fb3d | 653 | hpp | C++ | nd-coursework/books/cpp/C++Templates/traits/removecv.hpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++Templates/traits/removecv.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++Templates/traits/removecv.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved.
// See the LICENSE file in the project root for move information.
//
// Name: removecv.hpp
// Author: crdrisko
// Date: 08/18/2020-13:16:29
// Description: A trait for removing const and volatile qu... | 29.681818 | 121 | 0.762634 | crdrisko |
c27afd4333d768abf5b3160e1ff80c55195fbc3d | 2,508 | cpp | C++ | class 16 - solve class/N.cpp | pioneerAlpha/CP_Beginner_B4_Amar_iSchool | 271a851cfaf570e9dbde390574c9b0a419299823 | [
"MIT"
] | null | null | null | class 16 - solve class/N.cpp | pioneerAlpha/CP_Beginner_B4_Amar_iSchool | 271a851cfaf570e9dbde390574c9b0a419299823 | [
"MIT"
] | null | null | null | class 16 - solve class/N.cpp | pioneerAlpha/CP_Beginner_B4_Amar_iSchool | 271a851cfaf570e9dbde390574c9b0a419299823 | [
"MIT"
] | 1 | 2021-04-01T16:35:53.000Z | 2021-04-01T16:35:53.000Z | //#include<cstdio>
//#include<cassert>
//#include<iostream>
//#include<cstring>
//#include<algorithm>
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define MAX ((int)2e9 + 5)
#define MAXP ((int)1e5 + 5)
#define MAXL ((ll)1e18 + 5)
#define MAX_X ((int)2001)
#define M... | 24.349515 | 133 | 0.586922 | pioneerAlpha |
c27f7267a54efc548706f6d22dbb5cd266ae9545 | 1,706 | cpp | C++ | src/cube/src/syntax/cubepl/evaluators/nullary/CubeSizeOfVariableEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/syntax/cubepl/evaluators/nullary/CubeSizeOfVariableEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/syntax/cubepl/evaluators/nullary/CubeSizeOfVariableEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | 2 | 2016-09-19T00:16:05.000Z | 2021-03-29T22:06:45.000Z | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... | 32.807692 | 77 | 0.439039 | OpenCMISS-Dependencies |
c2865cc9a99a4f458353c2a42a14d5f1792f60a2 | 1,077 | hpp | C++ | libs/core/include/fcppt/type_traits/integral_cast.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/type_traits/integral_cast.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/type_traits/integral_cast.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_TYPE_TRAITS_INTEGRAL_CAST_HPP_INCLUDED
#define FCPPT_TYPE_TRAITS_INTEGRAL_CAST_HPP_IN... | 28.342105 | 82 | 0.770659 | freundlich |
c28af2357b2c407a57df19f07d1134a04acc3b6a | 2,656 | cpp | C++ | Tree_Fractal/Tree.cpp | freddyox/ROOT | 214a7d55f8c50ec27769bd85260a1746746d3b4c | [
"MIT"
] | null | null | null | Tree_Fractal/Tree.cpp | freddyox/ROOT | 214a7d55f8c50ec27769bd85260a1746746d3b4c | [
"MIT"
] | null | null | null | Tree_Fractal/Tree.cpp | freddyox/ROOT | 214a7d55f8c50ec27769bd85260a1746746d3b4c | [
"MIT"
] | null | null | null | #include "Tree.hh"
#include "TApplication.h"
#include <cmath>
#include <iostream>
Tree::Tree(){
fDisx = 1300;
fDisy = 1000;
xhat = TVector2(1.0,0.0);
yhat = TVector2(0.0,1.0);
fCanvas = new TCanvas("c1","Tree Fractal",0,1000,fDisx,fDisy);
fCanvas->SetFillColor(1);
deg2rad = TMath::Pi()/180.0;
fIter = 1... | 23.927928 | 78 | 0.587349 | freddyox |
c28bfdd83cea8d3b43c59f9c0f4015e5a714c126 | 1,966 | cpp | C++ | lib/passes/manager.cpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | 1 | 2021-11-28T14:56:21.000Z | 2021-11-28T14:56:21.000Z | lib/passes/manager.cpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | null | null | null | lib/passes/manager.cpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | null | null | null | #include "manager.hpp"
#include <llpm/module.hpp>
#include <util/misc.hpp>
#include <backends/graphviz/graphviz.hpp>
#include <boost/format.hpp>
using namespace std;
namespace llpm {
void PassManager::debug(Pass* p, Module* mod) {
unsigned ctr = _debugCounter[mod];
string fn = str(boost::format("%1%_%2%%3$0... | 26.567568 | 73 | 0.476094 | llpm |
c291f1c847a3385e82e00b3e033a66a178d96f10 | 2,361 | cpp | C++ | LibPhysics/Intersection/Wm4ExtremalQuery3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibPhysics/Intersection/Wm4ExtremalQuery3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibPhysics/Intersection/Wm4ExtremalQuery3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 34.720588 | 78 | 0.523083 | wjezxujian |
c29ee2e6d7f88fd4489f5c143053aa3889998a43 | 2,485 | cpp | C++ | tests/day13_tests.cpp | beached/aoc_2017 | 553d42e50b81384ad93aae6e0aec624ca7c8bf58 | [
"MIT"
] | 1 | 2017-12-11T16:17:18.000Z | 2017-12-11T16:17:18.000Z | tests/day13_tests.cpp | beached/aoc_2017 | 553d42e50b81384ad93aae6e0aec624ca7c8bf58 | [
"MIT"
] | null | null | null | tests/day13_tests.cpp | beached/aoc_2017 | 553d42e50b81384ad93aae6e0aec624ca7c8bf58 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2017 Darrell Wright
//
// 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,... | 41.416667 | 115 | 0.633803 | beached |
c2af820511d77ef8ee812586f066b3c5807dff6a | 4,960 | cpp | C++ | Source/Add On - Windows/CFilesystem-Windows-WinRT.cpp | StevoSM/CppToolbox | 11c73e083a4510797d7674e040e096bf5dc7ea2d | [
"MIT"
] | 1 | 2019-05-02T23:49:03.000Z | 2019-05-02T23:49:03.000Z | Source/Add On - Windows/CFilesystem-Windows-WinRT.cpp | StevoSM/CppToolbox | 11c73e083a4510797d7674e040e096bf5dc7ea2d | [
"MIT"
] | null | null | null | Source/Add On - Windows/CFilesystem-Windows-WinRT.cpp | StevoSM/CppToolbox | 11c73e083a4510797d7674e040e096bf5dc7ea2d | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
// CFilesystem-Windows-WinRT.cpp ©2021 Stevo Brock All rights reserved.
//----------------------------------------------------------------------------------------------------------------------
#in... | 41.333333 | 120 | 0.429435 | StevoSM |
c2afcde4c96739d99fae8e822319cb28f954f616 | 3,903 | cpp | C++ | src/parser/Parser.cpp | TimotheeDurand/SuperDeutschLerner3000 | 4a0cc676bd15db49d5b7aeb8cff1c88910bd69dc | [
"Unlicense"
] | 1 | 2018-03-17T08:01:46.000Z | 2018-03-17T08:01:46.000Z | src/parser/Parser.cpp | TimotheeDurand/SuperDeutschLerner3000 | 4a0cc676bd15db49d5b7aeb8cff1c88910bd69dc | [
"Unlicense"
] | 6 | 2018-02-27T13:19:26.000Z | 2018-03-26T21:06:52.000Z | src/parser/Parser.cpp | TimotheeDurand/SuperDeutschLerner3000 | 4a0cc676bd15db49d5b7aeb8cff1c88910bd69dc | [
"Unlicense"
] | 1 | 2018-03-01T09:24:28.000Z | 2018-03-01T09:24:28.000Z | #include "Parser.h"
#include <QDebug>
std::tuple<Lesson, Parser::IOStatus> Parser::parseFile (const QFileInfo& fileInfo)
{
QFile file (fileInfo.filePath ());
Lesson lesson;
if (file.open (QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in (&file);
in.setCodec ("UTF-8");
in >> lesson;
file.close ();... | 27.680851 | 89 | 0.683321 | TimotheeDurand |
c2afffcf75ee0b3b7e7ea41851f8378261cf2718 | 16,009 | cpp | C++ | src/addressgroup.cpp | Peter2121/nmdaemon | 3edc679d634838b96f83d36644a250980c430f21 | [
"BSD-3-Clause"
] | 2 | 2021-12-05T13:44:57.000Z | 2021-12-06T19:09:30.000Z | src/addressgroup.cpp | Peter2121/nmdaemon | 3edc679d634838b96f83d36644a250980c430f21 | [
"BSD-3-Clause"
] | null | null | null | src/addressgroup.cpp | Peter2121/nmdaemon | 3edc679d634838b96f83d36644a250980c430f21 | [
"BSD-3-Clause"
] | null | null | null | #include "addressgroup.h"
AddressGroup::AddressGroup(struct ifaddrs* ifa) : flags(0), isAddrRunning(false), isAddrPrimary(false)
{
if(ifa==nullptr)
throw nmExcept;
if(ifa->ifa_addr==nullptr)
throw nmExcept;
if(ifa->ifa_addr->sa_family == AF_LINK)
ipType = AddressGroupType::LINK;
... | 30.493333 | 168 | 0.589856 | Peter2121 |
c2b234593b10a631ad28beec39fb1d9a36800dc9 | 2,211 | cpp | C++ | src/shell/sensor_impl.cpp | hrandib/pc_fancontrol | 74fd5e38a7910144bfcf5fe690ad4b22c7356c91 | [
"MIT"
] | null | null | null | src/shell/sensor_impl.cpp | hrandib/pc_fancontrol | 74fd5e38a7910144bfcf5fe690ad4b22c7356c91 | [
"MIT"
] | 4 | 2020-12-22T17:48:49.000Z | 2021-02-20T21:48:24.000Z | src/shell/sensor_impl.cpp | hrandib/pc_fancontrol | 74fd5e38a7910144bfcf5fe690ad4b22c7356c91 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Dmytro Shestakov
*
* 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, pu... | 34.015385 | 89 | 0.674355 | hrandib |
c2b501ffa186f033efc856af1192eb1dd26fe9a3 | 243 | hpp | C++ | src/comp/components.hpp | vanill4Sky/aconitum | fe0449376995d469f9dcfff524f3e36ba2097f5c | [
"MIT"
] | null | null | null | src/comp/components.hpp | vanill4Sky/aconitum | fe0449376995d469f9dcfff524f3e36ba2097f5c | [
"MIT"
] | null | null | null | src/comp/components.hpp | vanill4Sky/aconitum | fe0449376995d469f9dcfff524f3e36ba2097f5c | [
"MIT"
] | null | null | null | #pragma once
#include "animation.hpp"
#include "collider.hpp"
#include "direction.hpp"
#include "entity_state.hpp"
#include "iob.hpp"
#include "mob.hpp"
#include "player.hpp"
#include "position.hpp"
#include "sprite.hpp"
#include "target.hpp" | 20.25 | 27 | 0.740741 | vanill4Sky |
c2bcca62d65ed434b09224d68926b6883e8e4511 | 579 | cpp | C++ | pgm06_24.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | 1 | 2021-07-13T03:58:36.000Z | 2021-07-13T03:58:36.000Z | pgm06_24.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | pgm06_24.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | //
// This file contains the C++ code from Program 6.24 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs... | 30.473684 | 80 | 0.680484 | neharkarvishal |
c2c5a4dd9dcff34ac52f7bca729c39ac8e22580e | 3,279 | cpp | C++ | Src/HLSL/DxilRootSignature.cpp | gongminmin/Dilithium | 976ce6d6420e45ac3088fe345793bfca80cd3acd | [
"MIT"
] | 178 | 2017-02-08T14:08:56.000Z | 2022-02-22T02:19:44.000Z | Src/HLSL/DxilRootSignature.cpp | gongminmin/Dilithium | 976ce6d6420e45ac3088fe345793bfca80cd3acd | [
"MIT"
] | 7 | 2017-02-09T08:19:29.000Z | 2021-09-13T14:28:09.000Z | Src/HLSL/DxilRootSignature.cpp | gongminmin/Dilithium | 976ce6d6420e45ac3088fe345793bfca80cd3acd | [
"MIT"
] | 15 | 2017-02-14T09:42:25.000Z | 2021-12-16T15:49:17.000Z | /**
* @file DxilRootSignature.cpp
* @author Minmin Gong
*
* @section DESCRIPTION
*
* This source file is part of Dilithium
* For the latest info, see https://github.com/gongminmin/Dilithium
*
* @section LICENSE
*
* The MIT License (MIT)
*
* Copyright (c) 2017 Minmin Gong. All rights reserved.
*
* Permiss... | 29.540541 | 106 | 0.752973 | gongminmin |
c2c9ac3315eec7a5324d6f1440d225c5fed1eac9 | 6,949 | cpp | C++ | ui.cpp | mmaldacker/VortexEditor | c3661f766f0ea704dc5777fa39d1483e202a1ae6 | [
"MIT"
] | 8 | 2020-03-06T06:09:59.000Z | 2020-08-08T11:13:25.000Z | ui.cpp | mmaldacker/VortexEditor | c3661f766f0ea704dc5777fa39d1483e202a1ae6 | [
"MIT"
] | null | null | null | ui.cpp | mmaldacker/VortexEditor | c3661f766f0ea704dc5777fa39d1483e202a1ae6 | [
"MIT"
] | 2 | 2020-03-06T06:00:41.000Z | 2021-07-14T00:58:16.000Z | #include "ui.h"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/vector_angle.hpp>
#include <imgui.h>
#include <imgui_internal.h>
#include <Box2D/Box2D.h>
#include <GLFW/glfw3.h>
namespace
{
const glm::vec2 radius(16.0f);
const glm::vec2 anchor = radius / glm::vec2(2.0f);
static glm::vec4 green = glm::vec4(92.0f, ... | 26.222642 | 99 | 0.602677 | mmaldacker |
c2cd265b59283d925007237da6b29ce9eff0467e | 3,843 | cpp | C++ | source/drivers/HID.cpp | mmoskal/codal-core | f4df7e461d96726b43e97e4b425279805eadb297 | [
"MIT"
] | 1 | 2021-03-15T07:09:15.000Z | 2021-03-15T07:09:15.000Z | source/drivers/HID.cpp | mmoskal/codal-core | f4df7e461d96726b43e97e4b425279805eadb297 | [
"MIT"
] | 1 | 2021-01-28T10:01:21.000Z | 2021-01-28T11:20:31.000Z | source/drivers/HID.cpp | mmoskal/codal-core | f4df7e461d96726b43e97e4b425279805eadb297 | [
"MIT"
] | 1 | 2021-03-15T07:09:18.000Z | 2021-03-15T07:09:18.000Z | /*
The MIT License (MIT)
Copyright (c) 2017 Lancaster University.
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... | 27.45 | 74 | 0.625813 | mmoskal |
c2d56a85e647f114a0cba067216aed2f8235e0b1 | 1,935 | cpp | C++ | src/subsystems_computer/suspension_onboard.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T02:32:49.000Z | 2018-10-16T02:32:49.000Z | src/subsystems_computer/suspension_onboard.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 13 | 2018-10-23T20:35:10.000Z | 2018-11-23T22:44:32.000Z | src/subsystems_computer/suspension_onboard.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T03:11:39.000Z | 2018-10-16T03:11:39.000Z | #include <cstring>
//#include <stdio.h>
#include "../rocs/rocs.hpp"
#include "suspension.hpp"
namespace suspension {
// Scale the input down by 2.
const uint16_t PRESCALE = 1;
uint8_t global_slave_addr;
// Assumes rocs has already been initialized!
Error init(uint8_t slave_addr) {
global_slave_addr = slave_ad... | 25.460526 | 119 | 0.686822 | 2535Rover |
c2d5dc683bfa72f6747a286f7ef7e1c0e3baf92b | 15,263 | cpp | C++ | tests/test_reg.cpp | sqc1999-oi/LxRunOffline | bdc6d7d77f886c6dcdab3b4c9c136557ca6694c4 | [
"BSL-1.0",
"MIT"
] | 3,353 | 2017-03-02T15:12:49.000Z | 2022-03-31T08:28:45.000Z | tests/test_reg.cpp | sqc1999-oi/LxRunOffline | bdc6d7d77f886c6dcdab3b4c9c136557ca6694c4 | [
"BSL-1.0",
"MIT"
] | 187 | 2017-03-11T10:49:50.000Z | 2022-03-27T17:42:00.000Z | tests/test_reg.cpp | sqc1999-oi/LxRunOffline | bdc6d7d77f886c6dcdab3b4c9c136557ca6694c4 | [
"BSL-1.0",
"MIT"
] | 250 | 2017-03-08T16:14:56.000Z | 2022-03-30T10:11:36.000Z | #include <boost/test/unit_test.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <boost/test/data/test_case.hpp>
#include "pch.h"
#include "fixtures.h"
#include "utils.h"
using namespace boost::unit_test;
extern "C" const wchar_t *const reg_base_path = fixture_tmp_reg::PATH;
BOOST_AUTO_TEST_SUITE(test_reg)
c... | 38.738579 | 172 | 0.737666 | sqc1999-oi |
c2d774b0b56aec8637621af60fbe8f2817d24a1e | 5,424 | cpp | C++ | src/dynamic.cpp | miazgatron/kopt | 64525697b8980e7101092d506b08f07c3e2e5218 | [
"MIT"
] | null | null | null | src/dynamic.cpp | miazgatron/kopt | 64525697b8980e7101092d506b08f07c3e2e5218 | [
"MIT"
] | null | null | null | src/dynamic.cpp | miazgatron/kopt | 64525697b8980e7101092d506b08f07c3e2e5218 | [
"MIT"
] | null | null | null | #include <dynamic.h>
#include <fast_embedding.h>
namespace kopt {
namespace {
Dynamic::Result DynamicResult(Dynamic::Bag &bag, Dynamic::Table &table, Dynamic::Result &left, Dynamic::Result &right) {
return std::make_unique<Dynamic::ResultStruct>(bag, std::move(table), std::move(left), std::move(right));
}
Dynamic... | 33.9 | 120 | 0.676438 | miazgatron |
c2d89cae8b5e5c00cb67576c69d4670cd2b8e0ca | 1,574 | cpp | C++ | 0472-Binary Tree Path Sum III/0472-Binary Tree Path Sum III.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0401-0500/0472-Binary Tree Path Sum III/0472-Binary Tree Path Sum III.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0401-0500/0472-Binary Tree Path Sum III/0472-Binary Tree Path Sum III.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | /**
* Definition of ParentTreeNode:
* class ParentTreeNode {
* public:
* int val;
* ParentTreeNode *parent, *left, *right;
* }
*/
class Solution {
public:
/**
* @param root the root of binary tree
* @param target an integer
* @return all valid paths
*/
vector<vector<int>> bina... | 26.677966 | 78 | 0.52033 | nmdis1999 |
c2d9e510f92b68c5283fcd660a91a1018ff5c2c6 | 17,005 | cpp | C++ | src/cut/CutHelper.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 6 | 2019-03-18T00:22:43.000Z | 2022-03-16T19:21:21.000Z | src/cut/CutHelper.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 14 | 2019-03-18T03:30:53.000Z | 2020-10-08T15:32:45.000Z | src/cut/CutHelper.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 2 | 2021-10-05T17:44:29.000Z | 2021-11-04T20:45:01.000Z | /**
* @file CutHelper.hpp
* @author A. M. Kazachkov
* @date 2019-02-20
*/
#include "CutHelper.hpp"
#include <numeric> // inner_product, sqrt
#include <OsiCuts.hpp>
#include <OsiSolverInterface.hpp>
#include "CglVPC.hpp" // For FailureType
#include "SolverHelper.hpp"
/**
* @details The cut is stored as alpha x ... | 35.501044 | 143 | 0.65122 | akazachk |
c2da09d7d51ba964b16f7ec809caacc2ceb60e22 | 593 | hpp | C++ | src/face/detecter/retinaface/retinaface.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | 1 | 2022-02-08T06:42:05.000Z | 2022-02-08T06:42:05.000Z | src/face/detecter/retinaface/retinaface.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | src/face/detecter/retinaface/retinaface.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | #ifndef _RETINAFACE_H_
#define _RETINAFACE_H_
#include "../detecter.hpp"
#include "net.h"
namespace ovface {
using ANCHORS = std::vector<ov::Rect>;
class RetinaFace : public Detecter {
public:
int LoadModel(const char* root_path);
int DetectFace(const unsigned char* rgbdata,
int img_width, int img_height,
... | 20.448276 | 45 | 0.70489 | bububa |
c2dc1f3b339b3d8ae67c56ad65abf4ff43ce5fd6 | 1,185 | cpp | C++ | src/Components/MovementComponent.cpp | BrianErikson/GameEngine | afe798607dda0a6a367867382d628fe02192643c | [
"MIT"
] | null | null | null | src/Components/MovementComponent.cpp | BrianErikson/GameEngine | afe798607dda0a6a367867382d628fe02192643c | [
"MIT"
] | 2 | 2017-04-05T01:23:55.000Z | 2017-04-05T02:29:45.000Z | src/Components/MovementComponent.cpp | BrianErikson/GameEngine | afe798607dda0a6a367867382d628fe02192643c | [
"MIT"
] | null | null | null |
#include "MovementComponent.h"
MovementComponent::MovementComponent() {
this->type = EActorComponent::MOVEMENT;
this->position = Vector3(0,0,0);
this->identity = Matrix();
this->matrix = Matrix();
}
void MovementComponent::tick(const double &deltaTime) {
}
void MovementComponent::render(const double &deltaTime... | 25.76087 | 57 | 0.669198 | BrianErikson |
124140387638308d95c3d34e20770511148f3f4b | 676 | cpp | C++ | Arrays/duplicate.cpp | harshit2000/My-Data-Structures-and-algorithms | 103559086f6fd6a6cee01bed4765c7f4d8681cad | [
"MIT"
] | null | null | null | Arrays/duplicate.cpp | harshit2000/My-Data-Structures-and-algorithms | 103559086f6fd6a6cee01bed4765c7f4d8681cad | [
"MIT"
] | null | null | null | Arrays/duplicate.cpp | harshit2000/My-Data-Structures-and-algorithms | 103559086f6fd6a6cee01bed4765c7f4d8681cad | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int findDuplicate(int arr[], int n){
if (n<=1){
return 0;
}
int tortoise = arr[0];
int hare = arr[arr[0]];
while (hare!=tortoise){
tortoise = arr[tortoise];
hare = arr[arr[hare]];
}
hare = 0;
while (tortoise!=ha... | 16.095238 | 38 | 0.502959 | harshit2000 |
124294663d28a53676af4b0d53f4b8e3fd465689 | 2,053 | cpp | C++ | 146.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | 146.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | 146.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#include <errno.h>
#include <fcntl.h>
#include <memory>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
class LRUCache {
public:
LRUCache(int capacity) : capacity_(capacity) {}
int get(int key) {
const auto &vPtr = kv.find(key);
/* 没找到 */
if (vPtr == kv.end())
... | 25.6625 | 64 | 0.53434 | adlternative |
12482c41cbb6292757221fdf09ed133b1df5cab0 | 3,643 | cpp | C++ | src/TryEngine/Window/TEWindow.cpp | b-pelmoine/TryEngine | 2495504106da8b42f7fb86bdf1f1a42f6b4ce581 | [
"MIT"
] | null | null | null | src/TryEngine/Window/TEWindow.cpp | b-pelmoine/TryEngine | 2495504106da8b42f7fb86bdf1f1a42f6b4ce581 | [
"MIT"
] | null | null | null | src/TryEngine/Window/TEWindow.cpp | b-pelmoine/TryEngine | 2495504106da8b42f7fb86bdf1f1a42f6b4ce581 | [
"MIT"
] | null | null | null | #include "TryEngine/Window/TEWindow.hpp"
#include <TryEngine.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics.hpp>
TEWindow::TEWindow(TEWindowOptions&& options) :
m_options(options), m_texture(std::make_shared<sf::RenderTexture>()), m_input(std::make_shared<TEInput>()), m_active(false), bUsePostProcess... | 24.614865 | 147 | 0.634642 | b-pelmoine |
124a9d3ca4f8dee49b14fbac3170ba9637e6a637 | 2,874 | hpp | C++ | include/ethutilities/ArpController.hpp | JohnnyB1290/jblib-platform-abstract-netutilities | 83a843f79d12a89e01b758ad6b352f56a4c41eca | [
"Apache-2.0"
] | null | null | null | include/ethutilities/ArpController.hpp | JohnnyB1290/jblib-platform-abstract-netutilities | 83a843f79d12a89e01b758ad6b352f56a4c41eca | [
"Apache-2.0"
] | null | null | null | include/ethutilities/ArpController.hpp | JohnnyB1290/jblib-platform-abstract-netutilities | 83a843f79d12a89e01b758ad6b352f56a4c41eca | [
"Apache-2.0"
] | null | null | null | /**
* @file
* @brief Arp Controller class Description
*
*
* @note
* Copyright © 2019 Evgeniy Ivanov. Contacts: <strelok1290@gmail.com>
* All rights reserved.
* @note
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 28.74 | 133 | 0.764092 | JohnnyB1290 |
125382d6def9a4983547ad4da454e6dc3b13bc80 | 296 | cpp | C++ | UPCFramework/NCamera2D.cpp | UPC-DESARROLLO-JUEGOS-1/DJ12017-II-FinalProject | 4a866769056ea4443bafea43f875885e550549ba | [
"MIT"
] | 1 | 2020-04-24T21:50:50.000Z | 2020-04-24T21:50:50.000Z | Sesion-1-Ambiente/UPCFramework/NCamera2D.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | Sesion-1-Ambiente/UPCFramework/NCamera2D.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | #include "NCamera2D.h"
void NCamera2D::Initialize(int screenWidth, int screenHeight) {
NBaseCamera::Initialize(screenWidth, screenHeight);
mProjectionMatrix = glm::ortho(0.0f, (float)screenWidth,
(float)screenHeight, 0.0f);
}
void NCamera2D::Update(float dt) {
NBaseCamera::Update(dt);
} | 24.666667 | 63 | 0.75 | UPC-DESARROLLO-JUEGOS-1 |
1255def4202850ce85dc0a00884f6d27fcf094e8 | 414 | cpp | C++ | codeforces/Competitions/CD#490/sec.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | codeforces/Competitions/CD#490/sec.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | codeforces/Competitions/CD#490/sec.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
#define icin(x) scanf("%d", &x)
#define lcin(x) scanf("%lld", &x)
typedef long long ll;
int main(){
int n;
icin(n);
string s;
cin >> s;
string t=s;
for(int i=1;i<=n;i++){
if(n%i... | 14.785714 | 33 | 0.555556 | dhwanisanmukhani |
125e18c07cb52eed2acb54727af9954e2bbcf65f | 5,116 | cpp | C++ | samples/gl/BlinnPhongLighting.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 6 | 2019-01-25T08:41:14.000Z | 2021-08-22T07:06:11.000Z | samples/gl/BlinnPhongLighting.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | null | null | null | samples/gl/BlinnPhongLighting.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 3 | 2019-01-25T08:41:16.000Z | 2020-09-04T06:04:29.000Z | //
// Created by huangkun on 2018/4/11.
//
#include "BlinnPhongLighting.h"
#include "Input.h"
TEST_NODE_IMP_BEGIN
BlinnPhongLighting::BlinnPhongLighting() {
const char *vert = R"(
#version 330 core
layout (location = 0) in vec3 a_position;
layout (location = 1) in vec3 a_normal;
layout (location = 2) in ... | 28.581006 | 105 | 0.603597 | kunka |
12633278144286a73cd3b491f8734bb44ac916df | 1,036 | cpp | C++ | src/folding/mystack.cpp | suncongxd/ReCFA | 55ddadd40a7dc078616e0c4fec7274c26a06aabe | [
"MIT"
] | 4 | 2021-09-09T12:03:36.000Z | 2021-11-28T03:33:46.000Z | src/folding/mystack.cpp | suncongxd/ReCFA | 55ddadd40a7dc078616e0c4fec7274c26a06aabe | [
"MIT"
] | null | null | null | src/folding/mystack.cpp | suncongxd/ReCFA | 55ddadd40a7dc078616e0c4fec7274c26a06aabe | [
"MIT"
] | 1 | 2021-09-09T12:03:41.000Z | 2021-09-09T12:03:41.000Z | #include "mystack.hpp"
#include <iostream>
#include <string.h>
MyStack::MyStack() {
stacktop = 0;
// 初始栈大小为1M
length = 1048576;
stack = new int[length];
}
MyStack::~MyStack() { delete stack; }
int MyStack::pop() {
stacktop--;
return stack[stacktop];
}
int MyStack::top() {
if (stacktop == 0) {
prin... | 17.862069 | 56 | 0.609073 | suncongxd |
1269180601c5ba91869220dd61bc584ebbdda7f9 | 730 | cpp | C++ | 31-40/39. Combination Sum.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | 31-40/39. Combination Sum.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | 31-40/39. Combination Sum.cpp | zzuliLL/Leetcode- | a14fe1188da008a39d7aaf4e142ee582493b7c60 | [
"MIT"
] | null | null | null | //贼暴力的方法。。。
class Solution {
public:
void dfs(int i, int len, vector<int> &nums, int target, int sum, vector<int> x)
{
if(i == len)
{
if(sum == target) ans.push_back(x);
return ;
}
if(sum > target) return ;
dfs(i+1, len, nums, target, sum, x);
... | 28.076923 | 83 | 0.491781 | zzuliLL |
126993bcc7975bfe1e524e9c79d2922575931bf1 | 1,611 | cpp | C++ | solutions/0235.lowest-common-ancestor-of-a-binary-search-tree/0235.lowest-common-ancestor-of-a-binary-search-tree.1548160270.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/0235.lowest-common-ancestor-of-a-binary-search-tree/0235.lowest-common-ancestor-of-a-binary-search-tree.1548160270.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/0235.lowest-common-ancestor-of-a-binary-search-tree/0235.lowest-common-ancestor-of-a-binary-search-tree.1548160270.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
TreeNode* lowestCommonAncestor(TreeNode* root, TreeNode* p, TreeNode* q) {
string pcode... | 26.409836 | 82 | 0.484792 | nettee |
126c8e14a3e27d39cbe76858a838839225f270cf | 932 | cpp | C++ | 014-longest-common-prefix/longest-common-prefix.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 014-longest-common-prefix/longest-common-prefix.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 014-longest-common-prefix/longest-common-prefix.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Write a function to find the longest common prefix string amongst an array of strings.
//
// If there is no common prefix, return an empty string "".
//
// Example 1:
//
//
// Input: ["flower","flow","flight"]
// Output: "fl"
//
//
// Example 2:
//
//
// Input: ["dog","racecar","car"]
// Output: ""
// Explan... | 19.416667 | 90 | 0.505365 | nagestx |
126d34696df58ab55554b25a077a1149dc5460fa | 1,533 | cpp | C++ | 3_memory_mgmt/2_memory_allocation/00_memory_allocation_sample.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 27 | 2019-10-08T13:43:32.000Z | 2021-08-30T08:00:28.000Z | 3_memory_mgmt/2_memory_allocation/00_memory_allocation_sample.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 1 | 2020-10-11T23:20:15.000Z | 2020-10-11T23:20:15.000Z | 3_memory_mgmt/2_memory_allocation/00_memory_allocation_sample.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 14 | 2019-09-22T15:17:59.000Z | 2021-07-13T06:06:37.000Z | #include <iostream>
// Illustration of memory allocation and deallocation
int main() {
int *ptr = nullptr;
/*
When using new, best practice in coding states that we need to enclose it within a try-catch block.
The new operator throws an exception and does not return a value.
To force the new... | 31.285714 | 104 | 0.596869 | aalfianrachmat |
126dbc43678dff5ce61030116c2270eea714b390 | 435 | cpp | C++ | source/procedural_graph/construction_argument_not_found.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | source/procedural_graph/construction_argument_not_found.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | source/procedural_graph/construction_argument_not_found.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include "construction_argument_not_found.h"
namespace pagoda
{
ConstructionArgumentNotFound::ConstructionArgumentNotFound(const std::string nodeName, const uint32_t nodeId,
const std::string &argName)
: Exception("Construction argument " + argName + " not... | 36.25 | 109 | 0.611494 | diegoarjz |
126de05c2b77973686ff8e06811645eb52836171 | 3,400 | hpp | C++ | MemoryPool.hpp | phisko/putils | 741e143cef837ae78526656dd7c926283ccbebc9 | [
"MIT"
] | 26 | 2018-11-12T03:29:13.000Z | 2021-11-30T22:43:44.000Z | MemoryPool.hpp | phisko/putils | 741e143cef837ae78526656dd7c926283ccbebc9 | [
"MIT"
] | null | null | null | MemoryPool.hpp | phisko/putils | 741e143cef837ae78526656dd7c926283ccbebc9 | [
"MIT"
] | 9 | 2018-12-28T08:37:06.000Z | 2020-04-27T08:17:17.000Z | /*-
* Copyright (c) 2013 Cosku Acay, http://www.coskuacay.com
*
* 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, co... | 37.362637 | 83 | 0.679706 | phisko |
126f6e5859cc8566b3f9baf5dd1b926c7a6f9c52 | 227 | cpp | C++ | jp.atcoder/abc081/arc086_a/11919937.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc081/arc086_a/11919937.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc081/arc086_a/11919937.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
from collections import Counter
n, k, *a = map(int, sys.stdin.read().split())
def main():
c = Counter(a)
res = sum(sorted(c.values())[:-k])
print(res)
if __name__ == '__main__':
main()
| 17.461538 | 46 | 0.568282 | kagemeka |
127088cace5ea2c2be7342aed6d03cdf34ab96df | 795 | cpp | C++ | C++/restore-the-array-from-adjacent-pairs.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/restore-the-array-from-adjacent-pairs.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/restore-the-array-from-adjacent-pairs.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(n)
class Solution {
public:
vector<int> restoreArray(vector<vector<int>>& adjacentPairs) {
unordered_map<int, vector<int>> adj;
for (const auto& pair : adjacentPairs) {
adj[pair[0]].emplace_back(pair[1]);
adj[pair[1]].emplace_back(pair[0]);
... | 30.576923 | 103 | 0.522013 | Priyansh2 |
1271c06c840187db45b414a2eae9ec8c5f004f49 | 549 | cpp | C++ | KROSS/src/Kross/Core/Stack.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Core/Stack.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Core/Stack.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include <Kross_pch.h>
#include "Stack.h"
#include "Kross/Core/Stack.h"
#include "Kross/Renderer/Shaders.h"
#include "Kross/Renderer/Textures/Textures.h"
//#include "Kross/Core/Layer.h"
#include "Kross/Renderer/Mesh/Mesh.h"
#define __impl__STACK_TEMPLATE(x)\
std::vector<Stack<##x>::Entry> Stack<##x>::stack;\
std::st... | 26.142857 | 50 | 0.734062 | WillianKoessler |
1273e8d5307b315c1e4bb39dd3f6dfa82a2c370c | 175 | hpp | C++ | tests/unit/include/helpers.hpp | karel-burda/function-dll-extractor | ca54cc86da1e2cc0106623e12ba20e608c33f37b | [
"MIT"
] | 8 | 2019-10-10T16:05:12.000Z | 2022-01-27T21:49:45.000Z | tests/unit/include/helpers.hpp | karel-burda/function-dll-extractor | ca54cc86da1e2cc0106623e12ba20e608c33f37b | [
"MIT"
] | 7 | 2018-10-01T04:08:36.000Z | 2021-08-24T12:52:07.000Z | tests/unit/include/helpers.hpp | karel-burda/function-dll-extractor | ca54cc86da1e2cc0106623e12ba20e608c33f37b | [
"MIT"
] | 4 | 2018-09-27T06:41:31.000Z | 2022-01-27T21:49:50.000Z | #pragma once
namespace burda
{
namespace function_loader
{
namespace testing
{
constexpr const char * get_demo_library_file_path()
{
return "./demo-library.dll";
}
}
}
}
| 10.9375 | 51 | 0.731429 | karel-burda |
12740264134124e3b12501aab6174f4cf1d75dd6 | 9,975 | cpp | C++ | Engine/Source/GameBase/src/HumanView.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Engine/Source/GameBase/src/HumanView.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Engine/Source/GameBase/src/HumanView.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | #include "stdafx.h"
#include "HumanView.h"
#include "GraphicsClass.hxx"
#include "BaseApp.hxx"
#include "BaseControl.hxx"
#include "MainWindow.hxx"
#include "Camera.hxx"
#include "ParamLoaders.hxx"
#include "Audio.hxx"
#include "SoundProcess.hxx"
#include "GameOptions.h"
#include "GameDirectories.h"
#include "ProcessMa... | 34.635417 | 135 | 0.55589 | AnkurSheel |
1283630f292e33228ca3a9cfd861250d91797834 | 326 | hpp | C++ | include/meejson/parser.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | include/meejson/parser.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | include/meejson/parser.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | #ifndef JSON_PARSER_HPP
#define JSON_PARSER_HPP
#include <string_view>
#include "value.hpp"
#include "lexer.hpp"
namespace mee::json {
auto parse(std::string_view) noexcept -> result<value>;
auto parse(const std::vector<token>&) noexcept -> result<value>;
auto operator""_json(const char*, std::size_t) -> value;
}
#... | 20.375 | 64 | 0.736196 | tomvanwoow |
128b8c6d349a1822558ff413e0c3b217a1101276 | 24,520 | cpp | C++ | Tutorial1/src/main.cpp | RichardRanft/LearningDirectX12 | fce26d5fcec1bfd3e06c433fc596a7f030cff929 | [
"MIT"
] | null | null | null | Tutorial1/src/main.cpp | RichardRanft/LearningDirectX12 | fce26d5fcec1bfd3e06c433fc596a7f030cff929 | [
"MIT"
] | null | null | null | Tutorial1/src/main.cpp | RichardRanft/LearningDirectX12 | fce26d5fcec1bfd3e06c433fc596a7f030cff929 | [
"MIT"
] | null | null | null | #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <shellapi.h> // For CommandLineToArgvW
#include "../resource.h"
// The min/max macros conflict with like-named member functions.
// Only use std::min and std::max defined in <algorithm>.
#if defined(min)
#undef min
#endif
#if defined(max)
#undef max
#endif
//... | 32.956989 | 149 | 0.682259 | RichardRanft |
129321220fb08fa0b0b2d3706a18782bebda7a2a | 1,143 | cpp | C++ | src/main.cpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/main.cpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/main.cpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | #include "sprinkler.hpp"
#include "toml_settings.hpp"
#include <QApplication>
#include <QTranslator>
#include <QTextCodec>
#include <QLibraryInfo>
#include <QSettings>
int main(int argc, char *argv[]) {
// for XmbTextPropertyToTextList(for Linux)
std::setlocale(LC_ALL, "");
QApplication a(argc, argv);
// set org... | 27.878049 | 78 | 0.738408 | degarashi |
129482ad63f88477de364232ecccd481d87c90f1 | 34,934 | cpp | C++ | WaveletTL/galerkin/tframe_equation.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | WaveletTL/galerkin/tframe_equation.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | WaveletTL/galerkin/tframe_equation.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for tframe_equation.h
#include <cmath>
#include <time.h>
#include <utils/fixed_array1d.h>
#include <numerics/gauss_data.h>
#include <numerics/eigenvalues.h>
#include <cube/tframe_support.h>
namespace WaveletTL
{
// //PERFORMANCE : wozu compute_rhs? welches jmax in den Konstruktoren? (wenn überhau... | 42.447145 | 174 | 0.489065 | kedingagnumerikunimarburg |
1295a45e18959b43399fc3d7601a44dd5903f775 | 2,197 | cpp | C++ | tests/overview/src/main.cpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | 1 | 2022-02-05T07:32:16.000Z | 2022-02-05T07:32:16.000Z | tests/overview/src/main.cpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | null | null | null | tests/overview/src/main.cpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | null | null | null | #include <iostream>
#include <string_view>
#include <vector>
#include <type_traits>
using namespace std;
#include <cxxplug.hpp>
#include <cxxplug/some_source_providers/filesystem_dynlib_provider.hpp>
#include <cxxplug/some_load_providers/libload_provider.hpp>
#include "cxxplug_gen/builtin/plugin_human_builtin.hpp"
... | 28.166667 | 80 | 0.588075 | makaleks |
129f42ef576c1d18f4bfdab4ecee350710564449 | 7,014 | cpp | C++ | src/Image2D.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | 2 | 2019-05-14T08:14:15.000Z | 2021-01-19T13:28:38.000Z | src/Image2D.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | src/Image2D.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | #include "m3g/m3g-gl.hpp"
#include "m3g/Image2D.hpp"
#include "m3g/Exception.hpp"
#include "m3g/RenderState.hpp"
#include "m3g/stb_image_writer.hpp"
#include <iostream>
#include <fstream>
#include <cstring>
using namespace m3g;
using namespace std;
const int Image2D:: ALPHA;
const int Image2D:: LUMINANCE;
const int Im... | 29.34728 | 127 | 0.621044 | vadosnaprimer |
12a028451d0afb5b5bcf9d3471bb9549bb682abe | 1,525 | cpp | C++ | Source/Tests/Platform.cpp | Negrutiu/nsis | 14eed5608d44e998309892fe8226aeb5252b9ab9 | [
"BSD-3-Clause"
] | null | null | null | Source/Tests/Platform.cpp | Negrutiu/nsis | 14eed5608d44e998309892fe8226aeb5252b9ab9 | [
"BSD-3-Clause"
] | null | null | null | Source/Tests/Platform.cpp | Negrutiu/nsis | 14eed5608d44e998309892fe8226aeb5252b9ab9 | [
"BSD-3-Clause"
] | null | null | null | #include <cppunit/extensions/HelperMacros.h>
#include "../Platform.h"
#include "../tchar.h"
#include "../util.h"
class PlatformTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE( PlatformTest );
CPPUNIT_TEST( testCore );
CPPUNIT_TEST( testCoreString );
CPPUNIT_TEST( testCoreMath );
CPPUNIT_TEST_SUITE_E... | 30.5 | 101 | 0.646557 | Negrutiu |
12a0367437dde8b91fa1bb2a21bff72c86869495 | 7,194 | cpp | C++ | src/runtime_src/core/edge/user/aie/aie.cpp | Ralender/XRT | ade04554314f6afe3aed99309bfd16868bfce506 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/edge/user/aie/aie.cpp | Ralender/XRT | ade04554314f6afe3aed99309bfd16868bfce506 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/edge/user/aie/aie.cpp | Ralender/XRT | ade04554314f6afe3aed99309bfd16868bfce506 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Xilinx, Inc
* Author(s): Larry Liu
* ZNYQ XRT Library layered on top of ZYNQ zocl kernel driver
*
* 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://ww... | 33.460465 | 105 | 0.660272 | Ralender |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.