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 |
|---|---|---|---|---|---|---|---|---|
2e673a9df2dec4e6b184b22c0469a9d3fbbf17494e5988c2e339ab5544b82346 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace LJH.Inventory.BusinessModel
{
public abstract class SheetItemBase : LJH.GeneralLibrary.Core.DAL.IEntity<Guid>
{
#region 公共属性
/// <summary>
/// 获取或设置出货项ID
/// <... | C# | Source/LJH.Inventory.BusinessModel/SheetItemBase.cs | ljh198275823/500-EasyInventory | gpl-2.0 | 4,448 | 144 | codeparrot/github-code |
a63d81ebdd9e76f4af929afaee6453c080fb4138ea3c8106d4d804fb7c6a7d3b | // Copyright (C) 1999-2000 Id Software, Inc.
//
// cg_main.c -- initialization and primary entry point for cgame
#include <string>
#include <iostream>
#include <sstream>
#include "cg_local.h"
#include "bg_lua.h"
#include "bg_local.h"
#include "ui/ui_shared.h"
#include "cg_lights.h"
#include "cg_media.h"
#include "cg_s... | C++ | cgame/cg_main.cpp | Razish/japp | gpl-2.0 | 66,497 | 2,451 | codeparrot/github-code |
cfc99f547baf72ea133ec01e83ca99e8d265e4ef00a82e1bb297561cdfb6bc99 | /**
* $Id$
*
* Copyright (C) 2011 Flowroute LLC (flowroute.com)
*
* This file is part of Kamailio, a free SIP server.
*
* This file 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 ... | C | modules/json/json_funcs.c | vingarzan/kamailio | gpl-2.0 | 1,978 | 81 | codeparrot/github-code |
2672e20e36e49308143b491804bbc18cf22eeed2fdf894995651fc9d2c349a34 | require 'fileutils'
class ImageController < ApplicationController
def thumb
handle_image(params, 'THUMBNAIL')
end
def medium
handle_image(params, 'MEDIUM')
end
def large
handle_image(params, 'LARGE')
end
def delete
image = load_image(params)
if (image)
image.delete
rend... | Ruby | app/controllers/image_controller.rb | FalveyLibraryTechnology/VuDLPrepAPI | gpl-2.0 | 951 | 49 | codeparrot/github-code |
720239d1c706a81dc932851e1096f11c62150885dfd56fb5910e382697a0e1d9 | /*
Copyright (C)2003 Barry Dunne (http://www.emule-project.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... | C | QuasiMule/Kademlia/net/KademliaUDPListener.h | AstroProfundis/QuasiMule | gpl-2.0 | 7,636 | 107 | codeparrot/github-code |
940e13b858ef0d6e95a7a69dff1cdc27ea68e8422e73f8e6e4d29d89af37109c | /*
* Copyright © 2012 Iain Churcher
*
* Based on GLtron by Andreas Umbach (www.gltron.org)
*
* This file is part of GL TRON.
*
* GL TRON 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 ... | Java | src/com/hybridplay/glTron/video/Vec.java | hybridplay/develop | gpl-2.0 | 2,620 | 145 | codeparrot/github-code |
cc0e6376f3063f3312ce2e5e3391512ae69d5c4fa12c60ba897eed83e2e5b711 | /*
* @(#) $(JCGO)/goclsp/vm/gnu/java/nio/VMAccessorGnuJavaNio.java --
* VM cross-package access helper for "gnu.java.nio".
**
* Project: JCGO (http://www.ivmaisoft.com/jcgo/)
* Copyright (C) 2001-2007 Ivan Maidanski <ivmai@ivmaisoft.com>
* All rights reserved.
*/
/*
* This is free software; you can redistribut... | Java | goclsp/vm/gnu/java/nio/VMAccessorGnuJavaNio.java | ivmai/JCGO | gpl-2.0 | 2,541 | 77 | codeparrot/github-code |
e9be333dac965f145f9c2d5f22b540f12c46b21adb4ed40414d8a6d7368ff074 | <?php
/*
Question2Answer by Gideon Greenspan and contributors
http://www.question2answer.org/
File: qa-include/qa-theme-base.php
Description: Default theme class, broken into lots of little functions for easy overriding
This program is free software; you can redistribute it and/or
modify it under the terms of ... | PHP | qa/qa-include/qa-theme-base.php | fallendamien/QuranSah_V2 | gpl-2.0 | 61,195 | 2,383 | codeparrot/github-code |
beaf24ba404dfdc92c74e984f4cdfdd47a83d96975aa4e91844aba3efae075c8 | /** BEGIN COPYRIGHT BLOCK
* This Program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; version 2 of the License.
*
* This Program is distributed in the hope that it will be useful, but WITHOUT
* ANY W... | C | ldap/servers/slapd/passwd_extop.c | ohamada/389ds | gpl-2.0 | 30,717 | 958 | codeparrot/github-code |
9f916c5ca136e8815812027ff948e0e84ef4c00bd27f450af3cbedff744dedaa | /*
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2011-2013 Paul Kocialkowski <contact@paulk.fr>
*
* libsamsung-ipc 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 Lice... | C | include/rfs.h | lssjbrolli/external_libsamsung-ipc | gpl-2.0 | 3,101 | 95 | codeparrot/github-code |
d47a571c9d6fb3b9f9d9ff3c484ca63ba15031485cb7b51cbfc70a8b3142639d | #include "wmi.h"
#ifdef Q_OS_WIN
wmi::wmi()
{
}
/***********************************************************************
* Faz a pesquisa WMI de acordo com a classe e os parametros repassados.
***********************************************************************/
QJsonValue wmi::wmiSearch(QString classe, QStringL... | C++ | src/wmi.cpp | lightbase/cacic-agente | gpl-2.0 | 5,065 | 112 | codeparrot/github-code |
863c9d5dd02582353f0dc169ed073c0166c47343ba1ed8dd91b84a1f0d5d6fe4 | """
Publishes the Referee Box's messages as a ROS topic named "refbox" with type "referee"
"""
from referee_pb2 import SSL_Referee
import rospy
# Substitute "ekbots" here with your ROS package name
from ekbots.msg import referee, team_info
from socket import socket, inet_aton, IPPROTO_IP, IP_ADD_MEMBERSHIP
from soc... | Python | scripts/refbox.py | eagle-knights-ITAM/ssl-refbox-ros | gpl-2.0 | 1,934 | 71 | codeparrot/github-code |
b316dc80e47399022a108985a5d731c55ae713583b55d0ad89c185457e393242 | <?php
@session_start();
require_once("../../includes/config.inc.php");
if(!isset($_GET['module'])) { exit; }
$module = $_GET['module'];
$strSQL = $module <> "ALL" ? "WHERE r.module_name = '$module'" : "";
$sql = "SELECT
e.*,
o.org_name,
o.org_short
FROM tbl_sm_mapping_user m
JOIN tbl_sm_repo... | PHP | modules/SM/dwdm_sm_dashboard_list_user_by_module.php | CATtelecomProjects/dwdm-management | gpl-2.0 | 3,515 | 121 | codeparrot/github-code |
666b588b405197553419aebc451a8fadc7b00d535166c94ab779d0accb2e2fcf | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | C | drivers/media/video/msm/msm_mctl.c | arjen75/icecold-kernel | gpl-2.0 | 42,904 | 1,647 | codeparrot/github-code |
a5f876d1c993d0ea1af3bf5270c6ea9f8c5919adb34c16e836397d300209d197 | package org.altbeacon.beacon;
/**
*
* Encapsulates a beacon identifier of arbitrary byte length
* It can encapsulate an identifier that is a 16-byte UUID, or an integer
* Internally this is stored as a normalized string representation for ease of serialization
*
* Created by dyoung on 7/18/14.
*/
public class I... | Java | Android/UserControlLibraries/AltBeacon/src/org/altbeacon/beacon/Identifier.java | pablanco/taskManager | gpl-2.0 | 2,442 | 72 | codeparrot/github-code |
a955ed5a26d4880344dd0f8092ef7e2b77740e56b671e9b8c8d459379a4b9886 | <?php
namespace krimDok\RecordDriver;
class Factory
{
/**
* Factory for SolrMarc record driver.
*
* @param ServiceManager $sm Service manager.
*
* @return SolrMarc
*/
public static function getSolrMarc(\Zend\ServiceManager\ServiceManager $sm)
{
$driver = new \krimDok... | PHP | module/krimDok/src/krimDok/RecordDriver/Factory.php | ubtue/KrimDok | gpl-2.0 | 885 | 32 | codeparrot/github-code |
350cc4d339ad49004d13eb010e342b4db0126f8d2e6dbb56ca6bd049c8154280 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Wishlist\Test\Unit\Helper;
use Magento\Catalog\Model\Product;
use Magento\Framework\App\ActionInterface;
use Magento\Framework\App\Helper\Context;
use Magento\Framework\App\RequestInterface;
use Ma... | PHP | app/code/Magento/Wishlist/Test/Unit/Helper/DataTest.php | kunj1988/Magento2 | gpl-2.0 | 14,795 | 435 | codeparrot/github-code |
780550a86fbf9b944f5072158c08e91f34b606c8a847655ef462741fa5b8cd4a | <?php
/* --------------------------------------------------------------
$Id: start.php 4738 2013-05-07 15:57:00Z Tomcraft $
modified eCommerce Shopsoftware
http://www.modified-shop.org
Copyright (c) 2009 - 2013 [www.modified-shop.org]
--------------------------------------------------------------
... | PHP | admin/start.php | dsiekiera/modified-bs4 | gpl-2.0 | 27,411 | 519 | codeparrot/github-code |
9cfd4d4e714c24c4bc5c2dc1a3e487f8dcd09049e73ab8d38b58935c6d6f8e7e | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | Lua | bot/bot.lua | RockySeven3161/Tgcli | gpl-2.0 | 6,663 | 294 | codeparrot/github-code |
04acc314f6fb11cd58cc8224c9f2be77d185fffcb855a91a6b0d11bcaf1be111 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | C | drivers/usb/misc/mdm_data_bridge.c | lindsaytheflint/stone | gpl-2.0 | 37,528 | 1,583 | codeparrot/github-code |
9bbc3e84ef68c70ad2b1889ff2657cc402e38d61386894dcf5afb56058287b61 | <?php
add_action( 'widgets_init', 'd_postlists' );
function d_postlists() {
register_widget( 'd_postlist' );
}
class d_postlist extends WP_Widget {
function d_postlist() {
$widget_ops = array( 'classname' => 'd_postlist', 'description' => '图文展示(最新文章+热门文章+随机文章)' );
$this->WP_Widget( 'd_postlist', 'wait-聚合文章', $w... | PHP | widgets/wid-postlist.php | waitig/wait | gpl-2.0 | 4,346 | 119 | codeparrot/github-code |
46c7526077146914f960b0908908311d5186cf20aaa5ad89806efce8c1d1c5e9 | /*
* arch/arm/plat-spear/clock.c
*
* Clock framework for SPEAr platform
*
* Copyright (C) 2009 ST Microelectronics
* Viresh Kumar<viresh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, w... | C | arch/arm/plat-spear/clock.c | kozmikkick/eternityprj-kernel-endeavoru-128 | gpl-2.0 | 23,802 | 1,001 | codeparrot/github-code |
db4c0d9bfc35437a5686ad2b98a5cad0cc50e3d80b747aac19cab10da462141d |
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
/* returns the size of fifo context */
static int
nouveau_fifo_ctx_size(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
if (dev_priv->chipset >= 0x40)
return 128;
else
if (dev_priv->chipset >= 0x17)
return 64;
re... | C | kernel/drivers/gpu/drm/nouveau/nv04_instmem.c | luckasfb/OT_903D-kernel-2.6.35.7 | gpl-2.0 | 5,170 | 210 | codeparrot/github-code |
c9e89949c467ae2b8f308cdff16fe74673a55724e467599695d2b978311b1075 | /*
* Copyright 2009, 2010 Thierry Vuillaume
*
* This file is part of NeronGPS.
*
* NeronGPS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | C | src/3rdparty/applications/nerongps/include/poiform.h | librelab/qtmoko-test | gpl-2.0 | 1,463 | 57 | codeparrot/github-code |
775b49cdf9b3f36ea32d5d2092a6e49916c66e383fc8f13b93169be9506701a4 | /*
* *************************************************************************************
* 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/enummethod/eval/EnumEvalAverageBigDecimalEvents.java | sungsoo/esper | gpl-2.0 | 2,133 | 49 | codeparrot/github-code |
943a84d856e2976c79b63f55ecfb4b44d0d403457951913914d4fc493cd70e61 | <?php
if (!cmsms()) exit;
if (!$this->CheckAccess()) // Restrict to admin panel and users with permission
{
return $this->DisplayErrorPage($id, $params, $returnid, $this->Lang('accessdenied'));
exit;
}
/*
Users admin pannel
*/
$tab = '';
if (isset($params['tab'])) $tab = $params['tab'];
$this->smarty->ass... | PHP | action.defaultadmin.php | morrischapman/cmsusers | gpl-2.0 | 16,883 | 311 | codeparrot/github-code |
34e48524e5d13bd138142b0fd1696baab115ff3e6682abfaff23d18aefb32347 | // License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.tools;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import org.openstreetmap.josm.Main;
import org.open... | Java | src-josm/org/openstreetmap/josm/tools/OsmUrlToBounds.java | jonathanrcarter/divv-amsterdam-parkingapi | gpl-2.0 | 10,095 | 277 | codeparrot/github-code |
a22cfe71d0f9df0624e47d84066d76df62167f287d52edaf4c5f26197cf7d88c | from servo_control.summit_pwm import SummitPWM
import servo_control.servos as servos
class CarAttributes(object):
def __init__(self):
self.pwm = SummitPWM()
# Servo-data
self.servo_transmission = servos.Transmission()
self.servo_rear_locker = servos.RearLocker()
self.servo... | Python | src/car_attributes.py | LinuCC/sturo | gpl-2.0 | 1,918 | 67 | codeparrot/github-code |
a7feeabd9b6626de266060d5b357079d630fb18d45814caf17b2651cb6c56d81 | <?php
namespace Infrastructure\Log;
use Domain\Log\LoggerInterface;
use Domain\Log\LogLevel;
class Logger implements LoggerInterface
{
public function emergency($message, array $context = array())
{
$arguments = array_unshift($context, $message);
\Application_Monitor_Log::proto(LogLevel::EMER... | PHP | Infrastructure/Log/Logger.php | acostasg/DDD | gpl-2.0 | 1,963 | 64 | codeparrot/github-code |
20140abb21cc2a874f364fbf7756fc019c5efcb78b1f3254603bcd53b9fd7a5c | package com.xiao.news;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiEnterpriseConfig;
import android.net.wifi.p2p.WifiP2pDevice;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import java.... | Java | src/main/java/com/xiao/news/NoticeFragment.java | Hadron67/News | gpl-2.0 | 1,565 | 59 | codeparrot/github-code |
2f6a41f20fcf468f905cad752105c4415f4a634bd2c5bc4c5585e04ae1c132f0 | #ifndef _LINUX_MM_H
#define _LINUX_MM_H
#include <linux/errno.h>
#ifdef __KERNEL__
#include <linux/gfp.h>
#include <linux/list.h>
#include <linux/mmzone.h>
#include <linux/rbtree.h>
#include <linux/prio_tree.h>
#include <linux/debug_locks.h>
#include <linux/mm_types.h>
#include <linux/range.h>
#include <linux/pfn.h>... | C | include/linux/mm.h | transi/kernel_amazon_bowser-common | gpl-2.0 | 58,114 | 1,686 | codeparrot/github-code |
bfc080bb67b0230afe99de11489424e6611cda1c255de9003d3809ae158d4860 | /* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpwidgets.c
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | C | src/gimp-2.6.12/libgimpwidgets/gimpwidgets.c | jdburton/gimp-osx | gpl-2.0 | 41,586 | 1,317 | codeparrot/github-code |
e6f487efd2dcb758b05ea18b0bcda208900ea46989d64d7ccc2d867ca231db0a | var po = org.polymaps;
var map = po.map()
.container(document.getElementById("map").appendChild(po.svg("svg")))
.center({lat: 37.787, lon: -122.228})
.zoom(14)
.zoomRange([12, 16])
.add(po.interact());
map.add(po.image()
.url(po.url("http://{S}tile.cloudmade.com"
+ "/1a1b06b230af4efdbb989e... | JavaScript | sandbox/polyMapsExamples/examples/cluster/cluster.js | TweetAggregator/CrossTalk | gpl-2.0 | 1,517 | 53 | codeparrot/github-code |
3eef02994040657b5ed791f47ac85281eeed5af21d5473975db7672d37c8a712 | package com.jimidigi.smth3k.ui;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import androi... | Java | src/com/jimidigi/smth3k/ui/Setting.java | cobola/smth3k | gpl-2.0 | 8,862 | 253 | codeparrot/github-code |
a0a337877a494bb7aceefaa80b22d76044ab093a513beeb0c5c7709d8d8e7f65 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example: DataSchema.XML for HTML Tables</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic">
<link rel="stylesheet" href="../../build/cssgrids/grids-min.css">
<li... | HTML | sites/all/libraries/yui/docs/dataschema/dataschema-table.html | artefactual-labs/trac | gpl-2.0 | 17,336 | 447 | codeparrot/github-code |
1dfcd0d40e62738ce947e5dac45627f2999a60b62fa192bc25a33005fa77e617 | /*
* Copyright (c) 2010, 2013, 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 | nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/DynamicLinker.java | shelan/jdk9-mirror | gpl-2.0 | 17,120 | 326 | codeparrot/github-code |
98644321461c3e8cee78ab3ccaea470726a2878591ae6f43444b6a1c39a6627c | \section{That any stable equilibrium point can always be among pure strategies}\label{appendix5}
In this section we will attempt to prove that any stable equilibrium point can be established among pure strategies alone. The total demonstration of this claim is formulated in matrix mathematics to avoid any possible vagu... | TeX | latex/2/appendix2.tex | Markopolo141/FSM-evolve | gpl-2.0 | 6,099 | 57 | codeparrot/github-code |
6e9e82156046cb1e19982a78277bbce7f9df8a7da8bbaf9694953ef2629df14e | using System;
using System.Runtime.InteropServices;
namespace LeapSlideShow
{
class MouseCursor
{
[DllImport("user32.dll")]
private static extern bool SetCursorPos(int x, int y);
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
p... | C# | LeapPowerPoint/leap/MouseCursor.cs | jonghoonseo/Leap-PowerPoint | gpl-2.0 | 2,444 | 76 | codeparrot/github-code |
e4e1638e1edb65082d66e4655eee76d662bd880f7b9030b487ba4369120fa45b | /* Copyright (C) 2012-2015 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... | C | src/mobster.c | packetchaser/mobster | gpl-2.0 | 4,192 | 145 | codeparrot/github-code |
e87f2c14b548b11bc8fc574425f2a38dd1addab5fcb68611b6598d56432548a4 | <?php
/**
* @file
* Post-update functions for Image Effects.
*/
use Drupal\image\Entity\ImageStyle;
/**
* @addtogroup updates-8.x-1.0-alpha
* @{
*/
// @codingStandardsIgnoreStart
/**
* Add 'maximum_chars' and 'excess_chars_text' parameters to 'Text Overlay' effects.
*/
function image_effects_post_update_tex... | PHP | modules/contrib/image_effects/image_effects.post_update.php | guibli/poeiminisite | gpl-2.0 | 1,762 | 64 | codeparrot/github-code |
6645a642e2cf9cb0d0c6f0bbf3e46f1bffa5615d9f4b0ffdcf573c7667ce9803 |
/* Also look into example.c of libpng */
#include <l4/libpng/l4png_wrap.h>
#include <l4/sys/l4int.h>
#include <stdlib.h>
#include <string.h>
#include <png.h>
#include <pngstruct.h>
#ifndef png_jmpbuf
# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
#endif
#ifdef DEBUG
enum { _DEBUG = 1 };
#else
enum { _DEBUG = 0 }... | C | l4/pkg/libpng/lib/l4png_wrap/l4png_wrap.c | fighterCui/L4ReFiascoOC | gpl-2.0 | 10,400 | 377 | codeparrot/github-code |
2dfeeda48f1cd6abf666ba28cfa65265d1316bb2d550bbbd171530963d4bb7ae | /*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | Java | test/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java | FauxFaux/jdk9-jaxp | gpl-2.0 | 4,034 | 103 | codeparrot/github-code |
c75749aeaf7f89203069d819c7e8fa02b68bf543c90465aa6e393e276601c4df | /*
* mlstrigger.c
*
* Created on: Dec 20, 2011
* Author: mlsdev008
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "mlstrigger.h"
#include "../../debug.h"
#define INTERFA... | C | plugins/input_mlsicam/mlstrigger.c | me-oss/me-mjpg_streamer_oss | gpl-2.0 | 8,073 | 277 | codeparrot/github-code |
f6c8d7470b3be168fc513acc175da9bc27028bad517e011df7558f50a41292bc | /*****************************************************************************\
* opt.c - options processing for srun
*****************************************************************************
* Copyright (C) 2002-2007 The Regents of the University of California.
* Copyright (C) 2008-2010 Lawrence Livermore N... | C | src/srun/libsrun/opt.c | corburn/slurm | gpl-2.0 | 89,156 | 2,799 | codeparrot/github-code |
ea510cb23250e1a26572d55811446cb0fb5c7441a7ea3602f6f983c64ce8f737 | <?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, ple... | PHP | typo3/sysext/frontend/Classes/Resource/FilePathSanitizer.php | stweil/TYPO3.CMS | gpl-2.0 | 5,168 | 132 | codeparrot/github-code |
144715458ad503c112daf81a682e7a67a34d4f51f6516b38ede02baa993a6411 | <?php
/**
* Number
*
* This file is used to register and display the custom Layers Number.
*
* @package Layers
* @since Layers 1.0.0
*/
if( !class_exists( 'Layers_Customize_Number_Control' ) ) {
class Layers_Customize_Number_Control extends Layers_Customize_Control {
public $type = 'layers-number';
publ... | PHP | core/customizer/controls/number.php | Obox/layerswp | gpl-2.0 | 1,903 | 63 | codeparrot/github-code |
22e92009f14325afbd1868570cc7f9c0fd8639a0e7d5989f7243b6e3f790dde0 | /*
* Copyright (C) IBM Corporation. 2007
* Author: Konrad Rzeszutek <konradr@linux.vnet.ibm.com>
* Copyright (C) Red Hat, Inc. All rights reserved. 2008 - 2010
* Copyright (C) Mike Christie 2008 - 2010
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gener... | C | utils/fwparam_ibft/fwparam_sysfs.c | vishvananda/open-iscsi | gpl-2.0 | 12,071 | 495 | codeparrot/github-code |
9b8f07c8e702ff17255e00ce36343b1e931a72de66115330fe2c21ec3cde72a1 | #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/types.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/ioctl.h>
#include <linux/cdev.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <mach/platf... | C | drivers/leds/real4418_leds.c | advx9600/kernel-4.4-RuiEr | gpl-2.0 | 10,161 | 433 | codeparrot/github-code |
d71b16498538adc4bfbae522bee8fa8a385046fcc27c042bf2dcc01ffa75c1e7 | <?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('list');
// The class name must always be the same as the filename (in camel case)
class JFormFieldSelectGroup extends JFormFieldList {
//The field clas... | PHP | components/com_fleetmatrix/models/fields/selectgroup.php | acculitx/fleetmatrixsite | gpl-2.0 | 8,409 | 270 | codeparrot/github-code |
9021be5aafb6e02445189c6bb753a95a08f446f2646e838bddb0b3937427a482 | /*
* Copyright (C) 2017 Matt Kilgore
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License v2 as published by the
* Free Software Foundation.
*/
#include <protura/types.h>
#include <protura/debug.h>
#include <protura/string.h>
#include <pr... | C | src/net/protocol.c | DSMan195276/protura | gpl-2.0 | 1,715 | 71 | codeparrot/github-code |
ff00f5680bfc4bf7ed9dcae091ecbb9b5afb8288d5aec457b88cc9a1777ad8c3 | <?php
/*
* Copyright 2005-2015 CENTREON
* Centreon is developped by : Julien Mathis and Romain Le Merlus under
* GPL Licence 2.0.
*
* 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 ; ei... | PHP | core/internal/Install/Install.php | Gilum/centreon | gpl-2.0 | 3,967 | 95 | codeparrot/github-code |
bfff29179d484b61ac6feac87c2f9f3a1b666f2b250c97c83d35e398678bffda | package com.M360.api.requests;
import com.M360.api.domain.enums.HttpMethod;
public class IncomingPhoneNumberRequest {
private String accountSid;
private String incomingPhoneNumberSid;
private String friendlyName;
private String voiceUrl;
private HttpMethod voiceMethod;
private String voiceFallbackUrl;
privat... | Java | src/main/java/com/M360/api/requests/IncomingPhoneNumberRequest.java | Ytel-Inc/Message360-Java-Helper-Library | gpl-2.0 | 3,289 | 124 | codeparrot/github-code |
8ac7c9ec7df6a205db76da40b45e6411eb5fcb57952f535ea2898d6352b20506 | // _________ __ __
// / _____// |_____________ _/ |______ ____ __ __ ______
// \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
// / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | C++ | src/upgrade/upgrade_modifier.cpp | Andrettin/Wyrmgus | gpl-2.0 | 23,955 | 777 | codeparrot/github-code |
1ae60e3e94aaaaa960c9462c5426dcc81033ddc151fb27bc786d8adad317af7a | /*
* fs/cifs_debug.c
*
* Copyright (C) International Business Machines Corp., 2000,2003
*
* Modified by Steve French (sfrench@us.ibm.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 Soft... | C | fs/cifs/cifs_debug.c | sarnobat/knoppix | gpl-2.0 | 14,565 | 651 | codeparrot/github-code |
efbbd4ea3b6078678249ff2e17e76be119a117340305f5b05cee2e96ece6fcd0 | // synthv1widget_knob.h
//
/****************************************************************************
Copyright (C) 2012-2015, rncbc aka Rui Nuno Capela. 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 publ... | C | src/synthv1widget_knob.h | ventosus/synthv1 | gpl-2.0 | 5,353 | 247 | codeparrot/github-code |
426587a51be1d8760fa5f14fde2a903dfc55961035ac9aab640c8a527652c0aa |
(function ($) {
Drupal.behaviors.menuFieldsetSummaries = {
attach: function (context) {
$('fieldset.menu-link-form', context).drupalSetSummary(function (context) {
if ($('.form-item-menu-enabled input', context).is(':checked')) {
return Drupal.checkPlain($('.form-item-menu-link-title input'... | JavaScript | modules/menu/menu.js | mcwalinski/NewspaperInEducation | gpl-2.0 | 2,562 | 67 | codeparrot/github-code |
792c387c06e15c107680b3e444a4cc92a0133f37f19814545b415c897eb97ad5 | #ifndef TRANSPOS_H
#define TRANSPOS_H
#include "common.h"
#include "move.h"
#include "zobrist.h"
#include <cstdio>
struct TTEntry {
U64 zkey;
Move best_move;
int16_t score;
uint8_t depth;
uint8_t epoch;
// LSB 0 -> 0: invalid, 1: valid
// LSB (1, 2) -> 00: FAIL_HIGH_NODE, 01: FAIL_LOW_NODE, 10: EXACT_N... | C | src/transpos.h | goutham/nakshatra | gpl-2.0 | 1,212 | 61 | codeparrot/github-code |
f986c437ceaddfe5b9af49a941d42f799811113985ffd8a9b7beb5c75ee98fc5 | <?php
/*
** Zabbix
** Copyright (C) 2001-2013 Zabbix SIA
**
** 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.
**
** Th... | PHP | frontends/php/api/classes/CItemPrototype.php | nabnut/zabbix2.0-cookies | gpl-2.0 | 25,853 | 894 | codeparrot/github-code |
8fec0f5ee2cab2350df16ecb9157889b7ad1d0243807dc2c8e46d63a7f2a48f5 | // Based on Apple in PC's mousecard.cpp
// - Permission given by Kyle Kim to reuse in AppleWin
/*
Contiki v1.3:
. I still see 2 cases of abnormal operation. These occur during boot up, during some period of disk access.
. See Contiki's IRQ() in apple2-stdmou.s
** Normal operation **
<VBL EVENT> : h/w as... | C++ | source/MouseInterface.cpp | meesokim/AppleWin | gpl-2.0 | 22,535 | 822 | codeparrot/github-code |
83514b3db7095ea4953cf31c1b7ecc775d94f44dc3b2611d3256b96d63983d05 | \section{Iron---Berry curvature, anomalous Hall conductivity and optical conductivity}
\label{sec18:IronBerry}
\begin{itemize}
\item Outline: {\it Calculate the Berry curvature, anomalous Hall conductivity, and (magneto)optical conductivity of ferromagnetic bcc Fe with spin-orbit coupling. In preparation for this exa... | TeX | doc/solution_booklet/Example18.tex | paulatz/wannier90 | gpl-2.0 | 10,858 | 257 | codeparrot/github-code |
b12585207da919585b96f8a230688184908294207cb452cbf78c818ab01d83ea | /****************************************************************************
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** This file may be used under the terms of the GNU General Public
** License versions 2.0 or 3.0 as published ... | C++ | qtopiacore/qt/tools/designer/src/components/formeditor/formwindow_dnditem.cpp | muromec/qtopia-ezx | gpl-2.0 | 3,495 | 97 | codeparrot/github-code |
9a82430ae020c8b17b775bfe1fd33965919f643d351ae19d3c6a8aa2b1b10d41 | /*
* This file is part of SubLib.
* Copyright (C) 2005-2019 Pedro Castro
*
* SubLib 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 versi... | C# | src/SubLib/Core/Domain/Subtitles.cs | GNOME/gnome-subtitles | gpl-2.0 | 4,581 | 143 | codeparrot/github-code |
85d10f64eee4bc822ed353a90d48a45de406cb7192b028f429cac8d98cb3fb0d | package com.xidian.mastergrade;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.params.CoreConnectionPNames;
/**
* Created by WJ on 2015/7/27.
*/
public class HttpClientManager {
private static ... | Java | src/main/java/com/xidian/mastergrade/HttpClientManager.java | BianBianKing/XidianLife | gpl-2.0 | 1,879 | 65 | codeparrot/github-code |
807b38292dbec0b49d966cd683582e0030aff5580a348c4bb794737424e070a8 | /*---------------------------------------------------------------------------*\
## #### ###### |
## ## ## | Copyright: ICE Stroemungsfoschungs GmbH
## ## #### |
## ## ## | http://www.ice-sf.at
## #### ###### |
-----------------------------------------------------... | C++ | Libraries/groovyBC/groovyBCCommon.C | alexey4petrov/swak4Foam | gpl-2.0 | 4,459 | 148 | codeparrot/github-code |
1c8a2424a627c063e09331481c195321bc4500aef627a2fdb4847e7f5b2d4b78 | /* Copyright (C) 2003-2010 Jesper K. Pedersen <blackie@kde.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 version.
... | C++ | Settings/DatabaseBackendPage.cpp | astifter/kphotoalbum-astifter-branch | gpl-2.0 | 4,276 | 107 | codeparrot/github-code |
2c0e641f1c56a694e7981094e6195111805700e1b9a371f43e8d50b4f99d8e7d | /* Copyright (C) 2003-2010 Jesper K. Pedersen <blackie@kde.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 version.
... | C | DateBar/MouseHandler.h | astifter/kphotoalbum-astifter-branch | gpl-2.0 | 2,622 | 97 | codeparrot/github-code |
07fd97c5b806bf2a8ea227dd6b84ac6cb61051d584c22b5f1c952aadd816865f | // { dg-do compile { target c++11 } }
// Copyright (C) 2010-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Found... | C++ | libstdc++-v3/testsuite/20_util/forward/c_neg.cc | paranoiacblack/gcc | gpl-2.0 | 1,736 | 78 | codeparrot/github-code |
e9a771cd156b2f1773836317e8b43a67e41a79aecec76a080f5e08d90f0e77a1 | /*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... | C | input/cmd_list.c | Cloudef/mpv | gpl-2.0 | 12,759 | 348 | codeparrot/github-code |
91f98642d4f7075b17f74b53ecabce45c00f6bc025c021ce294f94e2ff35e449 | /*
* Copyright (c) 2000-2004 by David Brownell
*
* 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 progra... | C | drivers/usb/host/ehci-hcd.c | kfazz/android_kernel_motorola_sholes | gpl-2.0 | 35,264 | 1,267 | codeparrot/github-code |
d7aac30768aea49fa414de1036863f8c060e104e226db1fd4649cf14a35c3053 | /* modules/m_tb.c
*
* Copyright (C) 2003 Lee Hardy <lee@leeh.co.uk>
* Copyright (C) 2003-2005 ircd-ratbox development team
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1.Redistributions of source cod... | C | modules/m_tb.c | azzurra/bluebox | gpl-2.0 | 4,208 | 119 | codeparrot/github-code |
40ce5583ae5c3398110cf7fca249828a71ded433993a2dc4b6d7526204bac056 | 'use strict';
var path = require('path');
var _ = require('lodash');
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the ' + name + ' environment variable');
}
return process.env[name];
}
// All configurations will extend these options
// =========================... | JavaScript | server/config/environment/index.js | hackathon-2014/zubielicious-repo | gpl-2.0 | 1,091 | 50 | codeparrot/github-code |
2c9e93324c14d5b4df740e375cf64fa7bdbecc2740b465656e67e664cf754e3d | /*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | Java | luni/src/main/java/libcore/util/ZoneInfoDB.java | AdmireTheDistance/android_libcore | gpl-2.0 | 9,301 | 266 | codeparrot/github-code |
2247012cccb487cd2eaedd8e1e18c1386c7572e72083ca8ad43615d53da9e7a3 | (function (window, angular) {'use strict';
/**
** Angular-Calendar
** General-purpose time-date functions for Angular 1.3.x.
**
** @author Hans Doller <hans@ticonerd.com>
**/
var VERSION = 0.1;
angular
.module('angular-calendar', [])
.constant('CalendarVersion', VERSION)
/**
... | JavaScript | src/angular-calendar.js | kryo2k/angular-calendar | gpl-2.0 | 46,486 | 1,616 | codeparrot/github-code |
a55c81a80da6bf4b8cbf746ee8f9388a9b349f85b67274c34f6aac78b5b7e9d4 | # ----------------------------------------------------------------------------
# Mostra textos coloridos, sublinhados e piscantes no terminal (códigos ANSI).
# Opções: -f, --fundo escolhe a cor de fundo
# -l, --letra escolhe a cor da letra
# -p, --pisca texto piscante
# -s, --s... | Shell | zz/zzecho.sh | faustovaz/funcoeszz | gpl-2.0 | 2,612 | 81 | codeparrot/github-code |
414278859533baba24bc69d70141e6f4fc569c4b409c3dd19f9d48a4692af021 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2006-7 H. Jasak All rights reserved
\\/ M anipulation |
--... | C++ | src/coupledMatrix/coupledFvMatrices/coupledFvMatrix/coupledFvMatrix.C | Unofficial-Extend-Project-Mirror/openfoam-extend-Core-OpenFOAM-1.5-dev | gpl-2.0 | 6,646 | 233 | codeparrot/github-code |
da175f6d1c98abe8b46a33027d192a759d01ed3db9b1e3080560a3753c78c6b0 | //=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2012 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as pu... | C | libmscore/plugins.h | Igevorse/MuseScore | gpl-2.0 | 4,385 | 138 | codeparrot/github-code |
fccc71def72dbe468f8cee95995d1633570deba42605789c7823ec20706332c7 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#pragma once
/***
This file is part of systemd.
Copyright 2012 Dan Walsh
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; e... | C | src/core/selinux-access.h | hach-que/systemd-packaged | gpl-2.0 | 1,558 | 45 | codeparrot/github-code |
c691e63e1ca849f0aee374693a05fea96679e4e77c4a1c7eca1c3d25ba400f6a | /*
* bios-less APM driver for ARM Linux
* Jamey Hicks <jamey@crl.dec.com>
* adapted from the APM BIOS driver for Linux by Stephen Rothwell (sfr@linuxcare.com)
*
* APM 1.2 Reference:
* Intel Corporation, Microsoft Corporation. Advanced Power Management
* (APM) BIOS Interface Specification, Revision 1.2, Feb... | C | drivers/char/apm-emulation.c | zheharry/linux-sh4-2.6.23.17_stm23_A18B | gpl-2.0 | 15,400 | 664 | codeparrot/github-code |
e89844c06beb9321da27e7b1596222787c41487203f74d94cf65b23c7d27d989 | <?php
if ( ! is_admin() ):
add_action( 'rcl_enqueue_scripts', 'rcl_cab_15_scripts', 10 );
endif;
function rcl_cab_15_scripts() {
rcl_enqueue_style( 'cab_15', rcl_addon_url( 'style.css', __FILE__ ) );
}
// инициализируем наши скрипты
add_action( 'rcl_enqueue_scripts', 'cab_15_script_load' );
function cab_... | PHP | add-on/theme-sunshine/index.php | plechev-64/wp-recall | gpl-2.0 | 3,825 | 125 | codeparrot/github-code |
6664827eb01bd53e3b505a9e51af386d6406195c0150c7d5bfa489477f741d40 | /*
KSysGuard, the KDE System Guard
Copyright (c) 1999 - 2001 Chris Schlaeger <cs@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of version 2 of the GNU General Public
License as published by the Free Software Foundation.
This program is distri... | C++ | ksysguard/gui/ksysguard.cc | serghei/kde3-kdebase | gpl-2.0 | 20,572 | 645 | codeparrot/github-code |
be632d24853ad98bffba05afb1b5331991aac7897cca48076c88124b30889562 | /*
* Copyright (c) 2020, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software;Designed and Developed mainly by many Chinese
* opensource volunteers. you can redistribute it and/or modify it under the
* terms ... | Java | src/main/java/io/mycat/config/loader/xml/XMLConfigLoader.java | MyCATApache/Mycat-Server | gpl-2.0 | 3,478 | 111 | codeparrot/github-code |
a70e0cddca10b87e2bffbc0a6eebb42a88a22b529bfdfac9128197d19c830395 | package com.wes.tagcloud;
import android.graphics.Point;
/**
* Created by wangyong on 15/11/19.
*/
public class TagModel {
private String keywords;
private int color;
private int heat = -1;
public int getColor() {
return color;
}
public void setColor(int color) {
this.colo... | Java | app/src/main/java/com/wes/tagcloud/TagModel.java | w1sl1y/tagCloud | gpl-2.0 | 618 | 39 | codeparrot/github-code |
d5fa2c84915a085ae15b17ff7602f2207318693d5b224da013f4440fab61ca88 | /*
* Copyright 2000-2015 Rochus Keller <mailto:rkeller@nmr.ch>
*
* This file is part of the CARA (Computer Aided Resonance Assignment,
* see <http://cara.nmr.ch/>) NMR Application Framework (NAF) library.
*
* The following is the license that applies to this copy of the
* library. For a license to use the librar... | C | Gui/ListView.h | rochus-keller/NAF | gpl-2.0 | 4,693 | 151 | codeparrot/github-code |
a26edd1bc502c57de5a5ceddac50763d302ae43e87e122ddb193020e91016d00 | /*
* Copyright 2012, The Android Open Source Project
*
* 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 applica... | C | development/ndk/sources/android/libportable/common/include/filefd_portable.h | qtekfun/htcDesire820Kernel | gpl-2.0 | 1,245 | 40 | codeparrot/github-code |
5955e5b35ab7c8b4598f2a84f96fb742efb0942c76748304e61c68e9ee0c41cc | package com.example.tomafotoitexico;
import java.io.IOException;
import android.content.Context;
import android.hardware.Camera;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
/** A basic Camera preview class */
public class CameraPreview extends SurfaceView implements S... | Java | src/com/example/tomafotoitexico/CameraPreview.java | manchax/TomaFotoAndroid | gpl-2.0 | 2,397 | 76 | codeparrot/github-code |
903f0ca1f297dcfce8d7f01924d8bf5e673bc0588b73c55502a1b59a4cdc7ab6 | /*
* Copyright © 2007, 2008 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Soft-
* ware"), to deal in the Software without restriction, including without
* limitation the rights to use, copy, modify, merge,... | C | unix/xserver/hw/xfree86/dri2/dri2.c | Distrotech/tigervnc | gpl-2.0 | 46,439 | 1,634 | codeparrot/github-code |
0ee7de6b4c7190c30bb5e9f125c6e52068e90690b0d01f69f7903932647e553d | /*
* Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software;Designed and Developed mainly by many Chinese
* opensource volunteers. you can redistribute it and/or modify it under the
* terms ... | Java | src/main/java/io/mycat/backend/heartbeat/DBHeartbeat.java | jiangchanghong/Mycat2 | gpl-2.0 | 3,800 | 133 | codeparrot/github-code |
57a6585ff99cc1630b041375a661a330a06dfb8e7a1ffac32afc1c1e0793b258 | package edu.cmu.cs.lti.discoursedb.io.salon.converter;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.env.Environme... | Java | discoursedb-io-salon/src/main/java/edu/cmu/cs/lti/discoursedb/io/salon/converter/SalonConverter.java | DiscourseDB/discoursedb-core | gpl-2.0 | 3,001 | 86 | codeparrot/github-code |
870c6e73b9c3d9ea8e12b76459d52ccf7791200639ae7786079282d91e94ef9e | /* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | include/net/cnss.h | nks15/nks_kernel_j7xeltektt | gpl-2.0 | 1,566 | 47 | codeparrot/github-code |
66c2fe14ea8306ae957eb5ca1f540f9e277c94805c52e7d5df384822c4d297b0 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SenseNet.ContentRepository.Storage;
using SenseNet.ContentRepository.Versioning;
using SNP = SenseNet.Portal;
using SenseNet.Portal.Virtualization... | C# | Source/SenseNet/Portal/UI/Controls/SearchView.cs | vlslavik/SenseNet | gpl-2.0 | 4,990 | 169 | codeparrot/github-code |
9a3c84bab9421085e8c16c8b4b0ac05b2d6e91e8539f16a1123a8fae33b342ef | /*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp | Hshore/TrinityCore | gpl-2.0 | 21,295 | 600 | codeparrot/github-code |
2a2a4f4c2a211fa82286d73dbdf92bd0a247ffb0c5b2776173652a4412872960 | #!/usr/bin/python
from copy import copy, deepcopy
import sys
import numpy as np
# (c) 2015 Sandip De (1sandipde@gmail.com)
def main():
a=np.loadtxt('input.test')
# a=np.random.random((100,100))
costs=k_best_costs(20,a)
for x in costs:
print x
def k_best_costs(nbest,matrix):
hun=linear_assignment(matri... | Python | Hungarian-Murty.py | sandipde/Hungarian-Murty | gpl-2.0 | 11,755 | 368 | codeparrot/github-code |
f01e0a152cc9cc404237b48d10f3c8d66cc8aeaa29d40de6d3e233485b7f1410 | goog.provide('clojure.browser.repl');
goog.require('cljs.core');
goog.require('clojure.browser.event');
goog.require('clojure.browser.net');
clojure.browser.repl.xpc_connection = cljs.core.atom.call(null,null);
clojure.browser.repl.repl_print = (function repl_print(data){
var temp__4090__auto__ = cljs.core.deref.call(n... | JavaScript | cljs_static/repl/clojure/browser/repl.js | chase-kernan/lsc-seis-gcm | gpl-2.0 | 5,237 | 114 | codeparrot/github-code |
5089ab5c0d8c9b496e5448eddbd173cc88bf347b0d5e26faa86fa62d751ccd00 | #
# Makefile for the linux kernel.
#
obj-y = fork.o exec_domain.o panic.o printk.o \
cpu.o exit.o itimer.o time.o softirq.o resource.o \
sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \
signal.o sys.o hello.o kmod.o workqueue.o pid.o \
rcupdate.o extable.o params.o posix-timers.o... | Makefile | kernel/Makefile | JianguoWEI/Linux-EFQ | gpl-2.0 | 4,557 | 131 | codeparrot/github-code |
44c48288491b8326d229ad4c1f796b689b4c4d555b6bcc0bc65b87617eddaca9 | VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 8
EXTRAVERSION =
NAME = Sneaky Weasel
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this file.
# ... | Makefile | Makefile | sonicxml/Popcornkernel-Tuna | gpl-2.0 | 54,019 | 1,573 | codeparrot/github-code |
1acfa456a7f2cc7ca0d525169de564552acee2b85b9780621ec8db7baf1a290b | /*-------------------------------------------------------------------
Copyright 2011 Ravishankar Sundararaman, Kendra Letchworth Weaver
This file is part of JDFTx.
JDFTx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Found... | C | jdftx/fluid/ConvCoupling.h | yalcinozhabes/pythonJDFTx | gpl-2.0 | 2,010 | 55 | codeparrot/github-code |
2752d32d821ac4524eff93f4ac1dc073c913287031d47fb32c1cb29b32516f36 | /*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | graal/org.graalvm.compiler.core.common/src/org/graalvm/compiler/core/common/LIRKind.java | graalvm/graal-core | gpl-2.0 | 18,271 | 472 | codeparrot/github-code |
4c05694884ceea5aaf0a0051132f1276a9ee4429979022b94593a3120ec82f28 | <?php
namespace Typecho\Db\Adapter;
trait MysqlTrait
{
use QueryTrait;
/**
* 清空数据表
*
* @param string $table
* @param mixed $handle 连接对象
* @throws SQLException
*/
public function truncate(string $table, $handle)
{
$this->query('TRUNCATE TABLE ' . $this->quoteColum... | PHP | var/Typecho/Db/Adapter/MysqlTrait.php | typecho/typecho | gpl-2.0 | 684 | 41 | codeparrot/github-code |
cb24ff899b4950328f38df380329bad99c6ab4b0e90709c993afee4a29d7daa9 | /*
* (C) 2007-2010 Alibaba Group Holding Limited.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*
* Version: $Id: func.cpp 400 2011-06-02 07:26:40Z duanfei@taobao.com $
... | C | src/tools/nameserver/show_factory.h | 610152753/tfs-1.4 | gpl-2.0 | 2,854 | 104 | codeparrot/github-code |
4da098a1954ebdf163f3aa50f4fabee2dc0fd299d8d0824a9bcb347f721fe7ce | <?php
namespace Drupal\hello_world\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Block\BlockPluginInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Provides a 'Hello' Block
*
* @Block(
* id = "hello_block",
* admin_label = @Translation("Hello block"),
* )
*/
class HelloBlock exte... | PHP | sites/all/modules/custom/hello_world/src/Plugin/Block/HelloBlock.php | euibinyou/d8-testing | gpl-2.0 | 1,633 | 75 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.