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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d40115a7bb0b8c78f349db76c24c1668ece9319f | Java | lukassaul/IBEX-LO-Flight-Pha-GUI | /Chopper.java | UTF-8 | 989 | 3.171875 | 3 | [] | no_license | import java.util.Random;
public class Chopper {
public static int skipLines = 35;
public int factor = 10;
public Random r;
public Chopper(String fn, int factor) {
r = new Random();
this.factor = factor;
file inFile = new file(fn);
file outFile = new file(fn.substring(0,fn.length()-4)+"_choppedBy_... | true |
c207e4448594085f8f3e83eb83ff928fe18c86b5 | Java | liuyiyou/cn.liuyiyou.dp | /src/main/java/cn/liuyiyou/dp/structural/decorator/StringDisplay.java | UTF-8 | 639 | 3.21875 | 3 | [] | no_license | package cn.liuyiyou.dp.structural.decorator;
/**
* User: liuyiyou
* Date: 14-8-11
* Time: 下午3:57
*/
public class StringDisplay extends Display {
private String string;
public StringDisplay(String string) {
this.string = string;
}
@Override
int getColumns() {
return string.get... | true |
04af6206c42da853b00b4af076b80fa473e3eb6b | Java | joao-de-melo/xoai | /xoai-data-provider/src/main/java/org/dspace/xoai/dataprovider/util/PartialList.java | UTF-8 | 2,099 | 2.390625 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.xoai.dataprovider.util;
import java.util.AbstractCollection;
import java.util.Colle... | true |
9fa4f92cd699047d7ce58da7278abd7271de0020 | Java | mio4kon/mio-lyc | /core-sdk/src/main/java/mio/kon/sdk/support/fragment/CoreBaseFragment.java | UTF-8 | 6,439 | 2.34375 | 2 | [] | no_license | package mio.kon.sdk.support.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget... | true |
19a9dde70fa5dde64d740c7ff603beea60a7308e | Java | streeck/compiladores | /src/AST/IfStatement.java | UTF-8 | 613 | 2.609375 | 3 | [] | no_license | /* ------------------------------
Charles David de Moraes RA: 489662
Vitor Kusiaki RA: 408140
------------------------------ */
package AST;
import java.util.ArrayList;
public class IfStatement extends Statement {
final private ExpressionStatement expression;
final private ArrayList<Statement> thenSt... | true |
2a269b2986ef5fd0ea18c34c6b8b0a465aea06be | Java | jaceyca/CS122 | /src/edu/caltech/nanodb/indexes/IndexUtils.java | UTF-8 | 16,175 | 2.640625 | 3 | [] | no_license | package edu.caltech.nanodb.indexes;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import edu.caltech.nanodb.expressions.TupleLiteral;
import edu.caltech.nanodb.relations.ColumnRefs;
import edu.caltech.nanodb.relations.ColumnInfo;
import... | true |
5ee5e3e410afe07e8dad4ad30bac025c7a710129 | Java | lilingqian/DELULJQ | /app/src/main/java/com/example/lenovo/de_lu_ljq/presenter/RegPresenter.java | UTF-8 | 936 | 2.1875 | 2 | [] | no_license |
package com.example.lenovo.de_lu_ljq.presenter;
import com.example.lenovo.de_lu_ljq.view.MyView;
import com.example.lenovo.de_lu_ljq.bean.RegBean;
import com.example.lenovo.de_lu_ljq.model.ModelCallBack;
import com.example.lenovo.de_lu_ljq.model.RegModel;
public class RegPresenter {
RegModel regModel = new RegM... | true |
b8d55476bca2c2334fa78120aca38ea3d5ebb395 | Java | David-bfg/HospitalWeb-Services | /MayoWS/src/com/mayo/db/StudyRest.java | UTF-8 | 3,050 | 2.71875 | 3 | [] | no_license | package com.mayo.db;
import java.util.Date;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
public class StudyRest {
SessionFactory session;
public static StudyRest instance = null;
private StudyRest()
{
session = HibernateUtil.getSess... | true |
9591056121987674f68e561954d66f064552a695 | Java | wuhuiying/Video | /app/src/main/java/quarter/perfect/com/quarternew/util/QuarterViewPage.java | UTF-8 | 3,062 | 2.046875 | 2 | [] | no_license | package quarter.perfect.com.quarternew.util;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.wi... | true |
5b68323ea1885325e50f6b6e78fe6e5db4fe12cb | Java | andrewdeberardinis/TV-Program | /TV Program/src/ProgramMaker.java | UTF-8 | 1,521 | 3.375 | 3 | [] | no_license | import java.util.ArrayList;
public class ProgramMaker
{
static ArrayList <Program> TVShows = new ArrayList <Program>();
public static void main(String[] args)
{
addingPrograms();
printList();
}
public static void addingPrograms()
{
TVShows.add(new Program("Soccer Show... | true |
b3218cb7e5bfc8a856077403351349a154d75fcd | Java | BiswasTanmay/covid-19-cowin-api | /src/main/java/com/tbiswas/covid19/cowin/model/StateListDto.java | UTF-8 | 259 | 1.882813 | 2 | [] | no_license | package com.tbiswas.covid19.cowin.model;
import lombok.Data;
@Data
public class StateListDto {
public StateDto[] states;
public StateDto[] getStates() {
return states;
}
public void setStates(StateDto[] states) {
this.states = states;
}
}
| true |
dd94f6aecefffe18884035a4358dbc679051ab1c | Java | ZakharchenkoWork/RateOfExchange | /app/src/main/java/com/hast/exchangerate/general/db/DatabaseHelper.java | UTF-8 | 3,226 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.hast.exchangerate.general.db;
/**
* Created by Konstantyn Zakharchenko on 30.05.2017.
*/
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.... | true |
0ae1e7625b9a07d3809fa87b20b269ce9d4f61d3 | Java | slevental/nlp | /core/src/main/java/org/slevental/anaphora/core/serial/JsonProvider.java | UTF-8 | 6,174 | 2.1875 | 2 | [] | no_license | package org.slevental.anaphora.core.serial;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
import org.slevental.anapho... | true |
8bd8921bfe73d406f54b68e4b3dc78c023fa7fdd | Java | timandy/linq | /src/main/java/com/bestvike/linq/debug/Debugger.java | UTF-8 | 6,759 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.bestvike.linq.debug;
import com.bestvike.collections.generic.ICollection;
import com.bestvike.linq.IEnumerable;
import com.bestvike.linq.Linq;
import com.bestvike.linq.exception.InvalidOperationException;
import com.bestvike.out;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import... | true |
f5b2a1639297936e63e43996f04e9e1cc69d498a | Java | alenafdr/ProjectManagementSystemHibernate | /src/main/java/service/DeveloperService.java | UTF-8 | 976 | 2.453125 | 2 | [] | no_license | package service;
import model.Developer;
import service.DAO.HibernateDeveloperDAO;
import java.util.List;
public class DeveloperService implements GenericService<Developer, Integer> {
HibernateDeveloperDAO jdbcDeveloperDAO = new HibernateDeveloperDAO();
@Override
public boolean save(Developer developer... | true |
17b6ed817b72b0d7740d61ac72b87591b6b5342b | Java | benoitantelme/javastuff | /src/com/java/stuff/datastructures/heap/MaxHeap.java | UTF-8 | 1,406 | 3.9375 | 4 | [] | no_license | package com.java.stuff.datastructures.heap;
import java.util.Arrays;
public class MaxHeap {
public void sort(int arr[]) {
int n = arr.length;
// Build heap
for (int i = n / 2 - 1; i >= 0; i--)
heapify(arr, n, i);
for (int i = n - 1; i >= 0; i--) {
// Move... | true |
f5f7705ce6745a058bf330ba533aa23f4d71fb51 | Java | RenJie233/TestDemo | /app/src/main/java/com/example/dllo/testdemo/MainActivity.java | UTF-8 | 639 | 2.03125 | 2 | [] | no_license | package com.example.dllo.testdemo;
import android.view.View;
import android.widget.TextView;
import com.example.dllo.testdemo.base.BaseAty;
public class MainActivity extends BaseAty implements View.OnClickListener {
private TextView mainTv;
@Override
protected int getLayout() {
return R.layout.... | true |
67b15a3c9d20d464c138e35d1925a65351a4d99d | Java | jperiapandi/and-thirukkural | /app/src/main/java/com/jpp/and/thirukkural/model/Part.java | UTF-8 | 929 | 2.515625 | 3 | [] | no_license | package com.jpp.and.thirukkural.model;
/**
* Created by jperiapandi on 05-07-2016.
*/
public class Part implements ListItem {
private int _id;
private String title;
private int sectionId;
private int numOfChapters = 0;
public int get_id() {
return _id;
}
public void set_id(in... | true |
fa6fabab80c764c4cfde61395894bf60bb728051 | Java | archyoshi/CashRegister | /src/main/java/cashregister/ItemReference.java | UTF-8 | 1,120 | 3.125 | 3 | [
"MIT"
] | permissive | package cashregister;
class ItemReference {
private final String itemCode;
private final Price unitPrice;
private ItemReference(String itemCode, Price unitPrice) {
this.itemCode = itemCode;
this.unitPrice = unitPrice;
}
static Builder aReference() {
return new Builder();
... | true |
5e297eaefedf34a28b4f03f246aa35d6b39655b9 | Java | kodaji/doitfive | /admin/src/main/java/com/ckstack/ckpush/common/validator/ByteSize.java | UTF-8 | 891 | 2.1875 | 2 | [] | no_license | package com.ckstack.ckpush.common.validator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by dhkim94 on 15. 4. 9..
* ... | true |
1580b6bcdfa4813d75de462cbb974e8e967e861e | Java | ersalye/TripTracker | /core/src/main/java/com/antonchaynikov/core/data/model/Trip.java | UTF-8 | 1,945 | 2.8125 | 3 | [] | no_license | package com.antonchaynikov.core.data.model;
import androidx.annotation.Keep;
import com.google.firebase.firestore.PropertyName;
import java.util.Objects;
@Keep
public class Trip {
public static final String FIELD_NAME_START_DATE = "startDate";
private static final String FIELD_NAME_END_DATE = "endDate";
... | true |
19f7c56573052814e0428d4f823ef152ed8a1fbf | Java | nirvdrum/tapestry5 | /tapestry-core/src/main/java/org/apache/tapestry5/internal/test/ComponentEventInvoker.java | UTF-8 | 3,933 | 1.96875 | 2 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"MIT",
"Apache-2.0",
"MIT-0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MPL-1.1",
"CC-BY-2.5"
] | permissive | // Copyright 2006, 2007, 2008 The Apache Software Foundation
//
// 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 ... | true |
a3f297d075a9f817338e460d6fa692d3b0854050 | Java | esaycode/distributed_sequence | /com.easy.code.sequence.service.impl/src/main/java/com/easy/code/sequence/service/impl/IdSequenceServiceImpl.java | UTF-8 | 1,059 | 2.234375 | 2 | [] | no_license | package com.easy.code.sequence.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.easy.code.sequence.dao.IdSequenceDao;
import com.easy.code.sequence.dao.model.IdSequenceModel;
import com.easy.code.sequence.service.IdSequenceService;
... | true |
d8febb3009d63cb6959e7cb9f58336c66dc931f7 | Java | riverwall/rele2 | /src/main/java/sk/hlavco/rele/OvladanieRele.java | UTF-8 | 4,667 | 2.453125 | 2 | [] | no_license | package sk.hlavco.rele;
import by.creepid.jusbrelay.*;
import sk.hlavco.clock.Delegator;
import sk.hlavco.clock.DigitalClock;
import java.util.logging.Level;
import java.util.logging.Logger;
public class OvladanieRele{
static final Logger LOGGER = Logger.getLogger( DigitalClock.class.getName() );
static Del... | true |
f51ad2e4881a359a315e4d44ea80789ab79b6442 | Java | VincenzoSalvati/SE_Team17_Delivery2 | /src/JAVA/SpecificationsEWO.java | UTF-8 | 3,553 | 2.484375 | 2 | [] | no_license | package JAVA;
import java.sql.Connection;
import java.sql.PreparedStatement;
@SuppressWarnings("SqlResolve")
public class SpecificationsEWO {
private final Connection con;
public int dbOperationStatusCode;
public String dbOperationMessage;
private int id;
private int new_estimate_tr;
private S... | true |
0bc484aefe1ab6d4887fa29569343b70979c5961 | Java | qq443672581/dubbo | /world/src/main/java/cn/dlj1/world/DynamicProxy.java | UTF-8 | 651 | 3.0625 | 3 | [] | no_license | package cn.dlj1.world;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class DynamicProxy {
interface S {
void eat();
}
static class Handler implements InvocationHandler{
public Object invoke(Object proxy, Method method... | true |
831d08d0cd42e883a6d6db59aee0d96855595ade | Java | emistoolbox/emistoolbox | /core/src/com/emistoolbox/common/model/analysis/impl/AggregatorList.java | UTF-8 | 3,440 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.emistoolbox.common.model.analysis.impl;
import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.emistoolbox.common.model.analysis.EmisAggregatorDef;
import com.emistoolbox.common.model.analysis.EmisAggregatorList;
im... | true |
aeb087bf93d0c9a9d94331dc842e373e028c8038 | Java | laodiaoyale/mans | /src/main/java/com/bns/model/contract/ContractInfo.java | UTF-8 | 1,371 | 2.265625 | 2 | [] | no_license | package com.bns.model.contract;
public class ContractInfo {
//合同编号
private String contractNo;
//贷款发布日期
private String fundDate;
//贷款到期日期
private String endDate;
//贷款状态
private String loanStatus;
//贷款余额
private String loanBalance;
//当前贷款期次
private String curLoanPeriod;
... | true |
e3e9704d801070d517c468d34ee4d22aaeefd492 | Java | mazingHins/yogu_server | /services/xcloud/src/test/java/com/mazing/core/test/AcceptPermitInterceprotTest.java | UTF-8 | 833 | 1.875 | 2 | [] | no_license | /**
*
*/
package com.mazing.core.test;
import org.junit.Test;
import com.yogu.core.test.ApiReq;
import com.yogu.core.test.HttpResourceTest;
import com.yogu.core.web.RestResult;
/**
* 测试AcceptSeconds注解和拦截器 <br>
*
* <br>
* JFan - 2015年6月16日 下午5:08:35
*/
public class AcceptPermitInterceprotTest extends HttpRes... | true |
7a3e0dcb9be08e650693e44e39b5d83e732a84c8 | Java | binyuanchen/CorfuDB | /src/main/java/org/corfudb/runtime/CorfuDBRuntime.java | UTF-8 | 16,532 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* d... | true |
eb1f753f3da5270270ba2f2d279d1ec77106bbae | Java | brokenq/itsnow | /backend/msc-services/mutable-account-service/src/test/java/dnt/itsnow/config/MutableAccountsControllerConfig.java | UTF-8 | 1,500 | 2.25 | 2 | [] | no_license | /**
* xiongjie on 14-8-6.
*/
package dnt.itsnow.config;
import dnt.itsnow.service.CommonUserService;
import dnt.itsnow.service.MutableAccountService;
import dnt.itsnow.test.config.ApplicationControllerConfig;
import dnt.itsnow.web.controller.PublicAccountsController;
import dnt.itsnow.web.controller.MutableAccountsC... | true |
2c700596d7ff7d4f994ae7521c13bd7d432b1b5a | Java | Israel-E/Patos | /src/main/java/FlyRocketPowered.java | UTF-8 | 163 | 2.5625 | 3 | [] | no_license | public class FlyRocketPowered implements FlyBehavior {
@Override
public void fly() {
System.out.println("¡Estoy volando con un cohete!");
}
}
| true |
a5b1a4f981518d0da1553dc5b2e075bbf2f04169 | Java | zhiyuazo/basicJava | /basic_Swing/src/test/hero.java | UTF-8 | 89 | 2.046875 | 2 | [] | no_license | package test;
public class hero {
String name ;
hero(String n){
this.name = n;
}
}
| true |
376b4eaf11b5aab563fb55b93c29da0b4b6e6d74 | Java | Kerbach/EstruturaDeDados | /src/aula8/TestSetMap.java | UTF-8 | 867 | 3.25 | 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 aula8;
/**
*
* @author wrkerber
*/
import java.util.*;
public class TestSetMap
{
public static void mai... | true |
3a8d40c30bbce0f91def464bb65e03d47df57cec | Java | xiewen0303/jupiter-neo4j | /neo4j/src/main/java/com/neo4j/demo/entity/UserNode.java | UTF-8 | 752 | 2.296875 | 2 | [] | no_license | package com.neo4j.demo.entity;
import lombok.Data;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;
import java.io.Serializable;
@Data
@NodeEntity(label = "user")
public class UserNode implements Serializable {
@GraphId
private Lo... | true |
f896736e9402385d61a3e6f56225c49821f09473 | Java | kvtoraman/Funny-Chemmy | /src/Element.java | UTF-8 | 1,391 | 3.171875 | 3 | [] | no_license |
public class Element
{
int atomNo;
String name;
String symbol;
int valenceNumber;
double atomicWeight;
//this property must considered
double electroNeg;
static private int valenceArray[]= {-1,0,1,2,3,-4,-3,-2,-1,0,1,2,3,4,-3,-2,-1,0,1,2};
//coordinates of this element - used in DragGame
int x;
int y;
... | true |
ec715867689d225244350954c30b49a01e0b9619 | Java | DDachev/SwiftAcad_HW_Lecture_06 | /Ex05/Person.java | UTF-8 | 1,480 | 3.390625 | 3 | [] | no_license | package bg.swift.HW06.ex05;
import java.time.LocalDate;
public class Person {
private String firstName;
private String lastName;
private char gender;
private LocalDate dateOfBirth;
private short height;
public SecondaryEducation se;
public Person(String firstName, String lastName, char gender, LocalDate date... | true |
6592b52350542338b6d404f0074493fddb793dba | Java | Aimintao/SSM-dpb | /src/main/java/com/dpb/base/controller/DepartmentController.java | UTF-8 | 649 | 1.929688 | 2 | [] | no_license | package com.dpb.base.controller;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.dpb.base.model.DeptBean;
impor... | true |
d5b195ef15e09363aa135200ae67e542675e9b50 | Java | dev-hui/java_study | /Java_dev/src/july_16th_oop04/Point2D.java | UTF-8 | 729 | 3.9375 | 4 | [] | no_license | package july_16th_oop04;
public class Point2D {
int x;
int y;
public Point2D() {
this(1,1);
System.out.println("Point2D() 생성자 수행");
} // 1. public Point2D(){} << 디폴트 생성자. 다른 생성자가 없을 경우 (눈에는 안보이지만) 이런 거 만들어 줌!
// 3. 따라서 디폴트 생성자를 별개로 만들어 주어야 error가 나지 않게 된다.
@Override
public String toString() {
return ... | true |
1975df70fd1ff524cc8496cad2d26a9f907da247 | Java | Kaleakash/beljavadesignpattern | /JEE/ServiceLocator/src/com/JMSService.java | UTF-8 | 295 | 2.296875 | 2 | [] | no_license | package com;
public class JMSService implements Service{
@Override
public void execute() {
// TODO Auto-generated method stub
System.out.println("Executing JMS Service");
}
@Override
public String getName() {
// TODO Auto-generated method stub
return "JMS Service Object";
}
}
| true |
6f64fa46983a1f5e86025a7d46e0afedad9d1291 | Java | lordaronwd/logsmonitor | /Backend/LogsMonitor/impl/src/main/java/com/monitor/impl/config/MonitorApplication.java | UTF-8 | 1,837 | 2.09375 | 2 | [] | no_license | package com.monitor.impl.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Com... | true |
2b4981b8c3db86b74d90cd67c96bcdb992c819de | Java | eloyreinaga/hospital | /src/main/java/org/ayaic/web/administrarempresas/ConfirmarEmpresaControlador.java | UTF-8 | 9,787 | 1.953125 | 2 | [] | no_license | package org.ayaic.web.administrarempresas;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.ayaic.domain.Clientes;
import org.ayaic.domain.Detalle;
import org.ayaic.domai... | true |
532255dcddf718b8904af9485623ae13e1c09c1c | Java | margmelo/The-Fundamentals-Of-Java | /hw7_Vehicles/Main.java | UTF-8 | 1,609 | 3.59375 | 4 | [] | no_license | package pkg_hw7;
/**
*
* @author https://www.linkedin.com/in/margmelo/
*/
public class Main {
public static void main(String[] args) {
Cars a = new Cars("Opel", "Corsa", 1990, 870);
//We set this car for 56 trips
for (int i = 0; i < 56; i++) {
a.drive();
... | true |
64a330a5fe6c6b53e5d1343a50398f46085bb646 | Java | makewheels/AnalyzeBusDex | /src/main/java/com/alipay/security/mobile/module/p012b/C0164b.java | UTF-8 | 496 | 1.773438 | 2 | [] | no_license | package com.alipay.security.mobile.module.p012b;
import java.io.File;
import java.io.FileFilter;
import java.util.regex.Pattern;
/* renamed from: com.alipay.security.mobile.module.b.b */
final class C0164b implements FileFilter {
/* renamed from: a */
final /* synthetic */ C0163a f484a;
C0164b... | true |
12b3afdc78bf6cf674e18ef949378efda2ee8ed3 | Java | tfriedrichs/dicebot | /src/main/java/io/github/tfriedrichs/dicebot/expression/DiceRollExpression.java | UTF-8 | 4,965 | 3.21875 | 3 | [
"MIT"
] | permissive | package io.github.tfriedrichs.dicebot.expression;
import io.github.tfriedrichs.dicebot.evaluator.DiceRollEvaluator;
import io.github.tfriedrichs.dicebot.evaluator.SumEvaluator;
import io.github.tfriedrichs.dicebot.modifier.DiceRollModifier;
import io.github.tfriedrichs.dicebot.result.DiceResult;
import io.github.tfrie... | true |
d719d46dc6637db00417caecfeb5c4c915a81433 | Java | 12chakram/personinfo | /src/com/persinfo/dao/UserDAO.java | UTF-8 | 2,946 | 2.625 | 3 | [] | no_license | /**
*
*/
package com.persinfo.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import com.persinfo.data.User;
import com.persinfo.utilities.EMF;
/**
* @author deva
*
*/
public class UserDAO {
public void addUser(User user){
EntityManager em = EMF.get()... | true |
b8f92763bee9c7679cf681e1916c02d7be900092 | Java | timur-sh/queryman-builder | /queryman-builder/src/test/java/org/queryman/builder/FlywayManager.java | UTF-8 | 552 | 1.921875 | 2 | [
"MIT"
] | permissive | /*
* Queryman. Java tools for working with queries of PostgreSQL database.
*
* License: MIT License.
* To see license follow by http://queryman.org/license.txt
*/
package org.queryman.builder;
import org.flywaydb.core.Flyway;
/**
* @author Timur Shaidullin
*/
public final class FlywayManager {
public Fl... | true |
cd198e78ca9d11cb6cab8f86cfb52f8543c82060 | Java | whizzosoftware/hobson-hub-dsc-it100 | /src/test/java/com/whizzosoftware/hobson/dsc/api/command/PartitionArmControlWithCodeTest.java | UTF-8 | 1,156 | 2.46875 | 2 | [] | no_license | package com.whizzosoftware.hobson.dsc.api.command;
import com.whizzosoftware.hobson.api.HobsonInvalidRequestException;
import org.junit.Test;
import static org.junit.Assert.*;
public class PartitionArmControlWithCodeTest {
@Test
public void testGetDataString() {
// 6 character code
PartitionAr... | true |
91e04853722a76618da9b6688721195f9bf37541 | Java | paddy235/my_sre_story | /java/notes/Backup2019.10.11/15.OverloadTest/OverloadTest01.java | GB18030 | 1,637 | 4.3125 | 4 | [] | no_license |
/*
´벻ʹáػơoverloadڵȱ㣿
1.sumIntsumLongsumDoubleȻܲͬǹƣ͡
³УƵķֱ֣ͬԳԱ˵
÷ʱ㣬ԱҪķɵá㡿
2.벻
ûһֻƣ
ȻͬǡơʱûһֻƣóԱʹЩ
ʱʹһһԱдdz㣬
ҲҪķҲۡ
ֻƽػ
ֵעǣ
*/
public class OverloadTest01{
public static void main(String[] args){
//÷
int result1=sumInt(1,2);
System.out.println(result1);
double result2=sumDouble(1.0,2.0);
Sys... | true |
27ac4caab3ba0c1b8268b663d89a9b4d23d5ac48 | Java | Draywer/NetologyJava | /JavaBase/src/main/java/ru/idcore/basejava/task0332/accounts/Account.java | UTF-8 | 1,970 | 3.5 | 4 | [] | no_license | package ru.idcore.basejava.task0332.accounts;
public abstract class Account {
protected AccountType accountType;
protected int accountNumber;
protected int balance;
protected Account() {
this.balance = 0;
}
public AccountType getAccountType() {
return accountType;
}
p... | true |
d37f15f25dbbb3a5e59ded03514d7f830ec573a2 | Java | cepprice/maps | /app/src/main/java/ru/cepprice/maps/data/model/mapstate/Downloaded.java | UTF-8 | 1,554 | 1.9375 | 2 | [] | no_license | package ru.cepprice.maps.data.model.mapstate;
import android.content.Context;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import androidx.core.content.ContextCompat;... | true |
3b3227c9686779415aee8ab78950e49dd955befe | Java | P79N6A/icse_20_user_study | /methods/Method_34375.java | UTF-8 | 759 | 2.40625 | 2 | [] | no_license | public OAuth2Authentication readAuthentication(String token){
OAuth2Authentication authentication=null;
try {
authentication=jdbcTemplate.queryForObject(selectAccessTokenAuthenticationSql,new RowMapper<OAuth2Authentication>(){
public OAuth2Authentication mapRow( ResultSet rs, int rowNum) throws ... | true |
9f8ab64d66bd63a86605f5d269fddb3a2e25e2d2 | Java | LARGH/Ejercicio-EJB-BD-Sistemas-Distribuidos | /DemoApp/build/generated-sources/ap-source-output/com/ipn/mx/model/Carrera_.java | UTF-8 | 751 | 1.640625 | 2 | [] | no_license | package com.ipn.mx.model;
import com.ipn.mx.model.Alumno;
import javax.annotation.Generated;
import javax.persistence.metamodel.ListAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2017-12-11T... | true |
3a96469b5f23043382397e7acc4318124be4d63f | Java | javaGuruBY/java-free-stream-5 | /homeWork_01/ex1_ObjectsAroundUs/Vladimir_Petranovski/src/com/exemple/HW1_task1/App.java | UTF-8 | 5,054 | 3.46875 | 3 | [] | no_license | package com.exemple.HW1_task1;
//делаю домашку первую задачу
public class App {
public static void main(String[] args) {
App app = new App();
}
public App() {
fan();
spoon();
paper();
cup();
glove();
column();
postcard();
folder();
... | true |
e839b01cde275afa9b6ae1e7a37b57ebcf7eb8d2 | Java | psheemas/kodilla-course-master | /kodilla-good-patterns/src/main/java/com/kodilla/good/patterns/challenges/OrderedItems.java | UTF-8 | 222 | 2.46875 | 2 | [] | no_license | package com.kodilla.good.patterns.challenges;
public class OrderedItems {
public boolean buyNow(User user, Item item) {
System.out.println("VegetablesAndFruits marked as bought");
return true;
}
}
| true |
f5fc655556021ab438ac1424a46ed05f2cfbed7d | Java | d5nguyenvan/structr | /structr/structr-core-ui/src/main/java/org/structr/ui/page/admin/EditCsvFile.java | UTF-8 | 2,850 | 2.25 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.structr.ui.page.admin;
import java.util.Map;
import java.util.Set;
import org.apache.click.control.FieldSet;
import org.apache.click.control.Form;
import org.apache.click.control.HiddenField;
import org.apac... | true |
8286408bac210d6388881c6359c4de9c0621d548 | Java | chenJz1012/os-app | /os-common/src/main/java/com/orangeside/common/utils/PropertiesUtil.java | UTF-8 | 767 | 2 | 2 | [] | no_license | package com.orangeside.common.utils;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
import java.io.IOException;
import java.util.Properties;
/**
* 工程:os-app 创建人 : ChenGJ 创建时间: 2015/9/7 说明:
*/
publi... | true |
cc10b877110ca58db32f531f4ca3cfeadf7a77c0 | Java | zeng233/rejdk | /src/test/java/ajava/util/concurrent/adouglea/functionality/Mutex100M.java | UTF-8 | 2,367 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package ajava.util.concurrent.adouglea.functionality;
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomi... | true |
40c1021bc0355e716a66632d44d60b20e4ebd44b | Java | captn3m0/mygov.aadhaar.ekyc | /enjarify/mygov/aadhaar/ekyc/firebase/MyFirebaseInstanceIDService.java | UTF-8 | 666 | 1.65625 | 2 | [] | no_license | package mygov.aadhaar.ekyc.firebase;
import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
public class MyFirebaseInstanceIDService
extends FirebaseInstanceIdService
{
public final void a()
{
String str = FirebaseInstanceId.a().... | true |
201e9e5046e3f231083d9a868947da96bab3379d | Java | ahmedHasn/micro-services-spring-boot | /PhotoAppApiUsers/src/main/java/com/photoappuser/payload/response/AlbumResponse.java | UTF-8 | 309 | 1.648438 | 2 | [] | no_license | package com.photoappuser.payload.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AlbumResponse {
private String albumId;
private String userId;
private String name;
private String describtion;
}
| true |
fb257d0070f317ae8de7c919cb4ed041aa35cb7e | Java | lizhieffe/EPI | /src/Chap14/Q01.java | UTF-8 | 1,630 | 3.53125 | 4 | [] | no_license | package Chap14;
import java.util.ArrayList;
public class Q01 {
int[] findSame(int[] a, int[] b) {
if (a == null || a.length == 0 || b == null || b.length == 0)
return new int[0];
else if (a.length / b.length > 10 || b.length / a.length > 10)
return notSimilarLength(a, b);
else
return similarLength(a, ... | true |
821dbff5323613265e890e5f0350ad94c607c926 | Java | lucky-lanes/Lucky-Lanes | /src/main/formObjects/YBalance.java | UTF-8 | 19,284 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package main.formObjects;
import main.java.Database;
/**
* YBalance Object.
* <p>
* It represents the form used for the YBalance test.
*/
public class YBalance {
/**
* Right limb length in centimeters (cm)
*/
private double rightLimbLength;
/**
* Average of the three measurements for th... | true |
a9b886ab33017d599bfff95dae0936a0e519f1f7 | Java | tbackus127/SyzygyA100 | /sim/src/com/rath/syzbgui/ComponentPanel.java | UTF-8 | 1,490 | 2.4375 | 2 | [] | no_license |
package com.rath.syzbgui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JPanel;
import com.rath.syzbbck.SyzInternals;
public class ComponentPanel extends JPanel {
private static final long serialVersionUID = 1L;
private static final int MARGIN_BOTTOM = 14;
private final Sy... | true |
4c6136290992e0fd2888a69a51947901539e286d | Java | mathiasyeremiaaryadi/Sewa-Mobil-Android | /Arphat_App/app/src/main/java/com/path_studio/arphatapp/Adapter/slider_adapter_choose_car.java | UTF-8 | 3,600 | 2.28125 | 2 | [] | no_license | package com.path_studio.arphatapp.Adapter;
import android.content.Context;
import android.content.SharedPreferences;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
im... | true |
e16aceeba0cea7b754e2843189646277cd6375c9 | Java | DokterPhill/java3-nieuw | /restaurantV1/src/restaurant/Server.java | UTF-8 | 996 | 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 restaurant;
import java.util.Map;
import static restaurant.Utils.printSeparator;
/**
*
* @author Jazz
*/
pub... | true |
79189f1d3f5266fcbd249fb96e2d84f435afe6a9 | Java | TheComplexMC/ComplexLife | /src/main/java/net/thecomplex/complexlife/block/BlockElectricLight.java | UTF-8 | 1,853 | 2.3125 | 2 | [] | no_license | package net.thecomplex.complexlife.block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.state.BooleanProperty;
import net.minecraft.state.IntegerProperty;
import net.minecraft.state.State... | true |
98749cc44168d13b4494ba4de3280318e8bbccc1 | Java | dannybanko/SudokuSolver | /src/Main.java | UTF-8 | 385 | 2.1875 | 2 | [] | no_license | import java.io.FileNotFoundException;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Board sdkSolver = new Board("src/board.sdk");
System.out.println(sdkSolver);
Board ssSolver = new Board("src/board.ss");
System.out.println(ssSolver);
... | true |
1c9afbb7bd1f779f0c0cd479a2a35212633e1bea | Java | github/codeql | /java/ql/src/Security/CWE/CWE-614/InsecureCookie.java | UTF-8 | 359 | 2.46875 | 2 | [
"MIT"
] | permissive | public static void test(HttpServletRequest request, HttpServletResponse response) {
{
Cookie cookie = new Cookie("secret", "fakesecret");
// BAD: 'secure' flag not set
response.addCookie(cookie);
}
{
Cookie cookie = new Cookie("secret", "fakesecret");
// GOOD: set 'secure' flag
cookie.setSecure(tr... | true |
106f3b950e614e89cc9f8224236eeef66e42007c | Java | unibo-oop-projects/Student-Project-OOP15-Ghinelli-Magnani-ClassScheduleManager | /src/controller/DataManegerImpl.java | UTF-8 | 4,344 | 2.546875 | 3 | [] | no_license | package controller;
import model.SchedulesModel;
import model.interfaces.ISchedulesModel;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Row;
import java.io.BufferedReader;
im... | true |
9c1bdd195c95f7a50fd7f2e95818200931517fc6 | Java | Nas2meetu/tp-nach-richard | /P5/src/tp/pr5/console/ConsoleController.java | UTF-8 | 1,497 | 3.25 | 3 | [] | no_license | package tp.pr5.console;
import static tp.pr5.Constants.PROMPT;
import java.util.Scanner;
import tp.pr5.Controller;
import tp.pr5.Interpreter;
import tp.pr5.RobotEngine;
import tp.pr5.instructions.Instruction;
import tp.pr5.instructions.exceptions.WrongInstructionFormatException;
/**
*
* @author Ignacio... | true |
55b6fde698997fd2fdc5f9d2bcd6069c7b915e8d | Java | nacereddinebenbouta/first-java-project | /TP MSR/Methodes.java | UTF-8 | 5,259 | 3.34375 | 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 com.mycompany.chainemarkov;
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
/**
*
... | true |
9079a51959d80cf4426ed48b478fe357608c3b17 | Java | avitalze/Football-system-project | /Client_side/src/Presentation/ReportOfMatchController.java | UTF-8 | 5,485 | 2.15625 | 2 | [] | no_license | package Presentation;
//import Service.RefereeApplication;
import javafx.application.Platform;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
... | true |
40e4521cfcd305b03b244934e5425f5364d01fb0 | Java | trandreluis/dac | /jpa4/src/main/java/br/edu/ifpb/mt/dac/entidades/f/bidirecional/MainBiSave.java | UTF-8 | 1,933 | 2.703125 | 3 | [] | no_license | package br.edu.ifpb.mt.dac.entidades.f.bidirecional;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import br.edu.ifpb.mt.dac.dao.f.bidirecional.ColaboradorDAO;
import br.edu.ifpb.mt.dac.dao.f.bidirecional.ProjetoDAO;
public class MainB... | true |
1bc5b81c232ac21a3970723f2f7fb8cb82d50fa8 | Java | dividio/PorraOnline | /PorraOnline/src/main/java/com/aap/rest/server/MensajesRS.java | UTF-8 | 4,368 | 2.203125 | 2 | [] | no_license | package com.aap.rest.server;
import java.util.Date;
import java.util.List;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws... | true |
346b4925c09ac84606720ddbd6346ecc33da783e | Java | rommeldongre/FrrndLease-webapp | /src/pojos/GetRecentWishesResObj.java | UTF-8 | 578 | 2.265625 | 2 | [] | no_license | package pojos;
import java.util.ArrayList;
import java.util.List;
public class GetRecentWishesResObj extends ResObj{
String message;
int code;
List<String> wishes = new ArrayList<>();
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = mes... | true |
f43b72f2fb08a5e5556ad424621312cb456d3cfb | Java | bergusman/pdef | /java/src/main/java/io/pdef/descriptors/GeneratedMethodDescriptor.java | UTF-8 | 5,072 | 2.21875 | 2 | [] | no_license | package io.pdef.descriptors;
import com.google.common.base.Objects;
import static com.google.common.base.Preconditions.*;
import com.google.common.base.Supplier;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import io.pdef.Invocation;
im... | true |
b27127d8b2277508f363e4483ede32454c56dbf0 | Java | google-code/agiledoc | /src/sourceagile/development/client/serverCalls/SaveComment.java | UTF-8 | 615 | 2.203125 | 2 | [] | no_license | package sourceagile.development.client.serverCalls;
import sourceagile.shared.entities.Comments;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
public class SaveComment {
final CommentsServerCallsAsync commentsServerCalls = GWT
.create(CommentsServerCalls.c... | true |
5afed8aaf775a3d74fb6a3cf023f50d8c1f0846f | Java | jinhee-han/employ24 | /src/main/java/com/vtw/employ/emea/repository/EmeaBplcRepository.java | UTF-8 | 295 | 1.828125 | 2 | [] | no_license | package com.vtw.employ.emea.repository;
import com.vtw.employ.emea.EmeaBplc;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface EmeaBplcRepository extends JpaRepository<EmeaBplc, Long> {
Optional<EmeaBplc> findByBcno(String bcno);
}
| true |
a1e2edbb43b9e05bd55d7e9dd0d1e83fef2fb958 | Java | Clarar/Ahorcado | /src/hangman/ControllerHangman.java | MacCentralEurope | 14,306 | 2.515625 | 3 | [] | no_license | package hangman;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.File;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing... | true |
1e32c4f56150c48c4816d327a2c63ba8bd65c1e0 | Java | wso2/carbon-transports | /http/org.wso2.carbon.transport.http.netty/src/test/java/org/wso2/carbon/transport/http/netty/websocket/WebSocketPassthroughServerConnectorListener.java | UTF-8 | 5,841 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... | true |
181efc38d5209b7a8c0c1dd6fedeb36834d1073d | Java | dmitrymoor/MechanismDesignPrimitives | /MechanismDesignPrimitives/src/main/java/ch/uzh/ifi/MechanismDesignPrimitives/MultiUnitAtom.java | UTF-8 | 2,766 | 2.828125 | 3 | [] | no_license | package ch.uzh.ifi.MechanismDesignPrimitives;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class MultiUnitAtom extends AtomicBid
{
/**
* Constructor
* @param agentId - agent's id
* @param items - the list of item... | true |
840ef2713efff4f68143e1ba2ac18d1d1547555f | Java | aplicacionmoviltesis/FindJobsRDv0 | /app/src/main/java/com/example/findjobsrdv0/Pantallas_CurriculosCompleto/cPantallaReferenciasCurriculo.java | UTF-8 | 9,484 | 1.828125 | 2 | [] | no_license | package com.example.findjobsrdv0.Pantallas_CurriculosCompleto;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.graphics.Typeface;
import android.os.Bundle;
imp... | true |
09ed67ca3a3a58bc4ff1cd254a10e0f1ed9cb767 | Java | alzaji/rScout39 | /Scout39-web/src/main/java/org/siliconvalley/scout39/vista/beanPerfil.java | UTF-8 | 4,489 | 1.757813 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.siliconvalley.scout39.vista;
import java.io.Serializable;
import org.siliconvalley.scout39.modelo.*;
import org.siliconval... | true |
216bf8d731e72e294f8c7dd46c9983c558f7e346 | Java | pangyuworld/Java-learning | /design patterns/src/main/java/com/pang/template/Coffee.java | UTF-8 | 458 | 2.71875 | 3 | [] | no_license | package com.pang.template;
/**
* @author pang
* @version V1.0
* @ClassName: Coffee
* @Package com.pang.template
* @description: 咖啡
* @date 2019/10/15 10:32
*/
public class Coffee extends Drink {
public Coffee() {
super("咖啡");
}
@Override
protected void prepareDrink() {
System.ou... | true |
c5502f4083ea2c2dd79e17cca3781254e3e3d5a6 | Java | JoyPanda/wangxian_server | /gateway/src/com/fy/gamegateway/mieshi/resource/manager/ResourceData.java | UTF-8 | 1,632 | 2.78125 | 3 | [] | no_license | package com.fy.gamegateway.mieshi.resource.manager;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Hashtable;
public class ResourceData {
public ResourceData(){
}
private String path; //路径
private int version; //版本
private int fileType; //资源类型,主要是根据后缀区分
private H... | true |
42bda52cb5eba8bf94cccefd0709e891444e5ddc | Java | Straianaidas/MHFC | /src/main/java/mhfc/net/common/weapon/range/bow/ItemBow.java | UTF-8 | 4,674 | 2.140625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package mhfc.net.common.weapon.range.bow;
import java.util.Random;
import java.util.function.Consumer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import mhfc.net.common.core.registry.MHFCItemRegistry;
import mhfc.net.common.helper.MHFCWeaponClassingHelper;
import mhfc.net.c... | true |
d621395e042043c9c723efb6b5dbb60a69f5be73 | Java | ccOranger/springbootDemo | /demo-rabbitmq/src/main/java/com/licc/rabbitmq/config/RabbitConfig.java | UTF-8 | 3,730 | 2.578125 | 3 | [] | no_license | package com.licc.rabbitmq.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.rabbit.connection.Cachi... | true |
c78011eddc280c8f728e5a67c17c62082ac0b596 | Java | hvivani/Java | /TestJCE.java | UTF-8 | 482 | 2.5 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | import javax.crypto.Cipher;
import java.security.*;
import javax.crypto.*;
class TestJCE {
public static void main(String[] args) {
boolean JCESupported = false;
try {
KeyGenerator kgen = KeyGenerator.getInstance("AES", "SunJCE");
kgen.init(256);
JCESupported = true;
} catch (NoSuchAlgorithmException e... | true |
4b421c4d1a4a08da86b4286bd8a948be9d770e1f | Java | git-xiaoQ/refactor-bootcamp-202002 | /src/test/java/cc/xpbootcamp/warmup/cashier/OrderReceiptTest.java | UTF-8 | 2,776 | 2.75 | 3 | [] | no_license | package cc.xpbootcamp.warmup.cashier;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcre... | true |
ca1513043a6d0ebcb72c1b3850cc45b491c78237 | Java | AneliaDoychinova/Java-Advanced | /04. Data representation and manipulation/Lab/Sorting.java | UTF-8 | 1,422 | 3.828125 | 4 | [
"MIT"
] | permissive | import java.util.Arrays;
import java.util.Scanner;
public class Sorting {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Integer[] nums = Arrays.stream(scanner.nextLine().split("\\s+")).map(Integer::parseInt).toArray(Integer[]::new);
//bubbleSort(nums)... | true |
68dc8d3baf78e1f40f6eb4a51d40da3fe473e5a2 | Java | moutainhigh/link_xf_server | /src/main/java/com/weds/xf/service/AccessVerifyService.java | UTF-8 | 8,379 | 2.0625 | 2 | [] | no_license | package com.weds.xf.service;
import com.weds.core.base.BaseService;
import com.weds.core.resp.JsonResult;
import com.weds.xf.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import ja... | true |
95b019369b5a6bd693838d2ff79b5aef97216bb7 | Java | slcasner/BlinkenBone | /projects/09_javapanelsim/src/blinkenbone/panelsim/DimmableLightbulbControlSliceVisualization.java | UTF-8 | 9,926 | 2.609375 | 3 | [
"MIT"
] | permissive | /* DimmableLightbulbControlSliceVisualization.java: a light blub, brightness coupled with color temperature.
Copyright (c) 2016-2016, Joerg Hoppe
j_hoppe@t-online.de, www.retrocmp.com
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation... | true |
4026d15764a1860dd8c39fb438c2308bfd68d361 | Java | vaibhavim/salesNotification | /src/main/java/com/sales/notification/app/SalesNotificationController.java | UTF-8 | 1,897 | 2.40625 | 2 | [] | no_license | package com.sales.notification.app;
import javax.jms.Queue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.... | true |
44e6247db406d4edcc8061e375544ca2c27d1dfc | Java | march1cat/EcDevelopeLib | /src/ec/wraper/elk/JsonQueryCondition.java | UTF-8 | 519 | 2.171875 | 2 | [] | no_license | package ec.wraper.elk;
import java.util.Map;
import ec.system.Basis;
public abstract class JsonQueryCondition extends Basis{
public enum ConditionType {
RANGE,EQUAL
}
private Object type = null;
private String colName = null;
public JsonQueryCondition(Object type){
this.type = type;
}
public String ... | true |
2628d3bfad4e6cac13911bc3eaf251833b8a2afd | Java | megavork/homeworks-base | /src/main/java/Denis_Belski/inheritance/Transport.java | UTF-8 | 643 | 3.484375 | 3 | [] | no_license | package Denis_Belski.inheritance;
public class Transport {
int power = 0;
int maxSpeed = 0;
int mass = 0;
String brand = "";
Transport(int power, int maxSpeed, int mass, String brand) {
this.power = power;
this.maxSpeed = maxSpeed;
this.mass = mass;
this.brand = bra... | true |
39e2e5f7dae8901b1595f4798dd05c44ae8990ef | Java | tusharchopratech/task_manager_csc | /src/Ajax/AjaxServletProjectIdToTasks.java | UTF-8 | 3,771 | 2.203125 | 2 | [] | no_license | package Ajax;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impo... | true |
bf1095a64b8608b3989e9d619b34077f819cff27 | Java | nanourafou/MiniProjectCE-2018 | /src/unitTest/CameraTest.java | UTF-8 | 1,643 | 2.953125 | 3 | [] | no_license | package unitTest;
import elements.Camera;
import org.junit.jupiter.api.Test;
import primitives.Point3D;
import primitives.Ray;
import primitives.Vector;
import static org.junit.jupiter.api.Assertions.*;
public class CameraTest {
Point3D p1=new Point3D(0,0,0);
Point3D p2=new Point3D(-3,3,-3);
Ray r11=... | true |
f517ba93144b95b23ff149d02a1f293dce90a01c | Java | djsong/AlkkaGo | /app/src/main/java/com/djsong/alkkago/SingleAlkkagiMatch.java | UTF-8 | 8,684 | 2.78125 | 3 | [] | no_license | package com.djsong.alkkago;
import android.content.Context;
import android.widget.Toast;
import java.util.ArrayList;
/**
* Created by DJSong on 2016-03-25.
* More or less manages the rule of game. A match is composed of multiple turns.
*/
public class SingleAlkkagiMatch {
AKGPlayWorld mPlayWorld = null;
... | true |
a54203f260560499492424ab449a0234523fa2c2 | Java | shekabhias/ctci | /ctci/src/threads/MyClass.java | UTF-8 | 1,200 | 4.09375 | 4 | [] | no_license | package threads;
public class MyClass extends Thread{
private String name;
private MyObject myObj;
public MyClass(String name, MyObject myObj) {
super();
this.name = name;
this.myObj = myObj;
}
public void run() {
if(name.equals("1")) MyObject.foo(name);
else if (name.equals("2")) MyObject.bar(name... | true |
beed504cfb7c0a5fc0b5edab26cd115d0252526f | Java | nikosciatore/byob-v1 | /src/application/Main.java | UTF-8 | 2,255 | 2.953125 | 3 | [] | no_license | package application;
import control.client.Bot;
import control.server.BotServer;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.fxml.FXMLLoader;
/**
* La classe Main è responsabile dell'avvio dell'applicazione
* Attraverso... | true |