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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a7595de6b42d806f4fec1f49d1f271d5e088526c | Java | hermantretteteig/semoppg2020V | /src/main/java/models/NyttKjopKomponentinfoView.java | UTF-8 | 1,418 | 2.921875 | 3 | [] | no_license | package models;
import javafx.beans.property.SimpleStringProperty;
/*
Klassen brukes for å vise detaljer om de ulike komponentene for kunden når han/hun skal foreta et kjøp. Klassen
består av to attributter. Den ene attributten (verdibeskrivelse) beskriver detaljen (f. eks. lagringskapasitet,
antall kjerner), mens de... | true |
e541a004b4bcb686a007f0bfb33e439b1b6116ef | Java | tectronics/fede2013 | /src/grace/cases/createCC/PanelProblemCaseConsultaMethods.java | UTF-8 | 25,896 | 2.125 | 2 | [] | no_license | /**
*
* <p>Title: TEMPO-CASE</p>
* <p>Description: Class with contains methods for the class PanelProblemCaseConsulta</p>
* <p>Copyright: Copyright (c) 2009</p>
* <p>Company: Grupo AIKE. Universidad de Murcia.</p>
* @author Tamara Riestra Ainsua
* @version 1.0
*/
package grace.cases.createCC;
import cases.Anno... | true |
8b1fe299c218cce8dd53baed5f7d223e71f704d0 | Java | Jon-Gaara/DistributedStudy | /src/main/java/com/yumaolin/deepunderstand/messenger/netty/TimeServerHandle.java | UTF-8 | 2,594 | 2.40625 | 2 | [] | no_license | package com.yumaolin.deepunderstand.messenger.netty;
import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandler;
/**
* 获取当前服务时间
* @author yum... | true |
f04093e2b87cc569a44052a270d3a69b072c9e68 | Java | hileef/OceanWar | /src/ships/radar/Radar.java | UTF-8 | 1,771 | 2.828125 | 3 | [] | no_license | package ships.radar;
import java.util.ArrayList;
import java.util.List;
import core.Element;
import core.InspectableWorld;
import ships.Inspector;
import ships.IShip;
public class Radar implements Inspector {
private List<Element> samePosition;
private List<Element> closestPosition;
private InspectableWorld wo... | true |
9732b39117f3af09a8d65e4a72b9cd2fb4e8368d | Java | Bartoszmleczko/ConcertApi | /src/com/springapp/entity/Tickets.java | UTF-8 | 2,306 | 2.53125 | 3 | [] | no_license | package com.springapp.entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
i... | true |
2cf56ea52a0fcc1864061642b2938aa2aa69e5d9 | Java | zak-u/Payments | /src/main/java/entity/User.java | UTF-8 | 1,194 | 2.375 | 2 | [] | no_license | package entity;
import java.util.ArrayList;
import java.util.List;
import DAO.sql.UserDAOSQL;
import service.UserService;
public class User {
public enum Role {
ADMIN,
CUSTOMER
}
public final Integer id;
public final String name;
public final String surname;
public final Str... | true |
52ab28e80367237cd6a5a605b0f945cae45b66d4 | Java | yalewkidane/FIWARE_EPCIS_Mediation_Gateway | /src/main/java/com/oliot/mediation/service/fiware/QueryUtilility.java | UTF-8 | 5,912 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.oliot.mediation.service.fiware;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import java.util.Map;
import com.oliot.mediation.service.epcis.... | true |
55953c4cc33f9b2d004ec5aad569605c366ccc17 | Java | nkyoshida1/AccountBalance | /src/com/company/account.java | UTF-8 | 765 | 2.96875 | 3 | [] | no_license | package com.company;
public class account implements balanceable, depositable, withdrawable
{
public static double amount;
double Cbalance = 2000.0;
double Sbalance = 2000.0;
@Override
public double getBalance() {
return 0;
}
public void setBalance(double amount) {
account.... | true |
54bbe9b4b0118bf2605bac22c3f56108dd756ad1 | Java | wokaole/try-code | /src/main/java/com/cold/tutorial/concurrent/threadpool/ExecutorServiceDemo.java | UTF-8 | 1,363 | 3.0625 | 3 | [] | no_license | package com.cold.tutorial.concurrent.threadpool;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import java.util.stream.IntStream;
/**
... | true |
7a1a88e7a91aa94f626d2049b607b7e862251ce2 | Java | drawepen/MINIQQ | /src/MINIdrawing/drawing.java | GB18030 | 26,053 | 1.609375 | 2 | [] | no_license | package MINIdrawing;
import java.awt.AWTException;
import java.awt.BasicStroke;
import java.awt.Button;
import java.awt.Canvas;
import java.awt.Choice;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
//import java.awt.Cursor;
import java.awt.FlowLayout;
import java.... | true |
6d83a72c5f4297d817927932118e10e1a1f9e811 | Java | karenMora/Black-Snake | /INTRODUCTION_BLACKLISTSEARCH/INTRODUCTION_BLACKLISTSEARCH/src/main/java/edu/eci/arsw/blacklistvalidator/Threads.java | UTF-8 | 1,497 | 2.4375 | 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 edu.eci.arsw.blacklistvalidator;
import edu.eci.arsw.spamkeywordsdatasource.HostBlacklistsDataSourceFacade;
import static edu.... | true |
237f33a1738ca9a5ce51c960099a54d90273415f | Java | rahuldevanavar91/reqresMVVP | /app/src/main/java/com/android/pharmeasytest/service/model/model/Data.java | UTF-8 | 1,709 | 2.4375 | 2 | [] | no_license | package com.android.pharmeasytest.service.model.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
/**
* Created by Rahul on 6/2/18.
*/
public class Data implements Parcelable {
private int viewType;
private String id;
@SerializedName("... | true |
2569fd5422bc4d1c59758b388b1dcc6910b3335e | Java | zhong2peng/dnight-framework | /dnight-leetcode/[0208][Implement Trie (Prefix Tree)]/src/TrieNode.java | UTF-8 | 300 | 2.390625 | 2 | [
"MIT"
] | permissive | /**
* @author ZHONGPENG769
* @date 2019/9/26
*/
public class TrieNode {
public char val;
public boolean isWord;
public TrieNode[] children = new TrieNode[26];
public TrieNode() {
}
TrieNode(char c) {
TrieNode node = new TrieNode();
node.val = c;
}
}
| true |
528c5ecff5f6db655196363912fc488c5c38fc93 | Java | Skrzetuski/bank | /src/main/java/pl/abelo/mq/service/QueueTransferRequestService.java | UTF-8 | 1,995 | 2.296875 | 2 | [
"MIT"
] | permissive | package pl.abelo.mq.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.DeliverCallback;
import com.rabbitmq.client.MessageProperties;
import org.springframework.beans.factory.annotation.Autowired;
imp... | true |
b9841a2419a09aba0e8def30a80530f3e1dad887 | Java | RafaelAmaralPaula/programa-ordem-servicos | /ordem_servico_lovelacetecnolgia/src/ordem_servico_lovelacetecnolgia/service/LancamentoServico.java | UTF-8 | 1,329 | 2.8125 | 3 | [] | no_license | package ordem_servico_lovelacetecnolgia.service;
import java.util.List;
import ordem_servico_lovelacetecnolgia.database.BancosDeDados;
import ordem_servico_lovelacetecnolgia.servico.Servico;
public class LancamentoServico implements Service {
BancosDeDados bd = new BancosDeDados();
String mensagem;
@Override
... | true |
c08127ed7673394afc941f1a47cfd3c363976997 | Java | vmenck/RPCBasic | /src/com/rpc/test/server/ServerRPC.java | UTF-8 | 2,209 | 2.546875 | 3 | [] | no_license | package com.rpc.test.server;
import java.io.IOException;
import org.apache.xmlrpc.server.PropertyHandlerMapping;
import org.apache.xmlrpc.server.XmlRpcServer;
import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
import org.apache.xmlrpc.webserver.WebServer;
//https://www.zugiart.com/2010/09/java-apache-sim... | true |
e0dbac8b1460e51cf31b1cf34bffb4eca7f687b4 | Java | scheshan/leetcode | /src/main/java/leetcode/p912/Solution.java | UTF-8 | 1,086 | 3.21875 | 3 | [] | no_license | package leetcode.p912;
import java.util.Random;
/**
* Solution
*
* @author heshan
* @date 2023/3/4
*/
public class Solution {
private Random rnd = new Random();
public int[] sortArray(int[] nums) {
quickSort(nums, 0, nums.length - 1);
return nums;
}
private void quickSort(int[]... | true |
842c85631b4f734d9aca1a9251e5bda8d995ed47 | Java | felipegutierrez/bidding-system-java | /src/test/java/unit/org/github/felipegutierrez/biddingsystem/auction/service/BidderServiceUnitTest.java | UTF-8 | 692 | 1.882813 | 2 | [] | no_license | package org.github.felipegutierrez.biddingsystem.auction.service;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesCon... | true |
ea5d80da0e316f2b9f2441a1356471a2f0038c44 | Java | hoangpham1997/ChanDoi | /Project/ebweb2019/src/main/java/vn/softdreams/ebweb/web/rest/dto/OrganizationUnitSearchDTO.java | UTF-8 | 1,109 | 2.078125 | 2 | [] | no_license | package vn.softdreams.ebweb.web.rest.dto;
public class OrganizationUnitSearchDTO {
private String organizationUnitName;
private String organizationUnitCode;
private String taxCode;
public OrganizationUnitSearchDTO () {}
public OrganizationUnitSearchDTO (String organizationUnitName, String organiz... | true |
8aa3c6fd5836c2629f1e64d1ded51143347426d3 | Java | Chocobe/JAVA_Lecture | /Java_tutorial/src/class_interface/vending_machine/products/Sports_drink.java | UTF-8 | 498 | 2.9375 | 3 | [] | no_license | package class_interface.vending_machine.products;
public class Sports_drink implements IDrink {
private String sort;
private String name;
private int price;
public Sports_drink(String _name, int _price) {
this.sort = "이온" + SORT;
this.name = _name;
this.price = _price;
}
@Override
public... | true |
21545288b7ac94db6e9a3a8d06ecb411e827936d | Java | highnes7/umaang_decompiled | /l/a/a/a/f.java | UTF-8 | 7,155 | 1.921875 | 2 | [] | no_license | package l.a.a.a;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.uti... | true |
1f426e7caaa8091700fe8e52ce674cb107cdd1ac | Java | bnarutaki/hellomicrofriend | /src/br/com/microfriends/poo/Main.java | UTF-8 | 431 | 2.59375 | 3 | [] | no_license | package br.com.microfriends.poo;
public class Main {
public static void main(String[] args) {
ContaCorrente conta1 = new ContaCorrente();
conta1.setCliente("RONALDO");
ContaPoupanca cp = new ContaPoupanca();
cp.setCliente("RONALDO - CONTA PP");
cp.setDiaAniversario(10);
System.out.println("Cliente ... | true |
baae7cdd3e88fa28586f90226ebcb5b7e793ac68 | Java | ggq-github/test | /test_springcloud-consumer/src/main/java/com/ggq/consumer/controller/DeptControllerFeign.java | UTF-8 | 753 | 1.8125 | 2 | [] | no_license | //package com.ggq.consumer.controller;
//
//import com.ggq.springcloud.api.ProviderApi;
//import com.ggq.springcloud.entry.Department;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariab... | true |
c525d39b512108c050f46a6a0191bed6cca0d951 | Java | AllaaAmer/Java-ChatApplication | /NAAAChat/src/DAO/Category.java | UTF-8 | 1,320 | 2.40625 | 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 DAO;
import java.util.List;
/**
*
* @author adelz
*/
public class Category {
private int id;
privat... | true |
c159af89f0e6ab267d36743278c3e9aa9b7034b2 | Java | payneteasy/superfly | /superfly-web/src/main/java/com/payneteasy/superfly/web/wicket/page/subsystem/EditSubsystemPage.java | UTF-8 | 5,798 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package com.payneteasy.superfly.web.wicket.page.subsystem;
import com.payneteasy.superfly.model.ui.smtp_server.UISmtpServerForFilter;
import com.payneteasy.superfly.model.ui.subsystem.UISubsystem;
import com.payneteasy.superfly.service.SmtpServerService;
import com.payneteasy.superfly.service.SubsystemService;
import ... | true |
481adc37f8940dd461271d19bbb0661863f0a1bf | Java | Tonel/spring-boot-caching-auth0 | /src/main/java/com/caching/demo/controllers/AuthorController.java | UTF-8 | 1,305 | 2.5625 | 3 | [] | no_license | package com.caching.demo.controllers;
import com.caching.demo.data.Author;
import com.caching.demo.services.AuthorService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
im... | true |
819a80b5c30a7ee71e3679061d77ec289268e17c | Java | SwellRT/swellrt | /wave/src/main/java/org/waveprotocol/wave/model/document/raw/impl/Text.java | UTF-8 | 3,516 | 2.703125 | 3 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
1e73e660cc7328fa784b1847cd3b942e9f783951 | Java | 0ssi86/Javacore | /HomeWork_lesson4/HomeWork_lesson4-main/HomeWork4.java | UTF-8 | 2,570 | 3.203125 | 3 | [] | no_license | package ru.geekbrains.lesson4;
import java.util.*;
public class HomeWork4 {
private static String word;
public static void main(String[] args) {
List<String> stringList = new ArrayList<>(Arrays.asList(
"One", "Two", "Three", "Four", "Five", "Two", "Six", "Six",
"Seve... | true |
4ac795785d853b90f9a34ea9c5feef7ed1f29865 | Java | Demonicltu/numberAssigner | /assignerConsoleApplication/src/main/java/com/assigner/helper/ArgumentHelper.java | UTF-8 | 1,833 | 2.734375 | 3 | [] | no_license | package com.assigner.helper;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.HelpFormatter;
public class ArgumentH... | true |
547a50994a7494d7c0824ad05e903226e5d2784b | Java | tedsiebear/backend-inteview-problems | /interviewPreparation/src/companies/sap/PopularCodingProblems/findMedianInStreams.java | UTF-8 | 6,422 | 3.53125 | 4 | [] | no_license | /**
* Alipay.com Inc.
* Copyright (c) 2004-2020 All Rights Reserved.
*/
package companies.sap.PopularCodingProblems;
/**
* first the currentMedian is 0;
* we have two heap minHeap and maxHeap
* when the first element is added, currentMedian = first element
* <p>
* whenever we are adding element, we take thes... | true |
f66b4415b6c6e9fb9889ffedd000f6727ab88e62 | Java | hasib824/Java | /Java practices Herbert Scheildt/chapter 6/custom_class/src/custom_class/Box.java | UTF-8 | 151 | 2.640625 | 3 | [] | no_license |
package Custom_class;
public class Box {
int a,b,c;
public int add(int x,int y,int z)
{
a=x; b=y; c=z;
return a*b*c;
}
}
| true |
5075146ad605a79e0aa8165e3ee6dda07d7818ad | Java | Superingxz/YellowDonkey | /app/src/main/java/com/ruanjie/donkey/utils/DiaLogUtils.java | UTF-8 | 10,711 | 2.140625 | 2 | [] | no_license | package com.ruanjie.donkey.utils;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Line... | true |
50bbaf543f1ad44c40fce583f19e71179f664f40 | Java | eddy8700/spring-cloud-hash-broker | /hashmap-service-broker/src/main/java/com/service/broker/hashmap/util/CustomHashMapApi.java | UTF-8 | 269 | 2.015625 | 2 | [] | no_license | package com.service.broker.hashmap.util;
/**
*
* @author aditya.gupta2
*
* @param <K>
* @param <V>
*/
public interface CustomHashMapApi<K, V> {
public void put(K key, V value);
public V get(K key);
public boolean remove(K key);
public void display();
}
| true |
a052a497d7adfe9e457423705a02f92d33e571ac | Java | Arthwin/SConnection | /app/src/main/java/co/edu/eafit/pi1/sconnection/UserCreateService.java | UTF-8 | 7,485 | 1.734375 | 2 | [] | no_license | package co.edu.eafit.pi1.sconnection;
import android.content.Context;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.os.Bundle;
import android.app.Activity;
import android.os.Handler;
import android.support.v4.app.NavUt... | true |
d14faa96eecc007618b49c903e8660e3172ca23c | Java | Global19/efbt | /cocason/org.eclipse.efbt.cocason.dsl.cocason.parent/org.eclipse.efbt.cocason.dsl.cocason.ui/src/org/eclipse/efbt/cocason/dsl/cocason/ui/labeling/CoCaSonDescriptionLabelProvider.java | UTF-8 | 1,274 | 1.679688 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2020 Bird Software Solutions Ltd
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* ht... | true |
b8695f973d18785112fc177e8d79654caa05533c | Java | xishec/onedev | /server-plugin/server-plugin-report-clover/src/main/java/org/server/plugin/report/clover/CloverReportData.java | UTF-8 | 2,942 | 2.3125 | 2 | [
"MIT"
] | permissive | package org.server.plugin.report.clover;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import javax.annotation.Nullable;
import org.apache.commons.lang.Serializati... | true |
2e30955f65b80fb340c8cf4ed0a3b475f6be3fb4 | Java | xMlex/l2phoenix-epilogue | /data/scripts/ai/BehemothDragon.java | UTF-8 | 917 | 2.75 | 3 | [] | no_license | package ai;
import l2p.gameserver.ai.Fighter;
import l2p.gameserver.model.L2Character;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.instances.L2NpcInstance;
import l2p.gameserver.tables.ItemTable;
/**
* При смерти дропает кучу хербов.
*
* @author SYS
*/
public class BehemothDragon extends Fi... | true |
625ba6b1541fe28a758c5a2b3b931a76afa16e1f | Java | terjr/chess-saldo | /src/main/java/com/chess/saldo/SettingsManager.java | UTF-8 | 3,330 | 2.171875 | 2 | [] | no_license | package com.chess.saldo;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;
import com.chess.saldo.service.entities.Saldo;
import com.chess.saldo.service.entities.SaldoType;
public class Set... | true |
d39367d3aa9bee870f5f58153d460b7c5f43eee4 | Java | rootmelo92118/analysis | /sources/com/google/android/gms/internal/ads/azl.java | UTF-8 | 1,100 | 1.664063 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
import android.support.p034v4.view.PointerIconCompat;
import java.util.UUID;
public final class azl {
/* renamed from: a */
public static final int f3169a = (bkp.f4570a < 23 ? PointerIconCompat.TYPE_GRAB : 6396);
/* renamed from: b */
public static final ... | true |
5f862852625077adab124ec30116f6fb859d36a9 | Java | erikjhordan-rey/AyudaMexico | /app/src/main/java/io/github/erikcaffrey/ayudamexico/phones/PueblaPhonesFragment.java | UTF-8 | 285 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package io.github.erikcaffrey.ayudamexico.phones;
import java.util.ArrayList;
/**
* Created by silmood on 9/21/17.
*/
public class PueblaPhonesFragment extends PhonesFragment{
@Override
ArrayList<Phone> getPhones() {
return PhoneSource.getPueblaPhones();
}
}
| true |
331fc057ec60536737ecc04d58eb9c1b5eea3028 | Java | carloseduardoxp/GitMiner | /decor/padl/kernel/impl/FirstClassEntity.java | ISO-8859-1 | 20,690 | 1.59375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2001-2014 Yann-Gal Guhneuc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v2.0
* which accompanies this distribution, an... | true |
2591036459776911024ca78c2c3486055923adc4 | Java | glookast/commons-settings | /src/test/java/com/glookast/commons/settings/groups/metadata/MetadataSettingsGroupTest.java | UTF-8 | 5,191 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.glookast.commons.settings.groups.metadata;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import static org.junit.jupiter.api.Asserti... | true |
88e700d5f1709fa4a138893e6bff7d7d720e1cfb | Java | redfield5121/ExamenSegundoParcial | /Examen/src/java/Servlets/ServletTriangulo.java | UTF-8 | 1,928 | 3.109375 | 3 | [] | no_license | package Servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ServletTriangulo extends HttpServlet {
doubl... | true |
60af8c0e4ca1262de175786ab007352375c7c49c | Java | elialfonsetti/VRMS | /Iteration_4/VRMS_Server/src/entity/RicaricaDAO.java | UTF-8 | 10,346 | 2.34375 | 2 | [] | no_license | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: DuKe TeAm
* License Type: Purchased
... | true |
6efbec61b2c2c88e578852c64ab9b7d98c20b5ae | Java | flywind2/joeis | /src/irvine/oeis/a295/A295686.java | UTF-8 | 463 | 2.25 | 2 | [] | no_license | package irvine.oeis.a295;
// Generated by gen_linrec.pl - DO NOT EDIT here!
import irvine.oeis.LinearRecurrence;
/**
* A295686 <code>a(n) = a(n-1) + a(n-3) + a(n-4)</code>, where <code>a(0) = 2, a(1) = 1, a(2) = 2, a(3) = 1</code>.
* @author Georg Fischer
*/
public class A295686 extends LinearRecurrence {
/** C... | true |
d6815d0c314f84337b16a5fc124eaadb76b98b0c | Java | MySelfBlank/importAndExportDemo | /src/test/java/com/yzh/test/ScheduledDemo.java | UTF-8 | 1,014 | 2.640625 | 3 | [] | no_license | package com.yzh.test;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import java.time.LocalDateTime;
/**
* @author... | true |
abd6db42f3442d8f724bbc1d9b3e9f73f921182d | Java | dbk1985/dzweb | /dzbackstage/src/main/java/com/dzbackstage/service/imp/EmployeeService.java | UTF-8 | 452 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package com.dzbackstage.service.imp;
import com.dzbackstage.service.BKService;
import java.util.List;
/**
* Created by fighting on 15/9/19.
*/
public class EmployeeService extends BKService{
@Override
public List findAll() {
return null;
}
@Override
public void save(Object o) {
}
... | true |
188f6e7b548e1e4e1e1e069a4eddb49c409a92c2 | Java | mshroom/WhereToStopForADrink | /src/main/java/web/Connection.java | UTF-8 | 2,508 | 3.453125 | 3 | [] | no_license | package web;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.*;
/**
* Class is used to send HTTP requests to server.
* @author mshroom
*/
public class Connection {
private URL url;
private HttpURLConnection connection;
/**
* Cr... | true |
fe66db5c9c34bb41688271b093efbbd129531985 | Java | Bhavdip/SpringBootTraningProjects | /SpringRestTempleteExample/src/main/java/training/spring/boot/reset/templete/controller/TodoController.java | UTF-8 | 2,925 | 2.390625 | 2 | [] | no_license | package training.spring.boot.reset.templete.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpM... | true |
5bbb0ce08eb37633a1d700a72e72c0be63511ca8 | Java | edwardmf94/PatientFollowupApp | /app/src/main/java/com/pe/patient/followup/view/DrugstoreOrdersActivityView.java | UTF-8 | 320 | 1.859375 | 2 | [] | no_license | package com.pe.patient.followup.view;
import com.pe.patient.followup.model.DrugstoreOrder;
import java.util.ArrayList;
public interface DrugstoreOrdersActivityView {
void onGetDrugstoreOrdersResult(Boolean success, ArrayList<DrugstoreOrder> drugstoreOrder);
void onSetProgressBarVisibility(int visibility);
}
| true |
ff8688b51e643a69e88dcb1a43630e4a30203f62 | Java | JassonRM/interpolation-asip | /Compiler/src/com/comparators/ToBinConverter.java | UTF-8 | 2,095 | 3.234375 | 3 | [] | no_license | package com.comparators;
import com.containers.Instruction;
import java.util.ArrayList;
import java.util.BitSet;
public class ToBinConverter {
/**
* parses the instruction to a arraylist of BitSets, first it creates the instruction bitset,
* then tries to check if its a register, then a imm then a labe... | true |
eb8ca983c487b5d4a2e0443d4dda98cafecfe078 | Java | oliviercailloux/J-Voting | /src/main/java/io/github/oliviercailloux/j_voting/profile_gui/EditionView.java | UTF-8 | 6,095 | 2.78125 | 3 | [
"MIT"
] | permissive | package io.github.oliviercailloux.j_voting.profile_gui;
import static com.google.common.base.Preconditions.checkNotNull;
import io.github.oliviercailloux.j_voting.Alternative;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.ec... | true |
95b02b3dc0afe01320a9a8670aab550dbe952c4c | Java | gregorystocker/FlashCardApp | /JavaSQLConnect.java | UTF-8 | 21,767 | 2.65625 | 3 | [] | no_license | import java.io.File;
import java.io.FileReader;
import java.sql.*;
import java.util.Properties;
import java.util.ArrayList;
import java.util.Properties;
import org.json.simple.JSONObject;
import java.io.FileWriter;
import java.io.IOException;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject... | true |
abff7240084f395d7280743545244d82413cb45c | Java | AmanziTel/awe-core | /org.amanzi.awe.ui/src/org/amanzi/awe/ui/events/impl/ShowElementsOnMap.java | UTF-8 | 1,859 | 1.765625 | 2 | [] | no_license | /* AWE - Amanzi Wireless Explorer
* http://awe.amanzi.org
* (C) 2008-2009, AmanziTel AB
*
* This library is provided under the terms of the Eclipse Public License
* as described at http://www.eclipse.org/legal/epl-v10.html. Any use,
* reproduction or distribution of the library constitutes recipient's
* acceptan... | true |
8f10f000c92a1b34719fe20b1ae52dafa96ddcb7 | Java | iiiijjjj/Spring-Test | /src/main/java/com/yu/test/bean/BeanInstanceTest.java | UTF-8 | 765 | 2.375 | 2 | [] | no_license | package com.yu.test.bean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author YULY
* @version 1.0
* @date 2020/8/24 0024 下午 3:30
*
* @mem Bean初始化的测试代码
*/
public class BeanInstanceTest {
public static void main(Strin... | true |
8cd2a7e9ba9c87c4fcc0954b1bf1cbfc713f257c | Java | an-hoang-persional/Pokemon | /Pokemon_Server/src/main/java/com/pokemon/server/service/impl/PokemonColorServiceImpl.java | UTF-8 | 996 | 2.046875 | 2 | [] | no_license | package com.pokemon.server.service.impl;
import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pokemon.server.entity.PokemonColor;
import com.pokemon.server.repository.IPokemonColorRepository;
impor... | true |
98a06150a5b7f08d83f579519c19c40cddb687ab | Java | SanchezAdrian/FinalSpring | /src/main/java/example/service/Impl/LlevarServiceImpl.java | UTF-8 | 1,366 | 2.171875 | 2 | [] | no_license | package example.service.Impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import example.converter.LlevarConverter;
import example.entity... | true |
ea77b5ea3d26fc394bebfb05ec766b5fb4663526 | Java | comk/DragViewDemo | /DragViewDemo/src/com/example/dragviewdemo/RecycleActivity.java | UTF-8 | 764 | 2.109375 | 2 | [] | no_license | package com.example.dragviewdemo;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public class RecycleActivity extends Activity {
RecyclerView rv;
@Override
protected void onCreate(Bundle savedI... | true |
ff8775cf97c840ddd235b92716e70a789808b717 | Java | ThePrathamOS/incubator-blur | /blur-shell/src/main/java/org/apache/blur/shell/GetRowCommand.java | UTF-8 | 4,695 | 2.046875 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
71782602470c312dc3a75ba3365888512365cd3d | Java | sergioeduardomartinez/magneto | /src/main/java/com/magneto/back/AdnRepository.java | UTF-8 | 174 | 1.796875 | 2 | [] | no_license | package com.magneto.back;
import com.magneto.dto.Dna;
import java.util.List;
public interface AdnRepository {
List<Dna> statistics();
void insertAdn(Dna dna);
}
| true |
a9ab2c7dc9403d024c6c6b65514f6d76baf2eea2 | Java | Phantoms007/zhihuAPK | /src/main/java/com/zhihu/android/passport/p1773a/Operator.java | UTF-8 | 14,290 | 1.546875 | 2 | [] | no_license | package com.zhihu.android.passport.p1773a;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import com.secneo.apkwrapper.C6969H;
import com.zhihu.android.api.model.ExtraData;
import com.zhihu.android.api.model.Token;
import com.zhihu.android.api.util.GrantType;
import com.zhi... | true |
78195fdba38c40285e9e23783d23c99a31d9d11a | Java | sourabhdesai/ColorKeys | /src/com/example/Edit_Text_Color_Keys/main_activity.java | UTF-8 | 4,154 | 2.9375 | 3 | [] | no_license | package com.example.Edit_Text_Color_Keys;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
/**
* Created with IntelliJ IDEA.
* User: DESAI_628IL
* Date: 7/14/13
* Time: 7:10 PM
* To change this template use File ... | true |
c6279b7dce970c0e3fc365688e7b48c601e79e27 | Java | inviss/netbro | /cms-jpa/src/main/java/kr/co/d2net/service/UserServiceImpl.java | UTF-8 | 2,107 | 1.898438 | 2 | [] | no_license | package kr.co.d2net.service;
import java.util.List;
import kr.co.d2net.dao.UserDao;
import kr.co.d2net.dto.UserTbl;
import kr.co.d2net.dto.vo.Search;
import kr.co.d2net.dto.vo.Users;
import kr.co.d2net.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
9317cded07b2f5341ed728de4bbb6b9f940b59d5 | Java | bangnv/training-sample-rest-service | /src/test/java/org/exoplatform/cross/rest/test/CalculServiceTest.java | UTF-8 | 2,279 | 2 | 2 | [] | no_license | /*
* Copyright (C) 2003-2012 eXo Platform SAS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This... | true |
9af9674eb60208e61f9d3a35e365e95ec17d1ce4 | Java | CodecoolKRK20173/battle-of-cards-porosty_zycia | /BattleCards/src/players/AIPlayer.java | UTF-8 | 122 | 2.046875 | 2 | [] | no_license | package players;
public class AIPlayer extends Player {
public AIPlayer(String name) {
super(name);
}
}
| true |
b296c82742fa1a1f0d2097b6ef7405fb53b112f4 | Java | CrackerCat/XiaomiFramework | /mi2s_securitycenter_miui12/src/main/java/com/miui/powercenter/deepsave/i.java | UTF-8 | 865 | 1.820313 | 2 | [] | no_license | package com.miui.powercenter.deepsave;
import android.content.Context;
import android.content.SharedPreferences;
import com.miui.powercenter.utils.p;
public class i {
/* renamed from: a reason: collision with root package name */
private SharedPreferences f7057a;
/* renamed from: b reason: collision w... | true |
dc43bf1d0a6bf6f8dc00eb2dfc97f3f4bb7a635e | Java | 12security/zoom-android-app | /sources/com/zipow/videobox/ZMFirebaseMessagingService.java | UTF-8 | 47,672 | 1.835938 | 2 | [] | no_license | package com.zipow.videobox;
import android.app.job.JobInfo.Builder;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.an... | true |
f5f2c8a4c9437e45975a98e0430dee379268d94c | Java | Zimbra/zm-mailbox | /soap/src/java/com/zimbra/soap/account/message/OAuthConsumer.java | UTF-8 | 1,853 | 1.617188 | 2 | [] | no_license | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2015, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the Licens... | true |
4a2ff8b54e02ac5dca55060b754c76085db4ca92 | Java | blacker50/PM2 | /src/com/ck/service/AdminServiceImpl.java | UTF-8 | 618 | 2.046875 | 2 | [] | no_license | package com.ck.service;
import java.util.List;
import com.ck.dao.AdminDao;
import com.ck.entity.Admin;
public class AdminServiceImpl implements AdminService {
private AdminDao adminDao;
public AdminDao getAdminDao() {
return adminDao;
}
public void setAdminDao(AdminDao adminDao) {
this.adminDao = adminDao... | true |
a93bdc01987c91984044f13a0777a6df58a4ad09 | Java | Sahar-1/JavaDesktop-CodeNameOneMobile | /skander-mobile/src/entities/Etage.java | UTF-8 | 1,558 | 2.71875 | 3 | [
"MIT",
"BSD-3-Clause"
] | 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 entities;
/**
*
* @author MBM info
*/
public class Etage {
private int id;
private int numero;
private int nbsa... | true |
d08c44d89481069844c680d4a8211bdb108185db | Java | lilhovhann/MediaPortal | /orange/src/main/java/io/project/app/mediaportal/controllers/ArticleController.java | UTF-8 | 1,180 | 2.125 | 2 | [] | no_license | package io.project.app.mediaportal.controllers;
import io.project.app.mediaportal.models.Article;
import io.project.app.mediaportal.services.ArticleService;
import java.util.Optional;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpSt... | true |
3a6ad0f84f6d17aa5da155aa7c3b7c67d27a9be4 | Java | kadr0id/algoritm | /src/scripting/ac/ACS1.java | UTF-8 | 13,426 | 2.015625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
* Tuan Fix 4/7 - 5/7/2014
*/
package scripting.ac;
import com.google.common.base.Strings;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import scripting.base.ACTaskBase;
import scripting.util.TextUtili... | true |
ddcde31e5fbd07aa8deac750a3891a9fc0e34cee | Java | BIBuildIT/BuildIT | /src/SiteExtendNewDate.java | UTF-8 | 7,845 | 2.390625 | 2 | [] | no_license |
import java.text.ParseException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, c... | true |
72bfb2eb7d9c06633ad58299c469289ba10a9576 | Java | meilindasun/minesweeper | /P1_Sun_Meilinda_MinesweeperController.java | UTF-8 | 1,861 | 2.71875 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import java.util.Scanner;
public class P1_Sun_Meilinda_MinesweeperController
implements ActionListener {
Scanner in = new Scanner(System.in);
P1_Sun_Meilinda_MinesweeperModel myModel;
P1_Sun_Meilinda_MinesweeperView myView;
P1_Sun_Meilinda_Minesweeper... | true |
c9bbf68f23a747d15fa23713733bc66ee7043d75 | Java | XiangZ-416/Study | /左神算法/src/左神算法初级班04/Code_34_IsBalancedTree.java | GB18030 | 2,147 | 3.703125 | 4 | [] | no_license | package 㷨04;
class Code_34_IsBalancedTree {
public static class Node {
private int value;
private Node left;
private Node right;
public Node(int value) {
value = this.value;
}
}
public static class ReturnData {
public boolean isB;
publi... | true |
a989145c00788223dafaa0f589c2dcd26737b740 | Java | MrHuGit/JCTestApp | /JcFramework/src/main/java/com/jc/framework/network/RetrofitManager.java | UTF-8 | 816 | 2.421875 | 2 | [] | no_license | package com.jc.framework.network;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* @author Mr.Hu(Jc)
* @create 2018/3/26 17:56
* @describe
* @update
*/
public class RetrofitManager {
private Retrofit mRetrofit;
private RetrofitManager(){
mRetrofit=new Retrof... | true |
560919ca4d6f88fd78030434ab9dba98137a58be | Java | mgoncas/concurrencia | /concurrencia/src/interbloqueo/buffer/Principal.java | UTF-8 | 922 | 3.234375 | 3 | [] | no_license | package interbloqueo.buffer;
import java.util.Random;
/**
*
* @author mgonzcas
*
*/
public class Principal implements Runnable {
private int id;
private static int cont = 0;
private int contPrivate = 0;
private static Random cerrojoa = new Random();
public Principal(int id) {
this.id = id;
}
publi... | true |
7e5556dba195ea4fb96934f1eec4943e38ffb2ec | Java | cameronlee314/Cytodynamics | /cytodynamics-nucleus/src/test/java/com/linkedin/cytodynamics/nucleus/TestGlobMatcher.java | UTF-8 | 1,439 | 2.359375 | 2 | [
"BSD-2-Clause",
"MIT",
"Apache-2.0"
] | permissive | /**
* Copyright 2018-2019 LinkedIn Corporation
* All Rights Reserved.
*
* Licensed under the BSD 2-Clause License (the "License").
* See LICENSE in the project root for license information.
*/
package com.linkedin.cytodynamics.nucleus;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
pub... | true |
0df12d0c515e45c4f1981fdd0bf0ee0345ff65d4 | Java | ljs1592/simple-spring-boot-task | /src/main/java/com/jack/task/excutor/TaskExcutor.java | UTF-8 | 2,555 | 2.78125 | 3 | [] | no_license | package com.jack.task.excutor;
import org.springframework.context.ApplicationContext;
import com.jack.task.bean.TaskInfoBean;
import com.jack.task.excutor.base.AbstractTaskExcutor;
import com.jack.task.service.ITaskService;
/**
* 任务执行器:
* 用于给ThreadPoolTaskScheduler提供实现了runnable接口的任务。
* @author Administ... | true |
4669c93a17f5b73a1ef44dd4fe2343d9e3c583a2 | Java | Manifold0/adcom_decompile | /sources/com/google/android/gms/drive/query/SortOrder.java | UTF-8 | 2,497 | 2.0625 | 2 | [] | no_license | package com.google.android.gms.drive.query;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.androi... | true |
e37de13b58b771b038f04d94ca9e3d1da5058369 | Java | CMPUT301F17T18/WSFMN | /app/src/main/java/com/wsfmn/model/LeaderBoardAdapter.java | UTF-8 | 2,788 | 2.734375 | 3 | [
"MIT"
] | permissive | /*
* Copyright © 2017 Team 18 (WSFMN), CMPUT301, University of Alberta – All Rights Reserved.
* You may use, distribute, or modify this code under terms and conditions of the Code of Student Behavior at University of Alberta.
* You can find a copy of the license in this project. Otherwise please contact nmayne@ualbe... | true |
506833c40ffb4573dc5ba7598d593c068ed4ff15 | Java | anwajler/p2pm | /sources/pubsub/src/tests/java/pl/edu/pjwstk/mteam/pubsub/tests/Topology_Star_Test.java | UTF-8 | 5,635 | 1.984375 | 2 | [] | no_license | package pl.edu.pjwstk.mteam.pubsub.tests;
import java.util.List;
import pl.edu.pjwstk.mteam.p2p.P2PNode;
import pl.edu.pjwstk.mteam.pubsub.logging.Logger;
import org.junit.Test;
import pl.edu.pjwstk.mteam.core.NetworkObject;
import pl.edu.pjwstk.mteam.core.Node;
import pl.edu.pjwstk.mteam.core.NodeCallback;
... | true |
8a982f26af0cc97ea8001577395a056d3295da4d | Java | lucbel/NaturalAutomation | /natural-automation/src/main/java/com/naturalautomation/jbehave/AbstractSpringJBehaveStories.java | UTF-8 | 5,421 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.naturalautomation.jbehave;
import com.naturalautomation.annotations.PageObject;
import com.naturalautomation.annotations.UseWebDriver;
import com.naturalautomation.exceptions.NaturalAutomationException;
import com.naturalautomation.selenium.element.factory.ElementFactory;
import org.jbehave.core.configurat... | true |
3980329624f6a85d0e887fdf82e138e866085c90 | Java | soticsenge/investment_calculator | /src/test/java/com/invest/demo/controllers/PropertyForSaleControllerTest.java | UTF-8 | 4,248 | 2.125 | 2 | [] | no_license | package com.invest.demo.controllers;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.invest.demo.entities.PropertyForSale;
import com.invest.demo.repositories.PropertyForSaleRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.... | true |
3a8fba94de20e0534044d3b94ff85d635ffd249a | Java | alvaro051092/GestionAcademica | /GestionAcademica/src/java/Interfaz/InCurso.java | UTF-8 | 540 | 1.960938 | 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 Interfaz;
import Entidad.Curso;
import Utiles.Retorno_MsgObj;
import java.util.List;
/**
* Interfaz InCurso
*
* @author al... | true |
8f8a58aacd6fca0fd13bbeb33dbc572efab63747 | Java | daichi-m/jach | /src/main/java/io/github/daichim/jach/exception/TimeoutException.java | UTF-8 | 231 | 1.796875 | 2 | [
"MIT"
] | permissive | package io.github.daichim.jach.exception;
public class TimeoutException extends RuntimeException {
private static final long serialVersionUID = -7537913734835466153L;
public TimeoutException() {
super();
}
}
| true |
8605c265cf2edc701efa3a8cb485df6097d6ccca | Java | gtorreblancaluna/nails-room | /nails_room/src/main/java/mx/com/nails_room/view/CitasController.java | UTF-8 | 3,204 | 2.078125 | 2 | [] | no_license | package mx.com.nails_room.view;
import static mx.com.nails_room.commons.ApplicationConstants.CITA_APARTADO;
import java.time.LocalDate;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Contro... | true |
61e1566176679f8f1f8baf9473dc124bd0e25f86 | Java | MounikaPadidapu/BVRIT_Happyride.com | /ridealong/WEB-INF/classes/com/bvrit/happyride/dao/JourneyDetailsDAO.java | UTF-8 | 3,681 | 2.578125 | 3 | [] | no_license | package com.bvrit.happyride.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.bvrit.happyride.beans.UserBeans;
public class JourneyDetailsDAO {
static Connection con;
static Pr... | true |
cd412326d95f2aea220bbc878738d9aaa9e4f6f8 | Java | Hex-s/java_workspace | /Chapter10/src/com/niit/exam3/FinallyExam2.java | GB18030 | 666 | 3.3125 | 3 | [] | no_license | package com.niit.exam3;
public class FinallyExam2 {
public static int method(){
try{
System.out.println("try");
return 1;
}
catch(Exception e){
System.out.println("catch");
return 2;
}
finally{
System.out.println("finally");
try{
int a = Integer.parseInt("a");
retur... | true |
ab1ad28568c336c66b293b506034d1d5bfa02915 | Java | ppCoder/Algorithm | /Question/Alibaba/B/Main.java | UTF-8 | 1,584 | 3.3125 | 3 | [] | no_license | package Alibaba.B;
import java.util.Scanner;
/**
* @Author dml
* @Date 2019/8/30 20:34
* @Description
**/
public class Main {
/**
* @author: dml
* @date: 2019/8/30 20:50
* @param users 输入的bg字符串,b代表男生,g代表女生
* @return 返回最幸福的男生位置,返回男生人数最多的数量
*/
static String getIndexAndLongest(Strin... | true |
72c2cf7472d2acdb87a398fbd6a53f831b38dcaf | Java | otula/apilta | /ParkingBackend/src/service/tut/pori/apilta/files/datatypes/Definitions.java | UTF-8 | 1,403 | 1.859375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright 2016 Tampere University of Technology, Pori Department
*
* 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 ... | true |
8c4f76b1890eb6c6db4a0966705030ac40e347a0 | Java | Lorenzo603/piovra | /piovra/src/main/java/it/lf/piovra/controllers/LoginPageController.java | UTF-8 | 770 | 2.171875 | 2 | [] | no_license | package it.lf.piovra.controllers;
import it.lf.piovra.controllers.constants.ControllerConstants;
import it.lf.piovra.views.forms.LoginForm;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.we... | true |
262494338e7dd24646ef8247eb72f423135f6304 | Java | xreztento/JWeight | /src/main/java/org/weight/jmeter/JMeterPluginUtils.java | UTF-8 | 583 | 2.171875 | 2 | [] | no_license | package org.weight.jmeter;
import java.text.DecimalFormat;
public class JMeterPluginUtils {
private static String PLUGINS_PREFIX = "jweight - ";
private static boolean prefixPlugins = true;
public static String prefixLabel(String label) {
return prefixPlugins ? PLUGINS_PREFIX + label : label;
}
... | true |
13afad7f8fbd1b4ac066ee4ea7aa5bd9722e8a26 | Java | yewintaung/SprintRestSecurityCustomToken | /src/main/java/com/ywa/service/authenticate/CustomAuthenticationManager.java | UTF-8 | 747 | 2.09375 | 2 | [] | no_license | package com.ywa.service.authenticate;
import org.springframework.security.authentication.AuthenticationServiceException;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.core... | true |
66244d3f0ff0585cf10469d76782b83fbd1446b5 | Java | maggiedm/AlgosIII-TP2 | /src/main/java/edu/fiuba/algo3/modelo/lapiz/CondicionLapiz.java | UTF-8 | 234 | 1.945313 | 2 | [
"MIT"
] | permissive | package edu.fiuba.algo3.modelo.lapiz;
import edu.fiuba.algo3.modelo.dibujo.Dibujo;
import edu.fiuba.algo3.modelo.Posicion;
public interface CondicionLapiz {
void dibujarLinea(Posicion origen, Posicion destino, Dibujo dibujo);
}
| true |
aac5a7644e3416505fac772ed6ec82dc54b0648c | Java | silayugurlu/taskrepo | /crawler/src/main/java/com/company/crawler/core/Crawler.java | UTF-8 | 613 | 1.984375 | 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.company.crawler.core;
import com.company.crawler.hazelcast.CrawlerMediator;
import com.company.crawler.model.CrawlerUrl;
i... | true |
77c22670a3113ca174c7f0eeb2d32331dcdda687 | Java | leohsu91/myapp | /java-demo/src/main/java/com/wj/annotation/Test.java | UTF-8 | 136 | 1.5625 | 2 | [] | no_license | package com.wj.annotation;
/**
* Created by wangjun on 14-7-31.
*/
public class Test {
@MyAnnotation()
public String name;
}
| true |
ce1e4b5f9965a05e4bb6d1ef0e727903433323fb | Java | NjustJiaweihan/LeetCode | /Easy/160.java | UTF-8 | 674 | 3.46875 | 3 | [] | no_license | //时间比较长 但思路比较容易理解
public class Solution
{
public ListNode getIntersectionNode(ListNode headA, ListNode headB)
{
if(headA == null || headB == null)
{
return null;
}
ListNode NodeA = headA;
ListNode NodeB = headB;
Set<ListNode> NodeSet = new HashSet<>()... | true |
eaa0bc32bd7bfaa704f35ae7ad9c8810646cf915 | Java | KhalidAissaoui/FMN_FITEC-Java_basic-ateliers | /Solutions/Atelier-2/Personne.java | ISO-8859-1 | 1,049 | 3.203125 | 3 | [] | no_license | package atelier_2;
public class Personne {
private String nom;
private String adress;
private int age;
private int num;
private static int c=0;
public Personne(String nom, String adress, int num, int age) {
c++;
this.nom = nom;
this.adress = adress;
this.num = num;
this.age = age;
}
... | true |
a83fe5d3edc397d9e162f61f5720c87cbfaccc54 | Java | urandu/openmrs-VMMC-module | /omod/src/main/java/org/openmrs/module/bootcampaddon/fragment/controller/program/ProgramCompletionFragmentController.java | UTF-8 | 2,141 | 1.84375 | 2 | [] | no_license | /**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS IS"
... | true |