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
7083b91febb8c4d5cec34c61ed35d3950c209a3145c46433192bacdb0275e486
<?php final class PhabricatorProjectIcon extends Phobject { public static function getIconMap() { return array( 'fa-briefcase' => pht('Briefcase'), 'fa-tags' => pht('Tag'), 'fa-folder' => pht('Folder'), 'fa-users' => pht('Team'), 'fa-bug' => pht('Bug'), 'fa-...
PHP
src/applications/project/icon/PhabricatorProjectIcon.php
hach-que/unearth-phabricator
apache-2.0
1,547
60
codeparrot/github-code
c879b89566d3acd16d682c596d07eea3bc9e23e1d922b3bc1a70195cfe11e520
/* * 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
modules/events/src/test/java/org/apache/tamaya/events/TestConfigView.java
syzer/incubator-tamaya
apache-2.0
4,643
121
codeparrot/github-code
394f825390a5601c774c7c5c701b514e3fcf2ef5fb1d5c36ada134e326bb0c52
<?php /*+*********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initi...
PHP
modules/Products/models/Module.php
basiljose1/byjcrm
apache-2.0
5,293
119
codeparrot/github-code
5d19f6404d60eaa01dad394884f165bda8f4a40d56b224054ffe3f2432edab1d
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/aggfunctions/AvgAggFunction.java
StephanEwen/incubator-flink
apache-2.0
7,723
230
codeparrot/github-code
c44c2bb0d74dcf2c720e8515a26927482c85f9b211529941ede02aca064fd8ed
/*Copyright (C) 2012 Longerian (http://www.longerian.me) 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
src/org/rubychina/android/GlobalResource.java
longerian/RC4A
apache-2.0
1,797
69
codeparrot/github-code
58e8b3ed39c17e9f2cbc697f58b38499fe260a7555baa58be4b06417a4338be1
package set import ( "encoding/json" "errors" "fmt" "io" "os" "path" "strings" "github.com/golang/glog" "github.com/spf13/cobra" kapi "k8s.io/kubernetes/pkg/api" apierrs "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/meta" kresource "k8s.io/kubernetes/pkg/api/resource" "k8s.io/kubernetes...
GO
pkg/cmd/cli/cmd/set/volume.go
jeffvance/origin
apache-2.0
29,411
891
codeparrot/github-code
e03e164429ee8576a2e5bd9475a7a5fc58474fcc3e7487c3347ef947e277c058
/* * Copyright 2011 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 ...
Java
kie-wb-common-widgets/kie-wb-common-ui/src/main/java/org/kie/workbench/common/widgets/client/widget/PercentageCalculator.java
psiroky/kie-wb-common
apache-2.0
979
32
codeparrot/github-code
a0d02002ba7fdbd29ac10de90b2b27991c30a07c120d5c976c0b2be256799bcb
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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
nova/api/openstack/compute/contrib/flavormanage.py
ntt-sic/nova
apache-2.0
3,894
106
codeparrot/github-code
3aefb310aaf07a3466e36d5dc9e0980fd4e8f1f63fc25846114f65ecd9a04d60
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
xml/dom-openapi/src/com/intellij/util/xml/highlighting/DomElementAnnotationHolder.java
paplorinc/intellij-community
apache-2.0
2,866
68
codeparrot/github-code
3a0a9f4bb2ad82732b528b9686784bf1ae283818de0a9198990da97141119810
package com.mapswithme.maps.purchase; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import...
Java
android/src/com/mapswithme/maps/purchase/BookmarkPaymentFragment.java
matsprea/omim
apache-2.0
13,042
373
codeparrot/github-code
7b52f5e2e330c0f0d3baafca8d9e30850adb2e85b768a5609124658b219c3835
/* * Copyright 2010-2013 Coda Hale and Yammer, Inc., 2014-2017 Dropwizard Team * * 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 * *...
Java
metrics/src/test/java/io/dropwizard/metrics/SlidingWindowReservoirTest.java
networknt/light-4j
apache-2.0
1,479
48
codeparrot/github-code
f09dae5d666822f9fd0d8db6a6a19e8cb0948d449445ec229aa74a3a869c1d9f
/* * Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
Java
hazelcast/src/test/java/com/hazelcast/concurrent/atomicreference/AtomicReferenceInstanceSharingTest.java
juanavelez/hazelcast
apache-2.0
2,990
91
codeparrot/github-code
ff286c8fc7828278ab4e5d6e491204db299907f15956b2c32c4a1bc84ae0afa3
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/codedeploy/model/TrafficRoutingType.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws:...
C++
aws-cpp-sdk-codedeploy/source/model/TrafficRoutingType.cpp
awslabs/aws-sdk-cpp
apache-2.0
2,398
78
codeparrot/github-code
0bdee5e6309d1279437bd13df40347c859f128ae96b2d3b9d2e26e918e303ed1
/* * 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-directory/src/main/java/com/amazonaws/services/directory/model/transform/CreateConditionalForwarderResultJsonUnmarshaller.java
flofreud/aws-sdk-java
apache-2.0
1,808
52
codeparrot/github-code
6b5e16d9cfd13b9aca751f0076af918d5ffb55b5cf73d83b58eb30150cd5cb6a
/* * Copyright 2020 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
server/src/main/java/com/thoughtworks/go/server/controller/actions/JsonAction.java
ketan/gocd
apache-2.0
4,901
138
codeparrot/github-code
53b883648e6b7925fe974eb398df6462dd6174bb87a9d5600329d9cca4d5219b
/* * Copyright 2000-2017 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
xml/dom-impl/src/com/intellij/util/xml/impl/DomManagerImpl.java
ThiagoGarciaAlves/intellij-community
apache-2.0
17,979
500
codeparrot/github-code
284774373e1d992673a5107518a2843216777b08c62817a5e24eae999824e683
module('BadAriaRole'); test('No elements === no problems.', function(assert) { var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.NA }; assert.runRule(config); }); test('No roles === no problems.', function(assert) { // Setup fixture var fixture = document.getE...
JavaScript
test/audits/bad-aria-role-test.js
alice/accessibility-developer-tools
apache-2.0
1,950
72
codeparrot/github-code
0c1fcfc896ce5157b0c7e214bfe033a7af1ea4d617835f9ed41dbd72029054a5
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/securityhub/model/StandardsSubscriptionRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; name...
C++
aws-cpp-sdk-securityhub/source/model/StandardsSubscriptionRequest.cpp
awslabs/aws-sdk-cpp
apache-2.0
1,903
83
codeparrot/github-code
faabdaee338fcb7cd735e1469e7a7b66102cb51eb57dfe415eab48a306a36109
require 'puppet/node/facts' require 'puppet/indirector/rest' require 'puppet/util/puppetdb' class Puppet::Node::Facts::Puppetdb < Puppet::Indirector::REST include Puppet::Util::Puppetdb include Puppet::Util::Puppetdb::CommandNames def save(request) facts = request.instance.dup facts.values = facts.value...
Ruby
puppet/lib/puppet/indirector/facts/puppetdb.rb
melissa/puppetdb
apache-2.0
3,402
102
codeparrot/github-code
044859d4795d77bf26c216ee192887dca141446c9d5a646e3ab83f2a9b6c9367
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
Java
quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/storage/database/liquibase/QuarkusLiquibaseConnectionProvider.java
stianst/keycloak
apache-2.0
5,267
139
codeparrot/github-code
0775b814f1d230c677693631b7ae4f87fcfd036dcb9a5d0786034104157254a1
package org.apereo.cas.web.flow.actions; import org.apereo.cas.authentication.CoreAuthenticationTestUtils; import org.apereo.cas.authentication.principal.ResponseBuilderLocator; import org.apereo.cas.authentication.principal.WebApplicationService; import org.apereo.cas.authentication.principal.WebApplicationServiceRes...
Java
core/cas-server-core-webflow/src/test/java/org/apereo/cas/web/flow/actions/RedirectToServiceActionTests.java
robertoschwald/cas
apache-2.0
2,947
71
codeparrot/github-code
289586ace62eefbdbfc5eb35018309bf0b8df1f100c3fecf67b3299759148fa7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <title>Berlin 2013 - Proposal</title> <meta name="author" content="Tim Lossen" > <link rel="alternate" type="applicat...
HTML
static/events/2013-berlin/proposals/Podularity FTW/index.html
benjohnson77/devopsdays-web
apache-2.0
9,252
273
codeparrot/github-code
1ed993e31f51f7e25e0b4ad9d256faf253d776d397c0749667dc1fb89bfede48
let connectionIdx = 0; let messageIdx = 0; function addConnection(connection) { connection.connectionId = ++connectionIdx; addMessage('New connection #' + connectionIdx); connection.addEventListener('message', function(event) { messageIdx++; const data = JSON.parse(event.data); const logString = 'Me...
JavaScript
presentation-api/receiver/receiver.js
beaufortfrancois/samples
apache-2.0
1,980
68
codeparrot/github-code
fd5e8706cf7f9d98c31ff8427c14ce66999dfefac4fa3c236e4de824dd5f3322
/* * Copyright 2013 Steve Vickers * * 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 ...
Scala
bson/src/test/scala/dsl/criteria/UntypedWhereSpec.scala
ReactiveMongo/ReactiveMongo-Extensions
apache-2.0
3,275
141
codeparrot/github-code
60f27f1de8f132975d8add7cd05fb62fec075e5f3ec08a8a4dc045ca002f8c63
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
Java
engine/src/main/java/org/hibernate/validator/cfg/defs/EmailDef.java
jmartisk/hibernate-validator
apache-2.0
1,337
44
codeparrot/github-code
ef27c879e117f95c8c7b893cd109ba1b0dfbba5b79dde3784303e75361bb9fca
/* Copyright IBM Corp. 2016 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 ag...
GO
protos/common/block.go
stonejiang208/fabric
apache-2.0
1,283
41
codeparrot/github-code
057ce65d571638eca41b6e4c16303c83d7f26a8a9a1a0b8547d2057634f12d7d
/* * Copyright (c) 2010. All rights reserved. */ package ro.isdc.wro.model.resource.processor; import static org.junit.Assert.assertEquals; import java.io.File; import java.net.URL; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import ro.isdc.wro.config...
Java
wro4j-core/src/test/java/ro/isdc/wro/model/resource/processor/TestConformColorsCssProcessor.java
UAK-35/wro4j
apache-2.0
1,512
61
codeparrot/github-code
45787b5085f48ee52a485b37f53c90c984e7295edc100b81c3b3edf50d707ab1
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/forecast/ForecastService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServic...
C
aws-cpp-sdk-forecast/include/aws/forecast/model/CreateForecastExportJobResult.h
awslabs/aws-sdk-cpp
apache-2.0
2,339
78
codeparrot/github-code
ab551d3e3f0ff8bbdc963f4ea8d35fbc9efa683b070f56fb728c9936ccb4a4a2
/* * Copyright (c) 2015, 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.a...
Java
samples/petstore/frontend-util/src/main/java/org/wso2/carbon/mss/examples/petstore/util/fe/view/NavigationBean.java
dakshika/product-mss
apache-2.0
1,401
51
codeparrot/github-code
7b470ed143c2477722440330b16d0372e7215e6355f91303fcf0746f1cea4da8
/* * Copyright (c) 2017, 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
components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/validators/OAuth2TokenValidationMessageContextTest.java
darshanasbg/identity-inbound-auth-oauth
apache-2.0
2,398
64
codeparrot/github-code
11612437a139f5fd2f3c1f83272843cedb4e7416de1fcad3a330668e0fcc69ba
/* * XDD - a data movement and benchmarking toolkit * * Copyright (C) 1992-2013 I/O Performance, Inc. * Copyright (C) 2009-2013 UT-Battelle, LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License version 2, as published by the Free Software ...
C
xdd-7.0.0.rc-ramses3/src/bx/bx_worker_thread.c
eunsungc/gt6-RAMSES_8_5
apache-2.0
7,048
143
codeparrot/github-code
43b822d66df81affb7a285d1f498e07a3ed18b362b70bbc4aefdd860fa41a861
package com.bazaarvoice.emodb.common.dropwizard.leader; import com.bazaarvoice.curator.recipes.leader.LeaderService; import com.bazaarvoice.emodb.common.dropwizard.task.TaskRegistry; import com.bazaarvoice.emodb.common.zookeeper.leader.PartitionedLeaderService; import com.google.common.collect.ImmutableMultimap; impor...
Java
common/dropwizard/src/main/java/com/bazaarvoice/emodb/common/dropwizard/leader/LeaderServiceTask.java
billkalter/emodb
apache-2.0
5,047
125
codeparrot/github-code
88a807df21e36e51f84edd088f95a3e887b739ac357cfaa31d1f26a31f37b03b
<!DOCTYPE html> <html devsite> <head> <meta name="project_path" value="/web/tools/workbox/_project.yaml" /> <meta name="book_path" value="/web/tools/workbox/_book.yaml" /> <meta name="gtm_var" data-key="docType" data-value="reference"> <title>Source: workbox-webpack-plugin/src/inject-manifest.js</title> <lin...
HTML
src/content/en/tools/workbox/reference-docs/v3.0.0-beta.0/workbox-webpack-plugin_src_inject-manifest.js.html
ebidel/WebFundamentals
apache-2.0
6,558
172
codeparrot/github-code
07bcf1817e1197b9cd1fd6e7e4ace238c6c3a9bc3a6b263868bcf09309383dac
/** * Copyright 2014 IBM Corp. * * 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 wr...
JavaScript
test/red/api/library_spec.js
ty4tw/node-red
apache-2.0
8,945
260
codeparrot/github-code
0b47917ee6a0f0ed9ef0f27447a5af279475e434a29331c02b71c73c53c5da2b
#!/bin/bash # Copyright 2017 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 ...
Shell
test/kubemark/gce/util.sh
jinlmsft/kubernetes
apache-2.0
5,070
141
codeparrot/github-code
26e35aabf55053ac567f40bfe67472f01a57092c2e02516c89a626da9644e4b9
"""Support for OpenWRT (ubus) routers.""" import logging import re from openwrt.ubus import Ubus import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA, DeviceScanner, ) from homeassistant.const import CONF_HOST, CONF_PASSWORD, CON...
Python
homeassistant/components/ubus/device_tracker.py
jawilson/home-assistant
apache-2.0
5,843
181
codeparrot/github-code
f6417ce153e1dcc757526ed3daff1f2f617d567708c2fbadcc48b2e1b33cb0d8
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/hwpf/hwp/core_activate/proc_post_winkle/proc_post_winkle.C $ */ /* ...
C++
src/usr/hwpf/hwp/core_activate/proc_post_winkle/proc_post_winkle.C
csmart/hostboot
apache-2.0
6,536
173
codeparrot/github-code
c750c233ccebaadb1169b174855cd862f71edc3a1551a2735f81b82abfe0afce
package org.elasticsearch.action.get; import com.bazaarvoice.elasticsearch.client.core.spi.RestExecutor; import com.bazaarvoice.elasticsearch.client.core.spi.RestResponse; import com.bazaarvoice.elasticsearch.client.core.util.UrlBuilder; import org.elasticsearch.action.AbstractRestClientAction; import org.elasticsearc...
Java
es-rest-client-1.3/core/src/main/java/org/elasticsearch/action/get/GetRest.java
bazaarvoice/es-client-java
apache-2.0
2,328
43
codeparrot/github-code
ecaa637f15f754647ee709850b61beca29b66b5a5524f0b6c589bca4d4debbf5
/************************************************************************************************************ DHTML Suite for Applications (C) www.dhtmlgoodies.com, Janury 2007 CSS for the DHTMLSuite.imageSelection class. www.dhtmlgoodies.com Alf Magne Kalleland *********************************************...
CSS
apps/vortice-webapp/target/vortice-webapp/nucleo/themes/zune/css/image-selection.css
afamorim/Vortice
apache-2.0
1,890
68
codeparrot/github-code
c16eb1ad36bc0211b8780b239bd8384df8ffee341d439a450ef32f48ba360e0f
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java
benmccann/pdfbox
apache-2.0
11,926
346
codeparrot/github-code
d4edfee82e864da20ba019e68c0d8d286c9ff951468dcc27119c0c656166993a
/* * #%L * SparkCommerce Framework Web * %% * Copyright (C) 2009 - 2013 Spark Commerce * %% * 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/L...
Java
src/test/java/org/sparkcommerce/core/payment/service/NullPaymentGatewayConfigurationImpl.java
akdasari/SparkIntegration
apache-2.0
3,194
132
codeparrot/github-code
7117f7a56dace671fd46da0354b1df0dc9693e7b01c53f63590350acc4e4af79
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * 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...
JavaScript
web/src/scripts/controllers/drivers-list.js
Stratio/Sparta
apache-2.0
3,460
122
codeparrot/github-code
cfffdf52fdd29849278aaf709997af9229248e4da37b09bfa8ec5ac74f19b2fa
"""Support for Switchbot devices.""" from asyncio import Lock import switchbot # pylint: disable=import-error from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_SENSOR_TYPE, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNo...
Python
homeassistant/components/switchbot/__init__.py
home-assistant/home-assistant
apache-2.0
4,051
123
codeparrot/github-code
b9ad6cca54de1c542d214736a1572b955381d9b424c0a008a314dbbdebec7826
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
core/src/test/java/org/elasticsearch/discovery/zen/publish/PublishClusterStateActionTests.java
dpursehouse/elasticsearch
apache-2.0
44,836
929
codeparrot/github-code
4b55ac1381e930c20f9c27fb9699a094f3f49f28d002be7d2760efe6785d93af
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/kinesisanalytics/model/LambdaOutputUpdate.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace...
C++
aws-cpp-sdk-kinesisanalytics/source/model/LambdaOutputUpdate.cpp
jt70471/aws-sdk-cpp
apache-2.0
1,457
75
codeparrot/github-code
332fa1e9b2b3ea8d3d5f5e2edb26722b3b7af668655a34f1806ac3a1c000df38
package com.orientechnologies.orient.core.index; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.testng.Assert; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.orientechnologies.common.collection.OCompositeKey; import com....
Java
core/src/test/java/com/orientechnologies/orient/core/index/OSimpleKeyIndexDefinitionTest.java
nengxu/OrientDB
apache-2.0
4,965
163
codeparrot/github-code
641d1444492ca03cbf35762c690dab3a3ea5a3f65406510964d0b36c7dbf3c6d
# # Copyright (c) 2008-2015 Citrix Systems, 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...
Python
nssrc/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationpolicy_binding.py
benfinke/ns_python
apache-2.0
6,831
219
codeparrot/github-code
65383d704cb05eb656d1f22f38074203c15a41a4126d44b513ef6d6d98b1bf2d
/* * Copyright 2000-2010 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/ant/src/com/intellij/lang/ant/refactoring/AntRenameHandler.java
IllusionRom-deprecated/android_platform_tools_idea
apache-2.0
3,289
88
codeparrot/github-code
fb21170748818e89c4049b1035f99a647688d6765d31801782d84aa87a17892e
""" Drone.io badge generator. Currently set up to work on Mac. Requires Pillow. """ import os from PIL import Image, ImageDraw, ImageFont SIZE = (95, 18) def hex_colour(hex): if hex[0] == '#': hex = hex[1:] return ( int(hex[:2], 16), int(hex[2:4], 16), int(hex[4:6], 16), ...
Python
assets/badges/drone.io/badge_maker.py
21strun/django-coverage
apache-2.0
1,424
59
codeparrot/github-code
4bdddac302e3773dfdd5834fda237e89ca998023bb34187f36ddb47387bd2f3c
# -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "Lic...
Python
Sketches/JT/Jam/library/trunk/Axon/SchedulingComponent.py
sparkslabs/kamaelia_
apache-2.0
3,988
105
codeparrot/github-code
fe9001a2ff6ed5ce5e44231d3221d404c53b74524a3231bb7f4bba1cb8af4ced
<?php namespace PHPExcel\Reader\Excel5; /** * PHPExcel_Reader_Excel5_RC4 * * Copyright (c) 2006 - 2015 PHPExcel * * 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 * versio...
PHP
library/PHPExcel/Reader/Excel5/RC4.php
winerQin/yesnophp
apache-2.0
2,548
84
codeparrot/github-code
7767e6a0fd2d7e16e6279be7214badd5fe84affaee8e580939dc78f05b34529e
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.plugin.ij.intentions; import com.intellij.codeInsight.CodeInsightUtilBase; import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; import com.int...
Java
idea-gosu-plugin/src/main/java/gw/plugin/ij/intentions/WhileToForFix.java
pdalbora/gosu-lang
apache-2.0
4,712
132
codeparrot/github-code
35edeecc20a697e1a3e394b2ac8daa647b32619338d082fac75871aca0e916f0
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
tensorflow/python/training/checkpoint_utils.py
ppwwyyxx/tensorflow
apache-2.0
19,434
476
codeparrot/github-code
95fc06aa0e15ae0d9b9a7c7b64b4a6ed20927cb03ab853356d4482cd7dfa657d
// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_DATE_H_ #define V8_DATE_H_ #include "src/base/timezone-cache.h" #include "src/globals.h" #include "src/objects/smi.h" namespace v8 { namesp...
C
v8_7_5/src/date.h
weolar/miniblink49
apache-2.0
8,226
248
codeparrot/github-code
af84bbe8845ade8755b9790d52490349337cf835de11bc90cb344c01fb51f6ab
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/legalize_to_standard.cc
karllessard/tensorflow
apache-2.0
7,534
209
codeparrot/github-code
747aa128e7cf213391a0ff24fa81170584107d77ea50a1866c47ffd9a584ebb5
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
Java
core/client/fs/src/main/java/alluxio/client/block/stream/DefaultBlockWorkerClient.java
wwjiang007/alluxio
apache-2.0
9,174
245
codeparrot/github-code
286a3842fea6db1e6983a3be8f1969a99afa93fbb4a44988c32c41c4184501f3
/* mustache.js — Logic-less templates in JavaScript See http://mustache.github.com/ for more info. */ var Mustache = function() { var Renderer = function() {}; Renderer.prototype = { otag: "{{", ctag: "}}", pragmas: {}, buffer: [], pragmas_implemented: { "IMPLICIT-ITERATOR": true, ...
JavaScript
src/main/js/libs/mustache.js
EHJ-52n/js-sensorweb-client
apache-2.0
11,527
388
codeparrot/github-code
0defc01ceec4f40980359a0255a5e320d27a433b4805fd0cc4537a2453e72e04
/* * $Id: WrapperClassBean.java 799110 2009-07-29 22:44:26Z musachy $ * * 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 ...
Java
src/plugins/json/src/test/java/org/apache/struts2/json/WrapperClassBean.java
WillJiang/WillJiang
apache-2.0
4,821
182
codeparrot/github-code
e4e0dbecddac471b2aefcb30f99e3fbe5a6b8371a08b49be83c9890822b3eb40
package alien4cloud.tosca.parser.mapping.generator; import java.io.IOException; import java.util.AbstractMap; import java.util.Map; import javax.annotation.PostConstruct; import javax.annotation.Resource; import lombok.extern.slf4j.Slf4j; import org.springframework.context.ApplicationContext; import org.springframe...
Java
alien4cloud-core/src/main/java/alien4cloud/tosca/parser/mapping/generator/MappingGenerator.java
loicalbertin/alien4cloud
apache-2.0
12,944
261
codeparrot/github-code
3fb5323b1aeaa5415bf571e0d7e2e59911175784566e312779a6d71a8859172d
'use strict'; import { module } from 'angular'; import _ from 'lodash'; import { AccountService, ExpectedArtifactService } from '@spinnaker/core'; import { KubernetesProviderSettings } from '../../../kubernetes.settings'; export const KUBERNETES_V1_CLUSTER_CONFIGURE_COMMANDBUILDER = 'spinnaker.kubernetes.clusterCom...
JavaScript
app/scripts/modules/kubernetes/src/v1/cluster/configure/CommandBuilder.js
sgarlick987/deck
apache-2.0
10,658
334
codeparrot/github-code
1ce385682e2645c8cbc388fef9e8ba25f498fa2fa7ab56563ccdf2b185506ec3
# Copyright 2016 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 a...
Python
examples/v2/waiter/instance.py
aljim/deploymentmanager-samples
apache-2.0
2,634
85
codeparrot/github-code
678e0df6c58e318de8855330be8272b18182c738abef39b276a9863db5b5d476
/* * 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
core/src/test/java/org/apache/carbondata/core/writer/sortindex/CarbonDictionarySortIndexWriterImplTest.java
foryou2030/incubator-carbondata
apache-2.0
6,533
159
codeparrot/github-code
70cce3dec1d2eef15e00ca5582ac79bf07874feebd54eb4474d974f531b26f14
import { getGlobal } from '../src/prebidGlobal.js'; import { createBid } from '../src/bidfactory.js'; import { STATUS } from '../src/constants.json'; import { ajax } from '../src/ajax.js'; import * as utils from '../src/utils.js'; import { config } from '../src/config.js'; import { getHook } from '../src/hook.js'; con...
JavaScript
modules/currency.js
mcallari/Prebid.js
apache-2.0
11,629
300
codeparrot/github-code
939fe8dd3bc6cade049be8ab45924231d916b62783603da17577995a0940451b
<!-- ~ Copyright (c) 2016, 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 ...
HTML
features/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.feature/src/main/resources/api-docs/docs/guide.html
dhanuka84/carbon-apimgt
apache-2.0
4,648
112
codeparrot/github-code
abf93864a7c5e4bd6a4f42f14090953e1c95e96ae30a767ce0181e4854d9fd1f
import app from 'common/electron/app'; import path from 'path'; /** * @return the theme's css path */ function getThemePath (name) { return path.join(app.getAppPath(), 'themes', name + '.css'); } /** * @return the style's css path */ function getStylePath (name) { return path.join(app.getAppPath(), 'styles', ...
JavaScript
src/scripts/common/utils/file-paths.js
rafael-neri/whatsapp-webapp
apache-2.0
963
48
codeparrot/github-code
0761f13b4ef72d47b429fd3c2e090732d1457ff003d28ab138cfddc8f42850c2
{% extends "admin/change_form.html" %} {% load i18n admin_static admin_modify admin_urls %} {% block extrahead %} {{ block.super }} {# hackily include js required for django admin datepicker #} <script type="text/javascript" src="{% static 'admin/js/core.js' %}"></script> <script type="text/javascript"...
HTML
templates/admin/harvest.html
CenterForOpenScience/SHARE
apache-2.0
2,127
53
codeparrot/github-code
2af8166f939e6f1b8b1881618e842de1a3d241a4058c310e5e2fcdfbea7d3c13
/** * Copyright (C) 2015 Born Informatik AG (www.born.ch) * * 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 r...
Java
wte4j-core/src/main/java/org/wte4j/impl/service/MapperSqlType.java
bbrehman/wte4j
apache-2.0
2,743
87
codeparrot/github-code
d21c70eb8a2cdcd1c8e3233f16c0fb9f4b718504e34db1a43b62a45d5132f961
/* 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 applicable law or a...
C++
tensorflow/compiler/xla/tools/parser/hlo_parser.cc
JingJunYin/tensorflow
apache-2.0
84,539
2,423
codeparrot/github-code
d9a1182aaa78cbcee5b96647b2bf0bd92d4433b95b116f55df8ba1bdd25b10e2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ZKTableArchiveClient xref</title> <link type="...
HTML
thirdparty/hbase-1.1.1.2.3.0.0-2557/docs/xref/org/apache/hadoop/hbase/backup/example/ZKTableArchiveClient.html
scalingdata/Impala
apache-2.0
21,962
170
codeparrot/github-code
d1fa1816945848c7e1bd46c542e8d26abf447e517af6c69bf3909d2d7aeb5494
/* * 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: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
Java
handler/src/main/java/io/netty/handler/ssl/OpenSsl.java
yrcourage/netty
apache-2.0
11,625
332
codeparrot/github-code
c2ef26e39c92e61914b4fb667a92ab5b49b83aabe8c61136fd3d42da90797a25
/* * Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: * Maintained By: */ //= require can.jquery-all //= require models/cacheable (function(ns, can) { can.Model.Cacheable("CMS.Models.Document...
JavaScript
src/ggrc/assets/javascripts/pbc/document.js
hamyuan/ggrc-self-test
apache-2.0
3,489
110
codeparrot/github-code
c16490143524d660ae84db7eac73013761508435c85b275f9c0bcc8c8a8405b7
/** * * Copyright 2017 Paul Schaub, 2020 Florian Schmaus * * 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
smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java
igniterealtime/Smack
apache-2.0
49,782
1,148
codeparrot/github-code
8b13c227b447c14d33fde88903023cd1688e9184a431fe9bfd249b9e7ffcc230
// (C) Copyright 2015 Moodle Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
TypeScript
src/addon/mod/chat/pages/sessions/sessions.module.ts
FMCorz/moodlemobile2
apache-2.0
1,440
38
codeparrot/github-code
4ef6ad48ab4512140b1f69d0106cc9ef38471d8a05cbe1d2f09879cfd6e9f2a7
/* * Copyright 2020 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
common/src/main/java/com/thoughtworks/go/domain/materials/scm/PluggableSCMMaterialAgent.java
arvindsv/gocd
apache-2.0
4,585
92
codeparrot/github-code
8cf45977affdaad3add42150f82fab2ab0cc456b00bff9394fb073f4b4f84cfd
/** * Copyright (c) 2010 Yahoo! 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...
Java
core/src/main/java/org/apache/oozie/service/ActionCheckerService.java
sunmeng007/oozie
apache-2.0
9,013
238
codeparrot/github-code
04335cc592cdd4a0f78e546a5023a6716dfa24fbadd58a8dea00983889932446
<?php namespace Neomerx\JsonApi\Parameters\Headers; /** * Copyright 2015 info@neomerx.com (www.neomerx.com) * * 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/l...
PHP
src/Parameters/Headers/MediaType.php
creocoder/json-api
apache-2.0
5,426
219
codeparrot/github-code
dd158f4b8a2d738a35f519742aaed0b00bcfcadd8484490d7eaf02ca905b91f3
# 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 u...
Python
apps/topi_recipe/gemm/gemm_int8.py
dmlc/tvm
apache-2.0
5,879
183
codeparrot/github-code
1325e660834862def132c4ae73a7533888efcb247436ccadb840202d15ec1444
/** * Copyright 2017 LinkedIn Corp. 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...
Java
ambry-store/src/main/java/com.github.ambry.store/ScanResults.java
xiahome/ambry
apache-2.0
10,385
210
codeparrot/github-code
b4f50b0e7da246857756b112f6e1a48849ca9d737d5cbe82c9113454210464d4
/* Copyright 2017 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
mungegithub/mungeopts/mungeopts.go
nlandolfi/test-infra-1
apache-2.0
2,994
80
codeparrot/github-code
84e4301a8c040089974810d3cb925756ae84e0dcc93a52437ad13303215a875b
/* * 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
wicket-core/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java
mafulafunk/wicket
apache-2.0
9,526
377
codeparrot/github-code
bb0402f4d628ace83d19688dd31116e016928e8cb5868bcea71d7b96b911f2fa
package com.cardshifter.gdx.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.ui.*; i...
Java
gdx/core/src/com/cardshifter/gdx/screens/GameScreen.java
Cardshifter/Cardshifter
apache-2.0
17,117
417
codeparrot/github-code
19a05227aa4e733cc520d51a6ccae6f2c4b3aeb2249a96ad4c440eb489b6cde0
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
python/src/com/jetbrains/python/inspections/quickfix/AddFieldQuickFix.java
jk1/intellij-community
apache-2.0
10,326
249
codeparrot/github-code
860a1d8895e02aac79fe5bc4725ac0974042714b0624388ba9b090d2a9e433cf
<!DOCTYPE html> <html> <head> <title>Noto Warang Citi</title> <meta charset="UTF-8" http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> function sliderChange() { var slider = document.getElementById("fontSizeSlider"); var siz...
HTML
test/WarangCiti/NotoSansWarangCiti_kern.html
googlei18n/noto-source
apache-2.0
4,965
198
codeparrot/github-code
1388b3904fc64d35b85666df64c6464d45584a7ac735f9e3ed6d54a7e782de45
/* * Copyright 2018 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 applica...
Java
emoji/emoji/src/androidTest/java/androidx/emoji/text/MetadataRepoTest.java
AndroidX/androidx
apache-2.0
3,654
108
codeparrot/github-code
a609290b47a0e3366b770f9185fea893673b3eae90d64e4a517381fd9e592b57
/** * FreeRDP: A Remote Desktop Protocol Implementation * T.124 Generic Conference Control (GCC) * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2014 Norbert Federa <norbert.federa@thincast.com> * Copyright 2014 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * * License...
C
libfreerdp/core/gcc.c
cedrozor/FreeRDP
apache-2.0
59,329
2,009
codeparrot/github-code
fe74c9ac21584802735cf5b66887a06a0fd4d6fe5c675d0755f6b27fd316339e
/* * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org/li...
C
src/network/torus/Network.h
hpelabs/supersim
apache-2.0
2,571
77
codeparrot/github-code
f7456333d5020a56ab136ec81d8566a73ccde497a357d97ddeec000523b9db29
/* * Copyright 2009 Martin Grotzke * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
core/src/test/java/de/javakaffee/web/msm/RequestTrackingHostValveTest.java
zhangwei5095/memcached-session-manager
apache-2.0
7,744
193
codeparrot/github-code
674e19ac6284a5f0b0f58e933d7e7cbdf26e543af987431a347f3d0adc2780e5
# 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 # d...
Python
tempest/services/volume/json/snapshots_client.py
vedujoshi/os_tempest
apache-2.0
7,293
193
codeparrot/github-code
e771a0022027c0a7d3d1a25cc81f22be5c04707935deaba0ae669236d97b08b7
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/qldb/model/TagResourceResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/ut...
C++
aws-cpp-sdk-qldb/source/model/TagResourceResult.cpp
jt70471/aws-sdk-cpp
apache-2.0
801
35
codeparrot/github-code
7cd727e9417f56dae941592dfcf87d8a6016c96c5a1d32ff243b00c92ed8fec1
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/subplan/IntroduceGroupByForSubplanRule.java
ty1er/incubator-asterixdb
apache-2.0
15,726
338
codeparrot/github-code
8a8cd14d690c895705be31c4922ebf2346c1176b9d2a2912f9d169f27c0f351a
/** * Copyright 2009 - 2011 Sergio Bossa (sergio.bossa@gmail.com) * * 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 * * ...
Java
src/main/java/terrastore/store/features/Update.java
byzhang/terrastore
apache-2.0
3,088
95
codeparrot/github-code
cd76a9cf0811959d14121d9461d01ff7d1de4a9555686d7433699bfd92d774bc
package fake_command_runner_matchers import ( "fmt" "os/exec" "github.com/cloudfoundry/gunk/command_runner/fake_command_runner" ) func HaveKilled(spec fake_command_runner.CommandSpec) *HaveKilledMatcher { return &HaveKilledMatcher{Spec: spec} } type HaveKilledMatcher struct { Spec fake_command_runner.Command...
GO
command_runner/fake_command_runner/matchers/have_killed.go
glyn/gunk
apache-2.0
1,160
49
codeparrot/github-code
0b3fc7a1f3e783144be441ac6a6ec15ebc3d63c1780bcd32f4aa2110506cdb03
/* * Copyright 2012, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
Java
dexlib2/src/main/java/org/jf/dexlib2/writer/pool/StringPool.java
4455jkjh/apktool
apache-2.0
2,633
69
codeparrot/github-code
59d68a38f786b3976d03f11e31caee0becfef8e940670ff6866735a4686cb2a0
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.ml.inference.allocation; import o...
Java
x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/allocation/TrainedModelAllocationClusterServiceTests.java
ern/elasticsearch
apache-2.0
40,420
797
codeparrot/github-code
78634080532751a9e493d90fdf9ae0d675a4aa58635a203bf7e26ec0e79514bb
#pragma once #include "base/worker_thread.hpp" #include "ugc/storage.hpp" #include "ugc/types.hpp" #include <functional> class Index; struct FeatureID; namespace ugc { class Api { public: using UGCCallback = std::function<void(UGC const &)>; using UGCUpdateCallback = std::function<void(UGCUpdate const &)>; ...
C++
ugc/api.hpp
dobriy-eeh/omim
apache-2.0
1,008
42
codeparrot/github-code
e821502f9b6e4511d6599ac2e165ff3909697bc34c2757cb31f5889466b6b751
/** * JBoss, Home of Professional Open Source. * Copyright 2014-2022 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the...
Java
indy-repository-manager/src/test/java/org/jboss/pnc/indyrepositorymanager/ExcludeInternalRepoByRegexTest.java
project-ncl/pnc
apache-2.0
6,538
147
codeparrot/github-code
46ecceeccc7e8d8f5fd1cd483b339fe754f22c7be91092f3952fd76b240348d1
if(typeof(Control)=='undefined') Control={}; Control.TextArea=Class.create(); Object.extend(Control.TextArea.prototype,{ onChangeTimeoutLength:500, element:false, onChangeTimeout:false, initialize:function(textarea){ this.element=$(textarea); $(this.element).observe('keyup',this.doOnChange.bindAsEventListener(this)); $...
JavaScript
database/oracle/死锁/oracle 性能 V$PROCESS - Oracle + J2EE 一个都不能少 - JavaEye技术网站.files/compress.js
zzsoszz/MyPaper
apache-2.0
16,452
389
codeparrot/github-code
0a249e2e2c2aa44020f9dae4472093197ae7b9314a59e073a63bfdd9a373a3cb
// Lucene version compatibility level 4.8.1 using Lucene.Net.Analysis.TokenAttributes; using Lucene.Net.Analysis.Util; namespace Lucene.Net.Analysis.Cjk { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with *...
C#
src/Lucene.Net.Analysis.Common/Analysis/Cjk/CJKWidthFilter.cs
apache/lucenenet
apache-2.0
5,800
127
codeparrot/github-code
bb4e31c14f8f3a30898b08139ec25bb5f2139e498175d945709b1f2483c71334
/* * Copyright (c) 2010-2014 Evolveum * * 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 agr...
Java
testing/longtest/src/test/java/com/evolveum/midpoint/testing/longtest/TestLdapComplex.java
gureronder/midpoint
apache-2.0
12,396
278
codeparrot/github-code
26f25df5baa1c5eecc3822586f96c63dcd79ba237b77bc31918bf998f1ed57a5
/* * Copyright (C) 2018 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
gapir/cc/resource_loader.h
google/gapid
apache-2.0
3,425
103
codeparrot/github-code