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 |
|---|---|---|---|---|---|---|---|---|
0a772e61599a35a4b8403ca75201b3a354f0fb1cbb0bc49e2c29d91e06c2b83f | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | tomcat_files/8.0.22/DirectByteArrayOutputStream.java | plumer/codana | mit | 1,866 | 63 | codeparrot/github-code |
6914de6cf002df699ed68c97d8211998038d22b1fb614d6d2c26c3f7c33225fd | -- @docclass
--[[
TODO:
* Make table headers more robust.
* Get dynamic row heights working with text wrapping.
]]
TABLE_SORTING_ASC = 0
TABLE_SORTING_DESC = 1
UITable = extends(UIWidget, "UITable")
-- Initialize default values
function UITable.create()
local table = UITable.internalCreate()
table.head... | Lua | modules/corelib/ui/uitable.lua | Riverlance/kingdom-age-game-linux | mit | 10,506 | 433 | codeparrot/github-code |
1e25824169a58f129401f48d01d183b0ccf1036fb7c0c6c2ac4d93940e8540d3 | 'use strict';
/**
* Module dependencies
*/
var passport = require('passport'),
LocalStrategy = require('passport-local').Strategy,
User = require('mongoose').model('User');
module.exports = function () {
// Use local strategy
passport.use(new LocalStrategy({
usernameField: 'username',
passwordField:... | JavaScript | modules/users/server/config/strategies/local.js | liordoe/portfolio | mit | 766 | 33 | codeparrot/github-code |
2f2ed59c813556f9523778c8a68903ac1cdc2747de960daab15ade60bca53901 | /*
* This file is part of the coreboot project.
*
* Copyright (C) 2010 Advanced Micro Devices, 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; version 2 of the License.
*
* This ... | C | src/southbridge/amd/sb800/lpc.c | fishbaoz/coreboot | gpl-2.0 | 7,039 | 265 | codeparrot/github-code |
874d54f53e39bfdb1f7451e0189e7b7d38680e6bede0b133c0edef7f406a6fcf |
local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "word has been add\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local hash = get_variable... | Lua | plugins/block.lua | osamaalbsraoy/osama_albsraoy1989 | gpl-2.0 | 2,416 | 112 | codeparrot/github-code |
65b76da8225f9d037608cc02361d12116c91d18a7eb355a4b3a6b68b97a8b7ce | /*
* \brief Audio_out-out driver for Linux
* \author Christian Helmuth
* \author Sebastian Sumpf
* \date 2010-05-11
*
* FIXME session and driver shutdown not implemented (audio_drv_stop)
*
* 2013-01-09: Adapted to news audio interface
*/
/*
* Copyright (C) 2010-2013 Genode Labs GmbH
*
* This file is par... | C++ | repos/os/src/drivers/audio_out/linux/main.cc | mohammadhamad/mhhgen | gpl-2.0 | 6,994 | 304 | codeparrot/github-code |
29caa94d06c24f9e63b79b392b71e922069eddde4d04774c6ab69ae43a10afe6 | /*
* $Id$
*
* Copyright (C) 2012 Tobias Muench
*
* This file is part of paparazzi.
*
* paparazzi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later vers... | C | sw/airborne/subsystems/navigation/border_line.c | bstark2/AggieAir_MESA | gpl-2.0 | 3,933 | 139 | codeparrot/github-code |
3f2bbc0a2eeb7adb4002e3060d9053ff7cbdc055c46044eb56c48a010d474c32 | /*
* linux/fs/proc/array.c
*
* Copyright (C) 1992 by Linus Torvalds
* based on ideas by Darren Senn
*
* Fixes:
* Michael. K. Johnson: stat,statm extensions.
* <johnsonm@stolaf.edu>
*
* Pauline Middelink : Made cmdline,envline only break at '\0's, to
* make sure ... | C | fs/proc/array.c | arcardinal/kernel_lge_g3 | gpl-2.0 | 15,273 | 568 | codeparrot/github-code |
5cc6e3d642bba9fbb0def32d6949074d92b475e6884637279db62aab3f0537e4 | /****************************************************************************
* Ralink Tech Inc.
* 4F, No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu, Taiwan, R.O.C.
* (c) Copyright 2002, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublished work and the
* ... | C | target/linux/rt305x/files/drivers/net/wireless/rt2860v2/common/cmm_data_pci.c | houzhenggang/MaRa-a1a0a5aNaL | gpl-2.0 | 41,115 | 1,491 | codeparrot/github-code |
af376ed2b91a33401ae0c0ef51240c64c4988bb70f2651d01954ca405a3194bc | # module 'zmod'
# Compute properties of mathematical "fields" formed by taking
# Z/n (the whole numbers modulo some whole number n) and an
# irreducible polynomial (i.e., a polynomial with only complex zeros),
# e.g., Z/5 and X**2 + 2.
#
# The field is formed by taking all possible linear combinations of
# a set of d ... | Python | xbmc/lib/libPython/Python/Lib/lib-old/zmod.py | xbmc/atv2 | gpl-2.0 | 2,363 | 95 | codeparrot/github-code |
9d2e9c63643d317c8b7fee0ebe6cbcd43ae8611dc7d34260a149b63bc251f23d |
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/idr.h>
#include <linux/bitops.h>
#include <linux/kthread.h>
#include <linux/qpnp-charger.h>
//bq24196 re... | C | drivers/power/bq24196_charger.c | RenderBroken/msm8974_OPO-CAF_render_kernel | gpl-2.0 | 16,442 | 649 | codeparrot/github-code |
29a312731eb7732b7b5c2cc929f9ab6148bf7ac22efc8458f1e039d97b9527d1 | /* Load a shared object at run time.
Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Foun... | C | dlfcn/dlmopen.c | vvavrychuk/glibc | gpl-2.0 | 2,935 | 108 | codeparrot/github-code |
041e285cfc731b8524c2c70646ff4a93a79149c782437d6ae1ed96af77395728 | using System;
using Server;
using System.Collections.Generic;
using Server.Mobiles;
using Server.Items;
using Server.Gumps;
namespace Server.Engines.VvV
{
[FlipableAttribute(39345, 39346)]
public class PrideBanner : Item
{
public override int LabelNumber
{
get
{
... | C# | Scripts/Services/ViceVsVirtue/Items/Rewards/Banners/PrideBanner.cs | SirGrizzlyBear/ServUOGrizzly | gpl-2.0 | 1,324 | 60 | codeparrot/github-code |
7110b71bbf6f9d7447e18cc4efff807187dac84b74a717a66fc37035010c1789 | /*
* Copyright (c) 2002-2003, Intel Corporation. All rights reserved.
* Created by: salwan.searty REMOVE-THIS AT intel DOT com
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
* Test that if the signal specified... | C | testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/2-1.c | heluxie/LTP | gpl-2.0 | 3,397 | 121 | codeparrot/github-code |
78207e3ff78f5ef85e592d78c1f599e3d0b22d1c1666051f8a106537279e3c0f | using System;
using Server;
using System.Collections.Generic;
using Server.Mobiles;
using Server.Items;
namespace Server.Engines.VvV
{
public class VvVHairDye : Item
{
public override int LabelNumber
{
get
{
if (this.Hue == ViceVsVirtueSystem.VirtueHue)
... | C# | Scripts/Services/ViceVsVirtue/Items/Rewards/VvVHairDye.cs | SirGrizzlyBear/ServUOGrizzly | gpl-2.0 | 1,651 | 72 | codeparrot/github-code |
2fb0df693de2c82e2214e1c34d93f119a0f9d5f5be289f281128843255bfb70d | /*
* drivers/cpufreq/cpufreq_ondemand.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of... | C | drivers/cpufreq/cpufreq_ondemand.c | UISS-Dev-Team/android_kernel_huawei_c8813 | gpl-2.0 | 32,176 | 1,181 | codeparrot/github-code |
da98bd5c3dcd33b0615aa491196252027d4d5bac3f7488f4f6b12b79880c2b6b | /*
* PCIe full dongle related circular buffer definition, only used by PHANTOM PCIe chip types.
*
* $ Copyright Open Broadcom Corporation $
*
*
* <<Broadcom-WL-IPTag/Open:>>
*
* $Id: circularbuf.h 530150 2015-01-29 08:43:40Z $
*/
#ifndef __CIRCULARBUF_H_INCLUDED__
#define __CIRCULARBUF_H_INCLUDED__
#include ... | C | drivers/net/wireless/bcmdhd/include/circularbuf.h | CyanogenMod/android_kernel_asus_moorefield | gpl-2.0 | 3,714 | 105 | codeparrot/github-code |
d6307d43168c8d62b09f426d54df09f208641fe6f27f5dde2ea07d1f5cddadd7 | // SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2017 General Electric Company. All rights reserved.
*/
#include <bootcount.h>
#include <fs.h>
#include <mapmem.h>
#define BC_MAGIC 0xbd
#define BC_VERSION 1
typedef struct {
u8 magic;
u8 version;
u8 bootcount;
u8 upgrade_available;
} bootcount_ext_t;
sta... | C | drivers/bootcount/bootcount_ext.c | Stane1983/u-boot | gpl-2.0 | 1,872 | 84 | codeparrot/github-code |
44d0ae9738433c9e3eeb936cdd56115b4d965205975360ad408d4f37838d1b96 | /*
File: GXPrinterDrivers.h
Contains: This file defines data types and API functions for printer driver development.
Version: Technology: Quickdraw GX 1.1
Release: QuickTime 6.0.2
Copyright: (c) 1995-2001 by Apple Computer, Inc., all rights reserved.
Bugs... | C | of_vs/libs/quicktime/include/GXPrinterDrivers.h | sangww/eyecan | gpl-3.0 | 54,145 | 1,099 | codeparrot/github-code |
af8142dbd3e97f86eecb1097f1b48b58beafdd8acb84690ca7be4770c88bac96 | package org.ovirt.engine.core.common.action;
import javax.validation.Valid;
import org.ovirt.engine.core.common.businessentities.qos.QosBase;
import org.ovirt.engine.core.compat.Guid;
public class QosParametersBase<T extends QosBase> extends VdcActionParametersBase {
private static final long serialVersionUID =... | Java | ovirt/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/QosParametersBase.java | jtux270/translate | gpl-3.0 | 647 | 33 | codeparrot/github-code |
120d77ba1cc3f18ae93dada6ab8226234af17a44bf57c12fea00252008396585 | /*
* Copyright 2010-2016 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom 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 ... | C++ | src/Battlescape/ActionMenuItem.cpp | uqs/OpenXcom | gpl-3.0 | 4,922 | 173 | codeparrot/github-code |
0a9e4e6204ca343a42771dd96ed977a332c2ac6821415c0d9c84ea2af5f7832a | <?php
/**
* Copyright (C) 2007,2008 Arie Nugraha (dicarve@yahoo.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any la... | PHP | admin/AJAX_lookup_handler.php | slims/slims7_cendana | gpl-3.0 | 3,083 | 98 | codeparrot/github-code |
9902d4139b38201d9b07c52fd7c027268f44afff1910a53a71fed8f44ce54029 | <?php
/*
* Sample application for Google+ client to server authentication.
* Remember to fill in the OAuth 2.0 client id and client secret,
* which can be obtained from the Google Developer Console at
* https://code.google.com/apis/console
*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Ve... | PHP | tparty/google_auth/signin.php | htphuoc94/MyERP_Stable | mpl-2.0 | 5,685 | 157 | codeparrot/github-code |
cf594b2fb24000f77fe2057b301a1448ae823639bfc221c27170bcf0a382f1c2 | <?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | PHP | engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginLicenceService.php | megadruck/Shopware-Test1 | agpl-3.0 | 10,030 | 328 | codeparrot/github-code |
39133ce8d8f590959aa75c7cf82044e9dd523d983b5484dae9cb3e2a2847f93b | /*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2014 The Kuali Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Fre... | Java | work/src/org/kuali/kfs/module/tem/document/web/struts/AddAttendeesEvent.java | ua-eas/ua-kfs-5.3 | agpl-3.0 | 5,866 | 152 | codeparrot/github-code |
937d743c0a893c46b099a205a277e42b9728a22cff53c0631b79dfe996aca3f7 | <?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | PHP | engine/Shopware/Components/Thumbnail/Manager.php | megadruck/Shopware-Test1 | agpl-3.0 | 11,612 | 387 | codeparrot/github-code |
0405111a34962f39a2c0cdf43d58de24c5f622afa3ebaed17636d9852b2f6d22 | /*
* Copyright (C) 2015 Hamburg University of Applied Sciences (HAW)
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpp11-compat
* @{
*
* @file
* @brief C++11 chrono ... | C++ | sys/cpp11-compat/include/riot/chrono.hpp | mziegert/RIOT | lgpl-2.1 | 3,403 | 139 | codeparrot/github-code |
b75753787effc112bf3c61ef6f8327ef812e368aa23e9fcfdd6f8907e8287069 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | Java | server/src/main/java/org/elasticsearch/search/aggregations/metrics/ValueCountAggregatorFactory.java | robin13/elasticsearch | apache-2.0 | 2,479 | 56 | codeparrot/github-code |
65491d236011427af79dbc04f238e47ae93592cf934db25fcc66c5f3c6f3c6ea | /*
* 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
* distribut... | Java | presto-main/src/main/java/com/facebook/presto/operator/aggregation/MinAggregationFunction.java | Teradata/presto | apache-2.0 | 7,801 | 204 | codeparrot/github-code |
88169fc6058891a074883d78f5d15d263147a05c50c2460b2124e64963f5ec28 | /*
* jQuery Highlight Plugin - modified
* Examples and documentation at: http://demo.webcodingstudio.com/highlight/
* Copyright (c) 2010 E. Matsakov
* Version: 1.0 (26-FEB-2010)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.... | JavaScript | demo/assets/js/highlight.js | atelierspierrot/git-api | apache-2.0 | 12,917 | 299 | codeparrot/github-code |
9b2690d4af256b3538138d979e16dd4f17ab18cee2f33649e051f9a7ea1f7d53 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/DropFunctionHandler.java | vineetgarg02/hive | apache-2.0 | 1,792 | 49 | codeparrot/github-code |
46793994213233c2f4b284f2213986b7f420d04a84ec8024dddc690df1b595a4 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | Java | kie-server-parent/kie-server-controller-plugin/src/main/java/org/kie/server/controller/plugin/CreateTemplateMojo.java | winklerm/droolsjbpm-integration | apache-2.0 | 3,997 | 105 | codeparrot/github-code |
31db0b651b9a69a44bd1d9dc15ea7b496694ba3b81d76ad8f1195f4a28960b42 | {#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use ... | HTML | airflow/www/templates/airflow/chart.html | apache/incubator-airflow | apache-2.0 | 2,581 | 66 | codeparrot/github-code |
f8a2f021181ffbc30a5f9eb034d359ef90a7be748767a72c61031af75c04c695 | /*
* ModeShape (http://www.modeshape.org)
*
* 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 o... | Java | modeshape-jcr/src/main/java/org/modeshape/jcr/JcrMultiValueProperty.java | weebl2000/modeshape | apache-2.0 | 15,800 | 383 | codeparrot/github-code |
81d9398a132b0401194d335c154a03594bcd799f01d70d5f0a90e94b84ff1203 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | hbase-common/src/test/java/org/apache/hadoop/hbase/types/TestStruct.java | throughsky/lywebank | apache-2.0 | 12,987 | 381 | codeparrot/github-code |
11cd0d4f5fb7192788bb6f0cf949484796ebbd29042edd1c021cfddaf5921832 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DocStrap Source: strings/format.js</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css"... | HTML | themes/cyborg/format.js.html | spark-developer/custom-docstrap | apache-2.0 | 7,371 | 338 | codeparrot/github-code |
8a097c5de9980524cb1925e6d01006ee55a58e59c21fa94587817a738dee2f98 | <!DOCTYPE html >
<html>
<head>
<title>DagInitiated - io.gearpump.streaming.appmaster.DagManager.DagInitiated</title>
<meta name="description" content="DagInitiated - io.gearpump.streaming.appmaster.DagManager.DagInitiated" />
<meta name="keywords" content="DagInitiated io.gearpump.... | HTML | releases/0.7.6/api/scala/io/gearpump/streaming/appmaster/DagManager$$DagInitiated$.html | stanleyxu2005/gearpump.github.io | apache-2.0 | 24,860 | 457 | codeparrot/github-code |
e365d31909eeec56b5af428b61b1bbd325162642e1e9f406e03c10726d69b7f3 | /*
Copyright 2016 The Kubernetes Authors.
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, ... | GO | staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.go | djosborne/kubernetes | apache-2.0 | 14,048 | 284 | codeparrot/github-code |
ec7d7d5b1af4bfa382ae83792259309fa1146bfe38629cfacff5e0ae76d9bc38 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfiler.java | samaitra/ignite | apache-2.0 | 3,167 | 89 | codeparrot/github-code |
594822e1e0ca3f7ef192d8108e378b3db5fb96d1b5ad4611d30ddc5a428f28e5 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java | cleliameneghin/sling | apache-2.0 | 10,524 | 300 | codeparrot/github-code |
d849c571dcf8f78fb92cce4e30a725441bca170636dff84b92541c4175ffdf5a | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | Java | server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/metrics/TopHitsIT.java | robin13/elasticsearch | apache-2.0 | 65,846 | 1,263 | codeparrot/github-code |
efea52642bfdd0663efdde7823dbaef1f49810b62b788ad749edeade724ed54b | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_MANAGER_H_
#define CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_MANAGER_H_
#include <map>
#include ... | C | src/chrome/browser/extensions/api/api_resource_manager.h | plxaye/chromium | apache-2.0 | 5,995 | 175 | codeparrot/github-code |
b3ea26972541645ae0e3fc9c4a16905b9fefe1a67d6e48625ee5e40f716f117a | /*
Copyright 2007-2009 Selenium committers
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... | Java | java/client/test/org/openqa/selenium/support/pagefactory/AnnotationsTest.java | misttechnologies/selenium | apache-2.0 | 6,827 | 215 | codeparrot/github-code |
ddcfce3eb770d2b87dd4a02984da598c5cde95abb284ac009dc8c7e8c2b247ad | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java | raysteam/zeppelin | apache-2.0 | 33,796 | 1,032 | codeparrot/github-code |
04e7e6bf6f836f3e166dab74f23787d7601f7451708dbea5e1f5ee9aa493a2a8 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... | C# | Chapter21/RotatedText/RotatedText/RotatedText.WinPhone81/MainPage.xaml.cs | YOTOV-LIMITED/xamarin-forms-book-preview-2 | apache-2.0 | 1,758 | 51 | codeparrot/github-code |
76242329672ff929b920d4d3a17b0586a9b69afa58457c3ffa210a9b1e680ae1 | # Copyright 2014 Google Inc. All Rights Reserved.
#
# 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 ... | Python | modules/dashboard/utils.py | CSCI1200Course/csci1200OnlineCourse | apache-2.0 | 2,730 | 75 | codeparrot/github-code |
a488247880026881919736924c449284a705c1f9521d64d3474552c0de517865 | // Copyright 2008 Google Inc. All Rights Reserved.
package org.clearsilver;
import java.io.IOException;
/**
* Utility class that delegates all methods of an CS object. Made to
* facilitate the transition to CS being an interface and thus not
* extensible in the same way as it was.
* <p>
* This class, and its su... | Java | java/org/clearsilver/DelegatedCs.java | apfeltee/clearsilver | bsd-2-clause | 1,996 | 76 | codeparrot/github-code |
212de02c41b1b078aa7e906d17c1714bc9307c321f48ff3a823006736543e1fe | // stacktrace.cc - Functions for unwinding & inspecting the call stack.
/* Copyright (C) 2005, 2006 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
#include <config.... | C++ | tools/source/gcc-4.2.4/libjava/stacktrace.cc | shaotuanchen/sunflower_exp | bsd-3-clause | 18,059 | 629 | codeparrot/github-code |
5d8fb105ccea761306752c32a8dd66a7383e1768bb9377a7bf55958d8a055ca4 | package edu.gemini.services.server.util
import edu.gemini.spModel.core.Site
import edu.gemini.services.client._
import edu.gemini.services.server.telescope.LttsService
import edu.gemini.spModel.core.osgi.SiteProperty
import java.net.URI
import org.osgi.framework.BundleContext
/**
* Put together service implementati... | Scala | bundle/edu.gemini.services.server/src/main/scala/edu/gemini/services/server/util/CalendarService.scala | arturog8m/ocs | bsd-3-clause | 1,957 | 47 | codeparrot/github-code |
eb88d8ddfa4fec6308e87264b7294dc2d67d6a5c4e67d7656c9bfe404d406291 | package edu.gemini.spModel.core
import scalaz._
import Scalaz._
import org.scalacheck.Properties
import org.scalacheck.Prop.forAll
import org.scalacheck.Prop._
import org.scalacheck.Gen
import org.specs2.ScalaCheck
import org.specs2.mutable.Specification
import AlmostEqual.AlmostEqualOps
object InterpolateSpec extend... | Scala | bundle/edu.gemini.spModel.core/src/test/scala/edu/gemini/spModel/core/InterpolateSpec.scala | spakzad/ocs | bsd-3-clause | 3,235 | 104 | codeparrot/github-code |
a636c1509a5267de8a15bd981eb4ba6326934bcb46e136048cd84bbfedd5292b | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const Image = require('./Image');
const React = require('react');
const StyleSheet = require... | JavaScript | Libraries/Image/ImageBackground.js | exponentjs/react-native | bsd-3-clause | 2,566 | 91 | codeparrot/github-code |
96abf7d51f4a82f35045d4afc6d748f7d10976c67256b267ec3254b2bf87ebac | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_SPY_SPY_H_
#define MOJO_SPY_SPY_H_
#include <string>
#include "base/memory/scoped_ptr.h"
namespace base {
class Thread;
}
namespace mojo ... | C | mojo/spy/spy.h | TeamEOS/external_chromium_org | bsd-3-clause | 1,020 | 41 | codeparrot/github-code |
252e9e1e099b39fcf276616c9f1efd4e0853dcdd338e78b124f1e975df8cb6ae | /*-------------------------------------------------------
Spruce
Filesystem Wrapper Library for C++11
Copyright (c) 2014, Joseph Davis (@josephdavisco)
All rights reserved. See LICENSE for license info.
---------------------------------------------------------*/
#include "... | C++ | thirdParty/spruce/src/spruce.cc | scottviteri/drake | bsd-3-clause | 11,410 | 463 | codeparrot/github-code |
b1ad7f01dc63669375384ef9a61874ee4e821c94c7a57c23654b4b1cea79108f | // Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/capture/content/animated_content_sampler.h"
#include <algorithm>
namespace media {
namespace {
// These specify the minimum/maximu... | C++ | media/capture/content/animated_content_sampler.cc | Chilledheart/chromium | bsd-3-clause | 11,524 | 294 | codeparrot/github-code |
901827aa69dcd7bcdbacc47d9bfd3305fe9ce68abe6ebbf0908a8e6ddefba398 | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... | C++ | TEvtGen/EvtGen/EvtGenModels/EvtBtoXsgammaRootFinder.hh | miranov25/AliRoot | bsd-3-clause | 1,832 | 66 | codeparrot/github-code |
ee513a1e75a3f103f41dd05cb69241b8dc07ad390e8b288a8f592fc7d60a1d3d | #include "mitkDiffusionHeaderSiemensDICOMFileHelper.h"
#include "mitkDiffusionHeaderSiemensMosaicDICOMFileReader.h"
#include <sstream>
mitk::DiffusionHeaderSiemensMosaicDICOMFileReader::DiffusionHeaderSiemensMosaicDICOMFileReader()
: DiffusionHeaderSiemensDICOMFileReader()
{
}
mitk::DiffusionHeaderSiemensMosaicDI... | C++ | Modules/DiffusionImaging/DiffusionCore/src/DicomImport/mitkDiffusionHeaderSiemensMosaicDICOMFileReader.cpp | iwegner/MITK | bsd-3-clause | 4,562 | 144 | codeparrot/github-code |
f9a208d96fab5768e51170f46c2bc440d4c5c159cea1628ca9a954455e364a5c | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/renderer/extensions/sync_file_system_custom_bindings.h"
#include <string>
#include "extensions/renderer/script_context.h"
#include ... | C++ | chrome/renderer/extensions/sync_file_system_custom_bindings.cc | axinging/chromium-crosswalk | bsd-3-clause | 1,871 | 63 | codeparrot/github-code |
4c65bd3b0141ff93e661e7e0e19ceb8c18db4381e2746744d15c7699a1f9601e | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | third_party/llvm/libcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iter.ops/back.insert.iter.cons/container.pass.cpp | endlessm/chromium-browser | bsd-3-clause | 727 | 35 | codeparrot/github-code |
d7b4f8c598030f86647f7e3d818b3fbaca9e74065b0979260e45b1d643155ebe | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/webm/webm_constants.h"
#include "media/webm/webm_content_encodings_client.h"
#include "media/webm/webm_parser.h"
#include "testing/gte... | C++ | media/webm/webm_content_encodings_client_unittest.cc | keishi/chromium | bsd-3-clause | 10,311 | 241 | codeparrot/github-code |
b596d6b45ce08818d37f72d52a59e896b85cbc7e9fece10b873b467320aaa93b | var Joi = require('joi');
var Hoek = require('hoek');
var AuthPlugin = require('../auth');
exports.register = function (server, options, next) {
options = Hoek.applyToDefaults({ basePath: '' }, options);
server.route({
method: 'GET',
path: options.basePath + '/users',
config: {
... | JavaScript | server/api/users.js | sunnytechy/tasks | mit | 16,892 | 566 | codeparrot/github-code |
64a9973142d910c17e6c29af0e93629399f484a6464430a7e154159b94ecdaca | using System;
using System.Threading;
using System.Threading.Tasks;
using Orleans.Runtime;
namespace Orleans.Transactions.State
{
internal class ActivationLifetime : IActivationLifetime, ILifecycleObserver
{
private readonly CancellationTokenSource onDeactivating = new CancellationTokenSource();
... | C# | src/Orleans.Transactions/State/ActivationLifetime.cs | veikkoeeva/orleans | mit | 2,096 | 65 | codeparrot/github-code |
d0374c4db588f379cf0037a938938e9d1a27434e6eced56d67e732caba79a473 |
typedef enum {
LSMDB_NONE = 0,
LSMDB_ABC = 1,
LSMDB_ACB = 2,
LSMDB_BAC = 3,
LSMDB_BCA = 4,
LSMDB_CAB = 5,
LSMDB_CBA = 6,
} LSMDB_state;
static LSMDB_state lsmdb_swap_12(LSMDB_state const x) {
switch(x) {
case LSMDB_ABC: return LSMDB_BAC;
case LSMDB_ACB: return LSMDB_CAB;
case LSMDB_BAC: return LSMDB_... | C | res/experiments/2014-10-12-swap.c | yamingd/stronglink | mit | 793 | 38 | codeparrot/github-code |
236c5306f14c7bf5bb1f11c5f21f8766c4bd885e86d39f78217f4eb85cface17 | namespace AutoMapper.Mappers
{
using System.Reflection;
public class AssignableArrayMapper : IObjectMapper
{
public object Map(ResolutionContext context, IMappingEngineRunner mapper)
{
if (context.SourceValue == null && !mapper.ShouldMapSourceCollectionAsNull(context))
... | C# | src/AutoMapper/Mappers/AssignableArrayMapper.cs | EricSB/AutoMapper | mit | 1,171 | 32 | codeparrot/github-code |
43dbb72cfebade5f87e218148643f1125c0f2212c99eededa88b908906cc565e | /*
* Projector function driver
*
* Copyright (C) 2010 HTC Corporation
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in t... | C | drivers/usb/gadget/f_projector.c | kozmikkick/tripndroid-endeavoru-3.6 | gpl-2.0 | 34,541 | 1,303 | codeparrot/github-code |
44675cbbeaaa5f04099e1380e241545ae986589c643aa21eeb9abd43509da0e7 | /* Copyright (c) 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 hope th... | C | drivers/media/video/msm/csi/msm_csic.c | hroark13/zw340 | gpl-2.0 | 15,691 | 504 | codeparrot/github-code |
1733f7e0823df5aefb15fa0064da7202370a138842be54a0e3ea10088f17fee7 | /**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be u... | Java | common/common/src/main/java/org/cspoker/common/api/lobby/holdemtable/context/ExternalRemoteHoldemTableContext.java | BeyondTheBoundary/cspoker | gpl-2.0 | 1,547 | 34 | codeparrot/github-code |
782628f268f58ff11c78b09bca195ee61b0d7e3d06609e573613924b0468874f | <?php
get_template_part('inc/func/plugin-activation');
add_action( 'tgmpa_register', 'fruitful_register_required_plugins' );
/**
* Register the required plugins for Fruitful theme.
*/
function fruitful_register_required_plugins() {
$plugins = array(
array(
'name' => 'Maintenance',
'slug' => 'mainten... | PHP | wp-content/themes/fruitful/inc/func/plugins-included.php | moriarti404/homework5 | gpl-2.0 | 3,589 | 61 | codeparrot/github-code |
2cbaac732670c6b4505856fdfad7bf44e14d9e7092d70a28bd088c45f6bcef25 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
... | Java | base/src/org/compiere/model/MOrder.java | erpcya/adempierePOS | gpl-2.0 | 73,804 | 2,474 | codeparrot/github-code |
075307727bbd4ff9f8d05bb1d9f19f4718bb01ba87e49cc2b3cc8f28154d71c2 | /*
Copyright (C) 2012 Haowen Ning
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that... | Java | src/org/liberty/android/fantastischmemo/downloader/google/Row.java | stden/anymemo | gpl-2.0 | 1,167 | 40 | codeparrot/github-code |
b3692df3abda74f6d18aa180f7ce6e5bd08aa7ac36dc96687298dd3a92a83a92 | #!/bin/sh
#
# Copyright (c) 2013, 2014, 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 ... | Shell | test/runtime/jsig/Test8017498.sh | benbenolson/hotspot_9_mc | gpl-2.0 | 2,838 | 101 | codeparrot/github-code |
6fec9d3bf776c368deb0ce13c60bc44921cb971fd8d353a696d446e8cb1510e3 | /*
* Atmel maXTouch Touchscreen driver
*
* Copyright (C) 2010 Samsung Electronics Co.Ltd
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foun... | C | include/linux/input/atmel_mxt1188S.h | awifi-dev/android_kernel_lge_awifi | gpl-2.0 | 4,622 | 198 | codeparrot/github-code |
b53ea28e42a9a309558fd850606fa1b951fb8ea7b264d0db7927194fff2f643a | #include "etherboot.h"
#include "callbacks.h"
#include <stdarg.h>
void arch_main ( in_call_data_t *data __unused, va_list params __unused )
{
#ifdef PCBIOS
/* Deallocate base memory used for the prefix, if applicable
*/
forget_prefix_base_memory();
#endif
}
void arch_relocated_from (unsigned long old_addr )
{
#... | C | src/VBox/Devices/PC/Etherboot-src/arch/i386/core/hooks.c | yuyuyu101/VirtualBox-NetBSD | gpl-2.0 | 687 | 36 | codeparrot/github-code |
a0fdf6dd374481190f31990b32a22d2605e6d8113aa7a5afa6567496bcb65f2e | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* IDE routines for typical pc-like standard configurations for the IBM WorkPad z50.
*
* Copyright (C) 1998, 1999, 2001 by Ralf Baechle
*/... | C | linux-2.4.x/arch/mips/vr41xx/ibm-workpad/ide-workpad.c | sensysnetworks/uClinux | gpl-2.0 | 2,499 | 99 | codeparrot/github-code |
1623f01cead0301451c77e1919027f39c720de5efaa3e6d9297274bf8a035b71 | /*
* recording_backend_sionlib.h
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST 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 Licens... | C | nestkernel/recording_backend_sionlib.h | niltonlk/nest-simulator | gpl-2.0 | 11,885 | 369 | codeparrot/github-code |
fd8194a14a02d748263ab1a45884a17ac8b03c23d705e7ff8a2c2a7fce1bbfed | /* QLogic qed NIC Driver
* Copyright (c) 2015-2017 QLogic Corporation
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this ... | C | drivers/net/ethernet/qlogic/qed/qed_spq.c | qzhuyan/linux | gpl-2.0 | 27,084 | 1,014 | codeparrot/github-code |
cdd3ad78a5e68e1492af430512b729d9421b4d578b090129ebd15d036feff23a | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ThemeZilla</title>
<script type="text/javascript">
// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
var vars = [], hash;
var hashes = window.locati... | HTML | demo/volumes-responsive-portfolio-themeforest-wp-theme.html | successdt/offshore_home | gpl-2.0 | 783 | 45 | codeparrot/github-code |
0d5369cc3fd8850d3c3e6326ae278155ab12c4bb985a556396c0834d6a099c6f | /*
* Copyright (C) 2002-2013 The DOSBox Team
*
* 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 p... | C | src/hardware/serialport/softmodem.h | pedrotanaka/dosbox | gpl-2.0 | 5,079 | 251 | codeparrot/github-code |
69b903f5d5bae7959a3d508ed88a07a7964a7086d16603082be30555336b800e | /**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/*
skin.js
=========
In this file we interact with the CKEditor JavaScript API to register the skin
and enable additional skin related features.
The level of... | JavaScript | htdocs/includes/ckeditor/ckeditor/_source/skins/moonocolor/skin.js | gmuro/dolibarr | gpl-3.0 | 10,385 | 275 | codeparrot/github-code |
74048fa87de31bcd1d0be1b9be02db0a2400688f7017d3069395a280b591beb1 | /*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... | C | sw/freeRTOS/Source/portable/RVDS/ARM_CM3/port.c | amitkrd1/PWM_LED | gpl-3.0 | 27,728 | 730 | codeparrot/github-code |
e8433fc3cfdafd13be2b5c819d39f5f08e3f9a2c47401893e3c82fcf40ea45f5 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "base/memory/ref_counted.h"
#include "base/values.h"
#include "content/public/browser/notification_service.h"
#include "conten... | C++ | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/extensions/browser/api/dns/dns_apitest.cc | geminy/aidear | gpl-3.0 | 3,549 | 98 | codeparrot/github-code |
c0e5d1da582fe5452878ed44d2ea9efb43643a181b472ce06b81438e505052fe |
/*--------------------------------------------------------------------*/
/*--- An example Valgrind tool. lk_main.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of Lackey, an example Valgrind tool that does
some simple program measur... | C | valgrind-r12356/lackey/lk_main.c | zhuyue1314/pathgrind | gpl-3.0 | 33,859 | 987 | codeparrot/github-code |
d9f34cdcc8b258a85545318d1f34e57f2febab6f6456c2159568f688b16076d1 | package org.qii.weiciyuan.ui.actionmenu;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.... | Java | src/org/qii/weiciyuan/ui/actionmenu/NormalFriendShipSingleChoiceModeListener.java | newtonker/weiciyuan | gpl-3.0 | 7,146 | 218 | codeparrot/github-code |
f88c76c6486cc23155aadd50baf8ee382dc3f4b41bb9cc45914de6fe670a2f6d | #region License
// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms... | C# | ImageViewer/Utilities/StudyFilters/Columns/BinaryDicomTagColumn.cs | chinapacs/ImageViewer | gpl-3.0 | 1,813 | 54 | codeparrot/github-code |
c1b0e8b1b3c2e19c6399055c473d8c3c207c31356952c6833f7a288ff3b132e9 | /* Authors:
* Endi Sukma Dewata <edewata@redhat.com>
* Adam Young <ayoung@redhat.com>
*
* Copyright (C) 2010 Red Hat
* see file 'COPYING' for use and warranty information
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | JavaScript | install/ui/src/freeipa/hbac.js | redhatrises/freeipa | gpl-3.0 | 14,858 | 506 | codeparrot/github-code |
c14c8b385105fdbf6b3c3ed673432947ad1cd8cef0846214c2c6dbdac8059bc6 | import sys
import os
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler, FileModifiedEvent
class LessCompiler(FileSystemEventHandler):
def __init__(self, source):
self.source = source
FileSystemEventHandler.__init__(self)
def compile_css(s... | Python | website/tools/suit/watch_less.py | hzlf/openbroadcast | gpl-3.0 | 1,306 | 49 | codeparrot/github-code |
9d67019cf7608680b55a0de4b5281c61fea4e5a580d2b82f1fe1a50e11cb72b8 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import datetime
import os
import re
import stat
import tempfile
import time
import requests
from socorro.lib import ex... | Python | socorro/external/http/correlations.py | pcabido/socorro | mpl-2.0 | 6,839 | 213 | codeparrot/github-code |
aeb5a9e6112ae07f86745c4de3ff816a181ac8593cfdb05fb77f543757d25ae3 | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... | Java | biojava-structure/src/main/java/org/biojava/nbio/structure/jama/LUDecomposition.java | pwrose/biojava | lgpl-2.1 | 7,657 | 333 | codeparrot/github-code |
af5f077b311dec4cf0f3f55ca082d48df5ebea6f26ed781de9382955168da58a | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | Java | testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/mdb/resourceadapter/SimpleActivationSpec.java | xasx/wildfly | lgpl-2.1 | 1,884 | 59 | codeparrot/github-code |
91eb5e0ff962e47f1bf7f0d219f4199108966ca9db084fba786c0dd436c4d6c7 | /********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the ... | C | base/sim/FairRunIdGenerator.h | NicolasWinckler/FairRoot | lgpl-3.0 | 1,763 | 55 | codeparrot/github-code |
4b65f3d8a4548638d026d184df1371e7fe63a55b19e3fe3aaf01d96c1a7c7314 | require File.expand_path(File.join(File.dirname(__FILE__), '..', 'mongodb'))
Puppet::Type.type(:mongodb_database).provide(:mongodb, :parent => Puppet::Provider::Mongodb) do
desc "Manages MongoDB database."
defaultfor :kernel => 'Linux'
def self.instances
require 'json'
dbs = JSON.parse mongo_eval('prin... | Ruby | vagrant/puppet/modules/mongodb/lib/puppet/provider/mongodb_database/mongodb.rb | incubio/bootcamp | lgpl-3.0 | 994 | 41 | codeparrot/github-code |
37457a11ae2199a8707f5d82487946f13f57f7be215d0907c1513692062d5ddb | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZkEphemeralStore.java | myroch/drill | apache-2.0 | 4,858 | 146 | codeparrot/github-code |
0b190bce00ea080a6b7d1ad61249e67613d63bd574be93a9fcd9b8360c2c28ba | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/PartitionDefferedDeleteQueueCleanupTask.java | samaitra/ignite | apache-2.0 | 3,758 | 107 | codeparrot/github-code |
d2ce27b03d357005482cf6ff839eb908a556c1b591d9a2a86b5d69d05998f1c3 | # Copyright 2017 gRPC authors.
#
# 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... | Python | src/python/grpcio_testing/grpc_testing/_common.py | adelez/grpc | apache-2.0 | 4,406 | 161 | codeparrot/github-code |
2a0727469c7a51fa4e0ecc2b1395de2cc9a46b6011b4225a17945c5f53cc7813 | /*
* Copyright (C) 2012 Google Inc.
*
* 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 ... | Java | old/caliper/test/java/com/google/caliper/runner/WorkerProcessTest.java | cmelchior/spanner | apache-2.0 | 6,121 | 169 | codeparrot/github-code |
98a15ee519b8c2e70e6758d2ac17e593feeb8e4e870aa8a711dbcf220f6deb69 | /*
* Copyright 2013 MovingBlocks
*
* 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 t... | Java | engine/src/main/java/org/terasology/world/propagation/light/LightPropagationRules.java | immortius/Terasology | apache-2.0 | 1,632 | 60 | codeparrot/github-code |
3b7e734804bb2c02e6afec7702bd5f142130a98bbc89bbcb52af74c4c97f7a2e | /*
* camresourcemanager.c - GStreamer CAM (EN50221) Resource Manager
* Copyright (C) 2007 Alessandro Decina
*
* Authors:
* Alessandro Decina <alessandro.d@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as p... | C | third_party/gst-plugins-bad/sys/dvb/camresourcemanager.c | google/aistreams | apache-2.0 | 5,432 | 193 | codeparrot/github-code |
bb6b82160107ec5bc5b5953cc685048348216ccdeaa60c5397cfec11a8f55ae7 | ########################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the Lice... | PowerShell | WS2008R2/lisa/setupscripts/ShutDownVM.ps1 | bogdancarpusor/lis-test | apache-2.0 | 3,472 | 156 | codeparrot/github-code |
fca11b3987bf1cc4910aad185749b101efc412ec68383e02bc49480e82ff7f4f | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | server/src/test/java/org/elasticsearch/index/query/PrefixIntervalsSourceProviderTests.java | gingerwizard/elasticsearch | apache-2.0 | 2,686 | 77 | codeparrot/github-code |
f124a89d2c485517171fbcef9d081d50de28843be3eb268626c8acc9f992a117 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | src/org/apache/pig/builtin/Distinct.java | miyakawataku/piggybank-ltsv | apache-2.0 | 6,031 | 180 | codeparrot/github-code |
cfb5f48ba85d6912bb24bdd8d93fa2eae4e3d8c339503e5c8cb6865927752566 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | core/camel-core/src/test/java/org/apache/camel/processor/MulticastParallelTimeoutAwareTest.java | nikhilvibhav/camel | apache-2.0 | 3,950 | 102 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.