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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6337d27dfae29053816aaa4506a33ad01dbc4f5d | Java | Mahantesh1729/OOJ-LAB | /lab2/extra2/PlayerCareer.java | UTF-8 | 2,170 | 3.875 | 4 | [] | no_license | import java.util.*;
class Player
{
String ID;
String name;
int scores[] = new int[5];
int matches_played;
double average;
Player(String a, String b, int scores[], int matches_played)
{
name = a;
ID = b;
for(int i = 0; i < 5; i++)
this.scores[i] = scores[i];
this.matches_played = matches_played;
}
do... | true |
1ff01d2d977bb7df55f9fb420664a3eea15bfdbc | Java | wsds/chitchat | /AudioTest/src/com/android/gl2jni/AudioHandlers.java | UTF-8 | 9,535 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.android.gl2jni;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOEx... | true |
7839d50d2658adc9fe5feec7f0be1976d6c2a918 | Java | liji2003888/base-service | /src/main/java/io/choerodon/base/app/service/impl/AppVerDownloadRecordServiceImpl.java | UTF-8 | 5,032 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package io.choerodon.base.app.service.impl;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import com.github.pagehelper.PageInfo;
import okhttp3.ResponseBody;
import org.springframework.beans.factory.annotation.Value;
import org.spri... | true |
40c86bd90d4f7511f2ef445d94a04a25bc5cae12 | Java | furqanhj/FurqanSelfTest | /src/furqan/CallingStaticMethods.java | UTF-8 | 277 | 2.3125 | 2 | [] | no_license | package furqan;
public class CallingStaticMethods {
public static void main(String[] args) {
CreatingStaticMethods object1 = new CreatingStaticMethods();
object1.z = 1;
object1.x = 2;
object1.y = 3;
object1.giveMyName();
}
}
| true |
4845d7d5a476d82ab65826970a4b3b5a06386950 | Java | anandkulkarni67/Prime-Threads | /src/primeThreads/threadMgmt/WorkerThread.java | UTF-8 | 1,299 | 2.890625 | 3 | [] | no_license |
package primeThreads.threadMgmt;
import primeThreads.store.StdoutDisplayInterface;
import primeThreads.util.FileProcessor;
import primeThreads.util.IsPrime;
import primeThreads.util.Logger;
import primeThreads.util.Logger.DebugLevel;
import primeThreads.store.ResultsInterface;
/**
* <p>
* This class implements Run... | true |
4e9b403d9e374751742addb21c7329e0ffb4a115 | Java | ramya-ailla/JavaAssignments | /src/Assignment3.java | UTF-8 | 1,787 | 3.46875 | 3 | [] | no_license | import java.io.IOException;
import java.net.InetAddress;
import java.util.*;
public class Assignment3 {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
System.out.println("enter host name: ");
String hostname=sc.nextLine();
InetAddre... | true |
1f1f3994f7d0ba6d26ea4e16e6aaf207da912a36 | Java | chuxiao1317/ViroyalAndroidTestDemos | /CoolWeather3/slothCore/src/main/java/com/viroyal/sloth/widget/listview/AutoLoadMoreListener.java | UTF-8 | 268 | 1.867188 | 2 | [] | no_license | package com.viroyal.sloth.widget.listview;
/**
* Created by LiGang on 2016/4/30.
*/
public interface AutoLoadMoreListener {
//通知App Listview已经滚动到底部,开始加载下一页数据
void onLoadMoreBegin(final AutoLoadMoreListView listView);
}
| true |
d29f83fac95abb3ded099c9b4b05c2876c62a2ab | Java | nguyendanhkhanh/BTL_Camera_OOP | /camera_oop/src/camera/logic/Distance.java | UTF-8 | 1,586 | 3.515625 | 4 | [] | no_license | package camera.logic;
import camera.entity.Coordinates;
public class Distance {
// chứa hàm tính khoảng cách giữa hai điểm
public double calculateDistance(Coordinates A, Coordinates B) {
double distance = 0;
distance = Math.sqrt(Math.pow((A.x - B.x), 2) + Math.pow((A.y - B.y), 2) + Math.pow((A.z - B.z), 2));
... | true |
8dc6c5bd957c5beae3cde5153195eced6615e903 | Java | lequan-moon/Ishop | /src/com/nn/ishop/license/ILicenseManager.java | WINDOWS-1252 | 1,873 | 2.125 | 2 | [] | no_license | /* ***************************************************************************/
/* File Description : EncryptionUtil */
/* File Version : 1.0 */
/* Legal Copyright : Copyright 2004-2010 by DONGA JSC */
/... | true |
f41cc8f6b2bb776d2620bfe317a1b4380eeb6133 | Java | vandermast2/database-samsungITSchool2021 | /app/src/main/java/sss/com/database/adapters/RecipeViewHolder.java | UTF-8 | 580 | 2.359375 | 2 | [] | no_license | package sss.com.database.adapters;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import sss.com.database.R;
import sss.com.database.models.Result;
public class RecipeViewHolder extends RecyclerView.ViewHolder {
pri... | true |
5c2d7f40c6be824160ffbebe15f13f3209bc3dee | Java | lucabeca/java | /zPAlmas/src/me/patuncio/almas/eventos/MercadorAntiLixo.java | ISO-8859-1 | 3,285 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package me.patuncio.almas.eventos;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.... | true |
85db63708ad972399d26ecb2d9f6ca2325d635eb | Java | jreimone/refactory | /Lässig/dk.itu.sdg.language.epsilon.tracemodel/src/SimpleTrace/impl/TraceLinkImpl.java | UTF-8 | 5,868 | 1.820313 | 2 | [] | no_license | /**
*/
package SimpleTrace.impl;
import SimpleTrace.SimpleTracePackage;
import SimpleTrace.TraceLink;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.ecl... | true |
bfd5647bf4d12502078b3feb25ef6f5313a7e4da | Java | maojimin/code-libray | /src/main/sevenstar_new/component/org/sevenstar/component/lazy/LazySupportList.java | UTF-8 | 3,681 | 2.34375 | 2 | [] | no_license | /* */ package org.sevenstar.component.lazy;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collection;
/* */ import java.util.Iterator;
/* */ import java.util.List;
/* */ import org.sevenstar.util.BeanHelper;
/* */
/* */ public class LazySupportList extends ArrayLis... | true |
106a28faa2a85dacf2e4dbbec9c0f95d3effb0da | Java | DayorNight/BLCS | /app/src/main/java/blcs/lwb/utils/adapter/TestFragPagerAdapter.java | UTF-8 | 723 | 2.09375 | 2 | [] | no_license | package blcs.lwb.utils.adapter;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import blcs.lwb.utils.Constants;
import blcs.lwb.utils.fragment.viewFragment.Viewpage.PageFragment;
public class TestFrag... | true |
a181840f15a3415633e7f38716f51c42e8aa407c | Java | Ant0nyJM/spring-boot-movieapp | /src/main/java/com/imoviedb/webapp/repos/MovieRespository.java | UTF-8 | 472 | 2.0625 | 2 | [] | no_license | package com.imoviedb.webapp.repos;
import com.imoviedb.webapp.models.Movie;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface MovieRespository extends C... | true |
d7ad3adfd25d5524e6de914bf35f826a3f34bc4e | Java | fatcatdog/java_training_projects | /Week3Assignments/src/IntermediateLoops.java | UTF-8 | 5,870 | 4.125 | 4 | [] | no_license | //Your Name: Jacob Duchen
//Today's Date: 4/29/18
/*
intermediate loops exercise
*/
//scanner package
import java.util.Scanner;
public class IntermediateLoops {
public static void main(String[] args) {
//loop to allow user to navigate in between exercises
for (int RandomEndlessLoop = 1; RandomEndlessLoo... | true |
e0f5a63d6a376cd8d896f77797b49312142dcf80 | Java | zeal4rea/DoubanMovieDemo | /app/src/main/java/com/zeal4rea/doubanmoviedemo/util/view/HeaderAndFooterAdapterWrapper.java | UTF-8 | 5,152 | 2.390625 | 2 | [] | no_license | package com.zeal4rea.doubanmoviedemo.util.view;
import android.support.annotation.NonNull;
import android.support.v4.util.SparseArrayCompat;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
public class HeaderAn... | true |
21a4c8ef4dec2a04bc1bacc3eacd9b70b024f0ad | Java | cesarnono/parqueadero_back | /src/main/java/com/ceiba/induccion/parqueadero/util/ServicioBuilder.java | UTF-8 | 1,934 | 2.53125 | 3 | [] | no_license | package com.ceiba.induccion.parqueadero.util;
import com.ceiba.induccion.parqueadero.model.Servicio;
import com.ceiba.induccion.parqueadero.model.SolicitudServicio;
public class ServicioBuilder {
private static final String DESCRIPCION_DEFAULT = "carro";
private static final int CUPOMAXIMO_DEFAULT = 20;
private st... | true |
7f5455db8abce6c3733c80d1800aa7a3e813d60e | Java | LeftistTachyon/TetrisHG | /TetrisHGClient/test/com/leftisttachyon/tetris/tests/TryCatchVSCheckSpeedTest.java | UTF-8 | 1,922 | 3.5625 | 4 | [] | no_license | package com.github.leftisttachyon.tetris.tests;
import java.util.Random;
/**
* A test that compares the speed of manually checking out of bounds or just
* relying on try/catch.
*
* @author Jed Wang
*/
public class TryCatchVSCheckSpeedTest {
/**
* The main method; where to run the tests.
... | true |
6c8061e8fcede180dce4499447b09a32c575c199 | Java | renatorvs/Teste-unitario-em-java | /SistemaBancario/testes/negocio/GerenciadoraContasTest_01.java | ISO-8859-1 | 1,117 | 2.46875 | 2 | [] | no_license | package negocio;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import org.junit.Test;
import junit.framework.Assert;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
public class GerenciadoraContasTest_01 {
//... | true |
d3a9c33f4084379278e60102ac851719d4451929 | Java | kermitt2/grobid | /grobid-core/src/main/java/org/grobid/core/utilities/crossref/CrossrefRequest.java | UTF-8 | 8,221 | 2.109375 | 2 | [
"Apache-2.0",
"CC0-1.0",
"CC-BY-4.0",
"LicenseRef-scancode-free-unknown"
] | permissive | package org.grobid.core.utilities.crossref;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.ClientP... | true |
62859bbc32aeee66009987313c33549686f924fb | Java | leigong2/more | /app/src/main/java/com/moreclub/moreapp/chat/presenter/ChatGroupDetailsLoader.java | UTF-8 | 4,201 | 2.09375 | 2 | [] | no_license | package com.moreclub.moreapp.chat.presenter;
import com.moreclub.common.ui.BasePresenter;
import com.moreclub.moreapp.app.RespDto;
import com.moreclub.moreapp.chat.api.ApiInterface;
import com.moreclub.moreapp.chat.model.ChatGroupUser;
import com.moreclub.moreapp.information.model.HxRoomDetails;
import com.moreclub.mo... | true |
6615c6307c6eb667e47260ae35a734c4b350d282 | Java | Serenity2020/SimulateWindowsPainting | /src/code/Tool/LineTool.java | UTF-8 | 877 | 2.515625 | 3 | [] | no_license | package code.Tool;
import java.awt.Graphics;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Set;
import javax.lang.model.SourceVersion;
import code.ViewFrame;
public class LineTool extends AbstractTool implements Tool{
private static Tool tool = null;
private LineTool(ViewF... | true |
bb6c26ad7ebceb554e4c598ea9510c4bc7585bf5 | Java | ItChoi/Sangblog-Project | /src/main/java/ver2/blog/sang/auth/TestDBSecurity.java | UTF-8 | 487 | 1.914063 | 2 | [] | no_license | package ver2.blog.sang.auth;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl;
public class TestDBSecurity extends JdbcDaoImpl {
@Override
public Use... | true |
ef8c4eced3cc41fe66b89b5b80a63b9814f839e9 | Java | e-green/FuelManagmentSystem | /OrderModule/src/main/java/org/egreen/opensms/server/Helper/NotificationHelper.java | UTF-8 | 1,296 | 2.28125 | 2 | [] | no_license | package org.egreen.opensms.server.Helper;
import org.egreen.opensms.server.controller.Protocol;
import org.egreen.opensms.server.models.MailMail;
import org.egreen.opensms.server.models.Notification;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Created by pramoda-nf on 4/30/15.
*/
public c... | true |
10f02f02c0aa1db73e09129993470bc0b04428a6 | Java | stubbornleaf/LeetCode | /reverse-integer.java | UTF-8 | 512 | 3.203125 | 3 | [] | no_license | public class Solution {
public int reverse(int x) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
boolean isNegative = x < 0;
int result = 0;
if (isNegative) {
x *= -1;
... | true |
b31af2fed1ee282e6e8dc8bad577bdad9047ad93 | Java | zzjxbg/Java8 | /src/main/java/com/mayikt/stream/Test09.java | UTF-8 | 1,200 | 3.125 | 3 | [] | no_license | package com.mayikt.stream;
import com.mayikt.entity.UserEntity;
import java.util.HashMap;
import java.util.HashSet;
public class Test09 {
public static void main(String[] args) {
// userEntities.add(new UserEntity("xiaowei",16));
// userEntities.add(new UserEntity("xiaowei",16));
//new 对象
... | true |
e8479676a13a358f4f502115a57cf677275f6d2f | Java | doncorley/kfs | /test/unit/src/org/kuali/kfs/module/cg/fixture/AgencyFixture.java | UTF-8 | 1,833 | 2.015625 | 2 | [] | no_license | /*
* Copyright 2011 The Kuali Foundation.
*
* Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
*
* Unless requir... | true |
7a56875373205fd26753800bb073a12ad04cac70 | Java | azhe-tianxia/Sobot_Sdk_Demo_Android | /sobotsdkdemo/src/main/java/com/sobot/demo/SobotDemoNewSettingFragment.java | UTF-8 | 8,504 | 1.71875 | 2 | [] | no_license | package com.sobot.demo;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
impo... | true |
eb1094343c745707c25ec84ee130a398c6c9f5d8 | Java | githubwalker/EXPERIMENTS | /thread_bouncing/thrdbouncing/src/main/java/com/alprojects/hiber/BusPark.java | UTF-8 | 6,138 | 2.25 | 2 | [] | no_license | package com.alprojects.hiber;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate... | true |
44a27a61d6713dc9cd095e291382bea89b45ddd0 | Java | VitaliyKolomiets/EnglishHome | /src/main/java/sa/com/controller/UserController.java | UTF-8 | 1,078 | 2.265625 | 2 | [] | no_license | package sa.com.controller;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import sa.com.domain.UserDto;
import sa.com.service.UserService;
import java.util.List;
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
public class UserController {
private final... | true |
41c32f511bb412af9741a7b67f34ce499619a177 | Java | whoamiyeah1234/code-coverage-example | /CodeCoverage/src/test/java/com/SampleTests.java | UTF-8 | 355 | 2.53125 | 3 | [] | no_license | package com;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
public class SampleTests {
Sample sample = new Sample();
@Test
public void testSumIsOK() {
assertEquals(7, sample.sum(4, 3));
}
@Test
public void testSumIsNotOK() {
assertNo... | true |
121ec2a4ce093c781d05ca9cb19661973f2beba6 | Java | jalcau/java | /src/com/ipartek/formacion/capitulo4/Pedido.java | UTF-8 | 344 | 2.4375 | 2 | [] | no_license | package com.ipartek.formacion.capitulo4;
public class Pedido {
public static void main(String[] args) {
Hamburguesa h1 = new Hamburguesa("lechuga", "pepino", "queso");
Hamburguesa h2 = new Hamburguesa("pepino");
Hamburguesa h3 = new Hamburguesa();
h1.CalcularPrecio();
h2.CalcularPrecio();
h3.Ca... | true |
052732cf25e6b0bb517b43f291df9a0473d69c28 | Java | ajast91/ScoreKeeperApp | /app/src/main/java/com/example/android/scorekeeper/MainActivity.java | UTF-8 | 3,898 | 2.25 | 2 | [] | no_license | package com.example.android.scorekeeper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.example.android.scorekeeper.R;
public class MainActivity extends AppCompatActivity {
int scoreTeamA = 0;
int scoreTeamB = 0... | true |
14403c725759eab40a4e56adbd5e3f3e0c29ff6a | Java | qwli6/blog8 | /src/main/java/me/lqw/blog8/model/dto/common/QR.java | UTF-8 | 446 | 1.953125 | 2 | [] | no_license | package me.lqw.blog8.model.dto.common;
import me.lqw.blog8.model.dto.page.PageResult;
import java.io.Serializable;
/**
* 查询返回结果集封装
*
* @author liqiwen
* @version 1.2
* @since 1.2
*/
public class QR extends CR<PageResult<?>> implements Serializable {
/**
* 查询结果数据返回
*
* @param pageResult page... | true |
a6fdef7cc61ed968cc55b7662d94c159c9786b24 | Java | yxh-y/code_comment_generation | /CodeComment_Data/Code_Jam/train/Cookie_Clicker_Alpha/S/Cookie_Clicker_Alpha(8).java | UTF-8 | 1,036 | 2.640625 | 3 | [] | no_license | package methodEmbedding.Cookie_Clicker_Alpha.S.LYD1524;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.text.DecimalFormat;
import java.util.Locale;
import java.util.Scanner;
/**
*
* @author lucio
*/
public class Cookie_Clicker_Alpha {
publi... | true |
b1c393e01e7ff48b62188148bc986a5a08b973d7 | Java | fadepoint89/JavaSpring2019 | /projects/src/java111/project1/NameLoop.java | UTF-8 | 355 | 3.640625 | 4 | [] | no_license | /**
* This is the class for the java program called NameLoop
*
* @author Jared Wesolaski
*/
public class NameLoop {
String fullName = "";
int counter = 7;
// Method that loops the name 7 times
public void nameLoop() {
while (counter > 0) {
System.out.println(fullName);
... | true |
59be6c1524da4aa489eb5fbd10f7fd32d45a711a | Java | mluketin/zip-reformer | /src/main/java/hr/element/zipreformer/zip/structure/CentralDirectoryRecord.java | UTF-8 | 5,811 | 2.375 | 2 | [] | no_license | package hr.element.zipreformer.zip.structure;
import hr.element.zipreformer.zip.ByteBlock;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.util.zip.DataFormatException;
public class CentralDirectoryRecord extends ByteBlock {
private LocalFileRecord lfr;
private Sha256... | true |
0455b3fb95a3c45d13713cb7b9c347f69c4e7f42 | Java | andreykrasnov92/Lab | /11/WebApplication11/src/java/model/Model.java | UTF-8 | 1,004 | 2.546875 | 3 | [] | no_license | package model;
import entities.Gruppa;
import entities.Student;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlRootElement(name = "universit... | true |
d5e3111a97fa0c9a22150a0b8600bc28957b506c | Java | FibreFoX/distribution-bundle-plugin-for-maven | /maven-plugin/src/it/06-simple-javafx-with-spring-boot-setup/src/main/java/de/dynamicfiles/projects/maven/distributionbundleplugin/example/simplejavafxwithspringbootsetup/MainEntrypoint.java | UTF-8 | 1,217 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package de.dynamicfiles.projects.maven.distributionbundleplugin.example.simplejavafxwithspringbootsetup;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annota... | true |
371fd07eb7c00e457ec1d37a4b7b775dc0eb1090 | Java | bestv5/ChineseCharReplace | /src/main/java/com/haojiyou/cnchar/CharTypedDocumentLisener.java | UTF-8 | 6,790 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.haojiyou.cnchar;
import com.haojiyou.cnchar.action.CharAutoReplaceAction;
import com.haojiyou.cnchar.common.CnCharCommentUtil;
import com.haojiyou.cnchar.common.MyConst;
import com.haojiyou.cnchar.common.ReplaceCharConfig;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Ca... | true |
90501e4d7856ef070ee648eeab623fd1b6c6f969 | Java | Taykee/lanaya | /lanaya-generator/src/main/java/cn/lanaya/generator/file/XmlMapperWriter.java | UTF-8 | 837 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package cn.lanaya.generator.file;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import cn.lanaya.generator.dom.xml.Document;
import cn.lanaya.generator.table.FullyQualifiedTable;
public class XmlMapperWriter {
public static void writeXmlMaper(FullyQualifiedTable table, Document docume... | true |
48f42542f3baab13f5a6f507e0af29ab3fcdaca6 | Java | jdfa14/OneCardApp | /app/src/main/java/mx/onecard/lists/adapters/TransactionListAdapter.java | UTF-8 | 1,600 | 2.5 | 2 | [] | no_license | package mx.onecard.lists.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
import mx.onecard.lists.items.Transaction;
import mx.onecard.oneca... | true |
a2da516d6bdd4865f796bbc89897c10d697ea928 | Java | yw1125788588/-1 | /service/Imp/SysProjectServiceImpl.java | UTF-8 | 1,143 | 2.046875 | 2 | [] | no_license | package com.imooc.wx.service.Imp;
import com.imooc.wx.entity.SysProject;
import com.imooc.wx.mapper.SysProjectMapper;
import com.imooc.wx.service.SysProjectService;
import javax.annotation.Resource;
import java.util.List;
public class SysProjectServiceImpl implements SysProjectService {
@Resource
... | true |
7e6341417b1edcf54d9062311fef30cebc8b6192 | Java | ParisXiao/YuXinOu_ShopShow | /daimengLive/src/main/java/com/liren/live/ui/UserInfoDetailActivity.java | UTF-8 | 8,342 | 1.929688 | 2 | [] | no_license | package com.liren.live.ui;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.text.format.DateFormat;
import android.view.View;
import android.widget.DatePicker;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.g... | true |
4f0cce5997cde9234fb99defd5604799cba1ffe8 | Java | mist048/AssistJoiningClub | /src/model/ClubInfo.java | UTF-8 | 1,368 | 2.328125 | 2 | [] | no_license | package model;
public class ClubInfo {
private String id;
private String link;
private String recogn;
private String intro;
private int member;
private int submember;
private String icon;
private String home;
protected String getId() {
return id;
}
protected void s... | true |
b190546ec73e2e84a11588e1582bfb49c76c4bf4 | Java | Lsanchez1993/climaListaIntent | /app/src/main/java/com/android/angel/climalistaintent/NuevaVentana.java | UTF-8 | 1,678 | 2.078125 | 2 | [] | no_license | package com.android.angel.climalistaintent;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.... | true |
7f907eb776c29cf659d949fe3170d235a520bda1 | Java | Gao-zl/Learining-Java | /1-imooc-beginner/01_mathematical_operation/ch05/Calculate.java | UTF-8 | 770 | 3.84375 | 4 | [] | no_license | public class Calculate{
public static void main(String[] args){
int num = 153;
System.out.println(num);
// / is the way get number form back
// % is the way get number form front
// method 1
System.out.println("Method 1");
int hunder = num / 100;
Sy... | true |
3ca162a52c51a0de214a60986ce513616632d3ee | Java | gastar123/notesWebApp | /src/main/java/com/xe72/notesWebApp/repository/fragment/NoteSaver.java | UTF-8 | 129 | 1.8125 | 2 | [] | no_license | package com.xe72.notesWebApp.repository.fragment;
public interface NoteSaver<T> {
public <S extends T> S save(S entity);
}
| true |
1605ff49d05292375379958ffc834bd52c4ec67f | Java | yu491833661/GoodBoy | /src/main/java/yxinfo/yjh/service/article/ArticleBaseService.java | UTF-8 | 542 | 1.6875 | 2 | [] | no_license | package yxinfo.yjh.service.article;
import yxinfo.yjh.service.article.dto.ArticleCoreDTO;
/**
* @author jn
* @date 2017/9/20 14:58
**/
public interface ArticleBaseService {
/**
* 获取文章详情
*
* @param articleId
* @return
*/
ArticleCoreDTO getArticleDetail( int articleId );
/**
... | true |
c10edd7810144bcca825da261558425398cca7a4 | Java | kalkin2/headFirstDesignPattern | /src/org/pattern/decorator/ex/Simulation.java | UTF-8 | 721 | 2.96875 | 3 | [] | no_license | package org.pattern.decorator.ex;
import org.pattern.decorator.ex.decorator.Earing;
import org.pattern.decorator.ex.decorator.Gloves;
import org.pattern.decorator.ex.decorator.YeouiBong;
public class Simulation {
/**
* 손오공 장비 착용에 따른 전투력 측정
* @param args
*/
public static void main(String[] args... | true |
279571c175fc5197d86512204d7e8dda1f9307fa | Java | Galustom/Group7 | /core/src/main/java/hu/iit/uni/miskolc/swtest/model/Library.java | UTF-8 | 1,481 | 2.859375 | 3 | [] | no_license | package hu.iit.uni.miskolc.swtest.model;
import hu.iit.uni.miskolc.swtest.model.exceptions.BookListNullException;
import hu.iit.uni.miskolc.swtest.model.exceptions.IdNotValidException;
import hu.iit.uni.miskolc.swtest.model.exceptions.NameIsEmptyException;
import java.util.Collection;
public class Library {
pri... | true |
af80b48816318c0919a6b0e0f7bc8467c79c6c24 | Java | CezaryZal/HealthCalendar | /src/test/java/com/CezaryZal/api/training/model/TrainingDtoTest.java | UTF-8 | 10,781 | 2.59375 | 3 | [] | no_license | package com.CezaryZal.api.training.model;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
im... | true |
471f622865c20ec23ba7ab032c6d3b0a2715637b | Java | Vieja/Crown-Hunter | /app/src/main/java/com/vieja/crownhunter/EventDatabase.java | UTF-8 | 14,194 | 2.1875 | 2 | [] | no_license | package com.vieja.crownhunter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class EventDatabase {
public static List<EventInfo> list = null;
public static void populateEventDatabase() {
list = Arrays.asList(
new EventInfo(R.string.usj_gold_star, 3... | true |
a3ad709ee4f49b3635ba34069a5f4d17eff9844b | Java | santisanudo13/Hack2Progress2017 | /SparkJuanckers/src/main/java/main/JuanckersAllDataset.java | UTF-8 | 3,990 | 2.59375 | 3 | [] | no_license | package main;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.RowFactory;
import org.apache.s... | true |
3c5b6602280a0c08d0b2957b676492ecab8b5852 | Java | luharaca/springwebservice | /src/main/java/com/app/tech/blogs/repository/UserRepository.java | UTF-8 | 469 | 2.125 | 2 | [] | no_license | package com.app.tech.blogs.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import com.app.tech.blogs.io.entity.UserEntity;
@Repository
public interface UserRepository extends PagingAndSortingRepository<UserEntity, Long> {
// The me... | true |
00a10918ab8c75675509f7505834342b177132e7 | Java | shiver-me-timbers/smt-cloudformation-parent | /smt-cloudformation-objects/src/main/java/shiver/me/timbers/aws/elasticsearch/Domain.java | UTF-8 | 19,580 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive |
package shiver.me.timbers.aws.elasticsearch;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.J... | true |
1220cc87eba5c95cf885f3d38491a31a8841c651 | Java | Crimix/Soulcraft | /src/main/java/com/black_dog20/sc/block/OreSoulcystal.java | UTF-8 | 943 | 2.546875 | 3 | [] | no_license | package com.black_dog20.sc.block;
import java.util.Random;
import com.black_dog20.sc.init.ModItems;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
public class OreSoulcystal extends BlockSC{
public OreSoulcystal() {
super(... | true |
300bf188cc7e0ceb209b130ae609ed248abbe753 | Java | janmurin/RegistratorBlockov | /src/main/java/home/blockova/Blocek.java | UTF-8 | 903 | 1.953125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package home.blockova;
/**
*
* @author Janco1
*/
public class Blocek {
public String dkp;
public Strin... | true |
e08eb887b40b5f0ccbd84cffe39743586b76d8c9 | Java | GraphicalDot/MadMachinesUsers | /app/src/main/java/com/sports/unity/util/NotificationHandler.java | UTF-8 | 19,392 | 2.078125 | 2 | [] | no_license | package com.sports.unity.util;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Path;
import android.n... | true |
58e954a747decd55c2013bf4a56ebdd7f9b2807e | Java | Magda7Lena/Driva-Api | /src/main/java/com/driva/drivaapi/controller/WorkDayController.java | UTF-8 | 2,252 | 2.15625 | 2 | [] | no_license | package com.driva.drivaapi.controller;
import com.driva.drivaapi.mapper.dto.WorkDayDTO;
import com.driva.drivaapi.service.WorkDayService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.security.access.prepost.PreA... | true |
5626df3f287d36b12b4410ce8c4b863254b7e4f7 | Java | LyszczarzKrzysztof/SpringbootJBDC | /src/main/java/com/example/jdbccar/DisplayGUI.java | UTF-8 | 1,130 | 2.3125 | 2 | [] | no_license | package com.example.jdbccar;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.component.textfield.TextArea;
import com.vaadin.flow.component.textfield.TextField;
import com.vaadin.flow.rout... | true |
e528ff7051b9b19680f226fd6eb4539fe2e8054a | Java | eliotfowler/aluminum | /src/main/java/al/antlr4/core/ALEnsureFunction.java | UTF-8 | 973 | 2.40625 | 2 | [] | no_license | package main.java.al.antlr4.core;
import java.util.ArrayList;
import java.util.List;
import al.antlr4.AluminumParser.ExpressionContext;
import main.java.al.antlr4.ALEvalVisitor;
public class ALEnsureFunction extends ALPredefinedFunction {
@SuppressWarnings("serial")
private static ArrayList<String> params = new Ar... | true |
956dcc6c46b6d222d4949b46bb26b154d9202375 | Java | mkbiltek/RetrofitLessons | /app/src/main/java/com/mgx/retrofitlesson1/model/Person.java | UTF-8 | 563 | 2.640625 | 3 | [] | no_license | package com.mgx.retrofitlesson1.model;
import java.io.Serializable;
/**
* Created by glmgracy on 17/1/7.
*/
public class Person implements Serializable {
private static final long serialVersionUID = 1L;
/**
* name : gracyma
* age : 30
*/
private String name;
private int age;
pu... | true |
cda874e5888995fb71bdef61f0543ec3236cee88 | Java | MnejjaHassen/AgenceImmobilier | /backoffice/src/agence/backoffice/AjoutBienServlet.java | UTF-8 | 13,068 | 2.125 | 2 | [] | no_license | package agence.backoffice;
import java.io.File;
import java.io.IOException;
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.Iterator;
import jav... | true |
2168c195deec26c90208f5a325a507c0cf266eb1 | Java | LeobermudezL/HulkStoreRepo | /src/main/java/com/example/hulkstore/repository/UsersRepository.java | UTF-8 | 219 | 1.5625 | 2 | [] | no_license | package com.example.hulkstore.repository;
import com.example.hulkstore.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UsersRepository extends JpaRepository <User, Long> {
}
| true |
8a7ca7804f99dea8db6eee67ec260ef65996fd93 | Java | GotoLink/NewDungeons | /newdungeons/DunChest.java | UTF-8 | 356 | 2.875 | 3 | [] | no_license | package newdungeons;
public class DunChest {
final int x;
final int y;
final int z;
boolean looted = false;
DunChest(int var1, int var2, int var3) {
this.x = var1;
this.y = var2;
this.z = var3;
}
@Override
public String toString() {
return "\n\nx: " + this.x + "\ny: " + this.y + "\nz: " + this.z + "l... | true |
98214082163665c3a60faa331a381f8b64e4f87c | Java | ahmetzumber/Hastane_Randevu_Takip_Sistemi | /src/projem2/BilgiPoliklinikDegistir.java | UTF-8 | 6,624 | 2.28125 | 2 | [] | no_license | package projem2;
import java.math.BigInteger;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;
public class BilgiP... | true |
6f3b3c9c31512eabe2d18dc87daf9e2fbff5956a | Java | AKasigkeit/jmonkeyengine | /jme3-examples/src/main/java/jme3test/buffers/TestCameraUniformBuffer.java | UTF-8 | 2,193 | 2.484375 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jme3test.buffers;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.renderer.Caps;
imp... | true |
855976a86f500130e5e939364bd32dac2a7ab91b | Java | irazirfan/p-generator | /src/main/java/com/cmed/pgenerator/service/PrescriptionService.java | UTF-8 | 1,023 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.cmed.pgenerator.service;
import com.cmed.pgenerator.entity.Prescription;
import com.cmed.pgenerator.repository.PrescriptionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PrescriptionSer... | true |
36d7c1dfe29fe416c9e137256ccfa55133fe2f8a | Java | rabitdash/practice | /java-pj/factorial/Main.java | UTF-8 | 753 | 3.328125 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while(s.hasNextInt())
{
int n;
n = s.nextInt();
if(n == 1)
{
System.out.pri... | true |
5cabccd595839ade7e6574c98d7c84cf357a9bf4 | Java | CMPUT301W21T32/BooleanCatastrophe | /app/src/main/java/com/example/booleancatastrophe/model/ExperimentManager.java | UTF-8 | 18,864 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.example.booleancatastrophe.model;
import android.util.Log;
import androidx.annotation.NonNull;
import com.example.booleancatastrophe.storage.FirestoreCallback;
import com.example.booleancatastrophe.storage.Database;
import com.example.booleancatastrophe.utils.UniversalSet;
import com.firebase.ui.firesto... | true |
fe2e620df112004f7b6f588f3020b7b1df99d28b | Java | servicecatalog/development | /oscm-portal/javasrc/org/oscm/ui/filter/ClosedMarketplaceFilter.java | UTF-8 | 6,879 | 1.726563 | 2 | [
"Apache-2.0",
"EPL-1.0",
"BSD-3-Clause",
"W3C",
"LGPL-3.0-only",
"CPL-1.0",
"CDDL-1.1",
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"CDDL-1.0",
"Apache-1.1",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"W3C-19980720",
"LGPL-2.1-only",
"... | permissive | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Creation Date: Jun 01, 2016
*
*******************************************************************************/
package org.oscm.ui.filter;
import static org.oscm.ui.beans.BaseBean.ERROR_PAGE... | true |
d06836fd70e7e5458503437e9d9d7455a8d11390 | Java | ata4/bspsrc | /src/main/java/info/ata4/util/gui/RowTableModel.java | UTF-8 | 17,176 | 3.0625 | 3 | [
"Apache-2.0",
"Unlicense"
] | permissive | package info.ata4.util.gui;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
/**
* A TableModel that better supports the processing of rows of data. That is,
* the data is treated more like a row than an individual cell. Hopeful... | true |
3db89eb928f313ba9caf17395a0663d6b85205da | Java | zscgrhg/moonshine | /services/jmx-server/src/main/java/org/atteo/moonshine/jmx/JmxServer.java | UTF-8 | 2,534 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Atteo.
*
* 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 w... | true |
3c13cc37b9cedebabd03c55749f079328d63cf4e | Java | vikvik98/AtividadeTDD | /Atividade/Romanos/src/app/App.java | UTF-8 | 340 | 2.453125 | 2 | [] | no_license | package app;
import model.ConversorDeAlgorismosRomanos;
public class App {
public static void main(String[] args) {
ConversorDeAlgorismosRomanos conversorDeAlgorismosRomanos = new ConversorDeAlgorismosRomanos("ii");
System.out.println(conversorDeAlgorismosRomanos.ConverterDoisAlgoritmosRomanosPara... | true |
575f880f82d6cc6d0cfeeaf61050b332780cd174 | Java | LWHTarena/lerx20190613 | /src/main/java/com/lerx/dao/impl/TempletDownCodeDaoImpl.java | UTF-8 | 1,594 | 2.234375 | 2 | [] | no_license | package com.lerx.dao.impl;
import java.util.List;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
import com.lerx.dao.iface.ITempletDownCodeDao;
import com.lerx.entities.TempletDownCode;
import com.lerx.hql.entities.Rs;
import com.lerx.hql.util.HibernateCallbackUtil;
public class TempletDownC... | true |
84e499145ccc6a9759751b58657f79642c8f3139 | Java | sgholamian/log-aware-clone-detection | /NLPCCd/Camel/2150_1.java | UTF-8 | 441 | 2.140625 | 2 | [
"MIT"
] | permissive | //,temp,sample_1844.java,2,11,temp,sample_5487.java,2,11
//,2
public class xxx {
private void createTag(Exchange exchange) throws Exception {
String name = exchange.getIn().getHeader(DigitalOceanHeaders.NAME, String.class);
if (ObjectHelper.isEmpty(name)) {
throw new IllegalArgumentException(DigitalOceanHeaders.NAME + ... | true |
889f9da50730f58ff9db0fd5d4c8b658b0a540cc | Java | Vulkan-Labs/MAD_Mini_Project | /app/src/main/java/com/mad/miniproject_teamvulkan/reviews.java | UTF-8 | 1,120 | 2.171875 | 2 | [] | no_license | package com.mad.miniproject_teamvulkan;
public class reviews {
private String name , revID;
private String comment;
private String proName;
public reviews(String name, String revID, String comment, String proName) {
this.name = name;
this.revID = revID;
this.comment = comment;... | true |
2893134772d9eabc3d3d44cc9077718d2b4cc6b8 | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/io/reactivex/disposables/FutureDisposable.java | UTF-8 | 772 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package io.reactivex.disposables;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicReference;
final class FutureDisposable extends AtomicReference<Future<?>> implements Disposable {
private static final long serialVersionUID = 6545242830671168775L;
private final boolean allo... | true |
4f78bc0fc5f99e742de7c54c812ffe8ab40041e1 | Java | bellau/plovr | /src/com/google/javascript/jscomp/PlovrCompilerOptions.java | UTF-8 | 1,870 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.google.javascript.jscomp;
import java.nio.charset.Charset;
/**
* {@link PlovrCompilerOptions} is a subclass of {@link CompilerOptions} with
* customizations for plovr. The need for the subclass is twofold:
* <ol>
* <li>It contains compiler options that are specific to plovr, such as
* {@code ... | true |
cc30a1c246929d2cc2c69e2963ff63265b7b76c9 | Java | ByLuNi/CHIF17 | /src/main/java/at/florian7843/chif17bot/commands/cmds/CMDInvites.java | UTF-8 | 2,717 | 2.359375 | 2 | [] | no_license | package at.florian7843.chif17bot.commands.cmds;
import at.florian7843.chif17bot.commands.Command;
import at.florian7843.chif17bot.commands.CommandGroup;
import at.florian7843.chif17bot.commands.CommandState;
import at.florian7843.chif17bot.lib.TimeDate;
import at.florian7843.chif17bot.utils.Constants;
import com.sun.x... | true |
0556987160efa6fab6d228568348d4c7e8151401 | Java | arther/CalendarView | /src/main/java/com/pet/calendar/adapter/CalendarAdapter.java | UTF-8 | 5,672 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.pet.calendar.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.pet.calendar.R;
import com.pet.calendar.view.SquareTextView;
import java.util.Cal... | true |
a6689361ebc32da01af31dfa6335bc582c81979c | Java | skatcore/skatliste | /app/src/main/java/wat/skat/skatliste/X5AuswertungAusgang.java | UTF-8 | 3,862 | 1.851563 | 2 | [] | no_license | package wat.skat.skatliste;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
impo... | true |
ae37d5246e1e7fbe91239bfb05cba4f7782f8da1 | Java | notsyncing/qcloudim-sdk | /src/main/java/io/github/notsyncing/qcloudim/models/message/contents/SoundMsgContent.java | UTF-8 | 732 | 1.976563 | 2 | [] | no_license | package io.github.notsyncing.qcloudim.models.message.contents;
import com.alibaba.fastjson.annotation.JSONField;
public class SoundMsgContent extends MsgContent {
@JSONField(name = "UUID")
private String uuid;
@JSONField(name = "Size")
private long size;
@JSONField(name = "Second")
private i... | true |
6d4f9ccfaefcd02ab279a0f8c3fdeebf72e3b9df | Java | Sandeep-Bolla/DetailedJavaNotes | /src/learn2/Interfaz.java | UTF-8 | 465 | 3.25 | 3 | [] | no_license | package learn2;
public interface Interfaz {
//variables declared in interface are by default public, static and final.
//Since it is static you cannot call it instance variable.
int f1=1;
public void showInfo(); //interface can only have method declarations but not whole methods itslef
static... | true |
160317b8d6f073a3e95349ad1ca4f605845b01b8 | Java | iritgo/iritgo-aktera | /aktera-command/src/main/java/de/iritgo/aktera/command/CommandRequest.java | UTF-8 | 1,995 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /**
* This file is part of the Iritgo/Aktera Framework.
*
* Copyright (C) 2005-2011 Iritgo Technologies.
* Copyright (C) 2003-2005 BueroByte GbR.
*
* Iritgo licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You m... | true |
375877b7f9165f85fa6474a1cefbfe8b7630a289 | Java | mplacesalvarez/Programacion | /1 Evaluación/Boletin_7/Boletin_7/Boletin7_1/src/boletin7_1/Boletin7_1.java | UTF-8 | 383 | 2.90625 | 3 | [] | no_license |
package boletin7_1;
import java.util.Scanner;
public class Boletin7_1 {
public static void main(String[] args) {
Scanner obx= new Scanner(System.in);
System.out.println("Introduce un número: ");
int num = obx. nextInt();
Numero obx1=new Numero();... | true |
ff8c2435657fea053ddcc43dff50ab27a05ae58e | Java | PresidentWarfield/SpiCall_Artemide_Exodus | /spicall_artemide_spartacus_exodus/android/support/v4/widget/AutoSizeableTextView.java | UTF-8 | 776 | 1.773438 | 2 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | package android.support.v4.widget;
public abstract interface AutoSizeableTextView
{
public abstract int getAutoSizeMaxTextSize();
public abstract int getAutoSizeMinTextSize();
public abstract int getAutoSizeStepGranularity();
public abstract int[] getAutoSizeTextAvailableSizes();
public abstract ... | true |
d59eb3c7b565371edb093e1a3c9293595892f6cb | Java | romain-colonna-distria/HouseAutomation | /src/main/java/homeObject/simple/Door.java | UTF-8 | 1,689 | 3.09375 | 3 | [] | no_license | package homeObject.simple;
import javafx.scene.paint.Color;
import javafx.scene.shape.LineTo;
import javafx.scene.shape.MoveTo;
public class Door extends HomeObjectSimple {
private static int doorId = 0;
public Door(){
super("Door" + ++doorId);
setStrokeWidth(2);
}
@Override
pub... | true |
68fc096265673fcad11f45bf04af50e70f42a4db | Java | may-fly/mayfly | /mayfly-sys/src/test/java/mayfly/sys/module/machine/service/impl/MachineServiceImplTest.java | UTF-8 | 839 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package mayfly.sys.module.machine.service.impl;
import mayfly.sys.module.machine.service.MachineService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.co... | true |
ff98a0f3b8b36c033b8f6db49f22d66d21860b1c | Java | wangzigui/AccountDemo | /accountlogkk/src/main/java/com/nf/dao/impl/PredicateUtil.java | UTF-8 | 2,598 | 2.25 | 2 | [] | no_license | package com.nf.dao.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Join;
import javax.persistence.criteria.JoinType;
import javax.persistence.criteri... | true |
840dee01bfa21112821f7a4ed62bc6aed4be13ca | Java | bellmit/crane | /equipment-platform/admin-crane/src/main/java/com/xingyun/equipment/crane/core/util/BasePushUtil.java | UTF-8 | 1,365 | 2 | 2 | [] | no_license | package com.xingyun.equipment.crane.core.util;
import org.springframework.context.annotation.Configuration;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
@Configuration
public class BasePushUtil {
protected String region;
protected lo... | true |
f7d8c9b1b3fc68d13889f286d0c9b8ffb849568f | Java | vineethapola/JavaProjects | /ApartmentManagement/src/com/planon/entities/ClubService.java | UTF-8 | 398 | 2.5625 | 3 | [] | no_license | package com.planon.entities;
import com.planon.client.Service;
/**
* Class contains service name and cost for "Club" service
*
*/
public class ClubService implements Service {
private String serviceName = "Club";
private double costOfService = 1000;
@Override
public String getServicename() {
return servic... | true |
5fd6c5ed8af53df26d8a64d45ba254ba7029ac91 | Java | sunjiyongtc0/demo-Expand | /demo-Client-Modular/src/main/java/com/sunjy/secret/controller/pdc/SysLogController.java | UTF-8 | 1,216 | 1.828125 | 2 | [] | no_license | package com.sunjy.secret.controller.pdc;
import com.sunjy.secret.aspect.MyLog;
import com.sunjy.secret.entity.ResultVO;
import com.sunjy.secret.entity.SysLog;
import com.sunjy.secret.entity.User;
import com.sunjy.secret.feign.pdc.PdcFeign;
import com.sunjy.secret.repository.SysLogRepository;
import org.springframewor... | true |
68fd7acc5e2e36e0186334f806936538e3043845 | Java | blazejnorys/workshop | /src/main/java/pl/kodolamacz/workshop/model/Employee.java | UTF-8 | 1,139 | 2.453125 | 2 | [] | no_license | package pl.kodolamacz.workshop.model;
import org.springframework.stereotype.Component;
/**
* Created by Pingwinek on 2017-07-04.
*/
@Component
public class Employee {
private int id;
private String employeeName;
private String employeeSurname;
public Employee() {
}
public Employee(int id,... | true |
d31e919faad96778ea023b03d707e7a02b1f8856 | Java | caibucai/spring_study | /src/main/java/com/example/demo/study/PerCentCalTest.java | UTF-8 | 904 | 2.375 | 2 | [] | no_license | package com.example.demo.study;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Description:
* @Author: crx
* @Create: 16:52 2020/4/20
*/
public class PerCentCalTest {
public static void main(String[] args) {
List<Map<String, Object>> mapList =... | true |
8468368e6a466469302bf14bc1b2701542f3c0cc | Java | thesyncim/wowza_modules | /src/thesyncim/ReloadPlaylist.java | UTF-8 | 632 | 1.921875 | 2 | [] | no_license | package thesyncim;
import java.io.*;
import com.wowza.wms.http.*;
import com.wowza.wms.logging.*;
import com.wowza.wms.vhost.*;
public class ReloadPlaylist extends HTTProvider2Base {
public void onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp) {
if (!doHTTPAuthentication(vhost, req, resp))
re... | true |
ffafdf1dacf815bad66fb25218b4737f26e167db | Java | benahhmed/tutos | /demo_actuator/src/main/java/com/example/demoActuator/common/GenericResponse.java | UTF-8 | 594 | 2.109375 | 2 | [] | no_license | package com.example.demoActuator.common;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class GenericResponse<T extends GenericResponseBody> {
protected GenericResponseHeader header;
protected GenericResponseBody body;
public GenericRespo... | true |
7cfcaca3d29772923a10bbc7cefc1bceaf5f4e33 | Java | xiaoniu-578fa6bff964d005/docfetcher | /src/net/sourceforge/docfetcher/model/FolderWatcher.java | UTF-8 | 12,182 | 1.679688 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 Tran Nam Quang.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... | true |