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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
02dc3fd90544cd199b13323e733e1f42a43533e5 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_3e04525d2f7953ba3e27a5d9e155aa91b0d76a40/MultiArrowEntityListener/2_3e04525d2f7953ba3e27a5d9e155aa91b0d76a40_MultiArrowEntityListener_s.java | UTF-8 | 5,801 | 2.625 | 3 | [] | no_license | package com.ayan4m1.multiarrow;
import java.util.List;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
impor... | true |
a13b4d46212d00e77810ab8d39562115e7ebfedf | Java | cesperil/Agrotente | /src/main/java/es/grapecheck/plataforma/webaction/bean/GestionEconomicaBean.java | UTF-8 | 5,916 | 1.679688 | 2 | [] | no_license | package es.grapecheck.plataforma.webaction.bean;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.jfree.util.Log;
import es.grapecheck.p... | true |
5617c94f59a088aaac1f9b2c3fbe93aae39bf73a | Java | LeslieCao/JavaLearn | /src/com/imooc/interfaceLearn/IPlayGame.java | UTF-8 | 96 | 1.992188 | 2 | [] | no_license | package com.imooc.interfaceLearn;
public interface IPlayGame {
public void playGame();
}
| true |
4dde8dfbe77014fe077c0dc380adbfb0beb7d885 | Java | TribuneX/talk_automated_testing | /demo-II-database-mock/src/test/java/de/itemis/databasemock/unittest/ContactTestRepository.java | UTF-8 | 1,389 | 2.390625 | 2 | [] | no_license | package de.itemis.databasemock.unittest;
import de.itemis.databasemock.Contact;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Random;
public class ContactTestRepository<S> implements de.itemis.databasemock.ContactRepository {
private List<Contact> repository = ne... | true |
bb7726dd08fc5400313acc132d60eab252823729 | Java | opaeum/opaeum | /runtime/opaeum-runtime-core/opaeum-runtime-hibernate/src/main/java/org/opaeum/hibernate/domain/AbstractEnumResolver.java | UTF-8 | 2,257 | 2.328125 | 2 | [] | no_license | package org.opaeum.hibernate.domain;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import org.hibernate.HibernateException;
import org.hibernate.engine.SessionImplementor;
import org.hibernate.usertype.UserType;
import o... | true |
d378276642049841997f0466c6142afd5e45d3e3 | Java | lfcanals/simple-virtual | /src/main/java/com/lfcanals/testing/virtualizer/util/SessionRecorder.java | UTF-8 | 1,964 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package com.lfcanals.testing.virtualizer.util;
import org.netcrusher.core.reactor.*;
import org.netcrusher.core.filter.*;
import org.netcrusher.tcp.*;
/**
* Main class that starts a proxy to save session.
*
*/
public final class SessionRecorder {
private static String localIp, targetIp;
private static in... | true |
2cf4100b1b886bbf52d3a20cc8487599b860e599 | Java | TsymbalenkoOleksandr/MerakiApp | /src/main/java/com/meraki/controller/EventController.java | UTF-8 | 3,143 | 2.265625 | 2 | [] | no_license | package com.meraki.controller;
import com.meraki.entity.Event;
import com.meraki.entity.Router;
import com.meraki.service.EventService;
import com.meraki.service.RouterService;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controll... | true |
9ba52090e335ce7af092e16c1becd34ea9bde484 | Java | mrzeng/krqsteward2.0 | /order-center/src/main/java/com/ejushang/steward/ordercenter/vo/ApportionPersonVo.java | UTF-8 | 1,034 | 2.03125 | 2 | [] | no_license | package com.ejushang.steward.ordercenter.vo;
/**
* User:moon
* Date: 14-8-13
* Time: 上午9:56
*/
public class ApportionPersonVo {
//用户id
private Integer employeeId;
//用户名
private String username;
//真实姓名
private String employeeName;
//分配数量
private Integer apportionCount;
publi... | true |
125fa14400abe43a7c5e951a421e5d1edf586048 | Java | GitRavindra/CarSellingWebsite | /PickMyCar/src/project/Specification.java | UTF-8 | 5,057 | 2.546875 | 3 | [] | no_license | package project;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpS... | true |
cd1ae3f74b176eea76afbc0cfa12c28763785789 | Java | smalam119/route_planner_revisited | /app/src/main/java/com/thyme/smalam119/routeplannerapplication/Map/NotificationMap/NotificationMapActivity.java | UTF-8 | 949 | 1.851563 | 2 | [] | no_license | package com.thyme.smalam119.routeplannerapplication.Map.NotificationMap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.android.gms.maps.SupportMapFragment;
import com.thyme.smalam119.routeplannerapplication.R;
public class NotificationMapActivity extends AppCompatActivit... | true |
97186411bd6edc86e2753049e3243fd165dbd4c0 | Java | fukudasatomi/nucalgen | /nucalgen/src/main/java/jp/satomichan/nucalgen/CellStylePool.java | UTF-8 | 851 | 2.546875 | 3 | [] | no_license | package jp.satomichan.nucalgen;
import java.util.HashMap;
import java.util.Map;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFDataFormat;
public class CellStylePool {
private Workbook workbook;
CellStylePool(Workbook workbook){... | true |
fde1d41790bcc2ac734a08c3ba7f6565014ce198 | Java | devansh-amazon/amazon-neptune-tools | /neptune-export/src/main/java/com/amazonaws/services/neptune/profiles/neptune_ml/v2/parsing/ParseLabelsV2.java | UTF-8 | 4,179 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright Amazon.com, Inc. or its affiliates. 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.
A copy of the License is located at
http://www.apache.org/licenses/LICENSE-2.0
or in the "license" file accompanying ... | true |
c57a6285d14c1c2c0138c0b7d4e0d4b7c57fc3a7 | Java | adamfisk/littleshoot-downloader | /src/main/java/org/lastbamboo/common/download/RangeDownloadListener.java | UTF-8 | 1,005 | 2.59375 | 3 | [] | no_license | package org.lastbamboo.common.download;
/**
* Listens for connection events.
*/
public interface RangeDownloadListener
{
/**
* Called when a give downloader has established a connection.
*
* @param downloader The connected downloader.
*/
void onConnect(RangeDownloader downloader);
... | true |
8e7b53df00fb18e3bb817b7c63614c37984c740b | Java | emmurphy1/optaplanner | /core/optaplanner-core-impl/src/test/java/org/optaplanner/core/api/score/constraint/ConstraintMatchTest.java | UTF-8 | 2,064 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.optaplanner.core.api.score.constraint;
import static org.optaplanner.core.api.score.buildin.simple.SimpleScore.ONE;
import static org.optaplanner.core.api.score.buildin.simple.SimpleScore.ZERO;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.optaplanner.core.api.score.buildin.simple.... | true |
22fab950486e69e084389cea68c2822a90699a41 | Java | FrederikMeincke/NordicMotorhome | /src/main/java/com/nordicmotorhome/Repository/CountryRepo.java | UTF-8 | 964 | 2.53125 | 3 | [] | no_license | package com.nordicmotorhome.Repository;
import com.nordicmotorhome.Model.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.spri... | true |
d69a34d90a39e4f518b453ef1bffbc9c67b7fe4c | Java | agreenwalrus/Review-Assistant | /src/main/java/resources/TableMaker/Convetrters/StudentConverter.java | UTF-8 | 1,122 | 2.5 | 2 | [] | no_license | package resources.TableMaker.Convetrters;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import data.Student;
import data.mark.LabMark;
import java.lang.reflect.Type;
public class StudentConverter implemen... | true |
fe420d7efe82dd7980d6ed48596da09e043c9f38 | Java | IanLee1521/server | /src/main/java/gov/osti/entity/DOECodeMetadata.java | UTF-8 | 15,687 | 1.960938 | 2 | [] | no_license | package gov.osti.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxm... | true |
d9963899eae42e31859969f917b9aca32c814b57 | Java | skuarch/neo | /src/java/model/wrappers/WrapperObjectInterchange.java | UTF-8 | 2,125 | 2.765625 | 3 | [] | no_license | package model.wrappers;
import java.io.IOException;
import model.beans.Configuration;
import model.dao.DAO;
import model.net.ObjectInterchange;
/**
* wrapper for the class ObjectInterchange
*
* @author skuarch
*/
public class WrapperObjectInterchange {
private ObjectInterchange objectInterchange = null;
... | true |
92e2fc82a1900cff5aff0607b6ee48544f70414a | Java | ksh564/toilet | /app/src/main/java/org/androidtown/findrest/other/map_poi.java | UTF-8 | 599 | 2.203125 | 2 | [] | no_license | package org.androidtown.findrest.other;
/**
* Created by 김승훈 on 2017-03-21.
*/
public class map_poi{
static double xpoi,ypoi;
public map_poi(){
}
public map_poi(double xpoi,double ypoi){
map_poi.xpoi=xpoi;
map_poi.ypoi=ypoi;
}
public static doub... | true |
09d9d41417130425495d82db05297304db78d7b9 | Java | devlynnsingley/G153_JavaProgramming | /Project5/src/p7_13/p7_13.java | UTF-8 | 1,676 | 3.828125 | 4 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package p7_13;
import java.util.Scanner;
/**
*
* @author C02122472
*/
public class p7_13
{
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
Scann... | true |
f8644a5e51675830d0cce3f9b01908bdc0683d46 | Java | hybrid1969/evenova-Java-api | /src/main/java/com/tlabs/eve/ccp/EveRSSResponse.java | UTF-8 | 1,132 | 2.359375 | 2 | [] | no_license | package com.tlabs.eve.ccp;
import com.tlabs.eve.EveResponse;
import java.util.ArrayList;
import java.util.List;
public final class EveRSSResponse extends EveResponse {
private List<EveRSSEntry> rssEntries = new ArrayList<>();
private String title;
private String link;
private long ... | true |
667fda239eefa8c9da108b59e13b1c6ae223fce6 | Java | wangwilliams/design | /src/com/company/contribute/Singleton/SingletonMain.java | UTF-8 | 343 | 2.65625 | 3 | [] | no_license | package com.company.contribute.Singleton;
public class SingletonMain {
public static void main(String[] args) {
President president = President.getInstance();
President president1 = President.getInstance();
System.out.println(president.equals(president1));
System.out.println(preside... | true |
edae419ecb6e3cc80128a613b921371ea981eb0b | Java | BrayWyatt/Hotelbeds-Suppliers-Integrations-Developer-TEST | /Register_User/src/com/hotelbeds/supplierintegrations/hackertest/detector/HackerDetection.java | UTF-8 | 1,909 | 2.5625 | 3 | [] | no_license | package com.hotelbeds.supplierintegrations.hackertest.detector;
import com.sun.org.apache.xpath.internal.operations.Equals;
import java.io.FileNotFoundException;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Calendar;
import java.util.Date;
... | true |
2b67e8fa600c589e9657034e13eef518e5acb806 | Java | cloudsoft/enstratius-client | /enstratius-java-client/src/main/java/io/cloudsoft/enstratius/api/requests/network/GetFirewall.java | UTF-8 | 1,628 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package io.cloudsoft.enstratius.api.requests.network;
import io.cloudsoft.enstratius.api.HttpMethod;
import io.cloudsoft.enstratius.api.client.AbstractRequest;
import io.cloudsoft.enstratius.api.client.Request;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import java.util.A... | true |
1f5205135dd9f656b06a5627ab459a69158938e1 | Java | George-E/MyWaterlooCCCSolutions | /SolutionsInJava/2013j4/src/Main.java | UTF-8 | 474 | 2.84375 | 3 | [] | no_license |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int time = in.nextInt();
int chores = in.nextInt();
int choreTime[] = new int[chores];
for (int i = 0; i < chores; i++) {
choreTime[i] = in.nextInt();
}
Arrays.sort(cho... | true |
bf0687a45b97a61684e69e6ff0fa42dd2fa68033 | Java | mauricioccasani/plsql | /src/main/java/com/example/demo/controller/CustomerController.java | UTF-8 | 3,064 | 2.234375 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.client.CustomerClientImpl;
import com.example.demo.client.CustomerFeignClient;
import com.example.demo.model.Customer;
import com.example.demo.model.Usuario;
import com.example.demo.model.UsuarioResponse;
import com.example.demo.service.UsuarioService;
impor... | true |
6b273f126a8189d3424d25620c77f6103f7ed132 | Java | apache/netbeans | /java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ThreadsCache.java | UTF-8 | 28,607 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
57bdc249a3bfc4526b6eac8dae6eb3495a07dc9f | Java | Softtanck/MultiTypeRecycleView | /Cheweishi/app/src/main/java/com/cheweishi/android/activity/HomeMoreActivity.java | UTF-8 | 9,389 | 1.882813 | 2 | [] | no_license | package com.cheweishi.android.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.TextView;
import com.cheweishi.android.R;
import com.cheweishi.android.adapter.MainGridViewAdapter;
import c... | true |
280eecf8a0304c5cb40ab793a8a21d6bd3396977 | Java | enzoappi/ProjetoDeSistemas2.Java.FEMASS | /PadraoTemplate.AgenciaDeViagem.N2_Questao03/src/model/entities/AgenciaDeViagem.java | UTF-8 | 1,111 | 3 | 3 | [
"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 model.entities;
import javax.swing.JOptionPane;
/**
*
* @author enzoappi
*/
public class AgenciaDeViagem {
public... | true |
dd14b2929912a467fda26fd2b4934b4076e7524d | Java | iswu2013/pret | /pret-open/src/main/java/com/pret/open/repository/PretCurrencyRepository.java | UTF-8 | 396 | 1.59375 | 2 | [] | no_license | package com.pret.open.repository;
import com.pret.common.repository.BaseRepository;
import com.pret.open.entity.PretCurrency;
/**
* <p>Description: [pretRepository]</p>
* Created on 2019年09月15日
* @author <a href="mailto: 1037216275@qq.com">wujinsong</a>
* @version 1.0
* Copyright (c) 2019年 极客城堡
*/
public int... | true |
eb216e052d7d48e199c8574a108bcd9db1ac6efe | Java | prymetheus/Struts2 | /Struts2_Study/src/main/java/com/qf/web/interceptor/MyInterceptor.java | UTF-8 | 1,360 | 2.3125 | 2 | [] | no_license | package com.qf.web.interceptor;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import com.qf.web.action.ParamAction1;
import org.apache.struts2.ServletActionContext;
import javax.servlet.http.HttpServletRequest;
i... | true |
a7c1d601e9388b386586f010be594cc36159d398 | Java | Under-estimate/Answer | /com/zjs/ui/MyButton.java | UTF-8 | 2,256 | 3.21875 | 3 | [] | no_license | package com.zjs.ui;
import com.zjs.R;
import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
/**
* 一个好看的按钮。
* @author zjs
* */
public class MyButton extends JPanel {
private JLab... | true |
b2b17f7685381ab9292d5652ec6aa882a7f595f8 | Java | junnae/spsak | /saksbehandling/behandlingslager/domene/src/main/java/no/nav/foreldrepenger/behandlingslager/behandling/inntektarbeidytelse/grunnlag/Inntektspost.java | UTF-8 | 1,042 | 2.265625 | 2 | [
"MIT"
] | permissive | package no.nav.foreldrepenger.behandlingslager.behandling.inntektarbeidytelse.grunnlag;
import java.time.LocalDate;
import no.nav.foreldrepenger.behandlingslager.behandling.inntektarbeidytelse.YtelseType;
import no.nav.foreldrepenger.behandlingslager.behandling.inntektarbeidytelse.kodeverk.InntektspostType;
import no... | true |
61e3e820c9b134b4e292086f8edb68df74af7818 | Java | nisheeth84/prjs_sample | /aio-service/src/main/java/com/viettel/coms/bo/manufacturingVTBO.java | UTF-8 | 3,900 | 1.78125 | 2 | [] | no_license | package com.viettel.coms.bo;
import java.util.Date;
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 org.hibernate.annotations.Parameter;
i... | true |
759094360aad2959fd08c0bd6c085db2cef0c45c | Java | wanghai328/AndroidBaseTest | /app/src/main/java/com/test/mytest/broadcast/BroadcastActivity.java | UTF-8 | 1,596 | 2.078125 | 2 | [] | no_license | package com.test.mytest.broadcast;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.annotation.Nullable;
import androidx.localbroadcastmanager.content.LocalBroadcastManager... | true |
44c5714157d323967a6b93a9fac6fd4aea11a5c6 | Java | bellmit/novbank-store | /src/main/java/com/novbank/store/util/CollectionUtils.java | UTF-8 | 2,643 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package com.novbank.store.util;
import com.google.common.collect.MapDifference;
import com.google.common.collect.Maps;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Created by CaoKe on 2015/4/18.
*/
public class CollectionUtils {
public static <K,V> void removeEmptyValueEntry(fina... | true |
c1570d3d08b63104c2ba90ac395c7e5135e2036b | Java | RelaxBin/rabbitmq_learn | /springcloudstream-rabbitmq/springcloudstream-producer/src/main/java/com/zempty/Barista.java | UTF-8 | 397 | 1.789063 | 2 | [] | no_license | package com.zempty;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
/**
* @author zempty
* @ClassName Barista.java
* @Description TODO
* @createTime 2020年04月05日 15:17:00
*/
public interface Barista {
String OUTPUT_CHANNEL = "output_channel";
... | true |
a70aa95296961812b471c31b6f3005d5b807630b | Java | baddrug/projeto2 | /src/projetointegrador/view/TelaCadProd.java | UTF-8 | 76,389 | 2.359375 | 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 projetointegrador.view;
import java.awt.Color;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.... | true |
d7d750261eab71293cb4499074cff2c8b53cd4be | Java | KevynSM/BankSystem | /src/D3/models/Documents.java | UTF-8 | 996 | 3.15625 | 3 | [] | no_license | package D3.models;
/** Represents a Document of a Client in a Bank.
* @author Diurno - Grupo 3.
* @author Daniel Almeida.
* @author João Conduto.
* @author Kevyn Marins.
* @author Tiago Leitão.
*/
public class Documents {
private char typeDocument;
private String numberDocument;
/** Creates a docum... | true |
2fa34f561cb729cc6ed756768d0a2562ac9b6450 | Java | GoogleCloudPlatform/gcp-token-broker | /code/client/client-lib/src/main/java/com/google/cloud/broker/client/utils/OAuthUtils.java | UTF-8 | 1,961 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2020 Google LLC
// 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 or agreed to in writing, softw... | true |
e986ac14847e64f15afaa6209582bd0e86835de9 | Java | motxx/AOJ | /repository/0001.java | UTF-8 | 426 | 3.03125 | 3 | [] | no_license | import java.util.*;
class aoj0001
{
public void solve()
{
int[] list = new int[10];
Scanner sc = new Scanner(System.in);
for(int i=0; i<10; i++)
list[i] = sc.nextInt();
Arrays.sort(list);
for(int i=0; i<3; i++)
System.out.println(list[9-i]);
}... | true |
d01cebb01a726c25208b22ad2b2552698eb8d7b4 | Java | CTreffOS/codingchaos-2016_1_beginner | /aufgabe02/mwild/Rueckgeld.java | UTF-8 | 613 | 3.078125 | 3 | [] | no_license |
import AlgoTools.IO;
public class Rueckgeld {
public static void main(String[] argv) {
double[] geld = {500.0, 200.0, 100.0, 50.0, 20.0, 10.0, 5.0, 2.0, 1.0, 0.5, 0.2, 0.1, 0.5, 0.2,
0.1, 0.05, 0.02, 0.01};
double[] amounts = IO.readDoubles();
int[] rueckgabe = new int[geld.length];
for(int i = 0; i < amo... | true |
1924edac2b9c0bc047773ce3d1f91daf1b656684 | Java | bryan-brancotte/projetgl-2008 | /iGo/src/ihm/smartPhone/statePanels/SplashScreenPanel.java | UTF-8 | 5,366 | 2.765625 | 3 | [] | no_license | package ihm.smartPhone.statePanels;
import ihm.smartPhone.component.LowerBar;
import ihm.smartPhone.component.UpperBar;
import ihm.smartPhone.libPT.PanelDoubleBufferingSoftwear;
import ihm.smartPhone.tools.ImageLoader;
import ihm.smartPhone.tools.SizeAdapteur.FontSizeKind;
import java.awt.Graphics;
import ja... | true |
6b01115e510d893c168f830f96f4ddb4f089f930 | Java | ece1778-2021/Dynasway_Concussion | /app/src/main/java/com/example/dynaswayconcussion/ui/tests/StaticTestSelectionFragment.java | UTF-8 | 2,847 | 1.96875 | 2 | [] | no_license | package com.example.dynaswayconcussion.ui.tests;
import android.content.Intent;
import android.media.AudioManager;
import android.media.ToneGenerator;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | true |
806cc0480527c94305e39d4a287221a5914b7aca | Java | uttaransarkar/Spring-Concepts | /hibernate-one-to-many-demo/src/com/uttaran/hibernate/demo/EagerLazyDemo.java | UTF-8 | 1,864 | 3.140625 | 3 | [] | no_license | package com.uttaran.hibernate.demo;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.uttaran.hibernate.demo.entity.Course;
import com.uttaran.hibernate.demo.entity.Instructor;
import com.uttaran.hibernate.demo.entity.Instruct... | true |
58409e5bd04446efd76b6b37933ec956c3a6d5cc | Java | muhd7rosli/desmoj | /src/desmoj/core/simulator/ModelParameterManager.java | UTF-8 | 3,331 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package desmoj.core.simulator;
import java.util.Collection;
/**
* Interface to restrict the functionalities of a parameter-manager
* to manage model-parameters. This Interface should be used as return-
* type of the Model's methods which return the parameter-
* manager.
*
* @author Tim Janz
*
* Licensed un... | true |
7a9438d82287f5aaf5f509a44bafdc03b13cabd4 | Java | aayushraizada16/FriendsList-app | /freindlist/src/main/java/com/example/freindlist/entity/Graph.java | UTF-8 | 893 | 2.640625 | 3 | [] | no_license | package com.example.freindlist.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.ArrayList;
@Entity
public class Graph {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Int... | true |
c86b1911037908d02bb1013c7caf9060b2f26c6c | Java | 17010322/KnowYourFacts | /app/src/main/java/sg/edu/rp/webservices/knowyourfacts/Frag1.java | UTF-8 | 1,045 | 2.140625 | 2 | [] | no_license | package sg.edu.rp.webservices.knowyourfacts;
import android.graphics.Color;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import java.util.Random;
/**
* A simple {@link Frag... | true |
54075ad53dc1121ffd8e8e1f5c499254e4b67f29 | Java | magefree/mage | /Mage.Sets/src/mage/cards/c/CavesOfChaosAdventurer.java | UTF-8 | 3,548 | 2.515625 | 3 | [
"MIT"
] | permissive | package mage.cards.c;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.CompletedDungeonCondition;
import mage.abilities.effects.OneShotEffect;
import mage.abil... | true |
a0d457c914ae5c9aae6c2ec586f161523dec807c | Java | ErnestoPelayo/InformaTec | /app/src/main/java/com/example/macbook/informatec/ui/ActivityConferences.java | UTF-8 | 2,012 | 2.03125 | 2 | [] | no_license | package com.example.macbook.informatec.ui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.example.macbook.informatec.Domain.Adapters.MyAdapter;
import com.example.macbook.informa... | true |
cf3321e78dd3ba24d05e7afd876e1ddce044e767 | Java | HuyVDSE/lms-mock-project | /enamra-master/src/main/java/com/app/service/impl/ResultServiceImpl.java | UTF-8 | 615 | 1.9375 | 2 | [] | no_license | package com.app.service.impl;
import com.app.model.Result;
import com.app.repository.ResultRepo;
import com.app.service.ResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ResultServiceImpl implement... | true |
2c690895d2894cb3cd83efb98ef016b41da89077 | Java | JMCC-123/geogebra | /common/src/geogebra/common/kernel/kernelND/ParametricFunction.java | UTF-8 | 206 | 1.515625 | 2 | [] | no_license | package geogebra.common.kernel.kernelND;
import geogebra.common.kernel.Matrix.Coords;
public interface ParametricFunction {
public Coords sample(double[] parameters);
public double[] getDomain();
} | true |
34f0f3a423209fb40cdffbd572bce6b691c32f5a | Java | brunoyui/fruitProject | /src/main/java/com/frutare/web/rest/mapper/PagamentoMapper.java | UTF-8 | 1,210 | 2.078125 | 2 | [] | no_license | package com.frutare.web.rest.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import com.frutare.domain.FormaPagamento;
import com.frutare.domain.conta.Pagamento;
import com.frutare.domain.conta.Conta;
import com.frutare.web.rest.dto.PagamentoDTO;
import com.frutare.web.rest.dto.FormaPagamentoDTO;
... | true |
37237e82487cbf0d00333df6f3048cfc196714fb | Java | laric158/ymsd | /ymkx-cms/src/cn/itsource/cms/controller/HelloController.java | UTF-8 | 702 | 2.0625 | 2 | [] | no_license | package cn.itsource.cms.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cn.itsource.cms.model.... | true |
e95a0b557174ca02d6edd28b6693ccf2d3de53b5 | Java | pwkpwk/androbind | /app/src/main/java/com/ambientbytes/contentpresenter/viewmodels/IViewModel.java | UTF-8 | 372 | 1.679688 | 2 | [] | no_license | package com.ambientbytes.contentpresenter.viewmodels;
import org.jetbrains.annotations.NotNull;
public interface IViewModel {
void Presenting(@NotNull IViewModelPresenter presenter);
void Presented(@NotNull IViewModelPresenter presenter);
void Dismissing(@NotNull IViewModelPresenter presenter);
void D... | true |
35b8229da37f7e72d3d6201a20d2a539f11559e6 | Java | Hoda-Msw/Chess.InformedSearchStrategies | /src/chess/dataStructure/State.java | UTF-8 | 1,223 | 3.15625 | 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 chess.dataStructure;
/**
*
* @author Hoda_msw
*/
public class State {
public int[][] board;
public... | true |
c0027bb68260776261eb77d0146bfb0ea1bed9cf | Java | vijaydhang/cachesynch | /CacheSynch/src/main/java/com/cachesynch/repository/PersonRepository.java | UTF-8 | 704 | 2.203125 | 2 | [] | no_license | package com.cachesynch.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.cachesynch.entity.PersonEntity;
/**
* Repository class to
* handle DB operation related to PERSON table
* @author Vijay... | true |
38e2f5f656dd521e3a508cfdd6e036376f273522 | Java | shashank17sahu/MyProject | /Ebanking/src/com/ebanking/scripts/Basic_Scripts.java | UTF-8 | 5,757 | 2.515625 | 3 | [] | no_license | package com.ebanking.scripts;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class Basic_Scripts {
public static void main(String[] args) throws InterruptedException {
String Expval="Ranfor... | true |
d49ff9693f157e495b863a8871479ce337391f97 | Java | bellmit/Codeshelf | /src/main/java/com/codeshelf/flyweight/controller/TcpServerInterface.java | UTF-8 | 7,093 | 2.28125 | 2 | [] | no_license | /*******************************************************************************
* CodeShelf
* Copyright (c) 2005-2012, Jeffrey B. Williams, All rights reserved
* $Id: TcpServerInterface.java,v 1.6 2013/03/17 19:19:13 jeffw Exp $
*******************************************************************************/
pa... | true |
40cd00f25a6241d29faeed85b3eaade64578334c | Java | AndyTQ/The-Mars-Platform | /GameCentre/app/src/main/java/fall2018/csc2017/gamecentre/games/game2048/Game2048WinningActivity.java | UTF-8 | 1,943 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package fall2018.csc2017.gamecentre.games.game2048;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import fall2018.csc2017.gamecentre.MainActivity;
import fall2018.csc2017.gamecentre.R;
/**
* A activ... | true |
bb9cddaf77c6f248b5c7a476b4ab51786146a2e4 | Java | Sergey-Gusarov/pyramaker | /src/main/java/org/svoyt/pyramaker/engine/Rectangle.java | UTF-8 | 1,607 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 Sergey Voyteshonok info@svoyt.com
*
* 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 |
0a2ec51403733fdb77afe5b3d097c0d7814da92b | Java | karlfel/Game | /src/Main.java | UTF-8 | 1,241 | 3.171875 | 3 | [] | no_license | import javax.swing.*;
import java.lang.Boolean;
// TODO: Buttons toggle, if button is clicked action should be performed
// TODO: At the bottom of the window should be displayed rolled dices and next roll
// TODO: User should be able to choose from rolled dices, which to keep and which to discard
// TODO: Three rolls ... | true |
dc6bea4f30e3951ea7b1e4c654bf3537ea2575dc | Java | bbbnam/object-book | /object4/src/Client.java | UTF-8 | 578 | 2.578125 | 3 | [] | no_license | public abstract class Client implements Paper {
private Library library = new Library("vueJS");
private Language language = new Language("kotlinJS");
private Programmer programmer;
public Library getLibrary() {
return library;
}
public void setLibrary(Library library) {
this.li... | true |
65f92ad6fd581be3b1a68d18d25e4a59ebbe4c9c | Java | rcoolboy/guilvN | /app/src/main/java/com/p118pd/sdk/AbstractC6339ill.java | UTF-8 | 1,394 | 1.8125 | 2 | [] | no_license | package com.p118pd.sdk;
/* renamed from: com.pd.sdk.ill丨 reason: invalid class name and case insensitive filesystem */
public abstract class AbstractC6339ill {
public static final char OooO00o = 'Z';
public static final char OooO0O0 = 'I';
public static final char OooO0OO = 'L';
public static final ch... | true |
742a0f28292e9aa0bd6a2728658ab0a9ef0a1f1a | Java | mkubiak164/UserProfileAndRanking | /src/main/java/com/capgemini/user/profile/and/ranking/ranking/RankingService.java | UTF-8 | 2,229 | 2.421875 | 2 | [] | no_license | package com.capgemini.user.profile.and.ranking.ranking;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.capgemini.user.profile.and.ranking.profile... | true |
99a93d1f57b6d100b8c24b724b369992817d2276 | Java | Wonwoo2/BasicJava | /T13_JavaFxTest/src/kr/or/ddit/exam3/dao/ZipDaoImpl.java | UTF-8 | 997 | 2.234375 | 2 | [] | no_license | package kr.or.ddit.exam3.dao;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.ibatis.sqlmap.client.SqlMapClient;
import kr.or.ddit.exam3.util.DBUtil;
import kr.or.ddit.exam3.vo.ZipVO;
public class ZipDaoImpl implements IZipDao{
private static IZipDao dao;
private SqlMap... | true |
0c789b601557e38b9db51bd335cf3d75f008c59a | Java | s3valkov/cooking4love | /src/main/java/org/s3valkov/cooking4love/service/CategoryService.java | UTF-8 | 428 | 1.96875 | 2 | [] | no_license | package org.s3valkov.cooking4love.service;
import org.s3valkov.cooking4love.domain.models.service.CategoryServiceModel;
import java.util.List;
public interface CategoryService {
CategoryServiceModel createCategory(CategoryServiceModel categoryServiceModel);
CategoryServiceModel findByName(String name);
... | true |
60f6547acc90c27236dc70173aa2ada5fa469b5b | Java | LiuGuoqingBeyond/JavaBaseTest | /app/src/main/java/com/uppayplugin/unionpay/javabasetest/utils/device/ByteUtils.java | UTF-8 | 2,248 | 2.96875 | 3 | [] | no_license | package com.uppayplugin.unionpay.javabasetest.utils.device;
/**
* @project:xzfpos
* @author:- Richard on 2017/11/28 16:01
* @email:zhangh@qtopay.cn
*/
public class ByteUtils {
/**
* 十六进制转二进制字符串
*
* @param bArray 十六进制字节数组
* @return
*/
public static String bytes2BinaryStr(byte[] bAr... | true |
5f6d5b98c4c2fe870c6ea3cd8c8a2f75a899c92f | Java | jackmead515/2d_game_engine | /src/main/java/com/engine/jsm/util/DrawUtil.java | UTF-8 | 225 | 2.34375 | 2 | [] | no_license | package com.engine.jsm.util;
import java.awt.*;
public class DrawUtil {
public static void drawRect(Graphics2D g2, double[] rect) {
g2.drawRect((int)rect[0], (int)rect[1], (int)rect[2], (int)rect[3]);
}
}
| true |
1454f2019db6d00f9fc14231f0ccd0affd54e2cf | Java | menonpatrick/Masters-Projects | /FCFS/src/fcfs.java | UTF-8 | 6,015 | 3.09375 | 3 | [] | no_license |
public class fcfs {
public static int process_id [] = new int [4]; // indicates the process number
public static double arrival_time [] = new double [4]; // indicates the arrival time of the respective processes
public static double burst_time [] = new double [4]; //indicates the burst time of the respective... | true |
614a05f989e27b3d6dacab832092c3adf3f90aec | Java | Pen53/RedisDistributeLock | /pen.common/src/main/java/com/mepeng/cn/pen/common/util/pinyin4j/format/ChinesePinyinVCharType.java | UTF-8 | 1,766 | 2.84375 | 3 | [] | no_license | /**
*
*/
package com.mepeng.cn.pen.common.util.pinyin4j.format;
/**
* Define the output format of character 'ü'
*
* <p>
* 'ü' is a special character of Hanyu Pinyin, which can not be simply
* represented by English letters. In Hanyu Pinyin, such characters include 'ü',
* 'üe', 'üan', and 'ün'.
*
* <p>
* ... | true |
5a4d3e4e85935f1e44505607e868ecaa66fa1fbf | Java | anddrews/InternalTraining | /xml/src/model/Place.java | UTF-8 | 951 | 3 | 3 | [] | no_license | package model;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class Place {
private String name;
private Date date;
public Place() {
this.name = "";
this.date = null;
}
public Place(String name,... | true |
6d32a42a45d1ad0405546b17ce9683f5b7179c63 | Java | aayusharyan/bakingapp | /app/src/main/java/com/aayushsinha/android/bakingapp/stepDetailActivity.java | UTF-8 | 11,350 | 1.5625 | 2 | [] | no_license | package com.aayushsinha.android.bakingapp;
import android.app.Dialog;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.Coordi... | true |
0b1b4ab3556e1b14d5add9e4ce6377c7f2d51d99 | Java | matheuscosantos/zup-bootcamp | /src/test/java/com/zup/mcos/nossobancodigital/controller/ClienteControllerTest.java | UTF-8 | 7,220 | 2.34375 | 2 | [] | no_license | package com.zup.mcos.nossobancodigital.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
im... | true |
41968320e65fe4de9cea2ca1ab83f544fbb8567f | Java | anabelgrau/additionalHigherGrade | /test/main/java/se/anabelandrola/saleProcess/integration/ItemDTOTest.java | UTF-8 | 1,948 | 2.96875 | 3 | [] | no_license | package main.java.se.anabelandrola.saleProcess.integration;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class ItemDTOTest {
private ItemDTO itemMilk;
@BeforeEach
void setUp() throws Exceptio... | true |
2be6fe4b31582e0e75fc3785c03e22c93cbdc33b | Java | NCIP/stats-application-commons | /src/gov/nih/nci/caintegrator/application/workspace/WorkspaceList.java | UTF-8 | 1,014 | 2.078125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | /*L
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/stats-application-commons/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.application.workspace;
import gov.nih.nci.caintegrator.application.lists.UserList;
import java.util.... | true |
9e6c32130c85c09e049ac98798a1a08af1a5d07d | Java | lhzheng880828/VOIPCall | /doc/libjitisi/sources/net/sf/fmj/ejmf/toolkit/util/SourcedTimerListener.java | UTF-8 | 195 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package net.sf.fmj.ejmf.toolkit.util;
import java.util.EventListener;
public interface SourcedTimerListener extends EventListener {
void timerUpdate(SourcedTimerEvent sourcedTimerEvent);
}
| true |
8795ca71b648e9eac940996fc607917ef9369fd0 | Java | anishp22/SOFE3650-Assignment2 | /Exercise1/src/Display.java | UTF-8 | 120 | 2.625 | 3 | [] | no_license | public class Display {
public void displayItem(String itemInfo){
System.out.println(itemInfo);
}
}
| true |
cdddb40f3111c47d01522a7d8e15557c041d4e8d | Java | henriquerferrer/POOP | /Sistema.java | UTF-8 | 12,259 | 2.640625 | 3 | [] | no_license | package poop;
import java.util.ArrayList;
import java.util.Collections;
/**
* Classe de Sistema que gere a lógica da plataforma
* @author JoaquimFerrer Henrique Ferrer
*/
public class Sistema {
private ArrayList<Inscricao> inscricoes;
private ArrayList<Local> locais;
private ArrayList<Pessoa> pesso... | true |
56e9f06f4cf6b02da35178422da7f901c9c49e8d | Java | xopheS/DrivingTony | /DrivingTony/src/main/java/ch/epfl/cs107/play/game/actor/general/Crate3.java | UTF-8 | 2,872 | 2.375 | 2 | [] | no_license | package ch.epfl.cs107.play.game.actor.general;
import java.awt.Color;
import ch.epfl.cs107.play.game.actor.Actor;
import ch.epfl.cs107.play.game.actor.ActorGame;
import ch.epfl.cs107.play.game.actor.GameEntity;
import ch.epfl.cs107.play.game.actor.ImageGraphics;
import ch.epfl.cs107.play.game.actor.santa.BeeMinion;
i... | true |
f66544106931c8b3100467769be0086584fd53a4 | Java | smileszx/coffeebaby | /java-design-pattern/src/test/java/com/coffee/baby/pattern/ThreadTest.java | UTF-8 | 2,835 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | package com.coffee.baby.pattern;
public class ThreadTest{
public static void main(String[] args) {
Singleton singleton=Singleton.getInstance();
System.out.println(singleton);
}
}
class Singleton {
private String str;
private static volatile Singleton singleton;//第二层锁,volatile关键字禁止指令重... | true |
b1ac20498f88718fd4a7aa44ca4dd3145f2d397a | Java | backqwe/personality-server | /personality-client/src/main/java/org/olympos/cloud/client/configuration/ApiConfig.java | UTF-8 | 813 | 1.898438 | 2 | [] | no_license | package org.olympos.cloud.client.configuration;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import java.util.concurrent.ConcurrentHashMap;
/**
* ApiConfi... | true |
e1c14b09307edcf68add21d08035ba8fc6542972 | Java | forec1/Evolutionary-Computation | /SimulatedAnnealing/src/main/java/hr/fer/zemris/optjava/dz3/tempschedule/GeometricTempSchedule.java | UTF-8 | 910 | 3.109375 | 3 | [] | no_license | package hr.fer.zemris.optjava.dz3.tempschedule;
public class GeometricTempSchedule implements ITempSchedule{
private double alpha;
private double tInitial;
private double tCurrent;
private int innerLimit;
private int outerLimit;
private int innerCnt;
private int outerCnt;
public GeometricTempSchedule(doubl... | true |
50fa559d1ac839e18ce4f3e3abd4adf324fcfed7 | Java | Anymous526/Hera | /Operation/src/main/java/com/justinmobile/bmp/pos/mina/branch/PosManagerBrancherImpl.java | UTF-8 | 1,695 | 2.125 | 2 | [] | no_license | package com.justinmobile.bmp.pos.mina.branch;
import java.lang.reflect.Method;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.justinmobile.bmp.pos.mina.dto.PosManagerDto;
import com.justinmobile.bmp.pos.mina.dto.field.Fi... | true |
61787f01cb3dd87afa442af920ef16bffbd2b37f | Java | MISAEL-HB/SoccerMatch-BackEnd | /src/main/java/com/soccermatch/SoccerMatch/repository/IMembershipsRepository.java | UTF-8 | 316 | 1.726563 | 2 | [] | no_license | package com.soccermatch.SoccerMatch.repository;
import com.soccermatch.SoccerMatch.entity.Memberships;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface IMembershipsRepository extends JpaRepository<Memberships,Integer> {
}
| true |
de6897607d56637ba837f2e529f201e5a9971299 | Java | Byron4j/CookBook | /src/main/java/org/byron4j/cookbook/netty/apidemo/serializer/SerializerAlgorithm.java | UTF-8 | 221 | 1.703125 | 2 | [
"MIT"
] | permissive | package org.byron4j.cookbook.netty.apidemo.serializer;
/**
* 定义了一系列的序列化算法
*/
public interface SerializerAlgorithm {
/**
* json 序列化标识
*/
byte JSON = 1;
}
| true |
1fdc35ff726fa6f8ed0c744a45b0ba904feafd99 | Java | liran420/MultithreadedServer | /src/edu/upenn/cis/cis455/servlets/MyHttpServletRequest.java | UTF-8 | 13,946 | 2.03125 | 2 | [] | no_license | package edu.upenn.cis.cis455.servlets;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.InetAddress;
import java.net.Socket;
import java.security.Principal;
import java.text.SimpleDateFo... | true |
b883d9efe2975a93a7c32aafe0a9d6b4d49332f0 | Java | shalmal90/shalmal | /stringun.java | UTF-8 | 668 | 3.21875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class stringun {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
System.out.println("Enter the string:");
BufferedRe... | true |
0ec1d5594c977b8998116064ad10e6bef09a191a | Java | PavelKalesnikau/JavaRushTasks | /4.JavaCollections/src/com/javarush/task/task33/task3310/Solution.java | UTF-8 | 1,957 | 3.078125 | 3 | [] | no_license | package com.javarush.task.task33.task3310;
import com.javarush.task.task33.task3310.strategy.HashMapStorageStrategy;
import com.javarush.task.task33.task3310.strategy.StorageStrategy;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
public class Solution {
public static void main(String[] a... | true |
78d69a9fce21bbac483a85966d19dda3a7f5063a | Java | Francoisleche/GouiranLinkProject | /app/src/main/java/com/gouiranlink/franois/gouiranlinkproject/InsciptionConnexion/SignUp.java | UTF-8 | 8,560 | 2.09375 | 2 | [] | no_license | package com.gouiranlink.franois.gouiranlinkproject.InsciptionConnexion;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
im... | true |
026b7f6109b42ee3b938be57700605e8bc95fd9d | Java | JacksSparr0w/JWDTasks | /JWDModuleOne/src/main/java/com/katsubo/repository/Repository.java | UTF-8 | 635 | 2.265625 | 2 | [] | no_license | package com.katsubo.repository;
import com.katsubo.repository.sort.SortBy;
import com.katsubo.repository.specification.Specification;
import java.util.List;
import java.util.Optional;
public interface Repository<T> {
int getMinAge();
void setMinAge(int minAge);
int getMaxAge();
void setMaxAge(int... | true |
002c2d8f2c33da578f7a0f20c7bab4adf4e1e3e7 | Java | elambert/honeycomb | /emulator/src/java/com/sun/honeycomb/config/ClusterProperties.java | WINDOWS-1252 | 5,500 | 2.171875 | 2 | [] | no_license | /*
* Copyright 2008, Sun Microsystems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the fo... | true |
6b4a4f218346808323d463ee5385c9da90b9ca35 | Java | saicyc/h5ds | /src/main/java/com/chinait/service/impl/TemplateServiceImpl.java | UTF-8 | 4,016 | 2.078125 | 2 | [] | no_license | package com.chinait.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import or... | true |
3b7c02a62c1c7d5fd78202d7c97f5c0a015a7ad6 | Java | saschaszott/hrs | /src/test/java/de/wvv/web/rest/EmployeeStyleResourceIT.java | UTF-8 | 8,645 | 2.3125 | 2 | [] | no_license | package de.wvv.web.rest;
import de.wvv.WirvsvirusApp;
import de.wvv.domain.EmployeeStyle;
import de.wvv.repository.EmployeeStyleRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.au... | true |
26bb4ad5a5be937029c41f8572d5a6cf2154b55f | Java | RaonAsa/wingko | /wingko_basic/src/main/java/com/wingko/story/domain/Ripple.java | UTF-8 | 3,194 | 2.09375 | 2 | [] | no_license | /*
* @(#)Ripple.java 2013. 8. 6.
*
* Copyright 2013 Wingko All rights reserved.
*/
package com.wingko.story.domain;
/**
* Reply 관리 VO
*
* @author yshsy
* @version 1.0, 2013. 8. 6.
*/
public class Ripple extends Page {
private int no;
private int parent_no;
private String parent_code; /... | true |
064639a059d72eef0962de3c192a59bd9b2d3432 | Java | Francis-Zheng/brand-report-backend | /src/main/java/io/github/packagewjx/brandreportbackend/service/BaseService.java | UTF-8 | 1,731 | 2.6875 | 3 | [] | no_license | package io.github.packagewjx.brandreportbackend.service;
import java.util.Optional;
/**
* @author Junxian Wu
* <p>
* 实体访问服务
*/
public interface BaseService<T, ID> {
/**
* 保存给定实体
* <p>
* 若实体是新的实体,没有之前的ID,则是插入新的实体,且返回的实体中包含新的ID。
* 若实体拥有ID,则更新数据库中对应的实体。
*
* @param val 新数据
* @re... | true |
5b34d331251ded7c616f76e5d4068a328688752c | Java | SciGaP/seagrid-rich-client | /src/main/java/nanocad/minimize/uff/opbterm.java | UTF-8 | 6,403 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /******************************************
*opbterm.java -- nanocad
*Andrew Knox 06/25/01
*implements out of plane angle bend term
******************************************/
package nanocad.minimize.uff;
import java.lang.Math;
import java.util.Vector;
import nanocad.atom;
import nanocad.bond;
import nanocad.te... | true |
a7942b9ef840555e29533a507826ab806ac671c5 | Java | mjnjust/Designmode | /src/package6/OldUser.java | UTF-8 | 625 | 2.765625 | 3 | [] | no_license | package package6;
public class OldUser implements IOldUserInfo{
private String name ;
private int age ;
private String address ;
private int workyears ;
public OldUser(String name,int age,String address,int workyears) {
this.name = name ;
this.age = age ;
this.address =address ;
this.workye... | true |
1b001946ca91d5b3de0d3811587ac88a38397da8 | Java | Sensetivity/vdl | /src/main/java/com/github/engatec/vdl/model/preferences/wrapper/ConfigItemWrapper.java | UTF-8 | 631 | 2.1875 | 2 | [] | no_license | package com.github.engatec.vdl.model.preferences.wrapper;
import com.github.engatec.vdl.core.preferences.ConfigManager;
import com.github.engatec.vdl.model.preferences.ConfigItem;
public abstract class ConfigItemWrapper<P, V> {
protected abstract ConfigItem<V> getConfigItem();
public abstract P getProperty(... | true |
4bd5495e7a73515f6aa2aff760d26eebbccd0c6d | Java | naralycamachoacevedo/NaralyRetosG42 | /RETO1/src/reto1/Reto1_PersonClass.java | UTF-8 | 4,069 | 3.453125 | 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 reto1;
/**
*
* @author naral
*/
public class Reto1_PersonClass {
//1.Declarar las variables globales ... | true |