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 |
|---|---|---|---|---|---|---|---|---|
b1219e27c936531fad2e29570a0c9eb5fad07d5adbec8513aca6986613c35a2e | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.openbravo.pos.util;
/**
*
* @author JG uniCenta
*/
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.aw... | Java | src-pos/com/openbravo/pos/util/SwingWorkerProgress.java | sbandur84/micro-Blagajna | gpl-3.0 | 4,579 | 149 | codeparrot/github-code |
506ca2a64958a8048ab516645b62eb83fc40a93ebee81e2e83bc3a84c0774fdb | /*
* Copyright (C) 2014 Andrew Comminos
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is di... | Java | src/main/java/com/morlunk/jumble/audio/encoder/OpusEncoder.java | Morlunk/Jumble | gpl-3.0 | 4,964 | 146 | codeparrot/github-code |
4a1bc0987d6cde1f1c950addcf734fa1eb5c8669d212f49b6c9b3cc8ca76228a | /**
* Copyright Intermesh
*
* This file is part of Group-Office. You should have received a copy of the
* Group-Office license along with Group-Office. See the file /LICENSE.TXT
*
* If you have questions write an e-mail to info@intermesh.nl
*
* @version $Id: AddressContextMenu.js 14816 2013-05-21 08:31:20Z msch... | JavaScript | files/rootdir/usr/local/src/groupoffice-6.2/groupoffice-6.2-setup-www/modules/email/AddressContextMenu.js | deependhulla/powermail-debian9 | gpl-3.0 | 2,771 | 118 | codeparrot/github-code |
6053196e2c0df108596eae5acfa8f94408fe1de0a6992da3c143961012202d8a | using System;
namespace Nez.Timers
{
/// <summary>
/// private class hiding the implementation of ITimer
/// </summary>
class Timer : ITimer
{
public object context { get; set; }
float _timeInSeconds;
bool _repeats;
Action<ITimer> _onTime;
bool _isDone;
float _elapsedTime;
public void stop()
... | C# | src/libs/Nez/Nez-PCL/Utils/Timers/Timer.cs | Blucky87/Otiose2D | gpl-3.0 | 1,236 | 77 | codeparrot/github-code |
a273dc94d950dd9b9581ed50ad123f95362126ddb173d66c3448abc0ec3e1f35 | package pl.llp.aircasting.storage;
import pl.llp.aircasting.storage.db.WritableDatabaseTask;
import com.google.inject.Singleton;
import java.util.concurrent.ConcurrentLinkedQueue;
import static com.google.common.collect.Queues.newConcurrentLinkedQueue;
@Singleton
public class DatabaseTaskQueue
{
final Concurrent... | Java | src/main/java/pl/llp/aircasting/storage/DatabaseTaskQueue.java | Cantal0p3/Networking-Aircasting | gpl-3.0 | 636 | 31 | codeparrot/github-code |
591b40bea5a1f0336350b64f260bb24fcd4a3eadd5342661bfef8b1897a15a5d | # Copyright 2012 the rootpy developers
# distributed under the terms of the GNU General Public License
from __future__ import absolute_import
from ...extern.six.moves import range
from ...extern.six import string_types
__all__ = [
'plot_corrcoef_matrix',
'corrcoef',
'cov',
]
def plot_corrcoef_matrix(mat... | Python | rootpy/plotting/contrib/plot_corrcoef_matrix.py | mverzett/rootpy | gpl-3.0 | 12,192 | 358 | codeparrot/github-code |
27a35867575ca15e85be2d9589db19a619e48e4cafef435bdb361944eb8ce01a | <?php
Route::collection(array('before' => 'auth,csrf'), function() {
/*
List Vars
*/
Route::get('admin/extend/pagetypes', function() {
$vars['messages'] = Notify::read();
$vars['token'] = Csrf::token();
$vars['pagetypes'] = Query::table(Base::table('pagetypes'))->sort('key')->get();
return View::create... | PHP | anchor/routes/pagetypes.php | aravindanve/anchor-cms | gpl-3.0 | 3,165 | 125 | codeparrot/github-code |
cb64332ee07ea27db4b7412f58c1960cb77011ea6af653c759254d40c878ae4d | //
// Copyright(c) 2009 Syntext, Inc. All Rights Reserved.
// Contact: info@syntext.com, http://www.syntext.com
//
// This file is part of Syntext Serna XML Editor.
//
// COMMERCIAL USAGE
// Licensees holding valid Syntext Serna commercial licenses may use this file
// in accordance with the Syntext Serna Commercial... | C | sfworks/common/RangeString.h | malaterre/serna-free-backup | gpl-3.0 | 4,310 | 132 | codeparrot/github-code |
b30b7510f7d76499eb2883524bc51d30ab365d6b832182145f2bf1be2894cbeb |
#include "pios.h"
#include "pios_sim_priv.h"
#include "sim_model.h"
struct pios_sim_state pios_sim_state = {
.accels = {0, 0, 0},
.gyros = {0, 0, 0},
.mag = {0, 0, 0},
.baro = {0},
.q = {1, 0, 0, 0},
.velocity = {0, 0, 0},
.position = {0, 0, 0},
.actuator = {0, 0, 0, 0, 0, 0, 0, 0}
};
/**
* Initialize the ... | C | flight/PiOS.posix/posix/pios_sim.c | mluessi/dronin | gpl-3.0 | 2,797 | 118 | codeparrot/github-code |
5a9e3f68ac667f64bd2b9b3d284b9471beb00d146754596b60c3dc0b0fe1040d | /***********************************************************************
*
* Copyright (C) 2001 Martin Hasenbusch
*
* This file is part of tmLQCD.
*
* tmLQCD 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 Foundat... | C | overrelaxation.c | amabdelrehim/tmLQCD | gpl-3.0 | 6,439 | 233 | codeparrot/github-code |
7cc6f02447e17a6ebc3fdc0c291e2677f285b6458d1318314e59bf0ebec9512f | /*
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | C | platforms/ios/dependencies/SDL-2.0.4-9174/test/testatomic.c | drhelius/Gearsystem | gpl-3.0 | 20,556 | 728 | codeparrot/github-code |
d273f1023a48f9421eb249d08b4c54d89ef437ac03afbf44c13017a526918773 | <?php
/**
* EventlogController.php
*
* -Description-
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... | PHP | app/Http/Controllers/Widgets/EventlogController.php | nwautomator/librenms | gpl-3.0 | 1,571 | 55 | codeparrot/github-code |
4f2ce8a5d58c3027cdb0111d911a102d41418cf3e6621dbc9d446f720f67d8e8 | <?php
/*
* @copyright 2016 Mautic, Inc. All rights reserved
* @author Mautic, Inc
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticFocusBundle\Entity;
use Mautic\CoreBundle\Entity\CommonRepository;
class FocusReposi... | PHP | plugins/MauticFocusBundle/Entity/FocusRepository.php | FarhadF/mautic | gpl-3.0 | 2,110 | 107 | codeparrot/github-code |
9fbb636aa2fec12cdfab800ee9c187b6f5b3bce038d77fc74b3e76147c134378 | #
# Copyright (C) 2011 - 2014 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas 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, version 3 of the License.
#
# Canvas is distributed in the hop... | Ruby | app/controllers/login/oauth_controller.rb | matematikk-mooc/canvas-lms | agpl-3.0 | 2,285 | 70 | codeparrot/github-code |
7a2f6b196efc857164ca113aa441032b11793370cf4160eea7f9bcdab107c922 | ### Implementation of support for the Cybersource Credit card processor
### The name of this file should be used as the key of the dict in the CC_PROCESSOR setting
### Implementes interface as specified by __init__.py
import time
import hmac
import binascii
import re
import json
from collections import OrderedDict, de... | Python | lms/djangoapps/shoppingcart/processors/CyberSource.py | TsinghuaX/edx-platform | agpl-3.0 | 18,673 | 411 | codeparrot/github-code |
faa87788b5d84313e8671d99339b5e1b2149237238346539a0318b4e32a586eb | /**
* 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/core/src/classes/org/jdesktop/wonderland/server/spatial/impl/Universe.java | AsherBond/MondocosmOS | agpl-3.0 | 2,403 | 75 | codeparrot/github-code |
7301f5a2057c9a4b8d1b70b64fe74f1fa4c804c42a1a595721c711d9f2dbe23c | /***************************************************************************
* Copyright (c) Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | C | src/Base/TimeInfo.h | timthelion/FreeCAD | lgpl-2.1 | 4,762 | 162 | codeparrot/github-code |
6fdcca2322f779f33a004b5113d40377aeb8040b220d87547f67edc362957359 | /*
* Copyright 2006, 2007, 2008, 2010 Apple 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 o... | C | src/3rdparty/webkit/WebCore/platform/mac/WebCoreSystemInterface.h | igor-sfdc/qt-wk | lgpl-2.1 | 8,575 | 183 | codeparrot/github-code |
bdc9d90385633ff1f5ba591a20d510435ce8b96d8af80ba14f22f32aae96fcc7 | /*
* Copyright 2017 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless require... | Java | testsuite/integration/vdx/src/test/java/org/wildfly/test/integration/vdx/standalone/MissingClosingTagTestCase.java | jstourac/wildfly | lgpl-2.1 | 9,339 | 172 | codeparrot/github-code |
98304fef987f9fa11936cc767f44ad6eaf97da4bfc9f8dfb51d87704f4c76374 | /*
* domain_event.c: domain event queue processing helpers
*
* Copyright (C) 2010-2014 Red Hat, Inc.
* Copyright (C) 2008 VirtualIron
* Copyright (C) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser... | C | src/conf/domain_event.c | libvirt/libvirt | lgpl-2.1 | 78,971 | 2,423 | codeparrot/github-code |
b78ae893b1209665ae2489f3e3c3102af0e7c70098c556b809437f29e73df087 | /*
* Copyright (c) 2010-2012 Grid Dynamics Consulting Services, Inc, All Rights Reserved
* http://www.griddynamics.com
*
* This library is free software; you can redistribute it and/or modify it under the terms of
* the GNU Lesser General Public License as published by the Free Software Foundation; either
* versi... | Java | chassis/core/src/main/java/com/griddynamics/jagger/extension/ExtensionRegistry.java | dlatnikov/jagger | lgpl-2.1 | 3,237 | 88 | codeparrot/github-code |
631fe7cc6c094a503cf99fc57b3799cb09acabb8b30c14354b58853e60c34a82 | #!/usr/bin/python2
""" SETUP tasks
# workaround for RHEL7
# curl https://copr.fedoraproject.org/coprs/lmr/Autotest/repo/epel-7/lmr-Autotest-epel-7.repo > /etc/yum.repos.d/lmr-Autotest-epel-7.repo
# yum --nogpgcheck -y install python-pip
# pip install selenium
yum --nogpgcheck -y install avocado python-selenium
adduse... | Python | test/avocado/seleniumlib.py | harishanand95/cockpit | lgpl-2.1 | 12,177 | 262 | codeparrot/github-code |
597bb48558e0319a5da14f8c8c80d0952a80e019c130c956186f867cef0db53c | /*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | Java | ee/src/main/java/org/jboss/as/ee/component/deployers/EEDefaultPermissionsProcessor.java | xasx/wildfly | lgpl-2.1 | 4,625 | 99 | codeparrot/github-code |
869c56abd5bd44a6a8ea65c9eb00e2ea0f2a8e6e65dd0c01e2e50d87e64e9a6f | // NAnt - A .NET build tool
// Copyright (C) 2001-2003 Gerry Shaw
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.... | C# | src/Tasks/Svn/AbstractSvnTask.cs | nant/nantcontrib | lgpl-2.1 | 11,830 | 341 | codeparrot/github-code |
1885ca1ef775a2c282515e743ee93792403ae992986fc5cb098ced98ed2b636a | # -*- encoding: utf-8 -*-
# Pilas engine - A video game framework.
#
# Copyright 2010 - Hugo Ruscitti
# License: LGPLv3 (see http://www.gnu.org/licenses/lgpl.html)
#
# Website - http://www.pilas-engine.com.ar
import math
import inspect
import pilas
from . import utils
from .actor import Actor
todos = []
__doc__ = ... | Python | pilas/actores/__init__.py | fsalamero/pilas | lgpl-3.0 | 2,438 | 99 | codeparrot/github-code |
c2300cb0cfd138de34fd005eca6b43848aedc043b12778df7ce6df46b7f8b33b | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
using NetMQ.Core;
namespace NetMQ
{
public class NetMQScheduler : TaskScheduler, IDisposable
{
/// <summary>
/// True if we ow... | C# | src/NetMQ/NetMQScheduler.cs | michax/netmq | lgpl-3.0 | 7,036 | 220 | codeparrot/github-code |
6d440985df9078b0d6e1b62428b5540df06df312c7518e723ed389a9f3cdef3c | """ Load extensions. """
from os import listdir, path as op
CURDIR = op.dirname(__file__)
LINTERS = dict()
PREFIX = 'pylama_'
try:
from importlib import import_module
except ImportError:
from ..libs.importlib import import_module
for p in listdir(CURDIR):
if p.startswith(PREFIX) and op.isdir(op.join(CU... | Python | pymode/libs/pylama/lint/extensions.py | ack8006/Python-mode-klen | lgpl-3.0 | 738 | 31 | codeparrot/github-code |
45da0019bb7d5c77906b5a51a31729ee3b7b3f8091f1179d5cfb49d0b7dca5a8 | /*
* #%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/contentdata/ContentUrlUpdateEntity.java | Alfresco/alfresco-repository | lgpl-3.0 | 2,264 | 86 | codeparrot/github-code |
6bf547d7f2ab1ff8860379bce4170506d61c778359a924430f3063f2e2888250 | //Copyright 2010 Microsoft 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 the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agree... | C# | class/System.Data.Services.Client/Client/System/Data/Services/Client/Xml/XmlWrappingReader.cs | edwinspire/VSharp | lgpl-3.0 | 11,389 | 466 | codeparrot/github-code |
7dbe92d39606e36714806b988efacddc1c5ea68d229d05b82e98948efd21ed0c | /*
* Copyright 2012 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | drools-chance-core/src/main/java/org/drools/chance/rule/ChanceLogicTransformerFactory.java | droolsjbpm/drools-chance | apache-2.0 | 970 | 31 | codeparrot/github-code |
ad079ffb1bcf538bac77206eae7240c30f9113b2adab423a5c099d9cd9acaa08 | /**
* 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-aws/src/test/java/org/apache/camel/component/aws/ddb/UpdateItemCommandTest.java | aaronwalker/camel | apache-2.0 | 3,520 | 81 | codeparrot/github-code |
4bd2e57836d2197f75ac2dafec73c875e703d06bce3ef542e92f0100b8e1cb12 | /**
* 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/io/hfile/TestSeekTo.java | mahak/hbase | apache-2.0 | 14,571 | 361 | codeparrot/github-code |
289b31e45f98efd04ee60224830ce578c6ccc374beb4b7737fa8b2f29649a49c | var CONSTANTS = require('src/constants.json');
var utils = require('src/utils.js');
var bidfactory = require('src/bidfactory.js');
var bidmanager = require('src/bidmanager.js');
var adloader = require('src/adloader');
var adaptermanager = require('src/adaptermanager.js');
/**
* Adapter for requesting bids from C1X he... | JavaScript | modules/c1xBidAdapter.js | hadarpeer/Prebid.js | apache-2.0 | 4,752 | 148 | codeparrot/github-code |
7a46af9b1f87e83d1499996c7b81a2d75039763cb1e86a33b511197fc2483f1c | package org.apache.solr.cloud;
/*
* 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 ... | Java | solr/core/src/test/org/apache/solr/cloud/TestDistribDocBasedVersion.java | fogbeam/Heceta_solr | apache-2.0 | 11,095 | 357 | codeparrot/github-code |
d20e71b18b167e234545f7272d77f489520ed1d654a1d0fd4985b04d8613771e | package liquibase.sqlgenerator.core;
import liquibase.change.ColumnConfig;
import liquibase.change.ConstraintsConfig;
import liquibase.database.Database;
import liquibase.database.core.SQLiteDatabase;
import liquibase.exception.ValidationErrors;
import liquibase.sql.Sql;
import liquibase.sqlgenerator.SqlGeneratorChain... | Java | liquibase-core/src/main/java/liquibase/sqlgenerator/core/AddAutoIncrementGeneratorSQLite.java | NSIT/liquibase | apache-2.0 | 3,340 | 89 | codeparrot/github-code |
bdca9de46ddb00527876f776d6e9decfb0afa917e08b022f170378a5d9e455b1 | package com.tarek360.animationsamples;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class MainActivity extends AppCompatActivity {
private ... | Java | app/src/main/java/com/tarek360/animationsamples/MainActivity.java | tieusangaka/Material-Animation-Samples | apache-2.0 | 2,055 | 71 | codeparrot/github-code |
15b168aafc4d2b7b9bab3c6fac078f9fb7363ef766c306fab81fd63ed5643efe | /*
* Copyright 2013 Palantir Technologies, 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 l... | TypeScript | test/eofLineRuleTests.ts | ScottSWu/tslint | apache-2.0 | 1,186 | 32 | codeparrot/github-code |
eeb3be2d1832d2a54fa607a8b403ecca9252368703ee9f6881d5d5e68393fb16 | /*
* 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-thrift-api/src/main/java/com/facebook/presto/thrift/api/udf/ThriftUdfPageFormat.java | prestodb/presto | apache-2.0 | 1,011 | 38 | codeparrot/github-code |
20db52ec3b99ce97f0c8e2d0a51fdbb4135244cdb9daef14bf820ad9956557b1 | /*
* 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 | core/camel-core/src/test/java/org/apache/camel/processor/WireTapOnPrepareTest.java | objectiser/camel | apache-2.0 | 3,309 | 88 | codeparrot/github-code |
2de96227a8d2e7c505bb9c21a3107f32873ad39853922bda73ca132a454ca67a | // 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.diagnostic;
import com.intellij.openapi.application.ApplicationNamesInfo;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.di... | Java | platform/platform-impl/src/com/intellij/diagnostic/VMOptions.java | goodwinnk/intellij-community | apache-2.0 | 5,728 | 189 | codeparrot/github-code |
da54660af15c8fab0209949f3a0c3f5055fdd5f4238a2ccd4998116c7e1df0d4 | /* Copyright (c) 2016 PaddlePaddle 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... | C | paddle/math/TensorApply.h | Canpio/Paddle | apache-2.0 | 6,880 | 212 | codeparrot/github-code |
d39c2e051b8d4e12be1875ae1bd9f8902c450735c0b644d95513ab330c424f2b | /*
Copyright 2011 Selenium committers
Copyright 2011 Software Freedom Conservancy
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 | java/server/test/org/openqa/grid/internal/RegistryStateTest.java | krosenvold/selenium-git-release-candidate | apache-2.0 | 5,842 | 188 | codeparrot/github-code |
40ee1a10f3b18c5540d91b270c981948108e4c9b81ddaec5614a897a8d29c26a | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework 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
... | Python | src/robot/model/stats.py | alexandrul-ci/robotframework | apache-2.0 | 6,395 | 197 | codeparrot/github-code |
071b0d373c97feb31df72527afbca4f8ac9d7a2783e7ad4d5a421f7584cedb51 | <!--
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... | HTML | contrib/apache-ant-1.8.2/docs/manual/inputhandler.html | splunk/splunk-shuttl | apache-2.0 | 4,794 | 117 | codeparrot/github-code |
5b7f76b33e4f88ce0798dcdef9806002c2177e0545340ee58d5ebdebae87b168 | package org.apereo.cas.influxdb;
import org.apereo.cas.configuration.model.support.influxdb.InfluxDbProperties;
import org.apereo.cas.configuration.support.Beans;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import okhttp3.OkHttpClient;
import org.apache.commons.lang3.StringUtils;
import org.influxdb.InfluxDB... | Java | support/cas-server-support-influxdb-core/src/main/java/org/apereo/cas/influxdb/InfluxDbConnectionFactory.java | rrenomeron/cas | apache-2.0 | 5,229 | 168 | codeparrot/github-code |
6faac610aa3fd3ceb5d75c481fbde0d55ddc403bc791df428c177a72d7945dd5 | package dotty.tools.tasty
import util.Util.dble
object TastyBuffer {
/** The number of digits of the natural number `nat`, written in base 128 format. */
def natSize(nat: Int): Int = {
def loop(n: Int, acc: Int): Int =
if (n < 128) acc else loop(n >>> 7, acc + 1)
loop(nat, 1)
}
/** An address ... | Scala | tasty/src/dotty/tools/tasty/TastyBuffer.scala | som-snytt/dotty | apache-2.0 | 5,730 | 197 | codeparrot/github-code |
d385e4d22c450445358a2b05b257601ee95c29b0a70f6c82b6dc16be2f02b2a6 | /*
* ! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2019 by Hitachi Vantara : http://www.pentaho.com
*
* ******************************************************************************
*
* Licensed under the Apache License,... | Java | engine/src/main/java/org/pentaho/di/trans/ael/websocket/TransWebSocketEngineAdapter.java | mbatchelor/pentaho-kettle | apache-2.0 | 21,145 | 558 | codeparrot/github-code |
54fab02f4afe2cf6ac40be43529576107f35657453a919cece0863093ba38495 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PropertiesUtil.java | trekawek/jackrabbit-oak | apache-2.0 | 14,074 | 348 | codeparrot/github-code |
6d36a834c411b78cbac318de3df7dd929ae34347f75725fb983cc6c0a3ca78ba | # 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 applica... | Python | v0.5.0/google/cloud_v3.8/ssd-tpuv3-8/code/ssd/model/tpu/models/official/retinanet/retinanet_architecture.py | mlperf/training_results_v0.5 | apache-2.0 | 25,570 | 740 | codeparrot/github-code |
c0d38fe241696b52ac251e118fc1014f1a20e4ee977399a56bd3214d933d6b1b | # Copyright 2011 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 | nova/api/openstack/compute/plugins/v3/server_diagnostics.py | afrolov1/nova | apache-2.0 | 2,189 | 63 | codeparrot/github-code |
6cd5e0feac185e498bca5034235491dbccfbccab54211edc9ce004a0f09e5ba7 | /*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/javaFX/javaFX-CE/testSrc/org/jetbrains/plugins/javaFX/fxml/JavaFXUnusedImportInspectionTest.java | semonte/intellij-community | apache-2.0 | 1,378 | 41 | codeparrot/github-code |
af3650ff7adfc0ae7e7dd1bb4424edc2ac2b4bd1eaee44ff23cb493190bd62e9 | package de.fhopf.akka;
import java.util.ArrayList;
import java.util.List;
import org.htmlparser.Parser;
import org.htmlparser.Tag;
import org.htmlparser.tags.BodyTag;
import org.htmlparser.tags.LinkTag;
import org.htmlparser.tags.TitleTag;
import org.htmlparser.util.ParserException;
import org.htmlparser.visitors.Node... | Java | src/main/java/de/fhopf/akka/HtmlParserPageRetriever.java | zhujingling/akka-crawler-example | apache-2.0 | 2,837 | 88 | codeparrot/github-code |
f396b311cabb702224fbac744ccdc1b02f06960427bf7bcbdd32917cad2d73ea | /*
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/sun/management/GcInfoCompositeData.java | andreagenso/java2scala | apache-2.0 | 9,342 | 252 | codeparrot/github-code |
b870949bd530be016312484c8ffd1f982b40fd4771c111af939964d52b0238dd | /*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/preferences/DroolsFlowNodesPreferencePage.java | bbrodt/droolsjbpm-tools | apache-2.0 | 6,748 | 173 | codeparrot/github-code |
0f3c7eedb9b8c32a8a369389d8d515c0f6d0938d223d754416004f8f93ca7371 | /*
* 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-client/src/main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java | apurtell/hbase | apache-2.0 | 12,417 | 283 | codeparrot/github-code |
ba17afe3c3c8c011a4eca03303b507d271d71823dd4d0563a801d6c34c4cad0e | /**
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Cloudera, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | Java | src/javatest/com/cloudera/util/BenchmarkHarness.java | yongkun/flume-0.9.3-cdh3u0-rakuten | apache-2.0 | 9,575 | 247 | codeparrot/github-code |
65706a85b37ab7ef563d9d59b9cb06a4fb392ce97f972563b63326fb0b48175e | /*
* 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-main/src/test/java/io/prestosql/sql/planner/optimizations/TestUnion.java | hgschmie/presto | apache-2.0 | 8,954 | 240 | codeparrot/github-code |
e96b73fb064b0e44ba9dd800890b6187ea3778485efbf8f44448f1801e0bb7d0 | /**
* 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 | storm-compatibility/src/java/backtype/storm/tuple/TupleImpl.java | mycFelix/heron | apache-2.0 | 6,666 | 252 | codeparrot/github-code |
26ffaa889f734368e7951d733c786be0434d7392860af50d6b2f5af6245e667a | /*
* 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 | flink-streaming-java/src/test/java/org/apache/flink/streaming/api/SourceFunctionTest.java | oscarceballos/flink-1.3.2 | apache-2.0 | 2,067 | 56 | codeparrot/github-code |
0ce52d12004d5909dd746daef3e41113ffde558bd71307d59c985a9dfa2aeb0b | #
# Author:: Mike Fiedler (<miketheman@gmail.com>)
# Author:: William Albenzi (<walbenzi@gmail.com>)
# Copyright:: Copyright 2013-2016, Mike Fiedler
# 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 Licen... | Ruby | knife/lib/chef/knife/role_env_run_list_clear.rb | nvwls/chef | apache-2.0 | 1,636 | 56 | codeparrot/github-code |
11cb4dcbb071534da59800d2e82218fd8fb4b85048174bf0b002a40497f9e6ec | from __future__ import absolute_import
import sys
import traceback
__all__ = ['ExceptionInfo', 'Traceback']
DEFAULT_MAX_FRAMES = sys.getrecursionlimit() // 8
class _Code(object):
def __init__(self, code):
self.co_filename = code.co_filename
self.co_name = code.co_name
self.co_argcount ... | Python | desktop/core/ext-py/billiard-3.5.0.5/billiard/einfo.py | kawamon/hue | apache-2.0 | 3,671 | 136 | codeparrot/github-code |
7ba30ea09e340c147e4907a6b1a223a095166f8f4375e303f3b21ae12e7742be | package org.stagemonitor.web.monitor.filter;
import java.io.ByteArrayOutputStream;
import java.io.CharArrayWriter;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
pub... | Java | stagemonitor-web/src/main/java/org/stagemonitor/web/monitor/filter/HttpServletResponseBufferWrapper.java | elevennl/stagemonitor | apache-2.0 | 3,471 | 158 | codeparrot/github-code |
79852bd03feaf6d1c1b8b12bdf412549b57f7fd191056914f55a5f3f4bd08a7f | /*
* 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 | modules/ml/src/test/java/org/apache/ignite/ml/selection/SelectionTestSuite.java | nizhikov/ignite | apache-2.0 | 2,388 | 51 | codeparrot/github-code |
1e48d00afc62792fe15db3500e80840a3fdf1e168a9048c5139b6ddc460b0a3b | /*
* 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-libraries/flink-state-processing-api/src/test/java/org/apache/flink/state/api/SavepointWriterWindowITCase.java | apache/flink | apache-2.0 | 19,860 | 444 | codeparrot/github-code |
881d1ae6bb109ce873b4e38536711180a55a0fc420f6ec6d1e64e24b747a24fc | /*=========================================================================
*
* 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/Core/SpatialObjects/include/itkMetaTubeConverter.h | BRAINSia/ITK | apache-2.0 | 2,729 | 86 | codeparrot/github-code |
eef045d10bc426bb119b1398c16510b617cc25767174ab1d361016bacd2e102e | // Copyright 2015 The Cockroach 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 ag... | GO | storage/range_gc_queue.go | fengshao0907/cockroach | apache-2.0 | 5,162 | 156 | codeparrot/github-code |
23bc4d5e157dcd7dd1dced22ea53b3c2e7a5ef28da20353c757c7c7c42cc8ad8 | /*
* Copyright (C) 2013 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 | src/com/android/accessorydisplay/source/DisplaySourceService.java | JSDemos/android-sdk-20 | apache-2.0 | 8,731 | 247 | codeparrot/github-code |
86be77131db1b5706fe71365b48908f37e7bdd87618f41b808efc43271b2f279 | package testclient
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/watch"
"github.com/openshift/origin/pkg/client"
imageapi "github.com/openshift/origin/pkg/image/api"
)
// FakeImageStreams impl... | GO | pkg/client/testclient/fake_imagestreams.go | hingstarne/origin | apache-2.0 | 2,226 | 56 | codeparrot/github-code |
1906cbeeb3cea8c4dc63cc764d770adcb1fc5cc474138cab078f674cd79f02fa | /**
* 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 not ... | Java | storm-client/src/jvm/org/apache/storm/topology/BaseStatefulBoltExecutor.java | kishorvpatil/incubator-storm | apache-2.0 | 7,867 | 207 | codeparrot/github-code |
c779f3b4df4e873804c54caadcddf95176644ef05bf38906e97ef21a695f448e | /*
* Copyright © 2012-2015 VMware, 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 applic... | C | vmdir/common/memory.c | schatt/lightwave | apache-2.0 | 12,974 | 656 | codeparrot/github-code |
e3278586fb6f1de2ddf209b90a6af8a0be409807ad7aeeddd3bbbb41450718ac | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/groovy/src/org/jetbrains/plugins/groovy/mvc/projectView/TopLevelDirectoryNode.java | goodwinnk/intellij-community | apache-2.0 | 1,835 | 57 | codeparrot/github-code |
1948e46b0cb74696a3e086e74f2f08ffd73ac70f0c15cdc593e6acdfd5b450aa | using System;
using QuickGraph;
namespace GraphSharp.Algorithms.Layout.Simple.Hierarchical
{
public partial class SugiyamaLayoutAlgorithm<TVertex, TEdge, TGraph>
where TVertex : class
where TEdge : IEdge<TVertex>
where TGraph : IVertexAndEdgeListGraph<TVertex, TEdge>
{
[Flags]
protect... | C# | Source/Graph#/Algorithms/Layout/Simple/Hierarchical/SugiyamaLayoutAlgorithm.Enums.cs | FTSRG/seviz | apache-2.0 | 523 | 32 | codeparrot/github-code |
e68cbea8a0c7da021e86a2e46487383170315aae38b0649e4119e4948e889919 | /*
* 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/main/scala/spark/Accumulators.scala | wgpshashank/spark | apache-2.0 | 8,406 | 257 | codeparrot/github-code |
74d7585234e88111668648dd2414ddc3dafbecd7910eec865c4c655879faa0a2 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | Java | test/com/facebook/buck/util/zip/CustomZipEntryTest.java | facebook/buck | apache-2.0 | 3,142 | 89 | codeparrot/github-code |
8509bab46aa7290ba88299e9ad18145ae91bcf0c2eadc5c58d0a32473cce53e2 | /*
* Copyright 2012 - 2013 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... | Java | src/main/java/org/springframework/data/solr/core/query/PartialUpdate.java | dllen/spring-data-solr | apache-2.0 | 3,575 | 130 | codeparrot/github-code |
cfadf94f51638f274d25f7275f015313c4b2bc74178fa0b1b993c30b9124bc25 | # Copyright 2017 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 applicab... | Python | research/tcn/utils/luatables.py | jiaphuan/models | apache-2.0 | 2,393 | 81 | codeparrot/github-code |
3fe56a8d47d2a9cc5ec59166624f6eeac5e5c6230aea76744b074560c9a85576 | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/controller/replication/replication_controller.go | ammeon/kubernetes | apache-2.0 | 26,127 | 620 | codeparrot/github-code |
ba0b319f7c0692dd286638ab5113257be7d38734fe1ea254fe0c575146e7e76b | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | Java | modules/siddhi-core/src/main/java/io/siddhi/core/stream/ServiceDeploymentInfo.java | wso2/siddhi | apache-2.0 | 3,011 | 111 | codeparrot/github-code |
fb975477324c09b708584f513965fc0ef3cf4ca8c19f7db1ac633b885ec9fb5a | /**
* 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... | C++ | query_optimizer/rules/ExtractCommonSubexpression.cpp | UWQuickstep/quickstep | apache-2.0 | 14,468 | 361 | codeparrot/github-code |
6116ddf272930f9c90feb43075b6913bc107fce306382999f967bdca673050c3 | /*
* 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/io/kinesis/src/main/java/org/apache/beam/sdk/io/kinesis/StaticCheckpointGenerator.java | mxm/incubator-beam | apache-2.0 | 1,440 | 42 | codeparrot/github-code |
1962f03b4cda07db225ba0ae8bde2ddd14af79f0ed24cf5611c0298cf8445689 | /*
* 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 | core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableProjectToCalcRule.java | mehant/incubator-calcite | apache-2.0 | 2,090 | 55 | codeparrot/github-code |
d64306fde80d8b59870a929bbfe69b9206db4d92fb97f6a227dfa0bcad0bc216 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2021 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | Java | core/src/test/java/org/pentaho/di/core/variables/VariablesTest.java | ddiroma/pentaho-kettle | apache-2.0 | 6,218 | 176 | codeparrot/github-code |
c0812a8cab7e302360d39a00e04695cbe56a6c98285110047d0271c531d21233 | /*
* 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 | resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala | szhem/spark | apache-2.0 | 32,516 | 748 | codeparrot/github-code |
e5610bf9c4f787a1b76da0a3e68db173085dccebba76c5950a381631eb124d1d | /*
* 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/core-impl/src/com/intellij/psi/impl/smartPointers/AnchorElementInfoFactory.java | amith01994/intellij-community | apache-2.0 | 2,946 | 73 | codeparrot/github-code |
dc36a21dd185aa00604a793a41adc3b021062e89061541e9a1f6bda13a4c5446 | /*
*
* Copyright 2016 gRPC 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 agree... | C++ | src/core/ext/filters/client_channel/http_connect_handshaker.cc | stanley-cheung/grpc | apache-2.0 | 15,297 | 388 | codeparrot/github-code |
b27a0bd0324cb7715a2b544f1f0eaf7a3f629e81fad2c0930abca3e3deb0e469 | package com.twitter.gizzard.shards
case class ShardInfo(
var id: ShardId,
var className: String,
var sourceType: String,
var destinationType: String,
var busy: Busy.Value
) {
def this(className: String, tablePrefix: String, hostname: String) = {
this(ShardId(hostname, tablePrefix), className, "", "", ... | Scala | src/main/scala/com/twitter/gizzard/shards/ShardInfo.scala | kmiku7/gizzard | apache-2.0 | 756 | 32 | codeparrot/github-code |
eba3cb04ef0df3e36fbb92d4b54b118ba6e45e1fea15aea7db49bbca96b70b17 | /*
* Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | Java | components/iotserver-mgt/org.wso2.carbon.device.mgt.iot.common/src/main/java/org/wso2/carbon/device/mgt/iot/common/DeviceController.java | charithag/iot-server-extensions | apache-2.0 | 8,061 | 219 | codeparrot/github-code |
68bbe5c3730e9c98e7b257f2f76fa67d542acf770b7485c62794809634f9e517 | // Copyright 2012-2014 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-MI... | Rust | src/test/bench/task-perf-one-million.rs | ktossell/rust | apache-2.0 | 2,261 | 71 | codeparrot/github-code |
f40b24f0ad73d804675998b0c83b80997ca288f06e5c3eabf0fd4511c5f50d48 | /**
* 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/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsRestOperation.java | xiao-chen/hadoop | apache-2.0 | 7,526 | 203 | codeparrot/github-code |
95d29b4f8250afd4f2c1c2da0054cd2133e83f5d7c3b5d1084e7e6a98ed14b18 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/lang-impl/src/com/intellij/openapi/vfs/encoding/FileEncodingConfigurable.java | michaelgallacher/intellij-community | apache-2.0 | 8,908 | 206 | codeparrot/github-code |
8f77513d4393bb78c3b9ec52cb8fcfa3bddc8cc6e1f8a33b4fb598ea00a75045 | #!/usr/bin/perl -w
use strict;
# This program reads .perltidyrc files and writes them back out
# into a standard format (but comments will be lost).
#
# It also demonstrates how to use the perltidy 'options-dump' and related call
# parameters to read a .perltidyrc file, convert to long names, put it in a
# hash, and w... | Perl | pop/lint-notes/Perl-Tidy-20140328/examples/perltidyrc_dump.pl | pop-idol/pop_examples | apache-2.0 | 11,181 | 320 | codeparrot/github-code |
358082e1a0fe915ba47b59659a1fe0338d5724f0924ef9ef68f172b6b8ff0881 | import {CommonSignals_Enum} from '#core/constants/common-signals';
import {TickLabel_Enum} from '#core/constants/enums';
import {insertAfterOrAtStart, waitForBodyOpenPromise} from '#core/dom';
import {setStyles} from '#core/dom/style';
import {rethrowAsync} from '#core/error';
import {map} from '#core/types/object';
i... | JavaScript | src/style-installer.js | alanorozco/amphtml | apache-2.0 | 8,511 | 283 | codeparrot/github-code |
9ee8668af332fa091ead26b5d015a12dd30d4f0508585b7affa09d37c300eec4 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | Java | addOns/automation/src/test/java/org/zaproxy/addon/automation/ExtentionAutomationUnitTest.java | thc202/zap-extensions | apache-2.0 | 35,596 | 941 | codeparrot/github-code |
3d9ffb71161e9d270c2e1e52cb3b299a085ba24d91708529ccd59c6371ff1851 | <!--
Copyright 2012 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 law or agreed to i... | HTML | webgl-globe/polymer-globe/polymer/polymer-all/web-animations-js/test/testcases/test-matrix-transforms.html | passiweinberger/passiweinberger.github.io | apache-2.0 | 2,209 | 84 | codeparrot/github-code |
e55207cfd884e824acfe8f7e6f0fc95d761925ac3c67cf1b3b3ba9a128e60650 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ServiceStack.Support;
#if NETFX_CORE
using Windows.System.Threading;
#endif
namespace ServiceStack
{
public static class ActionExecExtensions
{
public static void ExecAllAndWait(this ICollection<Action> ac... | C# | yafsrc/ServiceStack.OrmLite/src/ServiceStack.Common/ActionExecExtensions.cs | brooksyd2/sitecoreyaf8 | apache-2.0 | 3,340 | 96 | codeparrot/github-code |
666ed240d9d4d3707a0ae39a24f04ffe6057d403a67c458f48bfd7dda494de60 | /*
* 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 | connect/json/src/test/java/org/apache/kafka/connect/json/JsonConverterTest.java | guozhangwang/kafka | apache-2.0 | 50,402 | 932 | codeparrot/github-code |
0a11c9f6011e9f420afb1b6c02b680e5c4608c07537fb27fc05799987dd0ab21 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.provider.calculator.blackstirfutures;
import com.opengamma.analytics.financial.interestrate.InstrumentDerivativeVisitorAdapter;
import com.... | Java | projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/provider/calculator/blackstirfutures/ImpliedVolatilitySTIRFutureOptionCalculator.java | jeorme/OG-Platform | apache-2.0 | 2,184 | 52 | codeparrot/github-code |
a127e363afb19717ab1b32a9fdaf9c0865e41d42e4e5c044baa509e610ed4f83 | package com.zulip.android.networking;
import android.annotation.TargetApi;
import android.os.AsyncTask;
import android.os.Build;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import com.zulip.android.BuildConfig;
import com.zulip.android.ZulipApp;
import com.zulip.android.util.ZLog;
import org... | Java | app/src/main/java/com/zulip/android/networking/ZulipAsyncPushTask.java | zulip/zulip-android | apache-2.0 | 3,896 | 127 | codeparrot/github-code |
1b829046fd3d370bdccce6b6c200d6d292e323c1bb66ef9a3d5c8d13f6215d48 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.interpolation;
import java.util.Arrays;
import com.google.common.primitives.Doubles;
import com.opengamma.analytics.math.matrix.DoubleMatrix2D... | Java | projects/OG-Analytics/src/main/java/com/opengamma/analytics/math/interpolation/NaturalSplineInterpolator.java | jeorme/OG-Platform | apache-2.0 | 7,842 | 203 | codeparrot/github-code |
b3d234da6e7a99fceddbd36b419ae4aec8f200b2631095e0d9e3b1492d18834f | /*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | Java | resolver-dns/src/main/java/io/netty/resolver/dns/DnsServerAddresses.java | NiteshKant/netty | apache-2.0 | 8,280 | 210 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.