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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82b6bb553e271a52c74e987cd44596be522a7feb | bdc441a0df7141991ff07cb4b938856ecf3b02b8 | /task16.cpp | 04c52fd6f1ba7380b9a7800f024e956fe4d733b0 | [] | no_license | aaglakova/Alima | 8f968d2d7040ec0dcde4523cba8ff04b4382e9ed | 4197f9bd59cb7063656f1b230af20e2deada1483 | refs/heads/master | 2020-09-12T17:07:05.265521 | 2019-11-23T19:53:39 | 2019-11-23T19:53:39 | 222,488,253 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 132 | cpp | task16.cpp | #include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<(a*2)+(b-3)+(c*c);
}
|
f6c48bc0e84483ceffc8f3d1a2e15da828c35663 | 5a7e278a539a99c6595564896910a24d59ccd5dd | /module04/ex02/Squad.cpp | d19b6b79b07d16271025cd141afe6e1a0d65670a | [
"MIT"
] | permissive | selysse/CPP-Piscine | 9f51230d878b115bbcdbc1356ead4a0204fc5495 | 72884c60ac5007d34874b006e37dad7a04e846bb | refs/heads/main | 2023-07-30T21:16:37.614213 | 2021-09-11T14:28:11 | 2021-09-11T14:28:11 | 405,367,386 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,951 | cpp | Squad.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Squad.cpp :+: :+: :+: ... |
fdb5133778c81307f4558301e51a7d6398e5d6a7 | 0327ee82307542b781cf213e9b826aaf1e440e1c | /core/model/TextureLoader.cpp | d8094f3cd7b5af77526da0ae8a976e0587f76fb1 | [] | no_license | hsaturn/Vrp | 37cdb7d9fbc64b7a5e49572301da1c790c7255ae | d4cd1a0eec31d04c669df8cd4688ae2474d9927a | refs/heads/master | 2023-06-22T21:18:12.510715 | 2023-06-15T00:44:50 | 2023-06-15T00:44:50 | 77,689,083 | 1 | 1 | null | 2019-08-17T08:08:06 | 2016-12-30T13:53:48 | C++ | UTF-8 | C++ | false | false | 959 | cpp | TextureLoader.cpp | #include <SFML/Graphics.hpp>
#include "TextureLoader.hpp"
#include <GL/glew.h>
#include <iostream>
using namespace std;
bool TextureLoader::genGlTexture(std::string file)
{
sf::Image image;
image.loadFromFile(file);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image.getSize().x, image.getSize().y, 0, GL_RGBA, GL_UNSI... |
468984c72383f183e8c482b22ce5ee22976d4fdc | 93db926ca9a92af6f912c3285ca344a81c3163f0 | /src/threadpool.h | 73b67f46ebc97ea48163653f0aa00fb3b2638289 | [] | no_license | sunchunqiang/udpserver | ed10c90888ccac139cce83b830ad50bd85e1973a | b5d7f4c3216b3c967e0b0f0a0043657862b18850 | refs/heads/master | 2021-05-09T12:06:25.662187 | 2018-11-27T23:15:16 | 2018-11-27T23:15:16 | 119,005,642 | 0 | 0 | null | 2018-11-27T23:13:16 | 2018-01-26T04:29:03 | C++ | UTF-8 | C++ | false | false | 2,103 | h | threadpool.h | /*
* threadpool.h
*
* Created on: Jan 27, 2018
* Author: csun
*/
#ifndef THREADPOOL_H_
#define THREADPOOL_H_
#include <future>
#include <atomic>
#include <memory>
#include <vector>
#include "lockfreequeue.h"
using namespace std;
class taskwrapper {
struct impl_base {
virtual void call()=0;
virtual ~i... |
5b3cceb18c51b213951830a6346913f7f86d1854 | 082cb1c8684125db213ee3d94ac74e946afffcd5 | /main_p2.cpp | a54b007c70fb204e07c6bb6a787201cf41db5c4b | [] | no_license | EmiREstGon/P2-Algoritmos | 96cb084c72d1bcd0b4bd5609b224e12f8bf0c39a | 36b7c6bfdb92df4a98a0a759d2eefc30383e8dfa | refs/heads/main | 2023-03-18T07:14:48.314834 | 2021-03-08T18:25:32 | 2021-03-08T18:25:32 | 344,250,096 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,044 | cpp | main_p2.cpp | // AUTOR: Emilio Rafael Estévez González
// FECHA: 8/2/21
// EMAIL: alu0101389240
// VERSION: 1.0
// ASIGNATURA: Algoritmos y Estructuras de Datos
// PRÁCTICA Nº: 2
// COMENTARIOS: se indican entre [] las pautas de estilo aplicadas de
// "C++ Programming Style Guidelines"
// https://geosoft.no... |
70ec4eff726ae90c11e90220e16ea56ec9c39603 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_1/C++/Yithis/Mus.cpp | 67be13017cda9107818518190dfd4ba356eea6d3 | [] | 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 | 660 | cpp | Mus.cpp | #include <iostream>
using namespace std;
int main()
{
int powtorzenia;
cin >> powtorzenia;
for(int x=1; x<=powtorzenia; x++)
{
int n;
cin >> n;
int wynik1, wynik2, roznica1, roznica2;
int tab [2005];
tab[0]=0;
wynik1=wynik2=roznica1=roznica2=0;
for (int i=1; i<=n; i++)
{
cin >> tab[i];
... |
ddfde4ba1ddad17e015f85943fe734ac02ce0fd2 | 5989b2788ee1f7d6aacfa164398c78fb3dea7101 | /midterm/q09.cpp | 802fbc20c7c1888e0108b09b80c9f7d0ee0954d1 | [] | no_license | TechSolomon/cs201 | 636d73aae18857bdceb3e307caf1f747ca0b4820 | 91f50bf07d9961f965503b807eab79c30af400e0 | refs/heads/master | 2023-01-25T02:47:22.089327 | 2020-12-10T06:57:48 | 2020-12-10T06:57:48 | 290,005,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | q09.cpp | // q09.cpp
// Solomon Himelbloom
// 18 October 2020
// CS 201 Midterm Exam
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
void PrintSubStrings(std::string input, int permutations) {
for (int i = 0;... |
520695e4d1ea873b4294e84c59fa4c00e37a9e99 | 548193730ee9272ac8b852694bda6d8b22a81fc5 | /201410/QSTRING.cpp | fcc8387e12eefae4ffdbf42e0ef030af14ad493c | [] | no_license | iSeaSoul/codechef | 465662e3ea5a1c940b1890593b34527d1dff21fa | 5aa5bdba6f49999b35dd6e26f0f6ac92feb54c47 | refs/heads/master | 2021-01-19T05:00:20.235655 | 2014-10-26T06:58:07 | 2014-10-26T06:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,179 | cpp | QSTRING.cpp | /*
* Not the fish.
* iSea @ 2014-10-04 17:20
*/
#include <cmath>
#include <ctime>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <bitset>
#include <queue>
#include <map>
#include <set>
using namespace ... |
c18bd7057d842a7896c787303319ab6709611c9a | 133ba09a1b53a4a0fc2d96a86c515d93926c1946 | /backtracking/sudoku.cpp | deda1c47c4bdcee90fc6edf566660e73cfe0e4aa | [
"MIT"
] | permissive | archit-1997/InterviewBit | f13fa6ab1a063dae791198c18c8a6ad6a0aa7bdc | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | refs/heads/main | 2023-06-25T13:16:12.204385 | 2021-07-26T02:26:47 | 2021-07-26T02:26:47 | 329,556,348 | 1 | 0 | MIT | 2021-03-07T14:58:20 | 2021-01-14T08:44:10 | C++ | UTF-8 | C++ | false | false | 1,534 | cpp | sudoku.cpp | const int N = 9;
bool isValid(vector<vector<char>> &A, int row, int col) {
char elem = A[row][col];
// check range
if (elem - '0' < 1 || elem - '0' > 9)
return false;
// check row and column for duplicates
for (auto p = 0; p < N; ++p) {
if (A[p][col] == elem && p != row)
return false;
if ... |
3df89b1450769837a52a440e75f0cd80b3d9b130 | 1af49694004c6fbc31deada5618dae37255ce978 | /chrome/browser/video_tutorials/internal/tutorial_store_unittest.cc | 4657d4b1711b706faa4bea394304477e2f426290 | [
"BSD-3-Clause"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | C++ | false | false | 7,792 | cc | tutorial_store_unittest.cc | // Copyright 2020 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.
#include "chrome/browser/video_tutorials/internal/tutorial_store.h"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include "base... |
0208891608ab9af242dd8e7ccc8246d2c306b19e | f75d23537ad491a0e5ea456cad2bf2f3df747381 | /source/discord/message.hpp | b6b99ef2f33975b6425b6131d70e619139cb8174 | [
"MIT"
] | permissive | kociap/Discordpp | ae37efd80ab85226910557f038adaac389f1e47d | fcbf30d199ec217e0e6289aee96e365de383dbda | refs/heads/master | 2020-04-02T17:36:03.081975 | 2019-01-14T09:55:00 | 2019-01-14T09:55:00 | 154,663,948 | 0 | 1 | MIT | 2019-01-15T07:44:18 | 2018-10-25T12:04:47 | C++ | UTF-8 | C++ | false | false | 534 | hpp | message.hpp | #ifndef DISCORD_MESSAGE_HPP
#define DISCORD_MESSAGE_HPP
#include "nlohmann/json.hpp"
#include "types.hpp"
#include "user.hpp"
namespace discord {
struct Message {
User author;
Snowflake id;
Snowflake channel_id;
Snowflake guild_id;
String content;
String timestamp;
... |
8ccdf8d03b98456c6584ff2ca02b64620895ecad | c80e47505635b5d0b895518b5b311e3276f9ddd3 | /COUNTING_ways.cpp | 36b2a32d73bff44a3dc8aa58c51e782702884f7c | [] | no_license | dabbler011/codes | 9389cd08270b249e0c1f1940cb34fcbc59d9ccf9 | 6570914383423edc8a3076b303eff1511fcf3983 | refs/heads/master | 2021-01-20T06:32:52.478702 | 2018-08-04T18:08:25 | 2018-08-04T18:08:25 | 101,504,543 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | COUNTING_ways.cpp | #include <bits/stdc++.h>
using namespace std;
int dp[10001][101];
int compute (int dist,int k) {
if (dist < 0) return 0;
if (dist == 0) return 1;
if(dp[dist][k]!=-1) return dp[dist][k];
int i,ans=0;
for (i = 1;i <= k;i++) {
ans+=compute(dist-i,k);
ans%=1000000007;
}
return ... |
e19385500506abd73e012291835b5e290ad2b5a4 | 66dcd8757e7c865d1147978bbdb29ed8eeea0a7a | /game-specific/Shattered Memories/CommonQt/CsvReader.h | 19ab908649f29d3abdca43d1ecdb7c36bf27edad | [] | no_license | YAGAMI55/consolgames-tools | 9f03106c10161dad130cf0e6f47fa4871c2dfdec | 9cb5b20e0411ef3708fc1f747823246e5bfcc40d | refs/heads/master | 2022-04-12T11:50:58.730962 | 2019-03-13T21:14:54 | 2019-03-13T21:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | CsvReader.h | #pragma once
#include <QFile>
#include <QTextStream>
#include <QStringList>
namespace ShatteredMemories
{
class CsvReader
{
public:
CsvReader(const QString& filename);
bool isOpen();
QMap<QString, QString> readLine();
const QStringList& header() const;
private:
QFile m_file;
QTextStream m_str... |
d312cfbe6279727d1183f29934a3a4f05dcb111d | 5bfca148fb7d074a6a9486002c626926826875f8 | /homework/4_02.cpp | bdf129074a349a7bfe230f2e9bc9dac6af6e5052 | [] | no_license | djww/lab_work | b948cb7f4050b63b2262d832646691f040166832 | 223cf25573124cd5073459688736ab163cc03a4c | refs/heads/master | 2020-03-30T06:03:03.458789 | 2018-11-21T09:52:21 | 2018-11-21T09:52:21 | 150,835,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | 4_02.cpp |
#include<iostream>
using namespace std;
class Student {
private:
int num;
char name[20];
static int total;//静态变量,放在public下
public:
static void print();
Student() {
total++;
}
~Student() {
total--;
}
Student(int n, char *p = "wang");
void GetName();
int Getnum();
};
int Student::total = 0;//初始化total
... |
4c119630a6eaefc4a75ffe38d3dabf118a8d9ab1 | 07c3e4c4f82056e76285c81f14ea0fbb263ed906 | /Re-Abyss/app/components/Actor/Enemy/KingDux/Tentacle/Builder.hpp | 2f8efb5c5b89db6f46865fd37371e568c9c2d90e | [] | no_license | tyanmahou/Re-Abyss | f030841ca395c6b7ca6f9debe4d0de8a8c0036b5 | bd36687ddabad0627941dbe9b299b3c715114240 | refs/heads/master | 2023-08-02T22:23:43.867123 | 2023-08-02T14:20:26 | 2023-08-02T14:20:26 | 199,132,051 | 9 | 1 | null | 2021-11-22T20:46:39 | 2019-07-27T07:28:34 | C++ | UTF-8 | C++ | false | false | 288 | hpp | Builder.hpp | #pragma once
#include <abyss/commons/Fwd.hpp>
#include <abyss/components/Actor/Enemy/KingDux/Tentacle/BuildDesc.hpp>
namespace abyss::Actor::Enemy::KingDux::Tentacle
{
struct Builder
{
static void Build(ActorObj* pActor, ActorObj* parent, const BuildDesc& desc);
};
} |
a7f1956317bde56e5e8621e2b271609c090c26f8 | 93deffee902a42052d9f5fb01e516becafe45b34 | /cf-gym/UCUP-23/B.cpp | 1a3c81c27186f8b1c087e5d68be70f9bb9655000 | [] | no_license | kobortor/Competitive-Programming | 1aca670bc37ea6254eeabbe33e1ee016174551cc | 69197e664a71a492cb5b0311a9f7b00cf0b1ccba | refs/heads/master | 2023-06-25T05:04:42.492243 | 2023-06-16T18:28:42 | 2023-06-16T18:28:42 | 95,998,328 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,716 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
#define allof(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<ll, ll> pll;
pll operator-(pll p1, pll p2) {
return {p1.first - p2.first, p1.second - p2.second};
}
ll cross(pll p1, pll p2) {
return p1.first * p2.second - p1.second * p2.first;
}
ll norm(pl... |
95212b1cd637e4cb9e0e62f7f29c2e82e1a8370b | 6c2409604c8296fb442b34f0af88119a8c439085 | /mednafen/src/wii/emulator/MenuManager.h | a278e63f5df35ea4df63491f8c68e1e97d1c6c14 | [] | no_license | xjsxjs197/WiiEmuHanhua | 19083fe1957d3052aec38c43c1bbd6f2f4ecc8e8 | 9ba1951f0a10058a91bbd1b7c9daee6dd0b474af | refs/heads/master | 2023-01-25T00:53:07.750669 | 2022-07-02T02:54:54 | 2022-07-02T02:54:54 | 129,381,604 | 7 | 4 | null | 2023-01-11T11:27:08 | 2018-04-13T09:40:35 | C | UTF-8 | C++ | false | false | 602 | h | MenuManager.h | #ifndef MENU_MANAGER_H
#define MENU_MANAGER_H
#include "Emulator.h"
#include "BaseManager.h"
#include "EmulatorMenuHelper.h"
#include "CartridgeSettingsMenuHelper.h"
#include "wii_main.h"
class MenuManager : public BaseManager
{
protected:
TREENODE* m_emulatorMenu;
TREENODE* m_cartridgeSettingsMenu;
public:
Me... |
3a1c01149d84970b3fd27729fb367dbbf514f6d4 | 5deb8b306936767c6faff5c4b9b886f83635a863 | /EasyNet/EasyServer/easy_server_message.cpp | feb2a8f82c0e3b74d94e7c8a6af39b40c7f9862e | [] | no_license | chenmaosheng/fantuantool | ac1573f54a48570ae6770b0b119415f18cdcef8a | fd43fa2edda174e3a03a549d57a2229f03b56cd1 | refs/heads/master | 2021-01-10T13:38:06.874445 | 2020-04-21T12:34:01 | 2020-04-21T12:34:01 | 48,181,785 | 0 | 1 | null | 2020-10-13T02:15:45 | 2015-12-17T15:19:09 | C | UTF-8 | C++ | false | false | 791 | cpp | easy_server_message.cpp | #include "easy_server_message.h"
#include "easy_packet.h"
#include "easy_packethandler.h"
#include "easy_session.h"
bool CALLBACK PingReq_Callback(void* pClient, InputStream& stream)
{
EasySession* pSession = (EasySession*)pClient;
uint32 iVersion;
if (!stream.Serialize(iVersion)) return false;
pSession-... |
465679cb7587ae028bf912c41f3a7cfa5676aad0 | 95ae7dfa9ee578f1b24a65986ff78bf77ceca0c5 | /Engine/source/console/telnetDebugger.cpp | cc810a8a15996f3a1f33b3c53f0ab974f92d35b5 | [
"MIT",
"LicenseRef-scancode-unknown"
] | permissive | TorqueGameEngines/Torque3D | 4e1f6a05cc0928980c8c7c20bcdd680eaa6dcee8 | a445a4364664e299196bd551d213844486080145 | refs/heads/development | 2023-09-03T12:40:40.658487 | 2023-08-24T14:44:43 | 2023-08-24T14:44:43 | 267,440,108 | 1,192 | 178 | MIT | 2023-09-13T14:28:16 | 2020-05-27T22:35:54 | C++ | UTF-8 | C++ | false | false | 27,834 | cpp | telnetDebugger.cpp | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... |
4025eee4a4d3d3e52d39ffb70b0a36e32f5bf596 | e3ceca6a34bf3426b90b3952782d4fd94c54d08a | /b問題/b_template_matching.cpp | 67deeb380e5cc00273e50fa58f3b5bd89c7dfee3 | [] | no_license | THEosusi/atcoder | ede5bffb44d59e266c6c4763a64cddeed8d8101f | 0e9a17a82562e469198a6cc81922db5ac13efa6d | refs/heads/master | 2023-06-21T06:45:28.128553 | 2021-07-27T09:02:55 | 2021-07-27T09:02:55 | 336,729,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | cpp | b_template_matching.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin>>N>>M;
vector<vector<char>>vec1(N,vector<char>(N));
vector<vector<char>>vec2(M,vector<char>(M));
for(int i=0;i<N;i++){
for(int j=0;j<N;j++){
cin>>vec1.at(i).at(j);
}
}
for(int i=0;i<M;i++){... |
a7e0db24d0f5ef5b014243487b68ab9f31d6c012 | 69e2ba977ee203ffeb14cf23d0cba9725bbf73a9 | /Optimization_Interface/path_graphics_item.h | 9090d075be1e86f6ce4779c103bffadb2a150b55 | [] | no_license | mceowen/optgui | 70599b8702b2c712a6807ec65ca465f287f38b78 | 73650c5427c5b3d0a1ffa5c62422c61a04a42be3 | refs/heads/master | 2020-07-08T13:02:21.359429 | 2019-09-11T17:40:42 | 2019-09-11T17:40:42 | 203,681,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | h | path_graphics_item.h | // TITLE: Optimization_Interface/path_graphics_item.h
// AUTHORS: Daniel Sullivan, Miki Szmuk
// LAB: Autonomous Controls Lab (ACL)
// LICENSE: Copyright 2018, All Rights Reserved
// Graphical representation for current drone path
#ifndef PATH_GRAPHICS_ITEM_H_
#define PATH_GRAPHICS_ITEM_H_
#include <QGraphicsI... |
c2c84d756eb0a9d270c1000c061f345753ba9e88 | 59409fab0056c63eb8b43c6bebc46ad2320e5f3f | /MAX10/tsbs/common_sw_library/tsb/ip/software/descriptor_ram_encapsulator/descriptor_ram_encapsulator.h | 0a593c1fa2e8e52735ae2bfd36dde482389e95fc | [] | no_license | thomaslindner/xu1-max10-testing | ce96004e9ee51c927ec64fdc8d2438bc95742a46 | a44bdeff1bf533632bfaea5ab9c8cf22d0529e85 | refs/heads/master | 2022-12-22T20:14:30.665124 | 2020-05-19T22:53:52 | 2020-05-19T22:53:52 | 295,867,338 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,881 | h | descriptor_ram_encapsulator.h | /*
* descriptor_ram_encapsulator.h
*
* Created on: May 28, 2015
* Author: yairlinn
*/
#ifndef DESCRIPTOR_RAM_ENCAPSULATOR_H_
#define DESCRIPTOR_RAM_ENCAPSULATOR_H_
#include "basedef.h"
#include "altera_msgdma_descriptor_regs.h"
#include "altera_msgdma_csr_regs.h"
#include "altera_msgdma_response_regs.h"
#in... |
edd152fe4311fbd43db6849486231c130b4e4398 | 696165d7df8d6866a7d8dbc84e4efb70d2c315c6 | /HighestTidyNumber/HighestTidyNumber/HighestTidyNumber.cpp | 8b6c8a5657ded0673e7ae96c2dfba98607c95cda | [] | no_license | yadav26/GoogleCodeJam | 0ecea18c9885845eef4ce1588e11dcf5bb8ae923 | 138abfaffb79573775fdbc9e420c093089659060 | refs/heads/master | 2021-04-29T16:36:09.472302 | 2018-11-24T14:47:59 | 2018-11-24T14:47:59 | 121,653,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,920 | cpp | HighestTidyNumber.cpp | // HighestTidyNumber.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
using namespace std;
//TDD
bool checkIfCorrect(string input, string result)
{
int rlen = result.length();
int ilen = input.length();
int i... |
1387c11be80aad53374380eedda74ecd5b451956 | 77d0c34fab629098f5adbd0aa7a0bec4e22931de | /test/testCmdLineArgs.cxx | 69e0605ea89d90f3119281d0e1b46d4c555e59bc | [] | no_license | anitaNeutrino/anitaAnalysisTools | ab2329f48ef6ccbfc886ba9dcddf1a678f0b3b21 | 87650ca307c12400269f99d07cb51d9f56c7b584 | refs/heads/master | 2023-04-17T18:18:49.656811 | 2020-08-12T15:55:34 | 2020-08-12T15:55:34 | 61,329,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cxx | testCmdLineArgs.cxx | #include "AcclaimCmdLineArgs.h"
int main(int argc, char* argv[]){
Acclaim::CmdLineArgs(argc, argv);
return 0;
}
|
1e923678e42774b36a79ecaa41f189a54af9046f | 4f9930aa654816f464ea73fce01a73a5a3977c96 | /CGL-Project/Source.cpp | a09aac3c50e2625286b2921300dd13ae82b48232 | [] | no_license | Eyad-Mohammed-Osama/CG-Project | 770164a28bcec1b186406dc4f681e2ccf0f34897 | 0361b44b8bbadce1c62d74e7954c422f7fa12c29 | refs/heads/master | 2020-12-19T01:23:49.243495 | 2020-01-22T14:13:22 | 2020-01-22T14:13:22 | 235,577,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,227 | cpp | Source.cpp | /*
* This Code Was Created By Jeff Molofee 2000
* A HUGE Thanks To Fredric Echols For Cleaning Up
* And Optimizing This Code, Making It More Flexible!
* If You've Found This Code Useful, Please Let Me Know.
* Visit My Site At nehe.gamedev.net
*/
#include <windows.h> // Header File For Windows
#include <... |
170f8bdfdd1882849f23a393d1294d18be4bed35 | 6f42dc25b776f2aa086e9f4edb616404e71faf2c | /resolution/界面源代码/DancingGuiSys.cpp | e91730c5a16ed3152367ed4c6b405be0c77bc5f6 | [] | no_license | xuyunhan/Dancing | 309abc8b469829fd6fc6bf697fb7e1901550e0d7 | bc7ca2bc7aa869b136fac14e2a7a8912135a99ce | refs/heads/master | 2021-01-01T18:48:30.726060 | 2013-10-12T07:57:11 | 2013-10-12T07:57:11 | 26,994,390 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 31,631 | cpp | DancingGuiSys.cpp | #include "DancingGuiSys.h"
DancingGuiSys::DancingGuiSys(void)
{
}
DancingGuiSys::~DancingGuiSys(void)
{
}
//这里传了两个参数,第二个参数是为了控制游戏退出
DancingGuiSys::DancingGuiSys(OgreBites::SdkTrayManager *sdktraymanager,Ogre::Root *mRoot)
{
this->mTrayMgr = sdktraymanager;
this->mRoot = mRoot;
//默认单人模式
m_gam... |
03a6dcaadc2c3802785859da950bf8917b2f48a6 | 2a1e57d2f4588ab79e61dd9764175c1aefe09f63 | /libraries/libsystem/io/FileWriter.cpp | b951cc866125f8d64c9afabb03ca4d86c3d8fd1e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT",
"Zlib"
] | permissive | Rix565/skiftos-dailybuild | 790157bfd9864d8ef5793ded2be5a5e4eb2ad8be | ef3abf0dda028b6d7b3e658946a031b1a1ba44c9 | refs/heads/main | 2023-04-09T01:08:19.999464 | 2021-03-22T18:30:53 | 2021-03-22T18:30:53 | 349,983,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | FileWriter.cpp | #include <libsystem/io/FileWriter.h>
FileWriter::FileWriter(const char *path)
: _handle{make<IO::Handle>(path, OPEN_WRITE | OPEN_CREATE | OPEN_STREAM)}
{
}
FileWriter::FileWriter(Path &path)
: _handle{make<IO::Handle>(path.string(), OPEN_WRITE | OPEN_CREATE | OPEN_STREAM)}
{
}
FileWriter::FileWriter(RefPtr<I... |
13e76c90e728b9a320c19d9e425f8a8c1a489f10 | 15443ae4d47b1433c7c2cfb610ea8b714bcbad01 | /VstNoiseGate/AudioLib/Transfer.h | a948ce083e4d1e83ce4445fe238c1fdea906e0d6 | [] | no_license | ValdemarOrn/NoiseInvaderVST | d0fc77cdc292c599ce4e0264bec536a9447c166e | 0ec170a71a88e2ea3fa9e86b5e5623d4aa0839a7 | refs/heads/master | 2022-06-29T21:41:22.368301 | 2022-06-07T23:43:34 | 2022-06-07T23:43:34 | 49,460,806 | 21 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | h | Transfer.h | #pragma once
#include <vector>
using namespace std;
// UNTESTED BUT SHOULD WORK
namespace AudioLib
{
class Transfer
{
private:
vector<double> b;
vector<double> a;
double bufIn[64];
double bufOut[64];
double Gain;
// buffer size
int modulo = 64;
int index = 0;
public:
Transfer()
{
SetB... |
c7dfd358725d1a9c7eb7cbe349b78f7eb6ea62f0 | 9b7ec74c5a72a57fd08110e740f3d112b7daa91c | /test_ui/main.cpp | 63e41569df4b46b1d035bf422febe880035bb966 | [] | no_license | Splendor-Qian/Qt_Projects | 3af0c629e2e57433265747030ae19db4cb2b1218 | 0137a9b29b10ff73101ec621b114580a485556f6 | refs/heads/master | 2021-01-10T15:43:07.013934 | 2016-03-28T03:28:55 | 2016-03-28T03:28:55 | 54,563,579 | 0 | 0 | null | 2016-03-25T08:35:39 | 2016-03-23T13:52:35 | C++ | UTF-8 | C++ | false | false | 242 | cpp | main.cpp | #include "test_ui.h"
#include <QtWidgets/QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
test_ui w;
w.show();
//测试更改,看是否能同步到服务器,文件版本修改为UTF-8
return a.exec();
}
|
63d1d9a00b739fb90e9ecf0d413c78075f0c9b93 | 553a95013775c188c42772fd1ddee80629570e09 | /include/ast/ReferenceType.h | 3e100b6c9230dd0e28466ed8b6070c9b8980276e | [
"MIT"
] | permissive | rdtscp/c-bootstrap | 0f755ed8ccce7dc2a7bcc7748eaec63921fe1fe1 | 2ce2d46f00b76f76a4f53b19281095b39aa4706b | refs/heads/master | 2021-06-27T07:33:07.849937 | 2020-11-15T14:39:36 | 2020-11-15T14:39:36 | 153,897,052 | 12 | 1 | null | 2023-08-31T00:48:02 | 2018-10-20T11:06:32 | C++ | UTF-8 | C++ | false | false | 1,536 | h | ReferenceType.h | #pragma once
#include "PrimitiveType.h"
#include "Type.h"
namespace ACC {
class ReferenceType : public Type,
public atl::enable_shared_from_this<ReferenceType> {
public:
atl::shared_ptr<Type> referencedType;
ReferenceType(const atl::shared_ptr<Type> &p_referencedType);
bool canCastTo(T... |
d8e9dcc797fbf8f881649fa3994afc8a5954d0d9 | 371a5d35aae103828fe0cca2adb501717e60d85f | /WiFiScanner/WiFiScanner.ino | f6664ff8ebb3799384ddcbeb23966f7fcb987f08 | [] | no_license | skittleson/ArduinoProjects | 8db3c87bc4ffde8aef58cffc867eabfea0316f00 | 14c672f6313db9d52d6571f29f3141b6c8c197bd | refs/heads/master | 2021-03-22T17:23:24.632932 | 2020-06-10T00:15:29 | 2020-06-10T00:15:29 | 247,387,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,308 | ino | WiFiScanner.ino | /*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//#include <EEPROM.h>
#include "FS.h"
#include <Ardui... |
91416abb2f3de4745080058d133544951392ed7d | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/xgboost/xgboost-old-new/xgboost-old-new/dmlc_xgboost_patch_426.cpp | ca9f4762cb39ea55f503c62cfdaf7707882b8b6f | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,113 | cpp | dmlc_xgboost_patch_426.cpp | @@ -86,6 +86,7 @@ namespace xgboost{
if (!strcmp(name, "silent")) silent = atoi(val);
if (!strcmp(name, "eval_metric")) evaluator_.AddEval(val);
if (!strcmp(name, "objective") ) name_obj_ = val;
+ if (!strcmp(name, "num_class") ) base_gbm.SetParam(... |
412e259ba8227a9a81f332144e52946dea1bf5a9 | 5419ec31b9aec07477ac45cb97ee3074fc6fba4c | /Helloworld/Classes/Scenes/CcbLeaderSkillEffLayer.h | 975fa0ec8cae241d07ab8642aa948e84d319e3d3 | [] | no_license | Relvin/RelvinPetTwo | 59ceded93181f2d301f6d33e70367fb45906c9ba | 1b7bc4677c2a9620a2008e0fa9a925d4a5ca1af5 | refs/heads/master | 2020-03-30T06:39:00.198117 | 2015-01-07T09:55:49 | 2015-01-07T09:55:49 | 28,892,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,738 | h | CcbLeaderSkillEffLayer.h | /**
* Create by GenerateCppCodeFromCCBFile.lua
* All right received
* Author: Junie Chu
* Date: 2014-03-17 20:52:52
*/
#ifndef __CCBLEADERSKILLEFFLAYER__H__
#define __CCBLEADERSKILLEFFLAYER__H__
//CcbLeaderSkillEffLayer.h come from ccb/pet_battle_ani.ccb
#include "cocos2d.h"
#include "cocos-ext.h"
#include "Defines.... |
fbd2c46777273119bbf980cb8ad8f950048fce7a | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/C++/tangyouze/b.cpp | 0c80e6baca4758a1080f384c93ca63afff890bd7 | [] | 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 | 605 | cpp | b.cpp |
#include <iostream>
#include <vector>
using namespace std;
vector<int> a;
int solve2(int maxn){
int ans = 0;
for(int i=0 ;i<(int)a.size(); i++){
ans += (a[i]-1) / maxn;
}
return ans + maxn;
}
void solve(int icase){
int n;
cin >>n;
a.clear();
for(int i=0; i<n; i++){
int q... |
637ccc82b2f78ce1bb118e9b9d4747615921e229 | 4ea8ead40f393581b2a85439df5a0f1e627858f1 | /362Program2-1/TreeNode.h | 8041d5f01e9fcfbecc4e4baf49cea71e72499ba1 | [] | no_license | Crysta7049/DataStructuresProject2 | 7eae8069476b30d4a861c2bb7e502a858b98c1d5 | 421022ef69c46b86a560e22d8a4d9784de0283cb | refs/heads/main | 2023-04-15T04:47:53.196925 | 2021-04-15T16:18:46 | 2021-04-15T16:18:46 | 358,321,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | h | TreeNode.h | #ifndef TREENODE_H
#define TREENODE_H
#include <string>
#include <vector>
#include "LLNode.h"
using namespace std;
class TreeNode
{
private:
//vector<int> nodeLineNums;
public:
string key_value_;
TreeNode * left_;
TreeNode * right_;
TreeNode(string... |
8ca138c0053fe23aa76731c7a03401e8b4a59990 | b0da51354ec662292efe2339988545f4737a9553 | /code/render/graphics/handlers/billboardentityhandler.cc | 816232feccd270efee02ea66038828184a1ebbb7 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | Core-Game-Project-2016/nebula-trifid | 9a49d7ae5d896a28e11805ba1404b743add2e9d6 | 2f1b1d6986a049b4d133d65bef6c0aeb674e1a94 | refs/heads/master | 2021-01-22T00:29:10.314856 | 2016-05-27T23:05:01 | 2016-05-27T23:05:01 | 55,078,691 | 0 | 1 | null | 2016-05-20T15:32:12 | 2016-03-30T16:23:52 | C++ | UTF-8 | C++ | false | false | 1,944 | cc | billboardentityhandler.cc | //------------------------------------------------------------------------------
// billboardentityhandler.cc
// (C) 2009 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "graphics/... |
57ac594a0714bfea04e641da312b33358a69283e | 95e296d857f8a515f27138d8825e8295a381c4e7 | /libpika/PNativeConstMethodDecls.h | 9449b26201d27590289a7afea44e1030afc46d72 | [
"Zlib"
] | permissive | tempbottle/pika | b5178c4e8c7e4575cb4d8f9f68aba1591d4ce4c7 | 58342ab8e8abb9c0d0d6af78579e25fb80a0b294 | refs/heads/master | 2020-12-25T04:10:38.860551 | 2015-01-01T03:28:56 | 2015-01-01T03:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,714 | h | PNativeConstMethodDecls.h | /*
* PNativeConstMethodDecls.h
* See Copyright Notice in Pika.h
*
* DO NOT INCLUDE DIRECTLY!
*/
// ConstMethod0 ////////////////////////////////////////////////////////////////////////////////////
template<typename TClass, typename TRet>
struct ConstMethod0 : NativeMethodBase
{
typedef TRet(TClass::*TMETHO... |
40c74e691bb5c166ab9e6406c488eadbe0795951 | 30d9d86ecfa5327436d88e57d2ccce6f3ad954eb | /C++/day02/const.cpp | accb73bd79306bf81c31551dc970922b9f11208b | [] | no_license | taizilinger123/C | 3eabdf04b192620263a3dc863eb4d4c30a94fffa | a77354dffc5a4f1c8445e65bbc5401b096aa9f27 | refs/heads/master | 2023-08-22T00:07:33.669500 | 2023-08-21T07:26:22 | 2023-08-21T07:26:22 | 215,798,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | const.cpp | #include <iostream>
using namespace std;
int main(){
int a=100;
const int *pa=&a;
//*pa=101;
int b=200;
pa=&b;
cout<<*pa<<endl;
cout<<"-----------"<<endl;
int* const ra=&a;
//ra=&b;
*ra=1000;
cout<<a<<endl;
}
|
fcc75253aeea4f1c632b25e762ba3bfd3abc85c0 | 1f8ce45e9693fd084de4c095daf476b8342e1333 | /src/message_model/message/Load.h | 188a62f9144e2d5a9a26d16f980a3dd06ed01e62 | [] | no_license | jinshayumi/ubuntu_software_engineering_server | e5c48dcbbfe01039b05d067d26096bc71d91064e | 275b802423578b3ec086eee581cbaecef41915d1 | refs/heads/master | 2020-04-03T16:01:29.097608 | 2018-10-25T17:05:30 | 2018-10-25T17:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,235 | h | Load.h | //
// Created by swchen on 18-10-24.
//
#ifndef SOFTWARE_ENGINEERING_LOAD_MSG_H
#define SOFTWARE_ENGINEERING_LOAD_MSG_H
#include <iostream>
#include <string>
#include <utility>
#include "ArduinoJson/ArduinoJson.h"
#include "MD5_coding/md5.h"
#include "Define_Member.h"
#include "Const_Values.h"
using namespace std;
... |
45a72396b2d18f164dca5cd54a684786f9a888cb | 3365fa45aad3565e232f75e7833daaac7fcc4739 | /Game.h | f99a681d74cf354043ef8fd41b7d39075997ead8 | [] | no_license | Sylvador/kind-of-a-space-shooter | 5a11bd9eade5cdaba8465239fd2a632fba24b9a5 | f8afa80a1bff27e2aa73048049f87611460b51aa | refs/heads/master | 2023-04-17T21:10:28.843253 | 2021-05-12T19:34:24 | 2021-05-12T19:34:24 | 366,810,516 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | h | Game.h | #pragma once
#include "SFML/Graphics.hpp"
#include "SFML/System.hpp"
#include "SFML/Audio.hpp"
#include "SFML/Window.hpp"
#include "Player.h"
#include "Bullet.h"
#include "Enemy.h"
#include <vector>
#include <string>
class Game
{
public:
Game();
void run();
private:
void processEvents();
void update();
void rende... |
03f25498360b34a2ff6f58f2901643f78840ee82 | 0c5a865ddf0490316a1ea1614a14a75c948cf594 | /Seungjin-Lee/190709/190709질문.cpp | 060342231b9460799126894b15b9490e5bd12774 | [] | no_license | lsg1213/cpp_study | 02f1722d475b4087621c2c89ecb68b88406b4152 | d18bf44ed1212047ed3e631af99e4c8b063fa6e9 | refs/heads/master | 2020-06-10T11:44:45.781700 | 2019-08-31T02:37:15 | 2019-08-31T02:37:15 | 193,641,682 | 2 | 1 | null | 2019-07-05T05:26:51 | 2019-06-25T05:40:04 | C++ | UHC | C++ | false | false | 588 | cpp | 190709질문.cpp | #include <iostream>
using namespace std;
class Plus {
int a, b, sum;
public:
//1. 생성자 채우기
Plus() : a(0), b(0), sum(0) { cout << "생성되었습니다" << endl; }
Plus(int _a) : Plus() {
a = _a;
}
Plus(int _a, int _b) : Plus(_a) {
b = _b;
}
//2. 소멸자에서 sum 출력하고 "소멸되었습니다" 출력
~Plus() {
cout << sum << endl;
cou... |
5705e8ad2444981264d469e56a6f3150f0045d4a | c9822f8c49046088715ea96762dbffedd014a0b0 | /hardwork/STL/list.hpp | 88a173cb728a09fa21f984307b069e6c209c5918 | [
"MIT"
] | permissive | jskyzero/Cplusplus.Playground | 471d6b6068c5ad9119db86c346143e9f9103f5f8 | b4a82bb32af04efcffb6e251ac8956a3cc316174 | refs/heads/master | 2023-01-07T00:23:48.900807 | 2020-11-12T04:49:21 | 2020-11-12T04:49:21 | 201,798,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,886 | hpp | list.hpp | /*
List (abstract data type)
In computer science, a list or sequence is an abstract data type that represents
a countable number of ordered values, where the same value may occur more than
once. An instance of a list is a computer representation of the mathematical
concept of a finite sequence; the (potentially) infin... |
2eb71c8e5b81a1d71ec9169c52a0762f75f8cc62 | 0f867ab0c8930e88e267dd637d48fdc6c422bed7 | /Mercury2/src/InstanceCounter.h | e9e9ae83335cd0e657dffd864ba254a136edf7e8 | [] | no_license | axlecrusher/hgengine | e15f29f955352da55776de45a21d60845491b91e | 7e7e75c41a86d83acdcaab2b346a6b8c2f87da54 | refs/heads/master | 2021-01-20T05:43:26.316683 | 2013-01-31T05:42:34 | 2013-01-31T05:42:34 | 89,799,775 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | h | InstanceCounter.h | #ifndef INSTANCECOUNTER_H
#define INSTANCECOUNTER_H
//This counter is used with singletons to
//ensure proper destruction order of the
//singleton
template<typename T>
class InstanceCounter
{
public:
InstanceCounter(const MString & name)
:m_name(name)
{
if (m_count == 0)
{
printf("Creating instance %s\... |
ec1db1ea82dc093ac9a6f5489e9ebbe939254261 | a28631dd1922231a94cca55fac4d18f8093bc04c | /amy_show/src/amy/show/modules/ShowSenser.h | 237ef6944dae06e7217b4c1c97187214030e3194 | [] | no_license | albarral/amy | 47b23fa3569a4a263c2c5bef3e62860f5c7299c2 | d1a7540c893cf4840f53fbd4f890aa086a986fe7 | refs/heads/master | 2020-04-10T21:02:25.048668 | 2018-09-28T12:20:03 | 2018-09-28T12:20:03 | 64,211,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,548 | h | ShowSenser.h | #ifndef __AMY_SHOW_SHOWSENSER_H
#define __AMY_SHOW_SHOWSENSER_H
/***************************************************************************
* Copyright (C) 2017 by Migtron Robotics *
* albarral@migtron.com *
***************************************************************************/
#include <log4cxx/log... |
54730f49648eba5ca54d31a622b1fe0faf95a5d9 | 0156169eba2b3bf660578f51f6ebcc231b7022b9 | /Qix/Qix.h | ee267ae34267885f453f786ee261d12fbea130d6 | [] | no_license | ckhamash/Qix | 22c75d4ec88db9af660e9eb9728316e76938c0ac | 03c5e95bd66a89e9ffb5fd6402f525452ab9ed00 | refs/heads/master | 2021-01-01T05:33:20.142960 | 2015-01-12T20:38:37 | 2015-01-12T20:38:37 | 28,829,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | h | Qix.h | #pragma once
#include "SFML\Graphics.hpp"
class Game;
class Qix {
private:
Game* pGame;
std::vector<sf::Vector2f> positions;
std::vector<sf::Vector2f> velocities;
float speed;
public:
Qix();
Qix(Game* pGame);
~Qix();
void initQix(std::vector<sf::Vector2f> initPositions);
std::vector<sf::Vector2f> getPosit... |
b4da465d2f5d0abbe88886dff8a66a23f97cd88f | 70a79d90a6a037071c41236ca0498f3e313ff1ce | /vpr/src/base/partition_region.h | eb89399191c6b9e7cc9e1b1ab73dc0f18f012660 | [
"MIT",
"MIT-Modern-Variant",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | verilog-to-routing/vtr-verilog-to-routing | 7f327e74394fb35ca90d90c48e62df8db6080513 | ef5f993959c6b6896f6821b14b361d581ebf46fe | refs/heads/master | 2023-09-01T04:19:02.151710 | 2023-08-31T20:57:20 | 2023-08-31T20:57:20 | 38,118,370 | 898 | 403 | NOASSERTION | 2023-09-14T15:30:08 | 2015-06-26T15:24:42 | C++ | UTF-8 | C++ | false | false | 2,473 | h | partition_region.h | #ifndef PARTITION_REGIONS_H
#define PARTITION_REGIONS_H
#include "region.h"
#include "atom_netlist_fwd.h"
#include "vpr_types.h"
/**
* @file
* @brief This file defines the PartitionRegion class. The PartitionRegion class is used to store the union
* of regions that a partition can be placed in.
*
* For more deta... |
27cd6fbe6bd0ce5d3723b7a0c0156d53e3d63f2b | cbae1c6cc49485decf4692befa0cc2d1f94fcb5a | /Pong/header.h | d959b04488ae7ed042f6af430a1ecd5b5c2abc0b | [] | no_license | macairececile/Projets_DUT | 4142ea9bb4cd1046dfb7d29878a0c15d04743423 | dc672389fb9dd611dd3bbc3868a892a316da62a8 | refs/heads/master | 2022-12-08T20:59:28.537254 | 2020-09-09T12:35:32 | 2020-09-09T12:35:32 | 294,094,150 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,255 | h | header.h | #ifndef HEADER_H_INCLUDED
#define HEADER_H_INCLUDED
#include <iostream>
#include <cstdlib>
#include <string>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <sstream>
using namespace std;
const int SCREEN_WIDTH=640;
const int SCREEN_HEIGHT=480;
const int SCREEN_BPP=32;
const... |
9c5306ea369ed59cbbcb2c1b1580096626b2a511 | 1a2190b96ca17719d2b41a5fbcac6043cf9f08e4 | /HackerRank/101 Hack 41/_arias-loops.cpp | 7212abc0add1a1d121bc1391381a650166cc4d1d | [] | no_license | eliasm2/problem-solving | 13c1abbf397bb41683fccb3490b0113c36ce9010 | 15becf49315b5defb8c1267e0c43ce1579dcae1a | refs/heads/master | 2020-09-07T07:12:17.112311 | 2018-07-20T17:27:43 | 2018-07-20T17:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 673 | cpp | _arias-loops.cpp | #include <bits/stdc++.h>
typedef long long int64;
typedef unsigned long long uint64;
using namespace std;
const int64 MOD = 1e9 + 7;
int main(int argc, char* argv[]) {
ios::sync_with_stdio(false);
int64 n, k;
cin >> n >> k;
if (k == 1LL) cout << n << "\n";
else {
k--;
int64 c = (k * (k + 1LL))... |
070590fcbe07e79314091adaeb8d12b5555962c4 | 009f903779fdc3e8667915f40c51e48276fd996a | /selectionSort.cpp | 56625da6215fbbdfc093bc160b1c52449c55c702 | [] | no_license | MaryoriHilares/cc2 | cab1e29e8133831667c283835d1bc67d14cf8c4a | c90dd03a277782f5ce3374290ef870372f0ae4cb | refs/heads/master | 2022-11-18T04:27:06.491533 | 2020-07-20T04:00:54 | 2020-07-20T04:00:54 | 263,794,763 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 913 | cpp | selectionSort.cpp | #include <iostream>
using namespace std;
void swap(int *xp, int *yp)
{
int temp = *xp;
*xp = *yp;
*yp = temp;
}
void selectionSort(int arr[], int tam)
{
int i, j, min;
for (i = 0; i < tam-1; i++)
{
// Encuentra el elemento mínimo en el arreglo desordenado
... |
7c2d75d38f30264e5db8408e9ef366778ad6bc96 | 39eac74fa6a244d15a01873623d05f480f45e079 | /ApplyListDlg.h | efa597524047e0f417c353bec8462c0e75797b62 | [] | no_license | 15831944/Practice | a8ac8416b32df82395bb1a4b000b35a0326c0897 | ae2cde9c8f2fb6ab63bd7d8cd58701bd3513ec94 | refs/heads/master | 2021-06-15T12:10:18.730367 | 2016-11-30T15:13:53 | 2016-11-30T15:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,721 | h | ApplyListDlg.h | //{{AFX_INCLUDES()
//}}AFX_INCLUDES
#if !defined(AFX_APPLYLISTDLG_H__65102141_410A_11D2_AB75_00A0246CDDA1__INCLUDED_)
#define AFX_APPLYLISTDLG_H__65102141_410A_11D2_AB75_00A0246CDDA1__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ApplyListDlg.h : header file
//
#define APPLY_LIST_COMBO_SEL_... |
49549513b54f309191d92d68951a6bc426cc5033 | 950dc03dea83292025ba6bbd47cec27b2008eba5 | /src/tim/vx/ops/conv2d_test.cc | 66a299c874ce4eba0a21fbbd57c975957933c867 | [
"MIT"
] | permissive | Changerzz/TIM-VX | 36d4a1d10bee3f1897c9e055508f938c56677998 | a09ffe8b98283674fc343907b403632bcecf92bf | refs/heads/main | 2023-06-19T09:21:29.432075 | 2021-07-21T07:52:19 | 2021-07-22T02:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,110 | cc | conv2d_test.cc | #include "tim/vx/ops/conv2d.h"
#include "gtest/gtest.h"
#include "src/tim/vx/test_utils.h"
#include "tim/vx/context.h"
#include "tim/vx/graph.h"
#include "tim/vx/types.h"
TEST(Conv2d, shape_4_2_1_1_float32_PaddingTest) {
auto ctx = tim::vx::Context::Create();
auto graph = ctx->CreateGraph();
tim::vx::ShapeType... |
501b0aeb745e1fdf27257938006866896a681886 | 58e65f021f19b09ce435e02f07085e956ec9d3d3 | /psuedocode_section/primecheck.cpp | d1378240f71a074619a32b85e680b98cadc0fada | [] | no_license | sagarr70/coding-blocks-launchpad | 58ecafad992d5a387fe60cff791a3b4335eeb9ad | 0470c30e9c63f9df6606b3a18b34e9036e1b9281 | refs/heads/master | 2022-12-10T13:39:33.572265 | 2020-09-14T06:19:21 | 2020-09-14T06:19:21 | 268,731,038 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | primecheck.cpp | #include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int flag=0;
for (int i = 2; i <n; i++)
{
if (n%i==0)
{
flag =1;
break;
}
}
if (flag==0)
{
cout<<"prime no.";
}
else
{
cout<<"not a prime no.";
}
re... |
d63f24fa29d7be548cc026be18b405b45c26d4cb | 87e70fb5fbf7248af832f5e5670da94b2383219b | /src/test/perf/memcpy/memcpy.cc | e3bee7d2c784911a8b232171ffeb2be7b822bafd | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/snmalloc | 2398796957201d105a4804f194d617b3b6e24e7c | 7b597335aedc2c60b0174f6e67a7f7560f841760 | refs/heads/main | 2023-09-02T03:03:40.163801 | 2023-08-25T13:17:04 | 2023-08-25T13:17:04 | 164,874,285 | 1,195 | 100 | MIT | 2023-09-14T11:04:14 | 2019-01-09T14:05:53 | C++ | UTF-8 | C++ | false | false | 4,275 | cc | memcpy.cc | #include "snmalloc/global/memcpy.h"
#include <test/measuretime.h>
#include <test/opt.h>
#include <vector>
using namespace snmalloc;
struct Shape
{
void* object;
void* dst;
};
size_t my_random()
{
return (size_t)rand();
}
std::vector<Shape> allocs;
void shape(size_t size)
{
for (size_t i = 0; i < 1000; i++... |
53199f1f5e766babd7f51d97539d304609242503 | a608c63b46da16eb43599f4aa3476403ffbb2adb | /Tema1/Object.h | a3a376ee19a5df352b9b2a82e428201bc00a4318 | [] | no_license | Vlad-Gabriel-Popa/Video-Games | 5bad818099e0d1f4997dcc7a1d91c16545936d82 | c18b6e870d2ac637b0f1c276a1590e198ed88f86 | refs/heads/master | 2021-01-03T11:12:05.290475 | 2020-02-12T17:47:11 | 2020-02-12T17:47:11 | 240,056,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | h | Object.h | #pragma once
class Object
{
public:
Object() {}
virtual ~Object() {}
virtual std::vector<std::pair<std::string, glm::mat3>> update(glm::ivec2 resolution, float deltaTimeSeconds) = 0;
virtual std::vector<glm::vec3> getBoundingBoxes() = 0;
};
|
288aabd2c1c9acd5044b5e092460fe9769cad045 | cec051c37e46b4134fa8834f559a70e4d103439b | /include/AnimatedObject.h | 3593647f9042d1a71bb87a5ea886110d7135f04e | [] | no_license | HasanYousef/OOP-War-of-Empires | 7b52441d6ffac2d8341ca12b7aca11be096fc316 | 84466cb47598ff9fa6bffb67ecf51aaa5e058f59 | refs/heads/main | 2023-06-03T04:09:22.897204 | 2021-06-24T22:15:54 | 2021-06-24T22:15:54 | 373,246,668 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | AnimatedObject.h | #pragma once
#include "WorldObject.h"
#include "Animation.h"
class AnimatedObject : public WorldObject {
public:
AnimatedObject(const sf::Vector2f&);
AnimatedObject(const sf::Vector2f&, const bool&);
//---build-body-----------
virtual void draw(float delta) const { WorldObject::draw(delta); };
virtual sf::Sprit... |
40d14ce7b81e78b1d8df4735b98b56c4827179d6 | d0c02a6e6355da82480891f7370db6b540301c40 | /platform/store/common/frontend/client.h | 7e6f67260649ce03fc12151784767844d208bcc7 | [
"MIT"
] | permissive | UWSysLab/diamond | 08a914c0366c05d02159a7ebc21ba006632b1b48 | 1beec323c084d9d477c770ca6b9625c8f5682a39 | refs/heads/master | 2022-07-25T01:32:06.827340 | 2020-06-11T21:16:06 | 2020-06-11T21:16:06 | 66,315,962 | 22 | 5 | MIT | 2022-07-07T20:58:24 | 2016-08-22T23:35:54 | Java | UTF-8 | C++ | false | false | 1,200 | h | client.h | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
// vim: set ts=4 sw=4:
/***********************************************************************
*
* common/client.h:
* Interface for a multiple shard transactional client.
*
**********************************************************************/
#ifnd... |
c11a5d6d462dba09b3ac8f602b843cc6ebefead2 | 0b92e1ec7fb877457e909de68b67b5c539f03985 | /include/timeline.h | b9814531e08cb63ce504721de3e8dbcd925e99e0 | [] | no_license | SystemicCypher/krono-engine | 27abf1874211cacbca95a3f06a5b43dfb0e6ae64 | 5d3f490886ba9bfffb25aaeabf05731f12e45d02 | refs/heads/master | 2020-05-09T12:11:28.045275 | 2019-10-09T09:45:37 | 2019-10-09T09:45:37 | 181,104,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | h | timeline.h | #include <string>
#include <map>
#include <utility>
#include <vector>
#include "timeperiod.h"
class Timeline{
public:
// The timeline constructor
// It creates a timeline object
// that has a
Timeline();
// takes in an index to a byte - returns the byte's interpretation
// basically returning the flag definition
... |
7d2f79e4e6f5479d4880fcae3c12978ecdfc7aa1 | 9923a00a9afcd97c2fb02f6ed615adea3fc3fe1d | /Branch/Perception/LaneDetectionMT/armadillo/include/armadillo_bits/spop_sum_meat.hpp | ec72d8e5606990cc1e88b2ea70b194daae732c2f | [
"MIT"
] | permissive | Tsinghua-OpenICV/OpenICV | 93df0e3dda406a5b8958f50ee763756a45182bf3 | 3bdb2ba744fabe934b31e36ba9c1e6ced2d5e6fc | refs/heads/master | 2022-03-02T03:09:02.236509 | 2021-12-26T08:09:42 | 2021-12-26T08:09:42 | 225,785,128 | 13 | 9 | null | 2020-08-06T02:42:03 | 2019-12-04T05:17:57 | C++ | UTF-8 | C++ | false | false | 1,778 | hpp | spop_sum_meat.hpp | // Copyright (C) 2012 Ryan Curtin
// Copyright (C) 2012 Conrad Sanderson
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//! \addtogroup spop_sum
//! @... |
aeab02d60a274219001c2537891023a3399739a4 | f8f4aa67bac6feb1ecf5d5cc43cefde5722cd1e1 | /gctest/src/weighted_action.h | 4bcdd6f2df5e4620b473809217d4dcbd82d780f7 | [] | no_license | SofiaCPP/IPL | a2ad968a09cae74dfb6cd57c067fa1a2e8d9c0c0 | 4efc456ff03850fa840bfbbc17f30f772562dcf2 | refs/heads/master | 2023-07-10T01:34:47.943866 | 2023-02-10T08:03:58 | 2023-02-10T08:03:58 | 146,637,650 | 25 | 52 | null | 2023-08-17T07:29:34 | 2018-08-29T17:51:02 | C++ | UTF-8 | C++ | false | false | 871 | h | weighted_action.h | #pragma once
#include <functional>
#include <random>
#include <vector>
template <typename Result, typename Generator>
class WeightedActionTable
{
public:
WeightedActionTable(Generator* generator) : m_Generator(generator) {}
typedef std::function<Result()> ActionCallback;
void AddAction(Actio... |
ed61eb3fb15be1b921e0ce98cbd49fafc9c0f081 | d468d856851990af88f1f80412d792e459af2b4f | /xml_parser.h | 686ae77e798f52860d5fe38cf1bb1d036bdf0dd4 | [] | no_license | jean-marc/objrdf | 27ed47a2ff6ee84d65476d3b1c2f5e39a4d24d34 | 3c83c11a10e2d9697e48bb81dff5a449d6ffb7a8 | refs/heads/master | 2020-05-17T07:59:00.765844 | 2017-10-04T18:35:01 | 2017-10-04T18:35:01 | 2,861,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,152 | h | xml_parser.h | #ifndef XML_PARSER_H
#define XML_PARSER_H
#include "ebnf.h"
#include <iostream>
#include <string>
#include <map>
#include <sstream>
#include <math.h>
#include <vector>
#include <list>
#include <algorithm>
#include "uri.h"
//using namespace std;
namespace objrdf{
typedef std::map<objrdf::uri,std::string> ATTRIBUTES;
... |
a27c1bbae17c33b9f7f38ce21e77f3efd8db1292 | bc08fd1521dc811e1da1e6ff1edbcc4d8d531130 | /main.cpp | 15cdc0b3d5a7ad22af096e0c9ea6a739c9927dd8 | [] | no_license | zlee-personal/gravity | dabb5c7372bfae9ddd89b4a711fdaeac44d6dae9 | d38d3a55e78d23fc4ebcde713a4865d2cf92fde2 | refs/heads/master | 2022-07-04T00:16:25.201869 | 2020-05-20T20:53:35 | 2020-05-20T20:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,037 | cpp | main.cpp | /* CSCI 261 Final Project: Zack and Kenny Go To Space
* Author: Zachary Lee
* Section B
* Author: Kenny Pham
* Section C
*/
#include <SFML/Graphics.hpp>
#include <vector>
#include <cstring>
#include <thread>
#include <iostream>
#include <mutex>
#include <windows.h>
#include "Planet.h"
#include "functions.h"
#include ... |
bad3ae2632bb60ccb6ed4018c577aedf77c58f7f | 8b4c7652384e08b2ab0f41d4d0962c212a1e32aa | /static/integer/binary/logic/bit_manipulation.cpp | 6f44cc43edbbf5789da7ada67bf27685fa896686 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | stillwater-sc/universal | cd9e63d8672663de6716733c3a59c64f7a745e13 | e0d76cdd1f901d3c779ef6c1e8adf8d323b4aa53 | refs/heads/main | 2023-08-21T14:53:02.747975 | 2023-08-08T16:14:14 | 2023-08-08T16:14:14 | 89,959,055 | 352 | 72 | MIT | 2023-09-07T21:23:58 | 2017-05-01T20:13:06 | C++ | UTF-8 | C++ | false | false | 7,715 | cpp | bit_manipulation.cpp | // bit_manipulation.cpp : test runner for bit manipulation of abitrary precision fixed-size integers
//
// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
#in... |
e9871bec3d4ae756bb9bc2b59651114ab438dabc | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/code-jam/files/3224486_y0105w49_5632366324219904_0_extracted_D.cpp | 1e80021f8cd33e84f557039a13db41402a29dab0 | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 680 | cpp | 3224486_y0105w49_5632366324219904_0_extracted_D.cpp | #include <bits/stdc++.h>
using namespace std;
int N,L;
string G[120],B;
int main() {
int t; cin>>t; for(int zz=1;zz<=t;zz++) {
cin>>N>>L;
for(int i=0;i<N;i++) cin>>G[i];
cin>>B;
for(char c:B) assert(c=='1');
for(int i=0;i<N;i++) {
for(char c:G[i]) if(c=='0') goto good;
goto die;
... |
5f260cced8e7ace620a246181d02534bf11b7eb1 | d3567e3e6c23d662f84256298638e678ef6bd8ae | /string_sort.cpp | 118e0588129f80cf16904b1c69e9f887e600f0c0 | [] | no_license | andpar83/filesort | a4ff2823fc1e82111ce58f91a93eb8f0b32dc5da | 6dae1bd9793d4a9823ae0c140cb85fbfa54583bf | refs/heads/master | 2016-09-06T05:13:14.424242 | 2015-08-23T21:08:01 | 2015-08-23T21:08:01 | 41,266,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,798 | cpp | string_sort.cpp | #include "string_sort.h"
#include <cstdint>
#include <utility>
#include <algorithm>
#include <future>
namespace fs { namespace utils
{
namespace impl
{
struct positional_less_comparator
{
positional_less_comparator(size_t p) : pos(p)
{
}
bool operator()(const light_string& lhs, const light_string& rhs)
{
if ... |
7a699b63ee58816243b67cd94a0d23aa23802e5a | 5710362898c0e7e55cce568c01d508e1e298ee73 | /linux/CThread.cpp | f0f1bae8a397039150da5eea3d23a886fd2c916a | [] | no_license | zhenyatnk/LockType | bb21e330fc118791df8f2dffda202c0c3a35c546 | c2fc7c165605f286fba660382894430eadb463c5 | refs/heads/master | 2021-01-10T01:48:53.358441 | 2016-02-25T17:53:23 | 2016-02-25T17:53:23 | 36,813,285 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | CThread.cpp | #include <pthread.h>
#include "../intf/IThread.h"
//----------------------------------------------------------
class CPosixRunnerThread
: public IRunnerThread
{
public:
virtual bool Start(IThread* aObj);
virtual bool Wait();
virtual void Close();
private:
pthread_t thread;
};
//-----------------------------... |
7986c940e963be1338c0defa162e8e06ad60c2ae | 4954faea3f92757e1456cfd20da71e1aeb6005f0 | /classe_aluno.cpp | e3941d9fe178c76bd8ae2c448861545079eddee2 | [] | no_license | lucasbat/classe_aluno | 65d53b62839e229a50afc1f1e2666aeba43cb4e7 | d70b2e0a04ddeadba89f1337d3ed6fc70211ca65 | refs/heads/master | 2021-05-10T08:54:59.245775 | 2018-01-25T12:32:27 | 2018-01-25T12:32:27 | 118,910,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | classe_aluno.cpp | /*
Programa que implementa uma classe chamada aluno para calcular
mensalidades de acordo situacao: sem bolsa, meio-bolsista ou bolsista.
*/
#include<iostream>
#include<string>
using namespace std;
class Aluno{
private:
string nome;
int qtd;
public:
Aluno(){
qtd=0;
}
~Aluno(){}
void set_dados(){
c... |
544886633bd4882f629833fe498fc24f9637e60c | 89b935080c6eb26043cc82100729637c4b978073 | /src/ssd1327.h | ba566e018c8a117d59b6059cf251104f7f3a178a | [
"Apache-2.0"
] | permissive | markbirss/ssd1327Grayscale | f8e14b3f1bc5edf998dc08c7034151c2dd6f5077 | fb8622d5f45beaa68a50d85ba0ba58a512f9ed0b | refs/heads/master | 2023-07-25T23:28:21.580576 | 2020-11-24T11:19:08 | 2020-11-24T11:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,225 | h | ssd1327.h | /*
* SSD1327 Grayscale driver library for SSD1327 over I2C.
*
*/
#ifndef SSD1327_MAX_I2C_BUFFER
#define SSD1327_MAX_I2C_BUFFER 32
#endif
#ifndef SSD1327_MAX_SPI_BUFFER
#define SSD1327_MAX_SPI_BUFFER 32
#endif
#include <stdint.h>
namespace Ssd1327 {
class Interface {
/**
* Virtual methods to be implemented f... |
8e64a5b0aa1fd95fcf6575538fd3ca2b732f7942 | 53fa6e3e8f305e131ff3d7731579715ecdbbff48 | /Dynamic Programming/Unbounded Knapsack/Unbounded knapsack variation/3 Coin changed MIN no. of coins/MIn cions.cpp | 5225e629769816e5fe224a5f85089515ff387f6a | [] | no_license | swapnilghule/dynamic-programming | 2661a5bed733a54528f4aef2c935bb074478241e | e883f4a83dabf291b7dfa19e1591cb956a8f508e | refs/heads/main | 2023-02-12T18:19:25.324736 | 2021-01-20T10:47:24 | 2021-01-20T10:47:24 | 331,276,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | MIn cions.cpp | #include<bits/stdc++.h>
using namespace std;
int t[200][2000];
int knapsack(int a[],int sum,int n)
{
for(int i=1;i<n+1;i++)
{
for(int j=1;j<sum+1;j++)
{
if(a[i-1]<=j)
t[i][j]=min((t[i][j-a[i-1]]+1) , t[i-1][j]);
else
t[i][j]=t[i-1][j];
}
}
return t[n][sum];
}
int main()
{
int n;
cin>>n;
int... |
223b90b783e60c7542eabcec42139fb6e0177aa5 | 99cc08be9f7cc2246218c2b1eaea785866094e64 | /Lab9/menu.cpp | d3436be2d8b2e1cfcf635c1a26fcf58f7762526b | [] | no_license | EdgarH90/Lab9-Stack-Queue | 46955ea38ad3f4e734e387d4aab52970db814875 | b765ebdeeba6583811d343e250d6bdc3f1b40100 | refs/heads/master | 2022-05-06T20:56:20.057386 | 2019-12-07T03:14:18 | 2019-12-07T03:14:18 | 225,083,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,634 | cpp | menu.cpp | /*******************************************************************************
** Author: Edgar Hernandez
** Date: 11/30/2019
** Description: This program contains the specification for the menu functions.
** It contains the main menu for stack palindrome and queue buffer functions and a
** submenu to ... |
74ac44a702984a7bb61e1ae08506f50ef9a7acb1 | 539fc5ad4ddcf095f51259aa2f5f8569029162be | /PT-CMPN103/Actions/BackAction.cpp | 087e30cba7c093105c0119e979987c1047d90df5 | [
"MIT"
] | permissive | ahmed-i-mokhtar/PT-CMPN103 | 89bbc039fe7036b9b788b693abe41445fc9db181 | 52893c2faf8c21aaeb0fbdb33556ba74d8bc6a7a | refs/heads/master | 2021-06-17T17:42:19.379901 | 2017-05-24T13:06:50 | 2017-05-24T13:06:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp | BackAction.cpp | #include "../Actions/BackAction.h"
BackAction::BackAction(ApplicationManager*pApp) :Action(pApp)
{
}
void BackAction::Execute()
{
pManager->GetOutput()->CreateMainToolBar();
}
void BackAction::ReadActionParameters()
{
}
BackAction::~BackAction()
{
} |
18a9bd015c9b661ca9844b322f8c155515477dc1 | 7e089d39e23b1f55329e9661f3a4ba4c5a23afbd | /src/shared/engine/CreateTavernCommand.cpp | 0448e5cc8b66aee2028c89c9630d90fb38666ae9 | [] | no_license | Lastv25/rivieremonjoux | c2c6c4c40565b4fc43b2d2833349599ae82fcf66 | 01f71d12750761be050b506ba65d529ef54a9cde | refs/heads/master | 2021-10-11T15:36:04.042571 | 2019-01-18T13:48:08 | 2019-01-18T13:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | CreateTavernCommand.cpp | #include "CreateTavernCommand.h"
#include <iostream>
using namespace std;
using namespace engine;
#include "../state/Tavern.h"
#include "../state/Village.h"
namespace state {
class Village;
class Tavern;
}
using namespace state;
CreateTavernCommand::CreateTavernCommand ():Command(){
this->commandTypeId = CreateT... |
bcedd2caa9e27ff62bcd8b85659c8dc5643c4168 | 8e00a94a33b21c4a37e7c736d6bc50fa1a1f8a53 | /cli/notearray.cpp | 2035c09cd338016b1b46e646a39a99ecb5801131 | [] | no_license | craigsapp/humextra | cec67684cee40d190a692d58c3cb5c5c0f7f4c21 | d2b87007c0d03c44a28c98c93690bcd97db2a243 | refs/heads/master | 2023-08-30T22:59:35.513514 | 2023-08-09T11:30:50 | 2023-08-09T11:30:50 | 9,120,415 | 17 | 7 | null | 2019-09-24T00:02:41 | 2013-03-30T18:56:05 | C++ | UTF-8 | C++ | false | false | 43,739 | cpp | notearray.cpp | //
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Tue Aug 30 10:51:26 PDT 2011
// Last Modified: Fri Sep 2 18:25:34 PDT 2011
// Last Modified: Tue Sep 13 13:33:52 PDT 2011 Added -k option
// Last Modified: Thu Sep 15 01:36:49 PDT 2011 Added -D option
// Last Modified: Thu Oct 20 22:23... |
ced610df676b7171802439e77c2beab4da2fba23 | c202d50379bedd56ad716e27b0ee2c9a3ece508c | /onesolmain.cpp | c79ea988de62555ab04d169a3e6319667ce29472 | [] | no_license | darryusa/QtProcess | 668402fb346eced303005c1704e1d4308343c58e | 578039859968a6ac2079aca38bc069558377c511 | refs/heads/Production | 2021-01-19T03:42:37.161376 | 2016-07-26T03:26:22 | 2016-07-26T03:26:22 | 63,032,141 | 0 | 0 | null | 2016-07-19T05:59:58 | 2016-07-11T03:01:39 | Makefile | UTF-8 | C++ | false | false | 4,049 | cpp | onesolmain.cpp | #include "onesolmain.h"
#include "staffwindow.h"
#include "reportswindow.h"
#include <QStackedWidget>
#include <QDesktopWidget>
#include <logindialog.h>
OneSolMain::OneSolMain( QWidget *parent ) : QWidget( parent )
{
//initialize variable
menuWindow = new MainWindow(this);
reportsWindow = new Repo... |
0282310a9073d1d5c191f7e27faab16d8558159b | 83ed3c66ce8971f02e31b1142bb30a387e8d8d64 | /Hecsit.Graphics.EvA1/chiken.cpp | 0aff1a6f9fdc28805ba123ff04af5c10c4aa3da1 | [] | no_license | Huex/EvA | 5ab9a9afcd41e9f8783b4874b57b57ab2782d2ac | 7066eed85e41120a02741d7fbbb975889adec17c | refs/heads/master | 2020-06-10T09:09:22.976677 | 2016-12-08T22:00:43 | 2016-12-08T22:00:43 | 75,976,035 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,246 | cpp | chiken.cpp | #include "stdafx.h"
#include "chiken.h"
void Chiken::Update()
{
extern float TIME_PER_FRAME;
x += dx*0.005;
y += dy*0.005;
if (dx == 0 && dy == 0)
{
coord.s = float(2) / 7;
}
if (dy > 0)
{
orientation = Up;
timerY += TIME_PER_FRAME;
if (timerY >= 120)
{
coord.s -= scale.s;
timerX = 0;
time... |
da594c70b971602d85edda577308de9a8660548f | b7f64aa094e720f296ec88d92bca04dd29728910 | /DS&Algorithm-Models/数据结构/可并堆/棘手的操作_并查集+配对堆.cpp | 8d35d3713b80c998acec10b4227e86af51026dc8 | [] | no_license | AsterNighT/OI-Package | 9d9a916ff6f90ceab1dfc78d4f37d650a192b241 | 4c83e7cc9134bfe608deb7aea4abb1d422ef223a | refs/heads/master | 2021-06-22T17:07:52.753154 | 2017-07-15T14:05:59 | 2017-07-15T14:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,148 | cpp | 棘手的操作_并查集+配对堆.cpp | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
#include <cmath>
#include <map>
#include <stack>
#include <set>
#include <vector>
#include <queue>
#include <time.h>
#define eps 1e-7
#define INF 0x3f3f3f3f
#define MOD 1000000007
#define rep0(j,n) for(int... |
56e9dc8b00476c5e6925b39272a77cf88c8d4fad | 5c98e2e97e1546bea8c1b11212e0f227fab7bd9a | /KR1/Print.h | b6bf879d9cef7e1e3679da2499de111fe9bd8a71 | [] | no_license | mariyaveleva16/OOP | 076a845c00c7e023ccff023f2224bed63702dfff | a8cc27bb9f5d8a2e9623176fb31c73cd41ee6a65 | refs/heads/main | 2023-06-07T23:07:01.765217 | 2021-06-24T19:37:44 | 2021-06-24T19:37:44 | 379,961,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,895 | h | Print.h | #pragma once
#include<iostream>
class Date {
private:
int day;
int mounth;
int year;
public:
Date() {
day = 0;
mounth = 0;
year = 0;
};
Date(int d,int m , int y){
day = d;
mounth = m;
year = y;
};
Date(const Date& other) {
this->day = oth... |
a360d2b60e6f5c8c5cbe844e8952e4092d3b6107 | c9f0643360e17435db80298c4788f28dda695684 | /UppgiftA/Source.cpp | 4cc25d4e074e2ba373e63ad1ed53da1ea68df7e6 | [] | no_license | Woebin/UppgiftA | 67c715282fd11eb6a5f09cf62a35bab15ac62ea5 | 4650184e08e1a8b67a8e2a031f67978da4e37d0d | refs/heads/master | 2021-01-19T02:09:31.814112 | 2016-11-10T13:37:08 | 2016-11-10T13:37:08 | 73,385,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | Source.cpp | #include "Elephant.h"
#include <string>
#include <iostream>
using namespace zoo;
int main() {
Elephant* elephants[3];
elephants[0] = new Elephant("Jumbo", 600, 170);
elephants[1] = new Elephant("Mumbo", 500, 160);
elephants[2] = new Elephant("Lillen", 800, 200);
for (int i = 0; i < 3; ++i)
printElephant(eleph... |
d45efe89d62b30a35a56881c62e71e1b17748153 | 614f435c936612360cc0d5c2f6bfd0bfd531a3f0 | /service/src/properties/source/PropertySource.h | 4f0e38f3a1f9dcc9266d5bd0c5e0fe3157e57134 | [
"Apache-2.0"
] | permissive | darvik80/rover-cpp | 6a4db9140ca24f7a6eb0fcb1a1e26a609053a5b0 | 8da7b7f07efe7096843ae17536603277f55debea | refs/heads/master | 2021-12-07T09:22:55.515589 | 2021-10-27T08:26:31 | 2021-10-27T08:26:31 | 192,087,118 | 2 | 1 | Apache-2.0 | 2021-06-27T15:42:44 | 2019-06-15T14:20:28 | C++ | UTF-8 | C++ | false | false | 960 | h | PropertySource.h | //
// Created by Ivan Kishchenko on 11.04.2021.
//
#pragma once
#include <string>
#include <string_view>
#include <memory>
#include "properties/NetworkProperties.h"
#include "properties/LoggingProperties.h"
#include "properties/HttpProperties.h"
#include "properties/GrpcProperties.h"
#include "properties/SerialProper... |
a2143aaf377352da8004ae24e2945783911d7f46 | bf8072d530549fb3972777ef8b8550883fba32f0 | /Contest3/bai7/bai7.cpp | caadd1ec51427d8b5d618e5332c016e2c2e9bd83 | [] | no_license | vhg-vip/DataStructure | 42bb48b9cb7cd13518cfe38f6c4fca063a991b91 | 2e2aeeb566816dde6deb82a4b3b6b04081df2aac | refs/heads/master | 2022-12-14T03:44:49.373943 | 2020-08-30T14:35:12 | 2020-08-30T14:35:12 | 268,308,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | bai7.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long ll;
ll mod=1e9+7;
bool cmp(ll a, ll b){
if(a>b) return true;
else return false;
}
int main(){
int t;
cin >> t;
while(t--){
int n;
cin >> n;
vector<ll> a;
vector<ll> b;
... |
31d5295534243f3955a0ba4067adc471239867fe | c0cc585bca2066cbf46f6b3e9f4936f478181e0c | /include/TCPServer.cpp | 495acc5cb8d5d26738d75754962bf6699ef6038d | [] | no_license | fassad1001/QT_UniversalIOInterface | 638a97814e56db35067f2ced0b14cc7b17f29a91 | c77280d78b5a4857477fc5d411125290cb90dda9 | refs/heads/master | 2021-04-12T08:02:38.678477 | 2018-03-19T13:56:15 | 2018-03-19T13:56:22 | 125,846,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,825 | cpp | TCPServer.cpp | #include "TCPServer.h"
TCPServer::TCPServer()
{
qRegisterMetaType<Client>("Client");
StartAcceptingptr = NULL;
MaxNumberClient = 0;
}
TCPServer::TCPServer(unsigned int port)
{
qRegisterMetaType<Client>("Client");
Port = port;
MaxNumberClient = 0;
StartAcceptingptr = NULL;
}
TCPServer:... |
b114f7bacf99040625327bdaa92278335b3aa094 | a799823d46e58f21c4eeed2a39a4be1bce36418f | /output.cpp | 02ae990170b44dd90d14467f8ab24b6a0206d206 | [] | no_license | jburkholder/io | 79acf4f39e6fbd3a36b3c5e23479bda33c5bfbb8 | 1b5ce2a5458f7f2c1d9d56ce2c703bec3a993ddf | refs/heads/master | 2021-01-10T08:58:36.074548 | 2015-11-15T00:21:43 | 2015-11-15T00:21:43 | 44,889,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | output.cpp | #include <output.hpp>
#include <mutex>
// For:
// std::mutex
// std::lock_guard
#include <temporary.hpp>
static std::mutex output_main_mutex;
void output_main() {
std::lock_guard<std::mutex> output_main_lock( output_main_mutex );
try {
debug_print( "Hello", ", ", "Output" );
} catch ( ... ) {
throw;
}
}
|
6d137c11464f41e1ba9e2214d6bf996c861b388c | 588c59ce0d31e9874dee2902e9f1cd87a909b74b | /Graph/Graph/graph.cpp | 0e96df63ce7b0c4c7bae589956b5aed952148e9a | [] | no_license | MemoryOfStars/rehab | e56da637a6ec89bb283b45498aea301cd14d9fb0 | d0eceaa3a48ee502268848d7c98c2d31e1aa5ed8 | refs/heads/master | 2020-08-29T00:24:37.635064 | 2019-12-01T07:17:29 | 2019-12-01T07:17:29 | 217,864,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | graph.cpp | #include<iostream>
#include<stdlib.h>
#include<vector>
#include"structure_define.h"
using namespace std;
int main()
{
Graph g = Graph();
g.addvertex("A");
g.addvertex("B");
g.addvertex("C");
g.addvertex("D");
g.addvertex("E");
g.addvertex("F");
g.addedge("A", "B", 4);
g.addedge("A", "E", 7);
g.addedge("A", ... |
af0a7333a675f8ab5d46a31571f993a9b3fe4343 | 89315bac44965dfb2ff149deda06ae6a069f3ece | /Source/main.cpp | 50dad3b595379907bca4318d25ad1c478df2bd8b | [] | no_license | ulkumeteriz/Ray-Tracer | cf66884d3aaf7872b83b090c7856eb141b1d54bf | 7831622239fc174ac7665697a2b43cbe8c3236a0 | refs/heads/master | 2020-04-03T22:11:19.113761 | 2018-10-31T16:57:22 | 2018-10-31T16:57:22 | 155,592,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,250 | cpp | main.cpp | #include <iostream>
#include "parser.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <math.h>
#include "matrix4.hpp"
#define PI 3.14159265359
using namespace parser;
using namespace std;
parser::Scene scene;
static GLFWwindow* win = NULL;
static const float CAMERA_TRANS_SPEED = 0.05f;
// in radian
static ... |
998e9d5b5fa744dc7cfb9a2937bfd610965ab006 | d93159d0784fc489a5066d3ee592e6c9563b228b | /Validation/DTRecHits/plugins/SealModule.cc | 72272efd823e8e0e486737cec7aa3d86b5b48c73 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | C++ | false | false | 755 | cc | SealModule.cc | #include "FWCore/Framework/interface/MakerMacros.h"
#include "Validation/DTRecHits/plugins/DTRecHitQuality.h"
#include "Validation/DTRecHits/plugins/DTSegment2DQuality.h"
#include "Validation/DTRecHits/plugins/DTSegment2DSLPhiQuality.h"
#include "Validation/DTRecHits/plugins/DTSegment4DQuality.h"
#include "Validation... |
f2cda1a44d3f8a810f8c4a2b0b6356173bc84dc8 | 24e015bfc2883daf97c71a5c08cc3765d3678c74 | /cpp/PageRef.h | 2123e4a9c30c7ea015ce9cc3c9c47242ea1882c1 | [] | no_license | herobd/crowdcat | 4309a45fc9de0f42d7919d37af1034c78c392c67 | 67c24a18d5a6172b450bf4916557e10b3aebac43 | refs/heads/master | 2021-01-17T07:59:42.470951 | 2017-03-31T23:25:27 | 2017-03-31T23:25:27 | 83,824,594 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | h | PageRef.h | #ifndef PAGE_REF
#define PAGE_REF
#include <map>
#include "opencv2/core/core.hpp"
#include "Location.h"
using namespace std;
//This object is purely to provide pointers when loading the systems state.
//It is created by the Page and then passed to the MasterQueue
//For debugging, it holds all word bounding boxes an... |
2b8fba557c35264706b198812b2eb2cc28fec080 | 24cb0327427918882f25def47b4a16d7631cfa4b | /Library/patient_page.h | fbca6375e38317c97b33f69856b0ff6d65ab7d2a | [] | no_license | post-operative-care/GUI | c460c807285c18b70a936afdf4397cd7f04d89ac | e236799384ed0b0ef04821e2022d980ee02a0997 | refs/heads/master | 2021-05-19T11:31:21.280291 | 2020-04-15T06:31:05 | 2020-04-15T06:31:05 | 251,675,631 | 0 | 0 | null | 2020-04-14T15:09:02 | 2020-03-31T17:12:55 | C++ | UTF-8 | C++ | false | false | 167 | h | patient_page.h | #include<iostream>
#include<fstream>
#include<iomanip>
#include<vector>
#include<string>
#include<cstdlib>
#include<cstring>
#include<windows.h>
using namespace std;
|
33de3be4e88ceb86cd4dc8d3958741e71226e3bf | 75ac581fff16bc6ec1f0a370a7c144e1826ed34c | /Modelo/Persona.cpp | 59ef9f442961797e8f053ca1e19e2c12c3d5ee0f | [] | no_license | IsaacEscobar/POSGSOFT-IER-SHG | 19a30ad81dc415c5f0425a2c5fa1331e99ad47c8 | db73da77b57379ced51cfd89f6719ae55d99f077 | refs/heads/main | 2023-08-01T11:40:51.757930 | 2021-09-15T04:01:47 | 2021-09-15T04:01:47 | 405,523,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | cpp | Persona.cpp | #include "Persona.h"
// clase padre
// constructor por defecto
Persona::Persona()
{
}
void Persona::mostrarInformacion(string nombre, int documento)
{
cout << "nombre" << nombre << "\n";
cout << documento << documento << "\n";
}
void Persona::setNombre(string nombre)
{
this->nombre = nombre;
}
string Per... |
c59f14bf49b2645b3b621ccfe4c3c6e9b2466f40 | 5e5f82bd51f8025d95f55423506638308952ad31 | /common/seda/Stage.h | c68a38cbf9934b77a5c11a91c91e8590ac239804 | [] | no_license | fanjizhao/zonda | fbad2526135fbcb9bc3875175a206355799362f2 | 78b2941402e20c9ba31870ab43cc26134d2c05b3 | refs/heads/master | 2022-05-12T10:10:29.444731 | 2022-03-22T15:07:00 | 2022-03-22T15:07:00 | 8,473,194 | 5 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 6,188 | h | Stage.h | #ifndef ZONDA_COMMON_STAGE_H_
#define ZONDA_COMMON_STAGE_H_
#include <iostream>
#include <vector>
#include "IStage.h"
#include "StageThread.h"
#include "StageMgr.h"
#include "log/Logger.h"
#include "EventDispatcher.h"
namespace zonda
{
namespace common
{
template <class TypeOfHandler, class TypeOfQueue = EventQu... |
bbcd556f0211a7cb09ea798d81ad8d71c053bdad | 4096f25bf0a689eb6d648619415ab2f9a711501c | /2DLibV2/Texture/Texture.hpp | 0d260104a09101003d2ea01bf1628e44ad1e5bf3 | [] | no_license | semenovsergey0706/OpenGLBased2D | b27f53575a0c4750fa183c60514dde103776927b | 5afa2b93419cde29b8bcd75ebdb698753998d01b | refs/heads/master | 2023-01-05T22:20:19.212421 | 2020-11-07T12:37:34 | 2020-11-07T12:37:34 | 290,451,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | hpp | Texture.hpp | #pragma once
#include <string>
#include <memory>
#include "../../OpenGLWrappers/TextureObj.hpp"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class Texture
{
private:
int m_textureID;
TextureObj<GL_TEXTURE_2D> m_textureObj;
glm::vec2 m_size;
public:
Texture();
Text... |
b34acae497c05b262b21ee87a36e7fa9e04fe9d0 | c38d6e28655d1c51829c66912e47f1c5578acc73 | /src/memo/filesystem/Unreachable.cc | 85aa23fd36b9a6f2db85331094a2691111541894 | [
"Apache-2.0"
] | permissive | TheodorKleynhans/memo | 812dd573f574f69d6b3bd50ea9a3bf180de06eca | 47095bf37a09258a957bf78efda3558762d41386 | refs/heads/master | 2021-01-15T22:10:14.453446 | 2017-07-24T16:21:49 | 2017-07-24T16:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,824 | cc | Unreachable.cc | #include <memo/filesystem/Unreachable.hh>
#include <elle/cast.hh>
ELLE_LOG_COMPONENT("memo.filesystem.Unreachable");
namespace memo
{
namespace filesystem
{
/*-------------.
| Construction |
`-------------*/
Unreachable::Unreachable(FileSystem& owner,
std::unique_ptr... |
d59cb4c7ea919380cb7a9690ec4cd48f27288f65 | a67aff40080148e6ef791cae0a983d3dfc51a3e5 | /LeetCode/tags/hash-table/count-good-meals.cpp | 5e55033fb9c64016e5a0621a6b8cea7ed15fa918 | [] | no_license | llenroc/CP | 622b97676dafc80dbcb7054977fcb73702f370fe | fa4c5160f37b6cc550b062bf77b17b0484efc671 | refs/heads/master | 2023-03-28T17:25:28.548230 | 2021-04-06T11:09:14 | 2021-04-06T11:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | count-good-meals.cpp | #include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define MOD 1000000007
typedef vector<int> vi;
typedef vector<vector<int>> vii;
class Solution {
private:
unordered_map<int, int> meals;
long twoPointerSum(int target) {
auto s=meals.begin(), e=rbegin();
long count=0;
while(... |
67104378abc804145aa080312553f55ea39fa8c2 | 7354562d87d43f4f7dc7787cb44c0db99be23f18 | /40.cpp | 097984591374badf20d3bd0983488557d4a3e530 | [] | no_license | adityamangal1998/competitive-coding-questions | a9d428ecd2a542cd4bd68c8ed81306ce9e33e828 | 2be25c999f58ece19010811d9986ecd5e959aa86 | refs/heads/master | 2020-07-22T11:22:55.766438 | 2020-05-29T12:34:56 | 2020-05-29T12:34:56 | 207,182,041 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | cpp | 40.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin.tie(NULL);
int n;
cin>>n;
int temp;
int count = 0;
while(n--)
{
cin>>temp;
if(__builtin_popcount(n)==1)
{
count++;
}
}
cout<<count;
}
|
e53fc4872ee0846d6179c88421f62c807845833d | 3d144a23e67c839a4df1c073c6a2c842508f16b2 | /include/swift/AST/Module.h | aa1d88cb6388292b96c73596e99f4ca317c255f9 | [
"Apache-2.0",
"Swift-exception"
] | permissive | apple/swift | c2724e388959f6623cf6e4ad6dc1cdd875fd0592 | 98ada1b200a43d090311b72eb45fe8ecebc97f81 | refs/heads/main | 2023-08-16T10:48:25.985330 | 2023-08-16T09:00:42 | 2023-08-16T09:00:42 | 44,838,949 | 78,897 | 15,074 | Apache-2.0 | 2023-09-14T21:19:23 | 2015-10-23T21:15:07 | C++ | UTF-8 | C++ | false | false | 45,984 | h | Module.h | //===--- Module.h - Swift Language Module ASTs ------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
ff04e22ba42aae20689efa5148dfc4fd7f1291a6 | 870dc87ffdfa7d939d760afb8eb4163fbc981525 | /src/FrameBufferUserFrameHandler.cpp | e8afb8a4dd9c831e78c3bd072865576020adb625 | [] | no_license | spierepf/HDLC | 4abfbc89c8a1ae92ed6444c6fa9aab333fe4b45d | d52b3147ca9e01baee9fec2eaca4337480cc946a | refs/heads/master | 2021-01-10T03:40:08.224102 | 2017-08-26T13:52:32 | 2017-08-26T13:52:32 | 52,214,747 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | FrameBufferUserFrameHandler.cpp | /*
* FrameBufferUserFrameHandler.cpp
*
* Created on: Sep 28, 2015
* Author: peter
*/
#include "FrameBufferUserFrameHandler.h"
namespace hdlc {
FrameBufferUserFrameHandler::FrameBufferUserFrameHandler(FrameBuffer& frameBuffer) : frameBuffer(frameBuffer) {
// TODO Auto-generated constructor stub
}
FrameB... |
40ebe9e2add01b3558de0c97080ff08b879e6fd7 | ca312d55f55a07ace869fdec3508f440539109d5 | /offline/packages/trackreco/ResidualOutlierFinder.h | bdfbd27a3d0e19503565c0f7261f97849e1398d4 | [] | no_license | rccorliss/coresoftware | 8d0cef3d2d0e9b4337e04ce992771ec60941eaab | 79f380a1058390a7d353c034d326fa30d44ef892 | refs/heads/master | 2023-08-03T15:57:28.415262 | 2022-05-07T17:46:51 | 2022-05-07T17:46:51 | 149,708,452 | 0 | 1 | null | 2018-09-21T04:09:02 | 2018-09-21T04:09:02 | null | UTF-8 | C++ | false | false | 2,233 | h | ResidualOutlierFinder.h | #include <Acts/Definitions/Units.hpp>
#include <Acts/EventData/MultiTrajectory.hpp>
#include <Acts/EventData/Measurement.hpp>
#include <Acts/EventData/MeasurementHelpers.hpp>
#include <trackbase/ActsTrackingGeometry.h>
#include <trackbase/TrkrDefs.h>
#include <trackbase/ActsSurfaceMaps.h>
struct ResidualOutlierFind... |
6c265128ef9ab2547f3ff0640aed3ccb53d3c2a5 | d2924692c708bde0716dad0066ed7c93acb1f342 | /branches/natan/brkga/genetic_algorithm.h | 6e31876ab4000c40e183c208b29fadedb317a890 | [] | no_license | jimmyliu86/pifro | 119bdc8f4d61c65b0e5df73caf7fba422fecf1ed | 7c723322dc0ee16a4836c501a49f3285acaf6436 | refs/heads/master | 2016-09-05T11:56:04.009643 | 2013-02-08T04:06:09 | 2013-02-08T04:06:09 | 33,106,602 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,410 | h | genetic_algorithm.h | // Copyright 2011 Universidade Federal de Minas Gerais
// Autor: Luiz Gustavo Sathler Dias
// Projeto Orientado em Computação 2]
// Definição da classe Algoritmo genético.
#ifndef BRKGA_GENETICA_H_
#define BRKGA_GENETICA_H_
#include <vector>
#include "./instance.h"
typedef struct Chromosome {
std::vector<Reques... |
c0b023ee79c2384580d5c6141fd0fd3762fd4f0d | 9ddf037a658881221494c0278007e5e5ba8cf6e6 | /RomanAddition/include/RomanAddition.hpp | a71707c27a47c1b4f25efa75603c1893a2a469ed | [] | no_license | boryssmejda/SPOJ | 82d9a71ff81900e6234ec0584711384700887526 | 48b5be3e50327dc61a93a33a9a36ad3ac5934fad | refs/heads/master | 2021-11-11T07:33:42.139837 | 2021-10-23T13:28:10 | 2021-10-23T13:28:10 | 178,557,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | hpp | RomanAddition.hpp | #include <vector>
#include <map>
#include <iostream>
#include <string>
#include <utility>
#include <array>
#include <algorithm>
class RomanNumber {
private:
struct number {
std::string roman;
int decimal;
number(std::string s, int n): roman{s}, decimal{n}{}
};
const std::array<number, 13> m_dictionary = {
... |
e6b319a1fffff5bc929e8939d64f639cf6653324 | 094c3dfe368d9ea913391095aa5d2d8d55908162 | /c++/qt/lines/lines.cpp | 7c891681ccbe79c185787180ae312becd69852ce | [
"Apache-2.0"
] | permissive | tuxdna/sourcecode | 443389f8b631c89d4f195ef1adc0c102f2054e2b | 48001a01bb54db19a5bf170e887b7ce6b2d7019e | refs/heads/master | 2021-01-01T18:37:26.731223 | 2014-02-12T15:52:40 | 2014-02-12T15:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | cpp | lines.cpp | #include "lines.h"
#include <QApplication>
#include <QPainter>
Lines::Lines(QWidget *parent)
: QWidget(parent)
{
}
void Lines::paintEvent(QPaintEvent *event)
{
QPen pen(Qt::black, Qt::SolidLine);
QPainter painter(this);
painter.setPen(pen);
painter.drawLine(20,40,250,40);
pen.setStyle(Qt::DashLine);... |
91a07d271f045ad50db081c5d218e32def994685 | e12264c9052df7d548300af5879e74939aaf834e | /map_gui/mainwindow.cpp | 5b8ce4ad5b185b558ac4da0d7559ab6a19832ac1 | [] | no_license | jevgienij/sim_map | df0c85c5f731f546c18b5ae3901bd115187f7e27 | 1cffc0e002394c88ced4b3b75abe0381fa8f62a3 | refs/heads/master | 2021-01-23T21:38:40.636460 | 2014-03-11T18:28:25 | 2014-03-11T18:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QInputDialog>
#include <vlc-qt/Common.h>
#include <vlc-qt/Instance.h>
#include <vlc-qt/Media.h>
#include <vlc-qt/MediaPlayer.h>
SimMapWindow::SimMapWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::SimMapWindow),
_media(0)
{
// setup G... |
d816d985d21f618d2cc5d97b5891973e608ef097 | 76664ce6e64e7b79e1da0bc41bbb301505d992ef | /libraries/chain/apply_context.cpp | d1ccdbfc9d169d9dcf0bd6f32629a8ab0413d0be | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"LLVM-exception",
"BSD-3-Clause"
] | permissive | Laighno/evt | 4b6fe18fdc4cc93b92b7bc4c27381a9ea5c784d7 | 90b94e831aebb62c6ad19ce59c9089e9f51cfd77 | refs/heads/master | 2021-06-02T07:47:34.222603 | 2019-05-18T07:11:16 | 2019-05-18T07:11:16 | 136,871,065 | 0 | 0 | MIT | 2018-06-11T03:41:41 | 2018-06-11T03:41:41 | null | UTF-8 | C++ | false | false | 3,275 | cpp | apply_context.cpp | /**
* @file
* @copyright defined in evt/LICENSE.txt
*/
#include <evt/chain/apply_context.hpp>
#include <algorithm>
#include <evt/chain/controller.hpp>
#include <evt/chain/execution_context_impl.hpp>
#include <evt/chain/transaction_context.hpp>
#include <evt/chain/global_property_object.hpp>
#include <evt/chain/co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.