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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d61624460f71dde540783f662d1288a994a82e4 | 725b93e1ed425ae28d1b2685edf59a810559ee0a | /CheersApp/CheersApp/SETTINGS_feature_custom_workflow.h | 7ed72351e79d2b9e240e0a9d8a5a2fe4542080b5 | [] | no_license | mattclin/MedLaunchCheers | b5f121a96459c8370ac735d8844a3c7f44276e6e | a4829b94b1a49be5b3ceec475e25a81ac0ff7199 | refs/heads/master | 2023-04-25T20:08:50.938669 | 2021-02-28T18:32:55 | 2021-02-28T18:32:55 | 309,164,748 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,267 | h | SETTINGS_feature_custom_workflow.h | #pragma once
#include "sdk_util.h"
#include "stdafx.h"
class CSDKFeatureCustomSettingsWorkFlow
{
public:
CSDKFeatureCustomSettingsWorkFlow();
virtual ~CSDKFeatureCustomSettingsWorkFlow();
ZOOM_SDK_NAMESPACE::SDKError Init();
void CleanUp(){}
void SetMeetingUIPos(ZOOM_SDK_NAMESPACE::WndPosition pos);
void SetFloa... |
c3a5c839c3a976e44e384b492a88e1caec5c3793 | 8cd49b200687bd39507567cd8bfec72eb61fff5f | /IniFile.h | ae4397f7bac08c5aded30532613118644001c023 | [
"MIT"
] | permissive | richard-damon/Library | ba1d630fd5e9bfb8ad550351e65a1cdde1b6ea6c | bbe7155ed9a00ae8068cdc2dff6a36a8a4bcb044 | refs/heads/master | 2021-01-25T00:11:46.009108 | 2015-07-01T00:52:45 | 2015-07-01T00:52:45 | 22,819,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,034 | h | IniFile.h | #ifndef INIFILE_H
#define INIFILE_H
/**
@file ini_file.h
This file defines the implementation for a pair of templates (DListInRoot and DListInNode) that
implement an intrusive double linked list.
@copyright (c) 2014 Richard Damon
@parblock
MIT License:
Permission is hereby granted, free of charge, to any person obt... |
d02f24a4c738c56b5d299a4209236dd480fc03f4 | 0d1645e912fc1477eef73245a75af85635a31bd8 | /XOffice/src/XOffice/src/XOfficeFrmSerializeSvr.cpp | 390ed764083e9dcb3bc471be272022e2ee9882af | [
"MIT"
] | permissive | qianxj/XExplorer | a2115106560f771bc3edc084b7e986332d0e41f4 | 00e326da03ffcaa21115a2345275452607c6bab5 | refs/heads/master | 2021-09-03T13:37:39.395524 | 2018-01-09T12:06:29 | 2018-01-09T12:06:29 | 114,638,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,019 | cpp | XOfficeFrmSerializeSvr.cpp | #include "StdAfx.h"
#include "..\include\XOfficeFrmSerializeSvr.hpp"
#include "XOfficeFrmDataSvr.hpp"
#include "xframe.h"
namespace Hxsoft{ namespace XFrame{ namespace XOffice
{
XOfficeFrmSerializeSvr::XOfficeFrmSerializeSvr(void)
{
}
XOfficeFrmSerializeSvr::~XOfficeFrmSerializeSvr(void)
{
}
int XOfficeFrmSer... |
d1ee678bb7746f39782f167eb38c1e9484f269a0 | 5c7822352a7f5c3e402d97c28651c88c47de443c | /Tutorials/Study_MFC/Study_MFCView.h | dead8ed18cfb28503147ec7c02002729938c1855 | [] | no_license | blockspacer/text-smooth-with-shader | e9228d2d1c4d00498925effbe4b20d7dafb3be78 | 710d68e77d4381ae6a05ac03ce264be66e0feaec | refs/heads/master | 2022-01-03T07:32:42.289231 | 2018-03-19T18:06:28 | 2018-03-19T18:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,568 | h | Study_MFCView.h |
// Study_MFCView.h : interface of the CStudy_MFCView class
//
#pragma once
#include "colorSmoothRenderTask.h"
class CStudy_MFCView : public CView
{
protected: // create from serialization only
CStudy_MFCView();
DECLARE_DYNCREATE(CStudy_MFCView)
// Attributes
public:
CStudy_MFCDoc* GetDocument() const;
static CS... |
2ce2d348b268e330e072bc2b518fbaaa2297dcf1 | c1b03b59b3974058e3dc4e3aa7a46a7ab9cc3b29 | /src/module-wx.new/generated/Class_wx_InputStream.cpp | 9fa76722383dfd242b3efb763d42ed4c86ecd60c | [] | no_license | gura-lang/gura | 972725895c93c22e0ec87c17166df4d15bdbe338 | 03aff5e2b7fe4f761a16400ae7cc6fa7fec73a47 | refs/heads/master | 2021-01-25T08:04:38.269289 | 2020-05-09T12:42:23 | 2020-05-09T12:42:23 | 7,141,465 | 25 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,604 | cpp | Class_wx_InputStream.cpp | //----------------------------------------------------------------------------
// wxInputStream
//----------------------------------------------------------------------------
#include "stdafx.h"
Gura_BeginModuleScope(wx)
//----------------------------------------------------------------------------
// Gura interfaces... |
bba1f99fd1bba8ec1188db1e6cdd232da2b200c4 | cae0d3a5214e0c748f557db95d7ef08615adf2a7 | /15_kwietnia/src/tab_asc.cpp | f4dab1c6624fee7aba9bdb43ae5b274aa9cd4c2b | [] | no_license | 218731/PAMSI | db4a3bad1c201331fb025bff1205af24bf4e17ed | ff8eb1435999cbf75111b2cc04fc2ca2c75b2259 | refs/heads/master | 2021-01-17T07:11:34.492230 | 2016-06-07T12:29:22 | 2016-06-07T12:29:22 | 52,681,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,522 | cpp | tab_asc.cpp | #include "tab_asc.h"
void Tablica_asc::dodaj(int numer, std::string nazwisko)
{
Tom *temp_Tom;
bool znalazlem = 0, stop = 0;
int i = 0;
if((i>=licznik) || (znalazlem == 1)) stop = 1;
while(stop == 0)
{
if(buckets[i].litera == nazwisko[0])
{
znalazlem = 1;
temp_Tom = &buckets[i];
}
i++;
if((i>=l... |
ead090efa1ceb7c68c31697189516f23d67a57e1 | 92512749cba1eca6e97315bd82918311d4309c14 | /template.cpp | 297adb8aa71a6f7eff12cdbb22baa379eb679c2b | [
"MIT"
] | permissive | victoirv/ROctave | 0ef9fe132cd6338ee4ec56f72c6702672fa88dfb | 7ad6db48d91bbaa1c03a79240ce5a73228eb0aaf | refs/heads/master | 2021-01-10T01:28:10.651173 | 2016-04-08T14:24:01 | 2016-04-08T14:24:01 | 55,784,223 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,039 | cpp | template.cpp | #include <iostream>
#include <string.h>
#include <octave/oct.h>
#include <octave/octave.h>
#include <octave/parse.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include "fcgi_stdio.h"
#include "fcgi_config.h"
#include <dirent.h>
#include <sys/resource.h> /*rlimit*/
#include <map>
... |
2617f5632ce7bb5da96f4c4f9e36f69d867234a5 | 1ec567d20c92990ea731f4eb3aaf5443dcae62bd | /src/enemy.cpp | 129cc52df742fc0fd401f54d6b6e044901d57a53 | [] | no_license | CollazzoD/2d-Shoot-Em-Up | 7ff330464d59e9b94abe6ad23135e28da9870144 | 3515a287fb9d9439b9fffa600122317516ae8ee2 | refs/heads/master | 2022-09-14T07:12:04.295696 | 2020-05-25T17:24:02 | 2020-05-25T17:24:02 | 263,990,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,562 | cpp | enemy.cpp | #include "enemy.h"
#include <iostream>
Enemy::Enemy(Texture *texture, const float &x, const float &y, const int &speed,
Texture *bullet_texture,
std::list<std::unique_ptr<Entity>> &enemy_bullets,
const Player *player)
: Entity(texture, x, y, speed, -speed), bullet_texture(bul... |
893b0e8459fd94dda7cf1f2684ef0f45cb2826b2 | b0f280123b32baead9f4a5b267e632dfb3352cf9 | /display.cpp | 674127dfd0b269649099e236f215623cbe90f341 | [] | no_license | Evertras/simple-cpp-server | 765fb85fe96e0eea14e4cdfe799c20d400a2a262 | 75f00fec765b0ae4e45d6b6296b5d4c019c588ff | refs/heads/master | 2021-01-22T01:47:54.344829 | 2017-09-04T03:00:23 | 2017-09-04T03:00:23 | 102,236,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | display.cpp | #include <ncurses.h>
#include <iostream>
#include "display.h"
#include "state.h"
Display::Display()
{
initscr();
cbreak();
noecho();
}
Display::~Display()
{
endwin();
}
void Display::draw(const State &snapshot)
{
char statusLine[256];
snprintf(
statusLine,
sizeof(statusLine),
"(S)CV: ... |
2fec46fed70bf7b0f6edb6c48f7a55dbfbc734c1 | ca9f72a58c960a798ca8710df902eacb50126fab | /modem_proc/core/securemsm/ipsec/inc/IxIPSecSPDB.h | eec9882d2fce867be2eb15f65811647483a6d803 | [] | no_license | chinahby/7x27A-M | 60f850bb6924ae7826f7381cd054bc294dccdd26 | b51c21961efd2f496bcf9e293e680f57bf4af64e | refs/heads/master | 2015-07-25T18:16:41 | 2013-10-31T12:50:55 | 2013-10-31T12:50:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,125 | h | IxIPSecSPDB.h | #ifndef IXIPSECSPDB_H
#define IXIPSECSPDB_H
/**==========================================================================
* @file IxIPSecSPDB.h
*
* <h2>ASW Security Services
* <br>
* IPSec Layer
* <br>
* External API and Definitions</h2>
*
* @brief This module provides interfaces to add, remove and update a security
*... |
1cd8dad2201994d18a2a22cbdabf27f1a3c3fb81 | eecbbbf3a94f5722f81a5c7d6b4925ee06eb216d | /main.cpp | f5b5c0112ea5e1308ba7f56da5dc939cc960b48a | [] | no_license | gppsoft/QCZEK_LRS_Companion | a3674f1b644268e729a88b176aa9e88f1130a21f | 497b44fb1224965b981d6cbcdbcdbb3aad212351 | refs/heads/main | 2023-03-16T20:20:20.027956 | 2021-03-07T12:13:37 | 2021-03-07T12:13:37 | 345,336,856 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,527 | cpp | main.cpp | /*
* QCZEK_LCD.cpp
*
* Created: 12.01.2020 18:16:58
* Author : Pavel
*/
#include "settings.h"
#include <avr/io.h>
#include <stdlib.h>
#include <stdio.h>
#include <util/delay.h>
#include "drivers/u8glib/u8g.h"
#include "common/mavlink.h"
#include "atmegaPins.h"
#include "drivers/uart.h"
#include "bitmaps.h"
#include... |
264892c42d1b2d6a42ddf766c47dfe340ecb8c9b | cce8fce9823ea589eeb6f330446ad0d4ebf25ef0 | /gui/rrgroup.h | 9cf855eb445904926a8470411aa49cf1f72455aa | [] | no_license | yapavelkurochkin/tournament | e7eae7e08daee5195c5684af3f000f1cfdc4a1dc | e82caf8280b48dd6400d5460d846ada43ad51de2 | refs/heads/master | 2021-01-18T23:20:36.691917 | 2018-09-21T11:22:06 | 2018-09-21T11:22:06 | 3,380,803 | 1 | 2 | null | 2017-09-23T19:47:03 | 2012-02-07T19:49:53 | C++ | UTF-8 | C++ | false | false | 659 | h | rrgroup.h | #ifndef RRGROUP__H
#define RRGROUP__H
#include "group.h"
/** \brief Round robin group
*/
class RRGroup: public Group
{
void roundRobin();
public:
RRGroup( QString name = QString(),
PlayerList players = PlayerList() );
virtual void addPlayer( Player player );
static unsigned int match... |
b983d3abc46ecccf998790db7365500303e77b84 | a45b2e794d60ea5ce00488064e9989507420ad13 | /2DStarterProject/src/KeyboardController.cpp | 52f259624967bb1861f475e45db68c44c052a120 | [] | no_license | jackv24/AIE-Assessment-4-Artificial-Intelligence | 1e0c57bbb3980a2513761e181f6a61a0b205d59b | 3a816c1af4389cc077f3e384a1f45547c9710a11 | refs/heads/master | 2021-01-17T09:01:56.852119 | 2016-08-01T01:24:03 | 2016-08-01T01:24:03 | 61,593,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | KeyboardController.cpp | #include "KeyboardController.h"
KeyboardController::KeyboardController()
{
}
KeyboardController::~KeyboardController()
{
}
KeyboardController::Result KeyboardController::Update(Agent *pAgent, float deltaTime)
{
Vector2 direction(0, 0);
//Vertical input
if (glfwGetKey(m_window, GLFW_KEY_W))
direction = direction... |
f2455a845f40482fb9f125d775df34c9f71dae41 | aa4733448f2768f936ae98379fa6555025e37dff | /Source/MobileTV/ATSCMH/ParseMpeg4GenericRTP.h | 7f97ad2f4d369e9b01c55035d96faec55b550f19 | [] | no_license | schreibikus/nmPlayer | 0048599d6e5fc60cc44f480fed85f9cf6446cfb4 | 1e6f3fb265ab8ec091177c8cd8f3c6e384df7edc | refs/heads/master | 2020-04-01T20:34:56.120981 | 2017-05-06T08:33:55 | 2017-05-06T08:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | h | ParseMpeg4GenericRTP.h | #ifndef __PARSEMPEG4GENERICRTP_H__
#define __PARSEMPEG4GENERICRTP_H__
// rfc3640
#include "ParseRTP.h"
#include "ParseMpeg4GenericMode.h"
using namespace Mpeg4GenericMode;
class CParseMpeg4GenericRTP : public CParseRTP
{
public:
CParseMpeg4GenericRTP(CMediaStream * pMediaStream);
virtual ~CParseMpeg4G... |
cf7f2a92d2d8197b6f944cc85812d91186a3f79f | 28b57505b630ad47081e556eff539e24ee110aea | /BoxDescriptor.h | 68a3334d6c95fc565c55dda7448560ede1f6271d | [] | no_license | dmaccormick/Particle_DLL | ec95ca5ecb8178d0e0db3034ac5a505ad7410aa4 | 0ac7f404ca6dc8067bfe6e1ea208472f800e150e | refs/heads/main | 2023-07-13T05:17:36.011440 | 2021-08-16T16:53:16 | 2021-08-16T16:53:16 | 396,614,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,780 | h | BoxDescriptor.h | #ifndef BOXDESCRIPTOR_H
#define BOXDESCRIPTOR_H
#include "Vec3.h"
class BoxDescriptor
{
public:
Vec3 minPos;
Vec3 vertA, vertB, vertC;
BoxDescriptor()
{
minPos = Vec3();
vertA = Vec3();
vertB = Vec3();
vertC = Vec3();
}
BoxDescriptor(Vec3* _points)
{
//The 4 verts create a so... |
3d65acb89e019f2ed606b63ee573b676d69956f7 | 57be15ccf8458cdc18ed9ddc425260a380c80ebf | /MatchingBackend/support/Logger.cpp | 09865649ce7b45e4eedf10157c85c0ec0f316c1a | [] | no_license | lkn/MatchingBackend | 9fe7687e0dcfb109c8ef16507ec5b88cafa1b612 | 7e4039c594dadc94843db605b36648681171d2d0 | refs/heads/master | 2021-01-01T18:27:29.084638 | 2011-06-06T20:36:03 | 2011-06-06T20:36:03 | 1,797,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | Logger.cpp | #include <iostream>
#include <time.h>
#include <stdarg.h>
#include <time.h>
#include "../support/util.h"
#include "Logger.h"
Logger::Logger() {
Init("");
}
Logger::Logger(std::string fileName) {
Init(fileName);
}
Logger::~Logger() {
logFile_->close();
delete logFile_;
logFile_ = NULL;
}
... |
d7ed646e389088de55b04c84571b4880c59702b4 | 9e319f4ec990d56e9f8b104a98e37e66ecbdc02b | /C_Programs/0401_ReadTemperInCentigrade.cpp | 24f26d53c7354fdefbb0397c8c5ebfb637b36c2b | [] | no_license | bhagya314/MKPITS_Bhagyashri_Lalsare_Java_Mar_2021 | d4e680a00c654792da98947c655b9f0d1a0d9be6 | 218e8f604b4fe9c9480a558b263e47ffb813f225 | refs/heads/main | 2023-07-13T12:37:51.188075 | 2021-08-20T14:53:39 | 2021-08-20T14:53:39 | 347,282,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | 0401_ReadTemperInCentigrade.cpp | // 4 Write a C program to read temperature in centigrade and display a suitable
// message
// according to temperature state below
// Temp < 0 then Freezing weather
// Temp 0-10 then Very Cold weather
// Temp 10-20 then Cold weather
// Temp 20-30 then Normal in Temp
// Temp 30-40 then Its Hot
// Temp >=40 then Its V... |
12d2ea3e4e1fa0f940a87bedada11e5a5f74cfcf | 5ebec1ddc27bc78a3570aea47daa3a0738d56c49 | /Number Theory/ncr%p.cpp | d1028181e32a8c5f8bace7e15a2143199611362f | [] | no_license | saiprasaddash07/Algorithms-code | 053e27248e76bc889907b38f64254485a2fa6bee | 78a22a28c63308522df88bd655bd41620bfc49af | refs/heads/master | 2023-06-27T07:08:51.442775 | 2021-07-25T12:08:29 | 2021-07-25T12:08:29 | 389,338,303 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | cpp | ncr%p.cpp | #include <bits/stdc++.h>
using namespace std;
const int p = 1000000007;
int mpow(int base, int exp = p-2 , int mod = p) {
base %= mod;
int result = 1;
while (exp > 0) {
if (exp & 1) result = (result * base) % mod;
base = (base * base) % mod;
exp >>= 1;
}
return result;
}
c... |
75028368aadcb2e9a74dc099de87e0beaf8e7484 | 12de865aa45e77e1944482986fd2871f54922e5b | /src/daemon/entry/cri/websocket/service/exec_serve.cc | 966757340fc2bb699f23535ac7dc194f84ce862c | [
"LicenseRef-scancode-mulanpsl-2.0-en"
] | permissive | HumbleHunger/isulad | f51c3e94942e62f3d526f36dbadf4f85e932d025 | f985403f87c82e85852ef472507d55a6c1399065 | refs/heads/main | 2023-06-27T20:43:24.290999 | 2021-08-05T09:51:11 | 2021-08-05T09:51:11 | 392,988,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,049 | cc | exec_serve.cc | /******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2018-2019. All rights reserved.
* iSulad licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mu... |
e854e2ee0c7f2fa21c7495ad28ecffb5877811de | 640b40fad2faa6ab908177fe60c67028315f99fd | /20160609/Q3.cc | 7196accf32d7c6a0d3845c1b95c822c714bd0134 | [] | no_license | xmoyKing/CS_CPP | ad0a64a47313820855eea91cac9cc4cb319be1f2 | d40a92ad30f8b1a03c65675bf15b85afa17f6734 | refs/heads/master | 2021-01-17T08:38:43.253988 | 2016-06-21T01:25:41 | 2016-06-21T01:25:41 | 60,462,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cc | Q3.cc | #include <iostream>
using std::cout;
using std::endl;
class PAT{
public:
PAT(){
cout<<"constructor no arg"<<endl;
}
PAT(int a)
:_a(a)
{
cout<<"constructor"<<endl;
}
PAT(const PAT& a){
cout<<"copy constructor"<<endl;
}
private:
int _a;
};
int main(){
PAT a(); //
PAT b(2);
PAT c[3];
... |
d40101653cb3c6de8cafe22577fc1e956bee9d2b | 378d5285e01ccf7d9fccfd549e1ed7bafdf48d54 | /C&C++/table.cpp | 292ddb31b8c7e16d36a589646cad118f43cba082 | [] | no_license | nixis-institute/practice | 0f59e74d6518a80c35c7d3a5e4281cebf0e266cc | 8d7b3f454e5103a0a5bceee034a604fcc098dbd1 | refs/heads/master | 2023-01-11T20:18:47.259472 | 2022-12-24T13:27:53 | 2022-12-24T13:27:53 | 144,467,408 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | table.cpp | #include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter any number : ");
scanf("%d",&a);
for(b=1;b<=20;b++)
{
if (c %2=0)
{
printf("even number");
}
else
{
printf("odd number");
}
}
return 0;
} |
39119cc13bde47ba56f9e94eb3fb6531bfe0d30d | 6999394ec275d2b1209f420d9709a4c20d83bca7 | /src/c++/main.cpp | 22567bba7daaa663d42909eabb70f4cb549c2ff4 | [] | no_license | OGthug-coder/MathModel2020 | 7b35655f78ef0be4a06bb184175171d3f8049cef | be02309a859cbee4b229f02e2f6ad9dda85ecece | refs/heads/main | 2023-03-19T19:21:46.613417 | 2021-03-10T08:14:41 | 2021-03-10T08:14:41 | 315,638,605 | 2 | 0 | null | 2020-12-15T20:41:41 | 2020-11-24T13:20:17 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,692 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include "double_pendulum.cpp"
int main(){
int steps;
double m1, m2, l1, l2, theta1, theta2, omega1, omega2;
std::cout << "Steps of integration:" << std::endl;
std::cin >> steps;
std::cout << "Masses m1 and m2:" << std::endl;
std::cin ... |
69c5cdff0e993d761b395d0b0b0f9ebb518a2c5e | c0dd84cf21d8784e53e3bfbdc67a4a2d67d8f58b | /helloworld/solo_learn/carrot_cake.cpp | 99df9446a65fcb00bc3a102f3b4ce7e1180d6cd3 | [] | no_license | fyonfa/c_cpp_workspace | b9a94e73c51028755c86fff7d6c7434c3486b2ed | a9b067fce2314c82af26922f1801d011d07dd5df | refs/heads/main | 2023-02-11T21:06:15.698022 | 2023-01-24T15:07:42 | 2023-01-24T15:07:42 | 309,473,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,346 | cpp | carrot_cake.cpp | #include <iostream>
using namespace std;
/*
You are packing boxes of carrots for a farm co-op, and you are
supposed to evenly distribute all of the carrots that you have into the boxes.
The total number of carrots in each box doesn't matter as long as you distribute them evenly,
and there are not enough leftover to ... |
2a521bce2c7ea19dc2de32cd9eafaec197b48f05 | 5d0404ce7413acac83257933774633885980a5e2 | /UVa1225.cpp | 49331ed6db314608103ad56af85639d3b263e8bf | [] | no_license | howhowcan/UVa-practice | 33c432ba43e27c33afc68d7a9dd71cddf1228e4e | bb2ffb6191c40fd9d8986983cb7f456b3f9fe44d | refs/heads/master | 2020-04-18T07:26:40.594256 | 2019-04-28T13:10:26 | 2019-04-28T13:10:26 | 167,360,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | UVa1225.cpp | #include <stdio.h>
#include <string.h>
int main()
{
int n, ch;
scanf("%d", &n);
ch = getchar();
while(n--)
{
int num, a, b, c, d, s[20] = {0};
scanf("%d", &num);
a = num / 1000;
b = (num / 100) % 10;
c = (num / 10) % 10;
d = num % 10;
if(a) //千位
{
for(int i = 1; i < a; i... |
e966f6db7fff751dac742ca9c0ae3cd6f6b9b2eb | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_repos_function_726_mutt-1.4.2.3.cpp | 853d28c26f280b132f594c98f5dd31e6c52d94de | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | mutt_repos_function_726_mutt-1.4.2.3.cpp | static int first_mailing_list (char *buf, size_t buflen, ADDRESS *a)
{
for (; a; a = a->next)
{
if (mutt_is_subscribed_list (a))
{
mutt_save_path (buf, buflen, a);
return 1;
}
}
return 0;
} |
f2785afc16ee51f778c64c1f6827f9db9ef4ea56 | d02cf9324bfc71141069b96c487651c6cf6ceb80 | /ruap_lv1/ruap_lv1.cpp | dc9d7975bffde2bd98adf59c40465da355bccaa9 | [] | no_license | Irena-d/RUAP-Project | aa23b7caea6397693c967470fc3afc6cfe9c6f9d | c08335f461dfdba5cf68ae8b2ae0c19e36685ab3 | refs/heads/main | 2023-01-23T02:39:52.260889 | 2020-12-09T14:56:07 | 2020-12-09T15:05:08 | 319,983,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | cpp | ruap_lv1.cpp | // ruap_lv1.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
std::cout << "Pozdrav iz aplikacije od Irene Dujmenovic!\n";
}
|
7d2a5d1eba28bf338c781cb92f0bd4fdb37d3139 | 03c01f0a10c844c3432f499e59271e31898f3a3a | /XXXXX.cpp | 8dd78540a981e7c93fa627c36330db36376efad3 | [] | no_license | AmirFaruk75/Codeforces | ae2fba252a236be2baafe27d75008ecdb95febdb | 3a381547543a8fd557afaa68c4ed576bcb662906 | refs/heads/main | 2023-03-07T22:56:45.179559 | 2021-02-23T16:31:58 | 2021-02-23T16:31:58 | 341,608,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | XXXXX.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int t,n,x,a[100000],i,j,b=0,c=0,d=0,e,f,g,h,sum=0,cum;
cin>>t;
for(h=0;h<t;h++)
{
cin>>n>>x;
for(i=0;i<n;i++)
{
cin>>a[i];
sum=sum+a[i];
if(a[i]%x==... |
057de8aaff1299e330f2d43b020e1ef52dd4902f | c0c44b30d6a9fd5896fd3dce703c98764c0c447f | /cpp/Targets/MapLib/Shared/include/UserDefinedBitMapFeature.h | ad9438a0a26375967c29a165daa4a578b9b63338 | [
"BSD-3-Clause"
] | permissive | wayfinder/Wayfinder-CppCore-v2 | 59d703b3a9fdf4a67f9b75fbbf4474933aeda7bf | f1d41905bf7523351bc0a1a6b08d04b06c533bd4 | refs/heads/master | 2020-05-19T15:54:41.035880 | 2010-06-29T11:56:03 | 2010-06-29T11:56:03 | 744,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,446 | h | UserDefinedBitMapFeature.h | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of co... |
4e3b5f4f8bb08279a3c0e4ef50effe1a5f20715d | d610c33b993e27e2cb37266409a3ed5012dea37c | /app/JPush/JPush/sstring.h | be9f2fdd70d18d15a083efc31e8f3ed13c3fa222 | [] | no_license | hug2008/pctools | 4617abc977efdfd74b4f41db770d4f71b933961d | 147a0f3acce424d404e6a7cbf4e7815d3bfb820e | refs/heads/master | 2021-09-10T18:10:05.504289 | 2018-01-11T02:15:22 | 2018-01-11T02:15:22 | 117,033,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,384 | h | sstring.h | #ifndef SS_STRING
#define SS_STRING
#include <string>
#include <stdio.h>
#include <iostream>
#include <stdarg.h>
using namespace std;
#ifndef WORD_MAX
#define WORD_MAX (0xffff)
#endif // !WORD_MAX
template<typename _CharT, typename _Traits, typename _Alloc>
class SString : public basic_string<_CharT, _Traits... |
79c258a8a73aa0827be31220441fd6b9aabab144 | 0075bb80b64c26aec032bb0858a1485ff97e0178 | /include/composition/Manifest.hpp | bee6778a6c6bfa61e27a492021afc6ed0a783c19 | [] | no_license | BwRy/composition-framework | 045ccb673b7050a484c0b69424573c65d93657f9 | 224d329c5a77f47eba1c88e5913175c6cb87431e | refs/heads/master | 2022-04-16T11:11:50.514604 | 2018-11-18T13:19:23 | 2018-11-18T23:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,743 | hpp | Manifest.hpp | #ifndef COMPOSITION_FRAMEWORK_MANIFEST_HPP
#define COMPOSITION_FRAMEWORK_MANIFEST_HPP
#include <utility>
#include <unordered_set>
#include <cstdint>
#include <functional>
#include <llvm/IR/Value.h>
#include <composition/graph/constraint.hpp>
#include <composition/metric/Coverage.hpp>
#include <composition/support/Manif... |
53a944c5af52ff8bf6a1810c057a50d75f20e330 | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /torch/csrc/jit/passes/symbolic_shape_analysis.cpp | 2ff0e962d524cf7408f8d9e724d78b100a7ba665 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | C++ | false | false | 12,598 | cpp | symbolic_shape_analysis.cpp | #include <ATen/core/interned_strings.h>
#include <c10/util/Exception.h>
#include <c10/util/irange.h>
#include <torch/csrc/jit/ir/alias_analysis.h>
#include <torch/csrc/jit/ir/constants.h>
#include <torch/csrc/jit/ir/ir.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/common_subexpression_eliminati... |
fff5500d83e9f466ee1dab66064d0249aef23093 | a151a881866527ad745c952922e091a80bf89e21 | /cpp/source/IClient.cpp | 9bb5ee930dab7015832c5e805cdc4e3c0e3e4e2c | [
"MIT"
] | permissive | nawbar23/fleetmgr | a052715f7ed71f5a45307e1db66a6aa639b3b221 | e5f93877fa373841845941dacf37cfcd4364f69c | refs/heads/master | 2020-04-08T20:56:57.246361 | 2019-01-11T18:17:27 | 2019-01-11T18:17:27 | 159,722,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | IClient.cpp | #include "IClient.hpp"
#include "event/input/connection/Received.hpp"
#include "state/IState.hpp"
#include "backend/ClientBackend.hpp"
#include <memory>
#include <fstream>
#include <sstream>
using namespace fm;
IClient::Listener::~Listener()
{
}
IClient::~IClient()
{
}
void IClient::trace(const std::string& mess... |
47b1d8d2e3177c474e913b9f6d6fc20205f06084 | 288c04738e10ce9a614faabdb3e91730eb86e21e | /WorkerGame/Project1/main.cpp | 4edae69085742b1c0f3f1b3a9f692cc10403628e | [] | no_license | webserg/cpp | 2734a7f76c3d1fcd5f5203f1963eede8191503df | 72dd20fb949ef1df3d67dce397ba753a512c9747 | refs/heads/master | 2021-06-06T01:52:18.595204 | 2016-12-17T10:33:11 | 2016-12-17T10:33:11 | 42,400,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | main.cpp | #include "main.h"
#include "Worker.h"
#include "HouseWife.h"
#include "EntityManager.h"
int main() {
Worker worker1(1);
HouseWife houseWife(2);
EntityMgr->addEntity(&worker1);
EntityMgr->addEntity(&houseWife);
for (auto i = 0; i < 30; ++i)
{
worker1.Update();
houseWife.Update();
Sleep(500);
}
keep_wind... |
0f934c7ce2c48c1ac1ab880531dc780e65a2381e | b8af1489f7013c4d21c827d01e3f7e7241dd9d1c | /CODECHEF/CHEFRECP.cpp | 6c91693b358b222ae58236f6cacb6236a135f901 | [] | no_license | omkarrane/dsa | 1ee3c4d8b865b7b9cca6930d742742856a4d548b | 8dd9d2ac7d0ef9717272019b4161ab24025340a9 | refs/heads/master | 2021-08-20T06:22:17.312192 | 2021-06-07T00:13:08 | 2021-06-07T00:13:08 | 163,756,527 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | CHEFRECP.cpp | #include <bits/stdc++.h>
using namespace std;
void solve()
{
int n, temp;
cin >> n;
map<int, int> m;
vector<int> arr;
for (int i = 0; i < n; i++)
{
cin >> temp;
if (m.find(temp) == m.end())
m[temp] = 0;
m[temp]++;
arr.push_back(temp);
}
for (int i = 1; i < arr.size(); i++)
... |
07555b873a13becc70eeb4c030780d4f1de8684c | 28016f7056ac874d943c5f460e34769049272cf7 | /src/tibb/NativeUDPSocketObject.cpp | 0128f7a99faa2c11507281d10986c0576d417479 | [
"Apache-2.0"
] | permissive | sanyaade-mobiledev/titanium_mobile_blackberry | be804f982143e0f5c5d8ac90e41fb7d9b61e459b | 1a3a389c39371b851a0f846330a2bb3dfb8b40fa | refs/heads/master | 2021-01-16T21:36:00.464060 | 2013-02-10T09:45:24 | 2013-02-10T09:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,654 | cpp | NativeUDPSocketObject.cpp | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "NativeUDPSocketObject.h"
#include "NativeBufferObject.h"
#include "Nat... |
896a98df3cd3549823b209640d4383b2446f57c6 | aa0b51cedcb470708206759ac68cd3ff4a3f262f | /CHANDF.cpp | 7c18be424b1fb9748c9dfd197f236dbb25ea662e | [] | no_license | swapnil-ahlawat/Codechef-Solutions | 1dbeb08e629b91200c3960a1c81237d3372243af | 97691e13b6b4bff6f6606cfc1061acdad9357bc3 | refs/heads/master | 2022-11-15T18:41:31.264369 | 2020-07-13T19:14:50 | 2020-07-13T19:14:50 | 264,389,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,242 | cpp | CHANDF.cpp | // Created by swapnil_a01
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ll long long
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
ll x, y, l ,r, z;
cin>>t;
while(t--){
cin>>x>>y>>l>>r;
z=x|y;
if(x==0 ||... |
9a2a296a69c21dd1fc2d82f26f3691fde68540f9 | 8ae31e5db1f7c25b6ce1c708655ab55c15dde14e | /题目/洛谷/P1164_小A点菜.cpp | 7245368670dd71b615720582b7d6e4346979875e | [] | no_license | LeverImmy/Codes | 99786afd826ae786b5024a3a73c8f92af09aae5d | ca28e61f55977e5b45d6731bc993c66e09f716a3 | refs/heads/master | 2020-09-03T13:00:29.025752 | 2019-12-16T12:11:23 | 2019-12-16T12:11:23 | 219,466,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | cpp | P1164_小A点菜.cpp | #include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;
int ans,m,n;
int a[110];
void dfs(int from,int sum)
{
if(sum==m)
ans++;
else
for(int i=from;i<n;i++)
if(sum+a[i]<=m)
dfs(i+1,sum+a[i]);
}
int main()
{
scanf("%d %d",&n,&... |
616a9a2f73ce1723b499cb5cbd03118c453f59ae | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5690574640250880_0/C++/pschuprikov/c.cpp | 0692a1fb7ebc2f7eae4b9c87bcbbe306e07d180b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,813 | cpp | c.cpp | #include <vector>
#include <iostream>
#include <cassert>
#include <map>
using namespace std;
bool has(size_t b, int r, int c, int i, int j) {
return b & (1 << (i * c + j));
}
int count(size_t b, int r, int c) {
int res = 0;
for (int i = 0; i < r; i++)
for (int j = 0; j < c; j++)
if (has(b, r, c, i, ... |
1794b24b115425ac01d6da97d35f1c6a1481df7c | e216c1df4b156d7a0d7b3f62d6b81b27d562211d | /LIS.cpp | 15dd555f88369a11265b15bfbaf566b66d22cfbe | [] | no_license | Bonayy/Competitive-Programming | 0888b394c556c90559c66802e40d9ff6fd905780 | 03dc096da4978bc18d9e52704ebaf7bbc59ddca0 | refs/heads/master | 2022-12-19T20:58:40.693221 | 2020-09-30T04:22:19 | 2020-09-30T04:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | LIS.cpp | #include <iostream>
using namespace std;
int f[30000], g[30000];
int bS(int arr[], int length, int key) {
int l = 0;
int r = length - 1;
int mid;
while (l<=r) {
mid = (l+r)/2;
if (arr[mid] >= key) r = mid -1;
else l = mid + 1;
}
return l;
}
int main() {
int n;
cin >> n;
int arr[n];... |
0b48d6c0e7318bd05bfd44cfd409e6ed04c98b81 | 7ce9aabed89076cc78a5a25298c9da599bde4f81 | /cds/bit_vector.cpp | 2558a2f076c8f656d64427c21b76d15224ddbb00 | [
"Apache-2.0"
] | permissive | pombredanne/CompactDataStructures | 6bc9d16ef64c9795a60e57175b43bbead3403020 | f7a7ab95f7353440dc4b66caeb07448b35b743fe | refs/heads/master | 2021-12-14T16:47:31.429916 | 2017-05-13T12:56:53 | 2017-05-13T12:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,052 | cpp | bit_vector.cpp | #include "bit_vector.h"
namespace cds {
uint64_t bits_reverse(uint64_t value, uint64_t length) {
uint64_t reversed = 0;
while (length > 0) {
reversed <<= 1;
reversed |= (value & 1);
value >>= 1;
length--;
}
return reversed;
}
... |
8e06d0a7c79a65a814b4a27fbb5c5f3ee4896dd0 | 3683e29dbd87f9dbb15e9766155fd6eb73a7fc4b | /libraries/ElementChecker/src/ElementChecker/Translator/TranslatorFillStream.tcc | 448323ec95cc2d324172edd392aa37396c9bd695 | [] | no_license | joss13aws/FileMetaChecker | 0a8386d4d408ea01f7e0ad5a6cc7e74447b30dba | 7095eee63575b61e994c87e0e771ad2c45a34719 | refs/heads/master | 2021-12-29T03:52:39.899094 | 2013-12-09T10:46:55 | 2013-12-09T10:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | tcc | TranslatorFillStream.tcc |
namespace element_checker
{
template< EDisplayType >
void Translator::fillStream( std::ostringstream& osstr )
{
osstr << get< std::string >();
}
template< >
void Translator::fillStream< eDisplayTypeAscii >( std::ostringstream& osstr )
{
for( size_t i = 0; i < _ref->_size; ++i )
osstr << _ref->_data[i];
}
templa... |
68c15df061594bf8355013a2d0e00fc3a6103a43 | ba323e4f8c68dd17c2f0224fcbe78a3cbd3081fa | /src/Displayer.hpp | bbf7adc0c90166f99906d2b66ea30f15f4fd297d | [] | no_license | tianxiejack/pro_xzpj_360pano | aabfb2c4058757ce00aa3a590b33326ce31fbc18 | db87ff65a912c89b1553e0cb7c94b4828aa6640b | refs/heads/master | 2020-04-18T00:58:17.566434 | 2019-01-21T02:14:15 | 2019-01-21T02:14:15 | 167,100,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,304 | hpp | Displayer.hpp |
#ifndef DISPLAYER_HPP_
#define DISPLAYER_HPP_
#define DS_RENDER_MAX (9)
#define DS_CHAN_MAX (4)
#include <cuda.h>
#include "cuda_runtime_api.h"
#include "osa.h"
#include "osa_thr.h"
#include "osa_buf.h"
#include "osa_sem.h"
#define DS_DC_CNT (2)
using namespace std;
using namespace cv;... |
247c20d3b4c2494646dce17354fdb309c7c43b3c | 5c34abe10630b23da8ba7d1cbce38bda53a4b6fa | /calibGenACD/src/AcdGarcGafeHits.cxx | 1c6f0cfc75bc98fae567bbebb10e1a0b3e0932a8 | [] | no_license | fermi-lat/GlastRelease-scons-old | cde76202f706b1c8edbf47b52ff46fe6204ee608 | 95f1daa22299272314025a350f0c6ef66eceda08 | refs/heads/master | 2021-07-23T02:41:48.198247 | 2017-05-09T17:27:58 | 2017-05-09T17:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,971 | cxx | AcdGarcGafeHits.cxx | #define AcdGarcGafeHits_cxx
#include "AcdGarcGafeHits.h"
#include "reconRootData/ReconEvent.h"
#include "reconRootData/AcdHit.h"
#include "digiRootData/AcdDigi.h"
#include "commonRootData/AcdMap.h"
#include <iostream>
#include <fstream>
#include <assert.h>
void AcdGarcGafeHits::convertToTilePmt(unsigned cable, ... |
77e9019a384f1e9e0301437576a5f8b78517835b | 45f7fa80a44d456d2e7e2d6c71aacbebc6a0dc1c | /sniffersettings.h | 2b2fb28afcf28fb40ef7344a3e14f5a6aa9d99c6 | [] | no_license | Amagor/wsnsim-sniffer | b4f5206fe13ad2c484afe5a8fb1dc9870dd90eed | 4c0e261b70733f8b0700eb963d1ff3aefedce73a | refs/heads/master | 2021-01-23T13:42:57.028957 | 2012-10-22T16:14:40 | 2012-10-22T16:14:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | sniffersettings.h | #ifndef SNIFFERSETTINGS_H
#define SNIFFERSETTINGS_H
#include <QWidget>
#include "interfaces/isniffersettings.h"
#include "ui_sniffersettings.h"
namespace Ui{
class SnifferSettings;
}
class SnifferSettings : public QWidget, ISnifferSettings
{
Q_OBJECT
public:
SnifferSettings(QWidget* parent = 0);
QWid... |
2c685879eb9744cb1b9c2d535ebbac9c92409c0d | 0724a604c61f57a45ef415e447ab7e475f8537a8 | /C-867/securityStudent.h | a56846720e48e6a31b031b28962aa9d86b311d1d | [] | no_license | H2odude/C-867 | 80de8226783b8d79601df29ede0a499a9f1e5d6b | 6ef059f32683f721bb996420c57de4b22e25854f | refs/heads/master | 2020-05-05T01:59:57.363391 | 2019-04-06T00:21:01 | 2019-04-06T00:21:01 | 179,621,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 437 | h | securityStudent.h | #pragma once
#include <iostream>
#include <stdio.h>
#include <string>
#include "degree.h"
#include "student.h"
#include <vector>
using namespace std;
class securityStudent : public student
{
public:
degree getDegreeProgram();
void Print();
securityStudent(string student_id, string f_name, stri... |
f5ae0e83183753141e6430610878bcd62fbe9c2b | 3c33b35b2c07270e22f046f09019e0db284cc0db | /network-programming-for-mswin-cdrom/chapter07/SIO_GET_INTERFACE_LIST/interface.cpp | f691ec10cb542a097f9d2827a447f99541ea02da | [] | no_license | tpn/misc-projects | a89dc8048ceb6680ba6488a95be1b5b033d374e5 | 2f4d61b36c30c20281322dd6b0b98e724d11404c | refs/heads/master | 2020-04-07T11:27:03.261283 | 2015-07-01T21:59:10 | 2015-07-01T21:59:10 | 28,649,968 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,067 | cpp | interface.cpp | //
// Sample: Illustrates the SIO_GET_INTERFACE_LIST ioctl to enumerate local addresses
//
// Files:
// interface.cpp - this file
//
// Description:
// This sample illustrates using the SIO_GET_INTERFACE_LIST ioctl to obtain
// a list of the local IP interfaces. This ioctl has been superce... |
f38ebdfcb63b2d57749c1457258e82192398ca8a | 76a3cb149ade1e84b6f0037061180195265fb31d | /src/brokerlib/core/src/CoreInterface.cpp | b53ab9b6f7cf41e6a213816dbfe3e3a6f308085d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-1-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | opendxl/opendxl-broker | edf7a58b94bffcc12954044784a577b134ff0e04 | 41b3d3a0fe8994ff95768e6c266270c9df7ab88d | refs/heads/master | 2021-12-30T15:44:00.369452 | 2021-12-29T11:36:23 | 2021-12-29T11:36:23 | 102,151,570 | 14 | 26 | NOASSERTION | 2020-04-09T17:11:27 | 2017-09-01T20:42:47 | C++ | UTF-8 | C++ | false | false | 17,539 | cpp | CoreInterface.cpp | /******************************************************************************
* Copyright (c) 2018 McAfee, LLC - All Rights Reserved.
*****************************************************************************/
#include "include/SimpleLog.h"
#include "include/brokerlib.h"
#include "include/BrokerSettings.h"
#inc... |
8c29f75239c4ea38021a77c81d7915fde0e53f01 | 8f9d567014b1ea3dae8c7c6aedb6b8db0564d206 | /cpp/bubble.cpp | 4989cf2247af1e274e854586b345503be299d761 | [] | no_license | thunderbird27/sorting | 02e956435d67365e69f1dab319fceebda91d7f67 | c1530cef88bb77522d3f6ec20d873e7078e4efe8 | refs/heads/main | 2023-08-16T03:06:50.628003 | 2021-10-19T09:45:54 | 2021-10-19T09:45:54 | 418,847,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | bubble.cpp | #include <stdio.h>
#include <iostream>
// not sorted
using namespace std;
void printArray(int A[], int n){
for (int i= 0; i < n; i++)
cout << A[i]<< " ";
cout << "\n";
}
void bubblesort(int A[], int n) {
for (int i = 0; i < n; i++){
int j = i+1;
while (j < n){
if (A[j] < A[i]) {... |
c2599476f7c26a04614ddc4263b8f7617674bc2b | bf2018ec171f485da82c97aa2ec226d3193f9bf0 | /Source/Hacks/Visuals.h | 6c4aafac4b5428bb3facc3e74558c8ba3891169a | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | playday3008/Osiris | 6a5da60c45970f0c77d4e4efe10457c9d92c9013 | 07d7959cb8c017b61bef3a76e236c53c437a7d9f | refs/heads/master | 2022-05-06T01:21:47.502042 | 2022-04-19T10:56:53 | 2022-04-19T10:56:53 | 250,488,379 | 17 | 7 | MIT | 2022-04-19T10:57:22 | 2020-03-27T09:08:12 | C++ | UTF-8 | C++ | false | false | 2,408 | h | Visuals.h | #pragma once
#include "../JsonForward.h"
enum class FrameStage;
class GameEvent;
struct ImDrawList;
namespace Visuals
{
bool isThirdpersonOn() noexcept;
bool isZoomOn() noexcept;
bool isSmokeWireframe() noexcept;
bool isDeagleSpinnerOn() noexcept;
bool shouldRemoveFog() noexcept;
bool shouldR... |
8bf7cc914bb1cd867725f9f74984be314b3b883a | bd7486a56e71b520d0016f170aafa9633d44f05b | /multiwinia/code/lib/input/inputdriver_invert.cpp | 0c0902b33638c8f9ca7c2179b6e89e9f1645df07 | [] | no_license | bsella/Darwinia-and-Multiwinia-Source-Code | 3bf1d7117f1be48a7038e2ab9f7d385bf82852d1 | 22f2069b9228a02c7e2953ace1ea63c2ef534e41 | refs/heads/master | 2022-05-31T18:35:59.264774 | 2022-04-24T22:40:30 | 2022-04-24T22:40:30 | 290,299,680 | 0 | 0 | null | 2020-08-25T19:02:29 | 2020-08-25T19:02:29 | null | UTF-8 | C++ | false | false | 2,300 | cpp | inputdriver_invert.cpp | #include "lib/universal_include.h"
#include "lib/input/inputdriver_invert.h"
#include "lib/input/input.h"
#include <memory>
//#include <fstream>
using namespace std;
static string nullErr = "";
InvertInputDriver::InvertInputDriver()
: m_specs(),
lastError( nullErr )
{
setName( "Invert" );
}
... |
b9243bb52e5b9f6fc2e285acedf92184844e83bd | e4c448eefff1967ccb242a7867ad951b42caa566 | /Level_1/HWs/L1.5.cpp | 56703c53706fa0e974a2d037b82beca06ee1af7a | [] | no_license | amandanish882/Polygot | 4eb25fd54eef0d25a29d11f4074e2695a5294ab6 | 08eae67d94849a79da43f16ac85787bfa0af890d | refs/heads/master | 2021-08-11T22:54:03.990351 | 2017-11-14T06:34:10 | 2017-11-14T06:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | L1.5.cpp | #include <stdio.h>
#include <stdlib.h>
int factorial(int);
int main(int argc, char** argv){
if(argc<2){
printf("Not enough arguments\n");
exit(1);
}
printf("%d\n",factorial(atoi(argv[1])));
return 0;
}
int factorial(int num){
if(num==1 || num==0)
return 1;
return num *... |
fb1d7c13e189616f15c36dbe4ec4f0702402761a | 45e425ccfed054b2c92b6489f05070b02e25e6ef | /interviewbit/valid-number.cpp | a591f21eee58bed56e76491669b96d31d0e07785 | [] | no_license | riddhi2000/Competitive-programming | 7d249d6c8f3756b68da738583dca429bab99f661 | 13e1d4fd40add753dedf524bf827b01491b6408c | refs/heads/master | 2021-09-08T08:11:20.594961 | 2018-03-08T14:21:45 | 2018-03-08T14:21:45 | 108,946,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | cpp | valid-number.cpp | #include <bits/stdc++.h>
using namespace std;
//for vectors
#define pb push_back
#define mp make_pair
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef vector<vi> vvi;
//data types
typedef long long ll;
//loops
#define REP(i,a,b) \
for(int i = int(a);i <= int(b);i++)
#define TR... |
3896b7f2d1d0c04f8e22c5ae79d1a9b897975669 | 2ba144ec1f2931fcf58f81d904285c55d13bc1d6 | /source/simtrack/smath.cpp | ddc42faf1ab045f97ffab3421c26594919debea4 | [] | no_license | kilean20/sptrack | 3e943110fad6a5a8e7ec29a5951b80aa67da2371 | 464f7d98e694a4126af217f454b7975a0ce91529 | refs/heads/master | 2021-01-19T04:34:09.830751 | 2016-07-04T00:20:35 | 2016-07-04T00:20:35 | 51,230,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,740 | cpp | smath.cpp | #include "smath.h"
using namespace std;
//===========================================
//
// math functions
//
//===========================================
long int fac(int n)
{
if (n<=0) {
cout<<"n should be non-negative."<<endl;
exit(1);
}
if(n==1) return 1;
if(n==2) return 2;
if(n==3) ret... |
f99abf85833e281aa3cc52e8e9ec80b296c0049f | 2e39c575b622155df7197e8b685598b5d0468247 | /HyperionFrame/HyperionFrame/EngineWorker/Materials/HPBRMaterialGlass.cpp | f9c0b16d522683d07dbd2ec78d6116688d0afd2c | [] | no_license | moso31/HyperionFrame | b47cd8094ccf6b058048928e0dd04e5b85958274 | cde4cf9f41f4ebe5d889ea1734fea169707c6cd7 | refs/heads/master | 2020-03-28T00:42:07.596247 | 2019-08-08T12:46:35 | 2019-08-08T12:46:35 | 147,441,848 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | HPBRMaterialGlass.cpp | #include "HPBRMaterialGlass.h"
HPBRMaterialGlass::HPBRMaterialGlass(const HFloat3 & _Kr, const HFloat3 & _Kt, HFloat _eta) :
HPBRMaterial(HMAT_GLASS)
{
Kr = _Kr;
Kt = _Kt;
eta = _eta;
}
HPBRMaterialGlass::~HPBRMaterialGlass()
{
}
void HPBRMaterialGlass::ComputeScatterFunction(SurfaceInteraction * si)
{
HFloat3... |
c511727edd4825b4cb44954ece0bbdeda03a8dc2 | 18075365a9d9d2b20abc165f36a9c7d7eec05599 | /刷题/leetcode-剑指Offer40.cpp | dbb189b69970d217f7371dd31c89da9e4b61b169 | [] | no_license | pokerfaceSad/algorithm | e3ea13279f090fbc61ef6475d026295e618fb812 | 5ecfb44ecaa2455d4348ebf5060af67ab974936f | refs/heads/master | 2021-09-15T18:29:12.924992 | 2021-09-15T13:44:14 | 2021-09-15T13:44:14 | 86,089,078 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | leetcode-剑指Offer40.cpp | # include <iostream>
# include <queue>
using namespace std;
class Solution {
public:
vector<int> getLeastNumbers(vector<int>& arr, int k) {
if (k == 0) return {};
priority_queue<int, vector<int>, less<int>> q; // 大顶堆
for (int i = 0 ; i < k; i++) {
q.push(arr[i]);
}
... |
9eb0d3b9e6b027a3f68ef3f00ea20b402e7cd2e0 | a56791710ff116e62f313aded47cfc756538ef2e | /tests/graph_tests/src/helper/CSR.cpp | 07840992813028794b012b73fbca599e53ba87e3 | [
"MIT"
] | permissive | Afront/GPUMemManSurvey | 1c90d28c4e5bf6075f286555df9ddab8d6d4fce0 | 35f933be92a0ef3811a584629c44a782bb3843f5 | refs/heads/master | 2023-03-21T11:57:54.759123 | 2020-12-16T12:02:23 | 2020-12-16T12:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,112 | cpp | CSR.cpp | //------------------------------------------------------------------------------
// CSR.cpp
//
//
//------------------------------------------------------------------------------
//
#include "CSR.h"
#include "COO.h"
#include <stdint.h>
#include <string>
#include <fstream>
#include <stdexcept>
#include <iterator>
#inc... |
7dfa9f8051d50d6961c5cfb147209fed0db47b1c | 8776e5e32be27c16c7f8cd2a9a4259b6fb7a012b | /im_client/MiniAtxControl/MiniFileInfoBar.h | eebf0565b90614e4f6b8fdd764e63b18d915bc6c | [] | no_license | 736229999/im | 970b9754da2e15fd5cdaaed6ba189e7c497e15e3 | dc00c52e77a99fae28df9dba8366e31b578a7831 | refs/heads/master | 2021-01-15T11:11:56.737294 | 2017-06-14T07:56:44 | 2017-06-14T07:56:44 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,832 | h | MiniFileInfoBar.h | // MiniFileInfoBar.h : CMiniFileInfoBar 的声明
#pragma once
#include "resource.h" // 主符号
#include <atlctl.h>
// IMiniFileInfoBar
[
object,
uuid(13109A5E-20CD-4517-823F-C372DA423455),
dual,
helpstring("IMiniFileInfoBar 接口"),
pointer_default(unique)
]
__interface IMiniFileInfoBar : public IDispatch
... |
25a37798f911d5bfbb69460a362293fdb6863107 | b2a1599e387a98598453085ed2871c0e01dd917a | /src/ofApp.cpp | 6584687523262ae64df6d568f244729f867ec32a | [] | no_license | 2rooms/vicky_strings | b0f2ba92b02519c89f4e8da12cb53058706f354c | ca58848a76fa191c88e42271e0423f31efe37afc | refs/heads/master | 2016-09-05T23:50:38.794858 | 2015-03-21T18:45:25 | 2015-03-21T18:45:25 | 32,644,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,858 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
//ofBackground(54, 54, 54, 255);
ofTrueTypeFont::setGlobalDpi(72);
verdanaFont.loadFont("verdana.ttf", 15, true, true);
verdanaFont.setLineHeight(18.0f);
verdanaFont.setLetterSpacing(1.037);
... |
d9ce4e76696243421de6dac02e880d4d01c4f71a | c02b6e8b4e762900c0a4e6b5039692b3b090a31c | /display_7segmentos_contador/display_7segmentos_contador.ino | dbd17516cb19ccb2e24b45887757bf1f5cab1b1a | [] | no_license | fepaf/Workshop-Arduino | b706debe050c86896789c1022329cbbbf1ec1ca1 | 060455435d829d48d4d2859914c149aaec4a7fc1 | refs/heads/master | 2020-04-22T12:27:03.792938 | 2019-02-12T18:50:07 | 2019-02-12T18:50:07 | 170,371,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | ino | display_7segmentos_contador.ino | int segA = 3;
//int mask[10] = {126,48,109,121,51,91,95,112,127,123};
int mask[10] = {63,6,91,79,102,109,125,7,127,111};
void setup() {
for (int i=2; i<9; ++i){
pinMode(i,OUTPUT);
}
}
void loop(){
for (int i=0; i<10; ++i){
for (int j=0; j<7;++j){
if (mask[i]&(1<<j)){
... |
c07934f2d20cc729b0835a82e335673d9764a285 | d7a00aeff7ea0465b4319f8eb0a5674226fe7ec0 | /include/Math/Conversions.h | bee413db763205bf9561f29498fb052d9f1ebab9 | [] | no_license | Barbacamanitu/evolve | cec9783fed50b48caf8fcd42df1c8aa153c567b9 | e5d87d578355eb501b8e9b442e9b50430dcd0031 | refs/heads/master | 2016-09-05T18:45:41.461645 | 2013-12-27T05:45:46 | 2013-12-27T05:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | Conversions.h | #ifndef CONVERSIONS_H
#define CONVERSIONS_H
#include <string>
namespace evolve
{
class Conversions
{
public:
static int StringToInt(std::string& str);
static float RadiansToDegrees(float radians);
static float DegreesToRadians(float degrees);
protected:
private:
};
}
#endif // CONVERSIONS_H
|
5c78a33d85765686adcfb60a1713aacb1e385942 | efdc2fb6baa0b429d6c62d8d77a34307e6f6918e | /vsproject/libhttpclient/vshttpclient.cpp | e75b88f5e69901e96c279e1f2eb77a6af98a181a | [] | no_license | vscroll/code-4-nothing | 056390830c495d4859a200642037d593d2c8861c | 82469241314b3356a2c1fea53e9483730a5d58a1 | refs/heads/master | 2021-01-19T10:20:06.114851 | 2014-04-06T14:19:40 | 2014-04-06T14:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,768 | cpp | vshttpclient.cpp | /*************************************************************************
> File Name: vshttpclient.c
> Author: vscroll
> Mail: vscroll@hotmail.com
> Created Time: 2013年12月22日 星期日 22时39分30秒
************************************************************************/
#include "vshttpclient.h"
#include<stdio.h>
#inc... |
0d8bc7393dcd1ac1d9704f1cd335e6299aa744d7 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir7942/dir8062/dir8063/dir8254/dir8444/dir8720/dir8916/dir9172/dir9624/file9667.cpp | 606cd6041abeaedc2a50ef1dcabbfb3f8c2cefa5 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | file9667.cpp | #ifndef file9667
#error "macro file9667 must be defined"
#endif
static const char* file9667String = "file9667"; |
3ed5367bbd9eb6e6f3596e98962eed28967340d2 | eea3297dce69928114e9974f9893e9de49500eb7 | /DemoGame/Models/CaveModelPart1.h | 96fef80e19c500bbbd9a92c5d388f94a5492eabe | [
"MIT"
] | permissive | wvupike2006/SpectralEngine | ddb1fc189e4603efe83eb6a14130c73e32909fbb | 8a5e9fb1542220de063ec59fcf34f40a38308fbc | refs/heads/master | 2022-02-23T12:09:48.605874 | 2019-10-11T03:55:55 | 2019-10-11T03:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | h | CaveModelPart1.h | #pragma once
#include <d3d12.h>
#include <DirectXMath.h>
#include <Vector3.h>
#include <cstdint>
class Frustum;
class Mesh;
class CaveModelPart1
{
constexpr static float pi = 3.141592654f;
struct VSPerObjectConstantBuffer
{
DirectX::XMMATRIX worldMatrix;
};
struct DirectionalLightMaterialPS
{
Vector3 specul... |
fab56cc37fe69460055ab61601dcd862f55db982 | 4464230bfd6d612b3c82e4c881efcca780fc30a9 | /MaGe/generators/src/junk/MGGeneratorCosmicMessenger.cc | ac12d8029e55272bf87962f904690b201b03fc7b | [] | no_license | liebercanis/bacon | 98ffbc4e6eb7bc4378c32547e833324a7471b889 | c6740934c85f86f553bc0ace3c1bcf1bd523e641 | refs/heads/master | 2021-06-07T21:30:38.857120 | 2020-07-21T20:07:54 | 2020-07-21T20:07:54 | 101,422,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,086 | cc | MGGeneratorCosmicMessenger.cc | //---------------------------------------------------------------------------//
//bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu//
// //
// //
... |
6598bedcbc885ffac438e577734e627f56b09e63 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/f5/25931e064bb70d/main.cpp | 3dd8e9d70b0a4b606cf7ff068730ee77c4135fed | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | main.cpp | #include <iostream>
#include <thread>
void f() { std::cout << "Hello "; }
struct F {
void operator()() { std::cout << "Parallel World!\n"; }
};
void user()
{
std::thread t1 {f}; // f() executes in separate thread
std::thread t2 {F()}; // F()() executes in separate thread
t1.join(); // wait... |
f86e117b802dc395d27eb96c1b46aae82531431c | b604fb0369d17efcb92754fbea69c43ed23ad281 | /test/dataTest.cpp | 90d0e9a030ddef4a4783c0490c504a1ae43f3ef4 | [] | no_license | SchulzLab/STITCHIT | fda812450aca3bf2b43d903395c951165ba7b977 | 641dc07c92f58d80ecc7c8f8b481dbc1b510cc58 | refs/heads/master | 2022-11-15T06:02:15.829105 | 2022-11-11T05:04:49 | 2022-11-11T05:04:49 | 109,948,187 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,292 | cpp | dataTest.cpp | #include "gtest/gtest.h"
#include "../SPAN/Data.cpp"
#include "../core/SPANInputGenerator.cpp" ... |
e200dec269daf7d11b7a4ea62c7ff735c41c3d93 | 4eda07b84f89fe1cf8be3eee95e47d8de544f5b6 | /upgrade.cpp | 40c74ff1a8dc7908964f0497667247697ca64eaa | [] | no_license | prashant-shekhar/phonebook | 5b35d2c60ab9e048dff6622d09e44e214f63b40b | 2798fefe2a986ade2861ce0af6d6084fd5ce448a | refs/heads/master | 2022-07-17T13:27:01.033673 | 2020-05-14T09:15:38 | 2020-05-14T09:15:38 | 263,832,442 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,944 | cpp | upgrade.cpp | #include<stdio.h>
#include<iostream>
#include<fstream>
#include<string.h>
#include<stdlib.h>
using namespace std;
struct node
{
int num;
char addr[30];
char mail[55];
char name[30];
char gender[10];
node*left;
node*right;
} ;
struct node * root = NULL;
struct node * root2 = ... |
8a1b896fba135d3da205eb295800d9ef3b947031 | 75e559ba6b1c64599b2657eb7e4bb2582252e179 | /day4/friend_demo/friend_module.cpp | f81809cf7b07bde89be8c7704adbb4cca31892c9 | [] | no_license | elysium88/10_day_practice | 28038c1452fbbb9e00d81ea996cfcbf7b3663658 | aca2c1fba3337374139f97596f2ea356d5cf8194 | refs/heads/master | 2023-05-13T08:14:01.198274 | 2021-06-10T09:58:37 | 2021-06-10T09:58:37 | 367,218,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | friend_module.cpp | //
// Created by user on 2021/5/18.
//
//使用友元函数计算两点间距离
#include "iostream"
#include "cmath"
using namespace std;
class Point {
public:
Point(int x = 0, int y = 0) : X(x), Y(y) {}
int GetX() const{
return X;
}
int GetY() const{
return Y;
}
friend float Distance(Point &a, Poin... |
b6b954d32e5a1b6574d765d635a78b5487755fdd | 9c04f3814235cee3cb5e24b65a2d8f937734474c | /src/sim.Host.cpp | b33164660a4c1c831ea692e68318ee7bf82ed38e | [
"MIT"
] | permissive | mrc-ide/PlasmoMAPI | c91c427667b67cc9379b077c7c1f86b14a119e13 | 353d1e35cb73ee3db4eb1370682492365669a629 | refs/heads/master | 2021-10-29T16:16:46.000086 | 2020-09-25T14:59:02 | 2020-09-25T14:59:02 | 238,768,522 | 4 | 0 | MIT | 2020-10-18T20:30:59 | 2020-02-06T19:35:35 | R | UTF-8 | C++ | false | false | 10,465 | cpp | sim.Host.cpp |
#include "sim.Host.h"
#include "probability_v10.h"
#include "misc_v9.h"
using namespace std;
//------------------------------------------------
// initialise host
void Host::init(int index, int &ID, int deme,
vector<int> &Sh, vector<int> &Eh, vector<int> &Ih,
vector<vector<int>> &host... |
59e5cdaeba7975e47a9f12f98d5d7955dc3b9d80 | 916109bf168239202442498e568b2bfc9a8bc8a9 | /src/asiUI/salome/QDS_ComboBox.cxx | cf4cb0f7ae6f1438c14c55e5daea694957445823 | [
"BSD-3-Clause",
"MIT"
] | permissive | yeeeeeeti/3D_feature_extract | 35da69cd64cd6ed6c92fd4541da5de7bb96dc2b6 | 6297daa8afaac09aef9b44858e74fb2a95e1e7c5 | refs/heads/master | 2020-09-05T02:27:30.997017 | 2019-11-07T01:24:26 | 2019-11-07T01:24:26 | 219,956,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,838 | cxx | QDS_ComboBox.cxx | // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
baedf8eadefdc887053a927a7126bb0ea60ff917 | a149e9a2d629e98186ca7bdbca19a4f09e44476c | /data-test/tsdv/Sample_for_R1_4/Age.cpp | 63e5b5fa7c78b029127a1ce9cf3cd6caadd3847b | [] | no_license | ducanhnguyen/cft4cpp-core | 4d26f1a0ccfdac6f6d9c85461f945f05a6cc0abc | fef3b04d357b6c5f4b1d5d9805a434afe0917c29 | refs/heads/master | 2020-03-07T21:12:17.405005 | 2018-07-25T00:44:53 | 2018-07-25T00:44:53 | 127,720,351 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,017 | cpp | Age.cpp | #include <iostream>
using namespace std;
/**
Parameter:
- b_w: weight
- he: height
Return list
- UNDERWEIGHT: 0
- Perfect Shape: 1
- OVERWEIGHT: 2
- A VICTIM OF OBESITY: 3
- Out of believeable: -1
*/
int bmi(float b_w, float he)
{
double c;
c = (b_w / (he * he / 10000));
{
if (c < 19) {
return 0;... |
b7dd219272f3e5da22e3769aba8c1cc8c38fd3a3 | 9a8f6d29ac8a4b07918e2abbb1652c8f9fa955fc | /src/tests/ascent/t_ascent_expressions.cpp | cc02fe2d0b3722b39372bb9184f59547eba771f5 | [
"BSD-3-Clause"
] | permissive | jameskress/ascent | d07f05981e5f1324b95cd33f7ac40f42eac53b1f | db799bc1e076b5413607ed45913d4c9c2b7fa421 | refs/heads/develop | 2022-10-02T07:15:55.719452 | 2019-09-18T17:18:28 | 2019-09-18T17:18:28 | 121,414,919 | 0 | 3 | null | 2018-06-19T13:28:03 | 2018-02-13T17:45:46 | C++ | UTF-8 | C++ | false | false | 19,107 | cpp | t_ascent_expressions.cpp | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-716457
//
// All rights reserved.
//
// This file is part of Ascent.
//
// For details, see:... |
366d351cffce292ba64b633731d0996b1311e79b | cc2b07d9e4266efcc830451adfb69b925ec10867 | /OgreMain/src/OgreShadowVolumeExtrudeProgram.cpp | 90900854c1675de8e821abe299debade007510c1 | [
"MIT"
] | permissive | OGRECave/ogre | 74c9c318d95010a3e5fba9709ffebc7e781f27a2 | 15631ca2dd44bd0c925e33411bee05ccac95fc55 | refs/heads/master | 2023-09-04T21:08:30.326815 | 2023-09-02T10:49:34 | 2023-09-02T10:49:34 | 47,069,819 | 3,716 | 1,178 | MIT | 2023-09-14T05:33:08 | 2015-11-29T15:57:03 | C++ | UTF-8 | C++ | false | false | 3,463 | cpp | OgreShadowVolumeExtrudeProgram.cpp | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... |
a254cc1b3d97d0525684546bae89ba40cf2ca418 | 3a9f820da74bb74ce6bc4655e637080b373c9cca | /src/router.h | e92de7d4a307e46ca01ab34bfc087e06638be2ef | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"Zlib",
"CC0-1.0",
"Artistic-2.0",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ICU",
"NTP",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-p... | permissive | akhdrv/nex | 67ba68dab9639303a6f65cbafc5fad9546455ad5 | 91ed66123dc047e7dca684df224a34035318cdee | refs/heads/master | 2022-11-09T22:21:26.525091 | 2020-06-07T19:00:11 | 2020-06-10T02:04:05 | 270,390,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,994 | h | router.h | #pragma once
#include "commonHeaders.h"
#include <node.h>
#include <node_object_wrap.h>
#include "abstractRequestProcessor.h"
#include "middleware.h"
#include "request.h"
#include "response.h"
#include "pathRegexp.h"
namespace nex {
typedef std::pair<PathRegExp, std::shared_ptr<AbstractMiddleware>> MiddlewareConfi... |
3a352bd47d10e7892c1bd33699d443edf8b47fdd | c67f89d49a79c371a42918f6637e44122fcbfa97 | /xr_fish/system/src/ntdll_helpers.cpp | 8602920db922bdbe796b0302658473a19a70754c | [
"MIT"
] | permissive | agandzyuk/xr_fish | 85ca2dc5e29e3387a1acf28d8ed3d4563b5ecf77 | ad4b5ea63e81fe235794f9f0c68ee1f8f7b0300c | refs/heads/master | 2021-01-16T22:06:42.467781 | 2016-06-05T22:43:43 | 2016-06-05T22:43:43 | 60,484,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,402 | cpp | ntdll_helpers.cpp | #include "ntdll_exports.h"
#include "ntdll_helpers.h"
#include "tools.h"
////////////////////////////////////////////////////////////////////////////
#define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC000007B)
#define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002)
/////////////////////////////////////////////////... |
1529e3f0caa0902eadf03140ffbf828bdb9a0981 | d83b01f691ccffb1aa91684bccaa61f4ece535f9 | /src/matrix_tools/csr_tools/csr_tools.cpp | 9497046a151d45a560de356246aa38fd212f0943 | [] | no_license | pvantonov/qnavierstokes | 0eb02c3964af002a6822c54c4f0c33a88d8b8d05 | e9fbf0d30d9b1d22d737a50cbb7e6417cfaaa693 | refs/heads/master | 2023-04-27T17:14:30.373596 | 2023-04-21T09:46:37 | 2023-04-21T09:46:37 | 32,249,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,475 | cpp | csr_tools.cpp | #include "csr_tools.hpp"
//============================================================================================================
//Неполная LU факторизация матрицы.
//============================================================================================================
void csrtools::partFactorLU(int dime... |
65aa1d429ca6f601a4d57499d0fcb51e3b6d5104 | ef668c8c7c8b815de6e66ded7b4f8de22b127e3e | /prototype code/read-thermistor/read-thermistor.ino | bd4b9782a1e64bb73632a9f8a47da9ce761d11cb | [] | no_license | nvanbaak/hottub-replacement | a356df599da75baf169c48cfef401ca7290a6cb1 | 4eafc6e85e302475046b34917369ce361c50928f | refs/heads/main | 2023-07-18T12:18:10.736554 | 2021-09-01T17:16:57 | 2021-09-01T17:16:57 | 395,766,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | ino | read-thermistor.ino | int pinID = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
// Read analog input
int varLog = getTemp(pinID);
delay(1000);
}
int getTemp(int pinID) {
// get input from specified pin
int thermRead = analogRead(pinID);
// normalize analog read as a proportion of 5V
double volts = (thermRead *... |
a9f74b0b663653c21afeff851dbb475e597fae1b | 4d28185e7a78a569f9a449f39f183cac3024f711 | /packages/Python/lldbsuite/test/python_api/lldbutil/process/main.cpp | a490d8f9900b04d86f0121c30609af59611aabea | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | apple/swift-lldb | 2789bf44f648609a1674ee520ac20b64c95de072 | d74be846ef3e62de946df343e8c234bde93a8912 | refs/heads/stable | 2023-04-06T00:28:15.882479 | 2019-10-25T22:46:59 | 2019-10-25T22:46:59 | 44,838,862 | 780 | 291 | Apache-2.0 | 2020-01-10T19:28:43 | 2015-10-23T21:13:18 | C++ | UTF-8 | C++ | false | false | 559 | cpp | main.cpp | //===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
a4e8cae9e67677c74b44d9951852da35e22567bc | c5bdea6c8688a838527bf48e3b2692186a00daae | /SceneBasedGraphics/Atlas.h | 08eb9ab0cd6ea257ea9a2f894d70973e987b668b | [] | no_license | JakeI/GraphicsEngine | 546818073008d69914048d7a1d7b93bad02de295 | da49943eb3dcae93e307a5226043ef2067018e60 | refs/heads/master | 2021-01-17T17:11:37.707062 | 2017-06-19T20:47:34 | 2017-06-19T20:47:34 | 68,299,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | h | Atlas.h | #pragma once
#include "StdAfx.h"
#include "Maths.h"
#include "TextureEx.h"
#include "Mesh.h"
#include "Resource.h"
// Stroes all information about a texture atlas Including it's Texture, the names and
// texture coordinates of the sprites
//
// Texture atlasses are specified using a Path like "res/atlases/XXX"
// ... |
0c23bc8dad2dea402435d53b7d03edd5e3ac03a4 | dc8ad531cb94003c42e5c2fb0370316374840ab7 | /c/Dev c++/helloworld.cpp | 0297b6eca608f9748baf2a60928dd22cb6a5e7d7 | [] | no_license | quirinobytes/codigo-fonte | 655cd1b0f45c6b75c3afbbc0f9ef0d520be3e8b7 | 4250b7e8075cc73d624b873912ccb8df8b6bb65f | refs/heads/master | 2023-03-08T00:47:27.324192 | 2023-02-22T01:31:18 | 2023-02-22T01:31:18 | 85,379,100 | 0 | 1 | null | 2023-03-04T01:06:51 | 2017-03-18T05:52:47 | C | UTF-8 | C++ | false | false | 356 | cpp | helloworld.cpp | #include <stdio.h>
#include <conio.h>
double fib(double);
int main()
{
int num=10;
double resposta;
printf("Digite o valor que deseja saber o fibonati",num);
scanf("%i",&num);
resposta = fib(num);
printf("O fibonati de %d eh = %lf",num,resposta);
return 0;
}
double fib(double i){
if (i == 0)
return 1;
e... |
63bf49b0201d29cdc4e21f8d04e598e78d660282 | 3ffd7e213a53449a081048c6a8fcc1b771435504 | /src/utils/panic.cpp | a0611b653a8c34ecc3e8618edda55be92053239f | [] | no_license | ljt12138/Hyper-OS | ad234497202da7d8903f9a7ae1236812c2a9480e | 8f630334c53d2106d519b53603964a6159a77311 | refs/heads/master | 2020-06-28T21:48:33.409610 | 2019-11-25T13:45:29 | 2019-11-25T13:45:29 | 200,350,719 | 0 | 0 | null | 2019-08-03T08:19:19 | 2019-08-03T08:19:19 | null | UTF-8 | C++ | false | false | 226 | cpp | panic.cpp | #include "panic.h"
#include <cstdlib>
#include <string>
using std::string;
void panic(const string &str)
{
logging::debug << "System Panic. info = " << str << logging::log_endl;
exit(1);
}
void panic()
{
panic("null");
}
|
8e65ba1e7e61e605eacb2d723476c4587c144abe | 4ac881a7480f9eb077b16d7dcb6fcaa48dcf1b78 | /src/mySpring.h | b3d6595de2ae3bcc5150442ac1b1f5adb2e75b16 | [] | no_license | thomasvanta/portPiParticles | 19ec6595816632874e08a01571a7a9ec6b0d1abc | 7d066235aa4cdf609d7acae9174c15ec2a92a178 | refs/heads/master | 2020-04-30T11:00:15.245242 | 2013-06-25T19:17:19 | 2013-06-25T19:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | mySpring.h | /*
* mySpring.h
* portPiParticles
*
* Created by Thomas Van Ta on 23/05/13.
* Copyright 2013 __ThomasVanTa__. All rights reserved.
*
*/
#ifndef MY_SPRING // if this class hasn't been defined, the program can define it
#define MY_SPRING // by using this if statement you prevent the class to be called more
... |
1fe9d93c334b3f045887222ad8dec402dbc8cdde | 26feeb5f34278bc074ec9444179fd54431547463 | /Tanoa-Life.Tanoa/configs/GameConfigs/Config_Taxes.hpp | cea1ca7c73c3292cd9c6d4222a0c512695a1ee6d | [] | no_license | loann25310/Adenis-Full | cf56aa9e77cacbbbb610cf41982e0cdfb09a64a8 | b495809fe38a044c0d642ef40796a354ee5d0755 | refs/heads/master | 2023-04-17T18:53:14.597933 | 2021-04-29T06:43:06 | 2021-04-29T06:43:06 | 331,396,967 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | hpp | Config_Taxes.hpp | class ADENIS_TAXES
{
class gServer_tax_companies_employee_multiplier
{
name="Taxe salariale";
};
class gServer_tax_companies_building_multiplier
{
name="Taxe foncière";
};
class gServer_tax_salary_multiplier
{
name="Dette envers le PTI";
};
class gServer_tax_house_multiplier
{
name="Taxe d'habitation... |
6510048544c4d9e6163d9e9f1551a0b614850056 | 2fff83d018d0b022bab9797c7fb13711b1d9accf | /libutil/version.h | b71501d0ebff85e064b70db282fc9a8899f0f839 | [
"BSL-1.0"
] | permissive | epifanovsky/libtensor | cd0ace467cf77ae8762df078d09116dd9ceaeb61 | 0e82b4f07adf0eb1d6a617d93e9deb6f43d24ede | refs/heads/master | 2023-05-31T14:33:24.385530 | 2021-02-24T20:12:47 | 2021-02-24T20:12:47 | 51,388,786 | 35 | 14 | BSL-1.0 | 2023-04-27T12:24:44 | 2016-02-09T18:30:03 | C | UTF-8 | C++ | false | false | 2,260 | h | version.h | #ifndef LIBUTIL_VERSION_H
#define LIBUTIL_VERSION_H
#include <list>
#include <string>
#include "singleton.h"
namespace libutil {
/** \brief Information about the version and the authors of the utility library
The %version is specified using the %version number and status.
The number consists of a major num... |
c480ce551551ee5ca55428aa96a9ac162790b23f | 602c91338a9907294f8697c359751abf7e8d279b | /LeetCode/575 分糖果.cpp | 33e0db01638629bba66426df6086caf752514136 | [] | no_license | SNland/Algorithms | 69a9d9929ad0d3b042ba1ab75c8c1af18121518f | 7e4a129f8e8157f8d5a124ade120d235447417fe | refs/heads/master | 2020-04-02T00:07:12.202890 | 2018-11-13T08:06:14 | 2018-11-13T08:06:14 | 153,789,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | 575 分糖果.cpp | #include<iostream>
#include<set>
#include<vector>
using namespace std;
int distributeCandies(vector<int>& candies) {
set<int> A;
int i,sum;
sum=0;
for(i=0;i<candies.size();i++)
{
if(A.count(candies[i])==0)
{
A.insert(candies[i]);
sum++;
}
if(sum==candies.size... |
29600d84e8ef1ca95ead2f77f7081fb6d06c64a2 | efe1131a33ee82e7c46b5af4cf200dcae8eb4add | /mfc/SRC/16-BIT/VBDDXF.CPP | a7e5c032f2d2b33b3160afb37368c40e18d16ca7 | [
"BSL-1.0"
] | permissive | ALEHACKsp/dmc | 819398bbb46e8b5a8ef5c344ef2a0f8b4ee8903c | 9478d25a677f70dbe4fc0ed317cc5a5e5050ef8b | refs/heads/master | 2022-12-28T13:36:57.721262 | 2020-10-11T07:47:16 | 2020-10-11T07:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | VBDDXF.CPP | // This is a part of the Microsoft Classes C++ Class Library.
// Copyright (C) 1992-1993 Microsoft Corporation,
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and Microsoft
// QuickHelp and/or WinHelp documentation provided with the... |
86807d0034715f1c84089c12c24945e8bc03d57f | 66a6a9253d9aad734aefec60f786c2dddbfeb8bd | /範例程式/SelectionSort.cpp | ffb5896a0c9ed7c719700c841351e0b7cf037818 | [] | no_license | jtlai0921/ACL0395-example | 6830c6a986ee514516d4628816c6605da3126f98 | db6947637992b53c9893d79cfe64b1b598785f1c | refs/heads/master | 2020-12-21T00:30:04.850975 | 2020-02-03T11:46:41 | 2020-02-03T11:46:41 | 236,254,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | cpp | SelectionSort.cpp | #include <iostream>
using namespace std;
void selectionSort(double [], int);
void printArray(double list[], int arraySize); // function prototype
int main()
{
double list[] = {9, 1, 2, 5, 4, 8, 6};
selectionSort(list, 7);
printArray(list, 7);
return 0;
}
void selectionSort(double list[], int listSize)
{
f... |
8c5a79949107a39c128838f6ea86283c9ddf5c14 | a34c4823469cfe377ae7b012252f1864b6409072 | /002. Многоцветник-35/Программа/01. BlazePoint/BlazePoint_04/Sar4.h | 9eb2ef53b615ca556149bf24b822ac3a7fcd8f1e | [] | no_license | eliasum/2013.03.11-2016.03.11 | 1b6e2afcf3e6f8c4e9d89c233552f0d88730ee00 | 4ca742c24b0403118118b64f148be3c551521478 | refs/heads/master | 2020-09-12T12:09:53.656379 | 2019-11-18T10:21:34 | 2019-11-18T10:21:34 | 222,419,209 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,987 | h | Sar4.h | //---------------------------------------------------------------------------
#ifndef Sar4H
#define Sar4H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//--------------------------------... |
1c5ffaf737ce501cfe0f0dadb4d6e68a5967d348 | 506a0d9e2c55f3a8a6a5e4aec9e4ceae0450bf7e | /interface/rdGenJet.h | 73c97185f01736ed79aa407afa75835651f59df9 | [] | no_license | l-cadamuro/DelphesValidation | baacb4b2e598bcc10ec86d9e14501233857af5df | 6f5c8e9bfbea379c5ebe5a2c80b92688df1037e1 | refs/heads/master | 2020-03-14T23:33:26.074233 | 2018-05-02T12:54:59 | 2018-05-02T12:54:59 | 131,847,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | h | rdGenJet.h | #ifndef RDGENJET_H
#define RDGENJET_H
#include "BaseTree.h"
#include "TChain.h"
class rdGenJet : public BaseTree {
public:
rdGenJet(TChain* ch);
~rdGenJet(){};
TTreeReaderValue<Int_t> GenJet_size = {fReader, "GenJet_size"};
TTreeReaderArray<Float_t> PT = {fReader, "PT"}... |
2486e199947c5ab8e99b85019bf95100ee413dd7 | 29af100c9411446871ee382110acb8178a105c5e | /BLDC.ino | 170ccbb08ee523cf0a4d155ab57c43b316a56e8e | [] | no_license | KevinJo-rollcake/Capstone | 472f1d9474cc6e22fd0e823752c67711384e9e57 | ee377aecc3f3a5eb3366835c0d63d84994559830 | refs/heads/master | 2023-02-22T11:40:37.026677 | 2021-01-26T00:50:38 | 2021-01-26T00:50:38 | 253,181,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,374 | ino | BLDC.ino | //NURI ROBOT
//Arduino Uno
//PWM, Direction, Brake
//V3.
#include <ros.h>
#include <std_msgs/Bool.h>
#include <std_msgs/String.h>
#include <std_msgs/Float32MultiArray.h>
// Define stepper motor connections and motor interface type. Motor interface type must be set to 1 when using a driver:
// 카메라
#define PW... |
c7d37bf4381d826c3c45e0f1a08d1f09280b7f8a | 548ef58ad5c214d29093a56d0fbdaae1242188ef | /date.hpp | 0e85ade75eb5bc5499bc0321bba5e8d364858ce3 | [] | no_license | eugeneyjy/Reservation | 0c61c34d7c9d737783ff29c128ac33376769c78e | f1737919cab91239a2731e1ebd8a1eeadf6541a4 | refs/heads/master | 2023-01-21T02:13:13.566130 | 2020-11-13T07:53:48 | 2020-11-13T07:53:48 | 198,051,004 | 0 | 0 | null | 2019-08-12T15:25:29 | 2019-07-21T12:00:43 | C++ | UTF-8 | C++ | false | false | 1,789 | hpp | date.hpp | /*********************************************************************
** Program Filename: date.hpp
** Author: Eugene Yong
** Date: 07/08/2019
** Description: date structure header file
*********************************************************************/
#ifndef __DATE_HPP
#define __DATE_HPP
using namespac... |
84ecbdab4c50ad9ad63a67074bc453ac61c36fba | b0ed979f05c8c1abae214753790602acb3ce1f97 | /Codeforces/1096A - Find Divisible.cpp | aad2917364af59f715c724414bb0a5ba91957220 | [] | no_license | r-d-s-l-w/competitive-programming | 1304d591b9c28390fcf2ceaa5f86aa8274efb41c | 21322d69ceed314135aeb6bbf3ec91ee70bc4f5b | refs/heads/master | 2022-11-24T10:07:06.720420 | 2020-08-06T11:25:58 | 2020-08-06T11:25:58 | 238,414,061 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | 1096A - Find Divisible.cpp | /// Radek Mysliwiec 2018
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define ALL(x) (x).begin(),(x).end()
#define endl '\n'
#define DEBUG(x) cout << '>' << #x << ": " << x << endl;
using ll = long long;
using l... |
9198e27c77502e22e6ef529297b89acc8a764b9b | b9b28f4877f6bdce880ff39da580762447143122 | /include/world/Point.h | 286ceaaf0d94c0d3516a4733360f316b576f7679 | [] | no_license | BrychDaneel/WgForgeTrains | 33a0bc373366d329a8ccc0f7b045272ebe89cab9 | e94b752684cc658fdeca83bdfb8ca927391dd7d4 | refs/heads/master | 2021-09-01T12:00:26.814586 | 2017-12-26T21:35:30 | 2017-12-26T21:35:30 | 111,832,154 | 2 | 0 | null | 2017-12-11T22:40:58 | 2017-11-23T16:45:43 | C++ | UTF-8 | C++ | false | false | 720 | h | Point.h | #pragma once
#include <world/World.h>
#include <models/PointModel.h>
#include <vector>
namespace tiger
{
namespace trains
{
namespace world
{
class World;
class Line;
class IPost;
class Train;
class Point
{
private:
World *owner;
int idx;
int x = 0;
int y = 0;
public:
Point();
Point(... |
59b1755d51674e7445357171486ba5d5f83de3ed | e4ee9fc82be401f559a81d15522493c5f690544d | /GUI/MenuItem.cpp | 2f03e228a4da11c0028166a3ce27d28423a4508a | [] | no_license | ammar-nasser/paint-for-kids | f6a37447bc90e30b7236b816c7281826057092ea | 797632f8b34db792faf6fba4563f39d00fc62a34 | refs/heads/master | 2023-05-25T20:09:44.426423 | 2021-06-13T16:39:41 | 2021-06-13T16:39:41 | 371,063,358 | 1 | 0 | null | 2021-06-11T17:01:06 | 2021-05-26T14:28:31 | C | UTF-8 | C++ | false | false | 680 | cpp | MenuItem.cpp | #include "MenuItem.h"
int MenuItem::counter = 0;
const std::string MenuItem::BasePath = "images\\MenuItems\\";
MenuItem::MenuItem(int fName)
:
fileName(fName),
state(MENU_ITEM_STATE::NORMAL)
{
std::cout << "LOG" << counter++<< ": MenuItem Inialized succesfully" << std::endl;
}
std::string MenuItem::getPath()
{... |
8ab84125ee53668e86f356c7f7796553aa67db52 | 1bd9e3cda029e15d43a2e537663495ff27e317e2 | /buoyantPimpleFoam_timevaryingBC/timevaryingCavityFoam/86/p | ed29cdee6733b3722bf7782e6a4c876d54f5e1ac | [] | no_license | tsam1307/OpenFoam_heatTrf | 810b81164d3b67001bfce5ab9311d9b3d45b5c9d | 799753d24862607a3383aa582a6d9e23840c3b15 | refs/heads/main | 2023-08-10T23:27:40.420639 | 2021-09-18T12:46:01 | 2021-09-18T12:46:01 | 382,377,763 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665,046 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
8181b77185158296f986f80c452da2642b06c3ee | 25eb1d12520fa5ace5ba3e7ffc414abb25c72017 | /Trajectory Generator/PathGenerator.cpp | a1458ec1450a47d265b5f6133f3bcd6d3892f407 | [] | no_license | jai17/DriveSimulator-Backend | 09d545c63888e7ab493fd9cb0549f1d17c1232f6 | 053fd2259a808d305e0aa567bd4e413c4df792c3 | refs/heads/master | 2023-02-11T20:37:25.243445 | 2021-01-04T15:18:28 | 2021-01-04T15:18:28 | 326,324,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,937 | cpp | PathGenerator.cpp | #define _USE_MATH_DEFINES
#include "pch.h"
#include "PathGenerator.h"
#include <vector>
#include <cmath>
#include "Position.h"
#include "QuinticSpline.h"
static unsigned long long previous_; // Previous value, if any
static unsigned long long current_; // Current sequence value
static unsigned index_; ... |
d46c42b7b559cdfb2d6e82385bac679787a8755c | b5fcecf7ae3087236f9cf4a474c87760d90c7867 | /include/HashValue.h | a8731b51b30faf09f8ae4f12918d2bc0b04c95ab | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cwestin/phoenix4cpp | 6afc5fcfd7f91e55eb1c02848d08a1e70e00783d | 6a8ec7024b9f7da1390b870f1e60b8f81f5caedd | refs/heads/master | 2016-09-05T16:47:45.213775 | 2012-03-03T17:36:04 | 2012-03-03T17:36:04 | 1,886,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,797 | h | HashValue.h | /* Copyright (c) 2011 Chris Westin. All Rights Reserved. */
/*
NAME
HashValue - utility class for computing hash values
Often used with the Hashable interface
SOURCE
phoenix4cpp - https://github.com/cwestin/phoenix4cpp
LICENSE
See ../LICENSE.txt.
NOTES
Unlike Java's Object.hashCode(... |
7feaf2ac0ef5d7030bd4aef2a1b7a79010ab1fcc | cff36093de78fbddc5d579fa3a25c7c66aa23998 | /Table.cpp | 06dee1beb5de461b725039fd564dcdd6743d6661 | [] | no_license | barPerlman/Restaurant | d8d79eedbe31a60c4c3025716c64679a2a38843b | 5833ac4102ec19ada58c56a3a61601c9d684bc13 | refs/heads/master | 2020-04-04T15:20:39.905816 | 2018-11-19T11:04:40 | 2018-11-19T11:04:40 | 156,033,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,673 | cpp | Table.cpp | #include "Restaurant.h"
#include "Table.h"//
// Created by barper on 11/3/18.
// The following classes are implemented in this file:
//Restaurant,Table,Dish
//
#include "Restaurant.h"
#include <iostream>
#include "Dish.h"
#include "Customer.h"
#include <string>
#include <fstream>
using namespace std;
////////////////... |
d208577c8588e14d19efef29c06b88a9bfb7a219 | ab287bde9fd3d2d5941f6c89cec2f6fcc6802ac3 | /project/src/layers/Conv2D.cpp | d38dda836ed9f0ed5a9060d99a81f1499cfe41be | [] | no_license | hughsando/numerix | 99d792f7d5f9555ef9955b093955121c6342387d | 624778eae1d376556af70e7e4ca0513d89e9f68a | refs/heads/master | 2021-09-08T01:35:47.999508 | 2018-03-05T09:28:49 | 2018-03-05T09:28:49 | 110,207,672 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 49,625 | cpp | Conv2D.cpp | #include <Tensor.h>
#include <Layer.h>
#include <Ops.h>
#include <NxThread.h>
#include <stdexcept>
#include <algorithm>
namespace numerix
{
// ----- Conv2DBase ---------------
Conv2DBase::Conv2DBase(int inStrideY, int inStrideX, bool inIsDeconvolution,
Activation inActivation, Padding inPadding,
Tensor... |
c09078296ea0af52dd1ad5631809ad0361eedd38 | 1f4033e4172a7bc29608eb4070eca7a8bdf530f1 | /warped/src/warped/SequentialSimulationStream.cpp | 807787f6775108c109d193d22475b095fec718b8 | [] | no_license | joerocklin/pdes | 4dd84b5ce4b354d35ffb21a2b254b94db25cb1f2 | b5d7596b0a0ff903a41cf1d2b932cf8b0afbacb3 | refs/heads/master | 2022-08-30T18:42:19.605727 | 2013-04-30T01:49:21 | 2013-04-30T01:49:21 | 4,184,954 | 0 | 0 | null | 2022-08-15T11:41:03 | 2012-04-30T17:11:49 | C++ | UTF-8 | C++ | false | false | 1,224 | cpp | SequentialSimulationStream.cpp | // See copyright notice in file Copyright in the root directory of this archive.
#include "SequentialSimulationStream.h"
using std::cerr;
using std::endl;
using namespace warped;
SequentialSimulationStream::SequentialSimulationStream(const string& fileName,
ios:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.