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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2ad26080a2c835c80f24524bd4ecc705eb3b8a72 | Java | moutainhigh/agent_api | /agent_applet/src/main/java/com/zhancheng/agent/applet/service/impl/TransferServiceImpl.java | UTF-8 | 4,047 | 2.140625 | 2 | [] | no_license | package com.zhancheng.agent.applet.service.impl;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhancheng.agent.applet.se... | true |
ae34aefa527c3fc66b26f1ba4f2c892165e038f3 | Java | MilkZS/Android-UI | /app/src/main/java/com/milkzz/android_ui/ui4/MyView1.java | UTF-8 | 2,563 | 2.265625 | 2 | [] | no_license | package com.milkzz.android_ui.ui4;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
impor... | true |
1e239e0914677193929110d682120bdb5d3c92c9 | Java | poype/heracles | /src/main/java/com/poype/heracles/core/repository/ReleaseRepository.java | UTF-8 | 583 | 1.9375 | 2 | [] | no_license | package com.poype.heracles.core.repository;
import com.poype.heracles.core.domain.model.ReleaseOrder;
import com.poype.heracles.core.domain.model.dto.SimpleReleaseOrderDto;
import java.util.List;
public interface ReleaseRepository {
void saveReleaseOrder(ReleaseOrder releaseOrder);
void updateReleaseOrderS... | true |
b764ef3c0bf3c380d58b3804d2576d96421e3605 | Java | green-fox-academy/purveeuka | /week-08/day-2/MySQL connection/src/main/java/com/example/mysql_connection/controllers/TodoController.java | UTF-8 | 3,591 | 2.265625 | 2 | [] | no_license | package com.example.mysql_connection.controllers;
import com.example.mysql_connection.models.Todo;
import com.example.mysql_connection.repositories.AssigneeRepository;
import com.example.mysql_connection.repositories.TodoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | true |
b23115e8a7ad4ab2924311f734eb6057cf78f97c | Java | mgpsp/simpledraw | /src/main/CreateTriangle.java | UTF-8 | 457 | 2.859375 | 3 | [] | no_license | package main;
import shapes.Triangle;
import shapes.Shape;
public class CreateTriangle extends CreateShape {
private int x1, y1, x2, y2;
public CreateTriangle(Document document, int x, int y, int x1, int y1, int x2, int y2) {
super(document, x, y);
this.x1 = x1;
this.y1 = y1;
this... | true |
9948c911a8be2956b475cacadcae7e70da540957 | Java | nosukja99/CreateATMApp | /src/com/company/ATM.java | UTF-8 | 3,232 | 3.3125 | 3 | [] | no_license | package com.company;
import javafx.util.Pair;
import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.Scanner;
public class ATM {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int accountNum = 0;
String pin = null;
boolean a... | true |
28ac6fcb40d4bf6cf3ad075554d8e12d1b3a289d | Java | svsdigitaltechnologies/hztb | /hztb-common/src/main/java/com/svs/hztb/common/logging/Logger.java | UTF-8 | 2,997 | 2.328125 | 2 | [] | no_license | package com.svs.hztb.common.logging;
/**
* Logger Interface
*
* @author skairamkonda
*
*/
public interface Logger {
/**
* return whether trace is enabled for underlying logger
*
* @return boolean flag
*/
boolean isTraceEnabled();
/**
* return whether debug is enabled for underlying logger
*
... | true |
a6f68d8dcd3c8595cce46907111a83ae17a572b0 | Java | huaian/searchi | /src/test/pagerank/offline/TestPageRankCompute.java | UTF-8 | 1,017 | 2.203125 | 2 | [] | no_license | package test.pagerank.offline;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class TestPageRankCom... | true |
a8d89252ffdb146eef5411f3dfb1b6c0702d7174 | Java | nfaltermeier/ChemCalc | /src/main/java/Blackop778/ChemCalc/Elements/PolyatomicIon.java | UTF-8 | 440 | 2.34375 | 2 | [] | no_license | package Blackop778.ChemCalc.Elements;
public class PolyatomicIon extends Element
{
private final String expandedSymbol;
protected PolyatomicIon(int atomicNumber, String name, String atomicSymbol, String expandedSymbol,
double atomicMass, byte[] charges)
{
super(atomicNumber, name, atomicSymbol, atomicMass, ch... | true |
0fcddd681588934199581d4139f70cadc034ade3 | Java | presscad/nwnee | /Plugins/JVM/java/src/org/nwnx/nwnx2/jvm/constants/AppearanceTypeTroll.java | UTF-8 | 946 | 2.78125 | 3 | [
"MIT"
] | permissive | package org.nwnx.nwnx2.jvm.constants;
/**
* This class contains all unique constants beginning with "APPEARANCE_TYPE_TROLL".
* Non-distinct keys are filtered; only the LAST appearing was
* kept.
*/
public final class AppearanceTypeTroll {
private AppearanceTypeTroll() {}
public final static int APPEARANCE_TYPE... | true |
cde39b18d79932165f340156e8175a07f4a7b435 | Java | rodrigobressan/android_room_sample | /app/src/main/java/com/rodrigobresan/roomexample/mobile/list_products/ListProductsContract.java | UTF-8 | 572 | 2.015625 | 2 | [] | no_license | package com.rodrigobresan.roomexample.mobile.list_products;
import com.rodrigobresan.roomexample.base.BasePresenter;
import com.rodrigobresan.roomexample.base.BaseView;
import com.rodrigobresan.roomexample.mobile.list_products.model.Product;
import java.util.List;
public interface ListProductsContract {
interfac... | true |
9672fb2de6550becf78189e754f706cbb93b631b | Java | jimmy-jose/LocationTracker | /app/src/main/java/xs/jimmy/app/locationtracker/MainActivity.java | UTF-8 | 9,596 | 1.679688 | 2 | [] | no_license | package xs.jimmy.app.locationtracker;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentSender;
import android.content.ServiceConnectio... | true |
e13bb87cf5921943777c1a1b3b6cdcc59043931a | Java | P79N6A/icse_20_user_study | /methods/Method_26670.java | UTF-8 | 902 | 2.40625 | 2 | [] | no_license | JCTree inlineBody(Inliner inliner) throws CouldNotResolveImportException {
if (getBody() instanceof UPlaceholderExpression) {
UPlaceholderExpression body=(UPlaceholderExpression)getBody();
Optional<List<JCStatement>> blockBinding=inliner.getOptionalBinding(body.placeholder().blockKey());
if (blockBinding.... | true |
fff884713faa80e6416e078477026933bc0fc0c1 | Java | hh201020/Java_Essential | /src/main/java/tutorial/pitfalls/UsingBigDecimal.java | UTF-8 | 521 | 3.328125 | 3 | [] | no_license | package tutorial.pitfalls;
import java.math.BigDecimal;
public class UsingBigDecimal {
// Calculation and rounding need BigDecimal
public static void main(String[] args) {
// Not guaranteed precision in this way
BigDecimal payment = new BigDecimal(1115.37);
System.out.println(payment.toString());
// For... | true |
64d188f202cada91f4851106ca8bb318e50cae28 | Java | yanchengdeng/AA | /app/src/main/java/apartment/wisdom/com/beans/HomeAdInfo.java | UTF-8 | 209 | 1.664063 | 2 | [] | no_license | package apartment.wisdom.com.beans;
import java.io.Serializable;
import java.util.List;
//首页活动广告
public class HomeAdInfo implements Serializable {
public List<HomeAdInfoList> activityList;
}
| true |
1f4beb72848af33ac3bf234bb8b520a5f9f390bf | Java | HYDGITHHUB/mmall | /src/main/java/com/study/service/UserService.java | UTF-8 | 331 | 1.765625 | 2 | [] | no_license | package com.study.service;
import com.study.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author southwind
* @since 2020-08-17
*/
public interface UserService extends IService<User> {
public boolean register(User user);
public User login(User user... | true |
5fde5de8b88b18325761a35e8ce295fbeb125055 | Java | rjdavis3/ebay-sdk | /src/main/java/com/ebay/models/Marketplace.java | UTF-8 | 2,605 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.ebay.models;
import java.util.Arrays;
import java.util.Locale;
import java.util.Optional;
/**
* Contains Marketplace IDs common to both the Shopping API and new REST API.
* Shopping Site IDs are needed for category ID retrieval while Marketplace ID
* and language codes are needed for new eBay SELL APIs... | true |
6f967a67cdf8198f436d9ed152ed4b64440bf43f | Java | ZephyrJW/algorithm-practice-Leetcode | /257_binary tree paths.java | UTF-8 | 1,502 | 3.640625 | 4 | [] | no_license | // Given a binary tree, return all root-to-leaf paths.
// For example, given the following binary tree:
// 1
// / \
// 2 3
// \
// 5
// All root-to-leaf paths are:
// ["1->2->5", "1->3"]
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* Tr... | true |
fb827a01d2d6add8459910c3bf1ce7fb1591813b | Java | Nisha556/Java_Amazon_prog | /subarrayproduct.java | UTF-8 | 418 | 3.15625 | 3 | [] | no_license | package Amazon;
import java.util.*;
public class subarrayproduct {
static void product_subarrays(int arr[], int n)
{
int res=1;
for(int i=0;i<n;i++)
{
int product =1;
for(int j=i;j<n;j++)
{
product = product*arr[j];
res *= product;
}
}
System.out.println(res +"\n");
}
public static void... | true |
4e41bf7cd8021d6ffd6fc49518c2fb05de64943d | Java | AnnaNebuko/Spring-Framework | /spring-lesson-1/lesson-hibernate/src/main/java/ru/geekbrains/ProductRepository.java | UTF-8 | 2,629 | 2.75 | 3 | [] | no_license | package ru.geekbrains;
import ru.geekbrains.entity.Product;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
public class ProductRepository {
private final EntityManager... | true |
715ee3b996f644b7517b6d8868cbdd51d67f021d | Java | xin-guan/spring-learn | /demo01-web/src/main/java/com/doubleganse/configration/WebConfig.java | UTF-8 | 1,603 | 2.21875 | 2 | [] | no_license | package com.doubleganse.configration;
import com.doubleganse.interceptor.LoginInterceptor;
import com.doubleganse.interceptor.SecondInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
... | true |
3086a8a67da2b4d48bb60aef50e94b3f801f186d | Java | joaomiguelpereira/javatrainings | /designpatterns/trunk/visitor/src/main/java/eu/jpereira/trainings/designpatterns/behavioral/visitor/event/filtering/HumidityAlarmFilter.java | UTF-8 | 1,683 | 2.265625 | 2 | [] | no_license | /**
* Copyright 2011 Joao Miguel Pereira
*
* 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 appli... | true |
5c728395faf36e4f2b3b64bdd05a45133814a07e | Java | dhanukaperera/Hotel-Management-System-ITP | /src/app/employee_management/Shift_Management_Frame.java | UTF-8 | 41,900 | 1.96875 | 2 | [] | no_license | /*
* Hotel Management System for Pavana Hotel Kochchikade
* Information Technology Project - 2016
* Project ID : ITP_WD_16_B1_06
* Supervisor : Mrs. Asanthika Imbulpitiya
*
* Student Name : Kaushalya R.U
* IT Number : IT14087202
*/
package app.employee_management;
import java.text.DateFormat;
import jav... | true |
15e1261e13c3463e0249811f0528915ec9135c39 | Java | MariHollanda/Java_Assignment_6 | /cis1201_assignment6_hollandacampospedroso_marianna/src/info/hccis/tutor/bo/Employee.java | UTF-8 | 7,738 | 3.203125 | 3 | [] | no_license | package info.hccis.tutor.bo;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Class represents an employee for tutorial services
*
* @author bjm
* @since 2020-06-19
* modified by marianna hollanda
* Added requirements for assignment 6
* @since 2020-... | true |
78e31d99fe4b2f4eeb71d7c86e41cbac98a5a45a | Java | arnabs542/Leetcode-22 | /src/BinarySearch/BinarySearchTemplate.java | UTF-8 | 3,018 | 4.125 | 4 | [] | no_license | package BinarySearch;
/**
* Binary Search 总结:https://github.com/yuzhoujr/leetcode/issues/8
*/
public class BinarySearchTemplate {
public int findPosition(int[] nums, int target) {
if (nums == null || nums.length == 0) {
return -1;
}
int start = 0;
int end = nums.lengt... | true |
e541e83500274db7128081c579fad4b3d553e855 | Java | AhmetCelikbas/Diginamic_RESTFUL_API | /Bibliotheque/src/main/java/models/Categorie.java | UTF-8 | 103 | 2.015625 | 2 | [] | no_license | package models;
public enum Categorie {
SF, FANTASY, HISTOIRE, JEUNESSE, SCOLAIRE, DROIT, ECONOMIE
}
| true |
3f12ee6376cf43f1f2b26bc551ff2c23af7c2b51 | Java | mohsin30-dot/AbstractInJava | /src/com/company/Shape.java | UTF-8 | 1,270 | 3.734375 | 4 | [] | no_license | package com.company;
public abstract class Shape {
private double numSides; // data members or attribute
public Shape(int numSides){
this.numSides = numSides;// Initialize Constructor
}
public double getNumSides() { // get concrete method for numSides
return numSides;
}
/* By ... | true |
6fcbce226b2716aff6f9adf604d5b411fac3e586 | Java | spho/Homer | /app/src/main/java/com/example/christoph/homer/MapsActivity.java | UTF-8 | 5,759 | 2.46875 | 2 | [] | no_license | package com.example.christoph.homer;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gm... | true |
827eea67b4e31adc5a47c34e63183b66d2963605 | Java | aqaqsubin/2019-Fall-Semester-Algorithms | /[HW12]Greedy_Algorithm/priorityQueue_forHuffman.java | UTF-8 | 1,736 | 3.421875 | 3 | [] | no_license | import java.util.ArrayList;
public class priorityQueue_forHuffman {
static ArrayList<TreeNode> Q;
static int heap_size=0;
public priorityQueue_forHuffman(ArrayList<TreeNode> Q) {
this.Q = Q;
build_min_heap(this.Q);
}
public void build_min_heap(ArrayList<TreeNode> Q) {
heap_size = Q.size();
for(int i= (i... | true |
8fa54d20c8879fa2d1887b0fb4e426edc69f6c09 | Java | fhomasp/HomeTools | /Checklist/src/test/java/com/peeterst/android/network/NetworkAddressChooserTest.java | UTF-8 | 358 | 1.726563 | 2 | [] | no_license | package com.peeterst.android.network;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
import org.junit.Test;
import static org.junit.Assert.*;
public class NetworkAddressChooserTest {
@Test
public void getUsab... | true |
139ace0cb9b6907f1d70c7dee0f5f7cc6fcf123f | Java | johnmwai/Joomla-Extension-Factory | /src/factory/legacy/SandboxBraviaCart.java | UTF-8 | 43,632 | 1.96875 | 2 | [] | no_license | package factory.legacy;//SandboxBraviaCart
/**
* n
* <p/>
* CONFIDENTIAL PROPRIETARY: FUSCARD<br/>Copyright (c) 2012 Fuscard. All rights
* reserved.<br/> Creation time: Sep 25, 2012 -- 5:57:20 AM<br/>
* <p/>
* @author John Mwai
*/
public class SandboxBraviaCart extends ComponentProject {
public SandboxBrav... | true |
084172cfbc3432d91369e409309b01aba972ea37 | Java | varylab/varylab | /src/de/varylab/varylab/optimization/OptimizationListener.java | UTF-8 | 444 | 1.710938 | 2 | [] | no_license | package de.varylab.varylab.optimization;
import de.jtem.jtao.Tao.GetSolutionStatusResult;
public interface OptimizationListener {
public void optimizationStarted(AbstractOptimizationJob job, int maxIterations);
public void optimizationProgress(AbstractOptimizationJob job, double[] solution, int interation);... | true |
6ba7925710d9ed562708f288d1735f43a26a6e7a | Java | xpengfei/Restaurant | /src/org/sang/Dao/Update_seller.java | UTF-8 | 1,595 | 2.171875 | 2 | [] | no_license | package org.sang.Dao;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
/**
* Created by xpengfei on 2017/5/18.
*/
@Repository
public class Update_seller {
@Resource
JdbcTemplate jdbcTemplate;
// 根据ID删除数据
public... | true |
ef58558d2e33bc86138635fca5aa2a408136748f | Java | khangaikhuu/cs_intro_2019 | /Jason/26.04.2019_Jason_ClassworkJava/NumberLess.java | UTF-8 | 196 | 2.84375 | 3 | [] | no_license | public class NumberLess
{
public boolean Less100(int x)
{
if(x<100)
{
return true;
}
else
{
return false;
}
}
}
| true |
27624aa96fa051a2d18f7956b33aeae96b348535 | Java | ITSolAngola/SGC | /src/main/java/pro/it/clinica/serviceImpl/ConsultaServiceImpl.java | UTF-8 | 2,050 | 2.171875 | 2 | [] | no_license | package pro.it.clinica.serviceImpl;
import org.springframework.stereotype.Component;
import pro.it.clinica.Command.ConsultaCommand;
import pro.it.clinica.bootstrap.EstadoConsulta;
import pro.it.clinica.converterToCommand.ConsultaToConsultaCommand;
import pro.it.clinica.converterToModel.ConsultaCommandToConsulta;
impor... | true |
5b81545f0a2296830f423eeddb1e0d629ba13fe1 | Java | gruize/elcompilador | /Compilador2daParte/src/interprete/InstruccionInterprete.java | UTF-8 | 2,814 | 2.859375 | 3 | [] | no_license | package interprete;
import java.io.DataOutputStream;
import java.io.IOException;
import compilador.gestorErrores.GestorErrores;
import interprete.datoPila.DatoPila;
public abstract class InstruccionInterprete {
public static final byte CODIGO_PARAR = (byte) 0;
public static final byte CODIGO_APILAR =... | true |
ea197cd0a37766fcca858bbf3fb9e285d2923779 | Java | MohamedSaidHamed/PHPTravelTest | /src/test/java/com/mohamedhamed/phptravelstest/SignupControllerNGTest.java | UTF-8 | 6,121 | 2.09375 | 2 | [
"MIT"
] | permissive | /*
* 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.mohamedhamed.phptravelstest;
import com.mohamedhamed.phptravelstest.utils.DriversPath;
import com.mohamedhamed.phptravelst... | true |
6b2578619e68bb34898eda45eb773cbcf35853da | Java | ariphidayat/spring-websocket | /src/main/java/com/arip/websocket/AuthProvider.java | UTF-8 | 1,235 | 2.25 | 2 | [] | no_license | package com.arip.websocket;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
impor... | true |
5391f3137cc1e48b47200fd801a979ab6d6bb69c | Java | libileh/bank-account | /src/main/java/net/kata/bank/account/domain/OperationType.java | UTF-8 | 93 | 1.71875 | 2 | [] | no_license | package net.kata.bank.account.domain;
public enum OperationType {
DEPOSIT, WITHDRAW
}
| true |
31ab086c3c7dc63aed1269ba3733e3492621db51 | Java | LareinaH/DingOrder | /src/main/java/com/cotton/abmallback/model/vo/OrdersWithGoodsInfo.java | UTF-8 | 1,158 | 1.976563 | 2 | [] | no_license | package com.cotton.abmallback.model.vo;
import com.cotton.abmallback.model.Orders;
public class OrdersWithGoodsInfo extends Orders {
/**
* 规格编号
*/
private String goodsSpecificationNo;
/**
* 商品名称
*/
private String goodName;
private String goodsSpecificationName;
/**
... | true |
7beea0930328686f4ffb46e8c576d4e2bd15e605 | Java | adrianojlt/helloRestlet | /src/com/pmonteiro/fasttrial/model/accounts/UserType.java | UTF-8 | 265 | 1.546875 | 2 | [] | no_license | package com.pmonteiro.fasttrial.model.accounts;
import org.restlet.security.Group;
public class UserType extends Group{
private String description;
private String name;
//private Collection<UserAccount> accounts;
public UserType() {
}
}
| true |
329db891c05dd631b7f78722e94c8654f0aab869 | Java | Darley36/Reto_DDD | /src/main/java/co/com/sofka/personalizedtraining/domain/grupo/values/DatosFisicos.java | UTF-8 | 463 | 2.65625 | 3 | [] | no_license | package co.com.sofka.personalizedtraining.domain.grupo.values;
import co.com.sofka.domain.generic.ValueObject;
public class DatosFisicos implements ValueObject<Double> {
private final Double value;
public DatosFisicos(Double value) {
this.value = value;
if (this.value == null) {
t... | true |
35eec315ee14ee3831bbfd9ddd2abbab5b7b88ae | Java | cnHHcc/twenty-three | /twenty-three/src/main/java/com/cc/twentythree/start/factory/simplefactory/pizzastore/pizza/Pizza.java | UTF-8 | 681 | 3.25 | 3 | [] | no_license | package com.cc.twentythree.start.factory.simplefactory.pizzastore.pizza;
import lombok.Data;
/**
* @author chenchao
* @version V1.0
* @date 2021/9/7 13:25
* pizza抽象类
*/
@Data
public abstract class Pizza {
protected String name;
//准备原材料、不同的pizza是不一样的
public abstract void prepare();
//烘烤
public... | true |
af2ff5d14a71b716efac78b8532e9bc7f15c47d8 | Java | andotorg/share-cloud | /share-framework/share-account/src/main/java/org/andot/account/service/provider/ActionServiceImpl.java | UTF-8 | 3,443 | 1.976563 | 2 | [
"MIT"
] | permissive | package org.andot.account.service.provider;
import org.andot.account.entity.Action;
import org.andot.account.entity.ActionCriteria;
import org.andot.account.mapper.ActionMapper;
import org.andot.account.service.ActionService;
import org.andot.account.vo.in.InActionVo;
import org.andot.account.vo.out.OutActionVo;
impor... | true |
8cb8de559c2bc08ac7572afa50d1948a8402d91b | Java | influxdata/influxdb-client-java | /client/src/generated/java/com/influxdb/client/domain/GaugeViewProperties.java | UTF-8 | 10,888 | 1.9375 | 2 | [
"MIT"
] | permissive | /*
* InfluxDB OSS API Service
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* htt... | true |
6d5af61c53a3319e9318cbc14dd2ec23227c65c0 | Java | HabenChan/online-exam | /b2c-parent/b2c-core/src/main/java/org/javamaster/b2c/core/mapper/SectionsMapper.java | UTF-8 | 1,244 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.javamaster.b2c.core.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.javamaster.b2c.core.entity.Sections;
import org.javamaster.b2c.core.entity.SectionsExample;
/**
* 操纵章节表,请勿手工改动此文件,请使用 mybatis generator
*
* @author mybatis generator
*/
public interface SectionsM... | true |
e9f34218b59aa7539baa3312008088ae5eff3503 | Java | nejukmaster/DiscordVoiceRoomPlugin | /DiscordPlugin/src/main/java/com/nejukmaster/discordplugin/discordplugin/voice_room/calling/CallCmds.java | UHC | 2,423 | 2.4375 | 2 | [] | no_license | package com.nejukmaster.discordplugin.discordplugin.voice_room.calling;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.nejukmaster.discordplugin.discordplugin.Person;
import com.nejukmaster.discordplugi... | true |
ec1ad78989332b16b65ff91fef8a30eb3c349968 | Java | sangram1988/Health-care | /src/com/healthcare/controller/UpdateDoctorDetailAction.java | UTF-8 | 3,714 | 2.34375 | 2 | [] | no_license | package com.healthcare.controller;
import java.io.IOException;
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.HttpServletResponse;
... | true |
74e5960926ebe41bd018fb5e45628eeb05c096be | Java | onap/so | /adapters/etsi-sol002-adapter/src/main/java/org/onap/so/adapters/vevnfm/service/StartupService.java | UTF-8 | 2,676 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | /*-
* ============LICENSE_START=======================================================
* SO
* ================================================================================
* Copyright (C) 2020 Samsung. All rights reserved.
* ================================================================================
* Lic... | true |
668bdda944006aaa4a0490a5bdbba148052644c1 | Java | MarkZoltan/DW | /src/main/java/ro/uvt/info/dw/model/TimeSeriesDataResponse.java | UTF-8 | 246 | 1.539063 | 2 | [] | no_license | package ro.uvt.info.dw.model;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class TimeSeriesDataResponse {
private final TimeSeriesResponse tsData;
private final AttributesResponse attributes;
}
| true |
230a98b16341ce85b068e8f1140a4bdd56f7be65 | Java | kumarkums/Room-Account-Management | /app/src/main/java/firebasePackage/FirebaseUtils.java | UTF-8 | 5,080 | 2.09375 | 2 | [] | no_license | package firebasePackage;
import android.content.Context;
import android.util.Log;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.Da... | true |
b3bc097e06e8ea6c265cc468e6c8a84f91fe131d | Java | akashkumar111/SprintBoot-master | /quartzscheduler/src/main/java/com/alosha/scheduler/MySchedulerListener.java | UTF-8 | 2,832 | 1.984375 | 2 | [] | no_license | package com.alosha.scheduler;
import org.quartz.JobDetail;
import org.quartz.JobKey;
import org.quartz.SchedulerException;
import org.quartz.SchedulerListener;
import org.quartz.Trigger;
import org.quartz.TriggerKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.C... | true |
c290d18bc074ad0d0b568bd7253d3996b498ac90 | Java | WaclaWojcieszko/JavaAlgo | /src/test/org/wojcieszko/eratostenes/EratostenesTest.java | UTF-8 | 1,033 | 2.359375 | 2 | [] | no_license | package test.org.wojcieszko.eratostenes;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import org.wojcieszko.eratostenes.Eratostenes;
/**
* Eratostenes Tester.
*
* @author <Authors name>
* @version 1.0
* @since <pre>cze 30, 2018</pre>
*/
public class EratostenesTest {
@Before
... | true |
3c2029fa8b7af2b994ff3f11e1ca71963d41d541 | Java | AsnemBlue/mega_IT | /source/1_Java/ch08_class1/src/com/tj/ex3_human/Man.java | UHC | 264 | 3.125 | 3 | [] | no_license | package com.tj.ex3_human;
public class Man {
private int age;
public Man() {
System.out.println("Ű=ĶͰ Man ");
}
public Man(int age) {
this.age = age;
System.out.println("Ķ ִ Man ");
}
}
| true |
11e52dc884f4989558d2b88d5a0ddbd6709fc521 | Java | stefansonski/designpatterns | /src/Operation.java | UTF-8 | 667 | 3.34375 | 3 | [] | no_license | import java.util.Vector;
/**
* Flexibility:
* It is easy to add new operation to this pattern.
* Therefor only {@link #setOperation()} has to be called in the constructor of a new Operation.
* Also {@link #evaluate()} has to be implemented depending on the new operation.
* @author Stefan Sonski
*/
abstract publi... | true |
930b2b83667288c448397eb1dca993dd02d2d445 | Java | sharmadivyanshu/Java-Programs | /Demo/src/CollectionDemo/ComparableDemo.java | UTF-8 | 1,395 | 3.78125 | 4 | [] | no_license | package CollectionDemo;
//Comparable Interface makes a class self sorted i.e. we don't have to sort them using different logic
//for this we need to make some modifications to our initial class
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ComparableDemo
{
publi... | true |
b2b7b1d5171af90ef60209aefdc04c2a84e9d35e | Java | ocean-wave/fep | /src/fep/bp/processor/polling/PollingProcessor.java | UTF-8 | 4,995 | 2.390625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fep.bp.processor.polling;
import fep.bp.processor.BaseProcessor;
import fep.mina.common.PepCommunicatorInterface;
import java.text.ParseException;
import java.util.logging.Level;
import org.quartz.CronExpressio... | true |
be87a39c4f10fb0161a332740b1b3ef49cc66d8e | Java | khaprerahul/HotelManagementCRS | /hotel-payment-service/src/main/java/com/crs/microservices/hotel/payment/service/controller/PaymentController.java | UTF-8 | 820 | 2.0625 | 2 | [] | no_license | package com.crs.microservices.hotel.payment.service.controller;
import com.crs.microservices.hotel.payment.service.model.Card;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.we... | true |
efa63c9484d1c4432af73d73a7aa259b7c5e2f89 | Java | destrostudios/cards | /test/src/test/java/com/destrostudios/cards/test/spells/specific/TestTheKingsArmy.java | UTF-8 | 507 | 2.265625 | 2 | [] | no_license | package com.destrostudios.cards.test.spells.specific;
import com.destrostudios.cards.shared.rules.Components;
import com.destrostudios.cards.test.TestGame;
import org.junit.jupiter.api.Test;
public class TestTheKingsArmy extends TestGame {
@Test
public void testSummonKingsSoldiersOnCast() {
int card ... | true |
b65e733963af3a001b9a542cfa206211e5598383 | Java | wcl19860926/springboot-security | /sms-login/src/main/java/com/study/enitity/SysPermissionRole.java | UTF-8 | 144 | 1.648438 | 2 | [] | no_license | package com.study.enitity;
public class SysPermissionRole {
private Long id;
private Long roleId;
private Long permissionId;
}
| true |
cb07511b7d75c39c23ba82e0fdcce428535954c4 | Java | chinhodado/ygodb | /ygodb-module/src/main/java/com/chin/ygodb/CardRegexFilterArrayAdapter.java | UTF-8 | 9,041 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.chin.ygodb;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concur... | true |
05932066749a2c23af95ee03f3774450887eb88a | Java | xiaojiebudai/qbyp | /qbypseller/src/main/java/cn/net/chenbao/qbypseller/api/ApiBaseData.java | UTF-8 | 1,070 | 1.859375 | 2 | [] | no_license | package cn.net.chenbao.qbypseller.api;
/**
* 基础信息
*
* @author licheng
*
*/
public class ApiBaseData extends Api {
public static final String BASEDATA_JSON = "/BaseData/Json/";
public static final String BASEDATA_API = Api.WW_ONLINE_API + BASEDATA_JSON;
/**
* 获得行业类别
*
* @return
*/
public static f... | true |
97575d45cbb6ee3975bc2369aa689105c255f2a6 | Java | macctown/leetcode | /src/lintcode/SingleNumberII.java | UTF-8 | 975 | 3.65625 | 4 | [] | no_license | package lintcode;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;
public class SingleNumberII {
/**
* @param A : An integer array
* @return : An integer
*/
public static int singleNumberII(int[] A) {
if(A.length == 1){
return A[0];
}
//put every element into... | true |
d44a3d845c1eec0281e15f4f3f30b6ae5845e106 | Java | Heming2333/sharer | /1-源文件/src/com/sharer/dao/dao_yan/AdminDao.java | UTF-8 | 8,456 | 2.484375 | 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.sharer.dao.dao_yan;
import com.sharer.entity.entity_yan.Admin;
import com.sharer.util.DatabaseUtil;
import java.io.File;
i... | true |
89cdb5aa9ad27301a2fefd077d792ceb666dd6e9 | Java | wendal/rethink4j | /src/test/java/org/nutz/rethink4j/simple/SimpleReDaoTest.java | UTF-8 | 2,473 | 2.25 | 2 | [
"MIT"
] | permissive | package org.nutz.rethink4j.simple;
import static org.junit.Assert.*;
import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.nutz.dao.pager.Pager;
import org.nutz.lang.random.R;
import org.nutz.lang.util.NutMap;
import org.nutz.rethink4j.RethinkRuntimeException;
import org.nutz.rethink4j.ut... | true |
87f939c0b7c58429ec7b8521e8f81455fefbb5ec | Java | JokerZzz/java8-learning | /src/java/template/widget/ApplicantNameWidget.java | UTF-8 | 1,017 | 2.5625 | 3 | [] | no_license | package template.widget;
import template.model.InsureCheckRequest;
import template.model.InsureReqApplicant;
/**
* Created by jiajun on 2018/5/4.
*/
public class ApplicantNameWidget extends AbstractApplicantWidget {
public ApplicantNameWidget(String applicantName) {
this.applicantName = applicantName;... | true |
f7de7b5693000b9f683ca6706e546c3633a84e8c | Java | BaoqianWang/MobileSoftwareDev | /app/src/main/java/com/example/myapplication/ViewActivity.java | UTF-8 | 1,946 | 2.015625 | 2 | [] | no_license | package com.example.myapplication;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import an... | true |
22b49e60ea13f0bef2f5cffa2aa016b388b3cb80 | Java | samirsukla/Streamoid_Projects | /JS-SDK-Test/src/test/java/com/services/test/TestAllenSollyInfo.java | UTF-8 | 8,406 | 2 | 2 | [] | no_license | package com.services.test;
import org.testng.annotations.Test;
import com.services.utility.CheckWidgetPresentStatus;
import com.services.utility.ClickonFirstProduct;
import com.services.utility.CreateFolder;
import com.services.utility.GUICheckForSimilarProducts;
import com.services.utility.GetSystemDate;
import com.... | true |
85230793e2e851c8d0af4223dc635c997c8b70c8 | Java | Eliminater74/com.google.android.tvlauncher | /src/main/java/com/google/android/gms/phenotype/zzaq.java | UTF-8 | 1,562 | 2.375 | 2 | [] | no_license | package com.google.android.gms.phenotype;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.android.gms.phenotype.PhenotypeFlag;
/* compiled from: PhenotypeFlag */
final class zzaq extends PhenotypeFlag<Float> {
zzaq(PhenotypeFlag.Factory factory, String str, Float f) {
... | true |
1e1ac71a6cb5a9d78b22e05e57232ffd8a29949b | Java | FASTTRACKSE/FTSE1801.LP4 | /congmt/java/Training/src/java_day11/Assingment2.java | UTF-8 | 2,380 | 3.375 | 3 | [] | no_license | package java_day11;
import java.util.Scanner;
public class Assingment2 {
public static void main(String[] args) {
int a,b,x,y;
Scanner sc=new Scanner(System.in);
System.out.println("- Nhập số a: ");
a= sc.nextInt();
System.out.println("- Nhập số b: ");
b= sc.nextInt();
x=Math.min(a, b);
y=Math.max(a,... | true |
77504d8eb2431275892b47f4d050349f9a15732e | Java | ashishnagar47/Java-Practice | /src/Basics/Lec3/check_sorted_array_rec.java | UTF-8 | 1,904 | 3 | 3 | [] | no_license | package Basics.Lec3;
import java.util.Scanner;
public class check_sorted_array_rec {
public static void main(String[] args) {
// Scanner s = new Scanner(System.in);
// int a[] = {1, 2, 4, 5};
// int len;
// len = a.length-1;
// int index=0;
// System.out.println(sort... | true |
8cc397af49292f0179429aecc65726dd26b93a22 | Java | sshyran/opengse | /engines/minigse/java/com/google/opengse/configuration/webxml/WebAppConfigurationPair.java | UTF-8 | 7,371 | 1.703125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright 2008 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | true |
d079013948584dd95a71e7b4831a86041b85096b | Java | shivamkrj/DRONE | /app/src/main/java/in/shivamkrj/drone/NoInternetActivity.java | UTF-8 | 1,250 | 2.359375 | 2 | [] | no_license | package in.shivamkrj.drone;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
public class NoInternetA... | true |
93a432c99d62d673c1464dacfa2f3194b81a5c7c | Java | chengdazhi/WoYeYo | /app/src/main/java/com/woyeyo/woyeyo/ui/Activity/TestWholeMainPAGE.java | UTF-8 | 5,321 | 2.125 | 2 | [] | no_license | package com.woyeyo.woyeyo.ui.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.mikepenz.materialdrawer.AccountHeader;
import com.mikepenz.materialdrawer.AccountHead... | true |
b5cde3c5531655d0bcabe92bb5a97210d0435b8d | Java | 12130157/bookingtomypaces | /bookingtomypaces/ordershop/src/com/king/tools/DateTool.java | UTF-8 | 27,070 | 2.671875 | 3 | [] | no_license | /**
*
* 版本信息:
* 日期:2010-4-20
* Copyright @ Corporation 2010
* 迈步科技 版权所有
*
*/
package com.king.tools;
import java.lang.reflect.Field;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
im... | true |
0ec325f045c30b350bb44edb7f2f7e5576619215 | Java | Java-October-2020/ShankyB-Assignments | /Week2- OOP/STS Projects/Object Master/src/HumanTest.java | UTF-8 | 752 | 3.203125 | 3 | [] | no_license |
public class HumanTest {
public static void main(String[] args) {
Human human1= new Human();
Human human2= new Human();
//human1.attack(human2);
//System.out.println(human2.getHealth());
Wizard wizard1= new Wizard(3,4);
Wizard wizard2= new Wizard (4,5);
//System.out.println(wizard1.getHealth());
//... | true |
3bd788e23924494bbb0cf6b2ca71f37c3a12cdc6 | Java | vovan1984/JavaCourses | /Language/part2/study/sort/BubbleSort.java | UTF-8 | 373 | 3.4375 | 3 | [] | no_license | package study.sort;
public class BubbleSort
{
static String[] sort(String[] arr)
{
for (int j = 0; j < arr.length; j++)
{
// scan for minimum element to put it to position j
for (int i = j +1; i < arr.length; i++)
if (arr[i].compareTo(arr[j]) < 0)
{
String tmp = arr[j];
arr[j] = arr[i];
... | true |
f33cf253a777d1de2c9d2f8aaedab2713a551f33 | Java | PeterGessler/MediaSnippingTool | /src/de/btu/kt/mst/cutter/TrimmerAIS.java | UTF-8 | 1,825 | 2.671875 | 3 | [] | no_license | package de.btu.kt.mst.cutter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
public class TrimmerAIS extends AudioInputStream {
private final AudioInputStream st... | true |
a4b520ecf14ab46788917f07e963af711488734f | Java | frc2052/2018-PowerUp | /src/main/java/frc/team2052/powerup/Kinematics.java | UTF-8 | 3,521 | 2.953125 | 3 | [] | no_license | package frc.team2052.powerup;
import com.first.team2052.lib.vec.RigidTransform2d;
import com.first.team2052.lib.vec.Rotation2d;
/**
* Created by KnightKrawler on 1/19/2018.
*/
public class Kinematics {
private static final double kEpsilon = 1E-9;
/**
* Forward kinematics using only encoders, rotation ... | true |
18c7aecbf4525c5faa4ac90047c69b68efbb962f | Java | mhajimiri/nicprobe | /src/main/java/com/mohaymen/registry/nicprobe/backend/network/ErrorOutputStream.java | UTF-8 | 513 | 2.078125 | 2 | [] | no_license | package com.mohaymen.registry.nicprobe.backend.network;
import org.apache.commons.exec.LogOutputStream;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;
@Component
public class ErrorOutputStream extends LogOutputStream {
private ... | true |
006502977d853b0249128d0343ffe68e312aad74 | Java | KirylShalpuk/ScooterSharing | /src/main/java/pl/shalpuk/scooterService/controller/AuthController.java | UTF-8 | 1,552 | 2.265625 | 2 | [] | no_license | package pl.shalpuk.scooterService.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation... | true |
60d733349c74a60b27406a765cadf309e555991f | Java | saimtreloy/bdsimservice | /app/src/main/java/com/moodybugs/saim/bdsimservices/ServiceUSSD.java | UTF-8 | 2,289 | 1.945313 | 2 | [] | no_license | package com.moodybugs.saim.bdsimservices;
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.LinearLayout;
import com.google.android.gms.ads.AdRequest;
import com.... | true |
c907dc55389cc34a6205347eccfd93d5776d7625 | Java | xloypaypa/WalletForAndroidOld | /app/src/main/java/com/example/xlo/walletforandroid/ActionDialog.java | UTF-8 | 1,387 | 2.296875 | 2 | [] | no_license | package com.example.xlo.walletforandroid;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
public class ActionDialog {
int layout;
String title;
Activity activit... | true |
e232a41ff69260b0d7accc70146161cc16be6b21 | Java | HyunjoonCho/designpattern | /singleton/src/test/java/org/hyunjoon/designpattern/singleton/SingletonTest.java | UTF-8 | 342 | 2.578125 | 3 | [] | no_license | package org.hyunjoon.designpattern.singleton;
import org.junit.Assert;
import org.junit.Test;
public class SingletonTest {
@Test
public void singletonTest() {
Singleton singleton1 = Singleton.getInstance();
Singleton singleton2 = Singleton.getInstance();
Assert.assertEquals(singleton1,... | true |
46e527a23f85c966dbcf2671de9702f7c78c00c1 | Java | overnight/JavaAssignments | /Assignment1/IITCourseManagement/src/iitcoursemanagement/MainFrame.java | UTF-8 | 91,131 | 2.546875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package iitcoursemanagement;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import javax.swing.*;
import... | true |
580d16ab01b546753b6b53a9871cf7bce2d060b1 | Java | VanguVlad/EAP | /EAP-main/Catalog/src/Catalog/Profesor.java | UTF-8 | 796 | 2.578125 | 3 | [] | no_license | package Catalog;
import Service.LoggerCsv;
public class Profesor extends Persoana {
protected String materie;
private LoggerCsv log = new LoggerCsv();
public Profesor(String nume, int varsta, String materie)
{
super(nume,varsta);
this.materie=materie;
}
public Strin... | true |
a06506f9b2ba802eae8bc5cfca6d46e7fdd244af | Java | melv80/gather | /src/main/java/com/gather/model/Player.java | UTF-8 | 346 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.gather.model;
import lombok.Data;
@Data
public class Player {
private long id;
// position
private int x, y = 0;
private String name;
public Player(long id, String name) {
this.id = id;
this.name = name;
}
public void move(int dx, int dy) {
x += dx;
... | true |
225e0e521acef6c7ff2cb9506e40d2bc0790596a | Java | ADDD0/Java | /CoolMeeting/src/dao/BaseDAO.java | UTF-8 | 371 | 2.453125 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.SQLException;
import utils.DBUtils;
public class BaseDAO {
private Connection conn;
// 获取数据库连接
public Connection getConn() throws SQLException {
conn = DBUtils.getConn();
return conn;
}
// 关闭数据库连接
public void closeConn() throws SQLException {
DBU... | true |
082eab10f18d67d1c847c1062d0428ab45e1f52f | Java | vkatoch2000/microservices-design-patterns | /HotelBookingMicroService/src/main/java/com/conferencebooking/service/HotelBookingService.java | UTF-8 | 625 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | package com.conferencebooking.service;
import com.conferencebooking.model.BookingDetail;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.stereotype.Component;
@Component
public class HotelBookingServi... | true |
24603b09cdddf00f8a2ed3516ce8183803998868 | Java | hyfadd/cssc | /csscgeApi/src/main/java/com/cssceg/springjpademo/utils/NumberUtils.java | UTF-8 | 1,240 | 3.15625 | 3 | [] | no_license | package com.cssceg.springjpademo.utils;
import org.springframework.util.StringUtils;
import java.math.BigDecimal;
import java.util.regex.Pattern;
public class NumberUtils {
/**
* 判断当前值是否为数字(包括小数)
* @param value
* @return
*/
public static boolean isDigit(Object value) {
if (String... | true |
26058f228abf36e09c8b1c5717c76ec1b6a13e59 | Java | Ldhlwh/Compiler | /Compiler/src/NASM/Data.java | UTF-8 | 172 | 2.046875 | 2 | [] | no_license | package NASM;
public class Data
{
public String data = "";
public static int dataNum = 0;
public String dataID = null;
Data()
{
dataID = "_D" + (dataNum++);
}
}
| true |
057724ea62af4ea9ed828977f103a92a73f9cd60 | Java | mohankrishnakavali/CoraJava | /Core-Java Apps/src/com/test/ObjectTest1.java | UTF-8 | 197 | 2.03125 | 2 | [] | no_license | package com.test;
public class ObjectTest1 {
public ObjectTest1(Object obj) {
System.out.println("Boom");
}
public static void main(String[] args) {
new ObjectTest1(null);
}
}
| true |
1344b91e00fb5de5dcabdab184ce24d6cb05a610 | Java | yuexiaoguang/tomcat8.5 | /src/org/apache/el/util/MessageFactory.java | UTF-8 | 763 | 2.4375 | 2 | [] | no_license | package org.apache.el.util;
import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public final class MessageFactory {
static final ResourceBundle bundle =
ResourceBundle.getBundle("org.apache.el.Messages");
public MessageFactory() {
s... | true |
977ef257e78b57b3136b989a353619c42857969b | Java | tatjanas88/Java-Tree-Data-Structure | /tree/DirectoryTree.java | UTF-8 | 595 | 2.734375 | 3 | [] | no_license |
package tatjana.tree;
public class DirectoryTree {
Node root;
public DirectoryTree(String filepath){
try{
root = new Node(null, filepath);
}
catch(InvalidPathException ex){
System.out.println("Exception catch");
System.out.pri... | true |
ff45e659918ec663b156e7b6c6c4ada686833d9f | Java | DT0814/perception | /src/main/java/com/xawl/perception/controller/ClientMobileController.java | UTF-8 | 1,935 | 2.046875 | 2 | [] | no_license | package com.xawl.perception.controller;
import com.xawl.perception.pojo.Admin;
import com.xawl.perception.pojo.Client;
import com.xawl.perception.pojo.ClientMobile;
import com.xawl.perception.pojo.Mobile;
import com.xawl.perception.pojo.result.SimpleResult;
import com.xawl.perception.service.AdminService;
import com.x... | true |
1c5a703554380ba3812b34192afc59994027a07f | Java | chping2113/czy | /src/com/kjlink/ahpips/entity/project/.svn/text-base/ProspectApprove.java.svn-base | GB18030 | 3,723 | 2 | 2 | [] | no_license | package com.kjlink.ahpips.entity.project;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.kjlink.common.util.ConvertHtml;
... | true |
39bd01c7f05b8ee11bfbfc90a311330f198e6605 | Java | robertondc/design-patterns-java | /src/strategy/ICCC.java | UTF-8 | 487 | 2.984375 | 3 | [] | no_license | package strategy;
public class ICCC implements Imposto {
@Override
public double calcula(Orcamento orcamento) {
double valorImposto = 0;
double valorOrcamento = orcamento.getValor();
if (valorOrcamento < 1000){
valorImposto = valorOrcamento * 0.05;
} else if (valorOrcamento >= 1000 && valorOrcamento <= 3... | true |
e86cec35cfee36a7c426e58f16e11f12a022b382 | Java | DAOjun0690/Software-Architecture | /107598034/HW2/CourseSystem/src/Adapter/Controller/DeleteCourse/DeleteCourseController.java | UTF-8 | 1,250 | 2.265625 | 2 | [] | no_license | package Adapter.Controller.DeleteCourse;
import java.util.ArrayList;
import java.util.List;
import Adapter.Controller.ClassDataMapper;
import Adapter.Controller.CourseData;
import Adapter.Presenter.DeleteCoursePresenter;
import Adapter.Repository.InJsonCourseRepository;
import CourseUseCase.CourseRepository;
import C... | true |
9b29671c58b52f60d2aba5e30000a4d92b1c5e91 | Java | xc-fighting/leetcode-summary | /AI/src/algorithms/GraphPath.java | UTF-8 | 2,224 | 3.1875 | 3 | [] | no_license | package algorithms;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
public class GraphPath {
Map<Integer,List<Integer>> graph=null;
boolean[] visited=new boolean[4];
List<List<Intege... | true |
04ddbcaa5ae4c95d526e441f89b85e0d3ac670c8 | Java | AndrewGammell/OCJP | /OCP/src/innerClasses/AnonymousOuterClass.java | UTF-8 | 1,881 | 4.21875 | 4 | [] | no_license | package innerClasses;
import innerClasses.StaticOuterClass.StaticInnerClass;
/**
* The anonymous inner class and the interface are used in the same way. Created with the new keyword and used as needed.
* the third example created and instantiates the anonymous class.
*
* Alternatively the anonymous inner class c... | true |