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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6f22ef02d7b7ad9fae09e0fdfe7c9a1874eb55ba | Java | nibnait/algorithms | /src/main/test/cc/tianbin/demo/java/反射/ReflectTest.java | UTF-8 | 1,609 | 3.046875 | 3 | [] | no_license | package cc.tianbin.demo.java.反射;
import junit.framework.TestCase;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.junit.Test;
import java.lang.reflect.Field;
/*
*/
public class ReflectTest extends TestCase {
@Data
@NoArgsConstructor
@AllArgsConstructor... | true |
def390d5bbf185244da093a5da1e221bf63a0512 | Java | Beyondzhangxin/emergency_platform | /src/main/java/com/aiidc/sps/ep/mapper/BoundMonitorDataMapper.java | UTF-8 | 429 | 1.835938 | 2 | [] | no_license | package com.aiidc.sps.ep.mapper;
import com.aiidc.sps.ep.entity.BoundMonitorData;
public interface BoundMonitorDataMapper {
int deleteByPrimaryKey(String id);
int insert(BoundMonitorData record);
int insertSelective(BoundMonitorData record);
BoundMonitorData selectByPrimaryKey(String id);
int ... | true |
bf2d231812750e4266bbbff0b62491bff2ba0620 | Java | dishwalla/Spring-core-HW2 | /src/main/java/ua/epam/spring/hometask/Config.java | UTF-8 | 2,759 | 2.21875 | 2 | [] | no_license | package ua.epam.spring.hometask;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.*;
import org... | true |
ce00647db1fa4f554d4ff345a64c4123283bd2d0 | Java | nicoleljc1227/practiceSets | /src/algorithm/struct/BinTree/MaxTree.java | UTF-8 | 1,715 | 3.421875 | 3 | [] | no_license | package algorithm.struct.BinTree;
/**
* Created by xl on 2017/7/31.
* 构造MaxTree 牛客在线编程
*/
public class MaxTree {
public static void main(String[] args) {
int[] arr = {2049,933,1444,1695,96,1025,533};
int[] res = buildMaxTree(arr,7);
System.out.println(res);
}
public static int[]... | true |
5d8e275cfc1fc40b89995b8ea1a9a4e0a3ef4fd3 | Java | rafareas/university_projects | /dataManipulation_project/project_java/model/business/MapBusiness.java | UTF-8 | 1,223 | 2.921875 | 3 | [] | no_license | package project_java.model.business;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class MapBusiness implements Serializable, MapBusInterface{
private Map<String,Business> MapBus;
public MapBusiness(){
this.MapBus = new HashMap<>();
... | true |
35993ac0f74754388e9705fb9d7136352eff66a4 | Java | Ramon0898/HeadsUpDominicano | /app/src/main/java/com/example/ramon/headsupdominicano/MainActivity.java | UTF-8 | 2,531 | 2.265625 | 2 | [] | no_license | package com.example.ramon.headsupdominicano;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity... | true |
3fee1917266bd923bd133196cc67f32b9ef1423d | Java | ouakiliam/Bank-account-SG | /src/test/java/com/sg/bankaccount/domain/operation/WithdrawOperationTest.java | UTF-8 | 754 | 2.703125 | 3 | [] | no_license | package com.sg.bankaccount.domain.operation;
import org.junit.Test;
import java.time.LocalDateTime;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class WithdrawOperationTest {
@Test(expected = IllegalArgumentException.class)
public void should_throw_exception... | true |
2434a6181e843daf3b3c23cdfb7b77a724ff28bf | Java | awilliamson/DaFlight | /src/main/java/me/dags/daflight/util/Config.java | UTF-8 | 1,418 | 2.234375 | 2 | [] | no_license | package me.dags.daflight.util;
import com.google.common.base.Optional;
import java.io.File;
/**
* @author dags_ <dags@dags.me>
*/
public class Config {
private transient File saveFile;
public float flySpeed = 1F;
public float sprintSpeed = 1F;
public float strafeModifier = 1.0F;
public float... | true |
f852dbea1661cdb6a5a47f4aeab2c90ea68b475a | Java | pabi2/pb2_pabiweb | /nstda.repo/src/pb/repo/admin/model/MainWkfConfigPurchaseUnitModel.java | UTF-8 | 1,012 | 1.921875 | 2 | [] | no_license | package pb.repo.admin.model;
public class MainWkfConfigPurchaseUnitModel {
Long id;
String description;
String name;
Integer ordId;
Integer doctypeId;
private Long totalRowCount;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String... | true |
c3adb606e4bf4714bc457291ab4cf5435919e855 | Java | okyereadugyamfi/jpos-simple-card | /MBanking/src/com/hqsolution/hqserver/client/activity/AddBankAccountActivity.java | UTF-8 | 825 | 2.078125 | 2 | [] | no_license | package com.hqsolution.hqserver.client.activity;
import com.hqsolution.hqserver.client.listener.OnClickAddBankAccount;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
public class AddBankAccountActivity extends Activity{
private EditText... | true |
2df90170efbcfe868bc8d8c0f3ab73e5de4e08da | Java | mateusragazzi/Comp-Distribuida | /src/main/java/com/domain/response/HttpResponseDTO.java | UTF-8 | 145 | 1.726563 | 2 | [] | no_license | package com.domain.response;
public class HttpResponseDTO {
public int statusCode;
public String contentType;
public String body;
}
| true |
35744d7c387b590c48ecb8483ac431c11b7ded81 | Java | ufjf-dcc193/2019-1-dcc193-trb3-trb3-marcosaquino-andremagno | /src/main/java/trb3/dcc193/trb3/ControllerEtiquetas.java | UTF-8 | 2,512 | 2.234375 | 2 | [] | no_license | package trb3.dcc193.trb3;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web... | true |
ff9d7fface7c623e85744fc4a1dbf2f1ede1d4b5 | Java | cguegi/training | /mapred/ipcount-cascading/src/main/java/ch/ymc/cascading/Driver.java | UTF-8 | 2,025 | 2.171875 | 2 | [] | no_license | package ch.ymc.cascading;
import java.util.Properties;
import cascading.flow.Flow;
import cascading.flow.FlowConnector;
import cascading.flow.hadoop.HadoopFlowConnector;
import cascading.operation.aggregator.Count;
import cascading.operation.regex.RegexParser;
import cascading.pipe.Each;
import cascading.pipe.Every;
... | true |
f13e5ba20f66aab034d8d172e1f46fce38768782 | Java | sskelkar/mis-employee-service | /src/main/java/com/maxxton/mis/employee/MisEmployeeServiceApplication.java | UTF-8 | 352 | 1.578125 | 2 | [] | no_license | package com.maxxton.mis.employee;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MisEmployeeServiceApplication {
public static void main(String[] args) {
SpringApplication.run(MisEmployeeServiceAp... | true |
c29f8d4b6426cb6edc1c58a9c317dd7c448bcf43 | Java | mohadian/quiver | /quiver/src/main/java/com/zagros/quiver/rest/core/parser/AbstractXmlResponseParser.java | UTF-8 | 1,570 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive |
package com.zagros.quiver.rest.core.parser;
import com.android.volley.NetworkResponse;
import com.android.volley.toolbox.HttpHeaderParser;
import java.io.UnsupportedEncodingException;
/**
* Default implemetation for Json parser
*/
public class AbstractXmlResponseParser extends RestResponseParser<String, String> {... | true |
f73eda582f78aeee80da2d6d42ef93fdd448c923 | Java | chloesyy/ip | /src/main/java/duke/Storage.java | UTF-8 | 3,619 | 3.375 | 3 | [] | no_license | package duke;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
import static duke.command.AddCommand.addDeadline;
import static duke.command.AddCommand.addEvent;
import static duke.command.AddCommand.addTodo;
/**
* Represents the file for data to be loaded from a... | true |
1e05967022078f653f69bd182aadb50f35a5f657 | Java | Yogakani/QrCode | /src/main/java/com/yoga/qrCode/QrCodeApplication.java | UTF-8 | 1,106 | 1.914063 | 2 | [] | no_license | package com.yoga.qrCode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.http.ResponseEntity;
import org.springframe... | true |
09065a3dabe65a83e370f1649ca96dd70d4b714a | Java | chetank/PowerBoot | /src/com/powerboot/dao/HikesListIDao.java | UTF-8 | 459 | 1.6875 | 2 | [] | no_license | package com.powerboot.dao;
import java.util.List;
import javax.sql.DataSource;
import com.powerboot.model.HikeListModel;
public interface HikesListIDao {
void setDataSource(DataSource ds);
// void create(String name, String lat, String lon);
// List<HikesListModel> select(String name, String lat,... | true |
4cc741f9c26830db76ead68fef4dd230fcfe531c | Java | Aldiyazov/Transpire | /samples/java/sampleExtends.java | UTF-8 | 310 | 1.726563 | 2 | [
"MIT"
] | permissive | 公開 設計図 sampleExtends 継承 SomeParent {
公開 静的 無 開始(文字列 引数[]){
親に連絡(引数);
整数 カウント = 10;
整数 合計 = 0;
各(整数 i = 0; i < カウント; i++ ){
合計 += i;
}
システム.出力.書き込む("Sum of 10: " + 合計);
}
}
| true |
a5118131ba012895fbc1a19712c97c1438a7da40 | Java | mexicochief/Java_TestTask | /src/Program/Sort/MergeSortStr.java | UTF-8 | 7,817 | 3.484375 | 3 | [] | no_license | package Program.Sort;
import Program.File.Upload;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class MergeSortStr extends MergeSort {
private Map<Integer,String> currentElmStr = new HashMap<>(); // здесь key - номер файла, value - значение строки
public MergeSortStr(U... | true |
c12aef0cc0aebda9172057bae37e76f8b18615b4 | Java | aws/aws-sdk-java | /aws-java-sdk-backupstorage/src/main/java/com/amazonaws/services/backupstorage/model/transform/ListObjectsRequestMarshaller.java | UTF-8 | 4,075 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
cffd37f0842846f5f593ecb29ca6747ce9396dbe | Java | aghazy/MIPS-Simulation | /src/PC.java | UTF-8 | 809 | 3.0625 | 3 | [] | no_license |
public class PC {
private int[] address;
public PC(int[] address) {
this.address = address;
}
public PC() {
address = new int[32];
}
public int[] getAddress() {
return address;
}
public void setAddress(int[] address) {
this.address = address;
}
public void increment(){
int decX = Integer.pars... | true |
87d664a88046bb3d1206324be427f92edeff76ce | Java | jinwoongBang/Jobstory | /jobstory/src/main/java/kr/co/jobstory/mypage/user/service/UserApplyService.java | UTF-8 | 290 | 1.664063 | 2 | [] | no_license | package kr.co.jobstory.mypage.user.service;
import java.util.List;
import java.util.Map;
import kr.co.jobstory.repository.domain.Apply;
import kr.co.jobstory.repository.domain.Scrap;
public interface UserApplyService {
List<Apply> apply(int memberNo);
void applyDelete(int applyNo);
}
| true |
e30c159aeac8d93f91d02aafdffc908a06c2d5c3 | Java | emanoel-bruno/Compiler-CP | /compiler/src/main/java/tokens/FloatConstantToken.java | UTF-8 | 402 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package tokens;
import compiler.Token;
import compiler.Tag;
public class FloatConstantToken extends Token {
private final float value;
public FloatConstantToken(float value) {
super(Tag.FLOAT_CONSTANT);
this.value = value;
}
public float getValue() {
return this.value;
}
... | true |
4d190616b8a2dabfddb16f967ce7c7cfa6d6fb75 | Java | vargose/BibleAndroidApp | /app/src/main/java/com/example/mitchell/bible/injection/ServiceModule.java | UTF-8 | 2,055 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.mitchell.bible.injection;
import android.support.annotation.NonNull;
import com.example.mitchell.bible.service.AuthenticationInterceptor;
import com.example.mitchell.bible.service.VersionService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import dagger.Module;
import dagger.... | true |
4ff26da0f6a2dffe420254890e529002d2c30dee | Java | msdsunny/CodeSignal-Solutions | /Arcade/Intro/Java/LineEnconding.java | UTF-8 | 690 | 3.140625 | 3 | [] | no_license | public final class LineEnconding {
String lineEncoding(String s) {
String str = "", res = "";
ArrayList<String> list = new ArrayList();
for(int i = 0; i < s.length(); i++) {
if(i == 0) { str += s.charAt(i)+""; }
else if(s.charAt(i) == s.charAt(i - 1)) { str += s.charAt(i)+""; }
... | true |
474e2744ea4d7dd25d074ea834820f515f7a51ce | Java | romulocia/Mentorama_JAVA_do_ZERO | /src/module07/TestaConta.java | UTF-8 | 1,124 | 3.40625 | 3 | [] | no_license | package module07;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class TestaConta {
public static void main(String[] args) {
Calendar data = Calendar.getInstance();
SimpleDateFormat formatarData = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Conta contas[] = new Cont... | true |
1f3100e3aad05944bd9e3abff5e0d1e9cf4fcab2 | Java | qeqewewr/Logistics-Website | /src/main/java/fxc/entity/Goodsprice.java | UTF-8 | 1,556 | 2.203125 | 2 | [] | no_license | package fxc.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persis... | true |
fbe6537ebe38d8abcaf75b788414d96af7e88d8b | Java | electricflux/sdapp_server | /src/com/sdapp/server/RegisterServlet.java | UTF-8 | 3,923 | 2.78125 | 3 | [] | no_license | package com.sdapp.server;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.sdapp.domain.LicensePlateMsg;
import com.sdapp.domain... | true |
24748b9b12d86ee71a4a7f757ff8396d9d284407 | Java | vinitasher/Developer | /CrackingCoding/src/arrays/RollTheDice.java | UTF-8 | 847 | 3.34375 | 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 arrays;
/**
*
* @author vasher
* http://www.geeksforgeeks.org/roll-characters-string/
*
*/
public class RollTheDice {
... | true |
fc08e5cb61e63647f60312b055edd00bf99ebaff | Java | androidck/LuckyDeer | /app/src/main/java/com/lucky/deer/find/business/fragment/RedEnvelopesDetailFragment.java | UTF-8 | 14,624 | 1.820313 | 2 | [] | no_license | package com.lucky.deer.find.business.fragment;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DividerItemDecoration;
import android.support... | true |
836005e5fa3fba1a89d9bb39f40409bcc3404ae6 | Java | MavonCmc/OA | /sys-oa/service-admin/src/main/java/cn/yj/admin/frame/shiro/reaml/ShiroRealm.java | UTF-8 | 4,368 | 2.25 | 2 | [] | no_license | package cn.yj.admin.frame.shiro.reaml;
import cn.yj.admin.ConsVal;
import cn.yj.admin.entity.po.User;
import cn.yj.admin.frame.shiro.ShiroCredentialsMatcher;
import cn.yj.admin.service.IPermissionService;
import cn.yj.admin.service.IRoleService;
import cn.yj.admin.service.LoginService;
import cn.yj.common.LoginUser;
i... | true |
c06d9710cb47c05bc111f6dd6eaf0bc9cd47256e | Java | zhao-qc/zstack | /storage/src/main/java/org/zstack/storage/volume/DefaultVolumeAttachedJudger.java | UTF-8 | 648 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.storage.volume;
import org.zstack.header.volume.VolumeAttachedJudger;
import org.zstack.header.volume.VolumeInventory;
import java.util.Collections;
import java.util.List;
/**
* Created by MaJin on 2019/5/30.
*/
public class DefaultVolumeAttachedJudger implements VolumeAttachedJudger {
@Over... | true |
c6c837c59f9e7acc1d2bca70ac7581d7ea656e64 | Java | VijayEluri/ProgrammingPearls | /src/Interleaving.java | UTF-8 | 2,571 | 4.09375 | 4 | [] | no_license | /**
* Given two strings, compute all its interleavings. e.g For "AB" and "CD" we
* have: "ABCD" "ACBD" "ACDB" "CABD" "CDAB" "CADB"
*
* Working:
* compute("AB","CD")
* A + compute(B,CD) ... | true |
2b17fe246b20e9a3349b0e1d80569509dc0b72dc | Java | VitaliiBashta/Trunk | /java/l2trunk/gameserver/network/serverpackets/ObserverStart.java | UTF-8 | 484 | 2.015625 | 2 | [] | no_license | package l2trunk.gameserver.network.serverpackets;
import l2trunk.gameserver.utils.Location;
public class ObserverStart extends L2GameServerPacket {
// ddSS
private final Location _loc;
public ObserverStart(Location loc) {
_loc = loc;
}
@Override
protected final void writeImpl() {
... | true |
f5c156762282682bee7322c39729d70945fa9cde | Java | zzcwzhang/catchfishServer | /java/com/fuyun/server/db/dto/LoadMailBack.java | UTF-8 | 2,054 | 2.09375 | 2 | [] | no_license | package com.fuyun.server.db.dto;
import java.util.Date;
public class LoadMailBack {
private int result;
private String sender;
private Date sendTime;
private String title;
private String content;
private int atmType;
private int atmCount;
private int isReceivced;
public LoadMailBack() {
super();
}
... | true |
903dd491cb04842e167dead6869c213b56433a7e | Java | Ivanich85/DatabaseControllerWithJDBC | /src/main/java/consoleview/TableViewer.java | UTF-8 | 2,351 | 3.234375 | 3 | [] | no_license | package consoleview;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
/**
* Created by ivand on 05.04.2018.
*/
public class TableViewer {
//Ширина столбцов в таблице (для форматирования)
private static final String SMALL_STRING_WIDTH = " %-10s ";
private stati... | true |
8c1fb0e76de8e31ce05762e2ce1a1ee15dd2a84c | Java | goyalshubhangi/practicals_3_year | /It/jsp_javascript/chocotag.java | UTF-8 | 544 | 2.328125 | 2 | [
"MIT"
] | permissive | package P6;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
public class chocotag extends SimpleTagSupport {
private String texture;
chocobean chocoBean = new chocobean();
public void setTexture(String texture){
this.texture = texture;
chocoBean.setTexture(te... | true |
1dcb0263253d0b7e8dfab47ebdaa51911ab98ce8 | Java | Zebrap/WhatToDo | /app/src/main/java/whattodo/whattodo/MainActivity.java | UTF-8 | 7,064 | 1.898438 | 2 | [] | no_license | package whattodo.whattodo;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.wifi.hotspot2.pps.Credential;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
i... | true |
d73867069308dffca505d7b757bf3662704e36c5 | Java | Soben713/AbdSQL | /src/main/java/db/fieldType/IntFieldType.java | UTF-8 | 376 | 2.46875 | 2 | [] | no_license | package db.fieldType;
import db.Cell;
/**
* Created by user on 26/01/16 AD.
*/
public class IntFieldType extends FieldType {
@Override
public Cell.CellType[] getCellTypes() {
Cell.CellType[] cellTypes = {Cell.CellType.INTEGER, Cell.CellType.NULL};
return cellTypes;
}
@Override
p... | true |
e8cfefe1e7b77b6839fbb548a255f72cbbbc1219 | Java | WKrC/ssmtest | /src/main/java/com/wkr/service/Impl/ReaderServiceImpl.java | UTF-8 | 1,032 | 2.125 | 2 | [] | no_license | package com.wkr.service.Impl;
import com.wkr.bean.ReaderBean;
import com.wkr.dao.ReaderDao;
import com.wkr.service.ReaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ReaderServiceImpl implements Rea... | true |
e36db7bce234b2b0a3e1319d18a6417502504a19 | Java | RamyElkest/SEPR | /src/controller/executor/ChangeNameExecutor.java | UTF-8 | 3,329 | 3.46875 | 3 | [] | no_license | package controller.executor;
import controller.parser.CommandType;
import model.gameEngine.GameEngineInterface;
import model.gameEngine.ExecutorEvent;
import model.world.Player;
/**
* Handles the NAME command. The NameExecutor asks the user for their name
* and changes the players name to the user inp... | true |
a955e53ee3f41d5dc55cd07b8030a38398f522ce | Java | nbahije/Manage-contacts-with-Spring-Boot-Data-MVC-Security-Thymeleaf | /src/main/java/com/example/dao/ContactRepository.java | UTF-8 | 385 | 1.851563 | 2 | [] | no_license | package com.example.dao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.entities.Contact;
public interface ContactRepository extends JpaRepository<Contact, Long> {
public Pag... | true |
b5f6a3d9a4899ae703c1d5e11a8aa72a8213d488 | Java | carllindiii/378-lab2 | /PicnicDefense/WinningScreen.java | UTF-8 | 550 | 2.828125 | 3 | [] | no_license | import greenfoot.*;
/**
* Write a description of class WinningScreen here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class WinningScreen extends Background
{
public WinningScreen() {
setImage(new GreenfootImage("WinningScreen.png"));
}
/**
* Act... | true |
7456df1a47ed4acf0ca6a5c300ad804f33d495f3 | Java | imran1007/3BIN | /I314C_Design_Patterns/Revision/Seance10_IPLCommander/src/remote/HTTPUtils.java | UTF-8 | 5,576 | 2.84375 | 3 | [] | no_license | package remote;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.uti... | true |
1bf1d963b11a4c1b29129810ad115e9164c6cee7 | Java | kKarola1999/eights_two | /src/Game.java | UTF-8 | 13,000 | 3.609375 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
import java.util.Random;
import java.util.InputMismatchException;
public class Game {
/**
* Enum type to represent the game status
*/
public enum Status {CONTINUE, WON, LOST, TIE}
public static void main(String[] args) {
// Create t... | true |
9857f9fa91e39071eeac50137a134e5c5de45509 | Java | ggslove/siren0413_Algorithms | /src/Decimal.java | UTF-8 | 888 | 3.375 | 3 | [] | no_license | import java.util.*;
public class Decimal {
public static void main(String[] args) {
System.out.println(fractionToDecimal(1, 333));
}
public static String fractionToDecimal(int numerator, int denominator) {
Map<Integer, Integer> map = new HashMap<>();
StringBuilder sb = new StringBuilder();
sb.append(numera... | true |
0fee40c0160a5c5b0bf64dec65844f7dfd86954b | Java | xqgdmg/MyAudioRecorder | /app/src/main/java/com/example/qhsj/myaudiorecorder/MainActivity.java | UTF-8 | 2,797 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.qhsj.myaudiorecorder;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;
import android.widget.Toast;
import com.example.qhsj... | true |
0921916402acfb0552c1f983d4ac9d610460d44c | Java | willshijan/Proyectos | /NinjaStoreAutomatizacion-master/src/main/java/utils/Country.java | UTF-8 | 209 | 2.5 | 2 | [] | no_license | package utils;
public enum Country {
ESTADOS_UNIDOS("United States");
private String country;
Country(String country){
this.country = country;
}
public String country() {
return country;
}
}
| true |
0301d6b11eee683b9dbbfbf34d7cadd45049fe91 | Java | prayatna-jain/ninjasparrow | /src/test/java/com/ninjasparrow/app/domain/FormSubmissionElementTest.java | UTF-8 | 999 | 2.15625 | 2 | [] | no_license | package com.ninjasparrow.app.domain;
import static org.assertj.core.api.Assertions.assertThat;
import com.ninjasparrow.app.web.rest.TestUtil;
import java.util.UUID;
import org.junit.jupiter.api.Test;
class FormSubmissionElementTest {
@Test
void equalsVerifier() throws Exception {
TestUtil.equalsVeri... | true |
a09a538b36329c4ef694a15ab3e8a025c4a1d1ed | Java | thbl088/pooProject1 | /SpaceandPens/src/Modeles/Player.java | UTF-8 | 8,047 | 3.25 | 3 | [] | no_license | package Modeles;
import java.util.HashMap;
public class Player extends Character {
private final HashMap<String, Item> INVENTORY;
private int healthPotion = 0;
private int attackPotion = 0;
private int defensePotion = 0;
private int critPotion = 0;
private Map currentLocation ;
private Armor armor ;
private ... | true |
2401e8a30141943f9a992fe9937256a2902699e9 | Java | OnMyHorizon/awayFromSchool-Unit-13- | /src/Unit16/FancySnowFlake.java | UTF-8 | 2,071 | 3.34375 | 3 | [] | no_license | package Unit16;
//(c) A+ Computer Science
//www.apluscompsci.com
//Name -
import java.awt.Color;
import java.awt.*;
import java.awt.Graphics;
import java.awt.Polygon;
//extend the AbstractShape class to make a FancySnowFlake class
public class FancySnowFlake extends AbstractShape
{
public FancySnowFlake... | true |
263335a4d75c25a061d6987fcc50b4fb4e43ee62 | Java | Vipra7/Assignments | /control statement/in class/src/afterdecimal.java | UTF-8 | 555 | 3.796875 | 4 | [] | no_license | import java.util.*;
public class afterdecimal {
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
System.out.print(" Enter 1st number : ");
double n1 = input.nextDouble();
System.out.print("\n Enter 2nd number : ");
double n2 = input.nextDo... | true |
0231f8b0f32132c2a8adbb905c844f8075634b02 | Java | hungitleadpro/gcoin-demo | /src/main/java/com/feature/gcoin/dto/reponse/TransactionLogReponse.java | UTF-8 | 760 | 1.898438 | 2 | [] | no_license | package com.feature.gcoin.dto.reponse;
import com.feature.gcoin.dto.TransactionLogDTO;
import java.util.List;
public class TransactionLogReponse {
private List<TransactionLogDTO> voteTransactionLog;
private List<TransactionLogDTO> coinTransactionLog;
public List<TransactionLogDTO> getVoteTransactionLog(... | true |
55dd38196075be32bacb81ef05fb872bfdd43746 | Java | TilStehle/Cross-Platform-Traceability | /src/preferences/SettingsPropertyProvider.java | UTF-8 | 3,856 | 2.375 | 2 | [
"MIT"
] | permissive | package preferences;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.options.ShowSettingsUtil;
import com.intellij.openapi.ui.Messages;
/**
* Created by Gerrit Greiert on 05.12.16.
*/
public class SettingsPropertyProvider {
public static final String J2SWIFT_TARGET_PATH = "J2Swift... | true |
9f9759ed524e42a762c67cd6270f9da91b964bd0 | Java | JonasXPX/Mito | /src/me/jonasxpx/mito/Mito.java | ISO-8859-1 | 4,218 | 2.03125 | 2 | [] | no_license | package me.jonasxpx.mito;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.Pot... | true |
36162084d2f5fd7fb3f61f2f70e444424359ac4e | Java | 85479676/spring-boot-api-project-seed | /src/main/java/com/company/project/model/OauAccessToken.java | UTF-8 | 4,823 | 1.9375 | 2 | [] | no_license | package com.company.project.model;
import java.util.Date;
import javax.persistence.*;
@Table(name = "OAU_ACCESS_TOKEN")
public class OauAccessToken {
@Id
@Column(name = "AIID")
private Long aiid;
@Column(name = "DATIME_SYS")
private Date datimeSys;
@Column(name = "DATIME_UNIX")
private L... | true |
7c5947d4f999b3f3b6a6eb53d25cfbbdd2248189 | Java | Nhat-Tao-0906/importExportJava | /import_export_excel/src/main/java/com/example/import_export_excel/model/request/UserRequest.java | UTF-8 | 268 | 1.828125 | 2 | [] | no_license | package com.example.import_export_excel.model.request;
import java.util.Date;
import lombok.Data;
@Data
public class UserRequest {
private String name;
private int age;
private Date birth_day;
private String phone;
private String address;
}
| true |
b362d4ba0a2649e7a01593af572c208f723def75 | Java | tsuzcx/qq_apk | /com.tencent.qqlite/classes.jar/euj.java | UTF-8 | 676 | 1.632813 | 2 | [] | no_license | import android.graphics.drawable.Drawable;
import com.tencent.mobileqq.util.ImageCreator;
import com.tencent.mobileqq.util.ImageWorker;
public class euj
implements ImageCreator
{
String jdField_a_of_type_JavaLangString;
public euj(ImageWorker paramImageWorker, String paramString)
{
this.jdFie... | true |
8b7a590cf815d2ae88225ced1f267f41b8e9abb5 | Java | thiagohrcosta/Criptograia-Julio-Cesar-Codenation | /src/main/java/challenge/CriptografiaCesariana.java | UTF-8 | 1,587 | 3.375 | 3 | [] | no_license | package challenge;
import java.util.ArrayList;
import java.util.List;
public class CriptografiaCesariana implements Criptografia {
public String mainCode(String texto) {
String setLowerCase = texto.toLowerCase();
return setLowerCase;
}
public String checkTexto(String texto) {
if ... | true |
edeec1572ba277bdc21a0be2ffd6b4c95aa9f1e9 | Java | SimonePan/java-demo | /src/main/java/com/example/demo/thread/unsafe/NoVisibility.java | UTF-8 | 988 | 3.28125 | 3 | [] | no_license | package com.example.demo.thread.unsafe;
import lombok.extern.slf4j.Slf4j;
/**
* @description: 在没有同步的情况下共享变量(X)
* @author: Grace.Pan
* @create: 2019-12-18 20:08
*/
@Slf4j
public class NoVisibility {
private static boolean ready;
private static int number;
private static class ReaderThread extends Thre... | true |
478e22ac9ea405e7c606d60193876271b0991edc | Java | ErminDZ/booking | /src/main/java/business/services/AddNewBookingFacade.java | UTF-8 | 765 | 2.453125 | 2 | [] | no_license | package business.services;
import business.entities.Booking;
import business.exceptions.UserException;
import business.persistence.BookingMapper;
import business.persistence.Database;
import java.time.LocalDate;
import java.util.Date;
public class AddNewBookingFacade
{
private BookingMapper bookingMapper;
p... | true |
6b27a731647dff5d040386c1d2cbce58be042d07 | Java | NebukadNesar/simurg | /src/com/example/helper/AlertDialogManager.java | UTF-8 | 1,670 | 2.90625 | 3 | [] | no_license | package com.example.helper;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
public class AlertDialogManager {
/**
* Function to display simple Alert Dialog
*
* @param context
* - application context
* @param title
* - alert di... | true |
0d74a568f549a79382c6b8430329bf28e3f03a4c | Java | hut8/fractus | /src/fractus/crypto/PublicKeyDirectory.java | UTF-8 | 2,058 | 2.609375 | 3 | [] | no_license | package fractus.crypto;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.bouncycastle.jce.interface... | true |
2d442c8127076521faa0607eada91d6ef8e1844b | Java | lanjie911/gcprofile | /src/main/java/cn/bj/brook/algorithm/sort/BubbleSort.java | UTF-8 | 1,683 | 4.15625 | 4 | [] | no_license | package cn.bj.brook.algorithm.sort;
/**
* 01-冒泡排序
* 复杂度O(n^2)
* 这是一个把元素不停向右推的过程
* 4 3 2 1
* -> 3 4 2 1
* -> 3 2 4 1
* -> 3 2 1 4
* ----------------第一轮
* -> 2 3 1 4
* -> 2 1 3 4
* ----------------第二轮
* -> 1 2 3 4
* ----------------第三轮
* 所以总循环次数最差就是n-1轮,每次内部循环都是从0 开始
* <p>
* 其反向算法请参考
*
* @see cn.bj.bro... | true |
bc25f64b89c60ca4591173a3f32abcd544177446 | Java | asarnow/sfsuxmas | /src/com/sfsu/xmas/filter/SAddProbeNote.java | UTF-8 | 2,999 | 2.234375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sfsu.xmas.filter;
import com.sfsu.xmas.servlet.ServletUtil;
import com.sfsu.xmas.session.SessionAttributeManager;
import com.sfsu.xmas.session.SessionAttributes;
import com.sfsu.xmas.session.YearLongCookie;
... | true |
3c8ecf59c0e19124142990a3f544d4e7bb177d1c | Java | jamiegrech/RS07v2 | /src/org/harrynoob/hbot/callbacks/PaintCallback.java | UTF-8 | 383 | 2.484375 | 2 | [] | no_license | package org.harrynoob.hbot.callbacks;
import java.awt.*;
/**
* Do not use this without permission.
* User: harrynoob
* Date: 24-2-13
* Time: 11:28
*/
public class PaintCallback {
public static void callback(Graphics g) {
g.setFont(new Font("Arial", Font.PLAIN, 20));
g.setColor(Color.black);
... | true |
4ea83bc1e45c3997ec6b0bf42558ec390c31fb14 | Java | UltimateJupiter/LeetCode-Java | /reverseIntegers.java | UTF-8 | 397 | 3.046875 | 3 | [] | no_license | class Solution {
public int reverse(int x) {
boolean revert = x < 0;
if (revert) x = -x;
int ret = 0;
while(x > 0){
if (ret > Integer.MAX_VALUE/10 || (ret == Integer.MAX_VALUE / 10 && x%10 > 7)) return 0;
ret = ret * 10;
ret += x%10;
x ... | true |
0f1b86328940a7c6bec374ffdc5117d4cb62a3ec | Java | kolodindv/JavaHibernate | /hiberSqlEx/src/main/java/DAO/Impl/SportsmanDao.java | UTF-8 | 2,746 | 2.453125 | 2 | [] | no_license | package DAO.Impl;
import DAO.ISportsmanDao;
import DAO.HibernateUtil.HibernateUtil;
import Entities.Sportsman;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.Sessio... | true |
553f25fcee36c1740b3ec3eddba135df672f3074 | Java | ArcoChen/DesignPattern | /DesignPatterns/src/main/java/com/hjc/traing/RedColor.java | UTF-8 | 161 | 1.992188 | 2 | [] | no_license | package com.hjc.traing;
public class RedColor implements Color {
@Override
public void setColor() {
System.out.println("红色的车");
}
}
| true |
5b33457de98d6f7993397fc2e8d2b64a46b94f90 | Java | changanforgithub/resource | /newbiest-common-statemachine/target/classes/com/newbiest/commom/sm/repository/cutomer/StatusRepositoryCustom.java | UTF-8 | 320 | 1.867188 | 2 | [] | no_license | package com.newbiest.commom.sm.repository.cutomer;
import com.newbiest.base.exception.ClientException;
import com.newbiest.commom.sm.model.Status;
/**
* Created by guoxunbo on 2017/11/5.
*/
public interface StatusRepositoryCustom {
Status getStatus(Long statusModelRrn, String status) throws ClientException;
}
| true |
0f1920f09993e967c0d10c56e7ef7e15186e3f5d | Java | cartory/TecnoParcial1 | /src/Utils/Command.java | UTF-8 | 4,013 | 2.8125 | 3 | [] | no_license | package Utils;
import java.util.Map;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.function.BiFunction;
import Controllers.*;
public class Command {
private static final String SPLIT = ";;";
public static enum Operation {
Read, Create, Update, Delete,
}
Map<String... | true |
9ef5d628177657b4b5387ad4c4c6605fe612d2d4 | Java | hmcts/cmc-claim-store | /src/test/java/uk/gov/hmcts/cmc/claimstore/services/notifications/ClaimIssuedNotificationServiceTest.java | UTF-8 | 7,454 | 1.742188 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.cmc.claimstore.services.notifications;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import uk.gov.hmcts.cmc.claimstore.services.notifications.content.NotificationTemplateParameters;
import uk.... | true |
95a656773f290eff0aaa8de4d8e5af60df6a60d1 | Java | cesarfex/grafico-app | /graficos/src/main/java/com/devmedia/primefaces/mb/CandidatoManagedBean.java | UTF-8 | 983 | 2.203125 | 2 | [] | no_license | package com.devmedia.primefaces.mb;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import com.devmedia.primefaces.model.Candidato;
import com.santana.primefaces.dao.CandidatoDAO;
@M... | true |
966bc131f5884063a14195168a24e86789677d2c | Java | iain-davis/Mumue | /src/main/java/org/mumue/mumue/connection/states/PlayerAuthentication.java | UTF-8 | 2,377 | 2.40625 | 2 | [] | no_license | package org.mumue.mumue.connection.states;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.mumue.mumue.configuration.ApplicationConfiguration;
import org.mumue.mumue.connection.Connection;
import org.mumue.mumue.importer.GlobalConstants;
import org.mumue.mumue.player.Player;
import org.mumue.mum... | true |
699d9f4216c4e88d0bf69d444c35a330b1053415 | Java | yr-nice/cctv | /src/com/mu/util/collection/ListUtil.java | UTF-8 | 435 | 2.421875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mu.util.collection;
import java.util.ArrayList;
/**
*
* @author Peng mu
*/
public class ListUtil
{
static public ArrayList getUniqueList(ArrayList list)
{
ArrayList re = new ArrayList();... | true |
1a768bcea234810cbb468f7d06b83906033b37f6 | Java | Kalaimaha/Documentum | /Java Services/Java services/src/com/dfc/usermanagement/UserManagement.java | UTF-8 | 3,196 | 2.5625 | 3 | [] | no_license | /*
1. Creating User
2. Add User to Group
3. Remove Users from Group
*/
package com.dfc.usermanagement;
import com.documentum.fc.client.DfClient;
import com.documentum.fc.client.IDfGroup;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.client.ID... | true |
b61638e62484c168bdc312d3910b2f1c56fa74bc | Java | SHOKHZODJURAEV/src | /day_12Scanner/NameOfMonth.java | UTF-8 | 1,396 | 3.5625 | 4 | [] | no_license | package day_12Scanner;
import java.util.Scanner;
public class NameOfMonth {
public static void main(String[] args) {
Scanner Variable = new Scanner (System.in);
System.out.println("Enter number:");
System.out.println(" Enter number:");
int number = Variable.nextInt();
St... | true |
7c728828f687e6f75796871bce2bc79de8272133 | Java | kumarvishal09/carbondata | /core/src/main/java/org/carbondata/query/reader/ResultTempFileReader.java | UTF-8 | 5,398 | 2.015625 | 2 | [
"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 |
29ff31fe8c71af0dedec8e39d8d874034cadb641 | Java | paulapithon/Chess | /Board.java | UTF-8 | 2,745 | 4.1875 | 4 | [] | no_license | public class Board {
/**
* Board matrix containing all pieces
*/
private Piece[][] pieces = new Piece[8][8];
/**
* Initialize board with correct pieces
*/
public void initBoard() {
//Initialize white colors on up row
Rook rook = new Rook(Color.WHITE);
pieces... | true |
357252d6b01863cbd522102c9eb4f142faec9c42 | Java | lixin46/thriftstudy | /src/main/java/com/lixin/demo/Client.java | UTF-8 | 1,303 | 2.5625 | 3 | [] | no_license | package com.lixin.demo;
import com.lixin.thrift.exception.UserNotFountException;
import com.lixin.thrift.service.UserService;
import com.lixin.thrift.vo.UserVo;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.... | true |
4af534527c37b9ffc015d8f51017aef45c5f12da | Java | RiversLau/concurrent-study | /src/main/java/com/yoxiang/multi_thread_programming/chapter04/sample01/RunTest.java | UTF-8 | 572 | 2.5625 | 3 | [] | no_license | package com.yoxiang.multi_thread_programming.chapter04.sample01;
/**
* Author: Rivers
* Date: 2018/1/7 21:28
*/
public class RunTest {
public static void main(String[] args) {
MyService service = new MyService();
MyThread mt1 = new MyThread(service);
MyThread mt2 = new MyThread(service);... | true |
556059de6120c4f44d030155b7718a80d85278c5 | Java | lockc/java-tooling | /apache-camel/spring-camel/src/main/java/lockc/camel/examples/MyProducer.java | UTF-8 | 220 | 2.203125 | 2 | [] | no_license | package lockc.camel.examples;
import org.apache.camel.InOnly;
/**
* Our producer that will send messages to the JMS queue
*
*/
public interface MyProducer {
@InOnly
void sendMessage(String message);
}
| true |
e12316d54a960341b2f8b8f3eafac7e6f8869308 | Java | kaifazu/MyTest | /src/order/Order.java | UTF-8 | 124 | 1.851563 | 2 | [] | no_license | package order;
public class Order {
private void Syso() {
System.out.println("这是一个订单李四修改的");
}
}
| true |
9bec9c3991a3dd95a6455713af6a205905768e63 | Java | mimarox/jetro | /jetro-transform/src/test/java/net/sf/jetro/transform/beans/WrappingAndAddingSource.java | UTF-8 | 829 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package net.sf.jetro.transform.beans;
import java.util.Objects;
public class WrappingAndAddingSource {
private Persons person;
public Persons getPerson() {
return person;
}
public void setPerson(Persons person) {
this.person = person;
}
@Override
public int hashCode() {
return Objects.hash(person);
}... | true |
be137d8215e8bf8cc38bbad7461a20840dd2a00a | Java | wyltamar/Aulas-Java | /TestSalario.java | WINDOWS-1250 | 712 | 2.921875 | 3 | [
"MIT"
] | permissive | package capitulo4;
import javax.swing.JOptionPane;
public class TestSalario {
public static void main(String[] args) {
SalarioReajustado salarioReajustado = new SalarioReajustado();
salarioReajustado.setNome(JOptionPane.showInputDialog("Digite seu nome:"));
salarioReajustado.setSalarioAtual(Do... | true |
ec1e3f7634fd478a0db160f893a331733f319e26 | Java | lailasharshar/DrinkServer | /src/main/java/com/example/demo/utils/NotifyUtils.java | UTF-8 | 180 | 2.1875 | 2 | [] | no_license | package com.example.demo.utils;
public class NotifyUtils {
public static void notify(String to, String message) {
System.out.println("***** TO: " + to + " - " + message);
}
}
| true |
215bd25b860c21f2e6b8a1f4398eb63ebe80126e | Java | tankyskey/505 | /src/Main.java | UTF-8 | 537 | 2.859375 | 3 | [] | no_license | import model.*;
public class Main{
public static void main(String args[]){
simulation();
}
public static void test(){
City.createMap(10);
for(City c : City.getMap()){
System.out.println(c);
}
Ant a = new Ant(City.getMap().get(0));
System.out.println("pos: " + a.getPos());
a.move();
System.out.... | true |
9e8a92673f14b4fb29723df5329af5b994277dac | Java | JoyJava/test | /java8/src/main/java/jvm/TestSizeOfObje.java | UTF-8 | 529 | 2.328125 | 2 | [] | no_license | package jvm;
import java.lang.instrument.Instrumentation;
public class TestSizeOfObje {
public static void premain(String agentArgs, Instrumentation inst) {
}
public static void main(String[] args) {
// long objectSize = Instrumentation.getObjectSize(new Object());
System.out.println();
}
... | true |
8583d5ec172b262282c687d7888594786ecac5c4 | Java | snowone/hedwig | /hedwig-api/src/main/java/com/hs/mail/container/server/thread/sjt/mgmt/ThreadingGroup.java | UTF-8 | 1,833 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package com.hs.mail.container.server.thread.sjt.mgmt;
/** An interface for a threading group collection. Used to accomodate switching from
* various types of collection classes. May simply wrap a java.util.ThreadGroup,
* or may simply use an array of threads.
*/
public interface ThreadingGroup {
... | true |
aff58d5f8843ae85c4071e3273616ac8ecb5c226 | Java | kelemen/JTrim | /subprojects-internal/test-jtrim-concurrent/src/main/java/org/jtrim2/testutils/executor/MockTaskResult.java | UTF-8 | 494 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package org.jtrim2.testutils.executor;
import org.jtrim2.utils.ExceptionHelper;
public interface MockTaskResult {
public Throwable getThrownError();
public int getCallCount();
public default void verifySuccess() {
ExceptionHelper.rethrowIfNotNull(getThrownError());
int callCount = getCal... | true |
2624ca0d2d899b7a92a930d7f87975a3dec553a7 | Java | MengXin-9/GameSTZB | /GameSTZB/app/src/main/java/com/itgowo/gamestzb/UserActivity.java | UTF-8 | 5,310 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package com.itgowo.gamestzb;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.Toast;
import com.bump... | true |
71b395937115ea2bd8d8f1937fa55a1a98ffe51e | Java | chongguang/lolMaster | /LoLMasterTest/src/ch/epfl/sweng/lolmaster/api/test/ApiKeysTest.java | UTF-8 | 505 | 1.835938 | 2 | [] | no_license | package ch.epfl.sweng.lolmaster.api.test;
import android.test.AndroidTestCase;
import ch.epfl.sweng.lolmaster.api.ApiKeys;
import ch.epfl.sweng.lolmaster.api.ApiKeysManager;
/**
* @author lcg31439
*
*/
public class ApiKeysTest extends AndroidTestCase {
public void testKeyAccess() {
ApiKeys keys = ApiKeysManag... | true |
659ce2456b86dd0f3493553ab1d4747ef6cb13af | Java | broly941/University-Application-Boot | /src/test/java/com/loya/springjpaoracledemo/unit/TeacherServiceTest.java | UTF-8 | 5,957 | 2.484375 | 2 | [] | no_license | package com.loya.springjpaoracledemo.unit;
import com.loya.devi.entity.Teacher;
import com.loya.devi.repository.TeacherRepository;
import com.loya.devi.service.Impl.entityManagment.TeacherServiceImpl;
import com.loya.devi.service.interfaces.BaseService;
import com.loya.devi.service.interfaces.EntitiesValidationService... | true |
698ad90f8eb1eafff849fa2c2105e79c9b19be4a | Java | joliebig/featurehouse_fstmerge_examples | /Jmol/rev11338-12038/right-trunk-12038/src/org/jmol/g3d/Normix3D.java | UTF-8 | 6,194 | 2.40625 | 2 | [] | no_license |
package org.jmol.g3d;
import org.jmol.geodesic.Geodesic;
import org.jmol.util.BitSetUtil;
import javax.vecmath.Vector3f;
import javax.vecmath.Matrix3f;
import java.util.Random;
import java.util.BitSet;
import org.jmol.util.Logger;
class Normix3D {
final static int NORMIX_GEODESIC_LEVEL = Geodesic.standardLevel... | true |
1d1a1648061b1dbdb99413e3dd8ef1b6c7112b9e | Java | DonaldY/LeetCode-Practice | /src/main/java/chapter10/topic3/LeetCode_1945.java | UTF-8 | 700 | 3.03125 | 3 | [
"MIT"
] | permissive | package chapter10.topic3;
/**
* @author donald
* @date 2022/12/15
*/
public class LeetCode_1945 {
public int getLucky(String s, int k) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < s.length(); ++i) {
char ch = s.charAt(i);
sb.append(ch - 'a' + 1);
... | true |
e0f386e6f1e4bd702818f039e87d8417aa0e557e | Java | daravi/modelio | /uml/diagram.editor.sequence/src/org/modelio/diagram/editor/sequence/elements/stateinvariant/GmStateInvariantBodyText.java | UTF-8 | 4,336 | 1.804688 | 2 | [] | no_license | /*
* Copyright 2013-2018 Modeliosoft
*
* This file is part of Modelio.
*
* Modelio 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 ve... | true |
79a0e4973864e250e394000f0b6f3136f16fae27 | Java | PursueMxy/chewu | /app/src/main/java/com/weimu/chewu/module/city/adapter/CitySearchListAdapter.java | UTF-8 | 1,404 | 2.15625 | 2 | [] | no_license | package com.weimu.chewu.module.city.adapter;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.weimu.chewu.R;
import com.weimu.chewu.backend.bean.CityB;
import com.weimu.chewu.backend.bean.base.BaseB;
import com.weimu.chewu.module.city.adapter.CityAdapter;
import com... | true |
6f858e173dfbfef4dc404d5d8270d782efb7c46a | Java | zouhairireda/SpringBootPoc | /src/main/java/pocs/runner/SpringWebApplication.java | UTF-8 | 803 | 1.578125 | 2 | [] | no_license | package pocs.runner;
import org.apache.camel.spring.boot.CamelSpringBootApplicationController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.Applic... | true |
0d4e8e195bb61fc3d746ef064ea6d266c7ad3824 | Java | andjeladjuric/WebProject | /FoodDeliveryApp/src/services/RestaurantService.java | UTF-8 | 3,000 | 2.453125 | 2 | [] | no_license | package services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import javax.annotation.PostConstruct;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.Consumes;
import javax.ws.r... | true |