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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4cfa8f3d0970c0969047f6269211f5949796c6c8 | Java | linschris/data-structures-projects | /Homework5/src/NodeState.java | UTF-8 | 4,915 | 2.921875 | 3 | [] | no_license | import java.util.Map;
import java.util.List;
import java.util.LinkedList;
import java.util.TreeMap;
class NodeState extends State {
class Edge {
int src;
int dst;
int cost;
public Edge(int src, int dst, int cost) {
this.src = src;
this.dst = dst;
... | true |
517a5d9de9c3f0229e3cda423d983850cb93b6e9 | Java | acmcms/acm-plug-webdav | /java/ru/myx/webdav/WebDavResponse.java | UTF-8 | 5,812 | 2.203125 | 2 | [] | no_license | /*
* Copyright 1997-1998 by Marc Eaddy, Jonathan Shapiro, Shao Rong; ALL RIGHTS
* RESERVED
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for research and educational purpose and without fee is hereby
* granted, provided that the above copyright notice appear in all copi... | true |
f1d7c2626e5a2d47f6eb34973b0175b7f5e7402c | Java | yhxxxbl/EditManifestPlugin | /plugin/src/main/java/com/wkl/manifest/plugin/ManifestExtension.java | UTF-8 | 1,054 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.wkl.manifest.plugin;
import com.wkl.manifest.config.ApplicationConfig;
import com.wkl.manifest.utils.Utils;
import org.gradle.api.Action;
import org.gradle.api.Project;
/**
* Created by <a href="mailto:wangkunlin1992@gmail.com">Wang kunlin</a>
* <p>
* On 2018-04-16
*/
public class ManifestExtension ... | true |
02dca1d4be392a3678bc73436559752947d78e05 | Java | sqsgalaxys/workspace | /javase/Traffic0.2/src/cn/agrin/Direction.java | UTF-8 | 225 | 1.75 | 2 | [] | no_license | package cn.agrin;
public enum Direction {
// S2N,S2W,E2W,E2S,
// N2S,N2E,W2E,W2N,
// S2E,E2N,N2W,W2S;
STOP,
S2N,S2W,S2E,
E2W,E2S,E2N,
N2S,N2E,N2W,
W2E,W2N,W2S;
//STOP,S2N,S2W,S2E,E2W,E2S,E2N,N2S,N2E,N2W,W2E,W2N,W2S,
}
| true |
a738070f21d4559a2307042993dfde52ac12efdc | Java | gvs048/Repo_05172013 | /5172013/testCases/src/test/java/com/dealwallet/webdriver/selenium05082013/Dealwallet1.java | UTF-8 | 2,408 | 2.46875 | 2 | [] | no_license | package com.dealwallet.webdriver.selenium05082013;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
import jxl.*;
import jxl.read.biff.BiffExcep... | true |
9491cb9129a72e98df9a0754d03e70764af2e110 | Java | HelpChat/PlaceholderAPI-Discord-Bot | /src/main/java/at/helpch/papibot/core/framework/BinderModule.java | UTF-8 | 756 | 2.09375 | 2 | [
"MIT"
] | permissive | package at.helpch.papibot.core.framework;
import at.helpch.papibot.core.objects.tasks.Task;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
// ------------------------------
// Copyright (c) PiggyPiglet 2018
// https://www.piggypiglet.me
// -----------------... | true |
7c29b6f700348a67fa4c65631e7f70e0eef5f178 | Java | Hades957/Learning-for-Java | /app01/src/com/yunsi/thread/PrintNumRunnable.java | WINDOWS-1252 | 395 | 3.15625 | 3 | [] | no_license | package com.yunsi.thread;
public class PrintNumRunnable implements Runnable {
public void run() {
Thread t = Thread.currentThread();
System.out.println("PrintNumRunnable ߳ƣ"+t.getName());
for(int i=1;i<=20;i++) {
System.out.print(i+" ");
/*
* long start = System.currentTimeMillis();
* while((Syst... | true |
02f67a64f76104e986a5528a1737429cc5542d7b | Java | seasarorg/s2struts | /s2struts/src/test/java/org/seasar/struts/pojo/processor/commands/WrapS2BeanValidatorFormTest.java | UTF-8 | 2,601 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package org.seasar.struts.pojo.processor.commands;
import org.apache.struts.action.ActionForm;
import org.apache.struts.chain.commands.ActionCommand;
import org.apache.struts.chain.contexts.ActionContext;
import org.apache.struts.chain.contexts.ServletActionContext;
import org.apache.struts.config.impl.ModuleCon... | true |
1d16e6c25ef0a5a1622c962d4f77a1c2ac8936a1 | Java | Codez01/Java | /Robot/MoreSpecialRobot.java | UTF-8 | 1,978 | 3.75 | 4 | [] | no_license |
public class MoreSpecialRobot extends SpecialRobot {
private int battery;
public MoreSpecialRobot() {
// a defualt constructor that is inherited from the superclass robot with adding the battery percentage
super();
this.battery = 100;
}
public MoreSpecialRobot(String a) {
// a constructor that is inheri... | true |
a63fea8a314e7c883ed0a9b20f50859cfb818d61 | Java | Bravery413/Data_Structure | /src/leetcode/everyday/year2020/july/Solution0717.java | UTF-8 | 922 | 3.328125 | 3 | [] | no_license | package leetcode.everyday.year2020.july;
/**
* @author: Bravery
* @create: 2020-07-17 23:05
**/
public class Solution0717 {
public static int searchInsert(int[] nums, int target) {
return searchInsert(nums, target, 0, nums.length);
}
public static int searchInsert(int[] nums, int target, int... | true |
44d1c2e0d2fce202836ae37bd58da363e60af11c | Java | LambdaExpression/One-stop-frame | /src/main/java/org/tcat/frame/enums/EnumsMsg.java | UTF-8 | 2,503 | 2.5625 | 3 | [] | no_license | package org.tcat.frame.enums;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.tcat.frame.exception.code.CodeMsg;
import org.tcat.frame.util.StringUtils;
import java.io.IOException;
import java.io.Inp... | true |
e276f62aafa0b255a1ae94f46c3b7265b4ca6a0d | Java | TStavnychyi/CityNow | /app/src/main/java/com/tstv/infofrom/ui/weather/WeatherView.java | UTF-8 | 286 | 1.765625 | 2 | [] | no_license | package com.tstv.infofrom.ui.weather;
import com.tstv.infofrom.model.weather.Weather;
import com.tstv.infofrom.ui.base.BaseView;
/**
* Created by tstv on 21.09.2017.
*/
public interface WeatherView extends BaseView {
void setData(Weather data);
void hideRefreshing();
}
| true |
84e25a228f3a08b25c2469f630ce4227c2f992d8 | Java | RGU5Android/JavaDemoCDAC | /08.04.MultipleInterfaceImplementation/src/p1/ITest3.java | UTF-8 | 62 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | package p1;
public interface ITest3 {
void itest3();
}
| true |
2e845d83ffa143cb88fdc0345b9f129af111b287 | Java | edap-io/edap | /edap-protobuf-wire/src/main/java/io/edap/protobuf/wire/Syntax.java | UTF-8 | 1,291 | 2.296875 | 2 | [] | no_license | /*
* Copyright 2020 The edap Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | true |
1d8d9d70bb48df8a43b5ae9d7903bdafcd5d2aed | Java | lindianfeng/webgm | /src/main/java/com/kaka/webgm/repository/GameServerRepository.java | UTF-8 | 300 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.kaka.webgm.repository;
import com.kaka.webgm.domain.GameServer;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface GameServerRepository extends JpaRepository<GameServer, Long> {
List<GameServer> findAllByOrderByServerNameAsc();
}
| true |
242570bd13aad97bbb0aecccf461b4996adbf7a5 | Java | jacobthewest/FamilyMapClient | /server/src/main/java/service/FillService.java | UTF-8 | 26,286 | 3.21875 | 3 | [] | no_license | package service;
import dataAccess.*;
import model.Event;
import model.Person;
import model.User;
import result.ApiResult;
import result.FillResult;
import java.util.*;
/**
* Implements methods to serve the API route <code>/fill/[username]/{generations}</code>
*/
public class FillService {
private final int DE... | true |
286a02b9d93583349d7945f3f03020f44b7e401d | Java | wigforss/Ka-Spring | /spring-2.5/src/main/java/org/kasource/spring/transaction/package-info.java | UTF-8 | 484 | 1.765625 | 2 | [] | no_license | /**
* Transaction Utility classes.
*
* <b>TransactionListener</b>
* Implement this interface to listen to transaction events.
*
* <b>TransactionResult</b>
* An enumeration of possible outcomes when a transaction is committed.
*
* <b>TransactionSupport</b>
* Lets the client register itself as a TransactionL... | true |
8b3d4068d4c87a4496a82d6a44fae855ff27375e | Java | CorbaVerteilteSysteme2/Iteration1 | /IDL-Definitions/src/idls/BoardModules/BasicServices/_AdministrationServiceStub.java | UTF-8 | 7,742 | 1.765625 | 2 | [] | no_license | package BoardModules.BasicServices;
/**
* BoardModules/BasicServices/_AdministrationServiceStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from idls/BoardModules.idl
* Donnerstag, 14. Januar 2016 14:02 Uhr MEZ
*/
public class _AdministrationServiceStub extends org.omg.CORBA.... | true |
77664dde15e17e2da792fed72b1a5112a24e080a | Java | pac4j/pac4j | /pac4j-oauth/src/main/java/org/pac4j/oauth/profile/facebook/FacebookMusicListen.java | UTF-8 | 5,425 | 2.234375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package org.pac4j.oauth.profile.facebook;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import static org.pac4j.core.util.CommonHelper.newDate;
/**
* This class represents a Facebook music listened.
*
* @author Jerome Leleu
* @since 1.2.0
*/
public final class FacebookMusicListen im... | true |
6bd68a08b1a830641bbc17ce556c80104a935e0f | Java | genepattern/genepattern-server | /src/org/genepattern/server/webapp/jsf/JobResultsFilterBean.java | UTF-8 | 6,182 | 1.921875 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*******************************************************************************
* Copyright (c) 2003-2022 Regents of the University of California and Broad Institute. All rights reserved.
*******************************************************************************/
package org.genepattern.server.webapp.jsf;
impo... | true |
15e82ad548c101b54487c002ade5b59df0b172bc | Java | ArseniyJ4J/akulikov | /chapter_001/src/main/java/ru/job4j/array/ArrayDuplicate.java | UTF-8 | 758 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | package ru.job4j.array;
import java.util.Arrays;
/**
* Class Delete duplicate of string array.
* @author akulikov
* @since 11.05.2017
* @version 1
*/
public class ArrayDuplicate {
/**
* Метод выполняющий удаление дубликатов в массиве строк.
* @param array - массив строк.
* @return - возвращение.
*/
public String... | true |
ce528ac2a00a0df2beb0ce0855cfca92e3d8559a | Java | JingShan666/LmModel | /Moteduan/src/main/java/bbc/com/moteduan_lib/renzheng/WaitingDialog.java | UTF-8 | 1,987 | 2.421875 | 2 | [] | no_license | package bbc.com.moteduan_lib.renzheng;
import bbc.com.moteduan_lib.R;
public class WaitingDialog extends android.app.Dialog{
private android.content.Context mContext;
private boolean isCancel;
private String message;
private android.view.View mView;
private static WaitingDialog mDialog;
/**
* 弹出等待框
*/... | true |
68a2777304cef24014bb45fbb9060c6ad36efbcd | Java | haifeiforwork/ehr-moo | /ikep4-lightpack/src/main/java/com/lgcns/ikep4/lightpack/award/service/impl/AwardAdminServiceImpl.java | UTF-8 | 25,784 | 1.789063 | 2 | [] | no_license | /*
* Copyright (C) 2011 LG CNS Inc.
* All rights reserved.
*
* 모든 권한은 LG CNS(http://www.lgcns.com)에 있으며,
* LG CNS의 허락없이 소스 및 이진형식으로 재배포, 사용하는 행위를 금지합니다.
*/
package com.lgcns.ikep4.lightpack.award.service.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
i... | true |
ec247f202abb0d00330c8f91f4344e38aa3f0cf1 | Java | missaouib/keystore | /keystore/src/test/java/ru/urvanov/keystore/controller/ControllerTestBase.java | UTF-8 | 4,999 | 2.015625 | 2 | [] | no_license | package ru.urvanov.keystore.controller;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttp... | true |
540569eb2f2573d30fadc91110dd4d579da4df91 | Java | farizaghayev/AndroidMaryTTS | /marylib/src/main/java/marytts/util/data/AlignLabelsUtils.java | UTF-8 | 5,012 | 2.265625 | 2 | [] | no_license | /**
* Copyright 2011 DFKI GmbH.
* All Rights Reserved. Use is subject to license terms.
* <p/>
* This file is part of MARY TTS.
* <p/>
* MARY TTS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation,... | true |
e55cb66b559e0f89af1653592ce699e85eb3c88b | Java | devansh-299/practiceschool-project | /patient-api/src/main/java/com/devansh/patientapi/service/PatientServiceImpl.java | UTF-8 | 1,043 | 2.40625 | 2 | [] | no_license | package com.devansh.patientapi.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.devansh.patientapi.dao.PatientDao;
import com.devansh.patientapi.model.Patient;
@Service
public class PatientServiceImpl implements ... | true |
9b8d0558eae07d296fcbbab9ef59e6c79e8b9e38 | Java | ningrain/ssm_crud | /src/main/java/com/gta/proxy/Mover.java | UTF-8 | 70 | 1.945313 | 2 | [] | no_license | package com.gta.proxy;
public interface Mover {
void move();
}
| true |
d1deb3aefd9c16706c1ad1a375f19c0314e0ff80 | Java | kunalbarve/MyCodes-Preparations | /src/InterviewExams/VeizonHarshit.java | UTF-8 | 783 | 3.234375 | 3 | [] | no_license | package InterviewExams;
import java.util.TreeMap;
public class VeizonHarshit {
static TreeMap<Integer, Integer> map = new TreeMap<>();
static int maxCount = 0;
static void customSort(int[] arr) {
for(int i = 0; i< arr.length; i++){
int number = arr[i];
if(map.containsKey(number)){
int count = map... | true |
afa56987754cd53f42620ba67554b12c810d0412 | Java | penggy/crystal | /src/main/java/com/github/crystal/dao/PageBean.java | UTF-8 | 1,378 | 2.46875 | 2 | [] | no_license | package com.github.crystal.dao;
import java.util.ArrayList;
import java.util.List;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
/**
* 分页实体
*
* @author <a href=mailto:wu.peng@starit.com.cn>wu.peng</a> 2012-6-12
*
* @param <T>
*/
@ApiMo... | true |
a67dc9fa4a327c6b8255213e26291ec7186d0023 | Java | 9597yashKulkarni/ExpenditureDiary-App | /Calender.java | UTF-8 | 1,995 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.yash.expediturediary;
import android.content.Intent;
import android.icu.util.Calendar;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import an... | true |
59b331c0df202324dcbe33739c919ef857bfb3e6 | Java | Ramesh138/batchoneselenium | /src/com/selenium/testngprograms/TC1.java | UTF-8 | 925 | 2.734375 | 3 | [] | no_license | package com.selenium.testngprograms;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class TC1 {
@BeforeClas... | true |
b4f771a8eb2a235594f020272215a143ae352b29 | Java | bbossgroups/bboss-elastic-tran | /bboss-datatran-fileftp/src/main/java/org/frameworkset/tran/input/file/FileReaderTask.java | UTF-8 | 52,204 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package org.frameworkset.tran.input.file;
import com.frameworkset.util.BaseSimpleStringUtil;
import com.frameworkset.util.FileUtil;
import com.frameworkset.util.SimpleStringUtil;
import org.frameworkset.tran.BaseDataTran;
import org.frameworkset.tran.DataImportException;
import org.frameworkset.tran.DataTranPlugin;
im... | true |
c23690f57b16228fb05abb653d476eae4c81a506 | Java | dastuer/myBatis_learning | /mybatis04/src/test/java/mapperTest.java | UTF-8 | 1,255 | 2.3125 | 2 | [] | no_license | import com.hu.mapper.StudentMapper;
import com.hu.mapper.TeacherMapper;
import com.hu.mapper.TeacherMapper01;
import com.hu.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
public class mapperTest {
@Test
public void testGetStudents(){
SqlSession session = MybatisU... | true |
50c9ab1137a109cb2a08ee7644d1c326c55ef5af | Java | yuanchunzhang/wecube-platform | /platform-core/src/main/java/com/webank/wecube/platform/core/dto/PluginPackageDataModelDto.java | UTF-8 | 5,658 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.webank.wecube.platform.core.dto;
import com.webank.wecube.platform.core.domain.plugin.PluginPackageDataModel;
import com.webank.wecube.platform.core.domain.plugin.PluginPackageEntity;
import java.util.Set;
import java.util.stream.Collectors;
import static com.google.common.collect.Sets.newLinkedHashSet;
... | true |
c583a9fd5dc6a1c8bab4a0851a5a864d66086c57 | Java | MewX/contendo-viewer-v1.6.3 | /org/apache/batik/parser/DefaultPointsHandler.java | UTF-8 | 900 | 1.851563 | 2 | [
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /* */ package org.apache.batik.parser;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public cl... | true |
2101d01664ddea069500d1146bcc6ae9430d2c2d | Java | critoma/dad | /lectures/c03/src/S09_Sockets/tcpsmtp04/eu/ase/net/smtp/Base64Encoder.java | UTF-8 | 15,597 | 2.578125 | 3 | [
"MIT"
] | permissive | package eu.ase.net.smtp;
// System imports
import java.lang.String;
import java.text.ParseException;
// Local imports
// (None)
/*******************************************************************************
* Base-64 encoding methods.
*
* <p>
* Base-64 encoding (a.k.a. radix-64 encoding) is a form... | true |
396873b61152c4a5189f18c4c06c4d19ea1b71d1 | Java | carlorizzante/Software-Construction-2---Object-Oriented-Design | /StudentRecord/src/model/Registrar.java | UTF-8 | 1,940 | 3.140625 | 3 | [] | no_license | package model;
import exceptions.CourseFullException;
import exceptions.MissingPrereqException;
import java.util.LinkedList;
import java.util.List;
public class Registrar {
private String name;
private List<Transcript> students;
public Registrar(String name) {
this.name = name;
students ... | true |
0b0d8d815f05e73e8700ad973b9a59bd24a12f7b | Java | anubhavkasturia/Stack | /StackUsingLinkedList.java | UTF-8 | 1,323 | 3.875 | 4 | [] | no_license |
public class StackUsingLinkedList {
private class Node{
int data;
Node next;
}
Node top;
StackUsingLinkedList(){
this.top=null;
}
public boolean isEmpty(){
if(top==null){
return true;
}else{
return false;
}
}
public... | true |
e634da4808d2047c7b3bab8285339d0e643e253e | Java | Desarik98/Lab3-CVDS | /src/test/java/edu/eci/cvds/tdd/registry/RegistryTest.java | UTF-8 | 1,616 | 2.703125 | 3 | [] | no_license | package edu.eci.cvds.tdd.registry;
import org.junit.Assert;
import org.junit.Test;
public class RegistryTest {
private Registry registry = new Registry();
@Test
public void validateInvalidAge() {
Person person = new Person();
person.setAge(-1);
RegisterResult result = registry... | true |
4928cdc5f0aa8161b5dd09ae93d018da030033cf | Java | andyradz/smartstore | /smartstore-sdk/smartstore-sdk-core/src/main/java/com/codigo/smartstore/sdk/core/compare/IComparable.java | UTF-8 | 712 | 2.90625 | 3 | [] | no_license | package com.codigo.smartstore.sdk.core.compare;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* Interfejs deklaruje kontrakt opisujący mechanizm porównywania dwóch obiektów.
* Implementacja interfajsu będzie miała postaci operatora porównania.
*
* @author andrzej.radziszewski
* @version 1.0.0.0
... | true |
c6ad817c952e64bd99008751f34bf6d43de00d7a | Java | kiiib/Java-HomeWork | /BookStore/src/BookStore.java | UTF-8 | 3,617 | 3.421875 | 3 | [] | no_license | /**
* Created by Jianbin Liu on 4/5/2016.
*/
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.Scanner;
import java.io.Console;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class BookStore {
private static Book books;
public static void main(String[] args){
... | true |
664b475cf3656dd17ed3ee469a2afc341035e9a0 | Java | HHSAPCompSci2020/capstone-project-jej | /GravityBall/src/Menu.java | UTF-8 | 2,283 | 2.90625 | 3 | [] | no_license |
import java.awt.Point;
import java.io.IOException;
import java.io.InputStream;
import java.awt.Rectangle;
import javax.imageio.ImageIO;
import java.awt.Image;
import processing.core.PImage;
/**
* @author APCS Demos 2021, modified for own use by Jensen and Jim
*/
public class Menu extends Screen {
private DrawingSu... | true |
ebcf18f0cb37203741fe034a06008a3d33fcb938 | Java | sidneyperota/financeiro | /src/visao/FrmPrincipal.java | UTF-8 | 2,783 | 2.671875 | 3 | [] | no_license | package visao;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.FlowLayout;
import javax.swing.JDesktopPane;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JMenu;
import... | true |
d4cd28e01d15d5545bb5ae125bf80d18563ffe3a | Java | 13igg/Coding-Challenges | /misc/Java/CodingProblems/LinkedLists/RemoveLinkedListDups.java | UTF-8 | 1,137 | 3.546875 | 4 | [] | no_license | package LinkedLists;
import java.util.HashSet;
//remove dups
//use a hashset
//store the previous node
//if the set contains next's data, set previous.next = next
//else, add the data to the set
//remove dups with no buffer
//take current, and then
//use a runner that checks ahead the list
//set the next = to that ne... | true |
caf41a8b5dd6e22824e5a56ceeab06bfac83f4be | Java | Parizat0129/Spring2020B18_Java | /src/OffieceHours/Practice_03_25_2020/NestedIf_Practice.java | UTF-8 | 666 | 3.15625 | 3 | [] | no_license | package OffieceHours.Practice_03_25_2020;
public class NestedIf_Practice {
public static void main(String[] args) {
byte weekDays=9;
boolean validNumber= weekDays>0 && weekDays<8;
String result=" ";
if(validNumber){
if(weekDays==1){
result="Monday";
}else if(weekDays==2... | true |
d5cff2ffd123d29d27d16a1550ec4130235571c3 | Java | simsim466/foodcourt | /src/main/java/web/meal/AdminMealController.java | UTF-8 | 1,735 | 2.296875 | 2 | [] | no_license | package web.meal;
import model.Meal;
import model.Restaurant;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuild... | true |
e4248b0694d8549a081975c050985e9ac394148b | Java | jtomaszewska/technologie-programowania-rozproszonego | /TPO3_TJ_S15313/src/zad1/Main.java | UTF-8 | 1,056 | 3.25 | 3 | [] | no_license | /**
* @author Tomaszewska Justyna S15313
*/
package zad1;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
Server server = new Server("localhost", 8090);
Client client1 = new Client("client 1");
client1... | true |
4b8b449e8f11544cd4e9c0f1a39cc09e6ab72fc6 | Java | GDanielAvram/tiendaOnline | /src/com/tiendaOnline/service/ClienteEntityServiceImpl.java | ISO-8859-10 | 1,075 | 2.15625 | 2 | [] | no_license | package com.tiendaOnline.service;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import com.tiendaOnline.dao.ClienteDao;
import com.... | true |
e9b18b2e8acfe549548b24eecd10ba175c1b2c54 | Java | lichao20000/WEB | /src/main/java/com/linkage/module/itms/resource/bio/SpeedTest1000MBIO.java | UTF-8 | 1,581 | 1.867188 | 2 | [] | no_license | package com.linkage.module.itms.resource.bio;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.linkage.commons.util.StringUtil;
import com.linkage.litms.LipossGlobals;
imp... | true |
f33246d66eb9eb17b7952421ea9204155792653e | Java | tanianegrete/java | /Clases/Persona.java | UTF-8 | 545 | 2.40625 | 2 | [] | no_license | package Clases;
public class Persona {
private String colorPelo;
private String nombre;
private int edad;
public String getNombre() {
return this.nombre;
}
public String getColorPelo() {
return colorPelo;
}
public void setColorPelo(String colorPelo) {
this.colorPelo = colorPelo;
}
public... | true |
0328760da1e6ff954f77722846fca1f947d8a070 | Java | jiuzhou9/learn | /src/test/java/com/test/demo/thread/create/Demo.java | UTF-8 | 3,144 | 3.515625 | 4 | [] | no_license | package com.test.demo.thread.create;
import org.junit.Test;
/**
* Created by jiuzhou on 2017/5/28.
*/
public class Demo {
/**
* 继承Thread的方式创建线程
* 测试join方法作用
*/
@Test
public void testJoin(){
ThreadNO1 t1 = new ThreadNO1();
ThreadNO1 t2 = new ThreadNO1();
t1.setName(... | true |
13dac6973e69d6c41f47af03db1c2cc7dc77b17c | Java | dipakprasad1726/LearningPortal | /src/main/java/com/learning/portal/ResourceController/CourseResourse.java | UTF-8 | 3,224 | 2.40625 | 2 | [] | no_license | package com.learning.portal.ResourceController;
import com.learning.portal.exceptions.CountryNotFoundException;
import com.learning.portal.exceptions.CourseNotFoundException;
import com.learning.portal.exceptions.QueryFailureException;
import com.learning.portal.model.AddPricingComponentRequest;
import com.learning.po... | true |
cb4f4a670d7b42c9f9352ce158db5d39bf2d7624 | Java | cjqCN/tinypk | /tinypk-service/src/main/java/com/github/cjqcn/tinypk/service/internal/LongRedisBasedInstanceIdLock.java | UTF-8 | 975 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.cjqcn.tinypk.service.internal;
import org.springframework.data.redis.core.RedisOperations;
import java.util.concurrent.ThreadLocalRandom;
/**
* @author chenjinquan
*/
public class LongRedisBasedInstanceIdLock extends RedisBasedInstanceIdLock<Long> {
private static final int DEFAULT_OFFSET =... | true |
6879c3067ab11c227797800629965b97cb02999a | Java | GennadyMV/tmc-core-abandoned | /src/test/java/fi/helsinki/cs/tmc/client/core/async/task/AbstractTaskTest.java | UTF-8 | 6,316 | 2.484375 | 2 | [] | no_license | package fi.helsinki.cs.tmc.client.core.async.task;
import fi.helsinki.cs.tmc.client.core.async.Task;
import fi.helsinki.cs.tmc.client.core.async.TaskListener;
import fi.helsinki.cs.tmc.client.core.async.TaskProgressListener;
import fi.helsinki.cs.tmc.client.core.async.TaskResult;
import fi.helsinki.cs.tmc.client.core.... | true |
ad33271a3dbdd92ccee1f07ef6944fd7a8b7e601 | Java | alexandrofernando/java | /topcoder/SkiResortsEasy.java | UTF-8 | 277 | 2.828125 | 3 | [] | no_license | public class SkiResortsEasy {
public int minCost(int[] altitude) {
int cost = 0;
for (int i = 1; i < altitude.length; i++) {
if (altitude[i] > altitude[i - 1]) {
cost += altitude[i] - altitude[i - 1];
altitude[i] = altitude[i - 1];
}
}
return cost;
}
}
| true |
5f848a26fb10e64fb4b7155cc37360fdf021355c | Java | ramilmsh-archive/cs308_slogo | /src/controller/channel/messages/LanguageChange.java | UTF-8 | 321 | 2.453125 | 2 | [
"MIT"
] | permissive | package controller.channel.messages;
public class LanguageChange extends Message{
public String language;
/**
* Create a new message
*
* @param language: type of language of commands to be interpreted
*/
public LanguageChange(String language) {
this.language = language;
}
}... | true |
ea19c20172771153c07707f4068de7e2ef2965f3 | Java | gustavjon/slingerORM | /android/src/main/java/net/daverix/slingerorm/android/internal/InsertableContentValues.java | UTF-8 | 1,864 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 David Laurell
*
* 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... | true |
31ae323add13cdd69ba3ba0a8d78732257090bd1 | Java | RoboCup-Humanoid-TC/GameController | /src/data/hl/HLDropIn5.java | UTF-8 | 284 | 2.28125 | 2 | [] | no_license | package data.hl;
/**
* This class sets attributes given by the humanoid-league rules.
*
* @author Michel-Zen
*/
public class HLDropIn5 extends HLDropIn
{
public HLDropIn5()
{
leagueName = "HL Drop In (5)";
robotsPlaying = 5;
teamSize = 5;
}
}
| true |
c7af539c24b173517b735656f5536c9a5b6b2b37 | Java | benjaminhuanghuang/ben-leetcode | /0854_K-Similar_Strings/solution.java | UTF-8 | 1,907 | 3.703125 | 4 | [] | no_license | package cn.huang.leetcode;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
/*
854. K-Similar Strings
Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A
exactly K times so that the resulting string equal... | true |
8369123f50939ee012b3a6a034edd5c307c6a78d | Java | NagamaniVellore/CollobrationProject | /cde/src/main/java/com/niit/cde/DAO/FriendDAO.java | UTF-8 | 549 | 1.992188 | 2 | [] | no_license | package com.niit.cde.DAO;
import java.util.List;
import com.niit.cde.Model.Friend;
public interface FriendDAO {
public boolean add(Friend friend);
public boolean update(Friend friend);
public boolean delete(String username, String friendId);
public void setOnline(String username);
public... | true |
9af65d51396392de9de9d641c48b5518571c4e57 | Java | PabloSorrentino/QMP | /src/test/java/TipoPrendaTest.java | UTF-8 | 3,565 | 2.609375 | 3 | [] | no_license |
import org.junit.jupiter.api.Test;
import quemepongo.clases.Atuendo;
import quemepongo.clases.Borrador;
import quemepongo.clases.Prenda;
import quemepongo.enums.Material;
import quemepongo.enums.TipoPrenda;
import quemepongo.enums.TramaPrenda;
import quemepongo.excepciones.CategoriaNoSeCondiceConElTipoException;
impo... | true |
075af8faf76199e3dcd5c50b3ebd602d103da68d | Java | sunshiqiang/git-msc | /msc-web-medic/src/main/java/com/shyl/msc/home/controller/HomeController.java | UTF-8 | 4,808 | 2.015625 | 2 | [] | no_license | package com.shyl.msc.home.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind... | true |
4c03376fa40580ced32ee238bb56d4d1691a3a7c | Java | rakter1/Eclipse-Code | /TestNgProject/src/test/java/com/ui/ListenerDemoTest.java | UTF-8 | 287 | 1.554688 | 2 | [] | no_license | package com.ui;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ListenerDemoTest extends BaseTest{
@Test(retryAnalyzer =Retry.class)
public void launchApp() {
driver.get("https://www.ebay.com/");
Assert.assertTrue(false);
Assert.fail();
}
}
| true |
8f257abff47424eba88f24da7bce21b7e25e91da | Java | bellmit/jxhk | /src/main/java/com/usky/sms/field/FieldLayoutItemDO.java | UTF-8 | 1,879 | 2.140625 | 2 | [] | no_license |
package com.usky.sms.field;
import org.hibernate.cfg.Comment;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.usky.sms.core.AbstractBaseDO;
@Entit... | true |
bc45ecf85c09e24f3ec343eb99959da76bc7b935 | Java | finnflyer/CaseDB | /src/main/java/com/demo/service/testcase/TestCaseService.java | UTF-8 | 1,414 | 1.601563 | 2 | [] | no_license | package com.demo.service.testcase;
import com.demo.model.testcase.*;
import com.demo.service.BaseService;
import java.util.List;
import java.util.Map;
/**
* Created by Admin on 2016/9/2.
*/
public interface TestCaseService extends BaseService<TestCase> {
Map<Integer, String> findTestCaseBrandAllForMap();
... | true |
e68de66db8d14240422028d670b769556f379999 | Java | bonedragon1/TTMS-SSM | /src/xupt/se/ttms/controller/EmployeeController.java | UTF-8 | 4,925 | 2.578125 | 3 | [] | no_license | package xupt.se.ttms.controller;
import java.net.URLEncoder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... | true |
6f45a70ff1be9cfbd6a7eab66a5ac1594c9fe3e7 | Java | pforget/PlanningWeekend | /PlanningWeekend/src/main/java/TAA/Dao/UserDao.java | UTF-8 | 602 | 2.078125 | 2 | [] | no_license | package TAA.Dao;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;
import TAA.e... | true |
9e2e3a1e63c64c0a2890f98a8e9a492aab4daaa5 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-vpc/src/main/java/com/aliyuncs/vpc/model/v20160428/GetVpcPrefixListEntriesResponse.java | UTF-8 | 2,907 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
2f3d9d3df8cb188d7c20ff5cbd0eface93175927 | Java | elvyn/SMSMailerPrefs | /app/src/main/java/com/example/ankit/SMSMailerPrefs/AddReceiverActivity.java | UTF-8 | 1,283 | 2.3125 | 2 | [] | no_license | package com.example.ankit.SMSMailerPrefs;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
public class AddReceiverActivity extends AppCompatActivity {
private static final String DISPLAY... | true |
ff8f94446b61fba2470aa06bff42019123e0c18b | Java | mario10-7/RuneSpire-2D | /Game Client/src/com/daybreak/Quests/QuestObjective.java | UTF-8 | 380 | 2.453125 | 2 | [] | no_license | package com.daybreak.Quests;
public class QuestObjective {
int ID;
String type;
String text;
public QuestObjective(int ID,String type) {
this.ID = ID;
this.type = type;
}
public void complete(){}
public boolean checkConditions() {
return false;
}
public String getText() {
return text;
}
pub... | true |
f540538d264c585eb9b79d95e4e92bb61856f865 | Java | ssriha0/sl-b2b-platform | /OMSStaging/src/main/java/com/newco/marketplace/webservices/dao/ShcUpsellPayment.java | UTF-8 | 1,606 | 2.140625 | 2 | [] | no_license | package com.newco.marketplace.webservices.dao;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
/**
* ShcUpsellPayment entity.
*
* @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "shc_upsell_payment", uniq... | true |
ecdc668880c56719f860b3a7740ac7a26c830524 | Java | wil0w/Cheat-Pack-2 | /com/kodehawa/event/events/EventRender3D.java | UTF-8 | 256 | 1.75 | 2 | [] | no_license | package com.kodehawa.event.events;
import com.kodehawa.event.Event;
/**
* Used for non-ortho renders
*
* @author godshawk
*
*/
public class EventRender3D extends Event {
public EventRender3D( Object source ) {
super( source );
}
}
| true |
de6d9e574175c8ad6cc44750b77005337610bb23 | Java | jldaren/urgent-project | /modules.middleware/middleware-workflow/workflow-webapp-wicket/src/main/java/com/daren/workflow/webapp/wicket/page/EntInformationPage.java | UTF-8 | 6,403 | 1.953125 | 2 | [] | no_license | package com.daren.workflow.webapp.wicket.page;
import com.daren.core.util.DateUtil;
import com.daren.core.web.component.navigator.CustomerPagingNavigator;
import com.daren.enterprise.api.biz.IEnterpriseBeanService;
import com.daren.enterprise.entities.EnterpriseBean;
import com.googlecode.wicket.jquery.core.Options;
i... | true |
302c749c5d5c82e8d3da1cb33bf5cfec7c90706b | Java | ghozt777/DSA-Bootcamp-Java-Solutions | /Practice/binarySearchVideo/q2/Main.java | UTF-8 | 1,432 | 3.875 | 4 | [] | no_license |
// FLOOR OF A NUMBER USING BINARY SEARCH
/*
This is a program that calculates the largest
number in a sorted array that is eihter equal to or smaller than
a target number
*/
import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args) {
Scanner in = ... | true |
9a40c2d07c09e92dcf8a5f9758b620e77cac2e4e | Java | cheunyu/ais_msa_sevices | /src/com/scyb/aisweather/webservice/client/Coastal/ClientTest.java | UTF-8 | 2,532 | 2.296875 | 2 | [] | no_license | package com.scyb.aisweather.webservice.client.Coastal;
import com.scyb.aisweather.webservice.bo.*;
import com.scyb.aisweather.webservice.client.WsClinetAuthHandler;
import org.apache.cxf.binding.soap.interceptor.SoapInterceptor;
import org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor;
import org.apache.cxf.jaxws.J... | true |
4fd5763a23ebc4b7bfaf0e025ef8e39f4640a177 | Java | BioinformatikGoettingen/TFClass | /src/main/java/de/sybig/tfclass/OntologyClassConverter.java | UTF-8 | 2,407 | 2.546875 | 3 | [] | no_license | package de.sybig.tfclass;
import de.sybig.oba.client.OboClass;
import de.sybig.oba.client.OboConnector;
import java.util.HashMap;
import java.util.Map;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
imp... | true |
02f957171822a9c579b94c1ee2f5a278adf18c95 | Java | bzsol/Tobacco-Shop-SFM | /SFM/src/main/java/hu/sfm/utils/JPAProductDAO.java | UTF-8 | 1,024 | 2.546875 | 3 | [] | no_license | package hu.sfm.utils;
import hu.sfm.entity.Product;
import javax.persistence.TypedQuery;
import java.util.List;
public class JPAProductDAO implements ProductDAO{
@Override
public void saveProduct(Product p) {
entityManager.getTransaction().begin();
entityManager.persist(p);
entityMan... | true |
d4179ad2ca121aa4aec6f43f3b91e1d2220768c1 | Java | Emermv/centinela | /app/src/main/java/com/centinela/service/AlertService.java | UTF-8 | 6,095 | 2.078125 | 2 | [] | no_license | package com.centinela.service;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.net.Uri;
import android.os.Build;
import android.support.annotati... | true |
f3ac5ce9537fad188d4799d8d5fb01bf23279b37 | Java | gergoterek/BloodStream | /src/main/java/com/elte/BloodStream/service/NewsService.java | UTF-8 | 2,192 | 2.203125 | 2 | [] | no_license | package com.elte.BloodStream.service;
import com.elte.BloodStream.model.Faq;
import com.elte.BloodStream.model.News;
import com.elte.BloodStream.repository.NewsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotyp... | true |
24da4e3238373509bd1b28cce6de21b77238a221 | Java | KaterynaSymonova/TestAutomationWebDriver | /src/test/java/com/epam/testwebdriver/TestSignature.java | UTF-8 | 973 | 2.265625 | 2 | [] | no_license | package com.epam.testwebdriver;
import com.epam.step.Steps;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
/**
* Created by Kateryna_Symonova on 10/19/2015.
*/
public class TestSignature {
private Steps steps;
... | true |
9aecf32572d30a4288720bb96ae8bdfc63fbe30f | Java | GuoGuiRong/OOAD | /behavior_model/src/observer/MySubjectImpl.java | UTF-8 | 412 | 2.515625 | 3 | [] | no_license | package observer;
/**
* Created by GuiRunning on 2017/12/1.
*/
public class MySubjectImpl extends MySubject {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MySubjectImpl(){
super();
}... | true |
b14f9a898aa4ab9782a39b8e74f46c1e85f86083 | Java | wtan02/LeetCode | /src/binarytree/maxDepth/maxDepth.java | UTF-8 | 129 | 2.046875 | 2 | [] | no_license | package binarytree.maxDepth;
import binarytree.TreeNode;
public interface maxDepth {
int maxDepth(TreeNode root);
}
| true |
db096859458f43e0349249a72bbdee6e79be24a8 | Java | marnikitta/sandbox | /internship/logic-parser/src/main/java/org/stepik/marshalkin/Literal.java | UTF-8 | 397 | 2.4375 | 2 | [] | no_license | package org.stepik.marshalkin;
public enum Literal implements Primary {
TRUE {
@Override
public Primary negated() {
return Literal.FALSE;
}
},
FALSE {
@Override
public Primary negated() {
return Literal.TRUE;
}
};
@Override
public OrExpression<AndExpression<Primary>> no... | true |
1282dffce8347ffc3cd005652bcf819124d2fbae | Java | kimyen/audit-pipeline | /src/main/java/org/sagebionetworks/audit/App.java | UTF-8 | 642 | 2.046875 | 2 | [
"MIT"
] | permissive | package org.sagebionetworks.audit;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
public static void main(String[] args) {
final ConfigurableApplicationContext context = new ClassPathXmlAppl... | true |
e368f4e7b3b8e5b19dfa1e7a44be49ebf38ba61a | Java | pmkiedrowicz/javabyd3 | /src/test/java/com/sda/javabyd3/toki/exg0041/ex07/SqrtThisTableTest.java | UTF-8 | 965 | 2.609375 | 3 | [] | no_license | package com.sda.javabyd3.toki.exg0041.ex07;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Arrays;
public class SqrtThisTableTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void e... | true |
d26761a32ff06c4c7fc098267df8988b1dd24787 | Java | c2y2/ppp-mysql-web | /src/main/java/com/org/c2y2/base/IService.java | UTF-8 | 1,510 | 2.359375 | 2 | [] | no_license | package com.org.c2y2.base;
import java.util.List;
import java.util.Map;
public interface IService<T extends Entity> {
/**
* description 添加方法
* @return void
*/
public abstract void insert(T t) throws Exception;
/**
* description 删除方法
* @return void
*/
public abstract void d... | true |
f969818fbc55b478f981f6bbcfcbe83cce88bcc6 | Java | dugaolong/cili | /app/src/main/java/www/dugaolong/com/xianshishigongjiao/ui/IndexActivity.java | UTF-8 | 5,488 | 2.21875 | 2 | [] | no_license | package www.dugaolong.com.xianshishigongjiao.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SearchView;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
impor... | true |
7ad4fdf4fb75bbfac00149f509124158600cf4fa | Java | cuongbphv/Specialized-Essay | /ProgramingForum/src/main/java/com/tlcn/programingforum/util/IDGeneratorUtil.java | UTF-8 | 946 | 2.234375 | 2 | [] | no_license | package com.tlcn.programingforum.util;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.id.UUIDGenerator;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.type.Type;
import java.io.Serializable;
import java.util.Properties;
/**
* @author Huy Pham
*/
public c... | true |
ac22db12263acd2f26974818964dc84f5624ebe1 | Java | xiaodin1/stone-mvc | /src/main/java/stone/mvc/views/impl/XmlDataViewHandler.java | UTF-8 | 377 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package stone.mvc.views.impl;
import javax.servlet.http.HttpServletRequest;
import stone.mvc.views.AbstractDataViewHandler;
public class XmlDataViewHandler extends AbstractDataViewHandler {
@Override
public String getType() {
return "xml";
}
@Override
public String getMimetype(HttpServl... | true |
28361eec9f016ee40dad4b5982e895405d318284 | Java | NahuLD/java-launch-library | /src/main/java/me/nahu/launchlibrary/entities/rocket/RocketFamily.java | UTF-8 | 646 | 2.3125 | 2 | [
"MIT"
] | permissive | package me.nahu.launchlibrary.entities.rocket;
import me.nahu.launchlibrary.entities.Entity;
import me.nahu.launchlibrary.entities.agency.AgencyQuery;
import java.util.List;
/**
* Rocket Family entity class.
* {@code https://launchlibrary.net/docs/1.4/api.html#rocketfamily} for more information.
*/
public class R... | true |
1727fc04d960c0a0f8579cbe4497639864b83852 | Java | mounikakoppula/my-project | /Logindemo/src/logincontroller.java | UTF-8 | 1,374 | 2.328125 | 2 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class logincontroller extends H... | true |
83665ac06650039507335d1f101a2cff95480020 | Java | wingpark/designPattern | /singleton/dp/singleton/HungrySingleton.java | UTF-8 | 424 | 2.5625 | 3 | [] | no_license | /**
* @Title: HungrySingleton.java
* @Description: 饥饿单例模式
* @author wby
* @date 2016年7月25日 下午5:29:45
* @version V1.0
*/
package dp.singleton;
public class HungrySingleton {
private static final HungrySingleton singleton = new HungrySingleton();
private HungrySingleton() {
super();
}
... | true |
359954b6c87a3782fea7ccf37657142ccbcb9826 | Java | BaneManojlovic/NDexample1 | /app/src/main/java/com/bitnovisad/ndexample1/PlayerDetailsActivity.java | UTF-8 | 2,526 | 2.640625 | 3 | [] | no_license | package com.bitnovisad.ndexample1;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextVi... | true |
e4274635128fbfc3bf1fe7b05c9474fbc413a1f3 | Java | yuyivie/Design_Patterns | /src/observer/example1/Test2.java | GB18030 | 264 | 2.1875 | 2 | [] | no_license | package observer.example1;
/**
* @author yu
*ͨۼʽij
*/
public class Test2 {
public static void main(String[] args) {
//
HanFeiZi2 hanFeiZi = new HanFeiZi2();
hanFeiZi.haveBreakfast();
hanFeiZi.haveFun();
}
}
| true |
77426cbd655085ddd8b9364db3ce2a7a7d182bd6 | Java | SuzyWu2014/coprhd-controller | /exportLibraries/storagedrivers/3par/src/main/java/com/emc/storageos/hp3par/utils/HP3PARConstants.java | UTF-8 | 5,317 | 1.828125 | 2 | [] | no_license | /*
* Copyright 2016 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.hp3par.utils;
public class HP3PARConstants {
public static final String DRIVER_NAME ="HP-3PAR";
public static final String IP_ADDRESS = "IP_ADDRESS";
public static final String PORT_NUMBER = "PORT_NUMBER";
publi... | true |
da729123c887d6b44023d9355ff3b656a0004b3c | Java | tao-tao/BusinessModuleDesign | /avicit.ui.view.navigator/src/avicit/ui/view/module/IPriority.java | UTF-8 | 102 | 1.820313 | 2 | [] | no_license | package avicit.ui.view.module;
public interface IPriority
{
public abstract int getPriority();
} | true |
631c544ad6f924b1444895db786ff5695d143110 | Java | louismarie/budgetview | /siteweaver/src/main/com/designup/siteweaver/custom/dup/DupBookTourFormatter.java | UTF-8 | 798 | 2.5 | 2 | [] | no_license | package com.designup.siteweaver.custom.dup;
import com.designup.siteweaver.generation.generators.BookTourGenerator;
import com.designup.siteweaver.html.HtmlWriter;
import com.designup.siteweaver.model.Page;
public class DupBookTourFormatter implements BookTourGenerator.Formatter {
public void writeStart(HtmlWriter ... | true |
431c6a5d85f35cb5536a256f4a59452c4049416d | Java | supertassu/db | /example/src/main/java/me/tassu/db/example/DBExample.java | UTF-8 | 1,111 | 2.828125 | 3 | [] | no_license | package me.tassu.db.example;
import me.tassu.db.impl.sql.mysql.MySQLDatabase;
import me.tassu.db.sql.column.Column;
import me.tassu.db.sql.table.Table;
import me.tassu.db.util.DataType;
public class DBExample {
public static void main(String[] args) {
MySQLDatabase database = MySQLDatabase.builder()
... | true |
98c6ab68ee7589f33aaf6f7253a3ebec0b0c8101 | Java | 15583000287/First_Ribbon_Client | /src/main/java/com/example/ribbon/PingUrlTest.java | UTF-8 | 1,426 | 3.09375 | 3 | [] | no_license | package com.example.ribbon;
import com.netflix.loadbalancer.BaseLoadBalancer;
import com.netflix.loadbalancer.PingUrl;
import com.netflix.loadbalancer.Server;
import java.util.ArrayList;
import java.util.List;
/**
* Pring机制(判断服务器是否存活)
*
* 在负载均衡器中,提供了 Ping 的机制,每隔一段时间,会去 Ping 服务器,判断服务器是否存活。
*
* 该工作由 IPing 接口的实现类负... | true |
30240bb49f7653c5b523e08c434f7fc2c7d7a3b0 | Java | knobel/coursera-algorithms-01 | /dequesrandomizedqueues/src/test/java/RandomizedQueueTest.java | UTF-8 | 1,455 | 2.9375 | 3 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import java.util.Iterator;
/**
* Created by michal on 11.12.16.
*/
public class RandomizedQueueTest {
RandomizedQueue<String> randomizedQueue;
@Before
public void setUp() throws Exception {
randomizedQueue = new RandomizedQueue<>();
}
@T... | true |