hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a1e6d8d630308d7c6df2b85177f21ab9f00efc7 | 11,647 | cpp | C++ | test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Experimental/Bspline3DSet.cpp | JKChenFZ/hclib | 50970656ac133477c0fbe80bb674fe88a19d7177 | [
"BSD-3-Clause"
] | 55 | 2015-07-28T01:32:58.000Z | 2022-02-27T16:27:46.000Z | test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Experimental/Bspline3DSet.cpp | JKChenFZ/hclib | 50970656ac133477c0fbe80bb674fe88a19d7177 | [
"BSD-3-Clause"
] | 66 | 2015-06-15T20:38:19.000Z | 2020-08-26T00:11:43.000Z | test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Experimental/Bspline3DSet.cpp | JKChenFZ/hclib | 50970656ac133477c0fbe80bb674fe88a19d7177 | [
"BSD-3-Clause"
] | 26 | 2015-10-26T22:11:51.000Z | 2021-03-02T22:09:15.000Z | /////////////////////////////////////////////////////////////////
// (c) Copyright 2007- Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// Modified by Jeongnim Kim for qmcpack
// National Center for Supercomputing A... | 27.665083 | 102 | 0.54675 | JKChenFZ |
8a1f108fb7792e52e56938e92c576707b6dd88aa | 674 | cpp | C++ | examples/TailExample.cpp | sbeanie/Glasgow-MicroStream | eb0e214b0c16b22ff59b1633db4f76be380948d4 | [
"Apache-2.0"
] | 1 | 2019-06-17T20:52:56.000Z | 2019-06-17T20:52:56.000Z | examples/TailExample.cpp | sbeanie/Glasgow-MicroStream | eb0e214b0c16b22ff59b1633db4f76be380948d4 | [
"Apache-2.0"
] | null | null | null | examples/TailExample.cpp | sbeanie/Glasgow-MicroStream | eb0e214b0c16b22ff59b1633db4f76be380948d4 | [
"Apache-2.0"
] | null | null | null | #include "Stream.hpp"
using namespace glasgow_ustream;
int main (int, char**) {
void (*print_int_list) (std::list<int>) = [] (std::list<int> values) {
std::cout << "Tail stream outputted: [";
for (auto &val : values) {
std::cout << val << ",";
}
std::cout << "]" << std... | 28.083333 | 94 | 0.60089 | sbeanie |
8a1fdcc115ffb19336a2570347aa0ceb87fbdb93 | 1,296 | cpp | C++ | cpp/library/benchmark/main.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/library/benchmark/main.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/library/benchmark/main.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdint>
#include <random>
#include <vector>
#include <benchmark/benchmark.h>
void dense_range(benchmark::State& state) {
for (auto _ : state) {
std::vector<int> v(state.range(0), state.range(0));
// 下面两个防止优化
benchmark::DoNotOptimize(v.data());
// TODO ClobberMemory ??... | 24 | 55 | 0.660494 | KaiserLancelot |
8a21344249d71c7972478fc4dfe504ab2b43f7f2 | 653 | hpp | C++ | include/yukihttp/mime.hpp | Yuki-cpp/yuki-http | 07fc0d194ab528f4554aef25813c565a9fce6542 | [
"MIT"
] | null | null | null | include/yukihttp/mime.hpp | Yuki-cpp/yuki-http | 07fc0d194ab528f4554aef25813c565a9fce6542 | [
"MIT"
] | null | null | null | include/yukihttp/mime.hpp | Yuki-cpp/yuki-http | 07fc0d194ab528f4554aef25813c565a9fce6542 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <memory>
namespace yuki::http
{
class part;
class mime
{
friend class request;
public:
mime() = default;
mime(const mime&) = delete;
mime& operator=(const mime&) = delete;
mime(mime&&) = default;
mime& operator=(mime && ) = default;
~mime() = defaul... | 17.648649 | 106 | 0.684533 | Yuki-cpp |
8a248b27f73ccad15cd8c5fd65e5ea7c0760425c | 10,240 | cc | C++ | optickscore/Animator.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | 1 | 2020-05-13T06:55:49.000Z | 2020-05-13T06:55:49.000Z | optickscore/Animator.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | optickscore/Animator.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 21.927195 | 119 | 0.604883 | seriksen |
8a257902f7bf9c601eaabe904b47d194e7b42e7d | 989 | hh | C++ | include/rediswraps/utils.hh | woldaker/hiredis-cpp | 545c8479944a678777c17a39614cecfa1dc35cd8 | [
"BSD-3-Clause"
] | 1 | 2020-07-04T23:35:59.000Z | 2020-07-04T23:35:59.000Z | include/rediswraps/utils.hh | woldaker/hiredis-cpp | 545c8479944a678777c17a39614cecfa1dc35cd8 | [
"BSD-3-Clause"
] | null | null | null | include/rediswraps/utils.hh | woldaker/hiredis-cpp | 545c8479944a678777c17a39614cecfa1dc35cd8 | [
"BSD-3-Clause"
] | null | null | null | #ifndef REDISWRAPS_UTILS_HH
#define REDISWRAPS_UTILS_HH
#include <string>
#include <type_traits>
namespace rediswraps {
namespace utils {
template<typename Token,
typename ArgConstructibleFromString = typename std::enable_if<
std::is_constructible<std::string, Token>::value
>::type,
typename Dummy... | 23.547619 | 74 | 0.741153 | woldaker |
8a2618e032296ee4aba1a4ab8f883534321b5833 | 78,168 | cc | C++ | CryoMEM/cacti/io.cc | SNU-HPCS/CryoModel | 07a3fbe3f3d44c7960b5aed562a90e204014eea0 | [
"MIT"
] | 2 | 2021-05-26T12:32:46.000Z | 2021-12-15T13:10:37.000Z | CryoMEM/cacti/io.cc | SNU-HPCS/CryoModel | 07a3fbe3f3d44c7960b5aed562a90e204014eea0 | [
"MIT"
] | 1 | 2022-03-02T01:49:20.000Z | 2022-03-18T10:37:59.000Z | CryoMEM/cacti/io.cc | SNU-HPCS/CryoModel | 07a3fbe3f3d44c7960b5aed562a90e204014eea0 | [
"MIT"
] | null | null | null | /*****************************************************************************
* CACTI 7.0
* SOFTWARE LICENSE AGREEMENT
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
*
* Redistribution and us... | 57.182151 | 160 | 0.521326 | SNU-HPCS |
8a264ac95f1ea7e968c72bea81e7155e5b33fa58 | 1,736 | cc | C++ | descriptor/tunnel_desc.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 38 | 2017-07-26T14:48:12.000Z | 2022-03-24T23:48:55.000Z | descriptor/tunnel_desc.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 74 | 2017-03-15T21:07:34.000Z | 2022-03-18T07:53:11.000Z | descriptor/tunnel_desc.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 43 | 2017-03-10T15:27:28.000Z | 2022-03-05T10:55:38.000Z | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "../dataobj/ribi.h"
#include "tunnel_desc.h"
#include "../network/checksum.h"
int tunnel_desc_t::slope_indices[81] = {
-1, // 0:
-1, // 1:
-1, // 2:
-1, // 3:
1, // 4:north... | 15.63964 | 99 | 0.46947 | chris-nada |
8a26b9b2b384b4431ec6210bbb1ae9c7a87225ef | 2,089 | cpp | C++ | 1304-D.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | 1304-D.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | 1304-D.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// Author : Ankit Raj
// Problem Name : Cow and Secret Message
// Problem Link : https://codeforces.com/contest/1304/problem/D
// * * * * * * * * * * * * * * *... | 23.738636 | 91 | 0.471996 | ankiiitraj |
8a2804ac58cb8794eb53f820c2a1f78af57ae4c9 | 1,696 | cpp | C++ | October 2021/October 4, 2021/max_and_min_mileage_of_cars/main.cpp | thismrojek/hard_school_exercises | 1108b5e5c67625ad95b04c9390d05c334c601218 | [
"MIT"
] | null | null | null | October 2021/October 4, 2021/max_and_min_mileage_of_cars/main.cpp | thismrojek/hard_school_exercises | 1108b5e5c67625ad95b04c9390d05c334c601218 | [
"MIT"
] | null | null | null | October 2021/October 4, 2021/max_and_min_mileage_of_cars/main.cpp | thismrojek/hard_school_exercises | 1108b5e5c67625ad95b04c9390d05c334c601218 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
int carsMileage[3][4] = {
{
35000,
22145,
45981,
31012
},
{
26771,
34121,
36900,
22096
},
{
45... | 27.803279 | 178 | 0.482311 | thismrojek |
8a2835f30a01491588b28b84034e9507c3c5dfce | 3,559 | hpp | C++ | src/wrapper/AmxInstanceManager.hpp | eupedroosouza/ShoebillPlugin | 49bc98348061f08c8ec6e1ce9919d6736656bee9 | [
"Apache-2.0"
] | 6 | 2016-06-18T02:06:02.000Z | 2020-10-17T12:25:54.000Z | src/wrapper/AmxInstanceManager.hpp | eupedroosouza/ShoebillPlugin | 49bc98348061f08c8ec6e1ce9919d6736656bee9 | [
"Apache-2.0"
] | 13 | 2015-11-13T13:00:33.000Z | 2021-12-09T13:49:52.000Z | src/wrapper/AmxInstanceManager.hpp | eupedroosouza/ShoebillPlugin | 49bc98348061f08c8ec6e1ce9919d6736656bee9 | [
"Apache-2.0"
] | 7 | 2017-03-01T15:02:34.000Z | 2022-03-13T16:22:21.000Z | /**
* Copyright (C) 2014 MK124
*
* 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 i... | 27.589147 | 94 | 0.615341 | eupedroosouza |
8a287d8f521eaecbf9bea96ed2208a01180cdbad | 926 | cpp | C++ | PSME/application/src/rest/http/http_defs.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/application/src/rest/http/http_defs.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | null | null | null | PSME/application/src/rest/http/http_defs.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 1 | 2022-03-01T07:21:51.000Z | 2022-03-01T07:21:51.000Z | /*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apach... | 28.060606 | 75 | 0.725702 | opencomputeproject |
8a2a9b91a6b38fbe768b27a6744e9f288061e93f | 389 | cpp | C++ | WaveSabreCore/src/AllPassDelay.cpp | LeStahL/WaveSabre | 2a603ac1b3e9c30390a977f5bfb71766552e9c62 | [
"MIT"
] | 228 | 2019-02-18T19:13:31.000Z | 2022-03-30T00:52:55.000Z | WaveSabreCore/src/AllPassDelay.cpp | LeStahL/WaveSabre | 2a603ac1b3e9c30390a977f5bfb71766552e9c62 | [
"MIT"
] | 64 | 2019-02-20T17:38:47.000Z | 2022-01-25T20:21:00.000Z | WaveSabreCore/src/AllPassDelay.cpp | thijskruithof/WaveSabre | d2d0c76432284a86780deda45b35a9aa9377d79e | [
"MIT"
] | 31 | 2019-02-20T14:16:40.000Z | 2022-01-05T11:25:52.000Z | #include <WaveSabreCore/AllPassDelay.h>
#include <WaveSabreCore/Helpers.h>
#include <math.h>
namespace WaveSabreCore
{
AllPassDelay::AllPassDelay()
{
a1 = 0.0f;
zm1 = 0.0f;
}
void AllPassDelay::Delay(float delay)
{
a1 = (1.f - delay) / (1.f + delay);
}
float AllPassDelay::Update(float inSamp)
{
floa... | 14.407407 | 41 | 0.634961 | LeStahL |
8a2d1dd3e780e2d41a7f50414caebd18dce6b535 | 8,701 | cc | C++ | content/public/browser/arc_tracing_agent.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-05-24T13:52:28.000Z | 2021-05-24T13:53:10.000Z | content/public/browser/arc_tracing_agent.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/public/browser/arc_tracing_agent.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2018-03-12T07:58:10.000Z | 2019-08-31T04:53:58.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/arc_tracing_agent.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#i... | 34.943775 | 79 | 0.70785 | metux |
8a2d5f60a15ee8f2c3ceba648e815e7427209038 | 1,012 | cpp | C++ | 0600/00/602a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0600/00/602a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0600/00/602a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
using integer = unsigned long long;
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(char v)
{
std::cout << v << '\n';
}
integer convert(const std::vector<unsign... | 15.333333 | 100 | 0.527668 | actium |
8a308f674be5fcc99893e10bec4f21f21e7219f3 | 3,352 | cpp | C++ | rom.cpp | PJBoy/Fusion-level-editor | bf2779f5ab634fb6a3d499ee9c220c8d77992478 | [
"0BSD"
] | 4 | 2018-09-27T17:31:33.000Z | 2021-12-24T12:46:14.000Z | rom.cpp | PJBoy/Metroid-level-editor | bf2779f5ab634fb6a3d499ee9c220c8d77992478 | [
"0BSD"
] | null | null | null | rom.cpp | PJBoy/Metroid-level-editor | bf2779f5ab634fb6a3d499ee9c220c8d77992478 | [
"0BSD"
] | null | null | null | //#include "sm.h"
#include "global.h"
import rom;
import mf;
import mzm;
import Sm;
Rom::Reader::Reader(std::filesystem::path filepath, index_t address /* = 0*/)
try
: f(filepath, std::ios::binary)
{
f.exceptions(std::ios::badbit | std::ios::failbit);
seek(address);
}
LOG_RETHROW
Rom::Rom(std::filesys... | 22.052632 | 113 | 0.660203 | PJBoy |
8a30a2d5d74959fcd1156be030fb783d27b12973 | 378 | cpp | C++ | components/xtl/tests/stl/mkheap1.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/xtl/tests/stl/mkheap1.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/xtl/tests/stl/mkheap1.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include <stl/algorithm>
#include <stl/functional>
#include <stdio.h>
using namespace stl;
int main ()
{
printf ("Results of mkheap1_test:\n");
int numbers [6] = {5,10,4,13,11,19};
make_heap (numbers,numbers+6,greater<int> ());
for (int i=6;i>=1;i--)
{
printf ("%d\n",numbers [0]);
pop_heap ... | 16.434783 | 49 | 0.597884 | untgames |
8a321b59d767b2421bed5ffe12cd0fcf4dcae987 | 7,448 | hpp | C++ | Tests/TaskTypeTests.hpp | iarebwan/TaskScheduler | f21a7c1823f9dfe1e495596666d072ca08b234b7 | [
"MIT"
] | null | null | null | Tests/TaskTypeTests.hpp | iarebwan/TaskScheduler | f21a7c1823f9dfe1e495596666d072ca08b234b7 | [
"MIT"
] | null | null | null | Tests/TaskTypeTests.hpp | iarebwan/TaskScheduler | f21a7c1823f9dfe1e495596666d072ca08b234b7 | [
"MIT"
] | 1 | 2022-01-27T05:15:36.000Z | 2022-01-27T05:15:36.000Z | #ifndef __TASK_TYPE_TESTS_HPP__
#define __TASK_TYPE_TESTS_HPP__
#include "../OrderTasks.hpp"
#include "../OrderByTaskType.hpp"
#include <vector>
#include <iostream>
#include "gtest/gtest.h"
using namespace std;
void printTasks(vector<Task*>& ListOfTasks, OrderTasks* orderType, string classification = "") {
orderType... | 32.242424 | 541 | 0.692132 | iarebwan |
8a3582f6d37055f6fdaf63fdced671951853af76 | 160 | hpp | C++ | src/libmlog/global.hpp | publiqnet/mesh.pp | a85e393c0de82b5b477b48bf23f0b89f6ac82c26 | [
"MIT"
] | 1 | 2020-02-22T16:50:11.000Z | 2020-02-22T16:50:11.000Z | src/libmlog/global.hpp | publiqnet/mesh.pp | a85e393c0de82b5b477b48bf23f0b89f6ac82c26 | [
"MIT"
] | null | null | null | src/libmlog/global.hpp | publiqnet/mesh.pp | a85e393c0de82b5b477b48bf23f0b89f6ac82c26 | [
"MIT"
] | null | null | null | #pragma once
#include <mesh.pp/global.hpp>
#if defined(LOG_LIBRARY)
#define MLOGSHARED_EXPORT MESH_EXPORT
#else
#define MLOGSHARED_EXPORT MESH_IMPORT
#endif
| 14.545455 | 37 | 0.80625 | publiqnet |
8a379ca1f3921fff31bb6451da7930866a1669a9 | 1,380 | cpp | C++ | openGL/ROOT/src/Primitives/Cube.cpp | alissonads/openGL-c- | 11cd2c6de5957694aeb866120b9898fee90a55b5 | [
"MIT"
] | null | null | null | openGL/ROOT/src/Primitives/Cube.cpp | alissonads/openGL-c- | 11cd2c6de5957694aeb866120b9898fee90a55b5 | [
"MIT"
] | null | null | null | openGL/ROOT/src/Primitives/Cube.cpp | alissonads/openGL-c- | 11cd2c6de5957694aeb866120b9898fee90a55b5 | [
"MIT"
] | null | null | null | #include "Cube.h"
#include "..\CG\MeshFactory.h"
#include "..\Phong\RT_BasicMaterial.h"
#include "..\Phong\RT_PhongMaterial.h"
#include "..\Mage\RT_Mesh.h"
#include "..\Mage\RT_Shader.h"
#include "..\System\RT_Camera.h"
#include "..\Phong\RT_DirectionalLight.h"
#include "..\System\RT_Keyboard.h"
#include <RTmath.h>
Cu... | 24.210526 | 63 | 0.671739 | alissonads |
8a37d15e458aa1e8e9e37c6141d85242a84e8b03 | 6,530 | cpp | C++ | Dynamic Programming/576. Out of Boundary Paths.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Dynamic Programming/576. Out of Boundary Paths.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Dynamic Programming/576. Out of Boundary Paths.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | class Solution {
public:
int findPaths(int m, int n, int N, int i, int j) {
static const long long M = 1000000007;
vector<vector<long long>>table(m, vector<long long>(n,0));
table[i][j] = 1; long long res = 0;
for(long long k = 0; k<N; k++){
vector<vector<long long>>newta... | 32.009804 | 116 | 0.35758 | beckswu |
8a39de8558142fa24514679eccdff414ab89311e | 2,087 | cpp | C++ | src/engine/editor_extensions/src/vertex_gizmo.cpp | moonantonio/halley | c4dfc476ab58539ebb503a5fcdb929413674254d | [
"Apache-2.0"
] | 3,262 | 2016-04-10T15:24:10.000Z | 2022-03-31T17:47:08.000Z | src/engine/editor_extensions/src/vertex_gizmo.cpp | moonantonio/halley | c4dfc476ab58539ebb503a5fcdb929413674254d | [
"Apache-2.0"
] | 53 | 2016-10-09T16:25:04.000Z | 2022-01-10T13:52:37.000Z | src/engine/editor_extensions/src/vertex_gizmo.cpp | moonantonio/halley | c4dfc476ab58539ebb503a5fcdb929413674254d | [
"Apache-2.0"
] | 193 | 2017-10-23T06:08:41.000Z | 2022-03-22T12:59:58.000Z | #include "vertex_gizmo.h"
#include "halley/core/game/scene_editor_interface.h"
#include "halley/core/graphics/painter.h"
#define DONT_INCLUDE_HALLEY_HPP
#include "halley/entity/components/transform_2d_component.h"
using namespace Halley;
VertexGizmo::VertexGizmo(SnapRules snapRules, String componentName, String fiel... | 25.45122 | 109 | 0.729756 | moonantonio |
8a406738a4aaae078f2ac1eb3c0b61a583180d8c | 742 | hpp | C++ | src/MainWindow.hpp | ricardobtez/gtkmm-application | 6af746c11f6577cfd12d93fa692c2fad548de538 | [
"MIT"
] | null | null | null | src/MainWindow.hpp | ricardobtez/gtkmm-application | 6af746c11f6577cfd12d93fa692c2fad548de538 | [
"MIT"
] | 1 | 2020-10-22T20:37:33.000Z | 2020-10-22T20:40:12.000Z | src/MainWindow.hpp | ricardobtez/gtkmm-application | 6af746c11f6577cfd12d93fa692c2fad548de538 | [
"MIT"
] | null | null | null | #ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <gtkmm/applicationwindow.h>
#include <gtkmm/box.h>
#include <gtkmm/builder.h>
class MainWindow : public Gtk::ApplicationWindow
{
public:
MainWindow(void);
virtual ~MainWindow();
protected:
// Signal handlers
void on_menu_others(void);
void on_m... | 20.054054 | 53 | 0.715633 | ricardobtez |
8a48cb5f4d5884417b36cd4e87219976f0ebffa4 | 30,711 | cpp | C++ | deps/libgeos/geos/util/geosop/GeomFunction.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 42 | 2021-03-26T17:34:52.000Z | 2022-03-18T14:15:31.000Z | deps/libgeos/geos/util/geosop/GeomFunction.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 29 | 2021-06-03T14:24:01.000Z | 2022-03-23T15:43:58.000Z | deps/libgeos/geos/util/geosop/GeomFunction.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 8 | 2021-05-14T19:26:37.000Z | 2022-03-21T13:44:42.000Z | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Martin Davis
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* b... | 43.377119 | 131 | 0.614405 | khrushjing |
8a4c26eff9fd2b1e02a0c0747fc4142fb7e28350 | 494 | cc | C++ | utils/weights_test.cc | agesmundo/FasterCubePruning | f80150140b5273fd1eb0dfb34bdd789c4cbd35e6 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 1 | 2019-06-03T00:44:01.000Z | 2019-06-03T00:44:01.000Z | utils/weights_test.cc | jhclark/cdec | 237ddc67ffa61da310e19710f902d4771dc323c2 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | null | null | null | utils/weights_test.cc | jhclark/cdec | 237ddc67ffa61da310e19710f902d4771dc323c2 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 1 | 2021-02-19T12:44:54.000Z | 2021-02-19T12:44:54.000Z | #include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <gtest/gtest.h>
#include "weights.h"
#include "tdict.h"
using namespace std;
class WeightsTest : public testing::Test {
protected:
virtual void SetUp() { }
virtual void TearDown() { }
};
TEST_F(WeightsTest,Load) {
Wei... | 17.642857 | 42 | 0.680162 | agesmundo |
8a51daf50041c469bdb138b5fb747123ebb8bd27 | 23,611 | cc | C++ | chrome/services/sharing/nearby/nearby_connections.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/services/sharing/nearby/nearby_connections.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/services/sharing/nearby/nearby_connections.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/services/sharing/nearby/nearby_connections.h"
#include <algorithm>
#include "ash/services/nearby/public/mojom/nearby_connections_types.... | 38.706557 | 80 | 0.649951 | chromium |
8a52281d0d28206e88109bb087e388cbf970c4f5 | 1,024 | cpp | C++ | TimeEntry.cpp | ChristianLightServices/ClockifyTrayIcons | 568f9635ff1b304773e7fe8f143c1044c7b94ad4 | [
"MIT"
] | 1 | 2021-09-17T08:09:32.000Z | 2021-09-17T08:09:32.000Z | TimeEntry.cpp | ChristianLightServices/ClockifyTrayIcons | 568f9635ff1b304773e7fe8f143c1044c7b94ad4 | [
"MIT"
] | null | null | null | TimeEntry.cpp | ChristianLightServices/ClockifyTrayIcons | 568f9635ff1b304773e7fe8f143c1044c7b94ad4 | [
"MIT"
] | null | null | null | #include "TimeEntry.h"
#include "ClockifyManager.h"
#include "JsonHelper.h"
TimeEntry::TimeEntry(nlohmann::json entry, QObject *parent)
: QObject{parent}
{
try
{
m_id = entry["id"].get<QString>();
auto projectId = entry["projectId"].get<QString>();
m_project = {projectId, ClockifyManager::instance()->project... | 20.897959 | 116 | 0.6875 | ChristianLightServices |
8a524ae537a83365004b3acc5b57c39dd2b3b14e | 422 | hpp | C++ | plugin-sdk/include/piga/daemon/sdk/AppManager.hpp | Pigaco/daemon | df28306a7f8cdd2d263ab8f5663eefc1aabe876f | [
"Apache-2.0"
] | 1 | 2016-11-17T07:13:18.000Z | 2016-11-17T07:13:18.000Z | plugin-sdk/include/piga/daemon/sdk/AppManager.hpp | Pigaco/daemon | df28306a7f8cdd2d263ab8f5663eefc1aabe876f | [
"Apache-2.0"
] | null | null | null | plugin-sdk/include/piga/daemon/sdk/AppManager.hpp | Pigaco/daemon | df28306a7f8cdd2d263ab8f5663eefc1aabe876f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <unordered_map>
#include <memory>
#include <string>
#include <piga/daemon/sdk/App.hpp>
namespace piga
{
namespace daemon
{
namespace sdk
{
class AppManager
{
public:
typedef std::shared_ptr<App> AppPtr;
typedef std::unordered_map<std::string, AppPtr> AppMap;
virtual AppPtr oper... | 15.62963 | 59 | 0.696682 | Pigaco |
8a529df2caf2691ea9692c833b11885976700c0d | 659 | cpp | C++ | Clases Virtuales.cpp | monicastle/C_PDC_06 | e5447d853ae2702341a33cec1448ac500a356540 | [
"MIT"
] | null | null | null | Clases Virtuales.cpp | monicastle/C_PDC_06 | e5447d853ae2702341a33cec1448ac500a356540 | [
"MIT"
] | null | null | null | Clases Virtuales.cpp | monicastle/C_PDC_06 | e5447d853ae2702341a33cec1448ac500a356540 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class B{
public:
void fun1(){
cout << "base-2\n";
}
virtual void fun2() {
cout << "base-2\n";
}
virtual void fun3() {
cout << "base-3\n";
}
virtual void fun4() {
cout << "base-4\n";
}
};
class D: public B{
publ... | 16.475 | 33 | 0.427921 | monicastle |
8a52aa04476e74404cbfb57667d8748fed622fad | 1,013 | cpp | C++ | toki/[Versi Lama] Training Gate TOKI Learning Center/Bab 4. Complete Search/4A. Complete Search I/E.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2019-11-06T15:17:48.000Z | 2019-11-06T15:17:48.000Z | toki/[Versi Lama] Training Gate TOKI Learning Center/Bab 4. Complete Search/4A. Complete Search I/E.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | null | null | null | toki/[Versi Lama] Training Gate TOKI Learning Center/Bab 4. Complete Search/4A. Complete Search I/E.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2018-11-13T08:43:26.000Z | 2018-11-13T08:43:26.000Z | /*input
3
*/
#include <iostream>
#include <algorithm>
#include <vector>
int main(int argc, char const *argv[]){
int n;
bool out_;
long int num;
std::string s = "";
std::vector<std::string> v;
std::vector<long int> v2;
std::cin>>n;
for(int i = 1; i <= n; i++){
s += ('0' + i);
}
do{
v.push_back(s);
}whi... | 18.759259 | 82 | 0.489635 | andraantariksa |
8a52d1852d32a9c4b1183480131a39d7098ff096 | 396 | cpp | C++ | examples/cpp/intro/textfileio.cpp | airgiser/ucb | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | 1 | 2022-01-08T14:59:44.000Z | 2022-01-08T14:59:44.000Z | examples/cpp/intro/textfileio.cpp | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | examples/cpp/intro/textfileio.cpp | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | /*
* \brief Copy one file to anothre, a line at a time.
* \author airfox
*/
#include <string>
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
ifstream fin("Makefile");
ofstream fout("Makefile.2");
string str;
string dest;
while(getline(fin, str))
{
dest += ... | 14.666667 | 53 | 0.570707 | airgiser |
a435e230263dd38004415e0412b3f4866eea5dfa | 2,129 | cc | C++ | src/lib/common/dump_utils.cc | ghsecuritylab/comanche | a8862eaed59045377874b95b120832a0cba42193 | [
"Apache-2.0"
] | 19 | 2017-10-03T16:01:49.000Z | 2021-06-07T10:21:46.000Z | src/lib/common/dump_utils.cc | dnbaker/comanche | 121cd0fa16e55d461b366e83511d3810ea2b11c9 | [
"Apache-2.0"
] | 25 | 2018-02-21T23:43:03.000Z | 2020-09-02T08:47:32.000Z | src/lib/common/dump_utils.cc | dnbaker/comanche | 121cd0fa16e55d461b366e83511d3810ea2b11c9 | [
"Apache-2.0"
] | 19 | 2017-10-24T17:41:40.000Z | 2022-02-22T02:17:18.000Z | /*
eXokernel Development Kit (XDK)
Samsung Research America Copyright (C) 2013
The GNU C 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 Software Foundation; either
version 2.1 of the License, or (at... | 32.753846 | 71 | 0.641616 | ghsecuritylab |
a43a82d7fb087d35421c8b56b8b3d1f3cff6ccbb | 3,229 | hpp | C++ | Tests/kext/FromEvent/ParamsUnion.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | 3,405 | 2015-01-01T04:57:52.000Z | 2022-03-24T06:05:30.000Z | Tests/kext/FromEvent/ParamsUnion.hpp | Hasimir/Karabiner | 6181ef9c9a6aeecd4162720884fbbaa2596ee03a | [
"Unlicense"
] | 606 | 2015-01-04T03:21:16.000Z | 2020-10-09T23:55:10.000Z | Tests/kext/FromEvent/ParamsUnion.hpp | Hasimir/Karabiner | 6181ef9c9a6aeecd4162720884fbbaa2596ee03a | [
"Unlicense"
] | 335 | 2015-01-06T16:43:16.000Z | 2022-02-13T11:12:52.000Z | #ifndef PARAMSUNION_HPP
#define PARAMSUNION_HPP
#include "CallBackWrapper.hpp"
namespace org_pqrs_KeyRemap4MacBook {
class ParamsUnion {
public:
explicit ParamsUnion(const Params_KeyboardEventCallBack& p);
explicit ParamsUnion(const Params_UpdateEventFlagsCallback& p);
explicit ParamsUnion(const Param... | 30.752381 | 94 | 0.690307 | gkb |
a43c69b1e413f9bd56c76b3af84396d0c9fb1618 | 10,720 | cpp | C++ | common/src/utils/IntCodeMachine.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | common/src/utils/IntCodeMachine.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | common/src/utils/IntCodeMachine.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <utils/IntCodeMachine.h>
#include <utils/utils.h>
#define DEBUG_LEVEL 5
#include "common/debug.h"
IntCodeMachine::IntCodeMachine(const std::vector<int64_t> &program) : memory(program), program(program) {
this->pc = 0;
this->eop = false;
this->relativeBase = 0;
t... | 20.037383 | 206 | 0.553918 | bielskij |
a43ea8249efb0776cef097e97a339cc3d04f4ff3 | 2,973 | cpp | C++ | test/module/irohad/multi_sig_transactions/transport_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | null | null | null | test/module/irohad/multi_sig_transactions/transport_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | 2 | 2020-07-07T19:31:15.000Z | 2021-06-01T22:29:48.000Z | test/module/irohad/multi_sig_transactions/transport_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 35.819277 | 80 | 0.723512 | truongnmt |
a443ffec551c537c2fb926db12254f23c465a34d | 4,832 | cpp | C++ | socketio/client/src/rtsp/ffmpeg/mpegaudiodata.cpp | eagle3dstreaming/webrtc | fef9b3652f7744f722785fc1f4cc6b099f4c7aa7 | [
"BSD-3-Clause"
] | null | null | null | socketio/client/src/rtsp/ffmpeg/mpegaudiodata.cpp | eagle3dstreaming/webrtc | fef9b3652f7744f722785fc1f4cc6b099f4c7aa7 | [
"BSD-3-Clause"
] | null | null | null | socketio/client/src/rtsp/ffmpeg/mpegaudiodata.cpp | eagle3dstreaming/webrtc | fef9b3652f7744f722785fc1f4cc6b099f4c7aa7 | [
"BSD-3-Clause"
] | null | null | null | /*
* MPEG Audio common tables
* copyright (c) 2002 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg 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 Software Foundation; either
* version 2.1 of the Licens... | 32.42953 | 80 | 0.457161 | eagle3dstreaming |
a448dbe327562ef0827330e5e6811a52a3a6e8eb | 5,568 | cpp | C++ | src/event_base_tests.cpp | Lizb3th/rpt | edd5e3055ee2fbad03c92900aa8e9cec6c0d2ee4 | [
"MIT"
] | null | null | null | src/event_base_tests.cpp | Lizb3th/rpt | edd5e3055ee2fbad03c92900aa8e9cec6c0d2ee4 | [
"MIT"
] | null | null | null | src/event_base_tests.cpp | Lizb3th/rpt | edd5e3055ee2fbad03c92900aa8e9cec6c0d2ee4 | [
"MIT"
] | null | null | null | // This is a part of the RPT (Realy Poor Tech) Framework.
// Copyright (C) Elizabeth Williams
// All rights reserved.
#include "pch.h"
#include "detail/event_base.hpp"
#include <vector>
#include <future>
#include <optional>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace rpt::event_detail_... | 22.361446 | 117 | 0.668822 | Lizb3th |
a44bd8fdbd3e5b4ddcb338a00d63eb81b28af541 | 967 | cpp | C++ | Engine2D/TestCameraScript.cpp | FroKCreativeTM/FroKEngine | a1e61a0982919efa42bfcbd1e93aacc049966afd | [
"BSD-3-Clause"
] | 1 | 2022-01-10T13:00:27.000Z | 2022-01-10T13:00:27.000Z | Engine2D/TestCameraScript.cpp | FroKCreativeTM/FroKEngine | a1e61a0982919efa42bfcbd1e93aacc049966afd | [
"BSD-3-Clause"
] | null | null | null | Engine2D/TestCameraScript.cpp | FroKCreativeTM/FroKEngine | a1e61a0982919efa42bfcbd1e93aacc049966afd | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "TestCameraScript.h"
#include "Transform.h"
#include "Camera.h"
#include "GameObject.h"
#include "Input.h"
#include "Timer.h"
#include "SceneManager.h"
#include "CollisionManager.h"
TestCameraScript::TestCameraScript()
{
}
TestCameraScript::~TestCameraScript()
{
}
void TestCameraScript::Lat... | 22.488372 | 61 | 0.711479 | FroKCreativeTM |
a44be3be92826e920fd75ce827b41170f0f8b49a | 2,148 | cpp | C++ | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/11 - 12 - [SP] Greedy/12 - [SP] Greedy/onTopic/4.UVa [11157].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/11 - 12 - [SP] Greedy/12 - [SP] Greedy/onTopic/4.UVa [11157].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/11 - 12 - [SP] Greedy/12 - [SP] Greedy/onTopic/4.UVa [11157].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// input handle
#define iln() scanf("\n") //scan new line
#define in(n) scanf("%d",&n) //scan int
#define ins(n) scanf("%s",n) //scan char[]
#define inc(n) scanf("%c ",&n) //scan char
#define inf(n) scanf("%lf",&n) //scan double/float
#define inl(n) scanf("%lld",&n) //scan... | 29.027027 | 91 | 0.562849 | mohamedGamalAbuGalala |
a44d5554d82ffd1f84b25f42e6e66bff8a1bb379 | 466 | cpp | C++ | problemsets/UVA/10339.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/10339.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/10339.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int k, m;
while (cin >> k >> m) {
if (k == m) { cout << k << " " << m << " " << "12:00" << endl; continue; }
int n... | 17.259259 | 76 | 0.521459 | juarezpaulino |
a451c93cbdd6822e4ac7ca032953bb3d3d78014f | 1,047 | cc | C++ | src/binding.cc | indutny/uv_link_t-binding | 9ad7dfee9d052077a0e67c561ce258436e3278f9 | [
"Unlicense",
"MIT"
] | 1 | 2020-03-27T05:44:03.000Z | 2020-03-27T05:44:03.000Z | src/binding.cc | indutny/uv_link_t-binding | 9ad7dfee9d052077a0e67c561ce258436e3278f9 | [
"Unlicense",
"MIT"
] | null | null | null | src/binding.cc | indutny/uv_link_t-binding | 9ad7dfee9d052077a0e67c561ce258436e3278f9 | [
"Unlicense",
"MIT"
] | null | null | null | #include "nan.h"
#include "uv.h"
#include "uv_link_t.h"
#include "src/observer.h"
#include "src/source.h"
namespace node {
namespace link {
using namespace v8;
enum AuxType {
kChainType,
kUnchainType
};
template <AuxType type>
static NAN_METHOD(AuxMethod) {
if (info.Length() != 2 || !info[0]->IsExternal() ||... | 21.367347 | 77 | 0.679083 | indutny |
a45797c83e6a8429b39081fcae5a55821ce06a4d | 3,325 | cpp | C++ | test/context.cpp | selfienetworks/COSE-C | 97d1805e71b7a6770093c5e6790d46611680d563 | [
"BSD-3-Clause"
] | 25 | 2016-07-15T12:11:42.000Z | 2021-11-19T20:52:46.000Z | test/context.cpp | selfienetworks/COSE-C | 97d1805e71b7a6770093c5e6790d46611680d563 | [
"BSD-3-Clause"
] | 96 | 2015-09-04T05:12:01.000Z | 2021-12-30T08:39:56.000Z | test/context.cpp | selfienetworks/COSE-C | 97d1805e71b7a6770093c5e6790d46611680d563 | [
"BSD-3-Clause"
] | 21 | 2015-05-27T03:27:21.000Z | 2021-08-10T15:10:10.000Z | #include <stdlib.h>
#ifdef _MSC_VER
#endif
#include <stdio.h>
#include <memory.h>
#include <assert.h>
#include <cn-cbor/cn-cbor.h>
#include <cose/cose.h>
#ifdef USE_CBOR_CONTEXT
#include "context.h"
typedef struct {
cn_cbor_context context;
byte *pFirst;
int iFailLeft;
int allocCount;
} MyContext;
typedef struc... | 19.219653 | 76 | 0.628271 | selfienetworks |
a45a5498565e04e84c82759356634ba7a02f1d32 | 3,074 | cpp | C++ | NostaleLogin/dllmain.cpp | hatz02/NostaleLogin | 3961be0622d4621af7a95a6a8864ca90ab5ba6c8 | [
"MIT"
] | null | null | null | NostaleLogin/dllmain.cpp | hatz02/NostaleLogin | 3961be0622d4621af7a95a6a8864ca90ab5ba6c8 | [
"MIT"
] | null | null | null | NostaleLogin/dllmain.cpp | hatz02/NostaleLogin | 3961be0622d4621af7a95a6a8864ca90ab5ba6c8 | [
"MIT"
] | null | null | null | #include "NewServerSelectWidget.h"
#include <string>
int main()
{
const int BUFFER_SIZE = 2;
const char* pipeName = "\\\\.\\pipe\\GflessClient";
int language, server, channel;
HANDLE hPipe;
DWORD dwMode;
BOOL fSuccess;
std::string message;
char readBuffer[BUFFER_SIZE];
NewServerSele... | 25.831933 | 97 | 0.672414 | hatz02 |
a45b34c3fedf4055b7a309684151c2d22b448015 | 3,802 | cpp | C++ | src/lib/texturelib/InputImage.cpp | hexgear-studio/ds_mod_tools | 3fe0cad89848c9d0fca8a4139a0491d188497636 | [
"MIT"
] | 112 | 2015-01-15T21:36:02.000Z | 2021-12-28T19:19:01.000Z | src/lib/texturelib/InputImage.cpp | hexgear-studio/ds_mod_tools | 3fe0cad89848c9d0fca8a4139a0491d188497636 | [
"MIT"
] | 6 | 2017-03-14T00:42:42.000Z | 2022-01-06T23:09:18.000Z | src/lib/texturelib/InputImage.cpp | hexgear-studio/ds_mod_tools | 3fe0cad89848c9d0fca8a4139a0491d188497636 | [
"MIT"
] | 35 | 2015-01-15T21:34:36.000Z | 2022-01-29T07:42:34.000Z | #include "pch.h"
#include "InputImage.h"
InputImage::InputImage( const std::string& filename )
: mDIB( NULL )
{
FREE_IMAGE_FORMAT fif = FIF_UNKNOWN;
fif = FreeImage_GetFileType( filename.c_str(), 0 );
if( fif == FIF_UNKNOWN ) fif = FreeImage_GetFIFFromFilename( filename.c_str() );
if( fif == FIF_UNKNOWN ) thro... | 20.551351 | 92 | 0.652814 | hexgear-studio |
a45b4bd8167be30faf817dce3e354605d37eae5a | 285 | cpp | C++ | TOJ/toj 499.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | TOJ/toj 499.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | TOJ/toj 499.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main() {
// ios::sync_with_stdio(false);
// cin.tie(0);
string a, b;
int n;
getline(cin, a);
cin>>n;
cin.ignore();
for(int q=0; q<n; q++){
getline(cin, b);
if(a==b){
cout<<q+1<<" ";
}
}
cout<<endl;
}
| 14.25 | 31 | 0.550877 | Xi-Plus |
a4616b5b2ccfbf82f8cc1e6d054758e76a68acf1 | 358 | cpp | C++ | my_awesome_application/src/main.cpp | Life4gal/galFormat | 98a2ef98944dfc909a9613f4952565d7f521b833 | [
"Unlicense"
] | 4 | 2021-03-13T06:48:27.000Z | 2021-03-23T12:12:48.000Z | my_awesome_application/src/main.cpp | Life4gal/galFormat | 98a2ef98944dfc909a9613f4952565d7f521b833 | [
"Unlicense"
] | 1 | 2021-06-21T15:18:17.000Z | 2021-09-18T06:01:07.000Z | my_awesome_application/src/main.cpp | Life4gal/galStarterTemplate | 98a2ef98944dfc909a9613f4952565d7f521b833 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <fmt/format.h>
#include <module1/hello1.hpp>
#include <module1/hey1.hpp>
#include <module2/hello2.hpp>
int main()
{
std::cout << fmt::format(
"module1::hello1 -> {}\nmodule2::hello2 -> {}\nmodule1::hey -> {}\n",
my::printer1::say_something(),
my::printer2::say_something(),
m... | 19.888889 | 72 | 0.645251 | Life4gal |
a462d6a331c8b201d3b0d59912b8407dfac57231 | 6,963 | cpp | C++ | src/hotspot/share/gc/shared/scavengableNMethods.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | src/hotspot/share/gc/shared/scavengableNMethods.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | src/hotspot/share/gc/shared/scavengableNMethods.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 28.536885 | 91 | 0.691656 | siweilxy |
a4660174e14ca7c4a94663a9aec8beaf6f041c3e | 4,477 | cxx | C++ | Common/DataModel/Testing/Cxx/TestPolygonBoundedTriangulate.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | 1 | 2019-05-31T14:00:53.000Z | 2019-05-31T14:00:53.000Z | Common/DataModel/Testing/Cxx/TestPolygonBoundedTriangulate.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | null | null | null | Common/DataModel/Testing/Cxx/TestPolygonBoundedTriangulate.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: TestPolygon.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is d... | 29.071429 | 93 | 0.651552 | LongerVisionUSA |
a4676837163ed602733b36b27d3fd29ba3bf4f1d | 647 | cpp | C++ | src/ui/ScrollBar.cpp | alikins/Rack | 614c6d09883569563bc8a7c41513390babf2cabb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/ui/ScrollBar.cpp | alikins/Rack | 614c6d09883569563bc8a7c41513390babf2cabb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/ui/ScrollBar.cpp | alikins/Rack | 614c6d09883569563bc8a7c41513390babf2cabb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | #include "ui.hpp"
#include "window.hpp"
namespace rack {
void ScrollBar::draw(NVGcontext *vg) {
bndScrollBar(vg, 0.0, 0.0, box.size.x, box.size.y, state, offset, size);
}
void ScrollBar::onDragStart(EventDragStart &e) {
state = BND_ACTIVE;
windowCursorLock();
}
void ScrollBar::onDragMove(EventDragMove &e) {
S... | 19.606061 | 73 | 0.718702 | alikins |
a46d0c80798e7154762f31345a834ab66e790d40 | 1,935 | cpp | C++ | test.cpp | wisd0me/plog-converter | e534fa5873c9036f5193a28be19e1ded9738586a | [
"Apache-2.0"
] | null | null | null | test.cpp | wisd0me/plog-converter | e534fa5873c9036f5193a28be19e1ded9738586a | [
"Apache-2.0"
] | null | null | null | test.cpp | wisd0me/plog-converter | e534fa5873c9036f5193a28be19e1ded9738586a | [
"Apache-2.0"
] | null | null | null | // 2006-2008 (c) Viva64.com Team
// 2008-2020 (c) OOO "Program Verification Systems"
// 2020 (c) PVS-Studio LLC
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "warning.h"
#include "application.h"
using namespace PlogConverter;
TEST_CASE("Warning::GetErrorCode")
{
Warning msg;
msg.code = "V112";
REQ... | 26.148649 | 74 | 0.668217 | wisd0me |
a46d47446e8c45c95d951bd91a24368a7ba08853 | 415 | cpp | C++ | trabalhos/trab1/paises.cpp | senapk/fup_2014_2 | 5fc2986724f2e5fb912524b6208744b7295c6347 | [
"Apache-2.0"
] | null | null | null | trabalhos/trab1/paises.cpp | senapk/fup_2014_2 | 5fc2986724f2e5fb912524b6208744b7295c6347 | [
"Apache-2.0"
] | null | null | null | trabalhos/trab1/paises.cpp | senapk/fup_2014_2 | 5fc2986724f2e5fb912524b6208744b7295c6347 | [
"Apache-2.0"
] | null | null | null | /*
Faça um código que receba um dos países abaixo e retorne o continente
em que ele se encontra. Use o comando switch.
*/
#include <iostream>
using namespace std;
enum Pais { Brasil, Italia, EUA, Japao, Australia};
enum Continente { AmericaSul, AmericaNorte, Europa, Asia, Australia };
Continente acharLocalizacao( Pai... | 20.75 | 70 | 0.715663 | senapk |
a46d61d25bc2c1095e446b7f126ebead1ef2832d | 4,924 | cpp | C++ | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/Serial/Nonin/FrameReceiver.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/Serial/Nonin/FrameReceiver.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/Serial/Nonin/FrameReceiver.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | /// FrameReceiver.cpp
/// This file has methods to take input from FrameBuffer and output the
/// frame on availability.
// Copyright (c) 2020 Pez-Globo and the Pufferfish project contributors
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... | 37.022556 | 94 | 0.718928 | raavilagoo |
a46fb1e2117cae5873e3a18f93694220ac78f257 | 1,782 | cpp | C++ | src/ScreenCaptureLib/ScreenCapture.cpp | Postrediori/OceanSimulation | ff836f9c92f43e62a3e5c2befc065784d3c36ce0 | [
"MIT"
] | 14 | 2017-12-18T08:22:12.000Z | 2021-04-12T13:05:42.000Z | src/ScreenCaptureLib/ScreenCapture.cpp | Postrediori/OceanSimulation | ff836f9c92f43e62a3e5c2befc065784d3c36ce0 | [
"MIT"
] | 4 | 2017-12-20T09:41:15.000Z | 2020-06-26T10:56:48.000Z | src/ScreenCaptureLib/ScreenCapture.cpp | Postrediori/OceanSimulation | ff836f9c92f43e62a3e5c2befc065784d3c36ce0 | [
"MIT"
] | 2 | 2018-01-31T13:11:28.000Z | 2019-05-20T04:04:28.000Z |
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#include "stdafx.h"
#include "ScreenCapture.h"
std::string ScreenCapture::GetNextFileName(ScreenCaptureFormat format) {
static int counter = 0;
std::stringstream s;
s << "capture" << (counter++);
if (format == ScreenCaptureFormat::Pn... | 33.622642 | 126 | 0.673962 | Postrediori |
a4707414405f82069bd4a6783a2f0f6b0c55b20a | 252 | hpp | C++ | Examples/ViewFactor/ViewFactorProcessData.hpp | FilipovicLado/ViennaLS | 39d97c2fc0d36f250bebaaa6879747eb9a7ed23a | [
"MIT"
] | null | null | null | Examples/ViewFactor/ViewFactorProcessData.hpp | FilipovicLado/ViennaLS | 39d97c2fc0d36f250bebaaa6879747eb9a7ed23a | [
"MIT"
] | null | null | null | Examples/ViewFactor/ViewFactorProcessData.hpp | FilipovicLado/ViennaLS | 39d97c2fc0d36f250bebaaa6879747eb9a7ed23a | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <limits>
template <class T> struct ViewFactorProcessDataType {
double gridDelta = 0.;
T trenchDiameter;
T trenchDepth;
T topRate;
T processTime;
T timeStep;
hrleVectorType<double, 2> taperAngle;
}; | 18 | 53 | 0.72619 | FilipovicLado |
a473e478510c918fea8e75918c2a79a40882615b | 5,900 | cpp | C++ | src/clients/data/arcmkdir.cpp | maikenp/arc | 994ec850c73affb75e81ab9056cb8146ba75fa9f | [
"Apache-2.0"
] | null | null | null | src/clients/data/arcmkdir.cpp | maikenp/arc | 994ec850c73affb75e81ab9056cb8146ba75fa9f | [
"Apache-2.0"
] | null | null | null | src/clients/data/arcmkdir.cpp | maikenp/arc | 994ec850c73affb75e81ab9056cb8146ba75fa9f | [
"Apache-2.0"
] | null | null | null | // -*- indent-tabs-mode: nil -*-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#include <list>
#include <unistd.h>
#include <arc/ArcLocation.h>
#include <arc/Logger.h>
#include <arc/StringConv.h>
#include <arc/URL.h>
#include <arc/UserConfig.h>
#include <arc/credential/Credential.h>
#include <ar... | 31.891892 | 95 | 0.628305 | maikenp |
a475881ea7a61bde038340060a7786eb7384cbd2 | 318 | cc | C++ | tests/ManufacturerTest.cc | martind1111/wifi_pi_survey | 9a28f47a6096df2f596b9e62bb984a0922712cf8 | [
"MIT"
] | null | null | null | tests/ManufacturerTest.cc | martind1111/wifi_pi_survey | 9a28f47a6096df2f596b9e62bb984a0922712cf8 | [
"MIT"
] | null | null | null | tests/ManufacturerTest.cc | martind1111/wifi_pi_survey | 9a28f47a6096df2f596b9e62bb984a0922712cf8 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <netinet/ether.h>
#include "HardwareHelper.h"
// Test the manufacturer API.
TEST(ManufacturerTest, GetManufacturer) {
ether_addr addr = { 0x00, 0x03, 0x93, 0x01, 0x02, 0x03 };
const char* manuf = HardwareHelper::GetManufacturer(&addr);
EXPECT_STREQ(manuf, "Apple");
}
| 22.714286 | 63 | 0.704403 | martind1111 |
a47c12d22aa31b210439a83ff6bcd30e874fa813 | 11,968 | cpp | C++ | lib/src/calibration/calibrationUtils.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | lib/src/calibration/calibrationUtils.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | lib/src/calibration/calibrationUtils.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "calibrationUtils.hpp"
#include <util/pngutil.hpp>
#include <opencv2/imgproc.hpp>
namespace VideoStitch {
namespace Calibration {
void drawMatches(const RigCvImages& rigInputImages, int idinput, videoreaderid_t idcam1, videoreaderid_... | 44.325926 | 120 | 0.611965 | tlalexander |
a47db8823f364cce2e1c8d336cf5ff156ff800bd | 7,083 | cpp | C++ | src/sage/symbolic/ginac/fderivative.cpp | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/symbolic/ginac/fderivative.cpp | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/symbolic/ginac/fderivative.cpp | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | /** @file fderivative.cpp
*
* Implementation of abstract derivatives of functions. */
/*
* GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
*
* 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... | 27.034351 | 151 | 0.690527 | UCD4IDS |
a47f0a07dd3e298d314efa97b9c94980000b7248 | 10,653 | cpp | C++ | src/physics/bullet/bullet_physics_system.cpp | irisengine/iris | 0deb12f5d00c67bf0dde1a702344a2cf73925db6 | [
"BSL-1.0"
] | 85 | 2021-10-16T14:58:23.000Z | 2022-03-26T11:05:37.000Z | src/physics/bullet/bullet_physics_system.cpp | MaximumProgrammer/iris | cbc2f571bd8d485cdd04f903dcb867e699314682 | [
"BSL-1.0"
] | null | null | null | src/physics/bullet/bullet_physics_system.cpp | MaximumProgrammer/iris | cbc2f571bd8d485cdd04f903dcb867e699314682 | [
"BSL-1.0"
] | 2 | 2021-10-17T16:57:13.000Z | 2021-11-14T19:11:30.000Z | ////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at //
// https://www.boost.org/LICENSE_1_0.txt) ... | 31.705357 | 118 | 0.673989 | irisengine |
a480d41967019f6eef6707899c47245c784ebc20 | 9,007 | cc | C++ | src/QuadraticCurvatureConstraint.cc | jcupitt/Deformable | e12c08bd744efb8c701dfdee2c363820b9562c81 | [
"Apache-2.0"
] | 5 | 2017-06-09T14:39:01.000Z | 2021-04-28T00:35:39.000Z | src/QuadraticCurvatureConstraint.cc | jcupitt/Deformable | e12c08bd744efb8c701dfdee2c363820b9562c81 | [
"Apache-2.0"
] | 13 | 2016-01-11T17:25:26.000Z | 2021-12-19T23:17:42.000Z | src/QuadraticCurvatureConstraint.cc | jcupitt/Deformable | e12c08bd744efb8c701dfdee2c363820b9562c81 | [
"Apache-2.0"
] | 7 | 2016-03-17T03:48:02.000Z | 2020-10-09T10:15:45.000Z | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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
*
... | 31.493007 | 93 | 0.57633 | jcupitt |
a4812e6719f610059b1bc6ebf19ab882044db088 | 8,095 | cpp | C++ | src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 1999-2014 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Jeremy Friesner
* Jessica Hamilton, jessica.l.hamilton@gmail.com
* John Scipione, jscipione@gmail.com
*/
#include "KeyCommandMap.h"
#include <stdio.h>
#include <Beep.h>
#include <Ent... | 22.611732 | 78 | 0.657319 | Kirishikesan |
a48173204e89a9dc161c13550ce8b842efe3ae8c | 2,821 | hpp | C++ | android-31/java/io/PrintStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/io/PrintStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/io/PrintStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./FilterOutputStream.hpp"
class JByteArray;
class JCharArray;
class JObjectArray;
namespace java::io
{
class BufferedWriter;
}
namespace java::io
{
class File;
}
namespace java::io
{
class OutputStream;
}
namespace java::io
{
class OutputStreamWriter;
}
class JString;
class JObject;
class J... | 28.21 | 173 | 0.734491 | YJBeetle |
a482833e6c7c6f5ca5abb6619aef6deb3578a372 | 7,794 | cpp | C++ | tsf/src/v20180326/model/MonitorOverview.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tsf/src/v20180326/model/MonitorOverview.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tsf/src/v20180326/model/MonitorOverview.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* 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
... | 30.928571 | 148 | 0.715679 | sinjoywong |
a4830eed7cacc0372727720736166d2bb897188c | 13,846 | cpp | C++ | PlatformIO/esp32-r4ge-pro-prong/src/main.cpp | DigiTorus86/ESP32-R4ge-Pro | 786127b87491dcdd2bbc928b1a68968a97038aac | [
"MIT"
] | 1 | 2021-01-08T23:09:58.000Z | 2021-01-08T23:09:58.000Z | PlatformIO/esp32-r4ge-pro-prong/src/main.cpp | DigiTorus86/ESP32-R4ge-Pro | 786127b87491dcdd2bbc928b1a68968a97038aac | [
"MIT"
] | null | null | null | PlatformIO/esp32-r4ge-pro-prong/src/main.cpp | DigiTorus86/ESP32-R4ge-Pro | 786127b87491dcdd2bbc928b1a68968a97038aac | [
"MIT"
] | 2 | 2021-06-28T06:27:04.000Z | 2022-01-11T12:57:55.000Z | /***************************************************
ESP32 R4ge Prong
Requires:
- ESP32 R4ge Pro
Copyright (c) 2020 Paul Pagel
This is free software; see the license.txt file for more information.
There is no warranty; not even for merchantability or fitness for a particular purpose.
********************************... | 22.296296 | 123 | 0.664524 | DigiTorus86 |
a4872d9a660d3f47f1c639a2a71dd46c6679986c | 5,289 | cpp | C++ | evolutionary_prototype(final code)/collision_controller.cpp | egeorgiev1/UR10_motion_planner | e51228f88626eb4be8d9d98c25b37050dc9c8b31 | [
"Apache-2.0"
] | 1 | 2021-11-17T01:02:05.000Z | 2021-11-17T01:02:05.000Z | evolutionary_prototype(final code)/collision_controller.cpp | egeorgiev1/UR10_motion_planner | e51228f88626eb4be8d9d98c25b37050dc9c8b31 | [
"Apache-2.0"
] | null | null | null | evolutionary_prototype(final code)/collision_controller.cpp | egeorgiev1/UR10_motion_planner | e51228f88626eb4be8d9d98c25b37050dc9c8b31 | [
"Apache-2.0"
] | null | null | null | #include "test_fcl_utility.h"
#include "collision_controller.h"
#include <iostream>
using namespace std;
CollisionController::CollisionController(
CollisionModel* robot_collision_model,
PointCloudView* point_cloud_view,
fcl::BroadPhaseCollisionManager<double>* scene_collision_manager
) :
_robot_colli... | 37.778571 | 103 | 0.619966 | egeorgiev1 |
a4878ef2f2de4abfd9cb382340719f9b4f1d0ba4 | 805 | cpp | C++ | Queue/InbuiltQueue.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | 2 | 2021-05-21T17:10:02.000Z | 2021-05-29T05:13:06.000Z | Queue/InbuiltQueue.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | Queue/InbuiltQueue.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
// # Application of Queue
// -> Single Resource and Multiple Consumers
// -> Synchronization between slow and fast devices
// -> In Operating System (Semaphores, FCFS Sheduling,Spooling, buffers for devices like Keyboard)
// -> In computer Networks (Routers/Swi... | 21.184211 | 98 | 0.590062 | sohamnandi77 |
a493ba13372e556f1a83390d71e5ef075334c55c | 4,846 | cxx | C++ | plugins/cg_fltk/fltk_layout_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | plugins/cg_fltk/fltk_layout_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | plugins/cg_fltk/fltk_layout_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | #include "fltk_layout_group.h"
#include <cgv/utils/scan.h>
#include <cgv/gui/provider.h>
using namespace cgv::base;
using namespace cgv::gui;
#ifdef WIN32
#pragma warning (disable:4311)
#endif
#include <fltk/Group.h>
#include <fltk/draw.h>
#include <fltk/Cursor.h>
#include <fltk/events.h>
#include <... | 25.640212 | 130 | 0.677466 | MarioHenze |
a4951e9fe8e5df1fc6f9997d072e549859fc6348 | 510 | cc | C++ | CPPQEDutils/ComplexArrayExtensions.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | null | null | null | CPPQEDutils/ComplexArrayExtensions.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | null | null | null | CPPQEDutils/ComplexArrayExtensions.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | null | null | null | // Copyright András Vukics 2006–2020. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
#include "ComplexArrayExtensions.h"
namespace blitzplusplus {
namespace dodirect {
using namespace linalg;
using namespace blitz::tensor;
template<> void doDirect<true >(CMatrix& m, c... | 26.842105 | 132 | 0.737255 | bartoszek |
a49806fe781ebbfca44d86382b4aafae67482d82 | 2,029 | cpp | C++ | collection/cp/bcw_codebook-master/codes/Geometry/KD_tree/p1_KD_Tree.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/codes/Geometry/KD_tree/p1_KD_Tree.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/codes/Geometry/KD_tree/p1_KD_Tree.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | const INF = 1100000000;
class NODE{ public:
int x,y,x1,x2,y1,y2;
int i,f;
NODE *L,*R;
};
inline long long dis(NODE& a,NODE& b){
long long dx=a.x-b.x;
long long dy=a.y-b.y;
return dx*dx+dy*dy;
}
NODE node[100000];
bool cmpx(const NODE& a,const NODE& b){ return a.x<b.x; }
bool cmpy(const NODE& a,const NODE& b){ re... | 21.357895 | 57 | 0.559389 | daemonslayer |
a49b585d1de37a01b3dce14c750ecb09dcbeec0d | 155 | hh | C++ | include/cppti/Utils.hh | Ethiraric/cpptalksindex | 0f342f944d3da6d456694bee199e89570b07588f | [
"MIT"
] | 4 | 2020-10-06T10:12:59.000Z | 2021-05-22T07:41:29.000Z | include/cppti/Utils.hh | Ethiraric/cpptalksindex | 0f342f944d3da6d456694bee199e89570b07588f | [
"MIT"
] | null | null | null | include/cppti/Utils.hh | Ethiraric/cpptalksindex | 0f342f944d3da6d456694bee199e89570b07588f | [
"MIT"
] | null | null | null | #ifndef CPPTI_UTILS_HH_
#define CPPTI_UTILS_HH_
#include <string>
namespace cppti
{
void toSnakeCase(std::string& str);
}
#endif /* !CPPTI_UTILS_HH_ */
| 12.916667 | 35 | 0.748387 | Ethiraric |
a49ca13224da26d48fc919448637421a355fa7fc | 10,177 | cpp | C++ | utils/preprocess/beer.cpp | charlespnh/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | 1 | 2021-09-13T04:01:12.000Z | 2021-09-13T04:01:12.000Z | utils/preprocess/beer.cpp | Phuc2002/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | null | null | null | utils/preprocess/beer.cpp | Phuc2002/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <utility>
#include <cstdio>
#include <iostream>
using namespace std;
#include "../../include/preprocess/beer.h"
#include "../../include/outerplanar.h"
#include "../../include/graph/dcel.h"
double beer::weightB(struct halfedge* e) { return dcel::edgeB(e)->distB; }
do... | 34.498305 | 132 | 0.606466 | charlespnh |
a49faf9c953fe1d6822b9a12c44d27de9e4c127c | 49 | cpp | C++ | SFINAE/Foo.cpp | dave-c/workspace-snippets | f1ace623023f185f972fa35ac57c9fe8a651ffae | [
"MIT"
] | null | null | null | SFINAE/Foo.cpp | dave-c/workspace-snippets | f1ace623023f185f972fa35ac57c9fe8a651ffae | [
"MIT"
] | null | null | null | SFINAE/Foo.cpp | dave-c/workspace-snippets | f1ace623023f185f972fa35ac57c9fe8a651ffae | [
"MIT"
] | null | null | null | #include "Foo.h"
Foo::Foo()
{}
Foo::~Foo()
{}
| 5.444444 | 16 | 0.469388 | dave-c |
a49ff3a3d231179b3562f06585a217e626948b88 | 915 | cpp | C++ | Pertemuan 1/tugas5.cpp | riqulaziz/Computer-Programming-Biomedical-Engineering-UNAIR | 90d96c177fe1d3019ec371d1be3e4a9857557e69 | [
"Apache-2.0"
] | 1 | 2021-12-09T15:31:04.000Z | 2021-12-09T15:31:04.000Z | Pertemuan 1/tugas5.cpp | riqulaziz/Computer-Programming-Biomedical-Engineering-UNAIR | 90d96c177fe1d3019ec371d1be3e4a9857557e69 | [
"Apache-2.0"
] | null | null | null | Pertemuan 1/tugas5.cpp | riqulaziz/Computer-Programming-Biomedical-Engineering-UNAIR | 90d96c177fe1d3019ec371d1be3e4a9857557e69 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
int i,j;
float jumlah,kurang,kali,bagi,mod;
cout<<"Masukan nilai i = ";cin>>i;
cout<<"Masukan nilai j = ";cin>>j;
jumlah= i+j; // penjumlahan
kurang = i-j; // pengurangan
kali = i*j; // perkalian
bagi = i/j; // pembagia... | 32.678571 | 70 | 0.389071 | riqulaziz |
a4a033c6333d8f5f3e2c8352e30ad9a27b386729 | 1,043 | hpp | C++ | src/controllers/npc_controller.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/controllers/npc_controller.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/controllers/npc_controller.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #pragma once
#include <queue>
#include <memory>
#include <SFML/System.hpp>
#include "character_controller.hpp"
#include "npc_needs.hpp"
#include "actions/npc_action.hpp"
namespace space
{
class Dialogue;
class Interaction;
class NpcController : public CharacterController
{
public:
... | 23.704545 | 73 | 0.598274 | astrellon |
a4a3913af3c0ffda6de292fffe348340d1e9e651 | 24,242 | cpp | C++ | src/org/apache/poi/sl/draw/SLGraphics.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/SLGraphics.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/SLGraphics.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/sl/draw/SLGraphics.java
#include <org/apache/poi/sl/draw/SLGraphics.hpp>
#include <java/awt/BasicStroke.hpp>
#include <java/awt/Color.hpp>
#include <java/awt/Font.hpp>
#include <java/awt/FontMetrics.hpp>
#include <java/awt/Graphics.hpp>
#include <java/awt/GraphicsConfiguratio... | 37.067278 | 248 | 0.671397 | pebble2015 |
a4a3ad70c3c2f5b520fa2905d19efaea8f3b71f7 | 3,399 | cpp | C++ | uart.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 1 | 2018-10-08T13:28:32.000Z | 2018-10-08T13:28:32.000Z | uart.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 9 | 2019-08-21T18:07:49.000Z | 2019-09-30T19:48:28.000Z | uart.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | null | null | null | #include <stdio.h>
#include "uart.h"
#include <HardwareSerial.h>
//#define FULL_TERM_SUPPORT
FILE uartstream;
#define RX_BUFSIZE 80
int uart_putchar(char c, FILE *stream)
{
if (c == '\n')
Serial.write('\r');
Serial.write(c);
return 0;
}
#ifdef FULL_TERM_SUPPORT
/*
* Receive a character from the UART Rx.
*... | 20.72561 | 76 | 0.594881 | jekhor |
a4a3f959d7315d280fa90acc6d0289d2cce27e5e | 1,028 | cpp | C++ | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | 2 | 2021-11-02T06:47:50.000Z | 2021-12-16T09:55:06.000Z | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | 2 | 2021-02-07T00:04:30.000Z | 2021-02-09T23:23:21.000Z | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | null | null | null | #include <utility>
#include "IndexedPriorityQueue.h"
namespace ngf {
IndexedPriorityQueue::IndexedPriorityQueue(std::vector<float> &keys)
: _keys(keys) {
}
void IndexedPriorityQueue::insert(int index) {
_data.push_back(index);
reorderUp();
}
int IndexedPriorityQueue::pop() {
int r = _data[0];
_data[0] = ... | 20.156863 | 68 | 0.600195 | scemino |
a4ac6e100fdc98dd876da0fa982d28bf0ac138c8 | 12,264 | cpp | C++ | implementations/ugene/src/corelibs/U2View/src/ov_assembly/AssemblyConsensusArea.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2View/src/ov_assembly/AssemblyConsensusArea.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2View/src/ov_assembly/AssemblyConsensusArea.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | 40.88 | 145 | 0.718118 | r-barnes |
a4ad14bb9b65c254cb98144af9f12c8d2ba453cb | 4,277 | cpp | C++ | WOF2/src/WOF/match/spatialQuery/FootballerBallInterceptManager.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 3 | 2018-12-02T14:09:22.000Z | 2021-11-22T07:14:05.000Z | WOF2/src/WOF/match/spatialQuery/FootballerBallInterceptManager.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 1 | 2018-12-03T22:54:38.000Z | 2018-12-03T22:54:38.000Z | WOF2/src/WOF/match/spatialQuery/FootballerBallInterceptManager.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 2 | 2020-09-22T21:04:14.000Z | 2021-05-24T09:43:28.000Z | #include "FootballerBallInterceptManager.h"
#include "../inc/Scene.h"
#include "../Match.h"
#include "../DataTypes.h"
namespace WOF { namespace match {
FootballerBallInterceptManager::FootballerBallInterceptManager() {
}
void FootballerBallInterceptManager::init(Match& match) {
if (mMatch.isValid()) ... | 28.138158 | 243 | 0.707271 | jadnohra |
a4af7ba24ee529069fe724f5be8af260108f6259 | 24,308 | cpp | C++ | Source/WebCore/platform/graphics/mg/GraphicsContextMg.cpp | VincentWei/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Source/WebCore/platform/graphics/mg/GraphicsContextMg.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | null | null | null | Source/WebCore/platform/graphics/mg/GraphicsContextMg.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | /*
** $Id: GraphicsContextMg.cpp 24 2010-09-26 11:21:19Z lijiangwei $
**
** GraphicsContextMg.cpp: graphics context implements file.
**
** Copyright (C) 2003 ~ 2010 Beijing Feynman Software Technology Co., Ltd.
**
** All rights reserved by Feynman Software.
**
** Current maintainer: lvlei
**
** Create date: 2010-06-01... | 26.919158 | 186 | 0.639995 | VincentWei |
a4b02c08856cae5a46ec7e09150f3f0cf2830e03 | 552 | cpp | C++ | uva/575 - Skew Binary.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/575 - Skew Binary.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/575 - Skew Binary.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
long int power(int n,int j)
{
long int res=1;
int i;
for(i=0;i<j;i++)
{
res=res*n;
}
return res;
}
int main()
{
char num[100];
int k,i;
while(cin>>num)
{
if(!strcmp(num,"0")) break;... | 16.235294 | 48 | 0.425725 | taufique71 |
a4b253a86cf66b40aa26baf044cf4dee4710d992 | 1,779 | cc | C++ | combination-sum-ii.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | combination-sum-ii.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | combination-sum-ii.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <string>
#include <unordered_set>
#include <vector>
#include <algorithm>
class Solution
{
public:
static std::string toString(std::vector<int> vec)
{
std::string temp;
for (const auto num : vec)
temp.append(std::to_string(num)).push_back('#');
return temp;
}
... | 27.369231 | 99 | 0.540191 | ArCan314 |
a4b2aba75b02c06c37d5e6fe0930b469e1916cd7 | 1,540 | cpp | C++ | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | 1 | 2019-04-20T09:52:50.000Z | 2019-04-20T09:52:50.000Z | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | null | null | null | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#define ll long long
#define mmset(a,b) memset(a,b,sizeof(a))
#define error printf("error\n")
using namespace std;
const int N = 1e6 + 10;
const ll MOD = 1e9 + 7;
ll F[N];
ll data[N];
ll res = 1;
ll aux = 0;
void init(ll p)
{
F[0] = 1;
for(int i = 1;i <= p;i++)
F[i]... | 16.210526 | 54 | 0.416234 | wang2470616413 |
a4b3b7230b6eb2d244efbede1bc95cee09f65f95 | 6,986 | cc | C++ | components/material/data/MaterialMenuSource.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 10 | 2015-06-16T16:52:53.000Z | 2021-04-15T09:21:22.000Z | components/material/data/MaterialMenuSource.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2015-09-23T10:04:00.000Z | 2020-09-10T15:47:34.000Z | components/material/data/MaterialMenuSource.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2018-11-11T00:37:49.000Z | 2020-09-07T03:04:31.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/**
Copyright (c) 2016 Roman Katuntsev <sbkarr@stappler.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... | 23.681356 | 109 | 0.734612 | SBKarr |
8a54e356bad832914b1ba3bc3cb2424e0312b24f | 753 | cpp | C++ | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 3 | 2020-04-24T07:58:52.000Z | 2021-11-17T11:08:46.000Z | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | null | null | null | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 2 | 2019-10-02T01:49:46.000Z | 2021-11-16T15:25:59.000Z | #include "Component/SyrinxRenderer.h"
#include <Common/SyrinxAssert.h>
namespace Syrinx {
Renderer::Renderer() : mMesh(nullptr), mMaterial(nullptr)
{
SYRINX_ENSURE(!mMesh);
SYRINX_ENSURE(!mMaterial);
}
void Renderer::setMesh(Mesh *mesh)
{
mMesh = mesh;
SYRINX_ENSURE(mMesh);
SYRIN... | 16.369565 | 58 | 0.652058 | LeptusHe |
8a5556acd077257946ce0108e924e6374f0a176b | 9,252 | cpp | C++ | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | #include "MagnetRTD.h"
MagnetRTD::MagnetRTD(SPIClass *mySPI, uint8_t clock, uint8_t chip_select){
// Set internal variables
thisSPI = mySPI;
clk = clock;
cs = chip_select;
}
//------------------------------------------------------------------------------
MagnetRTD::~MagnetRTD(){}
//--------... | 27.535714 | 88 | 0.540208 | greenspaceexplorer |
8a55bdc3dd28c55ea0ee577a8799eccfd4517fba | 2,414 | cc | C++ | tools/gn/gyp_target_writer.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/gn/gyp_target_writer.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/gn/gyp_target_writer.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/gn/gyp_target_writer.h"
#include <iostream>
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "tools/gn/build_s... | 29.439024 | 80 | 0.61309 | nagineni |
8a57390a40c4eecd165993b213e765472047d571 | 10,553 | cpp | C++ | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | #include "natalie.hpp"
namespace Natalie {
// this is used by the hashmap library and assumes that obj->env has been set
size_t HashValue::hash(const void *key) {
return static_cast<const HashValue::Key *>(key)->hash;
}
// this is used by the hashmap library to compare keys
int HashValue::compare(const void *a, ... | 32.773292 | 111 | 0.548659 | MiguelBel |
8a5c3c9f98f315765a9fd560976ac5d593fff95e | 17,111 | cpp | C++ | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | #include "MathGeoTransform.h"
#include "Color.h"
#include "Application.h"
#include "M_Renderer3D.h"
#include "M_Editor.h"
#include "GameObject.h"
#include "Component.h"
#include "C_Transform.h"
#include "C_Mesh.h"
#include "C_Material.h"
#include "C_Light.h"
#include "C_Camera.h"
#include "E_Inspector.h"
#define MA... | 28.143092 | 176 | 0.664952 | xsiro |
8a5f3971feb316dccd0cd8ae58e8d869d2235c68 | 317 | cpp | C++ | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/helpers/kernel_binary_helper.h"
const std::string KernelBinaryHelper::BUILT_INS("7998916142903730155");
const std::string KernelBinaryHelper::BUILT_INS_WITH_IMAGES("16526264370178379440_images");
| 26.416667 | 91 | 0.785489 | mattcarter2017 |
8a63695aa047f3e4cb64fc8067433206277554de | 794 | cpp | C++ | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null |
#include <axxegro/axxegro.hpp>
/**
* @file
*
* a quick example on how to create custom vertex declarations
* and use them to draw primitives
*/
struct MyVertex {
float x,y;
float u,v;
};
struct MyVertexDecl: public al::CustomVertexDecl<MyVertex> {
AXXEGRO_VERTEX_ATTR_BEGIN()
AXXEGRO_VERTEX_ATTR(x, ALLEGRO... | 19.365854 | 75 | 0.695214 | 311Volt |
8a6cd0b1d672f70432c0c2407dca21b59ab7e1e5 | 1,600 | cpp | C++ | TxtAdv/StoryPoint.cpp | doc97/TxtAdv | c74163548f5c68202a06d0ad320fbd5b687d6f1a | [
"MIT"
] | null | null | null | TxtAdv/StoryPoint.cpp | doc97/TxtAdv | c74163548f5c68202a06d0ad320fbd5b687d6f1a | [
"MIT"
] | 31 | 2018-12-22T10:30:43.000Z | 2019-01-16T11:32:23.000Z | TxtAdv/StoryPoint.cpp | doc97/TxtAdv | c74163548f5c68202a06d0ad320fbd5b687d6f1a | [
"MIT"
] | null | null | null | /**********************************************************
* License: The MIT License
* https://www.github.com/doc97/TxtAdv/blob/master/LICENSE
**********************************************************/
#include "StoryPoint.h"
namespace txt
{
StoryPoint::StoryPoint()
: m_name(""), m_text("")
{
}
StoryPoint::S... | 18.181818 | 98 | 0.633125 | doc97 |
8a6dd1ec4074c7c08e1cd17ba556ca10795a9efd | 1,294 | cpp | C++ | mwget_0.1.0.orig/src/debug.cpp | ruanhailiang/mwget | 9274be70a68baa6ce4bcad96d1b2c09e14efd8b5 | [
"MIT"
] | null | null | null | mwget_0.1.0.orig/src/debug.cpp | ruanhailiang/mwget | 9274be70a68baa6ce4bcad96d1b2c09e14efd8b5 | [
"MIT"
] | null | null | null | mwget_0.1.0.orig/src/debug.cpp | ruanhailiang/mwget | 9274be70a68baa6ce4bcad96d1b2c09e14efd8b5 | [
"MIT"
] | null | null | null | /* Myget - A download accelerator for GNU/Linux
* Homepage: http://myget.sf.net
* Copyright (C) 2005- xiaosuo
*
* 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 th... | 30.093023 | 81 | 0.710201 | ruanhailiang |
8a6e329244309279560096772ea5c94eb91d0c85 | 524 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/WorldFluffLayer.hpp>
namespace RED4ext
{
namespace ink {
struct StreetSignsLayer : ink::WorldFluffLayer
{
static constexpr const char* NAME = ... | 23.818182 | 70 | 0.751908 | jackhumbert |
8a6fdaeb71786e3cca54b63bcf1720eba1fa2378 | 911 | cpp | C++ | Cplus/ColoringABorder.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/ColoringABorder.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/ColoringABorder.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <cmath>
#include <vector>
using namespace std;
class Solution
{
public:
vector<vector<int>> colorBorder(vector<vector<int>> &grid, int r0, int c0, int color)
{
int M = grid.size(), N = grid[0].size();
vector<vector<int>> seen(M, vector<int>(N));
dfs(grid, r0, c0, grid[r0][c0], color, seen);
return g... | 26.028571 | 105 | 0.579583 | JumHorn |
8a7302d7adb35de5efc2c033185697fdc3d159ff | 2,586 | hpp | C++ | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef BSDFLAYERMAKER_H
#define BSDFLAYERMAKER_H
#include <memory>
namespace SingleLayerOptics
{
enum class DistributionMethod
{
UniformDiffuse,
DirectionalDiffuse
};
class ICellDescription;
class CMaterial;
class CBSDFHemisphere;
class CBSDFLayer;
class CBaseCell;
... | 35.424658 | 95 | 0.518948 | bakonyidani |
8a779ceb10a4e5ac9f46bd58cdad85d7961cce40 | 10,324 | cpp | C++ | emulator/src/mame/video/tecmo_spr.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/video/tecmo_spr.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/video/tecmo_spr.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:David Haywood
/* Various Tecmo Sprite implementations
- the various sprite implementations here are slightly different but can clearly be refactored to use
a common base class for the chained drawing even if the position of the attributes etc. varies between
PCB / ch... | 24.698565 | 224 | 0.55618 | rjw57 |
8a7b53a2db53c347ac4a3ac26da03579ef490e22 | 14,405 | hpp | C++ | src/viewpoint.hpp | alexcoplan/p2proj | 4920ce561a05a2977776164f602ac8d0d6a68023 | [
"MIT"
] | null | null | null | src/viewpoint.hpp | alexcoplan/p2proj | 4920ce561a05a2977776164f602ac8d0d6a68023 | [
"MIT"
] | null | null | null | src/viewpoint.hpp | alexcoplan/p2proj | 4920ce561a05a2977776164f602ac8d0d6a68023 | [
"MIT"
] | null | null | null | #ifndef AJC_HGUARD_VIEWPOINT
#define AJC_HGUARD_VIEWPOINT
#include "sequence_model.hpp"
#include <type_traits>
#define DEFAULT_HIST 3
/* Predictor
*
* The fully abstract interface implemented by all viewpoints */
template<class EventStructure, class T_predict>
class Predictor {
public:
virtual EventDistribution<... | 34.963592 | 80 | 0.71378 | alexcoplan |
8a7fa64f68af68fa23cb3485066944c421347107 | 4,200 | cpp | C++ | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | 1 | 2020-01-02T10:49:58.000Z | 2020-01-02T10:49:58.000Z | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | null | null | null | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | 1 | 2020-01-02T10:49:31.000Z | 2020-01-02T10:49:31.000Z | /*
* Copyright 2019 Shota Hirama
*
* 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... | 37.5 | 186 | 0.683333 | shotahirama |
8a820fcfc3bd86b8e71d8ad96dea49c5d181718b | 1,638 | hpp | C++ | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | 11 | 2015-06-12T19:54:14.000Z | 2021-11-26T10:45:18.000Z | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | // Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#ifndef _CHAI_STMT_MATMUL_HPP_
#define _CHAI_STMT_MATMUL_HPP_
#include "VisitAst.hpp"
#include "StmtMatmulBase.hpp"
namespace chai_internal {
////////////////////////////////////////
// matrix multiplication
// (all cases except outer p... | 24.818182 | 79 | 0.675214 | cjang |