blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed742284a73ecfdbaa3d3fc22ed2744c823d9ca6 | bf6da9e95008743dad974f2b74f2988852e2896a | /Source/Processors/PythonProcessor/PythonPlugin.h | 14ea7f73201a482faaab46d915c716e0189b1cab | [] | no_license | fpbattaglia/GUI | 632e5d719e780ca0b3c937c0f4e06d46a8f9c1b8 | 408cd22e7006215f5fc6204be5b9e1b50eb46580 | refs/heads/master | 2020-12-26T04:38:15.499428 | 2016-03-07T11:40:20 | 2016-03-07T11:40:20 | 19,777,143 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,451 | h | PythonPlugin.h | /*
------------------------------------------------------------------
This file is part of the Open Ephys GUI
Copyright (C) 2015 Open Ephys
------------------------------------------------------------------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Ge... |
52a4131ebec065292d3997be7801a5e0e2f3f9f7 | 86535d64213d939a507cb45ea5627d89b910f6bb | /abel/base/profile/compiler_traits.h | 7912e3f56568e31e88e8a5af24b1b2ee59f40087 | [
"BSD-3-Clause"
] | permissive | Conun/abel | 4afcd24d844e5380abde3cb8a8fbb88b2274bb4c | 485ef38c917c0df3750242cc38966a2bcb163588 | refs/heads/master | 2020-12-29T13:51:26.721782 | 2020-02-07T07:35:04 | 2020-02-07T07:35:04 | 238,627,584 | 0 | 0 | BSD-3-Clause | 2020-02-06T07:02:49 | 2020-02-06T07:02:48 | null | UTF-8 | C++ | false | false | 106,199 | h | compiler_traits.h | //
// Created by liyinbin on 2019/12/11.
//
#ifndef ABEL_BASE_PROFILE_COMPILER_TRAITS_H_
#define ABEL_BASE_PROFILE_COMPILER_TRAITS_H_
#include <abel/base/profile/platform.h>
#include <abel/base/profile/compiler.h>
// Metrowerks uses #defines in its core C header files to define
// the kind of information we need be... |
aa5a5ccbc0cc2522b1a066321b1e72c772d9509d | 26751ccf3847dbeb935d14de75c538dc2c2ad78e | /Base/ctkCommandLineParser.cpp | ada920f6a5a31d177b6992a5a4a0f3e7f06e3ef8 | [
"Apache-2.0"
] | permissive | commontk/AppLauncher | 6335b0266d80d279d67f0279f6e9e152f114732a | 8109ffb2f1ae3038bb5a955bff1a5f07dd1400d2 | refs/heads/main | 2023-04-13T05:27:55.704265 | 2023-04-07T22:57:22 | 2023-04-07T22:57:22 | 720,777 | 22 | 28 | Apache-2.0 | 2023-04-07T22:40:52 | 2010-06-14T19:43:30 | CMake | UTF-8 | C++ | false | false | 26,963 | cpp | ctkCommandLineParser.cpp | // STL includes
#include <stdexcept>
// Qt includes
#include <QHash>
#include <QStringList>
#include <QTextStream>
#include <QDebug>
#include <QSettings>
#include <QPointer>
// CTK includes
#include "ctkCommandLineParser.h"
#if defined (_WIN32)
#include <windows.h>
#endif
namespace
{
// ----------------------------... |
2f6fafb4e11144e717205e8a17c5b2211c820480 | e505f4a0f1f479374e25fd4650b2a700ecbc221f | /source/state/MainMenu.h | 520e7a97ead93ef6f9d46226f8795baccaa9b44b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dexter3k/Stranded2pp | 89ec16946771b462f07454bdde90c786deb54d56 | 022df9becf9931f8437e81bb405bacf168884c8d | refs/heads/master | 2023-04-02T08:54:21.403931 | 2021-04-04T18:01:52 | 2021-04-04T18:01:52 | 58,408,094 | 2 | 1 | MIT | 2023-03-23T15:07:37 | 2016-05-09T21:04:41 | C++ | UTF-8 | C++ | false | false | 763 | h | MainMenu.h | #pragma once
#include "State.h"
#include "graphics/gui/GuiElement.h"
namespace state
{
class MainMenu : public State
{
typedef State super;
public:
MainMenu(Stranded & game);
void show() override;
void hide() override;
bool processEvent(Event event) override;
private:
void loadGame();
void loadInterface();... |
92523ef9c8879bbc88e85699b491d0b102ff754a | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondFormats/RPCObjects/src/RPCObPVSSmap.cc | a1282d1af100078032431a5a6dd81891eb5c8e39 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 109 | cc | RPCObPVSSmap.cc | #include "CondFormats/RPCObjects/interface/RPCObPVSSmap.h"
#include "FWCore/Utilities/interface/Exception.h"
|
42974e820b35d736a1a1436fa1e3171aca25127d | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/pdfium/fpdfsdk/cpdfsdk_helpers_unittest.cpp | ac1320efd96dfa3e543ce46db20d25a6ffbd6834 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 4,094 | cpp | cpdfsdk_helpers_unittest.cpp | // Copyright 2020 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::testing::ElementsAre;
using ::testing... |
b705be2bfa2a31e28fc571c68a1da4376bf087dc | e2b5b45afefbd79f3c1d1a3c411b90001ea6d7e4 | /clay-gui-qt/base/QtListDialog.h | 3b9b9df6cc7e3f8ebc4ba148db9737c76e7daadc | [] | no_license | cbastuck/clay | 67e2858bbec56dace425692400d2ef92ef1a1791 | 35a9f6ad582888eeddb2e5ef069d2a3b6f21086a | refs/heads/master | 2021-01-20T02:16:58.274920 | 2013-10-06T17:49:01 | 2013-10-06T17:49:01 | 2,477,137 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | h | QtListDialog.h | /**************************************************************************\
*
* This file is part of the C++ Modular Development Framework.
* Copyright (C) 2009 by Christoph Bastuck. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Gener... |
1320acb51df15642ab2c6707a35393b74cb87168 | 785463ea0d81e1ab888a858e31ab8cf8b24e4ce6 | /src/shared/datalib/data_info/default.hpp | a7f58f5ea90b0de7f2cf0a226462b1c633af4a35 | [
"MIT"
] | permissive | GTAResources/modloader | 475853390165290d0b5f37f239f3e6b15f36195a | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | refs/heads/master | 2021-02-07T17:32:29.299117 | 2018-01-20T16:23:25 | 2018-01-20T16:23:25 | 244,057,341 | 1 | 1 | MIT | 2020-02-29T23:33:52 | 2020-02-29T23:33:51 | null | MacCentralEurope | C++ | false | false | 3,655 | hpp | default.hpp | /*
* Copyright (C) 2014 Denilson das MercÍs Amorim (aka LINK/2012)
* Licensed under the Boost Software License v1.0 (http://opensource.org/licenses/BSL-1.0)
*
*/
#pragma once
#include <type_traits>
#include <iosfwd>
//
// This header contains:
// [*] default data_info<> objects, including data_info_base
//... |
567a6a586011dbce21ee821ecf8f002c0480e743 | 5ccff983ae803171689a5fb8d57485c20d70c428 | /evaluation_platform_connect_to_AR605/evaluation_platform.cpp | 29a81e80d7e40f3ff6bb886becb6d904b9ce274c | [] | no_license | trigrass2/gazebo | bee196ca3ba9021f05844953428e1df49314062e | 8dfd4d96fd92ab61c6ad0055b2f633d8587e0d42 | refs/heads/master | 2021-09-15T12:39:38.965177 | 2018-06-01T15:12:47 | 2018-06-01T15:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56,383 | cpp | evaluation_platform.cpp | /*
* evaluation_platform.cpp
*
* Created on: Feb 15, 2017
* Author: kevin
*/
#include "evaluation_platform.h"
#include <sstream>
#include <fstream>
#include <gazebo/msgs/request.pb.h>
#include "gazebo/physics/physics.hh"
#include "gazebo/common/common.hh"
#include "gazebo/gazebo.hh"
// for loading parame... |
1392a3faae660e662c1b165e8f24ee952a028ed7 | 349637addf241283ae52fc08e15be5ddbf77e892 | /CompilerBookTest/CompilerBookTest/Modelo/Lexico/Token.h | da37bb22672fc625ac6b33935a613a3fd265cc21 | [] | no_license | LarenaCode/CompilerBookTests | e882fed6b1ce48bc2cfa87f5f3dfa362cdcf6182 | c1095b59bbd93e1a81387cb321d16860e19a0602 | refs/heads/master | 2020-07-02T18:35:56.441726 | 2019-08-19T06:02:46 | 2019-08-19T06:02:46 | 201,624,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,842 | h | Token.h | #pragma once
namespace Enumerados {
enum class Token {
ALIGNAS = 256, ALIGNOF = 257, AND = 258, AND_EQ = 259, ASM = 260,
ATOMIC_CANCEL = 261, ATOMIC_COMMIT = 262, ATOMIC_NOEXCEPT = 267,
AUTO = 268, BITAND = 269, BITOR = 270, BOOL = 271, BREAK = 272,
CASE = 273, CATCH = 274, CHAR8_T = 275, CHAR16_T = 276, CHAR... |
cf61f5a2c06c086f1ba5476e8f51f99af7a9f3db | 0bba390cffc1d0e492df12d4912b83b7b85bb97b | /YU.cpp | fbc13f5f0b9ba851c203b6133f7a5a6920b78af7 | [] | no_license | 201524508/FileProcessing | 43f92a5beb363724e7acec93c5c87e2d17951b3a | 4fcec3d95e9dff8e3cbe2404fcf15f0fdc0fdd65 | refs/heads/master | 2021-01-20T00:48:14.789740 | 2017-06-02T00:42:28 | 2017-06-02T00:42:28 | 89,192,727 | 0 | 0 | null | 2017-04-24T03:11:51 | 2017-04-24T03:11:51 | null | UHC | C++ | false | false | 6,181 | cpp | YU.cpp | #include <iostream>
#include <direct.h>
#include <Windows.h>
#include <shellapi.h>
#include <atlstr.h>
#include <string>
#include <tchar.h>
#include <io.h>
using namespace std;
int CopyDir(TCHAR* src, TCHAR* dest); //directory 복사
int updir(TCHAR* src, TCHAR* dest); //업데이트 - 에러(무한루프)
int UpDataTime(TCHAR*... |
fb4a69e48e32b941cf9dbf4cfc3c31eccc977ad2 | 5b2d59b1c149669b37c605d25291c56dcff225a5 | /source/errors.h | 47366160b61706c01e7e2b61c2039d171c9e3882 | [] | no_license | isolomon/netcpp | f118ddb4e736952d67e5e9d1478aa1684a37c110 | 8fac48393dd0f8353a79c6458f1b0855d192036b | refs/heads/master | 2021-06-02T13:39:34.038537 | 2021-03-10T13:29:53 | 2021-03-10T13:29:53 | 48,838,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,261 | h | errors.h | #ifndef LIB_ERRORS_H
#define LIB_ERRORS_H
#include "types.h"
void print_trace();
BEGIN_NAMESPACE_LIB
struct Error { enum Codes
{
None = 0,
General = -1,
Timeout = -2,
Denied = -3,
Aborted = -4,
NotReady ... |
a1cd3645c571de8a6657277bf29bc0c9f9756b47 | e0dc85984d383b9f0a8c9aaa465a4c3268eb1dba | /Nätverksimplementationen/GUIWindow.h | 26447a09b496a40df0ae538c499a619e82a09497 | [] | no_license | jonwa/Nukes-of-the-Patriots | db782b08060320753026f051043a0151fa74e5aa | a1ec6e65b3d4dd34ae1a69a2098608a5e04fe928 | refs/heads/master | 2020-04-10T03:57:10.287166 | 2013-02-07T14:28:14 | 2013-02-07T14:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | GUIWindow.h | #ifndef _GUI_WINDOW_H
#define _GUI_WINDOW_H
#include "GUIElement.h"
class GUIWindow: public GUIElement
{
public:
GUIWindow(int x, int y, int width, int height, std::shared_ptr<GUIElement> parent = 0);
void render(sf::RenderWindow &window);
~GUIWindow(){}
};
#endif |
2dc65547e365262908cc61639ab08a00bc9f902c | e2d56cd0e9f5c2a50bc6ddec5ecc0811a6e8a3fc | /Core/Shapes/BoxShape.cpp | 701cf597a6b799a36211afef32588661fd6e85b2 | [
"MIT"
] | permissive | Witek902/Raytracer | 4ec308db1b3fc8761e50acdaff09492a23958a3e | 3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d | refs/heads/master | 2021-01-19T11:42:04.697848 | 2020-07-11T14:28:46 | 2020-07-11T14:28:46 | 87,984,960 | 107 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 4,813 | cpp | BoxShape.cpp | #include "PCH.h"
#include "BoxShape.h"
#include "Math/Geometry.h"
#include "Math/Simd8Geometry.h"
#include "Rendering/ShadingData.h"
#include "Traversal/TraversalContext.h"
namespace rt {
using namespace math;
namespace helper
{
const Matrix4 g_faceFrames[] =
{
{ { 0.0f, 0.0f, 1.0f, 0.0f}, { 0.0f, 1.0f, 0.0f,... |
568adcff81583b8e96a8d79c8eac37418e4dd077 | fd2ddfccadbd932452faf9ac47fb11938260660e | /Codeforces/413_div2/C.cpp | c3c39b7a3707cc192aad554b77f5327796af69ee | [] | no_license | cqj8660/Code_Record | 450c827bf9a98ac8860abafc8fb811b6ee8c221a | 6d148810ce3b0c7b545a4d3061dbe8780626bd9d | refs/heads/master | 2021-12-22T08:37:01.621325 | 2021-11-19T08:09:26 | 2021-11-19T08:09:26 | 149,244,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,608 | cpp | C.cpp | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
using namespace std;
struct node{
int bea, cost;
};
vector<node> co, di;
bool cmp(node& pa, node& pb)
{
if(pa.cost == pb.cost)
return pa.bea > pb.bea;
return pa.cost < pb.cost;
}
int solve(vector<node>& t, int val)
{
sort(t... |
2aad8783024a474d6c193ef869e2730b582912c0 | 4ed6886a816c528f46bf3e1ae06729aed2404a81 | /service/time/timeservicebase.h | 4677cf9e42ba4810d100990c253d0c5625ccbae4 | [] | no_license | kapilpipaliya/todo_drogon_server | 0931cc5f9e2a6777c3dc306c0803ad3a2e0f0d28 | 86e46371785e25a085518232d95f86b880c526c0 | refs/heads/caf | 2020-09-04T04:05:56.364929 | 2019-11-05T03:09:43 | 2019-11-05T03:09:43 | 219,647,048 | 3 | 1 | null | 2019-11-05T03:14:45 | 2019-11-05T03:10:39 | C++ | UTF-8 | C++ | false | false | 1,245 | h | timeservicebase.h | #ifndef TIMESERVICEBASE_H
#define TIMESERVICEBASE_H
#include <drogon/WebSocketController.h>
#include <drogon/drogon.h>
#include <memory>
#include "../../wscontroller/context/todocontext.h"
#include "../../dgraph/orm/dgraphorm.h"
#include "../../dgraph/orm/model.h"
//#include "../../dgraph/orm/schema.h"
#include "dgr... |
9c11297e6dd860f3ead51d8340d85f53b7c0ba07 | fa242702f8fb89968f05574c2cf1b159894051d6 | /B. Mike and Shortcuts.cpp | f0fc62ecc4cb561bb8f3f39bc778083bd1065f34 | [] | no_license | jack-coder5416/Codeforces | d9ffd444a77a32520ae6da6e9bfa5efca1e95239 | de4b334d5f3f063f73ed09f28e31a40e728a20dc | refs/heads/master | 2023-03-15T23:26:31.708197 | 2017-08-06T09:26:19 | 2017-08-06T09:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | B. Mike and Shortcuts.cpp | #include<cstdio>
#include<queue>
#include<cstring>
#define maxn 200010
using namespace std;
int i;
unsigned n,f;
int way[maxn];
unsigned a[maxn];
queue<unsigned> q;
int main(){
// freopen("test.in","r",stdin);
// freopen("test.out","w",stdout);
scanf("%u",&n);
memset(way,-1,sizeof(way));
for(i=1;i<=n;++i)
scan... |
71ea7984ca5aea97c6bd3536e6a766515c0b64d4 | 15ee8ce339cfd54d344eccf7d9b7459b7343e447 | /src/inputManager.cpp | 43f10ac90b97026461a9e3d8eee38bebe6580fd0 | [] | no_license | davids3/vitalalpha | 0e2e7fecd6fb739b88fe65d0a87389d28b1dfadf | 3d0a35c48c5b85c707fc0079a33ad2fb7e052b94 | refs/heads/master | 2021-01-10T11:51:35.520897 | 2016-03-16T02:06:40 | 2016-03-16T02:06:40 | 53,993,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | inputManager.cpp | #include "inputManager.h"
inputManager::inputManager()
{
//ctor
}
inputManager::~inputManager()
{
//dtor
}
void inputManager::update(sf::Event event)
{
//makes a local copy of the event
this->event = event;
}
bool inputManager::keyPressed(int key)
{
if(event.key.code == key &... |
ecd979311071686beedcad8a6fad71a8cec8631a | 5816f1fcafab854c576ebdc201038cac6a1c8d46 | /fem_ofv/src/UTIL/geometricentity.cpp | acdbf74f8a68a7c18e1db7fcaf95e6af05fddb67 | [
"CC0-1.0",
"LicenseRef-scancode-generic-cla"
] | permissive | OlegJakushkin/ARL_Topologies | 26edb221d3e27e68eee324dc74522c8971c1d2c0 | 2c0d3d806b34171c824705b3e1a00e12460c0930 | refs/heads/master | 2021-09-25T07:55:32.474242 | 2018-10-19T20:30:53 | 2018-10-19T20:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,370 | cpp | geometricentity.cpp | /*
* ARL_Topologies - An extensible topology optimization program
*
* Written in 2017 by Raymond A. Wildman <raymond.a.wildman.civ@mail.mil>
* This project constitutes a work of the United States Government and is not
* subject to domestic copyright protection under 17 USC Sec. 105.
* Release authorized by the ... |
e5036314255467c412d9eb84a2112a98e2bfb2ba | 15b49499051b61b22fa0b5262c81b57c47d63500 | /BOJ/push/1000-4999/2455.cpp | 206887fe170634ec4767379fca38a92e2d96a933 | [] | no_license | murras/algorithm | fcc03bf4d74192a0efe39304e4d801f53bd85e0f | 987a8c171e2935fefee752b292a4df8844c825fe | refs/heads/master | 2021-06-04T09:49:35.728245 | 2020-01-25T10:00:01 | 2020-01-25T10:00:01 | 106,243,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | 2455.cpp | #include <bits/stdc++.h>
using namespace std;
int people, ans;
int main() {
for (int i = 0; i < 4; i++) {
int a, b;
cin >> a >> b;
people = people - a + b;
ans = max(ans, people);
}
cout << ans;
} |
ca7334f70a596500728974ba328069338339c395 | b934b2330c9c70924a4ccb1ee140f46162b08978 | /C_Language_Promgram-TanHaoQiang/5_loop/L0503_for 用for语句计算m+(m+1)+(m+2)+...+n的值.cpp | 0e10ed9ee466830f8f17f78c4f635b564012b55d | [] | no_license | Hailaylin/C | a53eb23e1c6106ce84edd4238e39ef0c747c1112 | e5901fafc9ebe9b912030baf853f415874f2bd17 | refs/heads/master | 2023-02-21T10:00:31.259634 | 2021-01-26T02:06:28 | 2021-01-26T02:06:28 | 94,003,613 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 539 | cpp | L0503_for 用for语句计算m+(m+1)+(m+2)+...+n的值.cpp | /*
题号:L0503_for 题目:用for语句计算m+(m+1)+(m+2)+...+n的值 得分:0
作业提交截止时间:2020/11/15 0:00:00
题目内容:
从键盘上输入两个正整数m和n,要求m小于或者等于n,计算m+(m+1)+(m+2)+...+n的值。
例:
(1)输入:1,100 输出:sum=5050
(2)输入:3,333 输出:sum=55608
(3)输入:100,100 输出:sum=100
*/
#include<stdio.h>
int main(){
int m,n,sum;
scanf("%d,%d",&m,&n);
for(;m<=n... |
8c2aa60b992301454f34d3aa6b04d193069813f1 | a54b9281ca07481cfef74c39d3cd300e105745f2 | /AresAPI/include/Ares/Core/Debug.h | 34d2ea39dc6c7d4239d08569f69a95aba86a3967 | [
"Apache-2.0"
] | permissive | tiredamage42/AresEngine | b77b6856b23ea756fd9092efc4efdce5a0cf0c66 | 1543942b47af85e5bb43e5f0c7bb06a255b1af6b | refs/heads/main | 2023-04-22T10:08:01.975498 | 2021-05-16T03:07:36 | 2021-05-16T03:07:36 | 366,220,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,581 | h | Debug.h | #pragma once
#include "config.h"
#pragma warning(push)
#pragma warning(disable:26812 26495 26451 26498)
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h>
#pragma warning(pop)
#define DEBUG_DECLARATION(name, internalcall) \
template<typename... Args> \
static void name(const char* fmt, Args &&...args) \
{ \
... |
3c4f2c11f3247b9dfdd0648a4669a2e2b26fd7ab | 5a980d185577ed17bea4bc4bb9b49b22a88a12ed | /include/Protocol/PackageSerialize.hpp | b9cf20147ff7d6d3e39cffbaef2a596c0297cdb0 | [] | no_license | LeonardoRicky/rtype | 90120c175212ddca76aef8e94fec5ad0a05194d3 | d721f26800cc09114a02138e5e8bbc82a10033b6 | refs/heads/master | 2022-05-05T05:11:24.696050 | 2017-01-02T19:25:56 | 2017-01-02T19:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | hpp | PackageSerialize.hpp | //
// Created by victor on 21/11/16.
//
#ifndef RTYPE_ROOMPACKAGESERIALIZE_HPP
#define RTYPE_ROOMPACKAGESERIALIZE_HPP
#include <cstring>
#include <iostream>
#include "Common/DLLexport.hpp"
class PREF_EXPORT PackageSerialize {
public:
template <typename T>
static void print(T const &obj) {
unsigned ch... |
ab040498b6b5fdd6def5fd2ae207a32cc364ac2e | 420656b39d9b185e7211c56cbbadfc8ba2461806 | /Inject/main.cpp | bb96bc01fb6e3899588d4d917df6241108c03ef8 | [] | no_license | staring/Injector | bf1fd75f7d7e017696ba2b4fa7c5027d1cadcd88 | 9cc89a35d5f9774a7399033c0e53484787678075 | refs/heads/master | 2021-01-17T13:43:29.135514 | 2014-11-20T15:11:32 | 2014-11-20T15:11:32 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 809 | cpp | main.cpp | // Inject.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include <Injector.h>
#define TARGET_DLL "C:\\Users\\Rain\\Documents\\Visual Studio 2013\\Projects\\Inject\\x64\\Debug\\SimpleDll.dll"
//#define TARGET_DLL L"Shlwapi.dll"
int main(int argc... |
e29026f8fb12a58f18db463f9045b3242563eb51 | a879bcb6a5dbd40a1c4815dc00291fca458dcc01 | /mapping.cpp | 6e638df11271537baaa0840c70503ac8973aab55 | [] | no_license | hgedek/cpp-samples | 38a5b44c43589bf441f4205bff2cb8a1e9f2c136 | 2f69954de8627fe2065a9958f997eee56d48f135 | refs/heads/main | 2023-04-20T06:24:36.931213 | 2021-05-01T14:41:20 | 2021-05-01T14:41:20 | 329,326,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | mapping.cpp | #include <iostream>
#include <tuple>
int main() {
const auto tpl = std::make_tuple(1, 1.1f, "sample");
const auto [a,b,c] = tpl;
std::cout << a << ":" << b << ":" << c << std::endl;
return 0;
}
|
edb226e6d618bf5161648283cbcb076521c9f448 | 07a41d98b4000326eb6e5b20e0115f71fb17854c | /displayPFD.h | 4ffb1fb5c073b5cdbab9591c0b320565443e141e | [
"MIT"
] | permissive | mxsshao/nsb-sdd-lunar | c0022625a3b92497ac6855a20477841c95305531 | 14407a8f8d2ee9e1945285abbd5112d114020b2a | refs/heads/master | 2020-04-14T07:14:45.515172 | 2019-01-08T09:14:26 | 2019-01-08T09:14:26 | 163,707,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | h | displayPFD.h | #pragma once
#include "interfacesimulator.h"
class CDisplayPFD
{
protected:
CDisplayPFD() {};
private:
ALLEGRO_BITMAP* render;
ALLEGRO_FONT* font;
ALLEGRO_BITMAP* bg;
ALLEGRO_BITMAP* back;
ALLEGRO_BITMAP* attitude;
ALLEGRO_BITMAP* altitude;
ALLEGRO_BITMAP* speed;
ALLEGRO_BITMAP* border;
ALLEGRO_BITMAP* of... |
63ebd8a9867f070ddfb387338aaa7fcfcc9dc8c6 | 514996e39fe2129abe231503ce7f5f9688c837f7 | /src/common/ui_checkbox.h | cebb617bb0cd90aa31546ce3101f00ea14add5a3 | [] | no_license | Necrys/Fury | d39182c1e7f9bde799b0d8baec5bc8cb4f62d6c0 | 84b20613299418efb672b6ec37e41ea69aaf72b5 | refs/heads/master | 2023-04-01T18:01:13.696634 | 2021-04-07T14:25:04 | 2021-04-07T14:25:04 | 354,311,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | ui_checkbox.h | #pragma once
#include "ui_panel.h"
//-----------------------------------------------------------------------------
namespace gui
{
class checkbox: public panel
{
public:
checkbox(system* controller, _base* parent = 0);
virtual ~checkbox();
bool checked;
virtual void update(){};
virtual void render();
... |
f96617efdda7a733de97ce9fba8add380a6b6e03 | f69ea03fbcdca417b25d181599095ccc0b5a9a13 | /test/parser_isymtec_ai_test/CHSimulationTestCosineForce.cpp | 1002c13d0c8a20d81c210651b8069e583a1961f9 | [
"MIT",
"BSD-3-Clause"
] | permissive | IsymtecAi/isymtecai-chrono-parser | ef1e1303d2b61d326780c3dd9d659f59c967e0c2 | 348948945d8b98c12afcf9ad0477ba6ee9405219 | refs/heads/master | 2020-03-27T22:10:50.476905 | 2019-07-03T15:50:35 | 2019-07-03T15:50:35 | 147,211,069 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,842 | cpp | CHSimulationTestCosineForce.cpp | #include "gtest/gtest.h"
#include "parser_isymtec_ai/ChSimulationIsymtecAi.h"
#include "chrono/physics/ChSystemSMC.h"
#include "parser_isymtec_ai/ChIsymtecAiConstants.h"
using namespace chrono;
namespace {
class ChSimulationCosineForce : public ChSimulationIsymtecAi {
public:
mutable std::vector<double> m_Coordi... |
cce727d77a360b45cede06c1677c5ba57039a590 | ffa9bada806a6330cfe6d2ab3d7decfc05626d10 | /CodeForces/CF1501/B.cpp | d9e423668ee5db4d2d914e56a5b065897649f47e | [
"MIT"
] | permissive | James3039/OhMyCodes | 064ef03d98384fd8d57c7d64ed662f51218ed08e | f25d7a5e7438afb856035cf758ab43812d5bb600 | refs/heads/master | 2023-07-15T15:52:45.419938 | 2021-08-28T03:37:27 | 2021-08-28T03:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | cpp | B.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
const int Max=2e5+5;
int t, cream, a[Max], b[Max], n;
int main(){
// freopen("data.in", "r", stdin);
scanf("%d", &t);
for(int casenum=0; casenum<t; casenum++){
memset(b, 0, sizeof(b));
cream=0;
scanf("%d", &n);
for(int i=0; i<n; i++){
scanf("%d", ... |
d1c1e31b5d90a1031c5aa2ca8d6407bedb8858ec | 7bc0e6353fada99860faf2496df3cdc65afd21a9 | /fizzbuzz/src/divisible_check.cpp | 5c3cf10bd93afa2fcb34094f9597f77b7ff406a5 | [] | no_license | markhumphrey/fizzbuzz-cpp | 89f18be659e2585c5c01e6192b0c4295e02d0c7e | 27dba8dc11c5de4df30cee6ff47256d7f9ee5457 | refs/heads/master | 2020-12-24T15:05:57.040021 | 2015-07-27T22:25:54 | 2015-07-27T22:25:54 | 39,405,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | divisible_check.cpp | #include "divisible_check.h"
#include <iostream>
using namespace std;
DivisibleCheck::DivisibleCheck() {
}
DivisibleCheck::~DivisibleCheck() {
}
void DivisibleCheck::doCheck(int start, int end, std::ostream &stream) const {
for (int i = start; i <= end; ++i) {
bool isDiv = false;
for (size_t j = 0; j < m_divis... |
1ce3a06b24d0f3b3c6c7be9cf6b7b6139a60970b | e827a18e7c6fa35e4b103237a9ffab7ebf69a7fa | /updated_24_overtake_angle/freicar_map_sr/include/freicar_map/planning/lane_follower.h | 252801da3408b9455bcd2e642e0b2f50c2019fba | [] | no_license | Qanadilo1/speed_racers_comp_test | 0515463e3cbe614916cf14f79504281273d0b8e0 | 6d311f091dc73151b2a0336e779724a7557b1c15 | refs/heads/master | 2023-03-27T08:35:21.419852 | 2021-03-25T08:23:22 | 2021-03-25T08:23:22 | 348,695,713 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 713 | h | lane_follower.h | #ifndef __FREICAR_LANE_FOLLOWER_H__
#define __FREICAR_LANE_FOLLOWER_H__
#include <string>
#include <vector>
#include "freicar_common/shared/planner_cmd.h"
#include "freicar_map/planning/plan.h"
namespace freicar
{
namespace planning
{
namespace lane_follower
{
freicar::planning::Plan GetPlan(const mapobjects::Point3... |
d0e2ff0c2f79863928a2fdebd02ad3505cfef89a | 1393b088958301a6c2f6766df2864c61365e9d4b | /Code/Core/Applications/CirrusFlag/vnsAppCirrusFlag.cxx | 96d9adf178776b3733fd1f9feeb29a86b772a19f | [
"Apache-2.0"
] | permissive | alexgoussev/maja_gitlab | f6727468cb70e210d3c09453de22fee58ed9d656 | 9688780f8dd8244e60603e1f11385e1fadc90cb4 | refs/heads/develop | 2023-02-24T05:37:38.769452 | 2021-01-21T16:47:54 | 2021-01-21T16:47:54 | 332,269,078 | 0 | 0 | Apache-2.0 | 2021-01-23T18:17:25 | 2021-01-23T17:33:18 | C++ | UTF-8 | C++ | false | false | 17,335 | cxx | vnsAppCirrusFlag.cxx | /*
* Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
*
* 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 appl... |
d0949e5f306923c21a4f52c220da80ec8c1a6554 | f3b4f013e55a0f64298dfca70e0bd13735341b32 | /biweekly-contest/biweekly-contest-18/1-rank-transform-of-an-array/sort.cpp | f6910e3c73f1a2e4d6ae69cb67a95139033b8e71 | [] | no_license | DFLovingWM/leetcode-solving | 0eb53f54a5ef5a365d6cae5ffd9e4d6a3ec4b5fb | deeb2d5ac504eaeb33cc429e2a0fcdc830e2213d | refs/heads/master | 2021-06-06T12:09:02.054056 | 2021-05-16T15:50:40 | 2021-05-16T15:50:40 | 163,033,138 | 8 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | sort.cpp | class Solution {
public:
vector<int> arrayRankTransform(vector<int>& arr) {
set<int> nums(arr.begin(), arr.end()); // 去重并排序
int id = 0;
unordered_map<int, int> num2Index;
for (int num : nums) {
num2Index[num] = ++id;
}
const int n = arr.size();
ve... |
3c8327f5f682d3667ac6bf437b8b19bf5ced3880 | 35458bb054e1b53b736e54785e5d417eafee0a93 | /XDaggerMinerRuntime/CoreV2/cl_device_utils.h | 5936a2c2ff0bf7a466d5d76407e27bb4edf79865 | [] | no_license | xrdavies/XDaggerMinerWin | b17029ccd6008c56ed8d9e2ad8a576d76661b69b | 180f628b9e649db4cc89e4ec9be6673d9af3e7e5 | refs/heads/master | 2020-03-19T01:07:52.271037 | 2018-11-01T23:46:00 | 2018-11-01T23:46:00 | 135,524,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | cl_device_utils.h | #pragma once
#include <vector>
#include "Core/CL/cl2.hpp"
/*
#define OPENCL_PLATFORM_UNKNOWN 0
#define OPENCL_PLATFORM_NVIDIA 1
#define OPENCL_PLATFORM_AMD 2
#define OPENCL_PLATFORM_CLOVER 3
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS true
#define CL_HPP_ENABLE_EXCEPTIONS true
#define CL_HPP_CL_1_2_DEFAULT_BUIL... |
e81f6b4785a72289714e64a139f24ccf75b0c09b | 53183072c0af943d1ff3e94e96ea7464a9114474 | /main.cpp | 284206e369b553eac35fb8f0f0c7b2770ef6606a | [] | no_license | AdiMustBeFunny/Minesweeper | 376458e236ca6e63018a96baed4b9c41b80e130b | b079db82031ebc2ba2ec8886414150be2ac072fa | refs/heads/master | 2020-05-06T13:57:03.076589 | 2019-04-08T14:29:53 | 2019-04-08T14:29:53 | 180,164,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,708 | cpp | main.cpp | #include<iostream>
#include<vector>
#include<list>
#include<cstdlib>
#include<time.h>
#include<Windows.h>
using namespace std;
enum TileType
{
Mine,
Number
};
struct Tile
{
TileType type=Number;
int x, y;
bool revealed = false;
bool demined = false;
int adjecentMineCount = 0;
};
class T... |
688db46b87f993686fa53f999824007a1377d249 | fd6c11973fdacec514fec2e7ab67e04895904508 | /bftengine/src/bftengine/messages/StateTransferMsg.cpp | 6093bc4d43e7ade5285f25347704d4792331b43c | [
"Apache-2.0"
] | permissive | vmware/concord-bft | 3c776e6dcf02ea524c35ecf7c74a37d12b4c4ac4 | 61c4d39e5ca71690817e341c9713e014b91a13d8 | refs/heads/master | 2023-08-25T12:23:15.164063 | 2023-05-09T08:31:27 | 2023-05-09T08:31:27 | 143,135,325 | 397 | 167 | null | 2023-09-12T05:09:38 | 2018-08-01T09:36:28 | C++ | UTF-8 | C++ | false | false | 816 | cpp | StateTransferMsg.cpp | // Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright no... |
6015ba682f4a674881d4c3fd0327b08cea1f555e | 202306e250194e8d56cc50e9f9538e96c33cd654 | /ConvWx/src/include/ConvWx/IndexGridVal.hh | be536d9a2b9e1092212afd11f78ce587c5d8139c | [] | no_license | AdrianoPereira/ral-libs-shared | f9d34023b0994def083292cca39ec2dacc33b7fc | 9e3644604cb9c08e1bac6f45c149e22060d59170 | refs/heads/master | 2022-03-22T16:36:02.804926 | 2019-12-11T22:23:49 | 2019-12-11T22:23:49 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,331 | hh | IndexGridVal.hh | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// © University Corporation for Atmospheric Research (UCAR) 2009-2010.
// All rights reserved. The Government's right to use this data and/or
// software (the "Work") is restricted, per the terms of Cooperative
// Agreement (ATM (AGS)-0753581 10/1/08) be... |
abcf4fb5b61949cdc7672b9f3d14bd15da8bdfd4 | 6b0a7c91a64c57e4422394eab458349822763699 | /50 trivial/Judging Moose.cpp | 2d6fe7d6f956c1ac7c0323f7d2f61bece321cdf6 | [] | no_license | DgrinderHZ/Kattis | 4e386a8ef099fc04b8b5a6f3098efc93feb9aea6 | ea9618c7bca2f89b0f0a4b873f18a50523c7c6b8 | refs/heads/master | 2020-03-27T09:18:39.676154 | 2019-10-20T13:31:42 | 2019-10-20T13:31:42 | 146,329,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | Judging Moose.cpp | #include <bits/stdc++.h>
using namespace std;
int main ()
{
freopen ("input.txt","r",stdin);
//freopen ("output.txt","w",stdout);
/* Code here */
int l, r;
cin>> l>> r;
if(l==0 && r==0){
cout<<"Not a moose";
}else if(l == r){
cout<<"Even "<< l+r;
}else{
cout<<"Odd "<<((l<r)?r*2:l*2);
}
... |
b17cc45dae7a7f180d4c50451e74dce864bf9e36 | 2407ac66f106a8c0372f8bcaa82e342e06f46319 | /Baseball/Baseball/main.cpp | 8ef4c1d4736c1ce8a3e1a02a33433f9d210a625f | [] | no_license | FANOOJungjieun/exercise | 601aad0fc360220d0ea9b95d6b1a2e9ba24540bb | 3be9b69383d66c964d466411f0d0cb3fd4b344ad | refs/heads/master | 2022-06-08T22:37:25.431267 | 2022-05-16T08:34:58 | 2022-05-16T08:34:58 | 219,710,691 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,528 | cpp | main.cpp | #include<iostream>
#include<ctime>
using namespace std;
bool correct;
int set[4];
int number[4];
int digits[4];
int stk, ball;
void init(int ran[]) {
srand((unsigned int)time(0));
int sb1 = 0;
int sb2 = 0;
int sb3 = 0;
int sb4 = 0;
while (sb1 == sb2 || sb1 == sb3 || sb1 == sb4 || sb2 == sb3 || sb2 == sb4 |... |
898516b8c5a674407526c217f00a7763c074c6ef | c6b828507d1550f2d3762c8fa6d6504d30758304 | /Tarea2/cache.h | 1319a4e5a0cae25f74b9ad21b2b63e3c959bc52d | [] | no_license | katyape/IE0521-Estructuras2 | 4651abeb41adb43209bf6779c728b1a849c8bc8b | ed3669ee6ba295ec96e09567a5099c9bc8506b73 | refs/heads/master | 2020-03-29T15:09:08.103516 | 2018-09-24T05:56:29 | 2018-09-24T05:56:29 | 150,047,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,189 | h | cache.h | // Para que no se redefina la clase
#ifndef CACHE
#define CACHE
#include<string>
#include<iostream>
using namespace std;
//Se crea una estructura llamada Bloque.
//Esta estructura poseera su tag, index, valor de dirty bit y ademas
// un atributo para verificar si esta vacio y el valor de prediccion de reuso.
typedef ... |
2080baede401a172e997bc02c8891cd268fbdc8b | 0b122cab77b02f30d765bb81317acb6d6af2f4d1 | /Code/Historical/Playground/Playground.ino | 572a315eeccd601002e5a039d829b3aa63a58402 | [] | no_license | keithmatthews440/DHEC_Dam_Sensor_System | 0386a96f56a555f70d650e2d96322f8c54c3b8e7 | 0b55b06d61df23119327957cb1ed1a0f697783b5 | refs/heads/main | 2023-04-24T04:10:45.775972 | 2021-05-11T14:29:19 | 2021-05-11T14:29:19 | 317,577,870 | 4 | 3 | null | 2020-12-02T17:33:04 | 2020-12-01T15:05:01 | HTML | UTF-8 | C++ | false | false | 2,044 | ino | Playground.ino | #define BLYNK_PRINT Serial
#include "ESP8266.h"
#define SSID "ITEAD"
#define PASSWORD "12345678"
ESP8266 wifi(Serial1);
void setup(void)
{
Serial.begin(9600);
Serial.print("setup begin\r\n");
Serial.print("FW Version: ");
Serial.println(wifi.getVersion().c_str());
if (wifi.se... |
09d3efb06b35a1dd45c2aedcc409f5d31459be0f | d0693c95a4360a293aaecc2fac2398b1b8b8a92a | /include/LIP.hpp | 5b6d6449078f17ba3e2cc44f2ec7574883c597f3 | [] | no_license | deno750/LinearProgramming | eb5cf45765dabb000866c6c21d4dcd8c1a7a4787 | bf5e54200225ca685fd09a3ed1b94d9b19fde6ac | refs/heads/master | 2021-09-10T02:00:23.526825 | 2021-09-09T16:29:51 | 2021-09-09T16:29:51 | 230,082,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | hpp | LIP.hpp | //
// LIP.hpp
// LinearProgramming
//
// Created by Denis Deronjic on 28/12/2019.
// Copyright © 2019 Denis Deronjic. All rights reserved.
//
#ifndef LIP_HPP
#define LIP_HPP
#include <stdio.h>
#include <math.h>
#include "Matrix.hpp"
#include "Fraction.hpp"
//Includes functions for Linear Integer Programming
clas... |
1c342aa53b7b46da5034b0d52fc1040ece04add4 | 8b655b94912974e05367dabb7a1e682b495c777d | /appWeather.cpp | 73e5f3b193c70a560830a1374ac78962740b752c | [
"BSD-3-Clause"
] | permissive | Mattti0/T-watch-2020 | bc209d80292d1227270c37ba5660c16498d18eb3 | 3be30c0c77c614e80b11fd3e24b28731f33ea57e | refs/heads/master | 2023-05-23T04:57:39.244140 | 2021-06-09T11:08:38 | 2021-06-09T11:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,314 | cpp | appWeather.cpp | // connect to wifi (stored in "file" acc_pts.txt (in SPIFF)), and then
// get the weather
#include "config.h"
#include "DudleyWatch.h"
#include <time.h>
#include <string.h>
// #include "esp_wifi.h"
#include <WiFi.h>
#include <Wire.h>
#include <Ethernet.h>
#include <ArduinoJson.h>
#include <AceTime.h>
#include "HTTPC... |
0986187d3c981cea2cbdb84f823a505ba590f6e3 | 3674c76452699205d34280347099dcfca38c1f01 | /ShadowPack/LocaleManager.h | 354d84f8ec2bcc513fe9f2b1ad2126cd179ef245 | [] | no_license | sTeeLM/shadowpack | c6677f02cb2c8baf87f5aad3aa3ca9a8f4df0504 | ad3a3b9a888fdb014725bbd4e6a57ffe1b08c89b | refs/heads/main | 2022-05-18T17:37:12.955042 | 2022-03-29T13:27:56 | 2022-03-29T13:27:56 | 11,245,741 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 924 | h | LocaleManager.h | #pragma once
#include "resource.h"
// CLocaleManager 命令目标
class CLocaleManager : public CObject
{
public:
CLocaleManager();
virtual ~CLocaleManager();
public:
typedef enum _LOCAL_ID_T {
LOCALE_CHINESE_SC = 0, /* default */
LOCALE_ENGLISH_US,
LOCALE_CNT
}LOCAL_ID_T;
BOOL Initialize();
B... |
bb3196a586493607221bfbc653fbb545b7d90c8b | 69bc5e04598ef121882e85eb6bf828fda00decf8 | /src/robot_control_plugin.cpp | 1243298b12df238329611c2ce7415abb9286007d | [] | no_license | pohzhiee/ros2_control_gazebo | 2d551b2e5c2b13fc0de2e77fc890751e125c0017 | 2b576e74d4057e004e4115e37a7287767ef61741 | refs/heads/master | 2022-04-10T05:50:27.079880 | 2020-02-18T09:27:23 | 2020-02-18T09:27:23 | 208,930,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,518 | cpp | robot_control_plugin.cpp | #include "ros2_control_gazebo/robot_control_plugin.hpp"
#include "parameter_server_interfaces/srv/get_all_pid.hpp"
#include "py_wrappers/forward_kinematics.hpp"
#include <ament_index_cpp/get_package_share_directory.hpp>
#include <functional>
#include <string>
#include <chrono>
#include <algorithm>
namespace{
std:... |
e3020acd9a46eac11d626a2d507e14ef6e8fb80e | 46ea8579c9b697127a8dbc2a59fa38a5ff97f2f5 | /RF/rfm12b/src/examples/main.ino | a914d602f40172e0ac10b627167cbbaefcda465c | [] | no_license | mihaigalos/Drivers | a50fecbb114347ab25051eb71a624ca07b16eaec | da3d653d83e54ba6e880ab87752c68b296e9986e | refs/heads/master | 2022-03-07T23:40:25.568631 | 2022-03-07T21:18:55 | 2022-03-07T21:25:25 | 72,926,966 | 11 | 2 | null | 2020-12-25T09:59:01 | 2016-11-05T13:11:45 | C | UTF-8 | C++ | false | false | 581 | ino | main.ino | #include "RFM12B.h"
//#define SEND
#define OWNID 0x12
String payload = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*(){}[]`|<>?+=:;,.";
#define TOID 1 //the node ID we're sending to
RFM12B r;
void setup() {
r.Initialize(OWNID, RF12_868MHZ);
}
void loop() {
#ifdef SEND
... |
d1f0510d5362d34b47cfe9473c2f3b27de304d9d | 10873fe7a5de6003ab1d0eba1763cc1b890c1b79 | /Damocles/CubeMeshComponent.cpp | aff078c44684485b4e90025c1415492c73417af7 | [] | no_license | MohammadMDSA/Damocles | 9730bb6764fd59ed5d2b24143789e66b35b36daf | 4a8e72faf59d46de81abefc7ea6f1c277e078205 | refs/heads/master | 2022-09-02T13:15:37.459661 | 2020-05-25T20:02:33 | 2020-05-25T20:02:33 | 262,283,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 917 | cpp | CubeMeshComponent.cpp | #include "pch.h"
#include "CubeMeshComponent.h"
using namespace DirectX::SimpleMath;
std::unique_ptr<DirectX::GeometricPrimitive> CubeMeshComponent::cube = std::unique_ptr<DirectX::GeometricPrimitive>();
CubeMeshComponent* CubeMeshComponent::instance = nullptr;
CubeMeshComponent::CubeMeshComponent()
{
}
CubeMeshCom... |
9b685b23ce25274eda00f1e215e4da2f644a302f | e2f3148365870b414b1f958e51a47e9b2dd9f28f | /liblargo/core/media/video/video_frame_converter.h | 134f0638be24b1720d95d863ce0ec40616d4b571 | [] | no_license | vkurbatov/mcu_remake | 2987d780a51fb155b702790b7cf586b964a95105 | 5e8be35f00e43568dd4ca0261dc5fec5deeb4e54 | refs/heads/master | 2021-06-24T07:09:10.160934 | 2020-12-07T11:43:40 | 2020-12-07T11:43:40 | 170,029,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | h | video_frame_converter.h | #ifndef VIDEO_FRAME_CONVERTER_H
#define VIDEO_FRAME_CONVERTER_H
#include "media/common/i_media_frame_converter.h"
#include "media/common/ffmpeg/libav_converter.h"
#include "video_frame_rect.h"
namespace core
{
namespace media
{
namespace video
{
typedef ffmpeg::scaling_method_t scaling_method_t;
enum class aspect... |
20c3fd0d2d80575f475dcd06a568bd65117a91d6 | afa15ca111ec2b73a5a8fd9c4edfae540c36fb33 | /src/include/camera.hpp | 0740b6bffe066bdaeeb306b47815ffefa3229345 | [
"Apache-2.0"
] | permissive | andeluvian/micromachines | ac2056f0118c6bc84c43c78f11fbe37b6c8f943e | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | refs/heads/main | 2023-01-24T07:07:41.531057 | 2020-11-30T17:04:29 | 2020-11-30T17:04:29 | 317,291,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,046 | hpp | camera.hpp | #ifndef CAMERA_HH
#define CAMERA_HH
#include <SFML/Graphics.hpp>
#include "vehicle.hpp"
/*
* @Author: Miika Karsimus
*
* This class is for controlling 2D camera
*
* Features to be implemented:
*
* - Camera follows car
* - You can manually control the camera with keyboard (at least while developing the projec... |
e04ff959722401f194e378a8df0a75c838246dc3 | 546bcce85ce208fe2d93a49da4131da113b95067 | /Game_Of_Live.cpp | 38a7ff168f59fcfaba9d6d1bd732c68909056540 | [] | no_license | kanchan1910/December-Leetcoding-Challenge-2020 | 552b0eb32ec63c645a976014896bd694c2ece18e | c16c580fd3195efd60225a84986e1e0818e438a7 | refs/heads/master | 2023-04-10T05:43:12.950963 | 2021-04-16T06:10:25 | 2021-04-16T06:10:25 | 358,494,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | cpp | Game_Of_Live.cpp | class Solution {
public:
bool valid(int x,int y,vector<vector<int>>&board){
return (x>=0&&x<board.size()&&y>=0&&y<board[0].size());
}
void gameOfLife(vector<vector<int>>& board) {
vector<int> ways_row = {0, 0, 1, 1, 1, -1, -1, -1};
vector<int> ways_col = {1, -1, 1, -1, 0, 0, 1, -1};
... |
991726a368e6659da959adb683dcdc1f6b86d069 | dd6907b3f719baad6be0b51ce13625d7b5bb3d13 | /source/Pila.hpp | a4f994a4d070505dd10228b3d3cd28ed4a6ec436 | [] | no_license | norman-ipn/Exp.Reg.a.AFD | 5539038570e3ddbc25f7d7c6756d0741ac76197d | f003606b0bf829f07dd5089d8875c0ea3b1b69e6 | refs/heads/master | 2021-01-01T15:40:21.246388 | 2014-06-02T05:32:42 | 2014-06-02T05:32:42 | 19,504,784 | 0 | 2 | null | 2014-06-01T23:10:16 | 2014-05-06T18:01:26 | C++ | UTF-8 | C++ | false | false | 738 | hpp | Pila.hpp | #ifndef __PILA_HPP__
#define __PILA_HPP__
#include <iostream>
#include "Nodo.hpp"
class Pila{
private:
// El elemento básico de la pila son los nodos,
// que se irán apilando o eliminando de la pila.
Nodo *ultimo;
public:
// El constructor Pila incializa la pila en NULL.
Pila();
// La función push() inserta un... |
d6d64c6903e20af54cee4a9537dc3d3090730b29 | da2f1ded78038ab7db38929ef5376c9804a8ff6c | /src/sigset2.cpp | 881b77039a0e5ff7ab8c8d728893744cdcb2aac2 | [] | no_license | fusky/linux_study | e67ecc8cceaed482745e84502436066339ec7fb4 | add98c83ec4b7ab2c0ed23f5ea3683a9553f0483 | refs/heads/master | 2020-03-29T20:07:38.827553 | 2014-09-24T10:59:39 | 2014-09-24T10:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | cpp | sigset2.cpp | //解决信号不可靠问题,和sigset.cpp比较
//设置信号屏蔽
#include <io.h>
int *heap;
int array[10];
static int flags = 0;
void set(int n)
{
int i = 0;
int stack[10];
for(i = 0; i < 10; i++){
stack[i] = n;
heap[i] = n;
array[i] = n;
sleep(1);
}
cout << "heap: ";
for(i = 0; i < 10; i++){
cout << heap[i] << ",";
}
cout << en... |
0d125db5f3cb516212c27545f5bd3e5ac7e477ec | eb10d421252568464bf17d0552bb5e811e1ff300 | /Leetcod_way/Leetcod_way/dft.h | 038e34911bde7c9dfd4f89220e1da0b0acc8c136 | [] | no_license | Meveral/Leetcode | 213d697489e5f5b723c8e45c13bbf68f142b4bcd | 674f4e4858d63a5c209d77924cbbd22b24ee9cfd | refs/heads/master | 2023-02-13T13:03:05.070954 | 2021-01-15T02:00:10 | 2021-01-15T02:00:10 | 270,582,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | h | dft.h | #pragma once
#include<iostream>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<algorithm>
#include<queue>
#include<stack>
//#include<>
using namespace std;
|
89aad42b398bd7a11075055c6b271a41db8101a3 | e68c1f9134b44ddea144f7efa7523076f3f12d3a | /FinalCode/PlayerCamera.h | bc57903f5bc0e62cf32f54a059925f241238041a | [] | no_license | iso5930/Direct-3D-Team-Portfolio | 4ac710ede0c9176702595cba5579af42887611cf | 84e64eb4e91c7e5b4aed77212cd08cfee038fcd3 | refs/heads/master | 2021-08-23T08:15:00.128591 | 2017-12-04T06:14:39 | 2017-12-04T06:14:39 | 112,998,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | PlayerCamera.h | #pragma once
#include "Camera.h"
class CPlayerCamera : public CCamera
{
private:
// Dist
float m_fDist;
// Mode
int m_iMode;
// Time
float m_fTime;
public:
virtual void Initialize();
virtual int Update();
virtual void Render();
virtual void Release();
public:
explicit CPlayerCamera(TCHAR* _tszObjKey, O... |
389d1db32dfc19eb59cf194bf4f6e14a7df2d9ca | 1b0ff9800e667d18363be7a5bfb424e61c2aea6e | /Q22_Primenumberslist.cpp | 729b46d9afd091e10398546ed67f5bdecf79eeba | [] | no_license | AastikM/Hacktoberfest2020-9 | 0a7efb78844b3417ffba42cee49bec19b2fc0aed | b54c68db99b640cf066a4bea3e334ce146f0b15c | refs/heads/main | 2023-01-01T22:32:28.073146 | 2020-10-31T15:13:32 | 2020-10-31T15:13:32 | 308,908,890 | 1 | 0 | null | 2020-10-31T15:12:48 | 2020-10-31T15:12:47 | null | UTF-8 | C++ | false | false | 977 | cpp | Q22_Primenumberslist.cpp | // C++ program to find the prime numbers between a given interval
#include<iostream>
using namespace std;
// Function to print prime number in given range
void primeInRange(int L, int U)
{
int flag;
// Traverse each number in the interval with the help of for loop
for (int i=L;i<=U;i++) {
// Skip 0... |
64e914c1ef8868d6a4a43a35a9e9172a5c726931 | 0edcf706d41b506cb1dc754b7bdfae263823793f | /source/CAT/cluster.h | b425cedc3be9a2e6eac005768c410003c76f6e5f | [] | no_license | xgarrido/LCAT | 3638a823d08ee3669273b3f258eecf60defef1a4 | b7ec4cb77d01fcfbdbd555a206adcb949fce39fc | refs/heads/master | 2020-01-27T09:59:52.519598 | 2016-10-13T14:41:16 | 2016-10-13T14:41:16 | 67,502,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,211 | h | cluster.h | // -*- mode: c++ -*-
#ifndef FALAISE_CAT_CLUSTER_H
#define FALAISE_CAT_CLUSTER_H 1
// Standard library:
#include <iostream>
#include <cmath>
#include <vector>
// This project:
#include <CAT/experimental_point.h>
#include <CAT/experimental_vector.h>
#include <CAT/cell.h>
#include <CAT/line.h>
#include <CAT/cell_coupl... |
62014d3baf21f746a8e6df857d75d500a766526e | 11a044d1328c54a1f1a3df967de8b569cce307a9 | /MyList/MyList.h | 167dca798350a407b3a5ee85fbc423245fee447d | [] | no_license | dnsmoly/MyList | 0d11fbe140e911ca948281ac7a0c31615d7013fe | 9192d0a8e651ba158a28b4aed0d999aa7d24ead1 | refs/heads/master | 2023-01-15T03:57:28.240668 | 2020-11-19T10:30:50 | 2020-11-19T10:30:50 | 314,209,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | h | MyList.h | #pragma once
#include "Node.h"
template <typename T>
class MyList
{
public:
MyList(int capacity = 10);
~MyList();
void remove(); // remove last added item
void remove(const T&); // remove an element and all it`s copies
void removeBack(); // remove last element
void append(const T&); // add an element
void push... |
1c96ea313a141f105eac788511dd575b257dff12 | d0f2bb18c39ff5dac5d9d2cec8cc98e96a642d8a | /Examples/Cpp/source/Outlook/AddVotingButtonToExistingMessage.cpp | 6d26045ed6872a584ba39c307cb9ce68b6a66e09 | [
"MIT"
] | permissive | kashifiqb/Aspose.Email-for-C | d1e26c1eb6cb1467cee6a050ed5b52baaf186816 | 96684cb6ed9f4e321a00c74ca219440baaef8ba8 | refs/heads/master | 2023-03-24T22:44:20.264193 | 2021-02-10T14:07:51 | 2021-02-10T14:07:51 | 105,030,475 | 0 | 0 | null | 2017-09-27T14:43:20 | 2017-09-27T14:43:20 | null | UTF-8 | C++ | false | false | 1,194 | cpp | AddVotingButtonToExistingMessage.cpp | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Email for .NET API reference
when the project is build. Please check https://Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Email for .NET API from https://www.n... |
ffcb8cd77016a909e4ee1d0733a05aea7c917c2b | 328d8619f839541ec00938979070c56015c07d98 | /srcs/utils.cpp | 64b94e16cc0c8bc2a4dfc7aecf7a3699de1f214b | [] | no_license | KITKATJN/ft_containers | c6a6bbe3bfccacb32cb493f61e68a41f1cd67879 | e6153e5972004167dcecdd38ac7a74b2513bc1a4 | refs/heads/master | 2023-08-31T10:19:39.424571 | 2021-10-16T18:21:22 | 2021-10-16T18:21:22 | 395,973,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,438 | cpp | utils.cpp | #include "vector_test.hpp"
#include <cstdlib>
#include <ctime>
#include <iostream>
void time(int start, int end) {
std::cout << "[" << GREEN << end - start << RESET << "] ticks && "
<< "[" << GREEN << ((float)end - start) / CLOCKS_PER_SEC
<< RESET << "]"
<< " sec.\n";
}
v... |
3c21eea76cd837582cdfdac190fd1c8f1e527d95 | c61b09d0a3e36cf2976625699c812410be9e823b | /common/CompositeModels/CompositeModelReader.h | b35743f0c6d024b194cbfd69ce3742172c9a3843 | [] | no_license | OpenModelica/OMTLMSimulator | f66b976c0cabe40dcfa9e67c1f085f42aedee6cb | e0693c46327b47c94ad5ce8294fad7ef1463b5cd | refs/heads/master | 2023-07-24T18:24:17.313677 | 2023-07-15T10:59:36 | 2023-07-18T11:58:55 | 88,967,835 | 4 | 15 | null | 2023-07-18T11:58:56 | 2017-04-21T09:36:23 | C | UTF-8 | C++ | false | false | 4,595 | h | CompositeModelReader.h | //! \file: CompositeModelReader.h
//!
//! Defines the CompositeModelReader class which provides an interface
//! for reading in the meta-model information from xml file
//!
#ifndef CompositeModelReader_h
#define CompositeModelReader_h
#include <cstdio>
#include <string>
#include <fstream>
#include <iostream>
#include... |
82743939a51085d8bdfc87a6bb4097675817c956 | 602a895c5835d59934385710910c98c17610b5f5 | /src/calc/engine/proc/base/ElementInteger.cpp | 9e0462cb9ca64b62f97f0f6c687a8359dc1c458e | [
"MIT"
] | permissive | yuishin-kikuchi/eckert | ebb73dc960ec07e2ecb83a02898e69d15c70e9ab | bb7ac85173dc7f3d895764a5df51adbdbfd76024 | refs/heads/master | 2022-11-27T04:30:34.313614 | 2022-11-05T12:13:33 | 2022-11-05T12:13:33 | 76,098,919 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | ElementInteger.cpp | #include "ElementInteger.h"
namespace engine {
////==--------------------------------------------------------------------====//
// ECKERT ELEMENT - INTEGER / Constructor
// [ description ]
// Constructor using integer_t.
// [ Update ]
// Nov 13, 2016
//====-------------------------------------------------------------... |
4b9b1d4cfd007d63f3757dbb3cc32d37fe883513 | 49be3d76cc9b8ffad3f2196e1de5e1bc4ee68e58 | /include/CEstimator.h | e6ec940874370b689e8c447ee3eef44ef6deac74 | [] | no_license | tectronics/zestim | ac97aee13abffdec88307b03232447fbe0c0d7c6 | 05a5c21f56d23cdba3fc39b9923d3488cfec12dc | refs/heads/master | 2018-01-11T14:58:07.976757 | 2012-10-16T13:15:16 | 2012-10-16T13:15:16 | 49,482,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | h | CEstimator.h | #pragma once
#include <CGraph.h>
#include <CIniFile.h>
#include <string>
#include <CParameters.h>
#include <CLikelihood.h>
class CEstimator {
public:
CGraph dataTemplate, dataTemplateOrg, dataAbsorption;
CGraph absorptionLines;
vector<CGraph> data;
bool use_absorption_lines;
int cutoff_mode_start, cuto... |
74183395e68a576f2b477cc72da0436b4015124f | 5c012c7f308da27b8e66725ea118d09ba4515c7b | /code/src/nearest_neighbor.hpp | c56d658194d6fd185f99d480d0a14e755bb4e490 | [
"MIT"
] | permissive | Team-NNZ-Algorithms/tsp | 0fcbd302e8173c51104086fce68fa2dd7d868d8b | e3cc07acd6b7c087cc44d2da8d986f659e113264 | refs/heads/master | 2020-03-19T05:24:38.273808 | 2018-06-09T06:09:04 | 2018-06-09T06:09:04 | 135,927,902 | 0 | 1 | MIT | 2018-06-09T06:09:05 | 2018-06-03T18:00:09 | C++ | UTF-8 | C++ | false | false | 151 | hpp | nearest_neighbor.hpp | #ifndef NEAREST_NEIGHBOR_HPP
#define NEAREST_NEIGHBOR_HPP
#include "utils.hpp"
struct tour tsp_nearest_neighbor(struct tsp_problem &problem);
#endif |
26872849354ad26ef1d9c72a72f2f3584f03790b | 67f865009c64a37261e85e6e6b44009c3883f20f | /c++/part1/amduong.cpp | 4b3814fdac23cfb0cc6f3447358e26cc6a20d642 | [] | no_license | tabvn/ued | 762a25ff68042ff8b77b6f307f3182f3713e5f31 | 005b07c4f9924247b819d9611f84a80c8938fb21 | refs/heads/master | 2021-07-10T06:49:21.535462 | 2020-06-28T07:53:57 | 2020-06-28T07:53:57 | 153,631,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | amduong.cpp | #include <iostream>
using namespace std;
int main(){
long int n;
cin >> n;
long int value = n;
bool notFound = true;
for (int i = 2; i < n; ++i){
while(value % i == 0){
notFound = false;
cout << i;
value /= i;
}
}
if(notFound){
cout << -1;
}
return 0;
} |
af5bee98d6b3041e7ae87f71ed6ab69c0482400c | 60a915754fbe66071ac67d06aab9293a1218e268 | /src/lib/logical_query_plan/mock_node.cpp | 4af853facc2a238c812dd8f2039915ade379b253 | [
"MIT"
] | permissive | b-xiang/hyrise-1 | ec86fa25350b4d4ae8938afcdcca3f00f22cfe9a | 47ed4dc235c5b9f347a74efdfdcec6480a3a448d | refs/heads/master | 2020-03-27T12:25:55.828018 | 2018-08-28T13:11:53 | 2018-08-28T13:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,736 | cpp | mock_node.cpp | #include "mock_node.hpp"
#include <memory>
#include <string>
#include <vector>
#include "expression/lqp_column_expression.hpp"
#include "statistics/table_statistics.hpp"
#include "utils/assert.hpp"
using namespace std::string_literals; // NOLINT
namespace opossum {
MockNode::MockNode(const ColumnDefinitions& colu... |
4edc2e292c435b7d49dad276e136c810c1192605 | 01bc302c699a9796b9a2f0d99316fc038b1991ea | /Yar2019/G/G.cpp | 8f46f660a0448bf0ce05041ee0e0c418411e0c1f | [] | no_license | palich12/acm | 0b4918ad49d77f43ff2551ae168b3194cae516b8 | f05afd5113e679e346dbdc290d44d3d4ad4df95e | refs/heads/master | 2020-03-29T13:48:10.318837 | 2020-03-22T17:31:32 | 2020-03-22T17:31:32 | 149,983,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,510 | cpp | G.cpp | #include <iostream>
#include <vector>
#include <bitset>
#include <map>
#include <queue>
#define MAX_STEP_LENGHT 900
#define MAX_RECURSION_CALL 100000
//one action about reverse hourglasses
struct Action {
int time;
int glassMap;
};
//combination of actions that open posibility to count time of some lenght
struct ... |
5a101af106e2a3951d3adc808d359732a941f785 | 6013a919c2820cc1c9d71a9be785633674b1891e | /apps/myApps/exampleOutput/src/Individuo.cpp | 2d3a043922d0f15b22372a459d1874e5cbad8061 | [] | no_license | fbarretto/Zer0 | d4e839cbfc96f98e30344cd837fba0682b3e8688 | 84d88ed87bb4e9dd6f0539931d84a9f77ef42977 | refs/heads/master | 2020-12-24T15:32:33.881780 | 2018-10-04T11:10:30 | 2018-10-04T11:10:30 | 15,858,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,883 | cpp | Individuo.cpp | //
// Individuo.cpp
// Pulso
//
// Created by barretto on 12/01/14.
//
//
#include "Individuo.h"
Individuo::Individuo() {
radius = 0;
radiusLimit = ofRandom(5,25);
radiusOffset=10;
position = ofPoint(ofRandomWidth(),ofRandomHeight());
//offset;
baseTime = 10;
lifespan = ofRandom(700,120... |
ddf2bbec4e1dcba875ba27dc4bb7e3cab359a1a2 | 333b58a211c39f7142959040c2d60b69e6b20b47 | /Include/Oos/Semaphore.h | 8665082d62d3ec97a815589bc8ff08860e8365da | [] | no_license | JoeAltmaier/Odyssey | d6ef505ade8be3adafa3740f81ed8d03fba3dc1a | 121ea748881526b7787f9106133589c7bd4a9b6d | refs/heads/master | 2020-04-11T08:05:34.474250 | 2015-09-09T20:03:29 | 2015-09-09T20:03:29 | 42,187,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,965 | h | Semaphore.h | /* Semaphore.h -- Encapsulates Kernel Semaphores
*
* Copyright (C) ConvergeNet Technologies, 1999
*
* This material is a confidential trade secret and proprietary
* information of ConvergeNet Technologies, Inc. which may not be
* reproduced, used, sold or transferred to any third party without the
* pr... |
5b1ddfc8222dda36041951698a18b2a3d5235236 | 756f58f3844cbb426bf6f8b5deceeeaa55c2fcb6 | /src/Helpers/include/hvector.h | 4730fb7c5b90a5f97715ae302b2c8e69ffed097b | [] | no_license | JiaquanLi/Algorithm-Server | 7e4345f5a7ef7c847bb516b45348a01006c23a25 | 7b10f19120b72638984b4d30f4650931643340cc | refs/heads/master | 2020-03-28T22:31:09.376675 | 2018-10-16T03:20:21 | 2018-10-16T03:20:21 | 149,238,793 | 2 | 2 | null | 2018-10-12T04:18:17 | 2018-09-18T06:23:37 | C++ | UTF-8 | C++ | false | false | 10,059 | h | hvector.h | //---------------------------------------------------------------------------
// Copyright (C) Honeywell International, Inc. 2017
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// This template class is ... |
b65407441b3c229b59eeb190922cba9e21e8facc | 5a4604ad5bdf3cadb07b2837f25641521c5c609b | /subpartcontroller.h | 9b5dd7019147cbc2d2dd894eac674185333d8b4b | [] | no_license | littletophe2/mycanvas1 | 1b6326746fd45764590f0b1dbfd08844c2f1da92 | 3ae5ac9fd996b717b0c3ebb64a1c63eea237bb95 | refs/heads/master | 2020-06-19T21:31:38.593511 | 2016-11-29T20:58:53 | 2016-11-29T20:58:53 | 74,831,266 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | subpartcontroller.h | #ifndef SUBPARTCONTROLLER_H
#define SUBPARTCONTROLLER_H
#include "viewer3d.h"
#include "controlpanel.h"
/**
* @brief The SubpartController class
* A controller
*/
class SubpartController
{
private:
QString subpartName;
QWidget * widgetForSubpart;
public:
SubpartController(QString subpartName);
virt... |
871589ed37b8f049298b50a173bd318dc7f291fa | f2cbdee1dfdcad7b77c597e1af5f40ad83bad4aa | /MyJava/JRex/src/native/JRexPrintEventWrapper.cpp | c9566927845ebcac28ef29c9ff3ae6ed4265c411 | [] | no_license | jdouglas71/Examples | d03d9effc414965991ca5b46fbcf808a9dd6fe6d | b7829b131581ea3a62cebb2ae35571ec8263fd61 | refs/heads/master | 2021-01-18T14:23:56.900005 | 2011-04-07T19:34:04 | 2011-04-07T19:34:04 | 1,578,581 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,705 | cpp | JRexPrintEventWrapper.cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with t... |
fc544fc0ce49a53d34d75503b0b7863398201887 | 01fa15aad6918d6904ee917642a3385dd5848cfa | /Game/TriggerTestScript.cpp | 1d1acefed8a3632a37255aa58e7cc2b6ad4d9c95 | [] | no_license | SybrenVP/2D_GameEngine | a62e30780e0ab3144c7f5e16892cac7c2940c140 | c590bf2c08a8c52ee9f5ba16f7ecb3309ffc04fe | refs/heads/master | 2020-05-24T17:02:45.217348 | 2019-05-26T19:49:40 | 2019-05-26T19:49:40 | 187,373,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | TriggerTestScript.cpp | #include "pch.h"
#include "TriggerTestScript.h"
TriggerTestScript::TriggerTestScript(svp::GameObject* const pGameObject)
: BaseComponent(pGameObject)
{
m_Layer = LayerFlag::Trigger;
}
void TriggerTestScript::OnTriggerEnter(svp::TriggerComponent * pOther)
{
svp::Logger::GetInstance().Log(svp::Logger::LogType::Debu... |
63191d6ce61cb6e643110e1ae448941baeec8c3a | 3bca8bdbbf6cbd503d50c3d8053f748bf2eaf9cd | /Template_outside_class.cpp | ceb8a4e0984862386e4d4facf19b64026ad55518 | [] | no_license | PolyglotFormalCoder/Cpp_Practice | 228dd0d5adf7292168d055a9c6ca6f3774f67852 | b19cda698d088fbe4c2166c0110c56736b2cdf26 | refs/heads/master | 2022-11-30T21:52:21.068831 | 2020-08-11T14:35:41 | 2020-08-11T14:35:41 | 285,615,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | Template_outside_class.cpp | //simple template
#include<iostream>
#include<vector>
#include <cstddef>
#include <concepts>
#include <functional>
using namespace std;
template <typename T, int N>
class C
{
public:
C(T temp):a(temp){}
T operator()(){
std::cout<<"generic: "<<N<<std::endl;
return a;}
T getData();
private:
T a;
};
template <t... |
f1025e16b4190f0e0ba123902f5abe79b5e23804 | 5dadf128a55f5d1fc5a1d9b9f655ca3053657676 | /src/KendallTau.cpp | a61965a0e829ae306db1dbc6ea5e513a2f9becb1 | [] | no_license | projeto-de-algoritmos/D-C_KendallTau | 13808f6c4dbf3216d7a625077258fde3df298b5b | 6d3058f1b31af25389d27936b0cb2c8c085567c2 | refs/heads/master | 2023-01-23T03:01:53.341923 | 2020-11-14T01:59:25 | 2020-11-14T01:59:25 | 310,756,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,923 | cpp | KendallTau.cpp | #include "KendallTau.hpp"
#include <iostream>
#include <iomanip>
bool KendallTau::adicionarElemento(int elemento) {
if(temElemento(elemento, lista))
return false;
lista.push_back(elemento);
return true;
}
bool KendallTau::temElemento(int elemento, vector <int> listaX) {
for(int i = 0; i < (in... |
ae1f46587ee7d574f90c3a0368758047b6cef705 | af8ff98454a03ef8cd96cbd8057d76385a376251 | /mlmodel/src/ResultReason.hpp | 7b6b676eea1586764cf08357365ee48d18a1e59a | [
"BSD-3-Clause"
] | permissive | prakriti07/coremltools | 4c697773ff6f54b48dd780b3f91da10cf5ba6242 | 82c916d4925ac4dc380e20a595011abb44a35335 | refs/heads/master | 2022-11-08T07:08:33.651727 | 2020-06-29T04:32:19 | 2020-06-29T04:32:19 | 275,730,143 | 0 | 0 | BSD-3-Clause | 2020-06-29T04:28:46 | 2020-06-29T04:28:45 | null | UTF-8 | C++ | false | false | 2,098 | hpp | ResultReason.hpp | //
// ResultReason.hpp
// CoreML
//
// Created by Jeff Kilpatrick on 12/16/19.
// Copyright © 2019 Apple Inc. All rights reserved.
//
#pragma once
namespace CoreML {
/**
Super specific reasons for non-good Results.
*/
enum class ResultReason {
UNKNOWN,
// -----------------------------------------
... |
778834ddd7f5778b2261155ce6297eeb6c29fd5e | 7d7301514d34006d19b2775ae4f967a299299ed6 | /leetcode/string/712.minimumDeleteSum.cpp | 9d64dc3d56999ee8b30b878927b10228b201b4ef | [] | no_license | xmlb88/algorithm | ae83ff0e478ea01f37bc686de14f7d009d45731b | cf02d9099569e2638e60029b89fd7b384f3c1a68 | refs/heads/master | 2023-06-16T00:21:27.922428 | 2021-07-17T03:46:50 | 2021-07-17T03:46:50 | 293,984,271 | 1 | 0 | null | 2020-12-02T09:08:28 | 2020-09-09T02:44:20 | C++ | WINDOWS-1252 | C++ | false | false | 1,605 | cpp | 712.minimumDeleteSum.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
// µÝ¹é
vector<vector<int>> memo;
int minimumDeleteSum(string s1, string s2) {
int m = s1.size(), n = s2.size();
memo.resize(m, vector<int> (n, -1));
return dp(s1, 0, s2, 0);
}
int dp(string s1, int i, string s2, int j) {
int... |
a16cdc4548a4b464d839390fc1769a5262150238 | 294d5e5fd0f176c27fb94391d117690f10e6b9a2 | /12555_babyMe.cpp | fa623e0f7fab70802eb574058b634c8dcb15373c | [] | no_license | matrix01/Uva-Solve | 6b60002344e9b5ac9c5c3fea9085e26abe6e8bd2 | 4a321527bcf90e725348964378d6c4c953619617 | refs/heads/master | 2021-04-09T17:14:59.589768 | 2015-04-23T23:56:50 | 2015-04-23T23:56:50 | 34,484,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | cpp | 12555_babyMe.cpp | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main(){
int a, b, t, sq=1;
cin>>t;
string num;
while(t--){
a=0;
b=0;
cin>>a;
cin>>num;
if(num.size()>3){
b=(int)(num[3]-'0');
}
cout << "Case " << sq++ << ": " << a * 0.5 + b * 0.05 << endl;
}
return 0;
} |
705102ad35ac25a423df90de75ea61670b96d016 | 09e897e40fb9e32e33bc5a146aeb9faded607bf5 | /Source/math_utils.cpp | 752f443cef57f1080c559b8f07eca37e7769423b | [
"MIT"
] | permissive | JuanDiegoMontoya/EngineBase | b919acad0bc1e2b5acf77d29bd821739a61bc18e | e9b3f35d1a49e24a23c322c554176da55272e680 | refs/heads/master | 2021-02-08T04:57:19.543337 | 2020-11-14T23:44:58 | 2020-11-14T23:44:58 | 244,111,711 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,995 | cpp | math_utils.cpp | #include "../../stdafx.h"
#include <cmath>
#include <random>
#include "utilities.h"
namespace Utils
{
float lerp(float a, float b, float t)
{
return (a + ((b - a) * t));
}
// 1 - t is the AMOUNT COMPLETED after one second (lower is faster)
float lerp_t(float a, float b, float t)
{
float dt ... |
058cb2ac3a131b893dbfbb27572f6f41d9bd2700 | 6934698255bccce965723be83684c2757e74750c | /src/mongo-cxx-driver/mongo/client/distlock.cpp | 9ec98eaed187348c77f4f0f935f515d82c8a5916 | [
"Apache-2.0"
] | permissive | tpisto/rmongo | 5beffa02e7e3b12e07d5c47e16cd7e32878047f5 | dc34be98ad509b9636d7a1968e8f12669666ae2f | refs/heads/master | 2016-09-06T10:28:03.445079 | 2011-02-28T17:45:13 | 2011-02-28T17:45:13 | 1,416,232 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,451 | cpp | distlock.cpp | // @file distlock.h
/* Copyright 2009 10gen 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 ... |
f43f3d1ffbf9cc2121d09e04bf97dc7cc2404a18 | a92d745464fe87a9be5a3b3a7f22c894d4a56399 | /cc/file_system_model.cc | 7054b76ffa329d137e98e924981940b367f1817f | [] | no_license | 20496e76696e6369626c65/qt_file_manager | 225360702b1af7a177814814683ac1c0687dc683 | e2d8762c299c8bc0a7354b7abd4e36213c342803 | refs/heads/master | 2020-04-23T15:33:55.727851 | 2019-02-18T11:17:44 | 2019-02-18T11:17:44 | 171,270,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,142 | cc | file_system_model.cc | #include "h/file_system_model.h"
#include <QDir>
#include <QFileInfo>
QVector<QString> FileSystemModel::all_columns_;
bool FileSystemModel::created_ = false;
FileSystemModel::FileSystemModel(QObject *parent): QAbstractItemModel (parent)
{
columns_.reserve(HeaderInfo::COUNT);
columns_.push_back(HeaderInfo::N... |
47290fa07269862c1be20780bf0bf07644f9c6f2 | 1fd648182ba26a1ade511843d44f5e4e1f7d9be7 | /polly/lib/Analysis/ScopPass.cpp | dfdf31396d9fbe353db5ef68c09b61f1c9d5af3e | [
"NCSA"
] | permissive | fortanix/llvm-project | 027520a1fe1654b619252556680aeb4998f90704 | 6ea8f0c412376c1df942d7a77a292675489ebb37 | refs/heads/release/5.x | 2022-11-13T17:47:22.927605 | 2020-03-27T11:03:08 | 2020-03-27T11:03:08 | 165,190,717 | 1 | 3 | null | 2022-11-06T10:31:35 | 2019-01-11T06:22:04 | C++ | UTF-8 | C++ | false | false | 4,373 | cpp | ScopPass.cpp | //===- ScopPass.cpp - The base class of Passes that operate on Polly IR ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
d468492225e4f97e96cfe71cf4208ed7069fd1ba | 7fbbae05d8d4d6b3eaeb9d771b6470f26c84c286 | /core/mm.cc | f758e84c0e94959bc128376bdfcdc4d3ee8272c3 | [
"MIT"
] | permissive | baileyforrest/chipix | 4e663712db41c5498cf1ecc7a0c1fbc59ac1be99 | 35ed48293411cc36d9a44e524c1189134e7dff18 | refs/heads/main | 2023-06-24T10:08:21.694081 | 2021-07-19T07:04:36 | 2021-07-19T07:04:52 | 384,381,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,026 | cc | mm.cc | #include "core/mm.h"
#include <arch.h>
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <algorithm>
#include <utility>
#include "core/addr-mgr.h"
#include "core/cleanup.h"
#include "core/macros.h"
#include "libc/macros.h"
#include "libc/malloc.h"
namespace mm {
namespace {
AddrMgr g_kernel_va_... |
dd604e8501fa2306aaa73326c3bc483917221a99 | 2d361696ad060b82065ee116685aa4bb93d0b701 | /src/gui/packages/pkg_sequence/gff_load_manager.cpp | ae29d227fda4c985840883555f4c004791861f07 | [
"LicenseRef-scancode-public-domain"
] | permissive | AaronNGray/GenomeWorkbench | 5151714257ce73bdfb57aec47ea3c02f941602e0 | 7156b83ec589e0de8f7b0a85699d2a657f3e1c47 | refs/heads/master | 2022-11-16T12:45:40.377330 | 2020-07-10T00:54:19 | 2020-07-10T00:54:19 | 278,501,064 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,350 | cpp | gff_load_manager.cpp | /* $Id: gff_load_manager.cpp 38477 2017-05-15 21:10:59Z evgeniev $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government W... |
aeba1b59497ff4d27e335a38701eccf45fc9575a | 88fe22e8898aa55db979ddf56153a0aaaa0b6216 | /EnchantmentItemHelper.h | 7d17e2388c13fa97b85f4ae291ed154ad01fccd2 | [] | no_license | GarrixWong/SmartHarvestSE | 6e32edbaea6ae07f0362a2cef1b06bd225efd58b | 3eabb00056017e5fe2245bb6fc6322d96981890c | refs/heads/master | 2022-11-11T12:09:43.212104 | 2020-07-01T09:28:18 | 2020-07-01T09:28:18 | 276,326,476 | 0 | 0 | null | 2020-07-01T08:52:00 | 2020-07-01T08:51:59 | null | UTF-8 | C++ | false | false | 190 | h | EnchantmentItemHelper.h | #pragma once
class EnchantmentItemHelper
{
public:
EnchantmentItemHelper(RE::EnchantmentItem* item) : m_item(item) {}
UInt32 GetGoldValue(void);
private:
RE::EnchantmentItem* m_item;
};
|
5af74877327feafb58d63ad54b05f4082ce29096 | 03727fc0a8c6356c7816af11abe96b0534d54ba9 | /INTEGRATE-Vis.1.0.0/src/BedpeAnnotator/src/main.cpp | 06596e9e00b7e3b66d384a4929131804276196bf | [] | no_license | ChrisMaherLab/INTEGRATE-Vis | 6f765f39ea4734eb2b696545b2cdd92450c6864d | 1e96a2d1b088135dda0338c30c000f6d71574eb7 | refs/heads/master | 2023-05-26T12:11:53.726899 | 2023-05-08T19:50:13 | 2023-05-08T19:50:13 | 98,339,013 | 12 | 9 | null | 2023-05-08T15:41:43 | 2017-07-25T18:44:40 | Python | UTF-8 | C++ | false | false | 4,096 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Jun 16, 2016
* Author: Jin Zhang
*/
#include "Bedpe.h"
#include "Reference.h"
#include "Gene2.h"
#include "Annotate.h"
#include "Dinucleo.h"
#include "AnnotateDi.h"
#include <iostream>
#include <getopt.h>
#include <iostream>
#include <string>
#include <cstring>
#include <cstdli... |
f604b2cd3018e290b129ec95a9d1d42abb06509a | 27738731ef7fcba49dc0c13ea6fda9eea7ee6740 | /SPOJ/101. Fishmonger/main.cpp | 9d31041006cb29f39f475edd2e73d2f83dd536ea | [] | no_license | BranimirE/Workspace | 7d72d2d5a3e041c9cc2d7d452d084484a9e1b2fb | c0c2248f575b6106662a91f84da0717ffe69ef57 | refs/heads/master | 2020-04-25T23:17:33.310034 | 2015-08-19T05:42:57 | 2015-08-19T05:42:57 | 11,217,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | cpp | main.cpp | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <fstream>
#define MAX 52
#define INF (1<<29)
using namespace std;
int n;
int tiempo[MAX][MAX], peaje[MAX][MAX];
pair<int,int> dp[MAX][1002], nocalculado = make_pair(-1, -1);
pair<int,int> solve(int actual, int disponible){ // return costo, tiempo
if(... |
85444647a8973ebf52fd5128558466e145ad951f | 325483686eb27365fa08e39c543747d659a69099 | /cpp/LargestRectangleinHistogram.cpp | ae0b490e64c3e87125c981457f93b2ef927e35c3 | [
"Apache-2.0"
] | permissive | thinksource/code_interview | 11bff53199cd47e9df3c7bc3034f0670209231d2 | 08be992240508b73894eaf6b8c025168fd19df19 | refs/heads/master | 2020-04-11T02:36:38.858986 | 2016-09-13T22:13:31 | 2016-09-13T22:13:31 | 68,151,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | cpp | LargestRectangleinHistogram.cpp | class Solution {
public:
int largestRectangleArea(vector<int> &height) {
int maxArea = 0;
stack<int> heights;
stack<int> indexes;
for(int i=0;i<(int)height.size();i++) {
if(heights.empty() || heights.top() < height[i]) {
heights.push(height[i]);
... |
03da1762e4410c13cbb52d3ec8f76985ff349839 | 635c344550534c100e0a86ab318905734c95390d | /ntcore/src/main/native/include/networktables/NetworkTableListener.inc | 5453d87584c6d3534b9c84ddd2f8077c16c9b8ce | [
"BSD-3-Clause"
] | permissive | wpilibsuite/allwpilib | 2435cd2f5c16fb5431afe158a5b8fd84da62da24 | 8f3d6a1d4b1713693abc888ded06023cab3cab3a | refs/heads/main | 2023-08-23T21:04:26.896972 | 2023-08-23T17:47:32 | 2023-08-23T17:47:32 | 24,655,143 | 986 | 769 | NOASSERTION | 2023-09-14T03:51:22 | 2014-09-30T20:51:33 | C++ | UTF-8 | C++ | false | false | 6,138 | inc | NetworkTableListener.inc | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <span>
#include <string_view>
#include <utility>
#include <vector>
#include "networktables/Multi... |
0a393ac4a83ef08d8dcb894340b3b13e58f99c75 | e8a42b2a3d43c1d514633de5bb54120cc1c534a1 | /TOV_Solver.cc | 671799b4b1eee775f31713e9e7f4c83aebc0dba7 | [
"BSD-2-Clause"
] | permissive | leowerneck/TOV_Solver | 47f6afb6c572a97b24860963831e7c044bef02bc | 1bc3d6b98d32a987d78ba2f1f53ec5d73d3e58bf | refs/heads/master | 2023-08-09T05:06:55.350121 | 2023-07-27T16:01:30 | 2023-07-27T16:01:30 | 222,497,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,014 | cc | TOV_Solver.cc | /* .-----------------------------------------.
* | Copyright (c) 2019, Leonardo Werneck |
* | Licensed under the BSD 2-Clause License |
* .-----------------------------------------.
*/
/* Program : TOV Solver
* File : TOV_Solver.C
* Author : Leo Werneck (werneck@if.usp.br)
* Date : Oct... |
278df51562ee9fa56842032d233873c976329dd2 | f0efafb3f01a21dd3ad8c19508eb01f34c86afb1 | /DnfTest/Common/ErrorReport.h | c9de8d135804d924ff852e2f6bce8ee3a55a76eb | [] | no_license | liuxiaowei/DnfTest | 7fa7274b69801f1684d2a643da651e97803fa83f | 681cab7085ff92e90f062af3e4ea439e40286911 | refs/heads/master | 2020-04-30T15:20:03.267851 | 2019-04-09T08:46:26 | 2019-04-09T08:46:26 | 176,917,741 | 0 | 0 | null | 2019-04-09T08:46:27 | 2019-03-21T09:58:57 | C++ | GB18030 | C++ | false | false | 2,015 | h | ErrorReport.h | //-------------------------------------------------------------------------
// 文件: ErrorReport.h
// 时间: 2005-12-19 10:43
// 作者: 游戏行业很多兄弟奋斗的积累
// 名称: 错误报告与发送
// 版本:
// [v1.0]2005-12-19 10:43:初始版本
// [v1.1]2005-12-20 14:09:添加了一个主对话框
// [v1.2]2005-12-23 15:01:参照UE的显示,添加了二进制显示功能
// [v1.3]2006-01-04 20:23:更改了Win9X的文件兼容性问题
/... |
5bfbea792c0523af0a100a6ab5fd71fdf25e53ba | 5a96ec7e5d4417b155887353b9f249eba0e82fd1 | /app/src/main/cpp/ChaoResample.h | 67db5b83de8d13cd1af4050bfdbd3dcc246eb00e | [] | no_license | lichao3140/ChaoPlayer | 6201a400dc0dd084c6a1fa724b11440cc801d25d | 00ecb03ad5e8005a5431958a997d15eb6ee2dd38 | refs/heads/master | 2020-03-14T23:26:57.886050 | 2018-05-19T13:29:14 | 2018-05-19T13:29:14 | 131,845,231 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | ChaoResample.h | //
// Created by Administrator on 2018/5/5 0005.
//
#ifndef CHAOPLAYER_CHAORESAMPLE_H
#define CHAOPLAYER_CHAORESAMPLE_H
#include "ChaoObserver.h"
#include "ChaoParameter.h"
class ChaoResample: public ChaoObserver {
public:
virtual bool Open(ChaoParameter in, ChaoParameter out = ChaoParameter()) = 0;
virtual... |
60eedf74a817b14c7a13a3363576be9f1e4107c4 | bca2bde27beb974e1ba6d55d295af145dad45f77 | /Codeforces/1392D. Omkar and Bed Wars.cpp | b696c14b0a0e8672b2ce291fe7d9b060c3be016c | [] | no_license | nasif-raihan/Solved-Problems-of-Online-Judges | 35a4bec8e96bc231890a04748c25253fcd26ac87 | 5c7d77e1189745851ee7e15333f44a4623073d11 | refs/heads/main | 2023-01-07T15:42:38.485717 | 2020-10-21T06:54:24 | 2020-10-21T06:54:24 | 301,312,908 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | 1392D. Omkar and Bed Wars.cpp | #include <bits/stdc++.h>
using namespace std;
string s;
int main()
{
int i, j, n, t, l, r, ans;
cin >> t;
while(t--)
{
cin >> n >> s;
j = 0;
for(i=1; i<n; i++)
{
if(s[i] != s[i-1])
{
j = i;
break;
}
... |
29f6305eb732a4984dfd778e46e83eb3a024f52f | 8d6277108164d60cc323191900d2700c42ce83c5 | /cpp/src/gandiva/precompiled/decimal_wrapper.cc | d5c919e8af11a762046ce5e8c12b3386dfc4cd1b | [
"Apache-2.0",
"CC0-1.0",
"BSD-3-Clause",
"MIT",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | SeppPenner/arrow | 0fa703c696a4570485d3ba34ed2c83c8ce65185f | 1df8806c61ace322a72bd44e73e7060af53d4b82 | refs/heads/master | 2020-05-05T02:07:38.921743 | 2019-11-25T08:22:31 | 2019-11-25T08:22:31 | 179,625,814 | 1 | 0 | Apache-2.0 | 2019-11-25T08:22:32 | 2019-04-05T05:45:41 | C++ | UTF-8 | C++ | false | false | 4,153 | cc | decimal_wrapper.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
dac064969a32f38f857920a514e7d686009f6b0d | 260b9dcbfa93804704cd88bfd5ddb3bf987027a7 | /TrafficGenerator/exp_distribution.cpp | 9a72b8d18ece3538a922091c2849da29933d86b6 | [] | no_license | simonjoylet/magna | 916bf806249e9b46db85be194de2daf71ecda4f6 | 918655ff9c6a6f6bfe0f9c7aab8d3da0aafdfca6 | refs/heads/master | 2018-07-20T04:29:47.773532 | 2018-06-02T01:47:58 | 2018-06-02T01:47:58 | 110,985,385 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | exp_distribution.cpp | #include <iostream>
#include <random>
#include <stdio.h>
#include <time.h>
using namespace std;
int main()
{
time_t t;
time(&t);
srand(t);
int lamda = 1000;
for (int i = 0; i < 100; ++i)
{
double rst = (log(lamda) - log(rand() % lamda)) / lamda;
cout << rst * 1000 << endl;
}
getchar();
} |
196a7b738d253e8671907d88b8168b5fdd5eb967 | 511872278bea465e58c64d96c9dbe58bc726e1a6 | /7_trees/8_levelOrderSpiral1.cpp | 813aee81535ad81b94874b09a1ece9752894e3fe | [] | no_license | SubashChandra/placements-Mtech | d0bca826e4342635138e330f5ec23e1119cbc57e | 85c8b09b0400243d3db5af5db6578ba70fad8058 | refs/heads/master | 2021-01-20T11:23:46.143637 | 2016-11-02T17:08:56 | 2016-11-02T17:08:56 | 59,268,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,941 | cpp | 8_levelOrderSpiral1.cpp | //binary search tree
#include<cstdio>
#include<iostream>
#include<map>
#include<stack>
#include<queue>
using namespace std;
struct tree
{
int data;
struct tree *left;
struct tree *right;
};
typedef struct tree Tree;
typedef Tree *Treeptr;
Treeptr getNew(int data)
{
Treeptr newnode=(Treeptr)malloc(sizeof(Tree)... |
48721b17a27e8ec8cf2cf9186c1c6c933f3af982 | 027836e14779ecc9ac036c39b622bf5d6a31c71b | /addons/breathing/ACE_Medical_Actions.hpp | d249f5c3593079663492265d45b54a0eb2ec1939 | [
"MIT"
] | permissive | kellerkompanie/kellerkompanie-medical | 33d5cf8b5c1532e309ff2c8f4cee0ca16fa37781 | b66076217c1c08b6464ec19c15eef72c91bb5cfb | refs/heads/master | 2022-02-16T18:13:01.188420 | 2022-01-28T20:00:41 | 2022-01-28T20:00:41 | 177,442,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,819 | hpp | ACE_Medical_Actions.hpp | class ACE_Medical_Actions {
class Advanced {
class Pulseoximeter {
displayName = CSTRING(Pulseoximeter_Display);
displayNameProgress = CSTRING(placing);
category = "examine";
treatmentLocations[] = {"All"};
allowedSelections[] = {"hand_l", "hand_r"... |
de49328a7d7af966144781138087151902401648 | 7cd9751c057fcb36b91f67e515aaab0a3e74a709 | /src/mip/MIP_Kappa_Calculator.cc | 967cdaebd097deb5151521185a54fb80b28ec75f | [
"MIT"
] | permissive | pgmaginot/DARK_ARTS | 5ce49db05f711835e47780677f0bf02c09e0f655 | f04b0a30dcac911ef06fe0916921020826f5c42b | refs/heads/master | 2016-09-06T18:30:25.652859 | 2015-06-12T19:00:40 | 2015-06-12T19:00:40 | 20,808,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cc | MIP_Kappa_Calculator.cc | /** @file Local_MIP_Assembler.cc
* @author pmaginot
* @brief Implement the (partially) virtual Diffusion_Matrix_Cretator class,
* The goal of this clas is to construct MIP diffusion operator matrices in a generic format
* concrete instantiations of this class will evaluate the following :
* ... |
eb06d3da25a05cc80b43a201bcc2834ccf88a8ae | bf8ef95132764c84262f60ab27e873364e3a3c78 | /affineTransform.cpp | 40c8cee82b6906cc8e094edb9f6a6f682627d02c | [] | no_license | catherinetaylor2/Markers | 939cb1ead7778855df058de67b7de82cb05da689 | 675af50e383077e599a2000463f7fadd26dcd4ba | refs/heads/master | 2021-05-05T04:48:10.373787 | 2018-04-10T13:27:41 | 2018-04-10T13:27:41 | 118,628,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,054 | cpp | affineTransform.cpp | #include <iostream>
#include <cmath>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "affineTransform.hpp"
float degToRad(float angleDegrees){
return angleDegrees*PI/180.0f;
}
float randomNumber0to1(){
return (float)rand()/RAND_MAX ;
}
float randomNumber0tox(float x){
... |
f59c124ecf8a84fd2c8f51d7540352444aaed1c8 | 949714310a640856b524724fbda04493636de60e | /M8_classes/M1_classes/p1/class_members.cpp | 5fcdde3117a65a85c22d11d6a4331e779f9c0f10 | [] | no_license | jcwalmsley/CourseNotes_Cpp | 0fc5fbf5a7f66a681952d88537009e4c3b992c8b | f7c15f065a01f14c0bc58c8ba1135ba70f157c36 | refs/heads/master | 2022-03-27T08:36:20.601483 | 2019-12-28T13:56:50 | 2019-12-28T13:56:50 | 178,411,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | cpp | class_members.cpp | /*
Create a function that can modify values witin the student class created
before.
Standard method for inputing data items is to use setDataName to change data inside a class.
Include the these 3 items of data:
name
id
gradDate
*/
//
void setName(std::string nameIn)
//
/*
... |
c685f3a27f2d483b97141ddb2d67bdce28887907 | 6b8fff0eeb75ad266af0ec2b9e9aaf28462c2a73 | /GCJ_Dataset/Data/Alexander86/1835486_1481492_Alexander86.cpp | 1ebd57ce8ee58bec31898c2d5cb5f53cb8703105 | [] | no_license | kotunde/SourceFileAnalyzer_featureSearch_and_classification | 030ab8e39dd79bcc029b38d68760c6366d425df5 | 9a3467e6aae5455142bc7a5805787f9b17112d17 | refs/heads/master | 2020-09-22T04:04:41.722623 | 2019-12-07T11:59:06 | 2019-12-07T11:59:06 | 225,040,703 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,295 | cpp | 1835486_1481492_Alexander86.cpp |
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <cfloat>
#include <numeric>
using namespace std;
typedef long long ll;
typed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.