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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd1de0872d9fee957a3baf5dec71727907d7de8d | 37daba6ba2620d5bbb734abf67a0e517e67a4397 | /src/coders/Coder.cpp | a60658135f918ee668655c1791c6575f4aeab71d | [] | no_license | BioinformaticsArchive/libCSAM | 4b8be64eb09d55705aebf98d5bc898cb8efaa36f | 7ec68901af614a7fd1faadd38df56aec270b284f | refs/heads/master | 2020-02-26T13:40:57.780866 | 2014-03-14T05:18:09 | 2014-03-14T05:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,338 | cpp | Coder.cpp | /********************************************************************************
Copyright (c) 2013, Rodrigo Canovas
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code ... |
f81320f65dae8ce19fe1f9103bf106436663fd7e | 52f99af1827c20916c723c05834d6669a317f479 | /src/Game.cpp | 777820b4e1f1ffdabd236a58e662fa1436063b85 | [] | no_license | Ptelka/Minesweeper | 2edfce4f5a407ff17e40bec8e49c821658ee5b31 | 21e2feb3dd382a5cad51f7d15c8eecebe01ea776 | refs/heads/master | 2020-12-31T22:02:33.344410 | 2020-02-08T12:55:55 | 2020-02-09T00:45:41 | 239,044,347 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,056 | cpp | Game.cpp | #include "Game.h"
#include "view/Print.h"
#include "view/Input.h"
namespace symbols {
Symbol plain(" ", view::Color::WHITE);
Symbol revealed("_", view::Color::WHITE);
Symbol mine("*", view::Color::RED);
Symbol marked("#", view::Color::BLUE);
const char* playing = "( ̄_ ̄) . . .";
const char* won = "\\( ̄V ̄)/ ";
c... |
c0f887eb52f2d964f4401923e3565195616f3c6d | ca15c332cb597be0a032df48edc115ed3d59c5ee | /core/infra/config/iroha_config.hpp | 6e5d3d8670940ce7b4ac59cc1028ea8e4b8cda65 | [
"Apache-2.0"
] | permissive | ServerProcessor/iroha | 8bc3063624412d82bf1dfdbb783d6e86a2b8eef8 | a9d94252d4b09b361c51f95bc99e74d3d05758bc | refs/heads/master | 2021-01-11T15:20:27.229275 | 2017-01-26T18:44:47 | 2017-01-26T18:44:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,538 | hpp | iroha_config.hpp | /*
Copyright Soramitsu Co., Ltd. 2016 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 applicable law or agre... |
d2567321a1591e66c37522165a8e10b9e136a037 | 6bfab3a4a9525525fd28f45b591da24b63dbe9b0 | /Tutorial_17/Sound.cpp | 05781701187c9f93925475800b6c4e852d1ffe9d | [] | no_license | mrOsamaIsmail/Learn-Computer-Graphics | 4efb70bf00ac63f25a75a167db8c9aa300630449 | b09f56955ae963ea201af0111494cfb0058f53dd | refs/heads/master | 2022-05-13T04:29:57.744015 | 2020-04-18T20:59:30 | 2020-04-18T20:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | Sound.cpp | #include "Sound.h"
#include <iostream>
// sound lib
#include <bass.h>
bool Sound::audio_device = false;
Sound::Sound(const char * filename)
{
// init
if(!audio_device)
{
if(!BASS_Init(-1, 44100, 0, NULL,NULL))
{
printf("erorr loading sound file \n");
}
audio_device = true;
}
channel = BASS_StreamCr... |
66e2056f5313a2f8a076b209e35e72cac056d400 | acc2398d760bff65d44bf9174f5f9b122c00a1d6 | /Easy/Infix_to_Postfix.cpp | 95f5b1bd47cc9695fe09ea771751f93e9ffa3fcd | [] | no_license | bishtk435/Geeksforgeeks-Solutions | 2ae3c295ee175193d411602c8afb9bd7a2c4b83b | 3d3de8b68f91c6c1d920a29fc7366666a2c53d9e | refs/heads/master | 2020-03-21T20:47:02.745113 | 2018-07-27T12:52:15 | 2018-07-27T12:52:15 | 139,027,836 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,937 | cpp | Infix_to_Postfix.cpp | #include<iostream>
#include<cstring>
using namespace std;
class Stack
{
public:
int stack[30];
int top;
void push(char a)
{
stack[++top]=a;
}
void pop()
{
if(stack[top]!='('&&stack[top]!=')')
cout<<(char)stack[top];
... |
86365699136e36df9f19284e7b2c7d6807df3391 | b8876fcc0956c36552546ba2ac8aa52d24b21db9 | /Radiolocation/Include/GaussianNoiseLinChirp.inl | e74d0576dbcc6f7c2e64b7d92912907f86a2a548 | [
"MIT"
] | permissive | bgin/MissileSimulation | 90b43748746f2750ca6137c0186c90a4d873ad49 | 90adcbf1c049daafb939f3fe9f9dfe792f26d5df | refs/heads/master | 2020-04-06T06:00:50.942167 | 2019-11-05T13:41:40 | 2019-11-05T13:41:40 | 47,642,968 | 28 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | inl | GaussianNoiseLinChirp.inl |
/* Copyright (c) 2015, Bernard Gingold. License: MIT License (http://www.opensource.org/licenses/mit-license.php)
Linear Chirp with Additive White Gaussian Noise class - inline functions implementation.
@aulthor: Bernard Gingold
@version: 1.0 26/10/2015
*/
__forceinline std::function<double(double)> radi... |
4131cb029023ee68d5ab63d96066f945ee10333d | 16e130599e881b7c1782ae822f3c52d88eac5892 | /leetcode/findPeakElement/main.cpp | 558cb63d75b9e9cfcd4d8e295dd2e974f3267832 | [] | no_license | knightzf/review | 9b40221a908d8197a3288ba3774651aa31aef338 | 8c716b13b5bfba7eafc218f29e4f240700ae3707 | refs/heads/master | 2023-04-27T04:43:36.840289 | 2023-04-22T22:15:26 | 2023-04-22T22:15:26 | 10,069,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 956 | cpp | main.cpp | #include <vector>
#include <iostream>
#include <algorithm>
#include <set>
#include <sstream>
#include <cmath>
#include <queue>
#include <map>
#include <string>
#include <cstdlib>
#include <cctype>
#include <stdexcept>
#include <climits>
#include <utility>
#include <bitset>
#include <stack>
#include <uno... |
2bec7197c7f585ece447e79633192a92d6beff78 | 09eaf2b22ad39d284eea42bad4756a39b34da8a2 | /ojs/csacademy/round-12/A/A.cpp | 957f5a3b599b3ca8e38573e14428a3beb2a8cfc9 | [] | no_license | victorsenam/treinos | 186b70c44b7e06c7c07a86cb6849636210c9fc61 | 72a920ce803a738e25b6fc87efa32b20415de5f5 | refs/heads/master | 2021-01-24T05:58:48.713217 | 2018-10-14T13:51:29 | 2018-10-14T13:51:29 | 41,270,007 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef int64_t ll;
#define DEBUG(...) {fprintf(stderr, __VA_ARGS__);}
const int N = 1e3+7;
ll a, b;
int sie[N];
int main () {
scanf("%lld %lld", &a, &b);
for (ll i = 1; i < N; i++)
for (ll j = i; j < N; j += i)
sie[j]++;
in... |
6c064b1b5e8888dd217833e8e36ed72843ad9ce1 | 0dbdf1fc2b207072da5887466f5da1a258722506 | /Laboratoriniai/S1 laborai/L5/L5/Leidinys.cpp | 0d349ffcd5b4941051d0bdd9e0919c8c580c161b | [] | no_license | petkus09/KTU-Cplusplus | ff483c256c2a244fb04a75662e5023da634ce09b | 2a5b24d800a107c95d69285b1bcfedacfe82c3b3 | refs/heads/master | 2016-09-06T15:12:44.945986 | 2013-08-20T19:07:30 | 2013-08-20T19:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21 | cpp | Leidinys.cpp | #include "Leidinys.h" |
3d42da317d084b9eb05ecc660bfa9086d0893341 | 56407fb3afb8da5ae45ebdf880d27094d11dd9bf | /src/howto_gles20sl11/gx_font_32.cpp | b67e2f154e844efe549229e19efee4f4153e3877 | [] | no_license | andreytata/exp58 | 3756bc9ab3415e9e70483d766b8777ee04ff30bf | 0865fc818c4e5e2660f4737b7c51f3db82d9f110 | refs/heads/master | 2018-08-27T21:32:48.063414 | 2018-06-03T03:49:06 | 2018-06-03T03:49:06 | 64,300,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190,321 | cpp | gx_font_32.cpp | /** static const char *gx_font_none[] = {
"32 32 5 1 ", "g c #00ff00 ", " c none ", "r c #ff0000 ", "b c #0000ff ", "x c #000000 ",
" x",
" g gx",
" b g x",
" r g x",
" g g x",
" b... |
1e700eff9488e51fc2c1e1ef740a91ff4a65d1de | dede3be5536dccd5bb7153036085db470463480a | /Qt-50-QItemDelegate_delegates_in_a_QTableview/dialog.cpp | 908929109ebfff56fba13cf6801b605fc23d0b37 | [] | no_license | DoozyX/QtProgrammingTutorial | ce1ec17f34f6fe5c5ac992dce16b5dd6100d72fd | 05da065f0d3ef6aa502c57afb18710ebed0c24c4 | refs/heads/master | 2021-09-03T23:26:12.850142 | 2018-01-02T15:44:57 | 2018-01-02T15:44:57 | 111,606,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | dialog.cpp | #include "dialog.h"
#include "ui_dialog.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
model = new QStandardItemModel(4, 4, this);
delegate = new Delegate(this);
for(int i = 0; i < 4; ++i) {
for(int j = 0; j < 4; ++j) {
QModelI... |
3c924a93cd9cf1c01a455687fbce94a515c0901b | 27e310f9c5de60648aa979c43fa144b92743257a | /items/treasure.cpp | 1a6759570d32dba1c18286750c60cc0b336f0b88 | [] | no_license | jlovelock/DungeonGen | bf11beaad1a4e9e4d6a3ab22ad577d303d021207 | 22ff67d191f8918fdffb2f2e4416a931ebb2f8cf | refs/heads/master | 2021-01-10T09:50:35.002190 | 2016-04-01T18:51:08 | 2016-04-01T18:51:08 | 50,541,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,447 | cpp | treasure.cpp |
#include <iostream>
#include <string>
#include <defines.h>
#include <cstdlib>
#include <vector>
#include <treasure.h>
using namespace std;
Treasure::Treasure(string _ttype, int num, int gp) : Object() {
_type = _ttype;
identified = false;
quantity = num;
_value = gp;
}
Treasure::Treasure(Treasure* t... |
898cb7a05da99f49ef85fce21b601ed303e0e981 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /libPr3/Roster/rostergroup.cpp | 5bf7b5e930b7d79ceefc14008f2b80590a6cba9b | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,232 | cpp | rostergroup.cpp | #include "rostergroup.h"
#include "roster.h"
#include "rosterentry.h"
//RosterGroup::RosterGroup(QObject *parent) :
// RosterObject(parent)
//{
//}
/**
* A RosterGroup object contains information about groupings of entries within
* the {@link jmri.jmrit.roster.Roster}.
*
* This object allows groups to be manipula... |
0d618c140774d667c06deb31deada15310eea523 | bca5bfe5c60f8f33950439d7c09864efa3dddfd5 | /myaccountscreen.cpp | 7b83590c52d61a1ef5a3382035f60368936e11b8 | [] | no_license | AlexTheTRex/PerfectPlan | f0035eda0d1b4c3f5c2b4e5adaa1f214122257d4 | 4ede9aa1619ab617ec055f787fda518a15989541 | refs/heads/master | 2021-09-21T00:21:34.091540 | 2017-11-02T18:53:38 | 2017-11-02T18:53:38 | 109,305,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,094 | cpp | myaccountscreen.cpp |
#include "myaccountscreen.h"
#include <QFont>
#include <string>
#include <iostream>
#include <QHeaderView>
#include <QFileDialog>
#include <QDir>
#include <QPainter>
#include <QBitmap>
#include "parameters.h"
#include "mycalendarscreen.h"
#include "mychangepasswordscreen.h"
MyAccountScreen::MyAccountScreen(Nurse* use... |
b7cc751e5c9c8fb5d83f8bc3771782563b2e92d0 | b01b59c39843b58c79a10b95dc676732b9aed55b | /headers/path.h | da532a6d80f6629faf5028a00bb91675a424d436 | [] | no_license | Taegos/shapes | 5b98115babb52ac69a2db3542144a8f6dd3cfd2b | 08005b077a9f4cdc46ad0ca680f8ff857d91ff12 | refs/heads/master | 2020-07-25T08:49:03.220466 | 2019-09-13T09:42:10 | 2019-09-13T09:42:10 | 208,235,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | h | path.h | #pragma once
#include "intersectable.h"
namespace intersectables {
class Path: public Intersectable {
public:
Path(const std::vector<Vec2>&, bool = false);
Path(const std::vector<Vec2>&&, bool = false);
bool visit(const Intersectable &, IntersectionData &) const override;
bool isIntersectingWith(const Cir... |
0319d77684bf3766376a7e0d3be6e4729a4ed4d8 | 2dbbf98d4238155b800d3aeab9ec4463198d0ac2 | /include/CameraManager.hpp | bad39530e7b5be087ec81690b440700f2798a4cb | [] | no_license | asdor/learnopengl | bb49c1db14c3594f2148852d3deaf463edfae352 | 1a209981476b17ca7d4547704d2a5cc03e9e58a2 | refs/heads/main | 2023-07-03T13:49:15.475067 | 2021-08-09T00:41:49 | 2021-08-09T00:41:49 | 382,466,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | hpp | CameraManager.hpp | #ifndef __CAMERA_MANAGER_HPP__
#define __CAMERA_MANAGER_HPP__
#include <glm/glm.hpp>
#include <GLFW/glfw3.h>
namespace utils
{
class Camera
{
public:
Camera(const glm::vec3& i_pos, const glm::vec3& i_front, const glm::vec3& i_up);
void processMouseInput(double i_xPos, double i_yPos);
void processScrollIn... |
c606823f10bc32a072e06eaca9a0af9cf3edfaba | a62c90044ddbe6facf263c2e7ecb3bc1d4c393b0 | /x5mgcBase/NetWork/CEventRefreshVideoCharInfoToClient/CEventRefreshVideoCharInfoToClient.cpp | 44aed0e9fe835bdb44a9557b19714725a33d2cfa | [] | no_license | shuyabin/x5mgc | 794a1874da915f7a11e7f6cf1b8af3ab2e9ab232 | 6b36bc06ed9fd3416368bfa1163f64877a2e4199 | refs/heads/master | 2023-01-27T19:44:34.538871 | 2020-12-11T06:43:53 | 2020-12-11T06:43:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | CEventRefreshVideoCharInfoToClient.cpp | #include "CEventRefreshVideoCharInfoToClient.h"
CEventRefreshVideoCharInfoToClient::CEventRefreshVideoCharInfoToClient():ProtoBufSerializable(this)
{
registerField("info", typeid(VideoCharInfo).name(), Descriptor::Compound, 1);
}
CEventRefreshVideoCharInfoToClient::~CEventRefreshVideoCharInfoToClient()
{
}
void * ... |
c85f9cf8ba2660af3a40100c6a37282a508b0876 | 4391699efef76701ccce52eec1b6f51a9230e0d3 | /Problem52_PermutedMultiples.cpp | cfc70b5eaac7fa8045abef8ba464d8cb3fbb1682 | [] | no_license | ViKoWW/Project-Euler- | 586b529967512e2d11966eab4b8f7fbcd6b89a61 | db442f4c8637e460586eb55ee29b56face33e643 | refs/heads/main | 2023-07-27T11:18:19.621956 | 2021-09-11T19:27:42 | 2021-09-11T19:27:42 | 402,467,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | cpp | Problem52_PermutedMultiples.cpp | // Permuted multiples.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
//gets a vector of the digits in a number, sorted in ascending order.
std::vector<int> getDigits(int number_)
... |
de18be9657027d1e89a5c8be28916ecb3bf24535 | ab9a22af433f35a9a85d07665e82fa36ce85efe3 | /无人驾驶contracts/mychainlib/identity.hpp | 74a88ab77ce5bc5d6397ad6f674e95f050799575 | [] | no_license | linqd1/driveless | a32d7743a292df6a1016eacf288779465e34eef0 | 22ab1d42723699927740470ae8be43048382b8ed | refs/heads/master | 2023-01-29T11:48:24.720415 | 2019-09-15T10:46:18 | 2019-09-15T10:46:18 | 208,528,438 | 0 | 0 | null | 2023-01-04T10:28:23 | 2019-09-15T01:57:42 | Rust | UTF-8 | C++ | false | false | 2,289 | hpp | identity.hpp |
#pragma once
#include <utility>
#include "serialize.hpp"
#include "tools.h"
namespace mychain {
class Identity {
public:
Identity() : data_(kConstIdLength) {}
Identity(const char* id_hex) {
data_ = Hex2Bin(std::string(id_hex));
MyAssert(data_.size() == kConstIdLength, "invalid hex format I... |
7e7ccc6b80b90338f47ad1aade3ab8ecbf694887 | 6918216062e869d028654772c7fb8ca86e8a818e | /Pole.cpp | 92965c7cbdb2eb2849b0220342337304fe0958c6 | [] | no_license | necky0/statki | 1faecfebb3fd1d7e7f1025276cac1a730282dacf | 3544d7a72ee88e3d37c82a1c895d7b9de9d89a8a | refs/heads/master | 2020-03-20T03:26:24.939006 | 2018-06-13T01:26:49 | 2018-06-13T01:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222 | cpp | Pole.cpp | #include "Pole.h"
Pole::Pole() {
}
Pole::Pole(int x_pozycja, int y_pozycja) {
this->x_pozycja = x_pozycja;
this->y_pozycja = y_pozycja;
this->czy_nalezy_do_statku = false;
this->czy_odkryte = false;
}
|
438d5e6a6b649ff5399cbd90480b190ea5327c30 | b5b56ce3eb1dfe324eafbda3e0e5f338c5dd72e2 | /Shared/src/LangTypes.cpp | 0080aa768082a2a3353c28a9fdd3ccacdca20a37 | [] | no_license | wayfinder/Wayfinder-Server | 5cb91281b33cea6d8f6d74550b6564a71c4be1d7 | a688546589f246ee12a8a167a568a9c4c4ef8151 | refs/heads/master | 2021-01-22T22:39:08.348787 | 2012-03-31T11:34:42 | 2012-03-31T11:34:42 | 727,490 | 8 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 24,385 | cpp | LangTypes.cpp | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... |
7ee88de0108f6b6092f617f0b317c7fb59189c14 | 8fc6a4a22bbc32b6fd02ce03bbefd465c14e5234 | /Snake/SnakeBoard.h | c7e2fd8bbb9fecb6c077e38d23590282d82ef3b4 | [] | no_license | Nuhoisen/Snake | d4925145a3f19ce7a4e33ad7694eb5cc1db03da2 | e043fedcbf7cc7a158b276a8baf70faa952851fc | refs/heads/master | 2021-06-09T04:14:09.759194 | 2016-12-18T10:34:21 | 2016-12-18T10:34:21 | 61,008,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | h | SnakeBoard.h | #ifndef SNAKE_BOARD_H
#define SNAKE_BOARD_H
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System/Vector2.hpp>
#include <list>
#include <thread>
#include <Windows.h>
#include <iostream>
using std::cin;
using std::cout;
using std::list;
enum DIRECTIONS
{
UP,
DOWN,
RIGHT... |
e51e4de7d342efbca5ab38943645a1382e1af081 | 4fa71f4bf8e24db6d03928a5b3be4c88c849b1b8 | /environment/core/Environment.cpp | a08d770c0879ef4fe2965bcc282ed684ef70d4ef | [
"MIT"
] | permissive | hilkoc/AI_Arena | 4e3712968cebe0388c34f94acba14055254b8ddd | 592be09062a4cf02f2b153e3c2e5afc7ca15d084 | refs/heads/master | 2021-01-21T08:29:46.891755 | 2017-10-31T23:19:38 | 2017-10-31T23:19:38 | 91,630,559 | 36 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | Environment.cpp | #include "Environment.hpp"
Environment::~Environment() {
this->disconnect_agents();
}
/** Initializes a session for multiple episodes. Connects all agents. */
void Environment::connect_agents(std::vector<Agent*>& agents){
this->agents = agents;
this->state = &this->factory.cre... |
bc87fb0f4c523a4652aea672cd7c7e13fd1dff87 | 39f4f105568fb57d0896961afc08188a3a37f5be | /RayTracing/RayTracing/main.cpp | 294c24ae26fa7afd4b47ee422fbdf34c6586c53e | [] | no_license | Chewnonobelix/RayTracing | 6b38ee0224d0139cde6e8bdbed0fad97980661cc | ba45beceda3fa0b47d3058e2637fe268bc530bfa | refs/heads/master | 2020-07-09T17:14:35.572383 | 2019-09-01T20:57:06 | 2019-09-01T20:57:06 | 204,030,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | main.cpp | #include <QtCore/QCoreApplication>
#include "Scene.h"
#include "XmlLoader.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
XmlLoader xml;
auto scene = xml.load(".\\scene.xml");
scene.rayTracing();
qDebug() << "End";
scene.save(".\\output.jpg");
return a.exec();
}
|
86462ccc62910cf99a1fd8b538e505efff4e6a3c | bca9096fd6a53986f04ea7ba8152562c2251c071 | /B. Sort the Array.cpp | 6c98cba9d0414f168b419eb1338e7278ccbce245 | [] | no_license | islamshaheb/Codeforce_Problem_Solve | 3615655149c7f4b0aae47c5a05191b29b1963b8f | 7bc816d5d5bccdfd7fd0153e2fdd3939c5cdbf34 | refs/heads/master | 2023-04-01T23:32:00.901318 | 2021-04-04T08:04:02 | 2021-04-04T08:04:02 | 313,900,072 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | B. Sort the Array.cpp | #include<bits/stdc++.h>
using namespace std;
#define fr(m,n)for(int i=m; i<n; i++)
main()
{
int n;
cin>>n;
int a[n+10];
fr(0,n)
{
cin>>a[i];
}
int first=-2,second=-2,sfirst=-2;
bool fst=false,sec=false,sfst=false;
fr(0,n-1)
{
if(a[i]>a[i+1] and !fst)first=i,fst=true;
if(a[i]<a[i+1] and fst and !sec)s... |
1558e724bceeb28beb8789eeb94fc22c1ccbcb0d | 5bda209b647ab140603b26f8ca52bbf7b8b6a63e | /PocketSphinxNet/src/libpocketsphinx/ptm_mgau.cpp | 015476dd5a7ab2dc3abf8f6b79da57b2e5786ffc | [] | no_license | catseattrees/pocketsphinxnet | bb40a4d7bce72626b889ce6ea950ce9899737189 | f689ac970a3194419eb90b6fafd5622117068259 | refs/heads/master | 2020-05-17T14:51:20.446538 | 2012-11-11T08:04:48 | 2012-11-11T08:04:48 | 34,207,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,656 | cpp | ptm_mgau.cpp | /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ====================================================================
* Copyright (c) 1999-2010 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... |
ce0846749f1b2fa3f275c3706f6ab36ad651ad1d | 8d5866c0b2586320988cff9129f9c5cfa8f16510 | /sudoku.cpp | 4ae5f3d58f9b245acaeeaf0e3058e57d47c92d8f | [] | no_license | w3tl/QSudoku | 541348fccb73d0536865f1b3d5c064d84351cc88 | b4e03e9a50e6a5f1808567d7fe57c2dfc531b5b2 | refs/heads/master | 2021-01-02T09:08:36.922877 | 2014-05-28T09:55:45 | 2014-05-28T09:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,003 | cpp | sudoku.cpp | #include "sudoku.h"
Sudoku::Sudoku(Complexity comp)
{
complexity = comp; // запоминаем переданную в конструктор сложность
generate(); // генерация поля
shuffle(); // сортировка поля
hideCells(); // скрываем ячейки в зависимости от сложности
}
void Sudoku::printSelf()
{
std::cout << std::endl;
... |
532d5306ff3ff24c4ba9229abaaa60648fc34c50 | 7cf4c3922285443bda26eb20800aa4670382d0d3 | /field.hpp | d78cab6a04c9dc9884ecb6941355616f72ba468f | [] | no_license | quadami19/test-tic-tac-toe | 1be579b9bb0ef1032d038a616ce31c1a75a7a3b5 | c1296eccde882e303a640c75faaa7035f5152a1a | refs/heads/master | 2023-02-05T00:24:48.333273 | 2020-12-27T15:29:55 | 2020-12-27T15:29:55 | 324,789,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,628 | hpp | field.hpp | #pragma once
#include <iostream>
#include <cassert>
#include "vec2d.hpp"
namespace ttt {
struct Field
{
private:
int m_size;
int m_occup = 0;
char* m_buffer;
char m_emptySymbol = '_';
Field(const Field&) = delete;
public:
Field(int _size, char _emptySymbol)
{
m_size = _size;
m_buffer = ne... |
e33f09490a3a61d22fdc619e66320590e59b96a1 | 99f25e770e1e81a822464c7ba208c0340a95030a | /CrossBeagleBoneEclipseWorkspace/BeagleDaemon/src/LocalCommunicationSocket.hpp | b744f2f15c40eb4faf1baef14400168177265417 | [] | no_license | GruszekG/nanny | 7b0f9d114339b87558821b837c3968988c16d13d | 7d937844eea1b76a6aa6f92c17b62b95fdb116f2 | refs/heads/master | 2022-01-28T19:03:41.874485 | 2022-01-18T22:25:33 | 2022-01-18T22:25:33 | 158,284,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | hpp | LocalCommunicationSocket.hpp | /*
* LocalCommunicationSocket.hpp
*
* Created on: Dec 19, 2021
* Author: gruszek
*/
#ifndef LOCALCOMMUNICATIONSOCKET_HPP_
#define LOCALCOMMUNICATIONSOCKET_HPP_
#include "IFCommunication.hpp"
#include "StandardClientList.hpp"
#include <stdint.h>
#include <list>
class LocalCommunicationSocket: public IF::Co... |
e0fd9ff188d6a9291647898a7deb7d4c268f1738 | 0eecf2645bad7620c49cd1ad9dd06a25d51661a4 | /src/assembler-arm-inl.h | 4d9a46c4a9e437ad9f26e5e12cf410728416b90f | [
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | fiking/v8-early | c41b0c6cd52c865f0873a613b7016573a3a0f8a2 | 70c2c5b25fb54500630ae5279670c08c01decb7a | refs/heads/main | 2023-07-14T09:41:34.137301 | 2021-08-18T15:40:57 | 2021-08-18T15:40:57 | 396,287,890 | 0 | 0 | NOASSERTION | 2021-08-18T15:40:58 | 2021-08-15T09:01:42 | C++ | UTF-8 | C++ | false | false | 5,952 | h | assembler-arm-inl.h | // Copyright 2007-2008 Google Inc. All Rights Reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... |
5d86d0304501e0768dfb886bc8a76a24067536f4 | 125dbbaa852b62df204129cfcdd12c8d05baf1dd | /ColorMapper/ColorMapper/ColorMapperDlg.h | 26857659327af00f1d5060f9fadaa6983ee744fe | [] | no_license | WallaceRao/MFC_OpenCV_Integration | b433bcca28a18d2b2a161064b86eecbbabd68635 | bff79364f67fd2040dec97686826e76e1f847d87 | refs/heads/master | 2021-08-14T08:11:38.324124 | 2017-11-15T03:00:38 | 2017-11-15T03:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | h | ColorMapperDlg.h |
// ColorMapperDlg.h : header file
//
#pragma once
#include "afxwin.h"
// CColorMapperDlg dialog
class CColorMapperDlg : public CDialogEx
{
// Construction
public:
CColorMapperDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_COLORMAPPER_DIA... |
3d3fb064297895578d96537207673b5aacde42c7 | d3bd591fa5cc624fdf8234602a459ca9aeafbd3a | /unittests/stagedKeyStore.cpp | 0cef5cf865db73f37f155c8c51ac8a3dcca90251 | [
"Apache-2.0"
] | permissive | renesugar/libzina | d5a15b9db90cb3206cdcef0c000181d18768db0c | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | refs/heads/master | 2020-03-11T05:43:35.624989 | 2018-03-02T01:12:28 | 2018-03-02T13:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,801 | cpp | stagedKeyStore.cpp | /*
Copyright 2016 Silent Circle, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
6de8f6e973df5a49fc0084fc4a06253fdea70797 | 866911b7853ccf25c5c5fcb8a95da10d74f5ee1e | /Project4/Project4/integer.cpp | 2a88df6431c90ab12559246013fba4b2dab0b706 | [] | no_license | 15285370430-wbt/c | cb65fe5135752f9db5a900f29096cc08759c6bc0 | 1fba1c2a2fb27804e52ed0ba3cd61a690df8d160 | refs/heads/master | 2023-02-01T11:04:19.050057 | 2020-12-16T13:12:25 | 2020-12-16T13:12:25 | 306,868,088 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 234 | cpp | integer.cpp | #include<stdio.h>
void change(int *x, int *y) {
int t=0;
t = *x;
*x =*y;
*y= t;
}
int main() {
int a, b;
printf("请输入两个整数:");
scanf_s("%d %d", &a, &b);
change(&a, &b);
printf("%d %d", a, b);
return 0;
}
|
8fc0626f0c623a944b93f0fd70cca655dc1b408f | ecfddf5af717712ebfb031c97c7a14e02485f1c4 | /src/ast.h | d6b5313c1def49a5bc9dcbf9c6d0775b1502b5e2 | [] | no_license | pthutta/interpreter | 8d3f2c360f7a0ba731ad5c50e92b84b298956150 | 6332bc51c226f5ce9af4ebebd8438b3ed521fb31 | refs/heads/master | 2021-01-17T23:35:29.287087 | 2017-06-27T18:27:07 | 2017-06-27T18:27:07 | 84,228,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,058 | h | ast.h | #pragma once
#include <memory>
#include <vector>
#include <brick-types>
#include "lexer.h"
using brick::types::Union;
template< typename T >
using Ptr = std::shared_ptr< T >;
struct Expression;
struct Identifier
{
Token token;
Identifier() : token(Token::Eof, "", 0) {}
};
using Literal = Union<std::string, int>... |
87f2e9d31d00ad8f2eb1ac19a18f630b1a603254 | 9073726f9e837afcbc64fc0f9442ea5c40f9579d | /c++-src/verilog_reader/MvnVerilogReader.cc | 31ac9e54a598b8c6ac28526d9b2b38322ccc0cbd | [] | no_license | yusuke-matsunaga/ym-mvn | 1fc5db50c0fcd80a2f9b919416ced3f51d7438ab | 10ea39432dbe39eeec3026c5be998b230cd656ef | refs/heads/master | 2023-05-28T03:42:14.324722 | 2023-05-22T04:50:59 | 2023-05-22T04:50:59 | 51,678,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,080 | cc | MvnVerilogReader.cc |
/// @file MvVerilogReader.cc
/// @brief MvVerilogReader の実装クラス
/// @author Yusuke Matsunaga (松永 裕介)
///
/// Copyright (C) 2005-2011, 2014, 2021 Yusuke Matsunaga
/// All rights reserved.
#include "ym/MvnVerilogReader.h"
#include "ReaderImpl.h"
BEGIN_NAMESPACE_YM_MVN
// @brief コンストラクタ
MvnVerilogReader::MvnVerilogRe... |
647fa3f4fab596b7fc786028bdbe3e57c86e4e22 | 02fcd069016faa27e04c4062814d1852ea0f2d35 | /IIA_TP2_v2/IIA_TP2_v2/Interface.h | 7cbbd5c0637945d28f3ce561d2bc28ec00520f84 | [] | no_license | ViGisP/IIA_TP2_AL_2016_17 | 342031b7eaa687a9b691461685edd2ffa76a7f35 | c8427a702599bcc4f0769231ff8a8fc3b0905429 | refs/heads/master | 2021-01-13T16:56:14.642088 | 2017-01-14T01:20:29 | 2017-01-14T01:20:29 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,780 | h | Interface.h |
#pragma once
#ifndef __INTERFACE_H__
#define __INTERFACE_H__
#include <iostream>
#include <iomanip>
#include <sstream>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
#include <io.h>
#include <tchar.h>
#include <fcntl.h>
#include <cmath>
#include <stdio.h>
#include <W... |
f4c10180faf16e7b40bc700f467bbe3575f53e38 | 3eab78aa3e58afd1eeed49f86b2afe50a5c8d696 | /server.cpp | 36077c757fd6657a24c1beb1ca3a2630a466d8c1 | [] | no_license | AquilaXP/join_server | 60895f7d3f67cccf6e7f07cd6e222edd2444d198 | 474fe5dea401dd8f373ce5ef44fbaa59128c0498 | refs/heads/master | 2020-03-10T23:12:25.263255 | 2018-04-25T21:19:41 | 2018-04-25T21:19:41 | 129,636,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | server.cpp | #include "server.h"
#include "bd.h"
#include "handler_connect.h"
server::server( boost::asio::io_service& io_service, const boost::asio::ip::tcp::endpoint& end_point ) : m_service( io_service ),
m_acceptor( io_service, end_point ),
m_socket( io_service )
{
// иницируем создание БД
bd::instance();
... |
abbbc8f37c5b76f5df3feaa3085163f1301aa1a9 | 9657ab9e1ff44fa395a8bcd5ace93558a2ae9b72 | /source/im/src/im_convertbitmap.cpp | 629dcf5cd6e3a8bff8be3c65838e0890f1b0cd51 | [
"MIT"
] | permissive | pottootje1982/singalong | 04c7bb9b5ccdcb51582fea651771da69cc778a5d | a654ce760e8aa9b5aba20fa3e83a66bf88964b7a | refs/heads/master | 2016-09-06T12:41:39.019838 | 2013-07-09T15:45:11 | 2013-07-09T15:45:11 | 34,560,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,701 | cpp | im_convertbitmap.cpp | /** \file
* \brief Image Conversion
*
* See Copyright Notice in im_lib.h
* $Id: im_convertbitmap.cpp,v 1.4 2010/10/25 18:29:07 scuri Exp $
*/
#include "im.h"
#include "im_util.h"
#include "im_complex.h"
#include "im_image.h"
#include "im_convert.h"
#include "im_counter.h"
#include <stdlib.h>
#include <assert.h>
... |
566ca0c963933a9edeecb6fcc0f28898858b3fa1 | 5376fcdff458e85c49299274185b724ae2438b69 | /src/agora_edu_sdk/base/utils/thread/thread_checker.h | aee8a95b0bcd64adac55c80aa0ab4e0b9239a031 | [] | no_license | pengdu/AgoraDualTeacher | aabf9aae7a1a42a1f64ecfeae56fbcf61bed8319 | 4da68749f638a843053a57d199450c798dd3f286 | refs/heads/master | 2023-07-31T14:25:52.797376 | 2021-09-22T09:51:49 | 2021-09-22T09:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | h | thread_checker.h | //
// Agora Media SDK
//
// Created by Zheng, Ender in 2019-05.
// Copyright (c) 2015 Agora IO. All rights reserved.
//
#pragma once
#if defined(NDEBUG)
#define ASSERT_THREAD_IS(id) ((void)0)
#define ASSERT_THREAD_NOT_FROM(id) ((void)0)
#define ASSERT_THREAD_NEVER_FROM(id) ((void)0)
#else
#include <thread>
name... |
9b5cff574048107578976d6d77b1ec8cc79a42b7 | b89a6a122a7b82e4fd0872f1ec935bc45633c9eb | /src/replay_syscall.cc | c76d5ec371c6c5d18bbf10dcad5a9a896c6f89e4 | [
"BSD-2-Clause",
"MIT"
] | permissive | rogerwang/rr | 545f87ed75a00c8bf97ec31df1a826792f3cbd5b | 619b8951d392b46c6f62b2bad7c0861a05d9f32e | refs/heads/master | 2020-04-28T22:17:36.253926 | 2015-02-19T11:38:52 | 2015-02-25T04:49:44 | 31,494,918 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,643 | cc | replay_syscall.cc | /* -*- Mode: C++; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
//#define DEBUGTAG "ProcessSyscallRep"
#include "replay_syscall.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/shm.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#in... |
81974ac19d603f2265306adaa804f937c1e34e18 | b1b574cd02b8c90c3424afa1094beefe33673d92 | /counting occurence of a number in array using hashing.cpp | 25d658febe5b76fc8b531469c1146165eee81834 | [] | no_license | SachinRawat2/Cpp | 9cf55ee6259d02695e26c39be14d14624f04f802 | 4dc38e2df8a6baf545b570fb4f45188d8ca81f42 | refs/heads/main | 2023-06-06T00:49:04.263376 | 2021-07-01T06:55:23 | 2021-07-01T06:55:23 | 347,102,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | counting occurence of a number in array using hashing.cpp | /*
Given an array of N integers. Given Q queries
and in each query given a number X ,
print count of that number in array.
Constraints :
1<=N<=10^5;
1<=a[i]<=10^7;
1<=Q<=10^5;
*/
#include<bits/stdc++.h>
using namespace std;
const int N= 1e7+10;
int hsh[N];
int main()
{
int n,q;
cin>>n;... |
ff03f5f8b736ae7b46ef76849bef9a5146f767c8 | 164cc327b5ae9cf2667b86e7b5d99037c6912d8b | /code/graphs/topological_sort.cpp | 38848f22491f330a609b7a6797020d28552530c8 | [] | no_license | EduardoFernandes1410/library | 6d9777bb6ca19fe8ff33478933d7b277ad00f4f8 | aa94fb213874706110a7a0d4060975ac3cd8a622 | refs/heads/master | 2023-02-23T14:53:23.091054 | 2021-01-24T00:26:03 | 2021-01-24T00:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | topological_sort.cpp | // Topological Sort
//
// Returns a topological ordering of g
// If G is not a DAG returns an empty vector
//
// O(n + m)
vector<int> g[MAX];
vector<int> topo_sort(int n) {
vector<int> ret(n), vis(n);
int it = n-1;
bool dag = true;
function<void(int)> dfs = [&] (int v) {
vis[v] = 1;
for(int u : g[v]) {
i... |
1d6f1772ef211e90613943c43f6443394f410e5d | 9e4c014024f90653c32b1ef4a93e829893aa4176 | /VoxelConeTracing/src/render/Debug.h | 2f24c8371b1ff8ab52d714617c85e90c2a23115d | [] | no_license | lcsszz/Samples | a71ba851f2a5fc75412d76b8b54d6cf1dfcebe48 | 0b54333952c2c502b0bac67465a873ac87a05446 | refs/heads/master | 2021-01-24T21:49:12.006013 | 2014-10-04T18:17:47 | 2014-10-04T18:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | h | Debug.h | #ifndef INC_RENDER_DEBUG_H__
#define INC_RENDER_DEBUG_H__
/**
@file Debug.h
@author t-sakai
@date 2014/09/08 create
*/
#include <lgraphics/api/InputLayoutRef.h>
#include <lgraphics/api/VertexBufferRef.h>
#include <lgraphics/api/IndexBufferRef.h>
#include "render/render.h"
#include <lmath/lmath.h>
namespace render
{
... |
e93c5495fe373ebc44c8529babc493c7bd6846a3 | a588a3d1cbf1ab75a389de7bcc77452c53bd112f | /lb-queued.cc | a75560366af16093decf47bb7f323ca662e7c4f4 | [] | no_license | ademakov/epoll-samples | 3217eb496050c0d0de854a10c889808525b7a188 | 0b56acbabb53b59bee942a90c7f67d27db3d6fe8 | refs/heads/master | 2022-11-25T09:12:31.069723 | 2020-08-03T15:58:02 | 2020-08-03T15:58:02 | 274,718,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cc | lb-queued.cc | #include "ping_pong.h"
#include <signal.h>
int
main(int argc, char **argv)
{
signal(SIGPIPE, SIG_IGN);
queued_ping_pong pp;
pp.run(
[] (address& addr) -> int {
int fd = socket(PF_INET, SOCK_STREAM, 0);
if (fd < 0)
error(1, errno, "socket() failed");
memset(&addr, 0, sizeof addr);
addr.in.sin_fa... |
5c1c01ab69125bd229396d7b92e45efee526c3d9 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_old_hunk_3682.cpp | 3e2c3e44b14fcd6b478cb83cedc15e5f9aa0ac9c | [] | 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 | 715 | cpp | httpd_old_hunk_3682.cpp | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01660)
"A prepared statement could not be found for "
"AuthDBDUserRealmQuery with the key '%s'", conf->realm);
return AUTH_GENERAL_ERROR;
}
if ((ret = apr_dbd_pvselect(dbd->driver, r->pool, dbd->handle... |
3faba47aeacf1bfcf80962d9e11bd11acd0400c5 | 595d4fa04688a1f6d740dfbd24abb52aa19b2648 | /dcc/dcc.cpp | b48546f648b368e025b0d723d6ed0f0f8ce92e5f | [] | no_license | biappi/DCC | 4f9b339d601c0d293ba9438b85fa3179816755cc | c423c127b88210bdf77b4aca0cec8238017eef39 | refs/heads/main | 2023-06-12T12:06:27.006732 | 2021-07-03T19:16:42 | 2021-07-03T19:19:52 | 382,691,705 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,100 | cpp | dcc.cpp | /*****************************************************************************
* dcc decompiler
* Reads the command line switches and then executes each major section in turn
* (C) Cristina Cifuentes
****************************************************************************/
#include "dcc.h"
#includ... |
88a667c4c422f5afd6cb2a8c1c75ece31cd2dfa3 | debc1f82c5bb479eb09c116647036f8ff43058b1 | /AnalyticalFormule.cpp | f0e9acf765766b93cefdcc2b435716b1d8aaa727 | [] | no_license | JiaChangjiang/Object-Ortiented_Monte_Carlo_Control_Variate | 38674898a15ba5b9261c6257a5f9057fe11f1f00 | ad8f27b0f82988430ef1ecc08260c29cc8b56398 | refs/heads/master | 2020-07-07T05:24:15.947373 | 2019-08-20T00:05:12 | 2019-08-20T00:05:12 | 203,263,764 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,244 | cpp | AnalyticalFormule.cpp | //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// AnalyticalFormulae.cpp
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include "AnalyticalFormule.h"
#include "rv_library.h"
#include <cmath>
#include <iostream>
//XXXXXXXXXXXXXXXXXXXXXX... |
3f2d4329911dbbfe5bd6dc1a279127fdc5516d50 | 58de89555c46b1a6ac3c0528cc1e546ee8cfb273 | /Sample/Sample/Code/Scene/Title/Title.cpp | 75245672a42684c96b1f654619ad0239843c5bf0 | [] | no_license | syaraKamura/SmpleProject | 8cbd62e2a7d39765c9adc55512d36739af690016 | 9d36bf562b8209d62988c811f85f2a47f1cb0af2 | refs/heads/master | 2021-01-16T17:58:00.569626 | 2017-10-10T20:13:55 | 2017-10-10T20:13:55 | 100,028,049 | 0 | 0 | null | 2017-10-08T02:01:02 | 2017-08-11T12:13:15 | C++ | SHIFT_JIS | C++ | false | false | 2,523 | cpp | Title.cpp | #include "Common/GameCommon/GameCommon.h"
#include "../Scene.h"
#include "Title.h"
const int CRSOL_MOVE_TIME = 20; //カーソルが移動にかかる時間
const int MOVE_DISTANCE_Y = 40; //移動距離(項目間の距離)
typedef struct{
int cnt;
float posY; //◆の描画Y座標
int distanceY; //Y座標の移動距離
float oldPosY; //前回のY座標
int crsolMoveCnt; //カーソル移動用カウント
... |
8e3636df24d1c596acbfa4c83a5d1ba1f166a8c8 | c8c8bbabee54e6eaa44f52da9e2e8ae4ab52c5d2 | /node/EmiSocket.cc | 0fc64215782b885b8683cb24dca27ff26f939065 | [
"MIT"
] | permissive | ilearain/eminet | 4e35102a3b124aeba2e04e869a4752316b95448f | 7e1910a78a6e3e77f5ccad4278547844e1cd66c4 | refs/heads/master | 2020-04-06T04:34:43.300027 | 2015-12-07T10:08:13 | 2015-12-07T10:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,692 | cc | EmiSocket.cc | #define BUILDING_NODE_EXTENSION
#include "EmiSocket.h"
#include "EmiNodeUtil.h"
#include "EmiConnection.h"
#include <node.h>
#include <stdlib.h>
using namespace v8;
#define EXPAND_SYMS \
EXPAND_SYM(mtu); \
EXPAND_SYM(heartbeatFreque... |
f41e232dd2fb9dc2767fe4d2f531194a966472a7 | e5c753ab5204897919a934c4184e874b39f14530 | /Undergrad/First Year/Programming in C++/OOP 2018/Lab05/main.cpp | c6a5f3bb4804cee76e32696d44face98bf84f91a | [] | no_license | adechan/School | bcb7a50ec0c21c4362495c0e0746ab4a6e79cba8 | 975da492704111a47f50f9f75ccaf2a023f9e8fc | refs/heads/master | 2021-06-09T16:00:21.764181 | 2021-05-11T06:58:07 | 2021-05-11T06:58:07 | 106,673,346 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | main.cpp | #include <iostream>
#include "Forme.h"
#include "Cerc.h"
#include "Dreptunghi.h"
#include "DreptunghiRotit.h"
#include "Forma.h"
#include "Oval.h"
int main()
{
Forme f;
Cerc c;
c.set(10, 10, 100);
Oval o;
o.set(20, 20, 50, 100);
DreptunghiRotit p;
p.set(5, 5, 2, 10, 30);
f.Add(&c);
f.Add(&o);
f.Add(&p);
f.P... |
84143e942478dca4fe980db8289f0c2e91424104 | d1f8551b344cb9cacb0af765dea52a51872741f6 | /src/spatialGraph/betaSkeleton/kdt.h | a2a2f8d5e09640614a7a6228a1cce3659bf2881f | [
"MIT"
] | permissive | Oliver-desu/pargeo | f5988b679d52078edb45679dba938ab49261840d | 166f3c4766968ddbebc0f8d90e2c780ed96f0e89 | refs/heads/main | 2023-07-23T13:30:38.345645 | 2021-09-04T15:46:09 | 2021-09-04T15:46:09 | 403,062,667 | 0 | 0 | MIT | 2021-09-04T13:24:57 | 2021-09-04T13:24:56 | null | UTF-8 | C++ | false | false | 11,422 | h | kdt.h | // This code is part of the "Pargeo" project
// Copyright (c) 2020 Yiqiu Wang and the Pargeo Team
//
// 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
// witho... |
2204872a40d5e132a7a74daf172ca23c514e0cf5 | 9953aaeed410e1fd26f738466e585bcfa187c527 | /IDE/QScriptEditor/dialogjump.h | c19943bc383c9110da98a29591df77355d194904 | [] | no_license | zhaoliangcn/LScript | 5ab470aa1f2b674a067802c4fd306c79a7ac9e8c | 97205f823cc3aaaf56308a74fa1b3f28d302b89b | refs/heads/master | 2022-09-23T06:34:40.999691 | 2022-07-26T08:10:39 | 2022-07-26T08:10:39 | 33,216,059 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | dialogjump.h | #ifndef DIALOGJUMP_H
#define DIALOGJUMP_H
#include <QDialog>
#include <Qsci/qsciscintilla.h>
namespace Ui {
class DialogJump;
}
class DialogJump : public QDialog
{
Q_OBJECT
public:
explicit DialogJump(QWidget *parent = nullptr);
~DialogJump();
QsciScintilla *editor;
protected:
virtual void showE... |
36ed2c7863aa5def6df105fbb6081e1c1ad63f83 | 8261d47b5fb864b28ff047dced3b97b5ee2f5f1d | /c算例/正整数读法.cpp | fe498965559f1038678708adad66ce5fe85abb2c | [] | no_license | VicciFan/C-Language-Basic | 50cbd8f935a670fd2b71a946d7846fe7c306439b | 91cc735adf91fba0e5835415fbaec12a079691b4 | refs/heads/master | 2020-04-01T14:13:56.886487 | 2018-10-16T16:24:42 | 2018-10-16T16:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | 正整数读法.cpp | #include<stdio.h>
#include<string.h>
int main()
{
char a[15][5] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
char b[10][5] = {"qian","bai","shi","wan","qian","bai","shi"};
char num[10];
int len,i,j;
scanf("%s",num);
len = strlen(num);
for(i=0;i<len;i++) {
j = num[i] - 48;
if(j!=0 && i!=0)
... |
479c3a6842ea66d9ae511b88d13259a20ba44cce | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/sw/source/core/undo/SwUndoFmt.cxx | babe16c67a6106c1a63f6c24f28617d071645464 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 11,477 | cxx | SwUndoFmt.cxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
882cc5b4f0df56d3b95cfd5948c6f52dcd7de3ed | 63e0a9988e5090ddaf37c35a1e60445fb03dfc37 | /Final_Project/src/takeoffServer.cpp | c3196e678c064028c6014cdaa731101592d5c373 | [] | no_license | marcmi9/ARDRONE_2.0 | 3deca4717c42437b95e7b51f71fa630a888abe9b | d08d9ca99158a6bbd4183c463bfa823263387c9d | refs/heads/master | 2021-01-11T00:14:16.574928 | 2016-10-11T08:26:59 | 2016-10-11T08:26:59 | 70,572,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,806 | cpp | takeoffServer.cpp | #include "ros/ros.h"
#include "std_msgs/Empty.h"
#include "Final_Project/takeoff.h"
#include "ar_pose/ARMarker.h"
#include <ros/callback_queue.h> //to create our own callback queues
#include <stdlib.h>
ros::Publisher takeoff_pub;
float sonarHeight;
ros::CallbackQueue sonar_callbackQueue;
float change_rate;
float old_... |
55bc65612d4f21c99d1ca673ce67abddcef55999 | fd4aa7ab49feff70be5ce2e15c7439471c1e30ea | /chapter 13 exercises/c13_2/cd_c13_2.cpp | 9b4bfff04abac7a930a72c5d12b32cd1c9356025 | [] | no_license | dundunnp/answers-to-C-Primer-Plus | 565b4b87bff2946a9a005fb1da71cc52b26d12b6 | 7c97e4c6e648f07394fc9407bcf2ad2d262c3d85 | refs/heads/main | 2023-03-28T06:50:38.491282 | 2021-03-31T10:40:50 | 2021-03-31T10:40:50 | 353,311,389 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,281 | cpp | cd_c13_2.cpp | #include "c13_2.h"
#include <cstring>
Cd::Cd(const char* s1, const char* s2, int n, double x)
{
performers = new char[strlen(s1) + 1];
label = new char[strlen(s2) + 1];
strcpy_s(performers, strlen(s1) + 1, s1);
strcpy_s(label, strlen(s2) + 1, s2);
selections = n;
playtime = x;
}
Cd::Cd(const Cd& d)... |
2a1030f0bfe7ce42a05ed6d1d08ba6c53d772143 | 8d782214cc09f43db64c49d5d646509de3e86b64 | /Pi/components/Function.h | 5b5d098b5974ff1cebc7d8adf3a510fafe6dc9a4 | [] | no_license | Aardvajk/OPx | f8c39a9b3d2a3c7edae8d48d29480cee01aaf9f6 | 1f450602a5f0e69c1956e48e915c0a893a31aa29 | refs/heads/master | 2022-03-26T08:28:14.561146 | 2019-12-14T08:31:43 | 2019-12-14T08:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | h | Function.h | #ifndef FUNCTION_H
#define FUNCTION_H
#include "common/Object.h"
#include "framework/ByteStream.h"
#include "scanner/Token.h"
#include <vector>
class Sym;
class Function
{
public:
Function(Sym *sym, std::size_t id) : sym(sym), id(id), args(0), locals(0) { }
Sym *sym;
std::size_t id;
std::size_t ... |
1c58f919c2030d42c6b28f0cb16e5e077fb985e6 | 65d925f70e022d85a4a4ce871ca9b28aa4652dfb | /Greaney_Brian_CIS1202_CountyAuditorSearchAndSort/Project1/Greaney_Brian_CIS1202_CountyAuditorSearchAndSort.cpp | 8f5ac26e7ea2086ed6d711dad66a09653d0c7592 | [] | no_license | BonsaiSuperstar/School | ac2665fba269b0757468be7ee109da39df8e09f7 | 4213d04a63bd6f7afd237c5b400d5464fa52fec5 | refs/heads/master | 2022-02-18T12:10:48.804047 | 2019-07-10T23:46:27 | 2019-07-10T23:46:27 | 166,124,051 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,081 | cpp | Greaney_Brian_CIS1202_CountyAuditorSearchAndSort.cpp | //Brian Greaney
//January 30, 2016
//County Auditor's Search & Sort
/*This program will read property tax data
from a file and allow the user to display,
look up, sort and see largest amounts due.*/
#include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
using namespace std;
const int SIZE = 7;
ifstre... |
d951b0e7f8360d7f943215494bdd33081f21bab2 | 079bef22560c7b866af384f60629520808be8e82 | /Prototype/Singleton.h | 760d80c21c97af7c39afd8fdb5b354817043faf9 | [] | no_license | jafffy/AEISGraphics | a0f92b053fdc5a3afb5f3b8f9c3f12355b3e3514 | 3850f1d0d5ccae7f1f6c2e5748f08b903184d902 | refs/heads/master | 2021-10-08T10:57:31.386213 | 2018-12-11T11:25:53 | 2018-12-11T11:25:53 | 105,421,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | Singleton.h | #ifndef SINGLETON_H_
#define SINGLETON_H_
template <class T>
class Singleton
{
protected:
static T* ms_pSingleton;
public:
Singleton()
{
ms_pSingleton = static_cast<T*>(this);
}
~Singleton()
{
ms_pSingleton = nullptr;
}
static T* pointer()
{
return ms_pSingleton;
}
};
template <class T>
T* Singleto... |
c9f34ddf785a9f0b7f964c68c1b5f00db99747c8 | 6cf713837c75a1e7442646ac0af4abec5a95ef19 | /src/broadcastannouncer.cpp | 6dd4be55f50f3e67b19c6246e5aa70ddfc22f9a2 | [] | no_license | londonhackspace/acnode-cl | 181262d51be97b2218ddce5b5f232ace28feee78 | 9cf0d9c24536c0fc2b859cc10a87d0e2ab51ac62 | refs/heads/master | 2022-05-13T22:33:25.057046 | 2022-04-18T15:56:54 | 2022-04-18T15:56:54 | 22,616,994 | 13 | 8 | null | 2019-12-14T22:36:43 | 2014-08-04T19:28:26 | C++ | UTF-8 | C++ | false | false | 1,544 | cpp | broadcastannouncer.cpp | #include "announcer.h"
#include "broadcastannouncer.h"
// hints for the linker
BroadcastAnnouncer::BroadcastAnnouncer(int port) {
_host = IPAddress(255, 255, 255, 255);
_port = port;
_udp.begin(8888);
}
void BroadcastAnnouncer::RFID(char *cardId, int granted) {
char message[8 + 14];
memset(message, 0x0, 6 ... |
9598a17e97c3d831947083dd9cdb78b5f965b6a6 | 4cd27b9d81d30d62a7d6f9f3356dac3840348ede | /include/RCF/JsonRpc.hpp | 679d66354e1de130066cff42bddfb13ae0393666 | [] | no_license | Fruneng/POI_DB_client | debc6508a64358541d3baf944cd7c56933439564 | b50bd1805fa8618f5baf08713019ba32e2f78211 | refs/heads/master | 2021-01-13T02:16:35.652477 | 2013-03-07T09:18:45 | 2013-03-07T09:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | hpp | JsonRpc.hpp |
//******************************************************************************
// RCF - Remote Call Framework
//
// Copyright (c) 2005 - 2012, Delta V Software. All rights reserved.
// http://www.deltavsoft.com
//
// RCF is distributed under dual licenses - closed source or GPL.
// Consult your particular li... |
d55b73b27ba554064eb38c1a1638415c8f288456 | b3762a229d55c6a26d0213eb6cdbdb4427e889ab | /cpp_04/ex02/TacticalMarine.cpp | bc019ed941bcffc5ee9d259948f199521d4db002 | [] | no_license | acharras/piscine_cpp | 4b1b87789899d350d516c2fc52a3b703f495e5a8 | 4f4218c1f475ad571bcae0ba88bd6b36e7b023fe | refs/heads/master | 2023-06-18T18:23:40.044919 | 2021-07-14T12:13:21 | 2021-07-14T12:13:21 | 348,343,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,719 | cpp | TacticalMarine.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* TacticalMarine.cpp :+: :+: :+: ... |
05354ebfa3668c80e13d61109e12ada745e99761 | 4860e7ccb92cd5782e5056ec2bfc6ac6fa3ac783 | /TGS/ProjectData/GameSources/Sprite.cpp | d11274511c522cfa47851164b9048c8ad81614a1 | [] | no_license | KobayashiHaruya/ZyuZyu | f265c543a0695ec8a9e494957a0cad1266ed21c6 | 7a0c0284afe5527b18ef3159d7bd5a2d19008132 | refs/heads/master | 2021-01-08T16:53:09.546276 | 2020-06-13T09:32:02 | 2020-06-13T09:32:02 | 242,076,336 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,742 | cpp | Sprite.cpp | /*!
@file Sprite.cpp
@brief スプライト
*/
#include "stdafx.h"
#include "Project.h"
namespace basecross {
//--------------------------------------------------------------------------------------
/// 2Dのスプライト
//--------------------------------------------------------------------------------------
Sprite::Sprite(const s... |
c287c56eb3307e912309f3b4131a6e1f7b8a3f61 | 66611581e0fb056d6e562ea598019a8d7084b6c5 | /main.cpp | 941b9ec81fddbacbdd64f1e7ac8c670e827af556 | [] | no_license | Lucchetto/Esercizi_4AT | 320da839225b564589b050b6799acd2d45de050a | 16d37276fa67d1017d640753c93973e40a608eb2 | refs/heads/master | 2020-03-30T17:28:23.506110 | 2018-10-03T20:06:36 | 2018-10-03T20:06:36 | 151,457,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | main.cpp | #include <iostream>
#include "matrix.h"
using namespace std;
int main() {
// Ready for rand()
srand(time(0));
int msize = 10;
int **ptr_matrix;
ptr_matrix = new int*[msize];
for (int i = 0; i < msize; i++) {
ptr_matrix[i] = new int[msize];
}
assign_rand_matrix(ptr_matrix, m... |
ebb3c0cd50263c30cadf0baa2d3d792ef244c718 | edc6924793463561c1abd11af18829267e9a1f66 | /FaceApi/Framework/Stopwatch.cpp | f4a5b5b60f4e4aba6d77a44c9e20398daf3f31bb | [
"MIT"
] | permissive | bkornel/face-api | e342a3d26753b8cafa1683426203c11f6a05f0d3 | ce818f2d1e3615797079c9a098d7d45ffd525291 | refs/heads/master | 2021-06-27T12:45:22.444325 | 2019-09-30T12:47:58 | 2019-09-30T12:47:58 | 149,594,872 | 10 | 0 | MIT | 2019-09-30T12:47:59 | 2018-09-20T10:52:37 | C++ | UTF-8 | C++ | false | false | 1,342 | cpp | Stopwatch.cpp | #include "Framework/Stopwatch.h"
#include <opencv2/core/core.hpp>
#define TICK_COUNT (cv::getTickCount())
#define TICK_FREQUENCY (cv::getTickFrequency())
namespace fw
{
Stopwatch::Stopwatch(bool iStart /*= false*/)
{
Reset();
if (iStart) Start();
}
void Stopwatch::Start()
{
mStartTime = TICK_... |
02f996ccb52842414a38235d272972414e1058d2 | 873f868ff9457507514aec0443f8cdac55343c9d | /Data Structure and Algorithm/Graph Theory/Prims Algorithm/Prims_STL_vector.cpp | 47cd459973eb36d2423c47d98032c22f43e10c6e | [] | no_license | AKC23/Learning_c_plus_plus | 33cdbd1f7401eb5a6e5f32be9f2b44e2a401b19f | 8d6ff43b12d6af89dd96e9d1d93703c703f4b50f | refs/heads/main | 2023-08-31T16:25:48.072870 | 2021-11-08T12:40:38 | 2021-11-08T12:40:38 | 317,572,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,350 | cpp | Prims_STL_vector.cpp | /*
https://www.geeksforgeeks.org/prims-algorithm-simple-implementation-for-adjacency-matrix-representation/
Prims Algorithm
Sample input/output is given after the code
*/
#include <bits/stdc++.h>
using namespace std;
int node, edge;
bool Validity_Check(int u, int v, vector<bool> Parent)
{
if ((u == v... |
258c202e2cb5b6026a3ff9f63acb3caff1b9b942 | 649d9e287b6536d67b4075120c19eeceee343fba | /weex_core/Source/core/bridge/eagle_bridge.h | 1f20c29ed32f686ab94d779e7d4cabaccfd07a88 | [
"LicenseRef-scancode-unicode",
"MIT",
"BSL-1.0",
"Apache-2.0",
"ICU",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alibaba/weex | 79c83bb4d002af7b819326ebca35e880e2ea8473 | 8f3f2b7d511d3f966dcd00ea44da8771d955fc13 | refs/heads/master | 2023-03-12T20:57:22.129120 | 2022-09-28T06:06:08 | 2022-09-28T06:06:08 | 53,658,802 | 20,773 | 2,915 | Apache-2.0 | 2023-08-23T10:57:36 | 2016-03-11T10:18:11 | C++ | UTF-8 | C++ | false | false | 9,679 | h | eagle_bridge.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... |
90356529e843cd3d8da12d4e00728c3d65a117d5 | 96b6a6c66a0df2b85910b3a7786e11161bd75484 | /QueueInLink/QueueInLink.cpp | 5d978641f888d83543544e1512c14eba07a02be5 | [] | no_license | AlaricZeng/AlgorithmInCPP | 747114ff0911ff16f00ba112cd01492108cdad93 | 9e0a0cadbbb591465ef13a6efae8173de50e21d6 | refs/heads/master | 2021-01-23T05:09:59.722210 | 2017-04-18T02:46:05 | 2017-04-18T02:46:05 | 86,283,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | cpp | QueueInLink.cpp | /**
File: QueueInLink.cpp
Function: Use LinkedList class in QueueInLink.h
Implication a queue for integer add and delete
Author: AlaricZeng
Date: 03/26/2017
**/
#include <iostream>
#include <stdlib.h>
#include <string>
#include "QueueInLink.h"
using namespace std;
//split the string by space and return
//a... |
9d4faa9c2c9d0440a271571b7644cfea7a6a8b16 | 3a4d091a039828b3ec5f5ba53b847700e2ae4e49 | /LteHandOverComparsion.cc | 41edfd5adb81c2bfad01c5d9b17cfc270a867e53 | [
"Apache-2.0"
] | permissive | ShashwatSehrawat/nns3_handover | 6fbe47a70c6519eca68d96e1c273b7e72d68177a | 9d4dd7e5ec90cc0b4a6bf2b570bcdcc261f80abd | refs/heads/master | 2022-01-11T11:32:11.222582 | 2019-10-01T01:50:52 | 2019-10-01T01:50:52 | 54,378,332 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,548 | cc | LteHandOverComparsion.cc | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Fre... |
5118f73c235f92eb46be0fc277c35cee233bdb3a | b4330417dd1590cf7ea3484c4dda20a0ecfee3b4 | /Online_judge/SGU/131.cpp | 244bb007f774bfa641ff82ce0f32962a5b1f1de9 | [] | no_license | Q10Viking/ACM_ICPC | d2b2c69e451a4e8de2fafdf346797900c61e65ee | d3d6547313a4400ed9c3eef1339a79466ffa5d97 | refs/heads/master | 2021-01-01T17:26:04.629801 | 2014-07-03T06:54:15 | 2014-07-03T06:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cpp | 131.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <set>
#include <vector>
#define LD long double
#define pi acos(-1.0)
#define Max(a,b) ((a)>(b)?(a):(b))
#define Min(a,b) ((a)<(b)?(a):(b))
using namespace std;
long long dp[15][1<<9];
int n,m;
set<... |
e5bb17f90613967a55f8874d2c80b0b4bf1f7026 | 227fa50c449caffc6ad4e79b26ceded4d84a608e | /tftpConfig.cpp | 0eb379602717f48ac71d09c782d758d1a55cecde | [] | no_license | mufantu/project | 0d7024df5bd7465766b7701a5f0aa5341d126f4c | 7088a9aa2697a6dcc661355dbdf4c7b9c4528e00 | refs/heads/master | 2021-01-22T03:33:15.427463 | 2017-02-06T20:58:45 | 2017-02-06T20:58:45 | 81,132,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | tftpConfig.cpp | #include "tftpConfig.h"
TftpConfig::TftpConfig() : _blockSize(0),
_timeOut(1),
_retryCount(1),
_serverPort(59),
_maxFileSize(0)
{
}
uint32_t TftpConfig::getMinUdpSrcPort()const
{
return _minUdpSrcPort;
}
uint32_t TftpConfig::getMaxUdpSrcPort()const
{
return _maxUdpSrcPort;
}
u... |
7a662de00fb414c823ca735c24538a3d271113c0 | a0fd4aab6243a895350cb80448254d327024a06c | /SynesDraw/mousedrawer.h | a8df21628ba90b4bf8e7b1fdf29b78d218e62e4a | [] | no_license | ktdilsiz/SynesDraw | 54955999705bdcf7ce70eae67ebaaaf49fce0158 | bd593547114c99f558d3ab1f06e503423888b713 | refs/heads/master | 2021-01-20T19:34:02.405136 | 2016-07-13T19:38:23 | 2016-07-13T19:38:23 | 63,162,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | h | mousedrawer.h | #ifndef MOUSEDRAWER_H
#define MOUSEDRAWER_H
class MouseDrawer
{
public:
MouseDrawer();
};
#endif // MOUSEDRAWER_H |
2f5eea453eca936ba69a8e5f3b39e3a040732941 | aa5bde78ca59672ec5f7953100a511f14dc23716 | /xdbd-sql-parser/XdbdSqlParser.cpp | b174f6f67d282c89e4cdab2c6cf0e95d3287ae79 | [] | no_license | miranvodnik/xdbd | 5dbb530a7db3b8575cbe87e37bbe90e2a7b5bced | ae4ab6bb53b11c307951c6b9c67bbfa59cb42c5c | refs/heads/main | 2023-04-03T18:51:18.963054 | 2021-04-18T14:36:21 | 2021-04-18T14:36:21 | 358,135,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,112 | cpp | XdbdSqlParser.cpp | /*
* XdbdSqlParser.cpp
*
* Created on: 12. nov. 2015
* Author: miran
*/
extern "C"
{
#define YY_NO_UNISTD_H
#include "yystype.h"
#include "sql-select.lex.h"
#include "sql-select.tab.h"
}
#include "XdbdSqlParser.h"
#include <iostream>
using namespace std;
namespace xml_db_daemon
{
XdbdSqlParser::XdbdSqlPa... |
f3e9a58dc2bcf8c733f6302b663a61e14eb71471 | 1d25d80da36086a1b2a41fe4bb5bef528a4c7226 | /c03/ex04/SuperTrap.cpp | e0b25d440c4020dcbfabef66b40df7460766c858 | [] | no_license | tclaudel/piscine-cpp | 7aa4d3cafd925f63fc298ab2ed92df3fd3830408 | fbf10c24eb5a549607e5defbce6b1e605dca1cf0 | refs/heads/master | 2022-09-02T00:00:52.247031 | 2020-05-25T08:35:08 | 2020-05-25T08:35:08 | 266,726,849 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | SuperTrap.cpp | #include "SuperTrap.hpp"
SuperTrap::SuperTrap(void) : ClapTrap(), FragTrap(), NinjaTrap()
{
}
SuperTrap::SuperTrap(const std::string name) : ClapTrap(name, 100, 100, 120, 120, 1, 60, 20, 5),
FragTrap(name), NinjaTrap(name)
{
}
SuperTrap::SuperTrap(const SuperTrap &rhs) : ClapTrap(rhs),
FragTrap(rhs), NinjaTrap(rhs... |
55c1da3db908963519ac0de494acab09df71c226 | d4ffab4a7609c09eeeec95e2b6bb59a07949ac02 | /include/ge211/color.hxx | 030b2748a9926774d89a910367026e3586c3a6ed | [] | no_license | tov/ge211 | c161b8b5bbc05d3471e5d066dd6e728717dbca97 | 33001aa7c6c15e83e967cf8dbe44b3ab41694589 | refs/heads/main | 2021-12-05T01:33:12.387295 | 2021-11-29T22:48:30 | 2021-11-29T22:48:30 | 145,884,530 | 7 | 3 | null | 2021-11-29T22:48:31 | 2018-08-23T17:10:57 | C++ | UTF-8 | C++ | false | false | 11,934 | hxx | color.hxx | #pragma once
#include "forward.hxx"
#include "doxygen.hxx"
#include "util/name_of_type.hxx"
#include <SDL_pixels.h>
#include <cstdint>
GE211_REGISTER_TYPE_NAME(ge211::Color);
// See bottom of file for ge211::Color::{HSLA, HSVA}.
namespace ge211 {
/// For representing colors.
///
/// A color has red, green, blue, a... |
97cc37ca2dd791069674c029b791fd2fe4eb52bb | 375df5ebf916cbff8f3303f05d4be26e2446d1c0 | /Core/skillList.h | 56fb76d032d505d2fbeaae8d5fac9c340297a93e | [] | no_license | Razevoir/DnD-Character-Manager | abdadbb19d419ee08436e02febed68c7b80d9966 | b573e98b14f30a7baa37d05081d4285e352909dc | refs/heads/master | 2020-08-04T04:30:08.074199 | 2020-07-18T21:34:31 | 2020-07-18T21:34:31 | 211,460,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | h | skillList.h | #ifndef _SKILL_LIST_H
#define _SKILL_LIST_H
#include <string>
#include <vector>
class skillList{
public:
struct skill
{
std::string name;
int modifier;
int baseAbility; // Should be a value from 0 to 5 representing which ability (str, dex, etc) the skill is based on
int baseMod;
int ranksMod;
int synMod... |
ed3b7b4d167ed135f72d3bcb5084984d6d918d2c | f3f7cf4a65cc3c9354ad04d86b14e853d34f7c08 | /Module_04/ex00/Farmer.cpp | 2439e75f730382d661a5add9ff9dfbba8a85768c | [] | no_license | hamanmax/Piscine_CPP | 4aadce72e3feee00e4ca274dd68a876da785f36d | 18d62d0f2a4ec4023b2f167d4e63504b90253259 | refs/heads/master | 2023-04-07T02:17:12.599736 | 2021-04-19T09:18:36 | 2021-04-19T09:18:36 | 348,053,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,680 | cpp | Farmer.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Farmer.cpp :+: :+: :+: ... |
fe9c7faff1c34d41fba6c5628a0dd2cf21a4618a | 19aef5242afacac4377442f77469768bd7248c23 | /dwyer_payton_progassign6/dwyer_payton_progassign6/book.h | d7aeda060d322b4a6e47d0d27a89cdbabc8b1eb2 | [] | no_license | pdwyer2/CPSC360Assignments | 50201b6315bc4991e8dace3b047366837eda7e0c | 6dfefde51ed6411a48a63e0df500026e24904941 | refs/heads/master | 2020-12-13T10:15:00.989522 | 2020-05-01T08:04:40 | 2020-05-01T08:04:40 | 234,386,291 | 0 | 0 | null | 2020-03-07T14:35:50 | 2020-01-16T18:36:09 | Assembly | UTF-8 | C++ | false | false | 784 | h | book.h | #include <string>
#include <iostream>
//header file that includes getter and setter prototypes
//includes constructor prototypes
//also includes different functions for changing the availability of books
class Book {
private:
std::string Title;
int bookID;
bool checkedOut;
public:
std::string getTitle();
void ... |
8431f3ab534a7c6a74cb246430b89231e10adb8f | 2ed73496ec78f986a0d8760089ad04b2c4106515 | /srcc++/interactions.cxx | 8fa0819676daf8bcd8a15545d460b2a418e5ea0e | [] | no_license | vincent-jj/TDP5 | db5bd33e15501788c949145a8c86e8e875de6569 | 367b9579acb88cc63f9a9375fa28ce0b8fcea30c | refs/heads/master | 2021-01-10T01:26:52.331843 | 2016-01-14T19:02:59 | 2016-01-14T19:02:59 | 47,244,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,842 | cxx | interactions.cxx | #include "interactions.hxx"
#include <vector>
#include <ctime>
#include <cmath>
#include <sys/time.h>
#define G 0.16
#define SIMULATION_W 500000.
#define SIMULATION_H 500000.
#define __NODE_TOLERANCY__ 0.5
void calcForce(particle *p_i, particle *p_j){
coords vect;
vect.x = p_i->pos.x - p_j->pos.x;
vect.y =... |
29783362fe5e204016ddc33a48b06c5789c3aeb2 | 2e11e3d44990a743d4e07f8e9bc94182e67ed861 | /problems/1462. Course Schedule IV.cc | 2ee5e974cad2e66fb3eaa6d2e441e33926ee1844 | [] | no_license | pokaa3a/leetcoding | 8c7c4f20f4a424adeaf43173f33ef01780016dc5 | 7a995cee0eb621df2df5611d1c0a8c5d1a11dca1 | refs/heads/master | 2022-07-22T12:00:38.938350 | 2022-06-17T04:55:42 | 2022-06-17T04:55:42 | 247,426,082 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,627 | cc | 1462. Course Schedule IV.cc | #include <iostream>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <string>
#include <queue>
#include <stack>
#include <list>
#include <sstream>
#include <cmath>
#include <numeric>
using namespace std;
struct TreeNode {
int val;
TreeNode* left;
TreeNode* r... |
e8458c9adee6326eba06dc301d9ec4a6d001e4bb | a6bf1635e7daa93951beca8e06ec75466bf2a4b3 | /race_track.cpp | b300684477dd6421dc857a86d327631536db0c85 | [] | no_license | Progettone-Programmazione/Progetto | d05ed2af7c2b2dd7bfc4bb72ddbfa8440f42bfca | 962376a2ec0740b9b96ac7b36cd8bd44c9290262 | refs/heads/master | 2021-04-20T06:52:07.751207 | 2020-03-30T16:13:14 | 2020-03-30T16:13:14 | 249,663,529 | 0 | 0 | null | 2020-03-29T11:15:20 | 2020-03-24T09:21:28 | C++ | UTF-8 | C++ | false | false | 2,806 | cpp | race_track.cpp | #include <iostream>
#include "race_track.hpp"
race_track::race_track(): player_coords(0, 0) {
for(int i = 0; i < ROWS; i++) {
if(i % 2 == 0) matrix[i][0] = '+';
else matrix[i][0] = '-';
for(int j = 1; j < COLUMNS + 1; j++) {
matrix[i][j] = ' ';
}
if(i % 2 == 0... |
7e4c106947aa8d1c5311c4c02523b76c1b14e0fe | b11a50ae94cb0e4d0d8f145e3048d1de42b0800e | /PrepackedFood.h | 5b6c7eb8052bb6e8e7eb86ffe8c97fd768aa65b7 | [] | no_license | jdeoey49/Product | 205e70da85ab6dfc920fc1390bbdbab245d11366 | e819d14c73e024d1691427fd3aee7b639aa879ff | refs/heads/master | 2022-09-16T12:07:08.500688 | 2020-06-01T01:02:24 | 2020-06-01T01:02:24 | 268,383,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | PrepackedFood.h | #pragma once
#include "Product.h"
class PrepackedFood : public Product
{
friend std::ostream& operator<<(std::ostream& out_ref, const PrepackedFood& packed_ref);
public:
PrepackedFood( std::string="", int=0, double=0.0 );
~PrepackedFood();
void setPrice(double);
double getPrice() const;
void enterProd... |
e42c873f70935b323732088ad91c04fce5ea5edc | 0561013586c201b726468d3674a1f61d7cf35eb5 | /practicum3/Time.cpp | 31c7749bf3864a03397130943c95e6a592b4023a | [] | no_license | bshaswat/CSCI-1300 | a7ca9c080135590e73036607ad8b69f7ed2fd0a8 | ea92f6aa50df11bff2a335d5227f192b415845cc | refs/heads/master | 2023-01-31T17:51:44.898234 | 2020-12-18T02:35:21 | 2020-12-18T02:35:21 | 291,866,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 972 | cpp | Time.cpp | #include <iostream>
using namespace std;
class Time{
public:
Time(){
hours=0;
minutes=0;
seconds=0;
}
Time(int hours_in, int minutes_in, int seconds_in){
hours=hours_in;
minutes=minutes_in;
seconds=seconds_in;
... |
2365af3d8e0bf6cb26c4605c6b340004440e0789 | ab64fbdf6697b020522ae4f0f702c3f54fe08904 | /CursachParser/GlobalClass.h | ad3613fd38d81a1d41b38dcff8990fdd0e49ac5a | [
"MIT"
] | permissive | GeorgiyDemo/CheckerC | 9e28e05ae67c591af8b60b871f7199978b7d3cc4 | 4c6c4dc575f04b5e2bd345bc55c484a228916db7 | refs/heads/master | 2020-03-15T18:08:38.297041 | 2018-07-12T11:06:35 | 2018-07-12T11:06:35 | 132,277,166 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,333 | h | GlobalClass.h | #include <cliext/vector>
#include <regex>
#include "tinyxml2.h"
#pragma once
namespace Globals
{
using namespace System;
using namespace tinyxml2;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using... |
cc3938541cee1600ee3e68ebd3e78ab43fe99323 | 779a3e56d74508a0cd0864899dcc416f0da36f0b | /TEST/eqtest/eq/eq_functions.h | f608f8c9e9aff5826c43000a738c5f5a6d1d2893 | [] | no_license | Trietptm-on-Coding-Algorithms/everquest | d5029c6fc64ee308049c7f56704a72a0f46f52d6 | 190cc4f4ad20efd679c21087b6426118cbe57c7a | refs/heads/master | 2020-03-21T17:59:15.457341 | 2018-06-23T22:45:44 | 2018-06-23T22:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,877 | h | eq_functions.h | #pragma once
#include <string>
#include <sstream>
#include <tuple>
#include <unordered_map>
#include <cstdint>
#include <cstring>
#include <cmath>
#include <windows.h>
#include "eq_addresses.h"
#include "eq_classes.h"
#include "eq_memory.h"
#include "eq_macros.h"
/* game functions */
typedef int (__cdecl* EQ_FUNC... |
c9f88e77281b36b94ef81eaf5820321100878906 | 0efb71923c02367a1194a9b47779e8def49a7b9f | /Oblig1/les/1.02/k | 6645516730396e68d565e36b73d112e934bfa174 | [] | no_license | andergsv/blandet | bbff505e8663c7547b5412700f51e3f42f088d78 | f648b164ea066c918e297001a8049dd5e6f786f9 | refs/heads/master | 2021-01-17T13:23:44.372215 | 2016-06-14T21:32:00 | 2016-06-14T21:32:00 | 41,495,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 84,958 | k | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
49309e4abb1d5121d4d01359138c7e98dd1ee80b | a72de1c395c72ad6c1518b1b9a0c0efecbcfe235 | /tools/pose2matrix.cpp | 831c557b45b2b0c467e280a2b83ec300325860a0 | [
"MIT"
] | permissive | 1003613248/VForce | b1b4355dca3a4e9c7af5371a2dad7262040daba0 | 8a0b80ff633ccabff4410eaf7c368de2cfb0f15c | refs/heads/master | 2020-12-30T00:00:35.426255 | 2019-05-06T06:16:37 | 2019-05-06T06:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | pose2matrix.cpp | #include "utils/CVUtils.hpp"
#include "utils/MathUtils.hpp"
using namespace std;
using namespace VForce;
using namespace Utils;
int main(int argc, char **argv) {
Eigen::Matrix4f tf;
float x, y, z, R, P, Y;
cin >> x >> y >> z >> R >> P >> Y;
pose2matrix(x / 1000.f, y / 1000.f, z / 1000.f, deg2rad(R), deg2rad(P... |
109a21aa25710010c3c42ad1cf6ef5164b28282d | 53825c6d38714ea55a956e55a47c3c36c35bb17f | /fables-monster-minder/Victor's_Code/MonsterManagerTest_4/Monster/status.hpp | e3186edca48ae3a289390b7d6080bb65d7ce0ffa | [] | no_license | MarissaMelen/SeniorProject | 6b74f70901c350c36b6bda2e078907d4771a799f | acd6cb429fd81ed2bf1e10101868cebee4e4c269 | refs/heads/master | 2021-01-22T12:07:39.257546 | 2016-09-28T03:09:59 | 2016-09-28T03:09:59 | 33,211,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79 | hpp | status.hpp | #ifndef STATUS_HPP
#define STATUS_HPP
enum status {
dummy
};
#endif
|
ba7ba3cc8a33eefdc8cf6da427c07c89107606ae | 10a93df285d4138718418bf806de49291b260f9f | /cMonster.h | cb0391298ad4ec7f2a4dfc6c9afc477fe8659dc9 | [] | no_license | tpghks98/VirusShot | cc6d3e3493a9447dc482fa77fce725c43121d016 | b8d72f42918de38c3788e1b9072fab22e020f5bc | refs/heads/master | 2021-01-10T02:45:33.395804 | 2016-02-16T13:41:40 | 2016-02-16T13:41:40 | 51,590,262 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | h | cMonster.h | #pragma once
#include "cCharacter.h"
class cMonster :
public cCharacter
{
public:
float m_fMinZ;
float m_f;
float m_fOriMoveSpeed;
protected:
float m_fGrowTime;
bool m_IsCanPull;
bool m_IsGrow;
bool m_IsOnGrow;
D3DXVECTOR3 m_vOriScale;
public:
virtual void Init();
virtual void Update();
virtual void ... |
194ab3dbfeae235b9d6443d897e08914b250c6e2 | 840728dcd0e1f48377b884cf7a63b6901666a297 | /Nugget/EuclideanAlgorithm.h | 8b88d10dac8248aa72888fdf267ecad8533e6675 | [] | no_license | Trompowsky/CNugget | de9838772a6783eb3bb2adfd2b1a9f8cc1af34ae | 076ff28131b7eeb1bce00a255584a34e57e30091 | refs/heads/master | 2021-01-01T05:25:37.087356 | 2016-05-06T17:03:00 | 2016-05-06T17:03:00 | 58,222,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | EuclideanAlgorithm.h | #ifndef EUCLIDEANALGORITHM_H_INCLUDED
#define EUCLIDEANALGORITHM_H_INCLUDED
class EuclideanAlgorithm{
public:
EuclideanAlgorithm();
~EuclideanAlgorithm();
int GCD(int m, int n);
};
#endif // EUCLIDEANALGORITHM_H_INCLUDED
|
0c11f09f7dd0534ae93ac2cf84c49349c98f3cff | 8b7c62e85cd12868ce768fd3a709d40237f12ce9 | /src/Course 3/Week 1/AddingExitsToAMaze.cpp | 6264e2816f76c6c0c9a403cf4f2b96fe9e64fb66 | [] | no_license | Jai4/UCSD---Specialization | 438ed67c9391b79632ab8746fd2b11608faeefe5 | ac49b5fa3bc5bf7f31c3c334e9473ae6c347d9f2 | refs/heads/master | 2021-01-20T12:50:10.531515 | 2017-06-10T06:31:47 | 2017-06-10T06:31:47 | 90,414,049 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | AddingExitsToAMaze.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef list<ll> li;
#define sz size_t
#define forn(i,a,b) for(sz i=a;i<b;i++)
#define pb push_back
class connected
{
ll n,m,u,v;ll count=0;
li *united;
vll visited;
public:
void getinput()
{
cin>>... |
2317b8a1ee55798bd98c80f83cd7002a104a5569 | 596cbd8ed27cd51bec3c8ab7f77c2aa676747ae1 | /Bully/Process.cpp | b55db35e06b7e09f549b8d914e31bc63ddfe37d3 | [] | no_license | mismail85/Bully | 761e04aadc99fd89e969acad1a3c822c30ba4b48 | 364331221c20aecebb725a62a2828a275ee0d6f1 | refs/heads/master | 2016-09-06T21:53:05.761712 | 2014-03-06T18:39:12 | 2014-03-06T18:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,419 | cpp | Process.cpp | #include "stdafx.h"
#include "Process.h"
#include "global.h"
#include "Command.h"
#include "Clientthread.h"
#include "ServerThread.h"
#include "Task.h"
#include <thread>
unsigned int Process::processCount = 0;
Task Process::task = Task();
Process::Process(void)
{
m_processId = (unsigned int) GetCurrentProcessId();
... |
f589a65e4623d762b30c797060571b526adafa32 | eb1353f49af281669424c581c8b63628f7a57a5c | /sidewinder/src/talon/velocity_settings.cc | 69ac4ffd7fc7c6f0974a13b1fef067a66f012161 | [
"MIT"
] | permissive | strykeforce/steamworks | 78d6705a8e112105abdc3485192f9743611db911 | 00083c9378191aaeaab3a5c94c3c47738dcc1431 | refs/heads/master | 2021-09-04T01:23:19.204663 | 2017-10-29T11:11:12 | 2017-10-29T11:11:12 | 93,560,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cc | velocity_settings.cc | #include "velocity_settings.h"
#include "cpptoml/cpptoml.h"
#include "ctrlib/CANTalon.h"
#include "spdlog/spdlog.h"
#include "pid_settings.h"
using namespace sidewinder::talon;
VelocitySettings::VelocitySettings(const std::shared_ptr<cpptoml::table> config)
: PIDSettings(config) {}
void VelocitySettings::SetMo... |
9bbf19417e9033042bfb170415c89a176149980d | ac888518e6a0c2692115d68904b4d4ee659ca7a6 | /src/main.cpp | 03a9d3dc4855b2be103ba418a097da21e03fdd3a | [] | no_license | remi-dupre/cluster-outliers | 06f855b60b555bfa3ffcfe4829000392d6b91fe5 | b379d2f23052d602e06b39b9a7d2086211bc18b5 | refs/heads/master | 2020-04-17T10:02:33.368260 | 2019-06-29T09:54:33 | 2019-06-29T09:54:33 | 166,484,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,696 | cpp | main.cpp | #include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <thread>
#include <omp.h>
#include <json/json.h>
#include "clustering/streaming.hpp"
#include "clustering/evaluate.hpp"
#include "data.hpp"
#include "debug.hpp"
#include "spac... |
6ba93786e5f76b2eba53f69ac28785dd6b7d82d9 | 03a92b75561cc56c78859bedc856d793cacf0ac2 | /Kampussahko/datahandler.h | b3c954fac2aa6a4633605648925999c664a589af | [] | no_license | iturunen/Campus-sensordata-viewer | 26e3b2d1ed5bc6ad8b4120e86803537345ac3d7b | 100d70d91df79d4d8e86370afcb4a98622ab197e | refs/heads/master | 2020-12-27T20:03:24.917846 | 2020-02-03T19:26:31 | 2020-02-03T19:26:31 | 238,034,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,930 | h | datahandler.h | #ifndef DATAHANDLER_H
#define DATAHANDLER_H
#include <QObject>
#include <QtCharts>
#include <QList>
#include <QTimer>
#include <QMap>
#include <QString>
#include <QQmlListProperty>
#include <QVariantList>
#include <QVariant>
#include <iterator>
#include "datarequester.h"
#include "datalist.h"
#include "calculatecorrel... |
5b2c9702b127f6f00a3ae70d515284438008a916 | 2476e036866ebf861e834eb0ddb2a8cd49104285 | /competition/wap201510/ExamI_Game.cpp | 6a98364c204f00336ec9066c224fd193efd3d818 | [] | no_license | xchmwang/algorithm | 7deaedecb58e3925cc23239020553ffed8cc3f04 | 55345160b6d8ef02bc89e01247b4dbd1bc094d5e | refs/heads/master | 2021-09-17T23:54:40.785962 | 2018-07-07T06:40:27 | 2018-07-07T06:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,563 | cpp | ExamI_Game.cpp | #include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#include<vector>
using namespace std;
int maxScore(vector<vector<int> > &grid){
int row = grid.size();
if (row <= 0) return 0;
int col = grid[0].size();
if (col <= 0) return 0;
vector<vector<int> > dp(row, vector<int>(col + 1, 0));
vector<int> cand1(row, -1... |
9dfdaa387ef1d7fd63aff32ea10caf8f5dd55b3b | e511b1420b194f148779e09f46f6e686155a4cbd | /Lista URI 1/1018 - Salário.cpp | 2197776a19aefa6c9eb02db5fb94a4cc46cebd28 | [] | no_license | PedroAlmeida08/Programacao_I | d4a6cfa0324be4e6ba7e08cb7bd03e48afa943cb | ba1d97cdb5509299e9e090f57e42b4d5fa3a1ec8 | refs/heads/main | 2023-08-05T12:27:56.516298 | 2021-10-06T16:57:19 | 2021-10-06T16:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | 1018 - Salário.cpp | #include <stdio.h>
int main() {
int NUMBER, WORKED_HOURS;
float DOLARS_PER_HOUR, SALARY;
scanf("%d %d %f", &NUMBER, &WORKED_HOURS, &DOLARS_PER_HOUR);
SALARY = WORKED_HOURS * DOLARS_PER_HOUR;
printf("NUMBER = %d\n", NUMBER);
printf("SALARY = U$ %.2f\n", SALARY);
re... |
1ceeb81c0eb3dbb87747da1f23e8ee69ea055cc6 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/tauEventTPCnv/tauEventTPCnv/TauRecExtraDetails_p1.h | 939e2eea4ae17448088a3680d6e137850ab93d23 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | h | TauRecExtraDetails_p1.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/// @file Tau1RecExtraDetails_p1.h
///
/// Declaration of persistent TauRecExtraDetails class
///
/// Package: Reconstruction/tauEventTPCnv
///
/// @author Thomas Burgess
/// @author Lukasz Janyst
///
/// Created on 2007-07-01.
///
/// $Id... |
03a48df0a94f5b30e5500995f3d778f1a2dfa883 | bef7d0477a5cac485b4b3921a718394d5c2cf700 | /ic2005/src/demo/MeshEntity.h | c0a9cea46acbff0769787defb3e7ce22d975c367 | [
"MIT"
] | permissive | TomLeeLive/aras-p-dingus | ed91127790a604e0813cd4704acba742d3485400 | 22ef90c2bf01afd53c0b5b045f4dd0b59fe83009 | refs/heads/master | 2023-04-19T20:45:14.410448 | 2011-10-04T10:51:13 | 2011-10-04T10:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | h | MeshEntity.h | #ifndef __DEMO_MESH_ENTITY_H
#define __DEMO_MESH_ENTITY_H
#include "Entity.h"
#include "DemoResources.h"
#include <dingus/renderer/RenderableMesh.h>
// --------------------------------------------------------------------------
/**
* Visible entity.
* Can optionally render itself in possible render m... |
b9f4e7a21b003f6e94c8abef0e0bc6b65fb71bcf | 5aeead3e7ec6dd0b0a37b68c4c08ec835e3b7038 | /A5/a5-re/observer.cpp | d06127641807534e6b775483e1bb4eb42e6db4ef | [] | no_license | CS246-CS247-Quadris/bochendong-Quadris | 76d6e7ad7ce2acf011af5d792c55215f9160a55f | 1117c738b00b4011502d8aab02490a62cbc61150 | refs/heads/master | 2021-10-23T11:15:36.509885 | 2019-03-17T00:41:52 | 2019-03-17T00:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | cpp | observer.cpp | //
// observer.cpp
// a5-re
//
// Created by BochenDong on 2018-08-29.
// Copyright © 2018 BochenDong. All rights reserved.
//
#include "observer.hpp"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.