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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f412b15727173902ea9c195a654ee6d883f708ca | Java | whting/Jbricks | /toolkit/src/main/java/cn/jbricks/toolkit/valueobject/Option.java | UTF-8 | 710 | 2.8125 | 3 | [] | no_license | package cn.jbricks.toolkit.valueobject;
/**
* User: kuiyuexiang
* Date: 2012-11-07
* Time: 下午11:40
*/
public class Option {
private Integer value;
private String name;
public Option(Integer value, String name) {
this.name = name;
this.value = value;
}
public String getName() ... | true |
5c823aa325895eb1099d4349e9918fc2c0e9034f | Java | srinivasvemula4u/programming | /Algorithms/src/LeetCode/Problems/Easy/ConvertANumberToHexadecimal.java | UTF-8 | 1,804 | 3.59375 | 4 | [] | 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 LeetCode.Problems.Easy;
/**
*
* @author srivemul
*/
/*Given an integer, write an algorithm to convert it to hexadecimal. Fo... | true |
c3c4bb8cf5014b8cb26ebc7c4ad9c0221e49ee67 | Java | jscrane/jvml | /src/main/java/mlclass/randomforest/RandomForest.java | UTF-8 | 5,749 | 3.09375 | 3 | [] | no_license | package mlclass.randomforest;
import cern.colt.matrix.tdouble.DoubleMatrix1D;
import java.util.*;
import java.util.concurrent.*;
/**
* Houses a Breiman Random Forest
* Originally from http://randomforestadk.cvs.sourceforge.net/
*
* @author kapelner
* @see <a href="http://www.stat.berkeley.edu/~breiman/RandomFor... | true |
a35cd09e55ff1264fbc57abcda22004552ccd4b1 | Java | azhur/PingPong | /core/src/main/java/com/pingpong/core/listener/AbstractMessageListener.java | UTF-8 | 1,340 | 2.71875 | 3 | [] | no_license | /**
* Without Copyright
*/
package com.pingpong.core.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
/**
* @author Artur Zhurat
* @version 1.0
* @since 28/03/2012
*/
public abstract class AbstractMes... | true |
74064d317d2dfac02a3c01cea75916bed36a7347 | Java | marcusvc/spring-boot-jersey-jpa-swagger | /src/main/java/edu/marcus/factory/BookFactory.java | UTF-8 | 1,763 | 2.4375 | 2 | [] | no_license | package edu.marcus.factory;
import org.springframework.stereotype.Component;
import edu.marcus.business.domain.BookBusiness;
import edu.marcus.persistence.entity.BookEntity;
import edu.marcus.rest.dto.BookDTO;
@Component
public class BookFactory {
public BookDTO transformToDTO(BookBusiness book) {
if (book != nu... | true |
ae55f6638f5fd13d2dd6987ee4e102fad7f217ef | Java | FellipeOliv/congresso-presenca | /src/com/congresso/DatabaseHelper.java | UTF-8 | 9,450 | 2.515625 | 3 | [] | no_license | package com.congresso;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQLiteOpenHelper {
private static final String BANCO_DADOS = "congresso";
private static f... | true |
3c7a3ef40f387a3fe2908fce72451e6fe2c1cc02 | Java | MosstheBoss3000/DeepSpace | /src/main/java/frc/robot/subsystems/JesterWrist.java | UTF-8 | 5,229 | 2.109375 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 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 |
1eb21d08c97ba62e72a31ae57bf6aaf382543d84 | Java | jzarca01/com.ubercab | /src/com/google/android/gms/common/server/converter/ConverterWrapper.java | UTF-8 | 1,552 | 1.976563 | 2 | [] | no_license | package com.google.android.gms.common.server.converter;
import abv;
import aby;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
public class ConverterWrapper
implements SafeParcelable
{
public static final abv CREATOR = new abv();
private final int a;
private... | true |
781c25e543e9dabedd58869bf440560d7c147acf | Java | kfn/MinBusTur | /Android/MinBusTur/src/com/miracleas/minrute/TripLegMapFragment.java | UTF-8 | 28,018 | 1.546875 | 2 | [] | no_license | package com.miracleas.minrute;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Int... | true |
0043722fd5c63fd5a81901110accf05e570aa97f | Java | immortalcatz/Bamboozled | /src/main/java/net/insomniakitten/bamboo/Bamboozled.java | UTF-8 | 2,398 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | package net.insomniakitten.bamboo;
import net.insomniakitten.bamboo.event.BambooRenderEvents;
import net.insomniakitten.bamboo.event.HopperRenderEvents;
import net.insomniakitten.bamboo.event.SlabInteractionEvents;
import net.insomniakitten.bamboo.world.GeneratorBamboo;
import net.insomniakitten.bamboo.world.Generator... | true |
45e5155aad0e4defd3ff959e7d8567b01e04752f | Java | dogeared/load-testing-the-hard-way-example | /src/test/java/com/afitnerd/distributedjmeter/util/DODropletNameUtilTest.java | UTF-8 | 2,415 | 2.59375 | 3 | [] | no_license | package com.afitnerd.distributedjmeter.util;
import org.junit.Test;
import java.util.List;
import java.util.stream.IntStream;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class DODropletNameUtilTest {
@Test
public void test1Complete() {
int numDrople... | true |
d6c30ed9afa43c9689877061942cb7ca042192fb | Java | startrainee/leetcode | /src/niuke_aim_to_offer/niuke_1_10/Solution.java | UTF-8 | 1,077 | 3.59375 | 4 | [] | no_license | package niuke_aim_to_offer.niuke_1_10;
import java.util.Stack;
/**
* 输入两个整数序列,第一个序列表示栈的压入顺序,
* 请判断第二个序列是否为该栈的弹出顺序。假设压入
* 栈的所有数字均不相等。例如序列1,2,3,4,5是某栈
* 的压入顺序,序列4,5,3,2,1是该压栈序列对应的一
* 个弹出序列,但4,3,5,1,2就不可能是该压栈序列的
* 弹出序列。(注意:这两个序列的长度是相等的)
* */
public class Solution {
Stack<Integer> value = new Stack<>();
S... | true |
d61b22abade275ce56e4828d57019f2444f72f77 | Java | ksdperera/developer-studio | /humantask/org.wso2.tools.humantask.editor/src/org/wso2/carbonstudio/eclipse/humantask/editor/editors/HTMultiPageEditor.java | UTF-8 | 9,523 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package org.wso2.developerstudio.eclipse.humantask.editor.editors;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Collections;
import java.util.EventObject;
import java.util.HashMap;
import java.util.UUID;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.run... | true |
ba7c3edf5d3a47b69737349fb5676cf599b88949 | Java | subhajit1996/NIIT_1st_Proj_E-Comm_FashionAppare | /FashionApparelFrontend/src/main/java/com/ecomm/controller/OrderController.java | UTF-8 | 3,567 | 2.109375 | 2 | [] | no_license | package com.ecomm.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
im... | true |
e05478a463f4c8947278cb523012d51fc21475a4 | Java | liudongguang/sdeyqiyehao | /src/main/java/com/weixin/vo/assets/tongxunlu/BootStrapTree.java | UTF-8 | 1,089 | 2.171875 | 2 | [] | no_license | package com.weixin.vo.assets.tongxunlu;
import java.util.ArrayList;
import java.util.List;
public class BootStrapTree {
private Integer id;
private Integer pid;
private Integer level;
private String text;
private List<BootStrapTree> nodes = new ArrayList<>();
public String getText() {
return text;
}
publi... | true |
a4586874e0b06c3027af61ae617e879712cab9cf | Java | MaH-F/Statistaa | /app/src/main/java/com/htbr/statistaa/activities/SettingsActivity.java | UTF-8 | 8,304 | 1.992188 | 2 | [] | no_license | package com.htbr.statistaa.activities;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.preference.ListPreference;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx... | true |
41fcc1dda2891940ef408d2ad9c2f06719bba534 | Java | vanhnguyen1006/E-Commerce | /E-Commerce/src/main/java/com/example/demo/repository/salesRepository/OrderRepository.java | UTF-8 | 364 | 1.648438 | 2 | [] | no_license | package com.example.demo.repository.salesRepository;
import com.example.demo.entity.sales.Order;
import com.example.demo.entity.user.Client;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface OrderReposit... | true |
e39e4d71470d5aad08c75476c91a44d5c96e55a4 | Java | nicole-berty/ULApp | /app/src/main/java/ulapp/myUL/guides/FeesInfo.java | UTF-8 | 2,515 | 2.296875 | 2 | [] | no_license | package ulapp.myUL.guides;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import ulapp.myUL.R;
/** c... | true |
ffde00d5bc7031a12d43b0e17585f8f6c5a953b3 | Java | qiujingyun/myLyricApp | /src/com/android/test/view/TitleView.java | UTF-8 | 2,351 | 2.4375 | 2 | [] | no_license | package com.android.test.view;
import com.android.test.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import... | true |
797b124e6c162430b95f382d7d29caa2de806c23 | Java | wutenglan/lotto-common-core-wl | /src/main/java/com/hhly/commoncore/persistence/operate/dao/OperateHelpCorrectDaoMapper.java | UTF-8 | 386 | 1.648438 | 2 | [] | no_license | package com.hhly.commoncore.persistence.operate.dao;
import com.hhly.commoncore.persistence.operate.po.OperateHelpCorrectPO;
/**
* @desc
* @author cheng chen
* @date 2017年4月21日
* @company 益彩网络科技公司
* @version 1.0
*/
public interface OperateHelpCorrectDaoMapper {
/**
* 插入反馈
*
* @param po
* @return
*/... | true |
e990d2ac48a969527b63633e7f712c47a135ae9c | Java | erliding/deldel | /lc_java/d/Remove Invalid Parentheses.java | UTF-8 | 1,317 | 3.765625 | 4 | [] | no_license | /**
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
Note: The input string may contain letters other than the parentheses ( and ).
Examples:
"()())()" -> ["()()()", "(())()"]
"(a)())()" -> ["(a)()()", "(a())()"]
")(" -> [""]
**/
public cla... | true |
6978114aae64eefba417a1a7cfcf370530b4abdd | Java | CHENXCHEN/ACMPractice | /src/main/java/leetcode/normal/j1289/Solution2.java | UTF-8 | 1,700 | 3.21875 | 3 | [] | no_license | package leetcode.normal.j1289;
import java.util.Arrays;
/**
* Created by CHENXCHEN
* <a href="https://leetcode.cn/problems/minimum-falling-path-sum-ii/">1289. 下降路径最小和 II</a>
*
* @author <a href="mailto:chenhuachaoxyz@gmail.com">报时</a>
*/
class Solution2 {
public int minFallingPathSum(int[][] grid) {
... | true |
a94c3e4d2a0874bc36c216332977cd7a9962a881 | Java | liuping36131997/dzijkplayer | /app/src/main/java/com/dou361/jjdxm_ijkplayer/MainActivity.java | UTF-8 | 9,551 | 1.960938 | 2 | [] | no_license | package com.dou361.jjdxm_ijkplayer;
import org.apache.http.Header;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import... | true |
3d81822fa46cd01392c10d6cdd62509b8c4aaf6a | Java | dachoj/Projekt-OfficeManager | /src/main/java/registerOffice/businessObjects/persons/MoviesList.java | UTF-8 | 1,786 | 3.078125 | 3 | [] | no_license | package registerOffice.businessObjects.persons;
import java.util.*;
import registerOffice.businessObjects.movies.Movie;
class MoviesList implements Collection<Movie>{
private List<Movie> movies=new ArrayList<Movie>();
private Person owner;
public MoviesList(Person owner)
{
this.owner=owner;
}
@Override
... | true |
93229c948f923db320984e92d900c1ca030ba986 | Java | SMoiseenko/Learning | /LearningDataStructuresAndAlgorithms/src/test/java/by/moiseenko/utils/RecursionTest.java | UTF-8 | 1,986 | 3 | 3 | [] | no_license | package by.moiseenko.utils;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
class RecursionTest {
private static Rec... | true |
7ad10d51716b5785db62e533898af0d86456d78c | Java | gliargovas/ERP_Project | /src/main/java/ERP_Core/Product.java | UTF-8 | 5,031 | 3.359375 | 3 | [] | no_license | package ERP_Core;
import java.util.ArrayList;
/**
* This is the class with product constructors , setters , getters and toString methods.
*
* @version 1.0
* @author George Liargovas
*/
public class Product {
/** idCounter counts the number of objects created. */
private static int idCounter = F... | true |
d1a65f15a7a3b672a4e81c55e850ac87c55dcb34 | Java | DuongBinhVu/Dictionary | /src/dictionary/Dictionary.java | UTF-8 | 176 | 1.953125 | 2 | [] | no_license | package dictionary;
import java.util.ArrayList;
public class Dictionary {
/**
* List of words.
*/
protected ArrayList<Word> wordList = new ArrayList<>();
}
| true |
2acad1dcbf6b32c2748ec045d455366ce2b15d5a | Java | katsemenova/dragonLand | /dragonLand/src/guiPractice/GUIApplication.java | UTF-8 | 2,375 | 3.109375 | 3 | [] | no_license | package guiPractice;
import java.awt.Graphics;
import javax.swing.JFrame;
public abstract class GUIApplication extends JFrame implements Runnable{
private Screen currentScreen;
//no main, cant instentiate an abstract class
public GUIApplication(){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
/... | true |
4e2152eefa18173e6ecf28262fe1b5d7af35c481 | Java | zenithwu/bdp_web | /bdp-core/src/main/java/com/stylefeng/guns/core/constant/LastRunState.java | UTF-8 | 937 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.core.constant;
/**
* 最后运行状态枚举类
* @author Administrator
*
*/
public enum LastRunState {
FAIL(0, "失败"),
SUCCESS(1, "成功"),
RUNNING(2, "运行中");
int code;
String name;
LastRunState(int code, String message) {
this.code = code;
this.name = mess... | true |
9cb8a972d807882060b54fa2f26c7dd1d8c25f2a | Java | eosite/openyourarm | /glaf/workspace/glaf-datamgr/src/main/java/com/glaf/datamgr/query/SelectSegmentQuery.java | UTF-8 | 8,462 | 1.984375 | 2 | [] | no_license | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
bc7c5f851c3c7c219cb5d9775e626ad87c46462e | Java | MildTitramin/InfoProduct | /app/src/main/java/com/example/projectgame/AddUserActivity.java | UTF-8 | 4,265 | 2.1875 | 2 | [] | no_license | package com.example.projectgame;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.example.projectgame.db.AppDatabase;
import com.example.projectgame.mod... | true |
518beeedb6f3cf4cc905ef8d73f93f79010557ab | Java | fordream/store-vnp | /vnp/Vanga/src/org/com/vnp/vanga/view/ItemViewList.java | UTF-8 | 1,128 | 1.84375 | 2 | [] | no_license | package org.com.vnp.vanga.view;
import org.com.vnp.vanga.R;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import com.ict.library.common.CommonResize;
import com.ict.library.view.CustomLinearLayoutView;
public class ItemViewList ... | true |
8556b89db38e3a5ccce7e7f3271e319d55260035 | Java | perfectsense/gyro-aws-provider | /src/main/java/gyro/aws/kms/KmsKeyResource.java | UTF-8 | 15,286 | 1.515625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright 2019, Perfect Sense, Inc.
*
* 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 a... | true |
6a86e75a65e0845faf8d12f281a55bd1f19a3d49 | Java | JeongDongYoon1002/gstore | /app/src/main/java/gachon/mp/gstore/MapFragment.java | UTF-8 | 3,789 | 2.375 | 2 | [] | no_license | package gachon.mp.gstore;
import net.daum.mf.map.api.MapPOIItem;
import net.daum.mf.map.api.MapPoint;
import net.daum.mf.map.api.MapView;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.... | true |
883a47d0d2e9a68fcf332a8f4a566fb3f8a1a140 | Java | Manu1John/ManuJohnJavaB | /FWAWR9/src/FarSumArray.java | UTF-8 | 473 | 3.328125 | 3 | [] | no_license | import java.util.Scanner;
public class FarSumArray {
public static void main(String[] args) {
Scanner S=new Scanner(System.in);
System.out.println("Enter a Limit");
int K=S.nextInt();
int F=ArraySum(K);
System.out.println("Sum of Array \t"+F);
}
static int ArraySum(int L)
{
Scanner S1=new Scanner(System.in);
Syste... | true |
bd92fb6a1d5e76dd1b50c333c251f65c3b06e6f9 | Java | xinil502/LearnSSM | /src/test/java/cn/xinil/test/mybatis/MybatisTest_10.java | UTF-8 | 716 | 2.171875 | 2 | [] | no_license | package cn.xinil.test.mybatis;
import cn.xinil.dao.IBlogMapper;
import cn.xinil.domain.Blog;
import cn.xinil.utils.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import java.util.Date;
public class MybatisTest_10 {
@Test
public void Test_10(){ //Blog插入数据记录。
SqlSe... | true |
8f469a7a1607942231c3fefacb43c257d0b26571 | Java | Gradom/spring-example | /src/main/java/it/dg/springexample/controller/rest/exp/XmlRestController.java | UTF-8 | 3,136 | 2.34375 | 2 | [] | no_license | package it.dg.springexample.controller.rest.exp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import it.dg.springexample.be... | true |
80a1910acbf7282a259e991fc812fe60475dc875 | Java | Rune-Status/117-Client | /src/Class131_Sub12.java | UTF-8 | 4,005 | 1.78125 | 2 | [] | no_license | public final class Class131_Sub12 extends Class131 {
int anInt1075;
Class131_Sub12 aClass131_Sub12_1076;
boolean aBool1079;
Class37 aClass37_1080;
Class25 aClass25_1081;
Class38 aClass38_1082;
int anInt1083;
Class31 aClass31_1084;
Class22 aClass22_1085;
Class29 aClass29_1089;
boolean aBool1090;
boolean aBoo... | true |
af58f29c707ca3037192cfeff882df6f41fcf5d1 | Java | JetBrains/MPS | /workbench/mps-ui/source/jetbrains/mps/ide/findusages/view/icons/IconManager.java | UTF-8 | 2,686 | 1.84375 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2003-2023 JetBrains s.r.o.
*
* 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 |
b35223fd7f780c9dfba4e9c1ce9f4d3f7bb94b1b | Java | johanpafi99/lab-5-y-6-AP1 | /lab_5_y_6/SRC/MODEL/Technology.java | UTF-8 | 2,141 | 3.0625 | 3 | [] | no_license | package MODEL;
import java.util.ArrayList;
public class Technology extends Company implements Consumable{
public static final char CONSULTANCY = 'C';
public static final char TRAINING = 'T';
public static final char DEVELOPMENT = 'D';
public static final char INFRASTRUCTURE = 'I';
public static final char SOFTWA... | true |
31c71bddaf15a4328ac6a4d59556810d617597b3 | Java | begumerkal/PROJEM7 | /WYD-ExchangeServer/src/com/wyd/exchange/bean/CodeExchange.java | UTF-8 | 6,230 | 2.234375 | 2 | [] | no_license | package com.wyd.exchange.bean;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persis... | true |
652c44c1997de05f958484cea24def9ad91eed05 | Java | FTC-9073-Knightrix/2018-19-Knightrix | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Autonomous/Development/AutoTest.java | UTF-8 | 2,326 | 3.1875 | 3 | [
"BSD-3-Clause"
] | permissive | //Declare the package
package org.firstinspires.ftc.teamcode.Autonomous.Development;
//Import the dependencies needed to run the program
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import org.firstinspires.ftc.teamcode.Autonomous.AutoMethods;
//... | true |
dcfa16a74c17d2c68f13f3f328909e88e718c2c4 | Java | allanedgard/hddss | /jds/src/br/ufba/lasid/hdf/connectors/ManyToOneConnector.java | UTF-8 | 1,528 | 2.59375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.ufba.lasid.hdf.connectors;
import br.ufba.lasid.hdf.IConsumer;
import br.ufba.lasid.hdf.IConsumer;
import br.ufba.lasid.hdf.ISupplier;
import br.ufba.lasid.hdf.ISupplier;
import br.ufba.lasid.hdf.util.Connec... | true |
ce8ecf92cdffc9395fb4a0d846221978e27c03b0 | Java | lanjunjie/jjlanli | /src/com/myfp/myfund/ui/MyMemberInformationFragment.java | UTF-8 | 3,386 | 2.046875 | 2 | [] | no_license | package com.myfp.myfund.ui;
import java.util.List;
import org.json.JSONArray;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import an... | true |
dd34a61a815205f8b1cc1c50d14724de1a82190f | Java | lubiedak/simple-data-warehouse | /src/main/java/com/lb/simpleWarehouse/service/QueryBuilder.java | UTF-8 | 1,794 | 2.34375 | 2 | [] | no_license | package com.lb.simpleWarehouse.service;
import com.lb.simpleWarehouse.db.QueryEnums.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static com.lb.simpleWarehouse.db.QueryEnums.*;
@Slf4j
@Servi... | true |
112394c611bae065632011c42caffd006e2ce9d1 | Java | bnockles/theHardWay | /TheHardWay/src/levinHierarchies/BinarySearch.java | UTF-8 | 1,352 | 3.8125 | 4 | [] | no_license | package levinHierarchies;
public class BinarySearch {
public static void main (String[] args)
{
int[] test1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int[] test2 = {0, 4, 5, 6, 12, 15, 17, 23, 29};
System.out.println(binSearch(test1, 3)); //2
System.out.println(linSearch(test1, 3)); //2
System.out.print... | true |
b35ae4071782309512cf2d092abe2dbeafba6bb7 | Java | FrankBeeh/PBLTimeline | /src/test/java/de/frankbeeh/productbacklogtimeline/service/visitor/ComputeMaximumVelocityStrategyTest.java | UTF-8 | 883 | 2.375 | 2 | [] | no_license | package de.frankbeeh.productbacklogtimeline.service.visitor;
import static org.junit.Assert.assertEquals;
import java.math.BigDecimal;
import org.junit.Before;
import org.junit.Test;
public class ComputeMaximumVelocityStrategyTest {
private static final BigDecimal GREATER_VELOCITY = BigDecimal.valueOf(2d);
privat... | true |
a78681a3f0764d92044387b83c89892a3ed3b803 | Java | MonikaWieczorek88/selenium-kurs | /src/main/java/Exceptions.java | UTF-8 | 1,354 | 2.546875 | 3 | [] | no_license | import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.Test;
public class Exceptions {
public static WebDriver driver;
@Test
public void wyjatkiTest(){
//konfiguracja początkowa
System.s... | true |
560bfaa1c1358a138f40f8281b25e44254b7449e | Java | Dazing/MedImager | /Resurser/medview/datahandling/aggregation/Aggregation.java | UTF-8 | 9,822 | 2.6875 | 3 | [] | no_license | /*
* Aggregation.java
*
* Created on September 30, 2002, 10:34 AM
*
* $Id: Aggregation.java,v 1.9 2005/10/21 08:36:28 erichson Exp $
*
* $Log: Aggregation.java,v $
* Revision 1.9 2005/10/21 08:36:28 erichson
* Minor cleanup.
*
* Revision 1.8 2004/10/08 14:04:00 erichson
* Added DEFAULT_AGGREGATION_NAME ... | true |
f78faee055afeb5ee36a116f6ed1836a80618a2d | Java | dmzstar/ferrierport | /src/main/java/com/weifan/ferrier/springboot/security/login/LoginController.java | UTF-8 | 1,511 | 2.265625 | 2 | [] | no_license | package com.weifan.ferrier.springboot.security.login;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.WebAttributes;
import org.springfram... | true |
1958f76bd28a3f1d60f592e776576d3c2d1cc2ae | Java | AnastasiaLF/OOP | /задачи/src/task10/task10.java | UTF-8 | 1,599 | 4.03125 | 4 | [] | no_license | package task10;
public class task10<T> {
//поле
private T[] arr;
//конструктор
public task10(T[] arr) {
this.arr = arr;
}
//поиск минимума
public double min(){
double min = Double.POSITIVE_INFINITY; // ячейка для поичка минимума
for (int i=0;... | true |
f259667d74ff836e88a833d8d2d5b9af55c28ddb | Java | lbenvenutoc/refactorizacion | /src/main/java/com/lbenvenuto/constante/Constante.java | UTF-8 | 306 | 1.914063 | 2 | [] | no_license | package com.lbenvenuto.constante;
public abstract class Constante {
public static final int LOG_MESSAGE = 1;
public static final int LOG_ERROR = 2;
public static final int LOG_WARNING = 3;
public static final int CONSOLA = 1;
public static final int ARCHIVO = 2;
public static final int BD = 3;
}
| true |
949ab780d9db9f587dedc3cf6834705fd71cd125 | Java | mika44/advent-of-code-2020 | /src/test/java/fr/game/advent/day07/GameOneTest.java | UTF-8 | 1,119 | 2.625 | 3 | [] | no_license | package fr.game.advent.day07;
import java.util.Arrays;
import java.util.logging.Level;
import org.junit.Assert;
import org.junit.Test;
import fr.game.utils.LoggerUtils;
public class GameOneTest {
private GameOne game = new GameOne();
@Test
public void testExemple1() {
LoggerUtils.setLevel(Level.INFO);
Asse... | true |
7a4179bb22b02c6d80386e28207940dc572aa511 | Java | chen0860310/vmm | /src/main/java/com/javaweb/views/CustomerVehicle.java | UTF-8 | 2,739 | 2.1875 | 2 | [] | no_license | package com.javaweb.views;
/**
* 客户以及车辆信息
*
* @author cp
*
*/
public class CustomerVehicle {
private String customerid;// 客户表编号
private String numbering;// 客户名称
private String mailbox;// 邮箱
private String contactinfo;// 联系方式
private String contactadd;// 联系的地址
private String idcard;// 身份证号码
... | true |
ad9c9fa2523c40d17367c6a542dfe84d70e67e4e | Java | netvarth/netmd | /netmd/netmdGynae/src/main/java/com/nv/netmd/util/filter/core/Filter.java | UTF-8 | 425 | 1.679688 | 2 | [] | no_license | /**
* Filter.java
*
* Aug 17, 2012
*
* @author Asha Chandran
*/
package com.nv.netmd.util.filter.core;
public interface Filter {
public Criteria getPredicate(QueryBuilder queryBuilder,Property property);
public Criteria getPredicate(QueryBuilder queryBuilder,Property property, String calculationTyp... | true |
9d3de81ab7b85af101c1b904355346b9d2531c13 | Java | adilbekutemissov/react-with-spring | /Eduplan/rsp-skolni-system-qa-backend/cvut.fel.rsp/src/main/java/cvut/fel/rsp/eduaplan/service/StudentSubjectService.java | UTF-8 | 377 | 1.929688 | 2 | [] | no_license | package cvut.fel.rsp.eduaplan.service;
import cvut.fel.rsp.eduaplan.dao.StudentSubjectDao;
import cvut.fel.rsp.eduaplan.model.StudentSubject;
import org.springframework.stereotype.Service;
@Service
public class StudentSubjectService extends BaseService<StudentSubject, StudentSubjectDao>{
public StudentSubjectServ... | true |
4d9dd6f451da2251a8c2efbff302b2aad33d1e80 | Java | dhanasekar13/java | /first prgm/src/inhert.java | UTF-8 | 246 | 2.203125 | 2 | [] | no_license |
public class inhert {
{
System.out.println("dhanasekar");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
jib i=new jib();
}
}
class jib extends inhert
{
{
System.out.println("rakesanaahd");
}
}
| true |
1734593dc8c702fa799a463362f5e976a743a984 | Java | 13068944359/train_ticket | /src/order/web/ShowOrderServlet.java | GB18030 | 1,145 | 2.390625 | 2 | [] | no_license | package order.web;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import order.domain.Order;
import order.service.... | true |
a31b427e2de69cb02467d902a4935695b44962e3 | Java | ZhaoWenHao1/CodeAlgorithm | /leetcode/java/leetcode/pinduoduo/Game.java | UTF-8 | 415 | 2.25 | 2 | [] | no_license | package pinduoduo;
import java.util.Scanner;
/**
* @author happyzhao
* @data 2020/4/10 20:29
* @type pinduoduo
* @question
*/
public class Game {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), k = sc.nextInt();
int[] c = new int[n];... | true |
5e83df8239bce1d53cb3ef4e4889ea15a4f4f9ad | Java | Ravikumar1997/Daily-pracitce | /android/WhyFi/app/src/main/java/com/example/zzt/whyfi/common/BytesSetting.java | UTF-8 | 219 | 1.570313 | 2 | [] | no_license | package com.example.zzt.whyfi.common;
/**
* Created by zzt on 6/6/16.
* <p>
* Usage:
*/
public class BytesSetting {
public static final byte SPLIT_BYTE = 0x00;
public static final String UTF_8 = "utf-8";
}
| true |
d356e9c045d0bf737f449506f78120a46dbd37d7 | Java | MuchomorGrabarz/BF-IDE | /src/BFIDE/Controller.java | UTF-8 | 8,559 | 2.375 | 2 | [] | no_license | package BFIDE;
import BFIDE.Breakpoints.BreakpointSettingController;
import BFIDE.Converter.ConverterController;
import BFIDE.FXIO.FXInput;
import BFIDE.FXIO.FXLogger;
import BFIDE.FXIO.FXOutput;
import BFIDE.HeartOfEverything.Debugger;
import BFIDE.HeartOfEverything.Interpreter;
import BFIDE.Parser.CodePreparer;
impo... | true |
8c7b028411ece09cc9e7549e933cae40d0602243 | Java | Kesiride/TRMS-Project-1 | /src/main/java/com/revature/beans/ConnFactory.java | UTF-8 | 1,364 | 3.328125 | 3 | [] | no_license | package com.revature.beans;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnFactory {
// Holds the single instance of ConnFactory allowed
private static ConnFactory cf = null;
// A private constructor that makes the ConnFactory class a singleton
private... | true |
4332d9ae66d8bc3e5a6303be67d908dee079d55e | Java | wusichao/xyx | /ls/src/com/xyx/ls/service/impl/report/ReportServiceImpl.java | UTF-8 | 92,619 | 1.703125 | 2 | [] | no_license | package com.xyx.ls.service.impl.report;
import java.io.OutputStream;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
im... | true |
93571f3ef1f58fdc78e99e0cf833f1570e744a5b | Java | Java-is-coming/jrpg-2017b-cliente | /src/main/java/frames/MenuCreacionPj.java | UTF-8 | 15,446 | 2.359375 | 2 | [
"MIT"
] | permissive | package frames;
import java.awt.Color;
import java.awt.Font;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import javax.swing.Image... | true |
3a2759120ea887933dcf2c8c1286c813f6cce63c | Java | iamzken/intellij-community | /java/java-tests/testData/inspection/switchExpressionMigration/afterSwitchStatements3.java | UTF-8 | 434 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | // "Replace with enhanced 'switch' statement" "true"
import java.util.*;
class SwitchExpressionMigration {
private static int m(int x) {
switch (x) {
case 1 -> {
if (true) return 0;
else return 1;
}
case 2 -> return 2;
case 3, 4 -> {
... | true |
2f3173adc99b4dbce140c5ddfddc12a9f656a07f | Java | elastic/apm-agent-java | /apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/AbstractSpan.java | UTF-8 | 26,155 | 1.617188 | 2 | [
"BSD-3-Clause",
"CC0-1.0",
"CDDL-1.0",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | true |
55f88aefb08c6cea7a770963bc1127c4ef3a9000 | Java | philiahe/angel | /src/feinno-ha/src/feinno-ha/src/main/java/com/feinno/ha/interfaces/monitor/HAMonitorKey.java | UTF-8 | 1,121 | 1.828125 | 2 | [] | no_license | /*
* FAE, Feinno App Engine
*
* Create by gaolei May 14, 2012
*
* Copyright (c) 2012 北京新媒传信科技有限公司
*/
package com.feinno.ha.interfaces.monitor;
import com.feinno.serialization.protobuf.ProtoEntity;
import com.feinno.serialization.protobuf.ProtoMember;
/**
* 监控指标
*
* @author 高磊 gaolei@feinno.com
*/
public... | true |
6228d58c942e37e649da81386c5ecc6475a5cf3d | Java | consulo/consulo-csharp | /csharp-impl/src/main/java/consulo/csharp/impl/lang/formatter/CSharpDisabledFormattingBlock.java | UTF-8 | 2,285 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2017 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
b8a064d6d668ef21ca72e92aec1f3bc07c54d523 | Java | sasa-radovanovic/charging-session-backbone | /src/main/java/com/evbox/chargingsessionbackbone/entity/ChargingSession.java | UTF-8 | 363 | 2 | 2 | [] | no_license | package com.evbox.chargingsessionbackbone.entity;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.UUID;
/**
* Internal entity of charging session
*/
@Data
public class ChargingSession {
private LocalDateTime startedAt;
private LocalDateTime finishedAt;
private ChargingSessionSta... | true |
a77da3909a729ca479f493b9713a947846c2acc6 | Java | Trevis42/server-EarthBnB | /EarthBnB/src/main/java/com/Earthbb/CohostData/CohostData.java | UTF-8 | 1,472 | 2.203125 | 2 | [] | no_license | package com.Earthbb.CohostData;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
@Table(name="cohostdata")
@Entity
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class CohostData {
@Id
private Long id;
private String nameone;
private ... | true |
a54ace79ed1afa56c6cd2556d057bb7a73fc5dd5 | Java | SnigdhaSuchismitaDash/TestMobility | /src/test/java/com/tcs/DevopsFinal/CodePath.java | UTF-8 | 1,877 | 2.265625 | 2 | [] | no_license | package com.tcs.DevopsFinal;
import java.net.MalformedURLException;
import java.net.URL;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.BeforeClass;... | true |
d4efc78c460ee969de04cf01e45b348502a093ba | Java | macobuzi/practice | /algo/cp3/adhoc/Uva11586.java | UTF-8 | 629 | 3.515625 | 4 | [] | no_license | import java.util.*;
public class Uva11586 {
public static void main(String[] argv) {
Scanner sc = new Scanner(System.in);
int tc = Integer.parseInt(sc.nextLine());
while (tc-- > 0) {
String line = sc.nextLine();
String[] pieces = line.split(" ");
int maleCnt = 0;
int femaleCnt = 0;
for (String pi... | true |
f5e33de05df2be60f521125c4f0e9fa40cee8b23 | Java | clay4444/newCoder | /MessUpTest/src/main/java/org/clay/test1/IsSearchTree.java | UTF-8 | 1,276 | 2.96875 | 3 | [] | no_license | package org.clay.test1;
import org.omg.CORBA.INTERNAL;
import org.omg.PortableInterceptor.INACTIVE;
import java.util.Stack;
public class IsSearchTree {
public static class Node{
private int val;
private Node left;
private Node right;
public Node(int val){
this.val = ... | true |
3527082b95db7ecce1fb974d29dc16d9fa48ffaf | Java | viii28stw/PensilTikFrontend | /src/main/java/com/viii28stw/pensiltikfrontend/model/dto/UsuarioDto.java | UTF-8 | 440 | 1.921875 | 2 | [] | no_license | package com.viii28stw.pensiltikfrontend.model.dto;
import com.viii28stw.pensiltikfrontend.enumeration.SexoEnum;
import lombok.*;
/**
* @author Plamedi L. Lusembo
*/
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
@ToString
@Builder
public class UsuarioDto{
private String id;
priv... | true |
dc84e43aa4ab2df8c64e028a630291259f2128c5 | Java | bt-nia/Application-Gateway | /oag/src/main/java/org/owasp/oag/filters/spring/ExtractAuthenticationFilter.java | UTF-8 | 4,172 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.owasp.oag.filters.spring;
import org.owasp.oag.cookies.LoginCookie;
import org.owasp.oag.exception.CookieDecryptionException;
import org.owasp.oag.infrastructure.GlobalClockSource;
import org.owasp.oag.services.blacklist.SessionBlacklist;
import org.owasp.oag.services.crypto.CookieEncryptor;
import org.owa... | true |
fe168743aaf97d4c93a9385d8ac82897013a0d88 | Java | Dr-LeopoldFitz/JAVA_Advanced_Project | /src/Swing_Test/JListTest.java | UTF-8 | 1,984 | 3.453125 | 3 | [] | no_license | package Swing_Test;
import javax.swing.*;
import java.awt.*;
/*
* @author Hive
* Description:JList Test
* Date: 2021/1/4 16:25
*/
public class JListTest extends JFrame{
public JListTest(){
Container con=getContentPane();
con.setLayout(null);
//JScrollPane 中的列表框有滚动效果
JList<Stri... | true |
452a9f617dd04f626d4c556709126ab282434da6 | Java | PavelOzhog/mySecondProject | /src/home/Main4.java | UTF-8 | 403 | 2.8125 | 3 | [] | no_license | package home;
public class Main4 {
public static void main(String[] args) {
for (int i = 500; i <= 1000; i++) {
int nineteen = i % 19;
int seven = i % 7;
if (nineteen <= 0) {
System.out.println(i);
}
if (seven <= 0 ){
... | true |
17092803e593be78951b5f8b41b622211ff440b3 | Java | SvetlanaMikhailova/Labs | /src/main/java/ru/az/sample/model/Item.java | UTF-8 | 1,361 | 2.28125 | 2 | [] | no_license | package ru.az.sample.model;
import javax.lang.model.element.Name;
import javax.persistence.*;
import java.util.jar.Attributes;
/**
* Created by smikhailova on 23.11.2015.
*/
@Entity
public class Item {
@Id
private Long id;
private Long article;
@ManyToOne
@JoinColumn(name="category_id")
... | true |
552b7b9adba4f821da773ea1ac26defabc33c5c3 | Java | java404/recode | /smartmon-core/src/main/java/smartmon/core/config/SchedulingConfig.java | UTF-8 | 3,455 | 2.203125 | 2 | [] | no_license | package smartmon.core.config;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.fu... | true |
d32a512ee6db32161cc7c1daf4f23dc77a22c313 | Java | satya2306/coreJava-OOPS | /src/com/satya/core/serialisable/Man.java | UTF-8 | 899 | 2.984375 | 3 | [] | no_license | package com.satya.core.serialisable;
import java.io.Serializable;
public class Man extends Human implements Serializable {
public Man() {
super();
// TODO Auto-generated constructor stub
}
private String name;
private String address;
private Address state;
public Address getSta... | true |
ae4042ffcdb90ecda196caaf94e49ade635f2ad2 | Java | johnyhawkahsan/62-Car-Bike-FuelAverageCalculator | /app/src/main/java/com/johnyhawkdesigns/a62_car_bike_fuelaveragecalculator/fragments/FuelDetailsFragment.java | UTF-8 | 9,253 | 2.046875 | 2 | [] | no_license | package com.johnyhawkdesigns.a62_car_bike_fuelaveragecalculator.fragments;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageB... | true |
e37bede78dd7b680e70ec6196d45a48ef8860431 | Java | fangyuchuang/beibei | /src/main/java/com/liuyanzhao/sens/entity/Feedback.java | UTF-8 | 772 | 1.851563 | 2 | [] | no_license | package com.liuyanzhao.sens.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
... | true |
a2a953cd134e12f759574615b8339feb8bce19aa | Java | Ocram89/progettoispw | /src/boundary/ConfineAmministratoreVisualizzaMenu.java | MacCentralEurope | 6,749 | 2.1875 | 2 | [] | no_license | package boundary;
import java.awt.Color;
import java.awt.Font;
import java.awt.Insets;
// import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
//import java.io.IOException;
// import java.io.File;
// import java.io.IOException;
import jav... | true |
bf28390960572a4ed6634aea8efc099697bbecb9 | Java | ibwelcomesyouall/CoreJavaProjects | /org/indranil/learning/topicwise/Internationalization/DateFormatDemo2.java | UTF-8 | 703 | 2.625 | 3 | [] | no_license | package org.indranil.learning.topicwise.Internationalization;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
public class DateFormatDemo2 {
public static void main(String[]args)
{
DateFormat uk = DateFormat.getDateInstance(0,Locale.UK);
DateFormat us = DateFormat.... | true |
795bc26c50f7cefe1044325475ece4fbee619d6f | Java | Adu2120/PBL_Garage_Management_System | /app/src/main/java/com/pbl/garagemanagementsystem/activities/PreviousServicesActivity.java | UTF-8 | 2,798 | 2.28125 | 2 | [] | no_license | package com.pbl.garagemanagementsystem.activities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.os.Handler;
import android.view.Vi... | true |
98b25c3bc128efd1e1286828443d85b7be2b107f | Java | hollykunge/newnewcosim | /src/com/casic/cloud/service/crowdsourcing/crowdsourcingResponse/CrowdsourcingResponseService.java | UTF-8 | 5,344 | 1.851563 | 2 | [] | no_license | package com.casic.cloud.service.crowdsourcing.crowdsourcingResponse;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import net.sf.ezmorph.object.DateMorpher;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;... | true |
3358f8c7f9a2285adec40c1f9c9e898d32f5ee9d | Java | protpolymer/mcdonalds-web-store | /src/main/java/ru/itpark/mcdonaldsweb/domain/Goods.java | UTF-8 | 363 | 1.84375 | 2 | [] | no_license | package ru.itpark.mcdonaldsweb.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
private int id;
private String name;
private String description;
private String price;
private String imag... | true |
0ec9110a02a23e8ef967a909c7e1f8e2332561ed | Java | simonirvinvitela730/Revature_Work | /Java-workspace2/Notes/src/day5/Demo2.java | UTF-8 | 329 | 2.84375 | 3 | [] | no_license | package day5;
class multiThreadingDemo2 implements Runnable{
@Override
public void run() {
System.out.println("thread is running...");
}
}
public class Demo2 {
public static void main(String[] args) {
multiThreadingDemo2 threadDemo2 = new multiThreadingDemo2();
Thread t1 = new Thread(threadDemo2);
t1.start... | true |
73da9798e63ddb572cb7dd7907b86acaeb12f7ea | Java | smartlin/JavaTest | /src/main/java/cn/lxh/java/ManyThread/Callable/SubmitTest.java | GB18030 | 1,901 | 3.328125 | 3 | [] | no_license | package cn.lxh.java.ManyThread.Callable;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
* Created by starlin
* on 2021/4/19 23:12.
* ListenableFuture Future DzҪ֪ ִн¾ͿԽ ɹʧܵҵ ͨصķʽ Ԥĺô첽Ҫǰ̣߳Ӷϵͳ
* Future Ҫͨ get()... | true |
3e2e2798feb6fc453cc4ce02020d8019a1fbe6f7 | Java | RoelVdP/sqlancer | /src/sqlancer/clickhouse/oracle/tlp/ClickHouseTLPAggregateOracle.java | UTF-8 | 5,577 | 1.953125 | 2 | [
"MIT"
] | permissive | package sqlancer.clickhouse.oracle.tlp;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;
import ru.yandex.clickhouse.domain.ClickHouseDataType;
import sqlancer.ComparatorHelper;
import sqlancer.IgnoreMeException;
import sqlancer.Randomly;
import sqlancer.clickhouse.ClickHouseProvider;
imp... | true |
ef1b9d257ca8fbf6290b00f4f2a5359d741b8418 | Java | tjsal5419/java | /JavaProj/collection/Omok.java | UHC | 384 | 3.015625 | 3 | [] | no_license | package oop.collection;
import java.util.Scanner;
public class Omok {
private int x;
private int y;
public int getX() {
return x;
}
public int getY() {
return y;
}
public void input() {
Scanner scan = new Scanner(System.in);
System.out.println("x() y() Էּ");
x=scan.nextIn... | true |
82400fa74595a91f1165d3ea447288ed5f1f98ef | Java | bagel-man/bagel-man.github.io | /eaglercraft-main/eaglercraft-main/src/main/java/net/minecraft/src/GuiRenameWorld.java | UTF-8 | 4,111 | 2.375 | 2 | [
"CC-BY-NC-4.0"
] | permissive | package net.minecraft.src;
import net.lax1dude.eaglercraft.EaglerAdapter;
import net.lax1dude.eaglercraft.GuiScreenSingleplayerLoading;
import net.lax1dude.eaglercraft.IntegratedServer;
public class GuiRenameWorld extends GuiScreen {
private GuiScreen parentGuiScreen;
private GuiTextField theGuiTextField;
private ... | true |
c40975ebdb47b56207c98001f1226df491fab474 | Java | sokffa/Ecomm | /ecomdin/src/main/java/com/energiedin/restservice/entity/LignesCommande.java | UTF-8 | 1,527 | 2.0625 | 2 | [] | no_license | package com.energiedin.restservice.entity;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class LignesCommande {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
int id;
int qteCde ;
double ... | true |
82bb38249d07ec7ac7cd28f8357439982698c0ba | Java | tytht/Android_work | /java_project/01th_hello/Hello.java | UTF-8 | 152 | 2.5 | 2 | [] | no_license |
public class Hello {
public static void main(String args[]) {
int i;
for (i = 0; i < 3; i++) {
System.out.println("Hello world!");
}
}
}
| true |
ffb5b3a657b1e59677dcb685f7c58eb1e302b275 | Java | AdhashGopal/Syncchat-MessagingApp | /app/src/main/java/com/chatapp/synchat/app/utils/ServiceKillReceiver.java | UTF-8 | 497 | 1.96875 | 2 | [] | no_license | package com.chatapp.synchat.app.utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
/**
* created by Adhash Team on 3/26/2018.
*/
public class ServiceKillReceiver extends BroadcastReceiver {
private static final String TAG = ... | true |
f0b7521217d373763daddfd9adb1d9fa357cb2ab | Java | SSEHUB/EASyProducer | /Plugins/EASy-Producer/ScenariosTest/testdata/real/QualiMaster/feb17/expected/if-gen/eu/qualimaster/families/inf/IFTimeGraph.java | UTF-8 | 6,445 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package eu.qualimaster.families.inf;
import java.io.Serializable;
import eu.qualimaster.base.algorithm.IFamily;
import eu.qualimaster.base.algorithm.IDirectGroupingInfo;
/**
* Defines the interface for the algorithm family "IFTimeGraph" (GEN).
*/
public interface IFTimeGraph extends IFamily{
/**
* Defines... | true |
1a19a38c50e57c3a226663bbe76d1a9b8968d1bb | Java | cckmit/scmp-api | /src/main/java/com/aiqin/bms/scmp/api/bireport/web/ReportFormController.java | UTF-8 | 13,129 | 1.851563 | 2 | [] | no_license | package com.aiqin.bms.scmp.api.bireport.web;
import com.aiqin.bms.scmp.api.bireport.domain.BiGoodsSalesReport;
import com.aiqin.bms.scmp.api.bireport.domain.request.ProductAndStockRequest;
import com.aiqin.bms.scmp.api.bireport.domain.response.ProductAndStockResponse;
import com.aiqin.bms.scmp.api.bireport.service.Rep... | true |
d2433a729efb94163494ea42a399ea85d0260363 | Java | YukoLeong/Android-Studio | /Kanonmoon/app/src/main/java/com/example/kanon/kanonmoon/ActionReturnPage1.java | UTF-8 | 651 | 1.859375 | 2 | [] | no_license | package com.example.kanon.kanonmoon;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
/**
* Created by kanon on 2/4/2016.
*/
public class Ac... | true |
3f88c19f48a7de648c17f62e04d466faeb35ce97 | Java | timotheeguerin/uniiv-java | /Bendo/src/ca/bendo/search/category/FilterSectionTabs.java | ISO-8859-1 | 844 | 2.328125 | 2 | [] | no_license | /**
*
*/
package ca.bendo.search.category;
import java.util.HashMap;
import java.util.Map;
/**
* @author Timothe Gurin
* @version Bendo
*
* <b>FilterSectionTabs</b>
* <p>
* </p>
*
*
*/
public class FilterSectionTabs extends FilterSectionContent
{
/**
*
*/
private Map<S... | true |
060cab2819e960406e1df50cfcdee174812892da | Java | ashish-lal/spring-samples | /spring-training/ch01-spring-di-basics/src/main/java/com/sivalabs/springtraining/AbstractBaseService.java | UTF-8 | 313 | 1.953125 | 2 | [] | no_license | /**
*
*/
package com.sivalabs.springtraining;
/**
* @author Siva
*
*/
public abstract class AbstractBaseService {
private CommonDAO commonDAO;
public void setCommonDAO(CommonDAO commonDAO) {
this.commonDAO = commonDAO;
}
public CommonDAO getCommonDAO() {
return commonDAO;
}
}
| true |