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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f23166598f70b37657a979295cf9442bc43a367a | Java | cckmit/Study-1 | /android/Android-daju/RxJava/app/src/main/java/com/cjc/rxjava/rx_android_demo/AsyncActivity.java | UTF-8 | 2,101 | 2.0625 | 2 | [] | no_license | package com.cjc.rxjava.rx_android_demo;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.cjc.rx... | true |
bd39636d3751606d9af422a1d9543fc7ce1477cf | Java | j1mmo/cs2 | /Fundamentals of Programming Languages/week2/Linked List/main.java | UTF-8 | 211 | 2.015625 | 2 | [] | no_license | import java.io.*;
import java.util.Iterator;
public class week2 {
public static void main(String[] args) throws IOException {
ListNode n = new ListNode(243);
ListNode x = new ListNode(564);
}
}
| true |
5dbbf6d4667f25ee413c3619d96ce4dbfb7e90a4 | Java | HoangLeoO/A0920I1--L-V-n-Ho-ng | /src/caseStudy/models/Villa.java | UTF-8 | 3,541 | 3.046875 | 3 | [] | no_license | package caseStudy.models;
import caseStudy.commons.ReadFile;
public class Villa extends Services implements Comparable<Villa>{
private String Standard_room ;
private String other_services ; // các tiện nghi khác
private int acreage_pool ; // diện tích hồ bơi
private int number_floors; // số tầng
... | true |
fbfaf0984410b77df30f83a85222f84328b1bd8f | Java | xuzhikethinker/hbs | /src/com/hbs/domain/community/CommunityInfo.java | UTF-8 | 3,030 | 2.15625 | 2 | [] | no_license | package com.hbs.domain.community;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.pe... | true |
d3965a20867e3abc8dbc51efca2d96c61f14971f | Java | the3sky/difo | /src/main/java/com/zion/action/interceptor/GuiceInterceptor.java | UTF-8 | 1,816 | 1.632813 | 2 | [] | no_license | /*************************************************************************
*
* Forward Thinking CONFIDENTIAL
* __________________
*
* 2013 - 2017 Forward Thinking Ltd
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Forward Thinking Ltd and its supplie... | true |
602ac3119522e9c220060701c76a2393e97d52b5 | Java | ExceptionPublic/logistics | /src/main/java/com/zking/logistics/basic/service/impService/ClientsServiceImpl.java | UTF-8 | 1,396 | 2.125 | 2 | [] | no_license | package com.zking.logistics.basic.service.impService;
import com.zking.logistics.basic.mapper.ClientsMapper;
import com.zking.logistics.basic.model.Clients;
import com.zking.logistics.basic.service.IClientsService;
import com.zking.logistics.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;... | true |
86a2008d5427f49eed31557428613d399684fe57 | Java | aust4656/Test | /android/Intent传回数据.java | UTF-8 | 669 | 2.0625 | 2 | [] | no_license | package com.example.demo8_30;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class Main2Activity extends AppCompatActivity {
TextView tv1;
@Override
protected void onCre... | true |
b4a8691e20f8a9e50006b7d02f1321b2fc3aa142 | Java | aynetwork/sarafan | /src/main/java/letscode/sarafan/controller/CommentController.java | UTF-8 | 1,365 | 2.03125 | 2 | [] | no_license | package letscode.sarafan.controller;
import com.fasterxml.jackson.annotation.JsonView;
import letscode.sarafan.domain.Comment;
import letscode.sarafan.domain.User;
import letscode.sarafan.domain.Views;
import letscode.sarafan.dto.EventType;
import letscode.sarafan.dto.ObjectType;
import letscode.sarafan.service.Commen... | true |
6a56706a32c82f8cae8b567e9bbf7567bddf312c | Java | mesentllc/fxsp-jms-tool | /src/test/java/com/fedex/services/jmstool/service/JmsProcessServiceTest.java | UTF-8 | 7,684 | 2.078125 | 2 | [] | no_license | package com.fedex.services.jmstool.service;
import com.fedex.services.jmstool.mock.BytesMessageMock;
import com.fedex.services.jmstool.mock.JmsTemplateMock;
import com.fedex.services.jmstool.model.MessageModel;
import com.fedex.smartpost.common.exception.RecoverableException;
import com.fedex.smartpost.common.exceptio... | true |
f45d945a2da959d579606844cd904f04117eb52d | Java | rogerioAnderson/sas | /web/src/main/java/com/coded2/infra/util/TextResrouce.java | UTF-8 | 196 | 1.507813 | 2 | [] | no_license | package com.coded2.infra.util;
public class TextResrouce {
public static final String M001 = "Operação realizada com sucesso";
public static final String ERR001 = "CPF já cadastrado";
} | true |
fb5d1075bccb2450149b3a1f0b1b05c961828bdc | Java | CrumbleWorks/aTFC | /src/main/java/org/crumbleworks/forge/aTFC/content/items/TintableBlockItem.java | UTF-8 | 428 | 2.15625 | 2 | [
"BSD-3-Clause"
] | permissive | package org.crumbleworks.forge.aTFC.content.items;
import org.crumbleworks.forge.aTFC.content.blocks.Tintable;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
/**
* TODO
*
* @author Michael Stocker
* @since CURRENT_VERSION
*/
public class TintableBlockItem extends BlockItem implements Ti... | true |
155d71fb33f2cf000cdf0ae448f6129017e173f6 | Java | ABCurado/University-Projects | /eCafetaria/ecafeteria.core/src/main/java/eapli/ecafeteria/domain/cafeteria/CashRegister/Shift.java | UTF-8 | 4,255 | 2.46875 | 2 | [] | no_license | package eapli.ecafeteria.domain.cafeteria.CashRegister;
import eapli.ecafeteria.AppSettings;
import eapli.ecafeteria.domain.authz.SystemUser;
import eapli.ecafeteria.domain.meals.MealType;
import eapli.framework.domain.AggregateRoot;
import eapli.util.DateTime;
import java.io.Serializable;
import java.util.Calendar;
i... | true |
ef6cb8965ea777ed4e1741b8d9c90f3a4ab8ef9b | Java | Jonathamsp/ListaPM | /Lista1PM/src/DistanciaLeveTest.java | UTF-8 | 263 | 2.390625 | 2 | [] | no_license | import static org.junit.Assert.*;
import org.junit.Test;
public class DistanciaLeveTest {
@Test
public void testDistanciaLeve() {
int esperado = 3;
int obtido = DistanciaLeve.calculaDistancia("kitten", "sitting");
assertEquals(esperado, obtido);
}
}
| true |
24a894a4826ef4eaef09db4a43341165347bec6c | Java | theguyisnoone/2019summer_java | /CharMixString/src/fool.java | UTF-8 | 633 | 3.015625 | 3 | [] | no_license |
public class fool {
/*
* for this LeNgEnDaRy*/
protected static void frequency(char a[]) {
for (int i = 0; i < a.length; i++) {
if (i % 2 == 0) {
a[i] = Character.toUpperCase(a[i]);
}
}
show(a);
}
/*
* for this lengendarY*/
protected static void lastChange(char a[]) {
a[a.length-1]=Chara... | true |
fc9423dee372461844c9a80f83ba0a01a41f2e57 | Java | richard-yao/tdd | /src/main/java/com/richard/tdd/count_rainwater/example/ExampleCode.java | UTF-8 | 1,805 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | package com.richard.tdd.count_rainwater.example;
import java.util.ArrayDeque;
import java.util.Deque;
/**
* @author RichardYao richardyao@tvunetworks.com
* @date 2018年6月28日 下午5:06:30
*/
public class ExampleCode {
public int trap(int[] height) {
int ans = 0;
int size = height.length;
for (int i = 1; i < siz... | true |
02d30d93b84e47fa2d69314df702558463f78a2e | Java | 790688184/hzx | /thread_demo/src/main/java/com/study/threaddemo/controller/CreateThreadThree.java | UTF-8 | 451 | 2.265625 | 2 | [] | no_license | package com.study.threaddemo.controller;
import java.util.concurrent.Callable;
/*
* @Author:hzx
* @Description:
* @Date: 2018/12/26 15:33
*
*/
public class CreateThreadThree implements Callable{
public static void main(String[] args) {
}
@Override
public Object call() throws Exc... | true |
4f57f8e4a578ed50c9120abc8e4eba29ec47c9cf | Java | jrydel/jdbc-utils | /src/main/java/cz/jr/jdbcutils/ResultSetHandlerMap.java | UTF-8 | 912 | 2.9375 | 3 | [] | no_license | package cz.jr.jdbcutils;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author Jiří Rýdel
* @created 2019/06/13
*/
public class ResultSetHandlerMap implements ResultSetHandler<Map<String, Object>> {
/**
... | true |
eee3da12a0bf0218bd7e630e34eaa2a3f1002165 | Java | DigitalEmbed/MachineShop | /src/main/java/com/aoyia/machineshop/service/ProductService.java | UTF-8 | 6,909 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.aoyia.machineshop.service;
import com.aoyia.machineshop.domain.Product;
import com.aoyia.machineshop.exception.BadRequestException;
import com.aoyia.machineshop.repository.ManufacturerRepository;
import com.aoyia.machineshop.repository.ProductRepository;
import com.aoyia.machineshop.repository.StatusReposi... | true |
0802fda9a4f41797fbde820f71e595b191e1a3cf | Java | jiangliangzhong/dynamicEntityGen | /src/main/java/classgen/core/ClassGenerateCore.java | UTF-8 | 6,803 | 2.328125 | 2 | [
"MIT"
] | permissive | package classgen.core;
import classgen.association.entity.BuildTaskProperity;
import classgen.association.entity.ClassPropertity;
import classgen.association.entity.FieldProperty;
import classgen.superinfo.EntitySuperInfo;
import classgen.superinfo.InterfaceInfo;
import classgen.superinfo.MethodInfo;
import javassi... | true |
21d86cbe6859b986cf4a8bc803a1d1cda603c068 | Java | Duke0323/MyJDMall | /app/src/main/java/io/github/duke0323/myjdmall/bean/AlipayBean.java | UTF-8 | 1,407 | 2.390625 | 2 | [] | no_license | package io.github.duke0323.myjdmall.bean;
/**
* Created by ${Duke} on 2016/7/20.
*/
public class AlipayBean {
/*
* "oinfo": "JD+订单号",
"tn": "订单令牌",
"pname": "京东商品",
"payTime": 购买时间,
"totalPrice": 总金额
* */
String oinfo;
String tn;
String pname;
String payTime;
d... | true |
02b6ebafba5bf3fca6ee1ebd4d2db12d8daf3ea0 | Java | wagnerFaria/sec-backend | /src/main/java/backend/sec/fco/model/services/TipoItemService.java | UTF-8 | 568 | 1.992188 | 2 | [] | no_license | package backend.sec.fco.model.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import backend.sec.fco.model.entidades.TipoItem;
import backend.sec.fco.model.repositories.TipoItemRepository;
@Service
public class TipoItemSe... | true |
2ac3c3afebb5c6bc088330b8fed8e3a1f077e097 | Java | MykytaPonikarov/climate-control-system | /ClimateControlSystem/src/main/java/diplom/ponikarov/controller/DataOutOfRangeController.java | UTF-8 | 1,138 | 2.359375 | 2 | [] | no_license | package diplom.ponikarov.controller;
import diplom.ponikarov.event.DataOutOfRangeEvent;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import org.springframework.stereotype.Component;
@Co... | true |
27dc8228ffbd842b73c4fcb328b7f7dd1a751ad0 | Java | dfm555/arrayList | /src/Main.java | UTF-8 | 274 | 2.25 | 2 | [] | no_license | import Controllers.StudentsController;
import Views.Window;
public class Main {
static StudentsController controller = new StudentsController();
public static void main(String[] args) {
Window window = new Window();
window.setVisible(true);
}
}
| true |
61b11113cba10c9cfaa16e7ddefd71a8fd5bf610 | Java | juancte1986/tp2 | /src/ar/edu/uces/progweb2/agenda/controller/CalendarController.java | UTF-8 | 865 | 2.171875 | 2 | [] | no_license | package ar.edu.uces.progweb2.agenda.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
0b5b9c7f6576bc92c28d8f093337c7e5ac5f1585 | Java | abchip/mimo | /org.abchip.mimo.tester/src/org/abchip/mimo/tester/TestSuiteRunner.java | UTF-8 | 926 | 1.578125 | 2 | [] | no_license | /**
* Copyright (c) 2017, 2021 ABChip and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.abchip.... | true |
068e50f91a91df81812fe76cc079a2cbc940109b | Java | orangeyellow/test | /test/src/test11/DateUtil.java | UTF-8 | 673 | 2.734375 | 3 | [] | no_license | package test11;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author Administrator
*
*/
public class DateUtil {
private DateUtil() {
};
/**
*
* @param d
* @param formartString
* @return
*/
public static String dateToString... | true |
923261e5535df042b452e8679821a901176bb687 | Java | reverseengineeringer/com.yelp.android | /src/com/yelp/android/ui/activities/bs.java | UTF-8 | 845 | 1.75 | 2 | [] | no_license | package com.yelp.android.ui.activities;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.widget.EditText;
class bs
implements DialogInterface.OnClickListener
{
bs(ActivityCreateAccount paramActivityCreateAccount) {}
public void onClick(DialogInter... | true |
e179b8b5da3096bb905e9b3431c09fee1ad0ec90 | Java | MrSaber/EIMS | /src/main/java/com/mrsaber/mapper/UserMapper.java | UTF-8 | 901 | 1.976563 | 2 | [] | no_license | package com.mrsaber.mapper;
import com.mrsaber.model.User;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface UserMapper {
@Insert("INSERT INTO `gongxiao`.`ms_user` (`user_name`, `user_password`, `user_role`, `user_other`) VALUES (#{user_name}, #{user_password}, #{user_role},... | true |
2a4b4b75749263f43e842bdcc6c4c59e7b92c41f | Java | JoyPGit/Spring-data-jpa | /src/test/java/com/dailycodebuffer/spring/data/jpa/tutorial/repository/CourseMaterialRepositoryTest.java | UTF-8 | 1,138 | 2.359375 | 2 | [] | no_license | package com.dailycodebuffer.spring.data.jpa.tutorial.repository;
import com.dailycodebuffer.spring.data.jpa.tutorial.entity.Course;
import com.dailycodebuffer.spring.data.jpa.tutorial.entity.CourseMaterial;
import java.util.List;
import lombok.ToString;
import org.junit.jupiter.api.Test;
import org.springframework.bea... | true |
c0e8c1929bdd25edafdd354cc28be6beb674d164 | Java | Li-HuaJie/smb | /src/main/java/com/smb/controller/MainController.java | UTF-8 | 3,762 | 2.328125 | 2 | [] | no_license | package com.smb.controller;
import com.smb.entity.SysMenu;
import com.smb.entity.SysMenuBtn;
import com.smb.entity.SysUser;
import com.smb.entity.TreeNode;
import com.smb.service.SysMenuBtnService;
import com.smb.service.SysMenuService;
import com.smb.service.SysUserService;
import com.smb.utils.MethodUtil;
import com... | true |
d2650de269dbf353ee74c82a735ba80585620376 | Java | FrogDroid/magicLink | /src/main/java/edu/jeremiah/sommerfeld/domain/enumeration/Color.java | UTF-8 | 140 | 1.914063 | 2 | [] | no_license | package edu.jeremiah.sommerfeld.domain.enumeration;
/**
* The Color enumeration.
*/
public enum Color {
WHITE,BLUE,BLACK,RED,GREEN
}
| true |
ac812a10180d1b734fbe3ee9aab32865d341f7cf | Java | niermoli/News | /src/main/java/com/example/News/Model/Writer.java | UTF-8 | 696 | 2.265625 | 2 | [] | no_license | package com.example.News.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
... | true |
b0c1ca668a3f5dc124a45519a4a0bdcb962e17fa | Java | imzkj/ZKJ-LSX | /src/com/tool/DataBaseOperation.java | UTF-8 | 2,017 | 2.625 | 3 | [] | no_license | package com.tool;
import com.common.File;
import java.sql.*;
/**
* Created by ZKJ on 2017/3/16 0016.
*/
public class DataBaseOperation {
public Connection conn = null;
Statement stmt = null;
public DataBaseOperation() throws Exception {
String url = "jdbc:mysql://192.168.58.29:3306/hadoop?"
... | true |
640740144d07a0cbe5861d2671bda8371e7f2e96 | Java | rsmaan4u8/query | /src/main/java/com/api/model/specification/APISearchSpecificationFactory.java | UTF-8 | 3,321 | 2.734375 | 3 | [] | no_license | package com.api.model.specification;
import com.api.model.NoSuchAPIProviderException;
import com.api.model.SearchProvider;
import com.google.common.base.Strings;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
@Co... | true |
2c99b42e983dcbb5145237a6a7102b2987ba0c93 | Java | chpladmin/chpl-api | /chpl/chpl-service/src/main/java/gov/healthit/chpl/validation/listing/reviewer/TestStandardRemovalReviewer.java | UTF-8 | 2,663 | 2.203125 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | package gov.healthit.chpl.validation.listing.reviewer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import gov.healthit.chpl.domain.CertificationResult;
import gov.healthit.chpl.domain.CertificationResultTestStandard;
import gov.healthit.chpl.domain.C... | true |
f38b08759b01bff890a2614c25dfad2e2f016ad5 | Java | PlayersCommittee/gemp-swccg-public | /gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set12/light/Card12_008.java | UTF-8 | 2,760 | 2.25 | 2 | [
"MIT"
] | permissive | package com.gempukku.swccgo.cards.set12.light;
import com.gempukku.swccgo.cards.AbstractRepublic;
import com.gempukku.swccgo.cards.conditions.InSenateMajorityCondition;
import com.gempukku.swccgo.common.Agenda;
import com.gempukku.swccgo.common.ExpansionSet;
import com.gempukku.swccgo.common.Icon;
import com.gempukku.... | true |
cfb3492e3c391c11a6a36e40670a134af74cc0eb | Java | Iiridayn/sample | /code/235/StudentDatabase.java | UTF-8 | 6,123 | 3.578125 | 4 | [] | no_license | import java.io.*;
import java.lang.IllegalArgumentException;
public class StudentDatabase
{
//The StudentDatabase class handles the Student objects
//in a predefined, abstracted manner. It contains methods
//for sorting, finding, and inserting Student objects into
//the database.
int max, head = 0, curr = ... | true |
307be2c138919ff0a6f72a883ac5f9f374bf9480 | Java | natashapavri/interview | /src/google/LargestRectangle.java | UTF-8 | 920 | 3.3125 | 3 | [] | no_license | package google;
public class LargestRectangle {
public static void main(String[] args) {
int[][] matrix = { { 1, 1, 1 }, { 0, 1, 1 }, { 1, 0, 0 } };
//int[][] matrix = { { 0, 1, 1, 0 }, { 0, 1, 1, 0 }, { 0, 0, 0, 1 } };
int[][] cache = new int[matrix.length][matrix[0].length];
int maxLength = Integer.MIN_VA... | true |
5c8f054d4d03050374cfc400eb2b59aa10e669c9 | Java | shxr/NJG | /src/dahua/fdc/contract/app/ContractChangeEntryControllerRemoteHome.java | UTF-8 | 263 | 1.648438 | 2 | [] | no_license | package com.kingdee.eas.fdc.contract.app;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface ContractChangeEntryControllerRemoteHome extends EJBHome
{
ContractChangeEntryControllerRemote create() throws CreateException, RemoteException;
} | true |
f5a210abad0a7f384af8b0fd38e1a97a31f2bf24 | Java | cckmit/jg2b | /proj-jg-h5Service/02Source/jg-h5-api/src/main/java/com/jg2b/h5/dto/SearchDto.java | UTF-8 | 829 | 2.078125 | 2 | [] | no_license | package com.jg2b.h5.dto;
public class SearchDto {
private int company_id;//公司id
private String company;//公司名称
private String title;//标题
private int ty;//首页动态表示0代表搜索方 1为供应商
private int mins;//计算后时间(分钟)
public int getMins() {
return mins;
}
public void setMins(int mins) {
this.mins = mins;
}
public int ... | true |
8358cf05bc47aabe60655492a7925857aa17fd6f | Java | davidy104/wso2am-pizzashack | /pizzashack-services/pizzashack-domain-repository-impl/src/main/java/org/pizzashack/data/support/InitialDataSetup.java | UTF-8 | 4,552 | 2.578125 | 3 | [] | no_license | package org.pizzashack.data.support;
import java.text.DecimalFormat;
import java.util.Random;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.pizzashack.data.Customer;
import org.pizzashack.data.support.EntityBuilder.EntityBuilderManager;
import org.springframework.tra... | true |
df3ef6a127fcb0fefcaf1101b78d1e48d986fa3d | Java | edersonjseder/gradle_project | /app/src/paid/java/com/udacity/gradle/builditbigger/paid/OnPostTaskListener.java | UTF-8 | 136 | 1.539063 | 2 | [
"MIT"
] | permissive | package com.udacity.gradle.builditbigger.paid;
public interface OnPostTaskListener {
public void onTaskCompleted(String result);
}
| true |
efe41c03c4a9da2fc0e2bbbf727730365909264c | Java | McLeodMoores/starling | /projects/starling-client/src/test/java/com/mcleodmoores/starling/client/fpml5_8/FxFixingTest.java | UTF-8 | 3,714 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2016 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.starling.client.fpml5_8;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotEquals;
import org.testng.annotations.Test;
import org.threeten.bp.LocalDate;
import or... | true |
bfbf982880713f43f48048637c8a06c83d0ffd7b | Java | willix71/wexpenses | /v1/wexpense-dao/src/main/java/w/wexpense/model/DBable.java | UTF-8 | 2,187 | 2.328125 | 2 | [] | no_license | package w.wexpense.model;
import java.io.Serializable;
import java.text.MessageFormat;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.persistenc... | true |
2ee02f3cba1d9b4a28140bcff2ff066af135b218 | Java | MaghiarCatalina/InternshipSpringMeetingsApi | /meetingsapi/src/main/java/edu/arobs/meetingsapi/feedback/FeedbackDTO.java | UTF-8 | 276 | 1.585938 | 2 | [] | no_license | package edu.arobs.meetingsapi.feedback;
import lombok.Data;
@Data
public class FeedbackDTO {
private String clarity;
private String originality;
private String complexity;
private String engagement;
private String cursive;
private Integer usersId;
}
| true |
4eb99cb4de28e7569fc9134447cd7e07e8017f86 | Java | Pianooohh/SmoothPVP | /src/fr/smoothpvp/smoothpvp/Commands/Report.java | UTF-8 | 2,654 | 2.40625 | 2 | [] | no_license | package fr.smoothpvp.smoothpvp.Commands;
import fr.smoothpvp.smoothpvp.Utils.Prefixs;
import fr.smoothpvp.smoothpvp.main.Main;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.enti... | true |
bfa97e318bc9584b16e2a08e36a30a9aaf56f759 | Java | ppboucourt/api-sample | /src/main/java/co/tmunited/bluebook/service/impl/ChartToFormServiceImpl.java | UTF-8 | 11,676 | 2.09375 | 2 | [] | no_license | package co.tmunited.bluebook.service.impl;
import co.tmunited.bluebook.domain.ChartToForm;
import co.tmunited.bluebook.domain.File;
import co.tmunited.bluebook.domain.Forms;
import co.tmunited.bluebook.domain.enumeration.FormStatus;
import co.tmunited.bluebook.domain.util.CollectedBody;
import co.tmunited.bluebook.dom... | true |
627f5c9dcf3ec291694b266d6b457199d4b1f845 | Java | Njohou/Projet-JAVAFX | /src/gp11/project/controllers/DeleteUpdate.java | UTF-8 | 5,577 | 2.328125 | 2 | [] | no_license | package gp11.project.controllers;
import gp11.project.connexion.DbconnectionEmpl;
import gp11.project.model.EmployeInfo;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxm... | true |
ab8ae1417de5ea49fe04628791177c1cce6df89a | Java | vidhya-m/Vidhya | /src/First/College.java | UTF-8 | 343 | 2.5 | 2 | [] | no_license | package First;
import java.lang.annotation.*;
/**
* Created by expert on 8/27/18.
*/
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.TYPE})
//To specify where to apply the below annotation
@Retention(RetentionPolicy.RUNTIME) //Retains annotation at Runtime
public @interface College {
String name();
... | true |
872e1f363e79ba205330b6bd2b32d18a752631ae | Java | zhuyy430/dimes_zj | /deviceManage/src/main/java/com/digitzones/mc/controller/MCMaintenancePlanRecordController.java | UTF-8 | 15,923 | 2 | 2 | [] | no_license | package com.digitzones.mc.controller;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.digitzones.service.IEmployeeSer... | true |
78ff7f46d75a81191884d48989c535ede23daced | Java | PuntusovAleksandr/androidClientW8Monitor | /app/src/main/java/com/w8/w8monitor/android/activity/interfaces/presentts/ProfilePresenter.java | UTF-8 | 1,510 | 1.570313 | 2 | [] | no_license | package com.w8.w8monitor.android.activity.interfaces.presentts;
import com.w8.w8monitor.android.d_base.RealmObj;
/**
* Created by AleksandrP on 21.09.2016.
*/
public interface ProfilePresenter {
void saveStateUser(int mSatate, RealmObj.StateListener mProfileView);
void getStateUser(RealmObj.StateListene... | true |
056429b60228b65cfcb653796646281c5d5b223d | Java | ybzqh/GSTestExample | /app/src/main/java/com/hs/administrator/test/widget/MagicTextView.java | UTF-8 | 966 | 1.570313 | 2 | [] | no_license | package com.hs.administrator.test.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BlurMaskFilter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint.Style;
import android.graphics.Paint;
imp... | true |
cfa86430773713916fa3b2d03231b481052d0503 | Java | elsand/vefa-srest | /server/src/main/java/no/sr/ringo/report/ReportRepository.java | UTF-8 | 189 | 1.789063 | 2 | [] | no_license | package no.sr.ringo.report;
/**
* Created by user: orby
* Date: 15.05.12
* Time: 11.49
*/
public interface ReportRepository {
ReportData getReport(Integer year, Integer month);
}
| true |
7286f8d4f0b391c9dcc315dd72213b3624987034 | Java | kmtankqa/AER.FMDP | /FMDP/src/au/com/FMDP/live/pageObjects/settings/BusinessSetupPO.java | UTF-8 | 8,153 | 2.203125 | 2 | [] | no_license | package au.com.shortcuts.live.pageObjects.settings;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLoc... | true |
8caf435dbce392f79c9bace90d84dae32a223e98 | Java | ivanshen/Who-Are-You-Really | /org/jfree/data/xy/XYBarDataset.java | UTF-8 | 3,852 | 2.59375 | 3 | [
"MIT"
] | permissive | package org.jfree.data.xy;
import org.jfree.chart.axis.DateAxis;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetChangeListener;
import org.jfree.util.PublicCloneable;
public class XYBarDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, DatasetChangeListener... | true |
418fd627ff5aaff50dd2229e17083e2558f80c87 | Java | EdbrixDeveloper/Brahamaputra | /app/src/main/java/com/brahamaputra/mahindra/brahamaputra/Data/UserDetails.java | UTF-8 | 2,379 | 1.90625 | 2 | [] | no_license |
package com.brahamaputra.mahindra.brahamaputra.Data;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class UserDetails {
@SerializedName("Id")
@Expose
private String id;
@SerializedName("FirstName")
@Expose
private String firstName;
... | true |
a93374e62c4761d9ad9ad9e345970459baa4d682 | Java | 00liberty00/ml_start | /src/ml/query/created/CreateUserDB.java | UTF-8 | 7,702 | 2.796875 | 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 ml.query.created;
import com.mysql.jdbc.Connection;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileRea... | true |
4b9b980e7c7be32c74637c866c3a774b08d9f8de | Java | Team3021/Steamworks | /src/org/usfirst/frc/team3021/robot/commands/test/IndexerTest.java | UTF-8 | 783 | 2.1875 | 2 | [] | no_license | package org.usfirst.frc.team3021.robot.commands.test;
import org.usfirst.frc.team3021.robot.Stanley;
import org.usfirst.frc.team3021.robot.commands.device.StartIndexer;
import org.usfirst.frc.team3021.robot.commands.device.StopIndexer;
import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.co... | true |
ccf3c994de158769b6711413a35cce1c28dda93d | Java | arleserp/dataStructures | /src/linearstructures/list/TestCircular.java | UTF-8 | 1,053 | 3.390625 | 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 linearstructures.list;
/**
*
* @author Arles
*/
public class TestCircular {
public static void main(Strin... | true |
9a85854caebdde047294b8e224703d283e5d8840 | Java | qijy/springboot-ej | /src/main/java/cn/com/qijy/springbootej/config/JobEventConfig.java | UTF-8 | 623 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | package cn.com.qijy.springbootej.config;
import com.dangdang.ddframe.job.event.JobEventConfiguration;
import com.dangdang.ddframe.job.event.rdb.JobEventRdbConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;
i... | true |
a7bc0d737c1dca383e79a307ab1ad78021162fd3 | Java | massarellimj/GeneralUtils | /src/util/IconUtils.java | UTF-8 | 1,466 | 2.75 | 3 | [
"MIT"
] | permissive | /**
*
*/
package util;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import io.FileUtils;
/**
*
*
* @author Michael Massarelli
*/
public class Ic... | true |
a514b125690868a168e95565be73361d09a2a005 | Java | mridang/oval-extras | /src/test/java/com/nosto/ovalextras/ValidationMessagesTest.java | UTF-8 | 2,242 | 1.976563 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2021 Nosto Solutions Ltd All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Nosto Solutions Ltd ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the agreemen... | true |
9ca5a0d343a4b714ba1c4926d7287917dff5c6e5 | Java | benjamin-owen/TBA-APIv3-Client | /src/main/java/com/bensuniverse/TBAAPIv3Client/Frames/Panels/OutputLogPanel.java | UTF-8 | 1,317 | 2.921875 | 3 | [] | no_license | /*
*
* Ben Owen
*
* This panel contains the output log
*
* Functions:
* clear() - clear output log
*
* appendText(String text) - adds text to output log
* - String text: text to append
*
*/
package com.bensuniverse.TBAAPIv3Client.Frames.Panels;
import javax.swing.*;
import javax.swing.border.TitledBor... | true |
3e934f05eb5a3b3da7353f767984030c09b0c368 | Java | P79N6A/icse_20_user_study | /methods/Method_1014462.java | UTF-8 | 146 | 2.078125 | 2 | [] | no_license | /**
* Called whenever the OSGi framework stops our bundle
*/
@Override public void stop(BundleContext bc) throws Exception {
context=null;
}
| true |
d86775cac3ccb66bcb3b9285b9583016fb301169 | Java | AhmadRaza09/demoApplication | /src/main/java/com/login/service/AccountServiceImp.java | UTF-8 | 705 | 2.328125 | 2 | [] | no_license | package com.login.service;
import com.login.DAO.AccountDAO;
import com.login.model.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("accountServiceImp")
public class AccountServiceImp implements com.login.service.AccountService {
@Auto... | true |
1e9e5589c5fa0b285c1c57e76612a82c3d1c3406 | Java | zhongxingyu/Seer | /Diff-Raw-Data/32/32_2634b79a7f3a3d047da107f78432ad5d3186fd2e/ScriptFunction/32_2634b79a7f3a3d047da107f78432ad5d3186fd2e_ScriptFunction_t.java | UTF-8 | 7,169 | 2.40625 | 2 | [] | no_license | package com.dafrito.rfe.script.values;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import com.dafrito.rfe.gui.debug.CommonString;
import com.dafrito.rfe.gui.debug.Debugger;
import com.dafrito.rfe.inspect.Nodeable;
import com.dafrito.rfe.scrip... | true |
256c12fea2a83e4357442df91e8fd333cf5c8d27 | Java | snxamdf/gdmedicine | /web-gen/src/test/java/com/yhy/gen/repository/ProjectsRepositoryTests.java | UTF-8 | 813 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | /*
*
*
*
*/
package com.yhy.gen.repository;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.yhy.core.constants.PROFILES... | true |
6ce12312810ea349c99727547c99e58aebf5fcef | Java | chrislucas/sin5014-fundamentos-de-processamento-grafico | /DPI/src/DPI.java | UTF-8 | 1,967 | 3.546875 | 4 | [] | no_license | /**
* Created by C.Lucas on 19/03/2017.
* http://pixelyzer.com/inches_to_pixels.html
*/
public class DPI {
public static void exec() {
double inch = 2.54;
double [][] variables = {
{3.0, 5.0, 1, 120.0}
,{3.0, 5.0, 1, 300.0}
,{3.0, 5.0, 2, 300.0}
... | true |
663c2bfe345f1fffe96da93ee10d34414cbaa7ec | Java | fergusonjason/mapmaker-archived | /mapmaker/src/main/java/org/jason/mapmaker/shared/model/ShapefileMetadata_CustomFieldSerializer.java | UTF-8 | 4,049 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2011 Jason Ferguson.
*
* 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... | true |
d61290eee5f1ba3b5d033381cce3227dfa918d7e | Java | harshmistry/MusicBlogging | /Project_part2_ham383/Java code/Music_System/src/com/MusicSystem/Connection/FetchOtherUserReccoDAO.java | UTF-8 | 2,418 | 2.21875 | 2 | [] | no_license | package com.MusicSystem.Connection;
import java.io.IOException;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import oracle.jdbc.internal.OracleCallableStatement;
import oracle.jdbc.... | true |
4d3c45d639823e98771f5fdef9476d21ae11d6d6 | Java | Bharanij27/ShoppingApp | /src/main/java/com/service/UserService.java | UTF-8 | 257 | 1.945313 | 2 | [] | no_license | package com.service;
import com.model.UserDTO;
public interface UserService {
public void createUser(UserDTO user);
public UserDTO findUserByUserName(String name);
void updateUser(UserDTO user);
public boolean checkUserName(String uname);
}
| true |
aa16114ab9f3dd2de179b9436256810861b04e6c | Java | evefred/cubeia-kalaha | /firebase/game/src/main/java/net/kalaha/game/GameImpl.java | UTF-8 | 943 | 2.015625 | 2 | [] | no_license | package net.kalaha.game;
import java.util.List;
import net.kalaha.data.manager.ManagerModule;
import net.kalaha.data.util.JpaInitializer;
import com.cubeia.firebase.guice.game.Configuration;
import com.cubeia.firebase.guice.game.GuiceGame;
import com.google.inject.Inject;
import com.google.inject.Injector;
import co... | true |
b2599d16cbbbae809cf6fc1e3d3b635ec56e6384 | Java | xjie1070160377/AppCenter | /app.core/src/main/java/cn/mooc/app/core/web/shiro/auth/filter/RealmRegistry.java | UTF-8 | 549 | 1.914063 | 2 | [] | no_license | package cn.mooc.app.core.web.shiro.auth.filter;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class RealmRegistry {
@Autowired
private Defa... | true |
d0659d907500ddb92a10bc44b82624e5c2dd5420 | Java | pfadfinden/mv2ldap | /src/main/java/de/pfadfinden/mv/tools/IcaUtils.java | UTF-8 | 826 | 2.3125 | 2 | [] | no_license | package de.pfadfinden.mv.tools;
import de.pfadfinden.mv.model.IcaIdentitaet;
import org.apache.commons.validator.routines.EmailValidator;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
public class IcaUtils {
public static boolean isValidIdentitaet(IcaIdentitaet icaIdentitae... | true |
0471f049487f1fc4eb1f44184811c2959a0f535b | Java | hungqtc/Vina_spring | /Vina- Java/SPRING/book-management2/src/main/java/com/hung/dto/UserDTO.java | UTF-8 | 425 | 1.921875 | 2 | [] | no_license | package com.hung.dto;
import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserDTO extends BaseDTO{
private Strin... | true |
53ad1b63787611eafbe17ffe667e20d94df761ca | Java | lordjoe/hydra-proteomics | /ConcurrentTools/src/main/java/com/lordjoe/algorithms/Automation.java | UTF-8 | 2,032 | 3.21875 | 3 | [] | no_license | package com.lordjoe.algorithms;
import com.google.common.io.*;
import java.io.*;
import java.lang.reflect.*;
import java.util.*;
/**
* com.lordjoe.algorithms.Automation
* Runs a given class' main multiple times with different argument lines
* User: Steve
* Date: 2/6/14
*/
public class Automation {... | true |
83d11fa932f40e90987bd0591e0bb3d574521e41 | Java | priysha/library_dbms | /DBMS_PROJECT-GROUP21/LibraryApplicationProject/src/Library/Application/Project/UserAuthentication/SignupPage.java | UTF-8 | 11,453 | 2.21875 | 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 Library.Application.Project.UserAuthentication;
import Database.Connection.Helper.Interfaces.*;
import Database.Connection.Hel... | true |
22a2c166dd4d8fc50d6bb858037b2c95ac3e319d | Java | Mash96/String-Matching-in-C | /RabinCarp.java | UTF-8 | 2,047 | 3.171875 | 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.
*/
/**
*
* @author madhavadabare
*/
public class RabinCarp {
static String RabinCarp(String text, String pattern, int d, int q) {... | true |
74bd030bebdbe61b153418150c1032ee791acceb | Java | MGA-debug/UsersServlet | /src/ru/appline/logic/Model.java | UTF-8 | 707 | 2.78125 | 3 | [] | no_license | package ru.appline.logic;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
public class Model implements Serializable {
private static final Model instance = new Model();
private final Map<Integer, User> model;
public static Model getInstance() {
return instance;
... | true |
df953960540def20ce63c45641fa468d2cc674a9 | Java | bartlomiejpietrzyk/JAVA_Warsztat_02 | /src/pl/coderslab/menu/MenuUser.java | UTF-8 | 7,432 | 2.625 | 3 | [] | no_license | package pl.coderslab.menu;
import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;
import pl.coderslab.dao.UserDao;
import pl.coderslab.dao.UserGroupDao;
import pl.coderslab.plain.User;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.Scanner;
public class... | true |
d133b07cb34c9d0b8e9fa28f13b71849276a13d1 | Java | jankrause/idocit | /de.akra.idocit.ui/src/main/java/de/akra/idocit/ui/composites/EditThematicGridComposite.java | UTF-8 | 20,027 | 1.648438 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*******************************************************************************
* Copyright 2011, 2012 AKRA GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... | true |
bfd822e3d3b2ca0659d4ce184e5f8548b5e00c86 | Java | xwqiang/aop | /src/main/java/com/coffee/core/db/ConsoleAdapter.java | UTF-8 | 730 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.coffee.core.db;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import com.coffee.core.entity.Track;
public class ConsoleAdapter implements DBInterface {
private static ConsoleAdapter adapter = null;
private static final Lock lock = new ReentrantLock();
... | true |
9f68286cb5f44c25714fd6435775d7f5557efa85 | Java | vives/AssignmentsCSC | /Task 02 Copy/pieChart/PieChartController.java | UTF-8 | 883 | 2.390625 | 2 | [] | no_license | package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.chart.PieChart;
import java.net.URL;
import java.util.ResourceBundle;
public class PieChartController implements Initializable {
@FXM... | true |
42674b2c7ff2488b62d072a123feefa8ffa31fed | Java | edigonzales-archiv/LandRegisterParcelDescription | /src/main/java/ch/so/agi/landregisterparceldescription/webservice/dao/BuildingAddressDAO.java | UTF-8 | 279 | 1.882813 | 2 | [
"MIT"
] | permissive | package ch.so.agi.landregisterparceldescription.webservice.dao;
import java.util.List;
import ch.so.agi.landregisterparceldescription.webservice.models.BuildingAddress;
public interface BuildingAddressDAO {
List<BuildingAddress> getBuildingAddressByEgrid(String egrid);
}
| true |
8a57e8554c35d523a319989b730bef5b5a2d12c1 | Java | diqiuonline/Demo | /itcast/bos/bos_management/src/main/java/cn/itcast/bos/quartz/TransitJob.java | UTF-8 | 631 | 1.882813 | 2 | [
"MIT"
] | permissive | package cn.itcast.bos.quartz;
import cn.itcast.bos.service.transit.TransitInfoService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
/**
* User: 李锦卓
* Time: 2018/9/12 20:49
*/
public class Transi... | true |
7e7d0b9862ca6500547b188cd1433087aee7da98 | Java | LancelotGT/algs4 | /percolaton/Percolation.java | UTF-8 | 3,517 | 2.921875 | 3 | [] | no_license | public class Percolation {
private int sz;
private boolean[] op;
private WeightedQuickUnionUF uf;
private WeightedQuickUnionUF ufSec;
public Percolation(int N) {
// create N-by-N grid, with all sites blocked
if (N <= 0) {
throw new IllegalArgumentException("Illegal a... | true |
1aba1050afaa835e9e48367e6dddbf1379c72d58 | Java | v13m096/Trabajo-de-fin-de-grado | /TFG/Soluciones ismael/Cenicienta.java | UTF-8 | 1,508 | 3.234375 | 3 | [] | no_license | package Expresiones;
import java.util.Scanner;
public class Cenicienta {
private int horas_a_segundosTarea(String t) {
String[] data = t.split(":");
int total=0;
int horas = Integer.parseInt(data[0])*3600;
int minutos = Integer.parseInt(data[1])*60;
int segundos = Integer.parseInt(data[2]);... | true |
12b305a22ab3bc8b6f23311a4a19acc968a315cc | Java | pedrofern/file2share | /src/main/java/presentation/F2ShareMain.java | UTF-8 | 826 | 2.1875 | 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 presentation;
import presentation.swing.F2ShareMenu;
import presentation.swing.LanguageChooserDialog;
import javax.... | true |
5b5f99a1c9a58aecf823ac1bf5e10c7c278a6939 | Java | elmehdilaagad/Mindstorm | /leJosProject/src/RobotForward.java | UTF-8 | 547 | 2.625 | 3 | [] | no_license | import lejos.robotics.subsumption.Behavior;
public class RobotForward implements Behavior {
public static int AREA_WIDTH = 200;
public static int AREA_LENGTH = 300;
private boolean stop = false;
private RawDawRobot robot;
public RobotForward(RawDawRobot _robot){
robot = _robot;
}
public void action(... | true |
18fd4a57c52224dd6634fe6953b6ab8b35e9f432 | Java | efraimgentil/pomodorium | /app/src/main/java/me/efraimgentil/pomodorium/service/ServiceNotifier.java | UTF-8 | 323 | 1.882813 | 2 | [] | no_license | package me.efraimgentil.pomodorium.service;
import java.util.*;
import me.efraimgentil.pomodorium.model.Pomodoro;
/**
* Created by efraimgentil on 04/06/16.
*/
public interface ServiceNotifier {
void add(PomodoroObserver observer);
void notifyEvent(Pomodoro pomodoro, String newTime, PomodoroEvent event);
... | true |
b50e909664070cf66f74a659ee74a354e7953318 | Java | chenxubiao/photo | /src/main/java/cn/chenxubiao/common/utils/TimeUtil.java | UTF-8 | 1,558 | 2.875 | 3 | [] | no_license | package cn.chenxubiao.common.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by chenxb on 17-4-14.
*/
public class TimeUtil {
public static String format(Date date) {
return format(date, "yyyy-MM-dd HH:mm:ss");
}
public static Stri... | true |
041f7169453e758617ddbb4da7bfd463d694ea51 | Java | enso-org/enso | /engine/runtime/src/bench/java/org/enso/interpreter/bench/benchmarks/semantic/RecursionBenchmarks.java | UTF-8 | 1,586 | 2.296875 | 2 | [
"AGPL-3.0-only",
"Apache-2.0",
"AGPL-3.0-or-later"
] | permissive | package org.enso.interpreter.bench.benchmarks.semantic;
import org.enso.interpreter.bench.fixtures.semantic.RecursionFixtures;
import org.enso.interpreter.test.DefaultInterpreterRunner;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.AverageTime)
@Fork(1)
@Warmup(itera... | true |
79d08e222674282b77edf69ed73063d7deeede17 | Java | Prathamesh-Verlekar/PV_Repository | /AED/Assignment_3/src/Interface/FilteredJPanel.java | UTF-8 | 5,100 | 2.375 | 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 Interface;
import Business.CarDetails;
import Business.CarDirectory;
import java.awt.CardLayout;
import java.util.ArrayList;
i... | true |
a3ba44ebcaf0f7c71a6f62479047740bd675b42a | Java | olegdavidovichdev/gifsearcher | /app/src/main/java/com/olegdavidovichdev/gifsearcher/model/User.java | UTF-8 | 1,055 | 2.09375 | 2 | [] | no_license | package com.olegdavidovichdev.gifsearcher.model;
import com.google.gson.annotations.SerializedName;
public class User {
@SerializedName("avatar_url")
private String avatarUrl;
@SerializedName("banner_url")
private String bannerUrl;
@SerializedName("profile_url")
private String profileUrl;
... | true |
7cd7b7dd6a93a57777be521853db68d3503c5c1e | Java | francis-piche/Rain | /Rain/src/Rain/Frame.java | UTF-8 | 1,109 | 2.9375 | 3 | [] | no_license | package Rain;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.Timer;
public class Frame extends JFrame implements ActionListener {
private int DEFAULT_HEIGHT = 750;
private int DEFAULT_WIDTH = 75... | true |
8edc88ce3867f332211bbf51d0d4105872b91424 | Java | Mattaus-Isenberg/nebulus-android | /app/src/main/java/com/coopra/nebulus/view_models/FeedViewModel.java | UTF-8 | 3,059 | 2.140625 | 2 | [] | no_license | package com.coopra.nebulus.view_models;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.paging.PagedList;
import retrofit2.Call;
import retrofit2.Callback;
imp... | true |
4d861abd85fb0057e63b4086719f234a7655d590 | Java | ianuoui/elasticsearch | /x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/ExplainDataFrameAnalyticsRestIT.java | UTF-8 | 8,064 | 1.914063 | 2 | [
"Apache-2.0",
"Elastic-2.0",
"SSPL-1.0",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-elastic-license-2018"
] | permissive | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.ml.integration;
import org.apache.... | true |
42796fd899272e45b9302989bb816485a8ca6fbb | Java | HardBlaster/CodeSignal | /Arcade/The Core/Rounders.java | UTF-8 | 190 | 3.140625 | 3 | [] | no_license | int rounders(int n) {
int num = 10;
while (n > num) {
if ((n % num)/(num / 10) < 5)
n = (n/num) * num;
else
n = (n/num+1) * num ;
num *= 10;
}
return n;
}
| true |
7ce560782c02219df32e563598d0a4962bc60b42 | Java | LiBai531/system | /Physics/Physics/src/com/physics/entity/ExperimentCount.java | UTF-8 | 970 | 2.203125 | 2 | [] | no_license | package com.physics.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
i... | true |
c615da7c3d9ba0be891b43e1cbc909beb9990bec | Java | DiegoSilvaEspindola/Repetindo-tarefas-por-tempo-fixo | /src/tarefarepetida/TarefaRepetida.java | UTF-8 | 497 | 2.5625 | 3 | [] | no_license | package tarefarepetida;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TarefaRepetida {
public static void main (String args []){
Timer timer = new Timer();
final long SEGUNDOS = (1000 * 5);
TimerTask tarefa = new TimerTask() {
@Overr... | true |