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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b67a2d1bd7753261686239eae3ce72995f2d7592 | b42a774e667e97076195f7da026d709411d52b26 | /day10_move_and_move_if.cpp | 172f14f285567f2935e2d62f76eb112bb4043c34 | [
"MIT"
] | permissive | KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL | 5efa9b5d8a24d637622145e6b038751af2caae26 | dddb1f3f6b43b628b87dcb26b72495e5c7d19e55 | refs/heads/master | 2020-04-10T15:12:37.263427 | 2019-01-05T14:25:32 | 2019-01-05T14:25:32 | 161,101,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,906 | cpp | day10_move_and_move_if.cpp | //
// Created by LongXiaJun on 2018/12/16 0016.
//
#include "day10_move_and_move_if.h"
#include <vector>
#include <iostream>
#include <algorithm>
namespace demo_move_and_move_if {
namespace definition {
// Possible definition
template<typename ForwardIt, typename T>
ForwardIt remove(Forw... |
1fa40cb1955939268d0ae4b93b32037f30b18bee | d4aa0e3097d723c7a17baf5475db307660c074ad | /src/Common/AmendedTransform.cpp | 336bb1fb757dbcd6188de6c56adb04b2098ead54 | [] | no_license | tychi/Flewnit | f0ef2803629d97b214371183d08c84ef91d925d0 | 4bb0bb6bd3f2f55c37dee66f81642c94dee6bcf1 | refs/heads/master | 2020-05-17T00:11:28.704426 | 2011-07-15T10:05:28 | 2011-07-15T10:05:28 | 1,081,973 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,691 | cpp | AmendedTransform.cpp | /*
* AmendedTransform.cpp
*
* Created on: Jan 31, 2011
* Author: tychi
*/
#include "AmendedTransform.h"
#include "Scene/SceneNode.h"
#include "Util/Log/Log.h"
namespace Flewnit {
AmendedTransform:: AmendedTransform(
const Vector3D& position,
//(0,0,-1) is assumed as initial orientation, extress any d... |
ab647ec494b3cfbd388a9e461e20d000df5e8894 | 2fa31ae8d02cd92bf24bd8cf0f2a611a02a28519 | /before2018/baekjoon/A. Coins.cpp | 2bbfad66c1ab3da48c70504e2e72ac3eaea3587a | [] | no_license | dlftls38/algorithms | 3619186d8d832cda695dfbf985e5d86ef6f2f06e | 18ab96bbb3c8512a2da180477e4cc36a25edd30d | refs/heads/master | 2021-07-10T06:09:53.211350 | 2020-10-17T00:04:43 | 2020-10-17T00:04:43 | 206,953,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | A. Coins.cpp | #include <stdio.h>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int n,m;
scanf("%d%d",&n,&m);
int answer=m/n;
if(m%n>0) answer++;
printf("%d",answer);
}
|
2b3ad9ac8e7d7397034b9f84dbd07d60bd2a888e | e051007a41a782cf41690fcb4deb492f839dce41 | /Matrix4F.h | ab32e4c80f677baa1d4b86152d21b34bbd3e3217 | [
"CC0-1.0"
] | permissive | mderu/SoftwareRenderer | 312ae14b2f8a65de9aae3769b1ebb840eb6e340f | ecc105a15871db25262a2b7cf1d3b04f3948f894 | refs/heads/master | 2021-01-01T15:55:37.019910 | 2015-11-30T00:28:44 | 2015-11-30T00:40:55 | 27,953,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,806 | h | Matrix4F.h | // CS130 Fall 2013: Computer Graphics
// Matrix4F.h
//
// This file does not need to be modified
/////////////////////////////////////////
#ifndef __MATRIX4F_H__
#define __MATRIX4F_H__
#include "stdafx.h"
#include <vector>
#include "Vector3F.h"
#include "Vertex3F.h"
const float PI = 3.14159265f;
//Note: Everything p... |
d92745d349102d26c62675523e05f9bf39fc5f0a | 963cd65d9167cb2217a327260673fc5c64443f47 | /src/OLAP/MaterializedNode.cpp | b315dfafb513aa1f38b13de7001186f8deafe501 | [
"Apache-2.0"
] | permissive | salmanahmedshaikh/StreamingCube | 749b5753a8c7f4e6f33478c1d06d048796334a05 | 18ae206c664a269eb70110f34c9a28438a13aec2 | refs/heads/master | 2021-06-13T21:51:12.278973 | 2021-02-02T13:40:08 | 2021-02-02T13:40:08 | 142,138,212 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,315 | cpp | MaterializedNode.cpp | //////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2017 KDE Laboratory, University of Tsukuba, Tsukuba, Japan. //
// //
// The JsSpinnerSPE/StreamingCube and the accom... |
d82c0e298d9fa15209f5ded6190b6318a61ef044 | 9bda33ba1509dfbd3043eb13612b70636cb67f5d | /randqs_kiranteja1.cpp | a9b3871304439a8a2cbb8b4d2994132521731fe8 | [] | no_license | harshimogalapalli/task0.2algos | 1c540b78b32a389e8ba0d9c3eb67cb38302ef3b3 | 4060dc5373823c8d1e682b15909171e8739b21c5 | refs/heads/master | 2020-05-23T22:31:05.189283 | 2019-05-21T05:52:11 | 2019-05-21T05:52:11 | 186,975,425 | 0 | 6 | null | 2022-12-26T12:16:43 | 2019-05-16T07:29:48 | C++ | UTF-8 | C++ | false | false | 917 | cpp | randqs_kiranteja1.cpp | #include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
void swap(int s,int d)
{
int y;
y=s;
s=d;
d=y;
}
int n;
int a[100];
int part(int l,int h)
{
int i=l,j=h,pvt;
pvt=a[l];
while(i<j)
{
do
{
i++;
}while(a[i]<=pvt);
do
{
j--;
}while(a[j>pvt]);
if(i<j)
{
swap(a[i],a[j]);
}
... |
7c61913f9f490b9b026343c807de31389954f62a | 58e268ccf800c5f7c47936c5a266b7644f7dd8f9 | /leet_code_1030_matrix_cells_distance_order/leet_code_1030_matrix_cells_distance_order/Source.cpp | d99285c091c1ea24b5c93a3201afdc710067fe50 | [] | no_license | DVNLO/code_challenges | f3c08a28cc02e798f82a9077ffb815b780dda4ee | 0ffc95e1633a09fe485aef2d23df89cfda86de30 | refs/heads/master | 2023-01-21T20:50:27.044017 | 2023-01-15T20:55:31 | 2023-01-15T20:55:31 | 102,163,512 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | Source.cpp | #include <cmath>
#include <vector>
#include <stack>
using namespace std;
class Solution {
public:
vector<vector<int>> allCellsDistOrder(int R, int C, int r0, int c0)
{
vector<vector<vector<int>>> ordered_points(R + C - 2);
for (int r = 0; r < R; ++r)
{
for (int c = 0; c < C; ++c)
{
int dist = abs(r ... |
bae5e2821d161e22a0a184a361f6798c7ae57a82 | d30b9ed4826682ea5a9bcc1d93410bf854519f03 | /vm/bindings.hpp | 3806bf252a2516b2e2cc55205d934588023d6bb4 | [] | no_license | evanphx/marius | a124c8e1e54d75e5ba672e449627362102ea5cab | 4da4f0ba95bab687d7920a9f5076250d004a6181 | refs/heads/master | 2023-08-02T01:41:18.343087 | 2013-05-05T23:53:44 | 2013-05-05T23:53:44 | 7,435,761 | 4 | 0 | null | 2013-05-04T21:30:20 | 2013-01-04T05:34:20 | C++ | UTF-8 | C++ | false | false | 711 | hpp | bindings.hpp | #ifndef BINDINGS_HPP
#define BINDINGS_HPP
#include "util/option.hpp"
#include "oop.hpp"
#include "gc_allocated.hpp"
namespace r5 {
class String;
class State;
class GCImpl;
class Bindings {
struct Entry : public GCAllocated {
String* key;
OOP val;
Entry* next;
Entry(String* k, O... |
ec1fdcae360f212e9b3f6fcd9e70b8907ac34db2 | 9ecbc437bd1db137d8f6e83b7b4173eb328f60a9 | /src/native/src/jrate/synch/Mutex.cc | 6250818757bc1fcac38425d463b869ff80bb5252 | [] | no_license | giraffe/jrate | 7eabe07e79e7633caae6522e9b78c975e7515fe9 | 764bbf973d1de4e38f93ba9b9c7be566f1541e16 | refs/heads/master | 2021-01-10T18:25:37.819466 | 2013-07-20T12:28:23 | 2013-07-20T12:28:23 | 11,545,290 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cc | Mutex.cc | // ************************************************************************
// $Id: Mutex.cc 429 2004-09-15 20:32:02Z corsaro $
// ************************************************************************
#include <jrate/synch/Mutex.h>
template <>
void
jrate::synch::createMutex<true>(pthread_mutex_t* mutex)
{
pt... |
73451657c607b2e6460812e0b0f80fd5db678181 | 735455ad1a5cd4f1c32e5b223439d34be3efda7f | /fwbin/AddRules.h | 4e17381c298e50a9f71ec6e1b70ca8420316e049 | [] | no_license | zys0807/FireWall | 7265df205ab7d1602aab786fadba9e2c24b73c00 | 6c7e3f0049ffd179904dde5dff80ed3f19eb6eaa | refs/heads/master | 2020-04-25T11:00:22.278000 | 2018-03-08T13:11:30 | 2018-03-08T13:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,383 | h | AddRules.h | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jan 23 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __ADDRULES_H__
#define _... |
822cb0768e30cee3ac3fcd0ce048ec6cb2dd00eb | 827afdbb047bcf8359529d49496b7d7d2eec1f0e | /CPP/GeneralPurposeLibs/Socket/Project/src/NixNet.cpp | 9ca268145eb6ca25dffd4fe6cb19d2fcf34014da | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Radicalware/Libraries | 7c51d403c221fbf8d2746ad9f8aaf95821058668 | d280ec79d855513412ab64435fd121b9298c3774 | refs/heads/master | 2023-04-09T10:54:57.618924 | 2023-03-23T03:13:01 | 2023-03-23T03:13:01 | 122,286,234 | 8 | 1 | Apache-2.0 | 2021-07-29T06:29:19 | 2018-02-21T03:05:30 | C++ | UTF-8 | C++ | false | false | 1,006 | cpp | NixNet.cpp |
#include "NixNet.h"
#ifdef __unix__
NixNet::NixNet(){
m_size = sizeof(addr);
}
void NixNet::operator=(const NixNet& other)
{
m_send_size = other.m_send_size;
m_size = other.m_size;
ret_size = other.ret_size;
mtu = other.mtu;
connected = other.connected;
addr = other.addr;
connect = ... |
8c9809d98310d2ebf3ef871ebf889d4789aae12d | 966dc17abfc38c3a11e4d4798813350448f25dd5 | /0601-0700/0621.cpp | 0084be32641f28acba5ff79d20c95d66a2e31299 | [] | no_license | superlb/MyLeetcode | fa8b041339c1f803b4f0432fe6bd593a2f4e8949 | ae617c7e858636b026ba3c323f37972dda64b87e | refs/heads/master | 2021-08-04T02:43:16.049436 | 2021-07-24T14:03:05 | 2021-07-24T14:03:05 | 205,500,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | cpp | 0621.cpp | class Solution {
public:
int leastInterval(vector<char>& tasks, int n) {
vector<int> v(26,0);
for(auto c:tasks)
{
++v[c-'A'];
}
sort(v.begin(),v.end());
int maxcount = 0;
for(auto a:v)
if(a==*v.rbegin())
++maxcount;
... |
0e74e7771d1f0e02b98c91c67102d62f4ec1be23 | 44a68dafab73c40cc911fedd08fe2c69203a16b6 | /browser/af/impl/gtk/AfGtkWindow.cpp | d770df6e88247871d53ac652d2f67cc90aa62ff9 | [] | no_license | findobj/HelloGtk | 90bc3f641b686e164d1a718442139fa6dd59d3d5 | 6a9080d18bac460cd878f909a02bdd3e01fc5bca | refs/heads/master | 2021-01-01T06:54:08.481943 | 2014-12-09T02:46:20 | 2014-12-09T02:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | cpp | AfGtkWindow.cpp | #include <iostream>
#include <string.h>
#include "AfGtkWindow.h"
#include "AfGtkNative.h"
#include "AfGc.h"
#include "AfGtkGc.h"
namespace af {
AfGtkWindow::AfGtkWindow()
{
mNative = NULL;
mX = 0;
mY = 0;
mWidth = 0;
mHeight = 0;
mNativeWindow = 0;
mGc = NULL;
}
AfGtkWindow::AfGtkWindow(AfGtkNative *native)
{... |
716606193a7f16175f057a3309499f7dbfb198d9 | f058d216b5940f24398945297be143ec42fa7b1e | /src/810/B.cpp | a92b5b28b14d9df85c47ff3e510172d49964b312 | [] | no_license | ruippeixotog/codeforces | 586fd66c307766734e66d64e88f712c7c5c02aac | d83b62fb274744fd1d49ff5ebf8d54dea116279f | refs/heads/master | 2022-09-06T04:57:19.443564 | 2022-08-07T18:37:13 | 2022-08-07T18:37:13 | 74,235,104 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | B.cpp | #include <algorithm>
#include <cstdio>
#include <functional>
#define MAXN 100000
using namespace std;
typedef long long ll;
int k[MAXN], l[MAXN];
int pot[MAXN];
int main() {
int n, f; scanf("%d %d\n", &n, &f);
for(int i = 0; i < n; i++)
scanf("%d %d\n", &k[i], &l[i]);
ll sum = 0;
for(int i = 0; i < n... |
6a2069029380e06ef4ff27a796e3ed4b6b66c5ac | f178dd7aa7feb9b6fd457c47d11a9101a5efedea | /client/include/PlayerEntity.hpp | 19d473a12e6344f48635820dd9e843b47eb8802c | [] | no_license | peti446/DefendTheRelic-NetworkingDemo | cd04e0831d8946d4eb25d0bf41e15f30b98216d1 | 0f0ea2877815c3d0b3ad05c0195114f315183e3c | refs/heads/master | 2021-03-27T20:52:40.561948 | 2018-05-10T12:08:03 | 2018-05-10T12:08:03 | 124,291,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | hpp | PlayerEntity.hpp | #ifndef PLAYERENTITY_HPP
#define PLAYERENTITY_HPP
#include <Entity.hpp>
#include <functional>
class PlayerEntity : public Entity
{
public:
enum class ePlayerState
{
eWalking,
eIDLE
};
PlayerEntity(eEntitySide s, const std::string& m_dn, std::function<bool(Player... |
2a5a4c5613c4733eb7a92b13a018ed687ed74091 | d6c1b60311168cdbd5eb404cd918cebdd9224164 | /source/Game.cpp | 0567d51d9f86a0f4e1fcd934ad62bb30cac03973 | [
"MIT"
] | permissive | jrbeck/longshot | c843a19f79af95d1fff7da309cc2153c194b2882 | 917ea92aa217fde5f6c395d4fc0fcef7bd159d04 | refs/heads/master | 2021-07-30T12:48:52.511595 | 2016-04-24T07:55:54 | 2016-04-24T07:55:54 | 56,944,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,892 | cpp | Game.cpp | #include "Game.h"
// WARNING: maybe i should pay attention to this
// has to do with sprintf() not being safe....
#pragma warning (disable : 4996)
game_c::game_c(GameWindow* gameWindow) :
mGalaxy(NULL),
mAiView(NULL),
mPhysicsView(NULL),
mMerchantView(NULL),
mMenu(NULL)
{
printf("game_c constructor ------... |
b2cb3da56e1b6d67159c668daa4c30bb2d1c521b | 23ea1d86ed3d4dffce39c92d8c93acdf29988ac0 | /apps/raytracing/ppm.h | 040a6d798abd9b0d965f45b9a0301c049def851e | [
"MIT"
] | permissive | linlycode/game-dev | b7b371f5adf63f2eb911c94a45e2170781477e52 | 8888e14218bdef566295f15d08f1295b6503dd7e | refs/heads/master | 2020-03-07T10:31:10.933818 | 2019-11-23T13:20:06 | 2019-11-23T13:24:56 | 127,433,487 | 0 | 0 | MIT | 2019-11-23T13:24:57 | 2018-03-30T13:51:34 | C++ | UTF-8 | C++ | false | false | 213 | h | ppm.h | #ifndef PPM_H
#define PPM_H
#include "image.h"
class PPMWriter : public ImageWriter {
public:
std::string extension() const { return ".ppm"; }
void write(std::ostream &output, const Image &image);
};
#endif
|
f06bdd75ff72a4a5641513caad22e17da266f083 | 3aa9a68026ab10ced85dec559b6b4dfcb74ae251 | /leetCode/smallest-string-with-a-given-numeric-value/Accepted/1-29-2021, 12_08_13 AM/Solution.cpp | c34cc76dc48993ef0c43f8c5e5cbca73fdab4c79 | [] | no_license | kushuu/competitive_programming_all | 10eee29c3ca0656a2ffa37b142df680c3a022f1b | 5edaec66d2179a012832698035bdfb0957dbd806 | refs/heads/master | 2023-08-17T15:09:48.492816 | 2021-10-04T20:09:37 | 2021-10-04T20:09:37 | 334,891,360 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 437 | cpp | Solution.cpp | // https://leetcode.com/problems/smallest-string-with-a-given-numeric-value
class Solution {
public:
string getSmallestString(int n, int k) {
string ans = "";
for(int i = n; i > 0; i--) {
int temp = min(26, k-i+1);
ans += (char)('a'+temp-1);
// cout << temp << " ... |
5cc312a0c49425a0913de674c994ef924b461889 | bfc9a1ad2e3480f730848b981fca6256e134570c | /Laborator/headers/Car.h | c04f1c659464f881a113aee43459247b85080f6b | [] | no_license | TudorVersoiu/OOP-lab6-X | 0621388072bce08d2a9336a2743432d5b4f78b84 | 7dec83c1840f2c222e5a0a34c5558a2c7a042d60 | refs/heads/master | 2020-05-16T14:30:25.801637 | 2019-05-24T18:40:13 | 2019-05-24T18:40:13 | 183,105,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | h | Car.h | #pragma once
#include <string>
class Car {
std::string registration_number;
std::string producer;
std::string model;
std::string type;
public:
Car(const std::string& registration_number,
const std::string& producer,
const std::string& model,
const std::string& type);
// Getters
const std::... |
ac98ba2d9c3f3966436324f75e037ce5d13ad10e | 3a0c1fcdcebd07f5f252b575e1e67cd75bb87d15 | /src/SkyrimDummyPluginService.h | 2866ef852da2768c35529d8e2b453dfcca128afe | [
"MIT"
] | permissive | ModOrganizer2/modorganizer-bsapacker | 73a07e9d7b4b900131ca5ff6009ec3d3517c9013 | 200740f36a5c4cc7d1fc69e60313c06f79de5807 | refs/heads/master | 2023-08-08T12:05:49.857564 | 2022-05-02T12:56:18 | 2022-05-02T12:56:18 | 222,736,249 | 2 | 4 | MIT | 2022-04-28T15:54:14 | 2019-11-19T16:07:51 | C++ | UTF-8 | C++ | false | false | 1,166 | h | SkyrimDummyPluginService.h | #ifndef SKYRIMDUMMYPLUGINSERVICE_H
#define SKYRIMDUMMYPLUGINSERVICE_H
#include "bsapacker_global.h"
#include <bsapacker/IDummyPluginLogic.h>
#include <bsapacker/IDummyPluginService.h>
#include <bsapacker/IFileWriterService.h>
namespace BsaPacker
{
class BSAPACKER_EXPORT SkyrimDummyPluginService : public IDummyPlugin... |
978a69b371f7094234d11c0a57946741a61eac20 | 243a27d2207010498dd8a47040175c39691b5941 | /teamInfo.h | 348d3534cf668562b11a4bc0a03a3f9e83db0494 | [] | no_license | nexthp/BPD_Project | 4750c0e0a921144a6db0c46fdce512ab41033222 | ea44204ce7fa30a36791c655df0778b0cb8e192d | refs/heads/master | 2016-08-06T15:11:26.543299 | 2014-12-17T06:05:15 | 2014-12-17T06:05:15 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 798 | h | teamInfo.h | #pragma once
#include "afxwin.h"
#include <string>
#include "athleteList.h"
#include "afxcmn.h"
// teamInfo 대화 상자입니다.
using namespace std ;
class teamInfo : public CDialogEx
{
DECLARE_DYNAMIC(teamInfo)
public:
teamInfo(CString teamName, CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~teamInfo();
// 대화 상자 데이터입니다.
... |
1dc5a69056f16f908c6932438b96d00a5b45dafc | df4c8b5e78fc13420b55c58668d49b1ab4eb1667 | /main.cpp | 076cd0069e808c7e6d270a313aaae1eaa48e039a | [] | no_license | Liu8018/ring | d9801eddb478b259ab58f7ca088bd7e2667f3acb | 2842d5079202bbfa88ad3c73e39a614a42bf9d24 | refs/heads/master | 2020-04-15T17:34:55.190903 | 2019-01-09T14:23:35 | 2019-01-09T14:23:35 | 164,877,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,068 | cpp | main.cpp | #include <iostream>
#include <opencv2/opencv.hpp>
#include <vector>
void ccomp(const cv::Mat &binImg, cv::Mat &ringImg)
{
cv::Mat labels, stats, centroids;
int nccomps = cv::connectedComponentsWithStats(binImg,
labels,
stats, //nccom... |
5757f4ca37c20cbc7d79ff916790fa1edfcbc257 | e0f7813c9ca5f0f8b26141badc82c1f41b7dcadd | /Goonies/Projecte/Goonies/TileMap.cpp | e2e04dde31bb56cb600d70fad960078e4836f09a | [] | no_license | gonzagod/VJ-Goonies | aea3912fd31643e3cf66341daa7017ca7f638b6b | df78bc63eee91b7c89b845d4f0fa16158696c566 | refs/heads/master | 2023-03-28T04:44:18.384352 | 2021-04-06T20:09:53 | 2021-04-06T20:09:53 | 344,786,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,636 | cpp | TileMap.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include "TileMap.h"
#include <crtdbg.h>
using namespace std;
TileMap* TileMap::createTileMap(const string& levelFile, const glm::vec2& minCoords, ShaderProgram& program)
{
TileMap* map = new TileMap(levelFile, minCoords, program);
retur... |
246a5e683e5fa146bee518a4f82750cd98d2d865 | 8e4afdd17e5307b9736549b7fd39e1ec7424a78d | /tasksystem/tokenstreamgenerator.h | 4b454c69490c69ee3c38c6408418f5aa9497300d | [
"MIT"
] | permissive | cfo82/asyncpp | 8d8abce8a857a9885eab69be2dbf5a348645c117 | 5dcdb2fe12e21f89663207c448fc07a0ac673f9a | refs/heads/master | 2021-01-23T15:52:29.973741 | 2014-12-17T20:55:11 | 2014-12-17T20:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,341 | h | tokenstreamgenerator.h | /*
* This file is part of the asyncpp Library release under the MIT license.
*
* Copyright (c) 2014 Christian Oberholzer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restr... |
3eb9535fe35cb6d5a885c4ba6c392d2b2f74585c | 41b3a72244fa5532cab03618c882af96d83490d6 | /CsWeapon/Source/CsWp/Public/Types/CsTypes_Weapon.h | 810ffdb9ff275f2037ca0054b0fad9d8cfa9a686 | [
"MIT"
] | permissive | closedsum/core | 83fe249ef3fd8f543b589b843e85a767820b8ebc | 12c3ab8d3a43d58d431bfd4a7563fdb4943f4a62 | refs/heads/master | 2023-08-30T00:48:34.572460 | 2023-08-30T00:39:11 | 2023-08-30T00:39:11 | 102,293,517 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,952 | h | CsTypes_Weapon.h | // Copyright 2017-2023 Closed Sum Games, LLC. All Rights Reserved.
#pragma once
// Types
#include "Types/Enum/CsEnum_uint8.h"
#include "Types/Enum/CsEnumStructMap.h"
// Log
#include "Utility/CsWpLog.h"
// Engine
#include "Engine/DataTable.h"
#include "CsTypes_Weapon.generated.h"
// Weapon
#pragma region
USTRUCT(Blue... |
adf60c0cff53a50454a96efe26c8ce35a79d0119 | b803bf0737abefd33702321185e0d70fcad30f76 | /project/include/KeyboardListener.h | 8dfb583374927f06ba99e5adf56d6c6d7b971b51 | [] | no_license | duanh1028/Rogue-game | 7bf453a9734679577b204756a520d77dd59f80cd | a1f337ba4d2bb2d03dcbdacf3fdb1f1ed4de5cfa | refs/heads/main | 2023-03-13T15:31:08.818362 | 2021-03-08T00:31:10 | 2021-03-08T00:31:10 | 345,378,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | h | KeyboardListener.h | #pragma once
#include "ObjectDisplayGrid.h"
#include "Creature.hpp"
#include "Dungeon.hpp"
class KeyboardListener {
private:
/** Object display grid reference to write errors */
ObjectDisplayGrid* grid;
Displayable* player;
Dungeon* dungeonBeingParsed;
std::vector<Action*> actions;
... |
78791c45d77fa0a3840942cb5324b8d7af56b8d0 | 5696f7e9bb6cb18e791be3f71e8a72f9a26a0a22 | /src/QtControls/QtControls/src/NoFocusFrameDelegate.cpp | 2e0f2dbc8a0c2bdd664f1c3377809e49ec258d13 | [
"MIT"
] | permissive | xylsxyls/xueyelingshuang | 0fdde992e430bdee38abb7aaf868b320e48dba64 | a646d281c4b2ec3c2b27de29a67860fccce22436 | refs/heads/master | 2023-08-04T01:02:35.112586 | 2023-07-17T09:30:27 | 2023-07-17T09:30:27 | 61,338,042 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | NoFocusFrameDelegate.cpp | #include "NoFocusFrameDelegate.h"
NoFocusFrameDelegate::NoFocusFrameDelegate(QWidget* parent) :
QStyledItemDelegate(parent)
{
}
NoFocusFrameDelegate::~NoFocusFrameDelegate()
{
}
void NoFocusFrameDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
... |
c9754e1a51face428444edd7030e931cdd2bd773 | 73d9d881162c1f27aaf7a1e0e85379b8c8f7fc43 | /COM/01_Class_Factory/ClassFactoryClient/ClassFactoryClient.cpp | 3d55e9250d2f5d355add8dc854333b7a5e3a0c73 | [] | no_license | ShrutiTiwarkar/WINRT-2019 | 0dba4efee2e077d65f34f0822a97ec261d3d491d | f1db217bc57c4ab33190f08ac475375d77220129 | refs/heads/master | 2020-06-25T07:45:12.185457 | 2019-11-20T18:33:06 | 2019-11-20T18:33:06 | 199,241,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,828 | cpp | ClassFactoryClient.cpp | #include<Windows.h>
#include"ClassFactoryDllServer.h"
ISum* pISum = NULL;
ISubstract* pISubstract = NULL;
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR csCmd, int iShow)
{
WNDCLASSEX wndClass;
MSG msg;
HWND hWnd;... |
8604fb691a0ee71ddee8760894c01b4fe422dbc7 | 93f1f933f7b5f481cfb1bc4bab720f47e3228402 | /tests/lib/clong_test.cpp | c4075206a5fc65be9ee9b75a2965dd5282001491 | [
"MIT"
] | permissive | ccharly/clong | 65c901d02951739dbf40974ff46a99b1b311b41d | 82612ee9d74d6dc839d625b13d249d886dab8e5a | refs/heads/develop | 2022-11-10T20:27:00.374545 | 2019-11-09T18:04:07 | 2019-11-09T18:04:07 | 196,065,703 | 0 | 0 | MIT | 2022-10-06T06:03:00 | 2019-07-09T18:55:01 | C++ | UTF-8 | C++ | false | false | 1,496 | cpp | clong_test.cpp | #include <iostream>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <clong/clang.hpp>
#include <clong/clong.hpp>
#include <clong/run.hpp>
#include <clong/fs.hpp>
namespace clong {
// From: https://stackoverflow.com/questions/2602013/read-whole-ascii-file-into-c-stdstring
// Read a file en... |
4973a9f4ad2c9ad11d468d43cb0d16c098f362aa | 4d22f318f8de87b2cf2dcc2193021eb7f28060f2 | /Am Prep/Fill array with 1s.cpp | 4d8c1eaa726495d562879f74f7e9691410050ee2 | [] | no_license | krishnateja-nanduri/MyCodePractice | f97f710a684c6098d6f52b3bbcce9a8ca0dbad80 | de6b9f19fb694c54ce847153d3ce14279e1b60fc | refs/heads/master | 2021-09-07T03:54:08.583326 | 2018-02-16T23:30:21 | 2018-02-16T23:30:21 | 104,292,690 | 1 | 1 | null | 2018-02-08T22:14:12 | 2017-09-21T02:39:22 | C++ | UTF-8 | C++ | false | false | 994 | cpp | Fill array with 1s.cpp | //https://practice.geeksforgeeks.org/problems/fill-array-by-1s/0
#include<bits/stdc++.h>
using namespace std;
int fill(int a[],int n)
{
int c=0,f=0;
int ans=0;
for(int i=0;i<n;)
{
if(a[i]==1)
f=1;
while(i<n && a[i]==1)
i++;
c=0;
while(i<n && a[i]==... |
3a5a6ec4d33b548fa421aa3aa5f7d041c7549191 | 3a45b948c80696e9982373839bc6543722cafc1f | /C++/Test/Test.h | db3b09f6579171058994e783dbb05fbac7391183 | [] | no_license | a-pinch/PinchukDZ | adbd76b308458ec98a3b60da4746225c064d8eb8 | 33884d946df2d1da0759028611f5cbc2957ad238 | refs/heads/master | 2021-01-10T14:46:12.809368 | 2015-07-07T09:09:49 | 2015-07-07T09:09:49 | 35,995,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | h | Test.h | #pragma once
#include "Ratee.h"
#include "Question.h"
#include <vector>
// тест, проходимый конкретным испытуемым
class Test
{
public:
// объект-испытуемый
Ratee r;
// итератор на текущий вопрос, который будет задан
std::vector<Question>::iterator current_question;
int current_question_num;
// если все вопросы о... |
ff8cfcb9f5f645edfacc1d745464c22152c9bf47 | 9b680d9487956b843acdb8a546af7c8b2e120c97 | /new/韦阳二叉树的操作.cpp | 9d6e1060a9f2c9ea9ad7ae07116d43f571993915 | [] | no_license | Cardinal2376/ACM_learning | c84a85d1ceb4207dbf436c2609e1d62c7ecd5942 | 91b0992f4b27dc4461afb8d079f000a54ea06ad9 | refs/heads/master | 2021-01-01T20:37:24.480422 | 2017-08-13T02:44:20 | 2017-08-13T02:44:20 | 98,897,240 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,169 | cpp | 韦阳二叉树的操作.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct BiTreeNode
{
char data;
struct BiTreeNode* lchild, * rchild;
}BiTreeNode;
/**创建二叉树结点**/
BiTreeNode* CreatBiTreeNode(char x)
{
BiTreeNode* node = (BiTreeNode* )malloc(sizeof(BiTreeNode));
node->data = x;
node->lchild = node->... |
78dc80dc7ead9b8eb3d59ec7555b5aca4783a7ec | 2dd0253e5f7331e2346cb44aebabc925c5003519 | /include/global/hard_converter.h | 4f9245763be9666234c66cb15b1f3cb60403ec01 | [] | no_license | KangLin/TenniS | 06e22b734c08781abf3bcb24abeceda777584e6c | d2c44ab369685450beb18fc83685f9e589bb3f35 | refs/heads/master | 2023-07-30T14:11:25.828834 | 2021-10-03T08:49:52 | 2021-10-03T08:49:52 | 412,299,971 | 0 | 0 | null | 2021-10-01T02:35:24 | 2021-10-01T02:35:23 | null | UTF-8 | C++ | false | false | 2,023 | h | hard_converter.h | //
// Created by lby on 2018/3/11.
//
#ifndef TENSORSTACK_GLOBAL_CONVERTER_H
#define TENSORSTACK_GLOBAL_CONVERTER_H
#include "core/device.h"
#include "utils/except.h"
#include <functional>
#include <set>
namespace ts {
class TS_DEBUG_API HardConverter {
public:
/**
* HardConverter, convert... |
94be2091d79f3ec7d3f287b14cc0a9f649121dcf | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/Good Bye 2014/Problem D/D.cc | 3ce7dc24192af21a280cba6b593bd996c4c4c761 | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,053 | cc | D.cc | #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi f... |
645bd76c61686b16f2fbe2f5c25fbac90952e193 | 3825145e1bcf1d8fd2c888c6b113b9bd81e84fbd | /ROS/camina2/util/LibreriaExtra/cinematicas.cpp | cce045dd0e5b3a6eb1e0b7dd6c321bd5d3d7844f | [] | no_license | mau25rojas/tesis-hexapodo | 9bc29361fd70d28d60de01c40b4916e7d590da1b | b2a573f13efffe8487948c9cb3a13c8fb55d1b82 | refs/heads/master | 2020-05-18T18:22:04.826463 | 2014-10-01T15:25:30 | 2014-10-01T15:25:30 | 32,201,978 | 1 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 17,973 | cpp | cinematicas.cpp | /*
* Cinematica_directa.cpp
*
*
* Created by Diego Leal on 8/1/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
* Modificado y adaptado por NiKiTa
*/
#include <math.h>
//#include "vector3d.cpp"
//#include "analisis.cpp"
//#include "convexhull.cpp"
#include "cinematicas.hpp"
#define NU... |
ff5cd4f667ac609def4776be4677b165c9e16fc5 | afade62b23145d40b20a1f0c31cb1744d578f7aa | /onnxoptimizer/passes/eliminate_duplicate_initializer.h | 7c2b8f0ab4c0842b86a8a86ae9c957a03860df05 | [
"Apache-2.0"
] | permissive | StanXT/optimizer | 97201bc44e16120769c476b0d4d7dabbeb5e7436 | a37748b2c3a80dad4274401c45c5026c7a506730 | refs/heads/master | 2023-06-11T14:32:55.866922 | 2021-04-23T13:24:32 | 2021-04-23T13:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,231 | h | eliminate_duplicate_initializer.h | /*
* SPDX-License-Identifier: Apache-2.0
*/
// ATTENTION: The code in this file is highly EXPERIMENTAL.
// Adventurous users should note that the APIs will probably change.
#pragma once
// Before:
// A, B are in the initializer list, and A is equal to B
// E = Add(D, A)
// F = Add(F, B)
// G = Add(E, F)
// ... |
f369ac06ce2488d30fc76884d1244ca8ab1cd41b | a7b8531e0548886e5e9cb1929e594bd18fb22a67 | /src/echotrain_cpmg.cpp | 6c940050320be9caf8a292dbfddf0a4f01440e10 | [] | no_license | ekgibbons/bloch | 99cdd4a7db54b5ae15525d498f08cdfe6d5c3ebd | 43c9c0d3ad5c991309fa647652955dd8f24515e6 | refs/heads/master | 2021-09-07T10:22:22.297624 | 2018-02-21T16:00:29 | 2018-02-21T16:00:29 | 106,016,494 | 0 | 0 | null | 2018-02-21T16:02:29 | 2017-10-06T14:51:00 | C++ | UTF-8 | C++ | false | false | 3,855 | cpp | echotrain_cpmg.cpp | #include <complex>
#include <cmath>
#include <string>
#include <armadillo>
#include "bloch_utilities.hpp"
#include "rf_pulses.hpp"
#include "echotrain_alsop.hpp"
arma::cx_vec BlochFSECPMG(const arma::vec &flips, unsigned int nValues, unsigned int etl,
unsigned int returnType, double T1, double T2, double esp)
... |
50219e368208e252e6b14ac9d31ceb66b3d1bbf3 | b85aad75aa5984fb6f276feaad21d9e07040b380 | /include/launcher.hpp | d771434995cb5d7c424dcfff2f5ba699775304b7 | [] | no_license | jason0597/Seedminer-CPP | 9e4397d85f47735185f7c6d667adbbe71bab0588 | 728e02d7e6620ef4132fb4a261ec079f848a4b66 | refs/heads/master | 2020-03-07T06:47:49.294984 | 2018-04-04T23:28:18 | 2018-04-04T23:28:18 | 127,331,793 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | hpp | launcher.hpp | #include <vector>
namespace launcher {
//===== PRIVATE =====
static std::vector<uint8_t> getKeyY(movable_part1 mp1);
static std::string vectorToString(std::vector<uint8_t> vec);
//===== PUBLIC =====
void doMining(movable_part1 mp1);
}
|
63dac31482b19e6d6410c5a7f5924b04ecba2f3b | 663a5f732b90ad7665d65906dd7c6f70de9f6d1b | /WatcHom/src/Data/StructureCubique.cpp | 7e35b4c99ae987cf3a708fe74cdbbd6020eec4fb | [] | no_license | PFEvignalThevenin/WatcHomFinale | 02e6b33185531cbb32567f715b623eeb84918cb2 | d04ed8ebe85d1ea6edec19358d9c91dc53d65f07 | refs/heads/master | 2021-01-10T15:59:28.146684 | 2016-02-05T14:52:01 | 2016-02-05T14:52:01 | 50,043,118 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,787 | cpp | StructureCubique.cpp | #ifndef STRUCTURE_CUBIQUE_TPP
#define STRUCTURE_CUBIQUE_TPP
#include <Data/StructureCubique.hpp>
#include <algorithm>
//************************************
//*****Constructeur & Destructeur*****
//************************************
template<typename D>
StructureCubique<D>::StructureCubique() : StructureCubique(0, ... |
4fbf371a8c87c810f1c7e3c63084d7af0319cf4c | 38e117f804e9935564b88a1f1c083e7df92f3a7e | /src/wxafeditor/gui.h | 305f1594daf2810b631a002a01bf4faf8109d73e | [
"MIT"
] | permissive | omf2097/wxomftools | 471bcf88f2f37358047da94116ef3da2bc7adac2 | 0f40ba2df1dae8d9657fd74efe354df2da0d1ee0 | refs/heads/master | 2021-01-19T05:53:58.592777 | 2015-10-04T16:19:46 | 2015-10-04T16:19:46 | 10,713,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,950 | h | gui.h | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 6 2014)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __GUI_H__
#define __GUI_H... |
eb9ca1e7ef7dcfe147db75172e3f0fdd24dcbcf9 | 94017a2c6dd8b9c10fb9f5a4438546722acc7f29 | /Sort/Scramble.cpp | c7d9715bc26c015cc9c5e7e4f4f691c20606418c | [] | no_license | Jjerkenhag/Sort | ae56edfffa74bd0115a4a4d0695c6c68a51f1d56 | 32276ae7f16d4074dd2ec208c5418efe9aa7d642 | refs/heads/master | 2016-09-10T23:23:09.396878 | 2015-05-20T22:20:24 | 2015-05-20T22:20:24 | 33,629,654 | 0 | 0 | null | 2015-05-11T18:26:34 | 2015-04-08T20:10:32 | C++ | UTF-8 | C++ | false | false | 334 | cpp | Scramble.cpp | #include "Scramble.h"
void breakfastScramble(vector<int> &numbers)
{
int temp, swapPlace;
for (int i = 0; i < (numbers.size()); i++)
{
swapPlace = (rand() % numbers.size());
temp = numbers[i];
numbers[i] = numbers[swapPlace];
numbers[swapPlace] = temp;
}
cout << endl << numbers.size() << " scrambled egg... |
010990a42af36a36fc83fcae49c9cdfbea003521 | 50e0a042661ea80fbde86e604705570b7d645c4e | /test4.cpp | 79d40cea3cdb1d957522a127f52bfb1fbede7e0c | [] | no_license | wkh0430/C-practice | 63130cd6536feae2258125dc709283ce316395db | 0d3ddebad16993ea62d007bdc930a25d47417e42 | refs/heads/main | 2023-09-03T23:42:17.666222 | 2021-10-28T15:57:46 | 2021-10-28T15:57:46 | 409,200,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | cpp | test4.cpp | #include <iostream>
using namespace std;
int main()
{
char num[4];
int a, b, c, d;
cin >> num;
a = int(num[0] - '0');
a += 1;
cout << a;
return 0;
} |
78ae72634e639819f81584c8ec553b6755fc7c86 | d19e0a4915d8fc9bddbfb9185f19473aa3d1a4d1 | /SFML_playground/src/Game/Game.hpp | 38184579e2cd45a77f956b84f05b4d84f92a1c61 | [] | no_license | pawel02/small_projects | a50bf2618a424ae6a2d7da824b24a3114aa25327 | db28b11d71d88f111167855913c9354e28082504 | refs/heads/main | 2023-07-10T06:31:58.185053 | 2021-08-20T07:26:30 | 2021-08-20T07:26:30 | 393,921,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | hpp | Game.hpp | #pragma once
#include <iostream>
#include <chrono>
#pragma comment (lib, "legacy_stdio_definitions.lib")
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include "../EventSystem/KeyboardEvent.hpp"
#include "../Controller/Paddle.hpp"
#include "../Controller/Ball.hpp"
/*
Starts the main game loop
spawns the pad... |
c1e5e056c87abaf8bcb9717c2bff9156068740db | 90c2b94f0ce323629a92fb9a722b44dd32246e87 | /main.cpp | fa8abca362974498422f94fb406ad8347c608c80 | [] | no_license | OpenEngineDK/projects-FirstFlight | b8f59ef29d78b15c7c1d0c5d9ec8b415f5a016b6 | 09216ef8544cfe78367ef0dc117c84e6e97028dc | refs/heads/master | 2021-01-01T03:31:41.029395 | 2016-05-05T00:23:31 | 2016-05-05T00:23:31 | 58,073,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,113 | cpp | main.cpp | // main
// -------------------------------------------------------------------
// Copyright (C) 2007 OpenEngine.dk (See AUTHORS)
//
// This program is free software; It is covered by the GNU General
// Public License version 2 or any later version.
// See the GNU General Public License for more details (see LICENSE... |
b6d35a4d0cd7dbd853c01059980e28e758df2950 | 9531392efe9ddfd3186573d063afa296291567aa | /jogo.cpp | 600fa9658e5b941ea2a8d7326c774ba0343ea93c | [] | no_license | PotencianoIgor/Hanoi-Tower | 54fe5a5ecee47fb18d2a13cdbedf0d11847b1bb2 | c1607c1d6b380e9e5642939bbcdea002af44ec2e | refs/heads/master | 2022-12-28T00:08:18.560972 | 2020-10-08T18:36:01 | 2020-10-08T18:36:01 | 302,430,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | cpp | jogo.cpp | #include "jogo.h"
Jogo::Jogo(int x)
{
torres=new Pilha*[3];
torres[0]=new Pilha(x);
torres[1]=new Pilha;
torres[2]=new Pilha;
jogadas=0;
}
void Jogo::mover(Pilha *ori, Pilha *des){
if(ori->getTopo()){
if(des->getTopo()==NULL){
des->push(ori->pop());
desfaz.push(... |
f87b5d1b38a1de641e7b01a1270816ac6ef1d273 | d166bac53de7d82a2403dfb1087171bd93288948 | /014.Longest Common Prefix.cpp | e209f3fbe324a1b7b6a986002837f5c4e412ddb9 | [] | no_license | SinnerA/LeetCode | 41890fcd7eb6218bfdad8bf7c57e443d4b0fc211 | d057820f7f7be8d166ff8c1881438ff42c5211d8 | refs/heads/master | 2021-01-21T12:36:25.644446 | 2015-07-13T14:52:09 | 2015-07-13T14:52:09 | 35,407,578 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 941 | cpp | 014.Longest Common Prefix.cpp | /*
Write a function to find the longest common prefix string amongst an array of strings.
Tags: String
*/
/*
2个字符串的最长公共前缀,其长度肯定不会超过最短的字符串的长度,设最短的字符串长度为n,那么只要比较这2个字符串的前n个字符即可。
如此得出这2个字符串的最长公共前缀prefix后,再拿prefix作为新的字符串和数组中的下一个字符串比较,方法同上。
*/
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
... |
035fe1f88b31e03504a7f19843cd73ec15ad8b6a | 36a471cced1d0268cc04aecd359e9aba14693b85 | /SetUp/DeviceRunable.cpp | d61ed06e79fac5e724415691e52615e21e56bce7 | [] | no_license | talhayne/Smart-Home | e5bd832ed3b178e09ebfd89dae062bce0d806117 | c1333388e57552c987124fe6b55f0576ecc88a7e | refs/heads/master | 2020-06-22T20:58:09.172354 | 2019-07-23T09:23:24 | 2019-07-23T09:23:24 | 198,397,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | DeviceRunable.cpp | #include <exception>
#include "DeviceRunable.h"
DeviceRunable::DeviceRunable(Agent* _agent)
: m_agent(_agent)
{
}
void DeviceRunable::Connect()
{
try
{
m_agent->Connect();
}
catch(std::exception& e)
{
throw;
}
}
|
6b4a91f4970896acc501c3d46a5a634b64630e9f | 1c1dcede10ab34d80940f93cc591745c7d90c7b2 | /code projet/projet final/antoine/PROJET TRI PHARMA/Camera.cpp | 7b8dc7859f0e3d7f192120ab1941ae9cf90aceb7 | [] | no_license | Kolinor/projet_pharmacie | 1ab00768119d8fd7db038566356e49820f530d8b | 1dcc10ff2a191e8b0445661162ce8356f2a29c69 | refs/heads/master | 2020-04-17T08:28:19.343216 | 2019-06-14T13:46:33 | 2019-06-14T13:46:33 | 166,413,541 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | Camera.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "Camera.h"
#define __WIN__
#include "mysql.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
|
89e3b63ae5dae9c38fbc656479e35fe6bde5c030 | ab7d5ec2e40b26c33da957210b5d2da77f9b696d | /repos/sproxel/contents/PaletteWidget.h | 775663eb3969aedf78a37d55812da8307cb18e29 | [] | no_license | mcclure/bitbucket-backup | e49d280363ff7ef687f03473e463865a7ad8a817 | b6a02ca8decf843fa0a765c842c24e7eccf59307 | refs/heads/archive | 2023-01-24T21:15:14.875131 | 2020-02-02T20:56:23 | 2020-02-02T20:56:23 | 237,833,969 | 115 | 6 | null | 2023-01-07T14:24:14 | 2020-02-02T20:43:56 | C | UTF-8 | C++ | false | false | 2,745 | h | PaletteWidget.h | #ifndef __PALETTE_WIDGET_H__
#define __PALETTE_WIDGET_H__
#include <QColor>
#include <QWidget>
#include <QPalette>
#include <ImathColor.h>
#include "VoxelGridGroup.h"
#include "UndoManager.h"
class PaletteWidget : public QWidget
{
Q_OBJECT
public:
PaletteWidget(QWidget* parent, UndoManager *um) :
... |
70cc19e76b31044af423cda38a7eff7de1b24444 | 69fd06b11bf40b5042ca4469eb3ca6da228e72ba | /map.cpp | d09c4f70f71c50318c22553c168b0fe7ff4f6d50 | [] | no_license | Starbow/liberos | 596d60c33f9ae7de6e053267c6d361181e2282e4 | 74eadb9a493b31d9cf1e2a0cc5968e3a450db654 | refs/heads/master | 2016-09-06T15:53:52.138897 | 2014-07-28T13:12:39 | 2014-07-28T13:12:39 | 16,749,199 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cpp | map.cpp | #include "map.h"
Map::Map(QObject *parent, ErosRegion region, int battle_net_id, const QString &name, const QString &description, const QString &info_url, const QString &preview_url)
: QObject(parent), region_(region), battle_net_id_(battle_net_id), name_(name), description_(description), info_url_(info_url), preview... |
72de6f70b27da682840ffe189363469e2068108d | 4e22d261d7dcf5fe2731d77ba3cfb47c5568977c | /Source/Engine/TempestEngine/CollisionLayer.hpp | d57a4afb7dc87e3374e9deda0f716a3c7c72956a | [] | no_license | SeraphinaMJ/Reformed | 2d7424d6d38d1cfaf8d385fade474a27c02103a5 | 8563d35ab2b80ca403b3b57ad80db1173504cf55 | refs/heads/master | 2023-04-06T00:40:34.223840 | 2021-05-06T11:25:51 | 2021-05-06T11:25:51 | 364,884,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | hpp | CollisionLayer.hpp | /*!***************************************************************************************
\file CollisionLayer.hpp
\author Ryan Booth
\date 11/25/19
\copyright All content � 2018-2019 DigiPen (USA) Corporation, all rights reserved.
\par Project: TBD
\brief Defines the rigid body of the ob... |
c4eb6b465f9125848f56c03f8d274724f15a5fa2 | e59127606facf962d559e869ccb65be488cb93e8 | /ProjectData/GameSources/TitleAnimationUI.cpp | 914b30e3a3d4c4f037d59f635e3a813bce1c23f3 | [] | no_license | OkabeTatsuya/TGS_TeamJ_WaveProject | 084f8c1a3bb713dc7421af7f47300d9c2e9462a9 | 8e7b51403255fff4d854e917542657bc6a140cf0 | refs/heads/master | 2021-01-26T10:48:27.596231 | 2020-06-24T23:02:26 | 2020-06-24T23:02:26 | 243,408,631 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,193 | cpp | TitleAnimationUI.cpp | #include "stdafx.h"
#include "Project.h"
namespace basecross {
TitleAnimationUI::TitleAnimationUI(const shared_ptr<Stage>& stage,
Vec3& rotation,
Vec3& scale,
Vec2& position,
float& layer,
wstring tex) :
ImageUI(stage, rotation,
scale,
position,
layer,
tex)
{
m_isMoveContll = true;
}
voi... |
df9c68855417893cec3f18eebc11cd2c47a33400 | fad354de10252cf074d5727232682440bdced572 | /project/include/ui/TextEvent.h | 5a5576f5d36d940d5245fcc5c5ffe887c3559872 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"MPL-1.1",
"LGPL-2.0-only",
"LicenseRef-scancode-public-domain",
"GPL-3.0-only"
] | permissive | openfl/lime | 12bf58892e11df1b40e9cd8d75939b33bba29a27 | d4a04c80df33bbbd7e2fc54c5f6dc9d32b2ad83e | refs/heads/develop | 2023-09-01T17:21:02.054726 | 2023-08-19T16:39:16 | 2023-08-19T16:39:16 | 10,876,724 | 410 | 380 | MIT | 2023-08-19T16:39:18 | 2013-06-23T02:49:06 | JavaScript | UTF-8 | C++ | false | false | 488 | h | TextEvent.h | #ifndef LIME_UI_TEXT_EVENT_H
#define LIME_UI_TEXT_EVENT_H
#include <system/CFFI.h>
#include <system/ValuePointer.h>
#include <stdint.h>
namespace lime {
enum TextEventType {
TEXT_INPUT,
TEXT_EDIT
};
struct TextEvent {
hl_type* t;
int id;
int length;
int start;
vbyte* text;
TextEventType ty... |
13927521c9fc3e4f034c4925cda7077344f656a7 | 3e4cb5b2cd6d953a048b8276f10e6978eb3309b0 | /src/init.hpp | e6b19e6fe1a5ee36beca5154e631e5946ebbc539 | [
"Apache-2.0"
] | permissive | clockley/watchdogd | b3ff6e2d29a63d848de87b803bd2a22a88da71f9 | 990dfa7535866ecd380a83b9b7fe2c213a1e1b6e | refs/heads/master | 2023-02-20T02:23:48.761448 | 2023-02-15T22:09:17 | 2023-02-15T22:09:17 | 51,677,903 | 21 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,065 | hpp | init.hpp | /*
* Copyright 2013-2020 Christian Lockley
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
1ccf15f99941136b38d0041a8f42b42b535f6c2d | 083973f506ea3a2d575e102acc2babd6dfa6bc93 | /leetcode/Easy/125. 验证回文串.cpp | 3fe9ba55a6df1916f3a48eee2870aceeaf8e44d9 | [] | no_license | gsscsd/Code_Training | dd5ab4ef2a789ca84b372327b9a5a780d080f089 | 60efc5248c1bd30162b4b44b21cced66f4723059 | refs/heads/master | 2020-03-29T11:07:46.049496 | 2019-07-05T04:47:53 | 2019-07-05T04:47:53 | 149,837,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,039 | cpp | 125. 验证回文串.cpp | /**
给定一个字符串,验证它是否是回文串,只考虑字母和数字字符,可以忽略字母的大小写。
说明:本题中,我们将空字符串定义为有效的回文串。
示例 1:
输入: "A man, a plan, a canal: Panama"
输出: true
示例 2:
输入: "race a car"
输出: false
*/
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
class Solution
{
public :
... |
d1621bb5ff2c95f3216ddc9a9355b53509b8a294 | cc1b10f69255ccb74171ee9aad8ab56214a29d36 | /include/WallOfEnd.hpp | 05b3ac6d7892f0b53767fc38e28b9bf5eb76eb23 | [] | no_license | Gouet/BomberMan | 3726d51f9548120e8e21fdac2ea146cd8a7d6e11 | 70d6e842a9731e13a315336f0c41b72111093f3f | refs/heads/master | 2021-01-13T06:29:14.724725 | 2016-09-19T14:47:17 | 2016-09-19T14:47:17 | 68,612,066 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | hpp | WallOfEnd.hpp | //
// WallOfEnd.hpp for WALL OF END in /home/gouet_v/Rendu/semester4/CPP/cpp_indie_studio
//
// Made by Victor Gouet
// Login <gouet_v@epitech.net>
//
// Started on Wed Jun 1 23:08:27 2016 Victor Gouet
// Last update Wed Jun 1 23:59:37 2016 Victor Gouet
//
#ifndef WALLOFEND_HPP_
# define WALLOFEND_HPP_
# inclu... |
4d4ee50e0ab461a7b225abcea61c555b89ac16ce | 01b8c2ecfc04c16c953b370c263a0a849b3b3112 | /Source/MyProject/ShooterGame.cpp | ab5c7b4f5238f4a4145400b80181d6f8d1fdd3a6 | [] | no_license | MarijaVujcic/UE4ProjectStayinAlive | a182e6b8903a89ded2c1b785921315735d1fb988 | 2a1f943306be598177ce43deda946a82b2022b23 | refs/heads/master | 2022-12-06T16:26:31.457511 | 2020-08-20T00:54:37 | 2020-08-20T00:54:37 | 253,069,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,422 | cpp | ShooterGame.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShooterGame.h"
#include "Misc/FileHelper.h"
#include "Misc/Paths.h"
#include "CrosshairHUD.h"
#include "Engine/Engine.h"
#include "Blueprint/UserWidget.h"
#include "Misc/DefaultValueHelper.h"
#include "Kismet/GameplayStatics.h"
#in... |
e4060b832cdeac5ad003af9d982b3246be99ed6e | 6c4bd0d5f1e2c8902bfdeebe5d3d6931e60c028b | /ga1/personnel.h | 9ad0ef41a2617408954f210ad5a9541aa03be09b | [] | no_license | bpham-work/cosc2430 | 1097fb9619d23134edc71f179f2f149edc0617f2 | 15be977e0cce0bfb8dd483ea1a830ef2492bfdf9 | refs/heads/master | 2021-05-05T11:35:59.809944 | 2018-05-06T22:37:08 | 2018-05-06T22:37:08 | 118,179,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | h | personnel.h | #ifndef PERSONNEL_H
#define PERSONNEL_H
#include <string>
#include <fstream>
#include <bitset>
using namespace std;
class Personnel {
char* ssn;
char* name;
char* city;
char* yearOfBirth;
uint32_t salary;
int nameLen;
int cityLen;
public:
Personnel(string& ssn, string& name, string& city, string& yo... |
62bf8f99d524345843a095bbf0883fbbc7d9da04 | f1631eeb72767df6651ad3c132761c36e4692732 | /SuperBibleExamples/src/InputStateHolder.h | 28c2a3cba8380f3b3b65d0169fd2f62bb08fe2d8 | [] | no_license | Lehm2000/OpenGLSuperBible | 390b9856657c9fdb1c1bde530208658e74290033 | 6ea0ed5ddaceb4608cb2233f0677ce66b689eb5f | refs/heads/master | 2021-01-20T04:33:27.918856 | 2014-12-27T07:37:19 | 2014-12-27T07:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | h | InputStateHolder.h | #ifndef INPUTSTATEHOLDER_H
#define INPUTSTATEHOLDER_H
/**
InputStateHolder
Holds a pointer to the input state object. It was easier to pass to other
objects if GEInputState was not a child of GEObject ( circular includes were causing problems compiling ) but still
needed a way to pass it to the graphics engine ... |
ce32a89d6141b013b3f3fe257820599e31435676 | 10c52806589c39872e4ded7ecaa43fa3afc88999 | /to_addr_gen/.failed_resolve.cc | f6f56caaaf5977aec8ecf49e006ecac7eedabb04 | [] | no_license | hanji91/stratus_20210201 | 146b52279e7386fdcaa67ead8e82a9ce13eae205 | 1bfa221d6b521437c3aae25de21b3249e68b2d7f | refs/heads/master | 2023-02-24T12:51:34.568022 | 2021-02-01T11:33:58 | 2021-02-01T11:33:58 | 334,918,787 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,388 | cc | .failed_resolve.cc | /********************/
state0:;
/*HLS_DEFINE_PROTOCOL("_num_available_1d_method");*//* 17ULL */
fifo_write_data_m_size = 0LL;
fifo_write_data_m_free = 0LL;
fifo_write_data_m_ri = 0LL;
fifo_write_data_m_wi = 0LL;
fifo_write_data_m_num_readable = 0LL;
fifo_write_data_m_num_read = 0LL;
fifo_write_data_m_num_written = 0LL;... |
ba2ccb98a6af349c20dc852b374d5eb41908079e | e8a3c0b3722cacdb99e15693bff0a4333b7ccf16 | /Intra University Contest/Knapsack + coin change 19 april 2017/X - Caesar's Legions.cpp | f7deb5ae198c8365b986881cc1ffa67e8dd351bf | [] | no_license | piyush1146115/Competitive-Programming | 690f57acd374892791b16a08e14a686a225f73fa | 66c975e0433f30539d826a4c2aa92970570b87bf | refs/heads/master | 2023-08-18T03:04:24.680817 | 2023-08-12T19:15:51 | 2023-08-12T19:15:51 | 211,923,913 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,271 | cpp | X - Caesar's Legions.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 100000000
ll dp[105][105][3][12];
ll n1, n2, k1, k2;
ll fun(ll f, ll h, ll state, ll total)
{
// cout << f << " " << h << " " << state << " " << total << endl;
// getchar();
if(f == n1 && h == n2)
return 1;
... |
49e2b48085c825d319333941790f047e8f5b5eeb | 87a972e42adedb5a5fc498b446a1da2ed41628e1 | /directshow/AsyncReader.h | b35f4bf2dcc5137a7f419dd1fddff6e511ba4eae | [] | no_license | gabest11/homesys | 4649f6eb697284dd445f2c8d557a4771e32c2d62 | 3645dd0d142d6332e5ece43ac2402058f2fb8198 | refs/heads/main | 2022-07-29T20:33:58.685388 | 2022-03-30T16:07:46 | 2022-03-30T16:07:46 | 467,268,398 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,218 | h | AsyncReader.h | /*
* Copyright (C) 2003-2006 Gabest
* http://www.gabest.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Thi... |
d68c5f0ab5e9576050ed8d19bbd02d3bd9f92369 | b1f8ded5b1c832bc3fbb75b6d12ea41ca2c19f5e | /PruebasProcessing/pruebaMotor_processing/pruebaMotor_processing.ino | 08c39f4372002bd4d8724a2354fe99d0bd73e573 | [] | no_license | RUVIVAF/ESP32_TRA | 9ffdf5aad03648d591ea20665495265404ff630b | 2d6288d65dff658ddd93c0441f342eda72cafb03 | refs/heads/main | 2023-02-25T17:47:44.754071 | 2021-02-01T08:12:45 | 2021-02-01T08:12:45 | 302,747,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | ino | pruebaMotor_processing.ino |
/*
* Ruiz Villalba Valentina Fabienne
* Prueba motor con processing
* Octubre 2020
* ESP32 TRA
*/
/*
*---------------------------------------
* Pines y variables
* --------------------------------------
*/
//Pines del motor
byte driver1 = 27;
byte driver2 = 26;
byte enable = 14;
char letra='... |
d3843e639a15b439cef8f75e8953a99b28511597 | 53aff6cca3cf76ca941258563acbbef25780775d | /Classes/AnimateBatchTest/AnimateBatchTest.hpp | f228809220cd285a015d9d673394a8ca81df5907 | [] | no_license | kevenxiang/actual_chap04 | 9353ef3427755b2f2810560ecdef9b99581f6598 | edde3257d0907f036bfe3a005ff92ff8059cde28 | refs/heads/master | 2020-12-14T03:00:14.079201 | 2017-06-26T09:27:19 | 2017-06-26T09:27:19 | 95,430,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | hpp | AnimateBatchTest.hpp | //
// AnimateBatchTest.hpp
// actual_chap04
//
// Created by xiang on 2017/6/26.
//
//
#ifndef AnimateBatchTest_hpp
#define AnimateBatchTest_hpp
#include <stdio.h>
#include "cocos2d.h"
class AnimateBatchTest : public cocos2d::Layer {
public:
static cocos2d::Scene *createScene();
virtual bool init();
... |
8abba15cb3e8601b730c809032a270ffeba1a439 | b460b5098115c22c16e58edc1d15f6344a2079a2 | /64k/i_mofo32/cppppppp/P_raster.cpp | be6b026ce1cb0ab7f8685562f4613ac64a82e04f | [] | no_license | possan/randomjunk | a84836ced188b5dd67ac9cdbf080d43b9bedf629 | 9e1eda672149bda7efadcc63a7233df295d63473 | refs/heads/master | 2021-01-22T04:36:34.385324 | 2011-11-02T22:16:09 | 2011-11-02T22:16:09 | 906,668 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,567 | cpp | P_raster.cpp | #include "..\common.h"
#include "..\images.h"
float shitto[32*10];
float pr_wacko[10] = {
23,
39,
53,
49,
72,
91,
69,
94,
81,
32 };
char *pr_greet[] = {
"we love", "and", "respect",
"k2", "woorlic", "noice",
"1kladd1", "kladd2", "kladd3",
"2kladd1", "kladd2", "kladd3",... |
f1c7a0f99c20bbc54d9cd7dcdd0c59d4c5222223 | 652639c15a5e23766e3abd7f631bda9b0b3689fa | /BookStoreIO.h | 758060a54525606ab2138bfbaa0cf251b9b63645 | [
"MIT"
] | permissive | amiedes/book-store | 9ff64cf98c9b77a94331c2ca454a78325dd1a6bb | 04ce0ca681847f831ff157bafd964f5bb870c40c | refs/heads/master | 2021-06-01T23:54:12.933781 | 2016-05-26T12:19:16 | 2016-05-26T12:19:16 | 59,326,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,776 | h | BookStoreIO.h | //
// BookStoreIO.h
// T11-Venta-Libros
//
// Created by Alberto Miedes on 21/5/16.
// Copyright © 2016 Alberto Miedes. All rights reserved.
//
#ifndef BookStoreIO_h
#define BookStoreIO_h
#include "BookStore.h"
#include <string>
#include <iostream>
class BookStoreIO {
public:
static void new_book(BookStore ... |
df8a2c4edf6f5a33f6b67b7af84fd27d18bbecd6 | b8efb950be051e4931efafd4702295a7d9c2d36f | /Graph/ShortestPath.h | 6c8baba075d87a2e70a7abbd9a28add4656e8c4f | [] | no_license | HarrisonLee1998/Graph | 4949dbc7cf118458d57c40392744dd6d014886b1 | 85338d009afbe97660992f8255a6d56e3eb6c7d1 | refs/heads/master | 2020-06-29T10:08:59.833931 | 2019-08-07T16:31:00 | 2019-08-07T16:31:00 | 200,507,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | h | ShortestPath.h | #pragma once
#include <iostream>
#include <cstdlib>
using namespace std;
const int INFI = 100000000;
const int N = 7, E = 12;
int** matrix_for_dijkstra();
int** matrix_for_floyd();
void Dijkstra(int**, int , int* , int* );
void Floyd();
void testDijkstra(); |
64158bace28f0bc2206582399d44a0a3d48948f1 | 6f224b734744e38062a100c42d737b433292fb47 | /mlir/include/mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.h | 75ce4b484165b285d0b90a10aff6f1acaf89083b | [
"LLVM-exception",
"Apache-2.0",
"NCSA"
] | permissive | smeenai/llvm-project | 1af036024dcc175c29c9bd2901358ad9b0e6610e | 764287f1ad69469cc264bb094e8fcdcfdd0fcdfb | refs/heads/main | 2023-09-01T04:26:38.516584 | 2023-08-29T21:11:41 | 2023-08-31T22:16:12 | 216,062,316 | 0 | 0 | Apache-2.0 | 2019-10-18T16:12:03 | 2019-10-18T16:12:03 | null | UTF-8 | C++ | false | false | 1,453 | h | BufferizationTransformOps.h | //===- BufferizationTransformOps.h - Buff. transf. ops ----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
79a4c3af6c3cb81d3546fefaec90cd1f2d093d91 | 631a61d0e773801efc122053fe01de8a67f87ad5 | /NSUPS Bootcamp S8 Weekly Contest 3(Bigmod, Prime Factorization, STL - 1)/P_Bash_s_Big_Day.cpp | 452481725db8589c10af73e8a1ae7dcf84fff8db | [] | no_license | FahimMuntashir/NSU-PS | 8137ec025b5e042cf2285c66a66ea5333fe01a9a | ab57f36d62fda528cefb4b6ce94343ebb9198d78 | refs/heads/master | 2023-02-04T13:06:56.824319 | 2020-12-23T09:05:02 | 2020-12-23T09:05:02 | 304,408,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | P_Bash_s_Big_Day.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
const ll N = 1e5;
ll arr[N + 5];
int main()
{
ll n;
cin>>n;
ll pok[n];
ll maxx=1;
for (ll i = 0; i < n; i++)
{
cin>>pok[i];
arr[pok[i]]++;
}
for (ll i =2; i <= N; i++)
{
ll count = 0;
... |
c61163ccb03d7872cb7c25b3843b65eddaa83b7d | 1c2adc85091d2f1cbfe646bd92fbb8bd97f183c0 | /692/A.cpp | ce1c423446c33659808ce17bfa8c8a8ff87fa770 | [] | no_license | s0nnandh/CF | 7022fc4d35b9642ab6e85b1d249c93ae07adbeef | c1f9cf4a01d71e399a2b9056b19579463a9a407b | refs/heads/master | 2023-04-20T14:13:10.887592 | 2021-05-05T01:43:47 | 2021-05-05T01:43:47 | 343,770,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | A.cpp | #include<bits/stdc++.h>
#include<unordered_map>
#define ll long long
#define ull unsigned long long
#define ln cout<<"\n"
#define dbg(x) cout<<#x<<" = "<<x<<" "
#define rep(i,s,n) for(ll i = (s);i<(n);++i)
#define DEBUG(x) do { std::cerr << #x << ": " << x << std::endl; } while (0)
using namespace std;
void solve(){
... |
657383b3906bdcdf2ff22f499b297927403c73aa | 3bddeb3da438f638b1a4fcdf3bdc63b5ea52ec46 | /resolution.cpp | b9f479a5a1beb81759abb82301cec18e2371e4b8 | [] | no_license | robertoxmed/sat_solver | 5135444bd62658cd82a066a9268f3c49238540f6 | f142045fa91a4cfc938ae12a5e0b7dd55b2981c1 | refs/heads/master | 2021-01-22T02:34:04.574583 | 2014-11-22T15:35:36 | 2014-11-22T15:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,219 | cpp | resolution.cpp | #include "resolution.hpp"
#include <queue>
#include <vector>
////////////////////////////////////////////////////////////////////////////////
// ICI LES FONCTIONS SONT A IMPLEMENTER //
////////////////////////////////////////////////////////////////////////////////
struct less_prio... |
88c33216ba9aeb2c51a19a5156fd62038900ba33 | 1d88dfbd224ba0cdfaf4834dc4202410cba3db16 | /cpp/open3d/io/ImageIO.h | 3c6b62be3d886cf29f9feeb34ec48c1e1d69ee39 | [
"MIT"
] | permissive | isl-org/Open3D | 5217d525f505839777078127b5da7adc7b4bba2f | b620539a445206a7e07fed33fb4dcc6dff06c1a5 | refs/heads/master | 2023-09-01T21:42:37.981501 | 2023-09-01T15:08:08 | 2023-09-01T15:08:08 | 75,413,130 | 4,535 | 908 | NOASSERTION | 2023-09-14T18:07:41 | 2016-12-02T16:40:38 | C++ | UTF-8 | C++ | false | false | 3,561 | h | ImageIO.h | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// Copyright (c) 2018-2023 www.open3d.org
// SPDX-License-Identifier: MIT
// ---... |
eec313f478a89da192af00063b0092dfe9c4ebde | c9cf73543d7c81f8e87a58e051380e98e92f978a | /baseline/happy_trader/platform/server/backend/src/germ_2channel_mm/event.cpp | 825c53008f6da73b9949ece352cf6bc1246ac1d7 | [] | no_license | vit2000005/happy_trader | 0802d38b49d5313c09f79ee88407806778cb4623 | 471e9ca4a89db1b094e477d383c12edfff91d9d8 | refs/heads/master | 2021-01-01T19:46:10.038753 | 2015-08-23T10:29:57 | 2015-08-23T10:29:57 | 41,203,190 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 71 | cpp | event.cpp | #include "event.hpp"
#include "implement.hpp"
namespace AlgLib {
}; |
3cd79d29b758544b066d74bff7a3cd7f81fb944a | 598e20ffff5e27401e7a11fe39068166a29a69b4 | /bibiru_main.ino | d57bc58a0632e7f6de7ae333797f2f040a8863c9 | [] | no_license | millz0/bibiru | edd331d95c95ffa89b1b68fb34854cb75d9c9abf | 21fe0c16a10fedeb307b7fcbfaf484630e4c76e0 | refs/heads/master | 2021-01-15T18:40:43.520016 | 2017-08-09T10:26:53 | 2017-08-09T10:26:53 | 98,731,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,519 | ino | bibiru_main.ino | #include <VarSpeedServo.h>
#define Rtone0 300//50//基準
#define Rtone1 270//66//止
#define Rtone2 285//50//足
#define Rtone3 300//80//腕
#define Rtone4 315//100//頭
#define Rtone5 330//110//箱
#define Wait1 2000
#define Wait2 2000
#define Wait3 2000
#define Wait4 2000
#define Wait5 2000
VarSpeedServo s_s;
VarSpeedServo k_s... |
495ca1f0cceff6aa2a7f804320e0adb8042572b8 | 101890296c873737ff00e6279680fa90799cc6f9 | /shell.cc | 31d02ec174a82487150fa3f38029f4d631dd5a06 | [] | no_license | pavpanchekha/poker.cc-lsp | c66348a1c41789172fe4f86a21b860b5b6dd879a | 52a663c029e1a93f60c30d2b13bf1c31d8a1bd6e | refs/heads/master | 2021-01-19T11:26:39.094376 | 2010-07-24T04:29:40 | 2010-07-24T04:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cc | shell.cc | #include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include "l_c.cc"
#include "l_e.cc"
#include "l_i.cc"
int main(int argc, char **argv) {
context *c = mkstdlib();
ifstream lib_fin("LICENSE.txt");
eval_all(parse(lib_fin), c);
lib_fin.close();
if (argc == 1) {
stri... |
fcab465f15663cb582251b9be4f0b71f68551680 | 99a87a793240e11085e9ac5fad51580922c83d04 | /example/media_server/H264File.hpp | 509ad70fcd74c2a27fe4f3f256cd44e7f053bca6 | [] | no_license | xiaoshzx/p2p | 85834fe4b761c16144d85622cb886be0f8c01040 | 8594bd7d497f25620fc1f2949552898194c0e9f9 | refs/heads/master | 2022-10-11T01:13:50.737666 | 2020-06-03T03:42:00 | 2020-06-03T03:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,177 | hpp | H264File.hpp | #ifndef H264_FILE_HPP
#define H264_FILE_HPP
#ifdef _WIN32
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#endif
#include <cstdint>
#include <cstdio>
#include <memory>
#include <cstring>
class H264File
{
public:
H264File() {
buffer_size_ = kMaxFrameSize;
buffer_.reset(n... |
e2801d6bd2bbff613e140b2ebc9265255364b580 | 433918960a7a3c6b09d9b29a63ed1e8fb5de1050 | /src/fuml/src_gen/fUML/Semantics/SimpleClassifiers/impl/FeatureValueImpl.hpp | f8113303dc1a7ff98741ceccb2d48bd4b09ac8da | [
"EPL-1.0",
"MIT"
] | permissive | MDE4CPP/MDE4CPP | 476709da6c9f0d92504c1539ee4b1012786e3254 | 24e8ef69956d2a3c6b04dca3a61a97223f6aa959 | refs/heads/master | 2023-08-31T03:15:56.104582 | 2023-01-05T14:45:37 | 2023-01-05T14:45:37 | 82,116,322 | 14 | 27 | MIT | 2023-06-23T09:23:01 | 2017-02-15T23:11:29 | C++ | UTF-8 | C++ | false | false | 4,107 | hpp | FeatureValueImpl.hpp | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef FUML_SEMANTICS_SIMPLECLASSIFIERS_FEATUREVALUEFEATUREVALUEIMPL_HPP
#define FUML_SEMANTICS_SIMPLECL... |
80ccb90cd04033b236602026404b4c404cd3d2a4 | 6a62cf9811ad4218853f62a214b7f03107e06b78 | /Source/Game/StatFactory.hpp | 88c513cfd47d32b9880dc20e8cf1632b4bba96f6 | [] | no_license | yuravashuk/PatternsDesignCxx | 8a8715a13ed4e29e9acf50d11e4cbd139ca8480b | 1df6592fe78855071c045e06f538c2612343fe34 | refs/heads/master | 2023-04-20T11:00:38.807790 | 2021-05-13T14:19:13 | 2021-05-13T14:19:13 | 340,155,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | hpp | StatFactory.hpp |
#pragma once
#ifndef _STAT_FACTORY_HPP_
#define _STAT_FACTORY_HPP_
#include "StatComponent.hpp"
#include "GameTypes.hpp"
class StatFactory final
{
public:
static StatFactory& GetShared()
{
static StatFactory instance;
return instance;
}
StatComponentData CreateStatData( CharacterTy... |
57c18aad63201cc3aaa54cc0692e01bba1a36582 | 871903b7d278e383af8acea577d09601585a47cc | /src/Messaging/RestfulProtocol.cpp | 4550850979a35ab30899eb91c9d1b96c7fa9eb88 | [] | no_license | toastedcode/ToastBot | da81b3316e1a0d7b8d93e489ac86c22cd808deba | 9a32b84d1520f86d0d89fc1653f8a39269f85076 | refs/heads/master | 2020-12-23T02:56:54.528329 | 2019-06-05T03:52:53 | 2019-06-05T03:52:53 | 31,770,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,974 | cpp | RestfulProtocol.cpp | #include "Logger.hpp"
#include "RestfulProtocol.hpp"
#include "StringUtils.hpp"
// *****************************************************************************
// Public
// *****************************************************************************
RestfulProtocol::RestfulProtocol()
... |
0c581dc7549fce36b68e5f4f44194f6f706ac6e6 | b528848ee80e61781a2fce1b57732704965ba65b | /QUARTO/Manager/LibraryManager.cpp | 86ed4ade560c0fc618f8b5fd3d088ad529b157c9 | [] | no_license | nakamura106/QUARTO | f462dda7d04b73a71ba86e01f24989cf0f493426 | 6559ec259d3d852c202189abad9ca11391e2ebac | refs/heads/master | 2023-01-29T19:51:24.761423 | 2020-11-25T02:21:32 | 2020-11-25T02:21:32 | 279,721,724 | 0 | 0 | null | 2020-11-25T03:06:46 | 2020-07-15T00:22:54 | C++ | UTF-8 | C++ | false | false | 787 | cpp | LibraryManager.cpp | #include"LibraryManager.h"
#include"../Library/Engine/Camera.h"
#include"../Library/Engine/Engine.h"
#include"../Library/Graphics/Graphics.h"
#include"../Library/Input/Input.h"
#include"../Library/Sound/Sound.h"
#include"../Library/Video/Video.h"
LibraryManager* LibraryManager::instance_ = 0;
LibraryManager* LibraryM... |
2dae36bbecaf877832209e7475f8dd59e17dbcab | 8986e66b3c6098069861e32e362209001139bb93 | /Src/ros_simulator/src/map_visualization/src/environment_map.cpp | 02fddc87075205657307e65065090bf488f66f19 | [
"MIT"
] | permissive | tushetodorov/Drona-DMR | 3fc6e891cbf3129dea2f599590ad1bb50127d16f | ecc756ec137aee90ab5ac9ea97f09b6e030066f0 | refs/heads/master | 2020-04-11T16:53:47.454394 | 2017-05-04T20:59:33 | 2017-05-04T20:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,854 | cpp | environment_map.cpp | #include <iostream>
#include <algorithm> // for find
#include <string>
#include <fstream>
#include <assert.h>
// for tokenizing strings
#include <boost/foreach.hpp>
#include <boost/tokenizer.hpp>
#include <boost/tuple/tuple_io.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#include <math.h>
using namespace std;... |
0696c4fe6f011d5f43fc6efa6a5daa00c7f61237 | f06394eb49f055ce3a51c93eb56249350d64ddbb | /tests/generation-tests/kdm/source/InventoryElement.cpp | d461319b57968779d56352de9c174f9b2248c26b | [] | no_license | happyj/e4c | a3c6eb523cf1d346a73b138c45a6cdfc83766710 | 59646a43d50749ddfc983e9a1f3a3c70fc5eb218 | refs/heads/master | 2020-03-26T05:15:09.814976 | 2014-02-22T11:20:12 | 2014-02-22T11:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | cpp | InventoryElement.cpp |
#include "InventoryElement.hpp"
#include <kdm/source/SourcePackage.hpp>
using namespace kdm::source;
/*PROTECTED REGION ID(kdm::source::InventoryElement include) START*/
/*PROTECTED REGION END*/
InventoryElement::InventoryElement()
{
/*PROTECTED REGION ID(InventoryElement constructor) START*/
/*PROTECTED RE... |
4168c1f34e0457397b8801acdb921c9cacf16ad8 | d8d976d7801fdb8f4801e9fe8ff5877ed3c8c9a4 | /CityBuildingGame/events/resource_arrived_event.cpp | 965a9cd7f6099d18d5fc55dca201b1cea6b05058 | [] | no_license | romatthe/CityBuildingGame | 3a430ca29c2da22dbf9b9e2d342ce191380ed62f | 8959fdcd8b0abe2caec340e68ce356b7052f70de | refs/heads/master | 2023-03-18T17:32:28.043673 | 2020-06-28T12:35:54 | 2020-06-28T12:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | resource_arrived_event.cpp | #include "stdafx.h"
#include "resource_arrived_event.h"
ResourceArrivedEvent::ResourceArrivedEvent(Resource aResource, GameObject* aTargetGameObject)
{
resource = aResource;
targetGameObject = aTargetGameObject;
}
void ResourceArrivedEvent::Accept(GameEventVisitor* eventVisitor)
{
eventVisitor->Visit(this);
}
|
c952bfa3ab8e05b3999ba23a6bf3668fa35e20f4 | d24d2b7e5c30b3809853f7acfa12076c0d42ce14 | /inclasscodes/Class on Number Theory/Class on Number Theory/Euler_s Totient Function/svPhi - clean code.cpp | 40f85267dd71712ac023171cbdd103669840dd0f | [] | no_license | sanjib-sen/bracu-acm | 2b05f6bfb6034bfd824d1726fae0b68565a44094 | 4227c5ad5430d1b728a182589f7324577093c1c8 | refs/heads/master | 2023-06-02T00:28:07.673337 | 2021-06-03T11:37:08 | 2021-06-03T11:37:08 | 371,832,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | svPhi - clean code.cpp | //SIVE OF EULER TOTIENT FUNCTION
#include <iostream>
using namespace std;
int p[1000001];
int mark[1000001];
void svPhi(){
int n=1000000;
mark[1]=1;
for(int i=1; i<=n; i++) p[i] = i;
for(int i=2; i<=n; i++){
if(!mark[i]){
for(int j=i; j<=n; j += i){
mark[j]=1;
... |
acaeb7d45084ba0b75d59b89c889221f80db21a5 | d493276f3a09b6f161b9d3a79d5df55f48a0557c | /Atcoder_Beginner_Contest_189_B.cpp | 1027e671b67289eb2cff6b074dbeb73e24786d68 | [] | no_license | AnneMayor/algorithmstudy | 31e034e9e7c8ffab0601f58b9ec29bea62aacf24 | 944870759ff43d0c275b28f0dcf54f5dd4b8f4b1 | refs/heads/master | 2023-04-26T21:25:21.679777 | 2023-04-15T09:08:02 | 2023-04-15T09:08:02 | 182,223,870 | 0 | 0 | null | 2021-06-20T06:49:02 | 2019-04-19T07:42:00 | C++ | UTF-8 | C++ | false | false | 416 | cpp | Atcoder_Beginner_Contest_189_B.cpp | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, x;
int curAlcohol = 0;
int ans = -1;
scanf("%d %d", &n, &x);
for(int i = 1; i <= n; i++) {
int v, p;
scanf("%d %d", &v, &p);
int alcol = v * p;
curAlcohol += alcol;
if(curAlcohol > x*100... |
8678da915c560e5cd2370bc43a90d70c6ce6ed13 | 4d9883d37b57d8579c7ff71681be71e78de2d8ea | /CPlusPlusTracer/CPlusPlusTracer/Intersection.h | 882374da73e6cf80a427160bb9fdba7461163358 | [] | no_license | neildanson/raytracer | b5a52dcf281117e91bde06dd79fa46d73b6ceeef | 2d1beb016106ff253804f6f88b5b43930661af94 | refs/heads/master | 2020-04-20T10:50:50.373697 | 2014-11-05T15:11:58 | 2014-11-05T15:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | Intersection.h | #pragma once
#include "Ray.h"
#include <memory>
using namespace std;
class CSceneObject;
class CIntersection
{
CRay Ray;
CSceneObject* Object;
double Distance;
public:
CIntersection(CRay, double, CSceneObject*);
CRay GetRay();
CSceneObject* GetObject();
double GetDistance();
};
|
b9245b9caef8b1a5c0dd55d27c47efc633728053 | 53f001379603738cb26ed93ff2d650b5e4ee44ea | /Dir.h | 29db67d2a60eb8b09715715cee67b52b5165647d | [] | no_license | Daniel-321/OS_FileSystem | 1bdb9cc4b7828cc005a5cd026d2934b0218f313a | 14e0fcec0018f3e0453dcc660d7e61790e96d1db | refs/heads/master | 2023-05-14T05:30:28.639442 | 2021-05-28T08:45:07 | 2021-05-28T08:45:07 | 371,635,777 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 432 | h | Dir.h | //
// Created by yuany on 2021/5/28.
//
#pragma once
#include <string>
#include "FileSystem.h"
using namespace std;
struct Dir {
string name;
int id;//目录对应的inode
};
int open_dir(int);//打开相应inode对应的目录
int close_dir(int);//保存相应inode的目录
int show_dir(int);//显示目录
int make_file(int, string, int);//创建新的目录或文件
int en... |
c85e55bf88135e095155baa00f18a33b827a1521 | 5884c9e225506d174d2520768521222cb861586e | /reverselinklist.cpp | 4f2b234a61229d3472805a230df5309544677c9c | [] | no_license | bsy2121221/Practice-Program-for-Comptitive-programming | 3e12a60bce36d2587442ee4a90bc6688c069af12 | 53b1e7de82e6f32adda9fe24a98c0359b0518638 | refs/heads/master | 2022-01-25T18:08:28.809626 | 2021-12-30T08:36:06 | 2021-12-30T08:36:06 | 195,377,317 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,721 | cpp | reverselinklist.cpp | #include <stdio.h>
#include <stdlib.h>
#include<iostream>
using namespace std;
struct Node
{
int data;
struct Node* next;
};
void append(struct Node** head_ref, struct Node **tail_ref,
int new_data)
{
struct Node* new_node = new Node;
new_node->data = new_data;
new_node->n... |
4bb12df4d21bdf18800ee704e1af27b3f42644cb | 976a68b4b8441352b5f775a946335328db88783c | /src/parser/lexer/tokens/label_ref_tok.cpp | fa4c34c3adf2a67d906f9a798d9122692f9d5d89 | [
"MIT"
] | permissive | maddnias/EzMIPS | 08f4b75d0c2529e6817175c09492712f648ec52d | 01b1a96528d2293faebc363a4004f8c03cf82f42 | refs/heads/master | 2021-05-31T07:02:45.852827 | 2016-05-03T12:25:22 | 2016-05-03T12:25:22 | 57,319,750 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | label_ref_tok.cpp | #include "label_ref_tok.h"
label_ref_tok::label_ref_tok(unsigned int tok_row, unsigned int tok_col):
mips_token(LABEL_REF_TOK, tok_row, tok_col, identifier)
{
}
label_ref_tok::~label_ref_tok(void)
{
}
|
0a92e9c4c14cc60676756e1668cff3b95262dcda | f27bc81855623c5e628dc83fb62fd37ad6712888 | /libdytools/src/algorithms/span-parser.cpp | 1c21eafe3012bee86103d4446fd584fbf477565b | [
"MIT"
] | permissive | FilippoC/dynet-tools | b1a0374b6e0c31d256d8c28ccb4c074abab3de70 | 9d9dc8a717f74e43ed7c9edfba457a44cac4ed9f | refs/heads/master | 2020-04-18T16:22:52.726280 | 2019-08-27T14:06:55 | 2019-08-27T14:06:55 | 167,632,699 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,958 | cpp | span-parser.cpp | #include "dytools/algorithms/span-parser.h"
#include <limits>
namespace dytools
{
Tree binary_span_parser(const unsigned size, const std::vector<float> &weights)
{
std::vector<float> cst_weights(size * size, 0.f);
std::vector<unsigned> back_ptr(size * size);
// bottom-up constituency network computation... |
64293efd7e7e06edfb6776b1ed7996d670292d36 | 2ea2dcd9a53c7fd2fb65344ec0e8f630b465c341 | /calculator.cpp | c6ab7bad89afbe3dcad18ce0524b7847374f66c7 | [] | no_license | Osman74/CalculatorQT | e6ab82fe44337e3a0fb4dafad5b99e453b5a7c6a | 7c37c19bd4439ab8ab29349427032bbefdf70e62 | refs/heads/master | 2023-05-29T02:10:28.998033 | 2021-06-14T14:55:40 | 2021-06-14T14:55:40 | 161,545,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,544 | cpp | calculator.cpp | #include "Calculator.h"
#include <math.h>
QPushButton* Calculator::createButton(const QString& str)
{
QPushButton* pcmd = new QPushButton(str);
pcmd->setMinimumSize(40, 40);
connect(pcmd, SIGNAL(clicked()), SLOT(slotButtonClicked()));
if (str == "pi")
{
pcmd->setStyleSheet("border: 1px soli... |
ae0127f935c49a16d31624233c72b4e6a30c1e45 | c813bfc2b2437254062f57dcce77def534009771 | /ECEngine/Engine/Core/Components/Particle.h | 07941ed1b84af0cd43d59f59464de86264c0c011 | [] | no_license | Nanixel/NanixelEngine | c15792eec59890c1d49e26910e5257cc7523bb8f | 9962a80bd30862d88393ef36950ed6dd7d53226b | refs/heads/master | 2021-08-30T08:51:19.630963 | 2017-12-17T03:05:58 | 2017-12-17T03:05:58 | 103,003,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | h | Particle.h | #pragma once
#ifndef PARTICLE_COMPONENT_H
#define PARTICLE_COMPONENT_H
#include <memory>
namespace Engine {
// Consider making a particle resource component that holds the respawn rate and max number of particles for that
// partcile type.
class Particle : public Component {
public:
Particle() : Co... |
5b66f6ccbcffe90c481b520c1e44d00a3a235251 | 0814d4f126216efc75b86efe3c1584469ceba978 | /DAY2/6.cpp | c7552041b6fdb6738197a290304f75940305d191 | [] | no_license | MadeshiChinmay/LPU_INTERVIEW_BOOTCAMP | ccf0e2c848333bf56cd679a39977b735059f35e3 | c9a7522f79ddd070726ad26f14f270172fbff9b6 | refs/heads/master | 2022-11-29T22:59:01.381212 | 2020-08-20T17:43:16 | 2020-08-20T17:43:16 | 286,813,490 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | 6.cpp | class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
map<string,vector<string>>mp;
for(auto&y:strs)
{
string x = y;
sort(x.begin(),x.end());
mp[x].push_back(y);
}
vector<vector<string>> ans... |
c8b236533f0ba6d50caed91f1407473c56e6a5cd | b51bf5610d94626ae06759e3c52e1acc671f85dd | /battle_tank/Classes/base_visualizer.h | 5016613c24af9d5119f1a645baf579c3c31e3127 | [] | no_license | slevinsps/escapade | b8c72a8b29ec734e8ef89192e5eb62e0ee511d47 | 1fcca7dd96e0009d3f84d0e1816a6525af4c87cd | refs/heads/master | 2020-04-01T15:29:06.636092 | 2019-02-11T22:26:51 | 2019-02-11T22:26:51 | 153,339,069 | 0 | 1 | null | 2019-02-11T22:26:52 | 2018-10-16T19:02:22 | null | UTF-8 | C++ | false | false | 5,489 | h | base_visualizer.h | #ifndef BASE_VISUALIZER_H
#define BASE_VISUALIZER_H
#include "BattleGround.h"
#include "RoomLayer.h"
#include "map.h"
constexpr auto RECHARGE_FILENAME = "recharge";
constexpr auto HEALTH_FILENAME = "health";
constexpr auto TEXT_NO_PLAYERS = "no players";
constexpr auto TEXT_HAVE_PLAYERS = "players:";
constexpr auto S... |
54ab1e0dda2c7094800336a3414590147c25013e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/modules/peerconnection/rtc_void_request_script_promise_resolver_impl.h | c2112db64dfa5e3568cf0597d2ad32a0d11956c0 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,369 | h | rtc_void_request_script_promise_resolver_impl.h | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PEERCONNECTION_RTC_VOID_REQUEST_SCRIPT_PROMISE_RESOLVER_IMPL_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PEERCONNECTION_RTC_VOID_RE... |
b8febc14297c959e44fddbfaaa62e53ddfe7f24b | 957f270f67a439fbde5e983a4fb40919286c7540 | /Structure/Transform.h | 7b4d5f381fa2c478fdafe423b0d029592a0057e4 | [] | no_license | hal1437/Procon26 | b8c861972c022caa2375b20a3983dc65d85bb7af | 1bcb11947016919ec3545433ec2aa73c57255e4c | refs/heads/master | 2020-12-03T10:42:02.833982 | 2016-05-28T15:02:35 | 2016-05-28T15:02:35 | 34,382,018 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 702 | h | Transform.h |
#pragma once
//#include "Block.h"
#include "Point.h"
#include "../Utility/Constants.hpp"
#include <ostream>
struct Transform{
private:
bool enable;
public:
Point pos;
Constants::ANGLE angle;
bool reverse;
public:
constexpr bool isEnable()const{
return enable;
}
bool operator==(const Transform& rhs)const;
... |
c7c55bd3755cccab2cb4cee19104cec6d7fd866f | 18e9db71a0e207dbc7654135123bceaa7b3339e4 | /8.计蒜客/子串匹配.cpp | dfaff7afc55c565415b56de7099c8370dec0d140 | [] | no_license | TheIslland/learning-in-collegelife | 358490cc74914b87d4d626a6485c2fe1ff06462f | 1794e18addfd05e32cf8108895ac1585586394e1 | refs/heads/master | 2021-07-08T00:51:00.908370 | 2020-07-11T01:04:35 | 2020-07-11T01:04:35 | 144,252,958 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,874 | cpp | 子串匹配.cpp | /*************************************************************************
> File Name: 子串匹配.cpp
> Author:TheIslland
> Mail: 861436930@qq.com
> Created Time: 2019年01月16日 星期三 19时50分42秒
************************************************************************/
#include <iostream>
#include <algorithm>
#include <stri... |
aafc6b233a7f8bc7cb462837f470f0287f00b223 | 4269cd72884e1ae157527c7bf06bfac2ace60e6b | /sqlparser/libsqlparser_2003/src/SelectStmt.cpp | 36087ba6efdd789f40e0a9ff200b6885cb1fb8de | [] | no_license | Raphael2017/sqlparsernxl | 14943eb10d4af3e1d62a2bf07ae9a8a53a9a6125 | 5b25ccff72eab198674d18a60ed4565c65bc9e9e | refs/heads/master | 2020-04-07T23:35:58.187820 | 2019-08-16T05:53:35 | 2019-08-16T05:53:35 | 158,818,649 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,391 | cpp | SelectStmt.cpp | #include "SelectStmt.h"
#include "LocalTableMgr.h"
#include "LogicPlan.h"
#include "resolve.h"
#include <assert.h>
#include "Interface.h"
#include "node.h"
#include "TableRef.h"
#include "SelectItem.h"
namespace resolve {
bool SelectStmt::add_select_item_expand_star(
ResultPlan* plan,
const... |
a9c9077375692609745af822b21a1a84a8859991 | 5c5f26e850cd55449e26ef603997a6af1da77e08 | /src/ui/ui_legend.cpp | 5d85c0e0ae8b3423dbe2c6efc1af4b1a7b7d40d7 | [
"MIT"
] | permissive | 9hack/aldente | f4d5ed16e598033c4184c0ad19fffbc9a09cf692 | d3d8eeef4572a07fae4cfeea425f9166e8e17236 | refs/heads/master | 2020-11-29T11:52:07.702761 | 2018-01-23T06:59:23 | 2018-01-23T06:59:23 | 87,496,187 | 3 | 1 | null | 2017-06-16T22:46:08 | 2017-04-07T02:33:12 | C++ | UTF-8 | C++ | false | false | 1,177 | cpp | ui_legend.cpp | #include "ui_legend.h"
#include "events.h"
static const float IMAGE_PADDING = 0.5f;
UILegend::UILegend(std::string texture, std::string text,
float start_x, float start_y,
float width, float height,
fl... |
99673d45b0ebd86ad4cbc7ad674c6dd98770b2a3 | 479af717cd530394dddbbeaa366c0edf33b37839 | /DirectedGraph/DirectedGraph.cpp | 3a234378ed1642793d51ace3f6c7d6fac5001b04 | [] | no_license | sharma-shikhar/graph_processing | 2bf974a00e7f44e5cc5afe5560d14fd1b8967754 | 79b536865061cce8401de1cef84dc0997c96f1be | refs/heads/master | 2021-01-10T04:21:12.835782 | 2016-03-17T20:59:08 | 2016-03-17T20:59:08 | 54,150,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,977 | cpp | DirectedGraph.cpp | #include <fstream>
#include <unordered_map>
#include <vector>
#include <limits>
#include "header.hpp"
#include "../Lib/List.cpp"
#include "../Lib/Queue.cpp"
#include "../Lib/string_funcs.cpp"
#include "../Lib/MinHeap.cpp"
#include "Vertex.cpp"
#include "DirectedEdge.cpp"
template <typename T>
class DirectedGraph {
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.