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 |
|---|---|---|---|---|---|---|---|---|
f31fbe3692a465cf69167857b81d8f6e5a2660cf3904f2c7f673f5d7c1355a2a | /* This file is part of SevenZipSharp.
SevenZipSharp is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Sev... | C# | Cross/Tools/Mono/SevenZip/SevenZip/LibraryManager.cs | drazenzadravec/nequeo | gpl-2.0 | 22,874 | 563 | codeparrot/github-code |
227db1fa0f2e074a9505b57a89dbfc63dda45b2956aae7d2d2baf99566ef85d3 | /*
Copyright (C) 2001 NuSphere Corporation, All Rights Reserved.
This program is open source software. You may not copy or use this
file, in either source code or executable form, except in compliance
with the NuSphere Public License. You can redistribute it and/or
modify it under the terms of the NuSphere Publi... | C | dbut/utbuff.c | TangentOrg/Gemini | gpl-2.0 | 4,173 | 232 | codeparrot/github-code |
7fe474c8aba9fa1cf0b88062e6dd361e9402047a5a8cf0be6c25af6e5fe98a54 | /*
* linux/drivers/mmc/core/core.c
*
* Copyright (C) 2003-2004 Russell King, All Rights Reserved.
* SD support Copyright (C) 2004 Ian Molton, All Rights Reserved.
* Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
* MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved.
* Copyrig... | C | drivers/mmc/core/core.c | Lloir/htc_kernel_oxp | gpl-2.0 | 59,503 | 2,463 | codeparrot/github-code |
7f691b482f02e961d3a3bfa77577c38d275ccf26b3dfe4e4695caf246b44e61e | class PrescricaonesController < ApplicationController
before_action :set_prescricaone, only: [:show, :edit, :update, :destroy]
# GET /prescricaones
# GET /prescricaones.json
def index
@prescricaones = Prescricaone.all
end
# GET /prescricaones/1
# GET /prescricaones/1.json
def show
end
# GET /... | Ruby | app/controllers/prescricaones_controller.rb | cvgustavo/RubyNvtroApp | gpl-2.0 | 2,186 | 75 | codeparrot/github-code |
9657cef833a36410f9ac1a88ac4598dddfa054025309de281cf39682a88f3cea | /*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.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
* option) any later ve... | C++ | src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp | SignFinder/FaceCore | gpl-2.0 | 10,824 | 328 | codeparrot/github-code |
d82e2165210adb064c0bc159e18b275257904cf3bc177f5a84acd9bcf1ce4e05 | #!/usr/bin/env perl
# -*- perl -*-
######################################################################
# gffmodify.pl -- Simple program to modify BioWare Gff files
# Copyright (c) 2004 Tero Kivinen
# All Rights Reserved.
######################################################################
# Program: gffmo... | Perl | tools/gffmodify.pl | mtijanic/zijper | gpl-2.0 | 34,656 | 1,131 | codeparrot/github-code |
65589c0e7e50595debd40e955d22d9d6d4e629b670792e27bd4d29d8d880f22a | /*
* Copyright 2008-2012 Freescale Semiconductor Inc.
*
* 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 conditions ... | C | drivers/net/ethernet/freescale/fman/Peripherals/FM/MAC/fm_mac.h | jwhitham/ppc_linux | gpl-2.0 | 8,549 | 225 | codeparrot/github-code |
97404f09f70727713620ab151c0954931e6b2850679041f957ccff043986582f | #!/usr/bin/env python
import glob
def main():
module = AnsibleModule(
argument_spec=dict(
command=dict(required=True, default=None, type='str'),
image=dict(required=True, default=None, type='str'),
volumes=dict(required=False, default=[], type='list'),
envir... | Python | examples/trivial/library/dockercmd.py | olgamelnichuk/NGSPyEasy | gpl-2.0 | 2,283 | 79 | codeparrot/github-code |
424f3074f073af13173dc9b892ebe2b56cfa055317af2840501a05358519da0b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExtensionMethods
{
public static class StringHelper
{
public static bool IsNotNullOrWhiteSpace(this string @this)
{
return !string.IsNullOrWhiteSpace(@this)... | C# | ExtensionMethods/StringHelper.cs | fqybzhangji/Crazy | gpl-2.0 | 1,022 | 39 | codeparrot/github-code |
cf63be341de5f283f476940c0037b87bd702b85c3a55cf6763c40dce752197c5 | /**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... | Java | src/main/java/com/openkm/util/impexp/metadata/MailMetadata.java | codelibs/n2dms | gpl-2.0 | 7,947 | 314 | codeparrot/github-code |
ac4ab6c9e115e245b41872e689ac331882f38f7a47ffb6711d471f681104d4e8 | jQuery(document).ready(function(){
"use strict";
var calScreenWidth = jQuery(window).width();
if(calScreenWidth >= 960)
{
jQuery('#menu_border_wrapper').css({display: 'block'});
jQuery('#main_menu li ul').css({display: 'none', opacity: 1});
jQuery('#main_menu li').each(function()
{
var jQuerysubli... | JavaScript | wp-content/themes/altair/js/custom.js | estrategasdigitales/landitec | gpl-2.0 | 27,105 | 939 | codeparrot/github-code |
88504874f80ef238085f1de117977d4c420ba882396e90a3895e733c2fcd89c0 | <?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Rest model class for Users.
*
* @package ... | PHP | components/com_users/models/login.php | cuongnd/test_pro | gpl-2.0 | 2,935 | 114 | codeparrot/github-code |
df13447f63fe5487f8afd2b7d45179e1beb005fb0ea99ac0b20369f7cdf68aaf | /*
* Copyright (c) 2012, 2016, 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 ... | C++ | src/share/vm/jvmci/vmSymbols_jvmci.hpp | FauxFaux/jdk9-hotspot | gpl-2.0 | 9,963 | 103 | codeparrot/github-code |
f388a4418cac6feb87adf0c98b877103db9d4bcee0fa0cf515fd6dfc419588f3 | package com.castsoftware.devplugin.querybytype.java;
import java.util.List;
import org.eclipse.jdt.core.search.IJavaSearchConstants;
import org.eclipse.jdt.core.search.SearchPattern;
import com.castsoftware.devplugin.querybytype.IQueryByType;
import com.castsoftware.devplugin.querybytype.IQueryResultAction;
/**
* ... | Java | com.castsoftware.devplugin.querybytype.java/src/com/castsoftware/devplugin/querybytype/java/JavaMethod.java | CAST-projects/violation-eclipse-plugin | gpl-2.0 | 1,041 | 44 | codeparrot/github-code |
e6e92886a34c003c14601453ef3722b93336e4f1a81e5b9dd697cfa55c3cd474 |
#include "htable2.h"
HtableModel::HtableModel(QObject *parent): QAbstractItemModel(parent)
{
htable=(HeadedTable2*)parent;
}
QModelIndex HtableModel::index(int row, int column, const QModelIndex &parent) const
{
//printf("index %d %d\n",row,column);
if(row>=0 and column>=0 and row<htable->nrows)
{
//if( column... | C++ | htable2.cpp | jsatt/qps | gpl-2.0 | 4,895 | 227 | codeparrot/github-code |
d5951193ce9cf4fbb3d796fd9ca54e6fc8363a06d7d0ea4965e287ffc25b8f73 | <?php
/**
* @package bt_portfolio - BT Portfolio Component
* @version 2.0.0
* @created Dec 2011
* @author BowThemes
* @email support@bowthems.com
* @website http://bowthemes.com
* @support Forum - http://bowthemes.com/forum/
* @copyright Copyright (C) 2012 Bowthemes. All rights reserved.
* @license htt... | PHP | components/com_bt_portfolio/sef_ext/com_bt_portfolio.php | techspark/citybuilder | gpl-2.0 | 5,230 | 185 | codeparrot/github-code |
34755e8b2e1dd29e92da3014c20f883bf2ea340f662c9a7593140c2ce564fa2d | /****************************************************************************
* FileName : tcc353x_rf.c
* Description : TCC353X RF control functions
****************************************************************************
*
* TCC Version 1.0
* Copyright (c) Telechips Inc.
* All rights res... | C | drivers/misc/mediatek/broadcast/oneseg/tcc3536/Tcc353xDriver/driver/src/tcc353x_rf.c | HB72K/android_kernel_lgk10_mt6582 | gpl-2.0 | 20,922 | 758 | codeparrot/github-code |
a678ef21ab9722c1bedd5536eb7964b62edf1faa33728c9c622d2867dc191cec | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-mac-free-3.3.8/src/codecs/qtextcodec.cpp:1159 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>QTextEncoder Class</title>
<style type="text/css"><!--
fn { margin-... | HTML | doc/html/qtextencoder.html | epatel/qt-mac-free-3.3.8 | gpl-2.0 | 3,607 | 80 | codeparrot/github-code |
94f0fc3d79236c3483cd34b2a5e0ecce1d6f7c229348f1f68f0cc1ffc7ace907 | package com.georgeme;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.http.HttpResponse;
import org.apache.ht... | Java | GeorgeMe/src/com/georgeme/Act_ShopList.java | cnevinc/togather | gpl-2.0 | 7,201 | 227 | codeparrot/github-code |
fefcd5eaa0cfd1fa78556cd9c1b8886acb93fbe60d85e2633efa43e909326d30 | package uk.ac.ceh.gateway.catalogue.converters;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpInputMessage;
import uk.ac.ceh.gateway.catalogue.ef.Activity;
import uk.ac.ceh.gateway.catalogue.ef.BaseMonitoringType;
import javax.xml.xpath.XPathEx... | Java | java/src/test/java/uk/ac/ceh/gateway/catalogue/converters/Xml2UKEOFDocumentMessageConverterTest.java | NERC-CEH/catalogue | gpl-2.0 | 3,162 | 79 | codeparrot/github-code |
06dc13cd1d24c0ac49ac01fcc0f23b5c5bee6680b572f44efafdf5931ca9b3ce | <?php
/**
* @package Joomla.Administrator
* @subpackage com_menus
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml... | PHP | administrator/components/com_menus/views/item/tmpl/edit.php | cuongnd/test_pro | gpl-2.0 | 7,615 | 223 | codeparrot/github-code |
191649ca3a1423d0af0bdc797fe64a5c813161334b0ac3de2b31208ee81fec8d | from edc_base.model_managers import HistoricalRecords
from edc_base.model_mixins import BaseUuidModel
from edc_base.sites import CurrentSiteManager
from edc_search.model_mixins import SearchSlugModelMixin, SearchSlugManager
from ..managers import AliquotManager
from .model_mixins import AliquotModelMixin, AliquotIdent... | Python | edc_lab/models/aliquot.py | botswana-harvard/edc-lab | gpl-2.0 | 1,273 | 43 | codeparrot/github-code |
f9cd73caff52db0400639f2a78642311b9a8cca7ac9b9defafc4c6301e04704e | import tkinter as tk
from tkinter import messagebox
import dialogs.logindialog as logindialog
from pages.selectshowpage import SelectShowPage as SelectShowPage
from pages.subtitleselectionpage import SubtitleSelectionPage as SubtitleSelectionPage
from pages.downloadpage import DownloadPage as DownloadPage
_... | Python | mvc/view.py | anderswb/addic7ed_fetcher | gpl-2.0 | 3,084 | 88 | codeparrot/github-code |
fbdbc74e89d86a7bae10f70c5a3f0a18cc91975a4ed1d74cf23bd17fbe344940 | /*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | C | newlib/libc/stdio/vfprintf.c | dioptre/bmos-newlib | gpl-2.0 | 63,622 | 2,352 | codeparrot/github-code |
7cd534431ffc9bb299bca2187585e4dd686feecd3850467c50bb1c43491361e4 | /*
* Copyright (c) 2007 Thomas Zander <zander@kde.org>
*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
... | C++ | libs/flake/KoInputDevice.cpp | donniexyz/calligra | gpl-2.0 | 4,933 | 181 | codeparrot/github-code |
65e411dacbddd16efa82122a88c2b142af0ab3927236929d6f6aa58486aebba0 | package co.deepthought.imagine.store;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
... | Java | src/main/java/co/deepthought/imagine/store/S3ImageStore.java | metric-collective/imagine | gpl-2.0 | 1,610 | 47 | codeparrot/github-code |
95ba03328e92594dc651ce05d1da151da1df54b477d582453f2638e1f8d1f9fe | /*
Pencil - Traditional Animation Software
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
Copyright (C) 2009 Mj Mendoza IV
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;
This p... | C++ | src/external/linux/linux.cpp | andrewroldugin/art | gpl-2.0 | 12,950 | 326 | codeparrot/github-code |
9586ba3128bc049b5e96248d10862255ab7fbeccc1d74bd8916704bd511a162b | <?php
/*
* This file is part of the Sententiaregum project.
*
* (c) Maximilian Bosch <maximilian@mbosch.me>
* (c) Ben Bieler <ben@benbieler.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace... | PHP | src/AppBundle/Request/ParamConverter/DTOConverter.php | Sententiaregum/Sententiaregum | gpl-2.0 | 5,279 | 168 | codeparrot/github-code |
24399874a3076d6530dd5d614a619a16d1c8e24b6536f22cf68f363e7b3352c2 | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "utils.h"
#include "letter.h"
//---------------------------------------------------------------------------
TLetter::TLetter()
{
port = 25;
ssl = SMTP_SSL_OFF;
callback = NULL;
closure = NUL... | C++ | sourcecommon/letter.cpp | MaxBelkov/visualsyslog | gpl-2.0 | 2,621 | 108 | codeparrot/github-code |
fbbf0828cf02d8af17f88903038c9ed2accb3a6e644e901e34acdc84f72f56c4 | using System.Collections;
using UnityEngine;
[System.Serializable]
public class Prefabs
{
public GameObject explosion;
public GameObject goldCube;
public GameObject speedBoost;
}
[RequireComponent(typeof(Rigidbody))]
public class PlayerMovementNew : MonoBehaviour
{
#region Variables
public static... | C# | Assets/Classes/Done/Player/PlayerMovementNew.cs | DefaltStudio/BoxGame | gpl-2.0 | 4,943 | 158 | codeparrot/github-code |
9ead435b554af9018c3a4270c37d6ab94fa25396728b0c03de410eab9c552536 | /**
* event.js
*
* @var
* gridConfiguration describes the rows, columns, width, height and offset
*
* @function
* windows.onclick [will] call resolveTurn if the click was inside grid
* window.onmousemove
* function getClickedElement(gridClick)
* function getHoveredElement(gridClick)
* function doKeyDown(even... | JavaScript | Scripts/events.js | Ziul/grandes_pontos | gpl-2.0 | 8,401 | 323 | codeparrot/github-code |
2a1769d5312c997f9e3c456fad6d5dc86f11d5f33fbcbaa327a49b580c5033f7 | #include "radio.h"
#include "timing.h"
#include "UART.h"
#include "buffer.h"
void config_radio(void)
{
init_radio_UART();
P3DIR &= ~(STATUS + RESET + SLEEP + CONFIG); //make sure the status pin is an input
P3DIR |= SLEEP; //sleep, config pins are outputs
}
void sleep_radio(char mode)
{
if (mode) P3OUT |= SLE... | C | Firmware/rocket pack/radio.c | mjbeals/RocketPack | gpl-2.0 | 2,976 | 152 | codeparrot/github-code |
af26d7dcc9c29f0b5fa1826676f38cacc2b79fef10b9b09008a7ec4e6d052cb1 | /* Global constant/copy propagation for RTL.
Copyright (C) 1997-2014 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your ... | C | gcc/cprop.c | embecosm/avr-gcc | gpl-2.0 | 56,489 | 1,955 | codeparrot/github-code |
0f02595659b9935472d14f23c5e9d814ea9ab49a47af60737f3d2d485cab6a99 | #include "markertype.h"
#include <string.h>
#include <stdbool.h>
/* Count the number of header (all white) frames in the video data. */
static void count_header_frames(videoinfo_t *videoinfo, GArray *frame_data)
{
size_t i;
for (i = 0; i < frame_data->len; i++)
{
char *frame = g_array_index(frame_data, char*... | C | Analyzer/markertype.c | OptoFidelity/TVG | gpl-2.0 | 6,572 | 259 | codeparrot/github-code |
00c1db5bd2e7d8c44283df099d2098df25d28c7cd273795b34b39335e41fcf17 | jQuery(function($){
/*
* действие при нажатии на кнопку загрузки изображения
* вы также можете привязать это действие к клику по самому изображению
*/
$('.upload_image_button').click(function(){
var send_attachment_bkp = wp.media.editor.send.attachment;
var button = $(this);
wp.media.editor.send.attachmen... | JavaScript | wp-content/themes/autodoctortheme/static/js/admin.js | PapaPsih/Avtodoctor | gpl-2.0 | 948 | 30 | codeparrot/github-code |
a086e6a0e2d8cacd5e601e9fa21c1556b940c35328b2388ec411f8575cb7fd6f | /*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos 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 th... | Java | src/main/java/nl/strohalm/cyclos/dao/accounts/pos/PosDAOImpl.java | mateli/OpenCyclos | gpl-2.0 | 5,641 | 126 | codeparrot/github-code |
0d9c2f3e8f8b3382c7d53cb0e7ffce6e8f6c498c1c955086d1a4132be929ab45 | <?php
/**
* Plugin Name: Buffer for WordPress
* Plugin URI: https://christiaanconover.com/code/wp-buffer?ref=plugin-data
* Description: Buffer for WordPress allows you to use Buffer to share your posts and pages with social media, using their suite of sharing features.
* Version: 0.1.0-alpha1
* Author: Christiaan ... | PHP | cc-wp-buffer.php | cconover/wp-buffer | gpl-2.0 | 2,901 | 90 | codeparrot/github-code |
ba3402864764313a77bb80cbc275123308d1c35554f97768542e785b0adaa76a | #include "cspice/include/SpiceUsr.h"
#include <vector>
#include <string>
// Wrapper functions for SPICE's strange anachronistic SpiceCell objects
// Extract the objects in an SPK kernel
std::vector<int> spkobjects(std::string kernel) {
SPICEINT_CELL(ids,100);
scard_c(0,&ids);
std::vector<int> ret;
spk... | C++ | spice_helper.hpp | ascendingnode/OrbFitLib | gpl-2.0 | 3,572 | 85 | codeparrot/github-code |
161c7ddb48db381b6320bfedcd201907364a4de95693cce13ade994b2331687c | <?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 | test/unit/model/security/TokenGeneratorTest.php | oat-sa/tao-core | gpl-2.0 | 2,074 | 63 | codeparrot/github-code |
aeb2960d0b04e105db503e71dc142abbe2d01c21b23e86d6f3fd73e2f1ea5410 | // Copyright 2013 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 ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_
#define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_
#include <set>
#include <vector>
#include "ash/ash_export.h"
#incl... | C | external/chromium_org/ash/wm/overview/window_selector.h | qtekfun/htcDesire820Kernel | gpl-2.0 | 2,744 | 143 | codeparrot/github-code |
e2c6db8565b7533e0135855fa40c1867fa4c35bf54ac3f8e28a5f2dd1cbb12a6 | /**********************************************************************
Audacity: A Digital Audio Editor
EffectRack.cpp
Leland Lucius
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
License: GPL v2. See License.txt.
**********************************************************************/... | C++ | src/effects/EffectRack.cpp | bit-trade-one/SoundModuleAP | gpl-2.0 | 14,314 | 532 | codeparrot/github-code |
7d9f8108ec6aa6af968c64119f22cd0a1e9f4a30b37d1f3e03e6a2518e9de996 | <?php
namespace PhangoApp\PhaModels\CoreFields;
use PhangoApp\PhaUtils\Utils;
use PhangoApp\PhaTime;
/**
* Datefield is a field for save dates in timestamp, this value is a timestamp and you need use form_date or form_time for format DateField
*/
class DateField extends PhangoField {
public $size=11;
public $va... | PHP | src/CoreFields/DateField.php | phangoapp/phamodels | gpl-2.0 | 3,522 | 160 | codeparrot/github-code |
d98cb47c185946dc87f4e137dd9304d5b8419837e6dc076da27fb01fd96573a5 | <?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
*
* 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) ... | PHP | src/Http/DataTables/Corporation/Industrial/Blueprints/Columns/LocationFlag.php | eveseat/web | gpl-2.0 | 3,583 | 103 | codeparrot/github-code |
0763eec91b50b0bd25158eeb93233779d3df032d43603f187e34139b6ce10b6e | /*******************************************************************************
* 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... | Java | framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java | gildaslemoal/elpi | gpl-2.0 | 10,955 | 246 | codeparrot/github-code |
130e8179c4083d69a1566edcffaa45bea07e60566ae18893af201e2a3371efec | /*
* Copyright (c) 2005, Bull S.A.. All rights reserved.
* Created by: Sebastien Decugis
* 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 Free Software Foundation.
*
* This program is distributed in the hop... | C | testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-11.c | rogerq/ltp-ddt | gpl-2.0 | 5,431 | 222 | codeparrot/github-code |
5f4aded93c58fceb505a9b95047f2002ba005ae105a8acf6da9d29618ae1abf6 | <?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of work... | PHP | administrator/components/com_easydiscuss/includes/themes/helpers/panel.php | quanghung0404/it2tech | gpl-2.0 | 1,730 | 82 | codeparrot/github-code |
527ff8a84241b37e2f7b1a5ac42f7474ba86727570418e175b31ebed7b023b79 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any per... | C | sdk/ogre/Plugins/PCZSceneManager/OgrePortalBase.h | raub/vec | gpl-2.0 | 11,180 | 304 | codeparrot/github-code |
f4b054d742f45bd9169382bfb034c71c2c1f0d3644211a6914dc5da1b598de1c | /** \file src/arch/gtk3/widgets/aciawidget.c
* \brief Widget to control various ACIA related resources
*
* Written by
* Bas Wassink <b.wassink@ziggo.nl>
*
* Controls the following resource(s):
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This p... | C | src/arch/gtk3/widgets/aciawidget.c | tojo9900/vice | gpl-2.0 | 7,974 | 283 | codeparrot/github-code |
513b2b2e3e7b06dab351139c6f93712d2c934f55c3a0ac4792789ad994f32997 | <?php
/**
* CRAP on 18Dec15 is 20
* This behaviour will divert data from the active record into staging logs
*
* If a certain project is found under moderation for editors,
* it will load moderatoed data all those users
*
* @author vikasyadav
* @property array|string $fieldlist Fields list
*/
class StagingBeha... | PHP | protected/behaviours/StagingBehavior.php | thevikas/genealogy | gpl-2.0 | 16,180 | 463 | codeparrot/github-code |
39471b8de2e7609e096ed04af57a012d0a598ae9a54fff7254d202584d862970 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005,2006 INRIA
*
* 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 distri... | C++ | src/wifi/examples/wifi-phy-test.cc | mcgee/ns-3 | gpl-2.0 | 14,051 | 476 | codeparrot/github-code |
b0023eac701cddfba0aa66cb092d7b8405e2c43006c0353bcb541c1435f78728 | package it.ice.gtge;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import com.golden.gamedev.Game;
import com.golden.gamedev.GameLoader;
import com.golden.gamedev.object.PlayField;
import com.golden.gamedev.object.SpriteGroup;
import com.golden.gamedev.o... | Java | TabulaRasaGTGE/src/it/ice/gtge/GTGEGame.java | IceOnFire/Nttz | gpl-2.0 | 1,803 | 59 | codeparrot/github-code |
e4ec456e17b52fe5fdc7fc6f301c345552267fd53b6a77a1c869156644408f41 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2012 The PHP Group |
+---------... | C | php-5.4.6/ext/session/session.c | ssanglee/capstone | gpl-2.0 | 75,101 | 2,596 | codeparrot/github-code |
f8da3f6350463025ccdd0635299cbb23f9fc845f65ff0379d70cd258e42ee73f | ///////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2006-2019 Esper Team. All rights reserved. /
// http://esper.codehaus.org /
// --------------------------------------------------... | C# | src/NEsper.Common/common/internal/epl/datetime/calop/CalendarWithTimeForgeOp.cs | espertechinc/nesper | gpl-2.0 | 12,015 | 286 | codeparrot/github-code |
66b7d2e27fa2f56db9442cd9292967b1b1c7f35d18eea0f2ada2d0ad060abeb0 | // netserver.cpp
//
// LWCP server for lwcore
//
// (C) Copyright 2015 Fred Gleason <fredg@paravelsystems.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.
//
// Thi... | C++ | src/lwcored/netserver.cpp | ElvishArtisan/lwcore | gpl-2.0 | 3,706 | 169 | codeparrot/github-code |
23ac86c347c5e3eef5d11266352641b041b36ee4b88388d975265ca8ee3a01a6 | #!/usr/bin/perl
use strict;
use Modules::Utils::Base;
use Mail::MboxParser;
package ATTACHMENTS;
our $name_folder;
our $with_attachment=0;
sub DecodeAttachments{
my $fcaller = shift;
my $fname = BASE::getFunctionName($fcaller,(caller(0))[3]);
my $file_name = shift;
my $total ... | Perl | Modules/Spampot/Attachments.pm | miguelraulb/spamhat | gpl-2.0 | 2,060 | 53 | codeparrot/github-code |
0da7dbc927634df5e0963358549c01dd1ff85b936e452d56f84988980b13d34b | /*
* Joystick device driver for the input driver suite.
*
* Copyright (c) 1999-2002 Vojtech Pavlik
* Copyright (c) 1999 Colin Van Dyke
*
* 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 Found... | C | drivers/input/joydev.c | jeffegg/beaglebone | gpl-2.0 | 24,104 | 983 | codeparrot/github-code |
b5f204f1c057407c62079c5a1eff43244fd5e88ecb0098e8f9c450bed73f8d51 | <?php
include_once '../include/db_connect.php';
include_once '../include/functions.php';
sec_session_start();
$admin = $_SESSION['admin'];
if (login_check($mysqli) == true) {
$logged = 'in';
} else {
$logged = 'out';
}
if(!isset($_SESSION['admin']))
{
header("location: ../profile/i.php");
exit();
}
$query... | PHP | ex/admin/a.php | ratik92/gymmanagementsystem | gpl-2.0 | 9,059 | 269 | codeparrot/github-code |
4981ae1ca207b01ff8fc022fd164dea6ad8a669faa9d2fab784316bb8bc3e2e0 | /*
* Block driver for media (i.e., flash cards)
*
* Copyright 2002 Hewlett-Packard Company
* Copyright 2005-2008 Pierre Ossman
*
* Use consistent with the GNU GPL is permitted,
* provided that this copyright notice is
* preserved in its entirety in all copies and derived works.
*
* HEWLETT-PACKARD COMPANY MAK... | C | drivers/mmc/card/block.c | Tkkg1994/Hulk-Kernel-V2 | gpl-2.0 | 77,236 | 2,980 | codeparrot/github-code |
4c086e91d284486b7247aeade5429a0b2944354ece0ebae4faec6d908cb41772 | <?php
class NamasteLMSCoursesController {
// displays courses of a student, lets them enroll in a course
// @param $simplified boolean - when true outputs the page without "view lessons" link
static function my_courses($simplified = false) {
global $wpdb, $user_ID, $user_email;
$currency = get_option('namaste... | PHP | wp-content/plugins/namaste-lms/controllers/courses.php | fawwaz/PPL | gpl-2.0 | 4,450 | 106 | codeparrot/github-code |
95d46e8139ba945ac5781fc72923710659a748c740acb7d7583a332d76396300 | <?php
global $woo_options;
/**
* WooCommerce Support
*/
function woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'woocommerce_support' );
/**
* WooCommerce Overrides
*/
if ( class_exists( 'woocommerce' ) ) {
//Add custom class to the body
function newsmaker_woo_... | PHP | wp-content/themes/newsmaker/inc/theme-woocommerce.php | danvernon/ChelseaNews | gpl-2.0 | 9,603 | 270 | codeparrot/github-code |
36a22dcfaadee33c392410ae40220cd532dda6486d2b61321d7bd217f00397c3 | /*
* Virtual network driver for conversing with remote driver backends.
*
* Copyright (c) 2002-2005, K A Fraser
* Copyright (c) 2005, XenSource 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... | C | drivers/net/xen-netfront.c | GuoqingJiang/SLE12-clustermd | gpl-2.0 | 52,458 | 2,094 | codeparrot/github-code |
0bcf26b12fae0f9706e7614ba62b4e6fbccb2d172657765728c902749f79f3d3 | /*
* This file is part of DrFTPD, Distributed FTP Daemon.
*
* DrFTPD 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.
*
* DrFTPD... | Java | src/tools/org/drftpd/tools/installer/InstallerConfig.java | d-fens/drftpd | gpl-2.0 | 2,908 | 130 | codeparrot/github-code |
14669ecbec00cd09e6275c4f09bfc894dda6f9a7b3c004bb3278aa2d6d7fa83a | <!DOCTYPE html>
<html>
<head>
<title>Place searches</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src="https://... | HTML | geolocalizacion-con-lugares.html | edwindeleon/geolocalizacion-html5 | gpl-2.0 | 1,967 | 79 | codeparrot/github-code |
2a23465a656ac3310ae89983db66402768f6e2773e494e2d44f25aa91572f28e | #!/usr/bin/env python
# -*- coding: iso-8859-1
# 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 later version.
#
# This program is dist... | Python | src/python/rebuild_db.py | gboysko/shuffle-db | gpl-2.0 | 19,670 | 668 | codeparrot/github-code |
2ca142ac9327b6da036c271f80acd964fabe6551ec1d24da4e3f78b5f3bf176b | /*****************************************************************************/
/*
* usbdevice_fs.h -- USB device file system.
*
* Copyright (C) 2000
* Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... | C | include/linux/usbdevice_fs.h | robacklin/ts7800 | gpl-2.0 | 5,525 | 177 | codeparrot/github-code |
9b3e74b5bf3aff3ba8858a1f8440d2c7437a857f6deedf17090c0e3a08766700 | #include "CGraphicsDevice.h"
#include "files.h"
namespace
{
const CCoord<int> KDefaultResolution(640,480);
};
CGraphicsDevice::CGraphicsDevice(const char *aCaption, const char* aIcon): iWidth(0), iHeight(0), iBits(0), iBasicModes(0), iLocked(0), iDontLock(0), iSurfaceOK(0), iSDLsurface(0), iCursorMode(SDL_DISABLE)
{... | C++ | src/common/CGraphicsDevice.cpp | emlai/tapankaikki | gpl-2.0 | 7,910 | 415 | codeparrot/github-code |
71779c9b04409d92bdaaa603f890dad0e2e42b98c876704ed0ea39132c7f2446 | <?php
/*
eventcard each box HTML
*/
function eventon_eventcard_print($array, $evOPT, $evoOPT2){
//print_r($array);
$OT ='';
$count = 1;
$items = count($array);
// close button
$close = "<div class='evcal_evdata_row evcal_close' title='".eventon_get_custom_language($evoOPT2, 'evcal_lang... | PHP | wp-content/plugins/eventON/admin/includes/eventon_eventCard.php | Tier27/Mission | gpl-2.0 | 13,433 | 324 | codeparrot/github-code |
5c810e4bc9e2cece010c82d164850025467930a9c522b1052a9ced509ecfffbd | /*
* FCPInsertErrorMessage.java
* This file is part of Freemail, copyright (C) 2006,2008 Dave Baker
*
* 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
*... | Java | src/freemail/fcp/FCPPutFailedException.java | freenet/plugin-Freemail-v0.1 | gpl-2.0 | 2,454 | 65 | codeparrot/github-code |
4309c524fe04687970461359fa5b831904b3a8f7de899cb2e73bcf74eb174bb7 |
#include <linux/crc32.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/platform_device.h>
#include <linux/sch... | C | kernel/drivers/net/smsc911x.c | luckasfb/OT_903D-kernel-2.6.35.7 | gpl-2.0 | 56,885 | 2,148 | codeparrot/github-code |
67f90a84fd34a3c118cec9c78a28cca6ef8aaed23fc60884f69f90775c75f4cd | /*
* empathy-account-settings.c - Source for EmpathyAccountSettings
* Copyright (C) 2009 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 as published by ... | C | libempathy/empathy-account-settings.c | JGulic/empathy | gpl-2.0 | 50,728 | 1,888 | codeparrot/github-code |
9b416ceae89cad1ff62c123a8bbb1f538c35f76ebe1cc6dc535fc6aaa53706b0 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /home/test1/tmp/qtopia/qt//qtopia-core-opensource-src-4.3.6/doc/src/model-view-programming.qdoc -->
<head>
<title>Q... | HTML | qtopiacore/qt/doc/html/model-view-convenience.html | muromec/qtopia-ezx | gpl-2.0 | 14,800 | 166 | codeparrot/github-code |
6c5330fb28100136283f8b2a89858846b4422c6b5acacf62964af86f99d009e8 | /*************************************************
* Basic Allocators Header File *
* (C) 1999-2007 The Botan Project *
*************************************************/
#ifndef BOTAN_BASIC_ALLOC_H__
#define BOTAN_BASIC_ALLOC_H__
#include "botan-1.6/include/mem_pool.h"
namespace Enc... | C | libenctain/botan-1.6/include/defalloc.h | bingmann/cryptote | gpl-2.0 | 1,215 | 44 | codeparrot/github-code |
06ea78dad77e366d0524499b2e91ad9f2fb21380052c8d869c340e965efc08c1 | #ifndef MCTS_TREE_
#define MCTS_TREE_
#include <list>
#include "stat.hpp"
#include "gtp.hpp"
class MctsNode {
public:
typedef std::list<MctsNode> ChildrenList; // TODO vector, allocator?
// Initialization.
explicit MctsNode (Player player, Vertex v, double bias);
void Reset ();
// Printing.
string T... | C++ | source/engine/mcts_tree.hpp | lukaszlew/libego | gpl-2.0 | 1,572 | 88 | codeparrot/github-code |
0ff9aed9c28fb650ad96051ffc22f5917073c4c964b8ebe55877e50cefa24d27 | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using SenseNet.ContentRepository.i18n;
using SenseNet.ContentRepository.Schema;
using System.Xml.XPath;
using System.Web;
using System.Linq;
namespace SenseNet.ContentRepository.Fields
{
public class PasswordCheckResult
{
... | C# | Source/SenseNet/ContentRepository/Fields/PasswordFieldSetting.cs | vlslavik/SenseNet | gpl-2.0 | 12,020 | 300 | codeparrot/github-code |
d2b4dccb36055590fbb67c68738fa453526fa35b55929abc4e81dd30580929a2 | /*
* 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"); you ... | Java | com.ipv.sensetrace.RDFDatamanager/jena-2.11.0/jena-core/src/test/java/com/hp/hpl/jena/util/TestFileManager.java | hdadler/sensetrace-src | gpl-2.0 | 8,121 | 240 | codeparrot/github-code |
f13dbf9b41632f29809d2b083404dc2d8da8a088f57b703c9d6264c03428e0ec | # $Id$
# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
# Copyright (C) 2002 John Goerzen <jgoerzen@complete.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; e... | Python | pyme/errors.py | malb/pyme | gpl-2.0 | 1,710 | 47 | codeparrot/github-code |
c40ce23e8005b020af366bba0704039cc7b47bb92caa9db92b6a1ce79f101477 | # This software is Copyright (C) 2004-2008 Bristol University
# and is released under the GNU General Public License version 2.
import unittest
from math import sqrt
from Polynomial import Polynomial
from EigenSystem import EigenSystem
from Diagonal import Diagonalizer, Complexifier
from SystemBath import *
imag_h... | Python | src/py/SystemBathTest.py | Peter-Collins/NormalForm | gpl-2.0 | 8,061 | 239 | codeparrot/github-code |
0189427ac61ea2f6c288c0f32794851cfaacc33f15cd1eb5bf5220a2c297ed06 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2011, 2012, 2015 CERN.
#
# Invenio 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 optio... | Python | invenio/modules/submit/models.py | switowski/invenio | gpl-2.0 | 19,892 | 529 | codeparrot/github-code |
441313cdaefd4808f6ec57b90864e4ebc1bd9c1361baa9b485adb74b1e29e55e | /*
*
* Alchemy Semi Pb1000 boards specific pcmcia routines.
*
* Copyright 2002 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* ppopov@mvista.com or source@mvista.com
*
* ########################################################################
*
* This program is free software; you can... | C | drivers/pcmcia/au1000_pb1x00.c | skywalker01/Samsung-Galaxy-S-Plus | gpl-2.0 | 6,578 | 298 | codeparrot/github-code |
790c54958cb339e69602a1ba063c4a4fc57fc00ecf2d7f0ee0bf3bf480425b32 | <?php
/**
* File containing the eZStylePackageCreator class.
*
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version 2012.9
* @package kernel
*/
/*!
\ingroup package
\class eZStylePackageCreator e... | PHP | app/ezpublish_legacy/kernel/classes/packagecreators/ezextension/ezextensionpackagecreator.php | davidrousse/ezpuplish | gpl-2.0 | 4,785 | 140 | codeparrot/github-code |
8b7b42d0ea93b4c5d2e8d6a6e4c16f5d3e16edd8d2a1fe55edb70b3da7251960 | /* zet evacuation tool copyright (c) 2007-20 zet evacuation team
*
* This program is free software; you can redistribute it and/or
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be u... | Java | src/test/java/org/zet/cellularautomaton/potential/FakePotential.java | zet-evacuation/evacuation-cellular-automaton | gpl-2.0 | 1,473 | 53 | codeparrot/github-code |
c8a71d035f4ccf3c8c905f0242080f3ab9c8928871d3a9db6847c38923bf121b | /**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2022 MaNGOS <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | C | src/game/Server/WorldSession.h | mangostwo/server | gpl-2.0 | 43,883 | 989 | codeparrot/github-code |
cd85e77a23603d75ed25aa4abc7ae33132410aa1d4d632d4c07e2d3dd2f9318e | <?php
namespace Drupal\common;
use Drupal\common\Util\ApiDocsPathModifier;
use Drupal\Core\Site\Settings;
use Drupal\common\Plugin\DkanApiDocsPluginManager;
use Drupal\common\Plugin\OpenApiSpec;
/**
* Generator for DKAN OpenApi docs.
*/
class DkanApiDocsGenerator {
/**
* Docs manager.
*
* @var \Drupal\... | PHP | modules/common/src/DkanApiDocsGenerator.php | GetDKAN/dkan | gpl-2.0 | 2,605 | 93 | codeparrot/github-code |
026a50c5dc372b7e9ceb869b31a77e271f73d38006c8c5d27a0fd70ad964dea0 | import sys
import pyperclip
import math
def encrypt(key, message):
ciphertext = [''] * key
for col in range(key):
pointer = col
while pointer < len(message):
ciphertext[col] += message[pointer]
pointer += key
return ''.join(ciphertext)
def decrypt(key, ciphe... | Python | Cryptography/transpositionCipher.py | zach-king/Python-Miscellaneous | gpl-2.0 | 1,466 | 63 | codeparrot/github-code |
dab4b1d2e7e5c04ab789a9ab56cb234e741b6c7dbf7b258824c7d9eaacfeda14 | #include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/cred.h>
#include <linux/mm.h>
#include <linux/utsname.h>
#include <linux/mman.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/prctl.h>
#include <linux/highuid.h>
#include <linux/fs.h>
#include <linux/... | C | fs/proc/dcheck_root.c | Honor8Dev/android_kernel_huawei_FRD-L04 | gpl-2.0 | 14,557 | 519 | codeparrot/github-code |
754b558a3df9ae0c68a0858e22ed0a57978915997152df9820b1a20189c1dca5 | /*
* Interface handling
*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright (c) 2006 Jiri Benc <jbenc@suse.cz>
* Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
*
* This program is free software; you can redistribute it and/or modify
* it u... | C | net/mac80211/iface.c | freedesktop-unofficial-mirror/tegra__linux | gpl-2.0 | 47,026 | 1,794 | codeparrot/github-code |
78bc1d0531dd3185b5633a7df3f5dc557f7ad7acb8ebe8be7794e1e20d9627bd | /***************************************************************************
* Copyright (C) 2007 by Simon Schulz *
* Simon.Schulz@esa.int *
* *
* This program is free software; you can redistribute it and/or modify *
* it under t... | C | src/verilog_parser.h | MISTLab/infault | gpl-2.0 | 3,737 | 94 | codeparrot/github-code |
f57c09d4aba9254c3db19f0f71622796a47e9e171853b9829b41ddd95ba5f4d5 | #ifndef Client_h
#define Client_h
#include "Print.h"
#include "utility/socket.h"
class Client : public Print {
private:
static uint16_t _srcport;
uint8_t _sock;
uint8_t *_ip;
uint16_t _port;
#ifdef ETHERSHIELD_DEBUG
char _DEBUG[80];
#endif
public:
Client(uint8_t);
Client(uint8_t *, uint16_t);
uint8... | C | Client.h | turicas/Ethernet_ENC28J60 | gpl-2.0 | 730 | 40 | codeparrot/github-code |
74241f1df95bc81e9f4ede1e71ac2c4942bf83213034501ebb127321c269ec93 | /*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... | C | testcases/kernel/fs/openfile/openfile.c | shubmit/shub-ltp | gpl-2.0 | 6,349 | 263 | codeparrot/github-code |
b953c14bbdbdad39733deedd430ffcafbf05d80adbdab0d5559dc5be9245335e | /*
* File: pci-acpi.c
* Purpose: Provide PCI support in ACPI
*
* Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com>
* Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com>
* Copyright (C) 2004 Intel Corp.
*/
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/mo... | C | drivers/pci/pci-acpi.c | Core2idiot/Kernel-Samsung-3.0...- | gpl-2.0 | 11,317 | 430 | codeparrot/github-code |
5a53c872abcc2dc011ef3ac26570706155283c838e8d8a2625b4beea6c49aef2 | <?php
add_theme_support( 'post-thumbnails' );
add_image_size( 'slider', 980, 400, true );
add_image_size( 'portfolio', 260, 260, true );
//CPT Slider
add_action( 'init', 'create_post_type_slider' );
function create_post_type_slider() {
register_post_type( 'slider',
array(
'labels' => array(... | PHP | wp-content/themes/bsantana/functions.php | bsantana/bsantana | gpl-2.0 | 3,829 | 122 | codeparrot/github-code |
d2adcab99fdbe1a374ae69ae6255d68c9e404fd6ed81c8b49be1700e86381a0b | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include "td/telegram/net/PublicRsaKeyShared.h"... | C | protocols/Telegram/tdlib/td/td/telegram/net/PublicRsaKeyWatchdog.h | miranda-ng/miranda-ng | gpl-2.0 | 1,275 | 47 | codeparrot/github-code |
418a9b76e57438305f47ad53028506b8cb151a409fa83edc3097ab0145b5d504 | /* Copyright (c) 2011-2012, 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... | C | drivers/media/video/msm/msm_mctl.c | invisiblek/android_kernel_sony_sonys4 | gpl-2.0 | 48,886 | 1,812 | codeparrot/github-code |
bd4f3f589f9b8d7fc89fe23d1dc9d77f0a301132facff58a06e5c5428fa6f824 | <hr />ID #1 (<a href="DNATests-0.html">Previous</a> | <a href="DNATests-2.html">Next</a>)<hr />GET request to: dna<hr />Ending URL: http://localhost:8888/dna<hr /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang... | HTML | sites/default/files/simpletest/verbose/DNATests-1.html | calascionec/lastCodeReview | gpl-2.0 | 8,735 | 173 | codeparrot/github-code |
58de0296da4dda847fc3bb8eaab21b0dd70f24ccaaa277676b4ebc486b7891b0 | // Author: Ioannis Christodoulou
/// Description:
/// Console program to demonstrate the use of the MinDrives program to
/// simulate data consolidation between hard drives of different sizes
/// to move and pack all the data onto as few hard drives as possible.
///
using MinDiskDrives;
using System;
using System.Co... | C# | MinimumDiskDrives/MinDiskDrivesConsole/Program.cs | jochri/csharp | gpl-2.0 | 3,703 | 98 | codeparrot/github-code |
e334a813b46bbd2ce1e23060e80be9264218324a039e72582d75f8c4f3e6e48b | #! /usr/bin/python
import os
from gps import *
import time
import threading
from log import Logging
TAG = 'GPS'
gpsd = None #seting the global variable
class GpsScan(threading.Thread):
def __init__(self, logging, gps_dict, gps_timed_dict, gps_coord_list):
threading.Thread.__init__(self)
global g... | Python | blueproximity-plus/usr/share/blueproximity-plus/gps_worker.py | dejavu1988/blueproximity-plus-deb | gpl-2.0 | 2,531 | 75 | codeparrot/github-code |
4ec4a5d4b2cb6a39ca112f7009d11b73b376c498f41f836d7a9c7c80b657cc50 | /* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information
* 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 ... | C++ | src/scriptdev2/scripts/kalimdor/azshara.cpp | natedahl32/portalclassic | gpl-2.0 | 9,503 | 261 | codeparrot/github-code |
16545f6d5f2a0bbf4097c00d670b597e7ec556a80777246ba0016b9a9e7e5437 | # tz/Makefile -- MiNTLib.
# Copyright (C) 1999, 2000 Guido Flohr <guido@freemint.de>
#
# This file is part of the MiNTLib project, and may only be used
# modified and distributed under the terms of the MiNTLib project
# license, COPYMINT. By continuing to use, modify, or distribute
# this file you indicate that you ha... | Makefile | tz/Makefile | ArmstrongJ/MiNTLib | gpl-2.0 | 5,683 | 228 | codeparrot/github-code |
7676122d30d245c4eba22559eed79448e44a0bdf2b6a2338f944f09dca4da6d0 | /*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2011-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | Java | integrations/opennms-jasper-extensions/src/main/java/org/opennms/netmgt/jasper/helper/TimeRange.java | rfdrake/opennms | gpl-2.0 | 5,775 | 153 | codeparrot/github-code |
ce8cde23000cdeb6f8da8073496644df4e8dbe08273ef445af91fa33363a39eb | import java.io.*;
import java.util.*;
public class testRelationMin
{
public static String getEntity(String startEnt, String entity) throws IOException
{
FileReader fr = new FileReader("processedTeKnowbase.tsv");
BufferedReader br = new BufferedReader(fr);
String line = "";
while((line = br.readLine()) != nu... | Java | listing/teknowbaseListing/testRelationMin.java | manjeetk09/GoogleScrapper | gpl-2.0 | 4,053 | 194 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.