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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a2f80d83b110165e4c03ad7a70a177e05989f26c | Java | apache/druid | /server/src/main/java/org/apache/druid/server/metrics/WorkerTaskCountStatsMonitor.java | UTF-8 | 3,061 | 1.75 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"ISC",
"GPL-2.0-only",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"0BSD",
"LicenseRef-scancode-sun-no-high-risk-activities",
"LicenseRef-scancode-free-unknown",
"JSON",
"LicenseRef-scancode-unico... | 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 |
f8c2146d50b94d68565617bcd38e0ec872baa5d4 | Java | yangmingke/xyt | /src/main/java/com/xyt/service/operation/NumberPoolService.java | UTF-8 | 460 | 1.617188 | 2 | [] | no_license | package com.xyt.service.operation;
import com.xyt.model.TForwardNumberList;
import com.xyt.util.PageContainer;
import java.util.Map;
public interface NumberPoolService {
PageContainer queryNumberPool(Map<String, Object> paras);
String deleteNumber(int deleteId);
void addNumber(TForwardNumberList tForw... | true |
a2533ef2de4bbaba0cc65994dbce33e6eb101e69 | Java | Igor360/parking-app-spring | /src/main/java/com/parking/example/parking/models/enums/ECarType.java | UTF-8 | 95 | 1.664063 | 2 | [] | no_license | package com.parking.example.parking.models.enums;
public enum ECarType {
WORK,
HOME
}
| true |
36940eed89869e6ff1cfd41edc65f277ebd70642 | Java | lovefornothing/MigrationRedisDemo | /src/main/java/norway/main/DBResultVO.java | UTF-8 | 235 | 1.679688 | 2 | [] | no_license | package norway.main;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DBResultVO {
private Map<String, HashMap<String, List<List>>> dataMap = new HashMap<String, HashMap<String, List<List>>>();
}
| true |
bcfd925defc7d3d0bd61198c3a302daf308f58db | Java | zccicy/ACGWallpaper | /src/com/beatrich/acgwallpaper/model/WallPaper.java | UTF-8 | 1,431 | 2.078125 | 2 | [] | no_license | package com.beatrich.acgwallpaper.model;
import java.io.Serializable;
import android.graphics.BitmapFactory.Options;
//The base URL is /post/index.xml.
public class WallPaper implements Serializable{
private String thumbUrl;
private String picUrl;
private String wh;
private String info;
private Integer width;
... | true |
9d52469a1a049461ece4123d9a4ad00e9d8a0fed | Java | CMonoceros/Encrypt-Server-SSH | /src/main/java/com/dhu/cst/zjm/action/FileDownloadAction.java | UTF-8 | 1,720 | 2.078125 | 2 | [] | no_license | package com.dhu.cst.zjm.action;
import com.dhu.cst.zjm.base.BaseAction;
import com.dhu.cst.zjm.entity.FileEntity;
import com.dhu.cst.zjm.entity.base.FileBaseEntity;
import com.dhu.cst.zjm.util.JsonUtil;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.util.ServletContextAware;
import org.sprin... | true |
7c7a35c5c038d25c9e498717169d36eb8daf2f74 | Java | mjanes/spatial-simulation-java | /src/main/java/spatial/physics/CollisionPhysics.java | UTF-8 | 1,002 | 3.125 | 3 | [] | no_license | package spatial.physics;
import spatial.entity.SpatialEntity;
import java.util.List;
class CollisionPhysics {
public static List<SpatialEntity> applyCollisions(List<SpatialEntity> entities) {
int count = entities.size();
for (int i = 0; i < count; i++) {
SpatialEntity a ... | true |
b7a936b662706255d6fd95c7623da52032ddf107 | Java | JoeyChow1989/YiShanHome-master | /mate-core/src/main/java/strore/yjy/sshy/com/mate/util/callback/IGlobalCallBack.java | UTF-8 | 238 | 1.921875 | 2 | [] | no_license | package strore.yjy.sshy.com.mate.util.callback;
import io.reactivex.annotations.Nullable;
/**
* create date:2018/4/23
* create by:周正尧
*/
public interface IGlobalCallBack<T> {
void executeCallback(@Nullable T args);
}
| true |
1a24637ce5bf9b742ce0fff1f901dccfd08959cf | Java | sashimray/AnalysisOfAlgorithms | /CalculatePi/src/com/company/CalcPi.java | UTF-8 | 1,011 | 3.65625 | 4 | [] | no_license | package com.company;
public class CalcPi {
public static double sims=100000;
public static boolean check_if_valid(double gen_x,double gen_y){
double area= Math.pow(gen_x,2) + Math.pow(gen_y,2);
if (area<=1){
return true;
}
return false ;
}
publ... | true |
bbcd6ddee51c78dacb0d7769b87f0d0f6f5a721e | Java | Holt86/Voting-API | /src/main/java/ru/aovechnikov/voting/configuration/AppConfiguration.java | UTF-8 | 1,290 | 2.09375 | 2 | [] | no_license | package ru.aovechnikov.voting.configuration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation... | true |
8bf6b43164189058d3931b9fef157b8bb9963de5 | Java | ysy15350/StartCarUnion | /app/src/main/java/com/ysy15350/startcarunion/dialog/AddContactNumberDialog.java | UTF-8 | 4,204 | 2.21875 | 2 | [] | no_license | package com.ysy15350.startcarunion.dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import com.ysy... | true |
052c3a897ca6092e025e18f91340e33a6ea1dcb7 | Java | zhengyanxiong/study | /java-series/src/main/java/com/Bernie/reflection/Student.java | UTF-8 | 2,488 | 3.71875 | 4 | [] | no_license | package com.Bernie.reflection;
import java.io.Serializable;
import java.lang.reflect.Field;
/**
* create by: Bernie
* description: Student类
* create time: 2020/10/24 16:48
*/
public class Student implements Serializable,Cloneable {
private String name;
public int age;
public Student(){}
public S... | true |
544a9779cdd4552d4bd1ab59cd37d8fe28ce0685 | Java | azumiar2016/RistiNolla | /RistiNollaJarno/BluetoothRistinolla2/app/src/main/java/application/my/bluetoothristinolla2/MainActivity.java | UTF-8 | 2,604 | 2.6875 | 3 | [] | no_license | package application.my.bluetoothristinolla2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Button;
import android.view.View;
import android.widget.ArrayAdapter;
public class MainActivity extends AppCompatActivity
{
//main layout
... | true |
44b407f2ac3cceb47fde365366f13df4d4bd41d3 | Java | chengll/mvpDemo | /src/main/java/test/dmdfchina/com/mvpdemo/OnLoginListenr.java | UTF-8 | 201 | 1.898438 | 2 | [] | no_license | package test.dmdfchina.com.mvpdemo;
/**
* Created by mkt on 2018/1/15.
* 监听登录的状态
*/
public interface OnLoginListenr {
void onSucce(UserEntity userEntity);
void onFailed();
}
| true |
2194a586f1533052ed9ba023de34019273c1e37c | Java | bcgit/bc-java | /pkix/src/main/java/org/bouncycastle/eac/jcajce/NamedEACHelper.java | UTF-8 | 537 | 2.265625 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.bouncycastle.eac.jcajce;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
class NamedEACHelper
implements EACHelper
{
private final String providerName;
NamedEACHelper(String providerName)
{
this.provider... | true |
56433453a13babb7b47b3362a9f34c5e67785cdb | Java | lorchmt3/B2CCapability | /B2C-business-capabilities/src/main/java/com/touresBalon/b2c/B2Cbusinesscapabilities/entities/Entertainment.java | UTF-8 | 1,210 | 2.421875 | 2 | [] | no_license | package com.touresBalon.b2c.B2Cbusinesscapabilities.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name= "Entertainment", schema = ... | true |
226f1fa28ab0c1f914daed3ca51b10553425a433 | Java | HairLee/MyElcomMain | /app/src/main/java/com/elcom/myelcom/model/api/request/LunchLikeReq.java | UTF-8 | 432 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.elcom.myelcom.model.api.request;
/**
* Created by Hailpt on 6/19/2018.
*/
public class LunchLikeReq {
private String date;
private boolean isLike;
public boolean isLike() {
return isLike;
}
public void setLike(boolean like) {
isLike = like;
}
public String g... | true |
a5f14ca6fe9dd2773404fcd16558ee4f87746ebc | Java | rajeshsanjyal/Asterisk-daily-b2 | /src/main/java/com/asterisk/daily/adapter/TranslatorAdaptor.java | UTF-8 | 585 | 2.5625 | 3 | [] | no_license | package com.asterisk.daily.adapter;
public class TranslatorAdaptor implements NepliTarget{
private EnglishAdaptee englishAdaptee;
public TranslatorAdaptor(EnglishAdaptee englishAdaptee){
this.englishAdaptee=englishAdaptee;
}
public String translate(String nepaliWords){
System.out.prin... | true |
726871ee5e3348fbc7f139df255a711916266276 | Java | annakhuseinova/project-reactor | /src/main/java/com/annakhuseinova/mono/Lecture5RefactoringSupplier.java | UTF-8 | 748 | 3.109375 | 3 | [] | no_license | package com.annakhuseinova.mono;
import reactor.core.publisher.Mono;
public class Lecture5RefactoringSupplier {
public static void main(String[] args) {
getName();
getName();
getName();
}
// Here we only build the pipeline but we are not executing as there are no subscribers
... | true |
300a2129b25ee800782623605184106fc2fb0855 | Java | Sabino86/Matera | /src/test/java/cucumber/actions/Actions.java | ISO-8859-1 | 2,872 | 2.921875 | 3 | [] | no_license | package cucumber.actions;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import cucumber.pageobjects.PageObjects;
publ... | true |
9f4070e2e5f671d9f009f8ae1fdd20b5b5da3425 | Java | d-william/tuples | /mutable-tuples/src/main/java/com/dwilliam/ds/tuples/mutable/intf/tuples/IMutableQuad.java | UTF-8 | 2,530 | 2.65625 | 3 | [] | no_license | package com.dwilliam.ds.tuples.mutable.intf.tuples;
import com.dwilliam.ds.tuples.intf.tuples.*;
import com.dwilliam.ds.tuples.mutable.intf.values.*;
/**
* Marker interface for mutable quads.
*
* @param <T1> the type of the first element of the quad
* @param <T2> the type of the second element of the quad
* @par... | true |
a4f6a9c1e8207a7bacc39be0c243571ae05aa55e | Java | Iksned/Contacts | /src/main/java/DAO/UserDAO.java | UTF-8 | 349 | 2.25 | 2 | [] | no_license | package DAO;
import model.User;
import java.util.List;
public interface UserDAO extends CatalogDAO<User>{
@Override
void create(User ob);
@Override
User read(String id);
@Override
List<User> readAll(String ob);
@Override
void update(User newOb);
@Override
... | true |
12ad0da9a8c73f48836fd12450afa2ad704cdd0e | Java | mohsen-dl/CheckBox | /app/src/main/java/com/uniquestudio/materialcheckbox/MainActivity.java | UTF-8 | 1,369 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.uniquestudio.materialcheckbox;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
... | true |
677db6688edfbe5b0e0781de463ceaa6d76de8ad | Java | LhmhL/algo | /train/src/_10_day/_71_simplify_path.java | UTF-8 | 2,340 | 4 | 4 | [] | no_license | package _10_day;
import java.util.ArrayDeque;
public class _71_simplify_path {
/* leetcode 71 号算法题:简化路径
给你一个字符串 path ,表示指向某一文件或目录的 Unix 风格 绝对路径 (以 '/' 开头),
请你将其转化为更加简洁的规范路径。
- 在 Unix 风格的文件系统中,一个点(.)表示当前目录本身;
- 此外,两个点 (..) 表示将目录切换到上一级(指向父目录)
- 两者都可以是复杂相对路径的组成部分
- 任意多个连续的斜杠(... | true |
435c33abbaa0f07f7277229c95a5f3a7cfd59411 | Java | aneishkumar/Workspace2 | /workspaceangularjs/backend/src/main/java/com/niit/dao/EmployeeDaoImpl.java | UTF-8 | 943 | 2.453125 | 2 | [] | no_license | package com.niit.dao;
import java.util.List;
import javax.transaction.Transactional;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Re... | true |
5f53b514cc21f0f5154ceb44ee11c84d33793127 | Java | zahitkaya/bean | /src/main/java/com/example/bean/configuration_bean/Config.java | UTF-8 | 495 | 2.078125 | 2 | [] | no_license | package com.example.bean.configuration_bean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackageClasses = Person.class)
public class Config {
@Bean
... | true |
20a7ad05c15ee696f1a1e2e938e2205052654f69 | Java | michl1001/IEEE_QP2020 | /IEEE_QP_AS/app/src/main/java/com/example/ieee_qp/ListTestActivity.java | UTF-8 | 5,929 | 1.867188 | 2 | [] | no_license | package com.example.ieee_qp;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
import android.app.Notifica... | true |
9e501e6870eda49e3a6968d89779e5ae69201a50 | Java | arahansa/codespitz88_asyncawait | /src/main/java/com/arahansa/controller/HelloController.java | UTF-8 | 1,280 | 2.5625 | 3 | [] | no_license | package com.arahansa.controller;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Arr... | true |
378d0b2b536ed432082c0821fbe89cd1b60548ef | Java | SoyeeDst/Java-NoOp | /processor/src/main/java/com/jenzz/noop/processor/NoOpProcessor.java | UTF-8 | 3,197 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.jenzz.noop.processor;
import com.google.auto.service.AutoService;
import com.jenzz.noop.annotation.NoOp;
import com.jenzz.noop.processor.exceptions.RuleException;
import com.jenzz.noop.processor.exceptions.UnnamedPackageException;
import com.jenzz.noop.processor.rules.InterfaceRule;
import com.jenzz.noop.p... | true |
82779fa0b5d51b0a0c87213605d4719e305cb88f | Java | miki31/Petros_apiary | /app/src/main/java/com/apiary/sch/mykhailo/petros_apiary/local_database/DBHelper.java | UTF-8 | 12,221 | 2.1875 | 2 | [] | no_license | package com.apiary.sch.mykhailo.petros_apiary.local_database;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.Calendar;
import java.util.GregorianCalendar;
/**
* Created by User on ... | true |
be56d470e29c70f45e06906d9848db44dfa3bdca | Java | ApirutChaokrua/Hotel | /src/report/Booking.java | UTF-8 | 7,406 | 2.484375 | 2 | [] | no_license | package report;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class Booking implements Serializable {
private String firstname;
private String lastname;
private int regNum;
private String tel;
private Stri... | true |
0f0990fa7a9077e05af9b8ce59c52505bb1f46f4 | Java | wupeng1988/monkey-deployer | /src/main/java/org/singledog/monkey/commands/exec/FileDistributeCommand.java | UTF-8 | 866 | 2.15625 | 2 | [] | no_license | package org.singledog.monkey.commands.exec;
import org.singledog.monkey.commands.BasicCommand;
import org.springframework.shell.core.annotation.CliAvailabilityIndicator;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.s... | true |
7dbd9ddcd39ae58f4e974a65c79ae8dd58205b52 | Java | P79N6A/icse_20_user_study | /methods/Method_31811.java | UTF-8 | 561 | 3.484375 | 3 | [] | no_license | /**
* Does this time interval contain the specified millisecond instant. <p> Non-zero duration intervals are inclusive of the start instant and exclusive of the end. A zero duration interval cannot contain anything.
* @param millisInstant the instant to compare to,millisecond instant from 1970-01-01T00:00:00Z
* @r... | true |
96ba3caa693c41d5e45639510a52450761d74a5e | Java | princeparody/Project-Demo | /src/conditional_statement/LetsHaveACoffee.java | UTF-8 | 352 | 3.234375 | 3 | [] | no_license | package conditional_statement;
public class LetsHaveACoffee {
//data type boolean -true,false
boolean isCupEmpty=true;
public static void main(String[] args) {
LetsHaveACoffee a= new LetsHaveACoffee();
if (a.isCupEmpty){
System.out.println("Fill the cup");
}
else {
System.out.println(... | true |
826dbbe8c71613bba2f479f4ce8a1e067fe838a1 | Java | shefalibisht00/microservice-spring-cloud-react | /microservices-spring-boot-cloud/rental-service/src/main/java/com/shefalibisht/rental/controllers/RentalController.java | UTF-8 | 2,312 | 2.296875 | 2 | [] | no_license | package com.shefalibisht.rental.controllers;
import com.shefalibisht.rental.exceptions.RecordNotFoundException;
import com.shefalibisht.rental.models.Inventory;
import com.shefalibisht.rental.models.MovieRental;
import com.shefalibisht.rental.services.RentalServiceImpl;
import org.springframework.beans.factory.annotat... | true |
24956096391aa78e1647aca3a67fec8c87374be8 | Java | DiegoKarabin/orm | /src/orm/relations/onetomany/OneToManyManager.java | UTF-8 | 3,288 | 2.453125 | 2 | [] | no_license | package orm.relations.onetomany;
import java.lang.reflect.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import orm.Model;
import orm.builders.InsertBuilder;
import orm.builders.SelectBuilder;
import orm.builders.UpdateBuilder;
import orm.relations.RelationManager... | true |
102931cc7efe35f77168ed7ef107ea9f43b3c2cd | Java | neeronjun/dist_topk | /src/main/java/rstartree/MapperOut.java | UTF-8 | 1,418 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package rstartree;
public class MapperOut {
private int objID;
private int instID;
private int MBRID;
private int treeID;
private float t_LB;
private float t_UB;
private float tau_i;
public MapperOut(int objectID, int id, int mbrID, int treeID, float lb, float ub, float tau_i) {
... | true |
3a85f71b584180a93bc455c5710aa2aff10f02ba | Java | Roggam/Simple-Mortgage-Calculator | /src/com/roggam/Main.java | UTF-8 | 1,811 | 3.5 | 4 | [] | no_license | package com.roggam;
import java.text.NumberFormat;
import java.util.Scanner;
public class Main {
public static String mortgage(){
// write your code here
Scanner scanner = new Scanner(System.in);
double principal;
while(true){
System.out.print("Principal ($1K - $1M):... | true |
f9067a81aa77bd6b4399040a69e9c97a4943abf8 | Java | taloto07/falcon | /FalconTowncar/src/com/falcon/hosting/servlet/ViewServlet.java | UTF-8 | 1,242 | 2.421875 | 2 | [] | no_license | package com.falcon.hosting.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.stringtemplate.v4.ST;
import org.stringtemplate.v4.STGroup;
public class ViewServ... | true |
0fc74407f542f883e915f21758643a204f0a6165 | Java | zhongxingyu/Seer | /Diff-Raw-Data/4/4_9ffbcc98d0ec9f828eacc29309b0a56399caecdf/ProjectGenerator/4_9ffbcc98d0ec9f828eacc29309b0a56399caecdf_ProjectGenerator_t.java | UTF-8 | 9,100 | 1.6875 | 2 | [] | no_license | /*
* HUMBOLDT: A Framework for Data Harmonization and Service Integration.
* EU Integrated Project #030962 01.10.2006 - 30.09.2010
*
* For more information on the project, please refer to the this web site:
* http://www.esdi-humboldt.eu
*
* LICENSE: For information on the license under ... | true |
ec412642b6dd57896052f0638d81fc10ce57ded3 | Java | andreSanchez44/RickAndMortyAPI | /RickAndMortyAPI/app/src/main/java/com/example/rickandmortyapi/Character.java | UTF-8 | 327 | 1.960938 | 2 | [] | no_license | package com.example.rickandmortyapi;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface Character {
public static final String BASE_URL = "https://rickandmortyapi.com/api/location/";
@GET("character")
Call<ResultCharacter> getCharacters(@Query("page") int page)... | true |
fa4384209193e3b1b5766bb50aea7b018fddcafa | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/jecelyin_920-Text-Editor/src/com/jecelyin/editor/HistoryList.java | UTF-8 | 6,153 | 1.601563 | 2 | [] | no_license | // isComment
package com.jecelyin.editor;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.SharedPreferences;
import android.view.View;
import android.view.ViewGroup;
import android.wid... | true |
54b6491adfbdafcb1780be40172aa3c9df6f88fc | Java | zzangkkmin/AlgorithmPracticeZone | /Java_BOJ/Main14489.java | UTF-8 | 614 | 2.984375 | 3 | [] | no_license | package com.ssafy.git.Java_BOJ;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main14489 {
public static long a,b,c;
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(ne... | true |
06f8d8e8c250068e9290690ab5ad77f53d4ca2ee | Java | FelipeGadelha/conquista | /src/main/java/br/com/cyber/funcional/conquista/observer/InputDados.java | UTF-8 | 209 | 2.015625 | 2 | [] | no_license | package br.com.cyber.funcional.conquista.observer;
public class InputDados implements InputDataObserver{
@Override
public void event(ErrorEvent event) {
System.out.println("Teste funcionando");
}
}
| true |
567257f652a12c2d58737f4f848ab8d0301f34dc | Java | VladimirSu/4stHomework | /src/test/Test.java | UTF-8 | 994 | 3.46875 | 3 | [] | no_license | package test;
public class Test {
public void main(String[] args) {
String asd= "♠1";
String[] color = getColor(asd);
int[] num = getNum(asd);
System.out.println(num);
System.out.println(color);
}
//获取花色的方法
public String[] get... | true |
1d3f59ab5e6718b9139cc6f93efd8765d7718e6e | Java | proton88/kursPVT | /library/src/by/my/library/command/impl/AddBook.java | UTF-8 | 2,474 | 2.453125 | 2 | [] | no_license | package by.my.library.command.impl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import by.my.library.command.Command;
import by.my.library.command.exception.CommandException;
import by.my.lib... | true |
185a5c893af46eda822a5064eeb71d0c5f900bb7 | Java | HanNyeong/noah_-library | /library/src/main/java/com/noah/library/date/DateDifferenceManager.java | UTF-8 | 2,141 | 3.296875 | 3 | [] | no_license | package com.noah.library.date;
import android.util.Log;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* 날짜 차이를 계산해주는 Manager
*/
public class DateDifferenceManager {
/**
* String 타입을 날짜의 차이를 계싼한다.
* date1 - date2
* @para... | true |
3fb109662e59cddc108ee5354fccc8fbd7cc978c | Java | Antsecvic/LeftBehindChildren | /src/XmlData/Dom4j.java | GB18030 | 9,106 | 2.4375 | 2 | [] | no_license | package XmlData;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.Iterator;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.lo... | true |
ed3c3f52969844be0225e1d732dae7aa6213c7b7 | Java | CloudShareService/Flea-Market | /src/main/java/egovframework/fleaMarket/payment/service/impl/PaymentServiceImp.java | UTF-8 | 621 | 1.9375 | 2 | [] | no_license | package egovframework.fleaMarket.payment.service.impl;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import egovframework.fleaMarket.payment.service.PaymentServ... | true |
0218d83e51669512420961270a0ce62fddcfb08b | Java | rahullfo/TEAM | /src/java/org/ariose/model/VMIPrerenewalInfo.java | UTF-8 | 3,082 | 2.234375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.ariose.model;
/**
*
* @author manu parmar: Sep 2011
*/
public class VMIPrerenewalInfo extends BaseObject {
private long id;
private long subscriberNumber;
private int packId;
private String packNam... | true |
727c9e3e80e1e04fa89755160afe8cb97702eb52 | Java | jamesladd/stc | /src/main/java/st/redline/compiler/Generator.java | UTF-8 | 533 | 2.15625 | 2 | [
"MIT"
] | permissive | /* Redline Smalltalk, Copyright (c) James C. Ladd. All rights reserved. See LICENSE in the root of this distribution. */
package st.redline.compiler;
import org.antlr.v4.runtime.tree.ParseTree;
public class Generator {
private final ParseTree tree;
private final SmalltalkVisitor visitor;
public Generato... | true |
31622d392ee7e97f9c70ee462418d4a82ceab734 | Java | harry1080/vs | /src/com/vshow/control/sucai/.svn/text-base/ToSeeSucaiListAction.java.svn-base | UTF-8 | 10,883 | 1.960938 | 2 | [] | no_license | package com.vshow.control.sucai;
import java.util.List;
import java.util.Map;
import com.opensymphony.xwork.Action;
import com.opensymphony.xwork.ActionContext;
import com.vshow.control.data.Pages;
import com.vshow.control.data.ScGroup;
import com.vshow.control.data.ScGroupRelation;
import com.vshow.control.data.Suca... | true |
4e4a45e2e26d2b02cc718623c527762ef26f2451 | Java | tchataigner/qcm | /src/matiere/MatiereController.java | UTF-8 | 2,418 | 2.234375 | 2 | [] | no_license | package matiere;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
... | true |
b6a56ae49497a8b491365d4d298e144cdb116796 | Java | wuwutai/hxcommon | /hxcommon/com/hongxiang/util/JarHelp.java | UTF-8 | 2,930 | 2.875 | 3 | [] | no_license | package com.hongxiang.util;
import com.hongxiang.util.FileCommon;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
public class JarH... | true |
b9b313785448e9edb0f2a80f7c01b4cbbe0b5642 | Java | ilyaryabikin/ITMO_Business_Logic_of_Software | /lab1/src/main/java/se/ifmo/blos/lab1/dtos/BrandDto.java | UTF-8 | 589 | 2.046875 | 2 | [] | no_license | package se.ifmo.blos.lab1.dtos;
import static com.fasterxml.jackson.annotation.JsonProperty.Access.READ_ONLY;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstru... | true |
bc07b50e915aca1f559958d3a6e2604fabb48d00 | Java | Yash-Gupta-21/ct_lite_android-master | /app/src/main/java/com/i9930/croptrails/Scan/EncFarmData.java | UTF-8 | 1,082 | 1.859375 | 2 | [] | no_license | package com.i9930.croptrails.Scan;
import com.google.gson.annotations.SerializedName;
public class EncFarmData {
@SerializedName("farm_id")
String farmId;
@SerializedName("sv_id")
Long svId;
@SerializedName("comp_id")
Long compId;
@SerializedName("owner_id")
Long ownerId;
@Seriali... | true |
320b0bf8b74761b5b3cc1ad213e8e8c5e3ea37e8 | Java | ChernetsovNG/algorithms_2018_12 | /otus-algorithms-HW/HW3/src/main/java/ru/nchernetsov/fibonacci/Fibonacci.java | UTF-8 | 1,015 | 3.546875 | 4 | [] | no_license | package ru.nchernetsov.fibonacci;
import java.math.BigInteger;
import static ru.nchernetsov.fibonacci.Power.matrixPower;
public class Fibonacci {
/**
* Матричный алгоритм вычисления n-го числа Фибоначчи
* Можно показать, что F_n = Q^(n - 1)(1, 1), где F_n - n-е число Фибоначчи,
* Q - матрица ([1,... | true |
2bd9e709afc590dcbe69751a7615bb4855aa55b9 | Java | aiical/DataFlow-Plugins | /HttpSink/src/main/java/com/df/plugin/sink/http/HttpSink.java | UTF-8 | 2,465 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.df.plugin.sink.http;
import java.io.File;
import java.util.concurrent.Future;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.df.plugin.sink.http.config.HttpConfig;
import com.df.plugin.sink.http.hander.HttpSinkHandler;
import com.df.plugin.sink.http.service.BufferService;
import com.... | true |
43f792729af7b2284b520eb16b69bd618f0b12c1 | Java | yalamountain/emailsend | /src/com/flying/emailsend/service/EmailContentService.java | UTF-8 | 4,433 | 2.515625 | 3 | [] | no_license | package com.flying.emailsend.service;
import java.util.List;
import com.flying.emailsend.bean.EmailContent;
import com.flying.emailsend.dao.IEmailContent;
import com.flying.emailsend.daoimpl.EmailContentImpl;
import com.flying.emailsend.factory.ConnectionFactory;
import com.flying.emailsend.util.EmailSendHelper;
/**... | true |
0775684143c6af8f4bdd35d1deb8ea5234b2c33f | Java | cuongchauviet/demo | /src/main/java/com/elcom/gasscale/repository/UserCustomerRepository.java | UTF-8 | 739 | 2.046875 | 2 | [] | no_license | /**
*
*/
package com.elcom.gasscale.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.elcom.gass... | true |
1e1c855daeddf8b92ebb8b3c896a6e01dfe0a8c3 | Java | muthomidenishub/chamaproject | /src/java/com/chama/service/addMember.java | UTF-8 | 2,809 | 2.328125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.chama.service;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.logg... | true |
3af04213dc1a0d1411328000b69bba20769c54b5 | Java | SoMysrie/CookieSCookout | /sourceMoteurDeRecherche/src/link/NotedReciepes.java | UTF-8 | 509 | 2.578125 | 3 | [] | no_license | package link;
/**
* Created by Nicolas_Travail on 17/03/2016.
*/
public class NotedReciepes {
private String url;
private int vote;
public NotedReciepes(String url){
this.url=url;
this.vote=0;
}
public String getUrl() {
return url;
}
public void ... | true |
59fdd0847809b246f84720733fcde9e8317b2225 | Java | Brymian/BoppoAndroid | /app/src/main/java/com/brymian/boppo/bryant/logIn/LoginActivity.java | UTF-8 | 5,359 | 2.203125 | 2 | [] | no_license | package com.brymian.boppo.bryant.logIn;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import an... | true |
cd78e8d47d7e86de79b5ea4ddcba49eacb9abac3 | Java | vikas-sachdeva/spring-jsample-o | /boot/print-all-loaded-beans/src/main/java/spring/jsample/beans/HelloWorld.java | UTF-8 | 206 | 1.984375 | 2 | [
"MIT"
] | permissive | package spring.jsample.beans;
import org.springframework.stereotype.Component;
@Component
public class HelloWorld {
public void printHello() {
System.out.println("Hello Console App");
}
}
| true |
84b4840443bc5ec1d8a44a2c4552a804a85e84de | Java | jjsair0412/MyCodeStudy | /pjtTest/src/Interface_pratice/PersonToy.java | UHC | 383 | 2.40625 | 2 | [] | no_license | package Interface_pratice;
public class PersonToy implements ToyCon{
@Override
public void run() {
System.out.println(" run");
}
@Override
public void walk() {
System.out.println(" walk");
}
@Override
public void stop() {
System.out.println(" stop");
}
@Override
public void alarm() {
System.out.... | true |
2ba5be619e7cafa104d10d6bbfe19a5e4f545953 | Java | rccursach/SREXEngine | /src/main/java/cl/srex/srexfetcherdaemon/fetcher/config/PropReader.java | UTF-8 | 2,374 | 2.59375 | 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 cl.srex.srexfetcherdaemon.fetcher.config;
import org.apache.log4j.Logger;
import java.io.File;
import java.io.FileInputStream... | true |
31e68fae6b91f704e879026fdcf409650cceb236 | Java | lchen1118/mongoDB | /src/main/java/com/cl/freemarker/BaseFreeMarkerView.java | UTF-8 | 771 | 2.296875 | 2 | [] | no_license | package com.cl.freemarker;
import org.springframework.web.servlet.view.freemarker.FreeMarkerView;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
/**
* FreeMarker
*
* @author arjaylv
*/
public class BaseFreeMarkerView extends FreeMarkerView {
public BaseFreeMark... | true |
83da91768f46f560de2686681d7120823a4e34bd | Java | edseto/DAM | /UF-3 Fitxers/Gestió Teatre/SeientsDB.java | UTF-8 | 2,508 | 2.671875 | 3 | [] | no_license | import java.sql.*;
public final class SeientsDB {
public static void insertarSeients(Connection conDB, Zones espais) throws SQLException {
String query = "insert into seients(id_seient, id_zona) values (?, ?)";
PreparedStatement insertar = conDB.prepareStatement(query);
for (int i = 0; i < ... | true |
1ad3efac6331ea86a57056b1e42aedb422a28d38 | Java | jiaxinli0907/document-analysis | /src/main/java/de/dbvis/Exercise3.java | UTF-8 | 6,767 | 2.90625 | 3 | [
"MIT"
] | permissive | package de.dbvis;
import de.dbvis.stemmer.tokenstem;
import de.dbvis.structured.Sentence;
import de.dbvis.structured.Word;
import de.dbvis.structured.WordImpl;
import de.dbvis.tagger.NGramTag;
import de.dbvis.tagger.WorstPOSTaggerInHistory;
import de.dbvis.utils.POSTaggerScorer;
import de.dbvis.utils.WordCloudFactory;... | true |
60934d931db56a72641d06ef533c6b7641be8101 | Java | doug65535/madDougAlgorithm | /nowcoder/AlgorithmCode/02Sort/Problem_06_HeapSort.java | UTF-8 | 2,039 | 3.90625 | 4 | [] | no_license | package Sort;
public class Problem_06_HeapSort {
public static void swap(int[] arr, int i, int j) {
int tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
}
//heapsort
//建堆 O(N)
public static void heapInsert(int[] arr, int index) {
//父节点较小,当前数较大
while (arr[index]... | true |
a2347a89b64c32de49fc2b463471a44ff2364188 | Java | ax5-co/NewCSVparser | /csvparser/src/main/java/csvparser/CSVReaderWithManualHeader.java | UTF-8 | 1,256 | 3.125 | 3 | [] | no_license | package csvparser;
import java.io.IOException;
import java.io.Reader;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
public class CSVReaderWithManualHeader {
private static final Stri... | true |
314b2846bcda264515541aace68b2068c3711ed5 | Java | kacyan/testruts | /src/jp/co/ksi/incubator/oauth2/RefreshAccessToken.java | UTF-8 | 5,668 | 1.953125 | 2 | [] | no_license | package jp.co.ksi.incubator.oauth2;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.Calendar... | true |
f2d716ccc954cefd593c719880cd9c398d1112e3 | Java | breaktrycatch/breaktrycatchrepo | /projects/WeNeedMoreHumans/trunk/src/toxi/video/capture/plugins/ErosionPlugin.java | UTF-8 | 2,269 | 2.375 | 2 | [] | no_license | /*
* Copyright (c) 2006, 2007 Karsten Schmidt
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
... | true |
3b163d5b9ed6fc38eba8631230e4c10f7d21564e | Java | ryantanjunming/RetroAuth-Authentication | /app/src/main/java/retroauth/test/cwdsg05/retroauthauthentication/data/APIServices.java | UTF-8 | 1,515 | 1.765625 | 2 | [] | no_license | package retroauth.test.cwdsg05.retroauthauthentication.data;
import com.andretietz.retroauth.Authenticated;
import io.reactivex.Observable;
import retroauth.test.cwdsg05.retroauthauthentication.R;
import retroauth.test.cwdsg05.retroauthauthentication.model.request.LoginRequest;
import retroauth.test.cwdsg05.retroauth... | true |
936c4e163fee599c765c800888d5721ac6198dc6 | Java | iMac-G4-Projects/Hollywood-TV-Guide | /tvbrowser-plugins/plugin-timeline/src/main/java/timelineplugin/TimelineDialog.java | UTF-8 | 15,541 | 1.976563 | 2 | [] | no_license | /*
* Timeline by Reinhard Lehrbaum
*
* 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 2
* of the License, or (at your option) any later version.
*
* This program is... | true |
de7afe9bb620ec1470aa4e1e4f4b67eb411a0702 | Java | biaolv/com.instagram.android | /src/com/instagram/android/nux/a/ab.java | UTF-8 | 1,470 | 1.601563 | 2 | [] | no_license | package com.instagram.android.nux.a;
import android.view.View;
import com.instagram.base.a.b.a;
import com.instagram.common.analytics.e;
import com.instagram.e.f;
import com.instagram.e.g;
import com.instagram.e.h;
public final class ab
extends a
{
public final View a;
public final View b;
public boolean c;
... | true |
0da6b41e8dfba0f3b6f93b51a6c8d4aae8dc0f0d | Java | mfratczak88/RpiRobo | /src/main/java/rest/controllers/ReverseController.java | UTF-8 | 665 | 2.390625 | 2 | [] | no_license | package rest.controllers;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
import rest.responses.OkResponse;
import robot.Robot;
public class ReverseController extends AbstractController implements Handler<RoutingContext> {
public ReverseController(Robot robot) {
super(robot);
}
... | true |
6fd969acceb3c41ecc2b05d1f93f837f9257e6a3 | Java | JeffSuu/android_basemember | /test/app/src/main/java/com/example/test/DialagActivity.java | UTF-8 | 6,809 | 2.3125 | 2 | [] | no_license | package com.example.test;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import co... | true |
f7a7a8276a6b04f15f40d422fe3f126e988d686e | Java | nmby/reversi | /xyz.hotchpotch.reversi/src/main/java/xyz/hotchpotch/reversi/cui/match/MatchCondition.java | UTF-8 | 3,601 | 3.078125 | 3 | [
"MIT"
] | permissive | package xyz.hotchpotch.reversi.cui.match;
import java.util.Objects;
import xyz.hotchpotch.reversi.core.Player;
import xyz.hotchpotch.reversi.cui.common.ConditionUtil;
/**
* 複数回対戦条件を保持するレコードです。<br>
*
* @author nmby
*/
public record MatchCondition(
Class<? extends Player> playerA,
Cl... | true |
eabe51d19f16019bb719f6e5b52929f163e0992e | Java | GregChyla/spring-todo | /src/main/java/com/greg/todo/services/TodoService.java | UTF-8 | 945 | 2.390625 | 2 | [] | no_license | package com.greg.todo.services;
import com.greg.todo.model.Todo;
import com.greg.todo.repository.TodoRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
@RequiredArgsConstructor
public class TodoService {
pr... | true |
2890c53ce984a8d68490d7e5c2770bb98911d9c6 | Java | katarinarakicevic/seleniumExamples | /src/fillForm.java | UTF-8 | 3,952 | 2.65625 | 3 | [] | no_license | package examples.selenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class thirdExample {
public static void main(String[] args) {
// TODO Auto-gene... | true |
2fe4ad4906d9f19887ff41bda2dd3d1ffd6d8e24 | Java | IvanmgmSoftwareEngineering/PracticaPOO | /src/Banco/PaqueteDeAcciones.java | UTF-8 | 1,903 | 3.203125 | 3 | [] | no_license | package Banco;
import General.Utilidades;
import java.io.Serializable;
public class PaqueteDeAcciones implements Serializable {
//ZONA DE VARIABLES
private double numTitulos;
private double valorActualTitulo;
private String nombreEmpresa;
// FIN ZONA VALIABLES
//ZONA DE CONSTRUCTORES
publ... | true |
fadb5ac596b2f59b1cd8d0dba67127a54da24e07 | Java | kostaskougios/scalavsjdk8 | /src/main/java/why/CollectionsJava.java | UTF-8 | 654 | 3.71875 | 4 | [] | no_license | package why;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
/**
* @author kostas.kougios
* Date: 31/05/15
*/
public class CollectionsJava {
public static void main(String[] args) {
List<Integer> numbers = Arrays.asList(1, 2, 3);
// summing via reduce: the intention of the code... | true |
38a17d86999b499a432f9b43cd7dd60f65c841f5 | Java | sebastiannorenamarquez/api_next_u | /src/main/java/com/tareascontrol/dao/DaoAsignatura.java | UTF-8 | 3,279 | 2.40625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.tareascontrol.dao;
import com.tareascontrol.model.Asignatura;
import com.tareascontrol.model.Usuario;
import java.sql.Prep... | true |
e49777458358a6c21d378411a7acd8832ead6c32 | Java | FearlessGames/fearless-common | /test/src/main/java/se/fearless/common/time/MockTimeProvider.java | UTF-8 | 383 | 2.78125 | 3 | [] | no_license | package se.fearless.common.time;
public class MockTimeProvider implements TimeProvider {
private long now;
public void setNow(long now) {
this.now = now;
}
public void advanceTime(long amountInMillis) {
now += amountInMillis;
}
@Override
public long now() {
return now;
}
@Override
public void slee... | true |
0b2ae199b5e8af35c7175010e7171a70f222b5e4 | Java | Caysen0038/BMusic | /app/src/main/java/com/baokaicong/android/bmusic/ui/view/MainToolbar.java | UTF-8 | 3,497 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.baokaicong.android.bmusic.ui.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import androidx.annotation.Nullable;
import... | true |
604c6dab123e12fbc52bb8dda78bb3ee2e2ac3d1 | Java | Amioplk/Apartments | /src/test/java/io/github/oliviercailloux/y2018/apartments/readapartments/ReadTwoApartmentsTest.java | UTF-8 | 1,519 | 3.203125 | 3 | [
"MIT"
] | permissive | package io.github.oliviercailloux.y2018.apartments.readapartments;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import io.github.oliviercailloux.y2018.apartments.apartment.Apartment;
import io.github.oliviercaillou... | true |
8820022a696c5afb22d705d6f49707ba21c133fd | Java | bprosnitz/java | /baku-toolkit/lib/src/main/java/io/v/rx/syncbase/RangeWatchEvent.java | UTF-8 | 1,762 | 1.84375 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.rx.syncbase;
import com.google.common.reflect.TypeToken;
import java.util.Map;
import io.v.v23.syncbase.nosql.ChangeType;
import io.v.v23.... | true |
0b0ffbff8920838e524ca45a26e6aad4b10bea74 | Java | hivinpolat/sporUygulamas- | /java/com/example/sporuygulamasi/BasketbolActivity.java | UTF-8 | 2,008 | 1.84375 | 2 | [] | no_license | package com.example.sporuygulamasi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.os.Build;
import android.os.Bundle... | true |
63a1dea3f7625ab6b85d8d74cf4d39441b41e391 | Java | PrintFang/miniGame | /src/main/java/mineSweeper/frame/MineSweeperMain.java | UTF-8 | 7,294 | 2.484375 | 2 | [] | no_license | package mineSweeper.frame;
import mineSweeper.arithmetic.MineGameUtils;
import mineSweeper.arithmetic.RankScoreUtils;
import mineSweeper.bean.MineBean;
import mineSweeper.bean.MineImage;
import mineSweeper.bean.MineLevel;
import mineSweeper.bean.MineType;
import mineSweeper.listener.MyMouseListener;
import mineSweeper... | true |
ea4ebe33e10c344f14603ddff7ba6820c7b96b16 | Java | Nikosar/Solution | /src/tests/Easy4.java | UTF-8 | 357 | 2.6875 | 3 | [] | no_license | package tests;
import simpletasks.task4.ExchangesList;
public class Easy4 {
public static void main(String[] args) {
int[] numbers = {-7, 4, 15, 21, 23, 35, 1, 68};
for (int number :
numbers) {
System.out.println("Exchange variants " + number + ":\n" + ExchangesList.ex... | true |
4c84cea84a18d081ffd733efccacfb511a2ece54 | Java | MarcosRychlewski/java_Poo | /src/Aula_method/ex3.java | ISO-8859-1 | 829 | 3.28125 | 3 | [] | no_license | package Aula_method;
import java.util.Scanner;
import Service.Rectangle;
//Fazer um programa para ler os valores da largura e altura
//de um retngulo. Em seguida, mostrar na tela o valor de
//sua rea, permetro e diagonal. Usar uma classe como
//mostrado no projeto ao lado.
public class ex3 {
public static void... | true |
9184215d14549a4aa524475badca9fc5b64e4093 | Java | suliyu/evolucionNetflix | /com/netflix/mediaclient/ui/common/LanguageSelectorKubrick$1.java | UTF-8 | 719 | 1.617188 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.netflix.mediaclient.ui.common;
import android.view.View;
import android.view.View$OnClickListener;
class LanguageSelectorKubrick$1 implements View$OnClickListener
{
final /* synthetic */ LanguageSelectorKubrick this$0;
final /* synthetic */ boolean val$bWa... | true |
950eb5f7a2b062dcd58417c32d8c3646b3876ec8 | Java | gary555594/spring-batch | /spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/builder/JsrSimpleStepBuilder.java | UTF-8 | 3,046 | 1.90625 | 2 | [] | no_license | /*
* Copyright 2013 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 applica... | true |
9997ac490d9b52daf992d14a6af40dd2622a27f4 | Java | daehong53/java | /step6/Card/CardTest.java | UTF-8 | 200 | 2.328125 | 2 | [] | no_license | import myPkg.Card;
public class CardTest {
public static void main(String[] args) {
Card myCard = new Card();
myCard.printCardNumber();
// myCard.printCardKind(); // 요거는 못씀
}
}
| true |
05c8b52a37381076541475cdbcbc2b93db2d43a5 | Java | JavaTailor/CFSynthesis | /02Benchmarks/Openj9Test-Test/src/javaT/util/ResourceBundle/Bug6190861.java | UTF-8 | 2,959 | 2.4375 | 2 | [] | no_license | package javaT.util.ResourceBundle;
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2... | true |
0d28e19a764a890e973b59b80194b40f00a86065 | Java | ollierob/coljate | /api/src/test/java/net/coljate/list/MutableListTest.java | UTF-8 | 1,699 | 2.640625 | 3 | [] | no_license | package net.coljate.list;
import net.coljate.collection.MutableCollectionTest;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
* @author Ollie
*/
public interface MutableListTest<T> extends ListTest<T>, Mu... | true |
dfd0b56cde8d833d45977bcc8d7f164081757f76 | Java | zhongxingyu/Seer | /Diff-Raw-Data/14/14_80f1c7d20166cb7585f036146137d95b1511d784/SMExecutor/14_80f1c7d20166cb7585f036146137d95b1511d784_SMExecutor_s.java | UTF-8 | 4,629 | 2.515625 | 3 | [] | no_license | package org.x3.mail;
import java.util.ArrayList;
import java.util.HashMap;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginManager;
import org... | true |
a97284cde6d4191d1f7ae0c5106d3f4a23b613fe | Java | KingBowser/hatter-source-code | /commons/main/java/me/hatter/tools/commons/function/IndexedFilter.java | UTF-8 | 120 | 1.8125 | 2 | [] | no_license | package me.hatter.tools.commons.function;
public interface IndexedFilter<T> {
boolean accept(T obj, int index);
}
| true |
76c3694ef98571304eeeb57a52184608041164a5 | Java | at-study/at-study-java-core-3 | /src/main/java/lections/lesson5faq/arrays/Application2.java | UTF-8 | 1,009 | 3.421875 | 3 | [] | no_license | package lections.lesson5faq.arrays;
import java.util.Arrays;
import java.util.Random;
public class Application2 {
public static void main(String[] args) {
final int N = 9;
int[][] matrix = generateSquareMatrix(N);
printMatrix(matrix);
int max = Integer.MIN_VALUE;
for (in... | true |