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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
082bf53f1d88f591ebf74b485c0f627e0453b678 | 527 | cpp | C++ | Source/restrict.cpp | mikeeq/devilution-nx | d59170c5f1ab884b0539ec38bbfc8655ea9866b8 | [
"Unlicense"
] | 878 | 2019-07-01T11:52:52.000Z | 2022-02-20T21:31:45.000Z | Source/restrict.cpp | mikeeq/devilution-nx | d59170c5f1ab884b0539ec38bbfc8655ea9866b8 | [
"Unlicense"
] | 29 | 2019-07-01T22:43:59.000Z | 2021-12-06T09:32:17.000Z | Source/restrict.cpp | mikeeq/devilution-nx | d59170c5f1ab884b0539ec38bbfc8655ea9866b8 | [
"Unlicense"
] | 79 | 2019-07-01T13:01:43.000Z | 2021-12-06T08:52:52.000Z | #include "diablo.h"
DEVILUTION_BEGIN_NAMESPACE
BOOL SystemSupported()
{
return TRUE;
}
BOOL RestrictedTest()
{
#ifndef SWITCH
FILE *f;
char Buffer[MAX_PATH];
BOOL ret = FALSE;
if (SystemSupported() && GetWindowsDirectory(Buffer, sizeof(Buffer))) {
strcat(Buffer, "\\Diablo1RestrictedTest.foo");
f = f... | 12.853659 | 72 | 0.664137 | mikeeq |
082ccc3a9c7bcc14fa687824a82bb5879e39d530 | 1,099 | cpp | C++ | pwiz/utility/bindings/SWIG/python_pwiz_RAMPAdapter.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/utility/bindings/SWIG/python_pwiz_RAMPAdapter.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/utility/bindings/SWIG/python_pwiz_RAMPAdapter.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// python_pwiz_RAMPAdapter.cpp
//
// $Id: python_pwiz_RAMPAdapter.cpp 3300 2012-02-15 22:38:20Z chambm $
//
// a lightweight wrapper allowing SWIG to wrap some useful pwiz code
// Q: why a wrapper wrapper? A: SWIG can't handle namespaces
//
//
// Original author: Brian Pratt <Brian.Pratt@insilicos.com>
//... | 35.451613 | 77 | 0.720655 | edyp-lab |
082e073c4a0e6203ee39e170ddc5f4e8270d6d2c | 926 | cpp | C++ | Tareas/Tarea #2/Factura.cpp | JDaniel1010/cpp | ef067f3f0109812d7104cd8a21439d1ea5702afa | [
"MIT"
] | null | null | null | Tareas/Tarea #2/Factura.cpp | JDaniel1010/cpp | ef067f3f0109812d7104cd8a21439d1ea5702afa | [
"MIT"
] | null | null | null | Tareas/Tarea #2/Factura.cpp | JDaniel1010/cpp | ef067f3f0109812d7104cd8a21439d1ea5702afa | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
double subtotal = 0;
double total = 0;
double impuesto = 0.15;
int descuento = 0;
char facturaExenta;
double calculoDescuento = 0;
double calculoImpuesto = 0;
cout << " Ingrese el subtotal de la factura: ";
... | 23.15 | 63 | 0.588553 | JDaniel1010 |
0832797a2656e085e8c60dd8f647e1b5ca1e84c9 | 6,486 | hxx | C++ | include/itkRSHReconImageFilter.hxx | bloyl/DiffusionImagingTK | 0516d32b7b0d41ed161134812746ef02aab000de | [
"Apache-2.0"
] | 4 | 2016-01-09T19:02:28.000Z | 2017-07-31T19:41:32.000Z | include/itkRSHReconImageFilter.hxx | bloyl/DiffusionImagingTK | 0516d32b7b0d41ed161134812746ef02aab000de | [
"Apache-2.0"
] | null | null | null | include/itkRSHReconImageFilter.hxx | bloyl/DiffusionImagingTK | 0516d32b7b0d41ed161134812746ef02aab000de | [
"Apache-2.0"
] | 2 | 2016-08-06T00:58:26.000Z | 2019-02-18T01:03:13.000Z | /*=========================================================================
*
* Copyright Section of Biomedical Image Analysis
* University of Pennsylvania
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 34.136842 | 110 | 0.721708 | bloyl |
083b5eb371943035be1536423b5f9d70620737f3 | 2,133 | cpp | C++ | tools/export/export.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | tools/export/export.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | tools/export/export.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- tools/export/export.cpp --------------------------------------------===//
//* _ *
//* _____ ___ __ ___ _ __| |_ *
//* / _ \ \/ / '_ \ / _ \| '__| __| *
//* | __/> <| |_) | (_) | | | |_ *
//* \___/_/\_\ .__/ \___/|_| \__| *
//* |_| *
//===... | 33.857143 | 94 | 0.534459 | paulhuggett |
083c40e6225df441704e84f55c2af4808fcb9257 | 1,496 | cpp | C++ | legacy/tools/dtkDistributedServer/main.cpp | papadop/dtk | 5d5bd7234987f01a23fbc6c7414a21c15e1455ab | [
"BSD-3-Clause"
] | null | null | null | legacy/tools/dtkDistributedServer/main.cpp | papadop/dtk | 5d5bd7234987f01a23fbc6c7414a21c15e1455ab | [
"BSD-3-Clause"
] | null | null | null | legacy/tools/dtkDistributedServer/main.cpp | papadop/dtk | 5d5bd7234987f01a23fbc6c7414a21c15e1455ab | [
"BSD-3-Clause"
] | 1 | 2020-04-21T14:41:52.000Z | 2020-04-21T14:41:52.000Z | /* @(#)main.cpp ---
*
* Author: Nicolas Niclausse
* Copyright (C) 2012 - Nicolas Niclausse, Inria.
* Created: 2012/04/03 14:41:29
* Version: $Id$
* Last-Updated: mer. avril 25 13:08:30 2012 (+0200)
* By: Nicolas Niclausse
* Update #: 13
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#include ... | 23.746032 | 93 | 0.644385 | papadop |
083eb282c9bfcfe896f58fd64a0b9a969b60addd | 437 | hpp | C++ | AddinCfy/utils.hpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 5 | 2016-07-13T14:05:01.000Z | 2022-01-24T15:15:17.000Z | AddinCfy/utils.hpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | null | null | null | AddinCfy/utils.hpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 12 | 2016-01-28T07:18:28.000Z | 2021-11-15T03:48:52.000Z |
#ifndef addincfy_utils_hpp
#define addincfy_utils_hpp
#include <vector>
#include "FlyLib/FlyLib_Types.h"
#include <rp/property.hpp>
namespace QuantLib {
class Date;
};
std::vector<bool> f6(FLYLIB_OPAQUE);
std::vector<long> f2(FLYLIB_OPAQUE);
std::vector<double> f1(FLYLIB_OPAQUE);
std::vector<std::string> f4(FLYLIB_... | 19.863636 | 51 | 0.764302 | eehlers |
083f7f46147b7fa40de49d41801d7fd0945af81a | 1,481 | hpp | C++ | include/eschaton/eschaton.hpp | ortfero/eschaton | abc1ce77dd96105208a4563edba7550880ca8530 | [
"MIT"
] | null | null | null | include/eschaton/eschaton.hpp | ortfero/eschaton | abc1ce77dd96105208a4563edba7550880ca8530 | [
"MIT"
] | null | null | null | include/eschaton/eschaton.hpp | ortfero/eschaton | abc1ce77dd96105208a4563edba7550880ca8530 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <chrono>
#include <tuple>
#ifndef HAS_UNCAUGHT_EXCEPTIONS
#define HAS_UNCAUGHT_EXCEPTIONS 1
#endif
#include <date/date.h>
namespace eschaton {
using system_time = std::chrono::system_clock::time_point;
using system_duration = std::chrono::system_clock::duration;
using tim... | 25.534483 | 91 | 0.713032 | ortfero |
084279133dea1dbd01db23f8ca48ac8d9ac4b95a | 3,075 | cpp | C++ | include/Lexer.cpp | Thomilist/math-converter | d0028f5096921fa34e9b4b1ddd086812ec5732f5 | [
"MIT"
] | null | null | null | include/Lexer.cpp | Thomilist/math-converter | d0028f5096921fa34e9b4b1ddd086812ec5732f5 | [
"MIT"
] | null | null | null | include/Lexer.cpp | Thomilist/math-converter | d0028f5096921fa34e9b4b1ddd086812ec5732f5 | [
"MIT"
] | null | null | null | #include "Lexer.hpp"
namespace mcon
{
Lexer::Lexer(
std::unique_ptr<CharacterStream> const &a_character_stream,
std::unique_ptr<CharacterSet> const &a_character_set
):
character_set(a_character_set),
character_stream(a_character_stream)
{
}
Lexer::~Lexer()... | 34.166667 | 100 | 0.541138 | Thomilist |
36b041859da7a7627fafaa9f402e464b40a6cd3e | 744 | hpp | C++ | Sources/etwprof/OS/ETW/ETWSessionCommon.hpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 38 | 2018-06-11T19:09:16.000Z | 2022-03-17T04:15:15.000Z | Sources/etwprof/OS/ETW/ETWSessionCommon.hpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 12 | 2018-06-12T20:24:05.000Z | 2021-07-31T18:28:48.000Z | Sources/etwprof/OS/ETW/ETWSessionCommon.hpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 5 | 2019-02-23T04:11:03.000Z | 2022-03-17T04:15:18.000Z | #ifndef ETWP_ETW_SESSION_COMMON_HPP
#define ETWP_ETW_SESSION_COMMON_HPP
#include <windows.h>
#include <evntrace.h>
#include <memory>
#include <string>
namespace ETWP {
bool StopETWSession (TRACEHANDLE hSession, const std::wstring& name, PEVENT_TRACE_PROPERTIES pProperties);
bool StartRealTimeETWSession (const std::... | 32.347826 | 106 | 0.685484 | Donpedro13 |
36b55ce1816fe3c54955cef0595b31d4653ca121 | 2,542 | cpp | C++ | apps/Quant/quantcontroller.cpp | ekoeppen/RDCL | bc8efd0577f8ee231ebdab1e330dde106ff92b15 | [
"BSD-3-Clause"
] | 3 | 2016-01-09T11:40:36.000Z | 2018-04-07T18:12:13.000Z | apps/Quant/quantcontroller.cpp | ekoeppen/RDCL | bc8efd0577f8ee231ebdab1e330dde106ff92b15 | [
"BSD-3-Clause"
] | null | null | null | apps/Quant/quantcontroller.cpp | ekoeppen/RDCL | bc8efd0577f8ee231ebdab1e330dde106ff92b15 | [
"BSD-3-Clause"
] | null | null | null | #include <QFileDialog>
#include <QDebug>
#include "mainwindow.h"
#include "quantcontroller.h"
#include "settingsdialog.h"
#ifdef Q_WS_WIN
#include "quantcontrollerwindows.h"
#else
#include "quantcontrollerposix.h"
#endif
QuantController *QuantController::controllerFactory(MainWindow *aMainWindow)
{
#ifdef... | 21.542373 | 104 | 0.684894 | ekoeppen |
36b8f1075415da3e489d32e067cffbcf25828afd | 5,438 | hpp | C++ | src/rule/tile-type.hpp | drelatgithub/mahjong-calc | fee7a938ebbc4952ab703d95c628890a48d5125a | [
"MIT"
] | null | null | null | src/rule/tile-type.hpp | drelatgithub/mahjong-calc | fee7a938ebbc4952ab703d95c628890a48d5125a | [
"MIT"
] | null | null | null | src/rule/tile-type.hpp | drelatgithub/mahjong-calc | fee7a938ebbc4952ab703d95c628890a48d5125a | [
"MIT"
] | null | null | null | #ifndef MAHJCALC_RULE_TILE_TYPE_HPP
#define MAHJCALC_RULE_TILE_TYPE_HPP
#include <cstdint>
#include <type_traits>
#include "common.hpp"
namespace mahjcalc {
constexpr size_t num_tile_types_total = 35; // Including Undefined
// Red Doras are not considered here
enum class TileType {
M1, M2, M3, M4, M5, M6, M7, ... | 33.9875 | 105 | 0.622839 | drelatgithub |
36bc0edc5c1e7019d82cda76f0c173923b325d24 | 3,249 | hh | C++ | src/GroupDomain_cube.hh | lucjaulmes/FaultSim-A-Memory-Reliability-Simulator | fac1cee8780c5cb783f2ffcc25682b9e0172b11e | [
"BSD-3-Clause"
] | null | null | null | src/GroupDomain_cube.hh | lucjaulmes/FaultSim-A-Memory-Reliability-Simulator | fac1cee8780c5cb783f2ffcc25682b9e0172b11e | [
"BSD-3-Clause"
] | null | null | null | src/GroupDomain_cube.hh | lucjaulmes/FaultSim-A-Memory-Reliability-Simulator | fac1cee8780c5cb783f2ffcc25682b9e0172b11e | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2015, Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and t... | 33.153061 | 120 | 0.794398 | lucjaulmes |
36c244ea95072445e74ec096bb4a6e850690009c | 1,704 | cpp | C++ | src/Viewer/tst/Segment2DSubsegments.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/Viewer/tst/Segment2DSubsegments.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/Viewer/tst/Segment2DSubsegments.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <memory>
#include <gtest/gtest.h>
#include <memory>
#include <vector>
#include "WCEViewer.hpp"
using namespace Viewer;
class TestSegment2DSubsegments : public testing::Test {
protected:
virtual void SetUp() {
}
};
TEST_F( TestSegment2DSubsegments, Segment2DTest1 ) {
SCOPED_TRACE( "Begin Test: Segme... | 27.934426 | 110 | 0.664906 | bakonyidani |
36c782d74d02e318d5d59adadd72f5184bddca75 | 1,782 | cpp | C++ | Upsolving/URI/1025.cpp | rodrigoAMF7/Notebook---Maratonas | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | 4 | 2019-01-25T21:22:55.000Z | 2019-03-20T18:04:01.000Z | Upsolving/URI/1025.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | Upsolving/URI/1025.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
// Nome de Tipos
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
// Valores
#define INF 0x3F3F3F3F
#define LINF 0x3F3F3F3F3F3F3F3FLL
#define DINF (double)1e+30
#define EPS (double)1e-9
#define RAD(x) (double)(x*PI)/180.0
#define PCT(x,y) (double)x*100.0/y
// Ata... | 19.16129 | 54 | 0.570146 | rodrigoAMF7 |
36cd25104f9088fa3393b26bea86e5da5d2075f7 | 329 | cpp | C++ | livro/cap_03 (finalizado)/02_ano_bissexto.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | livro/cap_03 (finalizado)/02_ano_bissexto.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | livro/cap_03 (finalizado)/02_ano_bissexto.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int ano;
bool eh_bissexto;
cin >> ano;
eh_bissexto = ((ano%4 == 0 && !(ano%100 == 0)) || ano%400 == 0);
if(eh_bissexto){
cout << ano << " e um ano bissexto";
}
else{
cout << ano << " nao e um ano bissexto";
}
re... | 17.315789 | 68 | 0.50152 | sueyvid |
36d33c3f56c0b85d99f4e4671415bd696e0d01d1 | 19,061 | cpp | C++ | source/loonyland/endgame.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | source/loonyland/endgame.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | source/loonyland/endgame.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | #include "endgame.h"
#include "display.h"
#include "player.h"
#include "fireworks.h"
#include "badge.h"
#include "bossbash.h"
#include "highscore.h"
#include "log.h"
char rankText[][32]={
"Scalliwag",
"Cad",
"Ruffian",
"Weenie",
"Peon",
"Peasant",
"Citizen",
"Upper Crust",
"High Class",
"Knight",
"Baron",
... | 23.132282 | 87 | 0.627826 | AutomaticFrenzy |
36d3addf468bd4ab1783ae5b617426e702dfe553 | 3,039 | hh | C++ | src/clang_tu.hh | SysRay/ccls | daac41a52be06822f2c93407bd5ff8384b0329f8 | [
"Apache-2.0"
] | null | null | null | src/clang_tu.hh | SysRay/ccls | daac41a52be06822f2c93407bd5ff8384b0329f8 | [
"Apache-2.0"
] | null | null | null | src/clang_tu.hh | SysRay/ccls | daac41a52be06822f2c93407bd5ff8384b0329f8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017-2018 ccls Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 32.677419 | 80 | 0.654163 | SysRay |
36d5280e189a823721c5bd19846b120eb11d98ba | 12,656 | cc | C++ | src/game/Strategic/QuestText.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 346 | 2016-02-16T11:17:25.000Z | 2022-03-28T18:18:14.000Z | src/game/Strategic/QuestText.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 1,119 | 2016-02-14T23:19:56.000Z | 2022-03-31T21:57:58.000Z | src/game/Strategic/QuestText.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 90 | 2016-02-17T22:17:11.000Z | 2022-03-12T11:59:56.000Z | #include "Types.h"
#include "QuestText.h"
#include "Quests.h"
const ST::string QuestDescText[] =
{
"Deliver Letter",
"Food Route",
"Terrorists",
"Kingpin Chalice",
"Kingpin Money",
"Runaway Joey",
"Rescue Maria",
"Chitzena Chalice",
"Held in Alma",
"Interogation",
"Hillbilly Problem", //10
"Find S... | 21.093333 | 90 | 0.591182 | FluffyQuack |
36d89906b5ba9e66ffcae5b71fc944eb4c5a5d4a | 28,876 | cpp | C++ | third_party/occmapping/src/robustoctree.cpp | SRI-IPS/general-tools | b3113cbcf83c3a430c630d050d1b96e722dfb043 | [
"BSD-3-Clause"
] | null | null | null | third_party/occmapping/src/robustoctree.cpp | SRI-IPS/general-tools | b3113cbcf83c3a430c630d050d1b96e722dfb043 | [
"BSD-3-Clause"
] | null | null | null | third_party/occmapping/src/robustoctree.cpp | SRI-IPS/general-tools | b3113cbcf83c3a430c630d050d1b96e722dfb043 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013-2014, Konstantin Schauwecker
*
* This code is based on the original OctoMap implementation. The original
* copyright notice and source code license are as follows:
*
* Copyright (c) 2009-2013, K.M. Wurm and A. Hornung, University of Freiburg
* All rights reserved.
* License: New BSD
*
... | 38.968961 | 100 | 0.659717 | SRI-IPS |
36d964a0571b9bdec37447907b20634637c26a4f | 862 | cpp | C++ | cse419/CodeForces/349A/22273399_AC_218ms_8kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | cse419/CodeForces/349A/22273399_AC_218ms_8kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | cse419/CodeForces/349A/22273399_AC_218ms_8kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
map<int,int>t;
bool check = true;
int n,v;
cin>>n;
for(int i=0;i<n;i++){
cin>>v;
if(v==100){
if(t[50]>=1 && t[25]>=1){
t[50]--;
t[25]--;
}
else if(t[25]>=3... | 18.73913 | 37 | 0.267981 | cosmicray001 |
36dfd3e497e94478162e3edbe06481d562332f35 | 4,189 | cpp | C++ | src/ui/VKUMainForm.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/ui/VKUMainForm.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/ui/VKUMainForm.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | #include "VKUMainForm.h"
#include "AppResourceId.h"
#include "SceneRegister.h"
#include "VKUColors.h"
#include "VKUContactsPanel.h"
#include "VKUApi.h"
#include "JsonParseUtils.h"
#include "ObjectCounter.h"
using namespace Tizen::Base;
using namespace Tizen::App;
using namespace Tizen::Ui;
using namespace Tizen::Ui::C... | 25.387879 | 129 | 0.752208 | igorglotov |
36e1ba9d1e4a83cd1fdbe3e9dbda6d6a2ca76b1c | 3,145 | cpp | C++ | Signal Flow Simulation/truetime-2.0/kernel/matlab/ttCreateTask.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2019-08-31T08:06:48.000Z | 2019-08-31T08:06:48.000Z | Signal Flow Simulation/truetime-2.0/kernel/matlab/ttCreateTask.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | null | null | null | Signal Flow Simulation/truetime-2.0/kernel/matlab/ttCreateTask.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2020-01-07T10:46:23.000Z | 2020-01-07T10:46:23.000Z | /*
* Copyright (c) 2016 Lund University
*
* Written by Anton Cervin, Dan Henriksson and Martin Ohlin,
* Department of Automatic Control LTH, Lund University, Sweden.
*
* This file is part of TrueTime 2.0.
*
* TrueTime 2.0 is free software: you can redistribute it and/or
* modify it under the terms of the GN... | 29.392523 | 100 | 0.66868 | raulest50 |
36e70d0faa5b99e46248dc857d0fba598422590b | 1,764 | cpp | C++ | src/mbgl/shaders/collision_box.cpp | sp0n-7/mapbox-gl-native | 0df37421faeaffb83564a81a469faa099434b767 | [
"BSL-1.0",
"Apache-2.0"
] | 2 | 2018-11-28T21:38:52.000Z | 2019-04-04T19:17:05.000Z | src/mbgl/shaders/collision_box.cpp | sp0n-7/mapbox-gl-native | 0df37421faeaffb83564a81a469faa099434b767 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/shaders/collision_box.cpp | sp0n-7/mapbox-gl-native | 0df37421faeaffb83564a81a469faa099434b767 | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2020-12-26T06:09:50.000Z | 2020-12-26T06:09:50.000Z | // NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
#include <mbgl/shaders/collision_box.hpp>
#include <mbgl/shaders/source.hpp>
namespace mbgl {
namespace shaders {
const char* collision_box::name = "collision_box";
const char* collision_box::vertexSource = source() + 14428;
const char* collision_box::... | 24.84507 | 96 | 0.697279 | sp0n-7 |
36e74399e6af9a3055b96e2b58bf83365a6611c2 | 3,314 | hpp | C++ | PlayRho/Common/Real.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 88 | 2017-07-13T18:12:40.000Z | 2022-03-23T03:43:11.000Z | PlayRho/Common/Real.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 388 | 2017-07-13T04:32:09.000Z | 2021-11-10T20:59:23.000Z | PlayRho/Common/Real.hpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 18 | 2017-07-20T16:14:57.000Z | 2021-06-20T07:17:23.000Z | /*
* Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this... | 45.39726 | 94 | 0.742004 | Hexlord |
36e750b9077beed22edab1cb202f2df8794fb31d | 1,000 | cpp | C++ | codeforces/A - Fancy Fence/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Fancy Fence/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Fancy Fence/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/09/2017 21:27
* solution_verdict: Accepted language: GNU C++14
* run... | 33.333333 | 111 | 0.337 | kzvd4729 |
36e76fa676db29ff8af7e32fd96821479a2873e4 | 1,038 | cpp | C++ | Miscellaneous/Dynamic Programming/wildcard.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 24 | 2021-02-09T17:59:54.000Z | 2022-03-11T07:30:38.000Z | Miscellaneous/Dynamic Programming/wildcard.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | null | null | null | Miscellaneous/Dynamic Programming/wildcard.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 3 | 2021-06-22T03:09:49.000Z | 2022-03-09T18:25:14.000Z | #include <iostream>
int main() {
int n, m;
std::cout<<"Enter length of string : ";
std::cin>>n;
char str[n + 1];
std::cout<<"Enter string : ";
std::cin>>str;
std::cout<<"Enter length of pattern : ";
std::cin>>m;
char pat[m + 1];
std::cout<<"Enter pattern : ";
std::cin>>pa... | 22.085106 | 66 | 0.381503 | chirag-singhal |
36e84838eea8780afe1b2e460e0675b0a94a633f | 1,661 | cpp | C++ | Source/Magneto/Magnet/Magnet.cpp | AlecLafita/Magneto | 8b7f1aab34572e9991717ffb7484b45ccecabe20 | [
"MIT"
] | null | null | null | Source/Magneto/Magnet/Magnet.cpp | AlecLafita/Magneto | 8b7f1aab34572e9991717ffb7484b45ccecabe20 | [
"MIT"
] | null | null | null | Source/Magneto/Magnet/Magnet.cpp | AlecLafita/Magneto | 8b7f1aab34572e9991717ffb7484b45ccecabe20 | [
"MIT"
] | null | null | null | #include "Magnet.h"
#include "MagnetRay.h"
#include "Components/StaticMeshComponent.h"
#include "Components/InputComponent.h"
#include "GameFramework/PlayerController.h"
#include "Kismet/KismetMathLibrary.h"
AMagnet::AMagnet()
{
PrimaryActorTick.bCanEverTick = true;
mMeshComponent = CreateDefaultSubobject<UStaticMe... | 24.791045 | 103 | 0.771222 | AlecLafita |
36ed6a0238d1d1e593ef14937f6cb965cbe08ebc | 247 | cpp | C++ | kontrolnya-rabota-1/task2/task2.cpp | MuKaTiR/orazbaev-timur-2021 | 2e44f1d336fbe87a0d096e0d9f56cfef6b98104f | [
"Apache-2.0"
] | null | null | null | kontrolnya-rabota-1/task2/task2.cpp | MuKaTiR/orazbaev-timur-2021 | 2e44f1d336fbe87a0d096e0d9f56cfef6b98104f | [
"Apache-2.0"
] | null | null | null | kontrolnya-rabota-1/task2/task2.cpp | MuKaTiR/orazbaev-timur-2021 | 2e44f1d336fbe87a0d096e0d9f56cfef6b98104f | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
main()
{
int x, max, min, i = 2;
cin >> min >> max;
while (cin >> x)
{
i++;
if (i % 2)
{
if (x < min)
{
min = x;
}
}
else if (x > max)
{
max = x;
}
}
cout << max + min;
} | 10.73913 | 24 | 0.425101 | MuKaTiR |
36fa294236a47a5d466d1326caf0c40ee7ff8f93 | 1,372 | cpp | C++ | GripPoints/DbDgnUnderlayGripPoints.cpp | terry-texas-us/Eo | 5652b68468c0bacd8e8da732befa2374360a4bbd | [
"MIT"
] | 1 | 2020-09-07T07:06:19.000Z | 2020-09-07T07:06:19.000Z | GripPoints/DbDgnUnderlayGripPoints.cpp | terry-texas-us/Eo | 5652b68468c0bacd8e8da732befa2374360a4bbd | [
"MIT"
] | null | null | null | GripPoints/DbDgnUnderlayGripPoints.cpp | terry-texas-us/Eo | 5652b68468c0bacd8e8da732befa2374360a4bbd | [
"MIT"
] | 2 | 2019-10-24T00:36:58.000Z | 2020-09-30T16:45:56.000Z | #include <OdaCommon.h>
#include "DbDgnUnderlayGripPoints.h"
#include <DbUnderlayReference.h>
#include <DbUnderlayDefinition.h>
#include <Gi/GiDummyGeometry.h>
#include <Ge/GeNurbCurve3d.h>
OdResult OdDbDgnUnderlayGripPointsPE::getOsnapPoints(const OdDbEntity* entity, const OdDb::OsnapMode objectSnapMode, const OdGsMar... | 57.166667 | 289 | 0.815598 | terry-texas-us |
3c02a882093d7ce5efc1f9f88864a71c28d87af1 | 14,382 | cpp | C++ | APEX_1.4/shared/general/PxUserProfilerCallback/src/PsUserProfilerPVD.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | APEX_1.4/shared/general/PxUserProfilerCallback/src/PsUserProfilerPVD.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | APEX_1.4/shared/general/PxUserProfilerCallback/src/PsUserProfilerPVD.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 25.913514 | 190 | 0.697052 | DoubleTT-Changan |
3c040770e78affea2ff73870cff5f6f02a5cf003 | 4,909 | hpp | C++ | src/physics/thermal_conduction.hpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/thermal_conduction.hpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/thermal_conduction.hpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2020, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
/**
* @file thermal_solver.hpp
*
* @brief An object containing the solver for a thermal conduction PDE
*/
#ifnde... | 25.435233 | 118 | 0.693013 | joshessman-llnl |
3c072513e9cc8f1ca894d5db59629249bf10f939 | 3,411 | hh | C++ | src/ros_tf_listener.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | src/ros_tf_listener.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | src/ros_tf_listener.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | 1 | 2021-11-29T16:46:35.000Z | 2021-11-29T16:46:35.000Z | #ifndef DYNAMIC_GRAPH_ROS_TF_LISTENER_HH
# define DYNAMIC_GRAPH_ROS_TF_LISTENER_HH
# include <boost/bind.hpp>
# include <tf/transform_listener.h>
# include <dynamic-graph/entity.h>
# include <dynamic-graph/signal.h>
# include <dynamic-graph/command-bind.h>
# include <sot/core/matrix-geometry.hh>
namespace dynamicg... | 31.293578 | 98 | 0.609792 | MaximilienNaveau |
3c0980f7da1a152303ec234ac70fba4b60892112 | 1,035 | cpp | C++ | Applied/CCore/src/ToMemBase.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/ToMemBase.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/ToMemBase.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | /* ToMemBase.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Applied Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// C... | 17.25 | 90 | 0.516908 | SergeyStrukov |
3c121eb334096ff2c91a202bd462c2666a5b976f | 758 | hpp | C++ | code/modules/data/AddListItemModule.hpp | TU-Berlin-CVRS/uipf | 57f4afcfdece904e82624453a938aafdfde8df41 | [
"BSD-2-Clause"
] | 8 | 2015-07-07T16:38:38.000Z | 2020-11-26T13:52:18.000Z | code/modules/data/AddListItemModule.hpp | TU-Berlin-CVRS/uipf | 57f4afcfdece904e82624453a938aafdfde8df41 | [
"BSD-2-Clause"
] | 129 | 2015-07-14T19:06:30.000Z | 2019-05-29T20:40:00.000Z | code/modules/data/AddListItemModule.hpp | TU-Berlin-CVRS/uipf | 57f4afcfdece904e82624453a938aafdfde8df41 | [
"BSD-2-Clause"
] | 6 | 2015-08-20T19:00:07.000Z | 2020-11-26T13:52:19.000Z | #ifndef _ADDLISTITEMMODULE_
#define _ADDLISTITEMMODULE_
#include "../../framework/ModuleInterface.hpp"
#include "../../framework/ModuleBase.hpp"
namespace uipf{
// Create an empty list
class AddListItemModule : public QObject, ModuleBase
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.tu-berlin.uipf.ModuleInterface" )
Q_INTE... | 23.6875 | 79 | 0.766491 | TU-Berlin-CVRS |
3c1398ed48d4bdd319bbdb28b953104965bcf0ca | 6,390 | cpp | C++ | update-client-hub/modules/lwm2m-mbed/source/lwm2m-monitor.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 27 | 2018-04-04T12:06:23.000Z | 2020-10-16T08:58:38.000Z | update-client-hub/modules/lwm2m-mbed/source/lwm2m-monitor.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 41 | 2018-07-12T08:09:39.000Z | 2020-11-06T13:47:43.000Z | update-client-hub/modules/lwm2m-mbed/source/lwm2m-monitor.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 53 | 2018-04-16T08:36:25.000Z | 2020-11-02T15:50:43.000Z | // ----------------------------------------------------------------------------
// Copyright 2016-2019 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 ... | 31.477833 | 103 | 0.707042 | marcuschangarm |
3c1c58b0c647d3925e2cb2cb3232b4a8e84ef37c | 872 | cpp | C++ | Pearly/src/Pearly/Renderer/Texture.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | Pearly/src/Pearly/Renderer/Texture.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | Pearly/src/Pearly/Renderer/Texture.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | #include "prpch.h"
#include "Texture.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLTexture.h"
namespace Pearly {
Ref<Texture2D> Texture2D::Create(uint32 width, uint32 height)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: PR_CORE_ASSERT(false, "Renderer API None is currently not suppo... | 27.25 | 118 | 0.729358 | JumpyLionnn |
3c1f396558e74f120b6cc10dc576dad44e7bce4f | 3,048 | cpp | C++ | src/rtsp/RtpSink.cpp | 7956968/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | 10 | 2020-07-28T01:14:49.000Z | 2021-08-19T04:33:49.000Z | src/rtsp/RtpSink.cpp | TaoistLuo/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | null | null | null | src/rtsp/RtpSink.cpp | TaoistLuo/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | 3 | 2020-09-15T11:14:55.000Z | 2020-09-30T08:39:45.000Z | /*************************************************************************
Copyright (c) 2020 Taoist Luo
Create by: Taoist Luo
CSDN:https://blog.csdn.net/daichanzhang9734/article/details/107549026
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentatio... | 29.882353 | 81 | 0.682415 | 7956968 |
3c1fa063e155984fd3faf5cd2db03ea607393732 | 22,608 | cpp | C++ | olp-cpp-sdk-core/tests/client/PendingUrlRequestsTest.cpp | OstapKL/here-data-sdk-cpp | 0f7e9078fd1b273d868337d4f859512ffd1782fb | [
"Apache-2.0"
] | 21 | 2019-07-03T07:26:52.000Z | 2019-09-04T08:35:07.000Z | olp-cpp-sdk-core/tests/client/PendingUrlRequestsTest.cpp | OstapKL/here-data-sdk-cpp | 0f7e9078fd1b273d868337d4f859512ffd1782fb | [
"Apache-2.0"
] | 639 | 2019-09-13T17:14:24.000Z | 2020-05-13T11:49:14.000Z | olp-cpp-sdk-core/tests/client/PendingUrlRequestsTest.cpp | OstapKL/here-data-sdk-cpp | 0f7e9078fd1b273d868337d4f859512ffd1782fb | [
"Apache-2.0"
] | 21 | 2020-05-14T15:32:28.000Z | 2022-03-15T13:52:33.000Z | /*
* Copyright (C) 2020 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 33.394387 | 80 | 0.675159 | OstapKL |
3c212a755a5bb5e9b921802faf3207fc8dd6b63f | 2,448 | cpp | C++ | android-31/android/inputmethodservice/AbstractInputMethodService.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/inputmethodservice/AbstractInputMethodService.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/inputmethodservice/AbstractInputMethodService.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JArray.hpp"
#include "../content/Intent.hpp"
#include "./AbstractInputMethodService_AbstractInputMethodImpl.hpp"
#include "./AbstractInputMethodService_AbstractInputMethodSessionImpl.hpp"
#include "../view/KeyEvent_DispatcherState.hpp"
#include "../view/MotionEvent.hpp"
#include "../../java/io/FileDescr... | 30.6 | 159 | 0.774918 | YJBeetle |
3c21ffb618f6158cc3d225adc5e6ead2a878075f | 396 | cpp | C++ | ds3runtime/scripts/sync_call_script.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 8 | 2021-06-05T21:59:53.000Z | 2022-02-03T10:00:09.000Z | ds3runtime/scripts/sync_call_script.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | null | null | null | ds3runtime/scripts/sync_call_script.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 5 | 2021-05-17T19:49:29.000Z | 2022-02-26T11:00:29.000Z | /*
* DS3RuntimeScripting
* Contributers: Amir
*/
#pragma once
#include "pch.h"
#include "sync_call_script.h"
#include "ds3runtime/ds3runtime.h"
namespace ds3runtime {
void SyncCallScript::execute()
{
for (auto bulletSpawn : syncBullets) bulletSpawn.launch();
syncBullets.clear();
}
void SyncCallScript::launchBul... | 17.217391 | 64 | 0.760101 | tremwil |
3c228ea65f934c84c768568390d6b2a66ab56a81 | 1,250 | cpp | C++ | LeetCode/SwapNodesInPairs.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | LeetCode/SwapNodesInPairs.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | LeetCode/SwapNodesInPairs.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | #include <sstream>
#include <stdio.h>
#include <string>
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <climits>
//#include <unordered_set>
//#include <unordered_map>
using names... | 21.186441 | 46 | 0.5528 | Michael-Ma |
3c2343c690bdbd2d26b2f2643ed7bff7572a6670 | 11,419 | cpp | C++ | src/task_jump_2.cpp | RPGP1/task-draft | 5459ea24b717c690d00909b77a76f599828f3566 | [
"Unlicense"
] | null | null | null | src/task_jump_2.cpp | RPGP1/task-draft | 5459ea24b717c690d00909b77a76f599828f3566 | [
"Unlicense"
] | null | null | null | src/task_jump_2.cpp | RPGP1/task-draft | 5459ea24b717c690d00909b77a76f599828f3566 | [
"Unlicense"
] | null | null | null | #include "task_jump.hpp"
namespace TaskManager
{
namespace Expr
{
Jump::JumpManager::JumpManagerOperator::JumpManagerOperator(const std::shared_ptr<JumpManager>& _jump_manager, const std::shared_ptr<TaskSet>& _taskset) noexcept
: JumpIf{_jump_manager, _taskset},
JumpBackIf{_jump_manager, _tasks... | 47.978992 | 237 | 0.694894 | RPGP1 |
3c2501530d7d4246a772f5c0f774edcf08c6e9dc | 3,857 | cpp | C++ | libraries/wallet/cache.cpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/wallet/cache.cpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/wallet/cache.cpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* 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. Any modified source or binaries are used only with the BitShares network.
*... | 41.473118 | 208 | 0.736064 | siwelo |
3c298f4a5eaab9ef894d24e30415b6742ef64ff5 | 1,116 | cpp | C++ | Session_05/2019/00_Particle/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 26 | 2015-09-23T12:31:16.000Z | 2020-12-14T03:19:19.000Z | Session_05/2019/00_Particle/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 2 | 2017-07-05T18:14:52.000Z | 2017-10-31T00:04:13.000Z | Session_05/2019/00_Particle/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 37 | 2015-09-19T22:10:32.000Z | 2019-12-07T19:35:55.000Z | #include "ofApp.h"
void ofApp::setup()
{
// ofSetFrameRate(1)
ofBackground(80);
position.x = ofGetWidth() / 2;
position.y = 0;
position.z = 0;
// Alternative syntax.
velocity = { 0, 0, 0 };
// Acceleration due to gravity.
// We only accelerate in the +y direction (down o... | 19.241379 | 63 | 0.545699 | SAIC-ATS |
3c2a85dfd511265cc1c722cc0044f23ef623185f | 1,245 | cpp | C++ | source/tracer/GlobalTrace.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/tracer/GlobalTrace.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/tracer/GlobalTrace.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/tracer/GlobalTrace.h"
#include "raytracing/world/World.h"
#include "raytracing/material/Material.h"
#include "raytracing/utilities/ShadeRec.h"
#include "raytracing/utilities/Constants.h"
namespace rt
{
GlobalTrace::GlobalTrace(const World& world)
: Tracer(world)
{
}
RGBColor GlobalTrace::TraceR... | 19.453125 | 77 | 0.636145 | xzrunner |
3c2ea94823802909038a93a49ee82226fd5f3c2f | 1,966 | hpp | C++ | lkCommon/include/lkCommon/Utils/StaticStack.hpp | lookeypl/lkCommon | efd08396f2b151a320e103bd8111b745246b44e8 | [
"WTFPL"
] | 1 | 2020-11-11T20:05:19.000Z | 2020-11-11T20:05:19.000Z | lkCommon/include/lkCommon/Utils/StaticStack.hpp | lookeypl/lkCommon | efd08396f2b151a320e103bd8111b745246b44e8 | [
"WTFPL"
] | null | null | null | lkCommon/include/lkCommon/Utils/StaticStack.hpp | lookeypl/lkCommon | efd08396f2b151a320e103bd8111b745246b44e8 | [
"WTFPL"
] | null | null | null | #pragma once
#define _LKCOMMON_UTILS_STATIC_STACK_HPP_
#include "lkCommon/lkCommon.hpp"
#include <stddef.h>
namespace lkCommon {
namespace Utils {
/**
* A lightweight LIFO stack implementation with zero dynamic allocations.
*
* @warning For performance, this stack does not perform any checks on
* Relea... | 22.340909 | 79 | 0.614954 | lookeypl |
3c367342b0ae3cec2e0d19dc53bc66c2d47489e8 | 440 | cpp | C++ | src/tibb/src/TabbedScene.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | src/tibb/src/TabbedScene.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | src/tibb/src/TabbedScene.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2012-2013 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TabbedScene.h"
#include <bb/cascades/TabbedPane>
using namespace bb::... | 20 | 70 | 0.736364 | ssaracut |
3c426f062de1b588cf562c6fb8184caeb0d0aa15 | 3,238 | cpp | C++ | src/gui/profile_list_model.cpp | adam-currie/fannn | b8433b9cc223b98a976590796986a2b0a1e68a68 | [
"MIT"
] | 2 | 2021-10-16T01:43:03.000Z | 2021-12-12T20:28:43.000Z | src/gui/profile_list_model.cpp | adam-currie/fannn | b8433b9cc223b98a976590796986a2b0a1e68a68 | [
"MIT"
] | null | null | null | src/gui/profile_list_model.cpp | adam-currie/fannn | b8433b9cc223b98a976590796986a2b0a1e68a68 | [
"MIT"
] | null | null | null | #include "profile_list_model.h"
#include "profile_persister.h"
#include <algorithm>
#include <stdexcept>
#include <string>
#include "containers_util.h"
using std::string;
using Fannn::Util::contains;
ProfileListModel::ProfileListModel(QObject *parent) : QAbstractListModel(parent) {
auto persister = Fannn::Profile... | 31.436893 | 101 | 0.684064 | adam-currie |
3c43bf70da25fd81b8ba016b6ce73a5c16e7f0d8 | 19,774 | cxx | C++ | resip/recon/UserAgent.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | resip/recon/UserAgent.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | resip/recon/UserAgent.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "UserAgent.hxx"
#include "UserAgentDialogSetFactory.hxx"
#include "UserAgentCmds.hxx"
#include "UserAgentServerAuthManager.hxx"
#include "UserAgentClientSubscription.hxx"
#include "UserAgentRegistration.hxx"
#include "ReconSubsystem.hxx"
#include "reflow/FlowMa... | 31.337559 | 160 | 0.720239 | dulton |
3c47704ffffe4ef4c955177924b541d952ea6157 | 46,864 | cpp | C++ | src/updater.cpp | smarttowel/AppImageUpdate | ac5376d70e55bb9d4684a5bede555f0bbcbfb249 | [
"MIT"
] | null | null | null | src/updater.cpp | smarttowel/AppImageUpdate | ac5376d70e55bb9d4684a5bede555f0bbcbfb249 | [
"MIT"
] | null | null | null | src/updater.cpp | smarttowel/AppImageUpdate | ac5376d70e55bb9d4684a5bede555f0bbcbfb249 | [
"MIT"
] | null | null | null | // system headers+
#include <algorithm>
#include <chrono>
#include <deque>
#include <fnmatch.h>
#include <fstream>
#include <iostream>
#include <libgen.h>
#include <mutex>
#include <sstream>
#include <thread>
#include <unistd.h>
// library headers
#include <zsclient.h>
#include <hashlib/sha256.h>
#include <cpr/cpr.h>
... | 41.88025 | 134 | 0.485959 | smarttowel |
3c48c916165d83ea1649606af974f6d4ae2b10e1 | 21,267 | cpp | C++ | bebop_driver/src/bebop.cpp | itssme/bebop_autonomy | f061c8a2c45526eb79c1ba0aaa09618bbd9408d0 | [
"BSD-3-Clause"
] | 2 | 2019-02-12T14:55:21.000Z | 2021-02-15T23:32:36.000Z | bebop_driver/src/bebop.cpp | itssme/bebop_autonomy | f061c8a2c45526eb79c1ba0aaa09618bbd9408d0 | [
"BSD-3-Clause"
] | null | null | null | bebop_driver/src/bebop.cpp | itssme/bebop_autonomy | f061c8a2c45526eb79c1ba0aaa09618bbd9408d0 | [
"BSD-3-Clause"
] | null | null | null | /**
Software License Agreement (BSD)
\file bebop.cpp
\authors Mani Monajjemi <mmonajje@sfu.ca>
\copyright Copyright (c) 2015, Autonomy Lab (Simon Fraser University), All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following c... | 32.972093 | 168 | 0.723045 | itssme |
3c511c5a89914a48912e42920f3246b389530021 | 2,662 | hpp | C++ | include/utility/persistent_container/container_config.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/persistent_container/container_config.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/persistent_container/container_config.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef ___UTILITY__PERSISTENT__CONTAINER__CONFIG___
#define ___UTILITY__PERSISTENT__CONTAINER__CONFIG___
#include<utility/config/utility_config.hpp>
namespace utility
{
namespace persistent_container
{
namespace config
{
struct cache_config
{
public:
typedef ... | 30.597701 | 80 | 0.624718 | SakuraLife |
3c5627ae8d7edb3d1b23dfb28c9c6b5da0a91d5b | 6,818 | cxx | C++ | Podd/THaBPM.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaBPM.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaBPM.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// //
// THaBPM //
// //
... | 29.903509 | 80 | 0.579642 | leadmocha |
3c5db36a85222d394f0cd4ceb37fc551de360fd0 | 453 | hpp | C++ | src/engine/window/Surface.hpp | Lothav/volkano | b345091e4066727ca5cf72111453c0f6a82285a3 | [
"MIT"
] | null | null | null | src/engine/window/Surface.hpp | Lothav/volkano | b345091e4066727ca5cf72111453c0f6a82285a3 | [
"MIT"
] | null | null | null | src/engine/window/Surface.hpp | Lothav/volkano | b345091e4066727ca5cf72111453c0f6a82285a3 | [
"MIT"
] | null | null | null | //
// Created by luiz0tavio on 8/30/18.
//
#ifndef VOLKANO_SURFACE_HPP
#define VOLKANO_SURFACE_HPP
#include <cstdint>
#include <vulkan/vulkan.h>
namespace vkn
{
class Surface
{
private:
static uint16_t width;
static uint16_t height;
static VkSurfaceKHR surface;
publ... | 13.727273 | 36 | 0.615894 | Lothav |
3c6b9e29ecbcfa8cb09c1a52a24adc71ac377dfc | 507 | cpp | C++ | AIC/AIC'20 - Level 1 Training/Sheet #3/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 1 Training/Sheet #3/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 1 Training/Sheet #3/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://codeforces.com/group/Rv2Qzg0DgK/contest/272491/problem/E
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
int n;
cin >> n;
vector<int> v(n... | 24.142857 | 66 | 0.617357 | MaGnsio |
3c721e2350479e5bd1ad28f3110b34e6313463bf | 47,440 | inl | C++ | include/bolt/cl/detail/transform.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | 1 | 2016-11-29T21:03:54.000Z | 2016-11-29T21:03:54.000Z | include/bolt/cl/detail/transform.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | include/bolt/cl/detail/transform.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | /***************************************************************************
* Copyright 2012 - 2013 Advanced Micro Devices, 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
*
* ... | 48.806584 | 143 | 0.633284 | jayavanth |
3c72e3f286a37d536acaa51ed811edb1aa4998aa | 1,418 | hpp | C++ | dp/longest-common-subsequence.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 2 | 2021-06-24T11:21:08.000Z | 2022-03-15T05:57:25.000Z | dp/longest-common-subsequence.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 102 | 2021-10-30T21:30:00.000Z | 2022-03-26T18:39:47.000Z | dp/longest-common-subsequence.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | null | null | null | #pragma once
#include "./base.hpp"
#include <string>
#include <vector>
namespace dp {
// verify:EDPC_F
template <typename T>
struct LongestCommonSubsequence {
vector<T> s, t;
int h, w;
vector<vector<int>> dp;
LongestCommonSubsequence(vector<T> _s, vector<T> _t): s(_s), t(_t) {
h = _s.size... | 23.245902 | 72 | 0.415374 | matumoto1234 |
3c76e16dc82dd5a00270d85ce260dcad65378378 | 867 | hpp | C++ | NWNXLib/API/Mac/API/CJoiningRestrictions.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/CJoiningRestrictions.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CJoiningRestrictions.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct CJoiningRestrictions
{
int32_t bAllowLocal;
int32_t bAllowServer;
int32_t bAllowVault;
int32_t bFixedParties;
int32_t bAllowFighter;
int32_t bAllowBarbarian;
int32_t bAllowRanger;
int32_t bAllowPaladin;
in... | 19.266667 | 34 | 0.727797 | acaos |
3c77efa73935544b65f3479175f705e0342d9da0 | 10,431 | cpp | C++ | Sources/src/SpecialAttack.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/src/SpecialAttack.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/src/SpecialAttack.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null |
/**
* 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"); yo... | 45.75 | 157 | 0.705685 | Tifox |
3c78bcb00b7035c0bd7a9fc3c399314fd5270126 | 1,391 | cpp | C++ | src/image/color.cpp | eisbehr/c10t | c30e55613fa0203cba84cb153392a55391279551 | [
"BSD-3-Clause"
] | 1 | 2016-06-07T17:34:32.000Z | 2016-06-07T17:34:32.000Z | src/image/color.cpp | eisbehr/c10t | c30e55613fa0203cba84cb153392a55391279551 | [
"BSD-3-Clause"
] | null | null | null | src/image/color.cpp | eisbehr/c10t | c30e55613fa0203cba84cb153392a55391279551 | [
"BSD-3-Clause"
] | null | null | null | // Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
#include "image/color.hpp"
#include <sstream>
#include <string>
uint8_t alpha_over_c(uint8_t u, uint8_t o, uint8_t ua, uint8_t oa);
/**
* Takes two color values and does an alpha over blending without usi... | 28.387755 | 79 | 0.580158 | eisbehr |
3c7c76ccc0b9697dfeef26c9bd802a064be5c755 | 3,526 | cpp | C++ | All Project/project1.cpp | jaibae21/CPE211_S2021_UAH | 9e8e5452526288699e0d7ee22ed393857233501e | [
"MIT"
] | null | null | null | All Project/project1.cpp | jaibae21/CPE211_S2021_UAH | 9e8e5452526288699e0d7ee22ed393857233501e | [
"MIT"
] | null | null | null | All Project/project1.cpp | jaibae21/CPE211_S2021_UAH | 9e8e5452526288699e0d7ee22ed393857233501e | [
"MIT"
] | 1 | 2022-03-26T08:52:00.000Z | 2022-03-26T08:52:00.000Z | //******************************************************************
// The following is a partial header comment block. Modify the
// appropriate parts by putting in your information. Look at
// the samples handed out to make any necessary additions
// You may delete this line and the three above it.
// Paycheck pro... | 41 | 83 | 0.533749 | jaibae21 |
3c85d79c77277da0d6a478b6e02766ddbdaacd54 | 3,289 | cpp | C++ | ext/ruby_mapnik/_mapnik_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 21 | 2015-02-04T17:22:57.000Z | 2021-12-30T22:08:47.000Z | ext/ruby_mapnik/_mapnik_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 20 | 2015-04-14T16:43:53.000Z | 2019-10-01T16:18:50.000Z | ext/ruby_mapnik/_mapnik_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 3 | 2015-05-27T11:27:50.000Z | 2020-09-09T09:36:24.000Z | /*****************************************************************************
Copyright (C) 2011 Elliot Laster
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... | 43.853333 | 129 | 0.697172 | gravitystorm |
3c8813b77a323462c1c77cf469e7e022beab5f4a | 1,433 | cpp | C++ | startalk_ui/QuitOnCloseNotice.cpp | xuepingiw/open_source_startalk | 44d962b04039f5660ec47a10313876a0754d3e72 | [
"MIT"
] | 34 | 2019-03-18T08:09:24.000Z | 2022-03-15T02:03:25.000Z | startalk_ui/QuitOnCloseNotice.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 5 | 2019-05-29T09:32:05.000Z | 2019-08-29T03:01:33.000Z | startalk_ui/QuitOnCloseNotice.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 32 | 2019-03-15T09:43:22.000Z | 2021-08-10T08:26:02.000Z | #include "QuitOnCloseNotice.h"
#include "CustomDefine.h"
#include "Session.h"
#include "SettingData.h"
QuitOnCloseNotice::QuitOnCloseNotice(QWidget *parent)
: LocalManDialog(parent)
{
ui.setupUi(this);
using namespace Qt;
auto remove = WindowTitleHint;
auto add = FramelessWindowHint | WindowMinMa... | 31.152174 | 87 | 0.718772 | xuepingiw |
3c8949e9b3a96b2201de99d1dc955aff51025ef6 | 9,213 | cpp | C++ | src/frontend/CameraParams.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 1,024 | 2019-09-20T22:55:09.000Z | 2022-03-30T13:00:14.000Z | src/frontend/CameraParams.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 154 | 2019-09-23T13:10:33.000Z | 2022-03-07T02:36:52.000Z | src/frontend/CameraParams.cpp | lefthandwriter/Kimera-VIO | 641576fd86bdecbd663b4db3cb068f49502f3a2c | [
"BSD-2-Clause"
] | 314 | 2019-09-20T23:49:05.000Z | 2022-03-30T06:21:38.000Z | /* ----------------------------------------------------------------------------
* Copyright 2017, Massachusetts Institute of Technology,
* Cambridge, MA 02139
* All Rights Reserved
* Authors: Luca Carlone, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------... | 38.873418 | 80 | 0.604798 | lefthandwriter |
3c92ab6b4300d500a8b9f8314224a28c3b0daa40 | 5,638 | hpp | C++ | src/include/def/defrCallBacks.hpp | jinwookjungs/lefdef_parser | 32829274d247c418c080328484359a750dae4cec | [
"Apache-2.0"
] | 13 | 2019-04-21T08:09:32.000Z | 2022-02-20T03:06:30.000Z | src/include/def/defrCallBacks.hpp | jinwookjungs/lefdef_parser | 32829274d247c418c080328484359a750dae4cec | [
"Apache-2.0"
] | 3 | 2019-06-06T02:40:27.000Z | 2021-12-01T04:56:20.000Z | src/include/def/defrCallBacks.hpp | jinwookjungs/lefdef_parser | 32829274d247c418c080328484359a750dae4cec | [
"Apache-2.0"
] | 6 | 2016-10-21T08:39:35.000Z | 2021-01-30T12:38:58.000Z | // *****************************************************************************
// *****************************************************************************
// Copyright 2013, Cadence Design Systems
//
// This file is part of the Cadence LEF/DEF Open Source
// Distribution, Product Version 5.8.
//
//... | 34.802469 | 80 | 0.745654 | jinwookjungs |
3c963c48ed7a3b1a6d6f30426e3a72c66a7ccea8 | 15,048 | cpp | C++ | 2018/Cpp/day16/part2.cpp | tymscar/Advent-Of-Code | cd7b96b0253191e236bd704b0d8b5540fb3e8ef6 | [
"MIT"
] | 4 | 2019-12-08T08:20:53.000Z | 2021-12-17T12:04:11.000Z | 2018/Cpp/day16/part2.cpp | tymscar/AdventOfCode2018 | 9742ddb6bbbc917062baad87d6b6de75375f1ae8 | [
"MIT"
] | null | null | null | 2018/Cpp/day16/part2.cpp | tymscar/AdventOfCode2018 | 9742ddb6bbbc917062baad87d6b6de75375f1ae8 | [
"MIT"
] | 4 | 2020-12-11T22:10:24.000Z | 2021-12-25T22:39:05.000Z | #include <iostream>
#include <algorithm>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <string>
std::vector<int> eqrr (int inputOne, int inputTwo, int output, std::vector<int> registorState){
if(registorState[inputOne] == registorState[inputTwo])
registorState[output] = 1;
else
registor... | 37.064039 | 145 | 0.692517 | tymscar |
3ca577b50d33370110df1c57a236191a92213102 | 457 | hpp | C++ | include/commonpp/metric/reservoir/types.hpp | deco016/commonpp | ad03dcb6f7dc67359d898016c37a848c855c515b | [
"BSD-2-Clause"
] | 32 | 2015-09-17T20:55:58.000Z | 2022-01-24T12:00:39.000Z | include/commonpp/metric/reservoir/types.hpp | deco016/commonpp | ad03dcb6f7dc67359d898016c37a848c855c515b | [
"BSD-2-Clause"
] | 7 | 2015-11-17T21:06:36.000Z | 2018-01-30T09:45:15.000Z | include/commonpp/metric/reservoir/types.hpp | deco016/commonpp | ad03dcb6f7dc67359d898016c37a848c855c515b | [
"BSD-2-Clause"
] | 11 | 2015-09-18T09:11:39.000Z | 2019-10-06T14:53:22.000Z | /*
* File: include/commonpp/metric/reservoir/types.hpp
* Part of commonpp.
*
* Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the
* project root).
*
* Copyright (c) 2015 Thomas Sanchez. All rights reserved.
*
*/
#pragma once
namespace commonpp
{
namespace metric
{
namespace reservoir
{
... | 14.741935 | 74 | 0.719912 | deco016 |
3ca5ebca20592b48d04d484d09bf44e10da34824 | 8,325 | cpp | C++ | soccer/planning/tests/TrajectoryTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/tests/TrajectoryTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/tests/TrajectoryTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <rrt/planning/Path.hpp>
#include "TestingUtils.hpp"
#include "math.h"
#include "planning/Instant.hpp"
#include "planning/Trajectory.hpp"
#include "planning/planner/PathTargetPlanner.hpp"
#include "planning/primitives/PathSmoothing.hpp"
#include "planning/primitives/RRTUtil.hpp"
#incl... | 35.126582 | 80 | 0.634715 | kasohrab |
3ca8d24dcd9171cf7ae5ca2e50cfd0a576b26358 | 2,100 | cpp | C++ | functions/+Image/borderFill.cpp | kkapsner/Matlab | 98d42184f78b13a4bcb586fab48ad444028163d9 | [
"MIT"
] | 1 | 2017-02-12T19:37:17.000Z | 2017-02-12T19:37:17.000Z | functions/+Image/borderFill.cpp | kkapsner/Matlab | 98d42184f78b13a4bcb586fab48ad444028163d9 | [
"MIT"
] | 3 | 2015-01-07T20:12:07.000Z | 2018-08-22T18:26:38.000Z | functions/+Image/borderFill.cpp | kkapsner/Matlab | 98d42184f78b13a4bcb586fab48ad444028163d9 | [
"MIT"
] | null | null | null | #include "mex.h"
#include "borderFill/List.cpp"
#define idx(dx, dy) (x + dx) * h + y + dy
#define check(dx, dy){\
idx = idx(dx, dy);\
if ((image[idx] == image[idx0]) && !outImage[idx]){\
outImage[idx] = 1;\
pixelList.push(x + dx, y + dy);\
}\
}
/*
* borderFill.cpp
*/
void mexFunction( i... | 22.580645 | 57 | 0.439048 | kkapsner |
3cb2fc5dc695c437874bf7f2b28c374e3ca55c1e | 4,449 | cpp | C++ | src/executable/plot_shasta_alignments.cpp | rlorigro/overlap_analysis | 8c8753aeba40c4ba82e0c0499fc8c2f134ba7145 | [
"Apache-2.0"
] | null | null | null | src/executable/plot_shasta_alignments.cpp | rlorigro/overlap_analysis | 8c8753aeba40c4ba82e0c0499fc8c2f134ba7145 | [
"Apache-2.0"
] | null | null | null | src/executable/plot_shasta_alignments.cpp | rlorigro/overlap_analysis | 8c8753aeba40c4ba82e0c0499fc8c2f134ba7145 | [
"Apache-2.0"
] | null | null | null | #include "SvgPlot.hpp"
#include "boost/program_options.hpp"
using boost::program_options::options_description;
using boost::program_options::variables_map;
using boost::program_options::bool_switch;
using boost::program_options::value;
#include <istream>
#include <iostream>
#include <functional>
using std::experime... | 26.963636 | 134 | 0.595639 | rlorigro |
3cb4849b893113fc861a211801931323b02e049a | 414 | cpp | C++ | RemoveTypeVaArgsT.cpp | DaemonSnake/MetaProgramming | 6eed2293b926e4cc856263adf2ce1e00d04f362d | [
"MIT"
] | null | null | null | RemoveTypeVaArgsT.cpp | DaemonSnake/MetaProgramming | 6eed2293b926e4cc856263adf2ce1e00d04f362d | [
"MIT"
] | null | null | null | RemoveTypeVaArgsT.cpp | DaemonSnake/MetaProgramming | 6eed2293b926e4cc856263adf2ce1e00d04f362d | [
"MIT"
] | null | null | null | //
// test.cpp for in /home/penava_b
//
// Made by penava_b
// Login <penava_b@epitech.net>
//
// Started on Wed Apr 20 23:55:00 2016 penava_b
// Last update Mon Jul 11 14:23:32 2016 penava_b
//
#include "Mpl.hpp"
using namespace MPL;
template <class ...Args> class TMP {};
Unit(RemoveType)
{
using OLD = TMP... | 18 | 49 | 0.657005 | DaemonSnake |
3cb6b170b6cb89fd04156d5a35c905f27952ebb8 | 2,593 | cpp | C++ | homescreen/src/statusbarserver.cpp | hungsonspkt/homescreen | 57d13f02f6904a95fd14a3bcaf9ea80b4176f76d | [
"Apache-2.0"
] | null | null | null | homescreen/src/statusbarserver.cpp | hungsonspkt/homescreen | 57d13f02f6904a95fd14a3bcaf9ea80b4176f76d | [
"Apache-2.0"
] | null | null | null | homescreen/src/statusbarserver.cpp | hungsonspkt/homescreen | 57d13f02f6904a95fd14a3bcaf9ea80b4176f76d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2016 The Qt Company Ltd.
* Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
*
* 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://w... | 29.134831 | 89 | 0.70806 | hungsonspkt |
3cb71a962e4f3a3b6457b7da63990ad75ca6ab3d | 5,490 | cpp | C++ | lib_ecm/components/cmp_text.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | lib_ecm/components/cmp_text.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | lib_ecm/components/cmp_text.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | #include "cmp_text.h"
#include <system_renderer.h>
#include <system_resources.h>
using namespace sf;
//General text component
void TextComponent::update(double dt)
{
_text.setPosition(_parent->getPosition());
}
void TextComponent::render() { Renderer::queue(&_text); }
TextComponent::TextComponent(Entity* cons... | 28.010204 | 109 | 0.710383 | OlavJDigranes |
3cba9e6d5b3aa71faded3c8bbef606d2d265971b | 3,039 | c++ | C++ | extra/xftp/tests/test2.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | extra/xftp/tests/test2.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | extra/xftp/tests/test2.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | #include <libstreamcon/sctpconnection.h++>
#include <libstreamcon/databuffer.h++>
#include <libstreamcon/stream.h++>
#include <sys/time.h>
#include <libstreamcon/sctpclient.h++>
#include <libstreamcon/iofilters/tlsfilter.h++>
using namespace streamcon;
Mutex mutex;
#define KEYFILE "client.pem"
#define PASSWORD "pass... | 22.021739 | 88 | 0.629483 | maciek-27 |
3cbd6853c10d29c70ee6b9947316bb549c042402 | 411 | cpp | C++ | Alphabetic Patterns/alphabeticpattern56.cpp | Kajal13081/CPlusPlus-PatternHouse | 257270f9b01e099f9c13f5bde39f07172f5474c0 | [
"MIT"
] | 4 | 2021-09-21T03:43:26.000Z | 2022-01-07T03:07:56.000Z | Alphabetic Patterns/alphabeticpattern56.cpp | Kajal13081/CPlusPlus-PatternHouse | 257270f9b01e099f9c13f5bde39f07172f5474c0 | [
"MIT"
] | 916 | 2021-09-01T15:40:24.000Z | 2022-01-10T17:57:59.000Z | Alphabetic Patterns/alphabeticpattern56.cpp | Kajal13081/CPlusPlus-PatternHouse | 257270f9b01e099f9c13f5bde39f07172f5474c0 | [
"MIT"
] | 20 | 2021-09-30T18:13:58.000Z | 2022-01-06T09:55:36.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
int cur_char=4; //(A+4 =E)
for (int i=0;i<5;i++)
{
int inc=0;
for (int j=i;j<i+5;j++)
{
inc=j;
if(inc>cur_char)
inc=inc-cur_char-1; //if char is > E , char is A
... | 21.631579 | 82 | 0.372263 | Kajal13081 |
3cbd9c86363034b011acf78b8abdb64e698e2e43 | 3,665 | cpp | C++ | mogupro/game/src/Sound/cIntroLoopableBGM.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Sound/cIntroLoopableBGM.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Sound/cIntroLoopableBGM.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | #include <Sound/cIntroLoopableBGM.h>
#include <cinder/app/App.h>
#include <Utility/cScheduler.h>
namespace Sound
{
cIntroLoopableBGM::cIntroLoopableBGM( )
{
alGenSources( 1, &source );
}
cIntroLoopableBGM::~cIntroLoopableBGM( )
{
if ( source != 0 )
{
stop( );
alDeleteSources( 1, &source );
}
if ( introId != 0 ... | 25.10274 | 172 | 0.687312 | desspert |
3cbf4c7b482bbf9aad85eed5762b795f1b257b79 | 2,020 | cpp | C++ | src/ui/Windows/TBMStatic.cpp | rafaelx/pwsafe | 173a5c16ae2f9071efa67f628d21c30d4486effd | [
"Artistic-2.0"
] | null | null | null | src/ui/Windows/TBMStatic.cpp | rafaelx/pwsafe | 173a5c16ae2f9071efa67f628d21c30d4486effd | [
"Artistic-2.0"
] | null | null | null | src/ui/Windows/TBMStatic.cpp | rafaelx/pwsafe | 173a5c16ae2f9071efa67f628d21c30d4486effd | [
"Artistic-2.0"
] | null | null | null | /*
* Copyright (c) 2003-2019 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
// TBMStatic.cpp : im... | 27.297297 | 81 | 0.676733 | rafaelx |
3cc475c5f1d5bdec62d26b69d397cbd2a528b9c2 | 76,727 | cpp | C++ | src/hpack.cpp | jonathonl/IPSuite | 76dfd7913388851c6714645252b2caa3c5596dcc | [
"MIT"
] | 1 | 2016-03-01T15:23:13.000Z | 2016-03-01T15:23:13.000Z | src/hpack.cpp | jonathonl/IPSuite | 76dfd7913388851c6714645252b2caa3c5596dcc | [
"MIT"
] | null | null | null | src/hpack.cpp | jonathonl/IPSuite | 76dfd7913388851c6714645252b2caa3c5596dcc | [
"MIT"
] | null | null | null |
#include <cmath>
#include <assert.h>
#include <iostream>
#include "hpack.hpp"
namespace std
{
template <>
struct hash<std::pair<std::string,std::string>>
{
std::size_t operator()(const std::pair<std::string,std::string>& k) const
{
// Compute individual hash values for first,
// second and ... | 74.132367 | 204 | 0.37855 | jonathonl |
3cc56bf3287b00c9261fbea80a9f7b9177dab509 | 10,096 | cpp | C++ | source/deepnetvideo/source/deepnetvideo.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | null | null | null | source/deepnetvideo/source/deepnetvideo.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | 1 | 2017-02-18T10:51:07.000Z | 2017-02-18T10:51:07.000Z | source/deepnetvideo/source/deepnetvideo.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2016 Hypha
#include "hyphaplugins/deepnetvideo/deepnetvideo.h"
#include <cmath>
#include <cstdlib>
#include <exception>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <thread>
#include <vector>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>... | 28.280112 | 91 | 0.630349 | hyphaproject |
3cc5e04a4bf2135ad3f0d4602ff3053dd7b68376 | 3,533 | cpp | C++ | FallingSandSurvival/IngameUI.cpp | PieKing1215/FallingSandSurvival | 04e11940b5bd6bc867e880d7dd656ab32035a241 | [
"BSD-3-Clause"
] | 70 | 2020-06-06T16:13:41.000Z | 2022-03-24T15:49:09.000Z | FallingSandSurvival/IngameUI.cpp | PieKing1215/FallingEverythingSurvival | e2c8a0761794c9603591a5670d08c07c7ffb3b90 | [
"BSD-3-Clause"
] | 13 | 2020-05-06T23:05:41.000Z | 2022-02-21T19:47:09.000Z | FallingSandSurvival/IngameUI.cpp | PieKing1215/FallingEverythingSurvival | e2c8a0761794c9603591a5670d08c07c7ffb3b90 | [
"BSD-3-Clause"
] | 19 | 2020-09-04T02:18:16.000Z | 2022-03-24T22:19:11.000Z | #include "UIs.hpp"
#include "DiscordIntegration.hpp"
#define timegm _mkgmtime
#define BUILD_WITH_EASY_PROFILER
#include <easy/profiler.h>
#include "ProfilerConfig.hpp"
int IngameUI::state = 0;
bool IngameUI::visible = false;
bool IngameUI::setup = false;
void IngameUI::Setup() {
}
void IngameUI::Draw(Game* game... | 31.265487 | 165 | 0.667988 | PieKing1215 |
3cc61b71355a32cd0cd93491fbd5e80ad54be055 | 11,005 | cc | C++ | src/common/zp_conf.cc | CatKang/zeppelin | 25b329d910d55465a04959e21daa92790ed7b361 | [
"Apache-2.0"
] | 413 | 2017-03-21T00:31:26.000Z | 2022-03-07T12:03:25.000Z | src/common/zp_conf.cc | CatKang/zeppelin | 25b329d910d55465a04959e21daa92790ed7b361 | [
"Apache-2.0"
] | 21 | 2017-05-10T14:40:46.000Z | 2018-02-03T18:19:15.000Z | src/common/zp_conf.cc | CatKang/zeppelin | 25b329d910d55465a04959e21daa92790ed7b361 | [
"Apache-2.0"
] | 92 | 2017-03-22T09:57:14.000Z | 2022-02-10T01:20:57.000Z | #include "include/zp_conf.h"
#include "include/zp_const.h"
#include "slash/include/base_conf.h"
static int64_t BoundaryLimit(int64_t target, int64_t floor, int64_t ceil) {
target = (target < floor) ? floor : target;
target = (target > ceil) ? ceil : target;
return target;
}
ZpConf::ZpConf(const std::string& pa... | 54.480198 | 111 | 0.750204 | CatKang |
3cc97f66eafcd6fce27974d471ff9df22021f2e1 | 2,079 | cxx | C++ | examples/40-numcxx-pde/40-stationary-heat-fe.cxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | examples/40-numcxx-pde/40-stationary-heat-fe.cxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | examples/40-numcxx-pde/40-stationary-heat-fe.cxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | ///
/// \example 40-stationary-heat-fe.cxx
///
/// Finite element method for stationary heat equation
///
#include <cstdio>
#include <iostream>
#include <ctime>
#include <cmath>
#include <numcxx/numcxx.hxx>
#include <numcxx/simplegrid.hxx>
#include <numcxx/fem2d.hxx>
#ifdef VTKFIG
#include "numcxx/vtkfig-simplegrid.hx... | 17.922414 | 75 | 0.619529 | j-fu |
3cce0ade454ad1af19c8bdb9f4c304f18994e4aa | 577 | hpp | C++ | src/Components/SatteliteBody.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | null | null | null | src/Components/SatteliteBody.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | null | null | null | src/Components/SatteliteBody.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | 1 | 2020-03-30T05:00:54.000Z | 2020-03-30T05:00:54.000Z | #pragma once
#include <entt/entity/fwd.hpp>
namespace Components
{
struct SatteliteBody
{
entt::entity Orbiting;
float Distance, Speed;
float CurrentAngle;
SatteliteBody() : Distance{}, Speed{}, CurrentAngle{} { }
SatteliteBody(entt::entity aOrbiting, float aDistance, float aSpeed) : Orbiting(a... | 27.47619 | 184 | 0.729636 | ananace |
3cced1a593e29b215c4b5d63e17fbc685eba9ae6 | 528 | cpp | C++ | shared/offline_compiler/source/utilities/linux/get_path.cpp | raiyanla/compute-runtime | 43433244f9d17e9c989116808757705754ddbfee | [
"MIT"
] | 1 | 2020-04-17T05:46:04.000Z | 2020-04-17T05:46:04.000Z | shared/offline_compiler/source/utilities/linux/get_path.cpp | dkjiang2018/compute-runtime | 310947e6ddefc4bb9a7a268fc1ee8639155b730c | [
"MIT"
] | null | null | null | shared/offline_compiler/source/utilities/linux/get_path.cpp | dkjiang2018/compute-runtime | 310947e6ddefc4bb9a7a268fc1ee8639155b730c | [
"MIT"
] | 1 | 2020-05-25T21:57:51.000Z | 2020-05-25T21:57:51.000Z | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include <sstream>
#include <string>
#include <sys/types.h>
#include <unistd.h>
std::string getPath() {
char exepath[128] = {0};
std::stringstream ss;
ss << "/proc/" << getpid() << "/exe";
if (readlink(ss.str().c_str(... | 21.12 | 58 | 0.558712 | raiyanla |
3cd0ed5b8d8c9e4a5324fb75f2189e190ff8ac36 | 149 | hpp | C++ | pagerank.hpp | gbossi/Pagerank-DOBFS | bfeb88e8778349dee66308a75d9acb2cfc7f57d0 | [
"MIT"
] | 3 | 2018-11-19T02:15:40.000Z | 2021-04-10T09:40:01.000Z | pagerank.hpp | gbossi/Pagerank-DOBFS | bfeb88e8778349dee66308a75d9acb2cfc7f57d0 | [
"MIT"
] | null | null | null | pagerank.hpp | gbossi/Pagerank-DOBFS | bfeb88e8778349dee66308a75d9acb2cfc7f57d0 | [
"MIT"
] | 1 | 2021-09-19T02:01:03.000Z | 2021-09-19T02:01:03.000Z | #ifndef _PAGERANK_HPP_
#define _PAGERANK_HPP_
#include "graph.hpp"
#include <boost/graph/page_rank.hpp>
void pagerank(Graph&, double, int);
#endif | 16.555556 | 36 | 0.771812 | gbossi |
3cd1f94d974c2298039d4de584a8e42861372ace | 546 | cpp | C++ | Data_Structures/Stacks/largest_area_hist.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Data_Structures/Stacks/largest_area_hist.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Data_Structures/Stacks/largest_area_hist.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | // Given an array of integers A of size N. A represents a histogram i.e A[i] denotes height of
// the ith histogram’s bar. Width of each bar is 1.
// Largest Rectangle in Histogram: Example 1
// Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
//
// | | | | | |
// | | | | |
// |... | 24.818182 | 94 | 0.611722 | abhishekjha786 |
3cd35c24450e778221b75c946dbf8b72a7134df7 | 1,023 | cpp | C++ | Outer.Tlibc/puts.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 15 | 2017-05-15T15:52:24.000Z | 2022-03-23T06:48:48.000Z | Outer.Tlibc/puts.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | null | null | null | Outer.Tlibc/puts.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 4 | 2017-09-07T10:55:36.000Z | 2021-01-29T08:51:01.000Z | // puts.cpp
// based on:
// LIBCTINY - Matt Pietrek 2001
// MSDN Magazine, January 2001
// 08/12/06 (mv)
#include <windows.h>
#include <stdio.h>
#include "libct.h"
EXTERN_C int puts(const char *s)
{
//DWORD cbWritten;
//HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
int bw = fwrite(s, ... | 23.25 | 70 | 0.621701 | lusores |
3cd65db0773149765563238fdcc2b5d83f2573f5 | 1,186 | hpp | C++ | src/io/ValueReader.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | src/io/ValueReader.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | src/io/ValueReader.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | #pragma once
#include <cstring>
#include "DOFVector.hpp"
#include "Mesh.hpp"
namespace AMDiS
{
namespace io
{
/** \ingroup Input
*
* \brief
* Namespace of methods which read a value file in AMDiS format and copies
* the data to a DOF vector.
*/
namespace ValueReader
{
... | 24.708333 | 78 | 0.546374 | spraetor |
3cde63f230a04be8f62f33b544448e08f254b472 | 996 | cpp | C++ | 925-long-pressed-name/925-long-pressed-name.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | 925-long-pressed-name/925-long-pressed-name.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | 925-long-pressed-name/925-long-pressed-name.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<pair<char,int>> compress(string &s){
vector<pair<char,int>> res;
int curr = 0;
int i = 0;
while(i < s.length()){
int cnt = 0;
while(i < s.length() && i >= curr && s[curr] == s[i]){
i++;
... | 26.918919 | 66 | 0.420683 | shreydevep |
c9e530ef0c6abc1ee26d229f30a47cd02010ea87 | 1,315 | cpp | C++ | core/src/Buffer.cpp | marlinprotocol/OpenWeaver | 7a8c668cccc933d652fabe8a141e702b8a0fd066 | [
"MIT"
] | 60 | 2020-07-01T17:37:34.000Z | 2022-02-16T03:56:55.000Z | core/src/Buffer.cpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 5 | 2020-10-12T05:17:49.000Z | 2021-05-25T15:47:01.000Z | core/src/Buffer.cpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 18 | 2020-07-01T17:43:18.000Z | 2022-01-09T14:29:08.000Z | #include "marlin/core/Buffer.hpp"
#include "marlin/core/Endian.hpp"
#include <cstring>
#include <cassert>
#include <algorithm>
namespace marlin {
namespace core {
Buffer::Buffer(size_t size) :
BaseBuffer(new uint8_t[size], size) {}
Buffer::Buffer(std::initializer_list<uint8_t> il, size_t size) :
BaseBuffer(new uint8... | 17.77027 | 64 | 0.676806 | marlinprotocol |
c9e575ea04e3456f55c807006ae051c5563336a5 | 913 | cpp | C++ | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | 1 | 2019-04-27T08:20:15.000Z | 2019-04-27T08:20:15.000Z | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | null | null | null | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | null | null | null | #include "fixtures.hpp"
igConnector* get_igconnector(string broker_params) {
return new igConnector(broker_params, false, false, "poll");
}
igConnector* get_igconnector_connected_pollmode(string broker_params) {
igConnector* c = new igConnector(broker_params, false, false, "poll");
c->connect();
return c;
}... | 29.451613 | 103 | 0.743702 | quotekio |
c9e90f4638a387a1a8b0c70f4d25ad0e598e5754 | 2,022 | hpp | C++ | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | null | null | null | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 24.071429 | 92 | 0.637982 | devjsc |
c9ea29fbc34909304d6ef9fd554c3785101d4a3d | 17,753 | cpp | C++ | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 456 | 2018-10-29T03:51:23.000Z | 2022-03-21T02:26:20.000Z | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 8 | 2018-10-31T05:31:19.000Z | 2020-03-31T21:00:27.000Z | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 48 | 2018-10-29T05:36:41.000Z | 2022-02-10T23:42:25.000Z | //=================================================================================================
//
// MJP's DX12 Sample Framework
// http://mynameismjp.wordpress.com/
//
// All code licensed under the MIT license
//
//===============================================================================================... | 33.559546 | 128 | 0.581198 | BalazsJako |
c9eaf4debea92386c086cef9890988a1e15e5b2a | 1,859 | hpp | C++ | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | /************************************************
* map_traits.hpp
* bptree
*
* Copyright (c) 2017, Chi-En Wu
* Distributed under MIT License
************************************************/
#ifndef BPTREE_INTERNAL_MAP_TRAITS_HPP_
#define BPTREE_INTERNAL_MAP_TRAITS_HPP_
#include <functional>
#include <util... | 26.183099 | 77 | 0.56213 | jason2506 |
c9f05ef3dbf4d1636a8b3ba4790e0e5ac37adc73 | 1,030 | cpp | C++ | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | /*
==============================================================================
Slider.cpp
Created: 6 Sep 2019 7:11:44am
Author: Silver
==============================================================================
*/
#include "Rotary_Slider.h"
#include "UIDemensions.h"
RotarySlider:... | 28.611111 | 83 | 0.493204 | Silver92 |
c9f836d17615390c1da31bb2e36b20ffc1cfaf1e | 2,437 | cpp | C++ | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_webm_WebmEvent
#include <webm/WebmEvent.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_a611475ca79daef8_14_new,"webm.WebmEvent","new",0x3feaff7e,"webm.WebmEvent.new","webm/WebmEvent.hx"... | 32.065789 | 143 | 0.74682 | bobisdabbing |
c9fb517c3105e4973b205960ccaff1c3bb645f86 | 5,439 | cpp | C++ | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | 3 | 2020-03-10T16:41:41.000Z | 2021-12-13T11:36:12.000Z | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | null | null | null | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | 1 | 2021-10-20T02:18:38.000Z | 2021-10-20T02:18:38.000Z | #include "SpotLight.h"
namespace e186
{
const float SpotLight::k_max_outer_angle = glm::pi<float>() - 0.4f;
SpotLight::SpotLight(const glm::vec3& color, const glm::vec3& position, const glm::vec3& direction)
: m_position(position),
m_direction(glm::normalize(direction)),
m_light_color(color),
m_at... | 29.721311 | 122 | 0.720169 | lemurni |
c9fceef901b20ec1fb7883d7985fb2b7bb9020f2 | 360 | cpp | C++ | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | #include "triangulo.h"
Triangulo::Triangulo(int b, int a, int l1, int l2, int l3): base (b), altura(a), lado1(l1), lado2(l2), lado3(l3) {
area = (base * altura) / 2;
perimetro = lado1 + lado2 + lado3;
}
Triangulo::~Triangulo(){
}
int Triangulo::getAreaTriangulo(){
return area;
}
int Triangulo::getPeri... | 20 | 115 | 0.65 | Italo1994 |
c9fcf751bcf9da261f8b409fd9bc9e802f0eabb5 | 15,449 | cpp | C++ | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null |
#include "impl_org_webRtc_WebRtcFactory.h"
#include "impl_org_webRtc_WebRtcFactoryConfiguration.h"
#include "impl_org_webRtc_WebRtcLib.h"
#include "impl_org_webRtc_AudioBufferEvent.h"
#include "impl_org_webRtc_AudioProcessingInitializeEvent.h"
#include "impl_org_webRtc_AudioProcessingRuntimeSettingEvent.h"
#include "i... | 36.609005 | 228 | 0.677131 | tallestorange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.