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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bd5efebbca9cba7e32250e15310165039007aa5 | d89416321d948eef709cd348db982fcdd1627fd0 | /src/runtime/eval/parser/scanner.h | f2c74f0fc867564f658c13d5afd9617e41944b9e | [
"PHP-3.01",
"Zend-2.0"
] | permissive | huichen/hiphop-php | 0d0cce0feefdd4f7fe62a02aa80081e3b076cb2e | dff69a5f46dec5e51de301c726e383a171b2cda9 | refs/heads/master | 2021-01-20T23:40:41.807364 | 2010-07-22T00:29:37 | 2010-07-28T06:36:19 | 696,720 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,569 | h | scanner.h | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
4829063c52820408fb2e684ea6d463e3b74a683b | 3ae80dbc18ed3e89bedf846d098b2a98d8e4b776 | /src/SSWR/SMonitor/SMonitorWebHandler.cpp | 4650cf039492e5c261264f163eb6797d370cbf7a | [] | no_license | sswroom/SClass | deee467349ca249a7401f5d3c177cdf763a253ca | 9a403ec67c6c4dfd2402f19d44c6573e25d4b347 | refs/heads/main | 2023-09-01T07:24:58.907606 | 2023-08-31T11:24:34 | 2023-08-31T11:24:34 | 329,970,172 | 10 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 75,408 | cpp | SMonitorWebHandler.cpp | #include "Stdafx.h"
#include "Data/ByteTool.h"
#include "Data/LineChart.h"
#include "Exporter/GUIPNGExporter.h"
#include "IO/MemoryStream.h"
#include "Math/Math.h"
#include "Math/Unit/Pressure.h"
#include "Media/ImageList.h"
#include "Media/StaticImage.h"
#include "SSWR/SMonitor/SMonitorWebHandler.h"
#include... |
d0a5e05cc9e4a3217838fb2b1837d8d63452bdc3 | ac5e6a759c266f5315c56f45f71cc7cc6a58eeb4 | /src/IslaCanvas.cpp | 8f3b2c60fa0c300cab126cb87bc63a91593b72c4 | [] | no_license | ian-ross/isla | aecd6a3722fa7a8f702d2e3c4453d39ba15097df | a6c7aece1ead4902ba47ecd47fb6bb5f91bfd9cf | refs/heads/master | 2021-03-12T20:46:03.473180 | 2013-05-25T13:52:08 | 2013-05-25T13:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,257 | cpp | IslaCanvas.cpp | //----------------------------------------------------------------------
// FILE: IslaCanvas.cpp
// DATE: 23-FEB-2013
// AUTHOR: Ian Ross
//
// Canvas class for main map view of Isla island editor.
//----------------------------------------------------------------------
#include <wx/wx.h>
#include <wx/colour.h>
#... |
9f083a31360061e9d55237fb0804ce2fa7ccea4e | c99944ec00d7359ff365dc7af023ca2815f0c3bf | /sources/write.cpp | 6c168d3f136db68f42f568c789ecf22654c62feb | [] | no_license | terpsihora96/art-scene | f18d95c5a8b999bb4e90de85e5cc10a552fb2d2b | e84c85db1d1bd84e92f4766294ee8d4a3bc86acd | refs/heads/master | 2021-07-10T07:50:48.790150 | 2020-12-02T21:50:58 | 2020-12-02T21:50:58 | 214,654,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | write.cpp | #include <GL/glut.h>
#include <iostream>
// Function for drawing string name on the screen
// The position is controlled by double x, double y parameters
void draw_name(std::string name, double x, double y)
{
int current_width = glutGet(GLUT_WINDOW_WIDTH);
int current_height = glutGet(GLUT_WINDOW_HEIGHT);
... |
6524023f8ebcbcf7eaa37ebf79a6ad69b9c9150c | 69ed848d81b3fddfb3cb91162a70556547052d8a | /骨骼动作编辑器/骨骼制作器/windows_Class.cpp | 7d7fa6bf8bd63d4dd99fb12d24b509fb6037cbcc | [] | no_license | JunC74/PYX | 7c4fb7911d2b39cf1a310f29d36a7d38abdb23c8 | 0717a4b7f7bfad25ff820d01395e0bb7bf5505fe | refs/heads/master | 2016-08-05T14:56:31.346241 | 2014-10-23T03:26:55 | 2014-10-23T03:26:55 | 25,617,079 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 24,208 | cpp | windows_Class.cpp | #include "windows_class.h"
#include <time.h>
#include <windows.h> // include all the windows headers
#include <windowsx.h> // include useful macros
#include <cstring>
#include "resource.h"
WindowsClass::WindowsClass(HDC source_dc, RECT rect)
:UIObject(source_dc, rect, NULL)
{
bk_bitmap = Bitmap::CreateBitma... |
4edf62e1453569134f1795e58da35d3655cde4b4 | 0a688a8b2c973962f45b07d3f3b50acab40c4e8f | /LeetCode/332. Reconstruct Itinerary.cpp | 882bd12ba0b81a5315b917de86a487c9404e783e | [] | no_license | Rajanpandey/Coding-Practice | 2184c1b0ff8b10847abfe2f36091a7239aca2671 | 75d81fdf581fe870dac45c59ba3d20a406e2f4b8 | refs/heads/master | 2021-11-28T08:07:12.859609 | 2021-11-24T15:45:01 | 2021-11-24T15:45:01 | 191,540,122 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | 332. Reconstruct Itinerary.cpp | // Hierholzer's Algorithm to find Eulers's Path
class Solution {
public:
void DFS(string source, map<string, priority_queue<string, vector<string>, greater<string>>>& adjList, vector<string>& ans) {
while (!adjList[source].empty()) {
string destination = adjList[source].top();
adjLis... |
8abe2e66bbb12f4485853cdc24b97755252da159 | 0e3cab0ba4802bf611323fb121e9d149bc121b5f | /Solutions/CHEFELEC4.cpp | 3f659f8032fd26923b5c6f2d1f24ec396be63803 | [
"MIT"
] | permissive | nikramakrishnan/codechef-solutions | e8ba0bf4def856ef0f46807726b46c72eececea9 | f7ab2199660275e972a387541ecfc24fd358e03e | refs/heads/master | 2020-06-01T23:13:27.072740 | 2017-06-16T08:10:38 | 2017-06-16T08:10:38 | 94,087,034 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | CHEFELEC4.cpp | #include<iostream>
using namespace std;
int main(){
int t,n,first,second;
string s;
cin>>t;
while(t--){
cin>>n;
long long int x[n];
long long int totalc=0;
cin>>s;
for(int i=0;i<n;i++){
cin>>x[i];
}
int j=0; //This will be the pos of first 1;
if(s[0]=='0'){
//cout<<"Count... |
2e607a671b8fc429027fdd5eb136729d03d1a29c | 5885fd1418db54cc4b699c809cd44e625f7e23fc | /ucla-codesprint-2022/team/f.cpp | 0f6427e4b86cf4ec0411ca39c948ee7154f21dbc | [] | no_license | ehnryx/acm | c5f294a2e287a6d7003c61ee134696b2a11e9f3b | c706120236a3e55ba2aea10fb5c3daa5c1055118 | refs/heads/master | 2023-08-31T13:19:49.707328 | 2023-08-29T01:49:32 | 2023-08-29T01:49:32 | 131,941,068 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | f.cpp | #include <bits/stdc++.h>
using namespace std;
//%:include "utility/fast_input.h"
//%:include "utility/output.h"
%:include "graph/dinic.h"
using ll = long long;
using ld = long double;
using pt = complex<ld>;
constexpr char nl = '\n';
constexpr int MOD = 998244353;
constexpr ld EPS = 1e-9L;
random_device _rd; mt1993... |
d33c9c5e4c8b00ad8c827bcaf8aa86ee4dc61b1f | cc946931436d89e95d312327ba50cf7d0104a0d2 | /game/engine/widgets/Widget.cpp | 81291512d607acb142730ac85256c5ed6721c1e6 | [] | no_license | groepF/game | a42eb063825e73451511a86c18820a2ddc7ebb89 | d285098d6ff47924ca97334282bf40555c0be12c | refs/heads/develop | 2021-01-11T00:49:48.844678 | 2017-01-17T01:27:13 | 2017-01-17T01:27:13 | 70,483,312 | 6 | 0 | null | 2017-01-17T12:08:32 | 2016-10-10T11:56:06 | C++ | UTF-8 | C++ | false | false | 151 | cpp | Widget.cpp | #include "Widget.h"
Widget::Widget()
{
}
std::string Widget::getId() const
{
return id;
}
void Widget::setId(std::string id)
{
this->id = id;
}
|
5c8a91d444c0b564c0ad9fe88d6e28fa6824b851 | 30d565ab1a62eca47a03f207af180104482853db | /Nodes/BasicNodes/createmesh.cpp | 77530bb2274fcf64e338b319b1e9daaef6407490 | [] | no_license | YAXo-O/PEW | e7e811c498b9ac9d76f386a7c95eb0c2dc1d7aeb | 92756a915ad54c28bcca60e8748eafb6cadc4743 | refs/heads/master | 2019-06-29T03:06:43.422383 | 2018-05-29T21:46:40 | 2018-05-29T21:46:40 | 101,887,095 | 0 | 0 | null | 2017-11-04T18:56:52 | 2017-08-30T13:49:18 | null | UTF-8 | C++ | false | false | 1,172 | cpp | createmesh.cpp | #include "createmesh.h"
#include "../externalvariablefactory.h"
#include "../Data/wireframemeshinstancedata.h"
#include "../../worldinfo.h"
#include "../NodesWidgets/createmeshwidget.h"
CreateMesh::CreateMesh(QString nodeName, QWidget *parent): BaseNode(nodeName, parent),
wid(new CreateMeshParamsContainer(new Crea... |
99b4b53f9c76700703e8befe00f17cd1d77767dc | 2dad597ecec01408675867cadf3bbfd6ddfdfbc1 | /Preparing for test/template_stack.cpp | 9b351125f8d3d74e14870f054c1bce970c7db14b | [] | no_license | AroSwift/CS1020 | 76202c83ca9081e5e0736351e02a2415e9977ca7 | 1b2f3f7bf2267c4cfb1a6eb2f4d4a3eae6fcbb04 | refs/heads/master | 2021-05-02T11:01:43.188974 | 2018-09-28T18:50:08 | 2018-09-28T18:50:08 | 50,745,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | template_stack.cpp | const int MAX_DATA = 100;
temtemplate <class T>
class STack {
T data[MAX_DATA];
int top;
public:
Stack();
void push(T d);
T pop();
bool is_empty();
};
Stack::Stack() {
top = -1;
}
template<class T>
void Stack::push(T d) {
if( top == MAX_DATA ) return;
data[++top] = d;
}
template<class T>
T Stack::... |
dde23bcbf130e37c45ec8a050080186b658d1a78 | abd16947bf4f91af9d096d55a0067179f75b6718 | /414b.cpp | 5180e3f1911bf1e40a54a56e648f2db664b309c5 | [] | no_license | 05Khushboo/Codeforces | 69522864f3f5daf4e77066c78fb27fbe21b60570 | 8b16f65f51a110f2f1efa592d9d3f1dbb778c8d7 | refs/heads/master | 2021-01-19T16:42:09.403754 | 2017-08-22T21:37:30 | 2017-08-22T21:38:11 | 88,280,481 | 1 | 1 | null | 2017-11-03T20:08:48 | 2017-04-14T15:40:48 | C++ | UTF-8 | C++ | false | false | 523 | cpp | 414b.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
ll dp[2002][2002];
int main()
{
ll n,k; cin>>n>>k;
ll mod = 1E9 + 7;
for(ll i = 0;i<=k;i++)
{
for(ll j=0;j<=n;j++)
{
dp[i][j] =0;
if(i==1) dp[i][j] = 1;
}
}
for(ll ik=1;ik<=k;ik++)
{
for(ll i = 1;i<=n;i++)
{... |
e87ece3af101d92bcd424a3808e9ee9638512c80 | 95f86a8f769d480494e1a70ea5efdf2262b30ff5 | /templateArray.cpp | 930bb878e696594683460c8c35f276632d535d1d | [] | no_license | aorji/CPP_Training | 46dddd6c3891471c828dadafca4016f1c0b4354c | a30a9f6c2f2520654c27031db5d66187eda405f0 | refs/heads/master | 2020-04-08T20:42:06.153969 | 2018-11-29T19:09:51 | 2018-11-29T19:09:51 | 159,711,347 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | cpp | templateArray.cpp | /*
Реализуйте шаблонную версию класса Array. Список всех операций, которые должен поддерживать класс Array, приведен в шаблоне кода.
*/
#include <cstddef>
template <typename T>
class Array
{
// Список операций:
//
public:
explicit Array(size_t size = 0, const T& value = T()):size_(size), value_(new T... |
f22a6b7ffaab01d9010dff8feca94e2cbad4aa89 | d4f9f10df1b7718ea4083fc7da6e1214372769f0 | /SpectrometerPackage/KromekDriver/include/Lock.h | 4e1f92fb520d421c34bee757d7b414660256fe3d | [] | no_license | rustam-lantern/LanternSpectrometer | 7f04f31824fcbe59dfadac84f101dfef5612c413 | 93e3733fc2da2f80df6b76c1064bfec317331b76 | refs/heads/master | 2020-07-31T11:37:23.591981 | 2019-09-24T13:27:16 | 2019-09-24T13:27:16 | 210,591,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | Lock.h | #pragma once
#include "CriticalSection.h"
namespace kmk
{
/** @brief A synchronisation mechanism using critical sections.
Example:
// declare critical section as class attribute somewhere...
CriticalSection csObject;
void MyClass::ProtectedFunction ()
{
Lock protect (csObject);
... |
34efbb359e96d61809ec56f0ea2592969bc2802f | 6e1fb1b65eb53f973363c33bb5614d3d6e976df2 | /string/char_arr3.cpp | 0a4769dbf3e729be889bdf143f8bd6f1c60c5fbb | [] | no_license | tranleduy2000/learncpp_ | abae6c758232dc4671a337638c0359fe13bae27c | 86f1c91fcd9797b38857cb79b454d9314712266d | refs/heads/master | 2021-05-08T10:35:47.233918 | 2018-02-15T09:32:53 | 2018-02-15T09:32:53 | 119,848,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | char_arr3.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main() {
char foo[] = "Almost every programmer should know memset!";
cout << foo << endl;
memset(foo, '-', 10);
cout << foo;
return 0;
}
|
29eb50a7784f22cf61030bca008b4147aaa95ca3 | c51d7d3d453ad1e831e625cc3a0ac1df67fc1e93 | /2.2-linkedLists.cpp | ce2f893e96827c40703626c611c9d93f65bfdb77 | [] | no_license | schliffen/cracking-the-coding-interview | 3553ed8b3e3458cd9a40b48365beb28dba327d9d | 4fa5dead78c526731069ee972777c97c3f9a92ac | refs/heads/master | 2021-06-13T23:21:10.600481 | 2019-10-06T13:40:50 | 2019-10-06T13:40:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | 2.2-linkedLists.cpp | #include "lib/LinkedList.h"
#include <assert.h>
#include <iostream>
/*
* 2.2
* Implement an algorithm to find the kth to
* last element of a singly linked list.
*/
Node<int>* find_k_from_end(Node<int>* head, int k) {
int num_covered = 0;
Node<int>* current = head;
Node<int>* desired = head;
whil... |
d55955457304f957749f2e1847f5faf299bf61ac | ef15a4a77b6e1fbb3220a5047885ba7568a80b74 | /src/triggersnortsam/Trigger/SnortSam/Exception.cpp | 88d183633aba5571e9f54649f9467507713bcfc3 | [] | no_license | el-bart/ACARM-ng | 22ad5a40dc90a2239206f18dacbd4329ff8377de | de277af4b1c54e52ad96cbe4e1f574bae01b507d | refs/heads/master | 2020-12-27T09:24:14.591095 | 2014-01-28T19:24:34 | 2014-01-28T19:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42 | cpp | Exception.cpp | #include "Trigger/SnortSam/Exception.hpp"
|
b35bc13c1477d3bbe3aed916217fb7eb44acd3d6 | 0bf8cdde9562a400fe1604237a658fae5a170982 | /ext/openMVG/dependencies/osi_clp/CoinUtils/src/CoinPresolveDual.hpp | b021ce0c1da45fa4035de25ecda1a03858232f8c | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"EPL-1.0"
] | permissive | AIBluefisher/EGSfM | 64c2108c037a7e730a81690598022586d6ae90aa | e2e505353cdc525b8e814e0019bd0dc67be75fea | refs/heads/master | 2021-06-19T02:06:22.904219 | 2021-02-28T03:11:14 | 2021-02-28T03:11:14 | 187,424,684 | 91 | 19 | BSD-3-Clause | 2020-03-03T07:33:47 | 2019-05-19T02:20:18 | C++ | UTF-8 | C++ | false | false | 2,846 | hpp | CoinPresolveDual.hpp | /* $Id: CoinPresolveDual.hpp 1510 2011-12-08 23:56:01Z lou $ */
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CoinPresolveDual_H
#define CoinPresolveDual_H
/*! \class remove... |
bf743ae98fada7633aaf1810888341b3b8d3c652 | f871e593a589958f45d930d4dbf8f182a03709e8 | /ShaGang/view/Frame.cpp | 593c89c0de626c722a13306aafba04d9e2706058 | [] | no_license | Leroy888/ShaGang | 7dac80411861c2d13c11085ad48a3016f86063e2 | cd1bcbd0383d465eafd25a080b995628508ed7c0 | refs/heads/master | 2023-09-05T07:33:15.379500 | 2021-11-19T09:44:54 | 2021-11-19T09:44:54 | 258,710,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54 | cpp | Frame.cpp | #include "Frame.h"
Frame::Frame(QFrame *parent)
{
}
|
78073b1261192785af3a876c24edffdb2c9aa25d | 6ec96ccaed2fd3805c009faa982e0c0d565a9f57 | /DcMotorLib.h | 371e86cd7ca1beb56cd8aef71d2da82f2a5526d8 | [] | no_license | ugurgudelek/Kinetic-Sculpture | df293dea5d7e50f8c524b9979f530fa368ade4fb | dede43ca21de9f5ded7f58ca7e8f9de001e1401d | refs/heads/master | 2020-05-25T14:22:27.953838 | 2017-03-14T11:07:11 | 2017-03-14T11:07:11 | 84,939,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,954 | h | DcMotorLib.h | /*
Name: DcMotorLib.h
Created: 11/3/2015 3:21:02 PM
Author: Ugur Gudelek
Editor: http://www.visualmicro.com
*/
#ifndef _DcMotorLib_h
#define _DcMotorLib_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#define PROBLEM_ON_START 1
#define PROBLE... |
70dcf70f14fabc6a60df546e5448135d79551982 | 37456072056864466b9ab856e4a02a28e38b322c | /Zamiana.cpp | 6cb8bf8ff8faad813f43992f69a9494cd9d3f76e | [] | no_license | mikolaj2002k02/Zamiana | 3faf5824185fd09fd25b8a27435396957717468f | cf34930224fdd7d9bbea0cd46f2d78a9514563df | refs/heads/master | 2023-01-01T04:32:28.067021 | 2020-10-22T12:46:40 | 2020-10-22T12:46:40 | 306,333,813 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 3,873 | cpp | Zamiana.cpp | #include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bitset>
using namespace std;
long minimumZPliku(string nazwaPliku, int system)
{
long minimum;
//otwórz plik źródłowy do zmiennej ifstream
//wyszukaj minimum w pętli wczytując jw. tylko zamiast w main() tu... |
d73a31517a5f77e5942f6ebb2015ebbfef7a9939 | 31b94ff7ed6c481701f16de8e8feaf641bbc90d0 | /master-firmware/src/arms/arm.cpp | 706d88285446ce38a0655a8181ff9b03f0670d23 | [] | no_license | robotics-seminar/robot-software | 9364d867297a8d4f327cc4e7e514cc02883a7965 | 4e1842c598416eef8b5db7c86da5be6245eca09a | refs/heads/master | 2020-03-19T04:49:00.600530 | 2018-06-02T19:11:12 | 2018-06-02T19:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | arm.cpp | #include "arm.h"
ArmTrajectory::ArmTrajectory(scara_t* arm)
: m_arm(arm), m_duration(0.)
{
scara_trajectory_init(&m_trajectory);
}
size_t ArmTrajectory::size() const
{
return m_trajectory.frame_count;
}
ArmTrajectoryFrame ArmTrajectory::frame(int index) const
{
return {m_trajectory.frames[index].posi... |
022c4977987b68f630bf723408c3cff04da88614 | c3d5bdedfbf5f1b801e1b1f6c7a2ee39d2813f24 | /DisjunktniSkupListe.cpp | 12c050b492d4018cc6ff54b229e157378378fc58 | [] | no_license | adisabolic/traveling_salesman | 5fac5cd3b3b86dd09ff0bc936985ffb3d007d932 | 6b4f41151d3118bc3a331ae8c0f99ea2248ada73 | refs/heads/master | 2022-10-16T17:42:36.347836 | 2020-06-10T11:47:19 | 2020-06-10T11:47:19 | 271,260,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 918 | cpp | DisjunktniSkupListe.cpp | #include "DisjunktniSkupListe.h"
#include <iostream>
using namespace std;
DisjunktniSkupListe::DisjunktniSkupListe(int n):n(n) {
pripadnost.resize(n);
for(int i=0;i<n;i++) {
pripadnost[i] = new Lista(1, i);
}
}
Lista* DisjunktniSkupListe::Nadji(int v) {
return pripadnost[v];
... |
b47c31e27ac5820f51fe34587f7013c67050e190 | 4eedf651b55998027fb01840625d35fbf3020560 | /pcsx2/Netplay/IOPHook.cpp | 7f8499dbb8a20ff1b744f71ef5ddf00a7641b6c3 | [] | no_license | alexsharoff/pcsx2-online | 01e516aa4ad13059144dd04c909817bdf76d3ea4 | 41e28a154342c81be3927d0085eb457166f1271f | refs/heads/master | 2020-04-06T04:30:20.207787 | 2019-10-27T23:40:20 | 2019-10-27T23:40:20 | 1,702,614 | 16 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 3,228 | cpp | IOPHook.cpp | #include "PrecompiledHeader.h"
#include "IOPHook.h"
#include <fstream>
#include <iostream>
#include <iomanip>
IOPHook* g_IOPHook = 0;
//#define LOG_IOP
namespace
{
_PADupdate PADupdateBackup;
_PADopen PADopenBackup;
_PADstartPoll PADstartPollBackup;
_PADpoll PADpollBackup;
_PADquery... |
b552c048f30696de3804107eba296b15ac61bf6a | 28d049067beee963b8e282ed6883028be8c62630 | /Baekjoon/recursion/factorial.cpp | 7e7e688fdb7d1202f872f33cd98b2b7d6c7b5d29 | [] | no_license | GwangYeol-Im/Algorithm | 966446018beb226789b3e28eb83117bc72f5537c | 749a9ce7d7a43f694a4d2b7ef2d00a65fbc00d6b | refs/heads/master | 2023-01-14T05:46:20.084294 | 2020-11-25T05:40:52 | 2020-11-25T05:40:52 | 292,158,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cpp | factorial.cpp | #include <iostream>
using namespace std;
int factorial(int n)
{
if (n == 1)
return (1);
return n * factorial(n - 1);
}
int main(void)
{
int n, result;
cin >> n;
if (n == 0)
{
cout << 1 << endl;
return (0);
}
result = factorial(n);
cout << result << endl;
return (0);
} |
fad8fa24ddbf875424e12ba635541c61643605e4 | 9a797f9a9c1c9fc8d94f7d87bbf49a021f7f499e | /runtime/engine/asr/nnet/u2_onnx_nnet.cc | d5e2fdb6f206ea17c1330adb623be8111475f4fc | [
"Apache-2.0"
] | permissive | anniyanvr/DeepSpeech-1 | 38fb0764c18ef4ee54a5b4bcc1430b69b1434318 | 17854a04d43c231eff66bfed9d6aa55e94a29e79 | refs/heads/develop | 2023-09-01T20:02:07.336091 | 2023-08-14T02:11:45 | 2023-08-14T02:11:45 | 218,518,285 | 0 | 0 | Apache-2.0 | 2023-09-13T09:54:36 | 2019-10-30T12:04:59 | Python | UTF-8 | C++ | false | false | 16,735 | cc | u2_onnx_nnet.cc | // Copyright 2022 Horizon Robotics. All Rights Reserved.
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://... |
50c3025ee940e9095cde875e8351e22d7394f1d3 | 085242ce442d9d4ad0cf6df9464b3b35e54bbe4c | /test/libponyc-run/small-finalisers/additional.cc | cc8ee55a60155c35da1a946a028d7bde0d9befff | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | ponylang/ponyc | 4c0a0b4a138b4213b4d67424ed313f322d17a87a | c393500e8f8222d648f803f78a705baf452bce05 | refs/heads/main | 2023-08-19T03:26:37.611328 | 2023-08-18T13:22:12 | 2023-08-18T14:27:49 | 6,667,084 | 4,901 | 572 | BSD-2-Clause | 2023-09-12T18:17:34 | 2012-11-13T07:38:25 | C | UTF-8 | C++ | false | false | 427 | cc | additional.cc | #include <stdint.h>
#include <pony.h>
#ifdef _MSC_VER
# define EXPORT_SYMBOL __declspec(dllexport)
#else
# define EXPORT_SYMBOL
#endif
extern "C"
{
static uint32_t num_objects = 0;
EXPORT_SYMBOL extern void codegentest_small_finalisers_increment_num_objects()
{
num_objects++;
pony_exitcode((int)num_objects);
... |
7f253565c0f26607929b4c017621c8a3c6b7a668 | efe1f40381251930cb71c8316b5554ef0d5a20ae | /src/locate.cpp | d34bd708e1708ee2bc36b1e09cb06668d1df68ab | [] | no_license | gary-robotics/locate | 6ad76c90074659f98688e4651f9ca8082724c67b | dfd2a7020986c360f8bf917b1d3e1bf5a2c5ff8c | refs/heads/master | 2023-04-06T14:03:15.467980 | 2018-04-20T13:05:39 | 2018-04-20T13:05:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,658 | cpp | locate.cpp | //
// Created by waxz on 18-4-18.
//
#include <locate/locate.h>
#include <string>
using namespace std;
Locate_Fusion::Locate_Fusion(ros::NodeHandle nh,ros::NodeHandle nh_private):nh_private_(nh_private), nh_(nh) {
}
void Locate_Fusion::init_params() {
if(!nh_private_.getParam("base_frame_id",base_frame_id_... |
bbf40a4f471302c9182234169a27b4ec19508880 | c315b5e6023775bbc75e446e57851f95a79dd54b | /Students.h | 1a0a61daf42d4469de522f326237923ea7b9442b | [] | no_license | foleykt/CSC331_Program6 | 3cb16780d5269166c9a585c27d56de5011ec2444 | 3ad5c491387a4fbbb39ca9b5cfb9a73373ab5125 | refs/heads/master | 2021-01-11T05:27:26.777411 | 2017-06-21T18:43:48 | 2017-06-21T18:43:48 | 95,035,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | Students.h | /*
* File: Students.h
* Author: Kyle
*
* Created on October 29, 2015, 8:24 PM
*/
#ifndef STUDENTS_H
#define STUDENTS_H
using namespace std;
#include "SFASU.h"
class Students : public SFASU{
public:
Students();
Students(string newName, long IDnum, int hrs, string coll, int tHrs, string... |
0460c68adf7e3e459e450c835ac8e27ca1ce5ab0 | 74f4020128ad5fd0f7850c3077c367d0e9c3d04d | /1088 - Points in Segments.cpp | 2e0866f58087faf7d0d9e6fadc12faa0d0728ad0 | [] | no_license | lsiddiqsunny/Solved-problem-from-lightoj | 236272496d1317e89219e1f92700248fa78ce841 | d5d5722c50f1dd28168691a29fa7ea7890469b5b | refs/heads/master | 2020-09-27T21:44:46.828861 | 2020-05-28T17:52:41 | 2020-05-28T17:52:41 | 226,616,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | 1088 - Points in Segments.cpp | #include<bits/stdc++.h>
using namespace std;
vector<int>a;
int main()
{
int test;
scanf("%d",&test);
int n,q;
for(int i=0; i<test; i++)
{
a.clear();
scanf("%d%d",&n,&q);
int x;
for(int j=0; j<n; j++)
{
scanf("%d",&x);
a.push_back(x);
... |
4053d151f94fa246db111a45938ccf81aebe6e5f | 1abf985d2784efce3196976fc1b13ab91d6a2a9e | /opentracker/src/input/ARTDataTrackerChomp.cxx | 1bf3d3a9c7bd30f66f03a5d2ed5b173e672f19bd | [
"BSD-3-Clause"
] | permissive | dolphinking/mirror-studierstube | 2550e246f270eb406109d4c3a2af7885cd7d86d0 | 57249d050e4195982c5380fcf78197073d3139a5 | refs/heads/master | 2021-01-11T02:19:48.803878 | 2012-09-14T13:01:15 | 2012-09-14T13:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,213 | cxx | ARTDataTrackerChomp.cxx | /* ========================================================================
* Copyright (c) 2006,
* Institute for Computer Graphics and Vision
* Graz University of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
bc036a52b4b5e020688d064e6bd18c3029181add | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor5/0.66/p | f36296e8726b881e12e6b1981a742d8a07794eb2 | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,199 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
f9d9f770cd1daaa54d54f1f52e84209b8c14fd56 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/old_hunk_7937.cpp | 689adf2235a8702f4b71c4eb9459588960ff6673 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | old_hunk_7937.cpp | if (PATH_MAX - 40 < strlen(gitdirenv))
die("'$%s' too big", GIT_DIR_ENVIRONMENT);
if (is_git_directory(gitdirenv)) {
if (!work_tree_env)
return set_work_tree(gitdirenv);
return NULL;
}
if (nongit_ok) {
*nongit_ok = 1;
|
7ed99e404edc7532fa39e3e437bd8eee84549680 | 4860e7ccb92cd5782e5056ec2bfc6ac6fa3ac783 | /TGS/ProjectData/GameSources/MyUI.cpp | 0ea5d6d042dfb59402a367c7e9abb1da60469cb3 | [] | no_license | KobayashiHaruya/ZyuZyu | f265c543a0695ec8a9e494957a0cad1266ed21c6 | 7a0c0284afe5527b18ef3159d7bd5a2d19008132 | refs/heads/master | 2021-01-08T16:53:09.546276 | 2020-06-13T09:32:02 | 2020-06-13T09:32:02 | 242,076,336 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 55,416 | cpp | MyUI.cpp | #include "stdafx.h"
#include "Project.h"
namespace basecross {
void UI_Base::Draw() {
float X = m_Vertex.x / 2.0f;
float Y = m_Vertex.y / 2.0f;
vector<VertexPositionColorTexture> vertices;
Col4 color = Col4(1.0f, 1.0f, 1.0f, 1.0f);
vertices.push_back(VertexPositionColorTexture(Vec3(-X, Y, 0), color, Vec... |
056e190deef275d867745e6e3bf6d55c0809f57d | aa7f65ccd694db86300dc15e5cd798d15925fd67 | /src/keyboard.h | 83fcc1f0c21aa57068f2f587f43c9b11a7851376 | [
"MIT"
] | permissive | laxa88/wyngine-sdl | b28030a745a512b042749d4100592f9c6fa4e075 | a2739abcb51dca7c5f2c80f268aaf54b6d6437bf | refs/heads/master | 2022-11-15T10:58:07.773007 | 2020-07-05T18:18:39 | 2020-07-05T18:18:39 | 268,315,594 | 0 | 0 | null | 2020-07-05T06:21:43 | 2020-05-31T16:09:49 | C++ | UTF-8 | C++ | false | false | 2,105 | h | keyboard.h | // Reference:
// https://www.falukdevelop.com/2016/08/18/simple-sdl-2-keyboard-key-status/
#include <SDL2/SDL.h>
#include <stdio.h>
#include <string>
#include <map>
class WY_Keyboard
{
Uint8 prevKeystate[SDL_NUM_SCANCODES];
Uint8 currKeystate[SDL_NUM_SCANCODES];
unsigned char charPressed;
public:
WY_... |
53a880c8e8e8fea94e0eb901f56ca8ef341d625f | 0fefa37e79119600c684f7b1fdaced4ea4e1cdb3 | /src/table/writer.cpp | 50ee7c690758a3a18da9330f56793b5e31aece05 | [] | no_license | snu5mumr1k/mapreduce_toolkit | cc8e78567fa9c5432af67b9697e72ff272c5cc7f | 9cfaa35e61a18e42acb3fcd2d9dd6bec53e38271 | refs/heads/master | 2021-01-20T06:23:23.756057 | 2017-05-18T12:42:55 | 2017-05-18T12:42:55 | 89,872,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | cpp | writer.cpp | #include <table/writer.h>
#include <helpers/singleton.h>
#include <params.h>
#include <iostream>
TableWriter::TableWriter(const std::string &filename, const std::vector<std::string> &columns):
out_(Singleton<Params>()->Get("tables_dir") + filename),
columns_(columns)
{
if (!out_.is_open()) {
throw ... |
eae481849d400b208d6f893a61285b1790b2c795 | ae4942ed4819508a39201d697aa43d69dd675414 | /ProcessPool.cpp | cc0a7f349d66afdab96badf438d5d2ba3d4f63b9 | [] | no_license | uestchuangtao/Practice | 55c1e07bc01cbe67f1bf6a18ee3808a26c88573c | ef588f7b151e1e8a522b2fccc62ec8f83c9f0b20 | refs/heads/master | 2021-01-02T00:59:36.072246 | 2017-08-01T07:45:36 | 2017-08-01T07:45:36 | 98,948,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | cpp | ProcessPool.cpp | //
// Created by ht on 17-7-31.
//
#include "ProcessPool.h"
void detail::setNonBlocking(int fd)
{
int flag = fcntl(fd, F_GETFL);
flag |= O_NONBLOCK;
int ret = fcntl(fd, F_SETFL, flag);
assert(ret == 0);
}
void detail::addFd(int epollfd, int fd)
{
struct epoll_event event;
event.data.fd = fd;
... |
719571d59a345129b86653815372f326dc395a38 | 3201a80841d6183ab35e1eb8071d8acf0c4f715a | /src/include/course.hh | 8363d5aa5196b2bfc7473f3df3bf520541578287 | [] | no_license | icalamesa/Practica-PRO2 | 3ca5ca8853ccd7fb7dfbea60cafd866c8489044f | f927f00c74fb21080fe2880aa9a82dedf33e41c6 | refs/heads/main | 2023-05-04T07:57:27.674909 | 2021-05-20T08:05:37 | 2021-05-20T08:05:37 | 355,328,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,473 | hh | course.hh | /**
@file
@brief Course class specification.
@author Ivan Cala Mesa
@date 15th of May of 2021
*/
/** @cond */
#include <string>
#include <map>
#include <vector>
/** @endcond */
#include "sessions.hh"
using namespace std;
#ifndef COURSE_HH
#define COURSE_HH
/** @brief Repository of @ref Session inst... |
665f118cbe319d489259c3b6eb9c86865933cc46 | ff3351eab980e9f6b8eda2ba2a59631ad965ed58 | /Player.cpp | d9cd12669451ee316e177d9bb002384f0f9853e8 | [] | no_license | dab-bot/Qwirkle | 8249f30394b60cbf25a1407e409f7b8eb52c78f0 | bad213c1b4a8af01d074f44dbb169fada312ec4b | refs/heads/main | 2023-09-01T14:40:41.535916 | 2021-11-03T13:24:36 | 2021-11-03T13:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,597 | cpp | Player.cpp | #include "Player.h"
#include <iostream>
#define MAX_PLAYER_HAND_SIZE 6
// Construct Player object with specified name and score of 0
Player::Player(string n) :
name(n),
score(0),
aiStatus(false)
{
hand = new LinkedList();
}
Player::Player(bool ai) :
name("QuirkleBot"),
score(0),
aiStatus(... |
a0d21123906b1b574a2b8751147fad557e63c049 | 51ceded9b6fc4c51cb91863e59d9a79c6d1a6e65 | /src/kbblevelconfigurationwidget.cpp | 6be17d275537fbb9c216a8093ffc57c2dcc3cac4 | [
"BSD-3-Clause",
"CC0-1.0"
] | permissive | KDE/kblackbox | 671ce7d62ddfd1c3abec63d40b9fcdd0f4723bf4 | 425a65b680dd3cdf3e7a233e463ecdd99c5ba65a | refs/heads/master | 2023-07-20T02:46:24.424874 | 2023-07-19T02:11:10 | 2023-07-19T02:11:10 | 42,717,334 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,623 | cpp | kbblevelconfigurationwidget.cpp | /*
SPDX-FileCopyrightText: 2006, 2007 Nicolas Roffet <nicolas-kde@roffet.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kbblevelconfigurationwidget.h"
#include <QGridLayout>
#include <KLocalizedString>
#include <KPluralHandlingSpinBox>
#include "kbblevelconfigurationpreview.h"
#include "kbbs... |
7accdda4f8b885f47bd0c8499fcab86f01407f8c | 6e13654afad97df5b8edac5586e2aee150574da2 | /src/menustate.cc | ca24aca5beabe386553bc2c21f4b23c1687e7d9b | [] | no_license | arethsu/breakout | 0addecfdd9ced79210d181a90c82f0816e340eb9 | eb7b33ad2454738646a15040271b149c65432739 | refs/heads/master | 2020-04-20T08:46:33.568153 | 2019-02-01T19:25:34 | 2019-02-01T19:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,885 | cc | menustate.cc | #include "menustate.h"
extern const int SCREEN_WIDTH;
extern const int SCREEN_HEIGHT;
MenuState::MenuState( SDL_Renderer* renderer, map<string, SDL_Texture*>& all_textures )
:renderer{ renderer }
{
filter_textures( all_textures );
init();
}
MenuState::~MenuState()
{
for ( Sprite* sprite : sprites )
{
... |
f209064dea13a562c4733f27357f58798c7148ef | 8914a336ae91f0af00bceeffcc00fbb265308684 | /FireController/tests/MotorCalibration/MotorCalibration.ino | a5212ebc274cb5056c5f96d519ff1d3077100bf6 | [] | no_license | jawshv/kiwi | 3b939bbd25c01cb302538c2985cc7d1df423ea66 | 969da41466fb2f6da5449abb47d6fa40eb0cc1c5 | refs/heads/master | 2023-02-22T22:28:14.430908 | 2020-10-19T05:30:55 | 2020-10-19T05:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,639 | ino | MotorCalibration.ino | #include <RoboClaw.h>
RoboClaw motor = RoboClaw(&Serial4, 10000);
int encoder_value = 0;
int motor_address = 0x80;
int motor_baud = 460800;
float position = 0;
int t = 0;
void setup()
{
Serial.begin(115200);
motor.begin(motor_baud);
char v[48];
motor.ReadVersion(motor_address, v);
Serial.write(v... |
b6a528c717e55a32510c1681485ea2de430751f4 | 77b8be7809f6305b063ebfa6f5ef30434c418156 | /Algorithms/Easy/MonotonicArray.cpp | 1623b4aeb68e51ba5b9402ea10df89587e040dfc | [] | no_license | aj211y/LeetCode | ce6ea5ae7243d203c5ff682e95b7fc1b9c0d868a | 7e1cd2cb366a64e0d392559679dfd158c20fe1cc | refs/heads/master | 2020-03-27T04:37:21.380235 | 2018-09-19T07:35:09 | 2018-09-19T07:35:09 | 145,955,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | MonotonicArray.cpp | //No.896 - AC
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
bool isMonotonic(vector<int>& A) {
bool allSame = true;
for(int i=0; i<A.size()-1; i++)
{
if(A[i]!=A[i+1])
{
allSame = false;
if(A[i]>A[i... |
cac0549e9957e62ccebb7082126fdb877d277996 | efb739bb2dd3c9dd07cc26d62ffa46973760b7f2 | /src/fheroes2/castle/castle_tavern.cpp | 2496c31dbd107408850ef155dc09348237d32528 | [] | no_license | infsega/fheroes2-playbook | a6c2bb632ac1582a6acd056326fd14831d9bdb44 | a1c2e43b6f7ce72a3e3eec29aad95ea6613200a9 | refs/heads/master | 2020-06-02T07:42:52.494152 | 2012-06-28T23:09:43 | 2012-06-28T23:09:43 | 4,770,518 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,080 | cpp | castle_tavern.cpp | /***************************************************************************
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
* *
* Part of the Free Heroes2 Engine: *
* http://... |
4c994aecc52221a61dd0ff9fd8ae2f6e091329dd | e1f3172d7a034930e4fbc66b2560868a0d18bbf2 | /Chapter3/ConstructorOver2.cpp | a5fad2d994b5e2003fc9576355a16ef277bf363f | [] | no_license | vallisneria/hknu2-programming-to-cpp | 1cace2d40de741ec0f94083f4910adda1cea8502 | 4c76f91cb349bb1c48cf8adf94cb7c174227ebd1 | refs/heads/master | 2023-03-08T09:59:02.282119 | 2019-08-31T13:40:08 | 2019-08-31T13:40:08 | 342,198,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | ConstructorOver2.cpp | #include<iostream>
#include<tchar.h>
using namespace std;
class CMyPoint{
private:
int m_x=0;
int m_y=0;
public:
CMyPoint(int x){
cout <<"CMyPoint(int)"<<endl;
//x값이 100이 넘는지 검사하고 넘으면 100으로 맞춘다
if (x > 100) {
x=100;
}
m_x=100;
}
CMyPo... |
b171f52813e1d466b30dbbf3f048229cd21c1feb | 45468c31f0bf28a52ec8a28a30b585683b511491 | /this_Keyword.cpp | d4f6c2f5351e9cf4e8f8d06d787314a5961b7b30 | [] | no_license | hrishi77/Logic_Building_CPP | 6ba9e1262c6cf8c2e8a454e3944ee4c3451f8560 | b358f562a04ae8a3d186cfa7093cd689642bb861 | refs/heads/master | 2020-12-23T13:53:08.116730 | 2020-04-10T18:10:43 | 2020-04-10T18:10:43 | 237,171,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | this_Keyword.cpp | //this keyword use in cpp demo
#include <iostream>
using namespace std;
class Demo
{
public: //acess specifier
int i;
int j;
Demo()
{
i= 20;
this->j = 10;
}
Demo(int i,int j)
{
this->i = i;
this->j = j;
this->fun(11);... |
b6f57ea42be9316dbc7b2b3ed4b3d4a11d97e54e | 376fd6e86290050719798c7d8ea8252b2c0bc8c3 | /src/setup/SetupFileLoader.h | a886fb82d1334fbf6aa994b18f528db153a3ce7f | [
"MIT"
] | permissive | QichenW/ArticulatedFigure | b460ab0244007c663ee839a0e372564cc1970f8c | eb211861a5280384732c63b271f31778c42c6987 | refs/heads/master | 2020-04-11T08:03:13.605037 | 2017-04-07T09:19:57 | 2017-04-07T09:19:57 | 70,967,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | h | SetupFileLoader.h | //
// Created by Qichen on 9/25/16.
//
#ifndef GLUTPROJECT_SETUPFILELOADER_H
#define GLUTPROJECT_SETUPFILELOADER_H
#include <string>
#include <articulated/ArticulatedMan.h>
#if defined(__APPLE__)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
class SetupFileLoader {
public:
static void loadPreference... |
c25a9d06a28bb655f675d995f014da9fe3a51fcc | 5360403baa4640073c94a4ff36a8b0deb160e163 | /src/Feeder.cpp | 20d4bd1c5e0758d3eb17c21e7e7316e3660faa25 | [] | no_license | junsoopark/sp | 0f2792f076af1c386994877261bd9373c3196c15 | 2f1e72e0e75ce6ed238b51630e6c58cc54e315cd | refs/heads/master | 2016-08-03T21:52:24.113400 | 2013-05-28T05:11:38 | 2013-05-28T05:11:38 | 9,953,684 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | Feeder.cpp | #include "Feeder.h"
Feeder::Feeder(char* a_pName)
{
m_strName = a_pName;
}
bool Feeder::Feed(Buffer* a_pBuffer)
{
SetChanged();
NotifyObservers((long)a_pBuffer, 0);
}
const char* Feeder::GetName()
{
return m_strName.data();
}
|
bf908951b29153d98989bd769e787f6bae6ad07a | 8a08c5b95580e07ae48c298ad2d4082874d9bde0 | /yootMarbleEngine/User.cpp | 2ab4b81209e0d1eadb87d7bed0e48637928d3f68 | [] | no_license | pcsewj14/OOP | 064658e20cbcd858357a3d97af114a2f4331b54e | af630f485390f567c1c6ea3331f521dfcc7fdb69 | refs/heads/master | 2021-01-22T05:38:36.481383 | 2017-05-27T10:40:55 | 2017-05-27T10:40:55 | 92,483,661 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 23,367 | cpp | User.cpp | #include "User.h"
#include "GameDisplay.h"
//#include "ui_User.h"
//#include "showyout.h"
#include <QtGlobal>
#include <QTime>
#include <QDebug>
#include <qimage.h>
#include <qpixmap.h>
extern GameDisplay* d;
User::User(int team)
{
yout = 0;
this->team = team;
//말들을 초기환다.
for(int i = 0; i < PIECE_NUM; i++)
{
p... |
26ae15903b7c0e76c4a7cb8b200a41b5432f5f0f | f61e971b402c99864899f9c4762fceeeb5300f74 | /test/Vector2_test.cpp | 0cd78a669acd8c2eb1b988416ba552a93c9b9418 | [
"MIT"
] | permissive | lwesterl/PhysicsEngine | 5c7d85c1f23932880604c11c90e3ed21711657d1 | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | refs/heads/master | 2020-04-15T18:09:58.252610 | 2019-08-30T08:43:24 | 2019-08-30T08:43:24 | 164,903,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,750 | cpp | Vector2_test.cpp | /**
* @file Vector2_test.cpp
* @author Lauri Westerholm
* @brief Test main for Vector2 class
*/
#include "../utils/Vector2.hpp"
#include <iostream>
#include <cassert>
/**
* @brief Test main
*/
int main() {
// constructor test
std::cout << "Constructor Test" << std::endl;
pe::Vector2f vec... |
20b07993fbb3e42a46696db3e2a1b8fbee393ce4 | b09a8f45f3491e7b5590fd5f7b971528e03aa8f2 | /src/Tests/TestFunctional.cpp | 077f4176bad5dc20387bea7fe880685d398e3624 | [] | no_license | PoiXP/WhatIBuild | f27ca8c66c5b7cbe14ffeab14c69fae829f8002f | ac310bb8cdf7891fd5887461ed8f46ece97354ff | refs/heads/master | 2021-01-22T20:25:53.772189 | 2012-11-11T15:12:34 | 2012-11-11T15:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,914 | cpp | TestFunctional.cpp | #include <UnitTest++\src\UnitTest++.h>
#include "Build.h"
#include "BuildParser.h"
#include "ReturnCode.h"
using namespace WhatIBuild;
SUITE(Test_ParseMSVCSolution)
{
TEST(testFileNotFound)
{
Build build;
CHECK_EQUAL(e_Return_FileNotFound, Parser::ParseVSSolution("invlid_path", build));
}
... |
c7081dd52683bbb4a5d80ec7ea859924d2086009 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/CodeJam/2022_1_Round_C/2_Squary/hyo.cpp | 9fb8f9906b72deca53365738e11284de24ee752b | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | C++ | false | false | 970 | cpp | hyo.cpp | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(int TestCase) {
int n, k;
cin >> n >> k;
long long s = 0, s2 = 0;
for(auto i = 0; i < n; ++i) {
long long x;
cin >> x;
s += x, s2 += x * x;
}
if(k == 1) {
if(s == 0) {
... |
447ee8fcb3d05a62eec1aaad8f4a15e83fac99b6 | 45795f5735cfff4c83a83aa726b7483eb5a7e8c0 | /smixx_v47r1/x86/src/translator/createobjectins.cxx | dcf7e1878c0f24cc6e3e84987cdfa0e81192f6f5 | [] | no_license | wmoore28/clas12-epics-third-party-libs | 260286981c57167f1852cff13b975e6c9ba5a907 | b8701fee2638b5a0b6dcd7da5b5fd7aa3413b2ce | refs/heads/master | 2020-03-16T22:48:44.195456 | 2018-05-11T14:56:13 | 2018-05-11T14:56:13 | 133,053,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,944 | cxx | createobjectins.cxx | // CreateObjectins.cxx: implementation of the CreateObjectIns class.
//
// B. Franek
// April 2010
//////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <assert.h>
#include <string.... |
c2041dd6cb34e944f62e4cb955f3ac586108a1da | 9eb4f472070b39db09e7088b173edb24d2af4652 | /Hadrons/Graph.hpp | 65c741069fdb3703616d8e0962657a207f5b51bc | [] | no_license | guelpers/Hadrons | 55dd3b2e5e87605e459f5066f47238ab452aeae0 | 735e5c0f10bbfaaf52e2efc5ead1010f5ac50bc6 | refs/heads/master | 2023-02-23T12:13:29.085574 | 2020-03-27T17:53:07 | 2020-03-27T17:53:07 | 252,408,759 | 0 | 0 | null | 2020-04-02T09:17:12 | 2020-04-02T09:17:11 | null | UTF-8 | C++ | false | false | 18,275 | hpp | Graph.hpp | /*************************************************************************************
Grid physics library, www.github.com/paboyle/Grid
Source file: Hadrons/Graph.hpp
Copyright (C) 2015-2019
Author: Antonin Portelli <antonin.portelli@me.com>
This program is free software; you can redistribute it and/or modify
it... |
f606fb5cdb9919379ae16d9a024fc6fd7f70155c | 833e2e24593e85f4d48c4e4b5a5fd468378088ce | /ip_packet.h | a042b04b413bc002934f1f63d8a1b754feb4df7a | [] | no_license | FMX/packet_flip | 8955035ef0a43c5e98ca23b69417d5e0fcb4f95f | 7710968851173097888f4ee07284388a1d7cb677 | refs/heads/master | 2021-06-02T16:41:47.976489 | 2016-09-05T03:08:38 | 2016-09-05T03:08:38 | 67,197,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | ip_packet.h | //
// Created by MINX Feng on 16/9/2.
//
#ifndef PACKET_FLIP_IP_PACKET_H
#define PACKET_FLIP_IP_PACKET_H
#include "commonheader.h"
#include "structs.h"
class ip_packet {
private:
unsigned short version;
unsigned short headerlen;
unsigned char tos;
unsigned short totallen;
unsigned char identifier... |
b89c6151bc005b8d0d0dc9e0566fc578b2e6ba67 | 890eb8e28dab8463138d6ae80359c80c4cf03ddd | /SMPF/SMPFProtocol/Core/Channel/RSM/smpf_RsmEventSchedInfoCtrl.cpp | 1c91dc9f27892c9939cf82cc6bdb680757b57951 | [] | no_license | grant-h/shannon_S5123 | d8c8dd1a2b49a9fe08268487b0af70ec3a19a5b2 | 8f7acbfdcf198779ed2734635990b36974657b7b | refs/heads/master | 2022-06-17T05:43:03.224087 | 2020-05-06T15:39:39 | 2020-05-06T15:39:39 | 261,804,799 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,303 | cpp | smpf_RsmEventSchedInfoCtrl.cpp | Line 141: [RSM(API),%s] : ESI table is registred to RSIG in CreateESIT (RAT:%s)
Line 146: [RSM(API),%s] : (F) Unknown Rat type is set on ESIC creation. (RAT:%s)
Line 154: [RSM(API),%s] : ESI table is registred to RSIG in CreateESIT (RAT:%s)
Line 159: [RSM(API),%s] : (F) Unknown Rat type is set on ESIC creation. (RAT:%s... |
b81676f4e681e0d8af7e2960375a741f81dfad1d | a4a03d391f0c911e5b0aed27fe21e4eb36624609 | /HDU/6298/14830812_AC_670ms_1372kB.cpp | 7693e3f8239bf6f9d20fe23c0418d68548467d43 | [] | no_license | jiaaaaaaaqi/ACM_Code | 5e689bed9261ba768cfbfa01b39bd8fb0992e560 | 66b222d15544f6477cd04190c0d7397f232ed15e | refs/heads/master | 2020-05-21T21:38:57.727420 | 2019-12-11T14:30:52 | 2019-12-11T14:30:52 | 186,153,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | 14830812_AC_670ms_1372kB.cpp | #include<map>
#include<set>
#include<ctime>
#include<cmath>
#include<stack>
#include<queue>
#include<string>
#include<vector>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
#include<algorithm>
#define lowbit(x) (x & (-x))
typedef unsigned long long int ull;
typedef long long int ll;
const doub... |
7cf3d3db04d00269c0fdace68ccaf681b0372cae | 3cdaaf8200e983388b349325fa2aeedf17d801d6 | /settingdialog.cpp | 40031f540b3664dd9004a3ac2119dfa18ab4368e | [] | no_license | welter/qt_phoneremoter | 59aff00da18dbf8a1fd186052fa9111372daa1c0 | 8d2f99467292512ad866964d34e2e72fa3218ed9 | refs/heads/master | 2021-08-08T12:33:53.802171 | 2017-11-10T09:20:45 | 2017-11-10T09:20:45 | 107,765,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cpp | settingdialog.cpp | #include "settingdialog.h"
#include "ui_settingdialog.h"
#include <mainwindow.h>
settingDialog::settingDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::settingDialog)
{
// char * _p=parent;
p=dynamic_cast <MainWindow *>(parent);
ui->setupUi(this);
ui->edPhoneAddr->setText(dynamic_cast <MainW... |
a656cf3e7447d63ebc8772c7cbd70e6928622342 | 2f043c25112654d72a09ba8f0c1bfaba9a846b1b | /toltec/ui/commands/createCube.cpp | 48c25a8381774a7aa1ccd270e788d74f8afb329a | [] | no_license | fsanges/toltec | 79636833935fcc80447c7df939f2f8437acf3665 | 164e80bca4c72adb405e567db6c6703540edf00b | refs/heads/master | 2020-06-11T22:11:19.424655 | 2017-09-30T08:32:01 | 2017-09-30T08:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,050 | cpp | createCube.cpp | /*-----------------------------------------------------------------------------
* CREATED:
* 03 VIII 2017
* CONTRIBUTORS:
* Piotr Makal
*-----------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
* IM... |
3815740633fe6cd08d6e75991c626acfc4be3d34 | 13798217d6576d7c544d95fd0f66dd9407c09198 | /include/JE/GRAPHIC/jeTilemap.h | cc5d703030af3a14e02a4da4435d83328550c3f1 | [] | no_license | Jellonator/jeEngine | 95de8b7eebc5c11203813b88ffbb6b3cdf3dc809 | 1241c624fc0ac70e1a111d841ffb9c4c4485794f | refs/heads/master | 2021-01-17T09:19:02.498438 | 2016-04-11T11:27:37 | 2016-04-11T11:27:37 | 14,193,632 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,072 | h | jeTilemap.h | #pragma once
#include "jeCanvas.h"
#include "../jeMain.h"
#include "../jeUtil.h"
#include <memory>
#include <map>
#include <vector>
namespace JE{namespace GRAPHICS{
class Tileset;
class Tilemap;
class Tileset{
public:
Tileset(std::string file, int twidth, int theight, int offsetX = 0, int offsetY = 0, int spaceX = 0,... |
4a5e1ea8f3855f78ff9005b60e05ea601c1409f7 | a14d4121c5a690d2b86f11e9114fcdf907a187da | /BaseFramework/Src/System/Shader/EffectShader/KdEffectShader.cpp | 35907712772a61c20a8e026a169ebb3ebe1b5800 | [] | no_license | TN11111/findWork | ae470c612240061fe389b4c9bb860b3dd103c367 | 2da49fc42d816e62acb80648c337f8d9bda9fd53 | refs/heads/master | 2023-08-14T05:43:38.397894 | 2021-10-17T06:10:40 | 2021-10-17T06:10:40 | 413,187,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,499 | cpp | KdEffectShader.cpp | #include "System/KdSystem.h"
#include "KdEffectShader.h"
void KdEffectShader::DrawLine(const Math::Vector3 & p1, const Math::Vector3 & p2, const Math::Color & color)
{
// 定数バッファ書き込み
m_cb0.Write();
// 頂点レイアウトをセット
D3D.WorkDevContext()->IASetInputLayout(m_inputLayout);
//
Vertex vertex[2] = {
{p1, {0,0}, co... |
4ce21c3a38736022d49358961496b2cc966dcba1 | 742841d8bdb699b88a72ff264cb0d08b5152e3a0 | /src/Abstraction.hpp | 6943ecd6ae8fd1932b991ccf5ef304bc03b953c0 | [] | no_license | daviidsiilva/mpi-system-dynamics | 99a72e1a2337f018fcfdcf4d54622f544cd21758 | 470a46226d4194e4135923bc2cc4850e4495cad6 | refs/heads/master | 2020-06-24T16:22:02.177581 | 2019-07-26T12:41:56 | 2019-07-26T12:41:56 | 199,014,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,628 | hpp | Abstraction.hpp |
#ifndef ABSTRACTION_HPP
#define ABSTRACTION_HPP
#include <stdexcept>
namespace Abstraction{
typedef enum{
type_unknown = 0,
type_char,
type_unsigned_char,
type_short,
type_unsigned_short,
type_int,
type_unsigned_int,
type_long,
type_unsigned_long,
type_float,
type_double
} DataType;
}
templa... |
4632d0e1230a830cc2be4cfa1f2abdae6bdd6baf | 2bf8d40eacf28a4c64c818e3aa4cc75b95028eaf | /src/set_graph.cpp | 244443834d3a891506b54bc67044bccfceb06d4e | [] | no_license | mark-by/graph | f7da2298829013ad78c6f92df5e9d4b3610a1455 | a7245b6f7eb0c667c3b06289a43caca89de115bc | refs/heads/master | 2022-09-13T21:29:09.830826 | 2020-05-20T18:34:00 | 2020-05-20T18:34:00 | 265,077,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cpp | set_graph.cpp | #include <set_graph.h>
void SetGraph::addEdge(int from, int to) {
_vertices[from].insert(to);
}
int SetGraph::verticesCount() const {
return _vertices.size();
}
std::vector<int> SetGraph::getNextVertices(int vertex) const {
std::vector<int> result;
for (auto &v : _vertices[vertex]) {
result.p... |
02daede0072e677ca5d9eb640aa731eecade6715 | 97478e6083db1b7ec79680cfcfd78ed6f5895c7d | /chrome/browser/vr/model/model.h | 4ac415eceeaa93d4a3800a91b78dfbf8cba58fe2 | [
"BSD-3-Clause"
] | permissive | zeph1912/milkomeda_chromium | 94e81510e1490d504b631a29af2f1fef76110733 | 7b29a87147c40376bcdd1742f687534bcd0e4c78 | refs/heads/master | 2023-03-15T11:05:27.924423 | 2018-12-19T07:58:08 | 2018-12-19T07:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,608 | h | model.h | // Copyright 2017 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 CHROME_BROWSER_VR_MODEL_MODEL_H_
#define CHROME_BROWSER_VR_MODEL_MODEL_H_
#include "chrome/browser/vr/model/color_scheme.h"
#include "chrome/brow... |
dcb442d84061d11ec2b2245d4d090f31e5e7c6f7 | 98278b136825a0cf170bcb2d419ff72c5f28e435 | /svf/SVF/tests/cpp_tests/member-variable.cpp | f1ec57dd023850e2d0aa7ff8db2d8e4d2db74906 | [
"Apache-2.0",
"GPL-3.0-or-later",
"NCSA"
] | permissive | cponcelets/savior-source | b3a687430270593f75b82e9f00249bdb4e4ffe13 | ac553cafba66663399eebccec58d16277bd1718e | refs/heads/master | 2021-05-23T18:35:33.358488 | 2020-09-30T08:18:29 | 2020-09-30T08:18:29 | 299,001,996 | 1 | 0 | Apache-2.0 | 2020-09-27T09:57:26 | 2020-09-27T09:57:25 | null | UTF-8 | C++ | false | false | 581 | cpp | member-variable.cpp | #include "aliascheck.h"
int global_obj_a;
int *global_ptr_a = &global_obj_a;
int global_obj_b;
int *global_ptr_b = &global_obj_b;
class A {
public:
virtual void f(int *i) {
MUSTALIAS(global_ptr_a, i);
NOALIAS(global_ptr_b, i);
}
};
class B {
public:
B(A *a): _a(a) {}
virtual void f(i... |
055d47d9e04b71f0f3c7bdffdabf35686f4b13c5 | 7f16497d6eb7ea596ec26bee5215ed92a28c11b8 | /alphastar/alphastar-cs501ab-usaco-platinum-summer-2018-s2/14-advanced-dynamic-programming-1/05 - Buying Feed.cpp | c2a15e7baa6fcfd37da7bba8b9fbfed1f002dc28 | [] | no_license | thecodingwizard/competitive-programming | 6c088dc15116409583429486951a94a87f6c316b | 76f8659dbb935604a31fad26967fdfa413141244 | refs/heads/master | 2022-05-27T02:25:34.593546 | 2022-05-19T06:00:00 | 2022-05-19T06:00:00 | 159,700,280 | 83 | 25 | null | 2021-10-01T15:26:22 | 2018-11-29T17:03:04 | C++ | UTF-8 | C++ | false | false | 4,409 | cpp | 05 - Buying Feed.cpp | /*
Buying Feed
===========
Farmer John needs to travel to town to pick up K (1 <= K <= 10,000)
pounds of feed. Driving a mile with K pounds of feed costs FJ K*K
cents; driving D miles with K pounds of feed in his truck costs FJ
D*K*K cents.
FJ can purchase feed from any of N (1 <= N <= 500) stores (conveniently
numbe... |
4b14bd1bf6ca4e7d31072a15bb5d044875b475ef | 5a6dba6e78965d9bb4ad78a605e771a19d8c7186 | /src/cpp_pop_modeler/MatPowerBus.hxx | 1b1ad024ab460bacf1a4501c8c1c5040739e4ed1 | [] | no_license | klorel/ddd | 0b162348d6d089c65b0c329bcc94c7933f6f3aa6 | 1a1d501a36e8a96303ab2fe188b01169fe7afd61 | refs/heads/master | 2020-05-21T21:01:27.935993 | 2016-10-06T10:54:01 | 2016-10-06T10:54:01 | 61,387,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | hxx | MatPowerBus.hxx | __MAT_POWER_DATA__(bus_i)
__MAT_POWER_DATA__(type)
__MAT_POWER_DATA__(Pd)
__MAT_POWER_DATA__(Qd)
__MAT_POWER_DATA__(Gs)
__MAT_POWER_DATA__(Bs)
__MAT_POWER_DATA__(area)
__MAT_POWER_DATA__(Vm)
__MAT_POWER_DATA__(Va)
__MAT_POWER_DATA__(baseKV)
__MAT_POWER_DATA__(zone)
__MAT_POWER_DATA__(Vmax)
__MAT_POWER_DATA__(Vmin) |
e6919eeb1d3153b5bfacbca880afa58580dbefe9 | a5a04c9377fa7d405788045ea4d3ae49eaa74ec5 | /tests/check_model.cpp | 5671fe0195117ec9fe9546241a00cc8e8028cce9 | [] | no_license | bonnefoa/bull | 895256852b0f06d5c749252f4e2b59724a1007d5 | 8ffb35819bd3f6dc42dff75c221e8ca84f34cfc7 | refs/heads/master | 2020-03-30T17:22:49.790294 | 2013-07-12T08:02:27 | 2013-07-12T08:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | check_model.cpp | #include <stdlib.h>
#include <check.h>
#include <bl_model.h>
#include <bl_loader.h>
START_TEST (test_model)
{
BlModel *blModel = loadModelFile("tests/cubeTextured.dae")[0];
printf("Uvs size is %zu\n", blModel->uvs.size());
fail_unless(blModel->uvs.size() == 1);
}
END_TEST
Suite *model_suite (v... |
e2fd80fdb39a08468c4c24285cf46e5054b0a7a5 | f335d085aa484fbe617430e3fbd50b28747df045 | /SrcLib/core/arData/test/tu/include/GenericTLTest.hpp | 347a36e28795a5ade142e5f87a246ddfd403b078 | [] | no_license | fw4spl-org/fw4spl-ar | 60f5e7fc57e42c15bd8f6dbd57dbcb6c62ed6b46 | d2a35bf368373f232d09c26f168eaa363c6ae197 | refs/heads/master | 2021-01-24T06:35:33.113302 | 2018-09-05T12:44:58 | 2018-09-05T12:44:58 | 31,675,795 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | hpp | GenericTLTest.hpp | /* ***** BEGIN LICENSE BLOCK *****
* FW4SPL - Copyright (C) IRCAD, 2009-2016.
* Distributed under the terms of the GNU Lesser General Public License (LGPL) as
* published by the Free Software Foundation.
* ****** END LICENSE BLOCK ****** */
#ifndef __ARDATA_UT_GENERICTLTEST_HPP__
#define __ARDATA_UT_GENERICTLTEST_... |
e268f4f9116f32a6ea53d9f6870a803e5ddeefb2 | 232157c2066d929c48f460d50f8fcaed67df0425 | /Classes/MenuLayer.cpp | 4e09a4aaa94c7919cdc40101cf8364719f15a89e | [] | no_license | UenoTAKAFUMI/BaseGame | 2437d80849f4a8dd974a39b08e9ecf92d7d5ea27 | 994d0e2656f759827ba9e2ba07e4f5267a41593c | refs/heads/master | 2016-09-01T16:53:20.279415 | 2014-07-19T04:12:14 | 2014-07-19T04:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,046 | cpp | MenuLayer.cpp | //
// MenuLayer.cpp
// BaseGame02
//
// Created by P on 2014/07/17.
//
//
#include "MenuLayer.h"
#include "TitleScene.h"
using namespace cocos2d;
// staticメンバ変数の初期化
Layer* MenuLayer::mFromLayer = 0;
// メニュー画面レイヤ作成関数
MenuLayer* MenuLayer::create(cocos2d::Layer* const pFromLayer) {
// 呼び出し元のレイヤ
mFromLayer... |
fdf5487af49927053e068eed5c0f34d5d60da484 | 14582f8c74c28d346399f877b9957d0332ba1c3c | /branches/pstade_1_03_5_head/pstade_subversive/pstade/oven/counting.hpp | eafc451506206aeb9a9986da0e4e9c9da2420bf2 | [] | no_license | svn2github/p-stade | c7b421be9eeb8327ddd04d3cb36822ba1331a43e | 909b46567aa203d960fe76055adafc3fdc48e8a5 | refs/heads/master | 2016-09-05T22:14:09.460711 | 2014-08-22T08:16:11 | 2014-08-22T08:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,057 | hpp | counting.hpp | #ifndef PSTADE_OVEN_COUNTING_HPP
#define PSTADE_OVEN_COUNTING_HPP
// PStade.Oven
//
// Copyright Shunsuke Sogame 2005-2007.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Note:
//
// '__w64 ... |
71657b963b6bb918323cac3690155da61f311a9b | 7baaa939f59eb0dadb07b663a72ac842863a2f8a | /anul1/ASD/liste_dublu_inlantuite.cpp | 91f42fa97a5ef6d79c8a5d3facc430fce7dae4c8 | [] | no_license | cosmin-d/FMI | 4457b734227181501060e9e29a543a02d322ae2f | bc079c03fecf457e4694bc1fa27daba2a4fb80fb | refs/heads/master | 2020-06-25T17:45:20.626278 | 2017-08-09T15:02:53 | 2017-08-09T15:02:53 | 96,980,317 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,287 | cpp | liste_dublu_inlantuite.cpp | #include<iostream>
#include<conio.h>
using namespace std;
struct nod{
int nr;
nod* ls,*ld;
};
nod *s,*d,*c,*e;
int n,m,i,val;
void creare(nod*& s,nod*& d){
cout<<"info=";cin>>n;
s= new nod;
s->nr=n;
s->ld=0;
s->ls=0;
d=s;
}
void adaug_s(nod*& s,nod* d){
nod*c;
cout<<"info:";cin>>n;
c=new nod;
... |
6a4d8636bfed487fb240810e7e70d7b53a2b48b5 | 536365a8e772f4729915af1f7970ec858fc2bca6 | /Graph/Lec5_Topological_Sorting_Using_DFS_Algorithm.cc | 229ee0179cb958f5defe8b950624360c41c99372 | [] | no_license | ajaysharma388/Compititive_Programming_CB | 1451ba2b7fafeb098e958e3c95f6a1505bb91cf3 | 601a9a212cbb2ac9b618284c4d868f4c3643250b | refs/heads/master | 2021-05-18T11:13:40.290446 | 2021-04-17T23:13:14 | 2021-04-17T23:13:14 | 251,222,534 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cc | Lec5_Topological_Sorting_Using_DFS_Algorithm.cc | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define endl "\n"
void fastio(bool read = false) {
if(read) {
#ifndef ONLINE_JUGDE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
freopen("error.txt","w",stderr);
#endif
}
ios_base::sync_with_stdio(false);
cin.tie... |
3e8f8b720bdde9062aa5b1fe2775259e563a189f | 1149701f3d1c2e2601b6d4ff081709e68e7aa2b2 | /src/trash_measurement.cpp | 56500f10d6a1796ec02570680295ebc7771e19c3 | [] | no_license | qianlima8888/obstacle_measurement | e5da9bff7d27a136a06831c538e4172682d69ce1 | 2bf12be0d6e09c72bb744fe341b2ae04ec52ddd0 | refs/heads/master | 2023-03-20T22:18:01.252856 | 2021-03-17T11:51:27 | 2021-03-17T11:51:27 | 290,915,804 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,733 | cpp | trash_measurement.cpp | #include <ctime>
#include <string>
#include <math.h>
#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/shape_utils.hpp>
#include ... |
d9971aa8ceeb1ffd6cb0053d242a7c132b938d9e | 0bef9637ea35797a1e23f72cb3900be59b5a790f | /HardwareSensor/Processor.cpp | 003d2262f6790719b216a40c3519587adb8320e9 | [] | no_license | Agile2018/HardwareSensor | 72635739cb2c8c2a32474ebcb1bc2b06bcae2910 | 8503fb4c828601b2fcd838580c88128e60279a76 | refs/heads/master | 2020-05-18T14:27:42.833469 | 2019-05-13T18:34:36 | 2019-05-13T18:34:36 | 184,472,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | Processor.cpp | #include "Processor.h"
Processor::Processor()
{
}
Processor::~Processor()
{
}
void Processor::SetConsumption(int consumption)
{
_consumption = consumption;
}
int Processor::GetConsumption()
{
return _consumption;
}
void Processor::SetDescription(string description)
{
_description = description;
}
string Proces... |
c4d1d76d2cb743a82cb5dfcc82a13a3164d34e7a | b04636f31f716c21a6c0d77bc49b876bc496fff7 | /Olympiad/CST 2018/Thầy Hùng/NK1/WEDDING.CPP | 0991909cadf22d6e09a697eadb79daa48cfb0e58 | [] | no_license | khanhvu207/competitiveprogramming | 736b15d46a24b93829f47e5a7dbcf461f4c30e9e | ae104488ec605a3d197740a270058401bc9c83df | refs/heads/master | 2021-12-01T00:52:43.729734 | 2021-11-23T23:29:31 | 2021-11-23T23:29:31 | 158,355,181 | 19 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | WEDDING.CPP | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x[30000], ans[30000], h[30000];
vector<int> a[30000];
bool blank[30000], fre[30000];
int n,m,s,t;
void dfs(int u, int i)
{
x[i] = u;
if (u == t)
{
for (int j = 1; j<=i; j++)
{
ans[j] = x[j];
h[a... |
275b6f9ebe0ffbc05ac26cf5158ad2f9c4e6a17e | 891867ba393ad09d6902402d5b6199ec2f760704 | /Source/ProtoAI/AISense_Smell.h | 7fbf8856ea0f6476534ec2039a5144451396460c | [] | no_license | CorentinGaut/ProtoAI | fbaa54e9bb5fb7af255c917f5ba5588d7b112f17 | 8923b47db1b1b1f3d1ad284a1302f526bc3dd6d8 | refs/heads/master | 2022-04-03T10:55:41.419327 | 2020-02-18T08:19:47 | 2020-02-18T08:19:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | h | AISense_Smell.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Perception/AISense_Blueprint.h"
#include "AISense_Smell.generated.h"
/**
*
*/
class UAISenseConfig_Smell;
UCLASS(meta=(DisplayName="AI Smell Config"))
class PROTOAI_API UAI... |
c2bd27b38d17d18adc2d3808a88adf4c41b687e9 | 23c7dfdfce59bd7bb9675d150f2b52b27fe1061f | /widgets/KeyDetail.cpp | a502fcf286eb01a5c91274eba2d308138d18f7df | [
"BSD-3-Clause"
] | permissive | chris2511/xca | 6d0d0e0d277b2a13897a88c0458186dd86ec924e | 96ca26cc83f0b684b36be54bb303cbcc1c415c1b | refs/heads/main | 2023-09-05T16:27:54.681428 | 2023-09-03T19:47:49 | 2023-09-03T20:37:02 | 649,898 | 1,122 | 213 | NOASSERTION | 2023-09-03T20:12:55 | 2010-05-06T07:54:43 | C++ | UTF-8 | C++ | false | false | 4,437 | cpp | KeyDetail.cpp | /* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
*
* All rights reserved.
*/
#include "lib/main.h"
#include "lib/pki_evp.h"
#include "lib/pki_scard.h"
#include "KeyDetail.h"
#include "MainWindow.h"
#include "Help.h"
#include "distname.h"
#include "clicklabel.h"
#include "XcaApplication.... |
80d285db705540a553030d80049a1c2574c7504c | 539c3be133f2139e64e4d50d4074021a68d97e36 | /src/lexical_parser.cpp | b2c454d638b2d61af8875577c2c7895da8c35479 | [
"MIT"
] | permissive | FredericDT/c89-lexical-parser | 8380d3ead158c0c01ed27eb9ae94887ee96b67f1 | fff85ce3320031d9e92b681653f956a6bb911f00 | refs/heads/master | 2020-08-07T05:36:01.979056 | 2019-10-20T08:25:42 | 2019-10-20T08:25:42 | 213,319,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,846 | cpp | lexical_parser.cpp | //
// Created by FredericDT on 10/5/2019.
//
#include "lexical_parser.h"
#include "re2/re2.h"
#include <iostream>
#include <sstream>
namespace fdt {
namespace lexical_parser {
const std::string KEYWORD_STRING = "keyword";
const std::string IDENTIFIER_STRING = "identifier";
... |
62cbf6e9fff79ca63db4fa5e563ca6320d654789 | d9d50a557bec92763ffceb8dc5622e2a5a828077 | /src/Parameters.h | dbea2f1752f4e264faec582b15b6716a974aad6d | [
"MIT"
] | permissive | skerit/Node-OpenMAX | 77082f070aa483566891a385f45ad3d9ad542463 | cd7120a478a941360ea0d305a13d8009c6550310 | refs/heads/master | 2021-01-19T13:19:48.590323 | 2016-09-17T18:34:03 | 2016-09-17T18:34:03 | 82,385,496 | 0 | 0 | MIT | 2020-05-01T07:20:22 | 2017-02-18T12:33:25 | C++ | UTF-8 | C++ | false | false | 1,619 | h | Parameters.h | #pragma once
#include <nan.h>
#include "bcm_host.h"
#include "IL/OMX_Broadcom.h"
#include "IL/OMX_ILCS.h"
#include "IL/OMX_Types.h"
#include "OMX_consts.h"
class Parameters {
public:
static v8::Local<v8::Object> GetParameter(OMX_HANDLETYPE *handle, int port, OMX_INDEXTYPE nParamIndex);
static void SetParameter(... |
59101dc041c9237f36d5b1c13ce4a70ed85e2189 | 5918a09f1d8d36286662f55a05f1f239fc4c6040 | /sparta/sparta/report/format/CSV.hpp | 4e3a47f1bff9312c10385af7c258f4ca0abeed1b | [
"Apache-2.0"
] | permissive | sparcians/map | ad10249cc2f33ae660ca2f54fc710c379f3977bd | c2d5db768967ba604c4747ec5e172ff78de95e47 | refs/heads/master | 2023-09-01T17:56:53.978492 | 2023-08-28T21:40:12 | 2023-08-28T21:40:12 | 227,639,638 | 107 | 40 | Apache-2.0 | 2023-09-06T01:17:39 | 2019-12-12T15:37:36 | C++ | UTF-8 | C++ | false | false | 10,061 | hpp | CSV.hpp | // <CSV> -*- C++ -*-
/*!
* \file CSV.hpp
* \brief CSV Report output formatter
*/
#pragma once
#include <iostream>
#include <sstream>
#include <math.h>
#include "sparta/report/format/BaseOstreamFormatter.hpp"
#include "sparta/report/format/ReportHeader.hpp"
#include "sparta/utils/SpartaException.hpp"
#include "sp... |
3d8d80b6e64b490cf792593478aa86eff59315fd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_0/C++/Progbeat/C.cpp | 1841f401b39c58dfe993c1442bd164e940bed04d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,570 | cpp | C.cpp | #include <bits/stdc++.h>
#define UN(v) sort(all(v)), (v).erase(unique(all(v)), (v).end())
#define FOR(i, a, b) for (int i(a), _B_##i(b); i < _B_##i; ++i)
#define CL(a, b) memset(a, b, sizeof a)
#define all(a) (a).begin(), (a).end()
#define REP(i, n) FOR(i, 0, n)
#define sz(a) int((a).size())
#define long int64_t... |
1ce0f684f48c43e9e7aad72b1f3b28094b66da9a | a86e02e2d77ec6ab4a7da09df0262b363690b55e | /Inheritance(Extending Classes)/eg8_8.cpp | 91f384b37bfefddc993ab40a6e7c9c112dc727bc | [] | no_license | rajaniket/Cpp_programs | 59e20ef7c0918b0dfad1ed9468a479c49bd7ccc0 | 6528a5bff5c58dd734d46cf8a6aa5363b90219d9 | refs/heads/master | 2021-06-18T11:19:51.830199 | 2021-06-08T17:26:59 | 2021-06-08T17:26:59 | 215,588,831 | 5 | 0 | null | 2020-01-04T18:15:40 | 2019-10-16T16:00:09 | C++ | UTF-8 | C++ | false | false | 1,171 | cpp | eg8_8.cpp | //initialization list in constructors
#include<iostream>
using namespace std;
class alpha{
protected:
int x,q; // x will initialized first then q will be (initialization list)
public:
alpha(int c):x(c),q(2*x){ // alpha(int c):q(2),x(q) , will be wrong because x will be initialize first then q will initi... |
d6a8dd4576cca561820bf31c37cde046ebba1c0d | f92db40e105623caba96a33582ab53c333676cde | /src/sina/sinaweibo.h | a2c63f6bb2280d7a54c81273e292d50578ee4558 | [] | no_license | xiongwang/USense | 383870e224d521f7cb88afc9b2b1332f3ba6042c | 1b9a06ca337d036f1e092450ed1d4f9fcd1f1573 | refs/heads/master | 2021-01-01T05:47:53.200207 | 2013-02-09T20:24:32 | 2013-02-09T20:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,794 | h | sinaweibo.h |
#ifndef SINAWEIBO_H
#define SINAWEIBO_H
#include <QObject>
#include <QIcon>
#include <QtNetwork>
#include "account.h"
#include "sinaparserxml.h"
#include "sinaservices.h"
#include "status.h"
#include "configuration.h"
#include "oauth.h"
#include <src/mynetworkcookiejar.h>
/*! \class SinaWeibo
* \brief 微博信息处理与显示
*... |
3ac542e7ce93427f3a8d1424c31daf5c9bb11dd6 | 1bdec5db3dc305b8c668ea789aeb289799856056 | /Ch12/ex12.30.cpp | 53eae0c9983cdd483a37f74293673046cb85759e | [] | no_license | fanqo/CppPrimer | e0fee2346f6c0bd78623421e6dc9926e79cfcddd | 525205160b0a0a43932d7789e9c77b05f558a299 | refs/heads/master | 2021-02-27T04:58:05.981272 | 2020-03-07T07:22:06 | 2020-03-07T07:22:06 | 245,581,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | ex12.30.cpp | #include <iostream>
using std::cout;
using std::endl;
using std::cin;
#include <fstream>
using std::ifstream;
#include <string>
using std::string;
#include "TextQuery.h"
void runQueries(ifstream &infile)
{
TextQuery tq(infile);
while (true) {
cout << "enter word to look for, or q to quit: ";
... |
1807fdb4fca047413b883c5888aa951704f106d8 | d4ab2fac1673f0de7c1bc5a1ea643959c1123a44 | /multi-run/prepare/prepare1.cpp | 6bfd059a3199987ccc636e218a5ce6fef8043835 | [] | no_license | teoionescu/mini-judge | 667c06503b4c75841222f5be57868575e806a9d0 | f68fed2c29edaac19afd20de16bbe284b3015fe9 | refs/heads/master | 2021-01-25T06:56:34.022627 | 2018-04-10T22:13:16 | 2018-04-10T22:13:16 | 93,631,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cpp | prepare1.cpp | #include <cstdio>
using namespace std;
#define maxn 10000010
int n, m, k, lim;
FILE *in, *out, *in2;
char s[maxn];
int main()
{
in = fopen("op.in", "r");
out = fopen("op.out.0", "r");
in2 = fopen("op.in.1", "w");
fscanf(in, "%d%d%d%d", &k, &n, &m, &lim);
fscanf(out, "%s", s);
fprintf(in2, "... |
685b7e9b5d0c96a49641ece17273e0a4838e29e5 | 95b6f1d2fd32936eb6df3b2fb0b59647da39c6df | /Card Game (L5R)/Holding.cpp | 1a201354f89163a2489496384df9f2a01e80330e | [] | no_license | IliasBarmpar/Object-Oriented-Programming-uni-course | b10f0ea6695844a5d5f806624b3bdc1aab6c83e3 | a34445e491f3cfe470d0c2595329f413b432c2d1 | refs/heads/master | 2022-04-06T10:22:26.749214 | 2020-02-18T13:52:17 | 2020-02-18T13:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,083 | cpp | Holding.cpp | #include "Holding.hpp"
Plain :: Plain(string n){
name = n;
int stats[2];
readStats("Personalities_and_Holdings.txt", "PLAIN:", 2, stats);
cost = stats[0];
harvestValue = stats[1];
}
Mine :: Mine(string n){
name = n;
upperHolding = NULL;
int stats[2];
readStats("Personalities_and_Holdings.txt", ... |
442c88860959c142b8aea9dff2e68ac2b28001c0 | 40d371136f2d7de9c95bfe40fd3c0437095e9819 | /devel/include/api_msgs/GetMapFile.h | d943a5c7959c9ed404d6a09ddee012a8e9373bd3 | [] | no_license | marine0131/ros_ws | b4e6c5cf317260eaae1c406fb3ee234b3a3e67d5 | 6ddded3a92a717879bb646e7f2df1fea1a2d46b2 | refs/heads/master | 2021-07-05T06:29:43.054275 | 2017-09-28T08:29:14 | 2017-09-28T08:29:14 | 100,458,679 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,607 | h | GetMapFile.h | // Generated by gencpp from file api_msgs/GetMapFile.msg
// DO NOT EDIT!
#ifndef API_MSGS_MESSAGE_GETMAPFILE_H
#define API_MSGS_MESSAGE_GETMAPFILE_H
#include <ros/service_traits.h>
#include <api_msgs/GetMapFileRequest.h>
#include <api_msgs/GetMapFileResponse.h>
namespace api_msgs
{
struct GetMapFile
{
typedef ... |
56c30d0cda12dca69726e8bfd4945d0f8fbc714d | 473fc28d466ddbe9758ca49c7d4fb42e7d82586e | /app/src/main/java/com/syd/source/aosp/sdk/find_java2/src/FindJava2Dlg.cpp | a9c815319da8a78012955778451be5c520f59b14 | [] | no_license | lz-purple/Source | a7788070623f2965a8caa3264778f48d17372bab | e2745b756317aac3c7a27a4c10bdfe0921a82a1c | refs/heads/master | 2020-12-23T17:03:12.412572 | 2020-01-31T01:54:37 | 2020-01-31T01:54:37 | 237,205,127 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,044 | cpp | FindJava2Dlg.cpp | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
dda728b5dc2e1278b6436aa90e55f8b16afbe88b | 77861deda8b3046bdda221d3cb80b77e84b14523 | /avx512-utf8-to-utf32/validate/avx512-validate-utf8.constants.cpp | 0606923df000846b0fb60487368627c0a917647b | [
"BSD-2-Clause"
] | permissive | WojciechMula/toys | b73f09212ca19f1e76bbf2afaa5ad2efcea95175 | 6110b59de45dc1ce44388b21c6437eff49a7655c | refs/heads/master | 2023-08-18T12:54:25.919406 | 2023-08-05T09:20:14 | 2023-08-05T09:20:14 | 14,905,115 | 302 | 44 | BSD-2-Clause | 2020-04-17T17:10:42 | 2013-12-03T20:35:37 | C++ | UTF-8 | C++ | false | false | 589 | cpp | avx512-validate-utf8.constants.cpp | namespace {
const __m512i v_0f = _mm512_set1_epi8(0x0f);
const __m512i v_10 = _mm512_set1_epi8(0x10);
const __m512i v_40 = _mm512_set1_epi8(0x40);
const __m512i v_80 = _mm512_set1_epi8(char(0x80));
const __m512i v_1f = _mm512_set1_epi8(0x1f);
const __m512i v_3f = _mm512_set1_epi8(0x3f);
cons... |
583de968c7ba6efbe9c5a3f00861cb575837cdad | 16aa15ad6651c51d86a7d1459a7ea4aa1eaacfc2 | /celula/src/Poisson.h | ef869cad1a1b44017c3c2ebf29983e6223df88ab | [] | no_license | MauricioA/membrana | 15fe79d093a02d881b5789cfa90e8bf78ee1a8dc | 7872e254baaabb11206e59c805876c39d89c743a | refs/heads/master | 2021-01-23T12:22:24.036200 | 2015-05-12T20:50:59 | 2015-05-12T20:50:59 | 22,731,666 | 0 | 0 | null | null | null | null | ISO-8859-13 | C++ | false | false | 460 | h | Poisson.h | #ifndef POISSON_H_
#define POISSON_H_
#include "Celula.h"
//TODO no deberķa ser static!
class Poisson {
public:
static int estado;
static bool lastOff;
static void iteracion(Celula& celula);
private:
static VectorXd global_rhs;
static SparseMatrix<double> matriz;
static void campo(Celula& celula);
stati... |
dfdcc661abd0cfe15def51dc32fabda1cb21c5b3 | 63bdee29ac1d4bb8fd425b75003a10fa98506b27 | /lib/src/blas1/reduce-operators.h | 6835000f972dbf75fada0790f05f1f9ab8422c99 | [] | no_license | rocmarchive/HcSPARSE | ad273991409d9c24b6ed013ca5b4328988cdb90a | ddfe7da9c7b0a41ccf30fbc9eea6debcb1567df2 | refs/heads/master | 2021-10-24T04:37:43.079874 | 2019-03-21T22:41:45 | 2019-03-21T22:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | reduce-operators.h | #ifndef _REDUCE_OPERATORS_H_
#define _REDUCE_OPERATORS_H_
enum ReduceOperator
{
RO_PLUS = 0,
RO_SQR,
RO_SQRT,
RO_FABS,
RO_DUMMY //does nothing
};
template <typename T>
T plus (T a, T b) __attribute__((hc, cpu))
{
return a + b;
}
template <typename T>
T sqr (T a, T b) __attribute__((hc, cpu))
... |
b845c92c5974f7f8987cda534cb69b8e887723aa | 4b538d7e26f795220312190d4f134c166bd769d6 | /worldtimer.cpp | 74b4ba653fbea618dea59c60bb1a4dd3e7210e2f | [] | no_license | neohung/neosoccer | bb659d595107adf1d5e103b5f75ff015a0b406e3 | a2b1665f9ce2a7400802c76652236d0f4bb93bca | refs/heads/master | 2021-01-25T10:05:49.647329 | 2015-07-17T09:54:51 | 2015-07-17T09:54:51 | 39,179,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,247 | cpp | worldtimer.cpp | #include "worldtimer.h"
#include "stdio.h"
WorldTimer::WorldTimer():
m_bSmoothUpdates(false)
{
//how many ticks per sec do we get
//求出每秒的ticks數: m_PerfCountFreq
QueryPerformanceFrequency( (LARGE_INTEGER*) &m_PerfCountFreq);
m_TimeScale = 1.0/m_PerfCountFreq;
//wprintf(L"m_FrameTime: %e\n",m... |
6e49c4ee7f2a4306c7a7c3aff01e99b5ee9e5204 | 549729e902d3eb24112d88cc1428eb287c2107b8 | /QuantFacialRecognition/tests/ConnectionFileReaderTest.cpp | 50112e45d8861d8b8e78bee3ff3533257924b0e6 | [] | no_license | u12206050/Andrologists2014 | 94ef039b70eb3e26753b7cfdbfdf5ede330ef8d3 | 9daa4e993ed8e9e28e1f02d342b0a38724499bee | refs/heads/master | 2020-05-31T04:01:33.413553 | 2014-10-19T20:55:21 | 2014-10-19T20:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | ConnectionFileReaderTest.cpp | #include "ConnectionFileReaderTest.h"
void ConnectionFileReaderTest::parseTest()
{
ConnectionFileReader reader(QString("../../testFiles/connectionTest.txt"));
DatabaseConnection* connection = reader.getDatabaseConnection();
QString type = connection->getDatabase().driverName();
QString host = connectio... |
f8a5d69bba1e955d8d674e4a9ecbb409176d0b1c | 950e056aa31594566c39ec00d4f44e15a552d6b1 | /drken/ARC096/D-StaticSushi/D_fast.cpp | 89ab3c1bdc8a32f6c44065b08d85c15b82814696 | [] | no_license | ratta0622/competitive | 4868c88ab1c7c96b65fac50f4b130b244f56335b | 509851cd884bc8cd89091c290e3d5f819450c2c7 | refs/heads/master | 2023-02-20T08:36:46.258725 | 2021-01-19T07:45:10 | 2021-01-19T07:45:10 | 319,899,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,131 | cpp | D_fast.cpp | #include <bits/stdc++.h>
#include <climits>
using namespace std;
using ll = long long;
int main(){
int N;
ll C;
cin >> N >> C;
ll x[N+2], v[N+2];
x[0] = 0; v[0] = 0;
x[N+1] = C; v[N+1] = 0;
for(int i=1; i<=N; ++i){
cin >> x[i] >> v[i];
}
ll f_a[N+2];
ll f_b[N+2];
f_a[0] = 0;
f_a[N+1] = ... |
ab122511fef269762caa076b0b3b4ddbc30b4fc2 | ab921b3276f0572b86b5996a5c02e9cc47141aef | /C++/path-sum-iii.cpp | 5d20da082fd17ed47e019f09f47dab860b5b23ab | [
"MIT"
] | permissive | anishrai919/LeetCode | cc4b219d788ed2c8d1237a6505dfd9c6dbe235f5 | da61c97a6f9440295f4e477442ccfc469985cd0b | refs/heads/master | 2020-05-01T14:29:09.768584 | 2019-11-21T01:32:56 | 2019-11-21T01:32:56 | 177,521,680 | 0 | 0 | MIT | 2019-03-25T05:42:51 | 2019-03-25T05:42:51 | null | UTF-8 | C++ | false | false | 732 | cpp | path-sum-iii.cpp | // Time: O(n^2)
// Space: O(h)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int pathSum(TreeNode* root, int sum) {
if (!root) {
... |
7975aa29fbfd6d5016a629195819e50b300847a5 | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/skia/src/gpu/text/GrAtlasManager.cpp | 8255c7c6f1e15654290d2af9ee536c23c1e6ef60 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 6,679 | cpp | GrAtlasManager.cpp | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/text/GrAtlasManager.h"
#include "src/gpu/GrGlyph.h"
#include "src/gpu/GrImageInfo.h"
#include "src/gpu/text/GrStrikeCache.h"
#if defined(STARBOARD)
#includ... |
ff7d885ab388f7ecaf4f5e1e91ea8e434e0f7eb7 | f45a450972efd98785ccf65f1dfa5a08ac832bc7 | /Engine/Source Files/Resources/InputLayout.cpp | 43c3c4528bab9e25e11387acd5a4c8a571bd3757 | [] | no_license | Donnay-Splash/Engine-D3D11 | 159389dc816ed0dc6932f1c459f5d6bbc9a348f6 | f1f00161d5686e31e43367f31e4f0431bf093b38 | refs/heads/master | 2022-01-29T19:01:12.189418 | 2020-07-24T16:33:52 | 2020-07-24T16:33:52 | 67,720,427 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,590 | cpp | InputLayout.cpp | #include "pch.h"
#include <Resources\InputLayout.h>
namespace Engine
{
InputLayout::InputLayout(const uint32_t& inputFlags)
{
EngineAssert(inputFlags != 0);
UINT inputSlot = 0;
if (inputFlags & InputElement::Position)
{
D3D11_INPUT_ELEMENT_DESC element;
... |
6c68ca84f4a226c787763371315ec4043a09e7e2 | 63c386bad8878612dafaad6ba63845b62959c70f | /Important_Practice_Problems/Dynamic_Programming/Nth_Fibonacci.cpp | 6f9da0c7429ebd570e584d59be724f78fca758b4 | [] | no_license | himankurgoyal/DSA-Algo | 15488d82b3d7cf6f5eab2a2dfb790204f80a88fb | 53da7c546c93e27fb9373b885a513683c0aa7975 | refs/heads/master | 2022-11-23T19:12:57.104127 | 2020-07-17T21:38:57 | 2020-07-17T21:38:57 | 279,695,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | Nth_Fibonacci.cpp | //1.FIBONACCI USING MEMO
#include<bits/stdc++.h>
using namespace std;
#define modulo 1000000007
#define max 1001
int dp[max];
int print(int n)
{
if(dp[n]==-1)
{
if(n<=1)
dp[n]=n;
else
dp[n]=print(n-1)+print(n-2);
}
return dp[n]%modulo;
}
int main()
{
int T;
cin>>T;
wh... |
9acb8a346a896d4d6ef428b89443b95614cd21a8 | bf7fe9c190e45d80200706bf39359716ba41587d | /Particles/ParticleSystem.h | 8520cbe10bc3c813e882f91285416dc2ab5f19a4 | [] | no_license | VladislavKoleda/CosmicDefender--master | de1a34f9ebe0bff764152b94d170710642809a98 | 042097567af4a3e6eba147971ce067a3a982907a | refs/heads/master | 2020-11-23T21:04:17.911131 | 2019-12-13T10:53:43 | 2019-12-13T10:53:43 | 227,819,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 731 | h | ParticleSystem.h | #pragma once
#define _USE_MATH_DEFINES
#include <string>
#include <vector>
#include <cmath>
//C# TO C++ CONVERTER NOTE: Forward class declarations:
namespace ComicDefender { class Particle; }
using namespace SFML::Graphics;
using namespace SFML::System;
namespace ComicDefender
{
class ParticleSystem : public Tran... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.