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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e9db5bb7662098821c5b9b89ae2b0c376e7ef56 | 14,618 | hpp | C++ | src/Discretization/Basis/Intrepid_HGRAD_QUAD_Cn_FEMDef.hpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | src/Discretization/Basis/Intrepid_HGRAD_QUAD_Cn_FEMDef.hpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | src/Discretization/Basis/Intrepid_HGRAD_QUAD_Cn_FEMDef.hpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | #ifndef INTREPID_HGRAD_QUAD_CN_FEMDEF_HPP
#define INTREPID_HGRAD_QUAD_CN_FEMDEF_HPP
// @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL850... | 37.007595 | 113 | 0.668012 | Sandia2014 |
2ea00050e999b07f5da7e6dc0320ed81eca8c19e | 1,112 | cpp | C++ | mythread.cpp | xiaoxiaozhu5/videotrans | 3c33a4cfdf42ad9578183c3dfcc0670cc51a6139 | [
"MIT"
] | 2 | 2020-04-13T10:00:48.000Z | 2020-05-13T09:44:56.000Z | mythread.cpp | xiaoxiaozhu5/videotrans | 3c33a4cfdf42ad9578183c3dfcc0670cc51a6139 | [
"MIT"
] | null | null | null | mythread.cpp | xiaoxiaozhu5/videotrans | 3c33a4cfdf42ad9578183c3dfcc0670cc51a6139 | [
"MIT"
] | 2 | 2016-05-02T11:58:39.000Z | 2018-09-03T16:32:28.000Z | #include "mythread.h"
MyThread::MyThread()
{
runing_ = 1;
#ifdef OK6410
vd = new VideoDevice(tr("/dev/video2"));
#else
vd_ = new VideoDevice(tr("/dev/video0"));
#endif
if(-1 == vd_->open_device())
{
exit(EXIT_FAILURE);
}
if(-1 == vd_->init_device())
{
exit(EXIT_FAILUR... | 15.444444 | 60 | 0.482014 | xiaoxiaozhu5 |
2ea10d0c6a184afa432a92c8b548c83c9b818c2a | 5,504 | cc | C++ | src/tests/pmempools/pmempool_create/valid_arguments_tests.cc | muttleyxd/pmdk-tests | 17e66a5a9d825be385ab2824c4a754f1b8a839d4 | [
"BSD-3-Clause"
] | null | null | null | src/tests/pmempools/pmempool_create/valid_arguments_tests.cc | muttleyxd/pmdk-tests | 17e66a5a9d825be385ab2824c4a754f1b8a839d4 | [
"BSD-3-Clause"
] | null | null | null | src/tests/pmempools/pmempool_create/valid_arguments_tests.cc | muttleyxd/pmdk-tests | 17e66a5a9d825be385ab2824c4a754f1b8a839d4 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2017, Intel Corporation
*
* 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 conditions and the f... | 42.015267 | 80 | 0.646076 | muttleyxd |
2ea3aa3f4fffe038e284106b6d3cb5bec3731cfe | 86 | hpp | C++ | components/downtime/ui/titles.hpp | Bubbus/F3_CA_BUB | cd7a725d65afa56a3a7f24288c839333f03b5454 | [
"Unlicense"
] | 1 | 2020-10-30T16:10:23.000Z | 2020-10-30T16:10:23.000Z | components/downtime/ui/titles.hpp | Bubbus/F3_CA_BUB | cd7a725d65afa56a3a7f24288c839333f03b5454 | [
"Unlicense"
] | 41 | 2020-11-20T18:24:19.000Z | 2021-12-14T15:51:50.000Z | components/downtime/ui/titles.hpp | Bubbus/F3_CA_BUB | cd7a725d65afa56a3a7f24288c839333f03b5454 | [
"Unlicense"
] | 2 | 2020-11-08T16:59:28.000Z | 2021-11-30T11:41:10.000Z |
#include "unconsciousTitle.hpp"
#include "deadTitle.hpp"
#include "respawnTitle.hpp"
| 17.2 | 31 | 0.77907 | Bubbus |
2ea52adfcbea312af45334ea2f71e021d3df8fbd | 1,110 | cc | C++ | src/util/file_system.cc | FlyAlCode/PLBGHashing | 289d0a66c9091602abedf2860c2b3ae9d763fed0 | [
"MIT"
] | 1 | 2021-02-13T01:45:20.000Z | 2021-02-13T01:45:20.000Z | src/util/file_system.cc | FlyAlCode/PLBGHashing | 289d0a66c9091602abedf2860c2b3ae9d763fed0 | [
"MIT"
] | null | null | null | src/util/file_system.cc | FlyAlCode/PLBGHashing | 289d0a66c9091602abedf2860c2b3ae9d763fed0 | [
"MIT"
] | null | null | null | #include "file_system.h"
#include <iostream>
#include <fstream>
#include <string.h> //包含strcmp的头文件,也可用: #include <ctring>
#include <dirent.h>
#include <algorithm>
void getFileNames(const std::string path, std::vector<std::string>& filenames, const std::string &suffix){
DIR *pDir;
struct dirent* ptr; ... | 35.806452 | 110 | 0.438739 | FlyAlCode |
2ea71c71965f6741fb29367feec2678da8eae6ba | 16,072 | cpp | C++ | src/number.cpp | Ixhel/Algebra | a42a9a2d48237ab00febddbffc4a35b7e7e5fee8 | [
"MIT"
] | null | null | null | src/number.cpp | Ixhel/Algebra | a42a9a2d48237ab00febddbffc4a35b7e7e5fee8 | [
"MIT"
] | null | null | null | src/number.cpp | Ixhel/Algebra | a42a9a2d48237ab00febddbffc4a35b7e7e5fee8 | [
"MIT"
] | null | null | null | /*
SymbolicC++ : An object oriented computer algebra system written in C++
Copyright (C) 2008 Yorick Hardy and Willi-Hans Steeb
This library 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; ei... | 29.653137 | 75 | 0.655799 | Ixhel |
2ead27899aae79778df001bee634beaa251bb99e | 1,576 | cpp | C++ | source/V2E/C_plant.cpp | CleoBeldia/CalmWood-CPP | c8b6b15593f9ba371390e3c426310941297138cb | [
"Apache-2.0"
] | 2 | 2020-10-11T20:10:30.000Z | 2021-01-18T21:29:25.000Z | source/V2E/C_plant.cpp | CleoBeldia/CalmWood-CPP | c8b6b15593f9ba371390e3c426310941297138cb | [
"Apache-2.0"
] | null | null | null | source/V2E/C_plant.cpp | CleoBeldia/CalmWood-CPP | c8b6b15593f9ba371390e3c426310941297138cb | [
"Apache-2.0"
] | 1 | 2020-10-21T09:20:36.000Z | 2020-10-21T09:20:36.000Z | /*
* Copyright 2020 Axel Polin, univ_apolin@protonmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 18.987952 | 84 | 0.641497 | CleoBeldia |
2eae6b9ecc810d1c07ea799dda9695baca334e78 | 100 | cpp | C++ | src/util/stb_image.cpp | chrku/ray_tracer | 412250769072d318b9006ff22abdc0a5bb83ef14 | [
"MIT"
] | 1 | 2019-07-22T17:19:15.000Z | 2019-07-22T17:19:15.000Z | src/util/stb_image.cpp | chrku/ray_tracer | 412250769072d318b9006ff22abdc0a5bb83ef14 | [
"MIT"
] | null | null | null | src/util/stb_image.cpp | chrku/ray_tracer | 412250769072d318b9006ff22abdc0a5bb83ef14 | [
"MIT"
] | null | null | null | //
// Created by christoph on 08.08.19.
//
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
| 14.285714 | 36 | 0.73 | chrku |
2eae9c5fffd6c6f40f4fe2413bc3cbe2b19060e1 | 5,577 | cpp | C++ | Tests/dspBufferTest.cpp | ngwese/madronalib | 4e9221532bb250f0c034cc9091b4be1fb4f5a572 | [
"MIT"
] | null | null | null | Tests/dspBufferTest.cpp | ngwese/madronalib | 4e9221532bb250f0c034cc9091b4be1fb4f5a572 | [
"MIT"
] | null | null | null | Tests/dspBufferTest.cpp | ngwese/madronalib | 4e9221532bb250f0c034cc9091b4be1fb4f5a572 | [
"MIT"
] | null | null | null | //
// dspBufferTest.cpp
// madronalib
//
#include <chrono>
using namespace std::chrono;
#include <thread>
#include "MLDSPBuffer.h"
#include "catch.hpp"
#include "mldsp.h"
using namespace ml;
namespace dspBufferTest
{
TEST_CASE("madronalib/core/dspbuffer", "[dspbuffer]")
{
std::cout << "\nDSPBUFFER\n";
// bu... | 22.950617 | 76 | 0.638874 | ngwese |
2eb3b8476376b2d07a6a7ca748919e1805b7ac81 | 3,015 | cpp | C++ | TypeMap.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | 2 | 2015-07-01T17:47:02.000Z | 2015-07-01T17:53:11.000Z | TypeMap.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | null | null | null | TypeMap.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | null | null | null | // A type map that allows mapping of type K to a values of type V.
//
// Compiled using Visual Studio 2015
#include <iostream>
#include <atomic>
#include <unordered_map>
#include <string>
#include <memory>
#include <cassert>
namespace TypeMap {
template<class V>
class TypeMap {
public:
// These type defini... | 27.916667 | 125 | 0.653731 | DForshner |
2eb7f267c876c3813c6cb42be19f3691815fe0e6 | 37,685 | cpp | C++ | mysqlparser/base/unit-tests/string_utilities_test.cpp | aasthakm/qapla | f98ca92adbca75fee28587e540b8c851809c7a62 | [
"BSD-4-Clause"
] | 4 | 2020-12-13T15:02:40.000Z | 2021-07-16T06:23:38.000Z | mysqlparser/base/unit-tests/string_utilities_test.cpp | aasthakm/qapla | f98ca92adbca75fee28587e540b8c851809c7a62 | [
"BSD-4-Clause"
] | null | null | null | mysqlparser/base/unit-tests/string_utilities_test.cpp | aasthakm/qapla | f98ca92adbca75fee28587e540b8c851809c7a62 | [
"BSD-4-Clause"
] | null | null | null | /*
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
*
* 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; version 2 of the
* License.
*
* This program is dist... | 38.770576 | 379 | 0.657105 | aasthakm |
e481c3b52bd9acdb8521879b7f281f912a2e51ac | 2,568 | cpp | C++ | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Probes/svcraw_repl.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Probes/svcraw_repl.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Probes/svcraw_repl.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2007-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
/* ===================================================================== */
/*! @file
Replaces svcraw_create(). Linux only, of course.
On some OSes this routine can be probed only if Pin
moves the whole routine to another place
... | 27.319149 | 117 | 0.465732 | ArthasZhang007 |
e4831c658db1347b687e50b3143b0efaba2d5b43 | 4,623 | cpp | C++ | tests/boss/test_rpc.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | null | null | null | tests/boss/test_rpc.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | null | null | null | tests/boss/test_rpc.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | null | null | null | #undef NDEBUG
#include"Boss/Mod/Rpc.hpp"
#include"Boss/Shutdown.hpp"
#include"Ev/Io.hpp"
#include"Ev/concurrent.hpp"
#include"Ev/start.hpp"
#include"Ev/yield.hpp"
#include"Jsmn/Object.hpp"
#include"Json/Out.hpp"
#include"Net/Fd.hpp"
#include"S/Bus.hpp"
#include<assert.h>
#include<cstdint>
#include<fcntl.h>
#include<sys... | 23.707692 | 70 | 0.594636 | 3nprob |
e4839ba7ebd51b4d8bb191fa34ab317446643bea | 12,605 | cpp | C++ | minesweeper/Board.cpp | elipwns/Data-Structures | 6c9d6da1254aefd31dfed5edad5987a70c4423a9 | [
"MIT"
] | null | null | null | minesweeper/Board.cpp | elipwns/Data-Structures | 6c9d6da1254aefd31dfed5edad5987a70c4423a9 | [
"MIT"
] | null | null | null | minesweeper/Board.cpp | elipwns/Data-Structures | 6c9d6da1254aefd31dfed5edad5987a70c4423a9 | [
"MIT"
] | null | null | null | #include "board.h"
#include "Node.h"
#include "LinkedList.h"
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include <stdlib.h>
#include <time.h>
/**********************************************************************
* Purpose: Board no arg Ctor
*
* Entry:
*
* Exit: defaults the done flag to f... | 25.464646 | 77 | 0.485442 | elipwns |
e483fc40b0f003010d558d9b203c73e3f3e9435b | 973 | cc | C++ | src/leetcode/leetcode204_count_primes.cc | zhaozigu/algs-multi-langs | 65ef5fc6df6236064a5c81e5bb7e99c4bae044a7 | [
"CNRI-Python"
] | null | null | null | src/leetcode/leetcode204_count_primes.cc | zhaozigu/algs-multi-langs | 65ef5fc6df6236064a5c81e5bb7e99c4bae044a7 | [
"CNRI-Python"
] | null | null | null | src/leetcode/leetcode204_count_primes.cc | zhaozigu/algs-multi-langs | 65ef5fc6df6236064a5c81e5bb7e99c4bae044a7 | [
"CNRI-Python"
] | null | null | null | // https://leetcode-cn.com/problems/count-primes/
#include <vector>
using namespace std;
class Solution
{
public:
int countPrimes(int n)
{
// 0ms 秘诀
// if (n == 10000)
// return 1229;
// if (n == 499979)
// return 41537;
// if (n == 999983)
// return 78497;
// if (n == 1500000... | 17.690909 | 49 | 0.564234 | zhaozigu |
e4844cfa4f75fff58facfe7c11088de866535a88 | 3,110 | hpp | C++ | modules/scene_manager/include/map_msgs/srv/save_map__rosidl_typesupport_connext_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/map_msgs/srv/save_map__rosidl_typesupport_connext_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/map_msgs/srv/save_map__rosidl_typesupport_connext_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_connext_cpp/resource/srv__rosidl_typesupport_connext_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef MAP_MSGS__SRV__SAVE_MAP__ROSIDL_TYPESUPPORT_CONNEXT_CPP_HPP_
#define MAP_MSGS__SRV__SAVE_MAP__ROSIDL_TYPESUPPORT_CONNEXT_CPP_HPP_
#include <rmw/types.h>... | 25.491803 | 110 | 0.83537 | Omnirobotic |
e48749019a377c8ad9980398a2ae66700a95920a | 6,610 | cpp | C++ | source/parallel_free_suitor.cpp | alanmazankiewicz/Cpp_Suitor_and_Local_Dominant_Matching | 2fba808998cc58bd6c1a792b7c8d835e487bf3f5 | [
"MIT"
] | null | null | null | source/parallel_free_suitor.cpp | alanmazankiewicz/Cpp_Suitor_and_Local_Dominant_Matching | 2fba808998cc58bd6c1a792b7c8d835e487bf3f5 | [
"MIT"
] | null | null | null | source/parallel_free_suitor.cpp | alanmazankiewicz/Cpp_Suitor_and_Local_Dominant_Matching | 2fba808998cc58bd6c1a792b7c8d835e487bf3f5 | [
"MIT"
] | null | null | null | #include "implementation/parallel_free_suitor.hpp"
ParallelLocklessSuitor::ParallelLocklessSuitor(Input edgeLst) : G(edgeLst.second, edgeLst.first),
suitor(std::make_unique<std::atomic<EdgeIterator>[]>(G.numNodes()))
{
for (auto iter = suitor.get(); i... | 31.47619 | 176 | 0.506505 | alanmazankiewicz |
e487edc57ca47f265618b70b409b2af3da2845ea | 643 | hpp | C++ | libs/parsejson/include/sge/parse/json/get_return_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/parsejson/include/sge/parse/json/get_return_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/parsejson/include/sge/parse/json/get_return_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_PARSE_JSON_GET_RETURN_TYPE_HPP_INCLUDED
#define SGE_PARSE_JSON_GET_RETURN_TYPE_HPP_INCL... | 27.956522 | 95 | 0.760498 | cpreh |
e487f596b569c234a2294b45d1e9eb5b738888b4 | 1,062 | cc | C++ | algo/searching/search_matrix.cc | liuheng/recipes | 6f3759ab4e4fa64d9fd83a60ee6b6846510d910b | [
"MIT"
] | null | null | null | algo/searching/search_matrix.cc | liuheng/recipes | 6f3759ab4e4fa64d9fd83a60ee6b6846510d910b | [
"MIT"
] | null | null | null | algo/searching/search_matrix.cc | liuheng/recipes | 6f3759ab4e4fa64d9fd83a60ee6b6846510d910b | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cassert>
#include <vector>
using namespace std;
bool binarySearch(vector<vector<int> > &matrix, int begin, int end, int target) {
int M = matrix.size();
int N = matrix[0].size();
if (begin == end) {
return false;
} else {
int mid = begin + (end - begin) / 2;... | 24.697674 | 81 | 0.531073 | liuheng |
e48b9cb53e6ea2dbb31824c28d09eed3dd26b213 | 3,645 | cpp | C++ | main.cpp | HadesD/GoogleSearchCPP | f065e4c25d6192e1707566b4d03da337afe1041a | [
"MIT"
] | null | null | null | main.cpp | HadesD/GoogleSearchCPP | f065e4c25d6192e1707566b4d03da337afe1041a | [
"MIT"
] | null | null | null | main.cpp | HadesD/GoogleSearchCPP | f065e4c25d6192e1707566b4d03da337afe1041a | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <string>
#include <regex>
#include <curl/curl.h>
// using namespace std;
std::string url = "http://www.google.com.vn/search?q=";
std::string query;
std::string data;
bool input();
std::string encode_query(std::string &q);
size_t writeCallback(char* buf, size_t size, si... | 21.315789 | 116 | 0.561317 | HadesD |
e48ccfe0b07eaeec5c4d1897b781cc2a32f7adfb | 736 | cpp | C++ | solutions/beecrowd/2062/2062.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 18 | 2015-01-22T04:08:51.000Z | 2022-01-08T22:36:47.000Z | solutions/beecrowd/2062/2062.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 4 | 2016-04-25T12:32:46.000Z | 2021-06-15T18:01:30.000Z | solutions/beecrowd/2062/2062.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 25 | 2015-03-02T06:21:51.000Z | 2021-09-12T20:49:21.000Z | #include <cstdint>
#include <iostream>
#include <string>
int main() {
int16_t n;
std::string word;
while (std::cin >> n) {
for (int16_t i = 0; i < n; i++) {
if (i > 0) {
std::cout << " ";
}
std::cin >> word;
if (word.size() == 3) {
... | 21.647059 | 62 | 0.315217 | deniscostadsc |
e491087200cacb15f13418bd088d298feac0ab03 | 2,611 | cpp | C++ | TG/bookcodes/ch3/uva11922.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | TG/bookcodes/ch3/uva11922.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | TG/bookcodes/ch3/uva11922.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa11922 Permutation Transformer
// Rujia Liu
#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
struct Node {
Node *ch[2];
int s;
int flip;
int v;
int cmp(int k) const {
int d = k - ch[0]->s;
if(d == 1) return -1;
return d <= 0 ? 0 : 1;
}
void maintain() {
s = ... | 18.784173 | 62 | 0.499809 | Anyrainel |
e491c6d21f80df9721ed2efce20317a514c9b3e2 | 6,639 | cpp | C++ | src/plugins/temperature/temperature_sensor_hal.cpp | fourkbomb/sensor-plugins | 6f86a79e4b4e35cf85dede63686401408b9b6ff7 | [
"Apache-2.0"
] | null | null | null | src/plugins/temperature/temperature_sensor_hal.cpp | fourkbomb/sensor-plugins | 6f86a79e4b4e35cf85dede63686401408b9b6ff7 | [
"Apache-2.0"
] | null | null | null | src/plugins/temperature/temperature_sensor_hal.cpp | fourkbomb/sensor-plugins | 6f86a79e4b4e35cf85dede63686401408b9b6ff7 | [
"Apache-2.0"
] | null | null | null | /*
* temperature_sensor_hal
*
* Copyright (c) 2014 Samsung Electronics 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
*
* ... | 25.933594 | 118 | 0.749812 | fourkbomb |
e4942b3a1d7612af3a500a2a2ab8bd2993208287 | 1,134 | cpp | C++ | Test1/codes/choiking10.cpp | koohanmo/JudgeForTA | a894042448c761c333af74c529d99e2e84e2922f | [
"MIT"
] | 1 | 2017-05-23T06:57:51.000Z | 2017-05-23T06:57:51.000Z | Test1/codes/choiking10.cpp | koohanmo/JudgeForTA | a894042448c761c333af74c529d99e2e84e2922f | [
"MIT"
] | null | null | null | Test1/codes/choiking10.cpp | koohanmo/JudgeForTA | a894042448c761c333af74c529d99e2e84e2922f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <vector>
#include <bitset>
#include <map>
using std::vector;
long long count_num(vector<int>& d, int depth, int idx, long long val, long long limit) {
if (idx == d.size() || val > limit) return 0;
long long ret = 0;
for (int i = idx; i < d.size(); i++) {
if... | 27.658537 | 90 | 0.502646 | koohanmo |
e49583528ca6416bc82d041d901cd0db574352c3 | 7,964 | cpp | C++ | tools/zip/src/zip_reader.cpp | openharmony-sig-ci/aafwk_standard | 5ef3550de797241d46e47c5f446eba5428d180f1 | [
"Apache-2.0"
] | null | null | null | tools/zip/src/zip_reader.cpp | openharmony-sig-ci/aafwk_standard | 5ef3550de797241d46e47c5f446eba5428d180f1 | [
"Apache-2.0"
] | null | null | null | tools/zip/src/zip_reader.cpp | openharmony-sig-ci/aafwk_standard | 5ef3550de797241d46e47c5f446eba5428d180f1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Huawei Device 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 ... | 27.462069 | 116 | 0.653566 | openharmony-sig-ci |
e49626e1247bf52cd5bbbe5ed53a3feebda2b654 | 178 | cpp | C++ | examples/valid.cpp | dtrugman/Kuvasz | 3391832f017cb4946c6d135bb9382a0d446eadc1 | [
"Apache-2.0"
] | 2 | 2017-05-20T20:59:36.000Z | 2021-01-15T11:01:53.000Z | examples/valid.cpp | dtrugman/Bulldog | 3391832f017cb4946c6d135bb9382a0d446eadc1 | [
"Apache-2.0"
] | null | null | null | examples/valid.cpp | dtrugman/Bulldog | 3391832f017cb4946c6d135bb9382a0d446eadc1 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <unistd.h>
using namespace std;
int main(int argc, char ** argv)
{
while(true)
{
cout << "HI" << endl;
sleep(1000);
}
} | 13.692308 | 32 | 0.539326 | dtrugman |
e498a6456781de9b1d63f50dc556770d91a0d11e | 4,957 | cpp | C++ | device/services/profiler_service/test/unittest/trace_file_reader_test.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | null | null | null | device/services/profiler_service/test/unittest/trace_file_reader_test.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | null | null | null | device/services/profiler_service/test/unittest/trace_file_reader_test.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:44.000Z | 2021-09-13T11:17:44.000Z | /*
* Copyright (c) 2021 Huawei Device 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 or a... | 30.98125 | 112 | 0.628404 | openharmony-gitee-mirror |
e49b967061c29c9f18ae55eccce5d82fefedbbce | 852 | cpp | C++ | stone-game/stone-game.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | stone-game/stone-game.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | stone-game/stone-game.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
int helper(vector<int>& piles,int left,int right,vector<vector<int>>&dp){
if(left>=right)
return 0;
if(dp[left][right]!=-1)
return dp[left][right];
int choosel=piles[left]+min(helper(piles,left+2,right,dp),helper(piles,left,right-1,dp));
... | 34.08 | 98 | 0.561033 | Ananyaas |
e49e46fc13a2ff9b2d8116f2c55ee3c73f579f8a | 1,981 | cc | C++ | sdk/lib/fdio/fd.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | sdk/lib/fdio/fd.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | sdk/lib/fdio/fd.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 1 | 2021-08-23T11:33:57.000Z | 2021-08-23T11:33:57.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/fdio/fdio.h>
#include <variant>
#include <fbl/auto_lock.h>
#include "fdio_unistd.h"
#include "internal.h"
__EXPORT
zx_status_t fdio_fd_cr... | 27.136986 | 100 | 0.660273 | allansrc |
e49f1a80f8e51fd5090b98340f26e99ab5e19616 | 1,641 | cpp | C++ | test/test_params.cpp | DanielLenz/rFBP | fc8ae71a8ff58858f6800eeb3a3f25a56c143d18 | [
"MIT"
] | 7 | 2019-12-03T17:45:31.000Z | 2021-04-21T15:46:41.000Z | test/test_params.cpp | DanielLenz/rFBP | fc8ae71a8ff58858f6800eeb3a3f25a56c143d18 | [
"MIT"
] | 6 | 2020-09-28T06:57:23.000Z | 2020-10-22T05:41:12.000Z | test/test_params.cpp | DanielLenz/rFBP | fc8ae71a8ff58858f6800eeb3a3f25a56c143d18 | [
"MIT"
] | 1 | 2020-10-11T08:59:41.000Z | 2020-10-11T08:59:41.000Z | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <params.hpp>
#include <algorithm>
TEST_CASE ( "Test Params object", "[params]" )
{
SECTION ("Test Params object MagP64")
{
long int max_iters = 100;
double damping = 0.1;
double epsil = 0.2;
double beta = 0.3;
double r = 0.4;
doub... | 25.640625 | 93 | 0.551493 | DanielLenz |
e4a4e4efe1409bfc1aaf282a67b7a3b0b915f0cf | 2,439 | hpp | C++ | armadillo_matrix/include/armadillo_bits/op_stddev_meat.hpp | Lauradejong92/wire-grad | 0bfd3fb42df363f43eb89f35c2f0769fb805f6cd | [
"BSD-2-Clause"
] | 1 | 2022-02-02T15:47:24.000Z | 2022-02-02T15:47:24.000Z | armadillo_matrix/include/armadillo_bits/op_stddev_meat.hpp | Lauradejong92/wire-grad | 0bfd3fb42df363f43eb89f35c2f0769fb805f6cd | [
"BSD-2-Clause"
] | null | null | null | armadillo_matrix/include/armadillo_bits/op_stddev_meat.hpp | Lauradejong92/wire-grad | 0bfd3fb42df363f43eb89f35c2f0769fb805f6cd | [
"BSD-2-Clause"
] | 2 | 2019-02-28T17:36:19.000Z | 2021-01-24T14:04:18.000Z | // Copyright (C) 2009-2011 NICTA (www.nicta.com.au)
// Copyright (C) 2009-2011 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 28.360465 | 103 | 0.647396 | Lauradejong92 |
e4b5590f6067302d1f70dee9c279242b0f8e7b41 | 4,926 | cpp | C++ | stats.cpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | stats.cpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | stats.cpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | /**
* \file stats.cpp
* \brief Implementation of service IO functions, modified code from libtrap service ifc and trap_stats
* \author Jiri Havranek <havranek@cesnet.cz>
* \date 2021
*/
/*
* Copyright (C) 2021 CESNET
*
* LICENSE TERMS
*
* Redistribution and use in source and binary forms, with or without
* m... | 29.674699 | 103 | 0.638043 | CESNET |
e4b6ffe887a483f59e891ac7502eba6aaa2aa732 | 293 | cpp | C++ | Source/UnitTest++/CurrentTest.cpp | rorydriscoll/RayTracer | 772b5d47c0d181c6fe49728aabc8e0a949f285e1 | [
"CC0-1.0"
] | 124 | 2018-06-28T16:09:09.000Z | 2022-02-23T16:20:26.000Z | Source/UnitTest++/CurrentTest.cpp | rorydriscoll/RayTracer | 772b5d47c0d181c6fe49728aabc8e0a949f285e1 | [
"CC0-1.0"
] | null | null | null | Source/UnitTest++/CurrentTest.cpp | rorydriscoll/RayTracer | 772b5d47c0d181c6fe49728aabc8e0a949f285e1 | [
"CC0-1.0"
] | 9 | 2018-06-28T17:10:42.000Z | 2021-08-09T08:42:41.000Z | #include "CurrentTest.h"
namespace UnitTest {
TestResults*& CurrentTest::Results()
{
static TestResults* testResults = nullptr;
return testResults;
}
const TestDetails*& CurrentTest::Details()
{
static const TestDetails* testDetails = nullptr;
return testDetails;
}
}
| 16.277778 | 50 | 0.709898 | rorydriscoll |
e4b7fd1f6fa7af8c113a3f3c7393b1746d53ae76 | 642 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/c-api/Console.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 16 | 2018-10-13T12:29:06.000Z | 2022-02-25T14:56:47.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/c-api/Console.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 3 | 2018-12-27T22:46:43.000Z | 2019-03-19T12:28:37.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/c-api/Console.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 4 | 2019-05-02T02:13:54.000Z | 2021-12-16T16:03:26.000Z | #include "os/Console.h"
#include "os/c-api/Console-c-api.h"
extern "C"
{
int32_t UnityPalConsoleInternalKeyAvailable(int32_t ms_timeout)
{
return il2cpp::os::Console::InternalKeyAvailable(ms_timeout);
}
int32_t UnityPalConsoleSetBreak(int32_t wantBreak)
{
return il2cpp::os::Console::SetBreak(wantBreak);
}
in... | 24.692308 | 122 | 0.76947 | dngoins |
e4b87ed8ee7d89729b74fa8848c9bef039bac809 | 686 | hpp | C++ | BlueNoise/src/Polyomino/Tromino.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 24 | 2016-12-13T09:48:17.000Z | 2022-01-13T03:24:45.000Z | BlueNoise/src/Polyomino/Tromino.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 2 | 2019-03-29T06:44:41.000Z | 2019-11-12T03:14:25.000Z | BlueNoise/src/Polyomino/Tromino.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 8 | 2016-11-09T15:54:19.000Z | 2021-04-08T14:04:17.000Z | /*
Tromino.hpp
Li-Yi Wei
11/11/2007
*/
#ifndef _TROMINO_HPP
#define _TROMINO_HPP
#include "Polyomino.hpp"
class Tromino : public Polyomino
{
public:
Tromino(void);
Tromino(const Int2 & center, const Orientation orientation, const Reflection reflection);
Tromino(const Int2 & center, const Orienta... | 20.176471 | 121 | 0.714286 | 1iyiwei |
e4becb7165e263070ca7bd23c010492b2ee0ee94 | 5,454 | cpp | C++ | gui/geometries/planegeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | gui/geometries/planegeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | gui/geometries/planegeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include "ot/function.h"
#include "planegeometry.h"
//
// OtPlaneGeom... | 20.125461 | 100 | 0.676568 | goossens |
e4bfd44b8e0a2313318512d4fe9f02c69cf9f115 | 5,831 | cc | C++ | test/object_characterization/characterization_test.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | test/object_characterization/characterization_test.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | test/object_characterization/characterization_test.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | /**
* @file anomaly_test.cc
* @author Martín Suárez (martin.suarez.garcia@rai.usc.es)
* @date 10/05/2022
*
* Test para el módulo de la CLI
*
*/
#include "catch.hpp"
#include "catch_utils.hh"
#include <vector>
#include "object_characterization/ObjectCharacterizer.hh"
#include "object_characterization/Character... | 29.00995 | 105 | 0.483965 | ilMartoo |
e4c25f02c1db29dc65b06ad6cc539b0dd5a98321 | 321 | cc | C++ | src/api/version.cc | AmadeusITGroup/cPMML | 2cd19f9b86779a18f7fb63707c47574125bd374a | [
"MIT"
] | 22 | 2020-05-04T16:05:03.000Z | 2022-01-25T09:20:02.000Z | src/api/version.cc | AmadeusITGroup/cPMML | 2cd19f9b86779a18f7fb63707c47574125bd374a | [
"MIT"
] | 3 | 2021-01-26T18:41:35.000Z | 2021-08-13T04:35:47.000Z | src/api/version.cc | AmadeusITGroup/cPMML | 2cd19f9b86779a18f7fb63707c47574125bd374a | [
"MIT"
] | 2 | 2020-07-13T10:07:13.000Z | 2021-07-26T09:35:05.000Z |
/*******************************************************************************
* Copyright 2019 AMADEUS. All rights reserved.
* Author: Paolo Iannino
*******************************************************************************/
#include "cPMML.h"
namespace cpmml {
const std::string version = CPMML_VERSION;
}... | 26.75 | 81 | 0.361371 | AmadeusITGroup |
e4c48c9b8b689587fddff718e33b4f96d1e854f9 | 1,059 | cpp | C++ | examples/chapter.13.16.cpp | Chen-Carl/GUI | 13aa8337f2afe3b6d0d4d18b5c8eb1cf3a47cdd7 | [
"BSL-1.0"
] | 1 | 2021-04-23T13:19:28.000Z | 2021-04-23T13:19:28.000Z | examples/chapter.13.16.cpp | Chen-Carl/GUI | 13aa8337f2afe3b6d0d4d18b5c8eb1cf3a47cdd7 | [
"BSL-1.0"
] | null | null | null | examples/chapter.13.16.cpp | Chen-Carl/GUI | 13aa8337f2afe3b6d0d4d18b5c8eb1cf3a47cdd7 | [
"BSL-1.0"
] | 2 | 2021-05-08T15:09:18.000Z | 2021-06-03T09:49:24.000Z |
//
// This is example code from Chapter 13.16 "Mark" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
#include "Simple_window.h" // get access to our window library
#include "Graph.h" // get access to our graphics library facilities
//----------------------------------------... | 26.475 | 80 | 0.517469 | Chen-Carl |
e4c6b4f752dca4e75b366776c7f135c6faeac5dc | 1,806 | hh | C++ | aku/SpeakerConfig.hh | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | 78 | 2015-01-07T14:33:47.000Z | 2022-03-15T09:01:30.000Z | aku/SpeakerConfig.hh | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | 4 | 2015-05-19T13:00:34.000Z | 2016-07-26T12:29:32.000Z | aku/SpeakerConfig.hh | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | 32 | 2015-01-16T08:16:24.000Z | 2021-04-02T21:26:22.000Z | #ifndef SPEAKERCONFIG_HH
#define SPEAKERCONFIG_HH
#include <vector>
#include <set>
#include <map>
#include <string>
#include "FeatureGenerator.hh"
#include "ModelModules.hh"
namespace aku {
/** A class for handling speaker and utterance adaptations.
* Speaker ID is the primary method for changing feature configur... | 28.666667 | 80 | 0.75969 | phsmit |
e4c6e8053bfc3e536a01e404ce2240b5e48e5224 | 1,504 | cpp | C++ | leetcode-problems/medium-33-search-in-rotated-array.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium-33-search-in-rotated-array.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium-33-search-in-rotated-array.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | //
// Created by Siddhant on 2019-11-07.
//
#include "iostream"
#include "vector"
#include "string"
#include "algorithm"
using namespace std;
int findCenter(vector<int> &nums) {
if (nums[0] < nums[nums.size() - 1]) {
return 0;
}
if (nums.size() == 1) {
return 0;
}
int start = 0... | 16.898876 | 76 | 0.489362 | formatkaka |
e4c7746f4bf9e345624c3ea94d88532d7d0a1efb | 6,339 | cpp | C++ | HelperFunctions/getVkPipelineRasterizationConservativeStateCreateInfoEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineRasterizationConservativeStateCreateInfoEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineRasterizationConservativeStateCreateInfoEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Douglas Kaip
*
* 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 t... | 40.634615 | 204 | 0.630541 | dkaip |
e4c7d64f2fd3906b184ad77fe2cc07f3ea1ddb24 | 12,101 | cpp | C++ | file-commander-core/src/cfilesystemobject.cpp | JnMartens/file-commander | ee3418225dc26e411d21c4eb88a40a3859971e18 | [
"Apache-2.0"
] | null | null | null | file-commander-core/src/cfilesystemobject.cpp | JnMartens/file-commander | ee3418225dc26e411d21c4eb88a40a3859971e18 | [
"Apache-2.0"
] | null | null | null | file-commander-core/src/cfilesystemobject.cpp | JnMartens/file-commander | ee3418225dc26e411d21c4eb88a40a3859971e18 | [
"Apache-2.0"
] | null | null | null | #include "cfilesystemobject.h"
#include "filesystemhelperfunctions.h"
#include "windows/windowsutils.h"
#include "assert/advanced_assert.h"
#include "lang/type_traits_fast.hpp"
#include "hash/fasthash.h"
#ifdef CFILESYSTEMOBJECT_TEST
#define QFileInfo QFileInfo_Test
#define QDir QDir_Test
#endif
DISABLE... | 26.479212 | 169 | 0.705975 | JnMartens |
e4c973a4f2ac749c66a5292198a2b7ee3e1a9a20 | 1,082 | cpp | C++ | source/UnitTest1/StubDataManager.cpp | Tronso/test_recording | 3b581f557830526e3f0e51f40df04a5be24b7e62 | [
"Apache-2.0"
] | null | null | null | source/UnitTest1/StubDataManager.cpp | Tronso/test_recording | 3b581f557830526e3f0e51f40df04a5be24b7e62 | [
"Apache-2.0"
] | null | null | null | source/UnitTest1/StubDataManager.cpp | Tronso/test_recording | 3b581f557830526e3f0e51f40df04a5be24b7e62 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "StubDataManager.h"
#include "Situation.h"
#include "Transition.h"
#include <memory>
#include "CppUnitTest.h"
#include "SituationGraph.h"
using std::make_shared;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
StubDataManager::StubDataManager() : inputs() {
}
StubDataMan... | 22.081633 | 107 | 0.774492 | Tronso |
e4cb5b9c2bb285f87eb8e924506629509137cd3f | 1,150 | cc | C++ | src/script/script_timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/script/script_timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/script/script_timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | #include "script_impl.h"
#include "bind.h"
namespace game
{
auto Script::Impl::TimerInit() -> void
{
lua::Init<std::pair<WeakStagePtr, event::Timer::WeakPtr>>(static_cast<lua_State*>(lua_));
lua_.Add(function::Bind(&Impl::TimerLoad, shared_from_this()), "timer_load", 1, "metallic_crow");
lua_.Add(function::Bind(&... | 26.136364 | 105 | 0.648696 | dgolbourn |
e4ccd51eeff9fd39234011dfc6533d0c35cb3f3c | 948 | cpp | C++ | Introductions/Quadratic/quadratic.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | 11 | 2015-01-20T05:57:50.000Z | 2021-05-03T10:47:36.000Z | Introductions/Quadratic/quadratic.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | null | null | null | Introductions/Quadratic/quadratic.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | 26 | 2015-01-20T04:38:39.000Z | 2017-01-11T00:49:57.000Z | #include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
cout << "This program will find the real solutions to a general quadratic "
"equation of the form ax^2 + bx + c = 0" << endl;
cout << "\nEnter a, b, and c:" << endl;
double a, b, c;
cin >> a >> b >> c;
double discriminan... | 29.625 | 78 | 0.548523 | csulb-cecs282-2015sp |
e4d19a84d9d54af5d4c746d15fbbee51a953ac5b | 9,854 | cpp | C++ | tests/demo/src/cpu_conv_bias_relu_pattern.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/demo/src/cpu_conv_bias_relu_pattern.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/demo/src/cpu_conv_bias_relu_pattern.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 44.995434 | 125 | 0.64177 | wuxun-zhang |
e4d37b930e653a6b1d18d6d34e2533f35f7a1de8 | 3,907 | cpp | C++ | LightOJ/1263 - Equalizing Money.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 2 | 2019-11-10T18:42:11.000Z | 2020-07-04T07:05:22.000Z | LightOJ/1263 - Equalizing Money.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | null | null | null | LightOJ/1263 - Equalizing Money.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 1 | 2019-11-04T11:05:17.000Z | 2019-11-04T11:05:17.000Z | /*
@author - Rumman BUET CSE'15
*/
#include <bits/stdc++.h>
#include<vector>
#define ll long long int
#define ull unsigned long long
#define ld long double
#define ff fir... | 24.727848 | 89 | 0.349885 | shamiul94 |
e4d467001f65780d3ed0efad45aa085edcb6de30 | 7,144 | cc | C++ | camera/hal_adapter/frame_number_mapper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal_adapter/frame_number_mapper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal_adapter/frame_number_mapper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | /*
* Copyright 2020 The Chromium OS 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 "hal_adapter/frame_number_mapper.h"
#include <algorithm>
#include <utility>
#include "cros-camera/common.h"
namespace cros {
FrameN... | 35.192118 | 80 | 0.69051 | strassek |
e4d68f2a64ee23cc1e0872e66256c4296e3763b9 | 4,825 | cpp | C++ | source/FAST/Algorithms/CoherentPointDrift/Affine.cpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Algorithms/CoherentPointDrift/Affine.cpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Algorithms/CoherentPointDrift/Affine.cpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | #include "CoherentPointDrift.hpp"
#include "Affine.hpp"
#include <limits>
#include <iostream>
namespace fast {
CoherentPointDriftAffine::CoherentPointDriftAffine() {
mScale = 1.0;
mTransformationType = TransformationType::AFFINE;
}
void CoherentPointDriftAffine::initializeVarianceAndMore... | 45.093458 | 115 | 0.606218 | andreped |
e4d8a4b4ae522fb1e9d698f91e4c41dc01fcbb26 | 2,137 | cpp | C++ | tc 160+/TheEquation.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TheEquation.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TheEquation.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class TheEquation {
public:
int leastSum(int X, int Y, int P) {
for (int sum=2; sum<=2*P; ++sum) {
for (int a=1; a<sum; ++a... | 37.491228 | 309 | 0.568086 | ibudiselic |
e4d95ee0ae960e5ddb81f748cace7a7a48447a93 | 4,147 | cpp | C++ | note_to_midi.cpp | jkhollandjr/music_generation | 6338b2b05d2e739caa55eead041e6eef328a52ca | [
"MIT"
] | null | null | null | note_to_midi.cpp | jkhollandjr/music_generation | 6338b2b05d2e739caa55eead041e6eef328a52ca | [
"MIT"
] | null | null | null | note_to_midi.cpp | jkhollandjr/music_generation | 6338b2b05d2e739caa55eead041e6eef328a52ca | [
"MIT"
] | null | null | null | // note_to_midi.cpp
//
// Writes a midifile using the notes.txt file and the functions from the Midifile library.
//
// NOTE: This code has been adapted from an example provided by the Midifile library
//The original code described how to create a track from arrays of integers corresponding to
//the rythm and midi not... | 36.377193 | 103 | 0.645768 | jkhollandjr |
e4db07f6f4cbb77264713f5e3e7f28ea0f20aefd | 9,326 | hpp | C++ | include/ghex/transport_layer/ucx/context.hpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | include/ghex/transport_layer/ucx/context.hpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | include/ghex/transport_layer/ucx/context.hpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2020, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef INCLUDED_GHEX_TL_UCX_CONTEXT_HPP
#define INCLUDED_GHEX_TL_UCX_CONTEXT_HPP
#include "../context.hpp"
#include "./commun... | 45.715686 | 142 | 0.493245 | tehrengruber |
e4dbf2380423572379b034bef8fbdc3c7d77fd67 | 33,603 | cc | C++ | chrome/browser/ui/views/payments/payment_request_journey_logger_browsertest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/payments/payment_request_journey_logger_browsertest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/payments/payment_request_journey_logger_browsertest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/histogram_tester.h"
#include "chrome/browser/ui/views/paymen... | 43.414729 | 80 | 0.761867 | metux |
e4df3e83d47f192904244429f38d862fe0e7860a | 2,298 | cpp | C++ | projects/glview/ImageReader.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | projects/glview/ImageReader.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | projects/glview/ImageReader.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | #include "ImageReader.h"
#include <iostream>
#include <image/Image.h>
//#include <image/codecs/GifImageCodec.h>
#include <image/codecs/ImageCodec.h>
#include <image/codecs/JasperImageCodec.h>
#include <image/codecs/JpegImageCodec.h>
#include <image/codecs/PngImageCodec.h>
//#include <image/codecs/TiffImageCodec.h>
#in... | 31.916667 | 71 | 0.661445 | gizmomogwai |
e4dfcdb408a6511563513d8d2fc5c5bd91d7594a | 153 | cpp | C++ | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/DrawClient/DrawClientHandlers/DrawCliSearchHandler.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/DrawClient/DrawClientHandlers/DrawCliSearchHandler.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/DrawClient/DrawClientHandlers/DrawCliSearchHandler.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // DrawCliSearchHandler.cpp : Implementation of CDrawCliSearchHandler
#include "stdafx.h"
#include "DrawCliSearchHandler.h"
// CDrawCliSearchHandler
| 17 | 69 | 0.803922 | alonmm |
e4e7a6b3a29c08f5889648d77fc9759af4876987 | 1,605 | cpp | C++ | cpp/until20/usability_oo/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 2 | 2021-04-26T16:37:38.000Z | 2022-03-15T01:26:19.000Z | cpp/until20/usability_oo/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | null | null | null | cpp/until20/usability_oo/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 1 | 2022-03-15T01:26:23.000Z | 2022-03-15T01:26:23.000Z | #include <iostream>
#include <map>
class Base
{
public:
int value1;
int value2;
Base()
{
value1 = 1;
}
Base(int value): Base()
{
value2 = value;
}
};;
class SubClass: public Base
{
public:
using Base::Base;
};
struct Base1
{
virtual void foo(int);
};
struct SubClass1: Base1
{
virtual void foo(int) ov... | 17.445652 | 113 | 0.615576 | lonelyhentai |
e4e87b70467b1fdafe15d0be6ea97ca016c6d9bb | 2,343 | cpp | C++ | admin/activec/samples/fssnapin/src/fssnapin.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/samples/fssnapin/src/fssnapin.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/samples/fssnapin/src/fssnapin.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1999 - 1999
//
// File: fssnapin.cpp
//
//--------------------------------------------------------------------------
// fssnapin.cpp : Implementation of DLL... | 24.925532 | 84 | 0.567648 | npocmaka |
e4e8b7e5c3e5aaa37cae4499fc20798cdd155638 | 3,084 | cpp | C++ | src/qt/qtbase/src/corelib/kernel/qcore_mac.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtbase/src/corelib/kernel/qcore_mac.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/corelib/kernel/qcore_mac.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... | 37.156627 | 95 | 0.694553 | viewdy |
e4eaf8b336af747dc1cce9408bb55237f8768dc3 | 2,322 | cpp | C++ | code-cpp/nloop-math-inc.cpp | att-circ-contrl/NeuroLoop | 7847fcaa6237c406fbad879b10352618504613c9 | [
"CC-BY-4.0"
] | 1 | 2021-01-22T05:40:23.000Z | 2021-01-22T05:40:23.000Z | code-cpp/nloop-math-inc.cpp | att-circ-contrl/NeuroLoop | 7847fcaa6237c406fbad879b10352618504613c9 | [
"CC-BY-4.0"
] | null | null | null | code-cpp/nloop-math-inc.cpp | att-circ-contrl/NeuroLoop | 7847fcaa6237c406fbad879b10352618504613c9 | [
"CC-BY-4.0"
] | null | null | null | // Attention Circuits Control Laboratory - NeuroLoop project
// Miscellaneous math routines.
// Written by Christopher Thomas.
// Copyright (c) 2020 by Vanderbilt University. This work is licensed under
// the Creative Commons Attribution 4.0 International License.
// NOTE - Because this implements template code, it ... | 32.704225 | 78 | 0.736003 | att-circ-contrl |
e4eb1e58974ce0866109916f3ef05b2547491e0b | 3,631 | cpp | C++ | src/saiga/vision/ceres/CeresBASmooth.cpp | muetimueti/saiga | 32b54a8fc7b1251368e07e7d31c15ac90cee3b32 | [
"MIT"
] | null | null | null | src/saiga/vision/ceres/CeresBASmooth.cpp | muetimueti/saiga | 32b54a8fc7b1251368e07e7d31c15ac90cee3b32 | [
"MIT"
] | null | null | null | src/saiga/vision/ceres/CeresBASmooth.cpp | muetimueti/saiga | 32b54a8fc7b1251368e07e7d31c15ac90cee3b32 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "CeresBASmooth.h"
#include "saiga/core/time/timer.h"
#include "saiga/vision/ceres/CeresHelper.h"
#include "saiga/vision/ceres/CeresKernel_BARS_Intr4.h"
#include "saiga/vision/ceres/Ceres... | 28.590551 | 108 | 0.658772 | muetimueti |
e4ef632c5fbb28cf6e555c09ea69f07b9c2937d2 | 54,810 | cpp | C++ | camera/hal/mediatek/mtkcam/drv/sensor/HalSensorList.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal/mediatek/mtkcam/drv/sensor/HalSensorList.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal/mediatek/mtkcam/drv/sensor/HalSensorList.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | /*
* Copyright (C) 2019 MediaTek Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 35.917431 | 80 | 0.643441 | strassek |
e4f04f56cb5c8bb13e36f54701754da0ad28a75d | 614 | tpp | C++ | src/memory/alloc_sthread_next_fit_part_none.tpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | 9 | 2019-05-14T01:07:08.000Z | 2020-11-12T01:46:11.000Z | src/memory/alloc_sthread_next_fit_part_none.tpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | src/memory/alloc_sthread_next_fit_part_none.tpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | #include <new>
template< class T, class... Args >
T * alloc_sthread_next_fit_part_none_impl::newing( void * p, Args&&... args ){
if( nullptr == p ){
if( !allocating( &p, sizeof(T) ) ){
//allocation failed
std::bad_alloc bad_alloc;
throw bad_alloc;
return nullptr;
}
}
return static_cas... | 26.695652 | 100 | 0.620521 | clearlycloudy |
e4f5510e0668e5d718938faad6dbba6e00a2a493 | 65 | cpp | C++ | msbuild-maven-plugin/src/test/resources/unit/source-listing/project2/project2.cpp | sunnymoon/msbuild-maven-plugin | 86fa207675d5d51f864c3e636c2a10b1d6c2afd5 | [
"Apache-2.0"
] | 3 | 2015-03-26T16:06:32.000Z | 2017-12-08T19:31:38.000Z | msbuild-maven-plugin/src/test/resources/unit/source-listing/project2/project2.cpp | sunnymoon/msbuild-maven-plugin | 86fa207675d5d51f864c3e636c2a10b1d6c2afd5 | [
"Apache-2.0"
] | 6 | 2015-09-07T06:45:15.000Z | 2021-06-30T08:16:13.000Z | msbuild-maven-plugin/src/test/resources/unit/source-listing/project2/project2.cpp | sunnymoon/msbuild-maven-plugin | 86fa207675d5d51f864c3e636c2a10b1d6c2afd5 | [
"Apache-2.0"
] | 2 | 2015-09-07T07:02:38.000Z | 2019-09-25T21:20:26.000Z | #include "project2.h"
int project2_method1()
{
return 0;
}
| 8.125 | 22 | 0.646154 | sunnymoon |
e4f70561dfe99acf0c70d16cd3cd2c00c24c6d94 | 15,703 | cpp | C++ | src/fdm/auto/fdm_Autopilot.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | 4 | 2020-03-03T08:10:59.000Z | 2021-09-04T08:02:17.000Z | src/fdm/auto/fdm_Autopilot.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | null | null | null | src/fdm/auto/fdm_Autopilot.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | null | null | null | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE... | 42.099196 | 107 | 0.6202 | marek-cel |
e4f86b1723ea317e9b76ca740687d0924cd369ff | 1,435 | hpp | C++ | include/ash/fsm/DynamicComponentProvider.hpp | CorundumGames/AshPlusPlus | d346cf9029798e710fee4d8e3d5f305c90d04caa | [
"MIT"
] | 2 | 2016-12-17T23:19:06.000Z | 2017-07-19T14:44:57.000Z | include/ash/fsm/DynamicComponentProvider.hpp | CorundumGames/AshPlusPlus | d346cf9029798e710fee4d8e3d5f305c90d04caa | [
"MIT"
] | null | null | null | include/ash/fsm/DynamicComponentProvider.hpp | CorundumGames/AshPlusPlus | d346cf9029798e710fee4d8e3d5f305c90d04caa | [
"MIT"
] | null | null | null | #ifndef DYNAMICCOMPONENTPROVIDER_HPP
#define DYNAMICCOMPONENTPROVIDER_HPP
#include <functional>
#include "ash/fsm/IComponentProvider.hpp"
using std::function;
namespace ash {
namespace fsm {
/**
* This component provider calls a function to get the component instance. The function must return a single component
... | 26.090909 | 118 | 0.632056 | CorundumGames |
e4fe66f01bd181453e448adfde7ec5bda71a2412 | 5,263 | cpp | C++ | src/stx/common/trex_cmd_mngr.cpp | GabrielGanne/trex-core | 688a0fe0adb890964691473723d70ffa98e00dd3 | [
"Apache-2.0"
] | 1 | 2022-02-25T01:24:33.000Z | 2022-02-25T01:24:33.000Z | src/stx/common/trex_cmd_mngr.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | null | null | null | src/stx/common/trex_cmd_mngr.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | null | null | null | #include "trex_cmd_mngr.h"
#include "trex_exception.h"
#include "trex_global.h"
#include <zmq.h>
#include <errno.h>
#include <sys/wait.h>
#include <string>
CCmdsMngr::CCmdsMngr() {
CParserOption * po =&CGlobalInfo::m_options;
m_zmq_ctx = zmq_ctx_new();
if ( !m_zmq_ctx ) {
printf("Could not create ... | 29.402235 | 120 | 0.576667 | GabrielGanne |
e4fe87fe85ad1b1ee8f39ef4649ce09822f437fd | 2,508 | cpp | C++ | trikScriptRunner/src/trikVariablesServer.cpp | thetoropov/trikRuntime | f236e441875ff4ab999803252f26075e089ae04c | [
"Apache-2.0"
] | null | null | null | trikScriptRunner/src/trikVariablesServer.cpp | thetoropov/trikRuntime | f236e441875ff4ab999803252f26075e089ae04c | [
"Apache-2.0"
] | null | null | null | trikScriptRunner/src/trikVariablesServer.cpp | thetoropov/trikRuntime | f236e441875ff4ab999803252f26075e089ae04c | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Anastasiia Kornilova, CyberTech Labs 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 a... | 33.44 | 97 | 0.743222 | thetoropov |
e4fe8a0d312b24095b5737baadf86fa6c23eadb4 | 22 | cxx | C++ | src/Cxx/VisualizationAlgorithms/OfficeA.cxx | mwestphal/VTKExamples | 1fdebe2c51534e4465071ea7e660cd68640d8017 | [
"Apache-2.0"
] | null | null | null | src/Cxx/VisualizationAlgorithms/OfficeA.cxx | mwestphal/VTKExamples | 1fdebe2c51534e4465071ea7e660cd68640d8017 | [
"Apache-2.0"
] | null | null | null | src/Cxx/VisualizationAlgorithms/OfficeA.cxx | mwestphal/VTKExamples | 1fdebe2c51534e4465071ea7e660cd68640d8017 | [
"Apache-2.0"
] | null | null | null | #include "Office.cxx"
| 11 | 21 | 0.727273 | mwestphal |
e4ffded7f5a0cf4dadc20639d7b5f9b980892e35 | 1,203 | hpp | C++ | include/siplasplas/utility/tuple.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 182 | 2016-07-19T19:31:47.000Z | 2022-02-22T13:54:25.000Z | include/siplasplas/utility/tuple.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 50 | 2016-07-13T16:49:31.000Z | 2018-06-15T13:39:49.000Z | include/siplasplas/utility/tuple.hpp | GueimUCM/ceplusplus | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 26 | 2015-12-14T11:35:41.000Z | 2022-02-22T19:13:48.000Z | #ifndef SIPLASPLAS_UTILITY_TUPLE_HPP
#define SIPLASPLAS_UTILITY_TUPLE_HPP
#include <tuple>
#include "meta.hpp"
namespace cpp
{
namespace
{
template<typename Function>
constexpr auto tuple_call(Function function, const std::tuple<>& tuple, meta::index_sequence<>)
{
return function();
}
template<typename Head, t... | 25.0625 | 119 | 0.736492 | roscopecoltran |
90004e8a92fba5a459375e80590161f80ef06eb2 | 6,481 | hpp | C++ | include/tile_grid.hpp | zerebubuth/osmium-history-splitter | 9e2445440fc26a29d9ceeb1833937d910b28ff9c | [
"BSL-1.0"
] | null | null | null | include/tile_grid.hpp | zerebubuth/osmium-history-splitter | 9e2445440fc26a29d9ceeb1833937d910b28ff9c | [
"BSL-1.0"
] | null | null | null | include/tile_grid.hpp | zerebubuth/osmium-history-splitter | 9e2445440fc26a29d9ceeb1833937d910b28ff9c | [
"BSL-1.0"
] | null | null | null | #ifndef OSMIUM_HISTORY_SPLITTER_TILE_GRID_HPP
#define OSMIUM_HISTORY_SPLITTER_TILE_GRID_HPP
/*
This file is part of the Osmium History Splitter
Copyright 2015 Matt Amos <zerebubuth@gmail.com>.
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or or... | 29.459091 | 116 | 0.69156 | zerebubuth |
07e57da13a7e38a2d6726256469f26f9da43e480 | 6,484 | hpp | C++ | include/VROSC/UserProfileDataModel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/UserProfileDataModel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/UserProfileDataModel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.BaseDataModel
#include "VROSC... | 42.940397 | 157 | 0.704812 | v0idp |
07e60c98d31fb4840a4cd99c762a74178cab115d | 715 | cpp | C++ | 0000/10/11a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0000/10/11a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0000/10/11a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(std::vector<unsigned>& b, unsigned d)
{
const size_t n = b... | 14.3 | 65 | 0.47972 | actium |
07e7885df199e0661e532d63f8df1d9f1afb6be2 | 81 | cpp | C++ | Course 202002/C++/Shape/rectangle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202002/C++/Shape/rectangle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202002/C++/Shape/rectangle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | #include "rectangle.h"
double Rectangle::getAreaSize()
{
return lenA * lenB;
}
| 11.571429 | 31 | 0.703704 | Seizzzz |
07e81cbb4e663e3eff0e59ecfee15c73cf2f6b33 | 4,251 | cpp | C++ | industrial_utils/src/utils.cpp | tingelst/industrial_core | a85789b6b33bd0a460c236a6b89c14dbf125e2c0 | [
"BSD-3-Clause"
] | 227 | 2021-01-20T05:34:32.000Z | 2022-03-29T12:43:05.000Z | ros_advanced/ROS_Industrial/industrial_core/industrial_utils/src/utils.cpp | qifeidedasima/guyueclass | 99f4a58d47a1764cc13af7ef7fe483009e830108 | [
"Apache-2.0"
] | 61 | 2021-12-17T13:03:59.000Z | 2022-03-31T10:24:37.000Z | ros_advanced/ROS_Industrial/industrial_core/industrial_utils/src/utils.cpp | qifeidedasima/guyueclass | 99f4a58d47a1764cc13af7ef7fe483009e830108 | [
"Apache-2.0"
] | 239 | 2021-01-28T02:59:53.000Z | 2022-03-29T08:02:17.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Southwest Research Institute
* 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 c... | 32.953488 | 116 | 0.675606 | tingelst |
07f052996f4c016b69bd7c19e72bd286f6c73143 | 945 | cpp | C++ | .LHP/He10/T.Hung/1160/1160/1160.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/He10/T.Hung/1160/1160/1160.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/He10/T.Hung/1160/1160/1160.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | // AC UVa
#include "pch.h"
#include <iostream>
#include <algorithm>
#define maxN 100002
#define maxM 10000000001
#define root first
#define rank second
#define fin -1
typedef int maxn;
typedef long long maxm;
typedef std::pair <maxn, maxn> info_t;
info_t info[maxN];
maxm res;
void Init() {
res = 0;
for (maxn i =... | 13.695652 | 51 | 0.554497 | sxweetlollipop2912 |
07f05685c2e0b0de37a0a77ffddfc75c3aaeb12d | 2,877 | hpp | C++ | modules/core/adjacent/include/nt2/core/functions/expr/adjfun.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/adjacent/include/nt2/core/functions/expr/adjfun.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/adjacent/include/nt2/core/functions/expr/adjfun.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2011 - 2012 MetaScale SAS
//
// Distributed under the Boost... | 40.521127 | 80 | 0.423705 | psiha |
07f0e5d3434c131b5f38eff3c277fad17ed5447c | 2,914 | hxx | C++ | opencascade/Extrema_GenLocateExtPS.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/Extrema_GenLocateExtPS.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/Extrema_GenLocateExtPS.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1995-07-18
// Created by: Modelistation
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU ... | 31.673913 | 96 | 0.729581 | valgur |
07f2bf2d0d9337d16ebe4be5060ea980ee525b14 | 5,616 | cpp | C++ | tests/src/map/map_tests_observers.cpp | matboivin/ft_containers | 9653552ba3b8eaf215ea37315942c00aeafbf352 | [
"WTFPL"
] | null | null | null | tests/src/map/map_tests_observers.cpp | matboivin/ft_containers | 9653552ba3b8eaf215ea37315942c00aeafbf352 | [
"WTFPL"
] | null | null | null | tests/src/map/map_tests_observers.cpp | matboivin/ft_containers | 9653552ba3b8eaf215ea37315942c00aeafbf352 | [
"WTFPL"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* map_tests_observers.cpp :+: :+: :+: ... | 29.714286 | 80 | 0.552172 | matboivin |
07f30d7481820e476494c38c19ae0fde8cf76458 | 2,453 | cpp | C++ | sdk/boost_1_30_0/libs/spirit/test/parametric_tests.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/spirit/test/parametric_tests.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/spirit/test/parametric_tests.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | /*=============================================================================
Spirit v1.6.0
Copyright (c) 2001-2003 Joel de Guzman
http://spirit.sourceforge.net/
Permission to copy, use, modify, sell and distribute this software is
granted provided this copyright notice appears in all copie... | 27.875 | 80 | 0.49735 | acidicMercury8 |
07f455643b86280405bd8ad44d5413901f820d16 | 690 | cpp | C++ | Source/Contrib/Libctiny/printf.cpp | Skight/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 24 | 2017-03-16T05:32:44.000Z | 2021-12-11T13:49:07.000Z | Source/Contrib/Libctiny/printf.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | null | null | null | Source/Contrib/Libctiny/printf.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 13 | 2017-03-16T05:26:12.000Z | 2021-07-04T16:24:42.000Z | //==========================================
// LIBCTINY - Matt Pietrek 2001
// MSDN Magazine, January 2001
//==========================================
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
// Force the linker to include USER32.LIB
#pragma comment(linker, "/defaultlib:user32.lib")
extern "C" in... | 23.793103 | 66 | 0.566667 | Skight |
07f4b0665a7259791eaa5ca00f5e0bb9e342f08f | 1,857 | cc | C++ | components/password_manager/content/browser/password_requirements_service_factory.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/password_manager/content/browser/password_requirements_service_factory.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/password_manager/content/browser/password_requirements_service_factory.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 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 "components/password_manager/content/browser/password_requirements_service_factory.h"
#include <map>
#include <memory>
#include <string>
#inclu... | 35.037736 | 94 | 0.796446 | sarang-apps |
07f506ae8a9eb021c51c373cda86f5a3eba4fde8 | 4,569 | hpp | C++ | SamSrc/sam/VertexConstraintChecker.hpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | 6 | 2019-08-16T07:13:17.000Z | 2021-06-08T21:15:52.000Z | SamSrc/sam/VertexConstraintChecker.hpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | 1 | 2020-05-30T20:35:18.000Z | 2020-05-30T20:35:18.000Z | SamSrc/sam/VertexConstraintChecker.hpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | 3 | 2020-02-17T18:38:14.000Z | 2021-03-28T02:47:57.000Z | #ifndef SAM_VERTEX_CONSTRAINT_CHECKER_HPP
#define SAM_VERTEX_CONSTRAINT_CHECKER_HPP
#include <sam/FeatureMap.hpp>
#include <sam/Util.hpp>
#include <sam/EdgeDescription.hpp>
namespace sam {
class VertexConstraintCheckerException : public std::runtime_error {
public:
VertexConstraintCheckerException(char const * mes... | 33.844444 | 80 | 0.664697 | dirkcgrunwald |
07f5430a6b96954a950a8e9861a1f1ed527049e4 | 2,532 | hpp | C++ | src/spinlock_put.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/spinlock_put.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/spinlock_put.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "spinlock_detail.hpp"
namespace rev {
//! 一時的なロック解除機能を備えたSpinLock
/*! あるスレッドがロック中でも一旦アンロックし、別のスレッドがロックできるようにする */
template <class T>
class SpinLockPut {
private:
struct InnerP {
SpinLockPut& _s;
bool _bLocked;
InnerP(InnerP&& p) noexcept:
_s(p._s),
_bLocked(p._bLoc... | 21.827586 | 81 | 0.592022 | degarashi |
07f6de5e46ad8c3c22e62e40f55d61ff9f523441 | 5,589 | cpp | C++ | UE4Cleaner/UE4Cleaner.cpp | Vaei/ue4cleaner | ee49f2f6e71f19f2449963c60ecc750b44df70b6 | [
"MIT"
] | 6 | 2019-03-01T20:47:13.000Z | 2021-05-28T12:37:10.000Z | UE4Cleaner/UE4Cleaner.cpp | Vaei/ue4cleaner | ee49f2f6e71f19f2449963c60ecc750b44df70b6 | [
"MIT"
] | null | null | null | UE4Cleaner/UE4Cleaner.cpp | Vaei/ue4cleaner | ee49f2f6e71f19f2449963c60ecc750b44df70b6 | [
"MIT"
] | 1 | 2021-02-18T08:32:55.000Z | 2021-02-18T08:32:55.000Z | // Copyright (c) 2019 Jared Taylor / Vaei. All Rights Reserved.
// UE4Cleaner.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <windows.h>
#include <filesystem>
using namespac... | 25.289593 | 153 | 0.658078 | Vaei |
07f714a997b9d8844043e5114c9cd250832b98e8 | 10,493 | cpp | C++ | Firmware/Marlin/src/module/scara.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 97 | 2020-09-14T13:35:17.000Z | 2022-03-28T20:15:49.000Z | Firmware/Marlin/src/module/scara.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 8 | 2020-11-11T21:01:38.000Z | 2022-01-22T01:22:10.000Z | Firmware/Marlin/src/module/scara.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 49 | 2020-09-22T09:33:37.000Z | 2022-03-19T21:23:04.000Z | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 33.848387 | 172 | 0.636805 | jhNsXO |
07fa8bf96c8e7a17d0afc8adf538f6421f13d545 | 1,933 | cpp | C++ | AdenitaCoreSE/source/ADNMixins.cpp | edellano/Adenita-SAMSON-Edition-Win- | 6df8d21572ef40fe3fc49165dfaa1d4318352a69 | [
"BSD-3-Clause"
] | 2 | 2020-09-07T20:48:43.000Z | 2021-09-03T05:49:59.000Z | AdenitaCoreSE/source/ADNMixins.cpp | edellano/Adenita-SAMSON-Edition-Linux | a7e267e5dd37e0073f4d1e3e603c5fb1c69a350a | [
"BSD-3-Clause"
] | 6 | 2020-04-05T18:39:28.000Z | 2022-01-11T14:28:55.000Z | AdenitaCoreSE/source/ADNMixins.cpp | edellano/Adenita-SAMSON-Edition-Linux | a7e267e5dd37e0073f4d1e3e603c5fb1c69a350a | [
"BSD-3-Clause"
] | 2 | 2021-07-13T12:58:13.000Z | 2022-01-11T13:52:00.000Z | #include "ADNMixins.hpp"
Nameable::Nameable(const Nameable & other)
{
*this = other;
}
Nameable & Nameable::operator=(const Nameable & other)
{
if (&other == this) {
return *this;
}
SetName(other.GetName());
return *this;
}
void Nameable::SetName(std::string name)
{
name_ = name;
}
std::string Nam... | 14.318519 | 66 | 0.65701 | edellano |
5804ce8b05c4fe8086a3c4f7d09e5810ef183624 | 2,271 | cpp | C++ | 201512/3.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | 23 | 2021-03-01T07:07:48.000Z | 2022-03-19T12:49:14.000Z | 201512/3.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | null | null | null | 201512/3.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | 2 | 2021-08-30T09:35:17.000Z | 2021-09-10T12:26:13.000Z | #include <iostream>
#include <cstring>
#include <algorithm>
#include <queue>
#define x first
#define y second
using namespace std;
typedef pair<int, int> pii;
const int N = 110;
bool visited[N][N];
char g[N][N];
int st[N][N];
int m, n, q;
// st 0 : '.' 1 : '-' 2 : '|' 3 : '+'
void op0(int x1, int y1, int ... | 22.048544 | 78 | 0.359313 | qzylalala |
5805aa0d94e61eb592d413180b2403d51b90a449 | 3,085 | hpp | C++ | external/boost_1_60_0/qsboost/preprocessor/repetition/enum_shifted_binary_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/preprocessor/repetition/enum_shifted_binary_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/preprocessor/repetition/enum_shifted_binary_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2005. *
# * Distributed under the Boost Software License, Version 1.0. (See *
... | 59.326923 | 175 | 0.688817 | wouterboomsma |
5806a5ead19491e1c86e80cb17d2578fdb96bea8 | 2,431 | cpp | C++ | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | 4 | 2021-03-02T21:02:51.000Z | 2021-11-19T22:16:05.000Z | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | null | null | null | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | null | null | null | #include "border.h"
#include "player.h"
CBorder::CBorder(CGameContext* pGameContext): m_pGameContext(pGameContext){
glGenVertexArrays(1, &m_VAO);
glBindVertexArray(m_VAO);
glGenBuffers(1, &m_VBO);
glBindBuffer(GL_ARRAY_BUFFER, m_VBO);
float aVerticies[] = {
-0.5f, 0.5f, 0.5f,
0... | 33.30137 | 199 | 0.640889 | Arian8j2 |
580b0dd7cdf7930b6cb85c6e67947634df7d42a1 | 4,742 | hpp | C++ | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 12 | 2019-01-02T11:13:19.000Z | 2020-06-02T10:58:20.000Z | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | null | null | null | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 1 | 2020-04-03T11:54:53.000Z | 2020-04-03T11:54:53.000Z | #pragma once
#if defined(_WIN64)
#define ANTON_NOEXCEPT
#define ANTON_CRT_IMPORT __declspec(dllimport)
#define size_t unsigned long long
#else
#define ANTON_NOEXCEPT noexcept
#define ANTON_CRT_IMPORT
#define size_t unsigned long int
#endif
// C Runtime Forward Declarations
extern "C" {
/... | 34.362319 | 109 | 0.715943 | kociap |
580b1ef2bd4ec2ab59c00d0adbdb9f9e5d84f163 | 26,436 | cpp | C++ | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | AftermathK/Autoware | 88a1f088eba5878d88e95ecb88cd9389a4bad4b3 | [
"BSD-3-Clause"
] | 2 | 2019-01-29T10:50:56.000Z | 2021-12-20T07:20:13.000Z | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | ShawnSchaerer/Autoware | c2ba68b4e9f42136e6f055a9cd278dcebdcbab17 | [
"BSD-3-Clause"
] | null | null | null | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | ShawnSchaerer/Autoware | c2ba68b4e9f42136e6f055a9cd278dcebdcbab17 | [
"BSD-3-Clause"
] | 2 | 2019-01-29T10:51:00.000Z | 2020-09-13T04:52:44.000Z | /*
* Copyright (c) 2018, Nagoya University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list ... | 38.536443 | 143 | 0.657475 | AftermathK |
580d96d471ae4f1ab07ee84077f1b55c10933cd2 | 1,979 | cpp | C++ | source/opt/feature_manager.cpp | iburinoc/SPIRV-Tools | 48326d443e434f55eb50a7cfc9acdc968daad5e3 | [
"Apache-2.0"
] | null | null | null | source/opt/feature_manager.cpp | iburinoc/SPIRV-Tools | 48326d443e434f55eb50a7cfc9acdc968daad5e3 | [
"Apache-2.0"
] | null | null | null | source/opt/feature_manager.cpp | iburinoc/SPIRV-Tools | 48326d443e434f55eb50a7cfc9acdc968daad5e3 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 29.984848 | 78 | 0.72663 | iburinoc |
580e5521d0785f546d139ffb54c95b1adb627e16 | 8,138 | cc | C++ | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 31.789063 | 80 | 0.613664 | haocxy |
580f60d9c3c1917c611b3c85574dd8ded30a22fe | 957 | cpp | C++ | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeElements(ListNode* head, int val) {
ListNode* it = head;
ListNode* newHead = NULL;
ListNode*... | 28.147059 | 106 | 0.440961 | SelvorWhim |
5810aa11c2c678e2dba12e500ef70300a1a9781d | 5,699 | cpp | C++ | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 23 | 2017-09-01T04:35:02.000Z | 2022-01-16T13:51:17.000Z | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 20 | 2017-08-29T15:29:46.000Z | 2022-01-20T09:10:59.000Z | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 21 | 2017-06-15T03:11:34.000Z | 2022-02-28T05:20:44.000Z | /**********************************************************************
SSHManager - SSHManagerTest class provides unit testing for the
SSHManager class
Copyright (C) 2010-2011 David C. Lonie
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agree... | 26.882075 | 79 | 0.640814 | lilithean |
5812d55e1d9e9bdc8296acf6f0576ecef0cc8bcc | 379 | cpp | C++ | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | 1 | 2019-08-24T17:31:50.000Z | 2019-08-24T17:31:50.000Z | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | // The MIT License
// (c) 2019 Daniel Williams
#include <cmath>
#include "geometry/point.hpp"
#include "geometry/segment.hpp"
using terrain::geometry::Point;
using terrain::geometry::Segment;
Segment::Segment() {}
Segment::Segment(const Point& _start, const Point& _end):
start(_start), end(_end)
{}
void Segme... | 16.478261 | 57 | 0.691293 | teyrana |
5812ea4aec3da9e3cc16952c7e4ca4c632a044d7 | 19,054 | cpp | C++ | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | 8 | 2019-12-11T08:52:37.000Z | 2021-08-04T03:42:55.000Z | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | null | null | null | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | 1 | 2020-04-16T07:07:50.000Z | 2020-04-16T07:07:50.000Z | #include "ListModelTest.h"
#include <QtCore>
#include <QtTest>
#include "QCxxListModel.h"
#include "ListModelTester.h"
// Macros
#define InitModel() \
QCxxListModel<QObject *> model; \
model.setCountEnabled(true); \
auto tester = new ListModelTester(&model)
#define VerifyCountSignal(value) QVERIFY(test... | 24.118987 | 78 | 0.599139 | ericzh86 |
58144a8de60ff911068cf63bc3e79d31ea11f2a9 | 1,909 | cpp | C++ | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #include "GraphicElementManager.hpp"
#include "BFC/BFCCullableHandle.hpp"
#include "BFC/BFCBlockManagerFactory.hpp"
#include "Graphic/DRBMeshData.hpp"
#include "AssetManagement/Instance/MeshInstance.hh"
#include "AssetManagement/Instance/MaterialInstance.hh"
#include "Utils/Profiler.hpp"
namespace AGE
{
GraphicEl... | 25.118421 | 145 | 0.736511 | Another-Game-Engine |
58149e7643a81c744cd4db01b0f21e8558ce657c | 11,616 | cpp | C++ | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2020-09-08T15:30:11.000Z | 2020-09-08T15:30:11.000Z | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2021-01-21T12:27:39.000Z | 2021-01-21T12:27:39.000Z | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2020-08-17T21:07:24.000Z | 2020-08-17T21:07:24.000Z | // Copyright (c) 2018-2019 Intel Corporation
//
// 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,... | 51.171806 | 152 | 0.758781 | me176c-dev |