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 org.example.personservice;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 2.7.0.r... | sjoshi1702/fis2springbootwebservice | target/generated/src/main/java/org/example/personservice/PersonService.java | Java | apache-2.0 | 1,213 |
package com.example.dangweather.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.tex... | dangmax/dangWeather | src/com/example/dangweather/util/Utility.java | Java | apache-2.0 | 3,732 |
/*
* Copyright 2013-2019 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 ap... | alexander071/cf-java-client | cloudfoundry-client/src/main/java/org/cloudfoundry/doppler/EventType.java | Java | apache-2.0 | 1,550 |
/*
* 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 ... | robzor92/hops | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/applicationsmanager/MockAsm.java | Java | apache-2.0 | 10,852 |
/*
* 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 ... | shaoxuan-wang/flink | flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/YearMonthIntervalType.java | Java | apache-2.0 | 6,100 |
package hr.unidu.oop.p08;
import javax.swing.*;
/*
* Najjednostavnija swing GUI aplikacija
*/
// Klasa je izvedena iz klase JFrame i ima pristup svinm atributima i
// metodama u klasi JFRame i njoj nadređenih klasa.
//public class NajjednostavnijiGui extends JFrame{
public class NajjednostavnijiGui extends JFrame{
... | kzubrinic/oop | oop/src/hr/unidu/oop/p08/NajjednostavnijiGui.java | Java | apache-2.0 | 511 |
package com.gem.xposed;
import static de.robv.android.xposed.XposedBridge.*;
import static de.robv.android.xposed.XposedHelpers.*;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annota... | greg2001/GemXperiaXposed | src/com/gem/xposed/AutoHook.java | Java | apache-2.0 | 9,043 |
package cn.felord.wepay.ali.sdk.api.domain;
import java.util.Date;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
/**
* 保险发票申请
*
* @author auto create
* @version $Id: $Id
*/
public class AlipayInsSceneInvoiceApplyModel extends AlipayObject {
priv... | NotFound403/WePay | src/main/java/cn/felord/wepay/ali/sdk/api/domain/AlipayInsSceneInvoiceApplyModel.java | Java | apache-2.0 | 4,860 |
package nam.model.deployment;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.apache.commons.lang.StringUtils;
import org.aries.ui.AbstractWizardPage;
import nam.model.Deployment;
import nam.model.util.DeploymentUtil;
@SessionScoped
@Named("deploym... | tfisher1226/ARIES | nam/nam-view/src/main/java/nam/model/deployment/DeploymentRecord_ConfigurationSection.java | Java | apache-2.0 | 1,076 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/enums/feed_item_target_status.proto
package com.google.ads.googleads.v10.enums;
public final class FeedItemTargetStatusProto {
private FeedItemTargetStatusProto() {}
public static void registerAllExtensions(
com.... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/enums/FeedItemTargetStatusProto.java | Java | apache-2.0 | 2,711 |
/*
* 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-iot/src/main/java/com/amazonaws/services/iot/model/transform/AttachPolicyRequestProtocolMarshaller.java | Java | apache-2.0 | 2,601 |
// Copyright 2015 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... | cushon/bazel | src/main/java/com/google/devtools/build/lib/rules/android/AndroidSdkProvider.java | Java | apache-2.0 | 12,257 |
/*
* #%L
* =====================================================
* _____ _ ____ _ _ _ _
* |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | |
* | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| |
* | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ |
* |_| |_| \__,_|___/... | trustathsh/visitmeta | visualization/src/main/java/de/hshannover/f4/trust/visitmeta/graphCalculator/jung/LayoutBipartite2D.java | Java | apache-2.0 | 13,466 |
/**
*
*/
package com.mkyong.rest;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import ... | cams7/apps-android | hmkcode/android-post-json_server/src/com/mkyong/rest/PersonService.java | Java | apache-2.0 | 2,342 |
/*
* Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | IHTSDO/snow-owl | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/datastore/services/ISnomedRefSetDerivationService.java | Java | apache-2.0 | 2,093 |
package com.sequenceiq.it.cloudbreak.action.v4.stack;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response;
import com.sequenceiq.it.cloudbreak.CloudbreakClient;
import com.sequenceiq.it.cloudbreak.action.Action;
import... | hortonworks/cloudbreak | integration-test/src/main/java/com/sequenceiq/it/cloudbreak/action/v4/stack/StackAttachRecipeAction.java | Java | apache-2.0 | 1,308 |
/**
* Copyright 2010 - 2013 CosmoCode GmbH
*
* 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... | cosmocode/cosmocode-commons | src/main/java/de/cosmocode/commons/reflect/IsSuperTypeOf.java | Java | apache-2.0 | 1,795 |
/*
* #%L
* Diana UI Core
* %%
* Copyright (C) 2014 Diana UI
* %%
* 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 req... | dianaui/dianaui-universal | core/src/main/java/com/dianaui/universal/core/client/ui/constants/IconFlip.java | Java | apache-2.0 | 1,327 |
/*
* Copyright (C) 2016 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... | aosp-mirror/platform_frameworks_support | samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/SupportTransitionDemos.java | Java | apache-2.0 | 5,061 |
/*
Copyright 2015 Balwinder Sodhi
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... | bsodhi/mvc4j | netbeans_project/src/org/javamvc/core/annotations/Authorize.java | Java | apache-2.0 | 1,027 |
package couk.doridori.android.lib.io;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* <p>A receiver for checking network status changes.</p>
*
... | abdyer/AndroidUtilDump | android/AndroidUtilDump/src/couk/doridori/android/lib/io/ConnectivityReceiver.java | Java | apache-2.0 | 2,902 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | Asitha/andes | modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/FlowControlledQueueMessageDeliveryImpl.java | Java | apache-2.0 | 7,541 |
package net.katsuster.ememu.generic.core;
/**
* 割り込みを発生させるコア。
*/
public interface INTSource {
/**
* 割り込み先となるコアを取得します。
*
* @return 割り込み先のコア
*/
public abstract INTDestination getINTDestination();
/**
* 割り込み先となるコアを設定します。
*
* @param c 割り込み先のコア
*/
public abstract v... | katsuster/ememu | emu/src/net/katsuster/ememu/generic/core/INTSource.java | Java | apache-2.0 | 1,094 |
package com.vitco.app.export.generic;
import com.vitco.app.core.data.Data;
import com.vitco.app.core.data.container.Voxel;
import com.vitco.app.export.collada.ColladaExportWrapper;
import com.vitco.app.export.generic.container.*;
import com.vitco.app.layout.content.console.ConsoleInterface;
import com.vitco.app.low.hu... | simlu/voxelshop | src/main/java/com/vitco/app/export/generic/ExportDataManager.java | Java | apache-2.0 | 30,528 |
package org.xbase.android.adapter;
import java.util.List;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
public class BaseFragmentPagerAdapter extends FragmentPagerAdapter {
List<Fragment> list;
public BaseFragmentPagerAd... | geliangdashen/AndroidBaseLibrary-X | Base/src/main/java/org/xbase/android/adapter/BaseFragmentPagerAdapter.java | Java | apache-2.0 | 594 |
/**
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obt... | WASdev/standards.jsr352.jbatch | com.ibm.jbatch.container/src/main/java/com/ibm/jbatch/container/util/BatchPartitionPlan.java | Java | apache-2.0 | 1,750 |
/*
* Copyright 2013-2019 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... | sfat/spring-cloud-netflix | spring-cloud-netflix-ribbon/src/test/java/org/springframework/cloud/netflix/ribbon/okhttp/OkHttpLoadBalancingClientTests.java | Java | apache-2.0 | 6,580 |
/*
* Copyright © 2017 Daniel Dias (daniel.dias.analistati@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | Daniel-Dos/DanielDias-MongoDB | RestFul-MongoDB/src/main/java/br/com/danieldias/restful/util/TransacaoInterceptor.java | Java | apache-2.0 | 1,800 |
package com.xem.mzbphoneapp.atys;
import android.app.Activity;
import android.os.Bundle;
import com.xem.mzbphoneapp.R;
import com.xem.mzbphoneapp.view.CircularImage;
/**
* Created by xuebing on 15/6/9.
*/
public class Circular extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) ... | wxb2939/rwxlicai | mzb-phone-app-android/app/src/main/java/com/xem/mzbphoneapp/atys/Circular.java | Java | apache-2.0 | 579 |
/*
* Copyright (c) 2013-2015 by appPlant UG. All rights reserved.
*
* @APPPLANT_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apache License
* Version 2.0 (the 'License'). You may not use this file except in
* complia... | Anu2g/cordova-plugin-local-notifications | src/android/ClearReceiver.java | Java | apache-2.0 | 1,713 |
package io.tguduru.spring.cloud.shipping;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ShippingApplication {
public static void main(String[] args) {
SpringApplication.run(ShippingApplication.cl... | tguduru/ecommerce | shipping/src/main/java/io/tguduru/spring/cloud/shipping/ShippingApplication.java | Java | apache-2.0 | 340 |
package com.netto.client.router;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.netto.client.provider.AbstractServiceProvider;
import com.netto.client.provider.ServiceProvider;
import com.netto.core.context.RouteConfig;
import com.netto.core.context.RpcContext;
import com.... | sylinklee/netto_rpc | netto-client/src/main/java/com/netto/client/router/ServiceRouter.java | Java | apache-2.0 | 1,776 |
package org.lightadmin.api.config.management.rmi;
public interface DataManipulationService {
void truncateDatabase();
void populateDatabase();
} | pramoth/light-admin | lightadmin-core/src/main/java/org/lightadmin/api/config/management/rmi/DataManipulationService.java | Java | apache-2.0 | 156 |
/*
------------------------------------------------------------------------
JavaANPR - Automatic Number Plate Recognition System for Java
------------------------------------------------------------------------
This file is a part of the JavaANPR, licensed under the terms of the
Educational Community License
... | caiofabioaraujo/ce-e | ce-e/src/main/java/org/orc/imageanalysis/CarSnapshotGraph.java | Java | apache-2.0 | 6,766 |
package ai.elimu.util.epub;
import ai.elimu.model.enums.StoryBookProvider;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException... | literacyapp-org/literacyapp-web | src/main/java/ai/elimu/util/epub/EPubChapterExtractionHelper.java | Java | apache-2.0 | 15,856 |
/*
* Software Name : ATK
*
* Copyright (C) 2007 - 2012 France Télé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... | Orange-OpenSource/ATK | gui/src/main/java/com/orange/atk/atkUI/corecli/utils/MatosResolver.java | Java | apache-2.0 | 2,127 |
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | sunny256/crate | core/src/main/java/io/crate/core/StringUtils.java | Java | apache-2.0 | 2,795 |
package com.azz.azbarrage;
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);
}
} | natobww/MyTest | app11/src/test/java/com/azz/azbarrage/ExampleUnitTest.java | Java | apache-2.0 | 310 |
/*
* Copyright (C) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | cgruber/guice | extensions/servlet/test/com/google/inject/servlet/FilterDispatchIntegrationTest.java | Java | apache-2.0 | 15,370 |
package com.huawei.oj1;
import java.math.BigDecimal;
import java.util.Scanner;
public class HighPrecisionAdd {
private static Scanner sc;
public static void main(String[] args) {
sc=new Scanner(System.in);
String str1=sc.nextLine();
String str2=sc.nextLine();
System.out.println(add(str1,str2));
}
public... | Git-Yogurt/AllDemoProgrames | HWOJ/src/com/huawei/oj1/HighPrecisionAdd.java | Java | apache-2.0 | 517 |
/*****************************************************************
<copyright>
Morozko Java Library org.morozko.java.mod.db
Copyright (c) 2006 Morozko
All rights reserved. This program and the accompanying materials
are made available under the terms of the Apache License v2.0
which accompanies this dis... | fugeritaetas/morozko-lib | java14-morozko/org.morozko.java.mod.db/src/org/morozko/java/mod/db/metadata/query/QueryColumnModel.java | Java | apache-2.0 | 2,264 |
/*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.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
*
* Un... | delebash/orientdb-parent | core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLFindReferences.java | Java | apache-2.0 | 3,822 |
package no.computas.zebra.solution;
/*
* #%L
* Zebra
* %%
* Copyright (C) 2014 Computas AS
* %%
* 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... | mehmandarov/zebra-puzzle-workshop | src/main/java/no/computas/zebra/solution/Exercise4Jena.java | Java | apache-2.0 | 4,010 |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: kulle ... | opetrovski/development | oscm-paymentprocessing-unittests/javasrc/org/oscm/payproc/stubs/PaymentServiceProviderAdapterStub.java | Java | apache-2.0 | 3,557 |
package com.heaven7.java.mvcs.test.teamstate;
public class Team2Eat extends BaseTeamState{
}
| LightSun/Mvcs | Mvcs-java/src/test/java/com/heaven7/java/mvcs/test/teamstate/Team2Eat.java | Java | apache-2.0 | 102 |
package com.theOldMen.layout;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
public class UnClickableFrameLayout extends BuildLayerFrameLayout{
public UnClickableFrameLayout(Context context){
super(context);
}
public UnClickableFrameLayout(Context context, Attr... | ChanJLee/DecryptStranger | src/java/com/theOldMen/layout/UnClickableFrameLayout.java | Java | apache-2.0 | 567 |
package ru.job4j.testtask;
import ru.job4j.testtask.figures.Bishop;
/**
* Created by Comp on 15.07.2017.
*/
public class StartUI {
private static Figure figure;
private StartUI game;
private Bishop bishop;
private Cell cells;
private Board position;
public StartUI(Board board, Figure figur... | kirillkrohmal/krohmal | chapter_002/src/main/java/ru/job4j/testtask/StartUI.java | Java | apache-2.0 | 1,735 |
package com.voxeo.moho.presence.impl;
import java.util.Map;
import me.prettyprint.cassandra.serializers.ObjectSerializer;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.beans.ColumnSlic... | voxeolabs/moho | moho-presence/src/main/java/com/voxeo/moho/presence/impl/AbstractCassandraPresenceStore.java | Java | apache-2.0 | 3,600 |
/*
Copyright 2010-2022 BusinessCode GmbH, Germany
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... | businesscode/BCD-UI | Server/src/main/java/de/businesscode/bcdui/el/StandardELContext.java | Java | apache-2.0 | 2,002 |
/*
* Copyright 2014-2020 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... | vpavic/spring-session | spring-session-samples/spring-session-sample-boot-webflux-custom-cookie/src/main/java/sample/SessionController.java | Java | apache-2.0 | 1,460 |
package org.apache.archiva.web.xmlrpc.api;
/*
* 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 L... | hiredman/archiva | archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-api/src/main/java/org/apache/archiva/web/xmlrpc/api/AdministrationService.java | Java | apache-2.0 | 4,640 |
package com.yscardII.framework.hibernate.service.impl;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import javax.annotati... | iamtowne/yscardII | src/main/java/com/yscardII/framework/hibernate/service/impl/AHcardServiceImpl.java | Java | apache-2.0 | 8,544 |
package com.wsl.library.widget.demo;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by wsl on 17/4/18.
*/
public class TestLayout extends ViewGroup{
private stati... | doubleDragon/DdRefreshLayout | app/src/main/java/com/wsl/library/widget/demo/TestLayout.java | Java | apache-2.0 | 1,484 |
/*
* Copyright 2015 Steve Ash
*
* 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... | steveash/jg2p | jg2p-core/src/main/java/com/github/steveash/jg2p/seq/PhonemeACrfTrainer.java | Java | apache-2.0 | 5,623 |
package kr.co.ibksystem.closing_report_automation.poi.sample;
import java.io.File;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.userm... | SeungyoonLee/closing-report-automation | closing-report-automation/src/test/java/kr/co/ibksystem/closing_report_automation/poi/sample/ExcelDatabase.java | Java | apache-2.0 | 2,249 |
package com.github.android.downloader.net;
import android.text.TextUtils;
import android.util.Log;
import com.github.android.downloader.bean.DownloadFile;
import com.github.android.downloader.bean.DownloadInfo;
import com.github.android.downloader.io.FilePartAction;
import java.net.HttpURLConnection;
import java.net... | 8enet/libdownloadmanager | app/src/main/java/com/github/android/downloader/net/HttpDownAnalysis.java | Java | apache-2.0 | 3,605 |
package net.deusaquilus.tableprinter;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;
public class RowSplitUtilTest {
public void assertArraysEqual(String[] one, String[] two) {
Assert.assertTrue(
new ArrayList<String>(Arrays.asList(one)).equals(
new... | deusaquilus/TablePrinter | src/test/java/net/deusaquilus/tableprinter/RowSplitUtilTest.java | Java | apache-2.0 | 1,609 |
/**
* 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... | chinmaykolhatkar/incubator-apex-core | engine/src/test/java/com/datatorrent/stram/moduleexperiment/InjectConfig.java | Java | apache-2.0 | 1,805 |
/*******************************************************************************
* Copyright (c) 2017 University of Stuttgart.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and the Apache License 2.0 which both accompany ... | YannicSowoidnich/winery | org.eclipse.winery.repository/src/test/java/org/eclipse/winery/repository/resources/servicetemplates/boundarydefinitions/propertyconstraints/PropertyConstraintsResourceTest.java | Java | apache-2.0 | 1,865 |
/*
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.ansj.app.crf;
import java.io.IOException;
import java.io.InputStream;
import java.io.Outpu... | jimichan/maya_seg | src/main/java/org/ansj/app/crf/Bits.java | Java | apache-2.0 | 4,667 |
package ru.szhernovoy.carstore.controllers;/**
* Created by szhernovoy on 16.01.2017.
*/
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ArrayNode;
import org.codehaus.jackson.node.JsonNodeFactory;
import org.codehaus.jackson.node.ObjectNode;
import ru.szhernovoy.carstore.dao.OrderDBM... | SergeyZhernovoy/Java-education | PartX/lesson2/src/main/java/ru/szhernovoy/carstore/controllers/UpdateOrder.java | Java | apache-2.0 | 3,113 |
package com.jiacw.t03mynews.adapter;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;
import com.jiacw.t03mynews.R;
import com.jiacw.t0... | jiacw/MyNews | app/src/main/java/com/jiacw/t03mynews/adapter/TopViewPageAdapter.java | Java | apache-2.0 | 2,249 |
/*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | googleapis/java-bigtable-hbase | bigtable-client-core-parent/bigtable-hbase/src/main/java/com/google/cloud/bigtable/hbase/AbstractBigtableRegionLocator.java | Java | apache-2.0 | 4,728 |
package com.google.devrel.training.conference.spi;
import static com.google.devrel.training.conference.service.OfyService.ofy;
import static com.google.devrel.training.conference.service.OfyService.factory;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.goog... | adeon96/practsixpom | src/main/java/com/google/devrel/training/conference/spi/ConferenceApi.java | Java | apache-2.0 | 20,935 |
package com.ppcxy.cyfm.sys.web.common;
import com.ppcxy.common.Constants;
import com.ppcxy.common.entity.search.SearchOperator;
import com.ppcxy.common.entity.search.Searchable;
import com.ppcxy.common.web.bind.annotation.PageableDefaults;
import com.ppcxy.common.web.bind.annotation.SearchableDefaults;
import com.ppcx... | ppcxy/cyfm | cyfm-web/src/main/java/com/ppcxy/cyfm/sys/web/common/DatasourceShooseController.java | Java | apache-2.0 | 4,041 |
package com.br.uepb.controller;
import com.br.uepb.business.MedicoesBusiness;
import com.br.uepb.model.MedicaoBalancaDomain;
public class Teste {
public static void main(String[] args) {
MedicoesBusiness med = new MedicoesBusiness();
MedicaoBalancaDomain bal = med.lisatUltimaMedicaoBalanca(4);
System.out.pri... | lukasteles/REIS | reisProject/reisProject-presentation/src/main/java/com/br/uepb/controller/Teste.java | Java | apache-2.0 | 370 |
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
/**
* 清单7-1-4-1 使用正确的scheme进行授权
*/
public class Sample_AuthFailed1 implements Watcher {
final static String SERVER_LIST = "domain1.book.zookeeper:2181";
static ZooKeeper zkClient... | jacktomcat/zookeeper | src/main/java/Sample_AuthFailed1.java | Java | apache-2.0 | 1,107 |
package com.bct.gpstracker.server;
import java.util.LinkedList;
import android.util.Log;
import com.bct.gpstracker.common.Constants;
import com.bct.gpstracker.service.CommunicationService;
import com.bct.gpstracker.util.ByteUtil;
import com.bct.gpstracker.util.CommUtil;
import com.bct.gpstracker.util.SocketClient;
... | Tomorrowhi/GpsTracker | src/com/bct/gpstracker/server/MessageSenderThread.java | Java | apache-2.0 | 4,150 |
package com.seregamorph.proxy;
import com.seregamorph.proxy.escape.EscapeUtils;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketAddress;
import ... | seregamorph/proxy | src/main/java/com/seregamorph/proxy/Proxy.java | Java | apache-2.0 | 4,433 |
package com.squarespace.less.match;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Builds a double-array trie (DAT) for fast incremental lookup of key / value pairs. We
* do not store the actual value in... | Squarespace/less-compiler | src/main/java/com/squarespace/less/match/DATBuilder.java | Java | apache-2.0 | 8,488 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | madmax983/aura | aura/src/main/java/org/auraframework/builder/JavascriptCodeBuilder.java | Java | apache-2.0 | 1,401 |
/*
* 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 ... | liquidm/druid | extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3DataSegmentFinder.java | Java | apache-2.0 | 5,720 |
package com.bgmagar.dao.impl;
import java.sql.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import com.bgmagar.dao.ProductDao;
import com.bgmagar.domain.Category;
import com.bgmagar.domain.Product;
import com.bgmagar.map... | negzep/Inventory-Management | REST/src/main/java/com/bgmagar/dao/impl/ProductDaoImpl.java | Java | apache-2.0 | 1,758 |
/*
* 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-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/transform/MessageTagMarshaller.java | Java | apache-2.0 | 2,190 |
package ru.kirkazan.esadykov.investigation;
import javax.mail.internet.MimeUtility;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author esadykov
* @since 27.02.14 15:55
*/
@WebServlet (urlPatterns = "/download"... | esadykov/investigation | servlet/src/main/java/ru/kirkazan/esadykov/investigation/DownloadServlet.java | Java | apache-2.0 | 1,226 |
/*
* Copyright 2017 Erik Pohle
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | ErikP0/sheepshead-manager | app/src/main/java/sheepshead/manager/game/PlayerRole.java | Java | apache-2.0 | 3,981 |
/*
* Copyright 2016 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co.,
* Inc., Kenilworth, NJ, USA.
*
* 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/l... | Merck/Halyard | sail/src/main/java/com/msd/gin/halyard/sail/HBaseSailFactory.java | Java | apache-2.0 | 2,279 |
package com.taoswork.tallycheck.datadomain.base.presentation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by Gao Yuan on 2015/9/2.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({Elemen... | tallycheck/data-support | datadomain-base/src/main/java/com/taoswork/tallycheck/datadomain/base/presentation/PresentationEnumClass.java | Java | apache-2.0 | 421 |
/*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... | imeeting/Android-PullToRefresh | sample/src/com/handmark/pulltorefresh/samples/PullToRefreshListActivity.java | Java | apache-2.0 | 5,909 |
package pro.taskana.common.internal.security;
import java.lang.reflect.Method;
import java.security.AccessController;
import java.security.Principal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
impo... | Taskana/taskana | common/taskana-common-security/src/main/java/pro/taskana/common/internal/security/CurrentUserContextImpl.java | Java | apache-2.0 | 5,882 |
// Copyright 2022 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202202/ContentServiceInterface.java | Java | apache-2.0 | 2,506 |
package com.github.alexcojocaru.mojo.elasticsearch.v2;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author alexcojocaru
*
*/
public class NetUtil
{
public enum ElasticsearchPort
{
... | alexcojocaru/elasticsearch-maven-plugin | src/test/java/com/github/alexcojocaru/mojo/elasticsearch/v2/NetUtil.java | Java | apache-2.0 | 2,774 |
/*
* Copyright 2007 Penn State University
* 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... | WebSciences/citeseer-ucl | src/java/edu/psu/citeseerx/dao2/logic/CSXDAOImpl.java | Java | apache-2.0 | 27,834 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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/LICE... | dbeaver/dbeaver | plugins/org.jkiss.dbeaver.erd.ui/src/org/jkiss/dbeaver/erd/ui/layout/algorithm/direct/DirectedGraphLayoutVisitor.java | Java | apache-2.0 | 8,159 |
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.druid.model.datasource;
import com.yahoo.bard.webservice.druid.model.query.DruidFactQuery;
import com.fasterxml.jackson.annotation.JsonIgno... | yahoo/fili | fili-core/src/main/java/com/yahoo/bard/webservice/druid/model/datasource/QueryDataSource.java | Java | apache-2.0 | 1,042 |
package jp.mydns.sys1yagi.android.androidlogginglog4jsample;
import java.io.File;
import org.apache.log4j.Level;
import android.content.Context;
import de.mindpipe.android.logging.log4j.LogConfigurator;
public class ConfigureLog4j {
public static void configure(Context context) {
final LogConfigurator l... | android-opensource-library-56/android-opensource-library-56 | 08-01-android-logging-log4j/AndroidLoggingLog4jSample/src/jp/mydns/sys1yagi/android/androidlogginglog4jsample/ConfigureLog4j.java | Java | apache-2.0 | 882 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/util/bytesearch/AlignRule.java | Java | apache-2.0 | 2,754 |
package com.felix.crazyjava.item1605;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created with IntelliJ IDEA.
* Description: 通过一个取钱的操作来模拟线程安全问题,账户实体类
* Author: Felix
* Date: 2017/3/8
* Time: 13:24
*/
public class Account {
private final ReentrantLock lock = new ReentrantLock();
private Stri... | felix9064/IdeaProjects | CrazyJava/src/com/felix/crazyjava/item1605/Account.java | Java | apache-2.0 | 2,206 |
/*
* Copyright (C) 2008 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... | SmileMx/Screen_Launcher | Launcher/src/com/tcl/simpletv/launcher2/BubbleTextView.java | Java | apache-2.0 | 12,519 |
package org.jtrim2.executor;
import java.util.Collections;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
import org.jtrim2.concurrent.WaitableSignal;
import org.jtrim2.testutils.executor.GenericExecutorTests;
import org.jtrim2.testutils.executor.TestE... | kelemen/JTrim | subprojects/jtrim-executor/src/test/java/org/jtrim2/executor/DedicatedThreadTaskExecutorTest.java | Java | apache-2.0 | 4,256 |
package com.ssh.test;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ssh.entity.Right;
import com.ssh.service.RightService;
public class RightServiceTest {
priva... | tlhhup/ssh | src/test/java/com/ssh/test/RightServiceTest.java | Java | apache-2.0 | 1,293 |
package com.guanqing.subredditor.UI.Widgets.Indicators;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.ValueAnimator;
import java.util.ArrayList;
import java.util.List;
/**
* Created b... | haoguanqing/Subreddit_Reader | app/src/main/java/com/guanqing/subredditor/UI/Widgets/Indicators/LineScaleIndicator.java | Java | apache-2.0 | 2,011 |
/*-
* #%L
* Bobcat
* %%
* Copyright (C) 2016 Cognifide 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 requi... | Cognifide/bobcat | bb-core/src/main/java/com/cognifide/qa/bb/provider/selenium/webdriver/modifiers/capabilities/CapabilitiesModifiers.java | Java | apache-2.0 | 1,847 |
package de.javawi.jstun.test;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.logging.Logger;
import de.javawi.jstun.attribute.AbstractMappedAddress;
import de.javawi.jstun.attribute.ErrorCo... | asymmetric/jstun2 | src/de/javawi/jstun/test/BindingRequestTest.java | Java | apache-2.0 | 3,025 |
package org.gradle.test.performance.mediummonolithicjavaproject.p268;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5367 {
Production5367 objectUnderTest = new Production5367();
@Test
public void testProperty0() {
Production5364 value = new Production5364();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p268/Test5367.java | Java | apache-2.0 | 2,174 |
package com.huawei.esdk.fusioncompute.local.model.net;
/**
* 根据VLANID查询虚拟交换端口数量响应。
* <p>
* @since eSDK Cloud V100R003C50
*/
public class QueryVspsCountResp
{
/**
* 总数量。
*/
private Integer vspTotalNum;
public Integer getVspTotalNum()
{
return vspTotalNum;
}
public... | eSDK/esdk_cloud_fc_cli | source/FC/native/esdk_fc_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusioncompute/local/model/net/QueryVspsCountResp.java | Java | apache-2.0 | 454 |
/*
* Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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
... | Spaceghost/OrientDB | kv/src/main/java/com/orientechnologies/orient/kv/network/protocol/http/command/OKVServerCommandAbstract.java | Java | apache-2.0 | 2,188 |
package com.bhagat.selenium.webdriver;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import static org.junit.Assert.assertTrue;
public class HtmlUnitDriverTest {
private static WebDriver... | bhagatsingh/learn-selenium | src/test/java/com/bhagat/selenium/webdriver/HtmlUnitDriverTest.java | Java | apache-2.0 | 791 |
package com.compomics.util.gui;
import com.compomics.util.gui.renderers.AlignedListCellRenderer;
import javax.swing.DefaultComboBoxModel;
import javax.swing.SwingConstants;
/**
* Class which allows the selection of the right identification.
*
* @author Marc Vaudel
*/
public class SampleSelection extends javax.swi... | compomics/compomics-utilities | src/main/java/com/compomics/util/gui/SampleSelection.java | Java | apache-2.0 | 6,140 |
/*
* Copyright 2012 William Hamilton
*
* 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 ... | williamleif/PSRToolbox | src/cpsr/environment/exceptions/EnvironmentException.java | Java | apache-2.0 | 1,061 |