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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e5292bed843dd33e904a5cb5caddc5068c38910 | 24,442 | cpp | C++ | src/common/DecFloat.cpp | sas9mba/FB-ISQL-autopadding | 033393aa80de4274ed9469767464e9b189b26838 | [
"Condor-1.1"
] | null | null | null | src/common/DecFloat.cpp | sas9mba/FB-ISQL-autopadding | 033393aa80de4274ed9469767464e9b189b26838 | [
"Condor-1.1"
] | null | null | null | src/common/DecFloat.cpp | sas9mba/FB-ISQL-autopadding | 033393aa80de4274ed9469767464e9b189b26838 | [
"Condor-1.1"
] | null | null | null | /*
* PROGRAM: Decimal 64 & 128 type.
* MODULE: DecFloat.cpp
* DESCRIPTION: Floating point with decimal exponent.
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may ... | 20.678511 | 99 | 0.699247 |
0e5484a533db09810dc94eebae002aeb085e6af7 | 2,037 | cpp | C++ | src/graph_algorithms_tool/shortest_path_graphics_item.cpp | michalmonday/Graph-Algorithms-Teaching-Tool | f7c7efa7a4518805d22c3fd2d2810e4bfb6a5ddf | [
"MIT"
] | null | null | null | src/graph_algorithms_tool/shortest_path_graphics_item.cpp | michalmonday/Graph-Algorithms-Teaching-Tool | f7c7efa7a4518805d22c3fd2d2810e4bfb6a5ddf | [
"MIT"
] | null | null | null | src/graph_algorithms_tool/shortest_path_graphics_item.cpp | michalmonday/Graph-Algorithms-Teaching-Tool | f7c7efa7a4518805d22c3fd2d2810e4bfb6a5ddf | [
"MIT"
] | null | null | null | #include "shortest_path_graphics_item.h"
#include "algorithms/controlled_dijkstra_algorithm.h"
#include "graph/graph.h"
#include "graph/node.h"
#include "functions.h"
#include "colors.h"
#include <QGraphicsScene>
static const qreal Y_SPACING = 1.2; // same as vtable_graphics_item.cpp
ShortestPathGraphicsItem::Shorte... | 33.393443 | 117 | 0.63623 |
0e54e4fbc2b32d5fc58cead03fe19ecf1aef1416 | 705 | cpp | C++ | src/cmcandy/C_Language_Answers/_1025.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | null | null | null | src/cmcandy/C_Language_Answers/_1025.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | null | null | null | src/cmcandy/C_Language_Answers/_1025.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | 1 | 2020-11-26T03:01:12.000Z | 2020-11-26T03:01:12.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace ::std;
class Solution
{
public:
bool divisorGame(int N)
{
//N=1 必败
//N=2 必胜
//本题有数学证明,但个人想用动归解
//return N%2==0;
//dp为1维,找到<i 的false(必输局面即可获胜)若找不到,则必输
//状态转换公式为:i % j == 0 && f[i - j] == false... | 21.363636 | 52 | 0.368794 |
0e5508065b0d797d1fe9131d259423bc02830e86 | 1,161 | cpp | C++ | src/sconelib/scone/measures/JointLoadMeasure.cpp | alexxlzhou/scone-core | 4a071626e5ee7ba253e72a973d4d214fa6e30cf5 | [
"Apache-2.0"
] | 5 | 2021-04-30T14:30:20.000Z | 2022-03-27T09:58:24.000Z | src/sconelib/scone/measures/JointLoadMeasure.cpp | alexxlzhou/scone-core | 4a071626e5ee7ba253e72a973d4d214fa6e30cf5 | [
"Apache-2.0"
] | 4 | 2021-06-15T10:52:10.000Z | 2021-12-15T10:25:21.000Z | src/sconelib/scone/measures/JointLoadMeasure.cpp | alexxlzhou/scone-core | 4a071626e5ee7ba253e72a973d4d214fa6e30cf5 | [
"Apache-2.0"
] | 2 | 2021-05-02T13:38:19.000Z | 2021-07-22T19:37:07.000Z | /*
** JointLoadMeasure.cpp
**
** Copyright (C) 2013-2019 Thomas Geijtenbeek and contributors. All rights reserved.
**
** This file is part of SCONE. For more information, see http://scone.software.
*/
#include "JointLoadMeasure.h"
#include "scone/model/Model.h"
namespace scone
{
JointLoadMeasure::JointLoadMeasure( ... | 24.1875 | 116 | 0.701981 |
0e5670290456c3434075b3024830adce55ac0697 | 2,870 | cpp | C++ | Olympiad Solutions/SPOJ/TWOPATHS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/SPOJ/TWOPATHS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/SPOJ/TWOPATHS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.spoj.com/problems/TWOPATHS/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e5 + 10;
vector<int> grafo[MAXN];
int maior_dist[MAXN][3],maior_diam[MAXN][2];
int temporario_diametro[MAXN],temporario_dist[MAXN],N;
ll melhor_produto;
void calc... | 29.587629 | 104 | 0.649826 |
0e576d935bdfc6164bafd14477acb0af56ca1832 | 20,328 | hh | C++ | dune/xt/la/solver/fasp.hh | dune-community/dune-xt-la | 2c3119fcc3798b14aa3c9228aed0e1ae8ee4ebcc | [
"BSD-2-Clause"
] | 4 | 2016-01-26T06:03:13.000Z | 2020-02-08T04:09:17.000Z | dune/xt/la/solver/fasp.hh | dune-community/dune-xt-la | 2c3119fcc3798b14aa3c9228aed0e1ae8ee4ebcc | [
"BSD-2-Clause"
] | 89 | 2016-01-24T22:09:34.000Z | 2020-03-25T08:33:43.000Z | dune/xt/la/solver/fasp.hh | dune-community/dune-xt-la | 2c3119fcc3798b14aa3c9228aed0e1ae8ee4ebcc | [
"BSD-2-Clause"
] | 2 | 2018-04-09T11:52:25.000Z | 2020-02-08T04:10:27.000Z | // This file is part of the dune-xt-la project:
// https://github.com/dune-community/dune-xt-la
// Copyright 2009-2018 dune-xt-la developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.or... | 53.635884 | 120 | 0.711531 |
0e58ac0f89a74345cbb8d4ba7f6b0084e0a13a64 | 2,277 | cpp | C++ | my_vulkan/texture_sampler.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/texture_sampler.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/texture_sampler.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #include "texture_sampler.hpp"
#include "utils.hpp"
namespace my_vulkan
{
texture_sampler_t::texture_sampler_t(VkDevice device, filter_mode_t filter_mode)
: _device{device}
{
VkFilter filter;
switch(filter_mode)
{
case filter_mode_t::linear:
filter = VK_F... | 29.571429 | 87 | 0.625823 |
0e592a48cbeff73c16fb2eb085c19c6cf696ddc8 | 13,275 | cpp | C++ | easysign/dialog.cpp | yunshouhu/easysign | b0ff6c95130127b633f1ca7821c0086820940f54 | [
"MIT"
] | null | null | null | easysign/dialog.cpp | yunshouhu/easysign | b0ff6c95130127b633f1ca7821c0086820940f54 | [
"MIT"
] | null | null | null | easysign/dialog.cpp | yunshouhu/easysign | b0ff6c95130127b633f1ca7821c0086820940f54 | [
"MIT"
] | null | null | null | //#pragma once
//#pragma execution_character_set("utf-8")
//#pragma warning (disable:4819)
#include "dialog.h"
#include "ui_dialog.h"
#include <QMessageBox>
#include <QProcess>
#include <QDir>
#include <string>
#include <iostream>
#include <QUrl>
#include <QTextBlock>
#include <QTextCursor>
#include <QFileDialog>
#i... | 29.240088 | 207 | 0.615217 |
0e5b6811ac90710d35f50afa1cb894e3193535a4 | 5,624 | cc | C++ | service/testing/epoll_test.cc | datacratic/soa | 74eeda506feb522de9181aac4a5543c7766e600e | [
"Apache-2.0"
] | 11 | 2015-11-10T09:56:37.000Z | 2021-02-09T02:10:45.000Z | service/testing/epoll_test.cc | datacratic/soa | 74eeda506feb522de9181aac4a5543c7766e600e | [
"Apache-2.0"
] | 40 | 2015-01-08T12:16:37.000Z | 2016-06-08T19:41:03.000Z | service/testing/epoll_test.cc | datacratic/soa | 74eeda506feb522de9181aac4a5543c7766e600e | [
"Apache-2.0"
] | 10 | 2015-01-05T21:46:46.000Z | 2021-09-26T10:07:07.000Z | /* epoll_test.cc
Wolfgang Sourdeau, 17 November 2014
Copyright (c) 2014 Datacratic. All rights reserved.
Assumption tests for epoll
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <fcntl.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <atomic>
#include <iostream>
#include <thread>
... | 26.403756 | 76 | 0.590683 |
0e5ba627fe0d0520d8672e092355f9bad1916123 | 887 | cpp | C++ | Dynamic Programming/common sub sequence/cpp/CommonSubSeq.cpp | iabhimanyu/Algorithms | adefcd165e591d2338be8fc8a62629ff072620dd | [
"MIT"
] | 715 | 2018-10-01T21:30:10.000Z | 2022-03-23T09:14:10.000Z | Dynamic Programming/common sub sequence/cpp/CommonSubSeq.cpp | iabhimanyu/Algorithms | adefcd165e591d2338be8fc8a62629ff072620dd | [
"MIT"
] | 157 | 2018-10-01T20:53:11.000Z | 2021-08-03T07:00:58.000Z | Dynamic Programming/common sub sequence/cpp/CommonSubSeq.cpp | iabhimanyu/Algorithms | adefcd165e591d2338be8fc8a62629ff072620dd | [
"MIT"
] | 1,225 | 2018-10-01T20:56:22.000Z | 2022-02-22T04:00:27.000Z |
/* Implementation of LCS problem using Dynamic Programming*/
#include <bits/stdc++.h>
using namespace std;
void lcs(string X, string Y){
int m = X.length();
int n = Y.length();
int L[m+1][n+1];
for (int i=0; i<=m; i++){
for (int j=0; j<=n; j++){
if (i == 0 || j == 0)
L[i][j] = 0;
else... | 18.102041 | 60 | 0.421646 |
0e5ecc3d0d0738ff380c02ec54d8eaff1b264017 | 8,227 | cpp | C++ | native/ugc.cpp | rfht/hlsteam-stub | 5757ec73fb645fd809bfbf042f3b00296e714b36 | [
"MIT"
] | 3 | 2020-04-18T13:13:52.000Z | 2021-04-09T22:40:45.000Z | native/ugc.cpp | rfht/hlsteam-stub | 5757ec73fb645fd809bfbf042f3b00296e714b36 | [
"MIT"
] | null | null | null | native/ugc.cpp | rfht/hlsteam-stub | 5757ec73fb645fd809bfbf042f3b00296e714b36 | [
"MIT"
] | 1 | 2021-08-12T14:44:43.000Z | 2021-08-12T14:44:43.000Z | #include "steamwrap.h"
/*
vdynamic *CallbackHandler::EncodeDownloadItem(int *d) {
return nullptr;
}
vdynamic *CallbackHandler::EncodeItemInstalled(int *d) {
return nullptr;
}
*/
HL_PRIM varray *HL_NAME(get_subscribed_items)(){
printf("%s\n", __func__);
return nullptr;
}
HL_PRIM int HL_NAME(get_item_state)(vuid ... | 30.812734 | 159 | 0.73198 |
0e5ef653e2f5d7b0a25571e20bd63aca77ba7b3b | 3,617 | cpp | C++ | Sources/Fonts/FontType.cpp | Equilibrium-Games/Flounder | 1bd67dc8c2c2ebee2ca95f0cabb40b926f747fcf | [
"MIT"
] | 43 | 2017-08-09T04:03:38.000Z | 2018-07-17T15:25:32.000Z | Sources/Fonts/FontType.cpp | Equilibrium-Games/Flounder | 1bd67dc8c2c2ebee2ca95f0cabb40b926f747fcf | [
"MIT"
] | 3 | 2018-01-23T06:44:41.000Z | 2018-05-29T19:22:41.000Z | Sources/Fonts/FontType.cpp | Equilibrium-Games/Flounder | 1bd67dc8c2c2ebee2ca95f0cabb40b926f747fcf | [
"MIT"
] | 6 | 2017-11-03T10:48:20.000Z | 2018-04-28T21:44:59.000Z | #include "FontType.hpp"
#include <tiny_msdf.hpp>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "Files/Files.hpp"
#include "Resources/Resources.hpp"
#include "Graphics/Graphics.hpp"
namespace acid {
static const std::wstring_view NEHE = L" \t\r\nABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\"... | 26.40146 | 145 | 0.697263 |
0e606b0a8a475b3df31cfe975fe752e36b16ddd0 | 855 | cpp | C++ | day-9-6-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | day-9-6-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | day-9-6-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | /*
求四名同学在三次考试中的成绩
*/
#include <stdio.h>
void mat_add(const int a[4][3], const int b[4][3], int c[4][3]);
void mat_print(const int m[4][3]);
int main(void)
{
int sore1[4][3] = { {23, 13,23}, {23, 67, 89}, {34, 56, 67}, {89,98, 32} };
int sore2[4][3] = { {93, 43,33}, {23, 63, 82}, {34, 66, 87}, {69,93, 39} };
... | 21.923077 | 77 | 0.493567 |
0e61c1f69c976c9c27f060ce149c807996950b80 | 45,431 | cc | C++ | third_party/proto_gen/prio/jni/message.pb.cc | ithinkihaveacat/exposure-notifications-android | 4b7b461282b2ede6fb2a93488c6d628440052c8d | [
"Apache-2.0"
] | 577 | 2020-05-04T16:41:57.000Z | 2022-02-10T10:51:24.000Z | third_party/proto_gen/prio/jni/message.pb.cc | ithinkihaveacat/exposure-notifications-android | 4b7b461282b2ede6fb2a93488c6d628440052c8d | [
"Apache-2.0"
] | 60 | 2020-05-05T14:28:08.000Z | 2022-01-08T19:53:43.000Z | third_party/proto_gen/prio/jni/message.pb.cc | ithinkihaveacat/exposure-notifications-android | 4b7b461282b2ede6fb2a93488c6d628440052c8d | [
"Apache-2.0"
] | 137 | 2020-05-04T17:47:46.000Z | 2022-01-27T03:56:51.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: prio/jni/message.proto
#include "prio/jni/message.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descripto... | 43.641691 | 203 | 0.76089 |
0e65e917d58fa56f2f129821a6101a06af7f15dd | 4,961 | cc | C++ | google_apis/gaia/ubertoken_fetcher.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | google_apis/gaia/ubertoken_fetcher.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | google_apis/gaia/ubertoken_fetcher.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2014 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 "google_apis/gaia/ubertoken_fetcher.h"
#include <vector>
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/ra... | 31.801282 | 78 | 0.729087 |
0e6616c096e92c2c85f7599f6a5a81dfc094f72b | 3,273 | cpp | C++ | src/python_bindings.cpp | johnlees/mandrake | f34deb1aeed730041398923c1c0d6e6d5ccb9611 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 16 | 2021-09-14T14:19:08.000Z | 2022-02-02T23:51:04.000Z | src/python_bindings.cpp | johnlees/mandrake | f34deb1aeed730041398923c1c0d6e6d5ccb9611 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2021-09-15T17:51:26.000Z | 2022-01-20T11:22:26.000Z | src/python_bindings.cpp | johnlees/mandrake | f34deb1aeed730041398923c1c0d6e6d5ccb9611 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-09-28T14:44:12.000Z | 2021-09-28T14:44:12.000Z | // 2021 John Lees, Gerry Tonkin-Hill, Zhirong Yang
// See LICENSE files
#include "pairsnp.hpp"
#include "sound.hpp"
#include "wtsne.hpp"
#include <pybind11/stl.h>
namespace py = pybind11;
PYBIND11_MODULE(SCE, m) {
m.doc() = "Stochastic cluster embedding";
m.attr("version") = VERSION_INFO;
// Results class (ne... | 46.098592 | 79 | 0.62542 |
0e66dadb9b0faf7b9e13c7b977595fcdd3541173 | 897 | hpp | C++ | include/version.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/version.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/version.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_CORE_VERSION_HPP_
#define BE_CORE_VERSION_HPP_
#include "macros.hpp"
#define BE_CORE_VERSION_MAJOR 0
#define BE_CORE_VERSION_MINOR 1
#define BE_CORE_VERSION_REV 32
/*!! include('common/version', 'BE_CORE', 'bengine') !! 6 */
/* ################# !! GENERATED CODE -- DO NOT MODIFY !! #########... | 39 | 155 | 0.702341 |
0e68cf0eb44496c1dcb61eaaa213e80b23c2f918 | 26,546 | cpp | C++ | cross/cocos2d/cocos/2d/platform/android/nativeactivity.cpp | yobiya/tdd_game_sample | d3605c13f1fd97cd3929d5d3054f603edde839db | [
"MIT"
] | 20 | 2015-01-04T03:15:01.000Z | 2020-08-14T00:48:34.000Z | cocos2d/cocos/2d/platform/android/nativeactivity.cpp | kobakei/CCLocalNotification | c47ad6ff96409857ee6637892cc2618c1daf7ffa | [
"Apache-2.0"
] | null | null | null | cocos2d/cocos/2d/platform/android/nativeactivity.cpp | kobakei/CCLocalNotification | c47ad6ff96409857ee6637892cc2618c1daf7ffa | [
"Apache-2.0"
] | 5 | 2015-06-15T02:26:05.000Z | 2021-10-04T06:57:49.000Z | /****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 Sof... | 35.206897 | 137 | 0.616515 |
0e696d20715dc73afc4ae5c530b3ee4f16dbade6 | 106 | cpp | C++ | Engine/Math/Ray3D.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | 27 | 2015-09-03T18:41:03.000Z | 2022-01-17T20:38:54.000Z | Engine/Math/Ray3D.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | null | null | null | Engine/Math/Ray3D.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | 8 | 2015-02-23T10:04:30.000Z | 2020-09-04T10:56:22.000Z | /*
Ray3D.cpp
Written by Matthew Fisher
a 3D ray represented by an origin point and a direction vector.
*/ | 17.666667 | 63 | 0.764151 |
0e6aa6bb823ed1ac4ac96db47326af50a653daa5 | 87,738 | cpp | C++ | grid-test/export/macos/obj/src/hscript/Interp.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/hscript/Interp.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/hscript/Interp.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_IntIterator
#include <IntIterator.h>
#endif
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
... | 45.063174 | 243 | 0.593745 |
0e6bd6d6bc339c0f81a55ce13fba199d7f92a883 | 2,451 | cpp | C++ | gm/imageresizetiled.cpp | llluiop/skia | 0dd01ee5b5abc06935dced8430d5290c6ac3f958 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T00:05:58.000Z | 2015-11-06T00:05:58.000Z | gm/imageresizetiled.cpp | rgraebert/skia | 33a4b46e9f24be6268855478b5c895f883fb4ac5 | [
"BSD-3-Clause"
] | null | null | null | gm/imageresizetiled.cpp | rgraebert/skia | 33a4b46e9f24be6268855478b5c895f883fb4ac5 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkMatrixImageFilter.h"
#include "SkRandom.h"
#define WIDTH 640
#define HEIGHT 480
#define RESIZE_FACTOR SkIntToScalar(2)
namespace skiagm {
class... | 29.178571 | 79 | 0.53774 |
0e6f241d5b39be52ee550570a5563c2a42aa7e27 | 3,998 | cpp | C++ | driver/src/visitor/ScopedModifier.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | null | null | null | driver/src/visitor/ScopedModifier.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | null | null | null | driver/src/visitor/ScopedModifier.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | null | null | null | /**
* @file
*/
#include "src/visitor/ScopedModifier.hpp"
birch::ScopedModifier::ScopedModifier(Package* currentPackage,
Class* currentClass) :
ContextualModifier(currentPackage, currentClass),
inMember(0),
inGlobal(0) {
if (currentPackage) {
scopes.push_back(currentPackage->scope);
if (curr... | 23.656805 | 72 | 0.690595 |
0e6f7fd5bbea687cc6ca4a486d5a07f877207dab | 3,380 | cc | C++ | example/Mcached/mraft/floyd/example/simple/t1.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-27T09:10:11.000Z | 2018-09-27T09:10:11.000Z | example/Mcached/mraft/floyd/example/simple/t1.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-16T07:17:29.000Z | 2018-09-16T07:17:29.000Z | example/Mcached/mraft/floyd/example/simple/t1.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | null | null | null | // Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <unistd.h>
#inclu... | 27.04 | 148 | 0.595266 |
0e702dca9016f0b45aac2e65410bd313a18e8745 | 34,122 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/support/char_encoding/unicode/uppercase_table.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/char_encoding/unicode/uppercase_table.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/char_encoding/unicode/uppercase_table.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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)
AUTOGENERATED. DO NOT EDIT!!!
======... | 69.636735 | 80 | 0.370523 |
0e70deb4357fff835a0badeff42683287d3c0720 | 677 | cpp | C++ | solutions/1066/union_find.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | 44 | 2016-05-11T06:41:14.000Z | 2021-12-20T13:45:41.000Z | solutions/1066/union_find.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | null | null | null | solutions/1066/union_find.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | 10 | 2016-06-25T08:55:20.000Z | 2018-07-06T05:52:53.000Z | #include <iostream>
#include <map>
using namespace std;
map<string, string> s;
string represent(string n1)
{
if (s[n1].empty() || s[n1] == n1) {
s[n1] = n1;
} else {
s[n1] = represent(s[n1]);
}
return s[n1];
}
void merge(string n1, string n2)
{
s[represent(n1)] = represent(n2);
}... | 15.744186 | 57 | 0.487445 |
0e715472e2692b00d0d0bc907f97db25fa5abcf1 | 348 | cc | C++ | tests/cpp/metric/test_metric.cc | cnheider/xgboost | e7fbc8591fa7277ee4c474b7371c48c11b34cbde | [
"Apache-2.0"
] | 40 | 2017-02-05T07:58:44.000Z | 2022-01-25T22:53:00.000Z | tests/cpp/metric/test_metric.cc | cnheider/xgboost | e7fbc8591fa7277ee4c474b7371c48c11b34cbde | [
"Apache-2.0"
] | 26 | 2017-06-01T05:41:01.000Z | 2020-11-30T08:56:48.000Z | tests/cpp/metric/test_metric.cc | cnheider/xgboost | e7fbc8591fa7277ee4c474b7371c48c11b34cbde | [
"Apache-2.0"
] | 27 | 2017-04-12T13:15:48.000Z | 2020-04-12T08:43:51.000Z | // Copyright by Contributors
#include <xgboost/metric.h>
#include "../helpers.h"
TEST(Metric, UnknownMetric) {
EXPECT_ANY_THROW(xgboost::Metric::Create("unknown_name"));
EXPECT_NO_THROW(xgboost::Metric::Create("rmse"));
EXPECT_ANY_THROW(xgboost::Metric::Create("unknown_name@1"));
EXPECT_NO_THROW(xgboost::Metr... | 29 | 62 | 0.735632 |
0e722eed8c45c96f945f86eea8b4167941be023f | 737 | hpp | C++ | src/lib/ecl/matrix/matrix/Scalar.hpp | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 24 | 2019-08-13T02:39:01.000Z | 2022-03-03T15:44:54.000Z | src/lib/ecl/matrix/matrix/Scalar.hpp | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 4 | 2020-11-16T02:03:09.000Z | 2021-08-19T08:16:48.000Z | src/lib/ecl/matrix/matrix/Scalar.hpp | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 11 | 2019-07-28T09:11:40.000Z | 2022-03-17T08:08:27.000Z | /**
* @file Scalar.hpp
*
* Defines conversion of matrix to scalar.
*
* @author James Goppert <james.goppert@gmail.com>
*/
#pragma once
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "math.hpp"
namespace matrix
{
template<typename Type>
class Scalar
{... | 13.160714 | 54 | 0.587517 |
0e740451d792f20641256e992647134aab9abfd4 | 767 | cpp | C++ | foo_dsp_effect/main.cpp | jpbattaille/foobar2000-plugins | 2e52c26a9ab5e65091338e600a2c433d8b600704 | [
"Unlicense"
] | null | null | null | foo_dsp_effect/main.cpp | jpbattaille/foobar2000-plugins | 2e52c26a9ab5e65091338e600a2c433d8b600704 | [
"Unlicense"
] | null | null | null | foo_dsp_effect/main.cpp | jpbattaille/foobar2000-plugins | 2e52c26a9ab5e65091338e600a2c433d8b600704 | [
"Unlicense"
] | null | null | null | #include "../SDK/foobar2000.h"
#include "SoundTouch/SoundTouch.h"
#include "dsp_guids.h"
#define MYVERSION "0.42"
static pfc::string_formatter g_get_component_about()
{
pfc::string_formatter about;
about << "A special effect DSP for foobar2000.\n";
about << "Written by mudlord (mudlord@protonmail.com).\n";
about <... | 29.5 | 90 | 0.73794 |
0e744b167659afb78c417ea63bdb4f005dff6ff3 | 7,804 | cpp | C++ | cores/n64/GLideN64/src/Graphics/Context.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 7 | 2020-07-20T12:11:35.000Z | 2021-12-23T02:09:19.000Z | cores/n64/GLideN64/src/Graphics/Context.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | null | null | null | cores/n64/GLideN64/src/Graphics/Context.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 1 | 2020-08-29T16:36:48.000Z | 2020-08-29T16:36:48.000Z | #include "Context.h"
#include "OpenGLContext/opengl_ContextImpl.h"
using namespace graphics;
Context gfxContext;
bool Context::Multisampling = false;
bool Context::BlitFramebuffer = false;
bool Context::WeakBlitFramebuffer = false;
bool Context::DepthFramebufferTextures = false;
bool Context::ShaderProgramBinary = f... | 22.489914 | 112 | 0.782035 |
0e748b03089134f5aa06d6003fdd1e9c31123648 | 975 | cpp | C++ | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 17.105263 | 49 | 0.434872 |
0e76d4500adc76b05a4694dcb5572b93e07dbdda | 14,532 | cpp | C++ | src/main.cpp | GabrielGanne/trex-core | 688a0fe0adb890964691473723d70ffa98e00dd3 | [
"Apache-2.0"
] | 1 | 2021-08-19T04:57:04.000Z | 2021-08-19T04:57:04.000Z | src/main.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | 1 | 2019-03-08T04:50:50.000Z | 2019-03-08T04:50:50.000Z | src/main.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | 2 | 2019-04-25T05:32:53.000Z | 2019-04-26T00:14:24.000Z | /*
Hanoh Haim
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2015 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | 29.122244 | 112 | 0.505023 |
0e76e7a7228402d1f5fabcccc065d0865184bfd1 | 11,207 | cpp | C++ | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 187 | 2021-05-22T07:56:34.000Z | 2022-03-30T20:23:16.000Z | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 48 | 2021-05-25T01:46:49.000Z | 2022-03-23T21:32:54.000Z | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 11 | 2021-05-24T07:01:33.000Z | 2022-03-07T12:08:48.000Z | #include <Bindings/obe/Input/Input.hpp>
#include <Input/InputAction.hpp>
#include <Input/InputButton.hpp>
#include <Input/InputButtonMonitor.hpp>
#include <Input/InputButtonState.hpp>
#include <Input/InputCondition.hpp>
#include <Input/InputManager.hpp>
#include <Input/InputType.hpp>
#include <Bindings/Conf... | 61.917127 | 100 | 0.640582 |
0e7bae794ad1d65ef5d1447aadc84b72b2de978e | 4,229 | cpp | C++ | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | null | null | null | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | null | null | null | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | 1 | 2020-06-16T14:59:05.000Z | 2020-06-16T14:59:05.000Z | /**
* @file MeterTeros11.cpp
* @copyright 2020 Stroud Water Research Center
* Part of the EnviroDIY ModularSensors library for Arduino
* @author Written By: Anthony Aufdenkampe <aaufdenkampe@limno.com>
* Edited by Sara Geleskie Damiano <sdamiano@stroudcenter.org>
*
* @brief Implements the MeterTeros11 class.
*/... | 38.445455 | 80 | 0.588792 |
0e81856e25e697dea5f5e82ca7c25fa15f5049fc | 13,675 | cc | C++ | chrome/browser/service_process/service_process_control.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/service_process/service_process_control.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/service_process/service_process_control.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright (c) 2012 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/browser/service_process/service_process_control.h"
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#includ... | 34.445844 | 80 | 0.727239 |
0e81eefe48f137490164167d8a9ddacbd025e739 | 53,797 | cpp | C++ | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | null | null | null | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | 1 | 2021-09-23T08:48:05.000Z | 2021-09-24T01:44:38.000Z | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The WebNN-native 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 ... | 49.174589 | 100 | 0.563043 |
0e83593325c924567f6f336ba8f6bd3f842e97f8 | 2,217 | cpp | C++ | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 165 | 2020-10-03T08:01:11.000Z | 2022-03-31T02:42:08.000Z | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 383 | 2020-10-03T07:39:11.000Z | 2021-11-20T07:06:35.000Z | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 380 | 2020-10-03T08:05:04.000Z | 2022-03-19T06:56:59.000Z | #include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
vector<string> split(const string &);
/*
* Complete the 'diagonalDifference' function below.
*
* The function is expected to return an INTEGER.
* The function accepts 2D_INTEGER_ARRAY arr as parameter.
*/
... | 19.972973 | 79 | 0.562021 |
0e83d914251a5f8264a56b23eb54bbc1ee284629 | 407 | cpp | C++ | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
void answer(const std::string& v)
{
std::cout << v << '\n';
}
void solve(std::string& a)
{
const size_t n = a.length();
size_t i = 0;
while (i < n && a[i] == '1')
++i;
if (i == n)
a.pop_back();
else
a.erase(i, 1);
answer(a);
... | 11.628571 | 33 | 0.461916 |
0e88cf2485028b919632c7c115f824ef254ff035 | 7,185 | cpp | C++ | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | 1 | 2021-07-27T01:52:41.000Z | 2021-07-27T01:52:41.000Z | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | null | null | null | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#include "PrecompiledHeader.h"
#include "ebm_native.h" // IntEbmType
#include "EbmInternal.h" // INLINE_ALWAYS
#include "RandomStream.h"
// I generated these as purely random numbers from 0 to 2^64-1... | 44.627329 | 114 | 0.709116 |
0e8a8c778db01a6a05843c460625f9b2cae3a6ce | 35,596 | cpp | C++ | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | #include "Board.hpp"
#include "Zobrist.hpp"
#include "Rook.hpp"
#include "Bishop.hpp"
#include "Queen.hpp"
#include "Knight.hpp"
#include "King.hpp"
#include "Pawn.hpp"
#include <iostream>
#include <stdexcept>
#include <iomanip>
#include <sstream>
/// Defines the number of squares the king travels to cast... | 34.226923 | 86 | 0.607428 |
0e8d08f5d75075d4df837ad986329c3b57faa785 | 5,971 | cc | C++ | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2014 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 "sandbox/mac/os_compatibility.h"
#include <servers/bootstrap.h>
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include "base/logg... | 30.937824 | 79 | 0.718305 |
0e8f2f0b85aaaada7ef8d6ad186f80fb85d6d9f9 | 67,660 | cc | C++ | extensions/browser/api/web_request/web_request_api_helpers.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 | extensions/browser/api/web_request/web_request_api_helpers.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 | extensions/browser/api/web_request/web_request_api_helpers.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 (c) 2012 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 "extensions/browser/api/web_request/web_request_api_helpers.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <cmath... | 38.377765 | 80 | 0.692876 |
0e90229439f494fc42492a2ccb9a05b7dc714448 | 3,048 | hpp | C++ | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | #pragma once
#include <forward_list>
#include <memory>
namespace nonstd {
template<typename T>
class memory_pool {
public:
using size_type = std::size_t;
static constexpr auto default_page_size = 512u;
private:
union block {
alignas(T) cha... | 29.307692 | 97 | 0.510499 |
0e903d5dfa173ae2acfe78e2c22179a26c7885a4 | 5,700 | cpp | C++ | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | #include "check_mem.h"
#include "mem_access.h"
//#include "list.h"
void print_num_of_readers(MemAccess_t *mem) {
uint32_t counter = 0;
while (mem != NULL) {
counter++;
mem = mem->next;
}
fprintf(stderr, "# of readers: %u\n", counter);
}
void report_race() {
// to-do: report race here
}
void handle_write(... | 29.081633 | 92 | 0.607895 |
0e91f4d7c8d303add464be9d61b35efbd8310885 | 214 | hpp | C++ | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | /// source: KACTL
// ways to permute v[i]
ll multinomial(vi &v) {
ll c = 1, m = v.empty() ? 1 : v[0];
for (int i = 1; i < v.size(); i++)
for (int j = 0; i < v[i]; j++) c = c * ++m / (j + 1);
return c;
}
| 21.4 | 57 | 0.443925 |
0e92c3eba5a337b00f2805477a8224db4d870a6f | 621 | cpp | C++ | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | 1 | 2016-08-03T08:50:01.000Z | 2016-08-03T08:50:01.000Z | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | null | null | null | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | 3 | 2017-10-17T22:52:01.000Z | 2019-02-15T19:52:58.000Z | /*
* invokehelper.cpp
*
* Created on: 2016/02/15
* Author: CORDEA
*/
#include <src/invokehelper.h>
#include <bb/system/InvokeRequest>
#include <bb/system/InvokeManager>
using namespace bb::system;
InvokeHelper::InvokeHelper(QObject *parent) :
QObject(parent)
{
// TODO Auto-generated construct... | 19.40625 | 45 | 0.695652 |
0e952527ddedcfd90a971a26e758d4102609edfa | 3,064 | cpp | C++ | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 5 | 2021-06-16T06:24:29.000Z | 2022-03-10T03:41:44.000Z | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 1 | 2020-10-14T14:20:58.000Z | 2020-10-14T14:20:58.000Z | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 2 | 2021-06-16T06:24:32.000Z | 2021-08-02T09:05:42.000Z | #include "stdafx.h"
#include "oepOGRFeatureSourceOptions.h"
using namespace gEarthPack;
using namespace osgEarth::Drivers;
oepOGRFeatureSourceOptions::oepOGRFeatureSourceOptions()
{
bind(new OGRFeatureOptions(),true);
}
void gEarthPack::oepOGRFeatureSourceOptions::binded()
{
_geometryConfig = gcnew oepConfig();
... | 23.037594 | 70 | 0.741841 |
0e958284856c1471911d9198221360fe1f851f4c | 6,064 | cc | C++ | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | // Copyright 2014 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.
// This file implements the native methods of
// org.content.chromium.app.LinkerTests
// Unlike the content of linker_jni.cc, it is part of the content li... | 32.602151 | 84 | 0.612797 |
0e95c6b5977ed0492064f44464d749de3eb1fc06 | 8,949 | cpp | C++ | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | /*
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, publish, distribute, sublicense, and/or sell
copies of t... | 24.45082 | 162 | 0.659403 |
0e97f066ae54cea0d62e20f6df76d63676e4ace7 | 2,112 | hpp | C++ | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | #include <map>
#include <string>
#include <vector>
// TODO make this a map so one can give a dict in python
struct bunchParameters {
// bucket number
int bucket;
// atomic mass number
double atomNumber;
// particle charge
int charge;
// number of macro particle to use
int nMacro;
// real number of pa... | 28.16 | 79 | 0.702652 |
0e9b08d9dceb0066fa1b2cfc8f99d32319602dce | 7,847 | cc | C++ | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.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 "third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver.h"
#include "base/test/null_task_runner.h"
#include "mojo/public/cpp/bind... | 38.465686 | 88 | 0.764623 |
0e9b8cbb918e3a78352363473ff0395bab9b880a | 2,149 | cpp | C++ | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | 2 | 2020-07-25T23:23:26.000Z | 2021-12-08T16:47:10.000Z | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | null | null | null | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | null | null | null | #include "LittleFile1.hpp"
#include <limits>
#include <stdexcept>
#include <system_error>
#include "LittleFSErrorCategory.hpp"
LittleFile1::LittleFile1(lfs1_t & filesystem, std::string const & path, int flags) :
_filesystem(&filesystem),
_file(),
_open(false)
{
auto const result = lfs1_file_open(_fi... | 24.701149 | 101 | 0.653792 |
0e9c8fe4bc86416da5460816edad2fc7822048c5 | 4,887 | cxx | C++ | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | //
// "$Id: BarGroup.cxx 5895 2007-06-08 18:17:53Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// versio... | 25.321244 | 77 | 0.631062 |
0e9d4c3a1b86afe141b80004ce034c337eddf851 | 1,764 | cpp | C++ | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | 5 | 2020-09-17T08:15:14.000Z | 2021-06-17T08:35:51.000Z | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | null | null | null | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | 4 | 2019-12-29T00:58:23.000Z | 2022-01-27T12:58:36.000Z | #include "stdafx.h"
#include "Test_Registry.h"
#include "TUtils.h"
#include "TConstants.h"
using namespace std;
using namespace WinReg;
using namespace TConst;
TEST_F(Test_Registry_SetSBinaryValue, when_calling_setbinaryvalue_with_valid_parameters_values_expect_no_exception)
{
try
{
Registry::SetBinaryValue(eHKey... | 32.072727 | 117 | 0.722222 |
0e9f0bbc6f5fd102b02a814a405756e7927f998c | 367 | cpp | C++ | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int i,j;
for (i = 7; i >=1; i--)
{
for (j = 1; j <= i; j++)
{
cout<<'S';
}
cout<<endl;
}
for(i = 2; i <= 7; i++)
{
for (j = 1;j <= i; j++)
{
cout<<'... | 15.956522 | 33 | 0.280654 |
0e9f7a1add03fde6e828841efdea7f695012598d | 93,533 | cpp | C++ | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | 8 | 2018-11-27T15:43:22.000Z | 2020-04-27T08:53:49.000Z | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | null | null | null | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | null | null | null | #include "omnicore/mdex.h"
#include "omnicore/errors.h"
#include "omnicore/log.h"
#include "omnicore/omnicore.h"
#include "omnicore/rules.h"
#include "omnicore/sp.h"
#include "omnicore/tx.h"
#include "omnicore/uint256_extensions.h"
#include "arith_uint256.h"
#include "chain.h"
#include "tinyformat.h"
#include "uint25... | 39.818221 | 311 | 0.625448 |
0ea35e383669db72128e85e9a2040af441dae97e | 11,050 | cpp | C++ | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 29 | 2015-09-16T22:28:30.000Z | 2022-03-11T02:57:36.000Z | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 1 | 2017-03-29T13:32:58.000Z | 2017-03-31T13:56:03.000Z | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 10 | 2015-10-15T14:20:15.000Z | 2022-02-17T10:37:29.000Z | #include "nau/geometry/box.h"
#include "nau/math/vec3.h"
#include "nau/geometry/vertexData.h"
#include "nau/material/materialGroup.h"
using namespace nau::geometry;
using namespace nau::math;
using namespace nau::render;
using namespace nau::material;
Box::Box(void) : Primitive() {
float n = 1.0f;
std::shared_... | 45.661157 | 94 | 0.648507 |
0ea3d407461274084cd3ad1ba531ec0e53598ab5 | 3,616 | cpp | C++ | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2019-10-18T05:53:30.000Z | 2021-08-21T07:36:37.000Z | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 2 | 2019-03-14T10:26:45.000Z | 2021-08-06T01:24:06.000Z | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2018-10-14T00:17:11.000Z | 2020-07-01T04:01:25.000Z | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkCodec.h"
#include "SkColorSpace_Base.h"
#include "SkImage.h"
#include "SkImagePriv.h"
sk_sp<SkImage> make_raster_image(cons... | 40.177778 | 100 | 0.690542 |
0ea607cca50a5692e75e755921ca22a0149d13c8 | 1,129 | cpp | C++ | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "./INCLUDE/Segment.h"
#include "./INCLUDE/LKH.h"
/* The Improvement function is used to check whether a done move
* has improved the current best tour.
* If the tour has been improved, the function computes the penalty gain
* and returns 1. Otherwise, the move is undone, and the function returns 0.
*/
i... | 27.536585 | 76 | 0.568645 |
0ea62fc4b26eb67e890657b54df620d6c40fa9d8 | 1,513 | hpp | C++ | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 21 | 2020-05-02T06:32:23.000Z | 2021-07-14T11:22:07.000Z | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | null | null | null | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 1 | 2021-05-24T13:44:56.000Z | 2021-05-24T13:44:56.000Z | #ifndef KERNELS_BACKEND_CUDA_IMAGE_HPP
#define KERNELS_BACKEND_CUDA_IMAGE_HPP
#include "kernels/backend/common/image.hpp"
namespace nova {
using image2d_read_t = cudaTextureObject_t;
using image2d_write_t = cudaSurfaceObject_t;
using image2d_array_read_t = cudaTextureObject_t;
template <typename W, AddressMode A = ... | 33.622222 | 98 | 0.775942 |
0ea71360de27dae5667735ae93417c1b48bbd8a3 | 16,690 | cc | C++ | mars/stn/src/smart_heartbeat.cc | gamert/mars | 16800113c3e0c62d83f06eaeac26c18309018d5a | [
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2020-05-09T03:26:48.000Z | 2020-05-09T03:26:48.000Z | mars/stn/src/smart_heartbeat.cc | gamert/mars | 16800113c3e0c62d83f06eaeac26c18309018d5a | [
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2018-06-13T06:16:00.000Z | 2018-06-13T06:16:00.000Z | mars/stn/src/smart_heartbeat.cc | gamert/mars | 16800113c3e0c62d83f06eaeac26c18309018d5a | [
"Apache-2.0",
"BSD-2-Clause"
] | 2 | 2021-03-16T06:07:44.000Z | 2021-07-07T02:21:33.000Z | // Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the Licens... | 40.120192 | 169 | 0.687897 |
0ea7672721273c873a5e148e73fc061c4498e87e | 4,904 | cc | C++ | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "DQM/EcalCommon/interface/MESetMulti.h"
namespace ecaldqm
{
MESetMulti::MESetMulti(MESet const& _seed, ReplCandidates const& _replCandidates) :
MESet(_seed),
current_(0),
sets_(),
replCandidates_(_replCandidates)
{
PathReplacements replacements;
std::map<std::string, unsigned> indi... | 27.863636 | 180 | 0.612153 |
0eaa4e824dee738f47dfa9f67731e15a3043df38 | 1,855 | cpp | C++ | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 743 | 2021-08-02T16:27:27.000Z | 2022-03-31T16:34:16.000Z | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 32 | 2021-08-03T04:47:20.000Z | 2022-03-28T23:15:45.000Z | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 138 | 2021-08-02T16:27:28.000Z | 2022-03-31T02:47:20.000Z | #include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
//####USING####
#pragma comment(lib, "ntdll")
//####DEFINE####
//####CODE####
int Inject(int pid)
{
const unsigned char raw[] = ####SHELLCODE####;
int length = sizeof(raw);
unsigned char* encoded = (unsigned char*)malloc(sizeof(unsigned char) * length... | 21.569767 | 143 | 0.633962 |
0eaffac8eb63d3cff2fe3b924c42d153b2df6f5e | 46,915 | cpp | C++ | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | // -*-c++-*-
/*!
\file say_message_parser.cpp
\brief player's say message parser Source File
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA
This code 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 Found... | 27.244483 | 101 | 0.442588 |
0eb5873e030f758ae877cc49f1b03b74508d466d | 2,195 | cpp | C++ | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | /*
* GeneralFileReader_compatibility.h
*
* Created on: Mar 16, 2010
* Author: dberrios
*/
#include "GeneralFileReader_f.h"
#include <ccmc/wrappers/c/GeneralFileReader_c.h>
#include <ccmc/GeneralFileReader.h>
#include <ccmc/Kameleon.h>
#include <string>
#include <string.h>
#include <iostream>
using namespace... | 22.864583 | 133 | 0.768109 |
0eb626c6a158af3ce561362e0760df7b1b9fb5ba | 2,907 | cpp | C++ | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 997 | 2015-03-13T18:04:03.000Z | 2022-03-30T12:09:10.000Z | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 444 | 2015-03-26T17:28:49.000Z | 2022-03-28T19:34:05.000Z | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 294 | 2015-03-13T22:19:43.000Z | 2022-03-30T08:42:45.000Z | // ================================================================
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// ================================================================
// ================================================================
// Given a pair of `.tmk` files (see sectio... | 32.3 | 80 | 0.544204 |
0eb628c74491a49e649fd4f44d9910783a851d2c | 3,188 | cpp | C++ | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/checkboxcmn.cpp
// Purpose: wxCheckBox common code
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
//... | 34.652174 | 86 | 0.572459 |
0eb66e44a2618868d454cbc92f49a0c67f9f43d4 | 4,805 | cpp | C++ | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... | 28.772455 | 114 | 0.688033 |
0eb8410a4bd9546f67f93f6ca9fcf994bbce4171 | 1,329 | hh | C++ | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 6 | 2016-09-28T18:26:42.000Z | 2021-04-10T13:19:05.000Z | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 1 | 2021-02-09T00:24:04.000Z | 2021-02-27T22:08:05.000Z | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 5 | 2017-09-14T09:48:17.000Z | 2021-07-19T07:58:34.000Z | /*
* Copyright 2021 Aaron Bamberger
* Licensed under BSD 2-clause license
* See LICENSE file at root of source tree,
* or https://opensource.org/licenses/BSD-2-Clause
*/
#ifndef _CREATION_DATE_ATTRIBUTE_H
#define _CREATION_DATE_ATTRIBUTE_H
#include "Attributes/StandardAttribute.hh"
#include "Util/ValueWithLocati... | 30.906977 | 89 | 0.762227 |
0eb8ee6845cb344fc7bbaddeeaf9a4b469395120 | 573 | cpp | C++ | Lectures/Lecture10/indirectionExample.cpp | galursa/BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 2 | 2020-11-07T06:03:45.000Z | 2020-12-02T08:22:42.000Z | Lectures/Lecture10/indirectionExample.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | null | null | null | Lectures/Lecture10/indirectionExample.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 1 | 2020-12-07T06:01:40.000Z | 2020-12-07T06:01:40.000Z | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
int number = 5;
int* pNumber = &number;
cout << "The value of number: " << number << "\n";
cout << "The address of number: " << &number << "\n";
number++;
cout << "The value of number after first increasing: " << number << "\n";
cout <<... | 31.833333 | 78 | 0.61082 |
0eb9802deb40156a423cdb6c4308eaaa24d2e0a0 | 2,848 | hpp | C++ | src/pathfinder/yapf/yapf_node.hpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/pathfinder/yapf/yapf_node.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/pathfinder/yapf/yapf_node.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 33.505882 | 185 | 0.719803 |
0ebccddc4beac9cf4894a7fa75aef1120720436a | 7,956 | cpp | C++ | Pod/musicFramework/impl/EncodingFunctions.cpp | iKimee/musicXML | 5555f5c00e74c8e3f5ddf7e83072bf208602b970 | [
"Apache-2.0"
] | 3 | 2018-12-18T06:38:57.000Z | 2022-01-25T10:42:19.000Z | Pod/musicFramework/impl/EncodingFunctions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | null | null | null | Pod/musicFramework/impl/EncodingFunctions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | 1 | 2021-01-29T10:43:31.000Z | 2021-01-29T10:43:31.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "../impl/EncodingFunctions.h"
#include "../core/Date.h"
#include "../core/elements/Encoder.h"
#include "../core/elements/Encoding.h"
#include "../core/elements/Encoding.h"
#include "../core/elements/Encodin... | 43.005405 | 123 | 0.497612 |
0ebcd089e828e911c1d549990b66e6d9869c5758 | 584 | hh | C++ | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | <?hh // partial
namespace Test\DBAL;
use Decouple\Test\TestCase;
use Decouple\DBAL\DPDO\DPDOMySQLDriver;
use Decouple\Common\Contract\DB\Schema;
class SchemaTest extends TestCase {
public function execute() : void {
$driver = new DPDOMySQLDriver();
$connected = $driver->connect(Map {
"dbname" => "decoup... | 26.545455 | 42 | 0.630137 |
0ebd0a4fc260475489711501e0fde20ea7be290d | 10,353 | cxx | C++ | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the F... | 25.007246 | 79 | 0.60736 |
b1be644858a13a0a182ca4f0a746345f4bfd3560 | 1,403 | cpp | C++ | src/main.cpp | ajuvercr/DuwMachIIn | 1fb80c4524c81e5aab51ab62011ac996d9db1fec | [
"MIT"
] | 1 | 2019-04-26T10:16:22.000Z | 2019-04-26T10:16:22.000Z | src/main.cpp | ajuvercr/DuwMachIIn | 1fb80c4524c81e5aab51ab62011ac996d9db1fec | [
"MIT"
] | null | null | null | src/main.cpp | ajuvercr/DuwMachIIn | 1fb80c4524c81e5aab51ab62011ac996d9db1fec | [
"MIT"
] | null | null | null | #include <Servo.h>
#include "Arduino.h"
#include "./Robot.h"
#define IR A3 // define signal pin
#define MOTOR1 {8, 9, 10}
#define MOTOR2 {7, 6, 5}
Robot robot(IR, 3, MOTOR1, MOTOR2);
void setup ()
{
Serial.begin(9600); // setup serial
robot.Init();
}
void loop ()
{
robot.Act();
delay(50);
}
... | 22.269841 | 120 | 0.566643 |
b1beef00a281466b97d97d607e58c3b1af3f0f4b | 9,401 | cpp | C++ | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | #include <SepantaFollow.h>
actionlib::SimpleActionClient<sepanta_msgs::MasterAction> * ac;
SepantaFollowEngine::SepantaFollowEngine() :
App_exit(false),
_thread_Logic(&SepantaFollowEngine::logic_thread,this),
_thread_10hz_publisher(&SepantaFollowEngine::scan10hz_thread,this),
it(nh)
{
init();
}
SepantaFollowEng... | 27.014368 | 141 | 0.555898 |
b1c013defc09cbb37d164ef1765f8b0d754d5a9f | 1,215 | cpp | C++ | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
const std::pair<int, int> moves[] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0}};
/*
for(auto [dx, dy]: moves)
{
// Here nr and nc are what comes into the queue - i & j
dx += nr;
dy += nc;
}
*/
vector<vector<int>> getNeighbours(int r, int c, int R, int C)
{
vect... | 22.5 | 76 | 0.438683 |
b1c0e98ec3849d065085b7114a0535471daa9396 | 2,072 | cpp | C++ | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null |
// Copyright Nathaniel Christen 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "application-model/application-config-model.h"
#include "config-dialog/config-dialog.h"
#inc... | 21.142857 | 96 | 0.689189 |
b1c317c77e9e58a10205a781cc2a3db7e2c4ec28 | 16,303 | cpp | C++ | windows/tencent_trtc_cloud_plugin.cpp | changleibox/tencent_trtc_cloud | 4fd9b1ec1dbe7bea20192a3b7281db3dc7ffefc5 | [
"Apache-2.0"
] | null | null | null | windows/tencent_trtc_cloud_plugin.cpp | changleibox/tencent_trtc_cloud | 4fd9b1ec1dbe7bea20192a3b7281db3dc7ffefc5 | [
"Apache-2.0"
] | null | null | null | windows/tencent_trtc_cloud_plugin.cpp | changleibox/tencent_trtc_cloud | 4fd9b1ec1dbe7bea20192a3b7281db3dc7ffefc5 | [
"Apache-2.0"
] | null | null | null | #include "include/tencent_trtc_cloud/tencent_trtc_cloud_plugin.h"
// This must be included before many other Windows headers.
#include <windows.h>
// For getPlatformVersion; remove unless needed for your plugin implementation.
#include <VersionHelpers.h>
#include <flutter/method_channel.h>
#include <flutter/plugin_re... | 51.920382 | 95 | 0.731644 |
b1c355b9c8abc786c5156b692cc8dbd37374cf30 | 1,468 | cpp | C++ | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/09/2019 19:04
* solution_verdict: Time limit exceeded on test 3 language: GNU C++14
* run... | 34.952381 | 111 | 0.424387 |
b1c4430b410f7e361b37593904e11d8dd9dbf90c | 4,813 | inl | C++ | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-06-18T00:48:13.000Z | 2021-06-18T00:48:13.000Z | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-09-04T19:54:41.000Z | 2021-09-04T19:54:41.000Z | //--------------------------------------------------
// Atta Math
// matrix.inl
// Date: 2021-04-09
// By Breno Cunha Queiroz
//--------------------------------------------------
namespace atta
{
template <typename T>
matrix<T>::matrix(size_t _nrows, size_t _ncols):
nrows(_nrows), ncols(_ncols)
{
... | 24.18593 | 84 | 0.446291 |
b1c6b8eef546084dcea55ebd8b3d2248adb23535 | 901 | cpp | C++ | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | #include <sstream>
#include "file_interpreter.hpp"
#include "interpreter.hpp"
using namespace cuttle;
namespace fs = boost::filesystem;
void fileui::interpret_file(compile_state_t &state, vm::context_t &context, const fs::path &file_path, std::deque<vm::value_t> &arg_stack) {
if (state.cached_files.count(file_pa... | 40.954545 | 140 | 0.63374 |
b1ca291f78e472557a0357d67e77cc7efc558f9b | 5,854 | cpp | C++ | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | 1 | 2022-02-22T15:03:57.000Z | 2022-02-22T15:03:57.000Z | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | null | null | null | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | 1 | 2022-02-28T09:53:30.000Z | 2022-02-28T09:53:30.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 35.695122 | 91 | 0.645883 |
b1cc627fb18a56f57bb7f0fb10f617dfa3139c42 | 1,952 | cpp | C++ | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | //-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#include "ConnectionManager.h"
#include "TcpClient.h"
#include "TcpServer.h"
#include "TimerManager.h"
//-----------------------------------------------------------------------------
ConnectionManager::Co... | 26.378378 | 89 | 0.420082 |
b1cd616a7aa784692689dac31d6a6606bec591e7 | 323 | hpp | C++ | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | null | null | null | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 12 | 2019-05-22T12:22:44.000Z | 2019-06-15T17:31:04.000Z | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 1 | 2019-06-18T12:57:58.000Z | 2019-06-18T12:57:58.000Z | /*
** EPITECH PROJECT, 2019
** bomberman
** File description:
** Bedrock.hpp
*/
#ifndef BOMBERMAN_BEDROCK_HPP
#define BOMBERMAN_BEDROCK_HPP
#include "../Entity.hpp"
namespace ECS
{
class Bedrock : public Entity {
public:
explicit Bedrock(unsigned id, Ressources &ressources);
};
}
#endif //BOMBERMAN_BEDROCK_H... | 13.458333 | 56 | 0.727554 |
b1cdccc1020badc02ff098d6542f43c889ec72e8 | 21,461 | cpp | C++ | src/base/command/RunSimulator.cpp | Randl/GMAT | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 2 | 2020-01-01T13:14:57.000Z | 2020-12-09T07:05:07.000Z | src/base/command/RunSimulator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 1 | 2018-03-15T08:58:37.000Z | 2018-03-20T20:11:26.000Z | src/base/command/RunSimulator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 3 | 2019-10-13T10:26:49.000Z | 2020-12-09T07:06:55.000Z | //$Id$
//------------------------------------------------------------------------------
// ClassName
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2015 United States Government as represented by ... | 32.966206 | 80 | 0.501281 |
b1d01ec0df3e96cbed6534419a1d793d2c4ef5bd | 1,377 | cpp | C++ | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | // Implementation of Andrew's monotone chain 2D convex hull algorithm.
#include <algorithm>
#include <vector>
using namespace std;
typedef int coord_t; // coordinate type
typedef long long coord2_t; // must be big enough to hold 2*max(|coordinate|)^2
struct Point {
coord_t x, y;
bool operator <(const P... | 27 | 85 | 0.6122 |
b1d0d3b0958efb8dfbe160f5466d55ab95eaeb93 | 2,218 | hpp | C++ | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2021-04-06T03:32:12.000Z | 2021-04-06T03:32:12.000Z | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 28 | 2021-09-24T09:29:02.000Z | 2022-03-28T13:20:46.000Z | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2020-08-30T11:48:03.000Z | 2020-08-30T11:48:03.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ngraph/function.hpp>
#include "template_config.hpp"
#include "template_infer_request.hpp"
#include "template_async_infer_request.hpp"
#include <cpp_interfaces/impl/ie_executable_network_thread_safe_default.... | 36.360656 | 127 | 0.656898 |
b1d36c9eb1587cbe78acaf59ce35de0a417cfdd2 | 13,625 | cpp | C++ | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | #include "bytearray.h"
#include "endian.h"
#include "log.h"
#include "socket.h"
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <endian.h>
#include <fstream>
#include <iomanip>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
namespace cool {
static cool::... | 22.263072 | 80 | 0.584294 |
b1d378f667928cda69bc2a142c51252e1a566759 | 966 | cpp | C++ | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// This is an open source non-commercial project.
// Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java:
// http://www.viva64.c... | 42 | 78 | 0.516563 |
b1d4484f5cd5bbafd7d091be3c8116d6b2e93104 | 5,263 | cpp | C++ | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | #include "../header/world.h"
#include "../header/WorldProgram/sphereProgram.h"
#include "../header/WorldProgram/triangleProgram.h"
#include "../header/Shape/shape.h"
#include "../header/Math/intersection.h"
World::World(const glm::vec3& color) {
backgroundColor = color;
}
World::~World() {
for (const ShapeProgram* ... | 30.247126 | 131 | 0.694091 |
b1d62dbd78a341ebaa4756b65b603bef0b7853a1 | 666 | cc | C++ | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codeforces.com/contest/1253/problem/E
#include <bits/stdc++.h>
using namespace std;
using ii = tuple<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
int main() {
int n, m, x, s, l, r;
cin >> n >> m;
vii a(n);
for (int i = 0; i < n; i++) {
cin >> x >> s;
a[i] = { x - s, x + s };
... | 21.483871 | 54 | 0.408408 |
b1d8eff6a7ff88808dc410b7ffec813bf19db1b6 | 43 | cpp | C++ | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 1,600 | 2018-05-24T01:32:44.000Z | 2022-03-31T09:24:11.000Z | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 280 | 2017-08-27T13:10:51.000Z | 2018-05-23T15:09:58.000Z | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 475 | 2018-05-23T15:26:27.000Z | 2022-03-31T07:28:19.000Z | ../../../recipe-07/cxx-example/src/main.cpp | 43 | 43 | 0.651163 |
b1d9b8b60e814d0b4fec21840ca80d402475edd4 | 7,461 | cc | C++ | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* 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... | 31.481013 | 119 | 0.669749 |
b1dd600520e03aef39f6e24d5c88a2633aed8ae1 | 4,944 | cpp | C++ | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | 7 | 2020-10-23T16:33:45.000Z | 2021-09-17T23:49:36.000Z | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | null | null | null | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | 3 | 2021-03-18T08:45:36.000Z | 2021-08-17T02:36:06.000Z | #include "DenoiseSystem.h"
#include "../Components/DenoiseData.h"
#include <_deps/imgui/imgui.h>
#include <spdlog/spdlog.h>
#include <cmath>
#include <algorithm>
using namespace Ubpa;
void DenoiseSystem::OnUpdate(Ubpa::UECS::Schedule& schedule) {
schedule.RegisterCommand([](Ubpa::UECS::World* w) {
auto data = w... | 28.090909 | 101 | 0.543689 |
b1dda328f31df8cf35b95708ab95852f31455d1f | 5,331 | cpp | C++ | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 29.616667 | 142 | 0.673044 |
b1de7160e7d1447732775e18dd2b58e730305d7c | 9,667 | cpp | C++ | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | #include "lxgui/gui_statusbar.hpp"
#include "lxgui/gui_frame.hpp"
#include "lxgui/gui_manager.hpp"
#include "lxgui/gui_texture.hpp"
#include "lxgui/gui_out.hpp"
#include "lxgui/gui_alive_checker.hpp"
#include "lxgui/gui_uiobject_tpl.hpp"
#include <sstream>
namespace lxgui {
namespace gui
{
std::array<flo... | 27.463068 | 122 | 0.589531 |
b1df4b5a490fa00c9f80aff7a4b4df241c695a6c | 564 | hpp | C++ | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | 1 | 2015-01-05T16:57:56.000Z | 2015-01-05T16:57:56.000Z | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | 18 | 2015-07-04T21:49:23.000Z | 2018-07-30T09:19:32.000Z | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | null | null | null | #ifndef INCLUDE_APG_CORE_APGCOMMON_HPP_
#define INCLUDE_APG_CORE_APGCOMMON_HPP_
#include <memory>
#include <glm/vec2.hpp>
#include <glm/vec4.hpp>
namespace APG {
struct Vertex {
float x;
float y;
float c;
float u;
float v;
};
static constexpr const int VERTEX_SIZE = 5;
namespace internal {
static constexpr... | 16.588235 | 64 | 0.781915 |
b1df936e85d698cf9dcf2e8f2bc0d70ddc068d86 | 454 | cpp | C++ | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
long long used[100]={0},n,a[100]={0},c[100]={0},i;
string s;
void PL(int k)
{
int i;
if(k>n)
{for(i=1;i<k;i++)cout<<a[i]<<" ";cout<<endl;return;}
for(i=1;i<=n;i++)
{
if(used[i]==0)
{
a[k]=c[i];
used[i]=1;
PL(k+1);
used[i]... | 16.814815 | 55 | 0.427313 |
b1e12b044d201b5c67c0ceeea3023c68e4072d17 | 3,837 | cc | C++ | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T13:16:14.000Z | 2020-06-30T13:16:14.000Z | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | 1 | 2020-03-05T02:44:12.000Z | 2020-03-05T02:44:12.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 "flutter/flow/matrix_decomposition.h"
namespace flow {
static inline SkVector3 SkVector3Combine(const SkVector3& a,
... | 27.021127 | 80 | 0.551733 |
b1e1b63be32d9ae14afacee97ad9ef162e3ae6b5 | 8,608 | cc | C++ | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 9 | 2018-03-07T19:15:27.000Z | 2019-02-22T20:10:23.000Z | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 5 | 2018-11-13T19:59:46.000Z | 2020-04-09T19:31:25.000Z | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 2 | 2018-07-20T01:06:48.000Z | 2019-11-25T12:15:16.000Z | #include <cedar/3d/mpi/plane_mempool.h>
#include <cedar/3d/mpi/plane_mpi.h>
#include <cedar/3d/mpi/relax_planes.h>
namespace cedar { namespace cdr3 { namespace mpi {
template<relax_dir rdir>
std::shared_ptr<grid_topo> planes<rdir>::slice_topo(const grid_topo & topo3)
{
auto igrd = std::make_shared<std::vector<len_t... | 42.196078 | 152 | 0.599907 |