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 |
|---|---|---|---|---|---|---|---|---|
a7285b1c56c6a6799109005117d0a51a2337962e9c8ff5f7ef1c1fc04c3a2b83 | /**
* Copyright (C) 2012 enStratus Networks 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.a... | Java | src/main/java/org/dasein/cloud/azure/AzureService.java | vladmunthiu/dasein-cloud-azure-GR-fork | apache-2.0 | 1,868 | 59 | codeparrot/github-code |
0429fdb7264e75fa1cf0da4ea58fdee83f92fcd85ad873546155fcf4fbb8e216 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/svn4idea/src/org/jetbrains/idea/svn/branchConfig/SvnLoadedBranchesStorage.java | retomerz/intellij-community | apache-2.0 | 5,676 | 144 | codeparrot/github-code |
04e0b2893f6cad21c0d438c87c9267fb36f35d8ec8d6dd392e0af2f0bc92ae56 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | services/core/java/com/android/server/job/controllers/JobStatus.java | xorware/android_frameworks_base | apache-2.0 | 26,613 | 683 | codeparrot/github-code |
d1a38d75684aefc0096c5033cebf89d2929d076379139dc0cf15b59c92ccf921 | package com.chenlb.mmseg4j;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PushbackReader;
import java.io.Reader;
import java.util.LinkedList;
import java.util.Queue;
/**
* Reader 流的分词(有字母,数字等), 析出中文(其实是 CJK)成句子 {@link Sentence} 再对 mmseg 算法分词.<br/>
*
* 非线程安全
* @author chenlb 2009-9-20下... | Java | src/main/java/com/chenlb/mmseg4j/MMSeg.java | q474818917/mmseg4j | apache-2.0 | 9,274 | 382 | codeparrot/github-code |
21f85d300521cf75777fc1627fea1ff13192f0be4b557a0d9fa3b15bdfc05485 | from rest_framework import generics
from rest_framework import permissions as drf_permissions
from rest_framework.exceptions import NotFound
from framework.auth.oauth_scopes import CoreScopes
from osf.models import (
Guid,
BaseFileNode,
FileVersion,
QuickFilesNode
)
from api.base.exceptions import Go... | Python | api/files/views.py | chennan47/osf.io | apache-2.0 | 5,890 | 160 | codeparrot/github-code |
1c60ba56ac2d7815a738e9f16a54c98726d0e47acdf466e746fd2f2e047a3c0d | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/admin_policy.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/extensions/extension.h"
#include... | C++ | src/chrome/browser/extensions/admin_policy.cc | plxaye/chromium | apache-2.0 | 3,888 | 115 | codeparrot/github-code |
ec96af8fd0e9e00bdb16fb76c6a3135d460329a7d7788d1313a3f7e718553fc7 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | core/src/test/java/org/elasticsearch/index/mapper/ParentFieldMapperTests.java | ricardocerq/elasticsearch | apache-2.0 | 9,129 | 170 | codeparrot/github-code |
4723057d7741f9aca6e7daec4c153ab025a7d24ae7d9a5add0b22e1a3d147dc2 | /**
* Project: dubbo.registry.server-1.1.0-SNAPSHOT
*
* File Created at 2009-12-27
* $Id: DatabaseStatusChecker.java 181192 2012-06-21 05:05:47Z tony.chenl $
*
* Copyright 2008 Alibaba.com Croporation Limited.
* All rights reserved.
*
* This software is the confidential and proprietary information o... | Java | dubbo-admin/src/main/java/com/alibaba/dubbo/registry/common/status/DatabaseStatusChecker.java | xiaoyuQi/JavaProject | apache-2.0 | 3,229 | 100 | codeparrot/github-code |
018699c664fd9b7fc5168b9ba3829fe4a4cc5784eafeb5b8c6ee98872f60ca6b | package com.helpplusapp.amit.helpplus;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.Log;
import android.view.LayoutInflater;
... | Java | app/src/main/java/com/helpplusapp/amit/helpplus/PostsFragment.java | amitsri20/Udacity-Capstone | apache-2.0 | 4,573 | 129 | codeparrot/github-code |
5e44d43d6220b10093db09302b6827cc8606946b72c644cd29288afbb33bff85 | package jp.gr.java_conf.hhiroshell.beehive4j;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import java.net.MalformedURLException;
import java.net.URL;
import org.junit.Before;
import org.junit.Test;
import jp.gr.java_conf.hhiroshell.beehive4j.BeehiveContext;
import jp.gr.java_c... | Java | src/test/java/jp/gr/java_conf/hhiroshell/beehive4j/BeehiveContextTest.java | charlier-shoe/beehive-client | apache-2.0 | 1,067 | 41 | codeparrot/github-code |
ec7e775f81aeb98fd03f977e63ac9546f7dc77c2c082f9d01367d475043b016f | /*
* MindTouch Dream - a distributed REST framework
* Copyright (C) 2006-2011 MindTouch, Inc.
* www.mindtouch.com oss@mindtouch.com
*
* For community documentation and downloads visit wiki.developer.mindtouch.com;
* please review the licensing section.
*
* Licensed under the Apache License, Version 2.... | C# | src/mindtouch.core/DreamCoreUtil.cs | yurigorokhov/DReAM | apache-2.0 | 7,699 | 212 | codeparrot/github-code |
64e9b03cabb9f6286f036f62282fa14ed67ad1aa84eda7a11e9d06da0ff076c8 | /*
* 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 ... | C | src/avroappend.c | novator24/zavro-c | apache-2.0 | 4,004 | 166 | codeparrot/github-code |
de3ac3eaf525720a4d614ff329ffcdf700d5b74f65272b02cec5a86a53d43c3b | /*
*
* Copyright 2015 Netflix, 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 ap... | Java | genie-client/src/main/java/com/netflix/genie/client/ApplicationServiceClient.java | chen0031/genie | apache-2.0 | 23,039 | 621 | codeparrot/github-code |
aa12bf5ad240526a2c14cb416e5e49c648faa1e7cf6041e4039169307fd3edf6 | package nl.rivm.cib.episim.mas.eve;
import static java.lang.System.currentTimeMillis;
import java.io.IOException;
import java.math.BigDecimal;
import java.net.URI;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.measure.Quantity;
import javax.measu... | Java | java/episim-mas/src/main/java/nl/rivm/cib/episim/mas/eve/ReplicatorAgentImpl.java | krevelen/rivm-episim | apache-2.0 | 12,186 | 395 | codeparrot/github-code |
1640786ea8b0e582ea17c7b84e36f020871891f534f305a7e5707d8f6065925e | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | Java | dcm4jboss-all/tags/DCM4JBOSS_2_7_3/dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java | medicayun/medicayundicom | apache-2.0 | 21,530 | 619 | codeparrot/github-code |
96cc5f91fad37e16144875ebe5735ad9966c21bceca281c3f3b55938d13cdbeb | package wint.mvc.view.types.json;
import java.io.Serializable;
import wint.help.biz.result.Result;
import wint.help.biz.result.ResultCode;
public class JsonResult implements Serializable {
private static final long serialVersionUID = -4233795873654775539L;
private boolean success;
private int co... | Java | wint-framework/src/main/java/wint/mvc/view/types/json/JsonResult.java | lengyubing/wint | apache-2.0 | 1,181 | 63 | codeparrot/github-code |
dd256a64aa15819bc67cc35078105c9a99b7b253d79d2bb06c0afc5f26142366 | package com.beecavegames.util;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public class ValueFuture<T> implements Future<T> {
private final T value;
public ValueFuture(final T value) {
this... | Java | core/src/main/java/com/beecavegames/util/ValueFuture.java | sgmiller/hiveelements | apache-2.0 | 805 | 40 | codeparrot/github-code |
b1a2be55cfbe92fecc895cda992a1faa6d076241078224f8e49326cb8c17ee61 | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain ... | C# | src/Senparc.Weixin.MP/Senparc.Weixin.MP/AdvancedAPIs/Custom/CustomApi.cs | jiehanlin/WeiXinMPSDK | apache-2.0 | 42,842 | 1,180 | codeparrot/github-code |
e5d9a9b064f96bc7c03509b061d90e6d652a2c6de706f424defa5fd670d222df | // Copyright 2010 Google Inc. All Rights Reserved
package org.waveprotocol.wave.model.util;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.util.Collections;
import java.util.HashSet;
import java.util.Queue;
import java.util.Set;
/**
* Test case for {@link ObservableMapImpl}.
*
*
*/... | Java | wave-model/src/test/java/org/waveprotocol/wave/model/util/ObservableMapImplTest.java | processone/google-wave-api | apache-2.0 | 4,946 | 197 | codeparrot/github-code |
8035c72a856ea8aadcfcec42b2cdded0baaa8a67af1680c2a664a8a3310e9085 | import defaultDictionary from './locales/en/messages.json';
import { DictNamespaces } from '../../types-internal/i18n-internal-namespace';
import { isObject, isString } from '../utils';
/**
* Evaluate messages dictionary and return object for namespace chaining
*
* @param dict - Messages dictionary
* @param [keyPa... | TypeScript | src/components/i18n/namespace-internal.ts | codex-team/editor.js | apache-2.0 | 1,580 | 53 | codeparrot/github-code |
839e091024ef697b83e4786f578259d92894a62a28b82b8da2b92dca7dda2ec4 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotsitewise/model/GatewaySummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
na... | C++ | aws-cpp-sdk-iotsitewise/source/model/GatewaySummary.cpp | aws/aws-sdk-cpp | apache-2.0 | 3,599 | 141 | codeparrot/github-code |
b24add4f7a457a8fbe3b64f81e2a7ade0ccde2f60263ead071e21bd8500d7058 | /*
* Copyright 2015 The Kythe 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... | GO | kythe/go/serving/api/api.go | kythe/kythe | apache-2.0 | 5,879 | 180 | codeparrot/github-code |
68376ebff702ec0b489f04fee8d65af7f95992a3216c921cc104d0212a58fae9 | package org.unidal.cat.plugin.events;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import org.unidal.cat.plugin.events.config.EventsConfigServiceTest;
import org.unidal.cat.plugin.events.config.EventsConfigTest;
import org.unidal.cat.plugin.events... | Java | cat-plugin-events/src/test/java/org/unidal/cat/plugin/events/AllTests.java | qmwu2000/cat2 | apache-2.0 | 839 | 32 | codeparrot/github-code |
86e29b8ed7fba84704b68dd90fa2f27165239b6d769e949c643e57ea4dd2fc3f | /**
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | Java | bundles/trustedauth/src/main/java/org/sakaiproject/nakamura/auth/trusted/TrustedTokenServiceImpl.java | dylanswartz/nakamura | apache-2.0 | 22,953 | 654 | codeparrot/github-code |
8133b3e320191bb048b07ac49e3b5db07468c6dc0d3502f710309265d2d2e61d | /*
* 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 | src/test/java/de/knightsoftnet/validators/shared/testcases/IsbnUtilTestCases.java | ManfredTremmel/mt-bean-validators | apache-2.0 | 7,715 | 188 | codeparrot/github-code |
4792c8b777081ebcfdf9c2b78f3e008c0b3b3d0668fd22f23c469b303f02bc02 | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveIntegrationTests.java | kdvolder/spring-boot | apache-2.0 | 5,755 | 152 | codeparrot/github-code |
ef35b2046645b0b0ed7f22835bc7642438078881cbf6704b06a9ea4bdeb0b270 | /*
* Copyright (C) 2017 Republic Wireless
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/test/java/com/rw/legion/columntransform/NullReplaceTransformerTest.java | dlstadther/legion | apache-2.0 | 1,746 | 65 | codeparrot/github-code |
cb053fa94a4dbfa8fcec77d7dbdf4213c2bd5c307ba1464c61eaa49801aae440 | /**
* 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 | taverna-maven-plugin/src/main/java/org/apache/taverna/mavenplugin/TavernaPluginDeployFileMojo.java | apache/incubator-taverna-osgi | apache-2.0 | 8,351 | 231 | codeparrot/github-code |
f639ba829ce8a56a62aa9678efe99e9d19a10657a56286fa96a240e907a6cad1 | /*
* Copyright 2016 JSpare.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 by applicable law or agreed to in w... | Java | jspare-ui-jtwig/src/test/java/org/jspare/ui/jtwig/ToolkitJtwigTest.java | jspare-projects/jspare-framework | apache-2.0 | 3,889 | 183 | codeparrot/github-code |
ce5eaf812940346efa6d558340b6cf1b504f3a1e3bd2c84e603b2ecc9c382320 | /*
* Licensed to DuraSpace under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* DuraSpace licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file excep... | Java | src/test/java/org/fcrepo/audit/integration/FcrepoAuditIT.java | fcrepo4-exts/fcrepo-audit | apache-2.0 | 4,305 | 107 | codeparrot/github-code |
635c0cc9f608735e41b2fcd7f49e446e88b9b1240fda02465cb7f899fd7a2cdf | /*******************************************************************************
* Copyright (c) quickfixengine.org All rights reserved.
*
* This file is part of the QuickFIX FIX Engine
*
* This file may be distributed under the terms of the quickfixengine.org
* license as defined by quickfixengine.org and ... | Java | src/main/java/quickfix/field/SettlLocation.java | Forexware/quickfixj | apache-2.0 | 1,549 | 50 | codeparrot/github-code |
b090ecdd17b65adb14910a58f8a1328586c73254e6a3f13124932a8c4e233cb1 | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | C | modules/persistence_framework.c | b1v1r/ironbee | apache-2.0 | 8,429 | 276 | codeparrot/github-code |
0c1917412c10a940bcd461dabc5a9b3e74f59a01dfd669833f17d18ec8caadee | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | C++ | aws-cpp-sdk-ec2/source/model/DeleteVpcPeeringConnectionRequest.cpp | zeliard/aws-sdk-cpp | apache-2.0 | 1,390 | 45 | codeparrot/github-code |
98917fc964d085c3de5350b2987877ce041119809be64ecf90f6c1f3217f26f5 | using Ivony.Data.Common;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Ivony.Data
{
/// <summary>
/// 提供关于动态对象的扩展方法
/// </su... | C# | Sources/Ivony.Data/DynamicExtensions.cs | Ivony/DbUtility | apache-2.0 | 5,891 | 222 | codeparrot/github-code |
171f9235192aea29733bc0912c75523b94a5fb484bb915897659e1dcb996e8f5 | package com.common.app;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.Message;
import android.os.MessageQueue;
import android.os.RemoteEx... | Java | src/commons/com/common/app/AbstractRenrenApplication.java | MichaelSun/SiXin | apache-2.0 | 4,398 | 145 | codeparrot/github-code |
508fb8718c749a54cc919f17354a8d416b313e2799e63bdeb376ac941d6ec44f | /*
* Copyright 2015 Codice Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | src/main/java/org/codice/testify/objects/TestifyLogger.java | testify/testify-core | apache-2.0 | 3,935 | 121 | codeparrot/github-code |
c3a8380c6beab2614568ea070e667b03c984070acf1ad423a39a215202bfe230 | /*
* 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 | vault-validation/src/test/java/org/apache/jackrabbit/vault/validation/spi/impl/nodetype/NodeTypeValidatorTest.java | apache/jackrabbit-filevault | apache-2.0 | 24,230 | 383 | codeparrot/github-code |
08e39ae59b75ccc31068b517a907b0c043d240e1ce076196032c6ad575313786 | package cyclops.monads.transformers;
import com.oath.cyclops.ReactiveConvertableSequence;
import cyclops.ReactiveReducers;
import cyclops.companion.Semigroups;
import cyclops.data.Seq;
import cyclops.monads.AnyMs;
import cyclops.monads.Witness;
import com.oath.cyclops.types.mixins.Printable;
import com.oath.cyclops.ut... | Java | cyclops-anym/src/test/java/cyclops/monads/transformers/MaybeTTest.java | aol/cyclops-react | apache-2.0 | 8,582 | 385 | codeparrot/github-code |
f5be90bf9fa82244417c89c62c1095952fb41678523a5fc6766f816cc5c9952b | /*
License
Menge
Copyright © and trademark 2012-14 University of North Carolina at Chapel Hill.
All rights reserved.
Permission to use, copy, modify, and distribute this software and its documentation
for educational, research, and non-profit purposes, without fee, and without a
written agreement is hereby granted... | C++ | src/Plugins/AgtGCF/GCFSimulator.cpp | MengeCrowdSim/Menge | apache-2.0 | 4,238 | 102 | codeparrot/github-code |
a856eec8a3794b367fbc0935792cf2feac8a689cf858a68826e6c9984128bf1c | /*
* Copyright 2019 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 | spark/spark-base/src/main/java/com/thoughtworks/go/spark/spring/SPAAuthenticationHelper.java | kierarad/gocd | apache-2.0 | 1,522 | 44 | codeparrot/github-code |
1b4a1861f648f6f6d497c6076b1f9098d836654e60ae1188487d4cbe61d142b2 | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.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 applicable l... | Java | src/main/java/com/tang/intellij/lua/psi/LuaElementType.java | EmmyLua/IntelliJ-EmmyLua | apache-2.0 | 4,446 | 106 | codeparrot/github-code |
51329d39720f1c1f00c39dfcb52a72a67f8af4680337c894997a5161817850cc | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | Java | server-spi-private/src/main/java/org/keycloak/authorization/policy/evaluation/PermissionTicketAwareDecisionResultCollector.java | vmuzikar/keycloak | apache-2.0 | 6,798 | 152 | codeparrot/github-code |
67d2014ca2bca176989bdc4bbf830ea19e39300d16c557815f6025884c556afa | /*
* 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 o... | C# | Engine/DataFeeds/Enumerators/Factories/OptionChainUniverseSubscriptionEnumeratorFactory.cs | james-horrocks/StratGA | apache-2.0 | 6,843 | 137 | codeparrot/github-code |
07ea93b78b3f35499796bf1e45789da9fb6044967844eb836834fad47eadf0c7 | package org.apache.zeppelin.notebook.repo;
import org.apache.hadoop.fs.Path;
import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.notebook.FileSystemStorage;
import org.apache.zeppelin.notebook.Note;
import org.apache.zeppelin.notebook.NoteInfo;
import org.apache.zeppelin.notebook.OldNoteI... | Java | zeppelin-plugins/notebookrepo/filesystem/src/main/java/org/apache/zeppelin/notebook/repo/OldFileSystemNotebookRepo.java | joroKr21/incubator-zeppelin | apache-2.0 | 3,066 | 94 | codeparrot/github-code |
d9ba72e825d3cf08d1ba373a187259a83545d204f22998c05984651f0ead0f74 | package org.olat.test.functional.administration;
import java.io.File;
import org.olat.test.util.selenium.BaseSeleneseTestCase;
import org.olat.test.util.selenium.olatapi.OLATWorkflowHelper;
import org.olat.test.util.selenium.olatapi.WorkflowHelper;
import org.olat.test.util.selenium.olatapi.folder.Folder;
import org.... | Java | olat7.8/src/test/java/org/olat/test/functional/administration/ASetupFNTestCase.java | huihoo/olat | apache-2.0 | 2,982 | 75 | codeparrot/github-code |
3514989ab5a00c1aa28917bc6647a89030f258997000d30a133234382362b860 | /* Copyright 2005-08 Mahadevan R
*
* 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 ... | C++ | guide/KeyboardHelp.cpp | SDX2000/winguide | apache-2.0 | 3,920 | 112 | codeparrot/github-code |
0b2fea42cfa2be28f79b239ad23257a4e76aafee9622d461ca0aadac36f8d0c6 | /*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | hazelcast/src/main/java/com/hazelcast/internal/config/CacheConfigReadOnly.java | mdogan/hazelcast | apache-2.0 | 7,143 | 228 | codeparrot/github-code |
1c47cc8ad37600f2a66c2ff29e796e4ff7d56ff669d99cce4124076910fe1e17 | /*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | hazelcast/src/main/java/com/hazelcast/internal/dynamicconfig/AggregatingMap.java | mdogan/hazelcast | apache-2.0 | 4,087 | 144 | codeparrot/github-code |
4bcc15e05aec6258466e20281e7aec7348559154ad5a896b68559bca56145f60 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/CryptoDataFormat.java | objectiser/camel | apache-2.0 | 4,977 | 171 | codeparrot/github-code |
ab7d63e98cf680e8eb29d41e0a3b4bb0a34b56bf92f13cfa6303a9d2ba18470a | /*
* 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/java/org/apache/cassandra/db/CounterUpdateColumn.java | heiko-braun/cassandra | apache-2.0 | 3,676 | 99 | codeparrot/github-code |
3a5cdea8b676541032712b327b45ab84c413c5ed1039acf9f0fd1ba40bf36896 | /*
* Copyright (C) 2016 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | java/dagger/internal/codegen/validation/MultibindingAnnotationsProcessingStep.java | google/dagger | apache-2.0 | 2,293 | 63 | codeparrot/github-code |
209fed9886b5b5a94a9db544e36d8b1a9e2017391d06ebe277047f5441dac0f5 | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | C++ | syzygy/block_graph/block_graph_serializer.cc | wangming28/syzygy | apache-2.0 | 29,479 | 932 | codeparrot/github-code |
22c04e8d2d1688a437315f836eeca954e516820d15e73eb3850f370456e0429e | /*----------------------------------------------------------------
Copyright (C) 2017 Senparc
文件名:GetApprovalDataJsonResult.cs
文件功能描述:获取审批数据接口返回结果
创建标识:Senparc - 20170617
----------------------------------------------------------------*/
using Senparc.Weixin.Entities;
using System;
usi... | C# | src/Senparc.Weixin.Work/Senparc.Weixin.Work/AdvancedAPIs/OaDataOpen/OaDataOpenJson/GetApprovalDataJsonResult.cs | down4u/WeiXinMPSDK | apache-2.0 | 5,537 | 188 | codeparrot/github-code |
2686cddb2a89f07edbb4a1434acb9068dd7e299ecf35ed7812eef584b1061b17 | /*
* jrevdct.c
*
* Copyright (C) 1991, 1992, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains the basic inverse-DCT transformation subroutine.
*
* This implementation is based on an a... | C++ | extras/static-libraries/jpeg/Files/JREVDCT.C | adamjoniec/theimp | apache-2.0 | 14,090 | 370 | codeparrot/github-code |
43d9bf1a9f7160e01ca3a37e05de52eedddd2c3013118c045e401157fae470fe | /*
* Copyright 2020 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 agreed... | Java | core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/access/predicate/NamedViewWriteAccessPredicateTest.java | GovernmentCommunicationsHeadquarters/Gaffer | apache-2.0 | 2,638 | 61 | codeparrot/github-code |
5f33c7352b75cf242fa585a517479926f0fd1a6fd22ce41d1fd123fb20536a38 | <?php
/**
* User: zach
* Date: 05/31/2013
* Time: 16:47:11 pm
*/
namespace Elasticsearch\Endpoints\Indices;
use Elasticsearch\Endpoints\AbstractEndpoint;
use Elasticsearch\Common\Exceptions;
/**
* Class Analyze
* @package Elasticsearch\Endpoints\Indices
*/
class Analyze extends AbstractEndpoint
{
/**
... | PHP | src/Elasticsearch/Endpoints/Indices/Analyze.php | eddiejaoude/elasticsearch-php | apache-2.0 | 1,465 | 80 | codeparrot/github-code |
2e081160c9d955062095094d11277ecbaab6c78a3bed6b79e04bfc1e20577cec | # Copyright (c) 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Python | swift/common/ring/builder.py | psachin/swift | apache-2.0 | 79,375 | 1,882 | codeparrot/github-code |
2c9da9793d044eaed4a997fa42f1ff847567b3513f58eba9a3f106369ccc01dd | #ifndef CERT_TRANS_UTIL_LIBEVENT_WRAPPER_H_
#define CERT_TRANS_UTIL_LIBEVENT_WRAPPER_H_
#include <atomic>
#include <chrono>
#include <event2/dns.h>
#include <event2/event.h>
// TODO(alcutter): Use evhtp for the HttpServer too.
#include <event2/http.h>
#include <evhtp.h>
#include <functional>
#include <memory>
#include... | C | cpp/util/libevent_wrapper.h | ksmaheshkumar/certificate-transparency | apache-2.0 | 3,613 | 147 | codeparrot/github-code |
1b2b0ef331b786f655bb0d4f03594b64f6ee52567a9eb610a8693b9ce29d8dc5 | /**
* 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/main/java/org/apache/camel/model/CatchDefinition.java | akhettar/camel | apache-2.0 | 9,565 | 280 | codeparrot/github-code |
cfae4b2492a0119bb40b24195f12d5cd85d0837dc8be023c5be07742cc21a283 | /*
* Copyright 2005 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/ClassFieldReader.java | vinodkiran/drools | apache-2.0 | 9,899 | 302 | codeparrot/github-code |
1cd22d6d50717942a7972ae6b5c9e957044907de9ac57aa4cc64f1c6f6380ce1 | #include "arch.h"
#include "ecp_NUMS256E.h"
/* NUMS 256-bit Curve - Edwards */
#if CHUNK==16
const int CURVE_Cof_I_NUMS256E= 4;
const BIG_256_13 CURVE_Cof_NUMS256E= {0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
const int CURVE_A_NUMS256E= 1;
const int CURVE_B_I_NUMS256E= -15342;... | C | version3/c/rom_curve_NUMS256E.c | miracl/amcl | apache-2.0 | 2,367 | 43 | codeparrot/github-code |
ab51f985c52529a784855c8dc2ed652b10f304960ca70aa125fe21a4b4cfe575 | package main
import (
"fmt"
"net/http"
"strconv"
"time"
"github.com/DataDog/datadog-go/statsd"
"github.com/gophr-pm/gophr/lib/datadog"
"github.com/gophr-pm/gophr/lib/db"
"github.com/gophr-pm/gophr/lib/db/model/package"
"github.com/gophr-pm/gophr/lib/errors"
)
const (
maxNewPackagesLimit = 200
// ddEventNa... | GO | api/handler_get_new_packages.go | skeswa/gophr | apache-2.0 | 3,173 | 118 | codeparrot/github-code |
b9377107103c507e559d8b591c9d1b9da7431efd233177cfc9be4ad8af6f4e1c | package com.richardradics.core.database;
import android.content.Context;
import com.richardradics.commons.util.DateUtil;
import com.richardradics.core.error.SnappyErrorHandler;
import com.snappydb.DB;
import com.snappydb.DBFactory;
import com.snappydb.SnappydbException;
import org.androidannotations.annotations.Afte... | Java | core/src/main/java/com/richardradics/core/database/SnappyDatabase.java | hejunbinlan/MVPAndroidBootstrap | apache-2.0 | 5,851 | 225 | codeparrot/github-code |
42e52e7781117e37ee050374fa6f54c392aed98ecae5dc63a3d9320c7ad3b8d4 | /*Reset CSS*/
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
@import url('https://fonts.googleapis.com/css?family=MedievalSharp');
@import url('https://fonts.googleapis.com/css?family=Herr+Von+Muellerhoff');
html, body, div, span, applet, object, iframe,
h1, h2, ... | CSS | squirespace/static/css/theme.css | DaynaLacoursiere/cmput404-project | apache-2.0 | 15,665 | 1,000 | codeparrot/github-code |
2e7de7b2a53b9dbc8ccb9cee57102c7c8b1982b58d0920680bd7ff8a88d979bd | # -*- coding: utf-8 -*-
import os
from django.db import models
from django.db.models import Q
from seahub.tags.models import FileUUIDMap
from seahub.utils import normalize_file_path
class RelatedFilesManager(models.Manager):
def get_related_files_uuid(self, uuid):
related_files_uuid = super(RelatedFi... | Python | seahub/related_files/models.py | miurahr/seahub | apache-2.0 | 2,806 | 73 | codeparrot/github-code |
77c1028aa79cbeea779238c8ae916ecbf97175e37460e5ea2515b3ca5b587060 | /*
* 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 | elasticjob-lite/elasticjob-lite-core/src/test/java/org/apache/shardingsphere/elasticjob/lite/internal/server/ServerServiceTest.java | elasticjob/elastic-job | apache-2.0 | 6,299 | 139 | codeparrot/github-code |
7641c31058c8e4de45c6470b1d1491f08a7708173489a354c80b80d5d74f4295 | /*
Copyright (c) 2007-2011 Cyrus Daboo. 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... | C | MacOS/Sources/Application/Address_Book/CAddressFieldContainer.h | mbert/mulberry-main | apache-2.0 | 1,671 | 70 | codeparrot/github-code |
9e6e166bfa021d4db1877a60b51f6a08252625d1248a8892d4e648f55fd90ce8 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | subprojects/base-services/src/main/java/org/gradle/internal/io/LineBufferingOutputStream.java | gstevey/gradle | apache-2.0 | 3,793 | 100 | codeparrot/github-code |
1991caec2b0f7b48c2e20f1075de09cd67518e29cd00bea795cf982f61cc07a4 | <!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-Type" content="text/html; charset=iso-8859-1"/>
<title>Keyboard Shortcuts</title>
<link rel="stylesheet" href="helpst... | HTML | lproj/en.lproj/Vienna Help/keyboard.html | iamjasonchoi/vienna-rss | apache-2.0 | 8,775 | 312 | codeparrot/github-code |
7a3269f9f5b51c900e3e7ed7b5f1db2f9a314f2db16351ee60667e9cf5c98a05 | /*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2012-2015, Magnus Edenhill
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the... | C | lib/librdkafka-1.7.0/src/rdlist.c | fluent/fluent-bit | apache-2.0 | 14,393 | 531 | codeparrot/github-code |
3573987465b8700a1de831c9e01576293e82cd6e2d1b6fcd1bb35d3335048145 | package com.vipshop.microscope.client.system;
import com.vipshop.microscope.client.Tracer;
import com.vipshop.microscope.common.util.IPAddressUtil;
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
import java.lang.management.RuntimeMXBean;
/**
* System data builder
... | Java | microscope-client/src/main/java/com/vipshop/microscope/client/system/SystemDataBuilder.java | c3p0hz/microscope | apache-2.0 | 1,320 | 46 | codeparrot/github-code |
a1421133d716150016cb14d38b93d4ffe9feb4b4df35f8f11cdf5f8228fe8704 | package com.jiubang.goscreenlock.theme.cjpcardcool.weather.bean;
/**
* 保存城市信息的Bean
* @author chenyuning
*
*/
public class CityBean
{
/** 城市Id*/
private String mCityId;
/** 城市名*/
private String mCityName;
/** 国家名*/
private String mCountryName;
/** 州名*/
private String mStateName;
/** 时区*/
private String mTi... | Java | src/com/jiubang/goscreenlock/theme/cjpcardcool/weather/bean/CityBean.java | chenjianping99/CradCool | apache-2.0 | 2,249 | 120 | codeparrot/github-code |
131db737de87670e70933ec39f87be94817f33b4db7a97b539910a08f2195c66 | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | Java | bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultFileChannel.java | apache/bookkeeper | apache-2.0 | 2,408 | 76 | codeparrot/github-code |
ed4ce863c67ffa0d6e6633c1e8e47c567cbb70b2b8d347c904f33849e3f6ebc1 | package testclient
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
clientgotesting "k8s.io/client-go/testing"
userapi "github.com/openshift/origin/pkg/user/apis/user"
)
// FakeIdentities implements IdentitiesInterface. Meant to be embedded into a struct to get a de... | GO | pkg/client/testclient/fake_identities.go | wanghaoran1988/origin | apache-2.0 | 1,815 | 59 | codeparrot/github-code |
783d7786939a44c0b476980070c21ae8a898ade4c10f72189f3f7ddcb2ac61b7 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-cognito-idp/source/model/CreateUserImportJobResult.cpp | chiaming0914/awe-cpp-sdk | apache-2.0 | 1,460 | 51 | codeparrot/github-code |
0b00ffe710912a0c15132623f67bbc77e4c9965d5c315760557df25ebb767c43 | /*
* 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/schema/IntPointField.java | apache/solr | apache-2.0 | 5,474 | 171 | codeparrot/github-code |
c63945abab97f2f379eab7baf4c1e70a176c0065374089f2bda1fdc5dad490eb | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package templates;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JTree;
import javax.swing.tree.*;
import xeed.Character;
import xeed.XEED;
/**
*
* @author Erik
*/
public fi... | Java | src/main/java/templates/OffspringPanel.java | ErikGartner/xeed | apache-2.0 | 4,857 | 137 | codeparrot/github-code |
792b33e5a5f609eada01f7eb4cd38fae546be44ddfaf120cdb756eb70d76e722 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | C | time/datetime/src/datetime.c | andrzej-kaczmarek/apache-mynewt-core | apache-2.0 | 11,209 | 411 | codeparrot/github-code |
82062198956ed7f8f5bf39bb4877276d67c4c384808c66f48e99744a3d597b50 | -- Extends Site plugin but focuses on Rst files.
require "Site"
local oldGetMethod = GetMethod
function GetMethod(name)
if name == "Build" then
return
{
Describe = function(args)
args.output.WriteLine("Generate Restructured Text files.")
end,
... | Lua | Main/Generators/Rst.lua | TimSimpson/Macaroni | apache-2.0 | 1,975 | 56 | codeparrot/github-code |
afbbc075598f0585377c783cb72bb9a7eb829f9420a240ca9224a6bea4dfca7a | // 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 | engine/schema/src/main/java/com/cloud/usage/dao/UsageBackupDaoImpl.java | GabrielBrascher/cloudstack | apache-2.0 | 6,547 | 139 | codeparrot/github-code |
b26ab4cb5667a461b9926fd95600d826c59871cffa0471366a46e63bc16bf0b5 | from .maxrects import MaxRectsBssf
import operator
import itertools
import collections
import decimal
# Float to Decimal helper
def float2dec(ft, decimal_digits):
"""
Convert float (or int) to Decimal (rounding up) with the
requested number of decimal digits.
Arguments:
ft (float, int): Numb... | Python | rectpack/packer.py | secnot/rectpack | apache-2.0 | 17,585 | 581 | codeparrot/github-code |
e57856eb1ef40da34aabc7c10afbd5409ffd5bb05e908ecf7af268f47e237444 | /*
* Copyright 2015 WebAssembly Community Group participants
*
* 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... | C | src/wasm.h | WebAssembly/binaryen | apache-2.0 | 47,389 | 2,060 | codeparrot/github-code |
b9ad2eb59bb43636d2053f10407aa3ba1a3b21640dcb562f18dbf0b474babd54 | #!/bin/bash
#
# Copyright 2012 Marco Vermeulen
#
# 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... | Shell | src/main/bash/sdkman-default.sh | busches/gvm-cli | apache-2.0 | 1,100 | 39 | codeparrot/github-code |
9b04f5abc414deb6106ed12f2238a7a0846ff74d3c8db83849be49392b098666 | /*
* 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/NettyCamelState.java | davidkarlsen/camel | apache-2.0 | 1,693 | 47 | codeparrot/github-code |
2ebf2dd79725c81101a28f98ff943d47b2fe6f0fd5390ac9a11119db52480c0f | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | Java | services/src/main/java/org/keycloak/services/resources/admin/info/ServerInfoAdminResource.java | wildfly-security-incubator/keycloak | apache-2.0 | 13,800 | 296 | codeparrot/github-code |
7360cb0acff1b3d2b1dba2fb34bf58a0607929345cfa62a0fa61817fbbc1d718 | var expect = require('expect.js');
var sinon = require('sinon');
var _autoSendStub;
var _logSpy;
var _logStub;
describe('init()', function () {
beforeEach(function () {
sinon.sandbox.create();
this.xhr = sinon.useFakeXMLHttpRequest();
var requests = this.requests = [];
this.xhr.onCreate... | JavaScript | test/unit/init.js | nbrl/advocate-things-js-sdk | apache-2.0 | 1,830 | 70 | codeparrot/github-code |
dc43cd04465d2d5ad084dfd21a9c3139506556d113b9adf7e54c534ecff2ae91 | package org.carlspring.strongbox.users.userdetails;
import javax.inject.Inject;
import org.carlspring.strongbox.users.dto.User;
import org.carlspring.strongbox.users.service.UserService;
import org.carlspring.strongbox.users.service.impl.YamlUserService.Yaml;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... | Java | strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/users/userdetails/YamlUserDetailService.java | sbespalov/strongbox | apache-2.0 | 1,509 | 49 | codeparrot/github-code |
57ebd1d6da2263d8c65800c3d7eb9cbf910abc8f983c1480135e3985bd1a264e | // Copyright 2017 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 | pilot/adapter/config/memory/monitor.go | sebastienvas/istio | apache-2.0 | 2,576 | 102 | codeparrot/github-code |
51ee4ce77dd81a5aed7001e59b872b06ed65fd360044b1fa258508a63303895f | /**
* Copyright (C) 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | Java | ninja-metrics/src/main/java/ninja/metrics/MeteredInterceptor.java | tom1120/ninja | apache-2.0 | 1,772 | 58 | codeparrot/github-code |
4beef46a5575b21b9806c9425a4fd23c4cc5a8fa8fc1a2e64e10dca08223babc | package de.fau.cs.mad.fablab.android.view.fragments.icals;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import de.fau.cs.mad.fablab.android.model.ICalModel;
import de.fau.cs.mad.fablab.android.viewmodel.common.commands.Command;
import de.fau.cs.mad.fablab.rest.core.ICal;
import de.gree... | Java | app/src/main/java/de/fau/cs/mad/fablab/android/view/fragments/icals/ICalViewModel.java | FAU-Inf2/fablab-android | apache-2.0 | 5,468 | 185 | codeparrot/github-code |
a1814ca4512e9970d4000b384d496de99383db98755026507a7c6ad5da8a6840 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Nirvana.CQRS;
using Nirvana.CQRS.Util;
using Nirvana.Domain;
using Nirvana.Security;
using Nirvana.Util.Extensions;
namespace Nirvana.Configuration
{
public class NirvanaConfigurationHelper
{
private read... | C# | src/Nirvana/Configuration/NirvanaConfigurationHelper.cs | nirvana-framework/Nirvana | apache-2.0 | 13,382 | 346 | codeparrot/github-code |
3d49fc85fb1c01013ce2fcc20e51732b09df0970e34460d6402a78fd8c523afe | /*
* 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 | src/main/java/org/elasticsearch/action/admin/indices/optimize/TransportOptimizeAction.java | peschlowp/elasticsearch | apache-2.0 | 5,868 | 139 | codeparrot/github-code |
e0c1b1657ea0816d55195d5ee8a0cae12e6b530c36735292c1821efa1daf7853 | /* Copyright 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-2.0
*
* Unless required by ... | Java | src/xmlpublic/org/apache/xmlbeans/XmlSimpleList.java | crow-misia/xmlbeans | apache-2.0 | 8,017 | 189 | codeparrot/github-code |
74c340a13ab133f784391f0f622683362a80801958e278ae41753975a1f9488f | '''
Copyright 2015 University of Auckland
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... | Python | src/opencmiss/neon/ui/editors/spectrumeditorwidget.py | alan-wu/neon | apache-2.0 | 26,338 | 603 | codeparrot/github-code |
5fef9bf2788a02e2f1631ce792c06a1ab661badc8480ed8571d48f4a66ccd912 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
#
# License:: 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
#
# ... | Ruby | dfp_api/examples/v201511/publisher_query_language_service/fetch_match_tables.rb | Tei1988/google-api-ads-ruby | apache-2.0 | 3,437 | 108 | codeparrot/github-code |
2bb6c54cb7b0103293516ba786cc7b3ff408f7b34a2fff70b340ef70d27270ac | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Python | keystone/controllers.py | blueboxgroup/keystone | apache-2.0 | 6,964 | 219 | codeparrot/github-code |
bfac2b41935e899d9cdb3219d7731c73de22d8ed5f0396af2e2fa93573056012 | /*
* 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-couchdb/src/test/java/org/apache/camel/component/couchdb/CouchDbCrudTest.java | pmoerenhout/camel | apache-2.0 | 13,283 | 233 | codeparrot/github-code |
7ad3991aa757e2fb9b4be83072cb5c4cc64baaafa7f1ddc5b43312dbd07c415c | /*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | Java | nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/buffer/CpuDeallocator.java | deeplearning4j/deeplearning4j | apache-2.0 | 1,629 | 45 | codeparrot/github-code |
bae61c25acb0283950ec9a7a958a96329dfaf478550470108233732216156cb8 | /* =========================================================================================
* Copyright © 2013-2014 the kamon project <http://kamon.io/>
*
* 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 th... | Scala | project/Dependencies.scala | kamon-io/sigar-loader | apache-2.0 | 3,036 | 71 | codeparrot/github-code |
11b33db115b3af7a076ac7bda7380fbc71aed5d98a0dbeb18f86fe265450dbe2 | # -*- coding: utf-8 -*-
"""Configuration introspection and defaults."""
from __future__ import absolute_import, unicode_literals
import sys
from collections import deque, namedtuple
from datetime import timedelta
from celery.five import items, keys, python_2_unicode_compatible
from celery.utils.functional import memo... | Python | desktop/core/ext-py/celery-4.2.1/celery/app/defaults.py | cloudera/hue | apache-2.0 | 12,860 | 373 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.