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
d847164960bde4b6fa4a2b67d7275c6a1afa0cb1ae75a37e2ff73723d45b1805
/* * 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
phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexMetaData.java
apache/phoenix
apache-2.0
3,889
102
codeparrot/github-code
beda61b605d28f96d94b8d205c19370f3a4f0bcc52070f762cb323cce7707e0d
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you m...
C++
src/xalanc/XPath/XPathEnvSupport.hpp
AaronNGray/xalan
apache-2.0
5,641
205
codeparrot/github-code
58a8c71613383664ff70bb82a51ae68c55547330b2ad50cc6a4e11f7197b8181
package cn.easycms.directive; import cn.easycms.base.BaseDirective; import cn.easycms.model.Channel; import cn.easycms.model.Info; import cn.easycms.model.Site; import cn.easycms.service.ChannelService; import cn.easycms.service.InfoService; import cn.easycms.service.SiteService; import cn.easycms.util.DateUtil; impor...
Java
src/main/java/cn/easycms/directive/InfoListDirective.java
hackingwu/EasyCMS
apache-2.0
7,013
171
codeparrot/github-code
665bcf0ebe98477a7802841178e87c5152805dda56eedec0360a5f40f1077497
/* * Copyright 2010-2014 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...
C#
sdk/src/Services/RDS/Generated/Model/Internal/MarshallTransformations/DescribeOptionGroupOptionsRequestMarshaller.cs
mwilliamson-firefly/aws-sdk-net
apache-2.0
4,390
102
codeparrot/github-code
c3fb1618f01fdb9da6cd7de37faa4176f2d665253c461dc2d28caf17a7dc0fd9
/* * Copyright 2015 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
apps/vtn/vtnrsc/src/test/java/org/onosproject/vtnrsc/PhysicalNetworkTest.java
sonu283304/onos
apache-2.0
2,171
65
codeparrot/github-code
f2ba24c68684fbb8d71be755f6ca87ced9ebfb0d4b0d2578b21571a57b056ec1
/* Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
Java
pluto-container/src/main/java/org/apache/pluto/container/bean/processor/AnnotatedMethod.java
apache/portals-pluto
apache-2.0
7,730
238
codeparrot/github-code
4265c0e9cbba09e674890a5f4b8ad707bed24a89e23b0b24c9cce91d401342ee
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-medialive/source/model/DvbSdtSettings.cpp
JoyIfBam5/aws-sdk-cpp
apache-2.0
2,691
118
codeparrot/github-code
73f071ce03e0b55728cf91ca0cf6eb9dbba14b6055cc9c5c12fc913171001078
/* * Copyright 2011 Red Hat, Inc. and/or its affiliates. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * ...
Java
infinispan/core/src/main/java/org/infinispan/container/entries/versioned/VersionedTransientMortalCacheEntry.java
nmldiegues/stibt
apache-2.0
4,407
105
codeparrot/github-code
7e1e6cda90fb876e53e9a09e772b26aaa536cc98a3417b4f5ad858fc92b6e30c
/* * Copyright (C) 2014-2015 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 appl...
Java
gobblin-core/src/test/java/gobblin/writer/partitioner/TimeBasedAvroWriterPartitionerTest.java
sahooamit/bigdata
apache-2.0
6,190
151
codeparrot/github-code
b1472b7ff5c1a3b227f00c6882db00f229b440e361da803b41d5a24de8c4c4f5
/* * Licensed to CRATE Technology GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not us...
Java
sql/src/main/java/io/crate/planner/consumer/CountConsumer.java
puneetjaiswal/crate
apache-2.0
4,694
111
codeparrot/github-code
10aa3fff5c7105258abd596e73301ba4cf31f4aa75460b7759664674b2d81ff8
// Copyright (c) 2016 Couchbase, 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 ...
GO
store_stats.go
steveyen/moss
apache-2.0
3,108
92
codeparrot/github-code
4fa69db59cc8cd88cb4bde09a717d7d62d26927e02a91740a0f19924661dd59e
package operators import ( "context" "fmt" "regexp" "strings" g "github.com/onsi/ginkgo" "github.com/openshift/origin/pkg/test/ginkgo/result" exutil "github.com/openshift/origin/test/extended/util" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/kube-openapi/pkg/util/sets" e2e...
GO
test/extended/operators/resources.go
sallyom/origin
apache-2.0
11,206
196
codeparrot/github-code
53758a2978aed9ea595a03e4bc65399ed6a38a785818449feff0f172ac6fc97b
/* * 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 no...
Java
asterixdb/asterix-app/src/test/java/org/apache/asterix/app/data/gen/ARecordValueGenerator.java
apache/incubator-asterixdb
apache-2.0
4,682
120
codeparrot/github-code
ff66b528c158cd6cd308f8044b324c62857987cd1b6d009e8526a96ab51ef51b
#pragma once #include "countries.h" #include <limits.h> #include <iostream> struct ArrayOfLists { int capitalsNumber; List* array[maxNumberOfCapitals]; /// head of each list is a capital }; ArrayOfLists* createArrayOfLists(int capitalsNumber) { ArrayOfLists* arrayOfLists = new ArrayOfLists; for (int...
C++
10/10/countries.cpp
Julia-Berezhnova/Semester-1
apache-2.0
2,968
103
codeparrot/github-code
62a298655bf5e26744bd396cf606bd7d5291429eb3eb79174f5a30180f653658
/* * 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/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/kafka/KafkaTableProvider.java
RyanSkraba/beam
apache-2.0
2,444
67
codeparrot/github-code
7ba913e3f32187018f701f203bc464fc3cc83fb345aee711322d681d018487a4
/* * Copyright 2003-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/main/org/codehaus/groovy/ast/tools/GenericsUtils.java
komalsukhani/debian-groovy2
apache-2.0
30,202
612
codeparrot/github-code
109f4701447e0c91a01b397ed40978d1140bca44ff8f37e5eb480c0645338068
/* * Copyright 2010 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-core/src/main/java/org/drools/core/conflict/PhreakConflictResolver.java
bxf12315/drools
apache-2.0
2,376
78
codeparrot/github-code
d49c76a87b825b1ff6c21e84c94dbfeb2d2b302cf89d3b1349b5ac8ebf4d7735
/* * Copyright 2014 Brian Roach <roach at mostlyharmless dot net>. * * 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...
Java
src/main/java/net/mostlyharmless/jghservice/connector/jira/UpdateIssue.java
basho/jira-github-service
apache-2.0
2,262
92
codeparrot/github-code
785d2b8047ac6dbb964a7a606833cc52ee4a5835fb0fa376cb7711a1ebfe19f2
/** * * Copyright 2003-2007 Jive Software. * * 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 o...
Java
smack-debug/src/main/java/org/jivesoftware/smackx/debugger/EnhancedDebugger.java
esl/Smack
apache-2.0
44,185
1,102
codeparrot/github-code
4f1626c93cbece42425c2c5d448b91584e7ba8dd0b1c6bfd755a80373c17b7f3
/* * 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/diff-api/src/com/intellij/diff/requests/DiffRequest.java
jwren/intellij-community
apache-2.0
2,372
76
codeparrot/github-code
5ce28008a608fb5c3fb2099391b77eb9f3190e21e4921db020571422601cf1ee
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-dms/source/model/DescribeTableStatisticsRequest.cpp
cedral/aws-sdk-cpp
apache-2.0
2,086
81
codeparrot/github-code
e22be81dcf08c1dcb29170cf11c582ef42e30325a2178a70f406341d1c87d8c3
package storagecluster import ( "encoding/json" "net/http" "github.com/zero-os/0-orchestrator/api/tools" ) // ListAllClusters is the handler for GET /storageclusters // List all running clusters func (api *StorageclustersAPI) ListAllClusters(w http.ResponseWriter, r *http.Request) { aysClient, err := tools.GetA...
GO
api/storagecluster/storageclusters_api_ListAllClusters.go
zero-os/0-orchestrator
apache-2.0
1,253
48
codeparrot/github-code
7a920456734513adf8cddad6e074eb3d686bca7debd2f528f3332e37c9c60b58
/* * ==================================================================== * 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
httpclient5/src/examples/org/apache/hc/client5/http/examples/ClientExecuteProxy.java
UlrichColby/httpcomponents-client
apache-2.0
2,779
68
codeparrot/github-code
94f9ff60953408e1fa419f247e181f733b9136280d4c2729adae4a9292622989
/* * Copyright 2016 The BigDL 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 agr...
Scala
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nn/TableOperation.scala
intel-analytics/BigDL
apache-2.0
3,483
102
codeparrot/github-code
29fcbc884e5a51924762059cc7c6c1031d27773a6d29c9c73de7d0135f32229e
package it.unitn.vanguard.reminiscence; import it.unitn.vanguard.reminiscence.asynctasks.AddFriendTask; import it.unitn.vanguard.reminiscence.interfaces.OnTaskFinished; import it.unitn.vanguard.reminiscence.utils.Constants; import it.unitn.vanguard.reminiscence.utils.FinalFunctionsUtilities; import java.util.Locale; ...
Java
src/it/unitn/vanguard/reminiscence/AddFriendActivity.java
nicofromspace/Reminiscence
apache-2.0
7,327
264
codeparrot/github-code
ffd020727920b41748aa70daba84576262df634754a024e39295b0dfdf2a27dd
/* ChibiOS - Copyright (C) 2015 RedoX https://github.com/RedoXyde 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...
C
sw/firmware/ChibiOS-Contrib/testhal/KINETIS/TEENSY3_x/EXT/main.c
netik/dc26_spqr_badge
apache-2.0
2,011
75
codeparrot/github-code
bec6f3c968d65aed657eae28d4283ad5a9b0700d6b383b8910fd1461c5562b73
package main import ( "encoding/json" "fmt" "path" "strings" "github.com/chai2010/gettext-go/gettext" "github.com/lxc/lxd" "github.com/lxc/lxd/shared" ) type copyCmd struct { httpAddr string } func (c *copyCmd) showByDefault() bool { return true } func (c *copyCmd) usage() string { return gettext.Gettex...
GO
lxc/copy.go
basvanbeek/lxd
apache-2.0
3,571
149
codeparrot/github-code
b6de5c7f45ac90b12cf7ad65f0770f7305599f27e995102e8fcfad3007858ae9
package egovframework.com.ext.oauth.service; import java.util.Map; import com.github.scribejava.core.builder.api.DefaultApi20; import com.github.scribejava.core.model.OAuthConstants; import com.github.scribejava.core.model.ParameterList; public class NaverAPI20 extends DefaultApi20 implements OAuthConfig { private ...
Java
common-component/v3.9.0/src/main/java/egovframework/com/ext/oauth/service/NaverAPI20.java
dasomel/egovframework
apache-2.0
1,508
52
codeparrot/github-code
cfea9e4184bd51fd9b3ed817eaf79693f2c2efffa6c1191b35b67b1eae8d9e70
<?php /* * services_rfc2136.php * * part of pfSense (https://www.pfsense.org) * Copyright (c) 2004-2013 BSD Perimeter * Copyright (c) 2013-2016 Electric Sheep Fencing * Copyright (c) 2014-2022 Rubicon Communications, LLC (Netgate) * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "...
PHP
src/usr/local/www/services_rfc2136.php
pfsense/pfsense
apache-2.0
7,138
244
codeparrot/github-code
2569bd8c5117a0d38ad28ba654ab7e5716622826dc2b047cb8531cf7713fe859
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C
aws-cpp-sdk-inspector/include/aws/inspector/model/GetAssessmentReportResult.h
cedral/aws-sdk-cpp
apache-2.0
4,225
124
codeparrot/github-code
a4b64e0492eb907db6a91919f751d4ed6e31bda0c6b99b805914ca7e38487a38
/* * Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> * * 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
config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/PathAndQuery.java
ocpsoft/rewrite
apache-2.0
6,300
186
codeparrot/github-code
bec359c56ff5c8f70b6fbccd46554bd9e4a055b7beffaaafbe94f49f25be9f6b
/*! * ${copyright} */ /** * Provides methods for information retrieval from the core. */ sap.ui.define(['jquery.sap.global', 'sap/ui/core/support/ToolsAPI', 'sap/ui/thirdparty/URI'], function (jQuery, ToolsAPI, URI) { "use strict"; /** * The DataCollector collects information. */ var DataCollector = funct...
JavaScript
src/sap.ui.support/src/sap/ui/support/supportRules/report/DataCollector.js
SQCLabs/openui5
apache-2.0
4,391
148
codeparrot/github-code
a11a0809c723423aa6a2e979532b38626a6618920781fa5cbc4465b26816e757
/* GStreamer * Copyright (C) 2017 Matthew Waters <matthew@centricular.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) ...
C
third_party/gst-plugins-bad/ext/webrtc/webrtcsdp.c
google/aistreams
apache-2.0
25,994
862
codeparrot/github-code
db36d23daedab5a8c128e7fe0c5f567f35296a1be0248c4a1bb75aab563eed83
package eu.qualimaster.TimeTravelPip.topology; import java.util.*; import java.io.Serializable; import org.apache.log4j.Logger; import backtype.storm.topology.*; import backtype.storm.task.*; import backtype.storm.spout.*; import backtype.storm.tuple.*; import eu.qualimaster.data.inf.ISimulatedFinancialData; import eu...
Java
Plugins/EASy-Producer/ScenariosTest/testdata/real/QualiMaster/sep17/expected/pipelines/eu/qualimaster/TimeTravelPip/topology/PipelineVar_10_Source0Source.java
SSEHUB/EASyProducer
apache-2.0
8,896
211
codeparrot/github-code
f81dce025f2b376d4db5ad0c4d0b9f233902e7cd4804fba839c764f717806847
package ru.aveselov.minitest; import org.junit.Test; import static org.junit.Assert.*; /** * Проверяем объединене массивов классов ArrayMerge * @author CkimiHoK */ public class ArrayMergeTest { /** * тестируем объединение массивов отсортированных по ВОЗРАСТАНИЮ */ @Test public void mergeA...
Java
javalearning/Chapter2/src/test/java/ru/aveselov/minitest/ArrayMergeTest.java
CkimiHoK/JavaFromZeroToJunior
apache-2.0
1,032
41
codeparrot/github-code
052e0c18a5a9c9064875a2f93e006f347a576fb6aeda39c2886392e90e83492e
/* * 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
src/java/org/apache/fop/render/bitmap/TIFFRenderer.java
StrategyObject/fop
apache-2.0
8,952
235
codeparrot/github-code
a8c357f120386c6ede13c43509b1dd9884a95ea81b5eb4436f8da307db06b8fc
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
Java
test/java/org/apache/ivy/core/retrieve/RetrieveTest.java
apache/ant-ivy
apache-2.0
30,211
614
codeparrot/github-code
df25be5c4345a674c31f0cc262a1df36e92bec54bd3ef403a1b8ce83daf5ed05
using Abot.Core; using Abot.Crawler; using Abot.Poco; using Abot.Util; using Moq; using NUnit.Framework; using System; using System.Collections.Generic; namespace Abot.Tests.Unit.Crawler { [TestFixture] public class PoliteWebCrawlerTest { PoliteWebCrawler _unitUnderTest; Mock<IPageRequeste...
C#
Abot.Tests.Unit/Crawler/PoliteWebCrawlerTest.cs
xavivars/abot
apache-2.0
19,694
330
codeparrot/github-code
bb1516d861f2238a60fdf365b9dfd6903e846f775043740bb3947d077bd27ba2
package netspeed import ( "bufio" "errors" "fmt" "net" "os" "strings" "sync" ) const ( procRouteFilename = "/proc/net/route" speedPathFormat = "/sys/class/net/%s/speed" ) var ( lock sync.Mutex hostToSpeed = make(map[string]uint64) ) func getSpeedToAddress(address string) (uint64, bool) { if fie...
GO
lib/netspeed/impl.go
Symantec/Dominator
apache-2.0
2,400
114
codeparrot/github-code
a4670b130803d5311e6c19b8c86e5bb83e4005025a7705ef796dbfd652487328
/* * 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
uimaj-core/src/main/java/org/apache/uima/flow/impl/CapabilityLanguageFlowController.java
apache/uima-uimaj
apache-2.0
11,953
286
codeparrot/github-code
7f3e35df81107a9e41b4beb676b3ac5a7b36e31a7a4f96e5574661d6d4091369
package com.cloudTop.starshare.ui.main.activity; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.text.TextUtils; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import an...
Java
app/src/main/java/com/cloudTop/starshare/ui/main/activity/UserAssetsManageActivity.java
SL-Y/adstar
apache-2.0
8,290
227
codeparrot/github-code
bde2605a62fdb8f2599b94f8cde0fa9b6106c6b5430e90de5860a954c6f23952
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIClient.cpp
chiaming0914/awe-cpp-sdk
apache-2.0
11,483
275
codeparrot/github-code
4d0ebae88e65693051e964df2875e38e85bdad3174b14b8ade1a84d150d5ceb7
/* DDS, a bridge double dummy solver. Copyright (C) 2006-2014 by Bo Haglund / 2014-2018 by Bo Haglund & Soren Hein. See LICENSE and README. */ #include "dds.h" #include "PBN.h" int IsCard(const char cardChar); int ConvertFromPBN( char const * dealBuff, unsigned int remainCards[DDS_HANDS][DDS_SUIT...
C++
src/PBN.cpp
sorenhein/dds
apache-2.0
3,377
180
codeparrot/github-code
c7ceaf21d8c72cc5cc546463447b0a8638fd177a74bdf6a4a4c29497682e384c
#!/usr/bin/python # # 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 b...
Python
python/v4.x/get_all_ad_units_for_publisher.py
iLotus/googleads-adsensehost-examples
apache-2.0
2,497
78
codeparrot/github-code
6034d4ebd672c7b32f17c3842f7c92877da89d0e5db32059e9a1f415d93d7a5f
package com.jim.novel.controller; import com.jim.novel.exception.TemplateNotFoundException; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.s...
Java
src/main/java/com/jim/novel/controller/IndexController.java
angentle/JimNovel
apache-2.0
1,968
72
codeparrot/github-code
ac64517f3a3bb58aca7a3845325e0e61d05f1e1a40cb1a76d68b8cf7debecb64
/* * Copyright 2019 Qameta Software 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 ...
Java
allure-plugin-api/src/main/java/io/qameta/allure/entity/Step.java
allurefw/allure-report
apache-2.0
1,319
46
codeparrot/github-code
251d500eed3611d1a880f4499bf0caaefeed12867462fcdbdb57dfca03382199
/* * 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/main/java/com/hazelcast/cache/impl/operation/CacheGetAndReplaceOperation.java
dbrimley/hazelcast
apache-2.0
3,549
104
codeparrot/github-code
0cb549459339f8243c325170f77e6a072138fb1ea29d44d0999207b4f073d5c2
//---------------------------------------------- // NGUI: Next-Gen UI kit // Copyright © 2011-2014 Tasharen Entertainment //---------------------------------------------- using UnityEngine; using System.Collections.Generic; using System.Collections; /// <summary> /// Popup list can be used to display pop-u...
C#
ARPGDemo/Assets/NGUI/Scripts/Interaction/UIPopupList.cs
moixxsyc/UnityLearningARPGDemo
apache-2.0
21,169
843
codeparrot/github-code
249b4851d0fef3de8ba9a04987940e65e0a901379a4454a68020d7ba621c2858
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsFontMetrics.h" #inclu...
C++
B2G/gecko/gfx/src/nsFontMetrics.cpp
wilebeast/FireFox-OS
apache-2.0
10,542
375
codeparrot/github-code
1235958a89c351513fd597aaf8310cdfff8aa52d648d119a644a897ab78a13c8
#pragma once #include <boost/shared_ptr.hpp> #include <ros/ros.h> //#include <baxter_core_msgs/JointCommand.h> #include <sensor_msgs/JointState.h> #include "robot_sim/robot.h" namespace robot_sim { class PositionController { public: PositionController(boost::shared_ptr<Robot> robot) : root_nh_(""), robot_(rob...
C
courses/columbia-robotic/proj04/catkin_ws/src/robot_sim/include/robot_sim/position_controller.h
xunilrj/sandbox
apache-2.0
999
51
codeparrot/github-code
ab23c0d5b2dafd91cc095ca03435efee6c34568fc2376df98cbcaddf2945353a
/* * Copyright 2022 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
api/api-config-repos-v4/src/main/java/com/thoughtworks/go/apiv4/configrepos/representers/GitMaterialRepresenter.java
Skarlso/gocd
apache-2.0
2,205
50
codeparrot/github-code
7a22c79340b4c87a91c21a5ca8165c65a81e25bb3de306633b90ac29e0285be8
package org.ovirt.engine.ui.webadmin.section.main.view.tab.user; import javax.inject.Inject; import org.ovirt.engine.core.common.businessentities.DbUser; import org.ovirt.engine.ui.uicommonweb.models.users.UserGroup; import org.ovirt.engine.ui.uicommonweb.models.users.UserGroupListModel; import org.ovirt.engine.ui.ui...
Java
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/user/SubTabUserGroupView.java
anjalshireesh/gluster-ovirt-poc
apache-2.0
2,045
51
codeparrot/github-code
a580aebbc026f7c16923d5ec11bff9f895974495142d5161821a370f201be13b
/* * Copyright (c) 2008, 2011 Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
Java
marathon-projects/javafx-samples-2.2.80/src/DataApp/DataAppLibrary/src/com/javafx/experiments/dataapp/model/Product.java
jalian-systems/marathonv5
apache-2.0
8,147
248
codeparrot/github-code
fe660f324c6ce787e56768a08ecbe0e897f2e2a77df1149bb7f80ed277500913
/** * * 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 * "Licen...
Java
impl/src/main/java/org/apache/tuscany/sdo/codegen/BytecodeInterfaceGenerator.java
apache/tuscany-sdo
apache-2.0
3,653
99
codeparrot/github-code
2d53c65da32fa1f3de48ddd1c1cc41eb49f474e62888c8698bab833d17e2b058
# Copyright 2012 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
neutron/agent/dhcp/agent.py
yanheven/neutron
apache-2.0
24,464
590
codeparrot/github-code
4ac4ff7d6a022abe9a6fb59a1ed4d5c180df59b029d440ccdfb3f2b5c3705cf5
/** * Copyright 2014 @ ops Inc. * name : * author : newmin * date : 2014-02-05 21:53 * description : * history : */ package partner import ( "go2o/app/cache" "go2o/core/domain/interface/enum" "go2o/core/domain/interface/shopping" "go2o/core/service/dps" "html/template" "net/http" "strconv" ) func (this ...
GO
src/go2o/app/front/partner/order_ording.go
cluo/go2o
apache-2.0
2,349
87
codeparrot/github-code
b1d72ad0cda27fbfcedc2bee03113d75c549ad975e8297ab8ddd637d2f1279bb
//Apache2, 2017, WinterDev //Apache2, 2009, griffm, FO.NET using System; using Fonet.DataTypes; namespace Fonet.Fo.Expr { internal class RGBColorFunction : FunctionBase { public override int NumArgs { get { return 3; } } publ...
C#
src/FoDom/Fo/Expr/RGBColorFunction.cs
PaintLab/SaveAsPdf
apache-2.0
1,737
67
codeparrot/github-code
aaab38e71f633ffa588a825458821a63e90632b1024066e299318ab8c83e7214
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>AmazonServiceException Class Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <meta name="viewport" content="width=550" /> <link rel="stylesheet" type="text/css" href="...
HTML
Documentation/html/Classes/AmazonServiceException.html
abovelabs/aws-ios-sdk
apache-2.0
21,955
823
codeparrot/github-code
20ab5c1a895a7a8400bcb9d7c7438531a44b4c024dfaa797b8dd7f66fe3e8f03
/* * 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
plugins/ui-designer/src/com/intellij/uiDesigner/radComponents/RadNestedForm.java
jexp/idea2
apache-2.0
4,220
113
codeparrot/github-code
dea348e8fc66bf8a96a9c4ad2d4055c49d0485e7cc60f4d1938700b6350680ac
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
Java
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/ParquetFooterInputFromCache.java
alanfgates/hive
apache-2.0
6,591
196
codeparrot/github-code
1902a91a47376197dce0ba5e166a4d60096b9a5e6d49bd5b545397b2242b3668
package net.dubboclub.akka.remoting.actor; import akka.actor.ActorRef; import akka.actor.Props; import akka.actor.UntypedActor; import akka.japi.Creator; import akka.routing.ActorRefRoutee; import com.alibaba.dubbo.rpc.*; import net.dubboclub.akka.remoting.codec.AkkaCodec; import net.dubboclub.akka.remoting.message.Re...
Java
akka/akka-remoting/src/main/java/net/dubboclub/akka/remoting/actor/ServiceProvider.java
sdgdsffdsfff/dubbo-plus
apache-2.0
3,483
107
codeparrot/github-code
ea63d721357b3e878a737d561d6f4dd8bd25e333d929ab53ba5e1c4fc48f0e84
/** * 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...
JavaScript
static/horizon/js/horizon.modals.js
kogotko/carburetor
apache-2.0
17,562
510
codeparrot/github-code
e243495e601eeac9a72ae6b87441359f3c070d2fc1229c5affbe35bd2875b2a0
/** * Copyright 2007-2015, Kaazing Corporation. 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 require...
Java
ws/src/test/java/org/kaazing/netx/ws/internal/util/Utf8UtilTest.java
sanjay-saxena/netx
apache-2.0
2,712
72
codeparrot/github-code
dd3aaf259e12add627f0f578faf91fb363b9863c10ef2dcf0d173ca12e7f6fe6
/* * 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
fop/examples/embedding/java/embedding/ExampleAWTViewer.java
argv-minus-one/fop
apache-2.0
3,691
111
codeparrot/github-code
53963f5808345a3eba695bb3c4937cb7996f09c381746e8a0341b7fad27bd01f
// Dimensions of sunburst. var width = 500; var height = 400; var radius = Math.min(width, height) / 2; // Breadcrumb dimensions: width, height, spacing, width of tip/tail. var b = { w: 150, h: 30, s: 3, t: 10 }; // Mapping of step names to colors. var colors = { "home": "#5687d1", "product": "#7b615c", "sear...
JavaScript
js/team24ev/sequence-property.js
USCDataScience/polar.usc.edu
apache-2.0
8,026
259
codeparrot/github-code
c11393c6b4039403a3cbab2f06780abfc79b2680fdd7f6977eb5f2e3ce4895de
/* * 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/main/java/com/facebook/presto/server/ServerMainModule.java
mandusm/presto
apache-2.0
26,467
562
codeparrot/github-code
d16ea63335034d4b0a65aa5ece65ee9033f38c43892dd19365bbfff93c05c6ce
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html#License /* ****************************************************************************** * Copyright (C) 1996-2010, International Business Machines Corporation and * * others. All Rights Reserved. ...
Java
icu4j/src/main/java/com/ibm/icu/impl/IntTrieBuilder.java
abhijitvalluri/fitnotifications
apache-2.0
29,812
795
codeparrot/github-code
b5878674f33f5c0b0b662ed970c7d6bdb59d9787b29519c7c8f343fadbf61e49
/* * Copyright 2012-2014 eBay Software Foundation and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
selendroid-server/src/io/selendroid/server/handler/GetWindowSize.java
VikingDen/selendroid
apache-2.0
1,567
43
codeparrot/github-code
1ac8fa894d6433f3753f8df8baa2c39c1843f6d6536059296456b02073a6c145
package kochetov.storage; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; /** * UserStorageTest. * Created by Сергей on 30.04.2017. */ public class UserStorageTest { /** * Test. */ @Test public void whenDeleteUserWithIdOneThenResultNoUserInSt...
Java
chapter_007_multithreading/monitore/src/test/java/kochetov/storage/UserStorageTest.java
riveserg/Sergey_Kochetov
apache-2.0
1,645
73
codeparrot/github-code
3eb2e732e94c5624cf4f588910a9df6791c3a14dd63fb8593d82a1bcd3ac0a82
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
C++
fennel/ftrs/BTreeExecStream.cpp
LucidDB/luciddb
apache-2.0
3,598
122
codeparrot/github-code
e7017ca8a9aec90e895616ef580a3e3e0549f114499bebaf9f5128d69997fe56
/**************************************************************************** * * Copyright 2019 Samsung Electronics 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...
C
os/net/netmgr/netdev_mgr.c
davidfather/TizenRT
apache-2.0
2,483
110
codeparrot/github-code
9312320634d09a9c8d6118a97252a1a42e02e166e24cd9e99ac036a1a477a9f0
# # 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 # ...
Python
heat/engine/clients/os/glance.py
dims/heat
apache-2.0
4,221
113
codeparrot/github-code
28c4e16509ae8ad1628607f980f9da3d0cbd89b15404d3c09d72678094d15fc3
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
C
arangod/Graph/EdgeCursor.h
wiltonlazary/arangodb
apache-2.0
1,976
68
codeparrot/github-code
72230211176f8b5e8f1b34962d68eef9f75f0d7c681f84de474f148c86b816bf
package project import ( kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" "github.com/GoogleCloudPlatform/kubernetes/pkg/util/fielderrors" "github.com/openshift/origin/pkg/project/api" "github.com/openshift/origin/pkg/project/api/validation" ) // p...
GO
pkg/project/registry/project/rest.go
mjisyang/origin
apache-2.0
2,256
69
codeparrot/github-code
46926e145aec1c2392c00d860a263e2ca4ab5b80b1d269b22b0f4d32072fbd77
/* * 8088flex TMV video decoder * Copyright (c) 2009 Daniel Verkamp <daniel at drv.nu> * * This file is part of FFmpeg. * * FFmpeg 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...
C
library-jni/jni/ffmpeg/libavcodec/tmv.c
gaoxiong/VideoReverse
apache-2.0
3,366
118
codeparrot/github-code
b2fd5be4c01df38327b72a55e2f53903b5b27d5856c6641f9dfcea2ecf0c6bba
/* * Copyright 2015 Rafael Villar Villar * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
src/main/java/au/id/villar/dns/engine/DNSMessage.java
morgano5/dnsResolver
apache-2.0
5,345
173
codeparrot/github-code
476b8a99fa5dc3bedaeeb735f5423f6a4f0df249fb3eae4305d83675449866c5
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ec2/model/NetworkInfo.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <utility> ...
C++
aws-cpp-sdk-ec2/source/model/NetworkInfo.cpp
awslabs/aws-sdk-cpp
apache-2.0
11,033
298
codeparrot/github-code
dbf097740324bb580585411f7874a3777cc524d1e8ebfdf78e019ecc07974d06
/****************************************************************************** * Copyright 2018 The Apollo 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 *...
C++
modules/perception/camera/lib/traffic_light/preprocessor/tl_preprocessor.cc
msbeta/apollo
apache-2.0
12,945
359
codeparrot/github-code
63c60f3b7b98f9e82cef7a0a70b731dcbce86e960a5578146341f5e433211be1
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateProcessorTest.java
engagepoint/camel
apache-2.0
20,538
609
codeparrot/github-code
7300fb9ddb54ff4886bbb474a06a98e08ac02589174ef9a6c922e5f456aa75eb
package com.zhongshu.maintenanceexpert.photo.utils; import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; import android.provider.MediaStore.Audio.Albums; import android.provider.MediaStore.Images.Media; import android.provider.MediaStore.Images.Thumbnails; import andr...
Java
app/src/main/java/com/zhongshu/maintenanceexpert/photo/utils/AlbumHelper.java
officerteam/zhongshuyunwei
apache-2.0
7,638
239
codeparrot/github-code
51bb4f73563eb7cad814060f18d58740a266e967448986073ece49c1c9301530
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 2010 Oracle and/or its affiliates. All rights reserved. */ /* * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or w...
C
source/db-5.0.26.NC/dbinc/db_swap.h
racker/omnibus
apache-2.0
8,529
263
codeparrot/github-code
9b521edf6881d104f3a56d9e9b2fddaa61e3bccc02f085d7fab6bc7fa7fbcd5e
/* * 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/test/java/org/apache/calcite/test/enumerable/EnumerableJoinTest.java
apache/calcite
apache-2.0
16,036
341
codeparrot/github-code
6a174db7f321740d35b99f39ec684714f850066371e99d38b46fc157c42a18ee
/* * 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.apache.org/li...
Java
components/data-bridge/org.wso2.carbon.databridge.agent/src/test/java/org/wso2/carbon/databridge/agent/test/thrift/ServerOfflineThriftTest.java
sajithshn/carbon-analytics-common
apache-2.0
14,291
314
codeparrot/github-code
cc8b462a4c46840090e08b5a87cb7a91fc8a7e59ce215d7f92d047f9a7772de2
package com.google.appengine.tools.mapreduce.inputs; import com.google.appengine.api.log.LogQuery; import com.google.appengine.api.log.RequestLogs; import com.google.appengine.api.log.dev.LocalLogService; import com.google.appengine.tools.development.testing.LocalLogServiceTestConfig; import com.google.appengine.tools...
Java
test/com/google/appengine/tools/mapreduce/inputs/LogInputReaderTest.java
sosandstrom/appengine-mapreduce
apache-2.0
7,339
170
codeparrot/github-code
98eedd305c83b59249ba401ef4cba41e910d2a6b747c1353c738d26d22811d4b
package org.opencompare.api.scala.io import java.io.File import java.nio.file._ import java.util.stream.Collectors import org.opencompare.api.scala.PCM import org.opencompare.api.scala.metadata.{Orientation, Positions} import org.scalatest.prop.TableDrivenPropertyChecks._ import org.scalatest.prop.TableFor1 import or...
Scala
org.opencompare/api-scala/src/test/scala/org/opencompare/api/scala/io/CircularTest.scala
OpenCompare/OpenCompare
apache-2.0
2,660
83
codeparrot/github-code
ba34e45edbe4b73ebd93e71a8223627b90dbb42c6b189c9bf5d13d4eaae20e3b
/*- * * Copyright 2016 Skymind, 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 * * * * Un...
Java
datavec-spark/src/main/java/org/datavec/spark/transform/misc/WritablesToStringFunction.java
huitseeker/DataVec
apache-2.0
2,112
69
codeparrot/github-code
6b28f916ec2ebc09414259afa49fc71cda9a223b10ea487e53de6a397f5bd685
package edit import ( "bytes" "fmt" "os" "os/exec" "github.com/bazelbuild/buildtools/build" ) type defaultBuildifier struct{} // buildify formats the build file f. // Runs opts.Buildifier if it's non-empty, otherwise uses built-in formatter. // opts.Buildifier is useful to force consistency with other tools th...
GO
edit/default_buildifier.go
bazelbuild/buildtools
apache-2.0
1,286
50
codeparrot/github-code
454a0a157b8d8da2faacc726a6d0d6495f489013192da447797736e00e8496f6
/* * 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
ql/src/test/org/apache/hadoop/hive/ql/io/parquet/TestMapStructures.java
alanfgates/hive
apache-2.0
18,863
563
codeparrot/github-code
0e6e16db2175f193b7f1d3396d0025654cae54787c9aa5552b02f19d8ba93cd5
<?php namespace bizley\podium\models\db; use bizley\podium\db\ActiveRecord; use bizley\podium\models\PollAnswer; use bizley\podium\models\Thread; use bizley\podium\models\User; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveQuery; /** * Poll model * Forum polls. * * @author Paweł Bizley Brzozowsk...
PHP
src/models/db/PollActiveRecord.php
bizley/yii2-podium
apache-2.0
3,243
139
codeparrot/github-code
38613fdc2353fdd835fb75f9ed117f5e05a7e7d666d105a63dd9cd4a71198106
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
benchmarks/src/main/java/io/druid/benchmark/LongCompressionBenchmarkFileGenerator.java
taochaoqiang/druid
apache-2.0
6,986
166
codeparrot/github-code
b67a35957f551a5fe1ac6bbeb0762a8edaf0ebc9091f170ef7cd627dfbe63563
/* * 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 ma...
Java
modules/saaj/test/org/apache/axis2/saaj/SOAPFaultDetailTest.java
intalio/axis2
apache-2.0
3,481
80
codeparrot/github-code
4d2dfb7fde066dc053e17b096419fffb9a1c114ff05ee996a80013a5e622e0f9
/* * 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
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/log/state/RangerLoadBegin.java
vineetgarg02/hive
apache-2.0
1,814
53
codeparrot/github-code
e25fcc34d366bdfd0484b21f1a50211407fe32af265b8f278b8008b9c2b801be
/* * Copyright 2015-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
protocols/ovsdb/rfc/src/main/java/org/onosproject/ovsdb/rfc/notation/Condition.java
sdnwiselab/onos
apache-2.0
3,501
124
codeparrot/github-code
52186a01dabd17a94496b4c4aff1523d873ae6fb33d81c8f62da26139ff460b6
/** * 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-client/src/jvm/org/apache/storm/security/auth/ThriftClient.java
adityasharad/storm
apache-2.0
4,570
127
codeparrot/github-code
e551dee9d61eb5805391e2b1700b29ab637aef6daa17dfa1eb17ca93083b6cb8
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-elasticloadbalancing/source/model/RemoveTagsResult.cpp
JoyIfBam5/aws-sdk-cpp
apache-2.0
1,892
60
codeparrot/github-code
e61557a42e06b561646aeb5a13bfad839f1854f8ef6c176750f985d63e5cffa0
<!doctype html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="A front-end template that helps you build fast, modern mobile web apps."> <meta name="viewport" content="width=device-width, initial-scale=1"> <title...
HTML
app/powerBI.html
katopotato/tech-for-good
apache-2.0
4,373
117
codeparrot/github-code
8e9b9e7ece8e53c67a1c0119a3ae94b969131b95bc5fe013249288adf58a3ad6
/* * Copyright 2022 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/config/FullConfigSaveNormalFlow.java
Skarlso/gocd
apache-2.0
3,802
82
codeparrot/github-code
7bb0b2143f568f5074b23e06aa77776951af12e479e2d4b8a66a15b371365a58
/* * Copyright 2022 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/service/plugins/processor/elasticagent/ElasticAgentRequestProcessor.java
Skarlso/gocd
apache-2.0
2,929
64
codeparrot/github-code
7cf046eb182c0b37b2b1c69e91658184623a858ba4a7a6e4097e4c3dc40da4fc
"""Class to hold all switch accessories.""" import logging from pyhap.const import ( CATEGORY_FAUCET, CATEGORY_OUTLET, CATEGORY_SHOWER_HEAD, CATEGORY_SPRINKLER, CATEGORY_SWITCH, ) from homeassistant.components.switch import DOMAIN from homeassistant.components.vacuum import ( DOMAIN as VACUUM_...
Python
homeassistant/components/homekit/type_switches.py
turbokongen/home-assistant
apache-2.0
7,993
224
codeparrot/github-code
71d318ae10d0ac0f198b543ee8b2a8c4561d7b5aab4c1fc6b9638f82c63cc300
from __future__ import absolute_import import datetime import pytz from django.core.management.base import BaseCommand from django.db.models import Count from zerver.models import UserProfile, Realm, Stream, Message, Recipient, UserActivity, \ Subscription, UserMessage, get_realm MOBILE_CLIENT_LIST = ["Android",...
Python
analytics/management/commands/realm_stats.py
gkotian/zulip
apache-2.0
7,855
153
codeparrot/github-code