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 |
|---|---|---|---|---|---|---|---|---|
74a2498d35bef93bbbce61c352652f3f3d36452113b1b451db2dd0551c9ea1e5 | /*
* Copyright 2008 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 | src/com/google/javascript/jscomp/DiagnosticGroupWarningsGuard.java | johan/closure-compiler | apache-2.0 | 1,568 | 59 | codeparrot/github-code |
cc5471d5b4d91ea23303565ffa95a57eb376f861da28fc5665081fcc58b6f53b | //===-- CoreFoundation/URL/CFURLSessionInterface.h - Very brief description -----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// S... | C | CoreFoundation/URL.subproj/CFURLSessionInterface.h | johnno1962b/swift-corelibs-foundation | apache-2.0 | 47,595 | 610 | codeparrot/github-code |
d1055a654364b826549cfc2781fb9d5c83035e7821bebbb511482a61ace825db | /*
* 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 ... | Scala | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala | akopich/spark | apache-2.0 | 4,467 | 135 | codeparrot/github-code |
dc72e7ced0e8a8e3b9c1ab28db51d0e594e724062a3e0a1d467cc07958bb346f | /**
* Copyright 2010-2015 the original author or 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
*
* Unle... | Java | src/main/java/org/mybatis/spring/SqlSessionTemplate.java | jiangchaoting/spring | apache-2.0 | 13,876 | 462 | codeparrot/github-code |
4b5e89fe91b62391eb5d6ec8847640df19a99b367044b12aec9531a26e18ce7f | #!/usr/bin/env python3
class UniqueIndexViolationCheck:
unique_indexes_query = """
select table_oid, index_name, table_name, array_agg(attname) as column_names
from pg_attribute, (
select pg_index.indrelid as table_oid, index_class.relname as index_name, table_class.relname as table_nam... | Python | gpMgmt/bin/gpcheckcat_modules/unique_index_violation_check.py | 50wu/gpdb | apache-2.0 | 2,547 | 58 | codeparrot/github-code |
8d3f98db13ba091581c16a1632240849844180955c805e112b94997d76199ff7 | /*
* Copyright (c) 2010, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.test.jdbc4.jdbc41;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.postgresql.test.TestUtil;
import org.junit.After;... | Java | pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/SchemaTest.java | panchenko/pgjdbc | bsd-2-clause | 7,435 | 230 | codeparrot/github-code |
a9e1a4d5174058f88fc1d95c073906d07580f46a71d304681b4e552b7524aa92 | /*
* Copyright 2010-2016 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
#ifndef BX_FLOAT4X4_H_HEADER_GUARD
#define BX_FLOAT4X4_H_HEADER_GUARD
#include "simd_t.h"
namespace bx
{
BX_ALIGN_DECL_16(struct) float4x4_t
{
simd128_t col[4];
};
BX_SIMD_FOR... | C | include/bx/float4x4_t.h | dariomanesku/bx | bsd-2-clause | 5,418 | 159 | codeparrot/github-code |
bad4495995943ab82de8f315763b9645bbc7478bc408ccb3a680f176f364ae6b | package org.atmosphere.cpr
import java.net.URI
import org.scalatra.atmosphere.{ RedisScalatraBroadcaster, ScalatraBroadcaster }
trait BroadcasterConf {
def broadcasterClass: Class[_ <: ScalatraBroadcaster]
def uri: URI
def extraSetup: Broadcaster => Unit // To perform optional plugin-specific Broadcaster setup... | Scala | atmosphere/src/main/scala/org/atmosphere/cpr/broadcaster_configs.scala | dozed/scalatra | bsd-2-clause | 1,673 | 39 | codeparrot/github-code |
713771f39828d73e578727adc1284a0387af94ea840203e64c8f1f367c677b6e | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2013, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... | C | src/seqan/core/include/seqan/find/find_ahocorasick.h | charite/Q | bsd-2-clause | 11,338 | 319 | codeparrot/github-code |
2cfbd4ff9196ef4c5d4566c5d1a663d19b9791c2479363d9e09ddb9065d73490 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'nn'
local TemporalConvolutionFB, parent =
torch.class('nn.TemporalConvolutionFB', 'nn.Module')
function TemporalConvolutionFB:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFra... | Lua | fbcunn/TemporalConvolutionFB.lua | u20024804/fbcunn | bsd-3-clause | 1,799 | 66 | codeparrot/github-code |
4720f42d6344d9a679a750697fc427dda443b2ae004488e8650ee72e6e1f1399 | // Copyright 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 "components/permissions/permission_request_id.h"
#include <inttypes.h>
#include <stdint.h>
#include "base/strings/stringprintf.h"
#include "con... | C++ | components/permissions/permission_request_id.cc | scheib/chromium | bsd-3-clause | 1,886 | 52 | codeparrot/github-code |
b24d0db6937ed2d30d09e1a9b326f4367cf0f471ca29f59af866d272824878ca | #include <iostream>
#include <seqan/file.h>
#include <seqan/sequence.h>
#include <seqan/score.h>
using namespace seqan;
template <typename TText, typename TPattern>
int computeLocalScore(TText const & subText, TPattern const & pattern)
{
int localScore = 0;
for (unsigned i = 0; i < length(pattern); ++i)
... | C++ | demos/tutorial/a_first_example/solution_4.cpp | bestrauc/seqan | bsd-3-clause | 1,153 | 46 | codeparrot/github-code |
1b9d1646574fcf2611e4101a4a3f9d31eb3cffc80d444835b259ba116c2478c1 | // 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/browser/extensions/convert_web_app.h"
#include <cmath>
#include <limits>
#include <string>
#include <vector>
#include "base/base64.... | C++ | chrome/browser/extensions/convert_web_app.cc | robclark/chromium | bsd-3-clause | 6,936 | 193 | codeparrot/github-code |
7cdc022f9422829e4836b192a140b1e3ee2b74b5d9c4f96a5e2a6d5568dd77d9 | // Copyright 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 "chrome/browser/ash/file_system_provider/operations/execute_action.h"
#include <algorithm>
#include <string>
#include "chrome/common/extensions... | C++ | chromium/chrome/browser/ash/file_system_provider/operations/execute_action.cc | ric2b/Vivaldi-browser | bsd-3-clause | 2,321 | 66 | codeparrot/github-code |
353fad76331406e856c479d09c9b7cd0d42b0af18efc07006f67c666b8413d0b | // Copyright 2019 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.
package org.chromium.chrome.browser.browserservices.ui.splashscreen.trustedwebactivity;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
... | Java | chromium/chrome/android/java/src/org/chromium/chrome/browser/browserservices/ui/splashscreen/trustedwebactivity/TwaSplashController.java | ric2b/Vivaldi-browser | bsd-3-clause | 8,032 | 177 | codeparrot/github-code |
eddd4aebfe8820833ed32136641c483130a9f116cd81d79495ae5d993f581dc6 | using System;
using System.Collections.Generic;
namespace SharpCompress
{
internal class LazyReadOnlyCollection<T> : ICollection<T>
{
private readonly List<T> backing = new List<T>();
private readonly IEnumerator<T> source;
private bool fullyLoaded;
public LazyReadO... | C# | SharpCompress/LazyReadOnlyCollection.cs | catester/sharpcompress | mit | 3,929 | 159 | codeparrot/github-code |
875cf3bd8122bee53a8d5829103484658361094402919dcb192208a81f32a36a | <?php
namespace Concrete\Controller\Element\Express\Search;
use Concrete\Core\Controller\ElementController;
use Concrete\Core\Entity\Express\Entity;
use Concrete\Core\Entity\Search\Query;
use Concrete\Core\File\Search\SearchProvider;
use Concrete\Core\Foundation\Serializer\JsonSerializer;
class Search extends Elemen... | PHP | concrete/controllers/element/express/search/search.php | haeflimi/concrete5 | mit | 1,932 | 80 | codeparrot/github-code |
630e163ab0c5bf4befa5cc6ba072660412c77c2c7a170b3082d725b5d85929ac | /*
Copyright (c) 2016. The YARA Authors. 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 must retain the above copyright notice, this
list of conditions and the ... | C | xLCB/pluginsdk/yara/yara/threading.h | ThunderCls/xLCB | mit | 2,317 | 66 | codeparrot/github-code |
de1e907706215db049451d3268b85b8c2477ab3f9d4f653162eaa96abfbfc38c | /**
* @file
* lwIP network interface abstraction
*
* @defgroup netif Network interface (NETIF)
* @ingroup callbackstyle_api
*
* @defgroup netif_ip4 IPv4 address handling
* @ingroup netif
*
* @defgroup netif_ip6 IPv6 address handling
* @ingroup netif
*
* @defgroup netif_cd Client data handling
* Store ... | C | rtt-2.1/components/net/lwip-2.0.0/src/core/netif.c | chinesebear/rtt-net | mit | 37,448 | 1,264 | codeparrot/github-code |
6a0523d84bb1c5d174db45f5355d9b28831b35e6fbd7a57659f475b371b21a9e | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2014 Paul Sokolovsky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... | C | micropython/extmod/moduhashlib.c | ignorabimus/micropython-c-api | mit | 5,524 | 160 | codeparrot/github-code |
1d3b9ef066eefd123e7793ef34b07014917521c07a0bca4cc1a9ad16d5115161 | package net
import (
"io"
)
const (
bufferSize = 4 * 1024
)
// ReaderToChan dumps all content from a given reader to a chan by constantly reading it until EOF.
func ReaderToChan(stream chan<- []byte, reader io.Reader) error {
for {
buffer := make([]byte, bufferSize)
nBytes, err := reader.Read(buffer)
if nBy... | GO | common/net/transport.go | larryeee/v2ray-core | mit | 677 | 35 | codeparrot/github-code |
1d4be0cf7b884d2128708231f1f0b592a28731a45b0dcc23c6535989256d83ad |
using System;
using System.Collections.Generic;
namespace Orleans.Providers.Streams.Common
{
/// <summary>
/// Object pool that roughly ensures only a specified number of the objects are allowed to be allocated.
/// When more objects are allocated then is specified, previously allocated objects will be ... | C# | src/OrleansProviders/Streams/Common/PooledCache/FixedSizeObjectPool.cs | shlomiw/orleans | mit | 2,934 | 83 | codeparrot/github-code |
240ec8317a9b9cd7ad0e4d706b6136f2505d6231986dd5e0dd1a8ae139ec7252 | package org.jabref.benchmarks;
import java.io.IOException;
import java.io.StringReader;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import org.jabref.Globals;
import org.jabref.logic.exporter.BibtexDatabaseWriter;
import org.jabref.logic.exporter.SavePreferences;
import org.jab... | Java | src/jmh/java/org/jabref/benchmarks/Benchmarks.java | shitikanth/jabref | mit | 5,418 | 136 | codeparrot/github-code |
b5c68249f3e51c38c1d9eccc0acf0179eab2ef234bbbdfbb15417e248d875240 | // #docplaster
// #docregion
import { Component } from '@angular/core';
import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
@Component({
selector: 'app-bypass-security',
templateUrl: './bypass-security.component.html',
})
export class BypassSecurityComponent {
dangerousUrl: string... | TypeScript | aio/content/examples/security/src/app/bypass-security.component.ts | ocombe/angular | mit | 1,340 | 39 | codeparrot/github-code |
bc1f34808a5048f9786a250d96c15a48e570ff123df2660bad7b7cbf1e28ea0c | % ----------------------------------------------------------------------
% System: ECLiPSe Constraint Logic Programming System
% Version: $Id: heaps.pl,v 1.1 2008/06/30 17:43:46 jschimpf Exp $
%
% Copyright: This library has been adapted from code from the Edinburgh
% DEC-10 Prolog Library, whose copyright notice says... | Perl | usr/skb/eclipse_kernel/lib/heaps.pl | linusyang/barrelfish | mit | 9,599 | 259 | codeparrot/github-code |
a4882c29e2c5f600dc56555eb3692c4efa3d40846612cd68b80d9d13f0a8ea2b | /**
* Copyright (c) 2014,2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 whic... | Java | bundles/core/org.eclipse.smarthome.core/src/main/java/org/eclipse/smarthome/core/library/items/DimmerItem.java | Snickermicker/smarthome | epl-1.0 | 3,066 | 92 | codeparrot/github-code |
a67a91033f92c87f975a2d48964b3b23eacb849e834d18507a27a9f69f60c64c | /*
* ath79-mbox.c -- ALSA MBOX DMA management functions
*
* Copyright (c) 2013 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... | C | target/linux/ar71xx/files/sound/soc/ath79/ath79-mbox.c | male-puppies/opwrt12 | gpl-2.0 | 7,215 | 247 | codeparrot/github-code |
d4f4540d35e21557068a767842c7eafa37bf4b5d672de61a75aaa64427858f12 | /****************************************************************************************
* Copyright (c) 2007 Nikolaj Hald Nielsen <nhn@kde.org> *
* *
* This program is free software; you can redistri... | C++ | src/core/capabilities/ActionsCapability.cpp | orangejulius/amarok | gpl-2.0 | 1,889 | 44 | codeparrot/github-code |
44398f0793b35da38fd47b8248c148547e2c31e96db452f4584ec89822ad4922 | // SPDX-License-Identifier: GPL-2.0
/*
* Functions for working with device tree overlays
*
* Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
* Copyright (C) 2012 Texas Instruments Inc.
*/
#define pr_fmt(fmt) "OF: overlay: " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <li... | C | drivers/of/overlay.c | Pingmin/linux | gpl-2.0 | 34,958 | 1,287 | codeparrot/github-code |
3ac46064701499d303e75e431be78c904c209b92adee0bcb29cc0c09c9893b5a | <?php
// $Header: /cvsroot/html2ps/box.text.php,v 1.56 2007/05/07 12:15:53 Konstantin Exp $
require_once(HTML2PS_DIR.'box.inline.simple.php');
// TODO: from my POV, it wll be better to pass the font- or CSS-controlling object to the constructor
// instead of using globally visible functions in 'show'.
define('SYMBOL... | PHP | simpleinvoices/library/pdf/box.text.php | maent45/PersianFeast | gpl-2.0 | 20,574 | 662 | codeparrot/github-code |
a5993249c9f78991541a36e292a562ff3d97e7ad98d395c64a9f4d733f080085 | /*
* Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver
*
* Author: Timur Tabi <timur@freescale.com>
*
* Copyright 2007-2015 Freescale Semiconductor, Inc.
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of a... | C | sound/soc/fsl/fsl_ssi.c | FEDEVEL/openrex-linux-3.14 | gpl-2.0 | 46,256 | 1,637 | codeparrot/github-code |
b8d8858a078bd99a3f524ee275cd5a6e6fa1cdd93763457f2e67884223cca5e7 | /*
* \brief Regulator-session component
* \author Stefan Kalkowski
* \date 2013-06-13
*/
/*
* Copyright (C) 2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__REGULATOR__COMPONENT_... | C | repos/os/include/regulator/component.h | waylon531/genode | gpl-2.0 | 2,773 | 112 | codeparrot/github-code |
d5e9b2ee5693f256a1690f98cd56e3a58134819b1ae437571a4a3099ad209635 | /*
Copyright (C) 2009
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 ... | C# | tags/REL_5_3_1/WikiFunctions/Article/Comparers/ArticleComparerFactory.cs | svn2github/autowikibrowser | gpl-2.0 | 3,928 | 95 | codeparrot/github-code |
c3a0771829a2da8d4534c1a27d44e557aab38367b5593e3b9e71b651c6756b42 | /* testlib.c for c++ - test expectlib */
#include <stdio.h>
#include "expect.h"
extern "C" {
extern int write(...);
extern int strlen(...);
}
void
timedout()
{
fprintf(stderr,"timed out\n");
exit(-1);
}
char move[100];
void
read_first_move(int fd)
{
if (EXP_TIMEOUT == exp_expectl(fd,exp_glob,"first\r\n1.*\r\n... | C | user/expect/expect-5.43.0/example/chesslib++.c | atmark-techno/atmark-dist | gpl-2.0 | 1,443 | 88 | codeparrot/github-code |
de25b9005858aafa5952b2cbce72521ae08126b6012a548eeed2fb466da6581f | <?php
/**
* PEAR_Command_Common base class
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are un... | PHP | lib/pear/PEAR/Command/Common.php | soeffing/openx_test | gpl-2.0 | 8,908 | 292 | codeparrot/github-code |
ceb71123141356f6c0b7a7bb161445346ec58d1f316b8fd58d9c7da06d72e4ef | /*
* refclock_ulink - clock driver for Ultralink WWVB receiver
*/
/***********************************************************************
* *
* Copyright (c) David L. Mills 1992-1998 *
* ... | C | user/ntp/ntpd/refclock_ulink.c | rhuitl/uClinux | gpl-2.0 | 17,372 | 590 | codeparrot/github-code |
32cccc9c0d4987f312f9599bfd178044d1acdb07bb2147d8be2df8e812712530 | // SPDX-License-Identifier: GPL-2.0
#ifndef SMRTK2SSRFC_WINDOW_H
#define SMRTK2SSRFC_WINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <QFileInfo>
extern "C" void smartrak_import(const char *file, struct dive_table *divetable);
namespace Ui {
class Smrtk2ssrfcWindow;
}
class Smrtk2ssrfcWindow : public... | C | smtk-import/smrtk2ssrfc_window.h | mturkia/subsurface | gpl-2.0 | 809 | 40 | codeparrot/github-code |
3b97716deb14f0e156c2b7f3967d0fd5a74c661ac8ab9ac593247c3d2d120cf2 | package org.zarroboogs.weibo.hot.bean.hotweibo;
import org.json.*;
public class TopicStruct {
private String topicTitle;
private String topicUrl;
public TopicStruct () {
}
public TopicStruct (JSONObject json) {
this.topicTitle = json.optString("topic_title");
... | Java | app/src/main/java/org/zarroboogs/weibo/hot/bean/hotweibo/TopicStruct.java | JohnTsaiAndroid/iBeebo | gpl-3.0 | 718 | 42 | codeparrot/github-code |
318440a6b9c5ccfc062f6615af80cd950d8d68ed553265e1fd48bcd20ad60c7a | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free so... | C | neo/swf/SWF_SpriteInstance.h | rfare/Skyline | gpl-3.0 | 9,360 | 288 | codeparrot/github-code |
f09d638f7fe86d0c86c85a2fcd2f1f0d376f0c87c990c6db1c378a876ba735bb | /*
* Driver O/S-independent utility routines
*
* $Copyright Open Broadcom Corporation$
* $Id: bcmutils.c 496061 2014-08-11 06:14:48Z $
*/
#include <bcm_cfg.h>
#include <typedefs.h>
#include <bcmdefs.h>
#include <stdarg.h>
#ifdef BCMDRIVER
#include <osl.h>
#include <bcmutils.h>
#else /* !BCMDRIVER */
#include <... | C | kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.c | s20121035/rk3288_android5.1_repo | gpl-3.0 | 77,626 | 3,070 | codeparrot/github-code |
fae24ec3d9caffd49b8f17adf1904a6d7917189b07acad9a3f66513c3e8828d4 | /*
Copyright (C) 2010,2012,2016 The ESPResSo project
Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
Max-Planck-Institute for Polymer Research, Theory Group
This file is part of ESPResSo.
ESPResSo is free software: you can redistribute it and/or modify
it under the terms of the GNU Gener... | C++ | src/core/lees_edwards.hpp | Smiljanic/espresso | gpl-3.0 | 1,440 | 41 | codeparrot/github-code |
9b0a178597fc6924435e7e6e72a80d5cd3cfff6855985d48b1d9c973f8f41be2 | <?php
/**
* @file
* @ingroup SpecialPage
*/
/**
* @todo document
* @ingroup SpecialPage
*/
class ProtectedPagesForm {
protected $IdLevel = 'level';
protected $IdType = 'type';
public function showList( $msg = '' ) {
global $wgOut, $wgRequest;
if( $msg != "" ) {
$wgOut->setSubtitle( $msg );
}
/... | PHP | tools/mediawiki/includes/specials/SpecialProtectedpages.php | hendrysuwanda/101dev | gpl-3.0 | 9,777 | 345 | codeparrot/github-code |
df3641c08271e81916951e91a9931497e83cf938106acda00f083d486634be87 | //===- BitCodes.h - Enum values for the bitcode format ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | usr/lib/llvm-3.0/include/llvm/Bitcode/BitCodes.h | reinhrst/panda | gpl-3.0 | 6,500 | 186 | codeparrot/github-code |
1435c22f899b419b825b09ee9800c5078f675d38968019dd85618574a3c4b233 | -----------------------------------
--
-- Zone: RuAun_Gardens (130)
--
-----------------------------------
local ID = require("scripts/zones/RuAun_Gardens/IDs");
require("scripts/globals/missions");
require("scripts/globals/conquest");
require("scripts/globals/treasure")
require("scripts/globals/status");
require("scri... | Lua | scripts/zones/RuAun_Gardens/Zone.lua | dacrybabysuck/darkstar | gpl-3.0 | 2,491 | 85 | codeparrot/github-code |
886951b9c1c5eda4217fc7efb5bc4896bc5ff4f5115e8ad7f484266d6a99a651 |
declare module Virtex {
interface IOptions {
ambientLightColor: number;
cameraZ: number;
directionalLight1Color: number;
directionalLight1Intensity: number;
directionalLight2Color: number;
directionalLight2Intensity: number;
doubleSided: boolean;
elem... | TypeScript | pawtucket/assets/universalviewer/src/typings/virtex.d.ts | perryrothjohnson/artifact-database | gpl-3.0 | 2,184 | 81 | codeparrot/github-code |
73f1aa986f184ee9005c1de04aa62f39d88d5fdbc840c73698e589368355112c | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""Implement standard (and unused) TCP protocols.
These protocols are either provided by inetd, or are not provided at all.
"""
from __future__ import absolute_import, division
import time
import struct
from zope.interface import implementer
... | Python | venv/lib/python2.7/site-packages/twisted/protocols/wire.py | Architektor/PySnip | gpl-3.0 | 2,659 | 112 | codeparrot/github-code |
b98aaa8f19eb422bb683f0c97fdd8aba36436fd7d7ee88720c2724fcd2422e8b | /* 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/. */
//! The `MozMap` (open-ended dictionary) type.
use dom::bindings::conversions::jsid_to_string;
use dom::bindings:... | Rust | components/script/dom/bindings/mozmap.rs | bbansalWolfPack/servo | mpl-2.0 | 3,635 | 111 | codeparrot/github-code |
0401855f93a219060cbf158b9ed9cab3476c13274ba9e9efa4465a4adfe59dee | /* Bitset vectors.
Copyright (C) 2002, 2004, 2009-2013 Free Software Foundation, Inc.
Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz).
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 Softwar... | C | src/contrib/tools/bison/gnulib/src/bitsetv.h | evilmucedin/tomita-parser | mpl-2.0 | 2,132 | 61 | codeparrot/github-code |
a9e1e645e6f957c3bbb4456d634466d6f9bd20fb6df77d3a6a6798cc5a3879ee | /**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/
// Themes
import './styles/main.scss';
import './styles/themes/abductor.scss';
import './styles/themes/cardtable.scss';
import './styles/themes/hackerman.scss';
import './styles/themes/malfunction.scss';
import './styles/themes/neutral.scss';
import '... | JavaScript | tgui/packages/tgui/index.js | optimumtact/-tg-station | agpl-3.0 | 1,998 | 84 | codeparrot/github-code |
26b51306749d47592302c03951dabd313704dfee6e13a015bb2a9c912660cefe | # -*- coding: utf-8 -*-
# Copyright(C) 2014 Laurent Bachelier
#
# This file is part of weboob.
#
# weboob 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 Free Software Foundation, either version 3 of the License, or
# (at your o... | Python | weboob/tools/browser2/cookies.py | Boussadia/weboob | agpl-3.0 | 2,534 | 73 | codeparrot/github-code |
8d139b011429a1cd67449f2410765d01d4c07024231d2d15599c4fedc2305ff4 | <?php
/**
* @package Core
* @subpackage system
* @deprecated
*/
require_once ( __DIR__ . "/kalturaSystemAction.class.php" );
/**
* @package Core
* @subpackage system
* @deprecated
*/
class executeCommandAction extends kalturaSystemAction
{
// TODO - read from the entryWrapper
private static $allowed_n... | PHP | alpha/apps/kaltura/modules/system/actions/executeCommandAction.class.php | ratliff/server | agpl-3.0 | 1,152 | 56 | codeparrot/github-code |
a5d6da81a523404977b53e221df212b8109dab4cb5abd9aff070147c30be4096 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, 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/manualmode/src/test/java/org/jboss/as/test/manualmode/secman/PermissionsDeploymentTestCase.java | aloubyansky/wildfly-core | lgpl-2.1 | 7,442 | 173 | codeparrot/github-code |
6b428c84d283a3639f5ca8a65d728b9778c76a31ceacbd236c0f144e03765fc8 | /**
*
* Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
*
* 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) ... | Java | source/java/core/src/lucee/runtime/type/comparator/SortRegisterComparator.java | lucee/unoffical-Lucee-no-jre | lgpl-2.1 | 2,517 | 81 | codeparrot/github-code |
f0783b92e310946685514ce224f8589cc77f2e3d6cf2e5d337b58e1a13f5ea9a | /*
* Copyright (C) 2008-2014 The QXmpp developers
*
* Author:
* Manjeet Dahiya
*
* Source:
* https://github.com/qxmpp-project/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | C++ | src/client/QXmppVCardManager.cpp | gamenet/qxmpp | lgpl-2.1 | 3,127 | 131 | codeparrot/github-code |
1623dfa2b22a2540cfb972b26648bc1bbdcfa14f881511335a1edce6e418ac6d | /*
* Copyright 2018 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-wb-common-services/kie-wb-common-compiler/kie-wb-common-compiler-service/src/test/java/org/kie/workbench/common/services/backend/compiler/BaseCompilerTest.java | jomarko/kie-wb-common | apache-2.0 | 2,464 | 67 | codeparrot/github-code |
0793596ab0ffe400c7fe4de95f029b924d824a61ad8b5aa7677c2d1eacbc3e1e | /*
* Copyright 2000-2009 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/analysis-impl/src/com/intellij/packageDependencies/ForwardDependenciesBuilder.java | romankagan/DDBWorkbench | apache-2.0 | 6,335 | 173 | codeparrot/github-code |
9997abbda629900c618650e119d13f5f230ca077405fd5dee78677e83d8cefdf | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.gmf.esb.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IEditingDomainI... | Java | plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/LogMediatorInputConnectorItemProvider.java | nwnpallewela/devstudio-tooling-esb | apache-2.0 | 2,890 | 108 | codeparrot/github-code |
5e4c13c7062c8ba56fb4d68c867021c5bc04d720601850f1becb54f833a659cc | /* Copyright 2016 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/platform/cloud/retrying_file_system.h | Xeralux/tensorflow | apache-2.0 | 2,873 | 84 | codeparrot/github-code |
71d2f57cf13ca8de0bc286a0937f98a369755036fa81024013600de221558cae | /**
* 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 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/impl/pb/GetTimelineCollectorContextRequestPBImpl.java | steveloughran/hadoop | apache-2.0 | 3,988 | 133 | codeparrot/github-code |
773c0f69088f875a8fdc247e7e01e073b854855d2444ffb67b1ef236ecab4d3f | /*
* 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/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateImplUtil.java | kdwink/intellij-community | apache-2.0 | 1,752 | 53 | codeparrot/github-code |
9b52e152d79531b441fa6bfcae49cf99751579eb82835d692b05f8777019a9fb | ' 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.
Imports System.Collections.Immutable
Imports System.Diagnostics
Imports System.Runtime.InteropServices
Imports Microso... | Visual Basic | src/Compilers/VisualBasic/Portable/Lowering/LocalRewriter/LocalRewriter_SelectCase.vb | davkean/roslyn | apache-2.0 | 22,050 | 401 | codeparrot/github-code |
9065d4caac05135244929c2452c569cfc70712a57ff4898e7b6eae48dd2b5824 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | JavaScript | modules/setup-scripts/conf/wso2das-3.0.1/repository/deployment/server/jaggeryapps/monitoring/themes/theme0/ui/thirdparty/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.js | jagathsisira/app-cloud | apache-2.0 | 29,977 | 1,046 | codeparrot/github-code |
351ac78267794ec94e083d605f5e4ea65aded209750abe2a9cb88c3e505f8e4b | /*
* Copyright 2012 the original author or authors
* @license MIT, see LICENSE.txt for details
*
* @author Scott Andrews
*/
(function (define) {
'use strict';
var undef;
/**
* Aggregate messages into batches as they are received.
*/
define(function (require) {
var msgs = require('..');
/**
* Ag... | JavaScript | storm-demo-webapp/src/main/webapp/assets/lib/msgs/aggregators/batching.js | timveil/iot-truck-streaming | apache-2.0 | 2,277 | 80 | codeparrot/github-code |
9b8d3767545bd7c63a9c97917fb73498901115920028e1740c1fdb232b71e433 | /*
* 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/common/io/stream/StreamTests.java | strapdata/elassandra | apache-2.0 | 16,395 | 409 | codeparrot/github-code |
801fbc2c5e0c2b878edf2aef9f04bfaeecba6673b0f9d7a8f1bc2669b0ea0c7b | /*
* Copyright 2012-2017 the original author or 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 ap... | Java | spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java | bbrouwer/spring-boot | apache-2.0 | 2,667 | 70 | codeparrot/github-code |
1a2ef9bca6444b9342f8a14769e46fcdf38283cd9fe383d2c3b23fb742684f02 | package me.kafeitu.activiti.chapter15.leave;
import me.kafeitu.activiti.chapter15.leave.ws.LeaveWebService;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.junit.After;
import org.junit.Before... | Java | bpmn20-example/src/test/java/me/kafeitu/activiti/chapter15/leave/LeaveWebServiceBusinessTest.java | kutala/activiti-in-action-codes | apache-2.0 | 2,598 | 79 | codeparrot/github-code |
6e1e4dce26f0a0e5f77da6bb6c50c18ce57424f099792ec40436123473411506 | /**
* 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 | platforms/camel-catalog-provider-springboot/src/main/java/org/apache/camel/catalog/springboot/SpringBootRuntimeProvider.java | onders86/camel | apache-2.0 | 4,859 | 147 | codeparrot/github-code |
46785a0f707453c9f4409633bd06e6dbeac8fbf42a7cb449d2a8c181e0b830a0 | /*
* 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 | standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/events/PreReadDatabaseEvent.java | alanfgates/hive | apache-2.0 | 1,483 | 47 | codeparrot/github-code |
b7300952e2cbc8ef0ff1af50eca26918590cb6e6ae45e5b4efd00eab120fab91 | #!/usr/bin/env python
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
parseutils.py
Routines to parse "flexible" configuration files for tools like
gpaddmirrors, gprecoverseg, gpexpand, etc.
Copyright (c) EMC/Greenplum Inc 2011. All Rights Rese... | Python | tools/bin/gppylib/parseutils.py | PGer/incubator-hawq | apache-2.0 | 22,013 | 585 | codeparrot/github-code |
47433685d5d44c4e4f5d6c02776445ae2b3e6d645d05d46b7af78b51298dbcd4 | package org.keycloak.example.oauth;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.jboss.logging.Logger;
import org.keycloak.KeycloakSecurit... | Java | examples/demo-template/third-party-cdi/src/main/java/org/keycloak/example/oauth/DatabaseClient.java | eugene-chow/keycloak | apache-2.0 | 4,047 | 114 | codeparrot/github-code |
32a53bd2a20e3da24c5cdba6acb44eb8e765db3ce8be3c6baa2cc8b860913c4f | /**
* 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/optimizer/stats/annotation/AnnotateStatsProcCtx.java | cschenyuan/hive-hack | apache-2.0 | 1,861 | 66 | codeparrot/github-code |
4b035d090f7226435723e36ea9894ac5f7592de29c628d5285965ed389e96292 | from collections import OrderedDict
import copy
import operator
from functools import partial, reduce, update_wrapper
import warnings
from django import forms
from django.conf import settings
from django.contrib import messages
from django.contrib.admin import widgets, helpers
from django.contrib.admin import validati... | Python | venv/lib/python2.7/site-packages/django/contrib/admin/options.py | boooka/GeoPowerOff | apache-2.0 | 80,797 | 1,912 | codeparrot/github-code |
63044737dc51e96dc10565893dab90db095fab5888afae3b1381fe4f4ecbdcaf | /**
* Copyright 2017 The AMP HTML 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 require... | JavaScript | extensions/amp-3q-player/0.1/amp-3q-player.js | ecoron/amphtml | apache-2.0 | 5,238 | 217 | codeparrot/github-code |
5709845fa7a3f7eed16f30ed60071098f0dd47b7baf19edbe95a79d43ec4475c | /*
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/thirdparty/batik/sources/org/apache/flex/forks/batik/svggen/ExtensionHandler.java | adufilie/flex-sdk | apache-2.0 | 2,772 | 66 | codeparrot/github-code |
e357e5fed5bed7f0b5669b1e6dd73269a1dc3b0ce7b3137825fd32b478afab36 | /* Copyright (c) Citrix Systems, Inc.
* 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 code must retain the above
* copyright notice... | C# | XenModel/Actions/ParallelAction.cs | geosharath/xenadmin | bsd-2-clause | 9,684 | 220 | codeparrot/github-code |
9ee294c15deab3197a5c99cb85f0fffa1fdcd5e429fa6cdc5e67f96b83b7be69 | /*-------------------------------------------------------------------------
*
* planner.h
* prototypes for planner.c.
*
*
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/optimizer/planner.h
*
*---... | C | src/ngx_postgres-1.0/include/server/optimizer/planner.h | LomoX-Offical/nginx-openresty-windows | bsd-2-clause | 1,232 | 43 | codeparrot/github-code |
6ee01d2e89a39659abaa9405f091351a1519f702e6a397d0d1cd71e195b42485 | // 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.
/**
* Asserts that device property values match properties in |expectedProperties|.
* The method will *not* assert that the device contains *only* prope... | JavaScript | extensions/test/data/api_test/audio/test.js | scheib/chromium | bsd-3-clause | 16,571 | 538 | codeparrot/github-code |
198d252f2d4b29dbfe853f8f0a5de25aad04831d8e58119974c5eb48fa02966a | //
// This macro reads the Hits Tree
//
void AliPMDHitsRead(Int_t nevt = 1)
{
TStopwatch timer;
timer.Start();
TH2F *h2 = new TH2F("h2"," Y vs. X",200,-100.,100.,200,-100.,100.);
// FILE *fpw = fopen("alipmdhits.dat","w");
AliRunLoader *fRunLoader = AliRunLoader::Open("galice.root");
if (!fRunLoader)... | C++ | PMD/macro/AliPMDHitsRead.C | ecalvovi/AliRoot | bsd-3-clause | 5,688 | 235 | codeparrot/github-code |
d73f5fa64af1c87904e39640350172b9765251829d23a20add7900b8e712afe3 | // 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 "ui/views/widget/desktop_aura/x11_topmost_window_finder.h"
#include <algorithm>
#include <vector>
#include <X11/extensions/shape.h>
#include <X1... | C++ | ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc | CapOM/ChromiumGStreamerBackend | bsd-3-clause | 15,664 | 443 | codeparrot/github-code |
2c2063cb187a2c2bf54bc50e0d7e69b489a8fa43bdf39a329bb4b3c5a4a9cee9 | /* eslint strict:0 */
var modules = Object.create(null);
var inGuard = false;
function define(id, factory) {
modules[id] = {
factory,
module: {exports: {}},
isInitialized: false,
hasError: false,
};
if (__DEV__) { // HMR
Object.assign(modules[id].module, {
hot: {
acceptCallback... | JavaScript | packager/react-packager/src/Resolver/polyfills/require.js | shinate/react-native | bsd-3-clause | 2,910 | 129 | codeparrot/github-code |
cb0a14b103713ac73b7eb8d7c474c65c24c29119021c9c0f5c7884c2db1fb2ca | // 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.
/**
* @fileoverview
*
* It2MeHelpeeChannel relays messages between the Hangouts web page (Hangouts)
* and the It2Me Native Messaging Host (It2MeHost) ... | JavaScript | remoting/webapp/crd/js/it2me_helpee_channel.js | mohamed--abdel-maksoud/chromium.src | bsd-3-clause | 15,736 | 498 | codeparrot/github-code |
51ced45cd6cf32f64f36614f44bd3ec40983ac5c33fcd77a3c2bec4993b14904 | // Copyright 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 "skia/ext/skia_trace_memory_dump_impl.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/memory_dump_manager.h"
#... | C++ | skia/ext/skia_trace_memory_dump_impl.cc | scheib/chromium | bsd-3-clause | 3,620 | 92 | codeparrot/github-code |
b9bb7d84b64353082ae7cf78b414fe4e3e293a2d5c3e004c997d8ce0c7a487bf | /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "Mi... | C++ | mcrouter/routes/MissFailoverRoute.cpp | is00hcw/mcrouter | bsd-3-clause | 1,389 | 51 | codeparrot/github-code |
fc0166eb39b9c3b75296f5999ad942fed5b2e920a6e9f340949fe1451b77f565 | // 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 ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
#define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
#include <set>
#include "ash/ash_export.h"
#include ... | C | ash/wm/toplevel_window_event_handler.h | js0701/chromium-crosswalk | bsd-3-clause | 4,456 | 136 | codeparrot/github-code |
9be2d0aa0d9c6cdbf329e052ec49e2e8c5cb0392fa2a4bb238997be7915b23e5 | <html>
<head>
<title>Weak Showers</title>
<link rel="stylesheet" type="text/css" href="pythia.css"/>
<link rel="shortcut icon" href="pythia32.gif"/>
</head>
<body>
<h2>Weak Showers</h2>
The emission of <i>W^+-</i> and <i>Z^0</i> gauge bosons off fermions
is intended to be an integrated part of the initial- and fi... | HTML | PYTHIA8/pythia8205/share/Pythia8/htmldoc/WeakShowers.html | miranov25/AliRoot | bsd-3-clause | 10,275 | 188 | codeparrot/github-code |
b9b1d892cd9530be8aabcd8f0948a91a4852edd8ca6b7d3a19699e951f308dbe | // 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 "ui/gfx/render_text.h"
#include <algorithm>
#include <climits>
#include "base/command_line.h"
#include "base/i18n/break_iterator.h"
#includ... | C++ | ui/gfx/render_text.cc | mohamed--abdel-maksoud/chromium.src | bsd-3-clause | 52,158 | 1,426 | codeparrot/github-code |
5bb787fcf23111d4c155e57f26c3408d4eae52c51157e2c951f0ca636b2e9588 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | C++ | src/IECore/NURBSPrimitive.cpp | code-google-com/cortex-vfx | bsd-3-clause | 9,702 | 379 | codeparrot/github-code |
9dcd2dc7b436f968c2bdd487b407fdc404f411b3565bd2ddd38dc0ad75f5d324 | /* Only eth0 supported for now
*
* (C) Copyright 2003
* Thomas.Lange@corelatus.se
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <config.h>
#if defined(CONFIG_SYS_DISCOVER_PHY)
#error "PHY not supported yet"
/* We just assume that we are running 100FD for now */
/* We all use switches, right? ;-) */
#endif
/... | C | u-boot/arch/mips/mach-au1x00/au1x00_eth.c | guileschool/beagleboard | mit | 7,093 | 314 | codeparrot/github-code |
087c5f99bd13087e7d91c4ca4952d0615fdb1ca95a1c87499e24f22c11db2667 | /*
Copyright (C) 2011 by Ivan Safrin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, ... | C++ | src/modules/physics3D/PolyCollisionScene.cpp | carlosmarti/Polycode | mit | 9,249 | 262 | codeparrot/github-code |
f124b5c0e9bd37a8714f6617efefd5d0ca686949b3695f10bb75ed33bee347ab | // 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.
// ==++==
//
//
// ==--==
#ifndef __util_h__
#define __util_h__
#define LIMITED_METHOD_CONTRACT
// So we can u... | C | src/ToolBox/SOS/Strike/util.h | sperling/coreclr | mit | 95,942 | 3,268 | codeparrot/github-code |
782e69b1e656b1a22a85adf738ee4220d686820967b51408f9efbcc53f696863 | package org.bouncycastle.crypto.test;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.Vector;
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.bouncycastle.crypto.engines.NaccacheSternEngine;
import org.bounc... | Java | test/src/org/bouncycastle/crypto/test/NaccacheSternTest.java | sake/bouncycastle-java | mit | 11,131 | 355 | codeparrot/github-code |
e8083e56445f7103723a338c3b6b5e87cbabb5fe5ed33d087bf5bd6e061d69cb | package aima.core.probability.util;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import aima.core.probability.RandomVariable;
import aima.core.probability.domain.Domain;
import aima.core.probability.proposition.TermProposition;
/**
* Default implementation of the RandomVariable i... | Java | aima-core/src/main/java/aima/core/probability/util/RandVar.java | aima-java/aima-java | mit | 2,171 | 104 | codeparrot/github-code |
2233217f22e125c8fbf3349670c02516c4ba99d56923c51a7e42bbf53f94221c | package aima.core.probability.bayes.exact;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import aima.core.probability.CategoricalDistribution;
import aima.core.probability.Factor;
import aima.cor... | Java | aima-core/src/main/java/aima/core/probability/bayes/exact/EliminationAsk.java | aima-java/aima-java | mit | 8,132 | 236 | codeparrot/github-code |
a8743b1451778b8424cca0288d6b16628f87bf3197dbda5374de8947d83f2bb2 | <?php
/**
* Types_Page_Hidden_Helper
*
* @since 2.0
*/
class Types_Page_Hidden_Helper extends Types_Page_Abstract {
private static $instance;
private $redirect_url = false;
public static function get_instance() {
if( null == self::$instance ) {
self::$instance = new self();
self::$instance->add_sneak... | PHP | wp-content/plugins/types/application/controllers/page/hidden/helper.php | Analytical-Engine-Interactive/loopylogic | gpl-2.0 | 4,598 | 177 | codeparrot/github-code |
e414e821aeb294f101c788b465a07e8a8dfca38ad611db57d19921df6fb4add4 | // Copyright (C) 2015 Conrad Sanderson
// Copyright (C) 2015 NICTA (www.nicta.com.au)
//
// 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/.
//! \addtogroup spdiagview... | C++ | lib/armadillo_5_1/include/armadillo_bits/spdiagview_bones.hpp | srinix07/pairing_3p2 | gpl-2.0 | 3,101 | 99 | codeparrot/github-code |
35ce34910af569a695076fce425ac96012083cf4165a9ed66defccf30dce4818 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | C | lge/lge_board/batman/gpiomux_lge_325.c | lyfkevin/Wind_iproj_JB_kernel_old | gpl-2.0 | 33,789 | 1,539 | codeparrot/github-code |
2d0737e1f6b2f4e5113fa56eed4ddf94161479417f2116b40dab8fbb3503df00 | /* RxRPC point-to-point transport session management
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.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 Fre... | C | net/rxrpc/ar-transport.c | ircncl/linux-grsec-incremental | gpl-2.0 | 7,246 | 280 | codeparrot/github-code |
c6593fd9ff8a74ff542d3ab42ccede1116d505773df1f321854b4020bcd0b346 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head><title>PCAP New Generation Dump File Format</title>
<meta name="description" content="PCAP New Generation Dump File Format">
<meta name="keywords" content="Internet-Draft, Libpcap, dump file form... | HTML | user/lib/libpcap-1.8.1-fanout/doc/pcap.html | pfq/PFQ | gpl-2.0 | 58,387 | 998 | codeparrot/github-code |
5a3688b0e9052a1154ddf5402d0d8bc3b8b1cdd83c4e829d363c95e0c1fb51e2 | /*
* Glide64 - Glide video plugin for Nintendo 64 emulators.
* Copyright (c) 2002 Dave2001
* Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ei... | C | src/Glide64/turbo3D.h | Gillou68310/mupen64plus-video-glide64mk2 | gpl-2.0 | 9,666 | 277 | codeparrot/github-code |
c59fb06cddd9fbdde6f41f2358b5b2535aec42a719a3e7d2d36d7c66be8f3eec | /*
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | jdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/ObjectCloneSnippets.java | YouDiSN/OpenJDK-Research | gpl-2.0 | 5,679 | 126 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.