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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd9f9f87bc23d20bfc184880bf70a85f7b4fc340 | 20206b983947279e9968f61bda07c45bf6d7d349 | /Config.h | afb1157b146d95eacfd94e0bd942f941b2d82ebd | [] | no_license | troyh/OAK | ac6bef62bcf7cc3a4cb308f6ae6c0c4efde6ed25 | 7fca1dd8c27bb7fa0e3fe6530c8563f54437d697 | refs/heads/master | 2021-01-23T22:43:24.986019 | 2009-05-06T22:15:21 | 2009-05-06T22:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | h | Config.h | #include <map>
#include <string>
#include <boost/filesystem.hpp>
class Config
{
std::map<std::string,std::string> m_settings;
void readConfig(boost::filesystem::path path);
public:
Config(boost::filesystem::path path);
~Config() {}
const char* get(const char* name) const;
};
|
8e91beed9b95440a16040d0956ca663476a7cca7 | 9f6d0c9e9f0877e0cc954f61e2245c88839918f9 | /v8/gen/64/torque-generated/src/objects/js-plural-rules-tq-inl.inc | c0ccab9a36211af7d587db4cc2acb0d179fa7b95 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | fibjs/fibjs_vender | c2f4fd35b7ed9e9ea06680d75453b3ee81a25d0d | 6aa2431f65e17f9a51b60f12c14a36a8464fad5d | refs/heads/dev | 2023-08-03T18:39:02.369823 | 2023-07-27T14:12:00 | 2023-07-27T14:12:00 | 37,327,960 | 7 | 24 | null | 2022-05-18T15:08:24 | 2015-06-12T14:56:51 | C++ | UTF-8 | C++ | false | false | 4,176 | inc | js-plural-rules-tq-inl.inc | // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-plural-rules.tq?l=13&c=3
template<class D, class P>
String TorqueGeneratedJSPluralRules<D, P>::locale() const {
PtrComprCageBase cage_base = GetPtrComprCageBase(*this);
return TorqueGeneratedJSPluralRules::locale(cage_base);
}
// https:/... |
b952bc27ba06dab4023c0673672b6d0d085acdd8 | 84c6b49be66397907fac870c0f0b3520792bce10 | /round_734/InterestingStory.cpp | c7d63a27601ec8f42c01b16bcfd9001797104a48 | [] | no_license | MadhuKashyap/CodeForces | 0df1d7c668af201c64bf7c2b0cab90d0271b88f7 | a4676160a867836b83d5afcbf9d2a3cddd3b83bd | refs/heads/main | 2023-08-20T02:45:49.441502 | 2021-09-25T15:39:38 | 2021-09-25T15:39:38 | 409,621,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,324 | cpp | InterestingStory.cpp | #--------------------------------------------EXPLAINATION--------------------------------------------------------#
#Let f(s,c) = (number of occurences of letter c in word s) - (number of occurences of all other letters in total in s)
#so f(s1+s2,c) = f(s1,c)+f(s2,c)
#Given a sequence s1,s2,s3,......,sn ,a story consi... |
e8dfa0721d2a72e97829ce8ed622e4ec7799e6ea | b4996a436f073a35543cf845e905db5226044d99 | /Jeu2048/Joueurs.h | 9264b3dc095532fec5cea409624d496ad2c369ef | [] | no_license | robinmahieudev/2048c- | 215cdc451e80e015bd2fa56d19a3794114eb420f | 68f3ea815f1ca1af9613eb39d27ddaf549d91867 | refs/heads/main | 2023-07-17T14:22:43.673613 | 2021-08-29T16:13:51 | 2021-08-29T16:13:51 | 401,082,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | h | Joueurs.h | #pragma once
#include "fenetre.h"
#include "Modele.h"
#include "Constantes.h"
class Joueurs :
public fenetre
{
public:
Joueurs();
Joueurs(std::string, int , int, int, int);
void afficherContenu();
void init();
void afficherLesJoueurs();
void setNom(std::string);
void setPrenom(std::string);
vo... |
30a7a47caab36ebe7adebf3be8b837c37e348321 | 64e7dd8dffff0f2d76007760685d6865720babf8 | /Progs/Random/idledetector.h | f108243df9c81acb2082a10a9eeb0b7445fc1822 | [] | no_license | aranjan1002/code4life | 96f7781d676e04adad59c38321027ac903f414fe | 3415d1711f2269ea3965f0ec3b412d93c934b077 | refs/heads/master | 2021-01-16T21:24:26.817307 | 2018-03-01T12:54:05 | 2018-03-01T12:54:05 | 40,381,858 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 324 | h | idledetector.h | #ifndef IDLEDETECTOR_H
#define IDLEDETECTOR_H
/*#include
#include */
class IdleDetector : public QObject
{
Q_OBJECT
public:
IdleDetector(int idleMax);
void start();
void stop();
signals:
void idleTimeOut();
private:
int m_idleMaxSecs;
QTimer* timer;
private slots:
void timeout();
... |
37c6321d08bff858747e37da15f7e98150704672 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/desktop/win32/source/extendloaderenvironment.cxx | 27348f32a7d827ccda873ed448b68d76387d687d | [
"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 | 5,355 | cxx | extendloaderenvironment.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... |
1e966a5e4593f1ce417751a01d193d165a1904a6 | 0ee4fe3d5da59fde802ce47f26f589f5c4d6dd41 | /lib/Core/TxStore.cpp | 4a48b894fbf6b19d98c0e81dc5cf3c510717b536 | [
"NCSA"
] | permissive | yxliang01/tracerx-klee | 00a0f8283cfedf8f7f67e6202de96140715469ed | 2b45fb782e555b216d4838b00283abfeaa932233 | refs/heads/master | 2021-09-24T00:56:10.130511 | 2020-06-20T10:45:31 | 2020-06-20T10:45:31 | 129,641,114 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,998 | cpp | TxStore.cpp | //===-- TxStore.cpp - A view of program memory ------------------*- C++ -*-===//
//
// The Tracer-X KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------... |
8d6d36651e5ca8ff3c7feabdf6dbbe92871148cb | 998ff535c23aa27b7bc7b854c41c574c32f1be12 | /first-try/cpp/project/command.cpp | dbc85ae463dc7c91fd5b2def2fb3e5d912ca8f79 | [] | no_license | yoavzai/Infinity | 4b7b85110133aa53437bca79ba3e0ab72770fa3d | 800199352b814e69094b28e27e1590696fd6a0fb | refs/heads/main | 2023-08-04T19:09:00.956752 | 2021-09-21T02:48:29 | 2021-09-21T02:48:29 | 405,218,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | cpp | command.cpp | #include <string.h>
#include <fstream>
#include <iostream>
#include <sys/socket.h>
#include <netdb.h>
#include "boost/lexical_cast.hpp"
#include "command.hpp"
namespace ilrd
{
CmdData::CmdData(addrinfo* client_info_, unsigned int* addr_len_, int* fd_, char* data_)
: m_client_info(client_info_), m_addr_len(addr_l... |
7277a26242522cfb05a8b4208ed9a9b5a38dd91a | 033a7cf4abd4780055ae3d4f1d9ea7eec1747b6a | /source/asm/x86/value_object.h | 1d61786177a0f45133778cd4704f5ea2128226fb | [] | no_license | killvxk/VirtualCPU | 84cfca08dd8d76f0b7bfeb0e97156725ce9a27c2 | fcde7df2c7d44b74ef79265264752d8a6ee73e70 | refs/heads/master | 2023-07-01T11:58:29.181617 | 2021-08-06T09:45:47 | 2021-08-06T09:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | h | value_object.h | #pragma once
#include <base/marco.h>
namespace Svm::X86 {
class ValueObject {
};
}
|
7dcc1428f7ebb3801be4d16ef770712ae1fab41f | 347aa7f5069327f303bf93302808984dfd8f594e | /PositionMCU/interupt_test.ino | 671a3001f5f215c91ce6e833aa939cf4e00fe67f | [] | no_license | apowel01/control-system | 3a9d3bc5e0b55aad7984428b8a80e08ab3281a7c | 84708248ac81d960c716b20c6dcbf1b63cbc066f | refs/heads/master | 2020-04-01T05:33:02.532391 | 2019-06-22T23:09:04 | 2019-06-22T23:09:04 | 152,908,524 | 6 | 6 | null | 2018-12-01T22:10:08 | 2018-10-13T19:46:27 | C++ | UTF-8 | C++ | false | false | 2,294 | ino | interupt_test.ino | /* Bryce Campbell
* Monty Choy
*
* 11/3/18
*
* Last Updated - 11/5/18
*
* Code for laser sensor interrupt.
*/
#include <SoftwareSerial.h>
#define LASER_DELAY 1000 // wait this amount of time after each interupt
#define LASER_TICK_DISTANCE 100 // distance between reflective tape in feet
int laserSensorPin = 2... |
de76f85e333cd306e163282563305f71584fbcdf | ab48480d3ef86da74f705bec321b72f702098dff | /PolygonRender/addspline.h | 54024e1f201a08186b2716c73602c96b9a8fb9d1 | [] | no_license | gra98rus/Graphics | f1434c3d152cd1be383985482d8621a6fa2aa0a3 | cd67122661ca44442a266a52e556dc3c3883e698 | refs/heads/master | 2020-12-22T04:53:15.433952 | 2020-01-28T06:41:59 | 2020-01-28T06:41:59 | 228,612,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | h | addspline.h | #ifndef ADDSPLINE_H
#define ADDSPLINE_H
#include <QDialog>
#include <QImage>
#include "model.h"
#include <QTimer>
#include <QMouseEvent>
#include "spline.h"
#include <iostream>
namespace Ui {
class AddSpline;
}
class AddSpline : public QDialog
{
Q_OBJECT
public:
AddSpline(QWidget *parent... |
eae649a464591d2d5d41e99841ab2ed3fc4d8751 | 1bbe57f87367bbb6dd4fd6ce8724e8675bc3822a | /ats/source/usermanager.h | 3fb4f5025e75b3dc4667adb48cd4f98fa98f1107 | [] | no_license | u5461177/test_suit | de79121ef11a5dc2c18f1bb2f5ebe635078375a0 | 1be29d675172c81bfe2b787c9b22369061d2faa1 | refs/heads/master | 2023-01-07T06:45:14.833643 | 2020-11-19T02:17:44 | 2020-11-19T02:17:44 | 290,406,045 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | h | usermanager.h | //
// Created by Rong Zhou on 2018-08-03.
//
#ifndef ATS_USERMANAGER_H
#define ATS_USERMANAGER_H
#include "singleton.h"
#include <map>
#include <shared_mutex>
#include <system_error>
#include "user.h"
namespace ats {
class UserManager : public Singleton<UserManager> {
public:
UserManager() = default... |
ee7245a789e8298504a6841bcb0f5f5c7ae97361 | a0a0b8066582b112f67ff174589a38e992d03360 | /desktop_app/src/qtblocksjson.cpp | 3f528359edce7d54e6ab439e8715b1db324453a7 | [] | no_license | ApTyp5/skyBlocks | 758ef30ff25965ca254c48e917a4c0bfd7c2dfaf | 7494b0832a9d2326366614d833dea8faaadd4990 | refs/heads/master | 2020-08-04T01:06:20.991385 | 2019-12-22T09:45:44 | 2019-12-22T09:45:44 | 211,946,448 | 2 | 0 | null | 2019-12-22T09:45:45 | 2019-09-30T20:06:49 | C++ | UTF-8 | C++ | false | false | 4,988 | cpp | qtblocksjson.cpp | #include "qtblocksjson.h"
#include "Block.h"
#include "Line.h"
#include <QJsonArray>
#include <QString>
bool QtBlocksJson::IsArray() const {
return object.isArray();
}
bool QtBlocksJson::CheckCorrect() const {
if (!object.isArray())
return CheckCorrect(object);
QJsonArray array = object.toArray()... |
b66494dbbc079fb4aed7e23156be82ea41186302 | 2816e673c270620b5def178efb62c06e0a78d598 | /DesignPatterns/BryanCrains/6Facade/qt5dp-9-5-master/MyHotel/housekeeping.cpp | 01a17f2cf9995be1ae858bb571133af5a1dffa3c | [] | no_license | girishlande/CPlusPlus | d6e0ce89d41d5837a443085e3fd7a14f6ff3c6b4 | 0ac37beb7b986798b50cb7cbc7a7785017a74979 | refs/heads/master | 2023-08-21T13:02:32.817434 | 2023-08-09T08:33:10 | 2023-08-09T08:33:10 | 203,561,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | cpp | housekeeping.cpp | #include "housekeeping.h"
HouseKeeping::HouseKeeping(QObject *parent) : QObject(parent)
{
}
void HouseKeeping::clean(QString room)
{
qInfo() << "Cleaning room" << room;
}
|
0f973fa027d394fb082d1b369bc2448cf88a19f5 | da4ec18de6f783cce4d6c8cd069168780bce99b1 | /src/c++/include/statistics/MinCovDetGaussian.hh | fe60459ffde9d130678f638fabe1b08e1c432493 | [
"Apache-2.0"
] | permissive | Yanglv-rookie/paragraph | a7912d28a907ccb420b7130255e5ea84d8714216 | e805e261336117a0c6901cdb3d61fd9d7d464611 | refs/heads/master | 2023-04-08T02:30:29.506663 | 2021-04-16T00:21:20 | 2021-04-16T00:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,961 | hh | MinCovDetGaussian.hh | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, Inc.
// 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:... |
acb7ada2e16935fbf75b28798e18b5c81b3e3d4a | 65a003b040520730f0db71d0df1d0d52a30c2c50 | /control/lib/focusing/TopAdapter.h | 6b8608416c0f9043816b22872a01462256142c77 | [] | no_license | AndreasFMueller/AstroPhotography | dd4db3b90bd14eaf0f8cc225d19da1477a21418d | 23174595f1d0cb64bfcba46db75ade9925d245a4 | refs/heads/master | 2023-01-12T12:53:51.582049 | 2023-01-02T20:43:42 | 2023-01-02T20:43:42 | 7,716,135 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | TopAdapter.h | /*
* TopAdapter.h
*
* (c) 2018 Prof Dr Andreas Müller, Hochschule Rapperswil
*/
#ifndef _TopAdapter_h
#define _TopAdapter_h
#include <AstroImage.h>
#include <AstroFocus.h>
namespace astro {
namespace focusing {
class TopAdapter : public image::ConstImageAdapter<float> {
FocusableImage _imageptr;
const image::C... |
b1e491a2afaaa1ccd4cd5727e8cafd6b46ee5af4 | a962db3467be3b04b68714abb00611ff92c121b6 | /example/template_parameter_packet.cpp | a53cfbe8363f27cb5a55d390abfac9145e54050c | [] | no_license | blueyi/cpp_study | 6bf636076c4489996a95067bbf41d634b6a36b5d | 8d839744f9a7c7d217c265e6ca480eb78dbc7162 | refs/heads/master | 2020-04-05T14:04:48.226583 | 2016-09-01T01:16:45 | 2016-09-01T01:16:45 | 38,018,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,531 | cpp | template_parameter_packet.cpp | /*
* template_parameter_packet.cpp
* Copyright (C) 2016 blueyi <blueyi@blueyi-lubuntu>
*
* Distributed under terms of the MIT license.
*/
#include <iostream>
template <typename T, typename... Args>
void foo(const T &t, const Args& ... args)
{
std::cout << "sizeof...(Args): " << sizeof...(Args) << std::endl; ... |
f64d2352592250ea1c0d5ffe9a033032183c2ed2 | d12dc3a8d6aa1493cf2238b7f69bea04f31e933b | /include/geomathse/GeomathSE.cpp | 0822c01c942f27a83dee8487c1d17d2b97b491fd | [] | no_license | lawiest/PipeTool | ce1ef827cf13f818f7069b582caf388661d5f084 | ef38fd3c403e4f6dfa5b7442ce7630faf2e2a48b | refs/heads/master | 2020-11-29T04:45:39.014309 | 2019-12-25T01:57:01 | 2019-12-25T01:57:01 | 230,024,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 88 | cpp | GeomathSE.cpp | #ifdef _WIN32
#pragma comment(lib,"gsGeomathSE.lib")
#endif
#include "GeomathSE.inl"
|
d04e163abc9572707d4c586504d285e91e7fde5e | 484076b7acd66364db9a834261644fc3b435bab3 | /arduino_final_code.ino | 36536fdc2294a2efbc896610ceabe672b71cbe7e | [] | no_license | vidush5/Speed-Control-of-DC-Motor-Fan-using-a-Temperature-Sensor | d46b46ffbda006cec7d23dfdbc4d143374e7cbfb | ba66efd0c3e93e6ef6a1f9c65c2c894a59b43ca5 | refs/heads/master | 2020-04-07T15:18:36.216368 | 2018-11-21T02:36:35 | 2018-11-21T02:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | ino | arduino_final_code.ino | #include "Arduino.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
#define ONE_WIRE_BUS A0
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
int fan = 8; // th... |
baae12e74a559d7dc560c00a81ff56c3ecf66a2e | 53bf91c5056421c88dacfe04b94cb49776ee67bf | /Pacman/Pacman.h | bf7ce8d16f7f629855376998e135e6957624f9e0 | [] | no_license | Laxynium/Pacman | 01efb2c4e87ed321a8837426c8964d513c27fb25 | f4699841ddb251103cd0844f42689fe1df7c8e19 | refs/heads/master | 2021-09-04T02:48:29.599234 | 2018-01-14T21:31:46 | 2018-01-14T21:31:46 | 109,537,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | Pacman.h | #pragma once
#include "IDrawable.h"
#include "IRenderer.h"
#include "MoveableGameObject.h"
#include "ICollisionManager.h"
#include "Color.h"
#include "ICollidable.h"
#include <ctime>
struct ITextureManager;
class Pacman:public MoveableGameObject,public ICollidable
{
private:
IRenderer&_renderer;
ICollisionManager&... |
c9b83016fdae7e87179601ecbdc1b0352e4e48f6 | 2f50cbc18c5102f52499e8085544ecb5ad4c657d | /OpenGL/src/Bullet.cpp | 16d44917f5d25c655fed0133d7fe190fa69f69d7 | [] | no_license | MoriokaReimen/OpenGL | c73d4ea41eea28638d33e75fa40dc02c50955bd1 | 25c9f8c723e9a58919531079de45ef9378e9c21e | refs/heads/master | 2020-06-03T05:12:18.770909 | 2015-06-03T12:21:23 | 2015-06-03T12:21:23 | 33,459,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | Bullet.cpp | #include "Bullet.hpp"
Bullet::Bullet()
{
this->broadphase_ = new btDbvtBroadphase();
this->collision_config_ = new btDefaultCollisionConfiguration();
this->dispatcher_ = new btCollisionDispatcher(this->collision_config_);
this->solver_ = new btSequentialImpulseConstraintSolver;
this->world_ = new btDiscreteD... |
366ccad9e5902bfe6426894adb6ec600726dd42a | 110fb81f80b9db80d3a617d69b91f50ba43e3ce5 | /src/Registration/itktubeSpatialObjectToImageRegistrationMethod.h | 3455505e13f1b70f66cbc54eb2cb5a2f0b022114 | [
"Apache-2.0"
] | permissive | aylward/ITKTubeTK | 1205f489a17c3ea0f2e01eb618000b021daccbc5 | 14b577851a4c2ff9039311a2cb43bda9c276c9e8 | refs/heads/master | 2023-09-04T11:31:10.223728 | 2023-08-30T14:21:14 | 2023-08-30T14:21:14 | 261,480,527 | 1 | 0 | Apache-2.0 | 2020-05-05T13:34:14 | 2020-05-05T13:34:13 | null | UTF-8 | C++ | false | false | 5,955 | h | itktubeSpatialObjectToImageRegistrationMethod.h | /*=========================================================================
Library: TubeTK
Copyright Kitware Inc.
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
ht... |
f276459b11b41c615dd53c7edb0364e85711e968 | 2de72733629faed53c08919ea4a2d38d85d94883 | /state.cpp | 984408dac705e50776565dda7b77d4ac4b66db8a | [] | no_license | km93120/chess-game | 4509c48cadc05632795f582a32f33620214c73a9 | 8b5faa8ada2797faafd841a749df09f41c8e77d2 | refs/heads/master | 2020-03-31T03:06:26.591364 | 2019-01-21T13:18:45 | 2019-01-21T13:18:45 | 151,852,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cpp | state.cpp | #include "state.h"
QVector<Piece *> State::getWhitePieces() const
{
return whitePieces;
}
QVector<Piece *> State::getBlackPieces() const
{
return blackPieces;
}
State::State()
{
for(int i = 0 ;i < 8; i++)
{
whitePieces.append(new Pawn('w',i,6));
}
whitePieces.append(new Knight('w',1,... |
e6019ab75208e9c2c09e2525eb6d5e4e95ba2cf4 | 939d95c8e55c69dfa4c482528bd386ec8c5a0440 | /Concurent/pjusa-thread.cpp | fff02b43c9d8c0d07b22a051e99b6a76a7955489 | [] | no_license | heatblazer/asteriks-debugger | 0bddc3e3c37338d4e5296c7650b0f2e655305238 | cb270ae70758e6980262dc7af8103ec6a95307eb | refs/heads/master | 2020-12-02T01:15:24.788547 | 2016-09-28T07:12:23 | 2016-09-28T07:12:23 | 66,387,849 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,277 | cpp | pjusa-thread.cpp | #include "pjsua-thread.h"
#include <pjlib.h>
#include <iostream>
#include <pjlib.h>
// memory //
#include "Sip/mem-pool.h"
namespace izdebug {
PjMutex::~PjMutex()
{
pj_mutex_destroy(m_mutex);
}
PjMutex::PjMutex()
{
pj_mutex_create(Pool::Instance().toPjPool(), NULL, PJ_MUTEX_DEFAULT, &m_mutex);
}
void Pj... |
0861e4de945a7a497cc41664a070300d4c8d3a82 | 5e5d9aa623af99b2477a44eb5a2ab7a2d811e0af | /characterAbility.cpp | 9fcf4c95751beed5d9427c77d146b6f81bb657a6 | [] | no_license | JaesunHan/FinalFantasy | 79dae2821540be43eb8f3a691b2a1e512acc9ad2 | 150983e91792c8c491719d8b411cd28412b41021 | refs/heads/master | 2021-05-02T14:38:12.197985 | 2018-09-09T03:52:18 | 2018-09-09T03:52:18 | 120,720,359 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,285 | cpp | characterAbility.cpp | #include "stdafx.h"
#include "characterAbility.h"
characterAbility::characterAbility()
{
}
characterAbility::~characterAbility()
{
}
HRESULT characterAbility::init()
{
//백그라운드 이미지
_bgImage = IMAGEMANAGER->findImage("캐릭터능력메뉴");
//선택한 세이브 파일 가져오기
int saveFileNum = INIDATA->loadDataInterger("gameData", "gameDa... |
f52b0a8c12f116e3f9804dddaf2b7a089f6d46f9 | 90ff6d52061bc23deecbbaf60fe4b9b54aca4b7b | /solidarity/utils/strings.h | f83b7731986319e14be9aeb8fc487085036883c2 | [
"Apache-2.0"
] | permissive | lysevi/solidarity | 6e3ee5fd26a0f26f7d89ed8a96f4334ccacbb8dd | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | refs/heads/master | 2021-06-29T01:18:07.694329 | 2020-10-01T10:41:24 | 2020-10-01T10:41:24 | 171,683,290 | 1 | 0 | Apache-2.0 | 2019-08-19T07:07:19 | 2019-02-20T13:59:59 | C++ | UTF-8 | C++ | false | false | 1,606 | h | strings.h | #pragma once
#include <solidarity/exports.h>
#include <string>
#include <vector>
namespace solidarity::utils::strings {
/// split string by space.
[[nodiscard]] EXPORT std::vector<std::string> tokens(const std::string &str);
EXPORT std::vector<std::string> split(const std::string &text, char sep);
[[nodiscard]] EXPO... |
b610e9c04eac07c17b138cb41e3ea29b57b165e5 | ba33f92440badfba1c90d3336f493df6c560b6fd | /App/testKVS/glwidget.cpp | b8cf5cb19a6abe5ea69f074fc3defaf52c774800 | [] | no_license | zkbreeze/KunQt | 06bed4af6eb080b49c42ef916d28412192ad67ac | ff4ed3de78599e4e402f5972209c33a9346410d0 | refs/heads/master | 2021-01-01T16:55:52.783305 | 2014-11-18T09:16:05 | 2014-11-18T09:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | glwidget.cpp | #include "glwidget.h"
GLWidget::GLWidget(QWidget *parent) :
QGLWidget(parent)
{
}
void GLWidget::initializeGL()
{
glClearColor( 1, 1, 1, 1 );
}
void GLWidget::paintGL()
{
glClear( GL_COLOR_BUFFER_BIT );
glBegin( GL_TRIANGLES );
glColor3f( 1, 0, 0 );
glVertex3f( -0.5, -0.5, 0 );
... |
6c4c9427f71d5a44419b2d7c9975c73a7e0e7af0 | ba55358fd3311f51921b1f306d49ac703e8d5245 | /include/otherFunctions.h | 60303f02296fe263a7472c12ba950fb96c173d6d | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vachan-potluri/MEANDG | c90548fbf69032ab0c81dcbb599714f7e9c18ff9 | a4a22653b5d71b186e179519b0d26a21d3faf1b5 | refs/heads/master | 2020-06-05T16:11:51.118808 | 2019-06-25T06:52:31 | 2019-06-25T06:52:31 | 192,481,019 | 0 | 0 | BSD-3-Clause | 2019-06-18T06:40:10 | 2019-06-18T06:40:09 | null | UTF-8 | C++ | false | false | 963 | h | otherFunctions.h | #ifndef OTHERFUNCTIONS_H
#define OTHERFUNCTIONS_H
#include "sysInclude.h"
using namespace std;
/// Converts a given datatype to a string;
template<typename var>
string varToString (var input){
stringstream ss;
ss << input;
string output;
output= ss.str();
return output;
};
int stringToInt(string inpu... |
790e263a3cc8115b21fca109b734a5d5cfae973e | 1a40ff4ab112a1ce64f1932eef74d2f85d655ff3 | /source/rendercore-opengl/include/rendercore-opengl/Geometry.h | 176f0af299c23db02a1081bcc089353bedc27822 | [
"MIT"
] | permissive | sbusch42/rendercore | f591dac212c5c48b3ee1870cf4cbd8866ddb4351 | 8d0bd316ff23f8f6596a07d8a3ce568049ad08d2 | refs/heads/master | 2020-04-22T11:36:32.184224 | 2019-05-16T20:05:36 | 2019-05-16T20:05:36 | 170,346,595 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,594 | h | Geometry.h |
#pragma once
#include <memory>
#include <unordered_map>
#include <glbinding/gl/types.h>
#include <globjects/VertexArray.h>
#include <rendercore-opengl/rendercore-opengl_api.h>
namespace rendercore
{
namespace opengl
{
class Material;
class Buffer;
class VertexAttribute;
/**
* @brief
* Geometry that can ... |
b37edd907d58f5b36bbe69049fed01910dbae224 | 8db68aeae3749367b7a4d289d3f9349fc3c7c691 | /Encan/FactoryAntiquite.h | 3e429d2b7ee99683bce9e5647828c8709013f524 | [] | no_license | SuperTeam1nsa/Encan | 0d657833cfa8d71a8afda1d5ac8ba4b9569718c6 | 71c15776da8a58d6ad2b0ce58712e53e0624514f | refs/heads/master | 2020-04-05T09:30:44.154658 | 2018-12-17T01:13:43 | 2018-12-17T01:13:43 | 156,760,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | h | FactoryAntiquite.h | #pragma once
#include "ObjetGenerique.h"
#include "Antiquite.h"
#include <random>
class FactoryAntiquite
{
public:
FactoryAntiquite() {}
~FactoryAntiquite() {}
static Antiquite* createAntiquite(std::string id);
};
|
5761bfdcad12d906bc073d932f4d9c57a43dadad | d25d606fb44aecae8c48c9d83a3b3dfddc363e98 | /AbaloneSimplePar/search-minimax.cpp | b193ac9cddea6c58106666d9f003de08fec57e11 | [] | no_license | Aryabhatta/SuperMuc | 854bb228be2a29104d48c5e670c591c784f41bc4 | 5c7fe6996718dd0bb48b42014f096a2b3d168f85 | refs/heads/master | 2020-06-02T12:55:02.594980 | 2013-08-19T17:23:37 | 2013-08-19T17:23:37 | 10,172,359 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,469 | cpp | search-minimax.cpp | /**
* Very simple example strategy:
* Search all possible positions reachable via one move,
* and return the move leading to best position
*
* (c) 2006, Josef Weidendorfer
*/
#include <math.h>
#include <string.h>
#include <iostream>
#include <mpi.h>
using namespace std;
#include "search.h"
#include "board.h"
#i... |
681a0acf3042e9a83c9e2109ef0f06f29823bd8c | 57e7b4f7cdfa01ed1b53049ae3811147171b1989 | /Win32xx/samples/DockTabbedMDI/src/MyCombo.h | 41019224d7b406adef8377da1b6cefeee0dd26fd | [
"Unlicense"
] | permissive | mufunyo/VisionRGBApp | d083f34982de903a06c4f928817fdddb78ebb193 | c09092770032150083eda171a22b1a3ef0914dab | refs/heads/trunk | 2023-03-03T01:49:03.164808 | 2021-02-09T20:35:08 | 2021-02-09T20:37:05 | 324,387,638 | 2 | 1 | Unlicense | 2020-12-28T10:21:03 | 2020-12-25T15:34:00 | C++ | UTF-8 | C++ | false | false | 447 | h | MyCombo.h | //////////////////////////////////////////////////////
// MyCombo.h
#ifndef MYCOMBO_H
#define MYCOMBO_H
// Declaration of the CMyCombo class
class CMyCombo : public CComboBoxEx
{
public:
CMyCombo();
virtual ~CMyCombo();
BOOL AddItems();
virtual void OnDestroy();
void SetImages(int images, UINT i... |
c267be31eefd7097a917cd1f85234bdf5e11f1dc | 6751a226aae55df43880900f2abd4ba59b2d193c | /L5_Application/SnakeLogicHandler.h | abe164eff84822d283052fa6201ef55ba58ebf2d | [] | no_license | lazyswan/Project-Snake | 2e481f9fe44b7c623fd621f35d84af47f2ddff4a | c91ab1183e625763c86a99c741e126714d411189 | refs/heads/master | 2020-04-20T13:40:10.853263 | 2019-02-03T20:02:32 | 2019-02-03T20:02:32 | 168,874,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | SnakeLogicHandler.h | /*
* SnakeLogicHandler.h
*
* Created on: 13-Nov-2018
* Author: scsap
*/
#ifndef SNAKELOGICHANDLER_H_
#define SNAKELOGICHANDLER_H_
#include "SnakeInputHandler.h"
#include "Snake.h"
#include "Fruit.h"
class SnakeLogicHandler {
public:
SnakeLogicHandler();
void moveSnake(SnakeInputHandler & sIpHadle,Sn... |
e2737226d0f186e0e238fc8fec66125bff95b562 | c231e61202589f9c57233d4255d6b0fe328b0404 | /Projects/project4/MinHeap.h | 52eff31abde34e6a87913023104f9bf2bc74a4e8 | [] | no_license | Tarasso/CSCE221 | 41dd78270d8f1252659bb7d262f1357163f726c9 | f3b3dccb6dcaaf67923a55d7980efff7a86b40ad | refs/heads/main | 2023-02-25T18:16:35.224833 | 2021-01-31T18:04:08 | 2021-01-31T18:04:08 | 334,721,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,429 | h | MinHeap.h | /**************************************************************
* File: MinHeap.h
* Project: CSCE221 - Project 4
* Author : Bryson Mrosko
* Date : 28-April-2020
* Section: 221-518
* E-mail: kylemrosko@tamu.edu
*
* This class extends the Heap class
* See comments for differences
* Note that some funct... |
cac1a34fba894ad459060c97ecd8f12bdb6bb6d9 | 3e0bea8548986d7fdb6b770fd8e766bce0927c0c | /data/B-girl/test.cpp | 1b0b872060ce90c4771a1dabba1aecfdc5f4c3b0 | [] | no_license | nju-icpc/hdu-multi19-nju | dfd93b66ed5bc829bd9992b4cc0dc4dbf7e37291 | cd1d207808da5934393f2197f2ff038b318c9036 | refs/heads/master | 2020-06-30T22:40:25.302811 | 2019-08-16T03:18:13 | 2019-08-16T03:18:13 | 200,969,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,265 | cpp | test.cpp | #include <bits/stdc++.h>
#define maxn 100009
using namespace std;
long long MOD = 1e9 + 7;
int n ,m ,Q;
int p[maxn];
vector<pair<int,int> > G[20];
unordered_map<long long, bool > mp;
int ans[maxn];
bool vis[maxn];
struct Node{
int u, v;
}a[maxn];
int findset(int x){
return p[x] == x ? x : p[x] = findset(p[x])... |
6e358202af0fb6fcc0bced2512c539742ad32c2d | 0bccb092615f43b970a1a1c383b2365c91f8bbfe | /lib/Parse/ParsedRawSyntaxNode.cpp | dc81ec92062c90c5ef4f7ca8253fd7d21b216742 | [
"Apache-2.0",
"Swift-exception"
] | permissive | magauran/swift | 823887892d64ba50f4fb69db495bfa08de07cb9b | 4d128b151eaade2dda6ad16460ceb4f7dd307432 | refs/heads/master | 2020-04-17T02:09:49.964934 | 2019-01-16T22:31:32 | 2019-01-16T22:31:32 | 166,122,913 | 1 | 0 | Apache-2.0 | 2019-01-16T22:39:35 | 2019-01-16T22:39:34 | null | UTF-8 | C++ | false | false | 1,790 | cpp | ParsedRawSyntaxNode.cpp | //===--- ParsedRawSyntaxNode.cpp - Parsed Raw Syntax Node -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
443a161b927b4fab08a5f38232ba7032990dc476 | 4382d3914cd5290bd677bb2520f383e5aa81af4d | /es/6-7.cpp | 7e3c210cdeecda3034c61a51e6c382fdbcf37ab6 | [] | no_license | x0t1c-01/Fondamenti-c- | 42fc4af316a6e424d0930c2bc3da27eb8e75494e | 33f25e98d591594977def00df489272e6877210c | refs/heads/master | 2023-01-27T16:52:54.437265 | 2020-11-06T21:12:29 | 2020-11-06T21:12:29 | 310,065,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | cpp | 6-7.cpp | #include<iostream>
#include<cstring>
using namespace std;
int function2(int a[],int dim,int x,int somma){
int cont=0;
for(int i=0;i<dim;i++){
if(a[i]==x){
cont++;
a[i]=0;
}
}
if(cont==0)
return somma;
return function2(a,dim,cont,somma+=cont);
}
int main... |
464459d4a1d14447b1afbc201c3cab9ae8573472 | f1fff1ec58708a7770bdd5491ff54349587530e9 | /various/josuttis/sort3.cpp | 0abb3cc5bc5eac457b113b781a54b94fbbb5de40 | [
"MIT"
] | permissive | chgogos/oop | a7077e7c3bfab63de03eb02b64f77e097484589f | 8f8e9d7f2abd58acf48c2adce6550971c91cfcf7 | refs/heads/master | 2022-06-28T03:44:37.732713 | 2022-06-06T11:41:15 | 2022-06-06T11:41:15 | 171,113,310 | 16 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | sort3.cpp | // C++98
#include <iostream>
#include <algorithm>
int main()
{
int vals[] = {42, 0, -7, 42, 11};
std::sort(vals, vals + 5);
for (int i = 0; i < 5; i++)
{
std::cout << vals[i] << " ";
}
} |
fdea0e3693ebef1a6593d9667ca2dca50ad02c08 | af5593472545a49f76e279586bc06fb10d45bee6 | /OP_aux.hh | d58d03b41bb3aba228eb9afa9baf3467174e4298 | [] | no_license | ferranmafe/PRO2-Text-Library | 3ec620bea2b679cc14dc453b0f32076e25aca749 | fdde9967f435c59a8bab03b1b7208f086aea5c8e | refs/heads/master | 2021-06-13T01:29:46.733070 | 2017-02-26T13:29:01 | 2017-02-26T13:29:01 | 60,771,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,863 | hh | OP_aux.hh | /** @file OP_aux.hh
@brief Especificació del mòdul funcional OP_aux
*/
#ifndef _OP_AUX_HH_
#define _OP_AUX_HH_
#ifndef NO_DIAGRAM
#include <iostream>
#include <string>
#include <vector>
#include <list>
using namespace std;
#endif
#include "Frase.hh"
#include "Arbre.hh"
/** @brief Calcula el nombre de paraules... |
8c0facfb39edd9d95e1e8c8e65ce386fb5e816e8 | c380454f913539369997762307111bafde2bd9d3 | /source/server/srv_main.hpp | c84b4ee2c4a929dc3955cd3e37c020ba2bdb6b97 | [] | no_license | jasonleecode/vkPhysics | 83eed44ebdde01ed29cf492871d8c0d9d1c520a4 | 4dd9473350be8c763e5990f6fac29b6477e1056f | refs/heads/master | 2023-04-17T20:36:12.345270 | 2021-05-08T22:04:05 | 2021-05-08T22:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55 | hpp | srv_main.hpp | #pragma once
namespace srv {
float delta_time();
}
|
ba94a756282a87dee082a73fca6f188be74c7c15 | 97faaee3922a67776c63f3101b8b0cebae8d3b1d | /2331.cpp | c5f37ac9152936a5b095e951902450a031691499 | [] | no_license | g1n0st/oi-ACM-code-archive | 4e5ce361391f65fb274155d3641ce59a5376b4f6 | 81f6f152ebb109cdc17e5db0f52632a77f18a1b9 | refs/heads/master | 2023-01-24T11:02:40.606083 | 2020-11-26T15:23:56 | 2020-11-26T15:23:56 | 112,888,450 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,352 | cpp | 2331.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const LL P = 20110520;
const int V = 200010 + 5;
char s[110];
LL dp[2][V];
int N, M, c, cnt, tot[2], bit[110];
int mp[110][110], S[2][V];
int h[50000];
struct Edge {
int nxt, v;
} e[V];
void Add(int s, LL v) {
int u = s % 50000;
for (int i = h[u]; ... |
7bd72ada7033a44bf118db589f51cf48f6d6fe66 | 08bdd164c174d24e69be25bf952322b84573f216 | /opencores/client/foundation classes/j2sdk-1_4_2-src-scsl/hotspot/src/cpu/ia64/vm/vmStructs_ia64.hpp | 1d5d49e775e401dcd39dbe7750bd19439f2ce954 | [] | no_license | hagyhang/myforthprocessor | 1861dcabcf2aeccf0ab49791f510863d97d89a77 | 210083fe71c39fa5d92f1f1acb62392a7f77aa9e | refs/heads/master | 2021-05-28T01:42:50.538428 | 2014-07-17T14:14:33 | 2014-07-17T14:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,421 | hpp | vmStructs_ia64.hpp | #ifdef USE_PRAGMA_IDENT_HDR
#pragma ident "@(#)vmStructs_ia64.hpp 1.8 03/01/23 10:58:47 JVM"
#endif
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
// These are the CPU-specific fields, types and integer
// constants required by t... |
eb484ef9f29f0d9ce7a93eb83c85cc0a63f1eac2 | f9be0e18cb048a23525814ba7cd9649446fa5203 | /Classes/StartScene.cpp | b343bbfab5a3e2f8f7b515b6a117205d2ef4ffa9 | [] | no_license | AscenX/AngryBird-Demo | e36134b89799821325a8bbd8d5c11764c704df8d | 9d5d94b2ba6a970dfeb84ab0346b962951097e69 | refs/heads/master | 2021-06-07T15:44:52.535540 | 2016-10-22T07:09:12 | 2016-10-22T07:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | cpp | StartScene.cpp | //
// StartScene.cpp
// AngryBird
//
// Created by Ascen on 16/10/21.
//
//
#include "StartScene.hpp"
#include "ParticleManager.hpp"
#include "LevelScene.hpp"
#include "Tools.hpp"
Scene* Start::createScene(){
auto scene = Scene::create();
auto layer = Start::create();
scene->addChild(layer);
return... |
09b4c75f6f6de70c3ffa47be90b6fff0c0f267c3 | 00427d499291af46d8f8203a1876529b9a3e5598 | /tutorial2/hadamard-product-no-read/tasks/GenMatrixTask.h | 674434cfedc5d36ba5f6f1ae75a07b9fe8095f0a | [] | no_license | Jameshobbs21/HTGS-Tutorials | b680676b98760dcf501e4258fd63a2e4660c1963 | 5d9a863603c92d0d0c7ad5b89df223cbb30bf134 | refs/heads/master | 2021-01-17T22:45:36.034075 | 2016-06-09T13:56:09 | 2016-06-09T13:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,311 | h | GenMatrixTask.h | //
// Created by tjb3 on 2/23/16.
//
#include <htgs/api/ITask.hpp>
#include <cmath>
#include "../memory/MatrixMemoryRule.h"
#ifndef HTGS_READMATRIXTASK_H
#define HTGS_READMATRIXTASK_H
class GenMatrixTask : public htgs::ITask<MatrixRequestData, MatrixBlockData<double *>>
{
public:
GenMatrixTask(int numThreads, in... |
972ba765328bb9bfd0bba9e528251bd6a1ebf64c | 7588f030cb6f5c2692c14ec3caedf9f11a312cb1 | /c_interpretor/NoCommaExprExecutor.h | c819aa3a8e0b6bf6769bb86960cb3d78a6466741 | [] | no_license | luoxuwei/Compiler | cceee6af426ba9d9b2f13d22fcf6e06a692953ba | d11da97ab9ef2f1a61d0244d0080c6b3f90fd475 | refs/heads/master | 2022-12-12T12:20:27.988873 | 2022-11-26T16:29:00 | 2022-11-26T16:29:00 | 252,653,543 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 306 | h | NoCommaExprExecutor.h | //
// Created by 罗旭维 on 2021/10/21.
//
#ifndef C_COMPILER_NOCOMMAEXPREXECUTOR_H
#define C_COMPILER_NOCOMMAEXPREXECUTOR_H
#include "BaseExecutor.h"
class NoCommaExprExecutor : public BaseExecutor {
public:
void * Execute(ICodeNode *root) override;
};
#endif //C_COMPILER_NOCOMMAEXPREXECUTOR_H
|
f36b6a742dc44f4cd0055ac20113c9025b5e17d3 | de1810660d8a62630a06be06f48024c3ab6a5a35 | /Code/ChemicalFeatures/FreeChemicalFeature.cpp | 45e40697473d8559e06e21046f2e4284a33fac70 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | johnmay/rdkit | 3909cc8ac66c405f313f21a0fc1f61d690347ca8 | b6f5fefeecdaabcf163a93afe28d50d3986282dd | refs/heads/master | 2021-01-18T12:31:49.441251 | 2014-04-04T05:19:22 | 2014-04-04T05:19:22 | 18,447,327 | 0 | 0 | NOASSERTION | 2019-06-26T07:30:31 | 2014-04-04T17:53:22 | C++ | UTF-8 | C++ | false | false | 2,291 | cpp | FreeChemicalFeature.cpp | // $Id$
//
// Copyright (c) 2005-2008 greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include "Free... |
c86ed9291f6be705c16fea296189aeba87036e08 | 2ecf807f4f70b98f4dd417af2834ab0843aabdf0 | /deps/metal-cpp-extensions/AppKit/AppKit.hpp | 5586587730b6633729892dc2b7a2709a56a6a894 | [
"MIT"
] | permissive | shizgnit/application-template | b30d9256932f594ab9396199ad19470ca201497b | 3257e7655ebf205ff6d8260cd98c8bb879437fce | refs/heads/develop | 2023-04-28T05:21:31.530939 | 2023-04-23T17:16:38 | 2023-04-23T17:16:38 | 234,957,574 | 0 | 0 | MIT | 2023-03-01T02:29:51 | 2020-01-19T20:01:28 | C++ | UTF-8 | C++ | false | false | 1,490 | hpp | AppKit.hpp | /*
*
* Copyright 2020-2021 Apple Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
b34e7651be892409555df8e43c4ef6dc254960d9 | c14500adc5ce57e216123138e8ab55c3e9310953 | /Graphics/drawGeom.cpp | 67cf4f25f125e2a3497678e4a77c0637c466e453 | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"LicenseRef-scancode-generic-exception",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"GPL-2.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ResonanceGroup/GMSH304 | 8c8937ed3839c9c85ab31c7dd2a37568478dc08e | a07a210131ee7db8c0ea5e22386270ceab44a816 | refs/heads/master | 2020-03-14T23:58:48.751856 | 2018-05-02T13:51:09 | 2018-05-02T13:51:09 | 131,857,142 | 0 | 1 | MIT | 2018-05-02T13:51:10 | 2018-05-02T13:47:05 | null | UTF-8 | C++ | false | false | 19,468 | cpp | drawGeom.cpp | // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@onelab.info>.
#include <string.h>
#include "drawContext.h"
#include "Context.h"
#include "gl2ps.h"
#include "VertexArray.h"
#inclu... |
e0990c80028e8a0fc8fc37db551c890e10e056ad | 3bfb3c295c633fc14b939b731dcfb1847b7fbd3b | /source/jetz/gpu/vlk/vlk_factory.cpp | b2de2eb61eb080830b5826825e1d134b3e8f7681 | [] | no_license | victorbush/jetz | e5c2197dabee03734b71a7dc587970b6abdc2d25 | 8f21a557f57b937f9127f48520e3bdbced0b82e8 | refs/heads/master | 2023-04-05T06:25:46.404925 | 2021-01-23T00:15:52 | 2021-01-23T00:15:52 | 279,734,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | cpp | vlk_factory.cpp | /*=============================================================================
gpu_model.cpp
=============================================================================*/
/*=============================================================================
INCLUDES
========================================================... |
2486c951984a8ba432dad17be38cc1a0d7a8e876 | 7006bb5d616b81520948c310aecc91d52b08cf8c | /Final_work/上位机/UpperPC3/loginwin.h | 2d404e2f3907d8c80235f683f84b8f0894b6e420 | [] | no_license | Zhihaibi/Linux_embeded | e105b40e4e49350f67e9325307f16b23d52375e2 | 91582c12006d54cd0b6934f8431338a770c16452 | refs/heads/master | 2023-08-12T07:23:56.630438 | 2021-09-25T01:49:49 | 2021-09-25T01:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | loginwin.h | #ifndef LOGINWIN_H
#define LOGINWIN_H
#include <QMainWindow>
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
QT_BEGIN_NAMESPACE
namespace Ui { class loginWin; }
QT_END_NAMESPACE
class loginWin : public QMainWindow
{
Q_OBJECT
public:
loginWin(QWidget *parent = nullptr);
... |
615e8b49bbab6ff6c85f8ae4ccc0708798ffbbb1 | 293b82614a782f468318d917007f9217fe90c6c0 | /modules/geom/builders.hpp | 7fc6e436cdc15ef1e51129e0e5694c12367b2690 | [] | no_license | nvpopov/qpp | 060f540648692734b83f587c00c7dd07f803e3da | d2dffe93af5c60c6c26e1e52e3fe3bcdf961f5e7 | refs/heads/master | 2021-07-20T10:05:26.791427 | 2021-07-04T04:28:30 | 2021-07-04T04:28:30 | 8,090,054 | 3 | 0 | null | 2017-05-30T03:06:34 | 2013-02-08T08:26:09 | C++ | UTF-8 | C++ | false | false | 21,119 | hpp | builders.hpp | #ifndef QPP_BUILDERS_H
#define QPP_BUILDERS_H
#if defined(PY_EXPORT) || defined(QPPCAD_PY_EXPORT)
#pragma push_macro("slots")
#undef slots
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pyqpp/py_indexed_property.hpp>
//#include <pybind11/stl.h>
namespace py = pybind11;
#pragma pop_macro("slot... |
316db12f08cd943562852bb1df5f23d5c5bde5ff | a1105c33b21c7fe0d8e5967b4b97e919d9e23ca8 | /数据结构教程-源程序/第3章/expvalue.cpp | f993feee4b43ba96518bf88aa3f964d840dd1a2f | [] | no_license | billgoo/Learning-About-Data-Structure | 3c2b57951b325f07d827fe326c088f9e2d11d0f8 | d67076a6563823a98d46b469cbfb2015a1d0f331 | refs/heads/master | 2021-01-01T18:49:47.429034 | 2017-07-26T15:52:38 | 2017-07-26T15:52:38 | 98,440,005 | 12 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,261 | cpp | expvalue.cpp | #include <stdio.h>
#include <stdlib.h>
#define MaxSize 100
#define MaxOp 7
struct
{
char ch; //运算符
int pri; //优先级
}
lpri[]={{'=',0},{'(',1},{'*',5},{'/',5},{'+',3},{'-',3},{')',6}},
rpri[]={{'=',0},{'(',6},{'*',4},{'/',4},{'+',2},{'-',2},{')',1}};
int leftpri(char op) //求左运算符op的优先级
{
int i;
... |
ade5fa0fc6b280d98d1fd7af026a1cf4f672d8e8 | f31c0986ebc80731362a136f99bb6be461690440 | /src/UILayer/PreferencesDlg.h | c858d406bd6795d1dedcdfa2e4a7e39f9c25f132 | [] | no_license | witeyou/easyMule | 9c3e0af72c49f754704f029a6c3c609f7300811a | ac91abd9cdf35dd5bb697e175e8d07a89c496944 | refs/heads/master | 2023-03-30T16:19:27.200126 | 2021-03-26T12:22:52 | 2021-03-26T12:22:52 | 351,774,027 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,840 | h | PreferencesDlg.h | /*
* $Id: PreferencesDlg.h 4483 2008-01-02 09:19:06Z soarchin $
*
* this file is part of easyMule
* Copyright (C)2002-2008 VeryCD Dev Team ( strEmail.Format("%s@%s", "emuledev", "verycd.com") / http: * www.easymule.org )
*
* This program is free software; you can redistribute it and/or
* modify it under the te... |
43ffd29fa057fdc27de4b392705933f75b5c8716 | 559c980ec23b3332bd71d7dc96d516070da42392 | /ShapyWay/shaders.h | 6bb047af89a180b3de4d6d2ec00d615ddeee2042 | [] | no_license | iltrof/ShapyWay | 1208e7862487797a3b3474154a627a18eed5b7cf | c25a4f0be6a0d9a6ef9f3affc37a8ffbf9c16323 | refs/heads/master | 2020-12-01T12:36:23.313339 | 2016-08-23T12:51:15 | 2016-08-23T12:51:15 | 66,318,756 | 1 | 1 | null | 2016-08-23T01:06:45 | 2016-08-23T00:41:15 | C++ | UTF-8 | C++ | false | false | 2,098 | h | shaders.h | #pragma once
#include <string>
static const std::string blurFragShader = \
"uniform sampler2D texture;" \
"uniform float radius;" \
"uniform vec2 dimensions;" \
"void main()" \
"{" \
" vec2 offx = vec2(1/dimensions.x, 0.0);" \
" vec2 offy = vec2(0.0, 1/dimensions.y);" \
" " \
" vec4 pixel; " \
" for(float i = -rad... |
fca85e85016df07c147dc16f22a128eb493e062e | f68f450a59853b5ddfceaf3fd507f619b93fd604 | /discregrid/src/acceleration/bounding_sphere_hierarchy.cpp | b14090a9d46574321d65d3c3500bcdf7724536ad | [
"MIT"
] | permissive | MrBean947724451/Discregrid | 4c185c3a178bc17c97210628b140ecda0876ffac | 01a2de4c4486d64e5a54ab91c0677ffe9c16e1e4 | refs/heads/master | 2022-09-22T14:48:45.133793 | 2020-06-04T11:21:53 | 2020-06-04T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,642 | cpp | bounding_sphere_hierarchy.cpp |
#include <acceleration/bounding_sphere_hierarchy.hpp>
#include <iostream>
#include <set>
using namespace Eigen;
namespace Discregrid
{
TriangleMeshBSH::TriangleMeshBSH(
std::vector<Vector3d> const& vertices,
std::vector<std::array<unsigned int, 3>> const& faces)
: super(faces.size()), m_faces(face... |
f62b1960c4f20881eae586569706b277ed0c4929 | e12a08567bee3056d33cd93effb8fb833db62d5e | /ui_ShareCameraQt.h | e3d50f3b0c3170d59812b651539ef9f7416e3cfb | [] | no_license | jwaggoner/ShareCameraQt | 1d06ee32e9697d726544615ab9eac9e485202310 | b0cbe3e985d7809666c93ebb44ea500f5b324d9d | refs/heads/master | 2021-01-23T23:45:21.876120 | 2013-04-03T01:47:25 | 2013-04-03T01:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,408 | h | ui_ShareCameraQt.h | /********************************************************************************
** Form generated from reading UI file 'ShareCameraQt.ui'
**
** Created: Fri Mar 29 22:51:59 2013
** by: Qt User Interface Compiler version 4.8.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***... |
20ba0d2df53d2caa088c260dd9c5fcde576b297c | 601fd9a517c22bfeaff4f701113b7bb8f2801ffd | /CS4496P2/simulator.h | 638316ac603821f574410f6ee1f22d3eb96016d0 | [] | no_license | farzonl/animationprj1 | 09216ed31f1cd38776524be939c8eeabb54b8e60 | 273058a2e6ee2aceef989c4658d52fce0b2f47da | refs/heads/master | 2022-01-17T13:08:48.129455 | 2019-08-05T22:39:32 | 2019-08-05T22:39:32 | 198,078,767 | 1 | 0 | null | 2019-08-05T22:39:33 | 2019-07-21T16:18:05 | C++ | UTF-8 | C++ | false | false | 1,135 | h | simulator.h | #ifndef SIMULATOR_H
#define SIMULATOR_H
#define EIGEN_DONT_VECTORIZE
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT
#include <Eigen/Dense>
#include <vector>
#include <string>
#include "particle.h"
// class containing objects to be simulated
class Simulator {
public:
Simulator();
void setInitialVelocity(double... |
89c1af278229c58ce495211b0eed70b180426360 | c786d670bdaf51e9afdce726a8ee921fdc72464a | /include/BasicParser.h | a7a4c6422ca52d27db747d0cc72d53435c5adfee | [] | no_license | heartwind2007/DiscreteElasticRods | 7a05bb03b0ba49f1931dcbccdce11ee099ae0cf6 | e6bbdff850751a88879c58e9ceddf9a4e996e1be | refs/heads/master | 2020-12-30T21:58:33.829834 | 2014-09-20T03:25:56 | 2014-09-20T03:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,566 | h | BasicParser.h | #ifndef BASICPARSER_H
#define BASICPARSER_H
#include "config.h"
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <cstdlib>
class BasicParser
{
public:
// Citation Begin
// code borrowed from http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring... |
5a4cfc8897aa0bc6869ad14e99c4276ab6618640 | 566c8c972f33858cb7a332d67baf2a0850b85b6f | /circuit.h | dd928617fe736057bb9428e6c226230544704f13 | [
"MIT"
] | permissive | ProgrammerDan/digica | 4c31737a50866d4d087baf605eb6275462cb7026 | 69e323b2192ef07b6dac49dfcf2a3055d83ee1f3 | refs/heads/master | 2021-01-01T18:42:06.259039 | 2013-12-21T07:15:00 | 2013-12-21T07:15:00 | 15,354,025 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,112 | h | circuit.h | #ifndef CIRCUIT_H
#define CIRCUIT_H
//================================================================
//Filename: Circuits Objects Definition File
//Programmer: Daniel "ProgrammerDan" Boston
//Date: April 19, 2005
//Summary: Contains definitions and prototypes for the large
// scale circuit objects, which inc... |
cf738bcf21e1c9f7cf8962b3a002be7db769868b | 44110ecad0efa900d6cd0b84977ab198fc8e1ba7 | /src/HYPlotPS/HYPlotPS.cpp | 7410c0a2e84045e06b6d5ec9f1ef09cded6ed5a4 | [] | no_license | rickyHong/RBRouter-repl | 3b5a68bdf3c0894aabcb1d25fb49f997565dc346 | cd598ed1f9a707aaca4ccfb4ac1be5875b09ea2a | refs/heads/master | 2022-08-24T01:06:56.318119 | 2015-07-12T05:33:17 | 2015-07-12T05:33:17 | 267,541,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,323 | cpp | HYPlotPS.cpp | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <set>
#include "HYPlotPS.h"
using namespace std;
void PSPlot::plotCoords(ostream &out, float startX, float startY, float step, float blX, float blY, float rtX, f... |
20ec5ced8d10da066c0d77870637b11f0ec5b76b | 1b596c2da23af0086838de18112c2f08fb15f60f | /Item.h | 4dd1c67454645b7b124343fa6c17054af5c3abcf | [
"MIT"
] | permissive | keithbarker/3503_group_project | 6cc93450734fab623fe6bd2bd12f02598ef5c85f | a13ad81d0c8565f92154cd12ace5f4da9e013639 | refs/heads/master | 2021-01-10T08:48:00.727764 | 2016-04-20T01:51:41 | 2016-04-20T01:51:41 | 53,975,521 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | h | Item.h | #pragma once
#include <string>
#include <QObject>
using namespace std;
class Item : public QObject //stores information for individual food and drink items
{
private:
Q_OBJECT
int itemsLeft;
double price;
string name;
string description;
string size;
string flavor;
int quantity;
vector... |
b57f41fb62947f250da7f46e086cb63160992341 | 2cdd1bdd1f8e3febe7e0be2efd9a490b3b3cb14e | /ROTATE_LL.CPP | b6ea90ceeb9b42811c1890c0860910844c9f1875 | [] | no_license | ashiscs/C- | 4a33168e80877d4a1429fa352588b0a9c3dc2fdf | 0e2a1bd15f7ed2b722ec84ced69cc877b51951eb | refs/heads/master | 2020-09-03T16:00:39.949895 | 2020-05-10T15:38:38 | 2020-05-10T15:38:38 | 219,504,612 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | cpp | ROTATE_LL.CPP | #include<iostream>
using namespace std;
struct node
{
int data;
struct node* next;
};
void push(node** head, int data)
{
node* temp = new node;
temp->data = data;
temp->next = *head;
*head = temp;
}
void rotateIt(node** head, int k)
{
if(k == 0)
{
return;
}
node* curre... |
39ca38d9c42aa4e93f503d90c990b13fa01b8507 | 79740791a3a0f5a7b1ffb4ad875ad615bf8bb552 | /1642.furthest-building-you-can-reach.cpp | a2d2543822025970d4b5426211149c18ec65207b | [] | no_license | AlienYou/LeetCode | 61a187b7ce3c68f64f58450a4df1e934ef667d0c | cb09270cdaeda1c71ba26ed0d5e38f4b57d9a708 | refs/heads/master | 2021-07-02T12:29:49.420058 | 2021-06-08T17:10:33 | 2021-06-08T17:10:33 | 241,774,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,392 | cpp | 1642.furthest-building-you-can-reach.cpp | /*
* @lc app=leetcode id=1642 lang=cpp
*
* [1642] Furthest Building You Can Reach
*
* https://leetcode.com/problems/furthest-building-you-can-reach/description/
*
* algorithms
* Medium (51.69%)
* Likes: 839
* Dislikes: 40
* Total Accepted: 27.3K
* Total Submissions: 57.6K
* Testcase Example: '[4,2,7... |
e46a2463fb4c73df7e6fbd5bc6c0f4c2f5b65332 | 444e3c5092ce29f4f5463b1ece695e3f32210f3f | /WiFi_Analizer/WiFi_Analizer.ino | 293b99492139409b4ee8fed63f69a95287b1fa4d | [
"MIT"
] | permissive | Quantum-0/WiFi_Analizer | 7ef87146ed091ed00b4a2b43c6752122acfdc4ba | ae58d7973571c8c2a61b98a58e76e8533282f859 | refs/heads/master | 2021-01-21T06:02:14.483768 | 2017-09-03T19:53:13 | 2017-09-03T19:53:13 | 101,933,752 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,408 | ino | WiFi_Analizer.ino | /*
* WiFi Analizer
*
* by Quantum0
*/
#include <LiquidCrystal.h>
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
IPAddress remote_ip;
int networkId = -1;
LiquidCrystal lcd(0, 2, 4, 5, 1, 3);
byte lockedSymbol[8] = {
B00100,
B... |
e2f2a08256830a48b22b2ad3472aedc5f795cd72 | 9ca01dbc593a6352f1c55d7f9bf7b70a0d0c520f | /src/tabstring.cpp | 52df54f18dd6ccbd6e3e9f1f3bd706503149c16c | [] | no_license | massykezzoul/Moteur-SQL | c21874a41d74d3aea91632a512131ec02d149b30 | f745967ba04cac925f273b67b91296290d4696da | refs/heads/master | 2020-05-26T00:58:32.886617 | 2019-05-22T14:41:47 | 2019-05-22T14:41:47 | 188,056,797 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,590 | cpp | tabstring.cpp | #include <iostream>
#include <fstream>
#include <cstdlib>
#include "tabstring.h"
#include "requete.h"
using namespace std;
TabString::TabString():table(NULL),size(0),alloc(0),tailleFichier(0)
{
}
TabString::TabString(ifstream &file):table(NULL),size(0),alloc(0),tailleFichier(0)
{
if (file){
string line;
... |
1b799748eb086538167e18e8de7ab6c61422b8fd | 70cb5e043b7a469fecf810fc1c12ddd3faba452f | /effective c++/term_11.cpp | bd1555dd85fce6c99a4af0d94c0694ff77ea1f7b | [] | no_license | yulifromchina/exercise | 5205d7e27f46d397a3048919e76d45ab4c3f9b32 | bc2302db0fa75db85c4ab6bc7356b5f3727b2701 | refs/heads/master | 2021-01-19T13:42:29.552298 | 2018-02-23T05:17:42 | 2018-02-23T05:17:42 | 100,857,569 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 956 | cpp | term_11.cpp | //条款11:在operator中处理自我赋值
class Bitmap{};
class Widget
{
private:
Widget & operator=(const Widget&);
Bitmap * bp;
};
//bad
Widget & Widget::operator=(const Widget& rhs)
{
delete bp;
bp = new Bitmap(*rhs.bp); //当自我赋值时,指针指向了一个被删除的对象
return *this;
}
//way1:比较来源对象和目标对象的地址
Widget & Widget::... |
8c06be203593b51880c89ca34a408a2e31103d42 | 6a0633b246f58522f376cf0d9608fccdafc47da4 | /globalAndLocalInversions775.cpp | d0ab3e5069ed32f0c5f5e8159e20ef1eed688b20 | [] | no_license | studentBC/justExercise | 9ec10dbea9b2fe62d5d673fc39a91d08c9723bf7 | c5a022a6b46f56598234fb410b5d317f08dcda9c | refs/heads/master | 2023-06-26T12:28:18.144489 | 2023-06-11T15:27:36 | 2023-06-11T15:27:36 | 130,351,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,410 | cpp | globalAndLocalInversions775.cpp | class Solution {
public:
bool isIdealPermutation(vector<int>& A) {
for (int i = 0; i < A.size(); ++i) {
for (int j = i+2; j < A.size(); ++j) {
if (A[j] < A[i]) return false;
}
}
return true;
}
};
/*
The original order should be [0, 1, 2, 3, 4...], the... |
906a08ea5d7f6418bd09772874563c4a60033ad3 | dfca024369ee7cd6ea1a05781e12093a0728585d | /Kpp/main.cpp | 4a6112f573ebe2a29a7362843beee893a16caf75 | [
"MIT"
] | permissive | ALEHACKsp/Kpp | 0d87e8498230d19f0e194eb0481040f41f54efe7 | ed0bde23646c0a4e20656fc6153edbd6326d2570 | refs/heads/main | 2023-03-05T02:13:43.111534 | 2021-02-18T10:25:22 | 2021-02-18T10:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | main.cpp | #include <defs.h>
#include "lexer.h"
#include "parser.h"
#include "err_handler.h"
int main()
{
printf_s("---------- LEXER ----------\n");
kpp::lexer lexer;
kpp::err_lexer = &lexer;
lexer.parse("test.kpp");
printf_s("---------- PARSER ----------\n");
kpp::parser parser(lexer);
parser.parse();
printf_s("... |
1bc0afd405f9ebf5410875c81031877a95d509a1 | b584ad8d50338db7f3cde72dd2d9a3d400bb5c3b | /MyBlink.ino | a239831830e9c73490cc3a88b07a11806f89a755 | [
"Apache-2.0"
] | permissive | huyduino/MyBlink | 0e71cfe888527e71e40097a43cc2f36ad05f0bd3 | 32e69bebaa7a670c19b3777ee0a948cd9c516dc9 | refs/heads/master | 2021-01-20T11:55:46.606803 | 2017-02-21T04:37:41 | 2017-02-21T04:37:41 | 82,636,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | ino | MyBlink.ino | String inString = "";
int inChar = '0';
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
... |
54a8249a856f76202eb0298c307bc7f1f0721610 | 107c60ee519513aff974ac8155c48a89003c68db | /gpxfixaltitude.cpp | 4354f421bde9ee11996f37212136bc8db94101b3 | [] | no_license | sebafroh/gpsfixaltitude | 5d7f18b71e362f70e28491038084da6f4074c92c | e026cc2b9bb0691d7ec187816ff93f68139d429d | refs/heads/master | 2016-09-10T10:28:39.295030 | 2014-10-08T19:37:40 | 2014-10-08T19:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,775 | cpp | gpxfixaltitude.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <string>
#include <string.h>
#include <rapidxml.hpp>
#include <rapidxml_print.hpp>
//48.233 m für Karlsuhe!
class GpxFixAltitude {
public:
GpxFixAltitude( int argc, char* argv[] );
virtual ~GpxFixAltitude();
private:
s... |
aeb1d3470adb8bf927b87e75b2482ad5b80c5d52 | eb525fef6599dc739b75a08eb95df828112f7663 | /tools/tax/src/config_contig_builder.h | a3374bdda421999fe738a9e452abeaa135aa0b17 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-ncbi",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ncbi/ngs-tools | 2783f0e27170fb7d0f31acc5834a339ae8068a33 | f0333e02a4f63096f86afebfe1154fb35b5b3abf | refs/heads/master | 2023-08-24T04:36:36.141209 | 2023-07-10T16:25:28 | 2023-07-10T16:25:28 | 33,009,580 | 99 | 33 | NOASSERTION | 2023-08-07T17:30:35 | 2015-03-27T21:17:56 | C++ | UTF-8 | C++ | false | false | 2,678 | h | config_contig_builder.h | #ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED
#include <string>
struct Config
{
const char *accession;
int min_contig_len;
bool unaligned_only;
std::string filter_file;
bool exclude_filter;
Config(int argc, char const *argv[]) :
accession(nullptr),
min_contig_len(200),
unalign... |
e3037c6245575acd94d88fd640be6caad53df861 | 018e5cb15fd1123faf064928ad95ace891104fa1 | /ubcc1pi_standalone/Objects/FileReader.cxx | b4395a58b198f9ff893f8676564ec67a47ea427e | [
"MIT"
] | permissive | a-d-smith/ubcc1pi | b6e58e39f4290e84974eb6645679c2f9df4878c7 | 865328ba1f7538a3bb6521bde1514be463be712e | refs/heads/master | 2021-10-26T00:18:19.486820 | 2021-04-15T14:24:01 | 2021-04-15T15:04:36 | 172,954,385 | 0 | 1 | MIT | 2021-04-15T14:54:11 | 2019-02-27T16:54:19 | C++ | UTF-8 | C++ | false | false | 4,300 | cxx | FileReader.cxx | /**
* @file ubcc1pi_standalone/Objects/FileReader.cxx
*
* @brief The implementation of the file reader class
*/
#include "ubcc1pi_standalone/Objects/FileReader.h"
namespace ubcc1pi
{
FileReader::FileReader(const std::string &inputFile) :
m_inputFile(inputFile),
m_pFile(TFile::Open(m_inputFile.c_str())... |
dfb27581064b8fd2839be1f0cd75c51767d9aa50 | 5b9167c183b3de4c4a8bd6e9dd9ba049317c7a92 | /arrays-DS.cpp | 4cb83587f1bb4b5cb25f9798557ec40d31bcfce7 | [] | no_license | lindstromj/MyHackerRankSolutions | b29980e725b9ed7fd958c5c3820ace648839e2c3 | 3826e0f4a6cc123c891ed26b64357463d8fb40cc | refs/heads/master | 2020-04-06T07:06:27.935948 | 2016-09-08T22:39:26 | 2016-09-08T22:39:26 | 61,322,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | arrays-DS.cpp | /*
Arrays - DS Problem
Given an array, A , of N integers, print each element in reverse order as a single line of space-separated integers.
Input Format:
The first line contains an integer, N (the number of integers in A).
The second line contains N space-separated integers describing A.
Output Format:
Print all N... |
7ec65ee1df10420cf8abe16babcccf5af41ba56d | 4bbb616ef8b29fd4ef58b657ebfcebdef3734c66 | /Sorting_and_Searching/WaveSort.cpp | 2e753c34c05134ca76fbd48a934dc13c6bf3648d | [] | no_license | electrosoldat/algo- | a823f768bcc6fad03d71766ace8bb749e19e8d92 | 158f4657f563f821b29f4c31f792f16a35680217 | refs/heads/master | 2020-08-03T22:06:28.759153 | 2020-04-22T14:06:54 | 2020-04-22T14:06:54 | 211,899,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | WaveSort.cpp | // This is a special kind of sorting algorithm
// asked in interview by tech giants.
// Wave Sort
// Arrange the elements in the array, such that the elements are alternatively big and small
// hence, creating a wave.
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
int... |
66dd404c1aca08b71f6351fb5f3ee539716204c0 | 9c9ce04b40616556d23fb5be416bb0b452b4635f | /engine/engine/app/src/main/cpp/plugins/TextPlugin.cpp | 03f868ccf9eb20a6e9fdf6578639df7cc163ec44 | [] | no_license | xiakexingji/assimp_android_native_activity | 0e1e3342db72e5d99e86c9e24ef1111d5d6ee4f4 | 441c341cc279eb4e9728ad5d8ab340b600850c59 | refs/heads/master | 2021-06-13T03:34:23.015479 | 2017-02-18T00:12:25 | 2017-02-18T00:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,269 | cpp | TextPlugin.cpp | #include <Magick++/Image.h>
#include "TextPlugin.h"
/**
* Text drawing plugin
*/
TextPlugin::TextPlugin() {
m_Shaders = new TextTechnique();
}
TextPlugin::~TextPlugin() {
delete m_Shaders;
}
bool TextPlugin::Init(int32_t width, int32_t height) {
LOGI("in text init\n");
m_width = width;
m_heig... |
fe92e8b123182a2703624819416a4ab4eceeb03d | 6d23475bbc03022113541c1b9eb6c3854a2b7384 | /main.cpp | 8d025aa1072b36b2eb57edb6710174c6a0a056d0 | [] | no_license | HumanGamer/LegoRockRaiders | acef2089ffcb971f6952c669ab739906a7897aa0 | f8b9b4cf0766adc29d9d3e86f9eb5df715404815 | refs/heads/master | 2023-05-08T20:24:10.932787 | 2021-05-31T02:44:41 | 2021-05-31T02:44:41 | 372,322,273 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,366 | cpp | main.cpp | #include <Windows.h>
#include <ddraw.h>
#include <iostream>
#include "resource.h"
#include "registry.h"
#include "input.h"
#include "sound.h"
#include "directdraw.h"
#include "debug.h"
void processCmdArgs(char* argBuffer, bool *noSound, bool *requireCD);
void loadGameData(const char* gamePath, bool requireCD, const c... |
69d4de23c0602f413707aa959d3db44809a199d4 | 9a0d361d26ea092972a689663b9a8228f9018caa | /AlgorithmC++/Algorithm/ProblemSolving/week6/21.05.11/2792-1.cpp | 58f97cf974b4679b09bc4a3c94564a0bfa5bbfbc | [] | no_license | Dev-RubinJo/AlgorithmCpp | b555e3e2b39565d92a64cfeed9890d26589647e3 | cac74f7a3bdb4797b28ca4d3bc7f1618fc56c1f4 | refs/heads/master | 2023-06-03T08:52:35.733749 | 2021-06-22T14:32:04 | 2021-06-22T14:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | 2792-1.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n, m, ans = INT_MAX;
vector<ll> v;
void input() {
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cin >> n >> m;
for(int i = 0; i < m; i++) {
int a; cin >> a;
v.push_back(a);
}
}
void solve() {
sort(v.begin(),... |
4b20c8b1275952350de9ecf13aac29a57b102b47 | 9de69910925e3a018abe4ca4d1554a8595bef9f2 | /empery_center/src/legion_donate_box.hpp | 7b87d12c36860064f47bacbda5e5bf4362946f6f | [] | no_license | kspine/solution_pk | cbfec7d9f790d767788bfc1bfba670083aaaef72 | 3ae0f985f83cb6285fb01b7a90a488cbdf5ef7b8 | refs/heads/master | 2021-01-22T05:19:55.114481 | 2017-02-10T11:41:08 | 2017-02-10T11:41:08 | 81,637,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,527 | hpp | legion_donate_box.hpp | #ifndef EMPERY_CENTER_LEGION_DONATE_BOX_HPP_
#define EMPERY_CENTER_LEGION_DONATE_BOX_HPP_
#include <poseidon/cxx_util.hpp>
#include <poseidon/virtual_shared_from_this.hpp>
#include <cstddef>
#include <vector>
#include <boost/container/flat_map.hpp>
#include <boost/shared_ptr.hpp>
#include "id_types.hpp"
namespace Emp... |
96b260505dd832417365ab640d56042e6065df37 | 819506e59300756d657a328ce9418825eeb2c9cc | /multi-university/1th/k.cpp | 5d4c7733fb715b78699d75031e89c12da917fce4 | [] | no_license | zerolxf/zero | 6a996c609e2863503b963d6798534c78b3c9847c | d8c73a1cc00f8a94c436dc2a40c814c63f9fa132 | refs/heads/master | 2021-06-27T04:13:00.721188 | 2020-10-08T07:45:46 | 2020-10-08T07:45:46 | 48,839,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,606 | cpp | k.cpp | /*************************************************************************
> File Name: k.cpp
> Author: liangxianfeng
> Mail: liangxianfeng96@qq.com
> Created Time: 2016年07月23日 星期六 17时47分01秒
************************************************************************/
#include<iostream>
#include<cstdio>
#include<cs... |
65b2ba68b379532516632da3502dcfa4569376eb | b76be96606f1ed67a6c0b1a00cf33bfbcda8b72b | /all/数据结构-堆Heap-堆排序1.cpp | e6e04f5161220556aad3bb63995006e177db8e9c | [] | no_license | anthonysun0726/Algorithm-Templates_Cpp | da209e6e049be5d1bc2be739579a5ddf14040cf3 | 04d133309c2c01eeef154c0505946ea902889eb2 | refs/heads/master | 2022-04-13T07:46:54.574213 | 2020-04-01T13:26:47 | 2020-04-01T13:26:47 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 911 | cpp | 数据结构-堆Heap-堆排序1.cpp | #include<iostream>//(出堆最小堆)堆排序 O(NlogN)
using namespace std;//基本思想:利用最小堆堆的基本性质,不断将堆顶出堆并让堆尾补位,再向下调整实现排序
#include<cstdio>
int h[101];
int n=0;
int a[11]={0,7,6,9,1,4,3,2,8,5,10};
void swap(int x,int y)
{
int a=h[x];
h[x]=h[y];
h[y]=a;
}
void siftdown(int i)
{
int t,flag=0;
t=i;
while(i*2<=n&&flag==0)
{
i... |
cb3c720bed63fe20487570c1afd32b26a682f08c | fcee0522a53df36c745955c1424c6cd89d567a79 | /SQL/socketServe.cpp | 16f9b1515d99c0ddf5ec838f951b158780a9666c | [] | no_license | 940817335/SQL | 5243666a1951b7c81ee16400a5abda1858b5a2ba | ea7c8ce9cef52e3c256fcd181577407d0eee0a17 | refs/heads/master | 2020-05-14T19:02:21.731878 | 2015-07-05T08:40:20 | 2015-07-05T08:40:20 | 38,562,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | socketServe.cpp | #include "socketServe.h"
#include "tb_student.h"
#include "tb_StuScor.h"
#include "tb_teaccourse.h"
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
#define BUFSIZE 1000
socketServe::socketServe(void)
{
}
socketServe::~socketServe(void)
{
}
DWORD WINAPI AnswerThrea... |
f4bc379071295fb07228bcfa5ce921f3f02ae276 | c0c562c4b46796e010e215155591a4078d3fbd46 | /modules/functional-helpers/src/Trustchain.cpp | e39f07cea0cf0491d880afadcfee2f4a3c6d5177 | [
"Apache-2.0"
] | permissive | blockspacer/sdk-native | 811f655e7ccf7b298deb876de699c92474ba86e4 | 294b6d52acaa58dc8ff03ec8f794d16de23dd100 | refs/heads/master | 2022-07-15T14:09:57.077015 | 2020-05-13T12:28:56 | 2020-05-13T12:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | cpp | Trustchain.cpp | #include <Tanker/Functional/Trustchain.hpp>
#include <cppcodec/base64_rfc4648.hpp>
#include <Helpers/Config.hpp>
#include <memory>
#include <string>
#include <utility>
#include <nlohmann/json.hpp>
namespace Tanker
{
namespace Functional
{
void to_json(nlohmann::json& j, TrustchainConfig const& config)
{
j["trust... |
a50ae965e8d5c04aabba051d9c5811c88716fb44 | 173306639f0e6bc20d54ec422095052da851d40e | /incs/Element.hpp | 804e2d06775bb73b8e26bc285eceade7a3b37a79 | [] | no_license | mbourand/Ant_Colony_Simulation | 797384c446cde2b837a1076081af431f8326bc61 | 5a5f41aa8ca73dd67b28a21a0b24a2fe47b1cf16 | refs/heads/master | 2022-07-05T05:04:55.842400 | 2020-05-14T14:28:09 | 2020-05-14T14:28:09 | 263,759,898 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | hpp | Element.hpp | #ifndef ELEMENT_HPP
#define ELEMENT_HPP
#include "Settings.hpp"
#define ELEMENT_AMOUNT 3
#define ELEM_FOOD Element(ElementType::FOOD, FOOD_COLOR, FOOD_SPAWN_PROBABILITY, FOOD_ZONE_STEP)
#define ELEM_OBSTACLE Element(ElementType::OBSTACLE, OBSTACLE_COLOR, OBSTACLE_SPAWN_PROBABILITY, OBSTACLE_ZONE_STEP)
#define ELEM_N... |
c5b6a51f5b7c44a77a92cf5a833b12ce2abb1895 | 22b0e4bab232c0faf082518ace9b9f699bbf3dbb | /Centipede/Game Components/ScoreManager.cpp | a63fabcec0efc97654d897dc21ba45d06498b4e6 | [] | no_license | Ryan-Campbell-PT/Centipede | 15409e1a248128edd1d6d10516149a951ec72b6d | c681899e173f6322e7ee4fd0f5947ab02ce9d57d | refs/heads/master | 2020-03-28T14:30:49.368205 | 2018-11-14T00:19:53 | 2018-11-14T00:19:53 | 148,494,024 | 0 | 0 | null | 2018-09-26T16:39:24 | 2018-09-12T14:33:04 | C++ | UTF-8 | C++ | false | false | 3,580 | cpp | ScoreManager.cpp | #include "ScoreManager.h"
#include "ScoreValueCmd.h"
#include "ScoreByDistanceCmd.h"
#include "PlayerManager.h"
#include "TextEditor.h"
#include "Glyph.h"
ScoreManager * ScoreManager::instance = nullptr;
ScoreManager::ScoreManager()
:scoreGlyph(nullptr), maxScoreSize(6),
attractorMode(false), currentScore(0)
{
sta... |
c13996bf9bff1b871aa1de1af6f68cb2547c3342 | 63670a18a4fbd7216ce3e314fa610d1008b1a194 | /firmware/src/ViewControllers/Settings/CalibrationViewController.h | a71b74a6157ed8899d414d40d2c285ac9cf371ba | [
"MIT"
] | permissive | magnusnordlander/scale-on-the-internet | f5180e8e6701ca3e7b303c6faa6492a189332989 | a10ed114acfdbff79287fda8d15a5d36c6009636 | refs/heads/master | 2023-05-06T04:31:05.961148 | 2021-06-03T05:33:38 | 2021-06-03T05:33:38 | 373,392,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,249 | h | CalibrationViewController.h | //
// Created by Magnus Nordlander on 2021-02-13.
//
#ifndef GRINDER_CALIBRATIONVIEWCONTROLLER_H
#define GRINDER_CALIBRATIONVIEWCONTROLLER_H
#include "../../../lib/panorama/src/ViewControllers/BaseViewController.h"
#include <Settings.h>
#include <ScaleWrapper.h>
#include "../../../lib/panorama/src/View/ProgressBarVie... |
3799a23a524ce9d7a33bf17e54bc61666d626859 | fb44d56693210444345e689ad5cb2815d6e65071 | /swapper/scheduler_request.cpp | 4a5960aa5b3390ba41732a84fc6e92a90b689dd2 | [
"MIT"
] | permissive | liuzix/sgx-elps | b9902fc4dce102f90debb0d9c71a134c4860cc29 | 5a4a03618ba31ea6c1679126a3bed94342fc702d | refs/heads/master | 2020-04-22T17:37:07.265193 | 2019-05-20T16:59:09 | 2019-05-20T16:59:09 | 170,547,763 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | scheduler_request.cpp | #include <swapper.h>
#include <logging.h>
#include <request.h>
DEFINE_LOGGER(SchedulerRequests, spdlog::level::trace);
void schedulerRequestHandler(SwapperManager *manager, SchedulerRequest *req) {
if (req->subType == SchedulerRequest::SchedulerRequestType::NewThread) {
console->info("New Thread reqeust")... |
f6879fff0e3a74c8633b9782b71280208815ccb4 | 658d3c69f72d594d092ac3e341d7ceccf848f535 | /team_work/random_forest/github_randomforest/Random-Forest-master/unit_tests/ut_Node.cpp | ef2ab6ef43fe69024171f244910ecc03871492ee | [] | no_license | pbking1/machine_learning_coursework | 47306519f5671bd45390dc063edc9e9db8e3bc75 | 1c430e33dd156d273f50bc41c9410e402aac2bd6 | refs/heads/master | 2020-05-18T13:26:55.620086 | 2015-03-22T03:05:27 | 2015-03-22T03:05:27 | 32,644,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | cpp | ut_Node.cpp | /*
* ut_Node.cpp
*
* Created on: Mar 26, 2012
* Author: anthony
*/
#include <cppunit/extensions/HelperMacros.h>
#include "ut_Node.h"
#include "Node.h"
#include <iostream>
#include <string>
using namespace std;
CPPUNIT_TEST_SUITE_REGISTRATION( ut_Node );
//------------------------------------------------... |
80fa53d6eee408610a9a57cae334ca3222f0e928 | cccfb7be281ca89f8682c144eac0d5d5559b2deb | /ash/app_list/app_list_bubble_presenter.cc | 99a8592f3240ae0df2dcd324ac57fc5cde90bcce | [
"BSD-3-Clause"
] | permissive | SREERAGI18/chromium | 172b23d07568a4e3873983bf49b37adc92453dd0 | fd8a8914ca0183f0add65ae55f04e287543c7d4a | refs/heads/master | 2023-08-27T17:45:48.928019 | 2021-11-11T22:24:28 | 2021-11-11T22:24:28 | 428,659,250 | 1 | 0 | BSD-3-Clause | 2021-11-16T13:08:14 | 2021-11-16T13:08:14 | null | UTF-8 | C++ | false | false | 12,093 | cc | app_list_bubble_presenter.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/app_list/app_list_bubble_presenter.h"
#include <memory>
#include <utility>
#include "ash/app_list/app_list_bubble_event_filter.h"
#include... |
52549b38e8c3cf3f949bf40a3b9010fd6c8e980c | a62342d6359a88b0aee911e549a4973fa38de9ea | /0.6.0.3/Internal/SDK/UI_Technology_BuildingSlot_parameters.h | a2587e4f57befeb39a06af2bf2c6e617549d421e | [] | no_license | zanzo420/Medieval-Dynasty-SDK | d020ad634328ee8ee612ba4bd7e36b36dab740ce | d720e49ae1505e087790b2743506921afb28fc18 | refs/heads/main | 2023-06-20T03:00:17.986041 | 2021-07-15T04:51:34 | 2021-07-15T04:51:34 | 386,165,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,885 | h | UI_Technology_BuildingSlot_parameters.h | #pragma once
// Name: Medieval Dynasty, Version: 0.6.0.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//--------------------------------------------... |
38ac38b90c5aebbb43684b41439f73e0e03b8b16 | 898300f3b26c9a05ef8578f122a173e15c1b69f0 | /src/max_template.cxx | 872a4199224f9da41a5c86921023b898c8e8b6cc | [] | no_license | gajananspatil/cpp_concept | 2b77d436c120d68e74dbd32cbc5651eb9b4294e5 | 0400db3e874795edfde9e8dacb3bba377bbfcc86 | refs/heads/master | 2021-01-20T14:48:14.069483 | 2018-05-06T14:29:55 | 2018-05-06T14:31:13 | 82,714,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cxx | max_template.cxx | #include <iostream>
template<typename T>
T max(T a,T b){
std::cout<<"My max:";
return a < b?b:a;
}
int main()
{
std::cout<<::max(5,6)<<std::endl;
std::cout<<::max(9,6)<<std::endl;
std::cout<<::max(14.2,16.5)<<std::endl;
std::cout<<::max("Gajanan","Patil")<<std::endl;
}
|
77b7912e2eb1e4c06831819258724c6a61fbca57 | 5c1ffb79e3e925d9192e9677025d6307bdfb2dd4 | /scite/qt/android/androidshareutils.hpp | 55e38681f868a0e3bb29013207f3ab52392469b3 | [
"LicenseRef-scancode-scintilla"
] | permissive | missdeer/SciTEQt | f213610ca1b29478ce7d73bc6443dca5a1c473a2 | ba7c1df931e3e418e7dce657003000823bf030f7 | refs/heads/master | 2023-08-17T16:08:12.511030 | 2023-03-17T20:39:23 | 2023-03-17T20:39:23 | 324,496,991 | 0 | 0 | null | 2021-01-13T04:14:15 | 2020-12-26T06:35:24 | C++ | UTF-8 | C++ | false | false | 2,492 | hpp | androidshareutils.hpp | // (c) 2017 Ekkehard Gentz (ekke) @ekkescorner
// my blog about Qt for mobile: http://j.mp/qt-x
// see also /COPYRIGHT and /LICENSE
/***************************************************************************
*
* SciteQt - a port of SciTE to Qt Quick/QML
*
* Copyright (C) 2020 by Michael Neuroth
*
**************... |
2aa969ee06bdaa2a8a6afd5aacdb4d511d4901a1 | 570af8eff8d319469d772461cdbc68203f3b0102 | /HeaderFiles/Hash_Table.h | 4d8b3ccb1cc1abfa2caa5edfe33b8139ecb8f3c4 | [] | no_license | koutsd/whoServer | e302f222f6d585aa728bacf8ff2d4c8b05c39969 | c9d6ba96efe308d74d796f3b06bdd03980a18a2a | refs/heads/master | 2022-11-06T02:39:41.891886 | 2020-06-17T11:47:21 | 2020-06-17T11:47:21 | 270,720,713 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,430 | h | Hash_Table.h | #pragma once
#include "AVL_Tree.h"
class Hash_Table {
private:
class Bucket { // Store all data with the same hash value
public:
struct node {
string key;
AVL_Tree* tree;
node* next;
};
node* head;
void empty(node* n); // Delete all ... |
3de32093c31f88a30fe9e2dfc403c34dc94a9f02 | 12ca292e2bc62736f9908e19220aa72764093562 | /arch/aarch64.h | f61ff82bd11a94537e91b96f92d9342e15b5764d | [] | no_license | Ailrun/sandbox | b8b61bff91514df6bc12d8a9e4aecf7df88601dc | 98e618e3a31adbdebd9b645830462b2cd8cd62ae | refs/heads/master | 2023-05-09T10:41:48.534384 | 2021-05-29T18:36:58 | 2021-05-29T18:36:58 | 371,559,680 | 0 | 0 | null | 2021-05-28T02:39:02 | 2021-05-28T02:39:01 | null | UTF-8 | C++ | false | false | 1,262 | h | aarch64.h | #ifndef ARCH_AARCH64
#define ARCH_AARCH64
#include "arch_base.h"
extern "C" {
#include <stdint.h>
#include <string.h>
#include <sys/user.h>
}
class SyscallInfo : public SyscallInfoBase<struct user_regs_struct, unsigned long long> {
public:
bool is_compat_regset;
bool is_compat_table;
inline SyscallInfo(Thread... |
715578718498ac5920cb3d1c501aafb1c893c9ed | 6db1a5ae7dab3e070411c608fcfd1d7bb249fcbd | /src/carnot/planner/compiler/analyzer/operator_relation_rule.cc | c6a50739939ab92e9ecd80ef325ed5a744871fc0 | [
"Apache-2.0"
] | permissive | iColabora/pixie | cd698e3955841d6ceceadc1e5e018df6b355cad3 | 9bb302e3e5574cb7679c8cfabae8b826a20545c6 | refs/heads/main | 2023-08-03T16:24:34.060614 | 2021-09-08T22:38:16 | 2021-09-10T00:15:23 | 405,033,304 | 0 | 0 | Apache-2.0 | 2021-09-10T09:53:45 | 2021-09-10T09:53:44 | null | UTF-8 | C++ | false | false | 13,221 | cc | operator_relation_rule.cc | /*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... |
29a9b593345c7a3a0e870944434da3e0fc6002f8 | c77028f32a1ecb4c088dc1c3d761ae678f79efe8 | /pPac/Light.cpp | 82cdb6238cc7cd986473e3abe565e6510e3b3d19 | [] | no_license | ChristofferJon/pacmanhorror | f71351bfd16a8d6943f71d04ef1dcade6bbc77c1 | 0ecf33231df841e85ae6aef9990a8e61f05b23f6 | refs/heads/master | 2021-01-19T06:05:59.391593 | 2012-05-21T18:39:36 | 2012-05-21T18:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 110 | cpp | Light.cpp | #include "Light.h"
Light::Light( D3DXVECTOR3 _position )
: position( _position )
{
}
Light::~Light()
{
}
|
bc1c927d266dc2a1f232a192727ef08e6f00c17f | 88bd9cc11580d698c34fdd39db4baf017b896ed7 | /main/filter/helper/WaitForInputWorker.h | e8fd792762a6efa020991880d99f712b4b4afd75 | [] | no_license | templeblock/dsa | c69cc6e24683a042992e36084392fec3f77cd985 | c1d056a7dbb4451fd632760743e089b88a3fa90c | refs/heads/master | 2020-06-25T01:07:39.065747 | 2017-06-25T14:37:43 | 2017-06-25T14:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | h | WaitForInputWorker.h | /*
* WaitForInputWorker.h
*
* Created on: 27.11.2013
* Author: jung
*/
#ifndef WAITFORINPUTWORKER_H_
#define WAITFORINPUTWORKER_H_
#include <iostream>
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
namespace dsa {
class WaitForInputWorker {
bool finished_;
bool keyPressed_;
boost:... |
6cfd1156f7ead4457502639b0c45a32e2c2b080a | d10ac7fea233fe5b1991e93e37f3e920f789c080 | /SandRenderer/Source/Code/Engine/Base/TIsArithmetic.h | c977173bf4ee1bb58d4372045e19103297999978 | [] | no_license | ipud2/DirectX-1 | 0852c36e648bbdc12f3db5af1ff43450574d6332 | 8ab4e0631b8dfd2db09ff720cf8da7e10246f8d2 | refs/heads/master | 2020-12-23T17:03:15.055803 | 2017-04-04T15:36:00 | 2017-04-04T15:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | h | TIsArithmetic.h | #pragma once
template<typename T>
struct TIsArithmetic
{
enum
{
Value = false
};
};
template<> struct TIsArithmetic<float>
{
enum
{
Value = true
};
};
template<> struct TIsArithmetic<double>
{
enum
{
Value = true
};
};
template<> struct TIsArithmetic<long double>
{
enum
{
Value = true
};
};
te... |
de2fc451ee5e52216c03cf327ac166e30db7f21d | 640e0a3b6f14acf262d9a2fa91efab88cd396536 | /Pix4DOutput/Pix4DOutput/Feature.cpp | 8efbeb95d6a2fc6bf709411cf348fb32f30ff999 | [] | no_license | UAV-Concordia/Report-Builder | 4130488c5ea5a58ffe267ae53db1ae0b4c06aa46 | 5267a33bde51d7501bb667ea822a68e768afe144 | refs/heads/master | 2020-05-18T02:42:01.699487 | 2015-05-01T22:42:16 | 2015-05-01T22:42:16 | 32,762,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | cpp | Feature.cpp | #include "Feature.h"
Feature::Feature()
{
}
Feature::~Feature()
{
}
string Feature::getName(){
return name;
}
void Feature::setName(string pName){
name = pName;
}
void Feature::setBoundingPolygon(vector< vector< double>> pPolygon){
boundingPolygon = pPolygon;
}
vector< vector< double>>& Feature::getBoundi... |
0f0d44b998b39fd0d96878d3111208a5429a3811 | 89c542456303cb1b04f50eb962690a707724fdb9 | /src/cpuinfodata.cpp | 0c7c8b0590d29dcf48f9102b2a860f9a41a41a2d | [] | no_license | kadirince/P175873 | e6e74ab1c469f647ba7e36a0660c0c6ddc6b011f | 143dab001ecf4a85434befeb8f9452b2296f601a | refs/heads/master | 2021-01-19T03:36:57.336041 | 2017-04-05T23:07:32 | 2017-04-05T23:07:32 | 87,328,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | cpuinfodata.cpp | /**
* @file cpuinfodata.cpp
* @author Kadir Ince
* @date 04.042017
*
*/
#include "cpuinfodata.h"
#include <QTimer>
#include <QProcess>
CpuInfoData::CpuInfoData(QObject *parent) : QObject(parent)
{
QTimer::singleShot(1000, this, SLOT(sendCpuInfo()));
}
void CpuInfoData::sendCpuInfo()
{
// read cpuinfo
... |
726c0310933f15fd3c6f309e67e182469fdd43c8 | 16f8e99c6e2472d79fa96519f26f5f72e84377f6 | /tuplespace.cc | 1bd37470d7817540af2c10c86bc6c606ead3cdb3 | [
"Apache-2.0"
] | permissive | frsyuki/mplinda | e797dfe466ceb17fccad9046bea9bb89918c8aeb | 61553a04ee496a8765ead3e89b95faa8a310c50d | refs/heads/master | 2016-09-06T20:02:35.345543 | 2010-05-13T06:05:22 | 2010-05-13T06:05:22 | 664,021 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,495 | cc | tuplespace.cc | //
// mplinda
//
// Copyright (C) 2010 FURUHASHI Sadayuki
//
// 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.