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 |
|---|---|---|---|---|---|---|---|---|
aec7ac4455c1abe385a9f283b01e9f40b26b13868e9720b88d6563fb2f29b3b5 | /*
* Copyright 2005-2019 Dozer Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | core/src/test/java/com/github/dozermapper/core/vo/map/NestedObjPrime.java | DozerMapper/dozer | apache-2.0 | 1,098 | 42 | codeparrot/github-code |
5867f8c5e771275396aa22025045ad8810f003b131d7507b7be0222dd1d8fc26 | 'use strict';
let fs = require('fs');
let path = require('path');
import Logger from '../../services/logger';
class LocationController {
constructor($scope, $state, $timeout, installerDataSvc, electron) {
this.router = $state;
this.sc = $scope;
this.timeout = $timeout;
this.installerDataSvc = insta... | JavaScript | browser/pages/location/controller.js | dgolovin/developer-platform-install | apache-2.0 | 1,827 | 73 | codeparrot/github-code |
caff33773b89183b4cba45eec9afbd4c8c7ca2af7044875b2cbc184098cf4a24 | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | Java | sql/jpa/datanucleus/src/main/java/org/datanucleus/samples/jdo/tutorial/JdoTutMain.java | echalkpad/t4f-data | apache-2.0 | 5,883 | 183 | codeparrot/github-code |
8a0f5d143213920eeb38ac499408dc575bc170bcf48614240ab7d20c6ff008bb | /*
* 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/TestSampleOptimizer.java | apache/pig | apache-2.0 | 10,116 | 263 | codeparrot/github-code |
2384f474a8fb16fcb453c3e39eb44b86ff674a9edf217eb7d2ec6ddbd9679ab4 | package com.ahant.mobile.application.response.bean;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
public class ReleaseData {
private String appId;
private String releaseNo;
private String releaseDate;
private String releaseNote;
private String notificationMsg;
private... | Java | src/main/java/com/ahant/mobile/application/response/bean/ReleaseData.java | pabitra-muni/ahant-app-distributor | apache-2.0 | 1,735 | 87 | codeparrot/github-code |
b767daa006fd7175196f030c188f6f4c0fb81a7f231a67303582a42bce2fbfb2 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/edu/bupt/mms/util/DraftCache.java | CommonQ/sms_DualCard | apache-2.0 | 7,865 | 258 | codeparrot/github-code |
4c29211be91d43861026a2dda148b97c71ad6602359b36c7f4867da84b033f0a | #!/bin/sh
# 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... | Shell | src/packages/update-hbase-env.sh | Shmuma/hbase-trunk | apache-2.0 | 5,354 | 194 | codeparrot/github-code |
200d54d480bb749e9c8fd3b592bc50eba325882275b451aafb6d4055f5e8fe7e | /*
* Autopsy Forensic Browser
*
* Copyright 2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | Java | Core/src/org/sleuthkit/autopsy/allcasessearch/CorrelationAttributeInstanceNode.java | rcordovano/autopsy | apache-2.0 | 6,146 | 146 | codeparrot/github-code |
5d3e111a4240a148ccd0712cb3b455a09661436b7e3a3bb4b585e950b68c3a8e | /* DreemGL is a collaboration between Teeming Society & Samsung Electronics, sponsored by Samsung and others.
Copyright 2015-2016 Teeming Society. 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 a... | JavaScript | system/platform/headless/headless_geometry.js | dreemproject/dreemgl | apache-2.0 | 11,030 | 403 | codeparrot/github-code |
730f09c77bd0916371e239b2b60e448c9df1b90e0bb6bc568bc5812a5f45d94e | // Copyright 2019 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | GO | pkg/envoy/options.go | smawson/istio | apache-2.0 | 20,591 | 748 | codeparrot/github-code |
c99c8ea2183768ffe0f4045d872ab256b5b641f8e941f86f20202f1ccc2afed3 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | core/src/main/java/org/elasticsearch/rest/action/cat/RestSnapshotAction.java | baishuo/elasticsearch_v2.1.0-baishuo | apache-2.0 | 6,027 | 125 | codeparrot/github-code |
49582ea4fcf79853d61f94eb28f6d50111cdcfedb22e00b4f3ecd9110295b8a4 | package org.omg.CSIIOP;
/**
* org/omg/CSIIOP/ServiceConfigurationHolder.java .
* Error reading Messages File.
* Error reading Messages File.
* Thursday, January 14, 2010 1:08:59 AM PST
*/
public final class ServiceConfigurationHolder implements org.omg.CORBA.portable.Streamable
{
public org.omg.CSIIOP.ServiceConfig... | Java | yoko-spec-corba/src/main/generated-sources/idl/org/omg/CSIIOP/ServiceConfigurationHolder.java | apache/geronimo-yoko | apache-2.0 | 893 | 39 | codeparrot/github-code |
566005364af2e2644be00db727a0773c9c04c82f9b7b6abc9fae27c8fb80ea24 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.dataframe.process;
import org.apache.loggi... | Java | x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/process/NativeAnalyticsProcess.java | nknize/elasticsearch | apache-2.0 | 3,832 | 94 | codeparrot/github-code |
fd2ea6a855d8d63fb96d25fabb57752c0aa4902676d15fb4b8f7db0da127c6ba | package egovframework.com.ext.oauth.service;
import org.apache.commons.lang3.StringUtils;
import com.github.scribejava.apis.GoogleApi20;
import com.github.scribejava.core.builder.api.DefaultApi20;
public class OAuthVO implements OAuthConfig {
public String getService() {
return serviceName;
}
public void setSe... | Java | common-component/v3.9.0/src/main/java/egovframework/com/ext/oauth/service/OAuthVO.java | dasomel/egovframework | apache-2.0 | 2,571 | 115 | codeparrot/github-code |
fb0bafe6559710b3097f313d7bb7c29326a3b579603e8b8a74a79242e8f4f050 | <?xml version="1.0" encoding="utf-8"?>
<html>
<head>
<style type="text/css"> .SectionHeader { font-size: 14pt; font-weight: bold; color: #000000; }</style>
</head>
<body>
<p/>
<table border="1" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td bgcolor="#FFFF... | HTML | lib/hr-xml-2.5/OAGIS8_0/Documentation/BODs/ShowBillOfMaterial.html | zeliboba/HR-XSL | apache-2.0 | 70,777 | 1,819 | codeparrot/github-code |
f785903e668a62166d553906aec336bf77eb7722cd35fbb456e025db52a67115 | /*
* 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 | bval-extras/src/main/java/org/apache/bval/extras/constraints/net/DomainValidator.java | apache/bval | apache-2.0 | 15,231 | 457 | codeparrot/github-code |
13e3f4d6a5b17fd1032f269d0c2e8afa9f6994fbce2342e9700fc2792d8aa7d3 | package com.guidewire.tools.chronos.client.api
import org.joda.time.ReadablePeriod
import org.joda.time.format.ISOPeriodFormat
import play.api.libs.json._
/**
*
*/
package object v2 {
import JsonUtils._
import scala.language.implicitConversions
/** Serializes and deserializes instances of `org.joda.time.Read... | Scala | src/main/scala/com/guidewire/tools/chronos/client/api/v2/package.scala | Guidewire/chronos-client | apache-2.0 | 10,781 | 345 | codeparrot/github-code |
bf6e6de631842a05f7787f13caad1478f20002f0bf7508a8b1093f286af79589 | /*
* 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 | my-test/my/test/start/CassandraDaemonStart.java | codefollower/Cassandra-Research | apache-2.0 | 3,701 | 99 | codeparrot/github-code |
75a713a2775b28b845ea60aa0b200f841576db3078f0f5b180dd9ca986781248 | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _FXMATH_BARCODE_H_
#define _FXMATH_BARCODE_H_
class IFX_Barcod... | C | lib/src/main/cpp/external/pdfium/xfa/include/fwl/basewidget/fxmath_barcode.h | loilo-inc/PdfRendererCompat | apache-2.0 | 2,285 | 49 | codeparrot/github-code |
1bd986e89816e785b2950d870eb63e558c8dfc620a020ca8ef3a277a1dfffecc | /**
* Copyright (c) 2011-2014, James Zhan 詹波 (jfinal@126.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.weixin.sdk.msg.in.event;
/**
扫描带参数二维码事件
1. 用户未关注时,进行关注后的事件推送
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[FromUser]]></FromUserName>
... | Java | weixin-sdk/src/main/java/com/weixin/sdk/msg/in/event/InQrCodeEvent.java | pjworkspace/wscs | apache-2.0 | 1,668 | 69 | codeparrot/github-code |
178efea22b83c820b6ae86d0074c7de187f15dce5a8bc2fe935b2c44284df3e9 | <?php
class DianpingAction extends CommonAction {
public function index() {
import('ORG.Util.Page'); // 导入分页类
$status = (int) $this->_param('status');
$this->assign('status', $status);
$st = (int) $this->_param('st');
$this->assign('st', $st);
if ($status == 1 ||... | PHP | Baocms/Lib/Action/Member/DianpingAction.class.php | ksyydream/api_llx | apache-2.0 | 23,822 | 501 | codeparrot/github-code |
87ae004049498a0691f7ee7397474fdf0c1057e99f418f6095d560e17621ec7b | /**
*/
package com.amazonaws.blox.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.blox.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jacks... | Java | frontend-service-client/src/main/java/com/amazonaws/blox/model/transform/EnvironmentRevisionJsonUnmarshaller.java | wjbuys/blox | apache-2.0 | 2,966 | 78 | codeparrot/github-code |
c972c8d2ba48e51a4969db012e3e461a35d5c39eab41006646d302878a46d768 | /*
* Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <spi.h>
#include <nrfx_spi.h>
#define LOG_DOMAIN "spi_nrfx_spi"
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(spi_nrfx_spi);
#include "spi_context.h"
struct spi_nrfx... | C | drivers/spi/spi_nrfx_spi.c | explora26/zephyr | apache-2.0 | 8,261 | 318 | codeparrot/github-code |
71323d50d5944ac7eb690545df75b0d69d5b7a22fbe0c891a491d6fd1d94626b | /*
* Copyright 2005-2008 WSO2, Inc. (http://wso2.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | components/identity/org.wso2.carbon.identity.provider/src/main/java/org/wso2/carbon/identity/provider/openid/handlers/OpenIDExtensionFactory.java | wattale/carbon-identity | apache-2.0 | 2,936 | 78 | codeparrot/github-code |
0cdd84ed3a67ea23c7d1fd6670e3f40aa988385537b59763260bbb9d9f60b68e | package net.sourceforge.jwbf.core.contentRep;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson... | Java | src/main/java/net/sourceforge/jwbf/core/contentRep/SearchResultList.java | buddies2705/jwbf | apache-2.0 | 2,899 | 109 | codeparrot/github-code |
96cb0a151c09d0c6e3fc704810dc90cf05851cd084341aecf4ee0f1f58005a6d | // GenericsNote: Converted.
/*
* Copyright 2003-2004 The Apache Software 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-... | Java | src/java/org/apache/commons/collections15/map/LinkedMap.java | megamattron/collections-generic | apache-2.0 | 8,788 | 277 | codeparrot/github-code |
a9493588b8ade48a17ea7a2426f589637a76d68a50fdb0ff0f5560b8696c988c | /*
* 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-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerAddressOverrideTest.java | Fabryprog/camel | apache-2.0 | 9,341 | 196 | codeparrot/github-code |
772541e077f9282656216fec8018b15700bd0a2b15f1d5e815ba98a860521f30 | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace RequestReduce.Reducer
{
public class SpriteWriter : IDisposable
{
public Bitmap SpriteImage { get; private set; }
private readonly Graphics drawingSurface = null;
... | C# | RequestReduce/Reducer/SpriteWriter.cs | mwrock/RequestReduce | apache-2.0 | 2,021 | 70 | codeparrot/github-code |
76d93537a324668ba162a7852202097a365b3b77119fb715b90d73e351c8eb4a | # Copyright 2014: Mirantis 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 | rally/deploy/engines/fuel.py | varunarya10/rally | apache-2.0 | 6,902 | 214 | codeparrot/github-code |
425bb2416c7f00a3cade84dc67edfc5ad35c0119cde1d63503ec724298be4cdf | package server
//go:generate bash -c "mkdir -p $GOPATH/src/github.com/infobloxopen/themis/pdp-service && protoc -I $GOPATH/src/github.com/infobloxopen/themis/proto/ $GOPATH/src/github.com/infobloxopen/themis/proto/service.proto --go_out=plugins=grpc:$GOPATH/src/github.com/infobloxopen/themis/pdp-service && ls $GOPATH/... | GO | pdpserver/server/server.go | vasili-v/themis | apache-2.0 | 14,094 | 571 | codeparrot/github-code |
27c60694fae4084a588b9795e95b98544b8f3a897495d01ce0a9e4dfdda47f41 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/ml/src/main/java/org/apache/ignite/ml/tree/randomforest/data/TreeNode.java | ilantukh/ignite | apache-2.0 | 4,686 | 201 | codeparrot/github-code |
4f8ab956f8f36eff037d20facd0810420169acb4695b9cb57f334fcc47f174ab | /*
Copyright 2011 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 in writing, software
di... | GO | cmd/camput/remove.go | jhuckabee/camlistore | apache-2.0 | 1,177 | 49 | codeparrot/github-code |
fed402379942d4b541944c71f604132eabbacd715fff0fa78597c47d7e9b3f8f | #region Copyright � 2001-2003 Jean-Claude Manoli [jc@manoli.net]
/*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the author(s) be held liable for any damages arising from
* the use of this software.
*
* Permission is granted to anyone to use this software for an... | C# | src/FSharp.Formatting.CSharpFormat/FSharpFormat.cs | tpetricek/FSharp.Formatting | apache-2.0 | 2,594 | 91 | codeparrot/github-code |
046af611684841271fbcb12d4d0f83214826f044bc041c38b632f9562a9e7029 | package com.hsj.http.interceptor;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* @Author:HSJ
* @E-mail:shengjunhu@foxmail.com
* @Date:2017/08/07 23:31
* @Class:LogInterceptor
* @Description:拦截网络日志
*/
public class LogInterceptor implements Intercept... | Java | library/http/src/main/java/com/hsj/http/interceptor/LogInterceptor.java | hushengjun/FastAndroid | apache-2.0 | 899 | 36 | codeparrot/github-code |
fc719bc33400243f602c658f6b489053603a21297f8d3264215a2edd1685fe66 | package at.marki.Server.Servlet;
/**
* Created by marki on 29.10.13.
*/
import at.marki.Server.Data.Data;
import at.marki.Server.Data.Message;
import at.marki.Server.Gui.ServerManagementGui;
import net.sf.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.se... | Java | src/at/marki/Server/Servlet/ServletGetNewData.java | markini/ServiceMonitoringTestServer | apache-2.0 | 2,365 | 69 | codeparrot/github-code |
ea63e15b93a2aefe49a540341b1aa199b1578283256083d4758224da9ccac276 | // 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.Syntax;
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeA... | C# | src/Compilers/CSharp/Test/Semantic/IOperation/IOperationTests_IDynamicInvocationExpression.cs | paulvanbrenk/roslyn | apache-2.0 | 47,482 | 1,256 | codeparrot/github-code |
c68b8ef8d3b3e54a59e5166c933ebd4b4cf9ce90f6290faff663bef0a18b1f3a | package com.github.czyzby.lml.parser.impl.tag.actor;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.impl.tag.AbstractActorLmlTag;
import com.github.czyzby.lml.parser.tag.LmlActorBui... | Java | src/main/java/com/github/czyzby/lml/parser/impl/tag/actor/ActorStorageLmlTag.java | tommyettinger/SquidSetup | apache-2.0 | 2,456 | 65 | codeparrot/github-code |
21958531f12ef266e81559107acbfda65e911e6c4540dc29038caf7030675483 | # Theme Changer plugin for Redmine
# Copyright (C) 2010 Haruyuki Iida
#rev
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later versi... | Ruby | plugins/redmine_theme_changer/db/migrate/0001_create_theme_changer_user_settings.rb | RedAlliances/RedminePM2 | apache-2.0 | 1,106 | 35 | codeparrot/github-code |
8b02e80e1cd2c9a8b55ac3ce41c1044db1d4559ccbbb8147ecdf92791366d8ab | // 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 org.jetbrains.java.decompiler.modules.decompiler;
import org.jetbrains.java.decompiler.code.cfg.BasicBlock;
import org.jetbrains.java.decompiler.main.DecompilerContext;
i... | Java | plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/SequenceHelper.java | google/intellij-community | apache-2.0 | 8,972 | 312 | codeparrot/github-code |
ae00c39291b6b6bae1749bdfda62b19aa1b805cdf91f4e5c4f621baddbe540e3 | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | C++ | src/cpp/rtps/history/TopicPayloadPool_impl/Preallocated.hpp | eProsima/Fast-DDS | apache-2.0 | 2,449 | 92 | codeparrot/github-code |
d67c32765c69a66b477e9fb5a8541432cc865f3faeeb60dcb2e877d3bbdeb39f | package org.jetbrains.plugins.scala.codeInspection.collections
import com.intellij.codeInspection.ProblemHighlightType
import org.jetbrains.plugins.scala.codeInspection.InspectionBundle
import org.jetbrains.plugins.scala.extensions.{ChildOf, ExpressionType}
import org.jetbrains.plugins.scala.lang.psi.api.expr.{ScExpre... | Scala | src/org/jetbrains/plugins/scala/codeInspection/collections/RedundantCollectionConversionInspection.scala | igrocki/intellij-scala | apache-2.0 | 1,337 | 35 | codeparrot/github-code |
45f9acc8fdf24c46a025408d94191f14ea921fdc2ceea36e34417d737db4e5cd | /*
*
* Copyright 2011 Luca Molino (molino.luca--AT--gmail.com *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/multipart/OHttpMultipartContentInputStream.java | nengxu/OrientDB | apache-2.0 | 3,348 | 129 | codeparrot/github-code |
85c3a14f114e1afb4f42c69634c97ffc6e2b1a79272b98f6de49fa6a1d6c1f2f | #!/usr/bin/python
import socket
import struct
import sys
import zlib
from google.protobuf import service
import rpc_pb2
import rpcservice_pb2
def encode(message):
body = "RPC0" + message.SerializeToString()
cksum = zlib.adler32(body)
return "".join((struct.pack(">l", len(body) + 4), body, struct.pack(">... | Python | cetty-zurg/client/rpc.py | frankee/cetty2 | apache-2.0 | 3,571 | 99 | codeparrot/github-code |
afb9b59f1c9cdd4bcda6cf754ea9f2ce2123bd9b352b065219b8a91efe3eef8d | /**
*
*/
package com.github.nest.arcteryx.validation.oval.configuration.wrapper;
import java.util.ArrayList;
import java.util.List;
import net.sf.oval.configuration.pojo.elements.MethodConfiguration;
import net.sf.oval.configuration.pojo.elements.MethodPostExecutionConfiguration;
import net.sf.oval.confi... | Java | arcteryx-validation-oval/src/main/java/com/github/nest/arcteryx/validation/oval/configuration/wrapper/MethodConfigurationWrapper.java | bradwoo8621/nest-old | apache-2.0 | 4,384 | 174 | codeparrot/github-code |
88d2d12f96087ec16415328431e9005bc0e6ca796b085fc41f5566692b1a4930 | /*
* Copyright 2017-2021 Crown Copyright
*
* 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 | store-implementation/parquet-store/src/main/java/uk/gov/gchq/gaffer/parquetstore/serialisation/impl/LongParquetSerialiser.java | gchq/Gaffer | apache-2.0 | 2,328 | 76 | codeparrot/github-code |
3021575229a1bec7276ea51a0a7151f1ac38731cb734c1676329ab1f700584e4 | package com.sap.iot.starterkit.mqtt.ingest.json;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParser;
import com.sap.iot.starterkit.mqtt.ingest.type.Authorization;
import com.sap.iot.starterkit.mqtt.ingest.type.Configuration;
import com.sap.iot.starterkit.mqtt.ingest.type... | Java | neo/examples/java/com.sap.iot.starterkit.mqtt.ingest/src/main/java/com/sap/iot/starterkit/mqtt/ingest/json/GsonFactory.java | iwonahahn/iot-starterkit | apache-2.0 | 1,386 | 36 | codeparrot/github-code |
0c2ba90f4ab8618a1b764e6df0d7db7a79b1351e5095b9b76ae69edac58a596f | /*
* Copyright [2005] [University Corporation for Advanced Internet Development, 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
*... | Java | src/main/java/org/opensaml/saml2/metadata/impl/RoleDescriptorUnmarshaller.java | danpal/OpenSAML | apache-2.0 | 4,817 | 102 | codeparrot/github-code |
6ac4fba2875a282bc4d070ffd0db12ba4a1c2571e51ed659f066ba6a1077498d | /*
Copyright 2016 TUGraz, http://www.tugraz.at/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
This project has received funding from the European Union’s Horizon
2020 research and innovation programme under grant agreement ... | C# | UnitTestPlayerProfiler/TestCasePP.cs | RAGE-TUGraz/PlayerProfilingAsset | apache-2.0 | 12,938 | 349 | codeparrot/github-code |
c03e110c596cb22a09388c79f0dfaf2c6930990179668c5bcbfb795c50f355ee | package org.testng.xml;
import java.io.IOException;
import java.util.List;
import java.util.Properties;
import org.testng.collections.Lists;
import org.testng.internal.PackageUtils;
import org.testng.internal.Utils;
import org.testng.reporters.XMLStringBuffer;
/** This class describes the tag <code><package></c... | Java | testng-core-api/src/main/java/org/testng/xml/XmlPackage.java | krmahadevan/testng | apache-2.0 | 3,962 | 139 | codeparrot/github-code |
2af9d853993c267c67cff1e3d3fc8ec0f5a33c80d18ae58315d34f058c7f95f6 | #!/bin/bash
# Copyright 2018 The OpenSDS 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 ... | Shell | install/devsds/lib/opensds.sh | wisererik/opensds | apache-2.0 | 3,530 | 113 | codeparrot/github-code |
a4650f7976d8f3e4cd4c1e3f90ab6d7f3fc01b3195db44c34c02f3584162be45 | /**
* *****************************************************************************
* Copyright (c) 2016
*
* 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/lic... | Java | src/main/java/com/exalttech/trex/ui/views/streams/builder/PayloadType.java | exalt-tech/trex-stateless-gui | apache-2.0 | 4,260 | 141 | codeparrot/github-code |
fdfe34a4bd38d6a91e5a1d1aba4520d1a8d08db4f1b0b36a41f26c3e290b5883 | /*
* Copyright (c) 2010-2016 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskSubtasksAndThreadsTabPanel.java | PetrGasparik/midpoint | apache-2.0 | 6,747 | 156 | codeparrot/github-code |
68baf55599a0941f471fc008f36b60c14a2080161eec66d2111211f6befc4e22 | // Copyright 2012 Cloudera 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 in wr... | C++ | be/src/exec/hdfs-rcfile-scanner.cc | kapilrastogi/Impala | apache-2.0 | 20,832 | 572 | codeparrot/github-code |
b0ca4dd608e3c55692301fa6f61da9e7fbaf83d85a0766d9304f52a3b56a6ed1 | /**
* 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 | pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/FloatSchema.java | yahoo/pulsar | apache-2.0 | 3,101 | 109 | codeparrot/github-code |
005c6c405093320e3705a090fa2e46829bce15481fcbe4fd7ca677eb2df2d210 | #! /usr/bin/env bash
# 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... | Shell | bin/bootstrap_hdfs.sh | joshelser/accumulo | apache-2.0 | 3,387 | 85 | codeparrot/github-code |
138ace7b7ddd6a7eb650771830aca1e69188d313c3e6725e60c1e242c409c55f | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/transform/DeleteScheduledActionResultStaxUnmarshaller.java | flofreud/aws-sdk-java | apache-2.0 | 2,397 | 70 | codeparrot/github-code |
0790b922577a6bf4a065a2762c99e0e01402c7045e8ee97df49a18ae663716fc | using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
namespace ZocMonLib
{
public class RecordReduce : IRecordReduce
{
private readonly ISystemLogger _logger;
private readonly IBucketSeed _bucketSeed;
private readon... | C# | source/ZocMonLib/Framework/RecordReduce.cs | ZocDoc/ZocMon | apache-2.0 | 10,002 | 227 | codeparrot/github-code |
15f9fae04d131249d67bd8e3ddc1c6d719a24bd4d9241e3a5cdb867824e5fbdc | /*
* Copyright 2010 Henry Coles
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | pitest/src/test/java/org/pitest/mutationtest/engine/gregor/TestGregorMutater.java | roberth/pitest | apache-2.0 | 11,542 | 382 | codeparrot/github-code |
8e81e7a3668f4274d39a43ecc799f146c0df55654ff2479bd75cc6c5ee838ad4 | /**
* @license Copyright 2016 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | JavaScript | lighthouse-core/gather/gatherers/cache-contents.js | mixed/lighthouse | apache-2.0 | 2,011 | 60 | codeparrot/github-code |
446ce4abd016183ea9edd75822fee859f15d9d44e1dae9302828812c51b82a34 | /*
* 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 | indexing-service/src/main/java/org/apache/druid/indexing/overlord/http/TotalWorkerCapacityResponse.java | monetate/druid | apache-2.0 | 2,108 | 63 | codeparrot/github-code |
2e270c1e586524f3f109194de057c2499c83199c76601478cd50cf2199b21289 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Autofac;
using DotNetCqs;
using DotNetCqs.Autofac;
using DotNetCqs.Autofac.Storage;
namespace TestApp
{
class Program
{
private static IContainer _container;
... | C# | Examples/Autofac/Program.cs | jmptrader/dotnetcqs | apache-2.0 | 1,074 | 43 | codeparrot/github-code |
4c6927d6683a7fd2d9e8bf8cf2c104836c5e673bc16d8213dfe0fab84754397c | package tachyon.master;
import java.io.IOException;
import org.apache.log4j.Logger;
import tachyon.Constants;
import tachyon.UnderFileSystem;
import tachyon.util.CommonUtils;
/**
* Class that periodically looks for completed edit logs to update metadata of failover nodes.
*/
public class EditLogProcessor implemen... | Java | packages/tachyon-0.5.0/core/src/main/java/tachyon/master/EditLogProcessor.java | gsoundar/mambo-ec2-deploy | apache-2.0 | 3,166 | 85 | codeparrot/github-code |
9fffcd67d87729abd99cc387ffa29f1a97c9095e2671c16ed2f16bbcd82ab9da | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | Java | waltz-service/src/main/java/com/khartec/waltz/service/svg/SvgDiagramService.java | rovats/waltz | apache-2.0 | 3,000 | 89 | codeparrot/github-code |
fbb1f1ea9b7596669a2d7522421df41fde685b61cc8103088cad061894e946f5 | #include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_rds.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, RdsDeleteDBInstanceResponse... | C++ | aliyun-api-rds/2014-08-15/src/ali_rds_delete_db_instance.cc | zcy421593/aliyun-openapi-cpp-sdk | apache-2.0 | 3,392 | 107 | codeparrot/github-code |
7a893caa73e5e5f0da50b8cbba78b4ba959887f368db935dfff4167dd868e4a2 | /*
* fatcache - memcache on ssd.
* Copyright (C) 2013 Twitter, 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 require... | C | src/fc_request.c | twitter/fatcache | apache-2.0 | 15,496 | 612 | codeparrot/github-code |
7055745dabae34212f6d78bf44c45da2548e0868f8fe5f274fc0769527821931 | /*!
* SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2013 SAP AG. All rights reserved
*/
jQuery.sap.declare("sap.suite.ui.commons.NumericTileRenderer");
jQuery.sap.require("sap.ui.core.Renderer");
jQuery.sap.require("sap.suite.ui.commons.InfoTileRenderer");
/**
* @class NumericTile rendere... | JavaScript | src/org.scn.community.basics/os/sapui5/suite/META-INF/resources/sap/suite/ui/commons/NumericTileRenderer-dbg.js | YunuSahin/sdk | apache-2.0 | 1,941 | 45 | codeparrot/github-code |
b8750eaab07d72c247eb6be564ead22ff3d101d7f56ce7e008410e3e1d11de09 | /** @file
Master header files for DxeCorePerformanceLib instance.
This header file holds the prototypes of the Performance and PerformanceEx Protocol published by this
library instance at its constructor.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompan... | C | third_party/edk2/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h | google/google-ctf | apache-2.0 | 3,414 | 85 | codeparrot/github-code |
f44ea7af78de1a967d19e9eeacd7432508035612811330aa0218233530fb90af | /*
* This file is part of "SnipSnap Radeox Rendering Engine".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://radeox.org/ for updates and contact.
*
* --LICENSE NOTICE--
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | Java | rwiki/rwiki-util/radeox/src/java/org/radeox/macro/table/MinFunction.java | harfalm/Sakai-10.1 | apache-2.0 | 2,158 | 91 | codeparrot/github-code |
d56ad0960a7e6daa9fbd83ba4ee98711cd59fbb9d5c79d4184b13dffa77dc664 | /*
* Copyright 2015 Terracotta, Inc., a Software AG company.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | src/test/java/org/terracotta/offheapstore/disk/storage/portability/PersistentSerializablePortabilityTest.java | codeaudit/offheap-store | apache-2.0 | 1,897 | 57 | codeparrot/github-code |
c71a75cea6778de0a5afd4fc67f8fb79277bab3c512a99f93abdafac97d3e223 | /*
* 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 | exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/SortPrel.java | arina-ielchiieva/drill | apache-2.0 | 6,579 | 171 | codeparrot/github-code |
382b84d5a454bb01dd74b8e7992554ce94a49212fbd5d2ffa7aa6ffdabf43d3a | package ir
import (
"encoding/json"
"reflect"
)
func (a *Block) MarshalJSON() ([]byte, error) {
var result typedBlock
result.Stmts = make([]typedStmt, len(a.Stmts))
for i := range a.Stmts {
tpe := reflect.Indirect(reflect.ValueOf(a.Stmts[i])).Type().Name()
result.Stmts[i] = typedStmt{
Type: tpe,
Stmt: ... | GO | internal/ir/marshal.go | open-policy-agent/opa | apache-2.0 | 4,250 | 134 | codeparrot/github-code |
16e143646a21c8483baa629f497625d648f9e86794bc9f66d04fdaed7aacd07f | /*
* 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 | oak-upgrade/src/test/java/org/apache/jackrabbit/oak/upgrade/CopyVersionHistoryTest.java | ieb/jackrabbit-oak | apache-2.0 | 11,676 | 282 | codeparrot/github-code |
e4d9dc3ce2aa029619240c15925aaff8484a096439a48cb73f33d01324909092 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | GO | src/remote.go | odeke-em/drive | apache-2.0 | 30,099 | 1,226 | codeparrot/github-code |
aa76b15d3647bc3866a5b0027eda90a9965ff6a94e22d88cd1b2e29ef560e2af | using ICSharpCode.NRefactory.CSharp;
using System.Collections.Generic;
using System.Linq;
namespace Bridge.Translator
{
public class EmptyLambdaDetecter : DepthFirstAstVisitor
{
public bool Found
{
get;
set;
}
public override void VisitIfElseStatement(If... | C# | Compiler/Translator/Utils/EmptyLambdaFixer.cs | AndreyZM/Bridge | apache-2.0 | 9,052 | 287 | codeparrot/github-code |
e9a0f34a75966bbd434d7ce65c05b8cddae010461f5ce5377d5d91832123472d | package cyclops.reactive.collections.mutable;
import com.oath.cyclops.ReactiveConvertableSequence;
import com.oath.cyclops.data.ReactiveWitness.queue;
import com.oath.cyclops.data.collections.extensions.CollectionX;
import com.oath.cyclops.data.collections.extensions.lazy.LazyQueueX;
import com.oath.cyclops.data.colle... | Java | cyclops-reactive-collections/src/main/java/cyclops/reactive/collections/mutable/QueueX.java | aol/cyclops | apache-2.0 | 35,195 | 1,086 | codeparrot/github-code |
6661ef6568a52cf16a4b4f2a52274d424478030a3bd6d404bcb4ee742a8bcb68 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | Python | sdks/python/apache_beam/io/gcp/gcsio.py | jbonofre/beam | apache-2.0 | 31,218 | 906 | codeparrot/github-code |
9439816cede660bc0a62f458d2d2e16e4050c43424556680b5d48241fc817255 | /*
// 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/common/Locale.cpp | LucidDB/luciddb | apache-2.0 | 4,245 | 181 | codeparrot/github-code |
4dc7adfc64f3af758b0c420ed0f48029221f091c11044c59657f3ac330643c4a | package org.jboss.resteasy.spi;
import javax.ws.rs.core.Response;
/**
* Thrown by RESTEasy when HTTP Unauthorized (403) is encountered
*
* @deprecated Replaced by javax.ws.rs.ForbiddenException in jaxrs-api module.
*
* @see jaxrs-api (https://jcp.org/en/jsr/detail?id=339)
* @see javax.ws.rs.Forbidde... | Java | resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/ForbiddenException.java | psakar/Resteasy | apache-2.0 | 1,108 | 52 | codeparrot/github-code |
e03d26efa3b9590142f0d54c83a5e0b8f393ef2587b543fe2bf9a0da7328c790 | /*
* 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-spring-main/src/test/java/org/apache/camel/spring/SpringMainStartFailedIssueTest.java | DariusX/camel | apache-2.0 | 1,565 | 40 | codeparrot/github-code |
906b0136c5e60fd6a93e2c2ba34ba9b91b47d87b6fd744718280170004c7f510 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | JavaScript | desktop/core/src/desktop/js/parse/sql/calcite/sqlParseSupport.js | cloudera/hue | apache-2.0 | 49,769 | 1,467 | codeparrot/github-code |
9518259e7577b52efd70a514e70b3d272d0329f1106d97109366a6bcddb873b0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>ZkRegionMergeCoordination xref</title>
<link t... | HTML | thirdparty/hbase-1.1.1.2.3.0.0-2557/docs/xref/org/apache/hadoop/hbase/coordination/ZkRegionMergeCoordination.html | scalingdata/Impala | apache-2.0 | 47,052 | 340 | codeparrot/github-code |
da4559e899fdfbeece44433f618070df5fa7c79b363ff2274ee192b66c07c53d | /*
// 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/common/AtomicCounter.h | LucidDB/luciddb | apache-2.0 | 1,411 | 61 | codeparrot/github-code |
191503175dffb1ca336d092a8295b7e4513b131c9df7df4fb88a56b7652e48f7 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | C# | Brokerages/Tradier/TradierBrokerage.cs | bizcad/LeanITrend | apache-2.0 | 87,566 | 1,998 | codeparrot/github-code |
1c204fd8d7d4fc4bbc846e029edb5cdd6a4d3bc12e5178317b545113e1dfd16b | // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | Rust | src/librustrt/at_exit_imp.rs | P1start/rust | apache-2.0 | 2,061 | 66 | codeparrot/github-code |
cb430a560e335fd67373397db1a0a2b64257692a7b7877f637a29cffcbcccd18 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 ... | Java | kettle-plugins/formats/src/main/java/org/pentaho/big/data/kettle/plugins/formats/impl/avro/input/AvroInput.java | pentaho-jrice/big-data-plugin | apache-2.0 | 5,300 | 124 | codeparrot/github-code |
fae9142334f60e3a56467619e4cc9806a312098d3e3c1acf2fcb1fd0f0477bbf | /*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | Java | impl/src/main/java/org/jboss/weld/annotated/slim/backed/BackedAnnotatedCallable.java | manovotn/core | apache-2.0 | 3,292 | 98 | codeparrot/github-code |
94d01577abfdd6d4087a0088fcfc898378b8ea180537d57eb5a1f21e1cabc882 | package com.payneteasy.superfly.security;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.*;
import com.payneteasy.superfly.api.OTPType;
import com.payneteasy.superfly.api.SSOUser;
import org.easymock.EasyMock;
import org.junit.Assert;
import org.... | Java | superfly-spring-security/src/test/java/com/payneteasy/superfly/security/SuperflyUsernamePasswordAuthenticationProviderTest.java | rpuch/superfly | apache-2.0 | 3,898 | 106 | codeparrot/github-code |
8a577a39e8267580aca59990c2654d15c90dc1ed2ac2069be510ceaca560e584 | /*
*
* Copyright 2020: KrnSaurabh
*
* 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 | resilience4j-vavr/src/test/java/io/github/resilience4j/bulkhead/VavrBulkheadTest.java | RobWin/circuitbreaker-java8 | apache-2.0 | 13,508 | 316 | codeparrot/github-code |
999a4db8604a743ff226a69619cb45fa1fe95ceb30092e50043eebb780176bb9 | /**
* Copyright 2016 Nikita Koksharov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | redisson/src/main/java/org/redisson/jcache/JCacheMBeanServerBuilder.java | ContaAzul/redisson | apache-2.0 | 3,991 | 122 | codeparrot/github-code |
b16198cd8ea4bcb36a16884c73302a3f28d41c76a10abb6d6d553fb226001363 | /**
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript | test/plugins/test-plugins-multi-version.js | keymetrics/trassingue | apache-2.0 | 2,337 | 77 | codeparrot/github-code |
7bd4f9cf156b806e13361101183acf502173e20366befec19ddc5f2771144b97 | package ca.uhn.fhir.jpa.provider;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.stringContainsInOrder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
im... | Java | hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu1Test.java | ismael-sarmento-jr/hapi-fhir | apache-2.0 | 23,860 | 578 | codeparrot/github-code |
66cd98b11d699e8049a64106b483998c3b9e4f07609139c5e0a06a10d01c7cbc | /*
* Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | Java | src/org/traccar/model/Statistics.java | AnshulJain1985/Roadcast-Tracker | apache-2.0 | 3,016 | 131 | codeparrot/github-code |
af5dc4b7ac2ffed580746abcdec865d186f7be3ed1c4debd2b587438cb2bb720 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | extensions/session-testing-war/src/main/java/org/apache/geode/modules/session/functions/GetSessionDestroyedCount.java | pivotal-amurmann/geode | apache-2.0 | 1,385 | 31 | codeparrot/github-code |
58d0354c7811bde9cb2aef60a341c7d39ef49d4861d6a1d0e4c1400a0ea0c2f6 | /*
* role: global route setup for app
* desc: defines & loads all routes supported in the route
*/
(function () {
'use strict';
// get a reference to the app module
var app = angular.module('app');
// put all routes into global constant
app.constant('routes', getRoutes());
// config the routes & thei... | JavaScript | 04.Hook into Office 365 and SharePoint APIs with SPAs/src/FinishedProject/SpResearchTracker/App/config.route.js | rajendra1809/DevCampTraining | apache-2.0 | 1,292 | 53 | codeparrot/github-code |
4999ce4dc16273b21805c689617e899034b1a045ec3cd2870853dfee5404b3ea | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgeRemoveTargetsIT.java | apache/camel | apache-2.0 | 3,817 | 97 | codeparrot/github-code |
406e9e7e4a16088c516c624970b4c9428a4def80096e3f8424f48e7b5e2a1caa | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
# Copyright (c) 2011 Piston Cloud Computing, Inc
# Copyright (c) 2012 University Of Minho
# Copyright (c) 2013 Hewlett-Pa... | Python | nova/virt/libvirt/guest.py | JioCloud/nova | apache-2.0 | 6,242 | 196 | codeparrot/github-code |
5bc5b74f23680542b3ff93126d9d819f7cb562097347b83e45a105273dd50580 | package test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
/**
* Test parameters passed to constructors
*
* @author cbeust
*/
public class ParameterConstructorTest {
private String m_strin... | Java | testng-core/src/test/java/test/ParameterConstructorTest.java | krmahadevan/testng | apache-2.0 | 1,233 | 52 | codeparrot/github-code |
41d562e4169bd0cd5364234587800214e7ba91eeae30c4be17eb8325e50935f6 | <?
if (!check_perms('site_admin_forums')) {
error(403);
}
if (empty($_GET['postid']) || !is_number($_GET['postid'])) {
die();
}
$PostID = $_GET['postid'];
if (!isset($_GET['depth']) || !is_number($_GET['depth'])) {
die();
}
$Depth = $_GET['depth'];
if (empty($_GET['type']) || !in_array($_GET['type'], array('for... | PHP | sections/forums/ajax_get_edit.php | tisnats/tisnats.com | apache-2.0 | 1,884 | 77 | codeparrot/github-code |
278e6fa70c7976ea08bbf925cded25476bffd16077e480222f655f8aa4153116 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala | cin/spark | apache-2.0 | 55,078 | 1,290 | codeparrot/github-code |
9e45a8a528c8b3ac5413c5552ea786df964bb79fc88a6435c86fbe89ce081dcb | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtils.java | tgroh/incubator-beam | apache-2.0 | 12,005 | 291 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.