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
fff364f8bf5cd05c194c8f537fee6e24e51538d6ac927e831a8cff4d69b9e51b
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * OpenRCT2 is the work of many authors, a full list can be found in contributors.md * For more information, visit h...
C
src/openrct2/ride/gentle/mini_helicopters.c
RussianHackers/OpenRCT2
gpl-3.0
14,059
301
codeparrot/github-code
1757bb09710361882e94ac6783656ba79fdf8280369b5b88f664ed30eae2066c
/* Unix SMB/CIFS implementation. Samba utility functions Copyright (C) Andrew Tridgell 1992-1998 Copyright (C) Andrew Bartlett 2001-2004 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 Found...
C
source3/rpc_server/samr/srv_samr_chgpasswd.c
urisimchoni/samba
gpl-3.0
32,227
1,202
codeparrot/github-code
84513cb8bb233886d4b13b3485b1ca05461dcc0ed10d98d21b35c1bdbac5a755
/* Unix SMB/CIFS implementation. routines for marshalling/unmarshalling basic types Copyright (C) Andrew Tridgell 2003 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 versi...
C
librpc/ndr/ndr_basic.c
sathieu/samba
gpl-3.0
37,446
1,494
codeparrot/github-code
ed0d77963f8981d4c3bf43f97f5d3daee8bb67ad46fb23f96d22ba34d07713dc
$(function() { var resultCache = []; var allItems = $(".index .item"); $("#filter_text").keyup(function(){ var searchString = $(this).val(); allItems.addClass('visibility_hidden'); var items; if (resultCache[searchString] === undefined) { items = $(".index .item...
JavaScript
indico/htdocs/js/indico/jquery/authors.js
Ictp/indico
gpl-3.0
1,191
43
codeparrot/github-code
9d666a7c9c24007de515561392458d4503a60f18a1325e02288ee25ebcf5f0ac
// 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 "base/cpu.h" #include "build/build_config.h" #include "testing/gtest/include/gtest/gtest.h" #if _MSC_VER >= 1700 // C4752: found Intel(R) A...
C++
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/base/cpu_unittest.cc
geminy/aidear
gpl-3.0
3,413
128
codeparrot/github-code
3347c25d74adb7a57fe7ece86346677ea099f23ca1270731207607f3fb3230be
/* classes: h_files */ #ifndef SCM_EXTENSIONS_H #define SCM_EXTENSIONS_H /* Copyright (C) 2001, 2006, 2008 Free Software Foundation, Inc. * * 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 Found...
C
libguile/extensions.h
cky/guile
gpl-3.0
1,353
47
codeparrot/github-code
7d199b48b92328292a865eadac786e61bc37a6306e83cb1b482dcd82f3030c87
#ifndef BOOST_MPL_COPY_IF_HPP_INCLUDED #define BOOST_MPL_COPY_IF_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // Copyright David Abrahams 2003-2004 // // 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) /...
C++
cpplib/trunk/boost_1_36_0/boost/mpl/copy_if.hpp
TheSkorm/ISA100.11a-Gateway
gpl-3.0
2,144
97
codeparrot/github-code
cbdb41b2d700677986e1c544e35f4e435922d3d84dab794af9bd5681a9dbf57e
<?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
lang/en/question.php
anieminen/moodle
gpl-3.0
38,813
493
codeparrot/github-code
5febfc13a3a278392f81129d1f1dde006a6922b36fa47849f9758ad813531733
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
C
js/src/jspropertytree.h
michath/MetaMonkey
mpl-2.0
2,639
108
codeparrot/github-code
6251690f1e94235381ffc4caeeb82bcfd498841175225f24dd8601b73a7abcdd
/* * Kuali Coeus, a comprehensive research administration system for higher education. * * Copyright 2005-2016 Kuali, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, eithe...
Java
coeus-impl/src/main/java/org/kuali/kra/institutionalproposal/dao/ojb/AllFundingProposalQueryCustomizer.java
mukadder/kc
agpl-3.0
2,282
51
codeparrot/github-code
193c8820dbefd9a095dac87e4bbdc97d6a4a6aa0e7ae8c009f618cc2abc8b2f9
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
third_party/java/src/com/google_voltpatches/common/collect/AbstractSortedKeySortedSetMultimap.java
deerwalk/voltdb
agpl-3.0
1,658
55
codeparrot/github-code
d5482d3cd0fd39bd35ba9831418ab3dc59726b6fdfb67c226823733c9cbc8ee3
var https = require( 'https' ), zlib = require( 'zlib' ), path = require( 'path' ), fs = require( 'fs' ); var count = 0; var resolved = 0; var outputs = []; var done; function check() { if (resolved === count) { normalize(); display(); } } function makeBar( length ) { var i ...
JavaScript
Library/Moment.Js/2.8.4/tasks/history.js
hannesk001/SPHERE-Framework
agpl-3.0
3,184
138
codeparrot/github-code
ece473f19d25905a3ef50146a9399802baff166c06ca5121bd219cdc768eeb0c
/* * Kuali Coeus, a comprehensive research administration system for higher education. * * Copyright 2005-2015 Kuali, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, eithe...
Java
coeus-impl/src/main/java/org/kuali/coeus/common/budget/framework/personnel/BudgetPersonSalaryDetails.java
sanjupolus/KC6.oLatest
agpl-3.0
3,833
122
codeparrot/github-code
11e35886df29158d445ae468896a7bb5d69527cacc79bb9334b25c6e09644403
/** * Project Wonderland * * Copyright (c) 2004-2009, Sun Microsystems, Inc., All Rights Reserved * * Redistributions in source code form must reproduce the above * copyright and this condition. * * The contents of this file are subject to the GNU General Public * License, Version 2 (the "License"); you may no...
Java
wonderland/modules/tools/phone/src/classes/org/jdesktop/wonderland/modules/phone/server/cell/PhoneStatusListener.java
AsherBond/MondocosmOS
agpl-3.0
6,625
207
codeparrot/github-code
9c56df309500adb3cfed4cebc26014cb1ae0f284a4637784a6cce641759070ee
""" Common utility functions useful throughout the contentstore """ import logging from datetime import datetime from django.conf import settings from django.urls import reverse from django.utils.translation import ugettext as _ from opaque_keys.edx.keys import CourseKey, UsageKey from pytz import UTC from six import...
Python
cms/djangoapps/contentstore/utils.py
Stanford-Online/edx-platform
agpl-3.0
18,481
512
codeparrot/github-code
da6de67898b6b5107036361dcc4acc09ecd6ac83d2b2145f060806a312bb6fbc
/* ======================================================================== * JCommon : a free general purpose class library for the Java(tm) platform * ======================================================================== * * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. * * Project I...
Java
src/main/java/org/jfree/threads/ReaderWriterLock.java
apetresc/JCommon
lgpl-2.1
5,871
211
codeparrot/github-code
0b5f3fc28f810d2a59af066716f07dfeb10ff7119f739b6b6f1a617c6fe9782e
/* ex: set tabstop=2 expandtab: -*- Mode: C; tab-width: 2; indent-tabs-mode nil -*- */ /** * @file core_actions.h * @author Sandro Rigo * Marcus Bartholomeu * Alexandro Baldassin * Thiago Sigrist * Marilia Chiozo * * @author The ArchC Team * ...
C
src/acpp/core_actions.h
lianaduenha/ArchC
lgpl-2.1
5,823
143
codeparrot/github-code
b7fa959b4812652c6780ddf5c2f06cdf9636e3e8bcba9f951e4fe16e5623989f
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * * Copyright (C) 2011 Colin Walters <walters@verbum.org> * * 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 *...
C
src/libostree/ostree-chain-input-stream.h
sujitfulse/ostree
lgpl-2.1
2,502
69
codeparrot/github-code
eaacc6968aa95d02ff3d2191d4f4008f7ae4278cb68e5130d0684795b3864332
suite('Conversion', function() { var myp5; setup(function(done) { new p5(function(p) { p.setup = function() { myp5 = p; done(); }; }); }); teardown(function() { myp5.remove(); }); var result; suite('p5.prototype.float', function() { test('should be a functio...
JavaScript
test/unit/utilities/conversion.js
mlarghydracept/p5.js
lgpl-2.1
9,465
330
codeparrot/github-code
eb4a21a1218c13463d9072b41dc689b4915633e5062098c70564dde4afdc7d47
/* * eXist EXPath * Copyright (C) 2013 Adam Retter <adam@existsolutions.com> * www.existsolutions.com * * This program 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 * ...
Java
extensions/expath/src/org/expath/httpclient/model/exist/EXistResult.java
hungerburg/exist
lgpl-2.1
5,815
154
codeparrot/github-code
26f3049fda34a27163355605d31947916ed9bc02cdcc51d4d5e5b51be7f7fce6
/* * Entagged Audio Tag library * Copyright (c) 2003-2005 Raphaël Slinckx <raphael@slinckx.net> * Copyright (c) 2004-2005 Christian Laireiter <liree@web.de> * * 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 th...
Java
src/org/jaudiotagger/audio/ogg/util/OggInfoReader.java
nhminus/jaudiotagger-androidpatch
lgpl-2.1
6,506
158
codeparrot/github-code
d68e8fe9a6945142c9150809f31b0e243cf1ca390fefa17ff10bb60ddc3ad627
/** * Copyright (c) SpaceToad, 2011 http://www.mod-buildcraft.com * * BuildCraft is distributed under the terms of the Minecraft Mod Public License * 1.0, or MMPL. Please check the contents of the license located in * http://www.mod-buildcraft.com/MMPL-1.0.txt */ package buildcraft.api.power; import net.minecraf...
Java
src/buildcraft/api/power/PowerHandler.java
PandaTeam/HydroBlocks
lgpl-3.0
10,105
456
codeparrot/github-code
39d462d8499e1a790b9f71c00a3bf4689052ca512f1b8c05832b0d0453a95421
/* * #%L * Alfresco Repository * %% * Copyright (C) 2005 - 2016 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the...
Java
src/main/java/org/alfresco/repo/domain/permissions/ibatis/AclCrudDAOImpl.java
Alfresco/alfresco-repository
lgpl-3.0
21,316
559
codeparrot/github-code
c4b010c3410c45a6e8557960d29a136332df9f9738a1f7eea63015e1d074e64c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * gmpy2_math.h * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Python interface to the GMP or MPIR, MPFR, and MPC multiple precision * * libraries...
C
src/gmpy2_math.h
andreamartire/gmpy
lgpl-3.0
19,713
360
codeparrot/github-code
6f23748bfd2a2dcf5ab0db4240f97c79dcc8874fcb765d09f6e79250faf7d0f4
/* * @BEGIN LICENSE * * Psi4: an open-source quantum chemistry software package * * Copyright (c) 2007-2021 The Psi4 Developers. * * The copyrights for code used from other parties are included in * the corresponding files. * * This file is part of Psi4. * * Psi4 is free software; you can redistribute it an...
C++
psi4/src/psi4/cc/ccenergy/Fme.cc
lothian/psi4
lgpl-3.0
5,059
137
codeparrot/github-code
82e67d800f6206f3e462a338c48b617c2a03336674693b8915bfd3d2f1e0d20e
/* Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) Dual licensed under the MIT or LGPL Version 2 licenses. */ (function() { OMEDITOR.plugins.add( 'templates', { requires : [ 'dialog' ], init : function( editor ) { OMEDITOR.dialog.add( 'templates', OMEDITOR.getUrl( this.path + 'dialogs/te...
JavaScript
samplecenter/basic/timeTest/operamasks-ui-2.0/development-bundle/ui/editor/_source/plugins/templates/plugin.js
yonghuang/fastui
lgpl-3.0
2,272
100
codeparrot/github-code
24a2e5bd42ceb682c633e7fba12294fec9839bedab3730adddcf2d82a463791f
namespace StockSharp.Xaml { using System.Collections.Generic; using System.Linq; using System.Windows.Input; using Ecng.Collections; using Ecng.Common; using Ecng.Configuration; using Ecng.Interop; using Ecng.Xaml; using MoreLinq; using StockSharp.BusinessEntities; /// <summary> /// The table showing th...
C#
Xaml/NewsGrid.xaml.cs
donaldlee2008/StockSharp
lgpl-3.0
2,526
101
codeparrot/github-code
61bbc5c84bab31ae2d2a98eb57ba007a629adb0fdadc8cbbdf92a1e528753d50
#include "client_manager.hh" #include "buffer_manager.hh" #include "command_manager.hh" #include "containers.hh" #include "event_manager.hh" #include "face_registry.hh" #include "file.hh" #include "user_interface.hh" #include "window.hh" namespace Kakoune { ClientManager::ClientManager() = default; ClientManager::~C...
C++
src/client_manager.cc
rstacruz/kakoune
unlicense
5,133
171
codeparrot/github-code
848df77411871de7271d8740986aba93725566aef700c1faf13377ce7219314b
/* * 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/cluster/routing/RoutingServiceTests.java
mmaracic/elasticsearch
apache-2.0
15,018
259
codeparrot/github-code
f82d078ea9d88133896d9d577bed962cc329af1e01e271b7782edf7c6be6da4f
// 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...
C++
src/slave/csi_server.hpp
dforsyth/mesos
apache-2.0
3,130
96
codeparrot/github-code
1c03d89a46994c28d2ca36995fbe538ef4bb5831ce17726c92de9c5d1ecb70c6
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet2/TestDrillParquetReader.java
pwong-mapr/incubator-drill
apache-2.0
11,749
278
codeparrot/github-code
35a1d27892599610b027eb6e5a9d6e48739b05753e77ed59ce57ed206d641bbb
/*Copyright 2015 Huawei Technologies Co., Ltd. All rights reserved. eSDK is 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 ...
C++
sample/eLTE_characteristic/API/eLTE_SDS/eLTE_SDS/eLTE_Tool.cpp
Huawei/eSDK_eLTE_SDK_Windows
apache-2.0
4,879
246
codeparrot/github-code
0e8546bd866840d51e376669f50fb277a4b8363cfca4abb61be813959e84f348
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License,...
Java
engine/src/test/java/org/pentaho/di/trans/steps/streamlookup/StreamLookupMetaTest.java
pavel-sakun/pentaho-kettle
apache-2.0
5,864
131
codeparrot/github-code
6652850fd2af7d792775317fab4eb863281695ad798a31480ee3f422db162590
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
core/trino-main/src/main/java/io/trino/execution/TaskStatus.java
dain/presto
apache-2.0
9,616
288
codeparrot/github-code
8ec944cab1bcc2540751481532b536245257ce3ece71669058f500a44431d1f7
package org.apereo.cas.configuration.model.core.sso; /** * Configuration properties class for {@code create.sso}. * * @author Dmitriy Kopylenko * @since 5.0.0 */ public class SsoProperties { private boolean renewedAuthn = true; private boolean missingService = true; public boolean isRenewedAuthn()...
Java
core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/sso/SsoProperties.java
creamer/cas
apache-2.0
668
32
codeparrot/github-code
cb47d269c629cf3f12c38fca284bb4569bd4e4ccee3c78fe080e97286fa61f54
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
C
tess-two/jni/com_googlecode_leptonica_android/src/prog/edgetest.c
deekoder/tess_two
apache-2.0
3,172
91
codeparrot/github-code
4c5d90e693769c9287d6800ed39b5aefaa92f2570ecfc6506032df506a35f95e
/** * 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-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java
curso007/camel
apache-2.0
6,656
171
codeparrot/github-code
32144e14b3439c9b13911248eef0dd79f8fe57dda1b147d78828517d7f593ec2
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XBreakpointPanelProvider.java
MichaelNedzelsky/intellij-community
apache-2.0
6,449
174
codeparrot/github-code
b23d8d7ad8dbb90175ed145860ba24364d0b5c8f9b8854c9e27c3a3a4e5b5061
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AngularSplitModule } from 'angular-split'; import { SharedModule } from 'app/shared'; import { NoticeModule } from 'app/core/components/notice'; import { ConfigurationIconModule } from 'app/core/components/configuration-...
TypeScript
web/src/main/angular/src/app/routes/transaction-view-page/index.ts
minwoo-jung/pinpoint
apache-2.0
1,331
35
codeparrot/github-code
7992556626808c44a0c841eac13c3aa6f3d5dc8cf83766bfa68d10500b15c4cb
/* * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java
domix/spring-boot
apache-2.0
2,817
85
codeparrot/github-code
9a97e3163909dc5a810dbe14645ff13b0898841e1468c2e90ee82792e4866e52
/* * Copyright 2017 StreamSets 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...
Java
kudu-protolib/src/test/java/com/streamsets/pipeline/stage/destination/kudu/TestKuduOperationType.java
kunickiaj/datacollector
apache-2.0
1,508
52
codeparrot/github-code
dd59a5d25392d322c57438e7579f3257fff905d752470fa36e5ba7f6cb16772a
/* * 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
common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisionTO.java
tmess567/syncope
apache-2.0
2,858
107
codeparrot/github-code
6ba856500d5625cb27e7c64737bdac0ee174ddf872ddec5048f445baedfbd467
// 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...
JavaScript
lib/mm.lang.js
zaidkhan/lms_test
apache-2.0
9,902
261
codeparrot/github-code
d31c079b8845d5785ae86e885825197f30abfa408151ffa7acf041d619190d9c
// Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
C#
src/MassTransit/Exceptions/CommandException.cs
jacobpovar/MassTransit
apache-2.0
1,292
42
codeparrot/github-code
a5eca36d75682686c15a6bd5f79a0158ff024a27163a03dca4ec1c4ccc462bbd
package org.apache.solr.core; /* * 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...
Java
solr/core/src/test/org/apache/solr/core/TestSolrXMLSerializer.java
zhangdian/solr4.6.0
apache-2.0
6,577
157
codeparrot/github-code
0c9ae5331dbf4e2f4f256cdb1c54dda97723c47f51e88eb511441ba58da2373b
"""Debounce helper.""" from __future__ import annotations import asyncio from collections.abc import Awaitable, Callable from logging import Logger from typing import Any from homeassistant.core import HassJob, HomeAssistant, callback class Debouncer: """Class to rate limit calls to a specific command.""" ...
Python
homeassistant/helpers/debounce.py
jawilson/home-assistant
apache-2.0
3,910
127
codeparrot/github-code
b8134feff3e13b586e386123e543a747896b0d276a404aa54e91c239decea446
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
sdks/java/core/src/test/java/org/apache/beam/sdk/testing/CoderPropertiesTest.java
rangadi/beam
apache-2.0
9,270
270
codeparrot/github-code
75f7cd970f90e18f9cf93a97c2b66c1b710664e878db5c192408ce4214d969cc
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
uberfire-workbench/uberfire-workbench-client/src/test/java/org/uberfire/client/workbench/widgets/dnd/CompassDropControllerUnitTestWrapper.java
psiroky/uberfire
apache-2.0
2,481
67
codeparrot/github-code
cd054fbc48ea85fb26596472e3061e0941b4ad8b8bb7214d157b07c0072dc4e2
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
Java
blade.migrate.liferay70/projects/opensocial-portlet-6.2.x/docroot/WEB-INF/src/com/liferay/opensocial/admin/lar/GadgetStagedModelDataHandler.java
codyhoag/blade.tools
apache-2.0
3,523
114
codeparrot/github-code
a8edb1825c54d1558cacb1484d170afe8615ab4b849a5dc84a18a2b14d08379a
/** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
Java
sandbox/fabric/fabric-commands/src/main/java/io/fabric8/commands/ContainerInfo.java
hekonsek/fabric8
apache-2.0
3,562
95
codeparrot/github-code
e539792f6efbff6f53a0bbe3bc8798a77a8257553a3cf80ccb66bd1a8fae182a
/* * Copyright 2017 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
external/storm-kafka-client/src/test/java/org/apache/storm/kafka/spout/KafkaSpoutReactivationTest.java
kishorvpatil/incubator-storm
apache-2.0
7,711
167
codeparrot/github-code
477e6c2c056602b7b09e0029fa02dc5033c117165cf02dbe12a0d58028072c49
/* 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/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java
hawky-4s-/camunda-bpm-platform
apache-2.0
5,414
136
codeparrot/github-code
1bcebf2016af42ea54fdf68a406090e03e23c9118220d7c98ab94df98e800b70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
hadoop-0.11.2/src/java/org/apache/hadoop/mapred/SequenceFileInputFilter.java
moreus/hadoop
apache-2.0
10,738
308
codeparrot/github-code
d5741539a9293fbcb056af0d9be51cc60368043a4b2e76f88732b6a6064e5b67
/* * 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 ...
Scala
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/expressions/array.scala
oscarceballos/flink-1.3.2
apache-2.0
5,678
150
codeparrot/github-code
871f173cc57cbe0abc9d041c588974c14b4cfe0846bf276d3f9ef38a8d0e6252
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
src/main/java/org/apache/parquet/format/event/Consumers.java
kostya-sh/parquet-format
apache-2.0
6,605
199
codeparrot/github-code
eb4f65acb76d5ff44032cafa5f4e93c7c8964f326d6689300c06d53e0cd78870
/** * 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-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/util/AS2HeaderUtils.java
sverkera/camel
apache-2.0
5,793
166
codeparrot/github-code
7703f23d96535740242b5bba940ff3358f51e08fbb0d8b5b4460660678ae8d13
package org.ovirt.engine.ui.userportal.widget.resources; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.ovirt.engine.core.common.businessentities.VM; import org.ovirt.engine.core.common.businessentities.storage.DiskImage; import org.ovirt.engine.ui.common.SubTableResources; imp...
Java
frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/widget/resources/VmTable.java
walteryang47/ovirt-engine
apache-2.0
19,033
506
codeparrot/github-code
f13df3ddb8a345987add018018c1ec2c0900a9e897b88d573f4a1ca693d9b119
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
spring-cloud-dataflow-completion/src/main/java/org/springframework/cloud/dataflow/completion/TaskCompletionProvider.java
mbogoevici/spring-cloud-data
apache-2.0
2,632
77
codeparrot/github-code
0e3876c4d00011ae2d8eafff075a450813bb4126600f38ce80dfea1d344b60ae
#ifndef PARAM_FUNCTIONS_H #define PARAM_FUNCTIONS_H typedef char* (*PARAM_FUNC)(const char*); typedef int (*PARAM_BOOL_INT_FUNC)(const char *, int); typedef char* (*PARAM_WO_DEFAULT_FUNC)(const char*); typedef int (*PARAM_INT_FUNC)(const char*, int, int, int, bool); //typedef bool (*PARAM_BOOL_CRUFT_FUNC)(const char *...
C
src/condor_utils/param_functions.h
djw8605/condor
apache-2.0
1,584
40
codeparrot/github-code
7bed70b9e6e708136c7fcabab87a23430983eea86b50507d46af6a8f4cc43adb
from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse from six import text_type from zerver.models import get_client, UserProfile, Client from zerver.decorator import asynchronous, \ authenticated_json_post_view, internal_noti...
Python
zerver/tornadoviews.py
umkay/zulip
apache-2.0
4,131
99
codeparrot/github-code
117b8d078f26acddac322a5f3188e0ca2e6bf6e3e8d93369b8529766bd91a823
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
core/src/test/scala/spark/AccumulatorSuite.scala
wgpshashank/spark
apache-2.0
4,777
144
codeparrot/github-code
9a59c2d0ee71452386d1efe1844fa86ffe936185b41f4ab766306a5411829c72
package token import ( "encoding/base32" "net/http" "time" "github.com/dgrijalva/jwt-go" "github.com/dgrijalva/jwt-go/request" ) const ( // UserToken is the kind of token to represent a user token. UserToken = "user" // SessToken is the kind of token to represent a session token. SessToken = "sess" // Si...
GO
pkg/token/token.go
umschlag/umschlag-api
apache-2.0
2,916
140
codeparrot/github-code
8f672090b507a48415f0ea0ed7b24c373c2b41dbe04778e9a83b1d1f8b2c3dba
/* * 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/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
dotunolafunmiloye/hadoop-common
apache-2.0
3,250
91
codeparrot/github-code
8405abcbd07a8183abb2c9486e8b473b7ded170593624597e388900a56683d05
/* * Copyright 2014 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
core/api/src/main/java/org/onosproject/net/resource/DefaultLinkResourceAllocations.java
ravikumaran2015/ravikumaran201504
apache-2.0
2,858
94
codeparrot/github-code
032a7fa6c518bdbd42a029441c76dbc6f2a45ffdc37be34166ac25c8d6481a7c
/*------------------------------------------------------------------------- * * dict_ispell.c * Ispell dictionary interface * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * * * IDENTIFICATION * $PostgreSQL: pgsql/src/backend/tsearch/dict_ispell.c,v 1.8 2009/01/01 17:23:48 momjian ...
C
src/backend/tsearch/dict_ispell.c
Chibin/gpdb
apache-2.0
3,285
150
codeparrot/github-code
9d724c0d49ebb39db4fdcb206546ca18c31931b4d012846fb89fc8a3dbac84fe
/** * 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
kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/DefaultKdcHandler.java
plusplusjiajia/directory-kerby
apache-2.0
2,751
74
codeparrot/github-code
a9a12b7f03330836c7d22830cd5e43ebbc5b250b6f8a4071113a96c7f35b10b6
/** * 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
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotMetadata.java
baishuo/hbase-1.0.0-cdh5.4.7_baishuo
apache-2.0
12,842
321
codeparrot/github-code
bcf2c21b451bb9db7287a1a9872d7c17e5ff5f44c4f3da15abae4d00a5eae724
/* * Copyright (c) 2008-2021, Hazelcast, Inc. 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 ...
Java
hazelcast/src/main/java/com/hazelcast/internal/config/PredicateConfigReadOnly.java
emre-aydin/hazelcast
apache-2.0
1,570
53
codeparrot/github-code
85b03b6b458ae5cfe4c2b7baca571e50957300d33f5eec9b579a71d5c61800bc
#include "disp_de.h" #include "disp_display.h" #include "disp_event.h" #include "disp_scaler.h" #include "disp_clk.h" #include "disp_lcd.h" __s32 Image_init(__u32 screen_id) { image_clk_init(screen_id); /* when access image registers, must open MODULE CLOCK of image */ image_clk_on(screen_id, 0); DE_BE_Reg_Init(sc...
C
lichee/brandy/u-boot-2011.09/drivers/video_sunxi/sunxi_v1/de_bsp/de/disp_de.c
indashnet/InDashNet.Open.UN2000
apache-2.0
8,048
304
codeparrot/github-code
0420dd12215450ec97d5c9a1f16c34172774653508532a39d8e8e6e64dd4f7b5
package org.uberfire.client.views.bs2.tab; import com.google.gwt.dom.client.Style; import com.google.gwt.event.logical.shared.SelectionHandler; import com.google.gwt.user.client.Element; import com.google.gwtmockito.GwtMockitoTestRunner; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; ...
Java
uberfire-workbench/uberfire-workbench-client-views-bs2/src/test/java/org/uberfire/client/views/bs2/tab/MultiTabWorkbenchPanelViewTest.java
baldimir/uberfire
apache-2.0
1,539
51
codeparrot/github-code
357db35b72e80de388cb760951429e839c99ffe63739c53703b8a69551e6928c
/* * 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
flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcDynamicOutputFormatBuilder.java
rmetzger/flink
apache-2.0
12,200
264
codeparrot/github-code
c8c101bc7b03c315ec093d1ae05b0530412180aed6225dee0ba554a8ae17e464
<?php final class HarbormasterBuildableViewController extends HarbormasterController { private $id; public function willProcessRequest(array $data) { $this->id = $data['id']; } public function processRequest() { $request = $this->getRequest(); $viewer = $request->getUser(); $id = $this->i...
PHP
src/applications/harbormaster/controller/HarbormasterBuildableViewController.php
hach-que/unearth-phabricator
apache-2.0
7,338
255
codeparrot/github-code
7fb3267563a4bd41f79e2482ee92b72249df9c049bf66e2022b3618e8fb6b7f1
/* * 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
test/org/apache/pig/test/TestUnion.java
rekhajoshm/pigfork
apache-2.0
16,092
372
codeparrot/github-code
dc0201c1ce927bb4736ab1cd9993bb6960fbee18ea06eb6286ddedd638ba6d60
require 'digest/md5' module MiqXmlDiff unless defined?(XML_DIFF_ADD) XML_DIFF_ADD = 1 XML_DIFF_DEL = -1 XML_DIFF_FOUND_ATTR = 'miqcomparefound' end def xmlDiff(xml, stats = {}) st = Time.now stats[:deletes] = stats[:adds] = stats[:updates] = 0 delta = self.class.createDoc("<xmlDiff><add...
Ruby
lib/gems/pending/util/xml/xml_diff.rb
aljesusg/manageiq-gems-pending
apache-2.0
5,561
165
codeparrot/github-code
7760346786087c53e90e898aa9c08b0dae72b0593022a4d7379fcc44b7a3352c
/* * 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
hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/impls/RangePredicate.java
apache/incubator-asterixdb-hyracks
apache-2.0
4,390
134
codeparrot/github-code
891c38c761877d34d0b85ec57f4c0e2442f7cc231730888c5d15805ca2542e6f
package remote //go:generate mockery -name Remote -output mock -case=underscore import ( "net/http" "time" "github.com/drone/drone/model" "golang.org/x/net/context" ) type Remote interface { // Login authenticates the session and returns the // remote user details. Login(w http.ResponseWriter, r *http.Reque...
GO
remote/remote.go
vtolstov/drone
apache-2.0
5,804
163
codeparrot/github-code
6a9e97898e5550cfddd411451e0d1727fb3a1e49c71dab2893939f28f8a722c1
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.psi.impl.java.stubs.impl; import com.intellij.extapi.psi.StubBasedPsiElementBase; import com.intellij.psi.PsiClass; import com.intellij.psi...
Java
java/java-psi-impl/src/com/intellij/psi/impl/java/stubs/impl/PsiClassStubImpl.java
smmribeiro/intellij-community
apache-2.0
7,808
259
codeparrot/github-code
93ea56ea72dc675b4c39a370b64e5e7a81313e1bdd9cbd824e8da62b25689d3a
/*========================================================================= * * Copyright NumFOCUS * * 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...
C
Modules/Filtering/FastMarching/include/itkFastMarchingImageFilter.h
thewtex/ITK
apache-2.0
16,998
473
codeparrot/github-code
ae1b8abd874b2c8a3758ab6c6bd6c18c3fcba5eb670674342dc1ada916f34a0e
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>FBSDKMessengerURLHandlerDelegate Protocol Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" /> ...
HTML
iOS/CrispyOctoMoo/FacebookSDKs/DocSets/FacebookMessengerShareKitSDK-1_3-for-iOS.docset/Contents/Resources/Documents/Protocols/FBSDKMessengerURLHandlerDelegate.html
yangboz/crispy-octo-moo
apache-2.0
12,172
433
codeparrot/github-code
bb9f08502776b851167e4f39cdc37a733f88ca8ce9ad3ad78a24546ae4568f04
require 'octokit' require 'tomlrb' class Curry::RepositoryMaintainersWorker include Sidekiq::Worker include Sidetiq::Schedulable recurrence { daily } attr_reader :people def initialize(config_options = {}) @config_options = { access_token: ENV['GITHUB_ACCESS_TOKEN'], default_media_type: 'a...
Ruby
src/supermarket/app/workers/curry/repository_maintainers_worker.rb
nellshamrell/supermarket
apache-2.0
1,456
58
codeparrot/github-code
2bc5cdfc8e6ab1df3530df1d57736c80ce045804383b37c549d0b2239badc224
/* * 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
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/delegation/BlinkPlannerFactory.java
tillrohrmann/flink
apache-2.0
2,727
72
codeparrot/github-code
a92243aad8d56302bfa24b56dfa7791cff58dec55370e6401cc5e89bc638a443
# Copyright 2015 OpenStack Foundation # 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 requ...
Python
glance/async/flows/convert.py
saeki-masaki/glance
apache-2.0
3,953
116
codeparrot/github-code
2c65802f15b1ad68375e9b8970fb03f86b5c6882d05788ac9c91eb09d1b2803f
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
hadoop-tools/distributedLoadSimulator/src/main/java/org/apache/hadoop/distributedloadsimulator/sls/scheduler/FifoSchedulerMetrics.java
gigaroby/hops
apache-2.0
1,984
59
codeparrot/github-code
844e13d0bbdb57a59e25d124be2d67bd34bf0a5c67aa27d1d766fc88da4e92d1
package ai.clipper.rpc import java.util.ArrayList import ai.clipper.rpc.logging.{RPCEventHistory, RPCEventType} import org.scalatest.FunSuite class RPCEventHistorySuite extends FunSuite { test("short event history is correct") { val eventHistory = new RPCEventHistory(10) val correctEventTypes = new Arr...
Scala
containers/jvm/clipper-rpc/src/test/scala/ai/clipper/rpc/RPCEventHistoryTest.scala
nishadsingh1/clipper
apache-2.0
1,880
64
codeparrot/github-code
4acfa246c9e6580148d12efc3d66b4183e721a9ab4c657cc341e932fbb272156
/* * 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
tools/src/main/java/org/apache/pdfbox/tools/Version.java
ZhenyaM/veraPDF-pdfbox
apache-2.0
2,063
75
codeparrot/github-code
5a992168c2229a36103666edd70d91ecc25fe0de6afc4d8dd33f923f166c6d1b
// Copyright 2008-2010 Victor Iacoban // // 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
plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgRepositorySelectorComponent.java
android-ia/platform_tools_idea
apache-2.0
2,354
79
codeparrot/github-code
bcd123bcaf2efac6aa5b421ab2ed0a123441ca7692727fe2041106f7d8c5c0a4
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.structuralsearch; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.RangeMarker; import com.intellij.openapi.project.Project; i...
Java
platform/structuralsearch/source/com/intellij/structuralsearch/DocumentBasedReplaceHandler.java
leafclick/intellij-community
apache-2.0
2,415
60
codeparrot/github-code
8ecaf012e663449121aaa8b8777edcca843b80f8d1fcbb16aed9010e63b07689
/* eg: Box.show(div) */ var Box = { show: function (id) { var isIE = (document.all) ? true : false; var isIE6 = isIE && ( [/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6); var box = document.getElementById(id); if (!box) { return; } box.style.zIndex...
JavaScript
dubbo-admin/src/main/webapp/js/box.js
delavior/dubbo
apache-2.0
2,896
80
codeparrot/github-code
6e856f0f531b17e9669858818d49c81a89027942bb298a8f0920b6bfd6f47ef0
/* * Copyright 2017-present Open Networking Foundation * * 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 appli...
Java
utils/misc/src/test/java/org/onlab/packet/BasePacketTest.java
kuujo/onos
apache-2.0
1,128
36
codeparrot/github-code
c4eb933572131edd2d21681543ae77afded1f5264043567fcae3f1770f61656a
#! nqp # Copyright (C) 2009-2010, Parrot Foundation. class Ops::Compiler::Actions is HLL::Actions; our $OP; our $OPLIB; INIT { pir::load_bytecode("nqp-setting.pbc"); $OPLIB := 0; } method TOP($/) { make $<body>.ast; } method body($/) { my $past := PAST::Stmts.new( :node($/) ); $pas...
Perl
compilers/opsc/src/Ops/Compiler/Actions.pm
FROGGS/parrot
artistic-2.0
13,317
669
codeparrot/github-code
1253b4d9ad9a37709b485bf98cb6e378b628f44037ce332989dc76b70ea236b7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Minim : : AudioInput : : enableMonitoring</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> </he...
HTML
processing/sketchbook/libraries/minim/documentation/audioinput_method_enablemonitoring.html
UTSDataArena/examples
bsd-2-clause
3,468
123
codeparrot/github-code
8612572f1679827592e18925a5c7ec58ce326386cc674c004b515852dab7f94f
# # # Copyright (C) 2013 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and ...
Python
lib/storage/gluster.py
andir/ganeti
bsd-2-clause
14,117
458
codeparrot/github-code
b7b6dfa879198c1228b324ecfee32482c7737aee39c7cf0804334ffc1b951175
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consists o...
Python
tracopt/perm/config_perm_provider.py
trac-ja/trac-ja
bsd-3-clause
2,233
58
codeparrot/github-code
4fb789bb1c28a385f7221b249945afce0581bb795ee8f5a6bf7a969ceeb9c0c4
""" ============================================= Effect of varying threshold for self-training ============================================= This example illustrates the effect of a varying threshold on self-training. The `breast_cancer` dataset is loaded, and labels are deleted such that only 50 out of 569 samples h...
Python
examples/semi_supervised/plot_self_training_varying_threshold.py
manhhomienbienthuy/scikit-learn
bsd-3-clause
4,008
119
codeparrot/github-code
725209fd11963996c2b4fed6b138a30d9c78b772ef842fa175361fdb2459ee77
/***************************************************************************** Copyright (c) 2014, Intel Corp. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source cod...
C
lib/OpenBLAS-0.2.19/lapack-netlib/LAPACKE/src/lapacke_zhetrf_rook.c
ryanrhymes/openblas
bsd-3-clause
3,476
79
codeparrot/github-code
b8da6549a7f2c10c1c8f0914c7e38d6ec265c70884356531f8a6a78209e78b10
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_INVALIDATION_IMPL_INVALIDATION_SERVICE_ANDROID_H_ #define COMPONENTS_INVALIDATION_IMPL_INVALIDATION_SERVICE_ANDROID_H_ #include <j...
C
components/invalidation/impl/invalidation_service_android.h
axinging/chromium-crosswalk
bsd-3-clause
3,705
96
codeparrot/github-code
72c55d40b951b630263ddea977198a990d3994789dcf18354029b78efaafd991
//===-- HexagonISelDAGToDAG.h -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C
third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h
endlessm/chromium-browser
bsd-3-clause
6,077
165
codeparrot/github-code
3cf7683bd2961b6c239ad7f80f24106bab73e7ec1c3b83f4b2732cade0cf4d0c
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. P...
C++
src/batterytech/src/bt-bullet/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
puretekniq/batterytech
bsd-3-clause
52,119
1,240
codeparrot/github-code
fd2bea6a7e565af338f9e53561571e13fb12e107b48ac1b0fbafb9176620982f
/* * Copyright 2007 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBitmapProcState_DEFINED #define SkBitmapProcState_DEFINED #include "SkBitmap.h" #include "SkMatrix.h" #define FractionalInt_IS_64BIT #ifdef ...
C
third_party/skia/src/core/SkBitmapProcState.h
JoKaWare/WTL-DUI
bsd-3-clause
7,700
191
codeparrot/github-code
3af65f2f969dba7dc15bfc380e1b62fa62222c39bfbdb12eb9a42da6597ed47c
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef GRAPHLAB_SARRAY_READER_BUFFER #define GRAPHLAB_SARRAY_READER_BUFFER #include <memory> #include <vector> #include <sframe/sframe_...
C++
oss_src/sframe/sarray_reader_buffer.hpp
ylow/SFrame
bsd-3-clause
4,068
146
codeparrot/github-code