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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
aebfb13dcb77b41efbc722264bbd69dd873655ea | Java | biaolv/com.instagram.android | /src/com/instagram/b/c/c.java | UTF-8 | 5,355 | 1.914063 | 2 | [] | no_license | package com.instagram.b.c;
import android.content.Context;
import android.content.res.Resources;
import android.os.Build;
import android.os.Build.VERSION;
import com.facebook.x;
import com.facebook.z;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import j... | true |
426560d4e72831d1affe3a582964a77dcdfa598c | Java | pumpkinliquorHwang/foooooood | /src/main/java/com/kh/food/mark/model/vo/Mark.java | UTF-8 | 1,638 | 2.328125 | 2 | [] | no_license | package com.kh.food.mark.model.vo;
import java.io.Serializable;
import com.kh.food.customer.member.model.vo.Member;
import com.kh.food.owner.store.model.vo.Store;
public class Mark implements Serializable{
private static final long serialVersionUID = 6695724810522065465L;
private int memberNum;
private int busin... | true |
99d1d04df694e259f612fae9d0d0437dd6a960b4 | Java | morosanag/Graph-X | /src/net/graph/CurrencyActivity.java | UTF-8 | 14,689 | 1.851563 | 2 | [] | no_license | package net.graph;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import net.graph.R;
import and... | true |
6c5833a0b3a31bab47af63620ca91fcc88b1d881 | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_3b121d1ee71dec244b2e50558ecf0158d6aec5db/JimmuVisitor/16_3b121d1ee71dec244b2e50558ecf0158d6aec5db_JimmuVisitor_t.java | UTF-8 | 49,587 | 2.0625 | 2 | [] | no_license | package checkers.jimmu;
import checkers.basetype.BaseTypeVisitor;
import checkers.jimmu.quals.Anonymous;
import checkers.jimmu.quals.ImmutableClass;
import checkers.source.Result;
import checkers.types.AnnotatedTypeMirror;
import checkers.types.AnnotatedTypeMirror.AnnotatedDeclaredType;
import checkers.types.... | true |
c9b38414191618266faa4105d90dda432e5100b2 | Java | WorldVistA/Blue-Button-Document-Adapter | /integration/integration-file/src/main/java/org/osehra/integration/file/XmlResourceServiceInvoker.java | UTF-8 | 1,018 | 2.109375 | 2 | [
"LicenseRef-scancode-public-domain"
] | permissive | package org.osehra.integration.file;
import org.osehra.integration.core.service.ServiceInvocationException;
import org.osehra.integration.core.service.ServiceInvoker;
import org.osehra.integration.core.transformer.TransformerException;
import org.osehra.integration.core.transformer.xml.StringToXML;
import org.osehra.i... | true |
f5e918970d262f5460d5a471f8bc49e81e77ca88 | Java | nishanthkumarg/LintTest | /app/src/test/java/com/example/nishanthkumarg/myapplication/MyUnitTest.java | UTF-8 | 411 | 1.6875 | 2 | [] | no_license | package com.example.nishanthkumarg.myapplication;
import com.example.nishanthkumarg.myapplication.lintpackage.Lintcheck;
/**
* Created by nishanthkumarg on 11/3/16.
*/
public class MyUnitTest {
TestRestrClass tcls = new TestRestrClass();
MyUnitTest(){
tcls.functionProtected();
tcls.func... | true |
200baab54d377cc2cfe3cbe6a886bbf41191039f | Java | ehared/AndroidLabs | /app/src/main/java/com/example/androidlabs/DatabaseOpener.java | UTF-8 | 1,254 | 2.4375 | 2 | [] | no_license | package com.example.androidlabs;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseOpener extends SQLiteOpenHelper {
protected final static String DATABASE_NAME = "MessageDB";
protected final static int VERSION... | true |
e6bc78e16a532d5038c3a1a180734efe9b066afa | Java | dimMaryanto93/springboot2-angular-chat-stomp-example | /springboot/src/main/java/com/maryanto/dimas/example/repository/MessageRepository.java | UTF-8 | 488 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.maryanto.dimas.example.repository;
import com.maryanto.dimas.example.entity.Message;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface MessageRepository extends CrudRepository<Message, String> {
@Q... | true |
ff005c91586eab448b5e05d4b1ea68421cca71fe | Java | ontop/ontop | /mapping/core/src/main/java/it/unibz/inf/ontop/injection/TargetQueryParserFactory.java | UTF-8 | 271 | 1.695313 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | package it.unibz.inf.ontop.injection;
import it.unibz.inf.ontop.spec.mapping.PrefixManager;
import it.unibz.inf.ontop.spec.mapping.parser.TargetQueryParser;
public interface TargetQueryParserFactory {
TargetQueryParser createParser(PrefixManager prefixManager);
}
| true |
7598b99f46e6ae1363b90ac5b49b122a65a62db4 | Java | ccullum2210/dugoutapiapp | /src/main/java/com/aca/rest/dugoutservice/BaseballService.java | UTF-8 | 4,783 | 2.234375 | 2 | [] | no_license | package com.aca.rest.dugoutservice;
import java.time.LocalDateTime;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import com.aca.rest.dugoutdao.AwsSnsPublish;
import com.aca.rest.dugoutdao.BaseballDao;
import com.aca.rest.dugoutdao.Ba... | true |
1b0ac663c217a338482891f9406f905dd841136c | Java | 13419631611/MYHZ1 | /app/src/main/java/com/mycarhz/myhz/bean/RefreshData.java | UTF-8 | 10,597 | 1.84375 | 2 | [] | no_license | package com.mycarhz.myhz.bean;
/**
* Created by Administrator on 2016/9/2.
*/
public class RefreshData {
private String lateRepayCount;
private String usableCreditLimit;
private String creditLimit;
private String minRepayDate;
private String vip;
private String username;
private Str... | true |
7d25e4e7e90c153b4831eb5814327a986522515f | Java | Aakashjagwani/Java-Classes | /Spring/src/com/Lecture3SpringMVC/hell.java | UTF-8 | 475 | 2.21875 | 2 | [] | no_license | package com.Lecture3SpringMVC;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class hell {
@RequestMapping(value="/h... | true |
d6c6b6a50e62f5773549b8121d7719e79b0e1f7d | Java | GaborPeto/android-exercise | /app/src/main/java/com/gaborpeto/androidexercise/postdetails/PostDetailsFragment.java | UTF-8 | 2,969 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.gaborpeto.androidexercise.postdetails;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.vie... | true |
73635c91903c899c67e9a262c313f4a6593efcc1 | Java | nagarajapalla/AudioStreamStoreDemo | /src/main/java/com/sahasrara/audiostreamstoredemo/memcached/MemcachedRunner.java | UTF-8 | 5,317 | 2.390625 | 2 | [] | no_license | package com.sahasrara.audiostreamstoredemo.memcached;
import com.sahasrara.audiostreamstoredemo.Runner;
import net.spy.memcached.MemcachedClient;
import net.spy.memcached.transcoders.SerializingTranscoder;
import net.spy.memcached.transcoders.Transcoder;
import org.apache.ignite.Ignite;
import org.apache.ignite.config... | true |
7b7ca9c85ae71bb77c6c524bb59f256e85c87cdb | Java | JiangMr-H/ssm | /day02_ssm_service/src/main/java/com/gree/day02/service/Impl/lsjbServiceImpl.java | UTF-8 | 1,212 | 1.914063 | 2 | [] | no_license | /**
* Copyright (C), 2015-2019, XXX����˾
* FileName: lsjbService
* Author: 891649
* Date: 2019/10/9 3:56
* Description:
* History:
* <author> <time> <version> <desc>
*/
package com.gree.day02.service.Impl;
import org.springframework.stereotype.Service;
import org.springframew... | true |
42d0e4a5ebcc38abd1d6b5d5b0e89931b40bc7d3 | Java | y0000c/JovialityApp | /lib/src/main/java/demo/yc/lib/skin/attr/SkinAttrSupport.java | UTF-8 | 2,110 | 2.328125 | 2 | [] | no_license | package demo.yc.lib.skin.attr;
import android.content.Context;
import android.util.AttributeSet;
import java.util.ArrayList;
import java.util.List;
import demo.yc.lib.skin.config.Const;
/**
* @author: YC
* @date: 2017/9/2 0002
* @time: 11:51
* @detail:
*/
public class SkinAttrSupport
{
public static List... | true |
9ca36cbecd6f077c7f222601742f53b99af839e3 | Java | green-green-avk/AnotherTerm | /app/src/main/java/green_green_avk/anotherterm/ui/ProfileManagerActivity.java | UTF-8 | 1,687 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package green_green_avk.anotherterm.ui;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import green_green_avk.... | true |
1527501038bf9c2a99aba3c30612403ed355d2d5 | Java | saadginf/emanger | /event-service/src/main/java/com/eventsvc/eventservice/services/ThemeServiceImpl.java | UTF-8 | 846 | 2.234375 | 2 | [] | no_license | package com.eventsvc.eventservice.services;
import java.util.List;
import com.eventsvc.eventservice.dao.ThemeRepo;
import com.eventsvc.eventservice.entities.Theme;
import com.eventsvc.eventservice.exceptions.LibbeleException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... | true |
284c28c075f199d55cad002e51050266147d306f | Java | enterpriseih/JSCD | /src/testcase/cxcb/Script_JD_001.java | UTF-8 | 1,097 | 1.789063 | 2 | [] | no_license | package testcase.cxcb;
import java.util.Map;
import org.junit.Test;
import com.base.core.BaseCase;
import com.util.ExcelUtil;
import com.util.FileUtil;
import com.util.VinRandomUtil;
import task.jscd.JD_Auto;
public class Script_JD_001 extends BaseCase{
/*资讯*/
private JD_Auto jD_Auto;
private String pin;
@Supp... | true |
b33304bf0903c35232d66f5c2cd895c2e35c8120 | Java | Picky-cc/dongdong | /src/main/java/com/dongdong/config/DataSourceConfig.java | UTF-8 | 3,164 | 2.109375 | 2 | [] | no_license | package com.dongdong.config;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springfr... | true |
79ba402bc11096c0344c5d893e43bbbc28539330 | Java | kaiyuanshengshichangan/medical | /medical/src/com/henglianmobile/medical/ui/activity/ShowBitPicActivity.java | UTF-8 | 2,227 | 1.992188 | 2 | [] | no_license | package com.henglianmobile.medical.ui.activity;
import java.io.IOException;
import java.io.InputStream;
import android.content.ContentResolver;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.view.View;
import android.view.V... | true |
82922217974ba103e9d24df68cc7b42e96ac29ed | Java | FernandoHeisser/JAVA | /ex2_Biblioteca.java | UTF-8 | 1,099 | 3 | 3 | [] | no_license | package ifsul.tsi.poo;
import java.util.Scanner;
public class Biblioteca {
String nome;
Livro[] livros;
String cidade;
Usuario[] usuarios;
static int cont_livros=0;
static int cont_usuarios=0;
public static Biblioteca lerDadosBiblioteca(){
Biblioteca bib = new Biblioteca();
Sca... | true |
12513df3715715a5c14c8845edfb018a2b787502 | Java | ShivashriganeshMahato/Tech-Apps | /Amazons-Arrows/StarterCode/RunAll.java | UTF-8 | 451 | 2.125 | 2 | [] | no_license | public class RunAll {
public static void main(String[] args)
{
int port = 8082;
new AmazonsServer(port, 100);
AmazonsClient clientA = new AmazonsClient();
AmazonsClient clientB = new AmazonsClient();
clientA.registerListener(new MyAIClientListener());
// clientA.registerListener(new GUIListener()... | true |
ff285e66e2c51c65edf0141842d2484f20d19209 | Java | searchisko/elasticsearch-river-remote | /src/main/java/org/jboss/elasticsearch/river/remote/ISpaceIndexerCoordinator.java | UTF-8 | 1,393 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package org.jboss.elasticsearch.river.remote;
import java.util.List;
/**
* Interface for remote system Spaces indexer coordinator component.
*
* @author Vlastimil Elias (velias at redhat dot com)
*/
public interface ISpaceIndexerCoordinator extends Runnable {
/**
* Report that indexing of one Space has been ... | true |
d10e08c548ab2e81ac27779884cacca00d5abafa | Java | BuiltBrokenModding/Atomic-Science | /src/main/java/com/builtbroken/atomic/content/items/wrench/ItemWrench.java | UTF-8 | 5,440 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.builtbroken.atomic.content.items.wrench;
import com.builtbroken.atomic.content.machines.processing.TileEntityProcessingMachine;
import com.builtbroken.atomic.content.prefab.ItemPrefab;
import com.builtbroken.atomic.lib.LanguageUtility;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.... | true |
e2c49da66fcb64cd79caf2258a7480835a004602 | Java | MahirGulzar/builtit | /src/main/java/com/example/demo/invoice/rest/controller/InvoiceRestController.java | UTF-8 | 2,158 | 2.0625 | 2 | [] | no_license | package com.example.demo.invoice.rest.controller;
import com.example.demo.invoice.application.dto.InvoiceDTO;
import com.example.demo.invoice.application.services.InvoiceService;
import com.example.demo.procurement.application.dto.PlantHireRequest.PlantHireRequestDTO;
import com.example.demo.procurement.application.dt... | true |
004dee3718a132211a3fb7461fa5358316913f53 | Java | Jhyange/Spring_MemberProject | /src/main/java/kh/spring/practice/BoardController.java | UTF-8 | 4,013 | 1.960938 | 2 | [] | no_license | package kh.spring.practice;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autow... | true |
706365352c300251a054000b4be29a3258c79678 | Java | alireza-fassih/documents | /codes/spring/application-events/src/main/java/ir/fassih/example/applicationevents/subscriper/EventASubscriber.java | UTF-8 | 538 | 2.21875 | 2 | [] | no_license | package ir.fassih.example.applicationevents.subscriper;
import ir.fassih.example.applicationevents.event.EventA;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class EventASubscriber implements Applica... | true |
3c04db92399f05793206a412e2572352459fef08 | Java | Gelassen/assistant | /app/src/main/java/com/coderbunker/assistant/currency/CurrencyService.java | UTF-8 | 457 | 1.9375 | 2 | [] | no_license | package com.coderbunker.assistant.currency;
import com.coderbunker.assistant.currency.model.Currency;
import java.util.ArrayList;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface CurrencyService {
String API_LATEST = "/latest";
@GET("/latest")
O... | true |
7b6d35bf869b7513d063e9fa818e73213f25508b | Java | opdshe/spring-boot-challenge | /src/test/java/com/springboot/challenge/domain/item/ItemRepositoryTest.java | UTF-8 | 3,328 | 2.4375 | 2 | [] | no_license | package com.springboot.challenge.domain.item;
import org.junit.After;
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.data.domain.PageRequest;
import org.spring... | true |
bf933dda1f142ad24125527c256c2dd2a8655884 | Java | haldean/droidcopter | /jars/worldwind/src/gov/nasa/worldwind/applications/gio/filter/And.java | UTF-8 | 431 | 1.585938 | 2 | [] | no_license | /*
Copyright (C) 2001, 2008 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.applications.gio.filter;
/**
* @author dcollins
* @version $Id: And.java 5466 2008-06-24 02:17:32Z dcollins $
*/... | true |
f73214b8108be471cc5c1286580ade7cca1dc799 | Java | abou93/new-qcmplus | /src/actions/Logout.java | UTF-8 | 982 | 2.359375 | 2 | [] | no_license | /**
*
*/
package actions;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import services.UtilisateurImplementService;
import services.UtilisateurService;
import beans.Administrateur;
import beans.Stagiaire;
import beans.Utilisateur;
import com.opensymphony.xwork2.ActionS... | true |
70bd8aa83a8d94e7087d44c462fa4ed20284f331 | Java | DPersico/Sync-Lab-esercizi | /esercizi/esercitazione 2.1/Esercizio1/src/ProdottiAlimentari.java | UTF-8 | 1,225 | 3.125 | 3 | [] | no_license |
public class ProdottiAlimentari extends Prodotti {
private Data dataDiScandeza = new Data();
public ProdottiAlimentari(String codice, String descrizione, int prezzo, Data dataDiScadenza) {
super(codice, descrizione, prezzo);
this.dataDiScandeza = dataDiScadenza;
}
public Data getDataDiScandeza() {
retu... | true |
3ecfbee675528f54232fc4c81e9c3bfe1e5fba07 | Java | qweaa11/Ananas2 | /FINAL/src/main/java/com/spring/schedule/JGHscheduler/JGHScheduler.java | UTF-8 | 689 | 2.015625 | 2 | [] | no_license | package com.spring.schedule.JGHscheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* 스케줄러
* @author imple... | true |
13aa30e7074890d45f257e464a8f85fb9d876398 | Java | ant0804/wuxibusApp | /app/src/main/java/com/wuxibus/app/entity/NewsDetail.java | UTF-8 | 1,392 | 2.203125 | 2 | [] | no_license | package com.wuxibus.app.entity;
/**
* Created by zhongkee on 15/7/17.
* "title": "赖着不走:菲律宾摸黑偷偷修理南沙\"坐滩\"破船",
"class_name": "本地新闻",
"sm": "1999年,菲律宾海军“马德雷山”号登陆舰企图以非法“坐滩”的形式窃占中国仁爱礁。中方近年来多次要求菲方拖走该船,但菲方未履行自己的承诺。",
"index_pic": "http://img.wxbus.com.cn/attachment/2015/07/1436950365.jpg",
"url": "http://api.wxbus.com.... | true |
7f16f687de569238124b22b0d54c8cdbc1bf9512 | Java | PratikBarhate/code-snippets | /basics/jvm_based/src/main/java/javaprograms/sorting/MergeSort.java | UTF-8 | 2,429 | 4.125 | 4 | [
"MIT"
] | permissive | package javaprograms.sorting;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
/**
* 1. This sorting technique has a average time complexity of O(n * log n).
* 2. Stable sort.
*
* One disadvantage of this sorting technique is that
* it creates two array objects for each merge ope... | true |
a2823f1afb56ba3103ab6295c03fbc0e19e34707 | Java | neirongkuifa/Algorithm-Design | /RangeAddition.java | UTF-8 | 554 | 3.4375 | 3 | [] | no_license | public class RangeAddition{
public static void main(String[] args){
int m=3;
int n=4;
int[][] ops=new int[5][2];
System.out.println("Maximum count of elements: "+maxCount(m, n, ops));
}
public static int maxCount(int m, int n, int[][] ops) {
int minRow=m;
in... | true |
8c6ec0e80c3d6296164103e9095269c7406657ca | Java | Ericww32/Java | /UCF/CEN4025/src/test/javadoc/MethodTestData.java | UTF-8 | 3,234 | 3.421875 | 3 | [] | no_license | package test.javadoc;
/**
* Encapsulates the details of a method
*
* This is updated at runtime as the test executes. The name, parameters and
* return type are validated against the source code for correctness and if they
* match, the method is valid
*
* @author Scott LaChance
*
*/
public class... | true |
b0cf5322b58028bdd3d17197c905abe31e89c005 | Java | adarshmamtasingh/Twisty-potato | /app/src/main/java/test/twistypotato/HomeFragment.java | UTF-8 | 1,608 | 2.015625 | 2 | [] | no_license | package test.twistypotato;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androi... | true |
edc05531dbfea65ba384d6b65791dd609f6a5655 | Java | Tavi3h/Spring-in-Action-4th-Edition | /sia4e-P1_Core_Spring-C03_Advanced_wiring-04_scope/src/test/java/com/myapp/ShoppingCartTest.java | UTF-8 | 775 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.myapp;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;... | true |
fd6e131674981843018b49755771d32c537dae42 | Java | bungkhus/Mobile-Dev-Test---Khusnan | /app/src/main/java/com/ministudio/bungkhus/mobiledevtest_khusnan/activity/HomeActivity.java | UTF-8 | 4,065 | 2.484375 | 2 | [] | no_license | package com.ministudio.bungkhus.mobiledevtest_khusnan.activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import and... | true |
cd222c0bf7318108c137b8844db0d19e20748a5d | Java | mrfatolahi1/Twitter | /Twitter/Server/src/main/java/saversandloaders/database/dbsavers/DBUserSaver.java | UTF-8 | 2,239 | 2.6875 | 3 | [] | no_license | package saversandloaders.database.dbsavers;
import XLogger.MLogger;
import models.user.User;
import org.hibernate.Session;
import org.hibernate.Transaction;
import saversandloaders.database.SessionGenerator;
import saversandloaders.database.converters.userconverter.UserConverter;
import saversandloaders.database.model... | true |
1a4bcf0209720165da072e4a01e3b7122320a026 | Java | OtavioPontes/projetoAP2 | /projetoAP2/ProjetoFinalAP2/projeto/projeto/DepositoGUI.java | UTF-8 | 3,116 | 2.875 | 3 | [] | no_license |
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax... | true |
ce922671c89c59f64db5ceedb7c3699753b93da4 | Java | 17607487720/ysf | /app/src/main/java/com/example/myapplication/http/Basenet/RxNetOnSubscribe.java | UTF-8 | 1,947 | 2.484375 | 2 | [] | no_license | package com.example.myapplication.http.Basenet;
import com.example.myapplication.model.BaseResponse;
import com.example.myapplication.utils.RxUtils;
import okhttp3.Call;
import rx.Observable;
import rx.Subscriber;
public class RxNetOnSubscribe<T> implements Observable.OnSubscribe<BaseResponse<T>> {
private fina... | true |
8952e2d44425139d9e41cbe19055d3a928b5f03b | Java | nvkk-devops/cdktf-java-aws | /src/main/java/imports/aws/Route53ZoneAssociation.java | UTF-8 | 7,515 | 1.5625 | 2 | [] | no_license | package imports.aws;
@javax.annotation.Generated(value = "jsii-pacmak/1.24.0 (build b722f66)", date = "2021-03-10T09:47:02.826Z")
@software.amazon.jsii.Jsii(module = imports.aws.$Module.class, fqn = "aws.Route53ZoneAssociation")
public class Route53ZoneAssociation extends com.hashicorp.cdktf.TerraformResource {
p... | true |
d17c2d231d2fab414804fe39a3e5238168bd74b8 | Java | mytekk/SDA-TDD | /src/main/java/com/sda/util/MyStringUtils.java | UTF-8 | 1,250 | 3.34375 | 3 | [] | no_license | package com.sda.util;
import org.apache.commons.lang3.StringUtils;
/**
* Created by RENT on 2017-08-28.
*/
public class MyStringUtils {
public static boolean isUpperCase(String value) {
return StringUtils.isNotBlank(value) && value != null && value.equals(value.toUpperCase());
}
public static ... | true |
4bf6a103fc6dbecc8a68ab8f52d192fb7d00be04 | Java | sergiushub/Rumbo | /src/main/java/com/app/SearchResult.java | UTF-8 | 1,194 | 2.734375 | 3 | [] | no_license | package com.app;
public class SearchResult {
String flightNumber;
double totalPrice;
double basePrice;
double infantPrice;
public SearchResult(String flightNumber, double totalPrice, double basePrice, double infantPrice) {
this.flightNumber = flightNumber;
this.totalPrice = totalPrice;
this.... | true |
2e6cf5536047ca2e03ad48ee418cd744f22be10a | Java | ggranum/cli-annotations | /cli/src/test/java/biz/granum/cli/byproperties/ModelFromPropertiesBooleanTest.java | UTF-8 | 975 | 2.265625 | 2 | [] | no_license |
package biz.granum.cli.byproperties;
import biz.granum.cli.CliModelProcessor;
import biz.granum.cli.configuration.BooleanConfigurations;
import java.util.Properties;
import org.junit.Test;
public abstract class ModelFromPropertiesBooleanTest {
public abstract <T> CliModelProcessor<Properties, T> getPr... | true |
eedd52d5e2e7ec0619cc6d89de79f29e1ab38270 | Java | prilipkoi/HelloJAVA | /src/glava9/primer8/IfTest.java | UTF-8 | 768 | 3.578125 | 4 | [] | no_license | package glava9.primer8;
/**
* Created by prilipko.ia on 13.09.2018.
*/
public class IfTest {
public static void main(String[] args) {
FixedStack mystack1 = new FixedStack(5);
FixedStack mystack2 = new FixedStack(8);
// разместить числа в стеке
for(int i = 0; i < 5; i++) mystack1.p... | true |
d9fc19ce7f8e9eb4894a116e04a43a0cde755153 | Java | xiezhaofei/AndroidLearning | /app/src/main/java/com/android/androidlearning/learningcode/proxy/Sell.java | UTF-8 | 167 | 1.75 | 2 | [] | no_license | package com.android.androidlearning.learningcode.proxy;
/**
* Created by xiezhaofei on 2020-03-15
* <p>
* Describe:
*/
public interface Sell {
void sell();
}
| true |
78b873a7664cb650d90e5cf0a315713c28b8f244 | Java | nokchax/watcher | /src/main/java/com/nokchax/watcher/WatcherApplication.java | UTF-8 | 660 | 1.96875 | 2 | [] | no_license | package com.nokchax.watcher;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.telegram.telegrambots.ApiContextInitializer;
@SpringBootApplication
public class WatcherApplication {
private static final String TOKEN_PR... | true |
8205b9d157085c7e23859fe2c02568b0037c3667 | Java | Hrithik2009/Child_Maltreatment-Database-System | /src/com/cmds/pbl/tcet/model/lodgecomplaint.java | UTF-8 | 1,010 | 1.828125 | 2 | [] | no_license | package com.cmds.pbl.tcet.model;
public class lodgecomplaint {
private String username;
private String city;
private String email;
private String mob_no;
private String registration_date;
public String getRegistration_date() {
return registration_date;
}
public void setRegistration_date(String registrati... | true |
e0a52dcffbe2d39a5da11e6be9f6b88cc156f9f0 | Java | wujiawei55/yygh-parent | /service/service-user/src/main/java/com/lc/yygh/user/controller/api/PatientApiController.java | UTF-8 | 2,205 | 2.234375 | 2 | [] | no_license | package com.lc.yygh.user.controller.api;
import com.lc.yygh.common.result.Result;
import com.lc.yygh.common.utils.AuthContextHolder;
import com.lc.yygh.model.user.Patient;
import com.lc.yygh.user.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.... | true |
10309e9d47d3e7ba591ae54072988dc1e6d46f7e | Java | tae44/java_for_bigData | /黑马Java/src/day27/练习/Test2.java | UTF-8 | 2,431 | 3.875 | 4 | [] | no_license | package day27.练习;
/*
某公司组织年会,会议入场时有两个入口,在入场时每位员工都能获取一张双色球彩票,假设公司有100个员工,利用多线程模拟年会入场过程,
并分别统计每个入口入场的人数,以及每个员工拿到的彩票的号码。线程运行后打印格式如下:
编号为: 2 的员工 从后门 入场! 拿到的双色球彩票号码是: [17, 24, 29, 30, 31, 32, 07]
编号为: 1 的员工 从后门 入场! 拿到的双色球彩票号码是: [06, 11, 14, 22, 29, 32, 15]
.....
从后门入场的员工总共: 13 位员工
从前门入场的员工总共: 87 位员工
*/
import j... | true |
d62bd2004ae893c82ac89c5db877bdcf913f4286 | Java | jossoj/certificacion-java-jspc6 | /CertificacionJAVA-JSCP/src/com/johannpando/certificacion/scjp6/whizlabs/Test1/StringBuilderAdd.java | UTF-8 | 441 | 3.34375 | 3 | [] | no_license | package com.johannpando.certificacion.scjp6.whizlabs.Test1;
public class StringBuilderAdd {
/**
* @param args
*/
public static void main(String[] args) {
StringBuilder sb = new StringBuilder("a");
for (int i = 1; i < 5; i++) {
sb.append("a");
}
// el nombre del m�todo lo dice bastante cla... | true |
f6636153aaa7d8337642886df425022c82192a0b | Java | jianghan200/wxsrc6.6.7 | /app/src/main/java/com/tencent/mm/plugin/card/ui/CardInvalidCardUI.java | UTF-8 | 2,098 | 1.554688 | 2 | [] | no_license | package com.tencent.mm.plugin.card.ui;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import android.widget.BaseAdapter;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.card.a.e;
import com.tencent.mm.plugin.c... | true |
639bd6794248c3cc847581bb9938332db7114494 | Java | PravatKumarPradhan/his | /Billing/src/main/java/com/param/billing/opd/dao/IPaymentDepositDetailsDao.java | UTF-8 | 533 | 1.882813 | 2 | [] | no_license | package com.param.billing.opd.dao;
import com.param.billing.exception.BillingException;
import com.param.billing.global.dto.PaymentDepositDetailsDto;
import com.param.billing.global.model.PaymentDepositDetails;
import com.param.global.common.Response;
import in.param.common.dao.IGenericDao;
@SuppressWarning... | true |
861b726c00169e46dfaf65bc1a145d6a8bedaf3e | Java | walkeZ/Learning | /HuiMvp/mvpTest/src/main/java/com/hui/mvptest/base/activity/TitleActivity.java | UTF-8 | 1,895 | 2.328125 | 2 | [] | no_license | package com.hui.mvptest.base.activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.hui.mvptest.R;
import com.hui.mvptest.util.LayoutParamsUtil;
import com.hui.mvptest.widget.TitleLayout;
/**
* Created by Walke.Z on 2... | true |
27f84f9948c98760869077b3c10898649cb1cf44 | Java | childxr/svlife | /src/com/rxlab/action/interview/AddQuizAction.java | UTF-8 | 1,742 | 2.109375 | 2 | [] | no_license | package com.rxlab.action.interview;
import com.opensymphony.xwork2.ActionSupport;
import com.rxlab.pojo.Knowledge;
import com.rxlab.pojo.Quiz;
import com.rxlab.service.interview.KnowledgeService;
import com.rxlab.service.interview.QuizService;
import com.rxlab.service.interview.impl.InterviewServiceFactoryImpl;... | true |
a1d5b342af635592bfb7538cb8e84d93bd7ad187 | Java | willShuhuan/DH_FastEC | /latte-core/src/main/java/com/dsh/latte/util/timer/ITimerListener.java | UTF-8 | 144 | 1.875 | 2 | [] | no_license | package com.dsh.latte.util.timer;
/**
* Created by Adam on 2018/3/26.
*/
public interface ITimerListener {
void onTimer();
}
| true |
691f0b1f95a284b45c5c19546354c62b011c0e74 | Java | cuchas/Exemplos-Android-HS | /app/src/main/java/br/com/cucha/myself2/NotificationHelper.java | UTF-8 | 1,540 | 2.125 | 2 | [] | no_license | package br.com.cucha.myself2;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.support.v4.app.NotificationCompat;
/**
* Created by eduardocucharro on 04/02/18.
*/
public class NotificationHelper {
pu... | true |
e4c78ba07ad951289d1c6924511d86b34b0aae36 | Java | zyueit/CRM | /src/main/java/eon/service/impl/ContractOrderService.java | UTF-8 | 2,672 | 2.15625 | 2 | [] | no_license | package eon.service.impl;
import eon.domain.ContractOrder;
import eon.domain.Guarantee;
import eon.mapper.ContractOrderMapper;
import eon.mapper.GuaranteeMapper;
import eon.page.PageResult;
import eon.query.ContractOrderQueryObejct;
import eon.service.IContractOrderService;
import org.springframework.beans.factory.ann... | true |
d52f479d20819a129b7affd25af8816a71ed7eb5 | Java | alexandraback/datacollection | /solutions_5648941810974720_1/java/aditsu/A_2_Digits.java | UTF-8 | 1,820 | 2.921875 | 3 | [] | no_license | import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class A_2_Digits {
public void solve(final Scanner sc, final PrintWriter pw) {
final String s = sc.nextLine();
final int[] ... | true |
82051cf2e55afb240997ea7dfcfe85c8a762ead6 | Java | Azure/azure-sdk-for-java | /sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java | UTF-8 | 24,512 | 1.554688 | 2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.co... | true |
661956bd83e901fd4e231a9f48804e312c069de9 | Java | LiuHongMing/pay | /pay-startup/src/test/java/com/github/tiger/test/spring/ModuleTypeEnum.java | UTF-8 | 1,218 | 2.765625 | 3 | [] | no_license | package com.github.tiger.test.spring;
import java.util.Arrays;
public enum ModuleTypeEnum {
CUSTOMER(0, "customer", "人群");
private Integer value;
private String name;
private String description;
ModuleTypeEnum(Integer value, String name, String description) {
this.value = value;
... | true |
806ad93f48bffd71a89c3ef991d03474a5e9c0f4 | Java | levelp/java_09 | /webapp/src/test/java/webapp/storage/DataStreamStorageTest.java | UTF-8 | 202 | 1.578125 | 2 | [] | no_license | package webapp.storage;
/**
* User: gkislin
* Date: 18.04.2014
*/
public class DataStreamStorageTest extends StorageTest {
static {
storage = new DataStreamStorage(STORAGE_DIR);
}
}
| true |
eeb6d8f77e81cc620e6a354ad16c5dcdcfd28239 | Java | keyking-coin/code | /service/src/com/keyking/coin/util/TimeUtils.java | UTF-8 | 5,905 | 2.984375 | 3 | [] | no_license | package com.keyking.coin.util;
import java.sql.Timestamp;
import java.util.TimeZone;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.Days;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class TimeUtils {
public static final D... | true |
9ae7f69d70b91a41936c0884180a0575e57ecfec | Java | sajithdherath/University-System-javaFX | /src/glyndwr/controllers/StudentController.java | UTF-8 | 3,833 | 2.765625 | 3 | [] | no_license | package glyndwr.controllers;
import glyndwr.dao.ModuleDao;
import glyndwr.dao.StudentDao;
import glyndwr.models.Module;
import glyndwr.models.Student;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.sc... | true |
6355db5d478589fee957728c40871de58b8bab63 | Java | hai-ping/myObject | /src/main/java/com/lian/myObject/leetcode/listnode/SortListNode.java | UTF-8 | 2,415 | 3.78125 | 4 | [] | no_license | package com.lian.myObject.leetcode.listnode;
/**
* 链表排序 -- 归并
* @author Ted
* @version 1.0
* @date 2021/10/15 17:37
*/
public class SortListNode {
public static void main(String[] args) {
SortListNode sortListNode = new SortListNode();
//[1,4,8,6,2,5,7]
ListNode head = new ListNode(8)... | true |
e8003d061ad78839b0ca75439690bfce1ea901f7 | Java | rbukirwa/Calavera2 | /201802/08/Average.java | UTF-8 | 712 | 3.140625 | 3 | [
"MIT"
] | permissive | package sss;
import java.util.Scanner;
class Average
{
public static void main(String args[])
{
int n;
double res=0;
Scanner reader=new Scanner(System.in);
System.out.println("Enter how many numbers to calculate the avrage ");
n=reader.nextInt();
int a[]=... | true |
1e9918ec2897e54f26eadc588017eb1c4f2488fb | Java | gpaglinawan/ADFProject | /BSIP081215/.svn/pristine/1e/1e9918ec2897e54f26eadc588017eb1c4f2488fb.svn-base | UTF-8 | 23,737 | 1.75 | 2 | [] | no_license | package com.fda.aps.view.managedbean;
import com.fda.aps.ADFUtils;
import com.fda.aps.JSFUtils;
import com.fda.aps.StringUtils;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Logger;
import javax.faces.event.ActionEvent;
import javax.faces.eve... | true |
58c871728935284f19d27510f09e69275667e693 | Java | vrqin/taxi | /taxi-e/smartkab/smartkab-ws/src/main/java/com/speedtalk/smartkab/ws/dao/UserDao.java | UTF-8 | 3,199 | 2.265625 | 2 | [] | no_license | package com.speedtalk.smartkab.ws.dao;
import com.speedtalk.smartkab.ws.db.HibernateSessionFactory;
import com.speedtalk.smartkab.ws.db.TabPhoneuser;
import com.speedtalk.smartkab.ws.db.TbUser;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
public class UserDa... | true |
a28f9f52658019a8fb7a1598ce728744362e67c2 | Java | surport/Android | /Ruyicai_General/v_3.4.5/src/com/ruyicai/activity/buy/pl3/PL3.java | UTF-8 | 1,128 | 1.71875 | 2 | [] | no_license | /**
*
*/
package com.ruyicai.activity.buy.pl3;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.palmdream.RuyicaiAn... | true |
a50150037667fc52e2be71b06216a6141cee1263 | Java | ace19214/Shift-Management-Project | /src/main/java/shift/management/repository/ShiftRepository.java | UTF-8 | 456 | 1.914063 | 2 | [] | no_license | package shift.management.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import shift.management.entity.Shift;
import java.sql.Date;
import java.util.List;
@Repository
public interface ShiftRepository extends JpaRepository<Shift, Integer> {
... | true |
9648cf3cdeb685960f860f4166ae931fbea01ad8 | Java | hello2mao/Focus | /app/src/main/java/com/hello2mao/focus/theme/ColorUi/ColorUiInterface.java | UTF-8 | 237 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.hello2mao.focus.theme.ColorUi;
import android.content.res.Resources;
import android.view.View;
/**
* 换肤接口
*/
public interface ColorUiInterface {
View getView();
void setTheme(Resources.Theme themeId);
}
| true |
64a9cc7a73a1f72666db4bda87079e191aadaf01 | Java | bl-zh/spring-cloud-zh | /zh-parent/zh-domain/src/main/java/org/zh/domain/repository/ProductidSetRepository.java | UTF-8 | 227 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package org.zh.domain.repository;
import org.springframework.data.repository.CrudRepository;
import org.zh.domain.entity.ProductidSet;
public interface ProductidSetRepository extends CrudRepository<ProductidSet, Integer>{
}
| true |
2fc54365589608d44b00f63b867fe6a4a82d7fdd | Java | mrc-y/Ticketing-Project | /src/main/java/com/mirac/ticketing/validator/RouteSearchValidator.java | UTF-8 | 732 | 2.375 | 2 | [] | no_license | package com.mirac.ticketing.validator;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.server.ResponseStatusException;
/**
* @author miracy
*/
@Component
public class RouteSearchValidator impleme... | true |
6f740e1bf11b4df2122f67c7d76d224211bb6d1e | Java | sebaek/project-upload | /src/controller/UploadController.java | UTF-8 | 2,573 | 2.640625 | 3 | [] | no_license | package controller;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
imp... | true |
029d8876f60a42a46cc29d5aae7a51692b4368b7 | Java | patoleabhijeet/ShiftRoster | /ShiftRoster/src/com/apatole/factory/GetShiftStructureFactory.java | UTF-8 | 446 | 2.34375 | 2 | [] | no_license | package com.apatole.factory;
public class GetShiftStructureFactory {
public ShiftStructure getValidationResult (String ShiftStructure) {
if (ShiftStructure.equalsIgnoreCase("5+2")) {
return new ShiftStruct_5_2();
}
if (ShiftStructure.equalsIgnoreCase("4+3")) {
return new ShiftStruct_4_3();... | true |
b144d8504baa728453a222f4095e19147bb1cab2 | Java | Mikassk/Java---IA | /Troca de Mensagem/src/Farmer/StatesBob/BobGlobalState.java | UTF-8 | 1,065 | 2.78125 | 3 | [] | no_license | package Farmer.StatesBob;
import Farmer.Bob;
import Farmer.GlobalStates.BobBathroom;
import Farmer.Messages.Message;
import Farmer.State;
import java.util.Random;
public class BobGlobalState implements State<Bob> {
private static BobGlobalState instance = null;
private BobGlobalState(){
}
public ... | true |
f27419018688b26c40b2eaead71bb770467eedbc | Java | Horror666zd/lunar-unity-console | /Native/Android/LunarConsole/lunarConsole/src/androidTest/java/spacemadness/com/lunarconsole/console/ConsoleLogEntryListTest.java | UTF-8 | 28,496 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | //
// ConsoleLogEntryListTest.java
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 2015-2021 Alex Lementuev, SpaceMadness.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licens... | true |
5b3279f346728fb894e1ab1ed905ad86f7d60343 | Java | deepcloudlabs/dcl350-2021-sep-06 | /async-programming-spring/src/main/java/com/example/service/BusinessService.java | UTF-8 | 907 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.example.service;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotati... | true |
f9a277e65cc81e276bdd49a38c6261b3e2062760 | Java | JeghamFiras/Jegh | /app/src/main/java/com/example/jegham/projetihm/page2.java | UTF-8 | 2,358 | 2.03125 | 2 | [] | no_license | package com.example.jegham.projetihm;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
... | true |
e0c4819a742652e61ee53963aa12c19e6bc5541c | Java | haorq/food-word | /catering-basic-server/catering-merchant-goods/catering-merchant-goods-server/src/main/java/com/meiyuan/catering/merchant/goods/service/CateringMenuGoodsRelationService.java | UTF-8 | 873 | 1.742188 | 2 | [] | no_license | package com.meiyuan.catering.merchant.goods.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meiyuan.catering.core.page.PageData;
import com.meiyuan.catering.merchant.goods.dto.merchant.MenuGoodsRelationDTO;
import com.meiyuan.catering.merchant.goods.entity.CateringMenuGoodsRelationEnti... | true |
05b6fd35735dddf05ab2835207b1549dadbc1c0c | Java | SenchenkoDV/JD2016-08-29 | /src/by/it/tsydzik/jd02_01/IBacket.java | UTF-8 | 160 | 1.945313 | 2 | [] | no_license | package by.it.tsydzik.jd02_01;
/**
* @author Eugene Tsydzik
* @since 10/03/16.
*/
public interface IBacket {
void takeBacket();
void putGoodsToBacket();
}
| true |
15714d93c10f88c7413560ffc694b5af551fa7dd | Java | daxingyou/GenesisServer | /Code_Java/game_server/src/com/mokylin/bleach/gameserver/core/persistance/IDataUpdater.java | UTF-8 | 278 | 1.828125 | 2 | [] | no_license | package com.mokylin.bleach.gameserver.core.persistance;
import com.mokylin.bleach.gamedb.persistance.PersistanceWrapper;
public interface IDataUpdater {
void addUpdate(PersistanceWrapper persistanceWrapper);
void addDelete(PersistanceWrapper persistanceWrapper);
}
| true |
a85b04c83e988fc6f00a6d24a1f3e75d3cf90de3 | Java | TjavaistT/JavaRushTasks | /4.JavaCollections/src/com/javarush/task/task20/task2028/CustomTreeTest.java | UTF-8 | 3,738 | 2.765625 | 3 | [] | no_license | package com.javarush.task.task20.task2028;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class CustomTreeTest {
CustomTree.Entry<String> root;
CustomTree customTree;
@Before
public void setUp() {
customTree = new CustomTree();
... | true |
812620ace9aa604585997b4aedcc8a0198712090 | Java | kardesz97/NetBank | /NetBank/src/hu/rm_netbank/netbank/db/sqlbuilder/transaction/SelectAllTransactionSqlBuilder.java | UTF-8 | 379 | 2.125 | 2 | [] | no_license | package hu.rm_netbank.netbank.db.sqlbuilder.transaction;
import hu.rm_netbank.netbank.db.sqlbuilder.SqlBuilder;
public class SelectAllTransactionSqlBuilder implements SqlBuilder {
@Override
public String buildSqlStatement() {
return "SELECT transaction_id, username_from, username_to, date_and_time, trans... | true |
9358d0103e8abe647c4b9d8b66ace51a841c14a5 | Java | mlewis2014/MarkCrypto | /src/org/markl/crypto/PasswordEncrypter.java | UTF-8 | 10,765 | 2.3125 | 2 | [] | no_license | /*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: -
* Redistributions of source code must retain the above copyright notice, this
*... | true |
6e8542154fdcac4b26677066d05663f1d7289198 | Java | physicsLoveJava/java-miscellaneous | /tech-design-pattern/src/main/java/creation/factory/simple/Shape.java | UTF-8 | 98 | 2.203125 | 2 | [] | no_license | package creation.factory.simple;
public interface Shape {
void draw();
void area();
}
| true |
be37402deca3b3083ed91f6cf4179c805ef4a68a | Java | mkkabi/CountersCleaned | /src/fxml/TranslationController.java | UTF-8 | 2,273 | 2.84375 | 3 | [] | no_license | package fxml;
import java.util.Timer;
import java.util.TimerTask;
import javafx.animation.TranslateTransition;
import javafx.scene.Node;
import javafx.util.Duration;
// Creates TranslateTransitions to move app elements in scene
public class TranslationController {
private static final int MESSAGE_DURATION = 250... | true |
140cb5aa6c2dc9ee949403b7c3945332c799038c | Java | ilderlan/desafio-seat | /desafio-seaf/src/problema8/Adjacentes.java | ISO-8859-1 | 1,711 | 3.53125 | 4 | [] | no_license | package problema8;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Adjacentes {
public static void main(String[] args) {
long produto = 0;
long maiorProduto = 0;
int index = 0;
int numerosAdjacentes = 0; //-1 Nessa logica considerei o zero... | true |
b7450ad37bb11945292152a73748b02da0e1de48 | Java | markewallace/SocialSDK | /src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/client/connections/search/SearchService.java | WINDOWS-1252 | 12,535 | 2.140625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright IBM Corp. 2013
*
* 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 t... | true |
ea483742e817ba8ce403a11cc3f11efde941fe97 | Java | lannerate/ruleBuilder | /src/com/flagleader/builder/widget/editor/a/d.java | UTF-8 | 717 | 1.789063 | 2 | [] | no_license | package com.flagleader.builder.widget.editor.a;
import com.flagleader.builder.widget.editor.s;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.text.IUndoManager;
public class d extends Action
{
private s a;
public d(s params)
{
... | true |
06cf7be5bfa7da6cfd06a896f1fd0525406a9dd6 | Java | nirbhay41/CompetitiveProgramming | /src/com/RocketScience/DSA/Stack/NextGreatestToRight.java | UTF-8 | 719 | 3.640625 | 4 | [] | no_license | package com.RocketScience.DSA.Stack;
import java.util.Arrays;
import java.util.Stack;
public class NextGreatestToRight {
public static void main(String[] args) {
Arrays.stream(nextGreatest(new int[]{1,3,2,4})).forEach(System.out::println);
}
private static int[] nextGreatest(int[] arr){ // for lef... | true |
49c764805ff208a1f1c049e46af42fd18f1ea173 | Java | alldatacenter/alldata | /dts/inlong/inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/cls/ClsIdConfig.java | UTF-8 | 1,820 | 1.828125 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-compass"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | true |
acfc2e106fa8afe40983751b7594bcdfa69fb3ab | Java | zhousiyu627/TicTacToeandOrderandChaos | /TTTGame.java | UTF-8 | 10,009 | 3.015625 | 3 | [] | no_license | import java.util.Scanner;
import java.util.regex.Pattern;
public class TTTGame {
private TTTBoard board; // the game board
private GameState currentState; // the current state of the game (of enum GameState)
private Seed currentPlayer; // the current player (of enum Seed)
private PlayerS... | true |
4df5e642e40a6fe805a16174a7d6316b7eaa2f33 | Java | Alpha0King/OPDeviceManager | /app/src/main/java/com/loc/da.java | UTF-8 | 3,051 | 2.015625 | 2 | [] | no_license | package com.loc;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.BitSet;
/* compiled from: Unknown */
public final class da {
private RandomAccessFile a;
private cd b;
private String c;
private File d;
protec... | true |
a8ac0a7ec5301521b4ea268f6e4c537d0a71427c | Java | maruvuina/ReceptionEnrolleeProject | /src/main/java/by/epam/receptionenrollee/dao/EntranceExaminationDao.java | UTF-8 | 2,159 | 2.5625 | 3 | [] | no_license | package by.epam.receptionenrollee.dao;
import by.epam.receptionenrollee.entity.EntranceExamination;
import by.epam.receptionenrollee.exception.DaoException;
import java.sql.SQLException;
import java.util.List;
/**
* CRUD operations interface for EntranceExamination entity
*/
public interface EntranceExaminationDao... | true |
4cbe9d3cbed95273d8d691ecd8e4ffdfc564866b | Java | kellixon/Cyclic | /src/main/java/com/lothrazar/cyclicmagic/component/workbench/GuiWorkbench.java | UTF-8 | 1,560 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.lothrazar.cyclicmagic.component.workbench;
import com.lothrazar.cyclicmagic.data.Const;
import com.lothrazar.cyclicmagic.gui.base.GuiBaseContainer;
import net.minecraft.client.gui.Gui;
import net.minecraft.entity.player.InventoryPlayer;
public class GuiWorkbench extends GuiBaseContainer {
// private Til... | true |