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 bloom;
import align2.Shared;
/**
* @author Brian Bushnell
* @date Dec 2, 2014
*
*/
public abstract class KmerCountAbstract {
protected static final long[] transformToFrequency(int[] count){
long[] freq=new long[2000];
int max=freq.length-1;
for(int i=0; i<count.length; i++){
int ... | CruorVolt/mu_bbmap | src/bbmap/current/bloom/KmerCountAbstract.java | Java | apache-2.0 | 1,279 |
/*
* Copyright (c) 2016 Michael Krotscheck
*
* 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... | kangaroo-server/kangaroo | kangaroo-server-authz/src/test/java/net/krotscheck/kangaroo/authz/oauth2/rfc6749/AbstractRFC6749Test.java | Java | apache-2.0 | 6,546 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-cloudhsm/src/main/java/com/amazonaws/services/cloudhsm/model/transform/DeleteLunaClientRequestMarshaller.java | Java | apache-2.0 | 2,030 |
package com.hczhang.hummingbird.spring.def;
import com.hczhang.hummingbird.eventlog.SimpleEventLog;
import com.hczhang.hummingbird.spring.ExtensionBinding;
import com.hczhang.hummingbird.spring.ExtensionType;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.support.BeanDefinitionBu... | steven-zhc/hummingbird-framework | hummingbird-spring/src/main/java/com/hczhang/hummingbird/spring/def/DefaultEventLogBinding.java | Java | apache-2.0 | 1,041 |
/*
* 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-ssmcontacts/src/main/java/com/amazonaws/services/ssmcontacts/model/ActivateContactChannelRequest.java | Java | apache-2.0 | 5,688 |
/**
* 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 ... | dorzey/assertj-core | src/test/java/org/assertj/core/api/comparable/GenericComparableAssert_isNotEqualByComparingTo_Test.java | Java | apache-2.0 | 1,316 |
package com.didichuxing.doraemonkit.kit.network.stream;
import com.didichuxing.doraemonkit.kit.network.NetworkManager;
import com.didichuxing.doraemonkit.kit.network.bean.NetworkRecord;
import com.didichuxing.doraemonkit.kit.network.core.NetworkInterpreter;
import com.didichuxing.doraemonkit.kit.network.core.RequestBo... | didi/DoraemonKit | Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/network/stream/HttpOutputStreamProxy.java | Java | apache-2.0 | 1,425 |
package example.repo;
import example.model.Customer1438;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1438Repository extends CrudRepository<Customer1438, Long> {
List<Customer1438> findByLastName(String lastName);
}
| spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/repo/Customer1438Repository.java | Java | apache-2.0 | 284 |
package ru.teamidea.barcodereader.ui.main;
import android.app.Activity;
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;
import android.support.v7.widget.Li... | nibabkin/BarcodeReaderExample | app/src/main/java/ru/teamidea/barcodereader/ui/main/MainActivity.java | Java | apache-2.0 | 6,632 |
/*
* #%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/Affix.java | Java | apache-2.0 | 2,358 |
package com.palmelf.eoffice.model.communicate;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.... | jacarrichan/eoffice | src/main/java/com/palmelf/eoffice/model/communicate/OutMailUserSeting.java | Java | apache-2.0 | 4,907 |
/*
* 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 ... | yeongwei/incubator-calcite | core/src/main/java/org/apache/calcite/jdbc/CalciteResultSet.java | Java | apache-2.0 | 5,393 |
package com.example.tristan.arealchessgame;
import android.content.Context;
/**
* Created by Tristan on 22/06/2017.
*/
public class StaticApplicationContext {
public static Context context;
}
| Tristanhx/ARealChessGame | app/src/main/java/com/example/tristan/arealchessgame/StaticApplicationContext.java | Java | apache-2.0 | 202 |
package edu.uw.zookeeper.safari;
import com.google.common.base.Function;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import edu.uw.zookeeper.common.Pair;
import edu.uw.zookeeper.common.Reference;
public enum Hash implements Function<Strin... | lisaglendenning/safari | src/main/java/edu/uw/zookeeper/safari/Hash.java | Java | apache-2.0 | 1,521 |
/*
* 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 ... | massx1/syncope | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/AttrTemplateDAO.java | Java | apache-2.0 | 1,418 |
package com.socrata.ssync.exceptions.input;
public class UnknownChecksumAlgorithm extends InputException {
public UnknownChecksumAlgorithm(String name) {
super("Unknown checksum algorithm: " + name, null);
}
}
| socrata-platform/ssync | src/main/java/com/socrata/ssync/exceptions/input/UnknownChecksumAlgorithm.java | Java | apache-2.0 | 227 |
package com.salesforceiq.augmenteddriver.mobile.ios.pageobjects;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.salesforceiq.augmenteddriver.mobile.ios.AugmentedIOSDriver;
import com.salesforceiq.augme... | relateiq/AugmentedDriver | src/main/java/com/salesforceiq/augmenteddriver/mobile/ios/pageobjects/IOSPageContainerObject.java | Java | apache-2.0 | 3,410 |
/* First created by JCasGen Mon May 11 11:00:52 EDT 2015 */
package org.apache.ctakes.typesystem.type.relation;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
/** A UMLS relation between clinical elements.
* Updated by JCasGen Mon May 11 11:... | harryhoch/DeepPhe | src/org/apache/ctakes/typesystem/type/relation/TemporalTextRelation.java | Java | apache-2.0 | 1,770 |
package info.akritikos.eelections.queries;
import info.akritikos.eelections.contracts.ISearchQueries;
/**
* Search fields on Candidate entities
*/
public enum EVote implements ISearchQueries {
PkVoteId,
FldIsInvalid,
FldIsBlank
} | akritikos/PLH24 | eElections/src/main/java/info/akritikos/eelections/queries/EVote.java | Java | apache-2.0 | 236 |
/**
* Get more info at : www.jrebirth.org
* Copyright JRebirth.org © 2011-2013
* Contact : sebastien.bordes@jrebirth.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... | rajmahendra/forge-jrebirth-addon | api/src/main/java/org/jrebirth/forge/addon/facets/JRebirthFacet.java | Java | apache-2.0 | 913 |
package com.time.utilities;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Akhil Dixit
*
*/
public class RelativeTimer {
/**
* @param dateString
* @param format
* @return Relative time from/till now. Ret... | akhildixit/ad_public | Relative time from now/src/com/time/utilities/RelativeTimer.java | Java | apache-2.0 | 1,568 |
/*
* 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... | Jimexist/presto | presto-main/src/main/java/com/facebook/presto/operator/ExchangeClient.java | Java | apache-2.0 | 13,990 |
package org.beigesoft.uml.factory.awt;
import java.awt.Frame;
import java.awt.Graphics2D;
import java.awt.Image;
import org.beigesoft.graphic.pojo.SettingsDraw;
import org.beigesoft.graphic.service.ISrvDraw;
import org.beigesoft.service.ISrvI18n;
import org.beigesoft.ui.service.ISrvDialog;
import org.beigesoft.uml.ap... | demidenko05/beige-uml | beige-uml-swing/src/main/java/org/beigesoft/uml/factory/awt/FactoryAsmRelationshipBinaryClassLight.java | Java | apache-2.0 | 5,499 |
package org.ril.madera.controller;
import org.ril.madera.model.Users;
import org.ril.madera.service.ServicesUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
impor... | FarhatW/MaderaHouse | src/main/java/org/ril/madera/controller/UserController.java | Java | apache-2.0 | 2,586 |
package com.example.toast;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main... | Osman93/Android | Toast/src/com/example/toast/MainActivity.java | Java | apache-2.0 | 1,138 |
/**
*
*/
package org.overlord.gadgets.server.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* @author Jeff Yu
*/
@E... | Governance/gadget-server | gadget-core/src/main/java/org/overlord/gadgets/server/model/WidgetPreference.java | Java | apache-2.0 | 1,143 |
package com.culabs.nfvo.model;
public class ConfigBlock
{
private String id;
private KVPair<String, String> pairs = KVPair.Factory.createKVPair(
String.class, String.class);
public String getId()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
public KVPair<String, String> getPairs()
... | wolabs/womano | main/java/com/culabs/nfvo/model/ConfigBlock.java | Java | apache-2.0 | 614 |
/*
* Copyright 2015 The UIMaster Project
*
* The UIMaster 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 req... | shaolinwu/uimaster | modules/uipage/src/main/java/org/shaolin/uimaster/page/od/rules/UITextWithCurrency.java | Java | apache-2.0 | 8,325 |
package org.efix.message.field;
public class ExecAckStatus {
public static final byte RECEIVED_NOT_YET_PROCESSED = '0';
public static final byte ACCEPTED = '1';
public static final byte DONT_KNOW = '2';
} | artyomkorzun/efix | src/main/java/org/efix/message/field/ExecAckStatus.java | Java | apache-2.0 | 220 |
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | kubernetes-client/java | kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java | Java | apache-2.0 | 4,101 |
package com.kv.structural.decorator;
// 被装饰的类
public class ConcreteTarget implements Target {
@Override
public void operation() {
System.out.println("Original operation.");
}
}
| davidsky11/DesignMode | src/main/java/com/kv/structural/decorator/ConcreteTarget.java | Java | apache-2.0 | 195 |
// __________________________________
// ______| Copyright 2008-2015 |______
// \ | Breakpoint Pty Limited | /
// \ | http://www.breakpoint.com.au | /
// / |__________________________________|... | breakpoint-au/Hedron | hedron-daogen/src/main/java/au/com/breakpoint/hedron/daogen/DaoGen.java | Java | apache-2.0 | 26,492 |
package com.pearson.statsagg.web_ui;
import com.pearson.statsagg.database_objects.alerts.AlertsDao;
import com.pearson.statsagg.database_objects.metric_group.MetricGroupsDao;
import com.pearson.statsagg.database_objects.notifications.NotificationGroupsDao;
import com.pearson.statsagg.utilities.core_utils.StackTrace;
i... | PearsonEducation/StatsAgg | src/main/java/com/pearson/statsagg/web_ui/Lookup.java | Java | apache-2.0 | 6,292 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | consulo/consulo | modules/base/lang-api/src/main/java/com/intellij/psi/codeStyle/arrangement/match/ArrangementSectionRule.java | Java | apache-2.0 | 5,547 |
/*
* Copyright (c) 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | krraghavan/mongodb-aggregate-query-support | mongodb-aggregate-query-support-reactive/src/test/java/com/github/krr/mongodb/aggregate/support/repository/reactive/ReactiveTestAggregateRepositoryMarker.java | Java | apache-2.0 | 814 |
/*
* 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 ... | ServiceComb/java-chassis | clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/model/KieAddressManager.java | Java | apache-2.0 | 1,445 |
/*
*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http:/... | JNOSQL/diana | diana/diana-document/src/main/java/org/eclipse/jnosql/diana/document/query/DefaultDocumentQueryParams.java | Java | apache-2.0 | 1,713 |
/*
* Copyright 2014 Bernd Vogt 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/LICENSE-2.0
*
* Unless required by applicable law or ... | sourcepit/target-platform-maven-plugin | src/main/java/org/sourcepit/tpmp/LocalizeTargetPlatformMojo.java | Java | apache-2.0 | 2,903 |
/*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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.apac... | lessthanoptimal/BoofCV | demonstrations/src/main/java/boofcv/demonstrations/shapes/DetectBlackShapeAppBase.java | Java | apache-2.0 | 6,480 |
package com.example.contactmanager;
import java.io.ByteArrayOutputStream;
import android.graphics.Bitmap;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.BitmapFactory;
public class Utility {
// convert from bitmap to byte array
public static byte[] getBytes(Bitmap bitmap) {
ByteArrayOut... | ahsancse/contactManager | src/com/example/contactmanager/Utility.java | Java | apache-2.0 | 607 |
/*
* Copyright (C) 2012-2017 DataStax Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | tolbertam/java-driver | driver-extras/src/test/java/com/datastax/driver/extras/codecs/guava/OptionalCodecTest.java | Java | apache-2.0 | 8,851 |
/*
* 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 ... | tadayosi/camel | components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java | Java | apache-2.0 | 21,780 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/OptionGroupNotFoundException.java | Java | apache-2.0 | 1,217 |
/*
Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2010 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms... | camachohoracio/Armadillo.Core | Communication/src/main/java/Armadillo/Communication/zmq/zmq/Push.java | Java | apache-2.0 | 2,096 |
package ru.job4j.sortdepartments;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.TreeSet;
import java.util.stream.IntStream;
public class SortedDepartments {
private TreeSet<String> departmentNames = new TreeSet<>();
public void addDepartment(String departmentNa... | ilya-moskovtsev/imoskovtsev | intern/chapter_003_collections_light/src/main/java/ru/job4j/sortdepartments/SortedDepartments.java | Java | apache-2.0 | 1,263 |
package de.aedelmann.jiva.workflow.internal.script;
import de.aedelmann.jiva.workflow.extensionpoints.WorkflowContext;
import de.aedelmann.jiva.workflow.script.Script;
import java.util.Date;
/**
* @author Alexander Edelmann
*/
public class TimeLiteralExpression implements Script<Date> {
private static final S... | aedelmann/jiva | jiva-workflow/src/main/java/de/aedelmann/jiva/workflow/internal/script/TimeLiteralExpression.java | Java | apache-2.0 | 586 |
package com.dennisxu.lib.core.exception;
/**
* 处理服务器返回的错误信息
*
* @author: xuyang
* @date: 2014-8-24 上午10:24:50
*/
public class ApiException extends Exception {
private static final long serialVersionUID = 6501425440406106625L;
public APiErrorMessage APiErrorMessage;
public ApiException() {
... | dennisxu1014/dennisxu-sample-android | core/src/main/java/com/dennisxu/lib/core/exception/ApiException.java | Java | apache-2.0 | 802 |
package jmh.barker;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations... | jasobrown/barker | src/main/java/jmh/barker/CWestinForLoop.java | Java | apache-2.0 | 1,791 |
package org.gradle.test.performance.mediummonolithicjavaproject.p253;
public class Production5063 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p253/Production5063.java | Java | apache-2.0 | 1,891 |
/*
* Copyright 2016 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/iothub/model/Operation.java | Java | apache-2.0 | 839 |
/*
* This project and its source code is licensed under
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* Copyright (c) 2017 Mathias Lux, mathias@juggle.at
*/
package at.juggle.games.counting.client;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.... | dermotte/CountingGame | html/src/at/juggle/games/counting/client/HtmlLauncher.java | Java | apache-2.0 | 1,046 |
/**
* 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... | shayhatsor/zookeeper | src/java/main/org/apache/zookeeper/ClientCnxn.java | Java | apache-2.0 | 61,199 |
/*
* 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... | joshk/presto | presto-main/src/main/java/com/facebook/presto/server/StatementResource.java | Java | apache-2.0 | 29,436 |
/*
* Copyright 2017 BrutalRape().
* Licensed under the Apache License, Version 2.0
*/
package rape.brutal.gitstarship.parts.engine;
/**
* Created by haze on 30.03.2017.
*/
public class SmallEngine extends Engine {
public SmallEngine() {
super(500, 20, "SmallEngine", 10);
}
}
| ViRGiL175/java-git-starship | src/main/java/rape/brutal/gitstarship/parts/engine/SmallEngine.java | Java | apache-2.0 | 300 |
/*
* Copyright 2000-2015 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... | leafclick/intellij-community | java/java-impl/src/com/intellij/cyclicDependencies/actions/CyclicDependenciesAction.java | Java | apache-2.0 | 7,749 |
package com.gmail.zahusek.tinyprotocolapi.listener;
import io.netty.channel.Channel;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
public abstract class PacketEvent implements Cancellable
{
public final Player player;
public final Channel channel;
public final Object handle;
p... | Zahusek/TinyProtocolAPI | com/gmail/zahusek/tinyprotocolapi/listener/PacketEvent.java | Java | apache-2.0 | 886 |
package com.emc.ecs.management.sdk;
import com.emc.ecs.servicebroker.exception.EcsManagementClientException;
import com.emc.ecs.management.sdk.model.NamespaceQuotaDetails;
import com.emc.ecs.management.sdk.model.NamespaceQuotaParam;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import static ... | emccode/ecs-cf-service-broker | src/main/java/com/emc/ecs/management/sdk/NamespaceQuotaAction.java | Java | apache-2.0 | 1,542 |
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | gurbuzali/hazelcast-jet | hazelcast-jet-core/src/main/java/com/hazelcast/jet/pipeline/ServiceFactory.java | Java | apache-2.0 | 15,091 |
package com.zz.startup.security;
import org.apache.shiro.session.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SessionListener implements org.apache.shiro.session.SessionListener {
private static Logger logger = LoggerFactory.getLogger(SessionListener.class);
public void onStart(... | MrYang/java-web-startup | src/main/java/com/zz/startup/security/SessionListener.java | Java | apache-2.0 | 585 |
/**
* Copyright 2015 MKL 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 t... | mkl-software/websuites | src/main/java/com/mkl/websuites/internal/command/impl/check/soft/SoftCheckSelectSelectedValueCommand.java | Java | apache-2.0 | 1,654 |
/*
* 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-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSourceRequest.java | Java | apache-2.0 | 6,925 |
/*
* 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 ... | Geomatys/sis | core/sis-utility/src/main/java/org/apache/sis/util/Emptiable.java | Java | apache-2.0 | 2,552 |
package com.mmrx.yunliao.presenter.util;
import android.util.Log;
/**
* 创建人: mmrx
* 时间: 16/3/7下午4:29
* 描述: 日志工具封装类
*/
public class L {
private L()
{
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
public static boolean isDebug = true;... | liulinru13/YunLiao | app/src/main/java/com/mmrx/yunliao/presenter/util/L.java | Java | apache-2.0 | 1,419 |
package cs263w16;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by ryanhalbrook on 3/2/16.
*/
public class MainPageServlet extends HttpServlet {
@Override
public void doGet(HttpSe... | ryhal/cs263 | src/main/java/cs263w16/MainPageServlet.java | Java | apache-2.0 | 442 |
package me.nithanim.longbuffer;
public interface IntegrationTest {
}
| Nithanim/longbuffer | src/test/java/me/nithanim/longbuffer/IntegrationTest.java | Java | apache-2.0 | 75 |
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | codecentric/spring-boot-starter-batch-web | batch-web-spring-boot-autoconfigure/src/test/java/de/codecentric/batch/metrics/Item.java | Java | apache-2.0 | 1,815 |
/*
* Copyright (C) 2013 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... | itachi1706/DroidEggs | app/src/main/java/com/itachi1706/droideggs/KitKatEgg/PlatLogoActivityKITKAT.java | Java | apache-2.0 | 6,948 |
package com.ragamania.bararaga.view.fragment.coaches;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import com.jcodecraeer.xrecyclerview.XRecyclerView;
import com.ragamania.bararaga.R;
import com.ragamania.bar... | WildanGarviandi/Bararaga | app/src/main/java/com/ragamania/bararaga/view/fragment/coaches/CoachesFragment.java | Java | apache-2.0 | 2,888 |
/*
* Copyright 2010 - 2017 Wyona
*/
package org.wyona.yanel.impl.resources.yaneluser;
import org.wyona.yanel.core.ResourceConfiguration;
import org.wyona.yanel.core.util.MailUtil;
import org.wyona.yanel.impl.resources.BasicXMLResource;
import org.wyona.security.core.api.Identity;
import org.wyona.security.core.api.... | wyona/yanel | src/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/yaneluser/EditYanelUserProfileResource.java | Java | apache-2.0 | 16,341 |
package com.xcuber.dao;
import com.xcuber.model.Student;
public interface StudentDao {
Student findById(Long id);
}
| glomie/xcuber-boot | src/main/java/com/xcuber/dao/StudentDao.java | Java | apache-2.0 | 123 |
package gr.ntua.cslab.streamnet.kdtree;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
/**
*
*/
public class KdTree<T> extends KdNode<T> {
private static final long serialVersionUID = -4403464702046042517L;
public KdTree(int dimensions) {
this(dimensions, 2... | dsarlis/datix | streamnet/src/main/java/gr/ntua/cslab/streamnet/kdtree/KdTree.java | Java | apache-2.0 | 4,972 |
package com.piggsoft.school.web.spring.intercepter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndVi... | piggsoft/school | school-webapp/src/main/java/com/piggsoft/school/web/spring/intercepter/ExecuteTimeInterceptor.java | Java | apache-2.0 | 1,875 |
// Copyright (c) Keith D Gregory
//
// 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 ... | kdgregory/pathfinder | lib-spring/src/test/java/com/kdgregory/pathfinder/spring/AbstractSpringTestcase.java | Java | apache-2.0 | 1,657 |
package org.ovirt.engine.api.restapi.resource;
import java.util.List;
import javax.ws.rs.core.Response;
import org.ovirt.engine.api.model.StorageConnection;
import org.ovirt.engine.api.model.StorageConnections;
import org.ovirt.engine.api.resource.StorageDomainServerConnectionResource;
import org.ovirt.engine.api.res... | OpenUniversity/ovirt-engine | backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainServerConnectionsResource.java | Java | apache-2.0 | 2,648 |
package net.uchoice.exf.core.runtime.resolver.advisor;
import net.uchoice.exf.client.exception.ErrorMessage;
import net.uchoice.exf.client.exception.ExfRuntimeException;
import net.uchoice.exf.core.trace.ExfTracker;
import net.uchoice.exf.core.trace.Record;
import net.uchoice.exf.core.trace.RecordType;
import net.ucho... | uchoice/exf | exf-core/src/main/java/net/uchoice/exf/core/runtime/resolver/advisor/SpringVariableAdvisor.java | Java | apache-2.0 | 1,721 |
package my.interest.lang.tamil.impl.rx.asai2;
import my.interest.lang.tamil.impl.FeatureSet;
import my.interest.lang.tamil.impl.yaappu.YaappuBaseRx;
/**
* <p>
* </p>
*
* @author velsubra
*/
public class TheamaRx extends YaappuBaseRx {
public TheamaRx() {
super("தேமா");
}
public String genera... | velsubra/Tamil | ezhuththu/src/main/java/my/interest/lang/tamil/impl/rx/asai2/TheamaRx.java | Java | apache-2.0 | 403 |
package org.moonlightcontroller.blocks;
import org.moonlightcontroller.processing.ProcessingBlock;
import org.openboxprotocol.protocol.Priority;
import java.util.List;
import java.util.Map;
import org.moonlightcontroller.aggregator.Tupple.Pair;
import org.moonlightcontroller.exceptions.MergeException;
import org.moo... | danaklein142/ml-temp | src/main/java/org/moonlightcontroller/blocks/RegexClassifier.java | Java | apache-2.0 | 1,902 |
package ac.uk.abdn.fits.demo.gmap.model.polygon.stdlib;
/*************************************************************************
* Compilation: javac StdDraw.java
* Execution: java StdDraw
*
* Standard drawing library. This class provides a basic capability for
* creating drawings with your programs. It... | CChengz/dot.r | workspace/fits/demo/src/main/java/ac/uk/abdn/fits/demo/gmap/model/polygon/stdlib/StdDraw.java | Java | apache-2.0 | 41,726 |
/**
* Copyright (C) 2013-2019 Helical IT Solutions (http://www.helicalinsight.com) - 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://... | helicalinsight/helicalinsight | core/src/main/java/com/helicalinsight/resourcesecurity/jaxb/Efw.java | Java | apache-2.0 | 5,340 |
/**
* Copyright 2011 Nube Technologies
*
* 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 ... | sonalgoyal/hiho | src/test/java/co/nubetech/hiho/merge/TestMergeValueReducer.java | Java | apache-2.0 | 6,357 |
/*
* Copyright 2016-2017 The Sponge authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | softelnet/sponge | sponge-core/src/main/java/org/openksavi/sponge/core/rule/ReflectionEventCondition.java | Java | apache-2.0 | 2,804 |
package net.raumzeitfalle.niohttp.header;
import static org.junit.Assert.*;
import org.junit.Test;
import net.raumzeitfalle.niohttp.Constants;
import net.raumzeitfalle.niohttp.header.Connection;
public class ConnectionTest {
private Connection classUnderTest;
@Test
public void close() {
classUnderTes... | Oliver-Loeffler/NIOHttp | src/test/java/net/raumzeitfalle/niohttp/header/ConnectionTest.java | Java | apache-2.0 | 597 |
/**
* Copyright 2014 Fernando Rincon Martin <frm.rincon@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... | frincon/openeos | modules/org.openeos.utils/src/main/java/org/openeos/utils/BundleFilter.java | Java | apache-2.0 | 772 |
package io.quarkus.it.websocket;
public class Dto {
private String content;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "Dto{" +
"cont... | quarkusio/quarkus | integration-tests/main/src/main/java/io/quarkus/it/websocket/Dto.java | Java | apache-2.0 | 375 |
/*
* Copyright (c) 2016-present, RxJava 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | ReactiveX/RxJava | src/test/java/io/reactivex/rxjava3/internal/operators/maybe/MaybeDoOnEventTest.java | Java | apache-2.0 | 3,143 |
//
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | sdw2330976/Research-jetty-9.2.5 | jetty-util/src/test/java/org/eclipse/jetty/util/resource/ResourceAliasTest.java | Java | apache-2.0 | 3,795 |
package activity;
import java.util.ArrayList;
import java.util.List;
import com.sharefriend.app.R;
import activity.manageAct.ViewHolder;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.prefer... | ZSD123/uniqueWeather | src/activity/guanYuAct.java | Java | apache-2.0 | 3,249 |
package org.apache.lucene.search;
/*
* 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, Versi... | pkarmstr/NYBC | solr-4.2.1/lucene/core/src/java/org/apache/lucene/search/ScoreCachingWrappingScorer.java | Java | apache-2.0 | 2,863 |
package uk.ac.ebi.spot.webulous.entity;
import org.semanticweb.owlapi.model.OWLEntity;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyChange;
import uk.ac.ebi.spot.webulous.model.OWLEntityCreationSet;
import java.util.ArrayList;
import java.util.List;/*
* Copyright (C... | EBISPOT/webulous | populous-oppl/src/main/java/uk/ac/ebi/spot/webulous/entity/SimpleOWLEntityCreationSet.java | Java | apache-2.0 | 2,234 |
/*
* Copyright (C) 2015-2018 SoftIndex 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 ag... | softindex/datakernel | test/src/main/java/io/datakernel/test/rules/LambdaStatement.java | Java | apache-2.0 | 1,087 |
/*
* 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-datastream | proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java | Java | apache-2.0 | 100,961 |
package com.summer.spider.service;
import com.summer.common.service.CrudServiceImpl;
import com.summer.spider.domain.Team;
import org.springframework.stereotype.Service;
/**
* Created by Allen on 2015/5/4.
*/
@Service
public class TeamService extends CrudServiceImpl<Team,Long> {
}
| yiliangz/summer | summer-spider/src/main/java/com/summer/spider/service/TeamService.java | Java | apache-2.0 | 287 |
package io.quarkus.maven.it;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection... | quarkusio/quarkus | integration-tests/maven/src/test/java/io/quarkus/maven/it/NativeImageIT.java | Java | apache-2.0 | 3,758 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.braintree;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigure... | mcollovati/camel | components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/DiscountGatewayEndpointConfigurationConfigurer.java | Java | apache-2.0 | 5,915 |
/****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | xuzhikethinker/t4f-data | structure/core/src/main/java/aos/data/structure/ChainedHashtableIterator.java | Java | apache-2.0 | 3,382 |
package org.gradle.test.performance.mediummonolithicjavaproject.p371;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test7429 {
Production7429 objectUnderTest = new Production7429();
@Test
public void testProperty0() {
Production7426 value = new Production7426();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p371/Test7429.java | Java | apache-2.0 | 2,174 |
package easygraph.events;
import javafx.event.Event;
import javafx.event.EventType;
import easygraph.guielements.GuiVertex;
public class VertexLeftClickEvent extends Event {
private GuiVertex guiVertex;
private static final long serialVersionUID = 1L;
public static final EventType<VertexLeftClickEv... | engek1/easygraph | src/easygraph/events/VertexLeftClickEvent.java | Java | apache-2.0 | 600 |
package lan.dk.podcastserver.service;
import lan.dk.podcastserver.entity.Item;
import lan.dk.podcastserver.entity.Podcast;
import lan.dk.podcastserver.manager.worker.downloader.Downloader;
import lan.dk.podcastserver.manager.worker.selector.DownloaderSelector;
import lan.dk.podcastserver.manager.worker.selector.Update... | radut/Podcast-Server | src/test/java/lan/dk/podcastserver/service/WorkerServiceTest.java | Java | apache-2.0 | 3,264 |
package org.docksidestage.db2.dbflute.bsbhv;
import java.util.List;
import org.dbflute.*;
import org.dbflute.bhv.*;
import org.dbflute.bhv.readable.*;
import org.dbflute.bhv.writable.*;
import org.dbflute.bhv.referrer.*;
import org.dbflute.cbean.*;
import org.dbflute.cbean.chelper.HpSLSFunction;
import org.dbflute.cb... | dbflute-test/dbflute-test-dbms-db2 | src/main/java/org/docksidestage/db2/dbflute/bsbhv/BsAliasRefExceptBhv.java | Java | apache-2.0 | 66,285 |
/*
* Copyright 2016 qyh.me
*
* 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... | mhlx/blog5 | src/main/java/me/qyh/blog/plugin/staticfile/validator/StaticFileQueryParamValidator.java | Java | apache-2.0 | 1,679 |