code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
package ro.pub.cs.systems.pdsd.practicaltest01;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.PhoneNumberUtils;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Vie... | Nicky1992/PracticalTest01 | PracticalTest01/src/ro/pub/cs/systems/pdsd/practicaltest01/PracticalTest01MainActivity.java | Java | apache-2.0 | 6,630 |
package org.asciidoc.intellij.lexer;
import com.intellij.lexer.FlexAdapter;
import com.intellij.lexer.MergingLexerAdapter;
import com.intellij.psi.tree.IElementType;
import java.io.IOException;
/**
* @author yole
*/
public class AsciiDocLexer extends MergingLexerAdapter {
public AsciiDocLexer() {
super(new F... | asciidoctor/asciidoctor-intellij-plugin | src/main/java/org/asciidoc/intellij/lexer/AsciiDocLexer.java | Java | apache-2.0 | 1,741 |
package cn.batchfile.elasticsql.server;
import java.io.IOException;
import java.sql.SQLFeatureNotSupportedException;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.elasticse... | lane-cn/elasticsql | src/main/java/cn/batchfile/elasticsql/server/ExplainServlet.java | Java | apache-2.0 | 1,633 |
/*
* Copyright 2019 Qameta Software OÜ
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | allure-framework/allure-java | allure-java-commons/src/main/java/io/qameta/allure/TmsLinks.java | Java | apache-2.0 | 1,095 |
package org.deeplearning4j.rl4j.learning;
public interface EpochStepCounter {
int getCurrentEpochStep();
}
| RobAltena/deeplearning4j | rl4j/rl4j-core/src/main/java/org/deeplearning4j/rl4j/learning/EpochStepCounter.java | Java | apache-2.0 | 112 |
package com.caozeal.utopia.server.util;
import org.apache.commons.codec.binary.Hex;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MD5Helper {
public static String encrypt(String str) throws NoSuchAlgorithmException {
MessageDigest... | caozeal/Utopia | Source/UtopiaLand/client_server/src/main/java/com/caozeal/utopia/server/util/MD5Helper.java | Java | apache-2.0 | 619 |
package org.openflow.protocol.instruction;
import java.lang.reflect.Constructor;
import java.util.Map;
import org.openflow.protocol.Instantiable;
import org.openflow.util.LRULinkedHashMap;
/**
* List of OpenFlow Instruction types and mappings to wire protocol value and
* derived classes
*
* @author Srini Seethar... | Syn-Flow/Controller | src/main/java/org/openflow/protocol/instruction/OFInstructionType.java | Java | apache-2.0 | 5,620 |
/*
* 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")... | avafanasiev/groovy | src/main/org/codehaus/groovy/reflection/GeneratedMetaMethod.java | Java | apache-2.0 | 8,786 |
/**
* hub-detect
*
* Copyright (C) 2019 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 copyrig... | blackducksoftware/hub-detect | hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/detector/rubygems/GemlockParser.java | Java | apache-2.0 | 10,491 |
/*
* 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 ... | gridgain/apache-ignite | modules/extdata/p2p/src/main/java/org/apache/ignite/tests/p2p/CacheDeploymentTestTask1.java | Java | apache-2.0 | 2,262 |
/**
* Copyright 2004-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requ... | kuali/kpme | tk-lm/impl/src/main/java/org/kuali/kpme/tklm/leave/workflow/LeaveRequestRoleAttribute.java | Java | apache-2.0 | 4,417 |
/*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | nasa/OpenSPIFe | gov.nasa.ensemble.core.plan.resources/src/gov/nasa/ensemble/core/plan/resources/ResourceUpdaterQueuePredicate.java | Java | apache-2.0 | 2,028 |
/*
* 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 ... | Union-Investment/Crud2Go | eai-portal-domain-crudportlet/src/main/java/de/unioninvestment/eai/portal/portlet/crud/domain/model/RowEditingFormDialog.java | Java | apache-2.0 | 1,443 |
package main.run;
import java.math.BigDecimal;
import actors.AbstractActor;
import actors.Message;
public class PiQuarterActor extends AbstractActor {
@Override
public void execute() {
Object[] obs = this.getMessage().getData();
long from = (long) obs[0];
long to = (long) obs[1];
... | tianniao/hwActor | src/main/java/main/run/PiQuarterActor.java | Java | apache-2.0 | 1,351 |
package com.qingbo.ginkgo.ygb.account;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.qingbo.... | hwxiasn/archetypes | ygb/ygb-account/src/test/java/com/qingbo/ginkgo/ygb/account/Consumer.java | Java | apache-2.0 | 837 |
package fr.jrds.snmpcodec.parsing;
enum Asn1Type {
octetStringType,
bitStringType,
choiceType,
enumeratedType,
integerType,
sequenceType,
sequenceOfType,
setType,
setOfType,
objectidentifiertype,
objectClassFieldType,
nullType,
referencedType,
bitsType
}
| fbacchella/snmpcodec | src/main/java/fr/jrds/snmpcodec/parsing/Asn1Type.java | Java | apache-2.0 | 312 |
package com.shunwang.apitools.util.zip;
import com.shunwang.apitools.constant.Constants;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.util.HashSet;
import java.util.Set;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* @a... | waitttttttttttttttttttttttting/apitools | apitools-web/src/main/java/com/shunwang/apitools/util/zip/Compressor.java | Java | apache-2.0 | 5,571 |
package jp.co.axa.life.app.lt.model.gen;
import jp.co.axa.life.fw.model.Entity;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@XmlRootElement(name = "cashFlowJs... | hanshikun2013/HellowWorld | Generator/dist/src/main/java/jp/co/axa/life/app/lt/model/gen/CashFlowJsonCondition.java | Java | apache-2.0 | 613 |
package com.dianping.cat.report.task.alert.sender.decorator;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
import com.dian... | ServerStarted/cat | cat-home/src/main/java/com/dianping/cat/report/task/alert/sender/decorator/WebDecorator.java | Java | apache-2.0 | 1,956 |
/*
* Copyright 2014-2019 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 "licen... | jentfoo/aws-sdk-java | aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/AssociateFleetResult.java | Java | apache-2.0 | 2,333 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/UpdateRoomMembershipResult.java | Java | apache-2.0 | 3,866 |
/*
* 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 ... | ecarm002/incubator-asterixdb | asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/aggregates/std/SqlMinMaxAggregateFunction.java | Java | apache-2.0 | 2,382 |
/**
* 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... | radicalbit/ambari | ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/AggregationTaskRunner.java | Java | apache-2.0 | 6,897 |
package com.github.slamdev.messageswatcher.storage.spi;
public interface Storage {
void store();
}
| slamdev/messages-watcher | storage/spi/src/main/java/com/github/slamdev/messageswatcher/storage/spi/Storage.java | Java | apache-2.0 | 104 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-dataproc | proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java | Java | apache-2.0 | 18,882 |
package org.fandev.lang.fan.structure.elements.itemsPresentations.impl;
import org.fandev.lang.fan.psi.api.statements.typeDefs.FanTypeDefinition;
import org.fandev.lang.fan.structure.elements.itemsPresentations.FanItemPresentation;
import com.intellij.psi.PsiElement;
/**
* @author Dror Bereznitsky
* @date Jan 7, 20... | consulo/consulo-fantom | plugin/src/main/java/org/fandev/lang/fan/structure/elements/itemsPresentations/impl/FanTypeDefinitionItemPresentation.java | Java | apache-2.0 | 608 |
/*
* Copyright 2019 Baidu, 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 writ... | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bvw/model/workflow/WorkflowUpdateRequest.java | Java | apache-2.0 | 1,898 |
package com.google.android.gms.location;
import android.app.PendingIntent;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
public class a
implements SafeParcelable
{
public static final b CREATOR = new b();
private final int kg;
private final PendingIntent xr... | mmmsplay10/QuizUpWinner | quizup/com/google/android/gms/location/a.java | Java | apache-2.0 | 902 |
package com.github.chrisbrenton.grappa.parsetree.visit;
import com.google.common.eventbus.Subscribe;
public class DummyVisitor implements Visitor
{
@Subscribe
public void visit(final ParentNode node){
//do nothing - for testing purposes only.
System.out.println("Parent: I just visited the valu... | ChrisBrenton/grappa-parsetree | src/test/java/com/github/chrisbrenton/grappa/parsetree/visit/DummyVisitor.java | Java | apache-2.0 | 552 |
/*
* Copyright 2014-2018 Real Logic Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | tbrooks8/Agrona | agrona/src/test/java/org/agrona/collections/Object2IntHashMapTest.java | Java | apache-2.0 | 12,245 |
/**
* Copyright 2016 Gertjan Al
*
* 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 ... | gertjanal/metal-tools | metal-tools-jshexviewer/src/test/java/nl/gertjanal/metaltools/jshexviewer/JsHexViewerTest.java | Java | apache-2.0 | 4,892 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/transform/ListTagsResultJsonUnmarshaller.java | Java | apache-2.0 | 2,779 |
package net.shibboleth.idp.profile.logic;
import net.shibboleth.idp.authn.context.AuthenticationContext;
import net.shibboleth.idp.authn.context.RequestedPrincipalContext;
import org.opensaml.profile.context.ProfileRequestContext;
import java.util.function.Predicate;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | uchicago/shib-extensions | src/main/java/net/shibboleth/idp/profile/logic/AuthnClassPredicate.java | Java | apache-2.0 | 3,303 |
package com.jvoung;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import java.io.IOException;
import jav... | jvoung/ngram_analysis | src/com/jvoung/Main.java | Java | apache-2.0 | 1,548 |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | ralscha/dataformat | src/main/java/com/google/flatbuffers/Struct.java | Java | apache-2.0 | 1,049 |
// Copyright 2014 The Bazel 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 appl... | dropbox/bazel | src/main/java/com/google/devtools/build/lib/syntax/SkylarkSignatureProcessor.java | Java | apache-2.0 | 15,317 |
/*
* 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... | freeVM/freeVM | enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/io/File/FileTest.java | Java | apache-2.0 | 47,951 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-aiplatform | proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java | Java | apache-2.0 | 4,201 |
/* ***** 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/
*
... | medicayun/medicayundicom | dcm4jboss-all/tags/DCM4CHEE_2_16_0/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/jdbc/MWLQueryCmd.java | Java | apache-2.0 | 8,209 |
/*******************************************************************************
* Copyright 2015 Parallel Symmetry
*
* This file is part of the Cirrus Look and Feel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | parallelsymmetry/cirrus | source/main/java/com/parallelsymmetry/cirrus/painter/ScrollPanePainter.java | Java | apache-2.0 | 2,435 |
/*
* Copyright 2020 Web3 Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | web3j/web3j | core/src/test/java/org/web3j/protocol/websocket/WebSocketServiceTest.java | Java | apache-2.0 | 23,271 |
/**
* Copyright 2013 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 ... | machado-rev/htmlcoinj | core/src/test/java/com/htmlcoin/htmlcoin/store/SPVBlockStoreTest.java | Java | apache-2.0 | 2,152 |
/*
/*
* Copyright (c) www.bugull.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 law or agr... | xbwen/bugu-mongo | bugu-mongo-core/src/main/java/com/bugull/mongo/listener/CascadeDeleteListener.java | Java | apache-2.0 | 5,182 |
package com.drone;
import static com.drone.ReaderUtils.getFloat;
import static com.drone.ReaderUtils.getUInt32;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.ni... | vaadin/teleport | backend/src/main/java/com/drone/DroneTemplate.java | Java | apache-2.0 | 15,662 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | joewalnes/idea-community | xml/dom-impl/src/com/intellij/util/xml/tree/actions/AddElementInCollectionAction.java | Java | apache-2.0 | 7,629 |
/**
* 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... | kingargyle/turmeric-bot | camel-core/src/test/java/org/apache/camel/processor/HandleFaultPerRouteTest.java | Java | apache-2.0 | 3,488 |
/*
* Copyright (C) 2014 Michell Bak
*
* 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... | vaidyasr/NMJManager | app/src/main/java/com/nmj/widgets/MovieCoverWidgetProvider.java | Java | apache-2.0 | 2,790 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/DescribeEndpointsRequest.java | Java | apache-2.0 | 11,961 |
/**
* 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... | afs/http-digest-auth | src/test/java/org/seaborne/auth/TestAuthStringTokenizer.java | Java | apache-2.0 | 3,608 |
/*
* Copyright 2014-2019 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 "licen... | jentfoo/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/GetFunctionConfigurationResultJsonUnmarshaller.java | Java | apache-2.0 | 7,877 |
/*
* Copyright 2016. Ivan Stuart
*
* 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... | ivstuart/tea-mud | src/test/java/com/ivstuart/tmud/command/combat/KillTest.java | Java | apache-2.0 | 3,011 |
package com.kt.acanoclient.obj;
import static com.kt.acanoclient.util.XmlUtil.readTextValue;
import static com.kt.acanoclient.util.XmlUtil.readBooleanValue;
import static com.kt.acanoclient.util.XmlUtil.readIntValue;
import static com.kt.acanoclient.util.XmlUtil.readLongValue;
import static com.kt.acanoclient.util.Xml... | vegazhou/acanoclient | src/main/java/com/kt/acanoclient/obj/CallLeg.java | Java | apache-2.0 | 19,488 |
/*
* Copyright 2002-2022 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... | spring-projects/spring-framework | spring-context/src/main/java/org/springframework/scheduling/annotation/Async.java | Java | apache-2.0 | 3,474 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | atteo/classindex | classindex-transformer/src/it/simple/parentmodule/src/main/java/org/atteo/classindex/CustomAnnotation.java | Java | apache-2.0 | 645 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-websecurityscanner | proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java | Java | apache-2.0 | 2,953 |
package com.rao.loveyou.ui.adapter.desiger;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
/**
* @auther rjl
* @time 2017/9/5.
* @descr
*/
public class DesigerManager01 extends RecyclerView.Lay... | r1912697476/LoveYou | LoveYou/app/src/main/java/com/rao/loveyou/ui/adapter/desiger/DesigerManager01.java | Java | apache-2.0 | 5,290 |
/*
This file is part of the Yet Another Extensible Simulator
Created on: Sep 30, 2009
yaestest.world.physical.path.testPPMTraversal
Copyright (c) 2008-2009 Ladislau Boloni
This package is licensed under the LGPL version 2.
*/
package yaestest.world.physical.path;
import org.junit.Test;
import yae... | NetMoc/Yaes | src/test/java/yaestest/world/physical/path/testPPMTraversal.java | Java | apache-2.0 | 2,069 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/common/audiences.proto
package com.google.ads.googleads.v10.common;
/**
* <pre>
* User list segment.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v10.common.UserListSegment}
*/
public final class UserListSe... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/common/UserListSegment.java | Java | apache-2.0 | 20,984 |
/*
* Copyright 2015 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | adaptris/interlok | interlok-core/src/test/java/com/adaptris/core/services/metadata/xpath/MultiItemConfiguredXpathQueryTest.java | Java | apache-2.0 | 5,488 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/transform/ListDeadLetterSourceQueuesResultStaxUnmarshaller.java | Java | apache-2.0 | 2,850 |
/*
* Copyright 2008-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | tschulte/griffon | subprojects/griffon-core/src/main/java/org/codehaus/griffon/runtime/util/AbstractCompositeResourceBundleBuilder.java | Java | apache-2.0 | 3,891 |
/*-
* #%L
* rapidoid-http-server
* %%
* Copyright (C) 2014 - 2020 Nikolche Mihajlovski and contributors
* %%
* 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... | rapidoid/rapidoid | rapidoid-http-server/src/main/java/org/rapidoid/http/NotFound.java | Java | apache-2.0 | 889 |
/**
* Copyright 2017 JessYan
*
* 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... | xiaobailong24/MVPArms | arms/src/main/java/com/jess/arms/base/BaseFragment.java | Java | apache-2.0 | 2,990 |
package com.msi.tough.model.elasticache;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
... | huxoll/TopStackCore | src/com/msi/tough/model/elasticache/CacheClusterBean.java | Java | apache-2.0 | 6,071 |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | clintmanning/new-empty | webapps/camunda-webapp/webapp/src/main/java/org/camunda/bpm/webapp/impl/security/filter/RequestMatcher.java | Java | apache-2.0 | 1,578 |
package egox.ez.controller;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
/**
*
* @author Gavin
*/
public class AbstractController {
protected boolean wantJson(HttpServletRequest request) {
return request.getRequestURI().endsWith(".json")... | egox/ez | src/main/java/egox/ez/controller/AbstractController.java | Java | apache-2.0 | 331 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.peertopark.spring.data.test;
import com.peertopark.spring.data.DataSourceConfig;
import com.peertopark.spring.data.SpringD... | peertopark/spring | data/src/test/java/com/peertopark/spring/data/test/SpringDataConfigTestImpl.java | Java | apache-2.0 | 777 |
/*
* CategoryImpl.java
* Created by: Scott A. Roehrig
* Created on: Jul 8, 2016
*/
package org.apache.bazaar;
import java.util.Collections;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.per... | saroehr/Bazaar | BazaarJPA/src/org/apache/bazaar/CategoryImpl.java | Java | apache-2.0 | 6,363 |
package com.biu.coolweather;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... | liya7907/CoolWeather | app/src/test/java/com/biu/coolweather/ExampleUnitTest.java | Java | apache-2.0 | 326 |
/*
* Copyright (C) 2014-2022 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... | phax/ph-commons | ph-json/src/main/java/com/helger/json/parser/JsonParser.java | Java | apache-2.0 | 27,408 |
/**
*
*/
package com.fj.modules.sys.dao;
import com.fj.common.persistence.CrudDao;
import com.fj.common.persistence.annotation.MyBatisDao;
import com.fj.modules.sys.entity.Role;
/**
* 角色DAO接口
* @author
* @version 2013-12-05
*/
@MyBatisDao
public interface RoleDao extends CrudDao<Role> {
public Role getByNam... | caimingqin/fj | src/main/java/com/fj/modules/sys/dao/RoleDao.java | Java | apache-2.0 | 701 |
package com.limagiran.hearthstone.heroi.view;
import com.limagiran.hearthstone.card.control.Card;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.netbeans.lib.awtextra.AbsoluteConstraints;
import org.netbeans.lib.awtextra.AbsoluteLayout;
import com.limagiran.hearthstone.util.AbsolutesConstraints;
/**... | limagiran/hearthstone | src/com/limagiran/hearthstone/heroi/view/Arma.java | Java | apache-2.0 | 1,195 |
package me.devsaki.hentoid.parsers.images;
import static me.devsaki.hentoid.util.network.HttpHelper.getOnlineDocument;
import android.util.Pair;
import androidx.annotation.NonNull;
import org.jsoup.nodes.Document;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import me.devsaki.hentoid.da... | AVnetWS/Hentoid | app/src/main/java/me/devsaki/hentoid/parsers/images/PururinParser.java | Java | apache-2.0 | 2,236 |
package com.huawei.network.opsdev.core;
public class RetRpc {
private int statusCode = 200;
private String status ="";
private String content = "";
private String msg = "";
public int getStatusCode() {
return statusCode;
}
public void setStatusCode(int statusCode) {
this.statusCode = statu... | HuaweiSNC/OpsDev | src/plugins/com.huawei.networkos.opsdev.core/src/com/huawei/network/opsdev/core/RetRpc.java | Java | apache-2.0 | 988 |
/*
* Copyright (C) 2012-2019 Jorrit "Chainfire" Jongma
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Chainfire/libsuperuser | libsuperuser/src/eu/chainfire/libsuperuser/HideOverlaysReceiver.java | Java | apache-2.0 | 2,312 |
/*
* Copyright (C) 2010 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... | miswenwen/My_bird_work | Bird_work/我的项目/Contacts/Contacts_liuqipeng/src/com/yunos/alicontacts/list/OnPhoneNumberPickerActionListener.java | Java | apache-2.0 | 1,245 |
/**
* 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... | kingargyle/turmeric-bot | camel-core/src/main/java/org/apache/camel/ThreadPoolRejectedPolicy.java | Java | apache-2.0 | 2,047 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/DescribeVpcEndpointConnectionsResultStaxUnmarshaller.java | Java | apache-2.0 | 3,245 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | joewalnes/idea-community | platform/platform-impl/src/com/intellij/openapi/editor/ex/RangeHighlighterEx.java | Java | apache-2.0 | 1,256 |
package com.bbd.dafei.biz.service.impl;
import com.bbd.dafei.biz.service.components.ApiUtils;
import com.bbd.dafei.biz.shared.TestService;
import com.bbd.dafei.common.exception.AccessApiException;
import com.bbd.dafei.common.util.ApiReturnBean;
import com.google.common.reflect.TypeToken;
import org.apache.http.NameVal... | wllpeter/red-alter | app/biz/service-impl/src/main/java/com/bbd/dafei/biz/service/impl/TestServiceImpl.java | Java | apache-2.0 | 1,442 |
package ru.job4j.map;
import org.junit.Test;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
/**
* Test.
*
* @author Stanislav (376825@mail.ru)
* @since 20.09.2017
*/
public class UserTest {
/**
* Test add.
*/
@Test
public void addTwoUsers() {
User userA ... | StanislavEsin/estanislav | chapter_004/src/test/java/ru/job4j/map/UserTest.java | Java | apache-2.0 | 607 |
package rainbowReef;
import game2D.GameWorld;
import java.awt.Point;
import java.util.Observable;
/**
* Class for small big legs.
* @author Fudou
*/
public class BiglegSmall extends Bigleg {
/**
*
* @param location The location point for the samll bigleg
*/
public BiglegSmall(Point location) {
super(loc... | haichuand/RanibowReef | src/rainbowReef/BiglegSmall.java | Java | apache-2.0 | 693 |
// OpenPHACTS RDF Validator,
// A tool for validating and storing RDF.
//
// Copyright 2012-2013 Christian Y. A. Brenninkmeijer
// Copyright 2012-2013 University of Manchester
// Copyright 2012-2013 OpenPhacts
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except i... | openphacts/Validator | metadata/src/uk/ac/manchester/cs/datadesc/validator/metadata/type/UriType.java | Java | apache-2.0 | 1,168 |
package com.cb.dao;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* Generic DAO (Data Access Object) with common methods to CRUD POJOs.
*
* <p>Extend this interface if you want typesafe (no casting necessary) DAO's for your
* domain objects.
*
* @author <a href="mailto:bwnoll@gm... | deng947/nbstudio | src/main/java/com/cb/dao/GenericDao.java | Java | apache-2.0 | 2,980 |
package foop.simple.xml;
import java.util.Map;
public interface NamespaceSupport {
public MaybeNode withNS(final String namespace, final String prefix);
public MaybeNode withNS(final Map<String, String> namespaces);
}
| cedricbou/simple-xml | src/main/java/foop/simple/xml/NamespaceSupport.java | Java | apache-2.0 | 226 |
/**
* 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... | csupsys/csignup | src/test/java/com/avihs/csignup/SignGuestbookServletTest.java | Java | apache-2.0 | 3,541 |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 187. Repeated DNA Sequences
*
* All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T,
* for example: "ACGAATTCCG". When studying DNA, it is sometimes ... | cy19890513/Leetcode-1 | src/main/java/com/fishercoder/solutions/_187.java | Java | apache-2.0 | 1,202 |
package com.reversecoder.permission.engine;
import com.reversecoder.permission.R;
import com.reversecoder.permission.dialog.DialogText;
import com.reversecoder.permission.dialog.PermissionDeniedInfoDialogFragment;
import com.reversecoder.permission.dialog.PermissionRationaleDialogFragment;
import com.reversecoder.perm... | reversecoder/rc-permission-androidstudio | rc-permission/src/main/java/com/reversecoder/permission/engine/PermissionConfig.java | Java | apache-2.0 | 3,636 |
/**
* Copyright (c) 2005-2009 springside.org.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* $Id: QueueAppender.java 1189 2010-09-01 17:24:12Z calvinxiu $
*/
package org.ssh.pm.log.appender;
import java.util.concurrent.BlockingQueue;
import org.apache.log4j.helpers.LogLog;
... | yangjiandong/sshapp | application/pm/src/main/java/org/ssh/pm/log/appender/QueueAppender.java | Java | apache-2.0 | 1,902 |
package com.example.coolweather.db;
import org.litepal.crud.DataSupport;
/**
* 县的数据
*
* @author ALion on 2017/4/13 18:25
*/
public class County extends DataSupport {
private int id;
private String countName;
private String weatherId;
private int cityId;
public int getId() {
retur... | AlionSSS/CoolWeather | app/src/main/java/com/example/coolweather/db/County.java | Java | apache-2.0 | 859 |
/*
* Copyright (C) 2018 Satomichi Nishihara
*
* 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... | BURAI-team/burai | src/burai/app/project/viewer/result/QEFXResultViewer.java | Java | apache-2.0 | 1,961 |
package org.apache.lucene.search.spell;
/*
* 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,... | terrancesnyder/solr-analytics | lucene/suggest/src/java/org/apache/lucene/search/spell/JaroWinklerDistance.java | Java | apache-2.0 | 4,288 |
/*
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... | quindai/Concert-App | platforms/android/src/co/randy/hack/MainActivity.java | Java | apache-2.0 | 1,206 |
package sh.isaac.dbConfigBuilder.fx;
import java.io.IOException;
/**
* Just a hack class to workaround issues launching javafx in module land
* {@link ContentManagerGUI}
*
* @author <a href="mailto:daniel.armbrust.list@sagebits.net">Dan Armbrust</a>
*/
public class ContentManagerGUI
{
public static void main(fi... | OSEHRA/ISAAC | integration/db-config-builder-ui/src/main/java/sh/isaac/dbConfigBuilder/fx/ContentManagerGUI.java | Java | apache-2.0 | 419 |
/*
* Copyright (C) 2019 Kaleidos Open Source SL
*
* This file is part of PATIO.
* PATIO 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 3 of the License, or
* (at your option) any later v... | EMResearch/EMB | jdk_11_gradle/cs/graphql/patio-api/src/test/java/patio/infrastructure/tests/Fixtures.java | Java | apache-2.0 | 2,510 |
package de.sopa.manager;
import de.sopa.scene.BaseScene;
/**
* David Schilling - davejs92@gmail.com.
*/
public interface BaseSceneService {
void start();
void end();
BaseScene getCurrentScene();
}
| pongo710/sopa | app/src/main/java/de/sopa/manager/BaseSceneService.java | Java | apache-2.0 | 219 |
/*
* 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... | terrancesnyder/solr-analytics | solr/core/src/java/org/apache/solr/search/BitDocSet.java | Java | apache-2.0 | 8,790 |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | jitsi/jitsi | src/net/java/sip/communicator/impl/gui/main/call/CallManager.java | Java | apache-2.0 | 154,033 |
package com.valarhao.valarnews.module.zhihu.module.daily;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;... | ValarHao/ValarNews | app/src/main/java/com/valarhao/valarnews/module/zhihu/module/daily/DailyFragment.java | Java | apache-2.0 | 3,945 |
package com.github.joschi.jadconfig.jodatime.converters;
import com.github.joschi.jadconfig.Converter;
import com.github.joschi.jadconfig.ParameterException;
import org.joda.time.Minutes;
/**
* Converter for type {@link org.joda.time.Minutes}
*
* @author jschalanda
*/
public class MinutesConverter implements Conv... | joschi/JadConfig | src/main/java/com/github/joschi/jadconfig/jodatime/converters/MinutesConverter.java | Java | apache-2.0 | 1,720 |