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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c98ee79f40bf0f13407f93e5e1e781794f10cd04 | Java | malek0512/JAVA_Project | /src/circuit/_Ouvert.java | UTF-8 | 174 | 1.914063 | 2 | [] | no_license | package circuit;
import java.util.LinkedList;
import java.util.List;
/**
--Invariant--
A au moins une connexion libre
*/
public interface _Ouvert extends _Circuit {
}
| true |
d5eea897ea0acbfa2d8157ef229368f4da97d35f | Java | arthurxiaohz/ic-card | /j-hi-20110703/src/org/hi/framework/web/webwork/ExcelResult.java | GB18030 | 2,369 | 2.296875 | 2 | [] | no_license | package org.hi.framework.web.webwork;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import net.sf.jxls.transformer.XLSTransformer;
import org.apache.poi.hss... | true |
350213e69c3f39c6e7bad8c6af0659f1f6be9f89 | Java | heiko-braun/wildfly-swarm-1 | /core/container/src/main/java/org/wildfly/swarm/container/runtime/cdi/configurable/ConfigurableFractionBean.java | UTF-8 | 2,971 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.wildfly.swarm.container.runtime.cdi.configurable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.spi.Bean;
import java... | true |
b6efdbdfbf7cf921febe2bbbb6e7080afd8266c0 | Java | pbaser/pacbot | /api/pacman-api-auth/src/main/java/com/tmobile/pacman/api/auth/controller/AuthController.java | UTF-8 | 7,462 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* o... | true |
a1fb10932fad099684fdf292b05344ccfb4730bc | Java | Mathursan-007/Metron | /HotelManagement/src/com/controller/GetGymR.java | UTF-8 | 1,669 | 2.28125 | 2 | [] | no_license | package com.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com... | true |
c3bdb90410a66d2b6ef52085f0f5110d3fe35b57 | Java | consulo/consulo | /modules/base/ide-impl/src/main/java/consulo/ide/impl/idea/execution/compound/CompoundRunConfigurationType.java | UTF-8 | 2,319 | 1.78125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
d1c7073d514e53afdd7bedc12c2a86da1e957129 | Java | cglee079/study-toby-reactive | /src/main/java/com/podo/study/toby/reactive/chapter5/resolve5/SpringChapter5Application.java | UTF-8 | 5,558 | 2.359375 | 2 | [] | no_license | package com.podo.study.toby.reactive.chapter5.resolve5;
import io.netty.channel.nio.NioEventLoopGroup;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
impor... | true |
7e03d0064a48f3df954b209c3538315a741ca755 | Java | dickeawacs/awacs | /code/ecp/src/main/java/com/cdk/ats/web/pojo/hbm/Table3.java | UTF-8 | 1,671 | 2.15625 | 2 | [] | no_license | package com.cdk.ats.web.pojo.hbm;
/**
* 2.3 用户提示音表 Table3 entity. @author MyEclipse Persistence Tools
*/
public class Table3 implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = -6909833588527421906L;
/*** 提示音序号 ***/
private Integer field1;
/*** 用户序号 ***/
p... | true |
b4829690ce5c7784385d6b606dd6ee12fc7c3072 | Java | AnithaDevi10/APIAutomationScripts | /RestAutomation/src/test/java/StepDefn/StepDef.java | UTF-8 | 1,962 | 2.390625 | 2 | [] | no_license | package StepDefn;
import java.io.File;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import io.restassured.specifica... | true |
a007ff8555253e4a8ccddbccb6086e652729ebe6 | Java | BAbrandon/Java | /after school/graphics4.java | UTF-8 | 1,750 | 2.984375 | 3 | [] | no_license | import java.awt.*;
import java.applet.*;
public class graphics4 extends Applet{
public void paint(Graphics g){
for (int i =0; i< 255; i+=100){//y lines
//sphere
// g.setColor(Color.gray);
g.drawOval(300,200,150,150);//sphere
// g.setColor(Color.cyan);
g.drawOval(300,200+(i/2)... | true |
49651878d9d20a3e25dae4c605d0827015fd07b6 | Java | aravindc26/openapi4j | /openapi-parser/src/main/java/org/openapi4j/parser/model/v3/MediaType.java | UTF-8 | 2,429 | 2.3125 | 2 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.openapi4j.parser.model.v3;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
public class MediaType extends AbsExtendedOpenApiSchema<MediaType> {
@JsonProperty("encoding")
private Map<String, EncodingProperty> encodings;
private Object example;
... | true |
f5b3e0fe8c38c257cdf12153905edc7312af0819 | Java | SongChiyoon/codeGround | /src/numberOfPaper.java | UTF-8 | 1,019 | 3.125 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Scanner;
public class numberOfPaper {
public static int[] ans = new int[3];
static HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
public static int[][] p;
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
map.put... | true |
7ae6d01d45d1c2607b458ab5acd862ba3b47dba3 | Java | rachid-eladlani/CookieOnDemand | /src/main/java/fr/unice/polytech/cookieFactory/order/Order.java | UTF-8 | 6,205 | 2.296875 | 2 | [] | no_license | package fr.unice.polytech.cookieFactory.order;
import fr.unice.polytech.cookieFactory.store.Store;
import fr.unice.polytech.cookieFactory.users.Customer;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Arrays... | true |
925d71ec0a98172a60018ec728a8149e0be5e3aa | Java | mshabdiz/ms-data-core-api | /src/main/java/uk/ac/ebi/pride/utilities/data/lightModel/Inputs.java | UTF-8 | 4,411 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.pride.utilities.data.lightModel;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/*... | true |
45ecb2214ec78aed5044bd3470e0deaf9b79340a | Java | gfriesen98/Java-Roguelike | /src/roguelikeLibrary/mapUtils/items/Armours/ArmourList.java | UTF-8 | 1,255 | 2.59375 | 3 | [] | no_license | package roguelikeLibrary.mapUtils.items.Armours;
/**
* Created by fawf on 26/05/16.
*/
public class ArmourList {
private Armour[] tierOne, tierTwo, tierThree, tierFour, tierFive;
public ArmourList(){
tierOne = new Armour[3];
tierOne[0] = new Fur();
tierOne[1] = new Cloth... | true |
b25d3922563dc00b421e1e5929612ad285d6a1d0 | Java | joskov/advent2017 | /src/com/joskov/advent2017/Day18.java | UTF-8 | 8,546 | 3.1875 | 3 | [
"MIT"
] | permissive | package com.joskov.advent2017;
import java.io.IOException;
import java.util.*;
import java.util.stream.Collectors;
public class Day18 extends Helpers {
private final static String INPUT = "resources/18.txt";
public static void main(String[] args) {
List<Command> input = readInput();
partOne(i... | true |
2a62db26e789e4a28a53ad6545da4b06be74c533 | Java | tomekcm4/Harmonogram | /src/Grafik.java | UTF-8 | 3,021 | 2.140625 | 2 | [] | no_license | import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Optional;
public class Grafik {
LocalDate ldt;
Lekarz lekarz;
Pacjent pa;
boolean czyZarezerwowany;
boolean czyWykonany;
int IDpacjenta;
int IDlekarza;
String imie;
String nazwisko;
String imiee;
String nazwiskoo;
public Str... | true |
b3623b35f77ccc38a46d74d6b5d05c91d89759c3 | Java | SimonAnkan/Anka | /FyraPunktEtt.java | ISO-8859-1 | 603 | 2.8125 | 3 | [] | no_license | import javax.swing.JOptionPane;
/*
* I uppgift 4.1
* Ski Doo Summit
*
* En intressant kommentar
*/
public class FyraPunktEtt {
public static void main(String[] args) {
int Minuter = Integer.parseInt(JOptionPane.showInputDialog(null, "Skriv antalet minuter du kommer prata i telefonen s kommer vi avgra vil... | true |
9f4369449dfc5d6f72c95b98fd99c6f57a9ea858 | Java | qww7895/Self-Study | /Stack.java | UHC | 2,781 | 4.0625 | 4 | [] | no_license | import java.util.Scanner;
public class Stack {
public static void main(String []args) {
Node<Integer> node=new Node<Integer>();// ֻ 带 Ŵ
Node<Integer> tnode = null;//Ž ο ۷
Node<Integer> ttnode = null;// ο ۷
Scanner scann = new Scanner(System.in);
int select;
Integer data;
while(true) {
System.out.p... | true |
bb56b68f9655dee7de2f41b6429809f75df58608 | Java | brian-tanabe/FantasyDashboard | /DashboardGui/src/main/java/com/briantanabe/fd/dg/gui/PlayerSelectTableWidget.java | UTF-8 | 7,057 | 2.4375 | 2 | [] | no_license | package com.briantanabe.fd.dg.gui;
import com.briantanabe.fd.dp.fantasy.player.NflPlayer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.ExpandAdapter;
import org.eclipse.swt.events.ExpandEvent;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.la... | true |
6277f5d743307075f645cc58b4aa1f1a590634c6 | Java | SrPio/Acme | /Acme/src/modelo/ConsultasUsuario.java | UTF-8 | 1,731 | 2.53125 | 3 | [] | no_license | package modelo;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class ConsultasUsuario extends Conexion {
public boolean registar(Usuario user) {
PreparedStatement ps = null;
Connection con = getConection();
String sql = "INSERT INTO `U... | true |
7b7e813dc21d9a1f729ababbcd4195febc9d5dae | Java | siyka-au/jfins | /omron-fins-netty-udp/src/main/java/com/siyka/omron/fins/FinsSlaveHandler.java | UTF-8 | 2,179 | 2.359375 | 2 | [] | no_license | package com.siyka.omron.fins;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.siyka.omron.fins.commands.FinsCommand;
import com.siyka.omron.fins.commands.MemoryAreaReadCommand;
import com.siyka.omron.fins.commands.MemoryAreaWriteCommand;
import com.siyka.omron.fins.responses.FinsResponse;
... | true |
cf9c11cb2671560a9f19ef630707ab4a828238b1 | Java | Sn0wStorm/Menu | /src/com/snow/menu/Menus/EditMenu.java | UTF-8 | 3,490 | 2.453125 | 2 | [] | no_license | package com.snow.menu.Menus;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import com.snow.menu.Buttons.Basic.BEditMenu;
import com.snow.menu.Menu;
import com.snow.menu.MenuView;
import com.snow.menu.Menu... | true |
2f8c4747c2fa148776a3e03bb4f851953b64419d | Java | haojie-yang/springboot | /common/src/main/java/entity/PageResult.java | UTF-8 | 408 | 2.03125 | 2 | [] | no_license | package entity;
import lombok.Data;
import java.util.List;
/**
* @description:
* 分页结果
* @author: yanghaojie 31648
* @date: 2020/8/7 14:22
*/
@Data
public class PageResult<T> {
private long total;//总数量
private List<T> rows;//数据
public PageResult() {
}
public PageResult(long total, List<T> ... | true |
ff3b4301b381e0ccf5f8ed4a1930fcdb578e2fb0 | Java | HeatherUngarten/ScientistGame | /ScientistGame/src/scientistgame/CoinFlip.java | UTF-8 | 668 | 2.96875 | 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 scientistgame;
import java.util.Random;
/**
*
* @author hungart
*/
public class CoinFlip
{
publi... | true |
e9d8801f62f2b3a34c2afbb031d81f1f6c0ab7bb | Java | nirle/RomanNumerals | /src/RomanNumeralUnitTests.java | UTF-8 | 250 | 2.234375 | 2 | [] | no_license | import static org.junit.Assert.*;
import org.junit.Test;
public class RomanNumeralUnitTests {
private RomanNumerals number = new RomanNumerals();
@Test
public void testThat1ReturnsI() {
assertEquals("MMDLXX", number.toRoman(2570));
}
}
| true |
88fa770ae50dddd73864cd9c7f77acd1a69d43ae | Java | CorfuDB/CorfuDB | /runtime/src/main/java/org/corfudb/runtime/collections/TxnContext.java | UTF-8 | 36,340 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package org.corfudb.runtime.collections;
import com.google.protobuf.Message;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.corfudb.protocols.logprotocol.MultiObjectSMREntry;
import org.corfudb.protocols.logprotocol.SMREntry;
import org.corfudb.protocols.wireprotocol.Token;
import org.corfudb.runti... | true |
7aca0ef702fca2e49585481bc8acfa12bc4d7737 | Java | Larryoops/Repo | /WiFiScanner/src/will/util/Util.java | UTF-8 | 1,563 | 3.140625 | 3 | [] | no_license | package will.util;
import org.apache.commons.math.ConvergenceException;
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.analysis.integration.SimpsonIntegrator;
import... | true |
797563d5d9e180a439ac1da5ae058f29915a0478 | Java | CathLee/mystore | /src/main/java/com/ly/dao/ManagerDao.java | UTF-8 | 1,406 | 2.109375 | 2 | [] | no_license | package com.ly.dao;
import com.ly.model.Administrator;
import com.ly.model.Book;
import com.ly.model.Category;
import com.ly.model.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ManagerDao {
Administrator login(@Param("username") String username,@Param("passw... | true |
893d6cc7dd46d1cb5ce37ea1ef932656576d4ca6 | Java | rvinowise/n_back | /app/src/main/java/org/rvinowise/game/engine/Fps_counter.java | UTF-8 | 1,687 | 2.359375 | 2 | [] | no_license | package org.rvinowise.game.engine;
public enum Fps_counter {
;
//private static final float etalon_framerate = 0.033f;
private static final float etalon_framerate = 0.028f;
static final float fastest_framerate = 0.005f;
static long last_physics_step_moment;
static long last_delay = 0;
... | true |
762418959466968afa9c75f90c3f397d72f67e9a | Java | KyberJeffHason/FA-help | /lotr/client/sound/LOTRRegionTrackPool.java | UTF-8 | 1,402 | 2.625 | 3 | [] | no_license | package lotr.client.sound;
import java.util.*;
import lotr.common.world.biome.LOTRMusicRegion;
public class LOTRRegionTrackPool {
private final LOTRMusicRegion region;
private final String subregion;
private List<LOTRMusicTrack> trackList = new ArrayList<LOTRMusicTrack>();
public LOTRRegionTrackPool(... | true |
a7437fd91f9c2ee3b442b4e913475b25bf84499b | Java | moutainhigh/mumu-flink | /src/main/java/com/lovecws/mumu/flink/streaming/common/handler/HubeiHandler.java | UTF-8 | 1,979 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.lovecws.mumu.flink.streaming.common.handler;
import com.lovecws.mumu.flink.common.annotation.ModularAnnotation;
import com.lovecws.mumu.flink.common.model.atd.AtdEventModel;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
/**
* 对湖北数据进行特殊处理
*/
... | true |
12a8ae76c00a7ea95be5c22b26fb89c31478070f | Java | brettonw/Bedrock | /libraries/base/src/test/java/com/brettonw/bedrock/Base_Test.java | UTF-8 | 363 | 1.742188 | 2 | [
"MIT"
] | permissive | package com.brettonw.bedrock;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class Base_Test extends Base {
public Base_Test () {
}
@Test
public void testBase () {
assertTrue (t... | true |
b1d31f825b728a736d30bec79ce80144934efaa1 | Java | GalaxyXL/ExamJ | /ExamJ-Model/src/main/java/com/galaxyxl/exam/model/Paper.java | UTF-8 | 2,673 | 2.4375 | 2 | [] | no_license | package com.galaxyxl.exam.model;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Entity
public class Paper implements Serializable {
private int id;
private String title;
private Timestamp sta... | true |
d00282191b8719727e9f1241c1868a497d6414b5 | Java | fhnribeiro/trabAspectos | /src/java/percistence/PedidoDAO.java | UTF-8 | 4,776 | 2.796875 | 3 | [] | no_license | package percistence;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import model.Pedido;
import model.PedidoRecebido;
import model.Produto;
impo... | true |
05a37fc00300fe9fb2afa04ef5c650df5a0c6617 | Java | Sulochana25/java | /LogRefreshEvents/src/main/java/com/ggktech/spring/SpringJDBC/App.java | UTF-8 | 464 | 1.929688 | 2 | [] | no_license | package com.ggktech.spring.SpringJDBC;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
public static void main(String[] args) {
ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext("... | true |
03eacfcf2f52981c06954e26882b16d421635dff | Java | auc2/TFG | /src/main/java/cat/udl/eps/softarch/hello/controller/SwimmerController.java | UTF-8 | 15,579 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package cat.udl.eps.softarch.hello.controller;
import cat.udl.eps.softarch.hello.model.Swimmer;
import cat.udl.eps.softarch.hello.model.SwimmerGroup;
import cat.udl.eps.softarch.hello.repository.SwimmerGroupRepository;
import cat.udl.eps.softarch.hello.repository.SwimmerRepository;
import cat.udl.eps.softarch.hello.re... | true |
b4e27f20798692ce02fbf4aae03c44f2efb326d7 | Java | xenion0/Retrofit | /app/src/main/java/com/example/retrofit/pojo/Movie.java | UTF-8 | 2,438 | 2.65625 | 3 | [] | no_license | package com.example.retrofit.pojo;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
public class Movie implements Parcelable {
private Integer page;
private Integer total_results;
private Integer total_pages;
private List<Results> results;
protected Movie(Parcel in) ... | true |
ca7fb0e7e959ba94f1146072b917123a6c9826fa | Java | linbangquan/MultithreadingAndArchitecture | /src/main/java/com/lbq/concurrent/chapter25/SoftLRUCache.java | UTF-8 | 1,754 | 3.390625 | 3 | [] | no_license | package com.lbq.concurrent.chapter25;
import java.lang.ref.SoftReference;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
/**
* 25.3.2 Soft Reference 及 SoftLRUCache
* 当JVM Detect(探测)到内存即将溢出,它会尝试GC soft类型的reference,
* 我们参考LRUCache编写了一个SoftLRUCache。
*
* 在SoftLRUCache中,cache的Value被声明成So... | true |
668e9c8ce1a10b25ab8c5356016ed54693c9d0f5 | Java | AleksandrBorkun/gmail_automation | /src/main/java/com/epam/gmail/page/BasePage.java | UTF-8 | 832 | 2.078125 | 2 | [] | no_license | package com.epam.gmail.page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.epam.gmail.utils.ExplicitWait;
public abstract class BasePage {
@FindBy(xpa... | true |
6f5c88d3c54ef250c6b441338af99efee7d07382 | Java | der62sim79/HumanBeings | /src/at/ta/HumanBeings/Companies.java | UTF-8 | 962 | 3.09375 | 3 | [] | no_license | package at.ta.HumanBeings;
public class Companies {
private String companyName;
private String adress;
private int foundingYear;
private String founder;
public Companies(String companyName, String adress, int foundingYear, String founder) {
this.companyName = companyName;
this.adre... | true |
6a285788d6e8fd536d3c9def0db3a1a484473cbd | Java | Detail0805/DesingPattern | /src/com/detail0805/observer/Client.java | UTF-8 | 550 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package com.detail0805.observer;
public class Client {
public static void main(String[] args) {
//建立接入方 currentConditions
CurrentConditions currentConditions = new CurrentConditions();
//建立 WeatherData 並將 接入方 currentConditions 傳遞到 WeatherData中
WeatherData weatherData = new WeatherData(currentConditions);
... | true |
0f2501f9a5092d9f701ddfec43ac41371591f315 | Java | zihenguncle/1228 | /week2/src/main/java/jx/com/week2/okhttp/OkHttpUtils.java | UTF-8 | 3,411 | 2.34375 | 2 | [] | no_license | package jx.com.week2.okhttp;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Handler;
import android.os.Looper;
import com.google.gson.Gson;
import org.greenrobot.eventbus.EventBus;
import java.io.IOException;
import java.util.Map;
import jav... | true |
d1a4854ff434e6c8057010b4db0dd9dff71814a8 | Java | Appdynamics/UserAudit | /src/main/java/com/appdynamics/pojo/Group.java | UTF-8 | 408 | 2 | 2 | [] | no_license | package com.appdynamics.pojo;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter @Setter @ToString
@JsonPropertyOrder({"id", "name", "description", "userName", "roleName"})
public class Group {
private String id;
private String na... | true |
e7558426220c33a089eda1bf58260b0f2d72cd89 | Java | moutainhigh/communityapi | /IdeaProjects/openapireceive/.svn/pristine/65/651dca0aa392ba256b2a23974b942fef3e74e42f.svn-base | UTF-8 | 984 | 1.875 | 2 | [] | no_license | package net.okdi.api.controller;
import net.okdi.api.service.SmsInterceptionService;
import net.okdi.core.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... | true |
d8f239f467af10243ead14b3593d3d174793336c | Java | TheShermanTanker/Server-1.16.3 | /it/unimi/dsi/fastutil/doubles/Double2LongFunctions.java | UTF-8 | 11,308 | 3.03125 | 3 | [] | no_license | package it.unimi.dsi.fastutil.doubles;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.function.DoubleToLongFunction;
import java.util.Objects;
import java.util.function.Function;
public final class Double2LongFunctions {
public static final EmptyFuncti... | true |
0de6c1277b9305b0acc4f09a48d80cbdaaca9456 | Java | MMarioB/SensorPelota | /app/src/main/java/com/example/sensorpelota/Pelota.java | UTF-8 | 2,375 | 2.390625 | 2 | [] | no_license | package com.example.sensorpelota;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import... | true |
eefb046cf42e1e4aded35388302bd2e93cffb863 | Java | srijan2000/java_examples | /src/com/srijan/day8/Example.java | UTF-8 | 407 | 3.421875 | 3 | [] | no_license | package com.srijan.day8;
public class Example{
public static void main(String args[]){
int x,y,z;
try{
x = 5;
y = 0;
z = x / y;
System.out.println("The output for z cannot be executed.");
}
catch(ArithmeticException e)
{
... | true |
5683e8dbf079de51e90b11670909c9eabb5a51cb | Java | zhaoshiling1017/ssh-platform | /src/cn/it/shop/service/SorderService.java | UTF-8 | 582 | 2 | 2 | [
"MIT"
] | permissive | package cn.it.shop.service;
import java.util.List;
import cn.it.shop.model.Forder;
import cn.it.shop.model.Product;
import cn.it.shop.model.Sorder;
public interface SorderService extends BaseService<Sorder> {
//添加购物项,返回新的购物车
public Forder addSorder(Forder forder, Product product);
//把商品数据转化为购物项
public Sorder pro... | true |
305ec439fb27975d1411df43312f9910475f8238 | Java | dkgv/ppefp | /src/main/java/com/gustavvy/ppefp/strategy/MinMaxNormalizer.java | UTF-8 | 1,157 | 3.171875 | 3 | [] | no_license | package com.gustavvy.ppefp.strategy;
import com.gustavvy.ppefp.model.Candlestick;
import com.gustavvy.ppefp.model.Segment;
/**
* MinMaxNormalizer.java
*
* @author Gustav V. Y.
*/
public class MinMaxNormalizer implements Normalizer {
@Override
public Segment normalize(Segment segment) {
var cs = segment.candl... | true |
0b9b34ed37af85e9cdef6420cbd54795c3bf1285 | Java | Idonius/rsp | /ProcessFile/src/com/corvustec/facee/files/dto/util/impl/ArchivoComprobanteRetencion.java | UTF-8 | 803 | 2.21875 | 2 | [] | no_license | /**
*
*/
package com.corvustec.facee.files.dto.util.impl;
import java.io.File;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author wilmerPC
*
*/
public class ArchivoComprobanteRetencion extends Archivo{
private final static Logger logger = LoggerFact... | true |
591b688aab1978375285c4bc0b4f571afcfb129c | Java | DavidXiangjh/wxweb | /HelloWorld/src/com/ecc/liana/loaf/LoafQueryCommon.java | GB18030 | 6,525 | 1.992188 | 2 | [] | no_license | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008 e-Channels CORPORATION
//
// ALL RIGHTS RESERVED BY e-Channels CORPORATION, THIS PROGRAM
// MUST BE USED SOLELY FOR THE PURPOSE FOR WHICH IT WAS
// FURNISHED BY e-Channels CORPORATION, NO PART OF THIS PROGRAM
// MA... | true |
b575bb06a9b1718dd6293fb414929be769ea4d18 | Java | suevip/admin-maven-frame | /src/main/java/com/admin/solr/model/OrderForm.java | UTF-8 | 1,645 | 2.078125 | 2 | [] | no_license | package com.admin.solr.model;
import java.sql.Date;
import java.sql.Timestamp;
/**
* 订单
* @author lizhixian
* @version 1.0
* @date 2015-9-11 上午10:55:21
*/
public class OrderForm {
private Integer id;
private Integer iid;
private String title;
private Double price;
private Integer num;
private String type;... | true |
4bf0cb1f8eff61348b2cd66ba9cc3ebaa121a173 | Java | desenG/tripmap | /appifymap/MapsActivity.java | UTF-8 | 10,724 | 2.203125 | 2 | [] | no_license | package com.djcanadastudio.appifymap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.location.Address;
import android.location.Geocoder;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.KeyEve... | true |
9ab57b4e2528694f56e464058130c9bf7332826e | Java | wannawannawanna/MyInterview | /LeetCode/116_PopulatingNextRightPointersInEachNode.java | UTF-8 | 1,385 | 3.8125 | 4 | [] | no_license | /*
// Definition for a Node.
class Node {
public int val;
public Node left;
public Node right;
public Node next;
public Node() {}
public Node(int _val) {
val = _val;
}
public Node(int _val, Node _left, Node _right, Node _next) {
val = _val;
left = _left;
... | true |
4a736c8bd0fe8af67e66d06677750d59ca49d36f | Java | erguculu/jeeinit | /src/main/java/com/example/mycommercex/InsertSomeProductServlet.java | UTF-8 | 928 | 2.34375 | 2 | [] | no_license | package com.example.mycommercex;
import com.example.mycommercex.bo.MyProduct;
import com.example.mycommercex.dao.MyProductDao;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | true |
44ac6d6a02a16127d5e87ff05b0048ad8283866e | Java | dbg4f/dbg-boggie-control | /src/dbg/misc/calc/CncCalc.java | UTF-8 | 7,907 | 2.546875 | 3 | [] | no_license | package dbg.misc.calc;
/**
*/
public class CncCalc {
/*
*
Y * ************ C
* B **** *
* *** *
* **** *
* * *
* * *
* * *
* * *
* * *
* *
* ****... | true |
e9cad7d1e6f5a84ebefe4b54a7c323aea1de7cbb | Java | MrZheng99/springcloud | /user-server/src/main/java/com/zj/user/entity/User.java | UTF-8 | 3,664 | 2.375 | 2 | [
"MIT"
] | permissive | package com.zj.user.entity;
/**
* 用户实体类
*
* @author ZM
* @date 2020年9月1日
*/
public class User {
private Integer uid;
private String uname;// 账户名
private String pwd;
private String account;
private String sex;
private String tel;
private String email;
private String headImg; // 头像url
private String statu... | true |
32d90d7e8401c387a1fd0710d22d294e8e4ae401 | Java | kotnikd3/dropwizard-microservice | /cgsrwis-api/src/main/java/com/cgs/jt/rwis/srvcs/validation/WeatherConditionDescriptorParamsValidation.java | UTF-8 | 1,331 | 2.015625 | 2 | [] | no_license | /*
* Copyright (c) 1990, 2020, CGS Labs d.o.o and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Please contact CGS Labs d.o.o., Brnciceva ul. 13, SI-1000 Ljubljana, Slovenia
* or visit www.cgs-labs.com if you need additional information or have any que... | true |
5494d71c798157f59662ca1ab525466af63d67f5 | Java | paullewallencom/junit-978-1-93239-423-8 | /_src/TestJdbc/test/source/junit/cookbook/addons/jdbc/live/test/FindProductsTest.java | UTF-8 | 2,487 | 2.15625 | 2 | [] | no_license | package junit.cookbook.addons.jdbc.live.test;
import java.io.File;
import java.sql.*;
import java.util.Set;
import javax.sql.DataSource;
import junit.cookbook.coffee.data.CatalogStore;
import junit.cookbook.coffee.data.jdbc.CatalogStoreJdbcImpl;
import junit.framework.*;
import junitx.util.ResourceManager... | true |
285b478599369b4c01e392b785cdce05fe3e5f2f | Java | 1909sept03java/ambiorix-cruzangeles | /Reimbursement/src/main/java/com/revature/servlet/LoginServlet.java | UTF-8 | 3,079 | 2.609375 | 3 | [] | no_license | package com.revature.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.revature.beans.Credentials;
import com... | true |
d3baff33a51547af581c6edffae56455d3096e55 | Java | MartinStCyr/Java-Programs | /FantasyBattle/src/Main.java | UTF-8 | 582 | 3.125 | 3 | [] | no_license |
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.JFrame;
public class Main {
public static void main(String[] args)
{
GamePanel myPanel = new GamePanel();
//Create the window
JFrame window = new JFrame("Fantasy Battle");
window.setResizable(false);
//Set t... | true |
c1605b0baf29e55cd34c76be7731ee642ab4fe5a | Java | MC-U-Team/Useful-Resources | /src/main/java/info/u_team/useful_resources/resource/AbstractResourceBuilder.java | UTF-8 | 4,304 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package info.u_team.useful_resources.resource;
import java.util.function.Consumer;
import java.util.function.Supplier;
import com.google.common.base.Suppliers;
import info.u_team.useful_resources.api.registry.ExistingRegistryEntry;
import info.u_team.useful_resources.api.registry.ResourceTypeKey;
import info.u_team.... | true |
0af7a88c899ef3aa3ad7521b740f5e538e503a9a | Java | OleksandrPavlov/source-it_final_project_tester_webapp | /tester/src/main/java/tester/filter/loginFilter.java | UTF-8 | 1,063 | 2.0625 | 2 | [] | no_license | package tester.filter;
import com.sun.org.apache.bcel.internal.classfile.Constant;
import tester.Constants;
import tester.service.LogService;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotat... | true |
9c88add983893dc1c729b7fce1a3cbc08d3d9f2c | Java | Arzio/RaidableBases | /src/main/java/com/arzio/raidablebases/event/BaseBlockRepairEvent.java | UTF-8 | 1,465 | 2.625 | 3 | [
"MIT"
] | permissive | package com.arzio.raidablebases.event;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import com.arzio.raidablebases.data.BaseDamage;
import com.arzio.raidablebases.data.BlockDamage;
/**
* Event about a player repairing a base block.
* @author Arzio
*
*... | true |
8e9882b59f6256fba54966fa50cb6b77274d0916 | Java | peng49/fly | /fly-admin/src/main/java/fly/admin/repository/AdminMenuRepository.java | UTF-8 | 219 | 1.554688 | 2 | [
"MIT"
] | permissive | package fly.admin.repository;
import fly.admin.entity.model.AdminMenu;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AdminMenuRepository extends JpaRepository<AdminMenu, Integer> {
}
| true |
2e2a8c23c39e4d7c331907c68b25cdb05e2517f0 | Java | tedwon/core | /gui/src/main/java/org/jboss/as/console/client/shared/subsys/elytron/ui/mapper/ElytronMapperView.java | UTF-8 | 5,580 | 1.53125 | 2 | [] | no_license | /*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* 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... | true |
7667cb3da8385d64c807ce75004eeb98c270a614 | Java | KoryakinGG/Java3 | /Maven1/src/main/java/Lesson4/ObjectsABC.java | UTF-8 | 1,512 | 3.65625 | 4 | [] | no_license | package Lesson4;
public class ObjectsABC {
private final Object obj = new Object();
private volatile char litera = 'A';
public void printA() {
synchronized (obj) {
try {
for (int i = 0; i < 5; i++) {
while (litera != 'A') obj.wait();
... | true |
f521d0ccec422bd0f1a2b087ffe182a8b9df4228 | Java | nasirbashak/GuessTheNumberGame | /app/src/main/java/com/nasirbashak007/guessthenumber/MainActivity.java | UTF-8 | 3,044 | 2.484375 | 2 | [] | no_license | package com.nasirbashak007.guessthenumber;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Anim... | true |
67f0542116d377d02c057c220fef8a4e42a3a802 | Java | DanBinyamin/StroageRoom | /src/Model/ProdctOrderSpacificSave.java | UTF-8 | 1,873 | 2.703125 | 3 | [] | no_license | package Model;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;
import Controller.Proudct;
public class ProdctOrderSpacificSave
{
//this class Save a spacificProudcts From the list
public static void WriteProudct(List<Proudct... | true |
3ad4991cb05ffd8965e4c1b4390723178e4e86da | Java | glassrose/SPOJ | /src/hacker_earth/GCDGame.java | UTF-8 | 3,072 | 2.921875 | 3 | [] | no_license | /*
* The MIT License
*
* Copyright 2014 chandni.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | true |
948d28d2771a42d33a88e706f279684f0ad4a86d | Java | ajlazy/Day7 | /src/com/capgemini/day7/Q2NumberOfLinesTest.java | UTF-8 | 285 | 1.851563 | 2 | [] | no_license | package com.capgemini.day7;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class Q2CountnumberOflinesTest {
@Test
void testnoOfLines() {
assertEquals(5,Q2NumberOfLines.testnoOfLines());
System.out.println();
}
}
| true |
fa9402c8970fa44d5cfb1e8ba30704d5263305bd | Java | longxionga/mingruida | /src/main/java/com/acl/platform/controller/PlatformSendGoodsController.java | UTF-8 | 3,834 | 1.960938 | 2 | [] | no_license | package com.acl.platform.controller;
import com.acl.core.CoreBaseController;
import com.acl.platform.service.PlatformSendGoodsService;
import com.acl.pojo.LoginSession;
import com.acl.utils.paginator.domain.Order;
import com.acl.utils.paginator.domain.PageBounds;
import com.acl.utils.paginator.domain.PageList;
import ... | true |
878315882a0350154ec000e880a5cfc9d1207a35 | Java | BlinkMMM/Decoration | /src/main/java/com/decoration/service/MaterialService.java | UTF-8 | 2,167 | 2.015625 | 2 | [] | no_license | /**
*
*/
package com.decoration.service;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;
import com.decoration.bean.MaterialBean;
import com.decoration.entity.MaterialEnter;
import com.decoration.entity.MaterialUse;
import util.Page;
/**
* @author zhenghan
* 2017年4月... | true |
b738526e0f674d44f7005e1dad664e899c92b095 | Java | kobelee/open-gateway | /gateway/src/main/java/cn/kobelee/gateway/config/GatewayConfiguration.java | UTF-8 | 3,234 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package cn.kobelee.gateway.config;
import cn.kobelee.gateway.cache.RouteConfigHolder;
import cn.kobelee.gateway.feign.OpenGatewayManageFeignClient;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHtt... | true |
817736a49c481e7907e9bf3bd3b36e22f2ff69c2 | Java | Titashr/SpringRestMySQL | /src/main/java/com/example/mysqlDemo/controller/CustController.java | UTF-8 | 835 | 2.109375 | 2 | [] | no_license | package com.example.mysqlDemo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.anno... | true |
b9d6f718abe6d8f3f69f44b6e90d5b69bd089da5 | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/MaterialTest_render.java | UTF-8 | 521 | 2.140625 | 2 | [] | no_license | @Override
public void render() {
counter = (counter + Gdx.graphics.getDeltaTime()) % 1.f;
blendingAttribute.opacity = 0.25f + Math.abs(0.5f - counter);
Gdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
mod... | true |
a5bcaa1f711cdd48d848c0359bff4f14bc56eafd | Java | initLiu90/JsBridge | /library/src/main/java/com/lzp/jsbridge/library/JsBridgeNativeInterface.java | UTF-8 | 623 | 2.171875 | 2 | [] | no_license | package com.lzp.jsbridge.library;
public interface JsBridgeNativeInterface {
/**
* 设置JsBridgeInterface
*
* @param jsBridgeInterce
*/
void setJsBridgeInterce(Object jsBridgeInterce);
/**
* Native端处理js请求消息的Handler
*
* @param handler
*/
void registeMsgHandler(JsBri... | true |
7b9488636fb4394677ea7273a22325175d358ad9 | Java | ivory627/KIVIEW | /KIVIEW_develop/src/main/java/com/mvc/kiview/model/vo/FavoriteVo.java | UTF-8 | 738 | 2.09375 | 2 | [] | no_license | package com.mvc.kiview.model.vo;
public class FavoriteVo {
private String favorite_no;
private String kinder_no;
private String member_no;
public String getFavorite_no() {
return favorite_no;
}
public void setFavorite_no(String favorite_no) {
this.favorite_no = favorite_no;
}
public String getKinde... | true |
222d2ae1d3d0b44353d65cb798cd5bcdafd4a748 | Java | junior703/Acme_Shop-new | /src/controllers/ControllerReportesCompras.java | UTF-8 | 4,049 | 2.078125 | 2 | [] | no_license |
package controllers;
import models.ModelReportesCompras;
import views.ViewReportesCompras;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputStream;
import java.io.InputStream;
import javax.swing.JOptionPane;
import net.sf.jasperreports.engine.JasperCompileManager;
impor... | true |
daebaea542f3f56bbc48cecf33020c423f07b1e2 | Java | happyhappyyay/Landscape-Record | /app/src/main/java/com/happyhappyyay/landscaperecord/activity/AddCustomer.java | UTF-8 | 4,520 | 2.40625 | 2 | [] | no_license | package com.happyhappyyay.landscaperecord.activity;
import android.content.Context;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
impo... | true |
d0b434a6cc0627b8bf6614b6487ce9b367b0bc52 | Java | LindvedKrvang/ReallyBadZuul | /src/bll/CommandWords.java | UTF-8 | 1,983 | 3.6875 | 4 | [] | no_license | package bll;
import bll.CommandWord;
import java.util.HashMap;
/**
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
*
* This class holds an enumeration of all command words known to the game.
* It is used to recognise commands as they ar... | true |
5a94bf0d566af3e8970971a391663ae9b071ec1a | Java | Elscha/DBImporter | /src/net/ssehub/dbCreator/tables/LinuxTable.java | UTF-8 | 2,320 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package net.ssehub.dbCreator.tables;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLIntegrityConstraintViolationException;
import java.sql.Statement;
import net.ssehub.dbCreator.Runner;
public class LinuxTable {
private P... | true |
68bb6e2feaa983b3ca57d5e71df77837bbc1590a | Java | alejandro-curci/bootcamp-java-clase02 | /ejercicio02/Main.java | UTF-8 | 367 | 2.578125 | 3 | [] | no_license | package ejercicio02;
public class Main {
public static void main(String[] args) {
Contador c = new Contador();
c.incrementar();
c.incrementar();
c.incrementar();
System.out.println("Contador: " + c.getCount());
c.disminuir();
c.disminuir();
System.out... | true |
9326515ec7a535a6e78c6a3ed28950af1d283452 | Java | kaneki2610/webpasokon | /app/src/main/java/com/example/dell/myapplication14/Model/ProductDetail/ProductDetailModel.java | UTF-8 | 6,087 | 2.203125 | 2 | [] | no_license | package com.example.dell.myapplication14.Model.ProductDetail;
import android.util.Log;
import com.example.dell.myapplication14.Config.Config;
import com.example.dell.myapplication14.DowloadJSON.DowloadJSON;
import com.example.dell.myapplication14.Model.Object.DigitalInfo;
import com.example.dell.myapplication14.Model... | true |
c23edb063cc09997f0e2bf03519a97e8ce78a055 | Java | Yang-Pi/Java-core | /src/main/java/spbstuWorks/work3/ClassRoom.java | UTF-8 | 1,238 | 3.296875 | 3 | [] | no_license | package spbstuWorks.work3;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class ClassRoom implements Runnable {
static final int CLASSROOM_SIZE = 10;
static private Block... | true |
5b95f139c86c65faf802ba14d1eee54be403e22b | Java | guskuma/GradleFinalProject | /app/src/androidTest/java/com/udacity/gradle/builditbigger/BackendTest.java | UTF-8 | 687 | 1.703125 | 2 | [] | no_license | package com.udacity.gradle.builditbigger;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.LargeTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class B... | true |
beb85feea8599d3111cd1babcac422259b78bf60 | Java | Pagolin/climbingTracker | /app/src/main/java/mietzekatze/climbingtracker/dataHandling/DatePickerFragment.java | UTF-8 | 2,790 | 2.375 | 2 | [] | no_license | package mietzekatze.climbingtracker.dataHandling;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Context;
import android.icu.text.SimpleDateFormat;
import android.icu.util.Calendar;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support... | true |
558a4a6fbf4b397e2d13c333dcbd4c0dd03cfcc8 | Java | AdamHymn/AndroidZoo | /app/src/main/java/com/bm/wb/ui/zoo/WebActivity.java | UTF-8 | 825 | 1.710938 | 2 | [] | no_license | package com.bm.wb.ui.zoo;
import android.os.Bundle;
import android.view.View;
import zoo.hymn.base.ui.WebBaseActivity;
import zoo.hymn.views.EaseTitleBar;
/**
* ClassName: WebActivity
* Function :
* Author : Hymn【向下扎根,向上结果】
* Email : ayang139@qq.com
* Date : 2017/6/20
*/
public class WebActivity ext... | true |
53f59303f1b57c792965d300f3fda8fde74a6311 | Java | s15701651967/MyCalculate | /src/main/java/com/example/mycalcilate_demo/scale.java | UTF-8 | 7,529 | 2.25 | 2 | [] | no_license | package com.example.mycalcilate_demo;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
imp... | true |
b3eb846ba88687f4af08be0cf1de3ed91e4e7bc8 | Java | GuoTailor/IBMS | /src/main/java/com/ibms/demo/service/UnitService.java | UTF-8 | 2,627 | 2.15625 | 2 | [] | no_license | package com.ibms.demo.service;
import com.github.pagehelper.PageHelper;
import com.ibms.demo.mapper.UnitMapper;
import com.ibms.demo.pojo.PageView;
import com.ibms.demo.pojo.Role;
import com.ibms.demo.pojo.Unit;
import com.ibms.demo.pojo.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import o... | true |
ef9aba3e89f147563ee39237328321fbf874e980 | Java | shaozhijun/weixin-sdk | /weixin-sdk-qy/src/main/java/com/shaozj/sdk/qy/api/bean/req/message/ImageMessage.java | UTF-8 | 898 | 2.234375 | 2 | [] | no_license | package com.shaozj.sdk.qy.api.bean.req.message;
/**
*
* 文件描述: 图片消息<br>
* 版权所有: Copyright (c) 2019年5月21日 YAPPAM, LTD.CO<br>
* 完成日期: 2019年5月21日 下午3:27:22<br>
*
* @author szj
* @since 1.1.0
*
*/
public class ImageMessage extends WxMessage{
private Image image;
public ImageMessage() {
t... | true |
6c56b60e2c4d31f6aa968843402359ac1490dab9 | Java | legionario07/ProjetoPernaMobile | /app/src/main/java/br/com/omniatechnology/pernavendas/pernavendas/api/IProdutoService.java | UTF-8 | 946 | 1.914063 | 2 | [
"MIT"
] | permissive | package br.com.omniatechnology.pernavendas.pernavendas.api;
import java.util.List;
import br.com.omniatechnology.pernavendas.pernavendas.model.Mercadoria;
import br.com.omniatechnology.pernavendas.pernavendas.model.Produto;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrof... | true |
764b2027d67fce4ba24206d6cf084be1323be3bc | Java | truegff/onmap | /src/main/java/ge/lanmaster/onmap/root/client/mvp/AppPlaceController.java | UTF-8 | 338 | 1.53125 | 2 | [] | no_license | package ge.lanmaster.onmap.root.client.mvp;
import com.google.gwt.place.shared.PlaceController;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
public class AppPlaceController extends PlaceController {
@Inject
public AppPlaceController(EventBus eventBus) {
super(e... | true |
21b4a0425575a4ccaac66e66197d198699c91207 | Java | Brun333rp/Penguin-Lib | /src/main/java/uk/joshiejack/penguinlib/util/icon/TagIcon.java | UTF-8 | 1,326 | 2.171875 | 2 | [
"MIT"
] | permissive | package uk.joshiejack.penguinlib.util.icon;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.network.PacketBuffer;
import net.minecraft.tags.ITag;
i... | true |
514ac008c070bf5a552a0f03dcf3610af820fde8 | Java | AFranco92/prog1 | /SimularBanco.java | MacCentralEurope | 2,730 | 2.96875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class SimularBanco {
public static void main(String[] args) {
BufferedReader entrada = new BufferedReader(new InputStreamReader(System.in));
try {
System.out.println("Ingrese string para iniciar primera parte: ");
String opcion = ent... | true |
47162ee844741b33e8195a51001c4f80a212146b | Java | agrison/legacy4j | /src/main/java/me/grison/legacy4j/engine/mappers/PrimitiveTypesMapper.java | UTF-8 | 2,518 | 2.828125 | 3 | [] | no_license | package me.grison.legacy4j.engine.mappers;
import java.lang.reflect.Field;
import me.grison.legacy4j.annotation.FixedLengthField;
import me.grison.legacy4j.annotation.feature.QuoteField;
import me.grison.legacy4j.annotation.feature.TrimField;
import me.grison.legacy4j.util.Trim;
/**
* Standard mapper for primitive ... | true |
703fcb5d23da3aa5e0836debd31cc4bb498276ae | Java | P79N6A/icse_20_user_study | /methods/Method_6603.java | UTF-8 | 2,113 | 2.3125 | 2 | [] | no_license | private HashMap<String,String> getLocaleFileStrings(File file,boolean preserveEscapes){
FileInputStream stream=null;
reloadLastFile=false;
try {
if (!file.exists()) {
return new HashMap<>();
}
HashMap<String,String> stringMap=new HashMap<>();
XmlPullParser parser=Xml.newPullParser();
str... | true |
54c00592b6dcda5fd1d9c76405aa7dfbdf85bc6e | Java | Sakib2263/Data-and-Telecommunications-Lab-Experiments | /Data & Telecommunications Lab Experiments/ParityCheck/src/datacom1/Client.java | UTF-8 | 1,952 | 2.984375 | 3 | [] | no_license | package datacom1;
import java.io.*;
import java.net.*;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Client {
static Socket echoSocket;
static PrintWriter out;
static BufferedReader stdIn;
static String hostName = "172.16.13.211";
static ... | true |
072194b9c00abade0575fd045e04b147ba7a89a6 | Java | aosp-mirror/platform_frameworks_base | /core/java/com/android/internal/app/ResolverMultiProfilePagerAdapter.java | UTF-8 | 6,003 | 1.851563 | 2 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |