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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e9d3e62cf1aacab741745dc453c4ebdf3f4bfee0 | Java | konexios/moonstone | /acs-client/src/main/java/moonstone/acs/client/api/UserApi.java | UTF-8 | 5,966 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2018 Arrow Electronics, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License 2.0
* which accompanies this distribution, and is available at
... | true |
5a76dd8bbc53cc75ac81aa808777235c2ea1e592 | Java | ysumut/LMS | /src/java/entity/Student.java | UTF-8 | 1,165 | 2.75 | 3 | [] | no_license | package entity;
import java.util.List;
public class Student extends User {
private int semester, registration_year;
private List<String> departments;
private String departments_str;
public Student() {
}
public Student(int userId, String full_name, String email, int semester, int... | true |
f1e87fe667b46e85c8e43bfba476d25c9adde703 | Java | rensusoft/HCTMS | /src/com/rensu/education/hctms/score/dao/StuScoDao.java | UTF-8 | 2,028 | 1.914063 | 2 | [] | no_license | package com.rensu.education.hctms.score.dao;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.rensu.education.hctms.core.dao.BaseDao;
... | true |
e189ff1025704cfa89b5442e1ae97082773b7ddc | Java | duongnv1996/chotviet-ship | /app/src/main/java/com/skynet/chovietship/utils/AlarmUtils.java | UTF-8 | 1,739 | 2.234375 | 2 | [] | no_license | package com.skynet.chovietship.utils;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import java.util.Calendar;
/**
* Created by framgia on 23/05/2017.
*/
public class AlarmUtils {
private static int INDEX = 1;
public stati... | true |
eb1d97932b8378524390db257f0691ce8b02d557 | Java | andyjduncan/spring-data-commons | /src/main/java/org/springframework/data/config/AuditingHandlerBeanDefinitionParser.java | UTF-8 | 3,282 | 1.734375 | 2 | [] | no_license | /*
* Copyright 2012-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
fc65d0cab90250788aadcf0d607831ab77efac35 | Java | yu-yurkov/RoomDB | /app/src/main/java/com/example/hp/roomdb/MainActivity.java | UTF-8 | 1,964 | 2.328125 | 2 | [] | no_license | package com.example.hp.roomdb;
import android.arch.persistence.room.Room;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.... | true |
7fe2d9726431648e74eb8db3ce176457888b841d | Java | bananasik/recipe_book | /RecipeCollection/app/src/main/java/Model/Section.java | UTF-8 | 300 | 2.484375 | 2 | [] | no_license | package Model;
/**
* Created by Олег on 16.02.2016.
*/
public class Section {
public int id;
public String name;
public Section(String _name){
id = 0;
name = _name;
}
public Section(int _id, String _name){
id = _id;
name = _name;
}
}
| true |
de34b3cf65a627a90708fabe48265f6be8178d7f | Java | VitaliiBashta/L2Jts | /gameserver/src/main/java/org/mmocore/gameserver/model/entity/residence/Castle.java | UTF-8 | 27,070 | 1.617188 | 2 | [] | no_license | package org.mmocore.gameserver.model.entity.residence;
import gnu.trove.map.TIntObjectMap;
import gnu.trove.map.hash.TIntObjectHashMap;
import org.mmocore.commons.database.dao.JdbcEntityState;
import org.mmocore.commons.database.dbutils.DbUtils;
import org.mmocore.gameserver.GameServer;
import org.mmocore.gameserver.d... | true |
8da3e4aaf89a721cf9ad5f8a7c16488ddb2b5e1f | Java | dc2586515515/webservice | /src/main/java/com/dc/springboot/webservice/service/impl/DemoServiceImpl.java | UTF-8 | 766 | 2.40625 | 2 | [] | no_license | package com.dc.springboot.webservice.service.impl;
import com.dc.springboot.webservice.service.DemoService;
import org.springframework.scheduling.annotation.Async;
import javax.jws.WebService;
import java.util.Date;
/**
* @Description
* @Author DC
* @Date 2019-10-31
*/
@WebService(serviceName = "DemoService", //... | true |
b5260eb067c6936d55c5104a29418dae43054b03 | Java | perryhau/hades | /hades/com.bj58.spat.hades/src/main/java/com/bj58/spat/hades/bind/BindAndValidate.java | UTF-8 | 3,167 | 2.171875 | 2 | [] | no_license | /*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* 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
... | true |
12675e477a4889f6992c0f2a2acb7877ef12f8ff | Java | sumitsaiwal/LAPS_Servlet | /src/controller/viewsubleave.java | UTF-8 | 2,098 | 2.140625 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | true |
81f130fca7659fd83253f8e6f9de12d23b83a438 | Java | devmpv/wady | /core/src/main/java/com/mpv/game/world/GameObj.java | UTF-8 | 6,137 | 1.851563 | 2 | [] | no_license | package com.mpv.game.world;
import static com.mpv.data.Const.STEP;
import static com.mpv.data.Sounds.ID.*;
import java.util.HashSet;
import box2dLight.ConeLight;
import box2dLight.RayHandler;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.maps.MapProperties;
import com.badlogic.gdx.math.Vector2;
im... | true |
dfdb5237bfa21417238d160e0f9d96c53944f09f | Java | CSC207-TLI-TBTEENS/ftms-tbteens-api | /src/main/java/com/ftms/ftmsapi/controller/TaskController.java | UTF-8 | 4,603 | 2.5 | 2 | [] | no_license | package com.ftms.ftmsapi.controller;
import javax.persistence.EntityNotFoundException;
import javax.validation.Valid;
import com.ftms.ftmsapi.model.*;
import com.ftms.ftmsapi.payload.ApiResponse;
import com.ftms.ftmsapi.repository.PartRequestRepository;
import com.ftms.ftmsapi.repository.TaskRepository;
import com.ft... | true |
7758e237540ac42151b4b4c35bd9c521f83a4bc0 | Java | haiZhaoChen/zczwandroid | /app/src/main/java/org/bigdata/zczw/jPush/MyReceiver.java | UTF-8 | 2,574 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package org.bigdata.zczw.jPush;
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import org.bigdata.zczw.activity.CheckListActivity;
import org.bigdata.zczw.activity.MainActiv... | true |
c2c7fa1dd554afaad8f27381acbcdbabdbe30a25 | Java | imappu/IdealPortal | /AppointmentPortal/src/com/application/entity/Patient.java | UTF-8 | 2,636 | 2.59375 | 3 | [] | no_license | package com.application.entity;
import javax.persistence.*;
import com.application.interfaces.IPatient;
/**
* Entity class for Patient registration details with getters ,setters and constructor definitions.
* @author Apparay Shakapure <AS052304>
* @version 1.0
*@since 1.0
*/
@NamedNativeQueries({
@... | true |
91174cad885bd6dad1959ad5faffe44996bba759 | Java | msegeya/MobileBankingSystemProject | /src/com/MobileBankingSystem/customer/Customer_Nonmember.java | UTF-8 | 417 | 2.453125 | 2 | [] | no_license | package com.MobileBankingSystem.customer;
public class Customer_Nonmember extends Customer{
private static String c_phone;
public Customer_Nonmember(String banking_id, String banking_pwd) {
super(c_phone, banking_pwd);
// TODO Auto-generated constructor stub
}
public String getC_phone() {
ret... | true |
db4dbb1e841c20bff7a4334177c6d217501155f1 | Java | JKAK47/robust-demo | /dubbo-provide-demo/src/main/java/com/toby/provider/ApplicationProperties.java | UTF-8 | 629 | 2.0625 | 2 | [] | no_license | package com.toby.provider;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
@ConfigurationProperties(prefix ... | true |
2735330e631df7179cbc91c4028110ed00c4a976 | Java | BalajiStark/html | /loop.java | UTF-8 | 347 | 2.84375 | 3 | [] | no_license | import java.util.*;
public class loop {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int[] a=new int[args.length];
int n=args.length,sum=0;
for(int i=0;i<n;i++)
{
a[i]=Integer.parseInt(args[i]);
sum=sum+a[i];
}
System.out.printl... | true |
ff2dc2c8c4dc23ddca20f0fdf610a1fbb9e48e93 | Java | tinvukhac/asterixdb | /asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/input/record/reader/hdfs/parquet/ParquetReadSupport.java | UTF-8 | 4,114 | 1.734375 | 2 | [
"MIT",
"BSD-3-Clause",
"PostgreSQL",
"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 |
b98828c62eeb7758064fe8b496837675fab26b8e | Java | COSMEcontrol/miniblas-android | /app/src/main/java/com/miniblas/persistence/SharedPreferencesSettingStorage.java | UTF-8 | 2,290 | 2.21875 | 2 | [] | no_license | package com.miniblas.persistence;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.miniblas.model.MiniBlasProfile;
/**
*
* @author A. Azuara
*/
public class SharedPreferencesSettingStorage implements SettingStorage{
//editor de pref... | true |
4af3d81f81c44cc8f18c018f970ecfda62060db3 | Java | jrtkcoder/spring_boot_app01 | /src/main/java/com/briup/apps/app01/web/UserController.java | UTF-8 | 4,366 | 2.40625 | 2 | [] | no_license | package com.briup.apps.app01.web;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import... | true |
3d82d185831b5b399528d1752b840b5378ebfec0 | Java | Emn98/D0010E_lab_5 | /lab5/src/lab5/deds/View.java | UTF-8 | 683 | 3.03125 | 3 | [] | no_license | package lab5.deds;
import java.util.Observable;
import java.util.Observer;
import lab5.snabbköp.state.SnabbköpState;
/**
*
* A general class for the view.
*
* @author Isak Lundmark, Emil Nyberg and Karl Näslund.
*
*/
public class View implements Observer {
private State state;
/**
* Cr... | true |
f01fe00be14bf1a8c0c2662156327cc9ad4c14de | Java | labourel/vector | /src/main/java/ArrayVector.java | UTF-8 | 1,565 | 3.15625 | 3 | [] | no_license | /**
* Created by Arnaud Labourel on 15/10/2018.
*/
public class ArrayVector implements Vector {
private static final int DEFAULT_CAPACITY = 10000;
private final int[] array;
private int size;
public ArrayVector() {
this(DEFAULT_CAPACITY);
}
public ArrayVector(int capacity) {
... | true |
44420794f7d933986b709bb2aa099b7fe2a17e92 | Java | Dobby233Liu/canvas | /src/main/java/grondag/canvas/light/LightSmoother.java | UTF-8 | 6,855 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package grondag.canvas.light;
import it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.BlockRenderView;
import grondag.canvas.chunk.FastRenderRegion;
import grondag.fer... | true |
9376a46d86c7b36b0c232e31dadb1fc15a94e46d | Java | devshah2/6024-2018 | /src/org/usfirst/frc/team6024/robot/subsystems/DriveSubsystem.java | UTF-8 | 6,946 | 2.15625 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
e11a678efdc7a12b0f1f5b240697b58d5366d0ba | Java | huiwen/IS306-BrainJuice | /BrainJuice/src/com/example/brainjuice/entity/UserMgr.java | UTF-8 | 1,276 | 3.109375 | 3 | [] | no_license | package com.example.brainjuice.entity;
import java.util.ArrayList;
public class UserMgr {
ArrayList<User> userList;
public UserMgr(){
userList = new ArrayList<User>();
userList.add(new User("JonathanTan", "1234", "child", "jonathantan@gmail.com", "minion"));
userList.add(new User("MelissaTan", "1234", "a... | true |
c7229d7156c2b9b14922c7d669f4c35e16e8d623 | Java | Ohyaelim/study_api2 | /src/main/java/sm/chromeScreentime/task/dto/UserDTO.java | UTF-8 | 902 | 2.109375 | 2 | [] | no_license | package sm.chromeScreentime.task.dto;
import lombok.Getter;
import lombok.Setter;
import sm.chromeScreentime.task.entity.User;
import java.util.ArrayList;
@Getter
@Setter
public class UserDTO {
private String userId;
private String username;
private ArrayList<String> ent;
private ArrayList<String> pr... | true |
b07bc55f837a6f6545028a4a176bc314b9a370a1 | Java | AlexSimoesQA/desafio-getnet-api | /src/main/java/br/com/getnet/api/core/Constants.java | UTF-8 | 263 | 1.5625 | 2 | [] | no_license | package br.com.getnet.api.core;
import io.restassured.http.ContentType;
public interface Constants {
String APP_BASE_URL = "https://reqres.in/api/";
Integer APP_PORT = 80;
ContentType APP_CONTENT_TYPE = ContentType.JSON;
Long MAX_TIMEOUT = 10000L;
}
| true |
42d88839a4698671e033f51dfad9abbbe8660deb | Java | S3b97/AndroidVintedExamen | /app/src/main/java/com/example/vintedexamenseca/retrofit/VintedApiInterface.java | UTF-8 | 410 | 1.828125 | 2 | [] | no_license | package com.example.vintedexamenseca.retrofit;
import com.example.vintedexamenseca.beans.Prenda;
import com.example.vintedexamenseca.beans.Usuario;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.POST;
public int... | true |
9e56c93f37dd5e98b4dc92a6793a16cc488ac597 | Java | krishanwegile/MvvmwithRecycler | /app/src/main/java/com/mvvmwithrecylerview/RecyclerWithMvvmActivity.java | UTF-8 | 2,091 | 2.171875 | 2 | [] | no_license | package com.mvvmwithrecylerview;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.mvvmwithrecylerview.adapter.MvvmRecyclerAdapterWithBin... | true |
637a2e6f6fc2bc0c819ee282a12693cf967264ff | Java | sunce2019/myGitHub | /pay/src/main/java/com/pay/controller/AlipayController.java | UTF-8 | 8,744 | 1.734375 | 2 | [] | no_license | package com.pay.controller;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Rest... | true |
1da0c0cf3fd3763acbcc8d67e5d540fb9176cba9 | Java | Naveen-Banagani/Ryanair-Test | /src/test/java/pages/FlightsBookingPaymentPage.java | UTF-8 | 6,638 | 1.890625 | 2 | [] | no_license | package pages;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import junit.framework.Assert;
import utils.ExplicitWait;
import utils.LogUtils;
import utils.ScrollUtils;
import java.util.List;
import static... | true |
e8c74bfd3b3da879e1cd84348ee4c40c2e0ae42e | Java | bunnykillher/eureka_webservicess | /src/test/Testtest.java | UTF-8 | 1,120 | 2.28125 | 2 | [] | no_license | package test;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import dao.EmployeeDAO;
import dao.FoodDAO;
import dao.FoodOrderDAO;
import dao.StallDAO;
import model.Employee;
import model.Food;
import model.FoodOrder;
import model.Modifier;
import model.ModifierSecti... | true |
9161d9f6469c3721985f39b1119f6b144f9f96ce | Java | kranthi117/deployment | /src/main/java/deployment/mvc/DiagramController.java | UTF-8 | 354 | 1.898438 | 2 | [
"MIT"
] | permissive | package deployment.mvc;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class DiagramController {
@RequestMapping("/diagram")
public String diagram(Model model) {
model.addAttribute("servers",... | true |
a1fd73f4ad7ffc86eabc0a8a62e815c46426cc4a | Java | jtrentes/jtr_test | /src/main/java/big/web/controllers/MyClass57DetailController.java | UTF-8 | 3,158 | 2.125 | 2 | [] | no_license | package big.web.controllers;
import org.springframework.web.bind.annotation.RequestMethod;
import big.services.MyClass57Service;
import big.web.controllers.validator.MyClass57Validator;
import big.domain.MyClass57;
import org.springframework.web.bind.support.SessionStatus;
import big.domain.MyClass37;
import java.util... | true |
42b3be67a4a7ec2661bfc6e78a0aa746978ec471 | Java | yes-jyomi/JAVA2019 | /1학기/190320/src/d0402.java | UTF-8 | 756 | 2.6875 | 3 | [] | no_license |
public class d0402 {
public static void main(String[] args) {
String threec[] = {"강지민", "강혜정", "김가영", "김나영", "김선옥", "김수진", "류정민", "박교령", "서남경", "오승연", "원예린", "원채린", "이서현", "이채린", "이현수", "임현진", "장유경", "장원이", "한다연"};
String fourc[] = {"강은서", "곽가연", "김민지", "김봄이", "김소현", "김채민", "남정윤", "박서연", "서혜림", "신채린", "양수빈", "엄하... | true |
34cb9f633f1ab7819e4ff7c3c88f85d38325f223 | Java | HammerCloth/EmpCRUD | /src/com/syx/ssm/controller/EmpControl.java | UTF-8 | 3,120 | 2.21875 | 2 | [] | no_license | package com.syx.ssm.controller;
import com.syx.ssm.Service.EmpService;
import com.syx.ssm.bean.Dept;
import com.syx.ssm.bean.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.spri... | true |
59f09bcb252cc7e4f3c2545e9d3366888c2d72ee | Java | jersonk/AmassWareHouse1 | /app/src/main/java/com/amassfreight/domain/ImageData.java | UTF-8 | 1,136 | 2.234375 | 2 | [] | no_license | package com.amassfreight.domain;
import android.graphics.Bitmap;
public class ImageData {
private Bitmap data;
private String path;
private String url;
private String fileUploadId;
private String imageDesc;
public String getImageDesc() {
return imageDesc;
}
public void setImageDesc(String imageDesc) {
thi... | true |
118ac6ba70e82b898feea2db81dc7ca06a5d1ca3 | Java | cnlybig/jinxi-server | /src/main/java/com/jinxi/star/jxserver/dao/LoginDao.java | UTF-8 | 1,070 | 1.921875 | 2 | [] | no_license | package com.jinxi.star.jxserver.dao;
import com.github.pagehelper.Page;
import com.jinxi.star.jxserver.entity.LoginInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
/**
* 公共接口 数据调用
*
* @author: Shiz
* @date: 2020/6/30 13... | true |
52bab1260f83b537630a96ae61fce99dfaf100e7 | Java | giovannidelfino/java-practice | /src/day08_casting_conditionals/IfElseWithVariables.java | UTF-8 | 479 | 4.125 | 4 | [] | no_license | package day08_casting_conditionals;
public class IfElseWithVariables {
public static void main(String[] args) {
int temperature = 65;
if(temperature >= 65) {
System.out.println("It is a nice day! Lets code java");
}else {
System.out.println("Stay home and code java");
}
int teamAScore = 6;
int... | true |
5af0d6162e3795e61b602cb1eb715bc4022e0d97 | Java | Sahibdeep26/COMP-380_Assignment-4 | /Rule.java | UTF-8 | 389 | 3.421875 | 3 | [] | no_license | /* DO NOT EDIT THIS CLASS
*
* A simple class representing a Rule.
* A rule is composed of an Atom as its head,
* and a conjunction of Atoms as its body.
* e.g. h <- b1 & b2
*/
public class Rule
{
Atom head;
Atom[] body;
public Rule(Atom h, Atom[] b)
{
head = h;
body = b;
}
public Atom getHead()
{... | true |
c91724ce2f570d906402a3da9ca57b435159d6d2 | Java | RemyCo/Robot_ProSE | /app/src/main/java/fr/eseo/i2/prose/ea1/whereisrob/communication/DispatcherAndroid.java | UTF-8 | 3,789 | 2.390625 | 2 | [] | no_license | /**
* @file DispatcherAndroid.java
*
* @brief La classe DispatcherAndroid permet de donner les bon ordre à GUIActivity en fonction
* des messages reçus de RobSoft.
*
* @author Timothée GIRARD
*
* @copyright 2019 ProseA1
* Licensed to the Apache Software Foundation (ASF) under one
* or more contribut... | true |
1b6b3d64d19dceb04e6f73c16ab56e16a8bb80ea | Java | PhanThiQuynhLinh/DeliveryFood | /src/action/TrangChuAction.java | UTF-8 | 2,162 | 2.28125 | 2 | [] | no_license | package action;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org... | true |
7b2e690149e3e5aaca096a4cf51662c2f2579a80 | Java | Aqueelmiq/Hangman | /oldfiles/src/AMDWApplicationClass.java | UTF-8 | 283 | 2.03125 | 2 | [] | no_license | /*
* CS - 201 Final Project
* Hangman Game
* Created by Aqueel Miqdad, Dominik Wegiel
* Executes the Menu and starts the application
*/
public class AMDWApplicationClass {
public static void main(String[] args) {
//Execute Menu
AMDWMenu menu = new AMDWMenu();
menu.mainMenu();
}
}
| true |
b24e405ce87c432f13426fa931e53fc0e69dfcac | Java | SilverYar/2019-highload-dht | /src/main/java/ru/mail/polis/service/yaroslav/AsyncHttpService.java | UTF-8 | 9,009 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package ru.mail.polis.service.yaroslav;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import one.nio.http.HttpServer;
import one.nio.http.HttpServerConfig;
import one.nio.http.HttpSession;
import one.nio.http.Path;
import one.nio.http.Response;
import one.nio.http.Request;
import one.nio.net.Socket;
i... | true |
f2478f8d940268cb2322d2ed3ed0bb811e01cf84 | Java | gvenkatesh4/javabasicsprograms | /java basics/src/cocubesprograms1/Sumofdivisibleby3and5.java | UTF-8 | 288 | 2.921875 | 3 | [] | no_license | package cocubesprograms1;
public class Sumofdivisibleby3and5 {
public static void main(String[] args) {
int ha =1;
int sa = 5;
int sum = 0;
for(int i =ha;i<=sa;i++) {
if(i%3==0||i%5==0) {
sum = sum+i;
}
}
System.out.println(sum);
}
}
| true |
5065d8f7363145a1cd24e03f5700371bf148430a | Java | makotogo/SimpleCursorAdapterExample | /app/src/main/java/com/makotogo/mobile/learn/simplecursoradapterexample/Person.java | UTF-8 | 2,878 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Makoto Consulting Group, Inc.
*
* 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 applicab... | true |
17f759c125803b59a6f8780db83d1f0d49eec0c8 | Java | anandsnair/Projects | /HackerRank/src/com/datastructures/linkedlist/InsertNodeAtPosition.java | UTF-8 | 1,701 | 3.6875 | 4 | [] | no_license | package com.datastructures.linkedlist;
public class InsertNodeAtPosition {
public static void main(String[] args) {
Node node = new Node();
node.setData(1);
node.setNext(null);
InsertNodeAtPosition insertNode = new InsertNodeAtPosition();
Node head = insertNode.InsertNth(node, 2, 0);
insertNode.printAll... | true |
522cf9b3d8f1a6bc4748759b520d18aa675e29be | Java | gremic6611/haiku | /src/main/java/smg/emgem/haiku/service/HaikuServiceImpl.java | UTF-8 | 12,854 | 2.34375 | 2 | [] | no_license | package smg.emgem.haiku.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
impo... | true |
2dca92e50ffdd39eb739838c5867bbe1667d9266 | Java | rodya-mirov/robodorf | /src/main/java/io/github/rodyamirov/symbols/SymbolValue.java | UTF-8 | 1,432 | 3 | 3 | [] | no_license | package io.github.rodyamirov.symbols;
import io.github.rodyamirov.exceptions.TypeCheckException;
import java.util.Objects;
/**
* Created by richard.rast on 12/27/16.
*/
public class SymbolValue<T> {
public final TypeSpec typeSpec;
public final T value;
private SymbolValue(TypeSpec typeSpec, T value) {... | true |
284faf235f98bc53417e08f7d1a33391f651b6f9 | Java | stanciusebastian/MovieBooking | /src/main/java/com/example/moviebookingws/io/repositories/UserRepository.java | UTF-8 | 333 | 1.890625 | 2 | [] | no_license | package com.example.moviebookingws.io.repositories;
import com.example.moviebookingws.io.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<UserEntity,Long> {
UserEntity findByEmail(String email);
UserEntity findByUserId(Strin... | true |
42d0d13bce0cd5004fc5257d52731be39d884ef0 | Java | wchb2015/algorithm_and_leetcode | /src/main/java/com/wchb/leetcode/S435.java | UTF-8 | 1,728 | 3.328125 | 3 | [] | no_license | package com.wchb.leetcode;
import java.util.Arrays;
/**
* @date 7/26/18 2:37 PM
*/
public class S435 {
//T: O(n^2);
public int eraseOverlapIntervals(Interval[] intervals) {
Arrays.sort(intervals, (i1, i2) -> i1.start - i2.start);
int n = intervals.length;
if (n <= 1) return 0;
... | true |
2e6a6406c20bae9b087a88bb058a68a7d01d03e0 | Java | yurkesh/PZCS2 | /src/edu/kpi/nesteruk/pzcs/graph/mutating/SplitBranchMutator.java | UTF-8 | 357 | 1.984375 | 2 | [] | no_license | package edu.kpi.nesteruk.pzcs.graph.mutating;
import edu.kpi.nesteruk.pzcs.model.tasks.TasksGraph;
import org.jgrapht.Graph;
import java.util.Set;
/**
* Created by Yurii on 2017-01-09.
*/
public class SplitBranchMutator implements GraphMutator<TasksGraph> {
@Override
public TasksGraph mutate(TasksGraph gra... | true |
2603f564d6cdc2cd978247a3ca853a4013b63e72 | Java | JonathanLoiseau/LastClimb | /src/main/java/com/last_climb/climb/controller/SecteurCreationController.java | UTF-8 | 971 | 2.21875 | 2 | [] | no_license | package com.last_climb.climb.controller;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import com.last_climb.climb.mod... | true |
d5f2ba9968822f91ebc94c1d87251bf918b1a724 | Java | github4n/cloud | /common-service/payment-service-project/payment-service-interface/src/main/java/com/iot/payment/enums/RefundStatus.java | UTF-8 | 533 | 2.34375 | 2 | [] | no_license | package com.iot.payment.enums;
public enum RefundStatus {
/** 未退款*/
NO_REFUND(0,"no refund"),
/** 退款中*/
IN_REFUND(1,"refunding"),
/** 退款成功*/
REFUND_SUCCESS(2,"already refund"),
/** 退款失败*/
REFUND_FAIL(3,"refund fail"),
;
/** 编码*/
private int code;
/** 描述*/
private String desc;
private ... | true |
55c94367848eeaecee7fd355dda21b81baf83ec6 | Java | echofoo/Java-Notes | /LeetCodeSolutions/src/code_07_dp/Code_188_BestTimeToBuyAndSellStockIV.java | UTF-8 | 2,435 | 3.875 | 4 | [] | no_license | package code_07_dp;
import org.junit.Test;
/**
* 188. Best Time to Buy and Sell Stock IV
*
* Say you have an array for which the ith element is the price of a given stock on day i.
* Design an algorithm to find the maximum profit. You may complete at most k transactions.
*
* Example 1:
Input: [2,4,1], k = 2
O... | true |
72292c86ba45f22b57dbd73524f0cd64d91d3ee0 | Java | Praveen-Varma/staedi | /src/test/java/io/xlate/edi/internal/stream/validation/ValueSetTester.java | UTF-8 | 961 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package io.xlate.edi.internal.stream.validation;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import io.xlate.edi.internal.stream.tokenization.Dialec... | true |
3f6eaeb4162c854ed11a09e87fcde81a8870cde5 | Java | dwifdji/real-project | /win-back/winback-core/core-commons/src/main/java/com/winback/core/commons/constants/SystemSiteEnum.java | UTF-8 | 739 | 2.75 | 3 | [] | no_license | package com.winback.core.commons.constants;
public class SystemSiteEnum {
public enum CaseSiteType{
CASE_PHASE("1", "案件阶段"),
CAPITAL_USES("2", "资金用途");
private String type;
private String typeDesc;
CaseSiteType(String type, String typeDesc) {
this.type = t... | true |
d034dba716a150c9978ae15bcf19cf7ef616fd62 | Java | 888xin/cbs.api | /cbs.api.content.dao/src/main/java/com/lifeix/cbs/content/dao/frontpage/impl/FrontPageAdDaoImpl.java | UTF-8 | 4,485 | 2.0625 | 2 | [] | no_license | package com.lifeix.cbs.content.dao.frontpage.impl;
import com.lifeix.cbs.content.dao.ContentDaoSupport;
import com.lifeix.cbs.content.dao.frontpage.FrontPageAdDao;
import com.lifeix.cbs.content.dto.frontpage.FrontPage;
import com.lifeix.framework.memcache.MultiCacheResult;
import org.springframework.stereotype.Reposit... | true |
0e4aa3087a7100edd2cc690616d5f953761c89f0 | Java | yookore/android-v1 | /app/src/main/java/com/yookos/mobileapp/RecommendFriends.java | UTF-8 | 3,786 | 1.992188 | 2 | [] | no_license | package com.yookos.mobileapp;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.vie... | true |
193c14f8a514d6df4a537ef2c2b823d20c007cbf | Java | thorbenprimke/defunct-fitness-app | /app/src/main/java/com/femlite/app/di/ActivityComponent.java | UTF-8 | 1,840 | 2.15625 | 2 | [] | no_license | package com.femlite.app.di;
import android.app.Activity;
import com.femlite.app.ExerciseListActivity;
import com.femlite.app.FemliteBaseActivity;
import com.femlite.app.FemliteDrawerActivity;
import com.femlite.app.FoodTrackerAddFoodActivity;
import com.femlite.app.FoodTrackerMainActivity;
import com.femlite.app.Reci... | true |
38b87edecb8620f4dff286bd88e858766b850087 | Java | qwe00921/switchui | /packages/platform/Tauren/Tauren/src/com/motorola/mmsp/render/MotoInteractionSet.java | UTF-8 | 2,073 | 2.5 | 2 | [] | no_license | package com.motorola.mmsp.render;
import java.util.ArrayList;
import com.motorola.mmsp.render.resloader.MotoResLoader.ResOutputInfo;
import com.motorola.mmsp.render.util.MotoMathUtil;
public class MotoInteractionSet {
private ArrayList<MotoInteraction> mInteractions = new ArrayList<MotoInteraction>();
... | true |
92f940b4f1086bff8a8a54811e9a3fba8fa40075 | Java | SiddharthaNG447/Core_Java | /charat2.java | UTF-8 | 709 | 3.109375 | 3 | [] | no_license | package Strings;
import java.util.Scanner;
public class charat2 {
public static void main(String[] args) throws Numberexceeds{
// TODO Auto-generated method stub
String s="htderabad";
Scanner sc=new Scanner(System.in);
System.out.println("enter index");
try {
... | true |
a192055a754a44cb52859acebf2d8b81135f1523 | Java | luguumur/courtdecision | /src/main/java/mn/mcs/electronics/court/model/YearSelectionModel.java | UTF-8 | 1,155 | 2.328125 | 2 | [] | no_license | package mn.mcs.electronics.court.model;
import java.io.Serializable;
import java.util.Calendar;
import java.util.List;
import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.internal.OptionModelImpl;
import org.apache.tapestry5.ioc.internal.util.Collection... | true |
df3ca02c68a5a33b2d0e0d68ad10a1248a0d3a40 | Java | kien1501/javacore | /src/javacore1/HomeWork11.java | UTF-8 | 438 | 3.234375 | 3 | [] | no_license | package javacore1;
import java.util.Scanner;
public class HomeWork11 {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
System.out.print("Nhập vào số a = ");
int a =sc.nextInt();
System.out.print("Nhập vào số b = ");
int b = sc.nextInt();
... | true |
835b6c9d63143448a106320069110c12f544a8f9 | Java | christwei/testCode | /UtilityTest/src/com/loop/LoopTest.java | UTF-8 | 833 | 3.4375 | 3 | [] | no_license | package com.loop;
public class LoopTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
testLoop ();
}
/**
* 循环测试.
*/
public static void testLoop () {
for (int i = 1; i <= 9; i++) {
for ... | true |
79af02c1c3d6e48cec2f1d95b5ddabb2cf592127 | Java | RyanDur/LearninWithMyCoach | /MyPoint/src/test/StrongPointTest.java | UTF-8 | 722 | 2.84375 | 3 | [] | no_license | import org.junit.Test;
import java.awt.*;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Created with IntelliJ IDEA.
* User: Thoughtworks
* Date: 10/11/12
* Time: 9:46 PM
* To change this template use File | Settings | File Templates.
*/
public class StrongPointTest {
... | true |
aed02f87589db1fc8609ca584ed94159aa5ebfe6 | Java | uttsow/Design-Patterns | /Visitor Pattern/troubleShootSearch/src/troubleshootsearch/driver/Driver.java | UTF-8 | 2,734 | 2.921875 | 3 | [] | no_license | package troubleshootsearch.driver;
import troubleshootsearch.util.FileProcessor;
import troubleshootsearch.util.MyLogger;
import troubleshootsearch.util.Results;
import troubleshootsearch.visitable.MyArrayList;
import troubleshootsearch.visitable.MyTree;
import troubleshootsearch.visitor.ArrayPopulatorVisitor;
import ... | true |
1fea1a058de62074b5ff6cab3ff2be04656d6a69 | Java | helmutsiegel/profile | /service/src/test/java/org/helmut/profile/rest/service/CvServiceTest.java | UTF-8 | 4,171 | 2.046875 | 2 | [] | no_license | package org.helmut.profile.rest.service;
import org.helmut.profile.business.bc.CvBC;
import org.helmut.profile.common.model.CertificationTO;
import org.helmut.profile.common.model.CvTO;
import org.helmut.profile.common.model.ExperienceTO;
import org.helmut.profile.common.model.LanguageTO;
import org.junit.jupiter.api.... | true |
ff6b9f31dcdb5ae4f83996ec56dc2cec3bc3ce20 | Java | galiosmax/Computer-Graphics | /Raytracing/src/main/java/ru/nsu/fit/g16203/galios/raytracing/scene/Quadrangle.java | UTF-8 | 1,647 | 3.09375 | 3 | [] | no_license | package ru.nsu.fit.g16203.galios.raytracing.scene;
import javafx.geometry.Point3D;
import javafx.util.Pair;
import ru.nsu.fit.g16203.galios.raytracing.matrix.Vector;
public class Quadrangle extends Figure {
private Point3D first;
private Point3D second;
private Point3D third;
private Point3D fourth;
... | true |
845e676e60d06f3a03d90fa173f2f4c03b75bc74 | Java | jpcastillo23/MysqlLiteAntlr | /src/Mitable.java | UTF-8 | 437 | 2.3125 | 2 | [] | no_license | import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import net.sf.json.*;
public class Mitable implements java.io.Serializable {
private String name =... | true |
d45583a769affa57e616c530813cfcf9abaa192f | Java | jmgodino/remoting | /PdfServiceImpl/src/main/java/es/gob/catastro/service/rmi/pdf/server/translet/CatastroUriResolver.java | UTF-8 | 1,378 | 2.125 | 2 | [] | no_license | package es.gob.catastro.service.rmi.pdf.server.translet;
import java.io.IOException;
import javax.xml.transform.Source;
import javax.xml.transform.TransformerException;
import javax.xml.transform.URIResolver;
import javax.xml.transform.stream.StreamSource;
import org.apache.fop.apps.FOURIResolver;
import org.apache.... | true |
9cf9efb80ff64f4c01083942c06662285fbb153d | Java | 438972218/ztb-server | /workflow-service/src/test/java/com/xdcplus/workflow/service/ProcessServiceTest.java | UTF-8 | 929 | 1.835938 | 2 | [] | no_license | package com.xdcplus.workflow.service;
import com.xdcplus.workflow.WorkflowServiceApplicationTests;
import com.xdcplus.workflow.common.pojo.dto.ProcessDTO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 流程业务层接口测试
*
* @author Rong.Jia
* @date 2021/06/18
*/
c... | true |
5d18d72f69ccd835a07c8d06f7ae9f6ea1bdff7e | Java | xuewanyan/mmp | /mmp_boot/src/test/java/cn/com/yitong/ares/genericity/Message.java | UTF-8 | 533 | 2.703125 | 3 | [] | no_license | package cn.com.yitong.ares.genericity;
import org.apache.commons.collections4.ListUtils;
public class Message<T> {
private T info;
public void run(Message<? super Integer> msg){
System.out.println(msg.getInfo());
}
public T getInfo() {
return info;
}
public void setInfo(T i... | true |
6ce8b3d88b26ddd7fdf5a183a5373faabd48910c | Java | diegobravo8702/adn-scanner | /src/main/java/com/bravo/meli/adn/negocio/interfaces/Analizable.java | UTF-8 | 362 | 2.359375 | 2 | [] | no_license | package com.bravo.meli.adn.negocio.interfaces;
import java.util.regex.Pattern;
import com.bravo.meli.adn.negocio.excepciones.DatosInvalidosException;
public interface Analizable {
public static final Pattern patronMutante = Pattern.compile("a{4}|t{4}|g{4}|c{4}", Pattern.CASE_INSENSITIVE);
boolean isMutant(String... | true |
af5d2878dc8dc2f43cbb49568c107d3a3cbb66a8 | Java | williamzhang11/fastCode | /src/main/java/com/xiu/fastCode/string/validpalindromeii/Solution.java | UTF-8 | 939 | 3.46875 | 3 | [] | no_license | package com.xiu.fastCode.string.validpalindromeii;
public class Solution {
public boolean validPalindrome(String s) {
int left = 0;
int right = s.length() - 1;
while (left <= right) {
if(s.charAt(left) != s.charAt(right)) {
return deleteJuge(s, left+1, right)|| de... | true |
7ae65242a86dcbbc64df2f2721c65cbb77a68820 | Java | swapnilpatil427/AlphaFitness | /app/src/main/java/com/example/swapn/alphafitness/database/MyDbHelper.java | UTF-8 | 14,139 | 2.40625 | 2 | [] | no_license | package com.example.swapn.alphafitness.database;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.exam... | true |
eea93a23fe76707644341c34806318c6ed116edf | Java | MisterMaurya/netflix-eureka-naming-server | /src/main/java/io/ppro/netflixeurekanamingserver/NetflixEurekaNamingServerApplication.java | UTF-8 | 549 | 1.539063 | 2 | [] | no_license | package io.ppro.netflixeurekanamingserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/***
* @author Pawan Maurya
* @since Aug 07, 2021
*/
@SpringBootApplication
... | true |
7a236db7a439bde0bf35c58556a42cc6983ca2c4 | Java | alvgomper1/APIUNI | /apiuni/src/main/java/com/apiuni/apiuni/servicio/AsignaturaService.java | UTF-8 | 1,416 | 2.296875 | 2 | [] | no_license | package com.apiuni.apiuni.servicio;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.apiuni.apiuni.modelo.Asignatura;
import com.apiuni.apiuni.repositorio.AsignaturaReposi... | true |
0189329645ec926522d5e064b429eb6bf27b747c | Java | warfu/JAVA-Note-LJK | /06_框架编程/SSH_基于注解的配置/SqlserverConfiguration.java | UTF-8 | 2,154 | 2.09375 | 2 | [] | no_license | @Configuration
@MapperScan(value = "com.newings.dao.sqlserver", sqlSessionFactoryRef = "scmSqlSessionFactory")
@PropertySource("classpath:config.properties")
public class SqlserverConfiguration {
@NotNull
@Value("${database.scm.username}")
private String username;
@NotNull
@Value("${database.scm.password}")
... | true |
4697920a118b60aea24afd30befbbc9eda519cd5 | Java | RafaelSantosBraz/Programacao2 | /NetBeansProjects/ProgramacaoII/src/refrigerantes/Main.java | UTF-8 | 862 | 2.984375 | 3 | [] | no_license | package refrigerantes;
public class Main {
public static void main(String[] args) {
FabricaRefrigelixInc fabrica = new FabricaRefrigelixInc();
Refrigerante refrigelix = fabrica.factoryMethod();
refrigelix.setNome("Refrigerante Refrigelix");
refrigelix.setConteudo(2000);
... | true |
3eb080bd936e0358189fce15618695ada22231a6 | Java | dakshay27/WeHearOX | /src/main/java/com/wehear/ox/ResultCompletionHandler.java | UTF-8 | 176 | 1.53125 | 2 | [] | no_license | package com.wehear.ox;
import org.json.JSONObject;
public interface ResultCompletionHandler {
void onResult(boolean success, JSONObject response, Exception exception);
}
| true |
ab8fd9d8fb4e9c3a9d48a04c2ed6d3fa19b3abb6 | Java | knoppixmeister/ASyncTaskLoaderWithSupportLibrary | /src/com/blundell/asynctaskloader/ui/loader/AppListLoader.java | UTF-8 | 4,782 | 2.359375 | 2 | [] | no_license | package com.blundell.asynctaskloader.ui.loader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.blundell.asynctaskloader.domain.AppEntry;
import com.blundell.asynctaskloader.receiver.PackageIntentReceiver;
import com.blundell.asynctaskloader.util.Comparator;
import android... | true |
cbdb7f78d5fe4e15f2e4667f0336d3800869b306 | Java | Jennifer-Yu/HW40 | /SuperArray.java | UTF-8 | 5,031 | 3.96875 | 4 | [] | no_license | //Team Praise be Arrays -- Jennifer Yu, Jackson Deysine
//APCS1 pd9
//HW40 -- Array of Grade 316
//2015-12-02
/*****************************
* SKELETON for
* class SuperArray -- A wrapper class for an array.
* Maintains functionality:
* access value at index
* overwrite value at index
* Adds functionality to... | true |
5258f0a9d73042baeef996f7e1362b5b0d100fe1 | Java | sanlaba08/BigCoachNBA | /src/main/java/com/utn/BigCoachNBA/projections/SquadStatsProjection.java | UTF-8 | 298 | 1.78125 | 2 | [] | no_license | package com.utn.BigCoachNBA.projections;
public interface SquadStatsProjection {
String getPlayer_name();
String getPlayer_surname();
String getPosition();
Integer getPoints();
Integer getBounces();
Integer getAssists();
Integer getMinutes();
Integer getFouls();
}
| true |
3fabd730d0c1c3e0f2a0a66b9f48f30f814d04da | Java | h-rshada/YDAcademy | /app/src/main/java/com/ydacademy/dell/Yashodeep2/AchieversDescription.java | UTF-8 | 3,049 | 1.882813 | 2 | [] | no_license | package com.ydacademy.dell.Yashodeep2;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.ButterKnife;
import b... | true |
a2c8f7ca9c6296666bb311abdd4469a3868c3877 | Java | ZeynepSulukcu/ProjectDecember | /src/test/java/utilities/ElementsClass.java | UTF-8 | 1,309 | 2.796875 | 3 | [] | no_license | package utilities;
import org.openqa.selenium.*;
import java.util.ArrayList;
import java.util.List;
import static utilities.ElementClass.$;
public class ElementsClass {
public static ElementsClass $$(By by){ return new ElementsClass(by); }
private WebDriver driver;
private List<WebElement> elements;
... | true |
a0eb90961b3f1220588d722e81b2b8c5810a3dc8 | Java | yangziwen/patchmaker-java8 | /src/main/java/net/yangziwen/patchmaker/patch/registry/mvn/MvnHbmXmlRegistry.java | UTF-8 | 1,013 | 2.3125 | 2 | [] | no_license | package net.yangziwen.patchmaker.patch.registry.mvn;
import java.io.File;
import java.util.Map;
import net.yangziwen.patchmaker.patch.registry.AbstractRegistry;
public class MvnHbmXmlRegistry extends AbstractRegistry {
private static final String PACKAGE_PREFIX = "/src/main/java/";
public MvnHbmXmlRegistry(){... | true |
8b730c514630e1e1d83f02789687dc9952a754c3 | Java | daiyunhang/Java | /myjava/dd_07_03_猜游戏/src/dd_07_03_猜游戏/GuessLetterGame.java | GB18030 | 1,058 | 3.4375 | 3 | [] | no_license | package dd_07_03_Ϸ;
import java.util.Random;
public class GuessLetterGame extends GuessGame{
public String suiji() {
StringBuilder sb = new StringBuilder("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
for(int i=0; i<5; i++) {
int j = new Random().nextInt(26);
char t = sb.charAt(i);
sb.setCharAt(i, sb.charAt(j));
sb... | true |
06081540c8d492d577c03fd9ad6d8cfaee946887 | Java | stevensimmons/restalm | /src/main/java/com/fissionworks/restalm/model/entity/AlmEntity.java | UTF-8 | 1,304 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.fissionworks.restalm.model.entity;
import com.fissionworks.restalm.model.entity.base.GenericEntity;
/**
* Interface that describes methods common to/need for all ALM resource entity
* objects.
*
* @since 1.0.0
*
*/
public interface AlmEntity {
/**
* Creates an {@link GenericEntity} object based ... | true |
ad96578dce32e3049f52b6b56d82df263f9a2a47 | Java | artkostm/rxjdi | /src/test/java/test/main/HttpServer.java | UTF-8 | 378 | 2.09375 | 2 | [] | no_license | package test.main;
import by.artkostm.rxj.annotation.Inject;
import by.artkostm.rxj.annotation.Singleton;
import test.main.inner.HttpServerInitializer;
@Singleton
public class HttpServer
{
@Inject
private HttpServerInitializer initializer;
public void get()
{
System.out.prin... | true |
5c103a5981c92a1264036275aaa30459ef4fac1d | Java | goungoun/daon | /daon-core/src/main/java/daon/core/util/Utils.java | UTF-8 | 17,320 | 2.765625 | 3 | [] | no_license | package daon.core.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import daon.core.config.POSTag;
import daon.core.data.Eojeol;
import daon.core.data.Morpheme;
public class Utils {
/**
* http://jrgraphix.net/r/Unicode/AC00-D7AF
*/
//한글 시작 문자... | true |
3b5b708104da05601d702afcb7099f9e57f3bde3 | Java | ifpr-pgua-oo-tads-2018/aula5-1-gustaacamargo | /src/pizzapp/model/PizzaAtributoBusca.java | UTF-8 | 69 | 1.5 | 2 | [] | no_license | package pizzapp.model;
public enum PizzaAtributoBusca {
SABOR
}
| true |
f829790f14056e0c711d221bcd3ac1e240cf8612 | Java | StanislavGS/Swift | /7_OOPPrinciples/Task2_UniversityManagement/src/Student.java | UTF-8 | 777 | 2.359375 | 2 | [] | no_license |
import java.util.Arrays;
/*
* 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.
*/
/**
*
* @author Stanislav Stanislavov
*/
public class Student extends Person {
p... | true |
49de8589bad1d124cf916a12e0d9f23fb0524923 | Java | BestSolution-at/java2typescript | /tooling/at.bestsolution.typescript.service.spec/src-gen/at/bestsolution/typescript/service/spec/parser/antlr/internal/InternalTSSpecParser.java | UTF-8 | 110,548 | 1.59375 | 2 | [] | no_license | package at.bestsolution.typescript.service.spec.parser.antlr.internal;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.*;
import org.eclipse.xtext.parser.impl.*;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrPa... | true |
7ca9ca67377318e47a07d256505b9058748e47d8 | Java | JohnVeZh/mgr | /src/main/java/cn/sparke/modules/system/log/controller/LoginLogController.java | UTF-8 | 1,826 | 1.992188 | 2 | [] | no_license | package cn.sparke.modules.system.log.controller;
import com.github.pagehelper.Page;
import cn.sparke.core.common.constants.Const;
import cn.sparke.core.common.controller.BaseController;
import cn.sparke.core.modules.log.annotation.BussinessLog;
import cn.sparke.core.modules.mybatis.bean.PageInfo;
import cn.sparke.core... | true |
7374489ecd54cdf02bfba8bd5632737312aa50fc | Java | Pratik32/GoogleDriveUpload | /src/main/drive/Uploader.java | UTF-8 | 9,541 | 2.984375 | 3 | [] | no_license | package main.drive;
import javax.net.ssl.HttpsURLConnection;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/**
* Created by ps on 29/11/17.
* A simple uploader class that takes a folder/file a... | true |
889fef56df78df47f9782c33cedcd7d60e934677 | Java | zoumhussein/RooTrackerApp | /SVI-Tickets/src/main/java/fr/leburcom/svi/tickets/TicketStatus.java | UTF-8 | 137 | 1.65625 | 2 | [] | no_license | package fr.leburcom.svi.tickets;
public enum TicketStatus {
OPEN,
IN_DIAGNOSTIC,
IN_DELIVERY,
REJECTED,
RESOLVED;
}
| true |
88b96d74ff2fa3ef736d3d2bec9ad4b8f52b9580 | Java | JimmyChavada/Computer-Science-2020 | /Creating our own methods/src/AreaOfCircle.java | UTF-8 | 1,714 | 4.28125 | 4 | [] | no_license | import javax.swing.JOptionPane;
/**
*
*/
/**
* @author Jimmy Chavada
* Date: oct 2020
* Description: Calculates the area of a circle
* allows for us to not reuse the code, instead allows us to use the calcArea to bring
* the code inside. upper case is always class, lower case is function.
*/
public class A... | true |
75da82508a4bf7d0c8ae1e87d4b76721bd90fe06 | Java | sunnnydaydev/DesignPatterns | /src/pattern_adapter/source/HomePowerSocket.java | UTF-8 | 225 | 2.328125 | 2 | [] | no_license | package pattern_adapter.source;
/**
* Create by SunnyDay 2022/11/20 11:02:48
* 适配者
**/
public class HomePowerSocket {
public void outPut(){
System.out.println("家庭电源插座输出220V电");
}
}
| true |