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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
33e1239be38a2b102da364e0ec32c37a16c5841a | Java | amandabiagi/luiza-labs | /luiza-labs/src/main/java/the/biagi/luizalabs/viacep/ViaCepService.java | UTF-8 | 401 | 1.765625 | 2 | [] | no_license | package the.biagi.luizalabs.viacep;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(name = "ViaCep", url = "http://viacep.com.br/ws/")
public interface ViaCepService {
@Get... | true |
40aac8084d26c876ea5cb21ec3b0890d588f29bb | Java | simonzcx/quinn-service-framework | /quinn-service-mq/src/main/java/com/quinn/framework/controller/MqController.java | UTF-8 | 2,468 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.quinn.framework.controller;
import com.quinn.framework.api.MqService;
import com.quinn.util.base.model.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org... | true |
11af4eed291317583154c0808de9e861f5cb3f31 | Java | mstcmember/mstcBlog | /src/main/java/com/seu/mstc/service/impl/QuestionServiceImpl.java | UTF-8 | 24,803 | 2.140625 | 2 | [] | no_license | package com.seu.mstc.service.impl;
import com.seu.mstc.async.EventModel;
import com.seu.mstc.async.EventProducer;
import com.seu.mstc.async.EventType;
import com.seu.mstc.dao.QuestionCommentDao;
import com.seu.mstc.dao.QuestionDao;
import com.seu.mstc.dao.UserDao;
import com.seu.mstc.jedis.JedisClient;
import com.seu.... | true |
9a6e73eee1d1b0152986d44aa300a124163991bf | Java | IgorCooli/ESTACIONAMENTO_APS | /Estacionamento_APS/src/model/Movimentacao.java | UTF-8 | 849 | 2.265625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import java.util.Date;
/**
*
* @author coliv
*/
public class Movimentacao {
private Date dataEntrada;
priva... | true |
a4646df5afe0ce13821ed5cbc2fd9dd6e4b055d4 | Java | AnnKanevska/OOP_task01 | /recording/src/main/java/disk/Main.java | UTF-8 | 2,621 | 2.875 | 3 | [] | no_license | package disk;
import java.util.Scanner;
import music.Classical;
import music.Jazz;
import music.Music;
import music.Pop;
import music.Rock;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Music [] elements={
new Classical("00:13:28", "композит... | true |
f8f932baad5a4549837047469761b16f593e4209 | Java | jDebu/SoyDonante | /app/src/main/java/com/example/jose/myapplication/adapters/PostAdapter.java | UTF-8 | 15,684 | 1.914063 | 2 | [] | no_license | package com.example.jose.myapplication.adapters;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget... | true |
a275b360daa1d8258dfc57c2ffdb7ffd865074ea | Java | msdewitt/JavaDecompilationPractice | /org/powerbot/bot/rt6/client/Actor.java | UTF-8 | 1,879 | 2.3125 | 2 | [] | no_license | package org.powerbot.bot.rt6.client;
import org.powerbot.bot.Reflector.FieldCache;
public class Actor extends RenderableEntity {
private static final Reflector.FieldCache jdField_super = new Reflector.FieldCache();
private static final Reflector.FieldCache jdField_final = new Reflector.FieldCache();
private sta... | true |
782b1a94a34fb1d810d592d132f39d6f52d21e42 | Java | gspandy/api-gateway-2 | /src/main/java/com/xkeshi/apigateway/main/AppConfigration.java | UTF-8 | 802 | 1.554688 | 2 | [] | no_license | package com.xkeshi.apigateway.main;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.netflix.zuul.EnableZuulPr... | true |
456950261de4364b00feed5a24d42e3ff341989f | Java | suchaos/jdk8 | /src/main/java/com/suchaos/lambda/FunctionTest.java | UTF-8 | 971 | 3.53125 | 4 | [] | no_license | package com.suchaos.lambda;
import java.util.function.Function;
/**
* Function 练习
*
* @author suchao
* @date 2019/5/7
*/
public class FunctionTest {
public static void main(String[] args) {
FunctionTest test = new FunctionTest();
System.out.println(test.compute(1, value -> 2 * value));
... | true |
36396ed6fbf01e1519af1149f9adefaa25e60f36 | Java | derekvnewbold/Jinx | /Server/Jinx/src/main/java/com/jinx/location/LocationOffers.java | UTF-8 | 874 | 2.484375 | 2 | [] | no_license | package com.jinx.location;
import java.util.ArrayList;
import com.jinx.offer.Offer;
public class LocationOffers {
private Location location = null;
private ArrayList<Offer> offerList = new ArrayList<Offer>();
private int currentIndex = 0;
private long nextChangeTime = 0;
public Location getLocation() {
retur... | true |
9fda15d6c68bab03bda0ed9d5e7b08c0491fc4b1 | Java | 774109811/study | /cgb1809.4/CGB-JAVA-V1.01/src/main/java/annotation/TestAnnotation01.java | UTF-8 | 1,229 | 2.75 | 3 | [] | no_license | package annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;
/**自定义注解*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@interface Controller{
String va... | true |
22c5c347e0f689b4582d3326a97f2a13d34d30f5 | Java | victorcaballerogarcia-es/RestApiHeroes | /src/main/java/com/payworks/restapi/entity/Hero.java | UTF-8 | 2,285 | 2.34375 | 2 | [] | no_license | package com.payworks.restapi.entity;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Entity
@Table(name = "hero")
public class Hero implements Serializable {
@Id
... | true |
3410f24ce64cf24d1c09f22820adab747229e942 | Java | XiaoMi/mone | /mone-login/mi-tpclogin/mi-tpclogin-sdk/src/main/java/com/xiaomi/mone/tpc/login/util/SignUtil.java | UTF-8 | 8,752 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.xiaomi.mone.tpc.login.util;
import com.xiaomi.mone.tpc.login.anno.AuthExclude;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;
import java.lang.reflect.Field;
import java.security.KeyFactory;
import java... | true |
ac526e155fb549adaeb7e02c3c6a59e1fd67e50f | Java | JavaFamilyClub/jfoa | /runner/src/main/java/club/javafamily/runner/config/BaseSecurityExceptionHandle.java | UTF-8 | 2,793 | 2.015625 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2020, JavaFamily Technology Corp, All Rights Reserved.
*
* The software and information contained herein are copyrighted and
* proprietary to JavaFamily Technology Corp. This software is furnished
* pursuant to a written license agreement and may be used, copied,
* transmitted, and stored only ... | true |
49efa1d49993554ecceabf46b2783d96639aea59 | Java | Pyhro36/PLD_AGILE | /src/tsp/TemplateTSP.java | UTF-8 | 6,631 | 3.046875 | 3 | [] | no_license | package tsp;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Observable;
import model.Hour;
/**
* Class of the branch and bound template implementation of the TSP
* @author Pierre-Louis Lefebvre
*/
public abstract class TemplateTSP extends Observable implements TSP {
private Integer[] be... | true |
d3dd48e08173b8beffaf0a5057c81febac3d68a5 | Java | kaibagit/practice | /demo/src/main/java/com/kaiba/demo/concurrent/completablefuture/MonadDemo.java | UTF-8 | 587 | 3.09375 | 3 | [] | no_license | package com.kaiba.demo.concurrent.completablefuture;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
/**
* Created by luliru on 2017/6/5.
*/
public class MonadDemo {
public static void main(String[] args) throws ExecutionException, InterruptedException {
C... | true |
b9000747f99352a650b6a637e111a560b2dc3dfd | Java | nsjacques/two-color | /src/AdjacencyList.java | UTF-8 | 3,609 | 3.796875 | 4 | [] | no_license | /*
* An adjacency list construct that also keeps track of what vertices have not been visited by a search
*
* Unvisited is a node array where all the nodes are initially connected.
* It's like an array with a linked list working in and about it.
*
*/
import java.io.FileNotFoundException;
import java.io.FileRea... | true |
c07000e6e5f086ee8105534bc028eef50ad5a079 | Java | seoulit47/47thProject | /erp47/src/main/java/com/seoulit/erp47/sup/pathology/to/ClinspeBean.java | UTF-8 | 1,338 | 1.960938 | 2 | [] | no_license | package com.seoulit.erp47.sup.pathology.to;
import com.seoulit.erp47.common.annotation.Dataset;
import com.seoulit.erp47.common.to.BaseBean;
import groovy.transform.ToString;
import lombok.Getter;
import lombok.Setter;
/**
* @Package com.seoul.his.sup.laboratoryMedicine.to
* @Class ClinspeBean.java
... | true |
b3780ff18ac6aeabf5fa8a0426ba05137a0524bf | Java | geetabhag/Cracking-The-Coding-Interview | /eclipse-workspace/CTCI/src/Sum13.java | UTF-8 | 353 | 3.078125 | 3 | [] | no_license | public class Sum13{
/*public static double sqrt(int number) {
}*/
public static void main(String[] args) {
String str = new String("Hello I am");
System.out.println(str);
String wrd[]=str.split(" ");
for (int i=0;i<wrd.length;i++) {
if(i==wrd.length-1)
{
System.out.print(wrd[i]);
}
else {
System.ou... | true |
1a5ef9dff5b7445b3b561bb31dc91022457778e7 | Java | ray352801250/stattic_resource | /src/main/java/com/dodoca/service/impl/StaticResourceVersionOneServiceImpl.java | UTF-8 | 11,375 | 1.984375 | 2 | [] | no_license | package com.dodoca.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.dodoca.config.RedisClient;
import com.dodoca.service.StaticResourceVersionOneService;
import com.dodoca.utils.DateUtils_java8;
import com.dodoca.utils.HandleRequestUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | true |
3c221cc0c3c687c82565364207e396048894bccb | Java | VishwasRaiborde/ft-ibrowser-java-8-compatiable | /ibrowser/src/main/java/com/cloudsherpas/http/SyncUsersGroups.java | UTF-8 | 1,439 | 2.21875 | 2 | [] | no_license | package com.cloudsherpas.http;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.cloudsherpas.GlobalConstants;
import com.cloudsherpas.dao.UserDao;... | true |
edb23b44c15e6598b106d26126c0f04e1e0bb342 | Java | keshavlingala/Arjuna | /src/Elite Problems/Day 35 Solutions/StringPermutations.java | UTF-8 | 3,222 | 3.359375 | 3 | [] | no_license | /*
Write a program to print all permutations of a given string
Example-1:
Input= ABC
Output= ABC ACB BAC BCA CBA CAB
Note:
print output in lexicographic order
======TestCases=======
case =1
input =bacd
output =abcd abdc acbd acdb adbc adcb bacd badc bcad bcda bdac bdca cabd cadb cbad cbda cda... | true |
408c877f33ccbe0e0c340daf685c1e0290f2efb8 | Java | sanjeet94/In-One-File-Manager | /Code/IOFM/src/pdfreadtest/PDfTitleExtract.java | UTF-8 | 4,728 | 2.765625 | 3 | [] | no_license | package pdfreadtest;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.parser.PdfTextExtractor;
import com.itextpdf.text.pdf.parser.TextExtractionStrategy;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.SortedSet;
import java.util.TreeMap;
impor... | true |
689bc689287d982181103e054bf8c9142d9d3575 | Java | valb3r-adorsys/open-banking-gateway | /opba-protocols/hbci-protocol/src/main/java/de/adorsys/opba/protocol/hbci/service/protocol/ais/dto/HbciResultCache.java | UTF-8 | 594 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package de.adorsys.opba.protocol.hbci.service.protocol.ais.dto;
import de.adorsys.multibanking.hbci.model.HbciConsent;
import lombok.Data;
import java.util.Map;
/**
* Contains cached HBCI result values, since HBCI does not provide any kind of consent.
*/
@Data
public class HbciResultCache {
/**
* Last HB... | true |
f67d33f55f3c40d3a4ac72dd6b89297016554caa | Java | andrewsselvaraj/spring-boot-demo | /SpringCore/SpringValidationDemo/src/main/java/com/techstack/spring/beanwrapper/builtinpropertyeditor/MainAppForCustomDateEditor.java | UTF-8 | 583 | 2.640625 | 3 | [] | no_license | package com.techstack.spring.beanwrapper.builtinpropertyeditor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
*
* @author KARTHIKEYAN N
*
*/
public class MainAppForCustomDateEditor {
public static void main(Stri... | true |
7cac0ba8566f5d627d1845f3023c842437d149c0 | Java | farukcuha/OlivmonApp | /app/src/main/java/com/example/dokuapp/Adapters/SiparisAdapter.java | UTF-8 | 2,886 | 2.203125 | 2 | [] | no_license | package com.example.dokuapp.Adapters;
import android.content.Intent;
import android.os.Bundle;
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.... | true |
84f538e575da7c1f4e173e34b652beb08c899955 | Java | Vincent-zhu-007/WearMis | /mis/src/com/sg/mobile/service/WebSiteMenuService.java | UTF-8 | 7,933 | 2.25 | 2 | [] | no_license | package com.sg.mobile.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.dom4j.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotyp... | true |
fa4c4ec5f1fcfeede744e1de10b7b2eea899cdf6 | Java | Turkanbozdag/JavaSpringPractice2020 | /src/Codiiiin/Task2/SaavingAccount.java | UTF-8 | 223 | 1.617188 | 2 | [] | no_license | package Codiiiin.Task2;
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
public class SaavingAccount {
SaavingAccount saving=new SaavingAccount();
//System.out.println(SaavingAccount.interestRate);
}
| true |
3ed6177d0e895c7fef49f8ca2e4ad5839a33a8c1 | Java | ravi-agrawalics/Microservice | /sample-spring-oauth2-microservices/gateway/src/main/java/pl/piomin/services/gateway/SecurityConfig.java | UTF-8 | 3,052 | 1.898438 | 2 | [] | no_license | package pl.piomin.services.gateway;
import javax.servlet.http.HttpServletRequest;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.cloud.netflix.zuul.Enabl... | true |
9726ff50ef5e4569b6e48a1c696fb86f61e3d0a5 | Java | SpringTracks/SampleManagement2 | /SampleManagement2/src/com/lge/dbhelper/DataSample.java | GB18030 | 1,665 | 2.390625 | 2 | [] | no_license | package com.lge.dbhelper;
import android.content.ContentValues;
import android.database.Cursor;
/**
* SAMPLE_TABLE_NAME = "SampleTable"
* @author qiangyt.zhang
*
*/
public interface DataSample extends DataCommon {
/**
* ѯֻϢ
* @return
*/
public Cursor queryAllDataSample();
/**
* ֵָѯ
... | true |
02e01d4bb380a80912a0cab7867fb290205e181b | Java | gsking80/AoC-2017 | /src/main/java/king/greg/advent_2017/Day1.java | UTF-8 | 737 | 3.65625 | 4 | [] | no_license | package king.greg.advent_2017;
public class Day1 {
public static int captcha (final String input) {
int sum = 0;
for (int i = 0;i < input.length();i++) {
if (input.charAt(i) == (input.charAt((i + 1) % input.length()))) {
sum += Character.getNumericValue(input.charAt(i));
}
}
return ... | true |
8e2717b912916d63f0f02bc35abb3a68923d3f57 | Java | Aimtracker/KBEWiSe18 | /songsrx/src/main/java/de/htw/ai/kbe/songsrx/persistence/ISongList.java | UTF-8 | 382 | 1.984375 | 2 | [] | no_license | package de.htw.ai.kbe.songsrx.persistence;
import de.htw.ai.kbe.songsrx.bean.Song;
import javassist.NotFoundException;
import java.util.List;
public interface ISongList {
List<Song> getAll();
Song getById(int id) throws NotFoundException;
Integer add(Song song);
void update(Song song) throws NotFound... | true |
efed76bd9b0c6053d5e4caccff450628368877be | Java | kingkong-li/digitalwallet | /app/src/main/java/com/jingang/digitalwallet/view/RoundBackgroundButton.java | UTF-8 | 1,066 | 2.421875 | 2 | [] | no_license | package com.jingang.digitalwallet.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
/**
* @Description: 自定义圆形背景的button
* @Author: jingang.Li
* @CreateTime: 2021/6/30-10:43 PM
*/
public class RoundB... | true |
6638eb2da2bcfa6c7b74632181b6efa793bbb882 | Java | whlstudy/jottings | /src/main/java/wang/study/leetcode/dynamic/LongestIncreasingSubsequence.java | UTF-8 | 1,167 | 3.296875 | 3 | [] | no_license | package wang.study.leetcode.dynamic;
import org.junit.Test;
import java.util.Arrays;
public class LongestIncreasingSubsequence {
/**
* O(n^2)
*/
public int lengthOfLIS(int[] nums) {
int[] dp = new int[nums.length];
if(nums.length == 0) return 0;
int ret = 1;
dp[0] =... | true |
3e400331f1605a3a10dcdab60768439dc47d360c | Java | WojciechWeg/user_service | /src/main/java/com/wojtek/user_service/UserService.java | UTF-8 | 2,192 | 2.609375 | 3 | [] | no_license | package com.wojtek.user_service;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
@Service
public class UserService {
private final UserRepository userRepository;
public UserService(UserRepository userRepository) {
this.use... | true |
dcc5eeb9b4fb985d692134e3a7768d316fb6b1de | Java | shadya7med/TripReminder | /app/src/main/java/com/iti/example/tripreminder/Repositiory/RoomDatabase/AppDatabase.java | UTF-8 | 412 | 2.15625 | 2 | [] | no_license | package com.iti.example.tripreminder.Repositiory.RoomDatabase;
import androidx.room.Database;
import androidx.room.RoomDatabase;
import com.iti.example.tripreminder.Models.Notes;
import com.iti.example.tripreminder.Models.Trips;
@Database(entities = {Trips.class, Notes.class},version = 1,exportSchema = false)
public... | true |
a67b1d75b35a1e1d9754eb18fd66cf8274247af1 | Java | jyf666/IOMS | /src/dao/cn/com/atnc/ioms/entity/techsupport/fault/FaultDeclare.java | UTF-8 | 6,791 | 1.859375 | 2 | [] | no_license | /**
*
*/
package cn.com.atnc.ioms.entity.techsupport.fault;
import java.util.Date;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;... | true |
f8623b2f4741a659cfc5de7c4c8f9ec2d55b47f4 | Java | alosummer/enfi | /oracle/apps/cux/docinfo/server/CuxDocinfoManageResultVORowImpl.java | UTF-8 | 23,900 | 1.554688 | 2 | [] | no_license | package cux.oracle.apps.cux.docinfo.server;
import oracle.apps.fnd.framework.server.OAViewRowImpl;
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
// ---------------------------------------------------------------------
// --- File generated by Oracle ADF ... | true |
416262c02ad571a876244a485c88a0ea46c5cbad | Java | lolo101/MsgViewer | /MSGViewer/src/test/java/net/sourceforge/MSGViewer/rtfparser/RTFGroupTest.java | UTF-8 | 2,910 | 2.546875 | 3 | [
"Unlicense"
] | permissive | package net.sourceforge.MSGViewer.rtfparser;
import org.junit.jupiter.api.Test;
import java.nio.charset.StandardCharsets;
import static org.junit.jupiter.api.Assertions.assertEquals;
class RTFGroupTest {
@Test
void should_not_show_text_when_commands_empty() {
RTFGroup group = new RTFGroup(StandardC... | true |
8c887e205815466bb92c318a104aa8b9ec944091 | Java | pehulja/challenge | /src/main/java/com/pehulja/thefloow/storage/repository/CustomQueueItemRepositoryImpl.java | UTF-8 | 842 | 2.078125 | 2 | [] | no_license | package com.pehulja.thefloow.storage.repository;
import com.pehulja.thefloow.storage.documents.QueueItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stere... | true |
eb9abe7090a4439637f22e72e18ccea124b779a4 | Java | hd19901110/jeecms1.4.1test | /jeecms-component/src/main/java/com/jeecms/statistics/service/impl/TimeCuttingServiceImpl.java | UTF-8 | 1,232 | 2.5625 | 3 | [] | no_license | package com.jeecms.statistics.service.impl;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jeecms.statistics.service.TimeCuttingSe... | true |
0f9517b2557d1eff66352cf60c4ff66d275cbbd3 | Java | CS230-Group-16/A2-Caverns_Of_Delusion | /Main.java | UTF-8 | 1,330 | 2.546875 | 3 | [] | no_license | import java.io.FileInputStream;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
... | true |
536c9302a2246091fd4be32ccc84c7c380d7b8b4 | Java | liuzw-code/springboot-generate | /src/main/java/com/liuzw/generate/GenerateApplication.java | UTF-8 | 798 | 1.90625 | 2 | [] | no_license | package com.liuzw.generate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tk.mybatis.sprin... | true |
23bed292ae81cb4dd585a02807f969dd7729c065 | Java | rsundar01/SafeNet_HSM_CryptoKi | /src/main/java/com/ripple/samples/DigestSHADemo.java | UTF-8 | 3,799 | 2.828125 | 3 | [] | no_license | package com.ripple.samples;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.cert.... | true |
09de6c5113d87c25325ffaee2c90ce09d5df66fe | Java | moorework/GameProgramming | /CS 330 Project/src/edu/moravian/SM/PauseState.java | UTF-8 | 879 | 2.640625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.moravian.SM;
import edu.moravian.TowerDefenseGame;
import edu.moravian.math.Point2D;
import java.awt.Color;
import java.awt.Dimension;
/**
* This is an intentionally boring state to pause the game.
* @au... | true |
fef8f0a93a6c112a44812bff597efbbd97d2ca21 | Java | lucas-amin/webServerProject | /src/WebServer.java | UTF-8 | 786 | 2.984375 | 3 | [] | no_license | import javax.naming.ldap.SortKey;
import java.net.ServerSocket;
import java.net.Socket;
public final class WebServer
{
public static void main(String argv[]) throws Exception
{
// Set the port number .
final int port = 6789;
final Socket socket = new Socket("host.someschool.edu", port);
... | true |
d3e8cbc0c25d5637913b34854bb7f4ed5668a164 | Java | MartinLoeper/KAMP-2.0 | /bundles/extensions/KAMP-DSL/edu.kit.ipd.sdq.kamp.ruledsl/src/edu/kit/ipd/sdq/kamp/ruledsl/runtime/KarlModelLoader.java | UTF-8 | 1,081 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package edu.kit.ipd.sdq.kamp.ruledsl.runtime;
import java.io.IOException;
import org.eclipse.emf.common.util.TreeIterator;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import edu.kit.ipd.sdq.kamp.ruledsl.support.IModelLoader;
import edu.kit.ipd.sdq.kamp.ruledsl.support.ModelC... | true |
5e21e3b53df7c860c497516e598b56bec1c0a8f8 | Java | Fraderiko/ior-android | /app/src/main/java/ru/iorcontrol/ior/ior/Messages/MessagesCreateScreen.java | UTF-8 | 7,699 | 1.796875 | 2 | [] | no_license | package ru.iorcontrol.ior.ior.Messages;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuItem;
import android.v... | true |
ef96428d56af012ddcac57b5ecf2119212a78ae2 | Java | ARHimes78/Programming-Classes | /CIS2235 Java/HimesP9/src/Program9/PrimeShift.java | UTF-8 | 7,011 | 3.5625 | 4 | [] | no_license | //Alan Himes
//ahimes1@cnm.edu
//Program 9 Enigma with Polymorphism
//CIS2235
//File: MainP9.java, EnigmaFrame.java, EnigmaClass.java, EnigmaInterface.java, PrimeShift.java, Qwerty.java, Alternate.java
package Program9;
/**
*
* @author ahimes1
*/
public class PrimeShift extends EnigmaClass {
public PrimeS... | true |
e69a8452fff8e34a556c41444b3b4a451083f887 | Java | dahuoyzs/crab | /crab/src/main/java/cn/bigfire/crab/common/util/TokenUtil.java | UTF-8 | 3,912 | 2.84375 | 3 | [] | no_license | package cn.bigfire.crab.common.util;
import cn.bigfire.crab.common.exception.SysException;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTCreator;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTDecodeException;
import com.auth0.jwt.exceptions.TokenExp... | true |
620d8e421c2c03b9fbd7a1b0084bf6e9ad632b5f | Java | Gavin89/TravelMemories | /app/src/main/java/com/hardygtw/travelmemories/fragments/Trip/ViewTripDetailsFragment.java | UTF-8 | 1,417 | 2.296875 | 2 | [] | no_license | package com.hardygtw.travelmemories.fragments.Trip;
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.TextView;
import com.hardygtw.travelmemories.R;
import com.hardygtw.travelmemories.SQ... | true |
153ca3bae24c60f3389e76cc4ea38c913923fce6 | Java | JulianLian/HellWorld | /onms/src/env/Environment.java | UTF-8 | 2,570 | 2.984375 | 3 | [] | no_license | package env;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Environment
{
private static final String PEERIP = "IP";
private static final String LISTEN_PORT = "ListenPort";
private sta... | true |
a90872e30a6e3203e6b62d947af7597bd1ba37de | Java | xloger/wheel | /src/com/xloger/dao/UserDao.java | UTF-8 | 2,897 | 2.796875 | 3 | [] | no_license | package com.xloger.dao;
import java.sql.ResultSet;
import com.xloger.bean.DbBean;
import com.xloger.bean.UserBean;
public class UserDao {
// 查询是否有名为name的ID,有则返回此用户ID,否则返回0
public int searchId(String name) {
DbBean db = new DbBean();
try {
ResultSet re = db
.query("select * from wheel_users where user_n... | true |
d3c8acaae3d6e8d5d63c1ee938cf4f97d6172395 | Java | xiaxiao1/Lis99Test | /lishiMobile/src/main/java/com/lis99/mobile/club/model/ClubTopicGetApplyList.java | UTF-8 | 286 | 1.546875 | 2 | [] | no_license | package com.lis99.mobile.club.model;
import java.io.Serializable;
import java.util.ArrayList;
public class ClubTopicGetApplyList implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 1L;
public ArrayList<String> items;
public String error;
}
| true |
166b35d8fa9cbba457e1505faaca9a5e1fbd3fff | Java | Shaderock/ddbms | /src/main/java/md/ddbms/bestsn/controllers/MessageController.java | UTF-8 | 2,260 | 2.296875 | 2 | [] | no_license | package md.ddbms.bestsn.controllers;
import lombok.RequiredArgsConstructor;
import md.ddbms.bestsn.dtos.MessageDTO;
import md.ddbms.bestsn.exceptions.InconsistentDBException;
import md.ddbms.bestsn.exceptions.MessageHistoryNotFoundException;
import md.ddbms.bestsn.exceptions.MultiChatsException;
import md.ddbms.bestsn... | true |
cde82020f48a7b7cf92d7e2b957b8eb8ef45bbef | Java | ktrcampbell/LocationFinder | /app/src/main/java/com/bigbang/myfavoriteplaces/database/DAO.java | UTF-8 | 550 | 2 | 2 | [] | no_license | package com.bigbang.myfavoriteplaces.database;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import com.bigbang.myfavoriteplaces.model.Location;
import java.util.List;
import io.reactivex.Flowable;
@Dao
public interface DAO {
@Ins... | true |
19d732a96b4a139626bdc5f19628cab4b486e4a1 | Java | VVatermalon/Task2 | /src/main/java/service/impl/SortingServicesImpl.java | UTF-8 | 2,732 | 3.21875 | 3 | [] | no_license | package service.impl;
import entity.SimpleArray;
import java.util.Arrays;
public class SortingServicesImpl implements service.SortingServices {
public int[] bubbleSort(SimpleArray array) {
int[] intArray = array.getArray();
if(intArray.length < 2) {
return intArray;
}
... | true |
6deb6a747f03d89fd7c570299fcf4a4d3e99ca67 | Java | Enitsed/finalProject | /src/main/java/controller/BoardController.java | UTF-8 | 4,633 | 2.1875 | 2 | [] | no_license | package controller;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.... | true |
31ec10ff09270ba3bdf4d410905d8d51f6b3ec28 | Java | fouedbrahim/pidev-project-jsf | /pidev-project-web/src/main/java/ttma/mBean/DoctorBean.java | UTF-8 | 1,794 | 2.15625 | 2 | [] | no_license | package ttma.mBean;
import ttma.Entities.Doctor;
import ttma.services.Interfaces.GestionDoctorLocal;
import util.Messages;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import jav... | true |
206945324c1bab4507408f67093c72c881d44825 | Java | cachay99/SpringExamen | /src/main/java/es/salesianos/model/Pokemon.java | UTF-8 | 864 | 2.53125 | 3 | [] | no_license | package es.salesianos.model;
import org.springframework.stereotype.Component;
@Component
public class Pokemon {
private String name;
private String health;
private String attack;
private boolean currentFighter;
private boolean wild;
public String getName() {
return name;
}
public void setName(String name... | true |
672090f99c34463288b3cf5426142b334587861c | Java | bahadirk/SimpleTextEditor | /src/main/java/FindMenu/FindMenuController.java | UTF-8 | 1,233 | 2.4375 | 2 | [] | no_license | package FindMenu;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import gui.TextArea;
public class FindMenuController {
... | true |
187a40732f14f1533ddc11b331e59bf0364defed | Java | jrstan17/ClimateTextParser | /ClimateTextParser/src/com/jrstan17/climate/numbercrunchers/DailyAlmanac.java | UTF-8 | 15,153 | 2.609375 | 3 | [] | no_license | package com.jrstan17.climate.numbercrunchers;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import org.odftoolkit.simple.SpreadsheetDocument;
import org.odftoolkit.simple.style.Font;
import org.odftoolkit.simple.style.StyleTypeDefinitions.FontStyle;
import org.odfto... | true |
5576af7536cac20e20fcf76d305b77b59a6de34f | Java | NicholasNagy/SOEN343Component | /src/test/java/PropertyManager/PM/Application/CondoTests.java | UTF-8 | 13,633 | 2.359375 | 2 | [] | no_license | package PropertyManager.PM.Application;
import PropertyManager.PM.Data.util.SqlConnection;
import PropertyManager.PM.Application.Property.AddressTO;
import PropertyManager.PM.Application.Condo.CondoTO;
import PropertyManager.PM.Application.Property.PropertyTO;
import com.fasterxml.jackson.databind.ObjectMapper;
import... | true |
d1067a2067e834843c16750a8dbd923970a2628d | Java | wtaisi/newshiro_kaptcha | /src/com/auth/service/UserService.java | UTF-8 | 258 | 1.929688 | 2 | [] | no_license | package com.auth.service;
import java.util.List;
import com.auth.model.User;
public interface UserService {
public User getUser(String id);
public List<User> getAllUser();
public void addUser(User user);
public boolean delUser(String id);
}
| true |
a7e3291128f03da88118091a2d60a51743ffacdf | Java | sagar2911/Automated-Software-Engineering-Project | /hw/7/HW7/src/Main.java | UTF-8 | 834 | 3.03125 | 3 | [] | no_license | import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class Main {
public static void main(String[] args) {
if (args.length != 1) {
throw new IllegalArgumentException("Error! example format java -jar hw7.jar xomo10000.csv");
}
try {
String f... | true |
6acf364c9f5075dfb3083e1b4cd1b3af83d76189 | Java | solrcn/solr-jdbc | /src/main/java/net/unit8/solr/jdbc/impl/StatementImpl.java | UTF-8 | 8,879 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package net.unit8.solr.jdbc.impl;
import net.sf.jsqlparser.JSQLParserException;
import net.sf.jsqlparser.parser.CCJSqlParserManager;
import net.unit8.solr.jdbc.command.Command;
import net.unit8.solr.jdbc.command.CommandFactory;
import net.unit8.solr.jdbc.message.DbException;
import net.unit8.solr.jdbc.message.ErrorCod... | true |
9ae886f5d7ee2bae8f7d6baea0d801f3814bf75d | Java | pmbs84/eda-2014-2015 | /EDA 2014-2015/src/pt/europeia/eda/piazza/week02/StudentGradesExample.java | UTF-8 | 2,289 | 3.40625 | 3 | [] | no_license | package pt.europeia.eda.piazza.week02;
import static java.lang.System.out;
// Improvement of student responses:
public class StudentGradesExample {
public static void main(final String[] arguments) {
final int[] studentIDs = { 50020032, 50030312, 50025342, 50031432 };
final String[] courseAcronym... | true |
3b5cfe38227ea03a292d85438783b618bc9bc2aa | Java | wlsgussla123/networkproject | /version1/Rain_Client/src/mju/cn/client/gui/item/SCSound.java | UTF-8 | 3,977 | 2.25 | 2 | [] | no_license | package mju.cn.client.gui.item;
import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;
public class SCSound {
// Attributes
AudioClip ac;
URL url;
/* 게임 배경음악 */
public void gameSound() {
try {
URL url = new URL("file:./sounds/patrit.wav");
ac = Applet.newAudioCl... | true |
fc20e15fc1da3b9d110b25c640892b18c2b8423d | Java | wxmwxm/New-Day | /home-app/webapp/src/main/java/home/manager/service/impl/IManagerService.java | UTF-8 | 260 | 1.695313 | 2 | [] | no_license | package home.manager.service.impl;
import java.util.List;
import common.models.AManagers;
public interface IManagerService {
public AManagers login(AManagers tbManagers);
public abstract void save();
@SuppressWarnings("rawtypes")
public List list();
} | true |
4bfc09e1612492433f4b74aa22afd6cb72bdd009 | Java | prabhjotbawa/selenium-learn | /Tutorial/src/gestures1.java | UTF-8 | 1,360 | 2.203125 | 2 | [] | no_license | import java.net.MalformedURLException;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.android.AndroidTouchAction;
import io.appium.java_client.touch.offset.ElementOption;
import io.appium.ja... | true |
91633f547c4f0f63bcc03a016bdbe836c2923f49 | Java | simingye/leetcode | /src/SetMatrixZeroes/SetMatrixZeroes.java | UTF-8 | 2,190 | 3.203125 | 3 | [] | no_license | package SetMatrixZeroes;
/**
* Created by Siming on 9/23/15.
*/
public class SetMatrixZeroes
{
public void setZeroes(int[][] matrix)
{
int rows = matrix.length;
int columns = matrix[0].length;
boolean firstRow = false;
boolean firstColumn = false;
if (matrix == null ... | true |
0b891a5e320928033401a9bbd39dffa00170ca0f | Java | brijesh310/groovy-pipeline-model | /src/main/java/org/jenkinsci/groovy/asmodel/App.java | UTF-8 | 1,813 | 2.40625 | 2 | [] | no_license | package org.jenkinsci.groovy.asmodel;
import groovy.lang.GroovyClassLoader;
import org.codehaus.groovy.ast.ClassNode;
import org.codehaus.groovy.classgen.GeneratorContext;
import org.codehaus.groovy.control.CompilationFailedException;
import org.codehaus.groovy.control.CompilationUnit;
import org.codehaus.groovy.contr... | true |
6d8c15818a61b1c6a252c7895f241d141990e419 | Java | AY1920S1-CS2103T-T12-2/main | /src/main/java/seedu/deliverymans/model/deliveryman/deliverymanstatistics/StatisticsRecordCard.java | UTF-8 | 4,332 | 3.265625 | 3 | [
"MIT"
] | permissive | package seedu.deliverymans.model.deliveryman.deliverymanstatistics;
/**
* Represents a card for statistics to be recorded on.
* Each variable represent a statistic.
*/
public class StatisticsRecordCard {
private static final String UTILIZATION_MESSAGE = "(Utilisation level signals the level of \nidle deliverym... | true |
5a3f13c80b8b3e39834073e9bc757d3d58c135cf | Java | suraj8080/PasswordGrid | /app/src/main/java/com/evontech/passwordgridapp/custom/accounts/AccountsActivity.java | UTF-8 | 23,413 | 1.609375 | 2 | [] | no_license | package com.evontech.passwordgridapp.custom.accounts;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
impor... | true |
35c8ef302fc2ce7ce1e4e44cda49450f3e8cb162 | Java | JLzzz994/mygit | /src/com/atguigu/springmvc/handler/TestHandleRequestHandler.java | GB18030 | 2,181 | 2.546875 | 3 | [] | no_license | package com.atguigu.springmvc.handler;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.Re... | true |
7ead050ad3520fecc4bba33c03282ed575274040 | Java | AntonioMontoyaaA/webexpansion | /src/main/java/com/tiendas/neto/vo/DocumentosVO.java | UTF-8 | 1,294 | 1.992188 | 2 | [] | no_license | package com.tiendas.neto.vo;
import java.io.Serializable;
import java.util.List;
public class DocumentosVO implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer documentoId;
private List<DocumentoHoja> documentos;
private String descripcion;
private ... | true |
4107b8c2911e9155a2bccf065f72f959cf06a66e | Java | junDev0/hanbitjse | /oop/src/grade/GradeService.java | UTF-8 | 296 | 1.9375 | 2 | [] | no_license | package grade;
public interface GradeService {
public void gradeInit(String name,int kor,int eng, int math);
public int gradeCheck(int kor, int eng, int math);
public int gradeTotal();
public int gradeAvg();
public String gradeRank();
public String gradeResult(String result);
}
| true |
b2088c25ebf2fa161e0f4729475ead5c0808525c | Java | NicolasDelor/javaPeter | /AirBnB/src/delor/airbnb/utilisateurs/Personne.java | UTF-8 | 370 | 3.109375 | 3 | [] | no_license | package delor.airbnb.utilisateurs;
public class Personne {
protected String prenom;
protected String nom;
protected int age;
public Personne(String prenom, String nom, int age) {
this.prenom = prenom;
this.nom = nom;
this.age = age;
}
public void afficher() {
... | true |
72f94cf72d4560ce3bd353fa1df8dd51eefc24a5 | Java | ksh564/newChatting | /app/src/main/java/org/androidtown/new_chatting/Fragment/Chat_Fragment.java | UTF-8 | 10,894 | 1.65625 | 2 | [] | no_license | package org.androidtown.new_chatting.Fragment;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
i... | true |
65cf3150f6175c02b64f36ab622355d95b382e6d | Java | beifangxiaojin/ruoyi | /src/main/java/com/ruoyi/project/system/controller/EntCorporateController.java | UTF-8 | 3,628 | 1.796875 | 2 | [] | no_license | package com.ruoyi.project.system.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
impo... | true |
e75695305d8c12902c2baefd554d9218182d9de9 | Java | Pau1803/CTS_Laboratory | /Week6/src/ro/ase/csie/cts/gr1094/dp/builder/SuperHero.java | UTF-8 | 1,998 | 3.453125 | 3 | [] | no_license | package ro.ase.csie.cts.gr1094.dp.builder;
public class SuperHero {
String name;
int lifePoints;
boolean isVilain;
boolean isWounded;
WeaponInterface leftWeapo;
WeaponInterface rightWeapon;
String superPower;
String superSuperPower;
private SuperHero() {
}
private SuperHero(String name, int life... | true |
7126650bb057d8528374a02cbfd6c36af4b24d08 | Java | kkobena/nucleus | /src/main/java/com/kobe/nucleus/service/dto/PaiementItemDTO.java | UTF-8 | 2,922 | 2.28125 | 2 | [] | no_license | package com.kobe.nucleus.service.dto;
import java.time.Instant;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* A DTO for the {@link com.kobe.nucleus.domain.PaiementItem} entity.
*/
public class PaiementItemDTO implements Serializable {
private Long id;
private String codeRef... | true |
06d3877043a5f786a66642f813eb6763e2d710bc | Java | alemonaki/ce426_www | /hw3/src/java/com/example/dao/ProductDao.java | UTF-8 | 2,175 | 2.53125 | 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 com.example.dao;
import com.example.model.Product;
import com.example.utl.HibernateUtil;
import java.util.List;
im... | true |
ad47084eef1bd7735d773f1272ef15fb0b8490ed | Java | Stonie/mahalo-mdns | /src/main/java/com/orbus/mahalo/tasks/Announcer.java | UTF-8 | 3,851 | 2.140625 | 2 | [] | no_license | /**
* Copyright 2007 Jeff Ward
* Portions may be pulled from JmDNS and are therefore
* the copyright of the JmDNS team
*
* 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
*
* ... | true |
8f33a4abf103c733921b31061b6ba2044dc7cd91 | Java | Divya-Sai/InterviewQuestions | /interviewquesstions/src/interviewquesstions/BreakAndContinue.java | UTF-8 | 455 | 3.25 | 3 | [] | no_license | package interviewquesstions;
public class BreakAndContinue {
public class Hello{
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("This is break statement");
for(int i=1;i<=5;i++)
{
if(i==4) break;
System.out.println(i);
}
System.... | true |
37a8aef4fbdcaa5a2ee94b552421ceafe83f657d | Java | lksbos/url-shortener | /src/test/java/com/edu/urlshortener/util/UrlUtilsTest.java | UTF-8 | 458 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.edu.urlshortener.util;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
class UrlUtilsTest {
@ParameterizedTest
@CsvSource({"test,http://test","anything://test,anything://test"})
void shouldFormatUrl... | true |
c090ba655296654b15a3e912955e437313ec8252 | Java | ianrae/thingworld | /code/app/org/thingworld/entity/EntityMgr.java | UTF-8 | 2,452 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package org.thingworld.entity;
import java.util.HashSet;
import java.util.Set;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com... | true |
2a652d8d0c7be226a9a62e2dbc481614d9ecba3d | Java | pilibb0712/myHomework | /LightingSalesSystem/SalesSystemServer/src/rmi/dataRemoteObject/viewBillRemoteObject/ViewFinanceStaffBillRemoteObject.java | UTF-8 | 1,129 | 2.171875 | 2 | [] | no_license | package rmi.dataRemoteObject.viewBillRemoteObject;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import blImpl.bill.viewBillBl.ViewFinanceStaffBillBlController;
import blService.billService.viewBillBlService.ViewFinanceStaffBillBlService;
import vo.CashExpenseBillVO;
import vo.PaymentBil... | true |
98aafe7b5c5dd51ebae90933f58b245e4defaf60 | Java | juliencognet/TestUnoWithBDD | /TestUnoWithBDD-java/src/main/java/fr/utt/lo02/uno/io/reseau/client/Client.java | UTF-8 | 3,491 | 2.515625 | 3 | [] | no_license | package fr.utt.lo02.uno.io.reseau.client;
import fr.utt.lo02.uno.io.IO;
import fr.utt.lo02.uno.io.reseau.AbstractClient;
import fr.utt.lo02.uno.io.reseau.InfoSalle;
import fr.utt.lo02.uno.io.reseau.TypePaquet;
import fr.utt.lo02.uno.io.reseau.serveur.Serveur;
import java.io.IOException;
import java.net.InetAddress;
i... | true |
8a700390f11248024c1683dfcfa3799d9c81f5cc | Java | Navi-nk/EJavaCAProjects | /Ecommerce_app/ecommerce_frontend/src/java/matrix/ecommerce/model/Order.java | UTF-8 | 3,266 | 2.46875 | 2 | [] | no_license | package matrix.ecommerce.model;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Gene... | true |
31ed6c5c90b114b9434a013ab99901c075eb25e2 | Java | RafaelTavares95/POS-Atividade-1 | /AtividadeSOAP/src/main/java/com/ifpb/pos/atividadesoap/TimeClient.java | UTF-8 | 910 | 2.421875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ifpb.pos.atividadesoap;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.... | true |
944bdc2302bbe6e2015e6cef2af6571fe7f1097e | Java | kardroid/books | /app/src/main/java/de/kardroids/books/db/DatabaseHelperImpl.java | UTF-8 | 1,510 | 2.71875 | 3 | [
"MIT"
] | permissive | package de.kardroids.books.db;
import java.util.List;
import de.kardroids.books.models.Book;
/**
* Created by Dagobert on 10.03.2015.
*/
public class DatabaseHelperImpl implements DatabaseHelper {
private static final String TAG = DatabaseHelperImpl.class.getSimpleName();
@Override
public void saveBoo... | true |
b00227f5e88fc5094a96dcded2238bb6cfc1dabe | Java | ktbs/MoodleAuth | /src/main/java/com/algo/Clusters.java | UTF-8 | 19,584 | 2.40625 | 2 | [] | no_license | package com.algo;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class Clusters{
public static Double weigth [] = {0.2,0.2,0.2,0.1,0.1,0.1,0.1};
public static boolean contains (JSONArray arr , String str) throws JS... | true |
acb76a90f913cde5221d569baaf31dc399fa43b2 | Java | AnilWesley/VCanServe | /app/src/main/java/com/vupadhi/heyhelp/adapter/ChildCareRecyclerAdapter.java | UTF-8 | 5,127 | 2.0625 | 2 | [] | no_license | package com.vupadhi.heyhelp.adapter;
import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
impor... | true |
4baf62071fc41019bfc3d19d18019eb7b963b840 | Java | YohannBlack/Flock | /Boids&Flock/src/boid/Boid.java | UTF-8 | 6,181 | 2.5 | 2 | [] | no_license | package boid;
import com.sun.org.apache.xpath.internal.axes.OneStepIterator;
import processing.core.*;
import java.nio.file.attribute.UserPrincipalNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
public class Boid {
private PVector position;
private PVector ve... | true |
2f8181ac4df07a6fa8b54415462e18d8847c7153 | Java | hujiaqi1995/Leetcode-daily-practice | /src/P28_ImplementStr.java | UTF-8 | 1,949 | 3.90625 | 4 | [] | no_license | import java.util.regex.Pattern;
/**
* Created by jiaqi on 2019/6/10 4:13 PM
* <p>
* Implement strStr().
* <p>
* Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
* <p>
* Example 1:
* <p>
* Input: haystack = "hello", needle = "ll"
* Output: 2
* Example 2... | true |
1abb62a5c49fda3d2809d075c3184a637615a962 | Java | xfnbing/BaseProject | /wrapper/src/main/java/com/easyder/wrapper/core/NetworkChanged.java | UTF-8 | 235 | 1.898438 | 2 | [] | no_license | package com.easyder.wrapper.core;
/**
* @author 刘琛慧
* @date 2015/7/13
*/
public class NetworkChanged {
public boolean connected;
public NetworkChanged(boolean connected) {
this.connected = connected;
}
}
| true |
eb9136e09efd24095e1b2f28568e82e87c5b712a | Java | ZhangNR/demo | /src/main/java/com/example/demo/entity/PublishDepartment.java | UTF-8 | 501 | 1.828125 | 2 | [] | no_license | package com.example.demo.entity;
import lombok.Data;
/**
* Department
*
* @author ZhangJP
* @date 2020/8/5
*/
@Data
public class PublishDepartment {
/**
* 部门id
*/
private Long deptId;
/**
* 部门名称
*/
private String deptName;
/**
* 项目组id
*/
private Long subDe... | true |
e04d0ee5c64817c5c47ceeb29a9f621164f8415c | Java | kigohcy/FCB | /Source/ACL-ECGW/src/com/hitrust/acl/service/AbstractServiceModel.java | UTF-8 | 1,327 | 2.15625 | 2 | [] | no_license | /*
* @(#)AbstractBusinessModel.java
*
* Copyright (c) 2006 HiTRUST Incorporated. All rights reserved.
*
* Modify History:
* v1.00, 2006/03/13, Tim Cao
* 1) First release
*/
package com.hitrust.acl.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import c... | true |
8c33ed930b595033cc8015658b2736860a931e33 | Java | matteofoccoli/grasp_sales | /src/main/java/com/example/sales/app.java | UTF-8 | 3,976 | 2.9375 | 3 | [] | no_license | package com.example.sales;
import com.example.sales.domain.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by matteo on 13/09/14.
*/
public class app {
... | true |