blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
30e713f3c8d1a6a5487497618eedb2817be6f8bb | Java | atom-chen/server | /src/main/java/newbee/morningGlory/checker/refObjectChecker/activity/WingRewardRefChecker.java | UTF-8 | 682 | 2.46875 | 2 | [] | no_license | package newbee.morningGlory.checker.refObjectChecker.activity;
import newbee.morningGlory.checker.BaseRefChecker;
import newbee.morningGlory.mmorpg.player.activity.ref.WingRewardRef;
import sophia.game.ref.GameRefObject;
import sophia.mmorpg.player.itemBag.ItemPair;
public class WingRewardRefChecker extends BaseRefCh... | true |
539146a7ff4394af0671d88dfd9f5ec1b9d8da88 | Java | RoboyCore/Himalaya | /app/src/main/java/mobi/xiaowu/himalaya/utils/BitMapUtils.java | UTF-8 | 1,380 | 2.75 | 3 | [] | no_license | package mobi.xiaowu.himalaya.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
/**
* Created by lx on 2016/12/9.
* 防止BitMap过大出现OOM异常
* 二次采样
*/
public class BitMapUtils {
//二次采样
public static Bitmap samplingBitMap(byte[] data, int width,int height)
{
//图片工厂参数对象
... | true |
9d9c5ce3ea2ef63a57a2031d99123485f1f7b2fe | Java | Moby2020/JAVA-000 | /Week_09/rpc-demo/rpcfx-core/src/main/java/com/example/demo/client/proxy/RpcClientCglib.java | UTF-8 | 542 | 2.078125 | 2 | [] | no_license | package com.example.demo.client.proxy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cglib.proxy.Enhancer;
@Slf4j
public class RpcClientCglib implements RpcClient {
@Override
public <T> T create(Class<T> serviceClass, String url) {
Enhancer enhancer = new Enhancer();
enhancer.se... | true |
256e88b56a1e3ce9bb3bb248371a3232446b1f46 | Java | NottuS/TrampCP | /UCS_ManterInstituicao/src/main/java/gov/pr/celepar/ucs_manterinstituicao/pojo/NaturezaJuridica.java | UTF-8 | 3,218 | 2.15625 | 2 | [] | no_license | package gov.pr.celepar.ucs_manterinstituicao.pojo;
// Generated 23/06/2015 11:12:09 by Hibernate Tools 3.2.0.CR1
import gov.pr.celepar.ucs_manterinstituicao.decorator.NaturezaJuridicaDecorator;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import ja... | true |
dc6a06b2354919dae29c1f763b1e619aa64af267 | Java | CaGe-graph/CaGe | /cage/generator/FourRegularPlaneGraphsPanel.java | UTF-8 | 562 | 2.328125 | 2 | [] | no_license | package cage.generator;
import cage.CombinedGeneratorPanel;
/**
* Panel that combines all the configuration panels for generators of 4-regular
* plane graphs. The different panels can be accessed through tabs.
*
* @author nvcleemp
*/
public class FourRegularPlaneGraphsPanel extends CombinedGeneratorPanel {
... | true |
87111ba24936c5f2bbfc51e34003a40e8f9f16b6 | Java | Ivovuceticc/Trabajo-Final | /TPpokemon/src/main/java/Vista/Recursos.java | UTF-8 | 466 | 2.015625 | 2 | [] | no_license | package Vista;
import javax.swing.ImageIcon;
public class Recursos
{
private ImageIcon fndVentanaV1 = new ImageIcon("C:\\Users\\Acer\\git\\Trabajo-Final\\TPpokemon\\fondoVentanaMenu.jpg");
private ImageIcon fndVentanaInsV1 = new ImageIcon("C:\\Users\\Acer\\git\\Trabajo-Final\\TPpokemon\\fondoVentanaInscripcion.png"... | true |
b309d4e6864c076724ef40bad50711f730f5b1d5 | Java | ArekLopus/EJBTest | /src/main/java/transactions/cmt/TransSL.java | UTF-8 | 1,666 | 2.3125 | 2 | [] | no_license | package transactions.cmt;
import java.io.IOException;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.ejb.Asynchronous;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.servlet.AsyncContext;
import javax.tr... | true |
03a913015bbf52eaa334288a17ef6b742e36fa46 | Java | huangguixin/canary | /src/main/java/com/seerbigdata/canary/web/DataSourceController.java | UTF-8 | 4,028 | 2.21875 | 2 | [] | no_license | package com.seerbigdata.canary.web;
import com.seerbigdata.canary.dto.InitData;
import com.seerbigdata.canary.entity.DataSource;
import com.seerbigdata.canary.service.DataSourceService;
import com.seerbigdata.canary.util.ResponseData;
import com.seerbigdata.canary.validator.DataSourceValidator;
import io.swagger.annot... | true |
fe5f04b6ba7a3160432714d5e251c8d9a4f2c127 | Java | ahlinist/tempvs-message | /src/main/java/club/tempvs/message/configuration/AuthConfiguration.java | UTF-8 | 423 | 1.78125 | 2 | [
"MIT"
] | permissive | package club.tempvs.message.configuration;
import club.tempvs.message.holder.UserHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.annotation.RequestScope;
@Configuration
public class AuthConfiguration {
... | true |
e806fdd24776b50dd757e8cba0f3b2b7f28b6a0e | Java | Gilmardealcantara/java-design-patterns | /src/br/com/alura/loja/discounts/ValueGreaterThanFiveHundredDiscount.java | UTF-8 | 558 | 2.890625 | 3 | [] | no_license | package br.com.alura.loja.discounts;
import br.com.alura.loja.budget.Budget;
import java.math.BigDecimal;
public class ValueGreaterThanFiveHundredDiscount extends Discount {
public ValueGreaterThanFiveHundredDiscount(Discount next) {
super(next);
}
@Override
protected BigDecimal doCalc(Bud... | true |
0bcde4e1c059ed183633fac3f89b89d0a06666b2 | Java | Andreas237/AndroidPolicyAutomation | /ExtractedJars/iRobot_com.irobot.home/javafiles/com/irobot/home/AccountOverviewActivity_.java | UTF-8 | 15,714 | 1.546875 | 2 | [
"MIT"
] | permissive | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.irobot.home;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.ActivityComp... | true |
a8d404b92c781e860e4d0aa88e1688d58ea41937 | Java | FelixCaron/Budget | /src/CashFlow.java | UTF-8 | 270 | 2.578125 | 3 | [] | no_license | import java.io.Serializable;
import java.util.Calendar;
public abstract class CashFlow implements Serializable{
Frequency frequency;
float amount;
Calendar when;
CashFlow(float Amount, Calendar When, Frequency f){
amount=Amount;
when=When;
frequency=f;
}
}
| true |
9aa78392b9d4d4fa186bc3b6a80371b8527f941e | Java | CUBRID/cubrid-manager | /com.cubrid.common.ui/src/com/cubrid/common/ui/spi/progress/LoadTableKeysProgress.java | UTF-8 | 4,184 | 1.78125 | 2 | [] | no_license | /*
* Copyright (C) 2018 CUBRID Co., Ltd. All rights reserved by CUBRID Co., Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: -
* Redistributions of source code must retain the above copyright notice, this
* li... | true |
5375032fb99b41f72e3b7aaf2318250d5a2c8ffd | Java | saiprasanthp/2nd-Project | /2nd project/src/MyExtend.java | UTF-8 | 725 | 3.109375 | 3 | [] | no_license | abstract class Dm{
abstract void m1();
abstract void m2();
abstract void m3();
void m4() {
System.out.println("hello4");
}
}
abstract class Klm extends Dm{
void m6() {
System.out.println("hello6");
}
}
abstract class Gvk extends Klm{
abstract void m5();
}
class Vrk extend... | true |
b2f850ce908055a8290ce2cbab024d6866606827 | Java | practice512/Test | /selenium-guice-master/src/main/java/com/app/configuration/DriverProvider.java | UTF-8 | 3,678 | 2.171875 | 2 | [] | no_license | package com.app.configuration;
import com.app.utils.PropertyMap;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.ios.IOSDriver;
import io.appium.... | true |
bbaa6dfdd12389e828b0d05a5182a9c8b9372b81 | Java | rundeck/rundeck | /rundeck-authz/rundeck-authz-core/src/main/java/org/rundeck/core/auth/app/TypedNamedAuthRequest.java | UTF-8 | 220 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package org.rundeck.core.auth.app;
/**
* Auth request for a resource type
*/
public interface TypedNamedAuthRequest
extends NamedAuthRequest
{
/**
* @return type name
*/
String getType();
}
| true |
1f24f425134a3992a6504ab66f8e7990522cdbdd | Java | oehf/ipf | /commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/requests/query/QueryList.java | UTF-8 | 3,609 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009 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 requi... | true |
5d344581aedfac5d0f498cfc65934ce8159a6bbe | Java | yusra-haider/coursera-algorithms-part1 | /Assignment2_DequesAndRandomizedQueues/Deque.java | UTF-8 | 2,708 | 3.453125 | 3 | [] | no_license | import java.util.Iterator;
import java.util.NoSuchElementException;
public class Deque <Item> implements Iterable <Item> {
private Node first, last;
private int size;
private class Node{
private Item item;
private Node previous;
private Node next;
}
... | true |
6c0e4452952fef57a1e9ad680541c7aa4acf8054 | Java | nishantmalaiya/AapkaTrade | /app/src/main/java/com/example/pat/aapkatrade/location/GeoCoderAddress.java | UTF-8 | 2,178 | 2.140625 | 2 | [] | no_license | package com.example.pat.aapkatrade.location;
import android.content.Context;
import android.location.Address;
import android.util.Log;
import com.example.pat.aapkatrade.general.entity.KeyValue;
import com.example.pat.aapkatrade.general.progressbar.ProgressBarHandler;
import com.google.android.gms.maps.model.LatLng;
... | true |
1ff9b4918d0ef5fb7a09b00b323e0ce68951ecb3 | Java | hmcts/ccd-data-store-api | /src/main/java/uk/gov/hmcts/ccd/domain/enablingcondition/PrioritiseEnablingCondition.java | UTF-8 | 880 | 2.484375 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.ccd.domain.enablingcondition;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.domain.model.definition.EventPostStateDefinition;
@Component
public class PrioritiseEnablingCondition {
publi... | true |
009c77a64d24a73cec41991560fd90e2bdeabdae | Java | microprograms/graphquul | /src/main/java/com/noctarius/graphquul/impl/MutableOperationDefinition.java | UTF-8 | 4,420 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.noctarius.graphquul.impl;
import com.noctarius.graphquul.ast.Directive;
import com.noctarius.graphquul.ast.Node;
import com.noctarius.graphquul.ast.OperationDefinition;
import com.noctarius.graphquul.ast.OperationType;
import com.noctarius.graphquul.ast.Selection;
import com.noctarius.graphquul.Source;
imp... | true |
9174e80451f2c801f1e1149204e5286f21d91808 | Java | GraduacaoUEL/sysbus | /SysBus/src/java/beans/Linha.java | UTF-8 | 2,342 | 2.890625 | 3 | [] | no_license | package beans;
import java.io.Serializable;
import java.sql.Time;
public class Linha implements Serializable {
private int codigoLinha;
private String nomeLinha;
private Time horaInicioLinha;
private int demandaLinha;
private int itinerarioLinha;
/**
* Construtor vazio.
*/
publ... | true |
9e46b597383c8fa412bdc2d369aa2023100db0af | Java | kratess/BungeeManager | /src/me/kratess/bungeemanager/utils/SpigotChecker.java | UTF-8 | 2,704 | 2.46875 | 2 | [] | no_license | package me.kratess.bungeemanager.utils;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import me.kratess.bungeemanager.Main;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayL... | true |
fcfbb8c39ff9868ca0db795d1f121bf0cbd8af79 | Java | Rvillarreal2/Java | /HW_2/src/Main.java | UTF-8 | 1,540 | 3.484375 | 3 | [] | no_license | import objects.ParallelArrays;
import objects.Sstack;
import objects.student;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
student s1 = new student("John", 002201234, 3.9);
student s2 = new student("Jim", 002201243, 3.7);
student s3 = new student("... | true |
6c6b6c137560a25c3e5626c4ad7bf90f6ab0fdb7 | Java | grimd34th/burstcoin-src | /nxt/AT.java | UTF-8 | 82,973 | 1.570313 | 2 | [] | no_license | /* 1: */ package nxt;
/* 2: */
/* 3: */ import java.nio.ByteBuffer;
/* 4: */ import java.nio.ByteOrder;
/* 5: */ import java.sql.Connection;
/* 6: */ import java.sql.PreparedStatement;
/* 7: */ import java.sql.ResultSet;
/* 8: */ import java.sql.SQLException;
/* 9: ... | true |
d408b4c924c6784877b41ea661ff113deb85fd98 | Java | adrianciuc/simple-web-shop | /src/main/java/com/homework/sws/repository/ProductRepository.java | UTF-8 | 242 | 2.09375 | 2 | [] | no_license | package com.homework.sws.repository;
import com.homework.sws.model.Product;
import java.util.List;
public interface ProductRepository {
List<Product> getForCategory(Long categoryId);
boolean existsProductWithId(Long productId);
}
| true |
692a87cbd3ee3bd1a57ebfdcc4b6678f3fa60a0a | Java | barbarafarias523/Programa-o-3---Unifacisa | /projeto1/src/AtividadeSala/CollectionsArray.java | UTF-8 | 350 | 2.84375 | 3 | [] | no_license | package AtividadeSala;
import java.util.ArrayList;
import java.util.Collections;
public class CollectionsArray {
public static void main(String[] args) {
ArrayList<Integer> ordena = new ArrayList<Integer>();
for(int i = 1; i <= 1000; i++) {
ordena.add(i);
}
Collections.reverse(ordena);
Syst... | true |
d492b712a812d9cd4d965ae9af6256554ea76f7e | Java | x-meta/xworker | /xworker_libgdx/src/main/java/xworker/libdgx/assets/loaders/TextureParameterActions.java | UTF-8 | 1,966 | 1.945313 | 2 | [
"Apache-2.0",
"Artistic-2.0"
] | permissive | package xworker.libdgx.assets.loaders;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.util.UtilData;
import com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.TextureData;
import ognl.OgnlExcep... | true |
4b9d2b2e75aa2fb70e08f7dd0887aed4597b80b2 | Java | Xiao-Y/learn | /learn-shop-core-search/src/main/java/com/billow/search/common/EsPageUtils.java | UTF-8 | 1,674 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.billow.search.common;
import com.billow.aop.commons.CustomPage;
import com.billow.tools.utlis.FieldUtils;
import org.apache.commons.collections4.MapUtils;
import org.springframework.data.elasticsearch.core.SearchHit;
import org.springframework.data.elasticsearch.core.SearchHits;
import java.util.List;
imp... | true |
3c39d9ada98bae41f2ae3f4b4214d57995034cce | Java | shwetabh123/Apptus | /RestAssuredTest/src/main/java/waetherapi/Payload.java | UTF-8 | 279 | 1.554688 | 2 | [] | no_license | package waetherapi;
public class Payload {
public static String createPlaceData()
{
String b="{\n external_id\": DEMO_TEST001,\n \"name\": Interview Station\n },\n \"latitude\": 33.33,\n \"longitude\": \"-111.43\",\n \"altitude\": \"444\",\n }";
return b;
}
}
| true |
c0c8ad220497c8fb522a2f5e334e35971bbc5388 | Java | Dropppan/SleepAssistant | /app/src/main/java/com/bp/droppa/sleepassistant/sleep_monitor/MainActivity.java | UTF-8 | 4,135 | 2.078125 | 2 | [] | no_license | package com.bp.droppa.sleepassistant.sleep_monitor;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.... | true |
5029c41da9f52ace9e430494de3760fdee4f646c | Java | BerndBreier/taskana | /rest/taskana-rest-spring/src/main/java/pro/taskana/workbasket/rest/models/WorkbasketRepresentationModelWithoutLinks.java | UTF-8 | 381 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package pro.taskana.workbasket.rest.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import pro.taskana.workbasket.api.models.Workbasket;
/**
* EntityModel class for {@link Workbasket} but without links property.
*/
@JsonIgnoreProperties(value = {"links"})
public class WorkbasketRepresentation... | true |
b5b0345da08a5590163dfbf9fd22dc5dbeff00cf | Java | zhangtianyi123/algo | /algo/src/main/java/zty/practise/algo/leetcode1200/LeetCode1252.java | UTF-8 | 835 | 3.671875 | 4 | [] | no_license | package zty.practise.algo.leetcode1200;
/**
*
* 多步动态变化
*
* 因为是累加,影响是叠加的 不会相互抵消
*
* 所以可以单独全部看x 单独看全部的y
*
* x[n] = []
* y[n] = []
*
* 奇数 = 奇数加偶数
*
* 所以x奇数 * y偶数 + x偶数 + y奇数
*
* 此类题目找到数学规律总是比动态模拟更好的
*
* @author zhangtianyi
*
*/
public class LeetCode1252 {
public int oddCells(int n, int m, i... | true |
907167a9ae53ed4f756638d6a914e474aef10476 | Java | nickbarban/restauranter | /src/test/java/ppl/da/core/dao/UserDaoTest.java | UTF-8 | 2,034 | 2.3125 | 2 | [] | no_license | package ppl.da.core.dao;
/**
* Created by greg on 18.10.15.
*/
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ContextConfigura... | true |
8e3fac93099e2f7ff3f82ceb88712c632a132af9 | Java | WildanAth/Sistem-Inventory-Barang | /src/Forms/IfrSupplier.java | UTF-8 | 34,989 | 2.4375 | 2 | [] | no_license | /*
* 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 Forms;
import Tools.KoneksiDB;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import jav... | true |
88084388aa68e59e04b13cd2e13cf9f2e2a5b2ba | Java | danbinnun1/anomaly_detection_webapp | /src/main/java/com/anomaly_detection/server/dto/ModelDto.java | UTF-8 | 267 | 1.695313 | 2 | [] | no_license | package com.anomaly_detection.server.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@Data
@Accessors(chain = true)
public class ModelDto {
private String modelId;
private Date uploadTime;
private String status;
}
| true |
20ef7e093ac7b696caed09f442fe2027d845ceff | Java | dionylon/simpleblog | /src/main/java/com/dionysun/simpleblog/dao/TagRepository.java | UTF-8 | 400 | 2.046875 | 2 | [] | no_license | package com.dionysun.simpleblog.dao;
import com.dionysun.simpleblog.entity.Tag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.Optional;
public interface TagRepository extends JpaR... | true |
8c5f14fc71f9fbc7691f68f79ef96d792abc3616 | Java | cckmit/Nuclos | /nuclos-common/src/main/java/org/nuclos/server/eventsupport/valueobject/EventSupportEventVO.java | UTF-8 | 2,717 | 2.28125 | 2 | [] | no_license | package org.nuclos.server.eventsupport.valueobject;
import org.nuclos.common2.StringUtils;
import org.nuclos.common2.exception.CommonValidationException;
import org.nuclos.server.common.valueobject.NuclosValueObject;
public class EventSupportEventVO extends EventSupportVO
{
// Foreing keys
private Integer iEntity;
... | true |
752c55c3d523669ae7063a12ae379a0f28fd5b45 | Java | ynadeau/pet-registration | /src/test/java/PetRegistration.java | UTF-8 | 2,115 | 3.296875 | 3 | [] | no_license | /**
* File Name: PetRegistration.java<br>
* Nadeau, Yves<br>
* Java Boot Camp Exercise<br>
* Instructor: Jean-francois Nepton<br>
* Created: Aug 17, 2016
*/
/**
* PetRegistration //ADDD (description of class)
* <p>
* //ADDD (description of core fields)
* <p>
* //ADDD (description of core methods)
*
* @auth... | true |
e7147b214a4128cceb76003043c0a468c9b76137 | Java | Rita-Bernstein/Gensokyo | /src/main/java/Gensokyo/minions/PetUtils.java | UTF-8 | 1,621 | 2.625 | 3 | [] | no_license | package Gensokyo.minions;
import Gensokyo.cards.Pets.SummonFieryMouse;
import Gensokyo.cards.Pets.SummonJeweledCobra;
import Gensokyo.cards.Pets.SummonPsychicCat;
import Gensokyo.cards.Pets.SummonYinYangFox;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
impor... | true |
991418346fc35671c835bf5fa93bfb59b0ad5aad | Java | yangz3/LeetCode_java | /String/StrStr.java | UTF-8 | 884 | 3.203125 | 3 | [] | no_license | public class Solution {
public int strStr(String haystack, String needle) {
int l2 = needle.length();
int l1 = haystack.length();
if(l2 > l1){
return -1;
}
if(l2 == 0){
return 0;
}
if(l1 == 0){
return -1;
}
... | true |
7231294784eaae6877465eeabdd484e31ea6c46a | Java | DuangYYing/Trackbot | /web project/src/trackRobot/dao/impl/UserDAOImpl.java | UTF-8 | 4,420 | 2.859375 | 3 | [] | no_license | package trackRobot.dao.impl;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import trackRobot.dao.UserDAO;
import trackRobot.db.DBConnect;
import trackRobot.vo.User;
public class UserDAOImpl implements UserDAO {
/*
This method is used to check the password of corresp... | true |
14219b24462b6567effc9225b8f5979223baeafe | Java | Yei-Linux/DailyIdentity-SpringTDD | /src/main/java/pe/yeilinux/identity/domain/Person.java | UTF-8 | 180 | 1.75 | 2 | [] | no_license | package pe.yeilinux.identity.domain;
import lombok.Data;
@Data
public class Person {
private String fullName;
private String age;
private String address;
}
| true |
5fd27b6901336f228bba3066791d423206c415c2 | Java | kukudereagan/NekoGameServer | /game-dao/src/main/java/com/nekonade/dao/db/repository/RaidBattleDbRepository.java | UTF-8 | 295 | 1.742188 | 2 | [] | no_license | package com.nekonade.dao.db.repository;
import com.nekonade.dao.db.entity.data.RaidBattleDB;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface RaidBattleDbRepository extends MongoRepository<RaidBattleDB, String> {
void deleteByStageId(String stageId);
}
| true |
8b79a48d9f8c47dc5fc3e5b4d330c93a3e97ece0 | Java | joezombie/HONN | /DVerkefni_07/RUMDB/src/is/ru/rumdb/test/TestSimple.java | UTF-8 | 1,108 | 2.515625 | 3 | [] | no_license | package is.ru.rumdb.test;
import is.ru.rumdb.data.MovieDataGatewayStub;
import is.ru.rumdb.domain.Movie;
import is.ru.rumdb.mail.MailServerStub;
import is.ru.rumdb.service.MovieService;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
class TestSimple
{
... | true |
f684e40c1caa3f0f15f775e5ccebf009710bc035 | Java | anmol4210/imdb | /src/main/java/com/example/demo/service/impl/MovieServiceImpl.java | UTF-8 | 716 | 2.0625 | 2 | [] | no_license | package com.example.demo.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.example.demo.dao.MovieDao;
import com.example.demo.dto.MovieDto;
import com.example.demo.service.MovieService;
@Component
public cl... | true |
918e10979639fd467b5085c0c90949d7958ee7ac | Java | exmyth/design-pattern | /composite/src/main/java/org/ko/composite/basic/Leaf.java | UTF-8 | 335 | 2.984375 | 3 | [] | no_license | package org.ko.composite.basic;
/**
* 简单类
*/
public class Leaf implements Component {
private String name;
public Leaf(String name) {
this.name = name;
}
@Override
public void operation() {
System.out.println(this.name);
}
public String getName() {
return name;... | true |
dd3506faa9dd3f2a3ab02799495ba49d5cde5fac | Java | hopeful89/FoodTruckProject | /src/com/skilldistillery/app/FoodTruck.java | UTF-8 | 1,037 | 3.140625 | 3 | [] | no_license | package com.skilldistillery.app;
public class FoodTruck {
//static to increment for unique truckId
private static int trucksCreated = 0;
private int truckId;
private String truckName;
private String foodType;
private double rating;
public FoodTruck(String truckName, String foodType, double rating) {
this.... | true |
3b103ef774f34966dea200b5b0a05a3515443596 | Java | cckmit/elocationCool | /src/main/java/com/riti/pojo/QueryTempParams.java | UTF-8 | 1,114 | 2.171875 | 2 | [] | no_license | package com.riti.pojo;
import java.io.Serializable;
public class QueryTempParams implements Serializable {
private int uid;// 设备 uid
private String startTime;// 开始时间
private String endTime;// 结束时间
private int startPage;// 开始第几条
private int endPage;// 结束第几条
public int getUid() {
return uid;
}
public void ... | true |
bd39e031224465ad9320069551261f4e838fe5a1 | Java | christophd/syndesis-qe | /ui-tests/src/test/java/io/syndesis/qe/steps/datavirtualization/DataVirtualizationSteps.java | UTF-8 | 7,935 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package io.syndesis.qe.steps.datavirtualization;
import static org.assertj.core.api.Assertions.assertThat;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.$$;
import io.syndesis.qe.pages.Virtualizations.Virtualizations;
import io.syndesis.qe.steps.CommonSteps;
import io... | true |
2b679979db59105e8b58c18ac3522075cabd6c67 | Java | fessNiklas/Logger | /app/src/main/java/com/fess/loggertest/Pair.java | UTF-8 | 390 | 2.421875 | 2 | [] | no_license | package com.fess.loggertest;
import android.support.annotation.NonNull;
import java.io.Serializable;
public class Pair<T, U> implements Serializable {
public final T key;
public final U value;
Pair(T key, U value) {
this.key = key;
this.value = value;
}
@NonNull
@Override
... | true |
ae357cd8814ae0b82916ff6f138a9bf8cde889a5 | Java | zhongxingyu/Seer | /Diff-Raw-Data/5/5_4061995a5a1e9e4c98220ff097368343360607b0/MulticastPulseAgentTest/5_4061995a5a1e9e4c98220ff097368343360607b0_MulticastPulseAgentTest_t.java | UTF-8 | 9,141 | 1.921875 | 2 | [] | no_license | /**
* 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... | true |
bf13d397bed3798ac54472c95e3e0a6a3c36863d | Java | pinguo-liuxiangfeng/Camera_Demo | /CameraDemo/myapplication3/src/main/java/com/example/liuxiangfeng/myapplication3/MainActivity.java | UTF-8 | 1,984 | 2.09375 | 2 | [] | no_license | package com.example.liuxiangfeng.myapplication3;
import android.app.Activity;
import android.app.Fragment;
import android.content.res.Resources;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
... | true |
8a13947540c66c4443c368a6f8f7277909405e0f | Java | TopBro/SelectionCommittee | /SelectionCommittee/src/ua/nure/zhabin/SelectionCommittee/db/dao/RegistrationDao.java | UTF-8 | 529 | 1.992188 | 2 | [] | no_license | package ua.nure.zhabin.SelectionCommittee.db.dao;
import java.sql.Connection;
import java.util.List;
import ua.nure.zhabin.SelectionCommittee.db.entity.RegistrationRecord;
public interface RegistrationDao {
List<RegistrationRecord> getAllByUserId(long userId, Connection connection);
RegistrationRecord get... | true |
aa4f6ab33680f7f360fb562a6cf8f4145b0df148 | Java | damascenodiego/learnlib | /oracles/filters/statistics/src/test/java/de/learnlib/filter/statistic/queries/AbstractTestQueries.java | UTF-8 | 1,309 | 1.882813 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /* Copyright (C) 2013-2018 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.de/.
*
* 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/... | true |
d21e7f7835f3755e9989bdab17fcfdd3a72b7372 | Java | aws/aws-xray-sdk-java | /aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/plugins/ECSMetadataFetcher.java | UTF-8 | 4,437 | 1.984375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | true |
8aad45468f33b22e92a28a60e607421142373247 | Java | mfamelis/AlloyInEcore | /Source/eu.modelwriter.core.alloyinecore.ui/src/eu/modelwriter/core/alloyinecore/ui/ASTManager.java | UTF-8 | 2,973 | 2.046875 | 2 | [
"MIT"
] | permissive | package eu.modelwriter.core.alloyinecore.ui;
import java.util.HashSet;
import java.util.Set;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtim... | true |
973e371e972603841786efca01fee4da07ff52c7 | Java | Armastus/ProjectEuler | /ProjectEuler/src/SmallestMultiple/SmallestMultiple.java | UTF-8 | 618 | 3.546875 | 4 | [] | no_license | package SmallestMultiple;
/**
* Created by David on 4/11/2015.
*/
public class SmallestMultiple {
/*2520 is the smallest number that can be divided by each of the numbers from
1 to 10 without any remainder.*/
public static void main(String[] args){
for(int x = 1; x <= 1000000000; x++) {
//try the ... | true |
680a16fb4fca31b5d07e3e253352649a629541b7 | Java | questionn/java_partice_code | /binaryTreeComplete.java | UTF-8 | 712 | 3.796875 | 4 | [] | no_license | //判断一棵树是否是完全二叉树 返回0代表是完全二叉树
public int binaryTreeComplete(Node root){
//使用队列
Queue<Node> queue = new LinkedList<Node>();
if(root != null){
queue.offer(root);
}
//使用层序遍历思想
while (!queue.isEmpty()){
Node cur = queue.poll();
if(cu... | true |
7a8b5d0086ef5a77ef532ad9e296d3dd6878c42c | Java | godlinchong/Zed | /src/com/mediator/Mediator.java | UTF-8 | 162 | 1.828125 | 2 | [] | no_license | package com.mediator;
/**
* @author lin
* 中介对象接口
*/
public interface Mediator {
public void createMediator();
public void workAll();
} | true |
ae44caae1b30f0d81ed13c6f7679a8a08d9e5720 | Java | yomaneric/MenuRecommendationApp | /app/src/main/java/com/example/menurecommendation/MyDBHandler.java | UTF-8 | 8,237 | 2.421875 | 2 | [] | no_license | package com.example.menurecommendation;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
i... | true |
1224632c5b8ccfafe21f7b76cf3bfc233195b7fe | Java | agapsys/simple-http-client | /src/main/java/com/agapsys/http/HttpClient.java | UTF-8 | 3,680 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Agapsys Tecnologia Ltda-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 ... | true |
6a18f5a7cf5f74f69ea5b1b44fcc4e089def807e | Java | dttvn0010/java_samples | /2.springboot/3.sql_basic/src/main/java/com/example/demo/service/StudentService.java | UTF-8 | 3,697 | 2.34375 | 2 | [] | no_license | package com.example.demo.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Properties;
import java.util.stream.Collectors;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.beans.factory.annotation.Aut... | true |
72d49572f6b7ac69f6933c45b4ef3e557dcb5267 | Java | petarr97/Activity-diagram-editor | /src/tree/projectExplorerView/ProjectContextMenu.java | UTF-8 | 3,070 | 2.578125 | 3 | [] | no_license | package tree.projectExplorerView;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import javax.swing.JFileChooser;
import javax.swing.JMenu;
import javax.swi... | true |
9f41f23c4205f415a7bba35a2a37d7b531b91804 | Java | hyb1234hi/demo-1 | /app/src/main/java/xx/demo/activity/view/PreviewViewV2.java | UTF-8 | 39,663 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package xx.demo.activity.view;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Mat... | true |
a3ea22218d4b1f2ac1347d0e3cbaf787a179df8c | Java | GianfrancoRaselli/gimnasio-java | /src/Controlador/ControladorDia.java | UTF-8 | 257 | 2.234375 | 2 | [] | no_license | package Controlador;
import java.util.ArrayList;
import Entidades.*;
import Modelo.*;
public class ControladorDia
{
public ArrayList<Dia> BuscarDias() throws Exception
{
DiaLogic dl = new DiaLogic();
return (ArrayList<Dia>) dl.BuscarDias();
}
}
| true |
e491c1635d971894f2d7730bfb89330699d3b675 | Java | RadhikaKulk/CodingPracticeS30 | /Array-2/FindAllNumbersDisappearedInArrayOpt.java | UTF-8 | 796 | 3.390625 | 3 | [] | no_license | // TC: O(n)
// SC: O(1)
class Solution {
public List<Integer> findDisappearedNumbers(int[] nums) {
List<Integer> result = new ArrayList<>();
if(nums == null || nums.length == 0) {
return result;
}
int i, n;
n = nums.length;
for(i = 0; i < n; i++)... | true |
5eef2e7f9e5e5cfafb2b6d7fdf98ef566c7afa49 | Java | AppleD0g/Zoo-System | /zoo/LoginScreen/src/GUI/SelectionScreen.java | UTF-8 | 3,327 | 2.8125 | 3 | [] | no_license | package GUI;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;... | true |
6590ce5322fab740f1da2457a2681e40999e77ff | Java | tejastj/DBMS | /addScoreForm.java | UTF-8 | 20,557 | 2.265625 | 2 | [] | no_license |
import java.awt.Color;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumn;
//import static manageStudentsForm.jTable1;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in ... | true |
b33b699d95af7b0f62f270cdba52a60e48c98d87 | Java | someone369/JenkinsTest | /src/test/java/locators/Csstest.java | UTF-8 | 1,251 | 2.078125 | 2 | [] | no_license | package locators;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import Sample.FrameWork.Utils.PageObjects;
import Sample.FrameWork.testBase.BaseSetUp;
public class Csstest extends BaseSetUp{
@BeforeTest
public void browser_configurations() ... | true |
f94b98a9bb86d763c0770d65b4104fcf236bb3dc | Java | the-jbutler/DragonsDogmaSaveManager | /src/main/java/com/woernerj/dragonsdogma/bo/types/xml/ContainerType.java | UTF-8 | 314 | 2.203125 | 2 | [] | no_license | package com.woernerj.dragonsdogma.bo.types.xml;
import java.util.List;
public abstract class ContainerType<T> extends NamedType {
private List<T> children;
public List<T> getChildren() {
return this.children;
}
public void setChildren(List<T> children) {
this.children = children;
}
}
| true |
5326fe9536daeaf624a2d05caeaee9447a0502d6 | Java | keycloak/keycloak | /testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/domainextension/rest/ExampleRestResource.java | UTF-8 | 2,116 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | true |
040afa3d66cae400b3c632b8af58211b654d9468 | Java | EndlessCreation/ec_homepage_spring | /src/main/java/com/endlesscreation/ecsite/repository/ProjectRepository.java | UTF-8 | 541 | 1.8125 | 2 | [] | no_license | package com.endlesscreation.ecsite.repository;
import com.endlesscreation.ecsite.domain.project.Project;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface ProjectRepositor... | true |
55a2fc946d4367441bea2eb25586287fedf3d3a4 | Java | PedrOrtizM/JavaProjects | /RMI & SOCKET/Socket/SocketCliente/src/logica/Cliente.java | UTF-8 | 6,156 | 2.8125 | 3 | [] | no_license | /*
* 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 logica;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.util.Properties;
im... | true |
d0b20589ea2745c287782da47a3b7f59de71426b | Java | santiceron023/medica-app-backEnd | /src/main/java/com/medicaApp/service/impl/MenuServiceImpl.java | UTF-8 | 1,301 | 2.4375 | 2 | [] | no_license | package com.medicaapp.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.medicaapp.dao.IMenuDAO;
import com.medicaapp.model.Menu;
import com.medicaapp.serv... | true |
9ae27c72f06157ee305fda5ddabb9a9aaf278c3e | Java | Kefirkb/mock-server-dev | /src/main/java/com/kefirkb/repository/SomeEntityRepository.java | UTF-8 | 227 | 1.914063 | 2 | [] | no_license | package com.kefirkb.repository;
import com.kefirkb.model.SomeEntity;
import java.io.IOException;
import java.util.List;
public interface SomeEntityRepository {
List<SomeEntity> findAllFirstEntity() throws IOException;
}
| true |
c8158dc24b6853b3656d1024740b3cf4d661a432 | Java | lingfei263/TabActivity | /library/src/main/java/cn/ffb/library/bean/TabInfo.java | UTF-8 | 539 | 1.953125 | 2 | [] | no_license | package cn.ffb.library.bean;
import android.os.Bundle;
import android.support.v4.app.Fragment;
public class TabInfo {
public Class<? extends Fragment> clss;
public Fragment fragment;
public String title;
public Bundle bundle;
public TabInfo(String title, Class<? extends Fragment> clss) {
super();
t... | true |
165699fc05d0b3b1081be0faa86c6fe3c65631f2 | Java | golden-hu/fos3 | /FOS/src/main/java/haitai/fos/exp/entity/dao/TInvoiceDAO.java | UTF-8 | 384 | 1.820313 | 2 | [] | no_license | package haitai.fos.exp.entity.dao;
import haitai.fos.exp.entity.idao.ITInvoiceDAO;
import haitai.fos.exp.entity.table.TInvoice;
import haitai.fw.entity.GenericDAO;
import org.springframework.stereotype.Component;
@Component
public class TInvoiceDAO extends GenericDAO<TInvoice, Integer> implements ITInvoiceDAO... | true |
1205a924e9f5b239967961ed361b5d449f2046ea | Java | arkile/Ucast | /src/main/java/com/Ucast/controllers/AuthorController.java | UTF-8 | 2,731 | 2.375 | 2 | [] | no_license | package com.Ucast.controllers;
import com.Ucast.repositories.AuthorRepository;
import com.Ucast.models.MongoAuthorModel;
import com.Ucast.models.AuthorModel;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springf... | true |
9212d5264bab3b64be4b4f813278db7cf72a3f2e | Java | urandu/openmrs-module-clinicalsummary | /omod/src/main/java/org/openmrs/module/clinicalsummary/web/controller/utils/OrderedObsListController.java | UTF-8 | 7,637 | 1.703125 | 2 | [] | no_license | /**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS IS"
... | true |
e95db964a3d19064fa728a79cf1b010d47244c1e | Java | mailmevijayakarthik/demo-mobile-desktop | /src/test/java/com/testing/pageobject/ShoppingPage.java | UTF-8 | 2,278 | 1.890625 | 2 | [] | no_license | package com.testing.pageobject;
import java.util.List;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.testing.stepdefinitions.BaseClass;
public class ShoppingPage extends B... | true |
a0a3861facb2eb87ea3b499e77569012cfe993fb | Java | shan12138/tutor_server | /src/main/java/com/dataee/tutorserver/tutorteacherserver/dao/TeacherCoursewareMapper.java | UTF-8 | 1,785 | 2.09375 | 2 | [] | no_license | package com.dataee.tutorserver.tutorteacherserver.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @au... | true |
5752ac17eed9c7108092262ce063b7e2aeb6a9a5 | Java | JakubKacik/Game2048 | /app/src/main/java/com/example/czjakac/a2048/ListAdapter.java | UTF-8 | 2,546 | 2.59375 | 3 | [] | no_license | package com.example.czjakac.a2048;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.Li... | true |
1e74501b8a801e3de0633e2948ee02056eb11471 | Java | lhannest/beacon-tester | /validator/src/main/java/bio/knowledge/validator/exception/ValidationException.java | UTF-8 | 175 | 1.78125 | 2 | [] | no_license | package bio.knowledge.validator.exception;
public class ValidationException extends RuntimeException {
public ValidationException(String message, Throwable cause) {
}
}
| true |
e1c07914995e55d38bd1a5c44b67d80b7259cf9c | Java | Gdvhev/ing-sw-2018-elwahsh-franzini-giudici | /sagrada/src/test/java/it/polimi/se2018/util/MatchIdentifierTest.java | UTF-8 | 2,432 | 2.90625 | 3 | [] | no_license | package it.polimi.se2018.util;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
/**
* Tester class for the MatchIdentifier
* @author Francesco Franzini
*/
public class MatchIdentifierTest {
/**
* Tests behaviour with four names
*/
... | true |
833977d1025733465f63749f0e8fe49373bd18ba | Java | VivekBhargav/SpringCore | /src/main/java/com/hbrnt/app/ConnectionTest.java | UTF-8 | 213 | 1.6875 | 2 | [] | no_license | package com.hbrnt.app;
import com.hbrnt.utl.HibernateUtils;
public class ConnectionTest {
public static void main(String[] args) {
HibernateUtils.getSessionFactory();
System.out.println("Success");
}
}
| true |
04117ec5c882de62a995004a5c20f503596a2444 | Java | Oasis-SMP/OasisExtras | /src/net/charter/orion_pax/OasisExtras/Commands/EnableMeCommand.java | UTF-8 | 899 | 2.5 | 2 | [] | no_license | package net.charter.orion_pax.OasisExtras.Commands;
import net.charter.orion_pax.OasisExtras.OasisExtras;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
public class EnableMeCommand implements CommandExecuto... | true |
3dfbe6cd4748f5d8c3ae20487f1a6d266b0cff63 | Java | Sotatek-NguyenHoan/GetIphone11OfWeb | /src/test/java/test/Page/EbayPage.java | UTF-8 | 2,010 | 2.078125 | 2 | [] | no_license | package test.Page;
import io.qameta.allure.Step;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import test.Base.BaseTest;
import test.Models.Attribute;
import test.Base.BasePage;
import java.util.... | true |
b2d8eaf7c8929f51827644242f899f0ff327e082 | Java | SWUN-BugHub/pickles | /src/main/java/com/styf/netty/IMessageHandler.java | UTF-8 | 163 | 1.890625 | 2 | [] | no_license | package com.styf.netty;
public abstract class IMessageHandler {
public abstract void process(IClientConnection paramIClientConnection, Object paramObject);
}
| true |
c78eea167e2729d5675a991d075c46932d1bf055 | Java | jejugamja/spring-mall | /src/main/java/com/example/mall/application/member/service/validate/MemberValidator.java | UTF-8 | 1,013 | 2.234375 | 2 | [] | no_license | package com.example.mall.application.member.service.validate;
import com.example.mall.application.member.domain.builder.MemberBuilder;
import com.example.mall.application.member.domain.repository.MemberRepository;
import com.example.mall.application.member.service.exception.MailExistsException;
import com.example.mall... | true |
7a8163b6257a3100a4c8f6d036f13dc84f077b42 | Java | betulkaraa/hrms_backend_son_-devi | /Hrms/src/main/java/com/hrms/bussines/concretes/JobTitleManager.java | UTF-8 | 208 | 1.515625 | 2 | [] | no_license | package com.hrms.bussines.concretes;
import org.springframework.stereotype.Service;
import com.hrms.bussines.abstracts.JobTitleService;
@Service
public class JobTitleManager implements JobTitleService{
}
| true |
165b144644a2ad8817bd96d12811b8286d62a0e3 | Java | losesw/MyTestTestTest | /src/main/java/com/qed/expression/SteamToMapTest.java | UTF-8 | 2,898 | 2.921875 | 3 | [] | no_license | /**
* @Version 1.0.0
* Copyright (c) 2016上海相诚金融-版权所有
*/
package com.qed.expression;
import cc.cc.stream.Employee;
import java.time.LocalDate;
import java.time.Month;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @Class SteamToMapTest
* @Descripti... | true |
2be2c46586a818b3725281a706d89c4caf42de7b | Java | theChildinus/DBServer | /ldapHelper.src/bupt/intt/wsmonitor/servicemonitor/domain/serialzable/SDataServiceConfig.java | UTF-8 | 4,224 | 1.820313 | 2 | [] | no_license | /* */ package bupt.intt.wsmonitor.servicemonitor.domain.serialzable;
/* */
/* */ import bupt.intt.wsmonitor.servicemonitor.domain.DataServiceConfig;
/* */
/* */ public class SDataServiceConfig extends SConfigType
/* */ {
/* */ private static final long serialVersionUID = 67213118554157676... | true |
a46d900451e8c993fd0fbf238562d8e0915081f3 | Java | vredlight/CurrencyConvert | /app/src/main/java/com/example/ved/currencyconvert/MainActivity.java | UTF-8 | 844 | 2.453125 | 2 | [] | no_license | package com.example.ved.currencyconvert;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
public void Convert(View view){
EditText dolla... | true |
51050e0ce2371560cb28deef327f790ccbc55374 | Java | SilverwolfMD/SeleniumJavaTutorialBackup | /src/Tests/SauceLabsTutorial.java | UTF-8 | 1,152 | 2.609375 | 3 | [] | no_license | package Tests;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
public class SauceLabsTutorial {
public static void main(String[] args) {
//variables section
WebDriver driver;
DesiredCapabilities caps;
String sauceUser;
String sauceAccess;
String sauceDC;
... | true |
6c3c907d92ba67a6137a04ddb663fa964d984391 | Java | lucassantoss1701/school-exercise | /src/main/java/br/com/alura/school/registration/Registration.java | UTF-8 | 1,241 | 2.453125 | 2 | [] | no_license | package br.com.alura.school.registration;
import br.com.alura.school.course.Course;
import br.com.alura.school.user.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sun.istack.NotNull;
import javax.persistence.EmbeddedId;
import javax.persistence... | true |
a1fafba67701f4f4c8355fe45e03be1bb9a49196 | Java | ramonzacarias/Java_Exercicios | /src/IFS/POO/tratamento/Autenticavel.java | UTF-8 | 101 | 2.046875 | 2 | [] | no_license | package IFS.POO.tratamento;
public interface Autenticavel {
boolean autenticar(String senha);
}
| true |
82c845cb1484ae649bf836bf544a66377544005b | Java | rmqc0909/mavenSpace_idea | /src/main/java/cn/tk/reuse_clazz/Constructors.java | GB18030 | 1,256 | 3.625 | 4 | [] | no_license | package cn.tk.reuse_clazz;
/**
* Created by xiedan11 on 2016/10/13.
* 1.ûṩĹ캯ʱĹ캯ʽصøĹ캯
* 2.ṩĹ캯ʱʱĹ캯ͿԲʽøĹ캯±ĬϵøṩĹ캯
* вĹ캯ڲʽĵø캯ʱĬϵõĹ캯
*
*/
class Base2 {
private int i;
private int j;
public Base2(int i, int j) {
System.out.println ("Base2 i, j constructor");
this.i = i;
this.j ... | true |
a7f3ca59c2c5e859351094abd3c98bf7cb525415 | Java | AmgaadEzzat/CapstoneStage2 | /CapstoneStage2/app/src/main/java/com/example/savior/capstonestage2/MessageAdapter.java | UTF-8 | 2,864 | 2.140625 | 2 | [] | no_license | package com.example.savior.capstonestage2;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Gl... | true |
fa75d65af149e449ed775c47eb89a3f402249035 | Java | Oharaicaine/IsoGame | /src/game/utils/Utils.java | UTF-8 | 1,300 | 2.71875 | 3 | [] | no_license | package game.utils;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import game.entity.Entity;
import game.entity.EntityManager;
import game.entity.entityObjects.EntityTile;
import game.input.MouseInput;
import game.maths.Vector3f;
impo... | true |