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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
40256700f44688055203cf7795bcd60599035d33 | Java | uec/uecgatk | /src/edu/usc/epigenome/uecgatk/nmerContexts/NmerCollection.java | UTF-8 | 302 | 1.789063 | 2 | [] | no_license | package edu.usc.epigenome.uecgatk.nmerContexts;
/**
* @author benb
*
* This keeps a list of NmerWithRef objects. Used extensively for bisulfite-seq analysis,
* where any given analysis is interested in (one or more) particular contexts. For instance:
*
*
*/
public class NmerCollection {
}
| true |
0a6dcb1a7e26fa3e58657522327a18be701950ee | Java | gsb7814/studygit | /pcash/src/com/sxmccitlab/pcash/po/VoucherDetail.java | UTF-8 | 3,158 | 2.0625 | 2 | [] | no_license | package com.sxmccitlab.pcash.po;
import java.sql.Timestamp;
import java.util.Date;
/**
* TVoucherDetail entity. @author MyEclipse Persistence Tools
*/
public class VoucherDetail implements java.io.Serializable {
// Fields
private VoucherDetailId id;
private String voucherDate;
private String voucherAbstract;... | true |
67812521fa26433ff97bba0a119eed55838638c9 | Java | soldiers1989/clothingShop | /CustomClothing-web/src/com/tl/customclothing/test/Test_001_connector.java | UTF-8 | 478 | 2.1875 | 2 | [] | no_license | package com.tl.customclothing.test;
import java.util.List;
import com.tl.customclothing.mapper.CountMapper;
import com.tl.customclothing.util.database.JDBCTemplate;
public class Test_001_connector
{
public static void main(String[] args)
{
// 测试连接数据库
JDBCTemplate jdbcTemplate = new JDBCTemplate();
String s... | true |
f59d3f3d60b1c2f810f46dc05d191ce0c8b70e98 | Java | movilla1/elcanPOS | /src/com/elcansoftware/elcanpos/elcanPosDataHelper.java | UTF-8 | 3,333 | 2.46875 | 2 | [] | no_license | package com.elcansoftware.elcanpos;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class elcanPosDataHelper extends SQLiteOpenHelper {
private static final String DATABASE_NAME = "elcanpos.db";
private static final int D... | true |
21b4d2931065cf6a4c1676839818ef41b75e0aff | Java | zzzke/MyChat | /app/src/main/java/com/example/zhaok/mychat/StartPageActivity.java | UTF-8 | 1,344 | 2.078125 | 2 | [] | no_license | package com.example.zhaok.mychat;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class StartPageActivity extends AppCompatActivity {
private Button alradyHaveAccountButton;
pri... | true |
52bc5416badac364cd407745d7d085718795f506 | Java | bradh/mti | /src/main/java/mti/commons/elasticsearch/NativeElasticsearchTemplate.java | UTF-8 | 7,753 | 2.109375 | 2 | [] | no_license | package mti.commons.elasticsearch;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.elasticsearch.action.admin.indices.alias.IndicesAliasesResponse;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
import org.elasticsear... | true |
1af993e02ad9a7a254b58d825ad74259bd18acde | Java | WindWZQ/CameraXQRCode | /scan/src/main/java/com/wzq/scan/util/LogUtil.java | UTF-8 | 398 | 1.804688 | 2 | [] | no_license | package com.wzq.scan.util;
import android.util.Log;
import com.wzq.scan.core.ScanConstant;
public class LogUtil {
public static void e(String TAG, String content) {
if (ScanConstant.debug) {
Log.e(TAG, content);
}
}
public static void i(String TAG, String content) {
... | true |
ebf1508eb041e9710fb30342bec9214ba8856e26 | Java | sedyukov/DotsGame | /src/GameCanvas.java | UTF-8 | 357 | 2.9375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
public class GameCanvas extends JPanel {
private final Game game;
public GameCanvas(Game game){
this.game = game;
}
@Override
public void paint(Graphics g) {
super.paint(g);
for(GameObject gameObject: game.gameObjects){
... | true |
526153e07975fee312f917150771a8a975587e81 | Java | fanmengmeng/lssg | /src/main/java/com/lssg/dao/sys/UserRoleMapper.java | UTF-8 | 280 | 1.625 | 2 | [] | no_license | package com.lssg.dao.sys;
import com.lssg.common.config.MyMapper;
import com.lssg.model.sys.UserRole;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRoleMapper extends MyMapper<UserRole> {
void deleteUserRolesByUserId(Integer[] userIds);
} | true |
964651b2ff2b638447a8e148eaaac87764d2cc8f | Java | ElementiumST/hodgepodge | /src/com/festp/remain/LeashedPlayer.java | UTF-8 | 5,589 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.festp.remain;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.craftbukkit.v1_13_R2.entity.CraftLeash;
import org.bukkit.entity.Bat;
import org.bukkit.entity.Chicken;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LeashHitch;
import org.buk... | true |
92a49d9ad09d1edab024cff6113b8dc9a686953f | Java | muneeramalik/bill-java-integral-rules | /src/main/java/org/sonar/com/csc/java/MyJavaRulesDefinition.java | UTF-8 | 3,667 | 1.929688 | 2 | [] | no_license | /*
* Copyright (C) 2009-2014 SonarSource SA
* All rights reserved
* mailto:contact AT sonarsource DOT com
*/
package org.sonar.com.csc.java;
import java.io.IOException;
import java.net.URL;
import java.util.Locale;
import javax.annotation.Nullable;
import org.sonar.api.rule.RuleStatus;
import org.sonar.api.serve... | true |
6e542ffc8925309e2444a940da89cbfd0e281b0b | Java | dwikyrestu/kotlin-read-online-api | /app/src/main/java/com/dplamongan/devkotlin/User.java | UTF-8 | 215 | 2.0625 | 2 | [] | no_license | package com.dplamongan.devkotlin;
public class User {
String name;
String last_name;
public User(String name, String last_name) {
this.name = name;
this.last_name = last_name;
}
}
| true |
8b7f7d001cad7998a3109761dbd02c6ea6b64561 | Java | happyflyer/leetcode-debug | /written_exam/src/main/java/org/example/exam/jd1/Solution1.java | UTF-8 | 2,434 | 3.765625 | 4 | [] | no_license | package org.example.exam.jd1;
import java.util.Scanner;
/**
* 小明搬进了一个新的小区里,对里面的环境和住户都比较陌生,
* 小明发现这个小区的房屋是一个网格型排列,所有房屋在一个网格状的地图上。
* 小区一共有n户人家,我们假设每户人家的位置表示为(x,y)。
* 小明觉得如果两家是邻居的话,他们的关系应该会更好一些。
* 现在我们定义当两户人家处在相同的任意一个对角线上的时候,则两户人家为邻居。
* 现在小明想要统计这样的邻居一共有多少对。
* 输入描述:
* 第一行1个整数n,0<n<=10^5,表示有n户人家。
* 接下来n行,第i行包含两个整... | true |
345df2298866329fc73fbdaa5cfba6ffa4f98953 | Java | ZoomPoppy/Algorithm | /src/com/zz/homework/chapter_2/Example/Merge.java | UTF-8 | 1,027 | 3.578125 | 4 | [] | no_license | package com.zz.homework.chapter_2.Example;
/**
* Created by zz on 2016-08-16.
*/
public class Merge {
//自顶向上
public static void sort(Comparable[] a, int lo, int hi) {
if (hi <= lo) {
return;
}
int mid = (hi - lo) / 2 + lo;
sort(a, lo, mid);
sort(a, mid + ... | true |
461500acde21ccec2eb1c64e0637900e2fd5978f | Java | christinabannon/DSA | /midterm/Stock.java | UTF-8 | 873 | 3.03125 | 3 | [] | no_license | package midterm;
public class Stock
{
private int ghost, fire, ice;
private int transactions = 0;
public Stock (int ghost, int fire, int ice)
{
this.ghost = ghost;
this.fire = fire;
this.ice = ice;
}
public void give(int g, int f, int i) throws OOSException
{
if (ghost >=g && fire >= f && ice >= ... | true |
4fc73e1700f4640979e76b9b062b733d3dadd456 | Java | avh4/rectified | /src/main/java/net/avh4/tools/rectified/swing/EditPanelView.java | UTF-8 | 1,758 | 2.359375 | 2 | [] | no_license | package net.avh4.tools.rectified.swing;
import net.avh4.tools.rectified.EditPanel;
import net.avh4.tools.rectified.Observables;
import net.avh4.tools.rectified.model.ColorComponent;
import net.avh4.tools.rectified.model.Component;
import net.avh4.tools.rectified.uimodel.cqrs.SelectionQuery;
import net.avh4.framework.u... | true |
87358a56601d741a14d34dc37fadb419df47ffc1 | Java | cycloon/jameica | /src/de/willuhn/jameica/gui/internal/action/RepositoryOpen.java | ISO-8859-1 | 1,656 | 2.109375 | 2 | [] | no_license | /**********************************************************************
*
* Copyright (c) by Olaf Willuhn
* All rights reserved
*
**********************************************************************/
package de.willuhn.jameica.gui.internal.action;
import java.net.URL;
import de.willuhn.jameica.gui.Action;
imp... | true |
54c6e02198a54da2ee8b5cd75160678709629527 | Java | riaz035/Note-Manager | /1906/Simple-Notes-Manager-master/app/src/main/java/com/notes/iit/simplenotesmanager/NotesListActivity.java | UTF-8 | 4,338 | 2.203125 | 2 | [] | no_license | package com.notes.iit.simplenotesmanager;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.widget.CursorAdapter;
import android.support.v7.app.AlertDialog;
import android.support.v... | true |
7795f30397f5002a3054ec62e6276b4f27378ba7 | Java | falconetpt/algoexpert | /src/main/java/mid/SortStack.java | UTF-8 | 310 | 3.046875 | 3 | [] | no_license | package mid;
import java.util.List;
import java.util.stream.Stream;
public class SortStack {
public List<Integer> sortStack(List<Integer> stack) {
final Stream<Integer> stream = stack.stream()
.sorted();
stream.peek(i -> stack.remove(0))
.forEach(stack::add);
return stack;
}
}
| true |
2a08a9b3bf22db92ec858e153ec680b4afa55ec2 | Java | whatahellmw2/listaExerciciosPPS | /exercicio1/src/main/java/business/marcas/removeNomeDasMarcas.java | UTF-8 | 770 | 2.515625 | 3 | [] | no_license | package business.marcas;
import java.util.ArrayList;
/*
* 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.
*/
/**
*
* @author Thiago
*/
public class removeNomeDasMarcas {
ArrayList<... | true |
5b2f2c19d4d224e4fbac4781278a15c55b3df718 | Java | 942391815/test | /test/test-test/src/main/java/com/test/java/algorithm/find/test/One.java | UTF-8 | 726 | 3.25 | 3 | [] | no_license | package com.test.java.algorithm.find.test;
public class One {
public static void main(String[] args) {
int[][] num = num(4, 4);
System.out.println(num[4][1]);
System.out.println(num[4][2]);
System.out.println(num[4][3]);
}
public static int[][] num(int row, int column) {
... | true |
5984da4d8c5d69d7713e9136507a513c51415db7 | Java | sabo99/EatIt-Android | /app/src/main/java/com/alvin/androideatit/SearchActivity.java | UTF-8 | 6,014 | 2.125 | 2 | [] | no_license | package com.alvin.androideatit;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import andro... | true |
e8323d3ef686de1045eab48df1152068e7581bfa | Java | ztmark/springbootref | /src/main/java/io/ztmark/service/MyUserDetailsService.java | UTF-8 | 897 | 2.15625 | 2 | [] | no_license | package io.ztmark.service;
import io.ztmark.domain.User;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdet... | true |
a745e2ddb5911602c99c5b4bef258d7dea3bc45a | Java | paulpell/miam | /src/org/paulpell/miam/net/NetMethods.java | UTF-8 | 4,382 | 2.671875 | 3 | [] | no_license | package org.paulpell.miam.net;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import org.paulpell.miam.geom.Pointd;
import org.paulpell.miam.net.TimestampedMessage.MsgTypes;
public class NetMethods
{
private static final int TIMESTAMP_START_POS = 0;
... | true |
f055a08ecdf96277f3bbfdedceb13fd03d8f76a6 | Java | Artmozaec/BookDict | /src/programdirection/rms/onestoremanyrecords/OneStoryManyRecords.java | WINDOWS-1251 | 3,462 | 3.09375 | 3 | [] | no_license | package onestoremanyrecords;
import javax.microedition.rms.*;
import java.util.Vector;
public class OneStoryManyRecords{
//
public String recordStoreName;
//
private boolean errorStore;
public OneStoryManyRecords(String inStoreName){
recordStoreName = inStoreName;
errorStore = false;
}
pub... | true |
e6651ccf25c8a8c8d0a58dd1dae3ecae85f81365 | Java | SharathTSK/week1.assginment | /arrays/SecondLargestValue.java | UTF-8 | 273 | 2.9375 | 3 | [] | no_license | package assignment.week1.day2.arrays;
import java.util.Arrays;
public class SecondLargestValue {
public static void main(String[] args) {
int data[]= {3,2,11,4,6,7};
Arrays.sort(data);
System.out.println(data[data.length-2]);
}
}
| true |
3c0ac6988c8857d5c33d5a01ec3e6178d0d41147 | Java | DimaShum/Test-tasks-for-GP-Solution.-Stage-2 | /2-Calc/src/Main.java | UTF-8 | 800 | 3.1875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
Calc calc = new Calc();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
System.out.println(calc.esti... | true |
1fe776a9075786b719b45b2d91bc7cf47425b983 | Java | lzbCoder/Digibird_Study | /java-spring--demo/src/main/java/com/spring/test/SpringIocDemo.java | UTF-8 | 1,018 | 2.875 | 3 | [] | no_license | package com.spring.test;
import com.spring.domain.Student;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 该类用于对{@code spring}中{@code IoC}思想进行演示
*
* @author lzb
* @versio... | true |
71025f45c49fea26274aa43c43f6da08d7dab7c9 | Java | hivinau/RSSReader | /app/src/main/java/fr/unicaen/info/users/hivinaugraffe/apps/android/rssreader/globals/DatabaseConstant.java | UTF-8 | 733 | 1.789063 | 2 | [] | no_license | package fr.unicaen.info.users.hivinaugraffe.apps.android.rssreader.globals;
public class DatabaseConstant {
public static final String TABLE_CHANNELS = "channels";
public static final String TABLE_ITEMS = "items";
public static final String TABLE_COLUMN_CHANNEL = "channel";
public static final String... | true |
edf2916bffebc94439febc2f027904432e4b49e4 | Java | loan-app/loanshop-android | /provider/src/main/java/com/ailiangbao/provider/bll/inject/prefs/ProviderApplicationPrefsModule.java | UTF-8 | 864 | 1.90625 | 2 | [] | no_license | package com.ailiangbao.provider.bll.inject.prefs;
import android.content.Context;
import com.ailiangbao.provider.bll.inject.scope.Provider_Scope_Application;
import com.ailiangbao.provider.dal.prefs.PrefsConstants;
import com.ailiangbao.provider.dal.prefs.PrefsHelper;
import javax.inject.Named;
import dag... | true |
30029ec7799f268f631b4a99b0767cb1611b6171 | Java | KilianKrause/coderadar | /coderadar-core/src/test/java/io/reflectoring/coderadar/projectadministration/module/GetModuleServiceTest.java | UTF-8 | 1,329 | 2.203125 | 2 | [
"MIT"
] | permissive | package io.reflectoring.coderadar.projectadministration.module;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
import io.reflectoring.coderadar.projectadministration.domain.Module;
import io.reflectoring.coderadar.projectadministration.port.driven.module.GetModulePor... | true |
c100ae5296de6c8c1c92bf00145515d1cf07667f | Java | taink3107/capstonev6 | /src/main/java/com/cmms/demo/endpoint/RoleController.java | UTF-8 | 3,212 | 2.125 | 2 | [] | no_license | package com.cmms.demo.endpoint;
import com.cmms.demo.domain.MyMessage;
import com.cmms.demo.domain.RolePOJO;
import com.cmms.demo.dto.RoleDTO;
import com.cmms.demo.service.RoleService;
import com.cmms.demo.serviceImpl.RoleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
310687b7ae588bec471ed458735d4ef3cd9eaf04 | Java | pedroaleao/codigo-sem-barreiras | /curso-java-resolucoes/src/parte_02/exercicio_02/Main.java | UTF-8 | 3,206 | 3.65625 | 4 | [] | no_license | package parte_02.exercicio_02;
import java.util.ArrayList;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
int[] diasDaSemanas = {1, 2, 3, 4, 5, 6, 7};
// diasDaSemanas[6] = 999; // Trocando o valor do array manualmente na posição 6
// Iterar sobre... | true |
d0b9da2f1873b9eb9cdd83b0c38815b904358c79 | Java | maskwang520/Jplus | /Jplus/src/com/jplus/controller/IndexMapperController.java | UTF-8 | 7,556 | 2.3125 | 2 | [] | no_license | package com.jplus.controller;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereo... | true |
957b59d63b6b6e6a2b74e3600ae29c850ec967ea | Java | IRH01/smart_statistics | /src/main/java/com/hhly/smartdata/service/daily/DailyLoginStatisticsService.java | UTF-8 | 4,692 | 2.171875 | 2 | [] | no_license | package com.hhly.smartdata.service.daily;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.hhly.smartdata.dto.enume.SourceTypeEnum;
import com.hhly.smartdata.mapper.member.SystemConfigMapper;
import com.hhly.smartdata.mapper.smartdata.Dail... | true |
36c3661a73e558db48a2c25a60729955c61089a4 | Java | cdisi/cw | /src/main/java/com/zk/cw/yonga_seti/YongaSeti.java | UTF-8 | 547 | 2.34375 | 2 | [] | no_license | package com.zk.cw.yonga_seti;
public class YongaSeti {
private Integer id;
private String ad;
public YongaSeti() {
}
public YongaSeti(Integer id, String ad) {
this.id = id;
this.ad = ad;
}
public void setId(Integer id) {
this.id=id;
}
public Integer getId() {... | true |
bff176ada31845b9db41932ae495cd5825b815ff | Java | vamseems/Android-Nanodegree | /Project 2/PopMov/app/src/main/java/com/vchamakura/popmov/MovieDetailItem.java | UTF-8 | 1,043 | 2.125 | 2 | [] | no_license | package com.vchamakura.popmov;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* Created by vchamakura on 04/03/16 at 1:07 AM.
* Copyrights reserved to Vamsee Chamakura
*/
public class MovieDetailItem {
final String title;
final String movieID;
final String posterURL;
final String backD... | true |
ce101f3cf96b46169b57e27b3e9b80a45a61b133 | Java | exbergamot/SnakeQLearning | /src/main/java/snake/swing/tabs/DataPanel.java | UTF-8 | 4,744 | 2.5625 | 3 | [] | no_license | package snake.swing.tabs;
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DataPanel extends JPanel{
private static Map<String, List<String>> fieldMap = new HashMap<>();
public static final String LEARNIN... | true |
a22b67f14b8205a43b9db51c49ce4974b7f44a8b | Java | TaisiiaFenz/University | /Semester_6/DistributedComputing/test_2/src/main/java/dao/CatalogDaoImpl.java | UTF-8 | 1,944 | 3.03125 | 3 | [] | no_license | package dao;
import models.Catalog;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class CatalogDaoImpl implements DAO<Catalog>{
Connection connection;
public CatalogDaoImpl(Connection connection) {
this.connection = connection;
}
@Override
public List<Cata... | true |
cd75ccb39322fd7037fab238730d98cc9b1b63c3 | Java | ayusuke7/ProcessamentoDigitalImagens | /ProcessamentoDigitalImagem/src/controle/ConverteMatToImage.java | UTF-8 | 1,259 | 3.21875 | 3 | [] | no_license | package controle;
import java.awt.image.BufferedImage;
import org.opencv.core.Mat;
/**
*
* @author YU7
*/
public class ConverteMatToImage {
public BufferedImage converteMatImage(Mat matrix) {
int colunas = matrix.cols();
int linhas = matrix.rows();
int elemSize = (int) ... | true |
a75c8690d340676383e3cbecf802277ab3346ca7 | Java | KMikulcak/siw | /monitoring_api_data_access/src/main/java/swi_dal/DataSource/Contract/IDataSource.java | UTF-8 | 229 | 1.921875 | 2 | [] | no_license | package swi_dal.DataSource.Contract;
import java.util.List;
import swi_dal.Dto.Order;
import swi_dal.Dto.State;
public interface IDataSource {
List<State> GetStates(String filter);
List<Order> GetOrders(String filter);
}
| true |
616fbfa0ee6de9a3a92dbf1c49279dace3b3c7ce | Java | andreas-schilling/spring-boot-thymeleaf-test | /src/main/java/de/twt_gmbh/cube/model/Nameable.java | UTF-8 | 84 | 1.882813 | 2 | [] | no_license | package de.twt_gmbh.cube.model;
public interface Nameable
{
String getLabel();
}
| true |
2098710ddd3aba23cb0a18007001f7cc2194a60c | Java | KateKlus/TaskManager | /backend/src/main/java/ru/compito/taskmanager/controller/TemplateAttributesController.java | UTF-8 | 3,331 | 1.867188 | 2 | [] | no_license | package ru.compito.taskmanager.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.spr... | true |
37f4d7f6f4af1b17e09567cc369c663f583e999b | Java | mahdiabdollahpour/Algorithms-Design-and-Analysis | /src/algo2/ClusteringBig.java | UTF-8 | 4,406 | 2.671875 | 3 | [] | no_license | package algo2;
import java.io.*;
import java.util.ArrayList;
import java.util.HashSet;
/**
* Created by ASUS on 28/01/2018.
*/
public class ClusteringBig {
// static class Node {
// int num;
// String bin;
//
// public Node(int num, String bin) {
// this.num = num;
// ... | true |
1188381d67f1e81071f4a4dc8f70562ef6e504ce | Java | rajes95/object_oriented_design | /05_constructors_accessors_mutators/Problem_1/Problem_1.java | UTF-8 | 1,882 | 3.703125 | 4 | [] | no_license | import teamRecords.Team;
import teamRecords.Competition;
/**
*
* Problem_1.java
*
* This class file contains a main function whose purpose is to test the Team
* class and vis-a-vis the Competition class as well located in the teamRecords
* package.
*
* The team class is used to keep track of the team member... | true |
4ec1544395c6820b1965dd7a7cdd3bb013746772 | Java | MarcBerneman/Space-Golf | /src/gui_componenten/MainMenuPanel.java | UTF-8 | 1,399 | 2.828125 | 3 | [] | no_license | package gui_componenten;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import tools.LevelQueue;
public class MainMenuPanel extends JPanel implements ActionListener {
private static final long serialVersionUID = -3801890339594484316L;... | true |
90f51532cb0fb945c16456ce50c3538dcc82f877 | Java | DoanVanToan/AndroidViewModelViblo012018 | /app/src/main/java/sample/toandoan/com/androidviewmodel_viblo012018/sharedata/master/MasterAdapter.java | UTF-8 | 2,288 | 2.453125 | 2 | [] | no_license | package sample.toandoan.com.androidviewmodel_viblo012018.sharedata.master;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import java.... | true |
ce3e0770db3d07312616aa82ebee720a45d9188b | Java | SteveTan86/Spark-POC | /src/main/java/me/stevetan/sparkpoc/controller/Index.java | UTF-8 | 758 | 2.28125 | 2 | [] | no_license | package me.stevetan.sparkpoc.controller;
import me.stevetan.sparkpoc.model.User;
import me.stevetan.sparkpoc.util.Database;
import spark.Request;
import spark.Response;
import javax.persistence.EntityManager;
/**
* Created by stevetan on 19/8/16.
*/
public class Index {
public static Object handleHelloWorld(Re... | true |
baceb2e544a232fa5884d230a309653b3e4b5b19 | Java | djveljkovic15/Domaci7 | /src/dzo/mvcrest/shop/ShopService.java | UTF-8 | 535 | 2.34375 | 2 | [] | no_license | package dzo.mvcrest.shop;
import java.util.List;
/**
* Servisni sloj se bavi svom "biznis logikom"
*/
public class ShopService {
public List<Shop> getShops(String shopName){
return ShopRepository.getShops(shopName);
}
public Shop getShopById(Integer id){
return ShopRepository.getShopBy... | true |
d76b5a13c9f1d7a54c7414a0dadf19dba0bf2cbc | Java | JetBrains/teamcity-rest | /src/jetbrains/buildServer/server/rest/model/problem/TestCounters.java | UTF-8 | 3,873 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2022 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 |
9d867334e7a49db909b351a061b03a7493cf69a5 | Java | opel13may/MyApplication2 | /app/src/main/java/charlie/myapplication/Main3Activity.java | UTF-8 | 14,405 | 2.4375 | 2 | [] | no_license | package charlie.myapplication;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget... | true |
4f39bece901391dba9f59090019e7fad208075a6 | Java | ericdoppelt/xml-casino | /src/engine/evaluator/handevaluator/HandEvaluatorInterface.java | UTF-8 | 712 | 3.078125 | 3 | [
"MIT"
] | permissive | package engine.evaluator.handevaluator;
import engine.hand.PlayerHand;
/**
* Interface implemented by hand evaluator, single public service to compare two hands
* @author Max Smith
*/
public interface HandEvaluatorInterface {
/**
* Compares two Hands and determines a winner based on the hierarchy given v... | true |
5c9f54099d811770d9cc2d043a47c91d763fc838 | Java | javiergarciacotado/social-service | /src/test/java/co/tide/exercise/configuration/PropertiesReaderIT.java | UTF-8 | 1,521 | 2.71875 | 3 | [] | no_license | package co.tide.exercise.configuration;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
public class PropertiesReaderIT {
private static final String UNKNOWN_PROPERTY = "some.property... | true |
ffd9ff1ea0b8e45245dbd9a0b67db917b191e08d | Java | Sistema-de-atendimento-hospitalar/notificacao-service | /src/main/java/br/com/bublemedical/notificationservice/controller/TokenController.java | UTF-8 | 1,237 | 2.078125 | 2 | [] | no_license | package br.com.bublemedical.notificationservice.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
... | true |
1f4135a50adb383e84e7734d680ca95008200130 | Java | hackugyo/GATEMail | /GATEmail/src/jp/hackugyo/gatemail/util/ImeUtils.java | UTF-8 | 2,806 | 2.453125 | 2 | [] | no_license | package jp.hackugyo.gatemail.util;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
/**
* 文字入力を表示・非表示します.
*
* @author kwatanabe
*
*/
public class ImeUtils {... | true |
4761a77957d58d975b104a4a1442eb528800d3e7 | Java | xchnba/spring_boot_mybits | /src/main/java/com/example/demo/mall/controller/TestController.java | UTF-8 | 1,944 | 1.914063 | 2 | [] | no_license | package com.example.demo.mall.controller;
import org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.mu... | true |
77f71e1b206ca9b21fcc91cf46171d682e391445 | Java | joshalumasa/sports-backend | /src/main/java/com/api/backend/App.java | UTF-8 | 230 | 1.710938 | 2 | [] | no_license | package com.api.backend;
public class App {
public static void main(String[] args) throws Exception {
System.out.println("#No.1 Sports App");
ApiCalls api = new ApiCalls();
api.fetchLeagues();
}
}
| true |
c9a7d7cf92066b1c6cd3b5a665f2155886888b0b | Java | megchisp/car-repair-shop | /src/main/java/negocio/ManoDeObraManager.java | UTF-8 | 1,641 | 2.609375 | 3 | [] | no_license | package negocio;
import java.util.List;
import persistencia.IManoDeObraDao;
import persistencia.ManoDeObra;
import persistencia.ManoDeObraDao;
import persistencia.Servicio;
public class ManoDeObraManager implements IManoDeObraManager {
private int estadoFinal;
IManoDeObraDao manoDeObraDao;
publi... | true |
123882315d57398b8ce723b6c4be67dd430e3170 | Java | cloudkeeper-project/cloudkeeper | /cloudkeeper-core/cloudkeeper-basic/src/main/java/xyz/cloudkeeper/simple/SingleVMCloudKeeper.java | UTF-8 | 10,087 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package xyz.cloudkeeper.simple;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import scala.concurrent.Await;
import scala.concurrent.duration.Duration;
import xyz.cloudkeeper.interpreter.AdministratorActorCreator;
import xyz... | true |
8da54e463a7a42227950c5939ca0d2f04ee50ab4 | Java | Encephalon5/javahardway | /ReceiptRevisited.java | UTF-8 | 1,156 | 3.09375 | 3 | [] | no_license | import java.io.PrintWriter;
import java.util.Scanner;
public class ReceiptRevisited {
public static void main( String[]args ) throws Exception {
PrintWriter fileout = new PrintWriter("receipt.txt");
Scanner keyboard = new Scanner(System.in);
double pG, nG, net, tax;
System.out.print("How many gallons... | true |
ccae3c038e8d666a09ebe21d0cf8ae9863306e41 | Java | LartTyler/SolusRpg-bukkit | /src/me/dbstudios/solusrpg/SolusRpg.java | UTF-8 | 2,236 | 2.171875 | 2 | [] | no_license | package me.dbstudios.solusrpg;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import me.dbstudios.solusrpg.config.Configuration;
import me.dbstudios.solusrpg.entities.stats.AuxStat;
import me.dbstudios.solusrpg.events.EventDistributor;
import me.dbstudios.solusrpg.ev... | true |
1ac3ab69b4f364a4ed0051654ead91ec1ba1bc90 | Java | wzh1212/mll_parent | /mll_security/src/main/java/com/xmcc/mll_security/core/social/SocialConfig.java | UTF-8 | 2,740 | 1.96875 | 2 | [] | no_license | package com.xmcc.mll_security.core.social;
import com.xmcc.mll_security.core.social.qq.QQConnectionFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
i... | true |
fc654ed87c27478955956681e03b1ac0bf1eb995 | Java | nitvic793/sling-android | /app/src/main/java/in/sling/utils/Chat.java | UTF-8 | 12,859 | 1.617188 | 2 | [] | no_license | package in.sling.utils;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v7.widget.LinearLayoutManager;
imp... | true |
a50ae0c5315d84febea0a855302e0ee2461414c7 | Java | duchuan1314/Du_ExamWeb | /Du_ExamWeb/src/dao/QuestionKuBean.java | UTF-8 | 7,217 | 2.375 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import entity.QuestionKuEntity;
public class QuestionKuBean ... | true |
d909d536658c9aa9579fc8c5fc5f24fefea29818 | Java | liquid-mind/warp | /src/exwrapper/ch/shaktipat/exwrapper/java/lang/ProcessWrapper.java | UTF-8 | 260 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package ch.shaktipat.exwrapper.java.lang;
public class ProcessWrapper
{
public static int waitFor( Process process )
{
try
{
return process.waitFor();
}
catch ( InterruptedException e )
{
throw new InterruptedExceptionWrapper( e );
}
}
}
| true |
4c9256ea7a5c849e55a2c6e910f04c9ff41a81ca | Java | Agnieszka-L/agnieszka_lachendro-kodilla_tester | /kodilla-intro/src/main/java/RandomNumbers.java | UTF-8 | 872 | 3.9375 | 4 | [] | no_license | import java.util.Random;
public class RandomNumbers {
public static void main(String[] args) {
Random random = new Random();
int sum = 0;
int max = 0;
int min = 31;
while (sum <= 5000) {
int number = random.nextInt(31);
System.out.println("Wylosowana... | true |
c49152378d229a80694d8ebff1a82526b00aa0fa | Java | muraliremod7/iFocusConnect | /app/src/main/java/com/app/ifocusmission/Notification.java | UTF-8 | 1,952 | 1.914063 | 2 | [] | no_license | package com.app.ifocusmission;
import com.app.ifcousmission.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
public c... | true |
eda4363f78760a784e673607522c0c490003eeab | Java | yukungao/InTheaterNow | /boxbuster1/src/main/java/com/yukun/boxbuster1/http/entity/HttpTicket.java | UTF-8 | 684 | 2.359375 | 2 | [] | no_license | package com.yukun.boxbuster1.http.entity;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.yukun.boxbuster1.entity.Ticket;
@XmlRootElement(name = "ticket")
public class HttpTicket {
@XmlElement
public long id;
@XmlElement
public long movieId;
@XmlElement... | true |
0a0eaccef4aa6540020840c1cf18375739b84358 | Java | shulieTech/Takin-web | /takin-web-entrypoint/src/main/java/io/shulie/takin/web/entrypoint/controller/dashboard/WorkBenchController.java | UTF-8 | 1,852 | 1.984375 | 2 | [] | no_license | package io.shulie.takin.web.entrypoint.controller.dashboard;
import java.util.List;
import javax.annotation.Resource;
import io.shulie.takin.common.beans.annotation.ActionTypeEnum;
import io.shulie.takin.common.beans.annotation.AuthVerification;
import io.shulie.takin.web.biz.constant.BizOpConstants;
import io.shuli... | true |
e32bc8917c17ddfa7dd97a3eea4db4764886fbdd | Java | hivemq/hivemq-community-edition | /src/test/java/com/hivemq/mqtt/handler/connect/NoTlsHandshakeIdleHandlerTest.java | UTF-8 | 4,097 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-present HiveMQ GmbH
*
* 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 ag... | true |
e147bf53b9103dd30fb381f8e27ee6e9a005432a | Java | AybarsAcar/RecipeProjectJavaMVC | /src/main/java/dev/aybarsacar/recipeproject/repositories/CategoryRepository.java | UTF-8 | 564 | 2.328125 | 2 | [] | no_license | package dev.aybarsacar.recipeproject.repositories;
import dev.aybarsacar.recipeproject.domain.Category;
import org.springframework.data.repository.CrudRepository;
import java.util.Optional;
/**
* this is hte Repository we specify our query methods to interact with the db
* Repository layer
*/
public interface Cat... | true |
36474087df268690a28087fc867da69859bf3c78 | Java | pan1394/SqlParser | /Bee/src/com/linkstec/bee/core/codec/basic/BasicScannerPath.java | UTF-8 | 734 | 1.960938 | 2 | [] | no_license | package com.linkstec.bee.core.codec.basic;
import com.linkstec.bee.core.fw.BParameter;
import com.linkstec.bee.core.fw.logic.BLogicBody;
public class BasicScannerPath {
private BasicScannerPath parent;
private BParameter parameter;
private BLogicBody body;
public BasicScannerPath() {
}
public B... | true |
80bf33bd7254068c58b93ba844ae9ddbd37ed0b6 | Java | ArundhadiyarSagar/github | /LeftRotate.java | UTF-8 | 587 | 3.765625 | 4 | [] | no_license | package com.arrayPrograms;
public class LeftRotate {
public static void main(String[] args) {
int arr[] = new int[] {1,2,3,4,5};
System.out.println("Elements of The Array");
for(int i=0;i<arr.length;i++) {
System.out.print(" " + arr[i]);
}
int n=1; //Times of LEFT Rotation
for(int i=0;i<n;i... | true |
c2a8f6867d7c6c9a7ba9c19791f02880f3c8eff5 | Java | SpreadWater/LastClassDemo | /app/src/main/java/com/example/lastclassdemo/adapter/RecordPagerAdapter.java | UTF-8 | 987 | 2.375 | 2 | [] | no_license | package com.example.lastclassdemo.adapter;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import java.util.List;
/**
* @author SpreadWater
* @Date 2020-1... | true |
db29dee81f8db5b5d1eaddf80e1dffadcf42ee9e | Java | abarbay/YR | /Java/genericmethod/src/main/java/genericmethod/ArrayMiddleObjectFinder.java | UTF-8 | 487 | 3.21875 | 3 | [] | no_license | package genericmethod;
public class ArrayMiddleObjectFinder {
public <T> T findMiddleObject(T... arr) throws IllegalArgumentException {
if (arr == null) {
throw new NullPointerException();
}
if (arr.length == 0) {
throw new IllegalArgumentException();
}
... | true |
d9b5e260461767e34b079a03a0d757ffcd32bf8f | Java | Reekdnroxx7/inventory | /codes/admin/src/main/java/com/x404/admin/manage/sys/tools/ClientSort.java | UTF-8 | 289 | 1.921875 | 2 | [] | no_license | package com.x404.admin.manage.sys.tools;
import java.util.Comparator;
public class ClientSort implements Comparator<UserInfo> {
public int compare(UserInfo prev, UserInfo now) {
return (int) (now.getLogindatetime().getTime() - prev.getLogindatetime().getTime());
}
}
| true |
c399955035c38e51ea1717893b1a20ac691ecc4c | Java | joncruz96/SistemaEscolaCore | /src/main/java/com/totvs/escola/core/turma/exception/AlunosTurmaNotFoundException.java | UTF-8 | 494 | 1.929688 | 2 | [] | no_license | package com.totvs.escola.core.turma.exception;
import com.totvs.tjf.api.context.stereotype.ApiErrorParameter;
import com.totvs.tjf.api.context.stereotype.error.ApiBadRequest;
@ApiBadRequest("AlunosTurmaNotFoundException")
public class AlunosTurmaNotFoundException extends RuntimeException {
private static final long... | true |
a851de5b46ae22ef5adf57ccd742e285c8441d6c | Java | cenbow/pop | /pop/src/com/ai/bdx/pop/service/impl/PopReceiveCepDataHandlerImpl.java | UTF-8 | 3,199 | 2.078125 | 2 | [] | no_license | package com.ai.bdx.pop.service.impl;
import net.sf.json.JSONObject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.ai.bdx.pop.buffer.IDataHandle;
import com.ai.bdx.pop.model.PopPolicyBaseinfo;
import com.ai.bdx.pop.model.PopPolicyRule;
import com.ai.bdx.pop.service.IPo... | true |
7f82ef8959e11ec17aac898e5796fa554c4bbdb2 | Java | Kurisasa/MyApplication | /app/src/main/java/com/example/myapplication/adapters/InvoiceDateAdapter.java | UTF-8 | 3,633 | 2.46875 | 2 | [] | no_license | package com.example.myapplication.adapters;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.myapplic... | true |
ce599508aacb848672170dff24c351794ed2634a | Java | keyur2714/Design-Pattern-With-Java | /FlyWeightDesignPatternDemo/src/com/webstack/dp/VehicleFactory.java | UTF-8 | 992 | 2.859375 | 3 | [] | no_license | package com.webstack.dp;
import java.util.HashMap;
import java.util.Map;
import com.webstack.dto.HeroBike;
import com.webstack.dto.HyundaiCar;
import com.webstack.dto.SuzukiBike;
import com.webstack.dto.TataCar;
import com.webstack.dto.Vehicle;
public class VehicleFactory {
static Map<String,Vehicle> vehicleMaps ... | true |
c9c821d4e17233f37e135cd5ffad9a88465969d1 | Java | slimmtl/cellbase | /cellbase-server/src/main/java/org/opencb/cellbase/server/ws/regulatory/RegulatoryWSServer.java | UTF-8 | 5,155 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
c6b8bb7b81559dbb2cc2a26b6db112b6fef10f41 | Java | MyCloudream/java1017 | /HelloJava/src/cn/ucai/day09/p9/Person.java | WINDOWS-1252 | 132 | 1.953125 | 2 | [] | no_license | package cn.ucai.day09.p9;
public class Person {
public static void m(){
System.out.println("Personľ̬m");
}
}
| true |
c1663a1789eb7fb9ee56902787a3e4b08ca5d839 | Java | CristianRad/Simulare | /src/Service/BillService.java | UTF-8 | 959 | 2.890625 | 3 | [] | no_license | package Service;
import Domain.Bill;
import Repository.BillRepository;
import java.util.List;
public class BillService {
private BillRepository billRepository;
/**
* Instantiates a service for bills.
* @param billRepository is the repository used.
*/
public BillService(BillRepository bi... | true |
5b45afff1a81db7c08cca4e02205acedee8c1a77 | Java | fredyw/coding4fun | /src/main/java/coding4fun/Problem7.java | UTF-8 | 622 | 3.84375 | 4 | [
"MIT"
] | permissive | package coding4fun;
/**
* Reverse a string in-place.
* <p>
* Input: Hi there, hello world
* Output: dlrow olleh ,ereht iH
*/
public class Problem7 {
private static void reverse(char[] string) {
for (int i = 0; i < string.length / 2; i++) {
char tmp = string[i];
string[i] = stri... | true |
07a01ef00bcec47b7ae7244f87d05bb0f02d8e5a | Java | thuhiensp/Generator | /output/PFontFaceSet.java | UTF-8 | 4,006 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 SmartTrade Technologies
* Pony SDK
*
* 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 appl... | true |
b466261318c7dcdc9e2e894a16f2ca363041b11d | Java | srad/LiquidSands | /src/de/frankfurt/uni/vcp/net/Info.java | UTF-8 | 1,474 | 3.3125 | 3 | [] | no_license | package de.frankfurt.uni.vcp.net;
import java.lang.reflect.Field;
import java.util.HashMap;
/**
* <h3> This is the base class, from which all other network relevant information
* datastructures are inherited. </h3>
*
* <p> To prepare for a more or less easy mapping between network-messages and
* corre... | true |
5208e0bce81fee02996e205ddee48cb952e4ff9d | Java | kkaren/BasesDadesAvan_Practiques | /Practica1_BDA/src/practica1_bda/Usuari.java | UTF-8 | 2,035 | 2.75 | 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 practica1_bda;
import java.io.Serializable;
import javax.persistence.*;
/**
* Classe usuari
* @author Karen i Judit
*/
@Ent... | true |
78b3dd9dc9f41f2d6da31752b624a9840ec1b3ff | Java | niyueming/baseContextLibrary | /src/main/java/net/nym/basecontextlibrary/common/NBaseApplication.java | UTF-8 | 1,423 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017 Ni YueMing<niyueming@163.com>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | true |
37326ef6a7d088fbc1b4151c983c64a3bc4e3c6b | Java | gargk981/DailyQuestions | /CntSAMaxEleGrtThanK.java | UTF-8 | 700 | 3.1875 | 3 | [] | no_license | package classDSQuestions;
import java.util.*;
public class CntSAMaxEleGrtThanK {
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
System.out.print("Enter number of elements you want to enter in array: ");
int n=sc.nextInt();
int[] arr=new int[n];
System.out.println("Enter ar... | true |
d337c41b0dc2724b182916e1b8198170b491a83b | Java | pablohayden/address-book-rest-api | /src/main/java/com/pablo/addressbook/AddressBook.java | UTF-8 | 902 | 2.703125 | 3 | [] | no_license | package com.pablo.addressbook;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class AddressBook {
private List<Contact> contacts = new ArrayList<Contact>();
private Filter filter;
public AddressBook() {
}
p... | true |
231049162567993f184e49eafe5ffcc0ee270144 | Java | addurisimhadri/batchprocess | /src/main/java/com/sim/batchprocessing/dao/SongMetaContentRepository.java | UTF-8 | 368 | 1.757813 | 2 | [] | no_license | package com.sim.batchprocessing.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.sim.batchprocessing.entity.SongContentId;
import com.sim.batchprocessing.entity.SongMeta;
public interface SongMetaContentRepository extends JpaRepository<SongMeta, SongContentId> {
SongMeta findBySmIdAnd... | true |
c702ee7da49a097bb080410fc7933a383c99a71d | Java | laivizhu/laivizhu.github.io | /knowledge/src/com/laivi/knowledge/basic/model/po/JsonEntity.java | UTF-8 | 184 | 1.757813 | 2 | [] | no_license | package com.laivi.knowledge.basic.model.po;
/**
* User: dizem@126.com Time: 12-8-15 下午4:20
*/
public interface JsonEntity {
String toJson();
String toFormJson(boolean success);
}
| true |
2e20382526cc79328e221d5d0846c2adffdca2c0 | Java | renallen/Algrithom | /DataStructAndAlgorithm/src/com/bob/Offer/swap.java | UTF-8 | 161 | 2.609375 | 3 | [] | no_license | package com.bob.Offer;
public class swap {
public void swap(int a,int b){
a=a^b;
b=a^b;
a=a^b;
}
public void swap1(int a,int b){
a=a+b;
b=a-b;
a=a-b;
}
}
| true |
045a1b03010f2e110995673c9a17bd53d2d29cf4 | Java | anantkshirsagar/DesignPatterns | /src/com/patterns/abstract_factory_ex2/Rectangle.java | UTF-8 | 238 | 3.25 | 3 | [] | no_license | package com.patterns.abstract_factory_ex2;
public class Rectangle extends Shape{
private int width;
public Rectangle(int width) {
this.width = width;
}
@Override
public int getWidth() {
return this.width;
}
}
| true |
6b4f5ebb4a4a85c0465e14dbef377234868ac7a7 | Java | quazuo/PO-Robson | /src/commands/Variable.java | UTF-8 | 882 | 2.953125 | 3 | [] | no_license | package commands;
import util.InvalidProgramException;
import util.RobsonExecutionException;
import java.util.HashMap;
import java.util.HashSet;
public class Variable extends Command {
private final String nazwa;
public Variable(String nazwa) {
super("Zmienna");
this.nazwa = nazwa;
}
... | true |
30134c36a650bda74f7bc143596ff5708ffbe6e8 | Java | 545923664/xx-im | /xx-im/src/main/java/com/jzwl/instant/service/impl/FileServiceImpl.java | UTF-8 | 5,946 | 2.28125 | 2 | [] | no_license | package com.jzwl.instant.service.impl;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import... | true |
0ade55d7fbcd7491faa1b9540b6e0fb7f1012795 | Java | Marta2909/JAVA-course | /KursJava_Pojazd/src/WlasciwosciPojazdu.java | UTF-8 | 231 | 2.46875 | 2 | [] | no_license |
public abstract class WlasciwosciPojazdu {
public void nieZaSzybko(int predkosc, int predkoscMax){
if(predkosc*2 == predkoscMax){
System.out.println("Nie jedziesz za szybko?");
}
}
public abstract void skrec(int kat);
}
| true |
15df91525acbe6261323718541ebd291e2935c40 | Java | wangchen1206/springcloud | /spring-demo/src/main/java/com/cc/learn/concurrent/CustomRejectionHandler.java | UTF-8 | 570 | 2.546875 | 3 | [] | no_license | package com.cc.learn.concurrent;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
/**
* Description
*
* @author wangchen
* @createDate 2020/11/05
*/
@Slf4j
public class CustomRejectionHandler implements RejectedExecutionHandl... | true |
b045bd3cd775a6bd1c90aaae59270d5e1a4e895b | Java | theFlowerAndTheWind/NewWaterChain | /app/src/main/java/com/shuzijieshui/www/waterchain/contract/presenter/BuyBackPresenter.java | UTF-8 | 1,235 | 2.25 | 2 | [] | no_license | package com.shuzijieshui.www.waterchain.contract.presenter;
import com.shuzijieshui.www.waterchain.base.BaseActivity;
import com.shuzijieshui.www.waterchain.contract.BasePresenter;
import com.shuzijieshui.www.waterchain.contract.model.BuyBackModel;
import com.shuzijieshui.www.waterchain.contract.model.callback.CommonC... | true |
93540e0a4e69877aaf1225f64998249e41ef4b1f | Java | NenadPantelic/java-functional | /java-functional-examples/src/main/java/streams/_Stream.java | UTF-8 | 2,059 | 3.25 | 3 | [
"MIT"
] | permissive | package streams;
import static streams._Stream.Person.Gender.MALE;
import static streams._Stream.Person.Gender.FEMALE;
import static streams._Stream.Person.Gender.PREFER_NOT_TO_SAY;
import streams._Stream.Person.Gender;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class _S... | true |