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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
313705055b0c2c1f8c099d1d41fcf80756239da2 | Java | kinmengBGM/bgmhrmmobile | /app/src/main/java/hrm/com/custom/adapter/ApproveLeaveAdapter.java | UTF-8 | 4,114 | 2.28125 | 2 | [] | no_license | package hrm.com.custom.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.daimajia.swipe.SwipeLayout;
import com.daimajia.swipe.adapters.ArraySwipeAdapter;
im... | true |
08ee0ddc3a6e0190e46a5442e5cecc08634f38f3 | Java | Nedelosk/Modular-Machines | /src/main/java/modularmachines/common/blocks/propertys/UnlistedBlockAccess.java | UTF-8 | 625 | 2.3125 | 2 | [
"MIT"
] | permissive | package modularmachines.common.blocks.propertys;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.property.IUnlistedProperty;
public final class UnlistedBlockAccess implements IUnlistedProperty<IBlockAccess> {
public static UnlistedBlockAccess BLOCKACCESS = new UnlistedBlockAccess();
@Ove... | true |
2c036c88c0a61c2d4399e0bda52cf5c8595ecb44 | Java | yap12138/WeChat | /app/src/main/java/com/yaphets/wechat/service/HeartBeatService.java | UTF-8 | 1,810 | 2.53125 | 3 | [] | no_license | package com.yaphets.wechat.service;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import com.yaphets.wechat.ClientApp;
import java.io.IOException;
import java.net.Socket;
public class HeartBeatService extends Service {
private static final String ... | true |
23988b77111b8ca3d958d15515289c96fc176da6 | Java | smahbod2014/YGO | /core/src/com/ygo/game/buffs/Buff.java | UTF-8 | 966 | 3.046875 | 3 | [] | no_license | package com.ygo.game.buffs;
import com.ygo.game.Types.Phase;
public abstract class Buff {
public enum Type {
ModifyAtk, ModifyDef, ModifyLevel, NoBattleDamageTaken, NoDestructionByBattle
}
protected final Type type;
/** During what phase does this buff expire? Can be null, meaning it's conti... | true |
618e99ed6d5d66523481c206a0d6719902852483 | Java | Lottawang/shape-Generation-and-Test | /src/CRectangle.java | UTF-8 | 1,384 | 3.734375 | 4 | [] | no_license | /** Class CRectangle implements class rectangle shape which is a
* derived class from CShape. We must implement its CalculateArea()
*
* @author kobti
*
*/
public class CRectangle extends CShape
{
public int length = 1; // length must be positive
public int width = 1; // width must be positive
public CRecta... | true |
508dc71c0b2434e737a7acf60121aa4537121261 | Java | audronFS/DataStructureAndAlgorithms | /SinglyLinkedList/Main.java | UTF-8 | 425 | 2.609375 | 3 | [] | no_license | package SinglyLinkedList;
public class Main {
public static void main(String[] args) {
SinglyLinkedList sList = new SinglyLinkedList();
sList.insertFirst(8);
sList.insertFirst(7);
sList.insertFirst(6);
sList.insertFirst(56);
sList.displayList();
sList.deleteF... | true |
4ad1c6d1d504eb609d1a92e453fad4a8637b9f7c | Java | oludom/PMTSpiel | /src/pmt/spielspaß/codegenerierung/ZeitDetachedCriteria.java | UTF-8 | 3,048 | 2.1875 | 2 | [] | no_license | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: Jan(Hochschule Heilbronn)
* License Type: Academ... | true |
50f5af4894c258459f97ba75d0c8575b4a55a8d9 | Java | more456/WowzaLibrary | /WowzaStream/src/com/wowza/wms/plugin/broadcast/ScheduleCache.java | UTF-8 | 7,820 | 2.09375 | 2 | [] | no_license | package com.wowza.wms.plugin.broadcast;
import java.io.File;
import java.io.IOException;
import java.nio.file.CopyOption;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sq... | true |
f1f5216aa5e9ab58f6bbf0eedea0fa2457cdaa92 | Java | mkathiravan/LiveDataProjects | /app/src/main/java/net/kathir/myapplication/simpleLiveData/SimpleLiveDataViewActivity.java | UTF-8 | 1,278 | 2.171875 | 2 | [] | no_license | package net.kathir.myapplication.simpleLiveData;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.ProgressBar;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.Vi... | true |
ab77cf445fcebb621d1675b079cddbb12f1e8a19 | Java | Noaptea/eSolutions | /designpatterns/src/main/java/p08proxy/TowerProxy.java | UTF-8 | 729 | 3.34375 | 3 | [] | no_license | package p08proxy;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class TowerProxy implements WizzardTower {
private final WizzardTower tower;
private final Integer capacity;
private Integer wizzardCount = 0;
@Override
public void enter(Wizzard wizzard) {
if (wizza... | true |
c6e84f465d5e15cd7431dadcf81b2f96f7da3569 | Java | bosstkd/TransportProject | /src/interfaces/Remorque.java | ISO-8859-1 | 15,365 | 2.25 | 2 | [] | no_license | package interfaces;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.CallableStatement;
import ja... | true |
1bdd4f0230c34734bbaa529579bde49ae10f0b03 | Java | CSC1994/CS | /stack/IsValid.java | UTF-8 | 1,430 | 3.9375 | 4 | [] | no_license | package leetcode.stack;
import java.util.Stack;
/**
* @program: DataStrucerAndAlgorithm
* @description:
* @author: csc
* @create: 2020-02-10 22:03
* 20. 有效的括号
* 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。
* 有效字符串需满足:
* 左括号必须用相同类型的右括号闭合。
* 左括号必须以正确的顺序闭合。
* 注意空字符串可被认为是有效字符串。
**/
public class I... | true |
1b7342673a821109d402950557c84cbe5df787e5 | Java | kensenjohn/Java-MVC-Framework | /src/com/gs/common/ServiceProcessorObject.java | UTF-8 | 430 | 1.898438 | 2 | [] | no_license | package com.gs.common;
public class ServiceProcessorObject {
private boolean isSuccess = true;
private String resultStatus = "";
public boolean isSuccess() {
return isSuccess;
}
public void setSuccess(boolean isSuccess) {
this.isSuccess = isSuccess;
}
public String getResultStatus() {
return result... | true |
2d9216c7b09b74939a716c07ba71e316cedcb856 | Java | MehtaAnukul/Wallet-Hub-Android | /app/src/main/java/com/anukul/wallethub/adapter/VideoAdapter.java | UTF-8 | 3,266 | 2.375 | 2 | [] | no_license | package com.anukul.wallethub.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... | true |
3c0f12187dfffdeeab747e688fb0e2e416f38024 | Java | pancat/nail_care_client | /Meijia/src/com/pancat/fanrong/util/HttpUtil.java | UTF-8 | 3,277 | 2.6875 | 3 | [] | no_license | package com.pancat.fanrong.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
public class HttpUtil {
public static String URL_PATH="http://ec2-54-169-66-69... | true |
0717f18f1c4c7683a2c702af60ad4a818fbe95c1 | Java | richardzhangrui/migrationProcess | /TransactionalFileOutputStream.java | UTF-8 | 3,263 | 3.109375 | 3 | [] | no_license |
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.io.Serializable;
/**
* TransactionalFileOutputStream is output stream responsible for read serializable objects.
* <p>
* This class extends outputStream and implements Serializable.
* <p>
* This class has a po... | true |
3c5bc371ec48ef13ab3dd07c040a56f9fee26c19 | Java | jhw-polytech/kopo_java | /src/kr/ac/kopo/과제/20200519/2060340005_이상현_과제/CreateDir.java | UTF-8 | 433 | 3.296875 | 3 | [] | no_license | package day0519.homework;
import java.io.File;
import java.util.Scanner;
public class CreateDir {
public void cDir(String path) {
System.out.print("생성할 디렉토리 이름 : ");
Scanner n = new Scanner(System.in);
String newDir = n.nextLine();
n.close();
File newDirObj = new File(path + "/" + newDir);
System.out... | true |
90e77875099be45aca7b9ef0dccacdba23c92b68 | Java | drekerd/solomoviesFrontEnd | /src/main/java/com/rumos/rumosthemoviefreemarker/trending/movies/TrendingController.java | UTF-8 | 930 | 2.21875 | 2 | [] | no_license | package com.rumos.rumosthemoviefreemarker.trending.movies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Requ... | true |
cf0a8a18306d6927a645a7bffd91b61e8d3e92f5 | Java | adevleeschauwer/liferay-dxp-dynquery-issue | /test-portlet/src/main/java/be/gfi/dxp/portlet/TestPortlet.java | UTF-8 | 2,405 | 2 | 2 | [] | no_license | package be.gfi.dxp.portlet;
import java.io.IOException;
import java.util.List;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import com.liferay.journal.model.JournalArticle;
import com.liferay.journal.model.impl.JournalArticleModelImpl;
import com.lif... | true |
c6c6d7ac4736c93cbd7cfe3d08fccd603fe3cec4 | Java | mpontsasa/src | /TaskTableCreator.java | UTF-8 | 3,874 | 2.78125 | 3 | [] | no_license | public class TaskTableCreator {
private String[][][] unitHeaderTs; //[unit][sor][mezo]
private String[][][][] subUnitTs; //[unitszama][subunitszama][sor][mezo]
private String[][] sumPretTotalUnitars;
private String[][] sumTotalT;
private String[][] sumMMUTT;
private TaskModel taskModel;
... | true |
c18a3a9df1388b6d23a8c1586ce19371c6bf3e3b | Java | enotcz/Dama | /src/dama/Player.java | UTF-8 | 482 | 2.375 | 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 shashki1;
import java.io.Serializable;
/**
*
* @author Spike
*/
public class Player implements Serializable{
... | true |
4be2efe31f41bc232d9618ff0cf60e4bf8cd6ce4 | Java | srid99/java-http-clients | /src/main/java/in/srid/client/http/OkHttp.java | UTF-8 | 1,171 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package in.srid.client.http;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import java.io.IOException;
public class OkHttp implements HttpClient {
private final Request request;
private final OkHttpClient client;
publi... | true |
e67e972d326237cb973a5a8df49d7ac67ac8e571 | Java | PerimeterX/perimeterx-java-sdk | /src/main/java/com/perimeterx/models/risk/VidSource.java | UTF-8 | 365 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.perimeterx.models.risk;
import com.fasterxml.jackson.annotation.JsonValue;
public enum VidSource {
RISK_COOKIE("risk_cookie"),
VID_COOKIE("vid_cookie"),
NONE("none");
private String value;
VidSource(String value){
this.value = value;
}
@JsonValue
public String getV... | true |
ed003f49323a9973af540459ffb701b558b75036 | Java | seloufian/Intelligent-SAT-Solver | /src/pso/PSO.java | UTF-8 | 1,370 | 2.84375 | 3 | [] | no_license | package pso;
import java.util.ArrayList;
import main.ClausesSet;
import main.Solution;
public abstract class PSO {
public static Solution searchPSO(ClausesSet clset, int numParticles, int const1, int const2, int inWeight, int maxIterations, long execTimeMillis) {
ArrayList<Particle> particles = new ArrayLi... | true |
ef9b8fdc300afd456186e1e60e7490e2b45a58aa | Java | Phantoms007/zhihuAPK | /src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java | UTF-8 | 28,802 | 1.59375 | 2 | [] | no_license | package com.fasterxml.jackson.databind.deser.std;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.databind.DeserializationConfig;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.dat... | true |
ded50d707989994b27f5c0db91652aaebedfd5f9 | Java | BelEspiritTech/Market | /src/main/java/com/essot/web/controller/CategoryProductService.java | UTF-8 | 1,220 | 2.234375 | 2 | [] | no_license | package com.essot.web.controller;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereoty... | true |
4b8c8667bf485af5ee97fd102eb9eefa4aebbb7d | Java | zktree/crm_stu_4a | /crm_stu_zk/src/com/crm/service/ProductTypeService.java | UTF-8 | 807 | 1.867188 | 2 | [] | no_license | package com.crm.service;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.crm.model.DataModel;
import com.crm.model.Pager;
import com.crm.model.ProductType;
public interface ProductTypeService {
DataModel<ProductType> getList(Pager pager);
List<ProductType> findAllProductType();
... | true |
1e4f6878ff506c21bff92c1a43e5bf834312591f | Java | petertogara/roulette | /src/main/java/com/playsafe/roullette/repository/api/PlayerRepository.java | UTF-8 | 231 | 1.882813 | 2 | [] | no_license | package com.playsafe.roullette.repository.api;
import com.playsafe.roullette.entity.Player;
import java.io.IOException;
import java.util.List;
public interface PlayerRepository {
List<Player> findAll() throws IOException;
}
| true |
afe660be9243f6bf25a7f7089ee70067e5853ef4 | Java | UtopAIBuilder/KiranaStore | /app/src/main/java/com.influentials.fragments/HomePageCategoryListFragment.java | UTF-8 | 2,244 | 2.015625 | 2 | [] | no_license | package com.influentials.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android... | true |
425566f120f77f83a86181fd13d6c5de186b7f70 | Java | serafin544/Bank-gp-sb-ang | /bankADBS/src/main/java/com/example/bankADBS/repository/BillRepository.java | UTF-8 | 341 | 2.03125 | 2 | [] | no_license | package com.example.bankADBS.repository;
import com.example.bankADBS.domains.Bills;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface BillRepository extends CrudRepository<Bills, Long> {
List<Bills> findAccountById(Long accountId);
List<Bills> findCustomerById... | true |
9961243e59672b335f7a6a74dbdfc555fe21c3ae | Java | coool0230/java_xu | /src/com/meego/day2/NinexNine.java | UTF-8 | 469 | 2.890625 | 3 | [] | no_license | /**
* Filename : NinexNine.java
* Author : huyn
* Creation time : ����8:51:55 - 2018��12��19��
* Description :��ӡ99�˷���
*/
package com.meego.day2;
public class NinexNine {
public static void main(String[] args){
int hang = 1;
// int lie = 1;
while(hang <= 9){
int lie = 1;
while(lie <= hang){
System.out... | true |
75225fb9129999fcb2cca95bd4f10f9dd406ba9f | Java | Draciel/Slackify | /src/main/java/pl/draciel/slackify/spotify/model/Device.java | UTF-8 | 557 | 2 | 2 | [
"Apache-2.0"
] | permissive | package pl.draciel.slackify.spotify.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@Data
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class Device {... | true |
b11718de13ccf29ab030250116b923fc2e98ace2 | Java | dav-rob/neo4jIntegration | /src/main/java/com/entendior/screener/domain/Symbol.java | UTF-8 | 1,792 | 2.453125 | 2 | [] | no_license | package com.entendior.screener.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import javax.persistence.Cacheable;
import com.eoddata.ws.Data.SYMBOL;
public class Symbol {
private String code; // attri... | true |
eda6537462e84a95fb1d3d6c2d5032105a02b60e | Java | aurelien-robineau/LPPWM-SMSReceiver | /app/src/main/java/com/lppwm/smsreceiver/models/StatModel.java | UTF-8 | 569 | 2.59375 | 3 | [] | no_license | package com.lppwm.smsreceiver.models;
public class StatModel {
private static int lastId = 0;
private final int id;
private final String name;
private String value;
public StatModel(String name, String value) {
this.id = lastId++;
this.name = name;
this.value = value;
... | true |
bc3d1a991dda90f4ef1c24be7c565f2586a4b2e1 | Java | sagarvarsani007/gRPC-java-server-demo | /src/main/java/com/anand/grpc/service/UserServiceImpl.java | UTF-8 | 4,044 | 2.765625 | 3 | [
"MIT"
] | permissive | package com.anand.grpc.service;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.anand.grpc.UserServiceGrpc.UserServiceImplBase;
import com.anand.grpc.UserServiceOuterClass.AddUserRequest;
import com.anand.grpc.UserServiceOuterClass.GetAllUser... | true |
7e56f85ec4e90872e0e12c098be24cebcf52ee34 | Java | MatiasCasco/APIHomeClient | /src/java/Consumir/Resteasy/SRespuesta.java | UTF-8 | 1,284 | 2.609375 | 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 Consumir.Resteasy;
import HomeClient.domain.model.Respuesta;
import com.google.gson.Gson;
import java.util.ArrayList;
/**
*
... | true |
f227cc7154f0bb8709289f7372f9b85a501d90a3 | Java | Difficultyinnaming/SmartCampus | /Campus/src/main/java/com/hss/campus/dao/AdministratorDao.java | UTF-8 | 325 | 1.765625 | 2 | [] | no_license | package com.hss.campus.dao;
import com.hss.campus.entity.user.Administrator;
public interface AdministratorDao {
//管理员登录
Administrator queryAdministrator(Integer id, String password);
//更新头像
int updateAvatar(String avatar, Integer id);
//删除公告
int deleteItem(Integer id);
}
| true |
3cd10978028d2d95f92d1d98bb77204309f112c6 | Java | HCRPC/Java-EU5-1 | /Java-EU5-1/src/day28Part5LabCont/Q9.java | UTF-8 | 393 | 2.828125 | 3 | [] | no_license | package day28Part5LabCont;
import java.util.Arrays;
public class Q9 {
public static void main(String[] args) {
int[]x= {1,2,3,4};
System.out.println(Arrays.toString(doubled(x)));
}
public static int[] doubled(int[]numbers) {
int[]second =new int [(numbers.length)*2];
second[seco... | true |
7341b0addf9545e2d52172b06e8d3884c1e3e5c1 | Java | cthostenson/Distributed-Java | /src/hibernate/controller/GenreController.java | UTF-8 | 3,592 | 2.1875 | 2 | [] | no_license | package hibernate.controller;
import hibernate.entity.genre;
import hibernate.service.genreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;... | true |
976ef72fc8093f6e60b4d013a5e7baf5874f8f0e | Java | skesper/Playground | /gameoflife/src/main/java/de/kesper/gameoflife/Grid.java | UTF-8 | 4,429 | 2.890625 | 3 | [] | no_license | package de.kesper.gameoflife;
import java.util.Arrays;
import java.util.Random;
/**
* User: kesper
* Date: 29.09.2014
* Time: 11:39
*/
public class Grid {
private volatile int maxx;
private volatile int maxy;
private volatile int pmaxx;
private volatile int pmaxy;
private volatile int[] grid;
... | true |
1d8b3d6fffa7c3154bb56c73983b3a7d5492ce56 | Java | lindenzed/CSC216 | /HW/LotsOfErrors/src/LotsOfErrors.java | UTF-8 | 1,181 | 3.75 | 4 | [] | no_license | /**
* This is for the "Lots of Errors" assignment. I have added single line comments for shorter
* shorter comments and broken up longer comments into multi-line comments. I worked the problem
* as stated in class where we try to compile, observe errors, and then fix them.
*
* @author Zach Giles
*
* @version 10Ja... | true |
667496b47829cbb5d8a297907326b28bc4c6fde0 | Java | limsy820/com.pacbit.api.new | /src/main/java/com/bitkrx/api/auth/vo/CmeOptVO.java | UTF-8 | 539 | 1.765625 | 2 | [] | no_license | package com.bitkrx.api.auth.vo;
import com.bitkrx.config.CmeResultVO;
public class CmeOptVO extends CmeResultVO{
/**
*
*/
private static final long serialVersionUID = -6049490012119544322L;
private String opt = ""; //opt
private String opt_yn = ""; //opt성공여부
public CmeOptVO(){}
public Stri... | true |
1d0325ad1486ffcf95256a9e74382a663121337d | Java | alekszalata/TreeAVL | /src/AVLtree.java | UTF-8 | 12,151 | 3.25 | 3 | [] | no_license | import java.util.*;
public class AVLtree<T extends Comparable<T>> implements Set<T> {
private class Node<T> {
private T value;
private int height;
private Node<T> left;
private Node<T> right;
private Node<T> parent;
public Node(T newValue, Node<T> newParent) {
... | true |
1a5436c1a59d98960799a1c3d0b19c3c2650de0b | Java | michelettocaio/curso_ferias_matera | /src/main/java/com/matera/cursoferias/petstore/business/impl/VeterinarioBusinessImpl.java | UTF-8 | 1,940 | 2.609375 | 3 | [] | no_license | package com.matera.cursoferias.petstore.business.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.matera.cursoferias.petstore.business.ServicoBusiness;
import com.matera.cursoferias.petstore.business.VeterinarioBusiness;
import com.matera.cursoferia... | true |
8f783b1f1fd309a6a49fd7bc49b4eb412938e46f | Java | baygoit/GoJava | /trunk/GoJava2/grygoriy.kudryavcev/module1/anagramma/src/anagramma/anagramma.java | UTF-8 | 1,149 | 3.140625 | 3 | [] | no_license |
package anagramma;
import java.util.Scanner;
public class anagramma {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
String phrase = input.nextLine();
int lenPhrase = phrase.length();
String phraseArray[][] = new S... | true |
b291134547f5d1df9d551485940ff9e0eb65d5b6 | Java | medhanafi/MyBudget | /src/main/java/com/kmsoft/budget/repository/CategoryRepository.java | UTF-8 | 164 | 1.640625 | 2 | [] | no_license | package com.kmsoft.budget.repository;
import com.kmsoft.budget.model.Category;
public interface CategoryRepository extends GenericRepository<Category, Long> {
}
| true |
3f9756b24b663ca5057631d42d647e844dfef2f8 | Java | AlexKohanim/QuickReturn | /sources/org/jaxen/expr/iter/IterablePrecedingAxis.java | UTF-8 | 530 | 2 | 2 | [] | no_license | package org.jaxen.expr.iter;
import java.util.Iterator;
import org.jaxen.ContextSupport;
import org.jaxen.UnsupportedAxisException;
public class IterablePrecedingAxis extends IterableAxis {
private static final long serialVersionUID = 587333938258540052L;
public IterablePrecedingAxis(int value) {
sup... | true |
8357be2001dfe56e51a04b9b4c99996bb205c27f | Java | ruben-nieva/Cursos-IT | /src/main/java/demo/controller/DocenteController.java | UTF-8 | 887 | 2.015625 | 2 | [] | no_license | package demo.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewo... | true |
9607565a8cb2a528ede8eb566d89c4f79c2345ef | Java | Not4You95/GUITest2 | /src/guitest2/GUITest2.java | UTF-8 | 8,694 | 2.28125 | 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 guitest2;
import java.util.ArrayList;
import java.util.stream.Stream;
import javafx.application.Application;
import javafx.col... | true |
638488457cfdd53ab928cfbe200432f9ea71f74e | Java | Madhu-Svd/CarmelTasks | /Android/GuestJini/app/src/main/java/Model/ReviewModel.java | UTF-8 | 922 | 2.46875 | 2 | [
"MIT"
] | permissive | package Model;
public class ReviewModel {
private String reviewerName;
private String reviewDate;
private String reviewDescription;
private int reviewerProfile;
public String getReviewerName() {
return reviewerName;
}
public void setReviewerName(String reviewerName) {
this... | true |
f20fe5ef3cfdeda8e2fe960b21cfdeb104542227 | Java | minaamfasihi/competitive-programming | /LeetCode/find_k_closest_elements.java | UTF-8 | 1,214 | 3.25 | 3 | [] | no_license | class PQNode implements Comparable<PQNode> {
int value;
int diff;
public PQNode(int value, int diff) {
this.value = value;
this.diff = diff;
}
public int compareTo(PQNode other) {
if (this.diff > other.diff) {
return 1;
}
return this.diff < ot... | true |
f89217451126c6cb3915729d56eef1b8ff57ea65 | Java | cckmit/tools-java | /internet/src/main/java/wsg/tools/internet/common/WrappedStringResponseHandler.java | UTF-8 | 911 | 2.640625 | 3 | [] | no_license | package wsg.tools.internet.common;
import java.io.IOException;
import java.nio.charset.Charset;
import org.apache.http.HttpEntity;
import org.apache.http.util.EntityUtils;
import wsg.tools.common.constant.Constants;
/**
* An implementation of {@link wsg.tools.internet.base.WrappedResponseHandler} that assumes the
*... | true |
51a0d40d9c3fcb35a3cf5faf39ef3a4064472bb9 | Java | ljh1324/android-apps | /Lecture/AndroidStudioLecture/AddTest/app/src/main/java/com/example/addtest/MainActivity.java | UTF-8 | 1,523 | 2.34375 | 2 | [] | no_license | package com.example.addtest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private Button btnLogin;
privat... | true |
11d8b63fd43c3cde660ba3939d8578d3fd4a5a95 | Java | scorpionrao/html5 | /untitled folder/src/headfirst/java/Duck.java | UTF-8 | 325 | 3.078125 | 3 | [] | no_license | package headfirst.java;
public class Duck extends Bird {
public Duck() {
System.out.println("Duck constructor");
}
public Duck(String string) {
super(string);
System.out.println(string + " from Duck");
}
public static void main(String[] args) {
Duck duck = new Duck("Check");
System.out.println(duck);
... | true |
0458d851006dcd324da1277cd111c4d6a217e0a6 | Java | apache/hbase | /hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java | UTF-8 | 30,848 | 1.734375 | 2 | [
"CC-BY-3.0",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-protobuf",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
78e25c6a74802ce650a4871d57299c71b798bdc7 | Java | jhenriquecosta/java-desif | /Source/orion.desif/src/br/gov/pbh/desif/dao/impl/SistemaAlertaDaoImpl.java | UTF-8 | 1,113 | 2.125 | 2 | [] | no_license |
package br.gov.pbh.desif.dao.impl;
import br.gov.pbh.desif.base.dao.impl.BaseDaoImpl;
import br.gov.pbh.desif.dao.SistemaAlertaDao;
import br.gov.pbh.desif.model.pojo.SistemaAlerta;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
public class SistemaAlertaDaoImpl extends BaseDaoImpl... | true |
642372e771a11c60ead7c661a518ae4cf70c29ee | Java | rmunk/EleventhHour | /common/src/main/java/hr/nas2skupa/eleventhhour/common/ui/helpers/DelayedProgressDialog.java | UTF-8 | 1,198 | 2.515625 | 3 | [] | no_license | package hr.nas2skupa.eleventhhour.common.ui.helpers;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
/**
* Created by nas2skupa on 12/03/2017.
*/
public class DelayedProgressDialog extends ProgressDialog {
private static Handler dialogHandler;
private Runnable ... | true |
276b1dbcfde5f2d38ad0a3fe61c2b6e5879cf4f9 | Java | martin-ueding/project-ubernahme | /projectubernahme/interface2D/View2D.java | UTF-8 | 22,223 | 1.976563 | 2 | [] | no_license | // Copyright (c) 2011 Martin Ueding <dev@martin-ueding.de>
package projectubernahme.interface2D;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.... | true |
2f9588be0652095097f1d45cf90a2ce698abff57 | Java | Vaibhav7Prakash/Agro-Inventory-Management-System | /login.java | UTF-8 | 5,926 | 2.484375 | 2 | [] | no_license | import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.*;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.J... | true |
d159d15d12992f24d1e9c50e8050115a8f5ab262 | Java | jacobhefley/dictionary_java_week_2 | /src/main/java/Word.java | UTF-8 | 869 | 2.9375 | 3 | [
"MIT"
] | permissive | import java.util.*;
public class Word {
private int mId;
private String mWord;
private Definition mWordDefinitions;
public static ArrayList<Word> mDictionary = new ArrayList<Word>();
public Word(String word){
mWord = word;
mWordDefinitions = new Definition();
mDictionary.add(this);
mId = m... | true |
c4eb4c78b552b0000a34addd527c6b5b017fbaf8 | Java | Vinidicta/malgorzata-kaleta-kodilla-project_1 | /kodilla-patterns2/src/test/java/com/kodilla/patterns2/observer/homework/KodillaCourseTestSuite.java | UTF-8 | 1,073 | 2.9375 | 3 | [] | no_license | package com.kodilla.patterns2.observer.homework;
import static org.junit.Assert.*;
import org.junit.Test;
public class KodillaCourseTestSuite {
@Test
public void testUpdate() {
//Given
Mentor agataNowakowska = new Mentor("Agata Nowakowska");
Mentor adamKowal = new Mentor("Adam Kowal... | true |
7e4664ba53058dc573b14ba9a655c52a7e6e6778 | Java | kyuuki/rensou-android | /app/src/main/java/jp/kyuuki/rensou/android/fragments/RensouListFragment.java | UTF-8 | 3,154 | 2.28125 | 2 | [] | no_license | package jp.kyuuki.rensou.android.fragments;
import java.util.ArrayList;
import jp.kyuuki.rensou.android.R;
import jp.kyuuki.rensou.android.adapters.RensouArrayAdapter;
import jp.kyuuki.rensou.android.commons.Logger;
import jp.kyuuki.rensou.android.models.Rensou;
import jp.kyuuki.rensou.android.views.TouchChanger;
imp... | true |
c4a1e084492269abaf969280ea0e8c57bd53487b | Java | arorasumit/testurbanproj | /IOES/src/com/ibm/ioes/utilities/DbConnection.java | UTF-8 | 4,592 | 2.25 | 2 | [] | no_license | package com.ibm.ioes.utilities;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.CallableStatement;
import javax.naming.InitialContext;
import javax.sql.DataSource;... | true |
592c53f569988ad256c3fce0327674f48350672b | Java | jerhadf/CS10_19S | /Week2/DeepFryerGUI.java | UTF-8 | 2,189 | 3.578125 | 4 | [
"MIT"
] | permissive | import javax.swing.*;
import java.awt.*;
import java.awt.image.*;
/**
* A class demonstrating manipulation of image pixels.
* Version 0: just the core definition
* Load an image and display it
*
* @author Chris Bailey-Kellogg, Dartmouth CS 10, Spring 2015
* @author Jeremy Hadfield, Dartmouth CS 10, Spring 2018,... | true |
fb5a158a3a24618e2a7c91161b9243db186ae878 | Java | minyangcheng/android-architecture | /librarys-base/core-basics/src/main/java/com/min/core/base/BaseDialogFragment.java | UTF-8 | 1,599 | 2.0625 | 2 | [] | no_license | package com.min.core.base;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.min.core.R;
import com.min.core.helper.inject.ViewInject;
import com.trello.rxlifecyc... | true |
efd90680dc49a71dd4b0d8c764e063d6c3164329 | Java | MitraMentariGlobal/CAKAP | /app/src/main/java/co/id/cakap/ui/invoiceToMb/InvoiceToMbActivityPresenter.java | UTF-8 | 10,370 | 1.976563 | 2 | [] | no_license | package co.id.cakap.ui.invoiceToMb;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import co.id.cakap.data.ItemShopData;
import co.id.cakap.data.OperationUserStatusData;
import co.id.cakap.data.ResultDataLogin;
import co.id.cakap.... | true |
fc546bdd592b9212a0658cd5d03cf012e0b47d97 | Java | LNMHacks/LNMHacks-2.0-Submission | /Techkies/app/src/main/java/com/example/vishwesh/optio/notification/Model.java | UTF-8 | 468 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.vishwesh.optio.notification;
import android.graphics.Bitmap;
/**
* Created by mukesh on 18/5/15.
*/
public class Model {
String name;
Bitmap imaBitmap;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
p... | true |
5cbce68bdd9000b0f601aea75dc8f2f03ffbda2f | Java | aion1/java-socket | /java-socket/src/java_socket/Java_socket_server.java | UTF-8 | 1,014 | 3.25 | 3 | [] | no_license |
package java_socket;
import java.io.*;
import java.net.*;
/**
*
* @author gogoh
*/
public class Java_socket_server {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception {
Java_socket_server Server=new Java_socket_server... | true |
a22097b8e3b310f57acc999731ff1878d7cf9752 | Java | Guilleves/wholesaler-api | /server/src/main/java/com/api/logic/validations/ApiException.java | UTF-8 | 2,083 | 2.890625 | 3 | [] | no_license | package com.api.logic.validations;
import javax.ws.rs.core.Response.Status;
import java.util.ArrayList;
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
private ArrayList<ApiError> errors;
private Status status;
// #region Constructors
public ApiExc... | true |
e4aa01c4a5179f86c44db569ed88fb6c6879566e | Java | mbogoevici/spring-framework | /org.springframework.web/src/main/java/org/springframework/web/method/annotation/ExceptionMethodMapping.java | UTF-8 | 6,660 | 2.171875 | 2 | [] | no_license | /*
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
4f057ad0ba8cfb7cf349868f7544aea0f10eb02d | Java | shiliang/leetcode | /src/main/java/leetcode/sort/TopologicalSort.java | UTF-8 | 1,932 | 3.46875 | 3 | [] | no_license | package leetcode.sort;
import java.util.*;
public class TopologicalSort {
//no.269火星词典
public String alienOrder(String[] words) {
//创建有向图
Map<Character, Set<Character>> map = new HashMap<>();
for (int i = 0; i < words.length - 1; i++) {
for (int j = 0; j < words[i].length... | true |
43eaac06320c20a84a5194ee1e4b8520bc2d1e89 | Java | jameszkw/demo | /src/main/java/com/zkw/designpatterns/behavior/visitor/doubledispatch/East.java | UTF-8 | 235 | 2.3125 | 2 | [] | no_license | package com.zkw.designpatterns.behavior.visitor.doubledispatch;
/**
* ${DESCRIPTION}
*
* @author James
* @create 2017-06-29 上午 10:56
**/
public abstract class East {
public abstract void goEast(West west);
}
| true |
008df47b7d5e1495afa0070745cd41409ac1dc47 | Java | phper666/study | /demo/src/main/java/com/github/phper666/schemaregistry/rest/mapper/UserMapper.java | UTF-8 | 397 | 1.539063 | 2 | [] | no_license | package com.github.phper666.schemaregistry.rest.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.phper666.schemaregistry.rest.entity.User;
import org.springframework.stereotype.Repository;
/**
* @author liyuzhao
* @email 562405704@qq.com
* @date 2020/9/17 2:39 下午
* @software Intel... | true |
716c758c8121e166bfc894d1fdf9ca55631496d4 | Java | italogmm/javaee7course | /ConsultorioOdontologicoEE/ConsultorioOdontologicoEE-ejb/src/java/br/com/devmedia/consultorioee/service/UserService.java | UTF-8 | 2,522 | 2.078125 | 2 | [] | no_license | /*
* Copyright (C) 2015 italo.miranda
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dist... | true |
7a1f96bcca50d28dabbf27ed04e6dbc0851c897e | Java | suye0620/OMICSEQ | /src/main/java/com/omicseq/test/Pausing_IMR90_summary_travel_rpkm.java | UTF-8 | 5,348 | 1.898438 | 2 | [] | no_license | package com.omicseq.test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import j... | true |
70a6b7051a26806351722fe17c840b97730c631d | Java | ningjianguo/Sjccgl | /Sjccgl/src/com/wonders/main/services/TaskService.java | UTF-8 | 1,626 | 2.203125 | 2 | [] | no_license | package com.wonders.main.services;
import java.io.File;
import com.wonders.main.model.TbTask;
public interface TaskService extends BaseService{
/**
* 获取任务信息
* @param pageNum 当前页号
* @param rows 每页总数据条数
* @return json格式的数据
*/
public String getTaskByPageNum(int pageNum, int rows);
/**
* ... | true |
54f79adf7e13777cea7d35994253bf72ad776a5e | Java | sbernard31/leshan | /leshan-core/src/test/java/org/eclipse/leshan/core/node/LwM2MResourceTest.java | UTF-8 | 6,715 | 1.929688 | 2 | [
"EPL-2.0",
"BSD-3-Clause",
"EPL-1.0",
"MPL-1.1",
"LicenseRef-scancode-generic-export-compliance",
"Apache-2.0",
"Apache-1.1",
"CPL-1.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2013-2015 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* and Eclipse Distribution License v1.0... | true |
3afb3feee1e3017bff06b035ec24020dfb8cc07a | Java | zzqzsf/Deluxe-Delivery | /src/main/java/org/lanqiao/service/CustomService.java | UTF-8 | 418 | 1.710938 | 2 | [] | no_license | package org.lanqiao.service;
import org.lanqiao.entity.Custom;
import org.springframework.stereotype.Service;
@Service
public interface CustomService {
int checkTel(String tel);
int insertCustom(Custom custom);
int insertCustom1(String cusTel);
int checkCustom(Custom custom);
int updatePass(String ... | true |
db1347e3c52a3b2c1265e917ab98b9e7c3cebd82 | Java | Mafiti/MyPractice | /src/main/java/design/observer/WeChatService.java | UTF-8 | 1,026 | 3.109375 | 3 | [] | no_license | package design.observer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Created by TAO on 2018/8/7.
*/
public class WeChatService implements Observerable {
private List<Observer> list;
private String message;
public WeChatService(){
list = new ArrayList<Obs... | true |
da0a2bcb0ba665b3503a7df85e9b712c15136711 | Java | shenja88/TMS_HW_Lesson20 | /src/main/java/by/voluevich/model/button/main_menu/GetAddressMenuButton.java | UTF-8 | 435 | 2.25 | 2 | [] | no_license | package by.voluevich.model.button.main_menu;
import by.voluevich.model.button.ActionButton;
import by.voluevich.model.menu.AddressMenuImpl;
public class GetAddressMenuButton implements ActionButton {
@Override
public String name() {
return "Address menu operation.";
}
@Override
public voi... | true |
35b074f6f10331f8a8f34430a12787c164e76011 | Java | hukamchauhan/ATMApiTest | /src/main/java/com/example/demo/jparepositories/AccountTransactionsRepository.java | UTF-8 | 257 | 1.515625 | 2 | [] | no_license | package com.example.demo.jparepositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.model.AccountTransactions;
public interface AccountTransactionsRepository extends JpaRepository<AccountTransactions, Long>{
}
| true |
b096759220b0650ff8b5e4f03414b639c0ae90fd | Java | simpolor/sample-springboot-sql | /jpa/src/main/java/io/simpolor/jpa/model/StudentDto.java | UTF-8 | 6,655 | 2.59375 | 3 | [] | no_license | package io.simpolor.jpa.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.simpolor.jpa.repository.entity.*;
import lombok.*;
import org.springframework.util.CollectionUtils;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.uti... | true |
683356e012910f6788d920d527b7bd127280599c | Java | zhongxingyu/Seer | /Diff-Raw-Data/19/19_c49a2c650b1da07e18718a26dc1732305cc3b5a2/Utils/19_c49a2c650b1da07e18718a26dc1732305cc3b5a2_Utils_t.java | UTF-8 | 19,989 | 2.6875 | 3 | [] | no_license | ////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2005 Oliver Burn
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... | true |
65f86fbfd0a9a0abb3784a4ef10c059e451c5489 | Java | Skynet-Jacopo/Freekick | /app/src/main/java/com/football/freekick/app/BaseActivity.java | UTF-8 | 2,461 | 2.171875 | 2 | [] | no_license | package com.football.freekick.app;
import android.app.Dialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.football.freekick.R;
import com.football.freekick.language.LanguageObservable;
import com.football.freekick.utils.ActyUtil;
import com.football.freeki... | true |
1cc0c47a86dc51340fe64ed95361608cc261f904 | Java | mrvodah/StoryApplication | /app/src/main/java/com/example/vietvan/storyapplication/databases/AssetHelper.java | UTF-8 | 496 | 2.109375 | 2 | [] | no_license | package com.example.vietvan.storyapplication;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
/**
* Created by VietVan on 23/03/2018.
*/
public class AssetHelper extends SQLiteAssetHelper {
public static final String ... | true |
688a3cb9193650e5077b78dafe23a32126c1186e | Java | Isso-Chan/Java-b13 | /src/PART_I_Core/Day18_readingUserInput/copy/userInput_2.java | UTF-8 | 444 | 2.953125 | 3 | [] | no_license | package PART_I_Core.Day18_readingUserInput.copy;
import java.util.Scanner;
public class userInput_2 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.print("Provide a sentence I will repeat it:");
// String str=sc.next(); sadece ilk kelimeyi alir.
... | true |
b39ab15b15d31c76fa9fe20a6885122715d1d6ef | Java | gesellix/dotplot | /org.dotplot.plugin/src/org/dotplot/core/services/IllegalContextException.java | UTF-8 | 612 | 2.3125 | 2 | [] | no_license | /**
*
*/
package org.dotplot.core.services;
/**
* <code>Exception</code> thrown if a <code>Context</code> is illegal.
*
* @author Christian Gerhardt <case42@gmx.net>
*/
public class IllegalContextException extends ServiceException {
/**
* UID for serialisation.
*/
private static final long serialVersion... | true |
75d4d8fc1ea24f7a22bc4d27de0c96242c9061aa | Java | wenxiwang/iAlloy_ | /src/core/edu/utexas/ece/BaseLine.java | UTF-8 | 4,689 | 2.265625 | 2 | [] | no_license | /*
* This file is part of iAlloy. iAlloy is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* iAlloy is distributed in the hope ... | true |
4bc3812154df0e97648ecdc5698f7b5633691bb0 | Java | sparic/Goor-mrobot | /goor-server/src/main/java/cn/muye/area/map/controller/MapZipController.java | UTF-8 | 2,643 | 1.984375 | 2 | [] | no_license | package cn.muye.area.map.controller;
import cn.mrobot.bean.area.map.MapZip;
import cn.mrobot.bean.area.point.MapPoint;
import cn.mrobot.utils.WhereRequest;
import cn.muye.area.map.service.MapZipService;
import cn.muye.base.bean.AjaxResult;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;... | true |
d8cb57f1c5b078123859c812a5d9b334218663ae | Java | Ary4/Hospital-Management-DBMS | /src/main/java/com/arya/model/InvTrans.java | UTF-8 | 1,022 | 2.0625 | 2 | [] | no_license | package com.arya.model;
public class InvTrans {
int prodid;
String staffid;
int quantity;
String comments;
String datntime;
public int getProdid() {
return prodid;
}
public void setProdid(int prodid) {
this.prodid = prodid;
}
public String getStaffid() {
return staffid;
}
public void setStaffid(Strin... | true |
613618d7f5b1d5f420021ad1cfb000a6e6e61c23 | Java | jiyoung4061/java-study | /dataStructureWithJava/src/main/java/dataStructure_List/TestOfCircularLinkedList.java | UHC | 698 | 3.71875 | 4 | [] | no_license | package dataStructure_List;
import java.util.Iterator;
public class TestOfCircularLinkedList {
public static void main(String[] args) {
// TODO Auto-generated method stub
List<Integer> list = new CircularLinkedList<Integer>();
list.add(10);
list.add(20);
list.add(30);
list.add(40);
list.add(50);
// ... | true |
a4f1ae6582b143928d71f3e45f7736e3628e38c2 | Java | apache/flink | /flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/sink/writer/AsyncSinkWriterStateSerializer.java | UTF-8 | 3,791 | 2.140625 | 2 | [
"BSD-3-Clause",
"OFL-1.1",
"ISC",
"MIT",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
a3f11c0cdc1e934b6728c308abf5dae645ec24de | Java | nabin-kuldeep-jena/iprotech | /deft/server/deft-server-common/src/main/java/com/asjngroup/deft/common/propertydfn/generate/DeftPropertyObjectGenerator.java | UTF-8 | 10,211 | 2.0625 | 2 | [] | no_license | package com.asjngroup.deft.common.propertydfn.generate;
/**
* @author nabin.jena
*
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map... | true |
0d6be6064743834b414c3b722c1bdb4d644805a8 | Java | 27Saidou/cours_python | /Instruction_Continue.java | UTF-8 | 459 | 3.265625 | 3 | [] | no_license | public class Instruction_Continue {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 3) {
System.out.println("sortir de la boucle : " + i);
while (j <= 3) {
if (j == 2) {
j++;
continue;
... | true |
ccc32b1540e5bd8ef5e272fc7aa705bbf0163769 | Java | VaibhavD143/neuroLab | /src/main/java/com/example/neuro/beans/Variable.java | UTF-8 | 1,036 | 2.515625 | 3 | [] | no_license | package com.example.neuro.beans;
import com.fasterxml.jackson.annotation.JsonRootName;
import javax.persistence.*;
@Entity
@JsonRootName("Variable")
public class Variable {
public Variable() {
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(unique = true, nullable = false)
... | true |
41afa2a192b77d14ce4d6f1c6ac3ba9b6a40e111 | Java | jmkao/rfglow | /android/BladeBLEWear/app/src/main/java/pw/rfg/bladeblewear/ble/BleMaster.java | UTF-8 | 7,370 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package pw.rfg.bladeblewear.ble;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.os.Handler;
import a... | true |
4773c9ac3b50f50fb8024cadc1fe33a474a666ef | Java | alexcardona19/TallerPOO-Punto3 | /src/com/alexander/dominio/Torneo.java | UTF-8 | 878 | 2.984375 | 3 | [] | no_license | package com.alexander.dominio;
import java.util.*;
public class Torneo {
private String Nombre = "Torneo FoxSport";
private ArrayList<Equipo> Equipos = new ArrayList<Equipo>();
private ArrayList<Fecha> Fechas = new ArrayList<Fecha>();
public Torneo(ArrayList<Equipo> equipos, ArrayList<Fecha> fechas) {
this.E... | true |
e35d356b8b23afe5e2b884c3b25112375e101f0e | Java | Bhanditz/ImageHarvester | /media-storage-client/src/test/java/eu/europeana/harvester/db/filesystem/FileSystemMediaStorageClientImplTest.java | UTF-8 | 1,918 | 2.359375 | 2 | [] | no_license | package eu.europeana.harvester.db.filesystem;
import eu.europeana.harvester.db.MediaStorageClient;
import eu.europeana.harvester.domain.MediaFile;
import org.apache.commons.io.FileUtils;
import org.joda.time.DateTime;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
... | true |
66160e40ac3e22a8cc42a9ffee4913fbe12656ba | Java | Yuvv/LeetCode | /0701-0800/0790-domino-and-tromino-tiling.java | UTF-8 | 1,806 | 3.296875 | 3 | [] | no_license | import java.util.Map;
import java.util.HashMap;
import java.util.Map;
import java.util.HashMap;
/*
* 0790-domino-and-tromino-tiling.java
*
* @author Yuvv <yuvv_th@outlook.com>
* @date 2021/12/10
*/
public class Solution {
private Map<Integer, Integer> fCacheMap = new HashMap<>();
private Map<Integer, Int... | true |
12bfc6065722417c63902cda31086466049905ba | Java | Amrkady/SpringBnzenaProject | /src/com/beans/GasBean.java | WINDOWS-1256 | 3,111 | 2.078125 | 2 | [] | no_license | package com.beans;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import ja... | true |