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 |
|---|---|---|---|---|---|---|---|---|
2e0de25bfd99243d44754903ebe506f69de6cafa8aaade0b2a2237227efc21f5 | // Accord.NET Sample Applications
// http://accord.googlecode.com
//
// Copyright © César Souza, 2009-2012
// cesarsouza at gmail.com
//
// 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 F... | C# | Samples/Neuro/Deep Learning/ViewModel/UseViewModel.cs | DiegoCatalano/framework | lgpl-2.1 | 3,188 | 103 | codeparrot/github-code |
9364d97fd323adbe80994a4d64edfe92b667d3c81207dda033fae0dae9c8505b | /*
* Copyright 2013 LinkedIn, 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/java/voldemort/client/rebalance/task/StealerBasedRebalanceTask.java | bitti/voldemort | apache-2.0 | 4,789 | 129 | codeparrot/github-code |
1f7568c3fe62585d5aeffaf8332fac4d187edc30e6d7e2491f55363da3df1e09 | /* Copyright 2019 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/compiler/mlir/tensorflow/utils/convert_type.h | karllessard/tensorflow | apache-2.0 | 2,434 | 56 | codeparrot/github-code |
99d0a690993045d0919abafcc123c7aeb0dcab0cfda70cb8e101871d375dac8a | /*
* 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 | src/components/org/apache/jmeter/control/ForeachController.java | hizhangqi/jmeter-1 | apache-2.0 | 8,665 | 285 | codeparrot/github-code |
2c471cc3701f2ac160350f007aba37c20134efe847b5d65ad6cd7f596b839025 | /* Copyright (c) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java | java/sample/gbase/cmdline/GetMediaCommand.java | vanta/gdata-java-client | apache-2.0 | 1,357 | 48 | codeparrot/github-code |
579848073683df9045de4df983787cdc3bfdc28217c93f92daf9640b84e67188 | //===--- PlistReporter.cpp - ARC Migrate Tool Plist Reporter ----*- 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++ | lib/ARCMigrate/PlistReporter.cpp | apple/swift-clang | apache-2.0 | 3,727 | 125 | codeparrot/github-code |
183d3aa0b5350fbfcb571168630211b5a1a9b1ee01a6eadc3c30ae8d709f2600 | <?php
/**
* File containing the ezcDocumentOdtElementWhitespaceFilter class.
*
* @package Document
* @version 1.3.1
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
* @access private
*/
/**
* Filter for ODT <text:s/>, <text:tab/>... | PHP | modules/scheduler/library/ezcomponents/Document/src/document/xml/odt/filter/element/whitespace.php | mgrauer/qibench | bsd-3-clause | 1,814 | 70 | codeparrot/github-code |
c9247c6ef10d9e51d84b68c675b43776400f98d0688616d9bcca12f2231303ea | /* (C) 1999-2001 Paul `Rusty' Russell
* (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/types.h>
... | C | unionfs-3.10.y/net/ipv6/netfilter/nf_defrag_ipv6_hooks.c | prasidh09/cse506 | gpl-2.0 | 3,428 | 141 | codeparrot/github-code |
ce36d26c54007166f5d49c94ff5813e1b52114cf28302b4028cb7cd4e5b25461 | /* gtkcellareacontext.h
*
* Copyright (C) 2010 Openismus GmbH
*
* Authors:
* Tristan Van Berkom <tristanvb@openismus.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; ... | C | src/gtk/include/linux/gtk-3.0/gtk/gtkcellareacontext.h | neohung/smallgame | mit | 7,350 | 147 | codeparrot/github-code |
c24083b5a157242c14a8e5493c0fb49ee3abb98fe1dad90a529748ca49b209bc | ! Program to test the initialisation range of enumerators
! and kind values check
program main
implicit none
enum, bind (c)
enumerator :: red , yellow =255 , blue
end enum
enum, bind (c)
enumerator :: r , y = 32767, b
end enum
enum, bind (c)
enumerator :: aa , bb = 65535, cc
end enum
... | FORTRAN | gcc/testsuite/gfortran.fortran-torture/execute/enum_3.f90 | Gurgel100/gcc | gpl-2.0 | 1,063 | 58 | codeparrot/github-code |
bfbb1a8584f84b7b9adfdaa6cbe2c369bcb3d39e269637f27507693e1fe8b34d | /*
* Copyright (c) 2008 Patrick McHardy <kaber@trash.net>
* Copyright (c) 2013 Pablo Neira Ayuso <pablo@netfilter.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Dev... | C | net/bridge/netfilter/nf_tables_bridge.c | zhiyisun/linux | gpl-2.0 | 2,059 | 80 | codeparrot/github-code |
2ac9fcfef21d52407e5d259db71db58188a3717c8b2335dca99002cec5c75816 | /* This testcase is part of GDB, the GNU debugger.
Copyright 2004, 2007-2012 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the Licens... | C | gdb/testsuite/gdb.base/call-sc.c | ILyoan/gdb | gpl-2.0 | 1,580 | 79 | codeparrot/github-code |
da6da4d2aee8be09f0215421ba6c2359a89d12deeb2e5d385aa89db818d6653c | /* SPDX-License-Identifier: LGPL-2.1+ */
#include <getopt.h>
#include "macro.h"
#include "strv.h"
#include "verbs.h"
static int noop_dispatcher(int argc, char *argv[], void *userdata) {
return 0;
}
#define test_dispatch_one(argv, verbs, expected) \
optind = 0; \
assert_se(dispatch_verb(strv_... | C | src/test/test-verbs.c | splantefeve/systemd | gpl-2.0 | 2,142 | 64 | codeparrot/github-code |
5bbdb64dbe52cb4f23321cf390fb7cbebcdff8328b2be5b15bce3a45b1ef9f4a | /*
* TCP over IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on:
* linux/net/ipv4/tcp.c
* linux/net/ipv4/tcp_input.c
* linux/net/ipv4/tcp_output.c
*
* Fixes:
* Hideaki YOSHIFUJI : sin6_scope_id support
* YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket ... | C | net/ipv6/tcp_ipv6.c | sria91/linux | gpl-2.0 | 51,054 | 1,965 | codeparrot/github-code |
ac43d5e84bcd044634e4e1eb6c7b2b74de0c55fe30c9de17491f97f513e32151 | <?php
/**
* Shows a shipping line
*
* @var object $item The item being displayed
* @var int $item_id The id of the item being displayed
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<tr class="shipping <?php echo ( ! empty( $class ) ) ? esc_attr( $class ) : ''; ?>" data-order_item_id="<?php echo esc_attr( $item_i... | PHP | wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-shipping.php | pcutler/stoneopen | gpl-2.0 | 5,212 | 111 | codeparrot/github-code |
f18950a42dbde796e226b0752187a790ed49d895eb8c194a777186b06c2e6891 | /*
Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
obtain a copy of the License at
http://www.imagemagick.org/script/license.php
Unless required ... | C | staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/ImageMagick/magick/segment.h | blackzw/openwrt_sdk_dev1 | gpl-2.0 | 1,103 | 36 | codeparrot/github-code |
0ecd13257f585e0d9be13e3fc94b47f2587ed40148053b57225c4ac5ec457727 | /* *****************************************************************************
* A.L.E (Arcade Learning Environment)
* Copyright (c) 2009-2013 by Yavar Naddaf, Joel Veness, Marc G. Bellemare and
* the Reinforcement Learning and Artificial Intelligence Laboratory
* Released under the GNU General Public Lice... | C++ | src/games/supported/Asteroids.hpp | soumith/Arcade-Learning-Environment | gpl-2.0 | 1,679 | 61 | codeparrot/github-code |
b2b93821c0339793acc419cabd411e70f9bbcb88350e6c9fa2c829e1f33cbe80 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_languages
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryI... | PHP | administrator/components/com_languages/services/provider.php | Hackwar/joomla-cms | gpl-2.0 | 1,620 | 56 | codeparrot/github-code |
5273e4d89976e81978e4c5cea6f7bc17fd66f2790b3bd2f1c550c5e86f4a888a | /**
* Plugin that highlights matched word partials in a given element.
* TODO: Add a function for restoring the previous text.
* TODO: Accept mappings for converting shortcuts like WP: to Wikipedia:.
*/
( function ( $ ) {
$.highlightText = {
// Split our pattern string at spaces and run our highlight function ... | JavaScript | resources/jquery/jquery.highlightText.js | IEEEBerkeley/anabolic_window | gpl-2.0 | 2,750 | 70 | codeparrot/github-code |
b7856f1deee274b4e6001f8e33819a507ba521e82d1d6916567153a177d203e0 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.UnitTests.Emit;
using Microsoft.... | C# | src/Compilers/CSharp/Test/Emit/CodeGen/CompoundAssignmentForDelegate.cs | paladique/roslyn | apache-2.0 | 24,509 | 970 | codeparrot/github-code |
9a8d0519ed10c2f070b8eb7ee1163bda589340c0dbf2cf4490e083e2f0d6a5b2 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | Java | src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java | gpolitis/jitsi | apache-2.0 | 9,612 | 259 | codeparrot/github-code |
f0f321ca2a7a73c4b406d7c58bb4bd991e3c46f78286f008a49287c94d4ce9a2 | /*
* 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 | core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregator.java | martinstuga/elasticsearch | apache-2.0 | 9,668 | 201 | codeparrot/github-code |
ca7ed0e414362f9778aa0287b6bef888fed6ceab7fb8f9736eb1973bddfaf9b3 | /**
* 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 | jstorm-core/src/main/java/com/alibaba/jstorm/container/cgroup/CgroupCoreFactory.java | yangcwGIT/jstorm | apache-2.0 | 3,072 | 79 | codeparrot/github-code |
2e2dc0c803f00d2a4e032de83b85edd68ef31e10dc5cf0982846881f9ea8ce3c | /* 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
* distributed... | Java | engine-rest/src/main/java/org/camunda/bpm/engine/rest/AuthorizationRestService.java | rainerh/camunda-bpm-platform | apache-2.0 | 2,439 | 70 | codeparrot/github-code |
3150a122bcebf31fd41b1dcef4e62cdcad9676ffa4c85257c4470a0e75ae15e2 |
/*
*
* 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 | proton-j/src/main/java/org/apache/qpid/proton/codec/messaging/PropertiesType.java | mbroadst/debian-qpid-cpp-old | apache-2.0 | 6,304 | 206 | codeparrot/github-code |
3f2e08b4378d58964009559d77dfc65ae4d10ac8d6ec53cf3fa7b619609c6cf7 | /**
* Copyright 2007-2016, Kaazing 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.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Java | transport/wsn/src/test/java/org/kaazing/gateway/transport/wsn/autobahn/framing/FramingTextMessagesIT.java | mgherghe/gateway | apache-2.0 | 3,302 | 99 | codeparrot/github-code |
0366ab41ed03460b94bb2fed01e50f4af3d8d2cbb4632a4f6abbdaee30e1b33d | package org.newdawn.slick.geom;
import org.newdawn.slick.Image;
import org.newdawn.slick.ShapeFill;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureImpl;
import org.newdawn.slick.opengl.renderer.LineStripRenderer;
import org.newdawn.slick.opengl.renderer.Renderer;
import org.newdawn.sli... | Java | src/main/java/org/newdawn/slick/geom/ShapeRenderer.java | TomyLobo/Slick | bsd-3-clause | 12,251 | 392 | codeparrot/github-code |
96070a2a83bc1603b3d572e978d3b2b4147758bc5e7b9a3aae40ba8274aeb9bd | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | C++ | third_party/libc++/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex.pass.cpp | mxOBS/deb-pkg_trusty_chromium-browser | bsd-3-clause | 1,069 | 49 | codeparrot/github-code |
da92a1d3c5eceb346556b1b924ab12ab4d56f8d6bdbc4be028e4397b5803d056 | /* SF16-FMR2 and SF16-FMD2 radio driver for Linux
* Copyright (c) 2011 Ondrej Zary
*
* Original driver was (c) 2000-2002 Ziglio Frediano, freddy77@angelfire.com
* but almost nothing remained here after conversion to generic TEA575x
* implementation
*/
#include <linux/delay.h>
#include <linux/module.h> /* Modules... | C | unionfs-3.10.y/drivers/media/radio/radio-sf16fmr2.c | prasidh09/cse506 | gpl-2.0 | 8,787 | 348 | codeparrot/github-code |
6cc4d86a1e3c13b2f976deb9317a751755994db4ffbba61734d4d2b580918821 | #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc.
#
# This file is part of Ansible
#
# Ansible 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 late... | Python | lib/ansible/modules/network/exos/exos_facts.py | thaim/ansible | mit | 5,863 | 192 | codeparrot/github-code |
2f0b6ee8c5ce67842aa257cedf5a0f4e33712daa39081e5c9cf152fea80d7191 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | C++ | engines/mutationofjb/tasks/conversationtask.cpp | alexbevi/scummvm | gpl-2.0 | 9,462 | 286 | codeparrot/github-code |
2b6a514ece3ac3ca6f40260cc16f40cc0b443c4f54cdd2f42449326ae44e3ccf | /* JWindow.java --
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (... | Java | src/classpath/javax/swing/JWindow.java | taciano-perez/JamVM-PH | gpl-2.0 | 8,145 | 291 | codeparrot/github-code |
6a87f9b364ff2fc72f64c8c97267a1149173ce589823dcde101bbbf6be6b9abe | include RbCommonHelper
include RbFormHelper
include ProjectsHelper
class RbReleasesMultiviewController < RbApplicationController
unloadable
def index
end
def show
respond_to do |format|
format.html { render }
end
end
def new
@release_multiview = RbReleaseMultiview.new(:project => @proj... | Ruby | app/controllers/rb_releases_multiview_controller.rb | efigence/redmine_backlogs | gpl-2.0 | 1,400 | 53 | codeparrot/github-code |
5ccb0b615bdff54ca16d9cc930356e02800d27de251c9f6e9dee43972cd22cd0 | <?php
/**
* Link/Bookmark API
*
* @package WordPress
* @subpackage Bookmark
*/
/**
* Retrieve Bookmark data
*
* @since 2.1.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int|stdClass $bookmark
* @param string $output Optional. The required return type. One of OBJECT, AR... | PHP | wp/wp-includes/bookmark.php | CityOfPhiladelphia/phila.gov | gpl-2.0 | 15,332 | 469 | codeparrot/github-code |
d1e5ce9165ab01613b4ab0ff0a7b0965f67dc09125b65f64efe240235b9df3fc | #pragma once
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later ver... | C | xbmc/music/MusicInfoLoader.h | TRex22/xbmc | gpl-2.0 | 1,728 | 57 | codeparrot/github-code |
271cf4eb06e309f45bf9a1c1d0e8dbf2bbbc8eb08f241db8e492523fbcc9189e | /*
* 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 | java/idea-ui/src/com/intellij/projectImport/ProjectFormatPanel.java | Lekanich/intellij-community | apache-2.0 | 2,323 | 71 | codeparrot/github-code |
e7ef2fcc3d8d54d3e6e40e8d2cf61b909e656f2f1d9b194d106ae6601f1bbdff | /*******************************************************************************
* Copyright (c) 2006 Oracle Corporation 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 i... | Java | plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/common/ui/assist/FieldAssistAdapter.java | Drifftr/devstudio-tooling-bps | apache-2.0 | 2,503 | 76 | codeparrot/github-code |
082be00daf90b4c93991f48f25adaef70287394d76e7d18b8a36bfca158185c3 | package org.nutz.dao.test.meta;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
@Table("t_simple_pojo")
public class SimplePOJO {
@Id
private long id;
@Co... | Java | test/org/nutz/dao/test/meta/SimplePOJO.java | sdgdsffdsfff/nutz | apache-2.0 | 818 | 47 | codeparrot/github-code |
6e1fa369b1b70bb371d5199739d79ee219d0760ce9092767267a3affeb5d41e4 | /*<license>
Copyright 2004 - $Date$ by PeopleWare n.v..
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | Java | java/vernacular/semantics/trunk/src/test/java/org/ppwcode/vernacular/semantics_VI/bean/stubs/StubRousseauBeanB.java | jandppw/ppwcode-recovered-from-google-code | apache-2.0 | 995 | 40 | codeparrot/github-code |
0150570c642d5d5f50322f363c2269996599e64a726d612bf85332b82254c51b | /*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
*... | Java | src/org/parosproxy/paros/extension/manualrequest/ExtensionManualRequestEditor.java | 0xkasun/zaproxy | apache-2.0 | 6,249 | 196 | codeparrot/github-code |
295f913520b401673a7bafd7319e856a71dc8d22830125b3052687340607ba99 | /*
* Copyright (c) 2013 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 in ... | Java | src/com/google/cloud/backend/spi/SubscriptionUtility.java | kleopatra999/solutions-mobile-backend-starter-java | apache-2.0 | 5,854 | 158 | codeparrot/github-code |
bb429ec55cd821da59e15391583e2e08e14519e25f6349f5461515d7d7a428e1 | /* Copyright 2013 Google Inc. All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
/* Data model for a font file in sfnt format, reading and writing functions and
accessors for the glyph data. */
#ifndef WOFF2_FONT_H_
#define WOFF2... | C | third_party/woff2/src/font.h | chromium/chromium | bsd-3-clause | 3,509 | 106 | codeparrot/github-code |
5f69cff11dc5cd083fd38ddaeff5a953680dfe4f32506514f3e99cd5db7b1cec | var leafletDirective = angular.module("leaflet-directive", []);
leafletDirective.directive('leaflet', [
'$http', '$log', '$parse', '$rootScope', function ($http, $log, $parse, $rootScope) {
var defaults = {
maxZoom: 14,
minZoom: 1,
doubleClickZoom: true,
tileLayer: 'http://{s}.... | JavaScript | ajax/libs/ui-leaflet/0.5.0/angular-leaflet-directive.js | him2him2/cdnjs | mit | 19,188 | 478 | codeparrot/github-code |
a6b8c814c98eeea08d7df883fb9a0b55e51b1173a50c2e73e8afe52089a27ade | /* packet-dpvreq.c
* Routines for DOCSIS 3.0 DOCSIS Path Verify Response Message dissection.
* Copyright 2010, Guido Reismueller <g.reismueller[AT]avm.de>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can re... | C | plugins/docsis/packet-dpvreq.c | frenos/wireshark | gpl-2.0 | 5,712 | 176 | codeparrot/github-code |
2a9f76cee00d5434ec38f1086a210f15f50a56478b0a0e73bc422ff1e732a774 | /*
* Copyright (c) 2007, 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/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/ResourceManager.java | FauxFaux/jdk9-jdk | gpl-2.0 | 2,603 | 78 | codeparrot/github-code |
4f98575c087be029b634ab73feea002ff76ec106e9d62a9eb72abade75c91930 | /*
* Routines to compress and uncompress tcp packets (for transmission
* over low speed serial lines).
*
* Copyright (c) 1989 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this pa... | C | kernel/linux/drivers/net/slhc.c | z3bu/AH4222 | gpl-2.0 | 20,403 | 796 | codeparrot/github-code |
7a16066c91df5adb2137281a7e66f2d8ab6115a81b082d12f7ea5074770cd686 | /**
@file Vector4.h
Homogeneous vector class.
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
@created 2002-07-09
@edited 2008-11-01
Copyright 2000-2009, Morgan McGuire.
All rights reserved.
*/
#ifndef G3D_Vector4_h
#define G3D_Vector4_h
#include "G3D/platform.h"
#... | C | dep/include/g3dlite/G3D/Vector4.h | natedahl32/portalclassic | gpl-2.0 | 20,039 | 717 | codeparrot/github-code |
113b3dbc7896b17b84e093357933d505bae6899a2db218c42489310d1a864f6f | /*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2000-2001 Qualcomm Incorporated
Copyright 2010, Sony Ericsson Mobile Communications AB
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the... | C | net/bluetooth/l2cap.c | androidarmv6/android_kernel_semc_msm7x27 | gpl-2.0 | 63,354 | 2,826 | codeparrot/github-code |
85ab6e84cf4846b772f6730e928ab05ccee7821e4e8767fe38e0bd2deef4139c | /* PR optimization/13985 */
/* Copied from gcc.c-torture/compile/930621-1.c */
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-options "-O3 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
/* { dg-add-options stack_size } */
#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
# define BYTEMEM_S... | C | gcc/testsuite/gcc.dg/loop-3.c | Gurgel100/gcc | gpl-2.0 | 902 | 47 | codeparrot/github-code |
1cf91d43b16b08510249741ed3c14a3dc2caf2bfe81488360f0b693effa8e42d | /**
@file AreaMemoryManager.cpp
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
@created 2009-01-20
@edited 2009-01-20
Copyright 2000-2009, Morgan McGuire.
All rights reserved.
*/
#include "G3D/AreaMemoryManager.h"
#include "G3D/System.h"
namespace G3D {
AreaMemoryManager::B... | C++ | dep/src/g3dlite/AreaMemoryManager.cpp | natedahl32/portalclassic | gpl-2.0 | 1,793 | 88 | codeparrot/github-code |
d4a56ea8a6a23b57eea3aafdef1f727f9014da9615d23a55c74cbce3d5c01bb7 | /* Software floating-point emulation.
Definitions for IEEE Quad Precision.
Copyright (C) 1997-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com),
Jakub Jelinek (jj@ultra.linux.cz),
David S. Miller (davem@redhat.com) and
P... | C | softfpu/quad.h | ensc/dietlibc | gpl-2.0 | 10,179 | 331 | codeparrot/github-code |
32a15228375d8f0f58ebd1a87f41c0b8c0162206991485b668254cb6fc1ef402 | /* Analog Devices 1889 audio driver
*
* This is a driver for the AD1889 PCI audio chipset found
* on the HP PA-RISC [BCJ]-xxx0 workstations.
*
* Copyright (C) 2004-2005, Kyle McMartin <kyle@parisc-linux.org>
* Copyright (C) 2005, Thibaut Varene <varenet@parisc-linux.org>
* Based on the OSS AD1889 driver by Ran... | C | sound/pci/ad1889.c | JonnyH/pandora-kernel | gpl-2.0 | 27,091 | 1,076 | codeparrot/github-code |
c811e3cc0740f2a0ca3bcb143500ef6f4f0d95370cd8e0eb8f8189b95b5e4931 | /*
* Copyright (c) 1982, 1986, 1988, 1990, 1993
* The Regents of the University of California. 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 reta... | C | cpukit/libnetworking/netinet/ip_output.c | atgreen/RTEMS | gpl-2.0 | 32,713 | 1,334 | codeparrot/github-code |
f8bff3efdffea8ce31302c4f8528fbb033f905449a93c81ca49ee557341f9acd | //
// detail/dev_poll_reactor.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST... | C++ | xray/SDK/include/boost/asio/detail/dev_poll_reactor.hpp | hpl1nk/nonamegame | gpl-3.0 | 7,641 | 215 | codeparrot/github-code |
e1aec144c7b5024d4c5423a345d5a6f8082921adff40b17372f83fb99bd26810 | /*
* Copyright (c) 2008-2015 Emmanuel Dupuy
* This program is made available under the terms of the GPLv3 License.
*/
package org.jd.gui.service.type;
import groovyjarjarasm.asm.ClassReader;
import groovyjarjarasm.asm.Opcodes;
import groovyjarjarasm.asm.tree.ClassNode;
import groovyjarjarasm.asm.tree.FieldNode;
im... | Java | services/src/main/java/org/jd/gui/service/type/ClassFileTypeFactoryProvider.java | trfiladelfo/jd-gui | gpl-3.0 | 13,565 | 323 | codeparrot/github-code |
8fb347824c8e9ebadf148edb7e050db04eb7e732642a318fb9ec9448eeefc682 | # 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 applica... | Python | tensorflow/contrib/sparsemax/python/ops/sparsemax.py | ghchinoy/tensorflow | apache-2.0 | 3,656 | 95 | codeparrot/github-code |
5be9dbf5710581d1601d1f360833fab66a36ec6c56cc8bc372b75666f55335c5 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyEndpoint.java | sabre1041/camel | apache-2.0 | 6,630 | 162 | codeparrot/github-code |
8dfd873dd8a1e24a3a806ce7b847c743491adbf18e06e72e2e7d81209625666d | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* 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 ... | Java | src/org/zaproxy/zap/extension/script/OptionsScriptTableModel.java | profjrr/zaproxy | apache-2.0 | 2,653 | 103 | codeparrot/github-code |
ae795ed124d17e8e65ff427ea3eac6b08f6555d2265ed3e94748a9f18ddf4342 | /*
* 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 | runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/TriggerTranslationTest.java | wtanaka/beam | apache-2.0 | 4,942 | 113 | codeparrot/github-code |
39bac2003cc92de32e7cb0e598871e03ca29081d830bad15ac87fee9db9d59e5 | package ic2.api.event;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import cpw.mods.fml.common.eventhandler.Cancelable;
import net.minecraftforge.event.world.WorldEvent;
/**
* A bunch of Events to handle the... | Java | src/main/java/ic2/api/event/LaserEvent.java | ZanyLeonic/Balloons | mit | 4,508 | 115 | codeparrot/github-code |
53c2f3060a10ef31b3a12278b329cb87659dc9c0e22d8ddb5050b81d3f12a4c9 | /*
* Copyright (c) 1996, 2008, 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/openjdk/jdk/src/share/classes/sun/rmi/transport/tcp/ConnectionMultiplexer.java | rokn/Count_Words_2015 | mit | 16,501 | 460 | codeparrot/github-code |
f6385ba32df31b3e76b3507fb4dfa3aefba9f7b75d8d86cdd2e860b72aa32072 | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Horizontal Page Break
*/
// Register a plugin named "pagebreak".
CKEDITOR.plugins.add( 'pagebreak',
{
init : function( editor )
{
// Registe... | JavaScript | web/bundles/expidian/js/ckeditor/plugins/pagebreak/plugin.js | adefreitea/expidian | mit | 2,642 | 98 | codeparrot/github-code |
c46155559bd094cfd838af6f8f7e07e4bb4ffc5a9cfcf96f677eb32aaf95b42f | /**
* Copyright (c) 2010-2016, 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.lcn/src/main/java/org/openhab/binding/lcn/connection/ConnectionSettings.java | evansj/openhab | epl-1.0 | 6,849 | 203 | codeparrot/github-code |
3a7d92b824758426a1f1d0daadf39072d225347718f28137d60741cb5e850d24 | // license:BSD-3-Clause
// copyright-holders: F. Ulivi
/*********************************************************************
82900.h
82900 module (CP/M auxiliary processor)
*********************************************************************/
#ifndef MAME_BUS_HP80_IO_82900_H
#define MAME_BUS_HP80_IO_82900... | C | src/devices/bus/hp80_io/82900.h | johnparker007/mame | gpl-2.0 | 1,820 | 68 | codeparrot/github-code |
673a3833bbdb315330e971071d6f1966d194d73124ea6aebb6751c5109af8a14 | VERSION = 3
PATCHLEVEL = 4
SUBLEVEL = 0
EXTRAVERSION =
NAME = Saber-toothed Squirrel
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this ... | Makefile | Makefile | FrancescoCG/CrazySuperKernel-CM13-KLTE-NEW-REBASE | gpl-2.0 | 54,144 | 1,587 | codeparrot/github-code |
99cf61768db8a423356fa0399e4709941e0d6584e43844b400ad63f8d74ff996 | /*
Unix SMB/CIFS implementation.
Test NTP authentication support
Copyright (C) Andrew Bartlet <abartlet@samba.org> 2008
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 ... | C | release/src/router/samba-3.5.8/source4/torture/ntp/ntp_signd.c | ghmajx/asuswrt-merlin | gpl-2.0 | 9,354 | 270 | codeparrot/github-code |
5c93e332f64aa7c997cbf4a4a554d4e8c88ae9e229310f1acaf3c33bb3d21766 | // license:BSD-3-Clause
// copyright-holders:Phil Stroffolino
/*************************************************************************
Munch Mobile
*************************************************************************/
#ifndef MAME_INCLUDES_MUNCHMO_H
#define MAME_INCLUDES_MUNCHMO_H
#pragma once
#include "... | C | src/mame/includes/munchmo.h | johnparker007/mame | gpl-2.0 | 2,834 | 97 | codeparrot/github-code |
991a8183407a513ea3a95beabbb361b34c9eee6cbf9672b11e6c7c82fde00e0c | // license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
#ifndef MAME_INCLUDES_FLSTORY_H
#define MAME_INCLUDES_FLSTORY_H
#pragma once
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
#include "sound/msm5232.h"
#include "machine/taito68705interface.h"
#include "sound/ta7630.h"
#include "sound/ay891... | C | src/mame/includes/flstory.h | johnparker007/mame | gpl-2.0 | 4,169 | 128 | codeparrot/github-code |
46c54e4e2c740afd9d993199a87a876f38834f523a77eb980515474988dff8dc | // license:BSD-3-Clause
// copyright-holders:Brad Oliver
/***************************************************************************
arkanoid.cpp
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "inclu... | C++ | src/mame/video/arkanoid.cpp | johnparker007/mame | gpl-2.0 | 5,337 | 218 | codeparrot/github-code |
2d8c2d9716ad9eb38a73b8e955d7fe56a28d6e3c2ba179a13e632fa0a856a652 | /*
* aeskeywrap.c
* Perform RFC3394 AES-based key wrap and unwrap functions.
*
* Copyright (C) 2014, Broadcom Corporation
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of this file may not be disclosed to third parties, copied
* or duplicated in... | C | release/src-rt-7.x.main/src/bcmcrypto/aeskeywrap.c | wkritzinger/asuswrt-merlin | gpl-2.0 | 7,588 | 287 | codeparrot/github-code |
8dcbe0fb9206b471e90daccce856f5e8a289be5317ce6cedf32f1a648cf0ef74 | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | Python | lib/github/PaginatedList.py | cytec/SickRage | gpl-3.0 | 7,862 | 219 | codeparrot/github-code |
924420a7a70b7389e415633e87a08bb436f84d90d2418a1244ad9054c63b37d1 | define(["dojo/_base/declare","./AnalogIndicatorBase"],
function(declare, AnalogIndicatorBase) {
return declare("dojox.gauges.AnalogArrowIndicator", [AnalogIndicatorBase],{
// summary:
// An indicator for the AnalogGauge that draws an arrow. The arrow is drawn on the angle that corresponds
// to the value of the ... | JavaScript | www/js/dojox/gauges/AnalogArrowIndicator.js | avz-cmf/zaboy-middleware | gpl-3.0 | 1,598 | 48 | codeparrot/github-code |
d172ef3120a3d90e66e77a22e0f7f6f3f0c1a27748f0921bf2c70c3d317e75e8 | /*
* Copyright 2013 Orient Technologies.
* Copyright 2013 Geomatys.
*
* 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 re... | Java | core/src/main/java/com/orientechnologies/orient/core/sql/method/misc/OSQLMethodJavaType.java | sanyaade-g2g-repos/orientdb | apache-2.0 | 1,305 | 43 | codeparrot/github-code |
d848cd7ce6cba77de8d6bd5ff26313ff1a935b4c6cc05bb929e00cb9ce5895ab | #!/bin/bash
#
# Copyright 2015 The Bazel 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... | Shell | tools/cpp/osx_cc_wrapper.sh | Asana/bazel | apache-2.0 | 2,701 | 95 | codeparrot/github-code |
4b8bb1019dc22b0bdf2d8130edd560b5b729d0d6571338e88396f8a44ff9ccde | // 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.
#nullable disable
using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Micros... | C# | src/EditorFeatures/CSharpTest/Diagnostics/Configuration/ConfigureSeverity/CSharpCodeStyleOptionBasedSeverityConfigurationTests.cs | shyamnamboodiripad/roslyn | apache-2.0 | 9,766 | 309 | codeparrot/github-code |
a46107baff2ac92294d1e77b4c525be174612b86a0865a59ea6823f119cbb46b | using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OpenIdConnect;
using System.Web;
using System.Web.Mvc;
namespace OfficeDevPnP.MSGraphAPIGroups.Controllers
{
public class AccountController : Controller
{
public void SignIn()
{
if (!Request.IsAuthenticated)
... | C# | Samples/MicrosoftGraph.Office365.GroupsExplorer/Controllers/AccountController.cs | yagoto/PnP | mit | 1,099 | 38 | codeparrot/github-code |
c0cc26afa3631c5397ecba7e43af7808011c12587a732deba49393e173fab23c | /* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
/**
* @class The Yahoo global namespace
*/
var YAHOO = function() {
return {
/**
* Yahoo presentation platform utils namespace
*/
util: {},
/**
* Yahoo presentation platform widgets namespace
... | JavaScript | srh/public/js/grid/calendar/YAHOO.js | ArrozAlba/huayra | gpl-2.0 | 1,547 | 61 | codeparrot/github-code |
928be11fcb9ae30652d7d50b29e5fc9dca9c153cdc845c9368e23317de61d910 | // SPDX-License-Identifier: GPL-2.0
/*
* Hardware monitoring driver for Maxim MAX16508 and MAX16601.
*
* Implementation notes:
*
* This chip series supports two rails, VCORE and VSA. Telemetry information
* for the two rails is reported in two subsequent I2C addresses. The driver
* instantiates a dummy I2C clien... | C | drivers/hwmon/pmbus/max16601.c | openwrt-es/linux | gpl-2.0 | 9,844 | 362 | codeparrot/github-code |
0fd98bd0be5f23d0da2c79662d6ff7cf96a4352dda43de14d75cf3aa1f2c4448 | /*
---
name: Picker.Date
description: Creates a DatePicker, can be used for picking years/months/days and time, or all of them
authors: Arian Stolwijk
requires: [Picker, Picker.Attach, Locale.en-US.DatePicker, More/Locale, More/Date]
provides: Picker.Date
...
*/
(function(){this.DatePicker=Picker.Date=new Class({Extend... | JavaScript | components/com_roksprocket/fields/filters/js/Picker.Date.js | studiochakra/writopialab.com | gpl-2.0 | 11,806 | 66 | codeparrot/github-code |
7425dde2d116e01024562e993e0f9edd5c97d7f55529dc6ce98b622fe56fdd9a | // 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/ui/webui/chromeos/login/oobe_ui.h"
#include "ash/ash_switches.h"
#include "base/command_line.h"
#include "base/logging.h"
#i... | C++ | external/chromium_org/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc | qtekfun/htcDesire820Kernel | gpl-2.0 | 18,995 | 495 | codeparrot/github-code |
1010792dbcb7fec4bc8aede1731557b0d421793b25e2b23634f40cc9823ed3c2 | // license:BSD-3-Clause
// copyright-holders:Tyler J. Stachecki,Ryan Holtz
// LBV, LDV, LLV, LSV, SBV, SDV, SLV, SSV
inline void vec_lbdlsv_sbdlsv(uint32_t iw, uint32_t rs)
{
const uint32_t shift_and_idx = (iw >> 11) & 0x3;
rsp_vec_t dqm = _mm_loadl_epi64((rsp_vec_t *) (m_vec_helpers.bdls_lut[shift_and_idx]));
con... | C | src/devices/cpu/rsp/vldst.h | johnparker007/mame | gpl-2.0 | 2,127 | 70 | codeparrot/github-code |
c08967cb418912f75fce05be304f8e93d742a5a39ce00cbbbf2ca3761293a1f0 | /* This file contains an example program from The Little Book of
Semaphores, available from Green Tea Press, greenteapress.com
Copyright 2014 Allen B. Downey
License: Creative Commons Attribution-ShareAlike 3.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#define NUM... | C | lecture21/counter_mutex.c | jackfan108/SoftwareSystems | gpl-3.0 | 2,620 | 141 | codeparrot/github-code |
3e46fbe6be58538ea089b8d9f05d31323c2328c67147f9d837c84d04754686e8 | /*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointAutoConfigurationTests.java | tiarebalbi/spring-boot | apache-2.0 | 4,067 | 110 | codeparrot/github-code |
7e7ae7ae1df08d201a51450b3ff2ebf5c005cb21ad8db745ba91fee4916ba9b0 | import os
import shutil
import tempfile
import vmprof
import prof_six as six
from _prof_imports import TreeStats, CallTreeStat
class VmProfProfile(object):
""" Wrapper class that represents VmProf Python profiling backend with API matching
the cProfile.
"""
def __init__(self):
self.stats... | Python | python/helpers/profiler/vmprof_profiler.py | siosio/intellij-community | apache-2.0 | 2,691 | 104 | codeparrot/github-code |
6bdf25797879fe52c4452840507d3c5d3e108e2eae69e0941482184448705ad7 | package test.verify;
import org.testng.Assert;
import org.testng.TestListenerAdapter;
import org.testng.TestNG;
import org.testng.annotations.Test;
import test.SimpleBaseTest;
public class VerifyTest extends SimpleBaseTest {
private void runTest(Class<?> cls, int expected) {
TestNG tng = create(cls);
Test... | Java | src/test/java/test/verify/VerifyTest.java | s2oBCN/testng | apache-2.0 | 1,103 | 48 | codeparrot/github-code |
8ef1d22c61a68910778ca627bcb4f25732dbe6830d4fa62298feac1a3b7893c8 | <?php
final class PhutilFileLockTestCase extends PhutilTestCase {
public function testLockTesting() {
// We should be able to acquire locks.
$file = new TempFile();
$this->assertTrue($this->lockTest($file));
$this->assertTrue($this->lockTest($file));
}
public function testLockHolding() {
... | PHP | src/filesystem/__tests__/PhutilFileLockTestCase.php | christopher-johnson/libphutil | apache-2.0 | 4,399 | 185 | codeparrot/github-code |
3eba786944c20b1b809f6db4ce2d47f6e6ae550fdcbc5ef9a7a712c61fa30192 | /*
* Copyright 2000-2013 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-api/src/com/intellij/refactoring/RefactoringBundle.java | idea4bsd/idea4bsd | apache-2.0 | 2,776 | 93 | codeparrot/github-code |
9b8a92097165c8faf2676be2be48fc802b67239b2c0fd0ac4a402eb281e9ffdf | import { changeProperties } from './property_events';
import { set } from './property_set';
/**
Set a list of properties on an object. These properties are set inside
a single `beginPropertyChanges` and `endPropertyChanges` batch, so
observers will be buffered.
```javascript
let anObject = Ember.Object.crea... | JavaScript | packages/ember-metal/lib/set_properties.js | jherdman/ember.js | mit | 921 | 39 | codeparrot/github-code |
00ac6ab2a096a938b4ba12f44135cc0f7cc594c613bf50cec276bd5df384ed17 | // array allocator -*- C++ -*-
// Copyright (C) 2004-2015 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; ... | C | support/MacOSX/gcc-hpc/10.11/gcc-6.0/include/c++/6.0.0/ext/array_allocator.h | mads-bertelsen/McCode | gpl-2.0 | 5,386 | 183 | codeparrot/github-code |
0f755a19789afe88ca9288fb9d8d90491ab4782eae913b37caa341d9427429bc | /*
* linux/arch/arm/vfp/vfpmodule.c
*
* Copyright (C) 2004 ARM Limited.
* Written by Deep Blue Solutions Limited.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#incl... | C | arch/arm/vfp/vfpmodule.c | jassycliq/lg_g2d801 | gpl-2.0 | 19,977 | 777 | codeparrot/github-code |
9ad75b6e655eb3e37ec77b47b8aea837fe3f6711d8db9b57bc9533b3bc3e736e | <?php
/**
* @package Joomla.Site
* @subpackage com_content
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
... | PHP | tmp/install_54bd2998c811f/plugins/system/helix/html/com_content/category/default.php | baxri/cvote | gpl-2.0 | 1,779 | 51 | codeparrot/github-code |
facbdc54d1cf732a56f99a1d6cb637fdbce6da56ff40cb4ccab36f961e59cf3d | <?php
/*
* Fields and groups functions
*
* $HeadURL: http://plugins.svn.wordpress.org/types/tags/1.6.4/includes/fields.php $
* $LastChangedDate: 2014-11-18 06:47:25 +0000 (Tue, 18 Nov 2014) $
* $LastChangedRevision: 1027712 $
* $LastChangedBy: iworks $
*
*/
require_once WPCF_EMBEDDED_INC_ABSPATH . '/f... | PHP | wp-content/plugins/types/includes/fields.php | vperezma/h2osite | gpl-2.0 | 51,409 | 1,229 | codeparrot/github-code |
8028ffefbc412b145adfd14bf2015b47a09bb7d793ea8e19240da9b3c6141923 | /* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | C | socket/getsockname.c | mseaborn/nacl-glibc | gpl-2.0 | 1,215 | 37 | codeparrot/github-code |
83010c589ad528d8b65e3d727b7538c8b4e1d75378e59d76387a3c72a5b7003d | //*****************************************************************************
//*****************************************************************************
// FILENAME: Driver.h
// TrueTouch Host Emulator Version Information: 3.2.1823
// TrueTouch Firmware Version Information: 0.6.485370
//
// DESCRIPTION... | C | drivers/input/touchscreen/cyttsp5/ttconfig/default_ttconfig.h | InfinitiveOS-Devices/android_kernel_huawei_msm8916 | gpl-2.0 | 53,128 | 1,489 | codeparrot/github-code |
1b9b8203fab1e442f78a903c699d515bbf9b183bdcdb3362f1f087a71e19b215 | // SPDX-License-Identifier: GPL-2.0-only
/*
* linux/kernel/power/snapshot.c
*
* This file provides system snapshot/restore functionality for swsusp.
*
* Copyright (C) 1998-2005 Pavel Machek <pavel@ucw.cz>
* Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl>
*/
#define pr_fmt(fmt) "PM: hibernation: " fmt
#inclu... | C | kernel/power/snapshot.c | rperier/linux-rockchip | gpl-2.0 | 74,368 | 2,762 | codeparrot/github-code |
efa68f8205824e65f7442ee925717d08063039f8f6e8d00c73942a9513301cd9 | /* cpu.c: Dinky routines to look for the kind of Sparc cpu
* we are on.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/threads.h>
#include <asm/oplib.h>
#include <asm/page.h>
#include <asm/head.h>
#i... | C | go12/linux-2.6.28.10/arch/sparc/kernel/cpu.c | kzlin129/tt-gpl | gpl-2.0 | 4,915 | 168 | codeparrot/github-code |
11bf870bb490c02e10b73739ea6348cab3ddce33ba6b924d25a351588fb9adbd | /*
* Copyright (c) 2003, 2012, 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/jdk/java/lang/Math/HyperbolicTests.java | md-5/jdk10 | gpl-2.0 | 58,838 | 1,063 | codeparrot/github-code |
b955d29fd9132e64fb2098f29a58ef7ef77944320673f7fe0e6a99ff8e98770d | /**
* eCryptfs: Linux filesystem encryption layer
*
* Copyright (C) 1997-2004 Erez Zadok
* Copyright (C) 2001-2004 Stony Brook University
* Copyright (C) 2004-2007 International Business Machines Corp.
* Author(s): Michael A. Halcrow <mahalcro@us.ibm.com>
* Michael C. Thompsion <mcthomps@us.ibm.co... | C | fs/ecryptfs/inode.c | xInterlopeRx/android_kernel_samsung_lt02ltespr | gpl-2.0 | 38,320 | 1,327 | codeparrot/github-code |
b10b0b8ee7681c175ef918377cabc37bcf98c3e61dcd0ca76f20066df967c9e5 | /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | C++ | src/os/solaris/vm/os_solaris.inline.hpp | lewurm/graal | gpl-2.0 | 8,884 | 264 | codeparrot/github-code |
0fae03debac7263162e52fa1baeed91c968b6f7f43b0a960760a49be3bdbf948 | #include <linux/kernel.h>
#include <linux/xlog.h>
#include "jpeg_drv_6589_reg.h"
#include "jpeg_drv_6589_common.h"
... | C | drivers/misc/mediatek/jpeg/mt6735/jpeg_drv_6589_enc.c | valascus/android_p8000_kernel_nougat | gpl-3.0 | 13,410 | 501 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.