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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
04d1f388764d0ebf7a367c860aa848988330bb78 | Java | AberonMan/ssh-stub | /src/test/java/org/mash/SimpleSSHShellTest.java | UTF-8 | 378 | 1.890625 | 2 | [] | no_license | package org.mash;
import org.junit.Before;
import org.junit.Test;
public class SimpleSSHShellTest {
private AbstractShellServer server;
@Before
public void setUp() throws Exception {
/* server = new SshShellServer();
CompletableFuture.runAsync(() -> server.start());*/
}
@Test
... | true |
1616da8b75398f3cf16e1b010e7fa3423dabcfd0 | Java | DennisAZ/NewtouchOA | /src/yh/core/esb/server/data/YHEsbSysMsg.java | UTF-8 | 936 | 1.929688 | 2 | [] | no_license | package yh.core.esb.server.data;
import java.util.Date;
public class YHEsbSysMsg {
private int seqId;
private String guid;
private String content;
private String toId;
private Date time;
private String status;
public String getStatus() {
return status;
}
public void setStatus(String status... | true |
284d830fca61b9cb1310248d4c8bfa6743d8baed | Java | happywsw/modelRepair | /GeneticRepair/src/org/geneticrepair/similarity/highlevelop/Matrix.java | UTF-8 | 639 | 2.359375 | 2 | [] | no_license | package org.geneticrepair.similarity.highlevelop;
import java.util.ArrayList;
public class Matrix {
/**
* @author
*/
int n;
public ArrayList<String> names=new ArrayList<String>();
public String[][] matrix=new String[n][n];
public Matrix(){
matrix=new String[n][n];
}
public ArrayList<String> getName... | true |
019eaf0547d11e7076071d143143dd8d144871eb | Java | BaggaShivanshu2/hybris-bookstore-tutorial | /hybris/bin/ext-commerce/btg/testsrc/de/hybris/platform/btg/job/BtgResultCleaningJobTest.java | UTF-8 | 8,080 | 1.664063 | 2 | [
"MIT"
] | permissive | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
8c6186b0459fb400f13189b716ac535bcaf6673d | Java | xiaotiantiantian/IS2950-VisualizationSystem | /DataVisualization/src/java/utilities/CheckCharacters.java | UTF-8 | 798 | 2.46875 | 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 utilities;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author shao
*/
public class CheckChar... | true |
4b72733815ab8f589a71c454a430bf3c668ffdac | Java | heavylyns/springForLibrary | /src/main/java/kolas3/work/BookSearch/Action/StandPlaceSearchAction.java | UTF-8 | 5,113 | 2.078125 | 2 | [] | no_license | package kolas3.work.BookSearch.Action;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Req... | true |
ee31383507902b75d16ad23b973b52335ce9f5c3 | Java | m3hdiii/DepEd-IS | /repository/src/main/java/com/deped/repository/items/ItemRepositoryImpl.java | UTF-8 | 2,267 | 2.375 | 2 | [] | no_license | package com.deped.repository.items;
import com.deped.model.items.semigoods.Item;
import com.deped.model.items.semigoods.ItemType;
import com.deped.repository.utils.HibernateFacade;
import com.deped.repository.utils.Range;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... | true |
488a98e3ac2f309151748095775c50078d8c1e9e | Java | lrismyname/Jimple | /src/lnu/asm/jimple/AbstractBinaryOp.java | UTF-8 | 953 | 3 | 3 | [] | no_license | package lnu.asm.jimple;
import org.objectweb.asm.Type;
public abstract class AbstractBinaryOp implements BinaryOp{
protected Value leftValue;
protected Value rightValue;
protected Type tp;
public AbstractBinaryOp(Value left,Value right){
leftValue=left;
rightValue=right;
tp=left.getType();
// bite , s... | true |
a7cf370402fa4fb05527d134e09b6736cc281a3e | Java | dnevena/shop | /src/main/java/com/example/prodavnica/controller/dto/ProdavnicaDTO.java | UTF-8 | 663 | 2.1875 | 2 | [] | no_license | package com.example.prodavnica.controller.dto;
import java.util.ArrayList;
import com.example.prodavnica.domain.Artikal;
public class ProdavnicaDTO {
private String ime;
private String adresa;
private ArrayList<Artikal>artikli = new ArrayList<>();
public ProdavnicaDTO() {
super();
}
public String getIme() {... | true |
6b8e13b5692c5f7ca9d3b94cd0ef3b3f618d48db | Java | LoveneykensPhilogene/Projeto-Estudo | /src/main/java/javaDate/ExercicioFinal.java | UTF-8 | 1,241 | 3.46875 | 3 | [] | no_license | package javaDate;
import javax.swing.text.DateFormatter;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Calendar;
import java.util.Date;
import java.util.function.LongBinaryOperator;
public class ExercicioFinal {
public static void main(String[]args){
//instancia
@De... | true |
48aacc40f5acbfe201bc55fb504aa048da9fd863 | Java | MaximeOpsommer/MultiAgents_TP1 | /src/hunter/HunterSMA.java | UTF-8 | 1,325 | 2.796875 | 3 | [] | no_license | package hunter;
import java.util.List;
import core.Environment;
import core.SMA;
public class HunterSMA extends SMA {
private List<Digger> diggers;
private final int wallNumber;
public HunterSMA(Environment env) {
super(env);
diggers = ((HunterEnvironment) env).getDiggers();
final double wallPercent = (... | true |
fdd164eee876722a0ffa1ee268a39ce74f0e0022 | Java | phuonghuynh/dtools | /src/main/java/com/vnw/data/jooq/tables/pojos/TblonlineCoupon.java | UTF-8 | 2,250 | 2.1875 | 2 | [] | no_license | /**
* This class is generated by jOOQ
*/
package com.vnw.data.jooq.tables.pojos;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
... | true |
79c2f2a0665a0178db801a40ad9db19829319036 | Java | mohanenm/facility_management_system | /src/main/java/com/fms/domainLayer/services/IUsageService.java | UTF-8 | 1,105 | 2.09375 | 2 | [] | no_license | package com.fms.domainLayer.services;
import com.fms.domainLayer.common.RoomSchedulingConflictException;
import com.fms.domainLayer.inspection.FacilityInspection;
import com.fms.domainLayer.inspection.IFacilityInspection;
import com.fms.domainLayer.usage.RoomReservation;
import com.google.common.collect.Range;
import... | true |
c636ba0ffd9d9ad832ee6693c7d712256f6b2c6c | Java | huakaibai/nettytest | /src/main/java/com/watchdata/common/netty/bean/ResultMessageContext.java | UTF-8 | 1,648 | 2.390625 | 2 | [] | no_license | package com.watchdata.common.netty.bean;
import lombok.Data;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author zhibin.wang
* @desc 包含返回消息的包装类
**/
@Data
public class ResultMessage... | true |
d8e7bdb8bc739317b626316960575d1e86b5c310 | Java | DylanMay/MyRepository | /src/com/huijuji/connection/FabSSLSocketFactory.java | UTF-8 | 2,304 | 2.328125 | 2 | [] | no_license | package com.fab.connection;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.Unrecove... | true |
7a9c59983a2eec97350a1ac5b188aaa8feedbf53 | Java | akasriva/myHybridFramework | /AKS/CompassPluseUIAutomation/generics/interactionHistoryPage.java | UTF-8 | 66,313 | 2.015625 | 2 | [] | no_license | package generics;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import com.relevantcodes.extentreports.LogStatus;
... | true |
2bd689ac051dba1c82a33b166af9e28d5f5ebd3a | Java | sengeiou/IFSC2018 | /ConferenceBasic_NCCPS/src/com/android/incongress/cd/conference/beans/CompasEsmoBean.java | UTF-8 | 2,131 | 2.34375 | 2 | [] | no_license | package com.android.incongress.cd.conference.beans;
import org.litepal.crud.LitePalSupport;
/**
* Created by Jacky on 2017/3/21.
* 数据包中的数据
* {
"backgroundHeight": 195,
"backgroundUrl": "http://app.incongress.cn/Conferences/files/conpass_1/compass-top-ad.png",
"backgroundWidth": 1242,
"homeAdUrl": "http://app.... | true |
cb038914cf12048e4a4f3cf96718a02e2172d5b1 | Java | livemarker/eduSpring | /src/main/java/lesson2/Start.java | UTF-8 | 845 | 2.5 | 2 | [] | no_license | package lesson2;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Start {
public static void main(String[] args) {
ApplicationContext application... | true |
6c0fbaf82295f0af68b4e117e3921f1aeaa0debf | Java | smit25/Code-Clone-Detection-Using-Intermediate-Merge-Siamese-Network | /Code Representation/src/main/java/embedding/Graph2Vec.java | UTF-8 | 3,258 | 2.203125 | 2 | [
"MIT"
] | permissive | package embedding;
import config.PathConfig;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import tool.Tool;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.List;
import ... | true |
6179992737482086cb3eb2fbda8dc3853512b5ff | Java | Cameo-24/Java-Activites | /Sample1.java | UTF-8 | 427 | 2.921875 | 3 | [] | no_license | import java.util.Scanner;
public class Sample1 {
public static void findId(int n,int arr[],int sc){
for(int i=1;i<n;i=i+2){
if(arr[i]>sc){
System.out.println(arr[i-1]);
}
}
}
public static void main(String args[]){
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int arr[]=new int[n]... | true |
62606c41c7a0a72c2312f869c3057778ab61b1eb | Java | DorofeevMark/transaction-acquiring-server | /src/main/java/com/example/transactionacquiringserver/jpa/models/TransactionLog.java | UTF-8 | 1,310 | 2.234375 | 2 | [] | no_license | package com.example.transactionacquiringserver.jpa.models;
import javax.persistence.*;
import java.util.Date;
@Entity
public class TransactionLog {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Integer id;
private String response;
private Date date;
@OneToOne
@JoinColumn(name ... | true |
6b416fa2413ae081175d1e462abde1baf9b82580 | Java | hasone/pdata | /common/src/main/java/com/cmcc/vrp/boss/shangdong/boss/service/SdCloudOperationResultImpl.java | UTF-8 | 2,466 | 2.328125 | 2 | [] | no_license | package com.cmcc.vrp.boss.shangdong.boss.service;
import com.cmcc.vrp.boss.AbstractBossOperationResultImpl;
/**
* Created by qihang on 2016/11/09.
*/
public class SdCloudOperationResultImpl extends AbstractBossOperationResultImpl {
/**
* 默认正确编码
*/
private static final String SUCCESS_CODE = "2... | true |
45bf64a47fff57af1decaf3be59bdc0fbc900397 | Java | abdiwarsame1/java-learning-resource-application | /learning resorce centre/src/Project.java | UTF-8 | 6,716 | 3.21875 | 3 | [] | no_license | import java.util.Scanner;
public class Project {
public static void main(String[] args) {
// TODO Auto-generated method stub
catalogue cat = new catalogue();
//
for(int x = 0; x < 1; x++) {
books a = new books("book", "author", 2004);
DVDs b = new DVDs("dvd", "action", 0);
acedimicjournal c... | true |
8fcac73978e34662150f352bf68dfba1074a6848 | Java | motech/motech-whp-reports | /whp-reports-web/src/test/java/org/motechproject/whp/reports/webservice/controller/AdherenceSubmissionControllerTest.java | UTF-8 | 1,633 | 1.953125 | 2 | [] | no_license | package org.motechproject.whp.reports.webservice.controller;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.motechproject.whp.reports.contract.AdherenceSubmissionRequest;
import org.motechproject.whp.reports.service.ProviderReminderCallLogService;
import org.springframework.http.Me... | true |
3bb04dfdb0dcdf91f9824c767b01184f6ffea340 | Java | RolfLin/Algorithm | /src/company/kuaishou/intern/tree/Main.java | UTF-8 | 2,496 | 3.484375 | 3 | [] | no_license | package company.kuaishou.intern.tree;
import java.util.*;
public class Main {
static class Node {
int data;
Node left;
Node right;
public Node(int data) {
this.data = data;
}
}
private static int lastVisit = Integer.MIN_VALUE;
public static boolea... | true |
ea4aa29c727e072ee019a6f5d272e2b0acb3677c | Java | mike-neck/guice-study | /src/test/java/org/mikeneck/guice/employee/EmployeeTest.java | UTF-8 | 932 | 2.625 | 3 | [] | no_license | package org.mikeneck.guice.employee;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/**
* Created by IntelliJ IDEA.
* User: mike
* Date: 12/03/25
* Time: 7:21
* To change this template use File | Settings | File Templates.
*/
p... | true |
3f03802b86e5cf95741bb9739472b3eb0cde6991 | Java | slawekpaciorek/File-Analyzer | /file-analyzer/src/main/java/com.isa.homeworks/LogsHandler.java | UTF-8 | 3,544 | 2.875 | 3 | [] | no_license | package com.isa.homeworks;
import java.io.IOException;
import java.io.InputStream;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.Ma... | true |
3641a41d7a66a2723dbef42d87c01334adf4c839 | Java | iarora7/AddressValidation | /address/src/main/java/hello/DbConnService.java | UTF-8 | 792 | 1.8125 | 2 | [] | no_license | package hello;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Service;
@Serv... | true |
f973854f24d3522aa0d9668f58ffab8363356fda | Java | thiagoferrax/algorithms | /src/test/java/com/trainings/algorithms/arrays/ContainerWithMostWaterTest.java | UTF-8 | 428 | 2.6875 | 3 | [] | no_license | package com.trainings.algorithms.arrays;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ContainerWithMostWaterTest {
@Test
public void testOne() {
assertEquals(49, new ContainerWithMostWater().maxArea(new int[]{1, 8, 6, 2, 5, 4, 8, 3, 7}));
}
@Test
publ... | true |
ee287c05fa525147c0350b7316491a80e4f299b4 | Java | mahalakshmi22021997/XyzWalletProject | /XyzWalletProject/src/com/capg/xyzwallet/test/TestCreateAccount.java | UTF-8 | 985 | 2.1875 | 2 | [] | no_license | package com.capg.xyzwallet.test;
import static org.junit.Assert.*;
import java.math.BigInteger;
import org.junit.BeforeClass;
import org.junit.Test;
import com.capg.xyzwallet.bean.WalletBean;
import com.capg.xyzwallet.exception.WalletException;
import com.capg.xyzwallet.service.IWalletService;
import co... | true |
e5982d3c98f7037ac73d35cd53ad17e929ef46e1 | Java | geonyeongkim/kaggle-stackoverflow-kafka | /src/main/java/com/skuniv/cs/geonyeong/kaggle/service/EsClient.java | UTF-8 | 1,425 | 1.9375 | 2 | [] | no_license | package com.skuniv.cs.geonyeong.kaggle.service;
import com.google.gson.Gson;
import java.io.IOException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.client.RequestO... | true |
22a3881f6e41071a3f4cd878302354a634658964 | Java | deeplearning2012/flowml | /beautiful-api/src/main/java/com/beautiful/api/block/DataBlock.java | UTF-8 | 1,486 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package com.beautiful.api.block;
import com.beautiful.api.writable.WritableValue;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* @Description:抽象 可以 扩展
* @Author: zhuyuping
* @CreateDate: ... | true |
e59e3c85f0135e271c368949118fe6aec3e425a5 | Java | ldywork/ldywork | /leyou/ly-item/ly-item-service/src/main/java/com/leyou/item/service/GoodsService.java | UTF-8 | 5,727 | 2.171875 | 2 | [] | no_license | package com.leyou.item.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.leyou.common.enums.ExceptionEnum;
import com.leyou.common.exception.LyException;
import com.leyou.common.vo.PageResult;
import com.leyou.item.*;
import com.leyou.item.mapper.SkuMapper;
import com.... | true |
b5c555803434567d01584c7c78d2941fcee69451 | Java | PhilLavoie/adventofcode | /src/main/java/day12/json/serialization/SerializerObjectVisitor.java | UTF-8 | 1,323 | 2.875 | 3 | [] | no_license | package day12.json.serialization;
import day12.json.*;
class SerializerObjectVisitor extends SerializerVisitor {
private boolean firstAttributeSeen = false;
public SerializerObjectVisitor(Appendable appendable) {
super(appendable);
}
public Appendable getAppendable() {
return appenda... | true |
921778d1775ad792b70749a357a2958254791073 | Java | oicr-gsi/shesmu | /shesmu-server/src/main/java/ca/on/oicr/gsi/shesmu/compiler/DestructuredArgumentNodeTuple.java | UTF-8 | 4,035 | 2.359375 | 2 | [
"MIT"
] | permissive | package ca.on.oicr.gsi.shesmu.compiler;
import static ca.on.oicr.gsi.shesmu.compiler.TypeUtils.TO_ASM;
import ca.on.oicr.gsi.shesmu.plugin.Tuple;
import ca.on.oicr.gsi.shesmu.plugin.types.Imyhat;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.IntStream;
import java.util.stream.Stre... | true |
5262fd47faa06e5abc2d7a1c6185a1468a04450b | Java | D2KLab/sentime | /src/fr/eurecom/sentime/SentimeSystem.java | UTF-8 | 9,348 | 2.375 | 2 | [] | no_license | package fr.eurecom.sentime;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.... | true |
c654eb2893b5c42c69bec79354803f355306e7ec | Java | miseongshin/diary | /src/test/java/com/today10sec/diary/basic/DBConnectTest.java | UTF-8 | 1,310 | 3.046875 | 3 | [] | no_license | package com.today10sec.diary.basic;
import java.sql.*;
public class DBConnectTest {
public static void main(String[] args) throws SQLException {
String url = "jdbc:mariadb://localhost:3306/today10secDB";
String userName = "today";
String pw = "1234";
//try with resource java 7
... | true |
b7d0eaa75e2e777f86080e2966eb732532c824e7 | Java | octaviocarpes/Springboot-Playground | /Springboot-Blog-API/src/main/java/SpringbootBlogAPI/SpringbootBlogAPI/db/BlogDatabase.java | UTF-8 | 843 | 2.828125 | 3 | [] | no_license | package SpringbootBlogAPI.SpringbootBlogAPI.db;
import SpringbootBlogAPI.SpringbootBlogAPI.pojo.Blog;
import java.util.ArrayList;
import java.util.List;
public class BlogDatabase {
private List<Blog> blogList;
private static BlogDatabase instance;
public static BlogDatabase getInstance(){
if (i... | true |
e1f0f707ccb2144473cbe2b0a4b30ce9ce64152a | Java | and38/ClansLegendariesNew | /src/me/libraryaddictfan/Legendaries/MeridianScepter/MeridianScepter.java | IBM852 | 9,624 | 2.65625 | 3 | [] | no_license | package me.libraryaddictfan.Legendaries.MeridianScepter;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import me.libraryaddictfan.ClansLegendaries;
import me.libraryaddictfan.Legendaries.Legendary;
import me.libraryaddictfan.Utilities.Con... | true |
109007960007e4ddabcb9e2636f979675f467c6b | Java | Stiffneck/swp1-ss15-gruppe4 | /patverwaltung/src/view/Menuleiste.java | UTF-8 | 2,380 | 2.765625 | 3 | [] | no_license | package view;
import java.awt.MenuBar;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
public class Menuleiste extends MenuBar {
... | true |
8702671028fa6d67e4cebfeaccb4dfcfaa05fdbe | Java | tolip05/javaextention | /src/ssortes_persons/Main.java | UTF-8 | 1,156 | 3.1875 | 3 | [] | no_license | package ssortes_persons;
import sort_person.Team;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class Main {
public static void main(String[] args) t... | true |
d9487e00d5c1ccdb3493c5d5a5b66f7f65d3ab1f | Java | ierdna-f/tcc | /src/main/java/br/com/accountability/calc/sistema/pagamento/model/dto/PagamentoDTO.java | UTF-8 | 1,029 | 1.992188 | 2 | [] | no_license | package br.com.accountability.calc.sistema.pagamento.model.dto;
import br.com.accountability.calc.sistema.pagamento.model.Pagamento;
import lombok.Data;
@Data
public class PagamentoDTO {
private Integer id;
private String numeroDocumento;
private String dataDocumento;
private String prestador;
... | true |
5338dc0acfb6b4c4cdc89741c530746821a361a2 | Java | uiters/ting-coffee | /admin_app/src/Views/DashboardView.java | UTF-8 | 9,119 | 2.296875 | 2 | [
"MIT"
] | permissive | /*
* 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 Views;
import Controllers.DashboardController;
import Models.DashboardModel.Report;
import com.toedter.calendar.JMonthChooser;... | true |
7fdfc3e47de6b4ba85d61f9b8847490afb67c709 | Java | dinhhoangnam998/20181-OOP-Neo4j | /src/main/java/oop/g8/generator/relation/time/T2PG.java | UTF-8 | 345 | 2 | 2 | [] | no_license | package oop.g8.generator.relation.time;
import java.util.Date;
import oop.g8.model.entity.Person;
import oop.g8.model.entity.Time;
import oop.g8.model.relation.time.T2P;
public class T2PG {
public static T2P generateT2P(Time t, Person p, String relationName, String link, Date date) {
return new T2P(relationName, ... | true |
72deb169114487c384e7aede4d311a223302fbd1 | Java | scravy/SceTris | /SceTris MyCourses/Iteration 3 (Integration Scheduler and Webapp)/svn tag iteration3/src/de/fu/scetris/data/CourseRequiresCourse.java | UTF-8 | 7,172 | 2.3125 | 2 | [] | no_license | /* CourseRequiresCourse.java / 2010-11-04+01:00
* Part of SCORE myCourses
*
* Team Scetris: David Bialik, Julian Fleischer,
* Hagen Mahnke, Konrad Reiche, André Zoufahl
*
* This file was automatically generated
* using libxslt
*/
package de.fu.scetris.data;
/**
* OO-Representation of the relationship-relati... | true |
eea17d819648351f4b858c1de6fc434ee10dd877 | Java | Paul1221/LabPA | /Lab6/src/sample/Controller.java | UTF-8 | 4,189 | 2.8125 | 3 | [] | no_license | package sample;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Spinner;
import javafx.scene.control.SpinnerValueFactor... | true |
48ce67a9d367f0ef2ffdf1d10aaa79d2ce4355a2 | Java | CCYK-BFit/SDP-BFIT | /app/src/main/java/com/example/sdp_bfit/workout/WorkoutFragment.java | UTF-8 | 7,809 | 1.929688 | 2 | [] | no_license | package com.example.sdp_bfit.workout;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
impo... | true |
f73d2cbdc65760bae651c7c5f53b9214505236e8 | Java | silloy/rookie | /freshman/experiment/src/main/java/com/zj/web/mapper/OrderRepository.java | UTF-8 | 807 | 1.875 | 2 | [] | no_license | package com.zj.web.mapper;
import com.zj.web.model.OrderInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import ja... | true |
15658d34cb924fb7cff842326d29adf19bcccb71 | Java | skarigoudar-aie/automationpoc | /src/test/java/com/mk/testframework/stepdefs/crossPlatformSteps/na/us/StoreLocatorPageStepDefUS.java | UTF-8 | 1,985 | 2.09375 | 2 | [] | no_license | package com.mk.testframework.stepdefs.crossPlatformSteps.na.us;
import com.google.inject.Inject;
import com.mk.testframework.core.data.TestData;
import com.mk.testframework.dt.page.home.MkStoreLocatorPage_US;
import cucumber.api.java.en.And;
import cucumber.api.java.en.When;
import org.junit.Assert;
/**
* @author RS... | true |
9bff43ae93263a33dbe63558ec5be5648ca2e2c9 | Java | fabio-limardo/LPeMC-Project | /src/progettolpemc_estensione1/DecParNode.java | UTF-8 | 641 | 2.59375 | 3 | [] | no_license | package progettolpemc_estensione1;
public class DecParNode extends Node {
private String id;
private Node type;
private boolean typeChecked = false;
private String typeString = "";
public DecParNode(String i, Node t) {
id = i;
type = t;
}
public String toPrint() {
... | true |
59ae5804976834b3131d40339d7ec499c9ac9156 | Java | medhabibchouchene/version | /entretient.java | UTF-8 | 728 | 2.765625 | 3 | [] | no_license | package com.agence.gee;
import java.util.*;
public class entretient {
protected int id_avion;
protected Date date;
protected double heure;
protected boolean entretient ;
entretient(){
try {
Scanner LireClavier = new Scanner(System.in);
date = new Date();
System.out.println("donner la... | true |
9475f0c4e16e784c2a7d4e9cb796b4732bc29d79 | Java | OneBusAway/onebusaway-application-modules | /onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/beans/ShapeBeanServiceImpl.java | UTF-8 | 6,069 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org>
*
* 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 requ... | true |
7ff74e8e1267d9e5bc6ff8b01dfaf92bc568b143 | Java | desislava-hristova-ontotext/rdf4j | /core/queryresultio/sparqlxml/src/test/java/org/eclipse/rdf4j/query/resultio/sparqlxml/SPARQLXMLParserCustomTest.java | UTF-8 | 7,575 | 1.703125 | 2 | [
"BSD-3-Clause",
"MIT",
"CPL-1.0",
"JSON",
"Apache-2.0",
"EPL-1.0",
"MPL-1.1",
"Apache-1.1",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | true |
5bc13452bb710b68bff2da053e79bbb76a6c8402 | Java | eva00rei00/weed-client | /src/main/java/org/lokra/weed/Test.java | UTF-8 | 443 | 2.125 | 2 | [
"MIT"
] | permissive | package org.lokra.weed;
import java.io.IOException;
public class Test {
public static void main(String[] args) throws IOException {
WeedManager manager = new WeedManager("localhost", 9001);
manager.start();
try {
for (int i = 0; i < 100; i++) {
System.out.print... | true |
74b2ce3c9d2b55f911fe8859dc86c10a375bb3b9 | Java | jonathan016/OASIS-backend | /service/src/test/java/com/oasis/service/test/implementation/dashboard/dashboard_util/DashboardUtilServiceImplTest.java | UTF-8 | 4,298 | 2.015625 | 2 | [] | no_license | package com.oasis.service.test.implementation.dashboard.dashboard_util;
import com.oasis.model.constant.service_constant.StatusConstant;
import com.oasis.model.entity.RequestModel;
import com.oasis.model.exception.BadRequestException;
import com.oasis.service.api.dashboard.DashboardRequestUpdateServiceApi;
import com.... | true |
86991763a9831460666c133b6a26d1d00caf122c | Java | renkezuo/model-core | /src/main/java/com/renke/core/exception/SysException.java | UTF-8 | 242 | 1.859375 | 2 | [] | no_license | package com.renke.core.exception;
public class SysException extends CodeException {
public SysException(String msg) {
super(CommonCode.SYS_TIP, "系统异常", msg);
}
/**描述*/
private static final long serialVersionUID = 1L;
}
| true |
eefdee455fa5ec5481a05778e67d2f08d5ced310 | Java | miolivc/data-based-architecture | /proxy-one/src/main/java/br/edu/ifpb/pod/data/based/architecture/proxy/one/MessageReader.java | UTF-8 | 1,058 | 2.734375 | 3 | [] | no_license |
package br.edu.ifpb.pod.data.based.architecture.proxy.one;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
/**
*
* @author miolivc
*/
public class MessageReader implements Runnable {
private MessageManipulator me... | true |
17770dc383e84599b259b3bebf9be443febc7b2f | Java | CIS-3334-Mobile-at-St-Scholastica/cis3334-unit12-firebase-2019-adam | /app/src/main/java/edu/css/cis3334_unit12_firebase_2019/ChatActivity.java | UTF-8 | 1,589 | 2.5 | 2 | [] | no_license | package edu.css.cis3334_unit12_firebase_2019;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class ChatActivity extends AppCompatActivity {
Button btnPost;
... | true |
286db879a7af0046f58b6ae3d248c01e57aabc24 | Java | akisute/YourWiFi | /app/src/main/java/com/akisute/yourwifi/app/SettingsFragment.java | UTF-8 | 2,067 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.akisute.yourwifi.app;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.preference.Preference;
import android.util.Log;
import com.akisute.android.daggered.DaggeredPreferenceFragment;
import com.akisute.yourwif... | true |
ef4984d3b60a2885708eaeb13df271340449d809 | Java | Pramudz/enterprise-inv-system | /inv-sys-backend/src/main/java/com/procisinc/inventorysystem/repository/RoleFuncRepository.java | UTF-8 | 320 | 1.609375 | 2 | [] | no_license | package com.procisinc.inventorysystem.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import com.procisinc.inventorysystem.model.RoleFunctions;
@Component
public interface RoleFuncRepository extends JpaRepository<RoleFunctions, Integer> {
}
| true |
eae186d057ba831c7a5b56d8a597f6d354fad425 | Java | QuangVuong85/HTDATLICHKHAMBENHBV | /RestfulAPI/src/main/java/com/htdatlichkbbv/datlichkb/service/DichvuService.java | UTF-8 | 427 | 1.703125 | 2 | [] | no_license | package com.htdatlichkbbv.datlichkb.service;
import com.htdatlichkbbv.datlichkb.entities.Dichvu;
import java.util.List;
import java.util.Optional;
public interface DichvuService {
List<Dichvu> findAll();
Optional<Dichvu> findById(String id);
Dichvu save(Dichvu dichvu);
void deleteById(Stri... | true |
c0e4bd2f68b092f5b75a562910561765cded6ac3 | Java | rayvo/wai-client-v1 | / wai-client-v1 --username voquocduy@gmail.com/wai/src/com/google/android/apps/unveil/env/gl/Utils.java | UTF-8 | 1,611 | 2.609375 | 3 | [] | no_license | package com.google.android.apps.unveil.env.gl;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
public class Utils
{
public static FloatBuffer allocateFloatBuffer(int paramInt)
{
return ByteBuffer.allocateDirect(paramInt * 4).order(ByteOrder.nativeOrder()).asFloatB... | true |
12c2e33a944e6a12c6b8d283367970c220fec740 | Java | arcquim/CustomModelCheckingSystem | /aggregator/SystemGwt/src/main/java/com/arcquim/gwt/client/project/check/ProjectCheckCompositeWidget.java | UTF-8 | 12,439 | 1.757813 | 2 | [] | no_license | package com.arcquim.gwt.client.project.check;
import com.arcquim.gwt.client.ApplicationConfiguration;
import com.arcquim.gwt.client.ConfigurableComposite;
import com.arcquim.gwt.client.event.CheckProjectEvent;
import com.arcquim.gwt.client.event.GoBackEvent;
import com.arcquim.gwt.client.event.ProjectCheckingEve... | true |
f4f4031b10c8d668a44e48bc2612b77eea897a0b | Java | fredcampos/jnrpe-lib | /jnrpe-parent/jnrpe-lib/src/main/java/it/jnrpe/events/LogEvent.java | UTF-8 | 1,000 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012 Massimiliano Ziccardi Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
* or agreed to in... | true |
d239765234984a648498f5d80249119ef5c9e4f7 | Java | heibaifu/wlwcoding | /src/main/java/com/microservice/backend/controller/HomeController.java | UTF-8 | 455 | 2.0625 | 2 | [] | no_license | package com.microservice.backend.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api")
public class HomeController {
@RequestMap... | true |
955427ab870ad9eb699fee3bf492efe6390a92f5 | Java | gokhanercan/wordnet.ui | /src/main/java/isik/wordnet/ui/TreeItem.java | UTF-8 | 840 | 2.609375 | 3 | [] | no_license | package isik.wordnet.ui;
public class TreeItem {
private static double lastAssignedID = 0;
private String representative;
private String wordNetID;
private double assignedID;
TreeItem(String representative, String wordNetID) {
this.representative = representative;
this.wordNetID =... | true |
caacb4f86a8e1535c9c30143492c0c8fa44e69f1 | Java | ReataurantManagement/Harshvardhan | /app/src/main/java/com/example/user_registeration/Data_To_Database_HD.java | UTF-8 | 502 | 2.140625 | 2 | [] | no_license | package com.example.user_registeration;
public class Data_To_Database_HD
{//for HomeDelivery
float quickness,cordialtyHD,packing,tasteHD,countHD,qualityHD;
Data_To_Database_HD(float quickness, float cordialtyHD, float packing, float tasteHD, float countHD, float qualityHD) {
this.quickness = quickness... | true |
632126592dde958e6dc448c513341d9d022a6e3d | Java | meghasmriti/java_session1_assgn1 | /printprog.java | UTF-8 | 356 | 2.90625 | 3 | [] | no_license | package megha_java;
public class printprog {
public static void main(String s[])
{
int a = 10;
int b = 20;
int c,d,e;
b = a-- - --a;
c = a--;
d = a>>2;
e = a&b;
System.out.println("A is "+a);
System.out.println("B is "+b);
System.out.println("C is "+c);
System.out.println("D is "+d);
... | true |
803b73a8fe378439cb4ebb6437ed220552b2471d | Java | ali-raza-usu/VitruvianJ | /Code/VitruvainJSpaces/Framework/src/vitruvianJ/distribution/proxies/ReflectionInfo.java | UTF-8 | 6,808 | 2.140625 | 2 | [] | no_license | package vitruvianJ.distribution.proxies;
import java.lang.annotation.Annotation;
import java.lang.reflect.*;
import java.util.*;
import vitruvianJ.distribution.DistributionInfoAttribute;
import vitruvianJ.distribution.syncpatterns.SyncPatternAttribute;
import vitruvianJ.logging.JLogger;
public class Reflec... | true |
742781390dc8ead71b8e914e5f3df52467cb37c8 | Java | itheamc/online-store-android-app-sample | /app/src/main/java/com/itheamc/meatprocessing/ui/LoginFragment.java | UTF-8 | 14,050 | 1.6875 | 2 | [] | no_license | package com.itheamc.meatprocessing.ui;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.media.Session2Command;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import androidx.annotation.NonNull;
impo... | true |
511b827eb59379b8c9ed1682d6bf35ecda8ea284 | Java | datamaskin/ruckus | /app/distributed/topics/IStatsUpdateDistributedTopic.java | UTF-8 | 2,173 | 2.640625 | 3 | [] | no_license | package distributed.topics;
import com.hazelcast.core.Message;
import models.contest.Contest;
import models.contest.Entry;
import models.contest.Lineup;
import models.sports.AthleteSportEventInfo;
import models.sports.SportEvent;
import java.util.Map;
import java.util.Set;
/**
* Interface for DistributedTopic imple... | true |
350428e5f4ea15c88aa6e17247835c09b81b0de2 | Java | wuzhengmao/autotest | /autotest-ui/src/cn/shaviation/autotest/ui/internal/editors/TestDataEditor.java | UTF-8 | 560 | 2.015625 | 2 | [] | no_license | package cn.shaviation.autotest.ui.internal.editors;
import java.util.Date;
import cn.shaviation.autotest.model.TestDataDef;
public class TestDataEditor extends DocumentFormEditor<TestDataDef> {
@Override
protected DocumentSourcePage<TestDataDef> createSourcePage() {
return new TestDataSourcePage(this);
}
@Ov... | true |
09ef6f02986c80b1fe9856dc4dc7fe828724e308 | Java | VanDerGroot/TechReborn | /src/main/java/techreborn/tiles/generator/TileLightningRod.java | UTF-8 | 2,942 | 2.3125 | 2 | [
"MIT"
] | permissive | package techreborn.tiles.generator;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.api.power.En... | true |
e3c88ff9b9509ee68c6225038767ba6113b51e09 | Java | ganwong/Lintcode | /Java/PaintFence.java | UTF-8 | 834 | 3.703125 | 4 | [] | no_license | /**
* Paint Fence
*
* There is a fence with n posts, each post can be painted with one of the k colors.
You have to paint all the posts such that no more than two adjacent fence posts have the same color.
Return the total number of ways you can paint the fence
* Example
Given n=3, k=2 return 6
*/
public class So... | true |
2c194546a56f7b661d325e33c4ff218fdfa279f2 | Java | guillaumebert/Dynatrace | /src/main/java/com/neotys/dynatrace/common/Constants.java | UTF-8 | 715 | 1.601563 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package com.neotys.dynatrace.common;
public final class Constants {
/*** Dynatrace ***/
public static final String DYNATRACE = "Dynatrace";
/*** NeoLoad context (Data Exchange API) ***/
public static final String NEOLOAD_CONTEXT_HARDWARE = DYNATRACE;
public static final String NEOLOAD_CONTEXT_LOCATION = DYNATRA... | true |
b1fdb76c0b344eff7732e117898712ecadd8a00b | Java | alpano-unibz/ontop | /core/optimization/src/main/java/it/unibz/inf/ontop/iq/optimizer/impl/BasicJoinMutableOptimizer.java | UTF-8 | 1,259 | 2.21875 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | package it.unibz.inf.ontop.iq.optimizer.impl;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import it.unibz.inf.ontop.iq.node.InnerJoinNode;
import it.unibz.inf.ontop.iq.IntermediateQuery;
import it.unibz.inf.ontop.iq.node.QueryNode;
import it.unibz.inf.ontop.iq.proposal.InnerJoinOptimizationPro... | true |
3c8e12f4eef0144dedd9bdef7a302536b7551670 | Java | linsir6/WeChat_java | /com/tencent/mm/plugin/appbrand/appcache/a.java | UTF-8 | 1,858 | 1.820313 | 2 | [] | no_license | package com.tencent.mm.plugin.appbrand.appcache;
import android.util.SparseIntArray;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
public final class a {
private static final... | true |
c0d99ba5a78fc5724ca96bf4e0429b7fd4eaf6f5 | Java | lastosellie/jelly | /src/server/Data.java | UTF-8 | 1,729 | 2.5625 | 3 | [] | no_license | package server;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Vector;
public class Data implements Serializable {
private String name;
private String receiver;
private String message;
private int state;
private transient ObjectOutputStream oos;
private Vector<Stri... | true |
93b9d7557582663726a1a99dc9b988e7203fe8d4 | Java | dgryoo/condingTest | /src/programmers/greedy/Joystick.java | UTF-8 | 2,239 | 3.765625 | 4 | [] | no_license | package programmers.greedy;
public class Joystick {
public static void main(String[] args) {
String test = "ZAAAZZZZZZZ";
System.out.println(solution(test));
}
// A 가 아닌 가장 가까운곳으로 이동하도록 수정
public static int solution(String name) {
int answer = 0;
int endCount = 0;
... | true |
08046eb7af4febc297302cc72f86a2a939f07244 | Java | DongyuZhang/Leetcode | /SearchInRotatedSortedArray/Solution.java | UTF-8 | 1,202 | 3.640625 | 4 | [] | no_license |
/*
THe idea is that when we use binary search for this rotated array, we know
that either left or right part of the array is in order. If the target is
in the interval of the in-order part, we search it in that part. Otherwise,
we search it in the other part.
Note: a middle element should be smaller than(or... | true |
24c6f3871887ab8cbd8d0d622a351b0cb0c5569c | Java | Argc0/Project_Airbnb | /Airbnb/src/model/Message.java | UTF-8 | 1,118 | 2.234375 | 2 | [] | no_license | package model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the Message database table.
*
*/
@Entity
@Table(name="Message")
@NamedQuery(name="Message.findAll", query="SELECT m FROM Message m")
public class Message implements Serializable {
private static final long ser... | true |
bfbd0dbc51770882ba2666e65c4504eea0eeacbc | Java | IhorHolovatsky/HotelWebService | /src/main/java/com/hws/hibernate/models/BookingRoom.java | UTF-8 | 2,098 | 2.515625 | 3 | [] | no_license | package com.hws.hibernate.models;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.springframework.stereotype.Component;
import javax.persistence.*;
import java.awt.print.Book;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
/**
* Created by Ihor on 4/9/2017.
... | true |
0afec5b74da554e2a3cd71743f11166f9c2d5085 | Java | ulik21/Registration | /src/sample/Controller.java | UTF-8 | 1,883 | 2.375 | 2 | [] | no_license | package sample;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.stage.Stage;
... | true |
06abe180421e1ab7c1a5ad33e92f4b1a5a4320f3 | Java | anonymity0609/horro-hospital | /app/src/main/java/com/example/hospital/firstmenu/Server/SearchData.java | UTF-8 | 4,560 | 2.140625 | 2 | [] | no_license | package com.example.hospital.firstmenu.Server;
import android.net.Uri;
import android.os.AsyncTask;
import android.util.Log;
import com.example.hospital.firstmenu.listView.AddFriendAdapter;
import com.example.hospital.firstmenu.listView.AddFriendItem;
import org.json.JSONArray;
import org.json.JSONException;
import ... | true |
68160d94788110a7180b6d810aef8b2169e90855 | Java | CyberSamurai-programmist/example_java_courses | /education/src/com/samurai/javaBegginerCharter1/example10.java | UTF-8 | 552 | 3.484375 | 3 | [] | no_license | package com.samurai.javaBegginerCharter1;
import java.util.Random;
/**
* Посчитать факториал числа в границах от 10 до 15 (не используя рекурсию).
*/
public class example10 {
public static void main(String[] args) {
long factorial = 1l;
Random rand = new Random();
int x = rand.nextInt(6)... | true |
a246397b579a951335bb0dd0beb6a66666420f43 | Java | weng1993/ShipControlGame | /Pirate.java | UTF-8 | 5,653 | 2.78125 | 3 | [] | no_license | import java.lang.Math.*;
import java.util. *;
import java.net.URL;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
//This class supplies functions for the pirates to think!
//RULES:
//1.If a pirate ship is hit ... | true |
cad2c7e9f0f9ac7a4a74daef103c5db24efcce66 | Java | DenisLarin/CalcBNF | /src/Parser/ParserApp.java | UTF-8 | 3,855 | 3.390625 | 3 | [] | no_license | package Parser;
import Exceptions.SpaceErrorException;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ParserApp {
public static boolean parser(String str, List<Element> elementList){
System.out.println("\n\n");
System.out.println("Парсинг строк... | true |
ac317b194e3d86cc7b261e5fadf01daf43099b51 | Java | cha63506/CompSecurity | /Photography/youcam_makup_source/src/com/cyberlink/beautycircle/controller/activity/UserProfileActivity$16$1.java | UTF-8 | 1,652 | 1.617188 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.cyberlink.beautycircle.controller.activity;
import android.os.AsyncTask;
import android.view.View;
import com.cyberlink.beautycircle... | true |
b7af130f5b4b8a0a6ab00dfe44eba419854ad1bd | Java | fidusio/zoxweb-core | /src/test/java/org/zoxweb/server/util/JarToolTest.java | UTF-8 | 450 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.zoxweb.server.util;
import org.zoxweb.server.util.JarTool;
public class JarToolTest {
public static void main(String[] args) {
try {
String searchCriteria [] = new String[args.length -1];
for (int i = 1; i < args.length; i++) {
searchCriteria[i-1] = args[i];
}
System.out.println(JarT... | true |
71795a963f0e10f3a2c7b5249ee125bbe4510479 | Java | huangyuanhy/SpringBoot | /boot-amqp/src/main/java/amqp/bean/Book.java | UTF-8 | 537 | 2.390625 | 2 | [] | no_license | /**
*
*/
package amqp.bean;
import java.io.Serializable;
/**
* @author huangyuan
* @date 2018年7月1日下午8:57:28
* @Description bean
*/
public class Book {
private String name;
private Integer age;
public String getName() {
return name;
}
public Book() {
}
public Book(String name, Integer age) {
supe... | true |
866a1729af198510815e870c7c46676216354ae8 | Java | tianmeng-pool/cloud2020 | /cloud-consumer-order80/src/main/java/com/lq/springcloud/lb/LoadBalance.java | UTF-8 | 318 | 1.75 | 2 | [] | no_license | package com.lq.springcloud.lb;
import org.springframework.cloud.client.ServiceInstance;
import java.util.List;
/**
* @author tianmeng
* @date 2020/11/6
*/
public interface LoadBalance {
/**
* 获取所有的服务实例
*/
ServiceInstance instance(List<ServiceInstance> serviceInstanceList);
}
| true |
00deb620c31f6652c32241cae16256c97e7f8ddd | Java | Gitjiangwei/jeecg-boot-parent | /jeecg-boot-module-system/src/main/java/org/alipay/mapper/AlipayMapper.java | UTF-8 | 696 | 2.03125 | 2 | [
"MIT"
] | permissive | package org.alipay.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.alipay.bean.AlipayOrder;
import org.apache.ibatis.annotations.Param;
public interface AlipayMapper extends BaseMapper<AlipayOrder> {
/**
* 添加支付宝交易记录
* @param alipayOrder
* @return
*/
Integer inse... | true |
9a371e14f45c407eff45ac1e7de58f623cb42a71 | Java | zieben46/api-requester | /APIRequester/src/com/nick/main/geocode/textfield/TextFieldGeocodeOutput.java | UTF-8 | 2,395 | 2.671875 | 3 | [] | no_license | package com.nick.main.geocode.textfield;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import... | true |
a88c9b27916b31630ffb3acb06a658945a451bbd | Java | shikuigang1/s-service | /service-auth/src/main/java/com/skg/service/auth/feign/IAdminLoginService.java | UTF-8 | 653 | 1.859375 | 2 | [] | no_license | package com.skg.service.auth.feign;
import com.skg.service.core.model.Admin;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMeth... | true |
e6acc67e208d3031878f3f42a0d9e4392c8414cd | Java | cryptimeleon/craco | /src/test/java/org/cryptimeleon/craco/secretsharing/accessstructure/utils/InnerNodeTest.java | UTF-8 | 5,357 | 2.515625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.cryptimeleon.craco.secretsharing.accessstructure.utils;
import org.cryptimeleon.craco.common.attributes.RingElementAttribute;
import org.cryptimeleon.craco.common.attributes.StringAttribute;
import org.cryptimeleon.craco.common.policies.ThresholdPolicy;
import org.cryptimeleon.craco.secretsharing.accessstr... | true |
00f43770b7ab57c6b7b96943035d40e047a1f2d0 | Java | 7ydini/PIAPS | /Proxy/src/Proxy.java | UTF-8 | 811 | 3.09375 | 3 | [] | no_license | import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
class MyImage implements Picture{
BufferedImage img;
public MyImage(String fileName){
File file = new File(fileName);
try {
img = Image... | true |
8cf95247b0eb20281ad91f4072d1aa74ec2e028d | Java | LWJGL/lwjgl3 | /modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/YGLogger.java | UTF-8 | 2,105 | 2.140625 | 2 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.yoga;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* <h3>Type</h3>
*
* <pre><code>
* int (*{@li... | true |
ab9ce98925e29460b2b334dbfc17efe4c86f4e6b | Java | Demnart/JavaSchool | /src/Lesson5HW2/SpaceShip.java | UTF-8 | 487 | 3.234375 | 3 | [] | no_license | package Lesson5HW2;
/**
* Created by Артем on 16.10.2016.
*/
public class SpaceShip implements IFly {
String nameOfRocket;
Pilot pilot;
public SpaceShip() {
}
public SpaceShip(String nameOfRocket, Pilot pilot) {
this.nameOfRocket = nameOfRocket;
this.pilot = pilot;
}
@O... | true |
a0cf65f4c834d542c3758468d177f0f925f9a176 | Java | 95sharmavarun/CompanyRegistration | /CompanyAssignment/src/dbAccess/UserDb.java | UTF-8 | 925 | 2.375 | 2 | [] | no_license | package dbAccess;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;
import viewThings.*;
public class UserDb {
Connection con=null;
PreparedStatement pstmt... | true |
557e9a178993b8f38e97c190920673bb1da4d256 | Java | tainaoual/nona8 | /src/main/java/virtual_pet/RoboticDog.java | UTF-8 | 350 | 2.875 | 3 | [] | no_license | package virtual_pet;
public class RoboticDog extends RoboticPet implements Dog {
public RoboticDog(String name) {
super(name);
}
@Override
public void takeOnWalk() {
oilLevel -= 10;
maintenanceLevel += 10;
}
@Override
public void bark() {
System.out.print... | true |