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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d9579b097141f7a8de13f0c55ddebfbb5b8961ea | Java | whdals7337/coding-test-study | /src/baekjoon/MaxAndMin.java | UTF-8 | 3,093 | 3.703125 | 4 | [] | no_license | package baekjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
// 최솟값과 최대값 - 2357번
public class MaxAndMin {
static int N, M;
static int[] arr;
static int[][] tree;
public static void main(String[] args)throws IOExcepti... | true |
c712aec198c739e82a53d6746a193bea003aff72 | Java | Andinianas/uas-pemrograman4 | /WarungKosan/src/com/example/warungkosan/List_item_ksn.java | UTF-8 | 534 | 1.921875 | 2 | [] | no_license | package com.example.warungkosan;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class List_item_ksn extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_item_ksn);
}
... | true |
7ec3df2804dee29c3a31cddabb53f51b3d1e8ded | Java | Haseebvp/Mess | /app/src/main/java/mess/bangalore/com/mess/MainScreen.java | UTF-8 | 10,774 | 1.804688 | 2 | [] | no_license | package mess.bangalore.com.mess;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.internal.NavigationMenuView;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widge... | true |
cdc9ffe96eeea94106008539d1f84afc87ad973f | Java | jorre127/AppOfTheYear2 | /app/src/main/java/com/example/appoftheyear2/Game.java | UTF-8 | 955 | 2.859375 | 3 | [] | no_license | package com.example.appoftheyear2;
public class Game {
String Name;
String Genre;
int Score;
String Status;
float HoursPlayed;
String GameDate;
public Game(String NameIn, String GenreIn, int ScoreIn, float HoursPlayedIn, String StatusIn, String DateIn){
Name = NameIn;
Genre... | true |
ca07bfb5056e1a98a73be5a3d0e065340be829f2 | Java | dboy11/Yorktown_Logo | /app/src/main/java/com/example/dan/yorktownlogo/MainActivity.java | UTF-8 | 3,087 | 2.171875 | 2 | [] | no_license | package com.example.dan.yorktownlogo;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;
import a... | true |
e9644cba18b88d8284175bc183de3d081f550af4 | Java | LevPhilippov/JavaAlgo | /JavaAlgo_Lesson3_SQD/src/main/java/filippov/lev/filippov/interfaces/Deque.java | UTF-8 | 450 | 2.984375 | 3 | [] | no_license | package filippov.lev.filippov.interfaces;
public interface Deque<E> extends Queue<E> {
void insertLeft(E value); // Adds an item at the front of Deque.
void insertRight(E value); // Adds an item at the end of Deque.
E deleteLeft(); // Deletes an item from front of Deque.
E deleteRight(); //Deletes an... | true |
080afc9098958757631ae23e737de01152c2cecb | Java | 2434hin/jQueryPratice | /src/kr/or/ddit/buyer/controller/Buyer.java | UTF-8 | 544 | 2.1875 | 2 | [] | no_license | package kr.or.ddit.buyer.controller;
import java.util.List;
import java.util.Map;
import kr.or.ddit.buyer.service.BuyerServiceImpl;
import kr.or.ddit.buyer.service.IBuyerService;
public class Buyer {
public static void main(String[] args) {
IBuyerService service = BuyerServiceImpl.getInstance();
... | true |
ef2d8b484adb131c652f15903ebd13c0b6c6f0bd | Java | snoopcat512/Java-Core | /NguyenDuyPhong_J59_FinallExam/src/manager/StudentManager.java | UTF-8 | 6,428 | 2.859375 | 3 | [] | no_license | package manager;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.Random;
import java.util.Scanner;
import io.SerializeFile;
import models.Marks;
import models.Student;
import models.Subjects;
public final class StudentManager {
static Scanner sc = new Scanner(Sy... | true |
ab3cb7108a6b93239f9654b0de74b84f9e2c3897 | Java | 3hccm/XVulnFinder | /src/main/java/com/emyiqing/core/xss/AdvancedServletXss.java | UTF-8 | 9,379 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.emyiqing.core.xss;
import com.emyiqing.core.xss.base.ServletXss;
import com.emyiqing.dto.Result;
import com.emyiqing.parser.ParseUtil;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.VariableDeclarato... | true |
5f3bdaa20527341283cdcc45eba3a54d62befa4a | Java | milindrc/ApiManager | /app/src/main/java/com/matrixdev/game/apimanager/MainActivity.java | UTF-8 | 1,025 | 2.125 | 2 | [
"MIT"
] | permissive | package com.matrixdev.game.apimanager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
import com.matrixdev.game.apimanagerlib.web.ApiManager;
import com.matrixdev.game.apimanagerlib.web.ServerResponseListener;
public class MainActivity extends AppCompatActivit... | true |
5ccf917dbd71684426a2b42739c7a05dbc686262 | Java | 215254589/Project3 | /Question1/Inheritance/src/main/java/za/ac/cput/Projects/Woman.java | UTF-8 | 170 | 2.640625 | 3 | [] | no_license | package za.ac.cput.Projects;
public class Woman extends Human {
@Override
public String canTalk(String sound){
return "I can talk alot " +sound;
}
}
| true |
64f5a9ee205bc996bab044ba7e6aec082e6f68b1 | Java | zhangdi6/X17fun | /app/src/main/java/com/x/x17fun/ui/fragment/SaleFragment.java | UTF-8 | 1,362 | 2.0625 | 2 | [] | no_license | package com.x.x17fun.ui.fragment;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
im... | true |
8d70125c8bfdd875c229cf655f84829fcea1d745 | Java | inshakr2/Java | /Study/src/main/java/oop/constructor3/Character.java | UTF-8 | 2,590 | 3.984375 | 4 | [] | no_license | package main.java.oop.constructor3;
public class Character {
/**
* 게임 캐릭터 만들기 튜토리얼
* 캐릭터는 아이디, 레벨, 직업, 소지금의 정보를 가지고 있다.
* 캐릭터 생성시 아이디와 직업은 반드시 설정해야한다.
* 소지금, 레벨은 설정하지 않을 경우 0, 1로 기본 설정된다. (물론 초기에 설정할 수 있지만, 해당 값보다 작을 수 없다.)
* 직업은 전사, 마법사, 궁수, 도적만 가능
*/
public void print() {
... | true |
271987b39fb55510b1adbe0303fca8da5e10ac4d | Java | jaks97/DdS-Macowins | /src/main/java/macowins/PrendaNueva.java | UTF-8 | 213 | 2.140625 | 2 | [] | no_license | package macowins;
public class PrendaNueva implements EstadoPrenda {
public double precioModificado(double precioBase) {
return precioBase; // El precio de una prenda nueva no tiene descuento
}
}
| true |
b89f6400be37d96c4c886652c95e892ff7ef5577 | Java | beginsto/wechat | /src/main/java/com/jielan/jiaxing/admin/wechat/service/impl/WeChatServiceImpl.java | UTF-8 | 3,097 | 2.078125 | 2 | [] | no_license | package com.jielan.jiaxing.admin.wechat.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.jielan.jiaxing.admin.wechat.dao.WeChatUserMapper;
import com.jielan.jiaxing.admin.wechat.moudle.WeChatUser;
import com.jielan.jiaxing.admin.wechat.service.WeChatService;
import com.jielan.jiaxing.util.CharacterEnco... | true |
3215f7a78440b1dff8fd64af300e165c7c547118 | Java | sumanthmattapali/Selenium-Grid-Extras | /SeleniumGridExtras/src/test/java/com/groupon/seleniumgridextras/grid/GridStarterAdditionalNodeClasspathTest.java | UTF-8 | 1,945 | 2.328125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.groupon.seleniumgridextras.grid;
import com.groupon.seleniumgridextras.config.Config;
import com.groupon.seleniumgridextras.config.RuntimeConfig;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
public class GridStarterAdditionalNodeClasspathTest {
private... | true |
595c508888ff59f1a06c87243cfebe360c4450b6 | Java | ReemAlrashoud/ProgrammingAssignment4-DataStructure | /MGraph.java | UTF-8 | 1,463 | 2.796875 | 3 | [] | no_license | // no!!
public class MGraph<K extends Comparable<K>> implements Graph<K> {
public Map<K, List<K>> adj_Focus_ON;
public MGraph() {
adj_Focus_ON=new BSTMap<>();}
public boolean addNode(K i){
if(isNode(i))
return false;
boolean not_is_node ;
not_is_node=adj_Focus_ON.insert(i, new LinkedList... | true |
29b4be332a15ef26d5da58abae03b83b5357cfb4 | Java | sunxunbang/pms | /src/com/pms/dao/impl/ResClassifyResourceDAOImpl.java | UTF-8 | 3,993 | 2.34375 | 2 | [] | no_license | package com.pms.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.exception.ConstraintViolationException;
import com.pms.dao.ResClassifyResourceDAO;
import com.pms.model.HibernateUtil;
import com.pms.model.ResClassifyResou... | true |
698272cf7713e045e8f39c64e6389791a60de4f4 | Java | thiagoaoki/music-playlist-swing | /src/main/java/br/com/dbsti/aula/model/dao/hibernate/MusicaDaoHibernate.java | UTF-8 | 774 | 2.296875 | 2 | [] | no_license | package br.com.dbsti.aula.model.dao.hibernate;
import br.com.dbsti.aula.model.Musica;
import br.com.dbsti.aula.model.dao.MusicaDAO;
import br.com.dbsti.aula.model.util.JPAUtil;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
public class MusicaDaoHibernate exten... | true |
fae92bc851094936c2038c43c449fa118a084426 | Java | ThorbenLindhauer/cosimin | /src/main/java/de/unipotsdam/hpi/indexing/ReferenceBlockBasedIndex.java | UTF-8 | 8,863 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package de.unipotsdam.hpi.indexing;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntList;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Iterator;
import de.unipotsdam.hpi.permutation.PermutationFunction;
import de.unipotsdam.hpi.... | true |
64e4f0f2b60078d952273be494ee8f9facbd2a1b | Java | jackdeadman/OpenGL-Art-Gallery | /models/Room.java | UTF-8 | 11,132 | 2.625 | 3 | [] | no_license | package models;
import com.jogamp.opengl.*;
import engine.*;
import engine.render.*;
import engine.scenegraph.*;
import engine.utils.*;
import gmaths.*;
import meshes.*;
import shaders.shaderconfigurators.MultiLightShader;
import shaders.shaderconfigurators.OneTextureShader;
public class Room extends Model {
/*... | true |
e0ae1235e50080caffb8d5144a2041054189e8ed | Java | layanmal/Networking-and-Cybersecurity | /Networking-Hws/Source/org/litesoft/p2pchat/UserDialogAWT.java | UTF-8 | 10,569 | 2.3125 | 2 | [] | no_license | package org.litesoft.p2pchat;
import java.awt.*;
import java.awt.List;
import java.awt.event.*;
import java.util.*;
// Copyright Status:
//
// All Software available from LiteSoft.org (including this file) is
// hereby released into the public domain.
//
// It is free! As in, you may use it freely in both commercial... | true |
ecd7ec4ff53b2ce499b6ea2e0fd6d124a8fe3dfd | Java | CODERS-BAY/java-christmas-exercise-GoranMatev | /task1/model/Sledge.java | UTF-8 | 127 | 1.914063 | 2 | [] | no_license | package model;
// Sledge = Schlitten
public class Sledge {
public Sledge() {
// TODO Auto-generated constructor stub
}
}
| true |
720653983de107a2677146838f8231adb30ec43f | Java | vsultanova/Hillel_Homeworks | /homework_2_1/Devision.java | UTF-8 | 124 | 1.5625 | 2 | [] | no_license | package src;
public class Devision {
public static void devision (){
System.out.println("/");
}
}
| true |
97ea0913250f1a04a2550798b0dc52524977d0c7 | Java | code10ftn/restaurant-reservations | /src/main/java/com/code10/isa/model/FoodType.java | UTF-8 | 77 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.code10.isa.model;
public enum FoodType {
SALAD,
FRIED
}
| true |
d1c2952eef5e40e89f09376c0ea2a5ed8f84a7c0 | Java | juyuan-yang/IRrelated | /StatisticalDebug/src/edu/gatech/ir/ochiai/Runner.java | UTF-8 | 3,670 | 2.609375 | 3 | [] | no_license | package edu.gatech.ir.ochiai;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
impor... | true |
3f72f6b33f2a50ff5425b48418a05fa9cacdec67 | Java | harishpadmanabh-HP/Retrofit_JSON_Parsing | /app/src/main/java/com/hp/hp/retrofit_json_parsing/Api.java | UTF-8 | 660 | 2.5625 | 3 | [] | no_license | package com.hp.hp.retrofit_json_parsing;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface Api {
//Retrofic divides url in 2 parts.base url and the apicall .api call is the last the section of url.
//5.now define base url
String BASE_URL = "https://simplifiedcoding... | true |
34cb47cec45d4be0ade38f9d8d1782d0ad4b486b | Java | zxxroot/ymzl | /小贷平台反编译/cashloan-base/cashloan-rc/src/main/java/com/rongdu/cashloan/rc/mapper/SceneBusinessLogMapper.java | UTF-8 | 961 | 1.890625 | 2 | [] | no_license | package com.rongdu.cashloan.rc.mapper;
import com.rongdu.cashloan.core.common.mapper.BaseMapper;
import com.rongdu.cashloan.core.common.mapper.RDBatisDao;
import com.rongdu.cashloan.rc.domain.SceneBusinessLog;
import java.util.List;
import org.apache.ibatis.annotations.Param;
@RDBatisDao
public abstract interface Sce... | true |
b73e66b3ce3f725f98970074977059217d2b6df5 | Java | AlexVulpoiu/Stocks_management | /src/database/repository/AudioSpeakerRepository.java | UTF-8 | 5,321 | 2.796875 | 3 | [
"MIT"
] | permissive | package database.repository;
import database.config.DatabaseConfiguration;
import stocks_management.category.Category;
import stocks_management.distributor.Distributor;
import stocks_management.product.AudioSpeaker;
import stocks_management.services.StockService;
import java.sql.*;
import java.util.ArrayList;
import ... | true |
1cc106c727638d4df7b1383a1c5dd26d07c02c1c | Java | jhannes-playpen/batch-server-kata | /src/test/java/com/johannesbrodwall/batchserver/medications/FestFileBatchTest.java | UTF-8 | 4,439 | 1.90625 | 2 | [] | no_license | package com.johannesbrodwall.batchserver.medications;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.time.Instant;
import java.util.Random;
import javax.sql.DataSource;
import org.eaxy.Element;
import org.eaxy.Namespace;
import org.eaxy.Validator;
impo... | true |
5deae66d2bbd2b8d6c00e514d9dd350f1969a084 | Java | cwardcode/Capstone | /TrackerApps/TrackerTransmitter/src/com/cwardcode/TranTracker/Vehicle.java | UTF-8 | 717 | 3.421875 | 3 | [] | no_license | package com.cwardcode.TranTracker;
/**
* @author Chris Ward
* @version 12/15/2013
*
* A class representing a Vehicle object
*/
public class Vehicle {
/** Vehicle ID. */
private int id;
/** Vehicle Name */
private String name;
/**
* Constructor for Vehicle .
* @param id Vehicle ID.
... | true |
d007c67d0359f3ee66842d70efb9903eef74e67f | Java | flywind2/joeis | /src/irvine/oeis/a110/A110224.java | UTF-8 | 330 | 2.640625 | 3 | [] | no_license | package irvine.oeis.a110;
import irvine.oeis.LinearRecurrence;
/**
* A110224 <code>a(n) = Fibonacci(n)^3 + Fibonacci(n+1)^3</code>.
* @author Sean A. Irvine
*/
public class A110224 extends LinearRecurrence {
/** Construct the sequence. */
public A110224() {
super(new long[] {-1, -3, 6, 3}, new long[] {1, ... | true |
9cdb2b45e84f53a2dc00d2f1b08cd9a38d9eeede | Java | itvincent-git/port-transformer | /port-transformer-common/src/main/java/net/port/transformer/annotation/PortPair.java | UTF-8 | 453 | 2.203125 | 2 | [] | no_license | package net.port.transformer.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 注解在接口方法上,标明传入key, value到处理器
* Created by zhongyongsheng on 2018/4/13.
*/
@Retention(RetentionPolicy.CLASS)
... | true |
edcc9622cf8347ef58011407ac08e5e343524b65 | Java | mmz1996/MmzJUCLearning | /src/state/TestStop.java | UTF-8 | 987 | 3.484375 | 3 | [] | no_license | package state;
/**
* @Classname TestStop
* @Description TODO
* @Date 2020/12/8 9:34
* @Created by mmz
*/
// 建议线程正常停止——>利用次数,不建议死循环
// 建议使用标志位,设置一个标志位
// 不要使用stop,destroy等过时的方法
public class TestStop implements Runnable{
private boolean flag = true;
@Override
public void run() {
int i = 0;
... | true |
46aba029348a666256335799d6d09e2fd25a6ae2 | Java | Mirage20/Carbon-SPI | /carbon-spi-test/carbon-spi-osgi-tests/src/test/java/org/wso2/osgi/spi/test/integration/VisibilityRestrictedConsumerTest.java | UTF-8 | 2,092 | 2.046875 | 2 | [] | no_license | package org.wso2.osgi.spi.test.integration;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
import org.osgi.framework.hooks.weaving.WeavingHook;
import org.testng.Assert;
import org.testng.ITestContext;
import org.testng.annotations.BeforeClass;
imp... | true |
ca3d3fd3802d1a3666d95903e592ebb10f40a55e | Java | danipr98/programaciondam1 | /leer y escribir/src/leeryescribir/objetoalumno.java | UTF-8 | 3,938 | 3.265625 | 3 | [] | no_license | package leeryescribir;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import javax.tools.Diagnostic;
public class objetoalumno {
public static void obj1(alumno a1) {
... | true |
7221b0b7554a370840598a25e819ac2debc768cc | Java | htchepannou/pds-service | /src/main/java/com/tchepannou/pds/controller/AbstractController.java | UTF-8 | 2,710 | 2.296875 | 2 | [] | no_license | package com.tchepannou.pds.controller;
import com.google.common.base.Joiner;
import com.tchepannou.core.exception.NotFoundException;
import com.tchepannou.pds.dto.ErrorResponse;
import com.tchepannou.pds.exception.BadRequestException;
import org.slf4j.Logger;
import org.springframework.http.HttpStatus;
import org.spri... | true |
6b1df8d821818fb3981893044c9a9da252d98dd4 | Java | revanthreddy194/assessment-centric-software | /src/test/java/com/centric/assignment/controller/ProductControllerTest.java | UTF-8 | 4,769 | 2.265625 | 2 | [] | no_license | package com.centric.assignment.controller;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import j... | true |
7efb28775d505763ceb13447f472b26176732ad8 | Java | RonaldBernal/AmdroidRemoteJSON | /app/src/main/java/com/itesm/ronald/mobileappsjsonhw/MainActivity.java | UTF-8 | 1,646 | 2.1875 | 2 | [] | no_license | package com.itesm.ronald.mobileappsjsonhw;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;... | true |
33a669c1ae1d59b8c313a3af2ce058397fd2e153 | Java | PTNUSASATUINTIARTHA-DOKU/SDK-Android | /sdkocov2/src/main/java/com/doku/sdkocov2/utils/SDKBase64.java | UTF-8 | 1,089 | 2.46875 | 2 | [] | no_license | package com.doku.sdkocov2.utils;
/**
* Created by zaki on 4/28/16.
*/
public class SDKBase64 {
private static final char[] ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
public SDKBase64() {
}
public static String encode(byte[] buf) {
int size =... | true |
7be65c151919f56dc0beab3c068b0c7e22ee1b0e | Java | ipeonte/PetStoreDemo | /DemoServices/PetStoreDemoRest/src/main/java/com/example/demo/petstore/rest/jpa/repo/PetsRepository.java | UTF-8 | 368 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.demo.petstore.rest.jpa.repo;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.demo.petstore.rest.jpa.model.Pet;
@Repository
public interface PetsRepository extends JpaRepository<Pet, Long> {
... | true |
3850069a2158ca094d4e9cf18fae48da1efddd61 | Java | MZB5213/Mypro | /app/src/main/java/com/dyth/mzb/my/module/MyFocusModuleImpl.java | UTF-8 | 667 | 1.796875 | 2 | [] | no_license | package com.dyth.mzb.my.module;
import com.dyth.mzb.my.contact.MyFocusContract;
import com.dyth.mzb.utils.RetrofitUtils;
import com.dyth.mzb.utils.URLManger;
import com.dyth.mzb.utils.network.NetworkCallBack;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Lenovo on 2019/1/5.
*/
public class MyFo... | true |
416539d21f88e87d79aec0f43a3035a66d2ede8d | Java | 308229387/qiang_dan_shen_qi | /Commonlib/src/com/huangye/commonlib/vm/SourceViewModel.java | UTF-8 | 2,541 | 2.15625 | 2 | [] | no_license | package com.huangye.commonlib.vm;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.huangye.commonlib.model.NetWorkModel;
import com.huangye.commonlib.model.callback.NetworkModelCallBack;
import com.huangye.commonlib.utils.JsonUtils;
import com.huangye.commonlib.utils.... | true |
5c2c23588165e439e326e3743b70eb81142749e5 | Java | brianwchou/problems2019 | /solutions/ListNode.java | UTF-8 | 1,275 | 3.765625 | 4 | [] | no_license | public class ListNode {
ListNode next;
int value;
ListNode(int value) {
this.value = value;
}
/*
Methods below are used for easy test writing.
Not allowed to used for algorithms
*/
public boolean equals(ListNode node) {
ListNode cursor = this;
... | true |
11707e5ad5bd27ba7f8dbd6e8eba0107bd75043a | Java | arthurkl1/saturne | /src/main/java/hei/projet/servlets/ConsulterevenementServlet.java | UTF-8 | 1,121 | 2.109375 | 2 | [] | no_license | package hei.projet.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.WebConte... | true |
e1f918366db4760123081f325b6c78e2967d0313 | Java | gityangge/Oplus | /src/main/java/cn/ac/yangge/controller/ActionController.java | UTF-8 | 3,659 | 2.140625 | 2 | [] | no_license | package cn.ac.yangge.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import ... | true |
34e41089c2af400548606f3820c071128fe663e5 | Java | nikopain/condoneschile | /app/src/main/java/usm/cc/misc/LayoutManagerShoppingCart.java | UTF-8 | 363 | 2.046875 | 2 | [] | no_license | package usm.cc.misc;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
public class LayoutManagerShoppingCart extends LinearLayoutManager {
public LayoutManagerShoppingCart(Context context) {
super(context);
}
@Override
public boolean supportsPredictiveItem... | true |
a122d56f5fe41d440979cfd5dfb85dc8ff85eb2a | Java | yuvisu/DM-algorithm | /SPM/src/Alg/TransToSBD.java | UTF-8 | 2,571 | 2.765625 | 3 | [] | no_license | package Alg;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
public class TransToSBD {
private String filePath;
public TransToSBD(String file){
this.filePath = file;
}
public List<String[]> Start() {
List<String[]> Datalist = new ArrayList<String[]>();
try {
... | true |
a40a80201eab630c714ebd3f0cadce3238dd3f27 | Java | babizhu/GameServer | /Tools/src/main/java/experiment/serialize/mongodb/MongoDbTest.java | UTF-8 | 2,180 | 2.578125 | 3 | [] | no_license | package experiment.serialize.mongodb;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;
import com.mongodb.WriteResult;
import util.db.MongoUtil;
import java.net.UnknownHostException;
/**
* user LIUKUN
* time 14-3-25 下午5:17
* <p/>
* Mongo的一些功能的测试程序
*... | true |
42664196926cc18687f49a7e5c10765e69b87bc9 | Java | punnoket/find-my-cat-cs355 | /app/src/main/java/com/moblieapp/pannawatnokket/findmycat/adapter/HighScoreAdapter.java | UTF-8 | 1,656 | 2.28125 | 2 | [] | no_license | package com.moblieapp.pannawatnokket.findmycat.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.moblieapp.pannawatnokket.findmycat.R;
import com.moblieapp.... | true |
974ec00bd7abf025bdffbf3a29cacb1442460fff | Java | SangramMohite/ConferenceCentral_Java_GoogleCloud | /src/main/java/com/google/devrel/training/conference/domain/Speaker.java | UTF-8 | 1,036 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.google.devrel.training.conference.domain;
import com.google.devrel.training.conference.form.ProfileForm;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import java.util... | true |
7e62e728d6e30d45fbfc28485c5397cea045f69f | Java | wilder16/universidaddejava | /src/secciones/secc18manejodepaquetes/test/TestUtileria.java | UTF-8 | 674 | 2.90625 | 3 | [] | no_license | package secciones.secc18manejodepaquetes.test;
//import secciones.secc18manejodepaquetes.*;
//import secciones.secc18manejodepaquetes.Utileria;
// Importacion estatica
import static secciones.secc18manejodepaquetes.Utileria.imprimir;
public class TestUtileria {
// Manejo de paquetes
public static void main(Strin... | true |
c2a9ec8f6a3d9c3dbe2742484e1e5ae69ea81bb6 | Java | meriwethernl/CollegeApp | /app/src/main/java/com/example/meriwethernl/collegeapp/Profile.java | UTF-8 | 1,085 | 2.65625 | 3 | [] | no_license | package com.example.meriwethernl.collegeapp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by meriwethernl on 11/27/2017.
*/
public class Profile {
String firstName;
String lastName;
Calendar dob;
public Profile(Stri... | true |
c3dadc437541a3421f63c461c3e5071a6b93e320 | Java | friedriich92/JOCAS | /src/DomainLayer/DataInterface/CtrlUsuariRegistrat.java | UTF-8 | 231 | 1.84375 | 2 | [] | no_license | package DomainLayer.DataInterface;
import DomainLayer.DomainModel.UsuariRegistrat;
/**
* Created by jedi on 10/06/14.
*/
public interface CtrlUsuariRegistrat {
public UsuariRegistrat obtenirUsuariRegistrat(String userN);
}
| true |
ac396e74655517861f564f3db4e993773cc2c583 | Java | Lvluffy/GeneralDataStructure | /sortlib/src/main/java/com/luffy/datastructure/sortlib/InsertionSortApply.java | UTF-8 | 1,860 | 4.28125 | 4 | [] | no_license | package com.luffy.datastructure.sortlib;
/**
* Created by lvlufei on 2019/11/7
*
* @name 插入排序
* @desc 特点:在冒泡排序中,经过每一轮的排序处理后,数组后端的数是排好的;而对于插入排序来说,经过每一轮的排序处理后,数组前段的数是排好序的。
* <p>
* 基本思想:不断地将尚未排好序的数插入到已经排好序的部分。
* <p>
* 过程:插入排序从小到大排序:首先位置1上的数和位置0上的数进行比较,如果位置1上的数大于位置0上的数,将位置0上的数向后移一位,将1插入到0位置,
* 否则不处理。位置k上的数和之前的数依次... | true |
5339c32f59130b440c2d9e9dc5a709626b5c9318 | Java | AngelaM-C/intro-to-java-10thEdition | /Assignment 3/src 1.52.14 AM 1.52.14 AM 1.52.14 AM/Chapter7/analyzeScores.java | UTF-8 | 832 | 3.421875 | 3 | [] | no_license | package Chapter7;
import java.util.Scanner;
public class analyzeScores {
public static void main(String[]args) {
Scanner input = new Scanner(System.in);
final int max= 100;
int[] scores= new int[max];
int sum=0;
int average=0;
int numberOfScores=0;
int aboveOrequal=0;
int below=0;
System.out.println("E... | true |
5f4271e5727699acb476c9e03262bc1e0002127e | Java | Jeongjiho/Java76 | /java01t/src/step04/exam09/Calculator2.java | UTF-8 | 674 | 3.875 | 4 | [] | no_license | package step04.exam09;
class Calculator2 {
// result 변수를 개별관리 변수로 선언한다. => static 명령을 제거하라!
// static이 붙지 않은 변수는 new 명령을 통해 준비된다.
// static이 붙은 변수는 클래스를 사용할 때 자동으로 준비된다.
int result;
static void plus(Calculator2 that, int a) {
that.result = that.result + a;
}
static void minus(Calculator2 that,... | true |
26c5efff936c159da83597295d0d6e40b62aa996 | Java | newcashpay/demo | /src/main/java/com/jxchain/newpay/web/sandbox/mvc/model/InvoiceModel.java | UTF-8 | 389 | 1.804688 | 2 | [] | no_license | package com.jxchain.newpay.web.sandbox.mvc.model;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
@Data
public class InvoiceModel
{
private String invoiceId;
private Integer quantity;
private String fiatCode;
private BigDecimal fiatPrice;
private String goodsName... | true |
3655ff07d0057a1912dda5fc855355bee0e8088f | Java | AdemTEN/CoreJava | /src/day21_String_Manipulation_Part3/STring_Substring.java | UTF-8 | 626 | 3.3125 | 3 | [] | no_license | package day21_String_Manipulation_Part3;
public class STring_Substring {
public static void main(String[] args) {
String sentence = "Java String Manipulation is fun!";
System.out.println(sentence.substring(2));
System.out.println(sentence.substring(5, 11));
System.out.println(sentence.length());
System... | true |
2f44fb4b632e506f68dba7b6fffc862415528116 | Java | TencentCloud/tencentcloud-sdk-java-intl-en | /src/main/java/com/tencentcloudapi/mdl/v20200326/models/Scte35SettingsInfo.java | UTF-8 | 2,506 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | true |
6080195c50a55189ef81b97d43333436c8ab5941 | Java | SimonHu1993/SpringbootZuul | /core_simon/src/main/java/com/ simonhu/common/IPWhiteUtil.java | UTF-8 | 1,643 | 2.21875 | 2 | [] | no_license | package com.simonhu.common;
import com.simonhu.common.exception.IpNoAccessException;
import com.simonhu.util.IpUtil;
import com.simonhu.web.merchant.service.MerchantService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.an... | true |
ee3f896fb093c5ac7f12055bfe862d6d4485bcc9 | Java | openid-certification/conformance-suite | /src/main/java/net/openid/conformance/condition/client/GenerateRS256ClientJWKs.java | UTF-8 | 698 | 2.046875 | 2 | [
"MIT"
] | permissive | package net.openid.conformance.condition.client;
import com.nimbusds.jose.JWSAlgorithm;
import com.nimbusds.jose.jwk.RSAKey;
import com.nimbusds.jose.jwk.gen.JWKGenerator;
import com.nimbusds.jose.jwk.gen.RSAKeyGenerator;
import net.openid.conformance.condition.PostEnvironment;
import net.openid.conformance.testmodule... | true |
7bb317d1bc756387ebd370fb015eb692241d43b3 | Java | 1553002/PTTKHTTT-15CLC-Elearning | /app/src/main/java/com/example/congcanh/elearningproject/adapter/ChooseLessonCustomDialogAdapter.java | UTF-8 | 2,197 | 2.65625 | 3 | [] | no_license | package com.example.congcanh.elearningproject.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.congcanh.elearningproject.R;
import com.example.con... | true |
9481b43998ae10970498d580b54ea0b48a24ae56 | Java | neredumelliprasad/POC | /application/src/main/java/com/eunice/sap/hana/model/DataConstructionContext.java | UTF-8 | 565 | 1.9375 | 2 | [] | no_license | package com.eunice.sap.hana.model;
/**
* Created by roychoud on 18 Dec 2019.
*/
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.productmaster.Product;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* History:
* <ul>
* <li> 18 Dec 2019 : roychoud - Created
* </ul>
*
* @auth... | true |
655be29680f9606a9cdd59d5b83e3a87a6b37472 | Java | google-code/chartmechanic | /ds/src/com/bayareasoftware/chartengine/ds/StreamOutput.java | UTF-8 | 6,108 | 2.671875 | 3 | [] | no_license | /*
* Copyright 2008-2010 Bay Area Software, Inc.
*
* 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 |
a576e08803c52c66fe10bfb7cbffcfe1ead87eb7 | Java | enricopersiani/gef | /org.eclipse.draw2d.examples/src/org/eclipse/draw2d/examples/graph/CompoundGraphTests.java | UTF-8 | 14,803 | 2.21875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation 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, an... | true |
879f73724388f4345af008d59bf65cebfe347965 | Java | leiyuxin/SpringInAction | /studyspringdemo/src/main/java/org/leiyuxin/exercise/studyspringdemo/chapter1/Knight.java | UTF-8 | 377 | 1.8125 | 2 | [] | no_license | package org.leiyuxin.exercise.studyspringdemo.chapter1;
import org.springframework.beans.factory.BeanFactory;
import com.mysql.cj.jdbc.Driver;
/*import org.springframework.jdbc.core.JdbcTemplate;*/
public interface Knight {
public default void embarkOnQuest() {
System.out.println("default knight");
/*new JdbcT... | true |
4f80665f9c08e45f565103c9b89cb636bd789b07 | Java | CUSTEAM/stis | /src/model/stmd_info.java | UTF-8 | 2,489 | 2.078125 | 2 | [] | no_license | package model;
public class stmd_info {
private String student_no,
AborigineCode,
editime,
AborigineCode_f,
AborigineCode_m,
FirstCollegeStd,
Education_f,
Education_m,
AborigineListen,
AborigineSpeak,
AborigineRead,
AborigineWrite,
Hometown;
public String getHometown() {
return Ho... | true |
fce419332b8326530fd0fbfc36b560f13720f5bb | Java | zhuguangyuan/designPattern | /java_basic/4_javaGC/WeakHashMapTest.java | UTF-8 | 2,244 | 3.609375 | 4 | [] | no_license | package main.java;
import java.util.WeakHashMap;
/**
* @Author: zhuguangyuan
* @DateTime: 2018-07-24 12:49:56
* @Descrition: 弱引用测试
*/
class CrazyKey {
String name;
public CrazyKey(String name){
this.name = name;
}
public int hashCode(){
return name.hashCode();
}
p... | true |
8c1a457eb095dc504b5c45b3f8b76e730990135d | Java | sbsteacher/2020_srping | /first/src/com/kita/first/level3/Monitor.java | UTF-8 | 354 | 2.921875 | 3 | [] | no_license | package com.kita.first.level3;
public class Monitor {
static String brand;
int inch;
void printInfo() {
System.out.printf("brand: %s, inch: %d\n"
, this.brand, this.inch);
}
void printInch() {
System.out.println(brand);
System.out.println(inch);
}
static void printBrand() {
S... | true |
c2769ea77038f4ce26d5f605e9b9c75e6cfc51d6 | Java | lawalgren/CSCI310-final | /app/src/main/java/com/example/lucas/whogoesthere/EditGroup.java | UTF-8 | 5,171 | 2.234375 | 2 | [] | no_license | package com.example.lucas.whogoesthere;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
impo... | true |
8287667b1f9e2342a7538ea59154f4d34de41500 | Java | TonPaes/exercicio_consultorio | /consult/src/test/java/com/consult/consult/unit/service/TurnServiceTest.java | UTF-8 | 934 | 2.03125 | 2 | [] | no_license | package com.consult.consult.unit.service;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Date;
import com.consult.consult.dto.AllPatientsByDayResponseDTO;
import com.consult.consult.service.TurnService;
import com.consult.consult.service.TurnServiceImpl;
import com.consult.consult.unit.m... | true |
013f64d3f22260312a3d53098b2bfe0faacd1069 | Java | JJong84/week2 | /app/src/main/java/firstTabHelper/PostPerson.java | UTF-8 | 2,559 | 2.90625 | 3 | [] | no_license | package firstTabHelper;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.net.HttpURLConnection;
import java.net.URL;
import... | true |
b2c014fa3747a8718b5eb0d7414a495b9cdc9047 | Java | LeszekOtkala/Cucumber | /src/test/java/GL/Cucumber/runners/PageStructure.java | UTF-8 | 567 | 1.617188 | 2 | [] | no_license | package GL.Cucumber.runners;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features="classpath:GL/Cucumber/features/PageStructure.feature",
glue = {"GL/Cucumber/stepDefinitions"}, // tu szuka step definitions... | true |
e1d61fd2179f061b07f7ada20f599b776da26847 | Java | radasilviu/heimdall-backend | /auth-server/src/main/java/com/antonio/authserver/service/AuthService.java | UTF-8 | 8,784 | 2.109375 | 2 | [] | no_license | package com.antonio.authserver.service;
import com.antonio.authserver.dto.AppUserDto;
import com.antonio.authserver.entity.AppUser;
import com.antonio.authserver.model.Code;
import com.antonio.authserver.model.CustomException;
import com.antonio.authserver.model.JwtObject;
import com.antonio.authserver.model.LoginCred... | true |
30cb86a5daf6c0e9d16e1f8ef44a070c90f9c98f | Java | qihouying/thinkMind | /src/main/java/com/qhy/practice/a20190215/pow_50/Solution.java | UTF-8 | 761 | 3.46875 | 3 | [] | no_license | package com.qhy.practice.a20190215.pow_50;
/**
* Created by dream on 2019/2/17.
*/
public class Solution {
public double myPow(double x, int n) {
return n < 0 ? 1.0/(n == Integer.MIN_VALUE ?
recurse(x, -(n+1)) : recurse(x, -n)) : recurse(x, n);
}
public double recurse(double x, i... | true |
ce40637d0a7dfbfc47c2967f11a908522c5b7af2 | Java | joshsoftware/OnCoT-Email-Service | /src/main/java/com/josh/emailFunctionality/Exception/NoEmailAccountsRegisteredException.java | UTF-8 | 299 | 2.015625 | 2 | [] | no_license | package com.josh.emailFunctionality.Exception;
@SuppressWarnings("serial")
public class NoEmailAccountsRegisteredException extends RuntimeException {
public NoEmailAccountsRegisteredException(String message) {
super(message);
}
public NoEmailAccountsRegisteredException() {
super();
}
}
| true |
759798e852f2f5de9d5fef271967d5f5d80ff5e4 | Java | llaine/xml-project | /src/main/java/com/miagebdx/domain/User.java | UTF-8 | 4,971 | 2.390625 | 2 | [] | no_license | package com.miagebdx.domain;
import com.miagebdx.interfaces.IUser;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
/**
* gs-actuator-service
*
* @author llaine
* @package com.miagebdx.domain
*/
public class User implements IUser {
private Long id;
private String firstname;
... | true |
247bfe1769a5841339eaf245bbfcbaa4cdf03698 | Java | maptopixel/metaworkflows-wps | /src/main/java/org/n52/wps/demo/ExtensionTest.java | UTF-8 | 1,347 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package org.n52.wps.demo;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.n52.wps.io.data.IData;
import org.n52.wps.io.data.binding.literal.LiteralStringBinding;
import org.n52.wps.server.AbstractSelfDescribingAlgorithm;
import org.n52.wps.server.Excepti... | true |
c9d07ec1492bdeed3276e087e51120fa3cbc0dd9 | Java | AY2021S1-CS2103T-T15-1/tp | /src/main/java/seedu/address/model/HairStyleX.java | UTF-8 | 11,155 | 2.59375 | 3 | [
"MIT"
] | permissive | package seedu.address.model;
import static java.util.Objects.requireNonNull;
import java.util.List;
import java.util.Objects;
import javafx.collections.ObservableList;
import seedu.address.logic.commandshortcut.CommandShortcutSet;
import seedu.address.model.appointment.Appointment;
import seedu.address.model.appoint... | true |
c0853844f51c08415168a39313ad8000f5bb9ab3 | Java | ha271923/leetcode | /app/src/main/java/com/cspirat/MissingRanges.java | UTF-8 | 1,481 | 3.59375 | 4 | [
"MIT"
] | permissive | package com.cspirat;
import java.util.ArrayList;
import java.util.List;
/**
* Project Name : Leetcode
* Package Name : leetcode
* File Name : MissingRanges
* Creator : Edward
* Date : Sep, 2017
* Description : 163. Missing Ranges
*/
public class MissingRanges {
/**
* Given a sorted integer array where... | true |
6ed88d7dd5f6d777b67bb2edffd86396fcf87fb7 | Java | Egorman7/Mobile2 | /app/src/main/java/app/and/mobile2/api/IRedditApi.java | UTF-8 | 337 | 1.875 | 2 | [] | no_license | package app.and.mobile2.api;
import app.and.mobile2.models.RedditDataModel;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface IRedditApi {
@GET("r/puppy.json?raw_json=1/")
Call<RedditDataModel> getPuppiesModel(@Query("after") String after, @Query("limit")... | true |
21e99cfb0882ebfefc0d9bfc50541fac4585a9d5 | Java | EdLittle/hushfinal | /src/GUI/FieldPanel.java | UTF-8 | 4,688 | 2.5625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* FieldPanel.java
*
* Created on Jan 27, 2012, 2:07:29 AM
*/
package GUI;
import java.awt.CardLayout;
import javax.swing.JPanel;
/**
*
* @author FREAK
*/
public class FieldPanel extends javax.swing.JPanel {
... | true |
97494d7924319bb6e4f3890bbd305dc466923412 | Java | TerenceG-cn/University-course-experiment | /算法分析与设计课程/src/分治法与递归/GoldBullion.java | WINDOWS-1252 | 1,059 | 3.078125 | 3 | [] | no_license | package ηݹ;
import java.util.Scanner;
public class GoldBullion {
private final static int N = 5;
static void maxmin(int i, int j, float max[], float min[], float a[]) {
int mid;
float[] lmax = {0}, rmax = {0}, lmin = {0}, rmin = {0};
if (i == j) {
min[0] = max[0] = a[i];
} else if (i == j - ... | true |
15398a0da22984c5e14607e1dc39dc92403e335f | Java | zfan40/musixise-backend | /src/main/java/musixise/web/rest/admin/WorkListFollowResource.java | UTF-8 | 6,850 | 2.296875 | 2 | [] | no_license | package musixise.web.rest;
import com.codahale.metrics.annotation.Timed;
import musixise.domain.WorkListFollow;
import musixise.repository.WorkListFollowRepository;
import musixise.repository.search.WorkListFollowSearchRepository;
import musixise.web.rest.util.HeaderUtil;
import org.slf4j.Logger;
import org.slf4j.Logg... | true |
81791fae48262eb87459f6c583d665e9ea71281f | Java | LaughingAndroid/base | /base/src/main/java/com/kibey/android/lib/BasePlugin.java | UTF-8 | 2,812 | 1.914063 | 2 | [] | no_license | package com.kibey.android.lib;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.MotionEvent;
import android.vie... | true |
eaceccf4f2e6c284f3205170178a2eda17a44c5c | Java | jerlosam/b-cms-integration | /src/test/java/io/crazy88/beatrix/e2e/clients/ProfileSearchClient.java | UTF-8 | 921 | 1.828125 | 2 | [] | no_license | package io.crazy88.beatrix.e2e.clients;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.crazy88.beatrix.e2e.clients.dto.ProfileSearchResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.an... | true |
f967cefea0ac7a49d7273189366e2915bfc0050c | Java | vandongkyd/GitBuyer | /data/src/main/java/com/fernandocejas/android10/restrofit/enity/buyer/UserEntityResponse_Buyer.java | UTF-8 | 777 | 1.960938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.fernandocejas.android10.restrofit.enity.buyer;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.SerializedName;
/**
* Created by vandongluong on 3/12/18.
*/
@AutoValue
... | true |
b16260c36d3385db846fb9cee006f2cc2a99d41f | Java | CS-537-Spring-2016/ROVER_07 | /src/swarmBots/ROVER_07.java | UTF-8 | 13,888 | 2.375 | 2 | [] | no_license | package swarmBots;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import common.Coord;
import common.MapTile;
import common.ScanMap;
import enums.RoverName;
import enums.Science;
import enums.Terrain;
import rover07Util.Communications.ScienceInfo;
import rover07Util.*;
import rover07Util.... | true |
f0ed514b4e3c01e36193361f05b8ddfc34d28a81 | Java | prandzio99/University-Classes | /OOP-Java-UniLabs/02-FVAT/InvoiceTest.java | UTF-8 | 3,628 | 2.78125 | 3 | [] | no_license | import org.junit.*;
import java.time.LocalDate;
import java.util.*;
public class InvoiceTest {
final Person client = new Person("Jan Nowak", "Aleja Grunwaldzka 189/14, Gdansk", "123-456-78-90", "17 2039 5474 0000 3111 0127 3051");
final Person seller = new Person("Castorama", "Aleja Grunwaldzka 262, Gdan... | true |
dabd9fb44a4528f0e1e9ff55918ed2fb76e4d416 | Java | jamiepngg/cs2030-1920 | /labs/lab_7/Main2.java | UTF-8 | 389 | 2.796875 | 3 | [] | no_license | import java.util.stream.Stream;
class Main {
static int gcd(int m, int n) {
return Stream
.iterate(new Pair<>(Math.max(m, n), Math.min(m,
n)),
pair -> pair.n != 0,
p -> new Pair<>(p.n, p.m % p.n))
.redu... | true |
0190c227aaacd108a6f0778923fb7a78dd3a4950 | Java | ragnel/transactions-essentials | /public/transactions-jms/src/main/java/com/atomikos/jms/internal/AtomikosJmsMessageProducerWrapper.java | UTF-8 | 9,679 | 2.15625 | 2 | [] | no_license | /**
* Copyright (C) 2000-2023 Atomikos <info@atomikos.com>
*
* LICENSE CONDITIONS
*
* See http://www.atomikos.com/Main/WhichLicenseApplies for details.
*/
package com.atomikos.jms.internal;
import javax.jms.CompletionListener;
import javax.jms.Destination;
import javax.jms.JMSException;
import java... | true |
d71c9bbfecb9c0416db7cebce68f963d59817499 | Java | Bagusnanda90/javaproject | /Project/bean/com/dimata/harisma/form/clinic/CtrlMedicalType.java | UTF-8 | 6,901 | 2.171875 | 2 | [] | no_license | /*
* Ctrl Name : CtrlMedicalType.java
* Created on : [date] [time] AM/PM
*
* @author : [authorName]
* @version : [version]
*/
/*******************************************************************
* Class Description : [project description ... ]
* Imput Parameters : [input parameter ...]
... | true |
8d87a3ea9dabc7294712bd65e2b84cdb46f94118 | Java | yurgenMU/InformationalSystem | /src/main/java/controllers/ContractController.java | UTF-8 | 2,834 | 2.234375 | 2 | [] | no_license | package controllers;
import model.Contract;
import model.Option;
import model.Tariff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.ann... | true |
a3228fbfd3663b48efd152b65d187b109914bcd6 | Java | zhengsiyun/maven_carrent | /src/main/java/com/zsy/bus/controller/CheckController.java | UTF-8 | 2,009 | 2.203125 | 2 | [] | no_license | package com.zsy.bus.controller;
import java.util.Date;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zsy.bus.domain.Check;
import c... | true |
c1d43a355a46084369d13166708ebb7929953415 | Java | purker/MethodDemosGit | /MethodDemos/src/mapping/ReferenceSetPublicationWorker.java | UTF-8 | 369 | 2.328125 | 2 | [] | no_license | package mapping;
import java.util.List;
import mapping.result.Publication;
import mapping.result.Reference;
public class ReferenceSetPublicationWorker extends Worker
{
@Override
public void doWork(Publication publication)
{
List<Reference> references = publication.getReferences();
for(Reference r : references... | true |
b9336977c5ebaca396aaf207604f0dbb024f10ed | Java | lemon-piepie/design-mode | /factorymode/src/com/company/factorymode/abstractfactory/DrinkProduct.java | UTF-8 | 115 | 2.203125 | 2 | [] | no_license | package com.company.factorymode.abstractfactory;
public interface DrinkProduct {
public void createDrink();
}
| true |
fbec0447399539bd62528fbb0d2fb7085f12781a | Java | samutayuga/samkuberop | /src/main/java/com/samutup/crd/content/config/ContentConstant.java | UTF-8 | 340 | 1.898438 | 2 | [] | no_license | package com.samutup.crd.content.config;
public enum ContentConstant {
SERVER_CONFIG("server_config", "server_config");
final public String configVal;
final public String cofigKey;
ContentConstant(String configKey, String configValue) {
this.cofigKey = configKey;
this.configVal = con... | true |
78e12f45c81e07662ff5c447644eae24a51a90b7 | Java | ntrp/quarkus-native-lambda-demo | /src/main/java/org/qantic/quarkus/lambda/LambdaRuntime.java | UTF-8 | 1,504 | 2.21875 | 2 | [] | no_license | package org.qantic.quarkus.lambda;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
import org.eclipse.microprofile.rest.client.RestClientBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.core.Response;
import java.net.MalformedURLException;
import j... | true |
8039061fd4aae6a107860d2c1d5f693329b64ee4 | Java | ifwonderland/fudosaninvestor | /src/main/java/com/fudosaninvestor/fudosan/location/exception/AmbiguousAddressException.java | UTF-8 | 304 | 2.125 | 2 | [] | no_license | package com.fudosaninvestor.fudosan.location.exception;
/**
* Multiple address matching given input exception.
* <p/>
* Created by Shaochen Huang on 11/8/15.
*/
public class AmbiguousAddressException extends Exception {
public AmbiguousAddressException(String message) {
super(message);
}
}
| true |