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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6e0a61c2e316f9f03ff7d294870f647e942f8ec1 | Java | alisha8899/Introduction-Java | /cs46a_hw4b/InputApplication.java | UTF-8 | 817 | 3.625 | 4 | [] | no_license |
/**
* Displays the users favorite dessert
*
* @author Alisha
*/
import java.util.Scanner;
public class InputApplication
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("Enter a your favorite dessert: ");
String word = in.nextLine();... | true |
8e3fa9c532ea8c0363d5c0d0db6c313acd7c6fd8 | Java | elenaanghel90/HibernateAndDBCreatedWithCars | /src/main/java/com/sda/app/masini/db/Masina.java | UTF-8 | 2,515 | 2.328125 | 2 | [] | no_license | package com.sda.app.masini.db;
import com.sda.app.utilizatori.db.Utilizator;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "Masini")
public class Masina {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
//identity lasi baza de date sa genereze ea in fucntie de cum stie
... | true |
6304345100a90ae6de85f39cda39042d09d8e995 | Java | IgnacioCisneros-dev/Api-Rest_SIC | /src/main/java/com/ignacio/persistencia/RowMapper/PuestoRowMapper.java | UTF-8 | 691 | 2.484375 | 2 | [] | no_license | package com.ignacio.persistencia.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.jdbc.core.RowMapper;
import com.ignacio.persistencia.entidad.Puesto;
public class PuestoRowMapper implements RowMapper<List<Puesto>> {
... | true |
e218e542f12ad7faf7d952f2f3fb462ae241f161 | Java | GalkinDenis/AppForSibers | /app/build/tmp/kapt3/stubs/release/com/denis/appForSibersTeam/network/PokeApi.java | UTF-8 | 1,193 | 1.65625 | 2 | [] | no_license | package com.denis.appForSibersTeam.network;
import java.lang.System;
@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u00c6\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002R\u001b\u0010... | true |
2dff1cabf9851c7c3c9cb19e3e49ac692cdad89a | Java | PaddyDeng/toefl-ad-app | /app/src/main/java/io/dcloud/H58E83894/ui/make/dub/adapter/DubDeRankAdapter.java | UTF-8 | 2,561 | 2.140625 | 2 | [] | no_license | package io.dcloud.H58E83894.ui.make.dub.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import io.dcloud.H58E83894.R;
import io.dcloud.H58E83894.base.adapter.Ba... | true |
58c42a742a61e641feea752add918435a063dc77 | Java | SoftwareEngineeringWheelMaker/Furniture-management-system | /furniture-management-system/src/com/furniture/dao/impl/OperatorDaoImpl.java | UTF-8 | 1,826 | 2.46875 | 2 | [] | no_license | package com.furniture.dao.impl;
import java.util.List;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import com.furniture.domain.Operator;
import com.furniture.exception.OperatorDaoException;
import com.furniture.utils.JdbcUtils;
public class Opera... | true |
a28c78ebe3d6a19b517671c819958dc54532d34a | Java | theKorpit/StackOverCoffee | /src/main/java/com/compassouol/config/ValidationExceptionHandler.java | UTF-8 | 2,543 | 2.421875 | 2 | [] | no_license | package com.compassouol.config;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestControllerAd... | true |
7de78f8f2d6cd70a091b00c1dbf20cdaaeac2557 | Java | hollyroberts/volcano-infiltration | /src/levelComponents/AutomaticDoor.java | UTF-8 | 4,570 | 3.28125 | 3 | [] | no_license | package levelComponents;
import java.awt.Color;
import java.awt.Graphics2D;
import java.util.ArrayList;
import audio.SoundEffectsHandler;
public class AutomaticDoor implements LevelObject {
private int x;
private int y;
private int width;
private int height;
private int mode; //1 for closed when switch off //2... | true |
0f287ff6ef73a22dc59d538805fda7dff2004cfb | Java | ARC96/Baseprogamming | /Map/src/Map/Mapclass1.java | UTF-8 | 853 | 3.078125 | 3 | [] | no_license | package Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class Mapclass1 {
public static void main(String[] args) {
HashMap m=new HashMap();
m.put(1,10);
m.put(2,20);
m.put(3,30);
m.put(4,40);
m.put(5,50);
m.put(6,6... | true |
321bc8d15dc651383332f0bb7e0f03016f6b42f6 | Java | suhane/HackerEarthSolution | /src/main/java/sorting/BubbleSort.java | UTF-8 | 336 | 3.390625 | 3 | [] | no_license | package sorting;
public class BubbleSort {
public static void sort(int[] A){
int s=0;
int len=A.length;
for(int i=0;i<len;i++){
for(int j=i+1;j<len;j++){
if(A[i]>A[j]){
int temp=A[i];
A[i]=A[j];
A[j]=temp;
s+=j-i;
}
}
}
System.out.println("Number of shifts in from bubble s... | true |
78b37a3fcd06cf2632cdfdebd58e309e9502fcea | Java | MarkTOPI/SuperFit | /app/src/main/java/com/example/superfit/exercisesScreen/ExercisesScreen.java | UTF-8 | 701 | 1.75 | 2 | [] | no_license | package com.example.superfit.exercisesScreen;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.example.superfit.R;
import com.example.superfit.mainscreen.mainScreen;
public class ExercisesScreen extends AppCompatActivity {... | true |
017dfd214f7c80d3d763bb18450a2a91b3af8f5b | Java | btamada/Java-Fundamentals | /MergeSortDriver.java | UTF-8 | 316 | 3.109375 | 3 | [] | no_license | package mergesort;
public class MergeSortDriver {
public static void main(String[] args) {
int[] integers = {3,2,1,4};
MergeSort ms = new MergeSort();
ms.mergesort(integers);
}
private static void print(int[] array) {
for(int i = 0; i < array.length; i++) {
System.out.println(array[i]);
}
}
}
| true |
26cae5906e0c018320ba4c833dc62a06d7db5bad | Java | xinxinOh/jiemoTest | /JiemoTest/src/main/java/com/neuedu/JiemoTest/entity/Question.java | UTF-8 | 2,726 | 2.03125 | 2 | [] | no_license | package com.neuedu.JiemoTest.entity;
public class Question {
private Integer questionid;
private String questionskill;
private String title;
private String options;
private String answer;
private Integer questiontype;
private String analysis;
private Integer difficultdegree;
... | true |
88d74ed5ff0f98e03a0fa426667066e99c070eb4 | Java | H4lfE1f/trpp-second-13_2 | /src/main/java/ru/mirea/trpp_second_13/controllers/CarController.java | UTF-8 | 1,599 | 2.734375 | 3 | [] | no_license | package ru.mirea.trppsecond13.controllers;
import com.opencsv.bean.CsvToBeanBuilder;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import ru.mirea.trppsecond13.entity.Car;
import java.io.InputStreamReader;
import java.util.List;
import ... | true |
e20b0e702e876fc50aec121b1343d823d8046d7b | Java | AppInformation/AppInformation | /src/cn/easybuy/service/UserListService.java | GB18030 | 459 | 2.03125 | 2 | [] | no_license | package cn.easybuy.service;
import cn.easybuy.entity.Page;
import cn.easybuy.entity.User;
public interface UserListService {
/**
* ҳ
* @param index
* @param sum
* @return
*/
public Page Select(int index);
/**
* ɾû
* @param id
* @return
*/
public int delete(int id);
/**
* ... | true |
8c225eaf24b989882c67c07df3e1a7df9dc5addd | Java | moutainhigh/Vshop | /Vshop-service/src/main/java/com/Vshop/service/module/goods/service/TranSportService.java | UTF-8 | 214 | 1.632813 | 2 | [] | no_license | package com.Vshop.service.module.goods.service;
import java.util.List;
import com.Vshop.core.entity.Transport;
public interface TranSportService {
public List<Transport> queryStoreList(Integer storeId);
}
| true |
b098cfac362ce5300ddb8bc8b5094260dccc4933 | Java | ljcservice/autumnprogram | /src/main/java/com/hitzd/WebPage/Impl/BasePageBean.java | UTF-8 | 4,977 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.hitzd.WebPage.Impl;
import java.util.LinkedHashMap;
import com.hitzd.DBUtils.TCommonRecord;
import com.hitzd.WebPage.PageView;
import com.hitzd.WebPage.QueryResult;
import com.hitzd.DBUtils.CommonMapper;
import com.hitzd.persistent.Persistent4DB;
/**
* 分页基类
* @author Administrator
*
*/... | true |
d838523e3bf9a10407f686055ba063c5d88ca1ba | Java | ilover5555/cacaoeng | /kakaoeng/src/main/java/Kakao/kakaoeng/servlet/StudentScheduleServlet.java | UTF-8 | 6,468 | 2.203125 | 2 | [] | no_license | package Kakao.kakaoeng.servlet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation... | true |
dd62914adc6d5cf424dacf864111d7e1d58ba8cd | Java | lvbing92/chintec-ikks | /ikks-erp/src/main/java/com/chintec/ikks/erp/feign/ICredentialsService.java | UTF-8 | 2,793 | 2.0625 | 2 | [] | no_license | package com.chintec.ikks.erp.feign;
import com.chintec.ikks.common.entity.vo.CredentialsRequest;
import com.chintec.ikks.common.util.ResultResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
/**
* <p>
* 服务类
... | true |
a550e81211cca17a69d2717d30d3a90bd5b20263 | Java | lchen666/lchen | /lchen-common/lchen-common-swagger/src/main/java/com/lchen/common/swagger/dto/ApiJsonDocumentationBuilder.java | UTF-8 | 606 | 2.078125 | 2 | [] | no_license | package com.lchen.common.swagger.dto;
import java.util.List;
public class ApiJsonDocumentationBuilder {
private String name;
private List<ApiJsonPropertySingle> properties;
public ApiJsonDocumentationBuilder name(String name){
this.name = name;
return this;
}
public ApiJsonDoc... | true |
094cf535656416473d73d2c27d24508d3a12dcaf | Java | ericchangzmm/com.jije.boh.demo | /plugins/com.jije.boh.demo.jpa/src/com/jije/boh/demo/jpa/repository/BascStoreRepository.java | UTF-8 | 1,804 | 1.875 | 2 | [] | no_license | package com.jije.boh.demo.jpa.repository;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transac... | true |
8da5ee5dd3d6059f93e94d0f4a776b4854865038 | Java | heatork/piggy | /THIRD_LIBS/HBLTest/src/com/howbuy/frag/control/FragControlBubble.java | UTF-8 | 2,272 | 2.265625 | 2 | [] | no_license | package com.howbuy.frag.control;
import java.util.ArrayList;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.howbuy.control.RandomBubbleView;
import com.howbuy.control.Ran... | true |
6e164325af83ca27b3f6eab4ddc9b49da7b74e5e | Java | kjwinic/communication | /ICQServer/src/ServerThread.java | GB18030 | 8,118 | 2.421875 | 2 | [] | no_license |
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintStream;
import java.net.Socket;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import... | true |
a3580ffe98523eab722836ce7e9a0ccd75784458 | Java | Monti90/RPG-Catalog-CRUD | /rpgcollection/src/main/java/wasko/collectionmanager/rpgcollection/security/ApplicationSecurityConfig.java | UTF-8 | 5,117 | 2.015625 | 2 | [] | no_license | package wasko.collectionmanager.rpgcollection.security;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager... | true |
5575be4221af1e3ebbd6bea5c147ef4ffeeb878e | Java | pikkolo78/esercizio-prenotazionu-sportello | /Main.java | UTF-8 | 2,937 | 3.8125 | 4 | [] | no_license | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input =new Scanner(System.in); //creaiamo metodo scannere per acquisire da tastiera
Sportello sportello1 =new Sportello();//creaiamo oggetto sportello
//creaimo menu per utente
String rispos... | true |
d2a089cf9242e449b9e440652c799e97cf8d15fa | Java | daewoong/OWL4RDB | /Janus/src/janus/database/DBBridgeFactory.java | UTF-8 | 368 | 2.53125 | 3 | [] | no_license | package janus.database;
public class DBBridgeFactory {
public static DBBridge getDBBridge(DBMSTypes DBMS_TYPE, String host, String port, String id, String password, String schema) {
DBBridge dbBridge = null;
if(DBMS_TYPE.equals(DBMSTypes.MY_SQL))
dbBridge = MySQLBridge.getInstance(host, port, id, pas... | true |
e3998d8d719590ef39847d22d91db99068f0fe6f | Java | tokyorider/NetSnake | /src/events/BecomeAdminEvent.java | UTF-8 | 770 | 2.328125 | 2 | [] | no_license | package events;
import me.ippolitov.fit.snakes.SnakesProto;
import java.net.InetAddress;
public class BecomeAdminEvent extends Event {
private int selfId;
private InetAddress oldAdminIp;
private SnakesProto.GameState lastGameState;
public BecomeAdminEvent(int selfId, InetAddress oldAdminIp,
... | true |
303fb5b30b6cb96bf95c8ca43eeec9c4ddf13aa7 | Java | kanaida/LG-Esteem-Homeless-Kernel | /out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/org/apache/http/impl/cookie/RFC2965Spec.java | UTF-8 | 1,196 | 2.078125 | 2 | [] | no_license | package org.apache.http.impl.cookie;
public class RFC2965Spec
extends org.apache.http.impl.cookie.RFC2109Spec
{
public RFC2965Spec() { throw new RuntimeException("Stub!"); }
public RFC2965Spec(java.lang.String[] datepatterns, boolean oneHeader) { throw new RuntimeException("Stub!"); }
public java.util.List<org.apa... | true |
862c5bbc8b66e295f6942432bd6ae7056d29b955 | Java | ScottMaclure/Kantban | /test/models/StoryTest.java | UTF-8 | 5,664 | 2.609375 | 3 | [] | no_license | package models;
import static org.hamcrest.Matchers.*;
import static matchers.Matchers.recentDate;
import java.util.Calendar;
import java.util.List;
import org.hamcrest.Matcher;
import org.junit.After;
import org.junit.Test;
import services.SystemTime;
public class StoryTest extends BasicModelTest {
... | true |
c4b05e1e3b2b1a175c7a9744fe1469384e57a39d | Java | jmepicapp/YoDono-apirest | /src/main/java/com/proyecto/integrado/yodono/service/PoblacionService.java | UTF-8 | 798 | 2.171875 | 2 | [] | no_license | package com.proyecto.integrado.yodono.service;
import com.proyecto.integrado.yodono.model.dto.PoblacionDTO;
import com.proyecto.integrado.yodono.model.Poblacion;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing {@link Poblacion}.
*/
public interface PoblacionService {
/**... | true |
5d3c78a690a46e0f7bf7399871c40976c3f05928 | Java | TheShermanTanker/NMS-1.16.3 | /com/mysql/jdbc/Constants.java | UTF-8 | 991 | 1.984375 | 2 | [] | no_license | /* */ package com.mysql.jdbc;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* *... | true |
465d3f982991872b05040497a2291009dd97be6a | Java | jiage2018/weather | /app/src/main/java/com/jiage/weather/gson/WeatherAqi.java | UTF-8 | 1,147 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.jiage.weather.gson;
import com.google.gson.annotations.SerializedName;
public class WeatherAqi {
public Basic basic;
public update update;
public String status;
@SerializedName("air_now_city")
public Aqi weatheraqi;
}
/*
{
"HeWeather6":[
{
"basic":{"cid":"CN101200801","l... | true |
5f3369f50eecd6ab331ccccb0d9a57672987f404 | Java | loveonwheels/ClientApplicationApp | /app/src/main/java/com/mSIHAT/client/fragments/LoginFragment.java | UTF-8 | 8,896 | 2.125 | 2 | [] | no_license | package com.mSIHAT.client.fragments;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View... | true |
b94ba26f54021ec8b6bbc6eb8bd8f3e63b13c975 | Java | akashgalagali/FMS | /ForestryManagementSystem/src/main/java/com/cg/fms/dao/IOrderDao.java | UTF-8 | 426 | 1.882813 | 2 | [] | no_license | package com.cg.fms.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.cg.fms.dto.Orders;
public interface IOrderDao extends JpaRepository<Orders,String>{
// public Orders getOrder(String orderNumber);
//
// public boolean addOrder(Orders order);
//
// public boolean updateOrder(Orders o... | true |
95f5d576e21c57e1d94250e69223a989270778d0 | Java | pranju123/Playground | /Matinee movie tickets/Main.java | UTF-8 | 260 | 2.40625 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main()
{
int age;
float show;
cin>>age>>show;
if(age<=13)
{
if(show<=12.00)
cout<<"$4.00";
else
cout<<"$2.00";
}
else if(age>13)
{
if(show<=12.00)
cout<<"$8.00";
else
cout<<"$5.00";
}
} | true |
b6863d94a85c3b77b1ba691984a28626e97d8496 | Java | Egor2001/twilight-imperium | /src/main/java/player/units/GroundForce/Infantry.java | UTF-8 | 162 | 2.140625 | 2 | [] | no_license | package player.units.GroundForce;
import player.Race;
public class Infantry extends GroundForce {
public Infantry(Race race) {
super(race);
}
}
| true |
c497f246812743bbb717f5c51756a5ac3d6766eb | Java | druidJane/Druid3.0.3 | /web-server/server-common/src/main/java/com/xuanwu/mos/domain/enums/StatusCode.java | UTF-8 | 1,553 | 3 | 3 | [] | no_license | package com.xuanwu.mos.domain.enums;
import com.xuanwu.mos.domain.handler.HasIndexValue;
import com.xuanwu.mos.exception.BusinessException;
/**
* Created by 林泽强 on 2016-8-28. UploadResult状态编码
*/
public enum StatusCode implements HasIndexValue {
/**
* 成功
*/
Success(0),
/**
* 失败:单个文件大小超过限制
*/
FileSizeExce... | true |
fea25408bce17e7f4f8ae797e9fb25f03a3e0336 | Java | felizju/java_basic_study | /src/day11/poly/car/Driver.java | UTF-8 | 1,155 | 3.625 | 4 | [] | no_license | package day11.poly.car;
public class Driver {
/* void drive(Sonata s){
System.out.println("운전을 시작합니다.");
s.run();
}
void drive(Tusan t){
System.out.println("운전을 시작합니다.");
t.run();
}
void drive(Boxter b){
System.out.println("운전을 시작합니다.");
b.run();
... | true |
c4b26df10e5cf1c9d4509a28dc2638424dae8dfe | Java | Pharmazon/GeekUniversity | /cloud-storage/server/src/main/java/ru/cloud/storage/server/util/Assets.java | UTF-8 | 881 | 2.25 | 2 | [] | no_license | package ru.cloud.storage.server.util;
import ru.cloud.storage.server.service.AuthService;
import java.nio.file.Path;
public class Assets {
private static final Assets ourInstance = new Assets();
public static Assets getInstance() {
return ourInstance;
}
private AuthService authService;
... | true |
ba262948fdd7ff7a6e48f54ba68caffe271cfcc9 | Java | LeeDohyoung/project_toy | /src/main/java/com/happylopers/wakeup/controller/WakeUpController.java | UTF-8 | 2,584 | 2.1875 | 2 | [] | no_license | package com.happylopers.wakeup.controller;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | true |
b8b987bda3eb88c6135da02d22826c3e2e3b2d21 | Java | VHAINNOVATIONS/Telepathology | /Source/Java/CoreValueObjects/main/src/java/gov/va/med/imaging/exchange/business/storage/ArtifactSourceInfo.java | UTF-8 | 1,007 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package gov.va.med.imaging.exchange.business.storage;
import gov.va.med.imaging.core.interfaces.StorageCredentials;
import java.io.Serializable;
/**
* @author vhaiswpeterb
*
*/
public class ArtifactSourceInfo implements Serializable, StorageCredentials {
private static final long serialVersionUID = ... | true |
463d7143ac0e7d732634e0ec064931e3a2ae38f6 | Java | bcyran/func-analyzer | /src/main/java/pl/bazylicyran/funcanalyzer/math/FunctionDiscretizer.java | UTF-8 | 2,696 | 3.53125 | 4 | [] | no_license | package pl.bazylicyran.funcanalyzer.math;
import java.util.ArrayList;
import java.util.List;
/**
* Discretizes function in given interval and with given resolution.
*
* @author Bazyli Cyran
*/
public class FunctionDiscretizer {
/** String with function to discretize. */
private String input;
private Functio... | true |
36366729981eff22324708b177a2dc0e1d7bb7b4 | Java | heshengyx/electric-service | /src/main/java/com/grgbanking/electric/mapper/IEventMapper.java | UTF-8 | 1,480 | 2.28125 | 2 | [] | no_license | package com.grgbanking.electric.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.grgbanking.electric.entity.Event;
import com.grgbanking.electric.param.EventQueryParam;
public interface IEventMapper {
/**
* 新增
* @param event
* @return
*/
int save(@Par... | true |
f7768dda038bd5f4c9a145fc37988c77a7e55741 | Java | AamirB/myproject | /src/main/java/com/yourl/service/AccountServiceImpl.java | UTF-8 | 3,839 | 2.53125 | 3 | [] | no_license | package com.yourl.service;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.Cookie;
import javax.servlet.http.Http... | true |
8adbae925f79170b5cd3a71cf6f37692c91c7106 | Java | marqusm/demo-backend | /src/main/java/com/marqusm/demobackendrestjavaspringboot/annotation/CacheAffecting.java | UTF-8 | 357 | 1.867188 | 2 | [
"MIT"
] | permissive | package com.marqusm.demobackendrestjavaspringboot.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** @author : Marko Mišković */
@Retention(value = RetentionPolicy.RUNTIME)
@Target(ElementType... | true |
061e33750ec48b98d00ee1f9ed7ed948e7c5a64f | Java | qiuchili/ggnn_graph_classification | /program_data/github_java_program_data/49/565.java | UTF-8 | 2,901 | 2.90625 | 3 | [
"MIT"
] | permissive | package com.mycompany.maventest;
import no.uib.cipr.matrix.DenseMatrix;
import no.uib.cipr.matrix.Matrices;
import no.uib.cipr.matrix.Matrix;
public class LinearRegression {
//# Training examples
private int m;
//# of features
private int n;
//Inputs (m*n)
private Matrix X;
... | true |
21cee75884a31db0fc1d3fbddca212203127d71c | Java | orlysemperfi/cartelerag6 | /src/main/java/edu/upc/cartelerag6/cartelerag6/dao/JdbcComentarioRepository.java | UTF-8 | 7,400 | 2.390625 | 2 | [] | no_license | package edu.upc.cartelerag6.cartelerag6.dao;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.sql.DataSource;
import edu.upc.cartelerag6.cartelerag6.model.Comentario;
import... | true |
d696c229cfd9c30ed7fdd506135ec821c2eb3259 | Java | HQLboy/0721 | /src/com/atguigu/test/Boy.java | UTF-8 | 608 | 3.25 | 3 | [] | no_license | package com.atguigu.test;
public class Boy {
private String name;
private int age;
public Boy(String name, int age){
this.name = name;
this.age = age;
}
public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}
public void setAge(int age){... | true |
3625d6e488e52e7d2817f82bfb7f52e848a74b4d | Java | thinkparadox/Android-MessegerDemo | /messagermodel/src/main/java/com/listenread/luhuanju/messagermodel/ServerService.java | UTF-8 | 1,615 | 2.453125 | 2 | [] | no_license | package com.listenread.luhuanju.messagermodel;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.support.annotation.Nullable... | true |
8883b62b351e7797e897460ca22360c9eb69af5c | Java | zgqq/flycat | /flycat-context/src/main/java/com/github/flycat/context/ContextManager.java | UTF-8 | 3,390 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 zgqq <zgqjava@gmail.com>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applic... | true |
f6a62b80ab6e7e28e38c4ad2d0dba8c65bcf91d9 | Java | dazhaozhao/community | /src/main/java/com/alan/community/dto/TagDTO.java | UTF-8 | 290 | 1.5 | 2 | [] | no_license | package com.alan.community.dto;
import com.alan.community.cache.TagCache;
import lombok.Data;
import java.util.List;
/**
* @author alan
* @date 2020/3/24 22:09
*/
@Data
public class TagDTO {
private String categoryName;
private List<String> tagCaches;
}
| true |
c85e5186ffacdc4d61bf133f2e0e0305f9e9f4c6 | Java | samhincks/RoadBrain2015 | /src/NeuracleLabelingTask.java | UTF-8 | 1,526 | 3.078125 | 3 | [] | no_license | import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class NeuracleLabelingTask implements Runnable{
private static final String SERVER_IP = "127.0.0.1";
private int port = 1... | true |
ff40c009d3cc0762963b06b533d09e1ee36f57d9 | Java | patrWan/arquitectura_sw_kiosko | /Kiosko_app_final/src/gui/App.java | UTF-8 | 25,789 | 2.125 | 2 | [] | no_license | package gui;
import java.awt.Color;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import model.Boleta;
import model.Data;
import model.Producto;
import model.Tabla;
import model.Tabla_bol... | true |
1834b03448a61dc0e806edb2a3ed1ce393deb22a | Java | metabrainz/search-server | /servlet/src/main/java/org/musicbrainz/search/servlet/mmd1/ArtistMmd1XmlWriter.java | UTF-8 | 4,212 | 1.875 | 2 | [] | no_license | /* Copyright (c) 2009 Lukas Lalinsky
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... | true |
42095b23221555f1a3859cb832dd1e171efdf29f | Java | CarlosMo-Va/IntelliJActualProject | /app/src/main/java/com/example/carlos_moreno/intellijproject/MainActivity.java | UTF-8 | 9,316 | 3.09375 | 3 | [] | no_license | package com.example.carlos_moreno.intellijproject;
import java.util.Scanner;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState... | true |
06cd437d8d722984caa38239d9f2716997069fe6 | Java | kuriye/Marsrover | /app/src/main/java/com/mustart/marspictures/NasaApiManager.java | UTF-8 | 3,284 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.mustart.marspictures;
import android.content.Context;
import android.util.Log;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolb... | true |
981fdfae17576d1fc906e5aa3a14aadd7baa3240 | Java | zsk1313/scszhl | /scsV1.0/src/main/java/org/zhl/scs/util/PageModel.java | UTF-8 | 1,449 | 2.65625 | 3 | [] | no_license | package org.zhl.scs.util;
import org.zhl.scs.util.common.ScsConstants;
/**
* 分页实体
*/
public class PageModel {
/** 分页总数据条数 */
private int recordCount;
/** 当前页面 */
private int pageIndex ;
/** 每页分多少条数据 */
private int pageSize = ScsConstants.PAGE_DEFAULT_SIZE;
/** 总页数 */
private int totalSize;
public... | true |
87a128f2ebe4a1d87293f281fe7c13f29afb1bcd | Java | gabriela-han/I.P. | /L3/L3_13.java | UTF-8 | 278 | 2.84375 | 3 | [
"MIT"
] | permissive | class L3_13{
public static void main(String[] args){
int Valor = 1;
comprimento (Valor);
}
static void comprimento(int comp){
for (int valor = 1; valor <=5; valor++){
System.out.println("**********");
}
}
}
| true |
413e59050d27ca0f666c869304fa48b8a42cf85e | Java | isaacmg/kafka_flink | /src/main/java/StreamKafka.java | UTF-8 | 4,601 | 2.5 | 2 | [] | no_license |
import facebook.avro.FacebookPost;
import org.apache.flink.api.common.functions.FilterFunction;
import org.apache.flink.api.common.functions.FlatMapFunction;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.streaming.api.datastream.DataStr... | true |
01c558b775035c2f8cb550e419e51250e86432a8 | Java | exactpro/clearth | /clearth-modules/clearth-json/src/main/java/com/exactprosystems/clearth/automation/actions/json/SendJsonMessage.java | UTF-8 | 2,428 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /******************************************************************************
* Copyright 2009-2023 Exactpro Systems Limited
* https://www.exactpro.com
* Build Software to Test Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | true |
f9c66af223734540604c82c4686818ee0acedbe1 | Java | cheke42/SGA-FINAL | /src/com/desarrollo/modelo/Informe.java | UTF-8 | 1,029 | 2.265625 | 2 | [] | no_license | package com.desarrollo.modelo;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "INFORME")
public class Informe {
private int idInforme;
private String tipoInforme;
private Date fecha... | true |
2fe3a603f2ebe06de40a7f06f424b5ff2cb62371 | Java | TKimura416/ThatIsAndrioid | /app/src/main/java/com/thatsit/android/Utility.java | UTF-8 | 34,562 | 1.523438 | 2 | [] | no_license | package com.thatsit.android;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.net.io.Util;
import org.jivesoftware.smack.AccountManager;
import org.jivesoftwa... | true |
878973ad90cc4c04494eb94431c9933f3b65bbe6 | Java | HimanshuBhardwaj/HelloToPractice | /src/main/java/com/himanshu/practice/y2018/nov/nov08/LiebigsBarrels.java | UTF-8 | 2,084 | 3.3125 | 3 | [] | no_license | package com.himanshu.practice.y2018.nov.nov08;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
/**
* Created by himanshubhardwaj on 08/11/18.
* 5:06--5:51
* Statement: https://codeforces.com/contest/985/problem/C... | true |
bb157c0aa8ea4df90d6504afce539d025c592741 | Java | youngcodding/MyGithub | /Reflection/src/com/yn/reflection/others/OthersTest.java | UTF-8 | 984 | 2.828125 | 3 | [] | no_license | package com.yn.reflection.others;
import com.yn.reflection.constructor.Emp;
/**
* @author yn
* @class MyGithub
* @describe
* @date 2020/12/8-11:05
*/
public class OthersTest {
public static void main(String[] args) {
//获取反射对象
Class<Emp> empClass = Emp.class;
//反射获取类加载器
/* Class... | true |
b443ca7411ebbd0755dda15abf42783b962430ce | Java | lenaavramenko/ProductsSystem | /src/main/java/com/javaguru/products/service/validation/ProductValidationService.java | UTF-8 | 528 | 2.34375 | 2 | [] | no_license | package com.javaguru.products.service.validation;
import com.javaguru.products.domain.Product;
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
public class ProductValidationService {
private final Set<ProductValidationRule> validationRules;
public ProductValidationService(Set<P... | true |
3f470c464869d2db7a0ad219d4c88be1e86855c2 | Java | hoangytm/TCPS | /UDPClient/src/vn/viettuts/client/UDPClient.java | UTF-8 | 4,562 | 2.96875 | 3 | [] | no_license | package vn.viettuts.client;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectOutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import ja... | true |
5717c1a9fcb19be97b612a4274ff7e50a309ad45 | Java | jotaerre123/proyectoFinal | /ProyectoFinalJaimeJimenez/ProyectoFinalJaimeJimenez/src/main/java/com/salesianostriana/dam/proyectofinaljaimejimenez/ProyectoFinalJaimeJimenezApplication.java | UTF-8 | 381 | 1.664063 | 2 | [] | no_license | package com.salesianostriana.dam.proyectofinaljaimejimenez;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProyectoFinalJaimeJimenezApplication {
public static void main(String[] args) {
SpringApplication.... | true |
9ab5cd49c9d731b0e408ef8cb3b83af778830648 | Java | YevgenRiaboshtan/eContact | /eContactData/src/main/java/org/econtact/data/filter/visitor/LessVisitor.java | UTF-8 | 509 | 2.1875 | 2 | [] | no_license | package org.econtact.data.filter.visitor;
import org.econtact.data.filter.impl.LessFilter;
public class LessVisitor extends AbstractVisitor<LessFilter> {
protected LessVisitor(VisitorContext visitorContext) {
super(visitorContext);
}
@Override
public void processFilter(LessFilter filter) {
... | true |
fd935f33fe8732669bc3333e90258122749248fe | Java | ivaylogeorgiev1/DominosPizza | /src/dominos/OOP/Menu.java | UTF-8 | 871 | 2.71875 | 3 | [] | no_license | package dominos.OOP;
import java.util.ArrayList;
public class Menu implements Iconstants{
private ArrayList<Product> orderablesList;
private ArrayList<Restaurant> restaurantsList;
private static Menu menuEdinstveno = null;
private Menu() {
orderablesList = new ArrayList<>();
restaurantsList = new ArrayList... | true |
bfb27b615c654e2ea0e335001b3774af711e03dc | Java | Asuka-Nana/Automation-Access-Control-System | /SpringBoot/src/main/java/com/example/tryagain/controller/CommentController.java | UTF-8 | 4,950 | 2.078125 | 2 | [] | no_license | package com.example.tryagain.controller;
import com.example.tryagain.dto.*;
import com.example.tryagain.mapper.CommentMapper;
import com.example.tryagain.mapper.NoticeMapper;
import com.example.tryagain.mapper.UserMapper;
import com.example.tryagain.pojo.User;
import com.example.tryagain.pojo.notice;
import com.exampl... | true |
daaca64d9629306a5d7b29e7ee670d11ba757f34 | Java | smallSand/CodeInterView | /src/com/lsl/code/ZipZag.java | UTF-8 | 442 | 2.71875 | 3 | [] | no_license | package com.lsl.code;
public class ZipZag {
public static void main(String[] args) {
}
public String getZipTag(String str,int rows){
StringBuilder result=new StringBuilder();
if(str.length()<=rows||rows==1){
return str;
}
int num=2*rows-2;
for(int i=0;i<rows;i++){
for(int j=0;j<str.length();j+... | true |
cdc23bf39aed983839fe58bcdcb5371ac871b8a0 | Java | PitikTrondol/JumpingGame | /core/src/com/afriandi/project/enums/ScreenEnums.java | UTF-8 | 1,369 | 2.3125 | 2 | [] | no_license | package com.afriandi.project.enums;
import com.badlogic.gdx.Screen;
import com.afriandi.project.screens.Credits;
import com.afriandi.project.screens.Gameplay;
import com.afriandi.project.screens.MainMenu;
import com.afriandi.project.screens.Paused;
import com.afriandi.project.screens.Result;
import com.afriandi.projec... | true |
a21eebc482ee665c86e4a730d5245457b54f89db | Java | AY2021S2-CS2103T-W15-3/JJIMY | /src/main/java/seedu/address/model/ReadOnlyBook.java | UTF-8 | 160 | 1.695313 | 2 | [
"MIT"
] | permissive | package seedu.address.model;
import javafx.collections.ObservableList;
public interface ReadOnlyBook<T extends Item> {
ObservableList<T> getItemList();
}
| true |
03367da2c52cec3617bc33700a40240b6e0e1c55 | Java | codeArtPesure/leetcode | /src/com/dengzhili/leetcode/Demo482.java | UTF-8 | 2,006 | 3.59375 | 4 | [] | no_license | package com.dengzhili.leetcode;
/**
* 给定一个密钥字符串S,只包含字母,数字以及 '-'(破折号)。N 个 '-' 将字符串分成了 N+1 组。
* 给定一个数字 K,重新格式化字符串,除了第一个分组以外,每个分组要包含 K 个字符,
* 第一个分组至少要包含 1 个字符。两个分组之间用 '-'(破折号)隔开,并且将所有的小写字母转换为大写字母。
*
* 给定非空字符串 S 和数字 K,按照上面描述的规则进行格式化。
*
* 示例 1:
*
* 输入:S = "5F3Z-2e-9-w", K = 4
*
* 输出:"5F3Z-2E9W"
*
* 解释:字符串 S 被分... | true |
86793dac39eea2e4c31c4699aeb5ffc6b20454d4 | Java | dtanh275/spring-boot | /spring-boot-cache/src/main/java/com/donkey/springboot/springbootcache/keygenerator/Witcher.java | UTF-8 | 409 | 2.28125 | 2 | [] | no_license | package com.donkey.springboot.springbootcache.keygenerator;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Witcher {
private long id;
private String name;
@Override
public... | true |
b3a54618c032107f1edd6984b0cb90142d6948df | Java | hellengithubtest/chess2 | /src/main/java/com/company/app/Player.java | UTF-8 | 1,550 | 3.078125 | 3 | [] | no_license | package com.company.app;
import com.company.app.factory.CreatePieces;
import com.company.app.factory.FactoryBlack;
import com.company.app.factory.FactoryPiece;
import com.company.app.factory.FactoryWhite;
import com.company.app.models.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
publ... | true |
adfe0384651cf0ed5999b3fd8917c3684976398a | Java | carter-ya/ToDoList_android | /app/src/main/java/com/ifengxue/android/todolist/response/TaskResponse.java | UTF-8 | 354 | 1.523438 | 2 | [] | no_license | package com.ifengxue.android.todolist.response;
import lombok.Data;
@Data
public class TaskResponse {
private Long createdAt;
private Long endedAt;
private Boolean empty;
private Long id;
private Long parentId;
private Integer priority;
private Long projectId;
private Long startedAt;
private String... | true |
20a6783728d63a79c38577b5117c875add479988 | Java | WINTERFELLS/codingoffer | /codingoffer/src/codingoffer/Solution64.java | GB18030 | 1,802 | 3.671875 | 4 | [] | no_license | package codingoffer;
/*
һmкnеķһ˴0,0ĸӿʼƶÿһֻңϣĸƶһ
Dzܽλ֮ʹkĸӡ 磬kΪ18ʱܹ뷽35,37Ϊ3+5+3+7 = 18
ǣܽ뷽35,38Ϊ3+5+3+8 = 19ʸûܹﵽٸӣ
*/
public class Solution64 {
public int movingCount(int threshold, int rows, int cols){
int res = 0;
if(threshold == 0){
return res;
}
int[][] num = new int[rows... | true |
e3e310036250d9f5d74d859ad7d1cc322236d100 | Java | shadowridgedev/dkpro-jwpl | /de.tudarmstadt.ukp.wikipedia.revisionmachine/src/main/java/de/tudarmstadt/ukp/wikipedia/revisionmachine/difftool/config/gui/dialogs/InputDialog.java | UTF-8 | 6,904 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | true |
7f0f71073bced24b9db4251da37efd94447ab606 | Java | lumanmann/DecoratorPatternPractice | /app/src/main/java/com/lumanman/decoratorpatternpractice/StringText.java | UTF-8 | 230 | 2.546875 | 3 | [] | no_license | package com.lumanman.decoratorpatternpractice;
public class StringText extends AbstractString {
public StringText(String str){
super(str);
}
public String getString() {
return this.string;
}
}
| true |
692ff958189aed75b9f252e88772f2a63745e562 | Java | score-server/movie-score | /src/main/java/ch/wetwer/moviedbapi/data/groupinvite/GroupDao.java | UTF-8 | 996 | 2.1875 | 2 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | package ch.wetwer.moviedbapi.data.groupinvite;
import ch.wetwer.moviedbapi.data.DaoInterface;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author Wetwer
* @project movie-score
*/
@Service
public class GroupDao implements DaoInterface<GroupInvite> {
private GroupRepository gro... | true |
8e2b1219fff325f8d44bbccbdc9c812d5f777baf | Java | maximignashov/mignashov | /chapter_001/src/main/java/ru/job4j/condition/Triangle.java | UTF-8 | 1,314 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | package ru.job4j.condition;
/**
* Класс, Point описывает точку в системе координат.
* @author mignashov
* @since 27.03.2017
* @version 2
*/
public class Triangle {
/**
* Объявление переменной a типа Point.
*/
private Point a;
/**
* Объявление переменной b типа Point.
*/
private Point b;
/**
* Объявление перем... | true |
128bb91b5963c49e751cd9d8242f3d2904ae46fe | Java | lorenzokyne/Metodi-Avanzati-di-Programmazione---Caso-di-studio-2017-2018 | /Codice Sorgente/KmeansServer/src/data/DiscreteAttribute.java | UTF-8 | 2,823 | 3.5625 | 4 | [] | no_license | package data;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
/**
* Classe che estende la classe Attribute e rappresenta un attributo discreto
* (categorico).
*
* @author Fernando
*
* @param <T>
* prametro generico che rappresenta il tipo di un attributo
* cat... | true |
8e893720555b68f6aedbae26907110e14735142c | Java | SeniorAdvisor/spring-data-cloudant | /src/main/java/org/springframework/data/cloudant/core/repository/CloudantRepositoryFactoryBean.java | UTF-8 | 1,509 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package org.springframework.data.cloudant.core.repository;
import com.google.gson.GsonBuilder;
import org.springframework.data.mapping.context.MappingContext;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport;
import org.springfr... | true |
f9b713c18d380c1b27e7bfec5daa5382d009e39b | Java | wttech/aet | /test-executor/src/main/java/com/cognifide/aet/executor/model/TestRun.java | UTF-8 | 3,342 | 2.3125 | 2 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | /**
* AET
*
* Copyright (C) 2013 Cognifide Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | true |
d97366949b9b8584f29322f25be30a98174f1e1b | Java | khalakuzamanrony/Chatting_App | /app/src/main/java/com/android/personalchat/Adapter/RequestAdapter.java | UTF-8 | 3,727 | 2.171875 | 2 | [] | no_license | package com.android.personalchat.Adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.a... | true |
03bfe010cbb6036e62acfe91fdff8bb9d8183451 | Java | sr0004/GUI2.0DynamicButtons | /src/main/SceneFrame.java | UTF-8 | 18,415 | 2.359375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package main;
import scene.Scene;
import javax.swing.JButton;
import main.EngineGame;
import scene.SceneTable;
import java.util.ArrayList;
/**
* SceneFrame extends the class JFrame and adds on extra features needed for... | true |
9642b73a0b2f065cc50710cfd4b44d6596cdfbd4 | Java | ajanaliz/Pacman | /src/uk/alij/mainengine/GameCanvas.java | UTF-8 | 1,383 | 2.78125 | 3 | [] | no_license | package uk.alij.mainengine;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
/**
* Created by Ali J on 3/7/2015.
*/
public class GameCanvas extends JComponent implements ComponentListener {
private Game game;
public GameCanvas() {
... | true |
ee28f1e13165e15340c0a9331396953997a8a788 | Java | czy920/DCOPSolverInfrastructure | /src/edu/cqu/core/FinishedListener.java | UTF-8 | 168 | 1.703125 | 2 | [] | no_license | package edu.cqu.core;
import edu.cqu.result.Result;
/**
* Created by dyc on 2017/6/20.
*/
public interface FinishedListener {
void onFinished(Result result);
}
| true |
ff0859080dc210e3d92f182974c9cb6377268595 | Java | liuchengts/bassis | /bassis-data/src/main/java/com/bassis/data/common/Declaration.java | UTF-8 | 221 | 1.945313 | 2 | [] | no_license | package com.bassis.data.common;
/**
* 常量声明
*/
public interface Declaration {
/**
* 最小连接数
*/
int min_count = 10;
/**
* 最大连接数
*/
int max_count = 20;
}
| true |
6f4521986b81c88c1582ebfd3542aad8e3bbca28 | Java | QAInsights/kraken | /backend/commons/analysis/analysis-client-properties/src/main/java/com/kraken/analysis/client/properties/AnalysisClientPropertiesConfiguration.java | UTF-8 | 723 | 1.929688 | 2 | [
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | package com.kraken.analysis.client.properties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@S... | true |
8340e2f691284b032942a05522b13ad8f8087cb1 | Java | vipncc02153/biz-study | /src/main/java/com/everhomes/learning/demos/cache/zxm/DataUtils/DataCache.java | UTF-8 | 557 | 2.359375 | 2 | [] | no_license | package com.everhomes.learning.demos.cache.zxm.DataUtils;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author feiyue
* @className DataCache
* @description
* @date 2018/7/21
**/
public class DataCache {
/**
* 定义一个 ConcurrentHashMap 用来存放缓存
*/
private static Map<Str... | true |
be310431a016f000665cf70a63a21cc34be53931 | Java | xhselina/framework | /framework-test/src/main/java/org/china/framework/spring/pattern/factory/factorys/impl/MailSenderImpl.java | UTF-8 | 352 | 2.1875 | 2 | [] | no_license | package org.china.framework.spring.pattern.factory.factorys.impl;
import org.china.framework.spring.pattern.factory.Sender;
/**
* @version Ver 1.0
* @Author <a href="mailto:jeffreyji@yeah.net">jeffrey</a>
* @Date 2016/8/23 17:31.
*/
public class MailSenderImpl implements Sender{
@Override
public String se... | true |
a27cefc1236e033996a9ff51017f16504b29ddcc | Java | AlyMoanes2018/Android | /app/src/main/java/com/android/agzakhanty/sprints/two/adapters/HomeAdsAdapter.java | UTF-8 | 3,598 | 2.046875 | 2 | [] | no_license | package com.android.agzakhanty.sprints.two.adapters;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.support.v7.widget.RecyclerView;
import android.util.Base64;
import android.view.LayoutInflater;
imp... | true |
4dfcdf6b1f90c4439bd0bd6f491875356104ab50 | Java | mhnavid/Ration-Distribution | /app/src/main/java/com/headblocks/rationdistribution/api/ApiInterface.java | UTF-8 | 706 | 2.03125 | 2 | [] | no_license | package com.headblocks.rationdistribution.api;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
publ... | true |
2febacbf16d13854620633e4a07a9f15731977c6 | Java | melonw123/xzproject | /teahouse-core/src/main/java/cn/com/shopec/core/equipment/dao/EquipmentBrandDao.java | UTF-8 | 462 | 2.078125 | 2 | [] | no_license | package cn.com.shopec.core.equipment.dao;
import java.util.List;
import cn.com.shopec.core.common.BaseDao;
import cn.com.shopec.core.equipment.model.EquipmentBrand;
/**
* 设备品牌表 数据库处理类
*/
public interface EquipmentBrandDao extends BaseDao<EquipmentBrand,String> {
/**
* 编辑验证设备品牌名称不唯一
* 查询除过当前不属于该设备编号的数据
*/
L... | true |
b8601da1defd0adac52dee968bc015d4a28475d1 | Java | luocunhao/rest-demo | /src/main/java/xlink/rest/demo/rest/exception/Rest404StatusException.java | UTF-8 | 446 | 2.140625 | 2 | [] | no_license | package xlink.rest.demo.rest.exception;
import io.netty.handler.codec.http.HttpResponseStatus;
public final class Rest404StatusException extends RestStatusException {
/**
*
*/
private static final long serialVersionUID = 4733869007263094763L;
public Rest404StatusException(int errorcode, String msg) {
su... | true |
1d4ddd0e447f6e5bf9bd1c9062d24c56543e23e5 | Java | cengover/IDAMS | /src/iDAMS/ACO.java | UTF-8 | 3,167 | 2.71875 | 3 | [] | no_license | package iDAMS;
import java.util.Iterator;
import java.util.LinkedList;
import repast.simphony.engine.environment.RunEnvironment;
import repast.simphony.parameter.Parameters;
public class ACO {
int id;
public LinkedList<PCP> pcpList;
public LinkedList<Bill> outstandingBills;
// Interventions
public double offl... | true |
9c048d04b2a4a14ee84e2b49f6b061ae6f41ce78 | Java | GodLike4814/1904-hygl | /hygl-zhh/src/main/java/com/fh/utils/CookieUtil.java | UTF-8 | 1,149 | 2.9375 | 3 | [] | no_license | package com.fh.utils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CookieUtil {
/**
* 写cookie
*/
public static void writeCookie(String name, String value, String domain, int maxage, HttpServletResponse res... | true |
540d0321ae9fdb6ec7adb69914ab49cecfe3a670 | Java | Noizept/apitweetspring | /src/main/java/com/sergio/restapi/Repository/Animenews/IAnimeNewsRepo.java | UTF-8 | 411 | 1.9375 | 2 | [] | no_license | package com.sergio.restapi.Repository.Animenews;
import com.sergio.restapi.Entity.AnimeNew;
import java.util.List;
public interface IAnimeNewsRepo {
List<AnimeNew> getAll();
AnimeNew getById(Integer Id);
void save(AnimeNew entity);
void saveAll(List<AnimeNew> Entities);
Integer count();
void... | true |