text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>haksungjang/fosslight_dependency
/***************************************************************
Copyright (C) 2006-2013 Hewlett-Packard Development Company, L.P.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as publis... | code_c | code | 11,968 | null |
#pragma once
#include <string>
#include <vector>
#include <cinder/app/AppBase.h>
#include "geometry/FontRasterizer.h"
#include "tools/Tool.h"
#include "ui/IconsMaterialDesign.h"
#include "ui/MainApplication.h"
#include "ui/SidePane.h"
namespace pepr3d {
/// A tool used for painting texts on a model
class TextEditor ... | code_c | code | 1,008 | null |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | code_c | code | 1,912 | null |
#ifndef ARDUCAM_MIC_H
#define ARDUCAM_MIC_H
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/dma.h"
#include "hardware/clocks.h"
#define regtype volatile uint8_t
#define regsize uint8_t
#define byte uint8_t
/****************************************************/
/* Sensor related definition *... | code_c | code | 4,657 | null |
<reponame>pb5/HISSTools_Impulse_Response_Toolbox
#include <ext.h>
#include <ext_obex.h>
#include <ext_obex_util.h>
#include <z_dsp.h>
#include <HIRT_Buffer_Access.h>
#include <HISSTools_Multichannel_Convolution/multi_channel_convolve.h>
// Object class and structure
void *this_class;
#define MAXIMUM_MSP_CHANS 64
... | code_c | code | 3,516 | null |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <locale.h>
#include "common.h"
#define INTERVAL 3
#define FORMAT "%a %H:%M"
int put_infos(char *format)
{
char buf[MAXLEN];
time_t ct;
struct tm *lt;
if ((ct = tim... | code_c | code | 419 | null |
#ifndef RR_UI_LEVEL_SELECT_H
#define RR_UI_LEVEL_SELECT_H
#include "../game.h"
#include "../input.h"
#include "../draw/renderer.h"
#include "basic_sprite.h"
#include "basic_rect.h"
#include "button.h"
typedef struct {
rrInput* _input;
rrRenderer* _renderer;
rrGame* _game;
int current_level;
int a... | code_c | code | 261 | null |
<gh_stars>0
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN... | code_c | code | 682 | null |
<reponame>cppchriscpp/dream-dog-dilemma
#include "source/menus/credits.h"
#include "source/graphics/palettes.h"
#include "source/configuration/system_constants.h"
#include "source/globals.h"
#include "source/neslib_asm/neslib.h"
#include "source/configuration/game_states.h"
#include "source/menus/text_helpers.h"
#inclu... | code_c | code | 740 | null |
//
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under different lice... | code_c | code | 1,009 | null |
#if defined(WINDOWS)
#define UNUSED
#else
#define UNUSED __attribute__ ((unused))
#endif
#include <stdlib.h>
#include <string.h>
#if !defined(WINDOWS)
#include <strings.h>
#include <unistd.h>
#endif
#include <oqs/kex.h>
#include <oqs/rand.h>
#include "kex_lwe_okcn.h"
#include "local.h"
#define LWE_DIV_ROUNDUP(x, y)... | code_c | code | 1,033 | null |
// SPDX-License-Identifier: GPL-2.0
#include <test_progs.h>
#include "progs/core_reloc_types.h"
#include <sys/mman.h>
#include <sys/syscall.h>
#define STRUCT_TO_CHAR_PTR(struct_name) (const char *)&(struct struct_name)
#define FLAVORS_DATA(struct_name) STRUCT_TO_CHAR_PTR(struct_name) { \
.a = 42, \
.b = 0xc00... | code_c | code | 4,758 | null |
<reponame>zydeco/Minecraft-Poster-Maker
//
// NFAppDelegate.h
// Minecraft Poster Maker
//
// Created by <NAME> on 01/12/2013.
// Copyright (c) 2013 namedfork. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MPMImageView.h"
@interface MPMAppDelegate : NSObject <NSApplicationDelegate, NSOpenSavePanelDeleg... | code_c | code | 225 | null |
<filename>karman/Antoonvh/tree4.h
/**
## Changes
* The number of `ghosts` is set to 4
* all `#included` files have a `grid/` prefix.
*/
#include "grid/mempool.h"
#define TWO_ONE 1 // enforce 2:1 refinement ratio
#define GHOSTS 4
/* By default only one layer of ghost cells is used on the boundary to
optimise the c... | code_c | code | 13,450 | null |
<reponame>TheShellLand/crossover-source<filename>gnutls/gnutls/tests/ssl2-hello.c
/*
* Copyright (C) 2016 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
*... | code_c | code | 1,319 | null |
<filename>src/Data/Network/JHGHttpEngine+UploadDownload.h
//
// JHHttpEngine+UploadDownload.h
//
// Created by <NAME> on 2018/8/17.
//
#import "JHGHttpEngine.h"
@interface JHGHttpEngine (UploadDownload)
//- (void)uploadFile:(NSData *)data url:(NSString *)url withBlockxxx;
@end
| code_c | code | 80 | null |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | code_c | code | 1,250 | null |
#pragma once
namespace deadrop
{
namespace systems
{
class ISystem
{
public:
virtual ~ISystem(){}
// this function should destroy the instances that were created
// by the system and also releasing their allocated memory
virtual void Destr... | code_c | code | 145 | null |
#define _GNU_SOURCE
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include "server.h"
#include "connections.h"
#include "response.h"
#include "connections.h"
#include "log.h"
#include "plugin.h"
#ifdef HAV... | code_c | code | 2,914 | null |
<reponame>microsoft/Windows-Camera<filename>Samples/VirtualCamera/VirtualCameraTest/SimpleMediaSourceUT.h
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
#pragma once
#ifndef SIMPLEMEDIASOURCEUT_H
#define SIMPLEMEDIASOURCEUT_H
#include "MediaSourceUT_Common.h"
namespace VirtualCameraTest... | code_c | code | 281 | null |
//===- MipsDisassembler.cpp - Disassembler for Mips -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | code_c | code | 6,542 | null |
// RUN: clang %s -o %t --target=%arm_triple -fuse-ld=lld
// RUN: llvm-mctoll -d %t
// RUN: clang -o %t1 %t-dis.ll -mx32
// RUN: %t1 2>&1 | FileCheck %s
// CHECK: Short result: 5
#include <stdio.h>
short func(short a1, short a2) {
short c1, c2;
c1 = 2;
c2 = a1 + a2;
return c1 + c2;
}
int main() {
printf("S... | code_c | code | 104 | null |
#include "config.h"
#define maxlabels 2000
#define poolsize 10000
#define maxstrings 1100
#define terminallinelength 150
#define fontmemsize 2000
#define dvibufsize 800
#define widestrow 8192
#define liglookahead 20
#define noptions 2
#define argoptions 1
typedef integer scaled ;
typedef unsigned char ASCII... | code_c | code | 22,488 | null |
/**
File: textn.h
Project: DCPU-16 Tools
Component: Assembler
Authors: <NAME>
Description: Declares public functions for writing out
extension tables.
**/
#ifndef __DCPU_ASM_TEXTN_H
#define __DCPU_ASM_TEXTN_H
#include <stdint.h>
#include <stdio.h>
#include "aout.h"... | code_c | code | 223 | null |
#include <string.h>
#include <stdio.h>
#include "simple_logger.h"
#include "gf3d_swapchain.h"
#include "gf3d_vqueues.h"
#include "gf3d_vgraphics.h"
typedef struct
{
VkDevice device;
VkSurfaceCapabilitiesKHR capabilities;
Uint32 formatCount;
VkSurfaceFormatK... | code_c | code | 5,530 | null |
//
// OTSubscriberKit.h
//
// Copyright (c) 2014 Tokbox, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class OTStream, OTSession,
OTSubscriberKitVideoNetworkStats, OTSubscriberKitAudioNetworkStats;
@protocol OTVideoRender;
@protocol OTSubscriberKitDelegate;
@protocol OTSubscriberKitAudioLevelDele... | code_c | code | 4,552 | null |
<reponame>panayiotisd/ntua-oslab<gh_stars>1-10
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>... | code_c | code | 241 | null |
<reponame>wangdx66/SportPage<gh_stars>1-10
//
// SPPersonalInfoModel.h
// SportsPage
//
// Created by Qin on 2016/11/18.
// Copyright © 2016年 Absolute. All rights reserved.
//
#import "JSONModel.h"
#import "SPUserInfoModel.h"
#import "SPPersonalAccountModel.h"
@interface SPPersonalInfoModel : JSONModel
@propert... | code_c | code | 129 | null |
/*
* Copyright (c) 2021-2022, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Optional.h>
#include <AK/String.h>
#include <AK/StringView.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <LibUnicode/Forward.h>
namespace Unicode {
enum class Era : u8 {
BC,
A... | code_c | code | 1,657 | null |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIG_DIR_POLICY_LOADER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CONFIG_DIR_POLICY_LOADER_H_
#include "base/fi... | code_c | code | 715 | null |
#ifndef NVIM_MEMFILE_H
#define NVIM_MEMFILE_H
#include "nvim/buffer_defs.h"
#include "nvim/memfile_defs.h"
/// flags for mf_sync()
#define MFS_ALL 1 /// also sync blocks with negative numbers
#define MFS_STOP 2 /// stop syncing when a character is available
#define MFS_FLUSH 4 /... | code_c | code | 144 | null |
<filename>executor/operator/ref/kernel/roipooling/ref_roipooling_kernel.h<gh_stars>10-100
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF l... | code_c | code | 521 | null |
/*
Copyright 1987, 1998 The Open Group
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 appear in suppor... | code_c | code | 4,500 | null |
<reponame>espritfollet/Journler
/*
** CWFlags.h
**
** Copyright (c) 2001-2006
**
** Author: <NAME> <<EMAIL>>
**
** 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... | code_c | code | 1,339 | null |
<reponame>eerimoq/robomower<gh_stars>1-10
/**
* @file romeo/cutter.h
* @version 0.1
*
* @section License
* Copyright (C) 2015, <NAME>
*
* 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 Founda... | code_c | code | 480 | null |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... | code_c | code | 826 | null |
<filename>JXFrame/Classes/Category/NSError+JXFrame.h
//
// NSError+JXFrame.h
// Pods
//
// Created by 杨建祥 on 2020/1/11.
//
#import <UIKit/UIKit.h>
#import "JXType.h"
//NSString * JXErrorCodeString(JXErrorCode code);
@interface NSError (JXFrame)
// jx_isNetwork, jx_isServer YJX_TODO
@property (nonatomic, strong, r... | code_c | code | 225 | null |
// This file is part of ViViA, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/vivia/blob/master/LICENSE for details.
#ifndef __vtkVgEventRenderSetup_h
#define __vtkVgEventRenderSetup_h
// VTK includes.
#include <vtkObject.h>
#include <vg... | code_c | code | 330 | null |
<gh_stars>0
/* -*- C -*- */
/*
* Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
*
* 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/lice... | code_c | code | 3,607 | null |
<reponame>clown/clx
/* ------------------------------------------------------------------------- */
/*
* remove.h
*
* Copyright (c) 2004 - 2008, clown. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | code_c | code | 1,890 | null |
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h>
#include <math.h>
#include "macros.h"
SEXP mof_MOP6(SEXP rx) {
EXTRACT_NUMERIC_VECTOR(rx, x, n);
SEXP rf = ALLOC_REAL_VECTOR(2);
double* f = REAL(rf);
f[0] = x[0];
double a = (1 + 10 * x[1]);
double b = x[0] / a;
f[1] = a * (1 - pow(b, 2) - b... | code_c | code | 108 | null |
/*
The MIT License (MIT)
Copyright (c) 2017 Lancaster University.
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... | code_c | code | 730 | null |
#ifndef NKBAPI_H
#define NKBAPI_H
void set_motor(int cw, int ccw);
void _delay_ms(int t_delay);
void set_color(int r, int g, int b);
float measure_voltage();
void kprinti(int);
void kprints(char*);
void message_out(int tx0, int tx1, int tx2);
void get_message();
int measure_charge_status();
#endif
| code_c | code | 86 | null |
#include <stdio.h>
#include <stdlib.h>
#include <glib-2.0/glib.h>
#include "taint_interface/taint_creation.h"
#include "maputil.h"
int main (int argc, char* argv[])
{
char mapfile[80], resmapfile[80], mergefile[80], resmergefile[80], taintfile[80];
int mapfd, mergefd, resmapfd, resmergefd, taintfd;
u_long ... | code_c | code | 1,335 | null |
<reponame>bighone/EasySip
//
// ESSipManager.h
// EasySip
//
// Created by <NAME> on 2018/7/27.
// Copyright © 2018 weller. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
//#import "linphone/linphonecore.h"
typedef struct LinphoneCall ESCall;
extern NSString *const ES_ON_REMOTE... | code_c | code | 513 | null |
<reponame>pikacuh/ink<gh_stars>1-10
/*
* Copyright 2018 Google LLC
*
* 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... | code_c | code | 639 | null |
<reponame>SWuchterl/cmssw
#ifndef SiPixelMonitorRecHits_SiPixelRecHitSource_h
#define SiPixelMonitorRecHits_SiPixelRecHitSource_h
// -*- C++ -*-
//
// Package: SiPixelMonitorRecHits
// Class : SiPixelRecHitSource
//
/**
Description: header file for Pixel Monitor Rec Hits
Usage:
see description
*/
//
/... | code_c | code | 716 | null |
//
// Created by <NAME> on 2/7/20.
//
#ifndef RUNESIM_CARD_H
#define RUNESIM_CARD_H
#include "action.h"
#define K_NONE 0x00000000000000
#define K_FEARSOME 0x0000000000000001
#define K_BURST 0x0000000000000002
#define K_OVERWHELM 0x0000000000000004
#define K_LIFESTEAL 0x0000000000000008
#define K_EPHEMERAL 0x00000000... | code_c | code | 1,557 | null |
<filename>libnova/src/precession.c<gh_stars>0
/*
* 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 your option) any later version.
*
* T... | code_c | code | 1,663 | null |
<gh_stars>0
/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* Copyright (c) Schrodinger, LLC.
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice... | code_c | code | 1,746 | null |
<filename>zircon/third_party/ulib/musl/src/signal/sigrtmin.c
int __libc_current_sigrtmin(void) {
return 35;
}
| code_c | code | 32 | null |
<gh_stars>1-10
//
// DHMineViewModel.h
// XcodeAutoPackage
//
// Created by Daniel on 2020/7/26.
// Copyright © 2020 Daniel. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface DHMineViewModel : NSObject
/// 数据源
@property (nonatomic, strong) NSMutableArray *dataSource;
... | code_c | code | 166 | null |
<filename>release/src-ra-4300/linux/linux-2.6.36.x/arch/arm/plat-mxc/include/mach/iomux-v3.h<gh_stars>1-10
/*
* Copyright (C) 2009 by <NAME> Phytec Messtechnik GmbH,
* <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as p... | code_c | code | 1,102 | null |
<reponame>kbore/pbis-open
/*
* Copyright © BeyondTrust Software 2004 - 2019
* 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/lic... | code_c | code | 1,399 | null |
/*
** my_str_isnum.c for my_str_isnum in /home/RODRIG_1/rendu/Piscine_C_J07/lib/my
**
** Made by <NAME>
** Login <<EMAIL>>
**
** Started on Tue Oct 7 17:53:47 2014 <NAME>
** Last update Wed Oct 8 13:11:21 2014 <NAME>
*/
int my_str_isnum(char *str)
{
}
| code_c | code | 74 | null |
#ifndef UI_CONNECT_H
#define UI_CONNECT_H
#include <QWidget>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "communication.h"
namespace Ui {
class ui_connect;
}
class ui_connect : public QWidget
{
Q_OBJECT
public:
explicit ui_connect(QWidget *parent = 0);
~ui_conne... | code_c | code | 318 | null |
/**
* MojoDDS; tools for dealing with DDS files.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by <NAME>.
*/
// Specs on DDS format: http://msdn.microsoft.com/en-us/library/bb943991.aspx/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
... | code_c | code | 4,573 | null |
<reponame>whoisbma/CollisionDetection_OF
#pragma once
#include "ofMain.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePre... | code_c | code | 452 | null |
#ifndef LIBGAV1_SRC_DSP_CONSTANTS_H_
#define LIBGAV1_SRC_DSP_CONSTANTS_H_
// This file contains DSP related constants that have a direct relationship with
// a DSP component.
#include <cstdint>
#include "src/utils/constants.h"
namespace libgav1 {
enum {
// Weights are quadratic from '1' to '1 / block_size', scal... | code_c | code | 364 | null |
<filename>Blips/Blips/AFBlip/Video Capture/Filters/AFBlipElegantFilter.h
//
// AFBlipElegantFilter.h
// Blips
//
// Created by <NAME> on 2014-08-26.
// Copyright (c) 2014 AF-Apps. All rights reserved.
//
#import "GPUImageLookupFilter.h"
@interface AFBlipElegantFilter : GPUImageLookupFilter
@end | code_c | code | 86 | null |
/*
MBAPI
MBAppKit
Copyright © 2018-2021 RFUI.
https://github.com/RFUI/MBAppKit
Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
#import <RFAPI/RFAPI.h>
/**
MBAPI 在 RFAPI 的基础上,
- 基于 view controller 的请求管理
使用
应用应该创建 MBAPI 的子类,推荐在 onInit 中进行如下设置:
1. 载入 API defines
2. 设置 def... | code_c | code | 1,804 | null |
// do some checks to make sure at least on sane configuration is defined
#if !defined(__AVR__) && !defined(USE_SERCMD) && !defined(USE_FTDI) && !defined(USE_GPIO)
#error at least one of __AVR__, USE_SERCMD, USE_FTDI or USE_GPIO must be defined!
#endif
// headers
#include <stdio.h>
#include <stdlib.h>
#include <string.... | code_c | code | 8,038 | null |
<filename>Source/KWS/kws.h
/*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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 Licens... | code_c | code | 382 | null |
//--------------------------------------------------------------------------------------
// File: Sprite.h
//
// Sprite class definition. This class provides functionality to render sprites, at a given position and scale.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License (MIT).
//----... | code_c | code | 972 | null |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SEARCH_ENGINES_SEARCH_ENGINE_TYPE_H_
#define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_ENGINE_TYPE_H_
// Enum to record the user's ... | code_c | code | 553 | null |
<gh_stars>100-1000
float4x4 combinedMat : register(c0);
float4x4 worldMat : register(c4);
float3x3 normalMat : register(c8);
float4 matCol : register(c12);
float4 surfProps : register(c13);
float4 fogData : register(c14);
float4 ambientLight : register(c15);
#define surfAmbient (surfProps.x)
#define surfSpecular ... | code_c | code | 226 | null |
#pragma once
#include <frc/Compressor.h>
#include <frc/DoubleSolenoid.h>
#include <ctre/Phoenix.h>
#include <AHRS.h>
#include <CORERobotLib.h>
#include <COREFramework/COREScheduler.h>
#include <frc/Compressor.h>
#include <frc/DoubleSolenoid.h>
#include <frc/geometry/Pose2d.h>
#include <frc/geometry/Rotation2d.h>
#inc... | code_c | code | 713 | null |
/*
* Input Visitor
*
* Copyright (C) 2012-2017 Red Hat, Inc.
* Copyright IBM, Corp. 2011
* Copyright (C) 2019 osy
*
* Authors:
* <NAME> <<EMAIL>>
* osy <<EMAIL>>
*
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
* See the COPYING.LIB file in the top-level direc... | code_c | code | 4,794 | null |
<reponame>lydiau/GISGraphics
// MyLine1.h: interface for the CMyLine class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYLINE1_H__75F9F9F7_DC2B_4C8C_A395_B3E838F1A780__INCLUDED_)
#define AFX_MYLINE1_H__75F9F9F7_DC2B_4C8C_A395_B3E838F1A780__INCLUDED_
#if _MSC_VER > 1000
... | code_c | code | 250 | null |
<reponame>AhmedElmougy/ADCTest<filename>LDELAY_Program.c<gh_stars>1-10
/*
* File : LDELAY_Program.c
* Description : This file includes delay service implementations for Atmega32
* Author : <NAME> Embedded SW Engineer
* Date : 23/6/2019
* Git account : https://github.com/AhmedElmougy
* mail ... | code_c | code | 605 | null |
<gh_stars>0
#include "twi-slave.h"
#include "water.h"
#include "motor.h"
#include "debug.h"
#include <util/twi.h>
#include <util/delay.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define LOCKI() uint8_t sreg = SREG; cli()
#defi... | code_c | code | 3,091 | null |
/*
* Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENS... | code_c | code | 331 | null |
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(net_mqtt, LOG_LEVEL_ERR);
#include <net/mqtt_legacy.h>
#include "mqtt_pkt.h"
#include <net/net_ip.h>
#include <net/net_pkt.h>
#include <net/net_app.h>
#include <net/buf.h>
#include <e... | code_c | code | 4,939 | null |
<reponame>b1rger/sway<filename>sway/commands/force_focus_wrapping.c
#include <strings.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "util.h"
struct cmd_results *cmd_force_focus_wrapping(int argc, char **argv) {
struct cmd_results *error =
checkarg(argc, "force_focus_wrapping", EXPECTED_EQUAL_TO, 1... | code_c | code | 162 | null |
<reponame>holtzermann17/Noosphere
/******************************************************************************
A rank multimap. Takes key values (0, 1.0] and can store more than one value
per key (handy for storing search results with the same rank!)
Features:
- smart sizing and linear probing, based on opt... | code_c | code | 1,205 | null |
/* mpicoder.c - Coder for the external representation of MPIs
* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fo... | code_c | code | 3,406 | null |
<filename>King_Cobra-C_Interpreter/compiler.h
#ifndef kc_compiler_h
#define kc_compiler_h
#include "object.h"
#include "vm.h"
/**
* The function that calls and pieces the functions of the compiler together and runs.
* Think of this as the "main" method of the compiler.
*/
ObjFunction* compile(const char* source);
v... | code_c | code | 100 | null |
<filename>src/platform/PalmSystemWebOS.h
// Copyright (c) 2014-2018 LG Electronics, 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
/... | code_c | code | 763 | null |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <unistd.h> // close()
#include <net/if.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <poll.h>
#include <fcntl.h>
#include "main.h"... | code_c | code | 1,259 | null |
<filename>aws-cpp-sdk-panorama/include/aws/panorama/model/PackageImportJob.h
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/panorama/Panorama_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/pano... | code_c | code | 2,262 | null |
<filename>rocket.h
#pragma once
#include "missle.h"
class Rocket: public Entity {
protected:
bool engineOn = false;
float springiness = 0.5;
float throttle = 0.3;
float engineISP = 10;
sf::Texture texture1;
public:
Rocket(std::string type, float life, float damage, sf::Vector2f position, ... | code_c | code | 775 | null |
/**
* Class to help read in multiple command line (flagged) parameters
*
* TO DO:
* Error Messages
*/
#ifndef ICE_PARAM
#define ICE_PARAM
#include <stdlib.h>
#include <vector>
#include <string>
#include <map>
#include <iostream>
#include "string_helper.h"
using namespace std;
typedef short unsigned int sui;
typ... | code_c | code | 642 | null |
<gh_stars>1-10
/*
* Copyright (C) 2021 Huawei Device 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 ... | code_c | code | 2,779 | null |
#include <string>
#include <sstream>
struct Operation{
Operation( ) : m_by( 0 ) {};
Operation( int by ) : m_by( by ) {};
virtual std::string info() const{
return "Operation";
}
virtual bool insertion() const {
return false;
}
virtual bool deletion() const {
return false... | code_c | code | 691 | null |
#include <stdio.h>
#include <errno.h> // for "errno"
#include <stdarg.h> // for "可变参"
#include <string.h>
#include <stdlib.h>
#include <syslog.h> // for syslog()
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h> // for inet_ntop()/inet_pton()
#include "isshe_error.h... | code_c | code | 1,098 | null |
<reponame>copperteal/leetcode-solutions
int memo[46];
/* memoized divide and conquer */
int
climbStairs(int n)
{
if (n < 3) {
return n;
}
if (memo[n] == 0) {
memo[n] = climbStairs(n-1) + climbStairs(n-2);
}
return memo[n];
}
| code_c | code | 67 | null |
<filename>src/hssh/local_topological/boundary/shrink_and_stretch.h<gh_stars>1-10
/* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of <NAME>, <EMAIL>. Use of th... | code_c | code | 742 | null |
/*
* Copyright 2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _BOARD_H_
#define _BOARD_H_
#include "clock_config.h"
#include "fsl_gpio.h"
/*******************************************************************************
* Definitions
***************************************... | code_c | code | 2,620 | null |
/**
* \file csfm-builder.h
* \defgroup softmaxbuilders softmaxbuilders
* \brief Helper structures to build softmax layers
*
* \details TODO: Create documentation and explain rnns, etc...
*/
#ifndef DYNET_CFSMBUILDER_H
#define DYNET_CFSMBUILDER_H
#include <vector>
#include <string>
#include "dynet/dynet.h"
#inc... | code_c | code | 2,390 | null |
<gh_stars>0
/**
* \file
*
* \brief USART driver extension for AVR XMEGA E.
*
* This file contains XMEGA E specific add on features.
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may u... | code_c | code | 1,940 | null |
#ifndef _BLOCK_SPGEMM_H_
#define _BLOCK_SPGEMM_H_
#include "CombBLAS.h"
namespace combblas
{
template <typename IT,
typename NTA,
typename DERA,
typename NTB,
typename DERB>
struct BlockSpGEMM
{
private:
std::vector<std::vector<SpParMat<IT, NTA, DERA>>> A_blocks_;
std::vector<std::vector<SpParM... | code_c | code | 733 | null |
<reponame>YongJin-Cho/poseidonos
/*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributi... | code_c | code | 1,548 | null |
/*
* fe_memutils.h
* memory management support for frontend code
*
* Copyright (c) 2003-2013, PostgreSQL Global Development Group
*
* src/include/common/fe_memutils.h
*/
#ifndef FE_MEMUTILS_H
#define FE_MEMUTILS_H
/* "Safe" memory allocation functions --- these exit(1) on failure */
extern char *pg_strdup(cons... | code_c | code | 226 | null |
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "StateDelegateDelegate.h"
#include "StateTickDelegateDelegate.h"
#include "ActorStateComponent.generated.h"
class UActorStateComponent;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UActorStateCo... | code_c | code | 526 | null |
int main(int argc, char *argv[])
{
return 77; /* exit code indicating make check that test has been SKIPped */
}
| code_c | code | 32 | null |
<reponame>RiscadoA/Magma<filename>src/Examples/Framework-C/Memory/Deflate.c<gh_stars>1-10
#include <Magma/Framework/Memory/Deflate.h>
#include <Magma/Framework/Memory/Inflate.h>
#include <Magma/Framework/Entry.h>
#include <stdlib.h>
int main(int argc, const char** argv)
{
if (mfInit(argc, argv) != MF_ERROR_OKAY)
a... | code_c | code | 477 | null |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... | code_c | code | 2,896 | null |
<reponame>lzfpljdmt-lzy/compPhy<filename>misc/tests/prangeMemView/test.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <omp.h>
#define LOOPS 1000
#define N 1000
int i, j;
double calcTime(void)
{
struct timeval tim;
gettimeofday(&tim, NULL);
return tim.tv_sec + (1e-6)*tim.tv_us... | code_c | code | 253 | null |
<reponame>NASA-AMMOS/VICAR<filename>vos/p2/sub/lbl_routines/lbl_derived_image.c
/** Copyright (c) 1995, California Institute of Technology **/
/** U. S. Government sponsorship under NASA contract is acknowledged **/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lbl_derived_image... | code_c | code | 16,670 | null |
/**
*** Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by
*** The Board of Trustees of the University of Illinois.
*** All rights reserved.
**/
/* A ComputeGlobalMaster represents a bit of computation that needs to
be done on atoms or groups of atoms on several nodes. It is given
the positions of atoms and... | code_c | code | 2,114 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.