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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
088cdcabbcda18357fb52bdd632d5153fb723534 | 5362384b6b1d392eab659ebd5e02a89edc33a46c | /include/cutempl/metafunctions/set_insert.hpp | ab1b263901d4a96af2d40569a467d7cecc70739f | [
"MIT"
] | permissive | dhollman/cutempl | 55c9f2dd5a4642af8e47fac459cfef99bb4e2f6c | 5bb6cae4423f0456c21e50454bcba210a94226b3 | refs/heads/main | 2023-06-15T01:08:19.580873 | 2021-07-07T18:00:30 | 2021-07-07T18:00:30 | 371,742,730 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | hpp | set_insert.hpp | #pragma once
#include "cutempl/cutempl_fwd.hpp"
#include "cutempl/metafunctions/select.hpp"
#include "cutempl/utils/lambda.hpp"
#include "cutempl/utils/wrap.hpp"
namespace cutempl {
struct set_insert_mfc :
select_t<contains_mfc, identity_mfc, append_mfc> {};
template <class TL, class U>
using set_insert = set_in... |
e0840353dbda00be73bed24571d081a90902de70 | d3e1f9a07e09953ac689c74ad1f7f1ada982dd77 | /SDK/Widget_CustomizeList_parameters.h | c91beafd2572924f0bccb5ad823833598e73fa21 | [] | no_license | xnf4o/HSH_SURVIVE_SDK | 5857159731ceda7c06e158711003fbaf22021842 | 2f49c97a5f14b4eadf7dc3387b55c09bc968da66 | refs/heads/main | 2023-04-12T06:52:47.854249 | 2021-04-27T03:13:24 | 2021-04-27T03:13:24 | 361,965,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,835 | h | Widget_CustomizeList_parameters.h | #pragma once
// Name: hsh, Version: 2
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------... |
fcd4b777a989f3e557aaba583d757c85d5c07df0 | 2cb681e118e3f1e4b2b141372ae1c6914599b835 | /codeforces/902_B.cpp | ea2424a2a5a220512b8df835fc5d27d22a186a29 | [] | no_license | jatinarora2702/Competitive-Coding | 1ad978a91122c920c839483e46812b5fb70a246e | a77f5d4f1737ca4e408ccf706128ba90ed664286 | refs/heads/master | 2021-01-11T20:11:34.791960 | 2020-12-31T00:21:06 | 2020-12-31T00:21:06 | 79,060,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | 902_B.cpp | #include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define FF first
#define SS second
using namespace std;
typedef vector < int > vi;
const int N = 11000;
vi g[N];
int c[N], cnt;
void dfs(int s, int p) {
int i;
if (c[s] != c[p])
cnt++;
for(i = 0 ; i < g[s].size() ; i++) {
if (g[s][i] != p)
... |
81838ca4dd27db2d6eabe90dabc62ccb2ec07532 | e0bf5836e4f0d75b28b1f787446e655cdeeb8b03 | /files/rowcolp.cpp | 3b7f5139c3de8f319fdce5137955be55fc8e3555 | [] | no_license | arunnsit/allcodes | 3f0b73facdee06e802455c6c3fb5de7baae702c2 | 5e6a8bf3883d0c5f67dfa7cc3dc026dbb4c63a71 | refs/heads/master | 2021-01-10T13:58:24.900593 | 2017-10-03T18:11:34 | 2017-10-03T18:11:34 | 50,598,937 | 0 | 2 | null | 2019-09-30T20:16:32 | 2016-01-28T17:06:03 | C++ | UTF-8 | C++ | false | false | 422 | cpp | rowcolp.cpp | #include<stdio.h>
int c[314170]={0},r[314170]={0};
int main()
{int n,q,mc=0,mr=0,mci=0,mri=0,i,j,t1,t2;char a[20];
scanf("%d %d",&n,&q);
for(i=0;i<q;i++){
scanf("%s %d %d",&a,&t1,&t2);
if(a[0]=='R'){
r[t1]+=t2;
if(mr<r[t1]){mr=r[t1];}
}
else{
... |
50769167f3ca7dbd24c0fc1ea2420600cddbfe0b | db8dfd7ef00432842d187335ca6598341edc1922 | /apps/global_preferences.cpp | 9abc0bfab0d8e0ff02936049e147d8ce0438c92d | [] | no_license | EmilieNumworks/epsilon | a60746285ede5a603916e5dc9361a689926f0fbd | bb3baa7466f39f32b285f2d14b6dc1f28e22e7a5 | refs/heads/master | 2023-01-28T20:49:55.903580 | 2022-09-02T13:15:05 | 2022-09-02T13:15:05 | 102,631,554 | 1 | 0 | null | 2017-09-06T16:20:48 | 2017-09-06T16:20:48 | null | UTF-8 | C++ | false | false | 762 | cpp | global_preferences.cpp | #include "global_preferences.h"
GlobalPreferences * GlobalPreferences::sharedGlobalPreferences() {
static GlobalPreferences globalPreferences;
return &globalPreferences;
}
void GlobalPreferences::setCountry(I18n::Country country) {
m_country = country;
Poincare::Preferences::sharedPreferences()->setCombin... |
6b7daf7560437e6bf62a355d054427bf53074084 | b674e3acac9ebd14926782a8ea0fdb64105eb54e | /player.cpp | 249050af831c4c7cb650154f4f12fd2c3d62f62e | [] | no_license | iduma1/project3 | 1265a3d8bfdea0914ffe04ec7332f5b5f53c5dd0 | 593647db813a476c9f56a2a645b8e3db0ed8fbe7 | refs/heads/master | 2021-01-17T17:30:11.366975 | 2017-04-05T17:48:20 | 2017-04-05T17:48:20 | 82,972,554 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | player.cpp | #include <iostream>
#include <string>
#include <vector>
#include "player.h"
using namespace std;
Player::Player() {
playerName = "";
sign = 'X';
}
void Player::setPlayerName(string message) {
playerName = message;
}
string Player::getPlayerName() {
return playerName;
}
void Player::setSign(char symbol... |
3ca97a805ae1c7764b248296788500ecd17a2d07 | 44d2591744bd9792c3f3cd62110b5095dea5ec4d | /include/Mesh.h | eb15c190ecf0922d857a61e6ac2fbbdf853ccd4a | [] | no_license | mkosler/SurfaceSimplification | 923221415668a0e8fbd57fd23d9c5f3c1f301c2c | ae2cf76eb981c05387d3d403ad9ec510c0dce3e9 | refs/heads/master | 2021-01-02T08:46:35.889379 | 2013-04-25T10:45:50 | 2013-04-25T10:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | h | Mesh.h | #ifndef _MESH_H_
#define _MESH_H_
#include <algorithm>
#include <fstream>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "Point.h"
class Mesh
{
public:
struct HalfEdge;
struct Edge;
struct Vertex;
... |
dcac899790ada0210bcc3b93aefb45a7d754a628 | 5aeb150e03657734ebd66ec0cd0921e3517c0117 | /GPS_GPRS/GPRS_y_GPS/GPRS_y_GPS.ino | 121bb666788fc4d701a4b4855511e797cf6838cc | [] | no_license | eshizero/uSeeker | 4d5868a3142646718b566409b908b0118ad0b7b2 | 5827605e16295eed431f3c862762be465a495d77 | refs/heads/master | 2021-01-20T01:17:01.780492 | 2017-04-25T14:51:32 | 2017-04-25T14:51:32 | 89,248,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,935 | ino | GPRS_y_GPS.ino | #include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include <avr/pgmspace.h>
#define Version 0.9
//0.1 primera version funcional
//0.2 se agrega las funciones vibrar y led
//0.3 se eliminan lineas q no se usan y se agrega fecha de compilacion y hora,se agrega proteccion a seleccionar 2 compa�ias a la vez
//se corrigen... |
b9f88210b5a97ecaab5931918a169694ec91d18c | 1a9f2804162c1831a435beb8b90022f98eb5d6b9 | /ZynAddSubFX/EffectMgr.cpp | 30868b54400866b4e388ca560fb6b1a53a8fe522 | [] | no_license | anylee2021/ZynAddSubFx | 46faa3c57da6ffcbbb669fc3f52793355c3298d1 | 45c2387320123a33ba440ab18547d506683603e0 | refs/heads/master | 2023-03-16T03:03:06.019059 | 2019-10-12T08:39:17 | 2019-10-12T08:39:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,452 | cpp | EffectMgr.cpp | /*
ZynAddSubFX - a software synthesizer
EffectMgr.C - Effect manager, an interface betwen the program and effects
Copyright (C) 2002-2005 Nasca Octavian Paul
Author: Nasca Octavian Paul
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public Licen... |
a6b1bc08aa2a60ebe262231442d51e6afb46381a | c85f819160d4370c2567f078d577aa09ecb1550e | /customer_service.pb.cc | 6ed88cef6cbf99839abdb31ddfd2c3552f87fc4a | [] | no_license | mattn/grpc-example-cpp | 37adbad906a6a717ea8786d94dd41c6f467f4d3e | 734bd5bbac1f137727609ec3e0c20ce7affce864 | refs/heads/master | 2023-09-04T12:20:10.941442 | 2015-03-04T06:15:50 | 2015-03-04T06:15:50 | 31,641,538 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | true | 27,423 | cc | customer_service.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: customer_service.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "customer_service.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded... |
128033c10ec88ef72b7dde3df21a7f0dbdfbd572 | f898d06ccef869fabcb7640ffa218ce81fc04cf9 | /Arduino/_/Legacy01/thoseWhoAffectedMe/helpers.ino | 54fd1f240964f67f85f1c935056dc02b7a82ed0f | [] | no_license | jonasjohansson/emerging-sensation | bc7197c8c68451399d28e35ea4acbdaa4dd4c50e | 95ca9df7926529ce5576667164b2a1002e3175b8 | refs/heads/master | 2021-04-18T19:04:33.208604 | 2019-01-18T22:36:09 | 2019-01-18T22:36:09 | 126,401,197 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,906 | ino | helpers.ino | inline uint8_t fastCosineCalc( uint16_t preWrapVal)
{
uint8_t wrapVal = (preWrapVal % 255);
if (wrapVal<0) wrapVal=255+wrapVal;
return (pgm_read_byte_near(cos_wave+wrapVal));
}
void setPixel(int y, int x, int c) {
leds.setPixel((y+4)*STRIPLEN+pixelArray[y][x],c);
}
void mixPixel(int y, int x, uint32_t colo... |
db7a5165474fd8794a4f4b04b2f1e2cae640d0d1 | 245b77b133da9e9b01683b4f31a20c7ab579992f | /self/Graphs/KeysandRooms.cpp | a907f7c4e6e0ec4a1ecabbcce01cda78baee4a79 | [] | no_license | ankityadav107/Solutions-in-Place | 37985ce4bdddfcdbfa52f3fbfd16cba8ff8654ab | 54feb5f09113014311abb06b462f9eb86b7d904a | refs/heads/master | 2023-09-02T21:08:11.780220 | 2021-10-18T07:35:16 | 2021-10-18T07:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | KeysandRooms.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution
{
public:
void dfs(int src, vector<vector<int>> &rooms, vector<bool> &visited)
{
visited[src] = true;
for (auto i : rooms[src])
{
if (!visited[i])
{
d... |
f3c37cb1169a8aa0769522ba5e1b9cd3c182f977 | 9154f6d94550dca59a5c54afe1473495e4797645 | /Runtime/Epoll.hpp | ffd880f5b6bc2ef07a9df8e2cc0fd13e320f0566 | [] | no_license | PlumpMath/coroutine-25 | b05da9d001213842dba2601d3f81f48c33757c05 | 14179e409619bb0f4248d017512e2a1fd2d1ded6 | refs/heads/master | 2021-01-20T09:54:31.962426 | 2015-03-04T10:48:35 | 2015-03-04T16:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,086 | hpp | Epoll.hpp | /*
* Author : zzn
* Created : 2013-12-18 16:49:25
* Modified : 2013-12-18 16:49:25
* Description :
* License: GNU Public License.
*/
#ifndef __RUNTIME_EPOLL_HPP
#define __RUNTIME_EPOLL_HPP
#include <sys/epoll.h>
#include "Exception.hpp"
#include <unistd.h>
#include <vector>
#include "Poller.hpp"
na... |
1ff56c012753d1f56a65212ca68cff0cbeb7ff57 | 803f0fbc5973ff31fd5faca5c0f2981b2c52a591 | /C++/GJ/c033.cpp | c9bed76a1bf468ce2c53305ff88054d01794da20 | [] | no_license | MiohitoKiri5474/CodesBackUp | 00ab52bd55732b8164a42cffd664407878f4390e | 4247fa032c8e88259dcc3992a21c510b6f2e8850 | refs/heads/master | 2023-08-09T14:46:10.445697 | 2023-08-04T01:12:58 | 2023-08-04T01:12:58 | 126,162,563 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | c033.cpp | #include<iostream>
#include<cmath>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
cout << min ( min ( min ( a, 600 ) + min ( b, 600 ), 1000 ) + min ( c, 800 ), 1500 )<< '\n';
} |
00024afe7eecfbbb1c991d21cc437c49ad8bd718 | 03ebdba58fd6f4713ed9c3b3d06cac40b494a4f2 | /Zadanie3/PAR/parser.h | 88489bfd8fbd108e36fd91754c2529d4c4a87404 | [] | no_license | vera-fenric/spring2020 | 3da8790cb9c433f0c537a9acf59c0451386eb089 | 2adc1e76ea3da5aa00ded29fdc21ed1e5cb6ae10 | refs/heads/master | 2022-09-01T11:08:42.549840 | 2020-05-31T15:02:42 | 2020-05-31T15:02:42 | 247,796,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,631 | h | parser.h | #include <iostream>
#include <string>
#include <cstdio>
#include <ctype.h>
#include <cstdlib>
#include <vector>
#include <stack>
#include <algorithm>
#include "../LEX/scan.h"
using namespace std;
class Parser {
bool flag_assign;
int value_assign;
Lex curr_lex;
type_of_lex c_type;
int c_val... |
fda5d9068d20d296da5ca85d44a04538b3e7f21b | 8aa7bf7fcc0d1cb92e595ed360fe0b093505b082 | /dynamic_programming/demo_coin_changing_problem_4.cpp | 16d9be9f6cbd9e398a152bde9653a6044acdc286 | [] | no_license | Ivanqi/algorithm | 63323f6afcfdeb496c43a65034ea77d338291cf6 | 7d43d9e97de232f69e4eb687ed84d90bd1397df8 | refs/heads/master | 2022-04-28T17:07:09.193488 | 2022-03-21T12:55:15 | 2022-03-21T12:55:15 | 199,848,944 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,764 | cpp | demo_coin_changing_problem_4.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
/***
* 1. C++ 实现,对总金额100的最小纸币是15
* 2. 用递归法总额为30就要很久
* 3. 另外的数学办法可以用总金额依次对最大金额求余数,直到为0.商相加为答案。 如:若{1,2,3,7}为纸币金额,对于100,所需最小纸币数:100 / 7 = 14余2
* 4. 2 / 2 =1 余0.则纸币数为14 + 1 = 15
*/
class DynamicProgramming {
private:
vector<int>... |
463bb18bf35f10cd30e00c03971ac51b9f744325 | d33bcd4ffe245121d9df924682dbc9f87066886b | /src/AbstractFactory/CProductB2.cpp | 643f28b62849f89b02528109cc87d41a59ff9d1a | [] | no_license | ElonVampire/DesignPattern | a561531eb8703c377695e7aa1a0c3f5a9b41550e | 923e8ba9207cef3b4b800183f2b0eb4f59c11a75 | refs/heads/master | 2022-01-12T06:08:53.490987 | 2019-05-30T07:11:53 | 2019-05-30T07:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | cpp | CProductB2.cpp | //
// Created by st007 on 19-1-25.
//
#include <iostream>
#include "CProductB2.h"
CProductB2::CProductB2() {
std::cout << "instructor CProductB2" << std::endl;
}
CProductB2::~CProductB2() {
std::cout << "destruct the CProductB2" << std::endl;
} |
608d0c1410c2d40c50af9b3aed82d909cdafa59a | d688bb6a8b3b8cf1bf9934a504af899a75606e80 | /i2c.cpp | 8450c63d60cdd17c9d8b05d398daa886291a5507 | [] | no_license | sho0p/i2c-sensor-read | 29e0604f413916b225f706126b8c520e19661f78 | e78de4d34c6d7df5839ea3fd41b56342044c8d70 | refs/heads/master | 2020-05-02T22:44:37.180396 | 2019-03-29T19:03:58 | 2019-03-29T19:03:58 | 178,260,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | cpp | i2c.cpp | #include <iostream>
#include <errno.h>
#include <stdint.h>
#include <wiringPi.h>
#include <wiringPiI2C.h>
#include <wiringPi.h>
#include <unistd.h>
#include "i2cdef.h"
using namespace std;
int fd;
void cdc0read(){
wiringPiI2CReadReg8(fd, STAT_REG); //to lock the data
uint8_t lsb =
wiringPiI2CReadReg8... |
dcbee45652eebdfc55f153ac3b8bc212da93e663 | e5f4f37d941ceb8145d65f92028cc54658b1ac01 | /Code/Engine/GameEngine/Gameplay/GrabbableItemComponent.h | ed427f68834ee9d0ac6251d555bbf2c13843eaeb | [
"MIT"
] | permissive | ezEngine/ezEngine | 19983d2733a5409fb2665c6c3a0a575dadcefb50 | c46e3b4b2cd46798e4abb4938fbca281c054b039 | refs/heads/dev | 2023-09-06T02:17:28.152665 | 2023-09-05T18:25:43 | 2023-09-05T18:25:43 | 18,179,848 | 1,050 | 165 | MIT | 2023-09-14T21:44:39 | 2014-03-27T15:02:16 | C++ | UTF-8 | C++ | false | false | 2,301 | h | GrabbableItemComponent.h | #pragma once
#include <GameEngine/GameEngineDLL.h>
#include <Core/World/Component.h>
#include <Core/World/World.h>
struct EZ_GAMEENGINE_DLL ezGrabbableItemGrabPoint
{
ezVec3 m_vLocalPosition;
ezQuat m_qLocalRotation;
};
EZ_DECLARE_REFLECTABLE_TYPE(EZ_GAMEENGINE_DLL, ezGrabbableItemGrabPoint);
/////////////////... |
665903c989d58edbfd9a6488ff14595b312bae72 | 4e0f7b31679ec618696cb17f91e0dffa1e4291ae | /算法题解/迷宫寻宝一(bfs).cpp | a811edc461a26cac4de5ef58a90d596cb5c0f535 | [] | no_license | bananaXu/algorithm | dc5e98ab03eecde6cef5841df794998e1e4c9fd8 | adfd5b4a1c26b2f0cabb94825584770986b5f452 | refs/heads/master | 2020-04-26T18:29:25.589289 | 2019-03-04T13:07:29 | 2019-03-04T13:07:29 | 173,746,464 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,880 | cpp | 迷宫寻宝一(bfs).cpp | #include <iostream>
#include <cstring>
#include <queue>
using namespace std;
struct ROOM
{
int x;
int y;
char type;
}room[25][25];
int m, n;
int r[5];
queue <ROOM> qu;
int dir[4][2] = {{0, 1},{0, -1},{-1, 0},{1, 0}};
int OC[25][25]; // open:1, close:2, else:0
bool CanCross(int x, int y)
{
if (room[x][y].type == ... |
78e080a504dfe84c7966b90408eb4899b0ef85c9 | 76e652e2ef2c5d57f8115eb4939e1fb460255549 | /Source/NetworkAbility/MyGameModeBase.cpp | 5c95be5fc20c148008ded94492794867ef34a9a1 | [] | no_license | alcachofalaruz/NetworkAbilityKit | 00fc5a565cb9a73ec0b7a6e2a84ee11ce4663ada | 7a90a74a1dc27f617bc50bb27e9c085b5df5f7c4 | refs/heads/master | 2023-06-08T09:22:44.172313 | 2021-06-30T18:06:07 | 2021-06-30T18:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,046 | cpp | MyGameModeBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyGameModeBase.h"
#include "Kismet/GameplayStatics.h"
#include "GameFramework/PlayerStart.h"
#include "NetworkAbilityKit/Public/PS_Arena.h"
#include "GameFramework/GameStateBase.h"
#include "ActionCharacterBase.h"
#include "Actio... |
01f13ce63eee414c237a7064eb95d59476db2607 | 7512ac2933cbd363f6d7dbf7dcea962eb61be085 | /GraphicsEngine/Source/Core/Rendering/RayTracing/Shader_RTBase.h | c9d74b1863ec9117ca7a792ce77b6a99e81515dc | [
"MIT"
] | permissive | lxlyh/Adept-Engine | dc7dffbc966cf477a0fccb27e05e124592d7f189 | 91ba9df3978ac110128f82d12181da9e14c98a8b | refs/heads/master | 2022-10-21T03:51:31.114365 | 2020-06-16T19:28:42 | 2020-06-16T19:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | h | Shader_RTBase.h | #pragma once
#include "RHI/Shader.h"
#include "RHI/RHIRootSigniture.h"
//A base class that handles the different types of ray shaders
namespace ERTShaderType
{
enum Type
{
Hit,
Miss,
Intersection,
AnyHit,
RayGen,
Limit
};
}
class Shader_RTBase :public Shader
{
public:
Shader_RTBase(DeviceContext * C, s... |
0f5cddb69dd2533443d62711a067e506c5b4f30f | 57c061237556b2f59c9bd6b0f3e829aa1007779e | /Matched_Brackets_2.cpp | a8518bb37c99caaac868ee902919097d74b58171 | [] | no_license | j33tmane/ZCO-Practice-Contest | 1e75a88eb1c789775f13b97a70996a303199e10d | 624b0602e6d1741cd5af0c9809b1fd396a34cd31 | refs/heads/master | 2021-01-09T06:14:58.220542 | 2016-08-04T18:40:16 | 2016-08-04T18:40:16 | 64,958,812 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,758 | cpp | Matched_Brackets_2.cpp | #include<iostream>
#include <cmath>
#include<cstdio>
#include <algorithm>
#include <vector>
#define gc getchar
using namespace std;
void scanint(long &x)
{
register int c = gc();
x = 0;
for(;(c<48 || c>57);c = gc());
for(;c>47 && c<58;c = gc()) {x = (x<<1) + (x<<3) + c - 48;}
}
int main()
{
long N;
... |
f43e961abcdcdd9692fd68f250171e49d0617f1c | fe731803ea1cebde5be381de9c0b42f3a1658993 | /src/threadpool.h | d45c9fdcaa40c6f9057f29228ffefa8999ba3745 | [] | no_license | frapuccino/TDB | 2562dab9149426b3d585887ecaba7a3e6af8ac81 | 653cb1fefc56cf8d4c7505f4928263f81fb7e4a3 | refs/heads/master | 2023-04-02T07:06:52.812927 | 2021-04-06T04:32:09 | 2021-04-06T04:32:09 | 354,980,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | h | threadpool.h | #pragma once
#include <queue>
#include <thread>
#include <mutex>
#include <atomic>
#include <condition_variable>
#include <functional>
#include <vector>
namespace tdb {
using Task = std::function<void()>;
struct ThreadPoolOption {
std::string name; // name of thread pool
int num_threads;
int max_tasks;
};
c... |
d51ca3f39b4fefb7789a9583633af7aa399d9e81 | 13508677af95d0940a6774e60002c5bcfba7ae9f | /11022 - String Factoring.cpp | f457624a07059fffaa4c17a83947f88f70fb4202 | [] | no_license | kuonanhong/UVa-2 | f40686287e1aa717b6da4af81d0eafa07b0afd17 | f58813d6a926f1ae4f61644d51dc1fe28b923cbd | refs/heads/master | 2021-04-30T15:22:20.138385 | 2016-06-13T06:26:44 | 2016-06-13T06:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | 11022 - String Factoring.cpp | /**
UVa 11022 - String Factoring
by Rico Tiongson
Submitted: January 21, 2014
Accepted 0.015s C++
O(n^3) time
*/
#include <iostream>
#include <cstdio>
#include <cstring>
#define MX 81
using namespace std;
string s;
int dp[MX][MX];
int DP( int i, int j ){
if( i > j ) return 0;
if( i == j ) r... |
af78f82282969fec3f9b6a93cdf193d9c09dca5a | 5a8139fc51dabf862d9379ede80d75196dbd487a | /src/src_itmian/2.1.cpp | e22affb1e8ac6aaca0871496871600c50fceebf9 | [] | no_license | uin3566/itmian | 0653e61e0b074699c11fcc308869fd2aa68fa8d2 | 03d8a36445c585a8576626e56af543a1d1b5af7d | refs/heads/master | 2021-01-10T19:25:03.840257 | 2014-09-28T09:04:48 | 2014-09-28T09:04:48 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,784 | cpp | 2.1.cpp | #include "stdafx.h"
void RemoveRepeatNodes(ListNode* pHead)//用set作辅助存储空间,时间复杂度O(n),空间复杂度O(n)
{
ListNode* pPre = NULL;
ListNode* pNode = NULL;
int nValue = 0;
int nValueSetSize = 0;
int nListOffset = 0;
std::set<int> setListValues;
if (pHead == NULL)
{
goto Exit0;
}
pPre = pHead;
while(pPre->pNext)
{
... |
9deff76480b7942018e63b537d9af00d6406b235 | 96187cb1b203d621ff20abe0f13a5ece35c7de15 | /Codeforces/597/b.cpp | 0008965e207de0a57f4d409bb46cd60f4cbc7a29 | [] | no_license | shadabshaikh0/Competitive-Programming | 7faa248513338f0af8b0ce651536dbe0b18aafe7 | 56d0723e69c750ac287feb76e1cf60e646910a83 | refs/heads/master | 2020-07-04T04:27:28.498903 | 2020-01-05T02:28:18 | 2020-01-05T02:28:18 | 202,155,410 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,402 | cpp | b.cpp | #include<bits/stdc++.h>
#define ll long long int
#define ld long double
#define FOR(i,a,b) for( ll i=(a) ; i<=(b) ; ++i)
#define FORR(i,a,b) for( ll i=(a) ; i>=(b) ; --i)
#define RD(v,n) for(ll i =0;i<n;i++ ) cin>>v[i]
#define bolt ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;... |
73f2e47fca14109c61dc93513cbfe511b2bfc8d4 | df449db4928b997de974bc07c3ead61295c9d6bb | /cylinder/0.41/p | 7d08ef14da0c8dcee4e30c336897084bd654784e | [] | no_license | einsteinzhang/Von-Karman-street-in-OpenFOAM | 408144dc5ad3d5ca8d0caf9402ed34e94e9ca9fd | 363a3cc910f404249034459f04ae96382629886c | refs/heads/master | 2022-10-09T04:19:52.167964 | 2020-06-09T03:17:38 | 2020-06-09T03:17:38 | 270,891,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55,820 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
bca4210468f24e42b0931ab48c61cdbcc50869df | bb540af8faad2c9c5bfa852119f6e9f964ca2120 | /learnCvSeq.cpp | d5342601d2799f3a87768f112b981bc341504469 | [] | no_license | suijingfeng/detectsquare | 52094b881631b84060d7fbc681f10aaf71d885ba | c13df0147500ba288aa8e766b7f753000567b04e | refs/heads/master | 2021-05-16T00:16:14.477164 | 2019-02-12T07:52:20 | 2019-02-12T07:52:20 | 106,980,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | cpp | learnCvSeq.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
int main()
{
CvSeqWriter writer;
CvMemStorage * storage = cvCreateMemStorage(0);
cvStartWriteSeq(CV_8UC1, sizeof(CvSeq), sizeof(CvPoint), storage, &writer);
for (int i = 1; i <= 10; i++)
{
CvPoint pt;
pt.x = 2 * ... |
317e194e78a1b3e1729c1470e7a66a7aa6afc19c | 472b95d6e4969a2db1116c349cba75ebdd7eaf4f | /graph/cormen/cor dfs.cpp | cf1981b7324cfe708a87758bf721842bfc308433 | [] | no_license | akashiitj/dsaprogram | 1edcafb88a81c958755af42c8e07362ac9ff4fc7 | 2d865d44d89da53b8874a23097d1f2f91adbc4c3 | refs/heads/master | 2022-01-26T17:56:38.425785 | 2022-01-11T08:54:39 | 2022-01-11T08:54:39 | 90,659,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,492 | cpp | cor dfs.cpp | #include<iostream>
#include<queue>
using namespace std;
//int visit[4]= {0};
struct node
{
int vertexno;
int vertexvalue;
node* ptav=NULL;//pointing to adjacent vertex
};
struct igbdfs//information given by deapth first search
{
node *pov=NULL;//parent of vertex
int it=0;//in time
... |
846b47bfda7773bec017bc8e92e599cb2b391a18 | 69e2ab49ab9942296f97f2aef73f20ec56171f30 | /813A.cpp | d34b4f770f0ad58887c465d217a975314a479d29 | [] | no_license | hllj/Codeforces | f2957d8caa97e35772aa2f98ed84373a2fe11908 | 15b6c4a68168a7b5ec97c4056637587ca40e9f3e | refs/heads/master | 2020-03-28T10:55:23.523528 | 2019-11-02T16:00:49 | 2019-11-02T16:00:49 | 148,159,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | cpp | 813A.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
#define IO ios::sync_with_stdio(false); cin.tie(0);
#define all(v) (v).begin(), (v).end()
#define fi first
#define se second
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<ll, int> li;
const int INF = (int) 1e9;
const ll LINF =... |
92c2973efe958c3774fac2bd41355d765850dfa4 | 251413d8c6c34086debc828e5a56088c0f3cf4cf | /VioletVreath/src/jp/gecchi/VioletVreath/actor/my/Bunshin/MyBunshinShot001.cpp | 8dc912158a993e74ad0238270f2ffb585f641978 | [] | no_license | gecchi/MyMain01 | a7311a3e4659a140dd1127b2ea592e7f1ed1a22b | 31ada3d4a434bea4dcd42fc867a52378493b0853 | refs/heads/master | 2023-09-01T14:30:06.410655 | 2023-08-30T14:39:38 | 2023-08-30T14:39:38 | 13,404,587 | 19 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,684 | cpp | MyBunshinShot001.cpp | #include "MyBunshinShot001.h"
#include "jp/ggaf/dx/actor/supporter/LocoVehicle.h"
#include "jp/ggaf/dx/actor/supporter/SeTransmitterForActor.h"
#include "jp/ggaf/lib/util/WorldCollisionChecker.h"
#include "jp/gecchi/VioletVreath/util/MyStgUtil.h"
using namespace GgafLib;
using namespace VioletVreath;
MyBun... |
92d646cb06faf04647c39edc4d927a9ffbc24a17 | 802a8f80cefc39644979cf2038356f63de866398 | /Server Lib/Game Server/GAME/memorial_system.cpp | 741c164e138df1c81fd74befd49291094f2e2e8d | [
"MIT"
] | permissive | Acrisio-Filho/SuperSS-Dev | 3a3b78e15e0ec8edc9aae0ca1a632eb02be5d19c | 9b1bdd4a2536ec13de50b11e6feb63e5c351559b | refs/heads/master | 2023-08-03T13:00:07.280725 | 2023-07-05T00:24:18 | 2023-07-05T00:24:18 | 418,925,124 | 32 | 30 | MIT | 2022-11-03T23:15:37 | 2021-10-19T12:58:05 | C++ | UTF-8 | C++ | false | false | 11,448 | cpp | memorial_system.cpp | // Arquivo memorial_system.cpp
// Criado em 21/07/2018 as 18:58 por Acrisio
// Implementa��o da classe MemorialSystem
#if defined(_WIN32)
#pragma pack(1)
#endif
#if defined(_WIN32)
#include <WinSock2.h>
#endif
#include "memorial_system.hpp"
#include "../../Projeto IOCP/UTIL/exception.h"
#include "../../Projeto IOCP/... |
83f6de69911ffc3066eee61b6490ff4ae68509b6 | 892fa9ad581d11f0c20075de75891aa0261c4bd1 | /TestVoid/voidTest.cpp | 96c68aedd8c7559a1d665d2cd772cb2fb7079c86 | [] | no_license | yudenglei/Demo | 055909a334e6bf58ba05de02339b2e4c437033a6 | 534f0c16598e2c96b76fe6098a48a6bdbbd7476f | refs/heads/master | 2022-10-11T09:03:15.629682 | 2020-06-12T08:25:31 | 2020-06-12T08:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,066 | cpp | voidTest.cpp | //#include <vector>
//#include <iostream>
//#include "voidTest.h"
//#include <string>
//#include "GM.h"
//
//GMethodCreator::MapMethod GMethodCreator::m_mapMethod;
//
//// https://en.cppreference.com/w/cpp/utility/functional/invoke
//// https://www.jianshu.com/p/b90d1091a4ff
//// https://stackoverflow.com/questions/906... |
9c4869c7b533b00172407094fc6da5045b26c484 | 86f261398dc8644caeb62474a3f83bd9a95fac29 | /examples/device-properties/src/main.cpp | 26114618883ae5c21c4dd61d161234a7244e7987 | [
"MIT"
] | permissive | Phando/ESPUtils | 673b220d91a7c558d9997c8bc5ca424b9c81a729 | 32a37d903a4a1d5a530f213d73cc96ab4b29c8bc | refs/heads/master | 2021-08-11T12:49:57.226496 | 2021-07-29T22:47:52 | 2021-07-29T22:47:52 | 250,855,660 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,015 | cpp | main.cpp | /*********************************************************************
This is an example using Device Parameters and the ESPUtils Library
By default the preferences object is named "ESPUTILS"
To change that look at the UTIL_PREF_KEY in UtilCommon.h
*****************************************************************... |
304b5d7632d0f71facf3fb6e1ef8e1a2a3f50381 | 0fcbef4b0cde82093e4d9409b7ff4194cd93237d | /source/Hyundo/week12/5430-2.cpp | 9c46f5f28cc0503cf1ea939ec2d456072835ed62 | [] | no_license | BreakAlgorithm/algorithm-study | 53bc141ae12933b1bee794b987ac6d0dedf8c29f | 3fa739b68c8bd1ce22888ae8d773a09300f87589 | refs/heads/master | 2023-03-07T18:06:12.873979 | 2021-02-24T01:52:21 | 2021-02-24T01:52:21 | 284,370,387 | 0 | 6 | null | 2021-02-21T06:08:58 | 2020-08-02T01:44:19 | C++ | UHC | C++ | false | false | 1,630 | cpp | 5430-2.cpp | #include <iostream>
#include <algorithm>
#include <deque>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char* argv[])
{
int T;
int n;
int num;
string p;
string arr;
bool reverse;
bool error;
deque<int> d;
cin >> T;
while (T--) {
d.clear();
num = 0;
reverse = false;
err... |
dc55c27875058e15ef1bec1a22f43c9e6bde7e29 | 928bef0900514027312e3811d77fb616ab3e33e3 | /Viking.h | 6031a4f75c817307a8f03c3b33a2b4ea52f957eb | [] | no_license | hugoj78/Fighter | 2c9d8b87fe9f631b97ac5e7994b8a3bdd8f4b0b1 | ffabc6dd4ce15e85de8f55fcccd796eb2e3510f7 | refs/heads/master | 2022-06-13T07:42:11.443496 | 2020-05-05T07:00:59 | 2020-05-05T07:00:59 | 257,704,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | Viking.h | //
// Created by Hugo-Jean Egu on 21/04/2020.
//
#ifndef EXERCICE1_VIKING_H
#define EXERCICE1_VIKING_H
#pragma once
#include "Warrior.h"
class Viking : public Warrior{
public:
Viking(): Warrior(120, 6, "Axe") {
}
};
#endif //EXERCICE1_VIKING_H
|
6a32b12ccd8307e2c738497e62e59df16f06d5a0 | 605fbe309b910bc1e4c07923fbfbc386ccc6cf4d | /elections_base.h | 1da6bd939bd3b509598b3c346aad3d3957354a5c | [] | no_license | sdeniskos/ElectionsModel | 1b22e84d37c4202d3cb4cbccb4c74d4de997c0b2 | db268f93e2123888ac036f57a21508f46071e8bf | refs/heads/master | 2016-09-11T07:59:47.678716 | 2011-12-18T14:16:29 | 2011-12-18T14:16:29 | 2,979,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,075 | h | elections_base.h | #ifndef _ELECTIONS_BASE
#define _ELECTIONS_BASE
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/array.hpp>
#include <numeric>
#include <algorithm>
#include <deque>
#include <cv.h>
#include "cell.h"
#include "agitation_works.h"
struct Elections
{
public:
Elections(CvSize outputImageSize):
m_field(m_size... |
14707b0ec6788194a9d5872c9ed786ce8d0180fb | 26a8a18d662dcfd1f492a1ef0a567ef2c241c936 | /AR42.cpp | 747ab7c41c523e9fd6c31ebb44ef038b8185fdf9 | [] | no_license | Flow1001/ITSA | 93121e11483fd2c35eccf8614671c726107ab576 | eda0ff0eb54639e28b858b346d66e2a1354b04fd | refs/heads/master | 2020-06-07T12:53:40.336512 | 2019-06-22T19:40:42 | 2019-06-22T19:40:42 | 193,027,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | AR42.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
using namespace std;
int main(void)
{
int min, max, i, input;
cin >> input;
min = input;
cin >> input;
//set initial max and min
if(input < min)
{
max = min;
min = input;
}
... |
2d1a67a344eac4f4144be553cb0ded38e4b65d54 | 28fe50473935ef8b5fd530f7928aaaa52cc409a0 | /Arrays/1-D Array/LargestString.cpp | db176cce6f7419eb9a1992e670f84d46c7b82dce | [] | no_license | professor9999/DSA | 5543c503b4c432f2d82371fc7d2cab0e33782267 | aa4ebb814867cd29c7b94bb85865e4f8e36e439d | refs/heads/main | 2023-08-19T02:16:00.325386 | 2021-10-09T05:15:09 | 2021-10-09T05:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | LargestString.cpp | // Read N, followed by N strings and print the largest string and its length.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int len = 0, largest_len = 0, n;
char a[100], largest[100];
cout << "How many strings do you want to enter ??" << endl;
cin >> n;
cin.get();
cout << "Enter ... |
69e50f295f849d8a31ac88124b7205609387c9f3 | f483eb3810a04ff2ae228e3a52947dc5be7f160b | /2013-05-20/test.cpp | d4687295fc3bec61cafb242ae79725c15052b343 | [] | no_license | Maciej-Poleski/PN | 4a594361c4c2673174d82efa4c3f2fec3f4604e9 | 9d17b4759ef478e3e817e3158149371aa94c97ed | refs/heads/master | 2023-04-11T19:20:31.429115 | 2013-04-15T11:30:09 | 2013-04-15T11:30:09 | 363,476,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | test.cpp | #include <cstdio>
#include <functional>
#include <thread>
#include <mutex>
#include <atomic>
#include <condition_variable>
using namespace std;
struct quit { };
mutex taskMutex;;
condition_variable cv;
atomic<bool> haveTask(false);
function<void()> task;
void worker()
{
try
{
for(;;)
{
... |
377385559e15acf51b0aefb304f1a04df85b2248 | 98fea01b10bb8d716d3296798fe5674923416349 | /TribesAscendSDK/HeaderDump/TribesGame__TrMiscellaneousMessage.h | 464d29e85690a7415fc0af1721e4e514a2c7d888 | [] | no_license | NomadGSF/TASDK | 16378639fe63d41c926a057393b1f625adc49bba | ee0de87836b69cf334e4cb7750b567c62ff5aae2 | refs/heads/master | 2020-12-30T17:45:06.447552 | 2013-07-15T02:59:03 | 2013-07-15T02:59:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,438 | h | TribesGame__TrMiscellaneousMessage.h | #pragma once
#define ADD_VAR( x, y, z ) ( ##x ) var_##y() \
{ \
static ScriptProperty *script_property = ScriptObject::Find< ScriptProperty >( #x " TribesGame.TrMiscellaneousMessage." #y ); \
return ( ##x( this, script_property->offset, z ) ); \
}
#define ADD_STRUCT( x, y, z ) ( ##x ) var_##y() \
{ \
static ScriptPr... |
d789cc5a8e37cfc8c1b0e95621629a052402572f | 1cab3e5a982c49d6b077dff19b3d329bae0a200c | /session4/findlua/main.cpp | 2bb668f1f452f177b92235acdaf95db01f8ccf1d | [] | no_license | fhackett/cpsc490 | dcc50fadca99f69e52d242ee5d6a8bb4e75a079b | aeb02b400c103f6f43223d979522336a64a9b507 | refs/heads/master | 2021-09-13T15:45:31.807777 | 2018-05-01T19:18:27 | 2018-05-01T19:18:27 | 103,233,131 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | main.cpp | #ifdef HAVE_LUA
// necessary or you get mystifying linker errors
// requires C++ to link any functions declared here using
// C-style linking (aka. don't mangle the function names)
extern "C"{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
int main(){
lua_State* ls = luaL_newstate();
luaL_openlib... |
80fcfdcde031c625ba10796d576c18744a24b317 | 07c70ca256cd96d84ca2a760e6190bb8684ef665 | /lab3_0/details.cpp | 8018cde98ad8d30cd8d4a0fcdd31c66ec30e2e08 | [] | no_license | kaneril/machine_modeling | f301cc81685b34b4f6f69c71ea6fc8419376b39d | 601672db45a429bde86c26885ec33533185cee68 | refs/heads/master | 2020-07-13T06:44:27.318956 | 2019-08-28T20:53:46 | 2019-08-28T20:53:46 | 205,021,859 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,338 | cpp | details.cpp | #include "details.h"
Detail* read_details(FILE *f)
{
Detail *head, *temp;
char str[30];
head = (Detail*)malloc(sizeof(Detail));
head->id = INT_MIN;
head->flag = 0;
head->maxPath = -1;
head->ptrNext = NULL;
temp = head;
while (!feof(f))
{
temp->ptrNext = (Detail*)malloc(sizeof(Detail));
temp = temp->ptrNe... |
9e52518b01d8e6aa4d3a909c83361f589794e622 | 6657186600feaec8228f8f92a9c3dec33d089d2b | /onnxruntime/core/framework/onnxruntime_typeinfo.h | 3c256aa73d17d397517cb317ed57fdcf4009b93f | [
"MIT"
] | permissive | microsoft/onnxruntime-openenclave | 4da64801290ff0f89497a6cfbfccd79e1584f81b | a6ad144bfbe4d91277c33180e65768e843a9f053 | refs/heads/openenclave-public | 2023-07-06T02:33:46.183271 | 2022-08-17T02:56:57 | 2022-08-17T02:56:57 | 290,272,833 | 34 | 21 | MIT | 2022-12-12T16:28:23 | 2020-08-25T16:58:14 | C++ | UTF-8 | C++ | false | false | 1,502 | h | onnxruntime_typeinfo.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <atomic>
#include <string>
#include "core/session/onnxruntime_c_api.h"
namespace onnxruntime {
class DataTypeImpl;
class TensorShape;
} // namespace onnxruntime
namespace ONNX_NAMESPACE {
class Type... |
613268c0f04c5f95bcf1dacca116f914b3c8160e | 63651c10f6bc9d1f883dd7c410d52e33380785e8 | /Homework December 2016/SecondHomeWork 2016/fn45311_prob6_vc/fn45311_prob6_vc.cpp | f45f0425755842354b8c28e48f4d229ccb6b693b | [] | no_license | ganchGra/UP-FMI | fb340c2d688733b4a5ec1661ddf4c1672d33f6e6 | 00117b96a8fca2565944e89d96d3ba61aec36a05 | refs/heads/master | 2020-06-11T07:09:34.851421 | 2017-08-17T14:05:35 | 2017-08-17T14:05:35 | 75,738,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | fn45311_prob6_vc.cpp | /**
*
* Solution to homework task
* Introduction to programming course
* Faculty of Mathematics and Informatics of Sofia University
* Winter semester 2016/2017
*
* @author Gratsiela Gancheva
* @idnumber 45311
* @task 6
* @compiler VC
*
*/
#include<iostream>
void binomialCoefficent(const unsigned n){
unsigned k = 0;
... |
8ff7cd40849a348aa59a343f602ab912d7c78c7e | a3cb1c1c73a7057db55951e3704a69634f5f39da | /lib86cpu/x86/jit.h | 4033c77b866f2496f761e2f99f36f1916b374912 | [
"BSD-2-Clause"
] | permissive | killvxk/lib86cpu | 408a4d390fe51c1b8904b35c4e10dac60f07c65b | e8f7dd7233f9f6011bb68f5e3a57f966e9aed6a7 | refs/heads/master | 2023-08-30T18:04:41.280162 | 2021-11-10T10:09:26 | 2021-11-10T10:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | h | jit.h | /*
* lib86cpu jit class
*
* ergo720 Copyright (c) 2020
*/
#pragma once
#include "llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h"
#include "llvm/ExecutionEngine/Orc/CompileUtils.h"
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
#include "llvm/ExecutionEngine/Orc/IRCompileLayer.h"
#include "ll... |
67774eed421853b518b5eefd3a3193f10d15375d | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ui/color/omnibox_color_mixer.cc | 41e2f8991e7c39973ba65cc5eba8fba67beb2dfd | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 18,194 | cc | omnibox_color_mixer.cc | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/color/omnibox_color_mixer.h"
#include "base/feature_list.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/ui/color/c... |
72a2771d11c40c8567534a480a725b938ca6fcec | 394ef4ef657268024073e358c9b709966cc0f2d8 | /C++ programs/Views of a binary tree.cpp | 35843001861083883f72278f2d5d3255e30f7176 | [] | no_license | svdhiren/DSA-practice | 111573b98eecfd1ad908056ceca512855d21c191 | b62c2546f0d1d6e5221ffbc2294469e821e11829 | refs/heads/master | 2023-06-20T02:11:20.808767 | 2021-07-17T13:52:30 | 2021-07-17T13:52:30 | 386,659,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,920 | cpp | Views of a binary tree.cpp | #include<iostream>
#include<cmath>
using namespace std;
struct btnode {
int data;
btnode* lc;
btnode* rc;
int hd, vd;
};
typedef struct btnode* BTPTR;
BTPTR create(int ar[], int n){
static int i=0;
if(i==n || ar[i]==0)
{
return NULL;
}
BTPTR T= new btnode;
T->data=ar[i];
T->lc=T->rc=NULL;
i++;
T->lc=crea... |
9737991fde783302533935bef5b53ecc39909deb | d662b793387a3972694f427d6caa2477223dc522 | /ManualPWM/ManualPWM.ino | 48ac94b366b61cd3267f2a5f20a2b0700cbe59cb | [] | no_license | gruposh/arduino | b988bcea3916863bdd05121ac8e2eb70711ff1f1 | b184e037adc76e8db5fe42a72bca0737a54c72f6 | refs/heads/master | 2020-03-29T07:25:16.864184 | 2018-12-26T18:25:59 | 2018-12-26T18:25:59 | 149,664,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | ino | ManualPWM.ino | /**
* ManualPWM
* ManualPID
* ManualPIDPWM
* ManualPIDPWMREST
*/
#define FAN_PIN 13
int speed = 100;
String inString = "";
void setup()
{
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop()
{
while (Serial.available() > 0) {
int inChar = Serial.read();
if (isDigit(inChar)) {
// convert... |
932b9945b391fa77847757ce5461107c6fe7fed0 | efe055ad1136e11674ed6066c4531ee5528dce91 | /Messages/IMessages/loginuserrespok.cpp | 1bd902074feef34b896d90f4e62d048990fbc254 | [] | no_license | marimarek/siaAgent1 | 327d0b60cdd745e31b4b7b17bfa3b42d12d90ba9 | 868cec4bf8e5a7be950674967367b2742f23f948 | refs/heads/master | 2021-01-18T15:15:31.378388 | 2013-06-16T16:02:56 | 2013-06-16T16:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | loginuserrespok.cpp | #include "loginuserrespok.h"
#include <QDataStream>
LoginUserRespOk::LoginUserRespOk(QDataStream &in) : IMessage(in)
{
}
IOMessage::MessageType LoginUserRespOk::type() const
{
return LOGIN_USER_RESP_OK;
}
|
e68a4d983246ed3c13d31c855edb9d3095dba2fb | ee09ff1d23cc56a9f59eecdfc784bf63c389b11f | /server/src/main.cpp | ccd759cc37f964a5cabfa88e216be1ebf73d372f | [] | no_license | evg-kazartseff/OS_course_project | abc384eb189f1e16143fcf2579087373498abdb3 | 10de10e0370b5a3bc2e16e4fa34041ccaad35981 | refs/heads/master | 2021-09-03T03:48:34.819485 | 2018-01-05T09:33:27 | 2018-01-05T09:33:27 | 110,780,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | main.cpp | //
// Created by evgenii on 15.11.17.
//
#include <iostream>
#include "server.h"
int main() {
Server::Net* Network = new Server::Net("127.0.0.1", 61530);
Server::Core* Core = new Server::Core(Network);
Core->Run();
} |
bd183f330b6738f261b0ca732a29fd6ca9c3456b | 97dc2e5e4b9e1f5bbe9ce3e79393da565bb9330f | /include/measurement_kit/common/runner.hpp | 8892bf9e2a20f340a996822a9ffcb1fb8c95b464 | [
"curl",
"MIT",
"BSD-2-Clause"
] | permissive | agrabeli/measurement-kit | eed97be35d0defa8c4ad2613dbff0f2971619aa1 | b8f654bef9c007ba0777bd59e9404f6a4316f712 | refs/heads/master | 2021-01-11T02:47:15.822763 | 2016-10-06T12:47:58 | 2016-10-06T12:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | hpp | runner.hpp | // Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef MEASUREMENT_KIT_COMMON_RUNNER_HPP
#define MEASUREMENT_KIT_COMMON_RUNNER_HPP
#include <measurement_kit/common/reactor.hpp>
#include <a... |
f535e3d79cd2f02d2bcd1ffb4a724be2684bdd90 | 64b3db06a0e460d48afec013f4a8c3881f3eef08 | /arduwire_REV2/examples/scanner/scanner.ino | 0a1f9acbbfb34b2b450316788bdce8b651b9c013 | [] | no_license | Erizm/ArduwireUNO-REV2 | 2ef1cfb323c2969dddae58abe4180a8eabf01094 | aee8c95fca5bc793547f0c2fa780db6ccd0dbe1d | refs/heads/main | 2023-01-10T23:29:29.848731 | 2020-11-20T04:50:38 | 2020-11-20T04:50:38 | 314,442,554 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | ino | scanner.ino | /*
*
THIS EXAMPLE IT IS COMPATIBLE WITH THE SHIELD ARDUWIRE
DEVELOPMENT BY ERIDEVICES MAR/07/20
REVISED NOV/19/2020
THIS SKETCH RETURN THE NUMBER OF THE TEST POINT. PUT SOME NODE TO GND,
AND THE ARDUWIRE IT IS WILL RETURN THE NUMBER
*/
//IMPORT THE LIBRARY arduwire.h
#include <arduwire.h>
... |
6fbf8685cd3d2a263427647e5f2181817fba31a5 | 4a45b8057233d71d6fa8392dbff10e18dc5508ba | /LearnOpenGL/4.16-Hexapon.h | efc028aaa4a3e3e4cf3a0bd5db08ceed1668fb64 | [] | no_license | solairewrite/LearnOpenGL | 9fd4882adf702979b04a64d5cdc6e61108cc6dd8 | 4189413de0b8bc0038dc9680fcddf37e55350f12 | refs/heads/master | 2020-05-17T22:49:51.353554 | 2019-05-20T10:42:51 | 2019-05-20T10:42:51 | 184,012,714 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 704 | h | 4.16-Hexapon.h | #pragma once
#include "BaseMain.h"
#include <GL/glut.h>
class Heaxpon :public BaseMain
{
private:
const double TWO_PI = 6.28;
// ´°¿ÚSize
GLsizei winWidth, winHeigth;
// ÏÔʾ±íË÷Òý
static GLuint regHex;
public:
Heaxpon();
virtual void MainFunc(int argc, char * argv[]) override;
private:
void init();
void s... |
c0e8a8288c8c3275a85fd35179df3f269f52a71b | 4e4a9e3a52d32e51b103ee5689078ee4d52c2a01 | /echo_svr/connector.h | b52df7af7bc608963cba76970379483f153fdf34 | [] | no_license | pzyyll/netframz | 9f422ddf7905f5740742cfce14f12434c0752a8c | cb1e0ec9847f32bbc9566f050e49293a99aa4efc | refs/heads/master | 2020-04-05T12:37:13.644495 | 2017-08-07T02:11:15 | 2017-08-07T02:11:15 | 95,176,795 | 0 | 0 | null | 2017-08-03T14:11:36 | 2017-06-23T02:46:53 | C++ | UTF-8 | C++ | false | false | 3,418 | h | connector.h | //
// @ Create by CaiZhili on 2017/7/17
// @ Bref
//
#ifndef NF_TEST_CONNETOR_H
#define NF_TEST_CONNETOR_H
#include <functional>
#include <ctime>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include "nf_event_iotask.h"
#include "err_code.h"
static const unsigned... |
cf86585a4a7d842b6aafe49e9ae218d52605bb5a | 1b4c547ab90aa5157b04d16abfda75b5b5e52259 | /2 семестр/Лабораторная работа 17/queue.cpp | 763ff97afc7cb501372a505ec563e721773aa09a | [] | no_license | akimich11/Cpp-Labs | 73c75bf0043cf3c81590e78434569bef6b355f7d | 61e58a0678d370c5c72553052042c744286ed6bd | refs/heads/master | 2023-02-22T16:39:41.351805 | 2021-01-25T12:00:43 | 2021-01-25T12:00:43 | 332,727,528 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | queue.cpp | #include "queue.h"
#define _CRT_SECURE_NO_WARNINGS
Queue::Queue(const Queue& Q)
{
Clone(Q);
}
Queue::~Queue()
{
Erase();
}
Queue& Queue::operator = (const Queue& Q)
{
if (typeid(Q) != typeid(*this))
throw QException("Wrong type!");
if (this != &Q)
{
Erase();
Clone(Q);
}
retur... |
336ff65fbb7ab8e5569313358c2121c62fd9341e | 8c8fe6c8b2e8eeec33b38cda0c9c9b7b4f07e154 | /cf-virtuals/edu-97-2/a.cpp | 9f8226f2b7808b7b610ade1c90eb8d082cd500ab | [] | no_license | rosalogia/competitive-programming | 414bd3877769daa924cf930bd708a6ddcc69552f | eff7f96179b8ec4bf028f490c5b93f89ed767c7b | refs/heads/main | 2023-01-19T09:52:07.674888 | 2020-11-27T10:08:07 | 2020-11-27T10:08:07 | 309,630,071 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll t, l, r;
cin >> t;
while (t--) {
cin >> l >> r;
ll s = l * 2 - 1;
cout << (s > r ? "YES\n" : "NO\n");
}
}
|
8f3b6ab7c1d1cf6dee3432a40b60875725c9dec1 | 583ebb7e93dc98c2867c94e186113dd99f9f8c40 | /include/yandex/contest/Forward.hpp | 4e0957023149a20a9f67bef7156368c7b23bdb88 | [] | no_license | bunsanorg/yandex_contest_common | 05ecaa3775f32bad53993d7a80f9d4f072e92212 | e43460b1fe98241559f91c31d79eb7187d7cba74 | refs/heads/master | 2021-06-05T06:28:50.777357 | 2017-11-01T16:16:30 | 2017-11-01T16:16:30 | 5,657,147 | 0 | 2 | null | 2017-11-01T16:16:31 | 2012-09-03T09:45:34 | C++ | UTF-8 | C++ | false | false | 253 | hpp | Forward.hpp | #pragma once
#include <yandex/contest/detail/ForwardHeader.hpp>
namespace yandex {
namespace contest {
YANDEX_CONTEST_INTRUSIVE_PTR_FWD_DECLARE(Log);
} // namespace contest
} // namespace yandex
#include <yandex/contest/detail/ForwardFooter.hpp>
|
0616f10bf4d007d904222df03baa0c69a1fed1ed | 8e57405aa788e066f60d907d4e5fa78f9386c973 | /divDy1/2/U_0 | 3ce2e41fb7e16b399665c63d11f48dcf2c7d569d | [] | no_license | daihui-lu/dynamicMesh | 06394bdf1538d6ce95ff9d836ecf7ff2b2917820 | 7cf4fc5f0c84b19dc330083cf4899677017383fc | refs/heads/master | 2020-03-22T03:55:07.843849 | 2018-07-02T15:38:58 | 2018-07-02T15:38:58 | 139,460,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339,995 | U_0 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0 |
... | |
7029de0d435986f32edb4bf71e61b1097b72c37b | 1997370b4e6372e02d4dc7f3c5f3cd8f58ef5411 | /Hw7/hw7/helper.cpp | 2684595ce373c62110153ab291e36d7ee9dcca33 | [] | no_license | monder0116/CSE241 | 3a8cb6e414bb15f2271b115d12bbbf3c62b64ca6 | b859a43fade51b9fe17733d00d6a556d4d215067 | refs/heads/master | 2022-04-28T18:36:48.322395 | 2022-03-14T20:22:13 | 2022-03-14T20:22:13 | 81,237,896 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,805 | cpp | helper.cpp | #include "helper.h"
namespace hlp {
bool isdouble(string line) {
bool firstpoint = false;
for(int i = 0; i < line.size(); i++) {
if (line[i] != '.') {
if (!(line[i] >= '0' && line[i] <= '9')) {
return false;
}
}
... |
7c6af7ed42480e1c3a8a4475e369df9ab4db780e | 6fdacb483d6819dda8c2a6846b9a8c8ae8eed7d0 | /Tree.h | 419de1521ac0b72f38b3a6158958a4cf0bf7763f | [] | no_license | wangdong8500/BinomialTree | 424d2f6c5f74e6e867654eae9c0ee28d54ca332f | d40d2ebbc9de0e1b7d30c3ec82d55c6d4346ef9a | refs/heads/master | 2020-12-27T12:05:52.842092 | 2016-01-02T21:56:28 | 2016-01-02T21:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | h | Tree.h | #ifndef __TREE_H_INCLUDED__
#define __TREE_H_INCLUDED__
#include <iostream>
#include <cmath>
#include <unordered_map>
#include <vector>
template<typename Number>
auto computeTree(
auto&, //function(t, x) for the drift ->alpha=alpha/sigma
auto&, //function(t, x) for the volatility->sigma=sigma'(x)
auto&, /... |
cf2653c84b02381aa47a40bfec18d4a4ba16f3a9 | f83c387a4524c24a86f45dce956a41a522544e2e | /test question no 2.cpp | 530e05b4e18e7c41f8bcaabc232ac870c84b55fd | [] | no_license | Prabin-silwal/prabin | fd186f4f43fde3693a80110871cda55ea5c2d39d | 707f379445ff1feeb12c1992c114c3be8561b507 | refs/heads/master | 2020-03-09T04:59:01.398918 | 2019-07-23T05:20:29 | 2019-07-23T05:20:29 | 128,600,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | test question no 2.cpp | //this program is written by prabin silwal
//bcsit suway interntional business school
//bcsit first semester
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int feet1,feet2,inch1,inch2,inch3,feet3;
printf("enter the feet1 first:");
scanf("%d",&feet1);
printf("enter the feet2:");
scanf("%d... |
e9d8d7b6fd9a5b1f3f73f1c84028fa0c54a645b0 | 37819049d71f079bd8fb34b5c5efa7ba57ddfcbd | /2019 KAKAO WINTER INTERNSHIP/크레인 인형뽑기 게임.cpp | 300e4cf8ac46724fbc3c51d4098122a93fbb8083 | [] | no_license | iCodeIN/CPP_Algorithms | 867caa5808c684c1177f348360e4839bc63c3bf7 | 58d6619953d22f88c005c538b429fd9ee300ffa0 | refs/heads/master | 2023-06-08T14:50:23.017842 | 2021-07-05T08:51:56 | 2021-07-05T08:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | cpp | 크레인 인형뽑기 게임.cpp | #include <iostream>
#include <string>
#include <vector>
#include <stack>
using namespace std;
int pop_doll(vector<vector<int>>& board, int move){
int doll_id;
int N = board.size();
int x = 0, y = move-1;
while(x<N && board[x][y]==0) x++;
if(x==N) return 0;
doll_id = board[x][y];
... |
d58e5d818a3a2f38175ec3cedd2d5341e2c7dbbb | 1608078a35d1fafc566a1712a3ec3975a5519be8 | /huffman/file_utilities/headers/huffman_file_compressor.h | de5c53386af0c838b158f6b4eefc9bff7a8524d4 | [] | no_license | perveevm/cpp-course | a42eb99171d3768b70e3c80a696fe5e4161b828a | ea0a19639ce3c0ad132ed6a79faa77e6a431b5ff | refs/heads/master | 2020-05-03T09:36:19.747337 | 2019-06-29T13:08:44 | 2019-06-29T13:08:44 | 178,558,446 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 652 | h | huffman_file_compressor.h | #ifndef HUFFMAN_HUFFMAN_FILE_COMPRESSOR_H
#define HUFFMAN_HUFFMAN_FILE_COMPRESSOR_H
#include "../../huffman_lib/headers/constants.h"
#include "../../huffman_lib/headers/huffman_encoder.h"
#include "buffered_writer.h"
#include <string>
struct huffman_file_compressor {
huffman_file_compressor();
void compress(... |
fc8c5eb8b30c48a6ec98089130d9074fa7103d7d | 502a33610865d87b4081300747e60bf4170125e7 | /dynamicProgramming/Dice Combinations - 1633.cpp | 6def75ca4a6cc9dd1c14160032c839440e3e2a38 | [] | no_license | MrAlves17/CSES-ProblemSet | a6e569450fceab9d8924c549f8dff0dcbbb2b981 | 5243aaca761f2d86534510de3059f7bc40fe93bf | refs/heads/master | 2023-06-28T10:59:03.549035 | 2021-07-30T14:00:19 | 2021-07-30T14:00:19 | 273,575,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | cpp | Dice Combinations - 1633.cpp | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define ull unsigned long long
#define endl "\n"
#define FAST_I ios_base::sync_with_stdio(false); cin.tie(0)
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for(ll i=a;i<b;i++)
#define SQ(a) a*a
using nam... |
6f8764c9850d6b167738bbbf8067186328c30245 | deec07f78bcca329003ccab462fc3038e699deff | /6/ZigZag_Conversion.cpp | d51d4b70d7012efcfaf5c62f1a5c3a127497f75e | [] | no_license | Zihua-Liu/LeetCode | 98d417ebf799d9610bbca97c8e3f5a37625b654b | a4b945d2732746b3c76a212993ed6a4d612e0614 | refs/heads/master | 2021-01-18T16:50:04.838751 | 2019-02-19T01:08:49 | 2019-02-19T01:08:49 | 72,458,445 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | ZigZag_Conversion.cpp | class Solution
{
public:
string convert(string s, int numRows)
{
string result = s;
int cnt = 0;
for (int i = 0; i < numRows; i++)
{
int ptr = i;
bool move = true;
while(ptr < s.length())
{
int temp = ptr;
if (i == 0)
{
result[cnt] = s[ptr];
cnt++;
ptr += 2 * (numRows - ... |
62fb23e9cb7ae2c3eb480f5d22eec95e5f53a428 | 9fe626e7f45240360ecef4efe4116be5a599e530 | /src/inflightindex.cpp | 39f385fac5d3e5368fdd3da7dcb549fa31527a54 | [
"MIT"
] | permissive | chain2/chain2 | 263d87ac6beb9b501a6a9428289068a8431ef537 | 62a44f5f56a4c2033e3b5b5e12b8bcdd684fa8ef | refs/heads/master | 2023-08-07T13:52:56.225424 | 2023-07-28T02:36:39 | 2023-07-28T02:36:39 | 166,445,629 | 4 | 4 | MIT | 2019-12-17T18:20:08 | 2019-01-18T17:14:15 | C++ | UTF-8 | C++ | false | false | 2,104 | cpp | inflightindex.cpp | #include "inflightindex.h"
#include "util.h"
void InFlightIndex::erase(const QueuedBlockPtr& ptr) {
std::vector<QueuedBlockPtr>::iterator pos
= std::find(inFlight.begin(), inFlight.end(), ptr);
if (pos == inFlight.end()) {
LogPrintf("Warn: queued block ptr not found, can't erase");
ret... |
fa691dc62a9f5c1b58523828035c3a377f33fe0f | 52ecc81aba92258924ff6bbe62e536e1ad85ff03 | /benny/GDX/GDX/material.h | d1229c6d5704f9eea89ddf95b398267dc8c00caf | [] | no_license | mdurrer/cgd | df02709a9b5db7d3696f82c521405f1ada67febf | bbbb2960e2c47531b464f888146d758ca96c5b64 | refs/heads/master | 2020-05-21T12:28:54.901920 | 2018-07-25T20:06:48 | 2018-07-25T20:06:48 | 52,598,365 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,824 | h | material.h | #ifndef MATERIAL_H_INCLUDED
#define MATERIAL_H_INCLUDED
#include "texture.h"
#include "math3d.h"
#include <map>
#include <string>
class Material
{
public:
static const std::string DiffuseTextureName;
static const std::string ColorVector3fName;
static Material* Get(const std::string& name);
static Mater... |
4d467300f3a751e93e450602b32980078fe15a62 | 7f8413481c75c9f37e5ba06a133d30ec32dff2f3 | /codeforces_solution/codeorces_card_sort.cpp | e8babde808f2ed1a9b6f3b0be46d2a8f9e218fdf | [] | no_license | sivangisingh/cpp-codes | 5f539a93cce1fee2c9fb33823fc4e076e98cb178 | 74cdba5179885aa49dd3079f444427e27f697e07 | refs/heads/master | 2020-08-08T01:20:04.239831 | 2019-10-08T13:56:53 | 2019-10-08T13:56:53 | 213,656,526 | 2 | 0 | null | 2019-10-08T13:55:32 | 2019-10-08T13:55:31 | null | UTF-8 | C++ | false | false | 1,881 | cpp | codeorces_card_sort.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> hands(n);
vector<int> pile(n);
deque<int> trial_q;
priority_queue<int , vector<int> , greater<int> > pq;
int max_v = INT_MIN;
int min_card ;
int new_card;
... |
2e446a6b3a11c8994caae7b07c401ec1a8234ad4 | d22a50169057ccd82c075be19c16e69dcf8d60ea | /src/object/src/Deprecate/Service/ObjectService/UnitTest/ReaderUnitTest.cpp | 43927927e9860c59300476d32c4c86d4e37d9ec9 | [] | no_license | Martians/cpp | c69570635862f739c1891f01523980c2c84a3d9c | b463803830e09e910ee13e71c8396df5557ef022 | refs/heads/master | 2020-04-01T20:29:36.093969 | 2019-04-29T00:38:46 | 2019-04-29T00:38:46 | 153,606,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,313 | cpp | ReaderUnitTest.cpp |
#include "UnitTest/ReaderUnitTest.hpp"
TEST_F(DataBaseTest, Connect_AddressNotExist_Failed)
{
mConfig.reader.conn.host = mock::c_not_exist_host;
g_mock.Regist(CONNECTION_BAD);
DBConnect();
ASSERT_EQ(0, Wait(DE_connect_refuse));
}
TEST_F(DataBaseTest, Connect_HostExistServiceNotExist_Failed)
{
... |
74481b61a0868d8e3e97ecc7f880a4f4ce00e482 | b9ed7c1a5311e370aef6bd0bb6347b0a56f554df | /d04/ex01/RadScorpion.class.cpp | 22fdd8c4db858b46284f1e88bb6b7fb123df696f | [] | no_license | pdeguing/piscine_cpp | 1b5d628e45416721fcc361e56bd6c283f8271f70 | c77e141514dd52bcdf2e4c4d31f396a09a69d17e | refs/heads/master | 2020-05-04T23:32:14.762599 | 2019-05-08T19:28:20 | 2019-05-08T19:28:20 | 179,546,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | RadScorpion.class.cpp | /**
* File : RadScorpion.class.cpp
* Author : pdeguing <pdeguing@student.42.us.org>
* Date : 02.05.2019
* Last Modified Date: 02.05.2019
* Last Modified By : pdeguing <pdeguing@student.42.us.org>
*/
#include "RadScorpion.class.hpp"
RadScorpion::RadScorpion(void) : Enemy(80,... |
bc26a80cc64512a67625debec53fbd6ceabc5ffa | e400cc4f0467a8edbcf773a643badf7d11e62e6c | /src/HeaderFiles/objects/DoubleVector.h | 2c91318a568aa214d0004124397033c41abc140c | [] | no_license | shonenada/cGeDBIT | 4a37db2fdf1c1d252aaec740157a95d6685c10d1 | becc38e16a295cd6a7e3f08ba8cb63b02716424e | refs/heads/master | 2021-01-21T12:06:46.062325 | 2013-05-22T05:30:04 | 2013-05-22T05:30:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | h | DoubleVector.h | #ifndef DOUBLEVECTOR_H
#define DOUBLEVECTOR_H
#include "IndexObject.h"
#include <fstream>
#include <string>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/vector.hpp>
class CDoubleVector :
public CIndexObject
{
public:
CDoubleVector(void);
CDoubleVector(... |
f83fa517290c6c99bb0c1d821707bb479f835e31 | 01d961f14bc532adffb773e76be0437682f8bbfb | /Project2/Q1.cpp | 68a8553680600d700a18e2e43a1c49aadfd35de7 | [] | no_license | pedramsafaei/Computer-Vision | 0dd831ce1e9cf4e6b62eb42a18db90ab1eb2bceb | a238f5e80af510a140c754357051d4e4822c1fc6 | refs/heads/master | 2021-10-26T08:14:39.221420 | 2019-04-11T10:26:19 | 2019-04-11T10:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,288 | cpp | Q1.cpp | #include <opencv2/opencv.hpp>
#include <string>
#include <vector>
#include <cmath>
cv::Mat ToonShadingAlg(const cv::Mat &image, int Levels) {
cv::Mat result(image.rows, image.cols, CV_8UC3);
const float level_size = 255.f / Levels;
const uchar *img_data = image.datastart;
uchar *ToonShadingValues = re... |
cda7a5286f99c1294d6aadcb1d23937fa1af3e5d | 37297b1c46f1366e75e356f2ee6f60f1dd9c71ae | /CPlusPlus/driverShape.cpp | 3917705dfd5f88d67d7b6d4767825c29c7e862e3 | [] | no_license | Capotasto/C-PlusPlus-Project | 9021b9991a16510194b711d01596dfc1b1c0e852 | 213f89aeb6c61c0457b8d1b405f76089b6fbee74 | refs/heads/master | 2021-01-09T20:51:39.237614 | 2016-06-23T01:07:30 | 2016-06-23T01:07:30 | 57,948,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,663 | cpp | driverShape.cpp | //
// driverShape.cpp
// CPlusPlus
//
// Created by Norio Egi on 6/6/16.
// Copyright © 2016 Capotasto. All rights reserved.
//
#include "driverShape.hpp"
enum type_shape{
TRI=1,
REC
};
enum type_oprator{
ADD=1,
SUB,
MUITI,
DIVIDE
};
void mainDriverShape(){
int inputShape = 0;
... |
39037d0cc4ff1885bc4899208273673c84c2c4b7 | 825b4787ea4ede4b57f1432ee389313072759d3f | /src/1047.cpp | bbacedc95f435e8dd70a9da6c07e9ed528bee6dd | [
"MIT"
] | permissive | killf/leetcode_cpp | 00ef593553da0a9536d9039c25be8d14e8330f77 | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | refs/heads/master | 2023-02-07T05:16:02.628360 | 2021-01-02T01:54:34 | 2021-01-02T01:54:34 | 296,975,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | cpp | 1047.cpp | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <hash_map>
#include <map>
#include <sstream>
#include <type_traits>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <list>
#include <cstring>
#include <bitset>
using namespace std;
/*先进后出->括号匹配问题->栈*/
clas... |
0bb3db5b9d0ed0b637b24c87c9a7515c61072bb6 | fde6db6a9fcaabad863b1343537a29c031eae6b8 | /session6_3.cpp | c12404450e5e693c349188eb88aaa1e9bb0bf5f8 | [] | no_license | billytrinh/T2004E_C | 334a9b7533f52524b14d7f1c96c5c8af29076308 | a35e0eaa3490d6b341c694613f6d99f942e1cde5 | refs/heads/master | 2022-08-20T14:15:16.175003 | 2020-05-28T07:24:32 | 2020-05-28T07:24:32 | 262,034,367 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 851 | cpp | session6_3.cpp | //Tìm so gan lon nhat va gan nho nhat trong mang 20 phan tu
// 1 4 7 4 3 -> max: 7 -> n_max: 4, min: 1 , n_min:3
#include <stdio.h>
int main(){
int ary[10];
for(int i=0;i<10;i++){
printf("nhap so thu %d:\n",i);
scanf("%d",&ary[i]);
}
int max = ary[0], min = ary[0];
for(int i=0;i<10;i++){
if(max < ary[i]){... |
e7c4bba96e4e43398d7d152eeb39219f5745a58b | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/11_1427_65.cpp | 6b05a3355b2c77ee8595cbd37eb0a8048cdb737d | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,597 | cpp | 11_1427_65.cpp | #include <string>
#include <vector>
#include <map>
#include <set>
#include <iostream>
#include <cstdio>
#include <utility>
#include <cctype>
#include <queue>
#include <deque>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
using namespace std;
#define X ... |
28bea583716f2efa92b63f1970992b1147729706 | 35495ba32639d770c2526aa26db6555ebedd7afc | /spasm/utils.cpp | de48dc5c9680bdf80066c2082150b3a7f8b05892 | [
"MIT"
] | permissive | IISAKNIFE/WabbitStudio-Old | 9a07a0a1b233b6399dd2b9f35dccfe7e96fab9ec | 5b8dd989d45004af0c01b05f040884233c1a4cd0 | refs/heads/master | 2021-07-03T02:30:27.867477 | 2017-09-25T22:15:04 | 2017-09-25T22:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,861 | cpp | utils.cpp | #include "stdafx.h"
//max depth of #defines
#define RECURSION_LIMIT 20
#include "storage.h"
#include "parser.h"
#include "hash.h"
#include "utils.h"
#include "expand_buf.h"
#include "console.h"
#include "spasm.h"
#include "errors.h"
static void destroy_char_value (label_t *label) {
if (label->name)... |
36da535fac3709b490aedeb4997c686f3aab0843 | a60f2d47ad5d4630a60ca275b811f7349818717b | /Spoj_Solutions/subsets_4.cpp | e2e9705c0b8678e867537e6809c33f96602f8033 | [] | no_license | kevin-212/KEVIN_SPOJ_SOLUTIONS | ef850ba6af140da5cdc76c83ce528b8abd2dd4b3 | e48e5941bb33411f0daef7e3e2758f3f4861135f | refs/heads/master | 2021-01-02T09:01:37.268731 | 2015-07-12T16:02:12 | 2015-07-12T16:02:12 | 37,242,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | cpp | subsets_4.cpp | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <strin... |
3cc03d71ce6b52c8072e072dbbc9418d3b90d93a | 8efaa36caf41e9805772d155c19b23685640beba | /src_immersed-boundary/ib_functions.cpp | dd7c333b426111f0ec643327ffabad084e647bc5 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | RevathiJambunathan/FHDeX | ff63e3908d29da999805cbac21d56d1530006b42 | 65651443cf56fba30a797f81ee262309832adba1 | refs/heads/main | 2023-06-02T21:19:01.115809 | 2021-06-23T18:52:05 | 2021-06-23T18:52:05 | 379,705,497 | 1 | 0 | NOASSERTION | 2021-06-23T19:10:20 | 2021-06-23T19:10:20 | null | UTF-8 | C++ | false | false | 4,689 | cpp | ib_functions.cpp | #include <ib_functions.H>
#include <ib_functions_F.H>
#include <immbdy_namespace.H>
#include <immbdy_namespace_declarations.H>
using namespace immbdy;
using namespace ib_flagellum;
void InitializeImmbdyNamespace() {
n_immbdy = 0;
contains_flagellum = false;
contains_colloid = false;
int cf = 0, ... |
696dd055d846a32618f0ec8e14d0e987101ae0db | 2b1b459706bbac83dad951426927b5798e1786fc | /src/devices/board/drivers/acpi-arm64/acpi-arm64.cc | 4ac570eb9d7c9255094e35324e23f66fff30e390 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 5,899 | cc | acpi-arm64.cc | // Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/devices/board/drivers/acpi-arm64/acpi-arm64.h"
#include <fidl/fuchsia.hardware.platform.bus/cpp/fidl.h>
#include <lib/async/cpp/task.h>
#inc... |
fee8e740b444f422c5ce38bc461a34281855208d | a1f7bbf5d7b5b5bed3d793d23b853b8ab9f10d57 | /algorithm/chap_4/dijkstra/dijkstra/main.cpp | 9189b864a823eb61fd46d84da3d1c78f70bd6dfa | [] | no_license | digiry/study | 42c3eb4fcc843ca3686f02e6a1350e98bb06e74b | c6ce168b12388385e379ee81076937d9b419db45 | refs/heads/master | 2023-05-11T03:03:59.594526 | 2022-03-03T15:40:23 | 2022-03-03T15:40:23 | 23,147,281 | 2 | 3 | null | 2023-05-01T19:34:40 | 2014-08-20T12:09:32 | HTML | UTF-8 | C++ | false | false | 2,281 | cpp | main.cpp | #include <iostream>
using namespace std;
#define INF 987654321
#define VT_CNT 6
#define GET_NUM(x) ((x)-'a')
#define GET_CHAR(x) ('a'+(x))
#define MIN(x,y) ((x>y)? (y):(x))
int adj[VT_CNT][VT_CNT] = { 0, };
int dist[VT_CNT] = { 0, };
int prv[VT_CNT] = { 0, };
bool visited[VT_CNT] = { false, };
int N;
void init();
... |
ab5e177c960708d89b094dfb9e079d2a91f78b83 | 8fd168e0c5ccdb5ae493cbc12562393f166d0906 | /Project1/knn.cpp | 568010fb199952fc521c3e6a287348395b8aad46 | [] | no_license | SimJung/KNN-KMC | 2922449222eba5c260eeb14e9f9b555dd867c8f7 | 84266224fc677c2ef999bdcd0542c162d397973d | refs/heads/master | 2022-10-29T14:35:22.891713 | 2020-06-15T14:30:00 | 2020-06-15T14:30:00 | 272,015,812 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 8,227 | cpp | knn.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include <cmath>
#include <queue>
#include <iomanip>
using namespace std;
// 데이터를 저장할 클래스를 정의. 벡터, ribo-data인지, nonribo-data인지 분간하는 변수가 원래의 값, knn 이후의 값으로 나뉨.
class riboData {
private:
double ex_result[79];
bool val_isRibo;... |
365c57b98ad055e08fde392c346cdf4cee55db97 | a3e1a101673c56e4ced1b5600612b25b145eb472 | /beakjoon_algorithm/beakjoon_algorithm/CodingTestExam/10809(알파벳찾기).cpp | 5994bd5cfb69353de025cc9696655f48af5b4ea3 | [] | no_license | gwanhyeon/algorithm_study | a95f3f2d559899f734b52d2d6e89d5f0125cebdf | f01af94919946e5adbdd7cb688cc2c1cf54cbbdc | refs/heads/master | 2022-01-07T21:34:56.297147 | 2021-12-29T16:02:02 | 2021-12-29T16:02:02 | 162,471,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | 10809(알파벳찾기).cpp | //
// 10809(알파벳찾기).cpp
// Algorigm_Study
//
// Created by kgh on 18/12/2018.
// Copyright © 2018 kgh. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
string str;
cin >> str;
int idx = 0;
// stri... |
8ed0a3fa7ccecaadff29d4edaeaf11a5115fd05a | 0e0349ae930d632fdaefd1b3be3209027ba27aa5 | /Arrays/countTheTriplets/Approach1.cpp | 6769d1c0863112098e138e1667bd719d3ed91691 | [] | no_license | Subhodeep2000/mustDoCodingQuestionsGFG | 95be359a01c90001a22b7266a3dc90ba83474feb | 81ef4784e437ae35d2a5883e9817a34bb6faf007 | refs/heads/master | 2022-12-13T11:24:06.231527 | 2020-09-11T18:18:44 | 2020-09-11T18:18:44 | 293,554,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | Approach1.cpp | #include<bits/stdc++.h>
using namespace std;
int findAns(int*A, int N) {
sort(A, A + N);
int count = 0;
for (int i = N - 1; i >= 0; i--) {
int j = 0, k = i - 1;
while (j < k) {
if (A[i] == A[j] + A[k]) {
j++;
k--;
count++;
}
else if (A[i] > A[j] + A[k]) {
... |
db5e874345eb7401acc5c3551b6fc392e96841aa | 845abf347fa5f5715dd3379237e42e88fbca34a9 | /leetcode/122_best_time_to_buy_and_sell_stock.cpp | b0c64742f0df30e01bf4f4f94ab0f5225c72077f | [] | no_license | tariqul87/coding-practice | cf03375a08e8d78d8464960ccb26ee5937a12782 | 209814f8ddef2e9c202b7750f09e964b3fe8d117 | refs/heads/master | 2021-06-22T04:04:45.269606 | 2020-12-16T13:15:32 | 2020-12-16T13:15:32 | 158,011,562 | 0 | 0 | null | 2020-12-16T13:15:33 | 2018-11-17T18:11:38 | C++ | UTF-8 | C++ | false | false | 617 | cpp | 122_best_time_to_buy_and_sell_stock.cpp | class Solution {
public:
int maxProfit(vector<int>& prices) {
int n = prices.size(), i = 0, maxProfit = 0;
while(i < n) {
while(i+1 < n && prices[i] > prices[i+1]) {
i++;
}
int start = i;
int end = i;
... |
e20c078c399e0b5f940d4aaad16bd923c992a570 | 9a66c86732ab355d3bb2f8c28e9e650dd9ef0eea | /ctfs/UIUCTF/2018/how2heap/pseudocode.cc | a555a1bc383d1ff50de84c2c44c15ed2275f64fc | [
"MIT"
] | permissive | sajjadium/ctf-writeups | 15ac05decb93f66e1a378e249dd43f689267d3dd | 1fed8bd75274fd50981977a845d961ecd7dd99ef | refs/heads/master | 2023-05-11T11:05:49.492682 | 2023-05-06T06:15:13 | 2023-05-06T06:15:13 | 132,529,239 | 116 | 28 | null | null | null | null | UTF-8 | C++ | false | false | 6,775 | cc | pseudocode.cc | uint64_t line_up(int64_t a1, int64_t a2)
{
int64_t *parent; // rax
int64_t parent_age_1; // ST30_8
int64_t parent_name_1; // ST38_8
int64_t *first_child; // rax
int64_t *parent_3; // rcx
int64_t first_child_name; // rdx
int64_t *first_child_1; // rcx
int64_t *parent_1; // rax
int64_t... |
6d13cd61a7be7b23d8d81925ee48a9f33591fc8b | 22144f7353cf51ca4fab80343eaf2995181a0559 | /Sho.cpp | d50454c19ea95b74c9f90a861ccd6a7a29462eed | [] | no_license | CarlosV18/Tarea3_LabProgra3 | 39082335e7de6ed5bc63a4d6437dfc5403d8f025 | 72940f28d695e1ef60acd5cb889e61699316c6aa | refs/heads/master | 2021-01-20T11:35:42.785085 | 2015-02-13T17:56:02 | 2015-02-13T17:56:02 | 30,768,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | cpp | Sho.cpp | #include "Sho.h"
#include<SDL2/SDL.h>
#include<SDL2/SDL_image.h>
#include<Iostream>
using namespace std;
Sho::Sho(SDL_Renderer* renderer)
{
sho_standing.push_back(IMG_LoadTexture(renderer,"Sho/standing/1.png"));
sho_standing.push_back(IMG_LoadTexture(renderer,"Sho/standing/2.png"));
sho_standing.push_back... |
79ce5be29e89ed653ea823f351b600f46dd9ad3d | 0f2fe64df95de6a2d3e3af647b5c880a62ca91b3 | /Spoj/STSTRING.cpp | b0da7b8dee90eef9e3fb0b81928cc2f9e510a0a8 | [
"MIT"
] | permissive | amraboelkher/CompetitiveProgramming | 79e197a8b1978784ce0f642649774456a3d8f6f7 | 624ca5c3e5044eae2800d14b3dbb961c85494b85 | refs/heads/master | 2021-01-11T15:09:07.105358 | 2018-01-22T17:25:29 | 2018-01-22T17:25:29 | 80,298,883 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | STSTRING.cpp |
#include<bits/stdc++.h>
using namespace std;
int dp[7][12][7][2][2];
char A[7] , B[7];
int NA , NB;
int rec(int idx , int prev , int len , bool con1 , bool con2){
if(idx == len)
return con1 && con2;
int &ret = dp[idx][prev][len][con1][con2];
if(ret != -1)
return ret;
ret = 0;
for(c... |
7351f13556b72cc4aa292878073aba5bcafd4102 | 8c30a27e5f25a0d6b82419329b6478fbfc47a028 | /matrice_g.hpp | da999c7f01c5b35c87c3d060a493f8c47ebd0afd | [] | no_license | gregoirebussiere/voyageur_de_commerce | 4e006d65c1fddb809cffe56c01d91836674f9658 | 0f0e89688f45709458c2b7c99ad96bad8538bb58 | refs/heads/master | 2020-04-19T09:41:08.253994 | 2019-03-18T18:15:09 | 2019-03-18T18:15:09 | 168,117,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | hpp | matrice_g.hpp | #ifndef MatriceH
#define MatriceH
#include <iostream>
//fichiers entête systeme
using namespace std;
//class Matrice definition
class Matrice
{
protected:
int dim_; //dimension de la Matrice
double * val_; //tableau des valeurs
public:
Matrice(): dim_(0), val_(NULL) {} //constructeur par défau... |
1646cbc63b29d309e29adbb77e4be4a126637165 | 319884441ea89619ca8f1ca91063a70e141846e5 | /Samples/D3D12Bundles/src/D3D12Bundles.cpp | ebab7023c35ccbc2f7b585d95dfd39a435b461a4 | [
"MIT"
] | permissive | GPUOpen-LibrariesAndSDKs/nBodyD3D12 | 930a86508ea6fc024b9dfc12e18f2fb9c5ba8fbc | 08ea79b0c2f0dbd9e7f21b85f078ce856c87ad06 | refs/heads/master | 2023-08-12T07:50:47.774564 | 2019-07-14T07:22:44 | 2019-07-14T07:22:44 | 50,424,410 | 60 | 24 | MIT | 2019-07-14T07:22:45 | 2016-01-26T11:27:57 | C | UTF-8 | C++ | false | false | 25,550 | cpp | D3D12Bundles.cpp | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... |
2232a2c6db64017e4842799a2ffe7c6ceea22189 | 0184e96e37298e01d7270afa64035ef26888dc22 | /misc/eval/ltiSegmentationGenetics.cpp | 92f9fd845df5234c741fdb062f04c1dd9b8efaf0 | [] | no_license | edwinV21/LTI-LIB2 | 8f938915cc9918f55618ac7e3213862dba2ecce1 | 458cb35eedc1c0d1758416b78c112ff226116ede | refs/heads/master | 2021-01-16T21:07:49.394303 | 2017-12-04T23:51:27 | 2017-12-04T23:51:27 | 100,211,418 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,436 | cpp | ltiSegmentationGenetics.cpp | /*
* Copyright (C) 2008
* Pablo Alvarado
*
* This file is part of the LTI-Computer Vision Library 2 (LTI-Lib-2)
*
* The LTI-Lib-2 is free software; you can redistribute it and/or
* modify it under the terms of the BSD License.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, wi... |
560a6fc6897273e763b794f1706086575cac865f | 553d528a1040f58b3de63c4f363af7dfb1d41a5b | /炸金花修改版/炸金花修改版/flower.h | 738a4049088ac9f41a4945d3b7022885cba2a245 | [] | no_license | 66six11one/basong | e84ef55ad525e5703b23f56ca078ce3f2dd87146 | a4ec9e47b7750de0e14200915ee758b6cae54596 | refs/heads/master | 2022-04-14T01:41:52.264096 | 2020-04-08T05:25:36 | 2020-04-08T05:25:36 | 250,230,903 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 897 | h | flower.h | #pragma once
#include<iostream>
#include<string>
using namespace std;
class flower
{
public:
flower() { value = 2; FC_lv = 2; name = "黑桃"; }
flower(int v, int f, string n);
flower(int v, string n);
flower & operator=(const flower & object);//重载=运算符
friend bool operator>(const flower &, const flower&);//... |
61efc6afd2b807ab41b6144e2dab1eaa04de416e | 50d1cb24e17d956bbf59a426f2398ff7d78c844a | /SRC/memberwidget.cpp | 7a52d3b3706d493569a439dc8de24e67e8d2eeaa | [] | no_license | NEUbugmakers/shop_assistant | 0224195190a4da2577b923bb17e983ebffb2c3f1 | fdc02d50688aa38b879defab9dd1099a48af4f47 | refs/heads/master | 2023-06-18T19:36:31.781630 | 2021-07-18T08:56:40 | 2021-07-18T08:56:40 | 258,966,094 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,217 | cpp | memberwidget.cpp | #include "memberwidget.h"
#include "ui_memberwidget.h"
#include "memberadd.h"
#include "membersearch.h"
#include "membergood.h"
#include "memberchoose.h"
#include <QtDebug>
#include <QDialog>
MemberWidget::MemberWidget(int M_sum,struct Member* M_head,QWidget *parent ) :
QWidget(parent),
ui(new Ui::M... |
473fc42fe49ebabcbc91d6c96ece92c36b467c6a | 1e2b69476b2b174ac210ba525b197c621280a390 | /L1Trigger/TrackFindingTracklet/interface/HistImp.h | 78bef38736a31f0c953d5eb5b384cd924d0bf0ca | [
"Apache-2.0"
] | permissive | skinnari/cmssw | 640e5fe2f23a423ccb7afe82d43ea1b80a2603f0 | 62b49319e475fbcf14484d77814d47a552c61f63 | refs/heads/L1TK_CMSSW_11-1-0-pre4 | 2022-10-27T03:55:33.402157 | 2020-03-24T14:18:04 | 2020-03-24T14:18:04 | 11,660,178 | 2 | 3 | Apache-2.0 | 2020-03-24T14:16:54 | 2013-07-25T12:44:13 | C++ | UTF-8 | C++ | false | false | 13,110 | h | HistImp.h | #ifndef HISTIMP_H
#define HISTIMP_H
#include <TFile.h>
#include <TH1F.h>
#include <TEfficiency.h>
#include "HistBase.h"
using namespace std;
class HistImp:public HistBase{
public:
HistImp() {
h_file_ = 0;
h_layerresid_phi_L3_L1L2_=0;
h_layerresid_phi_L3_L1L2_match_=0;
h_layerresid_phif_L3_L1L2_=... |
7c0d3177b041623d77b8b5759f332bd3c0b4ce32 | 9aa63c85ff1a03ae9e3c10a598b6d870a37c7378 | /moneymaker.h | 9ab6da68c5cc22332b89da559f85a46e61889151 | [
"MIT"
] | permissive | cardiffman/moneymaker | 2ecf2ddb7e42fd74d62694428cda62e30ec3750c | 7802658c42567db53022a578af7bae6a9cda4eb7 | refs/heads/master | 2020-04-02T13:34:21.304303 | 2018-10-27T05:42:41 | 2018-10-27T05:42:41 | 154,487,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | h | moneymaker.h | #pragma once
#include <windows.h>
#include <list>
#include <string>
#include <iostream>
enum XType {
X_Spend, X_Deposit
};
inline std::string to_string(XType xt) {
switch (xt) {
case X_Spend: return "spend";
case X_Deposit: return "deposit";
}
return "_";
}
inline std::ostream& operator<<(std::ostream& os, XType... |
2b7373a7a92b7234efd4683f8068b2514df83115 | 862ebf7392fc2298678f46554189074ddd243b37 | /design-patterns/creational/prototype.cpp | d52d6e716dbcab5df95c07a970ae8be76894697e | [] | no_license | anilgathala/swdesign | a235dda27804d6a246952b805862739c23517746 | 328daf092e65c1e3df414ab9a8e12a7ae588f17f | refs/heads/master | 2020-03-29T03:47:03.836465 | 2018-12-16T22:56:44 | 2018-12-16T22:56:44 | 149,500,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,725 | cpp | prototype.cpp | // Prototype design pattern
// when an application needs to create a lot of instances with different preset configurations, it might help
// to create prototypes for each type and cache them. When app needs an instance,
// we can clone from the copy in prototype cache.
//
// -- application would want to create a lot of... |
d0d7822e8fdfbb380d3703a55b712ad35ac70f9f | 96f80f93bbf083b11b548c5f153f6e853003f1a7 | /VwInclude/VwEnumProc.h | 0e9b45421f11d96a870382d6e7a0aaa6d434f616 | [
"Apache-2.0"
] | permissive | fengjixuchui/VwFirewall | 2105fdd2d61eff64bff769b55076ee4e0a7af37c | 9db8d80a22a1605d034e1ade6bef7472df1a8682 | refs/heads/master | 2020-04-30T14:29:40.445164 | 2020-04-22T06:08:58 | 2020-04-22T06:08:58 | 176,892,269 | 0 | 0 | Apache-2.0 | 2020-04-22T06:08:59 | 2019-03-21T07:28:16 | C | GB18030 | C++ | false | false | 3,890 | h | VwEnumProc.h | // EnumProc.h: interface for the CVwEnumProc class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __ENUMPROC_HEADER__
#define __ENUMPROC_HEADER__
#pragma warning(disable : 4291)
#include "VwFunc.h"
/**
* define
*/
#define CONST_SPLIT_FLAG _T("|^_^|")
// 排序功能号
#define CONST_... |
2ffab657d76f46322f27ce048de10546f2056aed | 6680f8d317de48876d4176d443bfd580ec7a5aef | /Header/voreen/ppmacro.h | d7276ecb0400e2b7cc1891c4e04edd07d14cd030 | [] | no_license | AlirezaMojtabavi/misInteractiveSegmentation | 1b51b0babb0c6f9601330fafc5c15ca560d6af31 | 4630a8c614f6421042636a2adc47ed6b5d960a2b | refs/heads/master | 2020-12-10T11:09:19.345393 | 2020-03-04T11:34:26 | 2020-03-04T11:34:26 | 233,574,482 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,193 | h | ppmacro.h | /**********************************************************************
* *
* Voreen - The Volume Rendering Engine *
* *
* Copyright (C) 2005-2010 The V... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.