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 |
|---|---|---|---|---|---|---|---|---|
6a77bd64aeaa43b8c304fd070cef69c1da2dba4019657dc8d2ceb0383731989a | using Android.App;
using Android.Graphics;
using Android.OS;
using Android.Views;
using Android.Widget;
using Dietphone.Tools;
using Dietphone.ViewModels;
using Dietphone.Adapters;
using MvvmCross.Droid.Views;
using MvvmCross.Platform;
namespace Dietphone.Views
{
[Activity]
public class MainView ... | C# | Dietphone.Droid/Views/MainView.cs | PawelStroinski/Diettr-GPL | gpl-2.0 | 7,595 | 204 | codeparrot/github-code |
6d6d8103244cc435b205495506a7928d57d049975efea329184d12681675cf38 | /***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | C | wma.c | telent/minipod | gpl-2.0 | 19,366 | 618 | codeparrot/github-code |
bcef1d4251da3ebaa42e248aee213794ea2a16f762f8ae06995dc69527943d1a | /*
This file is part of MADNESS.
Copyright (C) 2007,2010 Oak Ridge National Laboratory
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... | C++ | madness/src/apps/nick/hello.cc | spring01/libPSI | gpl-2.0 | 4,494 | 141 | codeparrot/github-code |
46d6caca3859435e7586e0d26adcdabda2188cc40282f92009f4923567edd769 | /*
* This file is part of Dune Legacy.
*
* Dune Legacy 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.
*
* Dune Legacy is... | C++ | src/FileClasses/IndexedTextFile.cpp | thebohemian/dunelegacy-richiesbranch | gpl-2.0 | 3,196 | 84 | codeparrot/github-code |
bec62582d513b4bed1cfc6e1226d7a198a29bed4cb56feb030d911f1955b06ec | // Copyright (C) 2005 - 2007 Steve Taylor.
// Distributed under the Toot Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.toot.org.uk/LICENSE_1_0.txt)
package uk.org.toot.midi.misc;
import uk.org.toot.music.tonality.Pitch;
/** Support for General MIDI Instrum... | Java | src/uk/org/toot/midi/misc/GM.java | petersalomonsen/frinika | gpl-2.0 | 20,219 | 624 | codeparrot/github-code |
73f1b1de2f486d7a6fa15de2e84fd984212778a27fb5ec31968bf0240233b3ca | <?php
function digest_event($event, $start, $end) {
$tz1 = new DateTimeZone('UTC');
$tz2 = new DateTimeZone('Europe/London');
# Get a string representation of the date in UK time.
$datetime = new DateTime($start, $tz1);
$datetime->setTimezone($tz2);
$start = $datetime->format('D, jS F g:ia');
... | PHP | mailtemplates/digest/event.php | nicksellen/iznik | gpl-2.0 | 1,995 | 43 | codeparrot/github-code |
692a9cdf34f7d75f261427f521d91cded9329c09cc2d25117500b57a7dd41cd2 | // closure to avoid namespace collision
(function(){
//-------
var html_form = '<div id="text_box-form">\
<p class="popup_submit_wrap"><span class="wpp_helper_box"><a onclick="open_win(\'http://www.youtube.com/watch?v=Y_7snOfYato&list=PLI8Gq0WzVWvJ60avoe8rMyfoV5qZr3Atm&index=10\')">Видео урок</a></span><input typ... | JavaScript | wp-content/plugins/wppage/js/box.js | SergL/aboutttango | gpl-2.0 | 3,970 | 81 | codeparrot/github-code |
18f9546e768f4d6f37cf697ebf783dd2bf7fe3e42edc2c63bed37014b73e94fb | /*****************************************************************************
* Web3d.org Copyright (c) 2001
* Java Source
*
* This source is licensed under the GNU LGPL v2.1
* Please read http://www.gnu.org/copyleft/lgpl.html for more information
*
* This so... | Java | Xj3D/src/java/org/web3d/vrml/renderer/common/nodes/surface/BaseImage2D.java | Norkart/NK-VirtualGlobe | gpl-2.0 | 22,301 | 654 | codeparrot/github-code |
396bbed93c27908ec21d72f2a12a6eaa1754d94399089a431a2522260442a21e | /*
* Copyright (c) 2013, 2021, 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 ... | Java | compiler/src/org.graalvm.compiler.phases.common/src/org/graalvm/compiler/phases/common/inlining/info/ExactInlineInfo.java | smarr/Truffle | gpl-2.0 | 3,520 | 111 | codeparrot/github-code |
e353bf9c5c7896fc8ec4fafefa0e178afe6f4fc3993ead0da700eedcf6c9f392 | package cs499.examples.semesterproject;
import javax.servlet.*;
import javax.servlet.http.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Resul... | Java | src/cs499/examples/semesterproject/AndroidFoodBankOwnerServlet.java | hs94/FoodFinderApp | gpl-2.0 | 18,694 | 592 | codeparrot/github-code |
fe0f04e5a3c302a34d709a745d6ae113ac1985a7b6174edcdb1d19d045c40b92 | #! /usr/bin/env python
"""
``climactic.suite``
-------------------
.. autoclass:: ClimacticTestSuite
"""
import logging
import unittest
from pathlib import Path
from climactic.case import ClimacticTestCase
logger = logging.getLogger(__name__)
class ClimacticTestSuite(unittest.TestSuite):
"""
A collection... | Python | climactic/suite.py | b33j0r/climactic | gpl-2.0 | 2,252 | 88 | codeparrot/github-code |
2c788132dc619c440632e3b5bfac630aea89bf98677756d36d9ff59787591273 | <?php
namespace app\models;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "country".
*
* @property integer $id
* @property string $country_name
*
* @property Person[] $people
*/
class Country extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static fu... | PHP | GRID/p0vidl0-yii2/models/Country.php | FreeWebber/s7 | gpl-2.0 | 1,329 | 72 | codeparrot/github-code |
610aa591a7eec46a8de42e609c652bb674f5c0fe4196c1158a7fff3e68bbeafe | /* drivers/input/accelerometer/gs_bosch.c
*
* Copyright (C) 2010-2011 Huawei.
*
* 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 distribu... | C | drivers/input/accelerometer/gs_bosch.c | Fagulhas/android_kernel_huawei_u8815 | gpl-2.0 | 21,182 | 825 | codeparrot/github-code |
ceab88d497f04bf314449e74086a5bc142560df1de0f805dd02ce10ec211f5bd | package com.ks.net;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import com.ks.activitys.IndexActivity.IndexHandler;
import com.ks.net.enums.MessageEnums;
public class UDPSc... | Java | src/com/ks/net/UDPScanThread.java | MichaelChansn/RemoteControlSystem2.0_AndroidClient | gpl-2.0 | 2,601 | 93 | codeparrot/github-code |
bb9bc97acc3667ea35ccaa2c09680e655f5063282696c42d141c3b9d33a0e9c9 | <?php
function tzs_yahoo_get_id() {
global $wpdb;
$res = $wpdb->get_row("SELECT id, appid FROM ".TZS_YAHOO_KEYS_TABLE." ORDER BY last_used ASC LIMIT 1;");
if (count($res) == 0 && $wpdb->last_error != null) {
return NULL;
}
$appid = $res->appid;
$id = $res->id;
$sql = "UPDATE ".TZS_YAHOO_KEYS_TABLE." SET last... | PHP | wp-content/plugins/tzs/functions/tzs.yahoo.php | serker72/T3S_Old | gpl-2.0 | 17,598 | 519 | codeparrot/github-code |
063c38da04025e5027b57ad10834756a7598a381b7ff3a139e7a62f1fa26129d | <?php
/* Load JS scripts(minified or normal) in admin area only */
add_action( 'admin_head' , 'cutv__load_scripts' );
function cutv__load_scripts() {
if( cutv__DEV_MODE === FALSE && cutv__USE_MIN_JS === TRUE ) {
$js_functions_file = cutv__URL . 'assets/js/cutv_.functions.min.js';
} else {
$js... | PHP | hooks/wpvr.hooks.assets.php | erratik/cutv-api | gpl-2.0 | 14,647 | 270 | codeparrot/github-code |
2119ca4ef7b6eb612d79efeeb7c2308f614493d9b402febc1ed4938a3b9b7e45 |
package hmod.domain.mkp.scripts;
import flexbuilders.core.BuildException;
import flexbuilders.core.Buildable;
import flexbuilders.scripting.BuildScript;
import flexbuilders.tree.BranchBuilder;
import flexbuilders.tree.TreeHandler;
import static hmod.parser.builders.AlgorithmBuilders.*;
/**
*
* @author Enrique Urra... | Java | src/hmod/domain/mkp/scripts/RemoveAndGreedyFillScript.java | eurra/hmod-domain-mkp | gpl-2.0 | 1,721 | 59 | codeparrot/github-code |
b46de0e153c8092a1027665541ab63877f06bc69c93922a2526cb31faf6a7124 | /*
* InstrumentFunctions.h - models for instrument-functions-tab
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the t... | C | include/InstrumentFunctions.h | fronin/lmms | gpl-2.0 | 2,932 | 145 | codeparrot/github-code |
a5af0c91eb0628bf90ca4dc4a63f40291286da9864ad6722871f05df59fbfd53 | <html>
<head>
<title>Header File Index</title>
<link rel="STYLESHEET" type="TEXT/CSS" href="style.css">
</head>
<body bgcolor="#fffff8">
<table class="INVTABLE" width="100%">
<tbody>
<tr>
<td class="NOBORDER" width="40"><img src="info.gif" border="0"
height="32" width="32"> </td>
<td class="TITLE">Operations on Ti Grou... | HTML | docs/tilibs-docs/libtifiles/tigroup.c.html | maximaximal/TiSuite | gpl-2.0 | 18,821 | 643 | codeparrot/github-code |
1c0e9d33602ed71570c645b1d625f2aaa59d1887a0cbfe27ef9389123673b471 | /*****************************************************************************
* direct3d.c: Windows Direct3D video output module
*****************************************************************************
* Copyright (C) 2006-2009 VLC authors and VideoLAN
*$Id$
*
* Authors: Damien Fouilleul <damienf@videolan.o... | C | modules/video_output/msw/direct3d.c | bluebarnacles/vlc-2.1 | gpl-2.0 | 50,282 | 1,464 | codeparrot/github-code |
56609ee55a63975eb16f1f6b8597b34a26b909fa2fedaa841868e6d43b7f814d | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
nautilus-link.h: .
Copyright (C) 2001 Red Hat, Inc.
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 ve... | C | libnautilus-private/nautilus-link.h | awalton/nautilus | gpl-2.0 | 2,331 | 56 | codeparrot/github-code |
4b218aca13a33f2bfa67e1aa73a5c3112b7d4fa8b6c4f00aa7e9208a1695e128 | <?php
add_action( 'getnoticed_post_ads', 'getnoticed_post_ads' );
function getnoticed_post_ads( $location ) {
/* do we need an override option?
global $getnoticedMeta;
if ( ! is_array($getnoticedMeta) ) $getnoticedMeta = getnoticed_theme_meta( get_the_ID(), get_post_type() );
if ( ! $getnoticedMeta['postad... | PHP | wp-content/themes/getnoticed/inc/post-ads.php | drewhagni/evermore | gpl-2.0 | 1,461 | 45 | codeparrot/github-code |
4f5ff30a52c54c3f6b69c0a0d776a9e6fad1a0901b80a27d7f06d46ebe902769 | <?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly. Thanks!'));
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it... | PHP | wp-content/themes/wp-mobile/comments.php | yondri/newyorkando | gpl-2.0 | 3,248 | 72 | codeparrot/github-code |
178aea97c1c591a0b317a23241e51a6acc8c94eedd609c4f2915199671a35a53 | /* File produced by Kranc */
#define KRANC_C
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "GenericFD.h"
#include "Differencing.h"
#include "cctk_Loop.h"
#include "loopcontrol.h"
/*... | C++ | Examples/Wave/src/wave_exact_sine.cc | eschnett/Kranc | gpl-2.0 | 5,841 | 183 | codeparrot/github-code |
b43f5f21aa9bcced5ab760e8c16dd7787334c1811373d1321c6facdc363d986f | <?xml version="1.0" ?><!DOCTYPE TS><TS language="cs_CZ" version="2.1">
<context>
<name>About</name>
<message>
<location filename="../qml/pages/About.qml" line="25"/>
<source>About</source>
<comment>About page title</comment>
<translation>O programu</translation>
</message>
... | TypeScript | harbour-jollagram_cs_CZ.ts | marco73f/jollagram-translations | gpl-2.0 | 17,377 | 451 | codeparrot/github-code |
acbdd45afa10b9bb7dba3bbaddd3e351b1b1f30aa223f31cdcd2113adc265c44 | package trasm;
/**
* Таблица идентификаторов
*/
class IdTable extends AbstractTable {
/**
* Типы идентификаторов
*/
static enum IdType {
DB(1), DW(2), DD(4), LABEL(0);
private int size;
private IdType(int i) {
size = i;
}
... | Java | src/trasm/IdTable.java | mchug/trasm | gpl-2.0 | 3,531 | 153 | codeparrot/github-code |
7651391826ee497d110d9e13d4372406979f95b5ce786c757d192f5b7bcf59a4 | <?php
/**
* @file
* @ingroup SMWStore
* @since 1.8
*/
/**
* Class for representing a single (sub)query description. Simple data
* container.
*
* @since 1.8
* @author Markus Krötzsch
* @author Jeroen De Dauw
* @ingroup SMWStore
*/
class SMWSQLStore3Query {
/// Type of empty query without usable condition,... | PHP | includes/storage/SQLStore/SMW_SQLStore3_Queries.php | JeroenDeDauw/SemanticMediaWiki | gpl-2.0 | 49,491 | 1,201 | codeparrot/github-code |
dc46b4f431213f253e1520b6daf8033aef2ea08cc197086a81847b6fd47eeba9 | <?php
/*
Plugin Name: WP User Control
Plugin URI: http://palmspark.com/wordpress-user-control/
Version: 1.5.1
Author: Bill Edgar
Author URI: http://palmspark.com
Text Domain: wp-uc-widget
Description: WP User Control adds a sidebar widget that allows a user to login, register, retrieve lost passwords, etc. wi... | PHP | wp-content/plugins/wp-user-control/wp_uc_widget.php | denoramco/ohmybike | gpl-2.0 | 9,257 | 285 | codeparrot/github-code |
6136a7297dcd8fd1357f86a0793f2047ab4b9aa4e9390609ba4f87222fd3b596 | --リヴェンデット・ボーン
function c94666032.initial_effect(c)
aux.AddRitualProcGreater2(c,c94666032.filter,LOCATION_HAND+LOCATION_GRAVE,c94666032.mfilter)
--destroy replace
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EFFECT_DESTROY_REPLACE)
e2:SetRange(LOCATION_GRAVE)
e2:... | Lua | c94666032.lua | mercury233/ygopro-scripts | gpl-2.0 | 1,222 | 35 | codeparrot/github-code |
97b0d4466394c47660f879654fc7cc073be17ee46f845e6c6f0e32dad3c9d7c9 | /**
* Lists the number of different characters
*/
/* global document: true, Node: true, window: true */
exports.version = '1.0';
exports.module = function(phantomas) {
'use strict';
//phantomas.setMetric('differentCharacters'); // @desc the number of different characters in the body @offenders
phantom... | JavaScript | lib/tools/phantomas/custom_modules/modules/charactersCount/charactersCount.js | gmetais/YellowLabTools | gpl-2.0 | 2,928 | 72 | codeparrot/github-code |
95004c32c4cad04469b73d3d9947af2b521f1685c3bf0bbdd4224a6de32c131b | <?php
/**
* ChronoCMS version 1.0
* Copyright (c) 2012 ChronoCMS.com, All rights reserved.
* Author: (ChronoCMS.com Team)
* license: Please read LICENSE.txt
* Visit http://www.ChronoCMS.com for regular updates and information.
**/
namespace GCore\Admin\Extensions\Chronoforms\Actions\FileDownload;
/*** FILE_DIRECT_ACCES... | PHP | wp-content/plugins/chronoforms/admin/chronoforms/actions/file_download/file_download.php | mowema/mmusica | gpl-2.0 | 1,590 | 44 | codeparrot/github-code |
0fc1facfd17194d71eaacb56eae71993bf5b356560bab63a3d2dbc0bf01baac2 | /*
* Seven Kingdoms: Ancient Adversaries
*
* Copyright 1997,1998 Enlight Software Ltd.
*
* 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 op... | C++ | src/client/OUNITAI.cpp | brianV/7kaa | gpl-2.0 | 32,657 | 1,294 | codeparrot/github-code |
d83deba15f3e232ab2a77ea4dc30094897dc2c015c39d30ccb5861af84f6bf55 | /**
Copyright (C) SYSTAP, LLC 2006-2015. All rights reserved.
Contact:
SYSTAP, LLC
2501 Calvert ST NW #106
Washington, DC 20008
licenses@systap.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 S... | Java | bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/optimizers/TestASTFilterNormalizationOptimizer.java | rac021/blazegraph_1_5_3_cluster_2_nodes | gpl-2.0 | 79,136 | 1,991 | codeparrot/github-code |
59e9f0ccc001a61ec10da58902040aa3a7f5411a4f0569e369acdffc4c45fe15 | /*
*
* This source code is part of
*
* G R O M A C S
*
* GROningen MAchine for Chemical Simulations
*
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of G... | C | src/tools/gmx_rama.c | aar2163/GROMACS | gpl-2.0 | 3,421 | 116 | codeparrot/github-code |
93699d6ec288a59e3535e654ee51c2073bd3990bb1aa7833656c27e74ac75aae | /*
* rtm_map.c
*
* 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.
*
* Authors: Alexey Kuznetsov, <kuz... | C | iproute2_src/ip/rtm_map.c | chraso/GT-I5500_ | gpl-2.0 | 2,506 | 117 | codeparrot/github-code |
af4d65eff1db5a5a64328034cd711c41283471453e6cb9028969e1ca067c19b0 | /***************************************************************************
SignalVisitor.cpp - description
-------------------
begin : Wed Jan 26 2000
copyright : (C) 2000 by Henrik Enqvist
email : henqvist@e... | C++ | base/SignalSender.cpp | rzr/pinball | gpl-2.0 | 3,167 | 100 | codeparrot/github-code |
7e94ae87cc090875a7b2ae91acb8dc542b22893ef1694eaf75b6c4c3f3ce10c3 | /*
* OpenPIC emulation
*
* Copyright (c) 2004 Jocelyn Mayer
* 2011 Alexander Graf
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including withou... | C | hw/openpic.c | poblces/qemu | gpl-2.0 | 37,052 | 1,286 | codeparrot/github-code |
9e5782bb1a2bfb0679d65bee770a29d506252633ae97e2027ee225007f6cde5c | <?php
/**
* Custom functions that act independently of the theme templates
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package evolt
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array
... | PHP | inc/extras.php | alineEvolt/evolt | gpl-2.0 | 1,920 | 69 | codeparrot/github-code |
0d87faef703b97ad90a8b05e88e5026b48038befe2f559caa1f8bec9d66ad8b3 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | Java | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest18518.java | iammyr/Benchmark | gpl-2.0 | 2,872 | 73 | codeparrot/github-code |
b51d07dcd015de3a2281e4e214eedec2d0264d1d35149f57c248a0d1e3fc438b | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A P... | C | testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-4.c | rogerq/ltp-ddt | gpl-2.0 | 1,373 | 61 | codeparrot/github-code |
c4d0a2d215cabebe8ac1a40297cb94f9c23d27ad5d51347bd1eee9647380f114 | package net.iharding.core.timer;
import java.text.ParseException;
import net.iharding.modules.task.model.TimeTask;
import net.iharding.modules.task.service.TimeTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.CronTriggerFactoryBean;
/**
* spri... | Java | eshbase-console/src/main/java/net/iharding/core/timer/DataBaseCronTriggerBean.java | joezxh/DATAX-UI | gpl-2.0 | 998 | 35 | codeparrot/github-code |
e05689d795d04cd5d4aae605ed6c089b15a620c0d4a7aedfb203aedc4583449f | #!/bin/sh
export DRACUT_SYSTEMD
export NEWROOT
if [ -n "$NEWROOT" ]; then
[ -d $NEWROOT ] || mkdir -p -m 0755 $NEWROOT
fi
[ -d /run/initramfs ] || mkdir -p -m 0755 /run/initramfs
[ -d /run/lock ] || mkdir -p -m 0755 /run/lock
[ -d /run/log ] || mkdir -p -m 0755 /run/log
debug_off() {
set +x
}
debug_on() {
... | Shell | modules.d/99base/dracut-lib.sh | aidecoe/dracut | gpl-2.0 | 32,547 | 1,275 | codeparrot/github-code |
96a87bd2743ab2d31d38d15351d2565ab1d23da6668e2c1bc28a07e08e5e9e57 |
/* strerror.c
*
* cml hacked on this function 940627
* so that the error message would be copied into a static buffer,
* and then return a ptr to that buffer.
*
* Previously, a ptr into the sys_errlist array was returned,
* but this caused core dumps. I don't understand the problem
* but it's better now.
*... | C | strerror.c | sarnold/cyclo | gpl-2.0 | 1,166 | 66 | codeparrot/github-code |
d5a22351346743596d02ace709033bddf7b5d94e63dc89de65aec1675f418ada | // bsp.cpp -- by Thatcher Ulrich <tu@tulrich.com> 2001
// This code is in the public domain.
// Code to make a collision-bsp tree out of triangle soup.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <engine/utility.h>
#include <engine/bsp.h>
const bool print_debug = 0;
/*
sort faces by size?... | C++ | csp/tools/chunkdemo_prototype/engine/bsp.cpp | nsmoooose/csp | gpl-2.0 | 12,653 | 448 | codeparrot/github-code |
84e5453b96eece6e69434c9c59e8df0e4878eb8ed09726aac761d7d1e18dfa70 | <<<<<<< HEAD
<?php
/*
* $Id$
* v1.0.4
* Friday Sep-02-2011
* @component JooComments
* @copyright Copyright (C) Abhiram Mishra www.bullraider.com
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.p... | PHP | plugins/content/joocomments/joocomments.php | baxri/cvote | gpl-2.0 | 27,139 | 578 | codeparrot/github-code |
280ce82a60fef1b11ca581a20db25fe5486e3476fb0fb41c6c882e8a60399549 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* GThumb
*
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* 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 F... | C | gthumb/gth-task.c | novas0x2a/gthumb | gpl-2.0 | 5,716 | 266 | codeparrot/github-code |
03b2dc4ee641cdf81eae0a817478a62ea2679cd944b07d0d023469a3ab77c239 | // Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
//
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "driver/VideoDriver.h"
#include <SDL.h>
class VideoDriverLoaderInterface;
struct VideoMode;
class VideoSDL2 final : public VideoDriver
{
void CleanUp();
public:
Vide... | C | extras/videoDrivers/SDL2/VideoSDL2.h | Return-To-The-Roots/s25client | gpl-2.0 | 1,527 | 63 | codeparrot/github-code |
9a73a6dbbc41d0594bc2a145ff50fe45b413f99ffbc2ce331df6b67a99030565 | /**************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | Java | esper/src/main/java/com/espertech/esper/epl/agg/access/AggregationStateSortedImpl.java | sungsoo/esper | gpl-2.0 | 5,476 | 158 | codeparrot/github-code |
e72428f92327318713962287ec6b11e7ebc68b40dd126cc3ace0fb8829878135 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail project
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | C | src/fbuilder/build_bin.c | pmillerchip/firejail | gpl-2.0 | 2,891 | 127 | codeparrot/github-code |
2d3e52d630559e9ce34287dcdebc73baf41e47a7a520515dbad1bb3bbd0faaf7 | /*
Copyright 2015 Michelle Mabuyo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | Java | app/src/main/java/com/cmput301/mmabuyo/readysetpress/GameshowResults.java | mabuyo/ready-set-press | gpl-2.0 | 2,703 | 87 | codeparrot/github-code |
39d93f4fb233a22672a05aebced44b3eaa3343af4717e001a8cb9f273a9cecba | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie lt-ie9 lt-ie8 lt-ie7 fixed top-full menuh-top sidebar sidebar-full sidebar-collapsible sidebar-width-mini sidebar-hat"> <![endif]-->
<!--[if IE 7]> <html class="ie lt-ie9 lt-ie8 fixed top-full menuh-top sidebar sidebar-full sidebar-collapsible sidebar-width-mini side... | HTML | themeforest-5194599-flat-kit-premium-bootstrap-3-app-template/html/admin/(default) dark-menus/boxed-layout/accordion-left-menu/form_validator.html | dlamprea/door_learning | gpl-2.0 | 57,594 | 828 | codeparrot/github-code |
1e8a2570e908f3440ea773f3a3bdb76913597f161d593737638ea9dfe3cb7972 | <!--_____________ NODE.TPL BASIQUE _____________________ -->
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>">
<div class="node-inner">
<?php /* choix du layout selon nombre de colonne
* .col1_layout_200_570_200{} .col1_layout_330_all{} .col1_layout_18_56_25{}
... | PHP | templates/node/node.tpl.php | webmasterpf/CyranoD7_ER | gpl-2.0 | 2,985 | 87 | codeparrot/github-code |
fd9b9b41d720059ceee46aa7cdd052f99faa764ed6636858d83a383ffb92e501 | <?php
/**
* @package J2Store
* @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
* @license GNU GPL v3 or later
*/
// No direct access to this file
defined('_JEXEC') or die;
class J2StoreModelProductsBehaviorConfigurable extends F0FModelBehavior {
private $_rawData = array();
public function onAfterGe... | PHP | administrator/components/com_j2store/models/behavior/configurable.php | faridrn/Documentary | gpl-2.0 | 12,512 | 372 | codeparrot/github-code |
1551fc03e3471f835f8dac82fbeecde62db755f6fc6a8a940fb2653af435ac0f | /*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2010, Digium, Inc.
*
* David Vossel <dvossel@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project... | C | main/framehook.c | mehulsbhatt/asterisk | gpl-2.0 | 5,460 | 189 | codeparrot/github-code |
35167688d35be17cc851c3bddef9eeb486a18b311f5b361d5cf0a72352fb32a8 | package org.ab.akademikbilisim;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextVi... | Java | ab2015-3/app/src/main/java/org/ab/akademikbilisim/Detay.java | akademikbilisim/ab2015-android-a | gpl-2.0 | 2,023 | 69 | codeparrot/github-code |
15c54a7e63af29976bef61284d0ef99db54712aee435df2f93e54c2b6e374638 | /*
File: QuickTime/QTSMovie.h
Contains: QuickTime Interfaces.
Version: QuickTime 7.6.6
Copyright: © 1990-2010 by Apple Inc., all rights reserved
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://deve... | C | MacOSX10.6/System/Library/Frameworks/QuickTime.framework/Versions/A/Headers/QTSMovie.h | sschiesser/ASK_server | gpl-2.0 | 6,371 | 231 | codeparrot/github-code |
1adb1cf46fc18c0a1d8559ce7616bf27c0cecd0b699b9a9bca8cf6dd92a210dc | /////////////////////////////////////////////////////////////////////////////
// Name: wx/gdiobj.h
// Purpose: wxGDIObject base header
// Author: Julian Smart
// Modified by:
// Created:
// Copyright: (c) Julian Smart
// RCS-ID: $Id: gdiobj.h 70345 2012-01-15 01:05:28Z VZ $
// Licence: wxWind... | C | Externals/wxWidgets3/include/wx/gdiobj.h | nattthebear/dolphin-avsync | gpl-2.0 | 3,168 | 94 | codeparrot/github-code |
a1536a198dd839b72c5b9da1d6315c8a6c8c3b6209609f9ecef1c880e81683e1 | #ifndef _UAPI_QSEECOM_H_
#define _UAPI_QSEECOM_H_
#include <linux/types.h>
#include <linux/ioctl.h>
#define MAX_ION_FD 4
#define MAX_APP_NAME_SIZE 32
#define QSEECOM_HASH_SIZE 32
/*
* struct qseecom_register_listener_req -
* for register listener ioctl request
* @listener_id - service id (shared between us... | C | include/uapi/linux/qseecom.h | detule/lge-linux-msm | gpl-2.0 | 7,362 | 262 | codeparrot/github-code |
de96a57b864bcd89659b15e14933ce1f3cb8055479946f53471413255a3d1531 | <?php
/**
* Generates HTML from tokens.
* @todo Refactor interface so that configuration/context is determined
* upon instantiation, no need for messy generateFromTokens() calls
* @todo Make some of the more internal functions protected, and have
* unit tests work around that
*/
class HTMLPurifier_Ge... | PHP | htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Generator.php | mambax7/257 | gpl-2.0 | 10,254 | 287 | codeparrot/github-code |
c139c307852cfb6fc0e651bc93ce1db0f6559816ab118ba5305d23a6a47d3608 | /* Lower vector operations to scalar operations.
Copyright (C) 2004-2016 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 y... | C | gcc/tree-vect-generic.c | paranoiacblack/gcc | gpl-2.0 | 58,499 | 1,868 | codeparrot/github-code |
35b5650cda95838c7ad866222b22cf3096bffa2bcf8d0addb3b833f2602670e7 | <?php
/**
* DB Replacer Default View
*
* @package DB Replacer
* @version 3.2.0
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2014 NoNumber All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-... | PHP | administrator/components/com_dbreplacer/views/default/view.html.php | xmarlem/BM_stage | gpl-2.0 | 3,524 | 142 | codeparrot/github-code |
1834d8045572725dbcca87d0a228104c2c8ad57c45bf4477aded88444b860aed | /**
\file "util/STL/stack_fwd.hh"
Forward declaration of std::stack.
No wrapping.
$Id: stack_fwd.hh,v 1.6 2006/04/23 07:37:29 fang Exp $
*/
#ifndef __UTIL_STL_STACK_FWD_HH__
#define __UTIL_STL_STACK_FWD_HH__
#include "util/STL/deque_fwd.hh"
BEGIN_NAMESPACE_STD
// doesn't like redeclaring default template arg... | C++ | src/util/STL/stack_fwd.hh | fangism/hackt | gpl-2.0 | 684 | 32 | codeparrot/github-code |
7d06c4f5c8ca0ff2750c60e04bcd38816c73e99104668b02a06fd0b3c5c061e6 | #!/usr/bin/env bash
set -ueo pipefail
FORCE_INKSCAPE="$(echo "${FORCE_INKSCAPE-False}" | tr '[:upper:]' '[:lower:]')"
if [[ "${FORCE_INKSCAPE}" == "true" ]]; then
RENDER_SVG=""
else
RENDER_SVG="$(command -v rendersvg)" || true
fi
INKSCAPE="$(command -v inkscape)" || true
OPTIPNG="$(command -v optipng)" || true
if... | Shell | src/gtk-2.0/render-asset.sh | nana-4/materia-theme | gpl-2.0 | 1,552 | 61 | codeparrot/github-code |
079c14b197aa0ccf1a661a87739f3975947d3a0f6289d19997a92e1e3d8c4abc | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Elements part
//
//++++++++... | C++ | MediaInfoLib/Source/MediaInfo/Multiple/File_Wm_Elements.cpp | pavel-pimenov/flylinkdc-r5xx | gpl-2.0 | 86,075 | 1,849 | codeparrot/github-code |
4c89897cd2d35793a0c9eb807aefbaca2f8c398bdcc066d2b559aaad09858bcf | /***********************************************************************
Mosaicker - Program to reproject, resample, and join a set of
georeferenced color images into a single multiresolution mosaic image.
Copyright (c) 2007-2008 Oliver Kreylos
This file is part of the DEM processing and visualization package.
T... | C++ | src/construo/Construo.cpp | KeckCAVES/crusta | gpl-2.0 | 8,225 | 273 | codeparrot/github-code |
ef29f5c7322dbe70f5c2a5ca03406e36e2c3efb800717641be9ac107712736e1 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | Java | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest08513.java | iammyr/Benchmark | gpl-2.0 | 2,265 | 69 | codeparrot/github-code |
eab3e8d42f9090399ec8f17343c8a56ef4e80f0ab8e22223066f30f8dec44416 | /*
* Copyright (C) ST-Ericsson SA 2010
* Author: Stefan Nilsson <stefan.xk.nilsson@stericsson.com> for ST-Ericsson.
* Author: Martin Persson <martin.persson@stericsson.com> for ST-Ericsson.
* License terms: GNU General Public License (GPL), version 2.
*/
/*
* Mailbox nomenclature:
*
* APE MODEM... | C | drivers/misc/mbox.c | igloocommunity/igloo-kernel | gpl-2.0 | 17,221 | 647 | codeparrot/github-code |
832e28f931ccb19ead72a86072bcfac789e17bd5bd4a83e2759d2a18eb9ec28a | #include <common.h>
#include <linux/compiler.h>
#include <asm/mach-types.h>
#include <asm/arch/memory.h>
#include <asm/arch/io.h>
#include <asm/arch/power_gate.h>
#include <asm/arch/gpio.h>
#include <asm/arch/clock.h>
/*
* Caution: Assembly code in sleep.S makes assumtion on the order
* of the members o... | C | arch/arm/cpu/aml_meson/m6tv/suspend.c | genehuangtaiwan/uboot | gpl-2.0 | 21,755 | 666 | codeparrot/github-code |
b8394f221b147d8279fafb809fa1c6e3fa58df265ae459eef14e247e8af0a5bc | /* conversations_table.c
* conversations_table 2003 Ronnie Sahlberg
* Helper routines common to all endpoint conversations tap.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* m... | C | epan/conversation_table.c | VladimirTyrin/wireshark | gpl-2.0 | 28,154 | 831 | codeparrot/github-code |
73d0c26d78f8a0d045f56ddc71c3b359f7bd57b2971cdd7355b21485dab54128 | package dk.dmaa0214.controllerLayer;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.DatatypeConverter;
import com.gargoylesoftware.htmlunit.DefaultCredentialsProvider;
impo... | Java | eCampus-Dmaa0214/src/dk/dmaa0214/controllerLayer/SPNewsScraper.java | CodingDK/eCampus-Dmaa0214 | gpl-2.0 | 5,589 | 140 | codeparrot/github-code |
b40e3a20e13320e28dcba856342cae5fe7efe4e19f23c1820248344fe19136af |
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef IS_FBSD
#include "machine/soundcard.h"
#define DSP_DEVICE "/dev/dsp"
#endif
#ifdef IS_OBSD
#include "soundcard.h"
#define DSP_DEVICE "/dev/sound"
#endif
#ifdef IS_LINUX
#include <sys/soundcard.h>
#define ... | C | apps/tuxbox/funstuff/gnuboy/sys/oss/oss.c | UkCvs/commando | gpl-2.0 | 1,524 | 104 | codeparrot/github-code |
a04b2ff44837315f416749452cb219bd2a4a393da4d14ea2c7f45b6b871e61c5 | /*
(c) Copyright 2002, 2003 Rogier van Dalen
(R.C.van.Dalen@umail.leidenuniv.nl for any comments, questions or bugs)
This file is part of my OpenType/TrueType Font Tools.
The OpenType/TrueType Font Tools is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License ... | C++ | TrueTypeViewer/glyphviewerdialogextension.cpp | kennytm/tticomp | gpl-2.0 | 2,739 | 52 | codeparrot/github-code |
5fcaf896ce0e568217297caa501430513821b7d4bd8c29f6126bd27b62dee74e | /*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "devfs.h"
int devFS_stat(
const rtems_filesystem_location_info_t *loc,
struct s... | C | cpukit/libfs/src/devfs/devstat.c | daniel-hellstrom/leon-rtems | gpl-2.0 | 619 | 32 | codeparrot/github-code |
c91c91e8deed73fa330e7f52224a31031eb0cd77114a885720c62575bf68217d | <?php
/*---------------------------------------------------------------
# Package - Joomla Template based on CGrocket Framework
# ---------------------------------------------------------------
# Author - CGrocket http://www.cgrocket.com
# Copyright (C) 2011 - 2012 Cgrocket.com. All Rights Reserved.
# license ... | PHP | plugins/system/cgrocket/core/class.jsmin.php | anhtuan8591/shop | gpl-2.0 | 6,383 | 254 | codeparrot/github-code |
4ee99bbd8d76f41a05f390e3b86ff7976629d81591ca89b1b5e394d692296caa | /*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im... | C | src/fileio_func.h | LordAro/OpenTTD | gpl-2.0 | 5,468 | 160 | codeparrot/github-code |
af85384b7ef63c6581dcb716f35b78415a56b49b986756a7b2a37e676fe1ae65 | <?php
/*
@Module: List view
@Since: 1.0
@Package: WooComposer
*/
if(!class_exists('WooComposer_ViewCarousel')){
class WooComposer_ViewCarousel
{
function __construct(){
add_action('admin_init',array($this,'WooComposer_Init_Carousel'));
add_shortcode('woocomposer_carousel',array($this,'WooComposer_C... | PHP | wp-content/plugins/Ultimate_VC_Addons/woocomposer/modules/shortcode_carousel.php | jlrc23/hotelMarbella | gpl-2.0 | 18,006 | 532 | codeparrot/github-code |
e6c4e638dfe3e2fc5f2a75a3281785cdc7f16ba95054e4d538f5d8cf70ddc8fd | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie6 ie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"> <![endif]-->
<!--[if IE 7]> <html class="ie7 ie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"> <![endif]-->
<!--[if IE 8]> <html class="ie8 ie"... | PHP | sites/all/themes/BambuTema/templates/html.tpl.php | Tahiche/bambuproducciones.tahiche.es | gpl-2.0 | 2,213 | 44 | codeparrot/github-code |
76dab76c292eae0f9ea7d27aebe1490d1932f04751fc3be688ddedeb825b206d | /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of ... | Java | truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/TruffleExceptionTest.java | smarr/Truffle | gpl-2.0 | 31,384 | 771 | codeparrot/github-code |
02d6adfe2c048d8ea779bc614be6e8eb94bd69771eb7d9ea8450b41be9422149 | /*
** Job Arranger for ZABBIX
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. 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... | C | src/jobarg_server/jajobnet/jajobnetready.c | mastering-jaz/jobarranger | gpl-2.0 | 4,966 | 131 | codeparrot/github-code |
76e0c60fb054a1326fa69bba977b07e166fb821958722974c1570ac8c273b2c4 | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | C++ | live-media/liveMedia/StreamParser.hh | pilt/stream-server | gpl-2.0 | 4,434 | 141 | codeparrot/github-code |
b4ce7493e46d5b3e604991c999593566823eb03131798ae84aaf7e9a32a668b2 | /***************************************************************************
generate_code_ada.c - description
-------------------
begin : 2001-07-18
copyright : (C) 2001 by Thomas Preymesser
(C) 2002 b... | C | dia2code/generate_code_ada.c | OldRepoPreservation/dia2code | gpl-2.0 | 21,422 | 713 | codeparrot/github-code |
a067834bfa79b9e66d5b2adb44c9189f56a8ddd2e8d27a97204711957c257b7d | /*
* Copyright 2005 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 Foundati... | Java | openjdk/jdk/test/java/lang/management/ThreadMXBean/SynchronizerDeadlock.java | TheTypoMaster/Scaper | gpl-2.0 | 5,419 | 172 | codeparrot/github-code |
e3670f4ada4b0b5ada08c80c657103bc52a1ba8ad27d122e979dd11054ed1911 | /*
* 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/jdk/src/share/classes/sun/swing/table/DefaultTableCellHeaderRenderer.java | TheTypoMaster/Scaper | gpl-2.0 | 7,302 | 197 | codeparrot/github-code |
a97323a66dd98ba62f083deb0c526cff27d8902b9bfa065e951c86a01ffe9a6e | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to
# http://inst.ee... | Python | multiagent/multiAgents.py | sumitb/cse537 | gpl-2.0 | 7,379 | 202 | codeparrot/github-code |
1e38ea3a3943f176da4b83c1aa9cd3ece77a9d403551e9c3818cbb0beb90c56f | if not gadgetHandler:IsSyncedCode() then return end
function gadget:GetInfo()
return {
name = "Trail Burnout",
desc = "Provide ability to changes weapon trail CEG after a customParam-specified time, or change specific weapon into customParam-specified weapon when underwater",
author = "Anarchid",
date = "14.0... | Lua | LuaRules/Gadgets/weapon_trail_burnout.lua | sprunk/Zero-K | gpl-2.0 | 4,949 | 151 | codeparrot/github-code |
f57676b88d8c90623806ef760f1d6b0ffd403403aa173d99519528f91a7f901a | //Não esquecer de implementar a anulação da variável last_pawn_move_two_ranks no método de execução de movimento
//Implementar casting
#include <stdlib.h>
#include <stdio.h>
typedef enum Piece_Type
{
pawn,
rook,
knight,
bishop,
queen,
king
} Piece_Type;
typedef enum Color
{
white,
black
} Color;
typedef str... | C | Main.c | brunohadlich/chesstroyer | gpl-2.0 | 9,935 | 349 | codeparrot/github-code |
fe7dceafa796fa7041106893f1a8b97866323afd35eb8f0b8d10cd89693c1246 | /*
* This file is modified by Ivan Maidanski <ivmai@ivmaisoft.com>
* Project name: JCGO-SUNAWT (http://www.ivmaisoft.com/jcgo/)
*/
/*
* @(#)BasicSpinnerUI.java 1.18 06/08/17
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
... | Java | sunawt/fix/javax/swing/plaf/basic/BasicSpinnerUI.java | ivmai/JCGO | gpl-2.0 | 33,804 | 909 | codeparrot/github-code |
a520fd96c1f9dbd89e649a1b08197293e43e4b5bce5cacd590c7219c417fc89e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Workflow.Model
{
[Serializable]
public partial class Sys_User_Info_Model
{
public Sys_User_Info_Model()
{ }
#region Model
private int _user_id;
private string _user_name;... | C# | Workflow.Model/Sys_User_Info_Model.cs | xlgwr/wf | gpl-2.0 | 3,556 | 144 | codeparrot/github-code |
e06d575b0b83b97d2037bf0ca4cd7e37ecb2f43097be8aa4d2d66627a58b2d9c | /**************************************************************************************************
Filename: SensorTagMovementProfile.java
Copyright (c) 2013 - 2015 Texas Instruments Incorporated
All rights reserved not granted herein.
Limited License.
Texas Instruments Incorporated grants a world-wide, ... | Java | src/main/java/com/example/ti/ble/sensortag/SensorTagMovementProfile.java | vanjo9800/SensortagSAPCloud | gpl-2.0 | 9,810 | 207 | codeparrot/github-code |
17f01f6b887d31cde4a2cdebaa6ef3cdf884723af03b17f01b0cd928c0e3f373 | /*
* Copyright (C) 2008-2015 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/authserver/Authentication/AuthCodes.cpp | Hlkz/Acore | gpl-2.0 | 2,392 | 69 | codeparrot/github-code |
cfce1052de1f3d3a6bf329a90135faacd043286710d6810edee9b51a73c7676a | \hypertarget{main_8cpp}{}\section{main.\+cpp File Reference}
\label{main_8cpp}\index{main.\+cpp@{main.\+cpp}}
{\ttfamily \#include $<$iostream$>$}\\*
{\ttfamily \#include $<$string$>$}\\*
{\ttfamily \#include $<$vector$>$}\\*
{\ttfamily \#include $<$boost/filesystem.\+hpp$>$}\\*
{\ttfamily \#include $<$boost/format.\+h... | TeX | doc/latex/main_8cpp.tex | Ranind/Deduplicator | gpl-2.0 | 3,583 | 82 | codeparrot/github-code |
bbca081f280ef892860d3ac22901764c2943fc79992476afca53ae34a34f4b35 | /*
* Copyright (c) 2010, 2017, 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 ... | Java | modules/javafx.graphics/src/main/java/javafx/stage/PopupWindow.java | teamfx/openjfx-9-dev-rt | gpl-2.0 | 41,662 | 1,076 | codeparrot/github-code |
82bebf4798520a96ea97aaae8b4a5602d85e04aeaebef513b6b36716bff80e3b | <?php
/* Import the settings*/
require('config/settings.php');
if ($_GET) {
/* Build query */
$data = array('id'=>$_GET['id'],
'DetailFields'=>DETAIL_FIELDS,
'token'=>SF_SECURITY_TOKEN);
$query = SALESFORCE_URL . DETAIL_PAGE . '?' . http_build_query($data);
/* Connecting Salesforce - Load Data */
$xml = ... | PHP | detail.php | konsti/Propertybase-Sites-Weblisting | gpl-2.0 | 3,881 | 116 | codeparrot/github-code |
5574b8bc1b198a29e82efc5adf4a8c8af44e5f180cc166f7a879399b4a71295b | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | Java | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest11696.java | iammyr/Benchmark | gpl-2.0 | 2,757 | 76 | codeparrot/github-code |
430eab2d7db91d308297d99a7ce48b53ff5cfc1d07d52d82199464934e5330c4 | //
// go-rencode v0.1.8 - Go implementation of rencode - fast (basic)
// object serialization similar to bencode
// Copyright (C) 2015~2019 gdm85 - https://github.com/gdm85/go-rencode/
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Publ... | GO | doc.go | gdm85/go-rencode | gpl-2.0 | 2,531 | 75 | codeparrot/github-code |
9140dfa0621918826f8554d2cba3c1fe247f65eb095b8ba991f809ff1fbb2f60 | #include "stdafx.h"
#include "HandleException.h"
#include <dbghelp.h>
#pragma comment ( lib, "dbghelp.lib" )
typedef LONG (WINAPI * UNHANDLEDEXCEPTIONFILTER)
(
struct _EXCEPTION_POINTERS *ExceptionInfo
);
static HANDLE gEventExit = NULL;
static LONG lExceptCode = EXCEPTION_EXECUTE_HANDLER;
static C... | C++ | Source/W201621/CKit-3/CKit/Sources/ToolHelper/HandleException.cpp | doublesword/commuse | gpl-2.0 | 2,910 | 119 | codeparrot/github-code |
c101759f65ad10a0dcfca76b917d5c3c52520fb21f4d20879a5f1e13b5f3b073 | package com.nidzo.filetransfer;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CheckBox;
impo... | Java | Android/FileTransfer/app/src/main/java/com/nidzo/filetransfer/MainActivity.java | nidzo732/FileTransfer | gpl-2.0 | 5,281 | 171 | codeparrot/github-code |
5163828ee79a1b816fa8ba8a3267fa8d3e9d2190d845b76d44865872162c47e3 | /****************************************************************************
* [S]imulated [M]edieval [A]dventure multi[U]ser [G]ame | \\._.// *
* -----------------------------------------------------------| (0...0) *
* SMAUG 1.4 (C) 1994, 1995, 1996, 1998 by Derek Snider | ).:.( *
* -----... | C | src/bet.h | smaugmuds/SMAUGCPP | gpl-2.0 | 5,003 | 161 | codeparrot/github-code |
1f3212ce91cf55be9d2abf41ff0fe6f4a744c7c5519f1ffc4f3d334c671e9e74 | <?php
class FrmProEntriesController{
public static function admin_js() {
$frm_settings = FrmAppHelper::get_settings();
add_filter('manage_'. sanitize_title($frm_settings->menu) .'_page_formidable-entries_columns', 'FrmProEntriesController::manage_columns', 25);
$page = FrmAppHelper::simple_get... | PHP | wp-content/plugins/formidable/pro/classes/controllers/FrmProEntriesController.php | rafapires/wp4net | gpl-2.0 | 95,719 | 2,587 | codeparrot/github-code |
b8e6ae2f3557b3709da17f11e877a88495c202e1e726e216f18e16313b4755e2 | import wpilib
import hal
from wpilib import RobotDrive
class KwarqsDriveMech(RobotDrive):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.weight_multiplier = 1
def set_multiplier(self, in_multi = None):
if in_multi != None :
sel... | Python | recycle_rush/custom/kwarqs_drive_mech.py | frc2423/2015 | gpl-2.0 | 3,114 | 67 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.