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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc65dd0a43df8a2927f7ce503270d07dbefa3c41 | 601d32dc0b268486e0f480a155971547f62ed567 | /particleCOOLNESS/src/Simulate_Particles.cpp | e9a57465e64d398f147d8c6c330cf7125ba48fd0 | [] | no_license | davidutt36/CC-Lab-HW | db3a5aba1f5137440fd20612852f293bf41b0aba | bd2b0c8102eee9e6c2557d145e94415d0dd09e7c | refs/heads/master | 2021-01-02T08:47:30.232824 | 2015-12-15T00:50:10 | 2015-12-15T00:50:10 | 42,841,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,307 | cpp | Simulate_Particles.cpp | //
// Simulate_Particles.cpp
//
//
// Created by David Utt on 11/29/15.
//
//
#include "Simulate_Particles.h"
Particle *particles;
bool saving = false;
float mag(ofPoint in){
float retf = sqrt(in.x * in.x + in.y * in.y);
return retf;
}
//--------------------------------------------------------------
voi... |
151d362d9c5aa72ae4af6aaf4abd0c662f6be1d1 | 6a6f0b692b76dc62954e24b311503f6185810454 | /Redeployer/Code/Client.cpp | 0f7ce0362f4c2234697f2eadbd86ac5a92b27aaf | [] | no_license | spencerparkin/Junk | 0c5572086d9ebbbedd2a24f87911002ffe6839a9 | 917ba7435de19091a9d6dd2c8419fed573400833 | refs/heads/master | 2021-01-10T03:40:22.389159 | 2020-08-08T10:16:48 | 2020-08-08T10:16:48 | 44,126,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,347 | cpp | Client.cpp | // Client.cpp
#include "Client.h"
#include "App.h"
#include "Frame.h"
#include <wx/sstream.h>
#include <wx/protocol/http.h>
#include <rapidjson/writer.h>
#include <rapidjson/reader.h>
Client::Client( wxSocketBase* connectedSocket )
{
this->connectedSocket = connectedSocket;
socketInputStream = new wxSocketInputStre... |
1b08d4c5528075dd837191c27981fe135a18395b | 36b9decf14d266d6babaf1c44085c2ba869c03ce | /Remnant-main/Remnant/SDK/OnlineSubsystemUtils_classes.h | 8c3c00e283e15e5fcef4c4a8d63c2f83ed608999 | [] | no_license | RoryGlenn/RemnantLootSwitcher | 6e309a7b2b7bac88a166b552b640c830b863eb2d | 85c4cb6839b7c0f60cf8143c571d64ca12439a63 | refs/heads/master | 2022-12-29T08:47:15.713546 | 2020-10-23T22:01:45 | 2020-10-23T22:01:45 | 305,910,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,062 | h | OnlineSubsystemUtils_classes.h | #pragma once
// Name: Remnant, Version: 6
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// Cl... |
ae0152c8411ec3bc3b4b50c51484c1f226dd3b05 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/tests/DII_AMI_Forward/server.cpp | 9ba3fd91155dea1821da6631f627cfa2ba89ac63 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 3,171 | cpp | server.cpp | // -*- C++ -*-
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "server_interceptor.h"
#include "orb_initializer.h"
#include "tao/ORBInitializer_Registry.h"
const ACE_TCHAR *ior_filename = ACE_TEXT("server.ior");
int
parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_Get_Opt get_opts (argc... |
9118d67fd07fb12c8c482cf26e813e81923cb1da | 3ccf768d7354a3959c230cf148b82e4ffb3345e5 | /SPOJ/Life, the Universe, and Everything (Interactive).cpp | 9ec28ca4ab8df7515907048fd7e6645187c7390a | [] | no_license | AdityaRajSingh/CP | f954153d0f212729a12c00c13ac426b6dbf79a65 | 63a45f85a116c1ac6072b2ea82d6c3dc9f2fb910 | refs/heads/master | 2021-06-18T20:37:13.016307 | 2021-04-17T17:30:01 | 2021-04-17T17:30:01 | 204,256,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | Life, the Universe, and Everything (Interactive).cpp | /******************************************
* AUTHOR : ADITYA RAJ SINGH *
******************************************/
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define endl '\n'
int main()
{
#ifndef ONLINE_JUDGE
freopen("/home/aadi/D... |
849ad92006dd2cf10624ee8c8a65bd7131419b10 | 0fefd9e2f171cdfe4d8143577f285e8aa5e3c3cd | /src/Deck.cpp | 1ae0601fdae8d670bff0a54c611c8f57e9fe2c9d | [] | no_license | blumenra/assignment1 | f1d40e9daa2ff1affcbd618821e6ff3001658ddb | 6a197f6765306c7439367ccfd1c9d02e3fe4b8f3 | refs/heads/master | 2020-01-23T21:43:57.783313 | 2016-12-08T04:36:32 | 2016-12-08T04:36:32 | 74,684,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | cpp | Deck.cpp | #include <Deck.h>
Deck::Deck():
deck()
{}
//Deck Constructor
Deck::Deck(vector<Card*>& deck):
deck(deck)
{}
Deck::Deck(const Deck& otherDeck):
deck(copy(otherDeck))
{}
bool Deck::isEmpty(){
return this->deck.empty();
}
int Deck::getNumberOfCards(){
return deck.size();
}
string Deck::toString(){
string strDeck ... |
b85eac63f1a10b20cbd8bd36ea6242e05faad50f | 52f0fffcd4de0065856b2adf3fad9e5eb2bf515b | /DynModels/phaseportrait.cpp | 6e4cfa3ccbb36c42e610e447a338064f6c9721bf | [] | no_license | DesmondFox/DynModels | dd407bb707b11ceeef699a2827451806d11c7e6f | 0d5a161490ecfb94cbad16f1983c52267f76653c | refs/heads/master | 2020-07-17T21:52:16.818019 | 2019-11-17T17:08:14 | 2019-11-17T17:08:14 | 119,556,300 | 0 | 0 | null | 2019-03-22T12:38:59 | 2018-01-30T15:37:53 | C++ | UTF-8 | C++ | false | false | 5,536 | cpp | phaseportrait.cpp | #include "phaseportrait.h"
PhasePortrait::PhasePortrait(QWidget *parent) : CommonPlot(parent)
{
prepareItems();
setInteractions(QCP::iRangeDrag | QCP::iRangeZoom);
}
void PhasePortrait::prepareItems()
{
try
{
pEilersCurve = new QCPCurve(xAxis, yAxis);
pModEilersCurve = new QCPCurve(... |
6081b2c24a7cd9b50a1448b4d40895a2a252556b | ac875b7b19dc40f0e5ba7131c71d5309935e03d4 | /utils/conmenu.h | 2d3bd72384a9f1892e93ecd26c480b48cf0c17d4 | [] | no_license | Shad0w64bit/next | 493bb1a102b3eeff5022299077b4c1ff679dc0e0 | e6dfc8440a5b0825670d45f598624f57621c34fb | refs/heads/master | 2023-03-17T07:38:36.039635 | 2021-03-08T08:58:29 | 2021-03-08T08:58:29 | 257,820,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | h | conmenu.h | #include <iostream>
#include <fstream>
#include <windows.h>
#include <conio.h>
#define KB_UP 72
#define KB_DOWN 80
#define KB_ENTER 13
class ConMenu
{
public:
ConMenu()
{
m_hOut = GetStdHandle(STD_OUTPUT_HANDLE);
}
~ConMenu()
{
for (auto it=m_items.begin(); it!=m_items.end(); ++it)
{
free(*it);
}
}... |
3c176c569f48a65bb25607e4bf6bb79eb523d572 | 83e0b25992665df6283600d329b420799db0c0ef | /include/roswasm_examples.h | 7b9ed415bf511393b37c6f8458a071d399b08884 | [] | no_license | nilsbore/roswasm_webgui | 2e72f1a948c5e723735d9c7e87ae6c73324bfbf4 | c852f3301c25c4f6c0fa040fa0deff9893928973 | refs/heads/master | 2021-04-24T03:13:04.941712 | 2020-06-06T11:32:00 | 2020-06-06T11:32:00 | 250,066,633 | 0 | 1 | null | 2020-05-22T14:14:40 | 2020-03-25T19:03:39 | C++ | UTF-8 | C++ | false | false | 2,249 | h | roswasm_examples.h | #ifndef ROSWASM_EXAMPLES_H
#define ROSWASM_EXAMPLES_H
#include <roswasm_widget.h>
#include <sensor_msgs/NavSatFix.h>
#include <sensor_msgs/BatteryState.h>
#include <nav_msgs/Odometry.h>
namespace roswasm_webgui {
class ExampleActuatorWidget {
private:
TopicPairWidget<geometry_msgs::Pose2D, std_msgs::Float64>* t... |
7c3bc75973e4bfb402a57943408300f90ca457e8 | 293902682d7ee13be81ada6c28ef6b840983ac33 | /CORAL_SERVER/CoralSockets/CoralSockets/GenericSocketException.h | 83341596ca5575eba5a41139aa924a94aa65c913 | [] | no_license | cms-externals/coral | d17cba45fff7f34d7a1ba13ab3bb371e0696c1af | a879b41c994fa956ff0ae78e3410bb409582ad20 | refs/heads/cms/CORAL_2_3_21py3 | 2022-02-26T18:51:25.258362 | 2022-02-23T13:19:11 | 2022-02-23T13:19:11 | 91,173,895 | 0 | 4 | null | 2022-02-14T13:20:11 | 2017-05-13T12:47:54 | C++ | UTF-8 | C++ | false | false | 558 | h | GenericSocketException.h | #ifndef CORALSOCKETS_GENERICSOCKETEXCEPTION_H
#define CORALSOCKETS_GENERICSOCKETEXCEPTION_H
#include "CoralBase/Exception.h"
namespace coral {
namespace CoralSockets {
class GenericSocketException : public Exception
{
public:
/// Constructor
GenericSocketException( const std::string& mes... |
ede49c28e8e4523c5a1df40f47cd111fb7b47d44 | e3cd86387b1cbca05b5c78b428ec700a292623be | /src/Plotter.cpp | 5cbe61fccf4d2936cc7d118734fc5be1b71fe372 | [] | no_license | mkovac/KDs-plotter | 5f23f7fa9bca6c77d7113a4183b3f1a4f467a645 | 020624376efbf70290c98d3a05c480dee40ced16 | refs/heads/master | 2021-01-01T15:30:00.019497 | 2014-06-09T14:09:33 | 2014-06-09T14:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,502 | cpp | Plotter.cpp | #include "Plotter.hpp"
// Constructor
//==============================================
Plotter::Plotter( TString energy, bool unblind )
{
// ZXnorm = 1.0086 + 0.3826 + 0.4505 + 1.3097 + 0.8967 + 1.9897;
ZXnorm = 0.462495 + 1.86816 + 0.297662 + 1.32318 + 0.211827 + 1.12853;
// _applySuperKDcut = applySuperKDcut;
_... |
78c6042931d4cd566812bd946edaf2445f4c4ad8 | c9c680dfec2a7b35b025d4438fd464147f51ed6c | /src/Sound_Mixer.h | 6ba5077ed577be3cc91fdd3a18c95c29c003dbbc | [] | no_license | birgersp/df-jobsounds | 5064ff3f2d6b8b292e5e359d8f1e5ba59e7caa93 | fb04e5de12b20d473fb2e269fa3d8017c40c934c | refs/heads/master | 2020-12-22T16:09:11.272996 | 2020-06-01T19:09:30 | 2020-06-01T19:09:30 | 64,414,073 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 353 | h | Sound_Mixer.h | /**
* @author birgersp
* https://github.com/birgersp
*/
#pragma once
#include "core.h"
#include "Sound.h"
#include <SDL2/SDL_mixer.h>
class Sound_Mixer
{
public:
void initialize();
Sound load_sound(String_ref filename);
void play(const Sound& sound);
private:
Vector<Mix_Chunk *> mix_chunks;
Mix_Chunk *get_m... |
297106bb852593bf78e83ca5eae6ea6660d8ebe2 | 20737c1ea61539f214e95f4fc8cd9b3fc77925dc | /TurboSort.cpp | eb276f47bd618310b821bec805d12db9a48ff97e | [] | no_license | abhicse32/Codechef-Solutions | 6b67eda8805eee077a1ff66ed57eeb34d9876866 | 8f0277db048bc08053a2ff55d00f5d6c5a17aa84 | refs/heads/master | 2021-01-20T17:32:58.839891 | 2016-06-08T13:32:05 | 2016-06-08T13:32:05 | 60,700,174 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | TurboSort.cpp | #include<>
#include<stdlib.h>
int main()
{
int t,n,i,j,*arr,MAX = 1000000;
scanf("%d",&t);
arr = (int *)malloc(sizeof(int) * MAX);
for(i = 0; i < t; i++)
{
scanf("%d",&n);
arr[n-1]++;
}
for( i = 0; i < MAX; i++)
{
for(j = 0;j < arr[i]; j++)
printf("%d\n",i +... |
239846a94efb8dca658524e1814cc941711c3723 | ec6b16fc4c014258d3ea48626ae58b80290384c9 | /Cyberbezpieczenstwo_w_administracji/Cyberbezpieczenstwo_w_administracji/PauseState.cpp | 0339576a14de289014c76177c258dfb773dc46b8 | [] | no_license | SwRafal/Cyberbezpieczenstwo_w_administracji | 5336ec35ec6e4bb7d1751806c3b4ec2ebcdcd429 | 58289efb02ebf901e5b7fc2546e65ccdf94fd06b | refs/heads/master | 2020-06-18T18:17:49.168974 | 2019-10-23T18:49:30 | 2019-10-23T18:49:30 | 196,395,303 | 0 | 2 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 5,109 | cpp | PauseState.cpp | #include "PauseState.h"
PauseState::PauseState(gm::gameDataRef data) : data(data), resumeButton(*gm::Assets::getFont()), saveButton(*gm::Assets::getFont()), menuButton(*gm::Assets::getFont())
{
}
PauseState::~PauseState()
{
}
void PauseState::init()
{
/* variables */
resuming = false;
scale = 0.05;
opacity... |
a20d39e2fe2562e0805cc386c0bfd741fad3b756 | e35b0ed81d919b0a0dd446ef1f92a40fc3fbff0b | /test/data_handler_test.cpp | 8f0ee9337addbddb516b077b34e6988590ebc5af | [] | no_license | DonghyunSung-MS/motion_filter | 06d3907c52647c41f9444e43acbbd369860d6489 | fb7a66a691b8e135593faa45e3d640e7533efce7 | refs/heads/master | 2023-06-24T10:35:31.241097 | 2021-07-23T09:00:28 | 2021-07-23T09:00:28 | 379,152,948 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 810 | cpp | data_handler_test.cpp | #include <motion_filter/data_handler.hpp>
#include <std_msgs/Int32.h>
#include <std_msgs/Float64.h>
using namespace motion_filter;
int main(int argc, char **argv)
{
ros::init(argc, argv, "dh_test");
ros::NodeHandle nh("~");
double dt = 1.0/100.0;
DataHandler dh = DataHandler(nh);
ros::Rate loop... |
6c824eae8e982cef01b5210b1e7934f6ac3fed59 | c564bc1a2b730b2ea27fb847e4be2a979fd28718 | /cacm.cpp | d7705e8fec8ae3bcc96544a249763b63b3b77ac7 | [] | no_license | codyemoffitt/2110_LinkedListsCPP | 7aebf3642924b438cbff6b6c7aff4ecd91394358 | ddbfd32f9abf944e167e881d75c92621ecc85c30 | refs/heads/master | 2021-01-09T21:48:31.672534 | 2016-01-15T08:41:40 | 2016-01-15T08:41:40 | 49,707,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,190 | cpp | cacm.cpp | //Program 2 cacm.cpp
//Author: Cody Moffitt
//Date: 3-7-13
//Purpose: This program loads articles from the CACM database files into a sorted linked list.
// It opens the CACM database file given in the command line arguments.
// If the filename and file are valid, it loads articles into a sorted lin... |
a49f01aedace593d5307d16c9314a4157130d5a7 | 761c4e71dcd882fbc815766bfe2dffa6a04f2ef4 | /644 div3/E.cpp | 21278a1301e0d96dc9fe2a26db25298c907c520e | [] | no_license | Adityasharma15/Codeforces | 419838d8672c2106a8135b5bd495f2c3da259d7d | 31e61d11db0e9ab749c5d97fbb14ae482655615d | refs/heads/master | 2021-04-05T15:08:01.415459 | 2020-11-20T12:13:25 | 2020-11-20T12:13:25 | 248,570,193 | 3 | 3 | null | 2020-10-23T05:59:42 | 2020-03-19T17:56:09 | C++ | UTF-8 | C++ | false | false | 1,011 | cpp | E.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll t;
cin >> t;
while(t--)
{
ll n;
cin >> n;
ll arr[n][n];
string s;
for(ll i = 0;i<n; i++)
{
cin >> s;
for(ll j = 0; j<n; j++)
... |
865e6e91facc11db719bc7beac2f2d66fa5518fd | 1cf7d8786d7ef678f0d6739bf97e1c440144262c | /mCanny.cpp | 81368a96578e69c151e8159cd6c149888a5f0c6e | [] | no_license | JoeNero/Opencv_private | bcd0235304c6b26bb40004acb4b5a25d72047abd | c54f7dbfe36c950e6f57471a4c0455b9f5902c26 | refs/heads/master | 2020-12-28T03:38:24.500153 | 2020-04-09T05:45:56 | 2020-04-09T05:45:56 | 238,167,778 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 666 | cpp | mCanny.cpp | /*
创建者 : XTT
功能 : OpenCV
Canny算子边缘检测
时间 : 2020/01/08
*/
#define _CRTSECURE_NO_WARINGS
#include <iostream>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\core\core.hpp>
#include <opencv2\imgproc\imgproc.hpp>
#include "opencv2/imgproc/types_c.h"
using namespace std;
using namespace cv;
int main()
... |
1e6bf708e999b7e67a2880fef33778e0e85c788c | 2d3679e04dc0144393417aed4d35bb60d5d14cb5 | /src/Factory/Module/Monitor/Monitor.cpp | ba9ffcc7e8be4253e46887f80333432e80385861 | [
"MIT"
] | permissive | praveenmunagapati/aff3ct | 8d480d2012e0fe452187e57a362d07dc2d0ae745 | a4ec63b36496275d5fdf4b3c75443d2a3af6c216 | refs/heads/master | 2021-07-21T15:42:45.047139 | 2017-10-31T08:51:34 | 2017-10-31T08:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | Monitor.cpp | #include "Tools/Exception/exception.hpp"
#include "Module/Monitor/Monitor.hpp"
#include "Monitor.hpp"
using namespace aff3ct;
using namespace aff3ct::factory;
const std::string aff3ct::factory::Monitor::name = "Monitor";
const std::string aff3ct::factory::Monitor::prefix = "mnt";
Monitor::parameters
::parameters... |
12909f956612c2ed2f10a602ac9052b6d3a0c651 | 73a0f661f1423d63e86489d4b2673f0103698aab | /oneflow/core/auto_parallel/auto_memory.h | 5591a7be30545990e7f6f60a6e7cd0c6ee3cb1cc | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | C++ | false | false | 1,338 | h | auto_memory.h | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
93c1427d3bd8bc45d61469e19b0fe418544ae46b | 5cf1e908865c7836e51fe3da1feee3c66837a4f1 | /Modules/Core/include/selxInterfaceAcceptor.hxx | ddcfac6bbb06a1712fc7b742efe68a75f9acc3da | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | deaspo/SuperElastix | b20630baf165e5d33b7334b7de8e39bea05a145c | 4e917e974237342e0b761ab59cb11d3352e243fb | refs/heads/develop | 2020-03-21T16:44:59.634268 | 2018-06-30T14:08:23 | 2018-06-30T14:08:23 | 138,791,142 | 0 | 0 | Apache-2.0 | 2018-06-30T13:54:16 | 2018-06-26T20:42:47 | C++ | UTF-8 | C++ | false | false | 3,420 | hxx | selxInterfaceAcceptor.hxx | /*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... |
5edc4faab87816aafcdfd1ff6b5764c5fc1d17ec | db02128059c2d16e47a89dab433d9aedd2d08720 | /mycombobox.h | 8502124ada1fe4e9725b4a8c29b98d548e272bc8 | [] | no_license | baronzzl/QTreeWidget-NoteBook | 1cf28b2da12f8e2607e46d2a5409fbdcf550e7ef | 69407ad754e2a78f191501159b2a1eea6f5c31b3 | refs/heads/master | 2020-06-24T17:25:13.991836 | 2019-07-26T14:22:26 | 2019-07-26T14:22:26 | 199,029,956 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 387 | h | mycombobox.h | //测试控件是否会自动释放
#ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H
#include <QComboBox>
#include <QDebug>
class myComboBox : public QComboBox
{
public:
myComboBox(QWidget *parent = 0) : QComboBox(parent){
//qDebug() << "combox construct"<<endl;
}
~myComboBox() {
//qDebug() << "combox disconstruct"... |
80885fbddfc8c24150b4dc4d2c4e4737cf5aa79b | efc0cbb907a05ee2c1f2a656f83eae07d390f64d | /AppleFileSystemDriver.cpp | f295ebd6d68888002a36568a6d1d49c3a789d9df | [] | no_license | apple-opensource-mirror/AppleFileSystemDriver | 504989074864a5a7fd4617e676163388bc007745 | 4026f86535ddd3e43c5022140e6a3875e70fa56a | refs/heads/master | 2020-06-23T03:52:34.551654 | 2017-09-28T17:59:11 | 2017-09-28T17:59:11 | 198,502,126 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,314 | cpp | AppleFileSystemDriver.cpp | /*
* Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except ... |
eedf7989f1d3c61eff9d1d896a08bbc4a49298fa | e8122796b3870a01dae0424716ee7a2b3c48ff2f | /Include/UserInterface/MenuElement.hpp | eac0ac2b5085832236e17fbba9ca5bfdbe43c1e1 | [] | no_license | hadi-ilies/IndieStudio | ed72ff01c3447b4045dd931bb20ba332ff61e95f | b7eb2a0d65cdbc1f56bf90807d25773bc4faf821 | refs/heads/master | 2020-06-25T09:58:04.685150 | 2019-06-20T10:28:51 | 2019-06-20T10:28:51 | 199,277,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | hpp | MenuElement.hpp | /**
* @author Corentin Gautier (https://github.com/Adorr29)
* @author Hadi Bereksi (https://github.com/hadi-ilies)
* @author Camille Police (https://github.com/CamillePolice)
* @copyright © 2019, OOP_indie_studio_2018, Zappy group
* @package UI Package
* @file MenuElement
*/
#pragma once
#include <vector>
#inc... |
27c59e8cd7e3010c026689f9dcd779b5eb2654c5 | e25d67cb2effcd75fda50ec07210a48f9f8db0eb | /algorithms/STL Algorithms/non-modifing/identical.cpp | 18dfb7aa47f01c6573172551fc6a7cceb5b3e1ef | [] | no_license | tahanebti/tnlib | db8072c754210e0a1e8d975a75282f6624dda044 | 9e18eddd1350f936a9dc4e61423a83b12f7d307f | refs/heads/master | 2020-05-14T18:52:20.534733 | 2019-05-29T14:45:56 | 2019-05-29T14:45:56 | 181,917,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,606 | cpp | identical.cpp | /// identical
///
/// Returns true if the two input ranges are equivalent.
/// There is a subtle difference between this algorithm and
/// the 'equal' algorithm. The equal algorithm assumes the
/// two ranges are of equal length. This algorithm efficiently
/// compares two ranges for both length equality... |
d1a43fc3907adb77e67a1f8d52a561d043eba62c | 4cc998877a0df5e766554af806f94a79419a0178 | /Mathematical/Narcissistic number.cpp | f6c290725bbf54dac24525290b9c41437228160a | [] | no_license | greeshma0601/Arrays | 521ecb189b0c0ce0b4fcb1244d62a02386620c54 | 6b69562519663bc07706410d8e4c4c73cbe606b5 | refs/heads/master | 2020-04-13T20:43:18.904015 | 2019-06-25T05:32:55 | 2019-06-25T05:32:55 | 163,437,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | cpp | Narcissistic number.cpp | /*
Narcissistic number
Given N, check whether it is a Narcissistic number or not.
Note:Narcissistic Number is a number that is the sum of its own digits each raised to the power of the number of digits
Input:
The first line of the input contains a single integer T, denoting the number of test cases. Then T test case... |
3559f4f5a984bfbc7152155d8b16d9c8e59f2900 | 91adb2b7718f15b916bc5db65c8e0bad081c7ae5 | /TEST/main.cpp | 32a0c4b36f4c3fa86de37031c943c1934d8a95e4 | [
"Zlib"
] | permissive | MilchRatchet/PAL | e72e1ed64b14c8c2a2c82569ad5f26387f7e202e | 75d1b1aaf467ff056a65d39de8ca234e1a1bb0c9 | refs/heads/master | 2023-06-28T06:30:06.484596 | 2021-07-18T12:17:37 | 2021-07-18T12:17:37 | 376,462,908 | 0 | 0 | Zlib | 2021-07-22T14:59:32 | 2021-06-13T06:46:13 | C | UTF-8 | C++ | false | false | 2,660 | cpp | main.cpp | #include <iostream>
#include <set>
#include <string>
#include "TEST_CONVEXHULL.h"
#include "TEST_knapsack.h"
#include "TEST_MAX_SAT.h"
#include "TEST_metricTSP.h"
#include "TEST_setcover.h"
#include "TEST_UTILS.h"
/*
* select tests
*/
void select_tests(int argc, char** argv) {
std::set<std::string> testset;
fo... |
d440830c1fcae7e2670b922103c0a8fb87d2f067 | 69bbbc4a9c25e03fb4a4ee4b6cd1d015ce6cfe23 | /include/petshop.h | 9c45afeab5292bf1efe31160efe4bbeb4f5b1c1d | [] | no_license | wellysongustavo/petshop-petfera | 1c7cbe98a6742fee9cf43dab8b482cd111a1ee6b | b117813935eba85acc93f115c64056bf97fc874a | refs/heads/master | 2020-05-19T02:53:39.686961 | 2019-07-02T15:49:27 | 2019-07-02T15:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,659 | h | petshop.h | /**
* @file petshop.h
* @brief Estrutura de dados e assinaturas da classe controladora Petshop
* @authors
Fernanda Laís Pereira de Souza
Pedro Hugo da Silva Freire
Wellyson Gustavo Silva Oliveira
* @since 03/05/2019
* @date 26/06/2019
*/
#include <iostream>
#include <string>
#include <cstring>
#include... |
7bd075d2959fdc854a408576ff6d60908863b77d | b61ee126f8f9e4c85e9e387ce3491566915d8670 | /third_task/stack.cpp | 1f4c7e7284de2e227f3af711ef9d2c67766b28b4 | [] | no_license | TheLostIn/database__2016-2017 | 9f0854501b67e2b237b10cf7920732a602050f91 | f76d886598fd4cb0e0f298bb49cd3435849b6043 | refs/heads/master | 2021-01-11T09:57:47.638747 | 2017-01-11T12:28:38 | 2017-01-11T12:28:38 | 77,883,414 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,890 | cpp | stack.cpp | #include<iostream>
using namespace std;
typedef int Status;
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
typedef char SElemType;
typedef struct{
SElemType * base;
SElemType * top;
int stacksize;
}SqStack;
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10... |
3fcc7b2896db2b4b357e5809fdecca6d10d3f695 | 92711931648bcb17fff8daaa27aef93387ec632d | /src/Config.hpp | 9e7be2f7a3de3295e43c6f658352c974f8590d48 | [
"MIT"
] | permissive | ulises-jeremias/cpp-conway-s-game-of-life | 958222dabfe7949cf38e1ae95ab0381f68069a98 | c3236b400ca176e948f42f0b56986b4a7935dc60 | refs/heads/master | 2021-05-04T13:50:52.148910 | 2018-02-19T23:05:48 | 2018-02-19T23:05:48 | 120,324,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | hpp | Config.hpp | #ifndef CONFIG_H
#define CONFIG_H
struct Config
{
unsigned windowWidth,
windowHeight,
simWidth,
simHeight,
quadSize;
};
#endif // CONFIG_H
|
29f7d46275c4c469525096b15b89bee594d96b00 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/lib/storage/vfs/cpp/queue.h | 63b521ce027546cdaf7f502810c02649bf7a9269 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 1,458 | h | queue.h | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_LIB_STORAGE_VFS_CPP_QUEUE_H_
#define SRC_LIB_STORAGE_VFS_CPP_QUEUE_H_
#include <utility>
#include <fbl/intrusive_single_list.h>
#include <fbl... |
ced87bf019eeea43449aa0a5a0356e10b9bfc2ca | 290273092ded4f168bc8980661ff5f865b59dcfa | /week06/main.cpp | 5b8b793c76420a7b14776aaae1855d4cec2f5d3c | [] | no_license | seiya1817/2021graphics | 963f609e73ae3a6ee737710de08943f024a8e716 | e604933dacaf925b79095dfaa83e192ad014f4a0 | refs/heads/main | 2023-05-15T01:29:43.861402 | 2021-06-09T04:26:43 | 2021-06-09T04:26:43 | 346,205,073 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 1,662 | cpp | main.cpp | #include <GL/glut.h>
float angle=0;
void hand()
{
glPushMatrix();
glScalef(0.5,0.1,0.1);///大小
glColor3f(0,0,1);///顏色
glutSolidCube(1);///方塊
glPopMatrix();
}
void display()
{
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glColor3f(1,1,1); glutSolidCube(0.5);
... |
796f34f6f949a3719490f661bc6f7ad81f98d02d | 3ba8d0f4c498e44204ec57c89a500ce1341a71bc | /Session3/Polynomial_1st.cpp | f0d1038d76830b2a76bef80ddf7ded37acfe2e98 | [] | no_license | ShaoFuLiu/10902-Data-Structure | c37f531b311e5efbd5c5de7470ca8836d5fc45f8 | 96817b54cf6ad99365a44bffa567438e5398ff62 | refs/heads/main | 2023-06-24T13:01:37.425754 | 2021-07-29T23:42:22 | 2021-07-29T23:42:22 | 346,219,349 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | Polynomial_1st.cpp | #include <iostream>
#include <algorithm>
#include <Polynomial.h>
using namespace std;
int main(void)
{
int degree = 3;
Polynomial A, B, C;
A.degree = degree; B.degree = degree; C.degree = degree;
for (int i = 0; i <= degree; i++)
{
A.coef[i] = i;
B.coef[i] = i;
}
C = A.Add... |
db511622156d0b530dd703277f0123853bf8ec8c | adc86591cdae82d07e10f85c400938f764292de2 | /src/fonction/fonction_conversion/fonction_selection_selon_dictionnaire.cpp | 34d4a9cdf8270ae30f05e4f598186868080985cf | [] | no_license | sebangi/emgine | e88bbd9223ea978344d4e9be51abbaa1f124ed9e | 9cd367f10f26c140bc02bab6a8257c46af66adce | refs/heads/master | 2021-07-15T16:04:39.127717 | 2021-03-19T12:14:59 | 2021-03-19T12:14:59 | 78,368,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,169 | cpp | fonction_selection_selon_dictionnaire.cpp | /** \file fonction_selection_selon_dictionnaire.cpp
* \brief Fichier d'implémentation de la classe fonction_selection_selon_dictionnaire.
* \author Sébastien Angibaud
*/
#include "entete/fonction/fonction_conversion/fonction_selection_selon_dictionnaire.h"
#include "entete/compilation/compilateur.h"
#include "ente... |
5a56009a7eeab89d1fc35722be9a50f4dad43941 | cd0c34e5a887d56de032ebc1d9b473d676ea791e | /fileH.cpp | 2753d42c1227834ae433be2fc8c6d990dac71e10 | [] | no_license | riyel518/CS375-Assignment1-Working | 486dd6f84b726e24ad00fb064def26b37919d163 | e7e7c3b3f5be42953488e7d25d450050522fa85e | refs/heads/master | 2021-01-10T05:14:40.318167 | 2015-12-23T05:59:56 | 2015-12-23T05:59:56 | 48,472,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | fileH.cpp | #ifndef FILEH_H
#define FILEH_H
#include <string>
struct inputData {
char types;
char secTypes;
std::string licenses;
int capacity;
};
void fileInput (string fileName, startStack& auto, startStack& van );
#endif
|
029124b0fd13bf6d9761b9e462c527e0e6dc9644 | 61657efce98b72ee8d76e8be846edb74467d4d44 | /sketch_nov13a.ino | 37bf43c67cda722df7d315b0436f15cc9e3766d5 | [] | no_license | FGalerne/arduino | 43edb7f2a0b0942952476f7101767de85e2501ff | bf2bc43a1c594d75d205468023897f29d0827921 | refs/heads/master | 2021-01-22T00:51:01.639197 | 2016-11-13T00:32:50 | 2016-11-13T00:32:50 | 73,586,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | ino | sketch_nov13a.ino | #include <LiquidCrystal.h>
blablabla
LiquidCrystal lcd(12,11,5,4,3,2);
int capteur=0;
char mot[20];
void setup() {
Serial.begin(9600);
lcd.begin(16,2);// put your setup code here, to run once:
lcd.setCursor (0,0);
}
void loop() {
int valcapt= analogRead (capteur);
float voltage= valcapt*(5.0/1700.0);
float... |
1dc0c1b0932ed45b5cf7de6ef1419fcb4c9a3b43 | 153f22995d60ed94e93f71c3c3cc7d363fa6f209 | /recursion1b_/removeX.cpp | 0e97aaab99a9010f7a88aaa1a236a0286b77d674 | [] | no_license | md1894/c-ds | b269edaaf7ff31f562ee560c2b851bc8faa0b3a8 | 27077fc641bf504dc0f8dc5271db9f8e5e708b5f | refs/heads/master | 2023-01-29T03:37:40.837892 | 2020-12-08T07:30:02 | 2020-12-08T07:30:02 | 218,822,640 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | removeX.cpp | /*
Remove X
Send Feedback
Given a string, compute recursively a new string where all 'x' chars have been removed.
Sample Input 1 :
xaxb
Sample Output 1:
ab
Sample Input 2 :
abc
Sample Output 2:
abc
Sample Input 3 :
xx
Sample Output 3:
*/
#include <iostream>
using namespace std;
// Change in the given string itself.... |
2d571b6f604f25f58afedd46afe82395a7dfb798 | 397f7eb1ea15ba0bb300ba1e99681164c0421a8d | /platform/posix/diagnostic_context_posix.cpp | c30efd754d61685dcd841cb2ab87dcb1e54665e8 | [
"Apache-2.0"
] | permissive | mexicowilly/Chucho | 38a19664a2296dbe128586281d3b2cc4fe8dc531 | f4235420437eb2078ab592540c0d729b7b9a3c10 | refs/heads/develop | 2021-06-14T14:51:34.679209 | 2021-06-03T17:06:05 | 2021-06-03T17:06:05 | 67,319,394 | 4 | 4 | null | 2018-01-25T16:01:30 | 2016-09-04T01:20:42 | C++ | UTF-8 | C++ | false | false | 2,213 | cpp | diagnostic_context_posix.cpp | /*
* Copyright 2013-2021 Will Mason
*
* 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 applicab... |
75768413d23a659441090c1356b766c05609d738 | 598ae213f1855a5fb546eee37668e9489dcd0812 | /pizzeriy/pizzeriy/onlineP.cpp | 732514ce458651b2b8dc3b08291f270efb18d955 | [] | no_license | stefandink1/Pizzeryi | f66d9bc523dd43deea620aeb3122e88335f4ab34 | e072fe65a224cb55376e98116ab1010c4e407e05 | refs/heads/master | 2020-12-07T07:24:44.937451 | 2020-01-08T22:23:39 | 2020-01-08T22:23:39 | 232,671,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | onlineP.cpp | #include "pch.h"
#include "onlineP.h"
void onlineP::askDistance() {
cout << "Care este distanta pana la resedinta d-voastra? (km)" << endl;
cin >> distance;
}
void onlineP::calcPrice() {
float delivery = (0.05*this->pizzaValue)*(distance / 10);
totalPrice = this->pizzaValue + delivery;
}
float onlin... |
accf0d1fae59af267ed72c18905bbca7b3c367b3 | 2d78b38d685cbba73dd5b1a84a006ae02e01464a | /Program2Folder/sources/inc/program2internals/input/InputPropagator.hpp | 4488c21e7390000d4936febe40ea55a5bd58e72b | [] | no_license | stryku/LifeHelper | c14b4ccfe565c9914dbb74ee21f5035ab975db98 | 55317dd79053dfec9bd533b44a6a3e4d3aa46d43 | refs/heads/master | 2020-05-21T19:37:12.892478 | 2016-10-02T00:49:10 | 2016-10-02T00:49:10 | 63,280,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,505 | hpp | InputPropagator.hpp | #pragma once
#include "utils/log.hpp"
#include <memory>
namespace P2
{
namespace Input
{
template <typename InputHandler>
class InputPropagator
{
public:
InputPropagator() = default;
InputPropagator(std::weak_ptr<InputHandler> handler)
:... |
b924f1ddfc9b4bbf04b64d033aa1ad835fcc9d5f | ad3647454840c3ec767d1c2643c9ff6fc27ea18c | /week-04/day-03/Flyable/helicopter.cpp | 6033ca33a171ec9ea9ad73cb9b64dc4311b03b99 | [] | no_license | green-fox-academy/pVer297 | 15ec329d1efbf8a102c5a3b7214ab5e17217feb9 | f0cf0fc9afe57a09043f379829df5144b02f9c71 | refs/heads/master | 2020-04-16T19:10:48.992084 | 2019-08-06T14:16:52 | 2019-08-06T14:16:52 | 165,849,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | cpp | helicopter.cpp | //
// Created by Egri Zoltán on 2019. 02. 06..
//
#include "helicopter.h"
Helicopter::Helicopter(int maxSpeed, int weight)
{
_maxSpeed = maxSpeed;
_weight = weight;
_speed = 0;
_isInAir = false;
}
void Helicopter::takeOff()
{
if (!_isInAir) {
std::cout << "The helicopter took off" << std::e... |
da98e11278fc682240574a1e18f9530edee64901 | ac647f5ba39beb3b327f8f041f3215d227a2696f | /2018 tank drive (mach 2) Final Version/src/Commands/Autons/CenterToRightLine.cpp | 890a5ad7513454a1069eea99fc6914e024f632fb | [] | no_license | RyanDraves/FRC-2018-Team-5162 | 656a4d570a98c5c3e126f5d8855b3f740874567f | 423b3fc67060e0305292195c2c564fed87d7b62d | refs/heads/master | 2021-04-18T19:33:14.068521 | 2019-01-05T17:13:03 | 2019-01-05T17:13:03 | 126,600,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | cpp | CenterToRightLine.cpp | /*
* CenterToRightLine.cpp
*
* Created on: Feb 8, 2018
* Author: brrobotics5162
*/
#include "CenterToRightLine.h"
CenterToRightLine::CenterToRightLine() {
Requires(Robot::drivetrain.get());
// Use Requires() here to declare subsystem dependencies
// eg. Requires(&Robot::chassis);
}
// Ca... |
ab8d1fc066de52e9fbbe5790066800b14801e78e | 9410fc7f3720c62256e3ddf88db33e3cc46f0eee | /Tuan 1/BaiTap5.cpp | d592991a897b66a9cb7ad9ad3931b43ecc48b23a | [] | no_license | 21522604/OOP-UIT | 8deb74ebf471dbfa1ba44ffc2bc1f5eec7296a96 | 922075f10386491ff089936e493cd56d88c1a530 | refs/heads/main | 2023-08-11T06:14:16.407817 | 2021-10-07T10:04:24 | 2021-10-07T10:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,159 | cpp | BaiTap5.cpp | #include<iostream>
#include<cmath>
using namespace std;
struct ToaDo
{
double HoanhDo;
double TungDo;
};
void NhapToaDo(ToaDo &X, int i)
{
cout << "Nhap lan luot toa do X va Y cua toa do thu " << i << ": ";
cin >> X.HoanhDo >> X.TungDo;
}
void XuatToaDo(ToaDo X, ToaDo Y)
{
cout << "2 diem co khoa... |
052d33341e8f07f4b1732b437ad11c2cd171be90 | 4e1b910430e933aa09b19160277ba6c461a1395b | /tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc | 49d26fa36c6e7a48119a026b2ef1f0fb60094fdc | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jango-blockchained/tensorflow | a8fc4f057bb123aaa4974f9e937c4ddde112dd07 | 7d19de5804d9bd5fb46509bc072b5e542a14ad08 | refs/heads/master | 2023-08-18T00:38:15.308088 | 2023-03-29T15:50:36 | 2023-03-29T15:50:36 | 224,640,792 | 0 | 0 | Apache-2.0 | 2022-10-12T11:39:04 | 2019-11-28T11:42:44 | C++ | UTF-8 | C++ | false | false | 15,053 | cc | tf2xla_rewriter.cc | /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
f2b000ffbcb3e07891839db45e5bb14e97cfab34 | ae7ec837eb954d7be7878f367aa7afb70d1a3897 | /libs/lwwx/samples/generic_ui/stdwx.cpp | fda27c4bc2977731575ee417c72900f0200bc3e6 | [
"MIT",
"BSD-3-Clause"
] | permissive | hajokirchhoff/litwindow | 0387bd1e59200eddb77784c665ba921089589026 | 7f574d4e80ee8339ac11c35f075857c20391c223 | refs/heads/master | 2022-06-18T20:15:21.475921 | 2016-12-28T18:16:58 | 2016-12-28T18:16:58 | 77,551,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | cpp | stdwx.cpp | // stdafx.cpp : source file that includes just the standard includes
// wxWindowsTemplate.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdwx.h"
#ifndef __WIN95__
#error An error in wxWindows version 2.4.0 and 2.4.1 require that you set WINVER=0x400 in the ... |
824149d738016ab4219b64f7886410c94dc0d790 | f60796674e5410ce733f8e7de704bce5e5a0a45b | /Source/Virtusonic/Audio/AudioController.cpp | 35f1a2163c526a08e13864e6d35d853a5a177960 | [
"Apache-2.0"
] | permissive | lkunic/Virtusonic | 835303be940167606865041ebadc18f122a21f34 | 97b2cbf90ee707b7d609f0a739ebdf183a6f8c90 | refs/heads/master | 2022-09-05T05:19:01.719724 | 2022-09-01T21:03:02 | 2022-09-01T21:03:02 | 63,863,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 822 | cpp | AudioController.cpp | // Copyright (c) Luka Kunic, 2016.
#include "Virtusonic.h"
#include "AudioController.h"
// Sets default values for this component's properties
UAudioController::UAudioController()
{
PrimaryComponentTick.bCanEverTick = false;
}
/*
* Adds an audio source to this component.
*/
void UAudioController::AddAudioSource(AA... |
b5ecf27d60aed59478ff65086a69fcdd7f76f567 | 3e5fb24eaeff3d237ad3cd10d53ead310ebdb5fa | /src/Observer.h | 3fb3387eab13f28fe88c142d019c5a0ef653d8a1 | [] | no_license | SamMaier/straights | 21bafa95debca3f6c170b5787aa295e53d40429a | a292be89accf5ecd926a2382699c2c4173735d5b | refs/heads/master | 2021-01-17T17:49:59.107003 | 2015-07-17T22:26:32 | 2015-07-17T22:26:32 | 37,215,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | h | Observer.h | //
// Created by Shiranka Miskin on 7/14/15.
//
#ifndef STRAIGHTS_OBSERVER_H
#define STRAIGHTS_OBSERVER_H
class Observer {
public:
virtual void update() = 0;
};
#endif //STRAIGHTS_OBSERVER_H
|
60b4ec37179a700eaedbe00f532ee2aabd676370 | 247201411790407aca003556ae8867bd296f7723 | /Source/FutureCity/FutureCity.cpp | 04b1438633c56540471edcffdeb39d57d1d01afc | [
"MIT"
] | permissive | keleko34/FutureCity | a60fcdd0f7373d0a3633d2ae81871701f2692f87 | 9bf9ff65242fb92c8bb87c74d74b82ac13d23a65 | refs/heads/master | 2021-01-01T03:37:34.567528 | 2016-05-12T23:53:49 | 2016-05-12T23:53:49 | 58,478,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | FutureCity.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "FutureCity.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, FutureCity, "FutureCity" );
|
074b27f398097861cbfa72cf859e3421065f8ead | f9282e5ccb911443c60bcd487c2dea83427f3c6e | /src/tensor.cpp | c8336998b1e0b8ba787d8e6a717600f99385132e | [
"MIT"
] | permissive | Lugatod/taco | 19b0ba0035bca92b2c7904b647ce5a7d8572d9b2 | 787d2203436d8c2f8406664054bb64bc01e34ec2 | refs/heads/master | 2020-12-30T14:00:18.147864 | 2017-05-16T13:49:19 | 2017-05-16T13:49:19 | 91,270,918 | 0 | 0 | null | 2017-05-14T20:55:37 | 2017-05-14T20:55:37 | null | UTF-8 | C++ | false | false | 25,392 | cpp | tensor.cpp | #include "taco/tensor.h"
#include <cstring>
#include <fstream>
#include <sstream>
#include <limits.h>
#include "taco/tensor.h"
#include "taco/expr.h"
#include "taco/format.h"
#include "ir/ir.h"
#include "taco/expr_nodes/expr_nodes.h"
#include "taco/expr_nodes/expr_visitor.h"
#include "taco/storage/storage.h"
#include... |
4432fd3d4c14075563be6e28278ec7b8fb76c810 | 2864ed81d44058fb867e15866026e382908608ef | /cplus/lang/CPlusString.h | cbb8454fde4fe73defe68d5d8c86a7bd0e25f0a5 | [] | no_license | tursom/cplus | 45f3b26eb3fb26b0340e4852b6c81d4534a91910 | 03a4b1a8a586bde2c38feeadb2db0e319cf8d925 | refs/heads/master | 2021-07-14T06:33:44.055445 | 2020-05-23T12:45:50 | 2020-05-23T12:45:50 | 134,021,179 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | h | CPlusString.h | //
// Created by Tursom Ulefits on 2018/6/16.
//
#ifndef CPLUS_CPLUSSTRING_H
#define CPLUS_CPLUSSTRING_H
#include <cstring>
#include "../tools/class.h"
#include "../thread/ThreadMutex.h"
namespace cplus {
namespace lang {
class ByteArray;
/**
* String
*/
CPlusClass(CPlusString) {
public:
CPlusS... |
f81c6f10f7918323f72b3f211b6d31884e718752 | b7444912fb9ecd331929d3587b4c96e8ecc76c4a | /Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4/Inc/VRExpansionPlugin/GrippableSphereComponent.gen.cpp | 9879177cfa8e32a2c74e85c427d8c6608d01f002 | [
"MIT"
] | permissive | Kilowattrl/LTX | d3150b3183d88ce2dc62529eb3f1a4ad09bb4519 | b3c463588bb9d1123a624fc87c4c3f41d5413363 | refs/heads/master | 2023-07-10T21:51:14.328779 | 2021-08-12T00:14:44 | 2021-08-12T00:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149,475 | cpp | GrippableSphereComponent.gen.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
2831a28b2bf97d466cae820ea7fed5bec11303c6 | 029a893330bbc315eacb1dba901079d005eec1e2 | /c-cpp/general-tests/test2.cpp | d92213b6b43c306ca8aefcab414c159fc6559e83 | [] | no_license | 0000marcell/SandBox | bff979d2afdf7d94ca9e87f35b3767428dcb12f8 | 1e729fb4d3963d4fc5d06a715dde174599c09e43 | refs/heads/master | 2021-01-24T06:48:06.946612 | 2017-12-01T19:42:56 | 2017-12-01T19:42:56 | 48,927,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | test2.cpp | #include <iostream>
using namespace std;
#include <array>
int main(){
int a[5] = {0, 1, 2, 3, 4};
int i = 5;
for(unsigned int j = 0; j < i; j++){
for(unsigned int k = 0; k < i; k++){
if(k > 1){
break;
}
}
cout << "it didn't work";
}
cout << "it did work";
}
|
1c3459b4467f5830a08582e9f9d847f0979d049f | 2b94524e902cea17f09c6c2dc03eb06e7c6b1732 | /week5/ScopedPtr.h | 9a37facacf4526e15524dbabcb4399e84c8650b4 | [] | no_license | RomanSofyin/CPPIntro | 6d1a3309affe080f6f34f5eabd784427eb22b34c | 0835cb0ddd47f3ac4a08a0441e8e0d4941d4fa24 | refs/heads/master | 2021-10-24T11:41:46.023446 | 2019-03-25T19:15:41 | 2019-03-25T19:15:41 | 107,901,044 | 0 | 0 | null | 2017-12-29T09:42:34 | 2017-10-22T20:40:00 | C++ | UTF-8 | C++ | false | false | 420 | h | ScopedPtr.h | #pragma once
struct Expression;
struct ScopedPtr
{
explicit ScopedPtr(Expression *ptr = 0);
~ScopedPtr();
Expression* get() const;
Expression* release();
void reset(Expression *ptr = 0);
Expression& operator*() const;
Expression* operator->() const;
private:
// prohibit using of the constructor and operator... |
eeb8a4755e3b69d05ae429496fd869a0d5563d47 | fbbbbbe16e0a6ed29a7b0e15a24feb797f27639c | /Pattern /3.cpp | 67d8ae4d9c9bed14a0272febbfd2214884f054e1 | [] | no_license | alok2350/DataStructure | a444b0787ec8e7e6663dd0be3e0267acab7a4920 | b4d388e4f3f8550c78a023e9341f80c76b1dce16 | refs/heads/master | 2023-01-12T20:21:13.612030 | 2020-11-18T10:18:18 | 2020-11-18T10:18:18 | 313,818,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | 3.cpp | // Author: Alok Gupta
// Date Created: 7-11-20
// Date Modified: 7-11-20
// Description: will print the incremental(at each level) half pyramid in both oreintation
#include<iostream>
void left_half_incremental_at_each_levele_pyramid(const int& num_level)
{
for(int i=1;i<=num_level;i++)
{
for(int j=1;... |
b75b0c259f0da6facf2352be0709c7a562d64a55 | d7ff47627bdee11f2088c36fccbf5d2fd2151f69 | /[week0]c++stl/day1/第0周C++ STL-得分代码-20200716075413/1283239623962333184_正整数A+B/Truly.Liar_1193146496968978432_1283239623962333184.cpp | d69c761df7b533df4aa6439170b47f330038cd77 | [] | no_license | HBUACM/2020-Training-camp | 24c4c0b716a29a648f037980711635a707bae2ba | e0e3b2d3dc25a7d4891917ee46788ca17d816cf2 | refs/heads/master | 2022-11-21T06:39:23.445160 | 2020-07-16T12:20:13 | 2020-07-16T12:20:13 | 280,141,807 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | Truly.Liar_1193146496968978432_1283239623962333184.cpp | #include<iostream>
#include<stdlib.h>
#include<string.h>
using namespace std;
int main(){
int max;
bool flag1=true,flag2=true,flag3=false,flag4=false;
string str1;
string str2;
cin >> str1;
getchar();
getline(cin,str2);
str1.length()<str2.length() ? max = str2.length() : max = str1.length();
for(int n=0;n<m... |
2d3070c3d9fbbef0b9580cc0551658bb06d5f60e | 0a9c56415ec323119c969e8171b92624ac0078af | /GenericNode/MiscAlgorithm.h | 853730812ebb3f84b8ff3b975defd962ad7153b3 | [] | no_license | lineCode/NoteUE4 | f66336e7a158c602798c99482d0e6cc1359cb485 | 802dab96adae901363be9ff0b7349ea1fc7646d4 | refs/heads/master | 2023-07-17T18:47:52.709829 | 2021-09-04T08:17:05 | 2021-09-04T08:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,394 | h | MiscAlgorithm.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "JsonObjectConverter.h"
#include "MiscAlgorithm.generated.h"
/** Declare General Log Category, header file .h */
DECLARE_LOG_CATEGORY_EXTERN(LogM... |
2975eb392e9a9a31a8659477e865c58f6af3afd3 | f8ff6ab5eafb761e54f771a5db85985c26f75f8c | /Editor/syntaxhighlighter.cpp | 40b4d67facfad00bf1aaa573937eac524a8f6116 | [] | no_license | mhassanzadeh/JsonEditor_QT | 5af13425436aba5b38b437de97005182fe2673c0 | 3c7046b9318a530cc7a670bfda1a540131780e91 | refs/heads/master | 2016-09-06T11:29:44.527286 | 2015-08-25T07:40:51 | 2015-08-25T07:40:51 | 41,348,625 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | syntaxhighlighter.cpp | #include "syntaxhighlighter.h"
SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent) : QSyntaxHighlighter(parent)
{
symbolFormat.setForeground(Qt::red);
symbolFormat.setFontWeight(QFont::Bold);
nameFormat.setForeground(Qt::blue);
nameFormat.setFontWeight(QFont::Bold);
nameFormat.setFontItalic (true);
... |
d04c34b4a8d14b8410d8725c828fd76ba9c97baf | 582d1606a83b6e1eb468f5d625dfd3b6ca44a188 | /Sculptor.h | efad69ee8ce07a1b2d81a7fcabc02dfb5b3ae654 | [] | no_license | joaorafaelcfs/ProjetoEscultor3D | ddf3e604ca8792c539bd3c90417301e2c7576b74 | 756668f6b8e8ab66ea23dd5694a734981b66c7a0 | refs/heads/master | 2023-01-27T22:03:03.566860 | 2020-11-25T14:40:20 | 2020-11-25T14:40:20 | 315,962,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,568 | h | Sculptor.h | #ifndef SCULPTOR_H_INCLUDED
#define SCULPTOR_H_INCLUDED
/**
* \brief Declaração do Struct Voxel \n
* No struct Voxel é armazenado variaveis que irão determinar as cores (r,g,b) e transparência (a) do objeto,
* como também teremos a propriedade isOn que define se o voxel correspondete deve ser incluído no arqu... |
a6eec2cbe26a017c589e638986f5db07d185ef03 | 5153386a680821cf1541cf976ef7c12ab0a0493d | /TrainTask/Solve_Question_Code/ContainsNearbyDuplicate.cpp | 22cbb985984282ce9f2f031f7de4ec61975df062 | [] | no_license | DriftingLQK/TrainCamp | 1f1d600f90142c33ef54f5d3dc7ad76e93d45ebe | e9395499df177776f58e67d2595b658b93a01d99 | refs/heads/master | 2022-12-05T14:54:51.417395 | 2020-08-27T01:11:27 | 2020-08-27T01:11:27 | 290,640,738 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,205 | cpp | ContainsNearbyDuplicate.cpp |
#include <iostream>
#include <vector>
#include <math.h>
#include <unordered_map>
using namespace std;
// bool ContainsNearbyDuplicate(vector<int>& nums, int k)
//bool ContainsNearbyDuplicate(vector<int>&nums, int k)
//{
// int len = nums.size(); //计算数组大小
// if (len<=0)
// {
// return false;
// }
// if (k<=0)
// {
/... |
b0148a0cc2cbd2649c4f31f3b96f6cd1344a4e7d | d805bc0b5d42cc1cc195238fafcf0abafae829c6 | /particle.hpp | 4f307efbfdbde88faf47e2f230c7ef71c237e9b8 | [] | no_license | Paladnix/game | 460d2b906a954b520a71855d75c086ff516b2a6c | 206a95eb61e32bff61ccf8741b7419a338812347 | refs/heads/master | 2021-01-11T05:47:25.849272 | 2015-02-28T23:28:46 | 2015-02-28T23:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | hpp | particle.hpp | #ifndef PARTICLE_HPP
#define PARTICLE_HPP
#include "globals.hpp"
class Particle {
public:
// Initialize position and animation.
Particle(int x, int y, SDL_Rect mBox);
~Particle();
// Shows the particle.
void render();
int frameCap = 10;
// Checks if particle is dead.
bool isDead();
inline void... |
bbfd10c4ad1cf19246a0c537ac5c19eee969e81e | d0e7605a8223fed5441f9f0d0a105663f47d43b6 | /soundLoc.ino | 5e56770854ed8519814842a90b0aa1c50cb3a70c | [] | no_license | idiot-io/soundLoc | 68eb4abbf326c82045e5204da53296aa9a9a080a | e8a4929326d60185aa1a59ea95a38ff56412ed56 | refs/heads/master | 2021-05-31T12:29:46.748204 | 2016-05-03T13:41:07 | 2016-05-03T13:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,798 | ino | soundLoc.ino | /*
Sound Locator X-axis
based on >> http://www.instructables.com/id/Sound-Locator/?ALLSTEPS
________________________
|Mic3 (Top View) Mic1|
| Mic2 |
|_______________________|
*/
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
// called this way, it uses the default address 0x40
Adafruit_PWM... |
485bdcb8f48ae7f36d06f749b46eeb626024bc0d | 18f63e189a8936bc3a5e7c6fb438fa8bc36ff06a | /1a_sobel.cpp | ea60eba2b5b121ec0365c32fd396bbd60ab4cb58 | [] | no_license | Jahnvi-Rc/Edge-Detection-Sobel-Canny-Structured.-Digital-Halftoning-Dithering-Digital-Haltoning-Color-Diffuse | 3bd1c6503f2ab97ced776ecc5d3a9439509c8410 | 04c2cb0b888a84e22bdd693de86d4c56367afaee | refs/heads/master | 2022-12-05T17:26:55.848608 | 2020-08-30T21:31:55 | 2020-08-30T21:31:55 | 291,554,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,232 | cpp | 1a_sobel.cpp | // This sample code reads in image data from a RAW image file and
// writes it into another file
// NOTE: The code assumes that the image is of size 256 x 256 and is in the
// RAW format. You will need to make corresponding changes to
// accommodate images of different sizes and/or types
#includ... |
3c32b3e0354df460fe19be32be3ef8d6ac0f94f7 | 8e0a47e0b094ae4605151e53f3a5c3ce4ea3efe1 | /C++/OpenGL_Tetris/src/main.cpp | ed0abbe90b1dd8eec79adf688f093b13a601bc26 | [] | no_license | Simon-McDonald/Code | 539c6b1074350a61ceb26dba0577855963b5ffd4 | 3eb96f542bf1f8005c13032d5c52d4e4f6a25554 | refs/heads/master | 2021-01-20T07:15:51.148568 | 2018-04-19T11:16:42 | 2018-04-19T11:16:42 | 47,899,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,587 | cpp | main.cpp | /*
* main.cpp
*
* Created on: May 7, 2017
* Author: Simon
*/
#include <CheckErrors.h>
#include <memory>
#include <map>
#include <UtilityManager.hpp>
#include <StopWatch.hpp>
#include <WorldManager.hpp>
#include "Levels.hpp"
#include "ResourceManager.hpp"
class ProgramManager : protected... |
4e64710d0ab65608f9322f97ed217a47420ee645 | 6981a415311e3ffd43fe1c73bdadbd2dbcf9f44a | /Estacion/Firmware/WeatherStation.v3.0/WeatherStation.ino | 698f5a648270bd3a6ceab33d400ea1c59005e76a | [] | no_license | cslab-upm/WeatherStation | b30f7b17c83ab6da26db89a026084a3720cc9cc3 | 0dad87e8e63446da8e0757ffae86d452aaa9a9b4 | refs/heads/master | 2022-01-26T23:47:20.845266 | 2019-05-17T11:41:25 | 2019-05-17T11:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,026 | ino | WeatherStation.ino | //////HEADERS//////
#include <stdio.h>
#include <string.h>
#include <Wire.h> // I2C Communication
#include <SD.h>
#include <FreqCount.h>
#include <SparkFunDS1307RTC.h> // RTC
#include <BMP085.h> // termomenter/barometer
#include <hh10d.hpp> // hygrometer
/******INITIALIZATION******/
#define INTERVAL 60 // The amount... |
42553da3cda7a5da0866aebe45a0d4856e15ff0f | 5c2539604825959886af0109293fa08e75b99ec2 | /sorting/mergesort.cpp | 20958cc1273db801e58d4c61650dd0f699dc6171 | [] | no_license | musicakc/DataStructuresAndAlgorithms | 669f236712b2723538bd1bae8a328b179408c932 | f2684ce93b89e9b0711b334ba5ad0154f1aada2c | refs/heads/master | 2021-01-10T06:49:05.625402 | 2019-03-20T17:30:14 | 2019-03-20T17:30:14 | 48,552,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | mergesort.cpp | /* Merge Sort */
#include <iostream>
using namespace std;
void merge(int arr[], int l, int m, int r)
{
int L[m-l+1], R[r-m];
int i,j;
//Data copied to temp arrays
for(i=0; i<m-l+1; i++)
L[i] = arr[l+i];
for(j=0; j<r-m; j++)
R[j] = arr[m+1+j];
i=0,j=0;
int k = l;
while(i<m-l+1 && j<r-m)
{
if(L[i] <= R[... |
7b6e39686830194988660a2c77485890419b4d29 | 2e1f96b9d60ecaec868e0b7824cab632a51a8b02 | /z/server/MapLoader.cpp | 8455655353749bbb39fb19459d2c39a0a6f7e49b | [] | no_license | Jose72/taller_tp_final | 61076d0db7b22ba9034967cd48647d13e6aa853e | 1b5e5e76d3e7fbcf919a310c802e0ecd7bb783bd | refs/heads/master | 2021-01-20T17:23:16.086898 | 2017-06-27T19:35:09 | 2017-06-27T19:35:09 | 90,871,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,943 | cpp | MapLoader.cpp | #include <dirent.h>
#include <iostream>
#include "MapLoader.h"
MapLoader::MapLoader(std::string &path): pathFolder(path), jsonHandler(path) {
}
void MapLoader::loadListData() {
loadDirectory(pathFolder);
/*
for (unsigned int i = 0; i <this->dataMaps.size() ; ++i) {
std::cout << this->dataMaps[i]... |
40cfbc1cafe6cc750642a15405d8a68daf919585 | a8fe43a7b51fd9890a2385288ba0ded949a628a1 | /src/Pong.cpp | c59019dff76b968ad86cc23d43f507b6c6844fe5 | [] | no_license | flamirande/pong | c8bdc812242e25cdefed563303ae74ac56ac7889 | 6e36d61675194bdd380230f67e30194e55c30a2b | refs/heads/master | 2021-01-10T11:29:53.586216 | 2016-01-06T19:34:29 | 2016-01-06T19:34:29 | 49,156,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | Pong.cpp | #include "Window.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#include <stdexcept>
#include <cstring>
#include "GameState.h"
#include "PongMenu.h"
#include <stack>
#include <memory>
using std::runtime_error;
using std::pair;
using std::string;
//CONSTANTS
const int WINDOW_WIDTH = 800... |
22597c225327f4c2939492b1447684e123610e2c | a97a53c58ae7eb110eab7aa6fde382eaada4d63d | /GE/HydraulicComponent.cpp | bcdb5af5f5eb097455f8babfe9c4b27ab288f00c | [] | no_license | meintjesbekker/GE | 8d7a0f40110fd87a58870d9ce7390cc1f2d05f45 | 821323f42657763c03d30c4fadd607b758417c8a | refs/heads/master | 2021-12-08T10:56:51.533338 | 2019-08-08T19:39:56 | 2019-08-08T19:39:56 | 153,671,097 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,250 | cpp | HydraulicComponent.cpp | /*--------------------------------------------------------------------------*/
/* HydraulicComponent.cpp */
/* */
/* Purpose : Create a Hydraulic Component. */
/* Author : Meintjes Bekker */
/* Date :... |
55aa325b1e51a02edb98be65a0081257c62686eb | 850f29a18fe86b5a16ce9407f9cd90757356b6ad | /LeetcodeSolution/653_TwoSumIV.cpp | 7a916aa43748676bd965776cede2082aff6c58c7 | [] | no_license | traviszeng/AlgorithmDatastructureByCPLUSPLUS | e960fb0971bf7ffcb9c3a32ab71c8b7b2eed040d | 8a5001127c2bdab809ad4db20547bd36e68f0731 | refs/heads/master | 2020-03-31T20:00:19.440845 | 2019-08-14T08:42:17 | 2019-08-14T08:42:17 | 152,520,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | 653_TwoSumIV.cpp | /**
* Definition for a binary tree node.
*/
#include<iostream>
#include<map>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
void traversal(TreeNode* root, map<int, int> &bmap);
bool findTarget(TreeNode* roo... |
bbad2e68ce4b8f14cc344600a03e13e1a17d21b4 | 72a2ff629299b693685b5ef7972d16fcc47b428a | /Connector.cpp | f94da4e6b9f89212594784f7bac11ea00b107037 | [] | no_license | ahmedabdalmageed95/OOP-flowchart-simulator | 0250ad542f2fdf4847f0fae3880f3c1acc154823 | 201b3b7e8f3a046d0bab38c4b524a777f43548fd | refs/heads/master | 2021-01-19T01:12:44.051888 | 2017-06-28T02:26:44 | 2017-06-28T02:26:44 | 95,619,015 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,091 | cpp | Connector.cpp | #include "Connector.h"
#include "..\ApplicationManager.h"
#include "Statement.h"
#include "SmplAssign.h"
#include "VarAssign.h"
#include "SnglOpAssign.h"
#include "Conditional.h"
#include "Read.h"
#include "Write.h"
#include "Start.h"
#include "End.h"
Connector::Connector(Statement* Src, Statement* Dst, Ap... |
f2b711d57c4954e9258cf2eadd6e0db3a5ec47b6 | 7af8a7aaf7f3eddd32530a46b739fabf117b2994 | /.vscode/cquery_cached_index/c@@9181-w-okapi/src@autonomous.cpp | 42f48a449000c954af7b29c1fb2d6264c479e42c | [] | no_license | 9181-W/9181-W-Okapi | d5acc353e73cb8c490ef35a727ae7402871bb239 | e8fc091ed9d94db7cbb49331e56fa6add36f2e9c | refs/heads/master | 2020-08-14T16:25:12.521952 | 2020-02-29T06:37:27 | 2020-02-29T06:37:27 | 215,195,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | src@autonomous.cpp | #include "utils.h"
#include "autos.h"
#include "main.h"
#include "okapi/api.hpp"
using namespace okapi;
void autonomous()
{
pros::lcd::print(0, "autonomous");
double start_time = pros::c::millis();
init_auto();
//blue_back_port_5();
//red_back_port_4();
//testing_new();
testing();
//testing_nine... |
3791e8dc04bc13ab4bbe2422bcc79d30ac4aefe3 | c831157ef0c65c429cae70dfa5ad06df0ce2bd96 | /lab4/algo.cpp | 72a6f84db17de221e7d0c9f25eaf9b89f0cb0b6a | [] | no_license | sergiovasquez122/CECS-328 | 8071cbbe61728b8c0a2afa6e9bfdeb7d9dda3993 | 276af9abe8434d8f34c493bbde922c585076d47a | refs/heads/master | 2023-02-03T16:05:36.070938 | 2020-12-21T05:45:58 | 2020-12-21T05:45:58 | 288,507,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | algo.cpp | // O(n)
void k_closest_to_median(vector<int>& arr, int k){
double median = median_selection(arr); // O(n)
vector<my_pair> diff;
// O(n)
for(int e : arr){
diff.push_back({abs(e - median), e});
}
// O(n)
int kth_idx = quick_select_idx(diff, k);
//O(n)
for(int i = kth_idx; i >= ... |
ae328be9852266e3e77fbe33a9d3897ba00027c6 | 4a87f5e7372f7d0312f8e08ac58274cd500008bd | /trees/binaryTreeToDLL.cc | c0656edcc0e2e5439720848f0dac3f05b0c6d055 | [] | no_license | mahimahans111/cpp_codes | b025c214ab3ce6a8c34bf0e23384edb74afb1818 | fe6f88aca79cb8366107f3dcd08cff7f532c2242 | refs/heads/master | 2021-06-28T07:48:35.400033 | 2020-10-31T17:34:12 | 2020-10-31T17:34:12 | 211,819,858 | 1 | 4 | null | 2021-02-02T13:15:02 | 2019-09-30T09:05:21 | C++ | UTF-8 | C++ | false | false | 3,858 | cc | binaryTreeToDLL.cc | #include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
// TreeNode class for a node of a Binary Search Tree
class TreeNode {
public:
int val;
TreeNode* left;
TreeNode* right;
TreeNode(int x) {
val = x;
left = NULL;
right = NULL;
}
};
clas... |
eeabb6005151607ad56de7a6de81586e3dd61166 | ba002c05550015c691249b117e23511fff6b07be | /parserClasses.cpp | 10670c08f8f08b10112aec2281bbf23f70a81c64 | [] | no_license | cha100/Assignment-3 | fd97671cb57755c8d5e5831e8bcfa3f282a8c0f1 | 83d8955d66b160fc451bea3a963198fd61b4acb1 | refs/heads/master | 2020-05-17T03:51:01.987640 | 2014-11-11T03:04:30 | 2014-11-11T03:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,931 | cpp | parserClasses.cpp | //Code by : Jesse Kazemir
//Student ID : 301227704
//SFU email : jkazemir@sfu.ca
//Last edited: Oct. 29, 2014
//Use only the following libraries:
#include "parserClasses.h"
#include <string>
//Complete the implementation of the following member functions:
//****TokenList class function definitions******
//Crea... |
b24fb7870397d950fc03990890547f986e51c516 | 481ae6d14e8e4eeb82f6681f120b9d0eca790997 | /Game Engine/src/window.cpp | 72dccc8299c38ccf5dcc13f632094e84d4f439d8 | [] | no_license | himizu0/Game-Engine | 739fb3d3646cfffa8683171230138f42114f45e0 | bf3c0c69a70da99bfff58ab400061166195968ec | refs/heads/master | 2020-04-04T15:42:59.174352 | 2018-11-04T04:24:12 | 2018-11-04T04:24:12 | 156,049,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,903 | cpp | window.cpp | #include <iostream>
#include "window.h"
#include "math/math.h"
namespace engine {
bool Window::m_keys[MAX_KEYS];
bool Window::m_buttons[MAX_BUTTONS];
double Window::m_mouseX, Window::m_mouseY;
double Window::m_mouseDeltaX, Window::m_mouseDeltaY;
Window::Window(int width, int height, const char* title) {
if (!... |
964b683e22d569f5cfbd20a1d4f5a76f25adf855 | 4b83242b4ccc47585f118bd2b16a7361f8e96098 | /SFML2/Bullet.cpp | 0dbc1c21853e22cb69d619994aa4570817687771 | [] | no_license | emaha/SFML2 | cb6e27f902f5637fd014c40b18068ec326938040 | 241fd1a74e9ce3240e1161a2f4f8fdfa774b51e7 | refs/heads/master | 2021-01-22T08:13:25.286030 | 2017-01-04T17:09:04 | 2017-01-04T17:09:04 | 47,815,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | Bullet.cpp | #include "Bullet.h"
#include <SFML/Graphics.hpp>
#include <iostream>
#include "Player.h"
using namespace std;
Bullet::Bullet()
{
}
Bullet::Bullet(int id, Vector2f position, Vector2f velocity)
{
init(id, position, velocity);
}
Bullet::~Bullet()
{
}
void Bullet::init(int id, Vector2f position, Vector2f velocit... |
b788774c7d7a572c5b083abf51cf1bf2a1a3b394 | 707ca2b2fa97e64c63b6d5a0e3958134d95c574e | /food.h | 6b7465c45aa26313d58e1a19eb8b721f509f4748 | [] | no_license | avnisalhotra/Client-server-game | fc5e9f459fc291b7ff4fadeb4b3b0570942013f4 | 6ad6cb87e7b7d380522cdb6c55f13ec0a265729a | refs/heads/master | 2022-03-19T01:48:22.242229 | 2019-12-03T21:18:25 | 2019-12-03T21:18:25 | 210,996,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | food.h | #pragma once
#include <SFML/Graphics.hpp>
#include <iostream>
#define SFML_STATIC
using namespace sf;
class food
{
public:
void Update(RenderWindow &Window, float ElapsedTime);
void Render(RenderWindow &Window);
void setPosition(float X, float Y);
food(String tex);
Sprite foodSprite;
bool Active;
... |
433f5263823740b4c075a5f51eb4d54c085dd4cb | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/cppu/source/uno/data.cxx | ab0f171dc7a6440bf620b42c431ea943348714f4 | [
"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 | 18,087 | cxx | data.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... |
972171b9a68cb26a6c5f820a3820dacc06d863e0 | 0ba05aba94d19fa52b7b33c02524f2c238fd6466 | /src/tracker/lib/ParticleFilter.h | e31b6b1905ff5c618dacd9c03e2369ef9020bcb4 | [] | no_license | zixuanwang/tracker | f6f6660dba0ba50129db00fc226e0d8321b15fe5 | 0237a6df19398d2f53800f61c0a3204a5f76f3c3 | refs/heads/master | 2020-06-03T23:14:16.194942 | 2013-11-26T01:41:17 | 2013-11-26T01:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | ParticleFilter.h | #ifndef PARTICLEFILTER_H
#define PARTICLEFILTER_H
#include <random>
#include "Math.h"
class ParticleFilter
{
public:
ParticleFilter();
virtual ~ParticleFilter();
void init(const cv::Mat& image, const cv::Rect& bbox);
void update(const cv::Mat& image);
void get_color_model(const cv::Mat& patch, std::v... |
c4e58a543e96c3c448469825d96122ccc8a2abb8 | 69bbb578c5579237775ed6121fa5996e81b9c760 | /SerialProtocol.h | 3ebfa8533f3b27cec7c083e7c94ede74a292e221 | [
"Apache-2.0"
] | permissive | victorhurdugaci/SerialProtocol | f16cc8786a359ab9aecfd3c94ae426b48c2fed9d | 51a57b219927eda24c0ddf3ba68af634407c7b93 | refs/heads/master | 2021-01-01T16:49:44.856937 | 2019-06-18T01:25:23 | 2019-06-18T01:25:23 | 26,202,766 | 36 | 18 | Apache-2.0 | 2019-06-18T01:25:24 | 2014-11-05T04:20:17 | C++ | UTF-8 | C++ | false | false | 1,535 | h | SerialProtocol.h | // Copyright Victor Hurdugaci (http://victorhurdugaci.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
#ifndef SERIALPROTOCOL_H
#define SERIALPROTOCOL_H
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
struct ProtocolSta... |
32a4a9c2776d42c3ff0b50fc1af8a9d7aa188ff1 | f72c9031c2485487ccba5b8ef90c10095e62799e | /srm/405/div2/medium.cpp | 062be6eef8d3406f04ca8957acc1ab577b1257e4 | [] | no_license | ichirin2501/garbage | d209feaf5f0efdf452e04feba618c889d4346da7 | fcd89b8f5185a730ca8911abecf47db21625cb2d | refs/heads/master | 2021-01-01T20:00:21.260126 | 2015-12-06T10:50:07 | 2015-12-06T10:50:07 | 2,227,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cpp | medium.cpp | #include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <numeric>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
using namespace std;
#define REP(i,a,n) for(i=a; i<n; i++)
#defi... |
0e7cc0e801de050ab73f0530dc6af1fd4277b63e | 827e675f0bd1856abeea25ca2f6ad2f65ca970f7 | /PRMS_Client/RunProgram.h | bdd5f6cd3746aecf3885af5c4c3b7e693d043bca | [] | no_license | abham07/Software-Design1-FinalProject | abbe592a6cb6c648ec13642e6451b9f640c8a0b3 | d89830fe3ee01d1a6076f92978059451b249c4d4 | refs/heads/master | 2016-08-12T08:29:11.214092 | 2015-10-26T02:36:04 | 2015-10-26T02:36:04 | 44,941,426 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | h | RunProgram.h | // CREATED BY: ABAD HAMEED
#pragma once
#include "PRMS_Client.h"
class RunProgram
{
public:
RunProgram();
bool auth;
void runProgram();
};
|
bd506e183938e709b74715504c1a5df696bc9340 | abf2afb7921441e3caafe6c852232b9233dd218c | /11547.cpp | 596d75734d6e2b3e7f3d1a47e4233ae733f5eaaa | [] | no_license | farhapartex/uva-solutions | 97e2a01ea2db571932c8f673708ffcf657ac2a16 | d14d2be95c60d3474befe4c0625ae0c9ec01749a | refs/heads/master | 2020-05-23T20:59:01.588640 | 2019-05-17T08:14:05 | 2019-05-17T08:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | cpp | 11547.cpp | #include<iostream>
#include<cstdio>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include<map>
#include<cstring>
#include<sstream>
#include<cmath>
using namespace std;
const double pi = 2*acos(0);
#define pf printf
#define sc scanf
#define pb push_back
#define MIN(x,y) ((x) < (y) ? (x) : (y))
... |
e29127183dd30217c8bb2a09e2e1c5684e3998be | 47511ce4f8a9fcdfc603f9f3770f49bf946ec3e6 | /Carsach_project/File.cpp | d97a55dc9c25772d7c468e933978e8c07126346d | [] | no_license | AndrewLisogor/- | f4cfea95bd4bc3ac2e7a0fed5c71b6a28ea46865 | bd871893149507f74e015f70109e1378e1a5bdd8 | refs/heads/master | 2020-04-09T20:14:25.429955 | 2018-12-05T19:31:32 | 2018-12-05T19:31:32 | 160,567,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 759 | cpp | File.cpp | //
// Created by Andrew on 12/8/17.
//
#include "File.h"
bool File::correct_file_name() { // ????????? ?-?? correct_file_name()
struct stat buffer;
return (stat(file_name.c_str(), & buffer) == 0);
}
File::File() { // ????????? ???????????? ????? File
file_name = pa... |
9664b44bed6d01b46841bb6d8dfd392da0c2941b | 720da033f3168851eb1206ff6f42f6d91e6a29d5 | /DSP/module/packet.hpp | c89271511a74fe77cb4dace048b648eeaf877685 | [] | no_license | ip1996/DSPAPISketch | 7281447bf74408fbada811f1050117c03c49da7a | 530cac0c116b1a53e3503eb310ea4754143d7602 | refs/heads/master | 2021-05-19T10:07:10.130619 | 2020-03-31T15:27:08 | 2020-03-31T15:27:08 | 251,644,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | hpp | packet.hpp | #ifndef PACKET_HPP
#define PACKET_HPP
namespace pipert {
template<class T>
class Packet {
public:
Packet(T data) : data(data) {} //should moving data not copy
template<class T2>
Packet(T data, Packet<T2> packet) : data(data) //should moving data not copy
{
//copy metainformation from old packet to the ne... |
6aca342900a8f2ffdf7c855c158ab790b3f48d4c | 4dad3b14f12d725f405899e71eb4aa816f6b50b4 | /zertco5/object/details/PoolObjectDetails.hpp | 3bde0b33faf7a8093f376a0b8001c764877a660d | [] | no_license | ccitllz/zertcore5 | 0cdbcee3b7889e9477d7f461240a42d3212aa2bf | 9f6c9a352ce1526f7fd55cb546d6a5c5c0ebee7c | refs/heads/master | 2023-04-13T22:25:05.558013 | 2015-11-05T12:34:07 | 2015-11-05T12:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | hpp | PoolObjectDetails.hpp | /*
* PoolObjectDetails.hpp
*
* Created on: 2015年10月18日
* Author: Administrator
*/
#ifndef ZERTCORE_OBJECT_DETAILS_POOLOBJECTDETAILS_HPP_
#define ZERTCORE_OBJECT_DETAILS_POOLOBJECTDETAILS_HPP_
#include "../PoolObject.h"
namespace zertcore{ namespace object {
template <class Final, class _Tra... |
b9df176ae0098d31d7556ddb58cc7839d36f3e84 | bb09b617a266ce0e79195992b8b3add8d08c0cdd | /include/util.h | ce834ea930e0bb19b85e838783b459ccb0e2107c | [] | no_license | sbreuils/3DdigitizedReflectionsBijectivityCertification | 478f954f5a1d0d4f92b7926575e99b7f115f23c0 | 84686ffd2243d95de2d4d5ff6f599a14a24cc7bf | refs/heads/main | 2023-04-15T10:00:40.364282 | 2021-04-28T08:30:54 | 2021-04-28T08:30:54 | 358,583,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | h | util.h |
#pragma once
namespace gadg {
// gcd of more than two multivectors
int gcd(const int a, const int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
// Function to find gcd of 4 values
int gcd(const int w, const int x, const int y, const int z) {
int res_gcd... |
e93b17097e85e557c7e4ea1b9dbb4525d76f83ae | 44569357b630f9684385be1fe1eaa3460e273480 | /yanve/include/scene/scenemanager.h | b3eb7b97d8d31a26fc374428d22a7bef1bd78cb4 | [
"MIT"
] | permissive | fesoliveira014/yanve | a2e5412ecc321200a3b73de15792af6d0c0e3158 | ec1d27f68018fe5fb686f94bf38357c7a41d5491 | refs/heads/master | 2022-02-11T11:37:44.875608 | 2022-01-26T20:27:54 | 2022-01-26T20:27:54 | 174,913,839 | 0 | 0 | null | 2020-04-29T03:09:26 | 2019-03-11T02:47:27 | C | UTF-8 | C++ | false | false | 1,211 | h | scenemanager.h | #pragma once
#include <common.h>
#include <scene/scenenode.h>
namespace yanve::scene
{
const int RootNode = 1;
struct YANVE_API RenderQueueItem
{
SceneNode* node;
int sortKey;
};
class SceneManager
{
public:
~SceneManager();
void YANVE_API updateNodes();
void YANVE_API updateQueues();
size_t YANVE_A... |
882ef5c569a5467a41480c36c98f4fca51665ef2 | e60c0830b99e80e64fdf408509d65aa94dbf659f | /DirectXgameFramework/Classes/Object/Bullet/State/BulletStandState.h | 35e4e42bd083ba3ab5209bff97e326fef9b6be80 | [] | no_license | shun9/-Shooting | 472721410f01e1f87f3791449ab805de50e5cddd | a495fa0313cb30a61fe0a31776c25ef02fb55ffb | refs/heads/master | 2020-06-27T22:29:54.889322 | 2017-08-03T01:03:38 | 2017-08-03T01:03:38 | 97,072,690 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 548 | h | BulletStandState.h | //************************************************/
//* @file :BulletStandState.h
//* @brief :弾の待機中状態
//* @date :2017/07/24
//* @author:S.Katou
//************************************************/
#pragma once
#include <SL_State.h>
class Bullet;
class BulletStandState : public ShunLib::State<Bullet>
{
public:
//開始処... |
66c0cd65ca72ccea35e446e14faef420235f791f | e7c16164ceb387a4fba777be4744930c22bf6a31 | /protocol/game/ptch2c_senditemptf.h | 5343c53f1952202faf539eb2877b8814cf49591a | [] | no_license | freewayso/gameserver | a661415b18db93813b93126c7c3ecc62c69c6f3c | 74738181e6b01b0f68414d27c1d2d9cd4b139a2e | refs/heads/main | 2023-01-07T08:28:03.734762 | 2020-11-10T13:01:23 | 2020-11-10T13:01:23 | 311,651,825 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | h | ptch2c_senditemptf.h | #ifndef __PTCH2C_SENDITEMPTF_H__
#define __PTCH2C_SENDITEMPTF_H__
// generate by ProtoGen at date: 2020/8/25 15:46:05
#include "protocol.h"
#include "pb/project.pb.h"
#define PTCH2C_SENDITEMPTF_TYPE 27035
class PtcH2C_SendItemPtf : public CProtocol
{
public:
explicit PtcH2C_SendItemPtf() : CProtocol(PTCH2C_SEN... |
28031ef56e3aeda747e8036ed9384f927535ce71 | 73aadb2145c5d9260623fb8752c038bdcc8f6d1c | /src/optimization_tools/objective_function_tools/SquaredFunctionInfo.cpp | 0987adbd2ec30495588cc8bde3256beb2cb8b024 | [] | no_license | gangma2610/2018AMMPoseSolver | 6d9c6a5f613a03554cfda22d5d7340a434e2548d | 4dcbc07304e60e9ebd550371e7e4003967f14df6 | refs/heads/master | 2023-07-24T07:01:36.399185 | 2019-06-09T19:33:31 | 2019-06-09T19:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,634 | cpp | SquaredFunctionInfo.cpp | #include <opengv/optimization_tools/objective_function_tools/SquaredFunctionInfo.hpp>
#include <opengv/Indices.hpp>
#include <iostream>
SquaredFunctionInfo::SquaredFunctionInfo(const opengv::relative_pose::RelativeAdapterBase & adapter ){
opengv::Indices idx(adapter.getNumberCorrespondences());
size_t numberCorr... |
c975953e44efc7f4f38840125e41fe8e6159c764 | abdafdbce1cacc70d8a8c2f52f501b58bc950676 | /string/code.cpp | fa486df9a70477f722339322641fa4de5c15cf90 | [] | no_license | mgsonawane/practice | 176921e2762f6481cbe712b259246ac75aeee71f | 67465f669883c28b99a381778d62abd6b026e0bd | refs/heads/master | 2020-07-01T12:52:44.120304 | 2019-08-08T05:08:56 | 2019-08-08T05:08:56 | 201,181,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | code.cpp | #include<iostream>
#include<cstring>
using namespace std;
void funct()
{
for(int i = 0;i<10;i++)
if(i %2 == 0)
cout<<"even ";
else
{
cout<<"odd";
cout<<"dont use extra line of code";
}
}
char* reduce(char str[])
{
int n = strlen(str);
int i = 0 , j = 0;
while(i < n-1)
{
if(str... |
e84cced38258a2559e9494639a43e27abaf6994e | acfea035e985d27d12782db2ff82b0ec789ddf4f | /LeetCode Problems/C++/tastySweets.cpp | 228641b40ea0d939a5dee478050d757a98283cf6 | [
"Unlicense"
] | permissive | aayushkumarmishra/HactoberFest21 | 15d983981fdcba320b0177319d5e63c169063614 | eb4a2141f377a5ed904ba021d4049c5db12a335a | refs/heads/master | 2023-08-23T22:24:35.743070 | 2021-10-03T05:34:28 | 2021-10-03T05:34:28 | 412,985,003 | 1 | 0 | Unlicense | 2021-10-03T05:28:27 | 2021-10-03T05:28:27 | null | UTF-8 | C++ | false | false | 1,430 | cpp | tastySweets.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
int main(){
// ios_base::sync_with_stdio(false);
// cin.tie(NULL);
// cout.tie(NULL);
int t;
cin >> t;
while(t--){
int n, k;
cin >> n >> k;
vector<int> wt(n), taste(n)... |
6483abd845560987ff0562eb153b79a21f27793d | 671d07cbebce39f94e90c27e6a983f75d9914d4e | /19bca1206_8.cpp | 01db03075dd66d57ed3a4cc4cd9d631d703720f6 | [] | no_license | Shivendrapal/shivendra | 90b43aeec10954e1970f786dacf88201392d7169 | 72cc11691a0f6f38303e6780c82a92e3d7cb8a9c | refs/heads/master | 2021-05-26T16:18:46.310975 | 2020-04-08T16:11:11 | 2020-04-08T16:11:11 | 254,134,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | 19bca1206_8.cpp | #include<iostream> using namespace std;
class student
{
public: class result
{
int maths,oops,sst; int result;
public:
void fun2()
{
cout<<"THE MARKS OF STUDENT IN \n 1=MATHS\n 2=OOPS\n 3=SST"<<endl;
cin>>maths>>oops>>sst; result=maths+oops+sst; cout<<endl<<endl;
cout<<"RESULT OF STUDENT="<<result<<endl<<endl;
}
}... |
a173d475e649901a69641ca5b3496e12ff9812e2 | 99751d3d775529c0fade2f4ab1238258598d95a8 | /No of prizes.cpp | ad5326a16c3f616538b3b2b96fdd595935dc2703 | [] | no_license | Sahithkumar-31/Geedy-Algo | 0ffec94ecc2f0aaa44c6af0b54c4ca9d0d50e220 | 5bd85700ae4ee1decc266fd9d3c707384956c3a8 | refs/heads/main | 2023-08-22T09:02:20.299771 | 2021-10-23T11:54:51 | 2021-10-23T11:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | No of prizes.cpp | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... |
c36af29ec74c377eec8c03f8b21c06c3008d3122 | 639a6c8ff4d098a625b5904f260eec19764a598f | /Sources/AddOn/Controls.cpp | 57826212d51477701670f76471785214bcdd863a | [
"MIT"
] | permissive | Bishwanath-Dey-Nayan/ARCHICAD-ADD-ONS-Manager | 27c8fa47d2367dca428e8e3bd80b34d0ee889ab2 | 8960a43ead0aa0977d675bd6155e6c9bdd43683b | refs/heads/master | 2023-04-13T08:07:06.555025 | 2021-04-27T08:12:52 | 2021-04-27T08:12:52 | 355,536,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | Controls.cpp | #include "Controls.hpp"
GS::ClassInfo Controls::classInfo("Controls", GS::Guid("B45089A9-B372-460B-B145-80E6EBF107C3"), GS::ClassVersion(1, 0));
Controls::Controls() :Controls(0, 0, 0) {
}
Controls::Controls(UInt32 scale, UInt32 layer, UInt32 item):scale(scale), layer(layer), item(item)
{
}
GSErrCode Controls::Rea... |
dfe86b308063c296403319a889e05f39a4f61648 | da28cb13ef26f8a4092fed048d0d5f76076523d3 | /graph/densegraph.h | f39a38ac654e41046b8fc819d617e60892de859e | [] | no_license | baiyeshishen/shuJuJieGou | d7dcbad57233f8549ba177a2e5e586594484c7a2 | e40b5212cfab880e230dfaa0af81e87565ce9a53 | refs/heads/master | 2022-11-01T11:10:40.866172 | 2020-06-20T07:27:46 | 2020-06-20T07:27:46 | 273,659,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | h | densegraph.h | #ifndef DENSE_GRAPH
#define DENSE_GRAPH
#include<vector>
#include<cassert>
#include<iostream>
using namespace std;
class DenseGraph{
private:
int n,m;//分别表示顶点数和边数;
bool directed;
vector<vector<bool>>g;//邻接矩阵表示稠密图;
bool hasEdge(int v,int w){
assert(v>=0&&v<n);
assert(w>=0&&w<n);
... |
ee3d964daf9b0004d0f3ed0f5dd24f8eb0734375 | 2db07353b4c05126d4333965ba41a5f1e00ace0b | /gpu.h | 12aae8626dc39fd0c7b8ae36c3f956c3330b7c1f | [] | no_license | adrianaliendo/readingnetwork | 74cb507796409b996d11f15feb04ff7aaf993382 | 3cccd3068606bf81fc952f277128f49bc7724dc8 | refs/heads/master | 2020-03-25T07:38:43.514064 | 2014-04-28T19:00:52 | 2014-04-28T19:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,907 | h | gpu.h | /*
* File: gpu.h
* Author: aliendo
*
* Created on 26 de diciembre de 2013, 11:23 AM
*/
#ifndef GPU_H
#define GPU_H
#include <iostream>
#include <string>
#include <sstream>
#include <stdlib.h>
//#include <mpi.h>
// "/usr/include/openmpi-x86_64/mpi.h"
using namespace std;
class gpu {
public:
bool present;... |
823ec03d13b6ff93c9ebc42cb85dc6f60fed8343 | 385cfbb27ee3bcc219ec2ac60fa22c2aa92ed8a0 | /Gui3d/LayoutLeft.cpp | 51ad14adb008c203a2b03ffd806f82b55c1815cd | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | palestar/medusa | edbddf368979be774e99f74124b9c3bc7bebb2a8 | 7f8dc717425b5cac2315e304982993354f7cb27e | refs/heads/develop | 2023-05-09T19:12:42.957288 | 2023-05-05T12:43:35 | 2023-05-05T12:43:35 | 59,434,337 | 35 | 18 | MIT | 2018-01-21T01:34:01 | 2016-05-22T21:05:17 | C++ | UTF-8 | C++ | false | false | 408 | cpp | LayoutLeft.cpp | /*
LayoutLeft.cpp
(c)2005 Palestar Inc, Richard Lyle
*/
#define GUI3D_DLL
#include "Gui3d/LayoutLeft.h"
//----------------------------------------------------------------------------
IMPLEMENT_FACTORY( LayoutLeft, WindowLayout );
REGISTER_FACTORY_KEY( LayoutLeft, 4186565727206490347 );
LayoutLeft::LayoutLeft()
{... |
6fc63803844a4ae6be5d27a4ffc6e96ce74ea191 | bfed570d24468df3994eb876758253b70c3d375e | /src/hzip_storage/archive/archive.cpp | 9fe6f44cea6126db9dfca5f8756b66238c15ef52 | [] | no_license | hybridzip/hybridzip | 624fc67a498c004ca2a26b0b433cccdcf953151b | 8ed98b1c2058860bd5fe356320b6debbf589c37b | refs/heads/master | 2023-08-04T13:12:13.604343 | 2023-07-21T06:30:01 | 2023-07-21T06:30:01 | 177,826,931 | 1 | 1 | null | 2023-07-21T06:30:03 | 2019-03-26T16:22:56 | C++ | UTF-8 | C++ | false | false | 23,951 | cpp | archive.cpp | #include "archive.h"
#include <filesystem>
#include <fcntl.h>
#include <loguru/loguru.hpp>
#include <hzip_core/utils/validation.h>
#include <hzip_core/utils/utils.h>
#include <hzip_core/utils/fsutils.h>
#include <hzip_storage/errors/archive.h>
HZ_Archive::HZ_Archive(const std::string &archive_path) {
path = std::f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.