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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7ffe717df2ee257073fd61a86accc46552765957 | Java | Sabastain-Wakoyi/stock-dashboard-backend | /iexcloud-api-wrapper/src/main/java/org/hung/iexcloud/pojo/DelayedQuote.java | UTF-8 | 302 | 1.59375 | 2 | [] | no_license | package org.hung.iexcloud.pojo;
import lombok.Data;
@Data
public class DelayedQuote {
private String symbol;
private Float delayedPrice;
private Float high;
private Float low;
private Long delayedSize;
private Long delayedPriceTime;
private Long totalVolume;
private Long processedTime;
}
| true |
a1bbb06ceaa72768965e56e11648b982c615779a | Java | Mellifaro/messenger | /services/messenger/messenger-api/src/main/java/com/softgroup/messenger/api/message/updateConversationSettings/UpdateConversationSettingsResponse.java | UTF-8 | 693 | 1.851563 | 2 | [] | no_license | package com.softgroup.messenger.api.message.updateConversationSettings;
import com.softgroup.common.protocol.ResponseData;
import com.softgroup.messenger.api.dto.ConversationSettings;
/**
* Created by Виктор on 30.03.2017.
*/
public class UpdateConversationSettingsResponse implements ResponseData {
private stat... | true |
e6620e91610295ea05f6821e81247a429eaf68d4 | Java | perrythomson/UdemyJava | /src/main/advancedTopics/doWhileAndWhileLoops/Main.java | UTF-8 | 1,038 | 3.671875 | 4 | [] | no_license | package main.advancedTopics.doWhileAndWhileLoops;
/**
* Created by pthomson on 5/25/17.
*/
public class Main {
public static void main(String[] args) {
int count = 0;
while (count != 6) {
System.out.println("count value is " + count);
count++;
}
//same as... | true |
51bef5af69dfe74adcce16926d0725320a529fa5 | Java | iberlot/Logistica | /Logistica/src/interfaces/IController.java | UTF-8 | 866 | 2.84375 | 3 | [] | no_license | /*
* Querido programador:
* Cuando escribi este codigo, solo Dios y yo sabiamos como funcionaba.
* Ahora, Solo Dios lo sabe!!!
* Asi que, si esta tratando de 'optimizar' esta rutina y fracasa (seguramente),
* por favor, incremente el siguiente contador como una advertencia para el
* siguiente colega:
* to... | true |
bca051b234c69abfe40c3b6c1a5a5bb076d8e8b4 | Java | MarinaNevar/backendIntransition | /src/main/java/by/Coursepro/course/transformer/step/StepAddTransformer.java | UTF-8 | 748 | 2.328125 | 2 | [] | no_license | package by.Coursepro.course.transformer.step;
import by.Coursepro.course.dto.step.StepAdd;
import by.Coursepro.course.entity.Step;
import by.Coursepro.course.repository.InstructionRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
@Component
@RequiredArgsConstructor
pu... | true |
ec0852e99fd782673a07f3323134a71d30ffa6f3 | Java | JasielEspinosa/WebBasedBiobank-UST-BCI | /src/controller/LoadPatientsServlet.java | UTF-8 | 2,602 | 2.234375 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
... | true |
c4bf0f2d5d2effab9001019129667e8a9f4d23c5 | Java | ryedigaryan/Chaincrypt | /cryptoalgo/src/main/java/rub/labs/cryptoalgo/Cipher.java | UTF-8 | 1,011 | 3 | 3 | [] | no_license | package rub.labs.cryptoalgo;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public interface Cipher {
/**
* Encrypts data read from {@code openDataIS} and writes the encrypted data into {@code encryptedDataOS}.
* This method should not close the opened streams, str... | true |
d742300828eb14013ffe6e6743e83bb320863992 | Java | OnePonyGames/frozen | /src/main/java/com/oneponygames/frozen/base/eventsystem/subscriber/CameraMouseScrollController.java | UTF-8 | 1,659 | 2.8125 | 3 | [
"MIT"
] | permissive | package com.oneponygames.frozen.base.eventsystem.subscriber;
import com.oneponygames.frozen.base.eventsystem.EventSubscriber;
import com.oneponygames.frozen.base.eventsystem.EventService;
import com.oneponygames.frozen.base.eventsystem.events.input.MouseMovedEvent;
import com.oneponygames.frozen.base.eventsystem.event... | true |
9db6c7619464b194d3fd39158d6dbc20bf832fbe | Java | mustafashakeel/learning | /java/java allinone/Source Code for Java All in One 4th Edition/Book 9/Listing 4-1/BallRoom.java | UTF-8 | 1,087 | 3.28125 | 3 | [] | no_license | import java.applet.*;
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
public class BallRoom extends JApplet
{
public static final int WIDTH = 350;
public static final int HEIGHT = 300;
private PaintSurface canvas;
public void init()
{
this.setSize(WIDTH, HEIGHT);
... | true |
3720fcb2b52f26db1ce612189b5725e4afb40044 | Java | Yovannys/GreenHelixCore | /src/main/java/com/grassvsmower/App.java | UTF-8 | 3,371 | 1.820313 | 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 com.grassvsmower;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootA... | true |
ffcffa52b2087a38eb9596d3b716193a749d7304 | Java | delin10/algorithm | /core-algorithm/src/main/java/nil/ed/sample/algorithm/core/highaccuracy/SuperInteger.java | UTF-8 | 2,947 | 3.78125 | 4 | [] | no_license | package nil.ed.sample.algorithm.core.highaccuracy;
/**
* 大整数四则运算
*/
public class SuperInteger {
private char[] value;
public SuperInteger(char[] value) {
checkValue(value);
this.value = value;
}
public SuperInteger(String intStr){
this(intStr.toCharArray());
}
publi... | true |
ecf4934ea1063c96c32bfca9f64bbe172449bbf3 | Java | Witalia008/university_courses | /bachelors/year3/semestre1/HomeTasks/8/src/main/java/sample/Database.java | UTF-8 | 4,649 | 3.03125 | 3 | [] | no_license | package sample;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Witalia on 01.12.2014.
*/
public class Database {
private Connection connection;
public Database(String driverName, String uri, String username, String password) throws SQLException {
... | true |
e684c508516b2e5344837770ab0e4328f2bbb5a6 | Java | oicr-gsi/shesmu | /shesmu-server/src/main/java/ca/on/oicr/gsi/shesmu/compiler/SignableVariableCheck.java | UTF-8 | 198 | 1.53125 | 2 | [
"MIT"
] | permissive | package ca.on.oicr.gsi.shesmu.compiler;
import org.objectweb.asm.commons.GeneratorAdapter;
public interface SignableVariableCheck {
String name();
void render(GeneratorAdapter methodGen);
}
| true |
12d7c02d2ecb0c10385cc3e5e0664eea4435424a | Java | Dezzmeister/annotation-example | /AnnotationExample/src/main/UnfinishedClass1.java | UTF-8 | 360 | 2.546875 | 3 | [] | no_license | package main;
import meta.Priority;
@Priority(0)
public final class UnfinishedClass1 {
@Priority(1)
public final UnfinishedClass2 doSomething() {
return null;
}
@Priority(3)
public final int doSomethingElse() {
return -1;
}
public static final void trash() {
System.out.println("sp... | true |
051b83bcedf3b1d7808531f19ad4c2c5c16bde80 | Java | moutainhigh/WINSHARE | /ec-admin-issue-1.0/ec-admin-issue-1.0/.svn/pristine/30/30e5b6adc25a3d6d138ef9300f6ecc28d3c06e81.svn-base | UTF-8 | 336 | 1.640625 | 2 | [] | no_license | package com.winxuan.ec.admin.controller.product;
/**
* 修改商品分类
* @author heshuai
*
*/
public class ProCaEditForm {
private Long[] categories;
public Long[] getCategories() {
return categories;
}
public void setCategories(Long[] categories) {
this.categories = categories;
}
... | true |
b9145cafd7334ebfe5055195e5e7f6484e01f978 | Java | schopperf/dampf | /Dampf/src/main/java/at/fh/ima/swengs/dampf/model/Account.java | UTF-8 | 2,586 | 1.96875 | 2 | [] | no_license | package at.fh.ima.swengs.dampf.model;
import at.fh.ima.swengs.dampf.util.JsonDateDeserializer;
import at.fh.ima.swengs.dampf.util.JsonDateSerializer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotat... | true |
9f7334fc87110c0ba19e126d9b43413e1a830896 | Java | wangjie19930521/testGit | /src/main/java/com/huaxin/Test55.java | UTF-8 | 1,221 | 2.828125 | 3 | [] | no_license | package com.huaxin;
import java.util.Scanner;
/**
* @ClassName Test55
* @Description: BABABABABABABABA
* @Author wanGJ1E
* @Date 2020/3/8
* @Version V1.0
**/
/*ABABABABABABABAB
BABABABABABABABA
AAAABBBAAAABBBAA
AABBAABBAABBAABB
BAAABAAABAABAABA
ABAABAABAABAABAA
BA... | true |
70cec2accc68334d38c62c5c663a8c1af0877788 | Java | wal99d/Java | /LoanSystem/build/generated-sources/ap-source-output/loan/system/entities/EmploymentInfo_.java | UTF-8 | 2,029 | 1.609375 | 2 | [] | no_license | package loan.system.entities;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import loan.system.entities.Client;
@Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-02-11T12:35:35")
@StaticM... | true |
3088ecc659b71e2a954e9c7279c6a0a72ef27f40 | Java | EnFlexIT/EnergyAgents | /eclipseProjects/de.enflexit.ea/bundles/de.enflexit.ea.core/src/de/enflexit/ea/core/eomStateStream/StateQueueKeeperTechnicalSystem.java | UTF-8 | 1,336 | 2.046875 | 2 | [] | no_license | package de.enflexit.ea.core.eomStateStream;
import org.awb.env.networkModel.NetworkComponent;
import de.enflexit.eom.awb.stateStream.SystemStateDispatcherAgentConnector;
import energy.optionModel.TechnicalSystem;
/**
* The Class StateQueueKeeperTechnicalSystem extends the {@link AbstractStateQueueKeeper}
... | true |
a443a2555ab454e5434d66cd4225e53395aa2051 | Java | manemarron/omega | /OmegaWeb/src/java/db_ws/models/SelectColumns.java | UTF-8 | 807 | 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 db_ws.models;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAcces... | true |
654ef039c940487c9749a40f10a24090e3a13112 | Java | vanan08/keycloak | /keycloak-1.1.0.Beta2/core/src/main/java/org/keycloak/representations/idm/UserSubTypeRepresentation.java | UTF-8 | 876 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package org.keycloak.representations.idm;
public class UserSubTypeRepresentation {
protected String id;
protected String name;
protected String userType;
protected String userTypeName;
public String getUserTypeName() {
return userTypeName;
}
public void setUserTypeName(String userTypeName)... | true |
9578841319c3a8bf1bc2e6bd84382a0fec83ce49 | Java | mandy4994/Quick_Note_Android | /QuickNote/QuickNote/app/src/main/java/com/ass1/mandeep/quicknote/MyOpenHelper.java | UTF-8 | 2,031 | 2.578125 | 3 | [] | no_license | package com.ass1.mandeep.quicknote; /**
* Created by Mandeep on 01-Oct-15.
*/
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.sql.Date;
/**
* Mandeep Singh, 213347007
* SIT207 Assignme... | true |
9aa419e3f1da63e6b59364a2b65d7aad7a92c7bf | Java | jeongjaehong/webbibles | /src/org/nilriri/webbibles/dao/BibleBean.java | UTF-8 | 291 | 1.546875 | 2 | [] | no_license | package org.nilriri.webbibles.dao;
public class BibleBean {
public int _id;
public String vercode;
public String vername;
public int version;
public int book;
public int chapter;
public int verse;
public String contents;
public int style;
}
| true |
4fdb2a9736bdad76927d86b715b9b6050320c3ef | Java | Gunnaratchley/Java-Mario-Clone | /src/View.java | UTF-8 | 1,523 | 2.9375 | 3 | [] | no_license | //Gunnar Atchley
// 10/30/2020
import javax.swing.JPanel;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.IOException;
import java.io.File;
import javax.swing.JButton;
import java.awt.Color;
class View extends JPanel
{
Model model; //instance ... | true |
f6b58c0d9ccddfc657b8a9cbc7b51a4d76fdae25 | Java | bithup/paotui | /src/main/java_paotui/com/xgh/mng/dao/ZoneDaoImpl.java | UTF-8 | 2,355 | 1.90625 | 2 | [] | no_license | package com.xgh.mng.dao;
import com.xgh.mng.dao.read.IZoneDaoR;
import com.xgh.mng.dao.write.IZoneDaoW;
import com.xgh.mng.entity.Zone;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("zoneDao... | true |
799fc67b777f66266b4270b5bdf941a27230fbb4 | Java | apache/tomcat | /java/jakarta/servlet/Registration.java | UTF-8 | 4,058 | 2.328125 | 2 | [
"Zlib",
"LZMA-exception",
"CPL-1.0",
"bzip2-1.0.6",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"EPL-2.0",
"CDDL-1.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
0b40500c8e65dff75b36b42ef181bec000534b58 | Java | Fevill/ApiVedagErp | /src/main/java/tim/vedagerp/api/repositories/FiscalYearRepository.java | UTF-8 | 670 | 1.929688 | 2 | [] | no_license | package tim.vedagerp.api.repositories;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import tim.vedagerp.api.entities.FiscalYear;
public interface FiscalYea... | true |
18ada289aeb29878fdaf951e57899c9c6fe7777f | Java | wangruichengithub/SGC | /src/main/java/com/app/mdc/serviceImpl/system/FileServiceImpl.java | UTF-8 | 4,346 | 2.171875 | 2 | [] | no_license | package com.app.mdc.serviceImpl.system;
import com.app.mdc.config.PicConfig;
import com.app.mdc.enums.ApiErrEnum;
import com.app.mdc.mapper.system.DictMapper;
import com.app.mdc.mapper.system.FileMapper;
import com.app.mdc.model.system.File;
import com.app.mdc.model.system.User;
import com.app.mdc.service.system.FileS... | true |
3fa22babaa081951b79115a479ae4da5e1af0dcd | Java | lett-java/pes-web | /src/test/java/br/com/wepes/masterleague/ClubeTests.java | UTF-8 | 10,603 | 2.046875 | 2 | [] | no_license | package br.com.wepes.masterleague;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doThrow;
import ... | true |
6c7fa89664983f2dd7db9ce8d1d41376552b29cc | Java | gmgw0909/TalkfxNew | /app/src/main/java/com/xindu/talkfx_new/bean/JYAccountListInfo.java | UTF-8 | 1,018 | 1.875 | 2 | [] | no_license | package com.xindu.talkfx_new.bean;
import java.util.List;
/**
* Created by LeeBoo on 2018/5/28.
*/
public class JYAccountListInfo {
/**
* list : [{"isDefault":"1","serverStatus":null,"acctNo":"6045979","platformServer":"XM.COM-Real 6","name":"XM","tradeAcctId":25,"isSelf":"1","createDate":1527498251}]
... | true |
d200b4376545d5d3a995f8541ca6b9229894e6f3 | Java | MinecraftModdedClients/Resilience-Client-Source | /net/minecraft/entity/passive/EntityAnimal.java | UTF-8 | 14,506 | 2.15625 | 2 | [
"WTFPL"
] | permissive | package net.minecraft.entity.passive;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.IAttributeInstance;
import net.minecraft.entity.player.EntityPlayer;
import net.mine... | true |
6ffe111ef8c571ef33be4053c657f61de1a24820 | Java | Ni2014/coding2017 | /group11/542194147/myDataStructure/src/com/coderising/array/ArrayUtilTest.java | UTF-8 | 1,393 | 3.265625 | 3 | [] | no_license | package com.coderising.array;
import org.junit.Test;
public class ArrayUtilTest {
ArrayUtil al=new ArrayUtil();
@Test
public void testReverseArray(){
int origin[]={1,2,3,4,5,6};
int exchange[]=al.reverseArray(origin);
for(int i=0;i<exchange.length;i++){
System.out.println(exchange[i]);
}
}
@Test... | true |
2ca5393ce213b9aed6c944b65a78b1e570b0943e | Java | XueXue-feng/basic-code | /src/cn/itcast/dayweb/demo/day01Object/Demo02Objects.java | UTF-8 | 693 | 3.859375 | 4 | [] | no_license | package cn.itcast.dayweb.demo.day01Object;
import java.util.Objects;
public class Demo02Objects {
public static void main(String[] args) {
String str1 = "abs";
String str2 = "abs";
//String 重写了equals方法比较的是属性
System.out.println(str1.equals(str2));//true
//如果str1为null则会报空指针异... | true |
4ae617a0a4696c58c47bcb8ffce9dbb70d4d3236 | Java | datadiskpfv/ddflix | /src/main/java/uk/co/datadisk/ddflix/dto/models/AddressDTO.java | UTF-8 | 556 | 2.140625 | 2 | [] | no_license | package uk.co.datadisk.ddflix.dto.models;
import lombok.*;
import uk.co.datadisk.ddflix.entities.user.City;
import uk.co.datadisk.ddflix.entities.user.User;
import javax.validation.constraints.Size;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddressDTO {
private Long id;
@Size(min =... | true |
74de18718c211d83661d17dee65e621ca9341f0a | Java | diogogermano/SisBov | /src/main/java/br/com/sisbov/dao/GenericDao.java | UTF-8 | 471 | 2.078125 | 2 | [] | no_license | package br.com.sisbov.dao;
import java.io.Serializable;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
public interface GenericDao<T, ID extends Serializable> {
void save(T entity);
void merge(T entity);
void delete(T entity);
List<T> findMany... | true |
71b53f6801517a2a1731e73daaf8df6df7d2be7c | Java | TheHolyWay/geo-reminder | /src/main/java/ru/holyway/georeminder/service/DefaultUserPlacesService.java | UTF-8 | 851 | 2.1875 | 2 | [] | no_license | package ru.holyway.georeminder.service;
import org.springframework.stereotype.Component;
import ru.holyway.georeminder.entity.UserLocation;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
@Component
public class DefaultUserPlacesService implements ... | true |
d041f7211742b4445254dc42cd98191fd063da71 | Java | RealRadOne/HousekeepingOrderFinals | /src/java/Converter/AssetConverter.java | UTF-8 | 814 | 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 Converter;
import Model.*;
import org.bson.types.ObjectId;
import com.mongodb.BasicDBObjectBuilder;
import com.mongodb.DBObject... | true |
8b496b7dbbb9fafe3c54425b22366dfb77eb644c | Java | slipperyseal/atomicobjects | /atomicobjects-lang/src/main/java/net/catchpole/image/RenderedImageWriter.java | UTF-8 | 2,684 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package net.catchpole.image;
// Copyright 2014 catchpole.net
//
// 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... | true |
6cd0b2beaad966ea44ec5676edcb6cc42029b3ce | Java | trienvu/jav-funny | /NgoiSao/src/com/hihi/ngoisao/MainActivity.java | UTF-8 | 757 | 2.15625 | 2 | [] | no_license | package com.hihi.ngoisao;
import java.util.List;
import com.example.ngoisao.R;
import com.ngoisao.dao.SupperStarImpl;
import com.ngoisao.entity.SupperStar;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;
public class MainActivity exten... | true |
0241b2b0baf8d6411499b0d0181ecc7d23bdb546 | Java | wang15855271796/qiaoge | /app/src/main/java/com/puyue/www/qiaoge/model/mine/WalletTypeModel.java | UTF-8 | 329 | 1.992188 | 2 | [] | no_license | package com.puyue.www.qiaoge.model.mine;
/**
* If I become novel would you like ?
* Created by WinSinMin on 2018/5/3.
*/
public class WalletTypeModel {
public String type;
public String typeId;
public WalletTypeModel(String type, String typeId) {
this.type = type;
this.typeId = typeId;... | true |
8d6f97e74f3421ffd84d500581d237bcc1244c06 | Java | greyp9/arwo | /src/main/core/java/io/github/greyp9/arwo/core/table/cell/TableViewButton.java | UTF-8 | 1,097 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package io.github.greyp9.arwo.core.table.cell;
import io.github.greyp9.arwo.core.lang.CompareU;
public class TableViewButton implements Comparable<TableViewButton> {
private final String text;
private final String name;
private final String value;
public final String getText() {
return text;
... | true |
280226126d3cc0fd0e54b1a835c01c2964567569 | Java | wso2/wso2-synapse | /modules/commons/src/main/java/org/apache/synapse/commons/throttle/core/internal/ThrottleServiceDataHolder.java | UTF-8 | 2,556 | 2.015625 | 2 | [] | no_license | /*
* Copyright 2005,2006 WSO2, Inc. http://wso2.com
*
* 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 o... | true |
b0c05a136c2894ab9216c20c3cc7842ec6ceb2d3 | Java | xeonye/ilearn | /src/parim/net/exam_filetransfer/service/TimerTaskForSend.java | UTF-8 | 4,800 | 2.703125 | 3 | [] | no_license | package parim.net.exam_filetransfer.service;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.metho... | true |
2dcb0551869d04f4f4ddb5236eb2556e8913c083 | Java | renzhongyiyan/AS-Lib | /src/com/iyuba/core/iyumooc/teacher/API/GetAnswerListApi.java | UTF-8 | 538 | 1.734375 | 2 | [] | no_license | package com.iyuba.core.iyumooc.teacher.API;
import com.iyuba.core.iyumooc.teacher.bean.AgreeListBean;
import com.iyuba.core.iyumooc.teacher.bean.AnswerListBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* 作者:renzhy on 17/7/8 17:49
* 邮箱:renzhongyigoo@gmail.com
*/
public int... | true |
5e745ad48fa5da94794b5df16bad52ca0f5cd801 | Java | NCIP/caarray-docs | /analysis_and_design/prototypes/caupload/applet/src/main/java/wjhk/jupload2/filedata/helper/ImageHelper.java | UTF-8 | 30,974 | 2.296875 | 2 | [] | no_license | //
// $Id$
//
// jupload - A file upload applet.
//
// Copyright 2008 The JUpload Team
//
// Created: 12 fevr. 08
// Creator: etienne_sf
// Last modified: $Date$
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by... | true |
7a7a77b613985c3cd5ef18cd1b94be899c08440c | Java | hamiltonvgdev/IndieCade-Game | /IndieCade Project/src/Sound/Sound.java | UTF-8 | 1,508 | 3 | 3 | [] | no_license | package Sound;
import java.io.File;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
public class Sound
{
static Clip klip;
public static void playSound(String ref)
{
try {
AudioInputStream audioInputStream = AudioSystem.getAudioInp... | true |
350ce40e10e26269693c265a7459e18097611a18 | Java | VitarLaeda/AlgoritmsAndStructures | /discnt/src/main/Discnt.java | UTF-8 | 2,079 | 3.125 | 3 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class Discnt {
private static double sum = 0;
private static double summary = 0;
public static void main(String[] args) throws IOException {
String inputFileName = args.length >= 2 ? args[0] : "discnt/src/main/discnt.in";
... | true |
dfd80821d8d540fb7e1bad586dec6118b949ce35 | Java | WillJarvis-Cross/group_0400 | /phase2/src/Gateways/ExportHTML.java | UTF-8 | 3,924 | 3.421875 | 3 | [] | no_license | package Gateways;
import java.util.List;
/** This is an entity for a Conference, and it will export a timetable in HTML format of the events that the user is
* attending. Information includes; the date, time, duration, speaker, event name and like status.
* @author group 0400
*/
public class ExportHTML {
pri... | true |
48fede16a07b0199db7aa9661b57004355c29061 | Java | babu-sarath/MCA | /app/src/main/java/com/scb/mca/ViewNote.java | UTF-8 | 8,161 | 2.234375 | 2 | [] | no_license | package com.scb.mca;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
im... | true |
0d2f25ebab0e694379932e5b7cf2a37e8664c0c3 | Java | houziershi/study | /agile.java/code/02.base/src/stringtools/StringConstans.java | UTF-8 | 133 | 1.570313 | 2 | [] | no_license | package stringtools;
public class StringConstans {
public static final String NEW_LINE = System.getProperty("line.separator");
}
| true |
2a65241350580c7b63140e6c05d26d3916ffb5e2 | Java | rkkoszewski/DSComEmu | /dsce/src/main/java/com/robertkoszewski/dsce/messages/CurrentStateMessageWrapper.java | UTF-8 | 10,987 | 2.265625 | 2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*******************************************************************************
* Copyright (c) 2018 Robert Koszewski
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restricti... | true |
c7bc6bbbb5ba6655929852982d22d6a314834a3d | Java | shrish-sharma-git/To-Do-App | /app/src/main/java/com/example/todoapp/MainActivity.java | UTF-8 | 1,342 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.example.todoapp;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class ... | true |
4a47004087d48ebebb4fcaf06735581a23e6b570 | Java | kaloyero/Danmar | /DanmarWeb/src/main/java/com/facturador/danmar/form/mapper/TarjetaCoeficienteMapper.java | UTF-8 | 889 | 2.375 | 2 | [] | no_license | package com.facturador.danmar.form.mapper;
import com.danmar.utils.ConvertionUtil;
import com.danmar.utils.FormatUtil;
import com.facturador.danmar.form.TarjetaForm;
import com.facturador.danmar.model.TarjetaCoeficiente;
public class TarjetaCoeficienteMapper extends MapperImpl<TarjetaCoeficiente,TarjetaForm>{
pub... | true |
d79eac6008c9c23d18281f957a3e3c2b7abc60c8 | Java | zoony82/mlspark | /src/main/scala/com/insam/JavaAlgo/Basic/CycleRotation.java | UTF-8 | 296 | 2.9375 | 3 | [] | no_license | package com.insam.JavaAlgo.Basic;
public class CycleRotation {
public int[] solution(int[] A, int K) {
//int[] ret=null;
int[] ret;
ret = new int[A.length];
for(int i = 0; i < A.length ; i++) {
//System.out.println(val);
ret[(i+K) % A.length] = A[i];
}
return ret;
}
}
| true |
6ff096ad1e08acae46b70d818e3f7323dded855d | Java | iyaruta/Cruise-Company | /src/main/java/home/inna/cruisecompany/service/ExcursionToUserService.java | UTF-8 | 132 | 1.734375 | 2 | [] | no_license | package home.inna.cruisecompany.service;
public interface ExcursionToUserService {
void buy(Long excursionId, Long userId);
}
| true |
ef15d6a25ecee235ec4f3d7c9eca04296eef8e80 | Java | hvn2001/Algorithms | /src/main/java/net/qiguang/algorithms/C1_Fundamentals/S4_AnalysisOfAlgorithms/Exercise_1_4_33.java | UTF-8 | 1,317 | 3.453125 | 3 | [] | no_license | package net.qiguang.algorithms.C1_Fundamentals.S4_AnalysisOfAlgorithms;
/**
* 1.4.33 Memory requirements on a 32-bit machine.
* Give the memory requirements for
*
* Answers:
* Integer, 8 (object overhead) + 4 (instance variable) + 4 (padding) = 16
* Date, 8 (object overhead) + 12 (3 insta... | true |
20ae36819f30f05c2777fced040654558c5843de | Java | 18911533031/tank | /src/com/mashibing/tank/Tank.java | UTF-8 | 5,575 | 2.890625 | 3 | [] | no_license | package com.mashibing.tank;
import com.mashibing.tank.abstractfactory.BaseTank;
import java.awt.*;
import java.util.Random;
public class Tank extends BaseTank {
private int x, y;
/**
* 方向
*/
private Dir dir = Dir.UP;
/**
* 移动速度
*/
private static final int SPEED = 5;
/*... | true |
20ed8a18f5e8c71f38415a32e9ad8443ccade505 | Java | avereyl/bspv-services | /bspv-gateway/src/test/java/org/bspv/gateway/Sandbox.java | UTF-8 | 1,398 | 2.203125 | 2 | [] | no_license | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distr... | true |
e019dfcfef2aa8b32ba290392d35993f4775422b | Java | GuptaSanjay/testrepo | /JUnit_basic/src/com/addition/TestAddition.java | UTF-8 | 937 | 2.671875 | 3 | [] | no_license | package com.addition;
import static org.junit.Assert.*;
import org.junit.Test;
public class TestAddition {
/*@Test
public void test() {
fail("Not yet implemented");
}
*/
@Test
public void testAddnumberPositive() {
System.out.println("Numbers Addition Unit test");
mathsAddition ma=new mathsAddition();
... | true |
31d85ef9f3e4f0bad80813a66f28eb95a6c5adda | Java | David220394/carrental-david | /src/main/java/com/accenture/repository/CarRepository.java | UTF-8 | 395 | 2 | 2 | [] | no_license | package com.accenture.repository;
import java.util.Date;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import com.accenture.entity.Car;
public interface CarRepository extends CrudRepository<Car, Long> {
public Car findByRegistrationNumber(String registrationNumber);
public ... | true |
32c8b99a71c524dca494141c241e6fce68a97cff | Java | Vishruth-SA/Employee_Portal | /EmployeePortalJava/src/main/java/com/employeeportal/app/dao/EmployeeRepository.java | UTF-8 | 238 | 1.515625 | 2 | [] | no_license | package com.employeeportal.app.dao;
import org.springframework.data.repository.CrudRepository;
import com.employeeportal.app.entity.Employee;
public interface EmployeeRepository extends CrudRepository<Employee, Integer> {
}
| true |
94e52ea23ff7f856fe8768a671774b1fe42f5109 | Java | GaYoung87/JAVA | /infran_Java로 배우는 자료구조/Lesson02/src/Section01/Code05.java | UHC | 1,973 | 3.953125 | 4 | [] | no_license | package Section01;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Code05 {
// main class static̰, class static
static MyRectangle1 [] rects = new MyRectangle1 [100]; // 迭 = 迭
// 迭 = 迭 ּҸ ϴ ̴!!!
static int n = 0; // 簢
public static void main(String[]... | true |
db61d6bc38368c7f55a8afc511af95a2c4617e4c | Java | axdum/Star2DR | /app/src/main/java/mob/star2dr/model/Stops.java | UTF-8 | 1,423 | 2.34375 | 2 | [] | no_license | package mob.star2dr.model;
/**
* Created by User_1 on 05/12/2017.
*/
public class Stops {
private String stop_name;
private String stop_desc;
private String stop_lat;
private String stop_lon;
private String wheelchair_boarding;
public Stops(String stop_name, String stop_desc, String stop_la... | true |
f79f3c05684de968e74c7c0860d58c7173d74876 | Java | moutainhigh/crawler | /parent/parent-microservice/parent-microservice-carrier/common-microservice-eureka-china-unicom/src/main/java/app/bean/UnicomUserResultRoot.java | UTF-8 | 952 | 1.835938 | 2 | [] | no_license | package app.bean;
import java.util.List;
import com.microservice.dao.entity.crawler.unicom.UnicomBalance;
import com.microservice.dao.entity.crawler.unicom.UnicomUserInfo;
public class UnicomUserResultRoot<T> {
public UnicomErrorMessage getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(Un... | true |
6a0aa2f64c54b22cfe7e26406f6c5b9019285c26 | Java | khaerul10056/Backpackers | /backend/src/main/java/com/backpackers/android/backend/model/user/Account.java | UTF-8 | 9,795 | 2.015625 | 2 | [] | no_license | package com.backpackers.android.backend.model.user;
import com.google.api.server.spi.config.AnnotationBoolean;
import com.google.api.server.spi.config.ApiResourceProperty;
import com.google.appengine.api.datastore.Email;
import com.google.appengine.api.datastore.Link;
import com.google.appengine.repackaged.org.codehau... | true |
153ddbe2e2e80a1c4bb2aad34e60fae58f862bc2 | Java | hickeyjohnson/uomi_application | /app/src/main/java/ca/outercove/uomiapplication/MainActivity.java | UTF-8 | 4,950 | 1.820313 | 2 | [
"MIT"
] | permissive | package ca.outercove.uomiapplication;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActi... | true |
e9a063d8eaa649d23d995664fa5b641b07349fa0 | Java | zh453550046/FreedomWether | /toolslib/src/main/java/com/noah/mgtv/toolslib/sharedpreference/SpClient.java | UTF-8 | 1,345 | 2.078125 | 2 | [] | no_license | package com.noah.mgtv.toolslib.sharedpreference;
import android.content.Context;
/**
* Created by zhouweinan on 2018/4/8.
*/
public class SpClient {
private static SpUtil mSpUtil;
private static final String APP_NAME_KEY = "app";
private static final String UNIQUE_ID = "uniqueId";
private stati... | true |
80ceb8e1cecea3bc20659eae754277c1e10924d0 | Java | NathanSFon/Petshop | /src/Petshop/Animal/iguana.java | UTF-8 | 289 | 2.703125 | 3 | [
"MIT"
] | permissive | package Animal;
public class iguana extends Reptil{
public iguana(String nom, String cor, int idad){
setNome(nom);
setCorPele(cor);
setIdade(idad);
}
public void trocar_pele(){
System.out.println(getNome() + " esta trocando de pele!");
}
} | true |
47ca603688b666068f6d1dd03fc1a38918bb6889 | Java | magenta-aps/datafordeler-plugin-geo | /src/main/java/dk/magenta/datafordeler/geo/data/municipality/MunicipalityOutputWrapper.java | UTF-8 | 842 | 2.015625 | 2 | [] | no_license | package dk.magenta.datafordeler.geo.data.municipality;
import com.fasterxml.jackson.databind.ObjectMapper;
import dk.magenta.datafordeler.geo.data.GeoOutputWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class MunicipalityOutpu... | true |
1945ff72f8054c064938dbf28e929e2f99fe2d4d | Java | Drakojin/webtester2-core | /webtester-support-junit4/src/main/java/info/novatec/testit/webtester/junit/exceptions/NoUniquePrimaryBrowserException.java | UTF-8 | 488 | 2.3125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package info.novatec.testit.webtester.junit.exceptions;
import info.novatec.testit.webtester.junit.annotations.Primary;
@SuppressWarnings("serial")
public class NoUniquePrimaryBrowserException extends IllegalTestClassStructureException {
private static final String MESSAGE =
"There is no unique primary ... | true |
46fb2b75bbfe2c3a11821fc967c7abb198c4f214 | Java | abandonadoRUSHyoutuber/ProjetosAbandonadosDoRUSH | /Czessentials/me/devleo/czpvpessentials/MySQL/Query.java | UTF-8 | 1,821 | 2.21875 | 2 | [] | no_license | /* */ package me.devleo.czpvpessentials.MySQL;
/* */
/* */ import java.sql.Connection;
/* */ import java.sql.SQLException;
/* */ import java.sql.Statement;
/* */ import java.util.logging.Logger;
/* */ import me.devleo.czpvpessentials.Main;
/* */ import org.bukkit.plugin.Plugin;
/* */... | true |
42c89ac4bb1a9b97be18ede348dea5d775a41a53 | Java | Nagendra201/SeleniumProjects | /Selenium001/src/test/java/com/cts/junit/TestJunit1.java | UTF-8 | 909 | 2.0625 | 2 | [] | no_license | package com.cts.junit;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import static org.junit.jupiter.api.Assertions.assertEquals;
... | true |
c115c2107a4d5c976d2f77e03331cabe2ab307a9 | Java | veigara/java24 | /DBCP/src/com/hxzy/dao/StudentDao.java | UTF-8 | 240 | 2.078125 | 2 | [] | no_license | package com.hxzy.dao;
import java.util.List;
import com.hxzy.entity.Student;
public interface StudentDao {
public int insert(Student stu);
public Student querySingle(int studentNo);
public List<Student> queryAll();
}
| true |
483a4ddd8c1fc238ec3efea3677124404b45eb08 | Java | scanry/flink-connector-kafka-strengthen | /src/test/java/org/apache/flink/streaming/connectors/kafka/FuncExprTest.java | UTF-8 | 1,189 | 2.71875 | 3 | [] | no_license | package org.apache.flink.streaming.connectors.kafka;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import com.chinacscs.basicplatform.commons.expr.FuncFactorys;
/**
*
* @author chinacsci
* @date 2019年9月6日 下午4:3... | true |
7bdf942a11200126c8a08bef10e7243f48474e39 | Java | ZhangNingPegasus/middleware | /admin-ui-starter/src/main/java/org/wyyt/admin/ui/advice/ExceptionControllerAdvice.java | UTF-8 | 2,335 | 2.21875 | 2 | [] | no_license | package org.wyyt.admin.ui.advice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframew... | true |
6cc47a995b8df5c5e882de06bdb84b5b1e682b03 | Java | myeasonhost/myeasonhost | /report-api-impl/service-report-pull-data/src/main/java/com/eason/report/pull/platform/pt/po/DsPtGamePo.java | UTF-8 | 7,120 | 1.828125 | 2 | [] | no_license | package com.eason.report.pull.platform.pt.po;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;
@Entity
@Table(name = "ds_pt_game")
public class DsPtGamePo implements Serializable {
private String gamecode;
private Integer s... | true |
9fa0a8c883de83965df654aa8b3e1e0ac28aa747 | Java | hojin3/file | /Calc.java | UTF-8 | 1,249 | 3.03125 | 3 | [] | no_license | package com.sist.calc;
import javax.swing.JTextField;
public class Calc {
private int num1;
private int num2;
private String op;
public int getNum1() {
return num1;
}
public void setNum1(int num1) {
this.num1 = num1;
}
public int getNum2() {
return num2;
}
public void setNum2(int n... | true |
e2bf92f0070a6e3e6640358eaaba475ee34f2f73 | Java | bedatadriven/renjin-data | /row-sources/src/test/java/com/bedatadriven/renjin/table/buffer/SimpleRowCursor.java | UTF-8 | 951 | 2.71875 | 3 | [] | no_license | package com.bedatadriven.renjin.table.buffer;
import com.bedatadriven.renjin.table.RowCursor;
public class SimpleRowCursor implements RowCursor {
private int count;
private int position;
public SimpleRowCursor(int totalRowCount, int offset) {
this.count = totalRowCount;
this.position = offset-1;
}
... | true |
66e09b67047eb2a0ea424fe3386af02d8e75ef99 | Java | svn2github/RefactorIT | /refactorit-netbeans/src/main/java/net/sf/refactorit/netbeans/common/standalone/IdeVersion.java | UTF-8 | 1,284 | 2.078125 | 2 | [] | no_license | /*
* Copyright 2001-2008 Aqris Software AS. All rights reserved.
*
* This program is dual-licensed under both the Common Development
* and Distribution License ("CDDL") and the GNU General Public
* License ("GPL"). You may elect to use one or the other of these
* licenses.
*/
package net.sf.refactorit.n... | true |
4bed3d097d566d5e9868b766eab8629afe81d5b1 | Java | kausikporey/Java | /Swing Programming/OptionPane.java | UTF-8 | 166 | 2.109375 | 2 | [] | no_license | import javax.swing.*;
public class OptionPane{
public static void main(String args[]){
JFrame f=new JFrame();
JOptionPane.showMessageDialog(f,"This Is An Error");
}
} | true |
0d3ca6c0260660b2844571897f7969b7bdd57bbe | Java | jyoti1699/HelloDoc | /app/src/main/java/com/example/hellodoc/OrderSummary.java | UTF-8 | 3,897 | 1.875 | 2 | [] | no_license | package com.example.hellodoc;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.Text... | true |
4a512ab314825e6c046c5510f2df5a8526c8ad17 | Java | moutainhigh/sac | /SAC-OS/sac-os-core/src/main/java/net/easipay/cbp/service/impl/CusBalanceServiceImpl.java | UTF-8 | 8,105 | 1.859375 | 2 | [] | no_license | package net.easipay.cbp.service.impl;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.easipay.cbp.cache.CacheUtil;
import net.easipay.cbp.da... | true |
74af193880760355a92ff0a843d728e426ca574b | Java | Pratik94/DemoRetrofit | /app/src/main/java/com/example/pratik/demoretrofit/ApiService.java | UTF-8 | 734 | 1.945313 | 2 | [] | no_license | package com.example.pratik.demoretrofit;
import java.util.ArrayList;
import java.util.HashMap;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
/**
* Created by pratik on 14/04/16.
*/
public interface ApiService {
@GET("Consumer/appConfig")
Call<Se... | true |
74ba0d68b8d8a23b4ebbb9aeb30ed213e20097fa | Java | b-hodge/lllm | /src/main/java/edu/berkeley/nlp/assignments/assign1/student/TrigramKNLanguageModel.java | UTF-8 | 6,660 | 2.5 | 2 | [] | no_license | package edu.berkeley.nlp.assignments.assign1.student;
import edu.berkeley.nlp.langmodel.EnglishWordIndexer;
import edu.berkeley.nlp.langmodel.NgramLanguageModel;
import edu.berkeley.nlp.util.StringIndexer;
import struct.OpenHashMap;
import java.util.Arrays;
/**
* @author jda
*/
public class TrigramKNLanguageModel ... | true |
c413011d3abed817d53d3edae3dd9aeca89a61aa | Java | ckyA/final_project_3d_tetris | /app/src/main/java/com/cky/a3dtetris/rank/RankListAdapter.java | UTF-8 | 1,641 | 2.546875 | 3 | [] | no_license | package com.cky.a3dtetris.rank;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.cky.a3dtetris.R;
public class RankListAdapter extends BaseAdapter {
private Context context;
public RankLis... | true |
8af3c9c750b517efef5b6458f9eea1f44eb93e06 | Java | plamenaag/coenso-api | /src/main/java/com/primeholding/coenso/model/FieldValuePostModel.java | UTF-8 | 546 | 1.953125 | 2 | [] | no_license | package com.primeholding.coenso.model;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;... | true |
8b7aef0bcbb9c2e1c4a106f224dbabddb29d0fd7 | Java | sky-chy/ChainedDialogLibrary | /dialoglib/src/main/java/com/chy/dialoglib/base/DialogAnim.java | UTF-8 | 1,180 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.chy.dialoglib.base;
import com.chy.dialoglib.R;
public enum DialogAnim {
ANIM_ALPHA(R.style.anim_alpha),
ANIM_SCALE(R.style.anim_scale),
ANIM_ROTATE(R.style.anim_rotate),
ANIM_LEFT_TO_LEFT(R.style.anim_left_to_left),
ANIM_LEFT_TO_TOP(R.style.anim_left_to_top),
ANIM_LEFT_TO_RIGHT(... | true |
be6d515ed7f2fff62c4debe39381b96221814228 | Java | godkillCK/abstracttools | /demo-spring/src/main/java/net/abstracttools/demo/demo_spring/SlayDragonQuest.java | UTF-8 | 204 | 1.976563 | 2 | [] | no_license | package net.abstracttools.demo.demo_spring;
public class SlayDragonQuest implements Quest
{
@Override
public void embark()
{
System.out.println("slay the dragon!");
}
}
| true |
0695f256ab7220ef15e0272d7d7c3973e2ca30f7 | Java | wqcommon/algorithmic-java | /src/main/java/com/algorithmic/leetcode/A_401.java | UTF-8 | 1,211 | 3.1875 | 3 | [] | no_license | package com.algorithmic.leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* @author: wenqiang
* @date: 2019-11-17 15:13
* 二进制手表
*/
public class A_401 {
List<String> ret = new ArrayList<>();
public List<String> readBinaryWatch(int num) {
if(num <= 0){
ret.add("0:00");
... | true |
49b038e3dfd7a4e7ad99980a170d24b2e5cf467d | Java | marvank/SaunteringSeahorse | /core/src/org/cistercian/submario/Sprite.java | UTF-8 | 1,034 | 3.03125 | 3 | [] | no_license | package org.cistercian.submario;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;
public class Sprite {
protected Rectangle rect;
protected Texture texture;
public Sprite(Texture spriteImage) {
rect = ne... | true |
2223905df4b69c6431fac4c78b42c5bd41a7a257 | Java | TuongKaito/musikai | /src/main/java/com/kaito/musiconline/daoimp/CommentDAO.java | UTF-8 | 9,306 | 2.40625 | 2 | [] | no_license | package com.kaito.musiconline.daoimp;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.kaito.musiconline.dao.ICommentDAO;
import com.kaito.musiconline.dao.ICommentType;
import com.kaito.musi... | true |
517e25707e77d77567fb1dbd05e5635f1ec636fa | Java | sanluna/gwr-commons | /src/main/java/com/sanluna/multitenancy/multitenancy/model/GWRDatabaseConnectionInfo.java | UTF-8 | 2,560 | 2.421875 | 2 | [] | no_license | package com.sanluna.multitenancy.multitenancy.model;
import java.io.Serializable;
public class GWRDatabaseConnectionInfo implements Serializable {
private String tenant;
private String driverClassName;
private String url;
private String username;
private String password;
@Override
public... | true |
cc5428a3a513cfaf06ed6fdb9fd8076d9a563dae | Java | fieldnation/mulesoft-v2-connector | /src/main/java/com/fieldnation/models/WorkHistoryInnerResults.java | UTF-8 | 3,526 | 2.328125 | 2 | [] | no_license | /*
* Field Nation V2 API
*
*
* OpenAPI spec version: 2.0.0
*
*
*
*
* Do not edit the class manually.
*/
package com.fieldnation.models;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
/**
* WorkHistoryInnerResults
*/
public class WorkHistoryInn... | true |
211d9ec951ceecb902ccd06703578ac773c7623e | Java | wojciechmusiato/virtual-cam | /src/main/java/MainGUI.java | UTF-8 | 9,365 | 2.6875 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.LayoutS... | true |
e25d6e27e18f368d5c0042940af0528ce092db51 | Java | sdxy0506/HappyLink | /src/tk/sdxuyan/fragment/WelcomeFragment.java | UTF-8 | 2,440 | 2.296875 | 2 | [] | no_license | package tk.sdxuyan.fragment;
import tk.sdxuyan.slidemenudemo.FragmentChangeActivity;
import tk.sdxuyan.tool.Music;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Lay... | true |
395fea397f6099ce4123c165a2fd4bdc2a743f3d | Java | yufengqi/kb | /kb-core/src/main/java/cn/damai/kb/core/servicemapper/impl/UsersServiceImpl.java | UTF-8 | 2,326 | 2.171875 | 2 | [] | no_license | package cn.damai.kb.core.servicemapper.impl;
import java.io.Serializable;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.damai.kb.common.exception.BasicException;
import cn.damai.kb.common.service.impl.BaseServiceImpl;
import cn.damai.kb.core.daomap... | true |
0774dca3a93cbf1b271a87a6e99e3ce36b3412d6 | Java | Ramesh1105/Java-Programs | /replace.java | UTF-8 | 456 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
class replace{
public static void main(String[] args)
{
System.out.print("enter a string:");
Scanner input = new Scanner(System.in);
String str = input.nextLine();
System.out.print("enter the string u want to replace:");
String str2 = input.nextLine();
System.out.print("... | true |
1c51fd45c4021644bada6874fe07f4ec1cc59d36 | Java | pedalada-app/android | /app/src/main/java/com/pedalada/app/fragments/BettingSummaryFragment.java | UTF-8 | 4,810 | 1.914063 | 2 | [] | no_license | package com.pedalada.app.fragments;
import android.app.DialogFragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recyc... | true |
da1600a806a6c332b52ae9274f13a459f45aaf06 | Java | MystL/localocal_android | /app/src/main/java/my/localocal/booking/TourGuideBookingActivity.java | UTF-8 | 10,967 | 1.796875 | 2 | [] | no_license | package my.localocal.booking;
import java.util.Calendar;
import my.localocal.MainActivity;
import my.localocal.R;
import my.localocal.data.CoveragePlace;
import my.localocal.data.Place;
import my.localocal.data.TourGuide;
import my.localocal.utils.DataUtils;
import my.localocal.utils.StringUtils;
import my... | true |
1029c0e9f5228279b58e251487f8e4c7805d05b7 | Java | ThaGoalDiggers/banking-api-final-project | /src/main/java/com/bobby/bankingapifinal/enumerations/BillStatus.java | UTF-8 | 152 | 1.617188 | 2 | [] | no_license | package com.bobby.bankingapifinal.enumerations;
//This enum was created by Derian
public enum BillStatus
{ PENDING, CANCELLED, COMPLETED, RECURRING }
| true |