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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c88ee1c406eef134f226eb0f22f8ce10108bfcd | 3,515 | cpp | C++ | firing_char_single_img/main.cpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 4 | 2018-07-09T19:38:27.000Z | 2021-03-02T19:31:38.000Z | firing_char_single_img/main.cpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | null | null | null | firing_char_single_img/main.cpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 2 | 2020-04-25T18:05:30.000Z | 2020-07-14T21:19:17.000Z | #include <ctime>
#include <cstdlib>
#include <cstdint>
#include <stdexcept>
#include <cmath>
#include <algorithm>
#include <iostream>
#include "xSDL.hpp"
#include "xSDL_image.hpp"
#include "Graphical.hpp"
#include "EngCharacter.hpp"
#include "ParticlesSystem.hpp"
#include "Atlas.hpp"
#include "EngSkeleton.hpp"
#includ... | 23.590604 | 79 | 0.574395 | phao |
1c92482aefeade06c671c07d3a2e4461c6bd3af5 | 14,094 | cpp | C++ | Engine/Types/source/Types/CapModel.capnp.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | Engine/Types/source/Types/CapModel.capnp.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | Engine/Types/source/Types/CapModel.capnp.cpp | Pursche/PurEngine | 9bc82309ee2773241e07ef1ec3335bbe449a791c | [
"MIT"
] | null | null | null | // Generated by Cap'n Proto compiler, DO NOT EDIT
// source: CapModel.capnp
#include "CapModel.capnp.h"
namespace capnp {
namespace schemas {
static const ::capnp::_::AlignedData<63> b_b747ed917331d47a = {
{ 0, 0, 0, 0, 5, 0, 6, 0,
122, 212, 49, 115, 145, 237, 71, 183,
21, 0, 0, 0, ... | 42.451807 | 102 | 0.371009 | Pursche |
1c94471cc1b91180aeb24553afdba4a5eb90d328 | 7,391 | cpp | C++ | clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp | compiler-tree-technologies/cil | 195acc33e14715da9f5a1746b489814d56c015f7 | [
"BSD-2-Clause"
] | 21 | 2021-02-08T15:42:18.000Z | 2022-02-23T03:25:10.000Z | clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp | compiler-tree-technologies/cil | 195acc33e14715da9f5a1746b489814d56c015f7 | [
"BSD-2-Clause"
] | 3 | 2021-02-20T14:24:45.000Z | 2021-08-04T04:20:05.000Z | clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp | compiler-tree-technologies/cil | 195acc33e14715da9f5a1746b489814d56c015f7 | [
"BSD-2-Clause"
] | 6 | 2021-02-08T16:57:07.000Z | 2022-01-13T11:32:34.000Z | // Copyright (c) 2019, Compiler Tree Technologies Pvt Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... | 37.328283 | 80 | 0.715059 | compiler-tree-technologies |
1c9464ff4476624d81887e6d0e4b88fc648ccb7e | 945 | cpp | C++ | c++/source/morth/cross_reference.cpp | Phytolizer/morth | 41cc00080da5f62c742ea92699fef42a41dfe962 | [
"MIT"
] | null | null | null | c++/source/morth/cross_reference.cpp | Phytolizer/morth | 41cc00080da5f62c742ea92699fef42a41dfe962 | [
"MIT"
] | null | null | null | c++/source/morth/cross_reference.cpp | Phytolizer/morth | 41cc00080da5f62c742ea92699fef42a41dfe962 | [
"MIT"
] | null | null | null | #include "morth/cross_reference.hpp"
#include "morth/macros.hpp"
#include "morth/shorter_types.hpp"
#include <fmt/format.h>
#include <stack>
#include <stdexcept>
MORTH_FILE_LOCAL void dieUnbalancedToken(Token tok) {
fmt::print(stderr, "{}:{}:{}: Unbalanced '{}'\n", tok.location.filePath, tok.location.row,
... | 27 | 94 | 0.583069 | Phytolizer |
1c9509e71c4bc3c9bc797d4a653467b18bc66302 | 1,212 | hpp | C++ | 20/regex_labyrinth.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 20/regex_labyrinth.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 20/regex_labyrinth.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | #ifndef ADVENT_OF_CODE_20_REGEX_LABYRINTH_HPP_INCLUDE_GUARD
#define ADVENT_OF_CODE_20_REGEX_LABYRINTH_HPP_INCLUDE_GUARD
#include <array>
#include <functional>
#include <iosfwd>
#include <string_view>
#include <tuple>
#include <unordered_map>
#include <vector>
struct Vec2 {
int x;
int y;
Vec2() = default;... | 18.9375 | 111 | 0.65264 | ComicSansMS |
1c9ac30abf23a868e4a2521ad2dda61339965eb6 | 23,284 | cpp | C++ | SimTKcommon/tests/TestCloneOnWritePtr.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 1,916 | 2015-01-01T09:35:21.000Z | 2022-03-30T11:38:43.000Z | SimTKcommon/tests/TestCloneOnWritePtr.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 389 | 2015-01-01T01:13:51.000Z | 2022-03-16T15:30:58.000Z | SimTKcommon/tests/TestCloneOnWritePtr.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 486 | 2015-01-02T10:25:49.000Z | 2022-03-16T15:31:40.000Z | /* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKcommon *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 36.043344 | 93 | 0.593154 | e-schumann |
1c9eee87f1d2157545d40f8037e138b9e4584038 | 691 | hpp | C++ | third_party/boost/libs/throw_exception/test/lib2_throw.hpp | Jackarain/tinyrpc | 07060e3466776aa992df8574ded6c1616a1a31af | [
"BSL-1.0"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | third_party/boost/libs/throw_exception/test/lib2_throw.hpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | third_party/boost/libs/throw_exception/test/lib2_throw.hpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | #ifndef LIB2_THROW_HPP_INCLUDED
#define LIB2_THROW_HPP_INCLUDED
// Copyright 2018 Peter Dimov
//
// 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 <boost/config.hpp>
#include <exception>
#... | 19.194444 | 62 | 0.732272 | Jackarain |
1caf4b346c1651e1f388febc9153362d258f74ec | 2,584 | cxx | C++ | source/common/log.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | source/common/log.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | source/common/log.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #include <common/algorithm.hpp>
#include <common/compiler.hpp>
#include <common/log.hpp>
#include <common/type_macros.hpp>
#include <iostream>
#include <memory>
using namespace common;
using namespace common::impl;
namespace
{
auto
threadunsafe_sink(char const* file_path)
{
// use single-threaded spdlog sink
us... | 25.84 | 98 | 0.694272 | bjadamson |
1cb17087c5744fc15685f61512d6ac28e2e27bae | 363 | cpp | C++ | codeshef/SUMPOS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | codeshef/SUMPOS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | codeshef/SUMPOS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<queue>
#include<vector>
#include<algorithm>
#include<climits>
#include<math.h>
using namespace std;
typedef long long ll ;
void solve(){
ll x,y,z;
cin>>x>>y>>z;
if(x+y ==z || x+z ==y || z+y==x ){
cout<<"YES\n";
}else{
cout<<"NO\n";
}
}
int main() {
ll t;
cin>>t;
... | 12.1 | 37 | 0.545455 | sonuKumar03 |
1cb53cb116ee15a5338ec3bf1a8934baf8708ffb | 118 | cpp | C++ | src/Item31/address.cpp | henrytien/effective_cpp_3rd | ff5fa999d68b4a625c939c7f30a10728e967f6bf | [
"MIT"
] | null | null | null | src/Item31/address.cpp | henrytien/effective_cpp_3rd | ff5fa999d68b4a625c939c7f30a10728e967f6bf | [
"MIT"
] | null | null | null | src/Item31/address.cpp | henrytien/effective_cpp_3rd | ff5fa999d68b4a625c939c7f30a10728e967f6bf | [
"MIT"
] | null | null | null | #include "address.h"
Address::Address():address_name_("District HaiDian, City of Beijing."){}
Address::~Address() {} | 23.6 | 72 | 0.711864 | henrytien |
1cb748d20810aab60102ca08141bd233ef7312b6 | 15,656 | cpp | C++ | windows/advcore/duser/directui/engine/layout/rowlayout.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | windows/advcore/duser/directui/engine/layout/rowlayout.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | windows/advcore/duser/directui/engine/layout/rowlayout.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*
* RowLayout
*/
#include "stdafx.h"
#include "layout.h"
#include "duiRowLayout.h"
namespace DirectUI
{
//
// NOTE: RowLayout is NOT yet thread-safe (access to _arPairs).
// Do not use it in applications where more than one thread uses RowLayout.
//
/////////////////////////////////////////////... | 26.580645 | 126 | 0.486842 | npocmaka |
1cb80edd1b2de8683ffddb8ed7d8bc6fc382913a | 950 | cpp | C++ | docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | structured_task_group tg2;
// Create a child task.
auto t4 = make_task([&] {
// Perform work in a loop.
for (int i = 0; i < 1000; ++i)
{
// Call a function to perform work.
// If the work function fails, throw an exception to
... | 25.675676 | 73 | 0.454737 | bobbrow |
1cb821c0849832889abe41ff99312eedeb1837a0 | 660 | cpp | C++ | teas/iostream/iostream/iostream.cpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | teas/iostream/iostream/iostream.cpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | teas/iostream/iostream/iostream.cpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | #include "iostream.hpp"
namespace ios {
bout_ostream::bout_ostream() {
mFile = stdout;
}
std::streamsize bout_ostream::write(const void*data, std::streamsize size) {
return fwrite(data, 1, size, mFile);
}
void bout_ostream::flush() { fflush(mFile); }
bin_istream::bin_istream() {
mFile = stdin;
}
std::st... | 18.857143 | 76 | 0.69697 | benman64 |
1cc044b3fce6eff418ce970adfb955a7a6954226 | 737 | cpp | C++ | datasets/github_cpp_10/5/7.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/5/7.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/5/7.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::string;
using std::vector;
class Solution {
public:
vector<string> towerOfHanoi(int n) {
vector<string> ret;
doHanoi(n, 'A', 'C', 'B', ret);
return ret;
}
private:
string co... | 17.139535 | 74 | 0.567164 | yijunyu |
1cc6b226eea195cfc51cde987cf6d117754e4563 | 1,759 | cpp | C++ | 7.Templates/i-Design/Q5/Main.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 7.Templates/i-Design/Q5/Main.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 7.Templates/i-Design/Q5/Main.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include<iostream>
#include<cstdlib>
using std::cin;
using std::cout;
using std::endl;
using std::string;
template<class T>
class Stack
{
private:
int top;
T *arr;
int maxsize;
public:
Stack(int s){
maxsize=s;
arr=new T[maxsize];
top=-1;
}
void push(T val){
... | 17.07767 | 53 | 0.436043 | Concept-Team |
1cc70401ea2127adfb6b9f893a7b0c1d89324754 | 1,245 | hpp | C++ | include/corrsolver/Qmi_oracle.hpp | luk036/lmi-cpp | 25a4f6cb4737c75f195ae0244aa11c7c7aa985d9 | [
"Unlicense"
] | null | null | null | include/corrsolver/Qmi_oracle.hpp | luk036/lmi-cpp | 25a4f6cb4737c75f195ae0244aa11c7c7aa985d9 | [
"Unlicense"
] | null | null | null | include/corrsolver/Qmi_oracle.hpp | luk036/lmi-cpp | 25a4f6cb4737c75f195ae0244aa11c7c7aa985d9 | [
"Unlicense"
] | null | null | null | // -*- coding: utf-8 -*-
#pragma once
#include <gsl/span>
#include <lmisolver/ldlt_ext.hpp>
#include <optional>
// #include <xtensor/xarray.hpp>
/*!
* @brief Oracle for Quadratic Matrix Inequality
*
* This oracle solves the following feasibility problem:
*
* find x
* s.t. t * I ... | 20.409836 | 60 | 0.518072 | luk036 |
1ccb38f5558314586f831fafeb058fff81af0538 | 2,147 | hpp | C++ | test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 575 | 2015-01-22T20:05:04.000Z | 2020-06-01T10:06:12.000Z | test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 1,110 | 2015-04-20T19:30:34.000Z | 2020-06-01T08:13:52.000Z | test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 273 | 2015-08-10T23:34:42.000Z | 2020-05-28T13:03:32.000Z | #ifndef _UNITTEST_RTPS_FLOWCONTROL_FLOWCONTROLLERPUBLISHMODESTESTS_HPP_
#define _UNITTEST_RTPS_FLOWCONTROL_FLOWCONTROLLERPUBLISHMODESTESTS_HPP_
#include <rtps/flowcontrol/FlowControllerImpl.hpp>
#include <fastdds/rtps/flowcontrol/FlowControllerDescriptor.hpp>
#include <gtest/gtest.h>
namespace eprosima {
namespace f... | 30.239437 | 88 | 0.721006 | DimaRU |
1ccc445663bf1f411d7e2c05d5e22831df43a49f | 3,819 | cxx | C++ | main/idlc/source/fehelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/idlc/source/fehelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/idlc/source/fehelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 27.085106 | 100 | 0.617177 | Grosskopf |
1cd025052dca8f3ae05495622dc19345f4f80f6f | 1,689 | cpp | C++ | llvm-project/clang/test/SemaCXX/coroutine-rvo.cpp | AgesX/llvm | 841024dce9c0263f302491b5c27fa0df6ef222df | [
"MIT"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | llvm-project/clang/test/SemaCXX/coroutine-rvo.cpp | AgesX/llvm | 841024dce9c0263f302491b5c27fa0df6ef222df | [
"MIT"
] | 410 | 2019-06-06T20:52:32.000Z | 2022-01-18T14:21:48.000Z | llvm-project/clang/test/SemaCXX/coroutine-rvo.cpp | AgesX/llvm | 841024dce9c0263f302491b5c27fa0df6ef222df | [
"MIT"
] | 50 | 2019-05-10T21:12:24.000Z | 2022-01-21T06:39:47.000Z | // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -stdlib=libc++ -std=c++1z -fcoroutines-ts -fsyntax-only
namespace std::experimental {
template <class Promise = void> struct coroutine_handle {
coroutine_handle() = default;
static coroutine_handle from_address(void *) noexcept;
};
template <> struct coroutine_ha... | 24.128571 | 106 | 0.714624 | AgesX |
1cd0cf5ecbbe8841e0e7e2590602d3beb871fa74 | 23,191 | cpp | C++ | RenderCore/Assets/RawMaterial.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 3 | 2018-05-17T08:39:39.000Z | 2020-12-09T13:20:26.000Z | RenderCore/Assets/RawMaterial.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | null | null | null | RenderCore/Assets/RawMaterial.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 1 | 2021-11-14T08:50:15.000Z | 2021-11-14T08:50:15.000Z | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "RawMaterial.h"
#include "../StateDesc.h"
#include "../../Assets/Assets.h"
#include "../../Assets/IntermediateAssets.h" // (for GetD... | 38.395695 | 152 | 0.61291 | pocketgems |
1cd0fba7ad7b9b9b41979c4fc1838b36feb30c63 | 1,719 | cpp | C++ | source/main.cpp | MatthewScholefield/musidy-app | 24b1007619e3137bf97ad9e3917d3560fbbd9f21 | [
"MIT"
] | null | null | null | source/main.cpp | MatthewScholefield/musidy-app | 24b1007619e3137bf97ad9e3917d3560fbbd9f21 | [
"MIT"
] | null | null | null | source/main.cpp | MatthewScholefield/musidy-app | 24b1007619e3137bf97ad9e3917d3560fbbd9f21 | [
"MIT"
] | null | null | null | #include <SDL_events.h>
#include <iostream>
#include "Renderer.hpp"
#include "Instrument.hpp"
#include "CLI11.hpp"
#include "songCreation/ScorePlayer.hpp"
#include "Interface.hpp"
#include "SoundSystem.hpp"
struct Arguments {
Arguments(int argc, char **argv) : app("Dynamic Music Generation App") {
app.ign... | 30.157895 | 108 | 0.63758 | MatthewScholefield |
1cd20ea69db65faa31c7758f34d5bd55d3601cd3 | 2,219 | cc | C++ | src/search_local/index_storage/common/shmem.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | 3 | 2021-08-18T09:59:42.000Z | 2021-09-07T03:11:28.000Z | src/search_local/index_storage/common/shmem.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | src/search_local/index_storage/common/shmem.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | /*
* =====================================================================================
*
* Filename: sheme.cc
*
* Description:
*
* Version: 1.0
* Created: 09/08/2020 10:02:05 PM
* Revision: none
* Compiler: gcc
*
* Author: qiulu, choulu@jd.com
* ... | 16.07971 | 88 | 0.553853 | jdisearch |
1cd7023f82b12ca43c163864d644d886b6650211 | 359 | cpp | C++ | Raven/src/Application.cpp | IridescentRose/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 10 | 2020-10-05T23:11:25.000Z | 2022-01-30T13:22:33.000Z | Raven/src/Application.cpp | IridescentRose/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 3 | 2020-07-09T16:08:54.000Z | 2020-08-05T19:58:41.000Z | Raven/src/Application.cpp | NT-Bourgeois-Iridescence-Technologies/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 2 | 2021-02-06T08:01:26.000Z | 2021-06-19T07:39:59.000Z | #include "Application.h"
#include "States/Logo.h"
Application::Application()
{
stateMan = new Core::GameStateManager();
}
Application::~Application()
{
}
void Application::init()
{
Logo* logo = new Logo();
logo->init();
stateMan->addState(logo);
}
void Application::update()
{
stateMan->update();
}
void Appl... | 11.580645 | 41 | 0.668524 | IridescentRose |
1cd7199367381b631390d66b84fbe8c2737220d6 | 2,084 | cc | C++ | src/q_51_100/q0094.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_51_100/q0094.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_51_100/q0094.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
#include <leetcode/treenode.hpp>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 94.
* Binary Tree Inorder Traversal
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given the ‘roo... | 24.517647 | 74 | 0.608925 | vNaonLu |
1cd9854f0d7e24b977418a15aff6a9297e3db57a | 376 | cpp | C++ | modern_cpp/11_compiler_generated_default_constructor.cpp | callmexss/cpp | 51c91e7b52096f83ecb9e8d3caa2e633662e9128 | [
"MIT"
] | null | null | null | modern_cpp/11_compiler_generated_default_constructor.cpp | callmexss/cpp | 51c91e7b52096f83ecb9e8d3caa2e633662e9128 | [
"MIT"
] | null | null | null | modern_cpp/11_compiler_generated_default_constructor.cpp | callmexss/cpp | 51c91e7b52096f83ecb9e8d3caa2e633662e9128 | [
"MIT"
] | null | null | null | /**
* 11. Compiler Generated Default Constructor
*/
class Dog
{
Dog(int age) {}
};
Dog d1; // Error: compiler will not generate the default constructor
// C++ 11
class Dog2
{
public:
Dog2(int age);
Dog2() = default; // Force compiler to generate the default constructor
};
int main(int argc, char const... | 14.461538 | 75 | 0.625 | callmexss |
1cdccb774695f7fb9de9e7019b2cddf6a32e8cb5 | 1,556 | hh | C++ | mimosa/http/crud-handler.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/http/crud-handler.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/http/crud-handler.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #pragma once
# include "handler.hh"
namespace mimosa
{
namespace http
{
/**
* This handler helps you to map CRUD web services.
* You have to override methods you wish to implement,
* and the other ones will reply 501 (NotImplemented).
*/
class CrudHandler : public Handler
{
pub... | 27.785714 | 74 | 0.582262 | abique |
1cdf396d7c14e193c5f365f1ecd84dcb0fba5914 | 2,733 | cpp | C++ | src/jsonrpc_client/asyncrpcclient.cpp | ondra-novak/jsonrpc_client | 89ead3bd50bb86b85aa5d488bb45e768cdb3fc69 | [
"MIT"
] | null | null | null | src/jsonrpc_client/asyncrpcclient.cpp | ondra-novak/jsonrpc_client | 89ead3bd50bb86b85aa5d488bb45e768cdb3fc69 | [
"MIT"
] | null | null | null | src/jsonrpc_client/asyncrpcclient.cpp | ondra-novak/jsonrpc_client | 89ead3bd50bb86b85aa5d488bb45e768cdb3fc69 | [
"MIT"
] | null | null | null | /*
* asyncrpcclient.cpp
*
* Created on: 23. 7. 2017
* Author: ondra
*/
#include "asyncrpcclient.h"
#include "netio.h"
#include <imtjson/parser.h>
#include <imtjson/serializer.h>
#include <cerrno>
namespace jsonrpc_client {
using namespace jsonrpc_client;
RpcClient::RpcClient():AbstractRpcClient... | 17.08125 | 84 | 0.637029 | ondra-novak |
1cdfa4bf90d2d3fe0c0b1d35aecb1836343266d3 | 7,673 | cpp | C++ | glSandbox/source/PostProcessingStep.cpp | alex-tdrn/glSandbox | 4f55e6980382672e53cb0406ee4ddc7cf240dc65 | [
"MIT"
] | null | null | null | glSandbox/source/PostProcessingStep.cpp | alex-tdrn/glSandbox | 4f55e6980382672e53cb0406ee4ddc7cf240dc65 | [
"MIT"
] | null | null | null | glSandbox/source/PostProcessingStep.cpp | alex-tdrn/glSandbox | 4f55e6980382672e53cb0406ee4ddc7cf240dc65 | [
"MIT"
] | null | null | null | #include "Util.h"
#include "PostProcessingStep.h"
#include "Globals.h"
#include "MeshManager.h"
void PostProcessingStep::initFramebuffer()
{
initialized = true;
glGenFramebuffers(1, &framebuffer);
glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
glActiveTexture(GL_TEXTURE0);
glGenTextures(1, &colorbuffer);
glBind... | 32.375527 | 150 | 0.712629 | alex-tdrn |
1ce3419e089045a1cc7f55fdc550b69d5361a1fe | 25 | cpp | C++ | llarp/util/bits.cpp | da4089/llarp | e223f5d023b1794638b9e9b47a86ed03c8c25306 | [
"Zlib"
] | 28 | 2018-01-25T17:39:25.000Z | 2022-03-26T15:23:12.000Z | llarp/util/bits.cpp | gjyoung1974/loki-network | 6559bb8f9e80095b4a7462ccb8fdf12e8ce19527 | [
"Zlib"
] | 2 | 2019-12-19T15:37:07.000Z | 2020-01-31T19:42:28.000Z | llarp/util/bits.cpp | gjyoung1974/loki-network | 6559bb8f9e80095b4a7462ccb8fdf12e8ce19527 | [
"Zlib"
] | 7 | 2018-05-21T12:34:50.000Z | 2021-05-05T11:57:50.000Z | #include <util/bits.hpp>
| 12.5 | 24 | 0.72 | da4089 |
1ce36afc1b352b629368df9bbd3f63e22f3b8ca0 | 10,044 | hpp | C++ | ufora/core/containers/TwoWaySetMap.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/core/containers/TwoWaySetMap.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/core/containers/TwoWaySetMap.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 31.987261 | 189 | 0.684588 | ufora |
1ce473203eb8b6f0c385adfb22ed3f866347e443 | 116,544 | cpp | C++ | src/QtPhonemes/Phonemes/PhonemeIndex.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | src/QtPhonemes/Phonemes/PhonemeIndex.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | src/QtPhonemes/Phonemes/PhonemeIndex.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | // Data source from S:/Sakra/Development/CIOS/3rdparty/builds/espeak-1.47.11-source/espeak-data/phonindex
int PhonemeIndexSize = 22960 ;
unsigned char PhonemeIndex [ 22960 ] = {
0x09,0x47,0x01,0x00,0x00,0xA1,0xD5,0x83,0x00,0x00,0x00,0x00,0x00,0xA2,0x12,0x82,
0x00,0x00,0... | 80.933333 | 105 | 0.789213 | Vladimir-Lin |
1ce5cc2035c78e1250c3ff9e833ebcf27923636a | 16,299 | cxx | C++ | main/svtools/source/control/scrwin.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svtools/source/control/scrwin.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svtools/source/control/scrwin.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 28.644991 | 84 | 0.608933 | Grosskopf |
1ce7b75365e3e4b99c8652be80d82573844775a3 | 1,831 | cpp | C++ | test/src/WorldTest.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | 1 | 2017-11-22T11:39:25.000Z | 2017-11-22T11:39:25.000Z | test/src/WorldTest.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null | test/src/WorldTest.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null |
#include "catch.hpp"
#include "TestCommons.h"
#include "World.h"
using namespace Meadows;
TEST_CASE("Creating entities", "[World][integration]") {
World world;
auto entity = world.createEntity<TestEntity>();
SECTION("Entity is not initialised") {
REQUIRE_FALSE(entity->isInitialized);
}
... | 28.169231 | 93 | 0.666303 | Konijnendijk |
1ced2b7c5027069406dbc01f72d7967385a0bfaa | 4,535 | cpp | C++ | inetcore/mshtml/src/time/anim/animfrag.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/time/anim/animfrag.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/time/anim/animfrag.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*******************************************************************************
Copyright (c) 1999 Microsoft Corporation
Abstract:
Animation Fragment Implementation
*******************************************************************************/
#include "headers.h"
#include "animfrag.h"
DeclareT... | 25.767045 | 83 | 0.438809 | npocmaka |
1cee59d540ce935b4109ab6bea4f450c6135fa65 | 5,148 | cpp | C++ | eqgame_dll/MQ2CleanUI.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | 3 | 2021-06-25T00:03:25.000Z | 2021-11-30T19:45:27.000Z | eqgame_dll/MQ2CleanUI.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | null | null | null | eqgame_dll/MQ2CleanUI.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | 3 | 2021-09-21T23:33:31.000Z | 2022-02-18T08:13:20.000Z | /*****************************************************************************
MQ2Main.dll: MacroQuest2's extension DLL for EverQuest
Copyright (C) 2002-2003 Plazmic, 2003-2005 Lax
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as p... | 29.586207 | 126 | 0.68143 | Natedog2012 |
1cee6d4bcf6fdbd08865fdd724d76f8d43da3742 | 3,034 | cpp | C++ | src/controller/Mopidy_mpd_connector.cpp | BFH-AudioStreamer/Streamer-UI | 9447826ab293a0a0a6086ddce4117c0735879ede | [
"MIT"
] | null | null | null | src/controller/Mopidy_mpd_connector.cpp | BFH-AudioStreamer/Streamer-UI | 9447826ab293a0a0a6086ddce4117c0735879ede | [
"MIT"
] | null | null | null | src/controller/Mopidy_mpd_connector.cpp | BFH-AudioStreamer/Streamer-UI | 9447826ab293a0a0a6086ddce4117c0735879ede | [
"MIT"
] | 1 | 2020-05-15T07:54:35.000Z | 2020-05-15T07:54:35.000Z | /**
*******************************************************************************
* @addtogroup Mopidy_mpd_connector
* @{
* @brief Backend connector combining the MPD and Mopidy connector
*
* @authors Rafael Klossner
* @authors Stefan Lüthi
*********************************************************************... | 33.340659 | 95 | 0.696111 | BFH-AudioStreamer |
1cf38a54e01590ebf72ff7eed4790ff0dc36bd83 | 1,382 | cpp | C++ | src/util/TimeUtils.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/util/TimeUtils.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/util/TimeUtils.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | /*
* <one line to give the program's name and a brief idea of what it does.>
* Copyright (C) 2015 <copyright holder> <email>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either versi... | 27.64 | 74 | 0.685962 | serserar |
1cf75d1381da7d943503fa6f711853a2222dbaf5 | 693 | cpp | C++ | alica_tests/autogenerated/src/Plans/constraints/Defend1402488893641Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 12 | 2015-06-09T07:19:50.000Z | 2018-11-20T10:40:08.000Z | alica_tests/autogenerated/src/Plans/constraints/Defend1402488893641Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 4 | 2015-09-10T10:23:33.000Z | 2018-04-20T12:07:34.000Z | alica_tests/autogenerated/src/Plans/constraints/Defend1402488893641Constraints.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | 4 | 2016-06-13T12:04:57.000Z | 2018-07-04T08:11:35.000Z | #include "Plans/constraints/Defend1402488893641Constraints.h"
using namespace std;
using namespace alica;
/*PROTECTED REGION ID(ch1402488893641) ENABLED START*/
// Add additional using directives here
/*PROTECTED REGION END*/
namespace alicaAutogenerated
{
// Plan:Defend
/*
* Tasks:
* - EP:1402488903550 : DefaultTa... | 16.5 | 61 | 0.720058 | hendrik-skubch |
1cf79379c223a06d256819031de5b5ad2ff7a08d | 1,602 | cpp | C++ | game/shared/cstrike15/cs_gamerules.cpp | Ochii/source-sdk-csgo | c95b57ce390dcc36d078efc680a3963b27de2f41 | [
"Unlicense"
] | 4 | 2018-11-27T23:11:55.000Z | 2019-07-23T14:27:08.000Z | game/shared/cstrike15/cs_gamerules.cpp | Ochii/source-sdk-csco | c95b57ce390dcc36d078efc680a3963b27de2f41 | [
"Unlicense"
] | null | null | null | game/shared/cstrike15/cs_gamerules.cpp | Ochii/source-sdk-csco | c95b57ce390dcc36d078efc680a3963b27de2f41 | [
"Unlicense"
] | 2 | 2019-06-01T15:24:29.000Z | 2019-07-23T14:27:09.000Z | #include "stdafx.h"
#ifdef CLIENT_DLL
#else
#include "cs_player.h"
#include "cs_gamerules.h"
#endif
CViewVectors* GetCSViewVectors()
{
return (CViewVectors*)Addresses::CSViewVectors;
}
CCSGameRules* CSGameRules()
{
return (CCSGameRules*) *g_pGameRules;
}
float CCSGameRules::GetRoundElapsedTime()
{
return g... | 18.627907 | 124 | 0.739076 | Ochii |
1cf7a3f1fdd74f7d1020237ae95b9cdc76f36fc5 | 530 | hpp | C++ | boost/decode.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | boost/decode.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | boost/decode.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | // Andrew Naplavkov
#ifndef BRIG_BOOST_DECODE_HPP
#define BRIG_BOOST_DECODE_HPP
#include <brig/blob_t.hpp>
#include <brig/boost/detail/decode_geometry.hpp>
#include <locale>
#include <sstream>
#include <string>
namespace brig { namespace boost {
inline std::string decode(const blob_t& wkb)
{
auto p... | 21.2 | 67 | 0.70566 | isadchenko |
1cf84cd204fcc6969a7ea2f9224386ce4ef084a6 | 14,421 | cpp | C++ | verilator-4.016/src/V3TraceDecl.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3TraceDecl.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3TraceDecl.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | // -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Waves tracing
//
// Code available from: http://www.veripool.org/verilator
//
//*************************************************************************
//
// Copyright 2... | 42.539823 | 119 | 0.519867 | tcovert2015 |
7f32aad5921807e7f693684769dd47749c7f92fe | 5,686 | hpp | C++ | src/floaxie/static_pow.hpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/floaxie/static_pow.hpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/floaxie/static_pow.hpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015-2019 Alexey Chernov <4ernov@gmail.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 appli... | 35.31677 | 130 | 0.701724 | enerc |
7f32c9a27e1b4b6e626db41fcafac13f288783f5 | 2,858 | cpp | C++ | src/common/transformations/src/ngraph_ops/multiclass_nms_ie_internal.cpp | si-eun-kim/openvino | 1db4446e2a6ead55d066e0b4e718fa37f509353a | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/common/transformations/src/ngraph_ops/multiclass_nms_ie_internal.cpp | si-eun-kim/openvino | 1db4446e2a6ead55d066e0b4e718fa37f509353a | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/common/transformations/src/ngraph_ops/multiclass_nms_ie_internal.cpp | tuxedcat/openvino | 5939cb1b363ebb56b73c2ad95d8899961a084677 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph_ops/multiclass_nms_ie_internal.hpp"
#include "../../core/shape_inference/include/multiclass_nms_shape_inference.hpp"
#include "itt.hpp"
using namespace std;
using namespace ngraph;
BWDCMP_RTTI_DEFINITION(op::inte... | 46.096774 | 120 | 0.643107 | si-eun-kim |
7f3500bea42da31b9257866c921d5b9273c5c964 | 4,142 | cpp | C++ | Thirdparty/Gc/Energy/Potential/Metric/RiemannianBoykov.cpp | ITISFoundation/osparc-iseg | 6f38924120b3a3e7a0292914d2c17f24c735309b | [
"MIT"
] | 32 | 2018-03-26T12:39:19.000Z | 2022-03-22T20:54:22.000Z | Thirdparty/Gc/Energy/Potential/Metric/RiemannianBoykov.cpp | dyollb/osparc-iseg | 6f38924120b3a3e7a0292914d2c17f24c735309b | [
"MIT"
] | 10 | 2018-04-03T15:54:22.000Z | 2022-02-01T14:32:36.000Z | Thirdparty/Gc/Energy/Potential/Metric/RiemannianBoykov.cpp | dyollb/osparc-iseg | 6f38924120b3a3e7a0292914d2c17f24c735309b | [
"MIT"
] | 11 | 2018-03-08T13:11:28.000Z | 2021-02-01T10:43:39.000Z | /*
This file is part of Graph Cut (Gc) combinatorial optimization library.
Copyright (C) 2008-2010 Centre for Biomedical Image Analysis (CBIA)
Copyright (C) 2008-2010 Ondrej Danek
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | 29.585714 | 118 | 0.593433 | ITISFoundation |
7f3c74b05374fc5a86fd6c5b170702548acaa2fd | 790 | hpp | C++ | tests/util/macros.hpp | ken-matsui/poac | e4503027f3993be493824f48dc31818029784238 | [
"Apache-2.0"
] | 496 | 2018-07-03T06:57:13.000Z | 2022-03-28T23:20:01.000Z | tests/util/macros.hpp | ken-matsui/poac | e4503027f3993be493824f48dc31818029784238 | [
"Apache-2.0"
] | 331 | 2018-03-29T05:15:51.000Z | 2022-03-12T16:57:06.000Z | tests/util/macros.hpp | ken-matsui/poac | e4503027f3993be493824f48dc31818029784238 | [
"Apache-2.0"
] | 58 | 2018-11-11T03:12:00.000Z | 2022-03-25T06:32:58.000Z | #ifndef POAC_TESTS_SUPPORT_MACROS_HPP
#define POAC_TESTS_SUPPORT_MACROS_HPP
#include <boost/test/tools/old/interface.hpp>
// In macros below following argument abbreviations are used:
// M - message
// S - statement
// E - exception
#define BOOST_CHECK_THROW_MSG( S, E, M ) \
do { ... | 37.619048 | 61 | 0.443038 | ken-matsui |
7f3e47e6e7353f6e91167f8483fe1c4fcfb01421 | 467 | cpp | C++ | INFO6044/BasicClasses/BasicClasses/cSuperBoss.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | 2 | 2021-09-10T17:43:58.000Z | 2021-09-14T21:52:47.000Z | INFO6044/BasicClasses/BasicClasses/cSuperBoss.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | null | null | null | INFO6044/BasicClasses/BasicClasses/cSuperBoss.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | 1 | 2021-09-14T18:07:06.000Z | 2021-09-14T18:07:06.000Z | #include "cSuperBoss.h"
#include <iostream>
cSuperBoss::cSuperBoss()
{
std::cout << "cSuperBoss::cSuperBoss() is created" << std::endl;
}
cSuperBoss::~cSuperBoss()
{
std::cout << "cSuperBoss::~cSuperBoss() is destroyed" << std::endl;
}
void cSuperBoss::Attack(void)
{
std::cout << "cSuperBoss::Attack() SUPER sma... | 18.68 | 74 | 0.646681 | LordMichaelmort |
7f3fc06db109cf4f808713d15cb4f553d0b56c19 | 12,466 | cc | C++ | test/simulate.cc | davedoesdev/node-lora-comms | 29553bcba0852dcb41d517e603cb0bdc14d527ae | [
"MIT"
] | 4 | 2018-12-04T09:32:06.000Z | 2021-06-06T23:42:22.000Z | test/simulate.cc | davedoesdev/node-lora-comms | 29553bcba0852dcb41d517e603cb0bdc14d527ae | [
"MIT"
] | 10 | 2020-08-26T22:15:22.000Z | 2021-11-07T15:16:36.000Z | test/simulate.cc | davedoesdev/node-lora-comms | 29553bcba0852dcb41d517e603cb0bdc14d527ae | [
"MIT"
] | null | null | null | #include <string.h>
#include <mutex>
#include <condition_variable>
#include <atomic>
#include <queue>
#include <chrono>
#include <lora_comms_int.h>
const size_t NB_PKT_MAX = 8;
const size_t STATUS_SIZE = 200;
const size_t TX_BUFF_SIZE = ((540 * NB_PKT_MAX) + 30 + STATUS_SIZE);
const size_t RX_BUFF_SIZE = 1000;
const ... | 25.183838 | 80 | 0.575967 | davedoesdev |
7f41ed9902596a344bca8e55d27052e40a9fd1dc | 3,872 | hh | C++ | AbstractPhysPtr64.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | AbstractPhysPtr64.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | AbstractPhysPtr64.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
template<typename CFG, typename T>
class AbstractPhysPtr64 {
public:
typedef T valuetype;
AbstractPhysPtr64() : ptr(0) {}
explicit AbstractPhysPtr64(uint64_t ptr) : ptr(ptr) {}
static bool isValidPhysAddress(uintptr_t ptr)
{
return (ptr >= CFG::physBase()) && (ptr < CFG::... | 32.537815 | 113 | 0.68311 | cndolo |
7f463e0581e3818d3c6338212aa1b0df8074708d | 1,430 | cpp | C++ | Volume013/1347 - Tour/1347.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume013/1347 - Tour/1347.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume013/1347 - Tour/1347.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | // Author: Stancioiu Nicu Razvan
// Problem: http://uva.onlinejudge.org/external/13/1347.html
#include <bits/stdc++.h>
using namespace std;
double a,b;
int n;
typedef struct Point{
double x;
double y;
}Point;
vector<Point> points;
double CalculateDistance(Point a, Point b)
{
return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b... | 22.698413 | 87 | 0.565035 | rstancioiu |
7f48f68a1f33e5bc67815a75b2fd971eee77357a | 663 | cpp | C++ | aula-02/funcao-pt01-ex02-menu.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | 1 | 2022-03-15T13:42:50.000Z | 2022-03-15T13:42:50.000Z | aula-02/funcao-pt01-ex02-menu.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | null | null | null | aula-02/funcao-pt01-ex02-menu.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void menu() {
cout << "\nMenu:\n";
cout << "\n1-Pilha";
cout << "\n2-Fila";
cout << "\n3-Lista";
cout << "\n4-Arvore";
cout << "\n5-Grafo";
cout << "\n6-Sair\n";
cout << "\nOpcao: \n";
}
int main() {
int op;
cout << "Escolha a opção desejada.\n";
menu();
cin >> ... | 14.106383 | 40 | 0.544495 | adolfobcruz |
7f50bbce7766a86560b045f21ef354351a4959c4 | 10,389 | cpp | C++ | src/Parser.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | 2 | 2020-11-30T20:29:29.000Z | 2020-12-11T18:04:47.000Z | src/Parser.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | null | null | null | src/Parser.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | null | null | null | #include "include/Parser.hpp"
namespace prs{
Parser::Parser(std::string &&buffer){
lex = lxr::Lexer(std::move(buffer));
token = lex.get_next_token();
}
void Parser::eat(int token_id){
if(token.id == token_id){
token = lex.get_next_token();
}else error(token_id);
}
void Parser::error(int ... | 26.706941 | 76 | 0.515545 | Igor-Krzywda |
7f525512c0b586b07155173f2137c08792ffd0eb | 3,302 | hpp | C++ | enhance/box3d.hpp | simonraschke/enhance | c1925e57ad7387f94ae8c59abaf207c2349316aa | [
"Apache-2.0"
] | null | null | null | enhance/box3d.hpp | simonraschke/enhance | c1925e57ad7387f94ae8c59abaf207c2349316aa | [
"Apache-2.0"
] | null | null | null | enhance/box3d.hpp | simonraschke/enhance | c1925e57ad7387f94ae8c59abaf207c2349316aa | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Simon Raschke
*
* 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 l... | 27.289256 | 108 | 0.592974 | simonraschke |
7f52a0f3e6b8ca0903fdc8a4d9e1e337cebc3eb2 | 150 | cpp | C++ | AtCoder/abc096/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc096/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc096/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a, b; cin >> a >> b;
if (b < a) printf("%d\n", a - 1);
else printf("%d\n", a);
} | 21.428571 | 37 | 0.506667 | H-Tatsuhiro |
7f53aa8541b4dcfc0e2bac1903eb85a5f68fd391 | 1,345 | cpp | C++ | tests/src/Light/Directional.cpp | DorianBDev/Raytracing | 53268ebf621d09773826b2e6948b8e4000b9ef7c | [
"MIT"
] | 6 | 2021-02-18T16:43:20.000Z | 2022-03-11T15:14:09.000Z | tests/src/Light/Directional.cpp | SMBDFather/Raytracing | 53268ebf621d09773826b2e6948b8e4000b9ef7c | [
"MIT"
] | null | null | null | tests/src/Light/Directional.cpp | SMBDFather/Raytracing | 53268ebf621d09773826b2e6948b8e4000b9ef7c | [
"MIT"
] | null | null | null | #include <Light/Directional.h>
#include <doctest.h>
TEST_CASE("Testing directional light")
{
Vector3 originA({{0.5, 0, 0}});
Vector3 originB({{0, 0.5, 0}});
Vector3 direction({{0.75, 0.75, 1}});
Directional directional({10, Colors::white(), originA, originB, direction});
Vector3 a1({{1, 1, 1}});
... | 33.625 | 80 | 0.619331 | DorianBDev |
7f56750d15231bdd12aa052c603758f8d25eca0e | 3,134 | cc | C++ | lib/lljvm-native/main.cc | maropu/lljvm-translator | 322fbe24a27976948c8e8081a9552152dda58b4b | [
"Apache-2.0"
] | 70 | 2017-12-12T10:54:00.000Z | 2022-03-22T07:45:19.000Z | lib/lljvm-native/main.cc | maropu/lljvm-as | 322fbe24a27976948c8e8081a9552152dda58b4b | [
"Apache-2.0"
] | 14 | 2018-02-28T01:29:46.000Z | 2019-12-10T01:42:22.000Z | lib/lljvm-native/main.cc | maropu/lljvm-as | 322fbe24a27976948c8e8081a9552152dda58b4b | [
"Apache-2.0"
] | 4 | 2019-07-21T07:58:25.000Z | 2021-02-01T09:46:59.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 ... | 36.44186 | 101 | 0.664646 | maropu |
7f571f14b07239de04b8006f4df3721a56a32ee7 | 720 | cc | C++ | robocup_utils/src/createAgent.cc | osrf/robocup_3d_simulation | 749bbf5f2aa5d39e896bacec1b70c94bd6fad7a1 | [
"BSD-3-Clause"
] | 17 | 2015-05-31T20:56:55.000Z | 2022-02-16T21:34:32.000Z | robocup_utils/src/createAgent.cc | costashatz/robocup_3d_simulation | 749bbf5f2aa5d39e896bacec1b70c94bd6fad7a1 | [
"BSD-3-Clause"
] | 1 | 2017-02-08T01:37:50.000Z | 2017-03-07T00:33:01.000Z | robocup_utils/src/createAgent.cc | costashatz/robocup_3d_simulation | 749bbf5f2aa5d39e896bacec1b70c94bd6fad7a1 | [
"BSD-3-Clause"
] | 12 | 2015-02-26T18:39:14.000Z | 2021-01-18T23:14:07.000Z | #include "ros/ros.h"
#include "robocup_msgs/InitAgent.h"
#include <cstdlib>
int main(int argc, char **argv)
{
ros::init(argc, argv, "robocup_client");
if (argc != 4)
{
ROS_INFO("usage: createAgent <path> <team_name> <player_number>");
return 1;
}
ros::NodeHandle n;
ros::ServiceClient client =
... | 21.818182 | 75 | 0.6625 | osrf |
7f5ba6ce9af07b4782351f6b36a14a0dca0ee42d | 440 | hpp | C++ | include/pastel/particle/get.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | null | null | null | include/pastel/particle/get.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | 24 | 2017-12-23T07:39:58.000Z | 2019-09-20T10:16:37.000Z | include/pastel/particle/get.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | null | null | null | #ifndef PASTEL_PARTICLE_GET_HPP
# define PASTEL_PARTICLE_GET_HPP
# include <utility>
namespace pastel
{
namespace particle
{
template <typename Tag, typename Particle>
inline auto get(Particle&& particle) -> decltype(std::forward<Particle>(particle).template get<Tag>())
{ return std::forward<Particle... | 22 | 106 | 0.731818 | naoki-yoshioka |
7f5ccc7f7f699a78715ee13e2529303431ec1c1c | 5,562 | cpp | C++ | src_lib/runtime_helper.cpp | ShoYamanishi/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | 15 | 2019-08-30T15:47:28.000Z | 2022-03-18T23:06:37.000Z | src_lib/runtime_helper.cpp | 0x4D3342/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | null | null | null | src_lib/runtime_helper.cpp | 0x4D3342/SDFont | 07dfa7c08ed9074ea87f98d2a3cc882405b09f1b | [
"MIT"
] | 6 | 2019-03-31T17:15:45.000Z | 2022-01-12T14:58:48.000Z | #include <string>
#include "runtime_helper.hpp"
namespace SDFont {
const int RuntimeHelper::NUM_POINTS_PER_GLYPH = 4;
const int RuntimeHelper::NUM_FLOATS_PER_POINT = 8;
const int RuntimeHelper::NUM_FLOATS_PER_GLYPH = 4 * 8;
const int RuntimeHelper::NUM_INDICES_PER_GLYPH = 6;
RuntimeHelper::RuntimeHelper(): mMarg... | 23.078838 | 70 | 0.50863 | ShoYamanishi |
7f5f4b0255bd54ec0c4f417cbec189a40886cc9e | 653 | cpp | C++ | Problemset/reverse-words-in-a-string-iii/reverse-words-in-a-string-iii.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2020-10-06T01:06:45.000Z | 2020-10-06T01:06:45.000Z | Problemset/reverse-words-in-a-string-iii/reverse-words-in-a-string-iii.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | null | null | null | Problemset/reverse-words-in-a-string-iii/reverse-words-in-a-string-iii.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2021-11-17T13:52:51.000Z | 2021-11-17T13:52:51.000Z |
// @Title: 反转字符串中的单词 III (Reverse Words in a String III)
// @Author: Singularity0909
// @Date: 2020-08-30 14:31:28
// @Runtime: 24 ms
// @Memory: 9.4 MB
class Solution {
public:
string reverseWords(string s) {
vector<int> space({ -1 });
int len = (int)s.length();
for (int i = 0; i < len; i... | 25.115385 | 58 | 0.464012 | Singularity0909 |
7f5fcee883b542bdebd1ae5c4f7ce5b94a8aa2bf | 4,323 | cxx | C++ | Testing/Code/BasicFilters/itkResampleImageTest2.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | 1 | 2018-04-15T13:32:43.000Z | 2018-04-15T13:32:43.000Z | Testing/Code/BasicFilters/itkResampleImageTest2.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/BasicFilters/itkResampleImageTest2.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkResampleImageTest2.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.... | 30.443662 | 88 | 0.669211 | kiranhs |
7f61483288f25da7979fc5136cd6999cba7286c8 | 10,903 | hpp | C++ | Support/Modules/GSRoot/OptionalOnHeap.hpp | graphisoft-python/TextEngine | 20c2ff53877b20fdfe2cd51ce7abdab1ff676a70 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/GSRoot/OptionalOnHeap.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/GSRoot/OptionalOnHeap.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | 1 | 2020-09-26T03:17:22.000Z | 2020-09-26T03:17:22.000Z | // *********************************************************************************************************************
// Description: The class template GS::OptionalOnHeap manages an optional contained value, i.e. a value that may or
// may not be present. The value is stored in heap memory, thus its type can b... | 21.547431 | 120 | 0.663854 | graphisoft-python |
7f6354a5298cb094bb2552102e4b3eca191ccb3c | 335 | cpp | C++ | game-source-code/EndGame.cpp | RC-7/Centepede | 49efdda84d169177165e5545dd42fcfec54880d9 | [
"Apache-2.0"
] | null | null | null | game-source-code/EndGame.cpp | RC-7/Centepede | 49efdda84d169177165e5545dd42fcfec54880d9 | [
"Apache-2.0"
] | null | null | null | game-source-code/EndGame.cpp | RC-7/Centepede | 49efdda84d169177165e5545dd42fcfec54880d9 | [
"Apache-2.0"
] | null | null | null | #include "EndGame.h"
EndGame::EndGame(int width, int height) : _width(width), _height(height) {
}
std::string EndGame::getFont() {
return _fontFile;
}
std::string EndGame::getText() {
return _text;
}
void EndGame::chooseText(bool win) {
if(win) {
_text = "You Win";
}
else {
_text = "Yo... | 15.227273 | 75 | 0.602985 | RC-7 |
7f64db1d46380ce8a1715f29d3dad63ec0e800f7 | 3,168 | hpp | C++ | include/reiji/unique_shared_lib.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | null | null | null | include/reiji/unique_shared_lib.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | 4 | 2020-08-09T20:33:04.000Z | 2021-02-07T04:02:39.000Z | include/reiji/unique_shared_lib.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | null | null | null | // Copyright Mițca Dumitru 2019 - present
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <cstddef> // std::nullptr_t
#include <cstdint> // std::uint64_t
#include <filesystem>
#include <s... | 29.607477 | 78 | 0.684343 | RealKC |
7f68de8143d4104eb11a8fd26cf8f27b0cf0bd44 | 339 | hpp | C++ | lib/include/windows_exception.hpp | CppPhil/shared_memory | c73a3f852d97ad5a4278bdbf31998772a30a4b77 | [
"Unlicense"
] | null | null | null | lib/include/windows_exception.hpp | CppPhil/shared_memory | c73a3f852d97ad5a4278bdbf31998772a30a4b77 | [
"Unlicense"
] | null | null | null | lib/include/windows_exception.hpp | CppPhil/shared_memory | c73a3f852d97ad5a4278bdbf31998772a30a4b77 | [
"Unlicense"
] | null | null | null | #pragma once
#include <stdexcept>
#include <string>
namespace sm {
class WindowsException : public std::runtime_error {
public:
explicit WindowsException(std::wstring errorMessage);
const wchar_t* wideWhat() const noexcept;
const char* what() const noexcept override;
private:
std::wstring m_errorMessage;
};... | 18.833333 | 55 | 0.749263 | CppPhil |
7f6c711ccee4c7ca0a39c38f9f07aa28852e190b | 2,679 | cpp | C++ | targets/libraries/TLC5952/TLC5952.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 20 | 2017-10-12T10:49:10.000Z | 2022-03-16T03:21:46.000Z | targets/libraries/TLC5952/TLC5952.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 2 | 2018-06-22T16:00:02.000Z | 2019-09-01T13:32:27.000Z | targets/libraries/TLC5952/TLC5952.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 9 | 2017-08-13T12:15:32.000Z | 2021-11-21T07:57:08.000Z | #include <TLC5952.h>
// Konstruktor:
// Pin-Belegung + Strom pro LED
TLC5952::TLC5952(PinName clk, PinName data, PinName latch, PinName blank, uint8_t strom = 5) {
int32_t registerCount = 0x25;
clkout = new DigitalOut(clk);
dataout = new DigitalOut(data);
latchout = new DigitalOut(latch);
blankout = new D... | 17.741722 | 95 | 0.610676 | sicrisembay |
7f6d0c4733962a9fc6715bc8de6c5a0dd6f48f75 | 601 | cpp | C++ | src/types/Int16.cpp | shumway/tdmsreader | 4262f4fba4f90fc903b83426e5fa3a2ebff26cb0 | [
"MIT"
] | 7 | 2018-09-28T23:54:04.000Z | 2021-03-14T14:53:55.000Z | src/types/Int16.cpp | shumway/tdmsreader | 4262f4fba4f90fc903b83426e5fa3a2ebff26cb0 | [
"MIT"
] | null | null | null | src/types/Int16.cpp | shumway/tdmsreader | 4262f4fba4f90fc903b83426e5fa3a2ebff26cb0 | [
"MIT"
] | 10 | 2015-04-01T09:18:50.000Z | 2022-03-02T20:15:47.000Z | #include "types/Int16.h"
#include "types/Int16Value.h"
#include "types/Int16Array.h"
DataValue* Int16::readValue(std::ifstream &infile) const {
short data;
infile.read((char*)&data, 2);
return new Int16Value(this,data);
}
DataArray* Int16::readArray(std::ifstream &infile, unsigned int size,
unsigned int nby... | 27.318182 | 74 | 0.710483 | shumway |
7f6ddb9dd54ad5c3411be48bb33984ee5e932f8a | 5,103 | cpp | C++ | RubeusCore/Source/GraphicComponents/window_component.cpp | Rodrirokr/Rubeus | 12623b04db959b428b9eb791d3943b11d74c0532 | [
"MIT"
] | 179 | 2018-12-22T14:02:02.000Z | 2022-01-29T18:26:57.000Z | RubeusCore/Source/GraphicComponents/window_component.cpp | rahil627/Rubeus | dd057d23c94a0406126c32d62889ac83cba47570 | [
"MIT"
] | 56 | 2019-01-07T11:55:16.000Z | 2020-12-10T21:32:18.000Z | RubeusCore/Source/GraphicComponents/window_component.cpp | rahil627/Rubeus | dd057d23c94a0406126c32d62889ac83cba47570 | [
"MIT"
] | 20 | 2018-12-23T11:19:49.000Z | 2022-03-11T06:18:10.000Z | /**
* @file Source/window_component.cpp.
*
* @brief Implements the RWindowComponent class
*/
#include <window_component.h>
#include <any>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
namespace Rubeus
{
namespace GraphicComponents
{
int RWindowComponent::MouseX;
int RWindowComponent::Y;
void getGLFWErro... | 24.771845 | 150 | 0.706643 | Rodrirokr |
7f6edea35d1aef78975e0439ba29531b9dfdda25 | 532 | hpp | C++ | libs/Counter.hpp | longlt3/utils | 08c446db77ff5baacac2a5203b5ec4a068c36c8d | [
"MIT"
] | null | null | null | libs/Counter.hpp | longlt3/utils | 08c446db77ff5baacac2a5203b5ec4a068c36c8d | [
"MIT"
] | null | null | null | libs/Counter.hpp | longlt3/utils | 08c446db77ff5baacac2a5203b5ec4a068c36c8d | [
"MIT"
] | null | null | null | #ifndef COUNTER_HPP
#define COUNTER_HPP
#include <string>
#include <chrono>
#include <thread>
#include <unordered_map>
#include "log.hpp"
bool canLog(int log_type);
struct Counter
{
public:
// Counter();
Counter(std::string const &a_str, LogType aLogType);
virtual ~Counter();
priva... | 16.625 | 62 | 0.661654 | longlt3 |
7f70b78679215faf0dfde65767e99ef6c5107454 | 1,569 | cpp | C++ | MonteCarloTreeSeach.cpp | morsisko/MCTS-TicTacToe | cc0d2f7e7eb6a7e02e488fcd6df6b7e19b9b3fcf | [
"MIT"
] | 2 | 2020-05-15T03:47:01.000Z | 2021-05-11T19:31:19.000Z | MonteCarloTreeSeach.cpp | morsisko/MCTS-TicTacToe | cc0d2f7e7eb6a7e02e488fcd6df6b7e19b9b3fcf | [
"MIT"
] | null | null | null | MonteCarloTreeSeach.cpp | morsisko/MCTS-TicTacToe | cc0d2f7e7eb6a7e02e488fcd6df6b7e19b9b3fcf | [
"MIT"
] | 1 | 2020-09-28T02:46:38.000Z | 2020-09-28T02:46:38.000Z | #include "MonteCarloTreeSeach.h"
Node * MonteCarloTreeSeach::selection()
{
Node* currentNode = root.get();
while (currentNode->isFullyExpanded() && !currentNode->isLeaf())
currentNode = currentNode->getBestChildren();
return currentNode;
}
Node * MonteCarloTreeSeach::expansion(Node* node)
{
return node->exp... | 21.791667 | 119 | 0.708094 | morsisko |
7f70ef142df3476a2eaabfa0990d139d9d954f86 | 1,107 | cpp | C++ | 00049_group-anagrams/191225-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00049_group-anagrams/191225-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00049_group-anagrams/191225-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/group-anagrams/
#include <cstdio>
#include <vector>
#include <string>
#include <unordered_map>
#include <algorithm>
using namespace std;
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<vector<string>> res;
unordered_map<string, int> ... | 20.886792 | 70 | 0.563686 | yanlinlin82 |
7f72ad45fa26c3aadac07a91a40b8a1a82270b48 | 12,279 | cc | C++ | core/src/BasicSensors.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | core/src/BasicSensors.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | core/src/BasicSensors.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | #include <algorithm>
#include "pinocchio/multibody/model.hpp"
#include "pinocchio/algorithm/frames.hpp"
#include "jiminy/core/Model.h"
#include "jiminy/core/BasicMotors.h"
#include "jiminy/core/BasicSensors.h"
#include "jiminy/core/Utilities.h"
namespace jiminy
{
// ===================== ImuSensor =============... | 31.484615 | 153 | 0.573499 | matthieuvigne |
7f73eefdbb2d2fa6338744e8e4361eeba30320b8 | 2,307 | hpp | C++ | include/sysmel/Environment/SSACodeRegion.hpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | 2 | 2021-10-30T15:31:43.000Z | 2021-11-08T09:45:15.000Z | include/sysmel/Environment/SSACodeRegion.hpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | include/sysmel/Environment/SSACodeRegion.hpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | #ifndef SYSMEL_ENVIRONMENT_SSA_CODE_REGION_HPP
#define SYSMEL_ENVIRONMENT_SSA_CODE_REGION_HPP
#pragma once
#include "SSAValue.hpp"
namespace Sysmel
{
namespace Environment
{
/**
* I am the base interface for any object is specifically defined in the compiler domain.
*/
class SYSMEL_COMPILER_LIB_EXPORT SSACodeRegio... | 33.434783 | 90 | 0.791071 | ronsaldo |
7f76969d2f91be2a0a5eb283c09c725802e39843 | 314 | cpp | C++ | code/GAME.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | code/GAME.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | code/GAME.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
int f[2000];
for(int i=0;i<n;i++)
cin>>f[i];
sort(f,f+n);
if(n&1)
cout<<f[n/2]<<endl;
else
cout<<f[n/2-1]<<endl;
}
return 0;
}
| 15.7 | 29 | 0.429936 | PIPIKAI |
7f78e2bd8fa7ee69598b61e5dacc8b15d06ff45a | 1,529 | hpp | C++ | src/channel/IpcChannel.hpp | Chopper455/Stalink | 4ed94b35b9eafd1358e9f42fc8c0f8a961878a5d | [
"MIT"
] | null | null | null | src/channel/IpcChannel.hpp | Chopper455/Stalink | 4ed94b35b9eafd1358e9f42fc8c0f8a961878a5d | [
"MIT"
] | null | null | null | src/channel/IpcChannel.hpp | Chopper455/Stalink | 4ed94b35b9eafd1358e9f42fc8c0f8a961878a5d | [
"MIT"
] | null | null | null | #ifndef SRC_NEW_IPCCHANNEL_HPP_
#define SRC_NEW_IPCCHANNEL_HPP_
#include "Messages.hpp"
#include <string>
namespace stamask {
/**
* Interface of class to interchange messages.
* Connection URL is passed in subclass' constructor.
*/
class IpcChannel {
public:
/**
* Empty destructor.
*... | 18.876543 | 72 | 0.653368 | Chopper455 |
7f7a6ff8b5870ff280acbbe488de39c1d26beb4a | 5,184 | cpp | C++ | tech/UI/UIComposer.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/UI/UIComposer.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/UI/UIComposer.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (c) 2015 Teardrop Games
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 wit... | 30.139535 | 79 | 0.51466 | nbtdev |
7f80d29eeacb5ac4a287f00143d09a2777445f72 | 1,305 | hpp | C++ | Sources/Core/Resources/Loaders/MapLoader.hpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 70 | 2019-02-02T15:43:38.000Z | 2022-03-09T13:58:27.000Z | Sources/Core/Resources/Loaders/MapLoader.hpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 19 | 2019-03-27T05:57:30.000Z | 2019-07-07T16:07:05.000Z | Sources/Core/Resources/Loaders/MapLoader.hpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 32 | 2019-03-07T12:22:40.000Z | 2022-03-18T01:12:56.000Z | /*
* Copyright 2018 Vladimir Balun
*
* 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 ... | 27.765957 | 101 | 0.685057 | VladimirBalun |
7f89f09f8c62478230d349036956dfba1de223bd | 3,363 | cpp | C++ | Source/ModuleImGui.cpp | BooLAW/Pau-Bonet-3D-Game-Engine | 4ddf5ef5b28194a466770ff9492aa6181c202068 | [
"MIT"
] | null | null | null | Source/ModuleImGui.cpp | BooLAW/Pau-Bonet-3D-Game-Engine | 4ddf5ef5b28194a466770ff9492aa6181c202068 | [
"MIT"
] | null | null | null | Source/ModuleImGui.cpp | BooLAW/Pau-Bonet-3D-Game-Engine | 4ddf5ef5b28194a466770ff9492aa6181c202068 | [
"MIT"
] | null | null | null | #include "ModuleImGui.h"
#include "Application.h"
ModuleImGui::ModuleImGui(Application * parent, bool start_enabled) : Module(parent,start_enabled)
{
}
ModuleImGui::~ModuleImGui()
{
}
bool ModuleImGui::Init()
{
ImGui_ImplSdlGL2_Init(App->window->window);
return true;
}
update_status ModuleImGui::PreUpdate(float dt)... | 21.150943 | 97 | 0.676182 | BooLAW |
7f8b367d0144b42339dbd6c1e07362172302e74d | 2,899 | cpp | C++ | src/tests/test_mix/source/test_TAOCP_book_mul.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2018-01-25T01:14:37.000Z | 2021-08-31T15:22:21.000Z | src/tests/test_mix/source/test_TAOCP_book_mul.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | null | null | null | src/tests/test_mix/source/test_TAOCP_book_mul.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2020-03-07T06:35:23.000Z | 2020-12-04T04:15:35.000Z | #include "precompiled.h"
using namespace mix;
namespace {
Word MakeRandomWord(std::random_device& rd)
{
std::uniform_int_distribution<std::size_t> dist{0, Byte::k_max_value};
Word w;
for (std::size_t i = 1; i <= 5; ++i)
{
w.set_byte(i, dist(rd));
}
w.set_sign((dist(rd) < (Byte::k_max_value / 2)... | 20.856115 | 85 | 0.648844 | grishavanika |
7f9105992bf99805489bd2711496032da41a7fe8 | 17,085 | cpp | C++ | src/driver/driver.cpp | TrueFinch/KappaDBMS | f4f9e91c52ae33f929e6db458a713a98a9958da3 | [
"Apache-2.0"
] | null | null | null | src/driver/driver.cpp | TrueFinch/KappaDBMS | f4f9e91c52ae33f929e6db458a713a98a9958da3 | [
"Apache-2.0"
] | null | null | null | src/driver/driver.cpp | TrueFinch/KappaDBMS | f4f9e91c52ae33f929e6db458a713a98a9958da3 | [
"Apache-2.0"
] | null | null | null | #include "driver.hpp"
// TODO: explore for memory leaks (pointers)
namespace sql
{
thread_local std::unordered_map<std::string, Driver::CapturedData> Driver::capture = {};
cmd::LiteralType LiteralTypeFromStr(const std::string str)
{
if (str == "INTEGER")
return cmd::LiteralType::INTEGER;
else if (str == "DO... | 35.154321 | 126 | 0.622827 | TrueFinch |
7f92ca77e8d0fe52cf40b0083751db6ddfa39f19 | 12,916 | cpp | C++ | src/fuml/src_gen/fUML/Semantics/SimpleClassifiers/impl/EnumerationValueImpl.cpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/fuml/src_gen/fUML/Semantics/SimpleClassifiers/impl/EnumerationValueImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/fuml/src_gen/fUML/Semantics/SimpleClassifiers/impl/EnumerationValueImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | #include "fUML/Semantics/SimpleClassifiers/impl/EnumerationValueImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#in... | 31.273608 | 245 | 0.707572 | MDE4CPP |
7fa28fa21683248dcd05e648d81cefea6695d939 | 1,319 | cpp | C++ | icpc/2019-11-10/D.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2019-11-10/D.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2019-11-10/D.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #include <cassert>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef unsigned long long u64;
int tb[100][100][100];
u64 solve(u64 n, u64 s, u64 K) {
//fprintf(stderr, "n = %llu, s = %llu\n", n, s);
if (n <= 2 * K) return tb[n][s][K];
assert(0 <= s && s < n);
u64... | 23.981818 | 64 | 0.387415 | Riteme |
7fa36cc69e484a584fe26dae00503d759850a325 | 1,688 | hpp | C++ | SDK/ARKSurvivalEvolved_SpaceDolphinLaserUpgrade_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_SpaceDolphinLaserUpgrade_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_SpaceDolphinLaserUpgrade_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SpaceDolphinLaserUpgrade_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------... | 36.695652 | 173 | 0.594194 | 2bite |
7fa5893f7b9b981a540ee9b2114740ba97313250 | 1,939 | cpp | C++ | src/main.cpp | tevoran/haeschen-und-woelfchen | 4d993f9bfbe1c767292ff00cf980830ca8b9c913 | [
"BSD-2-Clause"
] | 2 | 2021-06-11T18:58:42.000Z | 2021-06-11T19:09:30.000Z | src/main.cpp | tevoran/haeschen-und-woelfchen | 4d993f9bfbe1c767292ff00cf980830ca8b9c913 | [
"BSD-2-Clause"
] | null | null | null | src/main.cpp | tevoran/haeschen-und-woelfchen | 4d993f9bfbe1c767292ff00cf980830ca8b9c913 | [
"BSD-2-Clause"
] | null | null | null | #include <huw.hpp>
#include <level/actual_levels.hpp>
#undef main
int main(int argc, char *argv[])
{
//SDL_Color TEXT_COLOR={228,20,228,0};
huw::game game;
huw::sprite background("../assets/DarkGhetto.png", & game, 0, 0, 640, 360, RESX, RESY);
huw::sprite hase("../assets/Haeschen1.png", &game, 0, 0, 32, 32, ... | 24.858974 | 93 | 0.650335 | tevoran |
7fab1244e03bdfca39ea617754dcdf866180c6c0 | 61 | cpp | C++ | tutorials/cplusplus.com#1.0#1/basicsofcpp/constants/strings/source6.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/cplusplus.com#1.0#1/basicsofcpp/constants/strings/source6.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/cplusplus.com#1.0#1/basicsofcpp/constants/strings/source6.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | R"(string with \backslash)"
R"&%$(string with \backslash)&%$" | 30.5 | 33 | 0.655738 | officialrafsan |
7fab53529cd53d2fee571d670a2ca2e68c974025 | 6,030 | cpp | C++ | Sources/Samples/Stealth/Utils.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Samples/Stealth/Utils.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Samples/Stealth/Utils.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
Utils.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "Utils.h"
Image* CreateImage(const String& fileName)
{
Resource* resource;
String path =... | 27.162162 | 99 | 0.697181 | jdelezenne |
7fb1332c42abf769e96f1582b584b85ed20e38b2 | 3,490 | hpp | C++ | src/libs/inputting/Input.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/libs/inputting/Input.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/libs/inputting/Input.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <map>
#include "common/Math.hpp"
#include "windowing/InputtingWindow.hpp"
namespace RR
{
namespace Inputting
{
enum InputKey
{
ikNone,
// keyboard
ikLeft,
ikRight,
ikUp,
ikDown,
ikSpace,... | 23.581081 | 106 | 0.450143 | JKot-Coder |
7fbb34c41f2555d8b0adcea32fbb69856d378f93 | 6,925 | hpp | C++ | source/ashes/renderer/GlRenderer/Enum/GlGetParameter.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/GlRenderer/Enum/GlGetParameter.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/GlRenderer/Enum/GlGetParameter.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#pragma once
#ifdef GL_SUBPIXEL_BITS
#undef GL_SUBPIXEL_BITS
#endif
#ifdef GL_MAX_TEXTURE_SIZE
#undef GL_MAX_TEXTURE_SIZE
#endif
#ifdef GL_MAX_VIEWPORT_DIMS
#undef GL_MAX_VIEWPORT_DIMS
#endif
#ifdef GL_POINT_SIZE_RANGE
#undef GL_POINT_SIZE_RANGE
#endif
... | 38.904494 | 81 | 0.835957 | DragonJoker |
7fbe9d8ac6930b2e58d9c1867de43d180733657c | 4,035 | cc | C++ | Fireworks/Calo/plugins/FWMET3DProxyBuilder.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Fireworks/Calo/plugins/FWMET3DProxyBuilder.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Fireworks/Calo/plugins/FWMET3DProxyBuilder.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // -*- C++ -*-
//
// Package: Fireworks
// Class : FWMET3DProxyBuilder.cc
/*
Description: [one line class summary]
Usage:
<usage>
*/
//
// Original Author:
// Created: Mon Jan 17 10:48:11 2011
//
//
// system include files
// user include files
#include "TMath.h"
#include "TEveArrow.h"
#include "T... | 27.827586 | 114 | 0.619331 | Purva-Chaudhari |
7fc57deeda0bd9e33b25e61c7f3437a013122975 | 1,247 | cc | C++ | sky/tools/sky_snapshot/vm.cc | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | 1 | 2021-06-12T00:47:11.000Z | 2021-06-12T00:47:11.000Z | sky/tools/sky_snapshot/vm.cc | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | null | null | null | sky/tools/sky_snapshot/vm.cc | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "sky/tools/sky_snapshot/vm.h"
#include "base/logging.h"
#include "sky/tools/sky_snapshot/loader.h"
#include "sky/tools/sky_snapshot/logging.h"
... | 31.175 | 78 | 0.684042 | gitFreeByte |
7fc5ed4cca61af64f45af44bf8fa598cbfd575cb | 2,863 | cc | C++ | src/core/field_bits_256_test.cc | puyoai/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 115 | 2015-02-21T15:08:26.000Z | 2022-02-05T01:38:10.000Z | src/core/field_bits_256_test.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 214 | 2015-01-16T04:53:35.000Z | 2019-03-23T11:39:59.000Z | src/core/field_bits_256_test.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 56 | 2015-01-16T05:14:13.000Z | 2020-09-22T07:22:49.000Z | #ifdef __AVX2__
#include <gtest/gtest.h>
#include "core/bit_field.h"
#include "core/field_bits_256.h"
using namespace std;
TEST(FieldBits256Test, ctor1)
{
FieldBits256 bits;
for (int x = 0; x < 8; ++x) {
for (int y = 0; y < 16; ++y) {
EXPECT_FALSE(bits.get(FieldBits256::HighLow::LOW, x, ... | 27.009434 | 86 | 0.660496 | puyoai |
7fc8282036356ac694bf1071f305d72a291f1aba | 23,551 | cc | C++ | app/c++/itango.cc | donaldmunro/TangoCamera | 653ca50f75715284224fefc4dbfc0f563c16255e | [
"MIT"
] | 3 | 2017-11-15T08:59:06.000Z | 2018-01-24T08:11:18.000Z | app/c++/itango.cc | donaldmunro/TangoCamera | 653ca50f75715284224fefc4dbfc0f563c16255e | [
"MIT"
] | 2 | 2017-11-15T10:36:47.000Z | 2018-01-22T11:28:27.000Z | app/c++/itango.cc | donaldmunro/TangoCamera | 653ca50f75715284224fefc4dbfc0f563c16255e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2017 Donald Munro
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, su... | 37.621406 | 131 | 0.626003 | donaldmunro |
7fceba3648250a38f6d77bbbfc9258b07ddeb0fc | 857 | cpp | C++ | dp/knapsack_dp/abc153_e2.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | dp/knapsack_dp/abc153_e2.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | dp/knapsack_dp/abc153_e2.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
// 個数制限なしナップサック 最小化
// in-place
/*
参考リンク
ABC 153 E - Crested Ibis vs Monster
https://atcoder.jp/contests/abc153/tasks/abc153_e
*/
template <class T>
inline bool ... | 16.169811 | 55 | 0.502917 | Takumi1122 |
7fd5a51abd857a03e8223e1243850c419f49d591 | 660 | cpp | C++ | src/TrackerEvents/PauseStartEvent.cpp | kyranet/drakhtar-telemetry | cf659dbb656fcfe55db81d8d402de89bf5d357c1 | [
"MIT"
] | null | null | null | src/TrackerEvents/PauseStartEvent.cpp | kyranet/drakhtar-telemetry | cf659dbb656fcfe55db81d8d402de89bf5d357c1 | [
"MIT"
] | 1 | 2021-04-30T10:45:13.000Z | 2021-04-30T10:45:13.000Z | src/TrackerEvents/PauseStartEvent.cpp | kyranet/drakhtar-telemetry | cf659dbb656fcfe55db81d8d402de89bf5d357c1 | [
"MIT"
] | null | null | null | // Copyright 2021 the Drakhtar authors. All rights reserved. MIT license.
#include "TrackerEvents/PauseStartEvent.h"
#include "Serialization/Json/JsonObject.h"
#include "Serialization/Xml/XmlObject.h"
PauseStartEvent::PauseStartEvent(uint32_t levelNumber)
: TrackerEvent(PAUSE_START), levelNumber_(levelNumber) {}... | 30 | 73 | 0.760606 | kyranet |
7fd8c69942e00ed7fdf0c0d18fb9bef75b4b3aa2 | 2,715 | cpp | C++ | LocationData/Read_Subzone_Map.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | LocationData/Read_Subzone_Map.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | LocationData/Read_Subzone_Map.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Read_Subzone_Map.cpp - Read the Subzone Zone File
//*********************************************************
#include "LocationData.hpp"
//---------------------------------------------------------
// Read_Subzone_Map
//-----------------------------------... | 27.15 | 93 | 0.580479 | kravitz |
7fdbd4a323d0e6ab2961dc6b0b58db0ecd62b862 | 3,693 | cc | C++ | diagnostics/cros_healthd/fetchers/storage/emmc_device_adapter.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | diagnostics/cros_healthd/fetchers/storage/emmc_device_adapter.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | diagnostics/cros_healthd/fetchers/storage/emmc_device_adapter.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 "diagnostics/cros_healthd/fetchers/storage/emmc_device_adapter.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <base/f... | 31.564103 | 80 | 0.72651 | strassek |
7fde30553a71a99b2a58edf124fc3e7e055b43f4 | 4,955 | cpp | C++ | spritesheets.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | null | null | null | spritesheets.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | 1 | 2017-04-05T00:58:21.000Z | 2017-04-05T00:58:21.000Z | spritesheets.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | null | null | null | #include "spritesheets.h"
inline bool exists_test1 (const std::string& name) {
if (FILE *file = fopen(name.c_str(), "r")) {
fclose(file);
return true;
} else {
return false;
}
}
namespace GameEngine {
SpriteSheet::SpriteSheet() {
}
SpriteSheet::SpriteSheet(const char* filena... | 33.47973 | 132 | 0.659738 | block8437 |
8f10bb825249ffd7497052d55f5332a9dd7b3afb | 360 | cpp | C++ | clientplugin/HttpReceiver/Windows/WebBpeLauncherQT/delbutton.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | 1 | 2016-07-12T06:00:37.000Z | 2016-07-12T06:00:37.000Z | clientplugin/HttpReceiver/Windows/WebBpeLauncherQT/delbutton.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | null | null | null | clientplugin/HttpReceiver/Windows/WebBpeLauncherQT/delbutton.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | 2 | 2016-09-06T07:59:09.000Z | 2020-12-12T03:25:24.000Z | #include "delbutton.h"
DelButton::DelButton():
m_iNo(-1)
{
setStyleSheet("border: 1px solid black; background-image: url(:/picture/resource/delete.png);");
setFixedSize(25, 25);
connect(this, SIGNAL(clicked(bool)), this, SLOT(OnClicked(bool)));
}
DelButton::~DelButton()
{
}
void DelButton::OnClicked... | 17.142857 | 100 | 0.675 | shrewdlin |
8f19c4387101d192138c7ca0eaabfb1944c7cefc | 1,886 | cc | C++ | app/rest/www_form_url_encoded.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 193 | 2019-03-18T16:30:43.000Z | 2022-03-30T17:39:32.000Z | app/rest/www_form_url_encoded.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 647 | 2019-03-18T20:50:41.000Z | 2022-03-31T18:32:33.000Z | app/rest/www_form_url_encoded.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 86 | 2019-04-21T09:40:38.000Z | 2022-03-26T20:48:37.000Z | /*
* Copyright 2019 Google LLC
*
* 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.46875 | 77 | 0.655355 | oliwilkinsonio |
8f1eb2f6a6af209fa2364d6527c8076219bef40e | 75,688 | cc | C++ | common/ipc/chat_db_ipc.pb.cc | shockerjue/Gameserver | 78faab152e1cb211d551a794ea4df5738cf99b04 | [
"Unlicense"
] | 31 | 2017-10-18T08:56:43.000Z | 2022-03-22T15:43:10.000Z | common/ipc/chat_db_ipc.pb.cc | shockerjue/Gameserver | 78faab152e1cb211d551a794ea4df5738cf99b04 | [
"Unlicense"
] | null | null | null | common/ipc/chat_db_ipc.pb.cc | shockerjue/Gameserver | 78faab152e1cb211d551a794ea4df5738cf99b04 | [
"Unlicense"
] | 14 | 2018-03-15T10:36:53.000Z | 2021-11-11T19:35:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chat_db_ipc.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "chat_db_ipc.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#inc... | 34.216998 | 120 | 0.69657 | shockerjue |
8f1eecc36cacc4251c0b3004d50c05dd2943a5f6 | 352 | cpp | C++ | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Nuke_Pos.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 8 | 2020-09-29T17:11:15.000Z | 2022-01-29T20:41:33.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Nuke_Pos.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-08T17:43:05.000Z | 2021-03-09T06:35:04.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Nuke_Pos.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-01T04:31:30.000Z | 2021-03-01T04:31:30.000Z | #include "Nuke_Pos.h"
#include <tuple>
#include "Controller.h"
using namespace AISCRIPT;
IMPLEMENT(Nuke_Pos);
bool Nuke_Pos::execute(aithread &thread) const
{
// Params
WORD x, y;
thread.readTuple( std::tie(x,y) );
// @TODO
// Save debug info and return
thread.saveDebug(Text::Red, this->getOpcode(), "... | 16 | 64 | 0.661932 | ratiotile |