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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e3829316413126e7157d23af7805307c958aa4f2 | Java | PANU10/ElTallerDeCostura | /src/com/company/Cesta.java | UTF-8 | 1,096 | 3.109375 | 3 | [] | no_license | package com.company;
public class Cesta {
private int numPieza;
private final int maxCapa;
private boolean pieza;
private boolean ocupado;
public Cesta(int maxCapa) {
this.maxCapa = maxCapa;
}
public synchronized void aniyadirPieza(){
try {
while(ocupado) wait... | true |
05be52044e86bd55cee77aac06c0eb7e81ea1800 | Java | dan-avram-selab/Laborator3_C | /src/ro/mta/facc/selab/RandomOutTask.java | UTF-8 | 299 | 2.640625 | 3 | [] | no_license | package ro.mta.facc.selab;
import java.util.Random;
public class RandomOutTask implements Task {
private int nr;
public RandomOutTask() {
this.nr = new Random().nextInt();
}
@Override
public void execute() {
System.out.println("The number is " + nr);
}
}
| true |
870741ade1bfb9f8f2f58d300eff5d5e0d5948a4 | Java | gabriel-ma/Digimon-API | /src/main/java/com/gabriel/digimonapi/service/AboutService.java | UTF-8 | 298 | 1.96875 | 2 | [] | no_license | package com.gabriel.digimonapi.service;
import com.gabriel.digimonapi.About.About;
import org.springframework.stereotype.Service;
@Service
public class AboutService {
public About retrieveApplicationInformation() {
return new About("This is the version 1 of the Digimon Api", "1.0");
}
}
| true |
d4a7e49fd452a953ad01c733f8539e869d8dc654 | Java | hedgehog-zowie/dp-parent | /dp-persist/src/main/java/com/iuni/dp/persist/datastat/dao/impl/MallPvuvDailyStatDaoImpl.java | UTF-8 | 13,145 | 2.09375 | 2 | [] | no_license | package com.iuni.dp.persist.datastat.dao.impl;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
impor... | true |
40506adfe382b500b27fcbddca111ea040583b67 | Java | byp5303628/leetcode | /src/main/java/com/sapphire/leetcode/algorithm/question283/MoveZeros.java | UTF-8 | 374 | 2.765625 | 3 | [] | no_license | package com.sapphire.leetcode.algorithm.question283;
/**
* Author: 柏云鹏
* Date: 2019/6/16.
*/
public class MoveZeros {
public void moveZeroes(int[] nums) {
int i = nums.length - 1;
int j = nums.length - 1;
while (j >= 0) {
if (nums[j] == 0) {
j--;
... | true |
616864aa298754ca9dd1b8d10afa31f8f8a33729 | Java | MichalGuz/java-basics | /src/main/java/tb_composition_room/Table.java | UTF-8 | 1,185 | 3.15625 | 3 | [] | no_license | package tb_composition_room;
public class Table extends FurnitureItem{
private int numberOfLegs;
public Table(double height, double width, double length, String color, String material, int numberOfLegs) {
super("table", height, width, length, color, material);
this.numberOfLegs = numberOfLegs... | true |
5f9f4d8f937c864bfeecb6f5cf9f34f374ff7bc0 | Java | ArfanR/Jeopardy | /Jeopardy/src/action_factory/ClockAnimationAction.java | UTF-8 | 491 | 1.875 | 2 | [] | no_license | package action_factory;
import frames.MainGUINetworked;
import game_logic.ServerGameData;
import messages.Message;
import other_gui.QuestionGUIElementNetworked;
import other_gui.TeamGUIComponents;
import server.Client;
public class ClockAnimationAction extends Action {
private QuestionGUIElementNetworked currentQue... | true |
f864c6b617009c2fd8ef3d1889ebecc31374638b | Java | nvanhoeck/NovaPolitica | /src/main/java/tools/dataconstants/PartiesConstants.java | UTF-8 | 518 | 1.773438 | 2 | [] | no_license | package tools.dataconstants;
public class PartiesConstants {
public static int id = 0;
public static int name = 1;
public static int shortname = 2;
public static int primaryColor = 3;
public static int secundaryColor = 4;
public static int budget = 5;
public static int popularity = 6;
p... | true |
cc8737ca27bae30bc05d6a80f19f2e9ca2e245a4 | Java | moutainhigh/manfenjiayuan | /mfh-framework-business/src/main/java/org/century/schemas/DataType.java | UTF-8 | 2,692 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package org.century.schemas;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
import java.io.Serializable;
import java.util.Hashtable;
/**
* 商品属性 Goods Property
* <p>
* The maps between property ID and its meaning as follows:
* Property ID Property Name Ma... | true |
0d055e92bd5b071f5aa2c718c4adddc5db30360e | Java | dontpanic42/Diss-O-Tron | /src/Structure/OntologyAnalyzer.java | UTF-8 | 5,378 | 2.21875 | 2 | [] | no_license | package Structure;
import Settings.InputSettings;
import com.hp.hpl.jena.ontology.*;
import com.hp.hpl.jena.rdf.model.InfModel;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.reasoner.Reasoner;
import com.hp.hpl.jena.reasoner.ReasonerFactory;
import com.hp.hpl.jena.reasoner.ReasonerRegistry;
imp... | true |
9cb680d22acc72b980f5af7112b9ee9714af352a | Java | lcombs15/halloween-tower-defense | /src/test/java/mobs/MobTest.java | UTF-8 | 12,786 | 2.6875 | 3 | [
"MIT"
] | permissive | package mobs;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import projectiles.ChainLightning;
import projectiles.FireBlast;
import projectiles.IceBeam;
import projectiles.Projectile;
import utilities.Position;
import views.D... | true |
72d6f50ee0ce167f85136ac6c31ed95183974241 | Java | PavelMeld/hh-backend-homework | /backend/backend-src/src/main/test/java/hh/TestHelper.java | UTF-8 | 1,181 | 2.359375 | 2 | [] | no_license | package hh;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import javax.transaction.Transactional;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.stream.Stream;
public class TestHelper ... | true |
e8e1862a364f306bd19eebc7441f2c5da7fa54d0 | Java | BrndBot/BrndBot_old | /bbproject/src/com/brndbot/servlets/SetSessionServlet.java | UTF-8 | 8,695 | 2.5625 | 3 | [] | no_license | /**
* CONFIDENTIAL
*
* All rights reserved by Brndbot, Ltd. 2014
*/
package com.brndbot.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servle... | true |
9b16d001c32a876dfb1536d2fea6c0c1038b13fb | Java | ZHANGyu352460702/No1 | /.svn/pristine/9b/9b16d001c32a876dfb1536d2fea6c0c1038b13fb.svn-base | UTF-8 | 1,532 | 2.21875 | 2 | [] | no_license | package products;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import session.HibernateSessionFactory;
public class ProductsService {
/*private SessionFactory factory;*/
private Session session;
private Transaction tx;
... | true |
00c237f47ef000d6b2dd742ff19ebc856f70568d | Java | KnzHz/fpv_live | /src/main/java/com/dji/widget2/DJISwitch2.java | UTF-8 | 2,117 | 2.3125 | 2 | [] | no_license | package com.dji.widget2;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Switch;
public class DJISwitch2 extends Switch {
private static int STYLE_FPV = 1;
private static int STYLE_NORMAL = 0;
private ... | true |
b15a1166aa50ff9f0f7304cf1bb6d80da84806a9 | Java | apache/flink | /flink-tests/src/test/java/org/apache/flink/test/util/DataSetUtilsITCase.java | UTF-8 | 10,284 | 2.09375 | 2 | [
"BSD-3-Clause",
"OFL-1.1",
"ISC",
"MIT",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
07bb34dc491f1b9bfb0481e81e6e373ecd033469 | Java | gumruyanzh/portal | /src/main/java/com/product/resources/ProductResource.java | UTF-8 | 1,396 | 2.109375 | 2 | [] | no_license | package com.product.resources;
import com.codahale.metrics.annotation.Timed;
import com.product.data.entity.Product;
import com.product.resources.model.ProductCreateModel;
import com.product.service.ProductService;
import com.product.service.dto.ProductCreateDto;
import com.product.service.dto.ProductSimpleDto;
impor... | true |
9ed6d05e344816acff48ce69986241217faa15c7 | Java | aljacobs1021/Training-Projects | /HomeTour/src/game/RoomManager.java | UTF-8 | 5,791 | 3.0625 | 3 | [] | no_license | // CONTAINS: Room definitions, Room to exit assignments
// DOES: What kind of rooms exist
package src.game;
import src.fixtures.Room;
public class RoomManager {
Room startingRoom;
private Room rooms[] = new Room[8];
Room foy, kit, lib, lr, apoth, gar, bed, bath;
public void init() {... | true |
6d62dca5ac93bab9255b31b2bdf398a0f66b98d6 | Java | abhi3047/javaCoding | /mooc-java-programming-i/part02-Part02_04.ComparingNumbers/src/main/java/ComparingNumbers.java | UTF-8 | 532 | 3.828125 | 4 | [] | no_license |
import java.util.Scanner;
public class ComparingNumbers {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int no1= Integer.valueOf(in.nextLine());
int no2=Integer.valueOf(in.nextLine());
if (no1> no2){
System.out.println(no1 + " is greater... | true |
5dfad8ef9585f6a4eb705a284662bb9796c91cf7 | Java | AxesandGrinds/Hify-Old | /app/src/main/java/com/amsavarthan/hify/adapters/NotificationAdapter.java | UTF-8 | 3,707 | 2.046875 | 2 | [] | no_license | package com.amsavarthan.hify.adapters;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
i... | true |
37ba39e4d89380cc71a8a42bac29371d4d4c02dc | Java | tramontaz/basePatterns | /src/behavioral/chain/EmailNotifier.java | UTF-8 | 274 | 2.78125 | 3 | [] | no_license | package behavioral.chain;
public class EmailNotifier extends Notifier {
EmailNotifier(int priority) {
super(priority);
}
@Override
public void write(String message) {
System.out.println("Notifying use email notifier: " + message);
}
}
| true |
2b7bae31fc7840006f8a6b2fb660c843d11bafbd | Java | zh735652914/java-training | /src/interview/Main.java | UTF-8 | 2,301 | 3.015625 | 3 | [] | no_license | package interview;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
char[][] matrix = new char[2][n];
for (int i = 0; i < 2; i++) {
String tmp = scanner.nextLine()... | true |
3fbd07a633b14998b51fbc6732edf7afca58ad85 | Java | jtransc/jtransc-examples | /stress/src/main/java/com/stress/sub1/sub1/sub8/Class3341.java | UTF-8 | 394 | 2.1875 | 2 | [] | no_license | package com.stress.sub1.sub1.sub8;
import com.jtransc.annotation.JTranscKeep;
@JTranscKeep
public class Class3341 {
public static final String static_const_3341_0 = "Hi, my num is 3341 0";
static int static_field_3341_0;
int member_3341_0;
public void method3341()
{
System.out.println(static_const_3341_0);
}
pu... | true |
ad76703e3dd82a54a4e68ea689daaab071a1261b | Java | officialprosingh/RavenEarn | /app/src/main/java/online/propaans/ravenearn/ravenearn/SignActivity.java | UTF-8 | 4,594 | 2.203125 | 2 | [] | no_license | package online.propaans.ravenearn.ravenearn;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import ... | true |
165adb87613aafb5dda875206c72e65a4201aee0 | Java | robert0801/Java.EPAM | /src/Exception/main/Group.java | UTF-8 | 2,002 | 3.265625 | 3 | [] | no_license | package Exception.main;
import Exception.exception.*;
import java.util.ArrayList;
import java.util.Map;
public class Group extends Faculty{
private String nameGroup;
private ArrayList<Student> studentsInGroup;
private int sumOnSubjectInGroup = 0;
private int countMarkInGroup = 0;
private Subject su... | true |
3dd053161f34fa80ead0ebd782ef6ff8c3c00c6c | Java | weiyien/security_jwt | /src/main/java/top/coolidea/security/demo/controller/BaseController.java | UTF-8 | 3,666 | 2.5 | 2 | [] | no_license | package top.coolidea.security.demo.controller;
import cn.hutool.core.util.StrUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import top.coolidea.security.demo.common.RedisUtils;
import top.coolid... | true |
254af858752fc17d2669054b5b2fdd1c2985ac6a | Java | vampirelxz/huoxuanProject | /webui-service/src/main/java/com/lxz/webui/controller/AccountController.java | UTF-8 | 6,721 | 2.171875 | 2 | [] | no_license | package com.lxz.webui.controller;/****************************************************
* 创建人: @author liuxuanzhi
* 创建时间: 2021/3/9/17:04
* 项目名称: HXAssistant
* 文件名称: com.lxz.webui.controller
* 文件描述: @Description: 账簿控制层
*
* All rights Reserved, Designed By 投资交易团队
* @Copyright:2016-2021
*
***************... | true |
23f24ef746ecb8d2803468ba635ea5726ce03c2f | Java | mbatchkarov/Plovdiv | /src/main/java/view/SimulationParametersPanel.java | UTF-8 | 12,380 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package view;
import java.awt.event.ItemEvent;
import javax.swing.*;
import model.SimulationDynamics;
/**
* @author miroslavbatchk... | true |
88311b8146f662f7a056b6d509dd23f4d2295310 | Java | fcolling/back2back | /core/src/test/java/org/ogerardin/b2b/config/BackupSourceRepositoryTest.java | UTF-8 | 1,893 | 2.046875 | 2 | [] | no_license | package org.ogerardin.b2b.config;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ogerardin.b2b.domain.BackupSource;
import org.ogerardin.b2b.domain.FilesystemSource;
import org.ogerardin.b2b.domain.mongorepository.BackupSourceRepository;
import... | true |
2ccbf68184c1b82d80753f0959c448febcc791d1 | Java | teaganstewart/chips-challenge-group-project | /src/nz/ac/vuw/ecs/swen225/a3/maze/Skeleton.java | UTF-8 | 1,240 | 3.03125 | 3 | [] | no_license | package nz.ac.vuw.ecs.swen225.a3.maze;
import javax.json.Json;
import javax.json.JsonObject;
import nz.ac.vuw.ecs.swen225.a3.persistence.Saveable;
/**
* A class that provides where skeletons are able to move and allows them
* to be saved.
*
* @author Teagan Stewart - 300407769
*
*/
public class Skeleton exte... | true |
718e3b4704da7d97f790a957258c6adfa6fd6aca | Java | trandaiduong1990/CACISISS_PADSS | /src/org/transinfo/cacis/action/batchprocess/SearchCardBatchAction.java | UTF-8 | 4,928 | 1.976563 | 2 | [] | no_license | package org.transinfo.cacis.action.batchprocess;
import java.io.IOException;
import java.util.Collection;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.beanutils.BeanUtils;
import or... | true |
a34ff3651e494e353ecb15f64da68e0813b95cb7 | Java | UniTime/unitime | /JavaSource/org/unitime/timetable/dataexchange/DataExchangeIntegrationHelper.java | UTF-8 | 4,154 | 2.015625 | 2 | [
"Apache-2.0",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-freemarker",
"LGPL-2.1-only",
"EPL-1.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-generic-cla",
... | permissive | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | true |
6f21b5a2be43ca54dc4472f5fdd651dabf477ac3 | Java | matthew-sturgill/AndroidToDoList | /app/src/main/java/mattsturgill/tdl10/ToDoActivity.java | UTF-8 | 7,403 | 2.21875 | 2 | [] | no_license | package mattsturgill.tdl10;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.view.MotionEventCompat;
import android.support.v7.app.ActionBarActivity;
import android.suppor... | true |
2a84a924ee70d282eb21bc572d32ce81f20cc902 | Java | hxj1225/websimplejava | /src/main/java/com/hxj/websimplejava/concurrent/jobconcurrency/JobExecutor.java | WINDOWS-1252 | 2,818 | 2.734375 | 3 | [] | no_license | package com.hxj.websimplejava.concurrent.jobconcurrency;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future... | true |
631ef837f70268245fb60447f0e30266cfa28ef0 | Java | jmanuel34/11_formacion | /src/main/java/dto/DtoCurso.java | UTF-8 | 1,019 | 2.40625 | 2 | [] | no_license | package dto;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
public class DtoCurso {
private int idCurso;
@Temporal(TemporalType.DATE)
private Date fechaInicio;
private int duracion;
private String nombre;
public DtoCurso() {
super();
}
public DtoCurs... | true |
6cc3a38f20d99e9695ac28a99bcfec9130281b2c | Java | MorganHolmes/Java-Gym | /src/Gym/Member.java | UTF-8 | 1,032 | 3.34375 | 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 Gym;
/**
*
* @author Morgan
*/
public class Member extends Person {
//Attributes
private int weight;
private do... | true |
efbb903ae1c6b3cbf457da2e1da0164f90c5ad24 | Java | cpberryman/BigJava4thEditionExerciseSolutions | /src/Chapter_6_Iteration/P6_1.java | UTF-8 | 795 | 3.8125 | 4 | [] | no_license | package Chapter_6_Iteration;
import java.util.Scanner;
/**
* Solution to exercise P6.1
*
* @author ChrisBerryman
*/
public class P6_1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.ou... | true |
29efe61205c3e3c589e0507eb1998efb4c745add | Java | markovartur/OOP-Labs | /lab2/src/com/company/Point2d.java | UTF-8 | 1,380 | 3.375 | 3 | [] | no_license | package com.company;
public class Point2d {
/** координата X **/
private double xCoord;
/** координата Y **/
private double yCoord;
/** Конструктор инициализации **/
public Point2d ( double x, double y) {
xCoord = x;
yCoord = y;
}
/** Конструктор по умолчанию. **/
... | true |
6661267f2d560e8af2d25b91e13163b82e0193c6 | Java | liweihai12345/hotel-api | /src/main/java/com/platform/mapper/BlackListMapper.java | UTF-8 | 581 | 1.835938 | 2 | [] | no_license | package com.platform.mapper;
import com.platform.entity.BlackListDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface BlackListMapper extends BaseDao<BlackListDO> {
int check(@Param("myuid") Long myuid, @Param("uid") Long uid);
List<BlackListDO> selectList(@Param("uid") L... | true |
677d732a4a52d1a68e379a03b486e41ca8e0e701 | Java | mpgrantham/myabcdata | /src/main/java/com/canalbrewing/myabcdata/model/User.java | UTF-8 | 2,703 | 2.203125 | 2 | [] | no_license | package com.canalbrewing.myabcdata.model;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
public class User {
public static final String STATUS_ACTIVE = "ACTIVE";
public static final String STATUS_PENDING = "PENDING";
private int id;
private String userNm;
private Str... | true |
ac4f59e2944f3c5f01828f6e2cd676c1255263e3 | Java | mjapon/smartfact | /src/smf/sv/print/gui/ListaImpresorasFrame.java | UTF-8 | 9,241 | 1.914063 | 2 | [] | no_license | /* */ package smf.sv.print.gui;
/* */
/* */ import smf.sv.print.util.Ctes;
/* */ import smf.sv.print.util.CtesImpresoras;
/* */ import java.awt.BorderLayout;
/* */ import java.awt.Component;
/* */ import java.awt.Dimension;
/* */ import java.awt.FlowLayout;
/* */ import java.awt.Fo... | true |
80462a07b360139a4c16f2ef1f66b010afc7c1bb | Java | Fdgonzalez/ecomerce-api | /user-service/src/main/java/com/cloud/ecomerce/user/controller/UserController.java | UTF-8 | 5,019 | 2.390625 | 2 | [] | no_license | package com.cloud.ecomerce.user.controller;
import com.cloud.ecomerce.user.model.RoleName;
import com.cloud.ecomerce.user.model.User;
import com.cloud.ecomerce.user.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.sprin... | true |
347cac7cccbcf2ca280d6c5e57f1d547c6874b71 | Java | pavel-pereguda/WicketCookBook | /1605_10_code_final/recipe1007/src/main/java/cookbook/HomePage.java | UTF-8 | 469 | 2.28125 | 2 | [] | no_license | package cookbook;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.model.PropertyModel;
public class HomePage extends WebPage {
private int counter = 0;
public HomePage() {
add(new Label("cou... | true |
748e54fcdfb31381a77446cb00c68e1171d3d516 | Java | germinateplatform/germinate | /src/jhi/germinate/client/util/event/GroupCreationEvent.java | UTF-8 | 1,954 | 2.203125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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/... | true |
27262396c6466dfa3e8e99ebf62d4f714295ce3a | Java | prajwalmw/Notification | /app/src/main/java/com/example/applicationfundamentals/App.java | UTF-8 | 1,145 | 2.546875 | 3 | [] | no_license | package com.example.applicationfundamentals;
import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;
/**
* Created By: Prajwal Waingankar on 03-Jul-21
* Github: prajwalmw
* Email: prajwalwaingankar@gmail.com
*/
public class App exte... | true |
5cb1eded025d40a41cded41ae5c9d81ecc9f4922 | Java | paing123/tiktopgym_managementsystem | /tiktopgymmanagement/src/main/java/com/tiktop/controller/PackageController.java | UTF-8 | 3,719 | 2.28125 | 2 | [] | no_license | package com.tiktop.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.s... | true |
38f10d751dda8c508ba91aa600c765bbdfd792f9 | Java | lam1998t/BT_Tuan2 | /tuan2/cau_2/src/Main.java | UTF-8 | 250 | 2.453125 | 2 | [] | no_license | public class Main {
public static void main(String[] args){
Fraction f1 = new Fraction(8, 3);
Fraction f2 = new Fraction(5, 13);
f1.add(f2);
f1.subtract(f2);
f1.multiply(f2);
f1.divide(f2);
}
}
| true |
1be4fc4a87a843f39803bec6034da51c0b793590 | Java | erolsafauzun/CarRentalSystem | /src/main/java/com/eroluzun/carrentalsystem/api/CharValController.java | UTF-8 | 1,753 | 2.28125 | 2 | [] | no_license | package com.eroluzun.carrentalsystem.api;
import com.eroluzun.carrentalsystem.dto.GnlCharValDto;
import com.eroluzun.carrentalsystem.service.impl.CharValServiceImpl;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java... | true |
ad321af24ae64f07df046f1d7bb635542896a9e6 | Java | ScheduleAppTeam/ScheduleProjectApp | /ScheduleProjectApp/src/main/java/com/example/scheduleprojectapp/LoginActivity.java | UTF-8 | 6,501 | 2.359375 | 2 | [] | no_license | package com.example.scheduleprojectapp;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.... | true |
dacd12e3fee3d368582c047052af8424d2ddd666 | Java | xongxong/kcvs | /web/src/main/java/com/kcvs/service/impl/VehStatusMonitorServiceImpl.java | UTF-8 | 1,827 | 2.359375 | 2 | [] | no_license | package com.kcvs.service.impl;
import com.kcvs.service.VehStatusMonitorService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional
public class VehStatusMonitorServiceImpl ... | true |
2fd10926b4262b7074e7209bcc063d3703be3af8 | Java | Neffes1987/masterHelper2 | /app/src/main/java/com/masterhelper/global/db/repositories/common/contracts/GeneralColumn.java | UTF-8 | 1,639 | 2.671875 | 3 | [] | no_license | package com.masterhelper.global.db.repositories.common.contracts;
import com.masterhelper.global.db.repositories.utils.ContractsUtilities;
public class GeneralColumn {
private String columnTitle;
private void setColumnTitle(String columnTitle) { this.columnTitle = columnTitle; }
public String getColumnTitle() {... | true |
9829f8d07f7052047fb4453fb817a74835bf4fd1 | Java | sharlamov/dev | /Store/src/main/java/net/club/model/Goods.java | UTF-8 | 845 | 2.15625 | 2 | [] | no_license | package net.club.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "db_goods")
public class Goods extends AbstractModel {
private static final long serialVersionUID = 8393451241387195740L;
@Column
String code;
@Column
String name;
... | true |
e0367b125c4eec623656fba0b794806a81df3351 | Java | yashodeepv/moneytransferservice | /src/main/java/com/yasho/config/Routes.java | UTF-8 | 791 | 2.171875 | 2 | [] | no_license | package com.yasho.config;
import com.yasho.controller.AccountController;
import io.undertow.Handlers;
import io.undertow.server.RoutingHandler;
import io.undertow.util.Methods;
public class Routes {
private AccountController accountController;
public Routes(AccountController accountController) {
thi... | true |
5f3fa7804b5f626a272f3723ead1ed6a60d1a8e0 | Java | ChanWooP/ChanWooP | /01JavaSE/javase_20190304/src/com/test024/Score.java | UTF-8 | 852 | 2.8125 | 3 | [] | no_license | package com.test024;
public class Score {
//구성항목 : 학번 과목1 과목2 과목3
//자료형 : 학번은 String / 과목1,2,3 int
//샘플자료 :
//"S001", 100, 100, 100
//"S002", 100, 100, 100
private String stuNum;
private String name;
private int sub1, sub2, sub3;
public String getStuNum() {
return stuNum;
}
public void s... | true |
ec8156ee175c9791d1c9386344ceae1ecb5586fa | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/101/10.java | UTF-8 | 1,907 | 2.84375 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
//**********************************************************
//*??????? *
//*? ????? *
//*? ??1000012806 *
//*?????2010.11.17. ... | true |
7bc25b86599febd9f5fc235733c1026ac3e19325 | Java | cristianflury/ApiRestOngAlkemy | /src/test/java/org/alkemy/somosmas/controller/TestimonialServiceUnitTests.java | UTF-8 | 2,984 | 2.203125 | 2 | [] | no_license | package org.alkemy.somosmas.controller;
import org.alkemy.somosmas.SomosMasUnitTests;
import org.alkemy.somosmas.model.Testimonial;
import org.alkemy.somosmas.repository.TestimonialRepository;
import org.alkemy.somosmas.service.impl.ImageHandlerServiceImpl;
import org.alkemy.somosmas.service.impl.TestimonialServiceIm... | true |
1098405346e5a8262abc8b3ad1d7017fb64c0404 | Java | zhaoy1992/xtbg-whtjy-new | /src/main/java/com/chinacreator/xtbg/core/subsystemmanage/entity/SubsysUseInfoBean.java | UTF-8 | 2,028 | 1.90625 | 2 | [] | no_license | package com.chinacreator.xtbg.core.subsystemmanage.entity;
import com.chinacreator.xtbg.core.common.dbbase.entity.XtDbBaseBean;
/**
*
*<p>Title:SubsysUseInfoBean.java</p>
*<p>Description:子系统使用信息bean</p>
*<p>Copyright:Copyright (c) 2013</p>
*<p>Company:湖南科创</p>
*@author 夏天
*@version 1.0
*2013-4-28... | true |
b74295ecae61ac361da901d1c4847128f9c92176 | Java | jgomezr/consulteca | /consulteca/Consulteca/app/src/main/java/org/grameenfoundation/consulteca/synchronization/SynchronizationManager.java | UTF-8 | 52,376 | 1.890625 | 2 | [] | no_license | package org.grameenfoundation.consulteca.synchronization;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.util.Log;
import com.google.gson.*;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlE... | true |
460a472c99731138e5e5593682973126cc314731 | Java | mayuba/Battleship | /src/fr/enseirb/battleship/Player.java | UTF-8 | 636 | 3.046875 | 3 | [] | no_license | package fr.enseirb.battleship;
public abstract class Player {
protected String name;
protected int score;
protected Grid grid;
public Player(String name) {
this.name = name;
this.score = 0;
}
public Grid getGrid() {
return grid;
}
public String getName() {
return name;
}
public boolean check... | true |
92144c06ad4e89ce3fa0ac857e6205531758f54e | Java | mfarnoosh/occupy | /occupy-server/src/main/java/com/mcm/processors/EventProcessor.java | UTF-8 | 619 | 2.0625 | 2 | [] | no_license | package com.mcm.processors;
import com.mcm.entities.mongo.events.BaseEvent;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.concurrent.Callable;
/**
* Created by alirezaghias on 1/6/2017 AD.
*/
abstract class EventProces... | true |
ea38879cb545b7a7f47e08765150373eadacfde8 | Java | fengwuxp/some-examples | /oak-organization/services/src/main/java/com/oak/organization/services/organization/info/OrganizationInfo.java | UTF-8 | 2,515 | 1.8125 | 2 | [] | no_license | package com.oak.organization.services.organization.info;
import com.levin.commons.service.domain.Desc;
import com.oak.organization.enums.ApprovalStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
impor... | true |
f7af840c7079472b723e6c325806e19976f7bd49 | Java | Hanyauku123/Tarea_Laboratorio_4 | /src/AbstractFactory/Convertir/Binario.java | UTF-8 | 485 | 2.8125 | 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 AbstractFactory.Convertir;
/**
*
* @author soporte
*/
public class Binario implements Convertir{
@Overrid... | true |
f6ff846b895bf0ec14c9e583c8244d8a48fce7a7 | Java | seijuro/java-common-lib | /src/main/java/com/github/seijuro/common/IJSONConvertable.java | UTF-8 | 141 | 1.75 | 2 | [] | no_license | package com.github.seijuro.common;
import org.json.simple.JSONObject;
public interface IJSONConvertable {
JSONObject toJSONObject();
}
| true |
cb9a5ba21bd48dc3b509c9ea501578eeb5694d8d | Java | kevinli194/voogasalad_BitsPlease | /src/engine/collision/objects/EnemyCollisionObject.java | UTF-8 | 928 | 2.421875 | 2 | [
"MIT"
] | permissive | package engine.collision.objects;
import engine.gameObject.GameObject;
/**
*
* @author Ben
*
*/
public class EnemyCollisionObject extends CollisionObject {
@Override
protected void handlePowerupCollisionObject(GameObject thisOne,
GameObject other) {
myCollision.reverseVelocites(thisOne, other);
}
@Ov... | true |
c507741b988ed065498de586be50fa07dd8704e6 | Java | tcmhoang/FPT-Java-OOP | /LAB_Dump/PersManagement_File/src/Business/FileManagement.java | UTF-8 | 1,427 | 3.25 | 3 | [] | no_license | package Business;
import java.io.*;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class FileManagement
{
//get new content
public static String getUpdates(String pathFileInput) throws FileNotFoundException
{
Set<String> newContent = new HashSet<>();
File... | true |
365ff7feb366da229e0f82a0d90ac34add52cc2e | Java | liveqmock/javalib | /ygsoft.finance.common/legacysrc/javax/sql/rowset/serial/SerialClob.java | GB18030 | 20,194 | 2.546875 | 3 | [] | no_license | /*
* @(#)SerialClob.java 1.11 04/08/10
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package javax.sql.rowset.serial;
import java.sql.*;
import java.io.*;
/**
* A serialized mapping in the Java programming language of an SQL <... | true |
1765726cccdde6556ec6c05d8874d4cb3c69055a | Java | L1j-Kiyoshi/kys8.1 | /src/l1j/server/server/serverpackets/S_HPMeter.java | UTF-8 | 1,284 | 2.359375 | 2 | [] | no_license | package l1j.server.server.serverpackets;
import l1j.server.server.Opcodes;
import l1j.server.server.model.L1Character;
public class S_HPMeter extends ServerBasePacket {
private static final String _typeString = "[S] S_HPMeter";
private byte[] _byte = null;
public S_HPMeter(int objId, int hpRat... | true |
79a8214e9a379deb3f1c93264ad710e97e8b9c20 | Java | psm7047/springframework | /src/main/java/com/mycompany/webapp/service/BoardsService2.java | UTF-8 | 1,073 | 2.03125 | 2 | [] | no_license | package com.mycompany.webapp.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mycompany.webapp.dao.BoardsDao2;
import com.mycompany.webapp.dto.Board;
import com.mycompany.webapp.dto.Pager;
@Service
public class B... | true |
c24116786c3c896c4ad06cfb821b994e73b0e87f | Java | hnteam/bubuka_android | /app/src/main/java/ru/espepe/bubuka/player/service/sync/SyncProgressReport.java | UTF-8 | 711 | 2.03125 | 2 | [] | no_license | package ru.espepe.bubuka.player.service.sync;
import java.util.List;
/**
* Created by wolong on 27/08/14.
*/
public class SyncProgressReport {
private String type;
//public int filesTotal;
//public int filesComplete;
private List<SyncFileProgressReport> filesInProgress;
public SyncProgressRepor... | true |
fc50fbd8b7813fc2014a92f3a3a2dcdade002547 | Java | bellmit/ecology | /src/main/java/ecustom/entities/HrmResource.java | UTF-8 | 1,443 | 2.09375 | 2 | [] | no_license | package ecustom.entities;
public class HrmResource {
private Integer id;
private String lastName;
private String loginId;
private String password;
private Integer subCompanyId;
private Integer departmentId;
private Integer jobTitle;
private String workCode;
private String email;
public String getPassword(... | true |
d33a7633118b319e17994de57ef7ab15f5226c21 | Java | n01111786/movietuvi-master | /app/src/main/java/com/example/anubhavchoudhary/movietuvi/AboutUS.java | UTF-8 | 1,789 | 2.1875 | 2 | [] | no_license | package com.example.anubhavchoudhary.movietuvi;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class AboutUS extends AppCompatActivity {
private TextView first,secon... | true |
fd5302751a5b216e8553a517f2c151a3b2e29e16 | Java | huanglongf/enterprise_project | /service-impl-wms/src/main/java/com/jumbo/wms/manager/task/jd/JdOrderTaskImpl.java | UTF-8 | 3,239 | 1.90625 | 2 | [] | no_license | package com.jumbo.wms.manager.task.jd;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.SingleColumnRowMapper;
import com.baozun.task.annotation.SingleTaskLock;
import com.jumbo.dao.warehouse.BiChannelDao;
import co... | true |
12d27a87eb229b4a4b9da4c5d2f9214c562eda3b | Java | Piochat/Tarea_Restful_Java | /src/main/java/negocio/DibujanteJson.java | UTF-8 | 3,275 | 2.578125 | 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 negocio;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import... | true |
999ae018745d0c66c9a8225242594d771d03866f | Java | adgadhiya/MyFirstProjects | /app/src/main/java/info/androidhive/slidingmenu/Data_receiver_Fragment.java | UTF-8 | 885 | 2.25 | 2 | [] | no_license | package info.androidhive.slidingmenu;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class Data_receiver_Fragme... | true |
ee1d6bfc3660794420826c29f4e7ebc96f072028 | Java | Hameleon80/FinalProject | /src/ua/nure/ahtirskiy/finalProject/tests/FlightTest.java | UTF-8 | 763 | 2.671875 | 3 | [] | no_license | package ua.nure.ahtirskiy.finalProject.tests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ua.nure.ahtirskiy.finalProject.entity.Flight;
/**
* Testing method isEmpty() from class Flight.
*
* @author Y.Ahtirskiy
**/
... | true |
fe20a938390a0ce8ea5f606298e834cb2afdb21c | Java | johnaohara/hqlParsing | /src/orm_5/java/org/jboss/perf/ORM5HQLParser.java | UTF-8 | 879 | 1.976563 | 2 | [] | no_license | package org.jboss.perf;
import antlr.RecognitionException;
import antlr.TokenStreamException;
import antlr.collections.AST;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.hql.internal.ast.HqlParser;
/**
* Created by johara on 25/01/17.
*/
public class ORM5HQLParser implements HQLPar... | true |
02315bf62a16020c6304730607913bd1593a60ab | Java | chengzhu6/SharedPreferencePractice | /app/src/main/java/com/thoughtworks/myapplication/SPActivity.java | UTF-8 | 1,551 | 2.375 | 2 | [] | no_license | package com.thoughtworks.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class SPActivity extends AppCompatActivity {
private static... | true |
c66884473804b8061f9c813de2fd0f199e917e7f | Java | somalians/stack-java-backend | /src/main/java/backend/repository/PessoaRepository.java | UTF-8 | 352 | 1.820313 | 2 | [] | no_license | package backend.repository;
import backend.model.Pessoa;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
/**
* Created by adriano on 24/02/16.
*/
@Repository
@Transactional
public interface PessoaRepository extends... | true |
d6025ebadd104805a23f883476616fe75b318239 | Java | zhao907219202/GreenKitchen | /src/main/java/com/zy/dto/Recipe.java | UTF-8 | 4,245 | 2.203125 | 2 | [] | no_license | package com.zy.dto;
import java.util.HashSet;
import java.util.Set;
/**
* Recipe entity. @author MyEclipse Persistence Tools
*/
public class Recipe implements java.io.Serializable {
// Fields
private Integer id;
private User user;
private String title;
private Integer collectednum;
private Integer likednum... | true |
53cec23205c709f5aa4ae8771eeacd2b2c5f91a8 | Java | Braden98/Algorithm | /Sort/Heap.java | UTF-8 | 2,463 | 4.03125 | 4 | [] | no_license | package Algorithm.Sort;
/**
* @Description (二叉)堆的设计与实现
* 堆是一棵完全二叉树,且每个节点大于其任意一个孩子,故其增删效率高
* 堆在内部由 数组线性表 实现,也可以改为其他数据结构,上述规约不变即可
* @Author ubique
* @Date 2019/5/16 11:44 AM
*/
public class Heap <E extends Comparable<E>> {
private java.util.ArrayList<E> list = new java.util.ArrayList<>();
public Heap(){
... | true |
c32410f1dc6ca9b2c572310ff5f65ccf6fccef7d | Java | YingYou/wallgame | /FlowAuto-22/app/src/main/java/com/yw/FlowAuto/view/SharePageAdapter.java | UTF-8 | 2,118 | 2.34375 | 2 | [] | no_license | /**
* @Title: BusinessDetailsAdapter.java
* @Package com.bw.mmd.business.adapter
* @Description: TODO(用一句话描述该文件做什么)
* @author YangWei
* @date 2014-7-17 下午8:19:18
* @version V1.0
*/
package com.yw.FlowAuto.view;
import android.content.Context;
import android.support.v4.app.Fragment;
import andr... | true |
58415c46a98ac4eda9e7ce78fd317083182104ec | Java | Halatak/33_Projet_Immo_WS | /src/main/java/fr/adaming/model/BienLocation.java | WINDOWS-1250 | 2,709 | 2.40625 | 2 | [] | no_license | package fr.adaming.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@DiscriminatorValue(value = "Location")
@Entity
public class BienLocation extends BienImmobilier implements Serializable {
private static final long ... | true |
f5c4b1ca79cae18baf5cc22aeb44ed6d00c1f2c4 | Java | trowqe/phoneshop | /core/src/main/java/com/es/core/service/order/OrderServiceImpl.java | UTF-8 | 2,570 | 2.375 | 2 | [] | no_license | package com.es.core.service.order;
import com.es.core.dao.order.OrderDao;
import com.es.core.model.cart.Cart;
import com.es.core.model.order.Order;
import com.es.core.model.order.OrderItem;
import com.es.core.model.order.OrderStatus;
import com.es.core.model.order.OutOfStockException;
import com.es.core.service.cart.C... | true |
9e37ec79ef160f3888d6a55a1daefd5295252e52 | Java | Cfilipovic/Bukkit | /ShopAPI/src/com/cfil360/shopapi/ShopAPI.java | UTF-8 | 1,084 | 2.328125 | 2 | [] | no_license | package com.cfil360.shopapi;
import com.cfil360.shopapi.Objects.Purchase;
import com.cfil360.shopapi.Util.InventoryHandler;
import com.cfil360.shopapi.Util.MySQL;
import com.cfil360.shopapi.Util.PurchaseInventory;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.plugin.java.Jav... | true |
6b671148125c1da80c8778969cbf06bc2761918d | Java | sivapolam/365Carnival | /app/src/main/java/com/techplicit/mycarnival/ui/activities/TestActivity.java | UTF-8 | 411 | 1.609375 | 2 | [] | no_license | package com.techplicit.mycarnival.ui.activities;
import android.os.Bundle;
import com.techplicit.mycarnival.R;
/**
* Created by pnaganjane001 on 25/01/16.
*/
public class TestActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... | true |
0bbfe616f77ff5ef08e4b9726cd72503e77817fd | Java | gcdd1993/demos | /demo-java-design-pattern/src/main/java/bridgePattern/exercise/Client.java | UTF-8 | 308 | 1.664063 | 2 | [] | no_license | package bridgePattern.exercise;
/**
* @author: gaochen
* Date: 2019/1/21
*/
public class Client {
public static void main(String[] args) {
Export export = new XMLExport(new MysqlType());
export.export();
export = new PDFExport(new PGType());
export.export();
}
}
| true |
ce099e271708db073a4f541742632670068fa5aa | Java | esther9998/StreetFighter_Java | /src/Ryu.java | UTF-8 | 5,989 | 2.4375 | 2 | [] | no_license | import java.awt.Graphics;
import java.awt.Image;
import java.awt.KeyEventPostProcessor;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JF... | true |
4895ee7be7c00a804fec1dbdc376c12f38e22024 | Java | rtaneza/Carbs | /src/com/gmail/taneza/ronald/carbs/myfoods/MyFoodDetailsActivity.java | ISO-8859-10 | 9,649 | 1.890625 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013 Ronald Taeza
*
* 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 agre... | true |
ae428770637061b25ba1cd66a1bbdeecf9cbfcb2 | Java | artur-android/TestSamsungRecorder | /app/src/main/java/com/sec/android/app/voicenote/p007ui/view/PlaySpeedPopup.java | UTF-8 | 9,292 | 1.6875 | 2 | [] | no_license | package com.sec.android.app.voicenote.p007ui.view;
import android.content.Context;
import android.content.res.ColorStateList;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.PopupWi... | true |
2ff29119d884f8e1c529fc495603d1bba31efece | Java | hectorggp/BUYnRATE | /src/com/buynrate/apps/android/BnRApplication.java | UTF-8 | 260 | 1.71875 | 2 | [] | no_license | package com.buynrate.apps.android;
import android.app.Application;
import android.util.Log;
public class BnRApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Log.d("BnRApplicaton", "Applicatoni Start!");
}
}
| true |
9fc7b16d4d6491b1dbccf99372b06065cbd13aa7 | Java | thanhnguyen2112/JavaApplication_AdvancedJava | /src/Generics/MyList.java | UTF-8 | 235 | 2.875 | 3 | [] | no_license | package Generics;
public class MyList {
private final Object [] items = new Object [10];
private int count;
public void add(Object item) {
items[count++] = item;
}
public Object get (int index) {
return items[index];
}
}
| true |
d93d3fc74711c62c1ac229d0ce0ec4f9b6fe1e53 | Java | ArturchiKGilyazov/5_semestr | /Stickman-master/Stickman-master/src/main/java/request_type/FriendRequests.java | UTF-8 | 2,887 | 2.28125 | 2 | [] | no_license | package request_type;
import DB.FRIEND_DB;
import exceptions.UnknownTypeOfRequest;
import managers.Managers;
import com.google.protobuf.MessageLite;
import friend.Friend;
import proto_files.DangerStickman;
import proto_files.FriendMessages;
import user.User;
import java.sql.SQLException;
import java.util.List;
import... | true |
7230edb07d1b0a749d3cea668b821dfd196db466 | Java | vendor-vandor/pidome-unofficial | /pidome-pidome-client/src/org/pidome/client/system/client/data/ClientData.java | UTF-8 | 14,537 | 1.796875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pidome.client.system.client.data;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
im... | true |
9c3caf1205d55808561b8e01d5b1ab17a2d0df92 | Java | SebaFarias/modulo_programacion_basica_en_java | /java/Banco/Banco.java | UTF-8 | 8,239 | 3.21875 | 3 | [] | no_license | package Banco;
import java.util.Scanner;
//19-05-2021
public class Banco {
public static void main(String[] args) {
Scanner leer = new Scanner(System.in);
boolean continuar = true;
int seleccion;
float saldo = 0F;
do{
seleccion = menuPrincipal( leer... | true |
22eb2156a3cd9194d57cbdccb70cda67199aa806 | Java | zlren/TaoTaoNew | /taotao2-sso/src/main/java/lab/zlren/taotao/sso/controller/UserController.java | UTF-8 | 4,660 | 2.28125 | 2 | [] | no_license | package lab.zlren.taotao.sso.controller;
import lab.zlren.taotao.common.utils.CookieUtils;
import lab.zlren.taotao.sso.pojo.User;
import lab.zlren.taotao.sso.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.... | true |
33329d68e4246ceec8102b62a178332fdebae877 | Java | feantori/java-actionscript-api-for-android | /droid/utils/IDataOutput.java | UTF-8 | 4,660 | 2.296875 | 2 | [] | no_license | /**
* Jasafa - Java ActionScript API For Android
* Java implementation of ActionScript3
*
* MIT Licensed (http://www.opensource.org/licenses/mit-license.php)
* Copyright (c) 2010 Mj Mendoza IV <mjmendoza@konsolscript.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this... | true |
a2827f858da8b33f789beb581b118844940ab0c4 | Java | LightSun/InjectKnife | /inject-knife/src/test/java/injectknife/test/SimpleTest.java | UTF-8 | 1,333 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package injectknife.test;
import com.heaven7.java.injectknife.*;
import com.heaven7.java.injectknife.internal.InjectService;
import com.heaven7.java.injectknife.internal.ProvideMethod;
import org.junit.Test;
@InjectService(SimpleTest_$InjectService$.class)
public class SimpleTest implements InjectProvider , InjectPar... | true |
ab32039249ed932eee439d78c2238b9760786a7c | Java | nitishgoyal13/statesman | /statesman-model/src/main/java/io/appform/statesman/model/Action.java | UTF-8 | 304 | 1.804688 | 2 | [] | no_license | package io.appform.statesman.model;
import io.appform.statesman.model.action.ActionType;
import io.appform.statesman.model.action.template.ActionTemplate;
/**
*
*/
public interface Action<J extends ActionTemplate> {
ActionType getType();
void apply(J actionTemplate, Workflow workflow);
}
| true |
819f6173a21a525c7e6c1bf44877cdcd6b2cff0f | Java | bitcoinaustria/bliver | /app/src/at/bitcoinaustria/bliver/db/SqlHelper.java | UTF-8 | 2,537 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package at.bitcoinaustria.bliver.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import at.bitcoinaustria.bliver.Bitcoins;
public class SqlHelper extends SQLiteOpenHelper {
private static final String DB_NAME = "bliver";
priv... | true |
d6b778460606d237e3f8e700eb9523d383224a57 | Java | kbhat1234/automation-selenium-java | /src/main/java/com/selenium/testing/automation/WebElementTest1.java | UTF-8 | 1,863 | 2.46875 | 2 | [] | no_license | package com.selenium.testing.automation;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class WebElementTest1 {
static String ap... | true |