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 com.hazelcast.nio.tcp;
import com.hazelcast.nio.Packet;
import com.hazelcast.spi.impl.PacketHandler;
import com.hazelcast.test.AssertTask;
import org.junit.Before;
import org.junit.Test;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collections;
i... | lmjacksoniii/hazelcast | hazelcast/src/test/java/com/hazelcast/nio/tcp/TcpIpConnection_BaseTest.java | Java | apache-2.0 | 7,317 |
/*
* Copyright (c) 2016, 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... | wso2-extensions/identity-governance | components/org.wso2.carbon.identity.captcha/src/main/java/org/wso2/carbon/identity/captcha/filter/CaptchaFilter.java | Java | apache-2.0 | 8,907 |
package com.gs.Classifier;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.util.HashMap;
import java.util.Map;
/**
* ѵÁ·¼¯¹ÜÀíÆ÷
*/
pu... | gsh199449/DistributedCrawler | src/main/java/com/gs/Classifier/TrainingDataManager.java | Java | apache-2.0 | 4,595 |
/**
* This file is part of the Iritgo/Aktario Framework.
*
* Copyright (C) 2005-2011 Iritgo Technologies.
* Copyright (C) 2003-2005 BueroByte GbR.
*
* Iritgo 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 ... | iritgo/iritgo-aktario | aktario-participant/src/main/java/de/iritgo/aktario/participant/command/AddAttributeToParticipantStateCommand.java | Java | apache-2.0 | 2,082 |
package org.blueo.csv;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.util.Assert;
public class Parse... | Sean-PAN2014/BlueOrange | blueo-commons/src/main/java/org/blueo/csv/Parser.java | Java | apache-2.0 | 1,024 |
package com.irina.xcep.utils.barcode;
/*
* Copyright 2009 ZXing 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
... | peke87ou/XCeP | XCeP/src/com/irina/xcep/utils/barcode/IntentResultBarcode.java | Java | apache-2.0 | 2,984 |
/*
* $Id: StrutsResultSupport.java 651946 2008-04-27 13:41:38Z apetrelli $
*
* 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 ... | xiaguangme/struts2-src-study | src/org/apache/struts2/dispatcher/StrutsResultSupport.java | Java | apache-2.0 | 8,804 |
package com.blossomproject.ui.web.administration.user;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyList;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.anyBoolean;
import static org.mockito.Mo... | mgargadennec/blossom | blossom-ui/blossom-ui-web/src/test/java/com/blossomproject/ui/web/administration/user/UsersControllerTest.java | Java | apache-2.0 | 18,707 |
/*
* 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... | Praveen2112/presto | core/trino-main/src/test/java/io/trino/operator/aggregation/TestArrayAggregation.java | Java | apache-2.0 | 9,927 |
package bamboo.pandas;
import org.skife.jdbi.v2.ResultIterator;
import java.util.*;
import static bamboo.pandas.PandasType.AGENCY;
import static bamboo.pandas.PandasType.COLLECTION;
import static bamboo.pandas.PandasType.SUBJECT;
import static java.util.stream.Collectors.toSet;
public class PandasDirectorySync {
//... | nla/bamboo | ui/src/bamboo/pandas/PandasDirectorySync.java | Java | apache-2.0 | 5,798 |
package ru.job4j.stackandqueuecontainers;
import ru.job4j.simplelinkedlist.SimpleLinkedList;
import java.util.NoSuchElementException;
/**.
* Class SimpleStack uses container based on linked list creates simple stack container.
* @author Mikhail Vlasov
* @since 03.25.2018
* @version 1
*/
public class SimpleStack... | jawer/mvlasov | chapter_005/src/main/java/ru/job4j/stackandqueuecontainers/SimpleStack.java | Java | apache-2.0 | 1,589 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2/session_entity_type.proto
package com.google.cloud.dialogflow.v2;
/**
*
*
* <pre>
* The request message for
* [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionE... | vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java | Java | apache-2.0 | 21,231 |
/*
* 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 ... | alanfgates/hive | ql/src/java/org/apache/hadoop/hive/ql/exec/MaterializedViewTask.java | Java | apache-2.0 | 3,612 |
package org.minimalj.repository.sql;
import org.junit.BeforeClass;
import org.junit.Test;
import org.minimalj.model.Keys;
import org.minimalj.model.annotation.Size;
import org.minimalj.repository.DataSourceFactory;
public class SqlHistorizedOptimisticLockingTest {
private static SqlHistorizedRepository repository;... | BrunoEberhard/minimal-j | ext/historized/src/test/java/org/minimalj/repository/sql/SqlHistorizedOptimisticLockingTest.java | Java | apache-2.0 | 1,620 |
/*
* 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... | bloomberg/presto | presto-main/src/main/java/com/facebook/presto/sql/planner/optimizations/UnaliasSymbolReferences.java | Java | apache-2.0 | 33,443 |
/*
* Copyright 2000-2011 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... | consulo/consulo | modules/base/lang-impl/src/main/java/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java | Java | apache-2.0 | 2,468 |
package it.lutech.corso;
public class Client {
Contratto cc;
void usaContratto() {
System.out.println(cc.metodo(10, "pippo"));
}
public Contratto getCc() {
return cc;
}
public void setCc(Contratto cc) {
this.cc = cc;
}
}
| andrea-colleoni/corso-lutech | EsempioIoC/src/it/lutech/corso/Client.java | Java | apache-2.0 | 265 |
package edu.jogl;
public class HelloWorldDemo {
}
| vtemian/uni-west | third_year/gui/test-jogl/src/edu/jogl/HelloWorldDemo.java | Java | apache-2.0 | 52 |
/**
* Copyright © 2018 spring-data-dynamodb (https://github.com/boostchicken/spring-data-dynamodb)
*
* 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/license... | tiarebalbi/spring-data-dynamodb | src/test/java/org/socialsignin/spring/data/dynamodb/marshaller/Instant2IsoDynamoDBMarshallerTest.java | Java | apache-2.0 | 1,914 |
/*
* Copyright (C) 2015 Imran Mammadli
*
* 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 ... | murick/Algorithms | Java/src/main/java/hash/math/collatz/Solution1.java | Java | apache-2.0 | 2,268 |
/*
* 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 under t... | googleapis/google-api-java-client-services | clients/google-api-services-videointelligence/v1p2beta1/1.31.0/com/google/api/services/videointelligence/v1p2beta1/model/GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation.java | Java | apache-2.0 | 4,910 |
package ca.six.bindingdemo.tmp;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.ObservableBoolean;
import android.databinding.ObservableField;
import android.databinding.ObservableInt;
import ca.six.bindingdemo.BR;
/**
* Created by songzhw on 2017-02-18
*/... | songzhw/AndroidArchitecture | deprecated/DataBindingDemo/app/src/main/java/ca/six/bindingdemo/tmp/User.java | Java | apache-2.0 | 2,433 |
package capgemini.training.guava.train;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.List;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
... | CapGeekMini/guava-training | src/test/java/capgemini/training/guava/train/TrainGuavaTest.java | Java | apache-2.0 | 2,862 |
/*
* Copyright 2017 Amit Kumar.
*
* 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 ... | amitkma/android-architecture-boilerplate | presentation/src/main/java/com/github/amitkma/boilerplate/presentation/vo/UserView.java | Java | apache-2.0 | 834 |
/*
* =================================================================================================
* Copyright (C) 2015 Martin Albedinsky
* =================================================================================================
* Licensed under the Apache License, V... | android-libraries/android_intents | library/src/androidTest/java/com/albedinsky/android/intent/PlayIntentTest.java | Java | apache-2.0 | 2,280 |
package com.novaordis.series;
import java.text.SimpleDateFormat;
import java.util.Iterator;
import java.util.List;
/**
* A list of timestamped lists of metrics.
*
* @author <a href="mailto:ovidiu@novaordis.com">Ovidiu Feodorov</a>
*
* Copyright 2012 Nova Ordis LLC
*/
public interface Series
{
... | NovaOrdis/series | src/main/java/com/novaordis/series/Series.java | Java | apache-2.0 | 2,927 |
package com.tleaf.tiary.template;
import java.util.ArrayList;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout.LayoutParams;
import android.wid... | LifeLogTLeaf/TLeafDiaryAndroid | src/com/tleaf/tiary/template/ChatAdapter.java | Java | apache-2.0 | 2,223 |
/**
* Copyright 2013 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 applicable law or agreed ... | Netflix/astyanax | astyanax-cassandra/src/main/java/com/netflix/astyanax/serializers/TypeInferringSerializer.java | Java | apache-2.0 | 1,626 |
/**
* Copyright 2014 Paul Illingworth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | pillingworthz/android-snowball | app/src/main/java/uk/co/threeonefour/android/snowball/gamestate/FileGameStateDao.java | Java | apache-2.0 | 9,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"); yo... | everttigchelaar/camel-svn | components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalTest.java | Java | apache-2.0 | 2,741 |
/*
* 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 challenge291;
/**
*
* @author robinsj1
*/
public class Chair {
private int weight;
private int temp;
... | jjrobinson/Reddit-DailyProgrammer | src/challenge291/Chair.java | Java | apache-2.0 | 703 |
/*
* Copyright 2017 Nikolas Falco
* 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... | nfalco79/tools-ant | src/test/java/com/github/nfalco79/tools/ant/taskdefs/FreePortTest.java | Java | apache-2.0 | 1,510 |
package de.chefkoch.raclette.rx.lifecycle;
import de.chefkoch.raclette.ViewModelLifecycleState;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.functions.Func1;
import rx.functions.Func2;
/**
* thx to https://github.com/trello/RxLifecycle
*
* Created by christophwidulle on 15.04.16.
*/
public cla... | christophwidulle/Raclette | raclette-ext-rx/src/main/java/de/chefkoch/raclette/rx/lifecycle/RxViewModelLifecycle.java | Java | apache-2.0 | 5,353 |
/**
* Copyright (c) 2013 - 2016 YCSB Contributors. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*... | ChristianNavolskyi/YCSB | geode/src/main/java/com/yahoo/ycsb/db/GeodeClient.java | Java | apache-2.0 | 8,357 |
/* 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... | ahwxl/deep | src/main/java/org/activiti/engine/impl/persistence/entity/GroupEntityManager.java | Java | apache-2.0 | 4,560 |
/*
* Copyright (C) 2016 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 ... | googleapis/api-compiler | src/main/java/com/google/api/tools/framework/aspects/documentation/source/SourceParser.java | Java | apache-2.0 | 11,277 |
/*
* Copyright 2012 The Netty Project
*
* The Netty Project 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/licenses/LICENSE-2.0
*
* Unless ... | gerdriesselmann/netty | transport/src/test/java/io/netty/channel/local/LocalChannelTest.java | Java | apache-2.0 | 46,313 |
/*
Copyright 2015-2021 Peter-Josef Meisch (pj.meisch@sothawo.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 ... | sothawo/mapjfx | src/main/java/com/sothawo/mapjfx/MapCoordinateElement.java | Java | apache-2.0 | 3,607 |
/*
* Copyright 1999-2101 Alibaba Group Holding 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 applica... | gaoxianglong/shark | src/main/java/com/sharksharding/sql/dialect/mysql/ast/statement/MySqlShowSlaveHostsStatement.java | Java | apache-2.0 | 967 |
/*
* 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 ... | ripdajacker/commons-betwixt | src/java/org/apache/commons/betwixt/strategy/DefaultNameMapper.java | Java | apache-2.0 | 2,298 |
package shms.validation;
import java.util.Map;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.util.ValueStack;
import com.opensymphony.xwork2.validator.ValidationException;
import com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator;
public class CustomStringLengthFie... | peterkang7790/shms | src/shms/validation/CustomStringLengthFieldValidator.java | Java | apache-2.0 | 1,427 |
package com.foc.web;
public interface IServletDeclaror {
public void addServlets(Object contextHandler);//org.eclipse.jetty.servlet.ServletContextHandler
}
| FOC-framework/framework | focWebServer/src/com/foc/web/IServletDeclaror.java | Java | apache-2.0 | 163 |
/**
* Copyright 2014 XCL-Charts
*
* 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... | 0359xiaodong/XCL-Charts | XCL-Charts/src/org/xclcharts/chart/PieChart.java | Java | apache-2.0 | 10,763 |
package de.j4velin.huenotifier;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.goog... | j4velin/HueNotifier | app/src/main/java/de/j4velin/huenotifier/RuleAdapter.java | Java | apache-2.0 | 5,618 |
package org.m323.cachet.api.v1.response;
import java.io.Serializable;
import org.m323.cachet.api.v1.entity.Group;
/**
* Response containing a single Cachet {@link Group}.
*
* @author Marczeeee
* @since 0.1
*/
public class GroupResponse implements Serializable {
/** {@link Group} object */
private Group ... | Marczeeee/cachet-java-api | cachet-api/src/main/java/org/m323/cachet/api/v1/response/GroupResponse.java | Java | apache-2.0 | 462 |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Shape;
import org.eclipse.draw2d.StackLayout;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclip... | rajeevanv89/developer-studio | esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/FailoverEndPointInputConnector2EditPart.java | Java | apache-2.0 | 11,273 |
package com.starseed.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.starseed.stages.MainScreenStage;
import com.starseed.screens.AbstractScreen;
public class MainScreen extends AbstractScreen {
private MainScreenStage stage;
public MainScreen() {
super();
stage = new ... | bikush/libgdxjam-space-seed-inc | core/src/com/starseed/screens/MainScreen.java | Java | apache-2.0 | 852 |
/*
* Copyright (c) 2015-2018 Petr Zelenka <petr.zelenka@sellcom.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 re... | petrzelenka/sellcom-java-geotemporal | src/main/java/org/sellcom/geotemporal/internal/time/applicability/EvenIsoWeekNumberApplicability.java | Java | apache-2.0 | 1,183 |
package jace.ide;
import java.util.List;
import java.util.Map;
/**
*
* @author blurry
*/
public interface CompileResult<T> {
boolean isSuccessful();
T getCompiledAsset();
Map<Integer, String> getErrors();
Map<Integer, String> getWarnings();
List<String> getOtherMessages();
Lis... | badvision/lawless-legends | Platform/Apple/tools/jace/src/main/java/jace/ide/CompileResult.java | Java | apache-2.0 | 348 |
// 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... | DaanHoogland/cloudstack | engine/schema/src/main/java/com/cloud/upgrade/DatabaseUpgradeChecker.java | Java | apache-2.0 | 16,974 |
/*
* Copyright 2021 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... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/stub/GrpcCampaignFeedServiceStub.java | Java | apache-2.0 | 6,493 |
package org.apache.hadoop.tools.posum.common.records.call.query.impl.pb;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.TextFormat;
import org.apache.hadoop.tools.posum.common.records.call.query.PropertyRangeQuery;
import org.apache.hadoop.t... | an3m0na/hadoop | hadoop-tools/hadoop-posum/src/main/java/org/apache/hadoop/tools/posum/common/records/call/query/impl/pb/PropertyRangeQueryPBImpl.java | Java | apache-2.0 | 5,139 |
package practicaltest02.eim.systems.cs.pub.ro.practicaltest2.general;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
/**
* Created by student on 19.05.2017.
*/
public class Utilities {
public static BufferedRead... | hstoenescu/PracticalTest02 | PracticalTest2/app/src/main/java/practicaltest02/eim/systems/cs/pub/ro/practicaltest2/general/Utilities.java | Java | apache-2.0 | 608 |
package joe;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;
@ManagedBean
@SessionScoped
public class SessionInfo implements Serializable {
private static final long... | josephmmhot/java-facelets | src/main/java/joe/SessionInfo.java | Java | apache-2.0 | 706 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: steammessages_offline.steamclient.proto
package com.jsteamkit.internals.proto;
public final class SteammessagesOfflineSteamclient {
private SteammessagesOfflineSteamclient() {}
public static void registerAllExtensions(
com.google.protobuf... | UniquePassive/JSteamKit | src/main/java/com/jsteamkit/internals/proto/SteammessagesOfflineSteamclient.java | Java | apache-2.0 | 110,790 |
/*
* 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 ... | navyliu/aura | aura-impl/src/main/java/org/auraframework/impl/css/parser/StyleParser.java | Java | apache-2.0 | 5,228 |
/*
* Autopsy Forensic Browser
*
* Copyright 2015 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... | dgrove727/autopsy | Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java | Java | apache-2.0 | 60,350 |
package eu.motogymkhana.server.api.request;
public class TokenRequest extends GymkhanaRequest {
private String email;
private String token;
public TokenRequest() {
}
public TokenRequest(String userName, String password, String token) {
this.email = userName;
this.password = password;
this.token = token;
... | xtien/motogymkhana-server-ui | src/main/java/eu/motogymkhana/server/api/request/TokenRequest.java | Java | apache-2.0 | 325 |
package FileIO.NIO;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* Created by Defias on 2017/3/8.
*
* FileChannel
*
* 一个连接到文件的通道。可以通过文件通道读写文件
* FileChannel不可以设置为非阻... | gdefias/JavaDemo | InitJava/base/src/main/java/FileIO/NIO/TestNIOChannel_FileChannel.java | Java | apache-2.0 | 4,799 |
package org.mamute.auth;
import static org.apache.commons.lang.StringUtils.isEmpty;
import static org.apache.commons.lang.StringUtils.isNotEmpty;
import static org.mamute.model.SanitizedText.fromTrustedText;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.... | GEBIT/mamute | src/main/java/org/mamute/auth/LDAPApi.java | Java | apache-2.0 | 10,735 |
// Copyright 2021 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/v202108/PublisherQueryLanguageService.java | Java | apache-2.0 | 1,350 |
package com.ahmadi.android.obd.reader.activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.ahmadi.android.obd.reade... | Mohammad2416/android-obd-reader-master | src/main/java/com/ahmadi/android/obd/reader/activity/TripListActivity.java | Java | apache-2.0 | 4,910 |
package camelinaction;
import org.apache.camel.builder.RouteBuilder;
/**
* Using a bean in the route to invoke HelloBean.
*/
public class InvokeWithBeanRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("direct:hello")
// instantiate HelloBean once, a... | camelinaction/camelinaction2 | chapter4/bean/src/main/java/camelinaction/InvokeWithBeanRoute.java | Java | apache-2.0 | 408 |
/*
* Copyright (C) 20/05/2017 Scot Scriven
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law o... | itchix/TestMVPAndroid | app/src/main/java/com/scrachx/foodfacts/checker/ui/history/HistoryPresenter.java | Java | apache-2.0 | 3,113 |
/*
* Copyright 2011 Damien Bourdette
*
* 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 ... | dbourdette/otto | otto-web/src/test/java/com/github/dbourdette/otto/source/config/DummyOperation.java | Java | apache-2.0 | 1,035 |
/* Generic definitions */
/* Assertions (useful to generate conditional code) */
/* Current type and class (and size, if applicable) */
/* Value methods */
/* Interfaces (keys) */
/* Interfaces (values) */
/* Abstract implementations (keys) */
/* Abstract implementations (values) */
/* Static containers (keys) */
/... | karussell/fastutil | src/it/unimi/dsi/fastutil/floats/Float2CharFunction.java | Java | apache-2.0 | 4,321 |
/*
* Copyright 2016 The Simple File Server 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 applicabl... | pitchpoint-solutions/sfs | sfs-server/src/main/java/org/sfs/elasticsearch/object/LoadAccountAndContainerAndObject.java | Java | apache-2.0 | 2,423 |
/*
* 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... | arscyper/adan | src/com/google/code/appengine/awt/PageAttributes.java | Java | apache-2.0 | 23,806 |
/*
* Copyright (C) 2011 Thomas Akehurst
*
* 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... | Mahoney/wiremock | src/main/java/com/github/tomakehurst/wiremock/admin/tasks/GetAllRequestsTask.java | Java | apache-2.0 | 2,436 |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | pubudu538/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/AbstractAPIManagerWrapperExtended.java | Java | apache-2.0 | 3,227 |
package org.nutz.dao.impl;
import javax.sql.DataSource;
import org.nutz.dao.ConnCallback;
/**
* 这个接口是一个扩展点。通过修改这个接口,你可以为 Dao 的默认实现类 NutDao 彻底定制事务行为
* <p>
* 你需要面对的只是
* <ul>
* <li>DataSource - 数据源
* <li>ConnCallback - 数据操作细节
* </ul>
* 你的事务行为据此来扩展。 默认的,DefaultDaoRunner 类为你提供了 Nutz 的事务模板解决方案
* <p>
* 如果你不喜欢事务模板... | cowthan/JavaAyo | src-nutz/org/nutz/dao/impl/DaoRunner.java | Java | apache-2.0 | 858 |
package io.quarkus.it.mockbean;
public class DummyService1 implements DummyService {
@Override
public String returnDummyValue() {
return "first";
}
}
| quarkusio/quarkus | integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyService1.java | Java | apache-2.0 | 172 |
package com.example.datagrid.projects.domain;
import com.example.datagrid.projects.domain.enums.VenueTypeEnum;
import com.google.gson.Gson;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.Portable;
import com.hazelcast.nio.serialization.Portab... | oliversalmon/sandpit | domain/src/main/java/com/example/datagrid/projects/domain/Venue.java | Java | apache-2.0 | 2,099 |
/*
* Copyright 2017 Alex Thomson
*
* 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 ... | lolnetnz/Equity | src/main/java/io/github/lxgaming/equity/util/PacketUtil.java | Java | apache-2.0 | 6,307 |
package org.deeplearning4j.nn.conf;
/**
* CNN2DFormat defines the format of the activations (including input images) in to and out of all 2D convolution layers in
* Deeplearning4j. Default value is NCHW.<br>
* <br>
* NCHW = "channels first" - arrays of shape [minibatch, channels, height, width]<br>
* NHWC = "chan... | deeplearning4j/deeplearning4j | deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/CNN2DFormat.java | Java | apache-2.0 | 1,058 |
/**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.examples.finance.credit;
import static com.opengamma.strata.examples.finance.credit.harness.TestHarness.TradeFactory.withCompany01;
import java.time.Lo... | jmptrader/Strata | examples/src/test/java/com/opengamma/strata/examples/finance/credit/CdsPricingCompany01TminusOneTests.java | Java | apache-2.0 | 2,696 |
/**
* Copyright (c) 2011-2013, kidzhou 周磊 (zhouleib1412@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 requ... | pjworkspace/wscs | wscs-web-admin/src/main/java/com/xxx/market/web/core/render/chart/funshion/PieChart.java | Java | apache-2.0 | 3,018 |
/*
* Copyright (C) 2009 University of Washington
*
* 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 ... | projectbuendia/client | third_party/odkcollect/src/main/java/org/odk/collect/android/activities/FormEntryActivity.java | Java | apache-2.0 | 111,672 |
/**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | openengsb-domcon/openengsb-connector-promreport | src/test/java/org/openengsb/connector/promreport/internal/events/TestDomainEndEvent.java | Java | apache-2.0 | 980 |
package com.ubive.ui;
import java.io.IOException;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Packag... | RyanTech/ubivearound_2 | src/com/ubive/ui/MMoreActivity.java | Java | apache-2.0 | 9,098 |
/*
* Copyright 2003 - 2013 The eFaps Team
*
* 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 ... | ov3rflow/eFaps-Kernel | src/main/java/org/efaps/admin/datamodel/IEnum.java | Java | apache-2.0 | 902 |
/**
*
*/
package com.thinkbiganalytics.feedmgr.service.feed;
/*-
* #%L
* thinkbig-feed-manager-core
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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... | claudiu-stanciu/kylo | services/feed-manager-service/feed-manager-core/src/main/java/com/thinkbiganalytics/feedmgr/service/feed/FeedPreconditionService.java | Java | apache-2.0 | 5,455 |
/*
* ====================================================
* Copyright (C) 2013 by Idylwood Technologies, LLC. All rights reserved.
*
* Developed at Idylwood Technologies, LLC.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
*
* Lic... | charles-cooper/idylfin | src/com/idylwood/yahoo/YahooFinance.java | Java | apache-2.0 | 16,581 |
/*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | jenetics/jenetics | jenetics.prog/src/main/java/io/jenetics/prog/op/MathOp.java | Java | apache-2.0 | 11,985 |
package lite.dbtest.model;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
im... | litesuits/for-test | DataBaseTest/app/src/main/java/lite/dbtest/model/Note.java | Java | apache-2.0 | 1,864 |
/**
Copyright 2016 Brad Johnson, Enjekt Software
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 wri... | Ranx0r0x/Enjekt-Microservice | microserver/src/main/java/org/enjekt/osgi/microserver/impl/MicroWebserviceRegistration.java | Java | apache-2.0 | 2,255 |
/*******************************************************************************
* 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.model.plan.provider/src/gov/nasa/ensemble/core/model/plan/provider/ItemColorProvider.java | Java | apache-2.0 | 1,123 |
package tk.iatsyk.handler;
import tk.iatsyk.entities.businessentities.Cafe;
import tk.iatsyk.entities.representationobjects.CafeRO;
import java.util.List;
/**
* User: Vova Iatsyk
* Date: 17.10.2015
*/
public interface CafeHandler {
String getProperties();
long save(Cafe cafe);
List<CafeRO> getAllCa... | iatsyk/cafemenu | src/main/java/tk/iatsyk/handler/CafeHandler.java | Java | apache-2.0 | 329 |
package com.javax0.classinit;
import static com.javax0.classinit.Printer.println;
public class Main {
public static void main(String[] args) throws InterruptedException {
println("creating concrete object");
Concrete c = new Concrete();
println("1st concrete object done");
c = new... | javax0-tutorials/object-initialization | src/com/javax0/classinit/Main.java | Java | apache-2.0 | 410 |
/*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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... | freeVM/freeVM | enhanced/buildtest/tests/vts/vm/src/test/vm/jvmti/funcs/DestroyRawMonitor/DestroyRawMonitor0101/DestroyRawMonitor0101.java | Java | apache-2.0 | 882 |
package fr.openwide.core.test.jpa.more.business.audit.dao;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.cri... | openwide-java/owsi-core-parent | owsi-core/owsi-core-components/owsi-core-component-jpa-more/src/test/java/fr/openwide/core/test/jpa/more/business/audit/dao/MockAuditDaoImpl.java | Java | apache-2.0 | 2,406 |
package com.fearthebadger.studio.rotator;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graph... | FearTheBadger/rotate | core/src/com/fearthebadger/studio/rotator/MainMenu.java | Java | apache-2.0 | 4,154 |
package javactor.akka;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Comparator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import javacto... | mrpantsuit/javactor | src/main/java/javactor/akka/JavactorUntypedActor.java | Java | apache-2.0 | 20,806 |
/**
* Copyright © 2014 Jan Seeger
*
* 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 ... | alphadev-net/ntfslib | src/main/java/net/alphadev/ntfslib/structures/MasterFileTable.java | Java | apache-2.0 | 1,980 |
package com.sidelance.ngchat;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
impor... | IV007/ng-chat | NGChat/app/src/main/java/com/sidelance/ngchat/ForgotPassword.java | Java | apache-2.0 | 4,340 |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | trasa/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/MoveAddressToVpcRequestMarshaller.java | Java | apache-2.0 | 1,903 |
package com.hultron.lifehelper.ui;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.hultron.lifehelper.R;
import com.xys.libzxing.zxing.encoding.EncodingUtils;
/**
* QrCodeShareAct... | Hultron/LifeHelper | app/src/main/java/com/hultron/lifehelper/ui/QrCodeShareActivity.java | Java | apache-2.0 | 1,375 |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | vvv1559/intellij-community | java/java-tests/testSrc/com/intellij/java/propertyBased/JavaCodeInsightSanityTest.java | Java | apache-2.0 | 2,408 |
package com.jayway.jsonpath.internal.path;
import com.jayway.jsonpath.internal.PathRef;
import com.jayway.jsonpath.internal.function.Parameter;
import com.jayway.jsonpath.internal.function.PathFunction;
import com.jayway.jsonpath.internal.function.PathFunctionFactory;
import com.jayway.jsonpath.internal.function.lateb... | lafaspot/JsonPath | json-path/src/main/java/com/jayway/jsonpath/internal/path/FunctionPathToken.java | Java | apache-2.0 | 3,127 |
package pro.taskana.user.rest;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.delete;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.post;
import static org... | Taskana/taskana | rest/taskana-rest-spring/src/test/java/pro/taskana/user/rest/UserControllerRestDocTest.java | Java | apache-2.0 | 2,280 |