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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3cf366fbd0b2a7b6748fb79a8cdb5b3a2fa6e947 | Java | sheffercool/windchill-2 | /util/LifeCycleUtility.java | UTF-8 | 12,112 | 1.882813 | 2 | [] | no_license | package ext.hydratight.util;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.io.Reader;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;... | true |
da11e46033d1b248877ff38451376b6d2f4f21da | Java | carolasilva/trabalho-paa-lab | /src/com/company/models/AlunoAuxiliar.java | UTF-8 | 864 | 2.859375 | 3 | [] | no_license | package com.company.models;
public class AlunoAuxiliar implements Comparable<AlunoAuxiliar> {
private Aluno aluno;
private String nomeArquivo;
public AlunoAuxiliar(Aluno aluno, String nomeArquivo) {
this.aluno = aluno;
this.nomeArquivo = nomeArquivo;
}
public Aluno getAluno() {
... | true |
0317c3187f1db656f6d40c601fabe692e18a5afb | Java | Anushadomma/CaperAssignment | /app/src/main/java/com/example/caperassignment/CaperApiClient.java | UTF-8 | 1,324 | 2.0625 | 2 | [] | no_license | package com.example.caperassignment;
import android.app.Application;
import android.content.Context;
import android.view.animation.PathInterpolator;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import retrofit2.Retrofit;
import ... | true |
bf583be3f60befea0ef41e0283f6637ca6745e83 | Java | luxin763323387/commerce-springCloud | /commerce-alibaba-nacos-client/src/main/java/com/cn/lx/controller/SleuthTraceInfoController.java | UTF-8 | 869 | 2.09375 | 2 | [] | no_license | package com.cn.lx.controller;
import com.cn.lx.service.SleuthTraceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 打印跟踪信息
*
* ... | true |
8c6b49f4b6c09cdfdb64ad1d6e662c9c23f0970c | Java | lidingkui/imooc-news-dev | /imeek-news-dev-user/src/main/java/com/hubject/user/service/AppUserMngService.java | UTF-8 | 685 | 1.6875 | 2 | [] | no_license | package com.hubject.user.service;
import com.hubject.utils.PagedGridResult;
import java.util.Date;
public interface AppUserMngService {
/**
* 查询管理员列表
*/
public PagedGridResult queryAllUserList(String nickname,
Integer status,
... | true |
9b85a0d0218b4b9fc3265f3cc80c4870de0da7ec | Java | pankaj101010/Carnation19-1 | /src/GroupA/NewTraingleDigit.java | UTF-8 | 483 | 3.140625 | 3 | [] | no_license | package GroupA;
public class NewTraingleDigit {
public static void main(String[] args) {
int line = 9;
for (int i = 0; i <= line; i++) {
for (int space = line; space >=i; space--) {
System.out.print(" ");
}
// if (i == 0) {
// System.out.print(0);
// } else {
for (int j = i; j >... | true |
57bb147d4f5c028819a85dc7269415f84ad8df31 | Java | justinba1010/GraphTheory | /MoserSpindleSquared.java | UTF-8 | 799 | 2.84375 | 3 | [] | no_license | import java.util.*;
public class MoserSpindleSquared{
public static void main(String[] args) {
String[] a = {"p0","p1","p2","p3","p4","p5","p6"};
ArrayList<String> l = new ArrayList<String>(Arrays.asList(a));
AdjMatrixGraph<String> moser = new AdjMatrixGraph(l);
moser.addEdge(0,1);
moser.addEdge(0... | true |
ca4359462e765dd4103cd6ad60ff44a7b8c20f76 | Java | vcheng19/CellSociety | /src/gridinitializers/SugarScapeGridInitializer.java | UTF-8 | 2,400 | 2.609375 | 3 | [
"MIT"
] | permissive | package gridinitializers;
import cellclasses.*;
import cellsociety_team24.Grid;
import filereadcheck.FileReader;
import javafx.scene.Group;
import ruleEnforcers.SugarScapeRuleEnforcer;
import ruleEnforcers.WaTorRuleEnforcer;
public class SugarScapeGridInitializer extends GridInitializer{
private int vision;
private... | true |
8f1cbb1725e854df841c6ba823b8dd49b4ff99a5 | Java | Nomcebo/MonitorWebPlatformRepo | /MonitorWebPlatform002/src/java/com/boha/monitor/dto/TaskDTO.java | UTF-8 | 2,265 | 2.25 | 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.boha.monitor.dto;
import com.boha.monitor.data.Task;
import java.io.Serializable;
import java.util.ArrayList;
import java... | true |
3c7ee31cef640e1f74686fc771764c97aa56528c | Java | ramanaganesh0008/newJavaProgram | /NewjavaProgram/src/com/objectorientedprograms/RegexExpresson.java | UTF-8 | 614 | 2.578125 | 3 | [] | no_license | package com.objectorientedprograms;
public class RegexExpresson {
public static void main(String[] args) {
Utility u=new Utility();
UserDetails user=new UserDetails();
System.out.println("enter the first name");
user.setFname(u.inputString());
System.out.println("enter the last name");
user.setLnam... | true |
50025085ad8c4ebe142a757d2cd4f4ec3dcd5210 | Java | marekkalkowski/XmlParseRecruitmentTask | /src/main/java/com/merapar/interviewtask/InterviewApplication.java | UTF-8 | 416 | 1.742188 | 2 | [] | no_license | package com.merapar.interviewtask;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class InterviewApplication {
public static void main(String[] args) {
... | true |
62ba8ad73a65acc63fe91e93f664d34ba9dd14ae | Java | LIAN1988/freeline | /android-studio-plugin/src/actions/BaseAction.java | UTF-8 | 1,829 | 2.25 | 2 | [
"BSD-3-Clause"
] | permissive | package actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataKeys;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.open... | true |
8c769decb27d85cfd61b43e114d67322845d0e73 | Java | sukrupa/school-admin | /src/main/java/org/sukrupa/app/httpcommunicationservices/StudentsImageController.java | UTF-8 | 1,197 | 2.15625 | 2 | [] | no_license | package org.sukrupa.app.httpcommunicationservices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | true |
7bb568f397c229dba86aec3480b9ceffb956b777 | Java | chacanthus/ymt2-neo | /decompiled_java/com/badlogic/gdx/scenes/scene2d/actions/MoveToAction.java | UTF-8 | 1,476 | 2.421875 | 2 | [] | no_license | // 도박중독 예방 캠페인
// 당신 곁에 우리가 있어요!
// 감당하기 힘든 어려움을 혼자 견디고 계신가요?
// 무엇을 어떻게 해야 할지 막막한가요?
// 당신의 이야기를 듣고 도움을 줄 수 있는 정보를 찾아 드립니다.
// - 한국도박문제관리센터 (국번없이 1336, 24시간)
// - KL중독관리센터 (전화상담 080-7575-535/545)
// - 사행산업통합감독위원회 불법사행산업감시신고센터 (전화상담 1588-0112)
// - 불법도박 등 범죄수익 신고 (지역번호 + 1301)
package com.badlogic.gdx.scenes.scene2d... | true |
d23a8fe4d2cf8079104cb337f6e2e2155cfa174c | Java | balvindersingh1404/MRBS | /app/src/main/java/com/example/roombooking/roombooking/models/ApiResponse.java | UTF-8 | 795 | 2.390625 | 2 | [] | no_license | package com.example.roombooking.roombooking.models;
import java.util.ArrayList;
import java.util.List;
public class ApiResponse {
String message;
int status;
Data data;
private List<Data> datum = new ArrayList<Data>();
public String getMessage() {
return message;
}
public void... | true |
72ffda8e25bcac12b1e6f95f2b30751293ba1afd | Java | killiandonnegan/Hangman | /Game.java | WINDOWS-1252 | 10,831 | 3.953125 | 4 | [] | no_license | import java.util.*;
import java.io.*;
class Game
{
public static void main(String args[])
{
char[] letters = Word(); //char array of letters
Play(letters); //calls play method with letters array as parameter
}
public static char[] Word() //selects random word, returns array ... | true |
d996294f51ec3d6640152f501b47112d33e4d9da | Java | Issac123abc/mygit | /dxg/dxg-parent/dxg-getway/src/main/java/com/xinjing/dxg/handler/AuthFilter.java | UTF-8 | 2,275 | 2.078125 | 2 | [] | no_license | package com.xinjing.dxg.handler;
import java.net.URI;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.s... | true |
92da7a6a1d41d8c7b0a7bb5a9f33e5f832cadd84 | Java | ssunku/SpringBootDemo | /src/main/java/com/springboot/demo/model/TestPlanResults.java | UTF-8 | 1,904 | 1.992188 | 2 | [] | no_license | package com.springboot.demo.model;
import java.util.concurrent.TimeUnit;
public class TestPlanResults {
private String planid;
private String planname;
private String createdtime;
private String endtime;
private String executiontime;
private String passcount;
private String failcount;
... | true |
08af6cc6cde1f38659e750c19d803ce5ffa718e7 | Java | vo0a/bithumb-tech-spring-boot-webflux | /src/main/java/com/romkudev/api/quiz/service/QuizService.java | UTF-8 | 399 | 1.75 | 2 | [] | no_license | package com.romkudev.api.quiz.service;
import com.romkudev.api.quiz.domain.Attempt;
import com.romkudev.api.quiz.domain.Quiz;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface QuizService {
Mono<Quiz> createQuiz();
boolean checkAttempt(Attempt attempt);
Flux<Attemp... | true |
d11dd7997a77030558ffc953187db2904f4fb984 | Java | cynhh40061/ctt | /CTT02PF/src/main/java/tw/com/ctt/dao/impl/MemberBetDaoImpl.java | UTF-8 | 23,392 | 1.859375 | 2 | [] | no_license | package tw.com.ctt.dao.impl;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.sql.PreparedStatem... | true |
75af5bb1a04ea3fb03d2431a07bb42eefe3a58cb | Java | michall02/University | /university-data/src/main/java/pl/home/services/AddStudentService.java | UTF-8 | 141 | 1.921875 | 2 | [] | no_license | package pl.home.services;
import pl.home.models.Student;
public interface AddStudentService {
void saveStudent(Student studentDAO);
}
| true |
0320acb0f538024347b97c94be714c986ba4b63b | Java | thanhnhan2tn/constats | /Codes/JAVA_J2SE/JSON_Test/src/Main.java | UTF-8 | 1,889 | 3.4375 | 3 | [] | no_license | import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
public class Main {
// Parse test
public static <T> T parseObjectFromString(String hoten, String namsinh,
Class<T> clazz) throws Exception {
return clazz.getConstructor(new Class[] { String... | true |
b49c93b9bb08fe337561d4bc8040f2ef6f5923c1 | Java | danielsf2/Aplicativo-Academia | /TrabalhoLPV-2018/Trabalho de LPV 2018 - App Academia/src/br/com/academia/modelo/dao/UsuarioDao.java | ISO-8859-1 | 4,570 | 2.75 | 3 | [] | no_license | package br.com.academia.modelo.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.com.academia.modelo.Usuario;
import br.com.academia.utils.CriaConexao;
import br.com.acade... | true |
ab0c0b721a4b4fa63eb835e13cbd4b3273474a97 | Java | yanchengdeng/SmartFit | /app/src/main/java/com/smartfit/fragments/CustomAnimationDemoFragment.java | UTF-8 | 5,404 | 2.09375 | 2 | [] | no_license | package com.smartfit.fragments;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.smartfit.R;
import com.smartfit.activities.BaseActivity;
import com.smartfit.activities.CustomeC... | true |
b6343723e2b875f38a79dd6ff47aca870e29ec6d | Java | youye1/SSM | /testproject/demo-mvc/src/main/java/cn/youye/mvc/service/UserService.java | UTF-8 | 491 | 1.945313 | 2 | [] | no_license | package cn.youye.mvc.service;
import cn.youye.mvc.dao.UserDao;
import cn.youye.mvc.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* Created by pc on 2016/7/12.
*/
@Service
public class UserService {
... | true |
dc77d649daeb9980175052740136329b5e84976f | Java | amaoxia/iSwap-Common | /iSwap-Common/src/com/common/utils/crypt/support/Util.java | UTF-8 | 2,926 | 3.390625 | 3 | [] | no_license | package com.common.utils.crypt.support;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Util {
/** 将Hex十六进制字符转换为byte字节 */
public static byte stringHEX2bytes(String str) {
return (byte) ("0123456789abcdef".indexOf(str.substring(0, 1)) * 16 + "0123456789abc... | true |
de84e1afd23f0c3921ada10ebadcb8a72a1c4fac | Java | xuezhongzhen/spring_mybaisplus | /src/main/java/com/xzz/service/impl/DeptServiceImpl.java | UTF-8 | 431 | 1.5 | 2 | [] | no_license | package com.xzz.service.impl;
import com.xzz.entity.Dept;
import com.xzz.mapper.DeptMapper;
import com.xzz.service.DeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author xzz
* @since 2020-08-27
*/
@Se... | true |
edba54669524120ae9b66ee78b817f1571431120 | Java | lizhiying61f/PhotoAlbum | /app/src/main/java/com/zhiyingli/photoalbum/checkalbum/CheckAlbumInteractorImpl.java | UTF-8 | 3,731 | 2.21875 | 2 | [] | no_license | package com.zhiyingli.photoalbum.checkalbum;
import android.content.ContentResolver;
import android.database.Cursor;
import android.provider.MediaStore;
import android.text.TextUtils;
import com.zhiyingli.photoalbum.AppUtils;
import com.zhiyingli.photoalbum.bean.ImageFolder;
import com.zhiyingli.photoalbum.bean.Image... | true |
0ef809a77533a297189bf873d855fc1d87791237 | Java | arnabm13/car-tracker | /api/cartracker-api/src/main/java/tracker/car/entity/Alert.java | UTF-8 | 1,607 | 2.359375 | 2 | [] | no_license | package tracker.car.entity;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@NamedQueries({
@NamedQuery(name="Alert.findAllHighAlert",
query="SELECT a FROM Alert a WHERE a.timestamp> :pTS and a.priority='HIGH'"),
@NamedQuery(name="Alert.findByVin",
query... | true |
f2cbd2dd8656b2d16cc13da8c83ecd4dd5a5b079 | Java | Qaeric/timetable2 | /src/main/java/timetable/client/admin/Entry.java | UTF-8 | 1,898 | 2.765625 | 3 | [] | no_license | package timetable.client.admin;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import timetable.Subject;
public class Entry extends JFrame
{
private static fin... | true |
48b580ed0f892528316b7ff22a0aafb31829e703 | Java | pritomsaha/Decision-Tree-Implementation | /src/FileReader.java | UTF-8 | 1,183 | 3.0625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
public class FileReader {
public static final String PATH_TO_DATA_FILE = "input.txt";
public BufferedReader reader = null;
... | true |
0f03509d280c0d878fd6844dc29ed236b0605b52 | Java | qq454634668/hostelManage | /src/main/java/com/product/ProductApplication.java | UTF-8 | 1,318 | 1.796875 | 2 | [] | no_license | package com.product;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentS... | true |
14280f1f8a3874bc54db8e5adbc3a3d93f4032e6 | Java | parkjye/acorn2020_java | /Step17_InputOutput/src/test/main/Quiz03_2.java | UTF-8 | 445 | 1.640625 | 2 | [] | no_license | package test.main;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public class Quiz03_2 extends JFrame{
class JPanel01 extends JPanel {
public JButton Jbtn1;
public JScrollPane scroll;
public JTextArea textAea;
/... | true |
7516f2f299cb172e7e48c31841b46ac144aaf8ad | Java | TTaiN/Amadeus4D | /src/main/java/ttain/amadeus/discord/modules/administration/commands/SetAvatar.java | UTF-8 | 628 | 2.1875 | 2 | [] | no_license | package ttain.amadeus.discord.modules.administration.commands;
import sx.blah.discord.api.IDiscordClient;
import sx.blah.discord.util.DiscordException;
import sx.blah.discord.util.Image;
import sx.blah.discord.util.RateLimitException;
/**
* -- Amadeus Discord System --
* Creator: Tai
* Date: 3/23/2017
* Package: ... | true |
a5084bda103b340a86388228d74c28e812ff739d | Java | codingWang/JavaStudy | /src/com/duwei/designpattern/abstractfactory/SummerTextField.java | UTF-8 | 238 | 2.34375 | 2 | [] | no_license | package com.duwei.designpattern.abstractfactory;
//Summer文本框类:具体产品
class SummerTextField implements TextField {
public void display() {
System.out.println("显示蓝色边框文本框。");
}
}
| true |
e231351117a4688b2ec537e46692f74ada2712db | Java | tiagoboeing/algoritmos-estrutura-de-dados | /semestres_anteriores/src/Lista13/OrdenacaoMergeSort.java | UTF-8 | 1,925 | 3.4375 | 3 | [] | no_license | package Lista13;
public class OrdenacaoMergeSort<T extends Comparable<T>> extends
OrdenacaoAbstract<T> {
@Override
public void ordenar() {
T[] info = getInfo();
int n = info.length - 1;
mergeSort(0, n);
}
public void mergeSort(int inicio, int fim) {
if (inicio ... | true |
aad48e6caca9c6b8690df3059542077533c3ba7e | Java | Youhao-Wang/CS455 | /PA4/RandomTextGenerator.java | UTF-8 | 3,506 | 2.90625 | 3 | [] | no_license | // Name:Youhao Wang
// USC loginid:youhaowa
// CS 455 PA4
// FLL 2016
/**
RandomTextGenerator class:
this class achieve main function of text generate.
*/
import java.io.PrintWriter;
import java.util.*;
public class RandomTextGenerator {
public static final int FIXED_SEED = 1;
public static final int MAX_LENGTH... | true |
3f0a5efbc326fc867d48331940029e03a8b06082 | Java | ThomassenMichiel/AcaraFrontend | /src/main/java/be/acara/frontend/model/CartItemModel.java | UTF-8 | 279 | 1.84375 | 2 | [] | no_license | package be.acara.frontend.model;
import be.acara.frontend.controller.dto.EventDto;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class CartItemModel {
private EventDto eventDto;
private int amount;
private BigDecimal itemTotal = BigDecimal.ZERO;
}
| true |
85873ce137677d822a0bfea99a66a91406968d4b | Java | dfreitasf/estudos-java | /curso-java-basico/src/com/loiane/cursojava/aula13/OperadoresAritmeticos.java | WINDOWS-1252 | 1,394 | 3.546875 | 4 | [] | no_license | package com.loiane.cursojava.aula13;
public class OperadoresAritmeticos {
public static void main(String[] args) {
int resultado = 1 + 2;
System.out.println(resultado);
resultado = resultado - 1;
System.out.println(resultado);
resultado = resultado * 2;
System.out.println(resultado);
result... | true |
4365ab8954d6d2390e72eb1b16c7a3d7f8cbec14 | Java | Laloxx/Ookot | /src/main/java/mx/com/ookot/persistence/entity/OpPagos.java | UTF-8 | 3,332 | 2.03125 | 2 | [] | no_license | package mx.com.ookot.persistence.entity;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import ja... | true |
846dc167d578a55f6b4b6ba6f11aaa9ecd759c1a | Java | jangseohyun/java_study_2021 | /Test085.java | UHC | 1,869 | 4.03125 | 4 | [] | no_license | /*=============================
++++++++++迭(array)++++++++++
-迭 ⺻ Ȱ
===============================
Test085.java
=============================*/
//
// ڷκ л Է¹ް, ŭ ( ) Է¹
// ü л , , Ͽ ϴ α Ѵ.
// , 迭 ȰϿ ó ֵ Ѵ.
//
// л Է: 5
// 1 л Է: 90
// 2 л Է: 82
// 3 л Է: 64
// 4 л Է: 36
// 5 л Է: 98
// >> : ... | true |
07eaf6efd2b2420e1df06375bb80c644a84d87a7 | Java | mihkelva/IdeaProjects | /Strings/src/com/company/Main.java | UTF-8 | 3,275 | 3.328125 | 3 | [] | no_license | package com.company;
public class Main {
public static void main(String[] args) {
String[] kuud = new String[] {"Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"};
// E = 0, l = 1, a = 2, s = 3, " " = 4
String lause= "El... | true |
6282548605c6a41d1c80fe7c6836fccc39831101 | Java | fabfabe/de.medizinplattform.git.github | /Medizinplattform/src/de/medizinplattform/managedbeans/RegisterBean.java | UTF-8 | 1,397 | 2.265625 | 2 | [] | no_license | package de.medizinplattform.managedbeans;
import javax.annotation.PreDestroy;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import de.medizinplattform.entities.Users;
@ManagedBean(name = "registerBean")
@RequestScoped
public class Re... | true |
2b267fd8e7a0d4ab18af91d9d6109e6b3fe113f0 | Java | ssdraid0/java-project | /java/src/algorithm/LinkedListQ.java | UTF-8 | 10,980 | 4.375 | 4 | [] | no_license | package algorithm;
import java.util.Stack;
/**
* 1.给定单链表的头结点和一个结点,删除该结点,返回删除后的单链表的头结点。 </br>
* {@link #remove(Node, Node)}。</br>
* 2.给定单链表的头结点和一个结点的值,删除该结点,返回删除后的单链表的头结点。 </br>
* {@link #remove(Node, int)}。</br>
* 3.输入一个单链表的头结点,从尾到头反过来打印出单链表每个结点的值,用递归实现。</br>
* {@link #printReverse(Node)}。</br>
* 4.... | true |
2449785a2c6da79278b110f0bec69a1931a16a27 | Java | joseteodoro/simple-wallet-api | /src/main/java/br/jteodoro/wallet/models/AccountOperationEnum.java | UTF-8 | 929 | 2.609375 | 3 | [] | no_license | package br.jteodoro.wallet.models;
import java.util.Arrays;
import java.util.function.Predicate;
public enum AccountOperationEnum {
COMPRA_A_VISTA(1l, "COMPRA A VISTA", Op.DEBITO),
COMPRA_PARCELADA(2l, "COMPRA PARCELADA", Op.DEBITO),
SAQUE(3l, "SAQUE", Op.DEBITO),
PAGAMENTO(4l, "PAGAMENTO", Op.CR... | true |
2976669bbe6897339c59fcb532e4f28e0681f008 | Java | DAC84/javastravav3api | /src/test/java/javastrava/model/StravaAthleteZoneTest.java | UTF-8 | 377 | 1.960938 | 2 | [] | no_license | package javastrava.model;
import javastrava.model.StravaAthleteZone;
import javastrava.utils.BeanTest;
/**
* <p>
* Tests for {@link StravaAthleteZoneTest}
* </p>
*
* @author Dan Shannon
*
*/
public class StravaAthleteZoneTest extends BeanTest<StravaAthleteZone> {
@Override
protected Class<StravaAthleteZone> ... | true |
3954007ff9da2de06c452dd39135f79da4b2838c | Java | focusxyhoo/leetcode | /src/leetcode/medium/T50_Pow.java | UTF-8 | 998 | 3.796875 | 4 | [] | no_license | package leetcode.medium;
/**
* created with IntelliJ IDEA
* author : focusxyhoo
* date : 2019-06-23
* time : 21:27
* description :
*/
public class T50_Pow {
public static void main(String[] args) {
System.out.println(myPow(2.0, 100));
System.out.println(Math.pow(2.0, 0.0))... | true |
6339e8bbccdb7521aa2df047fbbd1f28b848a652 | Java | roterdam/TbDA | /src/dk/brics/tajs/analysis/dom/view/AbstractView.java | UTF-8 | 823 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package dk.brics.tajs.analysis.dom.view;
import static dk.brics.tajs.analysis.dom.DOMFunctions.createDOMProperty;
import dk.brics.tajs.analysis.State;
import dk.brics.tajs.analysis.dom.DOMSpec;
import dk.brics.tajs.analysis.dom.DOMWindow;
import dk.brics.tajs.analysis.dom.html.HTMLDocument;
import dk.brics.tajs.latti... | true |
13d9ede85811b10f4ff69e76c491fb1b8cdb531e | Java | lilibethcabrera/EmpresaAltice | /src/visual/PlanesCliente.java | ISO-8859-2 | 5,983 | 2.421875 | 2 | [] | no_license | package visual;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Calendar;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing... | true |
389a176637b3b7a28373c106826c781769dd5d05 | Java | garyleefight/Algorithm | /leetcode/leet69.java | UTF-8 | 203 | 2.421875 | 2 | [] | no_license | public class Solution {
public int mySqrt(int x) {
long temp = x;
long i = 0;
while(i*i <= temp){
i++;
}
return (int)i-1;
}
}
// slow | true |
a22f1e583e7f03d38439be5cea26f0788755074c | Java | co1248/jspworkspace | /NonageShop/src/main/java/com/nonage/controller/ActionFactory.java | UTF-8 | 3,673 | 2.0625 | 2 | [] | no_license | package com.nonage.controller;
import com.nonage.controller.action.Action;
import com.nonage.controller.action.CartDeleteAction;
import com.nonage.controller.action.CartInsertAction;
import com.nonage.controller.action.CartListAction;
import com.nonage.controller.action.ContractAction;
import com.nonage.control... | true |
322acacd45b427d831292c78d8adef5f87efda0d | Java | SamJH/ChinaMobile | /src/com/oracle/servlet/LoginServlet.java | WINDOWS-1252 | 1,176 | 2.15625 | 2 | [] | no_license | package com.oracle.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.oracle.service.LoginService;
import com.oracle.service.Impl.LoginServiceImpl;
... | true |
5bf4fa30ea982cf587db3d5a21a2d2dea89256e2 | Java | thomashw/ensf409 | /Lab 2/Date.java | UTF-8 | 2,011 | 4.09375 | 4 | [] | no_license | import java.lang.String;
class Date {
// Variables
private int day;
private int month;
private int year;
// Constructors
public Date()
{
this(0,0,0);
}
public Date( int d, int m , int y )
{
this.day = d;
this.month = m;
this.year = y;
}
/** public function that returns integer "day" */
pu... | true |
0f2c53aca5f4b25a339d43b8ef8bf30ec6c197ae | Java | xiaodaguan/spiderplatform | /scheduler/src/main/java/cn/guanxiaoda/spider/scheduler/annotation/TaskGenerator.java | UTF-8 | 561 | 1.9375 | 2 | [] | no_license | package cn.guanxiaoda.spider.scheduler.annotation;
import cn.guanxiaoda.spider.core.enums.Entity;
import cn.guanxiaoda.spider.core.enums.Site;
import cn.guanxiaoda.spider.core.enums.Source;
import cn.guanxiaoda.spider.core.enums.Type;
import org.springframework.stereotype.Component;
import java.lang.annotation.*;
/*... | true |
e9db93385852d574cb562b04b54e391e54bb2a7e | Java | niccs/WineManagementSystem | /src/main/java/com/winery/codingChallange/wines/service/WineService.java | UTF-8 | 578 | 2.078125 | 2 | [] | no_license | package com.winery.codingChallange.wines.service;
import java.util.List;
import java.util.Set;
import com.winery.codingChallange.wines.model.GrapeComponent;
import com.winery.codingChallange.wines.model.Wine;
public interface WineService {
List<Wine> getWines();
Wine getWine(String id);
List<String>printYearB... | true |
3e518e1b57d9ecf9f383ceb01843bed06c832fe9 | Java | SergeyUdaltsov/Hbcu | /src/main/java/com/hbcu/model/Customer.java | UTF-8 | 3,819 | 2.40625 | 2 | [] | no_license | package com.hbcu.model;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml... | true |
644aec007929366e30f039eab4b4c84b24565ff7 | Java | damianniesteruk/SaperClient | /test/ServerDataTest.java | UTF-8 | 576 | 1.75 | 2 | [] | no_license | /**
* @author Damian
*/
public class ServerDataTest {
@org.junit.Test
public void testBlankIPServer() {
}
@org.junit.Test
public void testIncorrectIPServer() {
}
@org.junit.Test
public void testCorrectIPServer() {
}
//========================================... | true |
140de548fc8c6bd21007d2ae59befeda92386d99 | Java | amanyadv/test-android | /Register/app/src/main/java/com/ibusl/android/register/fragment/ItemsFragment.java | UTF-8 | 2,394 | 2.125 | 2 | [] | no_license | package com.ibusl.android.register.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.wi... | true |
ae5fdeb6f9ee7ea30c8a41ac6edc8ea3afc61437 | Java | caychan/DesignPattern | /src/abstractFactory/Factory2.java | UTF-8 | 127 | 2.265625 | 2 | [] | no_license | package abstractFactory;
abstract class Factory2 {
abstract IProductA getProductA2();
abstract IProductB getProductB2();
}
| true |
314fb2f07e0b91d13cc66128e2cb68c7518c9963 | Java | selsama/ot-harjoitus | /SnakeGame/src/test/java/domain/SnakeHeadTest.java | UTF-8 | 6,159 | 3.21875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package domain;
import javafx.scene.paint.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.... | true |
2af34a1ff2eb770289abc837ca48a5455e1b4f36 | Java | anaivanovska/emt_rent_advertisement | /src/main/java/mk/com/ukim/finki/rent_advertisement/domain/model/Gender.java | UTF-8 | 100 | 1.796875 | 2 | [] | no_license | package mk.com.ukim.finki.rent_advertisement.domain.model;
public enum Gender {
Male, Female
}
| true |
768de9aeeff3c25e28b1d6d9ddf9368717d89836 | Java | Qhycm3649/export_parent | /export_cargo_service/src/main/java/com/xyou/service/cargo/impl/ExportProductServiceImpl.java | UTF-8 | 2,311 | 2.140625 | 2 | [] | no_license | package com.xyou.service.cargo.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xyou.dao.cargo.ExportProductDao;
import com.xyou.domain.cargo.ExportProduct;
import com.xyou.domain.cargo.ExportProductExample;
import com.... | true |
0047f036d8dc0e9790a135c9f30f083b6b6f53d0 | Java | SpoorthiRajanna/NewRepository | /VehicleRental/src/com/service/PaymentService.java | UTF-8 | 172 | 1.765625 | 2 | [] | no_license | package com.service;
import java.util.ArrayList;
import com.bean.Payment;
public interface PaymentService {
public ArrayList<Payment> payment(String vid);
}
| true |
a330058df360a2d639c4e5903023d15552aff656 | Java | knittmann/countries_spring_boot | /src/main/java/com/example/springmvc/service/CountryService.java | UTF-8 | 1,005 | 2.34375 | 2 | [] | no_license | package com.example.springmvc.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.springmvc.entity.Country;
import com.example.springmvc.repo.CountryRepo;
@Service
public class CountryService {
@Autowired... | true |
228627ce76b4990447bdef6bfd39ee9a9c600b3f | Java | jaikumxr/JAVA-Intermediate | /PepList/Arrays/SubarrayWithGivenSum.java | UTF-8 | 1,510 | 3.984375 | 4 | [
"MIT"
] | permissive |
// { Driver Code Starts
import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int i = 0; i < t; i++) {
int n = sc.nextInt();
int s = sc.nextIn... | true |
792293b4ab4e4fa17b2404a33a28e95987decaf0 | Java | mikepatel/Artificial-Intelligence | /Hw1/City.java | UTF-8 | 551 | 2.90625 | 3 | [] | no_license | /* Michael Patel
* mrpatel5
* CSC 520
* Homework 1
* Fall 2018
*
* City user-defined object:
* - city name
* - latitude North coordinate of city
* - longitude West coordinate of city
*/
public class City {
String name;
double latitude;
double longitude;
/*************************... | true |
1a02127c96acd4d347c6f2006a06d2436ce7dfbc | Java | brokenq/itsnow | /backend/platform/src/main/java/dnt/itsnow/platform/web/support/PageRequestResponseBodyMethodProcessor.java | UTF-8 | 2,423 | 2.34375 | 2 | [] | no_license | /**
* Developer: Kadvin Date: 14-10-10 下午4:21
*/
package dnt.itsnow.platform.web.support;
import dnt.itsnow.platform.service.Page;
import org.springframework.core.MethodParameter;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.HttpMediaTypeNotAcceptableException;
impor... | true |
47792ad9cbc790de10eae81351a60c60c281cb8e | Java | alesegdia/platgen | /src/com/alesegdia/platgen/sector/Sector.java | UTF-8 | 322 | 2.234375 | 2 | [] | no_license | package com.alesegdia.platgen.sector;
import com.alesegdia.platgen.region.Region;
import com.alesegdia.platgen.util.Rect;
public class Sector extends Rect {
public Region region;
public boolean isGap;
public int height; // valid if not gap
public Sector(int x, int y, int w, int h) {
super(x, y, w, h);
}
... | true |
dbc486a0e355738e5b3898a00a953c68858305b4 | Java | ahmedcevizci/sensor-co2 | /src/test/java/info/alaz/sensor/co2/e2e/Co2SensorApiE2e.java | UTF-8 | 9,827 | 1.976563 | 2 | [] | no_license | package info.alaz.sensor.co2.e2e;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature... | true |
71ada86cf3ba1e04d490928e514259584c1e32eb | Java | anashish/imagePic | /androidimgprolibmaster/src/main/java/net/akhyar/android/imgpro/Channel.java | UTF-8 | 189 | 1.921875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package net.akhyar.android.imgpro;
public class Channel {
public static final int RED = 0xff0000;
public static final int GREEN = 0x00ff00;
public static final int BLUE = 0x0000ff;
}
| true |
3cc7640370a5c9298f14cb1c6702ce38f953a1fa | Java | VINODRAMAKRISHNAN/java-ui-api-test-projects | /astadia.test.seleniumcucumber/src/test/java/test/cucumberbasic/StepsCucumberBasic.java | UTF-8 | 950 | 2.84375 | 3 | [] | no_license | package test.cucumberbasic;
import org.testng.Assert;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class StepsCucumberBasic {
int input = 0;
@Given("^I have entered (\\d+) into the calculator$")
public void i_have_entered_into_the_calcula... | true |
d0fede3f0ec3f9db7ab88908045d991a8b17a4d2 | Java | Obochuk/training | /src/epam/training/project2/src/test/model/entity/TestText.java | UTF-8 | 1,413 | 2.6875 | 3 | [] | no_license | package model.entity;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import static org.junit.Assert.assertEquals;
@RunWith(Parameterized.class)
public class TestText... | true |
88277b862d06650241e6d17434d1645c6ea30cbc | Java | Paladin1412/house | /java/classes/cn/jiguang/a/a/a/g.java | UTF-8 | 3,269 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package cn.jiguang.a.a.a;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import cn.jiguang.d.d;
import com.growingio.android.sdk.agent.VdsAgent;
final class g
implements LocationListener
{
private static final String[] z;
static
{
String[] arrayOfS... | true |
2447964f0c81790165f668642330cd3fd6e84eca | Java | Metatavu/jouko | /jouko-api/src/main/java/fi/metatavu/jouko/api/GprsApi.java | UTF-8 | 11,978 | 1.789063 | 2 | [
"MIT"
] | permissive | package fi.metatavu.jouko.api;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.protobuf.InvalidProtocolBufferException;
import fi.metatavu.jouko.api.device.DeviceCommunicator;
import fi.metatavu.jouko.api.device.Laiteviestit.*;
impor... | true |
f089960218c245a9347e2d0ab12832b6236dfaee | Java | Snicfn711/PathfinderCharacterSheet | /app/src/main/java/com/pathfinderstattracker/pathfindercharactersheet/models/ISkill.java | UTF-8 | 807 | 2.234375 | 2 | [] | no_license | package com.pathfinderstattracker.pathfindercharactersheet.models;
import java.io.Serializable;
import java.util.UUID;
/**
* Created by Stephen Hagen on 1/10/2018.
*/
public interface ISkill extends Comparable<ISkill>, Serializable
{
UUID getSkillID();
void setSkillID(UUID skillID);
void setAddedStat(A... | true |
42d13b631f7b7077006738ee8251bb59ac8a5325 | Java | liuyanjun528/changshnegshu | /annaru-upms-api/src/main/java/com/annaru/upms/service/ITbHisMzFeeDetailService.java | UTF-8 | 414 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package com.annaru.upms.service;
import com.annaru.upms.entity.medical.TbHisMzFeeDetail;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* tb_his_mz_fee_detail(门诊收费明细表)
* @author lft
* @date 2019-05-09 11:14:28
*/
public interface ITbHisMzFeeDetailService extends IService<TbHisMzFeeDetail> {
... | true |
33e5f74ad010b035e18ea4fefc4b659b3ced8be3 | Java | leeef/AuctionOne | /app/src/main/java/com/hlnwl/auction/MainActivity.java | UTF-8 | 399 | 1.726563 | 2 | [] | no_license | package com.hlnwl.auction;
import com.hlnwl.auction.base.MyActivity;
public class MainActivity extends MyActivity {
@Override
protected int getLayoutId() {
return R.layout.activity_order;
}
@Override
protected int getTitleBarId() {
return 0;
}
@Override
protected vo... | true |
b60daee28f3349d9a4f5a417449dc0ed123c76d3 | Java | dexter-aks/datastructures-algorithms | /src/com/leetcode/MinHeap.java | UTF-8 | 584 | 3.265625 | 3 | [] | no_license | package com.leetcode;
import java.util.PriorityQueue;
public class MinHeap {
private int size = 0;
private int k = 0;
private PriorityQueue<Integer> heap;
public MinHeap(int k, int[] nums) {
this.k = k;
heap = new PriorityQueue<>(k);
for (int num : nums) {
add(num);
}
}
public static void main(St... | true |
43a0aae5b901c9ba49bf5bfa885f9579daca1ac5 | Java | AngryDogs/tallink-test | /backend/src/main/api/conference/Config/WebConfig.java | UTF-8 | 731 | 1.9375 | 2 | [] | no_license | package conference.Config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.serv... | true |
3412ad741b7ba2b9c7677c3c15dcd704c3bff2dd | Java | gaohe1227/spring-boot-demo01 | /src/main/java/com/service/DemoService.java | UTF-8 | 1,030 | 1.9375 | 2 | [] | no_license | package com.service;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import com... | true |
5a1124c1a600133048d5491c18133b55ac1a356b | Java | Attonasi/tic_tac_toe | /client/src/main/rest/POST.java | UTF-8 | 658 | 2.609375 | 3 | [] | no_license | package main.rest;
import org.apache.http.client.HttpClient;
public class POST extends AbsRESTRequest {
/** The only purpose of this class is to force the user to understand they are
* making a new POST.
*
* @param client HTTPClient used in every RESTRequest.
* @param host String representing the domai... | true |
3ae5a74d9a0a75f1cf13071caa1e84deb2251c0f | Java | todobugs/gxclient-cli-java | /src/main/java/com/gxchain/client/jsonrpc/domain/JsonRpcMessage.java | UTF-8 | 597 | 2.140625 | 2 | [] | no_license | package com.gxchain.client.jsonrpc.domain;
/**
* @Title: JsonRpcMessage
* @Description: jsonRpc消息抽象类
* @Author: mingyi
* @created 2018年4月11日 下午5:59:02
*/
public abstract class JsonRpcMessage {
/**
* jsonrpc 信息体
*/
private String jsonrpc;
/**
* 消息id
*/
private String id;
public Strin... | true |
0c84f677373da01aacc6bb9b7796194d32678538 | Java | marydan/RESTRelationTest | /src/main/java/com/stackroute/products/controller/CustomerController.java | UTF-8 | 1,560 | 2.234375 | 2 | [] | no_license | package com.stackroute.products.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bin... | true |
af1d8bf7193603f0dd513a3f86a02725f66b57a8 | Java | treejames/feitai-parent | /feitai-common/src/main/java/com/feitai/common/core/CoreThrowsAdvice.java | UTF-8 | 1,022 | 2.0625 | 2 | [] | no_license | package com.feitai.common.core;
import java.util.Locale;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
09bb4b2ff99fb183b7607d28129c79f8695a48ff | Java | abhijeet-yahoo/jewels | /src/generated-sources/java/com/jiyasoft/jewelplus/domain/manufacturing/transactions/QPDCTranMt.java | UTF-8 | 4,258 | 1.671875 | 2 | [] | no_license | package com.jiyasoft.jewelplus.domain.manufacturing.transactions;
import static com.mysema.query.types.PathMetadataFactory.*;
import com.mysema.query.types.path.*;
import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;
import com.mysema.query.types.path.Pat... | true |
a7a6783e76ec483ae82bbd6a84325ddf1ad1301a | Java | aminedarabid/ProxiBanqueSI-1 | /ProxiBanqueSI/src/main/java/com/objis/spring/dto/TransferDto.java | UTF-8 | 532 | 2.359375 | 2 | [] | no_license | package com.objis.spring.dto;
public class TransferDto {
private String from;
private String to;
private Double balance;
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public String getTo() {
return to;
}
... | true |
152b0873f464c532b6c79f09dabdf9e484ba6936 | Java | SeanAndPenny/SND | /ylpt/src/main/java/com/wondersgroup/wszygl/controller/CwtjController.java | UTF-8 | 3,474 | 2.03125 | 2 | [] | no_license | package com.wondersgroup.wszygl.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotatio... | true |
b904f4008667cd2019b6bd75c582961e4fafe985 | Java | nuxeo/nuxeo-media-publishing | /nuxeo-media-publishing-core/src/main/java/org/nuxeo/ecm/media/publishing/MediaPublishingService.java | UTF-8 | 1,540 | 1.8125 | 2 | [] | no_license | /*
* (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | true |
3793a0e8b1c44b7598ae4e62b3e3677af9bf632a | Java | Nanguromo/OOSE_21 | /P5/src/Controller.java | UTF-8 | 11,474 | 3.34375 | 3 | [] | no_license | import java.util.*;
import java.io.IOException;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.*;
/**
* The controller of the reminders application. The responsibilities of this
* class are light -- it's a thin layer between the View and the Model.
*/
public cl... | true |
04234cc9aeadc69fd9cff9f21edcd5f7ffe658a6 | Java | JuliaChenJing/Advanced-Software-Design | /ObserverPatternSolution/src/email/EmailSender.java | UTF-8 | 560 | 2.859375 | 3 | [] | no_license | package email;
import java.util.Date;
import bank.domain.Account;
import bank.service.IObserver;
public class EmailSender implements IObserver {
//when new account is created, email will be sent to confirm
public void update(Account account) {
// check if account is new
if (account.getBalance() == 0.0) {
... | true |
5f88e47cec2487ed71f8d5e51be8f917a618f542 | Java | paper-lark/big-data-course | /candlestick-chart/src/main/java/CandlestickOutputFormat.java | UTF-8 | 900 | 2.3125 | 2 | [] | no_license | import models.CandlestickDescription;
import models.CandlestickKey;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.RecordWriter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.m... | true |
2bdc45a39481e1eaedb874dc0af4b9ce21843ec3 | Java | mnk-OneThing/DataStructures | /src/com/mnk/Searching/BinarySearch.java | UTF-8 | 548 | 3.4375 | 3 | [] | no_license | package com.mnk.Searching;
import java.util.Collections;
public class BinarySearch {
public static void main(String[] args) {
int a[] = { 11, 21, 32, 43, 58, 61, 99, 101, 245, 350 };
int findIndexOf = 245;
System.out.println(binarySearch(a, findIndexOf));
}
private static int binarySearch(int[] a, int find... | true |
0007828aee6c378a8c4a95aa569cf8bee521d48e | Java | zscomehuyue/porter | /manager/manager-core/src/main/java/cn/vbill/middleware/porter/manager/service/impl/PublicDataSourceServiceImpl.java | UTF-8 | 4,617 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright ©2018 vbill.cn.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | true |
3d2bb6271a15a33050e81df5ccaaf912e6f7ccd6 | Java | fotionkonomi/Job-Demo | /job-core/src/main/java/de/dh/lhind/demo/jobcore/business/service/base/AbstractJpaService.java | UTF-8 | 2,828 | 2.25 | 2 | [] | no_license | package de.dh.lhind.demo.jobcore.business.service.base;
import de.dh.lhind.demo.jobcore.business.common.BaseClassDTO;
import de.dh.lhind.demo.jobcore.business.service.exception.EntityNotFoundException;
import de.dh.lhind.demo.jobcore.business.service.exception.NoElementFoundException;
import de.dh.lhind.demo.jobcore.p... | true |
d61067388534e08037abeb0d81769a4452e3a2d5 | Java | fernandojustino/focus | /src/main/java/com/focus/repository/UsuarioRepository.java | UTF-8 | 504 | 2.015625 | 2 | [] | no_license | package com.focus.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.focus.domain.security.Usuario;
public interface UsuarioRepository extends JpaRepository<Usuario, Intege... | true |
2e3655779827bfe0d09c121553c810a0c0567fd5 | Java | VMAproject/sport | /src/main/java/com/sport/mvc/Controllers/smoll_fintess/StartController.java | UTF-8 | 540 | 1.828125 | 2 | [] | no_license | package com.sport.mvc.Controllers.smoll_fintess;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/start/")
public class StartController {
//starts index
@RequestMapping("/")
public String ShowIndexStartPa... | true |
1f36a199b0284a184c65ccc4292a5e944c224344 | Java | CrisCoboQAT/nosql_blog | /src/main/java/dao/BlogPostDAO.java | UTF-8 | 3,546 | 2.578125 | 3 | [] | no_license | package dao;
import java.util.List;
import java.util.regex.Pattern;
import org.bson.types.ObjectId;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import com.mongodb.WriteResult;
public class BlogPostDAO
{
DBCollec... | true |
6535bcd3b4964d08c24a3d808edce54f82b2a47a | Java | Nilfan/First-Term-Tasks | /HM - Ninth task/src/Main.java | UTF-8 | 1,555 | 3.296875 | 3 | [] | no_license | /**
* Created by НР on 17-Nov-14.
*/
public class Main {
static boolean Search(LinkListNode linkListNode, LinkListNode farLinkListNode){
LinkListNode runner, fastRunner;
runner = linkListNode;
while(runner != farLinkListNode) {
if (linkListNode != null & linkListNode.nextLL !=... | true |
ec30ef6b5cf2d41d2b8f193368624cdd0d5aaf6c | Java | Jorgelh/Tranformadores | /src/SolicitudMaterialesBodega/FormatoTabla.java | UTF-8 | 3,442 | 3.046875 | 3 | [] | no_license | package SolicitudMaterialesBodega;
import SolicitudesMateriales.*;
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
public class FormatoTabla extends DefaultTableCellRenderer{
Color colorRosa=new Color(255,255... | true |
0a422bf1faf38421292f88a70dd7e5982a43dc50 | Java | julmaralb/Grupo14SDP | /Workspace/Acme-Polyglot-2.0/src/test/java/services/LanguageExchangeServiceTest.java | UTF-8 | 9,620 | 2.359375 | 2 | [] | no_license | package services;
import java.util.Collection;
import java.util.Date;
import javax.transaction.Transactional;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework... | true |