code stringlengths 1.03k 250k | repo_name stringlengths 7 70 | path stringlengths 4 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 1.03k 250k |
|---|---|---|---|---|---|
/**
* \file drawMath.c
* \brief outputs the math of a model as a dot graph
* \author Sarah Keating
*
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SBML, and the latest version of libSBML.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sbml/util/util.h>
... | dilawar/moose-full | dependencies/libsbml-5.9.0/examples/c/drawMath.c | C | gpl-2.0 | 20,197 |
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in th... | upworkstar/AndroidAmazon | sound/soc/msm/qdsp6v2/q6voice.c | C | gpl-2.0 | 133,119 |
/*
* Copyright 2005 Eric Anholt
* All Rights Reserved.
*
* 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, mo... | ZHAW-INES/rioxo-uClinux-dist | lib/mesa/src/mesa/drivers/dri/sis/sis6326_state.c | C | gpl-2.0 | 19,463 |
/*****************************************************************************
Copyright (c) 1996, 2010, Innobase Oy. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 o... | cryptdb-org/mysql-5-5-14 | storage/innobase/dict/dict0load.c | C | gpl-2.0 | 65,630 |
/* arch/arm/mach-rk29/vpu.c
*
* Copyright (C) 2010 ROCKCHIP, Inc.
* author: chenhengming chm@rock-chips.com
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under thos... | crewrktablets/rk3x_kernel_3.10 | arch/arm/mach-rockchip/vcodec_service.c | C | gpl-2.0 | 73,376 |
/* cast5.c */
/*
This file is part of the AVR-Crypto-Lib.
Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or... | nerilex/avr-crypto-lib | cast5/cast5.c | C | gpl-2.0 | 12,161 |
/*********************************************************************************************
* Fichero: Bmp.c
* Autor:
* Descrip: Funciones de control y visualizacion del LCD
* Version:
*********************************************************************************************/
/*--- Archivos cabecera ---... | UnizarCurryMicroSystems/ProyectoHardware | PH_3/Bmp.c | C | gpl-2.0 | 8,483 |
/*
* USI wm-bn-bm-01-5(bcm4329) sdio wifi power management API
* evb gpio define
* A10 gpio define:
* usi_bm01a_wl_pwr = port:PH12<1><default><default><0>
* usi_bm01a_wlbt_regon = port:PI11<1><default><default><0>
* usi_bm01a_wl_rst = port:PI10<1><default><default><0>
* usi_bm01a_wl_wake ... | sdugit/linux-3.0_7025 | drivers/mmc/mmc-pm/mmc_pm_usi_bm01a.c | C | gpl-2.0 | 5,469 |
/*
* board/omap3621_boxer/max17042.c
*
* Copyright (C) 2010 Barnes & Noble, Inc.
* Intrinsyc Software International, Inc. on behalf of Barnes & Noble, Inc.
*
* Max17042 Gas Gauge initialization for u-boot
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | astarasikov/uboot-bn-nook-hd-fastboot | drivers/max17042.c | C | gpl-2.0 | 30,417 |
/*
*
* This source code is released for free distribution under the terms of the
* GNU General Public License.
*
* This module contains functions for generating tags for Rust files.
*/
/*
* INCLUDE FILES
*/
#include "general.h" /* must always come first */
#include "main.h"
#include <string.h>
#include "keyw... | TheGameCreators/AGKIDE | tagmanager/ctags/rust.c | C | gpl-2.0 | 22,209 |
/*
* 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 licenses this file to You under the Apache License, Version 2.0
* (the "License")... | skyHALud/codenameone | Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/luni/src/main/native/luni/shared/dblparse.c | C | gpl-2.0 | 28,372 |
/**
******************************************************************************
* @file fatfs.c
* @brief Code for fatfs applications
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
* All right... | cafe-alpha/wascafe | v13/stm32_bup_test/r07c_firm_F446RE/Src/fatfs.c | C | gpl-2.0 | 1,568 |
/* MMIX-specific support for 64-bit ELF.
Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com>
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms... | guoqingzhang/binutils-coffee | bfd/elf64-mmix.c | C | gpl-2.0 | 94,117 |
/*
*************************************************************************************
* Linux
* USB Host Controller Driver
*
* (c) Copyright 2006-2012, SoftWinners Co,Ld.
* All Rights Reserved
*
* File Name : sw_hcd_virt_hub.c
*
* Author : ja... | mozilla-b2g/kernel_flatfish | drivers/usb/sun7i_usb/hcd/core/sw_hcd_virt_hub.c | C | gpl-2.0 | 15,810 |
/*
* This file contains work-arounds for many known PCI hardware
* bugs. Devices present only on certain architectures (host
* bridges et cetera) should be handled in arch-specific code.
*
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
*
* Copyright (c) 1999 Martin Mares <mj@ucw... | uwehermann/easybox-904-lte-firmware | linux/linux-2.6.32.32/drivers/pci/quirks.c | C | gpl-2.0 | 94,163 |
/*
* drivers/media/video/omap/gfx_tiler.c
*
* Copyright (C) 2010 Texas Instruments.
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*
*/
#include <linux/errno.h>
#include <l... | michaellass/lenovo_a1_07_kernel | drivers/media/video/omapgfx/gfx_tiler.c | C | gpl-2.0 | 4,322 |
/*
CMTP implementation for Linux Bluetooth stack (BlueZ).
Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org>
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
published by the Free Software Foundation;
TH... | 12019/Dorimanx-SG2-I9100-Kernel | net/bluetooth/cmtp/sock.c | C | gpl-2.0 | 5,532 |
/****************************************************************************
* Ralink Tech Inc.
* 4F, No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu, Taiwan, R.O.C.
* (c) Copyright 2002, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublished work and the
* ... | silver-alx/ac100_kernel | drivers/net/wireless/DPA_RT3070_WiFiBTCombo/NETIF/os/linux/rt_profile.c | C | gpl-2.0 | 2,320 |
/* main-rc6-test.c */
/*
This file is part of the AVR-Crypto-Lib.
Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either versi... | nerilex/avr-crypto-lib | test_src/main-rc6-test.c | C | gpl-2.0 | 2,347 |
/*
* Copyright (C) 2013-2015 Kay Sievers
* Copyright (C) 2013-2015 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Copyright (C) 2013-2015 Daniel Mack <daniel@zonque.org>
* Copyright (C) 2013-2015 David Herrmann <dh.herrmann@gmail.com>
* Copyright (C) 2013-2015 Linux Foundation
* Copyright (C) 2014-2015 Djalal ... | TeamFahQ/kernel_linux_next | ipc/kdbus/bus.c | C | gpl-2.0 | 14,169 |
/*
* CPUFreq sakuractive governor
*
* Copyright (C) 2011 sakuramilk <c.sakuramilk@gmail.com>
*
* Based on hotplug governor
* Copyright (C) 2010 Texas Instruments, Inc.
* Mike Turquette <mturquette@ti.com>
* Santosh Shilimkar <santosh.shilimkar@ti.com>
*
* Based on ondemand governor
* Copyright (C) 2001 ... | k2wl/kernel-gt-i9082-stock-based | drivers/cpufreq/cpufreq_sakuractive.c | C | gpl-2.0 | 22,646 |
/* SCTP kernel implementation
* (C) Copyright IBM Corp. 2001, 2004
* Copyright (c) 1999-2000 Cisco, Inc.
* Copyright (c) 1999-2001 Motorola, Inc.
* Copyright (c) 2001 Intel Corp.
* Copyright (c) 2001 Nokia, Inc.
* Copyright (c) 2001 La Monte H.P. Yarroll
*
* These functions manipulate an sctp event. T... | jeffegg/beaglebone | net/sctp/ulpevent.c | C | gpl-2.0 | 32,388 |
/* Miscellaneous utilities for GIMPLE streaming. Things that are used
in both input and output are here.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Contributed by Doug Kwan <dougkwan@google.com>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the t... | kito-cheng/gcc | gcc/lto-streamer.c | C | gpl-2.0 | 11,719 |
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | JideTechnology/remixos-kernel | drivers/staging/rtl8812au/hal/phydm/phydm_acs.c | C | gpl-2.0 | 41,700 |
/*
* linux/drivers/video/omapfb/boot_progressbar.c
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
*
* 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
* published by the Free Software Found... | dhiru1602/android_kernel_samsung_latona | drivers/video/omap2/omapfb/omapfb-progressbar.c | C | gpl-2.0 | 6,333 |
/*
* empathy-streamed-media-factory.c - Source for EmpathyStreamedMediaFactory
* Copyright (C) 2008-2011 Collabora Ltd.
* @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | dinoboy197/Empathy | src/empathy-streamed-media-factory.c | C | gpl-2.0 | 8,514 |
/*
IGraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... | igraph/igraph | tests/unit/igraph_neighborhood_size.c | C | gpl-2.0 | 3,528 |
/*
* linux/mm/vmscan.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*
* Swap reorganised 29.12.95, Stephen Tweedie.
* kswapd added: 7.1.96 sct
* Removed kswapd_ctl limits, and swap out as many pages as needed
* to bring the system back to freepages.high: 2.4.97, Rik van Riel.
* Zone aware k... | philenotfound/belkin-wemo-linux-2.6.21.x | mm/vmscan.c | C | gpl-2.0 | 48,319 |
/* Install given floating-point environment and raise exceptions.
Copyright (C) 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@debian.org>, 2000
The GNU C Library is free software; you can redistribute it and/or
modify it under the te... | ystk/debian-eglibc | ports/sysdeps/hppa/fpu/feupdateenv.c | C | gpl-2.0 | 1,504 |
/*
protocol_subnet.c -- handle the meta-protocol, subnets
Copyright (C) 1999-2005 Ivo Timmermans,
2000-2012 Guus Sliepen <guus@tinc-vpn.org>
2009 Michael Tokarev <mjt@tls.msk.ru>
This program is free software; you can redistribute it and/or modify
it under the t... | jed1/tinc | src/protocol_subnet.c | C | gpl-2.0 | 6,984 |
/*
* rev-parse.c
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "commit.h"
#include "refs.h"
#include "quote.h"
#include "builtin.h"
#include "parse-options.h"
#include "diff.h"
#include "revision.h"
#include "split-index.h"
#define DO_REVS 1
#define DO_NOREV 2
#define DO_FLAGS 4
#define DO... | sunny256/git | builtin/rev-parse.c | C | gpl-2.0 | 20,118 |
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2010 Lennart Poettering
systemd 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... | freedesktop-unofficial-mirror/systemd__systemd-stable | src/core/namespace.c | C | gpl-2.0 | 7,610 |
/**
* TODO: legal stuff
*
* purple
*
* Purple is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of ... | dmoonfire/prpltwtr-old | src/prpltwtr/prpltwtr_auth.c | C | gpl-2.0 | 18,305 |
/*
* net/dccp/ipv4.c
*
* An implementation of the DCCP protocol
* Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* ... | xiandaicxsj/copyKvm | net/dccp/ipv4.c | C | gpl-2.0 | 28,989 |
/* Minimal malloc implementation for interposition tests.
Copyright (C) 2016-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 t... | ctyler/spo600-glibc | malloc/tst-interpose-aux.c | C | gpl-2.0 | 6,803 |
/*
* linux/fs/ext4/super.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/inode.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Big-endian to little-endian... | rkharwar/ubuntu-saucy-powerpc | fs/ext4/super.c | C | gpl-2.0 | 158,220 |
/* 32-bit ELF support for S+core.
Copyright (C) 2006-2017 Free Software Foundation, Inc.
Contributed by
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
Pei-Lin Tsai (pltsai@sunplus.com)
This file is part of BFD, the Binary File Descriptor library.
This program is free soft... | totalspectrum/binutils-propeller | bfd/elf32-score.c | C | gpl-2.0 | 157,881 |
/* gsm_map_summary.c
* Routines for GSM MAP Statictics summary window
*
* Copyright 2004, Michael Lum <mlum [AT] telostech.com>
* In association with Telos Technology Inc.
*
* Modified from summary_dlg.c
*
* $Id: gsm_map_summary.c 48448 2013-03-21 02:58:59Z wmeier $
*
* Wireshark - Network traffic analyzer
*... | P1sec/LTE_monitor_c2xx | wireshark/ui/gtk/gsm_map_summary.c | C | gpl-2.0 | 12,651 |
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <asm/setup.h>
#include <linux/pagemap.h>
struct st_read_proc {
char *name;
int (*read_proc)(char *, char **, off_t, int, int *, void *);
};
extern unsigned int get_pd_charge_flag(void);
extern unsigned int get_boot_into_recovery_flag(void);
extern unsigne... | Wonfee/huawei_u9508_kernel | fs/proc/app_info.c | C | gpl-2.0 | 1,527 |
/* GStreamer
* Copyright (C) <2009> Руслан Ижбулатов <lrn1986 _at_ gmail _dot_ 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 you... | freedesktop-unofficial-mirror/gstreamer-sdk__gst-plugins-bad | gst/videomeasure/gstvideomeasure.c | C | gpl-2.0 | 2,378 |
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; ei... | sTeeLM/MINIME | toolkit/srpm/SOURCES/cde-2.2.4/lib/DtWidget/EditAreaData.c | C | gpl-2.0 | 49,947 |
/*
* mm/page-writeback.c
*
* Copyright (C) 2002, Linus Torvalds.
* Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
*
* Contains functions related to writing back dirty pages at the
* address_space level.
*
* 10Apr2002 Andrew Morton
* Initial version
*/
#include <linux/kernel.h>
#incl... | andrewwrightt/kernel_moto_shamu | mm/page-writeback.c | C | gpl-2.0 | 76,843 |
/*
* This file is part of wl1271
*
* Copyright (C) 2008-2010 Nokia Corporation
*
* Contact: Luciano Coelho <luciano.coelho@nokia.com>
*
* 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 published by the Free Software Fo... | TouchpadCM/compat-wireless-3.4-rc3-1 | drivers/net/wireless/wl12xx/main.c | C | gpl-2.0 | 147,286 |
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; ei... | sTeeLM/MINIME | toolkit/srpm/SOURCES/cde-2.2.4/lib/DtSvc/DtEncap/Symbolic.c | C | gpl-2.0 | 14,105 |
/*
* Copyright (C) 2011-2014 MediaTek Inc.
*
* 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 published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;... | bq/aquaris-M4.5 | drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c | C | gpl-2.0 | 114,508 |
/*
* linux/fs/super.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* super.c contains code to handle: - mount structures
* - super-block tables
* - filesystem drivers list
* - mount system call
* ... | shankarathi07/linux_samsung_ics | fs/super.c | C | gpl-2.0 | 31,275 |
#include "cmdq_platform.h"
#include "cmdq_core.h"
#include "cmdq_reg.h"
#include <linux/vmalloc.h>
#include <mach/mt_clkmgr.h>
#include <linux/seq_file.h>
#include "smi_debug.h"
#include "m4u.h"
#define MMSYS_CONFIG_BASE cmdq_dev_get_module_base_VA_MMSYS_CONFIG()
typedef struct RegDef {
int offset;
const char *n... | DKingCN/android_kernel_jiayu_s3_h560 | drivers/misc/mediatek/cmdq/mt6752/cmdq_platform.c | C | gpl-2.0 | 23,146 |
/* Copyright (c) 2008-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | paul-xxx/kernel_sony_fuji-3.7 | drivers/char/diag/diagfwd.c | C | gpl-2.0 | 47,466 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_show_tab.c :+: :+: :+: ... | CoZZmOnAvT/42-Piscine-C | d08/tmp/ex06/ft_show_tab.c | C | gpl-3.0 | 1,733 |
/**
* This file is part of Hercules.
* http://herc.ws - http://github.com/HerculesWS/Hercules
*
* Copyright (C) 2012-2015 Hercules Dev Team
* Copyright (C) Athena Dev Teams
*
* Hercules is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... | dor003/Herc | src/common/conf.c | C | gpl-3.0 | 15,602 |
/*
dev: Mickeymouse, Moutarde and Nepta
manager: Word
Copyright © 2011
You should have received a copy of the
GNU General Public License along with this program.
If not, see <http://www.gnu.org/licenses/>.
*/
#include "bullet.h"
/**
* \fn Bullet* createBullet(Tower *tower)
* \brief create a new bullet
* a n... | ycaihua/Tower-Defense-1 | src/tower/bullet.c | C | gpl-3.0 | 1,216 |
/****************************************************************\
* *
* Library for HSP sets (high-scoring segment pairs) *
* *
* Guy St.C. Slater.. mailto:guy@ebi.ac.uk ... | hotdogee/exonerate-gff3 | src/comparison/hspset.c | C | gpl-3.0 | 51,355 |
/*
* Copyright (c) 2000-2005, 2008-2011 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exc... | LubosD/darling | src/configd/SystemConfiguration.fproj/SCDNotifierCancel.c | C | gpl-3.0 | 2,715 |
/* Moonshine - a Lua-based chat client
*
* Copyright (C) 2010 Dylan William Hardison
*
* This file is part of Moonshine.
*
* Moonshine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 o... | bdonlan/moonshine | src/async-queue-test.c | C | gpl-3.0 | 2,762 |
/*
* linux/kernel/math/div.c
*
* (C) 1991 Linus Torvalds
*/
/*
* temporary real division routine.
*/
#include <linux/math_emu.h>
static void shift_left(int * c)
{
__asm__ __volatile__("movl (%0),%%eax ; addl %%eax,(%0)\n\t"
"movl 4(%0),%%eax ; adcl %%eax,4(%0)\n\t"
"movl 8(%0),%%eax ; adcl %%eax,8(%0)\n\t... | honyyang/Linux-0.12 | linux-0.12/kernel/math/div.c | C | gpl-3.0 | 2,099 |
/*
* Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | GNOME/grits | examples/volume/volume.c | C | gpl-3.0 | 5,906 |
/*
* Copyright (C) 2008-2009 Martin Willi
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any... | ccwf2006/one-key-ikev2-vpn | strongswan-5.5.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c | C | gpl-3.0 | 4,765 |
/*
Creative Machines Lab Aracna Firmware
aracna.c - Main Program File
Copyright (c) Creative Machines Lab, Cornell University, 2012 - http://www.creativemachines.org
Authored by Jeremy Blum - http://www.jeremyblum.com
LICENSE: GPLv3
This program is free software: you can redistribute it and/or modify
it under t... | booi/aracna | aracna-embedded-code/aracna/aracna.c | C | gpl-3.0 | 6,751 |
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2005, Herve Drolon, FreeImage T... | AlienCowEatCake/ImageViewer | src/ThirdParty/OpenJPEG/openjpeg-2.4.0/src/lib/openmj2/image.c | C | gpl-3.0 | 3,859 |
/*
FreeRTOS V7.3.0 - Copyright (C) 2012 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | ilikecake/Rocket-controller | software/freertos/freertos/Source/portable/MPLAB/PIC32MX/port.c | C | gpl-3.0 | 10,779 |
/*
* PktGen by Steffen Schulz © 2009
*
* Braindead TCP server that waits for a packet and then
* - replies with stream of packets
* - with inter-packet delays read as integers from stdin
*
* Disables Nagle Algo to prevent buffering in local network stack
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <... | chandanmogal/ipsec-tfc | code/perfect-hiding-cc/tcpgen.c | C | gpl-3.0 | 2,149 |
/* armor.c - Armor filters
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2010
* Free Software Foundation, Inc.
*
* Author: Timo Schulz
*
* This file is part of OpenCDK.
*
* The OpenCDK library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | freedesktop-unofficial-mirror/gstreamer-sdk__gnutls | lib/opencdk/armor.c | C | gpl-3.0 | 21,279 |
// tutorial06.c
// A pedagogical video player that really works!
//
// Code based on FFplay, Copyright (c) 2003 Fabrice Bellard,
// and a tutorial by Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de)
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
// Use
//
// gcc -o tutorial02 tutorial02.c -lavutil ... | lopesivan/ffmpeg-with-c-and-cpp | tutorial/ffmpegtutorial/tutorial06.c | C | gpl-3.0 | 24,098 |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2019 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as publ... | RobLoach/RetroArch | gfx/drivers_context/sixel_ctx.c | C | gpl-3.0 | 5,106 |
/* Copyright (c) 2008, 2009
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
* Micah Cowan (micah@cowan.name)
* Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
* Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
*... | maire/screen | src/teln.c | C | gpl-3.0 | 11,094 |
/* str*()-like functions for raw memory "lines" (non-NUL terminated strings).
*
* Especially when we're parsing input in an ESL_BUFFER, we need to be
* able to parse non-writable raw memory buffers. Because an
* ESL_BUFFER may have memory mapped a file, we cannot assume that the
* input is NUL-terminated, and we ... | Janelia-Farm-Xfam/Bio-HMM-Logo | src/easel/esl_mem.c | C | gpl-3.0 | 29,498 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* A 32-bit implementation of the NIST P-256 elliptic curve. */
#include <string.h>
#include "prtypes.h"
#includ... | thespooler/nss | lib/freebl/ecl/ecp_256_32.c | C | mpl-2.0 | 50,400 |
/*
This file is part of SUPPL - the supplemental library for DOS
Copyright (C) 1996-2000 Steffen Kaiser
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 ... | joyent/sdcboot | freedos/source/command/suppl/src/eestrcon.c | C | mpl-2.0 | 2,977 |
/* Swfdec
* Copyright (C) 2007-2008 Benjamin Otte <otte@gnome.org>
*
* 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) any lat... | freedesktop-unofficial-mirror/swfdec__swfdec | swfdec/swfdec_video_movie_as.c | C | lgpl-2.1 | 4,812 |
/* GTK - The GIMP Toolkit
* Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
*
* 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... | Adamovskiy/gtk | gtk/gtkcssselector.c | C | lgpl-2.1 | 61,597 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "librepo/version.h"
#include "fixtures.h"
#include "testsys.h"
#include "test_version.h"
START_TEST(test_version_check_macro)
{
ck_assert(LR_VERSION_CHECK(LR_VERSION_MAJOR,
LR_VERSION_MINOR,
... | Tojaj/librepo | tests/test_version.c | C | lgpl-2.1 | 1,082 |
/*
题目:定义Fibonacci 数列如下:
/ 0 n=0
f(n)= 1 n=1
\ f(n-1)+f(n-2) n=2
输入n,用最快的方法求该数列的第n 项。
分析:在很多C 语言教科书中讲到递归函数的时候,都会用Fibonacci 作为例子。
因此很多程序员对这道题的递归解法非常熟悉,但....呵呵,你知道的。。
ANSWER:
This is the traditional problem of application of mathematics...
let A=
{1 1}
{1 0}
f(n) = A^(n-1)[0,0]
this gives a O(log n) solution.
int f(int n)... | lolodo/algorithm | C/windows_c/src/Case019.c | C | lgpl-2.1 | 2,261 |
/*
Copyright (C) 2018 Daniel Schultz
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option)... | wbhart/flint2 | nmod_mpoly/mpolyd.c | C | lgpl-2.1 | 10,274 |
/* radare - LGPL - Copyright 2010-2019 - pancake, maijin */
#include <r_types.h>
#include <r_list.h>
#include <r_flag.h>
#include <r_core.h>
#define USE_R2 1
#include <spp/spp.h>
static bool is_valid_project_name(const char *name) {
int i;
if (r_str_endswith (name, ".zip")) {
return false;
}
for (i = 0; name[i]... | ret2libc/radare2 | libr/core/project.c | C | lgpl-3.0 | 23,220 |
/*
* Copyright © 2009 Adrian Johnson
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, pub... | zwcloud/CairoSharp | source/Native/cairo/test/mesh-pattern-accuracy.c | C | lgpl-3.0 | 3,430 |
/**
* Copyright 2005-2007 ECMWF
*
* Licensed under the GNU Lesser General Public License which
* incorporates the terms and conditions of version 3 of the GNU
* General Public License.
* See LICENSE and gpl-3.0.txt for details.
*/
/***************************************************************************
* Enrico ... | erdc-cm/grib_api | src/action_class_write.c | C | lgpl-3.0 | 5,456 |
/* tio_str-- Test file for mpc_inp_str and mpc_out_str.
Copyright (C) 2009, 2011, 2013, 2014 INRIA
This file is part of GNU MPC.
GNU MPC 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 o... | evaautomation/mpc | tests/tio_str.c | C | lgpl-3.0 | 6,507 |
/**
******************************************************************************
* @file DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c
* @author MCD Application Team
* @version V1.3.0
* @date 18-December-2015
* @brief Main Interrupt Service Routines.
* This file provides template for al... | hyller/CodeLibrary | stm32cubef1/STM32Cube_FW_F1_V1.3.0/Projects/STM3210E_EVAL/Examples/DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c | C | unlicense | 5,715 |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2001, 2010 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "db_config.h"
#include "db_int.h"
/*
* __os_id --
* Return the current process ID.
*
* PUBLIC: void __os_id __P((DB_ENV *, pid_t *, db_threadid_t*... | racker/omnibus | source/db-5.0.26.NC/os/os_pid.c | C | apache-2.0 | 1,092 |
/*
* Copyright (c) 2018 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <misc/printk.h>
#include <board.h>
#include <gpio.h>
#include <i2c.h>
#include <spi.h>
#include <sensor.h>
/* #define ARGONKEY_TEST_LOG 1 */
#define WHOAMI_REG 0x0F
#define WHOAMI_ALT_REG 0x4... | mbolivar/zephyr | samples/boards/96b_argonkey/src/main.c | C | apache-2.0 | 8,806 |
#include "config/config.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/errno.h>
#include <string.h>
#include "dispatch_test.h"
#define _test_print(_file, _line, _desc, \
_expr, _fmt1, _val1, _fmt2, _val... | JackieXie168/libdispatch | doc/opengcd/trunk/libdispatch-197/testing/dispatch_test.c | C | apache-2.0 | 4,442 |
/*
* OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI)
*
* Website: http://www.ocilib.net
*
* Copyright (c) 2007-2016 Vincent ROGIER <vince.rogier@ocilib.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | ysmgigi/dbss | src/ocilib-4.2.1/src/exception.c | C | apache-2.0 | 30,607 |
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT plantower_pms7003
/* sensor pms7003.c - Driver for plantower PMS7003 sensor
* PMS7003 product: http://www.plantower.com/en/content/?110.html
* PMS7003 spec: http://aqicn.org/air/view/sensor/spec/pms7003.pd... | Vudentz/zephyr | drivers/sensor/pms7003/pms7003.c | C | apache-2.0 | 4,354 |
/*
socket.c
Created: Feb 2001 by Philip Homburg <philip@f-mnx.phicoh.com>
Open a TCP connection
*/
#define _POSIX_C_SOURCE 2
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <... | veritas-shine/minix3-rpi | minix/commands/swifi/socket.c | C | apache-2.0 | 5,758 |
/*
* Copyright (c) 2018 Makaio GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <shell/shell_rtt.h>
#include <init.h>
#include <SEGGER_RTT.h>
#include <logging/log.h>
BUILD_ASSERT_MSG(!(IS_ENABLED(CONFIG_LOG_BACKEND_RTT) &&
COND_CODE_0(CONFIG_LOG_BACKEND_RTT_BUFFER, (1), (0))),
"Conflicting log RTT ... | ldts/zephyr | subsys/shell/shell_rtt.c | C | apache-2.0 | 2,990 |
#include "private.h"
#include <Elementary.h>
#include "config.h"
#include "termio.h"
#include "media.h"
#include "options.h"
#include "options_wallpaper.h"
#include "extns.h"
#include "media.h"
#include "main.h"
#include <sys/stat.h>
typedef struct _Background_Item
{
const char *path;
Eina_Bool selected;
Elm... | ihorlaitan/terminology | src/bin/options_wallpaper.c | C | bsd-2-clause | 15,837 |
/****************************************************************************
* arch/arm/src/nuc1xx/nuc_lowputc.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | IUTInfoAix/terrarium_2015 | nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c | C | bsd-2-clause | 12,821 |
/*
* Copyright (c) 2001 Alexander Kabaev
* 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 con... | dplbsd/zcaplib | head/lib/libkse/thread/thr_rtld.c | C | bsd-2-clause | 6,843 |
/* $Id$ */
#include "platform.h"
#include "di_defs.h"
#include "pc.h"
#include "dqueue.h"
#include "adapter.h"
#include "entity.h"
#include "um_xdi.h"
#include "um_idi.h"
#include "debuglib.h"
#include "divasync.h"
#define DIVAS_MAX_XDI_ADAPTERS 64
/* -----------------------------------------------------------------... | andrewjylee/omniplay | linux-lts-quantal-3.5.0/drivers/isdn/hardware/eicon/um_idi.c | C | bsd-2-clause | 24,027 |
/* -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... | xianyi/OpenBLAS | relapack/src/zsytrf_rec2.c | C | bsd-3-clause | 13,490 |
/*============================================================================*
* *
* This file is part of the Zoto Software suite. *
* *
* Copyright (C) 2004 Zoto, Inc. 123 South Hudson, OKC, OK 73102 *
... | kordless/zoto-server | zulu-2.0/python_module/zsp_packets.c | C | bsd-3-clause | 3,830 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c
Label Definition File: CWE90_LDAP_Injection__w32.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: connect_socket Read data using a connect socket (clie... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE90_LDAP_Injection/CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c | C | bsd-3-clause | 8,856 |
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* MT SCP RV32i configuration */
#include "cache.h"
#include "csr.h"
#include "hooks.h"
#include "registers.h"
#define SCP_SRAM_END (CONFIG_IPC_SH... | coreboot/chrome-ec | baseboard/mtscp-rv32i/baseboard.c | C | bsd-3-clause | 1,621 |
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 7.00.0499 */
/* at Mon Dec 01 09:02:10 2008
*/
/* Compiler settings for e:/builds/tinderbox/XR-Trunk/WINNT_5.2_Depend/mozilla/other-licenses/ia2/Accessibl... | leighpauls/k2cro4 | third_party/xulrunner-sdk/win/include/accessibility/Accessible2_i.c | C | bsd-3-clause | 1,711 |
/*
* @description Expression is always true via if (unsigned int >= 0)
*
* */
#include "std_testcase.h"
#ifndef OMITBAD
void CWE571_Expression_Always_True__unsigned_int_01_bad()
{
/* Ensure (0 <= intBad < UINT_MAX) and that uIntBad is pseudo-random */
unsigned int uIntBad = (unsigned int)(ra... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE571_Expression_Always_True/CWE571_Expression_Always_True__unsigned_int_01.c | C | bsd-3-clause | 1,609 |
/*
* Copyright (c) 2013 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | windyuuy/opera | chromium/src/third_party/libvpx/source/libvpx/vp9/common/vp9_convolve.c | C | bsd-3-clause | 13,122 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c
Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml
Template File: sources-sinks-64b.tmpl.c
*/
/*
* @description
* CWE: 457 Use of Uninitialized Variable
* BadSource: no_init Don't initi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c | C | bsd-3-clause | 1,932 |
/***********************************************************************
* Copyright (c) 2009, Secure Endpoints 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:
*
* - Redistributions... | pexip/os-heimdal | lib/roken/simple_exec_w32.c | C | bsd-3-clause | 10,338 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate u... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c | C | bsd-3-clause | 4,955 |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | miselin/grpc | src/core/lib/surface/completion_queue.c | C | bsd-3-clause | 16,842 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.