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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8e0a27d65db1c517cf93f1cb3c895817e980d007 | Java | nguyenhoangnam6199/Androi_GiuaKy | /BaiGiuaKy/app/src/main/java/com/example/baigiuaky/Models/ThongKe.java | UTF-8 | 488 | 2.28125 | 2 | [] | no_license | package com.example.baigiuaky.Models;
public class ThongKe {
private String tenxe;
private int solan;
public ThongKe(String tenxe, int solan) {
this.tenxe = tenxe;
this.solan = solan;
}
public String getTenxe() {
return tenxe;
}
public void setTenxe(String tenxe) ... | true |
2307e49915eaa4221e0cfd4f19615a7d68947336 | Java | jingzhouwangbuer/GP018251 | /design-patterns/singletonwork/src/main/java/factory/simplefactory/Test.java | UTF-8 | 404 | 2.828125 | 3 | [] | no_license | package factory.simplefactory;
/**
* @介绍 :
* @作者 :RJT
* @时间 :2019-03-08 10:05
*/
public class Test {
public static void main(String[] args) throws Exception {
FruitFactory factory =new FruitFactory();
Fruit apple =factory.produce(Apple.class);
apple.print();
Fruit orange... | true |
3ac8e1f8bfc966ff83b65b1c8621ff304850b0c1 | Java | zjh1695178894/springboot-springdata | /02-spring-data-hibernate-jpa/src/com/bjsxt/dao/impl/UsersDaoImpl.java | UTF-8 | 2,293 | 2.359375 | 2 | [] | no_license | package com.bjsxt.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Pr... | true |
dfe2d0d2d45e1079973215ed3b52d1ede3b7afbf | Java | randoop/randoop | /src/main/java/randoop/sequence/ExecutableSequence.java | UTF-8 | 25,975 | 2.078125 | 2 | [
"MIT"
] | permissive | package randoop.sequence;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.StringJoiner;
import ran... | true |
e2609f7fa8bca730e26ceb994302682dde55c088 | Java | Sayalikajale/Availability-manager | /disaster_recovery/PingVm.java | UTF-8 | 4,687 | 2.703125 | 3 | [] | no_license | package disaster_recovery;
import java.net.URL;
import com.vmware.vim25.VirtualMachinePowerState;
import com.vmware.vim25.VirtualMachineRuntimeInfo;
import com.vmware.vim25.mo.Folder;
import com.vmware.vim25.mo.HostSystem;
import com.vmware.vim25.mo.InventoryNavigator;
import com.vmware.vim25.mo.ManagedEntity;
impor... | true |
827e470a2e6bb78dcffabbeeef6d8b51abe8918e | Java | annaBanana1994/SB_assessment | /src/main/java/com/starlingbank/assessment/model/Account.java | UTF-8 | 337 | 1.601563 | 2 | [] | no_license | package com.starlingbank.assessment.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account {
String accountUid;
String accountType;
String defaultCategory;
String currency;
String createdAt;
... | true |
26b7b20e117989bb14ff0b4d49cfcf01964d4b96 | Java | PetuchovArtem/academy | /academy/src/by/academy/classwork/lesson9/ApplicationDemo.java | UTF-8 | 204 | 2.09375 | 2 | [] | no_license | package by.academy.classwork.lesson9;
public class ApplicationDemo {
public static void main(String[] args) {
Alena myLoveAlena = new Alena();
myLoveAlena.giveMeYourMoney(100);
}
}
| true |
cbed34e3ec8cbf08b9a7d598987d6cd7e4a2ab2d | Java | QiqiWu577/javaswing | /Test/testLinkedList/Testutility.java | UTF-8 | 22,078 | 3.21875 | 3 | [] | no_license | /**
*
*/
package testLinkedList;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import utility.List;
import utility.SLL;
/**
* @author 745319
*
*/
class Testutility {
List list;
String a,b,c;
/**
* @throws java.lang.Excepti... | true |
66ac709103dac9721cd74f44df2e9250bed8bee2 | Java | aki-ks/Linkstone-Compiler | /linkstone-annotations/src/main/java/me/aki/linkstone/annotations/Mode.java | UTF-8 | 251 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package me.aki.linkstone.annotations;
public enum Mode {
/**
* The annotated package should be renamed to the declared name
*/
SELF,
/**
* The whole path should be replaced against the declared name
*/
ABSOLUTE
}
| true |
4a61cd5735bf8e02108bfd865af161dbd5f6d4ff | Java | kunalbalani/Turbo360 | /hw2/src/edu/nyu/cs/cs2580/T3Parser.java | UTF-8 | 735 | 3.296875 | 3 | [] | no_license | package edu.nyu.cs.cs2580;
//Utility class for parsing
public class T3Parser {
public static Integer parseTermInvertedIndex(String line){
return Integer.parseInt(line.trim().charAt(0)+"");
}
public static PostingsWithOccurences<Integer> parsePostingInvertedIndex(String line){
PostingsWithOccurences<Integer>... | true |
47f0cf27831bcdc5f8fc417c4ad682699c22d890 | Java | chandusekhar/UMaMES | /uma-mes/src/main/java/me/zhengjie/uma_mes/service/mapper/ConfigCodeMapper.java | UTF-8 | 456 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | package me.zhengjie.uma_mes.service.mapper;
import me.zhengjie.base.BaseMapper;
import me.zhengjie.uma_mes.domain.ConfigCode;
import me.zhengjie.uma_mes.service.dto.ConfigCodeDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
/**
* @author wave
* @date 2020-10-09
*/
@Mapper(componentModel = "spri... | true |
5340786ab9d4b08276892e8edf5b6daa94dc718b | Java | fpeterek/aztec-challenge | /src/main/java/AztecChallenge/GameEngine/Platform/Platform.java | UTF-8 | 251 | 2.1875 | 2 | [
"MIT"
] | permissive | package AztecChallenge.GameEngine.Platform;
import AztecChallenge.GameEngine.GameEntity;
public class Platform extends GameEntity {
public Platform(double x, double y, double width, double height) {
super(x, y, width, height);
}
}
| true |
592b89fb6568519b3bee704094d8718d95f6dd6b | Java | maxmcmxc/Calculatrice | /src/defaultPackage/Calculatrice.java | UTF-8 | 312 | 2.21875 | 2 | [] | no_license | package defaultPackage;
import javax.swing.JFrame;
public class Calculatrice {
private static JFrame fenetre;
public static void main(String[] args){
fenetre = new Fenetre();
fenetre.setVisible(true);
}
public static JFrame getFenetre() {
return fenetre;
}
} | true |
f47abc8de85cdddf4cf60f46307543012705fcee | Java | prashant31191/apisample | /ApiSample/app/src/main/java/com/azapps/recycler/ActNewsDetail.java | UTF-8 | 4,137 | 1.976563 | 2 | [] | no_license | package com.azapps.recycler;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView... | true |
b8350a135b7c21cadedf429868b176a67c2cd637 | Java | cupsmark/cupsnew | /app/src/main/java/com/cupslicenew/core/model/MStickerCategory.java | UTF-8 | 1,579 | 2.359375 | 2 | [] | no_license | package com.cupslicenew.core.model;
public class MStickerCategory {
private int sticker_category_id;
private String sticker_category_name,sticker_category_desc, sticker_category_uri, sticker_category_status, sticker_category_date;
public MStickerCategory()
{
sticker_category_id = 0;
sticker_categ... | true |
5786345b7aaaec80bee1e57c7821ab87e4c56751 | Java | Lakshya-CB/BML_Java | /Bit_Masking/Misc_Ques.java | UTF-8 | 285 | 2.78125 | 3 | [] | no_license | package Bit_Masking;
public class Misc_Ques {
public static void main(String[] args) {
int x = 52;
while(x!=0) {
System.out.print(x%2);
x=x/2;
}
System.out.println();
x = 52;
while(x!=0) {
System.out.print(x&1);
// x=x>>1;
x>>=1;
}
}
}
| true |
f09fcc97b366be7aaba23638cfd9a5b90b521b4d | Java | Yarik353/OOP | /lab5/main.java | UTF-8 | 1,096 | 3.46875 | 3 | [] | no_license | package lab5;
import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Введіть текст:");
Text text = new Text(scan.nextLine());
String [] array= {"апельсин", "яблуко", "банан", "ананас", "манго... | true |
a352552a5908f24d1ea397ac65df17b5a17d9151 | Java | nestorsalinas88/codeup-java-exercises | /src/ArrayPractice.java | UTF-8 | 1,443 | 3.90625 | 4 | [] | no_license | import java.util.Arrays;
public class ArrayPractice {
public static void main(String[] args) {
double [] numbers;// variable declaration
boolean [] booleans;
numbers = new double [7]; // instantiation
booleans = new boolean[5];
numbers[0] = 6; // in Java a... | true |
b33234989c5cd36488ba701fd9f46bab4fdd8519 | Java | Tiggytamal/Redmine | /SonarLysaFX2/src/test/java/junit/fxml/factory/TestComposantFXMLTableRow.java | UTF-8 | 2,499 | 2.109375 | 2 | [] | no_license | package junit.fxml.factory;
import static com.google.common.truth.Truth.assertThat;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayNameGeneration;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import dao.Dao;
import dao.DaoFactory;
import fxml.bdd.... | true |
6c4ba5a46003d7e51ac9fb0b22be1e5889aa8d47 | Java | imaging123/spring-springMVC-mybatis | /ssm/src/main/java/com/elin4it/ssm/service/IUserService.java | GB18030 | 299 | 1.804688 | 2 | [] | no_license | package com.elin4it.ssm.service;
import com.elin4it.ssm.entity.User;
import java.util.List;
/**
* Created by imaging on 2015/11/13.
*/
public interface IUserService {
/**
* û
* @return
* @throws Exception
*/
List<User> findUser()throws Exception;
}
| true |
bb09368d8068144b23fb127196b508eede168d01 | Java | hypower-org/physicloud-experimental | /src/java/edu/hsc/hypower/physicloud/core/DynamicVerticleBootstrap.java | UTF-8 | 613 | 2.34375 | 2 | [
"MIT"
] | permissive | package edu.hsc.hypower.physicloud.core;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
public class DynamicVerticleBootstrap {
public static void main(String[] args){
VertxOptions opts = new VertxOptions();
opts.setWorkerPoolSize(Runtime.getRuntime().availablePr... | true |
454b97ad687ae12950ff383e1e43bb21bca71437 | Java | streamkit/streamkit | /bundles/commons_api/src/main/java/org/mediacenter/api/query/ContentQueryServlet.java | UTF-8 | 11,638 | 1.695313 | 2 | [] | no_license | /*
* 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 |
522e94451ab2c1898bea2c14eb421487a0b82fdc | Java | eshwar2305/BotV2 | /BettingEngine/src/com/engine/dataaccess/TryDBAccess.java | UTF-8 | 23,410 | 2.578125 | 3 | [] | no_license | package com.engine.dataaccess;
import com.engine.dataobject.*;
import java.sql.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class TryDBAccess
{
Connection conn = null;
private PreparedStatement... | true |
8621a210577ae108e4d961f078ce7e1b6d3e112d | Java | subotic98/my-first-project | /app/src/main/java/com/dachuyennganh/beershop/Cart.java | UTF-8 | 2,308 | 2.03125 | 2 | [] | no_license | package com.dachuyennganh.beershop;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.wi... | true |
475288d394f2ef585c30d453c8f487b94825e29c | Java | peakster2/Paramorphism-2.0-Deobf-Source-Leak | /com/fasterxml/jackson/databind/MappingJsonFactory.java | UTF-8 | 1,352 | 2.0625 | 2 | [] | no_license | package com.fasterxml.jackson.databind;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.format.InputAccessor;
import com.fasterxml.jackson.core.format.MatchStrength;
import java.io.IOException;
public class MappingJsonFactory extends Json... | true |
df50a8155e11070374814bf1038b44e410d5b9e0 | Java | oldmatiusgg/JAVA | /src/PruebaScanner.java | UTF-8 | 545 | 3.796875 | 4 | [] | no_license | // Programa Java para leer datos de varios tipos usando la clase Scanner
import java.util.Scanner;
public class PruebaScanner
{
public static void main(String[] args)
{
// Declarar el objeto e inicializar con
// el objeto de entrada estándar predefinido
Scanner sc = new Scanner(System.in)... | true |
eec00c19c164c2d1d7ae0b3623ab3a5cb635cad4 | Java | dtbinh/AtomMini | /src/sg/atom/ai/steering/Steering.java | UTF-8 | 235 | 2.046875 | 2 | [
"MIT"
] | permissive | package sg.atom.ai.steering;
/**
*
* @author cuongnguyen
*/
import com.jme3.math.Vector3f;
public abstract interface Steering {
void interpolated(float paramFloat);
Vector3f calculateForce();
boolean isEnabled();
}
| true |
a8667a23f3360e279ae6bffc6ba7768d05724464 | Java | TimmiTBy/Electives | /src/com/epam/electives/listener/Log4jInit.java | UTF-8 | 938 | 2.078125 | 2 | [] | no_license | package com.epam.electives.listener;
import com.epam.electives.util.Constants;
import org.apache.log4j.LogManager;
import org.apache.log4j.xml.DOMConfigurator;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
/**
* Initialisation Log4J
*/
p... | true |
64da97a8a54d60720c9d3444e0a6a36a70bce9f4 | Java | touree236/javaClasses | /JavaClasses/src/com/class28/Device.java | UTF-8 | 352 | 2.90625 | 3 | [] | no_license | package com.class28;
public class Device {
// class device , then create child class "Apple"
String deviceType, name;
public Device(String deviceType, String name) {
this.deviceType=deviceType;
this.name=name;
}
}
class Apple extends Device{
public Apple (String deviceType, String name) {
super(dev... | true |
b9a07ec1d5b39da8e94a5cc1186c5823ec8aa0c1 | Java | richardvclam/project-poker | /src/project_poker/MainPoker.java | UTF-8 | 3,480 | 3.65625 | 4 | [] | no_license | package project_poker;
import java.util.*;
public class MainPoker {
public static void main(String[] args) {
Poker poker = new Poker();
Scanner in = new Scanner(System.in);
double cash, deposit = 0;
boolean run = true;
int replaceCounter = 0;
// Deposit money
System.out.print("Enter the amount of m... | true |
0a417cf7733ca3c771d7030a7b28f84a8d63ed13 | Java | ZhiYu2018/taskeye | /spi/src/main/java/org/pangu/dto/PanguRequest.java | UTF-8 | 682 | 2.203125 | 2 | [] | no_license | package org.pangu.dto;
public class PanguRequest<T>{
private String appId;
private String flowId;
private T data;
public PanguRequest() {
}
public PanguRequest(String appId, String flowId) {
this.appId = appId;
this.flowId = flowId;
}
public String getAppId() {
... | true |
4b88d2247f77508b6823cc9ce1345aefe689caeb | Java | abhilashasharma2021/Ec-Dial | /app/src/main/java/com/ecdial/adapter/OfferHomeAdapter.java | UTF-8 | 2,479 | 2.203125 | 2 | [] | no_license | package com.ecdial.adapter;
import android.content.Context;
import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.Di... | true |
47e567bd959d5184f202eba97be60518df650ec6 | Java | umerasim/Intigral | /Task 1/weather-service-backend/src/main/java/com/weather/service/WeatherServiceApplication.java | UTF-8 | 2,498 | 2.0625 | 2 | [] | no_license | package com.weather.service;
import static com.weather.service.utill.AppConstants.BASE_PACKAGE;
import java.util.Arrays;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import o... | true |
0232619e62a38052967497e7162486918e16379d | Java | jncz/algo | /src/com/learn/test/promise/Services.java | UTF-8 | 635 | 2.515625 | 3 | [] | no_license | package com.learn.test.promise;
public class Services {
public static void runAsync(Listener listener) {
asyncWorking(listener);
}
static void asyncWorking(final Listener listener) {
Runnable r = new Runnable() {
@Override
public void run() {
for (int i = 0; i < 3; i... | true |
c1c88abfe73a7534ea36d016d7f7fbf5fbfab2c0 | Java | vitaliy-zinchenko/labs | /camel/src/test/java/zinchenko/transaction/oneOrchestrated/CamelTest.java | UTF-8 | 1,824 | 2.03125 | 2 | [] | no_license | package zinchenko.transaction.oneOrchestrated;
import org.apache.camel.ConsumerTemplate;
import org.apache.camel.ProducerTemplate;
import org.hibernate.SessionFactory;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
d92090ec47ed024a72428c2a457dac866b64e37b | Java | NoNameCorps/moe | /src/main/java/edu/online/military/demo/controller/DemoController.java | UTF-8 | 876 | 2 | 2 | [] | no_license | package edu.online.military.demo.controller;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;
import edu.online.military.demo.service.DemoService;
import javax.servlet.http.Cookie;
import java.util.List;
import java.util.UUID;
public class DemoController extends Controller {
pri... | true |
70ad88307d0e7d76dee3e85973e94b4d2a49860e | Java | naabbasi/Jersey2-Cdi-Tomcat9 | /src/main/java/edu/learn/cdi/demo/ws/UserWS.java | UTF-8 | 10,376 | 2 | 2 | [
"MIT"
] | permissive | package edu.learn.cdi.demo.ws;
import com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod;
import com.nimbusds.oauth2.sdk.token.AccessToken;
import edu.learn.cdi.demo.bean.ServiceBean;
import org.glassfish.jersey.media.sse.EventOutput;
import org.glassfish.jersey.media.sse.OutboundEvent;
import org.glassfish.jerse... | true |
92bc81ba65dce5d9b0311408e27ba108740a4a08 | Java | AlbertSnow/git_workspace | /TestMemory/wandoujia/src/main/java/com/wandoujia/p4/card/a/b.java | UTF-8 | 653 | 1.625 | 2 | [] | no_license | package com.wandoujia.p4.card.a;
import android.view.View;
import android.view.View.OnClickListener;
import com.wandoujia.mvc.Action;
import com.wandoujia.p4.card.models.CardViewModel;
import com.wandoujia.p4.card.views.a;
final class b
implements View.OnClickListener
{
b(CardViewModel paramCardViewModel, a param... | true |
893d5b1aea1fec34376e302cc9c5028694c45738 | Java | spbgti/dispatcher-backend | /src/main/java/com/spbgti/dispatcherapp/Service/EventService.java | UTF-8 | 1,719 | 2.1875 | 2 | [] | no_license | package com.spbgti.dispatcherapp.Service;
import com.spbgti.dispatcherapp.Entity.Event.Command.Command;
import com.spbgti.dispatcherapp.Entity.Event.Command.Query;
import com.spbgti.dispatcherapp.Entity.Event.*;
import com.spbgti.dispatcherapp.Repository.MongoRepository;
import org.springframework.beans.factory.annota... | true |
c796b37d7307063af7f2b1b8148721537a57ed02 | Java | MarcoLunaGonzales/produccion | /src/java/com/cofar/bean/EspecificacionesTiposCotizaciones.java | UTF-8 | 1,038 | 2.046875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cofar.bean;
/**
*
* @author aquispe
*/
public class EspecificacionesTiposCotizaciones extends AbstractBean{
private EspecificacionesTecnicas especificacionesTecnicas=new EspecificacionesTecnicas();
... | true |
0bf244e54d8ad42657b2601632668404d313b619 | Java | jiadongdongdd/ScreeningTalent | /开发域/03 编码实现/trunk/screening-talent/src/main/java/com/idsmanager/commons/utils/httpclient/HttpClientPatchExecutor.java | UTF-8 | 390 | 1.875 | 2 | [] | no_license | package com.idsmanager.commons.utils.httpclient;
import org.apache.http.client.methods.RequestBuilder;
/**
* 15-3-27
*
* @author Shengzhao Li
*/
public class HttpClientPatchExecutor extends HttpClientExecutor {
public HttpClientPatchExecutor(String url) {
super(url);
}
protected RequestBuil... | true |
6a5ff104bfb482ad2336c368a25ec49bc386e9f8 | Java | cagdaskrbg/ServiceMessage | /message-service-master/src/main/java/com/cognizone/service/MessageService.java | UTF-8 | 805 | 2.5 | 2 | [] | no_license | package com.cognizone.service;
import com.cognizone.model.Message;
import com.cognizone.utils.DateUtils;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.concurrent.atomic.AtomicLong;
@Service
public class MessageService {
private final AtomicLong idGenerator = new AtomicLong... | true |
039eb8ea1da17eebf535776d0c6dd9efccc14b7d | Java | tkurtovic98/Java-Course | /Project-8/src/main/java/hr/fer/zemris/java/gui/charts/BarChartDemo.java | UTF-8 | 2,094 | 3.171875 | 3 | [] | no_license | package hr.fer.zemris.java.gui.charts;
import java.awt.BorderLayout;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;... | true |
1dd01a3540cfba790b80ba2bdff4ab3bb6bf5f08 | Java | thecocce/goldengine | /src/test/java/com/creativewidgetworks/goldparser/simplepy/py.java | UTF-8 | 3,467 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | package com.creativewidgetworks.goldparser.simplepy;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import com.creativewidgetworks.goldparser.engine.ParserException;
import com.creativewidgetworks.goldparser.parser.GOLDParser;
/**
* An interpreter for the mythical py language. Sour... | true |
eadccdec04b69bfc172dd2785ce7712208d28141 | Java | jsysoyeon/java_board4 | /src/Test.java | UTF-8 | 5,069 | 3.609375 | 4 | [] | no_license | import java.util.Scanner; // scanner를 사용하기 위함
import java.util.*; // arraylist를 사용하기 위함
class Test {
public static void main(String[] args) {
// 입력받는 함수
Scanner sc = new Scanner(System.in);
ArrayList<String> Titles = new ArrayList<>();
ArrayList<String> Bodies = new ArrayList<>();
String title;
... | true |
44c77740497a5d9a9c65df53ea7dc3416f7c2b26 | Java | skanakas/DataStructures | /src/com/srk/strings/RoughTest.java | UTF-8 | 149 | 2.046875 | 2 | [] | no_license | package com.srk.strings;
public class RoughTest {
public static void main(String[] args) {
System.out.println("aacaa".matches("a*c?aa"));
}
}
| true |
d29d390b1ef40df2355052d9aadbe9b2f22f6837 | Java | sd-2019-30238/assignment-1-nicu97o | /assignment3/src/main/java/com/bestfurnituredeals/assignment3/service/command/impl/ClientOrderCommandServiceImpl.java | UTF-8 | 4,738 | 2.203125 | 2 | [] | no_license | package com.bestfurnituredeals.assignment3.service.command.impl;
import com.bestfurnituredeals.assignment3.dao.ClientOrderDAO;
import com.bestfurnituredeals.assignment3.exception.NoProductFoundException;
import com.bestfurnituredeals.assignment3.exception.OrderNotApprovedException;
import com.bestfurnituredeals.assig... | true |
7c63fa209bbd0bf072875aa98353cff40ee9171b | Java | KochetovNicolai/fizteh-java-2013 | /src/ru/fizteh/fivt/students/asaitgalin/multifilehashmap/commands/UseCommand.java | UTF-8 | 1,395 | 2.609375 | 3 | [] | no_license | package ru.fizteh.fivt.students.asaitgalin.multifilehashmap.commands;
import ru.fizteh.fivt.students.asaitgalin.multifilehashmap.MultiFileTableState;
import ru.fizteh.fivt.students.asaitgalin.multifilehashmap.extensions.ChangesCountingTable;
import ru.fizteh.fivt.students.asaitgalin.shell.DefaultCommand;
import java.... | true |
4b88bb3ef05a49fc6caeb69a6680fe82e0f9550c | Java | eagle518/jdk-source-code | /jdk1.4.2_src/javax/swing/plaf/metal/MetalUtils.java | UTF-8 | 5,069 | 2.40625 | 2 | [] | no_license | /*
* @(#)MetalUtils.java 1.28 03/01/23
*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package javax.swing.plaf.metal;
import javax.swing.plaf.*;
import javax.swing.*;
import java.awt.*;
/**
* This is a dumping ground for rando... | true |
b27899ac340362d3fff695b522ca2d46f2841496 | Java | riiichard/Tom-and-Jerry-Sokoban | /ui/DesignPatterns/Main.java | UTF-8 | 2,163 | 3.375 | 3 | [] | no_license | package DesignPatterns;
import org.json.JSONException;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
public class Main {
public static void main(String[] args) throws MalformedURLException, IOException {
BufferedReader br = null;
try {
Strin... | true |
07868381d66b6496777f4d947e2c57726bf7f9b8 | Java | cpore/java-atmel-compiler | /PA3Tests/MinusExp.java | UTF-8 | 215 | 2.140625 | 2 | [] | no_license | /**
* Dangling else
* WB 2/8/12
*/
import meggy.Meggy;
class MinusExp {
public static void main(String[] whatever){
Meggy.setPixel( (byte)((byte)4-2), (byte)((byte)1+1), Meggy.Color.GREEN );
}
}
| true |
3b8400cdb76fdd60222892e8de4c8eaeb84ca07e | Java | galatea-associates/poc-hdfs-etc | /poc-hdfs-etc/src/test/java/org/galatea/pochdfs/domain/input/SwapDataset.java | UTF-8 | 259 | 1.65625 | 2 | [] | no_license | package org.galatea.pochdfs.domain.input;
import com.fasterxml.jackson.databind.ObjectMapper;
@FunctionalInterface
public interface SwapDataset {
public static final ObjectMapper MAPPER = new ObjectMapper();
public abstract void write();
}
| true |
21178abe6bb58119889c139c3491ac1d615e8659 | Java | advericklll/gchProject | /gchHibernate/src/main/java/pe/edu/cibertec/gchhibernate/dao/GeneroDaoImpl.java | UTF-8 | 2,186 | 2.421875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pe.edu.cibertec.gchhibernate.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persi... | true |
59b5ed3cea2e4ec66293b6537147ccdb57e8eeb2 | Java | yosinhasan/socialnetwork | /src/test/java/com/kindhope/entity/ConnectionPKTest.java | UTF-8 | 1,064 | 2.25 | 2 | [] | no_license | package com.kindhope.entity;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.math.BigInteger;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* @author Yosin_Hasan<yosinhasan@gmail.com>
* @version 0.0.1
*/
public class ConnectionPKTe... | true |
e5fa8be7c1b5ad0aef2cb34d122c9a0b0248feb5 | Java | rjpacket/SelectPhotoDemo | /selectphotoview/src/main/java/com/rjp/selectphotoview/SelectPhotoView.java | UTF-8 | 12,051 | 2.046875 | 2 | [] | no_license | package com.rjp.selectphotoview;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.util... | true |
5391f6ca8a23b4fd539e9fde4cb51e66ad8850b0 | Java | OmerBlechman/NinARow | /src/NInARowWeb/src/Game/Servlet/GameRoom/LogoutGameServlet.java | UTF-8 | 1,968 | 2.34375 | 2 | [] | no_license | package Game.Servlet.GameRoom;
import Game.Utils.ServletUtils;
import Game.Utils.SessionUtils;
import boards.Board;
import boards.BoardsManager;
import constants.Constants;
import users.UserManager;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServle... | true |
68775aac65bbb7ea0e80480097286ed711ad1863 | Java | afifn/PeriksaYook | /app/src/main/java/com/kuycoding/periksayook/ui/admin/ui/profile/AddAdminActivity.java | UTF-8 | 6,924 | 2.015625 | 2 | [] | no_license | package com.kuycoding.periksayook.ui.admin.ui.profile;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widge... | true |
4d96df5154b5376eb1dd5230f677681503188cc5 | Java | igor-smascarenhas/tlm-frescos-api | /src/main/java/com/mercadolibre/dambetan01/controller/WarehouseController.java | UTF-8 | 960 | 2.109375 | 2 | [] | no_license | package com.mercadolibre.dambetan01.controller;
import com.mercadolibre.dambetan01.dtos.WarehouseDTO;
import com.mercadolibre.dambetan01.service.crud.WarehouseService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
... | true |
cc343251dc012db29b1c8bb457bc8b6b975e19e6 | Java | hub-se/BugLoRD | /java-tokenizer/src/main/java/se/de/hu_berlin/informatik/javatokenizer/tokenizelines/SyntacticTokenizeLines.java | UTF-8 | 13,129 | 2.71875 | 3 | [] | no_license | package se.de.hu_berlin.informatik.javatokenizer.tokenizelines;
import se.de.hu_berlin.informatik.javatokenizer.tokenizer.Tokenizer;
import se.de.hu_berlin.informatik.utils.miscellaneous.ComparablePair;
import se.de.hu_berlin.informatik.utils.miscellaneous.Log;
import se.de.hu_berlin.informatik.utils.processors.Abstra... | true |
eedcdd637fc772f92e378c2b7fee5afea8b0fd32 | Java | umhaneul/java | /1학기/src/Day02/src/emirim/bmi/console/BMIInter.java | UTF-8 | 132 | 1.773438 | 2 | [] | no_license | package emirim.bmi.console;
public interface BMIInter {
public double calc(MenVO men);
public String resultPath(double bmi);
}
| true |
54e1bd64592ddc220f2cac2004361855fae7aecb | Java | wangxinghust/wx | /java/src/main/java/org/wx/problems/Solution0231.java | UTF-8 | 623 | 3.421875 | 3 | [] | no_license | package org.wx.problems;
/**
* 231. Power of Two
*/
public class Solution0231 {
/**
* 官方方法一 二进制判断,取最低位1,n&(n-1)用于将最低位1置0,n&(-n)用于取出最低位1
*/
public boolean isPowerOfTwo(int n) {
return n > 0 && (n & (n - 1)) == 0;
}
public boolean isPowerOfTwo2(int n) {
return n > 0 && (n & (... | true |
8714eb9aacc730d5b41b4bed5afc6468d196d340 | Java | GravelCZ/Game-SchoolProject | /src/cz/vesely/game/client/entity/Entity.java | UTF-8 | 240 | 2.046875 | 2 | [
"MIT"
] | permissive | package cz.vesely.game.client.entity;
import org.joml.Vector3f;
public abstract class Entity extends GameObject {
public Entity(Vector3f position, float scale, String texture) throws Exception {
super(position, scale, texture);
}
}
| true |
9e079578680b88f82ea80d951f78a11ef713010a | Java | Hyyy-git/dadi-customer | /src/main/java/com/ccicnet/gd/customer/dto/modal/CustomerHouseDto.java | UTF-8 | 6,870 | 1.859375 | 2 | [] | no_license | package com.ccicnet.gd.customer.dto.modal;
import com.ccicnet.gd.customer.dto.base.CustomerDto;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.annotation.CreatedDate;
import org.springframework... | true |
89ff78122f7e68e26912754156d19ce08bfc2036 | Java | snapwire-media/network-config-changes | /app/src/main/java/re/snapwi/orientation/di/JokeComponent.java | UTF-8 | 239 | 1.523438 | 2 | [] | no_license | package re.snapwi.orientation.di;
import dagger.Subcomponent;
import re.snapwi.orientation.ui.MainActivity;
@PerActivity @Subcomponent(modules = JokeModule.class)
public interface JokeComponent {
void inject(MainActivity activity);
}
| true |
91422a66e9a7b8de35630ffe6790c310d197c0ab | Java | siddhivinayak-sk/WebAppNB07 | /src/main/java/com/app/utils/LayoutResolver.java | UTF-8 | 368 | 1.859375 | 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.app.utils;
public class LayoutResolver {
public static String resolveLayout(String path) {
path += "/to... | true |
4b55ec59b6795c406981ef7fcd48930c62864ad1 | Java | dannysabag/DeviceIdentifier | /src/main/java/com/intango/identifier/devices/factories/AbstractDeviceFactory.java | UTF-8 | 199 | 1.992188 | 2 | [] | no_license | package com.intango.identifier.devices.factories;
import com.intango.identifier.features.Features;
public interface AbstractDeviceFactory<T> {
T create(Features features, String deviceName);
}
| true |
25becd8f2654e3165d85f50d1a07604cb2d51f8d | Java | codejoyfun/gong | /app/src/main/java/com/runwise/supply/firstpage/entity/ReceiveResponse.java | UTF-8 | 322 | 1.960938 | 2 | [] | no_license | package com.runwise.supply.firstpage.entity;
/**
* Created by libin on 2017/7/18.
*/
public class ReceiveResponse {
private String state;
public ReceiveResponse() {
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
... | true |
086a64dc8846a9e5167370c454c9a962af8a8498 | Java | WPI-CS3733-Team3/course_load_scheduler | /src/main/java/org/dselent/course_load_scheduler/client/view/impl/ManageUserViewImpl.java | UTF-8 | 2,236 | 1.9375 | 2 | [] | no_license | package org.dselent.course_load_scheduler.client.view.impl;
import org.dselent.course_load_scheduler.client.presenter.ManageUserPresenter;
import org.dselent.course_load_scheduler.client.view.ManageUserView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gw... | true |
0b4a5fcc3407f698ac9a63fbd35fcf9ba28165ff | Java | ningwebbeginner/cs61b_21_sp | /proj1/deque/MaxArrayDeque.java | UTF-8 | 793 | 3.28125 | 3 | [] | no_license | package deque;
import java.util.Comparator;
public class MaxArrayDeque<T> extends ArrayDeque<T> {
Comparator<T> comparator;
public MaxArrayDeque(Comparator<T> c) {
comparator = c;
}
public T max() {
if (this.size() == 0) {
return null;
}
T result = this.... | true |
323932539b7641faa9ed545a5ea2102beb58f028 | Java | anatom3000/GuessWhatWillHappenInThis | /src/main/java/fr/anatom3000/gwwhit/mixin/gameplay/LootManagerMixin.java | UTF-8 | 1,078 | 1.859375 | 2 | [
"MIT"
] | permissive | package fr.anatom3000.gwwhit.mixin.gameplay;
import fr.anatom3000.gwwhit.GWWHIT;
import fr.anatom3000.gwwhit.config.ConfigManager;
import net.minecraft.loot.LootManager;
import net.minecraft.loot.LootTable;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mix... | true |
c3bc19cd226869821c94c5cdd5d00b6da5185791 | Java | zhangjinde/jade | /jade-history-viewer/src/main/java/com/sos/jade/backgroundservice/view/components/filter/DetailFilter.java | UTF-8 | 1,037 | 2.40625 | 2 | [] | no_license | package com.sos.jade.backgroundservice.view.components.filter;
import java.util.List;
import com.sos.jade.backgroundservice.data.JadeHistoryDetailItem;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
/**
* This is a Vaadin filter for the details table, which is used when all date is already ... | true |
7be144362acc9dffa1bb604fc21ebcd168a9eacc | Java | LiLanQi/eclipse-workspace | /shopSystem/java/com/xt/servlet/DoDeleteOrderServlet.java | UTF-8 | 1,324 | 2.125 | 2 | [] | no_license | package com.xt.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | true |
4efdeacc48de4d54525e538281c8f3c02305f633 | Java | guinozawa/carrinho-compras-2 | /test/br/calebe/exemplos/ex02/PagamentoTest.java | UTF-8 | 1,971 | 2.59375 | 3 | [] | no_license | /**
* @author:
* Nomes: Guilherme Y. Nozawa nº de matrícula: 3103116-1
* Vinicius Landi 3102115-8
*/
package br.calebe.exemplos.ex02;
import br.calebe.exemplos.ex01.CartaoCredito;
import br.calebe.exemplos.ex01.Pagamento;
import br.calebe.exemplos.ex02.co... | true |
2d62e1a2b21fb792d6dd4e362a61a6952f163fa3 | Java | duanjiangtao1100/shardingSphere_demo | /src/test/java/com/zt/djt_shardingsphere/DjtShardingsphereApplicationTests.java | UTF-8 | 3,345 | 2.21875 | 2 | [] | no_license | package com.zt.djt_shardingsphere;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zt.djt_shardingsphere.entity.Course;
import com.zt.djt_shardingsphere.entity.Udict;
import com.zt.djt_shardingsphere.entity.User;
import com.zt.djt_shardingsphere.mapper.CourseMapper;
import com.zt.djt_sha... | true |
3c2b3046377c79aa9de2e26e1c0b505cda3789c5 | Java | dreamchenzhou/MouseRace | /src/com/dreamchen/useful/mouserace/adapter/AbComFragmentStatePageAdapter.java | UTF-8 | 976 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.dreamchen.useful.mouserace.adapter;
import java.util.ArrayList;
import java.util.List;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentStatePagerAdapter;
/**
* 改进:可以设置缓存实例的个数,不... | true |
e490bf2553dad45187410e23a4b23f2f0c3eeab0 | Java | Yayan89/designpattern | /src/main/java/observer/java8/Observer.java | UTF-8 | 95 | 2.203125 | 2 | [] | no_license | package observer.java8;
public interface Observer {
void notifySubject(String message);
}
| true |
9fa2fcab839630c594d7893ac3bf46a20933bcea | Java | zhangyingwei/miner | /src/main/java/com/zhangyingwei/miner/common/dao/ArticleDao.java | UTF-8 | 600 | 1.78125 | 2 | [] | no_license | package com.zhangyingwei.miner.common.dao;
import java.util.List;
import org.springframework.stereotype.Component;
import com.zhangyingwei.miner.annotation.MyBatisRespository;
import com.zhangyingwei.miner.common.entity.PageInfo;
import com.zhangyingwei.miner.common.entity.Article;
@MyBatisRespository
@Compo... | true |
9d9caa52f98179bedf2eb537ea6fe0a934b5bddd | Java | marwensaid/Chaos-Computer-Club-MS | /src/main/java/com/chaos/restControllers/endpoints/bo/EmailSubscriberController.java | UTF-8 | 1,491 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.chaos.restControllers.endpoints.bo;
/**
* Created by marwen on 21/12/15.
*/
import com.chaos.entities.EmailSubscriber;
import com.chaos.interfacesRepository.EmailSubscriberRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
f0ada5e103124796f3333969329bcc01e36c347d | Java | wesleylelo/ProjetoJava | /src/main/java/com/mycompany/projetojava/Quiz/ListQuestionsAnswers.java | UTF-8 | 798 | 2.375 | 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.mycompany.projetojava.Quiz;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author lelo0
*/
public class L... | true |
6944a43b8baf8b5d323eeffb8f2a67110f420840 | Java | nlejeune359/snooker_of_doom | /src/userInterface/Viewer.java | UTF-8 | 9,483 | 2.71875 | 3 | [] | no_license | /* ******************************************************
* Simulator alpha - Composants logiciels 2015.
* Copyright (C) 2015 <Binh-Minh.Bui-Xuan@ens-lyon.org>.
* GPL version>=3 <http://www.gnu.org/licenses/>.
* $Id: userInterface/Viewer.java 2015-03-09 buixuan.
* **************************************************... | true |
4eebc9d32809490be4c72aa5074c780137a679a4 | Java | nhoangthach/FindYourBike | /app/src/main/java/com/android/app/fybike/SearchFragment.java | UTF-8 | 3,660 | 2.21875 | 2 | [] | no_license | package com.android.app.fybike;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.La... | true |
6585896101b494c373983b7031eec41038cfcc8b | Java | wellengineered-us/archive-uprising-java | /src/inf-polyfills/src/main/java/com/syncprem/uprising/infrastructure/polyfills/LeakDetector.java | UTF-8 | 6,651 | 2.34375 | 2 | [
"MIT"
] | permissive | /*
Copyright ©2017-2019 SyncPrem, all rights reserved.
Distributed under the MIT license: https://opensource.org/licenses/MIT
*/
package com.syncprem.uprising.infrastructure.polyfills;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.C... | true |
5e323037012b2906a445c4c46675f7a5b765af7b | Java | mikanikos/OOP_MockExams | /Battlefield2/battlefield/test/battlefield/RobotOrdinatiPerPosizioneTest.java | UTF-8 | 2,149 | 2.921875 | 3 | [] | no_license | package battlefield;
import static org.junit.Assert.*;
import org.junit.*;
public class RobotOrdinatiPerPosizioneTest {
// (vedi DOMANDA 5)
// scrivere dei test-case minimali per il metodo
// Battlefield.getRobotOrdinatiPerPosizione()
private Battlefield field;
private Robot r1, r2, r3;
@Before
public void... | true |
30f1a567b32c9a8e23e599b2719c65ee8a20300e | Java | ApexTone/JavaLearningResources | /ideaProjects/GenericJava/Stack/src/Stack.java | UTF-8 | 761 | 3.765625 | 4 | [] | no_license | public class Stack {
private Node top;
public Stack(){
}
public Stack(char data) {
this.top = new Node(data);
this.top.setNextNode(null);
}
public boolean isEmpty(){
return top == null;
}
public char peek(){
if(!isEmpty()){
return top.getDat... | true |
25405ef0ac53056b55e088ca77e5818c5f52a3e4 | Java | kkrumlian/jhipster-app | /src/test/java/com/openclinica/ui/web/rest/StudyResourceTest.java | UTF-8 | 4,812 | 2.0625 | 2 | [] | no_license | package com.openclinica.ui.web.rest;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org... | true |
54c0bcec7ad6620324dd6bfbd380ed93ae438020 | Java | jdavidagudelo/Proyecto-Integrador-II | /GestionProyectoS/src/test/ParticipantexproyectoTest.java | UTF-8 | 1,292 | 1.726563 | 2 | [] | no_license | package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Tr... | true |
1d9bc2731873808e60283c5f288c4dbe3c19f595 | Java | christianestrella/Football-Manager | /src/InterfazAmistoso.java | WINDOWS-1258 | 8,953 | 2.296875 | 2 | [] | no_license | public class InterfazAmistoso extends javax.swing.JFrame {
/**
* Creates new form InterfazAmistoso
*/
public InterfazAmistoso() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this cod... | true |
1c03ba9acc5c3414a0e360e8e310c7f63697d382 | Java | vikramIH/Java-Exercise2 | /src/com/stackroute/exetwo/StringReverse.java | UTF-8 | 449 | 2.984375 | 3 | [] | no_license | package com.stackroute.exetwo;
import java.util.Arrays;
public class StringReverse {
public String func ( String str ) {
String reverse = new StringBuffer(str).reverse().toString();
return reverse;
}
public boolean func1( String str ) {
String reverse = new StringBuffer(str).reverse().toStri... | true |
c698e3c5266d605f801936642123663540d3d525 | Java | pankajrana737/metallica-trade-service1 | /src/main/java/com/pankaj/metilica/metallicatradeservice/MetallicaTradeServiceApplication.java | UTF-8 | 440 | 1.695313 | 2 | [] | no_license | package com.pankaj.metilica.metallicatradeservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan
public class MetallicaTradeServiceApplication {
... | true |
9b26ba970985116b6b6cd88619046e09e3e329d1 | Java | Harrying/JavaBasics | /java基础语法/src/com/imooc/VarDemo.java | UTF-8 | 221 | 2.609375 | 3 | [] | no_license | package com.imooc;
public class VarDemo {
public static void main(String[] args) {
// 定义两个整形变量
int x=1,y=2;//定义并初始化
System.out.println("x="+x);
System.out.println("y="+y);
}
}
| true |
4509a8f990a9ab6ad21ad2742639b3c099742ab4 | Java | MaximCheb/runawfe-free-devstudio | /plugins/ru.runa.gpd/src/ru/runa/gpd/ui/dialog/MessageVariableDialog.java | UTF-8 | 5,780 | 2.046875 | 2 | [] | no_license | package ru.runa.gpd.ui.dialog;
import com.google.common.base.Strings;
import java.util.List;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.s... | true |
a03d0cf77367c73e9947e118d92319616f45551b | Java | Portg/transaction-reconciliation | /core/src/main/java/com/mario/sample/reconciliation/filter/CSVProcessingWorkflow.java | UTF-8 | 1,359 | 2.34375 | 2 | [] | no_license | package com.mario.sample.reconciliation.filter;
import com.mario.sample.reconciliation.config.ConfigProperties;
import com.mario.sample.reconciliation.exception.ReconciliationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.Collections;
import java.util.List;
i... | true |
9d27d2736873d8d52637bb52434bbe84043eb85a | Java | Mjh910101/Notepad | /app/src/main/java/com/zmyh/r/box/UserObj.java | UTF-8 | 4,844 | 1.726563 | 2 | [] | no_license | package com.zmyh.r.box;
public class UserObj {
public final static String V = "__v";
public final static String M_MOBILE = "m_mobile";
public final static String M_PASSWORD = "m_password";
public final static String ID = "_id";
public final static String CREATE_AT = "createAt";
public final st... | true |
dc43a8732a552d08e5bd2725c3448be268d4a922 | Java | chwthewke/chwthewke-protobuf.mojo | /src/main/java/net/chwthewke/maven/protobuf/protoc/ProtocExecutable.java | UTF-8 | 360 | 1.609375 | 2 | [] | no_license | package net.chwthewke.maven.protobuf.protoc;
import java.nio.file.Path;
import net.chwthewke.maven.protobuf.services.BuildInput;
import org.apache.maven.plugin.MojoExecutionException;
public interface ProtocExecutable extends BuildInput {
@Override
boolean collectChanges( ) throws MojoExecutionE... | true |
709e427ca23e43cd06372781ac7895ac2a585ea6 | Java | bestfor115/accumulation | /AccumulationConfiguration/src/com/accumulation/lib/configuration/core/View.java | GB18030 | 6,597 | 1.71875 | 2 | [] | no_license | //
// ļ JavaTM Architecture for XML Binding (JAXB) ʵ v2.2.7 ɵ
// <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// ±Դģʽʱ, ԴļĶʧ
// ʱ: 2013.08.15 ʱ 09:42:14 AM CST
//
package com.accumulation.lib.configuration.core;
import java.io.IOException;
import java.io.Serializable;
impor... | true |
ce897f1cc1c3c5bc93e9a04af80cd5a63c94ccba | Java | posixrfc/JavaEE | /normal/BookStore_EG09/src/com/atguigu/bookstore/servlet/client/RegistServlet.java | UTF-8 | 1,596 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.atguigu.bookstore.servlet.client;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.atguigu.bookstore.bean.User;
import com.atguigu.boo... | true |
2e52eade6e9ce69b7a573f2cee61d1f8074cda6f | Java | Martoon-00/lesson10 | /src/ru/ifmo/Weather/WeatherUpdater.java | UTF-8 | 2,872 | 2.265625 | 2 | [] | no_license | package ru.ifmo.Weather;
import android.app.IntentService;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
/**
* Created with IntelliJ IDEA.
* User: asus
* Da... | true |
de2d63f2d33b2ec03c492dbde19ea2ed428c7d6f | Java | GregIzzo/Capstone-Project | /app/src/main/java/com/example/android/tagsalenow/data/FriendsViewModel.java | UTF-8 | 4,279 | 2.3125 | 2 | [] | no_license | package com.example.android.tagsalenow.data;
import android.arch.core.util.Function;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MediatorLiveData;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.Transformations;
import android.arch.lifecycle.ViewModel;
import android.sup... | true |
625e1d4464c627060807ebef68b5a3e56e899bbb | Java | DonaldY/coding2017 | /group01/1814014897/zhouhui/src/week08/queue/QueueWithTwoStacks.java | UTF-8 | 767 | 3.890625 | 4 | [] | no_license | package week08.queue;
import java.util.Stack;
/**
* 用两个栈来实现一个队列
*
* @author Hui Zhou
*
* @param <E>
*/
public class QueueWithTwoStacks<E> {
private Stack<E> stack1;
private Stack<E> stack2;
public QueueWithTwoStacks() {
stack1 = new Stack<E>();
stack2 = new Stack<E>();
}
public boolean isEmpty() {
... | true |
eafd2b4f0f1bdafb3e90c4b26b3e40869b8f6d89 | Java | ajc212-plt/Java-and-JSP | /src/main/java/Collection/CollectionBean.java | UHC | 518 | 2.5625 | 3 | [] | no_license | package Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class CollectionBean {
// private List<String> addressList; List = property ϵ Ʈ
//private Set<String> addressList; // Set = property ϵ Ʈ ߺ ϳ ϱ
private Map addressList;
public void setAddressList(Map addressList) ... | true |