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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a564ca747a1729aeca89931badb26f98894fa79c | Java | 00010216/News | /app/src/main/java/com/example/kcruz/gamenews/fragments/ImagesFragment.java | UTF-8 | 2,303 | 2.390625 | 2 | [] | no_license | package com.example.kcruz.gamenews.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;... | true |
c72469e9cfbe4567502e98d1c398669ba926fff4 | Java | 84828482/prospectos | /src/main/java/com/santander/crm/sinergia/response/ConsultaProspectosRes.java | UTF-8 | 1,119 | 1.921875 | 2 | [] | no_license | package com.santander.crm.sinergia.response;
import java.util.List;
import org.springframework.http.HttpStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.santander.crm.sinergia.entity.Prospecto;
public class ConsultaProspectosRes {
private List<Prospecto> prospectos;
private Long total;
p... | true |
01352c43259f5cc0d914abe57f7dca4b8c006ebc | Java | globant-bootcamp/bootcamp-java-august-2021 | /MiguelAngelVidalLiborio/Dia7-31Agosto/gradleproject/app/src/main/java/com/exercises/CurrencyFormatter.java | UTF-8 | 967 | 3.09375 | 3 | [] | no_license | package com.exercises;
import org.apache.log4j.Logger;
import org.apache.log4j.chainsaw.Main;
import java.util.Scanner;
import java.text.NumberFormat;
import java.util.Locale;
public class CurrencyFormatter {
public static final Scanner SCAN = new Scanner(System.in);
public static final Logger log = Logger.getLogg... | true |
8de86537128ce8048896237984e09bbcdfbcba68 | Java | saaspeter/online_learn | /saasNetTest/platform/src/platform/user/logic/AccountvalidatetaskLogic.java | UTF-8 | 408 | 1.765625 | 2 | [] | no_license | package platform.user.logic;
public interface AccountvalidatetaskLogic {
public String generateActiveTask(Long userid, String email, String validatetype, Integer aliveday);
/**
* 根据email更新用户密码,主要是为了忘记密码的case
* @param oldpass
* @param newpass
* @param userid
*/
public void saveReset... | true |
e17f6f7bf964115728d69b806efd24441e22392d | Java | xuxia0914/javaLearning | /algorithm/src/cn/xux/algorithm/leetcode/general/midium/CheckCompletenessOfABinaryTree.java | UTF-8 | 2,171 | 3.8125 | 4 | [] | no_license | package cn.xux.algorithm.leetcode.general.midium;
import cn.xux.algorithm.common.TreeNode;
import java.util.LinkedList;
import java.util.Queue;
/**
* 958. 二叉树的完全性检验
* 给定一个二叉树,确定它是否是一个完全二叉树。
* 百度百科中对完全二叉树的定义如下:
* 若设二叉树的深度为 h,除第 h 层外,其它各层 (1~h-1) 的结点数都达到最大个数,
* 第 h 层所有的结点都连续集中在最左边,这就是完全二叉树。(注:第 h 层可能包含 1~ 2h 个节点。... | true |
ebc07b25027073f499688ffe121e07018db0d945 | Java | cHaO5/file-system | /src/model/OpenFile.java | UTF-8 | 1,396 | 2.59375 | 3 | [] | no_license | package model;
//被打开的文件序列
public class OpenFile {
private String fileName;
private FileType fileAttribute;
private int diskNumber;
private int length;
private int flag;
public OpenFile() {
fileName = new String();
diskNumber = -1;
length = 0;
flag = 0;
}
... | true |
2ecb25f962f8aef7248a262787fcad9dcb3678f5 | Java | shenzhenMirren/VX-API-Gateway | /src/main/java/com/szmirren/vxApi/spi/customHandler/VxApiCustomHandlerFactory.java | UTF-8 | 2,524 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.szmirren.vxApi.spi.customHandler;
import java.util.ArrayList;
import java.util.List;
import com.szmirren.vxApi.core.common.StrUtil;
import com.szmirren.vxApi.core.entity.VxApis;
import com.szmirren.vxApi.spi.customHandler.impl.GetConstantValueHandler;
import com.szmirren.vxApi.spi.customHandler.im... | true |
74eba74a5d7869c8e7799bae4a880b09587833d3 | Java | srwaggon/mocha | /mocha-server/src/main/java/mocha/net/ServerNetConfiguration.java | UTF-8 | 413 | 1.90625 | 2 | [] | no_license | package mocha.net;
import com.google.common.collect.Maps;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Map;
import mocha.net.packet.MochaConnection;
@Configuration
public class ServerNetConfiguration {
@Bean
public Map<Intege... | true |
8b30f963424257de0e31087c04c3759d75a2a1f0 | Java | ZuzannaDomaracka2/projekt | /app/src/main/java/com/example/projekt/LocationWeatherActivity.java | UTF-8 | 3,227 | 2.390625 | 2 | [] | no_license | package com.example.projekt;
import androidx.appcompat.app.AppCompatActivity;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.Toolbar;
import retrofit2.Call;
import retrofit2.Callback... | true |
9cf46431f426505b8a421f958279a1cdb0c731ec | Java | Zedd0202/Java | /Week1/src/aaa.java | UTF-8 | 99 | 1.515625 | 2 | [] | no_license |
public class aaa {
public static int a = 0;
public static void setA(){
a++;
}
}
| true |
b4857aec27fa0ccd3fd6c7a15ba9dc8d222ae909 | Java | haxuansang/TopQuotesHay | /app/src/main/java/com/appproteam/sangha/topquoteshay/fragments/AllQuotesFragment.java | UTF-8 | 1,828 | 2.109375 | 2 | [] | no_license | package com.appproteam.sangha.topquoteshay.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
imp... | true |
f65b49b01c39784cfac34acc34989140ab6c5e0d | Java | FantomNexx/tracker-app-android | /app/src/main/java/com/fantomsoftware/tracker/data/AppData.java | UTF-8 | 16,134 | 1.570313 | 2 | [] | no_license | package com.fantomsoftware.tracker.data;
import android.app.AlarmManager;
import android.app.Application;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
i... | true |
4f7776dd83c08823a56f4947cff974847587a7a9 | Java | K-Meech/RegistrationTree | /src/test/java/Test16Bit.java | UTF-8 | 646 | 2.0625 | 2 | [
"MIT"
] | permissive | import de.embl.schwab.registrationTree.ui.RegistrationCommand;
import java.io.File;
public class Test16Bit {
public static void main( String[] args ) {
RegistrationCommand command = new RegistrationCommand();
command.fixedImageXml = new File("C:\\Users\\meechan\\Documents\\temp\\test_sbem\\test_n5... | true |
a563d41223fa2190bd6a3506ba58bcca66e7d70d | Java | huang-shaowei/INFO_7275 | /Homework/Homework6/part3/part3/Driver.java | UTF-8 | 1,497 | 2.28125 | 2 | [] | no_license | package part3;
import java.net.URI;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.filecache.DistributedCache;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce... | true |
bafd70862ed2d95fd352cc30f3a06d36da4103c1 | Java | HackUVACapitalOne/MoneyReport | /src/main/java/com/example/demo/model/captialone/Customer.java | UTF-8 | 925 | 2.515625 | 3 | [] | no_license | package com.example.demo.model.captialone;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Customer {
private String _id;
private String first_name;
private String last_name;
private Address address;
public Customer() {
... | true |
f398ad29751abae0f3a25006dfbf2ecc61efdc82 | Java | League-Level0-Student/level-0-module-2-Wkwak | /src/random/LotteryNumbers.java | UTF-8 | 485 | 3.015625 | 3 | [] | no_license | package random;
import java.util.Random;
import javax.swing.JOptionPane;
public class LotteryNumbers {
public static void main(String[] args) {
Random rand = new Random();
int lottery1 = rand.nextInt(100);
int lottery2 = rand.nextInt(100);
int lottery3 = rand.nextInt(100);
int lottery4 = rand.nextInt(100... | true |
6050f17efff11574d9a7c1cb3da863f2a6f58f2a | Java | Cuculidae/Learn | /java/algs4/2.1/SortCompare.java | UTF-8 | 4,291 | 3.78125 | 4 | [] | no_license | /*
* Sort N random real numbers, T times using the two
* algorithms specified on the command line.
*
* Execution: java SortCompare [alg1, alg2...] N T
* Dependencies: Selection.java, Insertion.java, Shell.java, Merge.java, Quick.java, Heap.java
* MergeX.java, Quick3way.java, MergeBU.java, QuickX.jav... | true |
5033df3dbe9ee4819ac8298aa4d19f2a216b7775 | Java | YuliiaFox/HW5 | /src/view/View.java | UTF-8 | 1,621 | 3.1875 | 3 | [] | no_license | package view;
import model.Airline;
import model.CivilAirplane;
import java.util.List;
public class View {
public static final int CALCCAPACITY = 1;
public static final int SORTAIRPLANES = 2;
public static final int FINDAIRPLANE = 3;
public static void showMenu() {
System.out.println("1.Coun... | true |
d524f07be766d0903d4c5c9fcef322c56149cb71 | Java | evanjs97/DistributedFileSystem | /src/main/java/cs555/dfs/util/Heartbeat.java | UTF-8 | 541 | 2.5625 | 3 | [] | no_license | package cs555.dfs.util;
import cs555.dfs.messaging.ChunkServerHeartbeatTask;
import cs555.dfs.messaging.HeartbeatTask;
public class Heartbeat implements Comparable<Heartbeat>{
private final long time;
private final HeartbeatTask task;
public Heartbeat(long time, HeartbeatTask task) {
this.time = time;
this.t... | true |
2e1eeb831e11b386d2ffebe6cb8a26340198b4b4 | Java | murongbaoer/- | /healthmobile_web/src/main/java/com/itheima/health/controller/SetmealMobilController.java | UTF-8 | 2,668 | 2.203125 | 2 | [] | no_license | package com.itheima.health.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.itheima.health.constant.MessageConstant;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.Setmeal;
import com.itheima.h... | true |
f6d6021b16e6619efb150a0ab012de8971058146 | Java | sercasti/CreditCardApp | /src/main/java/wasdev/sample/servlet/CreditCardController.java | UTF-8 | 545 | 2.046875 | 2 | [] | no_license | package wasdev.sample.servlet;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import creditCards.entity.CreditCard;
import creditCards.repository.Credit... | true |
19de3425122f7fd3ae6ed8b9544a31fa74549aab | Java | aravinth-itsme/marsRover-Java | /plateau/Plateau.java | UTF-8 | 138 | 2.453125 | 2 | [] | no_license | package plateau;
public class Plateau{
public static int px, py;
public Plateau(int x, int y){
this.px = x;
this.py = y;
}
} | true |
fd6fc9e7574e4fead2f8a437614c31ad1e8c841a | Java | luongtuanlinh/Militia | /main/entities/characters/heroes/Archer.java | UTF-8 | 1,970 | 3.109375 | 3 | [] | no_license | package main.entities.characters.heroes;
import java.util.ArrayList;
import main.helpers.Config;
import main.helpers.Position;
public class Archer extends Hero {
public Archer(Position pos) {
super(pos);
}
@Override
public void calMoveArea() {
int x = getCurPosition().getX();
... | true |
c4f98537a4df5b18e4980e72afd33c445d8b992d | Java | zhangzikuo/sso-auth-center | /sso-auth-center-service/sso-auth-center-admin/src/main/java/com/sso/AuthCenterAdminApplication.java | UTF-8 | 899 | 1.890625 | 2 | [] | no_license | /**
* Copyright ( @程序员小强 ) All Rights Reserved.
* 博客地址:https://blog.csdn.net/qq_38011415
*/
package com.sso;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import ... | true |
af7e4faa1002f1eadf6eca143861d14868d01a7c | Java | zlc921022/easy_component | /module/module_jetpack/src/main/java/com/xiaochen/module/jetpack/RoomActivity.java | UTF-8 | 4,785 | 2.40625 | 2 | [] | no_license | package com.xiaochen.module.jetpack;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.xiaochen.common.base.BaseActivity;
import com.xiaochen.module.jetpack.room.AppDataB... | true |
5f36c88750991e83d26bc754a268a149356d456c | Java | victorhugolgr/Projeto-Android-Test-Serve | /rest-web/src/br/edu/devmedia/domain/Pessoa.java | UTF-8 | 372 | 2.28125 | 2 | [] | no_license | package br.edu.devmedia.domain;
import java.util.List;
public class Pessoa {
private String nome;
private List<Pessoa> filhos;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public List<Pessoa> getFilhos() {
return filhos;
}
public void setFilhos(L... | true |
6978e0af0234b11e95445c726599c75abcfc74ec | Java | css4j/echosvg | /echosvg-test/src/test/java/io/sf/carte/echosvg/util/ThreadPounderTest.java | UTF-8 | 1,474 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | /*
See the NOTICE file distributed with this work for additional
information regarding copyright ownership.
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.... | true |
ba556202303a29b4f8a2fb78272b4c7288a0ce89 | Java | ellenchenzl/Snooze-Schedule-System | /src/main/java/com/oregonstate/snooze/controller/ScheduleGroupSettingController.java | UTF-8 | 1,724 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.oregonstate.snooze.controller;
import com.oregonstate.snooze.model.GroupSchedule;
import com.oregonstate.snooze.service.GroupScheduleService;
import com.oregonstate.snooze.utils.StaticStrings;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
422d0b18b9d42f3253cc513cbc3b04aacd022fe9 | Java | RoyZeng/gmhx | /.svn/pristine/8f/8fc0057332bb38e37d5b815e8ba5065af8afa551.svn-base | UTF-8 | 962 | 1.679688 | 2 | [] | no_license | package com.gome.gmhx.dao.sysconfig;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.gome.common.page.Page;
import com.gome.gmhx.entity.HXPositionMapping;
@Repository("hxPositionMappingDao")
public interface HxPositionMappingDao {
List<Map<String, Object>... | true |
ea7de60c5b4516125751b0c69e56394aedc354cb | Java | Rohzek/BrumocksGame | /src/cf/brumock/firstproject/game/items/Armor.java | UTF-8 | 289 | 2.453125 | 2 | [
"MIT"
] | permissive | package cf.brumock.firstproject.game.items;
public class Armor extends Item
{
public enum Slot
{
HEAD,
SHOULDERS,
CHEST,
ARMS,
WRISTS,
LEGS,
FEET
}
public int armorRating;
public Armor(String name, double value, float weight)
{
super(name, value, weight);
}
}
| true |
da29415463a1bce4537f7cce463f289c83e7fd05 | Java | reimapet/StatJsonBridge | /src/main/java/com/affecto/jsonstat/config/DimensionCategory.java | UTF-8 | 1,220 | 1.960938 | 2 | [] | no_license | package com.affecto.jsonstat.config;
import com.affecto.jsonstat.blocks.IndividualDimensionUnitBlock;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Map;
import java.util.List;
import static com.fasterxml.jackson.annotati... | true |
b922e25322e6e33ff4efb8a00cde177f231380b2 | Java | baovevni/SeleniumUdemy | /src/demos/NewAccount.java | UTF-8 | 5,429 | 2.5 | 2 | [] | no_license | package demos;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class NewAccount {
public static void ma... | true |
50b84b72879fcf6f3112444edef9e45f067c225c | Java | Vannaly/AO2 | /AO-war/src/java/packageServlet/Servlet.java | UTF-8 | 57,484 | 1.921875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package packageServlet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.... | true |
0c6fd8cfa4df15281b701de0c76c2deced9b3622 | Java | evoleht/learn | /learning/src/main/java/com/evoleht/thread/threadpool/ThreadLocal/Worker.java | UTF-8 | 318 | 2.875 | 3 | [] | no_license | package com.evoleht.thread.threadpool.ThreadLocal;
public class Worker extends Thread{
String name;
Person person;
Worker(Person person, String name) {
this.person = person;
this.name = name;
}
@Override
public void run() {
this.person.setName(this.name);
this.person.print();
}
}
| true |
0f32e7ffb882d86efa973528c7a81b639dd986da | Java | hchaas/AnimalAgeService | /src/animalageservice/AnimalAgeService.java | UTF-8 | 849 | 3.15625 | 3 | [] | no_license |
package animalageservice;
public class AnimalAgeService {
private AnimalAgeCalculator animalAgeCalculator;
public AnimalAgeService (AnimalAgeCalculator animalAgeCalculator){
this.setAnimalAgeCalculator(animalAgeCalculator);
}
public final AnimalAgeCalculator getAnimalAgeCal... | true |
f9a67868178cfbf658f57c0b3db60bf32212305b | Java | ccmikechen/Tread_on_Health | /src/data/DataGetterInterface.java | UTF-8 | 147 | 1.765625 | 2 | [] | no_license | package data;
/**
* Created by kuasmis on 15/6/25.
*/
public interface DataGetterInterface {
public void dataCallBack(float[] signals);
}
| true |
709f277f34006127a597d6158b0eaa70a3b910a8 | Java | TCC-PUC-MG/src | /segComunicacao/src/main/java/br/com/sca/segcomunicacao/repository/OrgaoGovernoRepository.java | UTF-8 | 480 | 1.828125 | 2 | [] | no_license | package br.com.sca.segcomunicacao.repository;
import br.com.sca.segcomunicacao.domain.OrgaoGoverno;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
/**
* Spring Data MongoDB repository for ... | true |
876dbedf9af18868ca9eab9d536c19e2b9a3b5bd | Java | GiHwan123/Giant-Dish | /src/test/java/com/example/demo/ServiceTest/ChecklistServiceTest.java | UTF-8 | 3,427 | 2.03125 | 2 | [] | no_license | package com.example.demo.ServiceTest;
import com.example.demo.domain.*;
import com.example.demo.repository.*;
import com.example.demo.service.ChecklistService;
import com.example.demo.service.FoodService;
import com.example.demo.service.MemberService;
import com.example.demo.service.OrderService;
import org.junit.Test... | true |
d387238249403bdb3633550a9d8d513c7a55dbdd | Java | cabralRodrigo/fluidania | /src/main/java/br/com/cabralrodrigo/mc/fluidania/common/block/BlockManaInfuser.java | UTF-8 | 1,703 | 1.820313 | 2 | [
"MIT"
] | permissive | package br.com.cabralrodrigo.mc.fluidania.common.block;
import br.com.cabralrodrigo.mc.fluidania.client.list.ModSprites;
import br.com.cabralrodrigo.mc.fluidania.common.lib.LibBlockNames;
import br.com.cabralrodrigo.mc.fluidania.common.lib.LibMod;
import br.com.cabralrodrigo.mc.fluidania.common.tile.TileEntityMan... | true |
8c2015b26016ef4a3b833a43b67e5d920c01e747 | Java | eseev-german/revol-home-task | /src/test/java/integration/revol/home/task/api/ApiGettingAllAccountsTest.java | UTF-8 | 2,362 | 2.34375 | 2 | [] | no_license | package integration.revol.home.task.api;
import io.restassured.common.mapper.TypeRef;
import io.restassured.response.ValidatableResponse;
import org.eclipse.jetty.server.Server;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import revol.home.task.dto.AccountD... | true |
40934fd190b66b7eb5e201c7df5525b8aa558ddf | Java | congle98/demoProxyParttens | /src/model/Downloader.java | UTF-8 | 91 | 2.125 | 2 | [] | no_license | package model;
import java.io.File;
public interface Downloader {
void download();
}
| true |
2396a2e62a1da451dab10b915baa20863f73bd5c | Java | vikaspattathe/HandsOn-Stage3 | /AbstractFactoryDP/src/com/cts/abstractFactoryDesignPattern/client/Client.java | UTF-8 | 526 | 2.6875 | 3 | [] | no_license | package com.cts.abstractFactoryDesignPattern.client;
import com.cts.abstractFactoryDesignPattern.factorymaker.FactoryMaker;
import com.cts.abstractFactoryDesignPattern.headlight.HeadLight;
import com.cts.abstractFactoryDesignPattern.tire.Tire;
public class Client
{
public void doSomeClientJob()
{
Tire tire = Fac... | true |
91af8cea333469cdbc0f0c1121f7a5c6ddda5e72 | Java | reillydj/ADB | /src/main/java/com/dreilly/adb/AdbService.java | UTF-8 | 854 | 2.515625 | 3 | [] | no_license | package com.dreilly.adb;
import com.dreilly.adb.thrift.AdbException;
import org.apache.commons.lang3.StringUtils;
import java.util.HashMap;
import java.util.Map;
public class AdbService implements com.dreilly.adb.thrift.AdbService.Iface {
private static Map<String, Integer> backing;
public AdbService() {
... | true |
e4bca9c4d0c9d2e5d6e2635b23316ef83fc88b9b | Java | johnspade/iozhik | /javatest/src/main/java/iozhik/tgbot/Audio.java | UTF-8 | 3,080 | 2.625 | 3 | [] | no_license | package iozhik.tgbot;
import java.util.*;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import iozhik.tgbot.*;
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Audio {
private String fileId;
private int duration... | true |
36e2aac488cb7d1edefcc7a5bdafbbc641ee1087 | Java | PulockDas/OOP-JAVA-Class-Work | /Assignment Exception Handling/Exception_Handling.java | UTF-8 | 556 | 3.578125 | 4 | [] | no_license | public class Exception_Handling {
public static void main(String[] args) {
int x = 10;
int y = 0;
try{
int c = x/y;
System.out.println("Value of c : " + c);
}
catch (ArrayIndexOutOfBoundsException e){
System.out.println("Exception message :... | true |
03c40585d9946124880940292009c0573e392963 | Java | matthew-robertson/Terrae-Rasa | /TerraeRasa/TerraeRasa/src/server/utils/FileManager.java | UTF-8 | 7,878 | 2.875 | 3 | [] | no_license | package server.utils;
import java.io.File;
import java.io.IOException;
import server.world.WorldGenEarth;
import server.world.WorldServerEarth;
import world.World;
import entry.MPGameEngine;
import entry.TerraeRasa;
import enums.EnumWorldDifficulty;
import enums.EnumWorldSize;
public class FileManager... | true |
1cd4de1ed537c39664355c042f5140fd951b770f | Java | roger1changsu/tgit | /demo_android_http_request/android_src/AppiumDemoApp/app/src/main/java/com/oneiter/android/appiumdemoapp/SharedPreferencesCookieStore.java | UTF-8 | 3,062 | 2.515625 | 3 | [] | no_license | package com.oneiter.android.appiumdemoapp;
import android.content.Context;
import android.content.SharedPreferences;
import org.apache.http.cookie.Cookie;
import org.apache.http.impl.client.BasicCookieStore;
import java.net.CookieStore;
import java.net.HttpCookie;
import java.util.List;
/**
* Created by tima on 4/... | true |
add6e9f98827ce91d5fd8d0e73231efd217c433c | Java | vaginessa/file-transfer-androidclient | /app/src/main/java/zh/Config.java | UTF-8 | 1,147 | 2 | 2 | [] | no_license | package zh;
import android.content.Context;
import android.content.SharedPreferences;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import zh3.maven.org.myapplication.FtSetActivity;
public class Config {
private boolean delAfterSuccess=true;
private int por... | true |
678e3ff194b45d837476dbbbc1f401633c4e1fa0 | Java | sunke1229/buleking-1 | /bksdk/bkapiv2/src/main/java/com/tencent/bk/api/job/req/ExecuteJobReq.java | UTF-8 | 989 | 1.921875 | 2 | [] | no_license | package com.tencent.bk.api.job.req;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tencent.bk.api.job.model.GlobalVar;
import com.tencent.bk.api.job.model.Step;
import com.tencent.bk.api.protocol.ApiReq;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Setter
@Getter
public class... | true |
5000aeb287ab362c08abb3b01db212918a4d29d6 | Java | RasmusLynge/Soft2020-TEST-Assignment1 | /src/com/company/twoKatas/celToFar/CelToFarTest.java | UTF-8 | 1,832 | 2.765625 | 3 | [] | no_license | package com.company.twoKatas.celToFar;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CelToFarTest {
// navngivning: NameOfFunctionTested_must_ExpectedBehavior_when_stateUnderTest
@Test
void mustBeAbleToCreateCelToFar() {
CelToFar ctf = new CelToFar(... | true |
7f09098fafae8c578c4624a5ccf5322efbacf0ad | Java | pumbaaa/jgame | /src/gameState/StateMainMenu.java | UTF-8 | 5,486 | 2.8125 | 3 | [
"MIT"
] | permissive | package gameState;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import audioPlayer.AudioPlayer;
import background.Background;
import mapObject.Animation;
import tileManager.TileManager;
public class ... | true |
922a1643c114e5a5c3e599848a33e061fad744db | Java | artem-kulakovich/differential_equation_solver | /src/by/bntu/fitr/model/microsoft_api/ExcelHandler.java | UTF-8 | 2,588 | 2.6875 | 3 | [] | no_license | package by.bntu.fitr.model.microsoft_api;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.xddf.usermodel.chart.*;
import org.apache.poi.xssf.usermodel.*;
import java.io.FileOutputStream;
import java.io.IOException;
pub... | true |
9656d4c51edd66f69d48e6aff9785e61b7508144 | Java | lzhao819/LeetCode | /uncategorized/Stack84.java | UTF-8 | 1,043 | 3.46875 | 3 | [] | no_license | //84 Largest Rectangle in Histogram
class Solution {
public int largestRectangleArea(int[] heights) {
int result = 0;
//the stack contains index, not the value
Deque<Integer> stack = new LinkedList<>();
for(int i=0;i<=heights.length;i++){
//we need to pop all the... | true |
c09ce01be66b0cf30695cfc0cdb47778c32d9e48 | Java | Brightlinpercy/greenworld | /EcomBackend/EcomBackend/src/main/java/com/greenworld/EcomBackend/daoimpl/CartDaoImpl.java | UTF-8 | 1,733 | 2.40625 | 2 | [] | no_license | package com.greenworld.EcomBackend.daoimpl;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
... | true |
1d274e58af1ea51e73729a719c0c39ff822ebb66 | Java | napatlue/hw4-nluevisa | /hw4-nluevisa/src/main/java/edu/cmu/lti/f13/hw4/hw4_nluevisa/utils/DocScore.java | UTF-8 | 1,153 | 2.65625 | 3 | [] | no_license | package edu.cmu.lti.f13.hw4.hw4_nluevisa.utils;
import java.util.Map;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* Class for storing the similarity result between query and document
*/
public class DocScore implements Comparable<DocScore>{
private int relevance;
private String oriText;
pri... | true |
ec7b50bf303567393f686cbb446194923a814ee7 | Java | xerZV/prop2yml | /java/src/main/java/com/outliers/prop2yml/trie/Trie.java | UTF-8 | 503 | 2.671875 | 3 | [] | no_license | package com.outliers.prop2yml.trie;
import java.util.Map;
/**
* Prefix Trie interface
*
* @author Nikolay Simitchiyski
*/
public interface Trie {
static StringTrie stringTrie() {
return new StringTrie("");
}
void insert(String key, String value) throws IllegalArgumentException;
boolean s... | true |
2982fe5e877c2e8e4ecd9ac1f4339ba2c09b4a9d | Java | Vence0815/SecretBaseAndroid | /app/src/main/java/com/renrun/secretbase_android/ui/fragment/MeetFragment.java | UTF-8 | 453 | 1.734375 | 2 | [] | no_license | package com.renrun.secretbase_android.ui.fragment;
import com.renrun.secretbase_android.R;
import com.renrun.secretbase_android.base.fragment.AbstractSimpleFragment;
/**
* Created by vence on 2018/6/10 15:59
* 邮箱 :vence0815@foxmail.com
*/
public class MeetFragment extends AbstractSimpleFragment {
@Override
... | true |
3bf4261c4dc58b6ac23ac70a0ce974444feaedfc | Java | alagrin/masters_coursework | /Assignment7/src/main/java/edu/neu/ccs/cs5004/assignment7/problem1/PaperTowels.java | UTF-8 | 561 | 2.921875 | 3 | [
"MIT"
] | permissive | /**
* Represents paper towels available for purchase in the store.
*/
package edu.neu.ccs.cs5004.assignment7.problem1;
public class PaperTowels extends AbstractHouseholdProduct {
/**
* Creates a new PaperTowel object.
* @param manufacturer the name of the manufacturer
* @param productName the product na... | true |
50bd7fb35811a13617c4d81653d3adc4adfdb2d4 | Java | nemreid/Fair-Share-Scheduler | /src/scheduler/IdleProcess.java | UTF-8 | 581 | 2.53125 | 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 scheduler;
/**
*
* @author Menno.VanDiermen
*/
public class IdleProcess extends Process {
IdleProcess(Processor cp... | true |
41f4e7d838b66592d7a0a608c5ebb7c16113091b | Java | ldamei/javademo | /jsedemo/src/com/itdr/basic/textdemo1/Zc7.java | UTF-8 | 440 | 3.03125 | 3 | [] | no_license | package com.itdr.basic.textdemo1;
import java.util.Scanner;
public class Zc7 {
public static void main(String[] args){
int num =999;
int count =0;
Scanner sc = new Scanner(System.in);
int m =sc.nextInt();
if(num>=0 && num<=999999999){
for(;num!=0;num=num/10){
... | true |
3325029e1f682ce6e8db8804968dd966d04f6821 | Java | zhangjianfeiso/springboot-parent | /wechat/src/main/java/com/example/wechat/controller/BrokerController.java | UTF-8 | 1,469 | 2.15625 | 2 | [] | no_license | package com.example.wechat.controller;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.ObjectId;
import cn.hutool.core.util.RandomUtil;
import com.example.common.bean.Response;
import com.example.wechat.vo.BrokerVo;
import com.sun.corba.se.pept.broker.Broker;
import org.springframework.web.bind.annotat... | true |
b256ca156573754b9f339e63150bbaba21e81446 | Java | MenOfSillim/spring-pcria-project | /PCria/src/main/java/com/pcria/main/MainMapper.java | UTF-8 | 792 | 1.867188 | 2 | [] | no_license | package com.pcria.main;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.pcria.access.model.AccessVO;
import com.pcria.main.model.FoodVO;
import com.pcria.main.model.SeatDMI;
import com.pcria.main.model.SeatVO;
@Mapper
public interface MainMapper {
//먹거리 주문 관련
List<FoodVO> selFoodLis... | true |
7f4b6d90021e2a1606744605846ad2513d48aa11 | Java | ajinkya-dhamnaskar/airavata | /modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/widgets/XBayaLinkButton.java | UTF-8 | 9,347 | 2.125 | 2 | [
"Apache-2.0"
] | 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
* "Licen... | true |
1351f017b96a3142dc113f648be4ff8bf5c7fc3f | Java | 4everalone/nano | /sample/webservice/HelloeBayTrading/src/com/ebay/trading/api/PromotionMethodCodeType.java | UTF-8 | 1,179 | 2.515625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | // Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
/**
*
* This type is deprecated as Cross Promotions are no longer supported in the APIs.
*
*
*/
public enum PromotionMethodCodeType {
/**
*
*
* Promote/present items that are related to or can be u... | true |
98d49a8ac8a7ffad56a5267213d98b4b0f161669 | Java | havetogg/zsh | /src/main/java/org/jumutang/zsh/controller/CustomerController.java | UTF-8 | 15,964 | 2.0625 | 2 | [] | no_license | package org.jumutang.zsh.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUti... | true |
8a3eae933f22fdf0d123ab0f1f8cb4dd81bf0abf | Java | VincentShaneFinn/projects | /SE311/vsf23_lab3/src/main/java/vsf23/lab3/Main.java | UTF-8 | 2,684 | 3.21875 | 3 | [] | no_license | package vsf23.lab3;
import java.util.Date;
public class Main
{
public static void main( String[] args )
{
//Mark: Setup
Folder root = new Folder("Root", new Date(0,0,1));
Folder documents = new Folder("Documents", new Date(10,0,1));
Folder desktop = new Folder("Desktop", ne... | true |
3d99207feb5c46cb50e448f2e3a9df85f3474ce0 | Java | china-fupengfei/pay-center-root | /pay-center-alipay/src/main/java/code/ponfee/alipay/model/enums/PayType.java | UTF-8 | 860 | 2.21875 | 2 | [] | no_license | package code.ponfee.alipay.model.enums;
/**
* 支付类型
*/
public enum PayType {
/**
* WEB支付
*/
WEB_PAY("create_direct_pay_by_user"),
/**
* WAP支付
*/
WAP_PAY("alipay.wap.create.direct.pay.by.user"),
/**
* APP支付
*/
APP_PAY("mobile.securitypay.pay"),
/**
* 无... | true |
193f8634442d896fcb71d6d3a88cd8cb158c6577 | Java | hailongfeng/ojhtt | /app/src/main/java/cn/ouju/htt/adapter/TokenAdapter.java | UTF-8 | 1,401 | 2.3125 | 2 | [] | no_license | package cn.ouju.htt.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import cn.ouju.htt.R;
import cn.ouju.htt.bean.TokenBean;
public class TokenAdapter extends MyAdapter<TokenBean> {
public TokenAdapter(List ... | true |
b8a656a3a032edacc39a90a5f63db979883d0691 | Java | Pinkashia/Gitdemo | /src/test/java/qaclickacademy/SeliniumTest.java | UTF-8 | 265 | 1.6875 | 2 | [] | no_license | package qaclickacademy;
import org.testng.annotations.Test;
public class SeliniumTest {
@Test
public void Browser_Automation()
{
System.out.println("Browser_Automation");
}
@Test
public void User_SignIn()
{
System.out.println("User_Signin");
}
}
| true |
6d601e7c8bb2cc5e48022372e7d08e6b5d949ec9 | Java | shenxiangshx/leecodeProblem | /src/main/java/com/leetcode/algorithms/heap/Heap.java | UTF-8 | 2,275 | 3.5 | 4 | [] | no_license | package com.leetcode.algorithms.heap;
import java.util.ArrayList;
import java.util.List;
public class Heap<T extends Comparable<T>> {
private List<T> mHeap;
public Heap(){
this.mHeap = new ArrayList<>();
}
private void filterup(int start){
int c=start;
int p=(c-1)/2;
T... | true |
b4814bbb707f96e2182648ea392c04f41eeaeaaf | Java | kepocnhh/GeekCity | /java/stan/geek/city/database/SQliteApi.java | UTF-8 | 6,980 | 2.3125 | 2 | [] | no_license | package stan.geek.city.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import java.util.List;
import stan.geek.city.helpers.SQliteHelper;
public class SQliteApi
{
p... | true |
7f9b7987beb99855bd3faa83b5097aa27cc16360 | Java | sir-deng/res | /weixin反编译/sources/com/tencent/mm/plugin/appbrand/appcache/d.java | UTF-8 | 500 | 1.710938 | 2 | [] | no_license | package com.tencent.mm.plugin.appbrand.appcache;
public interface d {
public static final int[] iGg = new int[]{0, 10002, 10102};
public static final int[] iGh = new int[]{1, 2, 999, 10000, 10001, 10100, 10101};
public enum a {
;
public static boolean jy(int i) {
return com.te... | true |
f21528fb5b72cd409e68086c7b747aaf642a71d5 | Java | Mohitsharma44/Citysynth | /Citysynth_v1/DecodeAtShell/src/DecodingFile.java | UTF-8 | 1,878 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive |
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.NoSuchPaddingException;
impo... | true |
6316dbd87e05424cbfa1e0fba0c1db3e69014cf7 | Java | joaomrcsmartins/MIEIC_AIAD_2020 | /Repast-3.1/RepastJ/src/uchicago/src/sim/engine/gui/RepastParamPanel.java | UTF-8 | 7,725 | 2.09375 | 2 | [
"MIT"
] | permissive | /*$$
* Copyright (c) 1999, Trustees of the University of Chicago
* 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 not... | true |
ba2579e0b74487979b003faf9e338215d43b70f6 | Java | timboudreau/netbeans-contrib | /tableview/src/main/java/org/netbeans/api/tableview/NodeTableModel.java | UTF-8 | 10,669 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... | true |
141d285dc9ce2db9950f13bb6935bab158cc4e43 | Java | genie97/ALGORITHM | /SW_Expert_ALGORITHM/SWEA1974_D2_스도쿠검증.java | UTF-8 | 1,684 | 3.15625 | 3 | [] | no_license | import java.util.Scanner;
public class SWEA1974_D2_스도쿠검증 {
public static int[][] sudoku;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int tc = 1; tc <= T; tc++) {
sudoku = new int[9][9];
for (int i = 0; i < sudoku.length; i++) {
for (int j ... | true |
34374b9698429cfc33c78e88e19b17d2087bb8b3 | Java | kermakaze/WebArchProj2 | /app/src/main/java/com/teamarte/webarchproj2/ui/MainActivity.java | UTF-8 | 3,580 | 2.25 | 2 | [] | no_license | package com.teamarte.webarchproj2.ui;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;
import android.... | true |
73736e66b03848eba1d28434b765b8dc2f2f9ffe | Java | jinBaoo/demo | /pattern/src/main/java/com/fm/singleton/Singleton3.java | UTF-8 | 947 | 3.15625 | 3 | [] | no_license | package com.fm.singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**单例 懒汉式 双锁
* @author moore Administrator
* @Date 2017/5/19 0019 下午 1:41
*/
public class Singleton3 {
private static final Logger LOGGER = LoggerFactory.getLogger(Singleton3.class);
private volatile static Singleton3 inst... | true |
2bade3680721f643886441551a52e8aa85121c1c | Java | gmatrangola/indicator | /src/main/java/com/matrangola/indicator/client/CustomerClient.java | UTF-8 | 879 | 1.945313 | 2 | [] | no_license | package com.matrangola.indicator.client;
import com.matrangola.indicator.config.FeignClientConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.... | true |
e03bb929a349f56f24fe22d18c9249c5713428f6 | Java | katie-lowen/ALIGN-Bridge | /5004_JavaFundamentals/Assignment_1/test/Vector3DTest.java | UTF-8 | 3,848 | 3.40625 | 3 | [] | no_license | import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
/**
* This is a JUnit test for the Vector3D class.
* @author Katie Lowen
*
*/
public class Vector3DTest {
private Vector3D sample;
private Vector3D otherSample;
/**
* This method creates two sample vectors ... | true |
bcd074fa65484a17328a6114c717151e03322144 | Java | bradygroharing/SNOSS | /src/cpu/RAM.java | UTF-8 | 3,037 | 3.140625 | 3 | [] | no_license | package cpu;
public class RAM {
byte[] memory = new byte[10000];
final int BLOCK_SIZE = 32;
final int numOfBlocks = (memory.length / BLOCK_SIZE);
public RAM() {
for(int i = 0; i < memory.length; i++) {
memory[i] = 0;
}
}
// public int getFromMemory(String hexCode) {
// int index = getValueFromHex(... | true |
677e99b219f7088dbbbde693b90e8f32c7585e68 | Java | VadimSimonov/basejava | /test/ru/javawebinar/basejava/storage/SortedArrayStorageTest.java | UTF-8 | 386 | 1.65625 | 2 | [] | no_license | package ru.javawebinar.basejava.storage;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by simonov on 6/21/17.
*/
public class SortedArrayStorageTest {
@Test
public void fillDeletedElement() throws Exception {
}
@Test
public void insertElement() throws Exception {
}... | true |
3deeca9e45b5eb3e3f0ca64fdb58df75555d4e64 | Java | vishav/HolidayWebsite | /spring-holiday-server/src/main/java/com/xiaoxiao/calender/springholidayserver/repository/HinduSolarRepository.java | UTF-8 | 391 | 1.65625 | 2 | [] | no_license | package com.xiaoxiao.calender.springholidayserver.repository;
import com.xiaoxiao.calender.springholidayserver.model.HinduSolar;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.QueryByExampleExecutor;
public interface HinduSolarRepository extends Cru... | true |
c92196f175cc6cff4b400449a71897967a251706 | Java | szmiao/design-pattern | /src/main/java/com/design/pattern/adapter/classes/PrintBanner.java | UTF-8 | 449 | 2.734375 | 3 | [] | no_license | package com.design.pattern.adapter.classes;
/**
* program: design-pattern
* description:
* author: szmiao
* version V1.0.0
* create: 2019-03-26 18:56:59
**/
public class PrintBanner extends Banner implements Print {
public PrintBanner(String string) {
super(string);
}
@Override
public v... | true |
817b378a703b30c7df9f868e2c3d26bf9deba63e | Java | xjk971020/CodeLearn | /java-Learn/SimpleDesignPattern/src/main/java/com/cathetine/designPattern/observer/Subject.java | UTF-8 | 483 | 3.125 | 3 | [] | no_license | package com.cathetine.designPattern.observer;
import java.util.ArrayList;
import java.util.List;
/**
* @Author:cathetine
* @Date:19-9-22
* @Time:下午9:46 主体类
*/
public class Subject {
private List<Observer> observers = new ArrayList<Observer>();
public void attach(Observer observer) {
observers.add... | true |
c746ccf4339e3a5a87e7bbccb9a266ef4437096a | Java | jingtingkang/neutron | /neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronMeteringLabelRule.java | UTF-8 | 4,144 | 2.140625 | 2 | [] | no_license | /*
* Copyright IBM Corporation, 2015. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.neut... | true |
624691376cb0ee45fd67b906dfe32221d24be52a | Java | shah-smit/JavaTutorial | /src/manyworlds/Butterfly.java | UTF-8 | 1,908 | 2.90625 | 3 | [] | no_license | package manyworlds;
import java.awt.Graphics;
import java.util.Random;
public class Butterfly extends Box{
private static final long serialVersionUID = 1L;
int[] xP, yP, vxP, vyP;
int vPMax;
int maxVertices, nVertices;
public Butterfly(int outerWidth, int outerHeight, int vmax, int miniWidth, int miniH... | true |
b155b3988ffff3623e6ee87ea0c159472eb410d2 | Java | dalalsunil1986/training-java-blibli-ilkom-ipb | /java-web/hari-2-dan-hari-3/training-java-web-ipb-maven/src/main/java/id/ac/ipb/ilkom/training/controller/OrderController.java | UTF-8 | 4,659 | 2.296875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package id.ac.ipb.ilkom.training.controller;
import id.ac.ipb.ilkom.training.dto.AddToCartResponse;
import id.ac.ipb.ilkom.training.mo... | true |
3c4911d054a6d18b5c2a933e90e392afa5449d42 | Java | luis3557/ICS3U | /Game Proyect/src/GettingTheGame/dsfsadf.java | UTF-8 | 5,699 | 2.8125 | 3 | [] | no_license | package GettingTheGame;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.File;
import javax.imageio.ImageIO;
import javax.sound.sampled.*;
import hsa_new.Console;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO... | true |
2aed713769a12ccf73e26d8ffa98454c792f0027 | Java | LAUHank/demo-hadoop-01 | /src/main/java/cn/lhl/mr_2/MyMapper.java | UTF-8 | 616 | 2.375 | 2 | [] | no_license | package cn.lhl.mr_2;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class MyMapper extends Mapper<Object, Text, Text, IntWritable> {
private Text keyOut = new Text();
private IntWritable valOut = new IntWrita... | true |
b178ac81a0473181f5b6208c9182a348b8b33c16 | Java | xinjiyier/BlueToothAdapter | /BlueToothAdapter/app/src/main/java/com/example/shoppingchen/cxpbluetoothadapter/utils/BluetoothUtils.java | UTF-8 | 598 | 2.046875 | 2 | [] | no_license | package com.example.shoppingchen.cxpbluetoothadapter.utils;
/**
* Created by ShoppingChen on 2017/10/13.
*/
public class BluetoothUtils {
//客户端连接状态
public static final int CLIENT_CONNECTING = 1001;
public static final int CLIENT_CONNECTED = 1002;
public static final int CLIENT_FREE = 1003;... | true |
8a969e4ff2f2753e595b385825e403d4a8b36138 | Java | zxk901021/insurance | /youyouparttime/src/cn/com/youyouparttime/SafetyActivity.java | GB18030 | 2,373 | 2.09375 | 2 | [] | no_license | package cn.com.youyouparttime;
import cn.com.youyouparttime.base.SysApplication;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;
pu... | true |
7902a033ad4ecd132ddb4845e54265a625070d61 | Java | KingJA/RentManager | /app/src/main/java/com/kingja/cardpackage/activity/MoreCardActivity.java | UTF-8 | 13,149 | 1.75 | 2 | [] | no_license | package com.kingja.cardpackage.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.kingja.cardpackage.Event.Ge... | true |
7676e7a89251d0035a755955d4797fe8b0e68000 | Java | shaileshgmit/CustomerAccountService | /src/main/java/com/customer/services/UserService.java | UTF-8 | 456 | 1.796875 | 2 | [] | no_license | package com.customer.services;
import java.util.List;
import org.springframework.http.ResponseEntity;
import com.customer.dto.UserDto;
public interface UserService {
public ResponseEntity<UserDto> saveUser(UserDto userDto);
public ResponseEntity<UserDto> updateUser(UserDto userDto, long id);
public ResponseEnti... | true |
6d153ef5980e67c45f97bbd4f72c754b977b5cc0 | Java | DanielSouzaBertoldi/Android-Projects | /java/DatabaseDemo/app/src/main/java/com/example/daniel/databasedemo/MainActivity.java | UTF-8 | 1,293 | 2.5 | 2 | [] | no_license | package com.example.daniel.databasedemo;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import java.io.IOException;
public class MainActivity extends AppCom... | true |
91d8c5056b3e5c24cbe33ca221befe124418d002 | Java | brunoalvesrocha/hibicode | /beerstore/src/main/java/com/hibicode/beerstore/model/BeerType.java | UTF-8 | 135 | 1.921875 | 2 | [] | no_license | package com.hibicode.beerstore.model;
/**
* @author bruno-alves-rocha
*/
public enum BeerType {
LARGER,
PILSEN,
IPA;
}
| true |
e207b137d646e867dbc6169f2e4e85b935f3f191 | Java | junsu501/bbs | /DB_Sql/src/p01/db_connection/DBConnection.java | UTF-8 | 802 | 3.1875 | 3 | [] | no_license | package p01.db_connection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
//JAVA 에서 Oracle DB 연결 유무 확인 방법
public class DBConnection {
public static void main(String[] args) {
Connection conn = null;
try {
// Class.forName("java.lang.String");
Class.forName("oracle.... | true |
a236c535785e35b5f9256a9f49b701211103754a | Java | xuxia0914/javaLearning | /algorithm/src/cn/xux/algorithm/leetcode/vip/hard/TheMazeIII.java | UTF-8 | 6,599 | 3.6875 | 4 | [] | no_license | package cn.xux.algorithm.leetcode.vip.hard;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
/**
* 499. 迷宫 III
* 由空地和墙组成的迷宫中有一个球。球可以向上(u)下(d)左(l)右(r)四个方向滚动,
* 但在遇到墙壁前不会停止滚动。当球停下时,可以选择下一个方向。
* 迷宫中还有一个洞,当球运动经过洞时,就会掉进洞里。
* 给定球的起始位置,目的地和迷宫,找出让球以最短距离掉进洞里的路径。
* 距离的定... | true |
7a5a897bbf68e232ad25c5ab914d1ca5bbf5679d | Java | amrutasajane/cricboard | /src/main/java/com/cricket/cricboard/model/Player.java | UTF-8 | 294 | 1.820313 | 2 | [] | no_license | package com.cricket.cricboard.model;
import com.cricket.cricboard.constants.Role;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Player {
private int playerId;
private String displayName;
private PersonalInfo personalInfo;
private Role role;
}
| true |
b467e0644d2e75ef4ae6d9c6ec093718c7dcf3c3 | Java | JavierArevalo/Google-Calendar-and-Typeform-API-Integration | /Response.java | UTF-8 | 839 | 2.609375 | 3 | [] | no_license | package com.mkyong;
public class Response {
int total_items;
int page_count;
//Each survey is an item in the items array
Survey[] items;
public Response() {
}
public Response(int total_items, int page_count, Survey[] items) {
this.total_items = total_items;
this.page_cou... | true |