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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
118b9b458dfa7e6b9d11d601a963423f4d7947f5 | 773ca68637b63fc71c037d9b1f194bfe0356b83d | /src/com_heap_ptr.cpp | 3a41b54da76f8852c083b5b3320d9d7692c4dc49 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mbeckh/common-cpp | 7943a4c0cb4816a4c427e1e62a1bc4ab75c58510 | ae9bb27be9bcfbcf0db4ee88dfc18c9fdffef7bc | refs/heads/master | 2023-01-29T12:16:45.834384 | 2023-01-15T02:03:13 | 2023-01-15T02:03:13 | 175,822,125 | 4 | 0 | Apache-2.0 | 2023-01-15T02:03:14 | 2019-03-15T13:08:32 | C++ | UTF-8 | C++ | false | false | 1,531 | cpp | com_heap_ptr.cpp | /*
Copyright 2021 Michael Beckh
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... |
30a8cea146211d8ba591168391ee0ff2ff468097 | 5db2e91762f3726aed4a248fed2b0ed68e734959 | /cppPrime/objectOrientedProgramming_c17/test_01.cpp | 031fd6e46114e95a7e781d66b9270da038a095d5 | [
"Apache-2.0"
] | permissive | ilvcr/Cpplgproject | ad93147a4a7f70645baf0ecd73f1b498b0c993e0 | d3dc492b37c3754e35669eee2dd96d83de63ead4 | refs/heads/master | 2020-03-21T05:57:56.021868 | 2018-08-04T14:24:32 | 2018-08-04T14:24:32 | 138,190,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,562 | cpp | test_01.cpp | /*************************************************************************
> File Name: test_01.cpp
> Author: yoghourt->ilvcr
> Mail: liyaoliu@foxmail.com @@ ilvcr@outlook.com
> Created Time: 2018年07月23日 星期一 19时34分37秒
> Description:
************************************************************************/
#inclu... |
f8925929f038b4affd6753ebdb5048faca2ba28e | 40525c30da6c26a1cbbc46c7cd64977bb1e25233 | /desktop/src/gui/preferences/preferences.cpp | 97256f6b9e5656a379b66039165abd4b42e0cc82 | [] | no_license | seung-lab/omni.play | e17f5c977c9458a71062c1383d63baedf8ef6458 | a4f1220e9df499f05457aaaee5bc68c2b66d4d54 | refs/heads/master | 2021-03-24T12:36:23.997379 | 2016-08-11T15:09:01 | 2016-08-11T15:09:01 | 3,678,095 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | cpp | preferences.cpp | #include "system/omConnect.hpp"
#include "preferences.h"
#include "preferences3d.h"
#include "preferences2d.h"
#include "localPreferencesSystem.h"
#include "localPreferencesMeshing.h"
#include "localPreferences2d.h"
#include "localPreferences3d.h"
Preferences::Preferences(QWidget *parent) : QDialog(parent) {}
void Pr... |
e0f8baf96d38a041230d640831c3f5f19a2eebfd | f999711a794bd8f28b3365fa9333403df179fd90 | /hust C语言学习/网上作业/1st/1.cpp | 45936335d8686fca49e315810441eadf90a02160 | [] | no_license | Hanray-Zhong/Computer-Science | 2423222addff275e5822a1390b43c44c1b24a252 | dfea9d3ee465c36a405e50f53589bdacbd6d2ae2 | refs/heads/master | 2021-07-04T21:35:43.730153 | 2020-08-07T09:56:58 | 2020-08-07T09:56:58 | 145,799,254 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 190 | cpp | 1.cpp | #include <stdio.h>
int main()
{
int i=1,s=0;
while(i<=100)
{
s=s+i;
i++;
}
printf("The answer is:%d",s);
getchar();
return 0;
}
|
70a5d7313a68ec156bb1f667adfce768b775b29b | cb7f5e7f668cd46a496b93e741bbfefe8fca2b2f | /ZOJ1602(AC).cpp | e48935d2aa3053fd68407dfd53888d39c956d757 | [] | no_license | ee08b397/zoj | ae6c80fcb1acc2db470d300d675188166e75b420 | 760865a44457ebffa416949e93a5009522f7f344 | refs/heads/master | 2021-01-18T03:02:40.584528 | 2015-03-22T17:09:56 | 2015-03-22T17:09:56 | 43,004,404 | 1 | 0 | null | 2015-09-23T14:00:21 | 2015-09-23T14:00:20 | null | UTF-8 | C++ | false | false | 793 | cpp | ZOJ1602(AC).cpp | #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int a[105];
int f[105][105];
int n;
int main()
{
int i, j, k;
int tmp;
while(scanf("%d", &n) == 1){
memset(a, 0, 105 * sizeof(int));
memset(f, 0, 105 * 105 * sizeof(int));
for(i = 0; i < n; ++i){
... |
d904ecf5df0dad914a0543e541608b168e3a6233 | 2d668bd2fd7c552b99d8848d5624e1f916bc2ab3 | /ALGORITHMS/Graphs/ConnectedComponents/MyAlg.cpp | 1c80d6147b6698ec94ffd8a7b4c311147fb59770 | [] | no_license | IPGG/PrepOJI2020 | 1f20f9a94ff1f383e26045bc78ff29d5e50b323c | 4dd6d1bebfd956f48d224138a3ff449172ddf3e1 | refs/heads/master | 2022-11-19T15:37:38.758645 | 2020-07-19T09:51:40 | 2020-07-19T09:51:40 | 280,836,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,475 | cpp | MyAlg.cpp | #include <bits/stdc++.h>
using namespace std;
ifstream fin ("Data.in");
vector <vector <int> > Graf, Componente;
vector <bool> vizitate;
int n, m, CurrentIndex = 0;
void AddEdge(int a, int b) // pentru grafuri neorientate
{
Graf[a].push_back(b);
Graf[b].push_back(a);
}
void Read()
{
fin >> n >> m;... |
abcf3e674eaa26b21de8c1064e570eb3c16430fa | f80a71a58c3166a6230f76868034632ccd46a68f | /DNS.cpp | a788571330f092512c7cd7bf205ae2d8b36b4194 | [] | no_license | scale/scale-emkt-cpp | e7f91ce9995b14d455b8ad99ba8978b0b994f5a9 | 95064d8bb2624ff8df1655c7921817def79fce38 | refs/heads/master | 2020-04-10T12:20:32.920817 | 2016-01-19T15:02:11 | 2016-01-19T15:02:11 | 620,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,946 | cpp | DNS.cpp | /*
* DNS.cpp
*
* Created on: 21/10/2010
* Author: Flavio
*/
#include "DNS.h"
DNS::DNS()
{
}
DNS::~DNS()
{
}
bool
DNS::GetMX(std::vector<string>& adds, const std::string& domain)
{
adds.clear(); // be safe in case of my utter stupidity
sockaddr_in addr;
addr.sin_family = AF_INET;... |
cdfc7349b9cd87087b92c2004f17d5682d3f490e | a3c2b8e59db2761a68cd81431ef0f43b07629e7f | /Source/GameEngine/Graphic/Scene/Element/Particle/ParticlePointEmitter.cpp | 609d551d65cd4855638eb5c46524863adad52eff | [] | no_license | enriquegr84/GameEngineTutorial | 13eeae4b8c65cf94254c4cb7f879f52614fed185 | dd6507839a34746dc9b25d28c879f180c62eaab8 | refs/heads/master | 2021-08-23T09:35:28.257239 | 2021-08-06T16:52:38 | 2021-08-06T16:52:38 | 83,200,106 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,107 | cpp | ParticlePointEmitter.cpp | // Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "ParticlePointEmitter.h"
#include "Graphic/Renderer/Renderer.h"
#include "Graphic/Effect/Material.h"
#include "Core/OS/OS.h"
#include "Gr... |
45152116001ebba4ab5fdc1b6f89e3578ff748e0 | aa4b0543b60e90d23e5cfa39d07abb38b8aa323b | /DS队列--银行单队列多窗口模拟/DS队列--银行单队列多窗口模拟.cpp | 14680093a21a5b8354f03f5e8d37abdadd81864f | [] | no_license | wudada-star/dataStructure | bd46dff5e3d43c46cc79aae78cd8d74e146f1161 | 1ba0265684e775ccd8510d6ed0ed045fe4d7b5e4 | refs/heads/main | 2023-04-26T08:06:24.568760 | 2021-06-05T16:27:47 | 2021-06-05T16:27:47 | 374,162,736 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,093 | cpp | DS队列--银行单队列多窗口模拟.cpp | #include <iostream>
#include <queue>
#include <iomanip>
#include <string>
using namespace std;
class customer {
public:
int arr_time, use_time;//用类来存放数据
customer(int ct, int ut) {//有参构造
arr_time = ct;
use_time = ut;
}
};
class service {
public:
bool busy;//判断窗口是否空闲
int finish_time;
service() :busy(0), finis... |
202c55102fdd311303b64a16339e9e7f19caf1f9 | 1f317951a34aabe73d1354f569339f24ef984db0 | /PIR/PIR.h | bb3c0051a6742a449f27d84c93efa55fdf4824df | [] | no_license | jld1173/PIR | 311d4111c44e461cd208834d0ba1d6bf723e36d9 | 2afa3f8458c856f4242a12b49ffd42cfeadd34f8 | refs/heads/master | 2020-12-11T03:53:49.475017 | 2014-01-19T08:21:00 | 2014-01-19T08:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,181 | h | PIR.h | /* PIR.h
// Abstract:
// This code was written in order to allow a user to control a
// passive infrared sensor with ease. This library will allow
// the use of a PIR class
//
// Within the class the user can:
// * Declare the pins of the pir sensor
// * Prepare the micro controllers pins for the sensor
// * Rea... |
753bf5f333cda15f005fef304aded406b99a8d7d | 6ebf8469e07b45b49be866f7f333cd4e3e46ed84 | /viewer/GenViewer.cpp | b493631f61ff0d37bd7adb049acf3049ccd51681 | [] | no_license | 15831944/vltest | 21086ddc754ca50d347b4eb202afd86913f50081 | d2e203f8ba92aee09069f705dd33595d8b884bf4 | refs/heads/master | 2022-01-27T06:43:52.130539 | 2013-08-28T07:58:20 | 2013-08-28T07:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,238 | cpp | GenViewer.cpp | // GenViewer.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "GenViewer.h"
#include "MainFrm.h"
#include "GenViewerDoc.h"
#include "GenViewerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#if defined(... |
8dd45a4b59c0250a40ad6855e9da39914eb01002 | 9d6f03dfc470a4de331f7c92eccbdb55d94df861 | /CountDigit.cpp | e6d7cc8833655c70133c6d8fc23e660bbed21f76 | [
"Unlicense"
] | permissive | Selenium/Awesomesfunc | c648ddfc95b1148a13f8080d8aa6931778e6a7c2 | b33631d37a2a2bbc3c0afe5292e98357d6111f65 | refs/heads/main | 2023-08-11T21:48:32.204937 | 2021-10-04T08:18:20 | 2021-10-04T08:18:20 | 301,400,169 | 0 | 1 | Unlicense | 2021-10-04T08:18:21 | 2020-10-05T12:24:06 | C | UTF-8 | C++ | false | false | 739 | cpp | CountDigit.cpp | #include <bits/stdc++.h>
using namespace std;
// Complete the findDigits function below.
int findDigits(int n) {
int d=0,cnt=0,tp1=n;
vector<int> c;
while(n>0){
d= n%10;
n = n/10;
c.push_back(d);
}
for(int x: c){
if(x==0) continue;
if( tp1%x ==0) cnt+... |
d9c5785a9a0b64c063401019422dbf4546c974f8 | 385cfbb27ee3bcc219ec2ac60fa22c2aa92ed8a0 | /Tools/MedusaExport/max9/include/CS/Biped9Api.h | ae3e1f1ccbd0fa52ce817d1161087b2b0d3d5d81 | [
"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 | 4,812 | h | Biped9Api.h | //**************************************************************************/
// Copyright (c) 1998-2006 Autodesk, Inc.
// All rights reserved.
//
// These coded instructions, statements, and computer programs contain
// unpublished proprietary information written by Autodesk, Inc., and are
// protected by Federal cop... |
f1ee61f6b82e3d3aa02f30fcf5c4e6b2922161db | 11620f1913dbad7162bfcd3f5db529ffd673a62c | /LayerGame.h | 0d8b58773aa238a41bbf609b9a653e9204be911c | [] | no_license | pashonic/Contris | 95a20277ce85687ace4cdf6817cc85c4864e2793 | b1a7c6f32f26d8901ac6b31f762e37f825c56210 | refs/heads/master | 2021-01-19T21:47:15.573795 | 2012-09-20T06:47:48 | 2012-09-20T06:47:48 | 3,549,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | h | LayerGame.h | // Contris Copyright (C) 2009 Aaron Greene
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This p... |
93e4a928623e1dd01b9a501ae707c325be86e304 | bc2b782ffe81cf7f9ec1ffc18bea256c436ebf83 | /src/unit_test/switching/sai_fdb_unit_test.h | 58ce18bd65eec0b3144af496125108ea907c068b | [
"Apache-2.0"
] | permissive | Dell-Networking/sonic-sai-common | 2c7b28fa56d92ac252eb24d4d60152f8c752e56d | 0ad86ab7f29732d318013e55fe11e7197c7c1246 | refs/heads/master | 2021-01-18T10:18:36.583933 | 2016-10-27T17:34:10 | 2016-10-27T17:34:10 | 65,057,420 | 1 | 4 | null | 2016-10-27T17:34:10 | 2016-08-06T00:34:01 | C++ | UTF-8 | C++ | false | false | 4,935 | h | sai_fdb_unit_test.h | /*
* filename: sai_fdb_unit_test.cpp
* (c) Copyright 2015 Dell Inc. All Rights Reserved.
*/
/*
* sai_fdb_unit_test.h
*
*/
#ifndef __SAI_FDB_UNIT_TEST_H__
#define __SAI_FDB_UNIT_TEST_H__
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "gtest/gtest.h"
#include "inttypes.h"... |
51dc6e1b2bfb5aaa05df09a7e8f8d9183d0dca76 | de6e12cfd3d8206659bcf12b3cf5824a456365e8 | /CSacademy/71A.cpp | f7f3e47068214b8e0c2c582e5c6e83590358883c | [] | no_license | NitinSundar/Comp | 15d443f1f9d16f230f43af677c14d973eae81b25 | 639f35a7a58ae045964e4090246f363ed6d33a05 | refs/heads/master | 2020-06-13T09:28:47.579817 | 2019-07-24T16:12:07 | 2019-07-24T16:12:07 | 194,613,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | 71A.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long int lli;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
int main()
{
string s,ans;
cin>>s;
int count = 0;
for(int i=0;i<s.size();i++)
{
if(s[i] == 'B')
{
if(count)... |
c64d8f966ea043f34e1d955a86ae7d0684125c6e | 516d5d1359912f5a69e0bd55f508defbdbeb189a | /vaild.cpp | a664a0a0e3df38febe2a14c2ff193f903f9ebc0d | [] | no_license | ccheung62/fall-2020-135-lab-02-ccheung792423 | ab562628121aaa5a4bb3276e6a4498a14ebf3b42 | 2cdb5d0b2c227fd39354ac3b919a39ce1dd55ccc | refs/heads/master | 2022-12-19T04:38:25.333633 | 2020-09-05T19:28:49 | 2020-09-05T19:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cpp | vaild.cpp | /*
Author: Cheuk Lam Cheung
Course: CSCI-135
Instructor: Mike Zamansky
Assignment: Input validation, Lab2A
Sample Input/ Output:
$ ./valid
Please enter an integer: -10
Please re-enter: 1200
Please re-enter: 100
Please re-enter: 7
Number squared is 49
Write a program, which asks the user to input an integer in the ra... |
7720735577130b2508823e56c62c43a58c831b90 | 9e770caf5e0c1dd66f382a37657fe1e2a7d77b4e | /cheat/gmod/IVRenderView.hpp | 6af0b478fb118870ab6c2b8ec9b5bc5692984f06 | [] | no_license | canedoly/moneybot | d8147113c0e18269749be01d60c809738d558f20 | a0036af4eb285291b52389d0881f51d138c01bf9 | refs/heads/master | 2023-05-31T08:14:23.706400 | 2021-06-17T20:29:44 | 2021-06-17T20:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | hpp | IVRenderView.hpp | #pragma once
#include "util.hpp"
class IVRenderView {
public:
void SetBlend( float blend ) {
return util::get_vfunc< 4, void >( this, blend );
}
float GetBlend( ) {
return util::get_vfunc< 5, float >( this );
}
void SetColorModulation( float const* blend ) {
return util::get_vfunc< 6, void >( this, blend ... |
fc6c313a2fe0835d9e2fb82027c3a177b869ae39 | c65cea3829756f4c466c548632c802ed0da9d710 | /SpaceShip.hpp | 1e109ebafb6667572a604974b0b050f16507c9e5 | [] | no_license | bonewell/spaceGame | 4c40b1670a2a13f5a665e743c6adc1cc36247204 | a6c6da676dd2cc9c1b3b38061389e8cbf4e571e7 | refs/heads/master | 2023-06-23T03:07:30.564647 | 2019-05-19T15:14:11 | 2019-05-19T15:14:11 | 183,025,768 | 0 | 0 | null | 2019-04-23T13:52:56 | 2019-04-23T13:52:56 | null | UTF-8 | C++ | false | false | 4,492 | hpp | SpaceShip.hpp | #ifndef SPACESHIP_H
#define SPACESHIP_H
#include "SDL2/SDL.h"
#include <functional>
#include <vector>
#include <iostream>
#include <chrono>
#include <time.h>
#include "speed.hpp"
#include <utility>
#include "colorschema.hpp"
#include "common.hpp"
#define BLOCK_SIZE 5
#define POINTS_COUNT 4
#define ASTEROID_POINTS_COU... |
499b743cdd2fa6704a9c163e2c1390dca260f708 | 49a260a0d0505502ffeb89ec16464fc2fb16ac81 | /PacketSystem/EDC/NoEDC.cpp | 8db4acacc1bbc33828f7fe876f9ba78077bc0d21 | [] | no_license | Grundplatte/SensIO | 3f5021fcc8ce464cfc6eb860f1221fcc302e6f20 | 138c218514d69cf91980b9d866e5d6c841a023eb | refs/heads/master | 2021-03-19T18:11:58.858887 | 2018-04-26T12:02:09 | 2018-04-26T12:02:09 | 111,683,261 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cpp | NoEDC.cpp | /**
SensIO
NoEDC.cpp
Dummy class used to disable the EDC feature.
@author Markus Feldbacher
*/
#include <cstring>
#include "NoEDC.h"
NoEDC::NoEDC() {
std::shared_ptr<spdlog::logger> log = spd::get("NoEDC");
_log = log ? log : spd::stdout_color_mt("NoEDC");
}
NoEDC::~NoEDC() = default;
int... |
8452127f7ce3355f89492ca508a83be90eddc084 | b28f5283e0a94959d7660b3c7e9aa5084b7cd7b4 | /cpp/user/src/mqtt_client.cpp | 0be253bf43dcc9260ecb15175491cae6e796e630 | [
"Apache-2.0"
] | permissive | PetarZecevic/smart-farm | 394707e05e4b1f7249ea9ab561878fbd79fa1080 | d118e30cfdaacf75969013c25cd732e31a9345f0 | refs/heads/master | 2022-03-26T13:40:10.813991 | 2019-12-16T19:09:54 | 2019-12-16T19:09:54 | 173,470,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,574 | cpp | mqtt_client.cpp | #include "mqtt_client.hpp"
#include <ctime>
MQTT_Client::MQTT_Client(std::string userId, std::string gatewayId, std::string brokerAddress):
userId_(userId),
gatewayId_(gatewayId),
brokerAddress_(brokerAddress),
mqttClient_(brokerAddress_, userId_),
cb_(*this)
{
mqttClient_.set_callback(cb_);
... |
92620a4144e57f8fc7a7d8e50609c54cd220f206 | 658fee19b6f52ef2da83148a8c9c740542022dbc | /object/Pair.hpp | 99ea9e09b46f2e058affe81eb3c966a3c9dcea83 | [] | no_license | cout/px | a8edcb2b70fa674a70b98a008c04ea4855fe0c47 | 5d77805fac38e3dd6278b97c69efa5ae1f56b448 | refs/heads/master | 2021-01-19T10:12:14.537135 | 2011-12-22T18:28:35 | 2011-12-22T18:28:35 | 1,601,006 | 18 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | hpp | Pair.hpp | #ifndef PAIR__HPP
#define PAIR__HPP
#include "Object_T.hpp"
#include <utility>
class Pair
: public Object_T<std::pair<Object, Object> >
{
};
#endif
|
bbff22daa1a9ef76631b7931356afa3dda4dcc6b | 36553c432137b5790887aa98df99fbda3f2bd9f1 | /src/Sprite.cpp | 5739945ece966837b315d7b4a6bfb92712e27b88 | [] | no_license | Moskoman/1008 | fd9fb37b52d4d1eae372b017cf17b785ff365e8e | ba6c4727f56a04835948e3a3fa495b96d227b4e9 | refs/heads/master | 2021-01-18T19:15:32.322080 | 2017-08-29T02:43:58 | 2017-08-29T02:43:58 | 100,528,381 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | Sprite.cpp | #include <iostream>
#include "Sprite.h"
//Constructor
Sprite::Sprite (SDL_Surface *sprite){
setSurface (*sprite);
};
void Sprite::setSurface (SDL_Surface &sprite){
this->sprite = &sprite;
}
|
d9e3e5f18a0469231966223266c9a5d97b8e3795 | 2f1e54e6e62e3d9d78d0ba98421ed19c7d54af73 | /MultiThread/SemaphoreImplementation/semaphore.cpp | 48025edc7dd14eb287002349e29688d7abb65e8e | [] | no_license | Isaac-T-Hill/code-samples | b46d38696cf3e3f261cb1acfe1c66531ffe06620 | c8229f827675e10d8197e6757a9cdb6bbecb4929 | refs/heads/master | 2022-11-17T23:32:28.155981 | 2020-06-25T22:30:25 | 2020-06-25T22:30:25 | 275,023,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | semaphore.cpp | /******************************************************************************/
/*!
\file semaphore.cpp
\author Isaac Hill
\par email: Isaac.Hill@digipen.edu
\par DigiPen login: Isaac.Hill
\par Course: CS355
\par Assignment #2
\date 2/11/2020
\brief
This is the Implementation file for a semaphore using... |
1780f223608bd371688dc5a5ddb5f3afc8baca16 | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /aegis/src/model/CreateOrUpdateGroupRequest.cc | 1c67778e661acb70e0c17e8568c1e3eaaa981b8e | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 2,601 | cc | CreateOrUpdateGroupRequest.cc | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
263dcfca82a792c766258b788f2d8858a2228360 | 6ecdac378d5d9dbfd9c4336344fbb6fe58effc91 | /src/rm/RM_FileScan.cpp | 33a0c23a8aaca928aec9671c6702f767a33e5ae7 | [] | no_license | BestInternDeveloper/MyDB | 3f06a540a2a91c0d9cb19e7757184c059d415214 | 7e355398e8be089e2674fbad0fb12211432a22dd | refs/heads/master | 2020-04-26T23:51:28.230839 | 2019-01-13T12:19:13 | 2019-01-13T12:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,158 | cpp | RM_FileScan.cpp | //
// Created by Zhengxiao Du on 2018/10/29.
//
#include "RM_FileScan.h"
#include "RM_FileHandle.h"
#include "../pf/pf.h"
#include "../parser/Expr.h"
int
RM_FileScan::openScan(const RM_FileHandle &fileHandle, Expr *condition, const std::string &tableName) {
_file_handle = &fileHandle;
_condition = condition;
... |
4ae02a3e3b54e7baf94a3318ef21bb6c330d6bf4 | a870a869edfefd3ccc00aee16dcdb58978328476 | /PdeFiniteDifferenceSolverManager/PdeInputData1D.h | 226ab9634486f78996dffcdaa3716b14124977da | [
"MIT"
] | permissive | jifeixu/PdeFiniteDifferenceSolver | 6f88ff2facf5ad233dfc1d3acd764d90650a13aa | 203df5c5e5370acc1a19d2a281c6baec3f672ff4 | refs/heads/master | 2020-05-20T18:52:31.442006 | 2018-07-22T13:22:34 | 2018-07-22T13:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,725 | h | PdeInputData1D.h | #pragma once
#include <Vector.h>
#include <ColumnWiseMatrix.h>
#include <Tensor.h>
#include <FiniteDifferenceTypes.h>
#include <PdeInputData.h>
namespace pde
{
template<MemorySpace memorySpace = MemorySpace::Device, MathDomain mathDomain = MathDomain::Float>
class PdeInputData1D : public PdeInputData<BoundaryCondit... |
48036a4188557c33d4c394f8c1c19079c5a8ddee | 54b1be394eaa23a14cfbcc686b00ed287b001a17 | /src/gb/gbCartData.h | bd99f5e747357502d003fdc9ed00d8f1d451e494 | [] | no_license | visualboyadvance-m/visualboyadvance-m | d39353624814dcaddf45b23ca888e4588adb1289 | 803ab35269a9c5c66f3c910be7f6f3cdb6d5290d | refs/heads/master | 2023-09-04T09:44:20.726135 | 2023-08-27T22:46:12 | 2023-08-28T00:08:09 | 37,228,563 | 3,306 | 477 | null | 2023-09-11T04:14:47 | 2015-06-10T23:43:02 | C++ | UTF-8 | C++ | false | false | 6,567 | h | gbCartData.h | #ifndef VBAM_GB_GB_ROM_H_
#define VBAM_GB_GB_ROM_H_
#include <cassert>
#include <cstdint>
#include <string>
class gbCartData final {
public:
enum class RomHeaderType {
kOldLicenseeCode,
kNewLicenseeCode,
kInvalid,
};
enum class MapperType {
kNone,
kMbc1,
kM... |
891c0bdaa7cb912eec6bfe5f1ae4e9a2887b7b17 | 9569143eb804b22fa09d839b3e4cac7ccc4e4c76 | /SecKeyServer/src/RespondCodec.cpp | 7a3a50d22ecf3e74f6eddf3ffcefe6ee4adcc6cd | [] | no_license | Geroge-W/SecureTransferPlatform | dd730d838ff66f98c686a73daa348d4358d84248 | 7194dba8327cea43aef000f64627cfe8fa7dc65f | refs/heads/main | 2023-07-20T17:09:52.384986 | 2021-08-26T08:12:03 | 2021-08-26T08:12:03 | 400,938,928 | 9 | 0 | null | 2021-08-29T03:10:25 | 2021-08-29T03:10:24 | null | UTF-8 | C++ | false | false | 1,070 | cpp | RespondCodec.cpp | /*************************************************************************
> File Name: RespondCodec.cpp
> Author: lbw
> Mail: 296273803@qq.com
> Created Time: 2021年08月07日 星期六 12时11分04秒
************************************************************************/
#include <iostream>
#include <string>
#include "Respo... |
1a29394d45999c07676d6d25aa5c207d597b52a8 | faffb91d5b65e4b7884f49706afc1157def5f674 | /sequential_container/set.cc | 027b3fb0ccff9530c70d1355f57ae1e24d930bc2 | [] | no_license | NorwayLobster/mySTL | b3c84cf9af69246c386c1095f6a2edba74cf83f0 | e058eedb69af583b3e2e02b7d9a2501186a87d93 | refs/heads/master | 2023-01-21T09:16:12.477653 | 2020-11-29T08:15:02 | 2020-11-29T08:15:02 | 316,663,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,991 | cc | set.cc | ///
//
/// @file set.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2018-04-05 03:40:38
///
#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <functional>
#include <utility>
using std::cout;
using std::endl;
using std::set;
using std::multiset;
using std::map;
using std::multimap;
... |
b00e5b4f412ac41e4d1ffa179c98384374857e7c | ef65a93289d3f21c1e310c01efcc105ecdffbb43 | /self/test.cpp | f2e424212d455b2846031bfff03c8cc4fe404299 | [] | no_license | huangzhuo492008824/C-plus-plus | e9b329969063003dfe1b48914c81b44932fc5ccd | c068cf4a71b50d1f93a3bf12cf66a26624853ed7 | refs/heads/master | 2021-01-23T06:39:08.287856 | 2013-12-01T09:23:40 | 2013-12-01T09:23:40 | 14,836,251 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | test.cpp | #include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;
int main(void)
{
char buf[100];
fstream file;
file.open("test.txt", ios::in | ios::binary);
if(!file.is_open())
{
cerr << "file open error!" << endl;
exit(1);
}
file.read(buf, 100);
int n = file.gcount();
buf[n] = '\0';
cout ... |
be5193bb09efabcb3e08247e819187eee9512a22 | b739d1936d5c1f049a634db1f6e756756a89c89c | /QuickSubway/QuickSubway/main.cpp | 6e081841ef7b6d2f4cd3bbfb9e7006e0a4cc4fa9 | [] | no_license | FSMM-0-0/QuickSubway | 99677dff9b91313571f251aaaec7b95554cff1de | b3498ccd00bd0b91ce3f3b1666be9a3a1afaba48 | refs/heads/master | 2022-05-28T21:16:59.535486 | 2019-01-17T13:04:41 | 2019-01-17T13:04:41 | 162,866,747 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147 | cpp | main.cpp | #include <cstdio>
#include "input.h"
#include "subway.h"
using namespace std;
int main(int argc, char *argv[])
{
Input(argc, argv);
return 0;
} |
3b550f03f511114d403f549ff9ca9a5dc7dff6a0 | 18a139aefdb0819cd57d5893877e835d55f4f095 | /用两个队列实现一个栈.cpp | a15e232628447d3d2592cd313dc010bc72d260ce | [] | no_license | ZhjingK/stack-queue | ef7e017387825a42d7c1e345441378ef65f7ccd5 | 881da8d6af19af2afa39b29b7cb7c338b96372f2 | refs/heads/master | 2020-03-25T05:07:37.219592 | 2018-08-03T13:32:22 | 2018-08-03T13:32:22 | 143,430,454 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,362 | cpp | 用两个队列实现一个栈.cpp | //用两个队列实现一个栈
//Push的时候往不为空的队列中压入数值;Pop是将不为空的队列中的size-1个数值压入到另一个为空的队列中
template<class T>
class Stack
{
public:
void Push(const T& x)
{
if (!qu1.empty())
{
qu1.push(x);
}
else
{
qu2.push(x);
}
}
void Pop()
{
if (qu1.empty())
{
size_t size1 = qu2.size();
while (size1 != 1)
{
qu1.pu... |
d34e1c3bf5f65752a4d4f194c0c9cb6b136a508f | c5706b7c239ea368d55110c22d4ac19d5c621934 | /SCT013-000_Sample_code/SCT013-000_Sample_code.ino | 43f5dd758abda1321275088b4662c31404e8cf75 | [] | no_license | e-Gizmo/SCT013-000-Split-Core-Transformer | 9ce04f1f8b948fdb47abcdbdaf1bc41073bd47c2 | 93f6055665b9f4ad516850e5efdb8916c5643f09 | refs/heads/master | 2021-01-25T09:32:44.619858 | 2017-06-22T03:18:15 | 2017-06-22T03:18:15 | 93,850,291 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | ino | SCT013-000_Sample_code.ino | /*
e-Gizmo SCT013-000 Non-invasive Split-core
Current transformer Sample code
To get the value of Irms and Vrms, display on the
Serial Monitor.
Using EmonLib.h library for SCT013.
Modified by
e-Gizmo Mechatronix Central
http://www.e-gizmo.com
June 9, 2017
*/
#include "EmonLib.h" // In... |
e75361b2331d329e29fab311c4409c32c63b6a20 | 71c8e60698817c8c61b23dfe11acf456d04eca8e | /include/method.h | dd855c051bfba3a5201c24742364256fba577b7c | [] | no_license | General-Develop/idl | f6b3905d588af13ca40c700da8fc879f81fe448b | 0393902e8af2d0d5f3449f2e2044b29f619c06de | refs/heads/master | 2020-03-23T07:35:10.565707 | 2019-07-08T02:00:42 | 2019-07-08T02:00:42 | 141,140,019 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | method.h | #ifndef METHOD_H_H
#define METHOD_H_H
#include "intrusiveptr.h"
namespace Vdl
{
class MethodRequest : public ReferenceCounter
{
public:
virtual void call()=0;
};
}
#endif |
1c91180348dc17ebed267cac38e7432fc280b81d | cd179f84c893a8a32fcccdb894304c52f12a6d4b | /UselessDuelHat.ino | 402a28e278536dfd51869ba18a651c9afd17a210 | [] | no_license | PicoPixie/UselessDuelHat | 0fc0d1b1aaab5fced1a4638522978c8106ead5a5 | 9f9c13406365089ae3fad24940493c3c04463499 | refs/heads/master | 2020-05-26T08:28:46.678040 | 2015-03-30T18:38:16 | 2015-03-30T18:38:16 | 33,144,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,979 | ino | UselessDuelHat.ino | #include <Servo.h>
Servo servo_0, servo_1;
// holds current angle of servo arm
int nowAt = 0;
int randomArm = 0, randomDelay = 0, randomAngle = 0, randomStep = 0;
void setup() {
// seed pRNG with noise from unconnected PIN 7
randomSeed(analogRead(7));
servo_0.attach(9);
servo_1.attach(10);
servo_0.wr... |
591afe0fdc65d7c43e298c74ef4d8855b8d00018 | ca0b8d79fbce09ecbab4b9279fb230c2a7ad370a | /Esami/2014-2015/Compitino 2 - II Semestre (09-06-2015) + SOL/SOL/II_Parz_2015_5.cpp | 0a4a1364a279fd1a93c2ab1b0b4943fbfeda1ade | [] | no_license | FIUP/Programmazione-1 | 6523e4d7a5c64370eef5b7ac8e6c5687b620ffd8 | a897af997a5ded0d6e167f9f03d846d54a161add | refs/heads/master | 2021-06-03T16:22:01.190618 | 2020-09-30T20:57:12 | 2020-09-30T20:57:12 | 80,129,830 | 23 | 39 | null | 2020-09-30T20:57:13 | 2017-01-26T16:01:07 | C++ | UTF-8 | C++ | false | false | 2,801 | cpp | II_Parz_2015_5.cpp |
//soluzione by: Robertino B.
#include<iostream>
#include<fstream>
using namespace std;
struct nodo{int info; nodo* left,*right; nodo(int a=0, nodo* b=0, nodo*c=0){info=a; left=b;right=c;}};
struct innesto{ bool l, r; nodo* N; innesto* next; innesto(bool a=false, bool b=false, nodo* c=0, innesto* d=0){l=a;r=b;N=c;nex... |
37013e24b515aff0d05c5a5edc4ddae3ce40a99d | f7e46c91f237eb6d7d4a821cba494df2c3cc5621 | /예제모음/예제6-7.cpp | f98ac253850173fe4d445fc81b9392908594fc54 | [] | no_license | SeobinYun/2021_C_practice | c58025b576fa48ada13ce5977d5945ba0aeb73f8 | 810ae935bb5df01087717471408c35d2a2347aef | refs/heads/main | 2023-04-29T02:56:36.963147 | 2021-05-10T17:53:10 | 2021-05-10T17:53:10 | 339,678,555 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 511 | cpp | 예제6-7.cpp | #include <stdio.h> //논리 연산자 예제
#pragma warning(disable:4996)
int main(void) {
char ch;
int i = 0;
printf("입력한 문자에 대하여 대/소 판별 해드립니다.\n");
while (i++ < 3) {
printf("\n문자를 하나 입력하고 엔터 치세요 : ");
scanf("%c", &ch);
getchar();
if (ch >= 'A' && ch <= 'Z') {
printf("입력한 문자는 대문자입니다.\n");
}
else if (ch >= 'a' &&... |
80a237e9d1e56d3fc884ad07a0b84b1df2b6ea5b | 77dfdb5f38d5fb496f844b28f56e806e847ed470 | /filter/executor.cpp | 0e5ac6dd72bbe31351f6d242de883972cfbf4710 | [] | no_license | synchro10/graphics | 2feb7f9d29f2ab62a767bca24b1b915c5167abc5 | a4bba25c34b72d5e849b2fa8febc3bc417cc8734 | refs/heads/master | 2020-12-02T06:40:06.192799 | 2017-07-11T09:32:00 | 2017-07-11T09:32:00 | 96,874,762 | 0 | 0 | null | 2017-07-11T09:25:00 | 2017-07-11T09:17:14 | C++ | UTF-8 | C++ | false | false | 9,497 | cpp | executor.cpp | #include "executor.h"
#include <QDebug>
Executor::Executor(QObject *parent) : QObject(parent)
{
view = QSharedPointer<View>(new View());
zoneA = view->getZoneA();
threadPool = new QThreadPool(this);
threadPool->setMaxThreadCount(1);
setup();
}
void Executor::blackWhiteFilter()
{
ControlPanel* ... |
388e4258b0e85ff6e517fb3a0cf359579e1a226b | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/policy/core/browser/proxy_policy_handler.h | 58830e44bd08d2420c0ec0208d2cae3d8122cf2d | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 2,240 | h | proxy_policy_handler.h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_
#define COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_
#include <string>
#include... |
fd5a3107c47bd398fb3b1a55b54c65b7f454556e | 2eecc41bc8ae893490b30e3abd9808bbd2bd6bdb | /Source/Plane.cpp | 577f8c5ad5c96ebd2900006606981199fe0462f4 | [] | no_license | shadercoder/scge | d991230860573a56a44f3ecac2de38c4f25a67f3 | cec2bb285aa284206b4d41b9bbbf129a151bf200 | refs/heads/master | 2021-01-10T04:20:19.240225 | 2012-11-05T22:50:20 | 2012-11-05T22:50:20 | 44,643,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,995 | cpp | Plane.cpp | #include "scge\Math\Plane.h"
#include "scge\Math\Vector3.h"
#include "scge\Math\Ray.h"
//-----------------------------------//
Plane::Plane()
: normal()
, offset()
{ }
//-----------------------------------//
Plane::Plane(const Vector3& _normal, const Vector3& point)
: normal(_normal)
, offset()... |
71b9125e94e54b1de78b654b0b7f61ba82ae8bfa | acfb7652e5ead93450ec6a1259404a90e1a71a90 | /service_apis/youtube/google/youtube_api/content_rating.h | b6b9833ab136b83a3b330102ac1651817c9c7c5b | [
"Apache-2.0"
] | permissive | yoshipaulbrophy/google-api-cpp-client | 72861005d3e4f471aa36e3ebb00bf9c87dabf81b | 6a5dba71ffc17f0597ae5782584a95caf14070aa | refs/heads/master | 2021-01-22T07:48:50.434588 | 2017-05-18T20:26:22 | 2017-05-18T20:26:22 | 92,579,554 | 1 | 0 | null | 2017-05-27T07:17:22 | 2017-05-27T07:17:22 | null | UTF-8 | C++ | false | false | 69,253 | h | content_rating.h | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed unde... |
3b7cff51d3ac2299ee17b16132a563ef2d960f37 | f270ff6d16cd0af0e86eba7f49eb9c2763e6fec6 | /R/code/paper/bootstrap_cpp.cpp | fefb1a4bb2feebd1edef417810842f3e3f70f90a | [] | no_license | LloydChapman/rcpp_intro | 6b7446d44e07608dfced67b5eb4a9668229d1dae | a20d9736f0989d7febf1ecacfca031c338e68ccb | refs/heads/master | 2021-10-16T04:18:06.421365 | 2019-02-07T16:54:30 | 2019-02-07T16:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | bootstrap_cpp.cpp | #include <Rcpp.h>
// Function declaration with Rcpp attribute's export tag
// [[Rcpp::export]]
Rcpp::NumericMatrix bootstrap_cpp(Rcpp::NumericVector ds,
int B = 1000) {
// Preallocate storage for statistics
Rcpp::NumericMatrix boot_stat(B, 2);
// Number of observations
i... |
58c9ba2731adca684e836e2a9840bd3615f5a598 | 4d101df9a21ecf681cf458a8429821f34887fd9b | /segtree(rmq).cpp | 5f8d2468c905b21fc26e8cfe4fe8a6e10a10f4fd | [] | no_license | morpheus521/CPP_Templates | b26b61843b520b14bed7acf9692771310669367e | 11dd92f9eaa0447dd7a50c77a7fdcce8eced596e | refs/heads/main | 2023-01-01T12:17:50.973581 | 2020-10-24T06:40:15 | 2020-10-24T06:40:15 | 306,820,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | cpp | segtree(rmq).cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define F first
#define S second
#define mod 1000000007
#define all(a) a.begin(),a.end()
#define dbg(n) cout<<#n<<' '<<n<<endl;
#define dbg_v(v) cout<<#v<<":";for(auto x:v) cout<<" "<<x; cout<<endl;
ll power(ll x,ll y){ll res = 1... |
4dce6bb607d7fafb9fb44110fe52e587cac8d086 | 884f28ff2599cd4695572310d3bfdba4006796bd | /src/detnetmod/linklayer/common/VLANTag_m.cc | 3b054314c7f26d1196cfe08028738e24efe3fa96 | [] | no_license | Suggie-Chen/DeNS | 4ae5a5e0d779e1abf8e8d88eb5a7a1e54267cd31 | 5c0cec2e029d5cd5fb792a8128fd650c353543aa | refs/heads/master | 2023-05-05T07:04:21.967433 | 2021-05-10T17:39:04 | 2021-05-10T17:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,066 | cc | VLANTag_m.cc | //
// Generated file, do not edit! Created by nedtool 5.5 from detnetmod/linklayer/common/VLANTag.msg.
//
// Disable warnings about unused variables, empty switch stmts, etc:
#ifdef _MSC_VER
# pragma warning(disable:4101)
# pragma warning(disable:4065)
#endif
#if defined(__clang__)
# pragma clang diagnostic ignore... |
c46fa6f021361140ebc1ec5b742249e3a518a6b7 | 913f33132ca6a2245eb816056c1559f240e3fae8 | /Classes/AppDelegate.cpp | ddbcce31a176697ef98737e60a3822d29842d2ac | [] | no_license | viktormus/TowerDefenseGame | 45e5106cf75bde5c51c9bb2e1b6f53b1e5c34889 | 9a8fea6c349b05e1a34225033521395a6e35fed1 | refs/heads/main | 2023-03-03T14:49:25.413655 | 2021-02-10T05:57:51 | 2021-02-10T05:57:51 | 337,219,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | AppDelegate.cpp | #pragma once
#include "AppDelegate.h"
#include "Wave.h"
#include "TowerOne.h"
#include <iostream>
#include <string>
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
auto director = Director::getInstance();
auto ... |
df88f73662b67900eb12b97770130d14e4d82136 | ace20ae898aadf18c4ef8a2355b528422fc27bb5 | /codeforces/1353E.cpp | 6866d621cc61e27454b9bd7ffe7e723cd761fc30 | [] | no_license | pidddgy/competitive-programming | 19fd79e7888789c68bf93afa3e63812587cbb0fe | ec86287a0a70f7f43a13cbe26f5aa9c5b02f66cc | refs/heads/master | 2022-01-28T07:01:07.376581 | 2022-01-17T21:37:06 | 2022-01-17T21:37:06 | 139,354,420 | 0 | 3 | null | 2021-04-06T16:56:29 | 2018-07-01T19:03:53 | C++ | UTF-8 | C++ | false | false | 1,121 | cpp | 1353E.cpp | // https://codeforces.com/contest/1353/problem/E
#include <bits/stdc++.h>
using namespace std;
#define watch(x) cerr << (#x) << " is " << (x) << endl;
#define endl '\n'
#define int long long
const int maxn = 1000500;
string s;
int psa[maxn];
int dp[maxn];
signed main() {
ios::sync_with_stdio(0);
cin.sync_w... |
e622bed3dfd9844cbd95acb435edcffb17280432 | 460e74eff4f8234cb79c8ca2bb4447002d62a313 | /src/cost.h | 305aeb4ff0c043ea3e11a6defd4340652ac7b081 | [
"MIT"
] | permissive | azumf/CarND-Path-Planning-Project | 81eac1ac521b4b64b4fc410e1552ea147271e1a0 | 3d938ff00d8e8b21c89c21cbe3e446ed4fdf8329 | refs/heads/master | 2020-03-17T23:51:11.538067 | 2018-05-19T13:32:50 | 2018-05-19T13:32:50 | 134,064,213 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | h | cost.h | #ifndef COST_H
#define COST H
#include "vehicle.h"
using namespace std;
//double MAX_JERK = 10.0;
float distance_cost(const Vehicle & vehicle, const vector<Vehicle> & trajectory, const map<int, vector<Vehicle>> & predictions, map<string, float> & data);
float inefficiency_cost(const Vehicle & vehicle, con... |
990d0e7e6264fbd0d887daf12e4743a0c4fae30c | 9ada6ca9bd5e669eb3e903f900bae306bf7fd75e | /case3/ddtFoam_Tutorial/0.005650000/G | 0dd653c901ec2aed60b1382d756391806ab2bd9b | [] | no_license | ptroyen/DDT | a6c8747f3a924a7039b71c96ee7d4a1618ad4197 | 6e6ddc7937324b04b22fbfcf974f9c9ea24e48bf | refs/heads/master | 2020-05-24T15:04:39.786689 | 2018-01-28T21:36:40 | 2018-01-28T21:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115,873 | G | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
... | |
7bc21e62c717122710d3f69fcf853f228cbcc22b | d52b67944345f41a4494fd9154466b89101ba059 | /control/servos.cpp | 495b070b8093566a86a893d5fea10c985abb92e0 | [] | no_license | ARDev1161/ZanyaCore | 67c15469cfb3199c9a17615e620983a6c522301d | f035b0abde9156e8f68be2663f8ccdf4f21f316b | refs/heads/master | 2021-07-21T08:30:41.792395 | 2019-07-06T04:17:39 | 2019-07-06T04:17:39 | 155,769,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | servos.cpp | #include "servos.h"
void Servos::setXAngle(int angle)
{
xAngle = angle;
}
void Servos::setYAngle(int angle)
{
yAngle = angle;
}
int Servos::getXAngle()
{
return xAngle;
}
int Servos::getYAngle()
{
return yAngle;
}
|
35282110b4a20d813d279d68f8237a3d3f34b3f7 | dbc8da8b8fd2eb4732b1cfd772cd7171365e6421 | /TransformMatrix/AbstractMatrix.h | 36addf6df9338b06a38120953f09e831f3a3b955 | [] | no_license | PaulAndreevich/lightning | 80f164b5dfc4a380ed7a66812609b59ab610c4c1 | 05a2840f34b81745c82df9ecda5d92899e19a415 | refs/heads/master | 2021-04-30T09:26:52.404780 | 2018-02-12T22:34:17 | 2018-02-12T22:34:17 | 121,309,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | AbstractMatrix.h | #ifndef ABSTRACTMATRIX_H
#define ABSTRACTMATRIX_H
class AbstractMatrix
{
protected:
int row_count;
int column_count;
public:
int getRowCount() {return row_count;}
int getColumnCount() {return column_count;}
bool IsEmpty()
{
if (!row_count || !column_count)
return true;
... |
0bc284d8602f4ea2c3209434ee4ef592b70f4a77 | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/fusion/container/vector/vector20.hpp | 2d02d49378ee37396d405112a6dd75ea37f85e45 | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 78 | hpp | vector20.hpp | #include "thirdparty/boost_1_55_0/boost/fusion/container/vector/vector20.hpp"
|
b3bc35bc8a4d393b08bbdb94e3be4604f064c100 | 6d6c7623afcd7690d114ae7d029fdb8dbfb4b08b | /game.h | 8adb09c4ba3db636409a9a3ee2df9e2773903fa6 | [
"MIT"
] | permissive | udit01/YINSH-Player | 8a0b29b9297f1a94ef548105e9791c72a4418513 | b54a4e46cdb330ca1fb5ef1d640dab7c015e5993 | refs/heads/master | 2020-03-27T17:20:33.056031 | 2018-09-17T16:55:41 | 2018-09-17T16:55:41 | 146,845,484 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | h | game.h | #ifndef GAME_H
#define GAME_H
#include<fstream>
#include"utils.h"
#include"board.h"
#include"timing.h"
class Game
{
public:
// int player_id,no_of_rings,time;
int time;
timing *timer;
double weights[5];
Board* board;
Board* origBoard;
// write the names of data members to be used and member functions required ... |
3c174e70299c6a98da6bbd96347e2f3fea9a9e33 | fe0c3fc1ff06a761637d7a2bd9f8dfa582a68524 | /src/mugato/spine/SpineAnimationMixDefinition.cpp | e4e029a5705135285eabc9f4f83b644f3d2d8b54 | [] | no_license | Graphics-Physics-Libraries/mugato-gorn-example | afd9552e86149767c275c879e281e76f898f816a | 8358d9cd83181d67fdc588a329162d5cf67dbd5b | refs/heads/master | 2020-07-14T18:04:30.550458 | 2017-07-09T19:39:48 | 2017-07-09T19:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | SpineAnimationMixDefinition.cpp |
#include <mugato/spine/SpineAnimationMixDefinition.hpp>
namespace mugato {
SpineAnimationMixDefinition::SpineAnimationMixDefinition():
_duration(0.0f)
{
}
SpineAnimationMixDefinition& SpineAnimationMixDefinition::
withFrom(const std::string& from)
{
_from = from;
retu... |
a174096ff2416e23064b8d056578b9740237dfc2 | 0f07571d45635d43a96889390d006a2df1d9ee41 | /research/plos2016/intersect/Iso2dCommand.hpp | 2ad2163c8edfeaa7156a22cbd7a3cf353528ecce | [] | no_license | tmichi/sandbox | b704f62f5e4be5666fcf7408b6b4d761acdc2901 | ef9ccd413e8212d23991af49a993789ab2ca86d7 | refs/heads/master | 2021-01-20T19:05:07.760728 | 2016-06-09T01:19:10 | 2016-06-09T01:19:10 | 60,680,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | hpp | Iso2dCommand.hpp | #ifndef ISO2D_COMMAND_HPP
#define ISO2D_COMMAND_HPP 1
#include <string>
#include <mi/CommandTemplate.hpp>
#include <mi/math.hpp>
#include <mi/VolumeData.hpp>
template<typename T>
class Iso2dCommand : public mi::CommandTemplate
{
private:
mi::Point3i _size;
int _header_size;
mi::VolumeData<T> _data;
mi::Volu... |
065442ddea7ddd6da2c392548dc08a9f493becc6 | 77a88451e9816de8dcafd76b7d70d6110c8a459f | /ducks/ducks/mallard_duck.hpp | 0199c3cc1d08744e9bbb8b7e08d0db6bc0be6907 | [] | no_license | jsxft/learn-oop | 847dad41823cb7254cbcd28e03d6909ba58cbbf6 | 58b1f79087ead639a812387b8a56be40bf42d07a | refs/heads/main | 2023-04-30T03:23:31.604874 | 2021-05-13T17:41:59 | 2021-05-13T17:41:59 | 363,584,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | hpp | mallard_duck.hpp | #pragma once
#include "duck.hpp"
class MallardDuck : public Duck
{
public:
MallardDuck();
void display();
};
|
09e1758ddb4911abbf21b9f071960a1509b5cb96 | 8022b3cf506fec0c47fa277e8abff20eb2c1c634 | /sample/echo-client/main.cpp | 4e94e8c8c35e5f2029ddebbacae3da5dc664aa44 | [
"MIT"
] | permissive | difosschan/bamboo | e879e5b8b716d3fce537c4f16e129f115e0a59f3 | 43fc2bb62cdcc27406e541c891909b6492a8d365 | refs/heads/master | 2020-03-18T22:31:41.860224 | 2018-09-05T14:17:44 | 2018-09-05T14:17:44 | 135,350,389 | 0 | 0 | null | 2018-05-29T20:38:18 | 2018-05-29T20:38:18 | null | UTF-8 | C++ | false | false | 1,574 | cpp | main.cpp | #include <iostream>
#include <bamboo/bamboo.hpp>
int main(int argc, char* argv[]) {
std::string ip;
std::uint16_t port;
boost::program_options::variables_map vm;
try {
boost::program_options::options_description desc("echo client option");
desc.add_options()
("help,h", "print all help manuals"... |
297d7c863f8803ce4d8728a33d9cb95d8a4af85b | 8a1c4ce54774a97d4f86544892c25e4b3043ee0d | /Keengine/Sources/System/Animation.hpp | fe6ae04846d7e3ee192766e7bf6eb9929a919420 | [] | no_license | Caerind/Keengine | 5c96169145b1476fc6fabf5acbcd22abd9985ec5 | e5e69fe0903c5778759b1690f9dcaf7a8ece5d43 | refs/heads/master | 2021-06-09T00:43:13.164530 | 2016-12-20T21:50:57 | 2016-12-20T21:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | hpp | Animation.hpp | #ifndef KE_ANIMATION_HPP
#define KE_ANIMATION_HPP
#include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Time.hpp>
#include "ResourceManager.hpp"
namespace ke
{
class Animation : public Resource
{
public:
struct Frame
{
Frame();
Frame(const std::string& textureName, const sf::IntRect& textureRect, sf::T... |
0925b65c25fe09451f75fb2685833ae082514a8e | c8ba735922784b283ef6333a641acb325228085e | /Components/Metrics/PolydataDummyPenalty/itkPolydataDummyPenalty.h | f43265dc5ddd33e154db7a07ed3a0c243ec97cc3 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | gokhangg/elastix | a9520455b3273f425a5d2e01772d47eddd51d86a | 7a793af5d663a7a2bf2f18d42ca50f84a3e88a8f | refs/heads/develop | 2021-06-03T09:15:33.867838 | 2020-04-04T10:28:48 | 2021-02-05T13:23:51 | 252,985,709 | 0 | 0 | Apache-2.0 | 2020-04-04T12:03:05 | 2020-04-04T12:03:04 | null | UTF-8 | C++ | false | false | 8,447 | h | itkPolydataDummyPenalty.h | /*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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
*
* h... |
d92c6efff3c01cc93db259f02dd9758380a75e66 | 81f2a247eccbe89be5b2654394d3b77018cfcff9 | /bigSum.cpp | dc51c1bb321fbfde5d100a20ee5157b431e53980 | [
"MIT"
] | permissive | ArielTEP/BigSum | a25e2197ce035580a41dcce557c9e883d61f0367 | 93b341358b852e051517d38c17b70513f07e90c4 | refs/heads/main | 2023-04-09T03:36:57.112072 | 2021-04-24T22:08:54 | 2021-04-24T22:08:54 | 361,271,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | cpp | bigSum.cpp | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
//Time: O(n*m)
//Space: O(n+m)
//n: length of num1
//m: length of num2
string multiply(string num1, string num2) {
if ((num1[0] == '0') || (num2[0] == '0') ) return "0";
int m = num1.length();
int... |
0372c39eaf524130e42fe5ede3818d51654991b4 | a95883a9d92a657e8704f85b488700a0101ddb35 | /test/serialbox/core/frontend/gridtools/UnittestFieldMetaInfo.cpp | 3c2c8dfec6dc3a4e96fbedaee1565a8eb6556ad8 | [
"BSD-2-Clause",
"BSD-3-Clause",
"MIT"
] | permissive | mlange05/serialbox2 | d19b5f3094cc10a453b5a7d1580cf51c4085fdff | fa72d8a39f62c7c0b76536680f7a9953957f59f2 | refs/heads/master | 2020-04-26T03:51:51.141899 | 2019-02-04T10:19:37 | 2019-02-04T10:19:37 | 173,281,773 | 1 | 0 | BSD-2-Clause | 2019-03-01T10:20:08 | 2019-03-01T10:20:08 | null | UTF-8 | C++ | false | false | 3,102 | cpp | UnittestFieldMetaInfo.cpp | //===-- serialbox/core/UnittestFieldMetainfoImpl.cpp ------------------------------------*- C++
//-*-===//
//
// S E R I A L B O X
//
// This file is distributed under terms of BSD license.
// See LICENSE.txt for more information
//
//===---------------------------------------... |
a4570ccddf0f901e2ab18188656acf1505d27253 | 5a5328c0ad39230779aa52c9ae57ec193b88941e | /tesseract4android/src/main/cpp/tesseract/src/src/ccstruct/blobs.h | e7993ffc3bdfd0e8b9caf76139c8e956fa62bc95 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | adaptech-cz/Tesseract4Android | 66978579ccc80587b8a0ae3eebe79f152fa382cd | 8ae584f54502d5457c8b9d62401eaa99551352c3 | refs/heads/master | 2023-07-21T16:49:39.617935 | 2023-07-18T12:13:29 | 2023-07-18T12:13:29 | 168,021,668 | 517 | 101 | Apache-2.0 | 2021-03-29T11:52:21 | 2019-01-28T19:21:34 | C | UTF-8 | C++ | false | false | 16,436 | h | blobs.h | /******************************************************************************
*
* File: blobs.h
* Description: Blob definition
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not us... |
e776799bef43ba503a074ee7347a0499d55c8462 | ea1f28cfc724f71b893e7d22b227d23981a6b6eb | /docker-mie/mie/Server/RamCloudStorage.h | 890629afadff654c144a56926c377023ed3d1b4b | [] | no_license | khasm/seasky | cfd84a123b23f9bbbb2760d9366d02058e9d0101 | b14abf3c252ca6f9e491b5db5fe1680470858724 | refs/heads/master | 2021-01-18T20:00:56.620765 | 2017-04-17T10:43:32 | 2017-04-17T10:43:32 | 68,630,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,629 | h | RamCloudStorage.h | #ifndef RAMCLOUD_STORAGE_H
#define RAMCLOUD_STORAGE_H
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <atomic>
#include <queue>
#include "BackendStorage.h"
#include "RamCloudClient.h"
#include "ReedSol.h"
#include "Config.h"
namespace MIE::RC{
class RamClo... |
961599cf6d54021042687743a0265900d4292347 | c6eaad09db0ffa798e66d6486b0a9dc46e8a9256 | /WorldPackets/Responses/CharacterDataResponsePacket.cpp | 85363eded5747f6b30fcd2e283c0991a93c681ee | [] | no_license | DerBasti/JBROSE_World | 8afbb0d8ce8cad611ccb716f30146ed5913c40f2 | f63aca7518377e4c72b29baabb9d1e053dd4db6a | refs/heads/master | 2022-02-06T11:02:05.277912 | 2022-01-24T21:23:06 | 2022-01-24T21:23:06 | 138,166,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,969 | cpp | CharacterDataResponsePacket.cpp | #include "CharacterDataResponsePacket.h"
#include "..\..\WorldClient.h"
#include "../../Map/Map.h"
#include "../../WorldServer.h"
CharacterDataResponsePacket::CharacterDataResponsePacket(const Player* player) : ResponsePacket(ID) {
this->mapId = player->getLocationData()->getMap()->getId();
auto current = player->ge... |
c42a5b98d0d3ded259878f5ac705cacb4644e9e4 | 38a724327679ba89a9a5383b79523476264c69b2 | /3 term/algos/suffix/ukkonen/main.cpp | 918902ebcc91dffae25d99e6e5cfdcf5d893c677 | [] | no_license | alexeyqu/mipt-alexeyqu | 3f0af5534a142082d8f9b10b36bbc9ae82daf6fe | 1059b0e9a95855a95d0bc6c7da564799dfc7c449 | refs/heads/master | 2021-01-21T04:39:39.719665 | 2017-10-11T16:28:20 | 2017-10-11T16:28:20 | 51,085,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | main.cpp | #include "esko.h"
std::vector <long long> getNumOfNonEmptySubstrings (int lenSubstring, std::string str)
{
int problemSize = str.size();
for (size_t i = 0; i < problemSize; i++)
{
str[i] -= 'a';
}
str += str;
std::vector <long long> ans;
ans.resize (problemSize);
for (size_t i = 0; i < problem... |
d517c303717c93437d32f92915170fb30afb5429 | b4720fd87c7265197c7530912b899347242bde60 | /src/DataStorageUser/DataManager.h | c919e304688d3c2871ad7480f771c90c14afbfc9 | [] | no_license | seankhl/md_engine | c794e3407e80f6639a1c0e6f2a3fab88cea64960 | abf2a6b2fc28ee91e910b4b6d858496d1b4499c9 | refs/heads/master | 2021-08-27T16:01:43.135409 | 2016-06-09T19:41:48 | 2016-06-09T19:41:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,700 | h | DataManager.h | #pragma once
#ifndef DATA_MANAGER_H
#define DATA_MANAGER_H
#include "globalDefs.h"
#include <boost/shared_ptr.hpp>
#include "boost_for_export.h"
#include <vector>
#include <string>
class DataSetTemperature;
class DataSetEnergy;
class DataSetBounds;
//#include "DataSet.h"
class DataSet;
class State;
void export_DataMana... |
ffeedfd96580741a222c8de3d8fdbd739436a4ff | 399daa578423f27fe04c6a9a93e8cd74e3ee4a43 | /oj_server.cc | 6db23b06a6ae3db2e1e6362b1ab247a967fd40e9 | [] | no_license | Giraffe255/GiraffeOJ | d43a55c88a6ed082239c9289b65070ae640c032b | 6516c6502f8c8b0b898e17df061d2a609e53a29c | refs/heads/master | 2020-04-25T04:44:23.684462 | 2019-03-02T15:04:31 | 2019-03-02T15:04:31 | 172,521,031 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,121 | cc | oj_server.cc | #include <iostream>
#include "httplib.h"
#include <jsoncpp/json/json.h>
#include "util.hpp"
#include "oj_model.hpp"
#include "oj_view.hpp"
#include "server.cpp"
// controller 作为服务器核心逻辑,需要创建好对应的服务器代码框架,
// 在这个框架中来组织这个逻辑
int main() {
// 服务器启动只加载一次数据即可
OjModel model;
model.Load();
using namespace httpli... |
1359349ee4cce18aaf1a5e7a13ea5e275f97f917 | 96ed339f2de8c0e78830fc0079226d33d9481b9d | /CombineEngine/physic/Physical_Force.h | 76ae9f2cb0d6a23031e2654278489e77b9551f99 | [] | no_license | MeridianPoint/OpenGlEngine | e2ea8d4e26196294036f804f79582820c717c7ef | bea4dfa75ef4900296cab883bcae5d5fa9674689 | refs/heads/master | 2021-01-10T16:22:36.156537 | 2016-01-27T21:29:50 | 2016-01-27T21:29:50 | 50,533,024 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,427 | h | Physical_Force.h | //class to define force
#ifndef PHYSICAL_FORCE_H_
#define PHYSICAL_FORCE_H_
#include "stdafx.h"
class Physical_Force
{
protected:
float intensity;
Vec3f direction; //normalized
//
public:
Physical_Force();
~Physical_Force();
Physical_Force(float Intensity, Vec3f normalizeDirection) :intensity(Intensity), d... |
015fb830afd3b6e2f15f769f522165f4681e07bc | c0bb805e3eff1e6e36888218d09b1d1dc7ee5cd0 | /test/consumption/increasing_decay_tests.cc | e7666440c03888ee1ecf96513f01662189dee2b4 | [] | no_license | kajames2/healthcare | 7e7d123a5a8a054099dffdfc67f4b4adc176c6af | 38aa338601f3523dcaaa45e983b4e9d510850b4d | refs/heads/master | 2021-09-19T11:49:29.523421 | 2018-07-27T18:39:53 | 2018-07-27T18:39:53 | 107,737,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cc | increasing_decay_tests.cc | #include <gtest/gtest.h>
#include <memory>
#include "healthcare/consumption/increasing_decay.h"
class ConsumptionIncreasingDecayTest : public ::testing::Test {
public:
ConsumptionIncreasingDecayTest()
: health_(0), life_investment_(0), consumption_() {}
protected:
virtual void SetUp() {
health_ = 80... |
d888fff495f10bdb5636abe7c12978e0cd1103a3 | 2c1b1d120c4a9d3467c566df50bb83d89c52455e | /SingleResponsibility/SingleResponsibility.cpp | a138f713ed56783bedd409216f412037dde8312e | [] | no_license | kenpower/SolidPrinciples | 1d9aaf95b5bf598372eebcb1a4ad0842ea990b15 | 40c81e9a06a859ea8366549a818acd77b2d20f77 | refs/heads/master | 2020-09-06T12:44:59.036398 | 2019-11-28T10:51:29 | 2019-11-28T10:51:29 | 220,427,647 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | SingleResponsibility.cpp | // SingleResponsibility.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "GradeCalculatorSRP_1.h"
#include "GradeCalculatorSRP_2.h"
int main()
{
GradeCalculatorSRP_1::caclulateGrade();
GradeCalculatorSRP_2::caclulateGrade();
return 0;
}
|
4f922ead6469cdc89c168ec37319aeb10ce99513 | ebf91551c504c4931db67f676ee9075356c650fd | /HW3/Falling.h | d19455aee92a42cc34d1d3ec746bcbe5a161fc92 | [] | no_license | barquerolr/C_Plus_Plus | 8865724e4470a647cc5b9ce7e673f5022187e298 | 0de8d326ceaf454cc327b00a0ed13a4051462524 | refs/heads/master | 2022-12-11T05:31:20.047448 | 2020-09-08T07:14:44 | 2020-09-08T07:14:44 | 293,724,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | h | Falling.h | #include <iostream>
#include <string>
#include <cmath>
#ifndef FALLING_H
#define GREETING_H
#define GRAVITY 32.2 //Gravity constant.
#define FPS2MPH 0.681818 //Feet per second constant.
#define DT 0.0001 //DT constant.
using namespace std;
class Falling
{
private: //Private members.
double time;
d... |
0b68d6550cef0cd6b2b53beead101cd3cddd4c57 | 4f7fe96947220db4d2ce19471e02b1151fe00bfb | /src/contract.hpp | ce13243353a2a3bd95b09769f39d9d2c0b6229c7 | [
"MIT"
] | permissive | henrikt-ma/cadical | f6a8d90909dd5967c04767ca154cb0ef57ba7530 | 58331fd078cb5f76bae52e25de0e34c6a7dd4c1d | refs/heads/master | 2020-04-22T09:40:54.085319 | 2018-07-15T16:07:14 | 2018-07-15T16:07:14 | 170,281,392 | 0 | 0 | MIT | 2019-02-12T08:32:41 | 2019-02-12T08:32:38 | C++ | UTF-8 | C++ | false | false | 751 | hpp | contract.hpp | #ifndef _contract_hpp_INCLUDED
#define _contract_hpp_INCLUDED
#define CONTRACT_VIOLATED(FMT,ARGS...) \
do { \
fflush (stdout); \
fprintf (stderr, \
"*** 'CaDiCaL' invalid API usage of '%s' in '%s': ", \
__PRETTY_FUNCTION__, __FILE__); \
fprintf (stderr, FMT, ##ARGS); \
fputc ('\n', stderr); \
raise (... |
50f3c804556297f2b666b0b264c256cf9263981d | 7708a10f488fbe2239fdf2921d82c16a24c86d57 | /libastro/sdp4.c | 9ee13eac1f9fe64dacd535a4290d8abe545bbdec | [
"MIT"
] | permissive | obspsr/XEphem | ab434f0b0b042cbb2f489ca417c089eed421d64a | 39b13d41597f99d7bc760634c23e377f831c336e | refs/heads/main | 2023-08-03T03:00:22.101152 | 2021-09-20T17:28:00 | 2021-09-20T17:28:00 | 387,418,093 | 0 | 0 | MIT | 2021-07-19T10:00:42 | 2021-07-19T10:00:42 | null | UTF-8 | C++ | false | false | 12,427 | c | sdp4.c | #include <stdlib.h>
#include <math.h>
#undef SING
#include "sattypes.h"
#include "vector.h"
#include "satspec.h"
/* SDP4 3 NOV 80 */
/* SUBROUTINE SDP4(IFLAG,TSINCE)
COMMON/E1/XMO,XNODEO,OMEGAO,EO,XINCL,XNO,XNDT2O,
1 XNDD6O,BSTAR,X,Y,Z,XDOT,... |
457960ff089175538bf1b1356275c96c36e2cddd | 019a9c2de0eeccb4f31eecbeb0e91cc2db5404c2 | /UVA Online Judge/10128 - Queue.cpp | b8b5ba5ec15e2861a4c6269627a8517af1f3bf7c | [] | no_license | Prakhar-FF13/Competitive-Programming | 4e9bd1944a55b0b89ff21537e0960f058f1693fd | 3f0937475d2985da323e5ceb65b20dc458155e74 | refs/heads/master | 2023-01-09T05:09:27.574518 | 2023-01-04T11:32:01 | 2023-01-04T11:32:01 | 133,995,411 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | 10128 - Queue.cpp | /*
Tags - Very good Problem - Observation, DP, Implementation.
*/
#include<iostream>
#include<cstdio>
#include<string.h>
#include<climits>
#include<sstream>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<bitset>
#include<unordered_map>
#include<unordered_set>
#... |
f127dd21d8c8b9ddc1e7e2c719f26e64bc0c196a | 2e18fe7b39995706a527486f226522a865fa6b56 | /GaLiong/Include/IClickable.hpp | fadda8ff1d3297bf3ffc69ee377bd10a459ed114 | [
"Apache-2.0"
] | permissive | weimingtom/GaLiong | b1d08c96df049aad327dc2ea5a03ad6b9d880c4f | ceadc2368856717f6416bc07b22c9961d713a95c | refs/heads/master | 2021-01-12T09:11:06.953896 | 2015-10-28T08:41:06 | 2015-10-28T08:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | hpp | IClickable.hpp | #pragma once
#include "Preprocess.hpp"
#include "Event.hpp"
_L_BEGIN
enum class MouseButtons
{
Left,
Middle,
None,
Right
};
class _L_ MouseEventArgs : public EventArgs
{
public:
MouseButtons Button = MouseButtons::None;
bool ButtonDown = 0;
int Delta = 0;
Point Location;
MouseEventArgs(Point Location);
Mou... |
5131a9f3986bc6b52914fd0096b2b7af8f341e96 | c05c8bf12b99cc305f3dbf7c395697e26c752fed | /Lab7/lab.h | f381403ddd9dd56f3caaed3f94eb1e82f43e8e70 | [] | no_license | mikhail-bogdan/myinformatics | df639971602f535c6df614a31654b270e547b984 | 0b563c91b46328d942d0073043f2748197d62ddb | refs/heads/master | 2020-05-15T07:56:31.420527 | 2020-01-28T04:31:40 | 2020-01-28T04:31:40 | 182,151,104 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | h | lab.h | #pragma once
class Worker
{
public:
virtual int calcSalary() = 0;
};
class List
{
public:
struct Node
{
Worker * data;
Node * next;
Node * prev;
};
List();
~List();
void add(Worker * data);
virtual void erase(Worker * data);
virtual Worker * find(int pos);
void removeAll();
protected:
Node * first ... |
3127dd64ee5a072a6dd77e2e003f823573169761 | f4a92c8d1e6f1b5ff030b0860ea0aaabf018a35d | /include/strf.hpp | bf45e945dea505cb5ac45c7a623a468094a354b7 | [
"BSL-1.0"
] | permissive | ExternalRepositories/strf | f1b16c080a863b20a0f1e54b50bc18deed0802e1 | 94cd5aef40530269da0727178017cb4a8992c5dc | refs/heads/master | 2022-08-05T08:55:12.983432 | 2020-01-17T15:12:08 | 2020-01-17T21:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | hpp | strf.hpp | #ifndef STRF_HPP_INCLUDED
#define STRF_HPP_INCLUDED
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if defined(_MSC_VER)
#pragma warning ( push )
#if ! defined(__cpp_if_constexpr)
#pragma warning ( disable... |
dd7ee3ec4b8e256abad5d4acd23e0ab8fcf10575 | c588186250b1af54a276dbba2efc8bb78ca14125 | /contest/2017 Multi-University Training Contest/7_8.cpp | 9f8e68dbb4922843ba90bb357de69dc9888c4938 | [] | no_license | Meng-Lan/Lan | 380fdedd8ed7b0c1e5ffdabdc0c2ce48344927df | fc12199919028335d6ddb12c8a0aa0537a07b851 | refs/heads/master | 2021-06-28T11:59:50.201500 | 2020-07-11T09:05:53 | 2020-07-11T09:05:53 | 93,761,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,833 | cpp | 7_8.cpp | #include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<sstream>
#include<fstream>
#include<vector>
#include<list>
#include<deque>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<cmath>
#include<utility>
#include<numeric>
#include<iterator>
#include<algorit... |
4eb25a90f9927502587752723a3905657fc6e8d5 | ad791d9b0743a0007365d7bf8d0249e94ca302a4 | /Arduino/Master/Master.cpp | 9f54a4691a3f524f5150e832f110a7cd81387d44 | [] | no_license | thom17/DataPhonics | a8a8413a1b9baa9ad49e0d3aed3caa041a5afc81 | 4d418f284d4d871143ae488f25c7615cfd1dd13c | refs/heads/master | 2023-01-01T15:09:54.377247 | 2020-10-18T14:33:17 | 2020-10-18T14:33:17 | 305,118,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | cpp | Master.cpp | #include <DallasTemperature.h>
#include <OneWire.h>
#include "Master.h"
#define N 30
Master::Master(BlueT *bt)
{
Serial.begin(9600);
this->blueT = bt;
bt->setup();
}
//add list 각 센서의 객체를 더해주는 함수 리스트 count++
void Master::addD_H(D_HumidSensor* d_h)
{
this->d_h = d_h;
count++;
}
void Master::addT... |
3a5206fd0ce199579541aa7a362df621dcb3725e | 63fb752e9fb71d1d2e891ea3ec9c9300c9f85606 | /h/Kernel.h | 26631aae202c17ac106c8972d879ff88c73b6f37 | [] | no_license | popina1994/operating-system | 80092db0b760e3f410f8fd7ed6573b3e262f4da5 | 87b85d59191208621829d2103b92ada64ffd5e17 | refs/heads/master | 2021-01-16T09:44:08.598848 | 2017-02-19T23:51:18 | 2017-02-19T23:51:18 | 243,067,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | h | Kernel.h | /*
* Jezgro.h
*
* Created on: May 13, 2015
* Author: popina
*/
#ifndef _KERNEL_H_
#define _KERNEL_H_
#include "Vector.h"
#include "PCB.h"
#include "thread.h"
#include "Idle.h"
#include "typedef.h"
#include "QueueT.h"
#include "KernSem.h"
#include "KernEvent.h"
class Kernel {
friend class SysMode;
friend... |
a4557c4856f58d0dfb2519a19743ce6c4ff5284f | f41492bfdf2d7def1bd2d43dab5a3bc267fa3842 | /icc2010-src/Subset.cc | 4085b02c87625dcb9bac83986e24c6d14766efa2 | [] | no_license | csgrad/wmn-simulator | e5ea300ea130d1adb49fe21f4c15bfad5cff6851 | 73c34a6fdac4370059de20269efc8a5b2acf2167 | refs/heads/master | 2016-08-11T14:48:36.548343 | 2015-11-25T23:52:35 | 2015-11-25T23:52:35 | 46,890,724 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cc | Subset.cc | // subset.cc -- Implementation of subset class
// Author: Steve Tate
// Last Update: September 21, 1998
#include <iostream>
#include <vector>
#include "Subset.h"
// recursive_printer(int last) prints out all subsets that have varying
// elements 1..last (last+1..n are considered fixed by this function).
// Recursiv... |
42f2794578ef73fb5c1b63ccd41a78b821500986 | 69ab565e491c73d55aaaa55b5d802dbbb04e8e3d | /QRD/src/QRD/Debug/Timer.cpp | a941b7e3e902c3d65fa755775508434e09e5f66e | [] | no_license | CAt0mIcS/DatabaseManagementSystem | 8cfa82f0f1af77a10f6a3cc9d05549d036c7ac4b | f7dfc950b0ecc914099fac5a4b787fab37ee9a41 | refs/heads/master | 2022-12-25T07:38:10.594944 | 2020-10-09T13:40:54 | 2020-10-09T13:40:54 | 281,762,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | Timer.cpp |
#ifdef _DEBUG
#include "Timer.h"
namespace QRD
{
Timer::Timer(const std::string& text)
{
m_Text = text;
m_Start = std::chrono::steady_clock::now();
}
Timer::~Timer()
{
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - m_Start).count();
QRD_LOG(m_T... |
479338818f2762bb114da6b4ea068f0df3e64aa8 | 3a5b585e4aaa6ffe1e22e5c628b10bbafb7bc308 | /Lecture6/nowait_clause/nowait_clause.cpp | 196753886fda0fae3d025efc1aa7eff0f035e18f | [] | no_license | bluekds/OpenMP-Programming | e20b5bffa965e564bb9be8c8abd871005753e9ae | da9aa53888d91ce71c5f1fc3af9ede272f1fb127 | refs/heads/master | 2023-07-03T06:14:55.131175 | 2021-08-08T12:26:40 | 2021-08-08T12:26:40 | 383,769,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | nowait_clause.cpp | #include <stdio.h>
#include <stdlib.h>
#include <omp.h>
int computeValA(int i) { return i; }
int computeValB(int i) { return i*2; }
int main(void)
{
int a[10] = { 0 };
int b[10] = { 0 };
#pragma omp parallel num_threads(4)
{
#pragma omp parallel for
for (int i = 0; i < 10; i++)
a[i] = computeValA(i);
#... |
3e9170b35dcb63c6503a6c18bcfd8241fc3bff04 | 041bdef1823a175292a8668b4c50474ff7d21fa9 | /framework/mesh/SurfaceMesh/chi_surfacemesh_meshstats.cc | e4d038312e1a0db4a33781df8e2390383549720a | [
"MIT"
] | permissive | chi-tech/chi-tech | d5ccdec9d1292d3ce5968ae8e0116d704d420098 | 234ab138682c9cc93ad3c5bd28977fbcdcba862d | refs/heads/development | 2023-09-01T04:11:49.185710 | 2023-08-29T16:22:08 | 2023-08-29T16:22:08 | 204,051,209 | 28 | 52 | MIT | 2023-09-06T19:31:47 | 2019-08-23T18:33:46 | C++ | UTF-8 | C++ | false | false | 7,382 | cc | chi_surfacemesh_meshstats.cc | #include "chi_surfacemesh.h"
#include "graphs/chi_directed_graph.h"
#include "chi_runtime.h"
#include "chi_log.h"
#include <algorithm>
//###################################################################
/**Checks for cyclic dependencies in this mesh.
* Transport type sweeps have a step where the inter-cell depen... |
7cb385be0b6a175c3f347911bbb5197101793b16 | 86a6332ab608eec6cc042d9f473b8a91125bfce2 | /distributed/include/worker.h | 05f12a752caa14ace059aca9cf00d340940b4f6b | [
"MIT"
] | permissive | jangmys/PBBPerm | 5e31cf3ce28b4a474825fa441aedac7e9b125067 | c13ad1045d0c7a36fd8d8ace728410fee38d70a4 | refs/heads/master | 2022-11-17T21:39:29.630008 | 2020-07-20T13:19:28 | 2020-07-20T13:19:28 | 272,390,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,789 | h | worker.h | #ifndef WORKER_H
#define WORKER_H
#include <atomic>
#include <memory>
class pbab;
class communicator;
class matrix_controller;
class work;
class fact_work;
class solution;
class gpubb;
class worker {
// private:
public:
int M;
int size;
char type;
// bool standalone;
communicator * comm;... |
08e87458571e56d47df38e259783d425796b39f9 | 1b90be9561c10508eea59cb36c1f1665d0ef947f | /stan/math/fwd/fun/multiply_log.hpp | 32eea41173f5d997f280609425cda9207c97c886 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | stan-dev/math | 473e7c1eaf11f84eaf2032c2455e12ba65feef39 | bdf281f4e7f8034f47974d14dea7f09e600ac02a | refs/heads/develop | 2023-08-31T09:02:59.224115 | 2023-08-29T15:17:01 | 2023-08-29T15:17:01 | 38,388,440 | 732 | 240 | BSD-3-Clause | 2023-09-14T19:44:20 | 2015-07-01T18:40:54 | C++ | UTF-8 | C++ | false | false | 866 | hpp | multiply_log.hpp | #ifndef STAN_MATH_FWD_FUN_MULTIPLY_LOG_HPP
#define STAN_MATH_FWD_FUN_MULTIPLY_LOG_HPP
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/fun/multiply_log.hpp>
#include <cmath>
namespace stan {
namespace math {
template <typename T>
inline fvar<T> multiply_log(const fvar<T>& ... |
6d2f90e5f758e25daff5dc1e8d69f0a08e1c1351 | bd7c2f3ac5fa9ec950cf6c02b0d221de36addcbe | /zipfiles.h | ceb503bbf9417f534f9b2ab0e731541e7648e12f | [] | no_license | aijiekj/tools | 74701c0371458f3b014e7fd2963b10046e2022c5 | 40ecf42488a4227bcbb883cc597be5d82d511a02 | refs/heads/master | 2021-01-10T14:04:33.974484 | 2015-12-24T07:53:19 | 2015-12-24T07:53:19 | 48,530,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | h | zipfiles.h | #ifndef PZIPFILES_H
#define PZIPFILES_H
#include "../thirdparty/quazip/quazip.h"
class PZipFiles {
public:
PZipFiles();
static bool commpressDir(const QString &sDir,
const QString &sSaveFile);
static QStringList extractDir(QString fileCompressed, QString dir);
static QString extra... |
1057aa6564104c9755fb424d69d541be267d9671 | 9dd3a25af34e3498db1dbe99947a2598b7153f08 | /C++/카카오_보행자 천국.cpp | 56327485a66611c76ba9560925c03ec2a484e4e9 | [] | no_license | kasta12/algorithm_test | 67751430194b62410f8b0e2439e6e535a2bc4bed | ecd566f26bc25fda8865f20bd7d96b926e28057b | refs/heads/master | 2022-03-14T11:50:18.136150 | 2019-09-27T03:30:48 | 2019-09-27T03:30:48 | 208,958,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | cpp | 카카오_보행자 천국.cpp | #include <vector>
using namespace std;
int MOD = 20170805;
int solution(int m, int n, vector<vector<int>> city_map) {
int street[500][500][2];
street[0][0][0] = 1;
street[0][0][1] = 1;
for (int i = 1; i < n; i++) {
if (city_map[0][i] == 0) {
street[0][i][0] = street[0][i - 1][1];
street[0][i][1] = street[... |
522cb7737b0007938d03dd11f74300e0d2e64081 | 09945f3c9bb33279930013f2487a44ddb5818b01 | /test/span_test.cpp | 97831e342e0faeb333f55bafde8859dbf2dae673 | [
"BSL-1.0"
] | permissive | jakalope/jakalib | c5cd18ef80274add6d4c58439d30b8a54de01429 | e0b13ecc0b913ce44b78bae01b557429afa45537 | refs/heads/master | 2021-07-08T18:16:37.077550 | 2019-12-25T17:07:06 | 2019-12-25T17:07:06 | 97,436,402 | 6 | 3 | BSL-1.0 | 2019-12-25T17:07:07 | 2017-07-17T04:52:34 | C++ | UTF-8 | C++ | false | false | 264 | cpp | span_test.cpp | #include "jakalib/span.h"
bool simple_test() {
int nums[3] = {0, 1, 2};
jakalib::span<int> sp(nums, 3);
return sp.size() == 3;
};
int main() {
bool success = true;
success = success && simple_test();
if (success) {
return 0;
}
return 1;
}
|
b5f1cd65c78ba626122495c5b699ddd18391c522 | 8989188b934894bae877b578ee13001a40cba401 | /src/AlignSteering.h | 309397ec6f1e03a8de71382ef2705ffea488c25c | [
"MIT"
] | permissive | LeifNode/DirectX11 | 315aba65e4ff202538c043902e1d746344563ffa | c693025fce45c247023c71217d61844ef63be4fc | refs/heads/master | 2021-01-23T16:35:54.530433 | 2013-09-22T01:48:09 | 2013-09-22T01:48:09 | 12,212,782 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | AlignSteering.h | #pragma once
#include "BoidSteering.h"
class AlignSteering : public BoidSteering
{
public:
AlignSteering(float radius, float minDotProduct = -1.0f):BoidSteering(radius, minDotProduct){}
virtual ~AlignSteering(){}
virtual void getSteering(SteeringOut& out);
}; |
0d5ee9e1de839b22021bdbcdb75fe25c18714d75 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/apps/drwho/Hash_Table.h | a2fc1cec730953df66f147244de251ad450d84a3 | [
"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 | 951 | h | Hash_Table.h | /* -*- C++ -*- */
//=============================================================================
/**
* @file Hash_Table.h
*
* @author Douglas C. Schmidt
*/
//=============================================================================
#ifndef _HASH_TABLE_H
#define _HASH_TABLE_H
#include "Search_Struct.h"... |
901a1e6733a16fd04fee4d8ecef0abbd03d7c011 | 1fe680b6553bbe5b620c5460dfcda8b1c4ff969d | /HydraSolver/HydraSolver/AllDifferent.cpp | d72eea0d1c5c4c5e2cc949ca83a399dfad0d6f47 | [] | no_license | PMarcL/HydraSolver | a6af81f4223438349adf83dc50645bacdfbab92d | 010fc3e4c2c75abe24b7007876678e71ad4c2922 | refs/heads/master | 2021-01-20T11:15:54.843848 | 2017-04-17T17:35:43 | 2017-04-17T17:35:43 | 82,882,527 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,553 | cpp | AllDifferent.cpp | #include "AllDifferent.h"
#include "AllDifferentUtils.h"
#include "AllDiffBoundsFilter.h"
#include "Variable.h"
using namespace std;
namespace hydra {
AllDifferent::AllDifferent(const vector<Variable*>& variables) : Constraint(variables), variables(variables),
boundsFilter(new AllDiffBoundsFilter(variables)) {
}... |
ba3a2de644be7c296e927fd15a421a38d140500c | 93617ab4bd455bc2c613549f73fc96bfccf3a909 | /include/Graph_Imp.h | 905d990a661612b08fcaef764071cc744edebd3a | [] | no_license | animeshsinghjay/engg-visualization | dd5c47e10823642bdc2220baae533ea08583ea1e | 1702ba6cb658d7990510eda3b97b891cf4ab2f0d | refs/heads/master | 2020-12-23T22:33:34.814800 | 2020-01-30T20:21:15 | 2020-01-30T20:21:15 | 237,296,280 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | Graph_Imp.h | //Graph_Imp.h
#ifndef GRAPH_IMP_H_ // if Graph_Imp.h hasn't been included yet
#define GRAPH_IMP_H_ // including the necessary files
#include <vector>
#include "Triplet.h"
#include "ngraph.hpp"
//! Defines a class for storing edges of the graph
/*!
Contains the necessary data members and functions required to... |
deed65470c9fd6c6b0f05bfe47930b2f6d9a4653 | 6779958575492f5f914e08e0fa2a8f9957fc2337 | /trunk/Ziaf/Network.cpp | 17b5565ead2e61af6114c01383cca7c856c102c8 | [] | no_license | BGCX261/ziajulien-svn-to-git | 433ec6190d308ada3d505d32a5efe00f0f4af2d3 | e7dfaf01605b3267e47bcf34ee695cefb9e3f010 | refs/heads/master | 2020-04-06T10:20:33.368407 | 2015-08-25T15:53:18 | 2015-08-25T15:53:18 | 41,587,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | Network.cpp | #include "Network.h"
Network::Network(void)
{
}
Network::~Network(void)
{
}
/**
* The accept event.
* This method will be called just after a accept has been performed.
* It lets you change the socket used for the transaction with your own
* IClientSocket implementation. Typically, you can use this ev... |
7028a22b6319748f2e66389eac48b0f06aaa7e2d | 072026be4b3c02d69ec0ac6b3eed37da6721a9fb | /The Notebook/Graphs/Depth First Search/practice_problem_2.cpp | d9185ab1a00741f8042e91ab38684bff7542de39 | [] | no_license | vmmc2/Competitive-Programming | 1c4f61528301a9d83eeabee352d4e55ed2e64e1f | 0c71f99a7d7144ae762b04ec2af8e18c5181d330 | refs/heads/master | 2022-06-26T23:49:50.088941 | 2022-05-27T21:38:20 | 2022-05-27T21:38:20 | 152,163,693 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | practice_problem_2.cpp | #include <bits/stdc++.h>
#include <sstream>
using namespace std;
void dfs(int source, vector<vector<int>> &adjlist, vector<int> &dist, vector<bool> &visited){
visited[source] = true;
for(int i = 0; i < (int)adjlist[source].size(); i++){
int u = adjlist[source][i];
if(visited[u] == false){
dist[u] = dist[sour... |
6f1d728e3db4446a46f0e024fd0201dda32aee54 | 868e8628acaa0bf276134f9cc3ced379679eab10 | /firstCrude2D/we123/h10_refined2/0.053/phi | 1d82c6f1dd3c20e8a58a511bdb23aa02b34db3b1 | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 1,428,679 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
c2661e9b6c81922f2b012c6912ba4e1877b5a71a | b9cc7dfec430fab63c89ff40d431ca7a9de7dd12 | /goblim/MyProject/Materials/SpaceMaterial/SpaceMaterial.h | 85d4232380bf3e8271f03aed120c9f2f6b0ae862 | [] | no_license | Oneloves/shaders | 268296b2e4ac20740014e55d24f925957e041cb3 | a6afbd93040dfdc9a285c87ea7924900a26637d9 | refs/heads/master | 2020-03-30T06:57:52.049938 | 2018-09-29T21:21:44 | 2018-09-29T21:21:44 | 150,903,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | SpaceMaterial.h | #ifndef _SPACEMATERIAL_H
#define _SPACEMATERIAL_H
#include "Engine/OpenGL/MaterialGL.h"
#include "Engine/OpenGL/Lighting/LightingModelGL.h"
#include <memory.h>
class SpaceMaterial : public MaterialGL
{
public:
SpaceMaterial(std::string name);
~SpaceMaterial();
void setColor(glm::vec4 &c);
virtual void rend... |
215c759799d5683e3ba50df4b1f2f3e9a177c995 | 086a72a391984a14feab432e484a66359925715b | /pscore/common/common.h | 2e3ff99e8a2fc7020d33076b4a3b405b8a1a30af | [] | no_license | Superjomn/pscore | 966e8dd25b098cf9d2e2b36ebb0c182494454463 | 0cbe6d3caab30ba73646d0af0e61dfed1ea9f333 | refs/heads/master | 2023-06-02T21:24:13.582567 | 2021-06-28T07:28:20 | 2021-06-28T07:28:20 | 377,822,009 | 0 | 0 | null | 2021-06-28T07:28:20 | 2021-06-17T12:24:44 | C++ | UTF-8 | C++ | false | false | 1,495 | h | common.h | #pragma once
#include <errno.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/types.h>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <vector>
namespace pscore {
// Call func(args...). If interrupted by signal, recall the function.
template <class FUNC, cl... |
1b106783cf5af9e048ac1c8fb2cb065ab4712a99 | 8a659a42a51c301a56c1c7dfd6488f65022f2429 | /libs/eigen/eigen/advanced_initialization/advanced_initialization.cpp | 958731d62bad763cbbe0fdea7beb26b7eef5414e | [
"Apache-2.0"
] | permissive | quanhua92/learning-notes | 0aacf7873b44abf22af0c6721dba0c9f81753080 | a9c50d3955c51bb58f4b012757c550b76c5309ef | refs/heads/master | 2021-01-22T12:35:01.130145 | 2018-12-11T07:41:24 | 2018-12-11T07:41:24 | 102,350,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cpp | advanced_initialization.cpp | #include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std;
void main() {
{
Matrix2f m;
m << 1, 2, 3, 4;
cout << m << endl;
RowVectorXd vec1(3);
vec1 << 1, 2, 3;
cout << "vec1 : " << vec1 << endl;
RowVectorXd vec2(4);
vec2 << 1, 4, 9, 16;
cout << "vec2 : " << vec2 << e... |
bd37378d06f23fdf186b89a565a2e65684fe62f2 | 781998d032fb72be6dbff09b3e22cc380fca803a | /MFC_Tool/Multi_Texture.h | 4251243cae11b763ea2e667141b556e0e361cc6c | [] | no_license | ILoveMilktea/Cookie-Nom | 28069aa6e8a8fd46e10e7bf676fff6c66346c41a | 762b06f50978b64ac9bc40dab4a72d351495211e | refs/heads/main | 2023-01-13T11:54:40.557553 | 2020-11-24T14:13:42 | 2020-11-24T14:13:42 | 315,599,692 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 511 | h | Multi_Texture.h | #pragma once
#include "Texture.h"
class CMulti_Texture :
public CTexture
{
public:
CMulti_Texture();
virtual ~CMulti_Texture();
// CTexture을(를) 통해 상속됨
virtual const TEXINFO * Get_TexInfo(const wstring & wstrStateKey = L"", const int & iIndex = 0) override;
virtual HRESULT Insert_Texture(const wstring & wstrFileP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.