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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
02a0f9d1f35e0aaaed4f5164732f01842c13ed07 | Java | Ruiggg/JAVA_Learning | /ch10/src/MyString1.java | UTF-8 | 1,956 | 3.4375 | 3 | [] | no_license | public class MyString1 {
private char[] string;
public MyString1(char[] s) {
string = new char[s.length];
int i = 0;
for(char e:s) {
string[i] = e;
i++;
}
}
public char charAt(int index) {
return string[index];
}
public int length() {
return string.length;
}
public MyString1 substring(... | true |
b33a51742485fc83d34484429ac55a15592ab121 | Java | seijikohara/simple-db-tester | /simple-db-tester/src/main/java/net/relaxism/testing/db/tester/dataset/xls/XlsPatternTable.java | UTF-8 | 12,241 | 2.171875 | 2 | [] | no_license | package net.relaxism.testing.db.tester.dataset.xls;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import net.relaxism.testing.db.tester.dataset.PatternTable;
import net.relaxism.testing.db.tester.util.StringUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DateUtil;
import org.a... | true |
012ad7f12aedfe397460fa619cb160881ed86cb7 | Java | sq421784321/coding-practice | /Array/163-Missing-Ranges.java | UTF-8 | 1,326 | 3.4375 | 3 | [] | no_license | class Solution {
public List<String> findMissingRanges(int[] nums, int lower, int upper) {
List<String> ans = new ArrayList<>();
if (nums == null || nums.length == 0) {
helper(lower, upper, ans);
return ans;
}
// Handle the left boundary
if (n... | true |
39fde5789e4be33eeddb6ac761dab4810aff43da | Java | Harrying/Spring_Study | /spring_IOC/src/com/briup/ioc/event/RainListener.java | UTF-8 | 377 | 2.53125 | 3 | [] | no_license | package com.briup.ioc.event;
import org.springframework.context.ApplicationListener;
public class RainListener implements ApplicationListener<RainEvent> {
@Override
public void onApplicationEvent(RainEvent rainEvent) {
//event.getSource()获取事件源
System.out.println("唐僧大喊:" + rainEvent.getSource()... | true |
1cc66638d861f1d547c2dd50797832fb03b8d9dd | Java | zahegroj/soa | /OpenSOA-Book/Chapter07/7.2.2jBPMServices/src/main/java/opensoa/sca/impl/ListProcessInstancesImpl.java | UTF-8 | 4,872 | 1.828125 | 2 | [] | no_license | package opensoa.sca.impl;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Map;
import opensoa.sca.JBPMHelper;
import opensoa.sca.ListProcessInstances;
import opensoa.sca.vo.xsd.ProcessInstanceVO;
import opensoa.sca.vo.xsd.ProcessInstanceVOType;
import opensoa.sca.vo.xsd.ProcessVarsType;
imp... | true |
fbbe970cb7a02de66e44cec1420c9815a7fb9f7f | Java | cdtaxi/taxi | /src/main/java/cn/slkj/taxi/controller/cases/CaseController.java | UTF-8 | 4,861 | 2.078125 | 2 | [] | no_license | package cn.slkj.taxi.controller.cases;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
aa76c07f587022a959ef1eea6c9f7df1317e6ab5 | Java | ng887/AED_Repository | /AED_assignment05_Solutions_NehaGupta/DessertShoppe.java | UTF-8 | 460 | 2.640625 | 3 | [] | no_license | package assignment5;
public class DessertShoppe {
static double taxRate = 6.5;
static String storeName = "M & M Dessert Shoppe";
static int maxSizeItemName = 22;
static int width = 10;
public static String cents2dollarsAndCents(int cents){
String result="";
int dollar = cents/100;
cents = cents % ... | true |
5c574c33dc02245b09a0f506e83d8da7a6246da5 | Java | djlc/LCPlugin | /src/main/java/com/github/djlc/LevelingTNT.java | UTF-8 | 9,432 | 2.21875 | 2 | [] | no_license | package com.github.djlc;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.... | true |
08a4d7562065e5a849155573bbd383b1fd424f69 | Java | amithvardhan95/myfirstrepo | /calc.java | UTF-8 | 2,543 | 3.78125 | 4 | [] | no_license | import java.io.*;
class Calculator
{
static int a,b,c;
static int i;
static double d;
void print() throws IOException
{
System.out.println("");
System.out.println("");
System.out.println("");
System.out.print("\033[H\033[2J");
System.out.flush();
Sys... | true |
6b438b5a1c7b7a8520f1e2299eb705220d1927c5 | Java | fgulfo/OrdersAgilesv2 | /src/java/co/com/ordersAgiles/entidades/Ordbdg.java | UTF-8 | 2,072 | 2.0625 | 2 | [] | no_license | package co.com.ordersAgiles.entidades;
// Generated 27/02/2015 01:39:57 PM by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
/**
* Ordbdg generated by hbm2java
*/
public class Ordbdg implements java.io.Serializable {
private int id;
private String descripcion;
private Int... | true |
999da4f2a55d901cce9056942629078b6363aba0 | Java | Snow02203835/JavaCode | /LeetCode/src/code/P0517.java | UTF-8 | 558 | 3.15625 | 3 | [] | no_license | package code;
import java.util.Arrays;
/**
* 超级洗衣机
* @author snow
* @since 2021/09/29 10:10
*/
public class P0517 {
public int findMinMoves(int[] machines) {
int sums = Arrays.stream(machines).sum();
if (sums%machines.length != 0) {
return -1;
}
int avg = sums / mac... | true |
01531be65d1870c3cda173c2d55215ec1e279912 | Java | ssssingh720/FST | /app/src/main/java/com/fst/modal/BidSubmitVO.java | UTF-8 | 879 | 1.710938 | 2 | [] | no_license | package com.fst.modal;
/**
* Created by Sudhir Singh on 17,October,2018
* ESS,
* B-65,Sector 63,Noida.
*/
public class BidSubmitVO {
EventsVO eventsVO;
CategoryVO categoryVO;
ChoiceVO choiceVO;
PointsVO pointsVO;
public EventsVO getEventsVO() {
return eventsVO;
}
public void ... | true |
8eefb2be00690afea53e8c780c237e40f48dbda7 | Java | mai13drd/peass | /measurement/src/main/java/de/dagere/peass/measurement/analysis/MultipleVMTestUtil.java | UTF-8 | 11,409 | 1.96875 | 2 | [] | no_license | package de.dagere.peass.measurement.analysis;
import java.io.File;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import javax.xml.bind.JAXBException;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.math3.stat.descriptive.DescriptiveSt... | true |
0c1938d2fe0482fa99338c3dcb9e453f5112c93e | Java | ngattaro/Bomberman | /src/bomberman/entities/character/enemy/ai/AIMedium.java | UTF-8 | 2,726 | 2.875 | 3 | [] | no_license | package bomberman.entities.character.enemy.ai;
/**
* Class AIMedium (tim duong di toi bomber)
* @author Do Thi Hong Ngat
* @version 1.0
* @since 2018-11-10
*/
import bomberman.Board;
import bomberman.entities.character.Bomber;
import bomberman.entities.character.enemy.Enemy;
import bomberman.entities.tile.Wall;... | true |
a14a9820473cfcce6319f982b73159e808e2b6ea | Java | AllenXueKY/Mybatis_Revise | /day03_02dynamicSQL/src/main/java/com/allen/dao/UserDao.java | UTF-8 | 1,101 | 2.34375 | 2 | [] | no_license | package com.allen.dao;
import com.allen.domain.QueryVo;
import com.allen.domain.User;
import java.util.List;
/**
* 用户的持久层接口
*/
public interface UserDao {
/**
* 查询所有用户
* @return
*/
List<User> findAll();
/**
* 根据id查询用户信息
* @param userId
* @return
*... | true |
fa10816be2581ee058fa2a98b1608a3475bdf608 | Java | Patalayus/CalculatorApp | /app/src/main/java/com/laminar/calculator/calculator/QFormula.java | UTF-8 | 3,876 | 2.515625 | 3 | [] | no_license | package com.laminar.calculator.calculator;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import andro... | true |
8f365048c995e987c1a88dc088ac80475486f78f | Java | sanhee/JavaStudy | /src/etc/Thread/AddOneToN.java | UTF-8 | 2,229 | 4.15625 | 4 | [] | no_license | package etc.Thread;
class Result {
public long sum; // 그럼 Long 래퍼 클래스가 될 것 같은데, Synchronized는 Wrapper클래스는 안된다. 실제 클래스만 작동한다. => 구글에는 안나옴ㅋㅋㅋ
public void add(long i) {
sum += i;
}
}
public class AddOneToN extends Thread {
public AddOneToN(long start, long end, Result result) {
this.star... | true |
8b24749b0baa2d9a61dce5ee38aa40715ffd514a | Java | treefrog98/Interview | /LeetCode/TwoSumSorted.java | UTF-8 | 658 | 3.21875 | 3 | [] | no_license | public class TwoSumSorted {
public static void main(String[] args) {
}
public static int[] twoSum(int[] numbers, int target) {
int [] arr = new int[2];
// first find the index it is less than
int leftBound = 0;
int rightBound = numbers.length-1;
while(numbers[leftBoun... | true |
184ad554cd09f20be43bbc843504af9d743b8316 | Java | IvanNikolaychuk/WebSite | /src/main/java/com/entity/Article.java | UTF-8 | 559 | 2.28125 | 2 | [] | no_license | package com.entity;
import lombok.Data;
import javax.persistence.*;
import java.util.*;
@Entity
@Data
public class Article {
@Id
private String name;
private String preview;
private Date creationDate;
@ElementCollection
@Column(name="tag")
private List<String> tags;
public Article(St... | true |
8dceee2dc693023266772a7f42dd00fbfd66b699 | Java | atulokhande93/atul-codility | /src/main/java/com/test/atul/pageobject/OrderSummaryPage.java | UTF-8 | 662 | 2.09375 | 2 | [] | no_license | package com.test.atul.pageobject;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.test.atul.webdrivermanager.WebDriverUtility;
public class OrderSummaryPage extends WebDriverUtility{
public OrderSummaryPage () {
... | true |
a74b6650ac4eebdacc777941ad3fb38aef304bb5 | Java | SkalskiP/WebServicesShowOff | /00_main_parking_project/02_account_service/src/main/java/com/br400/Lifecycle/ServletLifecycle.java | UTF-8 | 1,274 | 2.296875 | 2 | [] | no_license | package com.br400.Lifecycle;
import com.google.auth.oauth2.GoogleCredentials;
import com.google.common.io.Resources;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import java.io.IOException;
impo... | true |
67a608f3e9dd4a489a03ba856822f95689d416d2 | Java | exedio/persistence-console | /src/com/exedio/cope/console/RevisionLine.java | UTF-8 | 5,119 | 1.789063 | 2 | [
"CC-BY-2.5"
] | permissive | /*
* Copyright (C) 2004-2009 exedio GmbH (www.exedio.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versi... | true |
22ebf6865d4bb3858d14682bb89ed9b086264509 | Java | hzhsohn/android.chinachess | /ChinaChess/src/chinachess/mid/MID_ChessBoard.java | UTF-8 | 16,606 | 2.265625 | 2 | [] | no_license | package chinachess.mid;
import java.util.LinkedList;
import android.util.Log;
import chinachess.mid.MID_IPiece.PieceColor;
import chinachess.mid.MID_IPiece.PieceStatus;
import chinachess.mid.MID_IPiece.PieceType;
public class MID_ChessBoard {
public static final String TAG = MID_ChessBoard.class.getSimp... | true |
41b95c59f89c87a229ff2dc48e87865cf8e5cc50 | Java | igorooo/Funkcyjne | /Programy/TestOverride.java | UTF-8 | 490 | 3.234375 | 3 | [] | no_license | class A {
@Override public String toString(){return "z klasy A; ";}
}
class B extends A {
@Override public String toString(){return "z klasy B; ";}
}
class C extends B {
@Override public String toString(){return "z klasy C; ";}
}
public class TestOverride {
public static ... | true |
eaf35a03ab1014f9e5a5eb9a29f5eab89295a5cd | Java | Rabbytes/grails-data-mapping | /grails-datastore-gorm-hibernate5/src/main/groovy/org/grails/orm/hibernate/cfg/HibernateMappingContextConfigurationBuilder.java | UTF-8 | 5,136 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package org.grails.orm.hibernate.cfg;
import org.grails.orm.hibernate.EventListenerIntegrator;
import org.grails.orm.hibernate.GrailsSessionContext;
import org.grails.orm.hibernate.HibernateEventListeners;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.BootstrapServiceRegistry;
import o... | true |
e00d7f356ad90bf52ccb00b0465169e9a8d38b1f | Java | RachidSuccar/Android-Keep | /src/com/funnel/keep/requestObjects/RegiterSessionReqestObject.java | UTF-8 | 245 | 1.546875 | 2 | [] | no_license | package com.funnel.keep.requestObjects;
import org.codehaus.jackson.annotate.JsonProperty;
public class RegiterSessionReqestObject extends DeviceInfoRequestObject {
@JsonProperty("BrowserFingerprint")
public String BrowserFingerprint;
}
| true |
016964b1f0379cffedab7799d8bb90639f943661 | Java | Victor2018/SeagullPlayer | /app/src/main/java/com/victor/player/HandleTouchHelper.java | UTF-8 | 7,441 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.victor.player;
import android.app.Activity;
import android.content.Context;
import android.media.AudioManager;
import android.view.MotionEvent;
import android.view.View;
import android.view.WindowManager;
import com.victor.player.library.util.DensityUtil;
import com.victor.player.library.util.ScreenOrient... | true |
7e1d3fac15aaf3ccceac7fa9688bb049e4cbc2e1 | Java | SumanR/restful-product-service | /productserv-contracts/src/main/java/com/restservice/serviceContracts/productserv/PricingInformation.java | UTF-8 | 735 | 2.171875 | 2 | [] | no_license | package com.restservice.serviceContracts.productserv;
import com.fasterxml.jackson.annotation.*;
import javax.xml.bind.annotation.XmlRootElement;
@JsonPropertyOrder({"value", "currency_code"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PricingInformation {
... | true |
98257a7fd474cca9a00f63442ef6a5ae69a80454 | Java | medindian/tubesPBO | /src/view/cariLowongan.java | UTF-8 | 7,974 | 2.375 | 2 | [] | no_license | package view;
import java.awt.event.ActionListener;
import database.Database;
import java.util.HashMap;
public class cariLowongan extends javax.swing.JFrame implements View{
public cariLowongan() {
initComponents();
bindCombo1();
}
public void bindCombo1(){
Database db = ... | true |
69b62ff7bd94d4c89363ee8c83d4b9abc6f5dda8 | Java | Nitinpal269/JavaWeb_Shopping_Project | /ApplicationInitializer.java | UTF-8 | 670 | 1.960938 | 2 | [] | no_license | import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class ApplicationInitializer extends HttpServlet
{
public void init(javax.servlet.ServletConfig sc)throws javax.servlet.ServletException
{
ServletContext ctx=sc.getServletContext();
Str... | true |
ec9d62dfe8e83957ae8cf1f424d6131528d3c9dc | Java | zhangjunlin/FirstProject | /znhyAdmin/src/main/java/com/auxing/znhy/service/IMeetroomService.java | UTF-8 | 359 | 1.695313 | 2 | [] | no_license | package com.auxing.znhy.service;
import com.auxing.znhy.entity.Meetroom;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @author auxing
* @since 2018-10-16
*/
public interface IMeetroomService extends IService<Meetroom> {
List<Meetroom> getFr... | true |
5ef4f397233653542a4b9f9da11554308a4dddea | Java | radojicicBojan/Projekat_Web_Programiranje | /src/main/java/com/example/projekatfc/service/ClanService.java | UTF-8 | 3,481 | 2.234375 | 2 | [] | no_license | package com.example.projekatfc.service;
import com.example.projekatfc.model.Clan;
import com.example.projekatfc.model.DTO.KorisnikDto;
import com.example.projekatfc.model.DTO.LoginDto;
import com.example.projekatfc.model.OdradjenTrening;
import com.example.projekatfc.model.RezervisanTrening;
import com.example.projek... | true |
eb2d75f01a69a7f4040ac796946e116285f0bdc9 | Java | Ishika2418/Springrest | /src/main/java/com/springrest/springrest/services/CompanyService.java | UTF-8 | 439 | 2.0625 | 2 | [] | no_license | package com.springrest.springrest.services;
import java.util.List;
import com.springrest.springrest.entities.Company;
import com.springrest.springrest.entities.user;
public interface CompanyService {
public List<Company> getCompanies();
public Company getCompany(long companyId);
public int addCompany(... | true |
1a7ec4f0f7b5ee77163dbed1f9c43a9dbc4f487b | Java | PlumpMath/mix-android | /desktop/src/com/davidykay/mix/model/BinaryByteFactory.java | UTF-8 | 1,514 | 2.984375 | 3 | [] | no_license | package com.davidykay.mix.model;
import java.util.ArrayList;
import java.util.List;
import com.davidykay.mix.exception.ByteSizeException;
public class BinaryByteFactory implements ByteFactory {
@Override
public MIXByte make(int i) throws ByteSizeException {
MIXByte bite = new BinaryByte();
bite.set(i);
... | true |
4ad4c92cb01a62a4ed63524a6445bee033affcfe | Java | Lashniir/Spring2017 | /Project03/CM307LinkedList.java | UTF-8 | 2,355 | 3.328125 | 3 | [] | no_license | public class CM307LinkedList<E> implements CM307List<E>{
private Node<E> head=null;
private int size=0;
private class Node<E>{
private E data = null;
private Node<E> next=null;
}
public CM307LinkedList(){}
public void add(E e) {
Node<E> curr=head;
... | true |
654ad3868b99a1202b9b65ce2cff7aa0e18bae57 | Java | narumiya1/algoritma | /src/insertion_sort.java | UTF-8 | 880 | 3.6875 | 4 | [] | no_license | public class insertion_sort {
static int[] insertion ( int[] array ) {
int n = array.length ;
int max ;
int j ;
int i = 1 ;
//looping indeks array ketika kurang dari n
while ( i < n ){
System.out.print( "looping " +i+": ");
//array ke - i
... | true |
87090998195cb57b2264d2eb3a1571e6b845705e | Java | zhenxinlei/cs61b | /src/Algorithm/UniqueBSTII.java | UTF-8 | 1,251 | 3.40625 | 3 | [] | no_license | package Algorithm;
import java.util.ArrayList;
import java.util.List;
public class UniqueBSTII {
public List<TreeNode> generateTrees(int n) {
if (n<= 0)
return new ArrayList<>();
return genTree(1,n);
}
private List<TreeNode> genTree(int s, int e){
List<TreeN... | true |
d13ed83574a8cb2e57467a60af4e43bd69bab260 | Java | harryhoch/DeepPhe | /src/org/apache/ctakes/cancer/type/textsem/TnmClassification.java | UTF-8 | 7,784 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive |
/* First created by JCasGen Mon May 11 11:00:51 EDT 2015 */
package org.apache.ctakes.cancer.type.textsem;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.cas.FSArray;
import org.apache.ctakes.typesystem.type.textsem.... | true |
38e06d93e841d0224691e60a2e6b50706d9f0958 | Java | olegmentuz1991/Day1ProjectsMentuz | /src/by/javatr/task1/util/LastNumberSquareCalculation.java | UTF-8 | 669 | 3.046875 | 3 | [] | no_license | package by.javatr.task1.util;
import by.javatr.scanner.EnterTheNumber;
public class LastNumberSquareCalculation{
/**
*
* @param number
* @return int
*/
public static int caseNumbers(int number) {
switch (number % 10) {
case 1:
case 9:
... | true |
61156ad38212c7b2d67500f588026e384a2d8fd7 | Java | P79N6A/speedx | /reverse_engineered/sources/com/beastbikes/android/modules/user/ui/ProfileFragment$1.java | UTF-8 | 1,118 | 2.046875 | 2 | [] | no_license | package com.beastbikes.android.modules.user.ui;
import android.os.AsyncTask;
import com.beastbikes.framework.business.BusinessException;
class ProfileFragment$1 extends AsyncTask<Long, Void, Integer> {
/* renamed from: a */
final /* synthetic */ ProfileFragment f11751a;
ProfileFragment$1(ProfileFragment ... | true |
0d106769821a25222bc391ffac34c104d708bc39 | Java | lkimilhol/cleanCode | /lkimilhol/src/main/java/stockKing/Constant.java | UTF-8 | 176 | 1.5625 | 2 | [] | no_license | package stockKing;
public class Constant {
final static int STOCK_MAX_COUNT = 100;
final static int STOCK_MAX_PRICE = 10000;
final static int SELECT_COUNT = 10;
}
| true |
47522123791f92d3ac74cb5028c5204a5647551c | Java | Jorge91/VGIW.Klondike | /klondike/src/main/java/miw/upm/es/klondike/MenuView.java | UTF-8 | 1,702 | 2.609375 | 3 | [] | no_license | package miw.upm.es.klondike;
import java.util.ArrayList;
import java.util.List;
public class MenuView {
private MenuController menuController;
private List<OptionView> optionViews;
public MenuView(MenuController menuController) {
super();
this.menuController = menuController;
Board board = menuController.... | true |
a6cdcaca6402183d101b32dd17a6cb09982929a7 | Java | smoly87/OnefoldMachine | /src/syntax/analyser/builders/WhileBuilder.java | UTF-8 | 1,799 | 2.375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package syntax.analyser.builders;
import compiler.expr.FunctionCallCompiler;
import compiler.expr.FunctionCompiler;
import compiler.ex... | true |
f0e698575f428fecdd2f42106988237829c16f85 | Java | majicmoo/EGLStuff | /Java2Eol/java/comicBooks/Artist.java | UTF-8 | 2,883 | 1.9375 | 2 | [] | no_license | /**
*/
package comicBooks;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Artist</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link comicBooks.A... | true |
066d039bc37146b9858a64de4cfa9f2542f20e48 | Java | apache/jackrabbit-filevault | /vault-validation/src/test/java/org/apache/jackrabbit/vault/validation/spi/impl/DuplicateUuidValidatorTest.java | UTF-8 | 3,767 | 1.921875 | 2 | [
"Apache-2.0",
"W3C"
] | 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 may ... | true |
a8227547d66586e4553cb001f660d2dacb354957 | Java | svefors/sweforce-vaadin | /activitiesplaces/src/main/java/sweforce/gui/activity/registry/ActivityFactoryRegistryImpl.java | UTF-8 | 4,104 | 2.328125 | 2 | [] | no_license | package sweforce.gui.activity.registry;
import sweforce.gui.activity.Activity;
import sweforce.gui.activity.ActivityMapper;
import sweforce.gui.activity.PlaceMatch;
import sweforce.gui.place.Place;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class ActivityFactoryRegistryImpl impleme... | true |
bb8df2116b279219bc9b2fbeb283d48da75affcd | Java | nesfernando/advent-of-code-2020 | /src/adventofcode/day18/NumberToken.java | UTF-8 | 230 | 2.09375 | 2 | [] | no_license | package adventofcode.day18;
public class NumberToken extends Token {
public NumberToken(String value) {
super(value);
}
@Override
public void transition(State state) {
// TODO Auto-generated method stub
}
}
| true |
ad9c9f0f185e182782200e0f340b412bbe894e3f | Java | vaibhavsuri/watermelon2014 | /Watermelon/watermelon/group5/Moving.java | UTF-8 | 1,827 | 2.828125 | 3 | [] | no_license | package watermelon.group5;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import watermelon.sim.Pair;
import watermelon.sim.Point;
import watermelon.sim.seed;
public class Moving {
public static ArrayList<seed> moveAround(
ArrayList<seed> seedList,
ArrayList<Pair>treeList,
... | true |
47a388f1a77919c0223861b571798db3807a5a6e | Java | kuplumosk/jmtest_3_1_4 | /src/main/java/com/kuplumosk/rest/services/UserService.java | UTF-8 | 429 | 2 | 2 | [] | no_license | package com.kuplumosk.rest.services;
import com.kuplumosk.rest.entitys.Role;
import com.kuplumosk.rest.entitys.User;
import java.util.List;
public interface UserService {
User findByUsername(String username);
void addUser(User user);
void updateUser(User user);
void deleteById(long id);
User findB... | true |
1d4c767cbfcc23a89e71722c36ee999821eb575c | Java | harrislegobrick/2020-comp | /src/main/java/frc/robot/commands/ShootCommand.java | UTF-8 | 2,813 | 2.5 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
6b9ec0435f3a90a44027094420be0cdfcdf5e378 | Java | paun90/Score | /src/main/java/com/htecgroup/score/repository/ScoreRepository.java | UTF-8 | 2,592 | 2.53125 | 3 | [] | no_license | package com.htecgroup.score.repository;
import java.time.ZonedDateTime;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.htecgroup.score.model.Score;
public interface ScoreRepository extends JpaRepository<Score, Lo... | true |
1379d386ff3e38b82157e4123a7a60b856aae2c6 | Java | inmadv02/proyecto_PROGRAMACION | /ProyectoT03_InmaculadaDominguez_DanielFernandez/src/crud/CrudTasks.java | UTF-8 | 592 | 2.25 | 2 | [
"CC0-1.0"
] | permissive | package crud;
import model.Objetos;
import controller.ControllerPersonaje;
import controller.ControllerEnemigo;
import model.Enemigo;
import datos.DatosTasks;
import model.Tasks;
public class CrudTasks {
public static void desactivarTasks (Tasks [] tasks, Enemigo [] listaEnemigos) {
int cero = 0, uno = 1, dos =... | true |
563ec66d3eb477e63654c6583c8f15cb22dc4bf9 | Java | ihmcrobotics/ihmc-open-robotics-software | /ihmc-humanoid-behaviors/src/main/java/us/ihmc/humanoidBehaviors/behaviors/debug/PartialFootholdBehavior.java | UTF-8 | 2,664 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package us.ihmc.humanoidBehaviors.behaviors.debug;
import java.util.ArrayList;
import controller_msgs.msg.dds.FootstepDataListMessage;
import controller_msgs.msg.dds.FootstepDataMessage;
import us.ihmc.communication.IHMCROS2Publisher;
import us.ihmc.euclid.tuple2D.Point2D;
import us.ihmc.euclid.tuple3D.Point3D;
impor... | true |
15397f9e446ad23b3ec5ecb3dcb91f054512aa26 | Java | dangtuanhuy/Alluring-Decors | /Source/Team4/src/java/user/manager/ServicesMB.java | UTF-8 | 1,329 | 2.203125 | 2 | [] | no_license | package user.manager;
import bean.ServicesFacade;
import entities.Services;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
@ManagedBean(name = "services... | true |
21cefc2e472a6930b72606822b0394c80b6d0f86 | Java | jacklaiu/Algorithms_Implementation | /src/jacklaiu/search/BinarySearchST.java | UTF-8 | 1,396 | 3.125 | 3 | [] | no_license | package jacklaiu.search;
import jacklaiu.utils.StdOut;
public class BinarySearchST<Key extends Comparable<Key>, Value> {
private Key[] keys;
private Value[] vals;
private int N;
public BinarySearchST(int capacity) {
keys = (Key[]) new Comparable[capacity];
vals = (Value[]) new Object[capacity];
}
public in... | true |
823f7c946874477c8bc2f979613b29ae91317bcb | Java | igor-kutepov/codeabbey | /src/test/java/com/kutepov/samples/codeabbey/BodyMassIndexTest.java | UTF-8 | 453 | 2.3125 | 2 | [] | no_license | package com.kutepov.samples.codeabbey;
import org.junit.Test;
/**
* @author Igor Kutepov
*/
public class BodyMassIndexTest extends BaseTest {
public BodyMassIndexTest() {
this.input = "3\n" +
"80 1.73\n" +
"55 1.58\n" +
"49 1.91\n";
this.output = ... | true |
17072446319d91f930688788e2e69db5e330eef9 | Java | ArthurRomasyuk/PasswordManager | /app/src/main/java/com/example/arthur/passwordmanager/dialog/ManageProfileDialog.java | UTF-8 | 2,609 | 2.390625 | 2 | [] | no_license | package com.example.arthur.passwordmanager.dialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import com.example.arthur.passwordmanager.R;
import com.example.... | true |
115343d979c8421b8e65ec665ce3c4f5962bc378 | Java | cotkaria/InternariSpital | /src/main/java/com/database/internarispital/entities/doctors/DoctorData.java | UTF-8 | 2,181 | 2.78125 | 3 | [] | no_license | package com.database.internarispital.entities.doctors;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class DoctorData
{
private StringProperty mDoctorName;
private StringProperty mDoctorSurname;
private StringProperty mSpeciality;
private StringProperty mGr... | true |
28e877f43a283fba0db40be5e43292f15e9bed27 | Java | jayramrout/batch20 | /CoreJava/src/datatypes/IncrementDecrement.java | UTF-8 | 297 | 2.53125 | 3 | [] | no_license | package datatypes;
public class IncrementDecrement {
public static void main(String[] args) {
int height = 2;
System.out.println(height);
// height = height +2;
height += 2;
System.out.println(height);
height = height +2;
System.out.println(height);
}
}
| true |
65b8181871d30f1ecc199825a71c4f47dbc5213c | Java | kkagill/Decompiler-IQ-Option | /Source Code/5.5.1/sources/com/microblink/recognizers/b.java | UTF-8 | 1,668 | 1.789063 | 2 | [] | no_license | package com.microblink.recognizers;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.support.annotation.Nullable;
import com.microblink.view.recognition.RecognitionType;
/* compiled from: line */
public class b implements Parcelable {
public static final... | true |
27d04f5d129d6b0026af0e06f940c9ba65494220 | Java | XavierDarcissac/SpringTest | /src/main/java/sopra/formation/model/Stagiaire.java | UTF-8 | 1,969 | 2.4375 | 2 | [] | no_license | package sopra.formation.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import j... | true |
bd961a0d36535cfe12902dc833c1b7804e338cbd | Java | yangbin-aaron/Stock | /Stock/lib_publiccontent/src/main/java/com/aaron/myviews/model/gson/StockResultsaleModel.java | UTF-8 | 4,899 | 2.4375 | 2 | [] | no_license | package com.aaron.myviews.model.gson;
import java.io.Serializable;
/**
* @类描述: 查询售出股票
* @创建人:龙章煌
* @创建时间:2015-05-21
* @修改人:
* @修改时间:
* @修改备注:
* @version
*/
public class StockResultsaleModel implements Serializable{
private Integer id; //订单详情ID
private String orderId;//订单I... | true |
0eaa5bafb3f95d61476d6da3c1a60cedbc14ead5 | Java | j-thebault/exo-git | /src/main/java/org/afcepf/ai/App.java | UTF-8 | 248 | 1.78125 | 2 | [] | no_license | package org.afcepf.ai;
import org.apache.commons.lang3.StringUtils;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( StringUtils.reverse("Hello World Reset!"));
}
}
| true |
e27f02e74da18e6d8b054b20fc3ce738413d44d5 | Java | GONGMING13/algorithm4 | /src/main/java/chapter2_Sorting/chapter2_3_QuickSort/Quick3WaySort.java | UTF-8 | 1,359 | 3.390625 | 3 | [] | no_license | package chapter2_Sorting.chapter2_3_QuickSort;
import chapter2_Sorting.SortTemplate;
import edu.princeton.cs.algs4.StdRandom;
/**
* @author zhangyu
* 2020/2/16 17:27
* 三向切分的快速排序
*/
public class Quick3WaySort implements SortTemplate {
@Override
public void sort(Comparable[] arr) {
if (arr==null||ar... | true |
ad4a5a30e9744bf324dad15f30ceb99cf74621d4 | Java | BaizhiMrsLi/cmfz | /src/main/java/com/lyj/controller/RoleController.java | UTF-8 | 1,108 | 2.25 | 2 | [] | no_license | package com.lyj.controller;
import com.lyj.entity.Role;
import com.lyj.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServlet... | true |
0eb799e2f314a3da8f5085c25d03ad55c4e5505b | Java | kyrigami98/recrutement | /src/test/java/use_case/salle/PeutEtreUtiliserTest.java | UTF-8 | 361 | 2.21875 | 2 | [] | no_license | package use_case.salle;
import model.Salle;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PeutEtreUtiliserTest {
Salle salle = new Salle("A1", 12, "disponible");
PeutEtreUtiliser test = new PeutEtreUtiliser(salle);
@Test
void isDisponible() {
asse... | true |
984df6c37b1fb33f1b8097975478e0ae5ad74c34 | Java | jaskaran021/seleniumtraining | /src/test/java/testNgconcepts/TestNgCode.java | UTF-8 | 305 | 1.882813 | 2 | [] | no_license | package testNgconcepts;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
public class TestNgCode {
@Test
public void displayMessage() {
System.out.println("We are learning testNg");
}
@Test
public void displayName()
{
System.out.println("Jaskaran");
}
}
| true |
bd4ed542eb2df65de2731c26da7a7264925aed7a | Java | islamouahouda/OFScanner | /app/src/main/java/com/alstom/ouahouda/ofscanner/models/Product.java | UTF-8 | 4,969 | 2.296875 | 2 | [] | no_license | package com.alstom.ouahouda.ofscanner.models;
import java.util.Date;
public class Product {
private long id;
private String designation;
private long of;
private String reference;
private int week;
private String currentService;
private Date startTime;
private Date startTimeKitting;
... | true |
d9af17fd69631fa69bebaccda6f379c6a69bf909 | Java | hyunii12/bookmarket | /BookMarket_01/src/dto/BookMoney.java | UTF-8 | 763 | 2.421875 | 2 | [] | no_license | package dto;
import java.util.Date;
public class BookMoney {
private int mem_id;
private int bookMoney;
private Date bookMoney_update_day;
public int getMem_id() {
return mem_id;
}
public void setMem_id(int mem_id) {
this.mem_id = mem_id;
}
public int getBookMoney() {
return bookMoney;
}
public v... | true |
8ae531b5572b9ffbefbe407f6b38bd2c4c81079a | Java | KayMD/Illarion-Java | /illacommon/src/main/java/illarion/common/data/IllarionSSLSocketFactory.java | UTF-8 | 3,734 | 2.25 | 2 | [] | no_license | /*
* This file is part of the Illarion project.
*
* Copyright © 2015 - Illarion e.V.
*
* Illarion is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | true |
e31519ed6db906ca48ad59b1d42acfaa1ced27c3 | Java | jeissonpalacio/cinemaTicket-ceiba | /microservicio/dominio/src/main/java/com/ceiba/proyeccion_cine/modelo/entidad/ProyeccionCine.java | UTF-8 | 645 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.ceiba.proyeccion_cine.modelo.entidad;
import lombok.Getter;
import java.time.LocalDate;
import java.time.LocalTime;
@Getter
public class ProyeccionCine {
Integer idMovieProjector;
LocalDate movieProjection;
LocalTime hourMovie;
Integer idMovie;
Integer idCinema;
public Proyeccio... | true |
a1b48a631c0038da887f0e477727670fc7312b73 | Java | AliakseiBoltak/Final_Task | /src/by/epam/tc/test/dao/impl/QuestionDAOImpl.java | UTF-8 | 2,193 | 2.453125 | 2 | [] | no_license | package by.epam.tc.test.dao.impl;
import java.awt.HeadlessException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import com.mysql.jdbc.Statement;
import by.epam.tc.test.dao.Quest... | true |
4a8dbf0dadcbb84fc19ab0aa6d8bbeb87d5dd5f8 | Java | Xuanling-Chen/cdm-source-ext | /src/generated/java/cdm/base/staticdata/asset/common/CreditRiskEnum.java | UTF-8 | 494 | 2.296875 | 2 | [] | no_license | package cdm.base.staticdata.asset.common;
/**
* @version ${project.version}
*/
public enum CreditRiskEnum {
/**
* Tranched credit risk, including securitizations.
*/
TRANCHED_CREDIT_RISK,
/**
* Untranched credit risk, including repackagings.
*/
UNTRANCHED_CREDIT_RISK
;
private final ... | true |
f3369e8bc34068f3d817ffe44e390408b014f5b5 | Java | yeshenggen532432/test02 | /cloud-biz-core/src/main/java/com/qweib/cloud/biz/system/service/company/TempProductRecordService.java | UTF-8 | 631 | 1.757813 | 2 | [] | no_license | package com.qweib.cloud.biz.system.service.company;
import com.qweib.cloud.core.domain.product.TempProductRecordDTO;
import com.qweib.cloud.core.domain.product.TempProductRecordQuery;
import com.qweib.cloud.core.domain.product.TempProductRecordSave;
import com.qweib.commons.page.Page;
import com.qweib.commons.page.Pag... | true |
16afe2bac56a2cb38fad2de76a900f7dda08b7e5 | Java | Frankenjoy123/thread-pool-nio | /src/io/leader/bravo/BravoServerStart.java | UTF-8 | 221 | 1.742188 | 2 | [] | no_license | package io.leader.bravo;
import java.io.IOException;
public class BravoServerStart {
public static void main(String[] args) throws IOException {
BravoReactor reactor=new BravoReactor(9000);
reactor.start();
}
}
| true |
df3ea39e7420739bb73ac69f8d30782be94359f2 | Java | jiangxincode/DroidDemo | /app/src/main/java/edu/jiangxin/droiddemo/activity/PerfActivity.java | UTF-8 | 1,613 | 2.25 | 2 | [
"MIT"
] | permissive | package edu.jiangxin.droiddemo.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Trace;
import android.widget.Button;
import android.widget.TextView;
import edu.jiangxin.droiddemo.R;
public class PerfActivity e... | true |
76be76b125dd3ede5019401c6f0085b4ae14922c | Java | GoblinXX/flash-car | /dal/src/main/java/com/byy/dal/entity/beans/comment/Comment.java | UTF-8 | 570 | 1.742188 | 2 | [] | no_license | package com.byy.dal.entity.beans.comment;
import com.byy.dal.entity.beans.base.BaseEntityArchive;
import com.byy.dal.enums.ApprovalStatus;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.type.Alias;
/**
* @Author: xcf
* @Date: 27/06/19 上午 09:35
* @Description:
*/
@Gett... | true |
269a0279861327576aea415e2eacf76569cf68fa | Java | ywl001/MonitorBaidu | /app/src/main/java/com/ywl01/baidu/net/services/FileUploadService.java | UTF-8 | 470 | 1.882813 | 2 | [] | no_license | package com.ywl01.baidu.net.services;
import com.ywl01.baidu.consts.Urls;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;
/**
* Created by ywl01 on 2017/1/30.
*/
public interface FileUploadServ... | true |
7beed07917cfd8655a867a6edf1727c7da8b335e | Java | zhuangshaoBryant/361 | /app/src/main/java/com/zhuang/safe361/activity/SettingActivity.java | UTF-8 | 6,733 | 2.125 | 2 | [] | no_license | package com.zhuang.safe361.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.view.View;
import ... | true |
a23743f6cf92096d02455768a9e5db0d86ed6566 | Java | kiela929/design_pattern_test | /src/com/design/unit04_FactoryPattern/ex03_AbstractFactoryPattern/FreshClams.java | UHC | 203 | 2.359375 | 2 | [] | no_license | package com.design.unit04_FactoryPattern.ex03_AbstractFactoryPattern;
public class FreshClams extends Clams {
public FreshClams(){
System.out.println("ż ְ");
}
}
| true |
34dabe3e12713bd92d8a4a64fc28069ed7782904 | Java | deadlocker8/Tools | /src/main/java/tools/SingleThread.java | UTF-8 | 328 | 2.5 | 2 | [] | no_license | package tools;
public class SingleThread extends Thread
{
public static boolean running;
@Override
public void run()
{
while (running)
{
try
{
//Code goes here
Thread.sleep(1000);
}
catch (InterruptedException e)
{
running = false;
}
... | true |
6db84b6b65028737952e4fc8b3e0653fb85013d8 | Java | shanghaif/MyLibrary | /src/main/java/com/mylibrary/api/dialog/MyDialog.java | UTF-8 | 6,952 | 2.328125 | 2 | [] | no_license | package com.mylibrary.api.dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import and... | true |
5d8668591f0fbe557ebeeb0272cae6b37a30a366 | Java | Maribelna/StudentsJournal | /src/main/java/com/example/demo/service/SchoolServiceImpl.java | UTF-8 | 978 | 2.484375 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.entity.School;
import com.example.demo.repo.ClassSchoolRepo;
import com.example.demo.repo.SchoolRepo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
@RequiredArgsConstructor
public cla... | true |
548438305c274b2b6b7891ffd9de798aba9236f1 | Java | buckyCT/JavaProject | /src/assignments/Lab4/Q14.java | UTF-8 | 486 | 3.34375 | 3 | [] | no_license | package assignments.Lab4;
import java.util.Arrays;
public class Q14 {
public static void main(String[] args) {
int[] a = { 1,2,3,4,5 };
int[] b = { 4,5,9,0 };
concatArr(a, b);
}
public static void concatArr(int[] x, int[] y) {
int[] arr = new int[x.length+y.length];
for(int i=0; i<x.lengt... | true |
6da557b4760281a5020aa9dc8745ae1d3781b3fc | Java | marypiergentili/Topic-2 | /RecentListProject/src/topic2/Program.java | UTF-8 | 1,196 | 3.265625 | 3 | [] | no_license | package topic2;
import java.util.LinkedList;
public class Program {
private LinkedList<File> fileList;
public Program(){
fileList = new LinkedList <File>();
}
public boolean isLinkedListEmpty() {
// TODO Auto-generated method stub
return fileList.isEmpty();
}
public boolean addFile(... | true |
9844449cc84acaf327349f1e5170fecd72856ca0 | Java | mbutov/sugar-cubes | /sugar-cubes-sandbox/src/main/java/org/sugarcubes/primitive/XPrimitives.java | UTF-8 | 9,288 | 2.875 | 3 | [] | no_license | package org.sugarcubes.primitive;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.sugarcubes.builder.collection.MapBuilder;
impo... | true |
308d7268cfab24cdb32ebeb41a72e2315de926b3 | Java | DOLIP7438/Diaballik | /Diaballik/src/main/java/Diaballik/Vue/msgBox.java | UTF-8 | 1,016 | 2.578125 | 3 | [
"MIT"
] | permissive | package Diaballik.Vue;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class msgBox {
public static void MessageBox(String msg, String titre) {
JFrame frame = new JFrame();
int result = JOptionPane.showConfirmDialog(frame, msg, titre, JOptionPane.YES_NO_OPTION,
... | true |
f2a4ff8dc0b0e475a3d721519edc663fdd5e861c | Java | NguyenQuang99/Module2_Ngay4 | /lop_Fan/Fan.java | UTF-8 | 832 | 3.03125 | 3 | [] | no_license | package Xay_dung_lopFan;
public class Fan {
private final int SLOW = 1;
private final int MEDIUM = 2;
private final int FAST = 3;
private int speed = SLOW;
private boolean on = false;
private double radius = 5;
private String color = "blue";
public void setSpeed(int speed) {
th... | true |
b12acc8cff4d84dff275157772b1e859f092d739 | Java | esamaulana/Aplikasi-Kocok-Arisan | /src/edu/kelompok1/kocokarisan/model/TabelAnggotaArisanModel.java | UTF-8 | 2,389 | 2.765625 | 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 edu.kelompok1.kocokarisan.model;
import edu.kelompok1.kocokarisan.entity.AnggotaArisan;
import java.util.ArrayList;
i... | true |
821b044205e2ad94a110aaf01ef1441ef6026ced | Java | yanchengdeng/AA | /app/src/main/java/apartment/wisdom/com/utils/AMapUtil.java | UTF-8 | 5,014 | 2.171875 | 2 | [] | no_license | package apartment.wisdom.com.utils;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.widget.EditText;
import com.amap.api.maps2d.CoordinateConverter;
import com.amap.api.maps2d.model.LatLng;
import java.io.File;
import java.net.URISyntaxException;
import ja... | true |
17b54146c4424b45380cd0418d2946edcf770955 | Java | Sargis-SargApps/Articles-Notify | /app/src/main/java/com/sargis/prueba1/model/Profile.java | UTF-8 | 809 | 2.25 | 2 | [] | no_license | package com.sargis.prueba1.model;
import com.google.firebase.firestore.Exclude;
import java.io.Serializable;
public class Profile implements Serializable {
private String name;
private String email;
private String token;
public Profile(){}
public Profile(String name,String email,String token) {
... | true |
4310ef7c8d749f95346a1e2d5f7e948d67f34051 | Java | linepro/ModellBahn | /src/main/java/com/linepro/modellbahn/service/impl/MassstabService.java | UTF-8 | 1,112 | 1.929688 | 2 | [
"MIT"
] | permissive | package com.linepro.modellbahn.service.impl;
/**
* MassstabService. CRUD service for Massstab
*
* @author $Author:$
* @version $Id:$
*/
import static com.linepro.modellbahn.ModellBahnApplication.PREFIX;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service... | true |
c743438e798d03b61b7ad8a6047b37d420981580 | Java | LucasNVarella/HourLogs | /FileSystemWatcher.java | UTF-8 | 15,852 | 2.484375 | 2 | [] | no_license | import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import java.awt.Desktop;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.W... | true |
3bc48cf9fb523c985664d1f14daf44072cf5c696 | Java | migeniya/JD2018-12-10 | /src/by/it/subach/jd03_03/beans/Order.java | UTF-8 | 959 | 2.625 | 3 | [] | no_license | package by.it.subach.jd03_03.beans;
public class Order {
private long id;
private long user_id;
private long product_id;
public Order() {
}
public Order(long id, long user_id, long product_id) {
this.id = id;
this.user_id = user_id;
this.product_id = product_id;
}... | true |
522b3c14b8d6e5b32399533b47be6e807765bd26 | Java | cameronDz/knights-tour | /src/main/java/org/ccsu/cs/md/tour/technical/DLNode.java | UTF-8 | 1,001 | 3.484375 | 3 | [] | no_license | package org.ccsu.cs.md.tour.technical;
/**
* Node used for DoublyLinkedLists. Uses ChessVertices as datum.
*
* @author Cameron
*/
public class DLNode {
private ChessVertice datum; // reference to the element stored at this node
private DLNode prev; // reference to the previous node in the list
private DLNode n... | true |
0e332829be28ef128f3948986703a0dba0f37399 | Java | Leifa129/Skole | /Oblig3_gruppe4/src/dat104/obl3/models/SpillId.java | UTF-8 | 376 | 2.5 | 2 | [] | no_license | package dat104.obl3.models;
import javax.persistence.*;
public class SpillId {
int id;
String host;
public SpillId(){}
public SpillId(int id, String host){
this.id = id;
this.host = host;
}
public void setId(int id){
this.id = id;
}
public void setHost(String host){
this.host = host;
}
public int getId(){
re... | true |
d095ba1559af0b2c3cf983596b1c047238955b69 | Java | wryao64/se251-tbs | /src/tbs/server/Sales.java | UTF-8 | 1,140 | 3 | 3 | [] | no_license | package tbs.server;
public class Sales {
private String _performanceID;
private String _startTimeStr;
private int _premiumPrice;
private int _cheapPrice;
private int _premTicketsSold = 0;
private int _cheapTicketsSold = 0;
public Sales(String performanceID, String startTimeStr, String premiumPriceStr, String ... | true |
4bfdcbe64d38ef370590d5622dd753d50831e697 | Java | StephenPiazza/Carpool2 | /src/Payment.java | UTF-8 | 145 | 2.421875 | 2 | [] | no_license |
public abstract class Payment {
PaymentMethods pm;
public Payment(PaymentMethods pm) {
this.pm = pm;
}
public abstract void pay();
}
| true |
7e0e1aee4c124b1b3c7e9001579f7c94d3cfe285 | Java | dianduba/elearn | /src/cn/dianduba/elearn/http/BookController.java | GB18030 | 3,179 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package cn.dianduba.elearn.http;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
i... | true |
f66b245c543abbb0eb16f540d867b69b5126cfcb | Java | zjuwjf/JsonBuilder | /src/main/java/com/wjs/jb/imp/JB.java | UTF-8 | 1,098 | 2.140625 | 2 | [] | no_license | package com.wjs.jb.imp;
import com.wjs.jb.abs.IJBFilter;
import com.wjs.jb.abs.IJBJsonAdapter;
/**
* @author zju_wjf
* @date 2016��12��10��
*/
public abstract class JB extends IJBAppend {
private IJBFilter[] globalFilters;
private Object root;
public JB() {
}
protected abstract IJBJsonAdapter jsonAdapter()... | true |