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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
19c577f795f0b835f0c91217eac5016c7b7feb52 | Java | nckmml/ANXGallery | /src/ANXGallery/sources/com/miui/gallery/projection/ProjectionVideoController.java | UTF-8 | 7,892 | 1.992188 | 2 | [] | no_license | package com.miui.gallery.projection;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.SeekBar... | true |
f22100a91c87dea467fe4b30ba0d3a09f244a588 | Java | C41337/Minecraft-Brawl | /src/main/java/org/infernogames/mb/Managers/AbilityManager.java | UTF-8 | 889 | 2.90625 | 3 | [
"MIT"
] | permissive | package org.infernogames.mb.Managers;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.infernogames.mb.Abilities.MBAbility;
/**
*
* @author Paul, Breezeyboy
*
*/
public class AbilityManager {
private static List<MBAbility> abilities = new ArrayList<MBAbility>();
... | true |
f25fb2bdaa9caac4aad3b5a6727053b6bb2f8481 | Java | Caerwent/SoukiAdventure | /app/src/main/java/com/souki/game/adventure/dialogs/GameDialogStep.java | UTF-8 | 612 | 2.671875 | 3 | [
"Beerware"
] | permissive | package com.souki.game.adventure.dialogs;
import java.util.ArrayList;
/**
* Created by vincent on 15/03/2017.
*/
public class GameDialogStep {
public String speaker;
public ArrayList<String> phrases;
public GameDialogStep clone() {
GameDialogStep clone = new GameDialogStep();
if (speak... | true |
aa0e8a1098e834b2b8decb845e0f440a0061ba8b | Java | umlstudy/com.qualityeclipse.genealogy | /src/com/qualityeclipse/genealogy/commands/CreateNoteCommand.java | UTF-8 | 863 | 2.9375 | 3 | [] | no_license | package com.qualityeclipse.genealogy.commands;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;
import com.qualityeclipse.genealogy.model.*;
/**
* Command to add a note to the genealogy graph
*/
public class CreateNoteCommand extends Command
{
private final NoteContainer cont... | true |
eed6b74aca7817765de04bf5fc7dd9e9ceee7216 | Java | OmarCardona03/LoginRest | /app/src/main/java/com/appdenuncia/entidades/Denuncia.java | UTF-8 | 3,873 | 2.1875 | 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.appdenuncia.entidades;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author omar
*/
public class Den... | true |
1c2e5ad0df60925f1feac6f8e9b812945dc33a96 | Java | AlexSamoylov/Production_system | /src/org/dnu/samoylov/model/PsEnumLabel.java | UTF-8 | 871 | 2.421875 | 2 | [] | no_license | package org.dnu.samoylov.model;
import org.dnu.samoylov.util.PsLabelHelper;
import java.util.Arrays;
import java.util.List;
public class PsEnumLabel {
private String prefix;
private final List<String> names;
public PsEnumLabel(String prefix, String... names) {
this.names = Arrays.asList(names);... | true |
84649b43bec98a658ab711095c611b65050c405e | Java | jonananas/tdd-the-database | /src/test/java/se/jonananas/tdd/PersonRepositoryTest.java | UTF-8 | 535 | 2.4375 | 2 | [] | no_license | package se.jonananas.tdd;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public abstract class PersonRepositoryTest {
@Test
public void shouldStorePerson() throws Exception {
Person person = Person.create();
repo().store(person);
}
@Test
public void shouldFindPerson() thr... | true |
f554bb846a0980482b23a7e64f54e9ff90e30a96 | Java | yz1201/itravel | /src/test/java/cn/dbdj1201/itravel/dao/impl/RouteDaoImplTest.java | UTF-8 | 513 | 1.976563 | 2 | [] | no_license | package cn.dbdj1201.itravel.dao.impl;
import cn.dbdj1201.itravel.domain.Route;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author tyz1201
* @datetime 2020-02-24 15:27
**/
public class RouteDaoImplTest {
@Test
public void findByPage() {
// RouteDaoImpl dao = new RouteDaoImpl();
... | true |
64e283a815c210cf1200ea6f24cde85026e3c994 | Java | jeremyDevwwm/hibernateTesting | /src/main/java/com/amiltone/hibernatetesting/entity/Person.java | UTF-8 | 875 | 2.328125 | 2 | [] | no_license | package com.amiltone.hibernatetesting.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import javax.persistence.Id;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Enti... | true |
8b75bb2207a65a0b845e87afb11453ff7a9b31a3 | Java | aberu78/UdemyCodingExcercise | /Section4/Section4CodingExercise/src/DecimalComparator.java | UTF-8 | 397 | 3.203125 | 3 | [] | no_license | public class DecimalComparator {
public static boolean areEqualByThreeDecimalPlaces(double decimal1, double decimal2) {
if (decimal1 == 0 && decimal2 == 0)
return true;
decimal1 = Math.round(decimal1 * 10000) / 10.0;
decimal2 = Math.round(decimal2 * 10000) / 10.0;
return... | true |
890e036d2b6b640a4a5545b7388ad1b007b03f79 | Java | anyedilong/hcplatform | /src/main/java/com/java/moudle/system/dto/LoginInfoDto.java | UTF-8 | 2,790 | 2.03125 | 2 | [] | no_license | package com.java.moudle.system.dto;
import java.io.Serializable;
import com.java.moudle.system.domain.SysRole;
import com.java.until.DictUtil;
public class LoginInfoDto implements Serializable {
private static final long serialVersionUID = 1L;
private String id;//主键
private String username;
private String pass... | true |
94d9a0ef99f7e61e61878c8b4d76c3bb5f8fb5f7 | Java | moshangguang/spring-boot-study | /spring-boot-helloworld/src/main/java/com/springboot/controller/HelloController.java | UTF-8 | 692 | 2.34375 | 2 | [] | no_license | package com.springboot.controller;
import com.springboot.entity.Worker;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.web.bind.annotation.*;
@RestController
public class HelloController {
Counter helloCounter;
public HelloControll... | true |
6df9b6c75d0cd0b0e153a6d3c780bfcba6a90cca | Java | miaoooooopasi/myblog | /src/main/java/com/leon/myblog/enity/Point.java | UTF-8 | 501 | 2.0625 | 2 | [] | no_license | /**
* Copyright 2020 bejson.com
*/
package com.leon.myblog.enity;
/**
* Auto-generated: 2020-04-21 11:47:48
*
* @author bejson.com (i@bejson.com)
* @website http://www.bejson.com/java2pojo/
*/
public class Point {
private String x;
private String y;
public String getX() {
return x;
... | true |
0aca1e284ea37210b31ab587855e77b2bfdbc4f8 | Java | vsidarovich/ramp-up | /hadoop/1/src/main/java/com/epam/bigdata/Fourth.java | UTF-8 | 191 | 1.96875 | 2 | [] | no_license | package com.epam.bigdata;
/**
* Created by cloudera on 2/11/16.
*/
public class Fourth {
public static void main(String ...args){
System.out.println("Fourth is done");
}
}
| true |
6f1675f8a8708ada4da784cd5e56d7b86ced1b8a | Java | qq850405/TestMySQL | /app/src/main/java/my/inclassi/testmysql/ViewFinishedStoreActivity.java | UTF-8 | 4,215 | 2.140625 | 2 | [] | no_license | package my.inclassi.testmysql;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
i... | true |
db21fb5f6b8dd9dc51d2bc5af209f27625ddb95a | Java | locoabuelito/microservicios | /service-shopping/src/main/java/academy/digitallab/shopping/service/InvoiceServiceImpl.java | UTF-8 | 3,117 | 2.328125 | 2 | [] | no_license | package academy.digitallab.shopping.service;
import academy.digitallab.shopping.client.CustomerClient;
import academy.digitallab.shopping.client.ProductsClient;
import academy.digitallab.shopping.entity.Invoice;
import academy.digitallab.shopping.entity.InvoiceItem;
import academy.digitallab.shopping.model.Customer;
i... | true |
12cc8b15c77f454f83371b7d40a64f1fedc09a05 | Java | chacanthus/ymt2-neo | /decompiled_java/com/badlogic/gdx/utils/XmlWriter.java | UTF-8 | 4,201 | 2.640625 | 3 | [] | no_license | // 도박중독 예방 캠페인
// 당신 곁에 우리가 있어요!
// 감당하기 힘든 어려움을 혼자 견디고 계신가요?
// 무엇을 어떻게 해야 할지 막막한가요?
// 당신의 이야기를 듣고 도움을 줄 수 있는 정보를 찾아 드립니다.
// - 한국도박문제관리센터 (국번없이 1336, 24시간)
// - KL중독관리센터 (전화상담 080-7575-535/545)
// - 사행산업통합감독위원회 불법사행산업감시신고센터 (전화상담 1588-0112)
// - 불법도박 등 범죄수익 신고 (지역번호 + 1301)
package com.badlogic.gdx.utils;
import... | true |
f3ccf85d5d754a76e10c801bbfcf24aaff96eeb7 | Java | kanghansung/About_Android-Studies-Projects- | /Project_SPOT/SPOT_AREA_CATEGORY/app/src/main/java/org/techtown/spot_area_category/FragmentTitleMenuBar.java | UTF-8 | 2,454 | 2.203125 | 2 | [] | no_license | package org.techtown.spot_area_category;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.a... | true |
f6a8441ebc0cd0b67d216a8452d896f4ac8929bb | Java | Venkipullela/java_practice | /src/HotelManagementSystem/Level.java | UTF-8 | 243 | 2.421875 | 2 | [] | no_license | package HotelManagementSystem;
import java.util.ArrayList;
import java.util.List;
public class Level {
Integer lvl;
List<Room> rooms = new ArrayList<>();
public Integer addRooms(RoomType roomType) {
return null;
}
}
| true |
9e8c211fb802320b7eb34abf7fdfe12ecf7bda60 | Java | alexguo1980/bachelor | /bachelor_ip/bachelor-auth/src/main/java/org/bachelor/auth/service/impl/AuthRoleUserServiceImpl.java | UTF-8 | 10,238 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package org.bachelor.auth.service.impl;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.bachelor.auth.dao.IAuthRoleUserDao;
impo... | true |
2e11eff0fa1b3a668f5edccec120b20474b40cb0 | Java | svanacker/cen-info-web | /Bot/src/java/main/org/cen/cup/cup2011/device/gripper2011/Gripper2011Result.java | UTF-8 | 315 | 1.804688 | 2 | [] | no_license | package org.cen.cup.cup2011.device.gripper2011;
import org.cen.robot.device.RobotDeviceResult;
import org.cen.robot.device.request.IRobotDeviceRequest;
public abstract class Gripper2011Result extends RobotDeviceResult {
public Gripper2011Result(IRobotDeviceRequest request) {
super(request);
}
}
| true |
aa8523b3052510ae0271e59c5bbf4da9b60b6c2b | Java | MDeiml/LD39 | /core/src/com/mdeiml/ld39/LD39Game.java | UTF-8 | 4,749 | 2.375 | 2 | [] | no_license | package com.mdeiml.ld39;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.... | true |
0e662d7cfbcbf28c73a58b63a4411b27e4140e43 | Java | billydevInGitHub/33808 | /33808Exp190/src/main/java/billydev/Test.java | UTF-8 | 533 | 2.109375 | 2 | [] | no_license | package billydev;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Hooks;
import reactor.core.scheduler.Schedulers;
import reactor.tools.agent.ReactorDebugAgent;
public class Test {
public static void main(String[] args) {
ReactorDebugAgent.init();
Flux.range(0, 1)
... | true |
a4b9987bf70f200accf48bfcb4fb781920c10cbf | Java | fatihaBenalia/orphelinat | /src/java/bean/Mere.java | UTF-8 | 1,673 | 2.125 | 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 bean;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.... | true |
1963ac582cdffb9dac9212decf1db1e6121f406f | Java | HugoNikanor/cardboardGathering | /src/gamePieces/CardCollection.java | UTF-8 | 11,720 | 2.703125 | 3 | [] | no_license | package gamePieces;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import chat.ChatStream;
import chat.MessageInfo;
import database.CardChooser;
import database.JSONCardReader;... | true |
0da0e3414690a93db56136b10585a8e228783b6f | Java | shashikiranrp/load_ini | /src/main/java/org/kelvin/load_config/App.java | UTF-8 | 440 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package org.kelvin.load_config;
/**
* @author <a href="mailto:shasrp@yahoo-inc.com">Shashikiran</a>
*/
public class App
{
public static void main(String[] args)
{
final String filePath = 0 == args.length ? "/Users/shasrp/test.ini" : args[0];
AppConfig config = AppConfig.load(filePath, false,... | true |
7083cca78908b56a110eda4408741b27edd789f3 | Java | lancelee98/AttendanceSystem | /src/main/java/cn/stylefeng/guns/modular/classroom/controller/ClassroomController.java | UTF-8 | 2,892 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package cn.stylefeng.guns.modular.classroom.controller;
import cn.stylefeng.roses.core.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework... | true |
6ca9512810e08b0b879f74f124a36842c67000fd | Java | adafruit/Bluefruit_LE_Connect_Android | /app/src/main/java/com/adafruit/bluefruit/le/connect/app/UartInterfaceActivity.java | UTF-8 | 6,070 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.adafruit.bluefruit.le.connect.app;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothGattService;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.adafruit... | true |
458da4f60266b83d385ed8209f17e57eabb4b03a | Java | flbrino/pentaho-platform-plugin-reporting | /src/org/pentaho/reporting/platform/plugin/CacheManagerEndpoint.java | UTF-8 | 2,006 | 1.632813 | 2 | [] | no_license | /*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License, version 2 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU General Public License along with this
* program; if not, you can obtain a copy... | true |
499e572a459bc9997c2aa1faed37dfe789d640dd | Java | skyhuge/code4j | /src/main/java/io/pretty/spring/PropertyBindingPostProcessor.java | UTF-8 | 7,119 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package io.pretty.spring;
import org.springframework.beans.BeanInstantiationException;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;
import org.... | true |
9032ffce23ad09787b624ae1c5500e965dc84633 | Java | anhtuan2461996/C1219H1_Dinh_Vu_Anh_Tuan | /module2/src/B1_NgonNguJava/ThucHanh/ThucHanh_SoNguyenToBe100.java | UTF-8 | 397 | 3.015625 | 3 | [] | no_license | package B1_NgonNguJava.ThucHanh;
public class ThucHanh_SoNguyenToBe100 {
public static void main(String[] args) {
for (int i = 2;i<100;i++){
int dem =0;
for (int j=2;j<i;j++){
if (i%j==0){
dem+=1;
}
}
if (de... | true |
c094138b0ea24287ffba7b3da91edeb187b2b075 | Java | Tom9Polaris/June22 | /app/src/main/java/com/example/administrator/myapplication001/MainActivity.java | UTF-8 | 2,130 | 2.296875 | 2 | [] | no_license | package com.example.administrator.myapplication001;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
... | true |
e3fbb5a270f16d140b0b69a8304449c92a7bad09 | Java | alizhan1/Java_HW3 | /src/main/java/space/harbour/java/hw3/MyHashMap.java | UTF-8 | 3,355 | 3.421875 | 3 | [] | no_license | package space.harbour.java.hw3;
import space.harbour.java.hw3.Element;
import java.util.*;
public class MyHashMap<K, V> {
private final Integer bucket_size = 32;
private List<Element> bucket[] = new ArrayList[bucket_size];
public MyHashMap() {
for (int i = 0; i < bucket_size; i++) {
... | true |
a6e0e00c425e5b3b9496dbea324b621fdd1dcaaa | Java | onlyas/mybatis-generator-demo | /src/main/java/com/onlyas/app/config/LocalDateFormatConfig.java | UTF-8 | 1,153 | 2.25 | 2 | [
"MIT"
] | permissive | package com.onlyas.app.config;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.fasterxml.jackson.datatype.j... | true |
0b6e7aec3ab951dbb845af3b868c6f4cd9f151c1 | Java | moutainhigh/chongdao_app_user_client | /src/main/java/com/chongdao/client/entitys/coupon/CpnUser.java | UTF-8 | 2,056 | 1.9375 | 2 | [] | no_license | package com.chongdao.client.entitys.coupon;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author fenglong
* @date 2019-06-18 15:43... | true |
796f0d193319004fff9d5f92bc2bfd2104684e7d | Java | davidotb91/apiDeportes | /Desarrollo/sportManagerTest/Seguimiento/src/Entity/SeguimientoTesis.java | UTF-8 | 3,429 | 1.914063 | 2 | [] | no_license | package Entity;
// Generated 16/01/2015 11:00:47 PM by Hibernate Tools 3.4.0.CR1
import java.util.Date;
import javax.persistence.Transient;
import Entity.Docente;
import Entity.Tema;
/**
* Seguimiento generated by hbm2java
*/
public class SeguimientoTesis implements java.io.Serializable {
private int segId;
p... | true |
0704a3c10e53d07d7c78e46f112815f586cb2504 | Java | nlflint/CSC143 | /Assignment8/src/Tokenizer/Tokens/OpenParenToken.java | UTF-8 | 120 | 1.945313 | 2 | [] | no_license | package Tokenizer.Tokens;
/**
* Reprsents the open parentheses: "("
*/
public class OpenParenToken extends Token {
}
| true |
eeee09478d87fd7aded3b4c74d64cc9526da1ca3 | Java | Kwongmingwei/FarisCare | /app/src/main/java/com/example/fariscare/RegisterPage.java | UTF-8 | 6,112 | 2.1875 | 2 | [] | no_license | package com.example.fariscare;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.Toast;
import androi... | true |
3c058e8fc68a88d0de95d89627ce28d4a643bf6b | Java | Lihuanghe/CustomizeDNSHttpClient | /src/main/java/com/zyzx/CustomizeClientConnectionOperator.java | UTF-8 | 3,486 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.zyzx;
import java.io.IOException;
import java.net.ConnectException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apach... | true |
ed5c4b60a2b1af3bcbc1de4f73b28c180fd1cfcf | Java | sanjaymurali/Plagiarizer | /src/main/resources/tests/QuickSorter.java | UTF-8 | 1,382 | 2.71875 | 3 | [] | no_license | package hw;
import ab;
public class QuickSorter<T extends Comparable<T>> implements Sorter {
public void quicksort(Comparable[] list, int left, int right) {
if (right > left) {
int pivotNewIndex = partition(list, left, right, right);
quicksort(list, left, pivotNewIndex ... | true |
b4d91218d4f0866a2b587c1579ff3060ab18f3ad | Java | nguyencuong382/PE_Projects | /SE05630_CuongNM_SE1209_PRJ321/FinalQ2_SE05630/src/java/model/DummyDAO.java | UTF-8 | 1,966 | 2.921875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import context.DBContext;
import entity.Dummy;
import java.sql.Connection;
import java.sql.PreparedStatement;
import ja... | true |
2d5ab57c61db0e351eaffd79f436eb6d7c7b33a3 | Java | UnsungHero0/portal | /src/main/java/vn/com/vndirect/domain/IfoCompanyProfileView.java | UTF-8 | 515 | 1.671875 | 2 | [] | no_license | package vn.com.vndirect.domain;
/**
* IfoCompanyProfileView generated by MyEclipse - Hibernate Tools
*/
@SuppressWarnings("serial")
public class IfoCompanyProfileView extends BaseBean implements java.io.Serializable {
// Fields
private IfoCompanyProfileViewId id;
// Constructors
/** default constructor */
... | true |
27169150d09d2af90200558caa6816f2376bee6b | Java | MaxChanger/OrderingOnline | /app/src/main/java/com/k/neleme/fragments/FirstFragment.java | UTF-8 | 831 | 2.03125 | 2 | [] | no_license | package com.k.neleme.fragments;
import android.os.Bundle;
import com.k.neleme.MainActivity;
import com.k.neleme.R;
import com.k.neleme.Views.ListContainer;
import com.k.neleme.adapters.FoodAdapter;
import com.k.neleme.adapters.TypeAdapter;
import com.shizhefei.fragment.LazyFragment;
public class FirstFragment exten... | true |
d44eab76abf02b78da9156325f5124cd3188f870 | Java | ncpalmie/366-Database-Project | /src/main/java/csc366/jpademo/AuditRepository.java | UTF-8 | 1,248 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package csc366.jpademo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.query.Param;
@Repository
p... | true |
fecf27a49891166a6e283a9a72d7c905e38ce2cf | Java | miguelvitores/HashCodePizza | /src/booksExample/LibraryLife.java | UTF-8 | 813 | 2.984375 | 3 | [] | no_license | package booksExample;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class LibraryLife {
public Library lib;
public List<Integer> booksSentInOrder;
public static HashMap<Integer, Integer> booksScanned;
public LibraryLife(){
booksSentInOrder = new ArrayList... | true |
44ea0864e26fef3311a51594b7c6b13802b5a75d | Java | Crune/GaNaDa-Mart | /src/ganada/obj/common/BannerHTMLDao.java | UTF-8 | 518 | 2.046875 | 2 | [] | no_license | package ganada.obj.common;
import ganada.core.*;
public class BannerHTMLDao extends DAO {
private static BannerHTMLDao instance = new BannerHTMLDao();
public static BannerHTMLDao getInstance() {
return instance;
}
private BannerHTMLDao() {
}
private static DBTable t;
@Ove... | true |
aca52024f7a981a8470334e72f118b52c16a0196 | Java | guerethes/offdroid | /src/br/com/guerethes/orm/engine/ModelORMToSQL.java | UTF-8 | 1,908 | 2.671875 | 3 | [] | no_license | package br.com.guerethes.orm.engine;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import br.com.guerethes.orm.engine.i.IModelORMDDL;
import br.com.guerethes.orm.exception.NotEntityException;
import br.com.guerethes.orm.reflection.EntityReflection;
import br.com.guerethes.orm.refl... | true |
0ee1c245f5136614ff91b3ce914909395ab23b67 | Java | DarthBoomerPlay/EazyNick | /src/net/dev/eazynick/listeners/PlayerNickListener.java | UTF-8 | 4,116 | 1.96875 | 2 | [] | no_license | package net.dev.eazynick.listeners;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import net.dev.eazynick.EazyNick;
import net.dev.eazynick.api.NickManager;
import net.dev.eazynick.api.PlayerNic... | true |
9aee1efedfa6ed7b12f27285ea211cd1d5d872eb | Java | closing/yczd | /yczd-api-aio/src/main/java/com/yczd/api/aio/RootController.java | UTF-8 | 643 | 1.890625 | 2 | [] | no_license | package com.yczd.api.aio;
import java.util.ArrayList;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/")
public class RootC... | true |
880e6d5590773d60c87b9801803cf836658c3054 | Java | pshirkey/dodah | /DodahFinder/src/com/dodah/service/Client.java | UTF-8 | 7,520 | 2.375 | 2 | [] | no_license | package com.dodah.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.security.MessageDigest;
import java.security.NoSuchAlgor... | true |
72d97d64c8b78f13bc12e1c7ea4c84ad0f8b5740 | Java | wanan123033/muzhitui | /app/src/main/java/com/nevermore/muzhitui/module/bean/ProxyType.java | UTF-8 | 2,947 | 2.296875 | 2 | [] | no_license | package com.nevermore.muzhitui.module.bean;
import java.io.Serializable;
import java.util.List;
/**
* Created by hehe on 2016/6/14.
*/
public class ProxyType {
/**
* phonetell : 8899009
* name : 宋广才
* state : 1
* province : 广东
* typeList : [{"amount":24000,"id":1,"price":80,"count":300... | true |
2e52e8f9d8c7762c86bb4273053cb32fde19def8 | Java | victropolis/project-euler-solved | /src/main/java/com/victropolis/euler/Problem447.java | UTF-8 | 818 | 2.6875 | 3 | [] | no_license | package com.victropolis.euler;
/**
* Generated programatically by victropolis on 07/04/15.
*/
public class Problem447 extends BaseProblem {
/*
Description (from https://projecteuler.net/problem=447):
For every integer n>1, the family of functions fn,a,b is defined by fn,a,b(x)≡ax+b mod n for a,b,x i... | true |
35856bebace14c06701cc7c1058c3f5c01972be3 | Java | akaravi/Ntk.Android.CpanelBase | /api/src/main/java/ntk/base/api/news/interfase/INewsShareReciverCategory.java | UTF-8 | 2,411 | 1.914063 | 2 | [] | no_license | package ntk.base.api.news.interfase;
import java.util.Map;
import io.reactivex.Observable;
import ntk.base.api.news.model.NewsCountRequest;
import ntk.base.api.news.model.NewsExportFileRequest;
import ntk.base.api.news.model.NewsGetAllRequest;
import ntk.base.api.news.model.NewsShareReciverCategoryAddRequest;
import ... | true |
f413b2616e7cbe59762fa5254c2af8fbfe47aa05 | Java | LaurentiuStoica94/Bancomat | /src/main/java/ClientNotification.java | UTF-8 | 839 | 2.984375 | 3 | [] | no_license | import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
public class ClientNotification {
static Path fileName = Path.of("ClientNotifications.txt");
static boolean once = true;
public static void sendNotification(int amount) {
Str... | true |
8d23668ae9946a841ae0d59b6d8a6ff86709d8da | Java | xin923291020/University | /大三上/软件设计/Tutorial4/20142863_杨程鑫/test1/MainClass.java | UTF-8 | 252 | 2 | 2 | [] | no_license | package test1;
public class MainClass
{
public static void main(String args[]) throws Exception
{
PeopleFactory PF = (PeopleFactory)XMLPerson.getBean();
Man W = PF.produceMan();
W.Display();
Woman WM = PF.produceWoman();
WM.Display();
}
} | true |
9abe037ef1c435b9a44a6ab46ff651afed9fc92c | Java | tz1992/algorithm | /algorithm/src/algorithm/jingdong/Balls.java | UTF-8 | 504 | 3.34375 | 3 | [] | no_license | package algorithm.jingdong;
public class Balls {
public int calcDistance(int A, int B, int C, int D) {
int a=getDis(100);
int b=getDis(B);
int c=getDis(C);
int d=getDis(D);
return a+b+c+d;
}
private int getDis(int a) {
int count=a;
while(a/2!=0){
a=a... | true |
7b201cd253a5d45ac7f7067d191c2495952da139 | Java | zhongxingyu/Seer | /Diff-Raw-Data/26/26_03b31eff41b927b6cba7123fb6babb592d39f85b/ResultMonitorFactory/26_03b31eff41b927b6cba7123fb6babb592d39f85b_ResultMonitorFactory_t.java | UTF-8 | 13,171 | 2.125 | 2 | [] | no_license | package com.almende.eve.monitor;
import java.io.IOException;
import java.io.Serializable;
import java.net.ProtocolException;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.almende.eve.agent.Agent;
import com... | true |
bf85ba70c2ac6c1b612ba9c8289525eb2a0fb38e | Java | pcelis2/WallBreakers | /Week_4/Implement_Queue_Using_Stack.java | UTF-8 | 1,328 | 4.0625 | 4 | [] | no_license | import java.util.*;
public class Implement_Queue_Using_Stack {
public static void main(String[] args) {
}
class MyQueue {
/** Initialize your data structure here. */
Stack<Integer> myStack;
public MyQueue() {
myStack = new Stack<Integer>();
}
/** Pus... | true |
89886c7fb2a77f720f8b595bf1edc5bb17ca47ab | Java | ken60/HamburgSteakMOD | /src/main/java/hamburgsteakmod/registry/ModItems.java | UTF-8 | 1,475 | 2.3125 | 2 | [] | no_license | package hamburgsteakmod.registry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import hamburgsteakmod.items.ItemDemiglaceSauce;
import hamburgsteakmod.items.ItemEmptyCan;
import hamburgsteakmod.items.ItemHamburgSteak;
import hamburgsteakmod.items.ItemHamburgSt... | true |
7c61e5b1f3bd04aa93a19d28e543a154da6b388e | Java | xiazl/spring_security | /src/main/java/com/cims/business/card/entity/CardDisable.java | UTF-8 | 358 | 1.695313 | 2 | [] | no_license | package com.cims.business.card.entity;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
@Setter
@Getter
public class CardDisable {
private Long id;
private String cardNo;
private Integer disableType;
private String comment;
private Date disableDate;
private Long createU... | true |
1e43729ba228d4f6511ab19805ce930af1013318 | Java | jexp/neo4j-ogm | /neo4j-ogm/src/main/java/org/neo4j/ogm/model/GraphModel.java | UTF-8 | 836 | 2.5625 | 3 | [] | no_license | package org.neo4j.ogm.model;
import java.util.HashMap;
import java.util.Map;
public class GraphModel {
private final Map<Long, NodeModel> nodeMap = new HashMap<>();
private NodeModel[] nodes = new NodeModel[]{};
private RelationshipModel[] relationships = new RelationshipModel[]{};
public NodeMode... | true |
022922a3a7121e01d69052ca2dc8129aa1ba4440 | Java | gitzhang/sdetools | /ArcObjects/src/com/trgis/bmy/code/FormatString.java | UTF-8 | 221 | 2.34375 | 2 | [] | no_license | package com.trgis.bmy.code;
public class FormatString {
public static String DString(int num) {
if (num < 10) {
return "0" + Integer.toString(num);
} else {
return Integer.toString(num);
}
}
}
| true |
7c584f1e6b8c6520d3bfbec84ef2b822d5ec54c1 | Java | ABHIJEET-YADAV/API-Checker | /src/test/java/com/qa/tests/GetAPITest.java | UTF-8 | 1,852 | 2.375 | 2 | [] | no_license | package com.qa.tests;
import java.io.IOException;
import java.util.HashMap;
import org.apache.http.Header;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.util.EntityUtils;
import org.json.JSONObject;
import org.testng.Assert;
... | true |
817ff54d38c0919bd75172d0f9e4b556192502bf | Java | bangui/JBElec | /project/module2_3/backend/jbelec-backend/src/main/java/com/dmgroup/springboot/service/impl/StationServiceImpl.java | UTF-8 | 1,561 | 2.0625 | 2 | [] | no_license | package com.dmgroup.springboot.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import com.dmgroup.springboot.pojo.Fiber;
import com.dmgroup.springboot.pojo.Busi... | true |
06b621f4c66ade87c1432906e30cd885ddb1a491 | Java | ccolorcat/VanGogh | /library/src/main/java/cc/colorcat/vangogh/SquareTransformation.java | UTF-8 | 1,192 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 cxx
*
* 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 writi... | true |
a137f631e1ac53c7a5febfb815316ae8cf3b3497 | Java | onurerden/mkWS | /src/main/java/mkws/Model/MKMission.java | UTF-8 | 486 | 1.632813 | 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 mkws.Model;
import java.sql.Timestamp;
import java.util.ArrayList;
/**
*
* @author oerden
*/
public class MKMission {
... | true |
26c4346fe73e4dc4aec69db1121c232fa4e44401 | Java | pokeflutist78770/The_Legend_Of_Adlez | /src/gameObjects/Consumable.java | UTF-8 | 278 | 2.640625 | 3 | [] | no_license | package gameObjects;
/**
* Consumable interface. This allows an item to become consumable,
* where it can then be used on a specific CharacterClass with various
* effects
* @author Angel Aguayo
*/
public interface Consumable {
boolean use(Creature person);
}
| true |
caf1b4699605977af42e858233f6ddbcf629972e | Java | AndreiDebreceni/demoQA | /src/test/java/com/demoqa/features/ReadFromModalTest.java | UTF-8 | 536 | 1.90625 | 2 | [] | no_license | package com.demoqa.features;
import com.demoqa.steps.GenerateModalSteps;
import com.demoqa.utils.BaseTest;
import net.thucydides.core.annotations.Steps;
import org.junit.Test;
public class ReadFromModalTest extends BaseTest {
@Steps
private GenerateModalSteps generateModalSteps;
@Test
public void read... | true |
6a8fb8d85d85fe8da16aac5139ae0eb3df940ae2 | Java | QuietClickCode/wxzj2 | /wxzj2/src/com/yaltec/wxzj2/biz/system/action/SysAnnualSetAction.java | UTF-8 | 2,315 | 2.09375 | 2 | [] | no_license | package com.yaltec.wxzj2.biz.system.action;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfr... | true |
c48c162e134f2322dbafd6fe60ac80de63711746 | Java | gentringer/Webservices | /Java RMI/V2/Cabinet_vet_V22/src/interfaces/CabinetVeterinaire.java | UTF-8 | 628 | 2.296875 | 2 | [] | no_license | package interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface CabinetVeterinaire extends Remote {
String getanim(String nom) throws RemoteException;
void addAnimal(String nom, String maitre, String espece, String race) throws RemoteException;
void creerEspece(String nom, String... | true |
7e11f39f43e5086960dda77fd39fc4403cbb0f73 | Java | mSorok/COCONUT | /src/main/java/de/unijena/cheminf/npopensourcecollector/services/AtomContainerToSourceNaturalProductService.java | UTF-8 | 2,174 | 2.1875 | 2 | [] | no_license | package de.unijena.cheminf.npopensourcecollector.services;
import de.unijena.cheminf.npopensourcecollector.mongocollections.SourceNaturalProduct;
import org.openscience.cdk.exception.InvalidSmilesException;
import org.openscience.cdk.interfaces.IAtom;
import org.openscience.cdk.interfaces.IAtomContainer;
import org.op... | true |
ee8ea1ab98e1f0eb9f182376920955e9a30fc0c5 | Java | xiaoyu-G/xiaoyu001 | /src/gitPro/A.java | UTF-8 | 153 | 1.757813 | 2 | [] | no_license | package gitPro;
public class A {
public A() {
}
public static void main(String[] args){
System.out.println("你好,git");
}
}
| true |
76d7964267b364cecfc5ab9fa0d48cab18376e98 | Java | shpikpavlo/telephone_book1 | /src/main/java/ua/com/my/telephone_book/repository/UserRepo.java | UTF-8 | 221 | 1.679688 | 2 | [] | no_license | package ua.com.my.telephone_book.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ua.com.my.telephone_book.models.User;
public interface UserRepo extends JpaRepository<User,Integer> {
}
| true |
5b4c7e23d5675a6302409e7a799afaf66f7f1a2a | Java | nbodapati/C-Python-Coding- | /Java-WebApplication/Hashtable.java | UTF-8 | 1,814 | 3.46875 | 3 | [] | no_license | public class Hashtable {
private int numel;
private Node[] llist;
//this is executed each time a hash table is created.
static {
System.out.println("Hashtable is created!");
}
public Hashtable() {
this(10);
//default numel=10
}
public Hashtable(int n) {
numel=n;
llist= new U... | true |
abd7d29ba981a93a5e6a3ede14ee256e0a236604 | Java | pabplanalp/pvmail | /java/source/com/vmail/edi/uspsI1IftsaiStatus1r3/AcEdiUspsI1IftsaiStatus1r3Loc.java | UTF-8 | 2,463 | 1.921875 | 2 | [] | no_license | package com.vmail.edi.uspsI1IftsaiStatus1r3;
import com.jwApps.edi.JwEdiSegment;
import com.jwApps.utility.JwUtility;
import com.vmail.edi.base.AcEdiSegmentFinder;
import com.vmail.edi.un.D96B.AcEdiUnLoc;
public class AcEdiUspsI1IftsaiStatus1r3Loc
extends AcEdiUnLoc
{
//#######################################... | true |
001fae7bf6c202711ac85bba4c119ef333a5699f | Java | TeamDevintia/DevAthlon3 | /src/main/java/io/github/teamdevintia/magicpotions/enums/SoundSource.java | UTF-8 | 1,067 | 3.1875 | 3 | [
"MIT"
] | permissive | package io.github.teamdevintia.magicpotions.enums;
/**
* @author Shad0wCore
* <p>
* A collection of sound catorgories.
* <p>
* <b>Description from Minecraft Wiki:</b>
* The category this sound event belongs to. Valid category names are
* "ambient", "weather", "pla... | true |
d4bcad5b9644bbfb149c7e6a708b872988db04af | Java | Maveriick/JavaAlgo | /MinMaxDC/src/MinMaxDC.java | UTF-8 | 894 | 3.71875 | 4 | [] | no_license | import java.util.Arrays;
/**
*
* @author ashutosh
* Divide and Conquer Algorithm for Min/Max Finding
* Reduces the number of comparisons compared to the linear algorithm
*/
public class MinMaxDC {
public static int MinDC(int data[]){
if (data.length == 1){
return data[0];
}else if(data.length == 2){
... | true |
a220dec116e0dd18ab4f6688eed41c96bec7c58f | Java | justin-cotarla/big-wiki-crew | /app/src/main/java/org/wikipedia/feed/categories/recommended/RecommendedCategoriesClient.java | UTF-8 | 2,143 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.wikipedia.feed.categories.recommended;
import android.support.annotation.NonNull;
import org.wikipedia.dataclient.ServiceFactory;
import org.wikipedia.dataclient.WikiSite;
import org.wikipedia.dataclient.mwapi.MwQueryPage;
import org.wikipedia.history.HistoryEntry;
import org.wikipedia.page.bottomcontent.... | true |
abffd5395c916730bdd5829f19e371ef84364890 | Java | TheAndroidMaster/APReader | /app/src/main/java/james/apreader/fragments/FeaturedFragment.java | UTF-8 | 1,936 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package james.apreader.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android... | true |
ab8fc0ebc36f8af4064ca2038fcd1b3a3571c1b2 | Java | SolaceSamples/solace-samples-javarto | /src/main/java/com/solace/samples/javarto/features/RRDirectRequester.java | UTF-8 | 8,701 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2004-2021 Solace Corporation. All rights reserved.
*
*/
package com.solace.samples.javarto.features;
import java.nio.ByteBuffer;
import java.util.logging.Level;
import com.solacesystems.solclientj.core.SolEnum;
import com.solacesystems.solclientj.core.Solclient;
import com.solacesystems.solclientj.... | true |
cfec29eeeaa46f1daba5141a0a18296b4602389b | Java | El-houssine/Mini-projet-J2EE | /src/metier/LivreService.java | UTF-8 | 1,873 | 2.65625 | 3 | [] | no_license | package metier;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import model.Livre;
public class LivreService {
private List<Livre>listLivre=new ArrayList<Livre>();;
public void valider(Livre... | true |
0f623b90b918574edee93a897e20b7f7972187c1 | Java | lucklyperson/CarTypeDemo | /app/src/main/java/com/example/wu/cartypedemo/MainActivity.java | UTF-8 | 9,591 | 2.078125 | 2 | [] | no_license | package com.example.wu.cartypedemo;
import android.animation.ObjectAnimator;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import andro... | true |
b567cf2f0f3033050632662355be45ccaa96b9de | Java | rrabit42/Malware_Project_EWHA | /src/androidx/work/impl/background/systemalarm/CommandHandler.java | UTF-8 | 10,651 | 1.875 | 2 | [] | no_license | package androidx.work.impl.background.systemalarm;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.annotation.WorkerThread... | true |
0c1f67c25c2dd21e7fe5ce3a900f770a73c7e2f6 | Java | cdahmedeh/SMLabTestingSimulation | /SMLabTestingSimulation_ABSModJ/src/org/smlabtesting/simabs/model/ModelPrinter.java | UTF-8 | 4,860 | 2.75 | 3 | [] | no_license | package org.smlabtesting.simabs.model;
import static org.smlabtesting.simabs.entity.QNewSamples.REGULAR;
import static org.smlabtesting.simabs.entity.QNewSamples.RUSH;
import org.smlabtesting.simabs.entity.RSampleHolder;
/**
* Helper methods to handle printing of the model onto the console. Printing
* code would n... | true |
70e0c513f3d6baafad229da62782f30d5409851b | Java | talk2morris/TEST-PROJECT | /omod/src/main/java/org/openmrs/module/patientindextracing/utility/Utils.java | UTF-8 | 11,573 | 1.703125 | 2 | [] | no_license | package org.openmrs.module.patientindextracing.utility;
import javax.servlet.http.HttpServletRequest;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import java.io.File;
import java.io.IOException;
import java.net.Ine... | true |
191e425cddf58f3320e55cf120692a55ff0c7858 | Java | JMtorii/SectionedRecyclerView | /app/src/main/java/com/juntorii/testapplication/BestRecyclerAdapter.java | UTF-8 | 2,691 | 2.53125 | 3 | [] | no_license | package com.juntorii.testapplication;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKn... | true |
9d6fa86abbc7ffc058b1e8c36d0e940241f9f4e9 | Java | mayhew3/Postgres-Object | /src/main/java/com/mayhew3/postgresobject/db/MySQLConnectionFactory.java | UTF-8 | 1,291 | 2.859375 | 3 | [] | no_license | package com.mayhew3.postgresobject.db;
import java.net.URISyntaxException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
@SuppressWarnings("unused")
public class MySQLConnectionFactory {
protected final Logg... | true |
1fd527ec2778713f0e83c519d4b960de5dd134ea | Java | my0sotis/Android_Homework | /A3-Collage-BaseCode/app/src/main/java/com/mikeriv/ssui_2016/a2_collage_basecode/drawing/CircleLayout.java | UTF-8 | 997 | 2.78125 | 3 | [] | no_license | package com.mikeriv.ssui_2016.a2_collage_basecode.drawing;
import android.graphics.Canvas;
public class CircleLayout extends BaseVisualElement {
private float CenterX;
private float CenterY;
private float CenterRadius;
public CircleLayout(float x,float y,float w,float h,
float ... | true |
b30b68576f4f0dc00484f954a41f7c0d2d5b0292 | Java | SoftEng-HEIGVD/Teaching-HEIGVD-RES-2019-Chill | /src/test/java/ch/heigvd/res/chill/domain/CosmicElodie/DogFishTest.java | UTF-8 | 1,009 | 2.734375 | 3 | [
"MIT"
] | permissive | package ch.heigvd.res.chill.domain.CosmicElodie;
import static org.junit.jupiter.api.Assertions.*;
import ch.heigvd.res.chill.domain.Bartender;
import org.junit.jupiter.api.Test;
import ch.heigvd.res.chill.protocol.OrderRequest;
import ch.heigvd.res.chill.protocol.OrderResponse;
import java.math.BigDecimal;
class ... | true |
2f7932d89adbb185442f79dd3b6cdc852639eed3 | Java | ydl1997/learn- | /src/day27/CopyDemo1.java | UTF-8 | 466 | 2.984375 | 3 | [] | no_license | package day27;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class CopyDemo1 {
public static void main(String[] args) throws Exception {
FileInputStream in =new FileInputStream("d:\\javastest\\1.bmp");
FileOutputStream out =new FileOutputStream("d:\\javastest\\2.bmp");
... | true |
9be38856f7905a1458dc344f09a44bd5a99ceca5 | Java | fangrenfu/onepage | /src/main/java/com/keysoft/onepage/controller/home/Index.java | UTF-8 | 519 | 1.859375 | 2 | [] | no_license | package com.keysoft.onepage.controller.home;
import com.keysoft.onepage.common.IndexTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/home/index")
public class Index extends IndexTemplate {
@Re... | true |
da01ff3c18c01dce965e45275387af9bb4f9ffad | Java | harshalpande/SpringJMSApacheActiveMQ | /Topic/SpringBootWithExternalJMSTopicProducer/src/main/java/org/javabrains/SpringBootWithExternalJMSTopicProducer/config/TopicProducerConfig.java | UTF-8 | 1,389 | 2.125 | 2 | [] | no_license | package org.javabrains.SpringBootWithExternalJMSTopicProducer.config;
import javax.jms.ConnectionFactory;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.a... | true |
4487c6162dba68fff83db01a979b979bae4131d9 | Java | anastayaa/Android-Safi-Geo | /app/src/main/java/com/example/simo/safigeo/TestActivity.java | UTF-8 | 2,352 | 2.21875 | 2 | [] | no_license | package com.example.simo.safigeo;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.Toast;
import com.google.an... | true |
e1493f95729a7ca65f36e2a2502ad88374150381 | Java | sidgopinath/CS308-cell-society-project | /src/view/SplashScreen.java | UTF-8 | 9,145 | 2.765625 | 3 | [
"MIT"
] | permissive | package view;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.ResourceBundle;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VB... | true |
d8da1da52faf2bee826ff897f4c26c6d4b56855d | Java | ahmedatefabd/Clinics | /app/src/main/java/com/example/ragab/clinics/Upload_X_Ray/Upload_X_RayFragment.java | UTF-8 | 14,898 | 1.898438 | 2 | [] | no_license | package com.example.ragab.clinics.Upload_X_Ray;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Bitmap;
import an... | true |
2822278888e9396c4781abf504d7479fdbb1d147 | Java | gregmaka/java_student_codesamples | /GregMaka_Lesson_2_Project/Dollars.java | UTF-8 | 1,036 | 3.578125 | 4 | [] | no_license | // Greg Maka CIS163AA
// with modification
import java.util.*;
import javax.swing.*;
public class Dollars
{
public static void main(String[] args)
{
double money;
String input;
input = JOptionPane.showInputDialog("Enter the total amount of cash you have ","ENTER MONEY");
... | true |
9af3e8f6e5907ce55184511742ce21446ba5b829 | Java | zhongxingyu/Seer | /Diff-Raw-Data/1/1_5977307c513654ef8e424b32b99a0362ecdc6698/GroovyEclipseCompiler/1_5977307c513654ef8e424b32b99a0362ecdc6698_GroovyEclipseCompiler_t.java | UTF-8 | 15,439 | 1.523438 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2010 Codehaus.org, SpringSource, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distr... | true |
ac3682cfcf0f3473e0a5e6dc90419b6a80639c33 | Java | navyanswamy20/TYSS-16Sep19-NavyaHN | /thread/src/com/tyss/thread/properties/MyThread.java | UTF-8 | 577 | 3.21875 | 3 | [] | no_license | package com.tyss.thread.properties;
public class MyThread extends Thread {
public static void main(String[] args) {
System.out.println("main started");
//to get the name of the thread
String tname = Thread.currentThread().getName();
System.out.println("current thread name is " +tname);
MyThread t1 = new ... | true |
318181d1cb7dc6fccbd7f78d4c202b9fb0841591 | Java | MaghiarCatalina/StockAlarmsApp | /src/main/java/com/devm8/demo/stockalarms/services/UserService.java | UTF-8 | 1,910 | 2.375 | 2 | [] | no_license | package com.devm8.demo.stockalarms.services;
import com.devm8.demo.stockalarms.dto.UserDTO;
import com.devm8.demo.stockalarms.entities.User;
import com.devm8.demo.stockalarms.repo.UserRepo;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.spri... | true |
b5ed188949f5fa3bb85d64f127cafb2eb4e1c2a2 | Java | hafizjef/mvc-java | /src/com/xyz/view/RentalEntryDialog.java | UTF-8 | 1,495 | 2.609375 | 3 | [] | no_license | package com.xyz.view;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.xyz.crms.model.Car;
import com.xyz.crms.model.Customer;
public class RentalEntryDialog extends AbstractEntryDia... | true |