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
60eeb8ee30256402eb7a551a82d95b62650dac3fd4fe8a9e97dc271e052d857f
import {appConfig} from 'appConfig'; function NoopTracking() { this.track = angular.noop; } function PiwikTracking(config) { window._paq = window._paq || []; (function() { window._paq.push(['setSiteId', config.id]); window._paq.push(['setTrackerUrl', config.url + '/piwik.php']); v...
TypeScript
scripts/core/analytics/analytics.ts
superdesk/superdesk-client-core
agpl-3.0
2,276
80
codeparrot/github-code
bb031e9f8603779a9e10973edfdc6acdd3dd6deb088a8757e1463dde17d297ee
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
JavaScript
app/javascript/flavours/glitch/components/button.js
Kirishima21/mastodon
agpl-3.0
1,081
53
codeparrot/github-code
2409f42cbf2d0353d48795e67720ec75d2c01504dcff5405e92a923945b666a7
# Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between...
Ruby
config/environments/test.rb
nditech/red-innovadores-lms
agpl-3.0
1,831
47
codeparrot/github-code
23903bc891380e6fa2486db4ecdaad8f15966f3bb9f2bd933409fcb77fe904b3
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2009, 2014 Oracle and/or its affiliates. All rights reserved. * */ using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Xml; using NUnit.Framew...
C#
test/csharp/SecondaryDatabaseConfigTest.cs
zheguang/BerkeleyDB
agpl-3.0
1,944
75
codeparrot/github-code
fbb04778f241c8bfaa988e66008810e418d3a4131ceefbab1cd3c026bf684be7
<?php /********************************************************************************* * Zurmo is a customer relationship management program developed by * Zurmo, Inc. Copyright (C) 2014 Zurmo Inc. * * Zurmo is free software; you can redistribute it and/or modify it under * the terms of t...
PHP
app/protected/modules/import/utils/sanitizers/DedupeSanitizerUtil.php
speixoto/zurmo-for-school
agpl-3.0
5,773
129
codeparrot/github-code
a759fc99e5fc6879b6c8e31b5fffa70d375c16f268ff3d0800ee201996bd4ee0
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-2014 OpenERP (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
Python
openerp/fields.py
Codefans-fan/odoo
agpl-3.0
70,820
1,779
codeparrot/github-code
9a93c8f66e9fb76a1081c041f66fbd539ba602b34e6523d4ff46361e023adc68
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // 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, either version 3 of the License, or // (...
GO
cmd/mv-main.go
minio/mc
agpl-3.0
10,996
322
codeparrot/github-code
0f48702a934785aca50f4855e8cbe20bdbca42ae4ece49abe95ee1379249e821
/* * ProActive Parallel Suite(TM): * The Open Source library for parallel and distributed * Workflows & Scheduling, Orchestration, Cloud Automation * and Big Data Analysis on Enterprise Grids & Clouds. * * Copyright (c) 2007 - 2017 ActiveEon * Contact: contact@activeeon.com * * This library is free software: y...
Java
programming-core/src/main/java/org/objectweb/proactive/core/remoteobject/http/message/HttpReply.java
paraita/programming
agpl-3.0
2,585
81
codeparrot/github-code
1b87385556533d149d1c779684be0a7c7f0408f673da660d1d24355b07dc2894
""" Utility Mixins for unit tests """ import json import sys from django.conf import settings from django.urls import clear_url_caches, resolve from django.test import TestCase from mock import patch from util.db import CommitOnSuccessManager, OuterAtomic class UrlResetMixin(object): """Mixin to reset urls.py ...
Python
common/djangoapps/util/testing.py
philanthropy-u/edx-platform
agpl-3.0
6,042
189
codeparrot/github-code
91cc7c02beae7a505d94f6cee765f24c001d79c7168b4be4ff743dc9b5ff6c1e
/* This file is part of the KDE project Copyright (C) 2004 Michael Brade <brade@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opti...
C++
kontact/plugins/knotes/knotetip.cpp
lefou/kdepim-noakonadi
lgpl-2.1
6,334
225
codeparrot/github-code
f5d0842ddce1596349cf62da61d71b79b0635a56d4e20e29ca1f687844f314fc
/* * JBoss, Home of Professional Open Source. * See the COPYRIGHT.txt file distributed with this work for information * regarding copyright ownership. Some portions may be licensed * to Red Hat, Inc. under one or more contributor license agreements. * * This library is free software; you can redistribute it and/...
Java
connectors/connector-ws/src/main/java/org/teiid/resource/adapter/ws/SignatureProfile.java
jagazee/teiid-8.7
lgpl-2.1
5,796
134
codeparrot/github-code
db7054558a8efb08e6e00952b8447bdf46c0a8908cbc646f2da0fff82aa40ff1
/* This class is based on the original FATCAT implementation by * <pre> * Yuzhen Ye & Adam Godzik (2003) * Flexible structure alignment by chaining aligned fragment pairs allowing twists. * Bioinformatics vol.19 suppl. 2. ii246-ii255. * http://www.ncbi.nlm.nih.gov/pubmed/14534198 * </pre> * * Thanks to Yuzhen ...
Java
biojava3-structure/src/main/java/org/biojava/bio/structure/align/fatcat/FatCat.java
sbliven/biojava
lgpl-2.1
7,863
205
codeparrot/github-code
c4203d518ad88698ca5f2015ba9f40722085a1610313d33cf9b8848438e8ebea
/********** 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 later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
C++
liveMedia/BitVector.hh
balasubramanya/live555win
lgpl-2.1
1,892
59
codeparrot/github-code
4aa916dae677d944a7f87918e1e5c43749be0b2014278f91db99787c2c1845f3
/* * A Gradle plugin for the creation of Minecraft mods and MinecraftForge plugins. * Copyright (C) 2013 Minecraft Forge * * 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 * ...
Java
src/main/java/net/minecraftforge/gradle/tasks/ExtractConfigTask.java
killjoy1221/ForgeGradle
lgpl-2.1
5,338
224
codeparrot/github-code
509d45dd0c9a3525916251b8c66adecac2a09c5de5b05e799d4f7bc161861246
// // Copyright (C) 2006-2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2004-2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement....
C++
sipXmediaLib/src/mp/MprDecode.cpp
litalidev/sipxtapi
lgpl-2.1
11,104
415
codeparrot/github-code
e38636f10fd12be6686f9d7252379861785dbd045011cedafbabf9b17d442cc1
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this f...
C++
liteidex/src/3rdparty/qtc_searchresult/searchresulttreeitems.cpp
visualfc/liteide
lgpl-2.1
4,279
146
codeparrot/github-code
95bfee7f12d08ebdfb6437bf33a45e333b25100eeaed33b6872f9937fb00d0fc
// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html #include "sfidl-namespace.hh" #include "sfidl-factory.hh" #include "sfidl-utils.hh" #include "sfidl-generator.hh" #include <string.h> #include <stdio.h> #include <list> #include <map> namespace { using namespace Sfidl; using std::make_pair; st...
C++
sfi/sfidl-corecxx.cc
GNOME/beast
lgpl-2.1
58,291
1,407
codeparrot/github-code
c54bd2285873b4bbebb2426a59c7cd22f213dc76c1668b18ab9f377296cb7451
/* This file is part of the Joshua Machine Translation System. * * Joshua 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 later version...
Java
test/joshua/decoder/DecoderThreadTest.java
gwenniger/joshua
lgpl-2.1
5,505
179
codeparrot/github-code
a7e01b2c906b758c930d491224806d181f5d0bf9c01532f6bc387c44647c46a6
/* * File : $Source$ * Date : $Date$ * Version: $Revision$ * * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (C) 2002 - 2009 Alkacon Software (http://www.alkacon.com) * * This library is free software; you can redistribute it and/or * modify it und...
Java
src-modules/org/opencms/workplace/tools/sites/CmsSitesWebserverDialog.java
it-tavis/opencms-core
lgpl-2.1
15,869
433
codeparrot/github-code
498e6012d3f8e3fc1353d7c9a048a7fdbc000ce5d61ece1d7e68893a18664d0b
/** * * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) ...
Java
lucee-java/lucee-core/src/lucee/runtime/net/ftp/FTPConnectionImpl.java
jzuijlek/Lucee4
lgpl-2.1
4,970
189
codeparrot/github-code
46557cb780b18f4f567d0089fcc06acd8d4b576b3d2d6fb32f473837782ac37f
/****************************************************************/ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* All contents are licensed under LGPL V2.1 */ /* See LICENSE for full restrictions ...
C++
modules/heat_conduction/src/GapConductance.C
raghavaggarwal/moose
lgpl-2.1
13,743
411
codeparrot/github-code
9710b430dd2991b04921e808e887571310c419ebeca4a805af8bb948f4bb0f07
/* # RGB <-> YUV conversion routines # (C) 2008 Hans de Goede <hdegoede@redhat.com> # RGB565 conversion routines # (C) 2009 Mauro Carvalho Chehab <mchehab@redhat.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public L...
C
libv4lconvert/rgbyuv.c
philips/libv4l
lgpl-2.1
15,756
577
codeparrot/github-code
f6175c1bba60f2ade67363398d0f701cd2efb8f6f8ad9981de5cf5c1cd002bd8
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
C++
include/mapnik/pixel_position.hpp
jwomeara/mapnik
lgpl-2.1
2,225
90
codeparrot/github-code
67c285597eb6d2692f786b334ca4e674a0344ef44479f3773789ac4fc4effad8
#include "labelgridimagetoolboxaction.h" #include "labelgridimagetoolbox.h" #include <QFormLayout> #include <QLabel> namespace sofa { namespace gui { namespace qt { LabelGridImageToolBoxAction::LabelGridImageToolBoxAction(sofa::component::engine::LabelImageToolBox* lba,QObject *parent): LabelImageToolBoxAction(...
C++
applications/plugins/image/imagetoolbox/labelgrid/labelgridimagetoolboxaction.cpp
FabienPean/sofa
lgpl-2.1
9,088
360
codeparrot/github-code
0b75ae72f65d77a1a3ffd774aaab1147757ab029c7a3d51e3a85c5459995c07e
/********************************************************* * Copyright (C) 2009 VMware, Inc. All rights reserved. * * 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 version 2.1 and no ...
C
lib/lock/ulExcl.c
vyos/open-vm-tools
lgpl-2.1
18,380
716
codeparrot/github-code
ea619e8fd6d3b63aeb56e13c11b144b097a76772af9b038459eb3cb6010bd1e3
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this f...
C
src/plugins/projectexplorer/environmentaspect.h
duythanhphan/qt-creator
lgpl-2.1
3,057
88
codeparrot/github-code
f0a12a070125bec5eeddf958373f7baa0f587dfda4691ff5b83138d0671972cb
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Zongsoft.Options; using Zongsoft.Options.Configuration; namespace Zongsoft.Options.Configuration.Samples { public class CmdletOptionElement : OptionConfigurationElement { [OptionConfigurationProperty("name", "")] public...
C#
samples/Zongsoft.Options.Configuration.Samples/CmdletOptionElement.cs
Zongsoft/Zongsoft.CoreLibrary
lgpl-2.1
801
53
codeparrot/github-code
f1a480cd49ddf8ed9b28ad064d2b7c8dd227f0a48ce153f8382b7760acca1e07
#ifndef AL_COMPAT_H #define AL_COMPAT_H #include "AL/al.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> typedef DWORD althread_key_t; int althread_key_create(althread_key_t *key, void (*callback)(void*)); int althread_key_delete(althread_key_t key); void *althread_getspecific(althread_key_t key); ...
C
Alc/compat.h
franklixuefei/openal-soft
lgpl-2.1
1,565
66
codeparrot/github-code
f1e2c44db0a12aa69d536e59c8b296673b0e71093c1dbeaf0e1e94483a54d41f
/** * Copyright (c) 2015, Lucee Assosication Switzerland. 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 op...
Java
source/java/core/src/lucee/runtime/osgi/BundleFile.java
lucee/unoffical-Lucee-no-jre
lgpl-2.1
6,507
242
codeparrot/github-code
6bf9311d64d437a932160c7ba116664eca3064fbb614f52b1bf6346ae2783e36
using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using RefactoringEssentials.CSharp.Diagnostics; namespace RefactoringEssentials.Samples.CSharp { // PLEASE UNCOMMENT THIS LINE...
C#
external/RefactoringEssentials/RefactoringEssentials/Samples/CSharp/SampleAnalyzer.cs
mono/linux-packaging-monodevelop
lgpl-2.1
4,896
96
codeparrot/github-code
d94bc2145f694b73bb11d4c72b31c1ac1cc8ed4eccf5f38fde4d28071724ffea
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2009 Sam Lantinga 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 op...
C
src/video/wscons/SDL_wsconsevents.c
Cpasjuste/SDL-13
lgpl-2.1
6,505
246
codeparrot/github-code
da4815f17a195771b7ea4be35012ed7cd3b8a5cb7f75d1cadbf20cc46b8b1195
<?php namespace wcf\system\version; use wcf\data\IVersionTrackerObject; use wcf\data\object\type\AbstractObjectTypeProvider; use wcf\system\WCF; /** * Abstract implementation of an version tracker object type provider. * * @author Alexander Ebert * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser Gene...
PHP
wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php
Cyperghost/WCF
lgpl-2.1
2,407
109
codeparrot/github-code
bef94db8873477901c51a002306e29f8df0cadffab9709e26352b7a7ad3a12cb
/************************************************************************** * copyright file="TimeZoneTransitionGroup.java" company="Microsoft" * Copyright (c) Microsoft Corporation. All rights reserved. * * Defines the TimeZoneTransitionGroup.java. ******************************************************...
Java
src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java
daitangio/exchangews
lgpl-3.0
10,985
413
codeparrot/github-code
7bed022c9933bd231544a0b5c10a31a3c65b8233e1ff22badb7c98766d622038
''' Goldwasser-Micali Public Key Encryption Scheme (Quadratic Residuosity problem) | From: "S. Goldwasser, S. Micali: Probabilistic encryption and how to play | mental poker keeping secret all partial information" | Published in: 14th Symposium on Theory of Computing (1982) | Available from: http://groups.csai...
Python
charm/schemes/pkenc/pkenc_gm82.py
lferr/charm
lgpl-3.0
2,619
95
codeparrot/github-code
818afbbde4430a69a4917606401b815b90dc5bf4e83400b43ca3805f9bff84d9
/************************************************************************** * copyright file="Suggestion.java" company="Microsoft" * Copyright (c) Microsoft Corporation. All rights reserved. * * Defines the Suggestion.java. **************************************************************************/ pac...
Java
src/main/java/microsoft/exchange/webservices/data/Suggestion.java
daitangio/exchangews
lgpl-3.0
3,066
119
codeparrot/github-code
713700c9a219fc047c08adf1de495df04835e1dbe493725fd99633807dd056ac
package com.aesireanempire.eplus; import com.aesireanempire.eplus.network.CommonProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @M...
Java
src/main/scala/com/aesireanempire/eplus/EnchantingPlusMod.java
darkhax/EnchantingPlus-Scala
lgpl-3.0
1,088
32
codeparrot/github-code
f794af01ddfaa297f76ab6dd54bb5aa3dfda48b7a222c59e98248d514e0162ec
#include "CvHuMoments.h" static int CvHuMoments_tostring(lua_State *L) { CvHuMoments *m=checkCvHuMoments(L,1); lua_pushfstring(L,CVHUMOMENTS_NAME" object: %p\n\thu1=%d\n\thu2=%d\n\thu3=%d\n\thu4=%d\n\thu5=%d\n\thu6=%d\n\thu7=%d\n\t",m,m->hu1,m->hu2,m->hu3,m->hu4,m->hu5,m->hu6,m->hu7); return 1; } static int CvH...
C++
src/objects/CvHuMoments.cpp
egonSchiele/luacv
lgpl-3.0
2,664
130
codeparrot/github-code
65962101ff0e35ec913ef28fc77ea048ce577ea64ca82c1c5f604052938df266
/** * Copyright (C) 2013 Inera AB (http://www.inera.se) * * This file is part of Inera Axel (http://code.google.com/p/inera-axel). * * Inera Axel 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, e...
Java
test/system-test/src/test/java/se/inera/axel/test/st2/TS1_IT.java
sklaxel/inera-axel
lgpl-3.0
7,023
256
codeparrot/github-code
a3a8d8fa4271982250a162e61ee82d1901e0333c775be1d703903f438c1bebbc
// // System.Web.Services.Description.SoapBodyBinding.cs // // Author: // Tim Coleman (tim@timcoleman.com) // // Copyright (C) Tim Coleman, 2002 // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal i...
C#
class/System.Web.Services/System.Web.Services.Description/SoapBodyBinding.cs
edwinspire/VSharp
lgpl-3.0
2,845
112
codeparrot/github-code
5a39325f9725ef59c9eca96c5f94e905de8a68226239d2a0155c8e1d26816d73
/*- * Public platform independent Near Field Communication (NFC) library examples * * Copyright (C) 2009 Roel Verdult * Copyright (C) 2010 Romain Tartière * Copyright (C) 2010 Romuald Conty * Copyright (C) 2011 Adam Laurie * * Redistribution and use in source and binary forms, with or without * modification, a...
C
utils/nfc-mfclassic.c
svn2github/SaalaarFirst
lgpl-3.0
18,317
602
codeparrot/github-code
1f4f7af97d179025646cd46fac9922a585bba026fd96e2f460d2a3ec3d4b4f58
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <title>Source code</title> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <div class="sourceContainer"> <pre><span class="sourceLineNo">0...
HTML
lib/JFreeChart-1.0.17/javadoc/src-html/org/jfree/chart/ChartTransferable.html
GliderWinchItems/GliderWinchj2
unlicense
25,798
351
codeparrot/github-code
5660f14dab1998c65dab392067e701a53965d09144e1992a09cbb77135c7f4e6
/* * Copyright (C) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
C#
play-games-plugin-for-unity-master/source/PluginDev/Assets/GooglePlayGames/BasicApi/DummyClient.cs
manuelsilverio01/JetBird
unlicense
2,630
90
codeparrot/github-code
15a2c3469648ec4d9ffb1902cfec94fef2812379db045a210744a5e0f6d7bdf2
/* * * 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"); y...
Java
tools/stress/src/org/apache/cassandra/stress/StressProfile.java
pallavi510/cassandra
apache-2.0
24,060
574
codeparrot/github-code
72cf3369af3769f082ca927d61f4b38455f3ef5f2b2bba8d473e505100491f5d
/* * Copyright (c) Members of the EGEE Collaboration. 2004-2010. * See http://www.eu-egee.org/partners/ for details on the copyright holders. * * 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 Licens...
C
testsuite/voms/vomsapi-c/vertime.c
giacomini/voms
apache-2.0
2,660
108
codeparrot/github-code
46cbbaec17b76e8f769bbe741c051dafb4c1d247534f57a4e6abf40ded628572
/** * 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-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/IPCLoggerChannel.java
oza/hadoop
apache-2.0
25,073
746
codeparrot/github-code
5112a2e3919464c55f28972974e8b773ee8a3dc5f3f8f40021981f190556b417
/* * Copyright (c) 2008, 2009, 2010 Denis Tulskiy * * 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 3 of the License, or * (at your option) any later version. * * T...
Java
src/java/com/tulskiy/musique/gui/LyricsPanel.java
dubenju/javay
apache-2.0
11,559
289
codeparrot/github-code
b7bdbb3768a21ff2ff5065621747a434326b46c0ba5c4f01221d5bb10012c229
/* * Copyright 2013 Hewlett-Packard Development Company, L.P * * 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...
Java
ali-plugin-main/src/main/java/com/hp/alm/ali/idea/navigation/recognizer/JavaStackTraceRecognizer.java
janotav/ali-idea-plugin
apache-2.0
2,310
53
codeparrot/github-code
a0b29bcbbd3942d598cf5cff04438b38b341799d9c471e3c5eba0bbc41cd56cf
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
Java
contentpager/contentpager/src/androidTest/java/androidx/contentpager/content/TestContentProvider.java
AndroidX/androidx
apache-2.0
13,376
396
codeparrot/github-code
0bb2a6cfbfb128e393c886621df3c695e4249a47290e8e0f204e33c9d0eb3ff9
// 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 un...
JavaScript
app/addons/databases/resources.js
benkeen/couchdb-fauxton
apache-2.0
5,407
212
codeparrot/github-code
da5c8a57b106094261c8b70466eb8fd587390286584bd5a935fa49eba549b8ed
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/ops/dataset_ops.cc
snnn/tensorflow
apache-2.0
38,555
993
codeparrot/github-code
5178ea144c9ceaab0eeec8d8e9d226563f361fbe37bbb9b32fe9ff6e4c968d6f
// Copyright 2015 The rkt Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
GO
rkt/image_list.go
akshaykarle/rkt
apache-2.0
9,378
318
codeparrot/github-code
ad0105a917e4027895b30f76943fe928a59e94ca5fde16f50f38d435e1b20ddd
package org.sagebionetworks.repo.model.upload; public class PartRange { private long lowerBound; private long upperBound; private long numberOfParts; public PartRange(){} public long getUpperBound() { return upperBound; } public void setUpperBound(long upperBound) { this.upperBound = upperBound; } pu...
Java
lib/models/src/main/java/org/sagebionetworks/repo/model/upload/PartRange.java
xschildw/Synapse-Repository-Services
apache-2.0
1,729
81
codeparrot/github-code
8fdf45bbc93d1215befe4d134c5db17c517fa114f017ee9f1899580820ad7f8f
/* * 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-runtime/src/test/java/org/apache/flink/runtime/highavailability/nonha/standalone/StandaloneHaServicesTest.java
haohui/flink
apache-2.0
5,495
132
codeparrot/github-code
f9e06b50ebd1c7f63340f718921665b84fb649f0c0b43aaf836fc53c8c4ac176
package org.arquillian.cube.impl.util;/* * Copyright 2010-2010 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
core/src/main/java/org/arquillian/cube/impl/util/Timespan.java
spolti/arquillian-cube
apache-2.0
20,752
633
codeparrot/github-code
71194875c183273dbd31e59f0bf09792f0069d1531d9f9c47a6e1cf869334ef6
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
C#
ToolBox/CryptoiqDownloader/CryptoiqDownloaderProgram.cs
AlexCatarino/Lean
apache-2.0
2,583
64
codeparrot/github-code
692a48be64fbd825267ef0ec6137cd0d600b0e573244b1553f1b77a47f54c154
package io.dropwizard.configuration; import org.junit.Before; import org.junit.Test; import javax.validation.ConstraintViolation; import javax.validation.Validation; import javax.validation.Validator; import javax.validation.constraints.NotNull; import java.util.Locale; import java.util.Set; import static org.fest.a...
Java
dropwizard-configuration/src/test/java/io/dropwizard/configuration/ConfigurationValidationExceptionTest.java
nicktelford/dropwizard
apache-2.0
1,507
49
codeparrot/github-code
4e9ec15521ec124fd1fb84732fb264ffa3c41a9fea908028ec86d34f9bcb784a
package mesosphere.mesos import com.google.protobuf.ByteString import mesosphere.marathon.Protos.HealthCheckDefinition.Protocol import mesosphere.marathon.Protos.MarathonTask import mesosphere.marathon._ import mesosphere.marathon.api.v2.json.V2AppDefinition import mesosphere.marathon.health.HealthCheck import mesosph...
Scala
src/main/scala/mesosphere/mesos/TaskBuilder.scala
sledigabel/marathon
apache-2.0
11,579
327
codeparrot/github-code
8385f06dfa7a408e8d3eccc8b9fa4e9685555abff440086d078fc8f5f064ea88
/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
C#
zxing_lib/PlanarYUVLuminanceSource.cs
renyh1013/dp2
apache-2.0
8,102
214
codeparrot/github-code
bf6934d4b42add9d02371a3353c269d18d5c7eb9f3cc0a644cd326c59c3685f0
/* * Copyright 2015 sourcestream GmbH * * 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...
Java
app/src/test/java/de/sourcestream/movieDB/SearchListTest.java
fridaysyckness/MovieDB
apache-2.0
2,594
75
codeparrot/github-code
12858a93078083e8ba7b3b7037d2316c1c2f18c82c3400840fc65dc32bd6d983
/******************************************************************************* * * Pentaho Big Data * * Copyright (C) 2002-2019 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the ...
Java
common-fragment-V1/src/test/java/org/pentaho/big/data/impl/shim/mapreduce/RunningJobMapReduceJobAdvancedImplTest.java
mkambol/pentaho-hadoop-shims
apache-2.0
5,513
142
codeparrot/github-code
0db57b3e86cd98993d839f6cba1d7258feaa472ad09a35e2bc68ec515c12dcf7
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Energy Production in California</title> <style type="text/css"> path{ stroke: white; stroke-width: .25px; } path.fade{ display: none; } </style> </head> <body> <script src="http://d3js.org/d3.v3.min...
HTML
story_template_1/assets/charts/california_energy/index.html
jeremycflin/ONAGlobe
apache-2.0
6,020
188
codeparrot/github-code
4790a61a9466d1f17095b66f8c112f057d53c8a5ac7b4ba2107911843df4d2d2
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
Python
core/controllers/practice_sessions.py
brianrodri/oppia
apache-2.0
3,351
94
codeparrot/github-code
3cc15ca930b5c6b29032bde534432bddc635f706db080e73b5d001c80c2860d7
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/opsworkscm/OpsWorksCM_EXPORTS.h> #include <aws/opsworkscm/model/EngineAttribute.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { templ...
C
aws-cpp-sdk-opsworkscm/include/aws/opsworkscm/model/ExportServerEngineAttributeResult.h
awslabs/aws-sdk-cpp
apache-2.0
3,263
107
codeparrot/github-code
fe98704ff1863cc6d53fc508d868248a580a3d0eda747bee93765f7ab0157703
/* Copyright 2016 Goldman Sachs. 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...
Java
reladomo/src/main/java/com/gs/fw/common/mithra/finder/shortop/ShortGreaterThanEqualsOperation.java
nikhilnanivadekar/reladomo
apache-2.0
2,725
87
codeparrot/github-code
2f6037bb4dab00d97457e8ff0da25719915ea342221c778a17fbf55f2da23b71
/** * Copyright 2013 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 required...
Java
components/camel-sap/org.fusesource.camel.component.sap.model.edit/src/org/fusesource/camel/component/sap/model/rfc/provider/ServerDataEntryItemProvider.java
janstey/fuse
apache-2.0
5,948
191
codeparrot/github-code
a82a84947b0362095f967695eb83aec3468dd12d40d0ff8024dc788a318b5956
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.rs
GBGamer/rust
apache-2.0
3,677
120
codeparrot/github-code
de593c68003b7c9be1fcdddd8a19389d2f897d73dfc2c5f963e93ed6df94a069
import { AsyncTestCompleter, beforeEach, ddescribe, describe, el, expect, iit, inject, it, xit, TestComponentBuilder, beforeEachBindings } from 'angular2/testing_internal'; import {MapWrapper} from 'angular2/src/core/facade/collection'; import { CompileDirectiveMetadata, CompileTypeMetadata ...
TypeScript
modules/angular2/test/core/compiler/change_definition_factory_spec.ts
ttowncompiled/angular
apache-2.0
6,826
199
codeparrot/github-code
7830570566c2b7cd6ffa5a6610c076327089d385a1cb2a5ba5ece62441977d67
// +build !providerless /* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
GO
staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_standard.go
klaus1982/kubernetes
apache-2.0
7,255
200
codeparrot/github-code
c2e393cacb7d388efd18cbc9399ca3f48d950d714fd34fe79f44b948da058b80
/** * Copyright 1996-2014 FoxBPM ORG. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
modules/foxbpm-engine/src/main/java/org/foxbpm/engine/impl/identity/GroupRelationEntity.java
fashionsun/FoxBPM
apache-2.0
1,357
77
codeparrot/github-code
1e6e79a97de7263fabad08a41f25c230e3bc3e4bca190f34f26213f62b1ff101
/* * 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
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/serialization/StandardFlowSerializerTest.java
MikeThomsen/nifi
apache-2.0
9,900
178
codeparrot/github-code
08fb14bc1f7985eee37242b549fb35ee4d112af786589a2f36d0af94915f622b
package com.marshalchen.ultimaterecyclerview.appPaginator; import android.app.Fragment; import android.os.Build; import android.support.annotation.IdRes; import android.support.annotation.LayoutRes; import android.view.View; import android.widget.ProgressBar; /** * Created by hesk on 15/2/16. */ public abstract cla...
Java
UltimateRecyclerView/ultimaterecyclerview/src/main/java/com/marshalchen/ultimaterecyclerview/appPaginator/paginator.java
HKMOpen/UltimateRecyclerView
apache-2.0
4,681
187
codeparrot/github-code
2defaf550615ec1852a70986746a7a86616e46d00d7613bf22d8986dd8518658
<?php /* Ajax functions here */ // -------------------- FULLTEXT RELATED ---------------------- add_action('wp_ajax_ajaxsearchpro_activate_fulltext', 'ajaxsearchpro_activate_fulltext'); function ajaxsearchpro_activate_fulltext() { global $wpdb; $fulltext = wpdreamsFulltext::getInstance(); $table...
PHP
wp-content/plugins3/ajax-search-pro/backend/settings/admin-ajax.php
Juni4567/meritscholarship
apache-2.0
6,644
188
codeparrot/github-code
e1df57c04fdb999ebfbd32794621c1d25540282a1e30ccd1be3f57a9c160390b
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package java.util import scala.annotation.swi...
Scala
javalib/src/main/scala/java/util/Properties.scala
scala-js/scala-js
apache-2.0
10,402
383
codeparrot/github-code
7a15e4b81e03f10578c740251a1917601520a9e496edd398ba075d165a2d95c8
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/AliasConfigurationJsonUnmarshaller.java
trasa/aws-sdk-java
apache-2.0
3,372
82
codeparrot/github-code
31a2870d3d15fefbfbabc98f74338113e11d51a69d4f2d7fdb750f3121f49811
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
modules/flowable5-engine/src/main/java/org/activiti5/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java
roberthafner/flowable-engine
apache-2.0
7,363
161
codeparrot/github-code
a6d1f82a3a8f875db3bde7d07d76335ea1a5a2ca145296df297026da42465d56
package org.apereo.cas.consent; import org.apereo.cas.authentication.CoreAuthenticationTestUtils; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.config.CasConsentCoreConfiguration; import org.apereo.cas.config.CasCoreAuthenticationConfiguration; import org.apereo.cas.config.CasCoreAuthen...
Java
support/cas-server-support-consent-core/src/test/java/org/apereo/cas/consent/BaseConsentRepositoryTests.java
fogbeam/cas_mirror
apache-2.0
7,095
156
codeparrot/github-code
117405f0a4634b978711d9570a856a62882c0aa6eb1be50306031b3662521c8b
# # Author:: Tyler Cloke (<tyler@chef.io>) # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # 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:...
Ruby
lib/chef/knife/key_edit.rb
jaymzh/chef
apache-2.0
3,531
119
codeparrot/github-code
96f6a6d07c13942c5dfedb061d0b84947ffde90ca4cd84b178e679909984394c
/******************************************************************************* * Copyright (c) 2005, 2009 committers of openArchitectureWare and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies th...
Java
external/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/BuildJob.java
markus1978/clickwatch
apache-2.0
2,067
60
codeparrot/github-code
13a7abe415dbac4fbb085cfae021bbd98fe02de3b535fccc275d6ae744ff60fe
package com.chopping.application; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import java.util.Set; import android.content.ComponentName; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.Pa...
Java
src/main/java/com/chopping/application/BasicPrefs.java
XinyueZ/Chopping
apache-2.0
20,754
661
codeparrot/github-code
912c4742de9159455a35fedc3774e75d7043546f19eaea7e6b29388c39b786a1
'use strict'; import _ from 'lodash'; import { module } from 'angular'; export const KUBERNETES_V1_SERVERGROUP_TRANSFORMER = 'spinnaker.kubernetes.serverGroup.transformer'; export const name = KUBERNETES_V1_SERVERGROUP_TRANSFORMER; // for backwards compatibility module(KUBERNETES_V1_SERVERGROUP_TRANSFORMER, []).fact...
JavaScript
app/scripts/modules/kubernetes/src/v1/serverGroup/transformer.js
sgarlick987/deck
apache-2.0
1,522
48
codeparrot/github-code
0d841f64e1828a6be9a7584d4b69f05654aefd035ae7d21b86fbfc048a68f947
/* * 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
dependencies/jclouds/provider/aws-ec2/1.8.1-stratos/src/main/java/org/jclouds/aws/ec2/compute/extensions/AWSEC2SecurityGroupExtension.java
agentmilindu/stratos
apache-2.0
8,821
217
codeparrot/github-code
774f8dab86565c6a71b8df149d5fb150ae6d01d996aecaed3c33ab189418b1f7
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala
kiszk/spark
apache-2.0
50,732
1,335
codeparrot/github-code
eea0e14a7ca8dcdcd4e66aa3eecc275b035113092edd9ea2f5c615263688ce01
package com.coolweather.app.db; import java.util.ArrayList; import java.util.List; import com.coolweather.app.model.City; import com.coolweather.app.model.County; import com.coolweather.app.model.Province; import android.content.ContentValues; import android.content.Context; import android.database.Cursor...
Java
src/com/coolweather/app/db/CoolWeatherDB.java
benbenhuang/coolWearher
apache-2.0
4,106
153
codeparrot/github-code
1e989c8264722e7622808f72971c759b6aa224bb6f66b974608e4ed9094e2575
#----------------------------------------------------------- # esent # Get contents of Esent\Process key from Software hive # # Note: Not sure why I wrote this one; just thought it might come # in handy as info about this key is developed. # # copyright 2010 Quantum Analytics Research, LLC #-------------...
Perl
RecentActivity/release/rr-full/plugins/esent.pl
kefir-/autopsy
apache-2.0
2,013
80
codeparrot/github-code
5468c1ebc215767ab5ee9d1d0882e1d97383d5641506784601c025ee1a04d69f
// Copyright 2015 Google 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 by applicable...
Java
examples/adwords_axis/src/main/java/adwords/axis/v201502/campaignmanagement/AddKeywordsInBulk.java
andyj24/googleads-java-lib
apache-2.0
7,592
194
codeparrot/github-code
8511583b52b0d366d741d731ed8410d983268aba9232c79d0c881ec18398686d
define("footballheatmap-bundle", ["sap_viz_ext_footballheatmap-src/js/flow", "css!sap_viz_ext_footballheatmap-src/style/default.css"], function(flowDefinition, cssStyleDeclaration) { var cssString = "", rules, i; if (cssStyleDeclaration && cssStyleDeclaration.cssRules) { rules = cssStyleDeclaration.cssRul...
JavaScript
Football_Heatmap/src/bundles/sap/viz/ext/footballheatmap/footballheatmap-bundle.js
JMStudiosJoe/lumira-extension-viz
apache-2.0
1,964
47
codeparrot/github-code
d1ed0369e9c2f78dce5f5049f6192ab705ed80c76f1500fbb00c91214efb2f7a
/** * Appcelerator Titanium Mobile * Copyright (c) 2011-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package ti.modules.titanium.android.calendar; import android.app.Notification; i...
Java
android/modules/android/src/java/ti/modules/titanium/android/calendar/AlarmReceiver.java
pinnamur/titanium_mobile
apache-2.0
1,208
38
codeparrot/github-code
2c9e84e545d4de1ae6f666da7d6be0ac974d0513db9b9be214bcbf61742cf874
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-kms/source/model/WrappingKeySpec.cpp
chiaming0914/awe-cpp-sdk
apache-2.0
2,160
74
codeparrot/github-code
6c500b4b85daf56680d95abc17ea9473d2a7b646e69c095bfd3050eddcf330c3
/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the license, or (at your option) any later version. */ package ee.ioc.cs.jbe.browser.detail.constants; ...
Java
src/java/ee/ioc/cs/jbe/browser/detail/constants/ConstantLongInfoDetailPane.java
dubenju/javay
apache-2.0
2,402
74
codeparrot/github-code
8c3f9fb272f75ca6d0e6400a3286e1302446c6c50fa0857aac7c4c0074cc9ab1
package org.ovirt.engine.ui.uicommon.models.userportal; import java.util.Collections; import org.ovirt.engine.core.compat.*; import org.ovirt.engine.ui.uicompat.*; import org.ovirt.engine.core.common.businessentities.*; import org.ovirt.engine.core.common.vdscommands.*; import org.ovirt.engine.core.common.queries.*; im...
Java
frontend/webadmin/modules/uicommon/src/main/java/org/ovirt/engine/ui/uicommon/models/userportal/IVmPoolResolutionService.java
Dhandapani/gluster-ovirt
apache-2.0
1,120
30
codeparrot/github-code
0baa7323d5294a82f0ec3aa51788a1fc2730a5a7a1be08e8f03b11dc02a85bfe
/* * 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 n...
Java
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/CronTriggeringPolicy.java
codescale/logging-log4j2
apache-2.0
6,829
178
codeparrot/github-code
7793550b7c8ef211f0c8bf8f9ed4a83fa986717deb4f8faddb6219213291e071
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/amp/PrometheusService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; ...
C
aws-cpp-sdk-amp/include/aws/amp/model/ConflictException.h
awslabs/aws-sdk-cpp
apache-2.0
5,183
178
codeparrot/github-code
c2bb86c86206116ef49fa23793afcd4075f868c4a287fcac1c92308e888801a1
/** * @file CategoryScoreEvaluator.h * @brief extract the category score from topK score. * * The calculation function is: * category score = (int)(topK score / category weight) * * For example, given the topK score is 123.45, * if the category weight is 1, then the "category score" is 123, * while if the cate...
C
source/core/mining-manager/product-ranker/CategoryScoreEvaluator.h
izenecloud/sf1r-lite
apache-2.0
920
42
codeparrot/github-code
296a68c9d3c6178a97ff1ce3c4944f151a3ea53e35eeb5025553100341cdcba5
/** * Copyright 2005-2015 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
fabric/fabric-zookeeper-jgroups/src/test/java/io/fabric8/test/zookeeper/jgroups/PingTestBase.java
chirino/fabric8
apache-2.0
2,888
96
codeparrot/github-code
c72fccb408069c72cd442fbedeec15a2c269f256e21f02ad222908c8830fc411
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
test/e2e/disruption.go
mwringe/kubernetes
apache-2.0
7,144
257
codeparrot/github-code
cc341cef535cc296e428b3ceeb1e258ccd2ef45d61cc5cdb1672d5ecd87e26b9
/* * 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
presto-raptor/src/main/java/com/facebook/presto/raptor/storage/ShardStats.java
stewartpark/presto
apache-2.0
8,485
256
codeparrot/github-code
6da70a29e32325e043ae6f5e095ead882409fc3dbfb9cfdcd07e5f1b486ab4f2
/** * @file FlowFileRecord.cpp * Flow file record class implementation * * 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 ...
C++
libminifi/src/FlowFileRecord.cpp
achristianson/nifi-minifi-cpp
apache-2.0
10,812
379
codeparrot/github-code
596269c57137e1b124726f7f2638c2575eea3bfeefc2369ffb1e57f0dd76b2e3
/* * 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
server/base/src/main/java/org/apache/accumulo/server/security/delegation/AuthenticationTokenKeyManager.java
dhutchis/accumulo
apache-2.0
5,861
169
codeparrot/github-code
f6260baa1b47412e25c8b5c772d0f4462226c828424ded904c5ee12f5a44143f
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/elasticloadbalancing/model/ApplySecurityGroupsToLoadBalancerResult.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/...
C++
aws-cpp-sdk-elasticloadbalancing/source/model/ApplySecurityGroupsToLoadBalancerResult.cpp
aws/aws-sdk-cpp
apache-2.0
2,070
61
codeparrot/github-code
11e8717dbaa8c36768f20feb11bb5cd7342aec83b0df68fdc94ecad4dadc0927
package cron import ( "fmt" "github.com/Cepave/agent/g" "github.com/Cepave/common/model" "log" "time" ) func ReportAgentStatus() { if g.Config().Heartbeat.Enabled && g.Config().Heartbeat.Addr != "" { go reportAgentStatus(time.Duration(g.Config().Heartbeat.Interval) * time.Second) } } func reportAgentStatus(...
GO
cron/reporter.go
minimum-hsu/agent
apache-2.0
878
40
codeparrot/github-code