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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b18f2280415e01bf8a7163efc57666f68e0bdebe | Java | devlopper/org.cyk.utility | /jee-utility-client-controller-web-jsf-primefaces-playground-common/src/main/java/org/cyk/utility/client/controller/entities/verycomplexentity/VeryComplexEntity.java | UTF-8 | 2,530 | 1.976563 | 2 | [] | no_license | package org.cyk.utility.client.controller.entities.verycomplexentity;
import java.util.Collection;
import org.cyk.utility.client.controller.data.DataIdentifiedByStringAndCoded;
public interface VeryComplexEntity extends DataIdentifiedByStringAndCoded {
@Override VeryComplexEntity setIdentifier(Object identifier);
... | true |
9da022aecb84e3d9d61fb8b347e946b332c86fcc | Java | mateusz-spychaj/smartKill-app | /SmartKill/src/pl/pwr/smartkill/activities/LoginActivity.java | UTF-8 | 4,042 | 2.234375 | 2 | [] | no_license | package pl.pwr.smartkill.activities;
import java.util.HashMap;
import pl.pwr.smartkill.R;
import pl.pwr.smartkill.SKApplication;
import pl.pwr.smartkill.obj.Login;
import pl.pwr.smartkill.tools.PreferencesHelper_;
import pl.pwr.smartkill.tools.WebserviceHandler;
import pl.pwr.smartkill.tools.httpRequests.Htt... | true |
243c679b2010688ea723b67d52c880bf64cb0786 | Java | hsav/simple-chess-front | /src/test/java/com/lowbudget/chess/front/swing/SwingEnginePlayerDialogsTest.java | UTF-8 | 8,931 | 1.914063 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2018 Charalampos Savvidis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... | true |
41001ee2c6af749a621f9bfe13eab809c468aeec | Java | ggam1989/ITBANK-MainProject | /src/dao/ProductDao.java | UTF-8 | 1,183 | 1.96875 | 2 | [] | no_license | package dao;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class ProductDao{
@Autowired
SqlSessionTemplate sqlsessionTemplate;
String mapper=... | true |
599dd03311d8ed729629f3d107a178315aac8f8a | Java | venanciolm/aurius | /aurius-hibernate/src/main/java/com/farmafene/commons/hibernate/generators/old/SubSequenceTableGenerator.java | UTF-8 | 16,747 | 1.570313 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2009-2014 farmafene.com
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitati... | true |
c4f37e33365491601153b518fb6372550b6fc254 | Java | lcolodete/jpa-ejb3_course | /JPA/Exercicio19-Lance-Bem-Sucedido/src/exercicio19/produto/ProdutoAppService.java | ISO-8859-1 | 3,489 | 2.984375 | 3 | [] | no_license | package exercicio19.produto;
import java.util.List;
import java.util.Set;
import exercicio19.controleDao.FabricaDeDao;
import exercicio19.controleTransacao.Transacional;
import exercicio19.lance.Lance;
import exercicio19.util.AplicacaoException;
import exercicio19.util.ObjetoNaoEncontradoException;
public class Prod... | true |
60a37e00b7df0b37ee05f4306a212bb34452a9df | Java | Hdm980129/DragonArmourersCrack | /src/dacrack/CrackProxySelector.java | UTF-8 | 881 | 2.5625 | 3 | [
"WTFPL"
] | permissive | package dacrack;
import java.io.IOException;
import java.net.*;
import java.util.Collections;
import java.util.List;
public class CrackProxySelector extends ProxySelector {
private final ProxySelector defaultSelector = ProxySelector.getDefault();
@Override
public List<Proxy> select(URI uri) {
if ... | true |
4bbd6b37e8a22b59477800e221fb048ca15a65cf | Java | Perrysk7/12U-Assignment01 | /src/A1Q10.java | UTF-8 | 1,255 | 3.859375 | 4 | [] | no_license |
import java.util.Scanner;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Parry Katodia
*/
public class A1Q10 {
/**
* @param args the c... | true |
ac45962a5ee3ed2a561170af98873e096e03423b | Java | potatosaladz/javagraphalgorithms | /src/model/graph/WeightedGraph.java | UTF-8 | 2,881 | 3.015625 | 3 | [] | no_license | package model.graph;
import java.util.Vector;
import model.GraphADT;
public class WeightedGraph extends GraphADT {
private int costs[][];
public WeightedGraph(boolean directed) {
numVertices = 0;
weighted = true;
this.directed = directed;
}
public WeightedGr... | true |
f689153a8267d045c462092a788494ce9f978910 | Java | SunGitShine/tgm-server | /biz/waybill/src/main/java/com/juma/tgm/waybillStatistics/service/impl/CustomerManagerStatisticsServiceImpl.java | UTF-8 | 3,281 | 2.15625 | 2 | [] | no_license | package com.juma.tgm.waybillStatistics.service.impl;
import com.giants.common.exception.BusinessException;
import com.juma.tgm.customer.domain.vo.ScatteredCustomerVo;
import com.juma.tgm.waybill.domain.vo.WaybillStatisticsParamVo;
import com.juma.tgm.waybillStatistics.dao.WaybillStatisticsDao;
import com.juma.tgm.wayb... | true |
e44dd87b2013979690e29ca300360b1b386f3296 | Java | codekrolik/Werk | /WerkREST/src/main/java/org/werk/rest/WerkREST.java | UTF-8 | 14,538 | 1.765625 | 2 | [
"MIT"
] | permissive | package org.werk.rest;
import java.util.Optional;
import org.apache.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONObject;
import org.pillar.time.interfaces.TimeProvider;
import org.werk.engine.JobIdSerializer;
import org.werk.meta.JobInitInfo;
import org.werk.meta.JobRestartInfo;
import org.werk.meta.J... | true |
3267c003abb6c0d22937204c2b6d09ede3387063 | Java | glier/JavaRush | /3.JavaMultithreading/src/com/javarush/task/task24/task2413/Ball.java | UTF-8 | 1,213 | 3.234375 | 3 | [] | no_license | package com.javarush.task.task24.task2413;
/**
* Created by Илья Борозденец on 28.06.2017.
*/
public class Ball extends BaseObject {
private double speed, direction, dx, dy;
private boolean isFrozen;
public Ball(double x, double y, double speed, double direction) {
super(x, y, 1);
this.s... | true |
f20d2f58a46b596f5f193eac11faf1e03d1bf61d | Java | Veronicattie/YueDong | /src/com/hch/yuedong/ui/BaseActivity.java | UTF-8 | 983 | 2.234375 | 2 | [] | no_license | package com.hch.yuedong.ui;
import com.hch.yuedong.util.FontUtil;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
public class BaseActivity extends Activity{
private ProgressDialog dialog;
public FontUtil fontUtil;
@Override
protected void onCreate(Bundle savedInsta... | true |
593dba1da1e4e77d3ce403b26d30826a391f8022 | Java | arcmole007/Simulator-Mouse-And-Cat | /src/Cat.java | UTF-8 | 2,355 | 2.75 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.util.Random;
public class Cat extends GameObject {
Handler handler;
private BufferedImage catImage;
private int dumb = 0;
private int smart = 1;
private int state = dumb;
... | true |
1fb7ca47dfac66ec989cdbc6091589cc740bcd3d | Java | CSNetSurfers/DSA | /RealEstate/src/org/realEstate/RealEstate.java | UTF-8 | 20,607 | 2.40625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.realEstate;
import java.io.IOException;
/**
*
* @author user
*/
public class RealEstate extends javax.swing.JFrame {
/**
* Creates new form RealEstate
*/
public RealEstate() {
... | true |
6cab012406852deafc8fe3f21337f069b53d416a | Java | Product/NotificationListener | /app/src/main/java/com/avater/mymusicapplication/CallSMSInfo.java | UTF-8 | 1,050 | 2.640625 | 3 | [] | no_license | package com.avater.mymusicapplication;
/**
* 作者:hsh
* 日期:2017/4/20
* 说明:
*/
public class CallSMSInfo {
public String name; // 姓名
public String phoneNo; // 电话... | true |
94edd0a1ef2852d9052ae71cc7c144e52d171ba3 | Java | vortexwolf/2ch-Browser | /app/src/main/java/ua/in/quireg/chan/models/presentation/ThreadItemViewModel.java | UTF-8 | 3,802 | 2.234375 | 2 | [
"MIT"
] | permissive | package ua.in.quireg.chan.models.presentation;
import android.content.res.Resources.Theme;
import android.text.SpannableStringBuilder;
import ua.in.quireg.chan.common.utils.HtmlUtils;
import ua.in.quireg.chan.common.utils.StringUtils;
import ua.in.quireg.chan.common.utils.ThreadPostUtils;
import ua.in.quireg.chan.int... | true |
323fe86bc2f4c3ec62506006bc23ff412b4551d0 | Java | ronwalf/swoop | /src/org/mindswap/swoop/utils/rdfapi/XMLWriter.java | UTF-8 | 1,247 | 2.109375 | 2 | [] | no_license | /*
* Created on Mar 28, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.mindswap.swoop.utils.rdfapi;
import java.io.IOException;
import java.net.URI;
/**
* @author ronwalf
*
* XML Writer interface. Provide basic fun... | true |
0498757d974d58fb7233cd7309d71eca31e00f3a | Java | toymachine2984/patApp | /src/main/java/app/comp/util/AuditorAwareImpl.java | UTF-8 | 753 | 2.15625 | 2 | [] | no_license | package app.comp.util;
import app.comp.entity.system.User;
import org.springframework.data.domain.AuditorAware;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import java.util.Optional;
public class AuditorAwareImpl implements Auditor... | true |
4f901ce17f2f276b7a388a7288bd8d68840d9826 | Java | VeriBlock/alt-integration | /alt-integration-adapter-java/src/main/java/org/veriblock/protoconverters/MerklePathProtoConverter.java | UTF-8 | 1,134 | 2.078125 | 2 | [
"MIT"
] | permissive | // VeriBlock Blockchain Project
// Copyright 2017-2018 VeriBlock, Inc
// Copyright 2018-2021 Xenios SEZC
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
package org.veriblock.... | true |
0d5923851e61b1e9e4c8d6bd87efe5cf939c4912 | Java | robinbakkeruseasymda/EasyMda-BeanmapperCartridge | /flca.mda.test.beanmapper/src/main/java/nl/apg/util/mapper/AbstractTestBeanMapper.java | UTF-8 | 4,429 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package nl.apg.util.mapper;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.... | true |
16ba6f17fa6f87839dfa70a73fef2d6b61785b18 | Java | Angad5105/FixIn-Android | /app/src/main/java/com/example/fixin/Person.java | UTF-8 | 950 | 1.960938 | 2 | [] | no_license | package com.example.fixin;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class Person extends AppCompatActivity {
TextView textView13;
@Override
... | true |
20bee9960a4b835a83b8b1d6d47138bbad77d37b | Java | benwrk/Oishi | /app/src/main/java/co/bwsc/oishi/model/Recipe.java | UTF-8 | 3,447 | 2.546875 | 3 | [] | no_license | //package co.bwsc.oishi.model;
//
//import java.util.List;
//
///**
// * Created by Ben on 5/24/2017.
// */
//
//public class Recipe {
//// var uri: String,
//// var label: String,
//// var image: String,
//// var source: String,
//// var url: String,
//// var dietLabels: List<String>,
//// var hea... | true |
17a7a01e65f77ecb41a433fdf5b4a91ed5374352 | Java | harshisirohi/Bank-Application | /BankingSystem/src/com/cg/bs/service/LoginServiceImpl.java | UTF-8 | 2,257 | 2.796875 | 3 | [] | no_license | package com.cg.bs.service;
import java.util.Scanner;
import com.cg.bs.dao.LoginDao;
import com.cg.bs.dao.LoginDaoImpl;
public class LoginServiceImpl implements LoginService {
LoginDao ldao = new LoginDaoImpl();
Scanner sc = new Scanner(System.in);
@Override
public boolean verifyCredentials(int username, String ... | true |
5c39c3af8f462212ee7cb9f656ad8cd79bed6fc1 | Java | Yufeng0918/java-interview | /src/main/java/com/yufeng/interview/collectionquestion/S03_HashMap.java | UTF-8 | 712 | 3.140625 | 3 | [] | no_license | package com.yufeng.interview.collectionquestion;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.IntStream;
public class S03_HashMap {
public static void main(String[] args) {
hashMapNotSafe();
}
public static void hashMapNotSaf... | true |
41d78c006ba6947f8a1d4890c3c3deb33d245e16 | Java | ikoseoglu5461/Java | /src/com/class22/Dog1.java | UTF-8 | 423 | 3.46875 | 3 | [] | no_license | package com.class22;
public class Dog1 extends Animal {
public static void main(String[] args) {
Dog1 dogObject = new Dog1();
System.out.println("Dog 1 breed is " + dogObject.breed);
System.out.println("Dog 1 body color is " + dogObject.bodyColor);
System.out.println("Is dog 1 " + dogObject.papy + " papy"... | true |
3bf50041615bc7906989ebabe9f8f6ff3d6ebb5a | Java | SavithaSwaroop/UsersListView | /app/src/main/java/com/example/userslistview/server/ApiInterface.java | UTF-8 | 545 | 2.03125 | 2 | [] | no_license | package com.example.userslistview.server;
import com.example.userslistview.model.Photos;
import com.example.userslistview.model.User;
import java.util.ArrayList;
import retrofit2.Call;
import retrofit2.http.GET;
public interface ApiInterface {
//Server URL
String BASE_URL = "https://jsonplaceholder.typi... | true |
ab71799c67c7a70aa302ce7570d23b085c692532 | Java | dvdprr6/SensorApp | /app/src/main/java/com/example/david/sensorapp/Accelerometer.java | UTF-8 | 1,941 | 2.453125 | 2 | [] | no_license | package com.example.david.sensorapp;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.Te... | true |
d4cf427dea71cf90c7dc9514dfe2887a25d9df4e | Java | cloudtrends/scaffold-shell | /java-sourcecode-analyzer/test/test_me.java | UTF-8 | 259 | 2.09375 | 2 | [] | no_license |
public String abc=
hehe +
"bla bla";
private void wrap_line(String a, String b,
String c , String d
hehe,
){
String abc=
hehe +
"bla bla";
if ( a+b >
c+d){
log.log(ab,cd
efg);
}
}
public void abc(){
}
| true |
4c748f9a0f641dfd160524bb1ec9cb1b000d0704 | Java | ChoiSJ/spring_study | /demo1/src/main/java/com/example/sample1/OperatorApp2.java | UTF-8 | 917 | 3.015625 | 3 | [] | no_license | package com.example.sample1;
import org.springframework.context.support.GenericXmlApplicationContext;
public class OperatorApp2 {
public static void main(String[] args) {
String resources = "classpath:/com/example/sample1/bean.xml";
// 1. 스프링 컨테이너를 생성한다.
// 2. 스프링 빈 설정 파일을 읽는다.
// 3. 스프링 빈 설정 파일에 정의된... | true |
e73a9dfad009482abcbf1bf68e9623add2221aef | Java | KaptainK1/GradeBook | /src/com/dylanhoffman/compsci316/model/file_processing/ProcessStudentFile.java | UTF-8 | 693 | 2.890625 | 3 | [] | no_license | package src.com.dylanhoffman.compsci316.model.file_processing;
import src.com.dylanhoffman.compsci316.model.Student;
import java.sql.SQLException;
public class ProcessStudentFile implements ProcessFile{
@Override
public void processFile(String[] values) throws SQLException {
//set the id to the firs... | true |
10afa45d1fbd509645d32857fe7cb98c1235e616 | Java | endeavourhealth/Transforms | /src/main/java/org/endeavourhealth/transform/homertonhi/transforms/PersonLanguageTransformer.java | UTF-8 | 4,155 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package org.endeavourhealth.transform.homertonhi.transforms;
import org.endeavourhealth.transform.common.AbstractCsvParser;
import org.endeavourhealth.transform.common.CsvCell;
import org.endeavourhealth.transform.common.FhirResourceFiler;
import org.endeavourhealth.transform.common.ParserI;
import org.endeavourhealth... | true |
8abb62f691643ef1c18163f62ebd2746959ead53 | Java | GENLabo/GEN_04_Refactoring | /src/main/java/ch/heigvd/gen2019/Order.java | UTF-8 | 927 | 3.234375 | 3 | [] | no_license | package ch.heigvd.gen2019;
import java.util.ArrayList;
import java.util.List;
public class Order {
private List<Product> products = new ArrayList<Product>();
private int id;
public Order(int id) {
this.id = id;
}
/**
* Simple id getter
* @return the Order's id
*/
publi... | true |
66ac6ddbb116267fc65cd1442041c811329ab6c1 | Java | hhu94/SynapseWebClient | /src/main/java/org/sagebionetworks/web/client/widget/table/v2/results/facets/FacetColumnResultDateRangeView.java | UTF-8 | 497 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package org.sagebionetworks.web.client.widget.table.v2.results.facets;
import java.util.Date;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
public interface FacetColumnResultDateRangeView extends IsWidget {
public interface Presenter {
void onFacetChange();
}
void s... | true |
227b98d7dd28e466e320c7f1c947176de8af4c12 | Java | kevincentius/spring-di-abstract-generic-problem | /spring-test/src/main/springtest/X.java | UTF-8 | 533 | 2.140625 | 2 | [] | no_license | package main.springtest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope(ConfigurableBeanFactory.SCOPE... | true |
e167d529f0fa1711c143007a9dd41901a012f689 | Java | kirval/it_academy_java_core | /src/lecture/week3/classes/example/example1/Box.java | UTF-8 | 284 | 2.71875 | 3 | [] | no_license | package lecture.week3.classes.example.example1;
public class Box {
private String test = "stroka";
public String getTest() {
return test;
}
public void setTest(String test) {
if (test.length() < 6){
this.test = test;
}
}
}
| true |
8752937c3138ab0794274cc409cee9b75cc506c5 | Java | iskandarshabaev/reader4pda | /app/src/main/java/com/ishabaev/reader4pda/views/PostsRecyclerViewAdapter.java | UTF-8 | 3,506 | 2.203125 | 2 | [] | no_license | package com.ishabaev.reader4pda.views;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
im... | true |
88bb84a1740b035520f82867ca3be94d1531dde4 | Java | kostaPeu/Spring | /springERP/src/main/java/erp/basic/service/BasicProductService.java | UTF-8 | 892 | 1.820313 | 2 | [] | no_license | package erp.basic.service;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import erp.basic.domain.ListModelProduct;
import erp.basic.domain.Product;
import erp.basic.domain.ProductGroup;
import erp.basic.domain.Standards;
import erp.pch.domain.GetCustomer;
public interface BasicPr... | true |
d7d58c7a9f912ec8187879df9e362679a80bf422 | Java | ShashidharaKR/krspro | /app/src/main/java/com/example/user/advocate/activities/Advocate_Profile.java | UTF-8 | 8,347 | 1.921875 | 2 | [] | no_license | package com.example.user.advocate.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import andr... | true |
335d309f302f9199bd96df4390f9e598822934ac | Java | serhiizem/jlearning | /jwt-starter/src/main/java/jlearning/jwt/config/JwtConfig.java | UTF-8 | 1,736 | 2.25 | 2 | [] | no_license | package jlearning.jwt.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.security.oauth2.provider.token.TokenEnhancer;
import org.springframework.security.oauth2.provid... | true |
7ec66015de2faf194a00183deb9f386c1f842a4c | Java | mskrepository/gitmaster | /DemoJava/src/com/capg/collections/Account1.java | UTF-8 | 855 | 3.078125 | 3 | [] | no_license | package com.capg.collections;
import java.util.*;
//int acctno, float balance, float roi
//create a list of 5 accounts... store it in ArrayList
//Present account number and its balance(store it in map as key value pair)
//based on accno we will search for account details
public class Account1 {
public static void ... | true |
b02ef6ae8ab1bd1290422409a1033cef8998eca5 | Java | melpar/animation_meteo | /gestionPrevision/src/carteFX/densite/AffichageFleches.java | ISO-8859-1 | 2,013 | 2.484375 | 2 | [] | no_license | package carteFX.densite;
import org.geotools.geometry.jts.ReferencedEnvelope;
import carte.AfficherFleches;
import previsionVents.FacadePrevisionVents;
import previsionVents.ListePrevision;
public class AffichageFleches {
public static void miseAJour(ReferencedEnvelope envelope) {
double newMinX = ... | true |
bec410e76d36f73cbdab6584da953e0ce7c992d6 | Java | lmarango/JV-PrincipiosSOLID | /Documents/NetBeansProjects/parking/src/main/java/co/edu/unicauca/parkinglot/domain/MotoParkingCost.java | UTF-8 | 2,866 | 3.28125 | 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 co.edu.unicauca.parkinglot.domain;
import java.time.LocalDateTime;
/**
* Clase que implementa la interfaz pública IparkingCo... | true |
f814b5ccb057bee82b05774a069ddccd4b82fbd0 | Java | kavyas92/assignments | /Pascaru S. Cosmina Roxana/Polynomials Assignment 1/polynomials/src/main/Tokens.java | UTF-8 | 986 | 3.609375 | 4 | [] | no_license | package main;
import java.util.StringTokenizer;
/**
* Used to separate the input string given by the user into tokens that are then
* used to recreate polynomials
*
* @author Cosmina
*
*/
public class Tokens {
private String string;
private int[] coeff;
private int[] power;
private StringTokenizer strTo... | true |
83cd20cefe5147de326c07be66f6915e4edd80a5 | Java | qq379673328/transformer | /src/main/java/cn/com/sinosoft/bomsmgr/entity/ge/TBizFilesExample.java | UTF-8 | 23,623 | 2.171875 | 2 | [] | no_license | package cn.com.sinosoft.bomsmgr.entity.ge;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TBizFilesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TBizFilesExample() {
oredCriteria = ... | true |
c5723f7c81038e1887d93965187c218c90fbd41b | Java | joubertvasc/remotetracker | /utils/src/main/java/jv/android/utils/calendar/CalendarReminder.java | UTF-8 | 488 | 2.59375 | 3 | [] | no_license | package jv.android.utils.calendar;
import android.provider.CalendarContract;
public class CalendarReminder {
private int method;
private int minutes;
public CalendarReminder() {
method = CalendarContract.Reminders.METHOD_ALARM;
minutes = 0;
}
public int getMethod() {
return method;
}
public void set... | true |
7f2e91bea30b4bd87601896b9f439be1cb7bdf1b | Java | paulzeng/qmyd | /Qmyd/src/com/ak/qmyd/fragment/FindFragment.java | GB18030 | 10,958 | 1.578125 | 2 | [] | no_license | package com.ak.qmyd.fragment;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
impo... | true |
88e42a281d00013b9a1395eb7ed6c7fecf8b348c | Java | mrf00ntan/java_example | /src/main/java/kz/webdogovor/repository/RoleRepository.java | UTF-8 | 338 | 1.96875 | 2 | [] | no_license | package kz.webdogovor.repository;
import kz.webdogovor.model.SpravRole;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Set;
public interface RoleRepository extends JpaRepository<SpravRole, Long> {
SpravRole findSpravRoleByRoleId(Long id);
Set<SpravRole> findAllByRoleIdIsGreate... | true |
1e40cd0e7c2d7712a4effd4af7f0d4a283e8a6b0 | Java | sshrem/DisignStudioServices | /ProjectServices/src/main/java/com/disignstudio/project/db/bean/RFFeature.java | UTF-8 | 935 | 2.203125 | 2 | [] | no_license | package com.disignstudio.project.db.bean;
/**
* Created by ohadbenporat on 2/8/16.
*/
public class RFFeature {
private long id;
private String code;
private String nameEN;
private String nameHE;
public RFFeature(long id, String code, String nameEN, String nameHE) {
this.id = id;
... | true |
ebbab46370bc7c3267346d9edac28370f9693133 | Java | andredami/swimv2-bassi-damiani | /SWIM Back End/src/it/polimi/ingsw2/swim/admin/AddNewAdminServlet.java | UTF-8 | 3,739 | 2.484375 | 2 | [] | no_license | package it.polimi.ingsw2.swim.admin;
import it.polimi.ingsw2.swim.exceptions.DuplicateAdministratorException;
import it.polimi.ingsw2.swim.exceptions.InvalidDataException;
import it.polimi.ingsw2.swim.session.remote.AdministrationProfileManagerRemote;
import java.io.IOException;
import javax.naming.InitialCont... | true |
ecfcaadf7ae2bad62d0b540ae6680c69d255bf33 | Java | MashiW/TranslatorLogApp | /src/test/java/mytranslator/Test2.java | UTF-8 | 869 | 2.40625 | 2 | [] | no_license | package mytranslator;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
* Created by hsenid on 3/29/16.
*/
public class Test2 {
/*@BeforeClass
public void oneTimeSetUp() {
System.out.println("@BeforeClass: The annotated... | true |
988640e83628ec7fc7f5ebc7d55a55cba53e515e | Java | smillet71/JavaDevs | /src/stm/dev/game/modules/CommandModule.java | UTF-8 | 299 | 2.140625 | 2 | [
"MIT"
] | permissive | package stm.dev.game.modules;
import stm.dev.game.objects.Module;
import stm.dev.game.objects.Node;
/**
* Module de commandement
* @author smill
*
*/
public class CommandModule extends Module {
public CommandModule(Node n) {
super(n);
setConnectionNeeds(true, true, false, false);
}
}
| true |
95713bafe25ed091494daee97d851532c1cdb9b5 | Java | heyuhang/java | /电子仓库管理系统-2013-3/base/src/com/hyh/service/GoodsBrandServlet.java | UTF-8 | 6,800 | 2.390625 | 2 | [] | no_license | package com.hyh.service;
/*
* 品牌 管理
* @author hyh(heyuhang521@gmail.com)
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... | true |
536491780ef0823501fafe473f98614dbfe7909f | Java | EBISPOT/goci | /goci-data-services/goci-association-upload-services/src/main/java/uk/ac/ebi/spot/goci/service/SheetProcessorImpl.java | UTF-8 | 10,268 | 2.234375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package uk.ac.ebi.spot.goci.service;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ann... | true |
c55b2d0f853c1d289814b1183ea28072d85b508a | Java | brionmario/spring-boot-assignment | /src/main/java/lk/brionSilva/spring/boot/assignment/service/PaymentService.java | UTF-8 | 399 | 1.953125 | 2 | [
"MIT"
] | permissive | package lk.brionSilva.spring.boot.assignment.service;
import lk.brionSilva.spring.boot.assignment.model.Payment;
import java.util.Date;
public interface PaymentService {
Iterable<Payment> getAllPayments();
Iterable<Payment> filterPaymentsByAccountIdAndDate(Integer accountId, Date startDate, Date endDate);
... | true |
57b28190e566915140061e0b9fc742d5597425b8 | Java | moutainhigh/zhxh | /src/java/net/ussoft/zhxh/dao/impl/PublicUserBrandDaoImpl.java | UTF-8 | 425 | 1.882813 | 2 | [] | no_license | package net.ussoft.zhxh.dao.impl;
import org.springframework.stereotype.Repository;
import net.ussoft.zhxh.dao.PublicUserBrandDao;
import net.ussoft.zhxh.model.Public_user_brand;
@Repository("publicUserBrandDao")
public class PublicUserBrandDaoImpl extends BaseDaoMysqlImpl<Public_user_brand, String> implemen... | true |
5a4a811f5f1f1ded13949aa2e5039e11e4ce9815 | Java | homefront16/DiceRoller | /app/src/main/java/com/example/diceroller/MainActivity.java | UTF-8 | 3,088 | 2.71875 | 3 | [] | no_license | package com.example.diceroller;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Random;
public class MainActivity extends AppCompatActivity {
Butt... | true |
1a4d974505a1c2ccb28dcb9b56020b4d74b637a3 | Java | fzcheng/walker-system | /flow/com/walkersoft/flow/actor/DepartmentFixActor.java | UTF-8 | 2,433 | 2.234375 | 2 | [] | no_license | package com.walkersoft.flow.actor;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.walker.flow.core.actor.AbstractBaseActor;
import com.walker.flow.core.actor.SelectScopeAndFixActor;
import com.walker.flow.core.actor.node.AbstractA... | true |
b7949e54d8b937a883fc08cef103f2227f1fda03 | Java | leemh0131/First_Project | /project01/src/main/java/com/myproject/service/MemberServiceimpl.java | UTF-8 | 2,743 | 2.34375 | 2 | [] | no_license | package com.myproject.service;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import com.myproject.dao.MemberDAO;
import com.myproject.domain.MemberVO;
import lombok.extern.java.Log;
@Log
@Service
public class MemberServiceimpl implements MemberService {
@Inject
MemberDAO memberDA... | true |
793bf5b17b75e123c1cdcb75b15e12aac4b7b6a9 | Java | amir2202/MathDokuGUI | /MathDoku2/src/AllSolutions.java | UTF-8 | 3,339 | 2.8125 | 3 | [] | no_license | import java.util.ArrayList;
import javafx.concurrent.Task;
import javafx.concurrent.WorkerStateEvent;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene... | true |
b99bf9744e12f559a6c16fde55c8871498655d08 | Java | brising6/gradebook | /src/test/java/gradebook/model/ClassTest.java | UTF-8 | 726 | 2.921875 | 3 | [] | no_license | package gradebook.model;
import static org.junit.Assert.*;
import org.junit.*;
public class ClassTest {
Class summer2013;
Class fall2013;
@Before
public void setUp() {
summer2013 = new Class(2013, 3, null);
summer2013.addSection(new Section(null, "A1"));
fall2013 = new Class(2013, 1, null);
fall2013.add... | true |
c9e97eab2afb140399ccd1af1e9ec9b091d6cab9 | Java | vladimir-kostin/private | /LogicGamesSolver/src/main/com/vkostin/puzzle/kakuro/TaskCell.java | UTF-8 | 1,143 | 2.953125 | 3 | [] | no_license | package com.vkostin.puzzle.kakuro;
import com.vkostin.common.Cell;
import java.util.Objects;
class TaskCell implements Cell {
final private int sumOfValuesBelow;
final private int sumOfValuesOnTheRight;
public TaskCell(int sumOfValuesBelow, int sumOfValuesOnTheRight) {
this.sumOfValuesBelow = sumOfValuesB... | true |
bf2e57cd38b3facbad0f2d1834344d3474a5eeed | Java | yynlove/sjms | /src/cs/copy.java | UTF-8 | 5,062 | 3.34375 | 3 | [] | no_license | package cs;
public class copy {
public static void main(String[] args) throws CloneNotSupportedException {
qiankaobei();
//深拷贝1 使用clone
shenkaobei_1();
//深拷贝2 使用构造方法
shenkaobei_2();
}
/**
* 深拷贝
*/
private static void shenkaobei_2() {
final ... | true |
c6f6044ec052b3062652436f6ba307001f194833 | Java | vmarcinko/cascading-wordcount | /src/main/java/vmarcinko/cascading/wordcount/WordCount.java | UTF-8 | 3,958 | 2.234375 | 2 | [] | no_license | package vmarcinko.cascading.wordcount;
import cascading.flow.Flow;
import cascading.flow.FlowDef;
import cascading.flow.FlowStep;
import cascading.flow.FlowStepStrategy;
import cascading.flow.hadoop2.Hadoop2MR1FlowConnector;
import cascading.operation.regex.RegexSplitGenerator;
import cascading.pipe.Each;
import casca... | true |
75ffd615ccf6bca6f8b1dff755f65cc107181340 | Java | Vitersh/JAVA | /Cambio_Cupo_CCLV/src/main/java/com/bice/cambio_cupo_cclv/config/MvcConfig.java | UTF-8 | 956 | 2.125 | 2 | [] | no_license | package com.bice.cambio_cupo_cclv.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
@Config... | true |
bf6c91186f0c7cb4aefe82b827757c3b1e31b5b6 | Java | pradeepnarava/Hotel | /src/com/brill/hotel/AdminReg.java | UTF-8 | 3,430 | 2.046875 | 2 | [] | no_license | package com.brill.hotel;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import andr... | true |
bbad0cfa98a4430cd503d6ed9d4681fac68db300 | Java | navikt/eessi-DataMigrationTool | /importer/src/main/java/eu/ec/dgempl/eessi/rina/tool/migration/buc/receiveaction/X013ReceiveActionProducer.java | UTF-8 | 4,091 | 1.914063 | 2 | [] | no_license | package eu.ec.dgempl.eessi.rina.tool.migration.buc.receiveaction;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | true |
04fa8ccc3a3ce4411aac5ceb7c57ba6ec6b81894 | Java | hopchik89/JavaBatch9 | /src/class28/abstraction/Parent.java | UTF-8 | 327 | 3.765625 | 4 | [] | no_license | package class28.abstraction;
public abstract class Parent {
abstract void method1();
final void method2(){
System.out.println("I am a final method inside an abstract class");
}
}
class Child extends Parent{
@Override
public void method1() {
System.out.println("Abstract method");
... | true |
640f66cfd0d21e5d2e3d12d7b650068e60abebe3 | Java | lukebanana/LuteBox | /src/ch/labegg/lutebox/controller/FXMLMainController.java | UTF-8 | 11,761 | 2.015625 | 2 | [] | no_license | package ch.labegg.lutebox.controller;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import org.controlsfx.control.textfield.CustomTextField;
import org.controlsfx.glyphfont.*;
import ch.labegg.lutebox.config.LBConfig;
import ch.labegg.lutebox.model.Lute;
import ch.labegg.lutebox.m... | true |
9f93a60b5bbcb0fbbc606305da1ab34009be15b9 | Java | RabeS/model-T | /TRAVACC_R5/travelservices/testsrc/de/hybris/platform/travelservices/strategies/stock/impl/DefaultStockReservationCreationStrategyTest.java | UTF-8 | 1,792 | 2.046875 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... | true |
2ac034d63cf877b37e3415267f8687f7eea37e46 | Java | Sergey635/Transportation | /src/com/company/Routes.java | UTF-8 | 2,061 | 2.875 | 3 | [] | no_license | package com.company;
import java.util.Objects;
public class Routes {
private String id;
private String name;
private int distance;
private int daysOnTheRoad;
private int payment;
public Routes() {
}
public Routes(String name, int distance, int daysOnTheRoad, int payment) {
th... | true |
64defed7d2bf76563abb4cee568cc0f895d0630e | Java | rasheedamir/vouchers-service | /src/main/java/com/tinyerp/gateway/repository/VoucherRepositoryImpl.java | UTF-8 | 2,627 | 2.25 | 2 | [] | no_license | package com.tinyerp.gateway.repository;
import com.tinyerp.gateway.domain.Voucher;
import com.tinyerp.gateway.domain.VoucherId;
import com.tinyerp.gateway.domain.VoucherState;
import com.tinyerp.gateway.exception.VoucherNotFoundException;
import org.jooq.DSLContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | true |
1504544cd0d7187ceac5fd6de089172b1a0d201d | Java | InterPSS-Project/ipss-odm | /ieee.odm_pss/src/org/ieee/odm/common/ODMLogger.java | UTF-8 | 1,214 | 1.953125 | 2 | [] | no_license | /*
* @(#)ODMLogger.java
*
* Copyright (C) 2006 www.interpss.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your optio... | true |
53804637e185cadb440bbfe232303a1ce005d533 | Java | punamtiwari/my-new-project | /src/main/java/com/spring/boot/topic/TopicService.java | UTF-8 | 1,361 | 2.375 | 2 | [] | no_license | package com.spring.boot.topic;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class TopicService {
private List <Topic> topices = new Array... | true |
bfeb6bcbc5db0c52ee319ec30c8b7dd3f85968de | Java | MangoZhang-haha/vote-system-demo | /src/main/java/com/domain/VoteCandidate.java | UTF-8 | 2,297 | 1.9375 | 2 | [] | no_license | package com.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;... | true |
ca84aff5bbea720d5b40b8b9cc9a6cab9fdc90cd | Java | mrzhqiang/randall-maplestory | /src/main/java/randall/maplestory/repository/RingRepository.java | UTF-8 | 320 | 1.578125 | 2 | [] | no_license | package randall.maplestory.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import randall.maplestory.domain.Ring;
public interface RingRepository extends JpaRepository<Ring, Integer>, JpaSpecificationExecutor<Ring> {
} | true |
4385f761b8a3ddceff1894a5efc7fc83a4695917 | Java | ayshtoo/Company | /src/main/java/PracticeProject/SoftwareDev.java | UTF-8 | 219 | 2.390625 | 2 | [] | no_license | package PracticeProject;
public class SoftwareDev extends Employee{
public SoftwareDev(int id, String name, String position, double salary, int bonus) {
super(id, name, position, salary, bonus);
}
}
| true |
b4f013828572fa491c6f2e94c46fc40941527996 | Java | feng-siwei/SurveyPark | /test/com/feng/surveypark/test/TestDataSource.java | UTF-8 | 588 | 2.171875 | 2 | [] | no_license | package com.feng.surveypark.test;
import javax.sql.DataSource;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestDataSource {
@Test
public void getConn() throws Exception{
Applic... | true |
a098b4d9a3332b3aa802483bc88db981da0e8574 | Java | dpk14/Slogo | /backEnd/src/builders/OperationBuilder.java | UTF-8 | 4,003 | 3.453125 | 3 | [
"MIT"
] | permissive | package builders;
import controlStructures.ControlStructure;
import general.Animal;
import general.ProgramParser;
import operations.Operation;
import java.util.*;
public class OperationBuilder {
List<String> myUserInput;
Operation myOperation;
int myStartingIndex;
int myNumOfArgsNeeded;
int myNum... | true |
df9c070e3db0fb351e8a2ebfa32c5f9bc77dd54c | Java | juandbc/WchallengeAPI | /src/main/java/com/jdbc/wchallenge_api/repository/db/PostDbRepository.java | UTF-8 | 279 | 1.554688 | 2 | [
"MIT"
] | permissive | package com.jdbc.wchallenge_api.repository.db;
import com.jdbc.wchallenge_api.model.Post;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* @author Juan David Bermudez
* @version 1.0
*/
public interface PostDbRepository extends MongoRepository<Post, Integer> {
}
| true |
041044a2288f40adc245045413071ff9781be76c | Java | ashleymercer/java-saml | /core/src/test/java/com/onelogin/saml2/test/http/MockHttpRequest.java | UTF-8 | 5,974 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.onelogin.saml2.test.http;
import com.onelogin.saml2.http.HttpRequest;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import static com.onelogin.saml2.util.Preconditions.checkNotNull;
import static java.util.Collections.unmodifiableList;
import static java.util.Collections.unmodifiableMa... | true |
0ab4597f476ed4875e93877c71948e33026df47a | Java | Rune-Status/vl1-mystic | /src/org/mystic/game/model/content/combat/special/impl/AbyssalWhipSpecialAttack.java | UTF-8 | 865 | 2.1875 | 2 | [] | no_license | package org.mystic.game.model.content.combat.special.impl;
import org.mystic.game.model.content.combat.special.Special;
import org.mystic.game.model.content.sound.SoundPlayer;
import org.mystic.game.model.content.sound.SoundPlayer.Sounds;
import org.mystic.game.model.entity.Animation;
import org.mystic.game.model.enti... | true |
205133e0588c602e0e69827d6455c641c031a7cd | Java | professorxavier/datascienceapp | /src/test/java/br/com/fernandoxavier/utils/MongoUtilTest.java | UTF-8 | 3,568 | 2.15625 | 2 | [] | no_license | package br.uniriotec.ppgi.fernandoxavier.utils;
import br.uniriotec.ppgi.fernandoxavier.StationVO;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Aggregates;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Projections;
import ... | true |
9f4e67a649bd24c486847b8a43214e828db1a883 | Java | sunguangran/navi | /framework/src/main/java/com/youku/java/navi/engine/core/IDataObjectCom.java | UTF-8 | 282 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.youku.java.navi.engine.core;
import com.youku.java.navi.server.serviceobj.AbstractNaviBaseDto;
public interface IDataObjectCom<T extends AbstractNaviBaseDto> {
T get();
T refresh();
void deleteCache();
void deleteDB();
String getNullKey();
}
| true |
daebc9aa6d27d8db94953e61fff45225e6dc9a40 | Java | fracz/refactor-extractor | /results-java/openhab--openhab1-addons/62d2ead8ffafa84f1f5aaef0f8fa1f0314550b8d/before/MiosBinding.java | UTF-8 | 17,964 | 1.695313 | 2 | [] | no_license | /**
* Copyright (c) 2010-2014, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org... | true |
100a16b49b4003b53ec4c81d68bffa13192c2339 | Java | cashlalala/his_taiwan | /src/org/his/dao/SettingDao.java | UTF-8 | 357 | 2 | 2 | [] | no_license | package org.his.dao;
import javax.persistence.EntityManager;
import org.his.JPAUtil;
import org.his.model.Setting;
public class SettingDao {
private EntityManager em = JPAUtil.getEntityManager();
public SettingDao() {
// TODO Auto-generated constructor stub
}
public Setting QuerySettingById(int id) {
retu... | true |
2342bd785c1c170c1145bca727dd7e8c44b99bf2 | Java | Traider09/pascalnide | /libCompiler/src/main/java/com/duy/pascal/backend/ast/codeunit/ExecutableCodeUnit.java | UTF-8 | 847 | 1.914063 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.duy.pascal.backend.ast.codeunit;
import com.duy.pascal.backend.parse_exception.ParsingException;
import com.duy.pascal.backend.source_include.ScriptSource;
import com.duy.pascal.frontend.activities.IRunnablePascal;
import java.io.Reader;
import java.util.List;
public abstract class ExecutableCodeUnit ext... | true |
8189cc53a616c326d14026f4c4452cabeb4a4a50 | Java | oribix/MINI-JAVA-Compiler | /hw2/J2V.java | UTF-8 | 451 | 2.5625 | 3 | [] | no_license | import syntaxtree.*;
import visitor.*;
public class J2V {
public static void main(String args[]){
//taken from JTB tutorial
MiniJavaParser parser = new MiniJavaParser(System.in);
try {
Node root = parser.Goal();
root.accept(new VaporVisitor());
//System.out.println("Vapor code generate... | true |
5fcd2f395a9f8fe0202adb4b92c4171ccd024702 | Java | Bowl-of-noodles/Lab2 | /src/edu/itmo/rogachova/Moves/ChanceToAddEffect.java | UTF-8 | 190 | 2.109375 | 2 | [] | no_license | package edu.itmo.rogachova.Moves;
public class ChanceToAddEffect
{
public static boolean chance(double perc)
{
return Math.random() <= perc? true: false;
}
}
| true |
12c7f1f5e5139c1e1c8752f8df3418a884f50962 | Java | rdisantis/convenios | /dlkConvenios/src/cl/decalink/tgr/convenios/propuestas/ConvenioInternet.java | UTF-8 | 4,141 | 2.34375 | 2 | [] | no_license | package cl.decalink.tgr.convenios.propuestas;
/*
* Title: ConvenioInternet.java
* Description: Representa las prouestas de convenio usados en internet
* Copyright: Copyright (c) 2003
* Company: Decalink Ltda.
* @author M�nica Quezada
* @version 1.0
*/
import java.util.Vector;
import java.util.Collection;
imp... | true |
33b03b1577acdc4951fd7924efe12e6fe1642739 | Java | Junhua91/EffectiveJava | /src/main/java/com/junhua/chapitre6/EnumSetTest.java | GB18030 | 858 | 3.875 | 4 | [] | no_license | package com.junhua.chapitre6;
import java.util.EnumSet;
import java.util.Set;
/**
* һö͵ԪҪڼ
* EnumSet Чرʾӵöȡֵö
*/
public class EnumSetTest {
public enum style{
BOLD, ITALIC,UNDERLINE, STRIKETHROUGH;
}
public void applyStyles(Set<style>styles){
for (style style : styles) {
System.out... | true |
fe088a6dd240d853842eb8d59415efa5f7921bdf | Java | xj-coder/codewar-desolate-city-c | /CodeWarSystem/JDesktop/src/registry/dom/Config.java | UTF-8 | 375 | 2.21875 | 2 | [] | no_license | package registry.dom;
public class Config {
private TaskBar taskBar;
private Desktop desktop;
public TaskBar getTaskBar() {
return taskBar;
}
public void setTaskBar(TaskBar taskBar) {
this.taskBar = taskBar;
}
public Desktop getDesktop() {
return desktop;
}
public void setDesktop(D... | true |
31f2d6523eff344de6fbbb762ff4ba7489afc1cb | Java | wongainia/lyzb | /app/src/main/java/com/szy/yishopcustomer/Activity/UnionpayDummyActivity.java | UTF-8 | 2,202 | 2.09375 | 2 | [] | no_license | package com.szy.yishopcustomer.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import com.szy.common.Fragment.CommonFragment;
import com.szy.yishopcustomer.Constant.Key;
import com.lyzb.jbx.R;
import com.unionpay.UPPayAssistEx;
/**
* Created by 宗仁 on 2016/12/24.
* Al... | true |
dd7d364245ba6abc89d8240bdfb64a5e26bf0396 | Java | andrereges/spring-completeapp | /src/main/java/br/com/andre/completeapp/controllers/TaskController.java | UTF-8 | 2,968 | 2.28125 | 2 | [
"MIT"
] | permissive | package br.com.andre.completeapp.controllers;
import br.com.andre.completeapp.dtos.TaskCreateRequestDto;
import br.com.andre.completeapp.dtos.TaskResponseDto;
import br.com.andre.completeapp.dtos.TaskUpdateRequestDto;
import br.com.andre.completeapp.mappers.TaskMapper;
import br.com.andre.completeapp.services.TaskServ... | true |
8ae3104ee40367dafcee3caa9ec3645f0c4d193e | Java | anand755/Leetcode | /src/cisco/challenges/HowManyWords.java | UTF-8 | 1,766 | 3.28125 | 3 | [] | no_license | package cisco.challenges;
import java.io.*;
import java.util.List;
public class HowManyWords {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter writer = new BufferedWriter(new OutputStre... | true |
7eb16b01d9e4bdf457fb4c77f72764bf78ab2d77 | Java | jjordantb/bliss | /src/main/java/class142.java | UTF-8 | 235 | 1.554688 | 2 | [] | no_license | public abstract class class142 extends class345 {
int field1421;
class142(int var1) {
this.field1421 = -1846372093 * var1;
}
abstract Object method1075(int var1);
abstract boolean method1076(int var1);
}
| true |
7d01e11390fff48937e4fbb0acc3127b5c42631e | Java | mrxiaobai-wen/study-leetcode | /src/main/java/sort/easy/MaximumUnits_1710.java | UTF-8 | 2,254 | 3.78125 | 4 | [] | no_license | package sort.easy;
import java.util.Arrays;
import java.util.Comparator;
/**
* 1710. 卡车上的最大单元数
*
* 请你将一些箱子装在 一辆卡车 上。给你一个二维数组 boxTypes ,其中 boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi] :
*
* numberOfBoxesi 是类型 i 的箱子的数量。
* numberOfUnitsPerBoxi 是类型 i 每个箱子可以装载的单元数量。
* 整数 truckSize 表示卡车上可以装载 箱子 的 最大数量 。只要箱子数... | true |
491de3d3047178acd940e28d086a8364fdfbed07 | Java | chenf99/leetcode | /309.最佳买卖股票时机含冷冻期.java | UTF-8 | 537 | 2.796875 | 3 | [] | no_license | /*
* @lc app=leetcode.cn id=309 lang=java
*
* [309] 最佳买卖股票时机含冷冻期
*/
// @lc code=start
class Solution {
public int maxProfit(int[] prices) {
int dp_i_0 = 0, dp_i_1 = Integer.MIN_VALUE;
int dp_pre_0 = 0;
for (int i = 0; i < prices.length; ++i) {
int tmp = dp_i_0;
d... | true |
249384f5a303e9569bcb1550d1492641f1c34d55 | Java | NLP-LH/AbstractExtract | /document-processor-master/src/main/java/org/shirdrn/document/processor/Sorting.java | UTF-8 | 1,153 | 2.546875 | 3 | [] | no_license | package org.shirdrn.document.processor;
import java.util.ArrayList;
import java.util.Set;
import java.util.TreeMap;
import tools.all.*;
//给生成好的词向量数据进行排序
public class Sorting {
public static void sort(String readFilePath,String writeFilePath) {
ArrayList<String> datainputList = new ArrayList<String>();
ArrayLi... | true |
8d12bebce34c3cf6618ca4473dba683bc00fb01d | Java | dipyamandeb/portal | /portal/src/main/java/com/portal/repository/CustomerRepository.java | UTF-8 | 213 | 1.632813 | 2 | [] | no_license | package com.portal.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.portal.entity.Customer;
public interface CustomerRepository extends JpaRepository<Customer, Integer> {
}
| true |