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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e6a1f64659287bbe1f6016145fc366d12f85685 | 223dd6cdf14a826fead3aba84fbb310e2757c448 | /Volume 10000/Volume 109/10922 - 2 the 9s.cpp | 5a624e8c2fe10124e3d7fb5bebfdff57b219e9e4 | [] | no_license | badstyle319/UVA | dad2972fcdd0dc219e90328607547a3524b8b047 | 28c27e8dfe766d7d83969a0f5b7dbc9a6b9282c6 | refs/heads/master | 2022-11-29T07:07:35.957202 | 2020-08-03T06:46:40 | 2020-08-03T06:46:40 | 284,227,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | 10922 - 2 the 9s.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <bitset>
#define LL long long
#define ULL unsigned long long
#define PI 3.14159265
using ... |
c200dbf5f30a34cdbb50c4cde37fc0306ea7784d | 93ddbfb911f129b20aa0c211437b3c94a92b83e6 | /src/client/Client.h | f0c6d8c0f6a2eb975b39279c774fb114bef57aa6 | [
"MIT"
] | permissive | pedro-esteves-pinto/mcbridge | 38c8581033f3796eaf08a72b734b472362d5e390 | 7302e8161015d76e81b355821496dae655b1dd00 | refs/heads/master | 2022-11-13T23:11:21.686598 | 2020-07-03T21:30:59 | 2020-07-03T21:30:59 | 268,184,386 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 694 | h | Client.h | #pragma once
#include "ClientConfig.h"
#include <memory>
namespace mcbridge {
struct Message;
// Orchestrates the connection to a mcbridge server, the creation of
// new multicast senders and possibly the discovery of new joined
// groups.
class Client {
public:
explicit Client(ClientConfig const &);
~Client... |
abbbc7947836dee1624b872a8efcb5999a48e192 | ee08b92160608af6fe2925c64aa2df143efa775c | /sudoku_solver/game_screen.h | 79488fb1e0ff397aa5100111e1cecc30889530b5 | [] | no_license | DennisSHCheung/sudoku_solver | 1f507a33506e1ff6352ee46cdca21bbd5d1db1e2 | 22c464c4902177479d59e0f930725682c93e25f5 | refs/heads/master | 2020-09-03T02:26:47.016380 | 2020-06-19T12:05:16 | 2020-06-19T12:05:16 | 219,361,778 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | h | game_screen.h | #pragma once
#include "screen.h"
#include <fstream>
#include "sudoku_logic.h"
#include "ascii_character.h"
#include <random>
class game_screen :
public screen
{
private:
enum button_name { SOLVE, RETURN, NEW };
protected:
sf::RectangleShape grid;
std::vector<sf::RectangleShape> box;
std::vector<sf::Sprite> numbe... |
1573cbf15a8b2438a827b7d871b6497c7f0dfc3b | f1b37e672c9ecdca1c91d8fe1ace9de9eca253a0 | /tests/unittest.cc | 4a03b1bdd3b866b31211241eab3c6eaafab79ad3 | [
"MIT"
] | permissive | SuperDan1/DataStructure | 80322faa334f8ab20e391a37787b305e3f050922 | 5e2eb2a2cee612591934ebc81b7c9eee44133e00 | refs/heads/main | 2023-04-12T00:45:22.050575 | 2021-05-15T12:13:01 | 2021-05-15T12:13:01 | 347,659,388 | 1 | 0 | MIT | 2021-05-15T12:13:02 | 2021-03-14T14:28:26 | C++ | UTF-8 | C++ | false | false | 335 | cc | unittest.cc | #include "gtest/gtest.h"
double add_numbers(const double f1, const double f2) { return f1 + f2; }
TEST(example, add)
{
double res;
res = add_numbers(1.0, 2.0);
ASSERT_NEAR(res, 3.0, 1.0e-11);
}
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
int ret = RUN_ALL_TESTS();
... |
a591446cb4347010e65e9ee17de63db8d88cde4b | f8e8700964d4f9159a043f18ade9ceff5eb7594c | /c++/other/Count of positives sum of negatives.cpp | 7a9c3098cb76c0815187370ace3ce2b851440cba | [] | no_license | xlfsummer/codewar-solutions | bf6dd0a4282c2af387bdf535da2476fed4f0e7a1 | 7107e660422043b782bdda97e8cac36b201fffb0 | refs/heads/master | 2020-06-29T00:49:56.417427 | 2019-08-22T18:01:57 | 2019-08-22T18:01:57 | 200,390,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | Count of positives sum of negatives.cpp | #include <vector>
std::vector<int> countPositivesSumNegatives(std::vector<int> input)
{
if(input.empty()) return {};
int countP = 0;
int sumN = 0;
for(int i: input) i > 0 ? countP++ : (sumN += i);
return {countP , sumN};
}
|
aba387914f4d29153fd5af50345985838f22063a | 76faf7e71ff6d645a3feb89d13248badb55c5035 | /liberParVisu/liberParVisuVTK.cpp | daa233816d89c8b8a953f49c7783bdd60ed34dcc | [] | no_license | liberlocus/LLParVisu | a2b08a26ec06131db70b863ead9d66e168d9282a | 06c02a19754cd002b737dbae965ee3625d4e16bb | refs/heads/master | 2016-09-06T18:25:38.506913 | 2013-05-01T04:41:13 | 2013-05-01T04:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,389 | cpp | liberParVisuVTK.cpp | #include "liberParVisuVTK.h"
#include <string>
c_ParVTK::c_ParVTK(string fileName, int nodeNum, float *x, float *y, float *z, int cellNum, int nodePerCell, int **cellConnectivity, char ** varName, int varSize, float **varMatrix, int mpi_rank, int mpi_size) : c_VTK(fileName, nodeNum, x, y, z, cellNum, nodePerCell, cel... |
3deeb76b3a04f574fffa7e49b059a2ac2bdf4a9b | 8ca4009e33c2a3b72e5666b58ed2d8568a297f92 | /test/UnitTest/Tests/Services/EventHandlers/TestStepStartEventHandlerTest.cpp | ae227bd0d84733985b105b7c553112548613ec17 | [
"MIT"
] | permissive | systelab/cpp-gtest-allure-utilities | 6a391f76795eb0be4a3b7602176b126d1c967d69 | 9f1f776c3cd47ad29b1e681cc6e62fbe555db08a | refs/heads/master | 2021-12-24T04:40:38.801271 | 2021-10-27T13:07:21 | 2021-10-27T13:07:21 | 160,388,133 | 11 | 6 | MIT | 2021-05-31T08:41:08 | 2018-12-04T16:37:13 | C++ | UTF-8 | C++ | false | false | 4,213 | cpp | TestStepStartEventHandlerTest.cpp | #include "stdafx.h"
#include "GTestAllureUtilities/Services/EventHandlers/TestStepStartEventHandler.h"
#include "GTestAllureUtilities/Model/StepType.h"
#include "GTestAllureUtilities/Model/TestProgram.h"
#include "TestUtilities/Mocks/Services/System/MockTimeService.h"
using namespace testing;
using namespace systel... |
5aa72085246d13e29362f5cd1bd9e721b7a7fb84 | 5dc4ea36514927efd678638e2095a4e8e32c0386 | /NPSVisor/tools/svMaker/source/pAlarm/alarmEditorDlg.h | 3604e2f2d03f711c4638e932ced845bb195a7727 | [
"Unlicense"
] | permissive | NPaolini/NPS_OpenSource | 732173afe958f9549af13bc39b15de79e5d6470c | 0c7da066b02b57ce282a1903a3901a563d04a28f | refs/heads/main | 2023-03-15T09:34:19.674662 | 2021-03-13T13:22:00 | 2021-03-13T13:22:00 | 342,852,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,858 | h | alarmEditorDlg.h | //----------- alarmEditorDlg.h ------------------------------------------------------
//----------------------------------------------------------------------------
#ifndef alarmEditorDlg_H_
#define alarmEditorDlg_H_
//----------------------------------------------------------------------------
#include "precHeader.h"
... |
d0cbfda3b1a79a9b33a16f28562627ca8712d1bf | 1222b97d66c89d16d09ccf84cbe44fce27df00d5 | /이진탐색트리(포인터).cpp | 148f755943e712ef082b043a4e5d343962a46b2b | [] | no_license | Hyonony/tree_project | 6fa9ba2145116fee29471a6d7fb6f98ce94b2f93 | 94bf590fbdd51e9512b92bf192acabfdec60ef2f | refs/heads/master | 2023-05-10T19:50:14.081989 | 2021-05-26T02:49:22 | 2021-05-26T02:49:22 | 370,885,501 | 0 | 0 | null | 2021-05-26T02:38:45 | 2021-05-26T02:38:45 | null | WINDOWS-1252 | C++ | false | false | 2,951 | cpp | 이진탐색트리(포인터).cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
typedef struct node {
int data;
struct node* rightChild;
struct node* leftChild;
}Node;
typedef Node* treePointer;
treePointer Search(treePointer T, int Key);
treePointer Insert(treePointer T, int Key);
treePointer Create(int S[]);
v... |
77d38a47557340874d116d6e7e218ae2085da293 | 3af68b32aaa9b7522a1718b0fc50ef0cf4a704a9 | /cpp/D/A/D/A/ADADA.cpp | bbb9b381454832c0ee0b69bb62184be950ae236b | [] | no_license | devsisters/2021-NDC-ICECREAM | 7cd09fa2794cbab1ab4702362a37f6ab62638d9b | ac6548f443a75b86d9e9151ff9c1b17c792b2afd | refs/heads/master | 2023-03-19T06:29:03.216461 | 2021-03-10T02:53:14 | 2021-03-10T02:53:14 | 341,872,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | ADADA.cpp | #include "ADADA.h"
#include "A/ADADAA.h"
#include "B/ADADAB.h"
#include "C/ADADAC.h"
#include "D/ADADAD.h"
#include "E/ADADAE.h"
namespace ADADA {
std::string run() {
std::string out("ADADA");
out += std::string(SEPARATOR);
out += ADADAA::run();
out += std::string(SEPARATOR);
out += ADADAB::run();
out += ... |
a0cbd3dfc2794265c7bd273d151648c6a2dbf711 | 250101ffb5bd6c4bcfe328854284338772e9aab5 | /map_server/logic_moudle/task_moudle/MapLogicTasker.cpp | 80f2c7571f42cf185c71fcf7827642f0b8427fe0 | [] | no_license | MENGJIANGTAO/GameServer-2 | aa1299e9442e221a1a2d26457c18396d5e4c54bd | be261b565a1f823d8d17235a21dd1f2431c0a30d | refs/heads/master | 2021-09-17T22:45:10.621608 | 2018-07-06T05:15:47 | 2018-07-06T05:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97,307 | cpp | MapLogicTasker.cpp | /*
* MapLogicTasker.cpp
*
* Created on: 2013-11-07 10:42
* Author: lyz
*/
#include "MapLogicTasker.h"
#include "MapLogicPlayer.h"
#include "MapMonitor.h"
#include "TaskImplement.h"
#include "TaskRoutineImp.h"
#include "TaskTrialImp.h"
#include "SerialRecord.h"
#include "ProtoDefine.h"
#include "GameFont.h"
#i... |
6a53f7dd8d1f75e0f849c8fbda23d006d2a0bb17 | 4284deaf82e244ccf43015fab80a9b45acf65d6d | /test.cpp | b9c4e415e040405c7a03b718ff866c89a43c0f46 | [] | no_license | soramimi/jstream | 086d26dbd41c7877f2e8c9c6c1000680086db4f3 | f6572b1194a0bebd38c9799f27ab2e54223dc6d6 | refs/heads/master | 2021-07-06T16:40:31.985000 | 2021-04-14T10:29:59 | 2021-04-14T10:29:59 | 234,760,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,272 | cpp | test.cpp | #include "test.h"
#include "jstream.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <algorithm>
#ifdef _WIN32
#include <io.h>
#include <windows.h>
#else
#include <dirent.h>
#include <unistd.h>
#define O_BINARY 0
#endif
std::string trim(std::string const &s)
{
char const *begin = s.c_str();
char const *end = be... |
aa16f9831ca2b38ff0acbf3ad696c0d5b56f3835 | 4e932dd028c6660b822936dc49a53759ffb748d7 | /rush01/Module.hpp | 70f0b52f1063c848a1d024d830b800cc999051b7 | [] | no_license | YoungTran/cpp-crash-course | 134075759e2e673e5f822f605a10d388b0ccd4bc | cfe52bc6161c911ed1b0fba49c916f4d0878a2af | refs/heads/master | 2023-06-17T16:31:26.772811 | 2021-07-22T05:59:51 | 2021-07-22T05:59:51 | 168,427,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | hpp | Module.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Module.hpp :+: :+: :+: ... |
73091581ca260dbcccfa99dc6dab3fad9c455e29 | 67f5e017387096337e2bf4a43cc87d849a553d97 | /Sources/Shared/Responses/Response.cpp | f4f692f214a390cbeee8575621c1174f347358b4 | [] | no_license | Kacper20/TIN | 64953fe058a67c97e5b79ac34354e6b219352843 | 3f54e7f0ed4394c350771f42b2b402704c4aacab | refs/heads/master | 2021-01-18T11:14:54.256191 | 2016-06-07T14:46:53 | 2016-06-07T14:46:53 | 56,088,590 | 0 | 0 | null | 2016-06-07T11:34:57 | 2016-04-12T18:39:40 | C++ | UTF-8 | C++ | false | false | 315 | cpp | Response.cpp | //
// Created by Kacper Harasim on 21.05.2016.
//
#include "Response.h"
Json::Value Response::generateJSON() {
Json::Value root;
root[JSONConstants::ResponseType] = descriptionForResponseType(responseType);
root[JSONConstants::ResponseStatus] = descriptionForResponseStatus(responseStatus);
return root;
} |
832b61f54f3e0d73c41146e2796c2e25eef25b19 | 883887c3c84bd3ac4a11ac76414129137a1b643b | /nengine/navatar/LoadingCal3DObjectsTask.h | 5471c2adc410394bd320cb17c0e3f12d25277f15 | [] | no_license | 15831944/vAcademia | 4dbb36d9d772041e2716506602a602d516e77c1f | 447f9a93defb493ab3b6f6c83cbceb623a770c5c | refs/heads/master | 2022-03-01T05:28:24.639195 | 2016-08-18T12:32:22 | 2016-08-18T12:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 794 | h | LoadingCal3DObjectsTask.h |
#pragma once
#include "CommonAvatarHeader.h"
#include <vector>
#include "ITask.h"
#include "FakeObject.h"
class CLoadingCal3DObjectsTask : public ITask
{
public:
CLoadingCal3DObjectsTask();
~CLoadingCal3DObjectsTask();
void SetParams(CAvatarObject* avatarObject, C3DObject* obj3d, const std::string& path, const ... |
d5d9be23b588a8aa88486b93d4c4b8ba83ecb1c8 | c30529671974f8d36576bcde7c611634e993c0c1 | /Lab2/SecurityCam2/SCCameraCommand.cpp | 1a4b31bda11b20c12372e1b981d451a9772d00ec | [] | no_license | ccceeefff/18646-lpsoc-labs | 51ac2737300713dea42e46ad1366f76025138de6 | 70e60df0252b18c13666241eb179f0998bae3189 | refs/heads/master | 2021-01-10T13:34:03.299999 | 2016-03-04T11:12:40 | 2016-03-04T11:12:40 | 50,469,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,959 | cpp | SCCameraCommand.cpp | #include "SCCameraCommand.h"
#include "Arduino_Due_SD_HSCMI.h"
SCCameraCommand::SCCameraCommand(uint8_t command){
_command = command;
}
SCCameraCommand::SCCameraCommand(uint8_t command, String parameter){
_command = command;
_parameter = parameter.substring(0); //copy
}
uint8_t SCCameraCommand::getCommand(){... |
01550eff4602a399b93dcb79e736cb4f1f86076b | 575d2081b3bb1f72a73ee7a6d446ab3352747728 | /sensor/arduino_sensor.ino | 5254f3f0b51960223f977b722b340dc0fa267729 | [] | no_license | St-Edwards-6th-Form-Cheltenham/FootballSpeedAnalysis | 917245cc3d815da09e615d4bd84656084ba123c6 | 34b5ee9373df849c2fe20b6988df760ae1cf5389 | refs/heads/master | 2020-12-15T15:50:55.155108 | 2020-02-18T12:44:54 | 2020-02-18T12:44:54 | 235,163,851 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,424 | ino | arduino_sensor.ino | // Below: pin number for FOUT
#define PIN_NUMBER 4
// Below: number of samples for averaging
#define AVERAGE 4
// Below: define to use serial output with python script
//#define PYTHON_OUTPUT
unsigned int doppler_div = 190;
unsigned int samples[AVERAGE];
unsigned int x;
void setup() {
Serial.begin(9600);
... |
96b5eae93df481c5d88b0840fc257967e9ecd5d8 | 337c461e7e6fe51fd2a0d60b3cec73f9d05c2018 | /USB2Mat_i.h | 43dea77f1f7ffa349483f0d48f69dedda679c398 | [] | no_license | huangjielg/USB2Mat | 7d28add066e0cfaacb8b92ad86854e58c1d485d5 | aad41ef27720fd798626ad1159e0381a06a413cf | refs/heads/master | 2023-02-24T02:24:35.971956 | 2020-09-11T06:30:56 | 2020-09-11T06:30:56 | 334,005,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,824 | h | USB2Mat_i.h |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0622 */
/* at Tue Jan 19 11:14:07 2038
*/
/* Compiler settings for USB2Mat.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0622
protocol : dce , ms_ext, c_ext, robust
... |
831129e882e9fefc18fb08471cd23b030693caf2 | 320bef0f77b0c24b189be687824c6d6a5a7f029e | /Jogador.cpp | ed56c94ae70abb2ec6e643fdfb718e30e0727666 | [] | no_license | leovolpatto/bisca-test | 35e144be49dbaba709bb4706a2bdaffba803a68a | bd284875feee9b907d69a703ef4a9394047b5595 | refs/heads/master | 2020-06-18T13:13:10.892541 | 2016-11-30T00:35:51 | 2016-11-30T00:35:51 | 75,135,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 942 | cpp | Jogador.cpp | #include "Jogador.h"
Jogador::Jogador(std::string nome) {
this->nome = nome;
//this->cartas = std::list<Carta*>();
}
Jogador::~Jogador() {
}
std::string Jogador::getNome() const {
return this->nome;
}
Carta Jogador::jogar(Jogada& jogada) {
}
void Jogador::pescar(Baralho& baralho) {
Carta* c = ... |
cd9b46571ab166a83e74cb5fa549769fffeb20e9 | 50d403d6e8e2fe0026e18edc812a8086acbd4a8e | /Assignment 3/stairclimber.cpp | e17e16cd5c059a5c55ad249bcd90dace14465d07 | [] | no_license | NicholasColonna6/CS-385 | d6713dbe8a4a50fd830ded8f95ee110910df9e36 | 2c4878d97007b77e68f2d8de786f89531bc351ff | refs/heads/master | 2023-02-11T20:29:21.579653 | 2021-01-05T02:00:19 | 2021-01-05T02:00:19 | 326,843,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,588 | cpp | stairclimber.cpp | /*******************************************************************************
* Name : stairclimber.cpp
* Author : Nicholas Colonna
* Date : 9/26/2018
* Description : Lists the number of ways to climb n stairs.
* Pledge : "I pledge my honor that I have abided by the Stevens Honor System.... |
37bd11d7256e811bc683e06c5c984909fb95439b | 1e9063402c285564b24d2abce4fcee01b16c4059 | /Sorting and Searching/insertionSort.cpp | ddfa419d577faedd2174b94b53f7f02eb10e3eed | [] | no_license | LoggIT2001/Data_Structure_And_Algorithms_PTIT_2021 | 0628d0262486aee08e7ec3d58e986c026b48b3f0 | da282f12db54d13e5e6642d91c11c3a503bcfa2f | refs/heads/master | 2023-05-31T13:51:53.859740 | 2021-07-12T15:42:37 | 2021-07-12T15:42:37 | 385,298,353 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | insertionSort.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
int n;
cin >> n;
int a[n+5];
for(int i=0;i<n;i++) cin >> a[i];
vector <int> b;
for(int i=0;i<n;i++){
b.push_back(a[i]);
sort(b.begin(),b.end());
cout << "Buoc " << i+1 << ": ";
... |
80e01ab742c661fba7f03e9911f40a4151964a1a | 9520f3776b9c4c5b8e2a45d626b6da461c3654ad | /src/snvcounts.cpp | c30b59c24847d926927440be71d94c91b813fabb | [] | no_license | putnamdk/VCF2CNA-Beta | a093fb57aba7c4482549351abdffe75ee1f3db4b | 52a4082ad8b0ee84bbf76c0463f0d61c08a59a0e | refs/heads/main | 2023-06-19T14:56:10.689495 | 2021-07-07T14:42:09 | 2021-07-07T14:42:09 | 320,370,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,056 | cpp | snvcounts.cpp | //------------------------------------------------------------------------------------
//
// snvcounts.cpp - program that extracts mutant and total counts for SNVs in tumor and
// normal samples from a Bambino output file ("high_20") or a file in
// the Mutation Annotation Format (MAF); ... |
7b9eecdb7d8bebaedb1438f5507195557e6fec18 | b756f49e50c5e833435b0fddd98cb4d3bbf896c3 | /XCard/MainTest/ServerCommonPart.cpp | 29914b6615cdfd58175b143e879489c277bd1474 | [] | no_license | sword2ya/XCard | 26bd6c2700c308d53baa79d06f26ebf947834c53 | 70f9536aab36bfc9fd7823419e7db5900c89a8d0 | refs/heads/master | 2021-01-01T16:09:45.452788 | 2017-08-03T03:27:25 | 2017-08-03T03:27:25 | 97,782,717 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,638 | cpp | ServerCommonPart.cpp | #include "StdAfx.h"
#include "ServerCommonPart.h"
#include "ServerSession.h"
using namespace csmsg;
CServerCommonPart::CServerCommonPart(void)
{
m_pServerSession = NULL;
}
CServerCommonPart::~CServerCommonPart(void)
{
}
void CServerCommonPart::HandlerMsg(const csmsg::TCSMessage* pMsg )
{
csmsg::ECSMessageID eMsgI... |
39b2f3aec45a4101252d60350f648007e914f28e | 28fcb6ba57895c593b031224a5b2d3e2d68456c3 | /pe/analyzers/vb_analyzer.h | 2eb75674d3cd3482e173d2f22e2a78a5fe544866 | [
"MIT"
] | permissive | REDasmOrg/REDasm-Loaders | 48751074becba3deeee9473f7d9211aea22f2f1c | b401849f9aa54dfd9562aed1a6d2e03f75ac455f | refs/heads/master | 2022-05-20T11:32:15.533134 | 2022-04-13T19:54:47 | 2022-04-13T19:54:47 | 190,985,757 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | vb_analyzer.h | #pragma once
#include "../vb/vb_header.h"
class PELoader;
class VBAnalyzer
{
public:
VBAnalyzer(RDContext* ctx, PELoader* peloader);
void analyze();
private:
void disassembleTrampoline(rd_address eventva, const std::string &name);
void decompileObject(const VBPublicObjectDesc... |
87d00c91cda61ff72c9e0bcfb415b753a86f1e72 | 364f7d17c4f024c39c47c99bda284bacb913d470 | /sci_gateway/cpp/opencv_convolver.cpp | 8a5d289098dbebf7507058379851ab5b2d17b61a | [] | no_license | msharsha/FOSSEE-Image-Processing-Toolbox | 6ce7bafc187b99b9e01d1eedcc09a11c3a80370d | f8b16bc3329f9186a3b362f29d9a40d20b48cfd4 | refs/heads/master | 2020-12-02T07:55:57.553927 | 2017-07-10T07:41:21 | 2017-07-10T07:41:21 | 96,747,260 | 0 | 0 | null | 2017-07-10T07:14:37 | 2017-07-10T07:14:37 | null | UTF-8 | C++ | false | false | 4,872 | cpp | opencv_convolver.cpp | /******************************************************************************************
*Author : Kevin George , Manoj Sree Harsha
*
*-> To execute, Image = convolver(I1, size, values,scalar)
* where 'I1' is image to be convoluted,
* where 'size' is size of kernel i.e size x size gives total no. of values in ke... |
3a9290eacc0fdc216f50b11b9a2d760dc1eea224 | f2bb0f4f51f8b08dde295436f850f2284e49ac5e | /chatserver.cpp | fb2ffb82e4c7eefb9cabdcdb4f3916accbc1e555 | [] | no_license | luayalshawi/qml-chat-demo | 5c3027df089f9d9734b2985b8d98e1a7da2831c2 | 290f3cabb8610f0a215960b8e24c07ecf576cfa3 | refs/heads/master | 2021-05-09T23:42:36.857904 | 2018-01-24T19:39:06 | 2018-01-24T19:39:06 | 118,805,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | chatserver.cpp | #include <QtDebug>
#include "chatserver.h"
ChatServer::ChatServer(QObject *parent) : QObject(parent)
{
}
void ChatServer::registerUser(QString user){
qInfo() <<"C++ Backend: "<< user << "I am in registerUser\n" ;
// map can be better used on a real chat application
// since it's useful to keep track of lo... |
9cca1ccc296604ccdfd1430a9ee1f1b6e8519c4b | 3b5dcd8c97cf0b128ff4571f616e6f93cde4d14f | /src-qt3/FE/DialogManager/AutoDialog/Dialogs/memberWidget.cpp | 5b925ce187c7d1d5b79ebeea5ac393a4e38fea40 | [] | no_license | jeez/iqr | d096820360516cda49f33a96cfe34ded36300c4c | c6e066cc5d4ce235d4399ca34e0b238d7784a7af | refs/heads/master | 2021-01-01T16:55:55.516919 | 2011-02-10T12:00:01 | 2011-02-10T12:00:01 | 1,109,194 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,721 | cpp | memberWidget.cpp | #include "memberWidget.h"
#include <iostream>
iqrfe::ClsMemberWidget::ClsMemberWidget(QWidget *parent, string _strName, bool _bModal, string _strValue, list<string> lstValues) :
QGroupBox(parent, _strName.c_str()), strName(_strName), bModal(_bModal), strValue(_strValue) {
bValueChanged = false;
Q... |
18bee65cb54992ec90b6105669cc96f88edfca04 | 4a6e83f655843c8057e063d9edfbc4321bafa3d3 | /DP/maxMoneyLooted.cpp | a4c530a475ec3c12854f27bd1a4778bb5252af91 | [] | no_license | capchitts/Coding | 5c5edcdbee5af4e863ed00f0ef0c873a72c1ff6c | a38e05e10965695fd26b4dbed8ddaf2840302d44 | refs/heads/master | 2023-05-04T21:01:20.925665 | 2021-06-01T06:12:57 | 2021-06-01T06:12:57 | 355,104,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | maxMoneyLooted.cpp | /*
*TC --> O(2^n)
*SC --> O(1)
*/
int maxMoneyLooted_BF(int *arr, int n)
{
//Write your code here
if(n <=0)
return 0;
//Decision
return max(arr[n-1]+maxMoneyLooted_BF(arr,n-2),maxMoneyLooted_BF(arr,n-1));
}
/*
*TC --> O(n)
*SC --> O(n)
*/
int maxMoneyLooted_Mem(int *arr, int n, int *dp)
{
... |
63ea7ea845151a96de47844eae702ec93ebe287a | 72e95df33ab3fb6bba03a81867b77b755f46bb66 | /irohad/ametsuchi/impl/postgres_options.hpp | 35ee7dc3a458a2d947fe7ed7f8afdd6d986577cb | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | hyperledger/iroha | f07a81389fe1d3c488968919ab9196c548048f3a | f2d96e3050a504a982b983d8061588d8c650c5ad | refs/heads/main | 2023-09-06T00:40:53.092106 | 2023-09-01T17:37:08 | 2023-09-01T17:37:08 | 67,340,575 | 1,125 | 419 | Apache-2.0 | 2019-04-16T17:26:30 | 2016-09-04T11:17:53 | C++ | UTF-8 | C++ | false | false | 2,770 | hpp | postgres_options.hpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_POSTGRES_OPTIONS_HPP
#define IROHA_POSTGRES_OPTIONS_HPP
#include <unordered_map>
#include "common/result.hpp"
#include "logger/logger_fwd.hpp"
namespace iroha {
namespace ametsuchi {
/**
* T... |
4a75c490e3871a24568dbc0393d944580877afc2 | f713bb3150fe164dbac3e94e2278d0ff2e7c2f24 | /ESP32/RidesTracker/components/ble/bluetooth.cpp | 8b048390bd670f8f7ccc9026f1688969600bc34e | [] | no_license | lkubecka/IoT | 3fcb37bcb511614ac75af9b597dd8c493ef8a584 | 3fc66258bf19ac60a77626a104c4c94ab59f7c3f | refs/heads/master | 2020-12-24T12:01:35.084240 | 2018-06-22T20:11:43 | 2018-06-22T20:11:43 | 73,098,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,358 | cpp | bluetooth.cpp | #define __USE_BLUETOOTH_
#ifdef __USE_BLUETOOTH_
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include <BLE2902.h>
#include <Arduino.h>
#include "record.hpp"
#include "time.hpp"
#include <sstream>
#include "esp_log.h"
#include "bluetooth.hpp"
using namespace kalfy;
constexpr char BLE::SERVI... |
f78bfa5da6c6fb1c430ed4f14c7110cc4c386fe1 | 65ed7427063f2ccb82a1b519e1f2929eb01ebd8e | /08_receptor_rtp/h264rtpdepacketizer.cc | 3d324ab4d7ffb6eb94e09c29c842f6972d46e250 | [] | no_license | EdiiDD/Comul | cfa751e80485ca4d984aa6b2d7987076e1c6a369 | d0cec41c8fe99f30fd0780c3a9d4d906371b6d24 | refs/heads/master | 2021-11-04T01:52:12.496850 | 2019-04-27T12:04:06 | 2019-04-27T12:04:06 | 183,765,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,624 | cc | h264rtpdepacketizer.cc | #include "h264rtpdepacketizer.h"
#include <unistd.h>
bool H264RTPDepacketizer::init(uint16_t fps, RTPReceiver *receiver) {
#ifdef GEN_FILE
fout = fopen("recv.264","wb");
#endif
period = 90000/fps;
this->receiver = receiver;
firstTS = 0;
seqNum = 0;
parar = false;
frame = NULL;
frame_size = 0;
first_p... |
217a51d82606c6309c60815ab7f9cefcd8702c45 | faa7283bb1832070b5a31344e91f01933b35d53f | /src/DbFilter.h | 0e3387bab2cd86c737a824c3aaf68c3cffbc61fb | [] | no_license | qqiezhian/litedb | 5d3b50478d7c1e270e40ab72b280d042cba31ad6 | ef808d040c695c0c0b4262ecab1ae25c0f5ca161 | refs/heads/master | 2021-04-03T10:28:54.135437 | 2018-03-25T13:34:25 | 2018-03-25T13:34:25 | 124,757,258 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | h | DbFilter.h | #ifndef LITEDB_DBFILTER_H
#define LITEDB_DBFILTER_H
#endif
#include "dbtype.h"
#include "Slice.h"
#include <iostream>
using namespace std;
namespace litedb {
class DbFilter {
public:
DbFilter():m_(0), k_(0), bits_(NULL), seeds_(0) {}
DbFilter(uint m, uint k);
void insertEle(Key& key);
bool checkEle(Key& key);
pri... |
bb25e05a298d38123cf861ef9dc61851eec30152 | e967d490962965e7f84028f500018b3687c57065 | /facedetector.cpp | 005b6b08be8568529a1fe3dcc35766bc2e2b76cf | [] | no_license | Sergimech/RoboticaUVic-FaceDetect | da011223e444225fc50569a7e7f660566e06aff9 | c45b30bf7a6ebb23640643dc291e160e970448a8 | refs/heads/master | 2020-06-12T21:33:21.629871 | 2016-12-29T14:54:36 | 2016-12-29T14:54:36 | 75,505,739 | 0 | 0 | null | 2016-12-03T23:12:03 | 2016-12-03T23:12:03 | null | UTF-8 | C++ | false | false | 3,268 | cpp | facedetector.cpp | //Face Detector C++ code
// ********** Impl. by Sergi Baiges ********** - MASTER on ROBOTICS (Eurecat-UVic)
//Execute cmake CMakeLists in file directory after make files, and then execute ./(example)
//Libraries //
#include "opencv2/objdetect.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"
#inclu... |
a49102784cc737f1dbc731e40e48804c7760e0a6 | f419446fe13d0fe020a3615910879e2087f76b70 | /Sim900.cpp | 3610e994c0e1d14d508ded9b16fc9f1a9ca98f94 | [] | no_license | pietrodizinno/Sim900NetLib | dcbff3cf9819cd8b0dce15b58a3cda24b0b2931e | 6066fcca75e5aa197f758f19a496be8560b0f698 | refs/heads/master | 2021-01-20T14:05:02.076410 | 2014-11-27T20:14:17 | 2014-11-27T20:14:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,887 | cpp | Sim900.cpp | #include "Sim900.h"
static int put_data(char c, FILE *f)
{
Sim900::ser->write(c);
return 0;
}
Sim900::Sim900(Stream* serial, int powerPin, Stream &debugStream) :
ds(debugStream) //, parser(debugStream)
{
_powerPin = powerPin;
Sim900::ser = serial;
lastDataWrite = 0;
dataBufferTail = 0;
dataBufferHead = 0;
pinM... |
73a710b698ddf453908904f153513d203f622fdb | 2f14367ec3260046f65bc8c345cc08afc5c307a6 | /Classes/HelloWorldScene.cpp | 28e9125ed03234801eadb6a7a06936b1aafb8bc6 | [] | no_license | fordream/Line | 369ef8437eee0abce628be4b792358958f0931c4 | a1efeaf9357d1cdeb67d209a8381f4c21270f4ca | refs/heads/master | 2021-01-21T07:20:32.763508 | 2014-04-01T13:16:19 | 2014-04-01T13:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,612 | cpp | HelloWorldScene.cpp | #include "HelloWorldScene.h"
USING_NS_CC;
#define DOT_SEGMENT 20.0f
#define DOT_LENGTH 100
#define Pi 3.1415926f
#define PiAngle 180.0f
#define AREA_LIMIT 20.0f
#define BALL_LENGTH 5
#define BALL_SCALE 0.1f
const char* ball[] = {"Blue-Candy.png","Green-Candy.png","Pink-Candy.png","Red-Candy.png","Yellow-Candy.png"}... |
1ddab02837931cb1fb54691342ff7f9a32bc1092 | b20353e26e471ed53a391ee02ea616305a63bbb0 | /trunk/engine/tools/MakePatch/IDiff.h | 2dd634f1910a2ccd361585ce04515ce2bd179a03 | [] | no_license | trancx/ybtx | 61de88ef4b2f577e486aba09c9b5b014a8399732 | 608db61c1b5e110785639d560351269c1444e4c4 | refs/heads/master | 2022-12-17T05:53:50.650153 | 2020-09-19T12:10:09 | 2020-09-19T12:10:09 | 291,492,104 | 0 | 0 | null | 2020-08-30T15:00:16 | 2020-08-30T15:00:15 | null | UTF-8 | C++ | false | false | 291 | h | IDiff.h | #pragma once
#include "BaseTypes.h"
using namespace sqr;
class IDiff
{
public:
virtual bool MakeDiff(const char* szNewFile, const char* szOldFile)=0;
virtual uint32 GetDiffType() const=0;
virtual uint32 GetAllSize() const=0;
virtual void WriteDiffData(void* fp)=0;
};
|
55eda93df04188e5a41e174bf8acddb38fc48945 | f22fca98c1e2f9ff2d950c5e9a9e66c55c40f8b2 | /mycp/utils.h | 8a4afb5a97c3af704f57b5f945141fde0b569711 | [] | no_license | popenyuk/AdvancedMyShell | b071486b42f3fa38ff7a0e9b500b437496a25a6c | 5406fc6f7c98e22e7995fdb035b438373cf1504b | refs/heads/master | 2020-09-12T02:16:21.667290 | 2020-01-26T14:14:56 | 2020-01-26T14:14:56 | 222,266,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | h | utils.h | //
// Created by markiian on 08.01.20.
//
#ifndef MYFUNCPACK_UTILS_H
#define MYFUNCPACK_UTILS_H
#include <cstring>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/sendfile.h>
#include <cerrno>
#include <sys/types.h>
#include <sstream>
#include <vector>
#include <iostream>
#include <dirent.h>
#include <unistd.h... |
ac6076e092c110d0dee4925d3862cfb0f535ba9c | 7cd7df07fdada6a71372fbab8b61166511917895 | /codeninja/arrays_strings/test.cpp | fa156c727bdb43525d95893c63996ea455aa7bb8 | [] | no_license | Divya063/programming | dd85e5f7bca989b60a63b6a85b5c568e2bc2dd61 | b4fcc68b6c3a874f739e34a32f0531a8b6e97e68 | refs/heads/master | 2022-02-17T16:45:06.451071 | 2019-10-01T06:30:41 | 2019-10-01T06:30:41 | 212,022,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 930 | cpp | test.cpp | #include <iostream>
using namespace std;
struct Node{
int data;
Node* left; Node* right;
};
Node* insert(int data){
Node* node = new Node();
node->data = data;
node->left = NULL;
node->right = NULL;
return node;
}
Node* insert1(int arr[], int i, Node* root, int n){
if(i<n){
... |
fd332b1e8185fcb67d79c80506186b29a6f1bab2 | 9c6b59f7bf7b33688de5fe65235c1fd55a53d25b | /QuickTest/QuickTest.cpp | aa754c653dea1ce16563d175431905769236f1e7 | [] | no_license | Xiaoy312/Erebus2Helper | 9fab7c5e685d4ca5d0ab265ee9993ae98aee919c | f9e757a28ceaae37a53da4104dae88e192089a3a | refs/heads/master | 2016-09-16T01:26:58.208422 | 2015-04-12T21:13:51 | 2015-04-12T21:13:51 | 37,831,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,245 | cpp | QuickTest.cpp | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <Windows.h>
#include <stdio.h>
#include <fstream>
#include <tlhelp32.h>
#define MODULE_NAME "XyErebus2.dll"
bool FileExists(const char *path)
{
std::ifstream ifile(path);
return ifile;
}
void Inject(HANDLE process, L... |
840eff18a86f1011d5a810811f09c4dc652349af | f36878942654f1b6afa6c6c39fbfbea2efc10a3f | /Yankin_Exam/Yankin_Exam/TrapeziumBase.h | 131de7ae8820f810780cbdf96514f1959307f988 | [] | no_license | darkllen/OOP_Exam | 22bf8ed70f4ac8b53eaa82e26935511041866757 | b2c6c60ffcd9b6ba0cac75a1ce7959d9d84d9bdc | refs/heads/master | 2022-04-17T21:27:44.551300 | 2020-04-14T14:48:19 | 2020-04-14T14:48:19 | 254,915,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | h | TrapeziumBase.h | #pragma once
#include "Trapezium.h"
class TrapeziumAxes;
class TrapeziumBase : public Trapezium {
public:
//constructor
TrapeziumBase(const Segment& ab, const Segment& cd);
~TrapeziumBase();
//cast to TrapeziumAxes
operator TrapeziumAxes() const;
//trapezium square
double area();
//trapezium perimeter
doubl... |
9df7d261e0dcabfd77f0513cd7d590ea86024498 | 84ee543935b36942a839480ba2e297424ee03dee | /C++/303_Range_Sum_Query_Immutable.cpp | acfa5b4e4fccd75e70f6b7b277a43ef92a0540f7 | [] | no_license | yuyilei/LeetCode | ddd008bbfa7f5be02f9391a808e49da746634e5c | dfeac0af40fb4a6b9263b1c101eb6906e2f881f4 | refs/heads/master | 2021-12-21T12:54:59.666693 | 2021-12-02T13:37:49 | 2021-12-02T13:37:49 | 101,265,411 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | 303_Range_Sum_Query_Immutable.cpp | /*
*/
class NumArray {
private:
vector<int> sums;
public:
NumArray(vector<int> nums) {
if ( nums.size() == 0 )
return;
sums.push_back(nums[0]);
for ( int i = 1 ; i < nums.size() ; i++)
sums.push_back(sums[i-1]+nums[i]);
}
int sumRange(int i, int j)... |
18f30d061ecd6b1134a6ff6c33334490aeee2b14 | 9672f8f18d46f21fe53013202ba17aad96ecf211 | /Project3/Medusa.cpp | e073107be815eeb099f8d4fdc59976269e113605 | [] | no_license | cdavis4/CS_162 | 99793d4f6186c621ccf95a3e2cb52d8722819919 | fa74f43af55b890cde8f7deaf632cf5d8f21728c | refs/heads/master | 2020-05-23T18:01:47.750458 | 2019-05-15T18:08:46 | 2019-05-15T18:08:46 | 186,878,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,130 | cpp | Medusa.cpp | /*******************************************************
** Author: carrie davis
** Date:August 2, 2018
** Description: Project 3 Medusa
******************************************************/
#include <iostream>
#include <random>
#include <string>
using namespace std;
#include "Medusa.hpp"
/**********************... |
f9ff326a70af771b3b943f137693889dd941a122 | 5e7b5330f395d408b667ee0d290ef8f0081829cd | /Code/tp6/pb2/probleme2_TP6.cpp | 1f3fbe78ece1b3501da180bc7a89fa424754ecbf | [
"MIT"
] | permissive | joabda/Robot | 1266d598de77150df4a3e91d5adc34cf8ec8d2df | ce27e2e615cb87480c05f9e0ce32124648f9baff | refs/heads/master | 2021-07-19T18:17:54.072988 | 2020-05-24T22:14:04 | 2020-05-24T22:14:04 | 171,281,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,246 | cpp | probleme2_TP6.cpp | /* Ce programme a pour but de programmer la DEL du robot en fonction de la luminosité ambiante :
* - Verte lorsque la diode est cachée,
* - Ambrée à luminosité ambiante
* - Rouge sous une lampe torche
* Date: 2019-02-16
* Auteurs: ABDO Joe 1939689
CHRITIN Mathurin 1883619
* probleme2_1939689_1883619.cp... |
1b37ebf438d1fa9c869cb7d4fade7e1eb77bc418 | 6213740f4b6798ace434fa5717bb6c24b1e8fdb7 | /Bootstrap-ShooterGame-master/ShooterGame/include/StateMachine/Game/MainMenuState.h | de358dac489f3ee06f8d648d81e87fb073dda772 | [
"MIT"
] | permissive | zackslay3r/C---Projects | 4fb40ae3bc3e2bb38e1238822c0aed5585f10943 | 5e1bf2014dbfa4f74715f544f19a5886e679ea8e | refs/heads/master | 2021-01-21T15:53:27.311648 | 2017-08-13T11:54:17 | 2017-08-13T11:54:17 | 91,862,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | h | MainMenuState.h | #pragma once
#include "IGameState.h"
#include <memory>
#include <iostream>
class Menu;
class MenuBtn;
class ShooterGameApp;
namespace aie {
class Font;
class Renderer2D;
}
class MainMenuState :
public IGameState {
public:
MainMenuState(ShooterGameApp *app);
~MainMenuState();
virtual void update(float dt);
v... |
5015fee876f69917c7613f6fb9a62efe77ab9e80 | cabdefdd535422fea3de20ec740533dba90af825 | /MISSION_ARCHIVE2016/insect_repelllent_Test.Stratis/sounds/config.cpp | 1de0e2368c94f275c71900a2d3ad01e4f081b005 | [] | no_license | TForren/ARMA_Mission_Archive | 33be0d8e305349eabadeadb485a49b191575f277 | 8b8db53beec8297c550f25b3107dc260dedf4e9b | refs/heads/master | 2021-07-26T00:39:30.949043 | 2017-11-05T20:36:16 | 2017-11-05T20:36:16 | 109,613,817 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | config.cpp |
class CfgSounds
{
sounds[] =
{
};
class flies1
{
name="flies1";
sound[]={"sounds\flies1.ogg",db+15,1.0,0.5};
titles[]={};
};
class flies2
{
name="flies2";
sound[]={"sounds\flies2.ogg",db+15,1.0,0.5};
titles[]={};
};
class flies3
{
name="flies3";
sound[]={... |
be4f03a3ef86eb79658653165f1ddaa7c34aa645 | 418951d67fe92f26eaa9ce768059e8047c947eaf | /punteros.cpp | 56a5786822e310178d08bdb664ae46682abb8d44 | [] | no_license | Danielafe7GitHub/EDA | f80477bbecbe48dcb40d5655abcb035214eb705a | df48fa090b9a244688dba01ca6253483ebb9c483 | refs/heads/master | 2020-11-30T15:23:05.483694 | 2016-09-16T14:56:04 | 2016-09-16T14:56:04 | 67,265,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,248 | cpp | punteros.cpp | <<<<<<< HEAD
#include <iostream>
using namespace std;
int main()
{
int array[7] = {1, 5, 3, 4, 5, 6, 7};
int *ptr = array; /*Apunta al primer elemento del array*/
for (int i = 0; i < 7; i++)
{
cout << array[i];
}
cout << endl;
cout << "Contenido del Puntero " << *ptr << endl;
... |
5de804c51c46e32bcaedba61093bb1c333d098ea | cc37b234e06b9b51ea44e1d84c1e673db8b66857 | /domain-server/src/DomainServerSettingsManager.cpp | 9c741b2a3b3bac35af47e548df2b458e9fe200cf | [
"Apache-2.0"
] | permissive | Adrianl3d/hifi | b557a7af3236de539150118ef46e4feafe443de9 | 7bd01f606b768f6aa3e21d48959718ad249a3551 | refs/heads/master | 2021-01-17T09:04:27.782837 | 2014-12-14T00:58:24 | 2014-12-14T00:58:24 | 22,494,482 | 0 | 0 | null | 2014-09-30T08:20:14 | 2014-08-01T03:48:17 | null | UTF-8 | C++ | false | false | 9,305 | cpp | DomainServerSettingsManager.cpp | //
// DomainServerSettingsManager.cpp
// domain-server/src
//
// Created by Stephen Birarda on 2014-06-24.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QCo... |
ec722eaf4b071e31f503b37a9168c723da9ae962 | f0130a980e74692a311aee2db9573456e737d31f | /41.first_missing_positive.cpp | 44e3d07397fa5bb3ea408849039a98af32adedfc | [] | no_license | rahulinsane11/leetcode | e31ed9e2ae76572263cd0cf4900bb1e629ce9510 | 6207df6c0249a108a3e38786dc022cdcf85e09fd | refs/heads/main | 2023-07-15T19:51:09.546239 | 2021-08-17T07:47:38 | 2021-08-17T07:47:38 | 382,948,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | 41.first_missing_positive.cpp | class Solution {
public:
int firstMissingPositive(vector<int>& nums) { // T.C.=O(nlogn) ; S.C.=O(1)
int n=nums.size(), min=1;
sort(nums.begin(),nums.end());
for(int i=0; i<n; i++)
{
if(nums[i]>0)
{
if(nums[i]==min)
... |
5443f04067c91505c11157c8ce1466e9f40eb7eb | 4da66fb8568f88e8ad777ca29732166e5fe0704a | /tests/cpp/rpytest/ft/include/lifetime.h | eb04dde9f9a9af306e81cce50671633d28fba5d2 | [
"BSD-3-Clause"
] | permissive | robotpy/robotpy-build | b5b091b9a1ccdd995da492f50b515f67fbfdd8d1 | 8274a674f6177906fe38309ae008b783a0c9b159 | refs/heads/main | 2023-07-12T03:33:17.326548 | 2023-07-07T14:37:40 | 2023-07-07T14:37:40 | 214,119,803 | 32 | 19 | BSD-3-Clause | 2023-09-10T23:58:02 | 2019-10-10T07:47:40 | Python | UTF-8 | C++ | false | false | 344 | h | lifetime.h | #pragma once
#include <memory>
struct LTWithVirtual {
virtual bool get_bool() {
return false;
}
};
class LTTester {
public:
void set_val(std::shared_ptr<LTWithVirtual> val) {
m_val = val;
}
bool get_bool() {
return m_val->get_bool();
}
private:
std::shared_ptr<L... |
c13e6136afad894cda6c51ff45fcf85af1cdf669 | b77349e25b6154dae08820d92ac01601d4e761ee | /Bar/Scrollbar/Scrollbar ActiveX/XPBtn_Scroll/_vscroll.cpp | 51ca8764019ab03ee8b327d9a8f240536e77bd4d | [] | no_license | ShiverZm/MFC | e084c3460fe78f820ff1fec46fe1fc575c3e3538 | 3d05380d2e02b67269d2f0eb136a3ac3de0dbbab | refs/heads/master | 2023-02-21T08:57:39.316634 | 2021-01-26T10:18:38 | 2021-01-26T10:18:38 | 332,725,087 | 0 | 0 | null | 2021-01-25T11:35:20 | 2021-01-25T11:29:59 | null | UTF-8 | C++ | false | false | 1,255 | cpp | _vscroll.cpp | // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "_vscroll.h"
////////////////////////////////////////////... |
ef38d1859d5ceb98e3fbdc2e1980a6785daf59ea | e69c6452c8ce23d552ef39da4752f8c620b939b9 | /Code/CPP/PCSX2/pcsx2/gui/Resources/EmbeddedImage.h | 1e5eaad9c7ad72f987f81db8d23c75331f2fe35d | [] | no_license | madnessw/thesnow | 31a155e428bb6f79d2003c229cf2e570ca620c0f | 0f1aeb7903397dda06e0044aa6e35cc2705ed71c | refs/heads/master | 2021-01-23T12:00:27.906724 | 2014-01-09T05:42:41 | 2014-01-09T05:42:41 | 37,446,411 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,114 | h | EmbeddedImage.h | /* PCSX2 - PS2 Emulator for PCs
* Copyright (C) 2002-2010 PCSX2 Dev Team
*
* PCSX2 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 Found-
* ation, either version 3 of the License, or (at your option) ... |
be8bf77663bc0748b60ab443d40ad9cc0b1b3a38 | 5cc7297c191e27fbfbc1a940830e2bbe7d2c5fb3 | /AST.h | c4b9a59d96fe56b2d9246416de96754a6be6f249 | [] | no_license | bsblcc/Compiler | dc7dd630d1d66366a708ff039906bfd5f1522695 | d6c4159854cab57111204dbbb7b445c8cf3c7003 | refs/heads/master | 2021-01-16T05:40:57.583465 | 2020-02-25T13:12:49 | 2020-02-25T13:12:49 | 242,995,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,990 | h | AST.h |
#include <vector>
#include <list>
#include <iostream>
#include "type.h"
#include <fstream>
#ifndef AST_H
#define AST_H
using namespace std;
const string ASTNode_dic[] =
{
"root",
"translation unit",
"external declaration",
"function definition",
"function declaration",
"variable declaration",
"type specif... |
d57763971386770f0442ff26c0cac5c37498db2a | c3dd5418d36b83e2e8f1784093a2ed677ee57846 | /Model/modellist.cpp | 3fa0d6878aae90dcf7d7e64fe8c21e63a5d403c4 | [] | no_license | yuanyuanc03/Game-Mario | c42d7713f66aa2473ae190fccf4a6ab9b52217b2 | 8f8231a385d574ed15b4338cf1cbb42d1f10f6a6 | refs/heads/master | 2022-10-02T04:34:34.473224 | 2020-05-25T22:10:23 | 2020-05-25T22:11:59 | 263,081,638 | 0 | 0 | null | 2020-05-25T21:25:16 | 2020-05-11T15:25:56 | C++ | UTF-8 | C++ | false | false | 9,749 | cpp | modellist.cpp | #include "modellist.h"
#include <QFile>
ModelList::ModelList()
{
this->background = new QList<Background *>;
this->floors = new QList<Floor *>;
this->bricks = new QList<Brick*>;
this->mushrooms = new QList<Mushroom *>;
this->golds = new QList<Gold *>;
this->flames = new QList<Flame *>;
this... |
f7f82c2adf291526b3fc1899b49845e2558f5520 | da210c63cddec28ea4aeb0d06ec8f6ca1139aba7 | /src/Analysis.cc | eaf7edbe06cced78c89947333e41e91356828483 | [] | no_license | denschwarz/PPT-Analysis | 3ae022f6786db7168becd864308f37e65b489e0e | 7fe8b05704ecac3dcb4c73a5e8093b81b8dd1d64 | refs/heads/master | 2021-07-08T02:43:44.066249 | 2019-08-06T19:45:41 | 2019-08-06T19:45:41 | 141,400,198 | 0 | 0 | null | 2019-02-06T16:04:47 | 2018-07-18T07:48:30 | C++ | UTF-8 | C++ | false | false | 12,263 | cc | Analysis.cc | #include "../include/Analysis.h"
/*
Dies ist der eigentliche Analyse-Code.
Hier werden die rohen Root Dateien jedes Prozesses eingelesen und verarbeitet.
Ihr koennt hier Variablen zusammensetzen und Histogramme fuellen.
Der Output wird gesammelt in einer weiteren Root Datei abgespeichert.
*/
int main(int argc, char*... |
d4c3f03f3c2eaea865a200211e8a5d71717127e6 | b2092d2a4a65cf82cab916c416114f2d9c1e928e | /Engine/include/Engine/Gui/Widget.h | d764684c60f5d64b8e9ec6b2f0a4ca3f3cc9cba3 | [] | no_license | von6yka/Arcanoid-3D | 6664a4df6375b71a36a8254cc3382fc26cea400a | 591ed9320573848c38e3257dad9c300bbe926fcb | refs/heads/master | 2016-09-06T18:58:58.493016 | 2015-04-11T06:02:38 | 2015-04-11T06:02:38 | 33,681,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,463 | h | Widget.h | #pragma once
#include <string>
#include "Engine/Forwards.h"
#include "Engine/Object.h"
#include "Engine/Math/Size.h"
#include "Engine/Math/Vec2i.h"
#include "Engine/Gui/GuiRenderable.h"
namespace engine
{
class Widget : public Object
{
public:
enum Anchor {
ANCHOR_UNDEFINED,
ANCHOR_BOTTOM_LEF... |
9eff6fd83e0c40c3dc78681efb184a6eb1b6b13f | 942f6adbadf324458cf17059c70b3cc55a26c7ad | /1.select/tcp_server.cpp | 70ba49c2f9335b70ca54141b4843ac4f95eebb7a | [] | no_license | fwjieok/ipr | 2b501798cdaa047533f7e47cb78ecd1feb1a19f0 | 23e5dfe4f3404b8fba38a713b876da9be9c7be26 | refs/heads/master | 2021-01-01T20:14:29.747733 | 2017-09-17T08:58:57 | 2017-09-17T08:58:57 | 98,797,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,603 | cpp | tcp_server.cpp | #include "tcp_server.h"
TCP_Server::TCP_Server() {
}
TCP_Server::~TCP_Server() {
shutdown(server_sockfd, SHUT_RDWR);
close(server_sockfd);
server_sockfd = -1;
}
int TCP_Server::begin(char *ip, int port) {
if (port <= 0) {
printf("listen error, the parameter port is not equals 0\n");
retur... |
1476bb031a1583d81bd61921efec3638c1efd72e | 4cc5643008bee761a29e8fd2c26bf7acf3cbb596 | /Code/SingleFitting/C++/irsir.cpp | b25f441ab705ca6255f2d8a9a8627070ff5ea9ff | [] | no_license | jameshay218/epidemics | 59c89f4d5fc9cdab859189ec00759fa2b5576e1a | 485c40e712875b11db337ebf5fd643e032a066b9 | refs/heads/master | 2021-01-15T14:36:36.444672 | 2014-09-05T18:34:11 | 2014-09-05T18:34:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | irsir.cpp | using namespace std;
#include "irsir.hpp"
IRSIR::~IRSIR(){
}
/* ============================== MODEL EQUATIONS ============================== */
void IRSIR::Diff(vector<double> Pop) {
// The differential equations
dPop[0] = - beta*Pop[0]*Pop[1]; // dS/dt
dPop[1] = beta*Pop[0]*Pop[1] - gamma*Pop[... |
4b6e5524ecbd0ce92426fa7e09504a748a609e5c | d85978556a8e57fe33fedfc9b2c7ff38d0cb6e8b | /Twins/Twins.cpp | 5f520c4742d9adf0672a44815c19423790eb42e9 | [] | no_license | Lianghe-Chen/hackerrank-2 | c9ee73df5b6f13e92f057281c12789a61bec8554 | 1d7aa60f9c02e2130da1ac7482bd3c9ae1de8a83 | refs/heads/master | 2022-03-27T03:10:02.998643 | 2019-12-12T01:00:29 | 2019-12-12T01:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | Twins.cpp | #include <vector>
#include <iostream>
using namespace std;
long long isqrt(long long n) {
auto begin = 1ll, end = n / 2 + 1;
while(begin < end) {
auto mid = (begin + end + 1) / 2;
if(mid <= n / mid) {
begin = mid;
} else {
end = mid - 1;
}
}
retur... |
b9d74df62e7c11de0a9f4c5a9ecdf3433f1ae1b8 | 1170d3e8fad1122c7a6889eb33aafa1d12ebeced | /week1/string/01_reverse-string.cpp | c9984ca00a75eab390919a354159d271240bb173 | [] | no_license | muhammedyusuf-sermet/wallbreakers | 433394ecf6bd84e4adcb19f989a9209241226872 | 62c4b1f4a82bc6c5124a7675ea79fe5737565730 | refs/heads/master | 2020-06-09T11:13:07.895446 | 2019-08-01T19:42:48 | 2019-08-01T19:42:48 | 193,428,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | 01_reverse-string.cpp | class Solution {
public:
void reverseString(vector<char>& s) {
int length = s.size();
char swap;
for(int i=0; i<floor(length/2); i++){
swap = s[i];
s[i] = s[length-1-i];
s[length-1-i] = swap;
}
}
}; |
0990ec293b249e9ccc0ae40ed5abbd483a405ddb | 8ec160f284390ff416f162eb4dda093218e005aa | /Encoder/helper.cpp | 0cd7089339c772e995e83ef4669d966f748a39b9 | [] | no_license | demidov91/AK_curs_3.2_encoder | 3657dea4c2a229c2f1d16ed81342af420f9027d4 | af64e25c5000612e644b2587cc0bb847e6b117bb | refs/heads/master | 2016-09-06T11:19:21.820927 | 2012-06-06T09:33:22 | 2012-06-06T09:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | helper.cpp | #include "helper.h"
#include <string>
using namespace std;
bool vector_contains_string(vector<const string> *v, const string* s)
{
for(vector<const string> ::iterator it = v ->begin(); it < v ->end(); it++)
{
if (!s ->compare(*it))
{
return true;
}
}
return false;
}; |
b36d938500f9385ba3839c3100b1b1e2b0c427f2 | ceb020fee45a01645f0b2adc118483c6cf296226 | /RectangleOverlap.cpp | 0b18dc064b47566d607fbb816aa04b87d496590d | [] | no_license | anaypaul/LeetCode | 6423c4ca1b0d147206c06ebb86c9e558a85077f2 | 667825d32df2499301184d486e3a674291c0ca0b | refs/heads/master | 2021-09-28T06:05:21.256702 | 2020-10-12T04:01:46 | 2020-10-12T04:01:46 | 153,226,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,904 | cpp | RectangleOverlap.cpp | class Solution {
public:
bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {
int ax0 = rec1[0];
int ay0 = rec1[1];
int ax2 = rec1[2];
int ay2 = rec1[3];
int bx0 = rec2[0];
int by0 = rec2[1];
int bx2 = rec2[2];
int by2 = rec2[3];
... |
df1cf5821b67d3cdca9bf0b8c885339ecdec5b24 | 3696156349f138b4ae6e7122977aee605082e766 | /atcoder.jp/abc163/abc163_c/Main.cpp | b00673d113c667ad23ae4546d0ef3e42cf0763c4 | [] | no_license | ryu-dev/Atcoder_archive | a69fd6ebb7de3f66db2661c38de39cd9a28f01a5 | 85a8712c884287c66633c13bd3d98df88d7999da | refs/heads/main | 2023-07-22T11:50:51.261534 | 2021-08-29T12:43:46 | 2021-08-29T12:43:46 | 306,061,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | Main.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,a;cin>>n;
map<int, int>mp;
for(int i=1;i<n;++i){
cin>>a;
++mp[a];
}
for(int i=1;i<=n;++i){
cout<<mp[i]<<endl;
}
} |
9648c7acfbb3ea8908cc5bf41def49e1a0d0c668 | 9fca8099b867a4f15f2696a108b6e58a4f3238e3 | /src/world.hpp | d7c4743ef9c71da9380de1a26ccaac64225f17a0 | [] | no_license | iskinmike/wolf | 89dd8aa34b523a59ee5768e3c27bd852e29e6af3 | b5fe1641c175edf51d8e6548d9b805a1177b3639 | refs/heads/master | 2020-04-25T23:12:34.797061 | 2019-02-28T15:29:14 | 2019-02-28T15:29:14 | 173,137,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | hpp | world.hpp | #ifndef WORLD_HPP
#define WORLD_HPP
#include <iostream>
#include <SDL2/SDL.h>
#include <thread>
#include <atomic>
#include <map>
#include "stb/stb.h"
#include "stb/stb_image.h"
#include "preconstruction_class.hpp"
#include "color.hpp"
#include "game_field.hpp"
#include "player.hpp"
#include "view_screen.hpp"
struct ... |
adea6d37f5b800cd868f42bbcac6f0535804484b | 354a2bcf2d5e5d4e4052ca1b199bfb44fd2bc462 | /vtkm/filter/flow/internal/Messenger.cxx | 52c582f2017a458b881e2a376a51e3f6b4acb364 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kitware/VTK-m | 108f96185fc3c3914498873c58a94ca75f2f2219 | 0c86e3277b6f19c91e5db240da00ff33028b9a2e | refs/heads/master | 2023-08-30T13:05:05.132168 | 2023-08-29T20:36:57 | 2023-08-29T20:37:14 | 190,059,477 | 22 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 13,495 | cxx | Messenger.cxx | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... |
4c34a1d53bcb308a2ac7a84312b24e11edae7616 | c24829931dfb7bd8afa48ba08598e5c542310e6b | /Dijkstra/Dijkstra.cpp | ecacad9dd7cf5c34d5069f845f5a929de6c7ff3d | [] | no_license | IsabellaGarcia/HK-Eco-Path-Calculation | 4a5d7fae22ef4fb71c17ff198de667b71c632aa7 | 9884d53ba3b68dd28adda129c70340d45fda3288 | refs/heads/master | 2020-05-16T21:12:23.291293 | 2014-12-05T07:32:57 | 2014-12-05T07:32:57 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,055 | cpp | Dijkstra.cpp | #include"Dijkstra.h"
#include <tuple>
#include<vector>
//Initialize adjacency list structure
vexNode adjlist[POINTS_NUM];
void Dijkstra::createGraph(const int n,const int e)
{
ifstream infile;
//string line;
infile.open("current_weight.txt");
//getline(infile, line);
database db;
int i;
for(i=1;i<=n;i++)
{
... |
944515ca1171213271cc2a490beb9c6833a3217a | f33886602458e5198df3084ec783d4ac2d01c923 | /1085.cpp | 97ed1f04b4ae18fc4025cf590ccf74bf840a2ff5 | [] | no_license | andongjoo/algorithm | 4effa845698060dc6079638cff4c73752f3fc792 | 22622d1fc5cef10beabbf0b1c5ac3f2136664cfa | refs/heads/master | 2021-06-18T12:31:47.259169 | 2021-02-15T11:54:18 | 2021-02-15T11:54:18 | 176,703,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | cpp | 1085.cpp | #include <iostream>
#include <algorithm>
#include <queue>
using namespace std;
const int MAX=1001;
int dy[]={1,-1,0,0};
int dx[]={0,0,1,-1};
int cnt[MAX][MAX]={0};
int visit[MAX][MAX]={0};
int map[MAX][MAX]={0};
int x,y,w,h;
queue<int> q;
int main(int argc, char** argv) {
cin>>x>>y>>w>>h;
q.push(x);... |
976ec1b0864f5bb68790edb8d68c6f76b4426353 | a8be210046488b8e8723475839c3975280dade3e | /Game/Game/ENTITY.h | 71d32460e490e968538186b1a9921368361f0a29 | [] | no_license | romashka99/game_mario | ecd96bd2e86ac0f9f95aa3792326738843983aab | 6412e92f38fc048f4cf66ebb651a25c521446e6a | refs/heads/master | 2023-03-08T11:49:54.637446 | 2021-02-12T11:24:22 | 2021-02-12T11:24:22 | 338,296,715 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 9,012 | h | ENTITY.h | #include <SFML/Graphics.hpp>
#include "level.h"
using namespace sf;
using namespace std;
class ENTITY
{
public:
float dx, dy, speed;
int health;
bool life, onGround;
vector<Object> obj;//вектор объектов карты
FloatRect rect;
Sprite sprite;
Texture texture;
String name;
ENTITY(Texture &texture, String Name, fl... |
6d29b6f402acfae7eba4e7fef03585ffc8ae6703 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Event/xAOD/xAODMuonAthenaPool/src/xAODMuonAuxContainerCnv.cxx | 36f9fd14f54c7ed6018165dd1d2b56a28db951d9 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 169 | cxx | xAODMuonAuxContainerCnv.cxx | /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
// Dummy source file so that the build system knows that this
// is a custom converter.
|
95e0f9a3d8638dc00bd575075dd497eef563cf16 | 54fbab5a0ec14e4e634ef205b38787f8c4bf18e6 | /nsl/rts/incl/nsl_dout_num_1.h | 52b847ed7a0b4954e9f9d5773efc4b850490e856 | [] | no_license | biorobaw/QTNSLSpring2018 | dcc5b954e0560740657256ce953b595c828fcfad | 4d8afa6314ac6f15f09ef989e991d39b6980d712 | refs/heads/master | 2021-07-20T15:29:42.724283 | 2020-05-14T21:46:46 | 2020-05-14T21:46:46 | 162,358,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,325 | h | nsl_dout_num_1.h | /* SCCS %W%---%E%--%U% */
//
// nsl_dout_num_1.h
//
#ifndef _NSL_DOUT_NUM_1_H
#define _NSL_DOUT_NUM_1_H
#include "nsl_public.h"
#include "nsl_num_1.h"
class nsl_num_0;
extern fstream* NSL_FILE;
extern int TRACE_FG;
template<class NslNumType, int NslTypeId>
class nsl_dout_num_1 : public nsl_num_1
{
public:
nsl_dout_n... |
dadf35f6a4b1ff1c291a97c13ec70203974be9ad | cd327aee5966e332c384b1a59eeab0e20c45c6bd | /Source/Sks/Src/Accelero/IntelliSS7/common/test/SampleApp/WorkerPool/src/App1Main.cpp | 26fd0ca9441bcf52c4d88cb868ec5b91cce9c338 | [] | no_license | komi-jangra/A_TEST | 4ae3b7c31f0db75e210f0b7e514c14cee5b24443 | 117f4d702d241de6074903be0e5a579f450fff91 | refs/heads/master | 2021-01-22T23:48:28.202567 | 2017-03-21T07:15:15 | 2017-03-21T07:15:15 | 85,664,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,521 | cpp | App1Main.cpp | /***************************************************************************
* *
* Copyright 1997 IntelliNet Technologies, Inc. All Rights Reserved. *
* Manufactured in the United States of America. *
* ... |
4c39be5d94f03939f1a62382264a1f82d0390476 | 576a2a4b2d576c9ef263a7d2858665bff4f19bfa | /src/bsdf/fresnelblend.cpp | 89647d0c7dd83dd453a478fa86195b3696d11a3a | [] | no_license | brickray/pol | 827799236d3058d11724bfd7789883cf5ca5da34 | c2303bae0d35b86797a1f60c554ea3f55864afc2 | refs/heads/master | 2020-08-24T14:28:53.434452 | 2020-03-25T13:25:59 | 2020-03-25T13:25:59 | 216,844,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,715 | cpp | fresnelblend.cpp | #include "fresnelblend.h"
#include "../core/scene.h"
namespace pol {
POL_REGISTER_CLASS(FresnelBlend, "fresnelblend");
FresnelBlend::FresnelBlend(const PropSets& props, Scene& scene)
:Bsdf(props, scene) {
string diffName = props.GetString("diffuse");
string specName = props.GetString("specular");
diffuse = ... |
04d37180243614c6700263826ed9c72f258057b2 | b778e917abddb88107d669d731cdbcf10baef0ee | /vision/CameraParameters.h | 8a7397030c61e8cfad1fa72508b33c1d33541220 | [] | no_license | PamirGhimire/cvPlay | 2e22585186577763e127b925429676f50c3062a5 | c80760356a445cdafb56a3992b0d41c1a4e6294b | refs/heads/master | 2020-09-16T08:17:08.184440 | 2019-12-23T19:34:50 | 2019-12-23T19:34:50 | 223,709,470 | 0 | 0 | null | 2019-12-23T19:34:52 | 2019-11-24T07:43:25 | C++ | UTF-8 | C++ | false | false | 300 | h | CameraParameters.h | #pragma once
namespace cvp {
namespace vision {
constexpr float kFocalLength = 1000;
struct CameraIntrinsics {
float focal_x_{kFocalLength};
float focal_y_{kFocalLength};
float skew_{0};
float optical_center_x_{0};
float optical_center_y_{0};
};
} // namespace vision
} // namespace cvp |
3bb54866ffbd2c0ae48bd3840d1f5cb69192827d | e81f4aaae967e99f060364990000701f3c383bb3 | /labs/lab8/code/code/AvlTree.h | e097e119886360821c23877c2760abdc3a95c1cd | [
"Apache-2.0"
] | permissive | acarteas/Teaching-DataStructures | 262c5a27bdef4c5c85674968fc6b248e3e9d1c6f | 4b90ab02e8251315f6d455a95e35d7f032bee76f | refs/heads/master | 2021-06-05T14:53:38.580314 | 2019-11-07T18:22:03 | 2019-11-07T18:22:03 | 115,886,774 | 12 | 20 | Apache-2.0 | 2018-05-10T18:10:56 | 2017-12-31T21:45:15 | null | UTF-8 | C++ | false | false | 2,951 | h | AvlTree.h | #pragma once
#ifndef AVL_TREE_H
#define AVL_TREE_H
#include "BinarySearchTree.h"
template <typename T>
class AvlTree : public BinarySearchTree<T>
{
private:
AvlNode<T>* rotateRight(AvlNode<T>* node)
{
//Let new_root = node's left child
AvlNode<T>* new_root = node->getLeft();
//Set node's LC equal to new_root... |
95049f5eec31dffa9ee5f47b7a3664634bc033ba | 6eab1018af8cf91c7cfb120631edd4c68b57d666 | /applications/system-service/apibase.h | 5ffdd356a9c1db3aad8ed7cf96e419002cbe8792 | [
"MIT",
"Apache-2.0"
] | permissive | Utopiah/oxide | 09011db34d5b205cbf707c0b5cbd9d06b07f5e41 | ba28d16aad5cbd036de98d036f89377993e991a3 | refs/heads/master | 2022-12-27T13:59:04.514420 | 2020-09-28T14:30:57 | 2020-09-28T14:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | apibase.h | #ifndef APIBASE_H
#define APIBASE_H
#include <QObject>
#include "dbussettings.h"
class APIBase : public QObject{
Q_OBJECT
Q_CLASSINFO("Version", OXIDE_INTERFACE_VERSION)
public:
APIBase(QObject* parent) : QObject(parent) {}
virtual void setEnabled(bool enabled) = 0;
};
#endif // APIBASE_H
|
1ee5f4c98955bd8931832fa599af6c83fa625f4b | d8bca84c6440baeb1184bf593f47723c3e44483d | /src/gil.h | 8db9ade8a16c6e96a22cbe4bb1af7d464b7ea821 | [
"BSD-3-Clause"
] | permissive | wyli/cpp-py-example | 40fca8d35d91a344725bf73e414cc1bd0bea10ba | 8ad6fd8f0b4a4f4ddcde2f21099fc9d914cc0f36 | refs/heads/master | 2020-03-20T06:06:25.773113 | 2018-06-13T16:04:35 | 2018-06-13T16:04:35 | 137,238,726 | 0 | 1 | null | 2018-06-13T16:00:34 | 2018-06-13T16:00:33 | null | UTF-8 | C++ | false | false | 749 | h | gil.h | #pragma once
#include <boost/python.hpp>
class ScopedGilRelease
{
protected:
PyThreadState * _thread_state;
public:
inline ScopedGilRelease()
: _thread_state(nullptr)
{
if (PyEval_ThreadsInitialized() != 0)
_thread_state = PyEval_SaveThread();
}
inline ~ScopedGilRel... |
fe911269374a2d1c8b3f448fb3648c3fa894a0f6 | aeabee0b5ba8cb0b190fb88fce144b8021a6f6e0 | /libraries/newTOclass/newTOclass.h | ae82573431a580877744adc7453d4abcf1d5259e | [] | no_license | guydvir2/Arduino | 7313d590af23c95f7af59e7b1d07e19ed438f344 | a33077d21ebe2b07d838794e0548d6bcaa311bbe | refs/heads/master | 2023-05-26T11:27:59.517191 | 2023-04-21T13:17:06 | 2023-04-21T13:17:06 | 144,481,047 | 3 | 0 | null | 2018-11-25T20:34:29 | 2018-08-12T16:05:45 | C++ | UTF-8 | C++ | false | false | 83 | h | newTOclass.h | #ifndef newTO_h
#define newTO_h
#include "Arduino.h"
class CronJobs
{
};
#endif |
3474a76d075a92db7dd569ee795fd2d739408dee | 8ab3e882303250ef5b279418d7916c7036b0a1d9 | /workspace/w05_04_DoSomethingByFwdRef/DoSomethingByFwdRef.cpp | 92357cb60e3f7eaabbe56376585bf840ee22b2c5 | [] | no_license | PeterSommerlad/CPPCourseExpert | eaac3a0562ef390b259031629d943f82e384b8cd | 84b365c4508c7906f638199115fc2f9597319b4d | refs/heads/main | 2023-06-12T00:31:38.864261 | 2023-05-26T15:51:29 | 2023-05-26T15:51:45 | 470,980,622 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | DoSomethingByFwdRef.cpp | #include <iostream>
#include <boost/type_index.hpp>
struct S {
S() = default;
S(S const &) {
std::cout << "S(S const &) -> copy\n";
}
S(S&&) {
std::cout << "S(S &&) -> move\n";
}
};
void do_something(S const &) {
std::cout << "do_something(S const &)\n";
}
void do_something(S&&) {
std::cout << "do_somethin... |
bffc2b9ed6fcf67ad63f50b0d4b7d370ed02274b | 20ad3fe7c319e8574cefdc7fda0fb1316789d50b | /[Cpp]Week3/[Cpp]Week3/Stack.h | 49982419702a029c1b65e68ec62635f0a9db3b6e | [] | no_license | Jsfumato/Cpp_NEXT | b8e107414b7bd6634965ac809913130c9b968ecb | ceaf23a78632d371a6cca3e1f655066e4bda0c07 | refs/heads/master | 2020-05-26T07:21:45.155332 | 2015-10-14T15:26:15 | 2015-10-14T15:26:15 | 42,442,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | h | Stack.h | //
// Stack.h
// [Cpp]Week3
//
// Created by Jsfumato on 2015. 10. 1..
// Copyright © 2015년 Jsfumato. All rights reserved.
//
#ifndef Stack_h
#define Stack_h
#include <iostream>
using namespace std;
template <class T>
class Stack
{
private:
T* list;
int size;
int top;
public:
Stack(int num = ... |
a10f3cf038dfe6124118dd762750eaca9a51a81a | 12909a45a5c0c0731c93a07ea2f55946818417e3 | /DxFontFallback/DxFontFallback.cpp | 3b63bfb2ed4af9b674f4fff529ac4e7cca5338f4 | [] | no_license | gillesgg/DxFontFallback | 4f4a576a902a822804d2699fa7374835805780cb | c89157c5e6d471b963931718131b572343c5fc8f | refs/heads/master | 2020-08-27T23:42:52.882500 | 2019-10-25T12:32:43 | 2019-10-25T12:32:43 | 217,523,374 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | DxFontFallback.cpp | // DxFontFallback.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include "FontFallbackConst.h"
#include "MapCharacters.h"
#include <iostream>
int main()
{
MapCharacters map;
map.init();
map.CreateFontFallBack();
for (auto i = 0; i < DWriteFontFallback... |
2d538d67e17a1bf6ae76e37847d5b89d9d847071 | fa476614d54468bcdd9204c646bb832b4e64df93 | /otherRepos/luis/CDC/SNACKDOWN2016/QR/B.cpp | 4d36ffe208e40975aecd88b433d45c328afece45 | [] | no_license | LuisAlbertoVasquezVargas/CP | 300b0ed91425cd7fea54237a61a4008c5f1ed2b7 | 2901a603a00822b008fae3ac65b7020dcddcb491 | refs/heads/master | 2021-01-22T06:23:14.143646 | 2017-02-16T17:52:59 | 2017-02-16T17:52:59 | 81,754,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cpp | B.cpp | #include<bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0;i<n;++i)
#define all(v) v.begin(),v.end()
typedef long long LL;
typedef vector< LL > VLL;
typedef vector< int > VI;
VLL get( VI &A ){
int n = A.size();
VLL DP( n );
DP[ 0 ] = A[ 0 ];
for( int i = 1 ; i < n ; ++i )
DP[ i ] ... |
50bc767b3599f5b29eeb951f375cba4c9338b774 | 32c980889389b022b8d1e5645d272775d11b51b2 | /pb_message_package/http_json_package.hpp | 0cc0657287de5181a53b9bc78eacf386ec4489ec | [] | no_license | xyconly/btool | 063836f671480ea8b6b60d361bbd7ce105408ee3 | 60d67d81dc32ef67c85c5c9a06014b037755e3f4 | refs/heads/master | 2023-07-11T03:02:18.282931 | 2023-07-07T02:13:51 | 2023-07-07T02:13:51 | 173,895,319 | 16 | 0 | null | null | null | null | GB18030 | C++ | false | false | 11,637 | hpp | http_json_package.hpp | /************************************************************************
* Purpose: 用于http通讯的json字符串消息封包解包
Json格式:
{
"Code": 200,
#"Msg": "",# // 无错误时为空
"ServerTime": 2256612312,
"Data": {}
}
/************************************************************************/... |
4254dfdefe83c6ac0b4c86cd0ca75f44f72c9fc0 | f2c14b21568a9c827b4b2b32651be645003f1838 | /colors/docker/GradientEditor.cpp | a989c5bedac5967d2baff60631fdf8a804a5209c | [] | no_license | KDE/koffice-plugins | c300d852a6dfe1dddbe86316e28c03ee49de854d | ba6e431a676058970fa8f8223d4ca40d34159adf | refs/heads/master | 2016-09-09T21:05:08.672197 | 2013-10-13T04:25:03 | 2013-10-13T04:25:03 | 42,722,310 | 2 | 1 | null | 2015-10-10T10:29:14 | 2015-09-18T12:58:18 | C++ | UTF-8 | C++ | false | false | 5,580 | cpp | GradientEditor.cpp | /* This file is part of the KDE project
* Copyright (C) 2011 Thomas Zander <zander@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or ... |
22810c56508d6f21fac4ddd5344edc80bbe7a254 | 475850f09ea39d11814f3c9f6e301df2fd62c76e | /leetcode/389_Find the Difference.cpp | a3a8227071ff45522d5e6d4d99ba88d231504305 | [] | no_license | njuHan/OJcodes | fed59759b4b954a123cdc423d8c36addd7252d41 | 1adc57f0850f3f0031ba8d62e974ab3842da5c2d | refs/heads/master | 2021-01-25T14:22:21.728203 | 2019-06-16T05:11:55 | 2019-06-16T05:11:55 | 123,686,571 | 16 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | 389_Find the Difference.cpp | int a[26] = {0};
class Solution {
public:
char findTheDifference(string s, string t) {
memset(a, 0, sizeof(a));
for (char& ch : t) a[ch-'a']++;
for (char& ch : s) a[ch-'a']--;
for (int i=0; i<26; i++) if (a[i]) return i + 'a';
}
}; |
87dece1eddb434a22af317b3188f79671962edc6 | 0f6e9c1c3e44b48fac41dc36d6f114e280617ef6 | /chap07/7-3.cpp | dd62ad3ecd75b1bb0d97e71e63e11c5182a9fdbc | [] | no_license | lilixuelian/mingjie-book | 78af575dc391897114428d4da539f33cad426d1c | a0dcfcec5b84ada9503bc396ebe81e1a4267266b | refs/heads/master | 2020-04-10T13:06:45.567820 | 2019-08-21T08:01:05 | 2019-08-21T08:01:05 | 161,040,911 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 427 | cpp | 7-3.cpp | #include <stdio.h>
unsigned rrotate(unsigned x,int n){
return x >> n;
}
unsigned lrotate(unsigned x,int n){
return x << n;
}
int main (void)
{
int i, j;
printf("请输入整数:%d", i);
scanf("%d", &i);
printf("请输入移动位数:%d", j);
scanf("%d", &j);
printf("%u向右移动%d次后的值:%u\n", i, j, rrotate(i, j));
printf("%u向左移... |
5ae3ec51f6271811522b8b85f71d67370566d8c8 | 5d3b17e59b458815d15c7072368d5ca014bffe82 | /qtworkplace/zhizuoruanjian/widget.cpp | 55a3b3bb1135cc2f4521695e0432500291e1c196 | [] | no_license | wushengjun85/QtcreatorWorkplace | 274d75331bbdeec57f11f9bb1b59c35c551b3ae4 | 2366644909f2dce2e5640d7cd67fbee447740bea | refs/heads/master | 2021-01-19T23:50:12.348968 | 2017-12-25T08:40:55 | 2017-12-25T08:40:55 | 89,039,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | widget.cpp | #include "widget.h"
#include "ui_widget.h"
#include<QString>
#include<QDebug>
#include<QByteArray>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
// QString str="FF";
// bool ok= true;
// int decotc=str.toInt(&ok,10); //dec=255 ; ok=rue
// qDebug()<<... |
ee60a386036641473db3291651558d1d4ce01c59 | 9bd6b19ab87747123fe1de195c42cdcf27e855a1 | /AdeeptLesson/Lesson12/_12_PIRSensorModule/_12_PIRSensorModule.ino | 178fa5dccd2f6a0bb0dbd0a1e530993d1b49892c | [] | no_license | adeept/Adeept_Ultimate_Sensor_Kit_for_UNO_R3 | bd1aba0fa547fde388407ffcea18f456cf355a4c | 2a7bdc05a4426529c66ef616f52395a5661b0000 | refs/heads/master | 2022-06-23T09:01:38.936541 | 2020-05-12T02:18:58 | 2020-05-12T02:18:58 | 261,412,600 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 808 | ino | _12_PIRSensorModule.ino | /***********************************************************
File name: _12_PIRSensorModule.ino
Description: The motion has been detected by PIR sensor module,
and displayed in the serial monitor
Website: www.adeept.com
E-mail: support@adeept.com
Author: Tom
Date: 2017/03/14
*****************************... |
291bc99a155500abedab0648b99edb4c8ec1df41 | d96ebf4dac46404a46253afba5ba5fc985d5f6fc | /security/sandbox/chromium/sandbox/linux/bpf_dsl/bpf_dsl.h | c56cdefb7781e341945536fced26a26eee1dd399 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified-and-comments-removed | f9de100d716661bd67a3e7e3d4578df48c87733d | 74cb3d31740be3ea5aba5cb7b3f91244977ea350 | refs/heads/master | 2023-08-04T23:19:13.836981 | 2023-08-01T00:33:54 | 2023-08-01T00:33:54 | 211,297,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,333 | h | bpf_dsl.h | #
ifndef
SANDBOX_LINUX_BPF_DSL_BPF_DSL_H_
#
define
SANDBOX_LINUX_BPF_DSL_BPF_DSL_H_
#
include
<
stddef
.
h
>
#
include
<
stdint
.
h
>
#
include
<
memory
>
#
include
<
utility
>
#
include
<
vector
>
#
include
"
base
/
macros
.
h
"
#
include
"
sandbox
/
linux
/
bpf_dsl
/
bpf_dsl_forward
.
h
"
#
include
"
sandbox
/
linux
... |
63f3663e2c3b07114cb162e985ef395f67f8e0b0 | 8f9964d7cf0df36b2bd073ae94533f304e93fc63 | /services_2.0/password_manager/PasswordManager.pb.cc | cdd8020415718261c86716d11421c07330b70c2a | [] | no_license | yangsongx/cdbackend | 5aee1999a38a6864948f2f3a8b40c25bf7d0176b | 4bd9505cc9d2c31910257a07dd9d5708cb1cef9c | refs/heads/master | 2020-07-14T00:47:45.607616 | 2016-03-17T07:58:11 | 2016-03-17T09:13:27 | 67,760,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 30,998 | cc | PasswordManager.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PasswordManager.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "PasswordManager.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_s... |
a34672d7f82768eb7576007c4982e416dcfe63c4 | 55c1b823a32cfb5df84c3c3e1e0e72d1c5d80069 | /include/selectionsort.h | 5c559d4f4cbad31fb9220c9c557f2b6b1c81cde7 | [] | no_license | carlcherry/coding_practice | 13b824680743c21807e4e5b5eb0f8b272d4fcf83 | c15e94f52fea0bd61de2073c3d8508aefa042513 | refs/heads/master | 2020-05-30T15:11:52.973387 | 2019-04-22T17:33:44 | 2019-04-22T17:33:44 | 4,406,846 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 389 | h | selectionsort.h | /*
* insertionsort.h
*
* Created on: 2013-01-22
* Author: carl
*/
#ifndef __CC_SELECTION_SORT__
#define __CC_SELECTION_SORT__
namespace cc
{
void testSelectionSort();
void selectionsort(int *arrayToSort, int length);
void selectionsort2(int *input, int length);
int findsecondlargestelement(... |
090c494232290aa7c1a859ddc207e3e4d56d2814 | 1993b222111223c8a9976a9b6552d68bf626d7e0 | /20200514-1074.cpp | 0cabbb416ec44e7a9f02d78ab9c7cc5ce962ff72 | [] | no_license | mango0713/C | 6ea40f6bf76a0e33ce8a331bf596aab1b33773a4 | 60afccd972b21f6871628fd84baeaf6a021e65ac | refs/heads/main | 2022-12-29T18:46:57.047727 | 2020-10-13T08:22:37 | 2020-10-13T08:22:37 | 301,655,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | 20200514-1074.cpp | #include <stdio.h>
int main (void)
{
char x, t='a';
scanf("%c", &x);
do
{
printf("%c ", t);
t+=1;
}while(t<x +1);
}
|
00017c8fe56bbb3179f513fe6ba6cc21e85404a0 | ded789c4a7a443bf1bc0b7ccb6a34947dcf71fa2 | /test/stm.cpp | 59869bf27895cef643d75e9e954739d1312adfd7 | [
"LicenseRef-scancode-proprietary-license",
"BSL-1.0"
] | permissive | roland-wolf/HsmBase | cb2bed5f73ff8116d439ccf7ef8c021644480e93 | a09b86c5e6d0fd701c1e671f35625a257a4d4b4b | refs/heads/master | 2023-04-09T11:19:02.178556 | 2023-03-30T07:48:37 | 2023-03-30T07:48:37 | 33,789,737 | 2 | 2 | BSL-1.0 | 2021-05-14T19:46:33 | 2015-04-11T19:44:20 | C++ | UTF-8 | C++ | false | false | 5,404 | cpp | stm.cpp | #include <iostream>
#include "stm.h"
//Implementation of the state machine published in
//Practical UML Statecharts in C++
//Miro Samek
//2nd Edition
//page 88
Stm::Stm()
{
setRoot(&Stm::s);
//define the hierarchy of states
addChildState(&Stm::s, &Stm::s1);
addChildState(&Stm::s, &Stm::s2);
addC... |
e648752140a7a92617d1f7c144d8e1322150337d | c3b90a52a52d9325176fcf1d108369a0bf35578e | /training/cpp/accelerated_cpp/5/5-1/permuted_rotation.h | 8f2c4143a53201fbc2cfa7f5a72b97e1e4654536 | [] | no_license | all-in-one-of/studies | 1b8d778f48de0f1c9b0808bd665b64fb40851a81 | 17cbec59098f99164f97650ae9cb7afe27e18f80 | refs/heads/master | 2020-06-13T15:48:55.416807 | 2019-08-24T08:02:58 | 2019-08-24T08:02:58 | 194,699,836 | 0 | 0 | null | 2019-07-01T15:33:54 | 2019-07-01T15:33:54 | null | UTF-8 | C++ | false | false | 295 | h | permuted_rotation.h | #ifndef __Permuted_Rotations__
#define __Permuted_Rotations__
#include <vector>
#include <string>
struct permuted_rotation {
std::vector<std::string> rotated;
double f_index;
};
std::vector<permuted_rotation> rotations(const std::string& s);
void rotate(const std::string& s);
#endif |
1f1118f48d418d27db52e82698ca902345f1e1de | 3f7028cc89a79582266a19acbde0d6b066a568de | /test/extensions/config_subscription/grpc/pausable_ack_queue_test.cc | e52e3a32b414f8d7fae8345888e66f25fd0340d0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | C++ | false | false | 2,652 | cc | pausable_ack_queue_test.cc | #include "source/extensions/config_subscription/grpc/pausable_ack_queue.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Config {
namespace {
TEST(PausableAckQueueTest, TestEmpty) {
PausableAckQueue p;
EXPECT_EQ(0, p.size());
EXPECT_TRUE(p.empty());
}
TEST(PausableAckQueueTest, TestPush) {
PausableAc... |
b8d5ddbf582ccb403a3c3a3b17402c44a6a7e9cd | 6f1daf0280352575f21f93e85ea3dc96c44af156 | /returnwindow.cpp | 830bac81cb6c27ee2fd6c12e868069976067109f | [] | no_license | ZzzAmy/bookstore | 09fa9698fbd17ac73734ecd347aa0bf59fad27f8 | fe1c4349976889778a251ec027a44c1b9b1d5e29 | refs/heads/master | 2021-01-20T17:57:39.799395 | 2016-07-14T09:18:33 | 2016-07-14T09:18:33 | 63,223,098 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | returnwindow.cpp | #include "returnwindow.h"
#include "ui_returnwindow.h"
#include "isreturn.h"
returnWindow::returnWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::returnWindow)
{
ui->setupUi(this);
}
returnWindow::~returnWindow()
{
delete ui;
}
void returnWindow::on_pushButton_clicked()
{
Isreturn a;
if... |
a668a4d8fb63984a998fa87651d1b7d1e4201862 | 97943eb0c1dc4d20f47b0b90a09887a5bd14e75b | /game/obstacle.cpp | 40d396a59716937c6c6763f0afeface2ae2716b3 | [] | no_license | Biohazard90/Project-Neo-Gemini | c304846d8ed6b0aa2edc4bde314170dff7fe083d | 9d84c4023b42be5730151894b951a6ea0591686f | refs/heads/master | 2021-01-21T12:06:45.832651 | 2013-12-11T22:37:28 | 2013-12-11T22:37:28 | 14,528,789 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | obstacle.cpp | #include "obstacle.h"
#include "gamebase.h"
REGISTER_ENTITY_CLASS(Obstacle, obstacle);
Obstacle::Obstacle()
{
}
void Obstacle::OnSimulate(float frametime)
{
BaseClass::OnSimulate(frametime);
if ((GetOrigin().x + GetSize().x) < Camera::GetInstance()->GetWorldMins().x)
{
Remove();
}
}
bool O... |
e99c8616954eb4c8f26214c429f6dd09b3fdd56a | 806735c91d9fac50ac6a0e0b44c68ac438b9ecb6 | /iitk interview/night-fury/Q.cpp | 5c159014449d257c940070f8cdd0f4f4ce20d154 | [] | no_license | v-pratap/cp | a04119a5c42853b5ae5bb3535deaa726a23b113d | 28ba7e27cd7b065800954445497642b852e20160 | refs/heads/main | 2023-06-05T03:46:55.685212 | 2021-06-28T05:56:06 | 2021-06-28T05:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | Q.cpp | #include <bits/stdc++.h>
using namespace std;
// Complete the encryption function below.
string encryption(string s) {
string S = "";
for(auto &x:s){
if(x!=' ')
S+=x;
}
int n = S.size();
int r,c;
int root = sqrt(n);
if(root*root==n)
r = c = root;
else{
... |
8f936091328396e54953a445e05f48eb583d25a6 | d35d86a90eb171ccd4ae8a3c9b0ffdeadb0165ed | /src/LineSegment.h | 90ae48d3d9293f5d1b30c7aad22e6393989c8cf9 | [] | no_license | fosterkong/terrainExploration | f7aa033cd79b5e10f17534899b81b0534d65b9ef | a2d4fa9392acc43355218b0af5add0d229150c9a | refs/heads/master | 2021-12-05T20:44:15.433154 | 2015-08-24T14:40:18 | 2015-08-24T14:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | LineSegment.h | #ifndef LINE_SEGMENT_H
#define LINE_SEGMENT_H
#include "Vector.h"
#include "NodeLineSegment.h"
class CLineSegment
{
public:
CVector a,b;
CLineSegment(){}
CLineSegment(CVector _a, CVector _b) : a(_a), b(_b) {}
CLineSegment(const CNodeLineSegment &_nls) : a(_nls.up->position), b(_nls.down->position) {}
... |
4857e66e19ebc0372acb323bdc373844730f449a | cb7ac15343e3b38303334f060cf658e87946c951 | /source/runtime/RenderCore/ShaderCache.h | ec0eb4a41c871ad268be4827fab312a7a30de242 | [] | no_license | 523793658/Air2.0 | ac07e33273454442936ce2174010ecd287888757 | 9e04d3729a9ce1ee214b58c2296188ec8bf69057 | refs/heads/master | 2021-11-10T16:08:51.077092 | 2021-11-04T13:11:59 | 2021-11-04T13:11:59 | 178,317,006 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 108 | h | ShaderCache.h | #pragma once
#include "ShaderCoreConfig.h"
namespace Air
{
///class SHADER_CORE_API ShaderCache : public
} |
dd574d733bc3c497593ce64399f2dcae63feb7d9 | 9540b4cbac0ef7ac7b33260e7d2289afab93bbad | /agent-server/task/agentQueryTask.h | 459dbc550fd22d7b76d52f6f83a896ba6889062f | [] | no_license | xuchuG/agent | b658469d4c7077c86d46116ff5c868e3cd3905be | 708efacce66cd6464948f5011cdddc314de1e693 | refs/heads/master | 2021-09-05T21:09:16.922318 | 2018-01-31T02:22:04 | 2018-01-31T02:22:04 | 117,307,135 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | agentQueryTask.h | #ifndef AGENTQUERYTASK_H_
#define AGENTQUERYTASK_H_
#include "agentBehaviorTask.h"
#include "../communicationModule/epoll/tcpEpoller.h"
#include "../tableManage/agentState.h"
class AgentQueryTask : public AgentBehaviorTask
{
private:
TcpEpoller * tcp_epoller;
public:
AgentQueryTask(TcpEpoller * ptr)
... |
c30fc02208200b4a97811cb9de22f55bf8a45a55 | e8b3391e925cf5c5e4b434c01eb5b2e2c20298f1 | /stack.hh | 2a879555f0eb856f7c25115ce28e619170533495 | [] | no_license | farnir/syntax | 14aaf43a01b208e489e0e42d91bfedf5eb2ea2e2 | d2fc0e291b3cecaba541862dbb661edd7c493c2e | refs/heads/master | 2020-06-01T17:08:33.555033 | 2019-06-09T16:00:08 | 2019-06-09T16:00:08 | 190,860,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | hh | stack.hh | //
// Created by daze on 08/06/19.
//
#ifndef SYNTAX_STACK_HH
#define SYNTAX_STACK_HH
#include <iostream>
#include <queue>
#include "symbol.hh"
class Stack {
private:
std::string _str; // String corresponding to the input file
std::deque<std::string> _queue; // Queue representing the stack acting as a LiFo
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.