id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
018d1e58d0898f81d68afa25ff43e0fb4467ad62864af3c823918ca09b2553cf
/******************************************************* * query.h * author:ÌìÃü½£Ö÷ * copyright(c) 2015 - ~: ÇëÔĶÁ LICENSE Îļþ * Description(ÃèÊö):²éѯº¯Êý ******************************************************/ #pragma once #ifndef QUERY_H #define QUERY_H #include "command_cycle_defination.h" boo...
C
Windows/src/query.h
Sword-Destiny/destinyDB
gpl-2.0
3,814
156
codeparrot/github-code
58920aaab0b0846f8d2337f984fd45455a1abb88345d92fef94bc33800d19823
package e.scm; import java.io.*; import java.nio.file.*; import java.util.*; import java.util.regex.*; import e.util.*; public class Patch { private ArrayList<String> lines; private ArrayList<String> errors; private LineMapper lineMapper; public static final class HunkRange { /** ...
Java
src/e/scm/Patch.java
software-jessies-org/scm
gpl-2.0
6,750
162
codeparrot/github-code
b16fafea0b33cc13442a48fea581bd04829e49dac35b84a5277cab3ed9f0ab07
package com.sandlex.run2gather.runkeeper.model.types; import com.google.gson.annotations.SerializedName; /** * author: Alexey Peskov */ public enum ActivityType { RUNNING("Running"), CYCLING("Cycling"), MOUNTAIN_BIKING("Mountain Biking"), WALKING("Walking"), HIKING("Hiking"), DOWNHILL_SKIIN...
Java
src/main/java/com/sandlex/run2gather/runkeeper/model/types/ActivityType.java
sandlex/run2gather
gpl-2.0
1,076
46
codeparrot/github-code
085bcd4d0f83ac681f4a5e5159891256b7e0d7b1ac53547eedbfe679d2c39268
<?php if ( !defined ( 'DIR_CORE' ) ) { header ( 'Location: static_pages/' ); } class ExtensionDefaultRealex extends Extension { protected $registry; protected $r_data; public function __construct() { $this->registry = Registry::getInstance(); } //Hook to extension edit in the admin public funct...
PHP
public_html/extensions/default_realex/core/default_realex.php
dssailo/stockpileshop
gpl-2.0
4,018
106
codeparrot/github-code
f6fa91197c372298e7025ac455577fba748e0b7d3637c1e317434a5060d17f2f
class NumMatrix { public: NumMatrix(vector<vector<int>> &matrix) { // error handle if (matrix.size() == 0 || matrix[0].size() == 0) { _m = 0; _n = 0; return; } _m = matrix.size(); _n = matrix[0].size(); _sum = vector<vector<long long>>(_m + 1, vector<long long>(_n + 1, 0)); ...
C++
leetcode/Range Sum Query 2D - Immutable/main.cpp
gyang/Algo
gpl-2.0
1,220
54
codeparrot/github-code
f220c4d8168471397b8b9cf90af9b0fbdb883b7783b20371965e2597f428b02d
#!/bin/bash -ex # # RABBIT_PASS=a # ADMIN_PASS=a source config.cfg echo "############ Configuring net forward for all VMs ############" sleep 5 echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf echo "net.ipv4.conf.all.rp_filter=0" >> /etc/sysctl.conf echo "net.ipv4.conf.default.rp_filter=0" >> /etc/sysctl.conf sysctl ...
Shell
LIBERTY-U14.04-OVS/ctl-6-neutron.sh
vietstacker/openstack-liberty-multinode
gpl-2.0
6,779
292
codeparrot/github-code
d209ab42223e2ac94e375d6391f2ec7082529f4b34ea2fb16737bee4bc52d6f0
using System; using BTZ.App.Infrastructure; using System.Threading; using BTZ.App.Data; using BTZ.Common; using Android.Util; using Newtonsoft.Json; namespace BTZ.App.Communication { /// <summary> /// Jonas Ahlf 16.04.2015 15:33:36 /// </summary> public class LoginMessageProcessor : ILoginMessageProc...
C#
BTZ.App.Communication/MessageProcessor/LoginMessageProcessor.cs
BollerTuneZ/App.Android
gpl-2.0
3,271
154
codeparrot/github-code
eae9736956c7af98be69a9c953ea0f36991e15c92ec70b8604c0e63566d068a3
<?php /** * Created by PhpStorm. * User: nkostop * Date: 25/05/16 * Time: 20:32 */ namespace Drupal\drupalcamp\Form; use Drupal\Core\Ajax\AjaxResponse; use Drupal\Core\Ajax\HtmlCommand; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\node\Entity\Node; class proposal extends F...
PHP
modules/custom/drupalcamp/src/Form/proposal.php
AchillesKal/page2016
gpl-2.0
6,115
197
codeparrot/github-code
2fb3c09c9d7d4833f2a565e28e439d1a0836f0dd850056a38f87209070a6ab40
/* ScummVM - Graphic Adventure Engine * * ScummVM 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 ...
C
engines/sci/engine/vm.h
bSr43/scummvm
gpl-2.0
14,100
427
codeparrot/github-code
160b703669f843cec407a2051cdd48d51ecff1646321b23f96bc8466b0b4193d
// Standard imports import java.util.Map; // Application specific imports import org.web3d.x3d.sai.*; public class SAIExample1 implements X3DScriptImplementation, X3DFieldEventListener { /** Color Constant, RED */ private static final float[] RED = new float[] {1.0f, 0, 0}; /** Color Constant, BLUE ...
Java
Xj3D/spec_examples/x3d/SAIExample1.java
Norkart/NK-VirtualGlobe
gpl-2.0
2,730
94
codeparrot/github-code
20d06b50a383d191d172ede0e117a03f17453922f17bc973705d91178ecac586
/* * \brief localization strings for fr_FR * * \file loc_fr_FR.js * * Copyright (C) 2006-2009 Jedox AG * * 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 at http://www.gnu.org...
JavaScript
ui/docroot/ui/wss/base/i18n/loc_fr_FR.js
fschaper/netcell
gpl-2.0
52,442
1,238
codeparrot/github-code
3a2d0bba6ea40806dd8e1d9a7fc6362d8198b701f9e89c9e64dfa10b9d0c4429
public class TreeNodeConverter : System.ComponentModel.TypeConverter { // Constructors public TreeNodeConverter() {} // Methods public virtual bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType) {} public virtual object ConvertTo(System.ComponentModel.ITypeDescriptorCont...
C#
SourceInsight3/NetFramework/TreeNodeConverter.cs
Pengfei-Gao/source-Insight-3-for-centos7
gpl-2.0
3,537
49
codeparrot/github-code
2f355cff56db241913e1b1076c057099d5522ae0fc96ad6b19fb4f5e0b2bd98e
/* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-07-20 thread-liu the first version */ #include "board.h" #include "drv_config.h" #include <netif/ethernetif.h> #include "lwipopts.h" #incl...
C
bsp/stm32/stm32mp157a-st-ev1/board/ports/eth/drv_eth.c
blueskycoco/rt-thread
gpl-2.0
26,455
871
codeparrot/github-code
1faeca22d730e004d2aae8fe3bdd8ded5275a2ea892bb99c67caaf51333712ba
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
Java
mediatek/frameworks/opt/ngin3d/demos/App/ngin3dDemo/src/com/mediatek/ngin3d/demo/DemolistGlo3D.java
rex-xxx/mt6572_x201
gpl-2.0
7,673
205
codeparrot/github-code
c7e48ad5f7b52a416eee9946627fa9748bd8fc1010ff314c8f2a9da2723949bd
/* Copyright (C) 2001 Tensilica, Inc. All Rights Reserved. Revised to support Tensilica processors and to improve overall performance */ /* Subroutines needed for unwinding IA-64 standard format stack frame info for exception handling. */ /* Compile this one with gcc. */ /* Copyright (C) 1997, ...
C
gccfe/gnu/config/ia64/frame-ia64.c
qiyao/xcc
gpl-2.0
43,069
1,615
codeparrot/github-code
5784f1e47e0c5d2ba29c20e0bd9f209bb83fbddd71ce96b4c1bbe3085fef7453
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end f...
Lua
data/npc/scripts/Eremo.lua
otservme/global1053
gpl-2.0
2,737
35
codeparrot/github-code
e977da6af7f53a4d2fa97c70869591d034d81f3d8b56634aad5e076f84fd4be1
#!/usr/bin/python # -*- coding: utf-8 -*- """Layman is a complete library for the operation and maintainance on all gentoo repositories and overlays """ import sys try: from layman.api import LaymanAPI from layman.config import BareConfig from layman.output import Message except ImportError: sys.stde...
Python
layman/__init__.py
jmesmon/layman
gpl-2.0
1,585
51
codeparrot/github-code
328b788875bdad4a3e0c76c530fc9cb268953cb10b05d8e4f6897915073df4a9
/*****************************************************************************\ * as_mysql_qos.c - functions dealing with qos. ***************************************************************************** * * Copyright (C) 2004-2007 The Regents of the University of California. * Copyright (C) 2008-2010 Lawrence...
C
slurm/src/plugins/accounting_storage/mysql/as_mysql_qos.c
pompp/slurm-power-management
gpl-2.0
36,024
1,272
codeparrot/github-code
a9e315011baf4c8fc87ed6d159fea30ddc53468ceacdb41f3ddd1ee4ba4917a2
<?php /* * @package MijoShop * @copyright 2009-2013 Mijosoft LLC, mijosoft.com * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html * @license GNU/GPL based on AceShop www.joomace.net */ // No Permission defined('_JEXEC') or die('Restricted access'); class ModelCatalogDownload extends Model { public function...
PHP
components/com_mijoshop/opencart/admin/model/catalog/download.php
Quartermain/providores
gpl-2.0
4,560
111
codeparrot/github-code
30e95c6a873b5de0abb2dc30bbacf65430cb5d82bc07a8144c245a712e5b472d
/* * Samsung Exynos5 SoC series FIMC-IS driver * * exynos5 fimc-is video functions * * Copyright (c) 2011 Samsung Electronics Co., Ltd * * 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...
C
drivers/media/video/exynos/fimc-is-w1/fimc-is-video-isp.c
Biktorgj/Android_b2_Kernel
gpl-2.0
21,529
898
codeparrot/github-code
98ff522c692a16065bc515d6b12b52453b7351d0881d5af9a09e4208344d548e
/**************************************************************************** ** ** This file is part of the Qtopia Opensource Edition Package. ** ** Copyright (C) 2008 Trolltech ASA. ** ** Contact: Qt Extended Information (info@qtextended.org) ** ** This file may be used under the terms of the GNU General Public Licen...
C++
src/applications/qtmail/qtmailwindow.cpp
muromec/qtopia-ezx
gpl-2.0
4,104
155
codeparrot/github-code
af2a4cec36b9e68c333ec11c8e95e5f6c04c292af0675b49b2c1812fd025997e
/* Copyright (C) 2009 Markus Michael Geipel, David Garcia Becerra This file is part of Cuttlefish. Cuttlefish 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, ...
Java
src-old/ch/ethz/sg/cuttlefish/misc/VertexFactory.java
dev-cuttlefish/cuttlefish
gpl-2.0
1,036
35
codeparrot/github-code
222a361ca9ade82eee26b9944fb2f00e7f3863139f67e4fea1ccc65f7c61232f
=encoding utf8 =head1 NAME virt-v2v.conf - configuration file for virt-v2v =head1 DESCRIPTION C<virt-v2v.conf> describes: =over =item * a set of target profiles which pre-define a set of output options. =item * how to map virtual network interface connections when importing them from another environment. =ite...
Perl
v2v/virt-v2v.conf.pod
razorinc/virt-v2v
gpl-2.0
9,608
329
codeparrot/github-code
fe42ec8db6fa47dcb465c33e87532314c9634cab8cf03502342271c2af980479
/****************************************************************************** * Icinga 2 * * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) * * * ...
C
components/livestatus/aggregator.h
palli/icinga2
gpl-2.0
1,972
53
codeparrot/github-code
f94a9c307760564b7abed3136cd76112b5ae70df52d7d7d7a98594cb3787440e
<?php abstract class MP_ { //// no limit //// public static function no_abort_limit() { if (function_exists('ignore_user_abort')) ignore_user_abort(1); if (function_exists('set_time_limit')) if( !in_array(ini_get('safe_mode'),array('1', 'On')) ) set_time_limit(0); } //// image //// public s...
PHP
wp-content/plugins/mailpress/mp-includes/class/MP_.class.php
fritids/embroideryadvertisers
gpl-2.0
3,427
118
codeparrot/github-code
71a694874f9ec1f0327d567f38ad1b2a7438a60b8cbf0b882bd403e294dd115c
/* $Id: DevSerial.cpp 56292 2015-06-09 14:20:46Z vboxsync $ */ /** @file * DevSerial - 16550A UART emulation. * (taken from hw/serial.c 2010/05/15 with modifications) */ /* * Copyright (C) 2006-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www....
C++
src/VBox/Devices/Serial/DevSerial.cpp
carmark/vbox
gpl-2.0
48,595
1,442
codeparrot/github-code
ab4602ae520fd59f0d96c483c7c81b35d84d138b32be3e7f8e56ffc8421c7810
/* * Copyright (c) 2011-2013, 2016 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 distribute...
C
arch/arm/kernel/perf_event_msm_krait.c
DerRomtester/android_kernel_oneplus_msm8974-3.10
gpl-2.0
16,737
668
codeparrot/github-code
f1aff93f3af98feaf29d86079092163987beb7740f2d9d716e84c3e42940a8ed
/* Framework for configuring and reading PHY devices * Based on code in sungem_phy.c and gianfar_phy.c * * Author: Andy Fleming * * Copyright (c) 2004 Freescale Semiconductor, Inc. * Copyright (c) 2006, 2007 Maciej W. Rozycki * * This program is free software; you can redistribute it and/or modify it * under...
C
drivers/net/phy/phy.c
jmontleon/fedora-solidrun
gpl-2.0
32,020
1,265
codeparrot/github-code
90de91e8bdc9254bbf2e10801ccf3ad546a45aac5f572b048271300679bed6bf
/** * OWASP Benchmark Project v1.1 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The Benchmark is free software: you can redistribute it and/...
Java
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest08210.java
iammyr/Benchmark
gpl-2.0
2,148
68
codeparrot/github-code
3532ae6aa1bfef99a716cb592719b4515e57bfae5bd0f08d3cebb7ca1f94160f
class Solution { public: bool is_fill(vector<vector<char>>&board, int row, int col, char ch) { for(int i = 0; i<9; ++i) { if((i!=row && board[i][col]==ch)||(i!=col && board[row][i]==ch)) return false; } int left_row, left_col, right_row, right_col; ...
C++
Leetcode_valid-sudoku.cc
kunth/Leetcode
gpl-2.0
3,621
133
codeparrot/github-code
ba4bd52881b9b60209e80beb1f879f3329d55be4cb2b4136e46a132de9e69dff
<!doctype html PUBLIC "-//W3C//DTD html 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=emulateIE7' /> <title>Coverage for raspy.servers.onewire: 82%</title> <lin...
HTML
docs/html/coverage/raspy_servers_onewire.html
bibi21000/RasPy
gpl-2.0
37,581
347
codeparrot/github-code
f3791dd12d8ef8dcebf47e9241ea91b208453f511aff87eb67094c008ed400bd
/*---------------------------------------------------------------------------*\ ## #### ###### | ## ## ## | Copyright: ICE Stroemungsfoschungs GmbH ## ## #### | ## ## ## | http://www.ice-sf.at ## #### ###### | -----------------------------------------------------...
C++
Libraries/swakFiniteArea/expressionSource/faForceEquation.H
Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder1.7-libraries-swak4Foam
gpl-2.0
3,071
113
codeparrot/github-code
5fdff6ebc2a75e784b03b9615e4a1b3355b1a727f22e21aafdb6a4989c50aa8f
/* * Copyright (c) 2015-2016 Cray Inc. All rights reserved. * Copyright (c) 2015-2016 Los Alamos National Security, LLC. * 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 * Genera...
C
prov/gni/src/gnix_cq.c
spud93/libfabric
gpl-2.0
19,257
769
codeparrot/github-code
75082ab74be559567b97d9c44b28b30dafb6db7212f790d59ee566daea082c5b
{% load compress %} {% load static from staticfiles %} {% load leaflet_tags %} <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> {% block title %} kidlse {% endblock %} </title> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=...
HTML
project/templates/base.html
CodeforLeipzig/kidsle
gpl-2.0
6,284
158
codeparrot/github-code
890c108a697191e75dde6d2cb6467777c630ccaaeadcbe693f4e6356522b64a7
/* * libretroshare/src/services p3gxscircles.cc * * Circles Interface for RetroShare. * * Copyright 2012-2012 by Robert Fernie. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License Version 2.1 as published by the Free Software...
C++
libretroshare/src/services/p3gxscircles.cc
zeners/RetroShare
gpl-2.0
51,388
1,884
codeparrot/github-code
e00318363df4b81692011c29d8385f6c1385794acb52a0ba96a06b743db40105
<?php /** * 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; under version 2 * of the License (non-upgradable). * * This program is distributed in the hope that it will be useful, * but WIT...
PHP
helpers/form/Feeder/SanitizerValidationFeederInterface.php
oat-sa/tao-core
gpl-2.0
1,434
48
codeparrot/github-code
c539166e20799a86c7681ccd7ff0acef112ca14604b99789987f08e889081738
package com.github.hurdad.storm.forex.bolt; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.Queue; import backtype.storm.task.OutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.OutputFieldsDeclarer; import backtype.storm.topology.b...
Java
src/jvm/com/github/hurdad/storm/forex/bolt/PercRBolt.java
hurdad/storm-forex
gpl-2.0
2,483
101
codeparrot/github-code
fe2f9ca6c2776ec000b925cabe0098c79fcf8cbfe1a23ca2ca565f218e49de7c
#include <linux/sched.h> #include <linux/mutex.h> #include <linux/spinlock.h> #include <linux/stop_machine.h> #include "cpupri.h" extern __read_mostly int scheduler_running; /* * Convert user-nice values [ -20 ... 0 ... 19 ] * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ], * and back. */ #define NICE_TO_PRIO(n...
C
kernel/sched/sched.h
fishears/LG-V500-Kernel
gpl-2.0
30,607
1,168
codeparrot/github-code
5ff666013f47e96c90fb991b8a193a585f736565e2770a16b8c1c3836d322900
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: reporter.php 6354 2009-04-15 02:41:21Z mvdam $ */ /**#@+ * include other SimpleTest class files */ require_once(dirname(__FILE__) . '/scorer.php'); /**#@-*/ ...
PHP
atk/test/simpletest/reporter.php
NusaCode/NusaAccounting
gpl-2.0
15,907
432
codeparrot/github-code
580b15d0fe10748843e1d2415fdc118cc74074ef4952a3249922352b7d4b6c32
/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /* @api */ define([ 'underscore', 'Magento_Checkout/js/view/payment/default', 'Magento_Payment/js/model/credit-card-validation/credit-card-data', 'Magento_Payment/js/model/credit-card-validation/credit-car...
JavaScript
app/code/Magento/Payment/view/frontend/web/js/view/payment/cc-form.js
kunj1988/Magento2
gpl-2.0
8,981
307
codeparrot/github-code
6a6e867ba7c160e465fd3357bf9b6b3926e814307bde5fc6dd3a92046dae2106
/* * This file is part of the coreboot project. * * Copyright (C) 2017-2018 Intel Corporation. * * 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 of the License. * * This progr...
C
src/soc/intel/common/block/pmc/pmc.c
wolflee/coreboot
gpl-2.0
3,919
141
codeparrot/github-code
9f20a49a34b8bb34e7a4c0f2f0ff230bcce53bb98247d6a7179a367bb12651b4
/* * tivo@wingert.org, February 2003 * * Copyright (C) 2003 Christopher R. Wingert * * The license covers the portions of this file regarding TiVo additions. * * Olaf Beck and Tridge (indirectly) were essential at providing * information regarding the format of the TiVo streams. * * However, no code in the fo...
C
libmpdemux/demux_ty.c
azuwis/mplayer
gpl-2.0
27,698
895
codeparrot/github-code
c49a69ffa41244eea0e3faf4750ab80825fe7b8b020d3efeb1ade444ae19cae7
# # Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=hostapd PKG_VERSION:=20120428 PKG_RELEASE:=3 PKG_REV:=1f0cc27eb98f7d1af9c64d0752238184cbdb9a24 PKG_SOURCE:=$(PKG_NAME)-$(PKG...
Makefile
package/hostapd/Makefile
clhain/clhain-raspberrypi
gpl-2.0
9,255
338
codeparrot/github-code
adca43d526d3ef5e06c0c277405619892bf79d522c99dd9aaad2a54fc25868f8
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "Linked_List.h" #include "List.h" #include "Lhash.h" #include "crs.h" #include "winslow.h" #include "linear_elastic.h" #include "trimesh.h" #include "Point.h" #include "Vector.h" #include "make_nbrs_HO.h" #include "subdivision.h" #inc...
C++
mesher/driver.cpp
vincentbetro/NACA-SIM
gpl-2.0
68,578
1,974
codeparrot/github-code
708dffa0d5e7172ea63e3559692b0aa938ba45e5251ab36a8a59ad974f1291e1
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
Java
mediatek/packages/apps/Bluetooth/profiles/opp/src/com/mediatek/bluetooth/opp/adp/OppTaskWorkerThread.java
rex-xxx/mt6572_x201
gpl-2.0
4,522
114
codeparrot/github-code
99c56849debb754aa82296bf44a3b4d1fc3a7ab81d8cf74fefb11f093143add2
'use strict'; var angular = require('angular'); var angularMessages = require('angular-messages'); var satellizer = require('satellizer'); var material = require('angular-material'); angular.module('sheltrApp', [ require('angular-ui-router'), require('./controllers'), require('./services'), 'ngMaterial', 'ng...
JavaScript
public/scripts/app.js
ChrisMcKenzie/sheltr
gpl-2.0
3,328
133
codeparrot/github-code
c288b5ceeef1ed6544e884b97fcbc1e7ac681263a43843da32ce5a5a9239b744
<!DOCTYPE html> <html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head lang="en-US"> <title>My Family Tree - Family Map</title> <meta charset="UTF-8" /> <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" /> <meta name ="apple-mobile-we...
HTML
gramps42/gramps/example_NAVWEB1/maps/v/6/RNXJQCOC61TJFQUQ6V.html
belissent/testing-example-reports
gpl-2.0
5,313
126
codeparrot/github-code
829e83057e707f3f596eef61507ecf954a0521f319ba5565bf6fd51673a58041
/* * Created on 14. August 2008, 11:41 * * Copyright 2008 Oliver Eichner <o.eichner@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 ...
C
src/Device.h
n0iz/gTableau
gpl-2.0
5,197
193
codeparrot/github-code
3c62a9337ca444bdc44fe00a42d44252718fb6f2efbbe2c758ee5ca97a255914
package org.totalboumboum.ai.v201112.ais.kayukataskin.v3.criterion; import java.util.Arrays; import java.util.Set; import java.util.TreeSet; import org.totalboumboum.ai.v201112.adapter.agent.AiUtilityCriterionString; import org.totalboumboum.ai.v201112.adapter.communication.StopRequestException; import org.to...
Java
resources/ai/org/totalboumboum/ai/v201112/ais/kayukataskin/v3/criterion/CriterionThird.java
vlabatut/totalboumboum
gpl-2.0
2,513
80
codeparrot/github-code
7f7e3e00b204c0d3a1a707ef5cc072235df5ab2ec4aadcd82cff69d24d14ced8
/* * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * 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 (a...
C
include/net/ipv6.h
Emptying/android_kernel_a890
gpl-2.0
20,359
697
codeparrot/github-code
17661b381de9df7f344c768feab6a8486b75291eedf42e267a332fe0474aa8ac
/* * java-gnome, a UI library for writing GTK and GNOME programs from Java! * * Copyright © 2011 Operational Dynamics Consulting, Pty Ltd and Others * * The code in this file, and the program it is a part of, is made available * to you by its authors as open source software: you can redistribute it * and/or modi...
Java
src/bindings/org/gnome/gtk/GtkStyleContextOverride.java
cyberpython/java-gnome
gpl-2.0
3,405
92
codeparrot/github-code
a484ecd906015b05b7d0374835dec770252a2db948994c7c1182399d4563aa99
/* * Copyright (C) 2003 Robert Kooima * * NEVERBALL 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 later version. * * This program is d...
C
ball/main.c
libcg/neverball-psp
gpl-2.0
13,988
540
codeparrot/github-code
18d68c23652835680b3dd634b595e50aa8c26c7051b19e3d55360671407a8aff
{% load url from future %} <div class="modal hide fade" id="ArchModal"> <script> // set default arches var default_arches = ['alpha', 'amd64', 'arm', 'hppa', 'ia64', 'ppc', 'ppc64', 'sparc', 'x86']; var exotic_arches = ['mk68k', 'mips', 's390', 'sh']; var fbsd_arches = ['amd64-fbsd',...
HTML
gpackages/templates/modals/arch_choice_modal.html
bacher09/gentoo-packages
gpl-2.0
1,655
34
codeparrot/github-code
50af79488e9cc046f4b15a6bda024461e439878b6fdd71546e5229e5ca4f8fe7
/* * GPAC - Multimedia Framework C SDK * * Authors: Y.XI, X. ZHAO, J. Le Feuvre * Copyright (c) ENST 2006-200x * All rights reserved * * This file is part of GPAC / ActiveX control * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Publ...
C
ext/gpac/applications/GPAX/GPAXPlugin.h
paulcbetts/yikes
gpl-2.0
7,931
244
codeparrot/github-code
ad5439058e26461e16ded1a137b1262f3b106af46299459b3ce86ef9c70eac21
/* $Id$ */ /* ** Copyright (C) 2005 Sourcefire, Inc. ** AUTHOR: Steven Sturges <ssturges@sourcefire.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 2 of the License, o...
C
user/snort/src/preprocessors/snort_stream4_udp.c
scs/uclinux
gpl-2.0
13,515
488
codeparrot/github-code
b1eec6861a1c08d00c80e46b7d0e52a2fa465f1137894a2bb719e246b0e12b58
/* * Copyright (c) 2014 Haixing Hu * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
src/main/java/com/github/haixing_hu/ilibrary/AppConfig.java
Haixing-Hu/iLibrary
gpl-2.0
18,577
669
codeparrot/github-code
6f8c13bb3d0b4d3bb451355f5b5cf8f0523e48edc7b8a6b0115f02985a171ae1
/* This file is part of OpenMalaria. * * Copyright (C) 2005-2014 Swiss Tropical and Public Health Institute * Copyright (C) 2005-2014 Liverpool School Of Tropical Medicine * * OpenMalaria is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
C++
model/interventions/HumanInterventionComponents.hpp
SwissTPH/openmalaria
gpl-2.0
14,724
366
codeparrot/github-code
efc5f275c4984c19f6122c2aa0b666a1ce9a7aa50c3d9539fb47b71aec9ef6d7
/* * Alarmtimer interface * * This interface provides a timer which is similarto hrtimers, * but triggers a RTC alarm if the box is suspend. * * This interface is influenced by the Android RTC Alarm timer * interface. * * Copyright (C) 2010 IBM Corperation * * Author: John Stultz <john.stultz@linaro.org> * ...
C
kernel/time/alarmtimer.c
tidatida/linux-stable-grsec
gpl-2.0
20,558
833
codeparrot/github-code
340ddd7287606949ce3e708172c889cd02029f4b4aa6448681d8efa5942bb19f
package world.render; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; import org.lwjgl.opengl.GL11; import core.Renderer; import core.Updater; import effects.Effect; import effects.particles.ParticleEffect; import effects.particles.ParticleEmitter; import item.Name...
Java
SarahsWorld/src/world/render/WorldPainter.java
Marghytis/SarahsWorld
gpl-2.0
5,672
210
codeparrot/github-code
9bf6daa624476275402677f1c37227950be3f8c134e89ae7642033f076c98df9
/** * OWASP Benchmark Project v1.1 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The Benchmark is free software: you can redistribute it and/...
Java
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest09197.java
iammyr/Benchmark
gpl-2.0
3,130
77
codeparrot/github-code
ea175d24b03ca45ff8a5887e76b6c6f5bc0efe9c329b839e376745aa70efae5e
// Copyright (c) 2015 Riccardo Miccini. All rights reserved. #include "XBeeHandler.h" #include "XBee.h" #include <SoftwareSerial.h> uint8_t payload[] = {0, 0}; uint8_t cmdNI[] = {'N', 'I'}; XBeeHandler::XBeeHandler(uint8_t statusLed, uint8_t errorLed, uint8_t dataLed, uint8_t rxPin, uint8_t txPin) { setDebugLe...
C++
Arduino/xbee2web/XBeeHandler.cpp
miccio-dk/SustainView
gpl-2.0
8,225
297
codeparrot/github-code
6408936a7a60120ab252f619f613009b8a820c3aba4d9c0bff9bc98aa821bb97
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\ConfigurableProduct\Ui\DataProvider\Product\Form\Modifier\Data; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Catalog\Helper\Image as ImageHelper; use Magento\Catalog\Model\Locat...
PHP
app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier/Data/AssociatedProducts.php
kunj1988/Magento2
gpl-2.0
14,327
460
codeparrot/github-code
b8bf0858bab0325cec2957ca5d1dcf0a38c990a24a94c0171564e581a25ba62e
/* First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant space. */ #include <iostream> using namespace std; class Solution { public: int fi...
C++
leetcode/first_missing_positive.cpp
wjin/algorithm
gpl-2.0
1,515
62
codeparrot/github-code
45fb5d4150c221162d09cc6e3ebec9c90088f382b10308a3f5f5112c5284b5ad
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
Java
graal/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin.java
mcberg2016/graal-core2
gpl-2.0
11,476
238
codeparrot/github-code
65c077893ddfa3eb7fea722772415324396c70b2638433177db554aa75e2e8be
/* * Copyright 2006-2021 The MZmine Development Team * * This file is part of MZmine. * * MZmine 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 ...
Java
src/main/java/io/github/mzmine/modules/dataprocessing/filter_scanfilters/mean/MeanFilterParameters.java
mzmine/mzmine3
gpl-2.0
1,741
45
codeparrot/github-code
1a8989b5e3b5206f4bcca6a18207a7838e935472fb996298e69331f6d40eac4f
/* * Copyright (C) Freescale Semicondutor, Inc. 2007, 2008. * Copyright (C) Semihalf 2009 * Copyright (C) Ilya Yanok, Emcraft Systems 2010 * * Written by Piotr Ziecik <kosmo@semihalf.com>. Hardware description * (defines, structures and comments) was taken from MPC5121 DMA driver * written by Hongjun Chen <hong-...
C
drivers/dma/mpc512x_dma.c
leftrepo/Owl-Kernel-for-Xperia-Sola
gpl-2.0
23,222
843
codeparrot/github-code
5447436bc27ce46b2450d9328a107420cf6709fc947dc19df9fdfbe9bff0ddd4
<?php /* * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * * This program is distributed in the hope that it will be useful, ...
PHP
htdocs/modules/smartpartner/class/uploader.php
mambax7/257
gpl-2.0
14,883
507
codeparrot/github-code
6626a3a8670e9cf427e572713a61f1d2346f21e67cd5bcea26fabe9ce3f3ef01
// requestAnim shim layer by Paul Irish window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msR...
JavaScript
template013/script.js
Techbot/Techbot.github.io
gpl-2.0
6,656
353
codeparrot/github-code
71faba2099d7f93a86c84a91a45cb61aebf2e0e89357aeced126c24485e052c0
/* * Copyright (C) 2010-2011 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Genera...
C++
src/server/game/Instances/InstanceSaveMgr.cpp
sourceleaker/gaycore
gpl-2.0
26,391
668
codeparrot/github-code
9f1104f762afc9b2d1bb650fa2d319cae2305fa474b4de5d4f55eaa7491b2755
/** Copyright (C) 2008-2013 Stefan Kolb. This file is part of the program pso (particle swarm optimization). The program pso 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 (a...
C++
mainwindow.cpp
kolb-stefan/particle_swarm_optimization
gpl-2.0
23,482
603
codeparrot/github-code
8da85a0846de014d485fd5429addcbc1d692594cacb5c66c9ee24e6c1af75ec6
<?php // $Id$ require_once("../../config.php"); require_once("lib.php"); $id = required_param('id', PARAM_INT); // Course Module ID if (!$course = $DB->get_record('course', array('id'=>$id))) { print_error('invalidcourseid'); } require_course_login($course); add_to_log($cours...
PHP
mod/survey/index.php
cwaclawik/moodle
gpl-2.0
2,988
85
codeparrot/github-code
62db1eb0ab1ceb1012f34647a0ead14dd83c10ac0de6207fcb0ca30d1cb050d4
#ifndef _ASM_GENERIC_GPIO_H #define _ASM_GENERIC_GPIO_H #include <linux/kernel.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/of.h> #ifdef CONFIG_GPIOLIB #include <linux/compiler.h> #include <linux/gpio/driver.h> #include <linux/gpio/consumer.h> /* Platforms may implement their GPIO interface ...
C
include/asm-generic/gpio.h
tomasbw/linux-yocto-4.4
gpl-2.0
4,523
173
codeparrot/github-code
03adb79e1adc6ebfccac40993b940e9dd6b3de4bb183fb759b80214a4431df37
/* * Copyright (C) 2007-2009 Gabest * http://www.gabest.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, or (at your option) * any later version. * * This Pr...
C++
plugins/GSdx/GS.cpp
aktau/pcsx2
gpl-2.0
29,172
1,689
codeparrot/github-code
553c1dcfb3d39d5fbe90c4314484e91120b50b941e0b6e28f9984efefdbc0e00
/* * 86Box A hypervisor and IBM PC system emulator that specializes in * running old operating systems and software designed for IBM * PC systems and compatibles from 1981 through fairly recent * system designs based on the PCI bus. * * This file is part of the 86Box distribution. * * Definitions for the S...
C
src/sio.h
OBattler/86Box
gpl-2.0
1,100
37
codeparrot/github-code
cb803c5e927499a527d2442546a5b959c4ce3d22de963ad886d3afabb652f48c
/** * @file cl_camera.c */ /* All original material Copyright (C) 2002-2010 UFO: Alien Invasion. Original file from Quake 2 v3.21: quake2-2.31/client/cl_input.c Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Publi...
C
src/client/battlescape/cl_camera.c
chrisglass/ufoai
gpl-2.0
12,346
376
codeparrot/github-code
5f0582e1ea2c9ed4ee90621de2eaa7719b29d7fd9f495d53c276c44c1f527f71
/** * OWASP Benchmark Project v1.1 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The Benchmark is free software: you can redistribute it and/...
Java
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest14967.java
iammyr/Benchmark
gpl-2.0
2,214
63
codeparrot/github-code
e5c8423533dd13d724543f559d2024eb1ae2b963007d5dadc9ec44522c435b49
<?php /* * File contains csutom defined shortcuts */ function oxy_load_child_scripts() { wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array('style'), false, 'all'); } add_action('wp_enqueue_scripts', 'oxy_load_child_scripts'); //validation for custom taxonomy //add_action('sav...
PHP
wp-content/themes/smartbox-theme-custom/inc/hb_functions.php
andriysobol/holybunch_preprod
gpl-2.0
13,655
324
codeparrot/github-code
5c44f5fa8a2539b78d5fa5caed2a9ab644afee7b9caed188e8cd05e274ecf9b2
<?php /* +-------------------------------------------------------------------------+ | Copyright (C) 2013-2019 The facileManager Team | | | | This program is free software; you can redistribute it and/or | | ...
PHP
server/fm-modules/fmFirewall/upgrade.php
WillyXJ/facileManager
gpl-2.0
17,433
371
codeparrot/github-code
c5a025c297c7987dd0f727edd3773205df4a8bedc0142c092dde6493fa5a1b36
<?php class jaw_message { private $_data = array(); private $_tmpl; public function __construct($tmpl = null) { $this->class_name = get_class(); if (isset($tmpl)) { $this->_tmpl = $tmpl; } else { $this->_tmpl = substr($this->class_name, 4); } ...
PHP
wp-content/plugins/jaw-shortcodes/shortcodes/jaw_message.php
thanhtrantv/car-wp
gpl-2.0
1,243
47
codeparrot/github-code
b0b74076a8c0e7be4132835ed3397d7edcff16bcfc76df031cb7f460ec062267
#include <unistd.h> #include <sys/reboot.h> #include <stdlib.h> #include "platform/platform.h" #define ABORTMSG "hard-reboot: Aborted.\n" #define USAGE "Say \"hard-reboot (RESTART|HALT|POWER_OFF)\" if you really mean it.\n" void usage(void) { write(2, ABORTMSG, str_len(ABORTMSG)); write(2, USAGE, str_len(USAGE))...
C
hard-reboot.c
fargies/minit
gpl-2.0
696
36
codeparrot/github-code
e83d59558694999c44e01f0ef86dbfe4bf5db94e56108094f1453ef40371acf8
/* * linux/include/linux/ext3_fs.h * * 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/include/linux/minix_fs.h * * Copyright (C) 1991, 1992 Linus Torvalds */ #ifndef _LINU...
C
include/linux/ext3_fs.h
Core2idiot/Kernel-Samsung-3.0...-
gpl-2.0
34,849
1,028
codeparrot/github-code
a08788078cdfdb4f0b1f3431a1a9bf057272db44dfff6c940a2a1b178bcfb89a
/* kate: space-indent on; indent-width 2; mixedindent off; indent-mode cstyle; remove-trailing-space on; * Copyright (C) 2008 the xine project * Copyright (C) 2008 Christophe Thommeret <hftom@free.fr> * * This file is part of xine, a free video player. * * xine is free software; you can redistribute it and/or mod...
C
src/video_dec/libvdpau/alterh264_decode.c
pingflood/xine-lib
gpl-2.0
71,790
2,460
codeparrot/github-code
ffdeee0041a7cfa0c8f08958eb79c6ccfe2bebe8db24d007060339f2aeef403d
package com.yh.hr.component.im.check.service.impl; import java.util.List; import org.apache.commons.collections.CollectionUtils; import com.yh.hr.component.im.check.service.CollItemCheckService; import com.yh.hr.component.im.dto.CheckColumnDTO; import com.yh.hr.component.im.dto.CheckResultDTO; import com.yh.hr.res.d...
Java
freelance-hr-component/src/java/com/yh/hr/component/im/check/service/impl/DataLengthCheckServiceImpl.java
meijmOrg/Repo-test
gpl-2.0
2,019
60
codeparrot/github-code
a1e018fde62d4778c32952c7f88fed915befa7c49d765a9dd060f15d0eb03830
<main> <p class="h2 color-orange text-center"> Student peer evaluations/feedback, shareable instructor comments, and more... </p> <div class="text-center"> <img class="mx-auto" alt="Overview of TEAMMATES - anonymous peer feedback and confidential peer evaluations" src="assets/images/overview.png"> </div...
HTML
src/web/app/pages-static/index-page/index-page.component.html
amarlearning/teammates
gpl-2.0
5,523
123
codeparrot/github-code
4e75c6219b654196fd20cbc3656e5c6aaeec84e375ae4d61a1ffbd7355269c1f
/*************************************************************************** * Copyright (C) 2008 by I2P-Messenger * * Messenger-Dev@I2P-Messenger * * * * This program is free software; you can redistribute it and/or mo...
C
src/backend/sam/I2PStream.h
hypnosis-i2p/i2pchat
gpl-2.0
4,064
127
codeparrot/github-code
a291201afc5f0f19d03fae2ebb4adc341e9f74e1be7e539438939dac31ffbb0d
#ifndef RMADataConvWidget_H #define RMADataConvWidget_H // Include wxWindows' headers #ifndef WX_PRECOMP #include <wx/wx.h> #endif #include <wx/dialog.h> #include <wx/image.h> #include <wx/statline.h> #include <wx/spinbutt.h> #include <wx/spinctrl.h> #include <wx/splitter.h> #include <wx/listctrl.h> #include <...
C
RMADataConv.h
bmbolstad/RMAExpress
gpl-2.0
2,564
109
codeparrot/github-code
63a4aed0121d543c00305d4f25adff1f8e4e3b10dd34920cac4ca84503ce8102
package com.geminno.calculatorapplication; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import android.app.Activity; public class MainActivity extends Activity implements OnClickListener { //ÉùÃ÷һЩ¿...
Java
CalculatorApplication/app/src/main/java/com/geminno/calculatorapplication/MainActivity.java
A203/LuWeidan
gpl-2.0
9,472
292
codeparrot/github-code
d53a4ac945994a84ff18899f7b753cc22b55e77547a8e46900b3f05f81514871
<?php /** * Fabrik From Controller * * @package Joomla * @subpackage Fabrik * @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); jimport('joomla.applicati...
PHP
components/com_fabrik/controllers/form.php
emundus/v5
gpl-2.0
14,887
531
codeparrot/github-code
8fe86504af368beeac1ce3f253ca6c28d385bdf99f1265c1d12e79aa13555e1e
/* * ALSA SoC TWL6040 codec driver * * Author: Misael Lopez Cruz <x0052729@ti.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 Foundation. * * This program is distributed in the ho...
C
sound/soc/codecs/twl6040.c
ch33kybutt/kernel_cmplus_tuna
gpl-2.0
51,951
1,993
codeparrot/github-code
be81d934660bf09acda5b91141135569567eadcac770c196d1d6b4029ad3491b
<?php class WCML_Emails{ private $order_id = false; private $locale = false; function __construct(){ add_action('init', array($this, 'init')); } function init(){ //wrappers for email's header if(is_admin() && !defined( 'DOING_AJAX' )){ ...
PHP
wp-content/plugins/woocommerce-multilingual/inc/emails.class.php
wangejay/asiagolfshop_ej
gpl-2.0
15,179
325
codeparrot/github-code
7de57af5671cd652ff659f775b1a57841c6bb2ad9f92ed1059bc5f94159a8753
/* * misc.c * * This is a collection of several routines from gzip-1.0.3 * adapted for Linux. * * Modified for ARM Linux by Russell King * * Nicolas Pitre <nico@visuaide.com> 1999/04/14 : * For this code to run directly from Flash, all constant variables must * be marked with 'const' and all other variab...
C
arch/arm26/boot/compressed/misc.c
camelguo/linux-2.6-trimedia
gpl-2.0
2,713
132
codeparrot/github-code
432aa42091d7ba04d7b9525e4cc1d6f280fc910cae569b7fde7e17dec32225fa
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace kontroll { class Rocket : Projectile { public enum Type { Homing, Straight, Slowing} private float decay; private Type type; private Vector2 target;...
C#
kontroll/kontroll/kontroll/Rocket.cs
Easy-Group-Teknik/TeknikShmup2015
gpl-2.0
1,127
47
codeparrot/github-code
7761dcba161ee49fae05dc78dbd63d987976bf7c2d43e9ecbd27d780fc670907
<?php /* Plugin Name: Memphis Custom Login Plugin URI: http://www.kingofnothing.net Description: A simple way to control your WordPress Login Page, features include Password Protected Blog, Custom Redirect after login, Changing the look of the Login Screen. Author: Ian Howatson Version: 3.2.3 Author URI: http://www.kin...
PHP
wp-content/plugins/memphis-wordpress-custom-login/memphis-wp-login.php
ifrm/invatacel
gpl-2.0
4,906
118
codeparrot/github-code
1e574e7f63e7e3bba7a38f905afaa0f46f4eac8f2546f27e29a9acabb75dfaf3
#include <linux/version.h> #include <linux/module.h> #include <linux/irq.h> #include <linux/types.h> #include <linux/input.h> #include <linux/kernel.h> #include <linux/kthread.h> #include <linux/delay.h> #include <linux/interrupt.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/device.h> #in...
C
drivers/amlogic/hdmi/hdmi_tx/hdmi_cec_key.c
longsleep/ubuntu-odroidc
gpl-2.0
5,946
175
codeparrot/github-code
8d7b697be17ed6b62509f8c378356c838508f64bd9c2e98516a6f923567372c4
/* * _ __ _ * | |/ /__ __ __ _ _ __ | |_ _ _ _ __ ___ * | ' / \ \ / // _` || '_ \ | __|| | | || '_ ` _ \ * | . \ \ V /| (_| || | | || |_ | |_| || | | | | | * |_|\_\ \_/ \__,_||_| |_| \__| \__,_||_| |_| |_| * * Copyright (C) 2019 Alexander Söderberg * * Licensed...
Java
ServerAPI/src/main/java/xyz/kvantum/server/api/views/ViewDetector.java
IntellectualSites/IntellectualServer
gpl-2.0
5,464
164
codeparrot/github-code
09f4429da589f6d76c6951ee403e28f35f2502d71a5db40ed81861fdbfc001cd
/***************************************************************/ /** **/ /** Leonardo Haddad nº 7295361 **/ /** Desafios de Programação - Round 3 Professora Cris **/ /** Problema 2 - Divide an Island! Curso: B...
C++
r3-p2-divide-an-island.cpp
leeohaddad/bccimeusp-desafios
gpl-2.0
11,826
333
codeparrot/github-code
ef70a3038319f88829e9cbc351e5e6a14cf44deed5cfcada439bf303245d538d
/* * linux/drivers/scsi/ide-scsi.c Version 0.9 Jul 4, 1999 * * Copyright (C) 1996 - 1999 Gadi Oxman <gadio@netvision.net.il> */ /* * Emulation of a SCSI host adapter for IDE ATAPI devices. * * With this driver, one can use the Linux SCSI drivers instead of the * native IDE ATAPI drivers. * * Ver 0.1 Dec...
C
drivers/scsi/ide-scsi.c
dduval/kernel-rhel4
gpl-2.0
36,203
1,215
codeparrot/github-code
2165264d7ec98594b9d246d12167109402d9c64a429d7e6c253c016fccb4f96d
#ifndef GENERATEIMAGE_H #define GENERATEIMAGE_H #include <QRgb> #include <QImage> #include <QWidget> #include <QPaintEvent> #include <QPainter> #include <libtorrent/bitfield.hpp> #include <libtorrent/torrent_handle.hpp> #include <libtorrent/torrent_status.hpp> using libtorrent::bitfield; using libtorrent::partial_pi...
C
src/generateimage.h
vtyulb/QLiveBittorrent
gpl-2.0
705
32
codeparrot/github-code
82c750d7dfb9e27735157d685216eee038caff3b574a27861fd4aaf973485e02
<?php // $Id$ /// Overview report: displays a big table of all the attempts class hotpot_report extends hotpot_default_report { function display(&$hotpot, &$cm, &$course, &$users, &$attempts, &$questions, &$options) { global $CFG; // create the table $tables = array(); $this->create_scores_table($hotpot, $cou...
PHP
mod/hotpot/report/simplestat/report.php
cwaclawik/moodle
gpl-2.0
6,386
204
codeparrot/github-code
adbf4cf9ad4e5034ef9032687a8decdf9cd0619769c704b54e43efa7ef3f9e5b
/* Copyright (c) 2010 by CodeSourcery. All rights reserved. */ #ifndef vsip_core_dda_hpp_ #define vsip_core_dda_hpp_ #include <vsip/core/static_assert.hpp> #include <vsip/core/block_traits.hpp> #include <vsip/core/metaprogramming.hpp> #include <vsip/core/storage.hpp> #include <vsip/core/domain_utils.hpp> #include <vs...
C++
sourceryvsipl++-x86-3.1/src/vsipl++/src/vsip/core/dda.hpp
maxywb/vsipl
gpl-2.0
12,830
386
codeparrot/github-code