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 |
|---|---|---|---|---|---|---|---|---|
aa6ed52d2c8ba30f4fb6de9bbb25ec676290a8d5405d60905c7ec25dd76460ea | /**
* @license
* Copyright 2018 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | TypeScript | src/rules/code-examples/preferWhile.examples.ts | andy-hanson/tslint | apache-2.0 | 1,470 | 51 | codeparrot/github-code |
2ee1469d76b7a1ecb5a5aa57f6a5e9cefe6bb58356bc73705cf7912bc55a3bdb | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-marshalling/src/test/java/org/kie/workbench/common/stunner/bpmn/client/marshall/converters/fromstunner/properties/EmbeddedSubprocessPropertyWriterTest.java | Rikkola/kie-wb-common | apache-2.0 | 1,772 | 45 | codeparrot/github-code |
f0a3a301afe585947716e57ccfef932a5399848844d57c16ecce7fcb63f00723 | {% macro warnings_and_loader() -%}
<div ng-cloak>
<div class="oppia-toast-container toast-top-center">
<div ng-repeat="warning in (alertsService.warnings | limitTo:5) track by $index" class="toast toast-warning oppia-toast">
<button type="button" class="toast-close-button" ng-click="alertsService.de... | HTML | core/templates/dev/head/base.html | mit0110/oppia | apache-2.0 | 20,182 | 391 | codeparrot/github-code |
404f0277d6a19e30de58cde059ed7ded96f7f2e070c2aafb7bd3c5aa6554784e | /*
* Copyright 2008 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 agreed to ... | Java | java/src/com/google/template/soy/exprtree/OperatorNodes.java | Digaku/closure-template | apache-2.0 | 7,510 | 272 | codeparrot/github-code |
ca988e983782e11732627f59905cae97d147e1016774e6b3a608c24b882829f9 | /*
* 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 | common/src/main/java/com/thoughtworks/go/remote/work/artifact/ArtifactRequestProcessor.java | gocd/gocd | apache-2.0 | 5,906 | 131 | codeparrot/github-code |
9ad3fe9e9c2f96e11eebf93efdb85b75f8cce154319771da37a0714a75695b1d | /*
* Copyright (c) 2018 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <misc/printk.h>
#include <board.h>
#include <gpio.h>
#include <i2c.h>
#include <spi.h>
#include <sensor.h>
/* #define ARGONKEY_TEST_LOG 1 */
#define WHOAMI_REG 0x0F
#define WHOAMI_ALT_REG 0x4... | C | samples/boards/96b_argonkey/src/main.c | mbolivar/zephyr | apache-2.0 | 8,806 | 324 | codeparrot/github-code |
c94a2b54996c804f420005912cb2a19d2fe7bb3f8565cdf16243315bd7c0c03e | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | src/test/java/org/apache/sysds/test/functions/recompile/FunctionRecompileTest.java | apache/incubator-systemml | apache-2.0 | 4,614 | 130 | codeparrot/github-code |
7fe537b3547da986265d189191f572bf45ec7f242a0d67ca25db421aab98ed46 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/JobSubmitTest.java | hwstreaming/flink | apache-2.0 | 7,730 | 236 | codeparrot/github-code |
ac3f5f0a1048b9c038f39000fcacc951dcb94e1a712c3cc97e09d8cf240664f9 | /*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | drools-core/src/main/java/org/drools/core/base/accumulators/CountAccumulateFunction.java | ngs-mtech/drools | apache-2.0 | 2,915 | 104 | codeparrot/github-code |
9778b49d91532cb1bc0d2900b0365ef519383341ca9d4b7eff79b97c38f5f3e1 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | presto-main/src/test/java/com/facebook/presto/type/TestIpPrefixOperators.java | ptkool/presto | apache-2.0 | 13,240 | 201 | codeparrot/github-code |
8c58cb3241632694e072b0611ffb8a2e2a29ee6f168e39a9d2b1af7d6c9c37da | """
IP Types
"""
import logging
from ipaddress import ip_address
from socket import AF_INET, AF_INET6
from vpp_papi import VppEnum
from vpp_object import VppObject
try:
text_type = unicode
except NameError:
text_type = str
_log = logging.getLogger(__name__)
class DpoProto:
DPO_PROTO_IP4 = 0
DPO_P... | Python | test/vpp_ip.py | FDio/vpp | apache-2.0 | 6,921 | 230 | codeparrot/github-code |
ec29710157cdd39796889da096081d93d8469e4faa6576a4b86eba672a57f2ec | #--------------------------------------------------------------------
#----- GRNOC TSDS Aggregation DataService Library
#-----
#----- Copyright(C) 2015 The Trustees of Indiana University
#--------------------------------------------------------------------
#----- $HeadURL: svn+ssh://svn.grnoc.iu.edu/grnoc/tsds/services... | Perl | lib/GRNOC/TSDS/DataService/Aggregation.pm | daldoyle/tsds-services | apache-2.0 | 26,631 | 882 | codeparrot/github-code |
364d56b194049e8e9575c3dc2804bc3d4fa064ebd0d3064c2b6a09548783cea8 | /*
* 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/materials/SCMMaterialSource.java | Skarlso/gocd | apache-2.0 | 6,425 | 158 | codeparrot/github-code |
48fcc1814a6afdef280cc69ba5d199cb7df2984b99cfbc3dbc4de93e49db650f | # Copyright 2016 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Ruby | google-cloud-logging/lib/google/cloud/logging/rails.rb | blowmage/gcloud-ruby | apache-2.0 | 10,156 | 233 | codeparrot/github-code |
ac1a5099e9c08b8132befe6dd164cb809ab2046d1f73d94552216e57a1ed704d | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | optaplanner-core/src/main/java/org/optaplanner/core/impl/score/stream/drools/quad/DroolsQuadToTriGroupByCollectorProcessor.java | ge0ffrey/optaplanner | apache-2.0 | 3,217 | 71 | codeparrot/github-code |
7e2f4a3e2b62ad6ceb8494bb0bfddb42b4fe447c0a3e4b1a23a7e280fb6e3699 | /*
* OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI)
*
* Website: http://www.ocilib.net
*
* Copyright (c) 2007-2016 Vincent ROGIER <vince.rogier@ocilib.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | C | src/ocilib-4.2.1/src/exception.c | ysmgigi/dbss | apache-2.0 | 30,607 | 1,059 | codeparrot/github-code |
6def31fdfbc95e68dbf3a12a5dd0d07e0d74f04a5a46abef7354846f40cebd21 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class ... | C | aws-cpp-sdk-lookoutequipment/include/aws/lookoutequipment/model/InferenceS3InputConfiguration.h | awslabs/aws-sdk-cpp | apache-2.0 | 4,405 | 134 | codeparrot/github-code |
ec43f8922d3d25b2fd34ba33eb33491a503b36a2549f6ee497e3e42132dd8c96 | /**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | Java | src/main/java/org/openengsb/core/api/security/OpenEngSBSecurityException.java | openengsb-attic/openengsb-api | apache-2.0 | 1,499 | 45 | codeparrot/github-code |
37baf1226ae931115922daed939ff19c9bf7a896ca0e58b29262968c8951a2a8 | package org.andidev.applicationname.format.custom;
import java.util.Locale;
import org.andidev.applicationname.format.annotation.CustomFormat;
import org.apache.commons.lang3.StringUtils;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.ExpressionParser;
import org.springf... | Java | src/main/java/org/andidev/applicationname/format/custom/CustomPrinter.java | andidev/spring-bootstrap-enterprise | apache-2.0 | 1,468 | 36 | codeparrot/github-code |
69358723e94e3d0610cbc00aedefba94fc3fb735cfbb59c7be392baab9fa17d0 | /*
* Copyright 2015 - 2017 Atlarge Research Team,
* operating at Technische Universiteit Delft
* and Vrije Universiteit Amsterdam, the Netherlands.
*
* 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 | granula-modeller/src/main/java/science/atlarge/granula/modeller/rule/derivation/time/ParentalEndTimeDerivation.java | tudelft-atlarge/granula | apache-2.0 | 2,098 | 54 | codeparrot/github-code |
a9d28557d311bf2e8b2a9a44a74e7b0848d2243c724f7f000f2a61854315ec3b | <!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>Generates</title>
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="... | HTML | docs/public/generate/index.html | aleksandr-vin/go-swagger | apache-2.0 | 9,657 | 327 | codeparrot/github-code |
7e65bdb07b0b4ad0972189ad940d5198c97ba34c5ef98dedcf5491fc67a54f1b | /*
* Copyright (C) 2015 Apptik Project
* Copyright (C) 2014 Kalin Maldzhanski
* Copyright (C) 2011 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
*
*... | Java | jus-java/src/main/java/io/apptik/comm/jus/error/AuthError.java | djodjoni/jus | apache-2.0 | 1,412 | 45 | codeparrot/github-code |
21eba5dbe8db63630b05ac70a3ff3ac62f9f8dcba6f286e0b79e585e6fd4043f | /**
* File: app/project/ProjOpen.js
* Author: liusha
*/
Ext.define('xdfn.project.ProjOpen', {
extend: 'xdfn.project.ui.ProjOpen',
grid: null,
initComponent: function() {
var me = this;
me.openStore = Ext.create('xdfn.project.store.ProjOpenJsonStore');
me.... | JavaScript | web_root/app/static/app/project/ProjOpen.js | flowsha/zhwh | apache-2.0 | 4,806 | 156 | codeparrot/github-code |
99ff9ce5b8b4f1bc36ebb22dbc9172e4f51d1dec9c9aa7a315ac1b443d2e7843 | /*
* Copyright 2006-2008 Kazuyuki Shudo.
*
* 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/dhtaccess/tools/Remove.java | shudo/dht-access | apache-2.0 | 3,313 | 128 | codeparrot/github-code |
ba471e41963a8b9414434817b267fcbcd1a34997c9294c74451a76a03b615da2 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
/*
* Content policy implementatio... | C++ | B2G/gecko/content/base/src/nsNoDataProtocolContentPolicy.cpp | sergecodd/FireFox-OS | apache-2.0 | 3,310 | 81 | codeparrot/github-code |
003e9c0c2b9f82063f98845050a760ec42bd1cab51dfa22d24691cc6ce3d341a | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 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 Lice... | Java | rest/src/main/java/org/jboss/pnc/rest/provider/ProductMilestoneReleaseProvider.java | dans123456/pnc | apache-2.0 | 3,113 | 72 | codeparrot/github-code |
f5a0032e96964b3faca15d50135c4352b024419f56bf013f2e0f664b535a1780 | /**
* 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.o... | JavaScript | product/carbon-home/resources/composer/web/js/ballerina/visitors/source-gen/connector-definition-visitor.js | nu1silva/product-apim | apache-2.0 | 5,798 | 129 | codeparrot/github-code |
febd9193b0bc8488ca23c4df5a32f506432ee7f4868d66b0757b5f4c4fc75491 | /**
* 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/UnmarshalProcessorTest.java | aaronwalker/camel | apache-2.0 | 4,219 | 105 | codeparrot/github-code |
713ce51d3986c17ac5b9414674e560bebd3163f30e101f9dc737944e3a477791 | /* -*- Mode: C++; 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/. */
/* This program reads an ELF file and computes i... | C++ | B2G/gecko/tools/footprint/foldelf.cpp | sergecodd/FireFox-OS | apache-2.0 | 8,544 | 320 | codeparrot/github-code |
5c3cabb3972bee61c495b030f26aecc6428348bd39d7b0583140c52aeefd8bf0 | /*
* 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 | java-util/src/main/java/org/apache/druid/java/util/common/CloseableIterators.java | dkhwangbo/druid | apache-2.0 | 2,771 | 97 | codeparrot/github-code |
0c2aa3009c4671b6f3404999a6548b7ed715f5e5eb24d07a35b0bc134baba7d4 | //======= Copyright (c) Valve Corporation, All rights reserved. ===============
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.Serialization;
namespace Valve.VR
{
public class SteamVR_Settings : ScriptableObject
{
private static Ste... | C# | Assets/ThirdParty/SteamVR/Scripts/SteamVR_Settings.cs | googlevr/tilt-brush | apache-2.0 | 4,629 | 119 | codeparrot/github-code |
6e2b80e75fdda6261ba13cdd28f6187a821adaacf42e04849816ec9c4142ced2 | /*
*
* Copyright 2015, 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 condi... | C | third_party/grpc/include/grpc/impl/codegen/grpc_types.h | shishaochen/TensorFlow-0.8-Win | apache-2.0 | 16,022 | 398 | codeparrot/github-code |
8539f8075c14d14ce96d03e55fa006ebb35a1d188d7a45ef07c8af76b31b54be | <!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">
<head>
<meta http-equiv="content" content ="text/html; charset=utf-8" />
<title> 微通汇系统</title>
<meta http-equiv="MSThemeCompatible" content = "Yes" /... | HTML | Application/User/View/gooraye/Map/setLatLng.html | h136799711/2015weitonghui | apache-2.0 | 6,326 | 208 | codeparrot/github-code |
a46321451a0594358cb11ca0737323f12f676fd1db1386df8a8a862535169df8 | /* 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/contrib/lite/testing/tflite_driver.cc | yanchen036/tensorflow | apache-2.0 | 10,088 | 319 | codeparrot/github-code |
c7d845327b1c482280bda58a7c57a262cd79be40d80244a2110656a3da521f9f | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 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/Pregel/WorkerConfig.h | graetzer/arangodb | apache-2.0 | 5,443 | 162 | codeparrot/github-code |
10e92fdaf68f757c8c0471f60ff7998d292e809fd2dd456be95e5b43e3e2f149 | /*
* Copyright 2012-2014 MarkLogic Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | appserver/java-spring/src/main/java/com/marklogic/samplestack/web/security/SamplestackAuthenticationEntryPoint.java | laurelnaiad/marklogic-samplestack-old | apache-2.0 | 2,075 | 62 | codeparrot/github-code |
11f6ad2a3f4374b8c53f7d981e0f559ca3a40e4b1541ea4adbab52dfb2d4f603 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function goSlide(event) {
var index = event.source.mod;
var arrViews = $.scrollableView.getViews();
switch (index) {
... | JavaScript | Resources/iphone/alloy/controllers/contact.js | hardikamal/xox | apache-2.0 | 5,935 | 181 | codeparrot/github-code |
32122868f567692a4677d3600ac6ee983719aa63aac10f4dc4c179c45aa2f08e | extern alias SSmDsClient;
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRiaServices.DomainServices.Client;
using Cities;
using Microsoft.Silverlight.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DataTests.Northwind.LTS;
using System.ComponentModel.DataAnnotations;
us... | C# | OpenRiaServices.DomainServices.Client/Test/Silverlight/Data/OperationTests.cs | jeffhandley/OpenRiaServices | apache-2.0 | 17,160 | 462 | codeparrot/github-code |
e3c6609101442f63eb77c59f4005c61f480fdccd11302a886f26794cb50040ed | /*
* 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 | apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/EndpointIdIsRandomExpectTest.java | yanzhijun/jclouds-aliyun | apache-2.0 | 2,716 | 71 | codeparrot/github-code |
f753cba9c340569070f444ce58c97924bf627f937e218d0f5256e280e6ce9062 | /*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* 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 ... | C++ | matrix/matrix_store.cpp | flashxio/FlashX | apache-2.0 | 11,850 | 422 | codeparrot/github-code |
dba36133167a531341bb17fd2196e6e1d18d16ca1c3be769af5b2856e26cd38a | // Copyright 2018 The LUCI 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... | GO | cipd/appengine/impl/repo/acl.go | luci/luci-go | apache-2.0 | 5,464 | 167 | codeparrot/github-code |
4bae84e545c3ab4f730f9527bb0b32a40bca35555cdb97316735474d0b45102e | /*
* 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 | dubbo-registry/dubbo-registry-default/src/main/java/org/apache/dubbo/registry/dubbo/DubboRegistry.java | lovepoem/dubbo | apache-2.0 | 5,956 | 158 | codeparrot/github-code |
1befe30d5db325fe2e8efc1625afa14db684216c1e2b7447daddbdc5b0d1a38e | # coding: utf-8
#
# Copyright (c) 2013 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
#
# Unle... | Python | essential/db/sqlalchemy/migration.py | gaolichuang/py-essential | apache-2.0 | 10,185 | 272 | codeparrot/github-code |
c402c29a056dea598c8acb657446113d819d316831377d6036aa952afb323d22 | /*
* 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 | lucene/analysis/common/src/test/org/apache/lucene/analysis/reverse/TestReverseStringFilter.java | visouza/solr-5.0.0 | apache-2.0 | 4,906 | 117 | codeparrot/github-code |
815708daaf1830fe92806d1b7f9cb8aa7282590d815e0fb46644d0885d85895d | package org.cloudfoundry.autoscaler.data.couchdb.dao.impl;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.cloudfoundry.autoscaler.data.couchdb.dao.AppInstanceMetricsDAO;
import org.cloudfoundry.autoscaler.data.couchdb.dao.base.TypedCouchDbRepositorySupport;
import org.cl... | Java | server/src/main/java/org/cloudfoundry/autoscaler/data/couchdb/dao/impl/AppInstanceMetricsDAOImpl.java | cfibmers/open-Autoscaler | apache-2.0 | 6,943 | 182 | codeparrot/github-code |
f42457b017a8650d505362860f0c1d8490b1bd91ffbca0b26a64094255d3b642 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014 The Billing Project, LLC
*
* Ning 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/lice... | Java | src/main/java/org/killbill/billing/plugin/meter/timeline/shutdown/StartTimes.java | killbill/killbill-meter-plugin | apache-2.0 | 3,097 | 90 | codeparrot/github-code |
9fe79d9dceea23994c5bd60195f0759be1b2b45970e107a06e7e4924e645873b | /*
* 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 | server/src/test/java/io/druid/metadata/IndexerSQLMetadataStorageCoordinatorTest.java | lizhanhui/data_druid | apache-2.0 | 26,606 | 829 | codeparrot/github-code |
bc758c0ebc934f4e60e0d95c9d9ba29f23a7bed95814c07714d6333df8866659 | // Copyright 2006-2009 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... | C++ | mi_exe_stub/process.cc | pinkpegasus/omaha_vs2010 | apache-2.0 | 2,497 | 79 | codeparrot/github-code |
bae333618a95e4544b168bad7ff0b4ffac280535a7ca3289230bc85dbeda97f0 | <pm-header></pm-header>
<div class="container">
<legalMenu></legalMenu>
<div class="body">
<h1>Extension to the slamby api commercial license for royalty free distribution (oem)</h1>
<h2>1. Definitions</h2>
<p>When used in this Agreement, the following terms shall have the respective me... | HTML | src/app/legal/commercial-license-oem.component.html | slamby/slamby-website | apache-2.0 | 5,287 | 39 | codeparrot/github-code |
12768dd0c0b4a366ac58176ec7a720bb8011c3eee2d72272e82241327229585b | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyWorkerPoolBuilder.java | Fabryprog/camel | apache-2.0 | 3,053 | 95 | codeparrot/github-code |
c83e7405e161e40c025be5dcd8205436e7e43a30e188dce425448a41314eb165 | using J2N.Text;
using Lucene.Net.Documents;
using Lucene.Net.QueryParsers.Flexible.Core.Config;
using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
using Lucene.Net.QueryParsers.Flexible.Core.Processors;
using Lucene.Net.QueryParsers.Flexible.Standard.Config;
using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
using... | C# | src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs | apache/lucenenet | apache-2.0 | 6,629 | 163 | codeparrot/github-code |
d849815f2c851efc8888c619e04b7a36f2a25bc77169726b5c7d045ea0923acb | ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
Imports System.Threading
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeA... | Visual Basic | src/Workspaces/VisualBasic/Portable/Extensions/ExpressionSyntaxExtensions.vb | marksantos/roslyn | apache-2.0 | 95,471 | 1,866 | codeparrot/github-code |
7fe7be594dfda0ebe0617ad22816ab195ad45e5a45bf8f09b3b7461d5fd2c136 | /*
* Copyright 2015 Textocat
*
* 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 | Textokit.PosTagger.API/src/main/java/com/textocat/textokit/morph/commons/TagUtils.java | textocat/textokit-core | apache-2.0 | 3,235 | 100 | codeparrot/github-code |
4e3f687b5dc8db4c57e443f7e464b236a1f9e804b1478d7f5f96d9a07df4546c | /**
* Copyright 2016 The AMP HTML 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 require... | JavaScript | extensions/amp-live-list/0.1/live-list-manager.js | zhouyx/amphtml | apache-2.0 | 10,792 | 362 | codeparrot/github-code |
b8cee9c8bbfe726452ff0f30a356c7b2c54d5007f70e2148f30c293a529e031f | package org.eclipse.jetty.server.handler;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.net.Socket;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex... | Java | jetty-server/src/test/java/org/eclipse/jetty/server/handler/AbstractConnectHandlerTest.java | thomasbecker/jetty-7 | apache-2.0 | 5,030 | 174 | codeparrot/github-code |
c1a70bf41fa79bcf90629401a6927f44e29d3d162028c9af87789eebb5c64348 | package org.apache.velocity.tools.view;
/*
* 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 Lice... | Java | src/main/java/org/apache/velocity/tools/view/DataInfo.java | fluidinfo/velocity-tools-packaging | apache-2.0 | 3,790 | 145 | codeparrot/github-code |
4812a2eb56d5fd33202d2c0f62bafded6a1ef7c17a660cb7759eb6901a4d3ef2 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | C# | src/ResourceManager/Compute/Commands.Compute/Extension/VMAccess/GetAzureVMAccessExtension.cs | ClogenyTechnologies/azure-powershell | apache-2.0 | 4,613 | 104 | codeparrot/github-code |
c13d006e6a157d2715f61f434a63b23079614c973b2bcb71558fd1023beb1e59 | /*
* Licensed to Diennea S.r.l. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Diennea S.r.l. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this ... | Java | docet-core/src/main/java/docet/engine/DocetDocFormat.java | diegosalvi/docetproject | apache-2.0 | 1,574 | 51 | codeparrot/github-code |
b932b3e56aa2b420be48c9c08912a104af2c9a77373c41ad5e577c7407a1985d | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Java | test/org/apache/coyote/http2/TestHttp2Section_6_1.java | apache/tomcat | apache-2.0 | 6,884 | 204 | codeparrot/github-code |
f50ab6a51177e076d2a4c292bf0a8c99c7ddb9c5332d9da40bd0e6163cfe848d | // Copyright 2021 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | TypeScript | core/templates/pages/delete-account-page/templates/delete-account-modal.component.ts | brianrodri/oppia | apache-2.0 | 1,586 | 55 | codeparrot/github-code |
ddab757ec474b4721d0dd5327f350c977a03a2623434dae72c55464fbb65f2df | # Copyright 2008-2013 Software freedom conservancy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | Python | py/selenium/webdriver/remote/webelement.py | RamaraoDonta/ramarao-clone | apache-2.0 | 14,925 | 443 | codeparrot/github-code |
55022616871ad02b75e6eaa59eea2b6601a72b814a9495be9ef42d616a1d341d | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/location/model/SearchForTextResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... | C++ | aws-cpp-sdk-location/source/model/SearchForTextResult.cpp | jt70471/aws-sdk-cpp | apache-2.0 | 1,029 | 60 | codeparrot/github-code |
e5a4bc002ba2ba9a89e8e77f6f2a453105efed25c5d9aedf3f934f147093fac7 | """This component provides support to the Ring Door Bell camera."""
import asyncio
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
from homeassistant.components.ffmpeg import DATA_FFMPEG
from homeassistant.const import ATTR_ATT... | Python | homeassistant/components/ring/camera.py | jabesq/home-assistant | apache-2.0 | 5,739 | 173 | codeparrot/github-code |
7a41c627fd4641fcfb838784966e405de8a8141d2414032888c4c61a4fa4467c | /**
* Copyright 2014
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, ... | Java | Java/old/OpenGL-1.0(old_ver)/Loon-backend-JavaSE/src/loon/core/graphics/component/table/TableLayout.java | cping/LGame | apache-2.0 | 4,973 | 191 | codeparrot/github-code |
76fa007fe0e9a3668b04f6116a098c88d5e4e409aeca016022c55afe27770406 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/CodeFragmentEvaluator.java | mglukhikh/intellij-community | apache-2.0 | 4,502 | 129 | codeparrot/github-code |
8f0046707437bfe53fa828f4bff7a16925e971ab1f3eeb5351c33860b67d3e03 | #include "extensions/common/tap/tap_config_base.h"
#include "envoy/config/tap/v3/common.pb.h"
#include "envoy/data/tap/v3/common.pb.h"
#include "envoy/data/tap/v3/wrapper.pb.h"
#include "common/common/assert.h"
#include "common/common/fmt.h"
#include "common/config/version_converter.h"
#include "common/protobuf/utili... | C++ | source/extensions/common/tap/tap_config_base.cc | lizan/envoy | apache-2.0 | 9,292 | 223 | codeparrot/github-code |
94d3c21b4fbab775e70c59ffae239f13b68458e6e732847181ca18bb7122cabd | #pragma once
#include <string>
#include "envoy/server/filter_config.h"
#include "common/protobuf/protobuf.h"
namespace Envoy {
namespace Extensions {
namespace HttpFilters {
namespace Common {
/**
* Config registration for http filters that have empty configuration blocks.
* The boiler plate instantiation functi... | C | test/extensions/filters/http/common/empty_http_filter_config.h | lizan/envoy | apache-2.0 | 1,707 | 54 | codeparrot/github-code |
2533b0ff612cdac37671d79857965d036a2129193e5393238a1060235c71e515 | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
"math"
)
type BeNumericallyMatcher struct {
Comparator string
CompareTo []interface{}
}
func (matcher *BeNumericallyMatcher) Match(actual interface{}) (success bool, message string, err error) {
if len(matcher.CompareTo) == 0 || len(matcher.Compa... | GO | Godeps/_workspace/src/github.com/onsi/gomega/matchers/be_numerically_matcher.go | aminjam/onememberoauth2 | apache-2.0 | 3,596 | 115 | codeparrot/github-code |
a9410bbcd36b179d4ca5f73ee0546601346d24de642f46499b6193afe636a135 | /*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT plantower_pms7003
/* sensor pms7003.c - Driver for plantower PMS7003 sensor
* PMS7003 product: http://www.plantower.com/en/content/?110.html
* PMS7003 spec: http://aqicn.org/air/view/sensor/spec/pms7003.pd... | C | drivers/sensor/pms7003/pms7003.c | Vudentz/zephyr | apache-2.0 | 4,354 | 191 | codeparrot/github-code |
54f5ccd398c15673c0a4b7e74baf8763ab8409bf35674cd9fef86eac003d9bf8 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsS3BucketLoggingConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
n... | C++ | aws-cpp-sdk-securityhub/source/model/AwsS3BucketLoggingConfiguration.cpp | awslabs/aws-sdk-cpp | apache-2.0 | 1,582 | 75 | codeparrot/github-code |
db4f9ceaf9b61faa27be3157b7545ddf6dfdfcebc93483df54c48825ca73a01b | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.Remoting;
using System.Threading;
using Syste... | C# | src/EditorFeatures/TestUtilities/Remote/InProcRemostHostClient.cs | aelij/roslyn | apache-2.0 | 11,472 | 263 | codeparrot/github-code |
bb87be33589050ebb8e84b1cc01907af701350987aec2c6eaf675f84505a235f | package org.goodsManagement.service.impl.PoiUtils;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.goodsManagement.po.GetGoodsDto;
import org.goodsManagement.vo.GetGoodsVO;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import... | Java | src/main/java/org/goodsManagement/service/impl/PoiUtils/GetGoodsToExcel.java | sunshine-life/GoodsManagement | apache-2.0 | 2,014 | 67 | codeparrot/github-code |
c3f816f6659c9cf156edac1a01811346867e42a3792bd20c3063afbb0fad2ef4 | #ifndef _DICTIONARY_H_
#define _DICTIONARY_H_
#include <string>
#include <unordered_map>
#include <cinttypes>
// This class represents a dictionary that maps integer values to strings.
class Dictionary {
public:
typedef int32_t DiffType; // return value of compare function
typedef uint32_t IntT... | C | src/DataTypes/headers/Dictionary.h | RayZ-O/grokit | apache-2.0 | 3,061 | 108 | codeparrot/github-code |
ec6f38ba27bbb2117d00fe527d44bb8d8cac2d74c252dd648f641b6a64bb69b6 | //===- WriterUtils.cpp ----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | lld/wasm/WriterUtils.cpp | google/llvm-propeller | apache-2.0 | 7,617 | 252 | codeparrot/github-code |
aab2015ff892310d26a02b78c6f1a322ccc7ef8653362b4f7caf1e93ae3bc98d | # Copyright 2015 Rafe Kaplan
#
# 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, s... | Python | src/booze/gin/rule.py | slobberchops/booze | apache-2.0 | 2,341 | 77 | codeparrot/github-code |
83a2a8e04465a674396f6aba6e66a6ce49f8f4cc12cebaca3993b336fd476027 | package build
import sbt._
import Keys._
import Def.SettingsDefinition
final class MultiScalaProject private (private val projects: Map[String, Project])
extends CompositeProject {
import MultiScalaProject._
val v2_11: Project = projects("2.11")
val v2_12: Project = projects("2.12")
val v2_13: Project = ... | Scala | project/MultiScalaProject.scala | scala-js/scala-js | apache-2.0 | 4,271 | 119 | codeparrot/github-code |
389742ea352ca2eede1ac58bda376f398f9ce3c6fac21da9bbdd5f10b97ead15 | /*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2019
*/
package com.ibm.streamsx.topology.internal.logging;
import java.util.logging.Level;
import java.util.logging.Logger;
public interface Logging {
/**
* Set the root logging levels from Python logging integer level.
* @param leve... | Java | java/src/com/ibm/streamsx/topology/internal/logging/Logging.java | ddebrunner/streamsx.topology | apache-2.0 | 800 | 33 | codeparrot/github-code |
7ab68f472da39441c8c8b3991dc3a2f8b3b75438fb42dbb1534c4f2a7681097a | package wikokit.base.wikt.db;
import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
/** Decompress ziped file.
*
* @see http://www.jondev.net/articles/Unzipping_Files_with_... | Java | android/common_wiki_android/src/wikokit/base/wikt/db/Decompressor.java | componavt/wikokit | apache-2.0 | 1,533 | 60 | codeparrot/github-code |
5dac41fd14ee98fcda8bb125cd652a5ae6939cb622e6b76a72a4c3d3f5558cce | // --------------------------------------------------------------------------------------------------------------------
// <summary>
// The chat room controller.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace WebStreams... | C# | ChatRoomController.cs | daprlabs/WebStreamSamples | apache-2.0 | 4,328 | 124 | codeparrot/github-code |
33f9cdfc6811c10aaac8f20e9ca8668e98e01fa6d4a2606a7a0014d21165ea0c | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/JMSTransactionalClientWithRollbackTest.java | Fabryprog/camel | apache-2.0 | 2,206 | 58 | codeparrot/github-code |
cecd18f977b01300df38356246e5e8bd5d9b8d5863c5e5017b2f5a6dadb58697 | (function() {
var head = document.head || document.getElementsByTagName('head')[0];
var style = null;
var mobileScreenWidth = 768;
// Make sure this value is equal to the width of .wy-nav-content in overrides.css.
var initialContentWidth = 960;
// Make sure this value is equal to the width of .wy-nav-side ... | JavaScript | src/site/sphinx/_static/center_page.js | trustin/sphinx-gradle-plugin | apache-2.0 | 2,528 | 79 | codeparrot/github-code |
fa4691520726ca0e5f6bc81bdd15718adcdb84879be5470cb08076ac8663014d | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the Apache License Version 2.0.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRAN... | Java | src/main/java/com/microsoft/uprove/UProveToken.java | albdum/uprove | apache-2.0 | 6,515 | 235 | codeparrot/github-code |
cbd3eb75a19110aad84fa3b800ac948ee0e4021fe8d360a703dbc2db34e51ded | /*
* 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 | platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/compiler/PatternCompiler.java | apixandru/intellij-community | apache-2.0 | 20,077 | 528 | codeparrot/github-code |
44cf37fd3d70afdb453cf3fe8f1455a18c4c0e905731c31624a3d30c17430828 | package examples.model;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Department {
@Id
private int id;
private String name;
@OneToMany(mappedBy="department")
private C... | Java | examples/Chapter7/02-namedQueryExample/src/model/examples/model/Department.java | velmuruganvelayutham/jpa | apache-2.0 | 759 | 39 | codeparrot/github-code |
6393f9f940a8181cacb8595f3b3b8d6e8975475be45dd171322ff6f07d7747bf | export const FILLPATTERN = {
none: '',
crossHatched: 'Crosshatched',
hatched: 'Hatched',
solid: 'Solid'
};
export const STROKEPATTERN = {
none: '',
dashed: 'Dashed',
dotted: 'Dotted',
solid: 'Solid'
};
export const ALTITUDEMODE = {
NONE: '',
ABSOLUTE: 'Absolute',
RELATIVE_TO_GROUND: 'Relative to... | JavaScript | src/validation/js/constants/PropertyConstants.js | missioncommand/emp3-web | apache-2.0 | 997 | 55 | codeparrot/github-code |
a9597dd6a501cc4e5ea0d28ba2a1cf6774cb1282988f32acec6dbf1a8661d6e2 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.IO;
namespace Microsoft.WindowsAzure.MobileServices
{
/// <summar... | C# | src/Microsoft.Azure.Mobile.Client/Platforms/ios/CurrentPlatform.cs | MatkovIvan/azure-mobile-apps-net-client | apache-2.0 | 3,137 | 89 | codeparrot/github-code |
4ffc079a34f0e324d0b077ccd3e847c8fd67ff1f766e7338aa8c1c6fea59640e | <?php
/*
* Copyright 2014 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 agreed t... | PHP | src/ChromePolicy/GoogleChromePolicyV1PolicySchemaFieldDescription.php | googleapis/google-api-php-client-services | apache-2.0 | 3,468 | 130 | codeparrot/github-code |
cdfb66164dc8a10af66f16995fcee116dc3cf3fd0be67ed35b96165b870a72a5 | package water.jdbc;
import org.junit.Test;
import org.junit.runner.RunWith;
import water.Key;
import water.Keyed;
import water.fvec.Frame;
import water.runner.CloudSize;
import water.runner.H2ORunner;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import static org.junit... | Java | h2o-core/src/test/java/water/jdbc/SQLManagerKeyOverwiteTest.java | michalkurka/h2o-3 | apache-2.0 | 1,246 | 50 | codeparrot/github-code |
0e3a4727ee28eca0eed377fbf5710534cc2c6ee9c0568833abc161a1adddc6c1 | <?php
namespace EventEspresso\core\services\commands\registration;
use EventEspresso\core\services\commands\Command;
if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
exit( 'No direct script access allowed' );
}
/**
* Class SingleRegistrationCommand
* DTO for passing data a single EE_Registration object to a Comma... | PHP | wp-content/plugins/event-espresso-core-reg/core/services/commands/registration/SingleRegistrationCommand.php | yoanngern/iahm_2016 | apache-2.0 | 998 | 54 | codeparrot/github-code |
d824841224867cfb7f2144894a65329c0f3c3d2d9c4d1c19d3d345db0fdc25d6 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.impl.statistics;
import com.intellij.execution.Executor;
import com.intellij.execution.configurations.ConfigurationFactory;
import com.intellij.exe... | Java | platform/execution-impl/src/com/intellij/execution/impl/statistics/RunConfigurationUsageTriggerCollector.java | GunoH/intellij-community | apache-2.0 | 7,712 | 146 | codeparrot/github-code |
8b5c9ba24f3ba3d94d4ab24a6e76472ff556fe49446b10d836fa0950e257c81a | <include file='public:header'/>
<div class="mainBt">
<ul>
<li class="li1">系统</li>
<li class="li2">数据库</li>
<li class="li2 li3">数据库还原</li>
</ul>
</div>
<div class="main-jsgl">
<p class="attention"><span>注意:</span>谨慎操作!</p>
<div class="jsglNr">
<div class="selectNr">
... | HTML | Baocms/Tpl/database/import.html | ksyydream/api_llx | apache-2.0 | 3,165 | 88 | codeparrot/github-code |
148f2914c05460f9187442bae870fe405d7d340b53c1c0561ac0dbd4f657bf86 | /*
* 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 | shardingsphere-kernel/shardingsphere-parser/shardingsphere-parser-core/src/main/java/org/apache/shardingsphere/parser/rule/SQLParserRule.java | apache/incubator-shardingsphere | apache-2.0 | 1,720 | 48 | codeparrot/github-code |
1745d89816c22295f01414b820bbd19bd62270a0a6442eb7ae7127b05726d2f6 | package org.locationtech.geomesa.core.process.proximity
import com.typesafe.scalalogging.slf4j.Logging
import com.vividsolutions.jts.geom.GeometryFactory
import org.geotools.data.Query
import org.geotools.data.simple.{SimpleFeatureCollection, SimpleFeatureSource}
import org.geotools.data.store.ReTypingFeatureCollectio... | Scala | geomesa-core/src/main/scala/org/locationtech/geomesa/core/process/proximity/ProximitySearchProcess.scala | jwkessi/geomesa | apache-2.0 | 4,530 | 111 | codeparrot/github-code |
8d30b0047ec2a55bca289ed7d75e6fe2a61540439d4148ca8d5e035eef1b0d0e | /*
* 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-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/sort/MicroSortRuntimeFactory.java | apache/incubator-asterixdb | apache-2.0 | 8,262 | 186 | codeparrot/github-code |
9d4811b1057bcfe81c5d659d724d46e33f4b02efa8e591d0901690900bc09121 | /*
* 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 | solr/core/src/java/org/apache/solr/core/CoreContainer.java | visouza/solr-5.0.0 | apache-2.0 | 30,728 | 921 | codeparrot/github-code |
4787f7c6b701ac52643aa6cd1ccd82b0dc7e72a5bd8746c1eb6a215463d3a612 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | test/org/apache/pig/test/Util.java | apache/pig | apache-2.0 | 58,248 | 1,560 | codeparrot/github-code |
3e63b9e08efb88092d6b602ca86f2268ccb1cba8f949ab8927c71972a0f3c377 | import os
import sys
import argparse
from pandaharvester.harvesterconfig import harvester_config
from pandaharvester.harvestermisc.selfcheck import harvesterPackageInfo
def main():
oparser = argparse.ArgumentParser(prog='prescript', add_help=True)
oparser.add_argument('-f', '--local_info_file', action='store... | Python | pandaharvester/harvesterscripts/prescript.py | dougbenjamin/panda-harvester | apache-2.0 | 901 | 32 | codeparrot/github-code |
64c0dd4b5cf66a6d574521b329597a1fb59ca39e980bd09926ffd9f69641dc8f | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.CSharp.UnitTests.CodeGen
{
... | C# | src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenStringConcat.cs | aelij/roslyn | apache-2.0 | 52,896 | 1,991 | codeparrot/github-code |
07582eb1fee2db2cb7533caa7abc0dca4b22ff2c3cc7d308db2cae3cd781dfaa | package org.devspark.aws.tools;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.maven.plugin.AbstractMojo... | Java | src/main/java/org/devspark/aws/tools/AWSAPIGatewayDeployer.java | devspark-com/aws-lambda-deploy | apache-2.0 | 5,913 | 147 | codeparrot/github-code |
af2e3c4a3d4d7fd25663ab1b780ddeba2239b91254ed124e92282306f5f096ef | /*
* 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/lang-api/src/com/intellij/ide/actions/ElementCreator.java | jwren/intellij-community | apache-2.0 | 4,462 | 119 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.