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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
181d64b2fe4ebf5f5e29b9a71f8ac9e918dc9161 | 9140a0b8b2f06eaae48d4e8604cbd11d7ff38b9c | /TextureMap.h | acff4c6471d8f507a806a2b25f71de9334e0c062 | [] | no_license | rossig7/RayTracer | 9bbc0fc5da615a697667083bf6bb21395dadc983 | f3ddd7545144e053672b8c166800272ceff57fc6 | refs/heads/master | 2020-03-27T16:41:59.549849 | 2013-12-04T23:02:16 | 2013-12-04T23:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,542 | h | TextureMap.h | #ifndef _TEXTUREMAP_H
#define _TEXTUREMAP_H
#include <string>
#include <fstream>
#include "Color.h"
using namespace std;
class TextureMap
{
public:
int x_res,y_res;
Color** ColorMap;
TextureMap()
{
}
void TextureMapRead(string file_name)
{
FILE *fp;
if (!(fp = fopen(file_name.c_str(), "rb"))) ... |
313b738fe78f4a8b4727da7fd540a446c61b27c1 | c5e945ac82daa7f0238a9bb0cda3cfbfd7154054 | /ashell.cpp | ffd0e917c2d6d371fbe29d826311fa56573c0f93 | [] | no_license | darrylbckhm/ecs150_project_1 | c3a898460c74be5dc66fa201575cd0556be3d06f | a1540ed45100c37aa37161ea614454b252647eb0 | refs/heads/master | 2021-01-13T07:06:23.881500 | 2017-02-10T23:40:40 | 2017-02-10T23:40:40 | 81,616,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,357 | cpp | ashell.cpp | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <ctype.h>
#include <string.h>
#include <string>
#include <iostream>
#include <list>
#include <iterator>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <vector>
... |
ce0d0b5d02315593e43a420174f13d49bee2c33f | b62fc53933ced085303d2c2958c422c369e91f14 | /Renderer/thread_utility.h | 237b1ccb25b5bef953cb9ede5d6f62b555df5240 | [] | no_license | kouei/renderer | 435bbfc377026e17a0a98f8569114afa2f56f19f | ae51ff32161e85011664c1fc4fcd02b23b7569c6 | refs/heads/master | 2021-07-02T16:22:28.202200 | 2018-12-12T04:49:35 | 2018-12-12T04:49:35 | 161,432,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,006 | h | thread_utility.h | #ifndef _THREAD_UTILITY_
#define _THREAD_UTILITY_
#include <atomic>
namespace THREAD_UTILITY
{
using std::atomic_flag;
struct AtomicFlagObject
{
AtomicFlagObject() noexcept;
AtomicFlagObject(const AtomicFlagObject & rhs) = delete;
AtomicFlagObject(AtomicFlagObject && rhs) = delete;
AtomicFla... |
55b235f186e1e93d57ca81b41ddf2d41ac8ee6b5 | 48d18b39e52d84d98faa2f8a51c87a22f3fed126 | /lib/LaserCmd.cpp | 0eba77aa473f518757af442d09a11f2f36ea42cb | [] | no_license | swapneel001/PickByLight_RPI | 1a34b2c5e3ca9973e15291a513bc86c004a23cd1 | 6be5955ea533e64fadfa965c5d6275a0f08e1239 | refs/heads/master | 2023-06-16T10:22:29.193329 | 2021-07-23T04:11:54 | 2021-07-23T04:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | LaserCmd.cpp | #include "LaserCmd.h"
LaserCmd::LaserCmd() {
wiringPiSetupGpio();
}
void LaserCmd::setPin(int pin, int val) {
digitalWrite(pin, val);
}
void LaserCmd::setupPins(std::vector<int> gpio_pins) {
for (int i : gpio_pins) {
setOutput(i);
}
}
void LaserCmd::setOutput(int pin) {
pinMode(pin, OUTP... |
0ed847dd4786fec4a70f14abaf912d76f743cc18 | 45dcea2198639eaf93829def76eff51d47a05bea | /native-library/src/util_classes/download_result_details.hpp | 72bed3db8551fbf811d2e83e1c408b37a3d0dad0 | [
"Apache-2.0"
] | permissive | KennyWZhang/Anjay-java | 46f0757f2b507e98e245f4a6edc22888f18e3c11 | 35880a981ae4f7fb766e86e2daaefa7ea76dd39c | refs/heads/master | 2023-04-19T10:48:48.153780 | 2021-05-12T14:11:03 | 2021-05-12T14:11:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,823 | hpp | download_result_details.hpp | /*
* Copyright 2020-2021 AVSystem <avsystem@avsystem.com>
*
* 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 ap... |
c8c2305c880799d887ab362f11c785fb0cd35a7b | cab611aa969a9f09bc3a40e72d31daf809b12119 | /Pandu/PanduBulletPhysics/PANDUClock.h | a378f50e15be143b2401d500e7698c05d6d71cc8 | [] | no_license | ParagDrunkenMonster/PanduEngine | c5196c4d69b31c1eee8eb4b392ebb60afcb2c086 | 176ea70826ad12dfc75c6943cd093317dee6e2bf | refs/heads/master | 2020-06-18T18:07:56.693506 | 2020-04-04T10:19:25 | 2020-04-04T10:19:25 | 74,749,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | h | PANDUClock.h | /********************************************************************
filename: PANDUClock
author: Parag Moni Boro
purpose: Game Engine created for learning
*********************************************************************/
#ifndef __PANDUClock_h__
#define __PANDUClock_h__
#include "LinearMath/btQuickprof.... |
2d38dda18ae223f1af75f4da727a5d60fcbaa36d | 8fbaded48dc445d8475ba16254ae9bc6c429a03d | /common.h | 951aa4a82b5a29d0b63f8f06a8c1bfbd1f05eb69 | [] | no_license | a2824256/EVA-Qt-Beta | 5f6fd64e23cdbf7074cae0e54bcfc6d8bbd2a057 | 13446d0044859e99eaabe3247ef588412329af52 | refs/heads/master | 2020-12-05T10:47:09.956386 | 2020-01-18T07:08:33 | 2020-01-18T07:08:33 | 232,085,456 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | h | common.h | #ifndef COMMON_H
#define COMMON_H
#include <string.h>
#include <QtWidgets>
//公共设置类库
class Common
{
public:
Common();
static QString _medicalNumber;
static QString _tips;
static QString _OS;
static bool _isLog;
static QString _multimediaFolderPath;
static QString _model;
static QString _... |
b9ab0b79ef88f5821d32d97cb4ea217f2bbc2fb1 | 4d7652e60c744a2f650319e6edbabd50d7429678 | /使用C++和Qt读配置文件,写MySQL/src/common/turntomainrole.h | e7d78fc7d48edbc07ea9e13ca304e43cc997fa6e | [] | no_license | clw5180/My_C_Project | 74667d7a872a15c9d95d6909b8fec2b6e144399b | 9499b618567fb340a8ade95b891c4ab8f83b5814 | refs/heads/master | 2020-05-31T14:46:14.847069 | 2019-06-30T08:42:21 | 2019-06-30T08:42:21 | 190,335,900 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 578 | h | turntomainrole.h | //turntomainrole.h
#ifndef _TURNTOMAINROLE_H_
#define _TURNTOMAINROLE_H_
#include <qthread.h>
#include <qmutex.h>
class CTurntoMainRole : public QThread
{
public:
CTurntoMainRole();
virtual ~CTurntoMainRole();
bool IsToMainRole();
void BeginToMainRole();
void EndToMainRole();
protected:
v... |
5aa7b6e7efefc501f5815f81eceec75a3fb450c1 | d02dd66f3418c63e2dd90d5cfb914c7b3c94c6e4 | /huffmanencoding.cpp | dc1d7df8b50ed82f2dfa2dca5917b78e99a32eab | [] | no_license | Di-ken/Lossless-Data-Compression | aa29843e376be2518410d55ee897571d4bd0972d | 443fb326c4b238e031f03167ef20e5bbb1656c45 | refs/heads/master | 2022-01-23T05:46:54.091630 | 2018-04-19T19:12:42 | 2018-04-19T19:12:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | huffmanencoding.cpp | #include<bits/stdc++.h>
#include "bitChar.h"
#include "HuffmanTree.h"
using namespace std;
#define ul unsigned long
string text;
ul f[257];
char fpath[200] ,nfile[200] , newfile[200]={'E',':'} ,freqfile[200];
ul getsize(char *filename)
{
streampos begin,end;
ifstream myfile (filename, ios::binary);
begin = myfile... |
f294a17a6671e5023349605f2446f95567724cd4 | 5fca9ab6310f854b655d318b50efa7fc83ad22f8 | /service_router/doc/RegistryServiceIf.h | 4f82069b5733640a2f10a34f74cc40c9f646083d | [
"Apache-2.0"
] | permissive | algo-data-platform/PredictorService | 4a73dbdac2bd1d72c18f53073fe80afbb4160bba | a7da427617885546c5b5e07aa7740b3dee690337 | refs/heads/main | 2023-03-11T17:08:35.351356 | 2021-02-24T08:46:08 | 2021-02-24T08:46:08 | 321,256,115 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 727 | h | RegistryServiceIf.h |
struct Service {
std::string ip;
int port;
std::string name;
};
/*
* 服务注册接口
*
* 服务注册分为注册列表、可用列表,可用列表主要是用来做服务的完美启动、停机设计
*/
class RegistryServiceIf {
// 向注册中心注册
virtual void register(Service service) = 0;
// 从注册中心摘除服务
virtual void unregister(Service service) = 0;
// 变更服务状态为可用,客户端可调用的服务
virtual void a... |
a947386c3cd24fad729b3d110e06fda9ed360f1d | e7dec8a39537adb16fb83f33f03c4ccfd305997f | /tp2/main.cpp | 2c5baf90e417d053a7769fff96db9fda791482db | [] | no_license | tomasmussi/concurrentes | e7c53bdba35a93a98332d75b92548f86f1881117 | d461a8c6219c6f006eb3f595108a5d71f9339c40 | refs/heads/master | 2021-01-18T18:36:35.779949 | 2017-11-30T04:28:40 | 2017-11-30T04:28:40 | 100,519,233 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | cpp | main.cpp | #include <iostream>
#include <cstring>
#include <sstream>
#include "Servidor.h"
#include "Cliente.h"
#include "Administrador.h"
int parse_int(char* arg) {
std::istringstream ss(arg);
int x;
std::stringstream s;
if (!(ss >> x) and x != MONEDA and x != TIEMPO) {
std::cout << "Tipo de cliente no ... |
03f0b4220be3a428edea7c41d8afd7fdf09c4313 | 8d898a03e5b15f4a4e4524c6c28c2b5b27b45ca8 | /Tree_sort/main.cpp | f6f1eee2e1ef24fccf8141e777e6e479aca869d5 | [] | no_license | FOAna/algorithm-library | badc28c5ab8f83a456972af4149dcefcdf8ffc15 | 613e3f2492b80d2e8d80c500b47d8e6ed5dddb92 | refs/heads/main | 2023-07-29T13:08:55.485787 | 2021-09-16T17:56:13 | 2021-09-16T17:56:13 | 407,251,261 | 0 | 0 | null | null | null | null | MacCyrillic | C++ | false | false | 1,060 | cpp | main.cpp | #include"Trees.h"
void main ()
{
int n,a,k=2,udal;//n - это количество чисел в дереве; a - это числа, вводимые пользователем; k - это количество чисел в дереве без первого;
//udal - это элемент, который нужно удалить.
Tree *root=new Tree, *per;
setlocale(0,"Russian");
cout<<"\n ¬ведите количество чисел, которыми вы... |
108ad2905b8c4d83c667255370712defa765ee05 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/hunk_1923.cpp | c3a675f01e1dc85af787f1191b749597fa97b326 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | hunk_1923.cpp |
static
void header_mangler_dump_replacement(StoreEntry * entry, const char *option,
- const header_mangler &m, const char *name)
+ const headerMangler &m, const char *name)
{
if (m.replacement)
storeAppendPrintf(entry, "%s %s %s\... |
948b31d59534581416392125b57b409ce9264eef | 0ba672d85df06c158c700855793c80c5b76fbeb0 | /acmicpc/cpp/9468.cc | c3ddd78358503e0ab44ef3a8b6aa6a6a5f128edb | [] | no_license | jhnaldo/problem-solving | 6b986a6d19cfe293c5e148e101fe2a7f88a4e45e | b4fec804b25d88a94cb65a8981f744b290849c1d | refs/heads/master | 2022-07-23T14:06:39.727661 | 2022-07-07T11:17:40 | 2022-07-07T11:17:40 | 122,852,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cc | 9468.cc | #include <stdio.h>
int main(){
int t;
scanf("%d", &t);
while(t--){
int k, i, before, count = 0;
int arr[15];
scanf("%d", &k);
scanf("%d", &before);
for (i = 1; i < 15; i++){
int cur;
scanf("%d", &cur);
if (cur < before) count++;
... |
beed8a35d4f4e1bf47fb9b5484d0773230718910 | f45e2b74be8ed7d0fa6b3813a3149b65489ba64b | /SFunction/JanusSFunction.cpp | 9f59a6fe61ac648ce8ee24727325cc8bf1eb5bc7 | [
"MIT"
] | permissive | fltdyn/Janus | 8e7230aa2556e15ad232a2cf0e11b8100663768a | 51b6503c291fc0789edaf130962c4c22c8293628 | refs/heads/master | 2023-04-01T15:20:17.009699 | 2023-03-20T01:35:41 | 2023-03-20T01:35:41 | 217,967,268 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 11,374 | cpp | JanusSFunction.cpp | //
// DST Janus Library (Janus DAVE-ML Interpreter Library)
//
// Defence Science and Technology (DST) Group
// Department of Defence, Australia.
// 506 Lorimer St
// Fishermans Bend, VIC
// AUSTRALIA, 3207
//
// Copyright 2005-2021 Commonwealth of Australia
//
// Permission is hereby granted, free of charge, to any pe... |
389e06cf3bb5f1a71bae362aa6f1b7389b7ced57 | f7842b28f8cc6ba8badfaac0346bc288e4b12f59 | /settings.cpp | 5bb6cff23f91e0c5a2814c3efc6e7ae8c58511b3 | [] | no_license | pavlosun/solxd | 7e38f795ff060c6862e43ff24a371b5fff891062 | a9f592c74c0a1b92fb16f6ee46ce9be024f4d068 | refs/heads/master | 2021-05-31T11:56:02.615712 | 2015-04-13T02:59:41 | 2015-04-13T02:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,792 | cpp | settings.cpp | /**************************************************************************
**
** This settings.cpp file is part of SolXd software.
**
** Copyright (C) 2015 Pavlo Solntsev
**
** SolXd is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the F... |
4027e2c4478c4dd3dc395010ee49321432da326c | 7883b69c2f5c3c4608c0bece407bb675f577e91a | /src/interface/usb.h | bbf99e7a2bf2526d6eab4ff7aadfe6f5161d051a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sniedetzki/vi-firmware | 89c5cf89d7b13e99311ad6bae75781307f865b7a | cb7458b1539e6abda2359802856189fc7eba8e15 | refs/heads/master | 2021-01-18T13:18:03.662901 | 2014-01-30T18:16:09 | 2014-01-30T18:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,463 | h | usb.h | #ifndef _USBUTIL_H_
#define _USBUTIL_H_
#ifdef __PIC32__
#include "chipKITUSBDevice.h"
#endif // __PIC32__
#include <string.h>
#include <stdint.h>
#include "util/bytebuffer.h"
#define USB_BUFFER_SIZE 64
#define USB_SEND_BUFFER_SIZE 512
#define MAX_USB_PACKET_SIZE_BYTES USB_BUFFER_SIZE
namespace openxc {
namespace i... |
90cec3cd916fa14a9b7d7b1804f773039ba55787 | 6f51beb8825917e9626ddaf2ce60c3c3f451e665 | /oop/public_private/main.cpp | e6fc45296b37dd23b167ab4f56168651e954f7bf | [] | no_license | Andyt-Nguyen/c-basics | ca5d08faf0ead410f258f1265df13660cee011ed | 3522197855deb46adfb81b59e73b228d93d0806d | refs/heads/master | 2020-04-16T07:50:00.284205 | 2019-09-05T08:37:32 | 2019-09-05T08:37:32 | 165,401,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
class Player {
private:
string name {"Frank"};
int health;
int xp;
public:
void talk(string text_to_say) {
cout << name << " says " << text_to_say << endl;
}
};
int main() {
Player *andy = ... |
033e640f88748309041dda3fa7f5b664d7d9eb56 | dbd759663b6f5d90da258aaeab5998c131d054a4 | /project-euler/problem_307.cpp | 3f2f7b9c12a1de72699c2d72ceaac334c28b12ea | [
"Apache-2.0"
] | permissive | sihrc/Personal-Code-Bin | 9c0005993dfbd371f51e86ab525b3d4a9ac7a218 | 91a894a68606151d2381cf8f25709b997df00011 | refs/heads/master | 2020-02-26T15:13:33.960604 | 2014-04-28T16:02:28 | 2014-04-28T16:02:28 | 13,988,578 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 454 | cpp | problem_307.cpp | /*
Chip Defects
Problem 307
k defects are randomly distributed amongst n integrated-circuit chips produced by a factory (any number of defects may be found on a chip and each defect is independent of the other defects).
Let p(k,n) represent the probability that there is a chip with at least 3 defects.
For instan... |
126c65a54f9bddabc1239e0b9e369a0955e424b3 | b9bd29b459477bf0658465085532670117a1d6f9 | /Input/SpecialIOGame/SpecialIOGame/main.cpp | b112eee0564a95bbd989dc188a74a045b8c70a62 | [] | no_license | WHofstra/Special_Input-Output_01 | 5a50147ec1f854f2a3e31223ea4b54f87063be8f | ad14fc74c94dc2d92e5198b198b0054ee69519d3 | refs/heads/master | 2021-02-11T08:16:53.700173 | 2020-04-21T22:00:24 | 2020-04-21T22:00:24 | 244,471,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,580 | cpp | main.cpp | #include <iostream>
#include <SFML/Graphics.hpp>
#include <list>
#include "Stage.h"
#include "StageDisplay.h"
#include "Player.h"
#include "Controller.h"
int main()
{
//Set Window Resolution to Super Nintendo Entertainment System/Super Famicom
const int WIN_WIDTH = 512;
const int WIN_HEIGHT = 448;
//Define Serv... |
cc1e9d792507836f7cd3b3201c8d4758231ea357 | 63e36fef281e6ca1d1fce7fde86d95c88459505c | /src/xinterpreter.cpp | 45a750a58a41330e37bc00428feaa2eb44f23a4e | [
"BSD-3-Clause"
] | permissive | jupyter-xeus/xeus-python | 58fd2f83febfa96e9425cd9c5fdbf099a41c2f01 | f87c29cab41a1ff9ea3524e5c0af328a0449f71e | refs/heads/main | 2023-08-05T08:58:18.172029 | 2023-04-27T13:42:24 | 2023-04-27T13:42:24 | 152,753,394 | 329 | 52 | BSD-3-Clause | 2023-04-21T09:59:20 | 2018-10-12T13:18:30 | C++ | UTF-8 | C++ | false | false | 11,681 | cpp | xinterpreter.cpp | /***************************************************************************
* Copyright (c) 2018, Martin Renou, Johan Mabille, Sylvain Corlay, and *
* Wolf Vollprecht *
* Copyright (c) 2018, QuantStack *
* ... |
80bbeef102de828e3c39409c95c177ad4959a868 | 4eef5340be2eb04c1165215fe68a0d2f448b2e4c | /include/gpio.h | 74b6043b8d9685c339ed577aa9fc4c020925bb66 | [
"MIT"
] | permissive | marangisto/stm32f4 | 5b9aede29bc0567b5ed8d9732a03586a3e0e2d56 | 9e27131a147d30eb1acec4ccbd45b9c3986e90ea | refs/heads/master | 2020-05-24T22:02:35.596475 | 2019-06-16T13:03:06 | 2019-06-16T13:03:06 | 187,489,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,822 | h | gpio.h | #pragma once
#include <stm32f4.h>
namespace stm32f4
{
namespace gpio
{
using namespace device;
enum gpio_port_t { PA, PB, PC, PD, PE, PH };
enum gpio_pin_t
{ PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15
, PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11,... |
9c0f47c6828354c8565d9f02d2a815cf3fd43f90 | 87e0226d3978e6c5897e762a9606370c22fe2e2d | /CPP/explore/ReverseList.cpp | eb6a7234592da7edcbf1a43e4f52ff2c8452a411 | [] | no_license | tenglin2/LeetCode | cd3fb75be71843b49ca0e07256bc02757c66fec6 | 25a3ce9ba297dab0bdf1f085cfc4266edb08c7d0 | refs/heads/master | 2020-05-30T03:00:15.661614 | 2020-01-20T15:24:33 | 2020-01-20T15:24:33 | 189,506,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | cpp | ReverseList.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <cstdlib>
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution
{
public:
ListNode *reverseList... |
4d6d44ebd7761d6dfcdbd80a7f93e2e184f83a6a | a821662a42f3d3784c89aa1cb9d8dc94f5a4e2e5 | /搜索/1016.cpp | 66b6a2467a469d3342ac7dd90e0bde42912cdd85 | [] | no_license | Jaycebox/acm | a9cfed70b02f2b4986ca718012b89cf8ff89b2b2 | da98380cad31e7280e14fd33be2191d2a58439b7 | refs/heads/master | 2021-01-25T05:08:58.849848 | 2017-07-30T06:08:38 | 2017-07-30T06:08:38 | 93,507,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | 1016.cpp | //dfs,加一减一,多练,好题
//素数环
#include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
const int mmax = 100;
int n;
int visit[25];
int a[25];
bool isprime(int n)
{
double k = sqrt(n);
for(int i = 2; i<=k;i++)
{
if(!(n%i)) return 0;
}
return 1;
}
void dfs(int x)//x为循环节
{
i... |
412069a4d4b3e2560b3ae6ca960927d7e1300996 | 0bb5d96d6b9e844b4ce33efdc791ac2800a267a6 | /ksdb.cpp | 77367bef3e0f97d1ea1257d3eed38ec326f5ba79 | [] | no_license | labhmanmohan25/Classical-Codes | c701fa9086015aa38b898b05524344e88bd57146 | a127e362f8bec8f4b6635d6882ae4d40f5058492 | refs/heads/master | 2022-11-20T20:25:46.643457 | 2020-07-28T14:34:05 | 2020-07-28T14:34:05 | 283,234,467 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,002 | cpp | ksdb.cpp | #include<bits/stdc++.h>
//One implementation to rule them all?
#define db double
#define ll long long int
#define ld long long double
//#define int long long int
#define ull unsigned long long
#define fi first
#define se se... |
5e5705b14591b789323d71fa5e6d627e62f51186 | cabb9cc7ece0e2aa14c1f30d8f593ffb7a5fef64 | /Classes/df/types.h | 23b85355bce24998de3d6783a6a7cf34aae5d660 | [] | no_license | atom-chen/jzhall | 50b0844ad501717e47c04365fea6924eb0043dd2 | 9ab4d32ec02f342e6ac84b43c5791011ce62421e | refs/heads/master | 2020-07-03T10:06:21.891623 | 2019-03-19T02:02:40 | 2019-03-19T02:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,906 | h | types.h | #ifndef _types_H_
#define _types_H_
//////////////////////////////////////////////////////////////
#include <assert.h>
#include <stdio.h>
#include <string>
#include <set>
#include <map>
#include <unordered_map>
#include <vector>
#include <iostream>
#include <fstream>
#include <cmath>
#include <algorithm>
#include <de... |
4ce54fd6ffeabf6c57a717b9175acc8249d22619 | 6eed490d4a785fe1fd7470b7095f44fea5bc5f7b | /CMatrix.cpp | f2c2ed1e3b051df653e15b04b66959a161531f60 | [] | no_license | CaseySmalley/CMD-3D-Graphics | ef344e2745cc240a56936ccd39770b3cb49e73a2 | 58b80242e8bbeb6fa876643eb440493c27bd3f85 | refs/heads/master | 2020-07-02T22:08:50.754832 | 2016-11-30T20:12:00 | 2016-11-30T20:12:00 | 74,280,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,006 | cpp | CMatrix.cpp | #include <iostream>
#include "CMatrix.h"
// This class was made to perform the 4x4 Matrix calculations nessecary for 3D rendering
// Matrix Layout
// X Y Z 0 <- Local X Axis
// X Y Z 0 <- Local Y Axis
// X Y Z 0 <- Local Z Axis
// X Y Z 1 <- World Position
CMatrix::CMatrix() {
this->identity();
}
//
... |
4f9dd43cd5ac7dc8b7ca053e9eaf14ae88db874e | d6a44781f557c1ce33db7caecec14ec37675211e | /giskard_suturo_parser/test/giskard_suturo_parser/gpp.cpp | f3acd26e4dd91cf5e21b86a1c75413d91870ca3d | [] | no_license | suturo16/manipulation | 1884a916358f377315072860e9800817a9b3b0c6 | 5c5e7e7902b610e880934ab6945551c6fd490962 | refs/heads/master | 2021-01-12T17:42:52.114579 | 2017-09-29T02:54:22 | 2017-09-29T02:54:22 | 71,626,532 | 0 | 2 | null | 2017-09-29T02:04:19 | 2016-10-22T08:24:25 | C++ | UTF-8 | C++ | false | false | 19,664 | cpp | gpp.cpp | /*
* Copyright (C) 2015 Georg Bartels <georg.bartels@cs.uni-bremen.de>
*
* This file is part of giskard.
*
* giskard 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 2
* of the License,... |
781c1919ded8bb0e8c271912f265d53f9503db0d | e022061af1d19f2719e0b0faae61131f0f4f3e04 | /MNIST_CNN_Training_Application/MNIST_CNN_Training_Application.cpp | e3441b0c6d96142de77535aaa6222c64da61b6f4 | [] | no_license | pirosm1/MNIST_Training | 6bef94c97086f945bca231817c72d08a27b3ea92 | 7cf4594a69da16f1f994b5ebcf1a99d9e2a44fc2 | refs/heads/master | 2020-05-19T15:20:26.066468 | 2019-05-10T08:06:12 | 2019-05-10T08:06:12 | 185,083,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,698 | cpp | MNIST_CNN_Training_Application.cpp | // MNIST_CNN_Training_Application.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include "MNISTReader.h"
#include "ForwardPropagator.h"
#include "BackwardPropagator.h"
void printUsag... |
26c31c44f302e53c59e51eb909b3e0ea9b2cb947 | 5a38d56fbbbb9c10f4182501c617e01de7d565c0 | /CPP/0985_delivery.cpp | 7b7ec8c252cc4124fddcd3fb1a3787b84c785a9a | [] | no_license | tanmaysahay94/Algorithm | 3551a84723bbcc76eb3cc776a9ba3ba256941123 | 142b1e471a467cd2124300f638fb8817d20b7959 | refs/heads/master | 2021-07-05T22:11:36.027616 | 2021-06-12T20:08:37 | 2021-06-12T20:08:37 | 20,177,690 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,277 | cpp | 0985_delivery.cpp | #include <bits/stdc++.h>
using namespace std;
const int maxk = 1e5 + 5;
const int maxn = 1e5 + 5;
int n, m, k;
set<int> toVisit;
vector<int> G[maxn], GR[maxn], edgeFrom[maxn], edgeFromComponent[maxn];
vector<int> vis(maxn), inComponent(maxn), edgeCountHelper(maxn);
stack<int> S;
vector<pair<int, int> > edges, cIDord... |
c209bd5c084c68835d4b5236edeb3002abb5cf68 | 089d5b084b83b9cec2374c3ca8c5902ea47084f1 | /assn3/retreat3.cpp | 761367f08fcd303ffbc8a0a58a84ec12a37e54a0 | [] | no_license | choisium/CSED331 | a04b9d6e25b5577a2e3d6a198350ad94e7d7258f | f6435dcae6ab1f21529cb6441bd4a27b2a7b44fd | refs/heads/main | 2023-06-09T20:17:10.828258 | 2021-07-05T00:50:23 | 2021-07-05T00:50:23 | 345,906,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,052 | cpp | retreat3.cpp | #include <stdio.h>
#include <vector>
#include <limits.h>
#include <utility>
using namespace std;
typedef struct Edge {
int idx;
int node1;
int node2;
unsigned int length;
bool visited;
} Edge;
typedef struct Node {
int idx;
int order;
int root_order;
vector<Edge *> edge_list;
} Nod... |
c0289958b63af334915bc553339b8818c8e8625d | 918b55cbd94e7cb5f92c2b2053841ee2a2d2d129 | /source/Tests/Bit/Tests.h | b4ce10f6906c5fc8667be79a5c90795076f05cda | [
"MIT"
] | permissive | chenghanpeng/microjit | 9764bdff8e9458f42723a1be8cfb2bd925716a51 | b9a13aef7c15c69164d0232dc32d5852f92330e5 | refs/heads/master | 2022-03-27T13:08:45.189919 | 2018-04-29T13:57:37 | 2018-04-29T13:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70 | h | Tests.h | #pragma once
#include "Config.h"
namespace Bit {
bool bitTests();
} |
3e727b80fb0dd35be4fb12a8d96bf0a1d1bf8a70 | 038fe5aba23f430e47cbac451ae1029bd1ff47c5 | /Base/Macros.hpp | 61f28b153ad983bc826bcd5ccb6d25d1c327b6a4 | [
"MIT"
] | permissive | lxq2537664558/ctnorth | aa164c6244780a2a3c36467a4d1e3b641b792871 | 9c33359eced067f9eb639187d2d4dd6378332ae7 | refs/heads/master | 2021-01-20T01:35:43.614562 | 2017-04-17T20:18:30 | 2017-04-17T20:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | hpp | Macros.hpp | // Useful macros
// Author(s): iFarbod <ifarbod@outlook.com>
//
// Copyright (c) 2015-2017 CTNorth Team
//
// Distributed under the MIT license (See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT)
#pragma once
// Bit manipulation
#define BITMASK_SET(a, b) (a |= b)
#define BITMASK_RE... |
90887ad61723799da73d32af1fe136383503d5b8 | 8e4afdd17e5307b9736549b7fd39e1ec7424a78d | /futures/join.h | 6dd06aef90afc3c61b472dfbce000105725b19f3 | [
"MIT"
] | permissive | cfo82/asyncpp | 8d8abce8a857a9885eab69be2dbf5a348645c117 | 5dcdb2fe12e21f89663207c448fc07a0ac673f9a | refs/heads/master | 2021-01-23T15:52:29.973741 | 2014-12-17T20:55:11 | 2014-12-17T20:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,866 | h | join.h | /*
* This file is part of the asyncpp Library release under the MIT license.
*
* Copyright (c) 2014 Christian Oberholzer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restr... |
2ee4aa5dd35c6c282fd08497872856696522cd5e | 48e9ac838cf02b92c55afae2b1cafe8d39c7d0bd | /Snowglobe/Snowglobe/Tri.cpp | f9653ee3e33996d56a676153630337a867cc2109 | [] | no_license | gwgrisk/msc-hull-snowglobe | 37d164a649c66c55ba1e43abb3b38a3b121ff820 | d27a1e3482f426778bd82024788307c085256b31 | refs/heads/master | 2020-03-30T10:58:57.529443 | 2013-02-20T17:16:47 | 2013-02-20T17:16:47 | 41,352,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,108 | cpp | Tri.cpp |
#include "stdafx.h"
#include "Tri.h"
#include <AntiMatter\AppLog.h>
#include <comdef.h>
Tri::Tri() :
m_bInitialized ( false ),
m_pVertices ( NULL ),
m_pdwIndices ( NULL ),
m_rBaseLength ( 10.0f ),
m_rHeight ( 5.0f ),
m_nVertCount ( 0 ),
m_nIndexCount ( 0 )
{
m_bInitialized = Initialize(); ... |
ab398b096625a63a6d5beda65e038b9c73abb8b6 | 215dd7a6798c341e3b7b51f5b8880859db40aec8 | /OrderingSystem/cookbookiteminfo.h | ca4e340a14ed01523073eab0dbccbf7962376f75 | [] | no_license | dousp1220/OrderingSystem | 1cf60212948fbcf554328115ae9bfecfcd7c9a0d | a189f8e8008da3aeed2e45d0a6fa326b7c9db554 | refs/heads/master | 2020-03-25T13:46:03.203831 | 2018-09-20T04:17:00 | 2018-09-20T04:17:00 | 143,841,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | h | cookbookiteminfo.h | #ifndef COOKBOOKITEMINFO_H
#define COOKBOOKITEMINFO_H
#include <QString>
#include "sqlUtils/entity/menuitementity.h"
/**
* @brief The CookBookItemInfo class
* 菜品信息(菜品展示使用)
*/
class CookBookItemInfo : public menuItemEntity
{
public:
CookBookItemInfo();
};
#endif // COOKBOOKITEMINFO_H
|
3d02b71f77fbad4f2f509398e546873713e53e4a | 6c712b00801a92664e9249534354645a1b6992c3 | /Software/DomAlgoServer/src/Synapsis/Sensor/Sensor.cpp | ba9708de29ef27976a13c3c9b6bc81239f8473dc | [] | no_license | Gleeno/DomAlgo | 0821cbadf1d77d43a3e2f2f8cba3600310a79ed7 | 663b2b247d26e9a69b356ae5223bdf2eaa99ca18 | HEAD | 2016-08-12T22:23:53.723398 | 2016-04-11T08:33:16 | 2016-04-11T08:33:16 | 48,537,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | cpp | Sensor.cpp | /*
* File: Sensor.cpp
* Author: Matteo Di Carlo
* Created on January 28, 2016, 4:03 PM
*
* Copyright (C) 2016 Matteo Di Carlo - www.gleeno.com
* 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 Fou... |
78a6b1b2f50cd826581c1e3f4dc31573541da010 | 797372ba760b2a1f21400f52a08b5e191b1cc52b | /FPCC++Assignment/CustomerLinkedList.h | 02bca98056b41ba3d4aea771976623509042e517 | [] | no_license | kathrynaj7/BankApplication | 11c071a13de8de9ad413d781a0b68a6873f9dfe1 | 37a83b7d9f8065ed30e948e33ed6f66cc8ad97e0 | refs/heads/master | 2021-01-01T16:25:36.911532 | 2014-03-23T17:06:33 | 2014-03-23T17:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,358 | h | CustomerLinkedList.h | // CustomerLinkedList.h
// Linked list of Customers
#ifndef CUSTOMERLINKEDLIST_H
#define CUSTOMERLINKEDLIST_H
#include <iostream>
#include "CustomerNode.h"
class CustomerLinkedList
{
private:
CustomerNode *head, *current, *newCustomer;
public:
CustomerLinkedList()
{
head = NULL;
current = NULL;
}
~CustomerL... |
452546497590144b2994e6961dacc875d4cbba18 | 1bd0f68866a8504a774387823664fe54de1b6bf5 | /src/SymbolicModel.hh | 20494a76ca6e437a9525ce498629bd41ea1b1db4 | [
"MIT"
] | permissive | MehrdadZareian/GAMARA | 8d1f9dc26d856ef60d0060b1be328dbf502759e1 | 85428ae55a0cb8ae541d6db668307cacc3899cee | refs/heads/master | 2023-07-08T06:15:33.343091 | 2021-08-09T07:07:12 | 2021-08-09T07:07:12 | 341,169,040 | 1 | 0 | null | 2021-05-17T12:50:33 | 2021-02-22T10:56:32 | Jupyter Notebook | UTF-8 | C++ | false | false | 7,707 | hh | SymbolicModel.hh | /*
* SymbolicModel.hh
*
* created: Jan 2017
* author: Matthias Rungger
*/
/** @file **/
#ifndef SYMBOLICMODEL_HH_
#define SYMBOLICMODEL_HH_
#include <iostream>
#include <vector>
#include "SymbolicSet.hh"
/** @namespace scots **/
namespace scots {
/**
* @class SymbolicModel
*
* @b... |
37ec39274054fb7eab0c29a8bc599b63eaa7abc0 | 3054ded5d75ec90aac29ca5d601e726cf835f76c | /Training/UVa/CP3/Mathematics/Java BigInteger/10235 - Simply Emirp.cpp | a101007bf41c37606933de1afcc0ac0ef43125e0 | [] | no_license | Yefri97/Competitive-Programming | ef8c5806881bee797deeb2ef12416eee83c03add | 2b267ded55d94c819e720281805fb75696bed311 | refs/heads/master | 2022-11-09T20:19:00.983516 | 2022-04-29T21:29:45 | 2022-04-29T21:29:45 | 60,136,956 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | cpp | 10235 - Simply Emirp.cpp | #include <bits/stdc++.h>
#define endl '\n'
#define debug(X) cout << #X << " = " << X << endl
#define fori(i,b,e) for (int i = (b); i < (e); ++i)
#define mod(x,m) ((((x) % (m)) + (m)) % (m))
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;... |
e43f5af79c670419c930ff63192c3a9c70ef9b3a | 8f0cf8a55ec608add3ba1b1d0cb35a12d26a2dfa | /app/src/sy_testmode.cpp | e14b7a95890adab2dc94c1cea3128d3c6edcbcdc | [] | no_license | gxuliang/fox | f298596f3bdd3da2f51d949683e58123b9340e54 | 2ca2bbc88f4b0cf4576b5c5f8b083cef6b14452d | refs/heads/master | 2021-01-18T16:27:59.254775 | 2014-11-10T15:01:19 | 2014-11-10T15:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,778 | cpp | sy_testmode.cpp | /*
* sy_testmode.cpp
*
* Created on: 2014-10-30
* Author: xul
*/
#include "base/sy_types.h"
#include "NetService/sy_netServ.h"
#include "sy_testmode.h"
#include "base/sy_debug.h"
PATTERN_SINGLETON_IMPLEMENT(CTestMode)
CTestMode::CTestMode()
{
flag = 0;
}
CTestMode::~CTestMode()
{
}
void CTestMode::... |
0caef29eb2151730ca6294f80e4e5d2b648a5cec | 835bd7f9fefc53816be3cf20d0d3e25aaf4c05b6 | /workspace-latest/framework/src/ScreenAdapter.cpp | 5ec12be3bb33738133c2952937356fe3f719ecf2 | [] | no_license | wangenheng/gitHub | fd24cee8bb9a3adf707cd095d88620dde91a2c87 | 3d5ccf1aee5650ad911affcfaf472f47db71e72b | refs/heads/master | 2021-03-19T08:30:23.359813 | 2017-07-25T09:13:08 | 2017-07-25T09:13:08 | 98,287,966 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | ScreenAdapter.cpp | #include "ScreenAdapter.h"
Implement_DynCreate(ScreenAdapter, Adapter)
ScreenAdapter::ScreenAdapter(void)
{
}
ScreenAdapter::~ScreenAdapter(void)
{
}
|
e61b51bbbd9e7cee57bb50de97cc76b3cbf3e772 | 050af48721534d62f7a089254cc7abb096332299 | /utility/relational-table-generator/table_data_gen.cpp | 80bb6d38a918ef02ee13436b0d74b65f135c6906 | [] | no_license | dadaism/nested-parallelism | 921451ec93dceebcd9baf0a19854b89c48b8e7c4 | 12e0fc301feb31cec00d1c1b431c398050a26926 | refs/heads/master | 2021-01-01T19:16:32.587668 | 2015-09-24T04:15:47 | 2015-09-24T04:15:47 | 32,062,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,927 | cpp | table_data_gen.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <math.h>
#define KEY_RANGE 6666
typedef struct conf {
bool verbose;
int dist;
float k;
char *data_file;
} CONF;
typedef struct tb {
int size;
short *key;
short *value;
} TABLE;
CONF config;
bo... |
e2dcac08bf4118b07ab344314d5f53497b25ab4c | 6738808ec10e41049d2bae752949469b5651f38f | /src/App/CommandFactory.cpp | 46d088b6afebe06ea6f2ab2f809f733cea320611 | [] | no_license | 22116/oslabskhpi | a746c6aeb0a06211d5403e63caa1cbfc3c766d71 | ff005282e4c0989f9441defe7149bd2eb84c86df | refs/heads/master | 2020-04-20T00:58:49.104718 | 2019-01-25T12:42:45 | 2019-01-25T12:42:45 | 168,533,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | cpp | CommandFactory.cpp | //
// Created by victor on 1/9/19.
//
#include <string.h>
#include "CommandFactory.h"
#include "Commands/EncodingSwitcher.h"
#include "Commands/SubstringSearcher.h"
#include "Exception/InvalidCommandIdentifierException.h"
#include "Commands/SubstringReplacer.h"
#ifdef __unix__
#include "../Core/Directory/Strategy/Uni... |
8456039247a3863f5794f73d982b01ae88cb0eb3 | 6e00115571a7615cea6bed9b9821db6e4f4caf3b | /Source/MagicBattleSoccer/Private/Traps/MagicBattleSoccerTrap.cpp | 0baf4a1966e892ed4fe01f4dd765ea061c488127 | [] | no_license | NoCodeBugsFree/UBattleSoccerPrototype | 92d115edb2b95cb4b3aaa6d23a11d482db0acab5 | 9e7aba8cf17ce5b3c74d0869b70d1e7884d55bf5 | refs/heads/master | 2023-01-08T13:42:04.419213 | 2020-10-27T21:56:15 | 2020-10-27T21:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | cpp | MagicBattleSoccerTrap.cpp |
#include "MagicBattleSoccerTrap.h"
#include "MagicBattleSoccer.h"
AMagicBattleSoccerTrap::AMagicBattleSoccerTrap(const class FObjectInitializer& OI)
: Super(OI)
{
bReplicates = true;
bNetUseOwnerRelevancy = true;
this->SetActorTickEnabled(true);
PrimaryActorTick.bCanEverTick = true;
}
|
03941350b99b670ce3ceef2ab1ae60249b8e098a | 48c4ae1f8eae90082432273028302c0a977af6c0 | /include/q0349_intersection.hpp | 31eaa1610ec25d6a71905197ffc556673f3398ac | [] | no_license | hahahaMing/cmake_demo | b4c7f36ba270f9dfcbf9b4b7c47e5ffa885c4574 | e435e31b73ceda818a0378dc767ca3b3c00fc6e2 | refs/heads/master | 2021-09-29T03:00:35.275055 | 2021-09-26T06:28:30 | 2021-09-26T06:28:30 | 205,612,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | hpp | q0349_intersection.hpp | //
// Created by ming on 2020/11/2.
//
#ifndef CMAKETEST_Q0349_INTERSECTION_HPP
#define CMAKETEST_Q0349_INTERSECTION_HPP
#endif //CMAKETEST_Q0349_INTERSECTION_HPP
#include"tools.hpp"
class Solution {
public:
std::vector<int> intersection(std::vector<int> &nums1, std::vector<int> &nums2) {
int l1 = nums1... |
5fae50bad18a09b83e7d51b8d0274974d0613234 | 28999c5603d9e9e3db378a37169dccc17ea51f43 | /code/render/visibility/systems/boxsystemjob.cc | 1bfb601364e7fd89c3b77a7645ece2fc966b700f | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gscept/nebula | e973c2b950da93ca30e0432fc6bd6dd6f6a59bdd | 4dca6f2a8f1deb2020f1b7d179dd29e1ed45a5fe | refs/heads/master | 2023-08-25T06:39:53.517007 | 2023-08-24T15:30:57 | 2023-08-24T15:30:57 | 164,856,783 | 603 | 36 | NOASSERTION | 2023-09-12T22:22:41 | 2019-01-09T12:14:20 | C++ | UTF-8 | C++ | false | false | 318 | cc | boxsystemjob.cc | //------------------------------------------------------------------------------
// boxsystemjob.cc
// (C) 2018-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "boxsystem.h"
namespace Visibility
{
} // namespace Visibility
|
c9d9b05f60654e55926705d5811ec51f35263523 | 798182bfc3f06f321f43c1954b35ee702ae361d7 | /TCPMSNServer/src/Login.cpp | b8a77e3045ab820164cf6d6c20043e1ed9bb4209 | [] | no_license | tomersaporta/Final-Project-Network-Programming-Lab | edbf63e5fdfe40357ccf3f5469b0fdb71c9b9c85 | b81c88ec238a890819123757806a4a1f00584fe6 | refs/heads/master | 2021-05-16T01:15:59.795581 | 2017-10-15T22:51:08 | 2017-10-15T22:51:08 | 107,049,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,758 | cpp | Login.cpp | /*
* Login.cpp
*
* Created on: Aug 27, 2017
* Author: user
*/
#include "Login.h"
namespace networkingLab {
networkingLab::Login::Login(LoginHandler* handler) {
this->stop = false;
this->newPeer = NULL;
this->init_first = true;
this->init_second = false;
this->path = "password3.txt";
this->handler = ... |
27f4b9815d4f4dfd18a79b271d133563efb19d77 | b05ee0ef4aa4df4ec04d276b525450a8632df588 | /boj/13232.cc | 01d7b922a90e18cf8cfaf0ab6f0fdb84808ff980 | [] | no_license | dongwoo338/algo | d300101a71d212bbb50effb0213af0facee6a2d7 | fac72b49b08292374b8e96f2d41d8bb1f2404dac | refs/heads/master | 2023-02-21T13:55:51.815259 | 2021-01-16T12:58:42 | 2021-01-16T12:58:42 | 306,344,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cc | 13232.cc | #include<bits/stdc++.h>
using namespace std;
int n, m;
const int N = 5005;
bool vis[N];
vector<vector<int>>g;
vector<vector<int>>ng;
stack<int>st;
void dfs(int u) {
vis[u] = 1;
for (int v : g[u]) {
if (!vis[v])dfs(v);
}
st.push(u);
}
int dfs2(int u) {
int ret = 1;
vis[u] = 0;
for (in... |
3d020dfaad1c1ed9158677e2a966011d9c599e6b | c07797934115e827efe18190efb765825ddbeec8 | /playerbot/strategy/deathknight/DKTriggers.h | 816f0e3d8f07c513b7744bfbb6cc3bef0aeb2bfb | [] | no_license | conan513/mangosbot-bots | 5382d9939a0a5caedb91fa0f11cd773dd554f3c4 | 676ca668eae7c0814547b4a09f961a8a9eb214f8 | refs/heads/master | 2023-06-27T06:28:31.431732 | 2023-06-20T16:27:16 | 2023-06-20T16:27:16 | 153,980,213 | 7 | 3 | null | 2018-10-21T06:32:52 | 2018-10-21T06:32:52 | null | UTF-8 | C++ | false | false | 3,049 | h | DKTriggers.h | #pragma once
#include "../triggers/GenericTriggers.h"
namespace ai
{
BUFF_TRIGGER(HornOfWinterTrigger, "horn of winter");
BUFF_TRIGGER(BoneShieldTrigger, "bone shield");
BUFF_TRIGGER(ImprovedIcyTalonsTrigger, "improved icy talons");
DEBUFF_TRIGGER(PlagueStrikeDebuffTrigger, "plague strike");
D... |
61690d190001d915e6cc3669872cf8c8ff076770 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/directx/dinput/dicfgddk/cbitmap_stub.cpp | 0999ec7281c9ad35f95ebf1b6a2a68f7db7e8f9a | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 70 | cpp | cbitmap_stub.cpp | #include "common_stub.hpp"
#include "..\\..\\diconfig\\cbitmap.cpp"
|
3e8be1b526884ac1e9ee9bf35075ad0ac84edcc0 | e966f01ccba42e397b6e99eda02334fbd8a08ea2 | /nist/nist/stl/vector1.cpp | a216d7812fe101c1bdbfb9e92e662df753c7bbde | [] | no_license | bhawneshdipu/college-code | 382f849ee8e19b5e37e2ef55d9213dc27807a46c | 5d9f21ccd6510d6928165f45d2d0e6eadb2ec268 | refs/heads/master | 2023-08-04T00:27:27.711718 | 2021-09-08T21:35:27 | 2021-09-08T21:35:27 | 43,536,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,490 | cpp | vector1.cpp | #include<iostream>
#include<vector>
#include<cstdio>
using namespace std;
class Object{
public:
string s;
int n;
bool b;
};
int main(){
int n;
printf("Enter Length of Vector\n");
scanf("%d",&n);
vector <int> vi; // vector of integers
vector <string> vs;// vector of strings
vector < vector < int > > vvi;//v... |
b6fae4b40324cfe7e069f0470062779d5cb286a9 | 49f6e2a1fff5a4e41081133965b3933d4efc82e0 | /puzzle.cpp | 7feb9ea337029bf77503544cacedda51dd771f81 | [] | no_license | ArjunBhushan-zz/Sudoku-Solving-XY-Robot | 21520119e5ae8088fd17c91b9a2c665b53224cb3 | 7189f3bc98fdc950ec2629c184a850eccf096655 | refs/heads/master | 2021-09-08T00:18:28.359947 | 2018-03-04T02:54:13 | 2018-03-04T02:54:13 | 116,354,629 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,824 | cpp | puzzle.cpp | #include<opencv2/opencv.hpp>
#include <opencv2/imgcodecs.hpp>
#include<iostream>
#include <opencv/ml.h>
#include <opencv/highgui.h>
#include "digitrecognizer.h"
#include <sstream>
using namespace std;
using namespace cv;
using namespace cv::ml;
Mat thresh(Mat img)
{
cvtColor(img,img,CV_BGR2GRAY);
M... |
3068cbf23ee406e6f0535053807c1109cd82fe89 | 765d3d92befb0937030b04798f5536f71313d4ed | /moKa/adsrplot.h | 7d3c579c840451b135f890a2cc24ee50bbea38db | [] | no_license | vsr83/moKa | 57bde0331c9311f8d641b2eedaf5ba99a153841d | 4993cbc08a8567ccad3d89d40168a373e15a014b | refs/heads/master | 2020-12-30T13:39:10.220624 | 2017-06-17T13:00:03 | 2017-06-17T13:00:03 | 91,235,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | h | adsrplot.h | #ifndef ADSRPLOT_H
#define ADSRPLOT_H
#include <QWidget>
#include <QPixmap>
#include "envelope.h"
class ADSRPlot : public QWidget {
Q_OBJECT
public:
ADSRPlot(QWidget *parent = 0);
~ADSRPlot();
protected:
void paintEvent(QPaintEvent *event);
void resizeEvent(QResizeEvent *event);
public slots:
... |
89f0080c3483f5fbab6dbd41a3bdf72d89cf09d0 | 2d7974502098a1c6c3b064befee0b68cd966fea1 | /Piscine_CPP/cpp_rush3_2018/src/ncurses/User.cpp | 93951a3d8695f4721f34ef5ba99d18a914ae5ca6 | [] | no_license | Tifloz/Tek2 | 85d280aac303a81cecbba7f0254b23a434583efd | e4cf798878c991ca7bc41e3dc075d47da8b854aa | refs/heads/master | 2020-12-10T15:15:16.569214 | 2020-01-13T15:43:33 | 2020-01-13T15:43:33 | 233,628,967 | 0 | 0 | null | 2020-10-13T18:49:49 | 2020-01-13T15:33:25 | C++ | UTF-8 | C++ | false | false | 807 | cpp | User.cpp | /*
** EPITECH PROJECT, 2019
** cpp_rush03_2018
** File description:
**
*/
#include <ncurses.h>
#include "User.hpp"
User::User() = default;
User::~User() = default;;
void User::DisplayUserHost()
{
init_pair(1, COLOR_RED, COLOR_BLACK);
init_pair(2, COLOR_BLUE, COLOR_BLACK);
init_pair(3, COLOR_MAGENTA, COLO... |
5cc47c216574383a6a8f8898abc40e5cdae8ccc5 | 83373f40f70c78bbbd0379d64e5c6e882d11d436 | /Block.h | b37de5b0e1b547c870374801d4d9c39e160e4f05 | [] | no_license | AnargyrosArg/Project_OOP | 4c61b22ad121543b73f303a528fae0367ed9f2bb | 207b80fcbb427efc2d8d136ca5e448c2296c8dfa | refs/heads/master | 2023-02-12T10:00:56.270268 | 2021-01-06T11:03:05 | 2021-01-06T11:03:05 | 325,373,700 | 0 | 0 | null | 2021-01-06T11:03:06 | 2020-12-29T19:47:32 | Makefile | UTF-8 | C++ | false | false | 294 | h | Block.h | //
// Created by anarg on 1/3/2021.
//
#ifndef UNTITLED1_BLOCK_H
#define UNTITLED1_BLOCK_H
#include "Party.h"
class Block {
private:
public:
virtual bool isAccessible(){return true;}
virtual void event(Party* party)=0;
virtual void printBlock()=0;
};
#endif //UNTITLED1_BLOCK_H
|
87ca077f4d4a662713e72aba80c9108c451c9ace | e7fe3995745df145a1d12fca4c9847b605110bf3 | /libs/Timer.h | 941a52d909ec2227fe52736ef5460b0bcda6444e | [
"MIT"
] | permissive | WowSoLaggy/Doh3d | 42c8d78eae79a08d8bc9cfc5bc3b0815dfc4e3d3 | 0aca8f00fdc52975ff872c99b0f48fbac3d779d6 | refs/heads/master | 2021-09-11T13:25:59.586561 | 2018-04-07T19:28:35 | 2018-04-07T19:28:35 | 63,375,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,166 | h | Timer.h | #pragma once
#ifndef TIMER_H
#define TIMER_H
#include <Windows.h>
// Simple class that counts the elapsed time in seconds. It's accuracy depends on the system performance counter frequency
class Timer
{
public:
// Default ctor with the system performance counter frequency check
Timer()
{
QueryPerformanceFre... |
1957d3e132cb188721c4e74d135ffb675494d5e9 | 8ea027a5325ef71ef5a5b1d11491a3f6498b3c0b | /Sheet_06_Code/DuplicateParenthesis.cpp | ba9bd2b758e4cc39603737b32a8112d6a7618dd2 | [] | no_license | Prateekkumar24/CipherSchools_CP | d3f886480862804a193e2adc750be20e1fb59e6d | 79c8826409d3d66cc7644624e58a99ba9a7aacb0 | refs/heads/main | 2023-06-11T21:10:38.448340 | 2021-07-10T04:24:13 | 2021-07-10T04:24:13 | 384,535,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,170 | cpp | DuplicateParenthesis.cpp | // Code to find duplicate parenthesis in a balanced expression
#include <bits/stdc++.h>
using namespace std;
bool Duplicateparenthesis(string str)
{
stack<char> Stack;
for (char ch : str)
{
// if current character is close parenthesis
if (ch == '}')
{
... |
d4a3b9c47424c9090b96734836e3093bf6ab596a | a7caaf953a0849f6081e44382da74a600a86b3da | /opencv-2.4.9/modules/legacy/src/epilines.cpp | b63f8e1c770ad54c338adac0aa8cdaeffadf2df7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | watinha/collector | 22d22116fc1dbdfeec3bddb05aa42d05efe5b5b4 | fc4758f87aad99084ce4235de3e929d80c56a072 | refs/heads/master | 2021-12-28T11:12:50.548082 | 2021-08-19T20:05:20 | 2021-08-19T20:05:20 | 136,666,875 | 2 | 1 | Apache-2.0 | 2021-04-26T16:55:02 | 2018-06-08T21:17:16 | C++ | UTF-8 | C++ | false | false | 108,169 | cpp | epilines.cpp | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
44c02fbf230b4997504447f98a69c22633cb00f6 | 4f4d5fb91b80c1f69966bd29c0fbd83890417371 | /Projects/FinalProject/UseItemRoom.hpp | 9d8c6ccb7dfc7886e45a61dca5ae7bf174a19fe0 | [] | no_license | Huffmajo/CS162 | 62b3bda16c7fa054a7658f72dbe043c85caa3fb7 | 60d7063d8826cf939ac42bb53b2163f2e45f3635 | refs/heads/master | 2021-09-16T05:13:46.134720 | 2018-06-16T22:38:13 | 2018-06-16T22:38:13 | 137,614,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | hpp | UseItemRoom.hpp | /*********************************************************************
** Program name: Race to the Throne
** Author: Joel Huffman
** Date: 03/7/18
** Description: A text-based adventure game
*********************************************************************/
#ifndef UseItemRoom_hpp
#define UseItemRoom_hpp
#... |
7e91822ae7e47445d2c07fc77f8184fbaebab65e | 2a8d5db78a76a109b2b38e86654f02795c66f5f0 | /code/Prey/game_talon.cpp | d7094cbec42946e725f66f93601696aca0f06c52 | [] | no_license | dirtydanisreal/PreyDoom | a7302082561c856b067be94daf2024853a4a5124 | 543e9ebf40d1cf0d82f7f74f542d07aacafeca6c | refs/heads/master | 2023-09-01T06:31:59.604401 | 2023-08-18T18:49:41 | 2023-08-18T18:49:41 | 311,948,860 | 0 | 0 | null | 2020-11-11T11:21:32 | 2020-11-11T11:21:31 | null | UTF-8 | C++ | false | false | 51,489 | cpp | game_talon.cpp | //*****************************************************************************
//**
//** GAME_TALON.CPP
//**
//** Game code for Tommy's sidekick, Talon the Hawk
//**
//*****************************************************************************
// HEADER FILES --------------------------------------------------------... |
54354282e9e7bd6e2ece32fc43ec0fb197f546ba | 7f2cf760d5434c61775ff8a28efa8dd68df88e65 | /FirstEngine/PixelShader.h | 531ac6633aa13ff5a0e7190e0a6d1466b6153fb1 | [] | no_license | RKGekk/BabaYaga | 7fb9435c77a4a7cd433bc5856eca578653856259 | 459c81659291d58af86392d9e5196e18162f1c71 | refs/heads/main | 2023-02-07T22:35:30.657047 | 2020-12-22T16:28:08 | 2020-12-22T16:28:08 | 306,056,207 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 472 | h | PixelShader.h | #pragma once
#include <d3d11.h>
#include <d3dcompiler.h>
#include <wrl.h>
#include <string>
#include <fstream>
#include "Bindable.h"
#include "memoryUtility.h"
class PixelShader : public Bindable {
public:
PixelShader(ID3D11Device* device, ID3DBlob* pBytecodeBlob, ID3D11PixelShader* pPixelShader);
void Bind(ID3D11... |
1b28f5b91971750ccd4c006edf29b1940567c39d | 9aa0ec9065485acab4fba5263b86366402a1a9b1 | /入门经典/part3/chapter9/9.3-0-1背包问题/9-5-0-1背包问题_滚动数组_边读边算.cpp | 68e66a53bafb7145e60ad05b323c570886cf5067 | [] | no_license | defuyun/ACM | 1883ad46f057b79f7fab2a7b659ab8320a1a9ca7 | b2879d10b1a292b593250d5b85fb791b17a676c4 | refs/heads/master | 2021-01-18T21:18:40.290945 | 2016-05-06T01:17:00 | 2016-05-06T01:17:00 | 33,590,907 | 1 | 2 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 430 | cpp | 9-5-0-1背包问题_滚动数组_边读边算.cpp | //online judge: TYVJ P1005 ²ÉÒ©
#include<cstdio>
#include<cstring>
const int maxt = 1010;
int T, M, v, t, f[maxt];
int main(){
scanf("%d%d", &T, &M);
memset(f, 0, sizeof(f));
for(int i = 1; i <= M; ++i) {
scanf("%d%d", &t, &v);
for(int j = T; j >= 0; --j){
if(j>=t &&... |
b8bf3734ce45709df42bc59dfdfca05efdbe70e2 | c7838c5bfc1a4583ed5646eb957d00406bd165d4 | /observer.pattern/octonary_observer.cpp | 15ad44f3ffd96d45dd536b8a0e3ab46a87786a34 | [] | no_license | giszmr/design-pattern | ee4dd8257b78e9d6212e279f997fb4f9ceab0980 | 50b0a2d881a369d7fac4ec967fb87e41ff52339b | refs/heads/main | 2023-04-14T02:56:39.997792 | 2021-04-25T07:31:48 | 2021-04-25T07:31:48 | 361,359,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 137 | cpp | octonary_observer.cpp | #include <stdio.h>
#include "octonary_observer.h"
void COctonaryObserver::Update(int msg)
{
printf("Octonary string: %o\n", msg);
}
|
d87116e29b6c6904317d579764c584c567f5ed23 | 4b187bd1e89f6bcce100b7bd05b4ff202522bc4d | /OnlineJudgeSolutions/Codeforces/codeforces 1023C.cpp | 9d6a1891cb7fb02b071bdedd4f0e4c38bc59cf77 | [] | no_license | codefresher32/CompetitiveProgramming | e53133a906081e7931966216b55d4537730d8ba3 | 923009b9893bdb0162ef02e88ea4223dc8d85449 | refs/heads/master | 2021-04-13T06:51:04.428078 | 2020-03-24T13:40:16 | 2020-03-24T13:40:16 | 249,144,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | codeforces 1023C.cpp | #include<bits/stdc++.h>
using namespace std;
bool f[200005];
int main()
{
string s;
int l,n,k,j,r;
cin>>n>>k;
cin>>s;
stack<int>st;
r=(n-k)/2;
for(int i=0;i<n;i++)
{
if(s[i]=='(')
{
st.push(i);
}
else
{
... |
e4d9c63f7736f210b8c3324a078f18d9d9f470b8 | 7583f6e9cc1a73ad8aa90c53767435edc87b7219 | /sheet_1/Salary-with-Bonus.cpp | 60b37c2c7df4fc35bc0a17d9a8c939662b53f98b | [] | no_license | MohamedElmdary/acm-0 | 23fc5d6480ac1e1ca5d9b5cead3fe9b34301945e | 67ab046140bfc5368b7557b4aca204236d6e3b8e | refs/heads/master | 2020-07-18T06:25:01.293359 | 2019-09-19T10:05:54 | 2019-09-19T10:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | Salary-with-Bonus.cpp | #include <iostream>
int main()
{
std::string name;
float salary, sales;
std::cin >> name >> salary >> sales;
printf("TOTAL = R$ %0.2f\n", salary + 0.15 * sales);
return 0;
} |
e78f4e0d932c30f4a173a305e9ad6fbe290f4f2e | b21d5ef96a4b11edd401bb438c05d25f3af6381f | /src/main.cpp | dedc0dbf46556d380b7c97329cec6b8a056ce3d6 | [
"MIT"
] | permissive | rufus-stone/hufflepuffle | 501ffc7c0914439e57d5c73540fa5758e67d3f29 | ff2745dfb910c15ca81f27166748880673a79698 | refs/heads/main | 2023-06-16T17:07:20.266888 | 2021-07-12T08:59:55 | 2021-07-12T08:59:55 | 343,747,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | main.cpp | #include <string>
#include <string_view>
#include <spdlog/spdlog.h>
#include "huffle.hpp"
using namespace std::string_view_literals;
static constexpr auto text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis... |
0fde17941a03a5bcedf7537774919e1a0eaa4de3 | ca6b7bd6516e5098310cd803168007249f3b469d | /src/libraries/disp/viewers/helpers/bidsviewmodel.cpp | a0172a65e858d6f9c6b0f50da5f1f89bfb2b811d | [
"BSD-3-Clause"
] | permissive | mne-tools/mne-cpp | 125e90d2373cb30ae8207fb3e2317511356a4705 | 3b3c722936981e4ecc3310c3b38f60b1737c69ec | refs/heads/main | 2023-08-16T16:41:05.569008 | 2023-08-09T15:28:39 | 2023-08-09T17:52:56 | 5,600,932 | 145 | 150 | BSD-3-Clause | 2023-08-09T17:52:57 | 2012-08-29T13:33:22 | C++ | UTF-8 | C++ | false | false | 15,182 | cpp | bidsviewmodel.cpp | //=============================================================================================================
/**
* @file bidsviewmodel.cpp
* @author Lorenz Esch <lesch@mgh.harvard.edu>
* Gabriel Motta <gbmotta@mgh.harvard.edu>
* @since 0.1.6
* @date October, 2020
*
* @section LICENSE
... |
5df2e92f06116597ad38747868c23ac9b623b306 | f250678b454d1ce7c9f0d471e3a40ee057710669 | /common/shape.cpp | 6e4dee5b10e89cec0d7052baf56c04e03e771062 | [] | no_license | gejimayu/OpenGLK | 6e25733b8f82a8a5c09ce594efc2a41411505e5e | c1dbb8bd4597f6673e07fa16cd6fa515e7434573 | refs/heads/master | 2020-03-19T17:15:33.291089 | 2018-05-14T17:06:12 | 2018-05-14T17:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,248 | cpp | shape.cpp | #include<iostream>
#include<math.h>
#include "shape.h"
void addPolygon(GLfloat* &arr_a, int &num_of_point_a, GLuint* &ele_a, int &num_of_element_a, GLfloat* arr_b, int num_of_point_b, GLuint* ele_b, int num_of_element_b, std::vector<std::pair<int, int>> &segments) {
segments.push_back(std::make_pair(num_of_elemen... |
784e797079ab52e2b0b7f35764a3b87fb0cfd2ca | cd6b5688f1f91e9a6de26993ab4ecedcb0af8e7c | /GlobalGameJam2018Game/PolyJamGame/Src/ActorSystem.hpp | 35f31c565a3cf083326b4a7c8c7107e5ce44d76d | [
"MIT"
] | permissive | KNTGPolygon/PolyEngineExamples | 8009639ece30f790b6b6a7f01a6a10ddae84c164 | f91c87fff0ea1ffa0b743b584d5f621cb86a0edb | refs/heads/dev | 2021-05-05T22:33:34.870120 | 2019-01-04T13:06:17 | 2019-01-04T13:06:17 | 116,171,508 | 0 | 9 | MIT | 2019-01-08T20:49:37 | 2018-01-03T19:00:12 | C++ | UTF-8 | C++ | false | false | 461 | hpp | ActorSystem.hpp | #pragma once
#include <ECS/Scene.hpp>
using namespace Poly;
namespace GGJGame
{
enum class eProjectileType;
namespace ActorSystem
{
void GAME_DLLEXPORT Update(Scene* world);
void Jump(Poly::Entity* actor);
void Shoot(Poly::Scene* world, Poly::Entity* actor, const Vector& localOffset, const Vector& direc... |
ba5b0775bc1b9900181820df1fa674e897bd46d7 | 4a1ef66e84febdd996ccccb1d7cdf0002ba9e411 | /framework/Renderer/Headers/Light.h | c195485329ffe5e6de37d050c714ad6ae20339c5 | [
"MIT"
] | permissive | grtwall/kigs | dc782b517626ab792048a3f74e670ba39ae17aaa | 2ada0068c8618935ed029db442ecf58f6bf96126 | refs/heads/master | 2023-06-06T12:11:44.054106 | 2021-06-28T11:31:43 | 2021-06-28T11:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,744 | h | Light.h | #ifndef _LIGHT_H_
#define _LIGHT_H_
#include "Node3D.h"
#include "maReference.h"
#include "TecLibs/Tec3D.h"
#ifdef _3DSMAX
namespace KigsFramework
{
#endif
// ****************************************
// * Light class
// * --------------------------------------
/**
* \file Light.h
* \class Light
* \ingroup Renderer... |
7e7524f6d64df2082faddb0bae74289d1b9e5b9a | d8c12ea48213b4cbe7448bf0e0b82c3e190e32a9 | /URI_c/1564 - Brazil World Cup.cpp | 9c0370b5ae8df08f3e7ee9cc8794a80ca6d588d8 | [] | no_license | MinhazulKabir/CodingStore | f49ba17ef3a98eb97f5232ea989ebd842cbb3cd8 | 393a6363d4ce10d7a4f21f1deed9c6799818e1c5 | refs/heads/master | 2023-05-05T01:39:52.517682 | 2021-04-10T05:20:54 | 2021-05-26T08:16:49 | 356,479,134 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | 1564 - Brazil World Cup.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int i,j,n;
while(scanf("%d",&n)!=EOF)
{
if(n==0)
{
printf("vai ter copa!\n");
}
else
{
printf("vai ter duas!\n");
}
}
return 0;
}
|
10b1fe5017cbdb44d70fab12670b1b1876c2070e | 6e9511e57ced8bb869447c40de4dfcf6ae4bd8e5 | /Src/Prj/UnitTest/Gen/Dcc/Ut_Packet/test.cpp | 332b57c132668119fbb98341b105ce654df0775d | [
"MIT"
] | permissive | RalfSondershaus/Arduino | f49b2802656796ee25462fbaf98b04ec14dfd0c1 | 7db614a29dbd4a9301073944d17584cf79f34a6f | refs/heads/master | 2023-03-08T15:44:39.582369 | 2023-02-26T09:51:12 | 2023-02-26T09:51:12 | 151,407,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,948 | cpp | test.cpp | /**
* @file test.cpp
*
* @author Ralf Sondershaus
*
* Google Test for Gen/Dcc/Packet.h
*/
#include <Dcc/Packet.h>
#include <gtest/gtest.h>
#include <array>
TEST(Ut_Packet, packet_empty)
{
Dcc::Packet<6> packet;
int i;
for (i = 0; i < 6; i++)
{
EXPECT_EQ(packet.refByte(i), 0);
}
EXPECT_EQ(packet... |
10f42c722f7633855298f315c889ccd68ffad99f | 7271999719f130d2e56d058c445b5871f2e0a517 | /include/db.hpp | 353e8d591a30c59cfb7b94db15b16e53e826d6a8 | [] | no_license | alexmustdie/PolyLib | 2beefb62d7bab142fcf3d13f44623c6289bf6555 | 0f1aa02e38bcab8e38d833c997dce443762a96ba | refs/heads/master | 2020-03-21T20:44:18.385161 | 2018-08-13T16:16:50 | 2018-08-13T16:16:50 | 139,024,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | hpp | db.hpp | #ifndef DB_HPP_INCLUDED
#define DB_HPP_INCLUDED
#include <pqxx/pqxx>
namespace polylib
{
class DB
{
private:
DB() = default;
~DB() = default;
DB(const DB &) = delete;
DB& operator=(const DB &) = delete;
DB(DB &&) = delete;
DB& operator=(DB &&) = delete;
public:
static pqxx::n... |
f03ea4cf02cb79fb9cb38a5ff687935a75323cd8 | f327ee49aa144bf5d3397e509bdadb36cf835f7c | /merge-k-sorted-lists-1.cpp | 6f1f6a7bd71f1e59c5000d1afe54274825154f69 | [] | no_license | sidthekidder/dsa-practice | 5c677f7654c83f332c23561851e5f890ba5b2b93 | 14d019d79416f8b32c97dbf6105cf0835157d25b | refs/heads/master | 2020-03-24T18:43:01.613110 | 2019-10-16T19:15:39 | 2019-10-16T19:15:39 | 142,897,894 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | cpp | merge-k-sorted-lists-1.cpp | // https://leetcode.com/problems/merge-k-sorted-lists/
// time complexity - O(k + nlogk), space complexity - O(k)
class Comparator
{
public:
bool operator() (ListNode* a, ListNode* b)
{
return a->val > b->val;
}
};
class Solution {
public:
ListNode* mergeKLists(vector<ListNode*>& lists)
... |
caa8805587e7570e5ce53e6918ac9415e706782d | 82a986a306b0a9f9947a8c9f55aad4817f4f4137 | /Zadanka z Algosów/graph.hpp | 2ff1e34f6a565474afd42b682e8ef255bea705e0 | [] | no_license | SoliareofAstora/Algosy | e89ff45f10c8604dc6cae66d3eec5703ff94ad86 | f442ffb1c8f94e30a24ab8ee6c68ad3735b2e4a7 | refs/heads/master | 2018-10-13T18:15:33.540815 | 2018-08-15T01:36:15 | 2018-08-15T01:36:15 | 106,525,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,265 | hpp | graph.hpp | #pragma once
#include <vector>
#include <future>
#include "avl.h"
#include <stack>
#include <queue>
template <typename T,typename edge>
class graph
{
struct edge_info
{
edge label;
bool connection;
edge_info():connection(false){}
edge_info(edge& label) :label(label), connection(true) {}
};
public:
std::ve... |
2bf813b6e9533e67b3fb7cdf7572d192ab6b4106 | 745c975ae7afb47dc682a8130b8ea648b4227f7d | /aes_rsa_demo/rsa_example.cpp | 341e3817aacd20a8ba5b628102ced25639df0067 | [] | no_license | acoolbest/practice | 5a65878e2fdad570ac851bb7f2a50e0be39250cb | 95790d9a5cc061619937cb18f6672be9655876cc | refs/heads/master | 2021-04-06T00:09:51.733864 | 2018-12-24T01:31:25 | 2018-12-24T01:31:25 | 125,301,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,659 | cpp | rsa_example.cpp | //example.cpp
//g++ rsa_example.cpp -o rsa.out -lcrypto
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <stdio.h>
int padding = RSA_PKCS1_PADDING;
RSA* createRSAWithFilename(const char*, int);
... |
c982d1dd13c4d2adca2ccd695a55f096ad9d6662 | da86d9f9cf875db42fd912e3366cfe9e0aa392c6 | /2018/solutions/C/MPA-Varna/palindromes.cpp | e364d6bf115da9b8ec1667bf397e2b6bc35c7526 | [] | no_license | Alaxe/noi2-ranking | 0c98ea9af9fc3bd22798cab523f38fd75ed97634 | bb671bacd369b0924a1bfa313acb259f97947d05 | refs/heads/master | 2021-01-22T23:33:43.481107 | 2020-02-15T17:33:25 | 2020-02-15T17:33:25 | 85,631,202 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | cpp | palindromes.cpp | #include<iostream>
#include<string>
using namespace std;
string input;
int ar[1301];
int main()
{
cin>>input;
int size = input.size();
bool oddSize = false;
for(int i = 0; i<size/2; ++i)
{
ar[i] = input[i]-'0';
ar[size-i-1] = input[i]-'0';
}
if(input.... |
8c59b403b94f38fe529bd7bddaa37075c1f73e45 | 28aeabd696ad96b52ffc8b275aa948f4c3eeef80 | /test/vendorTest.cpp | 8edfe5bf001df28cdc6c663102fd81a2cf758b7c | [] | no_license | naokirin/tddbc_cpp_disappointing_sample | 40eedad36d62487fb46f94e7210ecacfa42ae975 | 4c3a1a2d420fe6350cc3fa5160d03949d6b72774 | refs/heads/master | 2021-01-10T20:49:19.132771 | 2013-01-06T04:47:49 | 2013-01-06T04:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,677 | cpp | vendorTest.cpp | #include <gtest/gtest.h>
#include "../src/vendor.h"
#include <memory>
#include <iostream>
#include <stdexcept>
using namespace AutoVendor;
class VendorTest : public ::testing::Test {
protected:
std::unique_ptr<Vendor> vendor;
VendorTest() {vendor = std::unique_ptr<Vendor>(new Vendor());}
virtual void SetUp(... |
7231f5d16f3a5967d957455887f7fda92de3c3ee | 66d0c08a15947e6df23adcc17ab2fd461d6edc37 | /linux/window_manager_plugin.cc | 624357f23c285744de7aa52ba89828f6b6922dc9 | [
"MIT"
] | permissive | sergey925/window_manager | 6bf746916737a0f44d62040b2f8555d303d06ad7 | 3120f7ebd3768f949354f001d486d8b29657312b | refs/heads/main | 2023-07-12T21:10:22.523012 | 2021-08-30T03:07:10 | 2021-08-30T03:07:10 | 401,209,563 | 1 | 0 | MIT | 2021-08-30T04:05:40 | 2021-08-30T03:54:49 | null | UTF-8 | C++ | false | false | 11,621 | cc | window_manager_plugin.cc | #include "include/window_manager/window_manager_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <sys/utsname.h>
#include <cstring>
#define WINDOW_MANAGER_PLUGIN(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), window_manager_plugin_get_type(), \
... |
5ca6cd0f1e3ba7106252b92ee6c55be826ef7e79 | 120798d0e20c15be0edc5d76264c13149b80d22d | /Importer/ScoutPerson.cpp | 7049df4fdb0d4ea4bab4f0bc444439f97eaa16ca | [] | no_license | martinariel/cc_2011 | b7dbddb5ef303f02d1f8e601117f5f64ffb3ef53 | 05c43cb15ccdebd0a8dec998590e7d886e616ce0 | refs/heads/master | 2022-11-13T08:57:26.051643 | 2013-09-13T22:07:04 | 2013-09-13T22:07:04 | 276,488,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | ScoutPerson.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "ScoutPerson.h"
//---------------------------------------------------------------------------
ScoutPerson::ScoutPerson ( void )
{
age = code = weight = height = -1;
date = name = place = observation... |
b41da69984cfc0aca6eeafd8007e087af9f6229a | 17ed4ae8ba3734198ae38665ef702a4b511ec8ab | /OALWrapper/sources/OAL_Helper.cpp | 65c2ad49f29c271a218efda6c42d6dd76ed291ed | [
"Zlib"
] | permissive | newyork167/penumbra_vr | 9b5bbf8d876b2244f0de04fd56b68dde0d69eb60 | 0f97d24b94b75828da8c72cce7fe8581df6b2bb1 | refs/heads/master | 2020-03-21T09:42:58.123068 | 2018-06-23T17:19:44 | 2018-06-23T17:19:44 | 138,414,121 | 7 | 3 | null | 2018-06-23T15:51:47 | 2018-06-23T15:51:47 | null | UTF-8 | C++ | false | false | 4,788 | cpp | OAL_Helper.cpp | /*
* Copyright 2007-2010 (C) - Frictional Games
*
* This file is part of OALWrapper
*
* For conditions of distribution and use, see copyright notice in LICENSE
*/
/**
@file OAL_Helper.cpp
@author Luis Rodero
@date 2006-10-02
@version 0.1
Set of Helper functions
*/
#include "OALWrapper/OAL_Helper.h"
#incl... |
22b7dda09ebf4cdda0cb21d4b206abbe40a220c6 | 91303af9283852434f1e1a99abe33559b9ccce61 | /Task_3.h | f80498a6775fcc30d7931807c209b4110de71b50 | [] | no_license | ee3579-lab-3-group-x/LAB-3 | 6a18374744f20f167e50f946ff4165c2e4311492 | b10a95336cd982743810c853c3b74c60c643fd68 | refs/heads/master | 2020-04-28T22:38:32.722672 | 2019-03-25T20:48:45 | 2019-03-25T20:48:45 | 175,625,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,366 | h | Task_3.h | //Included Libraries
#ifndef Task_3_h
#define Task_3_h
#include "IntervalCheckTimer.h"
#include "InterruptBasedSpeedMeasure.h"
#include "DCmotor.h"
#include "SystemControl_Unit.h"
class task_3{
public:
//Classes and Objects
IntervalCheckTimer timer; //Object "timer"... |
56f0e240de8bee871df787921fcb7f4bdeb38a61 | 8211a82bae03e70068e24922788b6d747325f2e5 | /02/1.cpp | 50626578d32c06472391bb444163b249c126fa73 | [] | no_license | hallmluke/AdventOfCode2k19 | a5a1a9718e8494a9ebfba7237e55216a7cd4af8b | f80355180cf2ac0752fa6df7b301bee92a8e09d5 | refs/heads/master | 2020-09-22T14:43:49.539143 | 2020-05-31T21:09:52 | 2020-05-31T21:09:52 | 225,244,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,761 | cpp | 1.cpp | #include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
int getIntCodeOutput(std::vector<int> input) {
int i = 0;
std::vector<int> parsedCsv = input;
while(i < parsedCsv.size()){
if(parsedCsv[i] == 1){
parsedCsv[parsedCsv[i+3]] = pa... |
d5e07366428f457811394e1870e67f0aa13b0913 | 048c562d2a124a10fc41ce4b38f9f0c42248f886 | /StandingWave_Particle/src/StandingWave.cpp | dd1cd6fb03c763f5dead99932d924c311d33597b | [] | no_license | ConnorFk/FlyOnTheWall-2 | f1be03dce93ea1f93d871cff03fc440b07b96401 | d35805c84fb6e7b824ac0ae9039e425db0079057 | refs/heads/master | 2021-01-10T18:44:14.127756 | 2013-12-16T11:16:07 | 2013-12-16T11:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,754 | cpp | StandingWave.cpp |
#include "testApp.h"
//--------------------------------------------------------------
void testApp::Parameter_Set(ofVec2f a, ofVec2f b){
//two points
NumPoints = 40; //Number of Points on the string
//set points
for (int i = 0; i < NumPoints; i++){
ofVec2f pos = ofVec2f((b-a).x/NumPoints... |
cad8c5dd79ae2761fd38d3c37f30d141e49ec8d7 | fead2d2ea15e43f058ce5b76ccd7a42786a66ea9 | /7/_Button.cpp | 3613d5163ceac94c19e0403698039ea1ce845be0 | [] | no_license | jsg2021/Simply-Transparent | adba084caba5a6f4a0f7f95a7a3d29c93de54810 | bb875a8010d5c01e76a64e57dd3fe807d8f0fec0 | refs/heads/master | 2021-01-02T08:56:53.867936 | 2012-01-16T20:07:06 | 2012-01-16T20:07:06 | 2,200,338 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | cpp | _Button.cpp | ///////////////////////////////////////////////////////////////////////////////
//// _Button.cpp
//
#include "stdafx.h"
#include "simplytransparent.h"
#include "_Button.h"
///////////////////////////////////////////////////////////////////////////////
///// Button Box Proc
//
LRESULT CALLBACK ButtonW... |
00c8680212f135888183ff42800f99ba9ae86078 | fa1ca6e79951c622c8c6194af4c2aa982c332d04 | /ArduinoTransceiver/ArduinoTransceiver.ino | 1818b8180f09a99ab69b7252082dfbf0214b82ec | [] | no_license | eyeboah369/ArduinoController | 312c0b96f507f2af213f5c28020604dc9dafe063 | b37b0d027405e65a4d4006db32f24e363def14e3 | refs/heads/master | 2020-03-29T16:20:45.522828 | 2018-09-24T14:26:02 | 2018-09-24T14:26:02 | 150,109,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | ino | ArduinoTransceiver.ino | #include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
const int SW_pin = 2; // digital pin connected to switch output
const int VRx_pin = 0; // analog pin connected to X output
const int VRy_pin = 1; // analog pin connected to Y output
const byte news[0] = "00001";
RF24 radio(9,10);
void setup() {
radio.begin(... |
a917865cc7e6e31b0130cdb8ec2e8be6a30ce9ee | 84a6f59595e3ec05797c9e73909fbba29a88d20f | /Adminpan.h | cf5ef43c8b10d09ad20a4c07ade0d3390ec09b61 | [] | no_license | tahmid108/Electronics-Company-C-project | 3fc97f636715ee93966e4151429e4c6d7b1ba247 | 0b5795e06afe0526643f471b0a3dd80674dda27c | refs/heads/master | 2023-03-15T16:47:41.948273 | 2021-03-19T17:27:03 | 2021-03-19T17:27:03 | 349,502,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | h | Adminpan.h | #ifndef ADMINPAN_H
#define ADMINPAN_H
#include<iostream>
using namespace std;
//#include "Profit.cpp"
#include"Mobile.h"
#include"Television.h"
#include"Customer.h"
class Adminpan : public Mobile,public Television,public Customer
{
public:
Adminpan(string pass);
~Adminpan();
Adminpan(Mobile &m);
Adminpan(Tel... |
7a1095941f88e6dfceca3db962d2cb9c80848514 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/snapin/dnsmgr/zoneui.cpp | 500cca6032b88203470b1aa3bd70bd23a48e44e4 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 99,634 | cpp | zoneui.cpp | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: zoneui.cpp
//
//--------------------------------------------------------------------------
#include "preDNSsn.h"
#include <SnapBa... |
416a1a3e2cdda2c41ae9f2c4339737217bd83741 | 68e7aa9480fa140af30aa7135ccaf98daebae46d | /smtrat/src/lib/modules/CADModule/CADModule.h | dce062ecf84c035fc2bcb0410a460e8d04f79cf3 | [
"MIT"
] | permissive | kperun/SATPrakPDW | eb3edf6f3050f3c46541b6fafea382c4a661c16a | 5d567c7bb5c84468da792388a408595a0849a346 | refs/heads/master | 2021-01-19T17:00:24.619155 | 2017-09-02T14:20:07 | 2017-09-02T14:20:07 | 86,146,758 | 4 | 0 | null | 2017-09-02T14:16:37 | 2017-03-25T09:34:07 | C++ | UTF-8 | C++ | false | false | 4,629 | h | CADModule.h | /**
* @file CADModule.h
*
* @author Ulrich Loup
* @since 2012-02-04
* @version 2013-05-27
*
*/
#pragma once
#include "config.h"
#include "../../solver/Module.h"
#include "../../solver/RuntimeSettings.h"
#include <unordered_map>
#include "carl/cad/CAD.h"
#include "../../datastructures/VariableBounds.h"
#ifd... |
01f5e26820557c378e2c30aa8fea29786fb6cc39 | 3d4c7b9c179322e6bdb3c7a0c137919364806cb3 | /include/flexflow/ops/batch_matmul.h | c5b743e1e00cb51b95f53161cad245fd445b073d | [
"Apache-2.0"
] | permissive | flexflow/FlexFlow | 291282d27009924a427966e899d7c2fda9c20cec | b2ec6cb5d2b898db1ad4df32adf5699bc48aaac7 | refs/heads/inference | 2023-09-04T05:25:02.250225 | 2023-09-03T14:15:07 | 2023-09-03T14:15:07 | 160,988,469 | 1,139 | 186 | Apache-2.0 | 2023-09-14T17:56:24 | 2018-12-08T23:43:13 | C++ | UTF-8 | C++ | false | false | 2,580 | h | batch_matmul.h | #ifndef _FLEXFLOW_BATCH_MATMUL_H
#define _FLEXFLOW_BATCH_MATMUL_H
#include "flexflow/model.h"
namespace FlexFlow {
class BatchMatmul : public Op {
public:
using Params = BatchMatmulParams;
using Input = std::pair<ParallelTensor, ParallelTensor>;
BatchMatmul(FFModel &model,
BatchMatmulParams const... |
3a538ffe002120e454c81905db964fdb75cbaca4 | b8dc7dee0d6204624c35b48d194dd408bfd26a6c | /src/decomposition.h | 26050141d515c1848ff943ee764e88ea32fb014f | [
"MIT"
] | permissive | Laakeri/sharpsat-td | bb757c5183b9b58823ddc74f48d2dc092fa8a879 | b9bb015305ea5d4e1ac7141691d0fe55ca983d31 | refs/heads/main | 2023-07-18T18:57:02.769031 | 2021-09-05T16:09:53 | 2021-09-05T16:09:53 | 372,407,764 | 19 | 3 | NOASSERTION | 2021-09-05T16:09:54 | 2021-05-31T06:41:13 | C++ | UTF-8 | C++ | false | false | 296 | h | decomposition.h | #ifndef DECOMPOSITION_H_
#define DECOMPOSITION_H_
#include <vector>
// SharpSAT uses this anyway globally so...
using namespace std;
namespace decomp {
pair<int, vector<int>> ComputeTreewidth(const vector<vector<int>>& graph, double time);
} // namespace decomp
#endif /* DECOMPOSITION_H_ */
|
83a3430ea628138022950e925e0960f1f53f7d6b | f3dc6c7cd701bfa97f6aeb9552a4f120cc701aad | /de0_nano/software/emg_test/emg_test.cpp | 3f566355ccb5c01d92f19109ff73f6d79beb2301 | [] | no_license | grantdhunter/ECE492 | d847d3c45e8f9b8f946c9a12fd800e629038d906 | d275f10c8095616302e16598c299a919ef1663dd | refs/heads/master | 2021-01-25T06:06:02.939662 | 2014-04-09T21:37:24 | 2014-04-09T21:37:24 | 15,781,542 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,489 | cpp | emg_test.cpp | /*************************************************************************
* Copyright (c) 2004 Altera Corporation, San Jose, California, USA. *
* All rights reserved. All use of this software and documentation is *
* subject to the License Agreement located at the end of this file below.*
********************... |
7e54fa00bf51eaad022e9c5674cc7d96dc49bdab | 42d92daa0d5e71a9ed62e9eb21a5cfbf7191477e | /提高班/考核/7.cpp | 76332ece4d123d07cb15b79a00924cd24112a39e | [] | no_license | luqian2017/haizei-2 | 7223529b697acb2e3a20031965c67905ef795347 | 51b1fe57127f48b1109af0198305f2deaefd549b | refs/heads/master | 2021-10-22T07:09:37.157276 | 2019-03-09T02:07:15 | 2019-03-09T02:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | cpp | 7.cpp | #include <iostream>
#include <stdio.h>
#include <math.h>
#define max_n 1000000
#define INF 0x3f3f3f3f
using namespace std;
int dp[max_n + 5] = {0};
int sum[max_n + 5] = {0};
int main()
{
int n, M;
cin >> n >> M;
for (int i = 1; i <= n; i++) cin >> sum[i], sum[i] += sum[i - 1];
for (int i = 1; i <= n; ... |
22c92c8742b0bf9ef8577e242d77223edd3104f2 | 0aef26863f142bef75a0e4aaf7da76fc95e3d8ae | /crypto_aead/seakeyakv2/refnew/Motorist.h | dcdf91f4b15366f157c1f1fb0441a0e92b7be06a | [] | no_license | jedisct1/supercop | 94e5afadc56ef650d7029774a6b05cfe2af54738 | 7c27338ee73a2bd642ba3359faaec395914175a2 | refs/heads/master | 2023-08-02T20:12:39.321029 | 2023-05-30T03:03:48 | 2023-05-30T03:03:48 | 179,046,113 | 23 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,349 | h | Motorist.h | /*
Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
denoted as "the implementer".
For more information, feedback or questions, please refer to our websites:
http://keccak.noekeon.org/
http://keyak.noekeon.org/
http://... |
ad7ced52623d833ffb5a01b97b4448f25354a7a3 | b8765e762b1087505189506a35cffce43638fba7 | /question/BZOJ/3504/x1.cpp | 5686bcc42b7544225d340111a43ff2f60bcf1b39 | [] | no_license | yaoling1997/desktop | 0d0782f44cca18ac97e806e919fc7c6446872a00 | 1053d1a30b1e45e82ceec90cfd3b31eec361c1e2 | refs/heads/master | 2022-02-17T12:50:54.349782 | 2019-05-18T06:13:03 | 2019-05-18T06:13:03 | 120,167,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | cpp | x1.cpp | #include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cstring>
#include<vector>
#include<queue>
using namespace std;
const int maxn= 55,oo= 1e8;
struct edge{
int from,to,cap,flow;
};
vector<edge> edges;
vector<int> g[maxn];
int cur[maxn],vis[maxn],d[maxn];
char ch;
int a1,a2,b1,b2,an,bn,n,flow,s,t,i,j;
void ... |
0a27dca4d0b36ddece9c9b43d358379b6337c7c3 | cfaf0124f32156006d9c87f4264dca53596a3d78 | /VikingGame/UnitsConversion.h | ea5b80e7c4894af19f568209ba232c929e230aac | [] | no_license | MariusMyburg/GitHubGameOff2017 | 46ad7cff48b27469243bbd83d642e474b0a826ca | 6c4c7a86e22336d494790b94958274fb01cd1cdb | refs/heads/master | 2021-08-10T13:03:40.663885 | 2017-11-12T15:52:13 | 2017-11-12T15:52:13 | 110,013,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | h | UnitsConversion.h | #pragma once
#ifndef UNITS_CONVERSION_H
#define UNITS_CONVERSION_H
namespace unitsConversion
{
constexpr double PIXELS_PER_METERS = 32.0;
constexpr double PI = 3.14159265358979323846;
template<typename T>
constexpr T pixelsToMeters(const T& x){return x/PIXELS_PER_METERS;};
template<typename T>
... |
6cf84e9718836075e9f61eae44b3c63e63388271 | ef761a03a2788832f729ee9783c23414a698c5c8 | /Common/Utils/StaticArray.h | 63d60beb2b377f112c42b8ef5b00463acfa95ef3 | [
"MIT"
] | permissive | kovalexius/SSAODemo | db98a3089ab607d21084dc471e7a887b518eea16 | 56bee973b5b8fb9483918042c11ee107a262babc | refs/heads/master | 2020-12-02T05:05:26.422799 | 2016-12-07T16:09:50 | 2016-12-07T16:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 826 | h | StaticArray.h | /*******************************************************************************
Author: Alexey Frolov (alexwin32@mail.ru)
This software is distributed freely under the terms of the MIT License.
See "LICENSE" or "http://copyfree.org/content/standard/licenses/mit/license.txt".
******************************... |
175fc8e1388faa405ffebebd85d934db48a22823 | 5702eb53222af6e3e41672853c98e87c76fda0e3 | /util/cpp/ZipFileReader.h | 76529aa12c276481f12ef88d4af8bfc1a550d31c | [] | no_license | agilecomputing/nomads | fe46464f62440d29d6074370c1750f69c75ea309 | 0c381bfe728fb24d170721367336c383f209d839 | refs/heads/master | 2021-01-18T11:12:29.670874 | 2014-12-13T00:46:40 | 2014-12-13T00:46:40 | 50,006,520 | 1 | 0 | null | 2016-01-20T05:19:14 | 2016-01-20T05:19:13 | null | UTF-8 | C++ | false | false | 12,834 | h | ZipFileReader.h | /*
* ZipFileReader.h
*
* This file is part of the IHMC Util Library
* Copyright (c) 1993-2014 IHMC.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 (GPLv3) as published by the Free Software Foundation.
*
* U.S. Governm... |
80d5706249ee6f8f04714242c5fadf3f20090ad6 | 014e34bb2c2e7995515b0868dc76ecc2a0e41521 | /test/Stacktest.cpp | 97ed840a08d85730d5d568f52ccc474ad22b743e | [] | no_license | flydzt/tiny-data-structure | 08de3129f5015428679fe3e68948244ad4e331a3 | 4b8b4dd141f1f92e2c2da729f2326c4f3c8ced50 | refs/heads/master | 2021-05-17T21:45:06.966315 | 2020-03-29T06:21:24 | 2020-03-29T06:21:24 | 250,963,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | Stacktest.cpp | #include "../Stack.hpp"
#include <iostream>
using namespace std;
int main() {
Stack<int> s;
cout << "push_back" << endl;
for (int i = 0; i < 100; ++i)
s.push_back(i);
for (int i : s)
cout << i << ' ';
cout << endl;
cout << "pop_back" << endl;
for (int i = 0; i < 100; ++i)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.