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 |
|---|---|---|---|---|---|---|---|---|
c0d09d71310aaf07c77864cccd16e098581a85c3e4193e07a06c280a26fe4e1a | /*
* MRAG_STDTestL1.h
* MRAG
*
* Created by Diego Rossinelli on 7/16/08.
* Copyright 2008 CSE Lab, ETH Zurich. All rights reserved.
*
*/
#pragma once
#include "MRAGCommon.h"
#include "MRAGrid.h"
namespace MRAG
{
template <typename Wavelets, typename Block>
class MRAG_STDTestL1 //LEVEL 1: crashes, mem... | C | MRAG/source/MRAGcore/MRAG_STDTestL1.h | cselab/MRAG-I2D | gpl-2.0 | 704 | 51 | codeparrot/github-code |
f47761f041c8428db0cff48430ab77e06a793a50b58a0188e95893407fc2bbc8 | <?php
/**
* This class contains some templating functions - for building HTML code.
* @author Pexeto
*
*/
class PexetoTemplater{
/**
* Builds a template for a single custom page list item.
* @param $post the post object that represents the item
* @param $custom_page a custom page object that represents tha... | PHP | wp-content/themes/expression/lib/classes/pexeto-templater.php | aprilmgallaty/shashonnaKnechtFX | gpl-2.0 | 4,364 | 117 | codeparrot/github-code |
5a0a57bb45f2162f491b1e0138f70e8a2a6e1c57355b6fe282d03a9adc816fae | import logging
import re
import socket
import binascii
import sys
import os
import time
import gevent
import subprocess
import atexit
from Config import config
from Crypt import CryptRsa
from Site import SiteManager
from lib.PySocks import socks
from gevent.coros import RLock
from util import helper
from Debug import... | Python | src/src/Tor/TorManager.py | bashrc/zeronet-debian | gpl-2.0 | 10,295 | 269 | codeparrot/github-code |
18e076d3f034b18be2a681db1d0b57dcf7a1c45002452136af049fb1350eb51e | #!/bin/sh
# Copyright (C) 1997, 1998, 1999 TCX DataKonsult AB & Monty Program KB & Detron HB
# For a more info consult the file COPYRIGHT distributed with this file.
# This scripts creates the privilege tables db, host, user, tables_priv,
# columns_priv in the mysql database, as well as the func table.
#
# All unrecog... | Shell | scripts/mysql_install_db.sh | NickeyWoo/mysql-3.23.49 | gpl-2.0 | 12,936 | 374 | codeparrot/github-code |
187d11c526d94252fb8abe8465aad8ecdde0029e2ec47327da7265dc25455e31 | package com.panguso.android.shijingshan.news;
import com.panguso.android.shijingshan.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.... | Java | shijingshan-app/src/com/panguso/android/shijingshan/news/NewsPageTitleBar.java | luo-isaiah/shijingshan | gpl-2.0 | 2,097 | 87 | codeparrot/github-code |
e07feb935cecd5a3a4cd27b319cc16d0280edd7f3f0dbd1c566e37b092b01feb | <?php
/*
* Log.php - Displays special logs
*
* BeBot - An Anarchy Online & Age of Conan Chat Automaton
* Copyright (C) 2004 Jonas Jax
* Copyright (C) 2005-2010 Thomas Juberg, ShadowRealm Creations and the BeBot development team.
*
* Developed by:
* - Alreadythere (RK2)
* - Blondengy (RK1)
* - Blueeagl3 (RK1)
* - Glaraw... | PHP | main/15_Log.php | J-Soft/BeBot-legacy | gpl-2.0 | 5,679 | 167 | codeparrot/github-code |
d105ef32c5d3ff0e06cafc3ab1e0c1810e4e406e7b31ca8afe4f73cb7c0aea27 | /*
* ws2812b_rpi lib: Raspberry Pi programming interface for controlling WS2812B RGB LEDs
*
* needs to be used with the library provided by Jeremy Garff, named rpi_ws281x
*
* note that former versions of this interface (before Jan 6th, 2021) used a different
* library, from 626pilot, that only worked well on RPi 1, and... | C | ws2812b_rpi.c | Mattscheibe/ws2812b_rpi | gpl-2.0 | 11,225 | 270 | codeparrot/github-code |
639bc647161d7d50efa619a343785c074ac3f4aab9155aaa82345592d0cb6598 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.templates.RobotParts;
/**
*
* @author Ant... | Java | 2557_2014/src/edu/wpi/first/wpilibj/templates/commands/Latch.java | FIRST-Team-2557-The-SOTABots/2014 | gpl-2.0 | 1,319 | 48 | codeparrot/github-code |
05bd106acee6efbc99a073bc91a01e4207cccbc8d4668947553264f7bab6d4cb | /*
* websockets.c - deal with WebSockets clients.
*
* This code should be independent of any changes in the RFB protocol. It is
* an additional handshake and framing of normal sockets:
* http://www.whatwg.org/specs/web-socket-protocol/
*
*/
/*
* Copyright (C) 2010 Joel Martin
*
* This is free software; y... | C | libvncserver/websockets.c | aktowns/libvncserver | gpl-2.0 | 25,479 | 930 | codeparrot/github-code |
38eb26f956ad02c442031b3f10542c43affbc12346885591d8c47b64ff44fab2 | #ifndef GAMMA_SYNC_H_INC
#define GAMMA_SYNC_H_INC
/* Gamma - Generic processing library
See COPYRIGHT file for authors and license information */
#include "Gamma/Node.h"
namespace gam{
class Sync;
/// Normalized unit synchronization observer
class Synced1{
public:
virtual ~Synced1(){}
double spu() const { re... | C | gammaTest/include/Gamma/Sync.h | experimentalDataAesthetics/smallOFmodules | gpl-2.0 | 4,923 | 184 | codeparrot/github-code |
35ec56afb82a32cd0ecd19a766b17d10957a6e0d048d38ab1124149618c7b1b9 | import cgi
import hashlib
import http.server
import io
import os
import posixpath
import ssl
import threading
import time
import urllib.parse
import pyftpdlib.authorizers
import pyftpdlib.handlers
import pyftpdlib.servers
class FTPServer:
def __init__(self, port, root, report_size):
class FTPHandlerNoSI... | Python | containers/integration.py | rebase-helper/rebase-helper | gpl-2.0 | 5,136 | 140 | codeparrot/github-code |
4119e1c01f014d809788e89e7bb826cf20e0156142a0155c48868cf740508432 | package se.culvertsoft.mgen.visualdesigner.view.autobox2
import java.awt.Toolkit
import scala.reflect.ClassTag
import javax.swing.DefaultComboBoxModel
import javax.swing.text.AttributeSet
import javax.swing.text.BadLocationException
import javax.swing.text.PlainDocument
class AutoBoxDocument[ItemType <: AutoBoxItem... | Scala | src/main/scala/se/culvertsoft/mgen/visualdesigner/view/autobox2/AutoBoxDocument.scala | culvertsoft/mgen-visualdesigner | gpl-2.0 | 3,732 | 137 | codeparrot/github-code |
97799e554f820dcf0ef65c02c7b90e630b9d93066d3ae6424e7cff8a64ea4a23 | /*
* Mercury-SSH
* Copyright (C) 2017 Skarafaz
*
* This file is part of Mercury-SSH.
*
* Mercury-SSH 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 opti... | Java | app/src/main/java/it/skarafaz/mercury/MercuryApplication.java | Skarafaz/mercury | gpl-2.0 | 4,061 | 109 | codeparrot/github-code |
d84225fa1d20fe3dc266865d46b4f812bbd37487f4dfb67db5592cf4b41cc874 | <?php
/**
* [s2Member-List /] Shortcode.
*
* Copyright: © 2009-2011
* {@link http://www.websharks-inc.com/ WebSharks, Inc.}
* (coded in the USA)
*
* This WordPress plugin (s2Member Pro) is comprised of two parts:
*
* o (1) Its PHP code is licensed under the GPL license, as is WordPress.
* You should have re... | PHP | wp-content/plugins/s2member-pro/includes/classes/sc-member-list-in.inc.php | graph-io/creativehaus | gpl-2.0 | 12,521 | 301 | codeparrot/github-code |
893ae8a7a4853f0f528697ff2510c06a7c1070f89f0353615cc2b7c8e15c1639 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Test\Unit\Pricing\Render;
use Magento\Catalog\Model\Product\Pricing\Renderer\SalableResolverInterface;
use Magento\Catalog\Pricing\Price\FinalPrice;
use Magento\Catalog\Pricing\Price\Minim... | PHP | app/code/Magento/Catalog/Test/Unit/Pricing/Render/FinalPriceBoxTest.php | kunj1988/Magento2 | gpl-2.0 | 16,529 | 465 | codeparrot/github-code |
ce4825ebaebc31a7132ad63066d92834af011678d4ed324c30003a5087ce655a | class Backzilla::Entity::MongoDB < Backzilla::Entity
include Backzilla::Executor
def initialize(name, options, base_path = '/tmp/backzilla')
super(name, base_path)
@database = options['database']
end
def prepare_backup
if @database.blank?
fatal "Database name is blank"
exit -1
end
... | Ruby | lib/backzilla/entity/mongo_db.rb | amberbit/backzilla | gpl-2.0 | 1,000 | 43 | codeparrot/github-code |
dd3f3dde0e4307aaf13d7dcd05fac05097c41852aeffee42400927162e1391f5 | <?php
defined('_JEXEC') or die;
class EventsComponentHelper {
public static function getContents(){
$db = JFactory::getDBO();
$strSqlStatement = "SELECT * FROM #__content WHERE mask <> 1 AND catid=10";
$db->setQuery(str_replace('#__', $db->getPrefix(), $strSqlStatement));
$mixRe... | PHP | administrator/components/com_events/helper.php | pablopalillo/terminales-medellin | gpl-2.0 | 4,155 | 105 | codeparrot/github-code |
f24ffdfcf98797042f18b08bb1e7f67c282efe0ba0b5ad8e45bf5fca029b59e4 | /*
* Copyright (C) 2008-2014 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 General Public License as published by the
* Free Software Foundation; either ver... | C++ | src/server/game/DataStores/DBCStores.cpp | mynew5/tc | gpl-2.0 | 48,280 | 994 | codeparrot/github-code |
ef24ad055e0ffaaea89eddd72decabfef76220f90caaeea91a217674910e5e3f | <?php
define('GLPI_ROOT', '../../../..');
include (GLPI_ROOT . "/inc/includes.php");
include (GLPI_ROOT . "/config/config.php");
global $DB;
Session::checkLoginUser();
Session::checkRight("profile", "r");
?>
<html>
<head>
<title>GLPI - <?php echo __('Tickets Map','dashboard'); ?></title>
<!-- <base href= "<?php ... | PHP | plugins/dashboard/front/map/index.php | opusappteam/PLGLPI0842 | gpl-2.0 | 16,765 | 523 | codeparrot/github-code |
b1cc52221114f443ea9ec3d8a83909c3e7d9fdff69afd088fd3c17b086d949ab | using System;
using System.Windows;
using System.Windows.Controls.Primitives;
using Multitouch.Framework.WPF.Input;
namespace Multitouch.Framework.WPF.Controls.Primitives
{
/// <summary>
/// Extends <see cref="System.Windows.Controls.Primitives.Thumb"/> to receive Multitouch events.
/// </summary>
publi... | C# | Main Source/Framework/Multitouch.Framework.WPF/Controls/Primitives/Thumb.cs | nesherhh/MultiTouchVista | gpl-2.0 | 2,530 | 90 | codeparrot/github-code |
692cbcc62a28d63001eac6354ba71f7c31af2a5dbb1d9483c4bb608e40a88128 | #include <linux/module.h>
#include <linux/preempt.h>
#include <linux/smp.h>
#include <asm/msr.h>
static void __rdmsr_on_cpu(void *info)
{
struct msr_info *rv = info;
struct msr *reg;
int this_cpu = raw_smp_processor_id();
if (rv->msrs)
reg = per_cpu_ptr(rv->msrs, this_cpu);
else
reg = &rv->reg;
rdmsr(rv->m... | C | arch/x86/lib/msr-smp.c | leemgs/OptimusOneKernel-KandroidCommunity | gpl-2.0 | 3,597 | 188 | codeparrot/github-code |
95ace343421fb214b1d9bc3b5d556414d5d86e0931857c65d1701d2b44345b46 | <?php
namespace SiteAudit\Check\Drush;
use SiteAudit\AuditResponse\AuditResponse;
use SiteAudit\Check\Check;
use SiteAudit\Executor\DoesNotApplyException;
use SiteAudit\Annotation\CheckInfo;
/**
* @CheckInfo(
* title = "Google analytics",
* description = "Tests to ensure the site is correctly configured google ... | PHP | src/Check/Drush/GA.php | paulkilla/site-audit | gpl-2.0 | 2,479 | 60 | codeparrot/github-code |
7fc455c4c632ce47fe70c87d0f2fb559cbca6e4c7b3beb58cabca84eade170fb | package handiGab.FormBean;
import java.util.Date;
import javax.faces.bean.SessionScoped;
//@ManagedBean(name="CompteFB")
@SessionScoped
public class CompteFB
{
private String id;
private String agence;
private String devise;
private String client;
private Long solde;
private Date dateOuverture;
... | Java | H/HandiGAB/src/handiGab/FormBean/CompteFB.java | TDepelley/handigab | gpl-2.0 | 1,309 | 87 | codeparrot/github-code |
6ed63c1431fb519501391325f68ef37f1afe6cac216d706a69461d7392bebfce | <?php
namespace SMSApi\Api;
defined('_JEXEC') || die;
use SMSApi\Proxy\Http\Native;
/**
* Class ActionFactory
* @package SMSApi\Api
*/
abstract class ActionFactory
{
/**
* @var \SMSApi\Client
*/
protected $client = null;
/**
* @var \SMSApi\Proxy\Proxy
*/
protected $proxy = null;
/**
* @param nu... | PHP | plugins/loginguard/smsapi/classes/Api/ActionFactory.php | emundus/v6 | gpl-2.0 | 1,201 | 89 | codeparrot/github-code |
b5b69d6b123b4fb743fe1fddc53e578ee1d89e008b03db61c65843f429235396 | '''
Created on Sep 15, 2010
@author: duncantait
'''
from SimPy.Simulation import *
import numpy as np
import random
import math
class G():
#Settings for HF Stations
num_channels = 18
num_stations = 10
class Network():
stations = []
class Medium():
def __init__(self):
self.channel... | Python | ALE/HF_Sim_Book.py | IncidentNormal/TestApps | gpl-2.0 | 17,239 | 375 | codeparrot/github-code |
fa9fa0a09c8aff5bc12006c8f4a881019b2b4d488d923dcf6faf3f8d606d0620 | /*******************************************************************************
* Copyright (c) MOBAC developers
*
* 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... | Java | src/main/java/mobac/gui/components/JDirectoryChooser.java | bh4017/mobac | gpl-2.0 | 1,897 | 59 | codeparrot/github-code |
b4b76bf82c4069ccee4ec55f9b6c659a7666108a18ff5c19d67e63f7f831b8f2 | <?php
class modules_g2 {
/**
* @brief The base URL to the datepicker module. This will be correct whether it is in the
* application modules directory or the xataface modules directory.
*
* @see getBaseURL()
*/
private $baseURL = null;
/**
* @brief Returns the base URL to this module's directory. Usef... | PHP | modules/g2/g2.php | shannah/xataface | gpl-2.0 | 7,713 | 240 | codeparrot/github-code |
80a042a5d109ba7ad3fcc980b8399f08296b496dce7ec8a01c40a3f9094e481f | package net.demilich.metastone.game.cards;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import net.demilich.metastone.game.Attribute;
import net.demilich.metastone.game.actions.BattlecryAction;
import net.demilich.metastone.game.actions.PlayCardAction;
import net.demilich.metaston... | Java | game/src/main/java/net/demilich/metastone/game/cards/MinionCard.java | demilich1/metastone | gpl-2.0 | 3,644 | 120 | codeparrot/github-code |
458e0c88c28eb1331aa24aa514bea9ccbf0d17c1914b43aed8b22818e8a62b89 | #include "b_local.h"
#include "g_nav.h"
void Remote_Strafe(gentity_t *aiEnt);
#define VELOCITY_DECAY 0.85f
//Local state enums
enum
{
LSTATE_NONE = 0,
};
void Remote_Idle(gentity_t *aiEnt);
void NPC_Remote_Precache(void)
{
G_SoundIndex("sound/chars/remote/misc/fire.wav");
G_SoundIndex( "sound/chars/remote/misc... | C++ | codemp/game/NPC_AI_Remote.cpp | Stoiss/Rend2 | gpl-2.0 | 8,510 | 379 | codeparrot/github-code |
8725ff1a510006caa9aeeb62173eceecb8c56fefcbeabbe2eb3a1ed9005d3f73 | <?php
class PoP_SPAResourceLoader_FileReproduction_InitialResourcesConfig extends PoP_SPAResourceLoader_FileReproduction_AddResourcesConfigBase
{
// public function getRenderer()
// {
// global $pop_sparesourceloader_initialresources_configfile_renderer;
// return $pop_sparesourceloader_initial... | PHP | layers/Legacy/Schema/packages/migrate-everythingelse/migrate/plugins/pop-sparesourceloader/kernel/resourceloaders/config/implementations/resourceloader-config-initial-resources.php | leoloso/PoP | gpl-2.0 | 1,344 | 43 | codeparrot/github-code |
b0c31af3278a03edc90feaea3e09fea2a9309f4e0c77e64ba188afc3ca929716 | <?php if ( ! defined( 'OT_VERSION' ) ) exit( 'No direct script access allowed' );
/**
* OptionTree functions
*
* @package OptionTree
* @author Derek Herman <derek@valendesigns.com>
* @copyright Copyright (c) 2013, Derek Herman
* @since 2.0
*/
/**
* Theme Options ID
*
* @return string
*
* @acces... | PHP | content/themes/sliopress/admin/includes/ot-functions.php | muhammadzulfikar/sliopress | gpl-2.0 | 6,209 | 273 | codeparrot/github-code |
b288f440a6a1e3a576f47d77b375e3e732ea779140fde949e4bdb894126959c2 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>qooxdoo » Demo » Sample</title>
<link type="text/css" rel="stylesheet" href="../../css/layout.css"/>
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="../../css/layout_ie.css"/>
<![endif]-->
<scr... | HTML | webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/CrossBrowser_2.html | technosaurus/samba4-GPL2 | gpl-2.0 | 3,771 | 129 | codeparrot/github-code |
60f75018b58d710fabe9e98babc2c5fbf6cf36528b549a2b38073cb9ceacef79 | /* Interface related function for RIP.
* Copyright (C) 1997, 98 Kunihiro Ishiguro <kunihiro@zebra.org>
*
* This file is part of GNU Zebra.
*
* GNU Zebra 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; e... | C | ripd/rip_interface.c | freerangerouting/frr | gpl-2.0 | 28,512 | 1,201 | codeparrot/github-code |
c041ded64e9c66af195618807131f4169a469360e3add26bb3d2cc986b982b0e | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
* Copyright 201... | C | target/linux/realtek/files/arch/rlx/kernel/irq-gic.c | foric/Upvel-UR-825ac | gpl-2.0 | 6,138 | 257 | codeparrot/github-code |
3b9c27a0cb742f85d62103fd663735853abfcb0eafbf3c2e051c6defce853777 | /*
* Copyright (C) 2011 Team XBMC
* http://www.xbmc.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.
*
* T... | C++ | xbmc/filesystem/Slingbox.cpp | opdenkamp/xbmc | gpl-2.0 | 21,581 | 623 | codeparrot/github-code |
6a5da05026a551703e2e9e6c93dd8a2fb6052d9d73bdc4cd3ffe2082de2b3259 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright © 2011 Thomas Schreiber
#
# 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... | Python | src/view/Changes.py | ubiquill/Potluck | gpl-2.0 | 2,295 | 74 | codeparrot/github-code |
2695a73d1a35bfb4d1d1f10dd6837fc37da2fed1f22b2eb3396998edd0739b47 | /* exported DwellClickIndicator */
const { Clutter, Gio, GLib, GObject, St } = imports.gi;
const PanelMenu = imports.ui.panelMenu;
const MOUSE_A11Y_SCHEMA = 'org.gnome.desktop.a11y.mouse';
const KEY_DWELL_CLICK_ENABLED = 'dwell-click-enabled';
const KEY_DWELL_MODE = 'dwell-mode';
const DWELL_MODE_WINDO... | JavaScript | js/ui/status/dwellClick.js | endlessm/gnome-shell | gpl-2.0 | 2,897 | 82 | codeparrot/github-code |
41cea3022203f82782a303695c488f51e95fdc3e115bcf5d7ff2a8aad70904be | /* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var contactSelectorAction = 'calendars-contacts';
function uixEarlierDate(date1, date2) {
// can this be done in a sane way?
if (date1 && date2) {
if (date1.getYear() < date2.getYear()) return date1;
if (date1.getYear() > dat... | JavaScript | UI/WebServerResources/UIxTaskEditor.js | zentyal/sogo | gpl-2.0 | 8,366 | 274 | codeparrot/github-code |
3db72ab41232a4f601f07270c1cda883f2c1e4fb4b972f0c253267a2ba8f5ca1 | /*
* Copyright 2005-2006 Sun Microsystems, Inc. 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 Software Fou... | Java | openjdk/jaxws/drop_included/jaxws_src/src/com/sun/tools/internal/ws/wsdl/document/Types.java | TheTypoMaster/Scaper | gpl-2.0 | 3,415 | 114 | codeparrot/github-code |
311793aeeb9a010d4c40b60c9a8e87a7c3b0150338efc127ab047079a0777439 | #
# kickstart.py: kickstart install support
#
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
# Red Hat, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Fou... | Python | pyanaconda/kickstart.py | kparal/anaconda | gpl-2.0 | 89,420 | 2,200 | codeparrot/github-code |
e0640b80cdc6f129a312f01cc1071968c335e9adf2b4a3b25d6aca47c5842846 | /*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | C | kernel/fork.c | halaszk/halaszk-UNIVERSAL5420 | gpl-2.0 | 45,607 | 1,879 | codeparrot/github-code |
3c4001fc0174ea9f3fa0fb1cc6e4df4382933331915d79af24413be8ce5c0b58 | import warnings
from . import pedrpc
from .base_monitor import BaseMonitor
# Important: BaseMonitor needs to come *before* pedrpc.Client in the
# Inheritance list for the method resolution order to produce
# correct results.
class ProcessMonitor(BaseMonitor, pedrpc.Client):
"""
Proxy class for the process ... | Python | boofuzz/monitors/process_monitor.py | jtpereyda/boofuzz | gpl-2.0 | 5,053 | 141 | codeparrot/github-code |
5e28856637b6878678e48525fa032badf06973df74ad9908913e7aa6734eb2a6 | <?php
class AdminBlogsController extends AdminController {
/**
* Post Model
* @var Post
*/
protected $post;
/**
* Inject the models.
* @param Post $post
*
*/
public function __construct(Post $post)
{
parent::__construct();
$this->post = $post;
... | PHP | app/controllers/admin/AdminBlogsController.php | hansenmakangiras/sim-pmk | gpl-2.0 | 7,272 | 243 | codeparrot/github-code |
5efab9a2296a6097b9a2bb8c7214fe5de7cb99cb4da5077daecdeea8a0edd3db | /*
* Copyright (C) 2003 Robert Kooima - 2006 Jean Privat
*
* 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.
*
... | C | ball/st_name.c | libcg/neverball-psp | gpl-2.0 | 4,403 | 208 | codeparrot/github-code |
98822b62572c093fbdbd820d14fa8e3fcec5d1c00b32d60e4031a3e6e8e0403c | /*
* 32bit Socket syscall emulation. Based on arch/sparc64/kernel/sys_sparc32.c.
*
* Copyright (C) 2000 VA Linux Co
* Copyright (C) 2000 Don Dugger <n0ano@valinux.com>
* Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com>
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 19... | C | net/compat.c | NEKTech-Labs/NEKTech-Linux | gpl-2.0 | 24,978 | 870 | codeparrot/github-code |
e0ded1bfeb77413ff85f717998ae975c2445e8e32623d5383c1754405122eb9e | <?php
/*********************************************************************
class.mailer.php
osTicket mailer
It's mainly PEAR MAIL wrapper for now (more improvements planned).
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the ... | PHP | include/class.mailer.php | RockefellerArchiveCenter/osTicket | gpl-2.0 | 10,375 | 284 | codeparrot/github-code |
65b89e7fabd61fe0127f6c29f040d2a526345344f98d8c61ff7385c9bf577bf2 | <?php /* Smarty version 2.6.18, created on 2010-09-26 16:49:24
compiled from /var/www/vhosts/freshaircreatives.com/subdomains/beta7/httpdocs/data/themes/default/admin/forms/tab_edit_email_tab4.tpl */ ?>
<?php if ($this->_tpl_vars['num_submissions'] == 0): ?>
<div class="margin_top margin... | PHP | data/themes/default/cache/%%95^95F^95F8E63D%%tab_edit_email_tab4.tpl.php | creative2020/jmc | gpl-2.0 | 4,654 | 86 | codeparrot/github-code |
83de9aa90d5f66bf4ce3ff36508e96c33b900de2863889bf18d1bd3e326b054c | <?php
#-----------------------------------------
# RT-Theme woo-integration.php
# version: 1.0
#-----------------------------------------
#-----------------------------------------
# remove woo actions
#-----------------------------------------
global $woocommerce, $suffix;
//remove woo styles
if(!is_admin()){
de... | PHP | wp-content/themes/rttheme17/rt-framework/functions/woo-integration.php | pengting/wordpress2 | gpl-2.0 | 18,046 | 586 | codeparrot/github-code |
d11567dda26784598711eda71a8e762976c766548c865c69263c4d7b4b7589c7 | #include "NewPHPClass.h"
#include <windowattrmanager.h>
#include <wx/dirdlg.h>
#include <wx/tokenzr.h>
#include <wx/textdlg.h>
NewPHPClass::NewPHPClass(wxWindow* parent, const wxString& classPath)
: NewPHPClassBase(parent)
, m_userModifiedFileName(false)
, m_outputPath(classPath)
{
SetName("... | C++ | codelitephp/php-plugin/NewPHPClass.cpp | zuzanak-ondrej/codelite_appmonitor | gpl-2.0 | 6,517 | 170 | codeparrot/github-code |
c37a9d56020440f18393e263e7631c1046fb9418590ff08043c559b5b506a99d | let React = require('react'),
SearchItem = require('./SearchItem');
let SearchAlbum = React.createClass({
contextTypes: {
updateRoute: React.PropTypes.func,
goBack: React.PropTypes.func,
data: React.PropTypes.array,
addTrack: React.PropTypes.func,
getAlbum: React.PropTypes.func
},
compone... | JavaScript | app/components/inParty/search/SearchAlbum.js | pqmcgill/jukebot | gpl-2.0 | 1,715 | 65 | codeparrot/github-code |
440726673527f4e7e7914969080c68c59bde5c4e8beac27db6a17cbf5ca99674 | /*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | Java | esper/src/test/java/com/espertech/esper/regression/epl/TestSelectClauseJoin.java | intelie/esper | gpl-2.0 | 3,301 | 82 | codeparrot/github-code |
61c49b26a89b544e7c3b34d7529d96ad8c4fe2957ac06885a3cdb0060357e582 | <?php
/**
* TomatoCMS
*
* LICENSE
*
* This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/licenses/gpl-2.0.txt
* If you did not receive a copy o... | PHP | app/modules/multimedia/model/dao/pdo/mysql/Note.php | tucq88/os_thoibaonh | gpl-2.0 | 3,549 | 114 | codeparrot/github-code |
1fd4fa88c584f01feb87a07e59cc94a702a0196d37b95b2cd6be3d012b6a1b8e | #include "../../StdAfx.h"
#include "PlaylistView_MfcProxy.h"
#include "PlaylistView_Win.h"
BEGIN_MESSAGE_MAP(PlaylistViewMfcProxy, CWnd)
ON_WM_CREATE()
ON_WM_SIZE()
END_MESSAGE_MAP()
PlaylistView* PlaylistViewMfcProxy::GetView()
{
return m_view.get();
}
BOOL PlaylistViewMfcProxy::Create(CWnd* pParentWnd)
{
i... | C++ | src/Source/apps/mplayerc/UserInterface/Renderer/PlaylistView_MfcProxy.cc | systembugtj/playasa | gpl-2.0 | 814 | 36 | codeparrot/github-code |
c93b17f4d12342cc59180161bf3d37cf4abbdf59ef82308014bfe85f8a4f541d | --メガリス・ベトール
function c99628747.initial_effect(c)
c:EnableReviveLimit()
--ritual summon
local e1=aux.AddRitualProcGreater2(c,c99628747.filter,nil,nil,c99628747.matfilter,true)
e1:SetDescription(aux.Stringid(99628747,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCode(0)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,... | Lua | c99628747.lua | Fluorohydride/ygopro-scripts | gpl-2.0 | 2,192 | 58 | codeparrot/github-code |
463d65437e1ab992a04ebbf1d01e6e9bc3627f721fc23bbc67476d8be3fbecf1 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Delta.MPS.Model;
using Delta.MPS.DBUtility;
using Delta.MPS.SQLServerDAL;
namespace Delta.MPS.AccessSystem
{
p... | C# | AccessSystem/ClearDataForm.cs | Delta-SH/AccessSystem | gpl-2.0 | 6,952 | 153 | codeparrot/github-code |
cc710948a9b4d213d3ec929bc2b641e4d0c12cc351ca71914876676781d74109 | /* SANE - Scanner Access Now Easy.
Copyright (C) 2011-2014 Rolf Bensch <rolf at bensch hyphen online dot de>
Copyright (C) 2007-2009 Nicolas Martin, <nicols-guest at alioth dot debian dot org>
Copyright (C) 2008 Dennis Lou, dlou 99 at yahoo dot com
This file is part of the SANE package.
This program i... | C | backend/pixma_imageclass.c | nphilipp/sane-backends | gpl-2.0 | 23,089 | 799 | codeparrot/github-code |
758b6897929385b61b8d6eb18dfec92cb9fbf6ba9a77a35e02ab215cc4665ea2 | //
// Atari1050 class
// (c) 2016 Eric BACHER
//
#include <cstdio>
#include "Emulator.h"
#include "Atari1050.hpp"
#include "Riot1050.hpp"
Atari1050::Atari1050(Rom *rom, eHARDWARE eHardware, int rpm)
: AtariDrive(CPU_6502, rom, eHardware, rpm, A1050_FREQUENCY, A1050_TICKS_BETWEEN_BITS, A1050_TICKS_AFTER... | C++ | Atari1050.cpp | TheMontezuma/RespeQt | gpl-2.0 | 3,035 | 119 | codeparrot/github-code |
463187195a45fc1e2dcff5f508d272700d6c85af45e264c1c82b07ceeed0a23c | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
#include "tomcrypt_private.h"
/**
@file de... | C | dep/tomlib/Crypt/src/pk/asn1/der/custom_type/der_encode_custom_type.c | mangosthree/server | gpl-2.0 | 6,803 | 239 | codeparrot/github-code |
10bf0f4a136c75f81db8caa2c36321e2b9c13dfdcafc113d2207b60cc2ebeaca | var d3 = require('d3')
module.exports=xychart
function xychart() {
if (!xychart.id) xychart.id = 0;
var margin = {top: 10, right: 10, bottom: 70, left: 160},
x,
y = d3.scale.linear().range([100, 0]),
id = xychart.id++,
xaxis = d3.svg.axis().orient("bottom"),
yaxis = d3.... | JavaScript | lib/grid-plotter/js/xychart.js | jmarca/grid_plotter | gpl-2.0 | 6,532 | 235 | codeparrot/github-code |
1d08e60f49631c918c50bc7507aa508420c2b59318f63e2c9cc31c317dd43c04 | <html lang="en">
<head>
<title>Calling C function pointers - Gforth Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Gforth Manual">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="C-Interface.h... | HTML | S1_AEO/TP6_7/gforth/doc/gforth/Calling-C-function-pointers.html | edgd1er/M1S1_INFO | gpl-2.0 | 4,220 | 88 | codeparrot/github-code |
986c152ece31906bdbe2861535d6798a3f14358ee6a2c879d975ec81a770de2d | <?php // (C) Copyright Bobbing Wide 2015
/**
*
* Class GitHub
*
* Implements an interface to GitHub using the GitHub API
* {@link https://developer.github.com/v3/}
*
* We want to be able to do the following:
*
* - Find out how many downloads there have been for each plugin
* - Check the plugin versions ava... | PHP | includes/class-github.php | bobbingwide/oik-batch | gpl-2.0 | 2,880 | 142 | codeparrot/github-code |
ed6a01eb37ce7c9af6795c7f10f43b444e1f7ab199314b125e8e5cb24daa30a7 | =head1 Perl Reference
=head1 A Must Read!
This document was born because some users are reluctant to learn Perl,
prior to jumping into mod_perl. I will try to cover some of the most
frequent pure Perl questions being asked at the list.
Before you decide to skip this chapter make sure you know all the
information pr... | Perl | src/perl.pod | gitpan/Apache-mod_perl_guide | gpl-2.0 | 83,516 | 2,690 | codeparrot/github-code |
c8f912d310138392191c25132b51752972b6e04ebde6953eb6c97d0b0d3898d8 | /*
*
* Copyright (C) 2011 HTC Corporation.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be usef... | C | arch/arm/mach-msm/htc_battery_core.c | flar2/m8-GPE | gpl-2.0 | 37,473 | 1,352 | codeparrot/github-code |
5cd19511687df464b881bf376e700e591c79f1095d7a2171125ee84da14ff12b | /* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.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, or
* (at your option) any later version.... | C++ | scripts/northrend/dragonblight.cpp | lvshiling/scripts | gpl-2.0 | 5,571 | 176 | codeparrot/github-code |
1f76498f7d7df5acfbb618080a1500ccc4fba1b6fc15caa98d11e993694f26b5 | /* linux/arch/arm/mach-s5pv210/setup-sdhci.c
*
* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* S5PV210 - Helper functions for settign up SDHCI device(s) (HSMMC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General... | C | arch/arm/mach-s5pv210/setup-sdhci.c | hampsterblade/android_kernel_samsung_galaxys4g | gpl-2.0 | 9,290 | 341 | codeparrot/github-code |
260569f4297647ed0b7c9ccf9e671a970786aea1042e8605d0386ff20b3c3ed2 | var form = window.document.forms[0];
var inputsObject = {};
var rawParams = [];
var mappedParams = [];
var getInputValue = function(input) {
var value = false;
switch (input.type) {
case 'radio':
case 'checkbox':
if (input.checked) {
... | JavaScript | wp-content/plugins/landing-pages/shared/assets/frontend/js/analytics-src/form-mapping.js | apptradly/prod | gpl-2.0 | 10,576 | 288 | codeparrot/github-code |
6c5ba2ec9c2b5bd735adf588f2d63e9fd51eafeaf427469cb805efc351f381f5 | /*
* Copyright (C) 2008-2008 LeGACY <http://www.legacy-project.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 vers... | C | src/framework/Policies/ObjectLifeTime.h | PyroSamurai/legacy-project | gpl-2.0 | 1,319 | 47 | codeparrot/github-code |
dca22a121b1f31f558cda9c74f54dd93df48699c6de489690db45b82e1018186 | // Copyright (c) Charles J. Cliffe
// SPDX-License-Identifier: GPL-2.0+
#include <memory>
#include <iomanip>
#include "DemodulatorInstance.h"
#include "CubicSDR.h"
#include "DemodulatorThread.h"
#include "DemodulatorPreThread.h"
#include "AudioSinkFileThread.h"
#include "AudioFileWAV.h"
#if USE_HAMLIB
#include "Rig... | C++ | src/demod/DemodulatorInstance.cpp | cjcliffe/CubicSDR | gpl-2.0 | 18,578 | 690 | codeparrot/github-code |
28b9c04c55f93b5ffb1e843d6698e5353ce30ab6c3d10e0dfe427efe3d196c4f | <?php
/**
*
* Simple blog site blog block
*
* Simple blog site blog block which can be used by other modules to render
* a site blog, for example by the SLATE module.
*
* 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
... | PHP | simpleblog/classes/block_contextblog_class_inc.php | chisimba/modules | gpl-2.0 | 4,861 | 162 | codeparrot/github-code |
7901a30d3ec8f535d4ac9ac03ba7ad4aebf30434c43dd58155e693a28735d4ec | <?php
// security check - must be included in all scripts
if (!$GLOBALS['kewl_entry_point_run']){
die("You cannot view this page directly");
}
/**
*
* Data access class for hellokinky module. This class
* extends dbTable to access the table tbl_hellokinky
* @author Acquim Matuli-Bulimwengu
* @copyright (c) 20... | PHP | feedback/classes/dbfb_questions_class_inc.php | chisimba/modules | gpl-2.0 | 1,986 | 64 | codeparrot/github-code |
a0a6edfd2befb2ce2142f3998f3ade4a8aa9c69ed040c3af6ed52ece6827fdc2 | #include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <vector>
#include <algorithm>
#include "halirSpec.hpp"
//#include "specsac.h"
using namespace std;
namespace pt = boost::property_tree;
namespace bf = b... | C++ | HalIR/halirSpec.cpp | JHeimdal/HalIR | gpl-2.0 | 3,373 | 110 | codeparrot/github-code |
acb69c29a91ff9b6251c0e41f18e2313e1077863dad906a1333adfe829c3eee3 | /**
* Instituto de Matemática e Estatística da Universidade de São Paulo (IME-USP)
* iVProg is a open source and free software of Laboratório de Informática na
* Educação (LInE) licensed under GNU GPL2.0 license.
* Prof. Dr. Leônidas de Oliveira Brandão - leo@ime.usp.br
* Romenig da Silva Ribeiro - romenig@... | Java | ivprog-final/src/usp/ime/line/ivprog/interpreter/execution/expressions/booleans/comparisons/LessThanOrEqualTo.java | Romenig/ivprog2-final | gpl-2.0 | 1,808 | 51 | codeparrot/github-code |
c17ebb8199d9a0f5988eb39183e719b230cf777fac0d2cbed0a86c166c333f2e | /******************************************************************************\
CAMotics is an Open-Source simulation and CAM software.
Copyright (C) 2011-2019 Joseph Coffland <joseph@cauldrondevelopment.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU G... | C++ | src/gcode/parse/Tokenizer.cpp | CauldronDevelopmentLLC/OpenSCAM | gpl-2.0 | 4,360 | 180 | codeparrot/github-code |
3abc4a4d11b9845d51c8042ce201b90e364934418dd3d03d71c7a6306db0ef3c | /*
* Copyright (c) 2012-2014 Qualcomm Atheros, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND TH... | C | backports/drivers/net/wireless/ath/wil6210/interrupt.c | Bogdacutu/STLinux-Kernel | gpl-2.0 | 14,913 | 575 | codeparrot/github-code |
d7e7f93c5db53f689a95a52ba65aa026ed58da9d6c33aa8a08ebbc8a7df5fb3f | /*
* Copyright (c) 2003-2010 University of Florida
*
* 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 prog... | C++ | src/sial_compiler/sial/qcarray.cpp | ajithperera/acesiii | gpl-2.0 | 33,082 | 1,256 | codeparrot/github-code |
fce0785a54c331a99b25edecb62fc4314141fcf0deef04a73931a80ffc32fdfb | /*global document, window, gdn, jQuery*/
jQuery(($) => {
// Check if an element's top is visible in the viewport.
function inview(target) {
target = $(target);
return target.length && target.offset().top > window.pageYOffset;
}
// Find the previous comment of the mentioned user in thi... | JavaScript | js/quotemention.js | bleistivt/quotemention | gpl-2.0 | 4,098 | 112 | codeparrot/github-code |
bcb8f53848f4649911dad9897f03f9747079f15ea60a5e337d6f5a5aedf28c5b | /*
*** Trajectory Commands
*** src/command/trajectory.cpp
Copyright T. Youngs 2007-2018
This file is part of Aten.
Aten is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | C++ | src/command/trajectory.cpp | trisyoungs/aten | gpl-2.0 | 4,024 | 136 | codeparrot/github-code |
7060bce9b1824c08dfb7d085bc6ff1ec738f6691686f4c13ed606ab0645039cf | // **********************************************************************
//
// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
import Demo.*;
class SessionFactoryI extends _SessionFactoryDisp
{
SessionFactoryI(ReapTask reaper)
... | Java | java/Ice/session/SessionFactoryI.java | qiuxs/ice-demos | gpl-2.0 | 856 | 36 | codeparrot/github-code |
6153f495c4c50a8e6ebbb5010339db96b1f4f33551d4b06eb7bb154a83ff6b96 | /*
* Copyright (c) 2011, Lawrence Livermore National Security, LLC. Produced at
* the Lawrence Livermore National Laboratory. Written by Keith Stevens,
* kstevens@cs.ucla.edu OCEC-10-073 All rights reserved.
*
* This file is part of the S-Space package and is covered under the terms and
* conditions therein.
*
... | Java | src/test/java/edu/ucla/sspace/text/corpora/SemEvalCorpusReaderTest.java | fozziethebeat/S-Space | gpl-2.0 | 2,487 | 72 | codeparrot/github-code |
1158d275f004a828f5edfc9e4dc92e163a0619b120aa95b3538390d514089a71 | # Copyright (C) 2004 Jeremy S. Sanders
# Email: Jeremy Sanders <jeremy@jeremysanders.net>
#
# 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
# ... | Python | veusz/widgets/page.py | veusz/veusz | gpl-2.0 | 13,301 | 381 | codeparrot/github-code |
94bdd7d1f8a4083eed03c47d5f3a352cac2a36add6ad7ccd8c45aa96d0b5d9eb | package com.infoecos.ning.util.graph;
import java.util.Stack;
public class Node {
protected Stack<Link> parentLinks = new Stack<Link>();
protected Stack<Link> links = new Stack<Link>();
protected NodeObject object = null;
public void addParentLink(Link parentLink) {
if (!parentLinks.contains(parentLink))
pa... | Java | src/com/infoecos/ning/util/graph/Node.java | javajoker/infoecos | gpl-2.0 | 1,518 | 71 | codeparrot/github-code |
e1d569f6976a62bfd272f80ae6d0d9333cdbec09a01b2e821b18d34a5b6a4be3 | import time
import numpy
from rga_telnet import *
# Connecting to RGA - RGA(HOST,PORT)
class RGA:
scan = True # This is used for stop of peak scan - if set to False
status = [0 for col in range(4)] # Status of the device, look in rga_status method
showReadout = True # This one is responsible for the text outpu... | Python | RGA.py | mjjank/mks_rga | gpl-2.0 | 4,840 | 167 | codeparrot/github-code |
b3d6aecf6ee804921a1fad80531d04b6a9db8d9ef49c6be7a938134621daabf8 | # -*- coding: utf-8 -*-
#
# Copyright 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should hav... | Python | src/katello/client/api/package.py | Katello/katello-cli | gpl-2.0 | 1,296 | 36 | codeparrot/github-code |
b82c3ac79e1b827ec185a1f692d9b43236c1d8a9396dd71547ef59c033eea766 | package com.hh.search.action;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.hh... | Java | src/com/hh/search/action/AdvancedSearchAction.java | liaochente/knowledge | gpl-2.0 | 10,022 | 408 | codeparrot/github-code |
5813719ccf2b52661ec8cef898133ba7344d31f5e316e1a18d267683ab05febe | /*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | org.eclipse.jface/src/org/eclipse/jface/action/SubContributionItem.java | AntoineDelacroix/NewSuperProject- | gpl-2.0 | 3,549 | 153 | codeparrot/github-code |
cbd2aeb3550fc7f0a79705b36b3fb69e3e117b783bb23043f6b9fd64058e7eec | <?php
/*
+---------------------------------------------------------------------+
| phpTournois |
| phpTournoisG4 ©2005 by Gectou4 <Gectou4 Gectou4@hotmail.com> |
+---------------------------------------------------------------------+
| ... | PHP | include/files/poules.php | Gectou4/phpTournois | gpl-2.0 | 17,092 | 519 | codeparrot/github-code |
f894e441a423a665ad2d128c7eb294365fae6d883b7b4504097c5ea1602452c8 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class attribute_name</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title... | HTML | myodd/boost/libs/log/doc/html/boost/log/attribute_name.html | FFMG/myoddweb.piger | gpl-2.0 | 22,076 | 317 | codeparrot/github-code |
644b23e586c6234e264483cc916be37780ce6b94b3bac883523aa07cd940c0db | /* linux/arch/arm/mach-msm/board-pyramid-mmc.c
*
* Copyright (C) 2008 HTC Corporation.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is ... | C | arch/arm/mach-msm/board-pyramid-mmc.c | LeeDroid-/Pyramid-2.6.35-MR | gpl-2.0 | 6,382 | 215 | codeparrot/github-code |
ad6df6815f0995f9f93bf33f187172238c34ce0895981eeaab4e0a7d80c15791 | package junit;
import jeu.Commande;
import jeu.Taquin;
import main.Main;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import com.carrotsearch.junitbenchmarks.BenchmarkOptions;
import com.carrotsearch.junitbenchmarks.BenchmarkRule;
import com.carrotsearch.jun... | Java | TaquinFinal/src/junit/TaquinSpeed.java | wissame95/IF06-Projet | gpl-2.0 | 989 | 48 | codeparrot/github-code |
a0227514a3344ea5465bca9378db3fb8bd7fac0ff1a43fea19aa92fe701732e5 | use warnings;
use strict;
print "\n================ step 4: generate summary tables from ntfreq files ===========\n\n";
my ($ntfreqPath, $outPath, $refFasta) = load_arg(\@ARGV);
if ($ntfreqPath eq 'NULL'){
help_info();
die "\n[error] folder of *ntfreq files is invalid.\n";
}
if ($refFasta eq 'NULL'){
... | Perl | step4_generate_summary_tables.pl | generality/iSNV-calling | gpl-2.0 | 9,318 | 284 | codeparrot/github-code |
3d365c11742119308a8565722058c31561d68854b08a2fcbad5404388755766a | <?php
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
/* @var $this yii\web\View */
/* @var $generator backend\modules\gii\giiTemplates\crud\Generator */
/* @var $model \yii\db\ActiveRecord */
$model = new $generator->modelClass;
$safeAttributes = $model->safeAttributes();
if (empty($safeAttributes)) {
... | PHP | backend/modules/gii/giiTemplates/crud/defaultTemplate/views/_form.php | RubenDjOn/PrivateTeacher | gpl-2.0 | 3,844 | 106 | codeparrot/github-code |
339f3d54bdbed8634b59d70d7425d86dab5115033fc81d6dc0dc8098ae4fc640 | <?php
/*
*
* Custom In Focus Widget
* ------------------------------------------------
* Swift Framework
* Copyright Swift Ideas 2013 - http://www.swiftideas.net
*
*/
// Register widget
add_action( 'widgets_init', 'init_sf_infocus' );
function init_sf_infocus() { return register_widget('sf_infocus'); }
... | PHP | wp-content/themes/neighborhood/includes/widgets/widget-infocus.php | candelom/21stGarden | gpl-2.0 | 3,722 | 126 | codeparrot/github-code |
2c1dbbd7aeaa7f0cf672ad07080219139bf01697e413b6c8ceabf0510e314cc6 | package exampleProgram.UserIO;
/**
* Handles basic input/output with the console
*
* @author JKidney
* @version 2.0
*
* last Modified: Sept 24, 2012 - JKidney Added new functionality into the class
*/
import java.util.*;
public class ConsoleCom
{
public static final char NO_CHAR_INPUT = ' '; //default for ... | Java | FowlerWill-Comp2503-Assignment05/src/exampleProgram/UserIO/ConsoleCom.java | fowlerwill/SchoolAssignments | gpl-2.0 | 4,118 | 186 | codeparrot/github-code |
388da8c621550b4e41c0080383dafc63261bbf7a670ac37604b2068d8a9181f2 | #start fuseki and upload the dump to several graphs
BIGLITERAL=0
SF=0
NTdir=""
Outputdir="out"
numberofqueries=2
prune=0
Optional=0
service="-"
filter=0
log="BIG Literal No"
> countqueries
set -- $(getopt FBDOi:s:o:n:T: "$@")
while [ $# -gt 0 ]
do
case "$1" in
(-B) BIGLITERAL=1; log="BIG Literal Yes";;
(-F)... | Shell | querysetinit.sh | nurainir/QFed | gpl-2.0 | 4,039 | 201 | codeparrot/github-code |
fdbf3cff241b96290f90bcf7491bc1dd74c1adbd3c32d1b4482854ff09d77f77 | /**
* Copyright (C) 2002-2007 The FreeCol Team
*
* This file is part of FreeCol.
*
* FreeCol 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... | Java | src/net/sf/freecol/common/model/ModelMessage.java | tectronics/reformationofeurope | gpl-2.0 | 16,955 | 494 | codeparrot/github-code |
48a9e7efca4093809c2561eca36d750c4b07207f53e180d92a99988a044ddbb8 | package optfine;
import java.util.Properties;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
public class CustomSkyLayer
{
public String sou... | Java | new_1.8.8/optfine/CustomSkyLayer.java | SkidJava/BaseClient | gpl-2.0 | 10,956 | 326 | codeparrot/github-code |
3c3caa571e9b8bf66dc6e8c24f2b80e5c13bf51bf939675330cb56407fa25510 | /**
* Created by dlouvard_imac on 26/12/2016.
*/
(function () {
var laravel = {
initialize: function () {
this.methodLinks = $('a[data-method]');
this.registerEvents();
},
registerEvents: function () {
this.methodLinks.on('click', this.handleMethod);
... | JavaScript | src/assets/js/laravel_form.js | dlouvard/laravel-gestionmaintenance | gpl-2.0 | 2,281 | 78 | codeparrot/github-code |
98206fd63531b188bf2362e1b52d3a5477cd2c42535eb010f71b1067f5abc277 | package com.yykj.micromsg.services.impl;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONArray;
import org.springframework.stereotype.Service;
import com.yykj.micromsg.services.INopaymetnRecordService;
import c... | Java | device-zjjs/src/com/yykj/micromsg/services/impl/NopaymetnRecordService.java | hankqin/device-manager | gpl-2.0 | 4,010 | 97 | codeparrot/github-code |
a37196d9455fa3a8c99526ae0484988664f11b8d197ec1a711c1bde421ebdf51 | /*
Copyright (C) 2011 Birunthan Mohanathas (www.poiru.net)
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 pr... | C | Plugins/PluginNowPlaying/Lyrics.h | RichVRed/rainmeter | gpl-2.0 | 1,268 | 33 | codeparrot/github-code |
c268da3f8776648997489c1fb28aa8e718aa0d3b0e2194680bcce2102101691a | #include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int checkString(char *s,int i,int j,int len){
char X = 'a'+i;
char Y = 'a'+j;
int top =-1;
char *stack = (char *)malloc(sizeof(char)*len);
for(int i = 0; i ... | C | Algorithms/Strings/ Two Characters.c | vk3105/Hacker-Rank-Soultions | gpl-2.0 | 1,388 | 66 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.