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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a86db4e965a5104d1793afcd2f7bb9795a3da777 | Java | phcristian23/MarvelApp | /Marvel/src/main/java/com/phc/marvelapp/ui/fragments/worker/GetFileFragment.java | UTF-8 | 3,848 | 2.28125 | 2 | [] | no_license | package com.phc.marvelapp.ui.fragments.worker;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
i... | true |
5be956d00b915b33b2276fceb287a8a3dfa18984 | Java | SqrFactor/portal-backend | /src/main/java/com/sqrfactor/controller/AdditionalProfessionController.java | UTF-8 | 4,026 | 2.359375 | 2 | [] | no_license | /**
*
*/
package com.sqrfactor.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBod... | true |
3f81f7af9025bcd376d53dd98baf5cfb499efc8e | Java | imtiazjava/SpringCorePractise | /SpringAnnontationBasedApplication/src/com/pst/ems/ClientCode.java | UTF-8 | 477 | 1.921875 | 2 | [] | no_license | package com.pst.ems;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ClientCode {
public static void main(String[] args) {
String configLocation = "applicationContext.xml";
ApplicationContext context = new ClassPathXm... | true |
b3105bb5bb295dd2bfce079e50669fb8e39a423d | Java | meyakovenkoj/java_winter_2020 | /week4/task1/src/com/yakovenko/files/WordCounter.java | UTF-8 | 794 | 3.078125 | 3 | [] | no_license | package com.yakovenko.files;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class WordCounter {
public static int count(String filepath){
int amount = 0;
try (BufferedReader file = new BufferedReader(new FileReader... | true |
815ab702726f4500422b803587b29d55b20ed2da | Java | ltao9126/workflow-engine | /workflow-engine/src/main/java/com/greatech/workflow/dto/FlowInfo.java | UTF-8 | 4,886 | 2.5 | 2 | [] | no_license | package com.greatech.workflow.dto;
import com.greatech.workflow.api.node.api.FlowNode;
import com.greatech.workflow.api.node.api.FlowStartCheck;
import com.greatech.workflow.deal.NodeConvert;
import com.greatech.workflow.dto.config.ConditionClassConfig;
import org.apache.commons.logging.Log;
import org.apache.commons.... | true |
dd6f492de489fda84551235ebc8be7985c1c253e | Java | cslongjian/android_customview | /YCF_customView/app/src/main/java/com/example/chenlongjian/ycf_customview/demand5_24/Demo5_24Activity.java | UTF-8 | 3,619 | 2.375 | 2 | [] | no_license | package com.example.chenlongjian.ycf_customview.demand5_24;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.chenlongjian.ycf_customview.R;
import co... | true |
fc3bdcc884e944f78806c79044d24376467d9ab3 | Java | krishnasri1113/javaBasicsMarch2020_Repo | /src/BoxingandUnboxing/boxing.java | UTF-8 | 402 | 3.46875 | 3 | [] | no_license | package BoxingandUnboxing;
public class boxing {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i=30;
Integer j=i;
System.out.println(j);//compiler side
Integer k=Integer.valueOf(i);
System.out.println(k);//human side
int m=40;
boxing(m);//by using methods
... | true |
48d9123c4c25fa40a7f0b45fce8eec535ec4c501 | Java | MelnykVL/team-manager-hiber | /src/main/java/com/melnyk/teammanager/repository/implementation/HibernateUtil.java | UTF-8 | 728 | 2.171875 | 2 | [] | no_license | package com.melnyk.teammanager.repository.implementation;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class HibernateUtil {
private static SessionFactory sessionFactory;
public static Session getSession() {
return getSessionFactory... | true |
51d772561b0d915ae745b5e7039fa28169ef41f7 | Java | MichaelDiane/DesignModel | /src/main/java/com/example/designmodel/flyweight/IFlyWeight.java | UTF-8 | 315 | 2.3125 | 2 | [] | no_license | package com.example.designmodel.flyweight;
/**
* @author xiongda
* @ClassName IFlyWeight
* @Description 结构设计模式-亨元模式
* @createTime 2022/3/15 14:35
*/
public interface IFlyWeight {
/**
*
* @param extrinsicState 外部状态
*/
void operation(String extrinsicState);
}
| true |
b9135f085d3a4081b255182b6f1641239259c871 | Java | ivywan123/CntrsysTest | /src/main/java/com/niu/cntrsys/Products.java | UTF-8 | 249 | 1.53125 | 2 | [] | no_license | package com.niu.cntrsys;
import com.jayway.jsonpath.DocumentContext;
public class Products {
//新增合约
public DocumentContext productsData;
public void load(){
productsData=CntrsysTest.readJson("/product.json");
}
}
| true |
09ba3f81f44f6b21c967f3310bd6be539be5de94 | Java | jananirangarajr/Data-structure | /com/thinkbig/ds/linkedlist/LinkedListImpl.java | UTF-8 | 1,575 | 3.640625 | 4 | [] | no_license | package com.thinkbig.ds.linkedlist;
public class LinkedListImpl {
public static void main(String args[])
{
SingleLinkedList single = new SingleLinkedList();
single.add(10);
single.add(3);
single.add(5);
single.add(13);
single.add(15);
single.add(17);
single.add(7);
single.display();
single.delete... | true |
4358f925ba2e4bd52fef0479589f2637e3cbffda | Java | Bingchean/Rx | /app/src/main/java/rx/vincent/com/rx/MainActivity.java | UTF-8 | 4,408 | 3.28125 | 3 | [] | no_license | package rx.vincent.com.rx;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Action1;
import rx.functions.Func1;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanc... | true |
864b38c75ea5fd169343a39639ab3e934d29ab87 | Java | ChicagoJ/webapps | /hw0/WEB-INF/classes/CartItem.java | UTF-8 | 906 | 3.015625 | 3 | [] | no_license | public class CartItem {
private Item item;
private int amount;
public CartItem(Item it){
setItem(it);
setAmount(1);
}
public void setItem(Item it){
this.item = it;
}
public void setAmount(int n){
this.amount = n;
}
public Item getItem(){
return(item);
}
public int getAmount(){
return(amount);... | true |
edc509ba125499945fab8093ea81143eda265fc6 | Java | JessedeDoes/DutchTagger | /src/main/java/impact/ee/lemmatizer/reverse/ExampleBasedExpander.java | UTF-8 | 1,758 | 2.71875 | 3 | [] | no_license | package impact.ee.lemmatizer.reverse;
import java.io.*;
import java.util.*;
import impact.ee.lemmatizer.PrefixSuffixGuesser;
import impact.ee.lexicon.*;
/*
* This is nonsense...
*/
public class ExampleBasedExpander
{
public static void expandFromFile(String exampleFile, String toExpand, ParadigmExpan... | true |
232563f7976d0f0babfd183744a61dbc01427e1b | Java | sanaula/AlgorithmPractice | /Practice/src/com/testing/RecursiveGCD.java | UTF-8 | 624 | 3.46875 | 3 | [] | no_license | package com.testing;
public class RecursiveGCD {
public static void main(String[] args) {
int arr[] = {4, 8, 12};
int n = arr.length;
System.out.println("GCD is : " + findGCDRec(arr, n));
}
private static int findGCD(int[] arr, int n) {
int result = arr[0];
for(int i = 1; i < n; i++) {
r... | true |
c88f4ccc74cd2443f595b1f68c9072737a2303ee | Java | AE9999/MiniCLOUD | /server/src/main/java/com/ae/sat/servers/master/service/job/SolverManagerService.java | UTF-8 | 2,326 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.ae.sat.servers.master.service.job;
import com.ae.sat.model.SolverAssignment;
import com.ae.sat.servers.master.service.docker.DockerClientService;
import com.ae.sat.servers.master.service.docker.DockerClientServiceFactory;
import com.ae.sat.servers.master.service.rabbitmq.RabbitMQService;
import com.rabbitm... | true |
48abb2965d874bcdac545fadef87e0bd628493a9 | Java | isaaceichelberger/Skyblock | /src/main/java/me/isaaceichelberger/skyblock/Skyblock.java | UTF-8 | 13,441 | 2.046875 | 2 | [] | no_license | package me.isaaceichelberger.skyblock;
import me.isaaceichelberger.skyblock.Commands.*;
import me.isaaceichelberger.skyblock.Listeners.*;
import me.isaaceichelberger.skyblock.World.SkyblockBuilder;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.CreatureSpawner;
import org.bukkit.confi... | true |
7259973bae74f52a31b4ef01c910cb974e2bf7f5 | Java | Braffa/JMDSLM | /src/main/java/com/braffa/sellem/model/database/authentication/RegisteredUser.java | UTF-8 | 2,385 | 2.25 | 2 | [] | no_license | package com.braffa.sellem.model.database.authentication;
import java.io.Serializable;
import java.util.Date;
import com.braffa.sellem.model.xml.webserviceobjects.authentication.Login;
public class RegisteredUser implements Serializable {
private static final long serialVersionUID = 1L;
private String authorit... | true |
3a99ba16820bd0e7827c1fd3b7d7686e56cf7709 | Java | antoprince001/FinanceTracker | /src/main/java/com/example/demo/FinancialstatementbuilderApplication.java | UTF-8 | 696 | 1.679688 | 2 | [] | no_license | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework... | true |
4dfca7ae3c2071ceec16744badd78d6370b39214 | Java | shmily2038/project-system | /project-core/src/main/java/com/tianyalan/core/domain/model/project/PlanId.java | UTF-8 | 300 | 1.914063 | 2 | [] | no_license | package com.tianyalan.core.domain.model.project;
import com.tianyalan.common.domain.model.AbstractId;
public class PlanId extends AbstractId {
private static final long serialVersionUID = 1L;
public PlanId() {
super();
}
public PlanId(String planId) {
super(planId);
}
}
| true |
b0127c19b42586c2315492e6c8b4d1b955cf33c2 | Java | aykayakshay/spring_projects | /notmyfirst/java_practice/src/InterviewTest/StringReverse.java | UTF-8 | 419 | 3.265625 | 3 | [] | no_license | package InterviewTest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class StringReverse {
public static void main(String[] args) {
String s = "i love programming very much";
String[] s1 =s.split(" ");
List<String> l1 = new ArrayList(Arrays.asList(s1));... | true |
eb9ec5df39ed6e1422c5c149bba1108959040ab9 | Java | tdanford/rdf-utils | /java/src/main/tdanford/db/itrs/NestedLoopJoinItr.java | UTF-8 | 1,428 | 2.75 | 3 | [] | no_license | package tdanford.db.itrs;
import java.util.ArrayList;
import java.util.LinkedList;
import tdanford.db.JoinPredicate;
import tdanford.db.Schema;
import tdanford.db.Tuple;
import tdanford.db.ops.Op;
public class NestedLoopJoinItr implements DbItr {
private Schema schema;
private DbItr left;
private ArrayList<... | true |
0b1102b113f8fadd9ec310b4433cc06fdea8f72a | Java | dingjun84/taobao-tomcat-catalina | /com/taobao/tomcat/container/context/pandora/PandoraException.java | UTF-8 | 733 | 1.882813 | 2 | [] | no_license | package com.taobao.tomcat.container.context.pandora;
public class PandoraException
extends RuntimeException
{
private static final long serialVersionUID = 5460967683841729224L;
public PandoraException() {}
public PandoraException(String msg)
{
super(msg);
}
public PandoraExcept... | true |
2ee271f877e7acef2c482ea86ad8649dffb1bebc | Java | Odysseuss/TopCoder | /TopCoder/src/topcoder/community/srms/abacus/AbacusTest.java | UTF-8 | 2,244 | 2.734375 | 3 | [] | no_license | package topcoder.community.srms.abacus;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
/**
* <a href="https://community.topcoder.com/stat?c=problem_statement&pm=4512">Problem Statement</a>
*/
class AbacusTest {
@Test
void testCase0() {
String[... | true |
bc0f6c6f701fc98129e3e47545bf04dc11ab8b0b | Java | PlayersCommittee/gemp-swccg-public | /gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set5/light/Card5_014.java | UTF-8 | 2,974 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.gempukku.swccgo.cards.set5.light;
import com.gempukku.swccgo.cards.AbstractCharacterDevice;
import com.gempukku.swccgo.cards.conditions.AtCondition;
import com.gempukku.swccgo.common.ExpansionSet;
import com.gempukku.swccgo.common.Icon;
import com.gempukku.swccgo.common.Keyword;
import com.gempukku.swccgo.... | true |
ffdef6efe7fcaf47178a6057e0dc125c70c6089b | Java | Jet315/Staking | /Staking/src/me/jet315/staking/commands/defaultcommands/Stake.java | UTF-8 | 5,445 | 2.234375 | 2 | [] | no_license | package me.jet315.staking.commands.defaultcommands;
import me.jet315.staking.Core;
import me.jet315.staking.StakePlayer;
import me.jet315.staking.arenas.Arena;
import me.jet315.staking.commands.CommandExecutor;
import me.jet315.staking.manager.StakeManager;
import me.jet315.staking.utils.StakePhase;
import net... | true |
334cd7b5f6534b4932ff24b927ce2460c83570b5 | Java | ssiedu/hibernate-first-21-05-19 | /src/main/java/com/ssi/QBCDemo.java | UTF-8 | 467 | 2.234375 | 2 | [] | no_license | package com.ssi;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
public class QBCDemo {
public static void main(String[] args) {
Session session=DataUtility.getSF().openSession();
Criteria cr=session.createCriteria(Student.class);
List<Student> students=cr.li... | true |
3497b97aa7eb7a629524c89685f014989a1a0114 | Java | mbsky/herbert-utils | /common-utils/src/cn/hxh/socket/ClientSocket.java | UTF-8 | 717 | 2.765625 | 3 | [] | no_license | package cn.hxh.socket;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class ClientSocket {
public static void main(String[] args) throws Exception {
Socket socket = new Socket("xxx.xxx.xxx.xxx", 10000... | true |
b1dcf75cae7dcf43edb71d34dfd86f1f5b5933f9 | Java | rawan-a-d/FontysIN-Semester-3 | /FontysIN/src/main/java/service/repository/ProfileRepository.java | UTF-8 | 39,835 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package service.repository;
import service.model.*;
import java.net.URISyntaxException;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class ProfileRepository extends JDBCRepository {
JDBCRepository jdbcRepository;
public ProfileRepository() {
this.jdbcRepository = new ... | true |
0224e26782dbc14118906706ed52b06b80cff59b | Java | hliu89/Easy_Algorithm_learning- | /learning/src/math/math231.java | UTF-8 | 351 | 3.09375 | 3 | [] | no_license | package math;
public class math231 {
public boolean ispowertwo(int x) {
int rep=1;
for(int i=0;i<x;i++) {
rep=rep*2;
if(rep==x) {
return true;
}
}
return false;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
math231 a=new math231();
System.out.print... | true |
c5b229ab9c4ee56870c344906b1aeb7458750d9b | Java | jc5shay/classwork2 | /src/main/java/calculator/ShoppingCart.java | UTF-8 | 147 | 1.679688 | 2 | [] | no_license | package calculator;
public class ShoppingCart {
public static double areaofCircle(double x, int y){
return (x*y*y);
}
}
| true |
35f74cb7f96c4716767f9238c2fd9ab022ee702e | Java | gandakian/DemoHib | /src/main/java/com/amirbhujel/DemoHib/main/SqlDriver.java | UTF-8 | 1,447 | 2.671875 | 3 | [] | no_license | package com.amirbhujel.DemoHib.main;
import java.util.List;
import java.util.Map;
import org.hibernate.Criteria;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.... | true |
9eaf7beae37ae02abe28125af916762270e91de3 | Java | VeriBlock/nodecore | /veriblock-core/src/main/java/org/veriblock/core/AddressConstants.java | UTF-8 | 1,871 | 1.960938 | 2 | [
"MIT"
] | permissive | // VeriBlock NodeCore
// Copyright 2017-2021 Xenios SEZC
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
package org.veriblock.core;
public final class AddressConstants {
... | true |
502ac4e6506d129d8088526fde10de9d6f90ca2a | Java | rodrigocSantosDev/scheduleTransfer | /src/main/java/com/cvc/resources/TransferResource.java | UTF-8 | 3,240 | 2.140625 | 2 | [] | no_license | package com.cvc.resources;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | true |
fb3e8755ca4c4e657b01099923e01ab5184b187b | Java | Fryingpannn/Java_OOP2 | /A2/Part1/Truck.java | UTF-8 | 6,304 | 3.5625 | 4 | [] | no_license | package Part1;
/*---------------------------------
* Name: Matthew Pan |
* Student ID: 40135588 |
* Comp 249: Assignment #2 |
* Driver file: TruckPackageDriver |
* Part 1 |
* Due Date: 25 July, 2020 |
* Professor: Dr. Yuhong Yan |
*-------... | true |
93100d9bca46d3bc85f0d9002b181f661df06159 | Java | mehmetsalgar/byte_object_papyrus | /byte_object_fornax_extension/src/main/java/org/salgar/byte_object/ext/CounterExtensions.java | UTF-8 | 2,359 | 2.515625 | 3 | [] | no_license | /*MIT License
*
*Copyright (c) 2013-present, , GmbH.
*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this software and associated documentation files (the "Software"), to deal
*in the Software without restriction, including without limitation the rights
*to use, copy, m... | true |
4df4c18d3b4a0e5d57a85ba46b834d62ba3c1d6c | Java | pengenjago/SpringTutorByMe | /src/main/java/com/maanz/tutor/SpringTutorByMeApplication.java | UTF-8 | 326 | 1.515625 | 2 | [] | no_license | package com.maanz.tutor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringTutorByMeApplication {
public static void main(String[] args) {
SpringApplication.run(SpringTutorByMeApplication.class, args);
... | true |
38070956afa615a271f183fd88283517df11c735 | Java | 0x8801/commit | /contributions/xetra11/java/Fundamentals/2016-09-28.java | UTF-8 | 153 | 1.921875 | 2 | [] | no_license | Java Virtual Machine
Use `DecimalFormat` class to format numbers
Locks in `static synchronized` methods
Measuring time
Detect or prevent integer overflow | true |
73b2ba962aab6913f28a73be4d1dc747890c1881 | Java | AndrijOnufrijchuk/Task | /src/main/java/com/example/demo/repository/InventoryListDAO.java | UTF-8 | 2,371 | 2.546875 | 3 | [] | no_license | package com.example.demo.repository;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Optional;
import com.example.demo.entity.InventoryListDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
impo... | true |
f03afc7a864bf2b3964b084d754fb4405e019a8e | Java | bcrannell05/java-exercises | /src/inheritance/Superhero.java | UTF-8 | 539 | 3.0625 | 3 | [] | no_license | package inheritance;
public class Superhero extends Person {
private String superPower;
private String superName;
public Superhero(
String firstName,
String lastName,
String superName,
String superPower
) {
super(firstName, lastName);
thi... | true |
8672f089046c4842a93f283ace9a2cd7f039b5ca | Java | kenshin579/books-jpa-start | /jpa-ch05-jta/src/main/java/jpastart/reserve/repository/UserRepository.java | UTF-8 | 438 | 2.359375 | 2 | [] | no_license | package jpastart.reserve.repository;
import jpastart.jpa.EMF;
import jpastart.reserve.model.User;
import javax.persistence.EntityManager;
public class UserRepository {
public User find(String email) {
EntityManager em = EMF.currentEntityManager();
return em.find(User.class, email);
}
pu... | true |
a5bc1bf3a2a891eb5cf05e167ff9f4d97f4c23af | Java | ratafee1/kafka_demo | /src/main/java/cn/itcast/kafka/Stream.java | UTF-8 | 1,667 | 2.78125 | 3 | [] | no_license | package cn.itcast.kafka;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.StreamsConfig;
import org.apache.kafka.streams.kstream.KStreamBuilder;
import java.util.Properties;
public class Stream {... | true |
c7db6de3a471acce407607e853cd3f5c81588950 | Java | Roos12005/Alienoid | /src/logic/ChargeSkill.java | UTF-8 | 1,096 | 3.046875 | 3 | [
"MIT"
] | permissive | package logic;
public class ChargeSkill implements Runnable {
private static final int FILL_DELAY_CLICK = 1;
private static final int FILL_DELAY_LIGHT = 20;
private static int fillClickCount = 0;
private static int fillLightCount = 0;
@Override
public void run() {
while (true) {
try {
T... | true |
4e21a55f26d479b7b2d7f879298928d3d4c1a3e4 | Java | FairWindCo/TestInternalDB | /src/ua/pp/fairwind/internalDBSystem/controllers/CategoryController.java | UTF-8 | 18,688 | 1.882813 | 2 | [] | no_license | package ua.pp.fairwind.internalDBSystem.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.... | true |
6604b24680251b11062e48f55a80d58ba23c53e4 | Java | N11GEL/302-Sem1-2020-Software-Dev | /BillboardViewer/src/Server/server_package/Billboard_viewer_client_mock.java | UTF-8 | 1,624 | 2.765625 | 3 | [] | no_license | package Server.server_package;
import java.io.IOException;
import java.io.OutputStream;
import java.io.*;
import java.net.Socket;
import java.util.ArrayList;
public class Billboard_viewer_client_mock {
//this is client for database viewer
public static void main(String[] args) throws IOException {... | true |
f72cea2f11329756b0173508396b83bb5ac0d5e3 | Java | Mx1014/iotNbiotMiddleWare | /src/main/java/cn/usr/middleware/service/impl/MessageListenerImpl.java | UTF-8 | 7,572 | 1.9375 | 2 | [] | no_license | package cn.usr.middleware.service.impl;
import cn.usr.cloud.common.enumu.DeviceStateEnum;
import cn.usr.cloud.common.mqmessage.centertodevice.CenterToDeviceDataMessage;
import cn.usr.cloud.common.mqmessage.devicetocenter.DeviceToCenterStateMessage;
import cn.usr.middleware.chinatelecom.ChinaTelecomApiSdkManager;
impor... | true |
ea333902d0312593364f44bedab9c5144027f860 | Java | JosanSun/study-java | /leetcode/src/main/java/leetcode/study/biggroup001/group005/ex0082/Solution.java | UTF-8 | 1,213 | 3.015625 | 3 | [] | no_license | package leetcode.study.biggroup001.group005.ex0082;
import leetcode.study.common.ListNode;
/**
* @Author : josan
* @Date : 2020/2/23 21:50
* @Package : leetcode.study.group005.ex0082
* @ProjectName: pom-parent
* @Description:
*/
public class Solution {
public ListNode deleteDuplicates(ListNode head) {
... | true |
70ccd6a2eb4d5d87c877bf56bd9f4f3ae3fab2ea | Java | jshagen89/tluTourApp | /app/src/main/java/com/example/joseph/tlucampustour/TourArrayAdapter.java | UTF-8 | 1,553 | 2.640625 | 3 | [] | no_license | package com.example.joseph.tlucampustour;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.Nullable;
import android.view.*;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import static com.example.joseph.tlucampustour.Cons... | true |
2ce04a85019185bca89ade30ecf401e4ed8abee0 | Java | jianghuaa1986/sso | /src/test/java/com/chinesedreamer/sso/util/EncryptionUtilTest.java | UTF-8 | 313 | 1.734375 | 2 | [] | no_license | package com.chinesedreamer.sso.util;
import org.junit.Test;
public class EncryptionUtilTest {
@Test
public void testMd5L32() {
System.out.println(EncryptionUtil.md5L32("TEST2" + "9a52ef91554d162d437d637bbae6b72d"));
}
// @Test
// public void testGenerateSalt() {
// fail("Not yet implemented");
// }
}
| true |
048eeec167034bd04e7d8b095135b4a96a15a948 | Java | hisham-maged10/Live-Data-Map-Visualization-Application | /src/model/parser/AbstractDataParser.java | UTF-8 | 14,483 | 2.984375 | 3 | [
"MIT"
] | permissive | package model.parser;/*
Author: Hisham Maged
Date : 7/21/2019
Class Name : Provides the common behaviour and constructors of the DataParser interface
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Path;
impo... | true |
9015716712c624830e4aeb52f7df6bd4b5dc4d41 | Java | liyanlei190528/day_FuLuTi | /app/src/main/java/com/liyanlei/day_fuluti/view/MyView.java | UTF-8 | 182 | 1.570313 | 2 | [] | no_license | package com.liyanlei.day_fuluti.view;
import com.liyanlei.day_fuluti.bean.RootBean;
public interface MyView {
void onSuccrss(RootBean rootBean);
void Field(String msg);
}
| true |
36a21991632990e7503139768e8264e4ac546427 | Java | DavidYi/Intro-to-Computer-Science-Trimester-3 | /org/bca/introcs/u2/Day6BinarySearch.java | UTF-8 | 1,271 | 3.828125 | 4 | [] | no_license | package org.bca.introcs.u2;
import java.util.Random;
import java.util.Scanner;
public class Day6BinarySearch {
public static int[] getRandomArray(int size) {
int[] array = new int[size];
Random rand = new Random(14);
// everyone with the same seed, which is 14 in this case, all get the
// same random numbers... | true |
bd2dbe67d0ace3b197039e57428938711cd225ce | Java | swportal/swportal | /portal/src/com/web/controller/service/DefectdailyService.java | UTF-8 | 400 | 1.773438 | 2 | [] | no_license | package com.web.controller.service;
import java.sql.ResultSet;
import java.util.List;
import com.web.controller.Base.BaseDao;
import com.web.controller.entity.Defectdaily;
public interface DefectdailyService extends BaseDao<Defectdaily>{
List<String> getDailyData(String projectname,String modelname);
List<Defec... | true |
b2daeb3af0ba898e20f01c38b86f7800111ae188 | Java | antimage2015/TouTiaoNews | /app/src/main/java/com/crazy/toutiaonews/newsfragments/CaiJingFragment.java | UTF-8 | 1,886 | 1.914063 | 2 | [] | no_license | package com.crazy.toutiaonews.newsfragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import com.crazy.toutiaonews.adapterofall.MyAdapter;
import com.crazy.toutiaone... | true |
b5470f05734ffff8b48b259dd5624f9af3818462 | Java | Team3Kandy/BC_SUN_TEST | /src/main/java/com/genband/wae/security/keymgmt/KeyManager.java | UTF-8 | 19,078 | 2.203125 | 2 | [] | no_license | package com.genband.wae.security.keymgmt;
import com.genband.wae.security.exception.KeyMgmtException;
import com.genband.wae.security.utils.ConfigFileResolver;
import com.genband.wae.security.utils.CryptoUtils;
import com.genband.wae.security.utils.SecurityLogger;
import javax.crypto.Cipher;
import javax.cryp... | true |
1b5256ff61e8b0704ed0723084b83633f19cde8d | Java | qiaoweiba/utils | /sort_algorithms/BubbleSort.java | UTF-8 | 1,032 | 3.796875 | 4 | [] | no_license | package com.company.utils.sort_algorithms;
/**
* @author Administrator
* @data 四月 14 2017 15:33.
*/
public class BubbleSort {
public static void bubbleSort(int[] arr){
if (arr == null || arr.length == 0){
return;
}
for (int i=0;i<arr.length-1;i++){
for (int j=arr... | true |
c7c1b2f66034756a5b992eb44e4a96cf417b3585 | Java | MatteoT9890/BLETracking | /BeaconProject/BlueGiga/src/org/thingml/bglib/gio/ADStructManufacturer_iBeacon.java | UTF-8 | 921 | 2.828125 | 3 | [] | no_license | package org.thingml.bglib.gio;
/**
* Tipo di AD-Struct Manufacturer specifica per gli iBeacon
* @author Giorgio Avalle
*/
public abstract class ADStructManufacturer_iBeacon extends ADStructManufacturer {
//campi specifici della struct
protected String tipoBeacon;
public ADStructManufacturer_iBeacon(byte type,... | true |
b6eb491a48db977170643f3417b5f423e0a068d3 | Java | ilearain/storio | /storio-content-resolver-annotations-processor/src/test/java/com/pushtorefresh/storio/contentresolver/annotations/processor/generate/TestFactory.java | UTF-8 | 2,015 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.pushtorefresh.storio.contentresolver.annotations.processor.generate;
import com.pushtorefresh.storio.common.annotations.processor.introspection.JavaType;
import com.pushtorefresh.storio.contentresolver.annotations.StorIOContentResolverColumn;
import com.pushtorefresh.storio.contentresolver.annotations.proc... | true |
274ad3867bb93562abfbccd401b0545511259b0a | Java | liyork/violin | /violin-test/src/main/java/com/wolf/test/base/MyReentrantLock.java | UTF-8 | 253 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.wolf.test.base;
import java.util.concurrent.locks.ReentrantLock;
public class MyReentrantLock extends ReentrantLock {
protected final String getState() {
return super.getOwner().getName() + " " + super.getHoldCount();
}
}
| true |
4022859effa3b892d52a103097f682355c98f4f2 | Java | kingroma/KDMC-Rental-Period-Unlimit | /src/mongo/MongoConnection.java | UTF-8 | 3,630 | 2.390625 | 2 | [] | no_license | package mongo;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.MongoClient;
public class MongoConnection {
private String ip = "192.168.10.180";
private int port = 27017;
private MongoClient mongoClient = null;
private DB db = null ;
public MongoConnection(){
try {... | true |
3b7073fed78c6f76871827795ec246dca96ea2b3 | Java | gospelslide/design_patterns | /abstract_factory/Base.java | UTF-8 | 81 | 2.125 | 2 | [] | no_license | package abstract_factory;
public interface Base {
public String getBase();
} | true |
d9a4301cc499bb83d1901adce8f34a3e2a612795 | Java | tomdv18/algo3_tp2 | /src/main/java/edu/fiuba/algo3/modelo/excepciones/JuegoTerminadoException.java | UTF-8 | 601 | 2.703125 | 3 | [
"MIT"
] | permissive | package edu.fiuba.algo3.modelo.excepciones;
import edu.fiuba.algo3.modelo.componentesJugador.Jugador;
public class JuegoTerminadoException extends RuntimeException {
private Jugador jugGanador;
private String colorJugHex;
public JuegoTerminadoException(Jugador jugador, String colorHex) {
colorJug... | true |
f0caea3d3d073b20efe5edcc00d24342cce68241 | Java | jjq734035350/project | /CGB-JT-SYS-V1.01/src/main/java/com/jt/sys/dao/SysUserDao.java | UTF-8 | 579 | 2.046875 | 2 | [] | no_license | package com.jt.sys.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.jt.sys.entity.SysUser;
public interface SysUserDao {
/**
* 注册
*/
int doRegister(@Param("username")String username,@Param("password")String password);
/**根据用户名查找用户信息*/
SysUser findObjectByUserName(String u... | true |
ade43244d28770e7ab8095959e17f86bb5d29e35 | Java | mr-short/Java-Projects | /blarg/Edit.java | UTF-8 | 551 | 2.546875 | 3 | [] | no_license | package blarg;
public class Edit
{
public static void main(String[] arg)
{
int DXT = 19;
int eDXT = 10;
boolean end=false;
for(int i=4; i>1; i--)
if(DXT >= i*eDXT)
{
System.out.println(""+i);
end=true;
break;
}
int a=0;
if(!end)
for(int i=0; i<20; i++)
... | true |
2f3082c746575aff32fd47bc48b60169b696553f | Java | saisuraj0611/Legends_Bunk_v2 | /app/src/main/java/com/example/legendsbunkv2/util/AttendenceHistoryAdapter.java | UTF-8 | 3,859 | 2.296875 | 2 | [] | no_license | package com.example.legendsbunkv2.util;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.legendsbunkv2.R;
imp... | true |
a817c9420bf2d472d1def19bf0983912b450620a | Java | fineweekDay/Code-Interview-java | /src/chapter5/timeefficient/SortArrayForMinNumber.java | UTF-8 | 2,410 | 4.5 | 4 | [] | no_license | package chapter5.timeefficient;
import java.util.Comparator;
/**
* 题目:把数组排成最小的数【需要会证明】
* 输入一个正整数组,把数组里所有数字拼接起来排成一个数,
* 打印能拼接出的所有数字中最小的一个。
* 例子{3,32,321}----out:321323
* <a href="http://wiki.jikexueyuan.com/project/for-offer/question-thirty-three.html">代码借鉴地址</a>---顺便复习下Comparable VS Comparator
* Created by Admi... | true |
8fc5e8ee782a26556b77cf8571b32feb8fbf9fb6 | Java | KennethCookWCC/CPS298 | /beans_and_jdbc/src/main/java/jdbc/GlobalConnectionPool.java | UTF-8 | 2,254 | 2.59375 | 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 jdbc;
/**
*
* @author kcook
*/
import java.sql.SQLException;
import javax.servlet.ServletContext;
import jav... | true |
8f2c74d953724b12df38695602ed5536cdb6a860 | Java | soonmyeong2/ReviewEarly | /back/src/main/java/com/example/demo/dto/ReviewDTO.java | UTF-8 | 887 | 1.679688 | 2 | [] | no_license | package com.example.demo.dto;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.lang.reflect.Array;
import java.util.List;
@Document(collection = "reviews")
@Data
public class ReviewDTO {
@... | true |
5724da9fc29b61326f73b7ca5ff5a2699d3bdbd5 | Java | ClintH/fltspc-android | /fltspc/src/main/java/dk/itu/fltspc/util/SurfaceDataAdapter.java | UTF-8 | 6,441 | 2.1875 | 2 | [] | no_license | //package dk.itu.fltspc.util;
//
//import java.io.BufferedReader;
//import java.io.ByteArrayOutputStream;
//import java.io.IOException;
//import java.io.InputStreamReader;
//import java.io.OutputStreamWriter;
//import java.lang.reflect.Type;
//import java.net.HttpURLConnection;
//import java.net.MalformedURLEx... | true |
f92c13ca0a1d34ecba73e61cafa3d131bf311b0c | Java | Micah-Jiang/Micah_RPC_FrameWork | /src/main/java/com/micah/rpc/server/work/WorkThread.java | UTF-8 | 2,019 | 2.625 | 3 | [] | no_license | package com.micah.rpc.server.work;
import com.micah.rpc.common.msg.RpcRequest;
import com.micah.rpc.common.msg.RpcResponse;
import com.micah.rpc.server.provider.ServiceProvider;
import lombok.AllArgsConstructor;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import ja... | true |
f43f454f2a1dafb214e3982ae1ada43fd80da273 | Java | GuilhermeJWT/orange-talents-04-template-proposta | /src/main/java/br/com/zupacademy/guilhermesantos/proposta/repository/PropostaRepository.java | UTF-8 | 646 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.guilhermesantos.proposta.repository;
import java.util.List;
import java.util.Optional;
import br.com.zupacademy.guilhermesantos.proposta.enums.StatusProposta;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import br.com.zupaca... | true |
aed1ac46c04318799f35cc1ab03f52c72fde4354 | Java | CROCDC/Revista_Palabras | /app/src/main/java/com/ar/tcr/revistapalabras/Controler/ControlerContenidoFavoritoFirebase.java | UTF-8 | 1,721 | 2.15625 | 2 | [] | no_license | package com.ar.tcr.revistapalabras.Controler;
import com.ar.tcr.revistapalabras.DAO.DAONoticiaFavoritoFirebase;
import com.ar.tcr.revistapalabras.Model.Noticia;
import com.ar.tcr.revistapalabras.Utils.ResultListener;
import java.util.ArrayList;
import java.util.List;
public class ControlerContenidoFavoritoFirebase {... | true |
8e2a5a72ada471fc5f7375571088d4e0eff4c7d8 | Java | yfyf510/Ronghetongxin | /BeiDouCommunication/app/src/main/java/com/zhbd/beidoucommunication/event/TextMsgFeekBackEvent.java | UTF-8 | 600 | 2.140625 | 2 | [] | no_license | package com.zhbd.beidoucommunication.event;
/**
* Created by zhangyaru on 2017/10/27.
*/
public class TextMsgFeekBackEvent {
private int msgNumber;
private int status;
public TextMsgFeekBackEvent(int userId, int status) {
this.msgNumber = userId;
this.status = status;
}
public ... | true |
cdc12d59f01cccfbdaee586221aa30a82f732c75 | Java | flutter/packages | /packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java | UTF-8 | 11,217 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.features.resolution;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.hardwar... | true |
ae50616def711e0385d9a7a08599ab841c85510d | Java | mobgen/halo-android | /sdk/halo-sdk/src/main/java/com/mobgen/halo/android/sdk/media/HaloCloudinary.java | UTF-8 | 61,355 | 2.28125 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | package com.mobgen.halo.android.sdk.media;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import android.text.TextUtils;
import android.ut... | true |
eabf2bbade23d5c02e77d4c9e714c9cbb9a4ff17 | Java | 6638112/propertyERP-2 | /domain_common/src/main/java/com/cnfantasia/server/domainbase/familyMsgPic/dao/FamilyMsgPicBaseDao.java | UTF-8 | 5,670 | 2.125 | 2 | [] | no_license | package com.cnfantasia.server.domainbase.familyMsgPic.dao;
//import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.cnfantasia.server.domain.pub.dao.AbstractBaseDao;
import com.cnfantasia.server.business.pub.entity.PageModel;
import com.c... | true |
cf89d14a5c743bad3de33de8c75b5c3145b395f2 | Java | shail1991cloud/automation | /src/test/java/com/helperUtilities/LoggerHelper.java | UTF-8 | 536 | 2.34375 | 2 | [] | no_license |
package com.helperUtilities;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
/**
* @author Shailendra PS Parihar
*/
public class LoggerHelper {
private static boolean root = false;
/**
* @getlogger method is used to return Logger class object
*/
public static ... | true |
e1f4fd6df195787b9e1922849de5ce02c5e5d680 | Java | mofe64/healthyEats-userService | /src/main/java/com/example/healthyeatsuserservice/repository/UserRepository.java | UTF-8 | 590 | 1.984375 | 2 | [] | no_license | package com.example.healthyeatsuserservice.repository;
import com.example.healthyeatsuserservice.models.Role;
import com.example.healthyeatsuserservice.models.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.... | true |
1eef8aa8828b3b5c7ba8b7ee921b8a1445a03cf2 | Java | harshtuna/elide | /elide-core/src/test/java/com/yahoo/elide/core/RequestScopeTest.java | UTF-8 | 2,886 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.core;
import com.yahoo.elide.ElideSettingsBuilder;
import com.yahoo.elide.annotation.Include;
import org.testng.Assert;
import org.testng.annotations.Test;
imp... | true |
3c890a8aeeffa13fc79824b93df12f73960d892b | Java | lixianSharp/S2SH | /Hibernate/day35_hibernate03/src/cn/itcast/g_cascade/Dept.java | UTF-8 | 673 | 2.71875 | 3 | [] | no_license | package cn.itcast.g_cascade;
import java.util.HashSet;
import java.util.Set;
//部门
public class Dept {
private int id;
private String deptName;
/**
* 部门和员工的关系:一对多,一个部门下有多个员工
*/
private Set<Employee> employees = new HashSet<Employee>();
public int getId() {
return id;
}
public void setId(int id)... | true |
8dadaf6274f0757c8cb567225056a0fb9bf4e6ba | Java | bluemagical/auth | /src/com/mystudy/auth/service/FunctionsService.java | UTF-8 | 1,258 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.mystudy.auth.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mystudy.auth.dao.FunctionsDao;
import com.mystudy.auth.entity.Functions;
@Service
public class FunctionsService {
@Autowired private Fun... | true |
2206a07803940ce38ce99394453b7e826bb61538 | Java | daxing8/BILD-IT-zadaci | /src/zadaci_25_08_2016/MyCharacterTest.java | UTF-8 | 1,147 | 4.03125 | 4 | [] | no_license |
/*********************************************************************************
* (Implement the Character class) The Character class is provided in the Java
* library. Provide your own implementation for this class. Name the new class
* MyCharacter.
*
***************************************************... | true |
3dde85a5356917923095797a9fd20c8563b1cfd8 | Java | github4n/other_workplace | /2018-work/jiuy-biz/jiuy-biz-common/src/main/java/com/jiuyuan/entity/order/ShopGoodsCar.java | UTF-8 | 3,407 | 2.140625 | 2 | [] | no_license | package com.jiuyuan.entity.order;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Seriali... | true |
cf4c00a28fd886c5dbab4b397df928f26fd928f7 | Java | msansm1/medek-server | /src/main/java/bzh/medek/server/persistence/dao/LangDAO.java | UTF-8 | 654 | 2.4375 | 2 | [
"MIT"
] | permissive | package bzh.medek.server.persistence.dao;
import java.util.List;
import javax.ejb.Stateless;
import bzh.medek.server.persistence.entities.Lang;
/**
* DAO for LANG table
*
* @author msansm1
*
*/
@Stateless
public class LangDAO extends Dao {
public void updateLang(Lang lang) {
em.merge(lang);
}
public vo... | true |
e7a5d3d79dd5d71b8703e3df6c83b8c1f96df9bf | Java | xiaozhupig/RESTAssuredDemo | /RESTAssuredDemo/src/test/java/com/learn/demo/Demo1.java | UTF-8 | 1,201 | 2.296875 | 2 | [] | no_license | package com.learn.demo;
import io.restassured.http.ContentType;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.Map;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.matchesPattern;
public class Demo1 {
@... | true |
928a612ca8058db1ba8ee46c4b228d61e9f27beb | Java | mingjiew97/MyFullStackLearningPath | /DemoProjects/Cloud/order-service/src/main/java/com/mercury/orderservice/controller/OrderController.java | UTF-8 | 3,189 | 2.0625 | 2 | [] | no_license | package com.mercury.orderservice.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.... | true |
d13c7c485ab49e5600e206bf84f826c6cb64244f | Java | liizard/didauvn | /src/main/java/domain/web/controller/ComponentController.java | UTF-8 | 1,484 | 1.90625 | 2 | [] | no_license | /******************************************************************************
* Copyright (c) 2012 didauvn.
******************************************************************************
*
******************************************************************************
* M A I N T E N A N C E ... | true |
4d222f8823c383f5e1e48baf7739af2be35cc5ac | Java | NEWTTR/Practise | /HIS/src/com/org/service/DoctorService.java | UTF-8 | 281 | 1.945313 | 2 | [] | no_license | package com.org.service;
import java.util.List;
import com.org.pojo.Doctor;
public interface DoctorService {
List<Doctor> list();
void add(Doctor doctor);
void update(Doctor doctor);
Doctor get(int m_num);
void delete(int m_num);
}
| true |
6180ee2ac98df9a91d7edff1f65eb7dedd2bca37 | Java | ankitd2/Miscellaneous-Code | /ArrayProject/src/StatisticsTester.java | UTF-8 | 2,059 | 3.34375 | 3 | [] | no_license | /*
* this class is used to test all of the methods from the Statistics Class
*/
public class StatisticsTester {
/*
* this method tests all of the methods from the Statistics class and prints them out in an orderly fashion
*/
public static void callArray(double[] a)
{
System.out.println("Given arra... | true |
e0966b4a87b97a871ee037eeea2d51f578a7fcdf | Java | christiansaddock/AutomacaoComJava | /src/test/java/testes/ApiTests.java | UTF-8 | 2,081 | 2.59375 | 3 | [] | no_license | package testes;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test;
public class ApiTests {
private String token;
@Before
public void SetUp(){
RestAssured.baseURI = "http://165.227.93.41";
... | true |
9749af22fb8978ac3c0ab946c9aafa3c32352eca | Java | MahatmaFatalError/javaspektrum-dynamic-proxy | /src/main/java/de/mvitz/dynamic_proxy/http/HttpRequestMain.java | UTF-8 | 439 | 2.578125 | 3 | [
"MIT"
] | permissive | package de.mvitz.dynamic_proxy.http;
import de.mvitz.dynamic_proxy.http.HttpRequestProxy.Request;
public class HttpRequestMain {
public static void main(String[] args) {
GoogleClient googleClient = HttpRequestProxy.create(GoogleClient.class);
System.out.println(googleClient.google());
}
... | true |
d632457ad2a89659429763ff026c1d94010ef0c6 | Java | jet-cabin/realestate | /basic/src/main/java/com/jet/realestate/basic/service/impl/UserServiceImpl.java | UTF-8 | 10,396 | 2.109375 | 2 | [] | no_license | package com.jet.realestate.basic.service.impl;
import com.github.pagehelper.PageHelper;
import com.jet.realestate.basic.dto.UserParam;
import com.jet.realestate.basic.dto.UserQueryParam;
import com.jet.realestate.basic.mapper.UserMapper;
import com.jet.realestate.basic.mapper.UserRoleRelationMapper;
import com.jet.r... | true |
dd6a26405400146abe896361c04ea7bcc94b69e6 | Java | GlennLefevere/angular | /src/main/java/be/provikmo/controllers/TranslationController.java | UTF-8 | 1,413 | 2.015625 | 2 | [] | no_license | /**
* (c) 2015 ADMB. All rights reserved.
*/
package be.provikmo.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.s... | true |
e95f33b2d78ff2d542393468f9d8f500ba7e572b | Java | Jason-Cooke/titus-control-plane | /titus-server-runtime/src/test/java/com/netflix/titus/runtime/connector/relocation/replicator/GrpcRelocationReplicatorEventStreamTest.java | UTF-8 | 3,358 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Netflix, Inc.
*
* 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 t... | true |
ab572e01c73a7f578cfaa34aa0825ddce68b3f3d | Java | Sovsekongen/3_sempro | /JDBCSoftwareGUI/src/jdbcCon/TimeVal.java | UTF-8 | 1,405 | 2.828125 | 3 | [] | no_license | package jdbcCon;
import java.util.logging.Logger;
/*
* Opbevarer data fra den sidste tabel, der håndterer de forskellige tider.
*/
public class TimeVal
{
private int pickUpTime;
private int imagePTime;
private int throwTime;
private int totalTime;
private int throwNr;
public TimeVal(int t... | true |
f35db2ee172e22bd721c9da91c7a29b4c22ec72e | Java | hongsokan/java | /src/ch05/basic/TimesTableArrayTest.java | UTF-8 | 435 | 3.703125 | 4 | [] | no_license | package ch05.basic;
public class TimesTableArrayTest {
public static void main(String[] args) {
int[] timesTable = new int[9];
for(int i=0; i<timesTable.length; i++){
timesTable[i] = 3 * (i+1);
}
System.out.println("배열 생성 완료");
int sum = 0;
for(int i=0; i<timesTable.length; i++){
if(i %2==0){
... | true |
f2859e1e74724ea7df0696be70353ce478049d28 | Java | anthe69/Unit08Egorov | /task01/Customer.java | UTF-8 | 3,507 | 2.96875 | 3 | [] | no_license | package com.epam.unit08.task01;
import java.util.Random;
public class Customer {
private long customerId;
private String lastName;
private String firstName;
private String middleName;
private long creditCardNumber;
private String bankAccountNumber;
public Customer() {
super();
}
public ... | true |
d4831ca68f86f3cec745fc5fada6bc3a316a6670 | Java | pago/PgsAction | /src/com/pagosoft/action/ActionButtonProvider.java | UTF-8 | 2,377 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2005 Patrick Gotthardt
*
* 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 agre... | true |
91123f9182a7a144f8dee78fee364bcd8893b13f | Java | Tejp98/Java | /String_Compression.java | UTF-8 | 894 | 3.828125 | 4 | [] | no_license | import java.util.*;
class String_Compression{
public static void main(String args[]){
Scanner console = new Scanner(System.in);
System.out.println("Enter the String");
String input = console.nextLine();
System.out.println(Compressed(input));
}
static String Compressed(String input){
int index1 = 0;
... | true |
1f5cf41be100aadce1bdaba4eff059d9b3c71269 | Java | dvbern/kibon-exchange-api | /src/main/java/ch/dvbern/kibon/exchange/api/common/fileexport/FileVerfuegungDTO.java | UTF-8 | 5,759 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 DV Bern AG, Switzerland
*
* 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 l... | true |