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
c7637d5417738e5ed45b7eef72f25d889423500169679247ad82846c700594be
// Copyright 2020 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.share.screenshot; import android.graphics.Bitmap; import androidx.annotation.IntDef; import org.chromium.base.Callb...
Java
chromium/chrome/browser/share/android/java/src/org/chromium/chrome/browser/share/screenshot/ScreenshotShareSheetViewProperties.java
ric2b/Vivaldi-browser
bsd-3-clause
1,568
45
codeparrot/github-code
63e4b888d73d30d48b8a088fef605fd34a5a5306b57c1a4589c0293b3538b3d0
// 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. #include "chrome/browser/extensions/api/messaging/native_messaging_test_util.h" #include "chrome/browser/extensions/browsertest_util.h" #include "chrome/b...
C++
chromium/chrome/browser/extensions/service_worker_messaging_apitest.cc
ric2b/Vivaldi-browser
bsd-3-clause
16,954
419
codeparrot/github-code
bcaea7bf092ae1ee5f57048331cab55470bfd2300f508c5e31262c1dc2f34e8c
/* Copyright (c) 2013-2015 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(...
C++
src/LogEntryTypes.cc
matrix207/RAMCloud
isc
1,978
61
codeparrot/github-code
9615cca1df163be47793f451879f1361a5f9c2e6f17d474c726ab8179570bf56
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>DocStrap Source: other.js</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="text/css" rel="sty...
HTML
npminstall/ink-docstrap/themes/slate/other.js.html
guoguogis/ng-nice
mit
10,299
310
codeparrot/github-code
a4b13a400f40a95c3be466ffd15c20723ef3a1c4c735bcf3837cdac4885d2506
<?php class CM_Usertext_Filter_MaxLength extends CM_Usertext_Filter_Abstract { /** @var int|null */ private $_lengthMax = null; /** * @param int|null $lengthMax */ function __construct($lengthMax = null) { if (null !== $lengthMax) { $this->_lengthMax = (int) $lengthMax; ...
PHP
library/CM/Usertext/Filter/MaxLength.php
alexispeter/CM
mit
974
37
codeparrot/github-code
a8efbf7dbfb2693a7e112366b6f9ee2dbcc4626d1e44d5a0117c52a186eb0546
<?php /** * Contains functions that converts full urls to and from * site pages, files (downloads and inline views), and snippets. * The purpose of this conversion is so that links to things * within a website are properly maintained when a page or file * is moved, or if an entire site is moved to a different dir...
PHP
concrete/src/Editor/LinkAbstractor.php
haeflimi/concrete5
mit
15,609
452
codeparrot/github-code
8ab488ee244664e90865775f5fe9558ce957e63b45961cce97ce9c99bfd6b9ce
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
JavaScript
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/redux-form/6.6.3/es/__tests__/FormSection.spec.js
JamieMason/npm-cache-benchmark
mit
15,475
469
codeparrot/github-code
1d7490eb5d9fd8b1b9691362af59cf672e9993310d3a5a2afa662a96d9fd97cf
/* * Copyright 2010 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 ap...
Java
testing/drools-master/drools-core/src/test/java/org/drools/core/reteoo/test/dsl/NodeTestCaseResult.java
rokn/Count_Words_2015
mit
3,590
130
codeparrot/github-code
c42467bfc54072e329f35f7268b3000a635a5b0c4d265e8671e767af0f06d275
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Castle.Core.Logging; using AutoTest.Core.Messaging; using System.Xml; using AutoTest.Core.Messaging.MessageConsumers; using AutoTest.Messages; using System.IO; using AutoTest.Core.DebugLog; namespace AutoTest.Core.TestRunners.T...
C#
src/AutoTest.Core/TestRunners/TestRunners/NUnitTestResponseParser.cs
continuoustests/AutoTest.Net
mit
9,886
283
codeparrot/github-code
e5e849ccdddaa6b5f375089a5c4a83e8ae82df3bb20d196185442f1152bfb4ab
// Copyright (c) 2009-2010 Satoshi Nakamoto // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #ifndef H_BITCOIN_SCRIPT #define H_BITCOIN_SCRIPT #include "base58.h" #include "keystore.h" #include <string> #include <vector>...
C
src/script.h
sysbot/namecoinq
mit
20,845
723
codeparrot/github-code
8d8daf8b689584825b729e8db7ea26a995101fe778c4215911eb20134088ca96
import ChevronLeft from "../../../../components/main_layout/public/icons/chevron-left.svg" import ChevronRight from "../../../../components/main_layout/public/icons/chevron-right.svg" import PropTypes from "prop-types" import React, { Component } from "react" import block from "bem-cn-lite" import classNames from "clas...
JavaScript
src/desktop/apps/auction/components/artwork_rail/ArtworkRail.js
erikdstock/force
mit
3,099
130
codeparrot/github-code
a9d37f7fc8ab3e971e65725e74ee894d5c7c237177cf6f684e50955fa4d9e2f0
define([ 'core/agent', 'core/dom', 'editing/History', 'Locale' ], function (agent, dom, History, Locale) { /** * Renderer * * rendering toolbar and editable */ var Renderer = function () { var aToolbarItem, sPopover, sHandle, sDialog, sStatusbar; /* jshint ignore:start */ aToolbarItem = {...
JavaScript
web/js/bootstrap.summernote/src/js/Renderer.js
leva2020/cineco-admin
mit
30,538
505
codeparrot/github-code
f83f3f6a0c906cd3e5d735e3225282c5e9cc8fc77e8b05dd36495f265c212e77
package org.owasp.appsensor.core.storage; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIM...
Java
appsensor-core/src/main/java/org/owasp/appsensor/core/storage/ResponseStoreListener.java
sanjaygouri/appsensor
mit
948
32
codeparrot/github-code
6c2026288724126c532ab53646a35eda9e6329fce5d93b9ccb13d4f2e8394fb9
/*! * ui-grid - v4.3.1 - 2018-03-14 * Copyright (c) 2018 ; License: MIT */ (function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.selection * @description * * # ui.grid.selection * This module provides row selection * * <div class="alert alert-success" role="alert"><strong>...
JavaScript
ajax/libs/angular-ui-grid/4.3.1/ui-grid.selection.js
sashberd/cdnjs
mit
42,000
1,025
codeparrot/github-code
9959dfd93743918230c9f7e0f2730af8777958839ee3d654642cc9505cc02024
// MIT License: // // Copyright (c) 2010-2011, Joe Walnes // // 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, m...
JavaScript
static/pyemoncms/modules/vis/visualisations/smoothie/smoothie.js
hephaestus9/Ironworks
mit
12,319
302
codeparrot/github-code
8d4eceaced978dc2c82a8e64248ac4c31a9921f004287b7e8a7a28a6bf831d7a
describe :hash_key_p, :shared => true do it "returns true if argument is a key" do h = new_hash(:a => 1, :b => 2, :c => 3, 4 => 0) h.send(@method, :a).should == true h.send(@method, :b).should == true h.send(@method, 'b').should == false h.send(@method, 2).should == false h.send(@method, 4).sh...
Ruby
core/hash/shared/key.rb
sorah/rubyspec
mit
1,047
34
codeparrot/github-code
f1128603b7b4329ce2fa971a53f9a5a3edbb9bc092029dbd7ee340a468cf27a5
/** * Copyright (c) 2010-2014, openHAB.org and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org...
Java
bundles/binding/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseaudioGenericBindingProvider.java
gregfinley/openhab
epl-1.0
4,726
147
codeparrot/github-code
1d53b378fc5272ade5e6e168aa49300c475b9120c91d5d341e45c74c69d8b0ea
/****************************************************** Database object creation (c) 1996 Innobase Oy Created 1/8/1996 Heikki Tuuri *******************************************************/ #ifndef dict0crea_h #define dict0crea_h #include "univ.i" #include "dict0types.h" #include "dict0dict.h" #include "que0types.h"...
C
user/mysql/innobase/include/dict0crea.h
nmacs/lm3s-uclinux
gpl-2.0
5,289
159
codeparrot/github-code
4adc9f43b2beefb36acc76a2c261c1c81ba788291ff5fa83b950281fa1bde3f3
<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright Copyright (C) 2005 - 2016 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; /** * La...
PHP
administrator/components/com_languages/models/override.php
degobbis/gsoc16_browser-automated-tests
gpl-2.0
6,608
226
codeparrot/github-code
2ab3bd77c53f9d8262c806a5041d9e817b309b5514f322f80872eb7df38663a6
/* * AMLOGIC Audio/Video streaming port driver. * * 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 named License, * or any later version. * * This program is distr...
C
drivers/amlogic/amports/vpp.h
surkovalex/linux
gpl-2.0
6,380
254
codeparrot/github-code
b27daf72cddf4f05cadfc85f3b3c0301eb1dd248ead93425f0ed3062560bae5a
#include "ScriptPCH.h" #include "firelands.h" enum ScriptTexts { SAY_SPAWN = 8, SAY_AGGRO = 0, SAY_RIPLIMB = 4, SAY_RAGEFACE = 5, SAY_KILL = 7, SAY_MAGMA_RUPTURE = 6, SAY_SPEAR = 2, SAY_DEATH = 1, SAY_DOG ...
C++
src/server/scripts/Kalimdor/Firelands/boss_shannox.cpp
Exodius/Core
gpl-2.0
48,422
1,187
codeparrot/github-code
f5a7bdd9a662d742b92523bab7badacb7001d0be5f7c658978cb67c4935982cd
<?php /** * @package Komento * @copyright Copyright (C) 2012 Stack Ideas Private Limited. All rights reserved. * @license GNU/GPL, see LICENSE.php * Komento is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works li...
PHP
components/com_komento/models/acl.php
timofeev-denis/trans-mobil
gpl-2.0
1,111
43
codeparrot/github-code
d5e39fbd2071ce7767483ac85056e318f3157291b18c126780ede71ed728133d
<?php /** * @package Joomla.Site * @subpackage com_users * * @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::register('UsersController', JPATH_COMPONENT ...
PHP
components/com_users/controllers/registration.php
puneet0191/gsoc16_browser-automated-tests
gpl-2.0
5,549
206
codeparrot/github-code
70220833e56a65f766533634e52edfdecca6dea1c6822b2d3eb3223189396084
/************************************************************************ ************************************************************************* @Name : jMenu - jQuery Plugin @Revison : 1.9 @Date : 09/2012 @Author : ALPIXEL - (www.myjqueryplugins.com - www.alpixel.fr) @Support : FF, I...
JavaScript
wp-content/themes/chefscollaborative/js/jMenu.jquery.js
c-h-russell-walker/chefscollab
gpl-2.0
10,264
315
codeparrot/github-code
dd3a691c15e7f38880ad60bd7e8ebbd1a2e6e4056633a308e699661768c27be2
/* * The driver for the EMU10K1 (SB Live!) based soundcards * Copyright (c) by Jaroslav Kysela <perex@suse.cz> * * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> * Added support for Audigy 2 Value. * * * This program is free software; you can redistribute it and/or modify * it ...
C
sound/pci/emu10k1/emu10k1.c
pengdonglin137/linux-2.6.11
gpl-2.0
7,441
235
codeparrot/github-code
5de41f0616eae867b9e74d40d960854eb4e60049e14ad1179fd2df365a75fc26
/* * gsl_binomial_randomdev.h * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, ...
C
librandom/gsl_binomial_randomdev.h
weidel-p/nest-simulator
gpl-2.0
3,914
151
codeparrot/github-code
fee64c95b9b60c214dcd1f45b8c1cd5a2af3d65303660ce712f361c0d6319070
/* SPDX-License-Identifier: Intel */ /* * Copyright (C) 2013, Intel Corporation * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> * * Ported from Intel released Quark UEFI BIOS * QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei */ #ifndef _MRC_UTIL_H_ #define _MRC_UTIL_H_ #include <log.h> /* Turn on this macro t...
C
arch/x86/cpu/quark/mrc_util.h
Digilent/u-boot-digilent
gpl-2.0
3,547
121
codeparrot/github-code
de9cb2baaea8201051aa3db2cad15b71c69817b9c5d594fd536919f1a27ada78
#ifndef _NET_TCP_ECN_H_ #define _NET_TCP_ECN_H_ 1 #include <net/inet_ecn.h> #define TCP_HP_BITS (~(TCP_RESERVED_BITS|TCP_FLAG_PSH)) #define TCP_ECN_OK 1 #define TCP_ECN_QUEUE_CWR 2 #define TCP_ECN_DEMAND_CWR 4 static inline void TCP_ECN_queue_cwr(struct tcp_sock *tp) { if (tp->ecn_flags&TCP_ECN_OK) tp->ecn_flag...
C
include/net/tcp_ecn.h
lirunlong/linux-comment
gpl-2.0
3,158
127
codeparrot/github-code
cad8f791ea71cb162c7cdd51770356da16432a17a18cdf9659dc133b6876738d
/* Copyright (C) 2003-2006 MySQL AB, 2008, 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundati...
C++
storage/ndb/src/common/logger/ConsoleLogHandler.cpp
greenlion/mysql-server
gpl-2.0
2,013
83
codeparrot/github-code
4f598302e7492166c09debb5941b70bf39117c0a09b64007c76c9095b094bc75
/* * R : A Computer Language for Statistical Data Analysis * Copyright (C) 1998-2012 The R Foundation * * 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...
C
src/library/stats/src/ksmooth.c
hadley/r-source
gpl-2.0
2,726
91
codeparrot/github-code
1e7f8ae695b5f138f854d4b91c87f0ca2e88f84c779740db0e5a30844e4c139e
/* * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
Java
test/gc/cms/TestMBeanCMS.java
FauxFaux/jdk9-hotspot
gpl-2.0
5,529
156
codeparrot/github-code
199db1aeb40eaa6d467b1e99705e179b32e1c6bfeb443069ecb7b01e719e482f
/* * Copyright(c) 2011-2013 Intel Corporation. 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"), * to deal in the Software without restriction, including without limitation * the rights to u...
C
drivers/xen/vgt/devtable.h
yuvjjang/KVMGT-kernel
gpl-2.0
2,413
120
codeparrot/github-code
c9bc735340a7c28fac1f39900c5e33a5d4267d834347070890ad482396bc0fb0
/* ========================================================= * vc-accordion.js v1.0.0 * ========================================================= * Copyright 2013 Wpbakery * * Visual composer accordion * ========================================================= */ + function ( $ ) { 'use strict'; var Accordion...
JavaScript
wp-content/plugins/js_composer4-7/assets/lib/vc_accordion/vc-accordion.js
VitaAprel/mynotebook
gpl-2.0
16,701
713
codeparrot/github-code
d00eecaaed8df2c00aede391eb5e63d313f669f34a75030d3668db3cd17637f5
// { dg-lto-do link } // { dg-require-effective-target fpic } // { dg-require-effective-target lto_incremental } // { dg-lto-options {{-fPIC -flto -Wno-return-type}} } // { dg-extra-ld-options "-fPIC -r -nostdlib" } namespace std __attribute__ ((__visibility__ ("default"))) { template<class _CharT> struct char_t...
C++
gcc/testsuite/g++.dg/lto/20091002-1_0.C
Gurgel100/gcc
gpl-2.0
2,026
61
codeparrot/github-code
77a6ff12cd3be1e52911027e2884667e5b333439a8f6e6611965562a5bda4f32
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
PHP
wecenter/system/Zend/Cache/Backend/ZendPlatform.php
default1406/PhyLab
gpl-2.0
11,931
318
codeparrot/github-code
5c028780e55a791f961dc20084b6d93dd3b79ea772bfca40cba4da0249881818
/* Copyright (C) 2011-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. Based on work contributed by Jakub Jelinek <jakub@redhat.com>, 2003. The GNU C Library is free software; you can redistribute it and/or modify it un...
C
uefi/userspace/glibc/ports/sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,695
95
codeparrot/github-code
fd699c50d6048fa11af82d35ead810c840a407f7cb962980c424e95508430283
/* Copyright (c) 2013-2015,2017 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in...
C
drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
M8s-dev/kernel_htc_msm8939
gpl-2.0
21,269
701
codeparrot/github-code
440a346653b750144a87b77ef2bebc4f8d0cf20ec516ce54a56e3529329df83b
/* Copyright (C) 2000-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
C
uefi/userspace/glibc/ports/sysdeps/alpha/fpu/s_copysign.c
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
1,318
40
codeparrot/github-code
0b6a6e4794d649f877168445da96bb2c7165969c537be3c2f2a88f68fd54db11
/*! ***************************************************************************** * * @File pool.h * @Description Object Pool Memory Allocator. * --------------------------------------------------------------------------- * * Copyright (c) Imagination Technologies Ltd. * * The contents of this file ...
C
drivers/vcodec/imagination/imgvideo/imglib/libraries/talmmu_api/include/pool.h
wbrambley/Grace-kernel
gpl-2.0
4,822
147
codeparrot/github-code
e95853a41ac7f796376717e741a30b9139b3f336976b27caa1b3dcbe98a3d830
#region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the fol...
C#
thirdparty/sources/protobuf/csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs
gwq5210/litlib
gpl-3.0
12,699
260
codeparrot/github-code
aaea66b01e2c23d2bd9ff3bb655cc76400e018cfef48f11eef09eaf59b77533b
/* * 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 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it w...
Java
weka-3.7.7/src/test/java/weka/filters/unsupervised/attribute/ClusterMembershipTest.java
dsibournemouth/autoweka
gpl-3.0
3,870
131
codeparrot/github-code
4049ec27cb38a4885820f0c9c268ccfd3e549b9f54cd30a996d22b93a67fd3ed
/* Copyright (C) 2012,2013 Max Planck Institute for Polymer Research Copyright (C) 2008,2009,2010,2011 Max-Planck-Institute for Polymer Research & Fraunhofer SCAI This file is part of ESPResSo++. ESPResSo++ is free software: you can redistribute it and/or modify it under the terms of the GNU...
C++
src/esutil/NormalVariate.hpp
govarguz/espressopp
gpl-3.0
1,758
55
codeparrot/github-code
e906f9235324178ce8495437685c6bb585ee42a17a0bcd1c1b8f4ffdb2f34e60
#region License // ==================================================== // Project Porcupine Copyright(C) 2016 Team Porcupine // This program comes with ABSOLUTELY NO WARRANTY; This is free software, // and you are welcome to redistribute it under certain conditions; See // file LICENSE, which is part of this source...
C#
Assets/Scripts/UI/DialogBox/Settings/DialogBoxSettings.cs
mrDLSable/ProjectPorcupine
gpl-3.0
6,126
207
codeparrot/github-code
7c5eae82a1847f48846d3f5b447de98da1cb27e6b259ffebb31baa6eb4c447d5
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* 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 3 of the License, or (at your option) any la...
C++
libraries/AP_Compass/AP_Compass_PX4.cpp
MaxQu/ardupilot-solo
gpl-3.0
4,757
163
codeparrot/github-code
2f2d133a22d905610b484595ece63233c5a1f014f52c4d95f41978a438372b54
----------------------------------- -- Area: Temenos E T -- Mob: Light Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobEngaged(mob,target) local mobID = mob:getID(); if (mobID==16929031) then GetMobByID(16929032):updateE...
Lua
scripts/zones/Temenos/mobs/Light_Elemental.lua
ffxijuggalo/darkstar
gpl-3.0
1,313
38
codeparrot/github-code
840715646bb6f5c7a93f4cb6c328b4502453c1a66e95c43a02b4f4956239f6e1
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Stone Picture Frame -- Notes: Opens door to Den of Rancor using Painbrush of Souls -- @pos -52.239 -2.089 10.000 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; -----------------...
Lua
scripts/zones/Temple_of_Uggalepih/npcs/Stone_Picture_Frame.lua
Kthulupwns/master
gpl-3.0
3,486
94
codeparrot/github-code
1f7b27b8cf51f452b341e3a43a2c9d267482460cae0f98901175658db4bf33ab
/* 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/. */ //! Computed angles. use num_traits::Zero; use std::{f32, f64}; use std::f64::consts::PI; use std::ops::Add; use ...
Rust
components/style/values/computed/angle.rs
anthgur/servo
mpl-2.0
3,745
122
codeparrot/github-code
6f01faed2bfb12bbacf71967890f7e28cad18db004dbee60db66065803ce3b5c
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages a...
C++
thirdparty/sfml/src/SFML/Graphics/Font.cpp
CPB9/mcc
mpl-2.0
22,693
720
codeparrot/github-code
041d3833f1928351ed5b0c312e2fc43c8fc39d01addb5afeec0e5b47a466fc12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Dapper; namespace DapperExtensions { public interface IMultipleResultReader { IEnumerable<T> Read<T>(); } public class GridReaderResultReader : IMultipleResultReader { private readonly SqlM...
C#
Source/Dapper/Extensions/GetMultipleResult.cs
besley/SlickSafe
lgpl-3.0
1,035
44
codeparrot/github-code
ffdb834a9b7f113d86c481a88a23c8416330891b433656f5b4c819673dcf4f42
# 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 applica...
Python
tensorflow/python/ops/rnn.py
theflofly/tensorflow
apache-2.0
66,326
1,591
codeparrot/github-code
a1e6228812a306c24d9e6ffab8526c65772cb8d15e177d2038969325501a255c
# The PostgreSQL make files exploit features of GNU make that other # makes do not have. Because it is a common mistake for users to try # to build Postgres with a different make, we have this make file # that, as a service, will look for a GNU make and invoke it, or show # an error message if none could be found. # I...
Makefile
Makefile
atris/gpdb
apache-2.0
1,507
37
codeparrot/github-code
2907610676dab624acf96134a232578a380fe5bde03336d5a846bb7a62f9c578
/* * 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/xmlrpc/org/apache/xmlrpc/jaxb/JaxbSerializer.java
kralf/ros-android
apache-2.0
3,493
96
codeparrot/github-code
06544621d9247d2df687a08b9420b0bf1fe6ec3829c3bc7be3464945c380b46d
/* * 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
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoPool.java
dalaro/incubator-tinkerpop
apache-2.0
8,630
247
codeparrot/github-code
dbca8dd5c13edcd96618a2f00b75a400452eef678972d0e4b7ff0959a034effa
/** * 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-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/TestSystemMetricsPublisherForV2.java
apurtell/hadoop
apache-2.0
19,918
487
codeparrot/github-code
a5f710c47740e3baa84ee07439c4fb547b43a6aa57f165411698c704d7204a1c
""" Repository of polls that stores data in Azure Table Storage. """ from azure import WindowsAzureMissingResourceError from azure.storage import TableService from . import Poll, Choice, PollNotFound from . import _load_samples_json def _partition_and_row_to_key(partition, row): """Builds a poll/choice key out o...
Python
Python/Templates/Web/ProjectTemplates/Python/Web/PollsFlaskJade/PollsFlaskJade/models/azuretablestorage.py
DEVSENSE/PTVS
apache-2.0
4,285
118
codeparrot/github-code
6651faaad4610e2266985fc826c81ba81a53850c4c114f5309a1f2cead9609c6
/* * Copyright 2014 The Netty Project * * The Netty Project 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
codec-socks/src/main/java/io/netty/handler/codec/socksx/v4/Socks4ServerEncoder.java
doom369/netty
apache-2.0
1,697
46
codeparrot/github-code
b2ae04c07b38bb7083b25c53195f4f7ee47424ca3c507b13e06ba4e1653ea033
/* * Copyright 2014 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 applica...
Java
subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/projectmodule/DefaultProjectPublicationRegistry.java
gstevey/gradle
apache-2.0
1,233
34
codeparrot/github-code
dc7714d49890973bef52040a5adc2bc1ec56dea3a28df770bc64f922d73dbad7
/* * 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
core/src/test/scala/org/apache/spark/rdd/AsyncRDDActionsSuite.scala
pgandhi999/spark
apache-2.0
7,332
239
codeparrot/github-code
652052b4153fab7540bd6d8113f79b2f2a83622a0f73ba756de854a313a601b0
/* * 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
bpel-obj/src/main/java/org/apache/ode/bpel/elang/xpath10/o/OXPath10Expression.java
firzhan/wso2-ode
apache-2.0
6,951
191
codeparrot/github-code
52bf8c112b4f7a7d0b52b795112d773052425e38b1f683ff5a8e864ea7ca62ec
/****************************************************************************** * @file system_msp432p4111.c * @brief CMSIS Cortex-M4F Device Peripheral Access Layer Source File for * MSP432P4111 * @version 3.202 * @date 08/03/17 * * @note View configuration instructions embedded in comments *...
C
ext/hal/ti/simplelink/source/ti/devices/msp432p4xx/startup_system_files/system_msp432p4111.c
ldts/zephyr
apache-2.0
14,946
410
codeparrot/github-code
c64b38ebeb27db821ed41338c007f00372eb41dfa8128eeffaa52f8371a02c19
/* * This file is part of the Soletta (TM) Project * * Copyright (C) 2015 Intel Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
C
src/modules/flow/test/boolean-generator.c
edersondisouza/soletta
apache-2.0
2,943
104
codeparrot/github-code
649e9e1500f7fe6034080d8d024d844d19a43da5ad1756239bd4d5e665ed640d
/* * ModeShape (http://www.modeshape.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Java
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/DdlSequencer.java
weebl2000/modeshape
apache-2.0
13,412
313
codeparrot/github-code
c7a4abf8878a6b755a8a165b781b2e8cd99f35422603688be4d087eb6f0a2041
/** * 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
curator-x-rpc/src/main/java/org/apache/curator/x/rpc/idl/discovery/DiscoveryService.java
digital-abyss/curator
apache-2.0
9,362
252
codeparrot/github-code
014dd09775c728dd5faf7b9eabbdab067758b484cdbdfcafb749738522600136
using System; using System.Collections.Generic; using Microsoft.Practices.ServiceLocation; using Microsoft.Practices.Unity; namespace Prism.Unity { /// <summary> /// Defines a <see cref="IUnityContainer"/> adapter for the <see cref="IServiceLocator"/> interface to be used by the Prism Library. /// </summ...
C#
Source/Wpf/Prism.Unity.Wpf/UnityServiceLocatorAdapter.cs
tomzorz/Prism
apache-2.0
1,865
49
codeparrot/github-code
894e313653e02ec4eb239d6dbc09173895ec55777fa48d72986934b9de1e139f
/* * 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
oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/CompositeNodeState.java
trekawek/jackrabbit-oak
apache-2.0
11,744
326
codeparrot/github-code
26aaf76f2debf0d0eafc261f37a5bdc7c908399eb8ad77d7a9ba89ad30387764
/* * Copyright 2015 TWO SIGMA OPEN SOURCE, LLC * * 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 appl...
Java
plugin/jvm/src/main/java/com/twosigma/beaker/easyform/formitem/LoadValuesButton.java
gef756/beaker-notebook
apache-2.0
932
33
codeparrot/github-code
0d0d9281cd3268135da19040ac34b949a5b42b56eba84d738e10645cc32b2759
// Copyright 2011 the V8 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. #if V8_TARGET_ARCH_MIPS64 #include "src/assembler.h" #include "src/frame-constants.h" #include "src/mips64/assembler-mips64-inl.h" #include "src/mips64...
C++
v8_7_5/src/mips64/frame-constants-mips64.cc
weolar/miniblink49
apache-2.0
933
34
codeparrot/github-code
25d8f8127062b83387ff28c3b14c7111397bfeb6e06e49311665aab8e4677c46
"""Provides device automations for Tasmota.""" from hatasmota.const import AUTOMATION_TYPE_TRIGGER from hatasmota.models import DiscoveryHashType from hatasmota.trigger import TasmotaTrigger from homeassistant.config_entries import ConfigEntry from homeassistant.core import Event, HomeAssistant from homeassistant.hel...
Python
homeassistant/components/tasmota/device_automation.py
aronsky/home-assistant
apache-2.0
1,937
50
codeparrot/github-code
a82f171795fbe9c49f1720a6afbcd04c1fa3a22effdd0aa05859cc7871b60789
/* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
saad-ali/kubernetes
apache-2.0
30,031
849
codeparrot/github-code
0e91695f835a99c91db001a726cc8770ee9cb2ece96ef3d44ecd55ad6d6d5518
/* * 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
sdks/java/core/src/test/java/org/apache/beam/sdk/util/CombineFnUtilTest.java
amitsela/incubator-beam
apache-2.0
4,141
103
codeparrot/github-code
5c1312e12b8d6a48d40d7979ba6a911586eb16a32c9ade5142a6f7331881dfc6
/** * 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
camel-core/src/main/java/org/apache/camel/model/SagaOptionDefinition.java
curso007/camel
apache-2.0
2,461
79
codeparrot/github-code
1ea1000b7c1bc8f311c4806a5cef42fefba20299024e89fb5fbe3aaf130ea6cd
/* * Copyright (c) 2014, Cloudera, Inc. All Rights Reserved. * * Cloudera, 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/licenses/LICE...
Java
app/oryx-app-serving/src/main/java/com/cloudera/oryx/app/serving/CSVMessageBodyWriter.java
ChuyuHsu/oryx
apache-2.0
2,916
87
codeparrot/github-code
15e85417da1dc625250eb2848ad80da919983ec48e3d9cbda16ce84858909158
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
modules/flowable-bpmn-model/src/main/java/org/flowable/bpmn/model/DataGridRow.java
dbmalkovsky/flowable-engine
apache-2.0
1,594
60
codeparrot/github-code
0fa203e3fc77d1e0eb3182931aa2a7ab276a5d7ebaf458975f768e8b1199be41
#ifndef ALIALGSENS_H #define ALIALGSENS_H #include "AliAlgVol.h" #include <TMath.h> class AliTrackPointArray; class AliESDtrack; class AliAlgDet; class AliAlgPoint; class TObjArray; class AliExternalTrackParam; class AliAlgDOFStat; class TCloneArray; /*-------------------------------------------------------- End-c...
C
ALIGN/AliAlgSens.h
miranov25/AliRoot
bsd-3-clause
3,788
100
codeparrot/github-code
25bde12a9a86cdb8e304da0f44c92fedef0c97eea1c973aa490a70758502f910
// Copyright 2013 The Go 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 <sys/types.h> #include <pthread.h> #include <signal.h> #include <string.h> #include "libcgo.h" static void *threadentry(void*); // We have to resort...
C
src/pkg/runtime/cgo/gcc_netbsd_arm.c
mhennings/marcohennings-go
bsd-3-clause
2,681
123
codeparrot/github-code
6eb9d13c1181490930fd7c79e693223c858282ce0ed3e0a47a3906ce115b5cb5
// 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 "ash/display/display_color_manager_chromeos.h" #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/command_...
C++
ash/display/display_color_manager_chromeos.cc
js0701/chromium-crosswalk
bsd-3-clause
5,283
155
codeparrot/github-code
308d61327b6c8adf85c38da33d9e77cee427cff3a86135b5b46364ab21deb7dc
/* * Copyright 2011 - 2015 * Andr\xe9 Malo or his licensors, as applicable * * 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 * * Unl...
C
third_party/py_vulcanize/third_party/rjsmin/rjsmin.c
benschmaus/catapult
bsd-3-clause
17,899
511
codeparrot/github-code
c0f1128525581c193d1ffc44575260fb13ce7591d72afdde2938abadc1b752d5
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_IMPL_H_ #define GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_IMPL_H_ #include <string> #include <vec...
C
google_apis/gaia/oauth2_access_token_fetcher_impl.h
hujiajie/chromium-crosswalk
bsd-3-clause
4,050
120
codeparrot/github-code
809b34cb997620bde9b5bcb54dbddcff356fbc916349cd77cf95fe09b08b528e
/* * Copyright (c) 2010 Google 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, this list of conditio...
C
third_party/WebKit/Source/core/html/HTMLOutputElement.h
guorendong/iridium-browser-ubuntu
bsd-3-clause
2,980
76
codeparrot/github-code
f00428754578dbcec24902564ebae691afa11f156a4c2af53115f8ad223edf73
// natWin32Process.cc - Native side of Win32 process code. /* Copyright (C) 2003 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ #include <config.h> #include <platfo...
C++
tools/source/gcc-4.2.4/libjava/java/lang/natWin32Process.cc
shaotuanchen/sunflower_exp
bsd-3-clause
9,981
352
codeparrot/github-code
aba038f626b0061ee0d257c5d6ef0e429b2d2ced2d764cced1359f376bbc1e12
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef _MSPTRMAC_H_ #define _MSPTRMAC_H_ #define WAVEIN_NAME L"WaveIn Terminal" #ifdef __cplusplus c...
C
third_party/perl/c/i686-w64-mingw32/include/msptrmac.h
leighpauls/k2cro4
bsd-3-clause
1,883
54
codeparrot/github-code
b16d7320ed2b16da190247fd7f60b6c6ea0fe5a3b9b1d9b62e2bdab72217027d
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ #define CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ #include "base/callback_forward.h" #inc...
C
chrome/browser/ui/views/elevation_icon_setter.h
js0701/chromium-crosswalk
bsd-3-clause
1,394
42
codeparrot/github-code
77af5e93ad93bb233b82e16dddd4f9747de0eaf9fa0c1ce4973d31c7ba956dd1
//===-- PECallFrameInfo.h ---------------------------------------*- 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
third_party/llvm/lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.h
endlessm/chromium-browser
bsd-3-clause
1,613
48
codeparrot/github-code
54ba5eed5bb336428d2ebac7c364ac76c5bae992f4f029d46fe2a04a43517ba0
#!/usr/bin/env python # 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. """Defer to run_test_cases.py.""" import os import optparse import sys ROOT_DIR = os.path.dirname( os.path.dirname(os.path.di...
Python
tools/sharding_supervisor/sharding_supervisor.py
codenote/chromium-test
bsd-3-clause
2,601
84
codeparrot/github-code
37883f96afcabef65b173a1a1a2523d22a3f9576d389c47635742298a007f27e
// "Therefore those skilled at the unorthodox // are infinite as heaven and earth, // inexhaustible as the great rivers. // When they come to an end, // they begin again, // like the days and months; // they die and are reborn, // like the four seasons." // // - Sun Tsu, // "The Art of War" using System.Collections.G...
C#
Source/HtmlRenderer/Core/Dom/HtmlTag.cs
tinygg/graphic-HTML-Renderer
bsd-3-clause
3,728
115
codeparrot/github-code
57f27f59516de5b651602e0cf0f82f68975e57505984a6020f84f731e37e7b28
// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CONTENT_CAPTURE_CONTENT_CAPTURE_TASK_HISTOGRAM_REPORTER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CONTENT_CAPTURE...
C
third_party/blink/renderer/core/content_capture/content_capture_task_histogram_reporter.h
scheib/chromium
bsd-3-clause
3,760
84
codeparrot/github-code
484b128395b86287c171da3f4677d4042f69369e33c130baf276284fba33966f
/*===-- CIndexDiagnostics.cpp - Diagnostics C Interface ---------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
C++
softboundcets-llvm-clang34/tools/clang/tools/libclang/CIndexDiagnostic.cpp
santoshn/softboundcets-34
bsd-3-clause
16,186
468
codeparrot/github-code
46402bea2bc8388cdcea0f6312b7f57db20fe65bc50d8b98117e4b76d32db880
/*------------------------------------------------------------------------- * drawElements Quality Program Random Shader Generator * ---------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
C++
third_party/angle/third_party/VK-GL-CTS/src/framework/randomshaders/rsgUtils.cpp
endlessm/chromium-browser
bsd-3-clause
10,425
363
codeparrot/github-code
8161d1a9b67b8d08863e56b07c0da7d1395b9e9262af102a7267ee723376f219
'use strict'; import * as path from 'path'; import * as ts from 'typescript'; import * as dependentFilesUtils from './get-dependent-files'; import {Change, ReplaceChange} from './change'; import {NodeHost, Host} from '../lib/ast-tools'; /** * Rewrites import module of dependent files when the file is moved. * Als...
TypeScript
packages/@angular/cli/utilities/module-resolver.ts
FrozenPandaz/angular-cli
mit
4,595
111
codeparrot/github-code
871718a34684aff36a7016b361c3cf043bf3fd7fc09fd1dcbad9134db582da2b
/* * Groups - Enhancements to the normal ListViewGroup * * Author: Phillip Piper * Date: 22/08/2009 6:03PM * * Change log: * v2.3 * 2009-09-09 JPP - Added Collapsed and Collapsible properties * 2009-09-01 JPP - Cleaned up code, added more docs * - Works under VS2005 again * 2009-08-2...
C#
lib/ObjectListView/ObjectListView/ObjectListView/Implementation/Groups.cs
mdsolver/WurmAssistant3
mit
23,765
748
codeparrot/github-code
f8101168fd635669f43b1005477033f36a23fb841752d487b0b7165c449a47fe
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Hosting; namespace MovieHunter.API.Models { /// <summary> /// Manages the set of movies. /// </summary> public class MovieRepository { /// <summary> /// Crea...
C#
Sample Code/MovieHunter.API/Models/MovieRepository.cs
DeborahK/ab2015
mit
2,071
72
codeparrot/github-code
33cf1393e03776b9a03eaa038a511d13ef99ee2accce72a50f14837495aa3692
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // X509Store.cs // namespace System.Security.Cryptography.X509Certificates { using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security.Cryptogra...
C#
System/security/system/security/cryptography/x509/x509store.cs
akoeplinger/referencesource
mit
11,309
265
codeparrot/github-code
b3a3e2dd2510b0b5e5af2e7a705773a6f1db7d3ec0d949bea184e01878a84d08
require File.expand_path('../../../../spec_helper', __FILE__) require 'cgi' require File.expand_path('../fixtures/common', __FILE__) describe "CGI::HtmlExtension#checkbox_group" do before :each do @html = CGISpecs.cgi_new end describe "when passed name, values ..." do it "returns a sequence of 'checkbox...
Ruby
library/cgi/htmlextension/checkbox_group_spec.rb
askl56/rubyspec
mit
5,648
77
codeparrot/github-code
b449403e7658e91a94f0035642b85c9bd120d11d2df13085810b0e3f0f15d0e5
/** * Linear continuous scale * @module echarts/coord/scale/Ordinal * * http://en.wikipedia.org/wiki/Level_of_measurement */ // FIXME only one data define(function (require) { var zrUtil = require('zrender/core/util'); var Scale = require('./Scale'); var scaleProto = Scale.prototype; var Ordina...
JavaScript
作业(1)/echarts-master/src/scale/Ordinal.js
yjwz0428/yjwz0428.github.io
mit
2,374
102
codeparrot/github-code
c2362c37678d90587409d5772809ca90075d1e1daff1b4666a9f4c095aadc426
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/block.h" #include "hash.h" #include "tinyformat.h" #include ...
C++
src/primitives/block.cpp
droark/elements
mit
5,400
148
codeparrot/github-code
1569b155a22d3fded753615cfdbf96b0cc5d2ab286e0a219b71bce27c2231d69
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
Java
testing/openjdk2/nashorn/src/jdk/nashorn/internal/objects/NativeNumber.java
rokn/Count_Words_2015
mit
13,924
385
codeparrot/github-code
b84d525c668c089086aff8fae0e57eb737aa8ecc8e313b9c40ee2ea4d7af169e
# frozen_string_literal: true module RuboCop module Cop module Style # Access modifiers should be declared to apply to a group of methods # or inline before each method, depending on configuration. # # @example EnforcedStyle: group (default) # # # bad # # class...
Ruby
lib/rubocop/cop/style/access_modifier_declarations.rb
palkan/rubocop
mit
2,448
112
codeparrot/github-code
38be75c08a2821847a5a210b20767a9e5c7d1a6d537a75f7d76a83db6659465d
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel; use Symfony\Component\HttpClient\HttpClie...
PHP
src/Symfony/Component/HttpKernel/HttpClientKernel.php
mpdude/symfony
mit
3,934
113
codeparrot/github-code
8b38282531e6b487cd96a91580fd5b1949df3a9575b3c9a01fd4561d6375d204
// SigmaOnia.cc is a part of the PYTHIA event generator. // Copyright (C) 2013 Torbjorn Sjostrand. // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // Function definitions (not found in the header) for the // charmonia/bott...
C++
src/SigmaOnia.cc
mortenpi/pythia8
gpl-2.0
20,630
627
codeparrot/github-code
d3912879bb3eff252b1c9bc2526754d2fddd027247001603101e2fe9b24b4291
/* * Copyright (C) 2009-2013 Codership Oy <info@codership.com> * * $Id$ */ #ifndef __GU_FDESC_HPP__ #define __GU_FDESC_HPP__ #include "gu_exception.hpp" #include "gu_types.hpp" // for off_t, byte_t #include <string> namespace gu { class FileDescriptor { public: /* open existing file */ FileDescriptor ...
C++
galerautils/src/gu_fdesc.hpp
akopytov/galera
gpl-2.0
1,378
62
codeparrot/github-code