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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4e75eecec7937b79c7c284ca0684d8afe7c8cd5f | Java | PavelMel/widget-manager | /src/test/java/com/miro/interview/widgetmanager/repositories/db/DBWidgetRepositoryTest.java | UTF-8 | 1,188 | 1.90625 | 2 | [] | no_license | package com.miro.interview.widgetmanager.repositories.db;
import com.miro.interview.widgetmanager.repositories.IWidgetRepository;
import com.miro.interview.widgetmanager.repositories.memory.InMemoryWidgetRepositoryTest;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowi... | true |
481ffaa45f75e05f979f7b1d79c7f545e178b081 | Java | NagaPavanVeerisetti888/Pavan | /Assignment2/ConnectionJDBC.java | UTF-8 | 666 | 2.640625 | 3 | [] | no_license | package com.friendsBook;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionJDBC {
static Connection con;
public static Connection connection()
{
//Connection con = null;
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
/... | true |
72ecc26c77fc7238fa7f9b9d591460c60e800ffb | Java | dizoe/ScoreKeeper | /app/src/main/java/com/example/android/scorekeeper/MainActivity.java | UTF-8 | 2,277 | 2.484375 | 2 | [] | no_license | package com.example.android.scorekeeper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
int scoreBatman = 0;
int scoreSuperman = 0;
@Override
protected void o... | true |
6c7040c722622c14e9ca78b233979992db54761c | Java | openharmony-gitee-mirror/global_i18n_lite | /tools/i18n-dat-tool/src/main/java/ohos/global/i18n/StringPool.java | UTF-8 | 4,171 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | true |
f8ea55fe4268840bb4491aeb2b4b4aa878da0ba5 | Java | rushmaa/INFS3634-ENGAGE-1.0 | /app/src/main/java/infs3634/service/DropboxApi.java | UTF-8 | 2,528 | 2.3125 | 2 | [] | no_license | package infs3634.service;
import android.net.Uri;
import com.dropbox.core.DbxDownloader;
import com.dropbox.core.DbxException;
import com.dropbox.core.DbxRequestConfig;
import com.dropbox.core.v1.DbxEntry;
import com.dropbox.core.v2.DbxClientV2;
import com.dropbox.core.v2.files.FileMetadata;
import com.dropbox.core.v... | true |
9d54adcbd885501a6fec7aa02514623ce1e05039 | Java | kocsis931122/DOJO_JAVA | /customindexofstring/CustomIndexOf.java | UTF-8 | 882 | 3.515625 | 4 | [] | no_license | package customindexofstring;
import java.util.Arrays;
public class CustomIndexOf
{
public static int indexOf(String string, int startIndex, char ch)
{
for (int i = startIndex; i < string.length(); i++)
{
if (string.charAt(i) == ch)
{
return i;
}
}
return -1;
}
public static int indexOf(Strin... | true |
66ecaecc3e1f612a931cd2ee63e2789662b3e227 | Java | cs2103jan2016-t15-1j/main | /src/lifetracker/calendar/DeadlineTask.java | UTF-8 | 1,799 | 3 | 3 | [] | no_license | package lifetracker.calendar;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lifetracker.calendar.visitor.EntryVisitor;
//@@author A0108473E
/**
*
* Represents a task with a deadline.
*
*/
public class DeadlineTask extends GenericEntry {
private LocalDateTime deadline;
public Dea... | true |
62558877aaec1057b6ee8569afbf5a836b255db8 | Java | giovaniqwer/lp2 | /exercicio2/Aluno.java | UTF-8 | 1,188 | 3.640625 | 4 | [] | no_license | public class Aluno {
String nome, numeroMatricula;
int idade;
public void imprimirDadosCadastrais(String nome, String numeroMatricula, int idade){
System.out.println("Nome:" + this.nome + " - Idade:"+ this.idade + " - Matrícula:"+ this.numeroMatricula);
}
public static void main(String... | true |
2961ea7224dd3bfa5dad31d209fa539b31ba1cb1 | Java | cgq199746/bdc-pro | /bdczyxt/web/src/main/java/com/bdc/BdcApplication.java | UTF-8 | 977 | 1.765625 | 2 | [] | no_license | package com.bdc;
import com.bdc.interceptors.WebInterceptorAdapter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
impo... | true |
87b3a54db484b407e72e4da29292846ebb279d50 | Java | madou07ca/SchoolProject1.0 | /src/partieConsole/Individu.java | UTF-8 | 5,038 | 2.21875 | 2 | [] | no_license | /**
*
*/
package partieConsole;
import java.sql.Date;
/**
* @author Mamadou bobo
*
*/
public abstract class Individu {
private int idIndividu;
private String nomIndividu;
private String prenomIndividu;
private String genreIndividu;
private Date dateNaissIndividu;
private String LieuNaissI... | true |
6ef3d27354042db9e8069a5328a9e9574fe8c24f | Java | RobotCloud/MiShop | /src/com/robot/web/servlet/GoodsServlet.java | UTF-8 | 1,545 | 2.234375 | 2 | [] | no_license | package com.robot.web.servlet;
import com.robot.pojo.Goods;
import com.robot.pojo.Types;
import com.robot.service.GoodsService;
import com.robot.service.TypesService;
import com.robot.service.impl.GoodsServiceImpl;
import com.robot.service.impl.TypesServiceImpl;
import javax.servlet.annotation.WebServlet;
import java... | true |
72db7f635691253953b436a5ebdcfff7b0c4a098 | Java | tashiscool/RallyBuddy | /src/main/java/model/com/rallydev/webservice/v1_34/domain/User.java | UTF-8 | 12,040 | 1.664063 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.06.07 at 09:26:4... | true |
6e778e7e4c421ee1b8d52aceffdbf45442ac7936 | Java | DDTH/DASP | /bundle_framework/src/ddth/dasp/framework/bo/BaseBoManager.java | UTF-8 | 2,992 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package ddth.dasp.framework.bo;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import org.osgi.framework.BundleContext;
import org.springframework.osgi.context.BundleContextAware;
/**
* Uses this class as starting point for Business Object manager.
*... | true |
3b128ff7d88ad3f9b003b81f9e971267f49e08fa | Java | kstew16/oop2017440140 | /20180424 packageTest/src/TEW2/Rosemary.java | UHC | 181 | 1.976563 | 2 | [] | no_license | package TEW2;
public class Rosemary extends TEW1.Dog {
public Rosemary() {
protectedField = "test"; //protected ˴ϴ.
//privateField ="Ǿ߾Ƥ";
}
}
| true |
690ae4020e57ae9599c314666f7e153132aacbd6 | Java | emilstahl97/Networks-and-Communication-IK1203 | /Project/task4/ConcHTTPAsk.java | UTF-8 | 858 | 3.5 | 4 | [] | no_license | /* This program is a concurrent server that creates a new thread for each request it gets.
*
* @author Emil Stahll
* Date January 28th 2019
*/
import java.net.*;
import java.io.*;
public class ConcHTTPAsk {
public static void main(String[] args) throws IOException {
//take in port as argument, 8888 as d... | true |
bcb67e020a464f761cf1be887d9911516849d6d8 | Java | vpasuma/pictHasher | /RGBPixelData.java | UTF-8 | 1,432 | 3.328125 | 3 | [] | no_license | import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
/**
* pictHasher - RGBPixelData
*
* This program takes in an image and gets all
* of the RGB values from it. All of the RGB values
* are then added up and the resulting sum is then
* multiplied by 3 and returned. Th... | true |
9f1a2b9a3ff57876906da51260dfd803f9a3abfa | Java | a-kunitskaya/java-tasks | /src/main/java/com/kunitskaya/module8/domain/Like.java | UTF-8 | 828 | 2.21875 | 2 | [] | no_license | package com.kunitskaya.module8.domain;
import java.sql.Timestamp;
public class Like {
private int postId;
private int userId;
private Timestamp timestamp;
public int getPostId() {
return postId;
}
public void setPostId(int postId) {
this.postId = postId;
}
public int... | true |
6f3234c991352689f5d331fb7c7bc8b9f249899a | Java | JavaFreshMen/test | /src/main/java/com/njusoft/its/dao/BusDao.java | UTF-8 | 333 | 1.90625 | 2 | [] | no_license | package com.njusoft.its.dao;
import java.util.List;
import com.njusoft.its.domain.Bus;
public interface BusDao {
/**
* 加载所有的车辆信息
* @return
* @throws Exception
*/
public List<Bus> loadAllBuses() throws Exception;
public List<Bus> loadBuses();
public List<Bus> queryGlobalList() throws Exception;
}
| true |
610de2ce3fc04e789477c9d9e085521c6da73061 | Java | benhe119/fakegumtree | /src/com/gumsis/checkui/ActOpenApp.java | UTF-8 | 1,346 | 1.6875 | 2 | [] | no_license | package com.gumsis.checkui;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import com.gumsis.Realtalk;
import com.gumsis.base.BaseActivity;
import com.gumsis.mess.model.MessageEvent;
import de.greenrobot.event.EventBus;
public class ActOpenApp
extends BaseActivity... | true |
81b295fe3d7a229d4f98bafa9dd3b5f1f10ba65a | Java | LostAndFoundJava/NoticeforLost | /src/main/java/com/nfl/pojo/NflCommentsUsers.java | UTF-8 | 215 | 1.742188 | 2 | [] | no_license | package com.nfl.pojo;
public class NflCommentsUsers extends NflPostRelation {
private NflUsers user;
public NflUsers getUser() {
return user;
}
public void setUser(NflUsers user) {
this.user = user;
}
}
| true |
c019d2d0beed4b11405af2a52914d9d8e6c0f49c | Java | titanium-knights/team-a-2020-2021 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/auto/ShayPath.java | UTF-8 | 1,034 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.auto;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.trajectory.Trajectory;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.drive.SampleMecanumDrive;
public class ShayPath extends LinearOp... | true |
caa150b736250d36833bc49ce0b8fa2b10c8623f | Java | mihir-kandoi/SmartDoorLock | /app/src/main/java/com/mihirkandoi/smartdoorlock/MainActivity.java | UTF-8 | 4,995 | 2.046875 | 2 | [] | no_license | package com.mihirkandoi.smartdoorlock;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.media.AudioAttributes;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handle... | true |
ec2f32713edc6439fb46fe54f34912465e86ad9f | Java | kinjaltumbadiya/Alerts-Remainder-Application | /Alerts/src/com/example/alerts/RowItemAnniversary.java | UTF-8 | 1,492 | 2.25 | 2 | [] | no_license | package com.example.alerts;
public class RowItemAnniversary {
private int imageId;
private String name;
private String patnername;
private String datee;
private String path,mobile,idd;
public RowItemAnniversary(int imageId, String name, String patnername,String mobile ,String datee,String pa... | true |
97e696eecadac4144be6220b05a40c3ee879d806 | Java | rohan92-code/Java | /Array/BinarySearch.java | UTF-8 | 2,549 | 3.984375 | 4 | [] | no_license | /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Test
{
public static int BinarySearch(int arr[],int low, int high,int x){
if(low>end) return -1;
... | true |
12199a37c00937e85b2cba17e44137b3b6baf01d | Java | scribble/scribble.github.io | /src/main/jbake/assets/docs/scribble/modules/linmp-scala/src/main/java/ast/local/LocalRec.java | UTF-8 | 1,486 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package ast.local;
import java.util.Set;
import ast.name.RecVar;
import ast.name.Role;
public class LocalRec implements LocalType
{
//public final Role self;
public final RecVar recvar;
public final LocalType body;
//public LocalRec(Role self, RecVar recvar, LocalType body)
public LocalRec(RecVar recvar, Lo... | true |
fec698fa839b4160b83ff156b0e257e68b86bf5e | Java | Discovery147/wmsApplication | /wmsServerCopy/src/main/java/Service/SorterOperations.java | UTF-8 | 4,774 | 2.234375 | 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 Service;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistenc... | true |
3ab4735e37adad19ddc9bde6856a384bdf70b8ed | Java | IDSCN/IDS-AppStore | /src/main/java/io/dataspaceconnector/service/resource/type/EndpointService.java | UTF-8 | 1,501 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Fraunhofer Institute for Software and Systems Engineering
* Copyright 2021 Fraunhofer Institute for Applied Information Technology
*
* 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 t... | true |
d86f6a1475d2e10a569baaf93f4e3d3d9fffdf7f | Java | TessiMarks/WT | /Java/Opdracht_6.java | UTF-8 | 1,046 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
class Opdracht6 {
public static void main(String[] args) {
System.out.println("OPDRACHT 6");
Scanner myScan = new Scanner(System.in);
System.out.print("Typ hier een tekst: ");
String input = myScan.nextLine();
myScan.close();
char charArray[... | true |
e0a60de0dd2eb6b93f024ff8c3d29533f6f396fb | Java | IntelligenceTest/IATS | /code/code-analyzer/source/biz-auction/biz-auction-service/src/main/java/com/autostreets/biz/auction/mapper/AuctionDataUploadMapper.java | UTF-8 | 2,465 | 1.960938 | 2 | [] | no_license | package com.autostreets.biz.auction.mapper;
import java.util.List;
import java.util.Map;
import com.autostreets.biz.auction.domain.AuctionDataUploadVO;
import com.autostreets.biz.auction.model.AuctionDataUpload;
import com.autostreets.biz.auction.model.AuctionDataUploadExample;
import com.autostreets.framework.common... | true |
ab5a039101995469ba9c27a994cf3609b3692b10 | Java | vikram-niit/niit-ecommerce-project | /ShoppingCartBackEnd/src/main/java/com/niit/shoppingcart/dao/ProductDao3.java | UTF-8 | 1,158 | 2.484375 | 2 | [] | no_license | package com.niit.shoppingcart.dao;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.orm.hibernate4.HibernateTemplate;
import com.niit.shoppingcart.model.Product;
@Transactional
public class ProductDao3 {
public ProductDao3(HibernateTemplate temp... | true |
b20daaff5c151afd082e326bfbe794fb2831ce3e | Java | sumanssaha1993/RepoTestApp | /Vuri_Voj/src/com/jspiders/controller/SearchFoodController.java | UTF-8 | 1,281 | 2.3125 | 2 | [] | no_license | package com.jspiders.controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.s... | true |
4aa5fb1600c417136663cb707364112193c881fc | Java | daMaoCoding/project1 | /src/main/java/com/xinbo/fundstransfer/newinaccount/dto/input/UpdateBindInputDTO.java | UTF-8 | 801 | 1.796875 | 2 | [] | no_license | package com.xinbo.fundstransfer.newinaccount.dto.input;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.xinbo.fundstransfer.newinaccount.dto.CommonTypeDTO;
import lombok.Data;
import lombok.ToString;
import javax.validation.constraints.NotN... | true |
c149489b32c9c48d31f0ca57d59ac2cf124ad63c | Java | flyfishboy/Project-summary | /shopping-parent/sellergoods-service/src/main/java/com/nchu/sellergoods/service/impl/SpecificationServiceImpl.java | UTF-8 | 2,847 | 2.1875 | 2 | [] | no_license | package com.nchu.sellergoods.service.impl;
import java.util.List;
import com.nchu.mapper.SpecificationOptionMapper;
import com.nchu.model.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.Page;
import com.github.pagehelper... | true |
4948152ae875e71f444e0822c58d50b56e1a8aa9 | Java | megbers/JPantry | /src/main/java/org/egbers/homeautomation/kitchen/upc/net/ConnectionUtil.java | UTF-8 | 683 | 2.453125 | 2 | [] | no_license | package org.egbers.homeautomation.kitchen.upc.net;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class ConnectionUtil {
private URL serviceURL;
public BufferedReader createBufferedReader(HttpURLConnecti... | true |
1c6dd1bbc802e9e11736896d5b29284a8054f29f | Java | mrSerhan/replit | /src/Replit1/replit137_main.java | UTF-8 | 450 | 2.71875 | 3 | [] | no_license | package Replit1;
public class replit137_main {
public static void main(String[] args) {
replit137_car car1 = new replit137_car("Toyota", "Prius", 4, 120, 30000.0);
replit137_car car2 = new replit137_car("Toyota", "Prius", 120, 30000.0);
replit137_car car3 = new replit137_car(4, 120, 30000.0);
replit137_car... | true |
ed655ae3ec4da6f114a6c735600b1682c045dc08 | Java | krishnact/projects | /ccif/src/java/other/org/himalay/ccif/ServerReply.java | UTF-8 | 7,197 | 2.234375 | 2 | [] | no_license | // Copyright (2013) Krishna C Tripathi. All rights reserved.
//
// You are not allowed to read/copy/distribute following code without explicit written authorization from Krishna C Tripathi
//
package org.himalay.ccif ;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;... | true |
342f843919e5f7f98359774e9939a94d2d28ca6e | Java | m3rv3s/zerotohero | /src/StringPackage/StringSplitMethod.java | UTF-8 | 1,140 | 3.578125 | 4 | [] | no_license | package StringPackage;
import java.util.Arrays;
public class StringSplitMethod {
public static void main(String[] args) {
String SchoolName = "Techtorial Academy 2019 September April";
String[] words = SchoolName.split(" ");
System.out.println(Arrays.toString(words));
for (Stri... | true |
352a6e4ae6820ddf12ef12004c81c88b0adf4552 | Java | DiegoNoble/LectorXMLIntranet | /src/main/java/com/LectorXML/bingo/beans/BingoStf.java | UTF-8 | 1,037 | 2.0625 | 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.LectorXML.bingo.beans;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.io.Serializable;
imp... | true |
5aabc7a6cb1627d65d180c04fd4d538b2db780c3 | Java | mix1992/projekt_zppj | /src/main/java/pl/com/radio/endpoints/RadioEndpoint.java | UTF-8 | 1,471 | 2.53125 | 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 pl.com.radio.endpoints;
import annotations.AuthRequired;
import io.swagger.annotations.Api;
import java.io.IOException;
import... | true |
d600edf158a372288bc76064211c6107c8e675a3 | Java | KaraUz/JavaEE_TrobeliuNuoma | /src/main/java/lt/vu/mif/trobeliunuoma/PirmasBean.java | UTF-8 | 1,897 | 2.28125 | 2 | [] | no_license | package beans;
import java.util.Date;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.ejb.AfterBegin;
import javax.ejb.AfterCompletion;
import javax.ejb.Stateful;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.inject.Named;... | true |
7de32be1038345f0649d3df6a18811489bb9c997 | Java | hsaffrey/rmr | /src/main/java/Services/AlbumService.java | UTF-8 | 2,772 | 2.46875 | 2 | [] | no_license | package Services;
import Models.Album;
import Models.Song;
import Models.UtilModels.ServiceResponse;
import Models.UtilModels.StatusError;
import com.mongodb.MongoException;
import org.apache.log4j.Logger;
import org.mongojack.DBQuery;
import org.mongojack.JacksonDBCollection;
import spark.utils.StringUtils;
import j... | true |
41400bebf4e171cfd72d294d49f651c57a7a46dd | Java | ahmedRaaj/TeamElevenCarousell | /app/src/main/java/carousell/teameleven/com/teamelevencarousell/data/Items.java | UTF-8 | 2,267 | 2.59375 | 3 | [] | no_license | package carousell.teameleven.com.teamelevencarousell.data;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import carousell.teameleven.com.teamelevencarousell.json.JSONParser;
/**
* Created by DELL on 12/21/2016.
*/
public class Items extends java.util.Ha... | true |
859c06df8175bcb0f6f263a4350c5ff0568ca930 | Java | hjsw1/DataStructures | /DataStructure/src/list/MyArrayList.java | GB18030 | 3,443 | 3.59375 | 4 | [] | no_license | package list;
import java.util.Comparator;
@SuppressWarnings("all")
public class MyArrayList<E> implements MyList<E>{
private Object[] value;
private int elements; //ЧԪظ
private static int defalutCapacity = 10; //Ĭ
private static int defaultIncrement = 5; //Ĭ
public MyArrayList() {
this(defalutCapacity);
}
... | true |
32dd6105454db7eeb101b441705e5a1744d30ccb | Java | maniaclee/codebot-web | /src/main/java/psyco/codebot/web/controller/RestApiController.java | UTF-8 | 1,002 | 2.171875 | 2 | [] | no_license | package psyco.codebot.web.controller;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import psyco.codebot.web.core.Consts;
import psyc... | true |
f410e39e91845b69752f5177bbec7890c6ae3840 | Java | roshan989/miniPro-MVC | /target/generated-sources/annotations/com/mini/rk/DbController.java | UTF-8 | 1,025 | 1.882813 | 2 | [] | no_license | package com.mini.rk;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.R... | true |
de472aedd1836c229ca69533b7f7c47b45c8f61c | Java | NeverRaR/BookHub_backend | /src/main/java/com/bookhub/service/BookOrderService.java | UTF-8 | 7,418 | 2.3125 | 2 | [] | no_license | package com.bookhub.service;
import com.bookhub.dao.*;
import com.bookhub.error.*;
import com.bookhub.model.*;
import com.bookhub.util.Result;
import com.bookhub.util.SessionValidator;
import com.bookhub.view.DetailedOrderInformation;
import com.bookhub.view.OrderInformation;
import com.bookhub.view.ViewSingleOrderInf... | true |
29180e4ed1d919ead945b423f2a956f5b45ab2a1 | Java | mumuyuanbao/Live_Team | /src/main/java/com/live/liveteam/vo/CouponVO.java | UTF-8 | 2,410 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.live.liveteam.vo;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 作者: XW
* 时间: 2019/10/14 16:48
* 描述:
*/
@ApiModel(value = "优惠券页面展示对象")
public class CouponVO {
@ApiModelProperty("优惠券对应id")
private Lo... | true |
b6a71d6c02888aba8cb7c27660a3a8ca158b1125 | Java | algerd/ai | /ai-fsm/Chapter2_code/Ch2_modify/WestWorld_final_state_manager/src/FSM/Telegram.java | UTF-8 | 3,576 | 3.359375 | 3 | [] | no_license |
package FSM;
public class Telegram implements Comparable {
private static int counter;
/**
* these telegrams will be stored in a priority queue.
* Therefore the > operator needs to be overloaded so that the PQ can sort the telegrams by time priority.
* Note how the times must be smaller than ... | true |
1420fac1c28bf820b9a251afb45daaf5ae0c4ca5 | Java | yunsean/yoga | /yoga-business/yoga-content/src/main/java/com/yoga/content/article/ao/FocusCount.java | UTF-8 | 895 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.yoga.content.article.ao;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
public class FocusCount {
private Long tenantId;
private String articleId;
private Integer commentCount;
private Intege... | true |
266ae88dca288dec5ba2d2290661a9d9270cf9cc | Java | rluchnikov/Spring-cloud-example | /catalog-service/src/main/java/java/com/github/example/catalog/client/AuthServiceClient.java | UTF-8 | 351 | 1.953125 | 2 | [] | no_license | package java.com.github.example.catalog.client;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;
@FeignClient(name = "auth-service")
public interface AuthServiceClient {
@RequestLine("GET /auth/location?username={username}")
String getLocation(@Param("... | true |
75fbc8be279ec1a40843b60c0287391d516aeb4f | Java | munivictoria/sgmdv | /Habilitaciones/src/com/trascender/habilitaciones/recurso/persistent/TipoTasa.java | UTF-8 | 17,117 | 1.835938 | 2 | [] | no_license | package com.trascender.habilitaciones.recurso.persistent;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
impor... | true |
0af3e0d7b5962b4c3db86bfc89ff55c2861d6757 | Java | justinsb/cloudata | /cloudata-blocks/src/main/java/com/cloudata/blockstore/iscsi/LoginResponse.java | UTF-8 | 2,300 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.cloudata.blockstore.iscsi;
import io.netty.buffer.ByteBuf;
import com.google.protobuf.ByteString;
public class LoginResponse extends IscsiResponse {
public byte versionMax = 0;
public byte versionActive = 0;
public Stage currentStage;
public Stage nextStage;
public ByteString isid;
... | true |
cf3a1ded77d826ae91b0fa07c542507ac66ef256 | Java | sdjkfjjso/jdbcTest | /src/com/neuedu/jdbcTest/test/Show.java | UTF-8 | 1,396 | 2.890625 | 3 | [] | no_license | package com.neuedu.jdbcTest.test;
import com.neuedu.jdbcTest.uitl.*;
import java.util.Scanner;
public class Show {
private Scanner input = new Scanner(System.in);
public void showment() {
while (true) {
System.out.println("*******欢迎登陆本学生管理系统*******");
System.out.println("请选择功... | true |
03fea2522922fb202de75849ae462b0209d32483 | Java | andreigabor21/SDI | /lab9x-andreigabor21/gun-shop-backend/catalog-web/src/main/java/ro/ubb/catalog/web/dto/FullRentalDto.java | UTF-8 | 301 | 1.695313 | 2 | [] | no_license | package ro.ubb.catalog.web.dto;
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Builder
public class FullRentalDto {
private Long clientId;
private String clientName;
private Long gunTypeId;
private String gunTypeName;
private Integer price;
}
| true |
d44b7cac7764b1ffe22dbd4684029c7a3dacd313 | Java | sagarjate91/Equipment | /src/main/java/com/measuring/equipment/repository/EquipmentRepository.java | UTF-8 | 237 | 1.671875 | 2 | [] | no_license | package com.measuring.equipment.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.measuring.equipment.model.Equipment;
public interface EquipmentRepository extends JpaRepository<Equipment, Long>{
}
| true |
78f4c4b0500a05a40a487d0bd52ae2e47a956ad0 | Java | JoanRibot/biciPalma | /Bicipalma/src/main/java/tarjetaUsuario/Autentificacion.java | UTF-8 | 93 | 1.71875 | 2 | [] | no_license | package tarjetaUsuario;
public interface Autentificacion {
public boolean isActiva();
}
| true |
7165581da98bbf6c922c30cca99fee8ffe89871a | Java | anandp504/dco-joz | /src/com/tumri/joz/utils/ZipCodeHandle.java | UTF-8 | 2,340 | 2.25 | 2 | [] | no_license | /*
* ZipCodeHandle.java
*
* COPYRIGHT (C) TUMRI INC. ALL RIGHTS RESERVED. TUMRI AND LOGO ARE
* EITHER TRADEMARKS OR REGISTERED TRADEMARKS OF TUMRI. ALL OTHER COMPANY,
* PRODUCTS, AND BRAND NAMES ARE TRADEMARKS OF THEIR RESPECTIVE OWNERS. ALL MATERIAL
* CONTAINED IN THIS FILE (INCLUDING, BUT NOT LIMITED TO, TEX... | true |
fc7e2b1a49134f61a330d20de1d8af018e7427a7 | Java | 8emi95/elte-ik-pt1 | /gy/javaprog/_OOTPJava2/Mintaprogramok/12Applet/audiocliptest/AudioClipTest.java | ISO-8859-2 | 768 | 2.84375 | 3 | [] | no_license | /*
* Mintaprogramok/12. fejezet
* AudioClipTest.java
*
* Angster Erzsbet: OO tervezs s programozs, Java II. ktet
* 2005.01.10.
*/
import java.applet.Applet;
import java.applet.AudioClip;
import java.io.*;
import java.net.URL;
public class AudioClipTest {
public static void main(String[] args) {
try {
... | true |
ca6e3968c8f7cabd21d1ed1f27624ac8dfdf8a30 | Java | ztchen89/dbunitTest | /src/com/ztchen/util/AbstractDbutilTestCase.java | UTF-8 | 2,783 | 2.40625 | 2 | [] | no_license | package com.ztchen.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import org.dbunit.DatabaseUnitException;
import org.dbunit.database.DatabaseCo... | true |
174146b65c3e06c9598cc26d0ad8370af7ae844d | Java | SrRomaris/java-etherpad-lite | /src/test/java/net/gjerull/etherpad/client/EPLiteConnectionRandomTest.java | UTF-8 | 1,483 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package net.gjerull.etherpad.client;
import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
import com.pholser.junit.quickcheck.Property;
import org.junit.Before;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
@RunWith(JUnitQuickcheck.class)
public class EPLiteConnectionRandomTest {
pri... | true |
787eee1343998f87016155f2aac519f8e5485f85 | Java | dlrow/p-t | /src/main/java/com/pt/teacher/helper/dto/StudentDetailsDTO.java | UTF-8 | 1,298 | 2.28125 | 2 | [] | no_license | package com.pt.teacher.helper.dto;
import lombok.Data;
/**
* Purpose:-This StudentDetailsDTO holds the details related to particular student which belong to some school
*
* @author Priyanshu Raj
* @version 1.0
* @since 2019-08-01
*/
@Data
public class StudentDetailsDTO {
/**
* represent the student... | true |
d2cce7b9f617c76c1a4c096cd0724932be48ba4f | Java | caixiang1019/mybatis-plus-i18n | /src/main/java/com/cx/plugin/annotations/I18nDomainScan.java | UTF-8 | 564 | 1.65625 | 2 | [] | no_license | package com.cx.plugin.annotations;
import org.springframework.context.annotation.Import;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by caixiang on 2017/9/26.
*/
@Retention(RetentionPo... | true |
368e23be3d00da7d951ff9b78da593086f6eeac9 | Java | SoftEng-HEIGVD/Teaching-HEIGVD-RES-2020-Chill | /src/main/java/ch/heigvd/res/chill/domain/0x47726579/Chimaek.java | UTF-8 | 403 | 2.328125 | 2 | [] | no_license | package ch.heigvd.res.chill.domain.wasadigi;
import ch.heigvd.res.chill.domain.IProduct;
import java.math.BigDecimal;
public class Chimaek implements IProduct
{
public final static String NAME = "Chimaek";
public final static BigDecimal PRICE = new BigDecimal(12.99);
@Override
public String getName()
{
... | true |
fb6485a07eb2b075005382a0950e803d86593e53 | Java | mayanchao/test | /sp2/src/main/java/com/mana/web/project/login/service/LoginService.java | UTF-8 | 216 | 1.53125 | 2 | [] | no_license | package com.mana.web.project.login.service;
import java.util.List;
import com.mana.web.project.login.vo.MyLoginForm;
public interface LoginService {
public List<MyLoginForm> login(MyLoginForm myLoginForm);
}
| true |
0c524e603df679e8049e409df26345394149ebda | Java | abhis021/pepcoding-java-course | /sumoftwoint.java | UTF-8 | 630 | 3.734375 | 4 | [] | no_license |
public class sumoftwoint {
public static void main(String[] args)
{
int x=15;
int y=10;
int sum= x+y;
int prd=x*y;
int v1=x/y;
int v2=y/x;
int v3=x%y;
int exp=prd/sum;
int exp2=(int)Math.pow(2,3);
System.out.println("Sum of " +x+"... | true |
927bf78223ab752fe5691c1db589d0ddba43df82 | Java | Vinodi-skLee/TodoListSQL | /src/com/todo/dao/TodoItem.java | UTF-8 | 3,250 | 2.765625 | 3 | [] | no_license | package com.todo.dao;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TodoItem {
private String priority;
private String level;
private String title;
private String category;
private String desc;
private String due_date;
private String current_date;
public int is_compl... | true |
ad3d8c1022baece17355c5f58adb2e9d0fc5e585 | Java | chunhui2001/damiaa-api | /src/main/java/net/snnmo/controller/CommonController.java | UTF-8 | 10,929 | 1.640625 | 2 | [] | no_license | package net.snnmo.controller;
import net.snnmo.assist.ApiResult;
import net.snnmo.assist.Common;
import net.snnmo.assist.DeliveryCompany;
import net.snnmo.assist.OrderStatus;
import net.snnmo.dao.IOrderDAO;
import net.snnmo.dao.IQrcodeDAO;
import net.snnmo.entity.OrderEntity;
import net.snnmo.entity.OrderEventEntity;
... | true |
84d99bb8421be0d4d5887037fb8fe7241636e671 | Java | Dminter/timepill | /app/src/main/java/com/zncm/timepill/utils/DbUtils.java | UTF-8 | 21,775 | 1.867188 | 2 | [] | no_license | package com.zncm.timepill.utils;
import android.content.Context;
import com.alibaba.fastjson.JSON;
import com.j256.ormlite.android.apptools.OpenHelperManager;
import com.j256.ormlite.dao.RuntimeExceptionDao;
import com.j256.ormlite.stmt.DeleteBuilder;
import com.j256.ormlite.stmt.QueryBuilder;
import com.zncm.timepil... | true |
d9ad5f26f0fc1b623c90d05d3a8123b114fc7a92 | Java | vincetreur/Postman | /postman-compiler/src/main/java/com/appsingularity/postman/compiler/PostmanProcessor.java | UTF-8 | 2,955 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.appsingularity.postman.compiler;
import com.appsingularity.postman.annotations.PostmanEnabled;
import com.appsingularity.postman.compiler.model.CollectedClass;
import com.appsingularity.postman.compiler.model.CollectedClasses;
import com.appsingularity.postman.compiler.writers.CollectedClassWriter;
import... | true |
bf0d21e77bed5f8e2c1e65655f4277143cc8ca2a | Java | wsguyue/MiuiCamera | /com/android/camera/ui/GridSettingTextPopup.java | UTF-8 | 5,148 | 1.796875 | 2 | [] | no_license | package com.android.camera.ui;
import android.content.Context;
import android.support.v7.recyclerview.R;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.android.camera.preferences.Ic... | true |
3f5705af3d11863f7e12de5bd95f1c31707b0f7f | Java | victorpaulo/Sample-tool-MQ-Broker | /src/br/com/company/gui/StressGUI.java | UTF-8 | 31,166 | 1.570313 | 2 | [] | no_license | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, ... | true |
d0039aab92c730a336787fb69f0576b1c5896a3f | Java | mudriver/TurfClubOriginal | /xmlToRacingPost/hibernateConfig/TePension.java | UTF-8 | 2,468 | 2.109375 | 2 | [] | no_license | // default package
// Generated 28-Apr-2015 14:57:35 by Hibernate Tools 3.4.0.CR1
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.p... | true |
445ad3a1961073c56b99042bda64b5bc307a945e | Java | Mengbuxiu/demo-springboot-interview | /src/main/java/com/java_feature/learn_reflect/entity/E.java | UTF-8 | 74 | 1.59375 | 2 | [] | no_license | package com.java_feature.learn_reflect.entity;
public enum E {
A,B
}
| true |
fd9907077c72d27baf87f68ec6d8cb7c49030c17 | Java | apache/dubbo-spi-extensions | /dubbo-serialization-extensions/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/avro/AvroObjectInputOutputTest.java | UTF-8 | 5,539 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
a654db69b5ad18b9a348f676ad49dcf382397bd4 | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kr/co/popone/fitts/viewmodel/refund/detail/RefundDetailViewModel$getRefundDetailInfo$4.java | UTF-8 | 511 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package kr.co.popone.fitts.viewmodel.refund.detail;
import io.reactivex.functions.Consumer;
final class RefundDetailViewModel$getRefundDetailInfo$4<T> implements Consumer<Throwable> {
final /* synthetic */ RefundDetailViewModel this$0;
RefundDetailViewModel$getRefundDetailInfo$4(RefundDetailViewModel ... | true |
7f10931cbdf378d20056733c3f0cd74f264c24ca | Java | xulanliang/reservoir_Repositoy | /reservoir/reservoir-api/src/main/java/com/dse/reservoir/api/tableEdit/pojo/CdjcxxbModel.java | UTF-8 | 6,138 | 2.0625 | 2 | [] | no_license | package com.dse.reservoir.api.tableEdit.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.validator.constraints.Length;
import javax.persistence.*;
import java.io.Serializable;
import java.u... | true |
0bca4e6276a8e268ea2c33907a72aa0a3dfcec4f | Java | andrebondesan/omenu | /core/src/main/java/br/com/noviapp/core/model/Comanda.java | UTF-8 | 3,418 | 2.015625 | 2 | [] | no_license | package br.com.noviapp.core.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;... | true |
175730d7ccf645bb0e88644587f41d8cb620fff7 | Java | sun361113244/DataAnalysis | /src/main/java/rbac/service/RegUserService.java | UTF-8 | 296 | 1.929688 | 2 | [] | no_license | package rbac.service;
import rbac.entity.RbacRegUser;
import java.util.List;
public interface RegUserService
{
List<RbacRegUser> selectAllRegUsers();
RbacRegUser selectRegUserByID(Integer id);
int insertRegUser(RbacRegUser rbacRegUser);
int deleteRegUserByID(Integer id);
}
| true |
aca1f77ca66ac7bd3e1425cefcc5c65fd5d7b8f9 | Java | yutayouguan/yue_music | /app/src/main/java/ml/yike/yueyin/receiver/PlayerManagerReceiver.java | UTF-8 | 6,676 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package ml.yike.yueyin.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.util.Log;
import android.widget.Toast;
import ml.yike.yueyin.database.DBManager;
import ml.yike.yueyin.fragment.PlayBarFragment;
im... | true |
58ee0190e9ce15c7b684abf793eadac864205996 | Java | cha63506/CompSecurity | /GooglePlay_source/src/com/google/android/gms/games/proto/PlayGames$PlaylogRtmpWaitingRoomSession.java | UTF-8 | 10,889 | 1.757813 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.games.proto;
import com.google.protobuf.nano.CodedInputByteBufferNano;
import com.google.protobuf.nano.CodedOutpu... | true |
5c9e18d6fb7a9acb0a2bff70920e7a9e026d2fd4 | Java | sosop/AOTA | /aota-web/src/main/java/com/tcl/aota/web/manage/AppCheckManage.java | UTF-8 | 4,849 | 2.03125 | 2 | [] | no_license | package com.tcl.aota.web.manage;
import com.tcl.aota.cache.AppCacheManage;
import com.tcl.aota.common.constants.Constants;
import com.tcl.aota.common.utils.DateUtil;
import com.tcl.aota.common.utils.FileUtil;
import com.tcl.aota.common.utils.JsonParser;
import com.tcl.aota.common.utils.StringUtils;
import com.tcl.aota... | true |
0848b396d4ab54aa2a470139c0e4728107f6a679 | Java | rafaelmt/linuxtools | /perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/model/TreeParent.java | UTF-8 | 1,877 | 2.328125 | 2 | [] | no_license | /*******************************************************************************
* (C) Copyright 2010 IBM Corp. 2010
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... | true |
f92da24c5e422d5fb46ba16832e8d260f71d5ad7 | Java | wongainia/sanguo | /src/com/vikings/sanguo/cache/LazyLoadCache.java | UTF-8 | 1,019 | 2.4375 | 2 | [] | no_license | package com.vikings.sanguo.cache;
import java.util.HashMap;
import com.vikings.sanguo.config.Config;
import com.vikings.sanguo.exception.GameException;
abstract public class LazyLoadCache extends FileCache {
private boolean isInit = false;
@Override
public synchronized void init() throws GameException {
conte... | true |
e1610911bea18773b15186e9130a57d206567fce | Java | westear/concurrency-learn | /src/main/java/com/westear/concurrency/javaOriginUtils/Exchanger/ExchangerTest.java | UTF-8 | 2,541 | 3.890625 | 4 | [] | no_license | package com.westear.concurrency.javaOriginUtils.Exchanger;
import java.util.concurrent.Exchanger;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* Exchanger 是一个用于线程间协作的工具类。用于进行线程间的数据交换。
* 它提供一个同步点,在这个同步点,两个线程可以交换彼此的数据。这两个线程通过exchange() 方... | true |
c443e8ed79f61f4a0f1a26b3021c57555d3a3998 | Java | SilviaAbrahamyan/Aca | /src/com/homeworks/aca_book/nested/newNested/U.java | UTF-8 | 1,255 | 3.671875 | 4 | [] | no_license | package com.homeworks.aca_book.nested.newNested;
/**
* Created by home on 11/13/2018.
*/
public interface U {
void method1();
void method2();
void method3();
}
class A {
U ref() {
return new U() {
@Override
public void method1() {
System.out.println... | true |
dfc9cc4e3e4d3ad15f075a8cf9d786e18a7dfd41 | Java | emmchier/gethub-app | /app/src/main/java/com/example/emmchierchie/gethubapp/Model/ROOM/DataBase.java | UTF-8 | 980 | 2.53125 | 3 | [] | no_license | package com.example.emmchierchie.gethubapp.Model.ROOM;
import android.arch.persistence.room.Room;
import android.content.Context;
import com.example.emmchierchie.gethubapp.Model.POJO.Repository;
import java.util.List;
public class DataBase {
private RoomAppDatabase db;
// creo la data base de room
public... | true |
513ecb215b4001f4653060852796380cf8c17a46 | Java | squiig/neutered-creepers | /src/main/java/com/cerrealic/neuteredcreepers/commands/CommandNeuteredCreepers.java | UTF-8 | 2,296 | 2.40625 | 2 | [] | no_license | package com.cerrealic.neuteredcreepers.commands;
import com.cerrealic.cerspilib.CerspiCommand;
import com.cerrealic.cerspilib.logging.Formatter;
import com.cerrealic.cerspilib.logging.Logger;
import com.cerrealic.neuteredcreepers.NeuteredCreepersConfig;
import com.cerrealic.neuteredcreepers.NeuteredCreepersPlugin;
imp... | true |
9acfe281e0f88661941656f0055c9acfb1374b72 | Java | mritiwari/Data-Structure-using-java | /src/lecture_17/CustomArrayList.java | UTF-8 | 1,562 | 3.578125 | 4 | [
"MIT"
] | permissive | package com.codingblocks.lecture_17;
public class CustomArrayList {
private static final int DEFAULT_SIZE = 10;
private int[] data;
private int size;
public CustomArrayList(){
this.data = new int[DEFAULT_SIZE];
this.size = 0;
}
public void add(int value){
... | true |
d8cb56119a05069969ba1acfbbd02db77db2fbf6 | Java | cedancp/infiniteBanner | /infinitebanner/src/main/java/com/cedancp/infinitebanner/InfiniteAdapter.java | UTF-8 | 2,070 | 2.4375 | 2 | [] | no_license | package com.cedancp.infinitebanner;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.cedancp.infinitebanner.md.HorizontalItem;
import com.squareup.picasso.Picasso;
import java.util.Ar... | true |
d04503cdbb4ab7e2bbc2594171ae72f4e8bcee7f | Java | ksaturn/Java-Own-Framework---step-by-step | /src/main/java/com/patres/ownframework/step2a/application/service/CompanyServiceImpl.java | UTF-8 | 1,001 | 2.390625 | 2 | [] | no_license | package com.patres.ownframework.step2a.application.service;
import com.patres.ownframework.step2a.application.dao.CompanyDao;
import com.patres.ownframework.step2a.application.model.Company;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CompanyServiceImpl implements CompanyService {
priva... | true |
19f3e83a777ee4f9e46a2fdbed91264f2843e8c9 | Java | kekexi55/miaosha | /src/main/java/com/imooc/miaosha/Mytest/StrTest.java | UTF-8 | 278 | 2.140625 | 2 | [] | no_license | package com.imooc.miaosha.Mytest;
/**
* @author <a href="mailto:zhengchunguang@jd.com">郑春光</a>
* @date 2018/12/13
*/
public class StrTest {
public static void main(String[]args){
String a = "123";
String b = "123";
System.out.println((a == b));
}
}
| true |
cb6cb631565dcb2fac47f4df4b9e4bf9a6327a21 | Java | rokn/Count_Words_2015 | /fetched_code/java/code/ThreadStatesGaugeSet.java | UTF-8 | 2,989 | 2.28125 | 2 | [
"MIT"
] | permissive | package org.kie.perf.metrics;
import static com.codahale.metrics.MetricRegistry.name;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
im... | true |
3ac87233275b8b5f4d1ae32a3aec7ea35cb9ce3c | Java | APCVSRepo/SdlEx-Android | /SyncProxyEx_AQI/sdl_android_lib/src/main/java/com/smartdevicelink/proxy/rc/datatypes/ControlData.java | UTF-8 | 587 | 2.25 | 2 | [] | no_license | package com.smartdevicelink.proxy.rc.datatypes;
import java.util.Hashtable;
import com.smartdevicelink.proxy.RPCStruct;
import com.smartdevicelink.proxy.rc.enums.ModuleType;
public class ControlData extends RPCStruct{
private ModuleType interiorDataType = null;
public ControlData(){ }
public Cont... | true |
23556ab35684a12f8026e395f87c1531afc9143b | Java | blueskyhome/Tourism | /app/src/main/java/com/example/tourism/activity/LoginActivity.java | UTF-8 | 6,991 | 2.03125 | 2 | [] | no_license | package com.example.tourism.activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
i... | true |
d818f34f5c5f9baedc21a73c7ec97bf8f282a49e | Java | yangqihua/dowish-oa | /dowish-oa-server/src/main/java/net/dowish/modules/sys/service/impl/RoleServiceImpl.java | UTF-8 | 2,598 | 2.140625 | 2 | [] | no_license | package net.dowish.modules.sys.service.impl;
import net.dowish.modules.sys.dao.RoleDao;
import net.dowish.modules.sys.entity.RoleEntity;
import net.dowish.modules.sys.service.*;
import net.dowish.common.utils.Constant;
import net.dowish.common.exception.ResultException;
import java.util.Date;
import java.util.List;
i... | true |
5adb53a6538de74d042113e4947ed8b31e7ca928 | Java | ddt-hayazawa/meikai_java_- | /Work/src/e_03_05/E_03_05.java | UTF-8 | 971 | 3.96875 | 4 | [] | no_license | package e_03_05;
import java.util.Scanner;
public class E_03_05 {
//読み込んだ整数値を5で割れるか判断し表示
public static void main(String[] args){
// Scannerクラスのインスタンスを生成
Scanner stdIn = new Scanner(System.in);
// 整数値の入力を促す
System.out.print("整数値:");
// 整数値の入力値を変数に代入
int intValue... | true |
c9e71b8d7d6d79edc99abcf853396be0858fe093 | Java | giovannibotta/java-sandbox | /datastructures/src/test/java/net/giovannibotta/sets/DisjointSetForestTest.java | UTF-8 | 729 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | package net.giovannibotta.sets;
import org.junit.Test;
import java.util.Random;
import static org.junit.Assert.assertEquals;
/**
* @author giovanni
* @since 4/15/14
*/
public class DisjointSetForestTest {
@Test
public void simpleTest() {
Random rnd = new Random(1235331443L);
DisjointSetFo... | true |
004f4d515295ccb9c527fcd167db703fd42f82e3 | Java | instance686/Capstone-Project | /app/src/main/java/com/reminders/location/locatoinreminder/service/LocationService.java | UTF-8 | 9,831 | 1.679688 | 2 | [] | no_license | package com.reminders.location.locatoinreminder.service;
import android.Manifest;
import android.app.ActivityManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ComponentName;
import android.content.Cont... | true |
063dc7695d2cc4858c05ad0e21fb6ed795d7a103 | Java | github5210zk/XiangMu | /app/src/main/java/com/zk/xiangmu/activitys/First_Activity.java | UTF-8 | 768 | 1.765625 | 2 | [] | no_license | package com.zk.xiangmu.activitys;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.widget.TextView;
import com.zk.xiangmu.R;
import com.zk.xiangmu.adapter.First_Vp_Adapter;
import com.zk.xiangmu.base.BaseActivity;
import butterknife.Bind;
import butterknife.ButterKnife;
public clas... | true |
da01ec4ff94bbc9ffe8ab36d74b6af87a8d06e13 | Java | Billy-Chung/CFA102G4New | /src/com/adoptMember/controller/AdoptMemberListener.java | UTF-8 | 900 | 1.953125 | 2 | [] | no_license | package com.adoptMember.controller;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import org.apache.log4j.Logger;
import com.adoptAppointForm.model.AdoptAp... | true |