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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5264bed0c0bd9a215a000fb4074949ec6d2e4ef8 | Java | kbmaz/Java-Programming-Foundations | /Java3_Homework12/src/ui/panels/MainPanel.java | UTF-8 | 593 | 2.625 | 3 | [] | no_license | package ui.panels;
import interfaces.Resettable;
import java.awt.GridLayout;
import java.awt.Panel;
import model.Model;
public class MainPanel extends Panel implements Resettable {
ActionPanel actionPanel;
ControlsPanel controlsPanel;
public MainPanel(Model model) {
actionPanel = new ActionPa... | true |
6bff26c696eac561cf113735abc3400389d36e92 | Java | Phantoms007/zhihuAPK | /src/main/java/com/zhihu/android/topic/platfrom/p1964d/$$Lambda$a$z7FmWKdD_FRtkUNkaYFUUqSyCJc.java | UTF-8 | 724 | 1.71875 | 2 | [] | no_license | package com.zhihu.android.topic.platfrom.p1964d;
import java8.util.p2234b.AbstractC32237i;
/* renamed from: com.zhihu.android.topic.platfrom.d.-$$Lambda$a$z7FmWKdD_FRtkUNkaYFUUqSyCJc reason: invalid class name */
/* compiled from: lambda */
public final /* synthetic */ class $$Lambda$a$z7FmWKdD_FRtkUNkaYFUUqSyCJc im... | true |
26ad46d236ca328d09789852166cbae7ce1577c7 | Java | hbliyafei/nianfojishu | /HHTask/.svn/pristine/19/19f28db561bfc47ca49535d7f4c14a7553a027e1.svn-base | UTF-8 | 941 | 2.015625 | 2 | [] | no_license | package com.task.entity.approval;
import java.io.Serializable;
/***
* 序列表
* ta_sequences
* @author 毛小龙
*
*/
public class Sequences implements Serializable{
private Integer id;
private String code;//工号
private String module_name;//模块名称
private String se_number;//序列编号
private String se_date;//添加序列时间
public... | true |
6f206ac040c31b7804dcd082b0c0084aad04b2f6 | Java | domikul/Squash-courts | /src/main/java/pl/euvic/squash/security/UserDetailsServiceImpl.java | UTF-8 | 1,194 | 2.296875 | 2 | [] | no_license | package pl.euvic.squash.security;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;
import pl.euvic.s... | true |
e53b244fa5d2743b0b1f9c02d3d294a408a1d297 | Java | Mart95777/Thinkinginjavaextended | /src/access/mypackage/MyClass.java | UTF-8 | 157 | 2.3125 | 2 | [] | no_license | //: access/mypackage/MyClass.java
package access.mypackage;
public class MyClass {
public MyClass(){
System.out.println("Inside MyClass");
}
} ///:~
| true |
09cf80a6cef925ca0f3a8797c588508b8e379ab7 | Java | finalaurora/multisvc-sys | /jetty-mw/src/main/java/jettymw/server/SampleHandler.java | UTF-8 | 1,177 | 2.71875 | 3 | [] | no_license | package jettymw.server;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.AbstractHandler;
import or... | true |
60c83c80d33f018c6c6f115e0f02a505655cb02c | Java | sgholamian/log-aware-clone-detection | /LACCPlus/Hadoop/2383_1.java | UTF-8 | 1,155 | 2.140625 | 2 | [
"MIT"
] | permissive | //,temp,TestFsDatasetImpl.java,805,833,temp,TestFsDatasetImpl.java,762,803
//,3
public class xxx {
@Test(timeout = 30000)
public void testMoveBlockSuccess() {
MiniDFSCluster cluster = null;
try {
cluster = new MiniDFSCluster.Builder(conf)
.numDataNodes(1)
.storageTypes(new StorageT... | true |
e134e5982ca4069dc5a2244c2e4804a58de0b2c8 | Java | joooogle/miceProfiler | /plugins/fab/MiceProfiler/EventTimeLine.java | UTF-8 | 5,505 | 2.59375 | 3 | [] | no_license | /*
* Copyright 2011, 2012 Institut Pasteur.
*
* This file is part of MiceProfiler.
*
* MiceProfiler is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at y... | true |
1db33c72400bc67e903d14923d3fdbc42f19821b | Java | seshu-talent/ManPower | /src/com/ts/manpower/dto/WorkReference.java | UTF-8 | 1,816 | 2.1875 | 2 | [] | no_license | package com.ts.manpower.dto;
import java.util.*;
public class WorkReference {
private String firstName;
private String lastName;
private long mobileNumber;
private String emailId;
private ServiceType serviceType;
private Date serviceDate;
private char verifiedThrough;
private int rating;
priva... | true |
f7e2dd7c9d3e7c28fd2d0e9c245a6910ef259067 | Java | Timon2180/MavenTest | /IRR_Search_FullText/src/main/java/pack_utils/Proper.java | UTF-8 | 712 | 2.734375 | 3 | [] | no_license | package pack_utils;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
public class Proper
{
protected static Properties prop;
static
{
prop = new Properties();
try
{
//prop.load(ClassLoader.getSystemResourceAsStream("./src/main/resource/config.properties"));... | true |
33c811415653a7db4f35fe86777b495f81995443 | Java | ryanwbass/DorasDungeon | /DorasDungeon/src/view/Credits.java | UTF-8 | 1,638 | 2.6875 | 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 view;
import java.awt.Color;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.util.ArrayList;
... | true |
a0e5da77b373e70ad4fe865cc1bfaecc7c30b3b7 | Java | ChandimaMaduwanthi/Alert-Management-System | /src/main/java/com/temperature/alert/api/controller/AlertDataController.java | UTF-8 | 853 | 2.171875 | 2 | [] | no_license | package com.temperature.alert.api.controller;
import com.temperature.alert.api.model.AlertData;
import com.temperature.alert.api.service.AlertDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMa... | true |
63326b8d101356e34af211acfef51a38bb2aa8d2 | Java | AMOS-NextHMI/launcher | /Launcher/automotive/src/main/java/com/example/myapplication/ContextualViewModel.java | UTF-8 | 3,177 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2018 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 |
d0936aa53a6d6b232369596438578361804a76d9 | Java | konglong123/KFlow | /src/main/java/BP/WF/Template/FrmNodeExts.java | UTF-8 | 871 | 2.5 | 2 | [] | no_license | package BP.WF.Template;
import BP.En.EntitiesMyPK;
import BP.En.Entity;
public class FrmNodeExts extends EntitiesMyPK{
/**
* 节点表单
*/
public FrmNodeExts() { }
// #endregion 构造方法..
//#region 公共方法.
/**
* 得到它的 Entity
*/
@Override
public Entity getGetNewEntity() {
r... | true |
ae5eb1a5bcd6ddaa95db6b33d5dd686c8d55fc95 | Java | 10yangbin/JinMaoChinaApp | /app/src/main/java/com/guomao/propertyservice/model/offlineoperate/OfflineOperateDao.java | UTF-8 | 782 | 2.28125 | 2 | [] | no_license | package com.guomao.propertyservice.model.offlineoperate;
import java.util.List;
/**
* 离线报事dao的接口
* @author Administrator
*
*/
public interface OfflineOperateDao {
/**
* 将要离线的数据保存至数据库
*
* @param operate
* 离线的实体
* @param urserId
* @return id
*/
long save(Operation operate);
/**
* 提交... | true |
d2317b96933800eb3f95bc299a2886f11a9de4c5 | Java | SteveYuOWO/airplane-ticket-system | /src/test/java/com/littlepage/airplaneticketsystem/fakedata/Fake.java | UTF-8 | 6,462 | 2.296875 | 2 | [] | no_license | package com.littlepage.airplaneticketsystem.fakedata;
import com.littlepage.airplaneticketsystem.dao.AirflightRepository;
import com.littlepage.airplaneticketsystem.dao.AirlineRepository;
import com.littlepage.airplaneticketsystem.dao.CompanyRepository;
import com.littlepage.airplaneticketsystem.dao.PlaneRepository;
i... | true |
f85ec6ce37c3812c9460a8b53349b20596601520 | Java | szepma/hotel | /src/java/Repository/CityRepo.java | UTF-8 | 1,657 | 2.71875 | 3 | [] | no_license | package Repository;
import Model.Database;
import Model.Cities;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.ParameterMode;
import javax.persistence.StoredProcedureQuery;
public class CityRepo {
public static boolean addNewCity(Cities city) {
try {
En... | true |
67e9ed22188703c86e48e4e121df7cafe823968e | Java | gcoronelc/SISTUNI_JAVA_WEB_007 | /Clase04/EurekaWeb/src/pe/egcc/eureka/prueba/Rene.java | UTF-8 | 401 | 2.515625 | 3 | [] | no_license | package pe.egcc.eureka.prueba;
import java.math.BigDecimal;
public class Rene {
public static void main(String[] args) {
BigDecimal a = new BigDecimal("7.10");
BigDecimal b = new BigDecimal("5.55");
BigDecimal c = a.add(b);
System.out.println("a = " + a.toString());
System.out.prin... | true |
0f509b289ca3674708e8af3b7bc97e7c53d94820 | Java | youaitbella/DP | /DataPortalCalc/src/main/java/org/inek/dataportal/calc/enums/ExternalStaffType.java | UTF-8 | 1,046 | 3.015625 | 3 | [] | no_license | package org.inek.dataportal.calc.enums;
public enum ExternalStaffType {
NURSING(1, "NURSING"),
ASSISTANTNURSING(2, "ASSISTANTNURSING"),
OTHERNURSING(3, "OTHERNURSING");
private int _id;
private String _name;
ExternalStaffType(int id, String name) {
this._id = id;
this._name = ... | true |
49bbd3195cfaa48a4c2b7931eab9a7469c3b4175 | Java | nhudacin/xunit-converter | /src/main/java/com/tw/xunit/model/mstest/StackTrace.java | UTF-8 | 863 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.tw.xunit.model.mstest;
/**
* Created by nhudacin on 4/22/2015.
*/
import org.simpleframework.xml.Text;
public class StackTrace {
@Text(required = false)
public String value;
public StackTrace() {
}
public StackTrace(String value) {
this.value = value;
}
public Str... | true |
c5b426cc454c04b6a5e8386da3acc08a381d62af | Java | BenParker23/LBSAndroid | /app/src/main/java/com/lbs/model/MProduct.java | UTF-8 | 1,430 | 2.484375 | 2 | [] | no_license | package com.lbs.model;
/**
* Created by BenPa on 12/05/2018.
*/
public class MProduct extends DBObject{
private String name;
private String imageURL;
private int m_Product_ID;
private boolean isActive;
private String description;
public String getName() {
return name;
}
pub... | true |
189af871aba11fd4a8dc22505dc9e72fe88272f5 | Java | therbdwolverine/loki | /app/src/main/java/loki/project/com/loki/src/models/Location.java | UTF-8 | 253 | 1.757813 | 2 | [] | no_license | package loki.project.com.loki.src.models;
/**
* Created by User on 4/14/2017.
*/
public class Location {
private String address1;
private String address2;
private Long postalCode;
private String state;
private String country;
}
| true |
e9411fb865de797ba0adede56b37912bb6affa01 | Java | jerryfan2000/500px_fandroid_sdk | /src/com/fivehundredpx/api/PxApi.java | UTF-8 | 5,403 | 2.25 | 2 | [] | no_license | package com.fivehundredpx.api;
import android.util.Log;
import com.fivehundredpx.api.auth.AccessToken;
import com.kiumiu.ca.api500px.RESTTransport;
import com.kiumiu.ca.api500px.blog.blogInterface;
import com.kiumiu.ca.api500px.collections.collectionsInterface;
import com.kiumiu.ca.api500px.comments.commentInterface;... | true |
0acc3ca4c69212192799490fcddeb5c2fc891645 | Java | ElEd0/ConsoleUi | /src/main/java/es/ed0/terminalui/TerminalUi.java | UTF-8 | 7,240 | 3.03125 | 3 | [] | no_license | /**
* Created by Ed0 in 22 feb. 2019
*/
package es.ed0.terminalui;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import es.ed0.terminalui.input.CommandListener;
import es.ed0.terminalui.input.InputListener;
import es.ed0.terminal... | true |
613ad308c4d46c5dd907ab60e737401c6041fa0c | Java | qq9630232/Management | /app/src/main/java/com/example/freightmanagement/presenter/TrainingSelectPresenter.java | UTF-8 | 1,493 | 1.882813 | 2 | [] | no_license | package com.example.freightmanagement.presenter;
import com.example.freightmanagement.Base.BaseApiConstants;
import com.example.freightmanagement.Base.BasePresenter;
import com.example.freightmanagement.Bean.TrainAnswerListBean;
import com.example.freightmanagement.Bean.TrainingStartBean;
import com.example.freightman... | true |
9c0192169d871a1e438a9e9a4503af6b5ae9bc69 | Java | nagabhairavas/docextractor | /src/main/java/com/competency/model/CompetencyEntity.java | UTF-8 | 2,345 | 2.25 | 2 | [] | no_license | package com.competency.model;
public class CompetencyEntity {
private int competencyId;
private String competency;
private int categoryId;
private String category;
private int questionId;
private int questionNbr;
private int itemId;
private String question;
private String answerType;
private int ... | true |
4130d1513b3698ed214be177726387a0f02fc8dc | Java | xiongyf/springcloud | /order-api/src/main/java/com/kevin/orderapi/api/ProductFeignClient.java | UTF-8 | 701 | 2.09375 | 2 | [] | no_license | package com.kevin.orderapi.api;
import com.kevin.productapi.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | true |
6a3d2692561de1d2c018adcea2de9c66f6b2d32d | Java | annastakanova/U_01-linearProgram | /Task01a.java | UTF-8 | 628 | 4.0625 | 4 | [] | no_license | //1. Даны два действительных числа х и у. Вычислить их сумму, разность, произведение и частное.
public class Task01a {
public static void main(String[] args) {
double x = 1.01;
double y = 2.02;
double sum = x+y;
double sub = x-y;
double mult = x*y;
double div = x/y;
... | true |
726de66771bcd4a1f18677ac1d6cd9c77539e130 | Java | gabrieeeuu/cyan_challenge_backend | /src/main/java/com/cyan/Gabriel/model/Farm.java | UTF-8 | 955 | 2.609375 | 3 | [] | no_license | package com.cyan.Gabriel.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
import java.util.List;
@Table
@Entity
public class Farm {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column
private long id;
@Column
private String name;
@One... | true |
16586ba86addcd3a591e8c909ddd6fff1895c73f | Java | AbhishekRajgaria-ps/sapient-asde-june-2021-training | /Project/product-phase-development@97ff8629ba9/micro-services/vehicle-service/src/test/java/com/sapient/asde/batch5/vehicleservice/service/pod_a/pjmb1151/StoreVehicleComparisonTest.java | UTF-8 | 2,060 | 2.09375 | 2 | [] | no_license | package com.sapient.asde.batch5.vehicleservice.service.pod_a.pjmb1151;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.sapient.asde.... | true |
d8a69b92b68d7de15201361bf3904499b278b867 | Java | Tarunjain19/DXC_SVN | /trunk/IVRAppliction/sourcecode/RCOM_CF_Metro_IVR/WEB-INF/src/flow/Capture_ANI_DNIS_BC.java | UTF-8 | 12,088 | 1.632813 | 2 | [] | no_license | package flow;
import java.net.InetAddress;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.log4j.Logger;
import com.avaya.sce.runtimecommon.ITraceInfo;
import com.avaya.sce.runtimecommon.SCESession;
import com.rcom.metro.Constants;
import com.rcom.metro.StackTrace;
import com.rcom.metro.m... | true |
25941d6c0d23d66e276d97250d997caac75ae24a | Java | edvelezg/unb-java2 | /src/recursion/Permutations.java | UTF-8 | 1,452 | 3.421875 | 3 | [] | no_license | package recursion;
public class Permutations {
private boolean[] used;
private StringBuilder out = new StringBuilder();
private final String in;
public static void main(String[] args) {
Permutations p = new Permutations("abcd");
p.permute();
}
public Permutations(fin... | true |
172e3a61405b59d0d29a08eb1e7b3972c847a22e | Java | outboy-github/leetCode | /leetCode_04_FindMedianSortedArrays.java | UTF-8 | 683 | 3.515625 | 4 | [] | no_license | package com.wyw.leetCode01_10;
import java.util.Arrays;
public class LeetCode_04_FindMedianSortedArrays {
public static void main(String[] args){
int[] arr1 = {};
int[] arr2 = {2,3};
double num = findMedianSortedArrays(arr1, arr2);
System.out.println(num);
}
public static double findMedianSortedArrays(... | true |
651da14caa03f3f6fb5b6d202f9c3bc5be9df443 | Java | ITcathyh/Interpreter | /app/src/main/java/com/cheelem/interpreter/entity/SocketInfo.java | UTF-8 | 587 | 2.515625 | 3 | [] | no_license | package com.cheelem.interpreter.entity;
/**
* Created by 黄宇航 on 2018/2/28.
*/
public class SocketInfo {
private int code;
private Object obj = null;
public SocketInfo(int code, Object obj) {
this.code = code;
this.obj = obj;
}
public SocketInfo(int code) {
this.code = c... | true |
8684e7d343d31b6f307b396fa3ad361a2ea7cc23 | Java | zhuo-github/design-patterns | /src/observer/ConcreteSubject.java | UTF-8 | 282 | 2.734375 | 3 | [] | no_license | package observer;
import java.util.ArrayList;
import java.util.Collection;
public class ConcreteSubject extends Subject {
@Override
public void execute() {
System.out.println("实体的主题执行了");
//通知观察者
notifyObserver();
}
}
| true |
a1ea25706f40fcf3a1ae8595cf51a1a4f302471b | Java | Arst-zx/product | /src/main/java/com/imooc/product/service/ProductInfoService.java | UTF-8 | 652 | 2.015625 | 2 | [] | no_license | package com.imooc.product.service;
import com.imooc.product.DTO.CarDTO;
import com.imooc.product.dataobject.ProductInfo;
import java.util.List;
/**
* @author 章鑫
* @date 2018/8/23 10:27
*/
public interface ProductInfoService {
/**
* 1.查询所有在架商品
* @return List<ProductInfo>
*/
List<ProductInfo>... | true |
c3ea362c195bee06beeef8d8245ba004417462cb | Java | nomadsystem/NOMADS | /server_open/NomadServerThread.java | UTF-8 | 4,259 | 2.640625 | 3 | [] | no_license | import java.net.*;
import java.io.*;
import nomads.v210.*;
public class NomadServerThread extends Thread
{ private NomadServer server = null;
private Socket socket = null;
private int THREAD_ID = -1;
private int APP_ID = -1;
private String IP;
pri... | true |
44fbbb74b861ddea1e69801f6f2f970781ad7368 | Java | SaltedByte/Java-School-Projects | /Knapsack.java | UTF-8 | 3,784 | 3.40625 | 3 | [] | no_license | //Andrew Lucas CSC364 Knapsack Assignment 2
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;
public class Knapsack {
public static void main(String Args[]) throws FileNotFoundException {
//Grab the initia... | true |
0d268e61ce455fe0a45a82af896794b2e5514b60 | Java | MewX/contendo-viewer-v1.6.3 | /org/apache/http/protocol/ResponseServer.java | UTF-8 | 1,748 | 1.890625 | 2 | [
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /* */ package org.apache.http.protocol;
/* */
/* */ import java.io.IOException;
/* */ import org.apache.http.HttpException;
/* */ import org.apache.http.HttpResponse;
/* */ import org.apache.http.HttpResponseInterceptor;
/* */ import org.apache.http.annotation.Contract;
/* */ import org.apache.... | true |
19d3634665eb7a4974c3c86b7a560979babdc6f5 | Java | rohityadavnotes/AddToCartUsingJava | /app/src/main/java/com/add/to/cart/ui/product/ProductViewModel.java | UTF-8 | 1,417 | 2.1875 | 2 | [] | no_license | package com.add.to.cart.ui.product;
import android.content.Context;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import com.add.to.cart.data.local.entity.Cart;
import com.add.to.cart.data.local.entity.Product;
import com.add.to.cart.data.local.relations.ProductWithCart;
import com.add.to.ca... | true |
15a43160d7f0c4e5aaf9ae7540229566ed456930 | Java | MayconErhardt/depositoDeBebidas | /src/controle/ControleProduto.java | UTF-8 | 8,540 | 2.546875 | 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 controle;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
imp... | true |
2a8db9d2dbff9d196a5e29f3df9fe0de8cdfe869 | Java | Dreamer206602/LoveWall | /app/src/main/java/com/confress/lovewall/Activity/UserSettingActivity.java | UTF-8 | 5,511 | 2.015625 | 2 | [] | no_license | package com.confress.lovewall.Activity;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android... | true |
603ab60d889c3d651a46a3ee43e8373a72b38624 | Java | rob-c/rapid_fit_gui | /src/rapidFit/main/XMLIOException.java | UTF-8 | 633 | 2.421875 | 2 | [] | no_license | package rapidFit.main;
@SuppressWarnings("serial")
public class XMLIOException extends RapidFitException {
public enum ErrorType {
WRITE_FILE_ERROR,
READ_FILE_ERROR,
XML_PARSING_ERROR,
WRITE_XML_SCHEMA_VALIDATION_ERROR,
READ_XML_SCHEMA_VALIDATION_ERROR,
READ_SCHEMA_ERROR,
INTERNAL_ERROR,... | true |
9f9bc7151b2481a4c90492338f43cf9708bbe779 | Java | okanmenevseoglu/mancala-game | /mancala-api/src/test/java/io/github/okanmenevseoglu/mancalagameapi/service/rules/validation/CurrentPlayerNonEmptyPitRuleTest.java | UTF-8 | 2,548 | 2.484375 | 2 | [] | no_license | package io.github.okanmenevseoglu.mancalagameapi.service.rules.validation;
import io.github.okanmenevseoglu.mancalagameapi.model.Board;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.junit.jupiter.MockitoExtension;
import static... | true |
00bad729edbbfb3d54bf991dc1cb7575fec87a7e | Java | Hellhound732/Bewitchment | /src/main/java/com/bewitchment/common/core/event/TransformationEvents.java | UTF-8 | 3,190 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.bewitchment.common.core.event;
import com.bewitchment.api.BewitchmentAPI;
import com.bewitchment.api.transformation.DefaultTransformations;
import com.bewitchment.common.core.capability.transformation.CapabilityTransformationData;
import com.bewitchment.common.core.capability.transformation.ITransformation... | true |
854db98f2a32daf80ec967cef4cfe58357e6f3b2 | Java | RyanOliveiraCastro/LPR-Back | /src/main/java/edu/ifes/ci/si/les/lpr/services/ComissaoService.java | UTF-8 | 558 | 2.0625 | 2 | [] | no_license | package edu.ifes.ci.si.les.lpr.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.ifes.ci.si.les.lpr.model.Comissao;
import edu.ifes.ci.si.les.lpr.repositories.ComissaoRepository;
@Service
public class ComissaoService {
@Autowired
pri... | true |
11e559b6be333b58ad8eb69191b3acc651791505 | Java | VijayEluri/rsstotwitter | /src/main/java/nz/gen/wellington/rsstotwitter/repositories/mongo/MongoTwitterAccountDAO.java | UTF-8 | 962 | 2.09375 | 2 | [] | no_license | package nz.gen.wellington.rsstotwitter.repositories.mongo;
import nz.gen.wellington.rsstotwitter.model.TwitterAccount;
import nz.gen.wellington.rsstotwitter.repositories.AccountDAO;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Comp... | true |
50bc80227eb08e5c6f6f84c9c566a55df87810b5 | Java | KINGOFAURORA/aurora | /aurora-service/src/main/java/com/aurora/leetcode/Question3.java | UTF-8 | 1,783 | 3.765625 | 4 | [] | no_license | package com.aurora.leetcode;
import java.util.HashSet;
import java.util.Set;
/**
* 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
* <p>
* 示例 1:
* <p>
* 输入: "abcabcbb"
* 输出: 3
* 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
* 示例 2:
* <p>
* 输入: "bbbbb"
* 输出: 1
* 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。
* 示例 3:
* <p>
* 输入: "pwwkew"
* 输出: ... | true |
8c1399b248be9dc6f240e84dc6db04d733069463 | Java | Janchu/Pizzicato_6G1C | /Pizzicato_6G1C/src/pizzicato/control/PoistaTayteServlet.java | UTF-8 | 1,771 | 2.390625 | 2 | [] | no_license | package pizzicato.control;
import java.io.IOException;
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 pizzicato.model.Tayte;
import... | true |
b8886d3aaf6dca54e04216a0c2f688fbc5719214 | Java | andylx96/IST261 | /src/ViewAllSearchPanel.java | UTF-8 | 1,482 | 2.5625 | 3 | [] | no_license |
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
public class ViewAllSearchPanel extends JPanel {
JButton deleteButton, editButton, saveEditButton;
public ViewAllSearchPanel() {
setLayout(new GridLayout(10,1));
... | true |
7c10b6afe2a9091b9cb6dbefaba40e537ea79bf2 | Java | nmldiegues/stibt | /infinispan/core/src/main/java/org/infinispan/commands/write/EvictCommand.java | UTF-8 | 2,809 | 1.726563 | 2 | [
"Apache-2.0",
"LGPL-2.0-or-later"
] | permissive | /*
* JBoss, Home of Professional Open Source
* Copyright 2009 Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistri... | true |
ac561167b6061cab5d7039c362f68a30f9963888 | Java | EstefaniaCC/NWSim | /NWSim/src/sim/dto/ColumnComb.java | UTF-8 | 2,458 | 3.328125 | 3 | [] | no_license | package sim.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
/**
* To create the combination of elements from an arraylist.
*
* @see Serializable
* @author Sadiya
*
*/
public class ColumnComb implements Serializable{
/**
*
*/
priva... | true |
3fe617a8aa913c057f580c44d4e648e7e4c1dddd | Java | zhongxingyu/Seer | /Diff-Raw-Data/22/22_34a8e67e7628665d2996d0b00ab843d2eb2ddd78/SpinnerWrapper/22_34a8e67e7628665d2996d0b00ab843d2eb2ddd78_SpinnerWrapper_t.java | UTF-8 | 1,920 | 2.34375 | 2 | [] | no_license | package ch.amana.android.cputuner.view.widget;
import java.util.HashSet;
import java.util.Set;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import ch.amana.android.... | true |
dcf51d658fe38e1376aafe833b17bc85c8128f20 | Java | intrepiddhole/OfflineMap | /app/src/main/java/com/gps/offlinenavigation/map/routedirection/free/model/util/Calorie.java | UTF-8 | 822 | 2.28125 | 2 | [] | no_license | package com.gps.offlinenavigation.map.routedirection.free.model.util;
public class Calorie {
public static final double bicycling = 8.0D;
public static final double running = 7.0D;
public static final double walking = 3.0D;
public static final double weightKg = 77.0D;
public Calorie() {
}
public static... | true |
0a4b2b16d8c1d0db5e8dd9ebe54fa02ee96d752e | Java | rexendz/bfarmobile | /app/src/main-bak/java/com/adzu/bfarmobile/activities/MainActivity.java | UTF-8 | 17,833 | 1.75 | 2 | [] | no_license | package com.adzu.bfarmobile.activities;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
i... | true |
f0fc90c0057b02d41eb1e7c77ab230e66550451e | Java | jlam55555/project-euler-java | /pe/PE15.java | UTF-8 | 535 | 2.578125 | 3 | [] | no_license | package pe;
import harness.PERunnable;
public class PE15 extends PERunnable<Long> {
private final int n = 20;
// dp solution; can use combinatorics instead (40!/20!/20!)
@Override
public Long run(int version) {
long[][] matrix = new long[n+1][n+1];
int i, j;
for(i=0; i<n; i+... | true |
f9a273719228173fc3a5a734e63f4b57cee1763c | Java | wonjina/spring-boot-12pmDcom | /src/main/java/com/gabia/project/internproject/service/review/ReviewService.java | UTF-8 | 3,897 | 2.125 | 2 | [] | no_license | package com.gabia.project.internproject.service.review;
import com.gabia.project.internproject.common.domain.Member;
import com.gabia.project.internproject.common.domain.Restaurant;
import com.gabia.project.internproject.common.domain.Review;
import com.gabia.project.internproject.common.helper.Notification;
import co... | true |
01b8ce27c40778b00168b6998603d9ca9b7e5a63 | Java | tow84917/PlayFit | /src/main/java/com/java016/playfit/serviceimpl/OrderRecordServiceImpl.java | UTF-8 | 6,049 | 2.0625 | 2 | [] | no_license | package com.java016.playfit.serviceimpl;
import com.java016.playfit.dao.OrderRecordRepository;
import com.java016.playfit.dao.UserRepository;
import com.java016.playfit.model.OrderRecord;
import com.java016.playfit.model.User;
import com.java016.playfit.service.OrderRecordService;
import com.java016.playfit.service.Us... | true |
e5c00d879dc79e5a17c69068b48884add1ff915c | Java | RonaldoJa/Programas | /java/Alquiler_libros/src/main/java/com/mycompany/alquiler_libros/main.java | UTF-8 | 3,803 | 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 com.mycompany.alquiler_libros;
import java.util.ArrayList;
/**
*
* @author tomvargas
*/
public class main {
public... | true |
5691f7af283f8643e4dc4cb1dbad31476c23f93d | Java | tt2nn/Gree-GPRS | /GreeGprs/src/com/gree/gprs/tcp/model/TimeModel.java | UTF-8 | 2,152 | 2.46875 | 2 | [] | no_license | package com.gree.gprs.tcp.model;
import com.gree.gprs.control.ControlCenter;
import com.gree.gprs.data.DataCenter;
import com.gree.gprs.tcp.TcpModel;
import com.gree.gprs.util.Logger;
import com.gree.gprs.util.Utils;
import com.gree.gprs.variable.Variable;
/**
* 时间
*
* @author lihaotian
*
*/
public class TimeMo... | true |
7d9269cf825e35bc65fe03cebefe98103c00220f | Java | kubeflow/arena | /sdk/arena-java-sdk/src/main/java/com/github/kubeflow/arena/model/training/GPUMetric.java | UTF-8 | 870 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.kubeflow.arena.model.training;
import com.alibaba.fastjson.JSON;
public class GPUMetric {
private double gpuDutyCycle;
private double usedGPUMemory;
private double totalGPUMemory;
public double getGpuDutyCycle() {
return this.gpuDutyCycle;
}
public void setGpuDutyC... | true |
fa554ce3913761f3ea74c0cd73ef05b8670c9b52 | Java | Chetic/Phishpic | /app/src/main/java/com/phishcave/phishpic/CameraPreview.java | UTF-8 | 5,911 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.phishcave.phishpic;
/**
* Created by freveny on 2015-03-10.
*/
import android.content.Context;
import android.graphics.ImageFormat;
import android.hardware.Camera;
import android.hardware.Camera.Size;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Surface;
import androi... | true |
4f5a4ad7c7e5f650f954dedcfe27a68644809519 | Java | lucmoreau/ProvToolbox | /modules-core/prov-jsonld/src/main/java/org/openprovenance/prov/core/json/serialization/deserial/CustomNamespacePrefixDeserializer.java | UTF-8 | 1,715 | 2.15625 | 2 | [
"MIT"
] | permissive | package org.openprovenance.prov.core.json.serialization.deserial;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.... | true |
c63bea1f0cf15c8cfd474a0a2bc2a11f8d2a7cde | Java | 2016121009/bolg | /src/dao/userdao.java | UTF-8 | 3,176 | 2.484375 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import db.dbutil;
import java.lang.Exception;
import entity.user;
public class userdao {
Connecti... | true |
072cf17f2729053cb4b0874ace0121ec71aea5a3 | Java | IlnarH/Arrow | /app/src/main/java/com/arrowgame/gameprocess/gameobject/Decoration.java | UTF-8 | 1,052 | 2.671875 | 3 | [] | no_license | package com.arrowgame.gameprocess.gameobject;
import com.arrowgame.gameprocess.GameManager;
import com.arrowgame.gameprocess.animation.Animation;
import com.arrowgame.gameprocess.graphics.Camera;
public class Decoration extends GameObject {
public Decoration(GamePoint position, Animation animation) {
sup... | true |
e95a99c87ac0a00a57eb12d9d33f227526d97f6d | Java | anehing/JavaConcurrencyPattern | /src/vh/exception/Task.java | UTF-8 | 184 | 1.859375 | 2 | [
"MIT"
] | permissive | package vh.exception;
public class Task implements Runnable {
@Override
public void run() {
// TODO Auto-generated method stub
int numero = Integer.parseInt("Tw是TT");
}
}
| true |
c26d23019f802c0139c711941baa1cd653495e38 | Java | BriannaZhou/BriannaZhou | /Class Practice/src/Student.java | UTF-8 | 1,117 | 3.34375 | 3 | [] | no_license | import java.util.ArrayList;
public class Student {
private String StudentName;
private static int StudentID = 0;
private int id;
private ArrayList<Courses> course;
private double Average;
Student(String StudentName) {
this.StudentName = StudentName;
id = StudentID;
St... | true |
bc5a4b66b38868cf4644caf59efe5b50f7c60991 | Java | lzzhuang777/questions | /questions-common/src/main/java/com/lzz/mapper/QmsQuestionMapper.java | UTF-8 | 640 | 1.75 | 2 | [] | no_license | package com.lzz.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzz.model.QmsQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author macro
* @since 2020-09-27
*/
@Mapper
publ... | true |
8ca3186ab3206a2bc278d07e362a0eb5d86ef8f4 | Java | STAMP-project/Cling-application | /results/cling/time-org.joda.time.DateTimeZone-org.joda.time.format.DateTimeFormat-14/org/joda/time/DateTimeZone_ESTest.java | UTF-8 | 12,565 | 1.859375 | 2 | [] | no_license | /*
* Tue Mar 03 18:13:44 GMT 2020
*/
package org.joda.time;
import org.junit.Test;
import org.junit.Ignore;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.util.Calendar;
import java.util.Locale;
import java.... | true |
d400b9a2ec7e67de21923504fa20f0bd570c3d01 | Java | tjbee/homework | /elective/SE452/hw1 2/src/main/java/edu/depaul/se/account/jdbc/AccountManager.java | UTF-8 | 1,465 | 2.625 | 3 | [] | no_license | package edu.depaul.se.account.jdbc;
import edu.depaul.se.account.AccountNotFoundException;
import edu.depaul.se.account.IAccount;
import edu.depaul.se.account.IAccountManager;
import edu.depaul.se.account.InsufficientFundsException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedSt... | true |
5659626898e31d77a4061106eacf17c04714a48f | Java | l2x6/cq-maven-plugin | /maven-plugin/src/test/expected/promote-extension-foo/extensions/foo/deployment/src/main/java/org/apache/camel/quarkus/component/foo/deployment/FooProcessor.java | UTF-8 | 678 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.camel.quarkus.component.foo.deployment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.pkg.steps.NativeB... | true |
5c45c04371c449d2512c6f8011167b109e7d15fb | Java | sokon112/student | /src/ch5/Printer.java | UTF-8 | 339 | 3.25 | 3 | [] | no_license | package ch5;
public class Printer {
void println(int num) {
System.out.println(num);
}
void println(boolean bool) {
System.out.println(bool);
}
void println(double number) {
System.out.println(number);
}
void println(String name) {
System.out.println(name);
}
void println(char word) {
System.out.p... | true |
ae8f61028e2d474315c684a6c103e8f215e37e59 | Java | MatousVales/RadioLocator | /app/src/main/java/com/example/matous/radiolocator/Classes/DBHelper.java | UTF-8 | 4,243 | 2.53125 | 3 | [] | no_license | package com.example.matous.radiolocator.Classes;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.matous.radiolocator.Activities.DatabaseActivity;
imp... | true |
6ccdda21af81e8ab464badef2f7107627d9db473 | Java | HugoD98/BedugulVoyages | /AGPDynWebProj/src/tests/AlgorithmTest.java | UTF-8 | 3,516 | 3.046875 | 3 | [] | no_license | package tests;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import org.junit.Test;
import algorithm.Algorithm;
import algorithm.AlgorithmUtility;
import environment.TouristicSite;
import environment.Transport;
import organisation.Excursion;
import organisation.Stay;
public class Algori... | true |
75b3071d27a4b814c6a35bc6beec263b90001c04 | Java | LionelBeato/weeksixspring | /src/main/java/com/example/weeksix/Service/DonutService.java | UTF-8 | 796 | 2.234375 | 2 | [] | no_license | package com.example.weeksix.Service;
import com.example.weeksix.Model.Donut;
import com.example.weeksix.Repo.DonutRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public class DonutService {
@Autowired
Don... | true |
857291e9c071a917ed5a1e5e21a042f183330fcd | Java | angel96/Design-Testing2 | /D06 - Control Check/Control Check - Aleks/Item 3 - Project/Acme-Rookies/src/main/java/services/PositionDataService.java | UTF-8 | 4,010 | 2.28125 | 2 | [] | no_license |
package services;
import java.util.Collection;
import java.util.Date;
import javax.transaction.Transactional;
import javax.validation.ValidationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import org.... | true |
00c783cf830c587fd6c022cbebe2ac9d78c850b3 | Java | moutainhigh/chdHRP | /src/com/chd/hrp/acc/service/books/auxiliaryaccount/AccProjAuxiliaryAccountService.java | UTF-8 | 2,332 | 1.875 | 2 | [] | no_license | package com.chd.hrp.acc.service.books.auxiliaryaccount;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
public interface AccProjAuxiliaryAccountService {
public String collectProjSubjGeneralLedger(Map<String,Object> entityMap)throws DataAccessException;
public Stri... | true |
fb5aca221396264014b4cd3fd09c5bce925d4264 | Java | mwl/sdm | /nsp/cpr-ws/src/main/java/dk/nsi/stamdata/cpr/mapping/MunicipalityMapper.java | UTF-8 | 6,126 | 2.265625 | 2 | [] | no_license | /**
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* I... | true |
456a15b38291b5516afd35ee45b22b96544a4b6b | Java | saisandeep2218/My_Jenkins_Master_Branch | /src/PageObjects/UserMgmtPage.java | UTF-8 | 457 | 1.5625 | 2 | [] | no_license | package PageObjects;
import org.openqa.selenium.By;
public class UserMgmtPage {
public static By chkboxAll = By.id("ohrmList_chkSelectAll");
public static By drpdwnUsr = By.id("searchSystemUser_userType");
public static By userlabel = By.xpath("//*[@id='search_form']/fieldset/ol/li[2]/... | true |
df80da978073d3468eb1c263a409c9f7670a1606 | Java | 102092/spring-study | /spring-framework/demospring51/src/main/java/com/donghwan/demospring51/MyEventHandler.java | UTF-8 | 975 | 2.4375 | 2 | [] | no_license | package com.donghwan.demospring51;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component... | true |
78bfc20fdda288256b53d5a7a332c19a24d791a9 | Java | rebornwhu/RetrofitExample | /app/src/main/java/com/andexert/retrofitexample/rest/RestApiDispenser.java | UTF-8 | 1,669 | 2.75 | 3 | [] | no_license | package com.andexert.retrofitexample.rest;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.HashMap;
import java.util.Map;
import retrofit.RestAdapter;
import retrofit.converter.GsonConverter;
/**
* Created by xiaolu on 4/30/15.
*/
/** Inspired by this post
* http://stackoverflo... | true |
1fb41aba9f3f65be36aa12f1cd47c923e4a23c12 | Java | shaileshbhuvanendran/RestService_SpringBoot | /src/main/java/com/example/adcampaign/controller/AdCampaignController.java | UTF-8 | 2,317 | 2.375 | 2 | [] | no_license | package com.example.adcampaign.controller;
import java.util.Map;
import java.util.NoSuchElementException;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annot... | true |
147d055cd583ca32ae7c374336a0e69473f2adc7 | Java | liufade/MyMole | /app/src/main/java/com/example/computer/mymole/Resp/mianResp/HomeJinXuanResp.java | UTF-8 | 468 | 1.945313 | 2 | [] | no_license | package com.example.computer.mymole.Resp.mianResp;
import com.example.computer.mymole.Resp.BaseResp;
import com.example.computer.mymole.Resp.mianResp.HomeJinXuanEntity;
/**
* Created by computer on 2016/7/22.
*/
public class HomeJinXuanResp extends BaseResp {
private HomeJinXuanEntity result;
public HomeJi... | true |
5b3aa615d0efd3aca9853640b4524950b7496d9e | Java | lucatsv/hermes | /microservices/webservice/src/main/java/com/hermes/webservice/models/Schedule.java | UTF-8 | 591 | 2.203125 | 2 | [] | no_license | package com.hermes.webservice.models;
import com.hermes.webservice.enums.Periodicity;
import java.time.LocalDateTime;
public class Schedule {
private LocalDateTime startDate;
public LocalDateTime getStartDate() {
return startDate;
}
public void setStartDate(LocalDateTime startDate) {
... | true |
354db16b35d565fbf6b9a3ca1034b3bebd5aaa1e | Java | NeillWhite/eBiomer | /PolyPeptideResidue.java | UTF-8 | 78,064 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.goosebumpanalytics.biomer;
public class PolyPeptideResidue {
Residue residue;
Residue getResidue( String residueName ){
if ( residueName.equals( "Lace" ) ){
createResidue( "ACE", 6 );
residue.atom[ 0 ] = new Atom( "H1", 0.000f, 0.000f, 0.000f );
residue.atom[ 1 ] = new Atom( "CH3", 0.000f, 1... | true |
3b10d217621f1d57421944549f14a64b30f036b5 | Java | esteves67/plsat_gts_01 | /src/org/opengts/extra/war/report/session/SessionStatusReport.java | UTF-8 | 7,891 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | // ----------------------------------------------------------------------------
// Copyright 2007-2014, OpenGTS
// All rights reserved
// ----------------------------------------------------------------------------
//
// This source module is PROPRIETARY and CONFIDENTIAL.
// NOT INTENDED FOR PUBLIC RELEASE.
//
// Use ... | true |
ac665bf0f53b2cffdbce408b3c1278bfbe361711 | Java | lalwani1312/News-Outlinks | /app/src/main/java/com/codefather/inshortsoutlinks/browser/WebActivity.java | UTF-8 | 4,514 | 2.015625 | 2 | [] | no_license | package com.codefather.inshortsoutlinks.browser;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import andr... | true |
61cc73bffb457c503a90aed14e30a6cc6e650f1d | Java | coderczp/jzran-1 | /src/net/jzran/FileSeekableInputStream.java | UTF-8 | 1,213 | 2.6875 | 3 | [] | no_license | package net.jzran;
import java.io.IOException;
import java.io.RandomAccessFile;
public class FileSeekableInputStream extends SeekableInputStream {
private final RandomAccessFile raf;
public FileSeekableInputStream(RandomAccessFile raf) {
this.raf = raf;
}
@Override
public in... | true |
04f47ae79a919cd3679d00b350eba4f825dbdd2d | Java | TKnudsen/ComplexDataObject | /src/main/java/com/github/TKnudsen/ComplexDataObject/model/io/parsers/objects/IntegerParser.java | UTF-8 | 1,062 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | package com.github.TKnudsen.ComplexDataObject.model.io.parsers.objects;
/**
*
* Interger parser that throws an exception when a number shall be parsed that
* is larger than an Integer's max value.
*
* <p>
* Copyright: Copyright (c) 2016-2020
* </p>
*
* @author Juergen Bernard
* @version 1.03
... | true |
5de948df77d6c489ab05b82dee18ad44ade0f072 | Java | PrachiEduBridge/AdvertisementManagementSystem | /AddvertiseManagmentSystem/src/com/adpoint/service/SearchDetails.java | UTF-8 | 2,797 | 2.453125 | 2 | [] | no_license | package com.adpoint.service;
//import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespons... | true |
5e24a445b7349e0522e97878321eff385f1b7d73 | Java | justaddwater71/GroupAndSlice | /src/edu/nps/jody/GroupAndSlice/FileSizeComparator.java | UTF-8 | 419 | 3.109375 | 3 | [] | no_license | package edu.nps.jody.GroupAndSlice;
import java.io.File;
import java.util.Comparator;
public class FileSizeComparator<T> implements Comparator<T>
{
@Override
public int compare(T o1, T o2)
{
File file1;
File file2;
file1 = (File)o1;
file2 = (File)o2;
if (file1.length() < file2.length())
{
r... | true |
d6d844e0bbf96725050d20b3a0194a20715c819a | Java | angeldragon532/togetherClient | /Together/src/com/beijing/together/activity/UserManagerActivity.java | UTF-8 | 14,393 | 1.757813 | 2 | [] | no_license | //package com.beijing.together.activity;
//
//import java.io.ByteArrayOutputStream;
//import java.io.File;
//import java.util.HashMap;
//
//import android.annotation.SuppressLint;
//import android.app.Activity;
//import android.app.AlertDialog;
//import android.app.Dialog;
//import android.content.ActivityNotFoundExcep... | true |
d9008516f0200927d987087e85fd0085f8f63c3d | Java | tiendv/detaitotnghiep | /Source code/dblp expert find/dblpdata/src/main/java/edu/ucdavis/cs/dblp/data/DblpKeywordDao.java | UTF-8 | 471 | 2.46875 | 2 | [] | no_license | /**
*
*/
package edu.ucdavis.cs.dblp.data;
import java.util.List;
import javax.persistence.EntityManager;
/**
* Data Access Object for DBLP {@link Keyword}s.
*
* @author pfishero
*/
public interface DblpKeywordDao {
Keyword findById(Long id);
Keyword findByName(String keyword);
List<Ke... | true |
27d790e167cfcdb24d46366da3997d1e112b73ef | Java | louism33/ChessCore | /src/test/java/com/github/louism33/chesscore/BoardConstantsTest.java | UTF-8 | 1,883 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.github.louism33.chesscore;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import static com.github.louism33.chesscore.BitOperations.populationCount;
import static com.github.louism33.chesscore.BoardConstants.*;
class BoardConstantsTest {
@Test
void intialBoard(){
for (int i... | true |
10c8b8af9430c9994eaab94feaca3b34a2acd029 | Java | daowoo/junit | /src/main/java/com/daowoo/bigdata/chap4/OtherStockMatcher.java | UTF-8 | 244 | 2.25 | 2 | [] | no_license | package com.daowoo.bigdata.chap4;
/**
* Created by apple on 24/08/2017.
*/
public class OtherStockMatcher extends BlueChipStockMatcher{
@Override
public boolean matches(Object symbol) {
return !super.matches(symbol);
}
}
| true |
720e4544ee721b00d13cb3764ca8e1487d03d164 | Java | srusso/twitter-statistics | /src/main/java/com/ssof/gui/ZScoreGraphPanel.java | UTF-8 | 8,199 | 2.515625 | 3 | [] | no_license | package com.ssof.gui;
import com.ssof.emotions.ZScoreForGraph;
import com.ssof.exceptions.NoSuchAttributeException;
import com.ssof.exceptions.NoSuchDayException;
import com.ssof.utils.comparators.DateComparator;
import org.joda.time.DateTime;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import java.awt... | true |
a9b06a91f8d34f90a9a5401ae1813d2c81bb4534 | Java | varsize/atlant-android | /app/src/main/java/com/frostchein/atlant/views/AtlToolbarView.java | UTF-8 | 1,466 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.frostchein.atlant.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import com.frostchein.atlant.R;
import com.frostchein.atlant.model.Balance;
import com.frostchein.atlant.utils.DigitsUtils;
... | true |
4535e3048cecb3f43d2111ddb44c29c0214d7b55 | Java | hejxtom/microservicem | /springcloud_atguigu/microservicecloud/microservicecloud-api/src/main/java/com/atguigu/springcloud/service/DeptClientService.java | UTF-8 | 1,000 | 1.890625 | 2 | [] | no_license | package com.atguigu.springcloud.service;
import com.atguigu.springcloud.entities.DeptEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annota... | true |
eea8456113ab28bf5e79d3f18e96c55bc4aea305 | Java | Debjyoti2/POC-Projetct | /Java Abstraction 2/src/com/Vehicle.java | UTF-8 | 110 | 2.234375 | 2 | [] | no_license | package com;
abstract class Vehicle {
abstract void start();
abstract void vehiCleName();
}
| true |
39d439b9943ef202387de8b0b2fb9e814b3d7a03 | Java | nileshborole/vertx-codegen | /src/test/java/io/vertx/test/codegen/converter/DataObjectTest.java | UTF-8 | 50,297 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2011-2017 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... | true |