text stringlengths 4 6.14k |
|---|
/*
* XML Security Library
*
* globals.h: internal header only used during the compilation
*
* This is free software; see Copyright file in the source
* distribution for preciese wording.
*
* Copyright (C) 2002-2016 Aleksey Sanin <aleksey@aleksey.com>. All Rights Reserved.
*/
#ifndef __XMLSEC_GLOBALS_H__
#defin... |
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
freopen("pinyin.in", "r", stdin);
freopen("pinyin.out","w+",stdout);
int n, type, i, j;
char pinyin[1001];
scanf("%i", &n);
while(n--) {
scanf("%s", pinyin);
type = pinyin[strlen(pinyin) - 1] - '0';
for(i = 0; i < strlen(pinyin) - 1;... |
/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
#include <vector>
#include <string>
#include "socket_header.h"
#include "Interface/Thread.h"
#include "Interface/Pipe.h"
#include "Server.h"
class CServiceWorker;
class IService;
class CServiceAcceptor : public IThread
{
public:
CServiceAcceptor(IService * pService, std::string pName, unsigned short por... |
/* GStreamer
* Copyright (C) <2014> William Manley <will@williammanley.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option)... |
/*
This file is part of the GSM3 communications library for Arduino
-- Multi-transport communications platform
-- Fully asynchronous
-- Includes code for the Arduino-Telefonica GSM/GPRS Shield V1
-- Voice calls
-- SMS
-- TCP/IP connections
-- HTTP basic clients
This library has been developed by Telefónica Digital - P... |
/*
* Copyright (C) 2013 - 2015 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) ... |
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*******... |
/* Copyright (C) 2014 The libxml++ development team
*
* This file is part of libxml++.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... |
#ifndef SAMPLE_H
#define SAMPLE_H
extern const char sample_utf8[];
#endif
|
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... |
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file may be used unde... |
/*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
* Authors: Michael Zucchi <notzed@ximian.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This... |
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2006-2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtLocation module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licen... |
/* API declaration export attribute */
#define AL_API __attribute__((visibility("protected")))
#define ALC_API __attribute__((visibility("protected")))
/* Define to the library version */
#define ALSOFT_VERSION "1.16.0"
#ifdef IN_IDE_PARSER
/* KDevelop's parser doesn't recognize the C99-standard restrict keyword, bu... |
/*
* SD-kortin ajuri
*/
#ifndef _SDCARD_H_
#define _SDCARD_H_
int SD_card_init();
int SD_read_lba(void *buff, unsigned long lba);
#endif
|
/* GStreamer RTP payloader unit tests
* Copyright (C) 2009 Axis Communications <dev-gstreamer@axis.com>
* @author Ognyan Tonchev <ognyan@axis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Soft... |
#pragma once
#include <string>
#include <vector>
#include <memory>
#include <citygml/citygml_api.h>
#include <citygml/vecs.hpp>
#include <citygml/object.h>
namespace citygml {
class LinearRing;
/**
* @brief The TextureCoordinates class describes a mapping of texture coordinates to the vertices of a li... |
/* workaround for building with old glibc / kernel headers */
#include <alsa/sound/type_compat.h>
#include <alsa/sound/uapi/asound.h>
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2013 CNRS
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, o... |
#ifndef LAYERINTERFACEINDICATOR_H
#define LAYERINTERFACEINDICATOR_H
// MOOSE includes
#include "InternalSideIndicator.h"
/**
* Computes the "error" as defined by the difference between the layers. Since,
* layer ids are arbitrary the
* magnitude of the error is not relevant, just that the error is above zero.
* T... |
//
// IGREntityExCatalog.h
// exTVPlayer
//
// Created by Vitalii Parovishnyk on 12/19/15.
// Copyright © 2015 IGR Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class IGREntityExChanel, IGREntityExTrack;
NS_ASSUME_NONNULL_BEGIN
@interface IGREntityExCatalog :... |
// The libMesh Finite Element Library.
// Copyright (C) 2002-2021 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version ... |
/*
* MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
* Copyright (C) 2013-2020 Manav Bhatia and MAST authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eit... |
#include <sys/wait.h>
#include "syscall.h"
#include "libc.h"
pid_t waitpid(pid_t pid, int *status, int options)
{
int r;
CANCELPT_BEGIN;
r = syscall(SYS_wait4, pid, status, options, 0);
if (r<0) CANCELPT_TRY;
CANCELPT_END;
return r;
}
|
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU L... |
/* -*- C++ -*-
* mapredo
* Copyright (C) 2015 Kjell Irgens <hextremist@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... |
/*
* LuaCompat.h
*
* Library that tries to hide almost all diferences
* between Lua versions
*
*/
#ifndef __LUACOMPAT_H
#define __LUACOMPAT_H
#if defined(__cplusplus)
extern "C" {
#endif
void luaCompat_openlib(lua_State* L, const char* libname, const struct luaL_reg* funcs);
void luaCompat_error(lua_State* L... |
//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2021 Ulrich von Zadow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at yo... |
#ifndef SIXTRL_COMMON_BE_DIPEDGE_TRACK_C99_H__
#define SIXTRL_COMMON_BE_DIPEDGE_TRACK_C99_H__
#if !defined( SIXTRL_NO_INCLUDES )
#include "sixtracklib/common/definitions.h"
#include "sixtracklib/common/track/definitions.h"
#include "sixtracklib/common/internal/beam_elements_defines.h"
#include "sixtrac... |
/*
Copyright (C) 2011 Samsung Electronics
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This... |
/* t-encrypt-large.c - Regression test for large amounts of data.
* Copyright (C) 2005 g10 Code GmbH
*
* This file is part of GPGME.
*
* GPGME is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; eith... |
#pragma once
#include "Material.h"
#include "LinearInterpolation.h"
class Function;
class HeatConductionMaterial : public Material
{
public:
HeatConductionMaterial(const InputParameters & parameters);
protected:
virtual void computeProperties();
private:
void readFile();
void check();
std::string _prop... |
/****************************************************************************
**
** Copyright (C) 2014 Kurt Pattyn <pattyn.kurt@gmail.com>.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWebSockets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
*... |
// LICENSE: (Please see the file COPYING for details)
//
// NUS - Nemesis Utilities System: A C++ application development framework
// Copyright (C) 2006, 2008 Otavio Rodolfo Piske
//
// This file is part of NUS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the ... |
/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*-
*
* Quadra, an action puzzle game
* Copyright (C) 1998-2000 Ludus Design
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Fre... |
/*
* Copyright 2013 Mentor Graphics Corp.
* Copyright 2013 Mikhail Durnev
*
* mikhail_durnev@mentor.com
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <linux/fs.h>
/* recursive director... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vi: set tabstop=4 shiftwidth=4 expandtab: */
/* ***** BEGIN LICENSE BLOCK *****
* Copyright (C) 2009 Zmanda Incorporated. All Rights Reserved.
*
* This file is part of libzcloud.
*
* libzcloud is free software: you can redistribute i... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- *
* gtksourcecompletionvim_wordsproposal.c
* This file is part of GtkSourceView
*
* Copyright (C) 2009 - Jesse van den Kieboom
*
* gtksourceview is free software; you can redistribute it and/or
* modify it under the terms of ... |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
#ifndef __TESTNGPPST_WIN32_DLL_MODULE_LOADER_H
#define __TESTNGPPST_WIN32_DLL_MODULE_LOADER_H
#include <testngppst/testngppst.h>
#include <testngppst/runner/loaders/ModuleLoader.h>
TESTNGPPST_NS_START
struct Win32DllModuleLoaderImpl;
struct Win32DllModuleLoader : public ModuleLoader
{
Win32DllModuleLoader();
... |
/*
* xfce4-sntray-plugin
* Copyright (C) 2019 Konstantin Pugin <ria.freelander@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (a... |
/* WithRequirements, copyright (C) 1991-2017 Gen Kiyooka, is distributed under
the GNU Lesser General Public License (GNU LGPL).
This file is part of WithRequirements.
WithRequirements is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as p... |
#include <xmp.h>
#include <stdio.h>
#include <stdlib.h>
#define N 4
int random_array[N], ans=0, val=0, i, result=0;
#pragma xmp nodes p[4]
#pragma xmp template t[4]
#pragma xmp distribute t[block] onto p
int main(void)
{
srand(0);
for(i=0;i<N;i++){
random_array[i] = rand();
ans = ans | random_array[i];
... |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
// Created file "Lib\src\ksuser\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5,... |
#ifndef GENERICS_FIELDITERATOR_H
#define GENERICS_FIELDITERATOR_H
#include <iterator>
namespace generics {
template<typename Element>
class FieldIterator: public std::iterator<std::input_iterator_tag, Element, int> {
public:
FieldIterator() : m_Data(nullptr) {}
FieldIterator(Element * data) : m_Data(data) {}
... |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
// Created file "Lib\src\Uuid\X64\cguid_i"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... |
/*
Copyright (C) 2007 <SWGEmu>
This File is part of Core3.
This program is free software; you can redistribute
it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Free Software
Foundation; either version 2 of the License,
or (at your option) any later version.
This progra... |
/*
* Library restart_data type test program
*
* Copyright (C) 2006-2021, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the ... |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
// Created file "Lib\src\mfuuid\X64\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... |
// Created file "Lib\src\Uuid\napcommon_i"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... |
#ifndef EVENTMANAGER_H
#define EVENTMANAGER_H
#include <SFML/Graphics.hpp>
class EventManager
{
public:
EventManager();
virtual ~EventManager();
void eventLoop(sf::RenderWindow &window);
protected:
sf::Event m_e;
private:
};
#endif // EVENTMANAGER_H
|
/* ****************************************************************************
* libcasio/format/mcs/cells.h -- description of the MCS cells format.
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
*
* This file is part of libcasio.
* libcasio is free software; you can redistribute it and/or mo... |
/*
******************************************************************************
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free ... |
// Created file "Lib\src\Uuid\X64\uiribbon_uuid"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3,... |
// ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// client_rdb.h
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
#ifndef U_RDB_CLIENT_H
#define U_RDB_CLIEN... |
/****************************************************************************************************************/
/* */
/* OpenNN: Open Neural Networks Library ... |
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <graphx.h>
/* Use some random color as the transparent one */
#define TRANSPARENT_COLOR 10
#define FONT_WIDTH 8
#define FONT_HEIGHT 8
/* Function prototypes... |
#pragma once
#include "Opcode.h"
namespace AISCRIPT
{
class Build_Bunkers : public Opcode
{
public:
// Ctor
Build_Bunkers(AISCRIPT::Enum::Enum n) : Opcode(n) {};
// Execute
virtual bool execute(aithread &thread) const;
};
}
|
/*This file is generated by luagen.*/
#include "lua_ftk_text_view.h"
#include "lua_ftk_callbacks.h"
static void tolua_reg_types (lua_State* L)
{
tolua_usertype(L, "FtkTextView");
}
static int lua_ftk_text_view_create(lua_State* L)
{
tolua_Error err = {0};
FtkTextView* retv;
FtkWidget* parent;
int x;
int y;
int... |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
/*!
\file RecipeModel.h
\author Dane Gardner <dane.gardner@gmail.com>
\version
\section LICENSE
This file is part of the ThreeBrooks homebrew recipe application
Copyright (C) 2011-2013 Dane Gardner
This program is free software: you can redistribute it and/or modify
it under the terms of ... |
#pragma once
namespace render
{
namespace scene
{
template<typename T>
struct Dimension2
{
T width = 0;
T height = 0;
};
} // namespace scene
} // namespace render
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Node attributes/ expression widths
//
// Code available from: https://verilator.org
//
//*************************************************************************
//
// Co... |
/* mpfr_set_si_2exp -- set a MPFR number from a machine signed integer with
a shift
Copyright 2004, 2006-2021 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
... |
/*
* Copyright (C) 2017 Apple Inc. 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. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include <stdio.h>
int main() {
int number;
int first = 0;
int second = 1;
int fibonacci = 0;
int key = 1;
scanf("%d", &number);
if ( number < 0 ) {
key = 0;
number *= -1;
}
if ( number == 1 || number == 2 ) {
fibonacci = 1;
} e... |
// UIImage+RoundedCorner.h
//
// Created by 余洪江 on 16/03/01.
// Copyright © MRJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (RoundedCorner)
- (UIImage *)roundedCornerImage:(NSInteger)cornerSize borderSize:(NSInteger)borderSize;
@end
|
//
// YHPTwoViewController.h
// 03-控制器View的生命周期
//
// Created by yhp on 16/4/10.
// Copyright © 2016年 YouHuaPei. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YHPTwoViewController : UIViewController
@end
|
int main() {
int x = 1;
int y = x * 10;
return 0;
}
|
#include <defs.h>
#include <assert.h>
#include <thumips.h>
#include <picirq.h>
#include <asm/mipsregs.h>
static bool did_init = 0;
void
pic_enable(unsigned int irq) {
assert(irq < 8);
uint32_t sr = read_c0_status();
sr |= 1<<(irq + STATUSB_IP0);
write_c0_status(sr);
}
void pic_disable(unsigned int ... |
#include <avr/io.h>
#include <util/delay.h>
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "driver/encoder/encoder.h"
#include "driver/motor_ctrl/motor_ctrl.h"
#include "driver/l298/l298.h"
#include "driver/distance_sense/distance_sense.h"
#include "driver/line_sense/line_sense.h"
#include "driver... |
//
// TIHAppDelegate.h
// TodayInHistory
//
// Created by Serg Bayda on 10/29/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
@interface TIHAppDelegate : NSObject <UIApplicationDelegate>
{
UIWindow *window;
UINavigationController *navigationController;
}
@property (nonatomic, retain) ... |
/*
ToDo: http://man7.org/linux/man-pages/man2/readahead.2.html
*/
#include "mmbuf.h"
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
/*---
DATA
---*/
/*---
FUNCTIONS
---*/
static void handle_mmap_fail(struct mmbuf_obj *... |
#include "file_input.h"
int main(int argc, char **argv)
{
initCanInterface();
if(argc < 2)
{
fprintf(stderr, "got no arg\n");
// print help
fprintf(stderr, "Please use the help\n");
}
else if(argc == 2)
{
fprintf(stderr, "Got one args\n");
char* fileArray;
long len = readFile(argv[1], fileArray);
... |
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/*
* Copyright © 2014 Jason Ekstrand
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that copyright
* notice and this permission notice appea... |
#ifndef CONSTDEF_H
#define CONSTDEF_H
#define MAX (30) /*ͼ×î´ó¶¥µãÊý*/
#define BUFFER_SIZE (256) /*ÎļþÃû³¤¶È*/
#define MAX_E_NUM (200) /*ͼ×î´ó±ßÊý*/
#define MB (1048576) ... |
//
// PICircularProgressView.h
// BMGestureScoring
//
// Created by BM on 15/11/4.
// Copyright © 2015年 BM. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PICircularProgressView : UIView
@property (nonatomic) double progress;
@property (nonatomic) NSInteger roundedHead UI_APPEARANCE_SELECTOR;
@propert... |
//
// Copyright (C) 2016 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
/* Copyright 2019 Kristofer Björnson
*
* 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... |
//
// MKAnnotationView+WebCache.h
// SDWebImage
//
// Created by Olivier Poitrey on 14/03/12.
// Copyright (c) 2012 Dailymotion. All rights reserved.
//
#import "MapKit/MapKit.h"
#import "SDWebImageManager.h"
/**
* Integrates SDWebImage async downloading and caching of remote images with MKAnnotationView.
*/
... |
/*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
//
// SFCollapsableLabel.h
// SFiOSKit
//
// Created by yangzexin on 2/27/14.
// Copyright (c) 2014 yangzexin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SFIBCompatibleView.h"
@interface SFCollapsableLabel : SFIBCompatibleView
@property (nonatomic, readonly) UILabel *label;
@property (no... |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2010 by iTestApp, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
* WARNING: This is generated code. Modify at your own risk and without support.
*/
#if d... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2020 INRIA.
*
* 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
*
*... |
/*
Copyright 2017-2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
//
// QUICKSTARTGetPasswordByPhoneResponse.h
// 手机找回密码.响应报文
//
// Created by 代码生成器1.0.
//
#import "MessageResponse.h"
@interface QUICKSTARTGetPasswordByPhoneResponse : MessageResponse
@end
|
/*-------------------------------------------------------------------------
flash.c - Program memory flashing process
Copyright 2006-2010 Pierre Gaufillet <pierre.gaufillet@magic.fr>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... |
#include "sqlite.h"
void Java_com_jmv_frre_moduloestudiante_SQLite_SQLiteDatabase_closedb(JNIEnv *env, jobject object, int sqliteHandle) {
sqlite3 *handle = (sqlite3 *)sqliteHandle;
int err = sqlite3_close(handle);
if (SQLITE_OK != err) {
throw_sqlite3_exception(env, handle, err);
}
}
void Java_com_jmv_frre_mod... |
#include <cmath>
#define PI 3.14159265359
class Vector2d
{
public:
float x;
float y;
Vector2d(float=0, float=0);
static float radiansToDegrees(float radians); //Convert Radians into Degrees
static float degreesToRadians(float degrees); //Convert Degrees into Radians
static float rotationInRadiansFromVect... |
//
// KeyboardInputView.h
// Codea
//
// Created by Simeon Nasilowski on 14/01/12.
//
// Copyright 2012 Two Lives Left Pty. Ltd.
//
// 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... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018-2019 Couchbase, 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
*
* ... |
/* Copyright 2015 Samsung Electronics Co., LTD
*
* 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... |
// -*- C++ -*-
// Copyright 2016-17 Richard Copley
//
// 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 applicabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.