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 |
|---|---|---|---|---|---|---|---|---|
0a48dc8a047a9824aabb0e43dce23fab12d6f731c37f638914d5dffcc869cb7e | import { Injectable, Provider } from '@angular/core';
import { LogTargetBase, LogEvent, LogLevel, LogTargetOptions, LogTarget } from './log.target';
import { ConsoleService } from '../console.service';
@Injectable()
export class ConsoleTarget extends LogTargetBase {
constructor(private console: ConsoleService, optio... | TypeScript | xenon-ui/src/main/ui/src/client/app/modules/core/services/logging/console.target.ts | toliaqat/xenon | apache-2.0 | 1,205 | 41 | codeparrot/github-code |
aa36453ba67e8111c989b0c6e16fc55ecee3e267a70f4d52f0c874844516e82c | /*
* 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/main/java/org/apache/sysml/lops/CentralMoment.java | deroneriksson/incubator-systemml | apache-2.0 | 4,421 | 144 | codeparrot/github-code |
fddadee6fd37f5d805ea6422e858ce46f86943da9287f90f2ca188d1aa3a1c5f | #!/usr/bin/perl
#-------------------------------------------------------------------------
#
# Genbki.pm --
# perl script which generates .bki files from specially formatted .h
# files. These .bki files are used to initialize the postgres template
# database.
#
# Portions Copyright (c) 1996-2009, PostgreSQL G... | Perl | src/tools/msvc/Genbki.pm | janebeckman/gpdb | apache-2.0 | 7,122 | 257 | codeparrot/github-code |
9aa8d54b81661028ad681560cf48bf2d0cf54e9d34421461b93722e9b275c3b2 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.CodeGeneration;
using Microsoft.CodeA... | C# | src/Workspaces/CSharp/Portable/CodeGeneration/NamespaceGenerator.cs | ericfe-ms/roslyn | apache-2.0 | 7,171 | 181 | codeparrot/github-code |
52decf783975d3b5a49cddac4e2e89bba5eb1cf2613c92b98ff664b30b5d68e5 | /*
* [The "BSD license"]
* Copyright (c) 2012 Terence Parr
* Copyright (c) 2012 Sam Harwell
* All rights reserved.
*
* 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 code... | Java | tool/src/org/antlr/v4/codegen/model/VisitorFile.java | chienjchienj/antlr4 | bsd-3-clause | 3,331 | 85 | codeparrot/github-code |
46809bcede387fa740a7e3b155df596c385ede3288217273f86ec681d0cbffa6 | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | third_party/webrtc/modules/audio_device/android/audio_device_jni_android.cc | leighpauls/k2cro4 | bsd-3-clause | 86,602 | 2,900 | codeparrot/github-code |
c9729f1ee0bd75b790fd80fb9f2ebd7835f3bc3afd90171ee5ab3c618a148b04 | <?php
/**
* TestSuiteShell test case
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistribut... | PHP | src/lib/Cake/Test/Case/Console/Command/TestShellTest.php | nickpack/Methadone | mit | 10,026 | 337 | codeparrot/github-code |
a6012ede9dcfed494edf12e40a4efafb831c30aefdebdd88dfda87e7016066a1 | using System;
using System.Collections;
using System.Text;
namespace System.Collections.Generic {
/// <summary>
/// ABOUT:
/// Helps with operations that rely on bit marking to indicate whether an item in the
/// collection should be added, removed, visited already, etc.
///
/// BitHelper d... | C# | System.Core/System/Collections/Generic/BitHelper.cs | sekcheong/referencesource | mit | 5,444 | 139 | codeparrot/github-code |
e16f2b9d660ac0a9858e78018ced729ed0eb5f64d80d61230b7346d01b851b00 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Unique place to configure the browsers which are used in the different CI jobs in Sauce Labs (SL)
// and BrowserS... | JavaScript | browser-providers.conf.js | souvikbasu/angular | mit | 9,345 | 175 | codeparrot/github-code |
5a8c511f6870e0c16bef52ceb598c34009e1b7729d745cce7aeb82fac6dd11c2 | //===-- LoopIdiomRecognize.cpp - Loop idiom recognition -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | impedimentToProgress/Ratchet | mit | 43,344 | 1,155 | codeparrot/github-code |
2baf27fe8aa0c498a5bae243a0aa008ab8be1025a6c274a8ba3ca54775fcc15b | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico" />
<title>DataTables example</title>
<... | HTML | web/js/DataTables-1.9.4/media/unit_testing/performance/draw.html | desarrollotissat/web-interface | mit | 11,722 | 482 | codeparrot/github-code |
09848752f0dc52da728243dfe1050ce2954c513939a7ab8cf23576dab601b865 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Syste... | C# | src/Common/src/CoreLib/System/SByte.cs | Jiayili1/corefx | mit | 10,929 | 333 | codeparrot/github-code |
3052a4388d01ac56a4343b57229f4531492086a8b503f0e82cb1fec2634ed226 | /**
* Map object module
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Container } from "../../core/Container";
impor... | JavaScript | ajax/libs/amcharts4/4.10.9/.internal/charts/map/MapObject.js | cdnjs/cdnjs | mit | 6,657 | 205 | codeparrot/github-code |
a41aa4b6b6c0d1f3aa8a70fcc175d2dc5eb6a485c2c3892f3590f98c0b978f99 | /*
* qTip2 - Pretty powerful tooltips - v2.2.1
* http://qtip2.com
*
* Copyright (c) 2014
* Released under the MIT licenses
* http://jquery.org/license
*
* Date: Sat Sep 6 2014 09:55 EDT-0400
* Plugins: tips viewport
* Styles: core basic css3
*/
/*global window: false, jQuery: false, console: false, define: ... | JavaScript | wp-content/plugins/legacy-google-calendar-events/js/jquery.qtip.js | Torchwood7/torchwood-site | gpl-2.0 | 82,077 | 2,732 | codeparrot/github-code |
3e59d8aa5a37ed9a6b6d51bede5cbca4f91213f594978ea09491a9649989a769 | /*
* Copyright (c) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT A... | C | drivers/media/pci/intel/ipu3/ipu3-cio2.c | zhiyisun/linux | gpl-2.0 | 58,087 | 2,049 | codeparrot/github-code |
59c5216c5c4202c88504a7b1acec1931d08f0d3b97ee21ba5479dc692a89b987 | //////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright : (C) 2008 by Eran Ifrah
// file name : async_executable_cmd.cpp
//
// -----------------------------------------------... | C++ | Plugin/async_executable_cmd.cpp | huan5765/codelite-translate2chinese | gpl-2.0 | 6,002 | 213 | codeparrot/github-code |
2e7d56b009f80ba2ea2b7eb1cf0e3ab7bf318dbe52f9f21b34f7821662b7305e | /*
** $Id: linit.c,v 1.32.1.1 2013/04/12 18:48:47 roberto Exp $
** Initialization of libraries for lua.c and other clients
** See Copyright Notice in lua.h
*/
/*
** If you embed Lua in your program and need to open the standard
** libraries, call luaL_openlibs in your program. If you need a
** different set of librar... | C | com32/lua/src/linit.c | robclark/syslinux | gpl-2.0 | 1,724 | 70 | codeparrot/github-code |
512c661955debe4b31115eac0140fa8e60e00dee257d6ac291d25d908bee60b0 | /*
File: Multiprocessing.h
Contains: Multiprocessing interfaces
Version: Technology: Multiprocessing API version 2.0, integrated nanokernel support
Release: QuickTime 6.0.2
Copyright: (c) 1995-2001 DayStar Digital, Inc.
Bugs?: For bug repor... | C | include/qt/Multiprocessing.h | wang1986one/SPlayer | gpl-2.0 | 36,749 | 974 | codeparrot/github-code |
ea34ec15e479a470e6e521eff9bf502c9f13774f9f9a7239201010f0bafb8ebd | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## ... | Python | modules/bibformat/lib/elements/bfe_video_platform_suggestions.py | Panos512/invenio | gpl-2.0 | 5,845 | 163 | codeparrot/github-code |
5ecaa7c7d2c69bac9819da85e039c85732155c8842fc3087b15348b9109f413f | /* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
*/
/*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"... | C | drivers/gpu/drm/i915/i915_drv.h | Sricharanti/sricharan | gpl-2.0 | 78,092 | 2,496 | codeparrot/github-code |
5221b0f9c6f856ffd06c5eb5e90eda09b81f8a23eea7db54fe73c2b828d7ac7d | /*
* TI OMAP processor's Multichannel SPI emulation.
*
* Copyright (C) 2007-2009 Nokia Corporation
*
* Original code for OMAP2 by Andrzej Zaborowski <andrew@openedhand.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publi... | C | tools/qemu-xen/hw/omap_spi.c | piyushroshan/xen-4.3.2 | gpl-2.0 | 9,885 | 350 | codeparrot/github-code |
f7dd593e6c389bc5ede64e2fdf7b452d632b08e15fd8e3c639613267f9aabc56 | package Genome::Model::Tools::BioSamtools::Breakdown;
use strict;
use warnings;
use Genome;
class Genome::Model::Tools::BioSamtools::Breakdown {
is => ['Genome::Model::Tools::BioSamtools'],
has_input => [
bam_file => { doc => 'BAM format file(s) of alignment data' },
output_file => { doc => '... | Perl | lib/perl/Genome/Model/Tools/BioSamtools/Breakdown.pm | ahwagner/genome | lgpl-3.0 | 6,823 | 214 | codeparrot/github-code |
aab6f4d9771b66df6b7010855ccc5a6f191b267f04ba5e5cea0a79637e7fafab | #
# SonarQube, open source software quality management tool.
# Copyright (C) 2008-2014 SonarSource
# mailto:contact AT sonarsource DOT com
#
# SonarQube 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... | Ruby | web/WEB-INF/app/controllers/api/api_controller.rb | StackCacheOps/PR-Analysis-Sonar | lgpl-3.0 | 4,115 | 146 | codeparrot/github-code |
c1dc87d3ff8f9718c11888f350fb72ac9c07b8a9fee1177a3926d056e2e6edae | /*
* Copyright 2014-2015 Open Networking Laboratory
*
* 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 applicab... | Java | apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestWithdrawCommand.java | maxkondr/onos-porta | apache-2.0 | 1,493 | 41 | codeparrot/github-code |
637b1a7b0792def81e9c55db7be8ac707ae969c25a8de90000d8c97a72aaef10 | /*
* 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 ma... | Java | deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/property/PropertyFromMethodTest.java | rdicroce/deltaspike | apache-2.0 | 4,982 | 143 | codeparrot/github-code |
d1262153c003db2bdb46992cfbcca8a70ab68cae470c245c2320e985665dbb2e | /*
* 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/ThrottlingException.java | gnodet/camel | apache-2.0 | 1,279 | 38 | codeparrot/github-code |
d1650220b23d6d1580b69b751bdf7c52aefa42a638acc8b2b2e989fe1e9c1ee0 | using System;
using System.Collections.Generic;
using System.Linq;
using Elasticsearch.Net;
using Newtonsoft.Json;
namespace Nest
{
internal static class ClusterSettingsPathInfo
{
public static void Update(ElasticsearchPathInfo<ClusterSettingsRequestParameters> pathInfo, IClusterSettingsRequest request)
{
p... | C# | src/Nest/DSL/ClusterSettingsDescriptor.cs | Grastveit/NEST | apache-2.0 | 2,350 | 75 | codeparrot/github-code |
560631a7d2c5fb321d9b503fbb45972c2b4bc6f8b8932790136f6e52a6f21b9f | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licens... | C++ | src/qt/qtbase/src/widgets/kernel/qopenglwidget.cpp | you21979/phantomjs | bsd-3-clause | 5,280 | 191 | codeparrot/github-code |
e244dcca9ae4b34c5c0209213c8a6eec860dcce89b7e1379055e0cb46f24d1af | // 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 CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
#include "content/browser/download/down... | C | content/browser/download/download_file_impl.h | 7kbird/chrome | bsd-3-clause | 3,786 | 112 | codeparrot/github-code |
26addff2d5315774d704dade3569896960a8e566242a36d29eb7889d30925a1a | /*****************************************************************************
Copyright (c) 2011, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... | C | lapack-netlib/lapacke/src/lapacke_dgebak_work.c | aliefweb/openblas | bsd-3-clause | 3,787 | 85 | codeparrot/github-code |
2d4ce3dd50a1cd735b68189b20049f9ed61858d84d9629cf0b1fffa5555e6be5 | /*****************************************************************************
Copyright (c) 2011, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... | C | lapack-netlib/lapacke/src/lapacke_zgesvxx_work.c | aliefweb/openblas | bsd-3-clause | 8,239 | 183 | codeparrot/github-code |
d32fa97c7ad81332affa1f33ed9ce160d91486e6d9e00b17e36691a4c4d1c338 | #!/usr/bin/env python
#
# Copyright 2007 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 o... | Python | y/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/request_state.py | ychen820/microblog | bsd-3-clause | 2,810 | 89 | codeparrot/github-code |
b083040280ad976b6733c9796aeafb6dcac035838292619ea36208f244a4bb98 | /******************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
*
... | C | virt/drivers/net/wireless/iwlwifi/mvm/led.c | AiJiaZone/linux-4.0 | gpl-2.0 | 4,567 | 137 | codeparrot/github-code |
94bb09c5da04cc3dc0bfeb65e66f6977cbcdd03b486ac869c6254ddc8b166838 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "clientversion.h"
#include "init.h"
#include "main.h"
#in... | C++ | srcs/rpcmisc.cpp | edc-ecuador/edc | mit | 16,114 | 398 | codeparrot/github-code |
d60855cad112299a4ceba6758bd4ea66e42b078cb27634c140ffd493a738f48a | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | C | thirdparty/assimp/code/PostProcessing/ImproveCacheLocality.h | Paulloz/godot | mit | 3,483 | 102 | codeparrot/github-code |
a2624badfd046b18daa66ff0689ee80de39d997ff9b0e796a2c04e07c542ad23 | /*
* Copyright (c) 1997, 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 | src/share/jaf_classes/javax/activation/MailcapCommandMap.java | JetBrains/jdk8u_jaxws | gpl-2.0 | 25,835 | 694 | codeparrot/github-code |
c083f0d31264c72a39839138426c1178a701c18c906d35127227735b4d9d3706 | /*
* Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
* Copyright (C) 2004 - 2006 Red Hat, Inc. All rights reserved.
*
* This file is released under the GPL.
*/
#include "dm.h"
#include <linux/module.h>
#include <linux/vmalloc.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/wait.h... | C | drivers/md/dm-ioctl.c | janrinze/loox7xxport.loox2624 | gpl-2.0 | 31,852 | 1,548 | codeparrot/github-code |
7d2fcc7c0ff59c22c213fc2a3a8c8f943f20680a883cc09eb4becbc02ac646d9 | ! { dg-do run }
! { dg-require-effective-target sse2_runtime { target { i?86-*-* x86_64-*-* } } }
! { dg-additional-options "-msse2 -mfpmath=sse" { target { i?86-*-* x86_64-*-* } } }
program test_underflow_control
use ieee_arithmetic
use iso_fortran_env
logical l
real, volatile :: x
double precision, volati... | FORTRAN | gcc/testsuite/gfortran.dg/ieee/underflow_1.f90 | Gurgel100/gcc | gpl-2.0 | 1,142 | 51 | codeparrot/github-code |
d488f46d60704fd9935a9a588463cb1ff76e47b75d0949f48895857ec9745116 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | Lua | plugins/plugins.lua | mahdibagheri/mahdi | gpl-2.0 | 6,015 | 223 | codeparrot/github-code |
f80c8aab14d8bb1adb26277a93d4040efd2f62ffd14aab216d96d88b5bc10c2e | /*
Unix SMB/CIFS implementation.
default IPC$ NTVFS backend
Copyright (C) Andrew Tridgell 2003
Copyright (C) Stefan (metze) Metzmacher 2004-2005
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 | tools/darwin/depends/samba/samba-3.6.6/source4/ntvfs/ipc/vfs_ipc.c | zarboz/XBMC-PVR-mac | gpl-2.0 | 32,711 | 1,346 | codeparrot/github-code |
6665becd3d94d7cc8f92817a7327333b6c54ccb9e3ac0178f2ac340db0e1ea05 | #
# Copyright:: Copyright 2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#... | Ruby | chef-config/lib/chef-config/mixin/fuzzy_hostname_matcher.rb | martinisoft/chef | apache-2.0 | 1,264 | 42 | codeparrot/github-code |
1b9f7c0ebe4e73f18fc369b9c087f9bb2ab3a6c970c73e7abdd7eeace7a7844d | package backtype.storm.utils;
/**
* 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, Vers... | Java | jstorm-core/src/main/java/backtype/storm/utils/ExtendedThreadPoolExecutor.java | ajperalt/jstorm | apache-2.0 | 2,939 | 68 | codeparrot/github-code |
be3c71e96852b6c0d9bd513c67e62940c258b173ba2d8b030a97bb0029979cbf | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.security.action.role;
import org.elastic... | Java | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestBuilder.java | gingerwizard/elasticsearch | apache-2.0 | 3,041 | 77 | codeparrot/github-code |
63554f56419717745f2325a7259ecfed4c7551563288a490bbd77aac26fb8b53 | package com.twitter.finagle.memcached.unit.util
import com.twitter.finagle.memcached.util.ChannelBufferUtils
import com.twitter.io.Charsets
import org.jboss.netty.buffer.{ChannelBuffers, ChannelBuffer}
import org.junit.runner.RunWith
import org.scalacheck.Gen
import org.scalatest.FunSuite
import org.scalatest.junit.JU... | Scala | finagle-memcached/src/test/scala/com/twitter/finagle/memcached/unit/util/RichChannelBufferTest.scala | suls/finagle | apache-2.0 | 1,091 | 39 | codeparrot/github-code |
cdd72115a61983649e688a39d4e335b1b83809af24a15ee7980cb93963cbbf18 | /**
* 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 | storm-client/src/jvm/org/apache/storm/container/cgroup/core/MemoryCore.java | kamleshbhatt/storm | apache-2.0 | 8,788 | 189 | codeparrot/github-code |
c3737235132cf0f6fa42cf5956aeb0eb92d11ea6eca229daf9973cd8315d4500 | ##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C specific options here (added to USE_OPT).
ifeq ... | Makefile | quadrotor/ChibiOS_16.1.4/demos/STM32/RT-STM32F100-DISCOVERY/Makefile | raphaelchang/quadthingy-software | apache-2.0 | 6,106 | 217 | codeparrot/github-code |
2faafd63fb4163efe9ef2e39778f3028b15e9632d30a0c96d6f516c24712ffe1 | // 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 "ash/shell/window_watcher.h"
#include "ash/display/display_controller.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_item_delegat... | C++ | ash/shell/window_watcher.cc | guorendong/iridium-browser-ubuntu | bsd-3-clause | 5,123 | 155 | codeparrot/github-code |
15d43ed83b3354170ae51dde9ac08a1c90f59805614b24a69903e0675e38cf14 | class LanguagePack::Helpers::RakeRunner
include LanguagePack::ShellHelpers
class RakeTask
ALLOWED = [:pass, :fail, :no_load, :not_found]
include LanguagePack::ShellHelpers
attr_accessor :output, :time, :task, :status, :task_defined, :rakefile_can_load
alias :rakefile_can_load? :rakefile_can_load
... | Ruby | lib/language_pack/helpers/rake_runner.rb | teodor-pripoae/heroku-buildpack-ruby | mit | 3,336 | 128 | codeparrot/github-code |
26122ed35878b7f2c219525d93b4a755605233ef4a5b8052f61d29a32f5ba32e | <?php
/**
* @package Joomla.Site
* @subpackage com_newsfeeds
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Legacy routing rules class from com_newsfe... | PHP | components/com_newsfeeds/helpers/legacyrouter.php | IOC/joomla3 | gpl-2.0 | 5,857 | 269 | codeparrot/github-code |
153be8253e4b299d51b16ac4c9eadf6206193f2c5203c918754d528e2edd60ca | <?php
/**
* File containing the options object for the eZExtension class
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
* @package kernel
*/
/**
* Class contain... | PHP | kernel/private/options/ezpextensionoptions.php | pbek/ezpublish-legacy | gpl-2.0 | 3,463 | 115 | codeparrot/github-code |
52017158bb8d40cbd32900823fee7883126eb6a34ac819ce5a10a766c1b00e82 | /*
* XBMC Media Center
* Copyright (c) 2002 Frodo
* Portions Copyright (c) by the authors of ffmpeg and xvid
*
* 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 Lice... | C | xbmc/win32/WINFileSMB.h | rsalveti/xbmc-eden | gpl-2.0 | 2,112 | 65 | codeparrot/github-code |
f47a533e2b51ed31cc7ee99f355f5de4325044dc73584b8888a5148f9aa31a51 | /*
* linux/ipc/namespace.c
* Copyright (C) 2006 Pavel Emelyanov <xemul@openvz.org> OpenVZ, SWsoft Inc.
*/
#include <linux/ipc.h>
#include <linux/msg.h>
#include <linux/ipc_namespace.h>
#include <linux/rcupdate.h>
#include <linux/nsproxy.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/mount.h>
#incl... | C | ipc/namespace.c | alexey6600/M8_Sense_7.00 | gpl-2.0 | 3,004 | 155 | codeparrot/github-code |
396b540bdc347e6161604f31aac928e12fd6b1197b3d0d2b307193ecad99f977 |
/*
* Linux device driver for ADMtek ADM8211 (IEEE 802.11b MAC/BBP)
*
* Copyright (c) 2003, Jouni Malinen <j@w1.fi>
* Copyright (c) 2004-2007, Michael Wu <flamingice@sourmilk.net>
* Some parts copyright (c) 2003 by David Young <dyoung@pobox.com>
* and used with permission.
*
* Much thanks to Infineon-ADMtek for... | C | net/compat-wireless/drivers/net/wireless/adm8211.c | freexperia/android_kernel_sony_tegra | gpl-2.0 | 55,896 | 2,028 | codeparrot/github-code |
07dc968f453789101a81f8bf23f54015247eea7df91af9a218fb9eb43084c3c6 | //===-- SBBreakpoint.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | sdk/lldb/unix/include/lldb/API/SBBreakpoint.h | pattisahusiwa/codelite | gpl-2.0 | 3,835 | 176 | codeparrot/github-code |
d952d9a31219c3c09644099e79f6edffe481b0b5bb09243340f51ef36ce566c1 | <?php
/**
* @package Joomla.Plugin
* @subpackage Finder.Contacts
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
JLoader::regis... | PHP | plugins/finder/contacts/contacts.php | IOC/joomla3 | gpl-2.0 | 12,356 | 450 | codeparrot/github-code |
49ad78b6fb90c199f62ee9354c62e8f4486eefd32b6525bafc7709a86dc2eeb1 | /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
/* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */
#ifndef _MLXSW_SPECTRUM_H
#define _MLXSW_SPECTRUM_H
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/rhashtable.h>
#include <linux/bitops.h>
#include <linux/if_bridge.h>... | C | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | c0d3z3r0/linux-rockchip | gpl-2.0 | 36,342 | 1,013 | codeparrot/github-code |
00215e169c7cf1d823eded0a759737774956e798031d2a41b47a0c4a76c67611 | <?php
/**
* The View Tasks handles creating and updating view files.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENS... | PHP | site/lib/Cake/Console/Command/Task/ViewTask.php | giulianob/tribalhero | gpl-3.0 | 14,628 | 478 | codeparrot/github-code |
a4f83a174aa82c76903e21f5837e7166a22260e1fc646980c2df75f0f7648e63 | /**
* Copyright (C) 2011 JTalks.org Team
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library ... | Java | jcommune-view/jcommune-web-controller/src/test/java/org/jtalks/jcommune/web/controller/PollControllerTest.java | illerax/jcommune | lgpl-2.1 | 4,366 | 116 | codeparrot/github-code |
d8841bc286d6c9824b09aae3443eddcb39c9a92e5ef94b61d1ba82a3298f2cf4 | /*
* 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/StringSize.java | ljl1988com/pig | apache-2.0 | 1,992 | 59 | codeparrot/github-code |
e67ce4f45e29ae288caeb715f91532e64add1d016d21bbd73e86ae2986c1c3ff | #include "base/uni_string_dfa.hpp"
#include "base/assert.hpp"
namespace strings
{
// UniStringDFA::Iterator --------------------------------------------------------------------------
UniStringDFA::Iterator::Iterator(UniString const & s) : m_s(s), m_pos(0), m_rejected(false) {}
UniStringDFA::Iterator & UniStringDFA::... | C++ | base/uni_string_dfa.cpp | rokuz/omim | apache-2.0 | 943 | 42 | codeparrot/github-code |
2c4c21c7e8bc6e1e6fab5a2351ee8e129896d95ca76a0496c90c31d53135186c | """Provides a Hue API to control Home Assistant."""
import asyncio
import logging
from aiohttp import web
from homeassistant import core
from homeassistant.const import (
ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON, SERVICE_VOLUME_SET,
SERVICE_OPEN_COVER, SERVICE_CLOSE_COVER, STATE_ON, STATE_OFF,
HT... | Python | homeassistant/components/emulated_hue/hue_api.py | kyvinh/home-assistant | apache-2.0 | 13,038 | 365 | codeparrot/github-code |
4db93ad9cfd5b973c15331bd784bbc2332a3b55c39b24927b860ff541bc1f020 | /*
* 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/test/java/org/elasticsearch/index/analysis/AnalysisTests.java | GlenRSmith/elasticsearch | apache-2.0 | 4,660 | 107 | codeparrot/github-code |
27009de80d12de339bac106ac109d32a9fc12a574e992a0ace3eebeeebea1046 | /**
* 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 | components/camel-spring-integration/src/test/java/org/apache/camel/component/spring/integration/SpringIntegrationMessageTest.java | onders86/camel | apache-2.0 | 1,864 | 50 | codeparrot/github-code |
7cf8fb7c28f3a440f3338cc230feed95f25b75cc8c7abe5c7a893669bab3dab4 | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkVarAlloc_DEFINED
#define SkVarAlloc_DEFINED
#include "SkTypes.h"
class SkVarAlloc : SkNoncopyable {
public:
// Smallest block we'll allocate is 2**N bytes.
... | C | src/core/SkVarAlloc.h | tmpvar/skia.cc | apache-2.0 | 1,351 | 56 | codeparrot/github-code |
f08c32b03e52cb9a860940df091bbd2ab12f49ddc3f2b06c01871f5be5b06690 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... | Java | platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/manage/ModuleDataService.java | hurricup/intellij-community | apache-2.0 | 3,119 | 76 | codeparrot/github-code |
8ffaaa97069591717ec8323992e5d7546f43485064961d5caa4f3d6c6a29ba4c | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | Java | client/sniffer/src/test/java/org/elasticsearch/client/sniff/SnifferTests.java | GlenRSmith/elasticsearch | apache-2.0 | 31,546 | 654 | codeparrot/github-code |
5e1b4364cee568f3890a02f1d567855f8ded706237bae83e1962fd2b156c1e5d | module Sidetiq
module Lock
class Redis
include Logging
attr_reader :key, :timeout
def self.all
Sidekiq.redis do |redis|
redis.keys("sidetiq:*:lock").map do |key|
new(key)
end
end
end
def initialize(key, timeout = Sidetiq.config.lock_... | Ruby | lib/sidetiq/lock/redis.rb | endofunky/sidetiq | bsd-3-clause | 2,441 | 116 | codeparrot/github-code |
de5f3feb2a6669daba4d3334b10cec914ffaa3af537812ccd564615bd18ba52a | /* linux/arch/arm/mach-s5pv210/pm.c
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* S5PV210 - Power Management support
*
* Based on arch/arm/mach-s3c2410/pm.c
* Copyright (c) 2006 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* This program is free software; you can r... | C | target/linux/s5pv210/files-2.6.35/arch/arm/mach-s5pv210/pm.c | ghostry/openwrt-ghostry | gpl-2.0 | 4,714 | 196 | codeparrot/github-code |
85a521a8ba7eef5ab6cd1d6f67dfe2becd4b3dcaae64aaccf1e9dbe41199a4cd | import ghostPaths from 'ghost/utils/ghost-paths';
var ApplicationAdapter = DS.RESTAdapter.extend({
host: window.location.origin,
namespace: ghostPaths().apiRoot.slice(1),
findQuery: function (store, type, query) {
var id;
if (query.id) {
id = query.id;
delete query... | JavaScript | core/client/adapters/application.js | androidesk/adesk-blog | gpl-2.0 | 1,251 | 45 | codeparrot/github-code |
36557d2f13eb80da424774dff1d1ad17c9b48570dd17e7c9026bbc7d4205eab9 | /*
* Copyright (c) 2014 MediaTek Inc.
* Author: Flora Fu, MediaTek
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... | C | drivers/mfd/mt6323-core.c | FeyoMx/MDSdevKernel_a7010 | gpl-2.0 | 2,230 | 90 | codeparrot/github-code |
3ab85bffb5b77373c0fdb4467c63aad9bd8e8559cce095d3b7d6491a02f168f7 | // license:BSD-3-Clause
// copyright-holders:Nigel Barnes
/**********************************************************************
Ralph Allen Colour VDU Card
http://www.microtan.ukpc.net/6809/Video.pdf
TODO:
- use MC6845 screen_update to implement cursor, requires interlace
- verify whether INHRA... | C++ | src/devices/bus/tanbus/ravdu.cpp | johnparker007/mame | gpl-2.0 | 5,151 | 200 | codeparrot/github-code |
8fd094baa8f085f202536e391ee9834022236e93a5d7e76ff3f35d94e4c9fdb8 | #### PATTERN | COMMONSENSE #########################################################################
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips.ua.ac.be/pages/pattern
####################################... | Python | third_party/pattern/pattern/graph/commonsense.py | krishna11888/ai | gpl-2.0 | 11,504 | 282 | codeparrot/github-code |
96dcf6e4157c5c959a2fca799eab8c0614f17b29fbd5846a716efa97f0e71ef2 | // SPDX-License-Identifier: GPL-2.0
/*
* fs/f2fs/checkpoint.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#include <linux/fs.h>
#include <linux/bio.h>
#include <linux/mpage.h>
#include <linux/writeback.h>
#include <linux/blkdev.h>
#include <linux/f2fs_fs.h>
#includ... | C | fs/f2fs/checkpoint.c | koct9i/linux | gpl-2.0 | 42,135 | 1,690 | codeparrot/github-code |
77955001c8503aed62e9830991d677a282fb30f8305d1412c37713a1db327c94 | /*
* Copyright (c) 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 Softwa... | Java | test/jdk/java/awt/ScrollPane/bug8077409Test.java | md-5/jdk10 | gpl-2.0 | 3,907 | 118 | codeparrot/github-code |
ebac100601db47466ff9eceb6207bdbd865e9c57491066efc9c5677e03c2c751 | /* opPanel.h
* PCSX2 Dev Team
* Copyright (C) 2015
*
* 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 | plugins/onepad_legacy/Linux/opPanel.h | ramapcsx2/pcsx2 | gpl-2.0 | 1,874 | 78 | codeparrot/github-code |
4325aa116ad2c28a388d85deb9efe6d46c3619c2834882853474a5db7676da39 | #
# Copyright (c) 1996, 2011, 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 Softwar... | Makefile | src/jdk/make/sun/nio/cs/Makefile | ohpauleez/soymacchiato | gpl-2.0 | 4,500 | 140 | codeparrot/github-code |
e52264732a5ad6651080e354d5c9f85657bf38d59fa7c1b9450c39bec445582a | /*
* Copyright (c) 2003, 2007-14 Matteo Frigo
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* 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 ... | C | tone-analysis/fftw-3.3.6-pl1/kernel/debug.c | Shangxz/HackIllinois2017 | gpl-3.0 | 1,437 | 54 | codeparrot/github-code |
0aa596eeda2ddcf9fb96124bb93265787ac6782411a8373af26586a872ddb8ff | package com.google.checkstyle.test.chapter4formatting.rule413emptyblocks;
import java.io.IOException;
public class InputEmptyCatchBlockViolationsByVariableName
{
private void foo() {
try {
throw new RuntimeException();
} catch (Exception expected) //ok
{
}
... | Java | src/it/resources/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/InputEmptyCatchBlockViolationsByVariableName.java | baratali/checkstyle | lgpl-2.1 | 1,423 | 64 | codeparrot/github-code |
f76ca9bafdc1aa67c31aa6e2393dd58fb5da7942868e05c837b751cbd23ed5bc | /* sse2_math.h -*- C++ -*-
Jeremy Barnes, 23 January 2010
Copyright (c) 2010 Jeremy Barnes. All rights reserved.
Basic math functions for SSE2.
*/
#ifndef __jml__arch__sse2_math_h__
#define __jml__arch__sse2_math_h__
#include "sse2.h"
#include "sse2_misc.... | C | jml/arch/sse2_math.h | WitchKing-Helkar/rtbkit | apache-2.0 | 4,571 | 167 | codeparrot/github-code |
d1b5a2ec1b53a8faac981a6700bba7c26f5e4e80a901b93d95394bf74b3fe297 | /**
* 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/store/TimedRunnable.java | bitblender/drill | apache-2.0 | 7,885 | 211 | codeparrot/github-code |
f7b4f42ca4782eee0ac7c6f94f5131e2e1b7332c137c47366780ebcc2cbe617a | /*
* Copyright 2011 The Apache Software Foundation
*
* 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 ... | Java | target/hbase-0.94.9/hbase-0.94.9/src/test/java/org/apache/hadoop/hbase/coprocessor/TestWALObserver.java | zqxjjj/NobidaBase | apache-2.0 | 15,193 | 415 | codeparrot/github-code |
fb596b00ecd04be08e96626b1507b2cea1c494d8702a1dbb096ae5529ac2b26f | //===--- llvm/ADT/SparseMultiSet.h - Sparse multiset ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | softboundcets-llvm-clang34/include/llvm/ADT/SparseMultiSet.h | santoshn/softboundcets-34 | bsd-3-clause | 18,406 | 527 | codeparrot/github-code |
a439e39988f818e7a24d4b70c130d62410d235c0810ebea919a88135495ae8e5 | #!/usr/bin/python
# Copyright (c) 2016, Pierre Jodouin <pjodouin@virtualcomputing.solutions>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
... | Python | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/lambda_policy.py | e-gob/plataforma-kioscos-autoatencion | bsd-3-clause | 13,776 | 431 | codeparrot/github-code |
93ec0f95171004299fd8c92605f2be5e69b22bf4fbc5fa03842eb775bbe84dd5 | using System;
using System.Linq;
using Orchard.Commands;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Aspects;
using Orchard.Core.Common.Models;
using Orchard.Core.Navigation.Models;
using Orchard.Core.Navigation.Services;
using Orchard.Security;
using Orchard.Settings;
using Orchard.Widgets.Models... | C# | src/Orchard.Web/Modules/Orchard.Widgets/Commands/WidgetCommands.cs | leonhaft/LearnOrchard | bsd-3-clause | 5,063 | 137 | codeparrot/github-code |
1256ef0fd512d4fb613255d80a197dd20784f6d94e4eb6f8bfe0f7b43a2af31f | <TITLE>extbutton - Extends the behavior of the Tk button</TITLE>
<H1>extbutton - Extends the behavior of the Tk button</H1>
</pre><H2>SYNOPSIS</H2>
<B>extbutton <I>pathName </I>?<I>options</I>?
</pre><H2>INHERITANCE</H2>
<I>itk::Widget <- extbutton</I>
</pre><H2>STANDARD OPTIONS</H2>
<P><I>
<table cellpadding=5>
<t... | HTML | zap-2.3.0-windows/papilio-zap-ide/hardware/tools/avr/share/iwidgets4.0.1/demos/html/extbutton.n.html | chcbaram/FPGA | mit | 4,539 | 161 | codeparrot/github-code |
595e1be37a62934552a615c772dde4fa4843dd97057fe35ad0e81dbafba90218 | /*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
w... | C | shared/assimp/tools/assimp_view/LogWindow.h | MadManRises/Madgine | mit | 4,060 | 133 | codeparrot/github-code |
ce842a3234992ed9f36df9050a4f89135dbe68fde891f17ae72a6293bd220fdf | /*
FUSE: Filesystem in Userspace
Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU GPL.
See the file COPYING.
*/
#include "fuse_i.h"
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#incl... | C | fs/fuse/file.c | redpig/linux | gpl-2.0 | 52,024 | 2,130 | codeparrot/github-code |
393a1aa627973787ca946def940b3fcec4aca68b8d17dcb578f5197b8ff8a0a5 | /*
* ADXL345/346 Three-Axis Digital Accelerometers
*
* Enter bugs at http://blackfin.uclinux.org/
*
* Copyright (C) 2009 Michael Hennerich, Analog Devices Inc.
* Licensed under the GPL-2 or later.
*
* History:
* KOM: 06-10-2012 GPS irq driver was updated to i2c-client driver.
*/
#include <linux/device.h>
#in... | C | drivers/misc/brcm_gps_irq.c | regalstreak/S7262-Kernel | gpl-2.0 | 10,460 | 434 | codeparrot/github-code |
73fce5be294fd049b41d8f67a810e02ecb9e8403c9b0f34778512c298912a9ec | /*
* Page cache for QEMU
* The cache is base on a hash of the page address
*
* Copyright 2012 Red Hat, Inc. and/or its affiliates
*
* Authors:
* Orit Wasserman <owasserm@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level director... | C | tools/qemu-xen/page_cache.c | JavaGuy147/RT-Xen-Scheduler | gpl-2.0 | 5,655 | 237 | codeparrot/github-code |
218e3dcf57261c5f6d7c4eb5ca1986344b9e2970d09d38be8553b10ab7452db8 | /***************************************************************************
qgsalgorithmzonalhistogram.cpp
---------------------
begin : May, 2018
copyright : (C) 2018 by Mathieu Pellerin
email : nirvn dot asia at gm... | C++ | src/analysis/processing/qgsalgorithmzonalhistogram.cpp | mhugo/QGIS | gpl-2.0 | 8,244 | 209 | codeparrot/github-code |
5f190020ec07900c6b6714b64a1f6caaf449e9227bf3e5d71a297d5c10aa91d0 | // license:BSD-3-Clause
// copyright-holders:Mike Coates
/*
* Signetics 2650 CPU Games
*
* Zaccaria - The Invaders
* Sidam - Super Invader Attack
* Zaccaria - Dodgem
*
* mike@the-coates.com
*
*
* TODO: discrete sound
*
*/
#include "emu.h"
#include "includes/zac2650.h"
#include "cpu/s2650/s2650.h"
#incl... | C++ | src/mame/drivers/zac2650.cpp | johnparker007/mame | gpl-2.0 | 11,748 | 313 | codeparrot/github-code |
6fd8db44842f5f916f3ce4e64427ee6dd39269469a56beedd39d9e90fe54ff61 | class DirectoryItemsController < ApplicationController
PAGE_SIZE = 50
def index
raise Discourse::InvalidAccess.new(:enable_user_directory) unless SiteSetting.enable_user_directory?
period = params.require(:period)
period_type = DirectoryItem.period_types[period.to_sym]
raise Discourse::InvalidAcce... | Ruby | app/controllers/directory_items_controller.rb | vibol/discourse | gpl-2.0 | 2,386 | 71 | codeparrot/github-code |
f93800f9db34d7d3e77b497cb9c1cf3b97751fe5d197189f5c82a5c6d330af63 | /* Copyright 2015 The TensorFlow Authors. 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 a... | C | tensorflow/core/kernels/cwise_ops_gpu_gradients.cu.h | nburn42/tensorflow | apache-2.0 | 2,642 | 72 | codeparrot/github-code |
d2f91dacdc14bce4af596630e0974f1a27f37cc046241d79623cb8ecb363e47f | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | Rust | src/test/run-pass/else-if.rs | emk/rust | apache-2.0 | 1,043 | 31 | codeparrot/github-code |
7cf72b682df1677da8b949ce49bac5430c396d963b5be90a183501c2423c2f84 | //===-- ReplacementsYaml.h -- Serialiazation for Replacements ---*- C++ -*-===//
//
// 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 | clang/include/clang/Tooling/ReplacementsYaml.h | google/llvm-propeller | apache-2.0 | 2,574 | 74 | codeparrot/github-code |
e3daf4963ad1cf1462e5b7080df500caf6aaa6ca5ed104169553a76646ede6a5 | /****************************************************************************
*
* Copyright 2016 Samsung Electronics 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... | C | external/websocket/wslay/wslay_event.c | an4967/TizenRT | apache-2.0 | 31,235 | 974 | codeparrot/github-code |
1c5462e4ba9018450aa389afd93d979674a0f265acae5e12a1778099dc9928cb | <?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
/**
* @class messageView
* @author NAVER (developers@xpressengine.com)
* @brief view class of the message module
*/
class messageView extends message
{
/**
* @brief Initialization
*/
function init()
{
}
/**
* @brief Display messages
*/
funct... | PHP | xe4kaist/modules/message/message.view.php | talkwithraon/XE4KAIST | apache-2.0 | 1,722 | 70 | codeparrot/github-code |
0d8e06d107a474625a3632b11c9c39c334a5b186a496c309537551ad17d66524 | // Copyright (c) 2013 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
#define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
#i... | C | third_party/leveldatabase/env_chromium.h | androidarmv6/android_external_chromium_org | bsd-3-clause | 8,198 | 245 | codeparrot/github-code |
acb6183f20e63018743aac27e13dc97876b0de794e55b6155e43627d5fd78daa | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GIN_TEST_FILE_RUNNER_H_
#define GIN_TEST_FILE_RUNNER_H_
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "gin/modul... | C | gin/test/file_runner.h | Gateworks/platform-external-chromium_org | bsd-3-clause | 1,101 | 37 | codeparrot/github-code |
84d2af5ae6d3f1561e67b17031bd0490fb2cc9ab1a17777bb880d1652cee61ce | /* vi: set sw=4 ts=4: */
/*
* public domain -- Dave 'Kill a Cop' Cinege <dcinege@psychosis.com>
*
* makedevs
* Make ranges of device files quickly.
* known bugs: can't deal with alpha ranges
*/
//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF
//usage:#define makedevs_trivial_usage
//usage: "NAME TYPE MAJOR MINOR F... | C | user/busybox/miscutils/makedevs.c | Bytewerk/uClinux-ipcam | gpl-2.0 | 8,007 | 270 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.