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 |
|---|---|---|---|---|---|---|---|---|
b5dc476d96f2e7341a650bebe26fa208458914261bac0af657785680d14be70f | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | Java | server/src/main/java/org/elasticsearch/rest/RestHeaderDefinition.java | robin13/elasticsearch | apache-2.0 | 1,159 | 36 | codeparrot/github-code |
616db08ed1fd630332deaf38881422dc2c2e7372554615818c4c109bb69131f1 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/clipboard/clipboard_android.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "testing/gtest/inclu... | C++ | ui/base/clipboard/clipboard_android_unittest.cc | guorendong/iridium-browser-ubuntu | bsd-3-clause | 3,352 | 92 | codeparrot/github-code |
fe65dde8438cd6938542094db8f507dc70001048d607baf669da195897031b59 | // Type definitions for Streams API
// Project: https://github.com/whatwg/streams
// Definitions by: Kagami Sascha Rosylight <https://github.com/saschanaz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface ReadableStreamSource {
start?(controller: ReadableStreamDefaultController): void |... | TypeScript | whatwg-streams/index.d.ts | progre/DefinitelyTyped | mit | 4,307 | 142 | codeparrot/github-code |
2210dad1dff6ff765d98abc8af7afb8f1654da310650ac4ed59c7f0e651ca5b4 | // Copyright 2010-2014 RethinkDB, all rights reserved.
#include "unittest/gtest.hpp"
#include "clustering/administration/admin_op_exc.hpp"
#include "clustering/query_routing/primary_query_client.hpp"
#include "clustering/query_routing/primary_query_server.hpp"
#include "unittest/branch_history_manager.hpp"
#include "u... | C++ | src/unittest/clustering_query.cc | KSanthanam/rethinkdb | agpl-3.0 | 5,682 | 175 | codeparrot/github-code |
0884024f992bc8297ef76fbc711ea1aa9e7bb842fd6e874664951f5c7f006e7c | /*
* Copyright 2000-2016 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/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/PatchFileDropHandler.java | asedunov/intellij-community | apache-2.0 | 1,657 | 45 | codeparrot/github-code |
d7e2e3fc75c333c70b771168246cf682b25020c4980283104af5da233cbb001c | /**
* 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/test/java/org/apache/camel/issues/MulticastParallelWithAggregationStrategyThrowingExceptionTest.java | RohanHart/camel | apache-2.0 | 2,703 | 69 | codeparrot/github-code |
7bc55b13e571b3036e942340308afe81f56f45c35cc34c5c6dc14b4e8def8df2 | //
// Copyright (c) 2012 The ANGLE 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.
//
#include "DiagnosticsBase.h"
#include <cassert>
namespace pp
{
Diagnostics::~Diagnostics()
{
}
void Diagnostics::report(ID id,
... | C++ | src/qt/qtbase/src/3rdparty/angle/src/compiler/preprocessor/DiagnosticsBase.cpp | you21979/phantomjs | bsd-3-clause | 4,190 | 128 | codeparrot/github-code |
569f50d155f73f085b1a072184f08d34fd4318741669bab5466cb1efaad09f88 | // SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2015 - ARM Ltd
* Author: Marc Zyngier <marc.zyngier@arm.com>
*/
#include <hyp/switch.h>
#include <linux/arm-smccc.h>
#include <linux/kvm_host.h>
#include <linux/types.h>
#include <linux/jump_label.h>
#include <uapi/linux/psci.h>
#include <kvm/arm_psci.h>... | C | arch/arm64/kvm/hyp/vhe/switch.c | HinTak/linux | gpl-2.0 | 5,708 | 228 | codeparrot/github-code |
df6efaf2c04d9f10777b3481bfcf602c869b27d3a3ce38b9ddf9bf3f9adeb3ac | CodeMirror.defineMode("css", function(config) {
var indentUnit = config.indentUnit, type;
var atMediaTypes = keySet([
"all", "aural", "braille", "handheld", "print", "projection", "screen",
"tty", "tv", "embossed"
]);
var atMediaFeatures = keySet([
"width", "min-width", "max-width", "height", ... | JavaScript | 初级教程r73/js/codemirror/mode/css.js | zhaodanchun/webgl_learning | mit | 22,145 | 466 | codeparrot/github-code |
4733d6be0a8db030a5213db71a11231f8424bfd3656dd36012f144a91fb1d8d8 | /* Software floating-point emulation.
Basic one-word fraction declaration and manipulation.
Copyright (C) 1997,1998,1999 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... | C | virt/include/math-emu/op-1.h | AiJiaZone/linux-4.0 | gpl-2.0 | 9,449 | 304 | codeparrot/github-code |
e0a11a44ba863dd1d922e64367a304ac7cdf9dcb6f6f2da36e9c5b1e714c14c4 | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | Java | testing/openjdk/hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/BaseIndexScaleDispAddress.java | rokn/Count_Words_2015 | mit | 2,570 | 89 | codeparrot/github-code |
e5a5e17329b4a581fc0328e74c55fb0818df1cbd9915f7645b9090e0349fb1c1 | /*
* Kernel unwinding support
*
* (c) 2002-2004 Randolph Chung <tausq@debian.org>
*
* Derived partially from the IA64 implementation. The PA-RISC
* Runtime Architecture Document is also a useful reference to
* understand what is happening here
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linu... | C | release/src-rt/linux/linux-2.6/arch/parisc/kernel/unwind.c | ghmajx/asuswrt-merlin | gpl-2.0 | 10,813 | 422 | codeparrot/github-code |
41ffaa39d0c71e9cac3eb33af82ee4bf15d96ee8ac8a6410397164a3761232fc | /* Virtio ring implementation.
*
* Copyright 2007 Rusty Russell IBM Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your optio... | C | drivers/virtio/virtio_ring.c | jameshilliard/m8-3.4.0-gb1fa77f | gpl-2.0 | 12,556 | 593 | codeparrot/github-code |
7b51d567f55eadf8cb912bde4190abfc2d7e88d23cb5ae9355eca7701daa13bb | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, tomstdenis@gmail.com, http://l... | C | user/dropbear/libtomcrypt/src/hashes/chc/chc.c | rhuitl/uClinux | gpl-2.0 | 7,640 | 299 | codeparrot/github-code |
34b6070d25ef1c3cf9e551dc05e563cbd4d116ca510b22e766844246f70d9b19 | /***************************************************************************/
/* */
/* ttload.c */
/* */
/* Lo... | C | pdfview/jni/freetype/src/sfnt/ttload.c | freelsen/apv | gpl-3.0 | 47,907 | 1,267 | codeparrot/github-code |
efdc50bbb976f545f9119fa56d7b8b07228f69a2d22683aea15b9267838ee139 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | PHP | question/behaviour/manualgraded/db/upgrade.php | Laragh/moodle | gpl-3.0 | 3,650 | 99 | codeparrot/github-code |
3d4133c58987831e7ba7a845ae3c1af3d2d19c3db8c53d5eddcadf57895b47d9 | #!/usr/bin/python
# coding: utf-8 -*-
# (c) 2017, Wayne Witzel III <wayne@riotousliving.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1... | Python | lib/ansible/modules/web_infrastructure/ansible_tower/tower_inventory.py | ravibhure/ansible | gpl-3.0 | 3,846 | 126 | codeparrot/github-code |
b619097be0ad3b9e299eb9390fb37aefcd8717fbfbc7cf62139e9da5ef300656 | /*
* 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")... | Java | src/main/org/codehaus/groovy/ast/decompiled/MemberSignatureParser.java | antoaravinth/incubator-groovy | apache-2.0 | 6,160 | 150 | codeparrot/github-code |
cf776bc1063246972ee6cbd6f94162993e8a38d39e0bb53edff34fff060b8256 | #ifndef __ASM_POWERPC_MMU_CONTEXT_H
#define __ASM_POWERPC_MMU_CONTEXT_H
#ifdef __KERNEL__
#ifndef CONFIG_PPC64
#include <asm-ppc/mmu_context.h>
#else
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <asm/mmu.h>
#include <asm/cputable.h>
#include <asm-generic/mm_hooks.h>
/*
* Copy... | C | release/src-rt/linux/linux-2.6/include/asm-powerpc/mmu_context.h | ghmajx/asuswrt-merlin | gpl-2.0 | 2,343 | 87 | codeparrot/github-code |
e6454d47c765fd0b21c1b36abfeb75b83bcdfeaab4b6ee09ad3929417c9ee5e5 | /*
* valkyriefb.c -- frame buffer device for the PowerMac 'valkyrie' display
*
* Created 8 August 1998 by
* Martin Costabel <costabel@wanadoo.fr> and Kevin Schoedel
*
* Vmode-switching changes and vmode 15/17 modifications created 29 August
* 1998 by Barry K. Nathan <barryn@pobox.com>.
*
* Ported to m68... | C | linux-2.6.x/drivers/video/valkyriefb.c | ipwndev/DSLinux-Mirror | gpl-2.0 | 16,753 | 591 | codeparrot/github-code |
00531b733e6703dcce1c763e643ddbd822775755d79c1cb2d4ba3a4a449b1d6d | /*
* MUSB OTG controller driver for Blackfin Processors
*
* Copyright 2006-2008 Analog Devices Inc.
*
* Enter bugs at http://blackfin.uclinux.org/
*
* Licensed under the GPL-2 or later.
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/workqueue.h>
#include <linux/usb/gadget.h>
#include "m... | C | drivers/misc/mediatek/mu3d/drv/mt_usb.c | visi0nary/P8000-Kernel | gpl-2.0 | 15,439 | 617 | codeparrot/github-code |
90fefc135cddd92d69f74c918d95ab5d36e322f3df7614dab3885ac7f1877ed8 | /*
* jerror.c
*
* Copyright (C) 1991-1998, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains simple error-reporting and trace-message routines.
* These are suitable for Unix-like system... | C | vtkjpeg/jerror.c | BRAT-DEV/main | gpl-3.0 | 7,814 | 254 | codeparrot/github-code |
034f86cf7559f6e99c0d4d52ffb21a18e46c923373ad01bcde456f1b4d426aef | /*
* 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/mf/org/apache/xml/serialize/SerializerFactoryImpl.java | MishaKharaba/xerces-for-android | apache-2.0 | 3,996 | 120 | codeparrot/github-code |
81046943070eeeeb9122f4c95d6f985b8f5269e18f527b43f9b192515acee0cd | using System;
namespace Server.Items
{
public class SweatOfParoxysmus : Item
{
[Constructable]
public SweatOfParoxysmus()
: base(0xF01)
{
}
public SweatOfParoxysmus(Serial serial)
: base(serial)
{
}
public override int La... | C# | Scripts/Items/Decorative/SweatOfParoxysmus.cs | SirGrizzlyBear/ServUOGrizzly | gpl-2.0 | 785 | 39 | codeparrot/github-code |
0a46c2d81af2392ed79112b807bebf464f0845f7ee3c985a7b71be4249fc0107 | using System;
namespace Server.Items
{
public class FireFieldScroll : SpellScroll
{
[Constructable]
public FireFieldScroll()
: this(1)
{
}
[Constructable]
public FireFieldScroll(int amount)
: base(27, 0x1F48, amount)
{
}
... | C# | Scripts/Items/Skill Items/Magical/Scrolls/Fourth Circle/FireFieldScroll.cs | Jascen/UOSmart | gpl-2.0 | 751 | 38 | codeparrot/github-code |
1639de917c963467fb7bf45b98c585c96cc5ea9e7fedd22539d20a780eb165dd | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------... | C++ | applications/test/ISLList/Test-ISLList.C | morgoth541/of_realFluid | gpl-3.0 | 2,680 | 111 | codeparrot/github-code |
a7a3f884dac92a66920d960d7bd60c63745f77ddb7cee34c677fbe382818b0f9 | -----------------------------------------
-- ID: 4116
-- Item: Hi-Potion
-- Item Effect: Restores 100 HP
-----------------------------------------
require("scripts/globals/settings");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(t... | Lua | scripts/globals/items/hi-potion.lua | salamader/ffxi-a | gpl-3.0 | 723 | 31 | codeparrot/github-code |
7ea4ad735aa0e83d6eee0079a0938aa2c0cd32553c5c61550edaa1534cf87b5c | /*
* 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 | launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/WebdavUploadTest.java | codders/k2-sling-fork | apache-2.0 | 4,111 | 114 | codeparrot/github-code |
ccb510d2c03881392cb12e39efd5d87a861c280cb35fcdfbfd2dc4e3ecdbaa96 | /*
* Copyright 2000-2014 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 | python/src/com/jetbrains/python/console/PyConsoleOptionsConfigurable.java | caot/intellij-community | apache-2.0 | 5,945 | 201 | codeparrot/github-code |
8fb3d1bd042bb8ea0236193ade64bb2f90cecfaeb5d356da46133131cc77c3e1 | /*
* 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/sort/FieldSortBuilder.java | wuranbo/elasticsearch | apache-2.0 | 13,166 | 340 | codeparrot/github-code |
f1578e7c7d14d65513c2fc3dbd79c292a8ce7874a64ca10ea09fd56eee8b9f34 | //===----------------------------------------------------------------------===//
//
// 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/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp | mxOBS/deb-pkg_trusty_chromium-browser | bsd-3-clause | 826 | 34 | codeparrot/github-code |
29995ee5f3d19c6f23a1cff460cda238191512a35c98114b42c543fd1367bcf6 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/updater/extension_cache_fake.h"
#include "base/bind.h"
#include "base/stl_util.h"
#include "content/public/browser/br... | C++ | chrome/browser/extensions/updater/extension_cache_fake.cc | vadimtk/chrome4sdp | bsd-3-clause | 2,070 | 71 | codeparrot/github-code |
dcd9de52fbae8040b3205bfab5429136b0dbe2c15e5f7e0ace56a5ca4dde134c | # -----------------------------------------------------------------------------
# ply: lex.py
#
# Copyright (C) 2001-2009,
# David M. Beazley (Dabeaz LLC)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ar... | Python | testbed/x/mobilesdk/osx/5.5.1.GA/common/css/ply/lex.py | gianina-ingenuity/titanium-branch-deep-linking | mit | 40,747 | 1,059 | codeparrot/github-code |
1398191104928a1e62ce0b6f966d049e675632468c44760c7a00822142ffb4ee | /*******************************************************************************
*
* Intel Ethernet Controller XL710 Family Linux Driver
* Copyright(c) 2013 - 2016 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Pub... | C | drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | rkollataj/linux-can-next | gpl-2.0 | 86,892 | 3,195 | codeparrot/github-code |
c361f7d7a3ec001a7b08640a653b329428b85aee8c15ee1b5fa62f88556cf3bd | /** @file mlan_11n_rxreorder.c
*
* @brief This file contains the handling of RxReordering in wlan
* driver.
*
* Copyright (C) 2008-2011, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version... | C | drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c | thegreatergood/LiteKernel---Glide | gpl-2.0 | 40,192 | 1,136 | codeparrot/github-code |
a2675c99f85c6c222a7c3959805b7dcb0e9e988ce47b8e52963b43a3475b10bd | #!/bin/sh
# 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 m... | Shell | tpv/tomcat/bin/setclasspath.sh | AcademicTorrents/AcademicTorrents-SmartNodeV2 | gpl-2.0 | 4,114 | 117 | codeparrot/github-code |
a196a95d1f2a8c4124398e4f95973d71c0d88eebfd12ad90173abeab3824dfaf | # Copyright (c) 2012-2013 Rackspace Hosting
# 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
#
# Unles... | Python | openstack/src/nova-2014.2/nova/cells/weights/ram_by_instance_type.py | ChinaMassClouds/copenstack-server | gpl-2.0 | 1,971 | 54 | codeparrot/github-code |
5efdc655ab0ffc2e310085382eb812360a026d3f9a5142dd5a340d3b12bf8324 | using System;
using System.Collections.Generic;
namespace Server.Mobiles
{
public class Mapmaker : BaseVendor
{
private readonly List<SBInfo> m_SBInfos = new List<SBInfo>();
[Constructable]
public Mapmaker()
: base("the mapmaker")
{
this.SetSkill(SkillNam... | C# | Scripts/Systems/Mobiles/People/Vendors/NPC/Mapmaker.cs | GenerationOfWorlds/GOW | gpl-3.0 | 1,048 | 47 | codeparrot/github-code |
d451d20b6ff9f4e2bf0b5d1fe73cdd6967dbfc4f2e48d78e99c3c7981dacf01f | #include QMK_KEYBOARD_H
// Macro keys for some apps
#define SLACKUP LALT(LSFT(KC_UP))
#define SLACKDN LALT(LSFT(KC_DOWN))
#define RELOAD LGUI(KC_R)
enum custom_keycodes {
PAWFIVE = SAFE_RANGE
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
RESET , PAWFIVE, RELOAD ,
SLACK... | C | keyboards/keebio/bdn9/keymaps/vosechu-browser/keymap.c | paxy97/qmk_firmware | gpl-2.0 | 1,279 | 58 | codeparrot/github-code |
fd06dca6fa651d570ab39c42c5a194665975c8ce507537df24b7587d53efda8c | /*
* Copyright Andrey Semashev 2007 - 2013.
* 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)
*/
/*!
* \file bind_assign.hpp
* \author Andrey Semashev
* \date 30.03.2008
*
* This hea... | C++ | venv/bin/boost/log/utility/functional/bind_assign.hpp | NixaSoftware/CVis | apache-2.0 | 1,486 | 56 | codeparrot/github-code |
8f3d133da798982d2bc8df6b68667f3e05f463a20420eaadce41c4ea1dccd0d5 | /*
* 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/test/java/org/elasticsearch/threadpool/SimpleThreadPoolIT.java | Helen-Zhao/elasticsearch | apache-2.0 | 6,883 | 145 | codeparrot/github-code |
b86ce5e9d0b4e48218e10ab909162649b534d4196b44cd21c96bc4c013057b4c | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apa... | Java | services/src/main/java/org/keycloak/authentication/actiontoken/ExplainedTokenVerificationException.java | keycloak/keycloak | apache-2.0 | 2,210 | 61 | codeparrot/github-code |
9dc91e21f625edc2b09f01408a0a5bbbe3714430988358483a7934b79019b957 | using System.Threading.Tasks;
using Orleans;
using UnitTests.GrainInterfaces;
namespace UnitTests.Grains
{
public class BaseGrain : Grain, IBase
{
public const string GrainPrefix = "UnitTests.Grains.Base";
public Task<bool> Foo()
{
return Task.FromResult(true);
}
... | C# | test/TestGrains/GetGrainGrains.cs | dVakulen/orleans | mit | 1,611 | 83 | codeparrot/github-code |
00f42d16b8bf8bd7d5c898687d6f96b7941968e481b8775d72a9af711fe6781e | var EventEmitter = require('events').EventEmitter;
var util = require('util');
var WSProcessor = require('./wsprocessor');
var TCPProcessor = require('./tcpprocessor');
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var HTTP_METHODS = [
'GET', 'POST', 'DELETE', 'PUT', 'HEAD'
];
var ST_STARTE... | JavaScript | lib/connectors/hybrid/switcher.js | saruno/pomelo | mit | 2,600 | 103 | codeparrot/github-code |
86a6b885cdd5b4030314a54386de6d8e6b09ab21f70023ae1849a39f3788f760 | // Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline',... | JavaScript | sickbeard/data/js/rootDirs.js | Branlala/docker-sickbeardfr | mit | 6,317 | 182 | codeparrot/github-code |
b5dc3b89fff188811494c00f8f95ef7cfbe52135ac573a6bc54e5478e6f1d272 | <?php
/**
* expect Driver
*
* Driver that adds functionality to change the systems user password via
* the 'expect' command.
*
* For installation instructions please read the README file.
*
* @version 2.0
* @author Andy Theuninck <gohanman@gmail.com)
*
* Based on chpasswd roundcubemail password driver by
... | PHP | roundcube/roundcubemail/plugins/password/drivers/expect.php | ssanglee/capstone | gpl-2.0 | 1,858 | 59 | codeparrot/github-code |
b9becf437bf47fbfd8c02202cd6fa1fe04b1c3628f338f277a7072147fafa8f1 | /*
* net/sched/sch_prio.c Simple 3-band priority "scheduler".
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version... | C | net/sched/sch_prio.c | animalcreek/linux | gpl-2.0 | 8,342 | 380 | codeparrot/github-code |
5f4b60a0411ea21473f2f1f7d646520e58192af280b987e3b15b8eaf37a8f5d9 | /** Copyright 2015 TappingStone, 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 ... | Scala | data/src/main/scala/io/prediction/data/storage/jdbc/JDBCPEvents.scala | adamharish/PredictionIO | apache-2.0 | 5,724 | 151 | codeparrot/github-code |
fd681771e29a442280acfd19037ac9f3690488823ce517ffacb6829fe7e236b2 | /**
* 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-lumberjack/src/test/java/org/apache/camel/component/lumberjack/LumberjackDisconnectionTest.java | akhettar/camel | apache-2.0 | 2,840 | 82 | codeparrot/github-code |
78e358d51b449f38acfdf4104bdcb1ba24b56aa2400850fc6eb31d182ab6debe | /* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PERF_EVENTS_STATS_
#define __PERF_EVENTS_STATS_
#include <stdio.h>
#include <perf/event.h>
#include <linux/types.h>
#include "auxtrace.h"
/*
* The kernel collects the number of events it couldn't send in a stretch and
* when possible sends this number in a PERF_RECOR... | C | tools/perf/util/events_stats.h | rperier/linux-rockchip | gpl-2.0 | 1,926 | 57 | codeparrot/github-code |
7ac79366217caf7ed38449b8cb5c632b376ebd51b19980471045b03b9a92f97b |
#ifndef BOOST_MPL_SET_AUX_BEGIN_END_IMPL_HPP_INCLUDED
#define BOOST_MPL_SET_AUX_BEGIN_END_IMPL_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2007
// Copyright David Abrahams 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// ... | C++ | vendors/boost/include/boost/mpl/set/aux_/begin_end_impl.hpp | alexisVallet/animation-character-identification | gpl-3.0 | 1,075 | 44 | codeparrot/github-code |
bbe09abfe38001f2047d07b8394087dbc0219a44732ac59ae408b7140cd3b3a6 | // Copyright 2014 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.
#include "src/v8.h"
#include "test/cctest/compiler/function-tester.h"
using namespace v8::internal;
using namespace v8::internal::compiler;
TEST(Simp... | C++ | external/v8_3.30.33.16/test/cctest/compiler/test-run-jscalls.cc | KSanthanam/rethinkdb | agpl-3.0 | 9,972 | 290 | codeparrot/github-code |
f8e0247bf1f68f4cf6f2581908719ffca931bc539eed8adb59941ac77392d54a | //
// ssl/old/detail/openssl_context_service.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2005 Voipster / Indrek dot Juhani at voipster dot com
// Copyright (c) 2005-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See ac... | C++ | vertxbuspp/asio/include/asio/ssl/old/detail/openssl_context_service.hpp | julien3/vertxbuspp | apache-2.0 | 9,945 | 387 | codeparrot/github-code |
5f5375a78d4f7e18156aeda5f282ed7cc17c1f3a79993ded17ca688c90214eb6 | /*
* Copyright WSO2 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 i... | Java | components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/dao/test/TestRealmService.java | susinda/carbon-apimgt | apache-2.0 | 2,447 | 77 | codeparrot/github-code |
3d5fd98a033008c4c2207909ad7a49c3db73c8b177e0031df611e99e4e43403b | //===----------------------------------------------------------------------===//
//
// 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/llvm-project/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/db_swap_1.pass.cpp | youtube/cobalt | bsd-3-clause | 1,309 | 44 | codeparrot/github-code |
db707b798ad24afdbde971026ff8a16b1b97248edc99e6081478c4cbaeeb6f00 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import hmac
import urllib
from frappe import _
import frappe
import frappe.utils
def get_signed_params(params):
"""Sign a url by appending `&_signature=xxxxx` to given params (... | Python | frappe/utils/verified_command.py | mbauskar/tele-frappe | mit | 2,109 | 67 | codeparrot/github-code |
2c5f8f79fd6105798f9c730964d4c88f5bdc0c207a63a1826ad1015637f3e00d | /*
* sound/oss/sound_timer.c
*/
/*
* Copyright (C) by Hannu Savolainen 1993-1997
*
* OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
* for more info.
*/
/*
* Thomas Sailer : ioctl code reworked (vmallo... | C | release/src-rt-7.x.main/src/linux/linux-2.6.36/sound/oss/sound_timer.c | wkritzinger/asuswrt-merlin | gpl-2.0 | 6,232 | 327 | codeparrot/github-code |
c6aa36c97327e1c174b5a58809de39ddc774f4929ec1b6aa80401ce7d23cd413 | /*
* Generic OPP Interface
*
* Copyright (C) 2009-2010 Texas Instruments Incorporated.
* Nishanth Menon
* Romit Dasgupta
* Kevin Hilman
*
* 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 ... | C | drivers/base/power/opp/core.c | codebam/linux | gpl-2.0 | 47,766 | 1,660 | codeparrot/github-code |
e7117b4bebdce930ed6d3c74fc324434104581b74fdcd3c22dc682f5c7472a92 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | PHP | report/log/classes/renderer.php | aspark21/moodle | gpl-3.0 | 9,103 | 191 | codeparrot/github-code |
de34a88aea1b4ed974b21b220258364e6937032d74f5433a4b23e5aecd320660 | /*
* 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 | src/main/java/org/elasticsearch/action/bench/CompetitionResult.java | 0359xiaodong/elasticsearch | apache-2.0 | 6,786 | 207 | codeparrot/github-code |
29c63c0091eea74f44ba0cf69d60ee5f7fbb8df434b9041d3f1c1a97099e5190 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/geometry.h
// Purpose: Common Geometry Classes
// Author: Stefan Csomor
// Modified by:
// Created: 08/05/99
// Copyright: (c) 1999 Stefan Csomor
// Licence: wxWindows licence
////////////////////////////... | C | wxWidgets-3.1.0/include/wx/geometry.h | adouble42/nemesis-current | bsd-2-clause | 30,318 | 803 | codeparrot/github-code |
160acd1ff93d8eccdfb0c423df0c7cd94b85f08f610be83fd3f193ac02b79a3e | // 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.
package org.chromium.chrome.browser.notifications;
import android.app.Notification;
import android.app.NotificationManager;
/**
* Default implementatio... | Java | chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationManagerProxyImpl.java | Chilledheart/chromium | bsd-3-clause | 1,310 | 46 | codeparrot/github-code |
3658948568eac7d0ba40b3a5789cb6a72153d35d27b897a8d13c1133469bdc9f | // 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 "remoting/protocol/clipboard_filter.h"
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/protocol_mock_objects.h"
#include "r... | C++ | remoting/protocol/clipboard_filter_unittest.cc | was4444/chromium.src | bsd-3-clause | 1,847 | 60 | codeparrot/github-code |
c7571ea453cbba7ef6aeb306eb9870b873a2bca39bfe427549013a1eac4c29b0 | /*
* TI DA830/OMAP L137 EVM board
*
* Author: Mark A. Greer <mgreer@mvista.com>
* Derived from: arch/arm/mach-davinci/board-dm644x-evm.c
*
* 2007, 2009 (c) MontaVista Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without an... | C | linux-4.19/arch/arm/mach-davinci/board-da830-evm.c | BPI-SINOVOIP/BPI-Mainline-kernel | gpl-2.0 | 17,225 | 676 | codeparrot/github-code |
578b08b2dc57b733bca90cbdde773c9419b2fdf8dd10c77216bd61f57a9e823d | // SPDX-License-Identifier: GPL-2.0-only
/*
*
* Copyright 2016 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>
*/
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kvm.h>
#include <linux/kvm_host.h>
#include <linux/anon_inodes.h>
#include <linux/file.h>
#include <linux/debugfs.h>
#include <asm/kvm_... | C | linux-5.4/arch/powerpc/kvm/book3s_64_mmu_radix.c | BPI-SINOVOIP/BPI-Mainline-kernel | gpl-2.0 | 34,480 | 1,385 | codeparrot/github-code |
839c550028b2d9de8573b96dae2d563a7f10bfb3acae6721622662918719d114 | /*
* IBM Hot Plug Controller Driver
*
* Written By: Jyoti Shah, IBM Corporation
*
* Copyright (C) 2001-2003 IBM Corp.
*
* 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 as published by
* the Free Software Fo... | C | release/src-rt/linux/linux-2.6/drivers/pci/hotplug/ibmphp_hpc.c | ghmajx/asuswrt-merlin | gpl-2.0 | 34,117 | 1,164 | codeparrot/github-code |
e8dae3c4c1df909366f5ca3fe7c4b32ddfd8fc8e2d099be2105d702852a1b9e1 | /*
* (C) Copyright 2009
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Fr... | C | software/custom_leds/fpga/software/spl_bsp/uboot-socfpga/arch/arm/include/asm/arch-mx5/clock.h | JeremySavonet/Eurobot-2017-Moon-Village | gpl-3.0 | 1,923 | 73 | codeparrot/github-code |
ddfe5480bdfadfadb038a0b205803f0ebfcb1436e93ac685580c5bc9d13dc4b4 | /**
* This file is used on the term overview page to power quick-editing terms.
*
* @output wp-admin/js/inline-edit-tax.js
*/
/* global inlineEditL10n, ajaxurl, inlineEditTax */
window.wp = window.wp || {};
/**
* Consists of functions relevant to the inline taxonomy editor.
*
* @namespace inlineEditTax
*
* ... | JavaScript | wp-core/5.1.1/wp-admin/js/inline-edit-tax.js | drthomas21/WordPress_Tutorial | apache-2.0 | 7,701 | 295 | codeparrot/github-code |
7d4beaccf8730dd10c6ca0004a58aecb8dd5c87f3c660df0ac6aa157dba71af5 | /*******************************************************************************
Copyright (c) 2013 - 2014, Intel Corporation
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 sour... | C | src/dpdk_lib18/librte_pmd_i40e/i40e/i40e_virtchnl.h | wofanli/trex-core | apache-2.0 | 12,475 | 374 | codeparrot/github-code |
12e0d4972c6357e31f8d7193c146dc64569d5430bd4546a8ba48fc7fece64ed9 | /*******************************************************************************
* Filename: target_core_tpg.c
*
* This file contains generic Target Portal Group related functions.
*
* (c) Copyright 2002-2013 Datera, Inc.
*
* Nicholas A. Bellinger <nab@kernel.org>
*
* This program is free software; you can re... | C | source/kernel/drivers/target/target_core_tpg.c | mikedlowis-prototypes/albase | bsd-2-clause | 19,211 | 697 | codeparrot/github-code |
b76f636789d5263b66f74d025f9547c6f2d4a44b943688aa5502e8aba759a2ef | /*
* i8k.c -- Linux driver for accessing the SMM BIOS on Dell laptops.
* See http://www.debian.org/~dz/i8k/ for more information
* and for latest version of this driver.
*
* Copyright (C) 2001 Massimo Dal Zotto <dz@debian.org>
*
* This program is free software; you can redistribute it and/or modify it
... | C | release/src-rt/linux/linux-2.6/drivers/char/i8k.c | ghmajx/asuswrt-merlin | gpl-2.0 | 12,176 | 537 | codeparrot/github-code |
38b09959b09b1dd7dd032c3beda193e9754c3eb7b8ddefbdbd15496d13671a01 | /*
* kernel/power/suspend.c - Suspend to RAM and standby functionality.
*
* Copyright (c) 2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
* Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
*
* This file is released under the GPLv2.
*/
#include <linux/string.h>
#include <linu... | C | kernel/power/suspend.c | AccentureMobilityServices/kernel | gpl-2.0 | 6,929 | 314 | codeparrot/github-code |
271ebf4b9496fffd0ae727107a1154b1327d3d22c89fac9591199e383a59c3ea | /* Copyright (c) 2013, 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 the hope... | C | kernel/drivers/net/ethernet/msm/msm_rmnet_wwan.c | burakgon/E7_Elite_kernel | gpl-2.0 | 20,309 | 740 | codeparrot/github-code |
751851f18fec781a6b2dc89140a81434dbc09dd34bbb7a2106aecd589f8a5b19 | import types, sys
import weakref
from .lock import allocate_lock
# type qualifiers
Q_CONST = 0x01
Q_RESTRICT = 0x02
Q_VOLATILE = 0x04
def qualify(quals, replace_with):
if quals & Q_CONST:
replace_with = ' const ' + replace_with.lstrip()
if quals & Q_VOLATILE:
replace_with = ' volatile ' +... | Python | venv/lib/python2.7/site-packages/cffi/model.py | aESeguridad/GERE | gpl-3.0 | 21,110 | 603 | codeparrot/github-code |
0ae5e7ffb1301ad514e4d21e88a1838ba3cbfed7c2dc88b91854caa22dc0501c | /*
* SCLP event types
* Operations Command - Line Mode input
* Message - Line Mode output
*
* Copyright IBM, Corp. 2013
*
* Authors:
* Heinz Graalfs <graalfs@linux.vnet.ibm.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or (at your
* option) any later version. See... | C | third-party/qemu-orp/hw/char/sclpconsole-lm.c | VishalRohra/orp | apache-2.0 | 10,166 | 379 | codeparrot/github-code |
e0f0511a1b4b4c8651dce7b6f0fd2f7bb4702d66dabd5e3e5b6be2ba70304399 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | Python | venv/lib/python3.5/site-packages/selenium/webdriver/common/actions/key_input.py | Widiot/simpleblog | mit | 1,782 | 52 | codeparrot/github-code |
963657d41eac001b34c312f9e9070689ae994fa79bce43fe61e6ae7225b74923 | /*
* wm8994-core.c -- Device access for Wolfson WM8994
*
* Copyright 2009 Wolfson Microelectronics PLC.
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publishe... | C | drivers/mfd/wm8994-core.c | danielhk/android_kernel_samsung_smdk4210 | gpl-2.0 | 21,086 | 907 | codeparrot/github-code |
2302c7e1979d0c649dd89d6df1a4112537bbf081dbc650e0f55835e054755c3b | /*
* Generic helpers for smp ipi calls
*
* (C) Jens Axboe <jens.axboe@oracle.com> 2008
*/
#include <linux/irq_work.h>
#include <linux/rcupdate.h>
#include <linux/rculist.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/percpu.h>
#include <linux/init.h>
#include <linux/gfp.h>
#include <linux/sm... | C | kernel/smp.c | codebam/linux | gpl-2.0 | 19,984 | 727 | codeparrot/github-code |
94bf3c4441314db062c3a2302f7a876afe56004a78ab5724f65f99444e2bff79 | // @author Bhavya Mehta
package com.marshalchen.common.demoofui.listviewfilter;
import java.util.ArrayList;
import java.util.Locale;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.Abs... | Java | deprecated/UltimateAndroidNormal/DemoOfUI/src/com/marshalchen/common/demoofui/listviewfilter/PinnedHeaderAdapter.java | cymcsg/UltimateAndroid | apache-2.0 | 5,010 | 173 | codeparrot/github-code |
1318e561416743b5985f13cb4c7f55b54b505b68f571889541dfdb5fa94ec6b4 | /*
* Copyright 2000-2014 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 | plugins/maven/jps-plugin/src/org/jetbrains/jps/maven/compiler/MavenEjbArtifactRootCopyingHandlerProvider.java | ivan-fedorov/intellij-community | apache-2.0 | 2,474 | 55 | codeparrot/github-code |
9179c4c8143069e2af3a7c705ac82b5f041f504935616ca282a0185ab5bedae1 | /**
* Angular Selectize2
* https://github.com/machineboy2045/angular-selectize
**/
angular.module('selectize', []).value('selectizeConfig', {}).directive("selectize", ['selectizeConfig', '$timeout', function(selectizeConfig, $timeout) {
return {
restrict: 'A',
require: '^ngModel',
template: '<select>... | JavaScript | ajax/libs/machineboy2045-angular-selectize2/0.4.3/selectize.js | menuka94/cdnjs | mit | 3,125 | 106 | codeparrot/github-code |
e0a5d3be74f8b32ac257c4f4575b239febae3c2b1dcecf07007df4dab664a4ea | /*
* ll_proto.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Authors: Alexey Kuznetsov, <kuznet@ms2... | C | user/iproute2/lib/ll_proto.c | rhuitl/uClinux | gpl-2.0 | 2,543 | 133 | codeparrot/github-code |
2fb1e3a6b42cac8337ecadf03f3c88d0e59993c2622ad4335c18700dccd3e48d | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-lim2-details" } */
int x;
int a[100];
struct a
{
int X;
int Y;
};
void bla(void);
void test1(void)
{
unsigned i;
/* We should perform store motion here. */
for (x = 0; x < 100; x++)
a[x] = x;
}
void test2(void)
{
unsigned i;
/* But not h... | C | source/gcc-latest/gcc/testsuite/gcc.dg/tree-ssa/loop-32.c | selmentdev/selment-toolchain | gpl-3.0 | 635 | 46 | codeparrot/github-code |
5a6e9621d10714b20eb34122da36ceebe9c7c741bb3d0976c59803ef4fad1996 | /**
* Fit terminal columns and rows to the dimensions of its DOM element.
*
* ## Approach
* - Rows: Truncate the division of the terminal parent element height by the terminal row height.
*
* - Columns: Truncate the division of the terminal parent element width by the terminal character
* width (apply display: i... | JavaScript | wwswebterminal/xterm/addons/fit/fit.js | wegel/wwscc | apache-2.0 | 2,889 | 59 | codeparrot/github-code |
409b01c8a6e4a0def796fdfdbaca630cc830cb4fe7acd667524ed9b56a5c8dd1 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | Java | server/src/main/java/com/thoughtworks/studios/shine/semweb/Graph.java | stevem999/gocd | apache-2.0 | 2,535 | 83 | codeparrot/github-code |
9e9a1350f9a28673fab1673c77df4bf6054fa971eea763df6fbc55cfcc382d6a | /*
* linux/arch/arm/mm/mmap.c
*/
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/shm.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <asm/cputype.h>
#include <asm/system.h>
#define COLOUR_ALIGN(addr,pgoff) \
((((addr)+SHMLBA-1)&~(SHMLBA-1)) + \
(((pgoff)<<PAGE_SHIF... | C | openplatform/sdk/os/kernel-2.6.32/arch/arm/mm/mmap.c | go2ev-devteam/Gplus_2159_0801 | gpl-2.0 | 3,463 | 143 | codeparrot/github-code |
1d886351ef389ab8a09f2ff2c8fc3b8f315321b48c9893a23a8fac58d775fdac | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/*************************************************************... | C++ | vlc/contrib/android/taglib/taglib/mpeg/id3v1/id3v1genres.cpp | DDTChen/CookieVLC | gpl-2.0 | 5,162 | 220 | codeparrot/github-code |
9f24ab580e9c1105f3ff91d3d3229c60e6a78805e67ad89022c03ca0456e407d | //>>built
define("dojox/data/QueryReadStore", ["dojo", "dojox", "dojo/data/util/sorter", "dojo/string"], function(dojo, dojox) {
dojo.declare("dojox.data.QueryReadStore",
null,
{
// summary:
// This class provides a store that is mainly intended to be used
// for loading data dynamically from the server, use... | JavaScript | www/admin/lib/dojo/dojox/data/QueryReadStore.js.uncompressed.js | marcbuils/WorkESB | lgpl-3.0 | 18,408 | 520 | codeparrot/github-code |
2eb1524eea8452b58be2a2af6c7e53276be358c39858d4c0f756f37985c5fd63 | // { dg-options "-std=gnu++14" }
// { dg-do run }
// Copyright (C) 2013-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 So... | C++ | libstdc++-v3/testsuite/experimental/optional/assignment/2.cc | jagleeso/gcc | gpl-2.0 | 3,917 | 194 | codeparrot/github-code |
cdd8d9adc57fd13913c6710bb547df8e082cd69bb1124087451b790508ca3c5b | /* Copyright (C) 2010-2015 Free Software Foundation, Inc.
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran 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, or (at ... | C | libgfortran/io/transfer128.c | timshen91/gcc | gpl-2.0 | 3,084 | 98 | codeparrot/github-code |
83ce705eb25f1edc42773e2a026fcfe24ad734ff8929d561633a1f951ca16ce0 | /*
* Copyright (C) 2011-2014 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRAN... | C | arch/arm/mach-mt6589/mt_gpufreq.c | vredniiy/sprout | gpl-2.0 | 54,713 | 1,660 | codeparrot/github-code |
c28448cf73689fb62245ccd97bb4ae05c6b850a56109623b6e6e73503c2fbd65 | # Copyright 2015, 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 conditions and the f... | Python | third_party/grpc/src/python/src/grpc/framework/foundation/_timer_future.py | kidaa/kythe | apache-2.0 | 6,903 | 229 | codeparrot/github-code |
c0308cb86ffb175fa33ae4b14c00ed361ba0a6b9d8b1e07a05189356a661015e | /*
Copyright 2012 Jun Wako <wakojun@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in ... | C | keyboards/converter/sun_usb/matrix.c | chancegrissom/qmk_firmware | gpl-2.0 | 4,231 | 198 | codeparrot/github-code |
17e7ee0b0576ace8928c70615f14e2684761ca083a870789fe2d209368143d8f | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/>
<title>Create terrain overlays</title>
<link rel="stylesheet" href="../css/styles.css" type="text/css" media="all" /> <link rel="stylesheet" href="../css/containers.css" type="text/css" media="all" /> </head> <body>
<!-- 4492623.html -->
<div class="container">
<d... | HTML | docs/geedocs/5.3.1/answer/4492623.html | google/earthenterprise | apache-2.0 | 15,081 | 147 | codeparrot/github-code |
f300e17a6f723eeee4d3e431e8c5723d8caf89ec7d67d9061c8d2e5c5120cf07 | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... | JavaScript | react_pysics/www/babel-core/lib/transformation/modules/lib/remaps.js | kenokabe/worldtimestream | mit | 4,563 | 198 | codeparrot/github-code |
f192d4f35832c532b5661319055d98222aeff4d71d8057788473b8d846b9427c | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import math
def _float_check_precision(precision_digits=None, precision_rounding=None):
assert (precision_digits is not None or precision_rounding is not None) and \
not (precision_digits and precision_round... | Python | src/openerp/tools/float_utils.py | vileopratama/vitech | mit | 9,416 | 188 | codeparrot/github-code |
0eaa2ab6d03fc0b58a52f026c6b5f6158d97e4549a04f77dbc4a6a7c8bf92fe9 | /*
* Copyright © 2009, 2010 Codethink Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the licence, or (at your option) any later version.
*
* This ... | C | protocols/Sametime/src/glib/gbuffer.c | miranda-ng/miranda-ng | gpl-2.0 | 5,036 | 207 | codeparrot/github-code |
ce8092c0ab33eb9f1027e7a360aedb51cafc35b8ca15996b0e0070633741d4a5 | #ifndef TTY_LGE_DM_DEV_H_
#define TTY_LGE_DM_DEV_H_
#ifdef CONFIG_LGE_DM_DEV
#define NUM_MODEM_CHIP 2
#define DM_DEV_TTY_IOCTL_MAGIC 'K'
#define DM_DEV_TTY_MODEM_OPEN _IOWR(DM_DEV_TTY_IOCTL_MAGIC, 0x01, short)
#define DM_DEV_TTY_MODEM_CLOSE _IOWR(DM_DEV_TTY_IOCTL_MAGIC, 0x02, short)
#define DM_DEV_TTY_MODEM_STA... | C | drivers/char/diag/lg_dm_dev_tty.h | Evervolv/android_kernel_lge_v500 | gpl-2.0 | 1,022 | 34 | codeparrot/github-code |
fbd2a9f3a82c6f3666ef9ed193680f3fd845aef252b2d1da1a6aff6b457cf1bc | /*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program 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 Software Foundation.
*
* This program is distributed... | C | linux/drivers/staging/lustre/lustre/obdclass/lu_object.c | mkvdv/au-linux-kernel-autumn-2017 | gpl-3.0 | 54,750 | 2,117 | codeparrot/github-code |
99c8eae94ede47580c24865d947e636663ca178dda059edb66e631dba8d00daf | /*
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 in writing, softwar... | Java | src/main/java/org/elasticsearch/common/inject/internal/ProviderInstanceBindingImpl.java | dmiszkiewicz/elasticsearch | apache-2.0 | 3,528 | 93 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.