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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eea41ddfc407988df773276b1253e2f528d87086 | e5091c3a8477fa12e1adfdb1f3d826eb6e9bb2be | /Kattis/implementation_irregularities.cpp | b0353feaf36ee7040538c17bbddabef5282eba41 | [] | no_license | leonardoAnjos16/Competitive-Programming | 1db3793bfaa7b16fc9a2854c502b788a47f1bbe1 | 4c9390da44b2fa3c9ec4298783bfb3258b34574d | refs/heads/master | 2023-08-14T02:25:31.178582 | 2023-08-06T06:54:52 | 2023-08-06T06:54:52 | 230,381,501 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | implementation_irregularities.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n; cin >> n;
vector<pair<int, int>> problems(n);
for (int i = 0; i < n; i++)
cin >> problems[i].second;
for (int i = 0; i < n; i++)
cin >> problems[i].first;
... |
dda08f5df0ba8302a09ecaf72725dd9c8f0cd73e | 52346de88a47f70ed63335b21ff12748bbbb5cba | /modules/canbus/vehicle/lincoln/protocol/gps_6f.cc | d06a413e782fbe5b8fa7bcd82404288841b180b6 | [
"Apache-2.0"
] | permissive | lgsvl/apollo-5.0 | 064537e31c5d229c0712bfcd4109af71dbf1d09d | 105f7fd19220dc4c04be1e075b1a5d932eaa2f3f | refs/heads/simulator | 2022-03-08T09:18:02.378176 | 2021-10-01T22:07:57 | 2021-10-01T22:07:57 | 203,249,539 | 86 | 115 | Apache-2.0 | 2022-02-11T02:55:46 | 2019-08-19T21:00:15 | C++ | UTF-8 | C++ | false | false | 3,515 | cc | gps_6f.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
e466f59e876df98d26e6e81051a3804d346aa1fa | 3cdd3db4e683b2b080124f0014307c080db1972d | /DeusExMachina/DeusExMachina/Color.hpp | e1e11b113e7b200794652a9d68e83bca2cb50c3a | [] | no_license | jamalbouizem/Deus-Ex-Machina | fa4b4cc9b68916db8deba4c8c0166828006d17a6 | 8f5127b4981ab533b3b59bbabc64ce3d0f45ed88 | refs/heads/master | 2021-05-31T04:08:36.736489 | 2016-04-27T09:09:20 | 2016-04-27T09:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | hpp | Color.hpp | #ifndef COLOR_HPP
#define COLOR_HPP
#include <iostream>
#include <cmath>
namespace DEM
{
namespace Math
{
class Color
{
public:
float r, g, b, a;
Color();
Color(float r, float g, float b, float a);
Color(const Color& v);
virtual ~Color();
void set(float r, float g, float b, float a... |
fbfd329bad98b09c77045731da48d5423c2614d2 | 8533cf7eafdcd9608003beb9beb0a12a802f21ac | /RPG-PK4/SkillTreeWarrior.cpp | fde53c4ec6605546eff0665239820d518b8d0ce0 | [] | no_license | namzil/RPG-PK4 | 4c42e785b12373c55348892572c79f6f2bb05d28 | 395d56a1cc21ecf3f91a456477d6c874e6739847 | refs/heads/Player | 2021-01-17T12:56:49.809901 | 2016-06-13T21:29:41 | 2016-06-13T21:29:41 | 56,842,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | SkillTreeWarrior.cpp | #include "SkillTreeWarrior.h"
SkillTreeWarrior::SkillTreeWarrior()
{
}
SkillTreeWarrior::~SkillTreeWarrior()
{
}
void SkillTreeWarrior::showSkills()
{
SkillTree::showSkills();
heroicStrike.isAvalible();
bloodlust.isAvalible();
}
|
2e8be8aac0408614fbfd6edc8af6076b8598299e | 95b8976fd25d5f9241a10b862b909b0286059591 | /ActivityScanning/CPU.cpp | 09eb1be78f642744988a0ea04d269d6413e0811d | [] | no_license | JedrzejKieruj/ProjektSymulacyjny | e217788279eda256d2ff938e2899ccdbb13fc604 | ba066bbaa7e4f655da447d018503b99320ca397f | refs/heads/master | 2020-05-14T19:32:52.897025 | 2019-05-12T19:12:17 | 2019-05-12T19:12:17 | 181,928,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | CPU.cpp | #include "CPU.h"
CPU::CPU()
{
process_cpu = nullptr;
workingTime = 0;
serviceStart = -1;
serviceEnd = -1;
}
CPU::~CPU()
{
}
Process * CPU::get_process_cpu()
{
return process_cpu;
}
void CPU::assign_process_to_cpu(Process * _p, long time)
{
if (process_cpu == nullptr) {
process_cpu = _p;
if (_p->get_I... |
b4204f65f14148815ca8ca7b2df16bb6acddfef0 | 67c2e1ce81b343952e96b09e2eaf1ddc7f3888fc | /Rendering/RDepthStencilState.cpp | 04eae121d4413924a9d562666245c62fa42d4d6c | [] | no_license | aclysma/Helium | 806c5a3954ecd162a1a7137562bd0f71e084423a | a009248596b2e537ccb8e7c3e587628b8bda8b7a | refs/heads/master | 2021-01-18T05:31:57.004647 | 2011-06-07T04:49:10 | 2011-06-07T04:49:10 | 1,301,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | RDepthStencilState.cpp | //----------------------------------------------------------------------------------------------------------------------
// RDepthStencilState.cpp
//
// Copyright (C) 2010 WhiteMoon Dreams, Inc.
// All Rights Reserved
//----------------------------------------------------------------------------------------------------... |
cd3c51299e992e819f4fd565512a601b2414e63b | f8bba7fcdfc0423ee6a292289d25dc7d778ab30f | /coding_test_techgig2021/djiktra_optimized.cpp | d0503315b8528530930aa3aec89fc2976e9652ec | [] | no_license | gnsendhil/Programming_practice | 936e4ad4a21d9cf417bdacc1d7fc0872be336733 | 5d11640184239fb054e6d2128c7e4d07b36c422c | refs/heads/main | 2023-08-31T15:58:33.354102 | 2021-10-14T02:21:00 | 2021-10-14T02:21:00 | 382,007,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,928 | cpp | djiktra_optimized.cpp | #include <bits/stdc++.h>
using namespace std;
void shortest_path(int num, vector<pair<int,int>> Graph[])
{
int inf = (int)1e8;
vector<int> Distance(num+1, inf);
Distance[1] = 0;
set<pair<int, int>> Queue;
Queue.insert({0,1});
while(!Queue.empty())
{
auto top = Queue.begin();
... |
f7cce0c6968d1f11b5190c327bacab2d36443dbf | 6c4b9816db3f93e09ffc8f85606da3b9a927bd05 | /Source/UR_FPS_Shooter/UR_FPS_ShooterGameMode.h | e52a44f0a371dcff06ae3224605d21d52fe89ebb | [] | no_license | Balaji-Ganesh-AK/FPS_Shooter_Udemy | a1a4c1ad2d63ec33076ba836204ea54225d9ceff | ab3232f7d3e9d53b822ba14dbeb6ba220a8f63cf | refs/heads/master | 2020-05-31T06:56:02.752714 | 2019-07-03T14:33:42 | 2019-07-03T14:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | h | UR_FPS_ShooterGameMode.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "UR_FPS_ShooterGameMode.generated.h"
UCLASS(minimalapi)
class AUR_FPS_ShooterGameMode : public AGameModeBase
{
GENERATED_BODY()
public:
AUR_FPS_ShooterGameMode();
};
... |
8d521d3b072381f4223ae3c3760d2bfe5406edbf | 1519b3d0957ca2a6a3c42719c07813a438b8e5d4 | /dialog.cpp | 829c5617a44dbc810fc67392c2bb929eb6fc95b5 | [] | no_license | zhhelical/zhjsfile | 6f2d3a820b9149113cb2fb17238fdcdaa609ed49 | d206581d810e6d715ca1764b4b139c1da476e853 | refs/heads/master | 2021-01-11T08:49:15.285792 | 2018-01-07T10:42:27 | 2018-01-07T10:42:27 | 76,761,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,001 | cpp | dialog.cpp | #include <QtGui>
#include "dialog.h"
#include "mainwindow.h"
#include "tablemanagement.h"
#include "dataestableview.h"
#include "relatedtreeview.h"
#include "littlewidgetsview.h"
#include "littlewidgetitem.h"
#include "spcdatabase.h"
DiaLog::DiaLog(QWidget * parent)
:QDialog(parent, Qt::FramelessWindowHint), r_chk(fal... |
ae13f35ab6bb7574790c5c127b88feb8e8b0ccf5 | 92e3ae093fa28c32e88701ed73c581f372c05f89 | /instrumentor/NaiveCoverageSet.cpp | baaf3d471602bef82b871a11f4b1cb3c235983ca | [
"NCSA",
"Apache-2.0"
] | permissive | liblit/csi-cc | 702f220c50a9254eebcb837269333765b1a26b32 | 257da44de3f5ef43ff5957fe4774d9d14869668d | refs/heads/master | 2023-05-30T06:33:54.246656 | 2023-05-18T21:02:06 | 2023-05-18T21:02:06 | 33,838,706 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 10,236 | cpp | NaiveCoverageSet.cpp | //===----------------------- NaiveCoverageSet.cpp -------------------------===//
//
// A very naive implementation of checking coverage sets.
//
//===----------------------------------------------------------------------===//
//
// Copyright (c) 2023 Peter J. Ohmann and Benjamin R. Liblit
//
// Licensed under the Apach... |
c82812655d2446ffa8ee92f30190c65c123342f0 | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/FSIApplication/custom_utilities/shared_points_mapper.h | b64d6c57027eb6f35745b50cfafa90c6d04c8cef | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | C++ | false | false | 7,594 | h | shared_points_mapper.h | //
// Project Name: Kratos
// Last Modified by: $Author: pooyan $
// Date: $Date: 2006-11-27 16:07:42 $
// Revision: $Revision: 1.1.1.1 $
//
//
#if !defined(KRATOS_SHARED_POINTS_MAPPER_H_INCLUDED )
#define KRATOS_SHARED_POINTS_MAPPER_H_INCLUDED
// System includes
#inclu... |
9692dbd4362f32b45d1182ed9b6201d4bae21be1 | ac9513327fd895d25efb846eee8bba0824052877 | /app/src/server/Server.cpp | 9027955063aba33e6d180ddab9b3ce3d182a2ec1 | [
"MIT"
] | permissive | DarkMaguz/HAC | 16eaf93458fbe04ebeb365b5d1f937e8d114b2f9 | 271741412a41b6d363fe67c48a6c4097780732c5 | refs/heads/master | 2021-01-24T01:01:16.735311 | 2018-03-29T22:19:29 | 2018-03-29T22:19:29 | 122,792,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | Server.cpp | /*
* Server.cpp
*
* Created on: 25. feb. 2018
* Author: Peter S. Balling
*/
#include "Server.h"
Server::Server() :
ServerSocket( DEFAULT_SERVER_PORT ),
log( "log" ),
mutex_user( (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER ),
mutex_workunit( (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER ),
mutex_collision(... |
d6cf25f7a8e44e93304b9e6c4833ac8417f7d633 | 07c856e147c6b3f0fa607ecb632a573c02165f4f | /Ch08_Algorithm/ex50_includes.cpp | 173f4a6825ed31aab9b1f953d9f60b3af731cbe6 | [] | no_license | choisb/Study-Cpp-STL | 46359db3783767b1ef6099761f67164ab637e579 | e5b12b6da744f37713983ef6f61d4f0e10a4eb13 | refs/heads/master | 2023-06-25T04:13:40.960447 | 2021-07-19T01:38:59 | 2021-07-19T01:38:59 | 329,786,891 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,484 | cpp | ex50_includes.cpp | // includes() 알고리즘 예제
// 한 순차열이 다른 순차열의 부분 집합인지 판단하려면 includes() 알고리즘을 사용
// includes(b,e,b2,e2) 알고리즘은 구간 [b2,e2)의 원소가 구간 [b,e)의 원소에 포함되면 true, 아니면 false 반환
// 조건자 버전은 f를 비교에 사용.
// [출력 결과]
// vec1: 10 20 30 40 50
// vec2: 10 20 30
// vec3: 10 20 60
// vec2는 vec1의 부분 집합
// vec3는 vec1의 부분 집합이 아님
#include <iostream>
#i... |
83dbe66ef6ccfac81f7496355c589586ac6319b1 | 92bc5f2f3f49609f1e7e9f55748d0419e3b30660 | /host/MiddleMan.cpp | f97c806d2c2297023835797cc03891de6e211d81 | [] | no_license | smallka/MiddleMan | 77e376c8a78f8973351a9a9789031c5cfb9f5af6 | 4740247a97fa77097637b71dbc775aca14f3cc3e | refs/heads/master | 2016-09-09T18:37:54.160920 | 2012-08-30T16:31:43 | 2012-08-30T16:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,023 | cpp | MiddleMan.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Defines.h"
#include "Log4Me.h"
#include "DllInjecter.h"
#include "CommProxy.h"
#include "MiddleMan.h"
//---------------------------------------------------------------------------
#pragma package(... |
609febac8412e5d176fc6a0b69e69f0723cc6e84 | 6990b0b5e1d4c5d38f5e4ec74551a82962d916e3 | /ANR/Gordian/Tests/main.cpp | fef94246f57eb5d09172ad7b5330a35140985ac5 | [] | no_license | danieljluna/ANR | f832c11cd6036235262fb5e3cea41b610e10808d | ce7fcc2dcba4c10a176c04ac10703577c496a7d6 | refs/heads/master | 2022-12-16T07:52:37.044123 | 2022-07-24T06:13:47 | 2022-07-24T06:13:47 | 119,308,824 | 0 | 0 | null | 2022-11-22T02:14:08 | 2018-01-28T23:48:05 | C | UTF-8 | C++ | false | false | 566 | cpp | main.cpp | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "GordianEngine/Debug/Public/Exceptions.h"
#include "GordianEngine/Debug/Public/Asserts.h"
#include "GordianEngine/Debug/Public/LogOutputManager.h"
int main(int argc, char* argv[]) {
// global setup...
Gordian::GLogOutputManager.SetIsEnabled(false);
Gordia... |
0e0986a4b9548b56c0f0e5d3242d23ccd15673dd | b0df09b397384c149877cebfdfd9f88db077edc4 | /disciplinas/cmp134/jpeg/TonyJpegLib_src/J2kDemo/QualityDlg.cpp | e5ffee196da17e2cdc96a5ccd65cce50274dbde5 | [] | no_license | kdubezerra/kdubezerra | 95f8b4285c7460b1f3fb4ac1a1593545e2a13dcd | f3054a15d74d2047c751070f5720ea933f9b73fe | refs/heads/master | 2020-05-18T15:12:28.546476 | 2015-09-16T13:55:36 | 2015-09-16T13:55:36 | 32,155,920 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,897 | cpp | QualityDlg.cpp | // QualityDlg.cpp : implementation file
//
#include "stdafx.h"
#include "J2kDemo.h"
#include "QualityDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CQualityDlg dialog... |
ad41a8bf4fcd3084555d5f34cf90f97040a24c41 | 308f5596f1c7d382520cfce13ceaa5dff6f4f783 | /third-party/fizz/src/fizz/crypto/signature/test/EdSignatureTest.cpp | 2b28f21d64cc4b809ec9cc75dc88f23fe0073caf | [
"MIT",
"PHP-3.01",
"Zend-2.0",
"BSD-3-Clause"
] | permissive | facebook/hhvm | 7e200a309a1cad5304621b0516f781c689d07a13 | d8203129dc7e7bf8639a2b99db596baad3d56b46 | refs/heads/master | 2023-09-04T04:44:12.892628 | 2023-09-04T00:43:05 | 2023-09-04T00:43:05 | 455,600 | 10,335 | 2,326 | NOASSERTION | 2023-09-14T21:24:04 | 2010-01-02T01:17:06 | C++ | UTF-8 | C++ | false | false | 4,747 | cpp | EdSignatureTest.cpp | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/portability/GTest.h>
#include <fizz/crypto/signature/Signature.h>
#include <fizz/crypt... |
2e486453b540eeaf768669c1b9691713f6e37732 | 9901f2b7cc143c4dc15d6207885bdbac9eae3310 | /src/gfxl/gfxl_common.cpp | d9225e1579afede9c885006b94f6bf6daa225b70 | [] | no_license | ruicaridade/gfxl | adc9dd012f094f9720d0ddd662576aabd8811794 | 9b6cebee5db200689acee9cfe07edf06dce8c269 | refs/heads/master | 2021-07-22T02:17:12.310469 | 2017-10-31T13:00:28 | 2017-10-31T13:00:28 | 108,600,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | gfxl_common.cpp | #include <gfxl_common.h>
#include <cstdarg>
namespace gfxl
{
static int(*messageCallback)(const char*, va_list);
void SetMessageCallback(int(*callback)(const char*, va_list))
{
messageCallback = callback;
}
void Message(const char* msg, ...)
{
if (messageCallback)
{
va_list args;
va_start(args, msg... |
683bc9c860f3176f26d8f2c3b579278f597634bc | cc890d3a085d949d48b75485bec915ef2132f647 | /rfid_test/src/arduino_fakes/ArduinoGlobals.h | 56e9ef6c3f3a1d00bf4954f94abdefd8c099b7fa | [] | no_license | sytsereitsma/DiscFinder | b668d1bb41d4b63b272b15a76bdaf41c72935ddb | b6641ee01944afe2f34a232d5b0cc290a2f9ae3e | refs/heads/master | 2023-07-04T09:41:54.592429 | 2021-07-30T20:09:27 | 2021-07-30T20:09:27 | 391,177,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | h | ArduinoGlobals.h | #pragma once
#include <functional>
#include "Stream.h"
#include "fakeit.hpp"
enum Pins {
A0,
};
enum PinMode {
INPUT,
OUTPUT,
};
enum PinLevel {
LOW,
HIGH
};
void pinMode (int pin, int mode);
void digitalWrite (int pin, int level);
void delay(unsigned long);
unsigned long millis ();
void tone ... |
754019e709fa62f571a31b2d79c1e68a27e26253 | a4de7672f460babe084d08afe08a6453a9d4c64a | /Degree of an Array.cpp | 74588c60939bc4768b6b8ada419407f9581cf43b | [] | no_license | sulemanrai/leetcode | 3db0dd328ceb44bb43e15b00231c69b1aa437898 | 72ecdee5c6b7326eea90ddac6bb73959fce13020 | refs/heads/master | 2020-03-16T17:29:04.025572 | 2018-09-07T05:43:32 | 2018-09-07T05:43:32 | 132,834,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | cpp | Degree of an Array.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <unordered_map>
#include <functional>
#include <string>
using namespace std;
class Solution {
public:
int findShortestSubArray(vector<int>& nums) {
int ans = nums.size();
map<int, int> left;
... |
e4423a7f9536e85d9bd887c7dc83f689be0473db | cf666bc4e7759b846e9461c39a0ad5c63c7386ba | /src/heightfield.h | 03d88defa98b5d63381e2b5c938aec3c75c8d2c0 | [] | no_license | AntonHakansson/procedural-terrain | b12e61cfdb60cb3d37d76e09851702c74a2a9be7 | 70998ce7ff04147d1dc2867e786129de1f9f4595 | refs/heads/main | 2023-08-11T04:10:28.874775 | 2021-09-23T13:16:28 | 2021-09-23T13:16:52 | 365,261,106 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | heightfield.h | #include <glad/glad.h>
#include <string>
class HeightField {
public:
int m_meshResolution; // triangles edges per quad side
GLuint m_texid_hf;
GLuint m_texid_diffuse;
GLuint m_vao;
GLuint m_positionBuffer;
GLuint m_uvBuffer;
GLuint m_indexBuffer;
GLuint m_numIndices;
std::string m_heightFieldPath;
... |
29555141d8ea4e6899e0139df31a6bd9c32c0200 | 956fc12c1b23a3e016d15f102d4dd5208f6fc353 | /QSerialPort/main.cpp | a1ab4b55b0f87569b920c482cc820ca13409be7a | [] | no_license | qq447799/SerialPort | 9caa5a36c341149e38246b2c50179e0a5e2be919 | e9ed80276394a5bc45136064e19c351cc4955100 | refs/heads/main | 2023-02-10T11:00:37.186214 | 2021-01-02T15:08:55 | 2021-01-02T15:08:55 | 314,288,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | cpp | main.cpp | #include "mainwindow.h"
#include <QApplication>
#include "headfile.h"
#include "QTextCodec"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
PortObj port;
FileObj file;
QObject::connect(&w,SIGNAL(m_portinfo_sig(int)),&port,SLOT(p_portinfo_slot(int)),Qt::QueuedConnectio... |
c8592b46f963589eba4e8a4b1b3d586bfd15389a | aa4baaa54fe0081eb26743575e8de4b529f8d693 | /title.cpp | aef98bfa129fef3158f5f9b7212688650f2d04da | [] | no_license | ritakuu/StarProtector | f5105c2a18b04ca1b4d305193becf3d20c7d4252 | 8969ec219af82a61e37b514a6f156977e57dc010 | refs/heads/master | 2020-05-29T20:17:31.061964 | 2019-05-30T05:38:52 | 2019-05-30T05:38:52 | 188,394,049 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 14,224 | cpp | title.cpp | //=============================================================================
//
// タイトル画面処理 [title.cpp]
// Author : AKIRA TANAKA
//
//=============================================================================
#include "title.h"
#include "input.h"
#include "fade.h"
//************************************... |
418669f3504a91536f138b1d3aee3eae00a7f047 | 97a1161535e466cd5400ad675ead7dcb35e5fc10 | /util/Buffer.h | 5763d8e57e1dbdf0b7133ffc166ed74a2af971f5 | [
"MIT"
] | permissive | jfern2011/chess | 2de4b543ad34a4d50db1942d1e89f94b46bc468d | 33e7a43b2c15b4ecc8eee58d15bdefa9c3b31a69 | refs/heads/master | 2023-04-27T19:26:40.241219 | 2023-04-23T18:24:34 | 2023-04-23T18:24:34 | 96,244,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,658 | h | Buffer.h | /**
* \file Buffer.h
* \author Jason Fernandez
* \date 3/17/2018
*
* https://github.com/jfern2011/util
*/
#ifndef __BUFFER_H__
#define __BUFFER_H__
#include <cstddef>
#include <cstring>
#include "abort/abort.h"
/**
**********************************************************************
*
* A wrapper... |
017cd7d8b9e9da1569d968116bf1cc9b32e32e07 | cce6ec5dc84b1b2d27bdf44e54ea75cfe9b4379f | /tests/basic_tests/matrix_tests.cpp | 32bbef366e1b361c587a75e92d81c26efd78101d | [
"CC0-1.0"
] | permissive | gguyver/model-endemic-fmd | 7e472945ef3ce0df8834aa701e9f2d26ad4a6107 | 49a8aae9256f80e6738e10be0b0c494fb7edae93 | refs/heads/master | 2023-04-06T18:38:10.311884 | 2021-06-10T16:28:20 | 2021-06-10T16:28:20 | 373,546,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | matrix_tests.cpp | //
// Created by Glen on 30/03/2020.
//
#include "gtest/gtest.h"
#include "Matrix.h"
/* Area to test:
* - That the data is stored correctly,
* - That the data are accessed correctly,
* - That the data are modified correctly */
struct matrix_test : testing::Test {
Matrix<int> m{20, 3, 4};
};
TEST_F(matrix_tes... |
e83ced7d8378f2380d81c0aea74a2ebd2c25cc7e | ebd1648fe56988d059f57a42e129f327d75e8f06 | /Classes/LayerGameDesk.cpp | cfa813b8b492e36b5c0d98c0361068075d30edd2 | [] | no_license | mrktj/OX-poker-good-cocos2dx2.2.5 | f345bacac5d2e72982d9941e123ba7cacfc3f064 | 957b59ccd532071e6fc43bd66b3bc5751eb84716 | refs/heads/master | 2020-04-14T21:08:40.811135 | 2014-02-22T07:54:40 | 2014-02-22T07:54:40 | 22,573,844 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,963 | cpp | LayerGameDesk.cpp | #include "LayerGameDesk.h"
#include "Controls.h"
#include "GameLogic.h"
#include "Tools.h"
#include "SceneWelcome.h"
#include "SceneHall.h"
#include <string>
#include "MyAudioEngine.h"
#include "SceneShop.h"
#include "VisibleRect.h"
using namespace cocos2d;
MyGoldBoxByAmount* box_amount;
// on "init" ... |
faac64b663f3f0610f9c19a6b2f620542922e51d | 2c69dc13ba6b6269abd04b602c58827d2e098d07 | /Fifteens/main.cpp | 89f73b40b979dd4259c2d01e2d05fb9133437105 | [] | no_license | AVKdeveloper/Fifteens | 7a92099564056a6741fe37a2b4a95deb47b3f039 | 741e067e129d164024335684e79beedf97bc35c2 | refs/heads/master | 2020-12-24T09:22:26.790982 | 2016-11-09T16:13:55 | 2016-11-09T16:13:55 | 73,298,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | main.cpp | // This code solves game fifteens (for any FieldSize , which defined in Position.h).
// We use A* algorithm ( O(E2) ).
//
#include <fstream>
#include <array>
#include <algorithm>
#include "Position.h"
int main() {
std::fstream file;
file.open("puzzle.in", std::fstream::in);
std::array<int, FieldSize*FieldSize> star... |
7b59d12d2e81e766939cee563a132bfdca4d7dbd | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/win/conflicts/module_inspector.cc | ea0c7120491b10221b83868344b1a961cef036d6 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 8,842 | cc | module_inspector.cc | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/win/conflicts/module_inspector.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/path_service.h"
#include "base/task/sequenced_t... |
dd40eff270085c3b9400c720c916ad19c3fe1b4a | 3ea34c23f90326359c3c64281680a7ee237ff0f2 | /Data/4011/H | 6ad795fcf8cc68b8ed6e423bfff329a74f645a5b | [] | no_license | lcnbr/EM | c6b90c02ba08422809e94882917c87ae81b501a2 | aec19cb6e07e6659786e92db0ccbe4f3d0b6c317 | refs/heads/master | 2023-04-28T20:25:40.955518 | 2020-02-16T23:14:07 | 2020-02-16T23:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92,419 | H | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD |
| \\ / O peration | Version: 4... | |
2be74d9957ddaa3da1905f5c6177561008aea0fe | 96b2ec27cc58dbe1491611f560f81d0d951710b5 | /ABC164D.cpp | cc011913a252f9c1868f24b4865eb5a919a8cb86 | [] | no_license | lake429c/AtCoder | 68e9ffa2d23dca041301b53687ce9418d1df81b0 | 8db0dd90111cff3ff82000e56b3a10f5e78f3e48 | refs/heads/master | 2020-06-16T05:11:06.015144 | 2020-06-01T07:05:10 | 2020-06-01T07:05:10 | 195,487,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | cpp | ABC164D.cpp | #include<bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
struct fast_ios { fast_ios(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).s... |
f235e85555b641fbf8a82692d591e4ad128632ce | d4ff5b85886d7dbd8fc2dd10334a553d5e0e7c5d | /src/core/lib/wg_pyscript/py_script_object.ipp | f150175ae5f544f4430ea755c9f1b652366d167e | [] | permissive | karajensen/wgtf | 8737d41cd936e541554389a901c9fb0da4d3b9c4 | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | refs/heads/master | 2021-01-12T19:02:00.575154 | 2018-05-03T10:03:57 | 2018-05-03T10:03:57 | 127,282,403 | 1 | 0 | BSD-3-Clause | 2018-04-27T08:15:26 | 2018-03-29T11:32:36 | C++ | UTF-8 | C++ | false | false | 6,698 | ipp | py_script_object.ipp | // py_script_object.ipp
/**
* This method calls a method on a ScriptObject
*
* @param methodName The method to call
* @param args The arguments to call the method with
* @param errorHandler The type of error handling to use if this method
* fails
* @param allowNullMethod True if this method can not exist, fa... |
d1fa64a810d0bbd1f2d331d489de98b575ceffca | ec4711e5444c280fc4fcd6505d5c0acca0627d55 | /hermit/gotodlg.cpp | 76fec3426461f04bed5061b594868c27b4421771 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ancientlore/hermit | 18f605d1cc8f145c6d936268c9139c92f6182590 | 0b6b5b3e364fe9a7080517a7f3ddb8cdb03f5b14 | refs/heads/master | 2020-05-16T21:02:57.517459 | 2012-01-26T00:17:12 | 2012-01-26T00:17:12 | 3,269,934 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | cpp | gotodlg.cpp | // Goto Dialog
// Copyright (C) 1996 Michael D. Lore All Rights Reserved
#include "gotodlg.h"
GotoDialog::GotoDialog (Screen& screen, char *pText, int length, History *pHist) :
Popup (screen, 80, 6)
{
draw ();
mpEdit = new Edit (screen, mX + 2, mY + 3, 76, pText, length, pHist);
if (mpEdi... |
f50d356b350559e548162184d4c45bd8b39d697b | 08a67df6e57f84cd4fb0f18925433e03e3cf51ee | /PhoeVersion/Qt_Creator/projectPHOE/fundusexam.cpp | 26bf1beba5c2e80bc26c0e3724227fd8ed41db22 | [] | no_license | jdsalguer/senior_project | bee19cf43220c0d9e8f514e4e39c5134c9b188ea | 15f612884ede684280ddee4f7d7d47276e72a1fe | refs/heads/master | 2021-01-22T11:54:34.109996 | 2015-04-29T19:32:30 | 2015-04-29T19:32:30 | 24,651,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | fundusexam.cpp | #include "fundusexam.h"
#include "ui_fundusexam.h"
fundusexam::fundusexam(QWidget *parent) :
QDialog(parent),
ui(new Ui::fundusexam)
{
ui->setupUi(this);
this->showFullScreen();
}
fundusexam::~fundusexam()
{
delete ui;
}
|
1570575974a5a01fd3c927e89401680087f105ea | da1500e0d3040497614d5327d2461a22e934b4d8 | /cobalt/updater/utils_test.cc | 416586b8eb0630d63b9b841b586d40690b8c8864 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 18,798 | cc | utils_test.cc | // Copyright 2022 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
92c8d83d7ad9ffc0d27ef561cc36ec6921c0bdd0 | a170461845f5b240daf2090810b4be706191f837 | /pyqt/DemoFullCode-PythonQt/chap10Multimedia/Demo10_5VideoPlayer/QtApp/QWVideoWidget.cpp | 02de1647858e006e00aff3fcedec36d051ce286a | [] | no_license | longhuarst/QTDemo | ec3873f85434c61cd2a8af7e568570d62c2e6da8 | 34f87f4b2337a140122b7c38937ab4fcf5f10575 | refs/heads/master | 2022-04-25T10:59:54.434587 | 2020-04-26T16:55:29 | 2020-04-26T16:55:29 | 259,048,398 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cpp | QWVideoWidget.cpp | #include "QWVideoWidget.h"
#include <QKeyEvent>
#include <QMouseEvent>
void QWVideoWidget::keyPressEvent(QKeyEvent *event)
{//按键事件,ESC退出全屏状态
if ((event->key() == Qt::Key_Escape)&&(isFullScreen()))
{
setFullScreen(false);
event->accept();
}
QVideoWidget::keyPressEvent(event);
}... |
0904e2df3016971eb9b61c25e363631d836e2e76 | 3f05834538b43c760bbbf9ee2a4af7343afd2941 | /cpu.h | 8ea97222c81d83764cbc5ec5fc327696bbaca332 | [] | no_license | beeliu/operating-system-simulator | 1648437673a20c1460710e4eaecf457e72de2413 | 73a6dfc0a7b2b1a236c266999314812dae23f8e1 | refs/heads/master | 2022-04-14T14:05:20.831011 | 2020-03-18T16:30:36 | 2020-03-18T16:30:36 | 197,607,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 851 | h | cpu.h | /*
Belinda Liu
Interface file for CPU class
*/
#ifndef CPU_H
#define CPU_H
#include <vector>
class CPU
{
public:
// constructor
CPU();
// add to ready-queue, parameter is pid of process
void add(int p_id);
// get currently running process, returns pid of running process
int get_runni... |
f4210d72361a8b99bc746e8ef28dc4fd69bc0f13 | 33aa67b183117fdec7065b1324627ca9f37f6f35 | /levenshtein.cpp | 0ba512aab2e7916631cb5f52f81fe1c0a1b30394 | [] | no_license | mkk96/Competitive | 0606055abab410c72f7b328803eaa1bd8e2d2342 | a9a7e1e005092b1e35bcca568e9840019b9d9417 | refs/heads/main | 2023-06-18T16:34:26.849442 | 2021-07-19T17:03:11 | 2021-07-19T17:03:11 | 384,914,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | levenshtein.cpp | #include<iostream>
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int cost(char a,char b)
{
if(a==b)
{
return 0;
}
return 1;
}
int minimum(int x,int y,int z)
{
if(x<=y&&x<=z)
return x;
if(y<=z&&y<=x)
return y;
if(z<=y&&z<=x)
return z;
}
int levenshtein(char *a,char *b)
{
int n=strlen(a)... |
ff86298b7da3f9da6d0edc65bf9f59c174740bd1 | 52423031b782c7a0a246ac2b20928e183343ae5a | /CS325_200904/CS325_Fa2009/Classes/Class9-15/Node.hpp | 6b34e7ce51e801f4adbbb5963e2978bfa5557449 | [] | no_license | almostengr/college-coursework | 59082f77bed0bf89ff39bfed3ea7641d4dc2dace | d0f3a21fb5f24c8baf18c1905eb3f3beff180856 | refs/heads/master | 2021-08-08T01:07:46.117218 | 2021-07-20T15:04:01 | 2021-07-20T15:04:01 | 170,057,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | hpp | Node.hpp | #ifndef __NODE__
#define __NODE__
#include "Container.hpp"
template <class T>
class Node {
T value;
Node<T> *next;
Node<T> *prev;
static int counter;
public:
Node(T v);
~Node() {
Node<T>::counter--;
}
Node(T v,Node<T>*, Node<T>*);
Node<T>* getNext();
Node<T>* getPrev();
T getValue();
static int getCo... |
6aab90c984b10d33d8d937daf6cae7ca6e733311 | b075499c188b2a350d9ae44b27d142f1a802a57b | /C++/Lab 9/cpp/Lab9e.cpp | e46bccd06d374f4b2d7adf729d53b0cef9635a72 | [] | no_license | jdog101/C-Course | 0f9838a40019850bbdee96cfe3abe577f4092d3b | 1e640dd5d7557767125c3136fe7d40ef8b672ad4 | refs/heads/master | 2021-01-20T19:42:19.460864 | 2016-03-23T21:15:13 | 2016-03-23T21:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | Lab9e.cpp | #include <iostream>
using namespace std;
int main()
{
double weights[7]{.10,.10,.10,.10,.20,.10,.30};
double myScores[7];
string labels[7] = {"Exam 1", "Exam 2", "Exam 3", "Final Exam", "Programming Assignment", "Other Activities", "Lab Test Grade"};
int grade;
for(int i=0;i<7;i++)
... |
5550ca0629ad0c6709c16b3dc0a5bdc8c7170f76 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Implementation/1081.cpp | 9d85acefbe78557896ab7f9a205ce26112de83c9 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,636 | cpp | 1081.cpp | // C++
#include <algorithm>
#include <iostream>
#include <string>
#include <set>
#include <stack>
#include <map>
#include <cmath>
#include <iomanip>
#include <cstdlib>
#include <queue>
#include <list>
#define NM 100000000000000;
using namespace std;
typedef long long ll;
//void sf... |
44ff739df0f8fb0cb4fb9fbdeecf53ab15d995cd | 58859321e637036756359d0f53f2f5954a6532f4 | /identica.cc | e1ef9b6537b1a4a40f759362469fc0354733d0cf | [] | no_license | thingie/ideirc | 23039c3d8312aa3d38e05e49d6d9b380f533c70f | f68e02fe923948f172485aab49709cc43b186d11 | refs/heads/master | 2020-06-09T05:20:23.521095 | 2010-05-31T00:12:44 | 2010-05-31T00:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cc | identica.cc | #include "identica.h"
int identica_send (string username, string password, string message) {
CURL *curl;
CURLcode res;
curl = curl_easy_init ();
if (curl) {
curl_easy_setopt (curl, CURLOPT_URL, "identi.ca/api/statuses/update.xml");
curl_easy_setopt (curl, CURLOPT_USERNAME, username.c_str ());
curl_easy_... |
876430253851368fb1a16feeb009840b5a59b01c | c7bbec13761615b04d4d6387fb6014b6354475da | /OS-SIM/MovieClip/TextInputClip.cpp | e9762002b22cff4f8c431281b7edfe8d39a52b0e | [] | no_license | somnathsarkar/Operating-System-Simulator | fef0fc5eb81d991fff0b67fb7d82b1a2f74766e6 | 287990045d2df2ac647acd0a898c9d5ceb4fe749 | refs/heads/master | 2021-01-22T03:23:04.723337 | 2017-05-25T07:19:36 | 2017-05-25T07:19:36 | 92,376,154 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | cpp | TextInputClip.cpp | #include "TextInputClip.h"
TextInputClip* TextInputClip::focus = NULL;
TextInputClip::TextInputClip(int w, int h) : MouseClip(w, h, { 255,255,255,255 })
{
text = "";
textClip = new MovieClip(text, "Myriad Pro Regular", 18);
addChild(textClip);
}
void TextInputClip::setFocus(MouseClip *x) {
focus = (TextInputClip... |
7652bb41090cf5f43c4da16fe11afac79c1a74f7 | 289ce088f01c117777c512afcbc89756a9f76520 | /src/Engine/Application.h | 2ffaa0dd12f4785630958bf4b591063e23d6771f | [] | no_license | OctoGames/Chis | 13cff1ed556fe03793dbb0bb682008bd3e8e2e3c | da8861eab89cd104b9f744b5787b47af7cfe7714 | refs/heads/master | 2020-04-23T12:15:27.601130 | 2019-05-16T21:45:32 | 2019-05-16T21:45:32 | 171,162,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | h | Application.h | #ifndef __APPLICATION_H__
#define __APPLICATION_H__
class Application
{
public:
Application();
virtual ~Application();
virtual void init();
virtual void run();
virtual void close();
};
#endif // !__APPLICATION_H__ |
da0d5a6f8753ad34a19f46ee86ead3cfb2c44141 | b802d4a571983c657d324ee049da7afacf71316f | /Kernel/Memory/IAllocator.h | 35885c7415fa304041c31f3208a5279c01c4d00b | [] | no_license | Gilyermo/RailEngine | 72d7b4bc20bce94054ceadce464afe5ddddb534a | 44a4c528f9234a61c23282622c0ad3c3d2ed20a1 | refs/heads/master | 2022-11-23T05:29:17.859004 | 2020-06-20T04:23:25 | 2020-06-20T04:23:25 | 273,637,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | h | IAllocator.h | #pragma once
#include "Memory.h"
#include "../Exception/Exception.h"
#include <cstdint>
#include <memory>
namespace RGE
{
namespace Memory
{
class KERNEL_API IAllocator{
public:
virtual ~IAllocator(){}
virtual void* Allocate(uint32_t size) = 0;
virtual void Deallocate(void* ptr) = 0;
virtual uint32_t GetMax... |
c8745c4c79811263f589d92a9d1cf2b34498996b | c6f4505920e0ef7a4c6b9fff5fed4c9ce24d97af | /ChainOfResponsibility/main.cpp | c085e2c69d9eb3a10c50c84e406f407fd193804a | [] | no_license | luzh0422/DesignPatterns | 43f47e85fbc6a73d24435e2117ea726a17d7cf55 | ca59713c9fa59115742da63ef0afbea1e7c6a8b2 | refs/heads/master | 2021-06-07T02:27:40.188342 | 2020-05-06T14:37:25 | 2020-05-06T14:37:25 | 153,556,496 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | main.cpp | #include <iostream>
#include "Support.h"
#include "NoSupport.h"
#include "OddSupport.h"
#include "LimitSupport.h"
int main() {
Support *alice = new NoSupport("Alice");
Support *bob = new OddSupport("bob");
Support *diana = new LimitSupport("diana", 4);
alice->setNext(bob)->setNext(diana);
for (int... |
510fcae26e9978c67f990afc6b1d8542def51c89 | 1f0f1db8455da450d5ceda6925202bab8c24d2b6 | /Section-1/ariprog.cpp | ead034f99a18f3345d72a1abae6ffe896f3d8f6d | [] | no_license | CLDP/USACO-Training | 5c7538a1d57622c1e1cb89416084e3ed4d8bce74 | 8ff9cdd30956bf40f8ece965f8081c162fdeba45 | refs/heads/master | 2021-06-24T06:21:04.916750 | 2017-03-13T16:19:09 | 2017-03-13T16:19:09 | 9,501,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | cpp | ariprog.cpp | /*
ID: CHN
PROG: ariprog
LANG: C++
*/
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
bool z[125100];
vector<pair<int, int> > ans;
int main() {
freopen("ariprog.in", "r", stdin);
freopen("ariprog.out", "w"... |
cd9f1428d2f236a029902e7b56429660f777a761 | 20049d88e2e8f0e1904efc561103c1d84d21507a | /kornilov.daniil/common/rectangle.hpp | 0d7d9326fe3268fec42771d5513aa06448f3eb9b | [] | no_license | gogun/Labs-for-SPbSPU-C-course-during-2019 | 5442a69152add3e66f02a7541e8dc8dd817f38a1 | 16ade47b859517a48d0fdb2e9704464bce4cc355 | refs/heads/master | 2022-01-09T16:02:54.728830 | 2019-06-06T11:06:33 | 2019-06-06T11:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | hpp | rectangle.hpp | #ifndef RECTANGLE_H
#define RECTANGLE_H
#include "shape.hpp"
namespace kornilov
{
class Rectangle : public Shape
{
public:
Rectangle(const rectangle_t& parameters);
double getArea() const override;
rectangle_t getFrameRect() const override;
void move(const double dx, const double dy) override;
... |
51f24d044f0d947c9bb0da07872f0bf94400b413 | 896916d6ef5d685bcd934f1ad611bb57d71bf6ca | /labwork/oop/lab3/task2/Dlg.h | ee0c098fb1d8e2ad0cadade392e086c10cf5d293 | [] | no_license | didim99/TSTU | bc21f4cb47a3a960b4d9b974c1ffa5fbda627926 | ea8c59ca97fc99d07cc979a2fcb78113c322cf2c | refs/heads/master | 2022-06-04T11:06:39.515992 | 2022-05-23T19:33:18 | 2022-05-23T19:33:18 | 134,288,801 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 639 | h | Dlg.h |
#pragma once
class Dlg : public CDialogEx
{
public:
Dlg(CWnd* pParent = nullptr);
afx_msg void OnBnClickedBtnExit();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
#ifdef AFX_DE... |
d317fad5ef971cba09d999f5bfb4504937d232b6 | a75695a7a3d10777cea9e12fa46dc1cc62ce44f1 | /WEEK5/ques4.cpp | 5459a85a3b57e90249ef46aa39d1c4c3c4586619 | [] | no_license | nandita-manchikanti/DAA-lab-codes | 2ff91f39345d44c4fb80bd1179fe0073e7393833 | 6c6d11891cb67f4055f05478b1dfbec92e61e3e7 | refs/heads/main | 2023-04-16T05:21:33.157792 | 2021-05-06T05:27:46 | 2021-05-06T05:27:46 | 364,791,635 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,470 | cpp | ques4.cpp | #include<iostream>
using namespace std;
class sorting
{
public:
int binarySearch(int a[], int item, int low, int high);
};
class operations : public sorting{
public:
void insertionsort(int arr[],int n);
void printarray(int array[],int n);
};
void operations::printarray(in... |
e1a241b9d2ad91165915c544c8acbe838f6b0bcd | a5771d30a850d6b24932913eda102d50baffc07a | /test_three.h | 2e0211db0cbf9b868a516a247acf8e4c8bbdf357 | [] | no_license | PathfinderTJU/CSAPP_ex01 | 3a4f4228abf17a0dc89ad666991468dfce0f05ad | a5d7f497d8c3b7e6eef811576a58388f45229201 | refs/heads/master | 2020-05-14T01:25:33.276137 | 2019-04-16T12:26:42 | 2019-04-16T12:26:42 | 181,684,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | test_three.h | #ifndef TEST_THREE_H_INCLUDED
#define TEST_THREE_H_INCLUDED
#include <iostream>
class Test3{
public:
void normalized(float* f);
void Denomalized(float* f);
void nan(float* f);
void Infinity(float* f);
};
#endif // TEST_THREE_H_INCLUDED
|
39ab106ad10020e16ac0dc415f3d5eeaa4ec1a73 | 057a475216e9beed41983481aafcaf109bbf58da | /base/poco/XML/include/Poco/XML/Content.h | 012ac5333c9bb519bf37f612b9b6186e9fcbee08 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | ClickHouse/ClickHouse | fece5204263a5b4d693854b6039699265f1bb27f | 6649328db809d51a694c358571539bc5820464be | refs/heads/master | 2023-08-31T18:48:36.615225 | 2023-08-31T17:51:24 | 2023-08-31T17:51:24 | 60,246,359 | 23,878 | 5,449 | Apache-2.0 | 2023-09-14T20:10:52 | 2016-06-02T08:28:18 | C++ | UTF-8 | C++ | false | false | 1,172 | h | Content.h | //
// Content.h
//
// Library: XML
// Package: XML
// Module: Content
//
// Definition of the Content enum.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Based on libstudxml (http://www.codesynthesis.com/projects/libstudxml/).
// Copyright (c) 2009-2013 Code Synthe... |
219705cfa95eca89fb97d8771bf37557563dd07b | 13c80c3d048b5267d3ba7803706b43155751b429 | /Archive/hdu/2015 Astar Contest - Round 2A/hdu5249-3.cpp | 26f3b870e1a937433264e8b8ca98f7b8ab4ba8a3 | [] | no_license | contropist/CodeWorld | d0938f0031ca1f4e3b86e104b2538a60e43e49a8 | 7723f67073afdb2cd2626a45401c3146aebfd53d | refs/heads/master | 2022-03-09T08:07:16.023970 | 2016-08-09T10:07:20 | 2016-08-09T10:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | hdu5249-3.cpp | //@ Including Header
#include <csl_std.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
/*
* Name : hdu5249-3.cpp
* Date : 2015年8月8日 上午9:53:05
* Copyright : fateud.com
* Anti-Mage : The magic ends here.
*/
typedef __gnu_pbds::tree<
int,
__gnu_pbds ::null_type,
std:... |
be2a7e043f3c97e00ca3a8b1bfc21d72c8519a21 | eec6fc365c7415835b4a69eaceb23a224f2abc47 | /BaekJoon/2020/데이트 (1296번) pq_ver .cpp | 596dafaa6024bd06ef17e037744f93f7585d3e4d | [] | no_license | chosh95/STUDY | 3e2381c632cebecc9a91e791a4a27a89ea6491ea | 0c88a1dd55d1826e72ebebd5626d6d83665c8431 | refs/heads/master | 2022-04-30T23:58:56.228240 | 2022-04-18T13:08:01 | 2022-04-18T13:08:01 | 166,837,216 | 3 | 1 | null | 2019-06-20T10:51:49 | 2019-01-21T15:32:03 | C++ | UTF-8 | C++ | false | false | 998 | cpp | 데이트 (1296번) pq_ver .cpp | #include <iostream>
#include <queue>
#include <string>
#include <algorithm>
using namespace std;
int N;
string origin;
int l, o, v, e;
struct cmp {
bool operator()(pair<int, string> a, pair<int, string> b) {
if (a.first == b.first)
return a.second > b.second;
return a.first <= b.first;
}
};
int main()
{
cin... |
de8924ff8b626ce39a45dedc1f3e61e39cc2bd5d | 2c0597600a0fa91343e34f61f818e4f2e298ce5d | /milestones/MS5/Perishable.cpp | ba78d01125733f7cba4e6462b21b6a670c9f60e8 | [] | no_license | jayson528/OOP244 | 045e8758446dbc65da500ca929b79eff9235aab5 | 0507d27e3b708ad143ea22a8e0e30bd4dc351267 | refs/heads/master | 2021-10-10T09:04:12.786424 | 2019-01-08T17:09:29 | 2019-01-08T17:09:29 | 164,696,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,757 | cpp | Perishable.cpp | #include <iomanip>
#include <iostream>
#include <fstream>
#include <cstring>
#include "Perishable.h"
#include "Date.h"
using namespace std;
namespace AMA {
Perishable::Perishable() : Product('P') {
}
std::fstream& Perishable::store(std::fstream& file, bool newLine) const {
Product::store(file,... |
93a50a7b32270d461bfb28ed4c94d72e9848d1c9 | a47e52cfba6561edddf535b6675a5294a3630906 | /include/entities/Response.h | 6da11490317ee2d6ebfbf3a3ab5d1ff28b603a8a | [
"MIT"
] | permissive | KonstantinPronin/task-manager | 9fdbd1023e6577a38231165588ea47bb8b7eff61 | dc59ed5994b3cf04ae6f69748894e378e5713fc2 | refs/heads/master | 2020-12-29T08:43:03.549073 | 2020-07-06T12:22:05 | 2020-07-06T12:22:05 | 238,540,595 | 0 | 0 | MIT | 2020-07-06T12:22:06 | 2020-02-05T20:20:32 | null | UTF-8 | C++ | false | false | 900 | h | Response.h | #ifndef TASK_MANAGER_RESPONSE_H
#define TASK_MANAGER_RESPONSE_H
#include <vector>
#include <memory>
#include "Entity.h"
#include "Project.h"
#include "Task.h"
#include "User.h"
enum class responseMode {
SUCCESSFULL_AUTHORIZATION,
SUCCESSFULL_DEAUTHORIZATION,
PRINT
};
enum class responseCode {
_EMPT... |
1986130f06f967bbb2a22ed2488b0f8e36a09d79 | 3fa0123c9fa6d3a3f0e041c172e74a4c096aeff9 | /include/SideStack.h | 1a89c50966017fc1f72b8aa9fcebe69f6c485aba | [
"Apache-2.0"
] | permissive | weliveindetail/sidestack | 208ea07175b2ff120926bcc5df5824692d99998b | d578a9c8bba8c9df29d75e574246c0c4f93dca1b | refs/heads/master | 2021-01-22T08:48:27.419444 | 2014-04-15T23:56:44 | 2014-04-15T23:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | h | SideStack.h | #pragma once
#include <functional>
class SideStack
{
public:
SideStack();
~SideStack();
void executeOnSideStack(std::function<void()> func);
void switchStacks();
private:
void *m_storedBP;
void *m_storedSP;
std::function<void()> m_continuationFunction;
void *m_stackTop;
void *m_stackBottom;
... |
558adea1c1feb41b6ffb19a2f0dbc81d8715a187 | a5326af130d8c0f3138282e0e8f84704d662e341 | /library/video_transforms/normalized_cross_correlation.h | 5dc6c67507f77fa5151275f34a2d7c6d23889451 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | daniel-riehm/burn-out | 98b75739400f981f7509a966da4bf449e3397a38 | 1d2afcd36d37127b5a3b6fa3f60bc195408ab3ea | refs/heads/master | 2022-03-05T12:25:59.466369 | 2019-11-15T01:37:47 | 2019-11-15T01:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,453 | h | normalized_cross_correlation.h | /*ckwg +5
* Copyright 2012-2015 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VIDTK_VIDEO_NORMALIZED_CROSS_CORRELATION_H
#define VIDTK_VIDEO_NORMALIZED_CROSS_... |
9fe05516cd4451aca7254a3ad271481506bd9a47 | fbd349d3027424aaa4c7d329979ea45e8cf76dc5 | /uap/uap_planner.h | 04edb5714f70093001d69563eb88fc104f582576 | [] | no_license | computerex/uap | 0faad63552457971d9d69aea0e488585a1701839 | a75503a4d0985214be0b840f30ddc3dc389dfa81 | refs/heads/main | 2023-03-18T15:20:32.976199 | 2020-12-23T21:38:10 | 2020-12-23T21:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | h | uap_planner.h | //#######################################################################################//
//UAP planner MFD, Made by Artlav in 2011
//I don't remember WTF that was supposed to be
//#######################################################################################//
#define pages 3
//#############################... |
9782e40a9a9809aaea2c3aec012d1f8bbb58fc8c | 67e54f80489e796b7653cfefcdd410c7ada1d152 | /08. String to Integer (atoi).cpp | 57c0246d22eaebcbe3cb293071ce4646229becc3 | [] | no_license | nerdsquirrel/Leetcode-submissions | df81e88d23db6d6b24f65f5f14b5eb0e2c2ed736 | 550ce4a141ea740bb43d458da87d94c3d396c0eb | refs/heads/master | 2021-01-17T14:00:31.865018 | 2020-10-05T12:50:27 | 2020-10-05T12:50:27 | 57,905,939 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 222 | cpp | 08. String to Integer (atoi).cpp | class Solution {
public:
int myAtoi(string str) {
string t;
t=str;
if(t=="")
t="0";
stringstream s;
int i;
s<<t; s>>i;
return i;
}
}; |
1c2358a516cf412d8757abf5b89d99f744d16429 | 37465aa1e5400f480e9a9a162ae42cd580e2ed97 | /3D Renderer/gameobjects/Items.cpp | 1019de4da72fc099ba7f03a1d3492efd0a0fa4e5 | [] | no_license | zveale/projects | eafbf9a5c336a84f2005308f794936c0e27d954a | b5f3427dd0d3064a6c20b0d5c9556e24192352c0 | refs/heads/master | 2023-02-10T23:34:11.625587 | 2021-01-06T18:48:58 | 2021-01-06T18:48:58 | 265,102,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,151 | cpp | Items.cpp | #include <string>
#include <cctype>
#include "Items.h"
#include "assimp\Importer.hpp"
#include "assimp\scene.h"
#include "GameObject.h"
#include "StaticModel.h"
#include "glm\vec3.hpp"
#include "glm\mat4x4.hpp"
#include "glm\mat3x3.hpp"
#include "glm\gtx\transform.hpp"
Items::Items() : GameObject() {
for (int i = 0;... |
77240a8422b75c234d723c5f5966f1018dbda30e | 9c5e3a071788a1717e370dc0595afbce2c125aa3 | /libraries/USBSerial/USBSerial.cpp | 68443dbad4f90915969ee10e3afbd23a7440db5f | [] | no_license | wllis/framework-arduino-gd32v | 34d13c30db38c3aa71c855f3500d61c50396f4f0 | 5752c87923d3a37989a7d7a73c2aae2e4f6b972c | refs/heads/master | 2023-03-16T02:06:09.894210 | 2020-11-28T18:02:38 | 2020-11-28T18:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,723 | cpp | USBSerial.cpp | // USB Serial code
#if defined (USBCON) && (USBD_USE_CDC)
#include "USBSerial.h"
#include "CDC.h"
#include "RingBuffer.h"
extern "C" uint8_t packet_receive;
USBSerial SerialUSB;
#define RX_BUFFER_SIZE 1024
RingBufferN<RX_BUFFER_SIZE> rx_buffer;
void USBSerial::begin(void)
{
CDC_Init();
rx_buffer.clear();
}
... |
a39ed609596af5763cd0c27cb4df6f0f02869ee8 | 37b707c2f9a9daf55b411f5929a7ed7a70c5e4ff | /findscreen.cpp | 284edd0d1eea7ac65307fd54578739f4cf0944ba | [] | no_license | e173101/JumpOneJumpCheat | d6f38a93f06e160845e09f4ebbbdda2e1a4aa8a7 | 8a20fa62e31c0645a84efcc2caddc5be74dadb3e | refs/heads/master | 2020-03-09T08:39:16.318807 | 2018-06-03T06:49:35 | 2018-06-03T06:49:35 | 128,694,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,544 | cpp | findscreen.cpp | //Lai Yongtian
//2018-3-29
#include "findscreen.h"
#include <QtCore>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
#define IPHONESEX (640.0/2)
#define IPHONESEY (1136.0/2)
FindScreen::FindScreen()
{
}
bool isIPhoneScreen(RotatedRect rotatedRect, Point2f p[], Point2f screenCenter)
{
P... |
3245280793df79a4f5b5e7b3e819a2260151c553 | b8cf17aa729db87929bc3ae00656e73689be77af | /Module3/Task4/main.cpp | 126f43bb6364a35c1d7f35b25f17ca0b9f5418fc | [] | no_license | egozverev/MIPT_2sem_ALGORITHM_CPP | 6a2210cb035ce670e5acf2e615cc69567f43a068 | 70b249ccfcd23c186917dd960005033a1b67449e | refs/heads/master | 2020-04-22T06:18:06.492462 | 2019-12-14T14:26:40 | 2019-12-14T14:26:40 | 170,186,036 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,488 | cpp | main.cpp | #include "matrix_graph.h"
#include <algorithm>
#include <iostream>
#include <limits>
#include <queue>
void FillGraph(CMatrixGraph &graph, unsigned int edgeNumber) {
for (int i = 0; i < edgeNumber; ++i) {
int from, to, distance;
std::cin >> from >> to >> distance;
--from;
--to;
... |
f89f04e67172ffab88e77ea76b54c389e56cf3bd | 2e6f0e68d9b7a3ee072484aacd5dc01b32884da4 | /DrawingBuilder/EssaiTextureLib/theMain.cpp | 5bc3a9a40316780b38ecfd38d8e83bee25e253e6 | [] | no_license | Ikiriss/Drawing-Builder | 6c9969975562a44ce774bdba3f7e4aad57004ddf | 52854e8ea64ee51921afaf243e6000dc652a7778 | refs/heads/master | 2021-07-19T01:37:20.525264 | 2017-10-12T08:36:15 | 2017-10-12T08:36:15 | 106,663,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,931 | cpp | theMain.cpp | #include <SFML\Graphics.hpp>
#include <Box2D\Box2D.h>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <chrono>
#include <thread>
#include <vector>
#include "theMain.h"
#include "MenuMainState.h"
#include "MenuLevelState.h"
#include "State.h"
#in... |
9fb2dee91f4a248383a925092d87d52b19e9f7be | 244f9ee92c82615c2ed4bb1a777408932de1206d | /day06/ex00/convert.cpp | ef485871eaf2cb99ecabd6766a3c11efe5ca3af5 | [] | no_license | AntonKurenov/plus_plus_module | 265612bddd4197deaa408a35c0306e0ebaf54be1 | 629435c359c602e81ab21de6909292520a10ef0c | refs/heads/master | 2023-03-31T17:07:28.565579 | 2021-04-12T16:31:56 | 2021-04-12T16:31:56 | 337,382,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,332 | cpp | convert.cpp | #include "convert.hpp"
void convertToInt(Data);
void convertToChar(Data);
void convertToFloat(Data);
void convertToDouble(Data);
void convertToInt(Data data)
{
int m_int;
m_int = static_cast<int>(data.init_val);
std::cout << "int: ";
if (data.bad_double == 1)
{
std::cout << "impossible" << std::endl;
return ... |
a961fc276cc3bfbe4ddae5e495e4ff93e0cc35eb | 637c4892287929583bdadd8630d5353dd78dc82c | /test/jacobi/OpenMP/Fortran/jacobi.F90.opari.inc | c063f04e523be7f2d52b1a1c6a938f7b28970db3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | readex-eu/readex-scorep | 6819f074bba6b4fe9d6de07cf7037d2829cbbccf | 38d7b84145f229b44670656d59f84faa51007ced | refs/heads/master | 2020-03-27T01:04:12.730561 | 2018-08-22T14:42:37 | 2018-08-22T14:42:37 | 145,679,275 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | inc | jacobi.F90.opari.inc | INTEGER( KIND=8 ) :: pomp2_region_1
CHARACTER (LEN=259), parameter :: pomp2_ctc_1 =&
"255*regionType=parallel*sscl=jacobi.F90:56:56*escl=jacobi.F90:81:81**"
INTEGER( KIND=8 ) :: pomp2_region_2
CHARACTER (LEN=253), parameter :: pomp2_ctc_2 =&
"249*regionType=do*sscl=jacobi.F90:57:5... |
72954169dfe3333b13542704ad71f49878731b3f | f7dc806f341ef5dbb0e11252a4693003a66853d5 | /scene/3d/reflection_probe.h | 5438219d5e7904907f94b0b661ac7e5c8d174758 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"CC-BY-4.0",
"OFL-1.1",
"Bison-exception-2.2",
"CC0-1.0",
"LicenseRef-scancode-nvidia-2002",
"LicenseRef-scancode-other-permissive",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clau... | permissive | godotengine/godot | 8a2419750f4851d1426a8f3bcb52cac5c86f23c2 | 970be7afdc111ccc7459d7ef3560de70e6d08c80 | refs/heads/master | 2023-08-21T14:37:00.262883 | 2023-08-21T06:26:15 | 2023-08-21T06:26:15 | 15,634,981 | 68,852 | 18,388 | MIT | 2023-09-14T21:42:16 | 2014-01-04T16:05:36 | C++ | UTF-8 | C++ | false | false | 4,781 | h | reflection_probe.h | /**************************************************************************/
/* reflection_probe.h */
/**************************************************************************/
/* This file is part of: */
/* ... |
548d6c5cd3d7cb6a9e4da5431d5d3092cc269dbd | 68057a3152a6e9fb5f9352b536c89374b9c4d333 | /tests/units/stack_base_weak.cpp | 16625afa55490f52001fa82db081f40fcf319f93 | [
"ISC"
] | permissive | mashavorob/lfds | b9ce3a0f839e7c47ac44319112f25b7725bdfd6e | 3890472a8a9996ce35d9a28f185df4c2f219a2bd | refs/heads/master | 2016-09-06T18:33:20.121328 | 2015-06-05T18:22:18 | 2015-06-05T18:22:18 | 28,824,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | cpp | stack_base_weak.cpp | /*
* stack_base_weak.cpp
*
* Created on: Dec 23, 2014
* Author: masha
*/
#include <xtomic/impl/stack_base_weak.hpp>
#include "gtest/gtest.h"
TEST(stack_base_weak, pop)
{
typedef xtomic::stack_base_weak<int> stack_type;
typedef stack_type::node_type node_type;
stack_type stack;
EXPECT_EQ(st... |
217314b0e6945c585adb4a13222f7451ec8a4f60 | af5a51b88a0c64107c32eb008bbdb221db52e551 | /from_sourceforge/gpx/X/branches/doc/include/gpx/math/const_VectorPtrN.hpp | f46f385a7d677896491a08339a181625f4952ff9 | [
"BSD-2-Clause"
] | permissive | michpolicht/gpx | fea1fdd77e510e325014309c6b9ce7c8410c8e51 | ed678357089eca129719d48e4a5489a08c4ca21b | refs/heads/master | 2021-01-10T06:32:47.279724 | 2016-11-14T01:40:16 | 2016-11-14T01:40:16 | 50,761,190 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,799 | hpp | const_VectorPtrN.hpp | /**
* @file
* @brief Vector<N> definition.
*/
#include "_structures_warning.hpp"
namespace gpx {
namespace math {
/**
* General n-dimensional vector. Not implemented yet.
*/
template <std::size_t N, typename T = real_t>
class const_VectorPtr
{
protected:
T * const m_ptr;
public:
/**
* Constructor.
... |
fb5c1d2ee811411c9d2eaba1b5b9664a57cac1e5 | cb8c337a790b62905ad3b30f7891a4dff0ae7b6d | /st-ericsson/multimedia/imaging/ext_hsmcamera/src/camport.cpp | a425f8ce119386e8ff448abc48ef506f4501e403 | [] | no_license | CustomROMs/android_vendor | 67a2a096bfaa805d47e7d72b0c7a0d7e4830fa31 | 295e660547846f90ac7ebe42a952e613dbe1b2c3 | refs/heads/master | 2020-04-27T15:01:52.612258 | 2019-03-11T13:26:23 | 2019-03-12T11:23:02 | 174,429,381 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,153 | cpp | camport.cpp | /*
* Copyright (C) ST-Ericsson SA 2011. All rights reserved.
* This code is ST-Ericsson proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of ST-Ericsson SA.
*/
#include "ext_camport.h"
#include "ext_grabctlcommon.h"
#include "IFM_Types.h"
#include... |
7a98e9501c65ec040cb9e7820235349ab947eca8 | bda11204be0b6570fc340d4318e38ddf343579f0 | /stan/math/opencl/sub_block.hpp | d8634af6bc98d718ec41a048fe9440ef5684c16a | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bstatcomp/math | bf47bd40bcf23b2d523ea51c7bc9afb34b8aa730 | 45371f4925d4f45a9ec64ba99ab6afbc695516b7 | refs/heads/develop | 2021-08-07T21:21:45.273667 | 2020-10-02T19:47:57 | 2020-10-02T19:47:57 | 107,233,452 | 3 | 0 | BSD-3-Clause | 2020-08-27T21:24:50 | 2017-10-17T07:32:06 | C++ | UTF-8 | C++ | false | false | 1,316 | hpp | sub_block.hpp | #ifndef STAN_MATH_OPENCL_SUB_BLOCK_HPP
#define STAN_MATH_OPENCL_SUB_BLOCK_HPP
#ifdef STAN_OPENCL
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/opencl/opencl_context.hpp>
#include <stan/math/opencl/matrix_cl_view.hpp>
#include <stan/math/opencl/matrix_cl.hpp>
#include <stan/ma... |
74b14d522e5d46ff2ce10de600dd090a35159677 | 5219fb0e1f6bf72ab747e1a1f3b6235fbd8c08bd | /ProducerConsumer.cpp | f70d162cf8b618bbe1739262680c1f3df2dab177 | [] | no_license | raviswan/ProgrammingProblems | 5f35105cc5e5e327741c67f5231871c089bf58cc | 25dccd075019a69a721f4dc603bc68ccbc086e82 | refs/heads/master | 2021-09-28T16:20:23.575957 | 2021-09-09T20:02:58 | 2021-09-09T20:02:58 | 46,036,071 | 9 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,210 | cpp | ProducerConsumer.cpp | #include <iostream>
#include <vector>
#include <thread>
#include <chrono>
#include <mutex>
#include <queue>
using namespace std;
const int PRODUCER_COUNT = 2;
const int CONSUMER_COUNT = 4;
class WorkerQueue{
public:
void add(int elem){
unique_lock<mutex> locker(mu);
q.push(elem);
cout<<"Produced ele... |
92c792a23153c5d04b266f62dc506525ef5f786f | 08c5dcb5542cab1210fe7c551bbbcdc9deb0049c | /src/bin/HPdesign.cc | 29d88a142d44e7d9866656cd22ec0ced22e6fa86 | [
"LicenseRef-scancode-newlib-historical"
] | permissive | BackofenLab/CPSP-tools | 89d9922dbbaa7189b0e1c347e1500c0ac2494de7 | a6b36b7a6bfe5fb2e533477b096aaf65975f1ac2 | refs/heads/master | 2023-03-17T13:25:50.724547 | 2023-03-08T16:17:38 | 2023-03-08T16:17:38 | 55,157,464 | 0 | 0 | null | 2016-03-31T14:54:58 | 2016-03-31T14:35:00 | C++ | UTF-8 | C++ | false | false | 16,101 | cc | HPdesign.cc | /*
* Main authors:
* Martin Mann http://www.bioinf.uni-freiburg.de/~mmann/
*
* Contributing authors:
* Sebastian Will http://www.bioinf.uni-freiburg.de/~will/
*
* Copyright:
* Martin Mann, 2007
*
* This file is part of the CPSP-tools package:
* http://www.bioinf.uni-freiburg.de/sw/cpsp/
... |
9ac760afd252681be3efdaeb42e16eaa8078eade | c091bf55a7a4767f8154724c9b517a83b7cdc2f9 | /contest5/AA.cpp | 91e0e7132bd1a6bac6c8aa39eaee38a72c04c7f8 | [] | no_license | yerson001/ProgramacionCompetitiva | 374355f2d13d8f82a67631e3eb42d656f871c0f3 | 3b07eb84a3406000652cdcffe9ee387b0b47a720 | refs/heads/main | 2023-05-27T19:00:03.941374 | 2021-06-13T21:19:44 | 2021-06-13T21:19:44 | 372,605,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | cpp | AA.cpp | #include <bits/stdc++.h>
int main() {
std::cin.tie(nullptr);
int t;
std::cin >> t;
while (t--) {
int n, m;
std::cin >> n >> m;
for (int i = 0; i < n; ++i) {
int a;
std::cin >> a;
m -= a;
}
std::cout << (m == 0 ? "YES" : "NO") ... |
e030065c2710ec2ea344084ec9ca96ce87722b5f | 202c8727aa87d1265c6cb837922d8c9cf2b2752e | /Actividad7/main.cpp | c2ddbe27612c187aeb0bc37d7558453350cc4e2e | [] | no_license | nlandau91/Procesamiento-de-Imagenes | b80d39d0a38eeb8cf7ea69c5682fae8fb84284ec | 6613a77ecb894bdb4382e47707c870d06b1d48e1 | refs/heads/main | 2023-01-31T13:41:27.995901 | 2020-12-07T19:21:30 | 2020-12-07T19:21:30 | 300,063,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,538 | cpp | main.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
cv::Mat resize(cv::Mat &src, int h = 800)
{
double ratio = (double)h / src.rows;
cv::Mat dst;
cv::resize(src, dst, cv::Size(), ratio, ratio);
return dst;
}
//corrige la perspectiva de una imagen
cv::Mat corregirPerspectiva(cv::Mat &src)
{
//buscamo... |
360071d5c4d5ddad8163f55f92806fae835d9626 | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /chrome/browser/offline_pages/prefetch/notifications/prefetch_notification_service_impl.h | 18f7dcb0c769dce8d3cc153e168a8e0351757243 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | C++ | false | false | 1,334 | h | prefetch_notification_service_impl.h | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_NOTIFICATIONS_PREFETCH_NOTIFICATION_SERVICE_IMPL_H_
#define CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_NOTIFICATI... |
c3598d97084455dc4b465f7e9fe404edba19994d | de131f7e17eec3bfd8f95f58c2e0be92c9f9d7d5 | /Documentos/Parcial2/CC1017248976/Punto2/CuentaCheques.h | ea3acd6b83c7093d51b1b884347a93524c66c33b | [] | no_license | Valentinaba/CursoFCII_UdeA-2020-2 | ed270bff33f7bef47236dbc593f0bb24bd3f8b8a | 6b45c8fe63aa28d5ea404ecebe16c0ce95bb1001 | refs/heads/master | 2023-01-31T03:47:56.254179 | 2020-12-18T02:28:07 | 2020-12-18T02:28:07 | 289,015,438 | 0 | 0 | null | 2020-08-20T16:21:27 | 2020-08-20T13:35:55 | null | UTF-8 | C++ | false | false | 339 | h | CuentaCheques.h | #ifndef CUENTA_CH
#define CUENTA_CH
#include <iostream>
#include "Cuenta.h"
class CuentaCheques : public Cuenta
{
public:
CuentaCheques(const double, const double);
void cargarCheques(const double);
void abonar(const double);
void cargar(const double);
private:
double tasaCuota;
void fijarCuota(const do... |
4ebdc054c03bc5fb9c9931cd1df893ff9755df2b | 8f961bc022f5ce587d854b7458909c3e0f1ef4bb | /framework/amorphous/LightWave/3DMeshModelBuilder_LW.hpp | 60e56e12c5d0684961d6e06e940b5ff01d06fd25 | [] | no_license | takashikumagai/amorphous | 73f0bd8c5f5d947a71bbad696ce728f25c456aae | 8e5f5ec9368757a639ed4cf7aeb02a4b201e6b42 | refs/heads/master | 2020-05-17T10:55:59.428403 | 2018-07-05T02:48:59 | 2018-07-05T02:48:59 | 183,671,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,429 | hpp | 3DMeshModelBuilder_LW.hpp | #ifndef __3DMESHMODELBUILDER_LW_H__
#define __3DMESHMODELBUILDER_LW_H__
#include <list>
#include "fwd.hpp"
#include "amorphous/Graphics/MeshModel/3DMeshModelBuilder.hpp"
#include "amorphous/Graphics/MeshModel/General3DMesh.hpp"
//#ifdef _DEBUG
//#pragma comment ( lib, "LW_FrameworkEx_d.lib" )
//#else
//#pragma co... |
fb9d1d38f3c720dacc8501d7ea257c30d896ae45 | 29676d738b7a0c8dcb4811844f3e5238a3d4a710 | /mainstagiaire.cpp | d369a4d940c7d853559a3aab2bcfd1196b135c3b | [] | no_license | Omariov/stagiaire | 885d926cfa40b6d1790ac4144667304ab8321f0f | 42c223607573c69b620aa8086a8707473102a14b | refs/heads/master | 2023-08-27T06:42:56.880896 | 2021-11-05T00:26:15 | 2021-11-05T00:26:15 | 424,768,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | mainstagiaire.cpp | #include "stagiaire.h"
#include <assert.h>
#include <iostream>
#include <string.h>
using namespace std;
using namespace stage;
int main()
{
stagiaire*a= new stagiaire("ahmed", "amine", "ilisi", 10, 12, 13);
stagiaire*b = new stagiaire("med", "am", "ilisi", 1, 2, 3);
stagiaire*c = new stagiaire();
stagia... |
7ba5f9df517f60685389fc9e12a8ff45320a300e | 037eab938a724c923cc27bb6976edbafe2660dbc | /src/bootloader/i2c_ee.cpp | 598124fdc29fae1b4594661b33e472f4d8e55f85 | [] | no_license | kc8goq/ersky9x | 5c4c477cb81b4ee3d97cbcd01dc62036b3b6ab91 | 53bcdeb1f8848a10ca83092b419ad8b8b3277747 | refs/heads/master | 2021-01-10T08:48:58.523255 | 2016-03-07T12:37:32 | 2016-03-07T12:37:32 | 53,323,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,104 | cpp | i2c_ee.cpp | /**
******************************************************************************
* @file Project/ee_drivers/i2c_ee.c
* @author X9D Application Team
* @version V 0.2
* @date 12-JULY-2012
* @brief This file provides a set of functions needed to manage the
* communication between I... |
b9c8710271be8bbb658c0566c0875ac0c9c37dae | 4bbe189811a50b2dacfb1ef970506eb2f38ee3dd | /endless-tunnel/app/src/main/cpp/glm/gtc/type_ptr.hpp | 764f344df98466cfbbf1472b9127ecc8969f05b1 | [
"Apache-2.0"
] | permissive | android/ndk-samples | 9ddf0633512841a0c9f79d011a4b82e044923356 | 87bf557531f3d3d50fbba6d64ac4a601a865788a | refs/heads/main | 2023-08-24T11:01:56.016375 | 2023-08-04T21:20:12 | 2023-08-04T21:20:12 | 35,718,695 | 3,721 | 1,570 | Apache-2.0 | 2023-08-04T21:20:14 | 2015-05-16T10:02:15 | C++ | UTF-8 | C++ | false | false | 5,837 | hpp | type_ptr.hpp | ///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
ba83cdef72232cbb38ee75a3d6f80279e8956b7c | c37dbf067525db9563efb819d976eb63c0bd8cbb | /opengl/early_practice/src/main.cpp | bdadf32303bca2f61c857e7c41f56de0c7c0901f | [] | no_license | taylon/playground | add2d8221b2626c583ef12ffcb8c26cabbfd2765 | 26915f496ee889e42531d18ea14bccd5b2bb03cf | refs/heads/master | 2023-03-10T09:10:25.368593 | 2021-02-20T19:37:15 | 2021-02-25T01:20:02 | 287,410,568 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,320 | cpp | main.cpp | #include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "shaders.h"
void framebufferSizeCallback(GLFWwindow *window, int width, int height) {
glViewport(0, 0, width, height);
}
void processInput(GLFWwindow *window) {
if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
glfwSetWindowSho... |
0dd4beb75331791b65991a6d3b23e1c9096ea6ee | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/af/1763564786fc09/main.cpp | 7d04589647c17d85d0123d80960925987deb7de7 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | main.cpp | #include <iostream>
class A {
public:
virtual void foo() const { std::cout << "A\n"; }
};
class B : public A{
public:
void foo() const { std::cout << "B\n"; }
};
class C: public B {
public:
void foo() const { std::cout << "C\n"; }
};
int main() {
A const& a = C{};
a.foo();
... |
227d8e7ae8e55b1574ecb7537fb7bb3f475be7e4 | 2bfddaf9c0ceb7bf46931f80ce84a829672b0343 | /tests/xtd.forms.unit_tests/src/xtd/forms/style_sheets/tests/background_image_tests.cpp | 5c319a2688053d263766f04cd4cc39c1e875dd57 | [
"MIT"
] | permissive | gammasoft71/xtd | c6790170d770e3f581b0f1b628c4a09fea913730 | ecd52f0519996b96025b196060280b602b41acac | refs/heads/master | 2023-08-19T09:48:09.581246 | 2023-08-16T20:52:11 | 2023-08-16T20:52:11 | 170,525,609 | 609 | 53 | MIT | 2023-05-06T03:49:33 | 2019-02-13T14:54:22 | C++ | UTF-8 | C++ | false | false | 4,149 | cpp | background_image_tests.cpp | #include <xtd/forms/style_sheets/background_image.h>
#include <xtd/drawing/system_colors.h>
#include <xtd/not_supported_exception.h>
#include <xtd/tunit/assert.h>
#include <xtd/tunit/collection_assert.h>
#include <xtd/tunit/test_class_attribute.h>
#include <xtd/tunit/test_method_attribute.h>
using namespace xtd;
using... |
f5f1cb3bf98746a1438fd65937fdfc1445ee963d | 66d91dc268b72b96ea9f7c457b1b3eec343bf873 | /week10/linkedList2/wk10_linkedList2_adupree/node.cpp | 2c8c1f3f32924206eb872c593968f84700e6be37 | [] | no_license | AlexanderJDupree/CS162 | 0614ae2dc1e713dd47a69d5b82e1abd32df321c0 | c9e49a3314d6051dc72bb87218a184fe009d52c9 | refs/heads/master | 2020-03-08T01:06:58.674234 | 2018-06-13T23:15:45 | 2018-06-13T23:15:45 | 127,821,973 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 428 | cpp | node.cpp | // Implementation for Node class
#include "node.h"
#define NULL 0
Node::Node() : data(0), next(NULL) {}
Node::~Node() {}
// Inspectors
const int& Node::getData() const
{
return data;
}
Node* Node::getLink()
{
return next;
}
// Mutators
Node* Node::setData(int data)
{
this->da... |
b9a02348a62e7c97b12d5e09dc5b4d0095b66022 | 4d4cb2e411543597e91f4f52fb83671313da41d9 | /src/enemies/enemies.hpp | c6a3a611cbdd4bf5d2697923aa3427807910a3e8 | [] | no_license | MartinTaTTe/tower-defense | 71e4f71408aaa03d5afe5f78a570866b7300aef3 | 1b5c6d4cd157cf584f0c5c0953a120b7b4f3ac4f | refs/heads/master | 2023-03-04T08:32:01.345210 | 2021-02-10T15:19:52 | 2021-02-17T17:37:09 | 331,945,890 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | hpp | enemies.hpp | #pragma once
#include "enemy.hpp"
#include "fast_enemy.hpp"
#include "flying_enemy.hpp"
#include "normal_enemy.hpp"
#include "regen_enemy.hpp"
#include "spawn_enemy.hpp" |
b19fcedd40ece68553cad7192f64749b23b3b73a | f96dd22d8241b3e4f3a2600381d88ed80b9179b1 | /include/Carna/base/BufferedVectorFieldFormat.h | 8b6b8cd888f19c28f3a36f9525019d850f8d0ca0 | [
"BSD-3-Clause"
] | permissive | 2592671413/Carna | 1a72a2b5202a34c8eaf502be9adc3e638d8fa527 | 51a77304428ef7913c7006ed979d5d427fe5b1d3 | refs/heads/master | 2021-01-11T17:59:26.257822 | 2016-12-13T15:26:14 | 2016-12-13T15:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,886 | h | BufferedVectorFieldFormat.h | /*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#ifndef BUFFEREDVECTORFIELDFORMAT_H_6014714286
#define BUFFEREDVECTORFIELDFORMAT_H_6014714286
#include <Carna/Carna.h>
/** \file Buffered... |
2715a063a43da27b24fc5428cefb1727438e6cc9 | 5ea33d3e72fb94d9b27404973aabbad0274f0d08 | /oactobjs/piaoutproj/PebsOasdiInfo.cpp | d1065a6eae759d6dfb2bb89b01d4c070de03a54f | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | bslabs/anypiamac | d99538ea35732dc6804a4f1d231d6034bb8f68c1 | 199a118e4feffbafde2007c326d9b1c774e9c4ff | refs/heads/master | 2021-06-24T08:21:34.583844 | 2020-11-21T07:37:01 | 2020-11-21T07:37:01 | 36,282,920 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,862 | cpp | PebsOasdiInfo.cpp | // Functions for the <see cref="PebsOasdiInfo"/> class to manage the Social
// Security Statement oasdi benefit info page.
// $Id: PebsOasdiInfo.cpp 1.8.1.2 2012/03/08 10:56:07EST 277133 Development $
#include "PebsOasdiInfo.h"
#include "FormatString.h"
#include "PiaException.h"
#include "Resource.h"
#inclu... |
100582b070d9f7a53aa35e6ad9e79853d59cb38b | c9138031642f3198fc3e3344710bb2b23c28ebfd | /enterpage.h | 137617667d3eeaceca80c5376f79d3e5b10a2f2c | [] | no_license | BenjaminChenTW/pd2-2048 | 51ddf6429f20612c6b21737b54ee7bcb7e000db6 | 15851ea05bf8e5bacf9e754f71b611f79b5fe43d | refs/heads/master | 2021-03-27T08:55:27.894012 | 2015-05-31T16:02:18 | 2015-05-31T16:02:18 | 36,609,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | enterpage.h | #ifndef ENTERPAGE_H
#define ENTERPAGE_H
#include <QMainWindow>
#include <QKeyEvent>
#include <QDebug>
#include "mainpage.h"
namespace Ui {
class EnterPage;
}
class EnterPage : public QMainWindow
{
Q_OBJECT
public:
explicit EnterPage(QWidget *parent = 0);
~EnterPage();
void endPage(bool *result);
pr... |
3ab16d7cc91b6d0c8f9a6e3e73f132cc7b05b113 | ff4999ae662707a882085b75b8cc377a714f747c | /C/services/storage/include/storage_api.h | 1b2d152ba4235d654d8c9e2601d3c2f1738c985a | [
"Apache-2.0"
] | permissive | fledge-iot/fledge | 095631d6a9be10444cdde0a7a3acbb039aabc8bd | d4804240a653ab6e324b5949069c0e17bf19e374 | refs/heads/develop | 2023-08-22T05:29:07.549634 | 2023-08-21T11:22:19 | 2023-08-21T11:22:19 | 225,508,004 | 111 | 44 | Apache-2.0 | 2023-09-14T10:42:06 | 2019-12-03T01:58:59 | Python | UTF-8 | C++ | false | false | 6,251 | h | storage_api.h | #ifndef _STORAGE_API_H
#define _STORAGE_API_H
/*
* Fledge storage service.
*
* Copyright (c) 2017 OSisoft, LLC
*
* Released under the Apache 2.0 Licence
*
* Author: Mark Riddoch
*/
#include <server_http.hpp>
#include <storage_plugin.h>
#include <storage_stats.h>
#include <storage_registry.h>
#include <stream_h... |
26c499276b502a64af594887e93260383f0462eb | 55b1dd5b4d09765fc35d1edeea765d5b61034dc1 | /unixv6.cc | bd3c41486688c53d8fe80da213c6ae528fcbbe4f | [] | no_license | ajaykarthik/unixv6 | 6d7c2ec90263bc5df07af5545a5ea2486e1f7917 | 5da0dae80bafe046f793d286537b19f199e72951 | refs/heads/master | 2021-01-01T05:31:12.536937 | 2015-02-04T01:11:10 | 2015-02-04T01:11:10 | 30,273,577 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,618 | cc | unixv6.cc | /*****************************************************************************************************************
Operating Systems project 2
Ajay Karthik Ganesan and Ashwin Rameshkumar
This program, when run creates a virtual unix file system, which removes the V-6 file system size limit of 16MB
Compiled and run on c... |
79af32316aed94055636f7f7ff18bf2427e571c0 | 070220e82b5d89e18b93d6ef34d702d2119575ed | /lc7hashcat/include/CLC7JTRGPUInfo.h | 2cc8e807e4db22c8c31f933c48a33dfb60d34a72 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Brute-f0rce/l0phtcrack | 2eb4e51f36fd28c9119269881d5e66e6a6dac533 | 25f681c07828e5e68e0dd788d84cc13c154aed3d | refs/heads/main | 2023-08-19T16:41:06.137715 | 2021-10-17T01:06:21 | 2021-10-17T01:06:21 | 418,568,833 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | h | CLC7JTRGPUInfo.h | #ifndef __INC_CLC7JTRGPUINFO
#define __INC_CLC7JTRGPUINFO
#include<QVector>
enum GPUPLATFORM
{
GPU_NONE=0,
GPU_OPENCL=1,
//GPU_CUDA=2
};
struct GPUINFO
{
GPUINFO()
{
platform = GPU_NONE;
jtrindex = 0xFFFFFFFF;
maxclock = 0;
streamprocessors = 0;
}
GPUPLATFORM platform;
quint32... |
2f3872842ef1652b0117763a28b3ad9baebecd06 | ac2516485d1c1e16a86a30eeee9adc138dfde4bf | /examinationroom/src/ui/parameter/parameterdialog.cpp | bbb3124d26e85bab4a6ff201b5e813c7bab3c975 | [] | no_license | cbreak-black/ExaminationRoom | ebee8da293fb2c659366a030cc4ee14553d5ada7 | a3d47201d003257b1a986e8fdec01be5c31cc5e5 | refs/heads/master | 2021-01-19T19:37:47.197485 | 2011-10-14T12:36:00 | 2011-10-14T12:36:00 | 576,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | cpp | parameterdialog.cpp | /*
* parameterdialog.cpp
* ExaminationRoom
*
* Created by cbreak on 04.05.08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
#include "parameterdialog.h"
#include <QVBoxLayout>
#include <QFileDialog>
namespace Examination
{
Parameterdialog::Parameterdialog(QWidget * parent) :
QWidget(pare... |
bdbeed596582f383198fabb273735dfcafd07a0a | 360e04537b3a0215fad4bfc2e521d20877c9fa60 | /Tree/树状数组/Mobile phones.cpp | fc18a5e4d59b1df03a16a1728e0ebbdec75e0074 | [] | no_license | Randool/Algorithm | 95a95b3b75b1ff2dc1edfa06bb7f4c286ee3d514 | a6c4fc3551efedebe3bfe5955c4744d7ff5ec032 | refs/heads/master | 2020-03-16T19:40:49.033078 | 2019-07-08T15:05:50 | 2019-07-08T15:05:50 | 132,927,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | cpp | Mobile phones.cpp | #include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
using namespace std;
#define MAXN 1030
#define lowbit(x) x&(-x)
int in, s;
int map[MAXN][MAXN];
void update(int x, int y, int t) {
while (x < MAXN) {
int yy = y;
while (yy < MAXN) {
map[x][yy] += t;
... |
268347e2dde1a46cc3171f8d6b441ea6b1433b7b | 32377c243d785d555ce63575c528eb2c8bd52381 | /orchestrierungMinimalBeispiel/serviceTemplate.h | 1a412dfa12c8923ce1d3b39f081c45307c25a002 | [] | no_license | twolff-afk/workflow-engine | 8383932bc8a6ce252da95844dbd995e7e1a16277 | 75223d68b767696852cb947f75b50882c25ad3f0 | refs/heads/master | 2023-04-18T17:47:11.788362 | 2021-05-05T09:45:42 | 2021-05-05T09:45:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | h | serviceTemplate.h | #ifndef SERVICE_H
#define SERVICE_H
#include <string>
#include <map>
using namespace std;
class serviceTemplate {
private:
string documentation;
string url;
string portType;
string inputMessage;
std::map<int, std::string> inputArguments;
std::map<int, std::string> outputArguments;
public:
serviceTemp... |
16bc86898a3938f80043a10d0d18dc026705b5c4 | e75cc18f64db23b9c1d304c39fb74ed083d9feee | /assignment-5/Tetromino.h | d9c97f184fdbfb55dba404e2ae4149aa63feeeb5 | [] | no_license | ChrisProgramming2018/cpp-course | 0b790e29ca239639dac70fa163d8af186ba7f7c7 | 398c0da3e49e67440ab663bb61d45eaf2dd56d2a | refs/heads/master | 2020-04-06T12:20:27.792277 | 2018-12-22T14:42:30 | 2018-12-22T14:42:30 | 157,451,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | h | Tetromino.h | // Copyright 2018
// Computer Science
// Author: Christian Leininger Christianleininger@gmx.de
#ifndef ASSIGNMENT_5_TETROMINO_H_
#define ASSIGNMENT_5_TETROMINO_H_
#include <gtest/gtest.h>
// Class for a single Tetromino.
class Tetromino {
public:
// Reset Tetromino to given kind in starting position at the top.
... |
e493a013cc038edc89eb04e333d9ebe06bbece1c | 5f2b8865e3e8d18551b8daaa2618d146a82e1181 | /第11章/第11章 11.9/main1.cpp | be885f1ccdf259a3b73bb47f697ea30f6b620b92 | [] | no_license | licunz/li_cunzhi | 628730843c15e1743dca4859d787e50be79521f1 | 2348976cba77eefa662e91c51c74e4bafc08633b | refs/heads/master | 2020-04-02T09:42:59.868934 | 2019-04-29T05:07:13 | 2019-04-29T05:07:13 | 154,306,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | main1.cpp | #include<iostream>
#include"TwoDaypackage.h"
#include"Opackage.h"
using namespace std;
#include<string>
int main()
{
TwoDaypackage a("li","chun","zhi","jining","lovy",10,100,5,50);
cout<<"111"<<a.getjname()<<endl;
cout<<"222"<<a.getsname()<<endl;
cout<<"333"<<a.calculatecost()<<endl;
Opacka... |
7c0c148b414d9537b8cbbf09e24aaef623f8b3b5 | c68f791005359cfec81af712aae0276c70b512b0 | /December Cook-Off 2017/ROTPTS.cpp | 20d29f05c5ce8dbba6b8d25843c42067d1e8dde8 | [] | no_license | luqmanarifin/cp | 83b3435ba2fdd7e4a9db33ab47c409adb088eb90 | 08c2d6b6dd8c4eb80278ec34dc64fd4db5878f9f | refs/heads/master | 2022-10-16T14:30:09.683632 | 2022-10-08T20:35:42 | 2022-10-08T20:35:42 | 51,346,488 | 106 | 46 | null | 2017-04-16T11:06:18 | 2016-02-09T04:26:58 | C++ | UTF-8 | C++ | false | false | 3,753 | cpp | ROTPTS.cpp | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
#define matrix vector<vector<long long>>
inline void norm(long long& at) {
if (at >= mod) at -= mod;
if (at < 0) at += mod;
}
inline matrix add(matrix& a, matrix& b) {
matrix ret(a.size(), vector<long long>(a[0].size(), 0));
fo... |
342feea9d0171bf0234f26db6ec4e894b6623931 | f05ad7795ddf4b4a9675829301541d35ebb985a7 | /Framework/Include/World/cgWorldObject.h | 85ae43b375c903e640fd27ec4e8fab2566c38390 | [] | no_license | blockspacer/CarbonSDKAlpha | 4d89904b822691fef2ea457bdacb8fcdb79a860d | a90d30cd970be25e73102eb6ef5f709f7753dce2 | refs/heads/master | 2021-05-21T09:46:23.810708 | 2014-07-26T21:16:34 | 2014-07-26T21:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,285 | h | cgWorldObject.h | //---------------------------------------------------------------------------//
// ____ _ _ //
// / ___|__ _ _ __| |__ ___ _ __ __ _/ | __ __ //
// | | / _` | '__| '_ \ / _ \| '_ \ \ \ / / | \ \/ / ... |
3e9eac91a94954359e8001363c5ef96a1619ced7 | 996e3a87e3cb335718ffb1be9b56ee241b067d0f | /include/texture.hpp | 5b54f6ed21625331602fa9106cb73209664185a9 | [] | no_license | claudiojrt/sdl_tutorial | c125d730467758f0ee9e7ee6c7af24a871aeef0a | 2bddc0712399bacf234d49a8bc9784bf972b6444 | refs/heads/master | 2020-04-15T05:56:57.542438 | 2019-01-09T00:14:12 | 2019-01-09T00:14:12 | 164,442,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | hpp | texture.hpp | #pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <timer.hpp>
#include <iostream>
#include <string>
#include <vector>
class Texture
{
public:
//Initializes variables
Texture();
//Deallocates memory
~Texture();
//Loads image at specified path
bool loadFromFile(SDL_Renderer* renderer, std:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.