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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10ab3d0940b921cfa94fd7370196b8d4f0709c4b | 9dae820bb66d277a291a8b36997823aee02adae5 | /Source/PhysBCFunctMaestro.H | 12531b803b17393a63ebf57d82ccd942bf6c1c56 | [
"BSD-3-Clause"
] | permissive | AMReX-Astro/MAESTROeX | 1264e4d5e7a193b7c1d2a6ad027381c2d8a8cad9 | a391e674d46d9af5a71732283ef005df81fb5df4 | refs/heads/main | 2023-07-06T21:30:28.724631 | 2023-07-04T21:44:07 | 2023-07-04T21:44:07 | 104,002,862 | 44 | 36 | BSD-3-Clause | 2023-09-14T21:36:46 | 2017-09-18T23:39:12 | C++ | UTF-8 | C++ | false | false | 1,921 | h | PhysBCFunctMaestro.H | #ifndef PhysBCFunctMaestro_H_
#define PhysBCFunctMaestro_H_
#include <AMReX_PhysBCFunct.H>
extern "C" {
typedef void (*BndryFuncDefaultMaestro)(
const amrex::Array4<amrex::Real>& scal, const amrex::Box& bx,
const amrex::Box& domainBox, const amrex::Real* dx, const amrex::BCRec bcs,
const amrex::Real* grid... |
158f72aaf93481c236d00b5b3a2348e10ff7844d | 1b3ee9bf0741aca2745dd6720de1b5ec2c737055 | /Queue_c.cpp | 8efa5bdca59a230556e0ef49d737700f2603c1ce | [] | no_license | kimehwa/untitled2 | ee80ab3671a57508ba470882eb49a59322c9d0be | bbecd2712e67358f586df0eaff7488ad8d3fa7d6 | refs/heads/master | 2020-06-26T06:51:24.423083 | 2019-07-30T03:03:11 | 2019-07-30T03:03:11 | 199,563,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | cpp | Queue_c.cpp | //
// Created by 管晓东 on 2019-07-29.
//
#include "Queue_c.h"
#include <iostream>
#include <vector>
using namespace std;
class MyCircularQueue {
private:
vector<int> data;
int head;
int tail;
int size;
public:
MyCircularQueue(int k) {//初始化链表
data.resize(k);
head = -1;
tail =... |
11fe927ebc682ada83f25a19ad01dae70d2b719e | a062d5ed6ab62b1b5c352646d42637021bb2b3fc | /src/arealight.cpp | e84848230a688397d2f5b93492e7699e24a41ce5 | [] | no_license | blizmax/nori-cs187 | 225841efc191018f648feaa43139e58b1daf0fd4 | 8367fd120b06c39637638367b1364b6fa538c402 | refs/heads/master | 2021-08-08T16:15:56.994452 | 2017-11-03T19:51:49 | 2017-11-03T19:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,352 | cpp | arealight.cpp | /*
This file is part of Nori, a simple educational ray tracer
Copyright (c) 2015 by Romain Prévost
Nori is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
Nori is distributed in t... |
23b97fbb9e19db6097683bbdc6c91d8b41a3097a | aedec0779dca9bf78daeeb7b30b0fe02dee139dc | /Modules/PointSet/src/Stripper.cc | 70d29ad0e4f206a7eb1bba8127094af24390ffa1 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BioMedIA/MIRTK | ca92f52b60f7db98c16940cd427a898a461f856c | 973ce2fe3f9508dec68892dbf97cca39067aa3d6 | refs/heads/master | 2022-08-08T01:05:11.841458 | 2022-07-28T00:03:25 | 2022-07-28T10:18:00 | 48,962,880 | 171 | 78 | Apache-2.0 | 2022-07-28T10:18:01 | 2016-01-03T22:25:55 | C++ | UTF-8 | C++ | false | false | 5,194 | cc | Stripper.cc | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 Andreas Schuh
*
* 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
*
* htt... |
2001a02250c941be664918df942d740044b57939 | fa4fa0e01ac89211fe69d0447c68779da1eaaf6a | /HW/HW5a_BasketballHashing-main/mapcheck.cpp | 87014f05f95beab554c9ee3c1ad85180eccfc8d6 | [
"Apache-2.0"
] | permissive | hwilt/CS174 | 92a1bdc78c7d2ce4b882237d689efaea95f177b0 | 4fea28a294ec4d32ef8509937242c382facdbfd6 | refs/heads/main | 2023-02-13T03:47:10.048222 | 2021-01-05T02:25:18 | 2021-01-05T02:25:18 | 312,004,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,006 | cpp | mapcheck.cpp | #include <stdio.h>
#include <string>
#include <iostream>
#include <fstream>
#include "hashable.h"
#include "cloneable.h"
#include "hashtable.h"
#include "linkedmap.h"
#include "player.h"
void compareMaps() {
// TODO: Fill this in
// 1. Create a map m1 of type LinkedMap and a map m2 of type HashMap
// and ... |
7b50994d64f904bcd90f6ce266d6c9c7edb04c03 | 51006c4a675ab1ea4cb322feba13ffa8328a79d2 | /src/OtherAbsorptionOutOfTargetReweighter.cpp | 6a37f6f21a1f87d92a1926623b2c13348c29ade8 | [] | no_license | ryounsumiko/ppfx | 7451a1d43edf188075c5755817dd6c880e446364 | 1da13690a39a04ee180612c445bb5e627b86f52d | refs/heads/master | 2023-01-19T20:22:59.782252 | 2020-05-21T18:27:41 | 2020-05-21T18:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,520 | cpp | OtherAbsorptionOutOfTargetReweighter.cpp |
#include "OtherAbsorptionOutOfTargetReweighter.h"
#include "CentralValuesAndUncertainties.h"
#include <cstdlib>
#include <iostream>
namespace NeutrinoFluxReweight{
OtherAbsorptionOutOfTargetReweighter::OtherAbsorptionOutOfTargetReweighter(int iuniv, const ParameterTable& cv_pars, const ParameterTable& univ_pa... |
f43d94abf659f5d7f5e48584105ac0604c1fa6d0 | 433918960a7a3c6b09d9b29a63ed1e8fb5de1050 | /src/pscs/src_gen/PSCS/Semantics/Loci/impl/LociPackageImpl.hpp | f82185addfec52d4c118cb20c920ba975ce972a1 | [
"EPL-1.0",
"MIT"
] | permissive | MDE4CPP/MDE4CPP | 476709da6c9f0d92504c1539ee4b1012786e3254 | 24e8ef69956d2a3c6b04dca3a61a97223f6aa959 | refs/heads/master | 2023-08-31T03:15:56.104582 | 2023-01-05T14:45:37 | 2023-01-05T14:45:37 | 82,116,322 | 14 | 27 | MIT | 2023-06-23T09:23:01 | 2017-02-15T23:11:29 | C++ | UTF-8 | C++ | false | false | 4,134 | hpp | LociPackageImpl.hpp | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef PSCS_SEMANTICS_LOCIPACKAGEIMPL_HPP
#define PSCS_SEMANTICS_LOCIPACKAGEIMPL_HPP
// namespace macro... |
8d724fcc44658b8036c7dede029d74e47eaf068c | 021df2f4ed5796796aeda5a4323f23f9bf1a897e | /imaging/imaginginttest/imageencoder/src/tsi_icl_encode_extinterface.cpp | 8e255a9712482c08a1008b4de4fd42fe0ff6db52 | [] | no_license | SymbianSource/oss.FCL.sf.os.mmimaging | 5f484b77a8f77fd9d9496512bc0e62743793168e | dcc68da0bf7c10c664c864262d3213b5b30124c9 | refs/heads/master | 2021-01-12T11:16:03.475384 | 2010-10-22T05:01:17 | 2010-10-22T05:01:17 | 72,886,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,483 | cpp | tsi_icl_encode_extinterface.cpp | // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/e... |
ccae196b7973e0afc6c98f97fa402b37f9366954 | c5244f34085d0368f53fc4ffc4f371c108ac22c2 | /FileDownloadContainer.cc | bce96fd76145c748edcfd69f467b328af7bca392 | [] | no_license | arunpn123/ns3-gnutella | f3af21c558e08e353590fcd2798b0c122177b7a2 | 8a1c9d6ed0e28103ae5a3e47250e5fcc866f85a0 | refs/heads/master | 2021-01-19T09:44:11.712713 | 2013-04-25T00:30:19 | 2013-04-25T00:30:19 | 9,122,705 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cc | FileDownloadContainer.cc | #include "FileDownloadContainer.h"
#include "Peer.h"
#include <map>
void FileDownloadContainer::AddDownload(Peer *p, std::string fn, int fi)
{
FileInfo f;
f.file_name = fn;
f.file_index = fi;
map_[p] = f;
}
std::string FileDownloadContainer::GetFileName(Peer *p)
{
std::map<Peer *, FileInfo>::iterator it = ... |
d4cb496beec101ca391c9d9b5f80d70f6b6daa52 | 33f1b5f6afa115be45cade93479bb7fbc33e7da0 | /UVA/11413/10919677_AC_0ms_0kB.cpp | aba235a24227ac4a6d5a70f908f4aed86d80d4ad | [] | no_license | showmic96/Online-Judge-Solution | 3960c37a646f4885210c09096c21dabd7f2154d2 | 94c34e9db2833fb84d0ac885b637dfebac30a5a2 | refs/heads/master | 2022-11-26T09:56:58.469560 | 2020-08-02T04:42:33 | 2020-08-02T04:42:33 | 230,185,618 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | 10919677_AC_0ms_0kB.cpp | // In the name of Allah the Most Merciful.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n , m;
vector<int>v;
bool check(int lim)
{
int mt = m-1 , limt = lim;
for(int i=0;i<n;i++){
if(v[i]>limt){
limt = lim;
mt--;
}
if(v[i]>lim)re... |
ddf8e2568da54563a61a7c6a373baa16d7f6ca5a | e503b342926d619dd62c0f86fed8bd1c5d4a5a46 | /OpenSSLWinRTComponent/OpenSSLWrapper.h | 4b7bdf21fd4e5a3cc29a964ce407b407ddf8c746 | [] | no_license | siddhu10/MFPBackupRestoreviaFTP | f74c8621ffe4e03aba44a36a2d028325dbd14c2f | 211924d6619b200ed1b9ea9d53477fdad786ade1 | refs/heads/master | 2020-05-04T17:47:35.778976 | 2019-04-03T16:19:31 | 2019-04-03T16:19:31 | 176,989,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | h | OpenSSLWrapper.h | #pragma once
namespace OpenSSLWinRTComponent
{
public ref class OpenSSLWrapper sealed
{
public:
OpenSSLWrapper();
Platform::String^ Entry_AES_Encrypt(Platform::String^ strPwd);
};
}
|
1ea28d884565cecb191ed5b8453c607ef1268c07 | b746e4639e27d351cebf4e8b15aa26c3bf7da83b | /Heaps/5.joining_ropes.cpp | e4cb6f02fb2859d90c54e38b26903d0219c8a58e | [] | no_license | JanviMahajan14/Algorithms | 97a2d40449565ac0f0b91d8e47bfa953d348dfce | cd951af6496066027586a0fcd4a9f48ee028a173 | refs/heads/master | 2023-07-16T19:08:42.917575 | 2021-09-02T07:33:44 | 2021-09-02T07:33:44 | 273,521,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | 5.joining_ropes.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
int main()
{
int n;
cin >> n;
priority_queue<int, vector<int>, greater<int>> pq;
while (n--)
{
int in;
cin >> in;
pq.push(in);
}
int sum = 0;
while (!pq.empty() && pq.size() != 1)
{
... |
056f43722ecf8f56b73d4491435d2bae3685f91c | 5bbda9dd673303e35a0c783e3ac456dcb3e1545b | /src/pwm/pca9685.cpp | adc3b847027b1ff824ed7fb557e2534e12c5ac84 | [
"BSD-2-Clause"
] | permissive | NemoLeiYANG/generalvisodom | c32d2b8dd68db8e52da357d5a3acfd0077093e8d | c9eb10539ba1442be9c296b084c152a511cec690 | refs/heads/master | 2020-03-17T00:29:34.346800 | 2018-05-09T04:14:27 | 2018-05-09T04:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,252 | cpp | pca9685.cpp | #include "gvio/pwm/pca9685.hpp"
namespace gvio {
int PCA9685::configure(const int freq) {
// Setup
this->i2c = I2C();
if (this->i2c.setup() != 0) {
LOG_INFO("Failed to open i2c connection!");
return -1;
}
this->i2c.setSlave(PCA9685_I2C_ADDR);
this->reset();
this->setAllPWM(0);
// Configure m... |
9e5c4951569abe9d3ae62113f3573c5164b1308d | a2c655a24d09f3b2d325bfe9cc7f533ad0e4001f | /Developpement/Composant5_Dev/Wallet_3/CompoProject/Wallet.cpp | 77900caafe1a2666d7c7da27a011e37d94fa0816 | [] | no_license | lifakpo/Composant_5 | 0794f883a24a6cfecf5d79f519f45c49e11c62f1 | 2721bc7820227dea1c9bb688f9f7686ebdccd2c1 | refs/heads/master | 2021-04-30T05:41:23.898511 | 2018-04-23T20:48:20 | 2018-04-23T20:48:20 | 121,421,365 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 5,770 | cpp | Wallet.cpp | #include "Bloc.h"
#include "stdafx.h"
#include "Wallet.h"
using namespace std;
Wallet::Wallet(string file): bc_file(file), mineur(bc_file.findByIndex(1),0) {
blocs = bc_file.readAll();
}
void stringToUnsignedChar64(string s, unsigned char*& uc) {
for (int i = 0; i < s.length(); i++) {
uc[i] = s[i];
}
return;
... |
989f1d2c48d79362f38047454e9115bc3411c40c | 7fbe7f4af92842656ff9af8e102dfb65a27a73f9 | /src/SinricProThermostat.h | 1b45b3882c8249f7a0d321172650724c84f136a0 | [] | no_license | Tejeet/esp8266-esp32-sdk | bde4e828bda76b62e35dda53b3bf0358355948f1 | bb52038c1d2594a4d11ba13f36c8396dd7998f93 | refs/heads/master | 2020-09-02T23:03:17.312025 | 2019-11-03T06:48:56 | 2019-11-03T06:48:56 | 219,326,990 | 1 | 0 | null | 2019-11-03T16:03:32 | 2019-11-03T16:03:31 | null | UTF-8 | C++ | false | false | 5,084 | h | SinricProThermostat.h | /*
* Copyright (c) 2019 Sinric. All rights reserved.
* Licensed under Creative Commons Attribution-Share Alike (CC BY-SA)
*
* This file is part of the Sinric Pro (https://github.com/sinricpro/)
*/
#ifndef _SINRICTHERMOSTAT_H_
#define _SINRICTHERMOSTAT_H_
#include "SinricProDevice.h"
#include <ArduinoJson.h>
... |
9bc2ebc15430e0c3454163af575ea6366f4af85f | 3468c616bdb7bd1497307b6273ddded84be2d867 | /src/sounddb.cpp | 62bd00d9d40bb23cbb59154680760c4e1bb50039 | [
"MIT"
] | permissive | fu7mu4/entonetics | 0563915143c5e804140df7a7527516b6da7cf3c4 | d0b2643f039a890b25d5036cc94bfe3b4d840480 | refs/heads/master | 2021-01-10T11:11:14.062751 | 2016-01-26T06:21:40 | 2016-01-26T06:21:40 | 50,407,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,908 | cpp | sounddb.cpp | #include <sounddb.hpp>
#include <cassert>
#include <sstream>
namespace ento
{
SoundDB::SoundDB( void )
: m_anon_count(0)
{ }
bool SoundDB::isSound( const std::string& name )
{
std::map<std::string,SoundEntry>::iterator found;
found = m_sounds.find(name);
return found != m_sounds.end();
}
SoundDB::Ref Sou... |
7e743cdd3c15469ec73cf30060ef7f86c77a46ee | d0fb2290d6dbb918ad1c902ae74f747eac7f9d44 | /webkit/tag/body.cpp | b52730584dc48793ffbc0162066aed331d2b8cc8 | [] | no_license | drWebber/qt-webkit | 81ec9c26ad24d800d9410a16ae91f314faaa96c9 | 78b610d55b3c5f26c45debc764ff9b2af7804b27 | refs/heads/master | 2020-04-10T08:59:54.446752 | 2018-11-25T10:34:10 | 2018-11-25T10:34:10 | 160,922,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | body.cpp | #include "body.h"
QString Body::name()
{
return "body";
}
QString Body::innerText()
{
QString text = outerHtml();
RegExp::replace("(?si)<script.+?/script>", text, "");
RegExp::replace("(?si)</?p>|<p\\s.+?>", text, "\r\n");
RegExp::replace("<br/?>|<br\\s.+?>", text, "\r\n");
RegExp::replace("(... |
c3722217afd362301c7fac16bd7ab37bdce1b4e6 | 1c6c9772ca8ad9da9d316c580853409085e4b880 | /Board.h | dca9d1734821358ef7fee72afee69c77e9bbe2f1 | [] | no_license | M-Berkaliyeva/Tetris | b4475b58c215f14e15aad423c0c1d63ce46762fa | 40f7590a3e29981d257cc7a037214cecd12bc3db | refs/heads/master | 2020-06-03T16:29:31.451496 | 2014-01-17T18:03:04 | 2014-01-17T18:03:04 | 16,007,334 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | h | Board.h | #ifndef _BOARD_
#define _BOARD_
#include "Tetromino.h"
#define BOARD_LINE_WIDTH 6 // Width of each of the two lines that delimit the board
#define BLOCK_SIZE 30 // Width and Height of each block of a tetromino
#define BOARD_POSITION 220 // Center position of the board from the left... |
8f40443eeb7c66f0228540f2af43dec8686a88a1 | d12a2023c519eab2c8e75a73bb58d73c97f2220f | /qt try/ui_outline/bookstackedpage.h | 2e9af0f347a63bf38f1c0448bf0d2ff020e9dbbd | [] | no_license | GhostofAdam/LibraryManagement | ad8f9448ffd55e7370dec8ae28310e0cb59c983e | 154d7599f4d5b6bd0651c433a8040bbe44bfff55 | refs/heads/master | 2020-03-10T12:17:43.190999 | 2018-07-01T12:26:53 | 2018-07-01T12:26:53 | 129,374,461 | 0 | 2 | null | 2018-05-30T16:04:46 | 2018-04-13T08:42:46 | C++ | UTF-8 | C++ | false | false | 1,011 | h | bookstackedpage.h | #ifndef BOOKSTACKEDPAGE_H
#define BOOKSTACKEDPAGE_H
#include <QWidget>
#include <QMainWindow>
#include <QSplitter>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QAction>
#include <QListWidget>
#include <QStackedWidget>
#include <QLabel>
#include <QString>
#include "databookadapter.h"
#include "databook.h"
... |
3dcc41aa0af6bd3187bf57429fe6916d263e4f6e | 4b162d4e70022705555596f161954b909d29047a | /equilibrium_index.cpp | 6098769c0aab2993febbf6e453b86a2af0738c0e | [] | no_license | kashyap99saksham/Preparation | 53d4a48b99ed9bc5b6f3da29a07c3d44e5ad22a9 | df1f938fca7fbd406a715d7a80db3c7c464039ea | refs/heads/master | 2020-06-24T18:49:33.021059 | 2019-08-21T16:44:20 | 2019-08-21T16:44:20 | 199,051,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | equilibrium_index.cpp | #include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--)
{
int n,j,k;
cin>>n;
bool f = false;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
for(int i=0;i<n;i++)
{
int sum_l=0,sum_r=0;
for(j=0;j<i;j++)
{
sum_l+= arr[j];
}
for(k=i+1;k<n;k++)... |
41a5e200dfacf0ea4a7d6bd11e3e6afc18b7b6c0 | 0e0883cd9d8fe9cbf0598483988a4ff0a12622dd | /src/include/Sprite.hpp | 26ab85755dd1e4d908fbe69320f141e6d933942d | [
"BSD-3-Clause"
] | permissive | J-Clip9/Distillate | 3dfb86860f73444af70e85b257431c3e8967e84c | 40d3f3f14beea973b985f9a04d837463169023cb | refs/heads/master | 2022-02-09T08:37:33.495857 | 2011-08-03T02:37:15 | 2011-08-03T02:37:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,100 | hpp | Sprite.hpp | /**
* Copyright (c) 2010 - 2011 Distillate Project
*
* ______ ________________________ _____________________
* | \ | |______ | | | | |_____| | |______
* |_____/__|________| | __|__|_____|_____| | | |______
*
*
* License: BSD
*
* Redistribution and use in sour... |
57dde7d29e369dc97df1b393b79ea9c89ff8430a | 869e0f4ead411ba097d2154be37f81de10579069 | /UDPSever/UDPSever/UDPSever.cpp | dbaf8a872d46009e0ceb02977e022ab69b33b9b8 | [] | no_license | jacobishao/SampleUdpSocket | cf9428f9c8395af6671c701a62cfb31797aa0207 | 1275e34c20558d226293409e4ed429ef484d6f9a | refs/heads/master | 2021-01-10T10:30:11.250893 | 2015-10-28T06:02:09 | 2015-10-28T06:02:09 | 36,866,783 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,154 | cpp | UDPSever.cpp | #include <winsock2.h>
#include <stdio.h>
#include <windows.h>
// Need to link with Ws2_32.lib
#pragma comment (lib, "Ws2_32.lib")
int main(int argc, char* argv[])
{
//----------------------
// Initialize Winsock.
WSADATA wsaData;
int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult != NO_ERROR) {
wpr... |
c83b6cd523adba47445365f7ad6acdbbd11d5fd7 | ecf6d488d37cd90978425c03a0b204e195181981 | /M3105/tp5/Interpreteur.cpp | 7f4a6c5f03aa33cc7089a8f3a5e6b66464ffb936 | [] | no_license | m-cabezas/Interpreteur | 93797f468e87e689518b49d52289fbf72785e97d | 885aba8e8c3726de5d354335f583d6bb5c848d66 | refs/heads/master | 2022-03-02T02:41:12.360641 | 2019-11-07T14:51:46 | 2019-11-07T14:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,619 | cpp | Interpreteur.cpp | #include "Interpreteur.h"
#include <stdlib.h>
#include <iostream>
using namespace std;
Interpreteur::Interpreteur(ifstream & fichier) :
m_lecteur(fichier), m_table(), m_arbre(nullptr) {
}
void Interpreteur::analyse() {
m_arbre = programme(); // on lance l'analyse de la première règle
if (nbErreurs != 0) {
... |
467cc4c0d7a93fe54d401f178773b5cd55c5764c | 411cdc4aabc554a640a18f1f4be114de74efe3b0 | /Instruction.cpp | 9e9e25fa03d260dee17268b1e0baa9800f0bc437 | [
"MIT"
] | permissive | UtkrishtDhankar/TuringMachine | 82d652ceea902fae47f9e17678127b79cd99c01d | a8f96a17d1a25f50d9a0225ae608d703d2ac84ca | refs/heads/master | 2021-01-20T08:29:29.540436 | 2017-05-03T13:29:22 | 2017-05-03T13:29:22 | 90,151,173 | 0 | 1 | null | 2017-05-03T16:54:57 | 2017-05-03T13:19:21 | C++ | UTF-8 | C++ | false | false | 661 | cpp | Instruction.cpp | #include "Instruction.hpp"
Instruction::Instruction()
{
moveType = MoveType::STAY;
overwrite = 0;
nextCard = 0;
}
Instruction::Instruction(MoveType m, bool o, unsigned int n)
{
moveType = m;
overwrite = o;
nextCard = n;
}
Instruction::Instruction(const Instruction& other)
{
moveType = other.moveType;
ov... |
e8cdaefbebcbe364d10ec702976a83639cfe9e63 | 3e91e71323a043bd404203bd4d5efd9aae15b18e | /Dev-CppProject/Demo02_Min.cpp | 9811fb002b2fe53f7b3e2ab7aaebadb0a047b05f | [] | no_license | ZhanXiaoFeng/MyProject | f5dc60612a0c644f3837192f4298bad68c2d927a | 61ecfb266173e5dc7b283cb4fd5bc4a40912b6cd | refs/heads/master | 2022-07-17T15:41:49.300176 | 2018-08-23T10:53:07 | 2018-08-23T10:53:07 | 141,031,392 | 1 | 0 | null | 2022-06-29T16:45:38 | 2018-07-15T13:54:32 | JavaScript | GB18030 | C++ | false | false | 493 | cpp | Demo02_Min.cpp | #include<stdio.h>
int main(){
int i,j, row=0,colum=0,min;
//这里理解为a[3][4]的一个二维数组
int a[][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}};
//定义一开始最小的一个数为a[0][0],即为数组中的第一个数
min=a[0][0];
for(i=0;i<3;i++) //或者i<=2
for(j=0;j<4;j++)
if(min>a[i][j]){//用当前的min值和a[i][j]依次比较
min=a[i][j];
row=i;
colum... |
bc2abb91986740e20dd11026530d2dd6ac404927 | 26be1f025256e2320f46b739d87fc0afadc825c9 | /src/entities/collision_handler.cpp | dba02b38ba2a0c294507f510c0381bf82813f97f | [] | no_license | CCAtAlvis/ray-n-vader | f1292bdb454985fc6c89b767acd09384bb4dcb4d | c5885d1476a0cd2a353ff996120a3ca28d046bc5 | refs/heads/main | 2023-07-09T20:06:30.973525 | 2021-08-15T18:22:58 | 2021-08-15T18:22:58 | 391,450,809 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | cpp | collision_handler.cpp | #include <iostream>
#include "raylib.h"
#include "../headers/game.h"
#include "../headers/collision_handler.h"
#include "../headers/enemy.h"
#include "../headers/player.h"
#include "../headers/bullet.h"
void CheckPlayerCollision() {
for (auto &e : Enemy::enemies) {
Rectangle rec{Player::position.x - Player::SH... |
ddb5952223bae5347d78dda5f7811e9fc66d8c14 | e4b6dbbec45e36f8399710318f6a53327fbf7529 | /include/gmml/internal/library_file.h | eb1a65616de0a34438afe17041f08deb0fd46624 | [
"MIT"
] | permissive | rtdavis22/GMML | 9994205b8529ec11d0d29997149f848ee0c3d307 | 78da13bafa5256b87ad17f624099fed09b534b74 | refs/heads/master | 2021-01-22T09:32:58.244273 | 2014-02-05T16:17:33 | 2014-02-05T16:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,792 | h | library_file.h | // Copyright (c) 2012 The University of Georgia
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... |
046abfe9edd2cc7cce7ffdcef803f5979d53d3d8 | cac3e17dcddaa4dbec8dc5f6ab3dade7c8c36dca | /codex/include/codex/codex.hpp | 01e9761462a114843ceaf2aa994f7618909bb4d5 | [
"MIT"
] | permissive | codex-tk/libcodex | ac7b0505aae0402418176e2625e357b7242d9b7d | 003f20242b8139b9a805dc9bfd9bdc96a28555e3 | refs/heads/master | 2020-12-02T09:57:57.352661 | 2017-09-18T12:50:55 | 2017-09-18T12:50:55 | 96,666,338 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | hpp | codex.hpp | #ifndef __libcodex_codex_h__
#define __libcodex_codex_h__
#if defined( _WIN32 )
#if !defined(NOMINMAX)
#define NOMINMAX
#endif
#include <WinSock2.h>
#include <MSWSock.h>
#include <ws2tcpip.h>
#include <Windows.h>
#else
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unis... |
531337fe9c3fe562dd65802c3d4c6f0f0c32f6f6 | 513e061ab4bcb8755f13e927de39322b44b04c14 | /cpp/conv2D.cpp | 3ae6685d7cc73d5c123719ffc5cf3c07d61c7d4a | [] | no_license | EC500-Convolution-Project/2D-image | ed6718eeab3bd61c402718350fde56e4704869e1 | 0c0da1667e36d5a47eff684878766da37b393628 | refs/heads/master | 2020-03-11T09:36:47.890868 | 2018-05-03T17:48:25 | 2018-05-03T17:48:25 | 129,917,174 | 0 | 0 | null | 2018-05-01T15:54:02 | 2018-04-17T14:28:37 | C++ | UTF-8 | C++ | false | false | 4,685 | cpp | conv2D.cpp | /*
Parallelization of 2D Convolution on GPU
Michael Clifford, Patrick Dillon, Frank Tranghese
EC500 E1 - Parallel Programming
Group 1
*/
#include "conv2D.h"
using namespace std;
/*
*** INPUTS ***
array is an array of N doubles that need to be made circulant (assumes already zero padded)
circArray ... |
0152b1a5441118b0268baab673003f355a434a68 | 23227f0cb7807f4d6ba165164d2111c0e8f8e6a3 | /Instance_Set.h | ef917d354191e1858f2a40d7dae8fa1bc94d691a | [] | no_license | Ying-Syuam-Wang/Multi-objective_performance_matrices | c845ac71030a3696660df93f87d6c15975701762 | 690bf7e1654c1fd3ff7190da8a312009abe162c6 | refs/heads/master | 2020-04-06T04:11:52.353754 | 2017-05-22T20:48:09 | 2017-05-22T20:48:09 | 83,007,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | h | Instance_Set.h | #ifndef INSTANCE_SET_H_INCLUDED
#define INSTANCE_SET_H_INCLUDED
#include "algo_Instance_Result.h"
class CInstanceSet
{
public:
CInstanceSet(){}
explicit CInstanceSet(size_t s):_insResult(s){}
void resizeIns(size_t s){_insResult.resize(s);}
const CInstanceResult & Ins(size_t i)const{return _insResult[... |
f705a174bdfb7537085c4c8d11c5b861a4f18f1b | 478928f7a41b87f821070e6c0ee78820b580b127 | /extlibs/SSVUtils/include/SSVUtils/String/Split.h | 88e685fce516d36a565e5cbce7ff0e42bc005c6d | [
"AFL-3.0",
"LicenseRef-scancode-unknown-license-reference",
"AFL-2.1"
] | permissive | questor/git-ws | 316bdd7165e752195fc40b05e2af1e0778623038 | 4c6db1dd6586be21baf74d97e3caf1006a239aec | refs/heads/master | 2021-01-17T22:50:06.476220 | 2015-01-26T11:34:38 | 2015-01-26T11:34:38 | 11,098,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | h | Split.h | // Copyright (c) 2013 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#ifndef SSVU_STRING_SPLIT
#define SSVU_STRING_SPLIT
#include <string>
#include <vector>
#include "SSVUtils/String/Enums.h"
#include "SSVUtils/String/Internal/SplitHelper.h"... |
a88d2ec77197257c422116d2cd6e2a4dc1e2982c | 70c1fdc0a0206e7e869635efa222518d502f29f5 | /rangequeries/range_queries_with_tree.cpp | 40f2db81184f5dc4d0e6eb58fd02a490353e3e9e | [] | no_license | AndyLi23/cses | 6f87fa82017f2b1396c9ea1641b7dad85122d85f | 4c0ccf82b89b144b6badb29ac15f4c1633fbc159 | refs/heads/master | 2023-07-05T01:10:22.588140 | 2021-08-23T15:15:48 | 2021-08-23T15:15:48 | 389,780,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | cpp | range_queries_with_tree.cpp | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <class T> using Tree = tree<T, null_type, less<T>,
rb_tree_tag, tree_order_statistics_node_update>;
#define FOR(i, n) for(int (i) = 0 ; (i) < (n); ++(i)... |
77f40b91e77427d6ab43e37c6cc598a9d68c369d | a6bc975db9ce2e4579f73245ee571988cd0c7c8f | /q1.cpp | b379ddd3ba60b13318a803e98f4aa47acd7aaebe | [] | no_license | y-gupta/col757-ass1 | 9189b73204f9f74d87d19d2e768b39f0fe0a8d75 | eb0dd723913f2fb12d1c37102d066260020d0474 | refs/heads/master | 2021-06-14T12:54:31.393401 | 2017-05-19T15:49:16 | 2017-05-19T15:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | cpp | q1.cpp | #include <iostream>
#include <omp.h>
#include <cassert>
#include <cstdlib>
#define P 12
#define LOGP 4
#define N 10000000
#define T 1000 //number of testcases
#define N1 1
using namespace std;
inline double timer(bool output=false)
{
static double prev=0;
double current = omp_get_wtime();
double delta = curren... |
df36ab1c1fc3a1483c691e44b122a603d65dc602 | c021ea6ec2a1882f71617b7fed430e8e40c66573 | /src/component/mainview.h | 1bb081bd231a5df50894bfeed9204686779aff19 | [
"MIT"
] | permissive | top-master/Android-BuildTools | e9a32b8b6c6a78ef0d6543265eedec3d284329ab | b268e65f88cd15be049f25191c18f26caae043fb | refs/heads/master | 2020-04-15T16:35:55.012331 | 2019-01-09T10:36:17 | 2019-01-16T12:37:17 | 164,842,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 437 | h | mainview.h | #ifndef MAINVIEW_H
#define MAINVIEW_H
#include <QWidget>
namespace Ui {
class MainView;
}
class MainView : public QWidget
{
Q_OBJECT
typedef QWidget super;
public:
explicit MainView(QWidget *parent = 0);
~MainView();
public slots:
void build();
protected slots:
void restore();
void bro... |
01df8e09740c1a2e4dd3dd11dc17afa0492af8a0 | b7afa85b16359b4f6171197c7188439489ab95ad | /Singleton/InsideObject/main.cpp | 3168aa31fb3cc06497761b1908e7fbe3ddcbd376 | [] | no_license | gdgy/LearnCpp | e250b613971e0a2d2ebb26879781a900b4a390f2 | 5fd90116eb630a4aba98edeb1219f893a551c7c7 | refs/heads/master | 2021-01-21T19:51:47.571825 | 2017-05-28T01:00:24 | 2017-05-28T01:00:24 | 92,169,428 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,314 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
using namespace std;
typedef void(*Fun)();
class Base
{
public:
Base(int i) :baseI(i){};
virtual void print(void){ cout << "调用了虚函数Base::print()"; }
virtual void setI(){ cout << "调用了虚函数Base::setI()" << endl; }
virtual ~Base(){ cout << "call Base::~Base()" << endl; }
private:... |
735a43942da66842877de9e9d8e152733a6f3054 | 0dc20516079aaae4756d28e67db7cae9c0d33708 | /server/src/server/net/link.cpp | 85a1f0a178601d4566e4631c94c3ffe2b8c13de0 | [] | no_license | psymicgit/dummy | 149365d586f0d4083a7a5719ad7c7268e7dc4bc3 | 483f2d410f353ae4c42abdfe4c606ed542186053 | refs/heads/master | 2020-12-24T07:48:56.132871 | 2017-08-05T07:20:18 | 2017-08-05T07:20:18 | 32,851,013 | 3 | 8 | null | null | null | null | GB18030 | C++ | false | false | 10,851 | cpp | link.cpp | ///<------------------------------------------------------------------------------
//< @file: server\net\link.cpp
//< @author: 洪坤安
//< @date: 2015年1月14日 23:7:5
//< @brief:
//< Copyright (c) 2015 服务器. All rights reserved.
///<------------------------------------------------------------------------------
#include "l... |
1baff3f8b77404dfff9367a5785cbc1c019edb72 | fad2f4cbff4d3b0957e63f3e7ee8cf1ce9f00a61 | /scientific.h | 52783dbbfc4d392967101470469181ade8f02cf8 | [] | no_license | yzxhx/yzxhx2 | 538ab2442b2456a9a408cb54f128eb1a336a3768 | 34c2192d330ce8046d478eaac9bcbabade57f68a | refs/heads/master | 2022-12-11T08:20:05.741176 | 2020-09-15T23:46:55 | 2020-09-15T23:46:55 | 292,030,356 | 0 | 0 | null | 2020-09-10T12:07:00 | 2020-09-01T15:07:11 | C++ | UTF-8 | C++ | false | false | 326 | h | scientific.h | #ifndef SCIENTIFIC_H
#define SCIENTIFIC_H
#include <QMainWindow>
class scientific : public QMainWindow
{
Q_OBJECT
public:
explicit scientific(QWidget *parent = nullptr);
public:
void sendst();
void sendp();
signals:
void sst();
void sp();
public slots:
};
#endif // SCIENTIF... |
c3b55fe604b47b81dc42f8d9843d535433ae9fc1 | f925b7fe5ba4c057f38f4389c12cf8e253a0e8a6 | /pylongigecamera.cpp | 591c8bfe5c6400ff6dd65dbc98f156ebd5fb5413 | [] | no_license | lzj12321/XG_Vision | 5b944aaeb917442e4e6f68ed9c1c86122fd9b218 | a6ad51dade27d0af18aa85ef7393c4358a77b2a8 | refs/heads/master | 2020-03-21T05:00:52.642387 | 2018-06-21T08:26:25 | 2018-06-21T08:26:25 | 138,139,802 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,788 | cpp | pylongigecamera.cpp | #include "pylongigecamera.h"
#include<QException>
#include<QString>
#include<iostream>
pylonGigeCamera::pylonGigeCamera()
{
isCameraEverOpened=false;
cameraEventPtr=new pylonCameraEventHandler;
imageEventPtr=new pylonImageEventHandler;
connect(cameraEventPtr,SIGNAL(Esignal_cameraOpened(st... |
e9655485b785c52d812b93c6e73ab1d07efd6f04 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FWCore/Framework/interface/PathsAndConsumesOfModules.h | 46d709c7bfe6406add579f18699f758a11209029 | [
"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 | 3,236 | h | PathsAndConsumesOfModules.h | #ifndef FWCore_Framework_PathsAndConsumesOfModules_h
#define FWCore_Framework_PathsAndConsumesOfModules_h
/**\class edm::PathsAndConsumesOfModules
Description: See comments in the base class
Usage:
*/
//
// Original Author: W. David Dagenhart
// Created: 11/5/2014
#include "FWCore/ServiceRegistry/interfa... |
73c3dd5932950d01b56291f59ea85a90ec299567 | cf56272527c1859a0c17e152a600882f4ef6fded | /Engine/GraphicsEngine/RasterZsiros/Core/src/multithreading/spinlock.cpp | 22479bdd41658b52f27c18209067ffeba9d0322a | [] | no_license | Almahmudrony/ExcessiveEngine | d56d29ba2d7d5fd32efdca6cec64f0e6356a0e46 | 6e4124e363bbd9ee1ebba0c20c4d71bda986f9df | refs/heads/master | 2021-01-01T18:58:16.594424 | 2017-05-01T18:59:21 | 2017-05-01T18:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | spinlock.cpp | ////////////////////////////////////////////////////////////////////////////////
// File: spinlock.cpp
// Author: Péter Kardos
////////////////////////////////////////////////////////////////////////////////
// See header.
//
////////////////////////////////////////////////////////////////////////////////
#include ... |
d8a3df5ca37e2fa25afa9098ff5e6457c7da4a8b | f5b146fe9c112cd05cda78cf9c135e588aa51a35 | /include/bedroom.hpp | 08d64a32aee14917fde2301d04d3a633ffab0516 | [] | no_license | bsphair/Cat-Game | d6cad0430b38184e2bbd3c2e1b49acd982695c80 | 62ff19335030e95fee8f8bdf3b48bfc34342d00a | refs/heads/master | 2020-03-21T04:33:09.087471 | 2019-03-31T23:01:14 | 2019-03-31T23:01:14 | 138,114,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | hpp | bedroom.hpp | /****************************************************************************************************************************
** File Name: bedroom.hpp
** Author: Brian Phair
** Date: March 21, 2017
** Description: Contains the function declarations of the BedRoom class
*************************************************... |
7e9f79ac53c40620b228f3572060f460c46efe6d | 97bc34cfaa815a00926cf0fe6e9babf30bad0fb4 | /express_num_as_sum_of_two_primes.cpp | d69ffdc34d7960a041767e22cc02d85dd181a2f7 | [] | no_license | sreekv514/MyCaptain_CPP | ca407369d5779983d4dbf5af0b61767b15cb7a3d | d2d2c3bde6658a3d53f5ce89b3850fd5b2933e29 | refs/heads/master | 2022-11-23T23:51:24.090197 | 2020-07-24T11:01:51 | 2020-07-24T11:01:51 | 276,346,741 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | express_num_as_sum_of_two_primes.cpp | //Program to check whether a number can be expressed as the sum of two prime numbers
#include<iostream>
using namespace std;
void express_sum(int num);
int checkprime(int a);
int main()
{
int num;
char choice = 'y';
cout<<"\n\tProgram to express any number as the sum of two prime numbers\n";
cout<<"-... |
7767c42ac1e0582ec43619dc197b6e312a513863 | d9e3769ece8f45c87c4a1b886112aca20ed89ad9 | /app/mainwindow.h | f7db4705310ca061a799835484d3e363d2608f86 | [
"Apache-2.0"
] | permissive | mingxin-zheng/CathShapeSense | 80535f81b2c5dfcd8211b482d9ce2690d5cf5090 | ad4bc8232ad5319c332d895d8eb6e295b695b0a2 | refs/heads/master | 2023-08-19T10:41:05.796889 | 2021-09-07T04:29:39 | 2021-09-07T04:29:39 | 403,221,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,150 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "dataSource.h"
#include "frontEnd.h"
#include "backEnd.h"
#include <chrono>
enum class AppState
{
AppState_Unitialized = 0,
AppState_Idle,
AppState_Running
};
enum class SimulationDensity;
namespace Ui {
class ... |
a51d9ee0779166f5fc8bf545f4b92373a9a21862 | 371c5b952a7d002f2565a51799ce4581a28bd2db | /Chapter4/Chap4_ex14.cpp | 650c47680a176d0088757898ec14cbf682b3b778 | [] | no_license | tail95/CPP_FromScratch | b1de1022195db7bab89db212336cd8ba315db288 | 83f40235ecd4e5d89f6a52e551d48a1463c4a9a7 | refs/heads/master | 2020-08-05T12:32:38.985724 | 2019-10-23T13:00:07 | 2019-10-23T13:00:07 | 212,496,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | Chap4_ex14.cpp | #include <iostream>
#include <string>
#include <ctime>
using namespace std;
class Player {
string name;
public:
Player() { this->name = ""; }
void setName(string name) { this->name = name; }
string getName() { return this->name; }
};
class GamblingGame {
Player* players;
public:
GamblingGame();
~GamblingGame();... |
e41e969459588010c124c4ee0c74f680ff2b9afd | b9d6c4070002da6d0a24f4231e1b276cfd99959f | /wrapper/include/tensorflow/core/status.h | 67bc930d754205ac617b51a6cdb1e7912c33357d | [
"Apache-2.0"
] | permissive | andyshrk/Tengine | 08b65ba9867676aef93329e1d78f11ab779f0141 | 91958eaab6d4e251c6da65f40a7e412d8298525a | refs/heads/master | 2020-07-15T08:28:12.861903 | 2019-07-24T09:17:01 | 2019-07-24T09:17:01 | 205,521,698 | 1 | 1 | Apache-2.0 | 2019-08-31T09:07:08 | 2019-08-31T09:07:08 | null | UTF-8 | C++ | false | false | 1,705 | h | status.h | /*
* 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 ma... |
2c62553cd5f3174152244636323903aa71ce600a | f8e7acf343289f9bd24bb72fc815f59a90cd4a7c | /state_pattern/state.cpp | 376153002e743295c297031d9013544f5fcd1449 | [] | no_license | xiaobai2017/DesignPattern | 5e8fd84f6b883fda7b1dff9b8b450d6815ef1998 | 5930aa4404a37811dd3d182c7a23456fa2fbdcfa | refs/heads/master | 2020-04-01T06:40:31.378110 | 2018-12-30T08:16:28 | 2018-12-30T08:16:28 | 152,958,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | state.cpp | #include"state.h"
#include<iostream>
using namespace std;
Context::Context() {
state_ = ConcreteStateA::Instance();
}
Context::~Context() {}
void Context::ChangeState(State* state) {
state_ = state;
}
void Context::request() {
state_->Handle(this);
}
State::~State() {}
ConcreteStateA* ConcreteStateA::sta... |
54a4abbfa4b9a489612391f935ae24863572952f | 55a4fa8f0fe859d9683b5dd826a9b8378a6503df | /item/sk_server/src/uhandler_default.cpp | d3aee0008d1c9659382963eb8439f3bf2ab7aa88 | [] | no_license | rongc5/test | 399536df25d3d3e71cac8552e573f6e2447de631 | acb4f9254ecf647b8f36743899ae38a901b01aa6 | refs/heads/master | 2023-06-26T05:38:37.147507 | 2023-06-15T03:33:08 | 2023-06-15T03:33:08 | 33,905,442 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | cpp | uhandler_default.cpp | #include "uhandler_default.h"
#include "proc_data.h"
void uhandler_default::perform(http_req_head_para * req_head, std::string * recv_body, http_res_head_para * res_head, std::string * send_body)
{
if (!req_head || !recv_body || !send_body || !res_head)
return;
proc_data* p_data = proc_data::instance(... |
bfc792fff3dfc9d443b5f764c86b492386d01a7d | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/cpp-restsdk/generated/model/ComDayCqMailerDefaultMailServiceProperties.h | 709d0ef55fcfdef83ca4e00444ddf18f2527248f | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | C++ | false | false | 4,464 | h | ComDayCqMailerDefaultMailServiceProperties.h | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT.... |
7738dae0bcdd035d4da09fab9cb43ddf5f0c188f | bfc139bb91b1c505cf4f8843d97d41dc04c675ae | /1325 整除的尾数.cpp | 2dc536b3b1d7ba1f14382bdb0a133d21c36cebef | [] | no_license | superYe7/ZCMU-OJ | 66683a0beaa065736be0590d4defaf91f2259911 | 2c8a1730eb5e7ecaf239f0bef084663d98ac3785 | refs/heads/master | 2020-03-27T23:20:58.707579 | 2018-09-04T08:20:22 | 2018-09-04T08:22:07 | 147,311,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | 1325 整除的尾数.cpp | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{
if (a==0&&b==0) break;
int str[100];int k,j=0;
for (int i=0;i<100;i++)
{
int m=a*100+i;
if (m%b==0)
{
str[j]=i;j++;
}
}
for (k=0;k<j;k++)
{
if (str[k]<10) printf("0%d%c",s... |
0e5ebf0d21666a2828aaf2c8b9a09870c6597767 | 9c7c38e1d7ceafa78896e32616d88b31716d388e | /src/Game/Ship.cpp | 2b2f934585f70b5931fe5d2b7ea17e4e50deb240 | [] | no_license | Canadadry/Asteroid | 329994826045420cc075cda6b48e1679e6f84ad7 | a6686247bf36ad88fe63daa184f5fdea044d17a7 | refs/heads/master | 2020-06-01T09:26:44.828832 | 2013-12-14T10:56:26 | 2013-12-14T10:56:26 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,997 | cpp | Ship.cpp | /*
* Ship.cpp
*
* Asteroid - Copyright (c) 12 fŽvr. 2013 - Jerome Mourey
*
* This software is provided 'as-is', without any express or
* implied warranty. In no event will the authors be held
* liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this softwa... |
880f256aef51e4871db194452096d4a6d9cb8e94 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/chrome/browser/ui/views/page_info/accuracy_tip_bubble_view_browsertest.cc | 60058acc66b700a0e8ce596f83aa13f1944cc50d | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 20,829 | cc | accuracy_tip_bubble_view_browsertest.cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/test/metrics/histogram_tes... |
edc408ecd1ca7dcac0818dd279dca753660745b4 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_10488.cpp | 0949f65fccb44391a836b684ee279ed135d99c85 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | cpp | Kitware_CMake_repos_basic_block_block_10488.cpp | (uncompressed_size == (uint64_t)ARCHIVE_LITERAL_LL(-1))
bits_checked += 64 |
e8a6a6b05aa72a90257580efe0b8ffb3faf48d0b | 40be08bbfed4bd6a951c18cc4bc0bf1f00e7e8a6 | /test/modulemanager/TestCheckpoint.cpp | 393cfbea5462cfce0c08f5dbfa64070697c813a7 | [
"BSD-3-Clause"
] | permissive | pulsar-chem/Pulsar-Core | 5bf4239c0a0de74d3f12a1c8b9bea2867fd8960c | f8e64e04fdb01947708f098e833600c459c2ff0e | refs/heads/master | 2021-01-18T06:51:05.905464 | 2017-06-04T02:31:44 | 2017-06-04T02:31:44 | 46,251,809 | 0 | 2 | null | 2017-05-25T14:59:51 | 2015-11-16T04:21:59 | C++ | UTF-8 | C++ | false | false | 2,180 | cpp | TestCheckpoint.cpp | #include <pulsar/testing/CppTester.hpp>
#include <pulsar/modulemanager/Checkpoint.hpp>
#include <pulsar/modulemanager/checkpoint_backends/BDBCheckpointIO.hpp>
#include <pulsar/modulebase/TestModule.hpp>
#include <pulsar/system/Atom.hpp>
using namespace std;
using namespace pulsar;
Atom H=create_atom({0.0,0.0,0.0},1)... |
0e85b93e3dbf63956b37ce0711dd43cfa6782441 | 0ec10036e2acb41ca23194ca23ece577a657c47d | /binary-search-tree/maximum-binary-tree.cpp | 8a5c4fd649399b0d9486bc260794367061ea7927 | [] | no_license | Sneh1999/LeetCode--Competitive-Programming | f1f8f252553e3f1682128b56c06e8ac32bfe4926 | cd9f44d79c8f7f87139f789e2dd39b14bdade67f | refs/heads/master | 2022-11-09T21:29:27.942182 | 2020-06-28T23:04:13 | 2020-06-28T23:04:13 | 140,437,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | cpp | maximum-binary-tree.cpp | /*
654. Maximum Binary Tree
Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:
The root is the maximum number in the array.
The left subtree is the maximum tree constructed from left part subarray divided by the maximum number.
The right subtree is the maximum tree c... |
7b3cb9c58f5a4560e2a6a8088f32b664f7b24b1d | db8dfd7ef00432842d187335ca6598341edc1922 | /kandinsky/test/rect.cpp | 755fce7958dd2633ff2fc93f64a89a94f51a22dd | [] | no_license | EmilieNumworks/epsilon | a60746285ede5a603916e5dc9361a689926f0fbd | bb3baa7466f39f32b285f2d14b6dc1f28e22e7a5 | refs/heads/master | 2023-01-28T20:49:55.903580 | 2022-09-02T13:15:05 | 2022-09-02T13:15:05 | 102,631,554 | 1 | 0 | null | 2017-09-06T16:20:48 | 2017-09-06T16:20:48 | null | UTF-8 | C++ | false | false | 1,662 | cpp | rect.cpp | #include <quiz.h>
#include <kandinsky/rect.h>
#include <assert.h>
QUIZ_CASE(kandinsky_rect_intersect) {
KDRect a(-5,-5, 10, 10);
KDRect b(0, 0, 10, 10);
quiz_assert(a.intersects(b));
quiz_assert(b.intersects(a));
KDRect c = a.intersectedWith(b);
KDRect result(0, 0, 5, 5);
quiz_assert(c == result);
c = ... |
8dea95361d73070ac28eb7310d86391786bc0000 | c301c81f7560125e130a9eb67f5231b3d08a9d67 | /lc/lc/2021_target/techiedelight/backtracking/three_partition.cpp | 9a5e109410257411b1e975a0c199931b1267110d | [] | no_license | vikashkumarjha/missionpeace | f55f593b52754c9681e6c32d46337e5e4b2d5f8b | 7d5db52486c55b48fe761e0616d550439584f199 | refs/heads/master | 2021-07-11T07:34:08.789819 | 2021-07-06T04:25:18 | 2021-07-06T04:25:18 | 241,745,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,248 | cpp | three_partition.cpp | #include <iostream>
#include <numeric>
using namespace std;
// Helper function for solving 3 partition problem.
// It returns true if there exist three subsets with a given sum
bool subsetSum(int S[], int n, int a, int b, int c)
{
// return true if the subset is found
if (a == 0 && b == 0 && c == 0) {
... |
62da30d8af33321e4a985e8ebb6244147b697ea2 | e2a61dd27d06135b8fa39ba522383fefef38a3d7 | /include/CountrySolution.h | 5f346940417079470586de59a2423fb5edd8f86b | [] | no_license | SAGNA01/ImperialistComptetiveAlgorithm- | 8f9175abb6041885424d5648a34f8f8872b21af2 | 23c6ff25ce521681ec27f3ad19219244f078ed5b | refs/heads/main | 2023-02-08T18:39:40.690842 | 2021-01-06T01:32:48 | 2021-01-06T01:32:48 | 314,642,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | h | CountrySolution.h | #ifndef COUNTRYSOLUTION_H
#define COUNTRYSOLUTION_H
#include <cmath>
#include"Problem.h"
#include<vector>
#include <ctime>
class CountrySolution
{
public:
CountrySolution(const Problem& pbm);
CountrySolution(const CountrySolution& sol);
virtual ~CountrySolution();
const Problem& pbm... |
74c3baf4a2afda6e9b75d72cec78f75bb07da067 | 6358f1b0b4f97f448ca5d8a5c00e99bc0bd85d70 | /EmojicodeCompiler/Types/Type.cpp | ccb918957f1f666a76d55eae40eaca02db932b3d | [
"LicenseRef-scancode-warranty-disclaimer",
"Artistic-2.0"
] | permissive | darkmastermindz/emojicode | 1aaadd9bc262e326c5e9e67dba961f03bb0da68f | 12f8b06bf8b58548f854bcbec655b437c50a1dd7 | refs/heads/master | 2021-07-05T11:14:14.493895 | 2017-09-26T15:01:13 | 2017-09-26T15:01:13 | 105,840,024 | 1 | 0 | null | 2017-10-05T02:08:18 | 2017-10-05T02:08:18 | null | UTF-8 | C++ | false | false | 23,930 | cpp | Type.cpp | //
// Type.c
// Emojicode
//
// Created by Theo Weidmann on 04.03.15.
// Copyright (c) 2015 Theo Weidmann. All rights reserved.
//
#include "Type.hpp"
#include "../EmojicodeCompiler.hpp"
#include "../Functions/Function.hpp"
#include "Class.hpp"
#include "CommonTypeFinder.hpp"
#include "Enum.hpp"
#include "Protocol... |
eb020bae8b5152dac84aa55f04c14005ba03781a | 8bd162170a6e0411ba5c6722f7e9671e4ec23a39 | /include/Wisp.h | bc730e3b13813376c6ea4272cf78a1367eff7f3d | [] | no_license | Muzamba/RenialaAlternativo | 43a17152b04731107f3451933afe21c6c1a40c8b | 969bc0b4eecf910ee719598c1540e793babe7824 | refs/heads/master | 2020-06-14T20:49:29.467470 | 2019-07-15T14:49:31 | 2019-07-15T14:49:31 | 195,121,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | Wisp.h | #ifndef WISP_H
#define WISP_H
#include "Component.h"
#include "Player.h"
#include "Geometric.h"
#include <memory>
class Wisp : public Component {
public:
Wisp(GameObject& associated, std::weak_ptr<GameObject> player, bool fase2 = false);
void Update(float dt) override;
void Render() override;
bool I... |
a608d505c364c76a88401575bf261389264f5daa | a22aca3b49dd00162bd38c387e12e9c13b4b8eb0 | /arena2d-sim/level/WandererBipedal.hpp | f576043b5937cf8067e629fee3b9d185432fa6a5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Sirupli/arena2D | b2289331aa583802971c46ffd602ccf34d035185 | 2214754fe8e9358fa8065be5187d73104949dc4f | refs/heads/master | 2023-01-05T19:38:51.073509 | 2020-10-26T15:49:24 | 2020-10-26T15:49:24 | 295,663,771 | 0 | 0 | MIT | 2020-10-26T15:50:02 | 2020-09-15T08:29:25 | C++ | UTF-8 | C++ | false | false | 623 | hpp | WandererBipedal.hpp | #ifndef WANDERERBIPEDAL_H
#define WANDERERBIPEDAL_H
#include "Wanderer.hpp"
#define HUMAN_LEG_SIZE 0.09f
#define HUMAN_LEG_DISTANCE 0.04f
/* human wanderer represented by two circles (legs)
*/
class WandererBipedal : public Wanderer{
public:
/* constructor */
WandererBipedal(b2World * w,const b2Vec2 & position... |
cf5a781f426851b1607937d269bd9fa286b1cf2f | 3cdeb3766bc5fd42f7802cc8b11652f2702409e1 | /DP/LCS/recursion.cpp | bfa227cbeb46dfba63a0b8eb92a26fbd22b5866c | [] | no_license | abhishek0777/CPCodes | a24167b782baa946bca0a70e4d91322bfec76dad | dcfe863de899d90fa982464104fbeaa94b0bc4db | refs/heads/master | 2023-06-02T02:29:13.439508 | 2021-06-18T08:21:07 | 2021-06-18T08:21:07 | 298,038,665 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | recursion.cpp | #include<bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define pii pair<ll,ll>
#define ios_base::sync_with_stdio(NULL);cin.tie(false);
using namespace std;
ll lcs(string s1,string s2,ll m,ll n)
{
if(m==0||n==0)return 0;
if(s1[m-1]==s2[n-1])return (1+lcs(s1,s2,m-1,n-1));
... |
b2a690ec2aebb4dcb4dc763e631860606d6c0b61 | 117eb2e15359eebd133052d7370edfce356abaf1 | /Normal Skyrim/plugin_example/plugin_example/RawDataHandler.h | b3db27d11b96d6008648a6d2ad9241681fb7d868 | [] | no_license | akl-game-lab/exergaming-mod-skyrim | 04530ee9ac1711f8a87b86e0d00db35fd08ae02e | e8c0871239f467e76e2ebb1a27084fc140927e0f | refs/heads/master | 2021-01-17T03:06:55.930405 | 2019-11-22T12:15:30 | 2019-11-22T12:15:30 | 55,924,945 | 3 | 3 | null | 2017-11-09T21:58:46 | 2016-04-10T22:04:50 | C++ | UTF-8 | C++ | false | false | 518 | h | RawDataHandler.h | #include "JSONHandler.h"
#ifndef __RAWDATAHANDLER_H_INCLUDED__
#define __RAWDATAHANDLER_H_INCLUDED__
#ifdef COMPILE_MYLIBRARY
#define MYLIBRARY_EXPORT __declspec(dllexport)
#else
#define MYLIBRARY_EXPORT __declspec(dllimport)
#endif
class MYLIBRARY_EXPORT RawDataHandler : public JSONHandler
{
public:
RawDat... |
029d3a9e33159c403153b7b1dbd5d8989034f861 | 508efd553572f28ebeb93bac77d913b514094256 | /csacademy/odd_divisors.cpp | e31df12bcb388e135fa23b8d55c9142026177327 | [] | no_license | pimukthee/competitive-prog | 4eaa917c27ddd02c8e4ff56502fa53eb7f884011 | 0a40e9fe8b229ce3534ad6e6e316e0b94c028847 | refs/heads/master | 2021-05-23T05:59:02.243040 | 2018-06-08T08:54:03 | 2018-06-08T08:54:03 | 94,750,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | odd_divisors.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
stack <int> st;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d", &k);
if (st.empty() || ((st.top() & 1) != (k & 1))) st.push(k);
}
printf("%d", n - st.size());
return 0;
}
|
673dc269b195f58d6c69d06d6590a1c3b3b1452c | a46296e5a9aa2131dbca8faa1d1fa35109a6ea3f | /iOS_Developer/DevelopGuide_iOS/DevelopGuide_iOS/dwvlt_v3.0_0522/M3Core_iOS4/source/MPFDrawer/GraphicFormatParser/EMF/EnhEMR/Header/XdwGraphicFormatEMFEnhEMRSetDIBRecord.h | e8efc0201cd52e7ecd92e52b15301366e3ad1ee6 | [] | no_license | fourglod/iOSDevelopment | df0ae061c2dc5480cdaed9a4e04acd13b1a85815 | 9362143a0a423232a5c6cac787b84840cd2564b3 | refs/heads/master | 2021-06-14T09:24:28.627123 | 2017-01-11T03:10:10 | 2017-01-11T03:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,573 | h | XdwGraphicFormatEMFEnhEMRSetDIBRecord.h | /**
* @file XdwGraphicFormatEMFEnhEMRSetDIBRecord.h
* @brief XdwGraphicFormat::EMF::EnhEMR::SetDIBRecordクラスの定義
*
* @author DPC DS&S STD T31G Tomohiro Yamada <Tomohiro.Yamada@fujiexreox.co.jp>
* @date 2002-3-28
* @version 1.0
* $Id: XdwGraphicFormatEMFEnhEMRSetDIBRecord.h,v 1.4 2009/12/22 08:11:38 chikyu Exp $
... |
c15f795f62a5ff9af0f083bbe16b7614d69ab0e2 | 7e5be101928eb7ea43bc1a335d3475536f8a5bb2 | /2015 Training/Summer Training/Competitive Contest Last/I.cpp | a2bbe727f07358176e4c0b958d096d6c6b0fc785 | [] | no_license | TaoSama/ICPC-Code-Library | f94d4df0786a8a1c175da02de0a3033f9bd103ec | ec80ec66a94a5ea1d560c54fe08be0ecfcfc025e | refs/heads/master | 2020-04-04T06:19:21.023777 | 2018-11-05T18:22:32 | 2018-11-05T18:22:32 | 54,618,194 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,576 | cpp | I.cpp | //
// Created by TaoSama on 2015-09-12
// Copyright (c) 2015 TaoSama. All rights reserved.
//
//#pragma comment(linker, "/STACK:1024000000,1024000000")
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
... |
59ae17a392b1aa7d61e335fd1bb9809d3c7f6927 | 8686f343ded56bbf6458d15e410739de58317c60 | /src/source/IVS_SDK_WINDOWS/IVS_SDK/IVS_SDK/service/UserDataMgr/UserDataMgr.cpp | 3ba4ecb5419133cb780fa65828e5a1274ab597a8 | [
"Apache-2.0"
] | permissive | Noel1992/eSDK_VCN_API_Windows_CPP | 0ad5543bc8f16635a650a0305557f751f78a2ed1 | ce457ab6e40fd0c007d362d0aa94b223d9f4a442 | refs/heads/master | 2020-05-02T02:31:35.720156 | 2016-11-17T12:04:40 | 2016-11-17T12:04:40 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 24,893 | cpp | UserDataMgr.cpp | /*Copyright 2015 Huawei Technologies Co., Ltd. All rights reserved.
eSDK is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... |
c9d81d96d0afeee9ed1d929562a6e04d6e34b3c8 | 782e04174af86acf8ba9838e00846611e2893dbf | /Engine/Code/Engine/Math/EulerAngles.hpp | 46d3f91f0c0415e714c6bdb2988282d0c6cbff10 | [] | no_license | DylanSByrd/Defiance | 343e96fb5a91f197bbb6427da2ee3bd2bca1885a | 3d239dd637e5fc6dd02e60e760f82b0fca9f9564 | refs/heads/master | 2021-04-30T23:32:26.666295 | 2017-01-23T07:25:39 | 2017-01-23T07:25:39 | 79,777,947 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 429 | hpp | EulerAngles.hpp | #pragma once
//-----------------------------------------------------------------------------------------------
class EulerAngles
{
public:
EulerAngles() {}
EulerAngles(float inRoll, float inPitch, float inYaw);
static const EulerAngles ZERO;
float roll;
float pitch;
float yaw;
};
inline EulerA... |
691ffacfaaf34c52c3c6a2ac08f348a33189062d | 448ae129ff28b0e4688fbf105d40681f9aa896d5 | /2DWalking/src/graphics/paints/sprite.h | 8c51b6df3c27d233ada5d6514a9c7e9892893ccd | [] | no_license | ISahoneI/2DWalking | 00ef06711946f837de3a897bfa9187f5723a9884 | bbdd5a3d11becfd26d806a056b6950e25db310c0 | refs/heads/master | 2021-06-24T06:23:53.274731 | 2020-10-25T23:46:49 | 2020-10-25T23:46:49 | 138,442,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,241 | h | sprite.h | #pragma once
#include "../rendering/renderer.h"
#include "../paints/texture.h"
#include "../paints/colormanager.h"
#include "../../utilities/mathmanager.h"
enum class SpriteLevel {
BACKGROUND = -1,
LEVEL0 = 0,
LEVEL1 = 1,
LEVEL2 = 2,
LEVEL3 = 3,
LEVEL4 = 4,
FOREGROUND = 5
};
class Sprite
{
protected:
bool i... |
ad535d84ff8f0f20927adb27cfb8418083fa216c | d533d23de41af23b3b16761f2e1183c319c8d3bf | /file.cc | c5f1a6e56ad16f074c3da110e537b7d796cd28a3 | [] | no_license | alpha-netzilla/file-management | 200cbd2617c32bb39334588f12803801457e313e | a8b1d931a0efba5a523907daa3abe27551a5cf5e | refs/heads/master | 2021-01-01T06:45:38.877473 | 2015-05-21T15:51:55 | 2015-05-21T15:51:55 | 35,260,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cc | file.cc | #include "file.h"
#include <fstream>
#include <assert.h>
using namespace std;
File::File( const char* filename ) :
mFilename( filename ),
mData( 0 ),
mSize( 0 ) {
}
File::~File() {
if ( mData ) {
delete[]( mData );
}
mSize = 0;
}
bool File::isReady() const {
return ( mData != 0 );
}
int File::getSize()... |
4f9d145b7299644104929caeb587098140344373 | 51b6e15c2df62c6dec776c734b7296d798863e3f | /src/Game.hpp | 0d94298c5895ea1e7058780e0c147ab0ae65b277 | [] | no_license | stanisz13/muchKills | 650ac2c4614e7b972b4c2673680a07b63002c2ce | 80294735b0a51ae5034bbcdfc9c62ea5fd297c70 | refs/heads/master | 2020-03-23T16:54:58.010486 | 2018-07-22T17:57:05 | 2018-07-22T17:57:05 | 141,833,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149 | hpp | Game.hpp | #pragma once
#include <SFML/Graphics.hpp>
namespace Game
{
void init();
void update(float deltaTime);
void draw();
void deinit();
}
|
4a0647cd02b2930b9a8cdd783b1a8a6b9a50d774 | 906741afd445767ff4f3a01fb6b1c874856cddfc | /work/src/CGRA350/grass_bundle.h | 7182dcf5724ecbd1ff7a9c24c6bf27eaacf860e2 | [] | no_license | HenryLee0314/SwayingGrass | 203b7ae57efc8eec5e9cbab3802b8f72d088f506 | dd7bc254b78361f3c3e3643e72f68249843371aa | refs/heads/master | 2023-06-09T11:40:08.370458 | 2021-07-02T04:38:27 | 2021-07-02T04:38:27 | 308,500,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | grass_bundle.h | #ifndef grass_bundle_h
#define grass_bundle_h
#include "grass.h"
#include "object.h"
namespace CGRA350 {
class GrassBundle : public Object
{
public:
static GrassBundle* getInstance();
virtual void update();
virtual void render();
private:
GrassBundle(Object* parent = nullptr);
virtual ~GrassBundle();
GrassB... |
be2e39a8c2bd609519516441a4f6524d96c2d262 | f31558c867590e22bab50ec661d105c282ee1146 | /src/ResourceNotLoaded.cpp | dd65c37f7c5bd311060e95d3d72e5c8691302f71 | [
"MIT"
] | permissive | EleDe01/Arkanoid-Returns | 56b23ffaa13f273977de0b97a5a8d52e504effeb | 478ae8df92f978dce95fd227a9047e83dea9a855 | refs/heads/master | 2022-05-09T08:42:38.462501 | 2019-08-25T17:51:30 | 2019-08-25T17:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | ResourceNotLoaded.cpp | #include "ResourceNotLoaded.hpp"
ResourceNotLoaded::ResourceNotLoaded(const std::string& urlResource) :
Exception("Error Este recurso no se cargo correctamente " + urlResource) {
} |
9ed23e8c4f90de4941b140cbc08971e56c9f5d96 | 4d36e47f8f02ce5b7135f866803b2f3ea7c4891d | /controller/strategies/trafficobjectreplacedstrategy.cpp | c0d73487493524791093c978ae37d329ff1610b4 | [] | no_license | bshkola/StreetSimulator | bb426c999e223aed40ab6595763106fdbabdc87b | 1c0afbf0dc5fb83c9a9bc309f49ebc2152c648f4 | refs/heads/master | 2016-09-16T09:47:11.755240 | 2015-01-25T23:03:49 | 2015-01-25T23:03:49 | 25,729,779 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 735 | cpp | trafficobjectreplacedstrategy.cpp | //Author: Bogdan Shkola
//Implementation of TrafficObjectReplacedStrategy class
#include "../../controller/strategies/trafficobjectreplacedstrategy.h"
#include "../../common/events/trafficobjectreplacedevent.h"
TrafficObjectReplacedStrategy::TrafficObjectReplacedStrategy(std::shared_ptr<IModel> model, IView* view) : m... |
9fbd5f17444d3696e2e808f094db8caefe6b0d1e | 3d8a2a2b9c2e79fc4f73df4714cae79d8dbcc9d9 | /Source/UnRealTutorial/FinishedLine.cpp | a49a75f15a69a1547fcccded04d57b172ee5941c | [] | no_license | youssefmyh/unreal | f9da3f9a9d1258eb02f971717f2aaf8f8d41ea51 | 44dd86447557776075214bcb852cd2c86d6fce1f | refs/heads/master | 2022-12-25T14:05:25.750997 | 2020-10-04T15:23:02 | 2020-10-04T15:23:02 | 284,723,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | cpp | FinishedLine.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "FinishedLine.h"
// Sets default values
AFinishedLine::AFinishedLine()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick ... |
14f43c53b8a229a500b844ea99dd166f343726e5 | 07fe1adc36bbf8ad101cd73cb4f7919e6705d9ae | /Assignment 5/Point.h | 000bcb5b3f28351a6ab54ecaa844f0e9f9922516 | [] | no_license | we2ohs/Assignment-5 | b1cf28a7277f94ebda7e4db8d0b0dd4ec93b810d | 2b0bc93b37436ade6f08bfc0c7bcc788c9583070 | refs/heads/master | 2020-09-20T12:12:44.064902 | 2019-11-29T20:02:56 | 2019-11-29T20:02:56 | 224,472,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | Point.h | // Assignment 5
// Student Name : Ahmed Ali
// Student ID : 40102454
// Student Name : Nikolaos Chaskis
// Student ID : 40092571
// Point.h
#ifndef POINT_H
#define POINT_H
#include "Shape.h"
class Point:public Shape
{
private:
double x_coor;
double y_coor;
public:
//Construc... |
43c64720cbcea2fa63d90623094e7a29a53a2564 | da1500e0d3040497614d5327d2461a22e934b4d8 | /net/third_party/quic/platform/api/quic_endian.h | dd2081df824e5bf0e86b07947130a85a7c05afa0 | [
"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 | 1,704 | h | quic_endian.h | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_ENDIAN_H_
#define NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_ENDIAN_H_
#include "net/third_party/quic/platform... |
9f4942be82bd2502c58b7d7da7dc3f127c08a3f7 | 35d6d1029feff7dd6b757b93baa89ca75aa7c5d9 | /UVA/Data Structure/484 - The Department of Redundancy Department.cpp | 5a6003b8114f05100e81e45ae69a940d7c0e66a8 | [] | no_license | SbrTa/Online-Judge | 3709f496ebfb23155270c4ba37ada202dae0aef4 | b190d27d19140faef58218a611bf38ab7e2398d3 | refs/heads/master | 2021-04-28T08:12:48.785378 | 2019-01-15T14:27:24 | 2019-01-15T14:27:24 | 122,243,679 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | 484 - The Department of Redundancy Department.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
map<long,long>mp;
long i,a,s[10000],n=0;
while(cin>>a)
{
if(!mp[a])
s[n++]=a;
mp[a]++;
}
for(i=0;i<n;i++)
cout<<s[i]<<" "<<mp[s[i]]<<endl;
return 0;
}
|
e57cdbd499c329a0998369156821c1055c968120 | efd52e8891954623b48e1f197bb3bbfc8a23207d | /examples/console/bezier_test/bezier_test.cpp | ac7f9a9e5d5a50d5f370ccea5bb17185e45ca249 | [
"LicenseRef-scancode-boost-original",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JamesCrook/agg21 | 1231bfdd9bbfa82e5e8e2e5cbda5bc2dc6dd1c01 | 7f911df81b18bfdb11ebe93adbaaa291f1c9e1f1 | refs/heads/master | 2021-01-01T03:34:11.396030 | 2016-05-19T17:18:36 | 2016-05-19T17:18:36 | 59,225,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,653 | cpp | bezier_test.cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "agg_rendering_buffer.h"
#include "agg_curves.h"
#include "agg_conv_stroke.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_p.h"
#include "agg_renderer_scanline.h"
#include "agg_pixfmt_rgb24.h"
void write_bmp_24(const char* filename, ... |
7920d7edf367bee4df29ae3a4bc65f20784b7ffc | 50f170d3eac1b7b0a94671096213592e4fed6956 | /Orango-Tango/intpreguntas.cpp | 195f9e8ffb2b2949b6bb4adb42610c5869f7a28e | [] | no_license | Nicortiz72/OrangoTango_MarketApp | 48ee358a85f44f7ba8b77e965cc35fd4184cb34f | 453cdb6ba5f33f90e0d1ba428e29fd5ec55fe9fe | refs/heads/main | 2023-07-06T05:44:09.576309 | 2021-08-15T23:36:54 | 2021-08-15T23:36:54 | 396,534,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | intpreguntas.cpp | #include "intpreguntas.h"
#include "ui_intpreguntas.h"
#include <mainwindow.h>
#include <cbasedatos.h>
#include <QMessageBox>
Intpreguntas::Intpreguntas(QWidget *parent) :
QWidget(parent),
ui(new Ui::Intpreguntas)
{
ui->setupUi(this);
CBaseDatos BD;
QVector <CPregunta> preguntas=BD.ge... |
af6f9f053a26277fa671ff4c0f12ddfa0ffa7400 | a366815640d5577dd5d7286d8fa375d2df5a5e34 | /src/ArpaReader.cc | 1493ae5fcc71d57738fc66c8382448e524f07fc2 | [
"BSD-3-Clause"
] | permissive | vsiivola/variKN | 04b6da3972e969768ee29328791ecdd741d93daf | 3e9afd38a40c6f2547a362e9c885a2716a54834f | refs/heads/master | 2023-02-04T18:43:36.575696 | 2023-02-01T17:47:59 | 2023-02-01T17:47:59 | 4,142,885 | 40 | 15 | NOASSERTION | 2023-01-30T07:22:55 | 2012-04-26T00:45:00 | C++ | UTF-8 | C++ | false | false | 4,940 | cc | ArpaReader.cc | // Routines for reading arpa format files to the internal prefix tree
// format.
#include "ArpaReader.hh"
#include "def.hh"
#include "str.hh"
#include <stdlib.h>
void ArpaReader::read_error() {
fprintf(stderr, "ArpaReader::read(): error on line %d\n", m_lineno);
exit(1);
}
void ArpaReader::read_header(FILE *file,... |
cb599041503eab0c47f2d5139c4eed1a1e649bfa | 43ae1d4dbb622fe109979759dc162c56b26a04ad | /pkuOJ/pku_复试_is it a tree.cpp | 87103565f68006d12105d482dff8385b17938f45 | [] | no_license | lalaland1921/OnlineJudge | a06475c3ef57ec962ce117e5b4087f5df2f79d52 | f55f94c333f18a044588088b8a001108f3d8f7bc | refs/heads/master | 2021-01-16T06:51:26.314738 | 2020-02-25T23:59:19 | 2020-02-25T23:59:19 | 243,014,834 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,506 | cpp | pku_复试_is it a tree.cpp | #include <stdio.h>
#include <queue>
using namespace std;
int main()
{
int c=1,n1,n2;
while(scanf("%d %d",&n1,&n2)&&n1!=-1&&n2!=-1)//若是-1-1则说明结束
{
if(n1==0&&n2==0)//若是0 0则输出是一棵树
{
printf("Case %d is a tree.\n",c++);
continue;
}
int exist[10001]={0},vis[10001]={0},edge[10001][10001],isroot[10001]={0},m... |
8c39daeb8443f7ee9649e9ab31120c1885a7d543 | 0e4feea7a102604abbc2912a9beb073d769722db | /thinking_in_c-plus-plus/virtual/instrument.cpp | df8da526ab6bfe2503e18ee636c03cefcae3ac44 | [] | no_license | ganghelloworld/C_plus_plus | 9df140d17b7289719da39d03b43f5965867cd691 | 74f5a42156f6fa04d287c3a7047babd84939e222 | refs/heads/master | 2016-09-06T07:20:50.942686 | 2012-06-04T08:48:39 | 2012-06-04T08:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | instrument.cpp | #include <iostream>
using namespace std;
enum note {middle_c, c_sharp, c_flat};
class Instrument
{
int a;
public:
virtual void play(note n) const = 0;
};
void Instrument::play(note n) const
{
cout << "Instrument::play()" << endl;
}
class Wind : public Instrument
{
public:
void play(note n) const
{
cout << "Win... |
4f6d642448bb87f37cad322e262e32f32f2ae095 | 1a23603407a82f8c16dfd25b1be8573fa9d1e5f0 | /room.cpp | 72adbc40ed02889294fb440685c837f399a75b57 | [] | no_license | accountexpired/greed | 288df1977380d542427ce64d74ac15f5004a3676 | 96eae3bafe9e3a66a2802dcf282c1d8a8bbb1fd7 | refs/heads/master | 2021-06-01T09:06:57.005497 | 2016-08-14T15:34:55 | 2016-08-14T15:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,738 | cpp | room.cpp | #include <iostream>
#include <map>
#include <memory>
#include <vector>
#include <ncurses.h>
#include "creature.h"
#include "room.h"
Room::~Room()
{
}
Room* Room::perform_action(const std::string& kbd_input, bool& valid_input)
{
if (actions.find(kbd_input) != actions.end())
{
valid_input = true;
... |
76873874ba6f730a3f961402baf9f5945a92cf0f | dfd413672b1736044ae6ca2e288a69bf9de3cfda | /webkit/tools/test_shell/test_shell_webthemeengine.h | 03d1127957b27464930c625001609696e5a5e2d2 | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-capsicum | fb71128ba218fec097265908c2f41086cdb99892 | b03da8e897f897c6ad2cda03ceda217b760fd528 | HEAD | 2017-10-03T02:40:24.085668 | 2010-02-01T15:24:05 | 2010-02-01T15:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,540 | h | test_shell_webthemeengine.h | // Copyright (c) 2009 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.
// TestShellWebTheme::Engine implements the WebThemeEngine
// API used by the Windows version of Chromium to render native form
// controls like check... |
15ed7e46ded06b0b193ad3e58fb7b5ae2c46df68 | 159aed4755e47623d0aa7b652e178296be5c9604 | /src/swganh_core/messages/controllers/starting_location.h | 4abe79f29143466e6a0d6bff3bc9148f148053d6 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | C++ | false | false | 2,350 | h | starting_location.h | // This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#pragma once
#include <cstdint>
#include <string>
#include "swganh/byte_buffer.h"
#include "swganh_core/messages/obj_controller_message.h"
namespace swganh
{
namespace messages
{
namespace c... |
b9c3515453c956a96883227a15c6491d18c97beb | 47a16a6fd9e3daf9208fcaee046bdaf716f760eb | /code/265.cpp | d8512d73b0240f298c1fb59cdecaac5835c99fbd | [
"MIT"
] | permissive | Nightwish-cn/my_leetcode | ba9bf05487b60ac1d1277fb4bf1741da4556f87a | 40f206e346f3f734fb28f52b9cde0e0041436973 | refs/heads/master | 2022-11-29T03:32:54.069824 | 2020-08-08T14:46:47 | 2020-08-08T14:46:47 | 287,178,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,453 | cpp | 265.cpp | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNod... |
ffd793faedd67400435251a8524b98568b11837d | c6534626f28a020a25593ae274d8a49e1bfcdc7a | /mod/killbonus/main.command.h | d2353f765a33cb6f9fdd494847777242def2460d | [
"MIT"
] | permissive | MeetinaXD/bdlauncher-mods | de28267cf8db11ae0aa9bec7e99e0ab3ee56f94a | b8ba6e9c5aea50f37dc623757ae2864457eb9633 | refs/heads/master | 2021-01-03T19:21:57.995224 | 2020-02-14T12:32:29 | 2020-02-14T12:32:29 | 240,206,972 | 0 | 0 | MIT | 2020-02-13T08:02:57 | 2020-02-13T08:02:56 | null | UTF-8 | C++ | false | false | 667 | h | main.command.h | #include "../command/command.h"
#include "../command/parameter.h"
using namespace BDL::CustomCommand;
command_register_function register_commands();
enum class KillbonusMode { Reload, Debug };
class CommandKillbonus : public CustomCommandContext {
public:
inline static alias_list aliases = {"kbonus"};
static c... |
9732c19bba7b3a910f88977f1ba07416764841f3 | a73aee531940a43be46a51b6ec868b2de3879470 | /EntityComponentSystem/ComponentPool.h | 0a3f1f18dfb50e8ac2f12c96de160395af1a444c | [] | no_license | 93214015/CppObjects | d6436b008edd50dc0d6213604e7dc08812890265 | 4325fdecf47f5738fc8648dc353c2c10d1d5e810 | refs/heads/master | 2023-06-25T07:04:28.194987 | 2021-07-29T07:34:11 | 2021-07-29T07:34:11 | 384,327,262 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | h | ComponentPool.h | #pragma once
namespace ECS
{
class ComponentPool final
{
public:
ComponentPool(size_t _ComponentSize);
//Copy Contructors are deleted
ComponentPool(const ComponentPool&) = delete;
ComponentPool& operator=(const ComponentPool&) = delete;
//Move Constructor
ComponentPool(ComponentPool&& _ComponentPool)... |
b58dd08a884efbf9eaa085379eeb67b7c43fec7c | 3687ee904728af0aa012c2eba0442c3c22ff33b1 | /src/Recorder.cpp | 0444eac46529c6d96c1e01a4fb063016dddde586 | [] | no_license | lucasjliu/omtt | f93f9e2d1de1254819a7080f8165d97b40c80149 | 2045ff80a23ba2afa89be1d6cbcc24cd341e2441 | refs/heads/master | 2020-07-02T11:49:27.967803 | 2017-02-13T00:52:40 | 2017-02-13T00:52:40 | 74,307,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,897 | cpp | Recorder.cpp | /*
* by Jiahuan.Liu
* 05/01/2016
* @SCUT
*/
#include "Recorder.h"
XmlHandler::XmlHandler()
:_doc()
{
}
void XmlHandler::initialize(const char* fname)
{
TiXmlDeclaration* decl = new TiXmlDeclaration("1.0", "", "");
_doc.LinkEndChild(decl);
_video = new TiXmlElement("Video");
_doc.LinkEndChild(_video);
_video->Se... |
82e8c8c902e1d767a00831b065ef3f88c302a5a6 | eba11468cc01a8ae1d51c222473f9a66e11e22c7 | /exception.h | 12390efb2f3f66867bca4c18fa8574e782a456b1 | [] | no_license | bakwc/lamp | 3a69d3c91a7eb1394cc0170c887500ec50c39c9e | 2a32935817b6b868855dfee6367aadbee19fd47b | refs/heads/master | 2021-01-19T12:36:38.375028 | 2014-01-14T18:36:03 | 2014-01-14T18:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | h | exception.h | #pragma once
#include <string>
#include <exception>
struct BaseException: public std::string, public std::exception
{
BaseException(const std::string &error)
: std::string(error)
{
}
const char *what() const throw()
{
return this->data();
}
};
|
0e55500f83c5026bc225bebb5791e6277705655f | e2bd18a0b6a1d92755573befb52553f90c21d177 | /cores/arduino/Tone.cpp | f28b03471a6e6ac1b296b6dc5e4aa38be42d6108 | [
"BSD-3-Clause"
] | permissive | stm32duino/Arduino_Core_STM8 | 2b86bf16943a0ae4f984df79e8a8d7890feae5bf | cc4d30f28145a4778dfe228856e6ea48b00390b5 | refs/heads/main | 2023-09-02T11:14:06.407352 | 2023-03-31T07:08:07 | 2023-03-31T07:08:07 | 124,064,982 | 143 | 52 | BSD-3-Clause | 2021-12-08T09:57:52 | 2018-03-06T10:56:31 | C | UTF-8 | C++ | false | false | 1,248 | cpp | Tone.cpp | /* Tone.cpp
A Tone Generator Library
Written by Brett Hagman
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later vers... |
7505ea6c5aaceffc8796a447cc2b29f492f06693 | 99bb7246a5577376694968cc320e34b4b8db1693 | /CommonLibF4/src/RE/Bethesda/Calendar.cpp | 8ef6514e13f5bf0c467c1ff003446b03063f5f65 | [
"MIT"
] | permissive | Ryan-rsm-McKenzie/CommonLibF4 | 0d8f3baa4e3c18708e6427959f1d4f88bcf3d691 | cdd932ad1f4e37f33c28ea7d7e429428f5be43dd | refs/heads/master | 2023-07-26T23:24:09.615310 | 2023-07-16T22:53:24 | 2023-07-16T22:53:24 | 194,604,556 | 50 | 21 | MIT | 2023-07-20T22:20:02 | 2019-07-01T05:20:18 | C++ | UTF-8 | C++ | false | false | 237 | cpp | Calendar.cpp | #include "RE/Bethesda/Calendar.h"
#include "RE/Bethesda/TESForms.h"
namespace RE
{
float Calendar::GetHoursPassed() const noexcept
{
const auto days = gameDaysPassed ? gameDaysPassed->GetValue() : 1.0F;
return days * 24.0F;
}
}
|
cfb5dfa72c8fe429febee5f39bc5868e3757ea7e | 96f8fb7fb764026ede7e927d8b4768b8b6f44abb | /01_Code/11_win32/Day12/WinMap/WinMap.cpp | 07a9046bd7198b3d6c76ac1fc2f4ea03afc483a5 | [] | no_license | isongbo/MyCode | a513beaa8f43bc751aab5217314615c728ba771e | eb2330b1dbae9032ba5ad8ccd65b68375219e451 | refs/heads/master | 2021-01-10T09:48:53.587674 | 2016-01-15T10:21:04 | 2016-01-15T10:21:04 | 49,700,737 | 2 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,155 | cpp | WinMap.cpp | #include "stdafx.h"
#include "windows.h"
#include "stdio.h"
int main(int argc, char* argv[])
{
// HANDLE hFile = CreateFile( "c:/map.dat",
// GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ,
// NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
HANDLE hMap = CreateFileMapping( NULL, NULL,
PAGE_READWRITE, 0, 1024*1... |
2825cf09f266173ab40f49043064ad226aaa1af5 | 426cb04fa92ab2c2fbaeff02847693050866e793 | /src/visualizer_node.cpp | c46c51f4fd992438a151e01193017aa1e5a44eed | [
"BSD-2-Clause"
] | permissive | MIT-SPARK/pose_graph_tools | 7b37afd32b2f9bb29269c8fd0e5aecbbf3185825 | 6012c1320cdf27aeaeee373d23f47bb3f53dd33e | refs/heads/master | 2023-03-11T16:10:24.593895 | 2023-03-07T16:12:03 | 2023-03-07T16:12:03 | 212,649,638 | 21 | 10 | BSD-2-Clause | 2023-03-07T16:12:06 | 2019-10-03T18:25:02 | C++ | UTF-8 | C++ | false | false | 240 | cpp | visualizer_node.cpp | #include <pose_graph_tools/visualizer.h>
#include <ros/ros.h>
#include <ros/console.h>
int main(int argc, char *argv[]) {
// Initiallize visualizer
ros::init(argc, argv, "visualizer");
ros::NodeHandle nh("~");
Visualizer viz(nh);
} |
645fd55b6c11d4e2242ad3929cac9168c48ec408 | c646fe6627440c2653a6ff056d6f0089059c5af0 | /Client/src/EncoderDecoder.cpp | a62f119233beab0d0da7f9c87dcdaac0e121bb16 | [] | no_license | AsafStern/CoursesRegistrationSystem | a99ad917bcf7c5e819757ab3d1dc6ca4bf5a5bc5 | 10a26b59cd7fb2a5006ccb4f2d2356cce767bd49 | refs/heads/master | 2023-06-09T12:06:02.091546 | 2021-07-07T11:14:47 | 2021-07-07T11:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,752 | cpp | EncoderDecoder.cpp | //
// Created by spl211 on 07/01/2021.
//
#include <EncoderDecoder.h>
#include <sstream>
#include <iterator>
#include <iostream>
// int len
// vector<char> bytes
std::string EncoderDecoder::decodeLine(std::string &line) {
return std::string(line.begin(), line.end()-1);
}
std::string EncoderDecoder::encode(std::... |
70ca05578e6d4c1ae80ee031fff0615643016e1d | 1187ddfec6c09e1799d2557c1e0c69954c57b187 | /B2/Cours/Unix/Dossier3/main.cpp | 3465cf54e36e571143a74ebd78df5912fa40dc26 | [] | no_license | PartageHEPL/Cours | c6714e2d81ba6bbaa70858bc16d4840de9511aaf | e4aeb746ca42bc390737f8e835999901d7d52524 | refs/heads/master | 2020-12-30T00:42:15.878339 | 2020-02-17T13:43:29 | 2020-02-17T13:43:29 | 238,799,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | main.cpp | #include "MainListeEtudiants2019.h"
#include <QApplication>
#include <QTextCodec>
#include <stdio.h>
int main(int argc, char *argv[])
{
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForNam... |
30da06e08283399b5416ada7c7cf015bc72b9076 | 55060eb7ad93f401c079c768d79d752e468309f4 | /main.cpp | ab250dcc71220d5021c2c533855f26f216034db9 | [
"MIT"
] | permissive | VNGLR/Tic-Tac-Toe | a16b910fc5e17c4ee60cb2957ab2e3c736611f73 | f740a317a6ec92a9977bad93465a25e47ffc7245 | refs/heads/master | 2020-03-27T14:14:40.542414 | 2018-08-29T20:02:57 | 2018-08-29T20:02:57 | 146,651,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,613 | cpp | main.cpp | /******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*********... |
cb11d6cb756e5f8ce6edd065c4d443fbfa43a2da | 5abfdfe1b17a1f42009693d57b8354274dcbbfbe | /Controller/anomalia.h | c4bd23d168469c3b060491279c1474d7878460f0 | [] | no_license | gomitolof/CarsCrew | b310a3d6468d1678af32ca130b65105a73906cdc | 49673dbdb995eea03b0c572244f5a8bad34d5c67 | refs/heads/master | 2021-03-27T22:56:45.727229 | 2020-03-16T21:29:55 | 2020-03-16T21:29:55 | 247,815,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | h | anomalia.h | #ifndef ANOMALIA_H
#define ANOMALIA_H
class Anomalia
{
private:
char err;
public:
Anomalia(char x='d');
char getError() const;
};
#endif // ANOMALIA_H
|
86fb1b044cdc03f3f3b0c13f5dec96ef6e7fed80 | a2b2e7496e604d6921dc8400120501bc9435ba16 | /src/pelmeni/graphics/Frame.hpp | 89a60b0f3774dea2372ec6aa9984d09ab133df7c | [] | no_license | tomvidm/Pelmeni2D | aae4f18dbaf54361ae139ef8c14c50bbdcd4c257 | 1366459c471cdbf52cf5f044d2a0369c0436ad2d | refs/heads/master | 2021-03-30T22:53:45.084594 | 2018-07-13T13:45:21 | 2018-07-13T13:45:21 | 124,583,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | hpp | Frame.hpp | #pragma once
#include "SFML/System/Time.hpp"
#include "SFML/Graphics/Rect.hpp"
namespace p2d { namespace graphics {
struct Frame {
Frame(const sf::Time& t, const sf::Rect<float>& rect)
: duration(t), frameRect(rect) {;}
Frame(const sf::Time& t,
const float x,
c... |
b3b7569fc66013a45b31d957ba48eddeaaee6789 | 760813dcae563bc8cb071b571c61ea1786118359 | /fastIA-master/test/features/sample_test.cpp | 940d9b35cbf3970a44fa1da9bdc86b4941141f06 | [
"Apache-2.0"
] | permissive | sharmaashish/emory-cci-fast-ia-gsoc | 9fa085e37177d0eafc79d5be21f924dba37d4804 | 5e8af0ba1d422d577b8125eecc8e7de9ac148fb6 | refs/heads/master | 2021-01-10T04:19:55.824176 | 2013-10-19T15:06:22 | 2013-10-19T15:06:22 | 53,596,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cpp | sample_test.cpp | #define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test1 )
{
BOOST_CHECK(2 == 2);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.