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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
33c0b55c6f9496a3f3d52cb95d3ec9f6adda28b5 | Java | EskeJayaswal/SP2 | /SP2/src/DieselCar.java | UTF-8 | 2,041 | 2.953125 | 3 | [] | no_license | public class DieselCar extends Car{
protected boolean hasParticleFilter;
protected int kmPrL;
protected double greenTax;
public DieselCar(String licenseNumber, String make, String model, int year, int numberOfDoors, boolean hasParticleFilter, int kmPrL) {
super(licenseNumber, make, mode... | true |
fc5651a65bc2a43394567cf697a4b07fe51cbdd4 | Java | kotzen1023/TennisScoreBoard | /app/src/main/java/com/seventhmoon/tennisscoreboard/Data/RecordArrayAdapter.java | UTF-8 | 5,502 | 2.359375 | 2 | [] | no_license | package com.seventhmoon.tennisscoreboard.Data;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
impo... | true |
afc6311ed4c18102b60f92e180b8c0b7023aa640 | Java | mauriciocoruja/generation | /Aprendendo-Java/Spring/artemis/src/main/java/org/generation/brazil/artemins/user/ResourceNotFoundException.java | UTF-8 | 163 | 1.585938 | 2 | [] | no_license | package org.generation.brazil.artemins.user;
public class ResourceNotFoundException extends Exception {
public ResourceNotFoundException(String s) {
}
}
| true |
8274beeb8fe5429ecb5f60d08410aef642b52686 | Java | aidaka/KayoVM | /testclasses/exception/InstructionExTest.java | UTF-8 | 1,420 | 2.6875 | 3 | [
"MIT"
] | permissive | package exception;
public class InstructionExTest {
// public static void main(String[] args) {
// UnitTestRunner.run(InstructionExTest.class);
// }
//
// @Test(expected = ClassCastException.class)
// public void checkcast() {
// Object x = "String";
// Integer y = (Integer) x;
//... | true |
6d7cba004ce2ce8713ca226a1730567a5b153a10 | Java | GuzelMusina/MUSINA_11_702 | /WaveAlgorithm/src/ru/itis/AlgorithmLee.java | UTF-8 | 4,272 | 2.90625 | 3 | [] | no_license | package ru.itis;
import java.util.ArrayList;
/**
* 19.03.2018
* AlgorithmLee
*
* @author Guzel Musina (ITIS)
* @version v1.0
*/
public class AlgorithmLee {
private final int block = -2;
private final int free = -1;
private int d = 0;
private Point begin;
private Point end;
private boole... | true |
807037d0a00f09c2ddff1c75fa49d47fcdf3fcd8 | Java | Intektor/DuckGames | /core/src/de/intektor/duckgames/world/World.java | UTF-8 | 6,039 | 2.640625 | 3 | [] | no_license | package de.intektor.duckgames.world;
import com.badlogic.gdx.math.Vector2;
import com.google.common.collect.Table;
import de.intektor.duckgames.block.Block;
import de.intektor.duckgames.collision.Collision2D;
import de.intektor.duckgames.common.server.DuckGamesServer;
import de.intektor.duckgames.entity.Entity;
import... | true |
cdf45e5ec1749395f9d78126ec91515f37ca5335 | Java | anup03gupta/SpringBoot12112019 | /spring-boot-app/src/main/java/com/zensar/springbootapp/entity/User.java | UTF-8 | 1,060 | 2.515625 | 3 | [] | no_license | package com.zensar.springbootapp.entity;
public class User {
private int userId;
private String userName;
private int userAge;
private String email;
public User() {
super();
}
public User(int userId, String userName, int userAge, String email) {
super();
this.userId = userId;
this... | true |
27444445cbc37eb9237700a6524d7a1450d043d4 | Java | player1537-playground/java-stuff | /stack-test/Function.java | UTF-8 | 283 | 2.765625 | 3 | [] | no_license | class Function {
String name;
FunBase fb;
public Function(String name, FunBase fb) {
this.name = name;
this.fb = fb;
}
public boolean eval(String name) {
if (this.name.equals(name)) {
fb.execute();
return true;
} else {
return false;
}
}
} | true |
f99337f777f94b963d1afe373af4199f3ef1e60e | Java | hayashihuu/netty-learning | /netty-base/src/main/java/com/syun/nettydemo06/TestDemo.java | UTF-8 | 668 | 2.046875 | 2 | [] | no_license | package com.syun.nettydemo06;
import com.syun.nettydemo06.client.TimeClient;
import com.syun.nettydemo06.server.TimeServer;
import org.testng.annotations.Test;
/*
* @description:
* @program: netty-demo04
* @author: syun
* @create: 2019-05-04 16:35
*/
public class TestDemo {
@Test
public void testServer(... | true |
5c9d8ff1ef896e05558c73ae14e6930c14bcf542 | Java | Netistrar/reseller-api-java | /src/netistrar/clientapi/objects/transaction/TransactionError.java | UTF-8 | 13,644 | 2.25 | 2 | [] | no_license | package netistrar.clientapi.objects.transaction;
import java.util.Map;
/**
* Domain name error object
*/
public class TransactionError {
/**
* Either set to VALIDATION or OPERATION according to the type of error which this object represents.
*/
protected String type;
/**
* The following... | true |
47beb07e880011a2bcac0759fe28d061b339fbcb | Java | aimhigh53/valley | /src/valley_feed_server/src/main/java/com/soulmates/valley/common/constants/ErrorEnum.java | UTF-8 | 2,184 | 2.359375 | 2 | [] | no_license | package com.soulmates.valley.common.constants;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;
@Getter
@AllArgsConstructor
public enum ErrorEnum {
/* 회원 오류 메세지 정의 */
USER_NOT_FOUND(1100, "해당 유저가 존재하지 않습니다."),
/* 회원 오류 메세지 정의 끝*/
/* 포스팅 오류 메세지 정의 */
... | true |
362866990fbf11c39252b1d18f77d9691dffb278 | Java | gerard-pmh/video-distributor | /src/com/pge/videodistributor/models/Link.java | UTF-8 | 1,245 | 2.203125 | 2 | [] | no_license | package com.pge.videodistributor.models;
public class Link {
private Integer videoId;
private Integer cacheId;
private Long datacenterLatency;
private Long cacheLatency;
private Long requestSize;
private Long videoSize;
public Integer getVideoId() {
return videoId;
}
public void setVideoId... | true |
9b337c4217ccf9cdd48b380eda4572a77097a183 | Java | annavshulga/Job4j | /chapter_001/src/test/java/ru/job4j/array/MatrixCheckTest.java | UTF-8 | 2,391 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Тест проверки равенства значений внутри диагоналей матрицы boolean
* @author AShulga
* @version 0.1
* @since 22.02.2019
*/
public class MatrixCheckTest {
@Test
public voi... | true |
488a40f049f34edfa566fc008d81e5c5ee590cbc | Java | SPANInfotechPvtLtd/PSRP | /apache-camel/camel-usecases/reporting-system/src/main/java/com/span/psrp/reportingsystem/pdf/AbstractPageTemplate.java | UTF-8 | 1,298 | 2.296875 | 2 | [] | no_license | package com.span.psrp.reportingsystem.pdf;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import... | true |
60ca1e374e0f660f20a106779799e0c5fa8c837f | Java | kkBill/algorithm | /src/leetcode-java/_105_ConstructBinaryTreefromPreorderandInorderTraversal.java | UTF-8 | 1,525 | 3.734375 | 4 | [] | no_license | package LeetCode;
public class _105_ConstructBinaryTreefromPreorderandInorderTraversal {
/**
* 通过 前序序列 + 中序序列 构建二叉树
* key:
* 1) 前序序列的首个元素是二叉树的root,找到root在中序序列中的位置,即可分割左右子树
* 2) 递归处理左右子树
*/
public TreeNode buildTree(int[] preorder, int[] inorder) {
return build(preorder, 0, preo... | true |
da68c637858d2c434fa35bffde2721b2eb5bf77d | Java | ggyool/study-alone | /design-pattern/chapter7_state/src/light_example/state/Sleeping.java | UTF-8 | 655 | 3.359375 | 3 | [] | no_license | package light_example.state;
import light_example.Light;
public class Sleeping implements State {
private Sleeping() {
}
private static class SingletonHolder {
private static final State instance = new Sleeping();
}
public static State getInstance() {
return SingletonHolder.insta... | true |
b363937aacd30dd0079c48f450acf97c9a822ea4 | Java | Maks7117/jsp-servlet | /src/main/java/by/sheremet/controller/ShowTeacher.java | UTF-8 | 1,737 | 2.546875 | 3 | [] | no_license | package by.sheremet.controller;
import by.sheremet.modele.Person;
import by.sheremet.modele.Teacher;
import by.sheremet.repository.PersonRepository;
import by.sheremet.repository.PersonRepositoryInMemory;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.We... | true |
38ece6396ab0a0b9427ca18e4274331e49c61720 | Java | lipengdarcy/DemoSystem | /src/main/java/cn/smarthse/business/mongo/collection/wechat/WeixinDepartment.java | UTF-8 | 927 | 1.921875 | 2 | [] | no_license | package cn.smarthse.business.mongo.collection.wechat;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.D... | true |
2f65160a7dc4964eeb3a5b810bcbdcea179af296 | Java | AleChirinos/ExamenFinal-PD | /src/main/java/ExamenFinal/Ejercicio2Adapter/CuadratrackGasolina.java | UTF-8 | 569 | 3.1875 | 3 | [] | no_license | package ExamenFinal.Ejercicio2Adapter;
public class CuadratrackGasolina implements ICudratrack {
public void setLlenarGasolina(int gasolina) {
if (gasolina < 50 && gasolina > 0) {
System.out.println("Se anadio: " + gasolina + " litros de gasolina");
} else {
System.out.print... | true |
e7ee7df01913bf50aedf4a1fa52347f374e7448e | Java | wangyaoone/DianShang | /app/src/main/java/com/bw/ds/adapter/ChaAdapter.java | UTF-8 | 3,292 | 2 | 2 | [] | no_license | package com.bw.ds.adapter;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | true |
cd20117e976189d34144c2eeb3e804006aa3e7f1 | Java | dmds1993/CaixaEletronico | /src/br/com/caelum/banco/teste/TesteConversao.java | UTF-8 | 194 | 2.421875 | 2 | [] | no_license | package br.com.caelum.banco.teste;
public class TesteConversao {
public static void main(String[] args) {
String b = "200";
int i = Integer.parseInt(b);
System.out.println(i);
}
}
| true |
188292fcbfb23811401d820b1c10cdfc5a500b44 | Java | goformarty/learning-java | /dataStructures/ThinkDataStructures/src/LinkedListExample.java | UTF-8 | 1,011 | 3.671875 | 4 | [] | no_license | import java.util.LinkedList;
import java.util.List;
class Book {
int id;
String name, author, publisher;
int quantity;
public Book(int id, String name, String author, String publisher, int quantity) {
this.id = id;
this.name = name;
this.author = author;
this.publisher ... | true |
9abd92b45b651ef229a7b81cf2f5ab6d456c9d12 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_236b7f9a3321a864f24feb02bfd0e2e9ce2f2977/StartupPageConfigurer/2_236b7f9a3321a864f24feb02bfd0e2e9ce2f2977_StartupPageConfigurer_s.java | UTF-8 | 10,712 | 1.539063 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2002, 2012 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompan... | true |
d2ea2624767373e1e12afc8a0062cca8df86638a | Java | bogdanchikovsergey/gpbtest | /gpbwriter/src/main/java/ru/gpb/gpbwriter/GbpFileGenerator.java | UTF-8 | 4,843 | 2.40625 | 2 | [] | no_license | package ru.gpb.gpbwriter;
import ru.gpb.common.CsvRecord;
import ru.gpb.common.GpbValidateStatus;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.DecimalFormat;
import java.text... | true |
3c57e8fe7c28628f29534bd010330abc5bfae56d | Java | Paranoidzhou/Java_for_TeacherTakeDown | /Java项目/Shoot_Day5/shoot/Bee.java | UTF-8 | 809 | 3.15625 | 3 | [
"MIT"
] | permissive | package cn.tedu.shoot;
import java.util.Random;
import java.awt.image.BufferedImage;
/** 小蜜蜂: 是飞行物 */
public class Bee extends FlyingObject {
private static BufferedImage[] images; //图片数组
static{
images = new BufferedImage[5]; //5张图片
for(int i=0;i<images.length;i++){
images[i] = loadImage("bee"+i+".png");
}
... | true |
cfbc1bfc7b4a4af572257bc7281673c2cf05998f | Java | johnraychina/learn-algorithms | /arithmetic/src/main/java/NewtonSquareRoot.java | UTF-8 | 1,045 | 3.921875 | 4 | [] | no_license | /**
* 牛顿法求平方根,1-2-4-8... 精度呈平方级别增加
* <p>
* https://www.youtube.com/watch?v=eCaXlAaN2uE&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=11
* https://www.zhihu.com/question/20690553
* <pre>
* X_i+1 = X_i / 2 + a/(2*X_i)
* </pre>
* 迭代次数:logX
*
* @author Zhang Yi
*/
public class NewtonSquareRoot {
public... | true |
d7721e2eb64bea581845ec8d3504c0fa6dd9e846 | Java | hhhcommon/fincore_p2p | /p2p-trade/trade-client/src/main/java/com/zb/p2p/trade/client/dto/WithdrawalsPublicReqDto.java | UTF-8 | 1,242 | 2.03125 | 2 | [] | no_license | package com.zb.p2p.trade.client.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* <p> 对公放款 </p>
*
* @author Vinson
* @version WithdrawalsPublicReqDto.java v1.0 2018/5/14 12:51 Zhengwenquan Exp $
*/
@Data
public class WithdrawalsPublicReqDto implement... | true |
2ccd01ba9bf7e20218440b98bcb07414cbf48619 | Java | cgktiger/mytest | /changgou_parent/changgou_service/changgou_service_goods/src/main/java/com/changgou/goods/dao/SpecMapper.java | UTF-8 | 556 | 1.96875 | 2 | [] | no_license | package com.changgou.goods.dao;
import com.changgou.goods.pojo.Spec;
import feign.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
import java.util.Map;
public interface SpecMapper extends Mapper<Spec>{
//根据商品分类名称查询规格列表
@Select("select name,... | true |
7a7c74b0cb38b1f91eb9f376bf99a88ff0838071 | Java | jasonlaw-dev/leetcode | /src/647.palindromic-substrings(dp).java | UTF-8 | 666 | 2.984375 | 3 | [] | no_license | /*
* @lc app=leetcode id=647 lang=java
*
* [647] Palindromic Substrings
*/
// @lc code=start
class Solution {
public int countSubstrings(String s) {
if (s.length() == 0) return 0;
int count = 0;
boolean[][] dp = new boolean[s.length()][s.length()];
for (int len = 1; len <= s.len... | true |
752c7e056f040899a8f17696593009ac7b6de333 | Java | iiMessage/android-client | /app/src/main/java/com/pantherman594/iimessage/MessagesAdapter.java | UTF-8 | 4,429 | 2.21875 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2017 David Shen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu... | true |
2a70aad3ffac0b86f87ed1c3477bbc730a85a102 | Java | VeeraAnudeep/ChatBot | /app/src/main/java/veera/chat/com/chatbot/Presenter.java | UTF-8 | 1,785 | 2.265625 | 2 | [] | no_license | package veera.chat.com.chatbot;
import java.util.HashMap;
import java.util.Map;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import veera.chat.com.chatbot.api.ApiService;
import veera.chat.com.chatbot.api.ServiceHelper;
import veera.chat.com.chatbot.mvp.MVPBasePresenter;
public class... | true |
d938068e7c4a864547d367526414c9a59936bc12 | Java | alisoninoue/fj91-arq8518 | /calendar/application/src/main/java/br/com/caelum/garagesharing/calendar/listeners/booking/ChangeCalendarService.java | UTF-8 | 1,199 | 2.578125 | 3 | [] | no_license | package br.com.caelum.garagesharing.calendar.listeners.booking;
import br.com.caelum.garasesharing.event.Event;
import org.springframework.stereotype.Service;
@Service
class ChangeCalendarService {
private final CreationBookingUnavailabilityOperation creationService;
private final DeletionBookingUnavailabili... | true |
4190397ec23d0e40cedf4f47e15711620d938ff8 | Java | kuhechuidiao/dongluCarpark | /src/main/java/com/donglu/carpark/service/impl/SettingServiceImpl.java | UTF-8 | 3,881 | 2.4375 | 2 | [] | no_license | package com.donglu.carpark.service.impl;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import com.donglu.carpark.server.CarparkServerConfig;
import com.donglu.carpark.ser... | true |
96f85308bbf27c92ac583e200864e81de33577ab | Java | sreevidhyasethu/demogit | /src/main/java/com/example/demogit/DemogitApplication.java | UTF-8 | 422 | 1.679688 | 2 | [] | no_license | package com.example.demogit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemogitApplication {
public static void main(String[] args)
{
System.out.println("Git Demo Junior's commit!!!!");
System... | true |
02b3421dc91cda90359e4d76190ba2589b6c848c | Java | HappyTuesday/pipeline-playbook-core | /src/main/java/com/yit/deploy/core/inherits/Inherits.java | UTF-8 | 3,693 | 3.046875 | 3 | [
"MIT"
] | permissive | package com.yit.deploy.core.inherits;
import com.yit.deploy.core.collections.ReverseList;
import java.util.*;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
public class Inherits {
private Inherits() {
}
public static <T> List<T> descendingP... | true |
ecdb000f967fd1ef67e7c57debc2fcfefddb5ad2 | Java | marcello96/ViscaWeb | /src/main/java/pl/edu/agh/visca/cmd/ClearAllCmd.java | UTF-8 | 510 | 2.125 | 2 | [] | no_license | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package pl.edu.agh.visca.cmd;
public final class ClearAllCmd extends Cmd {
private static final byte[] clearAllCommandData = new byte[]{1, 0, 1};
public ClearAllCmd() {
super(true, true);
}
... | true |
3804b28abdbdca49444439f29a2b7e01c9673f80 | Java | CristianRP/VallasRosul | /app/src/main/java/com/gruporosul/vallasrosul/ui/PublicidadActivity.java | UTF-8 | 7,310 | 2.015625 | 2 | [] | no_license | package com.gruporosul.vallasrosul.ui;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.Snackbar;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;... | true |
ee698e3d82ddc0c2fe6721b4d89f70126fb61651 | Java | 439ED537979D8E831561964DBBBD7413/Knockwork | /app/src/main/java/com/pasistence/knockwork/ChatBox/fcm/MyFirebaseInstanceIDService.java | UTF-8 | 1,529 | 2.34375 | 2 | [] | no_license | package com.pasistence.knockwork.ChatBox.fcm;
import android.util.Log;
import android.widget.Toast;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
import com.sendbird.android.SendBird;
import com.sendbird.android.SendBirdException;
public class MyFirebase... | true |
eefc9851ab64c810115a118920afb14105f7768a | Java | alpapad/gilead-code | /gilead/tags/gilead-1.2.2/hibernate-util/src/net/sf/gilead/core/hibernate/spring/HibernateSpringUtil.java | UTF-8 | 1,611 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package net.sf.gilead.core.hibernate.spring;
import net.sf.gilead.core.hibernate.HibernateUtil;
import org.hibernate.SessionFactory;
import org.hibernate.ejb.HibernateEntityManagerFactory;
import org.springframework.aop.framework.AopProxy;
/**
* Spring handling of injected session factories
... | true |
a98c0a0192177cc6b76c0051f2c03d9c423be706 | Java | weishuai8888/source | /spring-boot/src/main/java/com/weishuai/controller/TestController.java | UTF-8 | 677 | 1.96875 | 2 | [] | no_license | package com.weishuai.controller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* spring-boot启动方式 1(打开注释)
* Cre... | true |
f908241c35db9199154107402441b828da092225 | Java | justjnr/G53MDP | /app/src/main/java/com/psyjjn/runningtracker/MainActivity.java | UTF-8 | 14,812 | 1.804688 | 2 | [] | no_license | package com.psyjjn.runningtracker;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.Manifest;
import android.content.ComponentName;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.cont... | true |
d3f07fb258aa757ff1a23ee779de52d1f3b6db86 | Java | liang14122/CGHVersion1.0 | /app/src/main/java/com/example/a16004118/cghversion10/Fragment/TabMedical.java | UTF-8 | 7,241 | 2.0625 | 2 | [] | no_license | package com.example.a16004118.cghversion10.Fragment;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
i... | true |
1b4863803efefd3fdc06ca13f70408be0756060f | Java | ricots/Sending-Animation-Example | /app/src/main/java/com/jaouan/sendinganimationexample/MainActivity.java | UTF-8 | 5,422 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.jaouan.sendinganimationexample;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.graphics.PointF;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.... | true |
8a2798d3f3c585f13983e31668cc8b582e72376e | Java | heylimepie/MvvmPractise | /base/src/main/java/com/limepie/mvvmandroid/base/BaseFragment.java | UTF-8 | 713 | 2.109375 | 2 | [] | no_license | package com.limepie.mvvmandroid.base;
import android.util.ArrayMap;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
public class BaseFragment extends Fragment {
ArrayMap<Class<?>, Object> viewModelArr = new ArrayMap<>();
p... | true |
597f4bce4837f88064295d76e597cd872e865f2e | Java | tiagofrbarbosa/StockHawk | /app/src/main/java/com/udacity/stockhawk/ui/DetailActivity.java | UTF-8 | 2,789 | 2.265625 | 2 | [] | no_license | package com.udacity.stockhawk.ui;
import android.content.ContentResolver;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;
import com.github.mikephil.c... | true |
e7849c4c05849befc2e4a0e61dc874e8fb5d0c9c | Java | wang-shun/common-utils-v2 | /src/main/java/com/youzan/sz/jutil/oss/ColorLogQueue.java | UTF-8 | 661 | 2.6875 | 3 | [] | no_license | package com.youzan.sz.jutil.oss;
import java.util.concurrent.BlockingQueue;
public class ColorLogQueue {
private static BlockingQueue<ColorLogItem> queue;
public static class ColorLogItem{
DataForColor data;
String log;
public ColorLogItem(DataForColor data,String log){
this.data = data;
this.log = lo... | true |
d0d6bda0bccd468685a69fe1575299f6ce412349 | Java | TouchFishPioneer/recruit | /src/main/java/cn/herculas/recruit/util/parser/StudentAccountParser.java | UTF-8 | 1,261 | 2.453125 | 2 | [] | no_license | package cn.herculas.recruit.util.parser;
import cn.herculas.recruit.data.DO.StudentAccount;
import cn.herculas.recruit.data.VO.StudentAccountVO;
import cn.herculas.recruit.form.StudentAccountForm;
public class StudentAccountParser {
public static StudentAccount formParser(StudentAccountForm studentAccountForm) {
... | true |
3a4792c7eb21be8c9f31236cf442f7e2fd213f29 | Java | mhlinoer/commonUtils | /src/main/java/com/linoer/app/utils/net/tcp/TCPServer.java | UTF-8 | 2,568 | 3.234375 | 3 | [] | no_license | package com.linoer.app.utils.net.tcp;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
//import java.util.concurrent.ExecutionException;
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//import java.util.concurrent.Future;
public class TCPServer {
// ... | true |
bdacbae34f108b5d41e87d4c72a40fa61ac1a66d | Java | sky20193/Photo-Album-JavaFX | /Photos56/src/controller/AdminController.java | UTF-8 | 5,354 | 2.96875 | 3 | [] | no_license | package controller;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.List;
import java.util.Optional;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fx... | true |
8b2e07687b37f0a5bdf2f59e76e4f45c986ffcaa | Java | KillianMeersman/Geometry-wars | /Main/src/howest/groep14/game/actor/health/HealthBehavior.java | UTF-8 | 396 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package howest.groep14.game.actor.health;
import howest.groep14.game.actor.SpriteActor;
public abstract class HealthBehavior {
protected SpriteActor owner;
public HealthBehavior(SpriteActor owner) {
this.owner = owner;
}
public abstract void damage(int damage);
public abstract HealthBeh... | true |
b513bc87b511d43feca17aa312739213fd1971f3 | Java | aws/aws-sdk-java | /aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/ActionExecutionOutput.java | UTF-8 | 10,838 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
e069f119b724661c225617b4cfbafdf396715643 | Java | jianghs/leetcode | /src/easy/a2_reverse_integer/ReverseInteger.java | UTF-8 | 1,868 | 4.03125 | 4 | [] | no_license | package easy.a2_reverse_integer;
/**
* Reverse digits of an integer.
* Example1: x = 123, return 321
* Example2: x = -123, return -321
* */
public class ReverseInteger {
public int reverse(int x) {
try {
int val = x;
if (x < 0) {
val = -x;
}
... | true |
a030ae42e60401875bf9204558b72ff721a4dd4d | Java | marinbilba/SEP3-PaperlessExam | /PaperlessExamWebService/src/main/java/com/group10/paperlessexamwebservice/service/SecurityService.java | UTF-8 | 192 | 1.695313 | 2 | [] | no_license | package com.group10.paperlessexamwebservice.service;
import org.springframework.security.crypto.password.PasswordEncoder;
public interface SecurityService {
PasswordEncoder encoder();
}
| true |
064b81a72e54a6129b657e5d2a82dd69a2e41790 | Java | Twinklinglight/CRMAndroid | /app/src/main/java/com/wtcrmandroid/activity/crm/MainClientLibrary.java | UTF-8 | 12,228 | 1.703125 | 2 | [] | no_license | package com.wtcrmandroid.activity.crm;
import android.content.Intent;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.PopupWindow;
import com.wtcrmandroid.base.BaseActivity;
import com.wtcrmandroid.R;
import com.wtcrm... | true |
6ced26f29f83f819c581178d27a232a27d149e21 | Java | youngzil/quickstart-remoting | /quickstart-netty/src/main/java/org/quickstart/netty/v4x/handler/ClientOutboundHandler1.java | UTF-8 | 1,111 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /**
* 项目名称:quickstart-netty
* 文件名:ServerOutboundHandler1.java
* 版本信息:
* 日期:2017年1月17日
* Copyright youngzil Corporation 2017
* 版权所有 *
*/
package org.quickstart.netty.v4x.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.Chan... | true |
eb1b82567d638c73300294820c68700cbd7dcd4b | Java | rakeshneon/unomi | /rest/src/main/java/org/oasis_open/contextserver/rest/SegmentServiceEndPoint.java | UTF-8 | 4,029 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.oasis_open.contextserver.rest;
/*
* #%L
* context-server-rest
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2014 - 2015 Jahia Solutions
* %%
* 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 ... | true |
cf0d09335cf2e4c47923b942dcb5cd0fcfc0902e | Java | bellmit/niukit | /niukit-basicutils/src/main/java/com/woshidaniu/basicutils/BooleanUtils.java | UTF-8 | 958 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | package com.woshidaniu.basicutils;
/**
*
*@类名称: BooleanUtil.java
*@类描述:布尔类型转换工具
*@创建人:kangzhidong
*@创建时间:2015-3-31 上午08:45:19
*@修改人:
*@修改时间:
*@版本号:v1.0
*/
public abstract class BooleanUtils extends org.apache.commons.lang.BooleanUtils{
public static boolean parse(String str){
//如果此字段为必选项,则验证此字段对应的列是否为空
... | true |
e66f2e5e017d8ee831f920c41d4c196aadc171cf | Java | RaspberryWallet/Backend | /Manager/src/main/java/io/raspberrywallet/manager/common/wrappers/Token.java | UTF-8 | 772 | 2.5625 | 3 | [] | no_license | package io.raspberrywallet.manager.common.wrappers;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import java.time.LocalDateTime;
@AllArgsConstructor
@Getter
@EqualsAndHashCode
public class Token {
@EqualsAndHashCode.Include
private String data;
/**
... | true |
d237de4cd5ac18b6551f5d22986cf3934eb729f3 | Java | shaoxiao709/java1 | /test/src/test/input.java | GB18030 | 1,270 | 2.96875 | 3 | [] | no_license | package test;
import java.util.Scanner;
public class input {
public static void main(String []args)
{
// System.out.println("");
// Scanner in = new Scanner(System.in);
// System.out.println("echo" + in.nextLine());
// System.out.println("2+3="+(2+3));
// int count = 0;
// int price = 0;
// Syst... | true |
88eb2410bc3107bd045a82031a00ff4fb91c8724 | Java | JKyte/ArtificialLife | /src/main/java/brains/refactoredNeural/RefactoredNeuron.java | UTF-8 | 2,245 | 3.140625 | 3 | [] | no_license | package brains.refactoredNeural;
import java.util.ArrayList;
/**
* Created by JKyte on 5/15/2016.
*/
public class RefactoredNeuron {
private String neuronID;
private ArrayList<RefactoredNeuron> inputs;
private double weight;
private double threshold;
private double multiplier;
private boole... | true |
0306683e44618d35f87f03027bccfb333229fda7 | Java | fengdeyingzi/mrppack | /src/MrpBuilderMain.java | UTF-8 | 189 | 1.796875 | 2 | [] | no_license | import com.xl.window.BuildWindow;
public class MrpBuilderMain {
public static void main(String[] args) {
BuildWindow window = new BuildWindow();
window.setVisible(true);
}
}
| true |
3952ca0c1c4f0952fc0c62ca448ababb2abf2091 | Java | jtarun/Practice | /src/main/java/com/jtarun/practice/leetcode/TopKFrequentElements.java | UTF-8 | 2,156 | 3.6875 | 4 | [] | no_license | package com.jtarun.practice.leetcode;
import java.util.*;
/** 347
* Given a non-empty array of integers, return the k most frequent elements.
*
* Note:
*
* You may assume k is always valid, 1 ≤ k ≤ number of unique elements.
* Your algorithm's time complexity must be better than O(n log n), where n is the array... | true |
38a323b5c26864eb82ed43bb8ee7966ea0f8c0fa | Java | Petchiprakash/Go-safe | /app/src/main/java/com/example/petchi/driveremergency/MapsActivity.java | UTF-8 | 12,382 | 1.8125 | 2 | [] | no_license | package com.example.petchi.driveremergency;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedP... | true |
05caa5fe06239fd3c551de8b6f77723badd2a68f | Java | Youcef-OB/Bataille-Navale | /src/jeu/Board.java | ISO-8859-1 | 3,164 | 3.53125 | 4 | [] | no_license | package jeu;
public class Board {
int[][] board;
// Creer une grille vide
public Board() {
board = new int[10][10];
}
public Board(int[][] board) {
this.board = board;
}
// Affiche la grille actuel
public String affichage() {
String res = "";
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10... | true |
6ce50e79046c6a3b90774194f73767e1fb98e999 | Java | zsumore/restsql-app | /src/main/java/org/restsql/core/impl/SqlResourceImpl.java | UTF-8 | 11,318 | 1.75 | 2 | [
"MIT"
] | permissive | package org.restsql.core.impl;
import java.math.BigDecimal;
import java.text.Format;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import mq.restful.util.RestUtil;
import org.geotools.data.jdbc.FilterToSQLException;
import org.geotools.filte... | true |
22bd9b041904fd98f3bfe6021f4192fd2a5579a3 | Java | lkoloda/githubapi | /src/main/java/com/testTask/gitapp/controller/TestController.java | UTF-8 | 1,677 | 2.28125 | 2 | [] | no_license | package com.testTask.gitapp.controller;
import com.testTask.gitapp.domain.Message;
import com.testTask.gitapp.repository.MessageRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind... | true |
21e74c5f0da83f52d837173e097c1fbb4f4c9670 | Java | chernikovalexey/MondayShooter | /src/com/twopeople/game/Main.java | UTF-8 | 1,568 | 2.921875 | 3 | [] | no_license | package com.twopeople.game;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public clas... | true |
d7015f309fd41036be0e0f84979e9dba84f9c0a9 | Java | skeyse/OOP | /OOP/NetBeansProjects/SeanTest6/src/seantest6/SeanTest6.java | UTF-8 | 740 | 3.3125 | 3 | [] | no_license | package seantest6;
import java.util.ArrayList;
import java.util.List;
public class SeanTest6 {
public static void main(String[] args) {
String[] stringArray = new String[5];
for(int i = 0; i < stringArray.length; i++) {
stringArray[i] = "Element " + (i + 1);
}
... | true |
184f86fa5ef486233b0f92aa3c93021a1b1ca1e8 | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_ffae51005434e3dca0c9a027c69220a418daf3aa/SonosZonePlayer/16_ffae51005434e3dca0c9a027c69220a418daf3aa_SonosZonePlayer_t.java | UTF-8 | 45,957 | 1.59375 | 2 | [] | no_license | package org.openhab.binding.sonos.internal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.Duration;
... | true |
3d43e2fb6f490708060fe7370d6ca6a9e3552561 | Java | jjmnbv/km_dev | /kmzyc-product/kmzyc-product-web/src/main/java/com/pltfm/app/action/ProductSkuAction.java | UTF-8 | 7,096 | 1.867188 | 2 | [] | no_license | package com.pltfm.app.action;
import com.google.common.collect.Lists;
import com.kmzyc.commons.page.Page;
import com.opensymphony.xwork2.Action;
import com.pltfm.app.bean.ResultMessage;
import com.pltfm.app.service.CmsProductUpShelfService;
import com.pltfm.app.service.ProductRelationService;
import com.pltfm.... | true |
a29dfb3b46bed98a44b363204553f1827c74f0ed | Java | tomohiron/n-tomohiro | /sandbox/src/sandbox/jna/JNASampleDM.java | UTF-8 | 456 | 2.34375 | 2 | [] | no_license | package sandbox.jna;
import com.sun.jna.Native;
import com.sun.jna.Platform;
public class JNASampleDM {
static {
Native.register(Platform.isWindows() ? "msvcrt" : "m");
}
public static native double cos(double x);
public static native double sin(double x);
public static ... | true |
01747ed8df811dc84701d368330fbe92542a120f | Java | xueyanmin/deeplearning4j | /rl4j/rl4j-core/src/main/java/org/deeplearning4j/rl4j/observation/Observation.java | UTF-8 | 2,735 | 2.3125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"MIT",
"BSD-3-Clause"
] | permissive | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | true |
2fab7b9b7d1b625c4f8e0f2962869f21054f5151 | Java | RaniaBOLTANE/ENSI_SmartLockerApp | /src/main/java/com/ensi/smartlocker/repositories/MaterielRepository.java | UTF-8 | 628 | 1.992188 | 2 | [] | no_license | package com.ensi.smartlocker.repositories;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.ensi.smartlocker.domain.Materiel;
public interface MaterielRepositor... | true |
e5110fabf29e2b96e8ffa33f2f212ebaf1cd17a1 | Java | LoooooG/youyou | /app/src/main/java/com/hotniao/video/fragment/billRecord/HnBillSendFragment.java | UTF-8 | 5,859 | 1.765625 | 2 | [] | no_license | package com.hotniao.video.fragment.billRecord;
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.view.ViewGroup;
import com.hn.library.base.BaseFragment;
import com... | true |
411ec72877dfd2fe97c2d30dbf9f244ffc0e30ec | Java | VB6Hobbyst7/VoxelGamesLib | /api/src/main/java/me/minidigger/voxelgameslib/api/event/Cancelable.java | UTF-8 | 640 | 2.625 | 3 | [
"MIT"
] | permissive | package me.minidigger.voxelgameslib.api.event;
/**
* Represents a cancelable event
*/
public interface Cancelable {
/**
* Sets the cancellation state of this event. A cancelled event will not be executed in the
* server, but will still pass to other plugins.
*
* @param canceled true if you w... | true |
9b80044828e7cf968e530ac265707c3c226aec77 | Java | salmanshaikh733/TextFileCompressor | /src/Decompress.java | UTF-8 | 2,222 | 3.203125 | 3 | [] | no_license | //Author: mshaikh52 StudentNumber: 250959996, Created 2018/02/05. Professor Roberto Solis-Oba
//compression algorithm, will take a text file and convert to binary and store in another file
public class Decompress {
public static void main(String[] args) {
String inputFileName = args[0];
Str... | true |
fd8f55975fd445de1705abd48ed0a9d216873b29 | Java | Eldhopj/ArchitectureComponentsSample | /app/src/main/java/com/eldhopj/architecturecomponentssample/MainActivity.java | UTF-8 | 7,435 | 2.671875 | 3 | [] | no_license | package com.eldhopj.architecturecomponentssample;
/**Commit 1&2:
* Add room dependencies
* Create a db model class with @Entity annotation
* Create a @DAO interface (TaskDao)
* Create a Database abstract class (AppDatabase)
* Saving into DB (AddTaskActivity)
* ... | true |
07605905d60efb2808c22c76cf0c1da2800c9878 | Java | RedGry/ITMO | /Web programming/Lab_3/src/main/java/Utils/DBManager.java | UTF-8 | 1,304 | 2.640625 | 3 | [] | no_license | package Utils;
import model.Dot;
import javax.enterprise.inject.Model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@Model
public class DBManager implements Serializable {
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFact... | true |
d9f6f52dd5f6cd8523af3262236b6c97b225e381 | Java | bhavinpatelpune/java8samplecode | /src/com/Java8SEII/OCP/Samples/DequeExample.java | UTF-8 | 1,084 | 3.921875 | 4 | [] | no_license | package com.Java8SEII.OCP.Samples;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Queue;
public class DequeExample {
public static void main(String[] args) {
Deque<Integer> nums = new ArrayDeque<>();
nums.add(1000);
nums.push(2000);
nums.add(3000);
nums.push(4000);
Integer i... | true |
815f29cb0b37056a0e9c75fde8be2955119983bf | Java | hojohe/bit-java | /00_board_prj/src/kr/co/mlec/login/Login.java | UTF-8 | 1,720 | 2.328125 | 2 | [] | no_license | package kr.co.mlec.login;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ja... | true |
a7a11d569764912d1f28c189aa0501c37ea8a4a0 | Java | saudet/tensorflow-java | /tensorflow-framework/src/test/java/org/tensorflow/framework/op/NnOpsTest.java | UTF-8 | 2,483 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package org.tensorflow.framework.op;
import org.junit.jupiter.api.Test;
import org.tensorflow.Operand;
import org.tensorflow.framework.utils.TestSession;
import org.tensorflow.op.Ops;
import org.tensorflow.types.TFloat32;
import org.tensorflow.types.TInt32;
class NnOpsTest {
private final TestSession.Mode[] tfModes... | true |
d642edce88c3315e242c98473c043dff445bed68 | Java | AnPiakhota/serveiler | /serveiler-core/src/main/java/com/itsm/controller/bridge/ComUtil.java | UTF-8 | 184 | 1.5625 | 2 | [] | no_license | package com.itsm.controller.bridge;
/**
* Created by anpiakhota on 13.12.16.
*/
public class ComUtil {
public static byte[] toBytes(String str) {
return null;
}
}
| true |
4d3acca9afd77178e597e582ff9f536c70a6049b | Java | joshieholt/invoicify | /src/main/java/com/theironyard/invoicify/controllers/UserController.java | UTF-8 | 3,292 | 2.515625 | 3 | [] | no_license | package com.theironyard.invoicify.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annota... | true |
5d1d387babbf00c8045e234d95bf06b748231d05 | Java | gwk1123/airlines-crawler | /src/main/java/com/crawler/api/response/Changes.java | UTF-8 | 2,446 | 2.03125 | 2 | [] | no_license | package com.crawler.api.response;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* Created by yangdehua on 10/26/16.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Changes implements Serializable{
private static final lo... | true |
bb0a9edf93dc690eaa066c97305b512ce71d32ea | Java | android/tv-samples | /LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/cards/presenters/SingleLineCardPresenter.java | UTF-8 | 1,769 | 2.140625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 ... | true |
0bffe6c18df35f93010b05474c2cf49c502a8d77 | Java | jackluoooo/java10 | /src/main/java/com/luo/demo/SupportlibraryDemo/ThreadLocalDemo.java | UTF-8 | 1,607 | 3.4375 | 3 | [] | no_license | package com.luo.demo.SupportlibraryDemo;
/**
* @author:罗金星 date 2018/11/21 14:40
* 核心资源多线程并发访问
**/
public class ThreadLocalDemo {
public static void main(String[] args) {
new Thread(()->{
Message message = new Message();
message.setInfo("第一个线程Hello !!!!!!");
Channel.s... | true |
7f50af34a21f18b6172033c69a3bbe7bf500c28b | Java | zyjy33/chiDing | /app/src/main/java/com/yunsen/enjoy/adapter/ImageAndTextAdapter.java | UTF-8 | 1,046 | 2.125 | 2 | [] | no_license | package com.yunsen.enjoy.adapter;
import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.yunsen.enjoy.R;
import com.yunsen.enjoy.model.TradeData;
import com.yunsen.enjoy.model.UsedFunction;
import com.yunsen.enjoy.widget.recyclerview.CommonAdapter;
import com.yuns... | true |
91c8eb3c85c8bf95e6c89c3cb4e0398b7f9dbf6b | Java | xiufengliu/CloudETL | /src/dk/aau/cs/cloudetl/hadoop/fs/FSUtil.java | UTF-8 | 26,219 | 2.03125 | 2 | [] | no_license | /*
*
* Copyright (c) 2011, Xiufeng Liu (xiliu@cs.aau.dk) and the eGovMon Consortium
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... | true |
c23f99ab26219a8117ec79a34cbea887833c6d1c | Java | oleh1309/EpamTestAutomation_Java | /less3_oop_part1/src/main/java/epam/model/ElectricalApplianse.java | UTF-8 | 1,357 | 3.15625 | 3 | [] | no_license | package epam.model;
/**
* ElectricalApplianse class.
*/
public class ElectricalApplianse implements Comparable{
/**name field.*/
private String name;
/**switchOn field.*/
private boolean switchOn;
/**power field.*/
private int power;
/**
* Constructor ElectricalApplianse
* @param name name.
* @param ... | true |
d37663136ea81d52aa103d8494ef89182f8086ee | Java | 151706061/Weasis | /weasis-dicom/weasis-dicom-codec/src/main/java/org/weasis/dicom/codec/SortSeriesStack.java | UTF-8 | 5,310 | 2.015625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2016 Weasis Team and others.
* 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 avail... | true |
beeb583174e3288f66466e4d5380dfdaac7e8e30 | Java | programacion-taw-utpl-001/manejo-de-excepciones-CR54DF | /Excepciones/src/excepciones/div2.java | UTF-8 | 1,004 | 3.265625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package excepciones;
import java.util.Scanner;
/**
*
* @author crsyhian
*/
public class div2 {
public static void main(String... | true |
179a4f607d9345d43fdca435379acc8ff8e3001c | Java | KalinkinaMaria/VisualizationMethodsChooser | /src/window/Dialog.java | UTF-8 | 902 | 2.53125 | 3 | [] | no_license | package window;
import javafx.fxml.FXMLLoader;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.io.IOException;
/**
* Created by mashy on 23-May-17.
*/
public abstract class Dialog implements DialogControllerEventListener{
protected Stage dialogStage;
protected Stage parentStage;
pr... | true |
9eca0638aec25cfd9ad2111b0996dc318108a520 | Java | yuasyfffz/yuyesBlog | /Blog/src/main/java/com/yuye/ssm/blog/controller/admin/AdminController.java | UTF-8 | 8,838 | 2.015625 | 2 | [] | no_license | package com.yuye.ssm.blog.controller.admin;
import com.yuye.ssm.blog.dto.JsonResult;
import com.yuye.ssm.blog.entity.Article;
import com.yuye.ssm.blog.entity.Comment;
import com.yuye.ssm.blog.entity.User;
import com.yuye.ssm.blog.enums.UserRole;
import com.yuye.ssm.blog.service.ArticleService;
import com.yuye.ssm.blog... | true |
1f6fb226d87b35411d6c087dd8c418901868958e | Java | ymhdlmmy/iot-device-java | /explorer/explorer-device-face/src/main/java/com/tencent/iot/explorer/device/face/data_template/TXFaceKitTemplate.java | UTF-8 | 9,226 | 2.03125 | 2 | [] | no_license | package com.tencent.iot.explorer.device.face.data_template;
import android.content.Context;
import com.tencent.iot.explorer.device.android.data_template.TXDataTemplate;
import com.tencent.iot.explorer.device.android.mqtt.TXMqttConnection;
import com.tencent.iot.explorer.device.android.utils.TXLog;
import com.tencent.... | true |
e3f495637bf84b6e73dee7070d0fcf74b4872cf0 | Java | alexandrudsc/University-timetable-Android | /app/src/main/java/com/developer/alexandru/orarusv/view_pager/OnCourseClickListener.java | UTF-8 | 742 | 2.3125 | 2 | [] | no_license | package com.developer.alexandru.orarusv.view_pager;
import android.util.Log;
import android.view.View;
import com.developer.alexandru.orarusv.data.Course;
import com.developer.alexandru.orarusv.main.TimetableFragment;
/** Created by alexandru on 9/16/16. */
public class OnCourseClickListener implements View.OnClickL... | true |
702243a9af4429a7c19c2a58c61251f7ad664990 | Java | eecping/OSU_CSE_1223_2123 | /1223_03.java | UTF-8 | 2,830 | 4.21875 | 4 | [] | no_license | /**
* Project03.java
* This project will prompt the user to enter their name, then greet them.
* Then it will ask them to answer a series of math questions, telling them whether they are correct or wrong.
* Finally, it will tell them how many they got right, and what percentage they earned.
*
* @version 2017091... | true |
1c6ba38339d69b931c065365e1500e8d154a261b | Java | dlpezbel/pasaLaFrontera | /src/main/java/pasalafrontera/handlers/EsLaLetraRequestHandler.java | UTF-8 | 1,766 | 2.234375 | 2 | [] | no_license | package pasalafrontera.handlers;
import com.amazon.ask.dispatcher.request.handler.HandlerInput;
import com.amazon.ask.dispatcher.request.handler.RequestHandler;
import com.amazon.ask.model.IntentRequest;
import com.amazon.ask.model.Response;
import com.amazon.ask.model.Slot;
import com.amazon.ask.request.Predicates;
i... | true |
08d6c72424605aa352e5b40783005856946ac2ba | Java | dz269375933/leetcode | /Solution20/src/Solution.java | UTF-8 | 948 | 3.125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Solution {
public boolean isValid(String s) {
if (s.equals(""))return true;
Map map =new HashMap();
map.put("(",")");
map.put("{","}");
map.put("[","]");
... | true |
e81142cae41881458000a487fb5d102a482f68f5 | Java | GolikovDS/ArtsokShopV5 | /src/main/java/ru/artsok/dao/implementes/OrderDaoImpl.java | UTF-8 | 1,573 | 2.140625 | 2 | [] | no_license | package ru.artsok.dao.implementes;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import ru.artsok.dao.entitys.Order;
import ru.artsok.dao.entitys.Orders;
import ru.artsok.dao.ent... | true |
66ca931a80e1a132bd3a462d8a94a4bbff6fbb3b | Java | SAI221/javaProgramz | /src/com/bridgelabz/functionalPrgms/CoinGame.java | UTF-8 | 608 | 3.28125 | 3 | [] | no_license | /*Flip Coin and print percentage of Heads and Tails
I/P -> The number of times to Flip Coin. Ensure it is positive integer.
Logic -> Use Random Function to get value between 0 and 1. If < 0.5 then tails or heads
O/P -> Percentage of Head vs Tails*/
package com.bridgelabz.functionalPrgms;
import com.bridgelabz.javaprgm... | true |