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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c4809b9b244efe6d7a77c33c44e941797d96cb9 | Java | Greisvandir/JavaRush-1 | /com/javarush/test/level11/lesson11/home03/Solution.java | UTF-8 | 634 | 2.671875 | 3 | [] | no_license | package com.javarush.test.level11.lesson11.home03;
/**
* JavaRush.ru
* Level 11, Lesson 11, Home 03
* <p/>
* Написать четыре класса Fish, Animal, Ape, Human. Унаследовать животных от рыб, обезьян от животных и человека от
* обезьяны.
* <p/>
* Date: 25.04.13
* @author Sergey Kandalintsev
*/
public class Soluti... | true |
f794f87fe4dc591644dfce46c6d83a56f4b69bf2 | Java | blackiesong/DataStructure | /src/ds/printList.java | GB18030 | 501 | 3.28125 | 3 | [] | no_license | package ds;
import java.util.Iterator;
//ݹIJʹ
public class printList {
//ʹõݹ
public static <Anytype> void printList(Iterator<Anytype> itr) {
if (!itr.hasNext()) {
return;
}
System.out.println(itr.next());
printList(itr);
}
//õݹӡһķ
public static <Anytype> void printList1(Iterator<Anytype>... | true |
1c41eda09ac4db74e6092d5542b8370c4624202e | Java | Rucha-patil/AssignmentFullStack | /JavaProgramms/Examples demo/Project.java | UTF-8 | 2,341 | 3.46875 | 3 | [] | no_license | import java.util.Scanner;
class Employee
{
int id;
String name;
Address add = new Address();
double salary;
Scanner obj=new Scanner(System.in);
static int count=0,count2=0;
void read()
{
if(count==0){
System.out.println("Employee Manager Record");
}
else{
System.out.println("Employee programer... | true |
ff3404be57a02d4d6bb5ee947d1a6a0a5d155ff0 | Java | gggfffeeeppp/src | /AutoIncarement.java | UTF-8 | 4,569 | 3.4375 | 3 | [] | no_license | /**
* FileName: AutoIncarement
* Author: 蔡志勇
* Date: 2020/5/29 20:26
* Description: 自增长
* History:
*/
import java.util.Arrays;
import java.util.Scanner;
/**
* 〈一句话功能简述〉<br>
* 〈自增长〉
*
* @author 蔡志勇
* @version 1.0.0
* @date 2020/5/29
*/
public class AutoIncarement {
public static void main(String... | true |
c3cfc18d4e42acfaf850332cfadda3b74b7ce90e | Java | kavyaVarma421/newProgramms | /FunctionalPrograms/src/com/bridgelabz/core/WindChill.java | UTF-8 | 705 | 3.46875 | 3 | [] | no_license | package com.bridgelabz.core;
import java.util.Scanner;
public class WindChill
{
static void windChil(int t, int v)
{
double w = 35.7 + 0.6215 * t + (0.425 * t - 35.75) * Math.pow(v, 0.16);
System.out.println("solution is " +w);
}
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
tr... | true |
b9c391691235bc3f6ed24df87f82e8e14f9602f9 | Java | sfuhrm/radiorecorder | /src/main/java/de/sfuhrm/radiorecorder/consumer/StreamPlayConsumer.java | UTF-8 | 3,941 | 2.203125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* Copyright 2017 Stephan Fuhrmann.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
5978053a9e5852fe41e6bb4d2e22329119278ded | Java | Minnaldo/JAVA | /HW제출하기전/단순2진암호코드_조민.java | UTF-8 | 2,257 | 2.984375 | 3 | [] | no_license | package SWEA_D3;
import java.util.ArrayList;
import java.util.Scanner;
public class SWEA_D3_1240_단순2진암호코드 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int T=sc.nextInt();
String arr_n[]=new String[10];
arr_n[0]="0001101";
arr_n[1]="0011001";
... | true |
ba00e7937149238bf130f9828c6696eff61cf4d8 | Java | BogdanKl/HomeWork | /gui/Listeners.java | UTF-8 | 102 | 2.015625 | 2 | [] | no_license | package gui2;
interface Listeners {
void finished(boolean success);
void begining();
} | true |
3a4a75037a9640f0316f7de94576a4c190abf5e1 | Java | cotemaxime/DCTV-android | /mobile/src/main/java/cote/maxime/app/dctv/persistence/DCTVDatabaseHelper.java | UTF-8 | 3,200 | 2.421875 | 2 | [] | no_license | package cote.maxime.app.dctv.persistence;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.text.TextUtils;
import android.util.Log;
import java.util.ArrayList;
import java.util.Arrays;
import ... | true |
813b827926de77ecf767db44ccfb0e79fab9932d | Java | andyTsing/irurueta-geometry | /src/main/java/com/irurueta/geometry/CoordinatesType.java | UTF-8 | 1,009 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2012 Alberto Irurueta Carro (alberto@irurueta.com)
*
* 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
*
* Unles... | true |
a3f2047db5a5d1e725a3ee12fbad99df2619bcae | Java | wmh200/hhyx_mall | /hhyx_seckill/src/main/java/hust/wang/hhyx/config/MyRabbitConfig.java | UTF-8 | 4,113 | 2.546875 | 3 | [] | no_license | package hust.wang.hhyx.config;
import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.c... | true |
9cb846cac3c401f39882688cebffc01df2cb3da6 | Java | b0443301/Pratice_java | /CH07_02/src/main.java | BIG5 | 384 | 2.84375 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
public class main {
public class Student {
String id = "";
String Sname = "";
int ChineseScore = 0;
// for(int )
int EnglishScore = 0;
int BccScore = 0;
int GetAvg() {
int Avg = (ChineseScore + EnglishScore + BccScore) / 3;
return Avg;
}
}
public static void main(S... | true |
5e8b33d99400bb99c37364f8f4e1df66f4ec06cd | Java | Ms-Shahid/AddressBookSystem | /src/main/java/com/bridgelabz/AddressBookSystem/ContactDetails.java | UTF-8 | 1,488 | 3.171875 | 3 | [] | no_license | package com.bridgelabz.AddressBookSystem;
public class ContactDetails {
private String firstName, lastName, address;
private int zipCode, phoneNumber;
private String email;
public ContactDetails(String firstName, String lastName, String address, int zipCode, int phoneNumber,
String email) {
this.firstName =... | true |
9e72ee6730b0931a98093a18f4e0331c24088ce9 | Java | Khader9Jber/Clinic | /src/clinic/FlexBox.java | UTF-8 | 1,091 | 2.859375 | 3 | [] | no_license | package clinic;
import com.dukescript.layouts.jfxflexbox.FlexBoxPane;
import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;
public class FlexBox extends FlexBoxPane {
@Override
public void resize(double width, double height) {
super.resize(width, height); //To change body of gene... | true |
27e93c1647e97d070eb5571970a0e0a88f531db5 | Java | dbousfira/TalendFantoir | /Fantoir/src/main/java/Simplon/Fantoir/services/Interfaces/PushFileService.java | UTF-8 | 437 | 1.992188 | 2 | [] | no_license | /**
*
* Interface des méthodes récupération des référentiels adresse et intégration des données
*
* @author Mathieu Simon
* @version 1.0
* @since 2020-12-07
*
**/
package main.java.Simplon.Fantoir.services.Interfaces;
import java.io.IOException;
import org.springframework.web.bind.annotation.RestController;
@Rest... | true |
bdf887bd4d3cddf5269e654178577cf2ed6677e3 | Java | janghyeonwoo/Spring-Swagger | /src/main/java/com/project/demo/dto/MemberDto.java | UTF-8 | 490 | 1.9375 | 2 | [] | no_license | package com.project.demo.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.mapstruct.Mapper;
import org.springframework.web.bind.annotation.GetMapping;
@Setter
@Getter
@ToString
public class MemberDto {
@ApiModelProperty(name = "id"... | true |
3e75d628bfbd31a37addfb610da50019a732580a | Java | BaseMax/PopularAndroidSource | /bazaar8.apk-decompiled/sources/c/e/a/b/h/b/O.java | UTF-8 | 3,527 | 1.695313 | 2 | [] | no_license | package c.e.a.b.h.b;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import c.e.a.b.d.d.r;
i... | true |
356dd8136151739ab34c87e9ca1b07da8f9e6980 | Java | navikt/veilarbperson | /src/main/java/no/nav/veilarbperson/service/UnleashService.java | UTF-8 | 494 | 1.882813 | 2 | [
"MIT"
] | permissive | package no.nav.veilarbperson.service;
import lombok.RequiredArgsConstructor;
import no.nav.common.featuretoggle.UnleashClient;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor
public class UnleashService {
private static final String UNLEASH_POAO_TILGANG_ENABLED = "veilarbperson.poao-... | true |
7e39c9bb8d4e65ccf3e9117d36a9afe10412f060 | Java | TryGennai/gennai | /gungnir/core/src/main/java/org/gennai/gungnir/topology/processor/MongoPersistProcessor.java | UTF-8 | 8,554 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2013-2014 Recruit Technologies Co., Ltd. and contributors
* (see CONTRIBUTORS.md)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. A copy of the
* License is distributed with this work in the LICENSE.md file. Y... | true |
4829486535eeab012a9adb308ba9a04d4c025007 | Java | CarlosFelipeArantes/cryptoWallet | /src/main/java/helper/converter/CsvConverter.java | UTF-8 | 2,808 | 2.625 | 3 | [] | no_license | package helper.converter;
import model.dto.coincap_api.AssetCsv;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.apache.commons.io.input.BOMInputStream;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logg... | true |
620637440b8c348abd10139cdcf2e9ffa0483645 | Java | gmartinezgil/Recomendare-Website | /src/mx/com/recomendare/web/users/ViewUserProfilesBaseOnCountryLocation.java | UTF-8 | 820 | 1.585938 | 2 | [] | no_license | /**
*
*/
package mx.com.recomendare.web.users;
import mx.com.recomendare.web.session.AuthenticatedPage;
import org.apache.wicket.PageParameters;
import org.apache.wicket.model.IModel;
/**
* @author jerry
*
*/
public final class ViewUserProfilesBaseOnCountryLocation extends AuthenticatedPage {
... | true |
563bcd9cb83cb86abe3d425dd48cb27204f2eec3 | Java | chiliec/lucky-tickets | /src/test/java/info/babin/luckyTickets/builders/TicketBuilderTest.java | UTF-8 | 2,403 | 2.90625 | 3 | [
"MIT"
] | permissive | package info.babin.luckyTickets.builders;
import info.babin.luckyTickets.EvenLuckyImpl;
import info.babin.luckyTickets.Lucky;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Набор тестов для класса {@link TicketBuilder}
*/
public class TicketBuilderTest {
/**
* Про... | true |
9fdea0eb6246ca67c6af232c4b82a2056f1d6fe2 | Java | radtek/Dalian | /syrk/jfxt/com/founder/spsxt/service/SptglService.java | UTF-8 | 3,353 | 1.617188 | 2 | [] | no_license | package com.founder.spsxt.service;
import java.io.BufferedInputStream;
import java.util.List;
import java.util.Map;
import com.founder.framework.annotation.MethodAnnotation;
import com.founder.framework.annotation.TypeAnnotation;
import com.founder.framework.annotation.MethodAnnotation.logType;
import com.fo... | true |
0f764f60d3f205f2900acea3cf844b5bf152ede2 | Java | mengtest/home3 | /core/server/project/shine/src/main/java/com/home/shine/tool/OperateNumTool.java | UTF-8 | 1,346 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package com.home.shine.tool;
import com.home.shine.ctrl.Ctrl;
import com.home.shine.support.collection.LongQueue;
import com.home.shine.timer.ITimeEntity;
import com.home.shine.utils.TimeUtils;
/** 操作次数超时工具 */
public class OperateNumTool
{
private ITimeEntity _timeEntity;
private LongQueue _queue;
private boolea... | true |
061e6fac6c96a193e37a2cb62dbf7a2b0adfb95b | Java | madhudfprojects/LeadCampusapp | /app/src/main/java/com/leadcampusapp/GridAdapter.java | UTF-8 | 4,454 | 2.234375 | 2 | [] | no_license | package com.leadcampusapp;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;... | true |
2fbd3766c2d20c12aa7faa0b118d803b682f2401 | Java | HewlettPackard/SimpliVity-Citrix-VCenter-Plugin | /HTML5/dev/simplivity-citrixplugin-service/src/main/java/com/vmware/vim25/ArrayOfVirtualMachineScsiDiskDeviceInfo.java | UTF-8 | 1,306 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.06.12 at 09:... | true |
bff6d27481e4e36ebacb73a6d235affbedbba890 | Java | Predictia/euporias-api | /server/src/main/java/eu/euporias/api/config/DataSourceConfig.java | UTF-8 | 1,365 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package eu.euporias.api.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.zaxxer.hikari.HikariConfig;
import com.zaxx... | true |
492b7084813d14f1237cef06ecdfe30fb8b6ab7d | Java | juhye0000/onlythree | /ZzupZzup/src/main/java/com/onlythree/controller/MemberController.java | UTF-8 | 8,979 | 2.140625 | 2 | [] | no_license | package com.onlythree.controller;
import java.io.File;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.Ran... | true |
dcce954c7f9803426ff8d3010351672f6624bd2b | Java | eduardclatinici/Payword | /Server/src/Banca.java | UTF-8 | 640 | 2.578125 | 3 | [] | no_license | import java.io.*;
import java.net.*;
import java.util.*;
import javafx.util.*;
public class Banca {
private static final int CLIENT_PORT = 9997;
public static void main(String[] args) throws IOException {
ServerSocket serverSocket = new ServerSocket(CLIENT_PORT);
List<String> payments = new ... | true |
ee043f78ad40383d6c7b31d9dd568af7e135eed8 | Java | yujiantong/Shopping | /Shopping/src/main/java/com/web/controller/back/BusinessMsgController.java | UTF-8 | 12,962 | 1.835938 | 2 | [] | no_license | package com.web.controller.back;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifie... | true |
189efac3e002f00823394d46133daf91f4157ef4 | Java | gzhinla/vegetableangfruit | /src/main/java/cn/gok/backstageManagement/dao/implement/ImplementOrdersDao.java | GB18030 | 4,874 | 2.453125 | 2 | [] | no_license | package cn.gok.backstageManagement.dao.implement;
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 java.util.Map;
import cn.gok.backstageManagement.dao.OrderDao;
import cn.gok.backstageMana... | true |
d9ac855944adaa1aefc91587a35a0d2ab5a1ac80 | Java | tranhamduong/SA_UIT_BackendService | /src/main/java/vn/uit/edu/sa/connectDB/MongoSparkHelper.java | UTF-8 | 5,728 | 2.140625 | 2 | [] | no_license | package vn.uit.edu.sa.connectDB;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;
impo... | true |
24470bb03950f42a2056933ec04fd5ea9b853ec9 | Java | carlos-sancho-ramirez/lib-java-collections | /src/main/java/sword/collections/ReusableMapEntry.java | UTF-8 | 348 | 2.640625 | 3 | [
"MIT"
] | permissive | package sword.collections;
final class ReusableMapEntry<K, V> implements MapEntry<K, V> {
private K _key;
private V _value;
@Override
public K key() {
return _key;
}
@Override
public V value() {
return _value;
}
void set(K key, V value) {
_key = key;
... | true |
2d220ceb270c7a194570d6fd7cf44526a51d349a | Java | DestroySera/Javaschool-coding | /prj/src/week02/week02day4/animaltest.java | UTF-8 | 218 | 2.5625 | 3 | [] | no_license | package week02.week02day4;
public class animaltest {
public static void main(String[] args) {
// animal a = new animal();
// a.output();
animal b = new animal("코끼리", 30);
b.output();
}
}
| true |
bf63f5d433ffb92b34632b10bd126a9dd49eab29 | Java | thereiszhaoyi/notebook | /app/src/main/java/com/spicy/food/record/WriteActivity.java | UTF-8 | 2,747 | 2.390625 | 2 | [] | no_license | package com.spicy.food.record;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import com.spicy.food.data.Diary;
import com.spicy.food.data.D... | true |
1b2b8f0acb6d79dc41b2b9a2055459ff31133759 | Java | csmSimona/SorkWord | /app/src/main/java/com/mingrisoft/fragment/ReviewFragment.java | UTF-8 | 5,590 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.mingrisoft.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.iflyte... | true |
217e525f2673a0163d75269b1985b44c50bcd62c | Java | zyjItWork/ItWork | /src/main/java/com/work/serviceImpl/JobServiceImpl.java | UTF-8 | 2,713 | 2.03125 | 2 | [] | no_license | package com.work.serviceImpl;
import com.work.Entity.JobInf;
import com.work.service.JobService;
import com.work.Repository.JobRepository;
import com.work.Entity.JobConserve;
import com.work.service.ConserveService;
import com.work.Repository.ConserveRepository;
import org.springframework.beans.factory.annotation.Auto... | true |
0f7c4992fb3794c44c92575d74f2fef96188ff3d | Java | saumyad/jersey-api-example | /src/main/java/com/jking31cs/jerseyexample/webservices/UserWebService.java | UTF-8 | 1,814 | 2.890625 | 3 | [
"MIT"
] | permissive | package com.jking31cs.jerseyexample.webservices;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.DELETE;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
impor... | true |
d7a7bcf0ee928446924665b1019af43085a60498 | Java | 15001167619/update_education | /admin/src/main/java/com/etycx/common/annotation/Security.java | UTF-8 | 296 | 1.835938 | 2 | [] | no_license | package com.etycx.common.annotation;
import java.lang.annotation.*;
@Inherited
@Documented
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Security {
long validTime() default 1000L;
String appKey();
String interfaceName();
}
| true |
367de38c2bde5bacee964b240fcf48c4d0c485e4 | Java | ulno/ulnoiot | /examples/obsolete/simulators/led01_java/src/at/fhooe/mcm/hba/datastructure/Led.java | UTF-8 | 438 | 2.328125 | 2 | [
"MIT"
] | permissive | package at.fhooe.mcm.hba.datastructure;
import javax.swing.JCheckBox;
public class Led extends JCheckBox {
private static final long serialVersionUID = 1L;
private static final String LED_TOPIC = "simulation/led%s/set";
private int mNr;
public Led(int nr) {
this.mNr = nr;
this.setText("Led" + mNr);
... | true |
4f04119191370ab148d12a44f08a429a255fac32 | Java | bi2one/SRS_CS_Project | /src/com/cs/srs/model/data/FactoryItem.java | UTF-8 | 963 | 2.46875 | 2 | [] | no_license | package com.cs.srs.model.data;
import java.util.HashMap;
public class FactoryItem extends SRSData {
private String count;
private String items_id;
public FactoryItem(int id, int count, int items_id) {
super(id);
setCount(count);
setItemsId(items_id);
}
public FactoryItem(int count, int items_... | true |
f999bf7e029282d1a8f970a1def52eac3f0509d1 | Java | oldmasterchu/hk-stock-quote-extractor | /JavaIO/src/com/omb/window/PortfolioSettingsDialog.java | UTF-8 | 11,822 | 2.09375 | 2 | [] | no_license | package com.omb.window;
import java.awt.BorderLayout;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import jav... | true |
4e2c79824a373984dd2bde15a284de0a56826082 | Java | IdrisDose/EzTeams | /src/main/java/net/idrisdev/mc/ezteams/commands/teams/admin/AdminRemoveFromTeam.java | UTF-8 | 2,304 | 2.1875 | 2 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | package net.idrisdev.mc.ezteams.commands.teams.admin;
import net.idrisdev.mc.ezteams.EzTeams;
import net.idrisdev.mc.ezteams.core.Core;
import net.idrisdev.mc.ezteams.core.entities.Member;
import net.idrisdev.mc.ezteams.core.entities.Team;
import net.idrisdev.mc.ezteams.utils.Permissions;
import net.idrisdev.mc.ezteam... | true |
223a25a864b4baa36966164187232d033d8a46d4 | Java | dameeta/credit-suisse | /myJavaApp/src/exceptionDemos/throwDemo.java | UTF-8 | 193 | 1.679688 | 2 | [] | no_license | package exceptionDemos;
public class throwDemo {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
throw new Exception("test");
}
}
| true |
9c203f442aa4e8f5c3ec369bb177e2bda658fb50 | Java | Siricee/SpringBoot-Home | /springboot-demo-file/qiniu-cloud/src/main/java/cn/van/qiniu/web/controller/QiNiuCloudController.java | UTF-8 | 3,134 | 2.609375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package cn.van.qiniu.web.controller;
import cn.van.qiniu.config.QiNiuCloudConfiguration;
import cn.van.qiniu.utils.QiNiuCloudUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
im... | true |
b4f0ef788e052a30e263cdc6936a167c994b1e15 | Java | GIP-RECIA/esco-grouper-ui | /ext/esup-commons/src/main/java/org/esupportail/commons/web/beans/TransientTreeModelBase.java | UTF-8 | 2,052 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2009 GIP RECIA http://www.recia.fr
* @Author (C) 2009 GIP RECIA <contact@recia.fr>
* @Contributor (C) 2009 SOPRA http://www.sopragroup.com/
* @Contributor (C) 2011 Pierre Legay <pierre.legay@recia.fr>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | true |
bf2347ff77520df2ca4ffb996d18149da75600c3 | Java | prowide/prowide-iso20022 | /model-seev-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/RelatedSettlementInstruction1.java | UTF-8 | 2,510 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang... | true |
74387f2a4071607ae4dbeacc56014387ea4dd4ba | Java | FlyingSparrow/Java | /HeadFirst Design Pattern/CompoundPattern/src/com/sparrow/quack/decorator/QuackCounter.java | UTF-8 | 919 | 2.84375 | 3 | [] | no_license | package com.sparrow.quack.decorator;
import com.sparrow.quack.Quackable;
import com.sparrow.quack.observer.Observer;
import com.sparrow.quack.observer.impl.Observable;
/**
* @author wangjianchun
* @create 2018/8/7
*/
public class QuackCounter implements Quackable{
private static int numberOfQuacks;
privat... | true |
f8d828e035f5f50cb72f7b7145f9b337c9aa0653 | Java | e-orz/CM-Well | /server/cmwell-data-tools/src/main/java/cmwell/tools/data/ingester/Example.java | UTF-8 | 2,014 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package cmwell.tools.data.ingester;
import cmwell.tools.data.ingester.japi.IngesterUtils;
import java.io.ByteArrayInputStream;
/**
* Example of using calling Java API of the {@link cmwell.tools.data.ingester.Ingester Ingester} code
*
* @see cmwell.tools.data.ingester.Ingester
* @see IngesterUtils
*/
public clas... | true |
3be6936b3a8a6aa2b40c5cb9d6b03d20fa48ab91 | Java | hyperledger/besu | /consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftRoundFactory.java | UTF-8 | 4,985 | 1.859375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | true |
d5e7c144800ff4867365b73bdddcfbae063905cd | Java | easylifegoal/lead-to-offer | /丑数/Solution.java | UTF-8 | 643 | 3.171875 | 3 | [] | no_license | public class Solution {
public int GetUglyNumber_Solution(int index) {
if (index == 0) return 0;
int[] ugly = new int[index];
ugly[0] = 1;
int index2 = 1, index3 = 1, index5 = 1;
int factor2 = 2, factor3 = 3, factor5 = 5;
for (int i = 1; i < index; i++) {
... | true |
dcd966a92a7054f46a4a9175ad8c1ea2039f446a | Java | captainmoha/competitive_programming | /hackerrank/30days/1.typecheck/typecheck.java | UTF-8 | 808 | 3.546875 | 4 | [] | no_license | import java.io.*;
import java.util.*;
public class typecheck {
public static String checkType(String inp) {
int i;
double f;
try {
f = Double.parseDouble(inp);
i = (int) f;
if (i == f) {
return "Primitive : int";
}
return "Primitive : double";
}
catch(NumberFormatException e) {
... | true |
202558c1b8c658ac343326e330b828d1ac1c34e2 | Java | hiapk123/tests | /sms/src/com/uestc/bean/Discount.java | UTF-8 | 2,427 | 2.125 | 2 | [] | no_license | package com.uestc.bean;
/**
* Discount entity. @author MyEclipse Persistence Tools
*/
public class Discount implements java.io.Serializable {
// Fields
private Integer DId;
private Goods goods;
private Coupons coupons;
private Integer DParentId;
private String DName;
private String DStartDate;
private Str... | true |
7700adb6348cbf40359a5f462780d50df9f50018 | Java | Stanislav077/ALevel | /hw6/People/EcoFarmer.java | UTF-8 | 338 | 2.484375 | 2 | [] | no_license | package lection6.hw6.People;
/**
* Created by Ivan Isaev on 27.02.2018.
*/
public class EcoFarmer extends Farmer {
EcoFarmer(int height, int weight, String attachment, int squareLand) {
super(height, weight, attachment, squareLand);
}
@Override
public void profileFarmer() {
super.pro... | true |
7d8c4083b121be75953ab6fba523961c526b7950 | Java | kcanida/Textbook-Exchange | /test/pages/BookCreatePage.java | UTF-8 | 739 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package pages;
import org.fluentlenium.core.FluentPage;
import org.openqa.selenium.WebDriver;
public class BookCreatePage extends FluentPage {
private String url;
public BookCreatePage (WebDriver webDriver, int port) {
super(webDriver);
this.url = "http://localhost:" + port + "/books/create";
}
... | true |
c40695314484f4097d130145be1a52e99ff0058a | Java | hjsw1/spring-security4 | /src/main/java/com/stelmah/example/springsecurity4/dao/base/AbstractDao.java | UTF-8 | 1,698 | 2.546875 | 3 | [] | no_license | package com.stelmah.example.springsecurity4.dao.base;
import org.hibernate.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.List;
@Repository
public class Abst... | true |
2b4614632eeeddd55aaf07cf09c8e8a8f608d80e | Java | CodeJin19/Baekjoon | /구현/2564.java | UTF-8 | 1,972 | 3.203125 | 3 | [] | no_license | import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(reader.readLine());
int lx = Integer.parseInt(st.nextToken())... | true |
85b27c047c2a74800c8d3620415d0e9e1762776a | Java | EduardoEbbers/ControlePontoAcesso | /live/src/main/java/com/dio/live/model/BancoHora.java | UTF-8 | 1,484 | 1.960938 | 2 | [] | no_license | package com.dio.live.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.tomcat.jni.Local;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
@Getter
@Setter
@NoArgsConstructor
@AllArgsCons... | true |
22b4b8eb512e1bcf0b65c18c8c811787e853f022 | Java | designreuse/chpl-api | /chpl/chpl-service/src/test/java/gov/healthit/chpl/manager/impl/CertifiedProductSearchManagerTest.java | UTF-8 | 6,044 | 2.09375 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | package gov.healthit.chpl.manager.impl;
import gov.healthit.chpl.domain.CertifiedProductSearchResult;
import gov.healthit.chpl.domain.SearchRequest;
import gov.healthit.chpl.domain.SearchResponse;
import gov.healthit.chpl.manager.CertifiedProductSearchManager;
import junit.framework.TestCase;
import org.jun... | true |
ead115a05eaacb36b8402fdf2f5f2a7679422b71 | Java | xrhou/elastic-demo | /src/test/java/com/hxr/threaddeeping/WaitNotifyDemo.java | UTF-8 | 1,736 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | package com.hxr.threaddeeping;
import java.util.concurrent.TimeUnit;
/**
* wait和notify理解
*
* @author houxiurong
* @date 2019-09-05
*/
public class WaitNotifyDemo {
final static Object lock = new Object();
public static void main(String[] args) {
new Thread(new Runnable() {
@Override
... | true |
6b1d03fcc1d691efa5b42071c0e881f6885a0619 | Java | rmmaw/AndroidMaze | /AndroidMazeApp/src/main/java/ui/AMazeActivity.java | UTF-8 | 6,227 | 2.40625 | 2 | [] | no_license | package williameskay.cs301.cs.wm.edu.amazebywilliameskayandreillymaw.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.... | true |
aaa35468ed7f41a1833691286f0a398430b865e3 | Java | easycodebox/easycode | /easycode-common/src/main/java/com/easycodebox/common/cache/CacheOperation.java | UTF-8 | 190 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.easycodebox.common.cache;
/**
* 建议改用spring提供的cache功能
* @author WangXiaoJin
*
*/
@Deprecated
public enum CacheOperation {
NOP, CACHING, FLUSH_CACHE
}
| true |
a2d43c13f03d5f373fcef716c208e6962a73e456 | Java | Venky548/SpringBoot-loginDemo | /src/main/java/com/venky/login/serviceImpl/UserServiceImpl.java | UTF-8 | 725 | 2.421875 | 2 | [] | no_license | package com.venky.login.serviceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.venky.login.daoIface.UserdaoIface;
import com.venky.login.model.User;
import com.venky.login.serviceIface.UserServiceIface;
@Service
public class UserServiceIm... | true |
8d27a05fcf217d3df40cb08831711921f17f2aea | Java | CrazyWolf2014/VehicleBus | /cn/sharesdk/framework/utils/C0058e.java | UTF-8 | 3,929 | 2.015625 | 2 | [] | no_license | package cn.sharesdk.framework.utils;
import android.util.Log;
import com.tencent.mm.sdk.platformtools.FilePathGenerator;
import org.xmlpull.v1.XmlPullParser;
/* renamed from: cn.sharesdk.framework.utils.e */
public class C0058e {
protected static C0056a f107a;
protected static C0057b f108b;
/* renamed fr... | true |
4e96d72602ac69f93308669991d842cee791d388 | Java | quocdotri/garbage | /src/main/java/SampleObjectForPool.java | UTF-8 | 632 | 3.140625 | 3 | [] | no_license | public class SampleObjectForPool {
// very costly for object creation
public SampleObjectForPool () {
System.out.println("start Initiating object. thread = " + Thread.currentThread());
for (int i = 0; i <= 1000000000; i++ ) {
int j =i ;
j++;
}
System.out... | true |
bf2d1841b54c5018665dafe0be75ec7ffca38d3b | Java | ChenJiWei95/MAKE_PROGRAM | /src/com/awt/domain/BasiDoMain.java | UTF-8 | 6,568 | 2.34375 | 2 | [
"MIT",
"BSD-2-Clause"
] | permissive | package com.awt.domain;
import java.util.ArrayList;
import java.util.List;
import com.awt.util.Arithmetic;
import com.awt.util.Util;
/**
* <b>任何组件<b>
* @author 威
* <br>2018年4月10日 下午11:14:16
*/
public class BasiDoMain extends DoMain{
protected String layout;
public String getLayout() {
return layout;
}
pu... | true |
ab72c38ccbadcbb441de6755061cc5ccd04748ba | Java | jsilval/marvel-api | /app/src/main/java/com/jsilval/marvel/features/detail/model/Detail.java | UTF-8 | 101 | 1.53125 | 2 | [] | no_license | package com.jsilval.marvel.features.detail.model;
public class Detail {
private String title;
}
| true |
40914ec317645295b04cc845c45404bd99863e31 | Java | snower0428/AndroidDemos | /app/src/main/java/com/lh/demos/animation/AnimationClickTestActivity.java | UTF-8 | 3,575 | 2.40625 | 2 | [] | no_license | package com.lh.demos.animation;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.widget.Button;
import android... | true |
8cb0c94a3b92f8f7f3f6ed48bb0bc2a18a01cce5 | Java | gourav-goutam/task_management_system_lld | /src/main/java/tasksystem/mode/FileMode.java | UTF-8 | 896 | 2.828125 | 3 | [] | no_license | package tasksystem.mode;
import tasksystem.Commands.Command;
import java.io.*;
public class FileMode extends Mode{
String fileName;
public FileMode(String fileName) {
this.fileName = fileName;
}
@Override
public void process() {
final File file = new File(fileName);
fi... | true |
9a9e93814ecac759e2dc9b13093225790d1d7fa9 | Java | BBN-E/text-open | /src/java/serif/src/main/java/com/bbn/serif/io/FromFileListSentenceLoader.java | UTF-8 | 794 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.bbn.serif.io;
import com.bbn.bue.common.files.FileUtils;
import com.bbn.bue.common.parameters.Parameters;
import com.bbn.serif.theories.DocTheory;
import com.bbn.serif.theories.SentenceTheory;
import com.bbn.serif.theories.WithDocTheory;
import com.google.common.base.Function;
import java.io.IOException;... | true |
100bea8876efbf2272f753c60c138799a74d5d28 | Java | ligangty/indy | /subsys/keycloak/src/main/java/org/commonjava/indy/subsys/keycloak/SecurityConstraintProvider.java | UTF-8 | 3,796 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | true |
fd1717e4d80f1602926905a36aafefdd1f434e6a | Java | tuliocl/P3---Inicial | /PaymentSchedule.java | UTF-8 | 4,042 | 3.625 | 4 | [] | no_license | import java.util.ArrayList;
public class PaymentSchedule
{
ArrayList<String> methods = new ArrayList<String>();//lista que contem todos os metodos
PaymentSchedule()//construtor com as 3 primeiras agendar
{
String aux = "Semanal 1 FRIDAY";
this.methods.add(aux);
aux = "Mensal ... | true |
2a9f433bdd920da54712d7778a0677ef3538f63d | Java | succabs/superheroclub | /supersankariclub/sankari/src/supersankarit/Heikkous.java | ISO-8859-1 | 5,711 | 2.75 | 3 | [] | no_license | package supersankarit;
import static kanta.PuhNro.rand;
import fi.jyu.mit.ohj2.*;
import java.io.*;
/** Luokka heikkoutta varten.
* @author Arttu
* @version 27.3.2017
*
*/
public class Heikkous implements Cloneable {
private int tunnusNro;
private int jasenNro;
private String heikkous="";
p... | true |
4da741dc525b0549172e474ab27c1ee179148cfd | Java | HaoranJ/FinancialNewsIETool | /NLP/src/edu/nyu/cs/nlp/RelationEntry.java | UTF-8 | 1,890 | 3.015625 | 3 | [] | no_license | package edu.nyu.cs.nlp;
import java.util.regex.*;
//the entry for entity A and entity B with their relation
public class RelationEntry {
private String entity_A;
private String entity_B;
private String relation;
public RelationEntry(String a, String b, String r){
this.entity_A = a;
thi... | true |
6966bb95e919aaca9740ae48c124b2ee576a8804 | Java | kalpeshrawal96/OnlineAttenadnceSystem | /src/main/java/teacher/controllers/CreateLectureHome.java | UTF-8 | 7,510 | 2.21875 | 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 teacher.controllers;
import entities.Lecture;
import entities.Student;
import entities.Teacher;
import org.hibernate.Session;
... | true |
f6c588a201f962445981cca10f316f37226d3a84 | Java | devnem0y/RemakeDerick | /core/src/com/devnem0y/utils/PathRes.java | UTF-8 | 1,455 | 1.828125 | 2 | [] | no_license | package com.devnem0y.utils;
public class PathRes {
public static final String LOGO = "image/logo.png";
public static final String ATLAS_CONTROLLER = "image/atlas/controller.atlas";
public static final String ATLAS_BUTTONS = "image/atlas/buttons.atlas";
public static final String BACKGROUND = "image/... | true |
f1c2eefa0ecc6d599aff81828928558cf9c78d1f | Java | enamqa15/Java-Code | /src/com/a/myfirstclass/java/ExampleClassCow.java | UTF-8 | 509 | 3.40625 | 3 | [] | no_license | package com.a.myfirstclass.java;
public class ExampleClassCow {
String name ="Jam";
String color = "white";
public void name(){
System.out.println("my cow name is ");
}
public void color(){
System.out.println("my cow color is ");
}
public static void main(String[] args) {
Ex... | true |
0e7fd3f03bdcf01793e7cccb23db272b4da387bb | Java | Jdanniel/ElavonAndroid | /src/com/artefacto/microformas/NewShipmentSearchSuppliesActivity.java | UTF-8 | 13,562 | 1.796875 | 2 | [] | no_license | package com.artefacto.microformas;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import a... | true |
2cda2675865b94b5ca31e4b74f7a630ed3a4cae8 | Java | biljanaandjelic/DSL_Project | /FormValidation.tests/src/formValidation/tests/LengthTest.java | UTF-8 | 1,354 | 2.109375 | 2 | [] | no_license | /**
*/
package formValidation.tests;
import formValidation.FormValidationFactory;
import formValidation.Length;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Length</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class LengthTest extends Attr... | true |
c6e0413e61eca3400a9ca72d67e0c745197cfa32 | Java | joeyvanlierop/Boids | /src/test/model/BoidTest.java | UTF-8 | 3,288 | 2.921875 | 3 | [
"MIT"
] | permissive | package model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
class BoidTest {
Boid boid;
@BeforeEach
void runBefore() {
boid = new Boid.BoidB... | true |
a2cbe036a97f368cc21e1e480dbeb240cb7db1c2 | Java | pdphuoc7072/C0721G1-PhanDaiPhuoc | /module2/src/bai_lam_them_3/util/regex/exception/NotFoundElectricBillException.java | UTF-8 | 199 | 1.914063 | 2 | [] | no_license | package bai_lam_them_3.util.regex.exception;
public class NotFoundElectricBillException extends Exception {
public NotFoundElectricBillException (String string) {
super(string);
}
}
| true |
1674506d7ba9f3d615bb32971700db4b1bd1f4cf | Java | AnastasiaSakhno/my_serialization | /src/main/java/com/ask/serialization/streams/StreamConstants.java | UTF-8 | 1,474 | 1.773438 | 2 | [] | no_license | package com.ask.serialization.streams;
public class StreamConstants {
public static final short SHORT_LENGTH = 2;
public static final short INT_LENGTH = 4;
public static final short LONG_LENGTH = 8;
public static final short FLOAT_LENGTH = 4;
public static final short DOUBLE_LENGTH = 8;
public... | true |
24a65f9691399bb414b549e61bf89e0ed0cdf39b | Java | JojOatXGME/jigsaw-gradle-plugin | /src/main/java/de/xgme/jojo/jigsaw_gradle_plugin/extension/task/capabilities/Activatable.java | UTF-8 | 254 | 1.578125 | 2 | [] | no_license | package de.xgme.jojo.jigsaw_gradle_plugin.extension.task.capabilities;
import de.xgme.jojo.jigsaw_gradle_plugin.extension.task._property_marker.Input;
public interface Activatable {
@Input
boolean isEnabled();
void setEnabled(boolean enabled);
}
| true |
ddadb3cb6a5dc4fbbbd82d49dc6ccbab88b266a9 | Java | altaras0v/SamWebInternship | /src/main/java/com/samsolutions/myapp/service/impl/LessonDAOServiceImpl.java | UTF-8 | 3,282 | 2.484375 | 2 | [] | no_license | package com.samsolutions.myapp.service.impl;
import com.samsolutions.myapp.dto.LessonDTO;
import com.samsolutions.myapp.model.Lesson;
import com.samsolutions.myapp.repository.LessonRepository;
import com.samsolutions.myapp.service.api.LessonDAOService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import or... | true |
ef223bc328e7fe685cc37768f9fe739b5c96567a | Java | xiaxiayige/FlutterDemo | /flutter_base/android/app/src/main/kotlin/com/example/flutter_app/meetingboard/WBFileOption.java | UTF-8 | 1,377 | 2.34375 | 2 | [] | no_license | package com.example.flutter_app.meetingboard;
import org.apache.poi.poifs.filesystem.DocumentInputStream;
import java.io.OutputStream;
public class WBFileOption {
public int WindowWidth;
public int WindowHeight;
public int ValidWidth;
public int ValidHeight;
public WBLineOption LineOption;
pu... | true |
907cd7a762a6ed0e6c169458cfd117f81fffd12d | Java | am1234kolt/HashMap | /tests/OwnInterfaceTest.java | UTF-8 | 3,111 | 2.625 | 3 | [] | no_license | import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.HashSet;
import java.util.Set;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
/**
* Created by koltsova on 11/02/2018.
*/
publ... | true |
416801bc033b8ebed489ba4ccb6bc89bb0f6a0cb | Java | jeongeun-cloud/spring-study | /jsp_work/jdbcTest/src/jdbcTest/DAOTest6.java | UTF-8 | 1,147 | 2.90625 | 3 | [] | no_license | package jdbcTest;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class DAOTest6 {
public static void main(String[] args) {
List<User> list = selectAllUsers();
System.out.println(list);
}
static List<User> selectAllUsers() {
List<User> list = new ArrayList<User>();
Connect... | true |
5435c6441feb05f02124d4c268c1eb64ddf5d152 | Java | kuali/rice | /rice-framework/krad-sampleapp/web/src/main/java/org/kuali/rice/krad/demo/uif/library/DataTableRestServiceTestImpl.java | UTF-8 | 2,374 | 2.265625 | 2 | [
"Artistic-1.0",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"EPL-1.0",
"CPL-1.0",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"LGPL-3.0-only",
"ECL-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-jdom",
"LicenseRef-scancode-freemarker",
"LicenseRef-scancode-unk... | permissive | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requ... | true |
b4ebaf80fe5034a188588e37f5c2909b57e84861 | Java | DanielMBurke/JavaExercises | /15-unit-testing-solutions/src/test/java/com/techelevator/SmartPhoneTest.java | UTF-8 | 437 | 2.515625 | 3 | [] | no_license | package com.techelevator;
import org.junit.Assert;
import org.junit.Test;
public class SmartPhoneTest {
@Test
public void smartPhoneInitializedCorrectly() {
SmartPhone sp = new SmartPhone("216-555-1212", "SquirrelNet");
Assert.assertEquals("216-555-1212", sp.getPhoneNumber());
Assert.assertEquals("SquirrelN... | true |
5ec0e1b34ec2c93370d1249900e3440a1031d339 | Java | FRC79/CK_19 | /src/org/usfirst/frc/team79/robot/commands/teleop/commands/PlowDown.java | UTF-8 | 887 | 2.515625 | 3 | [] | no_license | package org.usfirst.frc.team79.robot.commands.teleop.commands;
import org.usfirst.frc.team79.robot.subsystems.FiringMechanism;
import org.usfirst.frc.team79.robot.subsystems.PlowMechanism;
import org.usfirst.frc.team79.robot.utilities.State;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
public class PlowDown im... | true |
b276d527177bbd467fab751d10be4094a777ad8f | Java | armhold/gwtquickstarter | /src/com/gwtquickstarter/server/ActivationProduct.java | UTF-8 | 392 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.gwtquickstarter.server;
/**
* A Product that has no downloadable content, but represents a purchasable "activation",
* e.g. the right to create an account.
*
* @author Copyright (c) 2011 George Armhold
*/
public class ActivationProduct extends Product
{
public ActivationProduct(String id, String ... | true |
b573913ea952366a771f757e6813556f51374cad | Java | CloudOnboarding/OnboardingProcess | /src/pageObjects/Setup_E_Pin_Page.java | UTF-8 | 1,405 | 2.015625 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import utility.Log;
import utility.psUtility;
public class Setup_E_Pin_Page extends BaseClass {
private static WebElement element;
public Setup_E_Pin_Page(WebDriver driver) {
super(driver);
}
public static WebEl... | true |
45ae5d8c1f34d9fea07cc081d10f246b0ef0ea0a | Java | KaasSnuiver/DogeBolt | /src/main/java/com/kaassnuvier/dogebolt/objects/enums/SQLQueries.java | UTF-8 | 687 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.kaassnuvier.dogebolt.objects.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
public enum SQLQueries {
CREATE_TABLE_QUERY("CREATE TABLE IF NOT EXISTS `dogebolt`.`player_data`(`uuid` VARCHAR(32) NOT NULL, `games_won` INT NOT NULL, `kills_made` INT NOT NULL, PRIMARY KE... | true |
22b8d9eb3cec81a1222a7fee0cd9de954b82803f | Java | 1Will/Work2 | /demo1/demo/dao/src/demo/dao/BaseDao.java | UTF-8 | 43,491 | 2.03125 | 2 | [] | no_license | package demo.dao;
import org.apache.commons.lang.ArrayUtils;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.jdbc.Work;
import org.hibernate.transform.ResultTransformer;
import org.hibernate.transform.Transformers;
i... | true |
94f6b352a158a0a2c8c108e21eefea968a3eaf6f | Java | Lawrence-M-Reynolds/JobApplication_WarrickshireAnalytics | /src/main/java/com/reynolds/lawrence/bean/CsvRow.java | UTF-8 | 909 | 2.703125 | 3 | [] | no_license | package com.reynolds.lawrence.bean;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Represents a row of data from a parsed CSV file.
* @author lawrencereynolds
*
*/
public class CsvRow {
private int identifier = -1;
private boolean decision = false;
pri... | true |
26d73ec0b3aa0ead686768fd3d1bbd389e5d72d4 | Java | nickahujaaol/DataStructures | /src/main/java/com/practice/ds/techiedelight/dfs/ArrivalAndDepartureTimes.java | UTF-8 | 2,108 | 3.5625 | 4 | [] | no_license | package com.practice.ds.techiedelight.dfs;
import com.learning.ds.GraphNode;
import java.util.ArrayList;
import java.util.List;
//https://www.techiedelight.com/arrival-departure-time-vertices-dfs/
public class ArrivalAndDepartureTimes {
public static void main(String[] args) {
List<GraphNode<Integer>> no... | true |
9d3875ce35fce8483b5da1658ee21f2a50896b6f | Java | angcyo/DuDuHome | /app/src/main/java/com/dudu/voice/semantic/chain/DefaultChain.java | UTF-8 | 824 | 2.171875 | 2 | [] | no_license | package com.dudu.voice.semantic.chain;
import com.dudu.android.launcher.LauncherApplication;
import com.dudu.android.launcher.utils.Constants;
import com.dudu.android.launcher.utils.NetworkUtils;
import com.dudu.voice.semantic.bean.SemanticBean;
/**
* Created by 赵圣琪 on 2015/10/30.
*/
public class DefaultC... | true |
c9e2cd5974c9f8ef1acf20590e25e1f361ee1f71 | Java | abdsaidam95/fodella-driver | /app/src/main/java/com/foodella/driver/features/main/more/MoreViewModel.java | UTF-8 | 1,824 | 1.984375 | 2 | [] | no_license | package com.foodella.driver.features.main.more;
import androidx.lifecycle.MutableLiveData;
import com.foodella.driver.R;
import com.foodella.driver.base.BaseViewModel;
import com.foodella.driver.features.main.nav.Menu;
import com.foodella.driver.features.main.nav.MenuAdapter;
import com.foodella.driver.utils.AppActio... | true |
9a38ad6d5c7d725f73b0999e6572fd28eaf80894 | Java | ncaminh/addressbook-level2 | /src/seedu/addressbook/data/person/PostalCode.java | UTF-8 | 258 | 2.28125 | 2 | [
"MIT"
] | permissive | package seedu.addressbook.data.person;
public class PostalCode {
private static String postalCode;
public PostalCode(String value) {
this.postalCode = value;
}
public String getPostalCode() {
return this.postalCode;
}
}
| true |
45101f5a0912627221836570ead771b56a0dce5b | Java | kapaseker/Cavaliers | /app/src/main/java/com/bfdelivery/cavaliers/database/location/LocationDataService.java | UTF-8 | 1,164 | 2.140625 | 2 | [] | no_license | package com.bfdelivery.cavaliers.database.location;
import android.content.Context;
import com.bfdelivery.cavaliers.database.DBDataEntry;
import com.bfdelivery.cavaliers.database.base.BaseDataService;
import org.greenrobot.greendao.AbstractDao;
/**
* 定位数据服务信息
*/
public class LocationDataService extends BaseDataS... | true |