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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ae09fc73894545190099f5518990d6012fa8da31 | Java | BechirAhmed/Ecommerce | /AirbnbProject/app/src/main/java/gr/uoa/di/airbnbproject/ResidenceActivity.java | UTF-8 | 17,200 | 1.742188 | 2 | [] | no_license | package gr.uoa.di.airbnbproject;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.text... | true |
91a134cda79d951e00ca63575884502dd6b2f88d | Java | beifangche11/AndroidPluginDemo | /app/src/main/java/cn/novate/plugin/MainActivity.java | UTF-8 | 2,664 | 2.421875 | 2 | [] | no_license | package cn.novate.plugin;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Environment;
import android.os.RemoteException;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.... | true |
bfa4d79151176ce71904a21df80317102967d1be | Java | Sharankrishna1987/CurrencyConverterEngine | /src/test/java/com/org/anz/currencyconverter/cache/CrossViaMatrixDataProviderImplTest.java | UTF-8 | 3,208 | 2.140625 | 2 | [] | no_license | package com.org.anz.currencyconverter.cache;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
... | true |
b48caf5e3f2e06168e51e9c458b6f98d27510f58 | Java | BastianBertram/BeyondLand | /src/gui/VertexTable.java | UTF-8 | 4,223 | 2.859375 | 3 | [] | no_license | package gui;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import application.SpaceModel;
import surfaces.NURBS;
import surfaces.Point... | true |
c38fa96cf0a34a49982df33954411044575d5689 | Java | timqu1231/Code_Review | /Codes/Algrithm/RemoveDuplicates_Feiyang.java | UTF-8 | 3,983 | 3.328125 | 3 | [] | no_license | // Name: <Feiyang>
// Class: CS 5040
// Term: Summer 2018
// Instructor: Dr. Haddad
// Assignment: 4
//import java.util.Scanner;
//import java.io.File;
import java.io.*;
import java.util.*;
public class RemoveDuplicates_Feiyang{
public static void main(String[] args) thro... | true |
7c713c83b1eec6dfc600994827c146da0c83f7ad | Java | fanmujin/pool | /src/main/java/com/pibigstar/dao/ClazzMapper.java | UTF-8 | 533 | 1.960938 | 2 | [] | no_license | package com.pibigstar.dao;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.pibigstar.domain.Clazz;
public interface ClazzMapper {
int deleteByPrimaryKey(Long id);
int insert(Clazz record);
int insertSelective(Clazz record);
Clazz selectByPrimaryKey(Long id);
in... | true |
37b98263ec7f382c4c934cd43aa96ec3ea8ed7b1 | Java | yaozd/sq-grpc | /sq-rpc-protocol/sq-rpc-grpc/src/main/java/com/sq/protocol/grpc/Interceptor/GrpcClientInterceptor.java | UTF-8 | 3,132 | 2.15625 | 2 | [] | no_license | package com.sq.protocol.grpc.Interceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import com.sq.common.Constants;
import com.sq.common.URL;
import com.sq.common.extension.ExtensionLoader;
import com.sq.common.utils.StringUtils;
import io.grpc.CallOptions;
import io.grpc.Channel... | true |
9d864a2f8884f071bf223834a52cc99813d74a65 | Java | yaddalabhargav/bhargavyaddala | /Task4.java | UTF-8 | 1,314 | 3.296875 | 3 | [] | no_license | package aug3;
//4)Work with Set Interface for the same object created in Task2 and eliminate duplicates in it.*/
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class Task4 {
public static void main(String[] args) {
Set<Bus> busList = new HashSet<>();
busList.a... | true |
fa563de8bc10aa2b05d8c5797d8ee0a5fc5f4e14 | Java | NipunChathuranga/Native-Hibernate-JPA-Hospital-Management-System | /Layered_HMS/src/lk/ijse/dep/hms/controller/AdminDashBoardFormController.java | UTF-8 | 5,698 | 2.25 | 2 | [] | no_license | package lk.ijse.dep.hms.controller;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import java.... | true |
94505bb0a4745cc75120da67c9b70c6daa48973c | Java | wzw1998/springInAction | /Chapter_04/src/main/java/com/zexing/aspectj/trackPlayCount/CDPlayer.java | UTF-8 | 485 | 2.609375 | 3 | [] | no_license | package com.zexing.aspectj.trackPlayCount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class CDPlayer {
/**
*
* Created by Joson on 2/25/2019.
*/
@Autowired
private CompactDisc cd;
public void playTra... | true |
055db8b327476d33ac563e10d4278669050b7c57 | Java | mfqh/CityJ | /cityj/src/main/java/com/whut/cityj/controller/ManagerController.java | UTF-8 | 4,315 | 2.421875 | 2 | [] | no_license | package com.whut.cityj.controller;
import com.whut.cityj.bean.ExamPaper;
import com.whut.cityj.bean.ExamQuestion;
import com.whut.cityj.bean.Manager;
import com.whut.cityj.service.ExamPaperService;
import com.whut.cityj.service.ManagerService;
import com.whut.cityj.util.PaperUtil;
import com.whut.cityj.util.StateUtil;... | true |
229ab8a0b24e1bea3c084aa8e50cb99114be55d5 | Java | afodor88/UdemyJavaMasterclass | /PoundsToKg/src/app/Main.java | UTF-8 | 426 | 3.21875 | 3 | [] | no_license | package app;
public class Main {
public static void main(String[] args) {
double numberOfPounds = 200d;
double convertedKilograms = numberOfPounds * 0.45359237d;
System.out.println("Converted kilograms = " + convertedKilograms);
double pi = 3.1415927d;
double anotherNumber ... | true |
bf3ee84024f879910c2706d65bbc8792a732a437 | Java | colesigoyi/JavaTest | /src/test/com/qf/API/Comparable/DogComparator.java | UTF-8 | 327 | 2.625 | 3 | [] | no_license | package test.com.qf.API.Comparable;
import java.util.Comparator;
/**
* @ program: java_study
* @ author: TaoXueFeng
* @ create: 2019-06-17 19:53
* @ desc:
**/
public class DogComparator implements Comparator<Dog> {
@Override
public int compare(Dog o1, Dog o2) {
return o1.getAge()-o2.getAge();
... | true |
b1c1bd511810ef721e461a3f7699c32a3cf7a422 | Java | csitedexperts/CSE1322S02_Spring2019 | /src/recursiveMethods/RecursiveStringReverse.java | UTF-8 | 462 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | package recursiveMethods;
/*Example of Recursive Method */
public class RecursiveStringReverse {
public static void main(String args[]) {
String hello = "Hello World!";
System.out.print("Reverse of the string '"+ hello +"' is : "+ reverse(hello));
}
static String reverse(String str) {
if (str == null || ... | true |
8b28cbbbe764bad9b9119f4a983f7569f7c187dd | Java | BlueObelisk/pub-crawler | /data/src/main/java/wwmm/pubcrawler/model/id/PublisherId.java | UTF-8 | 338 | 2.328125 | 2 | [] | no_license | package wwmm.pubcrawler.model.id;
/**
* @author Sam Adams
*/
public class PublisherId extends Id<PublisherId> {
public PublisherId(final String value) {
super(value);
if (value.contains("/") || value.length() == 0) {
throw new IllegalArgumentException("Bad publisher ID: ["+value+"]")... | true |
0d2c279cbb4bb3ae36ec0a9aed1284a929c44653 | Java | aushakov/Sirius.Vault.Guardian | /src/main/java/io/swisschain/services/OdmRuleExecutor.java | UTF-8 | 7,526 | 1.945313 | 2 | [
"MIT"
] | permissive | package io.swisschain.services;
import io.swisschain.domain.policies.RuleExecutionOutput;
import io.swisschain.domain.transfers.TransferValidationRequest;
import io.swisschain.domain.validators.Validator;
import io.swisschain.domain.validators.ValidatorResponse;
import io.swisschain.odm.OdmClient;
import io.swisschain... | true |
c89e456dc2db7ee19fc866fce83e9f07d3093f39 | Java | JanGroot/occurrent | /application/service/blocking/src/main/java/org/occurrent/application/service/blocking/PolicySideEffect.java | UTF-8 | 4,613 | 3.359375 | 3 | [] | no_license | package org.occurrent.application.service.blocking;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* A utility that makes it easier to execute policies (a.k.a triggers) as side-effects after events are writt... | true |
4a4614dde4c98e9db5b9ffcd063d6fb8839ec140 | Java | xiaoshuaifeng/stu | /Blog/src/main/resources/cn/tedu/controller/LogoutServlet.java | GB18030 | 702 | 2.234375 | 2 | [] | no_license | package cn.tedu.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@SuppressWarnings("serial")
public class L... | true |
5e71d3f04f74321a37762bf7e067b648b92efe16 | Java | xuzhiyong017/comego | /app/src/main/java/protocol/Result.java | UTF-8 | 4,165 | 2.078125 | 2 | [] | no_license | // Code generated by Wire protocol buffer compiler, do not edit.
// Any Question Please Contact: jerryzhou@outlook.com
package protocol;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoField;
import static com.squareup.wire.Message.Datatype.BOOL;
import static com.squareup.wire.Message.Datatype.ENUM;
... | true |
abf256ddaa57ec0acbab562e745048dc41c64940 | Java | pabllo007/DDA | /Operacional/OperacionalEJB/src/br/com/sicoob/sisbr/sicoobdda/operacional/persistencia/dao/TipoMensagemDao.java | ISO-8859-1 | 1,588 | 2.0625 | 2 | [] | no_license | /**
* Projeto: SicoobDDA
* Camada Projeto: sdda-operacional-ejb
* Pacote: br.com.sicoob.sisbr.sicoobdda.operacional.persistencia.dao.impl
* Arquivo: TipoGradeHorariaDDADao.java
* Data Criao: Ago 18, 2016
*/
package br.com.sicoob.sisbr.sicoobdda.operacional.persistencia.dao;
import ja... | true |
6c25226d97a981a6d2b8e57322c936b0ff67b6c7 | Java | rdg8/AP | /AP/src/Lista2/Exercicio16.java | UTF-8 | 1,637 | 3.9375 | 4 | [] | no_license | /*
* Leia um valor inteiro N. Este valor será a quantidade de valores que serão
* lidos em seguida do usuário. Para cada valor lido, mostre uma mensagem em
* português dizendo se este valor lido é par (PAR), ímpar (ÍMPAR),
* positivo (POSITIVO) ou negativo (NEGATIVO). No caso do valor ser igual a zero
* (0... | true |
f31fcbebfd33a9d96e43268f02f49067497993aa | Java | vohsalab/Stargazer | /app/src/main/java/com/firstsputnik/stargazer/Provider/meet/MeetModel.java | UTF-8 | 401 | 1.945313 | 2 | [] | no_license | package com.firstsputnik.stargazer.Provider.meet;
import com.firstsputnik.stargazer.Provider.base.BaseModel;
import java.util.Date;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* meet dates.
*/
public interface MeetModel extends BaseModel {
/**
* date and ti... | true |
dcadbc6c32b1d4cee9012331474223bb94163712 | Java | cwomersley/Sirona | /app/src/main/java/com/example/chris/strokere/ExerciseView.java | UTF-8 | 15,318 | 2.234375 | 2 | [] | no_license | package com.example.chris.strokere;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.CountDownTimer;
import android.os.Handler;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
import android.widget.ImageButton;
im... | true |
509f51afdad998c2a8e62bab1bb9f89fbb5299e1 | Java | barry3377/Ussd | /src/main/java/com/ussd/app/Ussd/entities/UserTransaction.java | UTF-8 | 980 | 2.0625 | 2 | [] | no_license | package com.ussd.app.Ussd.entities;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;
@Entity
public class UserTransaction {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String msisdn;
@OneToMany(mappedBy = "userTransaction", c... | true |
b5ce2fca7ea5eb9092a37a88eae98715d2d0d6f1 | Java | StempG/enzo-demo | /com/enzo/finece/本息计算器2.java | UTF-8 | 23,512 | 2.59375 | 3 | [] | no_license | package com.enzo.finece;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Objects;
import java.util.Optional;
import java.util.TreeMap;
public class 本息计算器2 {
@Data
@AllArgsConstructor
static class 模型 {
private Bi... | true |
626a75e5d87d26d734ce2bf22f505b575b1c0659 | Java | EMENDEZ93/java-8 | /MethodReference/src/main/java/org/gradle/methodreference/Main.java | UTF-8 | 312 | 2.859375 | 3 | [] | no_license | package org.gradle.methodreference;
import java.util.function.Consumer;
public class Main {
private static void print(String s, Consumer<String> c) {
c.accept(s);
}
public static void main(String... args) {
int a = 1, b = 2;
print(a + " + " + b + " = ", s -> System.out.println(s) );
}
}
| true |
d551bb7c20797e612758ece29d493446c8a07103 | Java | Leilaaaaa/sm | /src/ru/kpfu/icmit/clientsm/ServerResponse.java | UTF-8 | 1,924 | 2.640625 | 3 | [] | no_license | package ru.kpfu.icmit.clientsm;
import java.io.InputStream;
import java.util.Scanner;
/**
* Класс для обработки ответа сервера
* Svechnikova
*/
/* Пример:
HTTP/1.1 200 OK
Connection: close
Date: Sat Nov 25 00:49:18 MSK 2017
Server: ICMIT/0.0.1
Content-Type: application/json
Content-Lenght: 56
... | true |
6fda4bb94a7a2953fa56fdc8193631f3339b8053 | Java | MartinPerez6655321/FormAr | /src/main/java/presentacion/controlador/ControladorPanelGestionMisCursadas.java | UTF-8 | 4,825 | 2.328125 | 2 | [] | no_license | package presentacion.controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import dto.CursadaDTO;
import modelo.ModeloCursos;
import modelo.ModeloPersonas;
import modelo.ModeloSala;
import presentacion.components.Modal;
import presentacion.components.tabla.FilterPanel;
import presentac... | true |
9d5ba65423808693ea65b85413d8afa11c28e8ca | Java | 98e40cbf/9451 | /bill/src/x/y/z/bill/service/account/LoginHistoryService.java | UTF-8 | 1,781 | 2.125 | 2 | [] | no_license | package x.y.z.bill.service.account;
import java.util.Date;
import java.util.concurrent.atomic.AtomicReference;
import x.y.z.bill.mapper.account.LoginHistoryDAO;
import x.y.z.bill.model.account.LoginHistory;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.actor.UntypedActor;
import io.alpha.... | true |
9d503318a02108d7e12abcff98649dfa42fdfbe2 | Java | zeling1005/SchoolMarket | /app/src/main/java/com/peter/schoolmarket/mvp/more/notice/add/INoticeAddView.java | UTF-8 | 322 | 1.648438 | 2 | [] | no_license | package com.peter.schoolmarket.mvp.more.notice.add;
/**
* Created by PetterChen on 2017/5/7.
*/
public interface INoticeAddView {
void noticeAddSuccess();//发布商品成功
void whenFail(String errorMsg);//发生异常
void showProgress();//显示进度条
void hideProgress();//隐藏进度条
}
| true |
232b69e090f2720b7eb9d51db3b458bcb086f2c9 | Java | hieud1245k/Java-SpringBoot-CodeBase | /src/main/java/com/fcn/fanscoin/exception/BadRequestAlertException.java | UTF-8 | 1,531 | 2.40625 | 2 | [] | no_license | package com.fcn.fanscoin.exception;
import com.fcn.fanscoin.constant.ErrorConstants;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
public class BadRequestAlertException
extends AbstractThrowableProb... | true |
672d7097925d0cc4801b5a2dfa301523b1e2b68d | Java | wallbase/red5-google-code | /java/server/trunk/src/test/java/org/red5/server/api/ServiceUtilsTest.java | UTF-8 | 7,595 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.red5.server.api;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import junit.framework.JUnit4TestAdapter;
import net.sourceforge.groboutils.junit.v1.M... | true |
928e7cbc40d4c47f5e0fac507011b31ab7bc29c2 | Java | Nagul/Ssac | /Ssac/src/environnement/ObjetBosquet.java | UTF-8 | 985 | 2.609375 | 3 | [] | no_license | package environnement;
import java.util.ArrayList;
import agent.agents.Agent;
import agent.raisonnement.EventType;
public class ObjetBosquet extends EnvObjectImpl {
private int reste ;
public ObjetBosquet(Coordonnee co) {
super(co);
type = TypeObject.BOSQUET ;
reste = 30 ;
}
@Override
public ArrayList... | true |
0dd143da5ef9843f65d5a5745df7a995a94e6c7e | Java | huangxy1994/processes_and_threads | /src/test/java/MyTest.java | UTF-8 | 397 | 2.03125 | 2 | [] | no_license | import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @Description
* @Author 黄晓阳
* @Date 2019-10-22 19:15
*/
@Slf4j
public class MyTest {
public static void main(String[] args) {
// Logger logger = LoggerFactory.getLogger("response");
// logger.info("... | true |
af8e17e745fe87984acf6f71c0ea635c268efd4a | Java | gbif/content-ws | /src/main/java/org/gbif/content/resource/SyncResource.java | UTF-8 | 5,554 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | true |
5aff6f88f672775854cec03b604b25b17aecc6f0 | Java | linxianqing/AndroidLingBang | /app/src/main/java/lin/com/androidlingbang/util/FileUtil.java | UTF-8 | 1,083 | 2.484375 | 2 | [] | no_license | package lin.com.androidlingbang.util;
import android.content.Context;
import android.content.res.AssetManager;
import com.orhanobut.logger.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by linxianqing on 2017/7/11.
*/
public class FileUtil {
... | true |
36ebd2658a31912d6caaf3c37493108a5db7cc21 | Java | aymenbnmehrez/PiSpring | /ConsomiTounsi/src/main/java/tn/consomiTounsi/spring/controller/OrderController.java | UTF-8 | 714 | 1.882813 | 2 | [] | no_license | package tn.consomiTounsi.spring.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframewor... | true |
5e1bc3752c00afc52b194372014adb46e538af49 | Java | pareshdere/MyProjects | /Book_Shop/src/custom_exec/BookShopHandlingException.java | UTF-8 | 198 | 2.015625 | 2 | [] | no_license | package custom_exec;
@SuppressWarnings("serial")
public class BookShopHandlingException extends Exception{
public BookShopHandlingException(String errorMesg) {
super(errorMesg);
}
}
| true |
bd21bac6f036b99edfaae40025d1116f78518ea9 | Java | Amangoel998/Feedback-Management | /Feedback Management System Spring Boot/src/main/java/com/cg/feedback/dto/ProgramDTO.java | UTF-8 | 1,741 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.cg.feedback.dto;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.persistence.Table;
@Entity
@Table(name="programs")
@NamedNativeQueries({
@NamedNativeQuery(
... | true |
582c0f4c008b650e403714c051ba89d21a42fcc3 | Java | DmonicAct/AEvent-Spring | /src/main/java/com/pucp/aevent/entity/request_objects/RespuestaFormularioxPostulacionRequest.java | UTF-8 | 807 | 1.773438 | 2 | [] | no_license | package com.pucp.aevent.entity.request_objects;
import java.io.Serializable;
import java.util.List;
import com.pucp.aevent.entity.Postulacion;
import com.pucp.aevent.entity.RespuestaFormulario;
public class RespuestaFormularioxPostulacionRequest implements Serializable{
private Postulacion postulacion;
private L... | true |
b907883719a5bf4092e659fd6e33e787fca59b20 | Java | pentaho/data-access | /core/src/test/java/org/pentaho/platform/dataaccess/datasource/api/AnalysisServiceXxeAttackTest.java | UTF-8 | 3,998 | 1.8125 | 2 | [
"Apache-2.0",
"LGPL-2.1-only"
] | permissive | /*!
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you ... | true |
c00fe165274405a3502a1f989f2df5c719e0701f | Java | charles-oder/rest-fetcher-android | /restfetcher/src/test/java/us/oder/restfetcher/RestApiBaseTest.java | UTF-8 | 9,010 | 2.296875 | 2 | [] | no_license | package us.oder.restfetcher;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatcher;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import java.util.HashMap;... | true |
21675d88eec0c78313c8e08de7d20a016f5a2487 | Java | seonghyeon955/test | /src/main/java/com/spring/biz/book/ContentOrderVO.java | UTF-8 | 1,188 | 2.640625 | 3 | [] | no_license | package com.spring.biz.book;
public class ContentOrderVO {
private int content_idx, book_no, content_order;
private String content;
public ContentOrderVO() {
System.out.println("ContentOrderVO 생성");
}
public ContentOrderVO(int content_idx, int book_no, int content_order, String content) {
super();
this... | true |
c3b2e25e49a0c940d597f2686e15aacf3e39a180 | Java | bellmit/jigsaw-cms | /portal/source/portlet/src/com/fulong/portlet/acegi/PortalFilterSecurityInterceptor.java | UTF-8 | 971 | 1.773438 | 2 | [] | no_license | /**
*
*/
package com.fulong.portlet.acegi;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.springframework.security.intercept.web.FilterSecurityInterceptor;
/**
*
* <p>
*... | true |
ffebfe43e84bd88ca99a4efd86a6c524af5667a5 | Java | oliveirafernando/java8-spring-swagger-docker-api | /src/main/java/ca/shopify/backend/challenge/controller/ProductController.java | UTF-8 | 6,782 | 2.21875 | 2 | [] | no_license | package ca.shopify.backend.challenge.controller;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.ui.Model;
import org.spri... | true |
9bd907fe607a4bce787698ab5cbfbe8b37239d4f | Java | rlynch7321/cs1660-finalproject | /Docker/TermSearchGUI.java | UTF-8 | 8,392 | 2.796875 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TermSearchGUI implements ActionListener
{
JFrame window;
Container content;
JPanel cards, panelSelectFiles, panelSelectAction, panelEnterSearchTerm, panelSearchResults, panelEnterNValue, panelTopNResults;
JCheckBox checkboxHug... | true |
0dc2c21b89829b0bba5cb925ed3a107c65059496 | Java | kelu124/pyS3 | /android/support/design/widget/CircularBorderDrawable.java | UTF-8 | 5,306 | 2.09375 | 2 | [
"MIT"
] | permissive | package android.support.design.widget;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.graphics.RectF;... | true |
1d63fb32074008ec5bf080b177cdee9a2c182d0e | Java | zacharygoold/CS372-HW03 | /HW03/.metadata/.plugins/org.eclipse.core.resources/.history/9a/c09ef01e9ad700161aeca8594483d21c | UTF-8 | 473 | 3.078125 | 3 | [] | no_license | import java.util.ArrayList;
/**
* This models the CityHall
* Here their is an array that holds the police currently in CityHall
* @author zgoold17
*
*/
public class CityHall extends Building {
ArrayList<Police> CityHall = new ArrayList();
public CityHall(String name, String address){
setName(name);
setAd... | true |
f77096d7c347475817e4d2dfbc1cda1160499e39 | Java | martinpg2001/xcase | /platform/src/java/com/xcase/open/transputs/UpdateMattersRequest.java | UTF-8 | 364 | 1.726563 | 2 | [] | no_license | /**
* Copyright 2016 Xcase All rights reserved.
*/
package com.xcase.open.transputs;
import com.xcase.open.impl.simple.core.UpdateMatterData;
/**
*
* @author martin
*/
public interface UpdateMattersRequest {
UpdateMatterData[] getUpdateMatterDataArray();
void setUpdateMatterDataArray(Upd... | true |
5d150d247b066bdddd8d6e8f87f3b57c72d4d0be | Java | WilliamGai/demo | /demo-app/src/main/java/com/sonic/website/app/luckydraw/LuckyDrawType.java | UTF-8 | 843 | 2.6875 | 3 | [] | no_license | package com.sonic.website.app.luckydraw;
import java.util.HashMap;
import java.util.Map;
/**
* 是否互斥
*/
public enum LuckyDrawType {
REPEAT((byte) 1, "可以重复"),
NO_REPEAT((byte) 2, "不可以重复");
public final byte type;
public final String name;
private final static Map<Byte, LuckyDrawType... | true |
24d580e77e69ab5298a4ff001f75fe00fe046e7b | Java | efeozkesici/ShapeIterator | /Test/Iterator/SquareTest.java | UTF-8 | 711 | 3.15625 | 3 | [] | no_license | package Iterator;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class SquareTest {
@Test
public void calculateArea() {
double width = 5;
double realAnswer = width * width;
Square square = new Square(3,4,5);
double ans... | true |
7b2d41639f111546c921e5596d7000d7119e9d46 | Java | dengzhicheng092/Datoo | /app/src/main/java/com/angopapo/datoo/modules/cardstackview/internal/AnimationSetting.java | UTF-8 | 293 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.angopapo.datoo.modules.cardstackview.internal;
import android.view.animation.Interpolator;
import com.angopapo.datoo.modules.cardstackview.Direction;
public interface AnimationSetting {
Direction getDirection();
int getDuration();
Interpolator getInterpolator();
}
| true |
a55c5a0ae543ba32e4c99df8bfb2dbeef02bf8a3 | Java | ossaw/jdk | /src/javax/sql/rowset/spi/TransactionalWriter.java | UTF-8 | 2,909 | 2.28125 | 2 | [] | no_license | /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package javax.sql.rowset.spi;
import java.sql.SQLException;
import java.io.Reader;
import javax.sql.RowSetWriter;
import javax.sql.rowset.*;
import java.sql.Save... | true |
fed495a7cde064446f1aedcfe42d58a1d7b9e815 | Java | singh-sardar/Kalk-java | /src/kalk/LibrettoEsami.java | UTF-8 | 7,152 | 2.984375 | 3 | [] | no_license | package kalk;
public class LibrettoEsami extends VettoreGenerico<Esame>{
private String nomeStudente, cognomeStudente;
private int matricolaStudente;
private int targetCFU; //rappresenta il numero totale di CFU
private int totaleCFU; //rappresenta i CFU acquisiti
public LibrettoEsami(String nom... | true |
1acd8a664dce67e1105bed353de9ca1ef0b309c3 | Java | potchi23/attendanceProject | /src/utils/SQLUtils.java | UTF-8 | 6,265 | 2.75 | 3 | [] | no_license | package utils;
import java.sql.*;
import java.util.TimeZone;
public class SQLUtils {
private Statement _stmt;
private Connection _con;
public static enum ATTENDANCE_COLUMNS {NULL, NAME, MIDDLENAME, SURNAME, GROUP, TS};
public SQLUtils() {
}
public void connect(String client, String host,... | true |
9b87b187e3e84a5272027b6df698eda798d16beb | Java | BANEdesign/Case_Study_App | /app/src/main/java/com/target/dealbrowserpoc/dealbrowser/api/RetrofitInterface.java | UTF-8 | 257 | 1.75 | 2 | [] | no_license | package com.target.dealbrowserpoc.dealbrowser.api;
import io.reactivex.Observable;
import retrofit2.http.GET;
/**
* created by bryonnabaines on 2020-01-14
*/
public interface RetrofitInterface {
@GET("deals")
Observable<DealsResponse> getDeals();
}
| true |
218bc07a5bee2865cd38462135eb5f728f39f61d | Java | health-and-care-developer-network/fhir-reference-server | /model-utils/src/main/java/uk/nhs/fhir/data/structdef/tree/cache/SlicingDiscriminatorCacher.java | UTF-8 | 7,823 | 2.125 | 2 | [] | no_license | package uk.nhs.fhir.data.structdef.tree.cache;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import com.google.common.collect.Lists;
import uk.nhs.fhir.data.structdef.BindingInfo;
import... | true |
0dc38e708e9dd4914fc372d68e11f18d78cfae28 | Java | 252319634/boluogamespay | /app/src/main/java/com/game/helper/activity/community/PersonalDynamicActivity.java | UTF-8 | 8,378 | 1.789063 | 2 | [] | no_license | package com.game.helper.activity.community;
import android.content.Context;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageView;
im... | true |
21f0d2b697f4c7d4940225381fd681bdb8bddd94 | Java | florin-b/LSFPRD | /src/beans/ArticolCant.java | UTF-8 | 821 | 1.976563 | 2 | [] | no_license | package beans;
public class ArticolCant extends ArticolDB {
private String dimensiuni;
private String caract;
private String tipCant;
private String ulStoc;
private String depozit;
public String getDimensiuni() {
return dimensiuni;
}
public void setDimensiuni(String dimensiuni) {
this.dimensiuni = dimen... | true |
4b6df218febdb05a842c656de645d39d096db121 | Java | kustomzone/ExplorViz | /src/explorviz/visualization/main/PageControl.java | UTF-8 | 172 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package explorviz.visualization.main;
public interface PageControl {
public void fadeInSpinner();
public void fadeOutSpinner();
public void setView(String result);
}
| true |
dc11d87cba3fa76b161d7ab6a109933ff7602bdd | Java | joko19/pahamApp | /app/src/main/java/com/jack/paham/model/Record.java | UTF-8 | 823 | 2.5 | 2 | [] | no_license | package com.jack.paham.model;
public class Record {
private String name, address, score, num;
public Record() {
}
public Record(String name, String address, String score) {
this.name = name;
this.address = address;
this.score = score;
}
public String getName() {
... | true |
c0bb152586dcdbb7c26e3112ec316b329f563d74 | Java | hermes-mandirihackathon/ecash-toll | /app/src/main/java/com/mandiriecash/ecashtoll/services/responses/LoginResponse.java | UTF-8 | 771 | 2.171875 | 2 | [] | no_license | package com.mandiriecash.ecashtoll.services.responses;
public class LoginResponse {
String status;
String message;
String token;
String msisdn;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
... | true |
906b7f692a333cf1e527ec1f36ba7b82ad45ae24 | Java | zhangbing123/spring-study | /spring-zb/src/main/java/com/zb/study/extend/TestBeanPostProcessor.java | UTF-8 | 695 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.zb.study.extend;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
/**
* @description: bean的后置处理器 扩展点
* 在实例化之后 属性赋值之后 初始化之前
* @author: zhangbing
* @create: 2020-11-20 16:32
**/
public class TestBeanPostProcessor implements BeanPostPro... | true |
5c6919bd3e4a564275736b3c91fe2883233680f9 | Java | bellmit/wallet | /rfwallet_server_sdk/src/main/java/com/rfchina/wallet/sdk/model/WalletPerson.java | UTF-8 | 990 | 1.9375 | 2 | [] | no_license | package com.rfchina.wallet.sdk.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
import java.util.Map;
import java.util.Date;
import java.util.ArrayList;
/**
* WalletPerson
*/
@Data
public class WalletPerson {
@ApiModelProperty("创建日期")
private String creat... | true |
48822197d654d74ce17c2fbff2dc42b75018332f | Java | XuJiaoJie/RdcBlog | /app/src/main/java/com/android/rdc/rdcblog/personalcenter/view/PCAboutAct.java | UTF-8 | 986 | 2.015625 | 2 | [] | no_license | package com.android.rdc.rdcblog.personalcenter.view;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.android.rdc.rdcblog.R;
/**
* Created by Administrator on 2016/7/27 0027.
... | true |
da318abd4f84d39901589d48b0f2d28182154be9 | Java | sebastianscatularo/codeforces | /src/A577.java | UTF-8 | 437 | 2.875 | 3 | [] | no_license | import java.io.*;
import java.util.Scanner;
public class A577 {
public static void main(String[] args) throws IOException {
PrintWriter out=new PrintWriter(System.out);
Scanner scan = new Scanner(System.in);
int n = scan.nextInt(), k = scan.nextInt(), s = 0;
for(int i = 1; i <= n; i+... | true |
5abde3e4ce8729ba2499db6b67ddcb3808b0d5b1 | Java | rssoftsol/vmanage | /intimator/src/main/java/com/imanage/services/members/MemberRegistrationDao.java | UTF-8 | 316 | 2 | 2 | [] | no_license | package com.imanage.services.members;
import com.imanage.models.MemberDetails;
public interface MemberRegistrationDao {
void save(MemberDetails memberDetails);
void update(MemberDetails memberDetails);
void delete(MemberDetails memberDetails);
MemberDetails findByMemid(String memid);
}
| true |
184e5867f2ba5511aa60f47646228651cf9f3191 | Java | dharshatharan/SYSC-3303-Project | /src/ElevatorSystemSimulation.java | UTF-8 | 960 | 3.21875 | 3 | [] | no_license | //import Elevator.Elevator;
//import Floor.FloorSubsystem;
//import Scheduler.Scheduler;
//
///**
// * Generates the instances of the schedule, floorsubsystem and the elevator. Runs the simulation to demonstraigh the comunication between threads
// *
// * @author Quinn
// *
// */
//public class ElevatorSystemSimulatio... | true |
c838c9a4f3656a9b44b17ab9def7689aab8627df | Java | neethunaresh/samplewebproject | /Guarented1/src/main/java/edureka/courseselector.java | UTF-8 | 233 | 2.203125 | 2 | [] | no_license | package edureka;
public class courseselector {
public int selectcourse(String coursename){
int colnumber;
if(coursename.equalsIgnoreCase("git")){
colnumber=0;
}
else{
colnumber=0;
}
return colnumber;
}
}
| true |
0118e94c70677ec78e864376ce2e0fca5f74477e | Java | gerritjvv/pseidon | /pseidon-plugin/src/main/java/pseidon/plugin/pipeline/PipelineParser.java | UTF-8 | 4,252 | 2.484375 | 2 | [] | no_license | package pseidon.plugin.pipeline;
import pseidon.plugin.Context;
import pseidon.plugin.PMessage;
import pseidon.plugin.Pipeline;
import pseidon.plugin.Plugin;
import pseidon.util.Functional;
import pseidon.util.Util;
import java.util.*;
import java.util.function.Function;
/**
* Parses an edn plugin definition<br/>
... | true |
19c56b73547a552e20e6f234741697b4768ec720 | Java | dymyhl/cloud-service | /src/main/java/com/puvar/cloudservice/controller/RedisController.java | UTF-8 | 1,283 | 2.078125 | 2 | [] | no_license | package com.puvar.cloudservice.controller;
import com.puvar.cloudcommon.common.constants.PlainResponse;
import com.puvar.cloudcommon.domain.ManageUser;
import com.puvar.cloudservice.common.client.RedisClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import... | true |
12b5ddf7f85b0b8b020bebaed76896a11e6639bc | Java | bellmit/crmtest | /src/java/com/trilogy/app/crm/web/control/NotifyAfterFromWebWebControl.java | UTF-8 | 3,372 | 1.835938 | 2 | [] | no_license | /*
* This code is a protected work and subject to domestic and international
* copyright law(s). A complete listing of authors of this work is readily
* available. Additionally, source code is, by its very nature, confidential
* information and inextricably contains trade secrets and other information
* pro... | true |
9b8a91003ac3f5b8addd0a1710af28d9ea4580c0 | Java | sokolov123/Preiskurant | /src/main/java/Preiskurant/Preis.java | UTF-8 | 2,757 | 3.40625 | 3 | [] | no_license | package Preiskurant;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class Preis {
private final List<Product> products = new ArrayList<>();
public Preis(List<Product> product){
if (product != null) {
products.addAll(product);
}
}
@Over... | true |
3ab3b7e8893ee4c7bcc46e3fad9562434cff28b2 | Java | jdirand/hackcessangels | /android/HackcessAngel/src/main/java/com/hackcess/angel/AlertSliderActivity.java | UTF-8 | 1,881 | 2.28125 | 2 | [] | no_license | package com.hackcess.angel;
import java.util.List;
import java.util.Vector;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import com.hackcess.angel.verticalviewpager.PagerAdapter;
import com.ha... | true |
b1b77e81882197917750874c70a4f04acd810da0 | Java | Discccovered/zhenbishe | /src/main/java/com/bishe/util/PageObject.java | UTF-8 | 307 | 2.15625 | 2 | [] | no_license | package com.bishe.util;
public class PageObject {
private int skip;
private int rownum;
public int getSkip() {
return skip;
}
public void setSkip(int skip) {
this.skip = skip;
}
public int getRownum() {
return rownum;
}
public void setRownum(int rownum) {
this.rownum = rownum;
}
}
| true |
213b0490b77888d6f8434292e723da3aab30df80 | Java | stevecerdan/SIGUO | /sibad_repo_cert_sibad/src/main/java/gob/osinergmin/sibad/domain/dto/SibadNotaDTO.java | UTF-8 | 806 | 1.796875 | 2 | [] | no_license | package gob.osinergmin.sibad.domain.dto;
import java.util.Date;
public class SibadNotaDTO {
private long id;
private String estdo;
private String detalle;
private Date fchaCrcion;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getEstdo() {
return es... | true |
287a6b230212b0c2b4ae9df5e081788da583736e | Java | pratyush-patwa/geeks-for-geeks | /CountTheTriplets.java | UTF-8 | 2,409 | 4.0625 | 4 | [] | no_license | /* -----------------------Count The Triplets -----------------------------
Given an array of distinct integers. The task is to count all the triplets such that sum of two elements equals the third element.
Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow.... | true |
af6c7b12e18fb34cef282481576c2690a037245b | Java | erik684/java-poo | /Ordenar/src/ordenar/HP.java | UTF-8 | 2,371 | 3.234375 | 3 | [] | no_license | package ordenar;
import java.util.ArrayList;
public class HP {
public static ArrayList<Integer> heapSort(ArrayList<Integer> v) {
buildMaxHeap(v);
int n = v.size();
for (int i = v.size() - 1; i > 0; i--) {
swap(v, i, 0);
maxHeapify(v, 0, --n);
}
ret... | true |
737d3757eb992d1a699dd0c99dd3cc672698b538 | Java | niu0403/SDN-based-PubSub-System | /flow-master/src/main/java/jaxe/elements/JEString.java | ISO-8859-1 | 5,807 | 2.171875 | 2 | [] | no_license | /*
Jaxe - Editeur XML en Java
Copyright (C) 2002 Observatoire de Paris-Meudon
Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier conformment aux dispositions de la Licence Publique Gnrale GNU, telle que publie par la Free Software Foundation ; version 2 de la licence, ou encore ( votre... | true |
e30f59d1ca9f660ca2841114445d10602a88d9d5 | Java | broubach/barragem.net | /src/test/java/net/barragem/scaffold/FlatXmlTestDbGenerator.java | UTF-8 | 4,589 | 2.328125 | 2 | [
"MIT"
] | permissive | package net.barragem.scaffold;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import org.dbunit.database.DatabaseConnection;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.database.QueryDataSet;
import org.dbunit.dataset.xml.FlatXmlDataSet;
p... | true |
ccb6456c009d5647cd9615d1b167b2e6422eac94 | Java | matthewmccullough/jmeter-groovy-sampler-2 | /src/test/java/com/ambientideas/jmeter/TestGroovyScriptSampler.java | UTF-8 | 850 | 2.21875 | 2 | [] | no_license | package com.ambientideas.jmeter;
import junit.framework.Assert;
import org.junit.Test;
public class TestGroovyScriptSampler {
private static final String TEST_UTILITY_FILENAME = "utilitytest.groovy";
private static final String TEST_SETUP_FILENAME = "setuptest.groovy";
private static final String TEST_PRIMARY_F... | true |
0b1662f7c49b8d7a92deb465a318de310fae0f96 | Java | asnryo/seisaku | /制作実習/src/user/servlet/UserConfServlet.java | UTF-8 | 2,027 | 2.421875 | 2 | [] | no_license | package user.servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... | true |
2b63d15b7a288cfa35e3be7eeb33f6eecca8ba80 | Java | nikolalsvk/furniture-salons | /src/controller/EditFurnitureItemServlet.java | UTF-8 | 3,507 | 2.390625 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.FurnitureItem;
import model.... | true |
0111f55aac0d07336d908cfa166dcafa61241c25 | Java | HullKendyl/animal-shelter | /backend-api/src/test/java/com/animalshelter/controllers/SpeciesControllerTest.java | UTF-8 | 595 | 2.078125 | 2 | [] | no_license | package com.animalshelter.controllers;
import com.animalshelter.storages.SpeciesStorage;
import org.junit.jupiter.api.BeforeEach;
import org.mockito.Mockito;
import org.springframework.ui.Model;
import static org.mockito.Mockito.mock;
public class SpeciesControllerTest {
private SpeciesStorage mockSpeciesStorag... | true |
077110023b0170d53762654b836055b741e0c8e4 | Java | IDmitrenko/informica-report-app-pg | /src/main/java/ru/avers/informica/report/xml/EarlyAssistant.java | UTF-8 | 3,963 | 1.914063 | 2 | [] | no_license | package ru.avers.informica.report.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for early_assistant complex type.
*
*/
@XmlAccessorType(XmlAccessTy... | true |
97594ca207085ce44c02d0ed0fadde8d48bb7609 | Java | chenhonghu/rcbook | /crbook-book/src/main/java/com/yc/crbookbook/CrbookBookApplication.java | UTF-8 | 418 | 1.515625 | 2 | [] | no_license | package com.yc.crbookbook;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class CrbookBookApplication {
public static void... | true |
40a2692a0b31f4a0e4faefc69a7b9ab1ea742712 | Java | prowide/prowide-iso20022 | /model-fxtr-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/StatusSubType2Code.java | UTF-8 | 884 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for StatusSubType2Code.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name=... | true |
0f78868b64b19d004363142580fe59686a307bcd | Java | TruongGiangBui/BackendTest | /src/main/java/com/myapi/entity/Department.java | UTF-8 | 450 | 1.976563 | 2 | [] | no_license | package com.myapi.entity;
import lombok.*;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@ToString
@Table(name = "department")
public class Department {
@Id
private int deptid;
private String deptname;
private D... | true |
42ebe979965a76cdaea2693ec366ee721fa384d2 | Java | daloji/CacheGrid | /src/main/java/com/daloji/cachegrid/common/Utils.java | UTF-8 | 2,323 | 2.65625 | 3 | [] | no_license | package com.daloji.cachegrid.common;
import static java.util.Objects.nonNull;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Utils {
public static <T> String genera... | true |
d02d39c0611d5b5ac88a4aedda69beee68f5570c | Java | mohan82/spring-oauth2 | /spring-oauth2-server/src/main/java/org/test/config/PreflightRequestFilter.java | UTF-8 | 1,179 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015.
* 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
*/
package org.test.config;
import javax.servlet.*;
import javax... | true |
444c469ed4d469f15a020776bc5ca2dfb847a80f | Java | CUBRID/cubrid-manager | /com.cubrid.cubridmanager.ui/src/com/cubrid/cubridmanager/ui/mondashboard/editor/model/DashboardConnectionManager.java | UTF-8 | 9,039 | 1.8125 | 2 | [] | no_license | /*
* Copyright (C) 2009 Search Solution Corporation. All rights reserved by Search Solution.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright ... | true |
be25225c453023065e4d7623a886af5662f97af9 | Java | Ilxom1992/spring_model_2_lesson_6_task1 | /src/main/java/com/example/demo/entity/Service.java | UTF-8 | 616 | 2.109375 | 2 | [] | no_license | package com.example.demo.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Set;
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Service {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
pri... | true |
c92995eba22e9db2b02f5cc8e231c2e242218369 | Java | EujinKo/Sketcher | /app/src/main/java/com/example/sketcher/MainActivity.java | UTF-8 | 6,298 | 2.109375 | 2 | [] | no_license | package com.example.sketcher;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.FileProvider;
import androidx.fragment.app.FragmentTransaction;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.net.... | true |
11733817ec6fd98df1b3a1da53ed2ee486557aa8 | Java | 27Saidou/cours_python | /Test_Papa_and_Enfant.java | UTF-8 | 167 | 1.882813 | 2 | [] | no_license | public class Test_Papa_and_Enfant {
public static void main(String[] args) {
Enfant enfant=new Enfant();
enfant.M2();
enfant.M1();
}
}
| true |
48e6589175c9d3d580f4b0667b8c4df7de1e367f | Java | jooejooe/evo_spider | /src/main/java/cn/com/evo/cms/domain/entity/book/BookInOutRecord.java | UTF-8 | 2,070 | 1.90625 | 2 | [] | no_license | package cn.com.evo.cms.domain.entity.book;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import cn.com.evo.admin.manage.domain.entity.Account;
/**
* The persistent class for the book_in_... | true |
f689d36f023aabd150edfad87f478e388991fa50 | Java | jiu-ju/ParallelTestingpractice | /src/test/java/step_definitions/EtsySearch_StepDefs.java | UTF-8 | 1,698 | 2.46875 | 2 | [] | no_license | package step_definitions;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import org.junit.Assert;
import org.openqa.selenium.Keys;
import pages.Etsy_HomePage;
import utilities.Config;
import utilities.Driver;
public class EtsySearch_StepDefs {
Etsy_HomePage... | true |
e7c6ec233689830ac92f83a49542568d9657fb35 | Java | MCC-Java/JDBC_IndrianaAgustin | /src/controllers/CountryController.java | UTF-8 | 1,892 | 2.75 | 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 controllers;
import daos.CountryDAO;
import java.util.ArrayList;
import java.util.List;
import models.Country;
/**
*
* @au... | true |
39738340e9bde5776811bbf320cc2b8c6e13c518 | Java | newthis/shdep | /src/main/java/org/iii/ufo/shdep/nodes/Node.java | UTF-8 | 883 | 2.109375 | 2 | [] | no_license | package org.iii.ufo.shdep.nodes;
import java.util.Collections;
import org.iii.ufo.shdep.nodes.arithm.ArithmExpr;
import org.iii.ufo.shdep.nodes.cmd.Command;
import org.iii.ufo.shdep.nodes.parts.Lit;
import org.json.JSONObject;
public interface Node {
public void accept(NodeVisitor visitor);
//utils ===========... | true |
399e8aefc34f4107c642ce44288ee78ccacbde55 | Java | EvgenLozov/flashshop | /test/Fuck.java | UTF-8 | 343 | 1.78125 | 2 | [] | no_license | import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* Created with IntelliJ IDEA.
* User: Evgen
* Date: 22.02.13
* Time: 20:55
* To change this template use File | Settings | File Templates.
*/
public class Fuck {
@Test
public void testName() thro... | true |
26d5e5e618dd60e6843f273e58d85ec46dc2d3ae | Java | oleggalimov/TissueShop | /src/test/java/ru/urfu/tissue/TissueApplication.java | UTF-8 | 1,859 | 2.234375 | 2 | [] | no_license | package ru.urfu.tissue;
import io.qameta.allure.Description;
import io.qameta.allure.Epic;
import io.qameta.allure.Feature;
import io.qameta.allure.Story;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import... | true |