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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8b176e05d7b94b6ffc9e0b3caa096889d751fbba | Java | lishuyan0715/Personal-Projects-in-Java | /LootGenerator/src/Affix.java | UTF-8 | 1,850 | 3.71875 | 4 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Affix {
public String name;
public String mod1code;
public int mod1min;
public int mod1max;
/**
* Constructor for Affix objects
*/
public Affix(String nam... | true |
bd01a37c46029a9220677d8b7d4e2e92f605c526 | Java | shaozhaoyang/EditDistance | /src/main/java/eu/unitn/disi/db/grava/scc/Isomorphism.java | UTF-8 | 16,662 | 2.3125 | 2 | [] | no_license | package eu.unitn.disi.db.grava.scc;
import eu.unitn.disi.db.grava.graphs.Answer;
import eu.unitn.disi.db.grava.graphs.Edge;
import eu.unitn.disi.db.grava.graphs.GraphRing;
import eu.unitn.disi.db.grava.graphs.MappedEdge;
import eu.unitn.disi.db.grava.graphs.MappedNode;
import eu.unitn.disi.db.grava.graphs.Multigraph;
... | true |
cfd1ad99003823081a4d0507f03e0cc61365076b | Java | KevinDon/ExtJS-purchase | /purchase/src/main/java/com/newaim/purchase/desktop/email/service/EmailBoxService.java | UTF-8 | 5,711 | 1.882813 | 2 | [] | no_license | package com.newaim.purchase.desktop.email.service;
import com.google.common.collect.Lists;
import com.newaim.core.jpa.DynamicSpecifications;
import com.newaim.core.jpa.SearchFilter;
import com.newaim.core.mapper.BeanMapper;
import com.newaim.core.service.ServiceBase;
import com.newaim.core.utils.SessionUtils;
import c... | true |
8ea3de56b5639f935c0010b2ee15cef6278429da | Java | AlexKnechtl/groupup | /app/src/main/java/com/example/alexander/groupup/group/AddGroupMembersActivity.java | UTF-8 | 14,669 | 1.828125 | 2 | [] | no_license | package com.example.alexander.groupup.group;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.... | true |
f21ec1107070e8d3f294bcddbc507d93cf59aeae | Java | OpenHFT/Chronicle-Map | /src/main/java/net/openhft/chronicle/map/impl/stage/replication/ReplicationUpdate.java | UTF-8 | 3,813 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2018 Chronicle Map Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
093b6ee7c93427aab4c709dc106885b5d536f6b5 | Java | mreverter/MercadoPagoImpl | /app/src/main/java/com/example/mreverter/mercadopagoprueba/MyPaymentMethodsListActivity.java | UTF-8 | 3,152 | 2.03125 | 2 | [] | no_license | package com.example.mreverter.mercadopagoprueba;
import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.mer... | true |
daf36f4aecaf93f11e3592898b6c2d3caad45791 | Java | b0rengar/VR | /src/util/ImageUtil.java | UTF-8 | 4,323 | 2.78125 | 3 | [] | no_license | package util;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.zip.DataFormatException;
import java.util.zip... | true |
53b395365722da69206461e81b66a7039fcaa6c5 | Java | motaharinia/springboot-securitycustomlogin | /src/main/java/com/motaharinia/SecurityCustomLoginApplication.java | UTF-8 | 2,382 | 2.53125 | 3 | [] | no_license | package com.motaharinia;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*https://www.javatpoint.com/spring-security-custom-login
* Spring Security Custom Login:
* Spring Security provides it's own built-in login module to authenticate the... | true |
337e3f635e8b5d6805db0a5b9986b0ac73d3951a | Java | davrosyoung/ddr | /java/test/au/com/polly/ddr/ui/GasWellDataSetTableModelTest.java | UTF-8 | 59,338 | 1.757813 | 2 | [] | no_license | /*
* Copyright (c) 2011-2011 Polly Enterprises Pty Ltd and/or its affiliates.
* All rights reserved. This code is not to be distributed in binary
* or source form without express consent of Polly Enterprises Pty Ltd.
*
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ... | true |
aa01d809727ade8417476f6254827b8d2439e28e | Java | NikolayySt/Parking-manager | /parking-manager/src/main/java/org/fmi/masters/parkingmanager/modules/driver/ui/DriversViewImpl.java | UTF-8 | 2,565 | 2.296875 | 2 | [] | no_license | package org.fmi.masters.parkingmanager.modules.driver.ui;
import java.util.Collection;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.fmi.masters.parkingmanager.dto.Driver;
import org.fmi.masters.parkingmanager.modules.base.BasicView;
import org.fmi.masters.parkingmanager.modules... | true |
ff9ec9bfb0f607371f92b985f47a0aa06066e4e9 | Java | SetAdapter/WisdomMedical | /app/src/main/java/com/hjy/wisdommedical/ui/inquiry/activity/EvaluationDoctor.java | UTF-8 | 8,155 | 1.742188 | 2 | [] | no_license | package com.hjy.wisdommedical.ui.inquiry.activity;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.ArrayMap;
import android.view... | true |
4156b876ba6bdb2f86e4b893fa07035a3888d9f6 | Java | PLPCap/Plp-version-1 | /Plp/src/com/cg/plp/service/IQuoteService.java | UTF-8 | 177 | 1.507813 | 2 | [] | no_license | package com.cg.plp.service;
import com.cg.plp.bean.UserLoginBean;
public interface IQuoteService {
public boolean checkValidLogin(UserLoginBean userLoginBean);
}
| true |
ba4e3928dcdb0b1cc5cc8f9f5f20b61d2d0402f4 | Java | anyedilong/hcplatform | /src/main/java/com/java/moudle/system/domain/SysNewsHealthInspect.java | UTF-8 | 6,190 | 2 | 2 | [] | no_license | package com.java.moudle.system.domain;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.springframework.web.multipart.MultipartFile;
import com... | true |
686b5b18edffd6ac536680240949a4cae8b2b586 | Java | jaimeefrainguira/mis-proyectos | /Sistema-De-Ventas/src/vista/vistaFactura.java | UTF-8 | 7,767 | 2.40625 | 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 vista;
import clases.FacturaAlDetalle;
import clases.FacturaCabeseraDetallada;
import clases.FacturaDetalle;
import clases.Fac... | true |
0469fca0fbeb752ea3eae8c544ec1f04e3f79296 | Java | FaresEsprit20/Mini-Projet-Android | /app/src/main/java/com/example/miniprojetandroid/Retrofit/ShopService.java | UTF-8 | 330 | 1.96875 | 2 | [] | no_license | package com.example.miniprojetandroid.Retrofit;
import com.example.miniprojetandroid.models.Bike;
import com.example.miniprojetandroid.models.Shop;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface ShopService {
// get shops
@GET("shops/")
Call<List<Shop>> getSho... | true |
421e0b124b274d4ae9b8d02b080252d3b87658e0 | Java | wahidKhan74/phase1-java-fundamentals-04-26-2021 | /src/com/simplilearn/datastructure/sort/SelectionSortTest.java | UTF-8 | 983 | 3.78125 | 4 | [] | no_license | package com.simplilearn.datastructure.sort;
import java.util.Arrays;
public class SelectionSortTest {
public static void main(String[] args) {
int[] inputs = { 20 , 35 , -15 , 5 , 55 , 2, -18 } ;
System.out.println("Before : " + Arrays.toString(inputs));
selectionSort(inputs);
System.out.println("Afte... | true |
501c5ebb38cd3ce9dc2b49cfbfa9001c9a387fae | Java | dali095/algorithm | /distinct_subsequences/Solution.java | UTF-8 | 1,438 | 3.703125 | 4 | [] | no_license | package kai.leetcode.algorithm.distinct_subsequences;
import java.util.HashMap;
import java.util.Map;
//Given a string S and a string T, count the number of distinct subsequences of T in S.
//
//A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the ch... | true |
e4e0eb124d8b33308ebc37f667e6f10f26ba9ba0 | Java | MS2019/CoachEnglish | /app/src/main/java/com/example/ms/coachenglish/Words.java | UTF-8 | 701 | 2.234375 | 2 | [] | no_license | package com.example.ms.coachenglish;
import org.litepal.crud.DataSupport;
/**
* Created by MS on 2017/10/5.
*/
public class Words extends DataSupport {
private String word; //单词
private String phonetic; //音标
private String tran; //释义
public String getWord() {
return w... | true |
f77271ba7fc448c655d5149076f35020579086df | Java | morton3/Orton-Walker | /pacificBattleship/src/byui/cit260/pacificBattleship/control/UpgradeControl.java | UTF-8 | 10,690 | 2.25 | 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 byui.cit260.pacificBattleship.control;
import byui.cit260.pacificBattleship.model.Collectable;
import byui.cit260.paci... | true |
5b030536520389360af2fd804ee01228e8677e2a | Java | ablasifl7/udemy-selenium | /WebDriverMVN/src/main/java/pom/PageBase.java | UTF-8 | 671 | 2.140625 | 2 | [] | no_license | package pom;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import helper.ButtonHelper;
public class PageBase {
@SuppressWarnings("unused")
private WebD... | true |
c025b6602e95c7220b32214393e31436a4ba2377 | Java | mcupo/Patron-Strategy | /src/ar/edu/ort/Test.java | UTF-8 | 986 | 2.984375 | 3 | [] | no_license | package ar.edu.ort;
public class Test {
public static void main(String[] args) {
int aux[], topeVector = 1000;
VectorEnteros vector = new VectorEnteros(topeVector, new EstrategiaOrdenamientoBubble());
aux = generarVector(topeVector);
cargarVector(vector, aux);
vector.or... | true |
bdef5aacfccdd039472b53c6a25c2ad17514caf2 | Java | ghazanfarturi/Physiometrics | /app/src/main/java/de/unikl/hci/abbas/physiometrics/TouchAuth/Util/AcquireData/Dispatcher.java | UTF-8 | 2,619 | 2.25 | 2 | [] | no_license | package de.unikl.hci.abbas.physiometrics.TouchAuth.Util.AcquireData;
/**
* Created by abbas on 2/16/18.
*/
import android.util.Log;
import de.unikl.hci.abbas.physiometrics.TouchAuth.MLModel.FeatureVector;
import de.unikl.hci.abbas.physiometrics.TouchAuth.Util.FileUtils;
public class Dispatcher {
private stati... | true |
d408b4c651a1f1260a6dee26f121e9160d52e068 | Java | SunnyMeng/moco | /moco-core/src/main/java/com/github/dreamhead/moco/dumper/HttpMessageBaseDumper.java | UTF-8 | 815 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.github.dreamhead.moco.dumper;
import com.google.common.base.Joiner;
import io.netty.handler.codec.http.FullHttpMessage;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.util.internal.StringUtil;
import java.nio.charset.Charset;
public abstract class HttpMessageBaseDumper<T> implements Dump... | true |
79a89ca728d9a1e86cdc3456ac4a36b6e9982672 | Java | luthfianum/algoritma | /javaApplication/Gaji.java | UTF-8 | 262 | 2.796875 | 3 | [] | no_license | package javaApplication;
public class Gaji {
String jabatan;
int gaji;
void gaji(String inputJabatan) {
if(inputJabatan == "direktur") {
gaji=20;
}
else if(inputJabatan== "manager") {
gaji=10;
}
else {
gaji=5;
}
}
}
| true |
97ff0d4a5be3ac906169879409dd82e253cb22b1 | Java | devinxutal/linuxpractice | /amaze/src/cn/perfectgames/amaze/animation/Animation.java | UTF-8 | 686 | 2.453125 | 2 | [] | no_license | package cn.perfectgames.amaze.animation;
import cn.perfectgames.amaze.graphics.Drawable;
public interface Animation extends Drawable {
public static final int INFINITE = -1;
public void start();
public void stop();
public boolean step();
public int getFrameCount();
public int getCurrentFrame... | true |
b69ca7d08307cbf4a24f82c64a38af6744971fc1 | Java | awpcomnet/ManageCat | /src/main/java/com/cat/manage/role/service/RoleService.java | UTF-8 | 2,851 | 2.28125 | 2 | [] | no_license | package com.cat.manage.role.service;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cat.manage.role.dao.RoleDao;
import com.cat.manage... | true |
27ad0f6fe1a556b72a315ad3323eed33241ab693 | Java | Yeomgi/Frequency | /src/com/frequency/Action/DO/ActionDoLoginDone.java | UTF-8 | 1,861 | 2.5 | 2 | [] | no_license | package com.frequency.Action.DO;
import com.frequency.Action.Action;
import com.frequency.DAO.DAOLogindone;
import com.frequency.DTO.DTOMember;
import com.frequency.Modules.MemberInfo.MemberInfo;
import com.frequency.Modules.MemberInfo.MemberInfoHandler;
import javax.servlet.http.HttpServletRequest;
import javax.serv... | true |
6b9c8b9f7842ab370ba318d3ac746ad99d29c23e | Java | pamelaLoyola/service-project-4 | /src/main/java/org/belili/tecunity/service/IParticipanteService.java | UTF-8 | 316 | 1.929688 | 2 | [] | no_license | package org.belili.tecunity.service;
import org.belili.tecunity.entity.Participante;
import java.util.List;
public interface IParticipanteService {
List<Participante> findAll();
Participante findById(Integer id);
void save(Participante participante);
void delete(Participante participante);
}
| true |
2d811646d1b4138c7acbc8cb5abb706e8ca7619e | Java | SquaII/java_course | /addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/ContactModificationTests.java | UTF-8 | 2,210 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.*;
import java.io.File;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class ContactModificationTe... | true |
a168e2215032db60ac58d6aa67215905c8af4d9c | Java | LongIs/dive-in-spring-boot | /src/main/java/org/loong/algorithm/array/Test02.java | UTF-8 | 915 | 3.328125 | 3 | [] | no_license | package org.loong.algorithm.array;
public class Test02 {
public static void main(String[] args) {
// System.out.println(test1(new int[]{1, 2, 3, 4, 6, 4, 7, 4, 4, 4, 4, 1, 4, 1, 3, 2}, 4));
System.out.println(test2(new int[]{1, 2, 6, 7, 8}, 5));
}
public static int test2(int[] nums, int... | true |
913c6080191159540bcd9bd3ce0714b50fcb7022 | Java | AkshaySR/Library-Application | /LibApp/src/main/java/com/libapp/repository/UserRepository.java | UTF-8 | 358 | 1.851563 | 2 | [] | no_license | package com.libapp.repository;
import com.libapp.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by akshayshivanne on 4/22/2017.
*/
@Repository
public interface UserRepository extends JpaRepository<Us... | true |
0e3d9dc11b5713ab6632c68fb4b118bf3aa0246f | Java | avenue210/Upems8 | /app/src/main/java/cn/upus/app/upems/dao/DbManager.java | UTF-8 | 1,484 | 2.234375 | 2 | [] | no_license | package cn.upus.app.upems.dao;
import android.util.Log;
import cn.upus.app.upems.dao.pata.GreenDaoContext;
import cn.upus.app.upems.dao.pata.MySQLiteOpenHelper;
public class DbManager {
private static DbManager mInstance;
private DaoMaster mDaoMaster;
private DaoSession mDaoSession;
//private DaoMa... | true |
279fedfefaf3d36f3dd27e4564c23e429c6b0b77 | Java | bellmit/Iot_Harbor | /IoT_Harbor/src/com/cetc/iot/database/dao/impl/CityDaoImpl.java | UTF-8 | 5,222 | 2.234375 | 2 | [] | no_license | package com.cetc.iot.database.dao.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import ... | true |
b2ba0f045cc275b8216152887ca31e1ee0a1ea10 | Java | rompasaurus/Helsinki-Mooc-Projects | /rompasaurus-week8-week8_12.OnlineShop-1512894/src/ShoppingBasket.java | UTF-8 | 787 | 3.265625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class ShoppingBasket {
private List<Purchase> purchases = new ArrayList<Purchase>();
public void add(String product,int price){
for(Purchase purchases: purchases){
if(purchases.name().equals(product)){
purchases... | true |
89ff8739ab45d5b8f752406dd336b5ed2cde7961 | Java | khongten001/oblivion-netbeans-plugin | /Oblivion/test/unit/src/org/fundacionjala/oblivion/apex/editor/format/WhiteSpacesRemoverTest.java | UTF-8 | 5,579 | 2.5625 | 3 | [
"MIT"
] | permissive | /*
* Copyright (c) Fundacion Jala. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package org.fundacionjala.oblivion.apex.editor.format;
import javax.swing.text.Document;
import org.fundacionjala.oblivion.apex.editor.AbstractTestFormat;
... | true |
babfa03ca7076f5a20f1f7d91636702efed65ee8 | Java | ChangSeopOh/Hello | /src/src/oop2/PointTest.java | UHC | 760 | 3.703125 | 4 | [] | no_license | package oop2;
public class PointTest {
public static void main(String[] args) {
Point2D up= new Point3D(); //up casting(ڵȯ) Ŭ Ŭ Ѵ.
up.setX(200);
up.x = 100;
up.y = 10;
//up.z =11; Ŭ () .
//up.setX(55); ȵ.
//, super type ҵ带 override .
up.print();
System.out.println("-----------... | true |
18c7019a53c108ebe7440ca9a20c4d92676216d0 | Java | wangjishan/CustomViewSets | /app/src/main/java/com/zyyoona7/customviewsets/basic_operation/CustomCoordinateSystem.java | UTF-8 | 6,216 | 2.609375 | 3 | [] | no_license | package com.zyyoona7.customviewsets.basic_operation;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import com.zyyoona7.customviewsets.utils.DensityUtils;
/**
* Created by zyyoona7 on 2016/8/9.
*
* 自定义坐标系
... | true |
6f121ba78e908bfe924b9debfdd45e08e9d6058e | Java | omidp/james-spring-boot-jpa-webclient-api | /src/main/java/org/apache/james/webapi/app/controller/UserController.java | UTF-8 | 892 | 2.109375 | 2 | [] | no_license | package org.apache.james.webapi.app.controller;
import org.apache.james.webapi.app.security.JamesUserSevice;
import org.apache.james.webapi.model.LoginVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMa... | true |
302ffeedc3c316381617ea2a7315f32b9b47dd99 | Java | jmiqra/spring-boot-rest-api | /spring-boot-hibernate-datajpa/src/main/java/com/asraf/repositories/UserRepositoryExtended.java | UTF-8 | 680 | 1.875 | 2 | [] | no_license | package com.asraf.repositories;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;
import com.asraf.constants.ColumnType;
import com.asraf.entities.User;
import com.asraf.models.search.e... | true |
b846270268e5752e7dda857ca30ca0e4cef2a322 | Java | QiluHuang/LeetCode | /main/aUnionFind/QuickUnion.java | UTF-8 | 851 | 3.28125 | 3 | [] | no_license | package aUnionFind;
public class QuickUnion {
private int[] id;
public QuickUnion(int N) {
id = new int[N];
for (int i = 0; i < N; i++) {
id[i] = i;
}
}
// p and q are connected iff they have the same root id
public boolean isConnected(int p, int q) {
r... | true |
066411af3ca575ba5250e2b4856454b2f5dc240e | Java | goalsgo1/H_ | /src/book/ch4/ScannerTest.java | UTF-8 | 511 | 3.453125 | 3 | [] | no_license | package book.ch4;
import java.util.Scanner;
//모든 클래스는 object클래스를 상속 받고 있다.
//그래서 object에 정의한 메소드는 모두 내가 사용할수 있는 것임.
public class ScannerTest {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
for(int i=1;i<4;i++) {
System.out.println("숫자를 입력하시오.");
String num = sca... | true |
fdc5999fd8e44b719b383f491c3f6304f0624d10 | Java | Elvil/eurockv2 | /TP4_VI/src/main/sarl/fr/utbm/info/vi51/project/MainProgram.java | UTF-8 | 3,797 | 2 | 2 | [] | no_license | package fr.utbm.info.vi51.project;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import io.sarl.lang.core.Agent;
import fr.utbm.info.vi51.framework.FrameworkLauncher;
import fr.utbm.info.vi51.framework.environment.AgentBody;
import fr.utbm.info.vi51.framework.environment.DynamicType;
impo... | true |
33286922c8d0af76dcb0d739c59dc78028d79d65 | Java | lcc214321/baize | /baize-service/src/main/java/com/moguhu/baize/service/api/ApiService.java | UTF-8 | 1,608 | 1.953125 | 2 | [
"MIT"
] | permissive | package com.moguhu.baize.service.api;
import com.moguhu.baize.common.vo.PageListDto;
import com.moguhu.baize.metadata.request.api.ApiSaveRequest;
import com.moguhu.baize.metadata.request.api.ApiSearchRequest;
import com.moguhu.baize.metadata.request.api.ApiUpdateRequest;
import com.moguhu.baize.metadata.response.api.... | true |
db38b459538731d7e2338286ab329fec9b725db7 | Java | ocoulson/PiJ-Revision | /Day3/src/Palindromes/PalindromeRedux.java | UTF-8 | 610 | 3.625 | 4 | [] | no_license | package Palindromes;
/**
* Created by Oliver Coulson on 21/04/2016.
*/
public class PalindromeRedux {
public static void main(String[] args) {
System.out.println("Input a string:");
String text = PalindromeUtil.getInputString();
if(PalindromeUtil.isStrictPalindrome(text)) {
Sy... | true |
4bd57f03df21cd487a63a2d1a4daad4cf4863d36 | Java | jairGil/ProyectoPPI | /src/modelos/Sucursal.java | UTF-8 | 1,633 | 2.796875 | 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 modelos;
import excepciones.ExSucursal;
import java.io.Serializable;
import java.util.ArrayList;
/**
*
* @auth... | true |
58cffbbd85757bd624ec0f89ebc34d0424d11366 | Java | FTDShanCai/QD | /qd_base/src/main/java/com/example/qd_base/Call.java | UTF-8 | 199 | 1.679688 | 2 | [] | no_license | package com.example.qd_base;
import com.example.qd_base.net.CacheMode;
/**
* @author ddc
* 邮箱: 931952032@qq.com
* <p>description:
*/
public interface Call {
void setCacheMode(CacheMode mode);
}
| true |
25b46b57411ff652e96493159438b7f5b16d6d58 | Java | lixianch/Java | /src/main/java/nio2/FSDemo.java | UTF-8 | 834 | 2.921875 | 3 | [] | no_license | package nio2;
import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.Files;
import java.nio.file.Paths;
public class FSDemo {
public static void main(String[] args) throws IOException {
if(args.length != 1){
System.err.println("Usage:java FSDemo path");
re... | true |
3ce04395bf0cc37d9351e1ff0c72acda79cd355f | Java | kevingeogarcia/practica | /src/NewClass1.java | UTF-8 | 942 | 2.78125 | 3 | [] | no_license |
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* @author Laboratorio 2
*/
public class NewClass1 {
public static void m... | true |
70556ee8a675901e7e0e281367e947b8725b457a | Java | mohsenyz/spring-boot-visitor-manager | /src/main/java/com/sina/sina/dao/VisitorCityDao.java | UTF-8 | 1,555 | 2.21875 | 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 com.sina.sina.dao;
import com.sina.sina.dao.rowmapper.VisitorCityRowMapper;
import com.sina.sina.models.VisitorCity;
import ja... | true |
a6f38b49ac6f44ac06d43986c348e1f6bfe9fafc | Java | nooriro/apex-replacement | /misc/2021-0109-gpsu/apk/GoogleCellBroadcastApp_source_from_JADX/sources/androidx/activity/contextaware/OnContextAvailableListener.java | UTF-8 | 168 | 1.640625 | 2 | [] | no_license | package androidx.activity.contextaware;
import android.content.Context;
public interface OnContextAvailableListener {
void onContextAvailable(Context context);
}
| true |
7e9cae6f050f737b1de12e673e4d30f399a55788 | Java | lenlag/Cours | /JPA/MySpecieTest.java | UTF-8 | 1,371 | 2.265625 | 2 | [] | no_license | package persistence;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test... | true |
e6eabb2d1e6f057cbc3af0a854e1379ac3a37a4f | Java | ProGenji25/FamilyMapServer | /src/Service/GetAllPersonsService.java | UTF-8 | 2,018 | 2.828125 | 3 | [] | no_license | package Service;
import DataAccess.AuthTokenDao;
import DataAccess.DataAccessException;
import DataAccess.Database;
import DataAccess.PersonDao;
import Model.AuthToken;
import Model.Person;
import Result.GetAllPersonsResult;
import java.util.*;
/**
* Returns ALL family members of the current user.
* The current use... | true |
6ef6c4703df87f6c086dfff6ff55f4e217809e52 | Java | wangliyong123/java | /servlet-jdbc/servlet-and-jdbc/src/com/feige/web/servlet/DatabaseOutBrowser.java | UTF-8 | 2,920 | 2.609375 | 3 | [] | no_license | package com.feige.web.servlet;
import com.feige.jdbc.utils.JDBCUtils;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingE... | true |
8a24f91aff8be43cf82ada8b2144f06e7778feae | Java | P79N6A/icse_20_user_study | /methods/Method_35755.java | UTF-8 | 255 | 2.34375 | 2 | [] | no_license | public static String urlToPathParts(URI uri){
Iterable<String> uriPathNodes=Splitter.on("/").omitEmptyStrings().split(uri.getPath());
int nodeCount=Iterables.size(uriPathNodes);
return nodeCount > 0 ? Joiner.on("-").join(from(uriPathNodes)) : "";
}
| true |
be1aac749e9f71f8a379ccfe06bd1ef1a84b8626 | Java | lucianofedericoolmedo/javaArchitecturePOC | /src/test/java/ar/com/mobeats/consolidar/backend/service/PermissionServiceTest.java | UTF-8 | 1,513 | 2.3125 | 2 | [] | no_license | package ar.com.mobeats.consolidar.backend.service;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUni... | true |
d6e994ef6abedde14e4a7ed0eff1da247d21387e | Java | dessolator/DryRun | /DryRun/src/dryrun/game/engine/network/GameStatePacket.java | UTF-8 | 2,374 | 2.703125 | 3 | [] | no_license | package dryrun.game.engine.network;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
... | true |
f8edcd41a3fba39bfa502c0b0fe305e06c4453e2 | Java | way1989/MyApp | /MyTheme/themebusiness/com/yunos/theme/businesslib/data/checkcomment/CheckCommentResponseData.java | UTF-8 | 814 | 1.890625 | 2 | [] | no_license | package com.yunos.theme.businesslib.data.checkcomment;
import com.aliyun.wireless.maps.theme.checkcomment.vo.CheckCommentResponse;
import com.aliyun.wireless.maps.theme.checkupdate.vo.CheckUpdateResponse;
import com.yunos.theme.businesslib.business.cache.ConstAppStore;
import com.yunos.theme.businesslib.data.BaseRespo... | true |
0ccafb7756d45ceb8da5cf01501621d37eb61433 | Java | GaidosBenjamin/Rest-api | /impl/src/test/java/com/rest/impl/domain/mapper/group/impl/GroupMapperImplTest.java | UTF-8 | 1,340 | 2.375 | 2 | [] | no_license | package com.rest.impl.domain.mapper.group.impl;
import com.rest.api.dto.GroupDto;
import com.rest.impl.dao.group.GroupDao;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.A... | true |
9643a52e19693e3ac8f50d04f50044c037b16b41 | Java | poojasolanki9569/banking-app-based-on-java-part1 | /Address.java | UTF-8 | 792 | 3.3125 | 3 | [] | no_license | import java.lang.Thread.State;
import java.util.Scanner;
public class Address {
private String street;
private String village;
private String state;
private String zip_code;
public void accept_address(){
Scanner s = new Scanner(System.in);
System.out.println("Enter your ad... | true |
40e747c2caad734c7eefc038dac294952140c643 | Java | hrkim28/TCT | /20190225/TCT_20190225_Kimsiwon.java | UTF-8 | 1,504 | 2.96875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;
public class TCT_20190225_Kimsiwon {
public static void main ( String[] args ) {
Scanner sc = new Scanner(System.in);
int numCount = Integer.parseInt(sc.nextLine());
String [] input = new String[numCount];
int[][] value... | true |
ab36e055570e5d825f517fac993a84a7c98749b3 | Java | AbyVega/oma | /src/main/java/com/mozcalti/evaluacion/evaluacionOMA/services/impl/UsuarioServiceImpl.java | UTF-8 | 2,197 | 2.25 | 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 com.mozcalti.evaluacion.evaluacionOMA.services.impl;
import com.mozcalti.evaluacion.evaluacionOMA.models.Usuario;
impo... | true |
a793d49e6964d4ed6fd06f46d54f4c0687a6d8ec | Java | Sp4beans/leetcode | /src/main/java/com/sp4beans/leetcode/medium/solved/M17_07.java | UTF-8 | 1,175 | 3.78125 | 4 | [] | no_license | package com.sp4beans.leetcode.medium.solved;
// 每年,政府都会公布一万个最常见的婴儿名字和它们出现的频率,也就是同名婴儿的数量。有些名字有多种拼法,例如,John 和 Jon 本质上是相同的名字,但被当成了两个名字公布出来。给定两个列表,一个是名字及对应的频率,另一个是本质相同的名字对。设计一个算法打印出每个真实名字的实际频率。注意,如果 John 和 Jon 是相同的,并且 Jon 和 Johnny 相同,则 John 与 Johnny 也相同,即它们有传递和对称性。
//
// 在结果列表中,选择字典序最小的名字作为真实名字。
//
// ... | true |
0fd1f6af7dec574f459b2bc7ef330e13eac44b89 | Java | peaner/platform-sdk | /src/main/java/peaner/platform/sdk/common/requestBean/extend/ExtendParams.java | UTF-8 | 963 | 1.773438 | 2 | [] | no_license | package peaner.platform.sdk.common.requestBean.extend;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
/**
* @Author: lilongzhou
* @Description:
* @Date: Created in 18-7-3 下午5:20
**/
@Setter
@Getter
public class ExtendParams {
/**
* 系统商编号
*/
@Seria... | true |
9b5caa1bc163d3e66d44ad1bf8933db14c1fef2f | Java | jaideep03/SeleniumAutomationFramework | /SeleniumAutomationFramework/src/test/java/tests/TC20_HeadlessChromeBrowserDemo.java | UTF-8 | 1,090 | 2.59375 | 3 | [] | no_license | package tests;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class TC20_HeadlessChromeBrowserDemo {
public static void main(String[] args) throws... | true |
9009558f45d521fe0c6db7c18db7834346f0d200 | Java | KobloshAlex/StreamAPI | /src/main/java/com/foxminded/stream/file/FileReader.java | UTF-8 | 198 | 1.984375 | 2 | [] | no_license | package com.foxminded.stream.file;
import java.io.File;
import java.io.IOException;
import java.util.List;
public interface FileReader {
List<String> read(File fileName) throws IOException;
}
| true |
90b873c6aee3ecc197064b9980660e5d0c7c922e | Java | kaiweicai/p2p | /p2pweb/src/main/java/com/yiqiandai/p2p/common/tag/SystemConstantTag.java | UTF-8 | 2,601 | 1.96875 | 2 | [] | no_license | package com.yiqiandai.p2p.common.tag;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletContext;
import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
impor... | true |
120056b0e2ae2bcc99ecb4657a495360b7575839 | Java | TimeLegacy/TLHub | /src/main/java/net/timelegacy/tlhub/cosmetics/hats/animals/FoxHat.java | UTF-8 | 475 | 2.28125 | 2 | [] | no_license | package net.timelegacy.tlhub.cosmetics.hats.animals;
import net.timelegacy.tlhub.cosmetics.hats.Hat;
import net.timelegacy.tlhub.enums.Category;
import net.timelegacy.tlhub.enums.Rarity;
public class FoxHat extends Hat {
public FoxHat() {
setRarity(Rarity.COMMON);
setCategory(Category.ANIMALS);
setName... | true |
d09a0df81d74ce637cb8bc1f040c5f74ebf157c8 | Java | FatherHou/NetworkDistributedComputing | /网络分布/src/ex3_hou/Meeting.java | UTF-8 | 2,386 | 2.859375 | 3 | [] | no_license | /**
*
*/
package ex3_hou;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author hou
* 会议类
*/
public class Meeting implements Serializable {
private int id;
private String hostUser;
private String otherUser;
private Date start;
priv... | true |
d6cec3cd3ac98490b20892f6e1620424afc19c17 | Java | Kizunaplus/workshop_201611 | /Chattt/bots/Bot1.java | UTF-8 | 1,151 | 2.375 | 2 | [] | no_license | import java.util.Date;
import java.util.List;
import java.util.UUID;
import jp.co.kizuna.plus.chat.bot.loader.BotAnnotation;
import jp.co.kizuna.plus.chat.main.window.ChatNotify;
import org.atilika.kuromoji.Token;
import org.atilika.kuromoji.Tokenizer;
public class Bot1 {
ChatNotify notiry;
UUID id;
@BotAnnotat... | true |
5546a2207bc36e0350a67def8bf055a57e51dc0e | Java | thanhnhan260594/DATP | /SHOP02/src/java/dao/User_staffDAO.java | UTF-8 | 1,125 | 2.46875 | 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 dao;
import connect.DBConnect;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
impor... | true |
349861456e0fa038ee2bb9005064b83e13efab69 | Java | karthikbeepi/APP-exercises | /src/ObserverPattern/LaptopCrashException.java | UTF-8 | 291 | 2.53125 | 3 | [] | no_license | package ObserverPattern;
public class LaptopCrashException extends Exception {
String s;
public LaptopCrashException(String msg) {
// TODO Auto-generated constructor stub
s = msg;
}
@Override
public String getMessage() {
// TODO Auto-generated method stub
return s;
}
}
| true |
24cdd41f7b0ed2ba2433724c89250e5efedd2157 | Java | MaxElmanov/MyProjects | /IdeaProjects/Diverse projects by java/TestSIA/src/main/java/com/test/spring/Run.java | UTF-8 | 547 | 2.46875 | 2 | [] | no_license | package com.test.spring;
import com.test.spring.classes.BraveKnight;
import com.test.spring.interfaces.Knight;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Run {
public static void main(String[] args) {
Appl... | true |
c9f8573fa9aa9bbfb0b7669596050585c79c6b48 | Java | tobiaskalmes/MobileComputingJANE | /JANE_SimulationServices/de/uni_trier/jane/service/network/link_layer/global/GlobalNetworkLinkLayerProxy.java | ISO-8859-1 | 13,120 | 1.664063 | 2 | [] | no_license | /*****************************************************************************
*
* GlobalNetworkLinkLayer.java
*
* $Id: GlobalNetworkLinkLayerProxy.java,v 1.1 2007/06/25 07:24:49 srothkugel Exp $
*
* Copyright (C) 2002-2004 Hannes Frey, Daniel Goergen and Johannes K. Lehnert
*
* This program is free softwa... | true |
6054a426622603e2e3ac8bb1796e24863ca68da8 | Java | AswinT22/Code | /GFG/Arrays/ChocolateDistributionProblem.java | UTF-8 | 1,644 | 3.296875 | 3 | [] | no_license | package GFG.Arrays;
//https://practice.geeksforgeeks.org/problems/chocolate-distribution-problem/0/?track=sp-arrays-and-searching&batchId=152
import java.util.*;
import java.lang.*;
import java.io.*;
public class ChocolateDistributionProblem {
static class FastReader{
StringTokenizer st;
Buffer... | true |
72185f977b5150ed0eb8e45ff61dac55dcedebf5 | Java | semaifour/progsets.io | /progsets-spark/src/main/java/io/progsets/spark/test/SparkMLCorrelation.java | UTF-8 | 2,355 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package io.progsets.spark.test;
import java.util.Arrays;
import java.util.List;
import javax.annotation.PostConstruct;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.ml.linalg.VectorUDT;
import org.apache.spark.ml.linalg.Vectors;
import org.apache.spark.... | true |
c93b9a17411bf87d16c8ce655c434e771dd6958c | Java | xintongc/SpringBoot | /v2/Driver.java | UTF-8 | 726 | 2.734375 | 3 | [] | no_license | package com.zz.java310.v2;
import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Created by zncu on 2017-09-23.
*/
public class Driver {
public static void main(String[] args) {
... | true |
7e2322fd50677f85e5d8d68878e7e5461d45515a | Java | kevdoran/nifi-android-s2s | /s2s/src/main/java/com/hortonworks/hdf/android/sitetosite/collectors/filters/ParcelableFileFilterUtil.java | UTF-8 | 1,632 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Hortonworks, Inc.
* All rights reserved.
*
* Hortonworks, Inc. licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses... | true |
1a0945e074f80da4ef2890ea5a8647a2a47bb9f2 | Java | GuilhermeSanches/Lab-1 | /Treinamento/src/br/edu/univas/main/Questao23.java | UTF-8 | 220 | 2.484375 | 2 | [] | no_license | package br.edu.univas.main;
public class Questao23 {
public static void main(String[] args) {
String output = "";
for (int i = 0; i < 5; i++) {
output = output + "*";
System.out.println(output);
}
}
} | true |
7edb1429a1cc699d80234faad618473c9660f34f | Java | jjs-0003/Exercise | /src/jp/co/jjs/java_seminar/self_study/q5_3/Sphere.java | UTF-8 | 473 | 3.203125 | 3 | [] | no_license | package jp.co.jjs.java_seminar.self_study.q5_3;
public class Sphere {
private double radius;
private double center;
public Sphere(double radius, double center) {
this.radius = radius;
this.center = center;
}
/**
* @return radius
*/
public double getRa... | true |
909c7b31cacf17b689928404ef8c601db046a85a | Java | SaiPrabhu611/Design_Patterns | /src/main/java/Observable/TwitterUser.java | UTF-8 | 575 | 2.734375 | 3 | [] | no_license | package Observable;
import java.util.ArrayList;
import java.util.List;
public class TwitterUser implements TwitterUserInterface {
private List<Follower> follower=new ArrayList<>();
String title;
@Override
public void Follow(Follower fname)
{
follower.add(fname);
}
@Override
public void unFollow(Fo... | true |
911dcdf4dbdb5cdddae4ed17f7e3d6554491b4c5 | Java | animatinator/Simon-says | /ConstNode.java | UTF-8 | 142 | 1.820313 | 2 | [] | no_license | // ConstNode.java
package simonSays;
public class ConstNode extends SyntaxTree {
public ConstNode(int type) {
super(type);
}
} | true |
7075a4a5d66bcec8a5ddf0cb20a171a4d6e0cfa7 | Java | weichk/zaodao | /zaodao-openapi/src/main/java/com/acooly/zaodao/openapi/message/dto/TravelVoiceDto.java | UTF-8 | 2,256 | 1.796875 | 2 | [] | no_license | package com.acooly.zaodao.openapi.message.dto;
import com.acooly.openapi.framework.common.annotation.OpenApiField;
import com.acooly.zaodao.platform.dto.TravelResourceDto;
import com.google.common.collect.Lists;
import lombok.Data;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.mat... | true |
639719106a4fa511845e68810ef3fb3ad4decc97 | Java | arielleslatus/CS5520-MobileAppDev-su21-Charitable | /app/src/main/java/edu/neu/charitable/RegisterForPool.java | UTF-8 | 15,940 | 1.898438 | 2 | [] | no_license | package edu.neu.charitable;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import... | true |
9edefd5732b7b632400c5a58936da362d349f307 | Java | NiuJianLei/DaoChuLvXing | /DaoChuLvXIngV1/src/main/java/presenter/DongTaiPresenter.java | UTF-8 | 834 | 2.078125 | 2 | [] | no_license | package presenter;
import com.example.lenovo.daochulvxing.base.BasePresenter;
import com.example.lenovo.daochulvxing.bean.MyPerson;
import model.DongTaiModel;
import model.ICallBack;
import view.DongTaiView;
public class DongTaiPresenter extends BasePresenter<DongTaiView> {
DongTaiModel model;
@Override
... | true |
2832fa184b1ce27c81469d8a5c34c15265b92a7f | Java | topcoder-platform/tcs-cronos | /component_-_check_profile_completeness_servlet_filter/trunk/src/java/tests/com/topcoder/reg/profilecompleteness/filter/failuretests/FailureTests.java | UTF-8 | 2,110 | 1.960938 | 2 | [] | no_license | /*
* Copyright (C) 2011 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.reg.profilecompleteness.filter.failuretests;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* <p>Aggregates all failure tests in this component.</p>
*
* @author jmn
* @version 1.0
*/
public cla... | true |
c7444d84698b04bcaf4443066d5f620df4021a4b | Java | zhuangYuFeiHelloGit/whj1103 | /Day06_extends/src/com/lanou3g/study/Main.java | UTF-8 | 1,125 | 4.1875 | 4 | [] | no_license | package com.lanou3g.study;
public class Main {
public static void main(String[] args) {
//我们一直写的new XXX();
//实际上这个XXX()就是一个构造方法
//只不过这个构造方法是没有参数的
//每一个类中,都会有一个
//默认的没有参数的构造方法
//以后没有参数我们就简称为空参
//刚刚我们自己在Cat中写了一个带参数的构造方法
//那么就会把默认的空参的构造方法覆盖
//这里的new Cat()还是去找空参的构造方法
//就找不到了,就报错了
Person zhangSan = ... | true |
2db9a8905025fd3b1305d7a9de993ea418591490 | Java | coolegos/AndroidSample | /app/src/main/java/com/egos/samples/xfermode/XfermodeActivity.java | UTF-8 | 454 | 1.828125 | 2 | [] | no_license | package com.egos.samples.xfermode;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Egos on 2017/1/17.
* 验证Xfermode
*/
public class XfermodeActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable... | true |
d32c77611427f087d3218dd2a8ed93b0d4cb6344 | Java | johannnovak/Traffic_Simulation | /src/code/Road.java | UTF-8 | 11,414 | 3.296875 | 3 | [] | no_license | package code;
import gui.frame.Displayable;
import java.awt.geom.Point2D;
import java.io.Serializable;
/**
* This class represents a Road. It has two cardinals which are where the road is attached to the starting and ending
* crossroads and a distance (between the crossroads).
* @author NOVAK Johann
* johann.n... | true |
905570c7cf9b9800c6f97397f845e16a25422872 | Java | ViiSE/LightSearch-Archive | /Standard Edition/LightSearch Server/src/main/java/lightsearch/server/data/stream/DataStream.java | UTF-8 | 1,354 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 ViiSE.
*
* 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 ... | true |
581d78ca7fe5e968e590f3c8c9a8cf91138ae08b | Java | tommasobonomo/geolist | /src/main/java/it/unitn/aa1718/webprogramming/geolists/database/models/Access.java | UTF-8 | 911 | 2.59375 | 3 | [] | no_license | package it.unitn.aa1718.webprogramming.geolists.database.models;
/**
* Model of Access relation
* @author tommaso
*/
public class Access {
private long idUser;
private long idList;
private boolean havePermission;
public Access(long idUser,long idList, boolean havePermission){
this.idLi... | true |
dbd4092a93306d96d93bea0ea1691a12ab2a7867 | Java | bhagyashriatRealizerTech/SGP | /app/src/main/java/com/realizer/schoolgenie/parent/pupil/ParentMyPupilInfoFragment.java | UTF-8 | 8,046 | 1.882813 | 2 | [] | no_license | package com.realizer.schoolgenie.parent.pupil;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.preference.Prefere... | true |
c5fae426759720839676b18e2603a78b81d0cf81 | Java | designreuse/jmp | /taglib/src/main/java/org/javaplus/jmp/taglib/internet/InternetHeaderTag.java | UTF-8 | 1,637 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | package org.javaplus.jmp.taglib.internet;
import org.javaplus.jmp.taglib.HeaderTag;
/**
* <code>InternetHeaderTag</code> is the base class for all
* tag implementations that create and add a MIME header field whose value
* need to be encoded based on the user specified <code>charset</code>
* attribute.
*
* @aut... | true |
a3d82d6883af44f9eb53d78ed83d048f6f25293a | Java | Szczepan87/Algorithms | /src/test/java/AlgorytmyCwiczenia/StarircaseTest.java | UTF-8 | 214 | 1.859375 | 2 | [] | no_license | package AlgorytmyCwiczenia;
import org.junit.Test;
import static org.junit.Assert.*;
public class StarircaseTest {
@Test
public void test() {
System.out.println(Starircase.staircase(6));
}
} | true |
83b9b2c5b8187b7c25e588ee818fcb9e28cc7192 | Java | vominhtri231/Java-SocketNetwork | /src/caro/Server.java | UTF-8 | 3,388 | 2.90625 | 3 | [] | no_license | package caro;
import java.awt.Point;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
public class Server {
private ServerSocket server;
private int num;
private ArrayList<Socket> socs;
... | true |
a0a2e8964001c8e56f1af98cc53c97a5d9f5552d | Java | cqu2014/fightingForJob | /src/wangzhen/job/NIuke3.java | GB18030 | 758 | 3.0625 | 3 | [] | no_license | package wangzhen.job;
import java.util.ArrayList;
import java.util.Stack;
class ListNode {
int val;
ListNode next = null;
ListNode(int val) {
this.val = val;
}
}
public class NIuke3 {
public ArrayList<Integer> printListFromTailToHead(List... | true |
dd85b921685fc20177b9526219e9273b22947a66 | Java | ChrysthianMoizes/lazaros_codigo_fonte | /service/src/main/java/com/basis/colatina/service/service/ResponsavelService.java | UTF-8 | 1,640 | 2.25 | 2 | [] | no_license | package com.basis.colatina.service.service;
import com.basis.colatina.service.domain.Responsavel;
import com.basis.colatina.service.repository.ResponsavelRepository;
import com.basis.colatina.service.service.dto.ResponsavelDTO;
import com.basis.colatina.service.service.exception.RegraNegocioException;
import com.basis... | true |
425c73c498fd346e81157d2fce21381105230b8e | Java | siddhivinayak-sk/tutorials | /spring-boot-rest/src/main/java/com/baeldung/persistence/IOperations.java | UTF-8 | 280 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.baeldung.persistence;
import java.io.Serializable;
import org.springframework.data.domain.Page;
public interface IOperations<T extends Serializable> {
// read - all
Page<T> findPaginated(int page, int size);
// write
T create(final T entity);
}
| true |
ac76d4ec17753e57afb8721f9612d1e0dded3e47 | Java | jsyang-dev/java-baseball-playground | /src/test/java/study/StringTest.java | UTF-8 | 1,716 | 3.359375 | 3 | [] | no_license | package study;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
class StringTest {
@Test
@DisplayName("replace 메소드를 호출한다")
void replace() {
... | true |
5ba9dc70e7754a78957480b19dbd06c830bad6df | Java | denglitong/thingking_in_java | /20.GenericType/src/main/java/TupleTest.java | UTF-8 | 500 | 3.078125 | 3 | [] | no_license | /**
* @author denglitong
* @date 2021/1/17
*/
public class TupleTest {
// 函数多返回值可使用 tuple 元组封装返回
static Tuple2<String, Integer> f() {
return new Tuple2<>("hi", 47);
}
static Tuple3<Amphibian, String, Integer> g() {
return new Tuple3<>(new Amphibian(), "hi", 47);
}
public sta... | true |
878ddcf6a6ce4fd7227447b225e03bf26256cc1e | Java | genome-rcast/karkinos | /src/main/java/jp/ac/utokyo/rcast/karkinos/distribution/XYDepthRatioExtract.java | UTF-8 | 2,927 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright Hiroki Ueda
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
distribu... | true |