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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
06773727fa8c164af2548cf3f5aa25d1de83f8ca | Java | uol-jdb50/CampusFood | /code/CampusFood/app/src/main/java/uol/co4224/campusfood/CampusSelect.java | UTF-8 | 5,852 | 2.078125 | 2 | [] | no_license | package uol.co4224.campusfood;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import org.json.J... | true |
56d0ce24f6af63661c9c7febfd8fb589d6e54581 | Java | wuhuaqing/PromoteProject | /app/src/main/java/com/example/promoteproject/bean/LoginReq.java | UTF-8 | 500 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.promoteproject.bean;
import retrofit2.http.Field;
public class LoginReq {
String identifier ;
String workNum;
String password;
int softWareType;
int version;
public LoginReq(String identifier, String workNum, String password, int softWareType, int version) {
... | true |
b5b1038cc7b7f8d5ce91a2116103f21a5ddfde54 | Java | datasphere-oss/datasphere-mdm | /org.datasphere.mdm.data/src/main/java/org/datasphere/mdm/data/dto/RelationsBulkResultDTO.java | UTF-8 | 2,893 | 1.859375 | 2 | [] | no_license |
package org.datasphere.mdm.data.dto;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import org.datasphere.mdm.system.type.pipeline.batch.BatchedPipelineOutput;
import org.datasphere.mdm.system.type.pipeline.fragment.FragmentId;
import org.datasphere.mdm.system.type.pipeline.fragment.... | true |
fff48e997a1a4c173ffd7a067d42ec78116609d5 | Java | babyheros/mayberun | /app/src/main/java/com/finalexam/bottom/WechatShareManager.java | UTF-8 | 3,684 | 2.328125 | 2 | [] | no_license | package com.finalexam.bottom;
import android.content.Context;
import com.tencent.mm.sdk.modelmsg.SendMessageToWX;
import com.tencent.mm.sdk.modelmsg.WXMediaMessage;
import com.tencent.mm.sdk.modelmsg.WXTextObject;
import com.tencent.mm.sdk.openapi.WXAPIFactory;
/**
* 实现微信分享功能的核心类
* @author chengcj1
*
*/
public ... | true |
5681543251aa29c1be7f52baa257756f7b883fde | Java | 9553432712/sadarem | /src/org/bf/disability/form/TerritoryForm.java | UTF-8 | 75,917 | 1.617188 | 2 | [] | no_license | /*
* TerritoryForm.java
*
* Created on June 18, 2008, 3:33 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.bf.disability.form;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.ArrayList;
import javax.servl... | true |
f603454809d6e9fcae5ef0b13b6a015ded23f49d | Java | ZongzheYuan/RobotAndMaze | /src/robot/IntelligentRobot.java | UTF-8 | 2,138 | 3.421875 | 3 | [] | no_license | package robot;
import java.util.ArrayList;
import java.util.List;
import direction.Direction;
public abstract class IntelligentRobot extends AbstractRobot{
/*
* the intelligent robot class
* it has two additional method
* one is to record its walk path
* the other one is to judge the path according to its w... | true |
955ff1e0a88f5e0abf9f3113b773a2ac3d4b3ef5 | Java | aheadlcx/analyzeApk | /budejie/sources/com/budejie/www/activity/video/i.java | UTF-8 | 6,669 | 2.484375 | 2 | [] | no_license | package com.budejie.www.activity.video;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Map;
public class i {
public static boolean a = true;
public static boolean b = false;
public static Str... | true |
170de6d32aa468a5349780666082b0719a0437ac | Java | skokorev/rockpaperscissors-javatraining | /src/test/java/ru/test/PlayerTest.java | UTF-8 | 897 | 2.5625 | 3 | [] | no_license | package ru.test;
import org.junit.jupiter.api.Test;
import ru.test.players.PaperShowingPlayer;
import ru.test.players.RandomPlayer;
import static org.junit.jupiter.api.Assertions.*;
public class PlayerTest {
@Test
public void shouldShowPaperResult() {
Player p = new PaperShowingPlayer();
Res... | true |
18ec514b81b00f7d36951bb3f04c81071e7af62f | Java | tonyhuangyu7/EA103G7 | /src/com/meal/controller/MealServletUploadImg.java | UTF-8 | 862 | 2.140625 | 2 | [] | no_license | package com.meal.controller;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.*;
import javax.servlet.http.*;
import com.meal.model.MealService;
@WebServlet("/meal/meal.UploadImg")
@MultipartConfig
public class MealServletUploadImg extends HttpServlet {
private static final ... | true |
453281c975fd43c125e68e30f28357a22603fe7e | Java | designreuse/BugTracker-1 | /src/main/java/com/bugtracker/mapper/UserMapper.java | UTF-8 | 342 | 2.078125 | 2 | [] | no_license | package com.bugtracker.mapper;
import com.bugtracker.dto.UserDTO;
import com.bugtracker.entity.User;
import java.util.Set;
public interface UserMapper {
UserDTO userToUserDTO(User user);
User userDTOToUser(UserDTO userDTO);
Set<UserDTO> usersToUserDTOs(Set<User> users);
Set<User> userDTOsToUsers(Set<... | true |
88173503f143ff38954ac1a48a2f6b332be33c0f | Java | nityanantan23/androidtestng | /src/test/java/Common/AppInteraction.java | UTF-8 | 8,312 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package Common;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Properties;
import org.apache.commons.io.IOUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
i... | true |
3549f962c89a73bbc743f31d2017cd293e914904 | Java | diegopreviero/ExemploSpring | /src/main/java/br/com/estudae/springtest/web/PostRestController.java | UTF-8 | 1,069 | 2.125 | 2 | [] | no_license | package br.com.estudae.springtest.web;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
impor... | true |
38e4df6de02740cb56d981a6f1912531de6606f6 | Java | Azalkor/ProjetAL | /src/model/ShapeGroup.java | UTF-8 | 4,287 | 2.796875 | 3 | [] | no_license | package model;
import java.util.ArrayList;
import com.sun.javafx.geom.Vec2d;
import javafx.geometry.Point2D;
import javafx.scene.paint.Color;
public class ShapeGroup implements Shape {
private ArrayList<IShapeObserver> observeurs;
private ArrayList<Shape> shapes;
private Shape etat;
private Rectangle selection;... | true |
4d0e0370b6dd585d7b7e5515f73cdd8de9cdab9e | Java | dimaskiddo/training-telkom-dta-backend | /src/main/java/co/id/telkom/digitalent/jwt/JWTAuthentication.java | UTF-8 | 3,054 | 2.296875 | 2 | [] | no_license | package co.id.telkom.digitalent.jwt;
import co.id.telkom.digitalent.model.JWTModel;
import co.id.telkom.digitalent.response.WriteResponse;
import co.id.telkom.digitalent.response.DataResponse;
import co.id.telkom.digitalent.utils.SecurityUtils;
import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
impor... | true |
e3f34dff2d328187acc561feae5002312fa8f582 | Java | teamFeeder/main | /src/main/java/seedu/address/logic/parser/CliSyntax.java | UTF-8 | 918 | 2.03125 | 2 | [
"MIT"
] | permissive | package seedu.address.logic.parser;
/**
* Contains Command Line Interface (CLI) syntax definitions common to multiple commands
*/
public class CliSyntax {
/* Prefix definitions */
public static final Prefix PREFIX_NAME = new Prefix("n/");
public static final Prefix PREFIX_PHONE = new Prefix("p/");
p... | true |
a51fa38b6d19a61591df8f6ffd0079f93701ed33 | Java | qreal/wmp | /editor-service/src/main/java/com/qreal/wmp/editor/common/auth/OAuth2UserDetailsLoaderImpl.java | UTF-8 | 4,963 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.qreal.wmp.editor.common.auth;
import com.qreal.wmp.editor.database.exceptions.AbortedException;
import com.qreal.wmp.editor.database.exceptions.ErrorConnectionException;
import com.qreal.wmp.editor.database.exceptions.NotFoundException;
import com.qreal.wmp.editor.database.users.client.UserService;
import ... | true |
327703f626e598b5805b87648d4b9ab528e510ea | Java | deathmock5/BrewersConstruct | /bconstruct/common/blocks/templates/BConstructBlock.java | UTF-8 | 692 | 2.09375 | 2 | [
"MIT"
] | permissive | package bconstruct.common.blocks.templates;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import bconstruct.BConstruct;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegis... | true |
c85e7932c2749aedc643548686c8a172e342b6f8 | Java | BarakHirsch/BasicWeb | /Trivia/src/java/servlets/StartGameServlet.java | UTF-8 | 1,726 | 2.4375 | 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 servlets;
import enums.*;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.ServletException;
import... | true |
cf8e4cbf15cf858037431e3245b10a70917ed3b6 | Java | ryouichi0618/Java-Lesson | /UdemyJava/src/exday4/SampleEx401.java | UTF-8 | 373 | 2.6875 | 3 | [] | no_license | package exday4;
public class SampleEx401 {
public static void main(String[] args) {
CellPhone cp = new CellPhone("hoge@email.com","090-1234-5678");
cp.call("011-123-4567");
cp.sendMail("fuga@email.com");
IPhone phone = (IPhone)cp;
phone.call("011-987-6543");
IE... | true |
31e1e05705c7e6d5b8d8a4ee6a3fbcf263b4c019 | Java | J-Wass/LeBot | /LeBotCommandCore.java | WINDOWS-1252 | 4,114 | 2.421875 | 2 | [] | no_license | import org.pircbotx.PircBotX;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.events.MessageEvent;
import static org.pircbotx.ReplyConstants.*;
import org.pircbotx.exception.IrcException;
import org.pircbotx.exception.NickAlreadyInUseException;
import org.pircbotx.hooks.CoreHooks;
import org.pircbo... | true |
da4c69fa9ae1266b07ce18088da6294f7909c2a8 | Java | brzaskun/NetBeansProjects | /kadry/src/main/java/view/RodzajenieobecnosciView.java | UTF-8 | 1,858 | 2.03125 | 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 view;
import comparator.Rodzajnieobecnoscicomparator;
import dao.RodzajnieobecnosciFacade;
import entity.Rodzajnieobecnosci;
i... | true |
de896eae206b09c60fc7ab7fbc4309f63105b842 | Java | jamiehjmills/codingInterview | /src/COSC250/Challenge1.java | UTF-8 | 953 | 3.34375 | 3 | [] | no_license | package COSC250;
import java.util.*;
import static java.lang.Math.abs;
public class Challenge1 {
public static void main(String[] args){
int[] test = {0,1,2,4,3,5};
System.out.println(flatlandSpaceStations(6, test));
}
public static int flatlandSpaceStations(int n, int[] c) {
... | true |
3e83e6815480f49996a9f900e0fe62da9fcf9eb6 | Java | cxlin007/commons | /refreshview/src/main/java/com/common/refreshview/PullToRefreshTouchManager.java | UTF-8 | 10,293 | 2.25 | 2 | [] | no_license | package com.common.refreshview;
import android.support.v4.view.MotionEventCompat;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.AbsListView;
import android.widget.Scroller;
/**
* 下拉刷新触摸管理器
* Created by chenxunlin_91 on 2015/4/20.
*/
public c... | true |
4f239abf747ae11865a00d7c60eb9a3a1552113d | Java | ptngmbjr/SchoolApp | /app/src/main/java/com/baseschoolapp/schoolapp/models/Student/AllMonthsAttendanceDataModel.java | UTF-8 | 891 | 2.421875 | 2 | [] | no_license | package com.baseschoolapp.schoolapp.models.Student;
public class AllMonthsAttendanceDataModel {
public String getMonthName() {
return monthName;
}
public void setMonthName(String monthName) {
this.monthName = monthName;
}
public String getPresent_val() {
return present_v... | true |
66298e413cb10613fd8390b463aa91c4eeb2d9a2 | Java | 52North/sos-for-geoevent | /sos-transport/src/main/java/net/opengis/gml/FeatureMember.java | UTF-8 | 644 | 1.96875 | 2 | [] | no_license | package net.opengis.gml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import net.opengis.sa.x10.SamplingPoint;
/**
*
* @author <a href="mailto:s.drost@52north.org">Sebastian Drost</a>
*
*/
@XmlAccessorType(XmlAcce... | true |
03840157504dd7a73cf96241f48304c4f44fbdb9 | Java | mboina/liveorderboard | /src/main/java/com/sbm/orders/liveorderboard/domain/OrderSummary.java | UTF-8 | 1,858 | 2.875 | 3 | [] | no_license | package com.sbm.orders.liveorderboard.domain;
import com.google.common.base.Preconditions;
/**
* Represents an {@link Order}, used for generating Order Summary.
*/
public class OrderSummary {
private final OrderQuantity orderQuantity;
private final OrderType orderType;
private final UnitPrice unitPrice;... | true |
3f5e796aa873934e93ad7f8371f0779e22b0f300 | Java | simba1949/gof23 | /src/main/java/top/simba1949/adapter/TFCard.java | UTF-8 | 275 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package top.simba1949.adapter;
/**
* @author anthony
* @datetime 2023/7/20 22:10
*/
public interface TFCard {
/**
* 读 TF
*
* @return
*/
String readTF();
/**
* 写 TF
*
* @param msg
*/
void writeTF(String msg);
} | true |
d2336dad68b7823551eb48db0608281eadfc1ae3 | Java | jefersonf/garupa.com | /Simulator/src/Entities/ClientServer.java | UTF-8 | 2,105 | 3.015625 | 3 | [] | no_license | package Entities;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
import eduni.simjava.*;
public class ClientServer extends Sim_entity {
private Sim_port in, out;
private double delay;
private String serverState;
private Queue < String > queue1, queue2;
private Random numGen;
pub... | true |
734fa312fb6280ef76b867147e9ac7389ada3334 | Java | LyschevIvan/Lab7-server | /Application/Commands/RemoveGrKey.java | UTF-8 | 1,556 | 2.921875 | 3 | [] | no_license |
package com.company.Application.Commands;
import com.company.Application.Data;
import java.io.IOException;
import java.net.Socket;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
/**
* remove if key is greater
*/
class RemoveGrKey extends AbstractCommand {
public RemoveGrK... | true |
f432ab49a44b3b49408151bdb3b35832eda7f464 | Java | lishashalyt/JingDong_Lss | /app/src/main/java/com/bawei/jingdong_lss/model/ZiProductModel.java | UTF-8 | 1,226 | 2.15625 | 2 | [] | no_license | package com.bawei.jingdong_lss.model;
import com.bawei.jingdong_lss.bean.ZiProduct;
import com.bawei.jingdong_lss.net.OnNetListener;
import com.bawei.jingdong_lss.net.RetrofitHelper;
import com.bawei.jingdong_lss.net.ServerApi;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers... | true |
df5a592dd5ffca1af69d11355cf02a9da2e9536d | Java | P79N6A/icse_20_user_study | /methods/Method_36798.java | UTF-8 | 64 | 1.632813 | 2 | [] | no_license | public BaseCell getCell(View view){
return vmMap.get(view);
}
| true |
78b195767ebeaad3d84f0089e42a25199c4b6114 | Java | jpaulo02/GymAgenda | /app/src/main/java/com/brogrammers/paulo/gymagenda/SpotifyEndpoints.java | UTF-8 | 452 | 2.359375 | 2 | [] | no_license | package com.brogrammers.paulo.gymagenda;
/**
* Created by paulo on 4/13/17.
*/
public enum SpotifyEndpoints {
GET_CURRENTLY_PLAYING("https://api.spotify.com/v1/me/player/currently-playing"),
GET_USER_PLAYLISTS("https://api.spotify.com/v1/users/{user_id}/playlists");
private final String value;
pri... | true |
6c402fce1e1bf5366f62f846f4571e14d5838582 | Java | zhangyufeng12/Basis | /src/main/day14/ProducerConsumerDemo2.java | UTF-8 | 3,401 | 3.453125 | 3 | [] | no_license | package main.day14;
/*
jdk1.5以后将同步和锁封装成了对象。
并将操作锁的隐式方式定义到了该对象中,
将隐式动作变成了显示动作。
Lock接口: 出现替代了同步代码块或者同步函数。将同步的隐式锁操作变成现实锁操作。
同时更为灵活。可以一个锁上加上多组监视器。
lock():获取锁。
unlock():释放锁,通常需要定义finally代码块中。
Condition接口:出现替代了Object中的wait notify notifyAll方法。
将这些监视器方法单独进行了封装,变成Condition监视器对象。
可以任意锁进行组合。
await();
signal();
signalAll(... | true |
9f3616a5d20ba90b9dfca0ed825c62857ae01485 | Java | oceanbhardwaj/LeetcodeJulyChallenge | /ConstructBinaryTreefromInorderandPostorderTraversal.java | UTF-8 | 1,117 | 2.75 | 3 | [] | no_license | class Solution {
public TreeNode buildTree(int[] inorder, int[] postorder) {
int len=inorder.length;
return Helper(inorder,postorder,0,len-1,0,len-1);
}
static TreeNode Helper(int[] inorder,int[]postorder,int instart,int inend,int poststart,int postend)
{
if(... | true |
b89d8f42bf0b9b53f6c81d99628ff19b3f03e089 | Java | Atikasoft/protteus2 | /proteus-web/src/main/java/ec/com/atikasoft/proteus/controlador/helper/TramiteRevisionHelper.java | UTF-8 | 985 | 1.734375 | 2 | [] | no_license | /*
* TramiteValidacionHelper.java
* Proteus V 2.0 $Revision 1.0 $
*
* Todos los derechos reservados. All rights reserved.
* This software is the confidential and proprietary information of Proteus
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only ... | true |
c12a857e80a1e01828b5c4af04164cd37d70289c | Java | JayWebDevCom/Supermarket | /src/tests/ThreeForTwoTest.java | UTF-8 | 2,124 | 2.84375 | 3 | [] | no_license | package tests;
import models.Basket;
import models.Product;
import models.Saving;
import models.offers.ThreeForTwo;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
public class ThreeForTwoTest {
private ThreeForTwo tft;
private Product juice;
pri... | true |
5f3fdcbfa48e03bff22b047de8c2d7e639d805fd | Java | unsamdev/plataforma1 | /src/plataforma1/wicket/SetFocusBehavior.java | UTF-8 | 653 | 2.328125 | 2 | [] | no_license | package plataforma1.wicket;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.OnDomReadyHeaderItem;
public class SetFocusBehavior extends Behavior {
@Override
public void bind(Component co... | true |
a6f376f0f2719da73c9dcf49e0999712ec8ed5d8 | Java | MarianaOnica/OOP | /Lab4/src/com/mariana/practica/Practica2/practice_3.java | UTF-8 | 720 | 3.59375 | 4 | [] | no_license | package com.mariana.practica.Practica2;
public class practice_3 {
public static void main(String[] args) {
// Employee e1 = new Employee();
// e1.name = "Ionica";
SimpleEmployee s1 = new SimpleEmployee(5);
s1.name = "Grisha";
}
}
class Employee {
public String name;
publ... | true |
123638c5cbc66444d50c91476991eff4775fd034 | Java | kothsada/ace_member_android | /app/src/main/java/com/ace/member/main/me/payment_history/PaymentHistoryActivity.java | UTF-8 | 6,381 | 1.914063 | 2 | [] | no_license | package com.ace.member.main.me.payment_history;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.AppCompatImageView;
import android.text.TextUtils;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.PopupWindow;... | true |
9be3a157a200250b61ebc8f417b9fe7ef711c50c | Java | IESJacaranda/FranArroyo1DAW | /Coronavirus/src/es/iesjacaranda/corona/Coronavirus.java | UTF-8 | 2,309 | 2.6875 | 3 | [] | no_license | package es.iesjacaranda.corona;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.time.LocalDate;
import java.util.ArrayList;
import com.google.gson.Gson;
//gettersetterconstructorhashset
//fechaconformato
public class Coronavirus... | true |
8b654afd75ed2464b78e99afca8fdbc6c08a4256 | Java | hongLev/- | /pinyougou-manage-web/src/main/java/com/pinyougou/manager/controller/ItemCatController.java | UTF-8 | 2,007 | 2.078125 | 2 | [] | no_license | package com.pinyougou.manager.controller;
import java.util.List;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.dubbo.config.annotation.Reference;
import com.p... | true |
508f9c548d9c7b963635a451a6e2a5d1f80c5fa4 | Java | andreysher/study | /3k-1s/architecture/laba4/benchit/kernel/numerical/elementary/Java/0/0/sincostan/KernelMain.java | UTF-8 | 11,057 | 2.421875 | 2 | [] | no_license | /********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: developer@benchit.org
*
* $Id: KernelMain.java 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://william@rupert.zih.tu-dresden.de/svn-base/benchit-root/BenchITv6/kernel/... | true |
95410c88e5deb8f30b24566cfd15197a806d60a1 | Java | yuanyisheng/yys_springboot | /yys-springboot-freemarker-templateDirectiveModel/src/main/java/com/yys/freemarker/BaseDirective.java | UTF-8 | 490 | 2.03125 | 2 | [] | no_license | package com.yys.freemarker;
import freemarker.ext.beans.BeansWrapper;
import freemarker.ext.beans.BeansWrapperBuilder;
import freemarker.template.Configuration;
import freemarker.template.TemplateDirectiveModel;
/**
* 自定义标签父类
* Directive
* @author yys
*/
public abstract class BaseDirective implements Templat... | true |
ced5a58ae6afa58ff054e342a0b88aa6aa044338 | Java | micha1981/SpringRest | /src/main/java/pl/org/rudnicki/service/CarService.java | UTF-8 | 947 | 2.296875 | 2 | [] | no_license | package pl.org.rudnicki.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.org.rudnicki.dao.CarDao;
import pl.org.rudnicki.model.Car;
@Service
public class CarService {
private final CarDao carD... | true |
7409b125b599cfb65175e1b6f9cdd703c3ef8590 | Java | victoria12345/padsof | /nuevaguiaverquetal/src/paneles/ElegirRolPanel.java | ISO-8859-10 | 2,785 | 2.890625 | 3 | [] | no_license | package paneles;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import app.Sistema;
/**
* Descripcion de la clase ElegirRolPanel
* @author Victoria Pelayo e Ignacio Rabunnal
*
*/
public class ElegirRolPanel extends JPanel {
private static final long serialVersionUID = 1L;
... | true |
3605f9c6f6181e877d53da8e8ce4617b29515f63 | Java | iamjones/msc-cs-project | /src/main/java/domain/stopwords/StopWords.java | UTF-8 | 2,352 | 3.328125 | 3 | [] | no_license | package domain.stopwords;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* This class holds all the stop words a provided methods to
* do some processing with the stored list of stop words.
*/
public class StopWords {
public String[] stopwords = {
"a","about","above","... | true |
edd1d815288200ace6d0e61feb62929f0d9a1287 | Java | Toolanto/akkaExperience | /src/main/java/com/simpleapp/becomeUnbecome/StartSystem.java | UTF-8 | 387 | 1.90625 | 2 | [] | no_license | package com.simpleapp.becomeUnbecome;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.simpleapp.guice.AkkaModule;
public class StartSystem {
public static Injector injector;
public static void main(String[] args) throws Exception {
injector = Guice.createInjector(new AkkaModule())... | true |
e8f96e2ec3527d7e45544382eb30a1116cc56eed | Java | zhongxingyu/Seer | /Diff-Raw-Data/11/11_04200917365973f40989c10c811f968182b0f2a8/Client/11_04200917365973f40989c10c811f968182b0f2a8_Client_t.java | UTF-8 | 3,290 | 3.296875 | 3 | [] | no_license | /* Client
Handles the client-side of communications - display messages sent from the server and accept messages
sent from the user and forward them to the server.
Still needs:
- Exception handling
- More, I'm sure, but I can't think of it right now.
*/
import java.io.*; // Provides for s... | true |
1f97c1d39c91a70fd723f9f185b77f73b83190d7 | Java | quyetdv155214/a7-Quyet-ci-Session1 | /Session7 HomeWork/src/controllers/manangers/EnemyControllerManager.java | UTF-8 | 1,609 | 2.90625 | 3 | [] | no_license | package controllers.manangers;
import controllers.Controller;
import controllers.GameSetting;
import controllers.GameVector;
import controllers.PlaneController;
import controllers.enemies.EnemyController;
import controllers.enemies.EnemyType;
import java.util.Random;
/**
* Created by apple on 12/10/16.
*/
public c... | true |
509bdb98be1c454b486cd494b115affd83c508fd | Java | Karavanych/DraziwGLesEngine | /src/draziw/simple/physics/Collision.java | UTF-8 | 1,665 | 3.109375 | 3 | [] | no_license | package draziw.simple.physics;
public class Collision {
// direction x = left, right - +
// direction y = bottom, top - +
// direction z = forward, back - +
public static final int NO_COLLISION=0x0000;
public static final int X_INCR=0x0001;
public static final int X_DECR=0x0002;
publi... | true |
3807f42b6011d0142576e57f58f6a9d6d2e445b1 | Java | er-rousy/meet-andoid | /app/src/main/java/com/yuejian/meet/bean/DateHead.java | UTF-8 | 163 | 1.5 | 2 | [] | no_license | package com.yuejian.meet.bean;
/**
* Created by zh02 on 2017/8/22.
*/
public class DateHead {
public int year;
public int month;
public int day;
}
| true |
a5f279e7828d44d95e6bb1aa2560d16b1a859484 | Java | abdulkashif/Project | /javaAdv/Day1/Assignment10a/EmployeeGrade.java | UTF-8 | 1,094 | 3.3125 | 3 | [] | no_license | package javaAdv.Day1.Assignment10a;
public class EmployeeGrade{
private int employeeNo;
private String employeeName;
private float customer1Feedback;
private float customer2Feedback;
private float customer3Feedback;
private float averageFeedback;
private char grade;
public EmployeeGrade(){
this.e... | true |
c7b24a66c1393687890c7d06fcd9e6bba8c5a1b7 | Java | nagyist/splunk-shuttl | /src/java/com/splunk/shuttl/server/mbeans/rest/ArchiveBucketEndpoint.java | UTF-8 | 5,445 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | // Copyright (C) 2011 Splunk Inc.
//
// Splunk Inc. licenses this file
// to you 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 requir... | true |
d5bb395a9ce13c71b35cf6a94aa640e46c5f1e92 | Java | ssk910/Head-First-Design-Patterns | /src/practice/designpatterns/abstractfactory/TabletDevice.java | UTF-8 | 409 | 2.640625 | 3 | [] | no_license | package practice.designpatterns.abstractfactory;
public class TabletDevice extends Device {
ModuleFactory module;
public TabletDevice(ModuleFactory module) {
this.module = module;
}
@Override
void prepare() {
System.out.println("preparing " + name);
graphic = module.create... | true |
0268eff092b0962dfd589857191ae07b098dc4b9 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/google/android/gms/iid/zzak.java | UTF-8 | 8,731 | 1.851563 | 2 | [] | no_license | package com.google.android.gms.iid;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.io.File;
import java.io.IOException;
import java.util.Iterator... | true |
33a2844fb107b299fa1211cd0974fbaa910f3197 | Java | jetlinks/jetlinks-community | /jetlinks-manager/notify-manager/src/main/java/org/jetlinks/community/notify/manager/subscriber/SubscriberProviders.java | UTF-8 | 716 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package org.jetlinks.community.notify.manager.subscriber;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
public class SubscriberProviders {
private final static Map<String, SubscriberProvider> providers = new Conc... | true |
e5a382c18eb43909b8085e556a1ac2417ea1a8cd | Java | rominamartinez99/Parcial_DDS_2021 | /Implementacion/src/main/java/Dominio/Utils/Exceptions/MailNoEnviadoException.java | UTF-8 | 397 | 2.359375 | 2 | [] | no_license | package Dominio.Utils.Exceptions;
import Dominio.Usuarios.MediosContacto.Notificacion;
import Dominio.Usuarios.Usuario;
public class MailNoEnviadoException extends RuntimeException{
public MailNoEnviadoException(Notificacion mensaje, Usuario usuario){
super("no se pudo enviar a la cuenta "+usuario.getMai... | true |
e0acb5f02df533761d23eb5f57beca068d6eebf9 | Java | canyinghao/CanOkHttp | /canokhttp/src/main/java/com/canyinghao/canokhttp/threadpool/SingleJob.java | UTF-8 | 100 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package com.canyinghao.canokhttp.threadpool;
public interface SingleJob<O,T> {
T run(O o);
}
| true |
dd289bb9b408f4303d423aa5291d7372fa4b9c6e | Java | chl-123/traced | /src/Country.java | UTF-8 | 656 | 2.578125 | 3 | [] | no_license | public class Country {
private String countryName;
private String quarantine_data;
private Location[] location;
public String getCountryName() {
return countryName;
}
public void setCountryName(String countryName) {
this.countryName = countryName;
}
public String getQu... | true |
3253eaee00c939f83e1a16946aafb7c095476895 | Java | mohammadul/addondev | /addondev/plugins/org.addondev.ui/src/org/addondev/ui/editor/javascript/JavaScriptPartitionScanner.java | UTF-8 | 1,241 | 2.296875 | 2 | [] | no_license | package org.addondev.ui.editor.javascript;
import java.util.ArrayList;
import org.eclipse.jface.text.rules.EndOfLineRule;
import org.eclipse.jface.text.rules.IPredicateRule;
import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.MultiLineRule;
import org.eclipse.jface.text.rules.RuleB... | true |
74830d79dbf7d207c8ebb9f8765dcce5a443b245 | Java | shashimoto1028/yohh | /src/main/java/com/example/test/controller/LogoutController.java | UTF-8 | 844 | 2.171875 | 2 | [] | no_license | package com.example.test.controller;
import java.util.Locale;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import or... | true |
d542560ab499769a55d2a9bf04c7bba992f0a0b8 | Java | AvishkaShyaman/SIMS_ | /src/com/sims/control/AdminNoticeAddController.java | UTF-8 | 4,231 | 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.sims.control;
import com.sims.model.Notice;
import com.sims.model.NoticeDOA;
import java.io.IOException;
import ... | true |
0e0b3ad461b80b39a22d114903a76e5d060a0e2b | Java | hycomsa/mokka | /src/mokka/src/integration-test/java/pl/hycom/mokka/emulator/mock/MockConfigurationControllerIT.java | UTF-8 | 6,338 | 1.765625 | 2 | [] | no_license | package pl.hycom.mokka.emulator.mock;
import com.github.tomakehurst.wiremock.WireMockServer;
import io.restassured.RestAssured;
import io.restassured.response.Response;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
a76cb077e1c2267888eed77bff51452af232e5e6 | Java | nudefingers/practices | /src/com/ifmo/jjd/practice7/school/ForStudy.java | UTF-8 | 108 | 1.757813 | 2 | [] | no_license | package com.ifmo.jjd.practice7.school;
public interface ForStudy {
void toStudy(int knowledgeCount);
}
| true |
924247d15c6130728d7cf0e8370a32e8721c66d0 | Java | jonny-ddns/web-project-movie | /myProject_movie6_board/src/mvc/command/member/MemberCommand_memberDelete.java | UTF-8 | 542 | 2.40625 | 2 | [] | no_license | package mvc.command.member;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import mvc.db.dao.MemberDao;
public class MemberCommand_memberDelete implements MemberCommand{
@Override
public void execute(HttpServletRequest request, HttpServletResponse response) {
System.... | true |
88a4183d367d19b0144b13542cf9a406e6f7f973 | Java | kennedyzt/spring-demo | /src/main/java/com/kennedy/springdemo/config/websocket/WebSocketConfig.java | UTF-8 | 924 | 2.109375 | 2 | [] | no_license | package com.kennedy.springdemo.config.websocket;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
i... | true |
3ce554099e7af3e900fa021b04288bca88046fb6 | Java | jomof/CppBuildCacheWorkInProgress | /agp-7.1.0-alpha01/tools/base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/testing/SeparateTestWithMinificationButNoObfuscationTest.java | UTF-8 | 1,159 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.android.build.gradle.integration.testing;
import com.android.build.gradle.integration.common.fixture.GradleTestProject;
import com.android.build.gradle.options.BooleanOption;
import java.io.IOException;
import org.junit.Rule;
import org.junit.Test;
/**
* Test for a separate test module that has minificat... | true |
75f12f68cb58ce91c8d00ed1b580db1e43f0695b | Java | spotinst/spotinst-sdk-java | /src/main/java/com/spotinst/sdkjava/model/bl/ocean/ecs/ClusterLaunchSpecification.java | UTF-8 | 9,115 | 1.695313 | 2 | [
"Apache-2.0",
"EPL-2.0",
"MIT"
] | permissive | package com.spotinst.sdkjava.model.bl.ocean.ecs;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnk... | true |
5fe4c86c2deb21865838a346ae84bbe63126d3eb | Java | heylichen/AlgorithmsLab | /src/main/java/algorithms/fundamentals/sub3_collection/exercises/linkedlist/CircularLinkedListQueue.java | UTF-8 | 2,962 | 3.625 | 4 | [] | no_license | package algorithms.fundamentals.sub3_collection.exercises.linkedlist;
import edu.princeton.cs.algs4.StdOut;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;
/**
* Created by lichen2 on 2017/1/13.
*/
public class CircularLinkedListQueue<T>... | true |
44fe08fb6db2d45a5bca49d5de529826fdb980d1 | Java | copperdong/servletjsp2 | /chapter16/javamailweb/src/java/model/FetchResponse.java | UTF-8 | 1,149 | 2.046875 | 2 | [] | no_license | package model;
import java.util.List;
public class FetchResponse {
private long messageCount;
private String folder = "INBOX";
private MessageBean messageBean;
private List<MessageBean> messageBeans;
private List<FolderBean> folderBeans;
public long getMessageCount() {
return me... | true |
2ce006a67f85b2a385ffb86c4918e77dda5d396f | Java | Nalin28/chatApp | /src/main/java/com/chatx/back/service/ChatService.java | UTF-8 | 678 | 1.992188 | 2 | [] | no_license | package com.chatx.back.service;
import com.chatx.back.model.Chat;
import com.chatx.back.repository.ChatDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
im... | true |
833529758cc8c6609801ab215d04078ae4bad9d3 | Java | levchafx/LibraryJDBC | /LibraryJDBCServlets/src/main/java/dao/MessageDaoImpl.java | UTF-8 | 1,451 | 2.703125 | 3 | [] | no_license | package dao;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import model.Message;
public class MessageDaoImpl extends AbstractCrudDao<Message> {
@Override
protected Message resultSetMapper(ResultSet rs) throws SQLException {
Message m = new Message();
m.setId(rs.ge... | true |
6afc4ec1cc1ef4add252041dbf4cb3f8586d6bf4 | Java | youngasimov/Yo-Simce | /src/com/dreamer8/yosimce/server/hibernate/pojo/AplicacionXUsuarioTipoXPermiso.java | UTF-8 | 1,390 | 1.953125 | 2 | [] | no_license | package com.dreamer8.yosimce.server.hibernate.pojo;
// Generated 16-08-2013 05:13:17 AM by Hibernate Tools 3.4.0.CR1
/**
* AplicacionXUsuarioTipoXPermiso generated by hbm2java
*/
public class AplicacionXUsuarioTipoXPermiso implements java.io.Serializable {
private Integer id;
private AplicacionXUsuarioTipo aplic... | true |
b5e1021b466ad76d0c9568fc7bbfcc66ace87b9e | Java | xicalango/fuzzy-robot-utils | /btw2009-lib/src/xx/btw2009/beans/Direktkandidat.java | UTF-8 | 772 | 2.1875 | 2 | [] | no_license | package xx.btw2009.beans;
import xx.btw2009.beans.factory.ReferenceSetter;
import xx.btw2009.beans.factory.Setter;
public class Direktkandidat implements BTW2009Bean {
private String vorname;
private String nachname;
private Partei partei;
public String getVorname() {
return vorname;
}
@S... | true |
8ee11fb9d44bbed42a0d32275f6fa2edbc4b7806 | Java | karmelosng/TheKsimulator3 | /src/com/karmelos/ksimulator/model/SimState.java | UTF-8 | 5,432 | 2.03125 | 2 | [] | no_license | package com.karmelos.ksimulator.model;
//TODO use proper code format conventions (readable property and variable names etc) and other Java conventions
import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Observable;
... | true |
0d4e41fd77a3516530bb05f586e118315915f6aa | Java | InfinityZ25/FakeEntityLib | /src/main/java/uk/lewdev/entitylib/utils/SimpleLock.java | UTF-8 | 840 | 3.1875 | 3 | [] | no_license | package uk.lewdev.entitylib.utils;
import java.util.concurrent.locks.ReentrantLock;
/**
* Syntactic Sugar for Try, Finally Blocks When Used in Safe Locking
*
* @author Lewys Davies (Lew_)
*/
public class SimpleLock {
private final ReentrantLock lock = new ReentrantLock();
/**
* Obtains the read loc... | true |
3c2aab704de84c8b8f4cecd0cc8e2cf179b5e82e | Java | csoda/MoreInventoryMod | /src/main/java/moreinventory/client/gui/GuiPotionHolder.java | UTF-8 | 1,389 | 2.203125 | 2 | [] | no_license | package moreinventory.client.gui;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import moreinventory.container.ContainerPotionHolder;
import moreinventory.inventory.InventoryPotionHolder;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;... | true |
dc5ff470c417dc934aada592346fb3d4765a15a9 | Java | yanggali/RecommenderSystem | /src/main/java/doubantest.java | UTF-8 | 14,118 | 2.78125 | 3 | [] | no_license | /**
* Created by Yangjiali on 2017/4/11 0011.
* Version 1.0
*/
import algorithms.BayesScoring;
import algorithms.ItemSimilarity;
import structure.UserRecord;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 在豆瓣读书数据集上测试
*/
public class doubantest {
public static M... | true |
3d8559a0e337151972cd0a4334f6be33646651b2 | Java | tirro-s/Chess-Java | /core/src/com/chess/game/engine/player/Player.java | UTF-8 | 3,585 | 2.84375 | 3 | [] | no_license | package com.chess.game.engine.player;
import com.chess.game.engine.Alliance;
import com.chess.game.engine.board.Board;
import com.chess.game.engine.board.Move;
import com.chess.game.engine.pieces.King;
import com.chess.game.engine.pieces.Piece;
import com.google.common.collect.ImmutableList;
import com.google.common.c... | true |
50dd3fd139595d0b03a74e5c5f09dc9032b70396 | Java | Mehvix/competitive-programming | /Leetcode/reconstructQueue.java | UTF-8 | 766 | 2.9375 | 3 | [] | no_license | import sun.plugin.javascript.navig.Array;
import java.util.*;
class Solution {
public int[][] reconstructQueue(int[][] people) {
Arrays.sort(people, new Comparator<int[]>() {
@Override
public int compare(int[] i, int[] j) {
return i[0] == j[0] ? i[1] - j[1] : j[0] -... | true |
e6bc6f399d08ea8a706a3b65eef51b062ecf722c | Java | albinaTheUnicorn/myFirstRepository | /src/main/java/com/bb/core/repository/AddressRepository.java | UTF-8 | 450 | 1.945313 | 2 | [] | no_license | package com.bb.core.repository;
import com.bb.core.domain.AddressDomain;
import com.bb.core.dto.Address;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository
public interface AddressRepository extend... | true |
44a366718ebcb43d58964659c71dc4c964a09e54 | Java | promegalex/finartz | /src/main/java/com/finartz/ticket/model/User.java | UTF-8 | 462 | 1.882813 | 2 | [] | no_license | package com.finartz.ticket.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
import java.util.List;
/**
* Created by promegalex on 11.03.2020 18:31
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
private UserId id;
priva... | true |
7dd7f4870e571e6efca52c3b6146b119c1ce755c | Java | tan-yukun/design-patterns | /src/main/java/com/tan/yukun/command/achieves/LightOnCommand.java | UTF-8 | 376 | 2.453125 | 2 | [] | no_license | package com.tan.yukun.command.achieves;
import com.tan.yukun.command.interfaces.Command;
import com.tan.yukun.command.interfaces.Light;
/**
* @author tan_y
*/
public class LightOnCommand implements Command {
Light light;
public LightOnCommand(Light light) {
this.light = light;
}
@Override
... | true |
196714b364583b1cc9607627ffac4e88921af65f | Java | makewheels/AnalyzeBusDex | /src/main/java/com/amap/api/p015a/by.java | UTF-8 | 527 | 1.648438 | 2 | [] | no_license | package com.amap.api.p015a;
import android.graphics.PointF;
import java.util.ArrayList;
import java.util.List;
/* compiled from: TrafSegment */
/* renamed from: com.amap.api.a.by */
class by {
/* renamed from: a */
private int f964a;
/* renamed from: b */
private List<PointF> f965b = new A... | true |
ab3bfff497d903a3d2fdd5b19cac8766a2d266a2 | Java | SuneethaGudise/git-practice | /TestNgPractice/src/loan/DebitAccount.java | UTF-8 | 444 | 2.109375 | 2 | [] | no_license | package loan;
import org.testng.annotations.Test;
//@listener(packagename.classname)
public class DebitAccount {
@Test(groups={"Regression"})
public void debtDetails()
{
System.out.println("Enter the debit details");
}
@Test
public void depAmount()
{
System.out.println("Deposit the amount");
}
@Test
public void with... | true |
bfb8fd9a8cf0fd80eaafc84256d0374c9b98ebcb | Java | ShaviSuri/BharatBankBackendJavaSpring | /Bank/src/main/java/com/training/bank/repo/CustomerRepo.java | UTF-8 | 390 | 1.71875 | 2 | [] | no_license | package com.training.bank.repo;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Repository;
import com.training.bank.model.Customer;
public interface CustomerRepo extends JpaReposit... | true |
8c23aaab5344f561bad36934203fce28a26b8610 | Java | ypg0112/OOP | /ConsoleApplication/src/com/personal/passbyvalue/array/ArrayByValue.java | UTF-8 | 715 | 3.875 | 4 | [] | no_license | package com.personal.passbyvalue.array;
public class ArrayByValue {
public static void main(String[] args) {
int array1[] = {2, 4};
int[] array2 = {3};
System.out.println("Before swap : \narray1 = ");
print(array1);
System.out.println("array2 = ");
print(array2);
swapValu... | true |
689ddcfddd766dbc64ea029a12c2272164924241 | Java | bannerxu/sureme | /service/src/main/java/top/banner/service/order/OrderCmsService.java | UTF-8 | 8,638 | 2.078125 | 2 | [] | no_license | package top.banner.service.order;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications;
import org.spring... | true |
6edfe3a4b38f086921e1ee919c9f04ac238bdc86 | Java | snowjak88/rays3d | /rays3d/core/src/main/java/org/rays3d/message/SamplerRequestMessage.java | UTF-8 | 1,128 | 2.046875 | 2 | [
"MIT"
] | permissive | package org.rays3d.message;
import java.io.Serializable;
public class SamplerRequestMessage implements Serializable {
private static final long serialVersionUID = 2458491555780152549L;
private long renderId;
private int filmWidth;
private int filmHeight;
private String samplerName;... | true |
2fa6bb1e76ceec4a24caba90f71057f91bf0ec99 | Java | mion00/ClassroomFinder | /src/init/InizializzaDati.java | UTF-8 | 5,541 | 2.5 | 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 init;
import Database.Dipartimento;
import Network.DownloadDati;
import Network.MultiThreadHTTP;
import java.io.BufferedWrite... | true |
7283bb7fcce00f5311c9e4af7e3f412539c39f5e | Java | Aaron216/MobileAppDevelopment-Assignment | /src/main/java/au/edu/curtin/madassignment/Database/AreaCursor.java | UTF-8 | 1,124 | 2.515625 | 3 | [] | no_license | package au.edu.curtin.madassignment.Database;
import android.database.Cursor;
import android.database.CursorWrapper;
import java.util.UUID;
import au.edu.curtin.madassignment.Model.Area;
import au.edu.curtin.madassignment.Database.GameSchema.AreaTable;
public class AreaCursor extends CursorWrapper {
public Are... | true |
28bcd3cd2bff521588702acb22619b3ea6b6876c | Java | keGoep/Demo1 | /Day18/Handling_copy.java | UTF-8 | 1,945 | 2.859375 | 3 | [] | no_license | package Day18;
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* @Author LinQ
* Date:2020/12/9
* Weather:Windy
*/
public class Handling_copy {
public static void main(String[] ... | true |
4b9970bcc1a012899ab3337d117dc6705b7f1f7e | Java | taoistcard/zeus | /zeus.live/src/main/java/zeus/live/server/BusinessUtil.java | UTF-8 | 6,557 | 1.90625 | 2 | [] | no_license | package zeus.live.server;
import java.io.IOException;
import java.text.ParseException;
import javax.persistence.EntityManager;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import com.i5i58.clubTask.ClubTaskUtils;
import com.i5i58.data.channel.ChannelAuth;
import com.i5i58.data.ch... | true |
f949e423b1fb265127b0efa7c090aa6934d87830 | Java | hanqunfeng/springbootchapter | /chapter36/cas-overlay-template-6.2.2/src/main/java/com/cas/controller/CaptchaController.java | UTF-8 | 8,041 | 2.265625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.cas.controller;
import com.cas.utils.AesUtil;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
i... | true |
6186ace75568dd5b827bc362f6dd1334616f7736 | Java | WangMin219/workspace | /lqb/src/com/zt/s5/T1.java | UTF-8 | 219 | 2.6875 | 3 | [] | no_license | package com.zt.s5;
public class T1 {
public static void main(String[] args) {
for(int a=4;a<20;a++) {
for(int b=4;b<20;b++) {
if((a*b==(a+b)*6)&&a!=b) {
System.out.println(a+" "+b);
}
}
}
}
}
| true |
e04d4d3f1cb24197ab432356035282dccad3e198 | Java | aravind24u/Tree_Strucutres | /ChaseInteg/src/com/medicalmine/charm/store/chase/bean/response/InquiryRespType.java | UTF-8 | 44,803 | 1.585938 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2019.09.... | true |
04b7d99855c9175b7bc187bc913ecc18de1e1689 | Java | smis394/12-04-ReShapeUp | /src/Rectangle.java | UTF-8 | 1,470 | 3.640625 | 4 | [] | no_license | // A Rectangle object represents a rectangle defined by an origin point (bottom left corner), plus width and height.
import java.lang.Math;
public class Rectangle
{
private Point origin;
private int width;
private int height;
public Rectangle()
{
origin=new Point();
width=0;
height=0;
}
public Re... | true |
a2383cb2ff3a101c3669b1991313d1e9569f98f2 | Java | shahzaib38/EcoApp | /java/imagetrack/app/View/HistoryActivity.java | UTF-8 | 4,228 | 2.0625 | 2 | [] | no_license | package imagetrack.app.View;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.ItemTouchHelper;
import... | true |
5e256b6983d45704205d2e48ae9dda459c3ab6d0 | Java | scalecube/scalecube-third-party-benchmarks | /chronicle-map-benchmarks/src/main/java/io/scalecube/benchmarks/storages/chronicle/ChronicleMapStorageReadAndWriteBenchmark.java | UTF-8 | 558 | 2.140625 | 2 | [] | no_license | package io.scalecube.benchmarks.storages.chronicle;
import io.scalecube.benchmarks.BenchmarkSettings;
import io.scalecube.benchmarks.storages.common.ReadAndWriteScenario;
import io.scalecube.benchmarks.storages.common.StorageState;
public class ChronicleMapStorageReadAndWriteBenchmark {
/**
* Runs benchmark wit... | true |
7bd8b9c2fc7ec8af4b3c1167e75920aa5058c195 | Java | Nazul/MSC-BDA | /BankSimulator-v1/src/main/java/mx/iteso/msc/bda/banksimulator/entities/Transfer.java | UTF-8 | 2,734 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Mario Contreras - marioc@nazul.net.
*
* 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 app... | true |