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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69ed26e1df5c8372a69b3f882dded9931f83520d | bc82865ffb1caf191a5b1537d5c6fa1f33a81fa5 | /src/nn/Threshold.h.inl | bda837e821a0b01d2a91b980514d38aa6409547c | [
"Apache-2.0"
] | permissive | yytdfc/cpp-torch | de64f3d7cc332e36ab843aca14a1f26c27e2e75b | 8eebba4bece2811079d61a20f51f56b14094a729 | refs/heads/master | 2021-01-19T10:54:27.253638 | 2017-08-07T06:06:41 | 2017-08-07T06:06:41 | 99,531,797 | 4 | 1 | null | 2017-08-07T03:11:29 | 2017-08-07T03:11:29 | null | UTF-8 | C++ | false | false | 548 | inl | Threshold.h.inl | #pragma once
#include "../../include/nn/Threshold.h"
template<typename T, GPUFlag F>
cpptorch::Tensor<T, F> cpptorch::nn::Threshold<T, F>::forward(const cpptorch::Tensor<T, F> &input) const
{
// validate parameters
if (inplace_)
{
asserter(val_ <= threshold_) << "in-place processing requires value... |
3958b347cb2a394df152a642dbcc15f3adcb9ab4 | c3b2042bdbbe4c413fc1ec8b1006e8f01291052e | /KMP/KMP周期/KMPT.cpp | 83b18b40d985be6d18bfc94ceb9ae219e413ffd7 | [] | no_license | strategist922/ACM | 303d7fc7b52d7907e8ab9fd5d21b2ae184d43ddf | 6ca86fc96db513967bcb0cfbfe7c801515213f72 | refs/heads/master | 2020-04-09T21:55:44.349105 | 2017-02-24T12:38:21 | 2017-02-24T12:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | KMPT.cpp | #include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
void get_next(char* T);
int fail[1000005];
int main()
{
char T[1000005];
scanf("%s",T);
while(strcmp(T,"."))
{
get_next(T);
int s=strlen(T);
(s%(s-fail[s])==0)?printf("%d\n",s/(s-fail[s])):printf("1\n");
scanf("%s",T);
}... |
f00b622393f0c03990b1070944395477ae336429 | 925f9c8638542fc7cb1c69b7ab7edffe2284e6aa | /chapter4/LibroCalificaciones_centinela.cpp | 5c4ddebaacec7c0a809337a220db7bff61fb4133 | [] | no_license | cibervicho/cpp_como_programar-repo | 022e61e0ff6642108d236acc5309e1358d8a8b42 | be4fdef96e6ff5ac4b652ecaca0682307605aa6b | refs/heads/master | 2021-01-21T08:54:54.989671 | 2017-10-23T06:10:01 | 2017-10-23T06:10:01 | 101,960,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,745 | cpp | LibroCalificaciones_centinela.cpp | // LibroCalificaciones.cpp
// Definicion de las funciones miembro de LibroCalificaciones que resuelve el programa del promedio
// de la clase con repeticion controlada por centinela.
#include <iostream>
#include <iomanip> //Manipuladores de flujo parametrizados
#include "LibroCalificaciones_centinela.h" // Incluye la ... |
555f5758432fce647351806fb7fc428c7fd3bea9 | 347f113aa835e6a14bcb894d8c9c477f7e02f375 | /C++, Pyphon Introduction to Machine Learning/A1/Q1/data.h | d2af4c26491f5b635a864e138b6a11dbfa3ac026 | [] | no_license | BurrowedCactus/some-homework-during-school | b9e213c989ba04815beae380c3ce207d6801fe7f | cf5c445e5afdba490109b3eb7b20fbdc70284ae0 | refs/heads/master | 2021-04-02T21:35:11.445965 | 2020-03-18T19:40:36 | 2020-03-18T19:40:36 | 248,325,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | h | data.h | #ifndef _DATA_H
#define _DATA_H
#include <string>
#include <vector>
#include <utility>
struct X{
std::vector<int> x;
void add(int a){
x.push_back(a);
}
double dist(const X other) const;
};
struct data{
std::vector<std::pair<X,int>> content;
data();
//initialize an empty data, like the default constructor.... |
cb0770787cd6c1dfc9f778077d2c6eeac2929e56 | 8358768e453dc449e40afea6cfc238d41bf3ba4c | /codeforces/VKQualificationR1/e.cpp | 8de1f4ba146990c4c534c3413106b6134031b2b0 | [] | no_license | dushmi/informatics | 5c30358e3518b65dc9b4035e43a52c021f9391e7 | 3bfb8a45dd76147ce0b0b12fcba4bf65d48c7ce1 | refs/heads/master | 2021-01-16T19:20:59.276735 | 2013-05-02T12:07:50 | 2013-05-02T12:07:50 | 2,621,772 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cpp | e.cpp | #include <cstdio>
const int N = 4005, INF = 0x3f3f3f3f;
int n, k, st[N], time[N], ans[N], d[N][N];
void read() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; ++i)
scanf("%d%d", &st[i], &time[i]);
}
inline int min(int x, int y) {
return x < y ? x : y;
}
inline int max(int x, int y) {
return x > y ? x... |
6ee4f26599ed792484cb331141ffce668f3438cc | bb375f41e7ede4d20f383df92c28fc2f328956e6 | /priority_queue.cpp | 28566ec2ad4bb89e39992b59b7a407e83adef3cd | [] | no_license | alexpilk/SDiZO-spaghetti | d82b2c74bee94cd719dbafbb758e1b31954c840f | 6728a1d723747e7e79caa0d132c959944973311a | refs/heads/master | 2021-09-11T17:04:14.293784 | 2018-04-10T06:54:11 | 2018-04-10T06:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,162 | cpp | priority_queue.cpp | // sdizo1.cpp : Defines the entry point for the console application.
//
#include <iostream>
// indeks: 235067
using namespace std;
struct Element
{
int value;
int priority;
int index;
Element *next;
Element(int value)
{
this->value = value;
next = nullptr;
}
Element(int value, int priority)
... |
f0698cacf6e32c018cc3f8d2714e6542103340ed | 0d93b71d05af6c39d4d9ca6ed9cdb75eae215523 | /5. negative first.cpp | 797de748206fa014a186b66538b20e2fb8b46318 | [] | no_license | guptaishan1/450-questions | 5c523660c8cd184246625ccf76792c514d844a11 | 33bc0a2a54e865ecefbc37586b9972db668ef981 | refs/heads/master | 2023-05-28T18:55:50.097797 | 2021-06-07T09:03:03 | 2021-06-07T09:03:03 | 373,819,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | 5. negative first.cpp | #include <iostream>
#include <list>
#include <algorithm>
using namespace std;
int main()
{
int a[] = {-4,2,-3,5,-6,1};
int n=0;
for(int i=0;i<6;i++){
if(a[i]<0){
if(i != n){
swap(a[i],a[n]);
}
n++;
}
}
for(int i=0;i<6;i++){
... |
e6a72d48c026ca829142c81d6b200f930072e6a6 | c2915484a4fe848b9bfee6bfb65f824993dde59b | /Case/case8/1300/alphat | 3e07fa16fcd1fd6f9896636a63858c23da8c8d16 | [] | no_license | mamitsu2/aircond5_play3 | 835b937da2d60771b8a7b81e13631a8a1271e8f4 | 8eee217855014d562013e0dbe0024208a4633db3 | refs/heads/master | 2020-05-24T21:54:50.022678 | 2019-05-19T13:31:37 | 2019-05-19T13:31:37 | 187,480,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,432 | alphat | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
5f28f9eae0e3b84d48537e8db99a31b45aa5b329 | 90873d728ad3992c12820be5f7eae51664b067da | /src/data/enums.h | db81c207b2b8218d78444bfd1890bde8fca2958d | [
"MIT"
] | permissive | rschurade/braingl | 2f4cc5fb43f9d625d00e0aada62d7f6f9778d7a0 | 7a6b24adc1faf3c3b9044bb2fda6af4c9f3600a4 | refs/heads/master | 2021-01-10T04:30:23.977641 | 2016-02-06T17:42:59 | 2016-02-06T17:42:59 | 44,483,772 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 58,067 | h | enums.h | /*
* enums.h
*
* Created on: May 04, 2012
* @author Ralph Schurade
*/
#ifndef ENUMS_H_
#define ENUMS_H_
#include <QDebug>
#include <QMap>
#include <QMetaType>
#include <QString>
namespace Fn
{
enum class DatasetType : int
{
UNKNOWN = 0x00,
NIFTI_SCALAR = 0x01,
NIFTI_VECTOR = 0x02... |
e20ee4cd9b169f452f4d5494c6c02c43806f389d | 425300718e125b8e00a5a618dee2579832f5ef80 | /src/game/eoavov.h | 03c459185cb1f2f2cbacf2976d272e2eea42af94 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT"
] | permissive | Sondro/eoavov | a50625ed5a822b65e446ce25a1de87571d9411f5 | 444a6ca62d558ac6f5dafecabdf0d6104d43c79d | refs/heads/main | 2023-06-16T04:48:16.665776 | 2021-07-14T20:24:03 | 2021-07-14T20:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,325 | h | eoavov.h | #ifndef __EOAMAIN_H
#define __EOAMAIN_H
#include "cube.h"
#include "fpsentity.h"
#include "hudmessage.h"
#include "acoustic.h"
#include "envzones.h"
#include "task.h"
#define GMCMD(a,b,c,d) ICOMMAND(a,b,c,{if(isconnected()){d;}})
#define GMACMD(a,b,c,d) GMCMD(a,b,c,{if(!lock_control)d;})
enum
{
ENT_LIGHT=ET_LIGHT,... |
597ac6d1a863f338fe7aa6d7cf366ecb622ca047 | ea401c3e792a50364fe11f7cea0f35f99e8f4bde | /hackathon/hanchuan/sscope/FlyCapture2/src/FlyCapture2GUI/LUTPage.cpp | a772ae4276cb9383ba1c9f47652ed8575b7a092c | [
"MIT"
] | permissive | Vaa3D/vaa3d_tools | edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9 | e6974d5223ae70474efaa85e1253f5df1814fae8 | refs/heads/master | 2023-08-03T06:12:01.013752 | 2023-08-02T07:26:01 | 2023-08-02T07:26:01 | 50,527,925 | 107 | 86 | MIT | 2023-05-22T23:43:48 | 2016-01-27T18:19:17 | C++ | UTF-8 | C++ | false | false | 21,394 | cpp | LUTPage.cpp | //=============================================================================
// Copyright © 2008 Point Grey Research, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of Point
// Grey Research, Inc. ("Confidential Information"). You shall not
// disclose such Confid... |
5e832c5f2387e1538be947f9733d6be00b2df57c | 892b27b5583d54e309f39ddfe62993df6901ba33 | /license.cpp | 17c12ca477b4f462c61b4f472b1103ea7f535cd8 | [] | no_license | Gitnoter/Gitnoter-Qt-RegisteredMachine | 889663d3abe8dda55d9f08a18430e3b8c728a2eb | 2922e14930b077af639be23445f2725ac1131b5f | refs/heads/master | 2020-09-11T21:12:46.041857 | 2019-11-17T03:33:29 | 2019-11-17T03:33:29 | 222,192,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,135 | cpp | license.cpp | #include "license.h"
#include <QCryptographicHash>
#include <QTextStream>
#include <QDateTime>
License::License(QObject *parent) : QObject(parent)
{
}
QString License::createLicense(const QString &userInfo, const QString &endTime, QString lid, const QString &productType)
{
lid += "-" + productType;
const Q... |
b61185acd736201c78d8bf6ada172eca15700358 | 100663a71f217262b3f838be42286431cd0955d1 | /testScanner.h | 0b56ceaedec3d156d7d5c6cbb6287a99374b4f5b | [] | no_license | mgazit2/CS4280_P1 | 40876c1d36ac89d32f35cdc880121b8ea2a0fb2a | a1061efd055837a45a8211a9a9c3097721579c05 | refs/heads/main | 2023-03-18T22:01:25.822744 | 2021-03-15T17:05:31 | 2021-03-15T17:05:31 | 345,481,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | h | testScanner.h | /*
* Matan Gazit
* CS 4280
* 03/08/21
*
* testScanner.h
*/
#ifndef TESTSCANNER_H
#define TESTSCANNER_H
#include "scanner.h"
#include "token.h"
#include "fsa.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int test_scanner(ifstream&);
#endif
|
0a37136fbc5e59947e850b560f4a7b3dbf94e633 | c1b03b59b3974058e3dc4e3aa7a46a7ab9cc3b29 | /src/module-wx.new/generated/Class_wx_RichTextPrintout.cpp | 03c926143837b77254ad7e019c8fb7e8a7007168 | [] | 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,620 | cpp | Class_wx_RichTextPrintout.cpp | //----------------------------------------------------------------------------
// wxRichTextPrintout
//----------------------------------------------------------------------------
#include "stdafx.h"
Gura_BeginModuleScope(wx)
//----------------------------------------------------------------------------
// Gura inter... |
82a73a5de0247bffd6470a4031ad6cae19c47220 | 2c6db978a533caa74150705f8d15f50f7b0a31a5 | /Game/Source/Pathfinding.h | e51eb843d4b41d717eba7123a242b95bf1dc1d04 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MrPollito/PlatformerGame | 0742bd9596d4ce23a82b97311ea432cf66a70cbf | e1265d77a8fd625dde2a9a21090a5743d1af8871 | refs/heads/master | 2023-02-11T21:08:59.807688 | 2021-01-10T22:56:24 | 2021-01-10T22:56:24 | 301,352,519 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | h | Pathfinding.h | #ifndef __PATHFINDING_H__
#define __PATHFINDING_H__
#include "Module.h"
#include "Point.h"
#include "DynArray.h"
#include "List.h"
#define DEFAULT_PATH_LENGTH 50
#define INVALID_WALK_CODE 255
class PathFinding : public Module
{
public:
PathFinding();
~PathFinding();
bool CleanUp();
void SetMap(uint width, u... |
32e5d42290d8db4c3db2fbb161c55b6aa0dec8bf | 16c7083af14af891c64ccffb071aaa995024db11 | /test/UploadServer/GameServerSession/UploadRequest.cpp | 83b2ed314a46e45f74dc2145e874587e61bd683f | [] | no_license | glandu2/rzauth | a062c5d7d57e32642cefdb6a73d93c63f4bcfd87 | 296b790ddfebce6260b19436964d643e2781231a | refs/heads/master | 2021-05-24T03:39:25.636507 | 2020-08-28T12:56:41 | 2020-08-28T12:56:41 | 36,559,779 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,420 | cpp | UploadRequest.cpp | #include "../GlobalConfig.h"
#include "PacketEnums.h"
#include "RzTest.h"
#include "UploadGame/TS_SU_LOGIN.h"
#include "UploadGame/TS_SU_REQUEST_UPLOAD.h"
#include "UploadGame/TS_US_LOGIN_RESULT.h"
#include "UploadGame/TS_US_REQUEST_UPLOAD.h"
#include "UploadGame/TS_US_UPLOAD.h"
#include "gtest/gtest.h"
namespace Uplo... |
8af03daff54d205922cea96f248b01711eac547f | fe343fc103df7c66c9ae20ccd79cd374851455fc | /bx.y.cplus/src/demo/TextAreaDlg.cpp | b334afbc8ea7ac270725ca22b2224b9e5b62f734 | [] | no_license | onbonlab/BX-Y | a9c35f69b888d7aaaa9d800aee39ef01610a9186 | 4dfbf367aa3cde44cb507dd4b625f703b36749d8 | refs/heads/master | 2021-01-07T08:49:34.965142 | 2020-04-13T10:00:27 | 2020-04-13T10:00:27 | 241,639,338 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,061 | cpp | TextAreaDlg.cpp | // TextAreaDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "LedNetSdkDemo.h"
#include "TextAreaDlg.h"
#include "afxdialogex.h"
#include "StrPageDlg.h"
TCHAR* TXT_ShowMode[]=
{
_T("快速打出 "),
_T("随机 "),
_T("静止显示 "),
_T("向上推入 "),
_T("向下推入 "),
_T("向左推入 "),
_T("向右推入 "),
_T("向上连移 "),
_T("向下连移 "),
_T("向左连移... |
7c6340950cf701d0f3400c6881ac99f2a94c1b08 | a1b534c02f55a7e78e558c5108a968d3085a8ca1 | /sorting-and-searching/apartments.cpp | 4f4181f5594a5bf97f3c69281caad5cc4e0d5fc5 | [] | no_license | hugowxyz/cses | 1ed199b1a5e252bb2ffc5a3fef2948b97d6f9dff | a1a0f0e931419be5b3d226d5c9cea1558952431c | refs/heads/master | 2023-03-01T09:14:16.030254 | 2021-02-13T11:06:32 | 2021-02-13T11:06:32 | 330,420,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | apartments.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
long long n, m, k, a, b, ans = 0;
cin >> n >> m >> k;
vector<long long> v0, v1;
long long n0 = n, m0 = m;
while (n0--) {
cin >> a;
v0.push_back(a);
}
while (m0--) {
... |
0ab5fa91af961b9725f97e8400fe261c94535596 | 0dcb7d6ca616edfa2452f36abf7ac28cc4ff905b | /Inversion of array.cpp | a7b787826deb8d34f0604250e65a2cf9b326d390 | [] | no_license | Sunil16202/Binary-Search | 76d0a30342caad6ae8426f19aa25e128da622e18 | 5cc02fbe8bbb45df36f09c9d9bdcac496231994b | refs/heads/master | 2022-12-08T06:56:20.447792 | 2020-08-27T09:41:36 | 2020-08-27T09:41:36 | 262,275,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | Inversion of array.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll merge(int A[], int left, int mid, int right){
int i = left;
int j = mid;
int k = 0;
int temp[right - left + 1];
ll count = 0;
while( i< mid && j <= right){
if(A[i] <= A[j]){
temp[k] = A[i];
i++;
k++;
}
else{
... |
12fe5f8557bbc3ee3519c4f00661c421198c6522 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/3894.cpp | afabdf3a2cc8b85fa1f8125cd4da70a0f6e5cfb9 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,727 | cpp | 3894.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <sstream>
#include <fstream>
#include <stdio.h>
#include <set>
#include <map>
#i... |
54b46dd82efa029aa1cf83864b88dfce63b0cd6e | 4c09c9b3a307b1e11e7ec72ed2bd0726466d6ac2 | /An_engineer_student_life.cpp | c1699d5312b6cc7a7c9ed0756860aa4760b212fd | [] | no_license | mohiduzzaman/An-Engineer-Student-Lifecycle---Graphics-Project | afff933b78434b0eb9380e9799cf467886f9b1ae | 17e47f10368402b7c79c02897995bfbedd9120f0 | refs/heads/master | 2020-07-10T16:51:30.364080 | 2019-08-26T15:16:55 | 2019-08-26T15:16:55 | 204,315,601 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 136,581 | cpp | An_engineer_student_life.cpp | #include <iostream>
#include <stdlib.h>
#include<GL/gl.h>
#include <GL/glut.h>
#include<math.h>
#include<cstring>
#include<windows.h>
#include<mmsystem.h>
#define CTRL_COUNT 100
int scene;
///1st scene
float movebaloon=0;
float bln=0;
///2nd scene
float movecloud=1;
float cld=0;
float moveman=0;
float man=0;
///3rd... |
d7811eff406a8275d2ef2bfaf586c14031028ca5 | 2f00cae2338735e6ca2bfbee471fc1f6f40e5adf | /devices/cameras/Smartek/src/SmartekDevice.cpp | 9700374974aa6bdd79aad0f4843ef6d250fd1df4 | [] | no_license | jbinkleyj/sti-devices | cb6ed57640e3dad74c46462faf5d32c3996392e8 | 3c72876b7be0c9082f1e95735f25f45a7b2e3339 | refs/heads/master | 2020-03-23T07:56:25.917008 | 2018-07-05T01:55:35 | 2018-07-05T01:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,951 | cpp | SmartekDevice.cpp |
#include "SmartekDevice.h"
#include "Image.h"
#include "ImageWriter.h"
#include <thread>
SmartekDevice::SmartekDevice(ORBManager* orb_manager, const ConfigFile& configFile, const smcs::IDevice& camera)
: STI_Device_Adapter(orb_manager, configFile), camera(camera)
{
init();
configFile.getParameter("Trigger partne... |
3e97cf4f591fd731315eb468390852705e610476 | e56835d4ab334cb78f96692ce0444cb76d8e9dca | /arlib/socket-helpers.cpp | 23fd2dd63710441bb7d2bbd0321a1fb08ffff098 | [] | no_license | Alcaro/russian-malware | 4068e4694e40c47b64071e71eca725be36af8ad6 | 8c9240136a6bc6622b65f42c315c003ddbc311d1 | refs/heads/master | 2023-06-11T08:06:04.314893 | 2023-06-02T15:17:49 | 2023-06-02T15:24:26 | 101,215,913 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,534 | cpp | socket-helpers.cpp | #ifdef ARLIB_SOCKET
#include "socket.h"
#include <errno.h>
async<autoptr<socket2>> socket2::create(cstring host, uint16_t port)
{
cstring domain = socket2::address::split_port(host, &port);
address ip = (co_await socket2::dns(domain)).with_port(port);
if (!ip) { errno = ENOENT; co_return nullptr; }
co_return co_aw... |
78f9e6cb80b57b989ae2561b34eb9bf2c86ef889 | 988413076cd53832ed9b0041770b64346f162201 | /src/misaxx-core/src/misaxx/core/patterns/misa_folder_pattern.cpp | 44e179272d505f7af6e9deac9dbffe8a95b3c32e | [
"BSD-2-Clause"
] | permissive | applied-systems-biology/misa-framework | 1a1edb7208009e92d8e34e6e749f1efe6a758840 | e7a303ccfd79e41f45df5fa79e52e24bdf4123d9 | refs/heads/master | 2023-08-20T12:46:10.905828 | 2023-08-12T12:19:06 | 2023-08-12T12:19:06 | 181,515,264 | 2 | 2 | null | 2023-09-06T18:43:36 | 2019-04-15T15:27:13 | HTML | UTF-8 | C++ | false | false | 1,734 | cpp | misa_folder_pattern.cpp | /**
* Copyright by Ruman Gerst
* Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Insitute (HKI)
*... |
135e0ac1027f24f86d751eedcc3045c7f66a0373 | 816da410281b3456e8feff51b669d597e2b0b5e2 | /sensor/sensor/timer.hpp | 2e7bc3da0d7ed509fd7b3a31ea4411444dd667d4 | [] | no_license | jamesg/aether | ee19216c56d8bc10d00e6a12890aa71cc11d1ad5 | 5e333e5a1b24ca8e56b3344539fbf74ba557efe2 | refs/heads/master | 2021-01-10T10:34:16.453604 | 2015-11-11T19:12:44 | 2015-11-11T19:12:44 | 46,003,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | hpp | timer.hpp | #ifndef AETHER_SENSOR_TIMER_HPP
#define AETHER_SENSOR_TIMER_HPP
#include "Arduino.h"
class timer
{
public:
typedef int id_type;
typedef void(*callback_type)(void);
/*!
* \brief The maximum number of timers supported.
*/
static const size_t ENTRY_COUNT = 8;
/*!
* \brief Id to use f... |
0bc6860c8e77b9196c4f1080130fdc5d01e397dd | 76534a6b2e08cf2ef28313f3e3c2875f4b5b3463 | /VecGeom/navigation/SimpleABBoxSafetyEstimator.h | 6869400805f90baa17dbfe0a5e0ae0bc81012d9b | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | cxwx/VecGeom | 38a50ec27becb24c9c2bf4803d6aee2f2983d97f | c86c00bd7d4db08f4fc20a625020da329784aaac | refs/heads/master | 2022-11-07T23:19:21.994806 | 2020-05-08T14:52:02 | 2020-06-22T07:01:25 | 275,410,759 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,840 | h | SimpleABBoxSafetyEstimator.h | /*
* SimpleABBoxSafetyEstimator.h
*
* Created on: Aug 28, 2015
* Author: swenzel
*/
#ifndef NAVIGATION_SIMPLEABBOXSAFETYESTIMATOR_H_
#define NAVIGATION_SIMPLEABBOXSAFETYESTIMATOR_H_
#include "VecGeom/navigation/VSafetyEstimator.h"
#include "VecGeom/management/ABBoxManager.h"
namespace vecgeom {
inline nam... |
483dc80de5767f2244807e9364c4b75144793e85 | fec7bb87940431bb261cc8c4ed37ce4f815a95cf | /src/sim/room/RoomSimFrame.cpp | 167813d1c03d91df7aaf9ba322e32b1942ceaad7 | [] | no_license | matthewbot/IEEEGumstix | a5a27720807f55a420ba46d5f6a96e7ecfa1bd37 | a61ca8820da98d945640e7e76a785aaa437a8fa7 | refs/heads/master | 2016-09-15T18:19:18.239931 | 2011-03-11T07:20:45 | 2011-03-11T07:20:45 | 918,685 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,901 | cpp | RoomSimFrame.cpp | #include "ieee/sim/room/RoomSimFrame.h"
#include "ieee/sim/shared/VictimWorldObject.h"
#include "ieee/sim/shared/ObstacleWorldObject.h"
#include "ieee/sim/shared/WorldIO.h"
#include <fstream>
using namespace ieee;
using namespace std;
enum {
STEP_BUTTON,
RESET_BUTTON,
OBJECTS_MENU,
WORLDGRID_MENU,
MAPGRID_MENU
}... |
807f7ba40248d8aba0ccbe82475d331dc9d0bbb7 | e7b43228197b17631c17677adc7ed64250699660 | /TRing.cpp | 298149d53f2e00b81fab1f8942103f878b4c8f3d | [] | no_license | mslupeck/aliFitFlowToy | 8dfc15dfc13e4b687e342797c278e96ce5b47945 | 0fbe30816c6551ae432a874d19818f1791cae5a9 | refs/heads/master | 2020-09-21T06:14:36.373124 | 2019-11-28T18:05:59 | 2019-11-28T18:05:59 | 224,706,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,206 | cpp | TRing.cpp | /*
* TRing.cpp
*
* Created on: Mar 14, 2018
* Author: mss
*/
#include "TRing.h"
TRing::TRing(float r0, float r1, float z) {
SetRadiusRange(r0, r1);
SetZ(z);
CalculateEtaRange();
}
void TRing::SetZ(float z){
this->z = z;
}
void TRing::SetRadiusRange(float r0, float r1){
this->r0 = r0;
this->r1 = r1;... |
4f19d8fe6589b77167339cca067863daaad929ea | bfbbd8126a3ed62c16f3ff2ab7848c660cff3142 | /CSE387Lab7/CSE387Lab/Cube.h | 46120f5bd7de76c98c855b6c5a8736586d5eb51f | [] | no_license | loomisdf/cse-387 | 994cfb19cf40b102b10f185bf0b0fb08412800c0 | d582484bcdc8748ead0db731f4cc663f559c0759 | refs/heads/master | 2021-01-21T13:48:26.013050 | 2016-04-26T21:12:32 | 2016-04-26T21:12:32 | 53,957,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | h | Cube.h | #pragma once
#include "VisibleObjectOrderedRender.h"
class Cube : public VisibleObjectOrderedRender
{
public:
Cube();
~Cube();
virtual void initialize();
bool update(float deltatime);
};
|
97433e8c16b4a6a15c16bf947f42b7c578c1f611 | f1a825ed7e03aae6fba2079c5beacb13ac47be2d | /Classes/PlayerInfoView.h | 5b40f0cae4949772e4cf81e3401f4fd2c6e06b81 | [
"MIT"
] | permissive | crylg/cocos2dx_study | 10d9c9da8b58b27e342d2168a2de74b20b00f93c | 176619e15f0ab277299732c80c8c10af1272e1a2 | refs/heads/master | 2016-08-11T14:34:53.781484 | 2015-12-14T09:46:15 | 2015-12-14T09:46:15 | 47,732,568 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 848 | h | PlayerInfoView.h | #pragma once
#include "cocos2d.h"
class VAvataInfo;//旁边的信息
class PlayerInfoView :public VView
{
public:
//static PlayerInfoView* create();
CREATE_FUNC(PlayerInfoView);
enum ePlayerType
{
Self,
Other
};
enum ePosition
{
RB,
RT,
LT,
LB,
P_Self
};
bool init();
void layout(ePlayerType type, ePosi... |
732270a7b0ed2dd60ade576b200f82fc389d6523 | 7d7b31999ff5951b32560640b027f4ae120290fe | /resip/recon/MediaResourceCache.cxx | f9aa6504f3106f29033a2e75832d0f07044dbb6d | [
"VSL-1.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | portsip/resiprocate | d462a3c722507d33df55cbb1d3e4e84e8cf0cd15 | 0b15ea2516e5fb0c15850eb91d668274cca666a8 | refs/heads/master | 2022-01-03T09:47:55.478983 | 2021-12-13T22:01:03 | 2021-12-13T22:01:03 | 263,042,889 | 1 | 0 | NOASSERTION | 2020-05-11T12:58:11 | 2020-05-11T12:58:10 | null | UTF-8 | C++ | false | false | 3,199 | cxx | MediaResourceCache.cxx | #include "ReconSubsystem.hxx"
#include "MediaResourceCache.hxx"
#include <rutil/Log.hxx>
#include <rutil/Logger.hxx>
#include <rutil/WinLeakCheck.hxx>
using namespace recon;
using namespace resip;
using namespace std;
#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
MediaResourceCache::MediaResourceCache()
{
}
... |
64f03a3726742f99a4be1d3b34d88d9695f055e3 | 9120a9b17d00f41e5af26b66f5b667c02d870df0 | /EXAMPLES/Apps/replace+/Util.h | 62ed78c14952bc99d5587483c4265946160efec0 | [] | no_license | pierrebestwork/owl | dd77c095abb214a107f17686e6143907bf809930 | 807aa5ab4df9ee9faa35ba6df9a342a62b9bac76 | refs/heads/master | 2023-02-14T02:12:38.490348 | 2020-03-16T16:41:49 | 2020-03-16T16:41:49 | 326,663,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | h | Util.h | #if !defined(util_h) // Sentry, use file only if it's not already included.
#define util_h
// This structure may be initialized from the commandline parameters
class ReplaceData
{
public:
~ReplaceData();
static ReplaceData &GetInstance();
bool ShouldRecurse() const { return recu... |
f81590741061cf5c2ecb857ef237020594a5c28b | eb8204c5b0ebf561a7e91bf3de77069b85b43e98 | /nic.h | 6b5491d4fc50120b530bb8409919699c02b4eaa1 | [] | no_license | AlphaCan/QmlBackNetWork | 5653bd28e30616d6ab7c8159c5aa5c11ceefc1cb | 4be7497bf8e429e9f615d924df8287f856766c05 | refs/heads/master | 2020-05-30T06:10:01.428104 | 2019-06-04T03:43:29 | 2019-06-04T03:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | h | nic.h | #ifndef NIC_H
#define NIC_H
#include <QObject>
#include <QNetworkInterface>
#include <QHostInfo>
class NIC : public QObject
{
Q_OBJECT
public:
explicit NIC(QObject *parent = nullptr);
QString localhostname;
void Get_Host_Name();
int nic_num = 0;
QString mynic_name[5];
QString mynic_ip[5];... |
9438cb2e5b200d21a5c808de5e1255a3504fb27e | 990f3bc246598e3f421f5aafd8cebe70c87ee14a | /1297_Maximum_Number_of_Occurrences_of_a_Substring.cpp | 5344076c4f2c7feaf0961ced5ce64008da2cc6b0 | [] | no_license | randomwalk10/my_leetcode_solutions | 75bea6b76f61903e72535f31bb62e2a381bfb35e | 83ba4436bd5cf6839c59b7b82346c9a0768444e0 | refs/heads/master | 2021-06-11T03:33:29.343740 | 2021-05-12T07:01:47 | 2021-05-12T07:01:47 | 128,261,470 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | cpp | 1297_Maximum_Number_of_Occurrences_of_a_Substring.cpp | /*
Given a string s, return the maximum number of ocurrences of any substring under the following rules:
The number of unique characters in the substring must be less than or equal to maxLetters.
The substring size must be between minSize and maxSize inclusive.
Example 1:
Input: s = "aababcaab", maxLetters = 2, mi... |
62d6655ceb0600909faabca7e5d88f55eb22de79 | a685ceeffe00535752d379ff5f783d6f8fcb20cd | /Invasion/Private/Game/InvasionGameMode.cpp | 7fce2ef866b18f4f923f48f2ed1f647f417b9388 | [] | no_license | UnrealXinda/Invasion | 1848e809590a920fd7c83c7fe36bfaea9e231e4d | c9869ad73a5f472d8b7859815165900d36a931ba | refs/heads/master | 2021-08-28T07:17:25.807439 | 2021-08-23T04:13:37 | 2021-08-23T04:13:37 | 223,698,131 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,872 | cpp | InvasionGameMode.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Game/InvasionGameMode.h"
#include "Player/InvasionPlayerController.h"
#include "Player/InvasionPlayerState.h"
#include "Systems/TimeDilationSystem.h"
#include "Systems/PostProcessSystem.h"
#include "Systems/CoverSystem.h"
#inc... |
191fd9229dde583b64b0ed9c91b3b5b22941efd6 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /domino2/main.cpp | bb6b5d98cab93383dd10aeda6c1b87f7f95bc5b1 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | main.cpp | #include <cstdio>
using namespace std;
FILE *f=fopen("domino2.in","r");
FILE *g=fopen("domino2.out","w");
void rez(int n)
{
if(n==1)
{fprintf(g,"1 1\n");return ;}
rez(n-2);
fprintf(g,"1 %d\n",n);
for(int i=2;i<n-1;i+=2)
{
fprintf(g,"%d %d\n%d %d\n%d %d\n%d %d\n",n,i,i,n-1,n-1,i+1,i+1,n);... |
496c69c6be2c700d4d0c1baa1a70b4c3817fdd35 | d4433d8c51e9dc6e0c2904def0a524c9125555de | /Battle/BattleModel.h | 71d2ca5d8f9ec13ee103c8472bce795b57aee9b9 | [] | no_license | 54993306/Classes | 3458d9e86d1f0e2caa791cde87aff383b2a228bb | d4d1ec5ca100162bd64156deba3748ce1410151d | refs/heads/master | 2020-04-12T06:23:49.273040 | 2016-11-17T04:00:19 | 2016-11-17T04:00:19 | 58,427,218 | 1 | 3 | null | null | null | null | GB18030 | C++ | false | false | 1,448 | h | BattleModel.h | /*************************************************************
*
*
* Data : 2016.7.11
*
* Name : BattleModel
*
* Author : Lin_Xiancheng
*
* Description :
*
*
*************************************************************/
#ifndef __BattleModel_H_
#define __BattleModel_H_
#include "cocos2d.h"
using nam... |
2e33b55e3817b9fca02a386338932e1b92185b86 | 63b4c259451abab38016ab680d4225a4c0f34215 | /app/src/main/jni/JubiterSDK_C/include/token/BTC/JubiterBladeLTCImpl.h | df47987b085d8cb28ef0fb95d693100aa77cde92 | [] | no_license | JubiterWallet/nfcDemo-Android | 5635fd1692b4b8f7cc63601ed7b7120ceab5ba32 | 062f8a608f06964ed6ae3ba58efacb4ffbfbbbb9 | refs/heads/master | 2021-03-25T22:27:45.658311 | 2020-12-08T08:55:51 | 2020-12-08T08:55:51 | 247,650,181 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | h | JubiterBladeLTCImpl.h | #pragma once
#include "token/BTC/JubiterBladeBTCImpl.h"
namespace jub {
namespace token {
class JubiterBladeLTCImpl :
public JubiterBladeBTCImpl {
public:
JubiterBladeLTCImpl(JUB_UINT16 deviceID) :
JubiterBladeBTCImpl(deviceID) {
_coin = TWCoinType::TWCoinTypeLitecoin;
};
~JubiterBla... |
61552c872864cac8d96f21882cf40858d7bccfdb | a2d8721b10bd87d0fbef162f4eeae3adf52cf42c | /app/LatinIME/native/dicttoolkit/src/utils/arguments_parser.cpp | 1451284f152e87dee96c9d7e1bfc32ffca26b26b | [
"MIT"
] | permissive | makerforceio/auto_emojiboard | 7c0bf2ef2be5ee4164cfedd18d35065cc98f07a6 | c15fed723a6a63394cce7b43d777fc1adc8c3ea8 | refs/heads/master | 2023-07-07T11:55:26.377440 | 2023-07-01T05:14:02 | 2023-07-01T05:14:02 | 119,136,248 | 0 | 1 | MIT | 2023-07-01T05:14:04 | 2018-01-27T05:34:22 | Java | UTF-8 | C++ | false | false | 6,532 | cpp | arguments_parser.cpp | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... |
c13c64a2fc53f48f16ca52179e9ecfd027f2ced4 | 9ec83fc383b55c0ae8959e274f40899537c52922 | /Shared/Score.cpp | 7a2f455ad7c5aeb3d8b918df3611e794397ff2ea | [] | no_license | MDBCooper/Assignment1 | dd6b83cc2396c51f0c153f80399273e23ab47721 | b1d497b705a6e8409e5b91edc8df45006e1359cf | refs/heads/master | 2020-04-10T01:05:33.349716 | 2019-01-21T18:58:52 | 2019-01-21T18:58:52 | 160,705,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | Score.cpp | //Marcus Tryamane Kwame Angel-Whyte - 27010863
//Joshua Wastnidge - 27018846
//Matthew Cooper - 27014660
#include "Score.h"
Score::Score()
{
amount = 0;
}
const int Score::get_amount() const
{
return amount;
}
void Score::update_amount(int amt)
{
amount += amt;
} |
f54974d86acf6f16595c7d15d08c7a6c82f7a76f | 5a674fad0679d20425f62781279b0144e99f1c67 | /test/HttpsServer.cpp | 2dc9e022b0b5ec3fbb90e35ed70ce17c41366114 | [] | no_license | YingshuLu/tigerso | 0b37456369fbf4eb70eb083d381beb6a9fffebc2 | 4690bdc35099afd27aba493b8657a402f253d6e3 | refs/heads/master | 2021-09-09T05:52:32.118722 | 2018-03-14T02:11:54 | 2018-03-14T02:11:54 | 108,242,214 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,402 | cpp | HttpsServer.cpp | #include <stdlib.h>
#include <string.h>
#include <string>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "core/SysUtil.h"
#include "net/SocketUtil.h"
#include "net/Socket.h"
#include "ssl/SSLContext.h"
#include "core/ConfigParser.h"
using namespace std;
using namespace tigerso;
static ConfigParser* g_conf... |
ba5bcf11274337235314ad999ad968afc4d57e78 | 238185b2c5e09228e6aeafbd808df41032887ac8 | /Fall2019/hw3_ex2.cpp | a6db196ed8c56454e81569f2763c110040f5c771 | [] | no_license | zmiksis/SciComp | ffdbaf8d0e777485457d9e5d3a4dbd3792a84e39 | 661141e1014cd75d861ccdb1e18ad448617f24d1 | refs/heads/master | 2020-12-15T16:57:25.414177 | 2020-01-20T19:50:42 | 2020-01-20T19:50:42 | 235,185,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | hw3_ex2.cpp | #include <iostream>
using namespace std;
int nchoosek(int n, int k);
int main(){
for(int n = 0; n <= 10; n++){
for(int k = 0; k <= n; k++){
cout << "(" << n << ", " << k << ") = " << nchoosek(n,k) << endl;
}
}
}
int nchoosek(int n, int k){
int NK;
int nfact = 1;
int kfact = 1;
int nmkf... |
f03fe3b500ec627f342d6b91f11e49bd901a85f7 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/2030 2011-10-22 22 20 57.cpp | 3f7f018f5079ad20d2a6cbf21ff891665c9b54aa | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | 2030 2011-10-22 22 20 57.cpp | ******************************
Author : townboy
Submit time : 2011-10-22 22:20:57
Judge Status : Accepted
HDOJ Runid : 4805443
Problem id : 2030
Exe.time : 0MS
Exe.memory : 188K
https://github.com/townboy
******************************
#include<stdio.h>
#include<string.h>
void main (... |
1b2920cf99f2d25abbb92ca8ed4d2c2d5fd9f1e0 | 31b2330a69007437a1cbe8aae80a8341e223d4f1 | /HtmlEditor/tagslist.h | 829bdd4665ffe5cc674c302cf4858ede0daab762 | [] | no_license | KacKoz/HtmlEditor | 05807e5b37c00200eb7a74dde0fc5b862180b5d6 | faaadc5715bccf28659bf450875175cf046b839f | refs/heads/main | 2023-04-19T09:02:45.628796 | 2021-05-09T20:43:28 | 2021-05-09T20:43:28 | 343,854,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | h | tagslist.h | #ifndef TAGSLIST_H
#define TAGSLIST_H
#include <QString>
#include <QObject>
#include <QDebug>
template<typename T>
class Node{
public:
Node(T _data,Node* _sibling=nullptr,Node* _child=nullptr,Node* _parent=nullptr):data(_data),sibling(_sibling),child(_child),parent(_parent){};
T data;
Node *sibling,*child... |
f1b8d506bb718a68e04a8dab90e156868f5234fb | 2d81f52c4e0b05e485c86ac11f578884130ab834 | /practicas/segundo.cpp | 262ed90857a9abc96e73574e1e883c6b370c2b3a | [] | no_license | alfredchavez/IPOO | 9ec916cdfb2912803c8c70f1ae93d11b0ee7cc70 | 79c8f794db17aa1133d681b522d3ceed77db321b | refs/heads/master | 2021-01-13T01:26:57.548781 | 2015-11-19T14:10:36 | 2015-11-19T14:10:36 | 41,098,002 | 0 | 0 | null | 2015-09-14T18:35:33 | 2015-08-20T13:45:06 | C++ | UTF-8 | C++ | false | false | 227 | cpp | segundo.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int a=0,b=1,c;
int acum=0;
while(c<4000000){
c=a+b;
a=b;
b=c;
if(!(c&1) && c<4000000)acum+=c;
}
cout<<acum<<endl;
return 0;
}
|
6f80ff138616bfa89f21f8121031283b09f44bd9 | 0e4378bfe374001a61f9f08b36b9e9d91001c703 | /src/autonomous.cpp | 3cb1d474bbab4f94b89969278109f7b88b02cccb | [] | no_license | YashK19/LunarWolvesCertification- | 85e7787bce2fd161852a395a2e45d7ddbb599324 | 66279027da39a929b92bc07f0d1b1016c43a4643 | refs/heads/master | 2022-04-27T03:50:11.510642 | 2020-04-22T04:00:46 | 2020-04-22T04:00:46 | 254,940,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | cpp | autonomous.cpp | #include "main.h"
// all autonomous code will be written here
void autonomous() {
}
|
5aad253b206361329d6e591c6491a3baceb5d207 | 2b1b459706bbac83dad951426927b5798e1786fc | /zircon/kernel/lib/syscalls/ddk_x86.cc | 33d4e017997f14478abcf5d01a522d3fbf828387 | [
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 334 | cc | ddk_x86.cc | // Copyright 2018 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include "ddk_priv.h"
zx_status_t arch_smc_call(const zx_smc_parameters_t* params, zx_smc_result_t* result) {
return ZX_ERR_NOT... |
0dc6f4606724fbc236d070ab6aed78d642bc19a6 | c8a2573d12de65b37367ce2de603bf96bd95388e | /dreal/util/filesystem.h | 6927fff7894ac2a4da7ca6d8cfdc17daf84246a2 | [
"Apache-2.0"
] | permissive | em-mcg/dreal4 | 8233a0894a6d3b0200db4e7b1e8585f889920dd4 | d89ee2ebb2d879d08cab977496155a440782870a | refs/heads/master | 2020-04-08T20:45:27.685294 | 2019-01-13T14:22:45 | 2019-01-13T14:22:45 | 159,713,560 | 1 | 0 | Apache-2.0 | 2018-11-29T18:59:59 | 2018-11-29T18:59:58 | null | UTF-8 | C++ | false | false | 360 | h | filesystem.h | #pragma once
#include <sys/stat.h>
#include <string>
namespace dreal {
/// Returns true if a filename @p name exists.
bool file_exists(const std::string& name);
/// Extracts the extension from @p name.
///
/// @note It returns an empty string if there is no extension in @p name.
std::string get_extension(const std... |
fb88fdacf285a711140ffa83cdcdfd9f0f7fa62c | 3df13471039bee96dbb9aa03334b2fe494cd1790 | /CoreCLRProfiler/native/coreclr_headers/src/pal/tests/palsuite/c_runtime/vprintf/test5/test5.cpp | 69a9f0d2405aa9770fe86d31f401e767127ba52a | [
"MIT"
] | permissive | microsoft/BPerf | 9bb8e9d9157f0b0a55adce4f2abd00ecac541c3d | 0acd0efe734628d7e198fd58e35b9038501bfbe5 | refs/heads/dev | 2023-06-07T23:45:45.236017 | 2022-09-23T03:29:26 | 2022-09-23T03:29:26 | 66,505,813 | 25 | 15 | MIT | 2022-12-07T21:25:35 | 2016-08-24T23:01:44 | C++ | UTF-8 | C++ | false | false | 1,944 | cpp | test5.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test5.c
**
** Purpose: Test #5 for the vprintf function. Tests the count specifier (%n).... |
69f97f1f49a3fee2c87c9c204fca144edcd80f69 | a5291ac1bbf45bf0143407d08c5f3ff57c830d53 | /idtoken.cc | 8ac3e3c48d3e57e178f55d93a60aa9ab1d99883b | [] | no_license | dgzzhb/TianPL | 0d4b14b49e6ff9e4b46a8691516f6e67344f0550 | 01bb2a6a2989472b4511564dbb064baa0678b030 | refs/heads/master | 2021-01-22T13:38:17.507281 | 2012-09-24T05:52:25 | 2012-09-24T05:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cc | idtoken.cc | /*
* idtoken.cc
*
* Created on: 2012-9-21
* Author: Tian
*/
#include "idtoken.h"
IdToken::IdToken()
{
set_token_type (TOKEN_ID);
attribute = NULL;
}
IdToken::IdToken(string *attr)
{
set_token_type (TOKEN_ID);
attribute = new string (*attr);
}
IdToken::~IdToken()
{
}
string *IdToken::get_attribute()
... |
188d2b88c226181446c630eaca8ed8701cf9e142 | 91340bab5267d0ef34ec9c4ed667ec3922cb2f74 | /src/drake_kmeans.cpp | 1613c3f8f03e5ed158075630e4f00fa0396a34d4 | [
"MIT"
] | permissive | jutinguely/fast-kmeans | f9e56e274de5f325e86e05563747d83ff3514402 | 0f0034851653875f8a8627aab76603c8171f9593 | refs/heads/master | 2022-09-28T15:45:44.367119 | 2020-06-04T11:54:47 | 2020-06-04T11:54:47 | 269,294,564 | 0 | 0 | MIT | 2020-06-04T07:49:42 | 2020-06-04T07:49:41 | null | UTF-8 | C++ | false | false | 7,778 | cpp | drake_kmeans.cpp | /* Authors: Greg Hamerly and Jonathan Drake
* Feedback: hamerly@cs.baylor.edu
* See: http://cs.baylor.edu/~hamerly/software/kmeans.php
* Copyright 2014
*/
#include "drake_kmeans.h"
#include "general_functions.h"
#include <cmath>
#include <algorithm>
#include <cassert>
DrakeKmeans::DrakeKmeans(int aB) : closestOth... |
2c960921a0e2e137b801a43fd7e67ff89e9dabcf | 486cfcd3396683a1684a69012d8390593e40e65d | /datastruct/priority_queue_demo.cpp | ca0d694a753b6edb0b5d06cdeac2550456ac54c2 | [] | no_license | StreamAI/ADT-and-Algorithm-in-C | a58e884eb2401c14d0f292b243b2a96f256c3294 | 3f5a035591a60ad06c4cb8f0dddb6692d6ce69d3 | refs/heads/master | 2021-07-11T10:17:27.315471 | 2021-01-15T15:48:55 | 2021-01-15T15:48:55 | 225,009,339 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cpp | priority_queue_demo.cpp | #include <iostream>
#include <queue>
int main(void)
{
std::priority_queue<float> pq;
//insert three elements into the priority queue
pq.push(66.6);
pq.push(22.2);
pq.push(44.4);
// read and print two elements
std::cout << pq.top() << ' ';
pq.pop();
std::cout << pq.top() << std::en... |
54f90d76d93a89b7f746309fd971c87b9a2c3df8 | b511faedb63402996ce657ebe58a537d672b871b | /socket.cpp | 8e3c5d755194037a35b6872359cb3131a366f211 | [] | no_license | apir8181/training | de7a2427ec001a38d29acec77cf4319e02392263 | 31ae6e24b9e71e6f3e7223d8a641f007b48f3812 | refs/heads/master | 2021-01-02T08:33:09.221810 | 2013-08-20T04:47:01 | 2013-08-20T04:47:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,085 | cpp | socket.cpp |
#include "socket.h"
#include "kvhelper.h"
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
using std::string;
using std::cout;
using std::endl;
extern int errno;
namespace mmtrainin... |
104c5a11249fa8d8bc344e59c300e60311024d71 | afd54948be16510bf0c6f1a8cf4b28260e1bfc92 | /cpp/util/cpl_memory_closer.h | 39f67cdba306393f36913bfa58e1db185807bf17 | [
"Apache-2.0"
] | permissive | schwehr/gdal-autotest2 | f80462c420bf3ed16cb9f07020227333dacbff9f | 577974592837fdfc18fd90b338cb657f1f2332bd | refs/heads/master | 2022-12-01T13:18:54.112511 | 2022-12-01T09:00:18 | 2022-12-01T09:00:18 | 63,436,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | h | cpl_memory_closer.h | // Wrap CPLStrdup to call CPLFree when an instance goes out of scope.
//
// Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:... |
f2867479285bd31db144502d181eb4892ffcd0a0 | c61a4fcad61ac93225d55a8da06bb05c87c2a20d | /arduino/TxRxSend_uid/TxRxSend_uid.ino | 84a9e85868ed88693b8e80f5fea278f5732375ab | [] | no_license | j900155/Trunk | 33d5dad74b7481b8b05ad6c852c896b52f080cc0 | 11d6e1e18f9f4af8f95243e698664260ea87caf1 | refs/heads/master | 2021-01-10T10:25:51.816601 | 2015-11-22T01:19:05 | 2015-11-22T01:19:05 | 46,641,211 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | ino | TxRxSend_uid.ino | #include <SPI.h>
#include <Arduino.h>
#include "PN532_SPI.h"
#include "PN532.h"
#include "NfcAdapter.h"
#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 9); // RX, TX
PN532_SPI interface(SPI, 10); // create a SPI interface for the shield with the SPI CS terminal at digital pin 10
NfcAdapter nfc = NfcAdapter(int... |
b7a53b131c2cb88ee9d04e44d82648ca7ecbacf6 | 397403cb1e7fc66e2a849859a9c66ac915b3f9d6 | /Plugins/OSSShading/Intermediate/Build/Win64/UE4Editor/Inc/OSSShading/MaterialExpressionOSSMul3.generated.h | 2ef26d3b690dd84914c657d0dfb1a3909a440fba | [] | no_license | seanssoh/HenryAlone | cdc0fb62bbc49f965ab255a5add598dd44501ebb | 3555bbac6823749338682c280161db99fd1e6080 | refs/heads/master | 2021-01-11T03:12:30.710772 | 2016-10-17T16:51:59 | 2016-10-17T16:51:59 | 71,038,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,756 | h | MaterialExpressionOSSMul3.generated.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
C++ class header boilerplate exported from UnrealHeaderTool.
This is automatically generated by the tools.
DO NOT modify this manually! Edit the corresponding .h files instead!
=... |
4318f15a45ef51d227fa369eb562b442e95f6c2d | 1ae93c7f8f507703623aa2084789d8d1c14bc3c1 | /main.cpp | cca987144423a39acc4c4211cb40813bab463a7e | [] | no_license | mcd005/mbedAccelerometer | d2fc4b63c7c1ff8a3f2da70e51949c875e4c5c43 | 264d3b995708a4a4a33cc9f98025fc9b410595b0 | refs/heads/master | 2020-08-12T20:19:42.611235 | 2019-10-13T15:18:17 | 2019-10-13T15:18:17 | 214,836,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,097 | cpp | main.cpp | #include "mbed.h"
#include <stdio.h>
#include <math.h>
#include "ADXL362.h"
#define PI 3.14159265
#define TRUE 1
#define FALSE 0
/* function declaration */
void initialise_setup();
void retrieve_fromfile(float *T, double *d);
DigitalOut led1(LED1);
DigitalOut led2(LED4);
float tilt_pitch[3500];
float tilt_roll[3500]... |
4a98afcc4489668d4e026b83f02f3a2d05bb0841 | a6bb89b2ff6c1fc8c45a4f105ef528416100a360 | /contrib/framewave_1.3.1_src/SampleConvert/SRC/FW_readfiles.cpp | 10b07776a5eb9426289dac7e2b798beb58e7d5bf | [
"Apache-2.0"
] | permissive | dudochkin-victor/ngxe | 2c03717c45431b5a88a7ca4f3a70a2f23695cd63 | 34687494bcbb4a9ce8cf0a7327a7296bfa95e68a | refs/heads/master | 2016-09-06T02:28:20.233312 | 2013-01-05T19:59:28 | 2013-01-05T19:59:28 | 7,311,793 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,933 | cpp | FW_readfiles.cpp | /*
Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved.
This software is subject to the Apache v2.0 License.
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include"globals.h"
#include"process_API.h"
/*!
******************************************... |
a79b1ab7c84d83415350b864367a2d9fb99e9b80 | 2f9634843fd2d6ee6c6e777a40d8cfdf1c31b09c | /Project 1/Project 1/Sundae.h | 5af20ac0facc921c5dd91b2bbdb49ba9be6f226c | [] | no_license | ahmedsalamay/OOPC- | 3f4f0a1bd88068fbe0800a0210032592c5d3bc07 | 29a84051d79f3f851380bc6bf92a61ba501e08bb | refs/heads/master | 2021-01-10T14:04:35.220868 | 2015-12-22T15:02:10 | 2015-12-22T15:02:10 | 48,439,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | h | Sundae.h | #pragma once
#include<iostream>
#include<string>
#include"IceCream.h"
using namespace std;
class Sundae :public IceCream
{
double costTopping;
public:
Sundae(string ,double,double);
void set_CostTopping(double);
double get_Cost();
double get_CostTopping();
~Sundae();
};
|
857c28e8a97ad6d439f56d6fcef6c61b3a3670a2 | 8accbd929a40a6fd5f171537cc4cf53ea3a19b37 | /asd.cpp | efc8de01bc324a035cf95bcb6e268372ba9c74ce | [] | no_license | gauravaroraofficial00/solved_cpp | 0a21bf10034e7abf86e7d5d98051afa6ad28e9ce | 6a72fb03a7755f56d601d391449bdc639f5c07f7 | refs/heads/main | 2023-03-28T09:44:40.866911 | 2021-03-30T04:45:14 | 2021-03-30T04:45:14 | 333,078,262 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | asd.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{adas
int t=0;
string s;
cin>>t;
while(t--)
{
cin>>s;
bool lowercase(false),uppercase(false),special(false),digit(false),length(false);
if(s.size()>10)
length=true;
for(int i=1;i<s.size()-1;i++)
... |
7271dd56d7a48602ab1b8e1e6f26e63205bc3623 | 3a2e0625022ac1704b4a71a889bfdf2c9506eb85 | /include/ManageProcess.hh | 4fd0f9f0c1e6d42ed0644f0e8fe5026fa836ac9c | [] | no_license | rusign/Plazza | 715074d380f2887036169a39d7b509f4588cf461 | afe392da3d4c50f83b01dce6c5592065d169d791 | refs/heads/master | 2020-05-01T19:22:35.336926 | 2019-03-25T19:20:59 | 2019-03-25T19:20:59 | 177,647,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,443 | hh | ManageProcess.hh | #ifndef CPP_PLAZZA_MANAGEPROCESS_HH
#define CPP_PLAZZA_MANAGEPROCESS_HH
#include "Parsing.hh"
#include "Commander.hh"
#include "NamedPipe.hh"
#include "NamedPipeInput.hh"
#include "NamedPipeOutput.hh"
#include "ManageThread.hh"
#include <time.h>
#include <thread>
class ManageProcess {
public:
ManageProcess... |
c8d8513e46b1bf4e4cea71500fbac2a771dc1730 | 6aa7a8a5b43320e5824da8d9648a2aa188693bf8 | /llvm/lib/Target/SparcV9/MappingInfo.cpp | 3aa23592888d22a05daa27c00a12cc24f53f5ad1 | [
"NCSA"
] | permissive | chris-wood/llvm-pgopre | 8272a31451a9bb7e97892147fe3f5099cecb8f96 | 644d8936aade9b847e232d46701e49da7835eb06 | refs/heads/master | 2021-01-22T07:32:40.620695 | 2013-11-20T17:46:42 | 2013-11-20T17:46:42 | 14,563,881 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,317 | cpp | MappingInfo.cpp | //===- MappingInfo.cpp - create LLVM info and output to .s file -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... |
5e42f593ae5331b266f8ceb9bd5e2e063cb864fb | cda4fd3a160a5ee54ac0e4c07cb2761fb2bbc560 | /Simple2D/s2Scene/Action/S2ForeverAction.h | e4f1b0cb9db338e1bb71094413434d5b84f3f8f2 | [] | no_license | cnscj/Simple2D | 8b1ef2bcb4b543e45c7b6e22a93143c66fba63b8 | 2d3525071da84def66f57efd6d72586aed99b7df | refs/heads/master | 2020-03-18T18:44:17.487513 | 2018-05-28T05:53:54 | 2018-05-28T05:53:54 | 135,111,726 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 775 | h | S2ForeverAction.h | /**
* @Author: cnscj
* @Version: v1.0
* @Date: 2018-04-24 09:24:00
* @Brief: 无限次动作
* @Last Modified by: cnscj
* @Last Modified time: 2018-04-27 13:43:04
* @Last Modified log:
*/
#ifndef _S2FOREVERACTION_H_
#define _S2FOREVERACTION_H_
#include "S2Action.h"
class S2ForeverAction : public S2Action
{
public:... |
387318a0ea7b7a8a98b89630d5fe49d352fc3dcb | 11012d415c436466f1cab774695cae5eaa0fe9e2 | /include/maguey/uniform.hpp | 9a9282eebfd0de05aedb90151a44ab14960f0d59 | [
"Apache-2.0"
] | permissive | rdelfin/maguey | ff7813ced1ffb70b5398e85ab65d2a10b7dc6f00 | 3354552301113405a23003cd0ca015a55f559ead | refs/heads/master | 2020-03-27T11:46:26.889073 | 2019-05-14T23:50:41 | 2019-05-14T23:50:41 | 115,386,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,442 | hpp | uniform.hpp | // Copyright 2018 Ricardo Delfin
//
// 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 writ... |
5be466a7d50cbd8a91a4075b94c6c418b0da7f23 | 6ac90bff012b170124cb0cc90ec66be1a8904970 | /lang_design/runtime/src/type/type.cpp | d3ee23ad8e323954e1d874e5e504e234e08b411c | [] | no_license | mikedlowis-archive/bitbucket | f3789c763896830ef89679bdd0862f567a25df8d | 500bb8a37466a806dead7575c12f9be8b3eacae6 | refs/heads/master | 2020-04-14T10:30:44.408329 | 2014-07-11T15:22:15 | 2014-07-11T15:22:15 | 3,345,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,029 | cpp | type.cpp | #include <iostream>
#include <sstream>
#include "type.h"
/******************************************************************************
* Constructors and Destructors
*****************************************************************************/
Type::Type(void)
{
}
Type::~Type(void)
{
}
/************************... |
2e4b3fd4314d49abee9c653786a3c00fe140ae27 | 6005f6143c6e138df945d96bbef2cb1eb90debb0 | /uva111hisgrad.cpp | c2afc519b8f2535dd3f73debff0666145cbc8c32 | [] | no_license | swati510/uva-cp3-solutions | 46a2a10db470c2dd93cd4514a97b72f779fe5b86 | 25dce19e7188e8babbe609697ff7c4fb43d0b41b | refs/heads/master | 2022-09-28T21:51:56.300618 | 2020-05-30T19:18:17 | 2020-05-30T19:18:17 | 263,569,287 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 943 | cpp | uva111hisgrad.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int orig[n];
int pos[1000];
for(int i=0;i<n;i++){
cin>>orig[i];
orig[i]--;
pos[orig[i]]=i;
}
int temp, j=0,ar[n];
while(scanf("%d",&temp) == 1){
temp--;
ar[temp]=orig[0];
... |
eecd60c8237315a4f9ec385a1c90cc199d3cc952 | 2ee1ea1154c57de6f7688215bf9dda49e0b15732 | /src/52_hard_N-Queens-II.cpp | 468057388b04b7dd01e6816ea590ce29caffccce | [] | no_license | FinixLei/leetcode_finix | 0801e3f0b1cd4c0275e53ba758465f48ed89f7de | d29f6f8bb57671db44994055016f078afa509a80 | refs/heads/master | 2023-03-07T03:49:48.769433 | 2023-02-20T03:24:07 | 2023-02-20T03:24:07 | 44,184,923 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,084 | cpp | 52_hard_N-Queens-II.cpp | /*
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return the number of distinct solutions to the n-queens puzzle.
Example:
Input: 4
Output: 2
Explanation: There are two distinct solutions to the 4-queens puzzle as shown below... |
d12f7ff27cc7b010941c82da100c72f018e7c615 | 051c898be81003a5c90f5a1ce77a252252774973 | /preliminary/H/33915926.cpp | a7de4675abafebf582ea717104fafbfdfb7f0066 | [] | no_license | mmatrosov/FKN2020 | 29caffa241882e672df654b4857b5674d5f96f6e | 38bfa7811d4af175415f7cc4da81df44b5b4a74c | refs/heads/master | 2022-12-27T19:15:05.849915 | 2020-10-16T07:12:27 | 2020-10-16T07:12:27 | 298,350,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,448 | cpp | 33915926.cpp | /*
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma warning(disable : 4996)
*/
#include <iostream>
#include <iomanip>
#include <random>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmat... |
2c5747bc5338f35116e07ff8947a152ac2f5efff | cc19b90c91ad15585b0b229968f7a7d51f45b0cb | /src/comm/lcm/lcmsend.cc | 146771a0671f8fad99343d647d5a0466447c452e | [] | no_license | zhao0079/mavconn | f631469f4b4df3374ea5f64b9646b05c496dca33 | 34cfdfe6093797b70cd0633a8328215a79476689 | refs/heads/master | 2020-12-29T03:30:56.266643 | 2011-02-11T15:08:39 | 2011-02-11T15:08:39 | 1,726,252 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,897 | cc | lcmsend.cc | /*=====================================================================
MAVCONN Micro Air Vehicle Flying Robotics Toolkit
Please see our website at <http://MAVCONN.ethz.ch>
(c) 2009 MAVCONN PROJECT <http://MAVCONN.ethz.ch>
This file is part of the MAVCONN project
MAVCONN is free software: you can redistribute ... |
c4b21996a99e5699c3d1f42781442d86a79037d6 | 32b8db47c9335f65aeb39848c928c3b64fc8a52e | /tgame-client-classes-20160829/game/fight/QStageEntityObj.h | e35992c0bfe623661bf4414294447d1671074d20 | [] | no_license | mengtest/backup-1 | 763dedbb09d662b0940a2cedffb4b9fd1f7fb35d | d9f34e5bc08fe88485ac82f8e9aa09b994bb0e54 | refs/heads/master | 2020-05-04T14:29:30.181303 | 2016-12-13T02:28:23 | 2016-12-13T02:28:23 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,162 | h | QStageEntityObj.h | #ifndef QStageEntityObj_h__
#define QStageEntityObj_h__
#include "cocos2d.h"
#include "CSPlayerMsg.pb.h"
#include "UserInfo.h"
#include "MonsterCfgMaster.h"
#include "Macros.pb.h"
#include "vlib/Common.h"
USING_NS_CC;
using namespace std;
struct CMovements{
string emergeAct;
CMovements(){
eme... |
6151859a863d0b2267e550247f6be8b39f8d504d | 16288c0fb3a712150c715ddd0c9843e75f69034b | /cpp03/ex04/FragTrap.cpp | 6a3cce4dc509bbc673132fb9f96799defbdc4756 | [] | no_license | brian-xu-vlt/42_CPP_PISCINE | 3c6cb8ce224e53335b3e53cd24c97dc867c2d9f0 | bda1f5834649e50012d0153c3cdd28769280fc9d | refs/heads/main | 2023-02-25T23:17:43.176521 | 2021-02-03T07:12:22 | 2021-02-03T07:12:22 | 323,266,501 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,524 | cpp | FragTrap.cpp | #include "FragTrap.hpp"
#include <stdlib.h>
#include <sys/time.h>
/*
** ------------------------------- CONSTRUCTOR --------------------------------
*/
FragTrap::FragTrap( std::string const name ) : ClapTrap(name),
_level(1),
_energyPoints(100),
_hitPoints(10),
_max... |
af36baf45bd9adadbc4ccb39fdb6d6091f31cac9 | 305c4a15e7bedd151de8734583eba8297fb617f9 | /codeforces/978E.cpp | b9221a2306e095156fc4ef9d133d8e5d94b9f945 | [] | no_license | thebes2/Competitive-Programming | f5f9d750c321974d2efb6aab96b48cb31bccaf8b | cc2c0d61ff29d87c394f0c09cb6951a3493d8d12 | refs/heads/master | 2021-06-19T08:27:23.829006 | 2020-12-25T17:32:11 | 2020-12-25T17:32:11 | 143,365,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | 978E.cpp | #pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,ssse3,sse3,sse4,popcnt,avx,mmx,abm,tune=native")
#include <bits/stdc++.h>
using namespace std;
const int MN = 1004;
int arr[MN], n, w, i, a, b, tot;
int main(){
for(scanf("%d%d",&n,&w),i=1;i<=n;i++){
scanf("%... |
f00cf5ade3a178109144d25f6f6e875494cc7a6b | b5e2b699b398583a6284dd3730af5a224fa07da6 | /Classes/SMFrameWork/UI/PulsActionView.cpp | db8a035b23624f9bdaee0a28c674f0ef6fa56cc5 | [] | no_license | brokenpc00/SMFrameWork_CPP | 21b435d588bdded3e59818127bba42524af3bcda | 0038a631c1fc31a5366655ac84479c97bee528fa | refs/heads/main | 2023-02-26T15:08:56.466222 | 2021-02-01T23:44:18 | 2021-02-01T23:44:18 | 335,111,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,953 | cpp | PulsActionView.cpp | //
// PulsActionView.cpp
// SMFrameWork
//
// Created by KimSteve on 2016. 12. 6..
//
//
#include "PulsActionView.h"
#include "../Base/ViewAction.h"
#include "../Const/SMFontColor.h"
PulsActionView* PulsActionView::puls(SMView *baseView, cocos2d::Node *parent, float x, float y)
{
auto view = new (std::nothrow)... |
9d6f77032af273e742935609730cda6148146d2f | ea26757ba82101eb0a2e072de42040f5c2e828e1 | /HSR Server Engine 19.05.08/HSR GameServer/UserManager.h | ce2f46d40e3dd98eeb3edf57f094c0289556507c | [] | no_license | jhj90331/Rhythm-Game-Server | c0e82f6d593c663262c68a9dbaed914ac5ca36fc | 2e6d78feba353d70be04698e23a1f27979012ade | refs/heads/master | 2020-09-11T12:28:01.869797 | 2019-11-16T08:15:03 | 2019-11-16T08:15:03 | 213,973,031 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,383 | h | UserManager.h | #pragma once
#include "pch.h"
class User;
class Session;
class UserManager : public Singleton < UserManager >
{
unordered_map<oid_t, User*> userPool_;
list<User*> playerMatchingQueue;
int queueCount;
CRITICAL_SECTION cs;
public:
UserManager() {
InitializeCriticalSection(&cs);
queueCount = 0;
}
void ... |
1bbb69f6a7dba467e3a7d46fd1cba2894c7424ce | ce81041d082248f42a418f6f8a8ea391e7d32c66 | /GAME1007 Assignment/SDL_Template32/EnemyBullet.cpp | 55d2704f7577a790ca174ece3ef09ee4560741b5 | [] | no_license | stefangrujic/GAME1007_Assignment | 616dc3f212b273610a9859b90e283bd8382b4de0 | 856b7e2787efd1fc88dd5ad468fc309a4150916e | refs/heads/master | 2021-03-31T05:44:02.222414 | 2020-04-17T22:45:47 | 2020-04-17T22:45:47 | 248,082,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | EnemyBullet.cpp | #include <Enemybullet.h>
class Enemy;
class EnemyState
{
public:
virtual void update(Enemy* enemy) = 0;
};
class EnemyStateIdle :public EnemyState
{
//...stuff...
void update(Enemy* enemy)
{
//do nothing
}
};
class EnemyStateAttack : public EnemyState
{
private:
public:
void u... |
594d27f5f6450345ba725d222a1642a4156926ff | c2b3aa1b7d16ea5ad6362476261955d98a6afa10 | /PP6Lib/Week1.cpp | ba781e316f3f5a6e7d623762f48ebbe20f02bbdc | [] | no_license | Williams224/pp6calculator | 40615e0bb49bc8c033eee697b2e591bb58a7a691 | 9bea1550cfa528bda195403533f751b49e8e8719 | refs/heads/master | 2020-05-18T17:02:33.890378 | 2014-12-07T21:15:41 | 2014-12-07T21:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,549 | cpp | Week1.cpp | #include<iostream>
#include<string>
#include<climits>
#include<cmath>
#include<vector>
#include<stdlib.h>
#include<time.h>
#include "Math.hpp"
#include "Week1.hpp"
void Week1 (){
double a;
double b;
double c;
double d;
double v;
double n;
double swapme;
double swapme2;
double psolution;
double nsolution;
dou... |
7fe815a9524886b1f225879450c3a8a33624db46 | 98646bc3ad5b0bb9a3f7e739fd53bfe4c2ece9fa | /GenericRPG/TileSetGameObject.h | f056df02a24f961c2bfd46857cc020d014ff4cd0 | [] | no_license | nCubedProjects/GenericRPG | 885d7ab2c8f7785eae0e40413ef89e45f2219482 | 04f6083bf5376a704ce102cd02404a28d8a290e4 | refs/heads/master | 2023-01-30T08:53:46.896624 | 2020-12-14T22:25:54 | 2020-12-14T22:25:54 | 289,518,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | TileSetGameObject.h | #pragma once
#include "GameObject.h"
class TileSetGameObject :
public virtual GameObject {
public:
TileSetGameObject();
TileSetGameObject(SDL_Texture* texture, int, int);
virtual void Render(SDL_Renderer*);
protected:
SDL_Rect* frames;
int total_frames;
};
|
ed6a705751f471f7921edbc33c705b29bb38b816 | a1b7f3cdb35ca6d051a1d1e4e83296687580f4a0 | /Core/Common/InputDevice.h | 6f8086783d269cfa0760ce9bf7f257ef6a7153e7 | [] | no_license | keithbugeja/meson | ca1afc32d170bc16a712387f797d202322896267 | fe81e1d74d35d37609b22b692366efc95fbfc61d | refs/heads/master | 2021-03-27T19:51:13.811968 | 2012-10-01T21:57:23 | 2012-10-01T21:57:23 | 87,206,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | InputDevice.h | #pragma once
//----------------------------------------------------------------------------------------------
//
//
//----------------------------------------------------------------------------------------------
// Author Date Version Description
//--------------------------------------------------------... |
823b80cf60f0f8fc42dabd1028b6e46fd51a8fa9 | 81ea8d23a65a70d3cbf2218cd9bcaa627d037927 | /microwave-oven/temperature.ino | 03a53c33d73f546e2801fcdbdf84d14a83c720ce | [] | no_license | barionleg/Arduino-Projects | d36be968b6df7972138bef3c594c6422c361ef96 | 6838b095cda3d18d6ec91d59b39b251bb14ea243 | refs/heads/master | 2023-03-19T02:14:03.498954 | 2018-03-22T05:12:34 | 2018-03-22T05:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | ino | temperature.ino | int temperature() {
// put your main code here, to run repeatedly:
float temp;
temp = (float)analogRead(0)*5/1024.0;
temp = temp - 0.5;
temp = temp / 0.01;
return (int)temp;
}
|
3601995ed7eb5758795176bfb7f35fa22d9ca22b | a802488c68d5c8607e8d4696b8244eaacc9c3ac2 | /DK/DKFramework/DKSoftBody.cpp | d94656058180f23fb3454a8a0f689662486a8e05 | [
"LGPL-2.0-or-later",
"BSD-3-Clause"
] | permissive | Hongtae/DKGL | e311c6e528349c8b9e7e8392f1d01ac976e76be1 | eb33d843622504cd6134accf08c8ec2c98794b55 | refs/heads/develop | 2023-04-28T22:02:44.866063 | 2023-01-14T02:11:30 | 2023-01-14T02:11:30 | 30,572,734 | 11 | 3 | BSD-3-Clause | 2023-01-18T03:02:10 | 2015-02-10T03:23:18 | C | UTF-8 | C++ | false | false | 609 | cpp | DKSoftBody.cpp | //
// File: DKSoftBody.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2016 Hongtae Kim. All rights reserved.
//
#include "Private/BulletPhysics.h"
#include "DKSoftBody.h"
using namespace DKFramework;
DKSoftBody::DKSoftBody()
: DKCollisionObject(ObjectType::SoftBody, new btSoftBody(nullp... |
862b9f86572bd313f804d8fe8ba95d58bd25af1e | a2930692a7c049accfed8648220af22e8b881ec4 | /src/MQTTController.h | 191e114f34fa7930be3311c7bb2b105a26020c58 | [] | no_license | Mik-/mqtt-doorbell | 416c8c4cb1e0a3df674d721aabb38c6a19a51c8c | 1d214a22f661371f763dbbb0d16e2bbcc41031a0 | refs/heads/master | 2021-09-14T17:23:47.728491 | 2018-05-16T16:06:36 | 2018-05-16T16:06:36 | 107,858,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | h | MQTTController.h | /*
Copyright 2017 Michael Neuendorf
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, softwa... |
de3e21e4b492539f3c9f0d7874ec1faf8205dd0c | df65e9d2feffe082ab5ffed670833ed880490065 | /SudSolv.cpp | a7bbb97828b69054424048d41d2d37079c29bdfb | [] | no_license | hardikarora24/Sudoku-Solver | 038b695d8637e874dfe356826185fff241b85bc2 | 59293e8fbb0820cc90cc264401ac30a7adf28e4b | refs/heads/main | 2023-02-07T06:59:28.505699 | 2020-12-30T14:19:38 | 2020-12-30T14:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | SudSolv.cpp | #include <iostream>
#include <vector>
#define pb push_back
using namespace std;
int main(){
const int r = 9, c = 9;
vector<vector<int>> S(r, vector<int>(c));
//for(auto& Si : S) for(auto& Sij : Si) cin>>Sij; //input(we could potentially hard code the input ig)
} |
5b242dd2cfa846801a2cb0aef5f419a265d49307 | b1ec31f5854ee53f371332129ab053a845857aa5 | /C++/Solved/695_MaxAreaOfIsland.h | 143262da02e9d13feab22495af4c0358590e0d97 | [] | no_license | bubbercn/LeetCode | e9c1ec2e6f9260b69f64e63fbd2bf97cf65e3ad7 | 42c19adba8d360059e8159564d7384d662c24e8d | refs/heads/master | 2023-08-31T10:40:06.288845 | 2023-08-26T13:55:55 | 2023-08-26T13:55:55 | 56,971,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,704 | h | 695_MaxAreaOfIsland.h | #pragma once
#include "Common.h"
class Solution
{
public:
int maxAreaOfIsland(vector<vector<int>> &grid)
{
int m = grid.size();
int n = grid[0].size();
int result = 0;
vector<vector<bool>> visited(m, vector<bool>(n, false));
for (int i = 0; i < m; i++)
{
... |
124b96560ab726b3f25f08f866c8762da8f61633 | 0d25ac15baf0a0d01f2497a43c2d5338c0a3ad8c | /source/math/prVector3.cpp | 2254de1d71a12860703e4980cc7e7ef241755661 | [
"Apache-2.0"
] | permissive | pmac1965/proteus | 50bd5b115f2377f196eb26a31b37ee53a6b231ad | 53f366be90739f456c64f09cbec565a0e97b2629 | refs/heads/master | 2022-07-17T21:34:07.219205 | 2021-09-09T00:22:38 | 2021-09-09T00:22:38 | 16,365,064 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | cpp | prVector3.cpp | /**
* prVector3.cpp
*
* Copyright 2014 Paul Michael McNab
*
* 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 requir... |
5a07314952622de65e415a2f10179acc185ed3dd | e4bac6562a0ed037b14dc6b1650d08f30859cbf7 | /guillotine_interop/layout2d.h | 93f9a7a21dcd85f503c04e34d277a948d3f92ec3 | [] | no_license | boussaffawalid/CutOptima | 8b17b4853378b067ad9d58814bd5d19142d69401 | 70f1216093c313c5594c76fc9df2ce16b5338e98 | refs/heads/master | 2016-09-06T06:22:51.140260 | 2014-09-13T11:17:07 | 2014-09-13T11:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | h | layout2d.h | #ifndef Layout2dH
#define Layout2dH
#include "layout1d.h"
namespace Denisenko {
namespace Raskroy {
const scalar DEFAULT_SAW_THICKNESS = 4;
class Layout2d {
Amounts *m_remains;
Sizes *m_sizes;
scalar *m_minSize;
Layout1d m_layout1d;
int m_nesting;
int m_completedCounter;
bool Recursion(Sizes::iterator begin... |
39919d0c402cc92701400521629fe5737aab122a | a510f3f1a1734706b1a36795910d39954a4c0006 | /include/ugl/trajectory/bezier_sequence.h | 37a2ff8bb37720b20ed4877c5fbe385714de0dc0 | [
"BSD-2-Clause"
] | permissive | kullken/ugl | c30accfbf279c3e40d3bb39421f2412a75628a4b | ec8651967643d5cb8bd9ae9e39a082469e96841a | refs/heads/master | 2023-03-22T03:11:31.221475 | 2021-03-19T14:07:52 | 2021-03-19T14:07:52 | 259,659,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | h | bezier_sequence.h | #ifndef UGL_TRAJECTORY_BEZIER_SEQUENCE_H
#define UGL_TRAJECTORY_BEZIER_SEQUENCE_H
#include <cassert>
#include <memory>
#include <stdexcept>
#include <vector>
#include "ugl/math/vector.h"
#include "ugl/trajectory/bezier.h"
#include "ugl/trajectory/trajectory.h"
namespace ugl::trajectory
{
template<int degree>
class... |
fe95ee7a5133b296f5f8ff4566eaff2e5df41c34 | eeef686523c48b6a146740b6e437845b76eba5c2 | /firmware/esp-wroom-32/dc26-esp/main/lib/Task.cpp | be41bc75688a6fb3831405d1a416fa38e77ee139 | [
"MIT"
] | permissive | thedarknet/dc26-badge | 4978dbab386048a043c3eed3df04429a01dcf620 | 63ec6ed78119f4a01306306670271d03764ec5c3 | refs/heads/master | 2021-09-20T17:15:32.536441 | 2018-08-13T05:07:43 | 2018-08-13T05:07:43 | 112,964,686 | 15 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,957 | cpp | Task.cpp | /*
* Task.cpp
*
* Created on: Mar 4, 2017
* Author: kolban
*/
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <string>
#include "Task.h"
#include "sdkconfig.h"
static char tag[] = "Task";
/**
* @brief Create an instance of the task class.
*
* @param [in] taskN... |
915456a6e70b2ed307f28297aed8468af774dc03 | 424f690095d4e16d7685be696c274cda9f3de7e4 | /Core/StateMachine.h | 05c64d4889fd70d20cbc97fef3a54006f3dcd777 | [] | no_license | jaeg/Game | 44d9261ee3fb54827986678766ef4883cda8e6f5 | 8a423efd696e0a815d0f1b9f6b07f5c7be6cc1f7 | refs/heads/master | 2016-09-02T01:32:42.974050 | 2013-06-05T03:14:19 | 2013-06-05T03:14:19 | 10,493,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | StateMachine.h | #pragma once
#include "State.h"
#include "StateEnum.h"
#include "Referenced.h"
class StateMachine : public Referenced
{
private:
State* currentState;
State* pausedState;
public:
StateMachine();
void SwitchState(State* state);
void SuspendSwitchState(State* state);
void RevertState(... |
00348244196a502271b7dc1d17fe41b50b46a3d0 | 219e2f2afb4c2d92ccaba80cb4820b43f1a4f5e3 | /src/SoundObject.cpp | 573dc11edc51c21d4b5799a7e6c8dea443714b04 | [] | no_license | Orbayd/Game-Physics-Development | 4724b640e8412d078d59497277fef83ef6f0c5f5 | dbf32583f08465fabbadcdcb99563775291df126 | refs/heads/master | 2021-01-10T15:55:28.703123 | 2016-03-20T00:12:43 | 2016-03-20T00:12:43 | 54,291,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | SoundObject.cpp | #include "SoundObject.h"
#include <cstdlib>
#include "Simulation.h"
#include <assert.h>
#include "SoundMan.h"
SoundObject::SoundObject()
{
pSndEngine = SoundManager::getSoundEngine();
}
SoundObject::~SoundObject()
{
}
int SoundObject::getRndNum(int maxnum)
{
std::srand((unsigned int)Simulation::Instance()->getTotalT... |
d3e5b0f1e5434710196b36d94b83fdb114baf3b6 | 7eea3822a8af5a07d0299bc372e50a714b86f648 | /Study8/Study8_2.cpp | bcbe382954f236bffe7af4afdd223337b2f74bb0 | [] | no_license | songminkyu/CPP_TEST_UNTIL_17 | c6eade1d64e83d0b246554abce71d3a9bd3ea415 | 4c95c072512b289373d27bb2d5aff5c0f60042b5 | refs/heads/master | 2022-12-09T23:33:38.635871 | 2020-09-03T17:30:56 | 2020-09-03T17:30:56 | 291,965,429 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 13,060 | cpp | Study8_2.cpp | // Study8.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
//
#include "stdafx.h"
#include <condition_variable>
#include <mutex>
#include <deque>
#include <functional>
#include <atomic>
#include <vector>
#include <functional>//함수를 똑같은 타입으로 바꿔주는 라이브러리
#include <iostream>
#include <memory>//스마트 포인터
#include <windows.h>
using namespace ... |
50d8d459fca9a7b22f8768463b24e9ba2493a3ff | 3eb8e65f8ff4c9c2b7ce96d735229b2cfa4b596b | /ShareLib/packetType/ptype_artifact.h | 2a195fd83a69c310a3ed0d43150997516c569741 | [
"Apache-2.0"
] | permissive | openlastchaos/lastchaos-source-server | 778d44cb2af1cb8fec646c50ae362224124133ac | 935b770fa857e67b705717d154b11b717741edeb | refs/heads/master | 2023-06-24T11:10:21.088498 | 2021-07-31T21:49:40 | 2021-07-31T21:49:40 | 391,469,204 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,912 | h | ptype_artifact.h | #ifndef __PTYPE_ARTIFACT_H__
#define __PTYPE_ARTIFACT_H__
#include "ptype_base.h"
//systype
enum
{
ARTIFACT_SYSMSG_TAKE, //%s님이 %s지역에서 %s를 획득
ARTIFACT_SYSMSG_COMPOSE, //%s님이 %s지역에서 유물 아이템을 합성하여 %s를 만들었습니다.
ARTIFACT_SYSMSG_DIE_TO_NPC, //%s님이 몬스터에게 사망하여 보유중인 %s이(가) 사라졌습니다.
ARTIFACT_SYSMSG_LOGOUT, //%s님이 게... |
91591db9b25ff6aa52ec42c074363ae332a51886 | 3955be4181d526eaab9e787b7ea1bc9a9594b1ce | /src/tree/TableNode.cpp | a9cfddf0d39d29c202d2800c7cb7302838b5f1fd | [
"MIT"
] | permissive | michalbajorek/sqlite-explorer | 46080bc74b0909eb0732611fe09c4f275c3e15e5 | d58da999be7cb86b7c11423a0ad1d08d871d590c | refs/heads/master | 2021-01-16T19:20:27.885544 | 2014-03-19T19:22:27 | 2014-03-19T19:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | TableNode.cpp | #include "TableNode.h"
using namespace tree;
TableNode::TableNode(sqlite::Table *table)
{
this->table = table;
}
QString tree::TableNode::getText() const
{
return table->getName();
}
QIcon TableNode::getIcon() const
{
return QIcon(":/Icons/16/tableIcon");
}
sqlite::Table *TableNode::getTable() const
{... |
e089d95f33a132ac77f040a7f9753690d0f03125 | f27e27ee05177337fbfb016cac349df7123e5d01 | /2372.cpp | 603b47a50a763b6d512d1e8dfce8291116abf681 | [] | no_license | JackyLrd/Sicily | 543ea7dbc75117e724a45986911a7f42463dec84 | ee119d15b7a14e2aa31b68991f379a3527e60502 | refs/heads/master | 2021-01-21T18:33:55.841088 | 2017-05-22T14:06:25 | 2017-05-22T14:06:25 | 92,059,642 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | 2372.cpp | #include <stdio.h>
void cou(int n,int x);
long long int count;
int main(void)
{
int T,n,i,j,k;
scanf("%d",&T);
while(T--)
{
scanf("%d %d",&i,&n);
count=0;
if(n!=1)
{
cou(n,0);
}
else count=10;
printf("%d %lld\n",i,count);
}
}
void cou(int n,int x)
{
int i;
if(n>1)
{
for(i=x;i<=9;i++)
{
c... |
bb739de093a735e4577372c8b7e2b763f58e4b2e | e98b3b49b7065762549e66d15edd004b28555a49 | /Protein.cpp | 6e32569031213edd3216d76ea2d7f4d8066a492a | [] | no_license | Anss1/Biology_data | 480bdb27d2d9c144ae9a2a56d5c28c4d24a25975 | 7199234a1fb451600d976e3c8c35891a1cfe0b29 | refs/heads/master | 2020-04-15T06:22:10.923186 | 2019-01-07T16:17:15 | 2019-01-07T16:17:15 | 164,458,492 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | Protein.cpp | #include "Protein.h"
CodonsTable check_table;
string p_Type[] = {"a","Hormon","Enzyme","TF","Cellular_Function"};
Protein::Protein()
{
proteintype = "";
}
Protein::Protein(string p,int s,Protein_Type atype):Bio_data(p,s)
{
type = atype;
proteintype = p_Type[atype];
}
Protein::~Protein(... |
15f9dc909cb4a5ced540663febc443215b5baaf6 | c4288fcbe8eb097194b460123f8af5a94931dd94 | /test/dns_server_impl_test.cc | 9303caebdb55cc064aeffa5ac88164160f7ffd60 | [
"MIT"
] | permissive | sumukhs/envoy-dnsfilter | f06ba9b8017cf3e678c74cc62d88a9986d944889 | 9934417abf071aff5b96a24b094ca837f868de2e | refs/heads/master | 2020-05-24T13:13:32.843435 | 2019-07-01T23:16:28 | 2019-07-01T23:16:28 | 187,284,720 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,126 | cc | dns_server_impl_test.cc | #include <arpa/inet.h>
#include <arpa/nameser.h>
#include <arpa/nameser_compat.h>
#include "src/dns_server_impl.h"
#include "common/network/address_impl.h"
#include "test/mocks/event/mocks.h"
#include "test/mocks/upstream/mocks.h"
#include "test/mocks/upstream/host.h"
#include "test/mocks/network/mocks.h"
#include ... |
2348438eec042630b6d5bb6b57b530eef300728c | 5967c170ebf5d7d6540002bc0fc7fc29e7f00e79 | /include/Data/EOptionType.h | e810fffd8252f6db0aa71f9960f1206cecc5a2a7 | [
"MIT"
] | permissive | zeta1999/FiniteDifferencePricing | 58c85d6637b1fa1966d33fdb9b07dff8008ebc51 | 1b191e3889123505547069192068e0a561beaeb7 | refs/heads/master | 2021-09-15T12:43:53.871738 | 2018-06-01T18:27:50 | 2018-06-01T18:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | h | EOptionType.h | /*
* EOptionType.h
*
* Created on: 18 Dec 2016
* Author: raiden
*/
#ifndef DATA_EOPTIONTYPE_H_
#define DATA_EOPTIONTYPE_H_
namespace fdpricing
{
enum EOptionType
{
Call = 1,
Put = -1
};
}
#endif /* DATA_EOPTIONTYPE_H_ */
|
d6d5503b7e41571c283f29831b3aa5c7b535eb9c | a97d96d5673e7ca45d8f3bece317d466ca82db77 | /ProjektSC/SendPatientHome.cpp | ae2560efe2818a0623df3d077e136f08a50a440d | [] | no_license | lukaszgrudzinski/ProjektSC | c296b528a639f448e4922f921e38e79ebefd779c | f13e5a2424f1dded605d87ee2185fbe39041d9f1 | refs/heads/master | 2020-03-28T12:27:00.212433 | 2018-09-14T10:20:38 | 2018-09-14T10:20:38 | 148,299,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,194 | cpp | SendPatientHome.cpp | //Wydarzenie warunkowe odsyłające pacjenta do domu w przypadku gdy wystarczy dla niego krwii w banku krwii
//Brany pod uwage jest pierwszyw kolejce pacjent
#include "stdafx.h"
#include "SendPatientHome.h"
#include"BloodOrder.h"
#include"EmergencyBloodOrder.h"
#include <vector>
#include <iostream>
SendPatientHome::Se... |
63c6dc62207307333dbf2138876b8a75f5598d79 | ddedcb0183b225ce3d3aff145cc6e62b9e39f0a5 | /FitSoftware/interface/Particle.h | bf6be936929a755de5e8550bf4649b038d998f81 | [] | no_license | cherepan/SimpleFits | 4d8e971c33b5a319a0f1fe17d13bcf64bf015530 | b37c9667a7d7a0fd5c7921f4e3f0fc2331aae440 | refs/heads/master | 2021-01-20T16:48:09.276766 | 2018-03-12T16:35:27 | 2018-03-12T16:35:27 | 32,737,790 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 920 | h | Particle.h | #ifndef Particle_h
#define Particle_h
#include "TMatrixT.h"
#include "TMatrixTSym.h"
// Notes
// Store B in units of 1/GeV
class Particle {
public:
Particle(TMatrixT<double> par_, TMatrixTSym<double> cov_, int pdgid_, double charge_, double b_);
virtual ~Particle(){};
virtual double Parameter(int i) {if(0<=i... |
641d77400e6524c8879be4d5f87e9e85bae65c03 | 44706cc69378605bfb50f8f4cb89be752e09d88e | /common/include/o3d/studio/common/component/viewporthub.h | 4f026462dd02898a276bc68854b7771f64cb96af | [] | no_license | dream-overflow/o3dstudio | 9512ce34fa8668fb06a128ca5536ff20251eb9ab | c51d149d6753b75a2f40ebfb905ac1390bb0106c | refs/heads/master | 2020-04-27T08:02:50.642718 | 2018-04-23T16:28:51 | 2018-04-23T16:28:51 | 174,157,370 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,499 | h | viewporthub.h | /**
* @brief Common viewport component offering a viewport hub.
* @copyright Copyright (C) 2017 Dream Overflow. All rights reserved.
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2017-11-11
* @details
*/
#ifndef _O3DS_COMMON_VIEWPORTHUB_H
#define _O3DS_COMMON_VIEWPORTHUB_H
#include "co... |
27d265e32c1754ff2d46dc9966b7908aaa77864e | f5a8254ab9f6b68768d4309e48a387a142935162 | /CommBasicObjects/opcua-backend/src-gen/CommBasicObjectsOpcUa/CommKBResponseOpcUa.cc | 52748cb39c6cd3dde3a6b499a99a77ebc64a5cbb | [
"BSD-3-Clause"
] | permissive | canonical-robots/DomainModelsRepositories | 9839a3f4a305d3a94d4a284d7ba208cd1e5bf87f | 68b9286d84837e5feb7b200833b158ab9c2922a4 | refs/heads/master | 2022-12-26T16:33:58.843240 | 2020-10-02T08:54:50 | 2020-10-02T08:54:50 | 287,251,257 | 0 | 0 | BSD-3-Clause | 2020-08-13T10:39:30 | 2020-08-13T10:39:29 | null | UTF-8 | C++ | false | false | 955 | cc | CommKBResponseOpcUa.cc | #include "CommKBResponseOpcUa.hh"
#define SERONET_NO_DEPRECATED
#include <SeRoNetSDK/SeRoNet/CommunicationObjects/Description/ComplexType.hpp>
#include <SeRoNetSDK/SeRoNet/CommunicationObjects/Description/ElementPrimitives.hpp>
#include <SeRoNetSDK/SeRoNet/CommunicationObjects/Description/SelfDescriptionArray.hpp>
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.