repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
oliverkurth/pmd | server/structs.h | <gh_stars>1-10
/*
* Copyright © 2016-2019 VMware, 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 requ... |
oliverkurth/pmd | server/pkgmgmtrpcapi.c | /*
* Copyright © 2016-2017 VMware, 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 applica... |
oliverkurth/pmd | common/rolemgmt.c | /*
* Copyright © 2016-2019 VMware, 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 applica... |
intERLab-AIT/libnmea-esp32 | example/main/nmea_example_main.c | <reponame>intERLab-AIT/libnmea-esp32
/* NMEA parsing example for ESP32.
* Based on "parse_stdin.c" example from libnmea.
* Copyright (c) 2015 <NAME>.
* Additions Copyright (c) 2017 <NAME>.
* See "LICENSE" file in libnmea directory for license.
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freerto... |
dvetutnev/boost-di-example | legacy/executer.h | <gh_stars>0
#pragma once
#include "logger.h"
#include <boost/asio/io_context.hpp>
#include <string>
#include <functional>
#include <thread>
struct Ssid
{
std::string value;
};
struct Id
{
std::string value;
};
class Executer
{
public:
Executer(const Ssid&, const Id&, Logger&);
void process(cons... |
dvetutnev/boost-di-example | legacy/logger.h | #pragma once
#include <iostream>
#include <mutex>
class Logger
{
public:
void log(const std::string& s) {
std::lock_guard lock{mtx};
std::cout << s << std::endl;
}
private:
std::mutex mtx;
};
|
dvetutnev/boost-di-example | di/executer.h | <reponame>dvetutnev/boost-di-example<filename>di/executer.h<gh_stars>0
#pragma once
#include "logger.h"
#include <boost/asio/io_context.hpp>
#include <functional>
#include <thread>
#include <memory>
struct Ssid
{
std::string value;
};
struct Id
{
std::string value;
};
struct IExecuter
{
virtual void... |
dvetutnev/boost-di-example | legacy/group.h | <gh_stars>0
#pragma once
#include "executer.h"
#include <list>
#include <memory>
class Group
{
public:
Group(const Ssid&, std::size_t, Logger&);
Executer& getExecuter();
void stopAll();
private:
const Ssid ssid;
const std::size_t maxSize;
Logger& logger;
std::size_t currentId;
u... |
dvetutnev/boost-di-example | di/logger.h | #pragma once
#include <iostream>
#include <mutex>
struct ILogger
{
virtual void log(const std::string&) = 0;
virtual ~ILogger() = default;
};
class Logger : public ILogger
{
public:
void log(const std::string& s) override {
std::lock_guard lock{mtx};
std::cout << s << std::endl;
}
... |
dvetutnev/boost-di-example | di/mocks.h | <filename>di/mocks.h<gh_stars>0
#pragma once
#include "executer.h"
#include "group.h"
#include "manager.h"
#include <gmock/gmock.h>
struct MockLogger : ILogger
{
MOCK_METHOD(void, log, (const std::string&), (override));
};
struct MockExecuter : IExecuter
{
MOCK_METHOD(void, process, (const std::string&, st... |
dvetutnev/boost-di-example | di/group.h | #pragma once
#include "executer.h"
#include <boost/di/extension/injections/factory.hpp>
#include <list>
struct IGroup
{
virtual IExecuter& getExecuter() = 0;
virtual void stopAll() = 0;
virtual ~IGroup() = default;
};
struct GroupSize
{
std::size_t value;
};
using IFactoryExecuter = boost::di::e... |
dvetutnev/boost-di-example | di/manager.h | #pragma once
#include "group.h"
#include <boost/di/extension/injections/factory.hpp>
#include <map>
using IFactoryGroup = boost::di::extension::ifactory<IGroup, Ssid>;
class Manager
{
public:
Manager(std::shared_ptr<IFactoryGroup>);
IExecuter& getExecuter(const Ssid&);
void stop(const Ssid&);
voi... |
dvetutnev/boost-di-example | async_result.h | #pragma once
#include <boost/asio/io_context.hpp>
#include <boost/asio/async_result.hpp>
#include <boost/asio/use_future.hpp>
#include <memory>
#include <tuple>
#include <stdexcept>
class IoContextWrapper
{
public:
void addWork() {
workCount++;
if (!workGuard) {
workGuard = std::make... |
dvetutnev/boost-di-example | legacy/manager.h | <gh_stars>0
#pragma once
#include "group.h"
#include <map>
class Manager
{
public:
Manager(std::size_t, Logger&);
Executer& getExecuter(const Ssid&);
void stop(const Ssid&);
void stopAll();
private:
const std::size_t groupSize;
Logger& logger;
using Item = std::unique_ptr<Group>;
s... |
kostiakoval/SwiftMiror | Pods/Target Support Files/Pods-MirrorTests/Pods-MirrorTests-umbrella.h | <reponame>kostiakoval/SwiftMiror<filename>Pods/Target Support Files/Pods-MirrorTests/Pods-MirrorTests-umbrella.h
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_MirrorTestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_MirrorTestsVersionString[];
|
kostiakoval/SwiftMiror | Mirror/Mirror.h | //
// Mirror.h
// Mirror
//
// Created by <NAME> on 10/07/15.
// Copyright (c) 2015 CocoaPods. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Mirror.
FOUNDATION_EXPORT double MirrorVersionNumber;
//! Project version string for Mirror.
FOUNDATION_EXPORT const unsigned char MirrorVe... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/FifthPage/Controller/TTFifthPageViewController.h | <filename>TTBasicProject/TTBasicProject/Classes/FifthPage/Controller/TTFifthPageViewController.h
//
// TTFifthPageViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseViewController.h"
@interface TTFifthPageViewController : BaseViewC... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/ThirdPage/Controller/TTThirdPageViewController.h | //
// TTThirdPageViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseViewController.h"
@interface TTThirdPageViewController : BaseViewController
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UITextView+PlaceHolder.h | <reponame>DreamFlyingCow/TTBasicProject<filename>TTBasicProject/TTBasicProject/Classes/Category/UITextView+PlaceHolder.h
//
// UITextView+PlaceHolder.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
@protocol... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Public/TTRefreshBackGifFooter.h | //
// TTRefreshBackGifFooter.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/19.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <MJRefresh/MJRefresh.h>
@interface TTRefreshBackGifFooter : MJRefreshBackGifFooter
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UIView+TTDraggable.h | //
// UIView+TTDraggable.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
// 此分类就是给一个View添加一个手势, 可以随意拖动, 松手之后回到原位置
@interface UIView (TTDraggable)
/**
* Make view draggable.
*
* @param view Animator reference view, usually i... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/FifthPage/View/TTThreeSpecialCell.h | <filename>TTBasicProject/TTBasicProject/Classes/FifthPage/View/TTThreeSpecialCell.h<gh_stars>1-10
//
// TTThreeSpecialCell.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTThreeSpecialCell : UITableViewCell
/**
* 输入TF
... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Base/View/TTTabBar.h | //
// TTTabBar.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTabBar : UITabBar
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UIView+Image.h | //
// UIView+Image.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Image)
/**
* 通过颜色来生成一个纯色图片
*
* @param color 所需的颜色
*
* @return 生成的图片
*/
- (UIImage *)buttonImageFromColor:(UIColor *)color;
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UIView+TTHUDView.h | <gh_stars>1-10
//
// UIView+TTHUDView.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (TTHUDView)<MBProgressHUDDelegate>
- (void)hudShow;
- (void)hiddleHud;
- (void)hudShow:(NSString *)content;
- (void)textHUDHid... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/ForthPage/Controller/TTForthPageViewController.h | <gh_stars>1-10
//
// TTForthPageViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseViewController.h"
@interface TTForthPageViewController : BaseViewController
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Define/Frame.h | <filename>TTBasicProject/TTBasicProject/Classes/Define/Frame.h
//
// Frame.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef Frame_h
#define Frame_h
// 屏幕的物理宽度
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
// 屏幕的物理高度
#de... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/FifthPage/View/TTCustomerHeaderView.h | <reponame>DreamFlyingCow/TTBasicProject<filename>TTBasicProject/TTBasicProject/Classes/FifthPage/View/TTCustomerHeaderView.h
//
// TTCustomerHeaderView.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTCustomerHeaderView ... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Public/TTHUDView.h | <gh_stars>1-10
//
// TTHUDView.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TTHUDView : UIView
- (void)hudShow;
- (void)hudShow:(NSString *)content;
- (void)hiddleHud;
- (void)textHUDHiddle;
- (void)hudShowW... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Public/TTRefreshGifHeader.h | //
// TTRefreshGifHeader.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <MJRefresh/MJRefresh.h>
@interface TTRefreshGifHeader : MJRefreshGifHeader
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Base/Controller/TTNavigationViewController.h | //
// TTNavigationViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTNavigationViewController : UINavigationController
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UIBarButtonItem+Item.h | //
// UIBarButtonItem+Item.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIBarButtonItem (Item)
// 快速创建UIBarButtonItem
+ (UIBarButtonItem *)itemWithimage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Public/TTActionSheet.h | <filename>TTBasicProject/TTBasicProject/Classes/Public/TTActionSheet.h
//
// TTActionSheet.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TTActionSheet : NSObject<UIActionSheetDelegate>
/**
* 标题
*/
@propert... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Login/Controller/TTLoginViewController.h | //
// TTLoginViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTLoginViewController : BaseViewController
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Base/Controller/TTTabBarViewController.h | <reponame>DreamFlyingCow/TTBasicProject<gh_stars>1-10
//
// TTTabBarViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseTabBarController.h"
#import "BaseNavigationController.h"
#import "TTFirstPageViewController.h"
#import "TTSecond... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Base/Controller/BaseViewController.h | <reponame>DreamFlyingCow/TTBasicProject
//
// BaseViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BaseViewController : UIViewController
@property (strong, nonatomic) UIButton *retBtn;
//自定义navigationBar
@p... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Public/TTAlertView.h | <reponame>DreamFlyingCow/TTBasicProject<gh_stars>1-10
//
// TTAlertView.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTAlertView : UIAlertView
- (id)initWithTitle:(NSString *)title message:(NSString *)message clickedB... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/NSString+Size.h | //
// NSString+Size.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// 此分类是用一个字符串计算他的高度(传进来一个size 以及font)
@interface NSString (Size)
- (CGSize)boundingRectWithSize:(CGSize)size withFont:(UIFont *)f... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/NSString+StringColor.h | <reponame>DreamFlyingCow/TTBasicProject
//
// NSString+StringColor.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/18.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (StringColor)
// 次方法用于对某一控件的text中的某一范围内的文字设置颜色
- (NSMutableAttributedString *)addStrin... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/FirstPage/Controller/TTJumpPageViewController.h | <filename>TTBasicProject/TTBasicProject/Classes/FirstPage/Controller/TTJumpPageViewController.h
//
// TTJumpPageViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/9/26.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseViewController.h"
@interface TTJumpPageViewController : BaseViewCont... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/FirstPage/Controller/TTFirstPageViewController.h | <gh_stars>1-10
//
// TTFirstPageViewController.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import "BaseViewController.h"
@interface TTFirstPageViewController : BaseViewController
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/ThirdPage/View/TTActivityCell.h | //
// TTActivityCell.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTActivityCell : UITableViewCell
@end
|
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Category/UIImage+Image.h | //
// UIImage+Image.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Image)
+ (instancetype)imageOriginalWithName:(NSString *)imageName;
- (instancetype)us_circleImage;
+ (instancetype)us_circleImageNamed:(NSSt... |
DreamFlyingCow/TTBasicProject | TTBasicProject/TTBasicProject/Classes/Define/Color.h | //
// Color.h
// TTBasicProject
//
// Created by 赵春浩 on 16/8/29.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef Color_h
#define Color_h
// 三个参数是一样的
#define kCOLOR(a) [UIColor colorWithRed:a/255.0f green:a/255.0f blue:a/255.0f alpha:1.0f]
// 自定义三个参数
#define kCustom... |
IT-gMA/test-vc | hello-openmp/hello-openmp.c | #include <omp.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
#pragma omp parallel
{
int id = omp_get_thread_num();
int proc = sched_getcpu();
printf("Thread %02i running on processor %i.\n", id, proc);
if (id == 0)
{
printf("There are %i threads in ... |
IT-gMA/test-vc | vector_add_gpu/cpu_vec_add.c | <gh_stars>0
#include <stdlib.h>
#include <stdio.h>
//#include "../common/array.h"
#define MALLOC_CHECK_ERROR(X)({\
if ((X) == 0){\
fprintf(stderr, "Malloc error (%s:%d): %i\n", __FILE__, __LINE__, (X));\
exit(1);\
}\
})
// initialise a vector of length n with random values.
void init_vec(fl... |
IT-gMA/test-vc | hello-mpi/hello-mpi.c | <reponame>IT-gMA/test-vc<gh_stars>1-10
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
int size;
int rank;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
fprintf(stderr,"%i of %i: Hello, World!\n", rank, size);
MPI_Fi... |
wenqi-zhang/ack | emtest/select.c | /* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*
*/
#include <stdio.h>
#include <assert.h>
#include <signal.h>
#define LINSIZ 100
int sigs[] = {
SIGHUP,
SIGINT,
SIGQUIT,
SIGTERM,
0
};
c... |
wenqi-zhang/ack | lang/cem/libcc.ansi/headers/ack/emufile.h | <gh_stars>0
#ifndef ACK_EMUFILE_H
#define ACK_EMUFILE_H
/*
* Focus point of all stdio activity.
*/
struct FILE {
int _count;
int _fd;
int _flags;
int _bufsiz;
unsigned char *_buf;
unsigned char *_ptr;
};
#define _IOFBF 0x000
#define _IOREAD 0x001
#define _IOWRITE 0x002
#define _IONBF 0x004
#define _IOM... |
wenqi-zhang/ack | lang/pc/libpc/opn.c | <reponame>wenqi-zhang/ack<gh_stars>0
/* $Id$ */
/*
* (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
*
* This product is part of the Amsterdam Compiler Kit.
*
* Permission to use, sell, duplicate or disclose this software must be
* obtained in writing. Requests for such permissi... |
wenqi-zhang/ack | modules/src/system/tmpnam.c | <gh_stars>0
/* Copyright (c) 2019. See the file License in
* the root directory for more information.
*
* Created on: 2019-03-13
*
*/
#include <stdio.h>
/* This has been placed here, because on some famous platforms, this
* call is completely broken (e.g Windows up to recent versions of CRT)
*/
char* sys_t... |
wenqi-zhang/ack | lang/fortran/comp/sysdep.c | <gh_stars>0
/****************************************************************
Copyright 1990 by AT&T Bell Laboratories and Bellcore.
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in ... |
arguelles/muSQuIDS | inc/loadFlux.h | #ifndef _LOADFLUX_H_
#define _LOADFLUX_H_
#include <SQuIDS/const.h>
#include <iostream>
#include <fstream>
#include <nuSQuIDS/marray.h>
#include <boost/tokenizer.hpp>
int LoadData(nusquids::marray<double,1>& ENodes,
nusquids::marray<double,2>& MuFlux,
nusquids::marray<double,3>& NuFlux,
... |
arguelles/muSQuIDS | inc/muSQuIDS.h | <gh_stars>0
#ifndef _MU_NSQ_
#define _MU_NSQ_
#include <vector>
#include <iostream>
#include <nuSQuIDS/nuSQuIDS.h>
#include <gsl/gsl_deriv.h>
#include "exCross.h"
namespace musquids {
using nusquids::nuSQUIDS;
using nusquids::marray;
/// \brief This class implements muon energy loss into nuSQuIDS.
class muSQUIDS: pub... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/AppDelegate.h | <gh_stars>10-100
//
// AppDelegate.h
// ABBPlayer
//
// Created by beyondsoft-聂小波 on 16/9/20.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Reachability.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@pro... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/TbaleViewVideo/Controller/VideoListViewController.h | <gh_stars>10-100
//
// VideoListViewController.h
// ABBPlayer
//
// Created by beyondsoft-聂小波 on 16/9/20.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface VideoListViewController : UITableViewController
@end
|
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/MoviePlayerVC/MessageBaseViewController.h | //
// MessageBaseViewController.h
// ABBPlayer
//
// Created by beyondsoft-聂小波 on 16/9/21.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIView+WHC_Toast.h"
@interface MessageBaseViewController : UIViewController
@end
|
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/DownLoadVC/VC/TableBaseViewController.h | <reponame>niexiaobo/ABBPlayerKit
//
// TableBaseViewController.h
// ABBVideoDownloadPlayer
//
// Created by beyondsoft-聂小波 on 16/9/19.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#define Screen_height [[UIScreen mainScreen] bounds].size.height
#define Screen_width [[UIScreen ... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/DownLoadVC/model/DownloadModel.h | //
// DownloadModel.h
// ABBPlayer
//
// Created by beyondsoft-聂小波 on 16/9/20.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WHC_DownloadObject.h"
#import <WHCNetWorkKit/WHC_HttpManager.h>
#define WHC_BackgroundDownload (1)
// showMsg
typedef void(^DownloadMod... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/MoviePlayerVC/MoviePlayerViewController.h | //
// MoviePlayerViewController.h
// ABBPlayer
//
// Created by beyondsoft-聂小波 on 16/9/20.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MessageBaseViewController.h"
@interface MoviePlayerViewController : MessageBaseViewController
/** 视频URL */
@property (nonatomic, strong... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/DownLoadVC/VC/DownLoadListViewController.h | <filename>ABBPlayer/ABBPlayer/ViewController/DownLoadVC/VC/DownLoadListViewController.h<gh_stars>10-100
//
// DownLoadListViewController.h
// ABBVideoDownloadPlayer
//
// Created by beyondsoft-聂小波 on 16/9/19.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TableBaseViewCont... |
niexiaobo/ABBPlayerKit | ABBPlayer/ABBPlayer/ViewController/DownLoadVC/Cell/DownLoadListCell.h | //
// DownLoadListCell.h
// ABBVideoDownloadPlayer
//
// Created by beyondsoft-聂小波 on 16/9/19.
// Copyright © 2016年 NieXiaobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WHC_DownloadObject.h"
#import "WHCNetWorkKit.h"
#import "UIView+WHC_ViewProperty.h"
#define kFontSize (15.0)
#define k... |
keflavich/nestfit | nestfit/core/fastexp.c | <reponame>keflavich/nestfit<filename>nestfit/core/fastexp.c
/*
* fastexp.c
* This file is part of LIME, the versatile line modeling engine
*
* Copyright (C) 2006-2014 <NAME>
* Copyright (C) 2015-2018 The LIME development team
* Released under the GNU GPL v3
*
*/
#include "fastexp.h"
double EXP_TABLE_2D[1... |
keflavich/nestfit | nestfit/core/fastexp.h | #include <stdlib.h>
#include <math.h>
#define SQRT_PI (sqrt(M_PI)) /* sqrt(pi) */
#define FAST_EXP_MAX_TAYLOR 3
#define FAST_EXP_NUM_BITS 8
#define ERF_TABLE_LIMIT 6.0 /* For x>6 erf(x)-1<double precision machine epsilon, so no need to store the values for... |
cornelisnetworks/opa-hfi1 | compat/RH77/compat.c | <filename>compat/RH77/compat.c<gh_stars>0
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or m... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/tid_rdma.h | <filename>drivers/infiniband/hw/hfi1/tid_rdma.h
/*
* Copyright(c) 2015 - 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribut... |
cornelisnetworks/opa-hfi1 | compat/SLES12SP5/compat.h | <reponame>cornelisnetworks/opa-hfi1
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2019 Intel Corporation.
*/
#if !defined(SLES12SP5_COMPAT_H)
#define SLES12SP5_COMPAT_H
#include <linux/device.h>
#include <rdma/ib_mad.h>
#define CREATE_AH_HAS_UDATA
#define HAVE_ALLOC_RDMA_NETDEV
#define ... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/trace_gpu.h | <reponame>cornelisnetworks/opa-hfi1<gh_stars>0
/*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/trace_rx.h | /*
* Copyright(c) 2015 - 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of vers... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/sdma_txreq.h | <reponame>cornelisnetworks/opa-hfi1
/*
* Copyright(c) 2016 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/ulp/opa_vnic/opa_vnic_debugfs.c | <gh_stars>0
/*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/opfn.c | /*
* Copyright(c) 2016 - 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of vers... |
cornelisnetworks/opa-hfi1 | compat/common/compat_common.h | <reponame>cornelisnetworks/opa-hfi1
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/vnic.h | <filename>drivers/infiniband/hw/hfi1/vnic.h
#ifndef _HFI1_VNIC_H
#define _HFI1_VNIC_H
/*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is fre... |
cornelisnetworks/opa-hfi1 | compat/RH73/compat.c | /*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
cornelisnetworks/opa-hfi1 | compat/RH81/compat.h | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2019 Intel Corporation.
*/
#if !defined(RH81_COMPAT_H)
#define RH81_COMPAT_H
#define CREATE_AH_HAS_UDATA
#define HAVE_ALLOC_RDMA_NETDEV
#define CREATE_FLOW_HAS_UDATA
#define HAVE_IB_GID_ATTR
#define ADD_GID_HAS_GID
#define HAVE_RDMA_NETDEV_GE... |
cornelisnetworks/opa-hfi1 | compat/SLES15SP1/compat.h | /*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/rcva.c | // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/ipoib.h | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistrib... |
cornelisnetworks/opa-hfi1 | include/rdma/rdma_vt.h | <reponame>cornelisnetworks/opa-hfi1<filename>include/rdma/rdma_vt.h
#ifndef DEF_RDMA_VT_H
#define DEF_RDMA_VT_H
/*
* Copyright(c) 2016 - 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/user_exp_rcv_gpu.c | /*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/user_sdma_gpu.c | <filename>drivers/infiniband/hw/hfi1/user_sdma_gpu.c
/*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute ... |
cornelisnetworks/opa-hfi1 | distro/RHEL76/ipoib/ipoib_vlan.c | /*
* Copyright (c) 2004 Topspin Communications. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this s... |
cornelisnetworks/opa-hfi1 | compat/RH73/compat.h | <filename>compat/RH73/compat.h<gh_stars>0
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or m... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/gdr_ops.c | <reponame>cornelisnetworks/opa-hfi1
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/ipoib_rx.c | // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute... |
cornelisnetworks/opa-hfi1 | compat/RH78/compat.h | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2020 Intel Corporation.
*/
#if !defined(RH78_COMPAT_H)
#define RH78_COMPAT_H
#define HAVE_IB_GID_ATTR
#define POST_HAS_CONST
#define CREATE_FLOW_HAS_UDATA
#define CREATE_AH_HAS_UDATA
#define HAVE_ALLOC_RDMA_NETDEV
#define HAVE_RDMA_NETDEV_GET... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/trace_ctxts.h | <gh_stars>0
/*
* Copyright(c) 2015, 2016 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of ve... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/rc.h | <reponame>cornelisnetworks/opa-hfi1<gh_stars>0
/*
* Copyright(c) 2016-2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute i... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/common.h | /*
* Copyright(c) 2015 - 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of vers... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/trace.c | /*
* Copyright(c) 2015 - 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of vers... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/netdev.h | <filename>drivers/infiniband/hw/hfi1/netdev.h
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Th... |
cornelisnetworks/opa-hfi1 | compat/common/compat_common.c | /*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
cornelisnetworks/opa-hfi1 | compat/RH75/compat.h | <reponame>cornelisnetworks/opa-hfi1
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
... |
cornelisnetworks/opa-hfi1 | compat/RH78/compat.c | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2020 Intel Corporation.
*/
#include <linux/export.h>
#include <linux/thread_info.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/bitmap.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/kernel.h>
#include... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/qib/qib.h | #ifndef _QIB_KERNEL_H
#define _QIB_KERNEL_H
/*
* Copyright (c) 2012 - 2017 Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved.
* Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved.
*
* This software is available to you under a choice o... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/rcva.h | <filename>drivers/infiniband/hw/hfi1/rcva.h<gh_stars>0
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY... |
cornelisnetworks/opa-hfi1 | compat/SLES12SP3/compat.c | <filename>compat/SLES12SP3/compat.c
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
... |
cornelisnetworks/opa-hfi1 | compat/SLES12SP2/compat.h | /*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
cornelisnetworks/opa-hfi1 | drivers/infiniband/hw/hfi1/netdev_rx.c | <gh_stars>0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
/*
* Copyright(c) 2018 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.