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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf65bf0e6b368a9f22c998f5fe83b42b89c5c720 | 310 | hpp | C++ | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | 1 | 2021-06-20T02:26:30.000Z | 2021-06-20T02:26:30.000Z | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | null | null | null | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | 1 | 2021-03-01T14:58:27.000Z | 2021-03-01T14:58:27.000Z | #pragma once
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <systemc>
#include <sc_time_literal.hpp>
#pragma clang diagnostic pop
#pragma GCC diagnostic pop
//vim:syntax=systemc
| 28.181818 | 53 | 0.790323 | dcblack |
cf661d16ad9e0680abcf6f9984f642f6d3e51eb3 | 3,293 | cpp | C++ | test/src/player_test.cpp | nathiss/Fusion | 673245a68f75997494deec202bdffdea6ac78d48 | [
"MIT"
] | null | null | null | test/src/player_test.cpp | nathiss/Fusion | 673245a68f75997494deec202bdffdea6ac78d48 | [
"MIT"
] | null | null | null | test/src/player_test.cpp | nathiss/Fusion | 673245a68f75997494deec202bdffdea6ac78d48 | [
"MIT"
] | null | null | null | /**
* @file player_test.cpp
*
* This module is a part of Fusion Server project.
* It contains the implementation of the unit tests for the Player class.
*
* Copyright 2019 Kamil Rusin
*/
#include <gtest/gtest.h>
#include <fusion_server/ui/player.hpp>
using namespace fusion_server;
TEST(PlayerTest, SerializeI... | 26.991803 | 81 | 0.653811 | nathiss |
cf6cf656205dfebbe7b6c6f7babd454f63dbfde3 | 486 | cpp | C++ | problemsets/Codeforces/C++/A910.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/C++/A910.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/C++/A910.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
int n, d; cin >> n >> d;
int p = 0, l = p+d, next = -1;
string a; cin >> a;
int ret = 0;
for (int i = 1; i < n; i++) {
if (a[i]=='... | 19.44 | 49 | 0.469136 | juarezpaulino |
cf74b621634e4acb8c7e54c991f4ec11a5b7900c | 14,792 | cpp | C++ | main.cpp | Sundragon1993/AI-Game-Pratices | 7549b23f71c3b2b5145388f0d8d4900bdb307a7a | [
"MIT"
] | null | null | null | main.cpp | Sundragon1993/AI-Game-Pratices | 7549b23f71c3b2b5145388f0d8d4900bdb307a7a | [
"MIT"
] | null | null | null | main.cpp | Sundragon1993/AI-Game-Pratices | 7549b23f71c3b2b5145388f0d8d4900bdb307a7a | [
"MIT"
] | null | null | null | #pragma warning (disable:4786)
#include <windows.h>
#include <time.h>
#include "constants.h"
#include "misc/utils.h"
#include "Time/PrecisionTimer.h"
#include "Resource.h"
#include "misc/windowutils.h"
#include "misc/Cgdi.h"
#include "debug/DebugConsole.h"
#include "Raven_UserOptions.h"
#include "Raven_Game.h"
#include... | 26.700361 | 114 | 0.60046 | Sundragon1993 |
cf77bbe20e26934dc3acc307f4b1caa8f6b7cdfd | 391 | cpp | C++ | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 19-3-16.
//
#include <iostream>
class A {
public:
virtual ~A() = default;
};
class B : public A {};
class C : public B {};
int main() {
{
A* pa = new C;
if (B* pb = dynamic_cast<B*>(pa); !pb) {
std::cerr << "error 1\n";
}
}
{
B* pb = new B;
if (C* pc = dy... | 13.964286 | 44 | 0.468031 | KaiserLancelot |
cf78dd0d497dca8c6985d07ecff1df821163605a | 5,508 | cpp | C++ | src/hdp_py.cpp | jstraub/bnp | 11cd28b49e9cf1db96f349181aff57a17672b6a4 | [
"MIT"
] | 12 | 2015-01-13T01:18:39.000Z | 2021-06-16T20:16:54.000Z | src/hdp_py.cpp | jstraub/bnp | 11cd28b49e9cf1db96f349181aff57a17672b6a4 | [
"MIT"
] | 1 | 2015-07-12T12:58:14.000Z | 2015-07-12T12:58:14.000Z | src/hdp_py.cpp | jstraub/bnp | 11cd28b49e9cf1db96f349181aff57a17672b6a4 | [
"MIT"
] | 2 | 2017-07-22T05:37:10.000Z | 2018-08-26T07:11:34.000Z | /* Copyright (c) 2012, Julian Straub <jstraub@csail.mit.edu>
* Licensed under the MIT license. See LICENSE.txt or
* http://www.opensource.org/licenses/mit-license.php */
#include <baseMeasure_py.hpp>
#include <hdp_gibbs_py.hpp>
#include <hdp_var_py.hpp>
#include <hdp_var_base_py.hpp>
// using the hdp which utilizes... | 43.714286 | 94 | 0.69971 | jstraub |
cf79eafceff5d8d46fae59e5aa56764304bdc8ef | 1,307 | hpp | C++ | code/adobe.poly/adobe/implementation/string_pool.hpp | andyprowl/virtual-concepts | ed3a5690c353b6998abcd3368a9b448f1bb2aa19 | [
"Unlicense"
] | 59 | 2015-04-01T12:55:36.000Z | 2021-06-22T02:46:20.000Z | adobe/implementation/string_pool.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 1 | 2015-06-29T14:51:55.000Z | 2015-06-29T16:40:26.000Z | adobe/implementation/string_pool.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 5 | 2016-04-19T09:21:11.000Z | 2021-12-29T09:48:09.000Z | /*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/*************************************************************************************************/
#ifndef ADOBE_STRING_POOL_H... | 26.673469 | 100 | 0.337414 | andyprowl |
cf7af2af2ce72a6cd137dfa8c94cc6880fa00c92 | 4,290 | hpp | C++ | include/ipfixprobe/process.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | include/ipfixprobe/process.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | include/ipfixprobe/process.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | /**
* \file process.hpp
* \brief Generic interface of processing plugin
* \author Vaclav Bartos <bartos@cesnet.cz>
* \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
* modificati... | 30.863309 | 125 | 0.701399 | CESNET |
cf7afec8d91451c3ae14adbeefc7ed64963657d9 | 743 | hh | C++ | src/collider-manager-2d.hh | obs145628/opl | aeb8e70f3dbca8b8564cd829c2327df25e00392e | [
"MIT"
] | null | null | null | src/collider-manager-2d.hh | obs145628/opl | aeb8e70f3dbca8b8564cd829c2327df25e00392e | [
"MIT"
] | null | null | null | src/collider-manager-2d.hh | obs145628/opl | aeb8e70f3dbca8b8564cd829c2327df25e00392e | [
"MIT"
] | null | null | null | /** @file ColliderManager2D ckass definition
*/
#ifndef COLLIDER_MANAGER_2D_HH_
# define COLLIDER_MANAGER_2D_HH_
# include <cstddef>
# include <map>
# include "object-2d.hh"
# include "collider-2d.hh"
namespace opl
{
class ColliderManager2D
{
public:
static ColliderManager2D*
instance ();
bool
are_col... | 14.86 | 59 | 0.718708 | obs145628 |
cf8d4a21fc6e4946e1b77ff96f8b80daa1ee0b32 | 164 | hpp | C++ | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | 4 | 2021-02-02T19:55:23.000Z | 2021-03-26T22:54:12.000Z | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | 28 | 2021-01-31T01:04:54.000Z | 2021-12-11T13:53:49.000Z | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | null | null | null | #ifndef SEMANTIC_HPP
#define SEMANTIC_HPP
#include "types.hpp"
namespace semantic {
Result<Ok, Errors> analyze(std::shared_ptr<Ast::Program> program);
}
#endif
| 14.909091 | 67 | 0.756098 | amzamora |
cf8e46de8aa704945cb4baf7c5036b98a61190e3 | 5,277 | cxx | C++ | main/sw/source/ui/config/caption.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sw/source/ui/config/caption.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sw/source/ui/config/caption.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... | 29.480447 | 84 | 0.565094 | Grosskopf |
cf90ef7c36bf959177421f9dd048e4f5d2ee1611 | 1,637 | cpp | C++ | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | #include "Selection.h"
Selection::Selection(sf::Vector2f pos) :
m_selected(false)
{
m_outerShape.setRadius(12);
m_innerShape.setRadius(10);
m_innerShape.setFillColor(sf::Color::Blue);
setPosition(pos);
}
void Selection::handleEvents(sf::Event e, const sf::RenderWindow& window, sf::Vector2f displacement)
{
switc... | 22.736111 | 100 | 0.744655 | szebest |
cf984f3074382b3d9970476ba611f764046adf3a | 8,296 | cpp | C++ | Source/Motor2D/j1Player.cpp | Needlesslord/PaintWars_by_BrainDeadStudios | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 2 | 2020-03-06T11:32:40.000Z | 2020-03-20T12:17:30.000Z | Source/Motor2D/j1Player.cpp | Needlesslord/Heathen_Games | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 2 | 2020-03-03T09:56:57.000Z | 2020-05-02T15:50:45.000Z | Source/Motor2D/j1Player.cpp | Needlesslord/Heathen_Games | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 1 | 2020-03-17T18:50:53.000Z | 2020-03-17T18:50:53.000Z | #include "p2Defs.h"
#include "j1App.h"
#include "p2Log.h"
#include "j1Textures.h"
#include "j1Input.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Player.h"
#include "j1SceneManager.h"
#include "j1EntityManager.h"
#include "j1Window.h"
#include "j1UI_manager.h"
#include "Scene.h"
#inclu... | 22.241287 | 187 | 0.639344 | Needlesslord |
cf98dfda2cfd8ff4aba8b083cefe8ea8af931e8d | 2,846 | hpp | C++ | third-party/casadi/casadi/core/global_options.hpp | dbdxnuliba/mit-biomimetics_Cheetah | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 8 | 2020-02-18T09:07:48.000Z | 2021-12-25T05:40:02.000Z | flip-optimization-master/casadi/include/casadi/core/global_options.hpp | WatsonZhouAnda/Cheetah-Software | 05e416fb26f968300826f0deb0953be9afb22bfe | [
"MIT"
] | null | null | null | flip-optimization-master/casadi/include/casadi/core/global_options.hpp | WatsonZhouAnda/Cheetah-Software | 05e416fb26f968300826f0deb0953be9afb22bfe | [
"MIT"
] | 13 | 2019-08-25T12:32:06.000Z | 2022-03-31T02:38:12.000Z | /*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
* K.U. Leuven. All rights reserved.
* Copyright (C) 2011-2014 Greg Horn
*
* CasADi is free software; you ... | 31.977528 | 92 | 0.696416 | dbdxnuliba |
cf9d37798720db9786c9cc62bd9736ada53f15da | 3,671 | cpp | C++ | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 27.192593 | 114 | 0.616998 | jbloit |
cf9e02d74d153181e3e897ebe551f78dd73fe3ea | 2,278 | cpp | C++ | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Plane.h"
#include <iostream>
using namespace std;
Plane::Plane() {
isSet = 0;
}
Plane::Plane(char *c)
{
PlaneName = c;
NumberOfParties = 0;
for (int i = 0; i < 40; i++) {
PartyArray[i].SetPartyName("NULL");
PartyArray[i].SetPartySize(0);
};
isSet = 0;
}
void Plane::SetPartyAt(... | 18.672131 | 87 | 0.644425 | garretfox |
cf9fad672f46c29a27693a166044d7a5eb688cdf | 6,161 | cc | C++ | protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | /***************************************************************************//**
* @file keywork_detection.cc
* @brief Top level application functions
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
******... | 39.748387 | 119 | 0.549586 | PascalGuenther |
cfa01b83595624a414618fe97995471a1d0b71be | 583 | cpp | C++ | AppCUI/src/Controls/UserControl.cpp | rzaharia/AppCUI | 9aa37b154e04d0aa3e69a75798a698f591b0c8ca | [
"MIT"
] | null | null | null | AppCUI/src/Controls/UserControl.cpp | rzaharia/AppCUI | 9aa37b154e04d0aa3e69a75798a698f591b0c8ca | [
"MIT"
] | null | null | null | AppCUI/src/Controls/UserControl.cpp | rzaharia/AppCUI | 9aa37b154e04d0aa3e69a75798a698f591b0c8ca | [
"MIT"
] | null | null | null | #include "ControlContext.hpp"
using namespace AppCUI::Controls;
bool UserControl::Create(Control* parent, const AppCUI::Utils::ConstString& caption, const std::string_view& layout)
{
CONTROL_INIT_CONTEXT(ControlContext);
CHECK(Init(parent, caption, layout, false), false, "Failed to create user control !");
... | 36.4375 | 116 | 0.744425 | rzaharia |
cfa15397b6c7d61a6ac8537e4b9c2cdecbd4826b | 1,360 | hh | C++ | src/ETransform.hh | jjzhang166/CxxLog4j | 3c674f8a7f57deee228c5de6869c9f5852596930 | [
"Apache-2.0"
] | 5 | 2016-08-25T14:26:45.000Z | 2018-11-07T08:30:38.000Z | src/ETransform.hh | jjzhang166/CxxLog4j | 3c674f8a7f57deee228c5de6869c9f5852596930 | [
"Apache-2.0"
] | 1 | 2018-07-06T02:37:10.000Z | 2018-07-11T05:47:47.000Z | src/ETransform.hh | jjzhang166/CxxLog4j | 3c674f8a7f57deee228c5de6869c9f5852596930 | [
"Apache-2.0"
] | 4 | 2017-06-09T01:22:43.000Z | 2019-02-19T07:19:59.000Z | /*
* ETransform.hh
*
* Created on: 2015-8-11
* Author: cxxjava@163.com
*/
#ifndef ETRANSFORM_HH_
#define ETRANSFORM_HH_
#include "Efc.hh"
#include "../inc/ELogger.hh"
namespace efc {
namespace log {
/**
* Utility class for transforming strings.
*/
class ETransform {
public:
/**
* This method takes ... | 24.727273 | 87 | 0.680147 | jjzhang166 |
cfa1a15555f29bc71b3ec1198ffc2ffa006c53f3 | 254 | cpp | C++ | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
const int MOD = 1E9 + 9;
const int INF = 1 << 29;
int main() {
int A;
cin >> A;
cout << A;
} | 18.142857 | 52 | 0.598425 | yokotani92 |
cfa44f9a16a58ec7ed3b6ee8a2744e12ce2704d7 | 1,985 | cpp | C++ | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | /*
** Xin YUAN, 2019, BSD (2)
*/
////////////////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "../WmarkScanner.h"
#include "../base/WmarkDef.h"
////////////////////////////////////////////////////////////////////////////////
////////////////////////... | 22.303371 | 81 | 0.38136 | ZJU-ZSJ |
cfa5723015d33450fb4eb00278ee8b7638607106 | 1,079 | cpp | C++ | C++/Data_Structures/Path_Sum_II.cpp | IUC4801/HactoberFest21 | ad52dee669deba54630584435b77a6ab07dc67b2 | [
"Unlicense"
] | 1 | 2021-10-03T08:02:58.000Z | 2021-10-03T08:02:58.000Z | C++/Data_Structures/Path_Sum_II.cpp | IUC4801/HactoberFest21 | ad52dee669deba54630584435b77a6ab07dc67b2 | [
"Unlicense"
] | 1 | 2021-10-06T04:41:55.000Z | 2021-10-06T04:41:55.000Z | C++/Data_Structures/Path_Sum_II.cpp | IUC4801/HactoberFest21 | ad52dee669deba54630584435b77a6ab07dc67b2 | [
"Unlicense"
] | 1 | 2021-10-08T12:31:04.000Z | 2021-10-08T12:31:04.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 27.666667 | 93 | 0.510658 | IUC4801 |
cfa6269395b8e032be571d81ad55df8fe1d840f4 | 1,902 | cpp | C++ | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2021 Jan Möller
//
// 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, modif... | 35.886792 | 81 | 0.679811 | jan-moeller |
cfa71a4d6fc15a687b05d19ccf96c7684a70116f | 2,593 | cpp | C++ | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | 21.429752 | 100 | 0.712302 | OpenXIP |
cfa7ce00d119a08def66b1f055401db4c1bf0e76 | 19,869 | cc | C++ | chrome/browser/ui/views/tabs/overflow_view_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/views/tabs/overflow_view_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/views/tabs/overflow_view_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/tabs/overflow_view.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/... | 37.773764 | 80 | 0.726156 | chromium |
bbb9f9305db3702a4b26f8b6b4ba73adab3845da | 424 | cpp | C++ | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | //
// Created by MarcasRealAccount on 31. Oct. 2020
//
#include "Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.h"
#include "Engine/Renderer/Shader/Shader.h"
namespace gp1::renderer::apis::vulkan::shader
{
VulkanMaterialData::VulkanMaterialData(renderer::shader::Material* material)
: VulkanRendererData(m... | 26.5 | 77 | 0.754717 | sfulham |
bbbc772b8773e5cae180e4580e552b77666c8a72 | 3,599 | cpp | C++ | src/system/libroot/posix/unistd/lockf.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/system/libroot/posix/unistd/lockf.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/system/libroot/posix/unistd/lockf.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr.
* Distributed under the terms of the MIT License.
*/
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno_private.h>
int
lockf(int fileDescriptor, int function, off_t size)
{
struct flock fileLock;
fileLock.l_start = 0;
fileLock.l_le... | 40.897727 | 77 | 0.701028 | Kirishikesan |
bbbef5de65bc8b029ed136f8309ca4db2a319ecb | 1,879 | cpp | C++ | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.... | 25.053333 | 89 | 0.619478 | Maledictus |
bbc18b7e6cbf92a4660726cc386e7834f0fb3e2d | 1,773 | cpp | C++ | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 7 | 2021-10-20T08:43:46.000Z | 2022-03-26T14:18:19.000Z | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | null | null | null | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 10 | 2021-10-01T13:49:56.000Z | 2022-03-29T10:28:06.000Z | #include <iostream>
#include <string>
class Complex
{
double r_;
double i_;
public:
Complex(double r = 0., double i = 0.) : r_{r}, i_{i}
{
}
double real() const
{
return r_;
}
double imag() const
{
return i_;
}
Complex& operator+=(Complex const& o)
{
r_ += o.r_;
i_ += o.i_;
... | 17.909091 | 79 | 0.585448 | battibass |
bbc1d2621c8dd95ab7076682e99978b9f8e22d8a | 8,626 | cpp | C++ | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2022 Diligent Graphics 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 applica... | 41.07619 | 161 | 0.761651 | SebMenozzi |
bbc21fea637e1879270776e4399ec10b782f2ba7 | 3,861 | hpp | C++ | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | /**
* Copyright (c) 2020 Paul-Louis Ageneau
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This ... | 30.642857 | 105 | 0.690236 | MagicAtom |
bbc512ed68463d935ede3a4f15d7ad35183f3eec | 310 | hxx | C++ | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | 1 | 2015-05-18T00:02:13.000Z | 2015-05-18T00:02:13.000Z | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | null | null | null | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by secondwtq <lovejay-lovemusic@outlook.com> 2015/05/18.
// Copyright (c) 2015 SCU ISDC All rights reserved.
//
// This file is part of ISDCNext.
//
// We have always treaded the borderland.
//
#ifndef IOJXD_COMMON_HXX
#define IOJXD_COMMON_HXX
#include "context.hxx"
#endif //IOJXD_COMMON_HXX
| 19.375 | 67 | 0.735484 | scuisdc |
bbc5e81a9964600eb7019aeadcbff4cb0a8329ec | 1,961 | cpp | C++ | OpenCV/gray_image.cpp | vladiant/color2gray | 372283ae67b0dfb41745108f67cc714efc7b3d7a | [
"MIT"
] | null | null | null | OpenCV/gray_image.cpp | vladiant/color2gray | 372283ae67b0dfb41745108f67cc714efc7b3d7a | [
"MIT"
] | null | null | null | OpenCV/gray_image.cpp | vladiant/color2gray | 372283ae67b0dfb41745108f67cc714efc7b3d7a | [
"MIT"
] | null | null | null | #include "gray_image.hpp"
#include <opencv2/imgcodecs.hpp>
GrayImage::GrayImage(ColorImage &s) : data(s.N), w(s.w), h(s.h), N(s.N) {
for (int i = 0; i < N; i++) data[i] = (s.data)[i].l;
}
void GrayImage::r_solve(const float *d, int r) {
const int iters = 30;
int k, x, y;
for (k = 0; k < iters; k++) {
//... | 25.802632 | 78 | 0.494646 | vladiant |
bbc685778822168fdfc95254155507c30e9efd6e | 6,505 | cpp | C++ | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | 3 | 2018-09-27T17:00:14.000Z | 2018-12-19T13:30:25.000Z | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | #include "ComponentTransform.h"
#include "GameObject.h"
#include "Assimp/include/scene.h"
#include "GameObject.h"
#include "Application.h"
ComponentTransform::ComponentTransform(const aiMatrix4x4 * t, GameObject* par)
{
SetBaseVals();
SetFromMatrix(t);
parent = par;
SetLocalTransform();
}
void ComponentTransform... | 28.656388 | 119 | 0.719139 | MarcFly |
bbd3514f31648310f957b4b1fcb9c0c7b60f944c | 3,199 | hpp | C++ | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | 1 | 2017-10-23T13:22:01.000Z | 2017-10-23T13:22:01.000Z | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | //
// Created by Filippo Vicentini on 20/12/2017.
//
#ifndef SIMULATOR_THREADEDTASKPROCESSOR_HPP
#define SIMULATOR_THREADEDTASKPROCESSOR_HPP
#include "Base/TaskProcessor.hpp"
#include "Libraries/concurrentqueue.h"
#include <chrono>
#include <stdio.h>
#include <queue>
#include <vector>
#include <thread>
class Settin... | 27.577586 | 93 | 0.732416 | PhilipVinc |
bbd738324e4aa104eacdeb3a196245928d193a91 | 624 | cpp | C++ | HackerRank Solutions/C++/STL/Sets-STL.cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 13 | 2021-09-02T07:30:02.000Z | 2022-03-22T19:32:03.000Z | HackerRank Solutions/C++/STL/Sets-STL.cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | null | null | null | HackerRank Solutions/C++/STL/Sets-STL.cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 3 | 2021-08-24T16:06:22.000Z | 2021-09-17T15:39:53.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <set>
#include <algorithm>
using namespace std;
int main() {
set<int> Set;
set<int>::iterator it;
int Q, y, x;
scanf("%d", &Q);
for (int i = 0; i < Q; i++) {
scanf("%d %d", &y, &x);
if (y == 1) {
... | 19.5 | 34 | 0.400641 | UtkarshPathrabe |
bbdd1c2c1435f0fe5ac925a4c85998505813e3aa | 53 | cpp | C++ | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "HttpCookieStorage.h"
| 10.6 | 30 | 0.735849 | a1q123456 |
bbe130758cf8f984e00194113eb3eb9b908ba256 | 7,001 | hpp | C++ | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef CPREPROCESSOR_H
#define CPREPROCESSOR_H
#if !defined(BOOST_WAVE_CUSTOM_DIRECTIVES_HOOKS_INCLUDED)
#define BOOST_WAVE_CUSTOM_DIRECTIVES_HOOKS_INCLUDED
#include <cstdio>
#include <iostream>
#include <ostream>
#include <string>
#include <algorithm>
#include <utility>
#include <unordered_map>
#include <boost/alg... | 35.180905 | 207 | 0.682474 | icebreakersentertainment |
bbe2cb86a39c0e9f769e98353c3d5a8c69a8506b | 920 | cpp | C++ | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | 1 | 2021-04-23T14:53:42.000Z | 2021-04-23T14:53:42.000Z | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | null | null | null | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | null | null | null | #include "pch.h"
#include "Vector4D.h"
namespace lptm {
Vector4D::Vector4D()
{
x = 0.0f;
y = 0.0f;
z = 0.0f;
w = 0.0f;
};
Vector4D::Vector4D(float x, float y, float z, float w)
{
this->x = x;
this->y = y;
this->z = z;
this->w = w;
}
Vector4D& Vector4D::Add(const Vector4D& other)
{
x += oth... | 14.83871 | 70 | 0.596739 | NahuCF |
bbe35a73de57f0577e102744972e21562c62f203 | 6,586 | cpp | C++ | cpp/src/msg_server/FileServConn.cpp | KevinHM/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | 22 | 2015-05-02T11:21:32.000Z | 2022-03-04T09:58:19.000Z | cpp/src/msg_server/FileServConn.cpp | luyongfugx/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | null | null | null | cpp/src/msg_server/FileServConn.cpp | luyongfugx/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | 21 | 2015-01-02T01:21:04.000Z | 2021-05-12T09:52:54.000Z | //
// FileServConn.cpp
// public_TTServer
//
// Created by luoning on 14-8-19.
// Copyright (c) 2014年 luoning. All rights reserved.
//
#include "FileServConn.h"
#include "FileHandler.h"
#include "util.h"
#include "ImUser.h"
#include "AttachData.h"
#include "RouteServConn.h"
#include "MsgConn.h"
static ConnMap_t g_... | 28.387931 | 103 | 0.669602 | KevinHM |
bbeb3552b80935887cbfb333214abf80ac19950b | 21,059 | hpp | C++ | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | // This file is part of PolyMPC, a lightweight C++ template library
// for real-time nonlinear optimization and optimal control.
//
// Copyright (C) 2020 Listov Petr <petr.listov@epfl.ch>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distribute... | 41.373281 | 151 | 0.605632 | alexandreguerradeoliveira |
bbeee5ce3406395fe23c446204cec8e2508686a3 | 2,495 | cc | C++ | chrome/renderer/plugins/pdf_plugin_placeholder.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/renderer/plugins/pdf_plugin_placeholder.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/renderer/plugins/pdf_plugin_placeholder.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/renderer/plugins/pdf_plugin_placeholder.h"
#include "chrome/common/pdf_uma.h"
#include "chrome/common/render_messages.h"
#include "chrom... | 42.288136 | 80 | 0.739479 | zipated |
bbeee88e430aeae5c0b205f0569d88271a17eb23 | 5,730 | cpp | C++ | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | 1 | 2021-10-18T19:43:06.000Z | 2021-10-18T19:43:06.000Z | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | null | null | null | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | 1 | 2020-02-03T22:45:41.000Z | 2020-02-03T22:45:41.000Z | #include "CompositorBase.h"
#include "Session.h"
#include "FrameList.h"
#include "OVR_CAPI.h"
#include "microprofile.h"
#include <vector>
#include <algorithm>
#include <winrt/Windows.Graphics.Holographic.h>
using namespace winrt::Windows::Graphics::Holographic;
MICROPROFILE_DEFINE(WaitToBeginFrame, "Compositor", "W... | 30.478723 | 146 | 0.766492 | LukeRoss00 |
bbf56d131e20fcbaf358a4c5a8f8f0ff091d0bc7 | 1,522 | hpp | C++ | SCLT/Color/CIEColorSpaces/CIEUCS.hpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 95 | 2016-05-05T10:46:49.000Z | 2021-12-20T12:51:41.000Z | SCLT/Color/CIEColorSpaces/CIEUCS.hpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 1 | 2021-12-06T03:21:32.000Z | 2021-12-06T03:21:32.000Z | SCLT/Color/CIEColorSpaces/CIEUCS.hpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 8 | 2017-03-12T03:04:08.000Z | 2022-03-17T01:27:41.000Z | //
// CIE1960UCS.hpp
// Spectral Clara Lux tracer
//
// Created by Fabrizio Duroni on 24/12/15.
// Copyright © 2015 Fabrizio Duroni. All rights reserved.
//
#ifndef CIE1960UCS_hpp
#define CIE1960UCS_hpp
#include "Vector3D.hpp"
struct CIEUCSChromaticities {
/// u coordinate.
float u;
/// v coordi... | 24.15873 | 95 | 0.685283 | chicio |
bbfc733ec98b5bbb144bd301d8aee1e9761dbbfa | 689 | cpp | C++ | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | // ITP2_5_D
#include <algorithm>
#include <iostream>
#include <numeric>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> v(n);
iota(v.begin(), v.end(), 1);
do {
for (int i = 0; i < n; i++) { // cout<<(i?" ":"")<<v[i];
if (i) { /... | 22.225806 | 78 | 0.489115 | felixny |
bbfc9a10011ebe085ef224beb130ea6fdfc7f0f2 | 3,204 | hpp | C++ | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | 1 | 2021-07-21T06:48:19.000Z | 2021-07-21T06:48:19.000Z | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_REGION_HASH_HPP_INCLUDED
#define OVK_CORE_REGION_HASH_HPP_INCLUDED
#include <ovk/core/Array.hpp>
#include <ovk/core/ArrayView.hpp>
#include <ovk/core/Box.hpp>
#include <ovk/core/Field.... | 32.693878 | 98 | 0.762172 | gyzhangqm |
bbfce24d15d965501e8ff85e1b32fe028b4ebc16 | 7,517 | cpp | C++ | bocom/Wiodb.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null | bocom/Wiodb.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | 4 | 2020-09-07T15:54:45.000Z | 2020-09-27T16:47:16.000Z | bocom/Wiodb.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null |
int create_work4(
DB_WORKUNIT& wu,
const char* result_template_filename,
SCHED_CONFIG& config_loc
) {
int retval;
wu.create_time = time(0);
// check for presence of result template.
// we don't need to actually look at it.
//
const char* p = config_loc.project_path(result_template... | 31.190871 | 102 | 0.65731 | tomasbrod |
bbfd1811564296095ed432bef91b5052577a8328 | 52,456 | cpp | C++ | src/llreplace.cpp | landenlabs2/llfile | 83d071412467742fcf9611ee0b10e41b6ea19728 | [
"MIT"
] | 1 | 2017-01-26T13:48:35.000Z | 2017-01-26T13:48:35.000Z | src/llreplace.cpp | landenlabs2/llfile | 83d071412467742fcf9611ee0b10e41b6ea19728 | [
"MIT"
] | null | null | null | src/llreplace.cpp | landenlabs2/llfile | 83d071412467742fcf9611ee0b10e41b6ea19728 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// llreplace - Replace file data or Grep.
//
// Author: Dennis Lang - 2015
// http://landenlabs.com/
//
// This file is part of LLFile project.
//
// ----- License ----
//
// Copyright (c) 2015 Dennis Lang
//
// Permission is hereby granted... | 34.624422 | 145 | 0.487285 | landenlabs2 |
bbfee8b354473cc0810a75cd95d35b2a0f88ad3c | 169 | hpp | C++ | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | #ifndef UPROAR_CONFIG_VERSION_HPP
#define UPROAR_CONFIG_VERSION_HPP
#define UPROAR_VERSION_MAJOR 0
#define UPROAR_VERSION_MINOR 1
#define UPROAR_VERSION_PATCH 0
#endif | 21.125 | 33 | 0.87574 | tiger-chan |
bbffb946d5ad4823637f463fcf7240bff13b2bc7 | 1,736 | cpp | C++ | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T13:44:49.000Z | 2021-01-19T10:39:48.000Z | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | null | null | null | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T16:03:20.000Z | 2020-02-15T09:14:30.000Z | // ResourcePreview.cpp : implementation file
//
#include "stdafx.h"
#include "..\MapEditor.h"
#include "ResourcePreview.h"
#include "Common\Map\Map.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//////////////////////////////////////////////////////////////////////... | 21.170732 | 85 | 0.667051 | vitek-karas |
0101e91b7672bcb40bcd0c23fffae67aab0ac75b | 1,013 | cpp | C++ | Examples/HttpRequest/HttpRequest.cpp | Rprop/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 23 | 2018-04-23T15:46:24.000Z | 2022-01-10T14:03:57.000Z | Examples/HttpRequest/HttpRequest.cpp | boyliang/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 1 | 2017-07-24T05:13:03.000Z | 2017-07-24T08:59:48.000Z | Examples/HttpRequest/HttpRequest.cpp | boyliang/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 13 | 2018-05-11T15:53:12.000Z | 2021-09-29T11:57:16.000Z | /********************************************************************
Created: 2016/07/18 19:15
Filename: HttpRequest.cpp
Author: rrrfff
Url: http://blog.csdn.net/rrrfff
*********************************************************************/
#include <RLib_Import.h>
//----------------------------------------... | 37.518519 | 89 | 0.564659 | Rprop |
0103f8b329e5a819235bf2666b085c39756a107b | 411 | cpp | C++ | enduser/zone_internetgames/src/client/shell/zonecli/debug.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/zone_internetgames/src/client/shell/zonecli/debug.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/zone_internetgames/src/client/shell/zonecli/debug.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "zui.h"
#ifdef _DEBUG
#undef CreatePen
#undef CreateSolidBrush
HPEN MyCreatePen(int fnPenStyle, int nWidth, COLORREF crColor)
{
HPEN hPen = CreatePen(fnPenStyle, nWidth, crColor);
if (!hPen) {
_asm {int 3};
}
return hPen;
}
HBRUSH MyCreateSolidBrush(COLORREF crColor)
{
HBRUSH hBr = C... | 15.222222 | 63 | 0.659367 | npocmaka |
010667525fb6e5965c1a1815abb558c4e033d42a | 574 | hpp | C++ | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | /*
* File: menu.hpp
* --------------------
* @author Matyalatte
* @version 2021/09/14
* - initial commit
*/
#pragma once
#include <GL/glut.h>
#include "2dpoly_to_3d/2dpoly_to_3d.hpp"
#include "2dpoly_to_3d/utils.hpp"
namespace openglHandler {
//functions for popup menu in glut
void menu(int item);
void menu... | 19.133333 | 53 | 0.698606 | matyalatte |
01069effde8f24ee53ea22b955062e516f748cc6 | 551 | hpp | C++ | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #pragma once
#include <libadb/libadb.hpp>
#include <string>
namespace adb::api
{
/**
* @brief Rate Limit Scope
* @details https://discord.com/developers/docs/topics/rate-limits#header-format
*/
enum class RateLimitScope
{
/// per bot or user limit
User,
/// per bot o... | 22.958333 | 84 | 0.627949 | faserg1 |
010bb5f3e0d991ec046b566798542dabef4e5cdf | 5,071 | cpp | C++ | dev/velocities_sidecar/VelocitySideCar.cpp | nyue/SegmentedInterpolativeMotionBlurAlembic | 1f02ff5516b6e114410b5977885133bb4b5bb490 | [
"Apache-2.0"
] | 1 | 2020-12-28T23:33:00.000Z | 2020-12-28T23:33:00.000Z | dev/velocities_sidecar/VelocitySideCar.cpp | nyue/SegmentedInterpolativeMotionBlurAlembic | 1f02ff5516b6e114410b5977885133bb4b5bb490 | [
"Apache-2.0"
] | null | null | null | dev/velocities_sidecar/VelocitySideCar.cpp | nyue/SegmentedInterpolativeMotionBlurAlembic | 1f02ff5516b6e114410b5977885133bb4b5bb490 | [
"Apache-2.0"
] | 1 | 2018-10-10T11:49:02.000Z | 2018-10-10T11:49:02.000Z | #include "VelocitySideCar.h"
#include <boost/tokenizer.hpp>
#include <cryptopp/sha.h>
#include <cryptopp/hex.h>
#include <cryptopp/files.h>
VelocitySideCar::VelocitySideCar()
{
}
VelocitySideCar::~VelocitySideCar()
{
}
const std::string& VelocitySideCar::get_sha() const
{
return _source_sha;
};
bool VelocitySideCa... | 30.733333 | 108 | 0.622165 | nyue |
010f361df1b18f8efcd37aec4d5169dcb9350ed1 | 5,117 | cpp | C++ | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | #include <cmath> //floor
#include "Snake.hpp"
#include "Game.hpp"
#include "View.hpp"
Snake::Snake(Game& game) :
game_(game) {
}
void Snake::changeDirection(int keyCode) {
int deltaX = 0, deltaY = 0;
switch (keyCode) {
case SDLK_UP:
case SDLK_w:
deltaX = 0;
deltaY... | 31.392638 | 100 | 0.555599 | robifr |
0113774bc56dbc38bad5b3751e4987a5c42fbff2 | 1,534 | hpp | C++ | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | #ifndef MAZENET_CLIENT_MESSAGEHANDLER_HPP
#define MAZENET_CLIENT_MESSAGEHANDLER_HPP
#include <string>
#include <player/IPlayerStrategy.hpp>
#include "../messaging/mazeCom.hxx"
#include "../player/GameSituation.hpp"
#include "../util/logging/Log.hpp"
#include "MessageDispatcher.hpp"
#pragma GCC diagnostic push
#pra... | 27.392857 | 91 | 0.789439 | Fabi2607 |
011567e9d19e6b5d02b15b496bc71cf9d07e8bf7 | 7,215 | hpp | C++ | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | 2 | 2021-08-02T09:03:30.000Z | 2022-02-17T11:58:05.000Z | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | null | null | null | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
// Copyright (c) 2019-2021 Thomas Vanderbruggen <th.vanderbruggen@gmail.com>
#ifndef SCICPP_CORE_META
#define SCICPP_CORE_META
#include <Eigen/Dense>
#include <array>
#include <complex>
#include <ratio>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#inclu... | 30.315126 | 103 | 0.527235 | tvanderbruggen |
01164e1a7b0fb27f09b533c80c93d554c7f8dd74 | 2,332 | cpp | C++ | mini/io/path.cpp | stevefan1999/mini-tor | fbf82a5a394f15b68fc356c5a71af47a3e3863d3 | [
"MIT"
] | 2 | 2018-03-30T22:29:23.000Z | 2019-04-22T11:46:29.000Z | mini/io/path.cpp | FingerLeakers/mini-tor | fbf82a5a394f15b68fc356c5a71af47a3e3863d3 | [
"MIT"
] | null | null | null | mini/io/path.cpp | FingerLeakers/mini-tor | fbf82a5a394f15b68fc356c5a71af47a3e3863d3 | [
"MIT"
] | 1 | 2019-12-29T17:53:05.000Z | 2019-12-29T17:53:05.000Z | #include "path.h"
namespace mini::io {
string
path::combine(
const string_ref p1,
const string_ref p2
)
{
string result = p1;
if (!p1.ends_with(directory_separator) && !p1.ends_with(alternative_directory_separator))
{
result += directory_separator;
}
result += p2;
return result;
}
string_col... | 18.656 | 91 | 0.701115 | stevefan1999 |
011928a30f96a3f6ebfb64f374f0d4bf5bebeaba | 11,070 | cpp | C++ | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | 1 | 2017-01-04T03:35:46.000Z | 2017-01-04T03:35:46.000Z | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | #include <boost/assign.hpp>
#include <glog/logging.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <vector>
#include "caffe/internode/configuration.hpp"
#include "caffe/serialization/BlobCodec.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
namesp... | 35.594855 | 78 | 0.629901 | shayanshams66 |
011b4ba53fe34216618e95c8053a379494fc392c | 935 | cpp | C++ | rnn++/utils/math.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnn++/utils/math.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnn++/utils/math.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | #include "utils/math.h"
namespace util{
namespace math{
template<>
float_t Fun<FunName::alog>(float_t x){auto one=decltype(x){1}; return std::log(std::abs(x)+one);}
template<>
float_t Fun<FunName::d_alog>(float_t x){auto one=decltype(x){1}; return one/(std::abs(x)+one);}
template<>
float_t Fun<FunName::tanh>(float_t ... | 33.392857 | 105 | 0.702674 | uphere-co |
011c439dc7e8a25e5bc7e16891e280f726793e53 | 24,133 | hpp | C++ | ddbtoaster/experiments/src/tpch/codegen_initial_submission_r3391/Tpch13VCpp.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 38 | 2017-09-29T08:12:31.000Z | 2022-03-31T03:56:20.000Z | ddbtoaster/experiments/src/tpch/codegen_initial_submission_r3391/Tpch13VCpp.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 33 | 2018-04-05T02:42:39.000Z | 2022-02-18T02:13:57.000Z | ddbtoaster/experiments/src/tpch/codegen_initial_submission_r3391/Tpch13VCpp.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 17 | 2017-09-29T08:16:00.000Z | 2022-02-18T04:22:29.000Z | #include <sys/time.h>
#include "macro.hpp"
#include "types.hpp"
#include "functions.hpp"
#include "hash.hpp"
#include "hashmap.hpp"
#include "serialization.hpp"
#define ELEM_SEPARATOR "\n\t\t\t"
namespace dbtoaster {
/* Definitions of auxiliary maps for storing materialized views. */
struct CUSTDIST_entry {
... | 52.463043 | 328 | 0.695852 | szarnyasg |
0120cb3c518dc7e577506ec76c317ca23a2c125f | 412 | cpp | C++ | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | 1 | 2019-12-27T03:03:50.000Z | 2019-12-27T03:03:50.000Z | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | // a216 : 數數愛明明
#include <cstdio>
#define N 30010
int main()
{
// f[n] = n + f[n-1], g[n] = f[n] + g[n-1], f[1] = g[1] = 1
// f[i], g[i] is on day i !!!
long long int f[N] = { 0 , 1 , 3 }, g[N] = { 0 , 1 } ;
for( int i=3 ; i<N ; i++ )
{
f[i] = i + f[i-1] ;
g[i-1] = f[i-1] + g[i-2] ;
}
int n;... | 19.619048 | 61 | 0.393204 | mirkat1206 |
01215b320c80daaf94dc18a75469ceeffbd1cd72 | 7,317 | cc | C++ | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | // © 2019 John Adriaan. Licensed under the "3-clause BSD License"
///
/// \file ARM/NXP/Flash/FCB.cc
///
/// This file defines and instantiates the Flash Control Block at a known address.
/// The FCB is used by the i.MX RT10xx to best configure the Flash for use.
/// Note that this is completely self-contained - no ext... | 36.402985 | 129 | 0.531502 | JohnAdriaan |
0125409ff226d969876cee1c1b41b80f3bdcfc9e | 8,747 | hh | C++ | aku/FeatureModules.hh | lingsoft/AaltoASR | 40343e215a6cf1b7d5ed41a53095495567b0ab01 | [
"BSD-3-Clause"
] | 78 | 2015-01-07T14:33:47.000Z | 2022-03-15T09:01:30.000Z | aku/FeatureModules.hh | ufukhurriyetoglu/AaltoASR | 02b23d374ab9be9b0fd5d8159570b509ede066f3 | [
"BSD-3-Clause"
] | 4 | 2015-05-19T13:00:34.000Z | 2016-07-26T12:29:32.000Z | aku/FeatureModules.hh | ufukhurriyetoglu/AaltoASR | 02b23d374ab9be9b0fd5d8159570b509ede066f3 | [
"BSD-3-Clause"
] | 32 | 2015-01-16T08:16:24.000Z | 2021-04-02T21:26:22.000Z | #ifndef FEATUREMODULES_HH
#define FEATUREMODULES_HH
#include <vector>
#include "ModuleConfig.hh"
#include "FeatureModule.hh"
#include "BaseFeaModule.hh"
#include "AudioFileModule.hh"
#include "FFTModule.hh"
namespace aku {
class FeatureGenerator;
//////////////////////////////////////////////////////////////////
... | 28.584967 | 84 | 0.745627 | lingsoft |
01255311cfc3027c017846c9e92e7b40af6bc7e5 | 7,212 | cpp | C++ | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 9 | 2017-08-17T01:01:55.000Z | 2022-02-02T09:50:09.000Z | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | null | null | null | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 4 | 2017-08-17T01:01:57.000Z | 2021-06-28T08:30:17.000Z | /* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... | 31.631579 | 120 | 0.555047 | ChaseBro |
012aaddbb70b4812f6398f41c04ebaeef57ce201 | 5,777 | cpp | C++ | ConvertTrips/Table_Process.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ConvertTrips/Table_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ConvertTrips/Table_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Table_Process.cpp - Trip Table Processing
//*********************************************************
#include "ConvertTrips.hpp"
//---------------------------------------------------------
// Table_Processing
//-------------------------------------------... | 24.070833 | 94 | 0.535053 | kravitz |
012e73be64c4a50c323ab8bb2937c8b0acb608a8 | 3,009 | cpp | C++ | GPUImage-x/proj.iOS/GPUImage-x/GPUImage-x/filter/RGBFilter.cpp | antowang/GPUImage-x | 8c9237fd0bde008a69ccab5dc267871c4959f97d | [
"Apache-2.0"
] | 197 | 2017-04-04T16:49:42.000Z | 2022-02-15T10:47:24.000Z | GPUImage-x/proj.iOS/GPUImage-x/GPUImage-x/filter/RGBFilter.cpp | antowang/GPUImage-x | 8c9237fd0bde008a69ccab5dc267871c4959f97d | [
"Apache-2.0"
] | 6 | 2017-10-04T13:23:11.000Z | 2018-09-26T06:18:11.000Z | GPUImage-x/proj.iOS/GPUImage-x/GPUImage-x/filter/RGBFilter.cpp | antowang/GPUImage-x | 8c9237fd0bde008a69ccab5dc267871c4959f97d | [
"Apache-2.0"
] | 53 | 2017-08-07T14:55:30.000Z | 2022-02-25T09:55:25.000Z | /*
* GPUImage-x
*
* Copyright (C) 2017 Yijin Wang, Yiqian Wang
*
* 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... | 32.354839 | 177 | 0.715188 | antowang |
0130e07bf1f5706e74cab68b1c3d28619e46a356 | 4,250 | cpp | C++ | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 52 | 2015-04-14T14:39:30.000Z | 2022-02-07T07:16:05.000Z | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 11 | 2015-04-02T10:45:55.000Z | 2022-02-03T07:21:53.000Z | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 9 | 2015-04-05T18:25:57.000Z | 2022-02-07T07:20:23.000Z | // ----------------------------------------------------
// AIMP DotNet SDK
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
// Mail: mail4evgeniy@gmail.com
// ----------------------------------------------------
#include "Stdafx.h"
#include "InternalAimpDataFilterGroup.h"... | 33.203125 | 114 | 0.652235 | Smartoteka |
01319c06316ba1f9a9dcbb46f8fab72f5bed7355 | 540 | hpp | C++ | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 34 | 2017-08-16T13:58:24.000Z | 2022-03-31T11:50:25.000Z | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | null | null | null | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 17 | 2017-08-18T07:42:44.000Z | 2022-01-02T02:43:06.000Z | #ifndef COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_GENERATED_LUA_COCOS2DX_PHYSICS_MANUAL_H
#define COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_GENERATED_LUA_COCOS2DX_PHYSICS_MANUAL_H
#if CC_USE_PHYSICS
#ifdef __cplusplus
extern "C" {
#endif
#include "tolua++.h"
#ifdef __cplusplus
}
#endif
#include "cocos2d.h"
#incl... | 24.545455 | 95 | 0.824074 | weiDDD |
0136f6b477e8ff4a69284a42a0c410dca1029e15 | 549 | cpp | C++ | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program demonstrates that when a derived class function
// overrides a base class function, objects of the base class
// still call the base class version of the function.
#include <iostream>
using namespace std;
class BaseClass
{
public:
void showMessage()
{ cout << "This is the Base class.\n"; }
};
... | 18.3 | 63 | 0.675774 | aceiro |
01375227a381f8c4055b105b8570ed5ad7ee6c35 | 105,100 | cpp | C++ | Contrib/at67/functions.cpp | veekooFIN/gigatron-rom | 08c9918cc111d7d2856cecae6da4137ee4641fb2 | [
"BSD-2-Clause"
] | 172 | 2018-02-26T19:56:11.000Z | 2022-03-31T17:10:16.000Z | Contrib/at67/functions.cpp | veekooFIN/gigatron-rom | 08c9918cc111d7d2856cecae6da4137ee4641fb2 | [
"BSD-2-Clause"
] | 140 | 2018-01-13T09:57:11.000Z | 2022-02-15T13:22:05.000Z | Contrib/at67/functions.cpp | veekooFIN/gigatron-rom | 08c9918cc111d7d2856cecae6da4137ee4641fb2 | [
"BSD-2-Clause"
] | 78 | 2018-01-13T01:07:37.000Z | 2022-03-09T07:59:18.000Z | #include <ctime>
#include <random>
#include <numeric>
#include <algorithm>
#include "memory.h"
#include "cpu.h"
#include "functions.h"
#include "operators.h"
namespace Functions
{
int _nestedCount = -1;
double _umin = 0.0;
double _umax = 0.0;
double _ulen = 0.0;
double _ustp = 1.0;
uint16_t ... | 43.82819 | 252 | 0.557916 | veekooFIN |
0137689f5d1a19f6f7f3b962df0f9d939eac85fd | 1,983 | cc | C++ | stapl_release/docs/reference/view/multi.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/docs/reference/view/multi.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/docs/reference/view/multi.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | // cont/multi.cc
#include <stapl/containers/multiarray/multiarray.hpp>
#include <stapl/views/multiarray_view.hpp>
#include <stapl/containers/type_traits/default_traversal.hpp>
#include <stapl/algorithms/algorithm.hpp>
#include <stapl/algorithms/functional.hpp>
#include "viewhelp.hpp"
using namespace std;
typedef int... | 30.984375 | 70 | 0.704488 | parasol-ppl |
01376e57347f54f4d6ca3209bcd2429d52c0bcdc | 17,513 | hpp | C++ | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | /*
* backend_descriptors.hpp
*
* Created on: Dec 5, 2021
* Author: Maciej Kozarzewski
*/
#ifndef AVOCADO_BACKEND_BACKEND_DESCRIPTORS_HPP_
#define AVOCADO_BACKEND_BACKEND_DESCRIPTORS_HPP_
#include "backend_defs.h"
#include <type_traits>
#include <array>
#include <vector>
#include <stack>
#include <algorithm... | 30.510453 | 141 | 0.661394 | AvocadoML |
013931e763162277ef1f3cc213d891500ae16cbe | 1,925 | cc | C++ | firestore/src/jni/object.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 193 | 2019-03-18T16:30:43.000Z | 2022-03-30T17:39:32.000Z | firestore/src/jni/object.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 647 | 2019-03-18T20:50:41.000Z | 2022-03-31T18:32:33.000Z | firestore/src/jni/object.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 86 | 2019-04-21T09:40:38.000Z | 2022-03-26T20:48:37.000Z | /*
* Copyright 2020 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.615385 | 78 | 0.707532 | oliwilkinsonio |
01397d31fe431d899f2d2b93ba2b8846afc3137d | 175 | hpp | C++ | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Soldier.hpp"
class FootCommander : public Soldier
{
public:
FootCommander(int player) : Soldier(150,20,player){}
~FootCommander();
};
| 15.909091 | 57 | 0.697143 | amit1021 |
01413df5169b1339147ff85e257547c93c4f486f | 1,975 | cpp | C++ | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 9 | 2017-10-31T10:15:31.000Z | 2021-08-02T20:40:45.000Z | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 1 | 2019-07-21T12:13:37.000Z | 2019-07-22T14:56:18.000Z | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 5 | 2016-07-31T09:08:18.000Z | 2022-03-22T14:28:16.000Z | // MdiDemoView.cpp : implementation of the CMdiDemoView class
//
#include "stdafx.h"
#include "MdiDemo.h"
#include "MdiDemoDoc.h"
#include "MdiDemoView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMdiDemoView
IMPLEMENT_DYNCREATE(CMdiDemoView, CView)
BEGIN_MESSAGE_MAP(CMdiDemoView, CView)
... | 19.554455 | 78 | 0.711899 | yanlinlin82 |
01417b6a4ebc01846c383ea9eb0e7fa8fbb47e23 | 396 | cpp | C++ | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
int countSubstrings(string s) {
int num = 0;
int n = s.size();
for(int i=0;i<n;i++)//遍历回文中心点
{
for(int j=0;j<=1;j++)//j=0,中心是一个点,j=1,中心是两个点
{
int l = i;
int r = i+j;
while(l>=0 && r<n &&... | 22 | 58 | 0.356061 | loypt |
0149210ca73d9a9f64c0b3f739d097f86b5e5d1d | 706 | cpp | C++ | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | 4 | 2020-05-14T04:41:04.000Z | 2021-06-13T06:42:03.000Z | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std ;
template<typename T>
void printVector(vector<T> n) {
for (auto &&i : n)
{
cout << i << " ";
}
cout << endl ;
}
class Fibonacci
{
private:
double series = 0;
vector<double> store;
public:
void getThe... | 17.219512 | 40 | 0.474504 | sounishnath003 |
0149e15d47dac4538dd3bdd786fc568e49e3f384 | 1,214 | cpp | C++ | 2018-2019_Term2/CSC3002-Programming_Paradigms/Course_Material/Week 04/05 Programs/CCType/TestCCType.cpp | Vito-Swift/CourseMaterials | f2799f004f4353b5f35226158c8fd9f71818810e | [
"MIT"
] | null | null | null | 2018-2019_Term2/CSC3002-Programming_Paradigms/Course_Material/Week 04/05 Programs/CCType/TestCCType.cpp | Vito-Swift/CourseMaterials | f2799f004f4353b5f35226158c8fd9f71818810e | [
"MIT"
] | null | null | null | 2018-2019_Term2/CSC3002-Programming_Paradigms/Course_Material/Week 04/05 Programs/CCType/TestCCType.cpp | Vito-Swift/CourseMaterials | f2799f004f4353b5f35226158c8fd9f71818810e | [
"MIT"
] | 2 | 2019-09-25T02:36:37.000Z | 2020-06-05T08:47:01.000Z | /*
* File: TestCCType.cpp
* --------------------
* This program tests the set-based implementation of the <cctype>
* interface.
*/
#include <iostream>
#include <string>
#include "cctype.h"
#include "simpio.h"
#include "console.h"
using namespace std;
int main() {
while (true) {
string st... | 33.722222 | 74 | 0.432455 | Vito-Swift |
014c9bc06539884aed89195baa0fc6e530aafb94 | 1,943 | cpp | C++ | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | 8 | 2020-09-15T17:54:12.000Z | 2022-01-20T04:04:27.000Z | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | null | null | null | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
// considering maximum no. of vertices to be 100000.
const int N = 1e5;
int parent[N];
// find the root(ancestor) of the vertex u and returns the no. of vertices in that path
int findpar(int *u){
int rank = 0;
while(*u != parent[*u]){
*u = parent[*u];
... | 26.256757 | 87 | 0.568194 | paras2411 |
014dc4cf9bbe003883e6a2bc834ec2fcc6548c06 | 1,712 | cpp | C++ | src/lcpeaks/integrator_lineTools.cpp | DanIverson/OpenVnmrJ | 0db324603dbd8f618a6a9526b9477a999c5a4cc3 | [
"Apache-2.0"
] | 32 | 2016-06-17T05:04:26.000Z | 2022-03-28T17:54:44.000Z | src/lcpeaks/integrator_lineTools.cpp | DanIverson/OpenVnmrJ | 0db324603dbd8f618a6a9526b9477a999c5a4cc3 | [
"Apache-2.0"
] | 128 | 2016-07-13T17:09:02.000Z | 2022-03-28T17:53:52.000Z | src/lcpeaks/integrator_lineTools.cpp | DanIverson/OpenVnmrJ | 0db324603dbd8f618a6a9526b9477a999c5a4cc3 | [
"Apache-2.0"
] | 102 | 2016-01-23T15:27:16.000Z | 2022-03-20T05:41:54.000Z | /*
* Varian,Inc. All Rights Reserved.
* This software contains proprietary and confidential
* information of Varian, Inc. and its contributors.
* Use, disclosure and reproduction is prohibited without
* prior consent.
*/
/* DISCLAIMER :
* ------------
*
* This is a beta version of the GALAXIE integrat... | 21.670886 | 76 | 0.674065 | DanIverson |
014e64b24cf4d1fe7cbcd9dd010345bd7347c848 | 1,219 | cpp | C++ | ir/src/brio/BrioMessage.cpp | wmarkow/arduino-sandbox | 2c5301aeee8811ff5f15f1edb61e313ecbcb0d5e | [
"MIT"
] | null | null | null | ir/src/brio/BrioMessage.cpp | wmarkow/arduino-sandbox | 2c5301aeee8811ff5f15f1edb61e313ecbcb0d5e | [
"MIT"
] | null | null | null | ir/src/brio/BrioMessage.cpp | wmarkow/arduino-sandbox | 2c5301aeee8811ff5f15f1edb61e313ecbcb0d5e | [
"MIT"
] | null | null | null | /*
* BrioMessage.cpp
*
* Created on: 09.05.2018
* Author: wmarkowski
*/
#include <Arduino.h>
#include "BrioMessage.h"
void brio_message_dump(BrioMessage* brioMessage)
{
switch (brioMessage->channel)
{
case BRIO_CHANNEL_A:
Serial.print(F("channel A, "));
break;
case BRIO_... | 23.442308 | 48 | 0.5726 | wmarkow |
0151893c4ebd09de9dbcfadd024231e2e327b3a1 | 3,643 | cpp | C++ | src/prod/src/api/wrappers/ComProxyStorePostBackupHandler.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/api/wrappers/ComProxyStorePostBackupHandler.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/api/wrappers/ComProxyStorePostBackupHandler.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 33.118182 | 134 | 0.620093 | gridgentoo |
0152528c23cbebd0292482028545ec0aec888717 | 1,346 | cpp | C++ | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | 14 | 2019-11-17T14:46:25.000Z | 2021-03-10T02:48:40.000Z | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <sstream>
#include "lineside/signalflash.hpp"
char const* flashNames[] = { "Steady", "Flashing" };
Lineside::SignalFlash flashes[] = { Lineside::SignalFlash::Steady,
Lineside::Sign... | 27.469388 | 83 | 0.730312 | freesurfer-rge |
01542c10efe6ed2d057b98d9df5f63d29a5d3781 | 1,366 | cpp | C++ | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | 1 | 2020-05-07T09:26:05.000Z | 2020-05-07T09:26:05.000Z | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<queue>
using namespace std;
const int M = 1111111;
struct Edge
{
int tow,nxt,dat;
};
Edge e[2 * M];
int n,m,s,sume = 0,dis[2 * M],vis[2 * M],hea[2 * M];
queue <int>q;
void add(int u, int v, int w)
{
sume++;
e... | 16.658537 | 52 | 0.400439 | shorn1 |
01568fe4e820b402aff4f45d2fd5d36b0ffd1d9b | 1,849 | hh | C++ | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, 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 a... | 25.328767 | 85 | 0.657112 | IntroVirt |
0156b739a3e01a71a774048ffe0717ba2aa7ffef | 1,417 | cpp | C++ | others/fb/quixo4.cpp | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | others/fb/quixo4.cpp | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | others/fb/quixo4.cpp | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | /*
Next player to play: X
Previous player: O
A board is a 16-tuple/list of 0,1,2
e.g.: (0,0,0,1, 1,2,0,0, 0,1,2,0, 2,1,2,1) means that the board is
...X
XO..
.XO.
OXOX
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
*/
#include <iostream>
#include "global4.h"
#include "state4.h"
#include <uno... | 20.838235 | 86 | 0.573042 | st34-satoshi |
01594279291cd64d232ef617f493cb70ac094f93 | 7,036 | cpp | C++ | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | #include <ZigBeeCommandLineProcessor.h>
#include <GlobalPresets.h>
int StringSplit(String sInput, char cDelim, String sParams[], int iMaxParams)
{
int iParamCount = 0;
int iPosDelim, iPosStart = 0;
do {
// Searching the delimiter using indexOf()
iPosDelim = sInput.indexOf(cDelim,iPosStart... | 38.032432 | 124 | 0.622513 | Suicyc1e |
015b2fc1bb7a3b4abc8ca03c4369020f5e67bf05 | 1,428 | cc | C++ | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | #include "common.hh"
#include "auth.hh"
#include "base64.hh"
#include "cgi.hh"
#include "http.hh"
#include "strutils.hh"
namespace stuff {
bool Auth::auth(CGI* cgi, const std::string& realm, const std::string& passwd,
std::string* user) {
auto auth = cgi->http_auth();
auto pos = auth.find(' '... | 30.382979 | 78 | 0.429272 | thejk |
015d23c359ee83b5f55b673013ed6cbdceae9f3f | 3,042 | hpp | C++ | IO/src/jpg/include/jpg.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | IO/src/jpg/include/jpg.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | IO/src/jpg/include/jpg.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "io.hpp"
#include "libvideostitch/logging.hpp"
#include <fstream>
#include <ostream>
#include <vector>
#include <setjmp.h>
#include <jpeglib.h>
namespace VideoStitch {
namespace Input {
void my_output_message(j_common... | 25.35 | 111 | 0.657462 | tlalexander |
015de0eea16ec62ebb203ca7b900d77686faa7cf | 2,037 | cc | C++ | patchpanel/mcastd/main.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | patchpanel/mcastd/main.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | patchpanel/mcastd/main.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 <base/bind.h>
#include <base/command_line.h>
#include <base/files/scoped_file.h>
#include <base/macros.h>
#include <brillo/daemons/daemon.h>
... | 36.375 | 77 | 0.67403 | strassek |
015ea70b359981eae5d6213f851d444c511c4bf3 | 2,546 | hpp | C++ | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #ifndef STAN_LANG_AST_FUN_VAR_DECL_DIMS_VIS_DEF_HPP
#define STAN_LANG_AST_FUN_VAR_DECL_DIMS_VIS_DEF_HPP
#include <stan/lang/ast.hpp>
#include <vector>
namespace stan {
namespace lang {
var_decl_dims_vis::var_decl_dims_vis() { }
std::vector<expression> var_decl_dims_vis::operator()(const nil& /* x */)
... | 28.931818 | 80 | 0.552239 | yizhang-cae |
015f284d8abe647c16ca54578d7e48d01427cd6e | 3,698 | cpp | C++ | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 20 | 2018-08-29T07:33:21.000Z | 2022-03-12T05:05:54.000Z | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 1 | 2020-10-27T15:04:46.000Z | 2020-10-27T15:04:46.000Z | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 7 | 2015-07-09T20:38:28.000Z | 2021-09-27T06:38:11.000Z | #include <chartwork/ColorPalette.h>
#include <chartwork/Design.h>
namespace chartwork
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ColorPalette
//
////////////////////////////////////////////////////////////////////////////////////////////////////
Colo... | 24.328947 | 100 | 0.330719 | nazhor |
015f8fbd13144338c56420d36b5dfb1cc578986c | 1,827 | hpp | C++ | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | 2 | 2021-06-05T10:15:53.000Z | 2021-06-06T09:51:19.000Z | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | null | null | null | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | 1 | 2021-06-08T05:56:35.000Z | 2021-06-08T05:56:35.000Z | // MIT License
// Copyright (c) 2021 laferenorg
// 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, merg... | 33.218182 | 81 | 0.746579 | jonathanmarp |
01635e6161a725aca5e9748a3bdc8945400a2a2f | 6,958 | cxx | C++ | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | //
// "$Id: list_fonts.cxx 5958 2007-10-17 20:21:38Z spitzak $"
//
// _WIN32 font utilities for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// Lice... | 29.991379 | 79 | 0.632078 | MarioHenze |
016871b7df9e584799df839cda630bd6279531cd | 636 | hpp | C++ | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null |
/*
Plutonium library
@file Overlay.hpp
@brief TODO...
@author XorTroll
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
*/
#pragma once
#include <pu/overlay/Overlay.hpp>
namespace pu::overlay
{
class Toast : public Overlay
{
public:
... | 21.931034 | 96 | 0.624214 | Falki14 |
6c75aa25ebca362bf52e57a3e7660b4f89500ead | 5,062 | cpp | C++ | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | 1 | 2020-11-16T13:55:45.000Z | 2020-11-16T13:55:45.000Z | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | #include "resampleProcess.h"
#include <dtkCore/dtkAbstractProcessFactory.h>
#include <medAbstractDataFactory.h>
#include <medAbstractProcess.h>
#include <medMetaDataKeys.h>
#include <medUtilitiesITK.h>
#include <itkResampleImageFilter.h>
#include <itkBSplineInterpolateImageFunction.h>
// /////////////////////////////... | 28.925714 | 112 | 0.614184 | nebatmusic |
6c767fd7fe905d57aad21b55162e1077581ede1f | 6,219 | hpp | C++ | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include "dbs_base_impl.hpp"
#include <vector>
#include <set>
#include <functional>
#include <deip/chain/schema/expertise_allocation_proposal_object.hpp>
#include <deip/chain/schema/expertise_allocation_proposal_vote_object.hpp>
#include <deip/chain/schema/expert_token_object.hpp>
namespace deip {
names... | 56.027027 | 243 | 0.705419 | DEIPworld |
6c7737a2a29d9a93b0374dec4932899a19dd8a36 | 265 | cpp | C++ | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <pqrs/environment_variable.hpp>
TEST_CASE("find") {
REQUIRE(pqrs::environment_variable::find("PATH"));
REQUIRE(pqrs::environment_variable::find("UNKNOWN_ENVIRONMENT_VARIABLE") == std::nullopt);
}
| 26.5 | 92 | 0.766038 | pqrs-org |