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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08305327b2a3b7d6da4becf7c9d09287981ceb38 | 53733f73b922407a958bebde5e674ec7f045d1ba | /OtherSites/TopCoder/SRM/797/Three/main1.cpp | 3c5d4283b5b824a430b5f8507f4f172fcad596f3 | [] | no_license | makio93/atcoder | 040c3982e5e867b00a0d0c34b2a918dd15e95796 | 694a3fd87b065049f01f7a3beb856f8260645d94 | refs/heads/master | 2021-07-23T06:22:59.674242 | 2021-03-31T02:25:55 | 2021-03-31T02:25:55 | 245,409,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | cpp | main1.cpp | #include <bits/stdc++.h>
using namespace std;
class FlightPlan {
public:
long long fly(int R, int C, vector<int> H, int cup, int cdn, int clr) {
vector<vector<vector<int>>> dist(R*C, vector<vector<int>>(R, vector<int>(C, (int)(1e9))));
for (int i1=0; i1<R*C; ++i1) {
if (H[0]... |
5373cbceca68433823ed799570fde41d01a33761 | 69edc451cdb4bf23de322c9d8335af39d583cc82 | /UVa/011753.cpp | fa83c3cf44b3b37b9a3efc5847e1d167ee8c9b11 | [] | no_license | jesusmoraleda/competitive-programming | cbd90384641565b651ac2694f98f5d10870b83a9 | 97511d4fd00e90fe6676bfd134c0eb56be3c7580 | refs/heads/master | 2020-09-04T17:09:37.607768 | 2017-08-13T10:06:04 | 2017-08-13T10:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | 011753.cpp | #include <iostream>
using namespace std;
int c, K, a[10000];
int f(int i, int j) {
if (c > K) return c;
if (i >= j) return 0;
if (a[i] == a[j]) return f(i+1, j-1);
c++;
int D = 1 + min(f(i+1, j), f(i, j-1));
c--;
return D;
}
int main() {
int T;
cin >> T;
for (int t = 1; t <=... |
0b60c6299b18f21580245e439978aa34711fd382 | 4ad8a2fe729d10bdbb4f8fbdf9ef81612ba891d6 | /模板/分治/树分治/树链剖分.cpp | fb910f74276b0986bbce822cd757e547f3ce97f9 | [] | no_license | zh-dou/Source-File | 3b54df7ab321e5355bea821aa82b77ae958965d3 | a2f9198803d1bf23a5d1f364f0bff11072a9a578 | refs/heads/master | 2020-09-21T03:10:24.689192 | 2020-06-17T07:09:41 | 2020-06-17T07:09:41 | 224,661,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,070 | cpp | 树链剖分.cpp | #include<queue>
#include<cmath>
#include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<algorithm>
using namespace std;
#define N 100010
inline int read(){
int x=0,y=1;
char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')y=-1;ch=getchar();}
while(ch>='0'&&... |
cdc82093e82a6725a9ec89f989172c058d2ee879 | aec5cf4d630d0b7de9a5599091f3c13962380c47 | /code01.ino | 7c1159180987e37820ecf469dee71a28cbdafaf3 | [] | no_license | PhantomHT/Arduino_digital_voltmeter | 8fa1322ebb55ab3d6368ca4a5e99ea13251b71ff | 91426acac37a7abcf21bb58325cc2ab83e50fafa | refs/heads/master | 2021-01-20T00:22:22.142714 | 2017-11-24T22:01:42 | 2017-11-24T22:01:42 | 89,123,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | ino | code01.ino | # 1 channel digital voltmeter
# using analog inputs and basic conversion formula
int input_pin= A0;
float serial_voltage=0.00;
void setup()
{
Serial.begin(9600);
pinMode(input_pin, INPUT);
}
void loop()
{
serial_voltage=analogRead(input_pin*5.0)/1024.0;
Serial.print("Voltage: ");
Serial.println(serial_v... |
f6f0f245bc785ecaab0800f8eb5f3341260eaba2 | 0aedbcfb57f277669084a1a905eb873a2ac60fe6 | /Heaps_FindTheRunningMedian.cpp | d49c0301e7b9150557045665ba9ec39bdcf6afa5 | [] | no_license | gunanksood/Cracking-the-Coding-Interview-Solutions | 7e841da2a616a0a35d2e1c0e3a06aa70362301cf | a58a5f8d3a512d32de69254b416f8a2b35b63f87 | refs/heads/master | 2021-01-25T09:43:35.597619 | 2017-06-11T17:17:59 | 2017-06-11T17:17:59 | 93,873,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,005 | cpp | Heaps_FindTheRunningMedian.cpp | /*
https://www.hackerrank.com/challenges/ctci-find-the-running-median
*/
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>... |
5072bf5c7ef5b06ae732d9b465c185c34e60f30a | c34f46ea941aa42a3c7c976d70cc987684d988b5 | /HW7/DenialOfServiceAnalyzer.h | eff933c83270d3389cab42e6e29f5adbc6227a27 | [] | no_license | emperorbyl/PeerReview | c613dda92b5c8beb5c4412068adc7b1200f823d4 | 78d182aaa586af30b731534dd9abb1d6896cd909 | refs/heads/master | 2021-01-20T03:29:14.129404 | 2017-04-27T02:26:37 | 2017-04-27T02:26:37 | 89,545,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | DenialOfServiceAnalyzer.h | //
// Created by Justin Fairbourn on 4/23/2017.
//
#ifndef HW7_DENIALOFSERVICEANALYZER_H
#define HW7_DENIALOFSERVICEANALYZER_H
#include "Analyzer.h"
class DenialOfServiceAnalyzer : public Analyzer {
public:
DenialOfServiceAnalyzer(Configuration config);
ResultSet run(std::istream &in);
private:
int timef... |
e3ae5d2cabb62d70eee05b638dfbc5455a22e67b | 228b25458e74199b18bfcdd0d1dc400e39e4a651 | /old/2178/bfs.cpp | 9bd4f9b9a4df7ce2a5d73e78d2beff0515291fc1 | [] | no_license | luxroot/baekjoon | 9146f18ea345d6998e471439117516f2ea26f22c | ed40287fd53ae1f41d2958c68e6e04d498d528b9 | refs/heads/master | 2023-06-27T05:50:41.303356 | 2021-08-06T04:18:33 | 2021-08-06T04:18:33 | 111,078,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cpp | bfs.cpp | #include <bits/stdc++.h>
using namespace std;
int v[105][105];
int main()
{
int n,m,i,j,cnt=1;
cin >> n >> m;
for(i=0;i<n;i++){
string temp;
cin >> temp;
for(j=0;j<m;j++){
v[i][j]=temp[j]-'0';
}
}
queue< pair<int,int> > q;
pair<int,int> c;
q.pu... |
ff8405bfd4d491a419b84cf1b56a4b449577fdc8 | 5cd30c7bc36af0d37e4c4c0ecd6bf3d84d1e710a | /src/d2d/SpriteAnimationSystem.cpp | 3509727e05faf3c7654f60f3548ccbd194988f19 | [] | no_license | Dwergi/prototype-engine | 89cb8a4c90344ab046d176beff7b19468abd6d4e | 0d792ded0141b2a913200f6f1c27084d65f42627 | refs/heads/master | 2023-04-27T21:08:31.482645 | 2023-04-21T09:17:36 | 2023-04-21T09:17:36 | 31,064,734 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | cpp | SpriteAnimationSystem.cpp | #include "PCH.h"
#include "d2d/SpriteAnimationSystem.h"
#include "d2d/SpriteAnimationComponent.h"
#include "d2d/SpriteComponent.h"
namespace d2d
{
SpriteAnimationSystem::SpriteAnimationSystem() :
ddc::System("Sprite Animation")
{
RequireTag(ddc::Tag::Visible);
RequireWrite<d2d::SpriteAnimationComponent>();
... |
dc0e9db355664efa984ff467249f37c36e4aa8ce | 9870e11c26c15aec3cc13bc910e711367749a7ff | /SPOJ/sp_8317.cpp | 0dfbddc08e045ead088ff2339c77a32e97395202 | [] | no_license | liuq901/code | 56eddb81972d00f2b733121505555b7c7cbc2544 | fcbfba70338d3d10bad2a4c08f59d501761c205a | refs/heads/master | 2021-01-15T23:50:10.570996 | 2016-01-16T16:14:18 | 2016-01-16T16:14:18 | 12,918,517 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,597 | cpp | sp_8317.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
struct tree
{
int l,r,maxl,maxr,maxs,minl,minr,mins,sum;
bool change;
};
tree a[270000];
int b[100010];
void updata(int x)
{
if (!a[x].change)
return;
if (a[x].l!=a[x].r)
{
int ls=x<<1,rs=ls+1;
a[ls].change=!a[ls].ch... |
0051c63961724a1bf59f2b2ce417c75e9bbf59b1 | 93a3c16d413b193c2f870862dd784c1ac6b842dd | /Orryx/Input.cpp | fff5dc3858708c412cc9ab01b3cf5619e15a2126 | [] | no_license | tedajax/orryx | d6f7b19703a8a0c755938f5f82b669651bbe089f | 232bb0c57607d8dfa8d5d6101ac801304cd724cc | refs/heads/master | 2016-09-06T01:42:42.590729 | 2014-11-11T08:54:56 | 2014-11-11T08:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | Input.cpp | #include "Input.h"
namespace orx
{
Input::Input()
{
for (int i = 0; i < SDL_NUM_SCANCODES; ++i)
{
m_previousState[i] = false;
m_currentState[i] = false;
}
}
Input::~Input()
{
}
bool Input::getKey(SDL_Scancode key)
{
return m_cur... |
2a90a81b5a451f994e21992f65bbb6ed3e1743ad | a43dd6906848d560a0adf8b8bfffe2458d028996 | /chain_of_respon.cpp | a7bbd7777fb1d2384cbd855ee7528bbf13425384 | [] | no_license | wzpchris/design_pattern | 50b85270e28e7a986da3230200eea7efe6bb0239 | cbe50ecf50019038ab349a735e44f9396404d8cb | refs/heads/master | 2020-03-23T00:11:57.476696 | 2018-07-13T13:29:57 | 2018-07-13T13:29:57 | 140,849,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,252 | cpp | chain_of_respon.cpp | /*************************************************************************
> File Name: chain_of_respon.cpp
> Author:
> Mail:
> Created Time: 2018年07月13日 星期五 19时49分40秒
************************************************************************/
//职责连模式
#include<iostream>
using namespace std;
class Manager {
protec... |
46a79a4467a17e925c26a58427f7c0353ad202b1 | cd5771b452cc78c6a71d697b9d7d4d3209d51485 | /WaterSurface/Matrix4f.h | 4697df73eef59581b3094b87e1ebab7fdbafce1b | [
"BSD-3-Clause"
] | permissive | Gekoncze/ExamplesOpenglWaterSurface | d0f7a0a65612434dcd67ad0c3a6eaf6cc0505666 | 76bec224365c25eca9df757181157fb3faf1ee2f | refs/heads/master | 2020-05-27T03:52:27.180964 | 2019-05-24T20:19:45 | 2019-05-24T20:19:45 | 188,473,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | h | Matrix4f.h | #pragma once
class Matrix4f
{
private:
float data[16];
public:
Matrix4f(
float f0, float f1, float f2, float f3,
float f4, float f5, float f6, float f7,
float f8, float f9, float f10, float f11,
float f12, float f13, float f14, float f15
);
Matrix4f();
~Matrix4f();
float* getData();
static Matrix4f id... |
ac38037e3d144d3e196c2814c8297a8cf3b9530c | 07e23ccae6c7a19bb556ad04a157346c8c9026d5 | /src/memhookcore/leveldb_storage.cpp | a5bc684ad649f333b7213b91720fc44b078c5f29 | [
"BSD-3-Clause"
] | permissive | sergzub/memhook | 4a60a1aa0e5ac165d29e853920c593def42d7536 | 51206e1bb54b08a658a3524d169e81c5abd4b61c | refs/heads/master | 2020-04-24T11:08:38.231435 | 2019-02-21T17:43:53 | 2019-02-21T18:05:21 | 171,916,212 | 0 | 0 | BSD-3-Clause | 2019-02-21T17:36:19 | 2019-02-21T17:36:18 | null | UTF-8 | C++ | false | false | 2,999 | cpp | leveldb_storage.cpp | #include "leveldb_storage.h"
#include <boost/chrono/system_clocks.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/throw_exception.hpp>
#include <leveldb/comparator.h>
namespace memhook {
namespace {
class SystemClockComparator : public leveldb::Comparator {
public:
int Compare(const l... |
2f4b872ec08aae2567176ea5bd2ea95250047da3 | f12474fd5330114bebf9982a366d8629dcf40c2a | /hello world/三个数的max.cpp | ac4c486fbf9f5fd403684d693fc0854a9a5f4be0 | [] | no_license | yaolaotou/C-s-Class | b7d2d50832cc7bef8ce54bed3a70eb7cc44ba36b | abe52a4071c6e0c79d1496e069e3b758bb8d9a32 | refs/heads/master | 2021-04-03T04:33:07.618445 | 2018-03-09T16:31:06 | 2018-03-09T16:31:06 | 124,563,757 | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 229 | cpp | 三个数的max.cpp | #include<stdio.h>
main()
{
int a,b,c;
int max;
printf("ΗλΚδΘλΘύΈφΚύ£Ί");
scanf("%d %d %d",&a,&b,&c);
if(a>b&&a>c)
{
max = a;
}
else if(b>a&&b>c)
{
max = b;
}
else
{
max=c;
}
printf("%d\n",max);
} |
1d6f858f5f3b0d1062399f4d288b637e5dd9b5de | 7e52c0da52a2569be2caaeffa7aa74b4ee1b5bc3 | /model/PlayfieldState.h | 4053e36951463411a95aa71781f374cad7721dea | [] | no_license | furkoch/tic_tac_toe | 1766c6dd38ad95469fc33223c2f519e43826e001 | 8e5e0d729c350be462ef365637d0ac5b30ad35cd | refs/heads/master | 2020-04-03T15:35:49.496069 | 2018-10-30T10:48:33 | 2018-10-30T10:48:33 | 155,368,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | h | PlayfieldState.h | #ifndef PLAYFIELD_STATE
#define PLAYFIELD_STATE
#include <vector>
enum GameState {PLAYING, PLAYER_ONE_WON,
PLAYER_TWO_WON, PLAYER_AI_WON, DRAW};
class PlayfieldState {
public:
PlayfieldState(int boardSize);
~PlayfieldState();
inline const std::vector<std::vector<char>>& getStateMatrix() { return stateMatrix... |
857a0360307df409eceda948b019916f94a149e3 | 2c430e743e4cb78cfab6688043b4d98fff00f255 | /examples/todomvc - ssr/src/server/app.cpp | 68411477ce7c443e9861c2eda2a4a12e25a29b6a | [
"MIT"
] | permissive | mbasso/asm-dom | 8c346960ed2403f0822b2ea5a6d0357b58682665 | 795529cacd3d41154c701e52bd9da0f483e8f916 | refs/heads/master | 2023-08-28T21:35:35.559219 | 2022-08-28T09:11:42 | 2022-08-28T09:11:42 | 83,154,886 | 2,921 | 128 | NOASSERTION | 2023-03-03T18:16:02 | 2017-02-25T18:59:11 | C++ | UTF-8 | C++ | false | false | 1,520 | cpp | app.cpp | #include "../../../../src/cpp/asm-dom.hpp"
#include "../../../../src/cpp/asm-dom-server.hpp"
#include "../shared/todos.hpp"
#include "../shared/helpers.hpp"
#include <emscripten.h>
#include <emscripten/bind.h>
using namespace asmdom;
using namespace todomvc::todos;
std::function<void(todomvc::todos::action)> handler;... |
551ca6447f3543bb3c248d6b731ae267f32c10fd | dd7f966edda4df817612c53a3eeb1e46af668e35 | /Arduino/HS1/sgtl5000_LHI.ino | a3026dbf8f938d0468e6d0579b20835c755994e7 | [] | no_license | loggerhead-instruments/HS1 | a1863f8b1cb1178d2b90677494651d8534cc7536 | 28fa92ae6ccf6cc0c686fc438f40dded219581b6 | refs/heads/master | 2020-06-16T01:46:41.430397 | 2019-12-16T20:52:45 | 2019-12-16T20:52:45 | 195,446,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,777 | ino | sgtl5000_LHI.ino |
#include "control_sgtl5000.h"
//#include "Wire.h"
#define SGTL5000_I2C_ADDR 0x0A // CTRL_ADR0_CS pin low (normal configuration)
#define CHIP_ID 0x0000
// 15:8 PARTID 0xA0 - 8 bit identifier for SGTL5000
// 7:0 REVID 0x00 - revision number for SGTL5000.
#define CHIP_DIG_POWER 0x0002
// 6 ADC_POW... |
d091bc6bcc6451360e0d2aefb19a2d00f8a9419e | 39ed472003b20d0844bd7fdd3b1db366ff1394d1 | /Pirates Hide and Seek/Source.cpp | 6068f6e7d06add2bbbfdfb1ae7db3cc914b4bcd9 | [
"MIT"
] | permissive | AdrianCert/Pirates-Hide-and-Seek | 785d27bde1f8a652dbaddf84e36686e970d3e1fb | ec430e8fe9e20820d663c25d78732f7b805dbe05 | refs/heads/master | 2020-11-26T10:21:08.080820 | 2020-01-19T08:16:50 | 2020-01-19T08:16:50 | 229,040,432 | 0 | 2 | MIT | 2020-01-16T09:52:24 | 2019-12-19T11:27:59 | C++ | UTF-8 | C++ | false | false | 2,381 | cpp | Source.cpp | #include "Source.h"
#include "Level.h"
using namespace sf;
int main()
{
int gameWidth, gameHeight, gameSSyle;
std::string gameName;
cfg::dictionaty* configuration = new cfg::dictionaty();
if (!ReadConfiguration(configuration, "Resource/ConfigureFile.txt")) return EXIT_FAILURE;
if (!GetParm(configuration, "game... |
7f81635b5b2864a2e31edd38f5f16daedcd84f7c | 898c761766be7b0db4ea51e50f11953a04da0f50 | /2021-3-14/ARC114/C.cpp | f2d3fc216234cf19dc1648461f709a461bb29ba8 | [] | no_license | zhoufangyuanTV/zzzz | 342f87de6fdbdc7f8c6dce12649fe96c2c1bcf9c | 1d686ff1bc6adb883fa18d0e110df7f82ebe568d | refs/heads/master | 2023-08-25T03:22:41.184640 | 2021-09-30T12:42:01 | 2021-09-30T12:42:01 | 286,425,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | C.cpp | #include<cstdio>
#include<cstring>
using namespace std;
long long ksm(long long x,long long k)
{
long long s=1;
while(k>0)
{
if(k&1)s=s*x%998244353;
x=x*x%998244353;
k>>=1;
}
return s;
}
long long a[5100];
int main()
{
int n,m;scanf("%d%d",&n,&m);
long long p=n,s=0,np=ksm(m,998244351);
for(int i=0;i<=m;i+... |
7faa37869f7d04ce2217cf4c936a384b0a65114c | 05e08bccc745c4c2e368c0b8dbcb2574ee610cb2 | /spoj/beehive.cpp | 089c493c52599e54db2f9d92c4d382be5fd0e4d1 | [] | no_license | anurag95/MyCodes | 76dce681edd3fa8824dbe94d169d6e8ba4571175 | 9bd890306f6b10b60ca60a02c9f7e5765b5ac538 | refs/heads/master | 2021-01-10T13:52:30.866762 | 2015-11-18T12:41:37 | 2015-11-18T12:41:37 | 46,417,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | beehive.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
#define pb push_back
#define si(x) scanf("%d", &x);
#define sii(x,y) scanf("%d%d", &x, &y);
#define sll(x) scanf("%lld", &x);
#define pi(x) printf("%d\n", x);
#define pll(x) printf("%lld\n", x);
int main()
{
int n;
si(n)
while(... |
6a33ef877f2b565cf703e9155d9f80a87892cb87 | fdfbebcc3a5e635b8273d1b39492e797932d547f | /wxRaytracer/raytracer/Textures/TInstance.cpp | 02a2fb0ee047593d6034d24139ab7175869cce8b | [] | no_license | WindyPaper/raytracing | eca738ff67ce420be8e151d5c6a4ce62ac749ae4 | 2e38260e33fd87c1ff07f6212bc394470d89dbbc | refs/heads/master | 2021-01-23T06:45:15.360491 | 2017-09-07T15:29:26 | 2017-09-07T15:29:26 | 86,397,382 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,825 | cpp | TInstance.cpp | // Copyright (C) Mp77 2012
// Original from Kevin Suffern 2000-2007
// This C++ code is for non-commercial purposes only.
// This C++ code is licensed under the GNU General Public License Version 2.
// See the file COPYING.txt for the full license.
#include "TInstance.h"
#include "Maths.h"
TInstance::TInstance(void)... |
2524b5c4712d8627765432974c0eb5c004a78368 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/printscan/faxsrv/src/test/src/xxxunusedxxx/deviceioctls/socketserverioctl.cpp | b0ed7d8c8279dfa82ec49c9870c68176eba2563f | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,438 | cpp | socketserverioctl.cpp | #include "DeviceIOCTLS.pch"
#pragma hdrstop
/*
*/
#define MAX_PORT_NUM (0xFFFF)
//
// must be defined 1st to override winsock1
//
//#include <winsock2.h>
//
// defines for WSASocet() params
//
#define PROTO_TYPE_UNICAST 0
#define PROTO_TYPE_MCAST 1
#define PROTOCOL_ID(Type, VendorMajor, VendorM... |
00d47e6bf048c05583f694b1dda0c3f5fcd7d5a7 | 39c662ae86764ed201d7f303eb6c109b647b89e5 | /FillUpY_Case1.cpp | 30e265b5a64c01bf0ccd8dc850202464686e1af7 | [] | no_license | yujiadeng/ITRSimulation | d94189652ea521319cba5ecbce09663641f0c406 | 45e3662bb2a3f5a0d921717f8ebd9852221f89c9 | refs/heads/master | 2020-04-02T12:24:00.204828 | 2018-12-15T03:31:38 | 2018-12-15T03:31:38 | 154,431,838 | 1 | 0 | null | 2018-12-15T03:18:31 | 2018-10-24T03:15:47 | Python | UTF-8 | C++ | false | false | 510 | cpp | FillUpY_Case1.cpp | //
// Created by Haoda Fu on 8/5/18.
//
#include "FillUpY_Case1.h"
std::vector<double> FillUpY_Case1::valueY(size_t row, DataTable & dataM, int trt) {
std::vector<double> Yi(dataM.getVarY().size(),0);
size_t yDim=dataM.getVarY().size();
for(size_t item=0;item < yDim; ++item){
Yi.at(item) = (double... |
dcd5bcd0c3a7349fb12a27e6cd808b433d566aca | 1a98cb54d824e477774337223872792f50be0ef7 | /C++/DataStructures/0_Stack/client1.cpp | 9c13388d4cb04a80cdef59b2c8bda16580b3e2c7 | [] | no_license | jacobgamez/portfolio | 2d06be9c107f47d05f25de2f56d0d838bf40e437 | 9cb2980e60df75363f9afcab666e41e2f383146d | refs/heads/master | 2020-04-22T22:59:22.010811 | 2015-03-05T00:33:34 | 2015-03-05T00:33:34 | 30,324,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | cpp | client1.cpp | // =========================================================
//Stack Client
//Your name: Jacob Gamez
//Complier: g++
//File type: cpp client file
//================================================================
#ifndef CLIENT_C
#define CLIENT_C
#include <iostream>
#include <string>
#include <cctype> //Including to... |
f0245c30d59b249b10c6a5ad95a0587cf6d94d19 | fc30e371a9aef058478fe9e9cb90495f15b1de82 | /Spoj_CANTON.cpp | c8a3437aa2801d3a80229da7200e9ac7b17f8b42 | [] | no_license | abhi-upadhyay28/Spoj-Solutions | 017325457ba9c84a0177ac2c12dfc7919f29f392 | 30e907c20794ddef426fa4f4805763d9ad644f9f | refs/heads/master | 2021-01-21T10:26:04.789744 | 2017-02-28T17:32:31 | 2017-02-28T17:32:31 | 83,429,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | Spoj_CANTON.cpp | #include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int num,sum=0;
cin>>num;
int i;
for(i=1; ;i++)
{
sum+=i;
if(sum>=num)
break;
}
int total=i+1;
int temp=num-(sum-i);
if(i%2==0)
cout<<"TERM "<<num<<" IS "<<temp<<"/"<<total-temp<<"\n";
else
cout<<"TERM "<<num<<" IS "... |
35079675faf3280110ec0c28371f7222fd1746a9 | 3051050dc3dee97dc60ef78d31ff500b6e93d0fb | /ash/capture_mode/capture_mode_behavior.cc | ea72605f5a1ae85654a4f0d7fbac010aebe239a3 | [
"BSD-3-Clause"
] | permissive | weblifeio/chromium | cd249e1c9418dcf0792bd68bbdcd2a6e56af0e2e | 74ac962b3a95c88614f734066ab2cc48b572359c | refs/heads/main | 2023-06-09T19:45:03.535378 | 2023-05-26T19:16:31 | 2023-05-26T19:16:31 | 177,631,387 | 0 | 0 | null | 2019-03-25T17:15:48 | 2019-03-25T17:15:47 | null | UTF-8 | C++ | false | false | 3,880 | cc | capture_mode_behavior.cc | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/capture_mode/capture_mode_behavior.h"
#include <memory>
#include "ash/capture_mode/capture_mode_metrics.h"
#include "ash/capture_mode/capture_mode_types.h"
nam... |
515f1c5e242fd0730bd1519d4b08e65ece9baf6a | e7164d44058a06331c034cc17eefe1521d6c95a2 | /include/feature/FeatureNormalizer.h | 5d865327e42ef8d6ae9bfb9534a6138f09fbf8ab | [] | no_license | chenghuige/gezi | fbc1e655396fbc365fffacc10409d35d20e3952c | 4fc8f9a3c5837e8add720bf6954a4f52abfff8b5 | refs/heads/master | 2021-01-20T01:57:18.362413 | 2016-11-08T15:34:07 | 2016-11-08T15:34:07 | 101,304,774 | 0 | 3 | null | null | null | null | GB18030 | C++ | false | false | 4,121 | h | FeatureNormalizer.h | #ifndef _NORMALIZE_FILTER_H_
#define _NORMALIZE_FILTER_H_
#include "Feature.h"
#include "common_util.h"
#include "stdio.h"
#include "stdlib.h"
#include <math.h>
#include <string.h>
namespace gezi
{
//@TODO 目前Feature已经改成按照TLC标准 0 开始 这个也不再对应
//将会改成完全按照TLC标准 对应增加 linear svm,svm, logistic regression 等等
class FeatureNo... |
e073ca681194c86387ef471396aa16ed9e85a04d | e064df5d2c9a958d4b226323b1e355a56799b344 | /cpp/dataStructures/searchTrees/Ssets_sat.cpp | d028d5f5474f802620df08f86e0c5b9e9b46437d | [] | no_license | jonturner53/grafalgo | 68605d12d1258ea70a4eb50e370afa56fb07747b | 5063c695a66e9d17e4f70bc50452c88908e34dbe | refs/heads/master | 2023-08-07T07:25:57.261886 | 2023-07-30T14:05:48 | 2023-07-30T14:05:48 | 32,212,221 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,395 | cpp | Ssets_sat.cpp | /** @file Ssets_sat.cpp
*
* @author Jon Turner
* @date 2011
* This is open source software licensed under the Apache 2.0 license.
* See http://www.apache.org/licenses/LICENSE-2.0 for details.
*/
#include "Ssets_sat.h"
#define left(x) node[x].left
#define right(x) node[x].right
#define p(x) node[x].p
#define ... |
b1423084ce98300018d7a25c52c94b5284b02c58 | 97afeb94887caf226ff36f90961fbfc96040f9c1 | /src/PathPlanner.cpp | e06cbb19dd9eaf86b3479c75c1c2a4b12bd1cc03 | [
"MIT"
] | permissive | JiaweiHan88/PathPlanning | 89bf9b0da6b75f3eaf43e9bc17e0d747315bb9df | c38852b3d294eb5c9baf13be2332ebd23b93e298 | refs/heads/main | 2023-06-08T01:38:16.345202 | 2021-06-27T14:24:52 | 2021-06-27T14:24:52 | 380,759,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,463 | cpp | PathPlanner.cpp | #include "PathPlanner.h"
#include "helpers.h"
#include "spline.h"
#include <algorithm>
#include <iostream>
using std::vector;
PathPlanner::PathPlanner(VEMPtr env) : m_env(env)
{
m_pred = std::make_shared<Predictor>(env);
m_ref_vel = 0;
}
void PathPlanner::updatePreviousPath(json &j)
{
// Previous path data... |
48e39f69a130098e2f4c63f8cc76f4af295ceef0 | df689da61dc21d79fca81254d2e8878278cc5443 | /AxWinLib/CWinVersion.cpp | a57e33c146490ceaae6149559521b37a7c678ef2 | [] | no_license | mirsys/xecrets-file | f01fc60eda4c55cc3b1eabc319aeb47f94abdb13 | f0496fd2b490ae2817c1e3089f6e5f7036f2a87e | refs/heads/master | 2022-11-11T11:10:42.571622 | 2020-07-08T18:54:38 | 2020-07-08T18:54:38 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,119 | cpp | CWinVersion.cpp | /*! \file
\brief Determine Windows Version
@(#) $Id$
AxLib - Collection of useful code. All code here is generally intended to be simply included in
the projects, the intention is not to províde a stand-alone linkable library, since so many
variants are possible (single/multithread release/debug etc) and also ... |
e36b458eaf3f0c88ea5a2ff22a287227d81584dd | 7da24497832d8afafefa36db391d644e7fceef40 | /others/CODE_FESTIVAL_2014_Final_F_Gojoho.cpp | 98930f4b9a194a841a734e010661ec57a3b8a1eb | [] | no_license | shugo256/AtCoder | 864e70a54cb5cb8a3dddd038cb425a96aacb54bf | 57c81746c83b11bd1373cfff8a0358af3ba67f65 | refs/heads/master | 2021-06-12T14:46:54.073135 | 2021-04-25T08:09:15 | 2021-04-25T08:09:15 | 180,904,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | cpp | CODE_FESTIVAL_2014_Final_F_Gojoho.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
using ll = long long;
using namespace std;
template <typename T>
T gcd(T a, T b) {
if (a > b) {
T buf = a;
a = b;
b = buf;
}
return a == 0 ? b : gcd(a, b%a);
}
int check(vector<int> &inv... |
1ff970fcc90514d57582066d417a2885ab781c00 | 0954c102d25ae4e26fdc3453d3cf4d405aedd35b | /Noah-doho-6-and-6---master (Animation) 2/Classes/StoryBook/Scene3/NoahAndDove.h | 54bb40aceb10e9807080f242721fbc810148e72e | [] | no_license | 73153/Cocos2dx-animation-cocosbuuilder | c987c34c3e24cf1b44c9560bf10f1ac3af05b433 | 1f423549b7da96da86cdc5eb92afea8011ecbf66 | refs/heads/master | 2020-04-06T04:41:50.056706 | 2017-02-22T11:21:02 | 2017-02-22T11:21:02 | 82,796,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,570 | h | NoahAndDove.h | //
// NoahAndDove.h
// Noah360
//
// Created by Neil D on 03/10/13.
//
//
#ifndef __Noah360__NoahAndDove__
#define __Noah360__NoahAndDove__
#include <iostream>
#include "cocos2d.h"
#include "cocos-ext.h"
USING_NS_CC;
USING_NS_CC_EXT;
class NoahAndDove: public cocos2d::CCNode,public CCTargetedTouchDelegate
{
publ... |
5ba58dbce6047d832013cfdece958c567af606e4 | 318b737f3fe69171f706d2d990c818090ee6afce | /hybridse/examples/toydb/src/cmd/toydb.cc | 57658da86f455a3509a5b9be427fbf50409bc9e4 | [
"Apache-2.0"
] | permissive | 4paradigm/OpenMLDB | e884c33f62177a70749749bd3b67e401c135f645 | a013ba33e4ce131353edc71e27053b1801ffb8f7 | refs/heads/main | 2023-09-01T02:15:28.821235 | 2023-08-31T11:42:02 | 2023-08-31T11:42:02 | 346,976,717 | 3,323 | 699 | Apache-2.0 | 2023-09-14T09:55:44 | 2021-03-12T07:18:31 | C++ | UTF-8 | C++ | false | false | 16,456 | cc | toydb.cc | /*
* Copyright 2021 4Paradigm
*
* 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 agreed to in ... |
93ab4226d5af896ed2ed4e3f5196625002486068 | 885595ecb8a07d54ebb2386dbc390358ff592d52 | /src/sakura/c.cpp | 3a7248a40e92ba3f4546260902e4bdccd4876dac | [] | no_license | PyYoshi/libsakura | 74001e5291faf0d264e63b3312004b963c7b4abb | 7f145fa007e12a6b08d5ff2cf2a893949986c100 | refs/heads/master | 2023-06-12T06:09:00.910700 | 2015-05-30T15:22:53 | 2015-05-30T15:22:53 | 34,127,787 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,225 | cpp | c.cpp | #include "c.h"
#include "Sakura.h"
extern "C" {
struct sakura_picture_t {Sakura::Picture* rep;};
void sakura_free_picture(sakura_picture_t* pic) {
delete pic->rep;
delete pic;
}
sakura_picture_t* sakura_scale(sakura_picture_t* in_pic, int out_width, int out_height, int scale_filter, char** errptr) {
try... |
4350dd7f157c77c5566ec66dccb1367ba4faca05 | 17870e158e43f474897f013fdf8fb51e2b2e48e7 | /expressions/aggregation/AggregateFunctionFactory.hpp | 0553542846149bd3380ca14d7e8d54542ed27988 | [
"Apache-2.0"
] | permissive | cramja/quickstep | cf3a3862a99174774f1565c8d4b536b84f3d3671 | 02364b2f43bf87849c0c5a6c12107d22840402af | refs/heads/master | 2020-04-05T22:59:46.825680 | 2016-11-09T23:23:14 | 2016-11-09T23:23:14 | 60,444,794 | 0 | 0 | null | 2016-06-05T05:30:15 | 2016-06-05T05:30:15 | null | UTF-8 | C++ | false | false | 3,421 | hpp | AggregateFunctionFactory.hpp | /**
* Copyright 2015 Pivotal Software, Inc.
*
* 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 appl... |
e325a6c4a3d75a99021883e4d99effce2bb1cb7b | 9d963319678fcd4930c8a0b2f29e2dd7575ca5c3 | /ArcGISRuntimeSDKQt_CppSamples/Routing/FindRoute/FindRoute.cpp | 3326dc6b783347f6883c551fff30b396f1d6e12c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Gela/arcgis-runtime-samples-qt | a9ed563fe1b483c3fdb593e423955f45194b1304 | 1fe287ebd2ee887e708c22d620b3f28107d62e85 | refs/heads/main | 2023-08-03T06:20:11.722313 | 2021-08-25T21:35:42 | 2021-08-25T21:35:42 | 402,888,991 | 2 | 0 | Apache-2.0 | 2021-09-03T20:21:22 | 2021-09-03T20:21:22 | null | UTF-8 | C++ | false | false | 6,518 | cpp | FindRoute.cpp | // [WriteFile Name=FindRoute, Category=Routing]
// [Legal]
// Copyright 2016 Esri.
// 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 r... |
2ad2cbba720995f7d0ea087d795a8fb048278d25 | e79abd8b490c5cc302cbe51603b5757288ae8ab6 | /src/PerlCommandLine.h | 78497342d380e823b4ac27d5c62d376a64f0b19e | [
"MIT"
] | permissive | BenBanerjeeRichards/perl-ide-server | 316ee1b918fce71520cba9b9071d76fa3cef1c0b | 9a4a2d6342219241ef56da8b968688626d3102f3 | refs/heads/master | 2022-04-12T21:41:19.895439 | 2020-02-19T13:06:26 | 2020-02-19T13:06:26 | 203,227,113 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | h | PerlCommandLine.h | //
// Created by Ben Banerjee-Richards on 2019-10-18.
//
#ifndef PERLPARSER_PERLCOMMANDLINE_H
#define PERLPARSER_PERLCOMMANDLINE_H
#include "PerlProject.h"
#include "../lib/pstreams.h"
#include "Util.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <optional>
struct RunResult {
// Each elemen... |
9863aa34fda2c48d6c8424ebff9795ca51eabcd7 | 27817c37b7e8e9e2a0831edb1d2a7f56a91e3f94 | /src/config/reader.cpp | 04c183a833dec8ba50f806c84f0e083c7a981e5d | [
"MIT"
] | permissive | weiwei2285762217/EDCC-Palmprint-Recognition | a00d089c9c4852ad1d0fa3ccb4473e648fcba8e3 | c90875837c8bbd9be889dbd42ee51f78c9354683 | refs/heads/master | 2023-03-19T17:20:19.501232 | 2021-02-08T07:34:36 | 2021-02-08T07:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,448 | cpp | reader.cpp | // Copyright (c) 2019 leosocy. All rights reserved.
// Use of this source code is governed by a MIT-style license
// that can be found in the LICENSE file.
#include "config/reader.h"
namespace edcc {
#define INVOKE_SETTER_WITH_STATUS_CHECKING(setter) \
do { \
auto st... |
c0f65beaf6b0f4d8df947913b325eeefb44234c1 | 792d53ec1b8fe7afb46450312fca4ef1edf056da | /MultiThread/MultiThread/main.cpp | 7688186a68aa75bc7a8f2085c46fd380e437803a | [] | no_license | kuroki-ty/what-is-programming | a8ace08866063bc8eadcb641965a2f701e38cb62 | efa87cf20a8e192148324a043e9a547fffd22c4b | refs/heads/master | 2021-01-01T18:05:44.716889 | 2018-03-29T07:35:21 | 2018-03-29T07:35:21 | 98,247,579 | 0 | 0 | null | 2018-03-29T07:35:22 | 2017-07-25T00:47:14 | C | UTF-8 | C++ | false | false | 2,946 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <numeric>
#include <pthread.h>
#include <condition_variable>
#include <errno.h>
namespace {
const uint32_t N = 256; // リングバッファ限界値
} // namespace
template <typename T>
class MultiThreadQueue
{
public:
void enqueue(const T &data)
{
std::unique_lock... |
9704d41759481f6e1d1e57b6ed8df6948aba3fec | c224d77a3c2b4e8683edaaacc8b225ca4196d232 | /FINAL.CPP | a697e96c5d36343652c40df971e74d43fea78928 | [] | no_license | smitavaidya/Event-management-System-using-Hashing | 6fb769cfd3fdaddb3213b523f46ea524ad8aa597 | 20cb2e791ea6d3379e75623d1eb659074e330155 | refs/heads/master | 2020-03-26T22:11:38.646432 | 2018-08-20T15:57:37 | 2018-08-20T15:57:37 | 145,439,266 | 17 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 10,436 | cpp | FINAL.CPP | // 1RN15IS083 && 1RN15IS091
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream.h>
#include<iomanip.h>
#define studentfile"event.txt"
#define datafile"dat.txt"
#define recsize 80
#define max 100
#include<dir.h>
#include<dos.h>
#include<bios.h>
#include<graphic... |
6126f11e7eb0645c26929cb921f8a011df3033e0 | 44f3ce9f51f04c550d89bc6ea6723caf8ffa66b4 | /include/PokemonUtils.hh | ec0ee07d29495d5b49a94b48a8e4eb7bed86894e | [
"MIT"
] | permissive | ZackDibe/pokebot | f9b519581b83e5d3098d76d99dfc9cbdad13cb83 | 0d649dc7bccaccc52097898dcf0dc093e3d7c427 | refs/heads/master | 2021-05-28T01:14:24.635515 | 2014-06-29T11:47:35 | 2014-06-29T11:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | hh | PokemonUtils.hh | #ifndef __POKEMONUTILS_HH__
#define __POKEMONUTILS_HH__
#include <stdint.h>
#define WRAM_OFFSET 0x2000000
#define IRAM_OFFSET 0x3000000
#define ROM_OFFSET 0x8000000
#define BANK_PTR 0x3526A8
#define NAMES_PTR 0x245EE0
#define PTEAM_PTR 0x024284
#define ETEAM_PTR 0x02402C
#define CURR_BANK_PTR 0x031DBC
#def... |
a7c406d00f1546aaa7d8e9a375c3240020f8d16e | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/b5/a6693500e3acc4/main.cpp | cf7d9e0c8f9ab334d21b186f76ff655d33c520da | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | main.cpp | #include <stdio.h>
enum blah
{
A = (1 << 16),
B = (1 << 17),
C = (1 << 18),
G = (1 << 20),
TEST = (A | B | C , G)
} ;
int main()
{
printf( "%d\n", TEST ) ;
} |
81358032c095465bef8ea40d2275718142da2750 | eb63872abbac7b41cf0b5441abc7e2462f66a885 | /media/devices/devicemanager_unittest.cc | 0789c412103959e06f3b79df6eecc86dee8c2a7c | [] | no_license | mehome/droid.external.libjingle.talk | e84a25bfbfbe52e99bf482fc9836f12ad801f2cf | 8e9ecc3aeff6be3f121e732963191826f17f4fdd | refs/heads/master | 2021-08-30T00:33:21.175036 | 2017-12-15T08:03:46 | 2017-12-15T08:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,436 | cc | devicemanager_unittest.cc | /*
* libjingle
* Copyright 2004 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the fo... |
9a604f8182afd9de2b7e9be700765bac63483767 | 3fdd206959153e15412be20d440e7544c0407e3a | /include/MyImage.h | d7dc140643009ce528cb469cacc24d621fae7059 | [] | no_license | minilagrotte/ProjetTraitement | 3f2c9768b3c6c44751c0fa577e93d7099a114ffd | 1322538123d9d0b9c8cc37add134c3b0e1720bff | refs/heads/master | 2021-04-09T16:54:58.757877 | 2018-04-17T19:55:35 | 2018-04-17T19:55:35 | 125,872,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 953 | h | MyImage.h | #ifndef MYIMAGE_H
#define MYIMAGE_H
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#include <stdlib.h>
#endif
class MyImage : public wxImage
{
public:
MyImage(const wxString& fileName);
MyImage(wxImage image);
MyImage(int largeur, int hauteur);
MyImage();
vo... |
de5c148227898f02719294cf6525ccb2b17c66f8 | 2098d9206e87d3e00da9368e9db4e1643600c198 | /util/time.h | 50a3c59e2e83413f37db73ea061ca070594032ac | [
"MIT"
] | permissive | wtliu/motor_sim | 791670ac4c64738aea3bab051036966ce0c2fee2 | 62e3d5555e06b84bbc638b348595150e47fe751b | refs/heads/master | 2022-12-16T21:39:31.770143 | 2020-09-23T16:43:46 | 2020-09-23T16:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | time.h | #pragma once
// increment the timer by dt
// if the timer is greater than period, reset the timer and return true
template <typename TScalar>
inline bool periodic_timer(const TScalar period, const TScalar dt,
TScalar* timer) {
*timer += dt;
if (*timer >= period) {
*timer -= p... |
1cea4d0bd2bcd0c01998108af496160d5ee48963 | 29e67a7175da3c0f558dfc8697ef21c2a98879e5 | /CSS343Project4/customer.cpp | 2283067fb5889fa3a6e83cd87d1486d3af4d6866 | [] | no_license | stephen1994/UW-CSS-Projects | a859f68a1613a69515db6ebab7db72cfddd04e02 | e27084eee38db724f59f6f7dd2e0520f6810934e | refs/heads/master | 2022-08-03T09:50:04.724903 | 2020-05-21T06:25:52 | 2020-05-21T06:25:52 | 264,371,581 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,880 | cpp | customer.cpp | // ---------------------------customer.cpp-------------------------------------
// Can Tosun and Stephen Choi CSS 343 C
// 03/03/2020
// 03/14/2020 - Date of Last Modification
// ----------------------------------------------------------------------------
// Purpose - This project initialize the contents of the invento... |
8b9d308230506cc28733adea4d3476ca51a39454 | ed9d434b634bbc7ba9d96ae0d017fedafcbdeafb | /src/L0/SU3/Vector.h | 6120da1ba698a732aa0a590afb1f57e85e0ab50a | [] | no_license | duuucccan23/ahmidas | 138f63a6c16ee049e2e7f9f246d5528213a43714 | bc0ba6c5420fbc886170945ce100264f0ecc6f80 | refs/heads/master | 2021-01-10T12:23:15.700484 | 2012-02-16T13:01:11 | 2012-02-16T13:01:11 | 48,803,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | h | Vector.h | #pragma once
#include <L0/SU3/Tensor.h>
namespace SU3
{
template <>
class Tensor< 1 >
{
std::complex< double > d_data[3];
// Some useful constant matrices
static const Tensor< 1 > s_zero;
public:
Tensor();
Tensor(double const *data);
Tensor(std::complex< double > const *data)... |
82742db9f587ae2a7e217611f89d890fc06108e1 | 26868da0803802edef8bf88747261dd768091b8a | /ACM/BOJ1039.cpp | c44ea21dc283a37165a180ea9b195288657ea3e1 | [] | no_license | zhming0/Mingorithm | 4f10ad1b33e474f6461e47949ed930363e838a6d | f0e6bf190a9a5f0701eefbcbf9ec5aeac492e355 | refs/heads/master | 2020-05-27T19:16:53.260899 | 2012-03-13T06:48:04 | 2012-03-13T06:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | cpp | BOJ1039.cpp | #include<cstring>
#include<cstdio>
#include <iostream>
using namespace std;
char grid[110][110];
bool vst[110][110];
int main (int argc, const char * argv[])
{
int n,m;
while (~scanf("%d %d",&n, &m)) {
int ret=0;
for (int i=0; i<n; i++)
for (int j=0; j<m; j++)
scanf... |
8aaa7090b2c1597c27234f53234e2ae1066ac078 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_new_log_7732.cpp | 40fdd9e432aed78f5d887e99e295b3df730c3f60 | [] | 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 | 237 | cpp | httpd_new_log_7732.cpp | ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, APLOGNO(02577)
"Init: SSLPassPhraseDialog builtin is not "
"supported on Win32 (key file "
"%s)", ppcb_arg.pkey_file); |
06eb1245d57cee139a7b495e09ac4f7ebff872da | 4bea57e631734f8cb1c230f521fd523a63c1ff23 | /projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/0.02/grad(T) | 33b1d893c1a5ecf1bfdf47ac7e7bfeb19615a154 | [] | no_license | andytorrestb/cfal | 76217f77dd43474f6b0a7eb430887e8775b78d7f | 730fb66a3070ccb3e0c52c03417e3b09140f3605 | refs/heads/master | 2023-07-04T01:22:01.990628 | 2021-08-01T15:36:17 | 2021-08-01T15:36:17 | 294,183,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,132 | grad(T) | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
b51d1b7f2cd03a8f4ed97b6bce340806bf79ab62 | e0024dd3cceebdf1e58da21b684d00d7d8c713bd | /模板/组合数+快速幂.cpp | 4bca1b5d246c5d12c2cbe59f9007df6cc4443039 | [] | no_license | wind641727121/ACM-cpp-code | 84554f242fc296593310bc4052e78901fafe659e | 793da708de46b85bb4ae6e0ec5c761c1f19751fb | refs/heads/master | 2020-03-27T05:53:38.463779 | 2018-10-28T14:22:29 | 2018-10-28T14:22:29 | 146,060,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | 组合数+快速幂.cpp | #include<cstdio>
#include<cstring>
#include<cmath>
#include<string>
#include<iostream>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<algorithm>
using namespace std;
const int mod=998244353;
typedef long long ll;
ll poww(ll a,ll b)
{
ll ans=1,base=a;
while(b!=0)
{
if(b&1!=0)
... |
b8ead209e6f2c55f13a0bbb24bf9624ee1430d7a | 288e945732ace900035694661b076ecc1d5d29e8 | /tmp.cpp | 3bc64197df525afcd8fec7364b741c2db77701d0 | [] | no_license | AtomicOrbital/CppSource | bf440704386cbd200f90b333a7c3c63dfee45abf | 29e312fb1f9b3f1be1c4aee86db8c1942b17bcbd | refs/heads/main | 2023-06-20T00:42:21.656879 | 2021-07-16T08:27:35 | 2021-07-16T08:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | cpp | tmp.cpp | #include<bits/stdc++.h>
#define mp make_pair
#define F first
#define S second
using namespace std;
typedef long long ll;
struct dat
{
string conf;
int a;
};
vector<dat> way;
vector<int> a;
int sum = 0;
dat tinh(string s)
{
dat x = {s, 0};
for(char c: x.conf)
if (c == '1') x.a++;
return x;... |
1db41af586391a0cce5e262c03932fe283941a6a | 26f1bcb7031611ad636c65ceaacc43251f7f4d09 | /Include/MessageLogHandlerRegex.hpp | 7d4c063f830c3b808c2c29ef63f085ed5887689d | [] | no_license | ice10513/devCC | 2b554a0eeb8e10c92b0b01f5bd5c64bada39d539 | c5a4ea253da7e32270096563b43cc6c25906ae12 | refs/heads/master | 2020-03-24T03:24:25.416267 | 2018-07-29T15:50:39 | 2018-07-29T15:54:13 | 142,418,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | hpp | MessageLogHandlerRegex.hpp | #pragma once
#include <string>
namespace Shb
{
const std::string g_respMsgNameRegex = R"(message recv (\w+_\w+Resp)\(0x[\dA-F]{1,4}\))";
const std::string g_resultStatusRegex = R"(\tmessageResult.status = (\d+))";
const std::string g_resultCauseRegex = R"(\tmessageResult.cause = (\d+))";
const std::string g_resultSpec... |
96e305c51cf2299e8c42093ace0aea150449a772 | 235f4eaa89b561c4b4d18f6907eb70ba10303b1c | /DequeArrays.cpp | 21b12031dd1f0543283b668158b406c6c5965c29 | [] | no_license | ankan-das-2001/Basic-Datastructure-For-Competitive-Programming | 39c509495c3493084f17b662cedc51df3761ca8b | 2902f396a01d21dd32b8fb41101e27360f69aeaf | refs/heads/master | 2023-03-02T04:43:28.201127 | 2021-02-07T08:22:07 | 2021-02-07T08:22:07 | 336,737,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | DequeArrays.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
//Unlike normal dynamic arrays we can insert an element to its begining and its end
//Lets see this in an example below
deque<int> d;
d.push_back(5); //Present Array: [5]
d.push_back(12); //Present Array: [5,12]
d.push_front(3); ... |
117bdc613ee8396730c5195fb3d8ba23a9498370 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /JOI/camp17_sparklers.cpp | f72445b7779989173149668a8ed243abf3eaee71 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 1,821 | cpp | camp17_sparklers.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 100005;
using lint = long long;
using pi = pair<int, int>;
int n, k, a[MAXN];
int t;
bool solve(vector<lint> x, vector<lint> y){
if(x[0] < y[0]) return 0;
vector<int> sx = {0}, sy = {0};
for(int i=1; i<x.size(); i++){
if(x[sx.back()] <= x[i]) sx.push... |
c9d967677fc080f2e73e2456314c2cfd1e38631b | b206a0421b2805492cfe2c354c4ff2fb35dbb905 | /实验7/EXP7.1/EXP7.1/StuScore.h | b43cb92ed76603cd4c34eb4c4e68342c14655192 | [] | no_license | AhuntSun/C-CLI | 48cf819ce63b2d1a07421ece860ed6d8a9252d28 | d4b4105faf26cab3fcd9a7215e860e974cb2e05a | refs/heads/master | 2020-11-28T16:28:46.792097 | 2019-12-24T04:44:33 | 2019-12-24T04:44:33 | 229,865,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | h | StuScore.h | #pragma once
using namespace System;
ref class StuScore
{
public:
StuScore(void);
String ^strName;
String ^strID;
array<float>^fScore;
}; |
52fa053b405958eb4b9528c2d21e0ef90a886b12 | b6ccf9976e1a8f0cb18e76ea8280d6fe07cdd88b | /xtd.forms.native.wxwidgets/src/xtd/forms/native/wxwidgets/control.cpp | 2739a7a9d82bb157c828e09447b8b7498e8ef55a | [
"MIT"
] | permissive | lineCode/xtd.forms | ec9bc039203bd8f7f4ab99b66b56a0c150340cb4 | 53b126a41513b4009870498b9f8e522dfc94c8de | refs/heads/master | 2020-07-26T03:52:17.779555 | 2019-09-14T19:27:12 | 2019-09-14T19:27:12 | 208,525,716 | 1 | 0 | MIT | 2019-09-15T01:26:53 | 2019-09-15T01:26:53 | null | UTF-8 | C++ | false | false | 12,053 | cpp | control.cpp | #include <map>
#include <stdexcept>
#include <xtd/drawing/system_colors.hpp>
#include <xtd/drawing/system_fonts.hpp>
#include <xtd/forms/native/application.hpp>
#include <xtd/forms/native/control.hpp>
#include "hdc_wrapper.hpp"
#include "wx_button.hpp"
#include "wx_check_box.hpp"
#include "wx_control.hpp"
#include "wx_... |
6d72d2132939403f8bf9bbdd4d72442ce221792b | da3c59e9e54b5974648828ec76f0333728fa4f0c | /messagingappbase/ncnlist/src/CVoiceMailManager.cpp | 22d9c3f171aa45861c823dda83a8b6461c911352 | [] | no_license | finding-out/oss.FCL.sf.app.messaging | 552a95b08cbff735d7f347a1e6af69fc427f91e8 | 7ecf4269c53f5b2c6a47f3596e77e2bb75c1700c | refs/heads/master | 2022-01-29T12:14:56.118254 | 2010-11-03T20:32:03 | 2010-11-03T20:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,993 | cpp | CVoiceMailManager.cpp | /*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.h... |
c4b5a9fadce3aa0f9367b91cbce6b6d7341f26d6 | c43039d34f392903f4c9215b56b30ad0e1e92340 | /include/svgplotlib/plotlib_core.h | a9d7f91d41f1998e3cd4c9677785d20a4ac990cf | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | suluke/svgutils | 690638ba536785d2a308a8a9ac6f04c397b5ed3d | 1cbea7eb71e69aa271bb6aae7ab664bec8e4dad3 | refs/heads/master | 2020-04-01T10:34:07.543931 | 2018-11-25T18:30:39 | 2018-11-25T18:30:39 | 153,122,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,021 | h | plotlib_core.h | #ifndef SVGPLOTLIB_PLOTLIB_CORE_H
#define SVGPLOTLIB_PLOTLIB_CORE_H
#include "svgutils/css_utils.h"
#include "svgutils/svg_writer.h"
#include <functional>
#include <optional>
#include <string_view>
namespace plots {
template <typename WriterTy>
struct PlotWriter : public svg::ExtendableWriter<PlotWriter<WriterTy>> {
... |
068f79615e1ac79fd5914fad1f743bb85c39d714 | f0dbabac157fc79094062513cfcc28be253d9b70 | /modules/trustchain/test/test_actions_usergroupaddition.cpp | fcbee48209f72f5c35365edfbbed8b64673e252f | [
"Apache-2.0"
] | permissive | TankerHQ/sdk-native | 4c3a81d83a9e144c432ca74c3e327225e6814e91 | c062edc4b6ad26ce90e0aebcc2359adde4ca65db | refs/heads/master | 2023-08-19T02:59:40.445973 | 2023-08-09T12:04:46 | 2023-08-09T12:04:46 | 160,206,027 | 20 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 25,835 | cpp | test_actions_usergroupaddition.cpp | #include <Tanker/Trustchain/Actions/UserGroupAddition.hpp>
#include <Tanker/Crypto/Crypto.hpp>
#include <Tanker/Serialization/Serialization.hpp>
#include <Tanker/Trustchain/UserId.hpp>
#include <Helpers/Buffers.hpp>
#include <catch2/catch_test_macros.hpp>
using namespace Tanker;
using namespace Tanker::Trustchain;
... |
190af12493f8e50f52af9188bb193025584e8957 | 8f7c8beaa2fca1907fb4796538ea77b4ecddc300 | /ozone/wayland/seat.cc | d6e79560c192ef01354a9c2af519fb76aba0872e | [
"BSD-3-Clause"
] | permissive | lgsvl/chromium-src | 8f88f6ae2066d5f81fa363f1d80433ec826e3474 | 5a6b4051e48b069d3eacbfad56eda3ea55526aee | refs/heads/ozone-wayland-62.0.3202.94 | 2023-03-14T10:58:30.213573 | 2017-10-26T19:27:03 | 2017-11-17T09:42:56 | 108,161,483 | 8 | 4 | null | 2017-12-19T22:53:32 | 2017-10-24T17:34:08 | null | UTF-8 | C++ | false | false | 4,199 | cc | seat.cc | // Copyright 2013 The Chromium Authors. All rights reserved.
// Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/wayland/seat.h"
#include "base/logging.h"
#if defined(USE_DATA_DEVICE_MANAGER)
... |
76d8b7eadceec70eeaf20651919b7d7344a579ee | 087feb02b7c78067524a68b593c012f6725b88c1 | /Relocation/ASTRelocation.cpp | 9d1bbd0999d34b135825de7568cf10557160288c | [] | no_license | ginusxiao/AutoStorageTiering | 70b0e6b3e6d8bf430ce54523181b43e2e63a6e8a | 8b112d40836eb373fbc4f84eb385deb181e56ed2 | refs/heads/master | 2023-01-19T03:09:32.322569 | 2020-11-14T04:40:25 | 2020-11-14T04:40:25 | 312,745,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,595 | cpp | ASTRelocation.cpp | #include "OSSCommon/Logger.hpp"
#include "AST/ASTLogicalConfig.hpp"
#include "AST/ASTIO.hpp"
#include "AST/ASTSwapOut.hpp"
#include "AST/ASTHeatDistribution.hpp"
#include "AST/ASTAdvice.hpp"
#include "AST/ASTPerformance.hpp"
#include "AST/ASTPlan.hpp"
#include "AST/ASTArb.hpp"
#include "AST/ASTMigration.hpp"
#include "... |
270203a7d2d677994dd37cff2890f6ce3c03e0d9 | aa4733448f2768f936ae98379fa6555025e37dff | /Source/MobileTV/CMCC/Utility.cpp | a12eb43ca0921cb1a8ba2adf7efe43d40e052e80 | [] | no_license | schreibikus/nmPlayer | 0048599d6e5fc60cc44f480fed85f9cf6446cfb4 | 1e6f3fb265ab8ec091177c8cd8f3c6e384df7edc | refs/heads/master | 2020-04-01T20:34:56.120981 | 2017-05-06T08:33:55 | 2017-05-06T08:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,246 | cpp | Utility.cpp | /************************************************************************
* *
* VisualOn, Inc. Confidential and Proprietary, 2003 - 2009 *
* *
************************************************************************/
/*********************************************************... |
cac5f2722b8386466480214097e7003f72d6a62e | fd09451d2f030609f4a9fc44c2a2bf8f41c17317 | /src/external/murmur3.cpp | 5047a39f1a3f767044bbc2d562a6c275aa5febbf | [] | no_license | mghosh4/CompactionSimulator | c870e126e43c251f3d73df6dc54bb779ab35a9e0 | 3390b27c9a92565fdc37f81206063d1118e85247 | refs/heads/master | 2021-01-23T16:40:02.007653 | 2014-12-31T04:45:55 | 2014-12-31T04:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | murmur3.cpp | #include <stdio.h>
#include "murmur3.h"
void MurmurHash3Wrpr( const void * key, int len, uint32_t seed, void * out )
{
MurmurHash3_x86_32(key, len, seed, out);
}
|
2a9f18ac3b06ae3ee660d6cd227ae2f915fbe3ea | 48021421682126f38de1ae3af13c64bc83f6d250 | /onion-path-finder/src/utils/oracle-network.h | 8a69fda68207990f9483c3107ab784ead351d640 | [
"Apache-2.0"
] | permissive | AdrianAntunez/DTN-Onion-Routing-NS-3 | c6346972a8347ad60b8e5900b3cc6927d170937e | 91e16826c0fe55dbdcd81473ab3c4ca0b3ede244 | refs/heads/master | 2021-05-01T19:43:20.021542 | 2016-01-19T14:07:39 | 2016-01-19T14:07:39 | 32,728,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | h | oracle-network.h | /**
* @copyright
* Copyright (C) 2016 Universitat Autònoma de Barcelona
* Department of Information and Communications Engineering
* @file oracle-network.h
* @author Adrian Antunez
* @date Created on: 26 May 2015
*/
#ifndef ORACLENETWORK_H_
#define ORACLENETWORK_H_
#include "graph-util.h"
/**
* @brief The Or... |
ea7316f6a9afaf30fa0d407dfe1e3421e78423a7 | 60265a3101d48d796ee9755a4c025ed3f4f3b839 | /algorithms/merge_sort.cpp | 8b4678f12386252e70f08c22095619d0cb87ec1f | [] | no_license | khasanovaa/algorithms_and_data_structures | 4243bcc247b5e6a2e0a55e81d712d1939461f83a | da4d8b3789028dc625d2d75c4fec3bc83a609217 | refs/heads/master | 2021-07-01T19:29:54.511304 | 2020-02-12T08:23:06 | 2020-02-12T08:23:06 | 151,773,853 | 3 | 1 | null | 2020-10-01T06:26:29 | 2018-10-05T20:21:35 | C++ | UTF-8 | C++ | false | false | 1,128 | cpp | merge_sort.cpp | #include <iostream>
#include <vector>
using namespace std;
template<typename It, typename d>
d merge(It begin1, It end1, It begin2, It end2, d first) {
while (begin1 != end1 && begin2 != end2) {
if (*begin1 < *begin2) {
*first = *begin1;
begin1++;
}
else {
*first = *begin2;
begin2++;
}
first++;
... |
f51b60297c31e42321405056d1e8318ebfd15aaa | 8ec968525f3551ce5550c22edc013d62a2dc44cf | /leetcode submissions/algorithms/Continuous Subarray Sum.cpp | 076236de93ca7de7ceb7f4386dd22bb21b90277d | [] | no_license | manishankarbalu/CampusPlacement | 5f0abec05ee78462b34d20c3c6456320dadade16 | 905fb2ece09b2314b58b5d5eae4920bcf2c07a62 | refs/heads/master | 2023-05-30T20:57:59.140557 | 2020-03-19T10:05:04 | 2020-03-19T10:05:04 | 115,243,914 | 4 | 1 | null | 2020-03-19T10:05:07 | 2017-12-24T06:11:36 | C++ | UTF-8 | C++ | false | false | 935 | cpp | Continuous Subarray Sum.cpp | class Solution {
public:
bool func1(vector<int>& nums, int k,int l,int r)
{
if(r-l<2)
return false;
int sum=0;
for(int i=l;i<r;i++)
sum+=nums[i];
if(sum==0 && k==0) return true;
else
if(sum!=0 && k==0) return false;
e... |
985a2613ae607e233a4bb2cf4de909f8df982ad2 | fadf7624a65da71173b3d5dea510fc50ecbe7321 | /Dialog/Dialog_ModelInformation.h | 149d4b613866bc14c4bf66e958ec6ec3389f7c23 | [
"MIT"
] | permissive | aCrazyCoder/Finite_Element | a329fd8c5874606d050925a8db07ae434e5a0c08 | 42d296a88ab23df62955569261c4948dbd93d79b | refs/heads/master | 2020-03-29T18:40:50.041793 | 2018-09-25T07:47:33 | 2018-09-25T07:47:33 | 150,226,224 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | h | Dialog_ModelInformation.h | #ifndef DIALOG_MODELINFORMATION_H
#define DIALOG_MODELINFORMATION_H
/*
* brief: 模型信息对话框
* auther: Shao Xingchen
* version: v1.0
* date: 2018年1月4日
* note:
*/
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLayout>
#include <QString>
#include <QIcon>
#include "Global/Global_Variable... |
c29fe90695d17003c603892fab79bf4e87c04e26 | 48c3101da2a27e0d46086b51f67f9a96a17ced68 | /cpp/flags.h | e895cfa455858e9b3211d57f920b5c5180684a62 | [
"ISC"
] | permissive | jlguenego/node-expose-sspi | 5e5aead713ab5fc342cbd9b9e342eda7ce996ff6 | ebbe3046e6b346ee7cf9cfd6c6d0dc3b72fb115e | refs/heads/master | 2023-01-24T02:51:22.270949 | 2023-01-18T11:39:59 | 2023-01-18T11:39:59 | 234,580,010 | 114 | 22 | ISC | 2023-01-18T11:40:00 | 2020-01-17T15:44:04 | C++ | UTF-8 | C++ | false | false | 1,144 | h | flags.h | #include <string>
#include "napi.h"
// context flag
#define GETFLAG_EXTENDED_NAME_FORMAT 0
#define ACCESS_TOKEN_FLAGS 1
#define ASC_REQ_FLAGS 2
#define ISC_REQ_FLAGS 3
#define ASC_RET_FLAGS 4
#define ISC_RET_FLAGS 5
#define SECURITY_DREP_FLAGS 6
#define CREDENTIAL_USE_FLAG 7
#define ADS_AUTHENTICATION_FLAGS 8
#define... |
e408702245f249f29de59240e7e493f20051e24e | 3a8408aefe35580e4c1f6a4ac3d22c8bf41827af | /kuka/other/robot_interface_definition/include/robot_interface_definition/robot_interface.h | e9b68b34b855942f5032a4e732a918ade158ae70 | [] | no_license | Hankfirst/neurobots_demonstrator | df9cc2b44785da6866fb8161bd9ac4811f886009 | b77fadce8054163899ff7ca65d2d4417441649f0 | refs/heads/master | 2021-09-24T22:04:15.493990 | 2018-10-15T13:27:20 | 2018-10-15T13:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | h | robot_interface.h | /*
* Copyright (c) 2016 Daniel Kuhner <kuhnerd@informatik.uni-freiburg.de>.
* All rights reserved.
*
* Created on: Jun 9, 2016
* Author: Daniel Kuhner <kuhnerd@informatik.uni-freiburg.de>
* Filename: robot_interface.h
*/
#ifndef ROBOT_INTERFACE_H_
#define ROBOT_INTERFACE_H_
#include <Eigen/Geometry>
#... |
81848de696552e6737ab6fdfaa380155de43e498 | b7b8083156d2bd7502a1d38d709c408cf0c917ef | /semester1/hw2/2.2/main.cpp | d7ed427f5a4da9799d5a8a4064163ec37be6b275 | [] | no_license | rprtr258/spbsu-programming | 7e74f24ffbda4952409ddcef2f94b6430641a592 | 43123373a11c91a4fe79eadde17b6ff6677ebcce | refs/heads/master | 2022-01-11T21:37:45.034246 | 2019-06-10T23:58:54 | 2019-06-10T23:58:54 | 105,365,570 | 0 | 0 | null | 2019-06-10T08:14:37 | 2017-09-30T11:31:55 | Java | UTF-8 | C++ | false | false | 569 | cpp | main.cpp | #include <stdio.h>
int pow(const int &base, const int °ree) {
if (degree == 0)
return 1;
if (degree == 1)
return base;
if (degree == 2)
return base * base;
if (degree % 2 == 1)
return base * pow(pow(base, degree / 2), 2);
// degree % 2 == 0
return pow(pow(base... |
71ae6ea25e66ca440895871b5307830f7df0b335 | afd455d3a5a2b8a0f3d57f80aec1861846e9b958 | /draft/comunication_client_serveur/client/co_client/co_client/debug.h | 16e320c97a1e20a975322d8bddcfba66767caeaa | [] | no_license | martiall99/Pro3600-RPG- | d28dd9da62445108c7d45eb196889baad991159a | 0b344f407acc9216766c89eb0ff4fdcb774c4952 | refs/heads/master | 2021-01-17T17:00:32.702724 | 2016-05-14T13:20:50 | 2016-05-14T13:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | h | debug.h | #ifndef debug
#include <iostream>
#include <string>
void debug(std::string mess, bool stop = false);
std::string coupeChaine(std::string &ch, char a);
#endif // !debug |
3eb5a90292be5d3be5127248b5f0f0007fc298d9 | 6886fbbee272b224ef929e96200d516e43c07fc1 | /libraries/arduino_NFC/examples/read_mifare/read_mifare.ino | 011ec8c229f112fbdfe8eb58045f8a28f36577d1 | [] | no_license | manorius/Arduino | db91b67e6e8ec5f39ce3ed2e6785e57cef469a8f | ca971a49d27089405200819f85ff5d9b77dd0f7e | refs/heads/master | 2021-01-24T03:43:54.646095 | 2017-03-04T17:40:10 | 2017-03-04T17:40:10 | 44,327,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,747 | ino | read_mifare.ino |
/**************************************************************************/
/*!
@file read_mifare.pde
@author odopod thisispete
@license
This file shows how to initialize either the SPI or I2C versions of the
pn532 development sheilds and read a mifare tag.
*/
/********************... |
bbbfa1287760f5e2ccb199a5ffce11f42919e6fd | 102beccb4a386876dfeaea493209537c9a0db742 | /RexLogicModule/Environment/PrimMesher.cpp | 8a7d170b7ee19958ec2d7efbd25a2efecfb10677 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Chiru/naali | cc4150241d37849dde1b9a1df983e41a53bfdab1 | b0fb756f6802ac09a7cd9733e24e4db37d5c1b7e | refs/heads/master | 2020-12-25T05:03:47.606650 | 2010-09-16T14:08:42 | 2010-09-17T08:34:19 | 1,290,932 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 63,534 | cpp | PrimMesher.cpp | // For conditions of distribution and use, see copyright notice in license.txt
// Based on PrimMesher project, converted from C# to C++
/*
* Copyright (c) Contributors
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
c0f476b7b080033e5ce3bf25eaa5aadbfb852b35 | b179ee1c603139301b86fa44ccbbd315a148c47b | /engine/effects/source/TeleportEffect.cpp | 28e27e53f951120746dc4a304486282fe371e230 | [
"MIT",
"Zlib"
] | permissive | prolog/shadow-of-the-wyrm | 06de691e94c2cb979756cee13d424a994257b544 | cd419efe4394803ff3d0553acf890f33ae1e4278 | refs/heads/master | 2023-08-31T06:08:23.046409 | 2023-07-08T14:45:27 | 2023-07-08T14:45:27 | 203,472,742 | 71 | 9 | MIT | 2023-07-08T14:45:29 | 2019-08-21T00:01:37 | C++ | UTF-8 | C++ | false | false | 5,700 | cpp | TeleportEffect.cpp | #include <boost/range/adaptors.hpp>
#include <boost/range/algorithm.hpp>
#include "Conversion.hpp"
#include "Creature.hpp"
#include "CreatureProperties.hpp"
#include "EffectProperties.hpp"
#include "EffectTextKeys.hpp"
#include "Game.hpp"
#include "Log.hpp"
#include "MapProperties.hpp"
#include "MapUtils.hpp"
#include ... |
38366320a35d16f0d132d2fae9dc796f75446017 | 6325cd777d23a7b6c94918bc17d927e91c65ecfe | /stl/algorithm/test_algorithm.cpp | 9a0db159c4c171eab9c14de4fd134e881e900f64 | [] | no_license | ShodanHo/code-and-tools | c3448e3cd20d38c3c95ac3c981cc5de17dcbf8ce | 771ffd0800dce89221eebaea76638efc0118b715 | refs/heads/master | 2021-01-21T00:35:52.691015 | 2016-04-27T15:44:46 | 2016-04-27T15:44:46 | 23,016,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,089 | cpp | test_algorithm.cpp | /*************************************************************************/
/* */
/* Project: Standard Template Library. */
/* */
/* Description: ... |
48110abf3ce93e1a17c22323deca27a73fb9932a | 8775fa748f40950d10122016ff4fe44c03f4e0c5 | /polygonRSA/NeighbourGrid.h | ae1f666c84df2c209e13fa8275233af412767230 | [] | no_license | misiekc/polygonRSA | 2f7561a524d08ab384ea8da8b784761085bafc95 | f286d80b9a0aec672085a6e4c7adb16d2abc0a4e | refs/heads/master | 2021-06-24T06:20:33.419569 | 2021-01-06T15:12:05 | 2021-01-06T15:12:05 | 186,135,672 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,391 | h | NeighbourGrid.h | /*
* NeighbourGrid.h
*
* Created on: 07.03.2017
* Author: Michal Ciesla
*/
#ifndef NEIGHBOURGRID_H_
#define NEIGHBOURGRID_H_
#include <vector>
#include <cmath>
#include <algorithm>
#include "BoundaryConditions.h"
#include "Utils.h"
template <typename E>
class NeighbourGrid{
private:
double linearSize;... |
8651457be00c5b2a172646580c0f661ebadad693 | 0fa1152e1e434ce9fe9e2db95f43f25675bf7d27 | /src/modules/mavlink/streams/ODOMETRY.hpp | 60b8564bc2adc6e0e33794635a3f35b83399d559 | [
"BSD-3-Clause"
] | permissive | PX4/PX4-Autopilot | 4cc90dccc9285ca4db7f595ac5a7547df02ca92e | 3d61ab84c42ff8623bd48ff0ba74f9cf26bb402b | refs/heads/main | 2023-08-30T23:58:35.398450 | 2022-03-26T01:29:03 | 2023-08-30T15:40:01 | 5,298,790 | 3,146 | 3,798 | BSD-3-Clause | 2023-09-14T17:22:04 | 2012-08-04T21:19:36 | C++ | UTF-8 | C++ | false | false | 5,470 | hpp | ODOMETRY.hpp | /****************************************************************************
*
* Copyright (c) 2021-2022 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
a342c689855b9a705df685c7642dc8690ac6c954 | 3ee0a38604348183ece0fd53a9d0b809db92d838 | /Screen.cpp | bca1274072c485cffb0e5d4b8a861b47f9d61d95 | [] | no_license | f4z3r/particle_explosion | 2b8ea48b6f65bf4d2ec14937c2d94b47fc1bc19a | 37a6ab37ab0e680ad58b68fec7f822e7a9b23f3b | refs/heads/master | 2021-07-04T15:11:04.300409 | 2017-09-28T18:39:07 | 2017-09-28T18:39:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,879 | cpp | Screen.cpp | // Name Screen.cpp
#include "Screen.hpp"
namespace jhb {
Screen::Screen():
m_window(NULL), m_renderer(NULL), m_texture(NULL), m_buffer1(NULL),
m_buffer2(NULL){
}
bool Screen::init(const char* title) {
if(SDL_Init(SDL_INIT_VIDEO) < 0) {
return false;
}
// Initialise window
m_wind... |
5ebd585413d493b11b320ebfac976864cc10ce1d | 23d54380b1652c5f464fa656d1e70b72968956c1 | /SFML_HungryHoney2/SFML_HungryHoney2/PlayerCharacter.h | 6f97d71138a9641a15803a89142dbdb6f42ed3ca | [] | no_license | wakcs/HungryHoney | 6559516b7b93bfebc0e902922ea9c5bb97403c84 | 2f802012d7f2cdb02b1ebff0a7332df233781f93 | refs/heads/master | 2021-05-03T08:52:43.251008 | 2016-05-09T15:51:02 | 2016-05-09T15:51:02 | 54,651,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | h | PlayerCharacter.h | #pragma once
#include "Character.h"
class PlayerCharacter :
public Character
{
public:
bool blockTop, blockBottom, blockLeft, blockRight;
PlayerCharacter();
PlayerCharacter(Texture*charachterTexture, Vector2f position, SoundBuffer* bufHit, Texture* suitTexture, Texture*weaponTexture, float maxSpeed, float healthP... |
c3fc43e8dd0a0d4c9dbf6221f1e47ba34e87bd04 | bcd32907dc7b292350371ac5cc9b67bd3b7a99c2 | /development/C++/samples/server/BisDemo/DeviceElement.h | cd0f15719511b17abed76e2d7f3ce7b08ce00e6f | [
"MIT"
] | permissive | SoftingIndustrial/OPC-Classic-SDK | c6d3777e2121d6ca34da571930a424717740171e | 08f4b3e968acfce4b775299741cef1819e24fda1 | refs/heads/main | 2022-07-28T14:53:00.481800 | 2022-01-17T13:58:46 | 2022-01-17T13:58:46 | 335,269,862 | 41 | 16 | MIT | 2022-01-17T15:11:39 | 2021-02-02T11:43:04 | C++ | UTF-8 | C++ | false | false | 4,252 | h | DeviceElement.h | #ifndef _DEVICEELEMENT_H_
#define _DEVICEELEMENT_H_
#include "BaseDaElement.h"
using namespace SoftingOPCToolboxServer;
//-----------------------------------------------------------------------------
// DeviceElement
//-----------------------------------------------------------------------------
class DeviceElemen... |
7eac3992078b1d483a91574051ec2ef41a913603 | dcf14554414c5f053bfa1b4a4e3c5084bf89ef7f | /modules/core/src/MetaObject/thread/Mutex.hpp | 3ef179787aa77f6a71948a71f76e24d0f8a4eb8b | [
"MIT"
] | permissive | dtmoodie/MetaObject | 2eab87e97423a49a6910586e1cf828da4a80ec32 | 8238d143d578ff9c0c6506e7e627eca15e42369e | refs/heads/master | 2023-03-09T09:03:25.555934 | 2020-04-26T02:27:05 | 2020-04-26T02:27:05 | 63,189,210 | 2 | 3 | MIT | 2019-12-05T04:41:19 | 2016-07-12T20:10:17 | C++ | UTF-8 | C++ | false | false | 2,354 | hpp | Mutex.hpp | #ifndef MO_CORE_MUTEX_HPP
#define MO_CORE_MUTEX_HPP
#include <MetaObject/core.hpp>
#include <chrono>
#include <memory>
#include <mutex>
namespace boost
{
namespace fibers
{
class recursive_timed_mutex;
class recursive_mutex;
class mutex;
} // namespace fibers
} // namespace boost
... |
64bf57b9e462d6231cee406149f9ac05052b7b18 | ab9147e5209b5b5b3be74eaa50a615ec341e4aa5 | /Uebung6/uebung06/point.cc | 6f07c8b89d82d3b6b409fd912bd74e46341a16c1 | [] | no_license | M0M097/ipk-Uebungen | 075583cc1a251235cbd3c35ee69fd850d9b3884d | 5a21480005731db5d64c257491a5ffd9fead39af | refs/heads/main | 2023-02-22T00:24:14.742065 | 2021-01-23T10:54:21 | 2021-01-23T10:54:21 | 315,058,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cc | point.cc | #include "point.hh"
Point::Point() : _x(0), _y(0){}
Point::Point(double a, double b) : _x(a), _y(b){}
double Point::x() const
{
return _x;
}
double Point::y() const
{
return _y;
}
|
ad8cf9f875a0f4491f93e1843f604fbdc0a1479b | 64178ab5958c36c4582e69b6689359f169dc6f0d | /vscode/wg/sdk/FCameraFocusSettings.hpp | bc8436042cbfd3d6cd293b7d11f9344524168ed2 | [] | no_license | c-ber/cber | 47bc1362f180c9e8f0638e40bf716d8ec582e074 | 3cb5c85abd8a6be09e0283d136c87761925072de | refs/heads/master | 2023-06-07T20:07:44.813723 | 2023-02-28T07:43:29 | 2023-02-28T07:43:29 | 40,457,301 | 5 | 5 | null | 2023-05-30T19:14:51 | 2015-08-10T01:37:22 | C++ | UTF-8 | C++ | false | false | 3,282 | hpp | FCameraFocusSettings.hpp | #pragma once
#include "ECameraFocusMethod.hpp"
#include "FCameraTrackingFocusSettings.hpp"
#include "FColor.hpp"
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif
namespace PUBGSDK {
struct alignas(1) FCameraFocusSettings // Size: 0x38
{
public:
TEnumAsByte<enum ECameraFocusMethod> FocusMethod; /* Of... |
5b33423391ac50745727c0b5b4f14d7564c17ded | 5f552344baa57f868f167b0c0a94e7657cdc78f4 | /lab11/lab11.cpp | 550ccaca489b0eeec42b5e5825f6a8f09b40e910 | [] | no_license | rslater003/RileySlater-CSCI20-SPR2017 | dd93b2c09c3e9900595b209e407c7b923637b6dd | 85199e6ef98a663104a53d69ad1f0d00cfa6fdd2 | refs/heads/master | 2021-01-11T14:34:24.146913 | 2017-05-09T21:56:35 | 2017-05-09T21:56:35 | 80,164,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | lab11.cpp | /* 1. Computer picks a random number between 1 and 10. Set an integer to points equal to 10.
2. User makes a random guess and based on that guess the computer either
A. Tells the user the number is higher
B. Tells the user the number is lower
C. Tells the user the number is correct
3. I... |
59fd9ab650344759ecdbff23e3fc870717bf28ce | 8c76b2293240579b00661448032b530cec2e8ab8 | /03.06.2015/03.06.2015/03.06.2015View.h | f3db527921bff5083460640a429b339c13e3f7d4 | [] | no_license | Marezen/GDI | ba29552bf9c60d661ac6b6e057c960930d152866 | 8332ea2d558219bc06de800e9c833355d4448a18 | refs/heads/master | 2021-06-27T17:11:00.274313 | 2021-03-17T01:07:36 | 2021-03-17T01:07:36 | 221,233,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | h | 03.06.2015View.h |
#pragma once
#include "DImage.h"
class CMy03062015View : public CView
{
protected: // create from serialization only
CMy03062015View() noexcept;
DECLARE_DYNCREATE(CMy03062015View)
// Attributes
public:
CMy03062015Doc* GetDocument() const;
DImage *background; // pozadina novcica
// Operations
public:
// Overrides... |
3421392676652e71704b1bb50c570304ba8d6497 | da66e463a924d8412c343033dbcd143e197c5c5c | /src/mtf.cc | 5e1d905ea39d0531f534595e266390922af8a2d5 | [] | no_license | xdlaba02/MUL | c7ca944eb2b0272c57aeb83cfa82edbe3b57a4c0 | a988d04977b43093919159ac89f76713d89d00cc | refs/heads/master | 2023-02-13T16:24:47.953789 | 2021-01-08T13:33:39 | 2021-01-08T13:33:39 | 327,911,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | cc | mtf.cc | /**
* @file mtf.cc
* @author Drahomír Dlabaja (xdlaba02)
* @date 23. 4. 2020
* @brief Funkce pro mtf transformaci.
*/
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include "mtf.h"
void update_base(std::vector<uint8_t> &dictionary, uint8_t i) {
auto it = std::begin(dictionary) + i;
s... |
c237906793d4531b3a51c1e178c4f6ce41d203b5 | 29ca69170c7133d506e3f519a9c358ec949ed3ca | /project4/Schedule.h | fed7424c18111806c4377801ba858c6263d71bc4 | [] | no_license | mwleeds/cs360 | be057692decea33091bacd46f83e656336f1bfb4 | 7292121747c8871d6f7fc94781ae7a6ed253cc1f | refs/heads/master | 2021-01-17T07:39:57.423305 | 2015-04-10T13:59:33 | 2015-04-10T13:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | h | Schedule.h | // File: Schedule.h
// Author: Matthew Leeds
// Last Edit: 2015-03-11
#pragma once
#include "Activity.h"
typedef unsigned int uint;
using namespace std;
class Schedule {
public:
Schedule(); // reads in _endTime and _numActivities
~Schedule();
void recordActivities(); // reads all activit... |
7000712ed512bbc18ed466e03585264d6ef66da3 | 98f92b1375d23823a4f36136b7762ac79d33e5a4 | /src/string_cache.hpp | 256b96f11a2b9b2c7dd4a15e2cf14a63bcae926f | [
"MIT"
] | permissive | cooky451/pingstats | d60f5e311c30e35da65a18b6df121d081430133f | ed908ff6ed8fed40623c9eb8d4ae255c3c188061 | refs/heads/master | 2021-01-15T15:25:51.179585 | 2017-09-22T04:56:58 | 2017-09-22T04:56:58 | 50,164,393 | 19 | 5 | null | 2017-09-23T22:19:13 | 2016-01-22T07:08:20 | C++ | UTF-8 | C++ | false | false | 4,683 | hpp | string_cache.hpp | /*
* Copyright (c) 2016 - 2017 cooky451
*
* 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 restriction, including without limitation the rights
* to use, copy, modify, merge, p... |
b71f563082c89756b8c47dca2276ff1222c9a613 | addf488ba98b8d09b0c430779ebd2649d29a3fea | /kdepim/kresources/blogging/xmlrpcjob.cpp | 76bee44f804b6d96b58f98c797a442cb994edc42 | [] | no_license | iegor/kdesktop | 3d014d51a1fafaec18be2826ca3aa17597af9c07 | d5dccbe01eeb7c0e82ac5647cf2bc2d4c7beda0b | refs/heads/master | 2020-05-16T08:17:14.972852 | 2013-02-19T21:47:05 | 2013-02-19T21:47:05 | 9,459,573 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,692 | cpp | xmlrpcjob.cpp | /* This file is part of the KDE libraries
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
Based on the davjob:
Copyright (C) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
XML-RPC specific parts taken from the xmlrpciface:
Copyright (C) 2003 - 2004 by Frerich Raabe <raabe@kde.org>
... |
528dfed076a85b4989f2ac4f3b37a9297d3413c6 | a362e94fa7babfe78650c81f2fc09fad64f66503 | /src/wrappers/wmutex.h | 8ccd8d6ae476dd5220268cc436117d524922c470 | [] | no_license | Nopik/nrf_radio_crash | 7c283d7b0848cc8234248f2a8eb83454d7ea9c29 | c15fa621f1324d9472968e54f3f5b54d54d8af29 | refs/heads/master | 2020-04-01T02:18:34.281222 | 2018-10-15T09:28:47 | 2018-10-15T09:28:47 | 152,773,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,497 | h | wmutex.h | #ifndef NODE_THREAD_CMUTEX_H
#define NODE_THREAD_CMUTEX_H
#include "FreeRTOS.h"
#include "semphr.h"
namespace Wrappers {
class MutexBase {
public:
bool Take(TickType_t aTimeout = portMAX_DELAY);
bool TakeFromISR(BaseType_t *xHigherPriorityTaskWoken = nullptr);
bool Give();
bool GiveFromISR(BaseT... |
5960cafe7f89fe26a502e6215ac63dd1adca3dd0 | 7c2b0060356c4d310f5cca7c8b29ee22f4fca506 | /myexamples/imProcessingBench/bench_matching.cpp | 8818c53d810786563b16b64599f89c20c298e0fd | [] | no_license | contaconta/grpc_test | eeda6c4837f9bcc98529c5e1643083199ace492a | 8f47a1f4e8cdc1f8bc3a2002ab7d557ac28f4bc7 | refs/heads/master | 2021-01-11T05:50:12.535505 | 2016-10-01T04:01:44 | 2016-10-01T04:01:44 | 69,648,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | bench_matching.cpp | //Template Matching
#include <iostream>
#include <vector>
#include <chrono>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#define NTIMES 1000
using namespace std;
using namespace cv;
int main(int argc, char* argv[]){
Mat img,tmp,result;
Point top_left;
double proccessingTime=0;
... |
dcfe722524fc63bc3d0bc80540c01b028697cf75 | a4f955e84880c1a110e65484187d221c54b7c799 | /ch15_oop/class.cpp | c25b55057ec1521eb38c8163185ea7aa88d06f52 | [] | no_license | kk4728/CppPrimer5th | 5fe6a1997002ed8e8ef3c0c0a508666b403956af | 7fa2d6d7957fe0a8b53a2cbfe71e63babb16cdee | refs/heads/master | 2020-04-24T18:12:12.155711 | 2019-04-23T08:25:04 | 2019-04-23T08:25:04 | 172,173,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,393 | cpp | class.cpp | #include <iostream>
using namespace std;
class A {
public:
A() = default;
//A& operator=(const A& ) = default;
virtual ~A() =default;
virtual void net_work() {
cout << "A: net_work() " << endl;
};
void print() {
cout << "m:addr: " << &m << endl;
cout << "A::a:addr: " << &a << endl;... |
50b5e31938e6cf01e298867efaece3268affe7e5 | 366d1b9a999aaa856a325ae80268af20b995babe | /src/shogun/preprocessor/SortWordString.cpp | 45a0b62f75b8651baa7e5034ffdb1b947a5979b3 | [
"BSD-3-Clause",
"DOC",
"GPL-3.0-only"
] | permissive | karlnapf/shogun | bc3fcbeef377b8157bd8a9639211c2667b535846 | eebce07a4309bb7e1d3a4f0981efd49e687533b6 | refs/heads/develop | 2020-04-05T22:46:38.369312 | 2019-07-09T08:59:14 | 2019-07-09T08:59:14 | 4,420,161 | 1 | 1 | BSD-3-Clause | 2018-09-04T10:50:41 | 2012-05-23T13:12:40 | C++ | UTF-8 | C++ | false | false | 1,323 | cpp | SortWordString.cpp | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Soeren Sonnenburg, Evan Shelhamer
*/
#include <shogun/preprocessor/SortWordString.h>
#include <shogun/features/Features.h>
#include <shogun/features/StringFeatures.h>
#include <shogun/mathematics/Math.h>
using namespace ... |
020bbac24f35f2bf97705d258c965c0252389625 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /rcrandall-segment/ReadWritePBM.h | dca5d8c1f34fbd162218b2541a136009103c3d06 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | C++ | false | false | 419 | h | ReadWritePBM.h | // R. Crandall
//
// Functions to read/write NetPBM image files
#ifndef READ_WRITE_PBM_H
#define READ_WRITE_PBM_H
#include "Image.h"
#include <fstream>
#include <string>
#include <iostream>
#include <cstdlib>
using namespace std;
// Read/write a P5 image (binary PGM data)
Image<unsigned char>* ReadP5image(string ... |
1aca91844f81b7356ad55d88ec2d43c13677d4c2 | 8f1d29f843158f191fa28a6987aefdaeb0c5159e | /asteroids/src/asteroids.cpp | 13b881df35d144acd2a9ff4f172c3ceeb0d4601e | [] | no_license | Small-Embedded-Systems/assignment-2-asteroids-jackmullins06 | b58be1f39e86f191631e494db5e8d5c10703d4b8 | abdebec78b1b473678767c8eec97f601ac6a8115 | refs/heads/master | 2021-01-24T18:27:24.527209 | 2017-05-14T22:05:03 | 2017-05-14T22:05:03 | 84,449,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | cpp | asteroids.cpp | /* Asteroids
Sample solution for assignment
Semester 2 -- Small Embedded Systems
Dr Alun Moon
*/
/* C libraries */
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>
/* hardware platform libraries */
#include <display.h>
#include <mbed.h>
/* Main game eleme... |
0df11b79db36b818c3ee5a1f05b5d4d48544f8af | 1b4ff18ee477ea9e07a9032c6d5712f5f44a7b6e | /Cpf/Plugins/Platform/Concurrency/UnitTest/Test_Scheduler_Opcode_SharedAddressRegister.cpp | adee2201f7cb579110c26655bb478d69104bc549 | [
"MIT"
] | permissive | All8Up/cpf | df05f5425d68a1b910e22f9b982edf037fce8809 | 81c68fbb69619261a5aa058cda73e35812ed3543 | refs/heads/master | 2021-09-23T12:18:24.989618 | 2017-10-31T03:19:15 | 2017-10-31T03:19:15 | 81,844,814 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | Test_Scheduler_Opcode_SharedAddressRegister.cpp | //////////////////////////////////////////////////////////////////////////
#include "Configuration.hpp"
#include "gmock/gmock.h"
#include "Concurrency/Scheduler.hpp"
#if 0
TEST(Concurrency, Set_SharedAddressRegister)
{
using namespace CPF;
using namespace Concurrency;
ScopedInitializer<Platform::TimeInitializer> t... |
d9a7c0e724568880b9c1e841e0a53c5077b38bfa | 2a34b0c2779c8220272cd3781a39c5867146b615 | /src/libc/float10/f10enc_get_float.cc | 51613fba1a4b84867b95e294d78e63413a63cced | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | yurydelendik/cloudlibc | f824043879ee7147049eb2bf5b243e7b0b5ac530 | b25d9232b3e5b3757231afdc888d2b9072673917 | refs/heads/master | 2020-04-10T02:42:27.618187 | 2018-12-15T00:53:03 | 2018-12-15T00:53:03 | 160,750,519 | 0 | 0 | NOASSERTION | 2018-12-07T00:43:43 | 2018-12-07T00:43:43 | null | UTF-8 | C++ | false | false | 332 | cc | f10enc_get_float.cc | // Copyright (c) 2015 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#include <common/float10.h>
#include <double-conversion/strtod.h>
float __f10enc_get_float(const char *str, size_t len, int exponent) {
return double_conversion::Strtof(
double_conversion::Vector<const char>(str, len), e... |
87461ee11148b57313f6bcbf9dfd198cd10dd859 | 7d5119d123d65ccf3a2ead8bbb85fc9263acbb7a | /ssl/connector.h | a045df1e5fe7996030b1cc64a9219582f08a5c44 | [] | no_license | LeTobi/tobilib | ce5fd1e86acbbab31f469c3f0fd698209c034077 | cca1f359dac60055f319efa232353ffd9c9f83b3 | refs/heads/stage | 2022-05-09T18:35:06.247528 | 2022-04-03T17:14:30 | 2022-04-03T17:14:30 | 145,462,833 | 0 | 0 | null | 2021-05-24T09:21:58 | 2018-08-20T19:41:27 | C++ | UTF-8 | C++ | false | false | 1,283 | h | connector.h | #ifndef TC_NETWORK_SSL_CONNECTOR_H
#define TC_NETWORK_SSL_CONNECTOR_H
#include <boost/asio.hpp>
#include <memory>
#include <string>
#include "alias.h"
#include "../network/tcp-connector.h"
#include "../network/acceptor.h"
namespace tobilib {
namespace network {
namespace detail {
class SSL_ClientConnector: public... |
1bb7909e5cd8f03a1ff8a2d51b84dcef5125c0c5 | e398e01aa3de2a8da61adcfd3833689ea080f231 | /test/TestClientRepository.cpp | c8beb919a611cfe0492afc6e72ae9e28468304a2 | [] | no_license | agnieszka2018/vehiclesRent | 0391ca88ab4216724f1ff8cfbf5e87fc24a42cf3 | 9ff446ab3763f26e2507963f522748174555ac7c | refs/heads/master | 2020-04-21T07:14:14.884605 | 2019-01-11T00:26:35 | 2019-01-11T00:26:35 | 169,387,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,426 | cpp | TestClientRepository.cpp | //
// Created by pobi on 09.01.19.
//
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include "list"
#include <memory>
#include "model/client/Client.h"
#include "model/repositories/ClientRepository.h"
#include "model/client/Address.h"
#include "model/client/RegularType.h"
#include "model/cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.