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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
06ea9886fe77d213c9b8bc36fbb5ada18ee4898b | Java | OsDevCorp/BRS | /app/src/main/java/com/misis/brs/Database/HometaskDao.java | UTF-8 | 2,173 | 2.578125 | 3 | [] | no_license | package com.misis.brs.Database;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
/**
* список всех возможных запросов к DB для объекта Hometask
*/
@Dao
public interface HometaskDao {
/**
* добавляет запи... | true |
2919a256974b1dd0eaad5c8ea8e6a979cdad9548 | Java | BrendaQu/revature-exercises | /src/com/company/Q1.java | UTF-8 | 646 | 4.125 | 4 | [] | no_license | package com.company;
//Q1: Ask user to give two double input for length and breadth of a rectangle and print area type casted to int.
import java.util.Scanner;
public class Q1 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Please ente... | true |
0a3563ff09f4a13c7888eefdd363903cfa41ee1f | Java | gillax/mybatis-boot-sample | /src/main/java/example/mybatis/PersonMapper.java | UTF-8 | 421 | 2.078125 | 2 | [] | no_license | package example.mybatis;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface PersonMapper {
@Select("SELECT * FROM people")
List<Person> findAll();
List<Person> ... | true |
0dd2b7dfad86bb13a36c32e0f333f4ca133a107f | Java | Lxt000806/eclipse_workspace | /homeProject/src/com/house/home/dao/design/PrePlanAreaDao.java | UTF-8 | 6,575 | 1.78125 | 2 | [] | no_license | package com.house.home.dao.design;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.house.framework.bean.Result;
import com.house.framework.commons.orm.BaseDao;
import com.house.framework.commons.or... | true |
715789c0d0c3f4dadecf3c532014a8ff336e6f0b | Java | gayathri3636/Java-Guide | /src/example/multiplecatchblocks.java | UTF-8 | 505 | 3.390625 | 3 | [] | no_license | package example;
public class multiplecatchblocks {
public static void main(String[] args) {
try {
int a[]=new int[6];
a[6]=9;
int i =12;
int j=10;
int k=i/j;
System.out.println(k);
}
catch(ArithmeticException e) {
System.out.println("rest of code after handling exception");
}
catch(Ar... | true |
6ec4af444558c077c1c715373096be3efcecfc4e | Java | XWxiaowei/JavaCode | /design-patterns/src/main/java/com/flyweight/ConcreteFlyweight.java | UTF-8 | 377 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.flyweight;
//
//
// Generated by StarUML(tm) Java Add-In
//
// @ Project : Untitled
// @ File Name : ConcreteFlyweight.java
// @ Date : 2016/9/28
// @ Author :
//
//
public class ConcreteFlyweight extends Flyweight {
@Override
public void operation(int extrinsicstate) {
System.out.pr... | true |
fc23205bae3fbd910bd4c1d5649ff61082692cbf | Java | fernando-romulo-silva/myStudies | /java/quarkus/understanding-quarkus/understanding-quarkus-chapter12-putting-together/understanding-quarkus-chapter12-part01-rest-number/src/main/java/org/agoncal/fascicle/quarkus/number/IsbnNumbers.java | UTF-8 | 961 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package org.agoncal.fascicle.quarkus.number;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import javax.json.bind.annotation.JsonbProperty;
@Schema(description = "Several formats of book ISBN numbers")
public class IsbnNumbers {
@Schema(required = true)
@JsonbProperty("isbn_10")
priv... | true |
490a79f9242c6bd525577184be2878add6706848 | Java | aplucas/Projeto_ControlePonto | /src/controllers/CadastroApontamentoController.java | UTF-8 | 1,880 | 2.09375 | 2 | [] | no_license | package controllers;
import java.io.IOException;
import java.sql.Date;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... | true |
64973b5aa06c7d115c771889114375b0493a505a | Java | EduardNewtonReboucasDore/TrabalhoEngSoft | /pedraPapelTesoura/src/edu/trabalho01/miniKataFizzBuzzParcial/MiniKataFizzBuzzParcial.java | UTF-8 | 271 | 2.75 | 3 | [] | no_license | package edu.trabalho01.miniKataFizzBuzzParcial;
public class MiniKataFizzBuzzParcial {
public static String getMiniKataFizzBuzzParcial(Integer numero) {
if(numero % 3 == 0 || numero % 5 == 0) return "FizzBuzz";
return (Integer.toString(numero));
}
}
| true |
c58b00f9eb343cdd051a64e409d313b9c3dd70dd | Java | cckmit/fcs | /FBPM/PM-JCK/fcs-pm-facade-wsp/src/main/java/com/born/fcs/pm/ws/base/QueryPermissionPageBase.java | UTF-8 | 1,045 | 2.03125 | 2 | [] | no_license | package com.born.fcs.pm.ws.base;
import java.util.List;
/**
* 控制数据权限的分页查询
*
* 按人员维度查询 loginUserId
*
* 按部门维度查询 deptIdList
*
* 表单提交人 formSubmitManId
*
* @author wuzj 2016年4月29日
*
*/
public class QueryPermissionPageBase extends QueryPageBase {
private static final long serialVersionUID = 835019975185009... | true |
ed6d748a3476152ea280480cbde0bcbd4fe14fdb | Java | GeorgeMcLellan/GoalTrackingApp | /app/src/main/java/com/development/georgemcl/goaltracker/view/MainGoalView/MainGoalViewModel.java | UTF-8 | 954 | 2.390625 | 2 | [] | no_license | package com.development.georgemcl.goaltracker.view.MainGoalView;
import android.app.Application;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import com.development.georgemcl.goaltracker.data.repository.GoalRepository;
import com.development.georgemcl.goaltracker.model.Goal;
import... | true |
4b821bb1e14bcd862c2051993ddb3ada24e47c79 | Java | RUCKUSJERRY/JSP | /Jsp99_Practice/src/com/test/biz/TBiz.java | UTF-8 | 182 | 1.609375 | 2 | [] | no_license | package com.test.biz;
import java.util.List;
import com.test.dto.TDto;
public interface TBiz {
public TDto loginUser(String id, String pw);
public List<TDto> selectList();
}
| true |
c98c9b09caf56d1cfb36072276979dfd60a93666 | Java | yangliuwilow/myProjectCode | /java_base/src/com/willow/annotation/Demo.java | UTF-8 | 722 | 2.796875 | 3 | [] | no_license | package com.willow.annotation;
import java.lang.annotation.Annotation;
@MyAnnotation(value = "123",name = "willow")
public class Demo {
public static void main(String[] args) {
Demo demo=new Demo();
Annotation[] annotation = Demo.class.getAnnotations();
System.out.println("#######"+annot... | true |
d3d3904203c4fc8d6d2f910e6f717422321c65c5 | Java | pratt-eric000/CIT360 | /interface/src/java/com/prt/models/Table.java | UTF-8 | 966 | 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.prt.models;
import java.io.Serializable;
import java.util.ArrayList;
/**
*
* @author P-ratt
*/
public class Table impl... | true |
bc02d4b413e1b82b3e68a57ddac26f8ac9a855b0 | Java | aliali12345/old_learnhub | /src/main/java/org/learn/utils/FileUtil.java | UTF-8 | 2,841 | 2.53125 | 3 | [] | no_license | package org.learn.utils;
import org.learn.controller.PageController;
import org.learn.enums.ConstEnum;
import org.learn.enums.MessageEnum;
import org.learn.exception.CustomizeException;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServ... | true |
d57399547a2361b1fab94c874d2734501628e786 | Java | ucfyao/code_test_manager | /src/main/java/com/chainfuture/code/service/AssetService.java | UTF-8 | 212 | 1.617188 | 2 | [] | no_license | package com.chainfuture.code.service;
import com.chainfuture.code.bean.Asset;
import java.util.List;
/**
* Created by admin on 2018/11/1.
*/
public interface AssetService {
List<Asset> getAssetList();
}
| true |
4b0ed33af45a37d0ce872d8a755fd37fd96c54af | Java | chabala/swing-hacks-75 | /src/main/java/org/chabala/swinghacks/_75/WaveformDisplaySimulator.java | UTF-8 | 1,910 | 2.984375 | 3 | [] | no_license | package org.chabala.swinghacks._75;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.UnsupportedAudioFileException;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.io.BufferedInputStream;
import ... | true |
b253f01360f73be83b63bce1ae16dc42fed23831 | Java | Milan-Stankovic/ISA | /src/main/java/com/isa/ISA/dbModel/PolovanRekvizit.java | UTF-8 | 2,025 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.isa.ISA.dbModel;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Ma... | true |
1779a8200c22a6cf94851d42490c948871dd3b51 | Java | Paladin1412/house | /java/classes/cn/jiguang/b/a.java | UTF-8 | 1,091 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | package cn.jiguang.b;
import android.os.IBinder;
import android.os.IInterface;
public abstract interface a
extends IInterface
{
public abstract int a(String paramString, int paramInt);
public abstract long a(String paramString, long paramLong);
public abstract String a(String paramString1, String paramS... | true |
08597314badbd81cc1202848a5d2f77bc77180f1 | Java | skunal8197/class | /MP2/.svn/pristine/08/08597314badbd81cc1202848a5d2f77bc77180f1.svn-base | UTF-8 | 2,754 | 2.3125 | 2 | [] | no_license | package edu.ncsu.csc.itrust.action;
import java.util.List;
import junit.framework.TestCase;
import edu.ncsu.csc.itrust.beans.PatientBean;
import edu.ncsu.csc.itrust.beans.PersonnelBean;
import edu.ncsu.csc.itrust.beans.PrescriptionBean;
import edu.ncsu.csc.itrust.dao.DAOFactory;
import edu.ncsu.csc.itrust.datagenerato... | true |
b666cde1bc43a594560b9cd40e601f3cdfe94454 | Java | primetraineesix/happy-new-year | /src/automationtest/Variables_Q2.java | UTF-8 | 551 | 3 | 3 | [] | no_license | package automationtest;
/**
* Created by Jay Vaghani
*/
public class Variables_Q2 {
int id;
String name;
public Variables_Q2(int id, String name) {
this.id = id;
this.name = name;
}
public void display() {
System.out.println("This is id " + id);
System.out.printl... | true |
97eda97ac9e09cecb8df8ffcf107726fab7da793 | Java | PetrovNikolia/firm | /src/main/java/com/example/firm/exception/custom/MyBadRequest.java | UTF-8 | 322 | 2.1875 | 2 | [] | no_license | package com.example.firm.exception.custom;
import com.example.firm.exception.ErrorType;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class MyBadRequest extends RuntimeException {
private ErrorType errorType;
public MyBadRequest() {
this.errorType = ErrorType.BAD_REQUEST;
}
... | true |
e68b7eb7e2f0a7c8bf4452921b800fc0d0e5950e | Java | hmllr44/CricketHW | /src/CricketGame.java | UTF-8 | 3,794 | 3.625 | 4 | [] | no_license | public class CricketGame {
enum Outcome
{
TODO, TODOS, TODOOS; //TODO
}
/**
* Bowls the ball and updates the game state depending on the given outcome.
* Note that after a call to this method with Outcome.HIT,
* the ball will be in play (isInPlay() returns true).
*
* ... | true |
701e03cef5b2d5e4eba07d6575de5978070c0cb2 | Java | WhyDoWeLiveWithoutMeaning/ICS_Grd11 | /projects/PersonAssignment/Test.java | UTF-8 | 2,072 | 4.0625 | 4 | [] | no_license | /**
* This Program makes 100 Random People and Displays their Values
*
* @Author Eric Beaulne
* 2021/02/10
*/
package eric.projects.PersonAssignment;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.concurrent.ThreadLocalRandom;
public class Test {
public static void main(St... | true |
1373730b9b5bc2e0b72e7eb3cf35312644006f8b | Java | thoslin/ELF | /server/marketdata/elf.server.marketdata.provider.dbf/src/main/java/elf/server/marketdata/provider/dbf/security/SecurityDataManager.java | GB18030 | 4,412 | 2.078125 | 2 | [
"BSD-3-Clause"
] | permissive | package elf.server.marketdata.provider.dbf.security;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Servic... | true |
31001562dc4488be13dd0e331575023af3e6d15d | Java | James0128/FoodOnline | /src/com/foodonline/dao/impl/OrderDtsDAOImpl.java | UTF-8 | 945 | 2.25 | 2 | [] | no_license | package com.foodonline.dao.impl;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import com.foodonline.dao.OrderDtsDAO;
import com.foodonline.entity.Orderdts;
public class OrderDtsDAOImpl implements O... | true |
83c9b68912e3fc814753c691f22194dfd16e9c3d | Java | vr-rajesh/Online-Dry-Cleaning-Booking-Application | /springbootapp/src/main/java/com/cg/services/IPaymentService.java | UTF-8 | 582 | 1.992188 | 2 | [] | no_license | package com.cg.services;
import java.util.List;
import com.cg.entities.Payment;
import com.cg.exception.PaymentNotFoundException;
public interface IPaymentService {
public Payment addPayment(Payment payment);
public Payment removePayment(long paymentid) throws PaymentNotFoundException;
public Paymen... | true |
9cbe827bcd1988a0b3b93daabed2b2dc85085f7e | Java | andynvt/Attendance-RFID | /src/main/java/sukien/view/SuKien_ThemDS.java | UTF-8 | 28,628 | 1.828125 | 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 sukien.view;
import static administrator.settings.Config.bg_Color1;
import static administrator.settings.Config.bg_Color2;
imp... | true |
d17b5cfa3c65156b3b42936ae71e180bfad4cce1 | Java | vinods0905/java_Practices | /4th october finalkeywordurlnetworking/urlexample.java | UTF-8 | 358 | 2.703125 | 3 | [] | no_license | import java.net.*;
class urlexample{
public static void main(String args[]) throws Exception{
URL url=new URL("https://www.javatpoint.com/java-tutorial");
System.out.println("protocol:"+url.getProtocol());
System.out.println("host name:"+url.getHost());
System.out.println("portnumber:"+url.getPort());
System.out.pri... | true |
85937baa0764dbc427b490eee5ae63b4da4afe71 | Java | sahilthakar10/Mplayer_U | /app/src/main/java/com/example/mplayer_u/remote/Api.java | UTF-8 | 301 | 1.601563 | 2 | [] | no_license | package com.example.mplayer_u.remote;
import com.example.mplayer_u.Model.Gson_Note_Data;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface Api {
String BASE_URL = "https://knkcab.com/";
@GET("2.txt")
Call<List<Gson_Note_Data>> getHeroes();
}
| true |
6b5be6616f3088c8c71af15b18fee0941dcb0f85 | Java | Footing/Footing | /app/src/main/java/team/far/footing/ui/adapter/MapRyViewAdapter.java | UTF-8 | 5,077 | 1.953125 | 2 | [] | no_license | package team.far.footing.ui.adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | true |
68de3a966a04ab593c2993399669c3782f44fbf8 | Java | dlanza1/parquet-mr | /parquet-hadoop/src/main/java/parquet/hadoop/api/DelegatingWriteSupport.java | UTF-8 | 976 | 2.4375 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package parquet.hadoop.api;
import org.apache.hadoop.conf.Configuration;
import parquet.io.api.RecordConsumer;
/**
*
* Helps composing write supports
*
* @author Julien Le Dem
*
* @param <T>
*/
public class DelegatingWriteSupport<T> extends WriteSupport<T> {
private final WriteSupport<T> delegate;
publi... | true |
4c15f991fe81e3ddc72255db3c4b333a484c4481 | Java | HenryEtherington/problemSet1 | /Prob9.java | UTF-8 | 1,362 | 3.25 | 3 | [] | no_license |
import javax.swing.JOptionPane;
public class Prob9 {
public static void main(String args[]) {
int i, total=0, over=0, under=0;
String weightAsString;
double lightest=0;
double[] weight;
weight = new double[10];
for(i = 0; i < weight.length; i++)
{
weightAsString = ... | true |
0ea8941fc8d8205ebf6e5ce5d4286bb6faede029 | Java | sebaspapu/ventaBoleteria | /src/parcial1/VentaBoletas.java | UTF-8 | 5,610 | 2.96875 | 3 | [] | no_license | /*
*
*/
package parcial1;
import java.util.Scanner;
import javax.swing.JOptionPane;
/**
*
* @author SEBAS TU NEW PAPU
*/
public class VentaBoletas {
static int CantidadP;
static int opcionesTribuna;
static String N[] ;
static String A[];
static String D[] ;
static int... | true |
23ffd84a3c6a295e301e6c385cbb1ddbae58b7ca | Java | KauaiGuarilha/E_CupomFiscal-RESTful | /workspace/VendaProduto/src/main/java/br/com/vendaProduto/domain/Item_Cupom.java | UTF-8 | 2,075 | 2.28125 | 2 | [] | no_license | package br.com.vendaProduto.domain;
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;
/**
*
* @author Kauai Guarilha
*... | true |
f7210e9b7de66324cf2578239f5d02bbd179a25e | Java | khush7894/seat-plan-generator | /src/main/java/com/seating/plan/generator/system/entity/LkpCourse.java | UTF-8 | 2,456 | 2.3125 | 2 | [] | no_license | package com.seating.plan.generator.system.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
/**
* The persistent class for the lkp_course database table.
*
*/
@Entity
@Table(name="lkp_course")
@NamedQuery(name="LkpCourse.findAll", query="SELECT l FROM ... | true |
31308e70e85958f37aa8db36fc73b57eec3bf3ef | Java | deepti102915/exercise.maven_concurrency2 | /src/test/java/com/github/perschola/MyObjectTestPart2B.java | UTF-8 | 348 | 2.265625 | 2 | [] | no_license | package com.github.perschola;
import org.junit.Assert;
import org.junit.Test;
public class MyObjectTestPart2B {
@Test
public void testRun() { // TODO
// Given
MyObjectPart2B myObject = new MyObjectPart2B();
// when
myObject.run();
//then
Assert.assertNotNull(my... | true |
90e5441e82b2d98d0b4dfe06456fc2392c1e74e2 | Java | sk5593/service-found | /src/main/java/com/service/found/controller/IndexController.java | UTF-8 | 1,311 | 1.929688 | 2 | [] | no_license | package com.service.found.controller;
import com.github.pagehelper.PageInfo;
import com.service.found.entity.IndexEntity;
import com.service.found.service.IndexService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTempl... | true |
012f1addea5d1629da43cb503e38d8433300d375 | Java | InverseLina/search | /src/main/java/com/jobscience/search/web/AppAuthRequest.java | UTF-8 | 13,430 | 1.578125 | 2 | [] | no_license | package com.jobscience.search.web;
import java.io.UnsupportedEncodingException;
import java.sql.SQLException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.servlet.http.Cookie;
import com.jobscience.search.exception.InjectException;
i... | true |
750724e7b07206140b9a4b501b58e1ef589b42ed | Java | ArdyJunata/SDA | /SDA_Ardy/src/LatihanTree/Tree.java | UTF-8 | 3,312 | 3.234375 | 3 | [] | no_license | package LatihanTree;
public class Tree {
private Node root;
private int jumlah;
public Tree() {
root = null;
}
public void insert(String s) {
Convert c = new Convert(s);
s = c.inToPost();
Stck1 stk = new Stck1(s.length());
s = s + "#";
... | true |
c5f37350c25779d811b6228633a9dee561d9eda1 | Java | cdh0912/dreamcatcher2 | /dreamcatcher/src/com/dreamcatcher/route/model/RouteDto.java | UTF-8 | 1,661 | 1.929688 | 2 | [] | no_license | package com.dreamcatcher.route.model;
public class RouteDto {
private int route_id;
private String title;
private String id;
private String name;
private String logtime;
private String route_url;
private int recommend;
private int rec_percent;
private int reply_count;
private int rep_percent;
... | true |
672e99546f27a2deecd42fd32a08537427c2a42c | Java | Jabidex3/CoreJavaStandAloneShoppingApp | /src/com/shoppingapp/model/Customer.java | UTF-8 | 1,388 | 2.78125 | 3 | [] | no_license | package com.shoppingapp.model;
import java.util.ArrayList;
import java.util.List;
public class Customer {
private int customerId;
private String name;
private String email; //unique
private String password;
private List<Invoice> orders;
public Customer() {
super();
}
public Customer(int customerId, Strin... | true |
79a9d745dac5fd7db6a3a3efa94653a7462c72d9 | Java | AnDev2023/RevoluTap | /app/src/main/java/com/github/budsterblue/revolutap/MenuFileChooser.java | UTF-8 | 13,218 | 2.15625 | 2 | [
"BSD-3-Clause"
] | permissive | package com.github.budsterblue.revolutap;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recycler... | true |
e2703c622b3172ce874c8ee571d36cf38744c2c6 | Java | freemanh/cjx-web | /src/main/java/com/chejixing/socket/parser/AuthMessageParser.java | UTF-8 | 824 | 2.21875 | 2 | [] | no_license | package com.chejixing.socket.parser;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import org.apache.mina.core.buffer.IoBuffer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereo... | true |
8a719d57925e7b94bcf84adb1019ba88e6f0f3f8 | Java | eneselibol/springbootcrudwtihthymeleaf | /src/main/java/com/eneselibol/crudwtihthymeleaf/controller/EmployeeController.java | UTF-8 | 6,585 | 2.125 | 2 | [] | no_license | package com.eneselibol.crudwtihthymeleaf.controller;
import com.eneselibol.crudwtihthymeleaf.model.Employee;
import com.eneselibol.crudwtihthymeleaf.model.Permits;
import com.eneselibol.crudwtihthymeleaf.model.Roles;
import com.eneselibol.crudwtihthymeleaf.repository.PermitsRepository;
import com.eneselibol.crudwtihth... | true |
4db02e9c89baa294e5ff8219298d80b3942d6ac7 | Java | xuelianhan/basic-algos | /src/main/java/org/ict/algorithm/leetcode/breadthfirstsearch/WordLadder.java | UTF-8 | 11,143 | 3.828125 | 4 | [] | no_license | package org.ict.algorithm.leetcode.breadthfirstsearch;
import java.util.*;
/**
* A transformation sequence from the word beginWord to word endWord using a dictionary wordList is a sequence of
* words beginWord -> s1 -> s2 -> ... -> sk such that:
*
* Every adjacent pair of words differs by a single letter.
* Ever... | true |
eeb3f333dc6f98dc2e4196830e333d5633198c81 | Java | Jonas-Szum/JavaParser-Function-Injector | /codio_env/cs474-hw1/test/edu/uic/cs474/hw1/Test30_OutsideClassReturnsNewLine.java | UTF-8 | 497 | 2.828125 | 3 | [] | no_license | package edu.uic.cs474.hw1;
import org.junit.Assert;
import org.junit.Test;
public class Test30_OutsideClassReturnsNewLine {
private Helper helper = new Helper();
@Test
public void test() {
String expected = "{-helper:This is\\na line change}";
Assert.assertEquals(expected, new Test30_Outs... | true |
89dd66e270ce3f33d37167e54557ee67f51d1627 | Java | fonuhuolian/XNohttp | /xnohttp/src/main/java/org/fonuhuolian/xnohttp/callback/XNoHttpCallBack.java | UTF-8 | 877 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.fonuhuolian.xnohttp.callback;
import android.content.Context;
import org.fonuhuolian.toast.XToastUtils;
import org.fonuhuolian.xnohttp.base.XLoadingBaseDialog;
import org.fonuhuolian.xnohttp.base.XNoHttpBaseCallBack;
/**
* 作者: macpro on 2018/6/17.
* 邮箱: xxx.com
*/
public abstract class XNoHttpCallBac... | true |
4a1586e08ff93268699335c29356853c2a70b2d4 | Java | CTMM-TraIT/trait_bmia | /currentServer/software/nbia-web/src/gov/nih/nci/nbia/servlet/BasketDownloadServlet.java | UTF-8 | 2,131 | 2.421875 | 2 | [] | no_license | package gov.nih.nci.nbia.servlet;
import gov.nih.nci.nbia.util.NCIAConfig;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.serv... | true |
215a999ef91ff1b0adc97bcc6b990d0469d30ac0 | Java | Arthur-qin/cloud-hub | /cloud-activity/src/main/java/com/arthur/cloud/activity/model/enums/ActivityEnums.java | UTF-8 | 390 | 2.359375 | 2 | [] | no_license | package com.arthur.cloud.activity.model.enums;
public enum ActivityEnums {
/**
* 待发布
*/
WAITING("待发布"),
/**
* 进行中
*/
PROGRESS("进行中"),
/**
* 已结束
*/
FINISH("已结束");
private String name;
ActivityEnums(String name){this.name = name;}
public String getName... | true |
6c4a6385e2a0879ff92e9bfcbfffaa76db1d4048 | Java | Rock-fact/mishpahug | /app/src/main/java/com/kor/foodmanager/ui/eventInfo/myEventInfoPending/MyEventInfoPendingFragment.java | UTF-8 | 3,466 | 1.929688 | 2 | [] | no_license | package com.kor.foodmanager.ui.eventInfo.myEventInfoPending;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View... | true |
d27deaba3c895369e554e89277962bb1d272c14b | Java | namendes/aggregated-delivery | /pactronics/site/components/src/main/java/com/bloomreach/commercedxp/demo/pactronics/spa/channel/WebsiteInfo.java | UTF-8 | 1,181 | 1.976563 | 2 | [] | no_license | package com.bloomreach.commercedxp.demo.pactronics.spa.channel;
import org.hippoecm.hst.configuration.channel.ChannelInfo;
import org.hippoecm.hst.core.parameters.FieldGroup;
import org.hippoecm.hst.core.parameters.FieldGroupList;
import org.hippoecm.hst.core.parameters.JcrPath;
import org.hippoecm.hst.core.parameters... | true |
7d069330db34a5cd06589cbd1365f661294e6dea | Java | HPxianliru/demo | /imgmap/src/main/java/com/imgmap/controller/CenterController.java | UTF-8 | 665 | 1.835938 | 2 | [] | no_license | package com.imgmap.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... | true |
5d7e46152a12a0c24bac27913ea3dab56703c360 | Java | SAC-CS-112-Pulido-Matthew/Dice | /src/Game.java | UTF-8 | 350 | 3.109375 | 3 | [] | no_license |
public class Game {
public static void main(String[] args) {
int sidesTimesSix = 2; // enter 1 then sides = 6
int trials = 5; // number of rolls
Dice dice = new Dice (sidesTimesSix, trials);
for (int i = 0; i < trials; i++)
{
dice.getRoll();
dice.playGame();
}
dice.displayTrials();
... | true |
35681d73abec3c5a81a217de1ab2c89df5d70b82 | Java | AmalAbdullaev/TreeAssist | /src/test/java/com/youngbrains/treeassist/web/rest/ProfileResourceIntTest.java | UTF-8 | 43,965 | 1.6875 | 2 | [] | no_license | package com.youngbrains.treeassist.web.rest;
import com.youngbrains.treeassist.TreeassistApp;
import com.youngbrains.treeassist.domain.Profile;
import com.youngbrains.treeassist.domain.User;
import com.youngbrains.treeassist.repository.ProfileRepository;
import com.youngbrains.treeassist.service.ProfileService;
impor... | true |
0227928bc252196a2862aea2f7e4556295c395df | Java | umangbhatia/workspace | /Recursion/src/NumberKeypadBetter.java | UTF-8 | 954 | 3.1875 | 3 | [] | no_license | import java.util.Scanner;
public class NumberKeypadBetter {
public static String[] text(int n, String[] options){
if(n==0){
String output[]={""};
return output;
}
int lastDigit = n%10;
String lastDigitOptions = options[lastDigit];
String[] smallOutput = text(n/10, options);
String output[]= new Stri... | true |
2617568bae538ee70853fd4b780bd3ceb3888518 | Java | juliusnarh/AMS-CURRENT | /app/src/main/java/com/telpo/usb/finger/entities/Pc.java | UTF-8 | 2,296 | 1.992188 | 2 | [] | no_license | package com.telpo.usb.finger.entities;
// Generated Dec 14, 2017 8:28:43 PM by Hibernate Tools 4.3.1
/**
* Pc generated by hbm2java
*/
public class Pc implements java.io.Serializable {
private String pcid;
private String lbcid;
private String buyingcenter;
private String names;
private String ... | true |
6632483d8058e4e7d172e49d43e8dd09b847aba7 | Java | mhtoyoda/bots | /icaptor-core/src/main/java/com/fiveware/model/message/MessageParameterAgentBot.java | UTF-8 | 1,072 | 2.09375 | 2 | [] | no_license | package com.fiveware.model.message;
import java.io.Serializable;
public class MessageParameterAgentBot implements Serializable{
private String typeParameterName;
private Boolean typeParameterExclusive;
private Boolean typeParameterCredential;
private String parameterValue;
public String getTypeParameterName() ... | true |
421137d3d8da02f1fd2b5162f19b797d7f424c73 | Java | SystemaAS/syjservicescommon | /src/main/no/systema/jservices/common/dao/KosttDao.java | UTF-8 | 500 | 1.882813 | 2 | [] | no_license | package no.systema.jservices.common.dao;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
/**
* Teller for misc in Kostnadsföring
*
* @author fredrikmoller
* @dato 2018-09-19
*/
@Data
public class KosttDao implements IDao {
private String ktna;
private Integer ktnr;
private String kttyp;... | true |
b2d63af13090b638864b9842614cec182d2dbaba | Java | caseyrodgers/cm | /src/main/java/hotmath/cm/assignment/AssignmentLessonPidSelector.java | UTF-8 | 9,429 | 2.140625 | 2 | [] | no_license | package hotmath.cm.assignment;
import hotmath.assessment.AssessmentPrescription;
import hotmath.assessment.InmhItemData;
import hotmath.assessment.RppWidget;
import hotmath.cm.util.CatchupMathProperties;
import hotmath.gwt.cm_admin.server.model.CustomQuizQuestionManager;
import hotmath.gwt.cm_core.client.model.CustomP... | true |
213f2da56c569c133cdedc6a1c8c711741bce020 | Java | vietthai2512/FinalProject-1 | /src/main/java/com/zeroToHero/FinalProject/database/dbPrep/DBPrepMain.java | UTF-8 | 1,277 | 2.46875 | 2 | [] | no_license | package com.zeroToHero.FinalProject.database.dbPrep;
import com.zeroToHero.FinalProject.database.queries.prepQueries.CreateQuery;
import com.zeroToHero.FinalProject.database.queries.prepQueries.DropQuery;
import com.zeroToHero.FinalProject.database.queries.prepQueries.PopulateQuery;
import java.sql.SQLException;
pub... | true |
b303b44bf081fcb7ead19edff92d2af04f55f309 | Java | CarlhuGit/Redis | /src/main/java/com/atguigu/test/JedisPoolTest.java | UTF-8 | 464 | 2.171875 | 2 | [] | no_license | package com.atguigu.test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
public class JedisPoolTest {
public static void main(String[] args)
{
JedisPool pool = JedisPoolUtils.getInstance();
Jedis jedis = null;
try
{
jedis = pool.getResource();
jedis.se... | true |
aeda3aabbf65e5f2dfb8775b682e333d3f0bb91c | Java | cetusDownfall/exercises | /exercises/java-exercises/wireworld/WireAnim.java | UTF-8 | 6,479 | 2.453125 | 2 | [] | no_license | package cellularAutomata.wireworld;
import cellularAutomata.utils.*;
import javafx.animation.Animation;
import javafx.animation.Timeline;
import javafx.util.Duration;
import javafx.animation.KeyFrame;
import javafx.scene.image.WritableImage;
import javafx.scene.image.PixelWriter;
import javafx.scene.layout.BorderPane;
... | true |
866c9bfcc1528cd612920855d620f8d3469aba6a | Java | cesariux23/congresos | /src/main/resources/entity/Municipio.java | UTF-8 | 961 | 2.09375 | 2 | [] | no_license | package entity;
// Generated 19/05/2017 05:19:01 PM by Hibernate Tools 4.3.1
/**
* Municipio generated by hbm2java
*/
public class Municipio implements java.io.Serializable {
private int idMunicipio;
private Estado estado;
private String nombre;
public Municipio() {
}
public Municip... | true |
5a5f474e70c093b516968d2c7090d067d6794f55 | Java | flywind2/joeis | /src/irvine/oeis/a233/A233428.java | UTF-8 | 665 | 2.421875 | 2 | [] | no_license | package irvine.oeis.a233;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A233428 Number of tilings of a <code>3 X 5n</code> rectangle with <code>3n</code> pentominoes of any shape.
* @author Georg Fischer
*/
public class A233428 extends GeneratingFunctionSeq... | true |
ee3a5197c7f643b4eaca44912a754615ab4910e7 | Java | lucky7886/Code9 | /Programs/basics/src/basics/RecursionExample.java | UTF-8 | 499 | 3.78125 | 4 | [] | no_license | package basics;
import java.io.*;
public class RecursionExample {
public static void main(String[] args)throws Exception {
BufferedReader m = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a number: ");
int x = Integer.parseInt(m.readLine());
System.out.printf("The factorial of the nu... | true |
628840ada9b73348d6aac11fe5a2e656acd36e6f | Java | ashwith8790/hubbiproject | /src/main/java/com/hubster/model/GoalModel.java | UTF-8 | 665 | 2.140625 | 2 | [] | no_license | package com.hubster.model;
import java.util.List;
public class GoalModel {
private List<GoalModel> goalModel;
private int cgoal_id;
public int getCgoal_id() {
return cgoal_id;
}
public void setCgoal_id(int cgoal_id) {
this.cgoal_id = cgoal_id;
}
public List<GoalModel> getGoalModel() {
return goalMod... | true |
6e439d2230f61b3fd9f85384c8a7489e121ca508 | Java | mwbuda/sabrasInterviewExamples | /interviewExample/src/sabras/example/account/AccountUtility.java | UTF-8 | 3,843 | 2.671875 | 3 | [] | no_license | package sabras.example.account;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
public class AccountUtility {... | true |
dfad0f999b8ccecba6960ebbb854043330215c7c | Java | huyho1012/HahaloloScript | /src/main/Project/Newsfeed/Common/UpdateInfo/FirstUpdatePopUpUI.java | UTF-8 | 1,485 | 1.703125 | 2 | [] | no_license | package Newsfeed.Common.UpdateInfo;
public class FirstUpdatePopUpUI {
public static final String FORM_UPDATE_INFO = "//form[@class ='form-verify-account-info']";
public static final String DATE_SELECTED_DROPDOWN = "//input[@placeholder ='%s']";
public static final String DATE_SELECTED_ITEM = "//input[@plac... | true |
a18d2e05cf9bb860a09d82cc0c20e2d54d0cfba9 | Java | faygao52/FITII | /BoardManagementApp/MCUmanager/src/com/FSL/mcuTracker/EditInfo.java | UTF-8 | 9,332 | 1.8125 | 2 | [] | no_license | package com.FSL.mcuTracker;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultH... | true |
f0e77fa5b68b708d782cfa8de958007392cb9b59 | Java | iagoaraujo/si1-lab2-hackfest | /app/models/Hackfest.java | UTF-8 | 2,290 | 2.640625 | 3 | [] | no_license | package models;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType... | true |
282d70362a9088b55b74a2ded39a4d4f46d109ed | Java | jhonmario14/clinica-back | /src/java/ModeloDAO/AnimalDAO.java | UTF-8 | 5,101 | 2.453125 | 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 ModeloDAO;
import Configuracion.conexion;
import InterfaceCRUD.CRUD;
import ModeloDTO.AnimalDTO;
import Configuracion.conexion... | true |
d18525d9066f2cbb17eac3b6dc9c37f7bb4a1c79 | Java | ONSdigital/rm-case-service | /src/test/java/uk/gov/ons/ctp/response/casesvc/message/CaseReceiptReceiverTest.java | UTF-8 | 6,091 | 1.820313 | 2 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | package uk.gov.ons.ctp.response.casesvc.message;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static uk.gov.ons.ctp.response.casesvc.representation.CategoryDTO.CategoryName.OFFLIN... | true |
6cec7fb036c6f53eb65ffd54e7e9b1208d90dea7 | Java | jineshshah3001/PicShare | /src/main/java/com/example/demo/service/UploadToS3.java | UTF-8 | 2,244 | 2.375 | 2 | [] | no_license | package com.example.demo.service;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.ModelAndView;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCrede... | true |
3c80c96a0cec7539dafcac325a5e9ec20882e9aa | Java | prendConnor/FitnessApp | /app/src/test/java/com/example/cse110_project/HomeScreenUnitTest.java | UTF-8 | 1,956 | 2.171875 | 2 | [] | no_license | package com.example.cse110_project;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androidx.test.core.app.ActivityScenario;
import androidx.test.ext.junit.rules.ActivityScenarioRule;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import or... | true |
a5531520b38607aea9eac1a3d8417649921b0d5a | Java | thierrydoucet/Mower | /Mower/src/test/java/fr/xebia/entretientechnique/thierrydoucet/mower/test/builder/InputStreamGardenBuilderTest.java | UTF-8 | 2,231 | 2.59375 | 3 | [] | no_license | package fr.xebia.entretientechnique.thierrydoucet.mower.test.builder;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import java.io.ByteArrayInputStream;
import java.io.Unsupporte... | true |
9fa386d644bd145f82c813b77618805ca0914bd1 | Java | ghuntley/TraceTogether_1.6.1.apk | /jadx/sources/o/C2707.java | UTF-8 | 6,371 | 2.28125 | 2 | [] | no_license | package o;
import java.io.FilterInputStream;
import java.io.InputStream;
/* renamed from: o.ҝІ reason: contains not printable characters */
public final class C2707 extends FilterInputStream {
/* renamed from: ı reason: contains not printable characters */
private final int f12520;
/* renamed from: Ɩ ... | true |
f6667b13ced77f1dc0f7880557edec848a7bc09e | Java | mchackteam/obejscie | /src/main/java/net/jared/pr0xy/mc/status/NetHandlerStatusClient.java | UTF-8 | 3,661 | 1.914063 | 2 | [] | no_license | package net.jared.pr0xy.mc.status;
import java.util.ArrayList;
import java.util.UUID;
import net.jared.pr0xy.mc.play.INetHandler;
import net.jared.pr0xy.mc.server.Player;
import net.jared.pr0xy.mc.status.client.C00PacketServerQuery;
import net.jared.pr0xy.mc.status.client.C01PacketPing;
import net.jared.pr0xy.mc.stat... | true |
56d75e2ee90eced793bf0e63098ca712d6ffe47e | Java | lennart-m/superfractals-and-visualizations | /Discrete Sets and Maps/src/de/lennartmeinhardt/math/discrete2d/set/shapes/BaseRectangle.java | UTF-8 | 1,223 | 3.546875 | 4 | [] | no_license | package de.lennartmeinhardt.math.discrete2d.set.shapes;
/**
* A simple immutable {@link DiscreteRectangle} implementation.
*
* @author Lennart Meinhardt
*/
public class BaseRectangle implements DiscreteRectangle {
// the bounds
private final int left;
private final int bottom;
private final int r... | true |
87a5e444ec36096f16cc3669b45d75ff155960f8 | Java | debenito/AgendaLogic | /Agenda-v.1/src/junta/agenda/editor/ContenedorContacto.java | ISO-8859-10 | 2,112 | 3.28125 | 3 | [] | no_license | package junta.agenda.editor;
import java.awt.Point;
import junta.agenda.agrupacion.Agrupacion;
import junta.agenda.agrupacion.Contacto;
/**
*
* @author Jose Antonio de Benito Suarez
* @version v17/02/2016 Interfaz con metodos implementados por los tipos de
* contenedor existente
*/
public class Conten... | true |
4f1c9ced131f61062b08cbb5541fac430a09de4c | Java | MierQQ/Lab2_Java | /src/main/java/Application/ExecutorPackage/Factory/Block/BlockClasses/SortBlock.java | UTF-8 | 1,130 | 2.984375 | 3 | [] | no_license | package Application.ExecutorPackage.Factory.Block.BlockClasses;
import Application.ExecutorPackage.Exceptions.BlockException;
import Application.ExecutorPackage.Factory.Block.BlockType;
import Application.ExecutorPackage.Factory.Block.IBlock;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List... | true |
50e64655f92963a9bc46e6de71c46f3649fdd1d7 | Java | alansparrow/honest_mockingbird_android | /app/src/main/java/com/trungbao/honestmockingbird/service/NewsFirebaseMessagingService.java | UTF-8 | 1,305 | 2.234375 | 2 | [] | no_license | package com.trungbao.honestmockingbird.service;
import android.os.Handler;
import android.util.Log;
import android.widget.Toast;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.messaging.FirebaseMessaging;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.f... | true |
82bcd4d9de64dbae8e93df47dbe739e84b78e1cd | Java | SavageLabs/SavageWands | /src/main/java/net/prosavage/savagewands/hooks/impl/VaultHook.java | UTF-8 | 702 | 1.984375 | 2 | [] | no_license | package net.prosavage.savagewands.hooks.impl;
import net.milkbowl.vault.economy.Economy;
import net.prosavage.savagewands.SavageWands;
import net.prosavage.savagewands.hooks.PluginHook;
import org.bukkit.plugin.RegisteredServiceProvider;
public class VaultHook implements PluginHook<VaultHook> {
@Overri... | true |
caabc6eb2d346bc92ef6d1c70a05ebf4dc6ee450 | Java | Calo-missile/GooglePlay | /app/src/main/java/com/hsc/googleplay/ui/view/RatioLayout.java | UTF-8 | 3,028 | 2.46875 | 2 | [] | no_license | package com.hsc.googleplay.ui.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import com.hsc.googleplay.R;
import com.hsc.googleplay.utils.LogUtils;
/**
* 自定义控件,按比例来决定布局高度
* Created by 15827 on 2017/5/22.
*/
public ... | true |
31b9deac7ba676c28fe7ef56c7f8e35af6fa4ed2 | Java | KrotSV/ksp | /src/main/java/spring/tutorial/interfaces/EventLogger.java | UTF-8 | 143 | 1.976563 | 2 | [] | no_license | package spring.tutorial.interfaces;
import spring.tutorial.bins.Event;
public interface EventLogger {
public void logEvent(Event event);
}
| true |
d310f602fbed28e459327f00d3ac139eec640576 | Java | Seungwoon12/kh | /day15/src/oop/poly1/ZFlip.java | UTF-8 | 353 | 2.515625 | 3 | [] | no_license | package oop.poly1;
public class ZFlip extends Phone{
@Override
public void call() {
System.out.println("ZFilp의 전화 기능 실행!");
}
@Override
public void sms() {
System.out.println("ZFlip의 문자 기능 실행!");
}
@Override
public void camera() {
System.out.println("ZFilp의 카메라 기능 실행");
}
} | true |
c2914701c835a61c59099a7dabd4896c1746148e | Java | abcdfabcdf/6Days | /src/com/sixdays/userMember/controller/userProfileImageDeleteServlet.java | UTF-8 | 3,006 | 2.140625 | 2 | [] | no_license | package com.sixdays.userMember.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSes... | true |
38c492055ac12bd4c29f5b49f903915bec085566 | Java | mihailtsanovv/https---github.com-mihailtsanovv-Workshop-ucn | /Code/src/DB/DBInvoice.java | UTF-8 | 4,136 | 2.78125 | 3 | [] | no_license | package DB;
import Control.CtrSale;
import DB.*;
import Model.*;
import java.sql.*;
import java.util.ArrayList;
public class DBInvoice implements IFDBInvoice {
private Connection con;
CtrSale sc = new CtrSale();
public DBInvoice() {
con = DBConnection.getInstance().getDBcon();
}
@Override
public ArrayList<... | true |
83bcfe70f7fb9251a966b3f034e6586cf7e53100 | Java | zengsn/wesites | /src/legacy/_irest-massage-chair/src/main/java/com/gizwits/service/UserManagement.java | UTF-8 | 2,851 | 2.375 | 2 | [] | no_license | package com.gizwits.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import com.gizwits.dao.UserRepository;
import com.gizwits.domain.User;
/**
* @au... | true |
d71bf607bc9e21c37c023ff96201c2c5918c8e63 | Java | jenkinsci/jexl | /src/test/org/apache/commons/jexl/IfTest.java | UTF-8 | 5,390 | 2.90625 | 3 | [
"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 |
4c36355bbfa7b0941e2c1636cdf56d9497f5cd35 | Java | dawidkaluza/quizzer | /category-service/src/main/java/org/quizzer/category/dto/base/CategoryDtoMapper.java | UTF-8 | 520 | 2.140625 | 2 | [] | no_license | package org.quizzer.category.dto.base;
import org.quizzer.category.domain.Category;
import org.quizzer.category.dto.DtoMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
@Component
public class CategoryDtoMapper implements DtoMapper<Category, CategoryDto> {
@Overr... | true |
cde8df420603b0f195621dfae553893118188245 | Java | JisooOh94/Algorithm | /LeetCode/medium/Maximum_Points_You_Can_Obtain_from_Cards/Solution.java | UTF-8 | 1,200 | 3.078125 | 3 | [] | no_license | package medium.Maximum_Points_You_Can_Obtain_from_Cards;
import org.junit.Test;
import util.PerformanceUtil;
public class Solution {
@Test
public void execute() {
// int[] nums = new int[]{1,2,3,4,5,6,1}; int left = 3;
int[] nums = new int[]{1,79,80,1,1,1,200,1}; int left = 3;
PerformanceUtil.beforeTest();
S... | true |
77a041280bfd9eec279f9783e599a9a48cab27bf | Java | nagendraksrivastava/doc-ocean-consumer-app-android | /app/src/main/java/customer/dococean/com/patient/network/response/myappointment/Address.java | UTF-8 | 1,598 | 2.171875 | 2 | [
"MIT"
] | permissive | package customer.dococean.com.patient.network.response.myappointment;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Address {
@SerializedName("address_line")
@Expose
private String addressLine;
@SerializedName("city")
@Expose
privat... | true |
9318f7ac1ee6eb90e869c510c945eae734417f6b | Java | YuChengHup/Hs-The-flower-shoping | /src/main/java/com/hs/mapper/SizeMapper.java | UTF-8 | 502 | 2.0625 | 2 | [] | no_license | package com.hs.mapper;
import com.hs.entity.Size;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (Size)表数据库访问层
*
* @author makejava
* @since 2021-10-22 20:54:50
*/
public interface SizeMapper {
/**
* 通过ID查询单条数据
*
* @param sizId 主键
* @return 实例对象
*/
Siz... | true |
45587ef108f6b12e48e75b7fb43d3f8339d30781 | Java | Valexx55/adglow_dev | /adglowjse/src/main/java/imcdfi/IMCImpl.java | UTF-8 | 220 | 2.46875 | 2 | [] | no_license | package imcdfi;
public class IMCImpl implements IMCI {
public float calcula (Persona persona)
{
float imc = 0;
imc = (persona.getPeso()/(persona.getAltura()*persona.getAltura()));
return imc;
}
}
| true |
55f5d431e0ebd45808a6df84712bc3e945b9cad1 | Java | lkmoreira/YesChamix | /Old/yeschamixv2/trunk/codigo_fonte/WORKSPACE/yeschamixv2/src/br/com/gv8/yeschamix/configuracaobd/controller/ConfigService.java | UTF-8 | 776 | 2.171875 | 2 | [] | no_license | package br.com.gv8.yeschamix.configuracaobd.controller;
import br.com.gv8.yeschamix.configuracaobd.business.ConfigBOService;
import br.com.gv8.yeschamix.configuracaobd.business.ConfigBOServiceImpl;
public final class ConfigService{
private ConfigBOService service;
/*SINGLETON*/
private static Config... | true |
4cb0a1859291a6b2abba5c1f4eebdc3aa357f629 | Java | slowice/Best-Practice | /data/src/main/java/xb/data_construct/collection/CollectionSome.java | UTF-8 | 2,501 | 3.46875 | 3 | [] | no_license | package xb.data_construct.collection;
import lombok.extern.slf4j.Slf4j;
import java.util.*;
/**
* List Set Map有哪些实现类?是否线程安全?他们是怎么做到增删查的?
*/
@Slf4j
public class CollectionSome {
/**List
* 有序,可重复
* ArrayList,Vector,LinkedList
* ArrayList:底层数据结构是数组,查询快,增删慢。
* 底层是数组,增删元素需要重新生成数组,查找时间... | true |
fbe7ec64984a874c5211aeefe23235831bdcb06a | Java | shaya2468/oow_final | /backend/server/src/main/java/com/shaya/woo/entities/Position.java | UTF-8 | 2,747 | 2.375 | 2 | [] | no_license | package com.shaya.woo.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
public class Posit... | true |
1f01fd5df7ea6d5967e9ebfaaa496da7878f85fa | Java | wangqinyu/sky-root | /sky-adapter-kidcrm/src/main/java/com/sky/skyadapterkidcrm/service/inter/TaskResultService.java | UTF-8 | 435 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.sky.skyadapterkidcrm.service.inter;
import com.sky.skyentity.bean.TaskResultParams;
import com.sky.skyentity.entity.TaskResult;
import com.sky.skyadapterkidcrm.exception.BaseException;
import java.util.List;
public interface TaskResultService {
//条件查询
List<TaskResult> findByParams(TaskResultParam... | true |
9a51185ee111e70c02d6ec3811fb58f5f48f9cf2 | Java | autotraderuk/traverson4j | /traverson4j-core/src/main/java/uk/co/autotrader/traverson/link/hal/EmbeddedArrayNameHandler.java | UTF-8 | 1,299 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package uk.co.autotrader.traverson.link.hal;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import uk.co.autotrader.traverson.link.LinkDiscoverer;
import static java.util.Collections.emptyList;
class EmbeddedArrayNameHandler implements LinkDiscoverer {
private final LinksRelHand... | true |