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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31b10eb8fd4b004b08a8efd2b6a42a7185a81825 | c5973a3828a751474ab922bf463cd51d9de3a2fc | /Map.h | bd031b46d3131385a3aef46e2e5f5f0dbb896c06 | [] | no_license | roquelopez/backtracking_search | 047d44f972d20cdb2c235f71037919313592bb8d | b3d17091d167e5b25bd0d065ba7f2c3d1d4421c5 | refs/heads/master | 2021-01-09T20:26:38.648721 | 2018-08-17T12:54:46 | 2018-08-17T12:54:46 | 63,014,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | h | Map.h | /*
* Map.h
*
* Created on: May 4, 2013
* Author: roque
*/
#ifndef MAP_H_
#define MAP_H_
#include "Region.h"
#include <cstdio>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
class Map {
vector<Region> regionList; //Lista das regiões.
vector<string> colors; //Lista com os core... |
8886ea7b65e92affe909adaf8e790b158f566813 | 95ec22f669f54524c9c66c38e5e9912c48ee00c7 | /source/chat/folder/element.h | af46c72a5bb18f1790f5f64bfe76e18f4c35b9b1 | [
"MIT"
] | permissive | scapix-com/example1 | 35f027f5029747a34a21745813852e8b030594b9 | 8ececb6512edb5c0eff35900925e7a2cd174bca5 | refs/heads/master | 2023-09-01T04:56:28.623536 | 2023-08-24T19:30:19 | 2023-08-24T19:30:19 | 177,970,405 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | element.h | /*
chat/folder/element.h
*/
#ifndef CHAT_FOLDER_ELEMENT_H
#define CHAT_FOLDER_ELEMENT_H
#include <chat/folder/abstract_element.h>
#include <chat/contact.h>
namespace chat::folder {
class element : public abstract_element
{
public:
std::vector<std::string> func1(std::vector<std::string> s) override { s.push_back... |
bd12a08751d97a5bef8bc968f76bda6480570793 | f47447e0e752a40fbdcfabc39d0e6bdaa4c7b0e5 | /osgTraits/Subtraction.h | a02ec4a8f613f107aa620b1378833993df396b0c | [] | no_license | lpberg/osgBoost | 68145e6fac7f4dbe56f8013735675b6f053ae84c | a2eec3490c3c28742df71a072c3f7f90251a30c4 | refs/heads/master | 2021-01-15T19:44:30.063021 | 2013-03-08T17:59:10 | 2013-03-08T17:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,632 | h | Subtraction.h | /** @file
@brief Header
@date 2012
@author
Ryan Pavlik
<rpavlik@iastate.edu> and <abiryan@ryand.net>
http://academic.cleardefinition.com/
Iowa State University Virtual Reality Applications Center
Human-Computer Interaction Graduate Program
*/
// Copyright Iowa State University 2012.
// Distributed u... |
13fbfb74c2dbe0bdff17de9dbdeff5c1e7e3e373 | bfe8cb3576ab78950a0a91b43876da0629fc6def | /17Graphs-1/temp.cpp | 7731bd7272c08fd0bf4a9ae00fbf8b57b58196da | [] | no_license | avinesh2101/coding-ninjas-competitive-part-3 | 832afe630463b0e7865337331d7d565df1dd3f06 | ee3cc6d3cdec59135b8390ce5fba2b2fea1dd11e | refs/heads/master | 2023-07-08T01:57:34.758497 | 2021-08-16T17:44:12 | 2021-08-16T17:44:12 | 358,331,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | temp.cpp | #include<bits/stdc++.h>
using namespace std;
void magic(int**edges_btw_verticies,int*visited,int start,int n)
{
cout<<start<<" ";
visited[start]=1;
for(int i=0;i<n;i++)
{
if(i==start)
{
continue;
}
if(edges_btw_verticies[start][i]==1)
{
if(... |
3ee35539d0f882f9b00f5ebfd60e0684df139641 | 83252aa52b2ec297a5ebe4bf4a9c0a68eb461c3f | /minimum-path-sum.cpp | 8f51fc1198d4a8227b543ceafa968f369cab2143 | [] | no_license | Kallaf/LeetCode | c399d22184412a931ecb0f3e741265abef628021 | 31ee8b66715505fdc4f2242aebc50a5c5071b382 | refs/heads/master | 2021-11-28T06:55:00.323453 | 2021-11-10T20:48:03 | 2021-11-10T20:48:03 | 192,792,659 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | minimum-path-sum.cpp | class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
if(grid.empty() || grid[0].empty())return 0;
int R = grid.size()-1,C = grid[0].size()-1;
for(int i=R-1;i>=0;i--)
grid[i][C] += grid[i+1][C];
for(int j=C-1;j>=0;j--)
grid[R][j] += grid[R][j+1]... |
b72c592b99ef9774104af11729046ef18d630f3e | 4246003f5f9f2e42f60cf91867fa794baf6cf977 | /main.hpp | b901217707cdf877f501e5ab961eafb425744078 | [] | no_license | CourtlandCrouchet/Vitamin-CAP | f5cbc4f861a6a56ec3acb6834cfdca451d926538 | a61e7d71b2a1d01ece89d93562153858ec92bcf8 | refs/heads/master | 2020-07-29T04:38:48.174673 | 2019-11-19T17:14:55 | 2019-11-19T17:14:55 | 209,672,524 | 1 | 1 | null | 2019-10-18T01:04:08 | 2019-09-20T00:34:51 | null | UTF-8 | C++ | false | false | 200 | hpp | main.hpp | /*
Author(s): Raphaela
Updated: 10/20/19
Description: Main program of the application
*/
#include <iostream>
#include "user.hpp"
void title();
void login();
void reg();
void listener();
void menu();
|
f40c76ee7e3bcdc54e8d73c62f7b005e36c4e7fe | a335057fbc9dc7637c1d7cf840a18d197ce5f0bf | /fastpath/messages/Message.cpp | df4deddac0070a8227f6766bf19af9c7c11869e0 | [] | no_license | wannabegeek/Fastpath | d6d78e0318a389720ceaa814c53c723e1a2866f3 | 8cc0c0c846deca7a7e693678c53995d37a868aac | refs/heads/master | 2021-06-01T01:07:37.627557 | 2016-06-15T08:33:43 | 2016-06-15T08:33:43 | 51,838,238 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,821 | cpp | Message.cpp | /***************************************************************************
__FILE__
-------------------
copyright : Copyright (c) 2004-2016 Tom Fewster
email : tom@wannabegeek.com
date : 04/03/2016
************... |
279ac123f6456a6c0b8c2f9a1c7dbb00fc1cfef6 | e0d1bd0f94f07d278118b0ba2ea77f42315a4f0c | /worker.h | 0eb58282ef740d995a54a92a9c13843680f1afa0 | [
"MIT"
] | permissive | mkinsz/rtspview | e3fce7e94968e706f3f806414f1e8c0323363474 | 6b1a8d17a4c66afb51f9ca250cb87f5615cdc8e8 | refs/heads/master | 2023-02-28T22:21:46.360816 | 2021-02-04T07:33:54 | 2021-02-04T07:33:54 | 278,048,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | worker.h | #ifndef WORKER_H
#define WORKER_H
#include <QString>
#include <mutex>
#include <thread>
#include <condition_variable>
class CFFmpeg;
class Worker
{
typedef enum {
INIT = 0,
PLAY,
STOP,
RELEASE
} WORK_STATE;
typedef enum {
IDLE = 0,
WORK,
QUIT
} ... |
5a9b60eae3481f1eaca0488cd90db8f93d42ace3 | 16271058f46a390750da48c340b315712c16ba35 | /src/node.h | 7fb645f057eedbf5c2ec421c98877afea6179532 | [
"MIT"
] | permissive | anqurvanillapy/knoscript | dc0aaed231955eee172c245a4bf923830201949e | 4df0e1a3d6c9d75d0676bfc22b224a9a2cc8801b | refs/heads/master | 2021-01-11T14:06:16.795127 | 2017-06-23T15:00:55 | 2017-06-23T15:00:55 | 94,965,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | h | node.h | #pragma once
#include "tokentypes.h"
namespace kno {
class node {
public:
explicit node(const token_type& t, unsigned p)
: ty_{t}, start_{p} { /* nop */ }
~node() = default;
// Default copy and move.
node(const node&) = default;
node& operator=(const node&) = default;
node(node&&) = ... |
5ead35d094cf2bae7205ada0c32f9adeb06b0620 | 15a586ca780042ace62cb5a7bd8c37695e5c1027 | /inc/KernelWriter_v2.h | 963b5fa95ec7e2dafd3e6ca476c7637747b343b2 | [] | no_license | feifei14119/TensileLite | 74e76c21f3a2c31c87ebab1f53647d840838bd65 | ee19f2b0af0d52520e8c6f276d1331d37658a3eb | refs/heads/master | 2021-01-05T16:47:35.298223 | 2020-08-31T02:07:02 | 2020-08-31T02:07:02 | 241,079,369 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,677 | h | KernelWriter_v2.h | /************************************************************************/
/* 这里定义的是依赖于问题配置的相关生成kernel的函数 */
/* 比如group size,传入参数列表等等 */
/* 因此只需要include ProblemControl.h */
/************************************************************************/
#pragma once
#include "IsaGenerater.h"
namespac... |
d4f4072a9db7deb8148fe097ff678a5dfc15bc37 | 0337c1df871a431c6a8b03ad871d396826d7e210 | /src/plugins/alsaout/AlsaOut.cpp | de4e2ef0b5192cd50492289c67782d641b1cb641 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | clangen/musikcube | be1ad8c1567c9e3cfbf71e1f595ede9aa0152a97 | 64485978ea2e4483499996a8e2304ce5566573d9 | refs/heads/master | 2023-08-28T00:52:06.905519 | 2023-08-02T02:47:41 | 2023-08-02T02:47:41 | 32,483,164 | 4,049 | 370 | BSD-3-Clause | 2023-09-08T05:05:44 | 2015-03-18T20:41:57 | C++ | UTF-8 | C++ | false | false | 15,495 | cpp | AlsaOut.cpp | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redist... |
bee4f421ce179681717fe8a112bfd83b676b6172 | d5a7db34f14c6d79b09bad6ee5e9c661d28aefb9 | /camera.h | fb535dfb17750b5543bcb52a3909cda48b56d29e | [] | no_license | alvarosamudio/deepin-camera | 29921a1d049949550ae2490c70334d49b4eefa3d | e348baea419fa512f09f08d1644d15efdbdcda38 | refs/heads/master | 2023-02-17T15:35:21.687854 | 2023-02-17T00:20:32 | 2023-02-17T00:20:32 | 262,725,812 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,026 | h | camera.h | #ifndef CAMERA_H
#define CAMERA_H
#include <QCamera>
#include <QCameraImageCapture>
#include <QMediaRecorder>
#include <QScopedPointer>
#include <QMainWindow>
#include <DApplication>
#include <DMainWindow>
#include <DWidgetUtil>
QT_BEGIN_NAMESPACE
namespace Ui { class Camera; }
QT_END_NAMESPACE
class Camera : publi... |
b682a624a4822d47201d3f554c49adb4451a374e | e8091f7b3b718e5bc643fe7b65496a68508eb8fa | /OGL_Application/src/Physics/physics.cpp | 9f5e8a01bc33ef93645fcb378b1131aa7ad974c5 | [] | no_license | AndreaLoforte/OGL_Application_20210909 | 45936a48345a946b7cba304aee0fd24e630e088f | 019ab1c9353c530cbde90f95b7718f59cfd196f3 | refs/heads/master | 2023-08-14T08:39:21.046301 | 2021-09-09T01:01:42 | 2021-09-09T01:01:42 | 268,587,882 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,541 | cpp | physics.cpp | #include<physics.h>
#include<applicationObjectManager.h>
#include<objectCollector.h>
#include<sound.h>
namespace myphysicsNS {
unsigned CollisorePolimorfo::frameContactCounter = 0;
CollisionData CollisorePolimorfo::cdata;
ContactResolver CollisorePolimorfo::resolver;
std::vector<myobjectNS::ApplicationObject*>... |
3f10fb3c6ee8f0c6bd40033fddcf71e542a497ff | b7218ad097099bceca840ba069f62ed1ef12863d | /apiwidget.h | 66bf1bad8ef71c116f476284c52088ad091cee86 | [] | no_license | Gonglja/translate | 631a034dd9a51e8f9c8d8ff8674a8c431b25a83b | cd04bcae1658e58cfcacc1f17da90b5ca2a7df2f | refs/heads/master | 2022-06-24T05:14:36.892681 | 2020-05-12T06:24:32 | 2020-05-12T06:24:32 | 263,248,339 | 9 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 716 | h | apiwidget.h | #ifndef APIWIDGET_H
#define APIWIDGET_H
#include <QWidget>
namespace Ui {
class APIWidget;
}
class APIWidget : public QWidget
{
Q_OBJECT
public:
explicit APIWidget(QWidget *parent = nullptr);
~APIWidget();
bool readConfig(int &status);
QString getAppid();
QString getKey();
QString getUrl... |
b027fc17dec513075daadd82da6ea797cb32c030 | 7de5fbe39b41f16e53f11cff56bc289c181a1442 | /Neurtal-network/video/util/common.h | a688845780520a379b33c648e41290e90ea87ebf | [] | no_license | xuetongWang/NVIDIA-tx2- | 89eac541fa5d18d625626d1260a98041d6fa180b | 9e03d056acfa558b61a16ecd6409ce1f496dfaec | refs/heads/master | 2020-04-24T14:46:56.922467 | 2019-09-27T06:41:07 | 2019-09-27T06:41:07 | 172,036,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,124 | h | common.h | #pragma once
#include <vector>
#include <assert.h>
#include <istream>
#include <iostream>
#include <experimental/filesystem>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include "../yolo/network/yolov3.h"
namespace fs = std::experimental::filesystem;
#define CHECK(status) ... |
5a74c21307c8f2e8441493f7362c24b53bed7881 | 7fb115f50fab6ca25243551ce42819215b60578d | /src/ChessBoard.cpp | 75806b7f0c6b8a0b191da91a0205b3ae2f41cdb0 | [] | no_license | Doxterpepper/DChess | 452063d5f2d8577e5ed4f63bdc22b197a57be509 | 6af61e3616e2dd620de16962aa9126fd55eaa999 | refs/heads/master | 2022-07-26T09:35:56.547198 | 2020-05-15T04:25:42 | 2020-05-15T04:25:42 | 264,093,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,364 | cpp | ChessBoard.cpp | #include "ChessBoard.h"
#include <assert.h>
namespace DChess {
/**
* Construct a new chessboard. Constructs an 8x8 board with white and black pieces.
*/
ChessBoard::ChessBoard() {
// Initialize black pieces.
board.push_back(new Piece(Rook, Black));
board.push_back(new Piece(Knight, Black));
b... |
adbf43592f9a5de595f31dd773b991ad63e2c372 | 09c5c4baed3d26701e866be100e4e52d9a34b856 | /StudyAlone/StudyAlone/BOJ/BOJ3954.h | 6286b14a6df316f845d55d33a928a3db81b93611 | [] | no_license | sangdo913/Algorithms | 556ac5fc789e35df2f65601e4439caca967edd7b | ee11265895d8ce3314f009df38166defc4b946c7 | refs/heads/master | 2022-09-11T12:00:58.615980 | 2022-07-31T11:11:04 | 2022-07-31T11:11:04 | 116,484,870 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,198 | h | BOJ3954.h | #include<iostream>
using namespace std;
unsigned char arr[100000];
unsigned char str[5000];
unsigned char comm[5000];
int p;
int sp;
int asize, csize, ssize;
int jump[100000];
int st[100000];
int main(){
freopen("0Text.txt", "r", stdin);
int cnt;
cin >> cnt;
while(cnt--){
int top = 0;
... |
83cb91c6ca2c838c80d7e4c10c825dd387ec5532 | bc04ac4221bd533da6497d1f80150cdd211a7921 | /test/Operation_or_test.h | 311a44f9115fe4ce9b0c1f34c094c25d52c08e0a | [] | no_license | WarlockD/Mil-std-1750A-Emulator-C20 | 71e8e357c81a36fe39c5b42a1f76fa13ffef130d | 93ed87966945351773107dc6cf3ad5fd50e9cdd4 | refs/heads/master | 2023-03-16T07:55:57.903908 | 2012-07-16T15:57:28 | 2012-07-16T15:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | Operation_or_test.h | #ifndef OPERATION_OR_TEST
#define OPERATION_OR_TEST
#include "AbstractTestOperation.h"
class Operation_or_test : public AbstractTestOperation
{
public:
Operation_or_test();
virtual ~Operation_or_test();
virtual bool testOperation() const;
protected:
bool test_orr() const;
bool test_orb() const;
bool test_o... |
e805beb1951590d638e62905de88306b7d901c11 | c2ac7e54b8a2f0087900740ca4ff04e7e027ecfb | /Lesson_7/HW/task2.cpp | be7179c6a22f97f1090cb7e9b226ca4bedc1358c | [] | no_license | XeniaRuban/CCourse | dd6f4736e8e98059ee98252dea03435d3e1e99bc | ac44d59848cb114c5afbb09db847c389a04ff92c | refs/heads/master | 2021-09-15T04:39:24.111837 | 2018-05-26T08:11:50 | 2018-05-26T08:11:50 | 104,557,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | task2.cpp | #include "stdafx.h"
#include <stdlib.h>
int main()
{
int *ptr_ad = NULL;
int *ptr_v;
int i = 0;
int N = 0;
scanf_s("%d", &N);
ptr_v = (int *)malloc(N * sizeof(int));
for (int i = 0; i < N; i++)
scanf_s("%d", (ptr_v + i));
for (int i = 0; i < N; i++)
printf("%d\n", *(ptr_v + i));
int max = 0;
for (int i... |
61c909d59c98d99f4f3ac5f22b8d74df91dd120f | 8d40333c5df9ea6d050a2690b0ed0c0eeb8a3edc | /LeetCode/66-Plus-One/plusone.cpp | 583cee091c9593076a93f5ef79e0dcc8780056a1 | [
"MIT"
] | permissive | maybeabhishek/CodingChallenges | 34be3e308dd750ba81f16307e61dd0b311b46e4a | 9b95bee1420cf1f817ec5e527089f98d44643e15 | refs/heads/master | 2020-12-07T19:24:01.395528 | 2020-10-18T16:20:28 | 2020-10-18T16:20:28 | 253,274,578 | 0 | 1 | MIT | 2020-10-18T16:20:29 | 2020-04-05T16:03:15 | C++ | UTF-8 | C++ | false | false | 595 | cpp | plusone.cpp | class Solution {
public:
vector<int> plusOne(vector<int>& digits) {
int n = digits.size();
int index = n-1;
int carry = 1;
while(true){
if(index == -1)
break;
digits[index] += carry;
if(digits[index] > 9){
digits[ind... |
c846b99abbb4eaa9f23546b5dcb183803c3fb206 | 0f0add5e2c721c7a3381de612093a41bae0c190d | /Study/Game/Tham khao/Rockman_ver4/Rockman_ver4/Device.h | 38204a276797d2cc0cdde4c51623a7aee2600126 | [] | no_license | phanybien/University | 9d5a8b0a8598823b6612e07980b820469223f7e1 | 409496c8c9feca3d8420d93d6a5d91ac583cb71a | refs/heads/master | 2023-06-11T17:39:13.619405 | 2021-01-08T06:01:58 | 2021-01-08T06:01:58 | 80,742,472 | 1 | 4 | null | 2023-05-31T18:17:29 | 2017-02-02T16:11:05 | C++ | UTF-8 | C++ | false | false | 429 | h | Device.h | #pragma once
#ifndef __CDEVICE_H__
#define __CDEVICE_H__
#include "Include.h"
#include "CGlobal.h"
#include "CSingleton.h"
class CDevice : public CSingleton<CDevice>
{
friend class CSingleton<CDevice>;
public:
static LPDIRECT3D9 s_d3d;
static LPDIRECT3DDEVICE9 s_d3ddv;
static LPDIRECT3DSURFACE9 s_backBuffer;
stati... |
a887519085e4aec7c28b8445621850cef7197c9e | 4897474cfe0fee9a9c1e98f3bc24b1d432eaa1ba | /crun/main.cpp | 29c678df22e2aa78c158ed101d6619388e1b93cd | [] | no_license | qazwsxedcrfvtg14/ck10227.website | 11ad90ce3a88b8724812d9875a62c2b94e7461c6 | 63240752184f7e0d8f67c4b29a7b9796f67e04dc | refs/heads/master | 2021-01-12T10:40:56.211267 | 2017-07-08T07:30:46 | 2017-07-08T07:30:46 | 72,604,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | main.cpp | #pragma GCC optimize ("O3")
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/hash_policy.hpp>
//#include<ext/pb_ds/priority_queue.hpp>
#include<ext/rope>
#pragma GCC optimize ("O3")
#define f first
#define s second
//#pragma GCC diagnostic error "-std=c++14"
using namespace std;
int ma... |
e9633d8c910a4306b2fe359541c9995ebccc9e98 | 38d4495215f682412ecea7184a00183f446a3eb3 | /plugins/robots/generators/generatorBase/src/rules/simpleRules/simpleVisitedOneZoneRule.cpp | f59c9eacfe0813171dd7b6424c9bf3b9b380d3d2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"CC-BY-4.0",
"GPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Victor-Y-Fadeev/qreal | 5e2e006e7f9bbe1fc84ee60324ddec693320c11b | c926e5640c96d74e45bc14fb83a2f57b5c535bae | refs/heads/iotik-v1-0 | 2020-12-03T03:41:58.006247 | 2020-04-16T18:14:28 | 2020-04-16T18:14:28 | 95,751,064 | 6 | 1 | Apache-2.0 | 2019-08-08T18:06:31 | 2017-06-29T07:33:42 | C++ | UTF-8 | C++ | false | false | 1,304 | cpp | simpleVisitedOneZoneRule.cpp | /* Copyright 2007-2015 QReal Research Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
7744c8c71b5f2dcd6de5bedb7ff2be6e4fdd3d48 | 0e13cc2353c1fd4ad5bfb9ca703f9557f93be51e | /src/node_libxml_xsd.cc | d44e55396f2bb5c76847ae1198203c90676568d4 | [] | no_license | freerider7777/libxmljs2-xsd | 8e2a364e1b041e2e139119a39c1e1f0eed4f01a6 | 4d00ab5505ac4e05e741261c9b3c588cda1a2d04 | refs/heads/master | 2023-08-06T12:23:20.005986 | 2021-09-03T15:27:43 | 2021-09-03T15:27:43 | 415,059,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,545 | cc | node_libxml_xsd.cc | #ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include <iostream>
#include <list>
#include <node.h>
#include <nan.h>
// includes from libxmljs
#include <xml_syntax_error.h>
#include <xml_document.h>
#include "./node_libxml_xsd.h"
#include "./schema.h"
#include "./xml_errors.h"
using names... |
38a5164562147a57fb2af677592107270e77b4cb | 8e443e8ed1f1b2cf757573dd5e6cac2c1bc8091a | /Tests/BasicSubSocket.cpp | 2a3044b164dec66746bebbc67eba41bab4bdf4fe | [] | no_license | zwells1/Networking | 65038cd6bbe8bfb132e1b3475e080087fc50c133 | e9cd7cd6e487da33f693c47dac99b14490842002 | refs/heads/master | 2023-04-23T07:52:16.995523 | 2021-05-13T01:46:06 | 2021-05-13T01:46:06 | 366,903,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | cpp | BasicSubSocket.cpp | #include <Zmq/SubSocket.hpp>
#include <zmq.hpp>
#include <iostream>
#include <stdexcept>
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void TestMessage(const std::string& MessageType, const std::string& Me... |
174b88e9ab62549cfb43da2a2136f9f0d4fbcbbc | 4efe4c7d278f75b4e2a8ae2c8dfb187a4d085e66 | /CS4240/project2/expression_node_dots.h | 9a53dce9981c1718a9ca218ec327c4fb3a25650c | [] | no_license | plotfi/GradSchoolCompilers | 2a6faf06162a33a1f51ddd1e8513e10fe017b1f2 | c7d379d749c11d51dcafebf6f92d71b59efeeda3 | refs/heads/main | 2023-07-30T18:38:07.767939 | 2021-09-25T17:49:23 | 2021-09-25T17:50:27 | 410,342,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 994 | h | expression_node_dots.h | #ifndef NODE_TYPE
#define NODE_TYPE "dots"
#endif
#ifndef EXPRESSION_NODE_DOTS_H
#define EXPRESSION_NODE_DOTS_H
#include "base_node.h"
#include "expression_node.h"
#include <list>
#include <iostream>
#include <fstream>
extern CSymbolTableNode globalSymbolTable;
using namespace std;
class CExpressionNodeDots : pu... |
eb017506ae67372f8991d3d9eaf8ae55c9a67806 | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/UVA/10371.cpp | 54bcc9428bd9426d631a3785eff8b426aa390501 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,613 | cpp | 10371.cpp | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
int main() {
map<string,int> TZ = {
{"UTC", 0},
{"GMT", 0},
{"BST", 60},
{"IST", 60},
{"WET", 0},
{"WEST", 60},
... |
7c9ce169afedda3ae677a91b602663af5607c285 | d695b5fac07f9cfd3886b12b1509f42f3a5e1083 | /Remove Nth Node From End of List.cpp | 861f4cf1002ce0b0244d19959a6128ee4bce1b8c | [] | no_license | mascure/LeetCode | 7dc78e37e11f743873cb89544b02cf7894c71859 | 1c14f04b5de3040d243eb11fbf8e56094b2c4f40 | refs/heads/master | 2021-01-01T16:45:05.018130 | 2014-10-08T14:49:39 | 2014-10-08T14:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | Remove Nth Node From End of List.cpp | #include<iostream>
#include<stdio.h>
#include<string>
#include<vector>
#include<stack>
#include<queue>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode *removeNthFromEnd(ListNode *head, int n) {
ListNode... |
dbccd21a770eac420353e26cf064678a660ab74d | 057a475216e9beed41983481aafcaf109bbf58da | /src/Coordination/FourLetterCommand.cpp | 1bec17f2050b9fd0937edd670c1f7c4b84f45d14 | [
"Apache-2.0"
] | permissive | ClickHouse/ClickHouse | fece5204263a5b4d693854b6039699265f1bb27f | 6649328db809d51a694c358571539bc5820464be | refs/heads/master | 2023-08-31T18:48:36.615225 | 2023-08-31T17:51:24 | 2023-08-31T17:51:24 | 60,246,359 | 23,878 | 5,449 | Apache-2.0 | 2023-09-14T20:10:52 | 2016-06-02T08:28:18 | C++ | UTF-8 | C++ | false | false | 18,228 | cpp | FourLetterCommand.cpp | #include <Coordination/FourLetterCommand.h>
#include <Coordination/KeeperDispatcher.h>
#include <Server/KeeperTCPHandler.h>
#include <Common/ZooKeeper/IKeeper.h>
#include <Common/logger_useful.h>
#include <Poco/Environment.h>
#include <Poco/Path.h>
#include <Common/getCurrentProcessFDCount.h>
#include <Common/getMaxFi... |
e4724da83a65aed8860f41579793dc3725287ac9 | 1f55f1d8d4c3ea0d7e53eac5be778ba0bfaab304 | /src/measurementsapp.cpp | 363e50456c7a89d52510dc702ac06cb71391129b | [] | no_license | petii/efop-signalproc | ea3d1b5caafb43f2c96b0c1bfdf8ce965404fb86 | 988dfd3a03e6a97a1ca47380e2dd8c877a9e0233 | refs/heads/master | 2020-03-21T09:09:44.118611 | 2018-08-26T23:36:45 | 2018-08-26T23:36:45 | 138,385,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,457 | cpp | measurementsapp.cpp | #include "measurementsapp.h"
#include <chrono>
#include <fstream>
#include <memory>
#include <random>
#include <thread>
#include "pacpphandler.h"
MeasurementsApp::MeasurementsApp(std::pair<int, int> range, int runs)
: range(range), runs(runs) {}
MeasurementsApp::~MeasurementsApp() {}
void MeasurementsApp::expor... |
79a3e5cc83bcaa49d61fb080d143ef6ea424cda5 | c70e26f24f4f1fafdeed78755c91afef3e15a0aa | /GucchiFrameWork/GucchiLibrary/Common/DeviceResources.cpp | 0f91ec11703216a9a2011b9603b517ee5f02f2d4 | [] | no_license | yutaHiguchi0204/GucchiFrameWork | a73625e31bfc98c4878c2fef8c81cc97c3e869e2 | c8a472153c98f43d01886b4638aa2331e9edeba3 | refs/heads/master | 2021-09-12T17:00:44.229399 | 2018-03-15T02:27:48 | 2018-03-15T02:27:48 | 105,857,321 | 4 | 0 | null | 2018-03-15T02:27:49 | 2017-10-05T06:39:03 | C++ | SHIFT_JIS | C++ | false | false | 16,246 | cpp | DeviceResources.cpp | /* =====================================================================
//! @param 「DeviceResources」ソース
//! @create 樋口 裕太
//! @date 17/10/09
===================================================================== */
// ヘッダファイルのインクルード
#include "DeviceResources.h"
#include "Constant.h"
// 名前空間
using namespace DirectX... |
588f25153928661f4368f69c4e781988efb1b682 | 480e33f95eec2e471c563d4c0661784c92396368 | /CondTools/SiPixel/test/SiPixelFakeGenErrorDBSourceReader.h | 3f2cac8e79c276dd076532103a3071f84ecffabc | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | C++ | false | false | 935 | h | SiPixelFakeGenErrorDBSourceReader.h | #ifndef CondTools_SiPixel_SiPixelFakeGenErrorDBSourceReader_h
#define CondTools_SiPixel_SiPixelFakeGenErrorDBSourceReader_h
#include <memory>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESWatcher.h"
#include "FWCore/Fram... |
72b5196642fb59f19eaabeffd1c865fb9a4a8c85 | 7d4bb64b31f06e4a22f63c5944297c52d12285d6 | /Competitive-Coding-Algorithms/Number Theory/primality.cpp | 3aebf3cae36682bd84697f2bb50e8fcc08c1e2ff | [] | no_license | 927tanmay/Coding-DSA | 17e6eff710859d2f17f35e45883605c721f374f9 | e173fbe64fbf39c11a4d32cda6f8f663757b5cb7 | refs/heads/master | 2023-01-12T15:55:06.984519 | 2020-10-31T16:10:36 | 2020-10-31T16:10:36 | 305,500,210 | 1 | 2 | null | 2020-10-31T16:10:37 | 2020-10-19T20:04:28 | C++ | UTF-8 | C++ | false | false | 576 | cpp | primality.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
int main()
{
int t;
cin >> t;
while (t--)
{
int n, flag = 0;
cin >> n;
if (n == 1)
{
cout << "no" << endl;
continue;
}
for (int i = 2; i*i <= n; ... |
02f5a6583038f8bd80f019446d4e94b5b581dd7e | 896dbaed5100c9adada8db6abb24c648cb1254da | /src/modules/dmxconsumer.h | 03b2784b0e96ac1655295566a3dbece1d10d4fa4 | [] | no_license | autoantwort/Lichtsteuerung | 7fdd8a98718db50a4fea02973aac8c063422a259 | ee1f494bec5617229b72cb49aec3083f87fce164 | refs/heads/master | 2023-08-27T15:07:48.925720 | 2023-07-14T00:32:18 | 2023-07-14T00:32:18 | 222,066,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | h | dmxconsumer.h | #ifndef DMXCONSUMER_H
#define DMXCONSUMER_H
#include "consumer.hpp"
#include "idbase.h"
#include <vector>
namespace Modules {
/**
* @brief Der DMXConsumer macht es möglich, in Moduleprogrammen dmx channel anzusprechen. Diese Daten werden dann in driver.cpp hier abgeholt und vom alten treiber angezeigt
*/
class DMX... |
f7c609fd42f6353c741fab34f3e5d4aa5f8377d4 | a7cfc322cc5cf13c0db2e8b5d9aa9794b498b83c | /MatrixSetup.cpp | 951eecca251db41e3c38fc70a362b288cd90acc9 | [] | no_license | kocherzhenko/KMM_spectra | 6829d62a6f68f2f6fa070169cceb5f8c12ced25a | d567c9ec471fac169a466e57fe5cf0ee9f5ea9c3 | refs/heads/master | 2022-08-04T02:56:51.822069 | 2020-05-21T18:12:29 | 2020-05-21T18:12:29 | 265,917,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,659 | cpp | MatrixSetup.cpp | // Setup of the Input Matrix for Linear Equation Solver - (c) Aleksey Kocherzhenko, 2012
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "Initialize.h"
#include "Common.h"
#include "Setup.h"
#define DEL 1.e-8
FILE *fp;
// Calculate elements of A matrix (l.h.s. of Eq. (14B))
complex_t getLHS(doubl... |
76a50786788f314edf90ed05fcff67a87c4fc792 | 18acff2d48798aaf04f2771032c8d899b7957b76 | /Chapter06/ex.06.02.cpp | 18087aef13f19dd4b8f2762fcfd4e6423b68dde0 | [] | no_license | lubo3751/CppPrimerPlus | 67f0d99c2b4507b7633cca503d3ae920427166bf | 8041d17f3179e80da120222ece45de332303b4c0 | refs/heads/master | 2022-12-10T00:37:24.390821 | 2017-06-23T11:15:47 | 2017-06-23T11:15:47 | 87,181,332 | 6 | 2 | null | 2023-01-14T22:15:27 | 2017-04-04T12:00:20 | C++ | UTF-8 | C++ | false | false | 1,575 | cpp | ex.06.02.cpp | /* ex.06.02.cpp
Write a program that reads up to 10 donation values into an array of
double. (Or, if you prefer, use an array template object.) The program
should terminate input on non-numeric input. It should report the
average of the numbers and also report how many numbers in the array
are larger than the avera... |
01b2ee663f6094e8107dc5317ff4b6af9f700d6d | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.moving/1.07/p | 44da6b59582dd919a28ef2e38e04f5ee65fa8c40 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,982 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
b3185a1e8e35fa02ce4ec9384615f94a035c79c4 | bcb2c17303c407ac811db8e3fa41eb10e1965454 | /src/components/GuiGameList.cpp | 50afbfcd970ece2c889c5cefab7864ceb9b91cf5 | [] | no_license | jefflunt/glint-ui | d57314e6c1f3a7a1071da5a03ce2b0a9ad54a391 | dc81661f2a6e95f3ef3ca47cb6be04b4f5077a96 | refs/heads/master | 2016-09-05T16:47:11.368899 | 2013-01-06T07:10:54 | 2013-01-06T07:10:54 | 7,474,806 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,009 | cpp | GuiGameList.cpp | #include "GuiGameList.h"
#include "../InputManager.h"
#include <iostream>
#include "GuiMenu.h"
#include "GuiFastSelect.h"
#include <boost/filesystem.hpp>
//this is just a default value; the true value is in mTheme->getListOffsetX();
const float GuiGameList::sInfoWidth = 0.5;
GuiGameList::GuiGameList(bool useDetail)
... |
cde967920321b4a3d6f91cdf76d4b50a6147420e | b3a265e1e85b32036c152fb11ef0d9f3bb9a3bd3 | /src/VMS.h | b6331e7000e28eb014a20dc024ad49d1c342ca7a | [
"MIT"
] | permissive | Hengle/NarvalEngine | 066a03729dad7bbf5e186876a03ad422c7fe4e1d | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | refs/heads/master | 2023-07-28T01:55:16.152883 | 2021-09-15T18:00:31 | 2021-09-15T18:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,163 | h | VMS.h | #pragma once
#include "core/Renderer.h"
#include "core/Settings.h"
#include "primitives/InstancedModel.h"
#include "core/VolumeBSDF.h"
#include "core/Camera.h"
namespace narvalengine {
//VMS = Volumetric Methods Shaders
class VMS {
public:
//Others
RendererContext *renderCtx;
Scene* scene;
float dummyVar[3]... |
9e191294c65a657cd2f43eaf838b6085d7028196 | 97bb7da626def8ad206be815c64348778f550d38 | /166.fraction_to_recurring_decimal/FractionToRecurringDecimal.cpp | 17be476433af7af4aac8e7fef64f54eea032041c | [] | no_license | songkey7/leetcode | c242daafe33cc6035461fc2f3e751489d8b2551e | 2f72c821bd0551313813c9b745ddf5207e1cb71c | refs/heads/master | 2021-05-14T09:50:35.570822 | 2020-04-10T01:20:11 | 2020-04-10T01:20:11 | 116,336,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,660 | cpp | FractionToRecurringDecimal.cpp | //
// Created by Qi Song on 05/04/2018.
//
#include "FractionToRecurringDecimal.h"
string FractionToRecurringDecimal::fraction_to_decimal(int numerator, int denominator) {
if(numerator == 0) return "0";
unordered_map<int, int> numerator_map;
bool flag = (numerator < 0) ^ (denominator < 0);
string ret ... |
cb66b0862ee2c1d169753d455eb44168969e9e21 | 67427bcdc72211ff1d084c057879fe7468e0edb6 | /testdirectory/haberlik_hwprog4/globals.cc | 7379cb41eeb4da6cd090d7825f6f1e598fcfa290 | [] | no_license | haberlinkate/Interpreter | 300a47ee1ffa0ea3a2fb9099e124af2b6dcc712b | 58296e953a06ee1c8dc785733f4aafa33d0fa9ea | refs/heads/master | 2021-01-24T09:49:32.249608 | 2018-03-01T15:04:16 | 2018-03-01T15:04:16 | 123,027,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,566 | cc | globals.cc | #include "globals.h"
/****************************************************************
* Code file for the 'Globals' class for global constants and
* functions.
*
* Documentation for the functions is in the header for those
* functions.
*
* Author/copyright: Duncan Buell
* Used with permission and modified by... |
d89024902f1806a7eac2c313ca1d42628d46d29b | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/libwebrtc/video/end_to_end_tests/ssrc_tests.cc | 268da84b7e0924f552c376b4fec18682eee25f7c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,280 | cc | ssrc_tests.cc | /
*
*
Copyright
2018
The
WebRTC
project
authors
.
All
Rights
Reserved
.
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
*
that
can
be
found
in
the
LICENSE
file
in
the
root
of
the
source
*
tree
.
An
additional
intellectual
property
rights
grant
can
be
found
*
in
the
file
PATENTS
.
All
contributing
proje... |
a1b639cd4533ed26c2526f671e28e23c37a73064 | 416108a9e20635b36f8e82de4ea3aaed00d9a3e7 | /leetcode/0001 - Two Sum.cpp | d6cfa609545146ec0e52a853ea7ba5ad0f267934 | [] | no_license | annoviko/sandbox | b2cfb11ce24bb477a188e1cc5f71a92835ff1b91 | bc9d89f4b37984ffa052a252639e6535fb88a308 | refs/heads/master | 2023-08-30T23:43:12.940520 | 2023-08-19T11:20:10 | 2023-08-19T11:20:10 | 72,368,789 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | 0001 - Two Sum.cpp | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
std::unordered_map<int, std::size_t> addition;
for (std::size_t i = 0; i < nums.size() - 1; i++) {
int difference = target - nums[i];
auto iter_addition = addition.find(difference);
... |
16a17130434a33877c43ac23515e8fa80e5ce470 | e8b55a9afe3118fa0e84dc061582d698c686632d | /mainwindow.h | bec868cc215f6028b75a8ce77f3d45cbd7773662 | [] | no_license | SamVadidar/QT_CCOR_NORMAL | 152403f905bd0bd2d44f4e68c3411e5dacac6788 | a04d0b17015999a57dfb5b256c2acb47823be270 | refs/heads/master | 2020-04-15T13:03:30.310481 | 2019-01-17T09:05:28 | 2019-01-17T09:05:28 | 164,699,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgcodecs.hpp>
#include <QTimer>
#include <iostream>
#include <opencv2/face.hpp>
#define COLOR cv::Scalar(255, 255, 255)
namespace Ui {
class ... |
bdc3394ed75dbf291f1d835347808c47a7de7492 | a0604bbb76abbb42cf83e99f673134c80397b92b | /fldserver/base/containers/checked_range.h | 1f7abd1afe369f855ab7dddaa02a2bb9a09f147a | [
"BSD-3-Clause"
] | permissive | Hussam-Turjman/FLDServer | 816910da39b6780cfd540fa1e79c84a03c57a488 | ccc6e98d105cfffbf44bfd0a49ee5dcaf47e9ddb | refs/heads/master | 2022-07-29T20:59:28.954301 | 2022-07-03T12:02:42 | 2022-07-03T12:02:42 | 461,034,667 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,236 | h | checked_range.h | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_CONTAINERS_CHECKED_RANGE_H_
#define BASE_CONTAINERS_CHECKED_RANGE_H_
#include "fldserver/base/containers/checked_iterators.h"
#include "flds... |
ced28b3351b676218c35521a3913306baf3f65ea | b1544145744f9443a609d219a25ec58b5ad9898a | /Sims/graphics/hw/vertex_array.cpp | 8b8736b053419b1387dd61b47d42ea537e1a8b26 | [] | no_license | mi2think/Sims | 082ddb2b2f3f14ca7917e846c8bcfb237c3b8bca | 38670724c2bea6723b13949537f0108a384435ea | refs/heads/master | 2021-01-11T19:35:26.705960 | 2020-11-22T15:26:09 | 2020-11-22T15:26:09 | 66,848,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | vertex_array.cpp | /********************************************************************
created: 2018/01/08
created: 8:1:2018 11:28
filename: D:\Code\Sims\Sims\graphics\hw\vertex_array.cpp
file path: D:\Code\Sims\Sims\graphics\hw
file base: vertex_array
file ext: cpp
author: mi2think@gmail.com
purpose: Vertex Array
*******... |
032d556da1825febff50e73faecdfefb7f1d2853 | 3a5a2affe19853dd5089dc51e35cc974a80eb052 | /Project4/main.cpp | 7d3e2c3c0889545ce189b966d07f9f725430c2b6 | [] | no_license | LiYingwei/CGpj | 35c1a6393b5a795fdde40dc063cb62fabf495f36 | 6a7b6e626ded536d4a07ce519c284b234ee922f0 | refs/heads/master | 2021-08-31T11:23:41.323485 | 2017-12-20T07:31:15 | 2017-12-20T07:31:15 | 114,448,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,413 | cpp | main.cpp | #ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <vector>
std::vector<std::pair<int,int>> mouseList;
int window_width = 320;
int window_height = 320;
typedef unsigned long DWORD;
typedef unsigned short WORD;
typedef unsigned char BYTE;
#define EDGE_TABLE_SIZE 1025
#define RGB(r,g... |
ae2766c1bc9e96ce870fb2fe3e493593a873042c | dbcae238751b9a1e906b6418b58ebe315aa27149 | /programmer_view/floating_point/src/activations.cc | 63ba94371a2f5acc8f4e6c589c851d64ea2806db | [] | no_license | WenqiJiang/Real-Time-FPGA-Accelerator-for-Robotic-Snakes | aca4252771a021ee63377e73bdeb40ab1d7a7afa | 5ed1f0f307a10b61786a41e27e1eab809d89a7f7 | refs/heads/master | 2020-06-08T18:01:35.482203 | 2019-07-24T19:19:14 | 2019-07-24T19:19:14 | 193,278,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,335 | cc | activations.cc | #include "activations.h"
#include <cmath>
#include "constants.h"
#include "types.h"
template <const int lstm_state_size>
void relu(FDATA_T* input_feature_map, FDATA_T* output_feature_map) {
// for fixed length array (LSTM_SIZE), input and output can be the SAME array
for (LDATA_T result_idx = 0; result_idx < ls... |
9e62aaa9186b2d0b18b7d7daad58c6142c457593 | a7d08a1037c48bfa40d8687edde7b49f4e326def | /DesignPattern/05Adapter/Adaptee.cpp | 290d23652789736336955ce2cdac9ff67d0bf165 | [] | no_license | bigflyboy/GDesignPatterns | 2dcc65c335491511688b9ce0b726bcb9e46fb679 | 2f02e252bffccb28be32737c410db1aa3fd8b77e | refs/heads/master | 2021-01-23T06:16:02.825246 | 2017-04-07T02:55:10 | 2017-04-07T02:55:10 | 86,350,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | Adaptee.cpp | //
// Adaptee.cpp
// DesignPattern
//
// Created by 王志远 on 2017/3/30.
// Copyright © 2017年 王志远. All rights reserved.
//
#include "Adaptee.hpp"
Adaptee::Adaptee(){
}
Adaptee::~Adaptee(){
}
void Adaptee::specificRequest(){
cout << "specificRequest()|this is real Request from Adaptee!" << endl;
}
|
a8e71174d18fac85c417641fdac44eb3991a59a7 | adf253ebc9c3bb326a727d87ba2e071ded76d608 | /wallet/qt/ui_addressbookpage.h | 33a870593223d677bde5f1d73b93c575d142171a | [
"MIT"
] | permissive | NeblioTeam/neblio | 5e0da815df7f1d69d04090fe5e7fed2445962dce | cebf9fcb1fb4e9935fcfdf459d5185488a2c04e5 | refs/heads/master | 2023-05-01T20:35:36.266611 | 2023-03-02T07:31:07 | 2023-03-02T07:31:07 | 98,357,215 | 143 | 71 | MIT | 2023-04-19T10:07:40 | 2017-07-25T23:06:34 | C++ | UTF-8 | C++ | false | false | 7,805 | h | ui_addressbookpage.h | /********************************************************************************
** Form generated from reading UI file 'addressbookpage.ui'
**
** Created by: Qt User Interface Compiler version 5.7.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***********************************... |
fba7e53b9fecef4d9cd1aca45fcc748336a4a1aa | 2d2102a4611ab46eaae200cbab0ed24812d37cd2 | /tokens.h | 87217c1fcd1e5a27c46ea432c797563b2fb3eed7 | [
"MIT"
] | permissive | jackprogramsjp/CPP-Simple-Math-Interpreter-V2 | 8e98acf0389525285a3236909de0f459702763cc | c7033e614686408690d8f47937229a6f84019005 | refs/heads/main | 2023-02-07T07:17:09.783476 | 2020-12-23T04:03:55 | 2020-12-23T04:03:55 | 323,795,438 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 758 | h | tokens.h | #ifndef TOKENS_H
#define TOKENS_H
#include <string>
#include <vector>
namespace Math_Interpreter {
enum class TokenType {
NUMBER,
PLUS,
MINUS,
MULTIPLY,
DIVIDE,
LPAREN,
RPAREN,
EOF_
};
class Token {
public:
TokenType type;
double value;
Token(TokenType type) : type(type)... |
d3461b14e23fae95c11e1ae2a889d2fee812fed1 | 215111e92a3dfc535ce1c1ce25a35fb6003ab575 | /cf/contest_educacional_UFMG_1/a.cpp | 76055e372bf685694d641664d7615e01d0a3b01e | [] | no_license | emanueljuliano/Competitive_Programming | 6e65aa696fb2bb0e2251e5a68657f4c79cd8f803 | 86fefe4d0e3ee09b5766acddc8c78ed8b60402d6 | refs/heads/master | 2023-06-23T04:52:43.910062 | 2021-06-26T11:34:42 | 2021-06-26T11:34:42 | 299,115,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;
int main(){ _
ll n, m, k, l; ... |
1463830bca39db98679df9c1aeb38d3a02da4aff | 5861fc92691252420ceb41577c62870e1c23f9d3 | /chess/main.cpp | 7f9be7c33c84624079208112df67b7886ea800e2 | [] | no_license | JammyL/Chess | 0eacdf397f7ff4675c6b4b52aa0cfa3fc42814be | 1cc9076e218f66e43e19951638313c28d563bb81 | refs/heads/master | 2020-07-12T10:26:55.873758 | 2019-10-01T14:40:32 | 2019-10-01T14:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,972 | cpp | main.cpp | #include <stdio.h>
#include <iostream>
#include <iterator>
#include <string>
#include <regex>
#include "game/game.h"
bool turn(string s, game* g) {
bool valid_input = 1;
bool move_success = 0;
square* x[2];
string arr[3];
int square_length[2];
int square_height[2];
regex word_regex("(\\S+)");
aut... |
b081d91e00cc463e123090a41f29e13d259b410c | 78549596df6dea622a4a815f6568f97970b69118 | /SDEngine/Source/3DShader.h | 24a6835c77a466e2babfa87c836d4acd603ec405 | [] | no_license | OscarGame/SDEngine | c9cf79e01ecbd0b953b8a2849d606c69c6f66cf2 | 4f17916c291f5ee24c919ca888309374b89f1d2f | refs/heads/master | 2020-03-27T00:28:17.952199 | 2018-08-11T15:50:15 | 2018-08-11T15:50:15 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 871 | h | 3DShader.h | #ifndef _SHADER_H
#define _SHADER_H
#include "CoreMini.h"
#include"Camera.h"
using namespace std;
using namespace DirectX;
class Shader_3D
{
private:
ID3D11VertexShader* m_pVertexShader;
ID3D11PixelShader* m_pPixelShader;
ID3D11InputLayout* m_pInputLayout;
ID3D11Buffer* m_pCBCommon;
ID3D11SamplerState *m_pWr... |
d3d16ccbef9a508d96499a5db01796023df87307 | b46f65355d9a79e8d7ea7bd473a7d559ee601a1b | /src/aggregators/pr/captcha_solver.hpp | 5e4044b16ccbe0bb24e19c6b95ab65c3a87d656d | [] | no_license | ekuiter/bsdl | 8c50eba05f43a789fc58c2e92aa3cd0a6d62d52b | 1f9d9cf5f1f55dab3480023456e244001a6a9eae | refs/heads/master | 2020-04-05T15:16:29.337225 | 2018-10-16T19:40:46 | 2018-10-16T19:40:46 | 68,543,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | hpp | captcha_solver.hpp | #pragma once
#include <iostream>
#include "../../app.hpp"
#include "../../settings.hpp"
#include "../../util/platform.hpp"
#include "exception.hpp"
using namespace std;
namespace aggregators {
namespace pr {
class captcha_solver {
chrono::seconds sleep_duration;
captc... |
c67160678dd12359663b372f060b9d5c505237ae | 04d9aaf7e635dbb46de2ed20b1e97dcdc85995f2 | /D-Squared-Engine/source/Test.Library.Shared/XmlParseHelperScopeTest.cpp | d6638f66099490d2fb2f1acc4b423f29ab64e129 | [
"MIT"
] | permissive | stropheum/D-Squared-Engine | 0b3847edb416d233804d5900ba1af22b19930ac1 | 4e607f7cd6f5e7ffd9dc5207dc2b29ad6c4fa5b1 | refs/heads/master | 2022-04-19T19:58:29.697027 | 2019-06-12T03:43:07 | 2019-06-12T03:43:07 | 78,654,249 | 3 | 0 | null | 2017-09-30T18:39:26 | 2017-01-11T15:53:32 | C++ | UTF-8 | C++ | false | false | 6,819 | cpp | XmlParseHelperScopeTest.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include "LeakDetector.h"
#include "XmlParseMaster.h"
#include "TestSharedData.h"
#include "XmlParseHelperScope.h"
#include "SharedDataScope.h"
#include "Scope.h"
#include "Datum.h"
#include <glm/detail/type_vec4.hpp>
#include <glm/mat4x4.hpp>
using namespace Microsoft::Visua... |
241372f7bc2840a0172ac21475322e0fb48685fb | d64f95e2f1a676db5a975517a16932ef48e3c5b8 | /main.cpp | 355913a1886241eee06fac0bbc6217e7c0b224d9 | [] | no_license | shrechatterjee/OceanFoamImageProcessing | 8770e422f056f49f309b24c2fd4f432390d29f2d | 9b494fbdb9cbdee2d5c9d5bf85a5554bde9916e1 | refs/heads/master | 2020-03-15T11:38:39.598889 | 2018-05-04T10:29:28 | 2018-05-04T10:29:28 | 132,124,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,994 | cpp | main.cpp | /* skc105@ecs.soton.ac.uk */
#include <iostream>
#include <fstream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <string>
#include <cmath>
#include "img_proc.h"
#include "opdata.h"
#ifdef _WIN32
#inc... |
41d34766c2168b9201e0bb3e914d753070714cc8 | efd80acbef5552e2c01417457bba0c0a5aacb607 | /AtCoder_PastProblems/ABC_013/D.cpp | e2f2b8a7296bd4120c98a7954c9eadfd7cceee59 | [] | no_license | skyto0927/Programming-Contest | 4e590a1f17ba61f58af91932f52bedeeff8039e8 | 5966bd843d9dec032e5b6ff20206d54c9cbf8b14 | refs/heads/master | 2021-06-04T05:02:58.491853 | 2020-10-06T21:55:14 | 2020-10-06T21:55:14 | 135,557,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,017 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF 1e9
#define LINF 1e18
typedef long long ll;
int main() {
int N,M,D; cin... |
8b7c3a8ebfdf3f5e849158b996d04d5dfaeb0769 | 56f51614d678470c44114d822ac2e307c7551446 | /VideoPlayerEngine/subtitlerenderer.h | 76c6bbce982e721a2afcc68a04b1ab36e33d587a | [] | no_license | makrattaur/ogldesktop | b68381cc3d4141568cf765e49338ed935fa857ed | 30a14b25b81f6935f992a293bcbf6d92563bdcb9 | refs/heads/master | 2021-01-20T13:49:55.276421 | 2014-11-07T01:41:23 | 2014-11-07T01:41:23 | 26,298,728 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | h | subtitlerenderer.h | #ifndef H_SUBTITLERENDERER
#define H_SUBTITLERENDERER
extern "C"
{
#include <libavformat/avformat.h>
}
#include <SFML/Graphics/Font.hpp>
#include "isubtitlequeue.h"
#include <threadsafequeue.h>
#include "textrenderer.h"
class IClockSource;
class SubtitleRenderer : public ISubtitleQueue
{
public:
SubtitleRenderer... |
be69a40021cc490df5cf9495cdc2165bdcfe4ab1 | ec36770c86b536f11969b9b2e9a8cdf969e3708c | /LeetCode67.cpp | 445edef87512360acc5af07319f77ed4a1f44661 | [] | no_license | siluhuayu/LeetCode | 0b93013bb724cf62b04c1932a1128428f1f4589f | b84861317f71166762990fe88e4267f3272ad8e9 | refs/heads/main | 2023-03-11T11:31:28.626787 | 2021-03-02T12:00:15 | 2021-03-02T12:00:15 | 333,050,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 930 | cpp | LeetCode67.cpp | #include<iostream>
#include<string>
using namespace std;
string addBinary(string a, string b){
int lena = a.size(),lenb = b.size();
int res[100000] = {0};
string mul_res;
int min_len = min(lena,lenb);
for(int i = 0; i < min_len; ++i)
res[i] = a[lena-1-i] - 48 + b[lenb-1-i] - 48;
if(min_len < lena){
... |
509aa0f7e146126af4015212099785181e9bfc92 | 28c651deb42b7e1d5b0a73b923ae5f35a8bcd506 | /FordFulkersonAlgorithm/BreadthFirstSearch.cpp | 15e1916a2346cba2da617e93cf7bc36acb53d1b8 | [] | no_license | myyychal/AdvancedAlgorithms | 8c56bfddda9c2b1c885d9a08cd0376eb07de543d | 79945b3a241ad345b527abbb6597076ed28cb91e | refs/heads/master | 2021-01-15T10:47:18.486194 | 2014-12-31T08:39:29 | 2014-12-31T08:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | BreadthFirstSearch.cpp | #include "BreadthFirstSearch.h"
bool BreadthFirstSearch::isPath(float **graph, int length, int start, int dest, bool visited[], std::vector<int>& path) {
std::queue<float> queue;
queue.push(start);
visited[start] = true;
int parent[length];
parent[start] = -1;
while (!queue.empty()){
in... |
9bd5c88ad8a74921c2b79c0dc254408958efe8b2 | 1eb8fa36c7c2367beb73f9bfc2f2a1b5edefb9c0 | /MyRobotWar/MyRobotWar/Model/RobotData.cpp | 1c8d8059cb666e6ff4d9d4c8772004c22fa4cf65 | [] | no_license | hgs-19-2/RobotWar | 3e03e106b04c64a08aaad74798940cfbd1b7c28f | c5d3b947a9e6f5f3353c72bd8d9071c6767a5464 | refs/heads/master | 2020-06-17T15:20:11.144244 | 2019-09-15T15:09:49 | 2019-09-15T15:09:49 | 195,961,789 | 0 | 0 | null | 2019-07-12T18:00:13 | 2019-07-09T08:02:32 | C++ | UTF-8 | C++ | false | false | 1,214 | cpp | RobotData.cpp | #include"Model.h"
//#include"RobotData.h"
//#include<string>
Robotdata::Robotdata(string na, int mhp, int nhp, int range, int sp, int de) {
//strcpy(name, na);
name = na;
maxhp = nhp;
nowhp = nhp;
moverange = range;
canmove = range;
speed = sp;
defense = de;
}
int Robotdata::changehp(int change... |
83774994b18cd6bb795d07e68c674a4071d6865f | b1b71db27033ecfd18f077128b3883c5b366ccd8 | /src/kickClass.h | 96994ed134c37330548b403fff81359cb055b418 | [] | no_license | janisso/smart_move | 3692203684844efb751b08209a3a00f288df48b4 | 93122439b9d09ced5767ddd9b3e25a5c089e30c2 | refs/heads/master | 2021-05-02T17:37:46.451371 | 2018-04-07T17:26:09 | 2018-04-07T17:26:09 | 120,647,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,260 | h | kickClass.h | //
// kickClass.h
// receiveSensors
//
// Created by Janis on 07/02/2018.
//
//
#ifndef __receiveSensors__kickClass__
#define __receiveSensors__kickClass__
//#include <stdio.h>
#include "ofMain.h"
#include "features.h"
class kickClass{
public:
void setup();
void update(double ElapsedTime_, float a_x_, flo... |
1b5bc9a069318c1a7938372630886282b2dbed28 | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /eolimp/page27/q2619/Main.cpp | c462ba7d1f9960b7a332275f7b58a7c3b97e9e1f | [
"WTFPL"
] | permissive | gauravsingh58/algo | cdbf68e28019ba7c3e4832e373d32c71902c9c0d | 397859a53429e7a585e5f6964ad24146c6261326 | refs/heads/master | 2022-12-28T01:08:32.333111 | 2020-09-30T19:37:53 | 2020-09-30T19:37:53 | 300,037,652 | 1 | 1 | WTFPL | 2020-10-15T09:26:32 | 2020-09-30T19:29:29 | Java | UTF-8 | C++ | false | false | 453 | cpp | Main.cpp | #include <cstdio>
int main() {
int n, ns[1000000], sum1 = 0, sum2 = 0;
scanf("%d", &n);
for(int i=0; i<n; i++) {
scanf("%d", &ns[i]);
sum1 += ns[i];
}
if(sum1%2 == 0) {
for(int i=0; i<n; i++) {
sum1 -= ns[i];
sum2 += ns[i];
if(sum1 == sum2) {
printf("%d\n", i+1);
... |
488147b0a521411edcc9f368df76f7109580be7c | 965d5c861dd321c5414bf6b1cc708dc08fad7c40 | /cs488-proj/material.cpp | 11af8f8d595d9347f45f7445f5ec9459051f39d9 | [] | no_license | franklixuefei/cs488-project | 480762f96fccc0664ec79827fb4d0d0a993b20f1 | 6aa637252217b0873869ed90b23bb229bffc527e | refs/heads/master | 2020-06-03T21:57:31.608619 | 2014-04-05T02:14:16 | 2014-04-05T02:14:16 | 18,223,186 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,326 | cpp | material.cpp | #include "material.hpp"
#include "primitive.hpp"
#include "formulas.hpp"
#include <cassert>
PhongMaterial::PhongMaterial(const Colour& ks, const Colour &kt, double shininess, double refractive_index, const string &bump_name)
: m_ks(ks), m_kt(kt), m_shininess(shininess), m_refractive_index(refractive_index), m_bump_map(... |
f97a2f7f526a61abb21f74c7618f3d1ff90f520e | 10bf5b1e12c65435c69b7ac17bd8adec13634897 | /Algorithm of Notes/ch04/MergeSortNoRecursive.cpp | 0a07f3859a802ac9e155db675da610ef61578b63 | [] | no_license | Sinking-Stone/LearningNotes | 6d666e684250d0bcf772ff51841379fb2ccf749b | 9e4424afc506bbb860b55f2635b026bee58966aa | refs/heads/main | 2023-07-24T03:48:48.597958 | 2021-09-04T03:56:26 | 2021-09-04T03:56:26 | 397,807,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | cpp | MergeSortNoRecursive.cpp | //
// Created by SinkingStone on 2021/8/31.
//
#include <stdio.h>
const int manx = 100;
void merge(int A[], int L1, int R1, int L2, int R2) {
int i = L1, j = L2;
int temp[manx], index = 0;
while (i <= R1 && j <= R2) {
if (A[i] <= A[j]) temp[index++] = A[i++];
else temp[index++] = A[j++];
... |
f96d68c17b877f7111eb1bbe90cea89f9c2444c4 | c12fba29b0cbb5071dca39ddbe67da9607b77d65 | /Engine/Include/Entities/Creation/StaticModelInitializationData.h | 6454a5dc3ac8fe93bac4d8afd347e39387be0489 | [] | no_license | satellitnorden/Catalyst-Engine | 55666b2cd7f61d4e5a311297ccbad754e901133e | c8064856f0be6ed81a5136155ab6b9b3352dca5c | refs/heads/master | 2023-08-08T04:59:54.887284 | 2023-08-07T13:33:08 | 2023-08-07T13:33:08 | 116,288,917 | 21 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 870 | h | StaticModelInitializationData.h | #pragma once
//Core.
#include <Core/Essential/CatalystEssential.h>
//Entities.
#include <Entities/Creation/EntityInitializationData.h>
//Physics.
#include <Physics/Native/ModelCollisionConfiguration.h>
//Resources.
#include <Resources/Core/MaterialResource.h>
#include <Resources/Core/ModelResource.h>
#include <Reso... |
dd76b4ec2633283400cb7759c7725bd81c3ac65e | 64bb79337ab4da58a45bbfb322f054f196825b4f | /Data Structure Full/05_Linked_list/Apna College/01_prac.cpp | 5fc2a473f6c60ccd1e34df27c122426056f7e3e5 | [] | no_license | kokfahad/Problems-Solving- | 08f2caa9344e53f0aab10af121563c43207c0ab6 | 4e0eca18c6b609d8d9eb13d2bb6591b425e58fa2 | refs/heads/main | 2023-06-07T15:57:51.366088 | 2021-05-28T17:30:33 | 2021-05-28T17:30:33 | 371,772,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | 01_prac.cpp | #include<bits/stdc++.h>
using namespace std;
class node{
public:
int data;
node * next;
node(int x){
data=x;
next=NULL;
}
};
void insertAtHead(node* &head,int val)
{
node *n=new node(val);
n->next=head;
head=n;
}
void insertAtTail(node* &head,int val)
{
node* n=new node(... |
bbb71e0cd8f279936ba9c1829cf5f565f34b885a | 17292fe87e3850f45facbff8b6c2b542539f3f35 | /libgalois/src/analytics/triangle_count/triangle_count.cpp | a999340c2b9553c604b4cc2c56796d4e3f1f83ce | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | DataBoyTX/katana | f76f43bb073589f8c67c2f4af92307a66083f8eb | ebf166bd24c84fd2aa433d68784eb5d53c84f310 | refs/heads/master | 2023-06-29T15:53:44.241021 | 2021-07-21T17:13:45 | 2021-08-03T16:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,590 | cpp | triangle_count.cpp | /*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
b6bdb3486cacd2ff973e23b23e93095d9e3a6c59 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetConditions/PixelCoralClientUtils/src/fixTimewalk.cc | e7cc99d363d39b3ee9a4baf7e34b0e52e57d748d | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,271 | cc | fixTimewalk.cc | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "PixelCoralClientUtils/PixelCalibData.hh"
#include<string>
#include<map>
#include<fstream>
using namespace std;
int load_pcd(map<unsigned int, PixelCoralClientUtils::PixelCalibData>& pcdmap,
const char* filename)
{
ifstr... |
d076ab7b9904a5ec1a469e6ce8db06a26dfabe1f | 20f8b4b25c5e689269ea1abd57b698e906cdc65a | /dspemul_mt/Semaphore.hpp | 72785e1d6423d173c83edeec6e44d3010d5353cf | [] | no_license | bvarga92/dsp | 801706dc9f74c5ed379abba6132a40d7ac3c2e54 | 50a0d5270ecec2ee5f6fea92ecc776f9634308c5 | refs/heads/main | 2023-08-31T03:07:29.758322 | 2023-08-30T09:25:06 | 2023-08-30T09:25:06 | 69,767,155 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 823 | hpp | Semaphore.hpp | #ifndef _SEMAPHORE_HPP_
#define _SEMAPHORE_HPP_
#include <mutex>
#include <condition_variable>
#include <chrono>
class Semaphore{
private:
std::mutex m;
std::condition_variable cv;
int cntr = 0;
public:
inline void notify(){
std::lock_guard<std::mutex> lock(m);
... |
f988ef42fe155fb4aa4f225f9b4013440dfbc009 | ba86aa615a1455fd79ac3732b77d07f935a04ae3 | /c++程序/考试H.cpp | 592a13bd02aa87e51b59b3246036b80e1692462f | [] | no_license | 300I/jjj | ce0c64bd3a535e593ec38f8b498b77e5ec71e334 | 942c708fc5994ae75cf96e254dac00ba00b94e88 | refs/heads/master | 2020-07-10T01:20:30.600985 | 2019-09-16T12:50:09 | 2019-09-16T12:50:09 | 204,130,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122 | cpp | 考试H.cpp | #include<iostream>
using namespace std;
int main()
{
int n,m,k;
cin>>n>>m;
k=(m-1)+(n-1)*m;
cout<<k<<endl;
}
|
203f621f1e2a766f0d389732d5d86804336b0b71 | b4c74a2dafcfe784e5c4cf8c1ef2605b21b90d5a | /objloader.cpp | b900e31746e3fb807215f9c358a4dc736a4cdcd1 | [
"CC-BY-2.5"
] | permissive | aredsani/abhas | a40d6a7a5f651961d8ce432fab7231c44738953a | 9011fe3c2ccf8e8c3d9cf98daa9ec28d4ededca7 | refs/heads/master | 2016-09-06T15:48:35.741134 | 2014-08-31T05:15:03 | 2014-08-31T05:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,928 | cpp | objloader.cpp | #include <vector>
#include <stdio.h>
#include <cstring>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
#include<objloader.hpp>
#include<shapes.hpp>
bool loadOBJ(const char * path,vector<vertex> & out_vertices, vector<vertex> & out_uvs,vector<vertex> & out_normals){
printf("Loading OBJ f... |
2cc3f7c92b9a4008d31b9e15d80ea70235562ea3 | 36093cadb4c7bce04ddec1bc8b24a13636b63f38 | /day2/57.cpp | a5ac2e60e0e3023b0f4cb5b34b3fe033d196b6e6 | [] | no_license | justttmollly/practice | b6e1115ce813c4c67de94a0d77d9c52a7bd9ab85 | 24caa08da6827509d3308a7d5c18c27d4dcfa5af | refs/heads/master | 2020-09-13T01:56:17.453932 | 2019-11-24T12:08:55 | 2019-11-24T12:08:55 | 222,626,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | 57.cpp | #include<iostream>
using namespace std;
int main(){
int day , month , year;
cin >> day >> month >> year;
if ( day < 1 || month > 12 || year < 0){
cout << "Invalid date";
return 0;
}
if ( month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12){
... |
de6a506fdf4fb76c309235e19907ed658e9e2b5e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/sync_device_info/local_device_info_provider_impl_unittest.cc | 46e55d4f1720c4afd6a2cea29213aafa152e3ab4 | [
"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 | 14,033 | cc | local_device_info_provider_impl_unittest.cc | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync_device_info/local_device_info_provider_impl.h"
#include "base/memory/ptr_util.h"
#include "build/chromeos_buildflags.h"
#include "components/sync/bas... |
26ab4cdfd8aae4f25628e76571c9aff4deb6dbbb | 22c55209918a6c0f758f6d553fc77e0f740e2913 | /bmp.h | a009de619442565319199c345ed7326e3abb96a0 | [] | no_license | sapphire-al2o3/hdr_loader | dff9a495a7ae9cb985ba4b7cb7b4a356b8f4ae38 | 6a2bc161f17d396641f9843addb129a32760b802 | refs/heads/master | 2020-04-22T05:39:44.793544 | 2019-02-27T17:19:08 | 2019-02-27T17:19:08 | 170,163,663 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,684 | h | bmp.h | #ifndef _BMP_H
#define _BMP_H
#include <stdio.h>
#include "image.h"
struct BGR {
unsigned char b;
unsigned char g;
unsigned char r;
};
template <typename T>
int SaveBitmap(const char *fileName, const Image<T> *src);
#pragma pack(1)
struct BitmapFileHeader {
unsigned short bfType; // "BM"
unsigned int bfS... |
c0b40aedb4e57ef60f6b7a3f0c5ec835ff50b513 | 05921d088a80fd20cc8af38a24603ea97458f313 | /src/parse.cpp | 00e806877f43f5c5a24935ada2ea5b0e0d0bdeb8 | [] | no_license | Delta-in-hub/C-- | 55b9a222f1526f36369c2b44f56038ff15831c11 | 74456eef351d7bb28659d73616187077d22593b6 | refs/heads/master | 2023-06-24T17:32:21.006945 | 2021-07-20T08:22:39 | 2021-07-20T08:22:39 | 381,202,516 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 39,700 | cpp | parse.cpp | #include "parse.h"
static std::vector<Var*> paraVar;
static int pos = 0; // tokenArr pos
Program* prog = nullptr;
Env *env = nullptr, *global = nullptr;
void translation_unit();
Node* fun_declarator();
std::vector<Type*>* parameter_list();
void parameter_declaration(std::vector<Type*>* arr);
Type* type_specifier();
... |
47976f296055594996adffc3b698625d318a3438 | 1a102a7a691996e2db7084f464a7c02662d1f23e | /PolynomialProject/Polynomial.h | c91621a8472b197f6bcc3c4970f0a142c78dd7ae | [] | no_license | JyeStillitano/DSP-PolynomialProject | b1fcd9864510f305f7034747171f80c9f67d9fe0 | c1e718452091b061a20b6cdb689caa0c8337fcf8 | refs/heads/master | 2021-03-28T21:03:17.150752 | 2020-03-20T03:45:59 | 2020-03-20T03:45:59 | 247,896,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | h | Polynomial.h | #pragma once
#include <iostream>
#define MAX_DEGREE 20+1 // Maximum degree = 10 + 10 + 1 (0 - 20)
class Polynomial
{
private:
int fDegree; // the maximum degree of the polynomial
double fCoeffs[MAX_DEGREE]; // the coefficients (0..10, 0..20)
public:
// the default constructor (initializes all member variable... |
62beac7c9da5a536379700de897183becccee535 | da05aa7953d34d7d8303c961482e79dc63679b50 | /simple_graph.hpp | 0e6ceffdc0c16981efefa140ef3bd4abc104d8f1 | [] | no_license | kyletreleaven/roadbm-cpp | 18a1dfa70a9432df833997afb3c1e7e6f0dbc5c1 | 9d6d2110a2d73b9868d965ef614d8a6854a4e37a | refs/heads/master | 2020-12-24T13:44:17.138959 | 2013-09-16T22:51:18 | 2013-09-16T22:51:18 | 12,672,521 | 1 | 0 | null | 2013-09-16T22:51:19 | 2013-09-07T22:22:51 | C++ | UTF-8 | C++ | false | false | 2,675 | hpp | simple_graph.hpp |
#pragma once
// stdc
#include "stdlib.h"
#include "stdio.h"
#include "assert.h"
// stdc++
#include <iostream>
#include <utility>
#include <iterator>
//#include <numeric> // for accumulate
//#include <vector>
#include <list>
#include <map>
/* notes about map iterators
* only the iterators of *erased* map items a... |
f08de60efc65e9680c74d90767e3878da2da2908 | d64e2243d9b326ae9fa5614d335eff01dce4161f | /src/sound/sfml_sound.h | 950277a41d397458e57c36aa04c6a68058278519 | [
"Artistic-2.0"
] | permissive | skadge/table-lumineuse | e010b8435eb1f4321fe71fee85150861cdd49b9d | 90b357d3c3e34f4f6df2f834c7060fd41a03eb4f | refs/heads/master | 2021-03-13T00:01:17.891671 | 2020-10-30T22:17:55 | 2020-10-30T22:17:55 | 24,863,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | h | sfml_sound.h | #ifndef SFML_SOUND_H
#define SFML_SOUND_H
#include <SFML/Audio.hpp>
#include "sound.h"
class SFMLSound : public SoundSource {
private:
sf::SoundBuffer buffer;
sf::Sound sound;
bool _sound_loaded;
void load_sound();
public:
SFMLSound(const std::string& path, bool loop=false);
~SFMLSound(... |
c3f7e0e5d6b9559fb4741beddbf9cf6c33a6f9c1 | f588635240479cb0411e1514e006dfccc2002d2e | /Classes/network/HttpLoader.cpp | d2267eaf90eff14551e4660bef2a5811c8c3b5c1 | [] | no_license | youssefmyh/ThreadPoolcommandObserver | fe9459063bf73d7b0e10f4fcb5a358cf5c6af004 | 0aaeafd4713d7a82811222e7595812bfe188cd14 | refs/heads/master | 2023-02-27T12:54:37.712225 | 2021-02-09T10:26:05 | 2021-02-09T10:26:05 | 253,470,981 | 3 | 2 | null | 2020-09-13T10:55:18 | 2020-04-06T10:58:53 | C++ | UTF-8 | C++ | false | false | 967 | cpp | HttpLoader.cpp | //
// HttpLoader.cpp
// myGame
//
// Created by Youssef Hanna on 9/6/19.
//
#include "HttpLoader.hpp"
HttpLoader *HttpLoader::m_instance = nullptr;
void HttpLoader::sendRequest(cocos2d::network::HttpRequest *httpRequest)
{
httpRequest->setResponseCallback(this, httpresponse_selector(HttpLoader::onResponseComp... |
81e4ccbd0abc194a43befc79f25673a42ef0c64d | 72d01ddc408f90a45d4db4643124f76791c89ba3 | /src/tools/RGBDLogger.cpp | 60ce0997cdaaff74ab664eb2d9c9b30d7630812b | [] | no_license | caomw/idSLAM | 4d26e5a302ec165e2957ba2d7dd99088f0f73b7d | 6ea2823905fa342216916fffb2d2ab26190a36a9 | refs/heads/master | 2021-01-21T20:33:26.622699 | 2015-07-23T02:00:02 | 2015-07-23T02:00:02 | 66,874,264 | 0 | 1 | null | 2016-08-29T19:31:27 | 2016-08-29T19:31:27 | null | UTF-8 | C++ | false | false | 4,381 | cpp | RGBDLogger.cpp | /*
* RGBDLogger.cpp
*
* Created on: Feb 16, 2011
* Author: scherer
*/
#include <cv_bridge/cv_bridge.h>
#include <image_geometry/pinhole_camera_model.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <open... |
b149e4e7a16bdfa61fb4865f5f918fcdf85ab9e4 | 602e0f4bae605f59d23688cab5ad10c21fc5a34f | /MyToolKit/CostEngineer/CostEngineerView.h | c407247a40810fcad47ce4e0acab31f608ce96f4 | [] | no_license | yanbcxf/cpp | d7f26056d51f85254ae1dd2c4e8e459cfefb2fb6 | e059b02e7f1509918bbc346c555d42e8d06f4b8f | refs/heads/master | 2023-08-04T04:40:43.475657 | 2023-08-01T14:03:44 | 2023-08-01T14:03:44 | 172,408,660 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,619 | h | CostEngineerView.h |
// CostEngineerView.h: CCostEngineerView 类的接口
//
#pragma once
class CCostEngineerCntrItem;
class CCostEngineerView : public CBaseMessageFormView
{
protected: // 仅从序列化创建
CCostEngineerView() noexcept;
DECLARE_DYNCREATE(CCostEngineerView)
// 特性
public:
CCostEngineerDoc* GetDocument() const;
// m_pSelection 将所选内容... |
1ea9f17f9ab956c7bc1e1f0ec2c96f5376959271 | e74287342dadc173c26500285d216110a6ede5fe | /计算导论与C语言基础/week_6/Assignment2/苹果和虫子.cpp | d35fcddbb9f322e27a53588110bb8c4587220a9d | [] | no_license | JiahongHe/Program-Design-and-Alogorithms | f481fe67863d836e3fde96b683854f1570fdd8a2 | 3ddec8b6ef6c7d433fe8855fef9b490480979ac2 | refs/heads/master | 2020-03-25T15:18:13.268218 | 2018-08-20T09:17:18 | 2018-08-20T09:17:18 | 143,876,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cpp | 苹果和虫子.cpp | #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int total;
int hour_per_apple;
int time;
cin >> total >> hour_per_apple >> time;
int count = (int)time / hour_per_apple;
if (count * hour_per_apple < time) {
count += 1;
}
int left = total - count... |
040dbee7414f7bb5c452f6a5ac2d7c42555aefaa | d2190cbb5ea5463410eb84ec8b4c6a660e4b3d0e | /hydra2-4.9w/rpc/hrpcslewingpar.h | 781a490f90b32f8e8cbdb7d51dba837064283728 | [] | no_license | wesmail/hydra | 6c681572ff6db2c60c9e36ec864a3c0e83e6aa6a | ab934d4c7eff335cc2d25f212034121f050aadf1 | refs/heads/master | 2021-07-05T17:04:53.402387 | 2020-08-12T08:54:11 | 2020-08-12T08:54:11 | 149,625,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,551 | h | hrpcslewingpar.h | #ifndef HRPCHSLEWINGPAR_H
#define HRPCHSLEWINGPAR_H
#include "TArrayF.h"
#include "hparcond.h"
class HParamList;
class HRpcSlewingPar : public HParCond {
protected:
TArrayF fExpo1; // Parameters of the exponential describing behaviour below fQcut
TArrayF fExpo2; // Parameters of the exponential describi... |
e2d785673052fc6c21139e6600bb6becaf3beed1 | 79709e837ec78881d84dbbdfa1c624fd7bb055f5 | /src/Physics/Box.h | cf72761870172ff2da276722f2e0bc496f962b39 | [
"MIT"
] | permissive | JanDupal/magnum | dd517717119b9b20113c875a67da141ae2feb00a | a21fd0df078c3c6245370de69b6016acd2d222da | refs/heads/master | 2020-12-25T00:02:35.698909 | 2013-05-04T11:35:52 | 2013-05-04T12:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,495 | h | Box.h | #ifndef Magnum_Physics_Box_h
#define Magnum_Physics_Box_h
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Softwa... |
e429e063bf07f4e0ee26fb41c5687eed1a40f895 | 4addcb3a69a03af9c55c5673ad3ef6851ccc9aef | /datastructure/stack.cpp | dcbcd1ee1a26002a0c75b29a2295247187aefe90 | [] | no_license | PrasanthChettri/competitivecode | 367cf2e01f0c1342d12730ec4562831103c95ee7 | 4250de2f4b6061ab63caae959b9ba71099b4928b | refs/heads/master | 2022-11-14T07:10:32.582144 | 2020-07-09T09:35:19 | 2020-07-09T09:35:19 | 278,323,014 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | stack.cpp | #include<iostream>
using namespace std ;
class Node {
public :
int data ;
Node * next ;
}*node;
void push(int item){
Node * new_n = new Node();
new_n->data = item;
new_n->next = node ;
node = new_n ;
}
bool pop(){
Node * temp = node ;
if(node){
node = node->next ;
... |
f340d3c3b2b0294ec3525d3f02e6c71bdcedef04 | 51099872722a72b1e9c59c8a0bd022d009dbba2c | /game/sources/gui/bitmap-font-renderer.cc | 68a7e2461f978cf297a7de474640882d3797d894 | [] | no_license | perpetual24/fps-game | 37d22759967916a3f6b5d656e3d63e1f02a64b6b | 8e4cc02a7139a1575f8a618b408c22cbfc4cc09a | refs/heads/master | 2023-07-12T09:27:26.847169 | 2020-04-19T12:09:34 | 2020-04-19T12:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,523 | cc | bitmap-font-renderer.cc | #include "game/headers/gui/bitmap-font-renderer.hh"
#include "external/glad/glad.h"
BitmapFontRenderer::BitmapFontRenderer(const BitmapFont& font, const Shader& bitmap_shader,
float screen_width_height):
_font{font}, _bitmap_shader{bitmap_shader}, _screen_width_height{screen_width_height} {
glGenVertexArrays(1, ... |
c3ba231bc4287f430b39cd6d9123cbfd119f8628 | 3bb4044e98cc6816801c755f0e7894dde1a2a361 | /4_4_led_matrix1.ino | 2da517b1de41553c16c20fd80602cfd44364239c | [] | no_license | biplab5464/Arduino | a2a9a37fde71cea1711a0734c1bbb2b5a0038676 | 9a7c66a83c5de4549aff31fe87a0c82259218128 | refs/heads/master | 2023-03-12T06:30:36.183357 | 2021-03-01T16:49:33 | 2021-03-01T16:49:33 | 270,916,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,467 | ino | 4_4_led_matrix1.ino | int a = 11,b=10,c=9,d=8 ,n1=2,n2=3, n3=4,n4 =5;
void setup()
{
pinMode(a, OUTPUT);
pinMode(b, OUTPUT);
pinMode(c, OUTPUT);
pinMode(d, OUTPUT);
pinMode(n1, OUTPUT);
pinMode(n2, OUTPUT);
pinMode(n3, OUTPUT);
pinMode(n4, OUTPUT);
}
void allLed()
{
digitalWrite(a,0);
digitalWrite(b,0);
digitalWri... |
6b77ec77821197c5109bf36b43c32346e9d1dd5c | b469bab1734a60fc495df1e8b8e8b45eb8425f32 | /src/cloth.cpp | 9e67b1b4c9fdd0d0828b8f25b8ed8f91aabac061 | [] | no_license | augustt198/cloth | 2f47f68470cd11e8b98e0e44b657b94af7f3e976 | b9ab77602b6d8558734755c66e97c12cfb639f12 | refs/heads/master | 2021-01-01T20:04:16.451958 | 2017-08-14T20:02:00 | 2017-08-14T20:02:02 | 98,761,008 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,948 | cpp | cloth.cpp | #include "cloth.h"
#include <cstdio>
#include <cmath>
// call this inside a Cloth method
#define IDX(__x, __y) (__x+__y*this->width)
Cloth::Cloth(int width, int height, float pointMass) :
width(width), height(height), pointMass(pointMass) {
pointMass = 3;
gravityConstant = 3.0;
springConstant = ... |
0f432f368ba6776f375b44eb4afba2e7e88371dc | f4c24ee933ccaaf95847d595c1c3c71f92bace44 | /Registry/main.cpp | 6d89585da3d65a2a996e6469eb67a04097911594 | [] | no_license | shehab-as/Distributed-Systems | 626a4e777234e7bd8cafe9f95014e3b79e22cd9e | 55b9675eae678036edc8b32fdc9f09cab7da72ff | refs/heads/master | 2022-11-01T02:46:06.977019 | 2018-09-24T22:17:42 | 2018-09-24T22:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | main.cpp | #include <SQLiteCpp/Database.h>
#include <iostream>
#include <fstream>
#include "Registry.h"
int main() {
//FOR FOREIGN KEY CONSTRAINT TO WORK, MUST WRITE -> PRAGMA foreign_keys = ON; IN SQLITE TERMINAL
Registry Reg(NULL, 1234, 10, "/home/farida/Final_Dist.db");
} |
eec7eb0d1defbee35a255e7fd1eaa663151df961 | 12104346ddf50cacdc5b27e783d4b4c69f8e6e9f | /src/Accelerators/NNPA/Conversion/ZHighToZLow/ZHighToZLow.cpp | 91d8e26e621527a15e3a56c929956c8109aaf0b7 | [
"Apache-2.0"
] | permissive | doru1004/onnx-mlir | 4aab522ddea723300b482a2ba28926e50c6a290c | 47e4f391b9f1eff5835039093c7d4f5b76841125 | refs/heads/master | 2022-06-01T09:09:26.912295 | 2022-05-13T20:27:48 | 2022-05-13T20:27:48 | 243,586,266 | 0 | 0 | Apache-2.0 | 2020-02-27T18:20:36 | 2020-02-27T18:20:35 | null | UTF-8 | C++ | false | false | 56,398 | cpp | ZHighToZLow.cpp | /*
* SPDX-License-Identifier: Apache-2.0
*/
//====------ ZHighToZLow.cpp - ZHigh dialect to ZLow lowering -------------===//
//
// Copyright 2019-2022 The IBM Research Authors.
//
// =============================================================================
//
// This file implements the lowering of ZHigh operati... |
635f9b7c4cfa4f18b41edc4b878711064bf31412 | 83d47b2a4aab88aa95c3a8742bb069088846e9c0 | /repository/0209.cpp | 73c02394f303f76a15718f0ba1590fe5a9f08100 | [] | no_license | motxx/AOJ | 9285ef7c51c866bab479759a68d3dcac1d3e2abe | 3ac7c25d2cb51bf852706b603a5c936a57400b64 | refs/heads/master | 2021-01-09T20:40:11.522538 | 2016-07-13T21:00:27 | 2016-07-13T21:00:27 | 61,233,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,721 | cpp | 0209.cpp | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... |
af4516729406a4340e693c98595b7f8273a914fd | 47ff8543c73dab22c7854d9571dfc8d5f467ee8c | /BOJ/10835/10835.cpp | e7760a1d4d70d674b996728df81a8db667caa8ae | [] | no_license | eldsg/BOJ | 4bb0c93dc60783da151e685530fa9a511df3a141 | 6bd15e36d69ce1fcf208d193d5e9067de9bb405e | refs/heads/master | 2020-04-16T02:18:55.808362 | 2017-11-28T11:02:37 | 2017-11-28T11:02:37 | 55,879,791 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | 10835.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<string.h>
#include<stdio.h>
using namespace std;
int N, A, B;
vector<int> cardleft;
vector<int> cardright;
vector< vector <int> > dp;
int solve(int a, int b){
if(a >= N || b >= N) return 0;
if(dp[a][b] != -1) return dp[a][b];
int result = 0;
result = ... |
31dd2913561af70b7d4f77b8fe0c67c4daca2636 | b73eec3a26bdcffb6a19dec6b8b048079befe04c | /3rdparty/meshlab-master/src/external/CoMISo/NSolver/NProblemInterface.hh | 260b9511d7744f7742f21897ff6ca5b5d024a06b | [
"GPL-3.0-only",
"MIT",
"GPL-1.0-or-later"
] | permissive | HoEmpire/slambook2 | c876494174e7f636bdf5b5743fab7d9918c52898 | 96d360f32aa5d8b5c5dcbbf9ee7ba865e84409f4 | refs/heads/master | 2020-07-24T02:35:39.488466 | 2019-11-25T03:08:17 | 2019-11-25T03:08:17 | 207,775,582 | 0 | 0 | MIT | 2019-09-11T09:35:56 | 2019-09-11T09:35:56 | null | UTF-8 | C++ | false | false | 2,519 | hh | NProblemInterface.hh | //=============================================================================
//
// CLASS NProblemGmmInterface
//
//=============================================================================
#ifndef COMISO_NPROBLEMINTERFACE_HH
#define COMISO_NPROBLEMINTERFACE_HH
//== COMPILE-TIME PACKAGE REQUIREMENTS ========... |
31befe5d29d885b706e91aa900f80fa7cdaf2e2f | d8a31f35fadc056a36670d6572def108857d3534 | /chapter 4/HSring.cpp | 871747d64e9073edf506963ecaac24a4f97b210f | [] | no_license | ZhangChengmin99/DS_yan | 3477afce32ba85cea9f9785a843d278e0d29843d | 9644bf5340f133684047a48c720ff668a36366b7 | refs/heads/master | 2020-07-16T11:23:28.445395 | 2017-01-01T14:25:02 | 2017-01-01T14:25:02 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,518 | cpp | HSring.cpp | #include <stdlib.h>
#include <stdio.h>
#include "HString.h"
Status StrAssign(HString &T, char *chars){
// 生成一个其值等于串常量chars的串T
int i;
char *c;
if (T.ch) free(T.ch);
for (i = 0, c = chars; *c; ++i, ++c);
if (!i){
T.ch = NULL;
T.length = 0;
} else{
if (!(T.ch = (char *)malloc(i * sizeof(char))))
exit(OVE... |
2afad3a09d754681fa7beedad77466cc449b8790 | ed7707d688179fb85db081a6df62efa757f5eaa7 | /BibleMap/test.cpp | a9446e3ec20aac2c15cf0a449833152cac729821 | [] | no_license | jeremyc61298/BibleMap | ed352e95d45f3973f75bed67286bd2810761dbe3 | da00fbdee0bd3fa0608e20376f784518c9d35a49 | refs/heads/master | 2021-03-22T02:59:28.241082 | 2018-03-23T22:33:05 | 2018-03-23T22:33:05 | 123,375,726 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | cpp | test.cpp | #include "Map.hpp"
#include <iostream>
using util::Map;
using std::cout;
using std::endl;
void main()
{
Map<int, float> myNums;
// adding key/value pairs
myNums[1] = 1.1;
myNums[5] = 5.5;
// retrieving values
cout << myNums[1] << " was added into the map. " << endl;
cout << myNums[5] << " was added into the ... |
4b8754f2a2ee1a92901fe03825f3596206d17e07 | cf907178b934ac221a300124cf01bdeb51010183 | /OOP_CPP/ChapterTen.cpp | 7754cfa5283e951181f4ed50403e857056ef6e23 | [] | no_license | bence7999/OOP_CPP | a375893a1e8fcefae2450849ce4f111f2b65312b | 3644bb9ce0ff296f6be9d6b58916d309a2e28063 | refs/heads/master | 2021-09-16T20:05:18.654051 | 2018-06-24T09:41:33 | 2018-06-24T09:41:33 | 117,330,313 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 12,592 | cpp | ChapterTen.cpp | #include "ChapterTen.h"
using namespace std;
namespace ChapterTen {
// Write a program to display a digital clock. Use the principle of multiple inheritance for class clock.
class Time1
{
protected:
int hr;
int min;
int sec;
public:
Time1(int h, int m, int s);
void showTime();
};
class Date
{
pr... |
aa422cf4a56e3ee6fe1840b38b23c28a6dc9956a | 21220c2f2319f9e6a45c5de2fb54d9d00e57eb28 | /myTime.h | 4a1ae47aefc7232d9b0f5c98f1a9555acc30c37d | [] | no_license | rimand/myTime | 119c965822449121e17becce1031b7461374d611 | 430608d347a7ed8c639588050e43d305f8127ee6 | refs/heads/master | 2021-01-19T06:47:06.529556 | 2016-06-15T18:39:00 | 2016-06-15T18:39:00 | 61,231,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | h | myTime.h | /**
* @file myTime.h
* @date 16-Jun-2016
* @author Vichagorn lupponglung
*
*
* Rimand (c) by Vichagorn lupponglung
*/
#ifndef _MY_TIME_H_
#define _MY_TIME_H_
#include <Arduino.h>
#include <time.h>
class myTime{
public:
myTime(void);
bool begin(int timeZone,int dst);
char* getTime();... |
13a321ff05e79d3b031d385a1fc414de22561bdd | bbeaadef08cccb872c9a1bb32ebac7335d196318 | /Fontes/Rede/VTSuprimento.h | ad20b1fea3a64de4e5f1ebc3d010d4ff956d6fe8 | [] | no_license | danilodesouzapereira/plataformasinap_exportaopendss | d0e529b493f280aefe91b37e893359a373557ef8 | c624e9e078dce4b9bcc8e5b03dd4d9ea71c29b3f | refs/heads/master | 2023-03-20T20:37:21.948550 | 2021-03-12T17:53:12 | 2021-03-12T17:53:12 | 347,150,304 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,143 | h | VTSuprimento.h | //---------------------------------------------------------------------------
#ifndef VTSuprimentoH
#define VTSuprimentoH
//arquivos incluídos-----------------------------------------------------------
#include <Classes.hpp>
#include "Estrutura.h"
#include "TEqbar.h"
#include "..\Constante\Const.h"
//----------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.