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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d9db35856260697ee3195c1f2bb46695167eb8d6 | Java | beerkitsakon/opencvtest1 | /app/src/main/java/com/example/kuro/opencvtest1/MainActivity.java | UTF-8 | 5,208 | 2.0625 | 2 | [] | no_license | package com.example.kuro.opencvtest1;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Camera;
import android.support.v4.app.ActivityCompat;
import andro... | true |
3a5c0af0150cc977623cce7c4b83ad41023b62c4 | Java | sezya-kot/SailorSystem | /Sailor/src/com/sezyakot/sailor/OrderItemsTemp.java | UTF-8 | 535 | 1.679688 | 2 | [] | no_license | package com.sezyakot.sailor;
import com.google.gson.annotations.SerializedName;
/**
* Created by Android on 04.09.2014.
*/
public class OrderItemsTemp {
@SerializedName("type") private int mType;
@SerializedName("item") private int mItemId;
@SerializedName(... | true |
b8db7bd98654850077b9fd9cc0ab50b5152f4b20 | Java | robmoral/SpringBoot-Jenkin-Maven | /src/main/java/com/example/myself/myself/UserRepoInterface.java | UTF-8 | 564 | 1.78125 | 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.example.myself.myself;
/**
*
* @author robmoral
*/
import org.springframework.data.repository.reactive.ReactiveCrudRepo... | true |
8d1869c7181a327cbd566f00c8bc03a4089f8953 | Java | Abealkindy/FreakManga | /app/src/main/java/com/otongsoetardjoe/freakmangabrandnew/utils/Const.java | UTF-8 | 1,322 | 1.539063 | 2 | [] | no_license | package com.otongsoetardjoe.freakmangabrandnew.utils;
public class Const {
/**
* Neko URLs
**/
public static final String BASE_URL_NEKO = "https://nekopoi.care/";
public static final String BASE_PAGE_NEKO_HEN = "https://nekopoi.care/category/hentai/page/%1$s";
public static final String BASE_... | true |
a3ee0ced065b3b8a54ae8fc90decd03ff952f3b9 | Java | kabigon-li/sizaikanri-java | /src/main/java/co/jp/mamol/myapp/action/DeleAction.java | UTF-8 | 1,170 | 1.929688 | 2 | [] | no_license | package co.jp.mamol.myapp.action;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.beans.factory.annotation.Autowired;
import co.jp.mamol.myapp.dto... | true |
3c4a64c7ff61a237fd31538306328c9918d04fd6 | Java | ybak/karazam-santian | /src/main/java/com/klzan/p2p/vo/schedule/ScheduleJobVo.java | UTF-8 | 1,994 | 1.960938 | 2 | [] | no_license | package com.klzan.p2p.vo.schedule;
import com.klzan.p2p.common.vo.BaseVo;
/**
* Created by suhao Date: 2017/4/18 Time: 16:14
*
* @version: 1.0
*/
public class ScheduleJobVo extends BaseVo {
/**
* spring bean名称
*/
private String beanName;
/**
* 方法名
*/
private String methodName;... | true |
c4a4dba2547cd825136ea6d05050c1e690812581 | Java | dankin96/PlayMate | /src/main/java/com/technostart/playmate/frame_reader/CvFrameReader.java | UTF-8 | 1,466 | 2.96875 | 3 | [] | no_license | package com.technostart.playmate.frame_reader;
import org.opencv.core.Mat;
import org.opencv.videoio.VideoCapture;
import java.io.Closeable;
import java.io.IOException;
public class CvFrameReader implements FrameReader<Mat>, Closeable {
private VideoCapture capture;
private int frameNumber;
public CvFr... | true |
04dc0b1c275c2b2cd3355fc115a9b6b586c7057a | Java | elumixor/Sims-5 | /java/src/devices/Piano.java | UTF-8 | 571 | 2.84375 | 3 | [] | no_license | package devices;
import Animate.Human.Human;
import responsive.events.Event;
public class Piano extends Device implements Satisfier {
public Piano() {super(1.f, .005f);}
@Override
protected void consume() {}
@Override
public boolean satisfy(Human player) {
System.out.printf("%s tries to ... | true |
8f77aaaa7fd41a7df6d2839aae54296235655242 | Java | jhuilin/CS-316-PrincipleOfProgrammingLanguage | /Interpreter/src/AddTermItem.java | UTF-8 | 488 | 3.296875 | 3 | [] | no_license | import java.util.*;
class AddTermItem extends TermItem
{
AddTermItem(Term t)
{
term = t;
}
void printParseTree(String indent)
{
IO.displayln(indent + indent.length() + " +");
term.printParseTree(indent);
}
@Override
Val Eval(HashMap<String, Val> state)
{
if (term.Eval(state) ins... | true |
50bc5aeb34c69265bade58bfd05a3382b72bfa1c | Java | RenanOliveiraSC/Algoritimos | /Algoritimos.zip_expanded/Algoritimos/src/exercicios4/D_exercicio.java | WINDOWS-1252 | 168 | 2.296875 | 2 | [] | no_license | package exercicios4;
public class D_exercicio {
public static void main(String[] args) {
if (1 == 1) {
System.out.println("1 igual a 1");
}
}
}
| true |
5a7845a8ef194a75665ee8c6ec58ab70158ae28f | Java | oneintegralanomaly/ProjectMini_Group03 | /miniproject/miniproject/src/controller/RegisterController.java | UTF-8 | 3,306 | 2.265625 | 2 | [] | no_license | package controller;
import com.jfoenix.controls.JFXButton;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ResourceBundle;
import javafx.animation.Interpolator;
... | true |
fa35cd882891af73624a5bf0a4ae35ba0de5894e | Java | monalisa8/fencewithspark | /src/main/java/com/wrkspot/emp/fence/model/UserFence2.java | UTF-8 | 3,142 | 1.78125 | 2 | [] | no_license | package com.wrkspot.emp.fence.model;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import java.util.Date;
@Entity
public class UserFence2 {
public String get_id() {
return _id;
}
public void set_id(String _id) {
this._id = _id;
}
publ... | true |
a3c1b3797fd9469d93ddce10864922bd60bf958b | Java | YohooShop/back-end | /mall-admin/src/main/java/com/yoooho/mall/service/impl/SmsShopConfigServiceImpl.java | UTF-8 | 1,444 | 2.140625 | 2 | [] | no_license | package com.yoooho.mall.service.impl;
import com.yoooho.mall.mapper.SmsShopConfigMapper;
import com.yoooho.mall.model.SmsShopConfig;
import com.yoooho.mall.model.SmsShopConfigExample;
import com.yoooho.mall.service.SmsShopConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
cdf9d49338e2af05244724257f7d8b4f5eb99a96 | Java | littleyang/time-machine | /time-common/src/main/java/com/vanke/common/queue/producer/MessageQueueDispatcher.java | UTF-8 | 1,269 | 2.390625 | 2 | [] | no_license | package com.vanke.common.queue.producer;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import... | true |
b7a1ff6e36e5641bb0447e1031b0cd34f71461ab | Java | lonlylocly/lonlylocly.github.io | /code/tree/BinarySearchTree.java | UTF-8 | 5,341 | 3.328125 | 3 | [
"MIT"
] | permissive | package tree;
public class BinarySearchTree<K extends Comparable,V> {
Item<K,V> root = null;
int size = 0;
/**
* O(lg n) average, because traverses all tree height
* O(n) worst case, if tree is list
*/
public void insert(K k, V v) {
if (k == null) {
throw new ... | true |
2958aaab9f7717b1655cf8ae9303684061ff2f8f | Java | chensongxian/java_ee | /src/main/java/com/csx/jdbc/DMLTest.java | UTF-8 | 3,069 | 3.0625 | 3 | [] | no_license | package com.csx.jdbc;
import org.junit.Test;
import java.sql.Connection;
import java.sql.Statement;
/**
* @author csx
* @Package com.csx.jdbc
* @Description: TODO
* @date 2019/1/4 0004
*/
public class DMLTest {
/**
* jdbc协议:数据库子协议:主机:端口/连接的数据库
*/
private static final String URL = "jdbc:mysql:/... | true |
6a28cd7788123bffc5f5f36eb6189942cd1b6ffe | Java | onap/aai-sparky-be | /sparkybe-onap-service/src/test/java/org/onap/aai/sparky/dal/elasticsearch/entity/ElasticSearchAggregation.java | UTF-8 | 2,241 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /**
* ============LICENSE_START===================================================
* SPARKY (AAI UI service)
* ============================================================================
* Copyright © 2017 AT&T Intellectual Property.
* Copyright © 2017 Amdocs
* All rights reserved.
* ===========================... | true |
0b67384164af5469c3cc2342c29b9161b835618b | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/14370985.java | UTF-8 | 735 | 2.953125 | 3 | [] | no_license |
class c14370985 {
public static String encrypt(String password) {
String sign = password;
try {
java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
md.update(sign.getBytes());
byte[] hash = md.digest();
StringBuffer hex... | true |
b4151f6c86f5d3b7e7a280005aedbfac30b359ae | Java | jacoparker/Algorithms | /Daily Coding Problem/Problem33.java | UTF-8 | 1,804 | 4.25 | 4 | [] | no_license | // Good morning! Here's your coding interview problem for today.
// This problem was asked by Microsoft.
// Compute the running median of a sequence of numbers. That is, given a stream of numbers, print out the median of the list so far on each new element.
// Recall that the median of an even-numbered list is the aver... | true |
ae933a26b5b19f6a6ec7f872a4af1932fef59f14 | Java | mayifuGitHub/ss | /src/main/java/myf/service/impl/UserServiceImpl.java | UTF-8 | 846 | 2.09375 | 2 | [] | no_license | package myf.service.impl;
import java.lang.annotation.Retention;
import java.util.List;
import myf.bean.User;
import myf.mapper.UserMapper;
import myf.service.UserService;
public class UserServiceImpl implements UserService{
private UserMapper userMapper;
public void setUserMapper(UserMapper use... | true |
3ff512fd5f5200dc232bc36f3347e2288bc97155 | Java | marschall/threeten-jpa | /threeten-jpa-oracle-impl/src/main/java/com/github/marschall/threeten/jpa/oracle/impl/TimestamptzConverter.java | UTF-8 | 7,956 | 2.375 | 2 | [
"MIT"
] | permissive | package com.github.marschall.threeten.jpa.oracle.impl;
import static java.lang.Byte.toUnsignedInt;
import static java.time.ZoneOffset.UTC;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import oracle.sql.TIMESTAMP... | true |
1bfacc1750d88e89f451aaee2e6d779c7cb3ffab | Java | lancal/codenvy | /core/codenvy-hosted-sso-client/src/main/java/com/codenvy/auth/sso/client/EnvironmentContextResolver.java | UTF-8 | 1,190 | 1.84375 | 2 | [] | no_license | /*
* [2012] - [2016] Codenvy, S.A.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Codenvy S.A. and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Codenvy S.A.
* and its suppliers and may be covered... | true |
cddf8c2caf45629a1fa8f90581922a37d007bf7a | Java | johannesweber/Techniken-der-Programmentwicklung-WS1314 | /TPE_freiwilligeUebungen/generischeTypen/aufgabeAff/PairList.java | UTF-8 | 507 | 3.09375 | 3 | [] | no_license | package aufgabeAff;
import java.util.LinkedList;
/**
* Created by Johannes on 01.01.14.
*/
public class PairList <Pair> extends LinkedList<Pair>{
private int max;
public PairList(int max){
this.max = max;
}
public void add(int index, Pair objekt){
if(index < this.max){
... | true |
563ce80e42fefafb305d81b34f34780bea4ccac9 | Java | zhansong/myCodeing | /TestDemo/src/com/nio/SelectorDemo.java | UTF-8 | 2,078 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | package com.nio;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util.Set;
... | true |
e86a79851f75a9e5cb9f01621e45bc2c5f4fae00 | Java | mbeider/fizteh-java-2014 | /src/ru/fizteh/fivt/students/VasilevKirill/proxy/tests/TestingInterface.java | UTF-8 | 531 | 2.53125 | 3 | [] | no_license | package ru.fizteh.fivt.students.VasilevKirill.proxy.tests;
import java.io.IOException;
import java.util.List;
/**
* Created by Kirill on 30.11.2014.
*/
public interface TestingInterface {
void noArgumentsMethod();
void oneArgumentMethod(String a);
void twoArgumentMethod(Integer a, Integer b);
void l... | true |
89e20d7d8b62bf5431d33e3422786d325fa84817 | Java | dorianverna17/AutoManagement | /src/Employees/Employee.java | UTF-8 | 7,668 | 3.109375 | 3 | [] | no_license | package Employees;
import Cars.Bus;
import Cars.Car;
import Cars.Truck;
import Cars.Vehicle;
import app.AutoService;
import java.util.ArrayList;
import java.util.Calendar;
// Voi considera ca orice angajat se poate ocupa de masini
// (fie el asistent, mecanic sau director - avand in vedere ca
// se precizeaza ca ang... | true |
16bc786b51c0da0c546e86691a64f76fcb0839d5 | Java | Mrjiangzhu/test | /src/main/java/com/ruofeng/app/framework/codegen/service/GeneratorService2.java | UTF-8 | 7,192 | 1.898438 | 2 | [] | no_license | package com.ruofeng.app.framework.codegen.service;
import com.google.common.io.Files;
import com.ruofeng.app.common.utils.StringUtils;
import com.ruofeng.app.framework.codegen.dao.GeneratorDao;
import com.ruofeng.app.framework.codegen.model.GeneratorParam;
import com.ruofeng.app.framework.codegen.model.ModelConfig;
im... | true |
1bc72ef5c33841ede6dca250fa1950aacff4e817 | Java | kishlayakunj/Stock-Manager | /app/src/main/java/com/siementory/siementory/IssueNewStockActivity.java | UTF-8 | 6,654 | 2.203125 | 2 | [] | no_license | package com.siementory.siementory;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android... | true |
b0c30f4e134b510c5c1bd9c69ea48f1008ce7f69 | Java | epinter/Partner-Center-Java | /src/main/java/com/microsoft/store/partnercenter/models/products/InventoryRestriction.java | UTF-8 | 1,324 | 2.078125 | 2 | [
"MIT"
] | permissive | // -----------------------------------------------------------------------
// <copyright file="InventoryRestriction.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com.microso... | true |
d5ca7fdb6b3d265119d67adf762c3a0b5a464f73 | Java | Charlesciezki/JavaDiceGame | /GameEnd.java | UTF-8 | 547 | 3.734375 | 4 | [] | no_license | package diceGame;
public class GameEnd {
int player1Score; //these don't need to be here just put it for a ref
int player2Score;
public void victory(int player1Score, int player2Score){
if (player1Score == 11 && player2Score == 11){
System.out.println("The game is over! It's a tie!");
System.exit... | true |
25a986e18e03122bbc6d4d182f91001d03036afe | Java | TomasCybas/Objektinis-programavimas | /src/namudarbas2/uzduotis1/uzduotis1.java | UTF-8 | 801 | 3.015625 | 3 | [] | no_license | package namudarbas2.uzduotis1;
import java.util.Scanner;
public class uzduotis1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Įveskite kraštinės a ilgį: ");
int a = sc.nextInt();
System.out.print("Įveskite kraštinės b ilgį: ");
... | true |
44cba88c6e3d2d63fc194c88e9d972a4a89a230f | Java | moo1o/JavaStudy | /SwingEx05/src/SwingEx05.java | UTF-8 | 859 | 3.109375 | 3 | [] | no_license | import java.awt.*;
import javax.swing.*;
public class SwingEx05 extends JFrame{
SwingEx05(){
setTitle("4x4 Color Frame");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GridLayout grid = new GridLayout(4, 4);
setLayout(grid);
Color[] colorset = {Color.RED, new Color(255, 187, 0), Color.YELLOW, Color.GRE... | true |
3425a0acec1b45ac1713c40945a302684f1c61a7 | Java | tigerfintech/openapi-java-sdk | /src/main/java/com/tigerbrokers/stock/openapi/client/https/domain/quote/item/DepthEntry.java | UTF-8 | 900 | 2.34375 | 2 | [] | no_license | package com.tigerbrokers.stock.openapi.client.https.domain.quote.item;
import java.io.Serializable;
/**
* 作者:ltc
* 时间:2019/08/13
*/
public class DepthEntry implements Serializable {
/**
* 价格
*/
private Double price;
/**
* 订单数量
*/
private Integer count;
/**
* 股数
*/
private Integer v... | true |
1f0e090799dfb4865f9f09d5c1ce8c1830a51776 | Java | HerperPlain/hpcloud-parent | /hpcloud-crm/hpcloud-crm-controller/src/main/java/com/hpsgts/hpcloud/crm/UserController.java | UTF-8 | 792 | 1.882813 | 2 | [] | no_license | package com.hpsgts.hpcloud.crm;
import com.hpsgts.hpcloud.common.controller.BaseController;
import com.hpsgts.hpcloud.crm.services.base.BaseService;
import com.hpsgts.hpcloud.model.crm.entity.SysUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Re... | true |
aa473f2b98e6bf78b0b300f92dfefd1b439094bf | Java | SAIKRISHNADRS/knowevo | /java/knowevo/src/knowevo/springbox/gephibox/GephiDBBuilder.java | UTF-8 | 4,654 | 1.875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package knowevo.springbox.gephibox;
import java.awt.Color;
import java.io.*;
import java.sql.*;
import java.util.*;
import knowevo.springbox.DBBuilder;
import knowevo.springbox.ScoreMachine;
import org.gephi.data.attrib... | true |
fd660cb9569c775d70be118379ed5322816c42f3 | Java | Lulucy1587/java | /SubComplex.java | UTF-8 | 174 | 2.5 | 2 | [] | no_license |
public class SubComplex{
float p,q;
SubComplex(float a,float b,float c,float d) {
p=a-c;
q=b-d;
}
float sub2() {
return p;
}
float sub3() {
return q;
}
}
| true |
154718bc7222e1c8f9d02c8774a4c499a3b8e801 | Java | florianmorath/Advanced-Systems-Lab | /test/ch/ethz/asl/RequestUnitTest.java | UTF-8 | 1,769 | 2.5 | 2 | [] | no_license | package ch.ethz.asl;
import org.junit.jupiter.api.Test;
import java.nio.ByteBuffer;
import static org.junit.jupiter.api.Assertions.*;
class RequestUnitTest {
@Test
void endOfLineExists() {
ByteBuffer b1 = ByteBuffer.allocate(100);
b1.put("get key1 key2\r\n".getBytes());
ByteBuffer... | true |
a0d404d196ccc4d29306a521009588f7b073cb36 | Java | j-walk3r/Projeto-Risk-Zones-Mobile | /app/src/main/java/br/com/riskzones/controller/Usuario.java | UTF-8 | 1,739 | 1.953125 | 2 | [] | no_license | package br.com.riskzones.controller;
/**
* Created by Jhones on 22/05/2016.
*/
public class Usuario {
private int cod;
private String nome;
private String email;
private String sexo;
private String raca;
private String datNascimento;
private String senha;
private String ativo;
pr... | true |
a18c9bc8505252c1ef418a825cee367ea88fdf12 | Java | chetan253/code-ground | /leetcode/SumofLeftLeaves.java | UTF-8 | 380 | 2.703125 | 3 | [] | no_license | iclass Solution {
public int sumOfLeftLeaves(TreeNode root) {
return dfs(root, -1);
}
public int dfs(TreeNode node, int dir) {
if(node == null){
return 0;
}
if(dir == 0 && node.left == null && node.right == null){
return node.val;
}
... | true |
2f0e48145a628c8b2a8c68f5478915d59f642b15 | Java | ljervis/Flashback_Music_Application | /app/src/androidTest/java/com/example/ajcin/flashbackmusicteam16/SongListSorterTest.java | UTF-8 | 2,608 | 2.8125 | 3 | [] | no_license | package com.example.ajcin.flashbackmusicteam16;
import org.junit.Before;
import org.junit.Test;
import java.time.LocalDateTime;
import java.util.ArrayList;
import static org.junit.Assert.*;
/**
* Created by sqin8 on 3/10/2018.
*/
public class SongListSorterTest {
ArrayList<Song> songs;
Song song1;
Son... | true |
7365b5685164fc24c49e1621475e138283f8c4fd | Java | sahiljamwal/CruxOnline-CB-HB | /Recursion/PrintPermutation.java | UTF-8 | 783 | 4.0625 | 4 | [] | no_license | package Recursion;
import java.util.Scanner;
/**
* Given a String your task is to print all permutations of string using
* recursion
*
* @author sahil
*
*/
public class PrintPermutation {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String str = s.next();
printPermutaion... | true |
9b7d23dfb2612678f974f5cbd15a3e6956fb998b | Java | bame1506/rootbeer1 | /src/org/trifort/rootbeer/generate/opencl/tweaks/ParallelCompileJob.java | UTF-8 | 3,609 | 1.960938 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2012 Phil Pratt-Szeliga and other contributors
* http://chirrup.org/
*
* See the file LICENSE for copying permission.
*/
package org.trifort.rootbeer.generate.opencl.tweaks;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
impo... | true |
e31086e10ae57db432c53c3f9e4d36e17c145cff | Java | namratabary/BMI-Calculator-App | /app/src/main/java/com/example/p/ViewActivity.java | UTF-8 | 894 | 1.78125 | 2 | [] | no_license | package com.example.p;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
public class ViewActivity extends AppCompatActivity {
ListView lvdata;
Button btnViewBack;
... | true |
910554fa9af3cf24dd8bc4a550253598e00bdfe5 | Java | arnabjyotiboruah/Dithok_Project | /src/main/java/com/dithok/myCommerce/dto/UserAddressDto.java | UTF-8 | 2,291 | 2.421875 | 2 | [] | no_license | package com.dithok.myCommerce.dto;
public class UserAddressDto{
private String house_number;
private String street;
private String city;
private String state;
private String country;
private String zip_code;
private String latitude;
private String longitude;
private String email;
... | true |
197fc24597a99163a318fc3e8a222ec4e1da4372 | Java | playframework/netty-reactive-streams | /netty-reactive-streams-http/src/main/java/com/typesafe/netty/http/StreamedHttpResponse.java | UTF-8 | 400 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.typesafe.netty.http;
import io.netty.handler.codec.http.HttpResponse;
/**
* Combines {@link HttpResponse} and {@link StreamedHttpMessage} into one
* message. So it represents an http response with a stream of
* {@link io.netty.handler.codec.http.HttpContent} messages that can be subscribed to.
*/
publ... | true |
505d9dadbf0ca99d9f1a70f4a88ff2dd986a46f5 | Java | zetlas1610/MKCore | /src/main/java/com/chaosbuffalo/mkcore/core/talents/PassiveTalent.java | UTF-8 | 778 | 2.5625 | 3 | [] | no_license | package com.chaosbuffalo.mkcore.core.talents;
import com.chaosbuffalo.mkcore.abilities.PassiveTalentAbility;
import net.minecraft.util.ResourceLocation;
public class PassiveTalent extends BaseTalent implements IAbilityTalent<PassiveTalentAbility> {
private final PassiveTalentAbility ability;
public PassiveTa... | true |
5b4f7e8fa14e8af1baf19c89ca697df3340fd887 | Java | GTZL1/TB-server | /app/database/player/Player.java | UTF-8 | 1,109 | 2.609375 | 3 | [
"CC0-1.0"
] | permissive | package database.player;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "player")
public class Player {
@Id
@GeneratedValue(strate... | true |
0ec1fc7f5b73c72a927a5e08c9ec232927061b34 | Java | mmccmaxmarcus/javaAgespisa | /src/main/java/br/com/agespisa/entidade/Poco.java | UTF-8 | 1,475 | 2.375 | 2 | [] | no_license | package br.com.agespisa.entidade;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@SuppressWarnings("serial")
@Entity
public class Poco extends GenericEntidade {
@Column(nullable = true, length = 100)
private String endereco... | true |
3519eb70a23e9502e92a4231ee10b9d3120129a7 | Java | daijiejay/daijie | /daijie-jdbc/src/main/java/org/daijie/jdbc/mybatis/example/ExampleBuilder.java | UTF-8 | 6,856 | 2.59375 | 3 | [] | no_license | package org.daijie.jdbc.mybatis.example;
import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.entity.Example.Criteria;
public abstract class ExampleBuilder {
private static ThreadLocal<Example> threadExample = new ThreadLocal<Example>();
public static Builder create(Class<?> className) {
... | true |
51626470891ef7f52847a910c5156cec29f534ac | Java | shashikanthsb/enggproject | /pgr/pgr-master/src/main/java/org/egov/pgr/repository/EscalationTimeTypeRepository.java | UTF-8 | 5,335 | 1.554688 | 2 | [] | no_license | /*
* eGov suite of products aim to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) <2015> eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* is availa... | true |
062ccd4b01785537b10fe25b7fc6dac58bfc17bb | Java | freekeeper9966/wctf | /src/main/java/cn/gin/wctf/common/util/JedisUtils.java | UTF-8 | 21,043 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package cn.gin.wctf.common.util;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import redis.clients.jedis.Jedis;
import ... | true |
7f4cf4ea4244b36f857f3d8b5d2b3ac5dd0c0e14 | Java | AlanFoster/Java-Game-Engine | /gameEngine/entitysystem/systems/DeleteSystem.java | UTF-8 | 1,665 | 3.015625 | 3 | [] | no_license | package entitysystem.systems;
import java.util.List;
import entitysystem.core.Entity;
import entitysystem.core.EntityManager;
import entitysystem.core.ProcessEntitySystem;
import entitysystems.components.Children;
import entitysystems.components.DeleteComponent;
/**
* Deletes all entities which have the {@link Dele... | true |
26ada8b65407e56f098c7bbdd7061d5a32b33727 | Java | DzaNemo/QuizApp | /app/src/main/java/link/quizassgn/PlayQuizActivity.java | UTF-8 | 3,591 | 2.3125 | 2 | [] | no_license | package link.quizassgn;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.... | true |
b04ab18754a5bab728e40a6b2a8304e92c2f9e23 | Java | Syntea/xdef | /xdef-buildtools/src/main/java/buildtools/Canonize.java | UTF-8 | 6,305 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package buildtools;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import java.nio.charset.Charset;
import java.util.Date;
/** Canoni... | true |
1df22ae63bc9748a5c2a10a94cd0ef1339a52b90 | Java | gruelbox/transaction-outbox | /transactionoutbox-spring/src/test/java/com/gruelbox/transactionoutbox/acceptance/Utils.java | UTF-8 | 953 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.gruelbox.transactionoutbox.acceptance;
import com.gruelbox.transactionoutbox.ThrowingRunnable;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class Utils {
private static final Logger LOGGER = LoggerFactory.getLogger(Utils.class);
@SuppressWarnings({"SameParameterV... | true |
f3b6e741c65fc874ea6c4af75198ec2b0f3ab6a3 | Java | gimeneko01/prueba | /Petagramaejercicios/Petagramejercicios-master/app/src/main/java/fragment/IRecylclerViewFragmentView.java | UTF-8 | 378 | 1.671875 | 2 | [] | no_license | package fragment;
import java.util.ArrayList;
import adapter.MascotaAdaptador;
import freezone.ec.petagram.Mascota;
public interface IRecylclerViewFragmentView {
public void generarLinearLayoutVertical();
public MascotaAdaptador crearAdaptador(ArrayList<Mascota> mascotas);
public void ini... | true |
44a26c0657c542a582239430b8edc2ec180b33f2 | Java | Telokin/projektowanie-serwisow-www-furman-175ic | /projekt_strony_internetowej1/src/main/java/pl/furmanj/oiw/service/NoteRepo.java | UTF-8 | 964 | 1.960938 | 2 | [] | no_license | package pl.furmanj.oiw.service;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import ... | true |
1f240fa8b341d4c6d5eaa0740b836bd356187f7d | Java | ewingcode/education | /src/com/web/service/OrderRoleService.java | UTF-8 | 1,227 | 2.1875 | 2 | [] | no_license | package com.web.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.core.jdbc.BaseDao;
import com.core.jdbc.DaoException;
import com.web.exception.OrderException;
import com.web.model.OrderRole;
/**
*
* 签单角色负责人配置服務
*
*/
@Repository("o... | true |
63855e3dc0e74b140ec07eadfa53a57654a2706b | Java | projetomyevents/MyEventsApi | /src/main/java/br/com/myevents/model/dto/CityDTO.java | UTF-8 | 586 | 2.09375 | 2 | [] | no_license | package br.com.myevents.model.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* Representa um contrato de uma cidade.
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CityDTO implements Serializable {
private static final... | true |
c946fbf4b42ebbe2aff5f97728d1fc1dcb866815 | Java | fasseg/elasticstore | /elasticstore-server/src/main/java/org/elasticstore/server/config/ElasticstoreConfiguration.java | UTF-8 | 1,984 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Frank Asseg
*
* 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 writin... | true |
7950948557560b183e790dcd7ebe92f1834d9055 | Java | jjmnbv/shop | /shop-service/src/main/java/com/rt/shop/service/impl/EvaluateServiceImpl.java | UTF-8 | 449 | 1.523438 | 2 | [] | no_license | package com.rt.shop.service.impl;
import org.springframework.stereotype.Service;
import com.rt.shop.entity.Evaluate;
import com.rt.shop.mapper.EvaluateMapper;
import com.rt.shop.service.IEvaluateService;
import com.rt.shop.service.impl.support.BaseServiceImpl;
/**
*
* Evaluate 表数据服务层接口实现类
*
*/
@Service
public cl... | true |
9dc10700266b9da0b766c85edb5dc23976a2aa87 | Java | deltaena/MadGuidesApp | /app/src/main/java/com/example/madguidesapp/android/customViews/IconButton.java | UTF-8 | 1,941 | 2.296875 | 2 | [] | no_license | package com.example.madguidesapp.android.customViews;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.util.AttributeSet;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.exa... | true |
db49af0d0913e84fdfbc45b140b846eab208195a | Java | leetompkins/Week7_CST100_Java_Exercises_Lee_Tompkins | /ReplaceWords.java | UTF-8 | 1,912 | 3.75 | 4 | [] | no_license |
/* Program: ReplaceWords
* File: ReplaceWords.java
* Summary: Exercise 12.27, A program that goes looks at all exercise files in a directory and pads the numbers with a 0 if the number is single digit
* For example, file: Exercise2_9 would become Exercise02_09
* Author: Lee Tompkins
* Date: Augu... | true |
32ac0cc0d09958bde7683464a61ed8fdc9731f86 | Java | Jackbin910/springDemo | /springDemo/src/main/java/com/yangbin1/spring/bean/annotation/controller/UserController.java | UTF-8 | 874 | 2.234375 | 2 | [] | no_license | /**
* @Title: UserController.java
* @Package com.yangbin1.spring.bean.annotation.controller
* @Description: TODO(用一句话描述该文件做什么)
* @author: yangbin1
* @date: Sep 22, 2018 10:57:28 PM
*/
package com.yangbin1.spring.bean.annotation.controller;
import org.springframework.beans.factory.annotation.A... | true |
918aa55ce5dd08feacef761d4bfc048626b25574 | Java | StephenImp/BigDataDemo | /hbase/src/main/java/com/cn/mapreduce/mr1/WriteFruitMRReducer.java | UTF-8 | 967 | 2.609375 | 3 | [] | no_license | package com.cn.mapreduce.mr1;
import java.io.IOException;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.hbase.mapreduce.TableReducer;
import org.apache.hadoop.io.NullWritable;
/**
* Created by MOZi on 2019/4/9.
*
* 用于将读取到的fruit表中的数据写入到... | true |
73b7667e402d9554f444259da1217d63b8faf1be | Java | EdsionGeng/knowledge | /src/main/java/com/wsd/knowledge/entity/FileDetail.java | UTF-8 | 8,306 | 2.171875 | 2 | [] | no_license | package com.wsd.knowledge.entity;
import java.util.Comparator;
/**
* @Author EdsionGeng
* @Description 文件具体信息实体类
* @Date:10:56 2017/11/1
*/
//@Entity
public class FileDetail implements Comparable<FileDetail> {
// @Id
//@GeneratedValue
private int id;
// @Column(name = "departmentName", nullable ... | true |
6c730ee5fdb015fa2d7cd601d839e3e8ee93dee9 | Java | kandaozai/java_ssm_new | /RebateMall_SSM/src/com/zgx/web/PersonalController.java | UTF-8 | 9,195 | 1.960938 | 2 | [] | no_license | package com.zgx.web;
import java.io.IOException;
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servl... | true |
47f907b9014886822e7a8257b26972f188dd37b8 | Java | percussion/percussioncms | /modules/perc-toolkit/src/main/java/com/percussion/pso/restservice/model/FolderInfo.java | UTF-8 | 1,771 | 1.773438 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, Inc.
*
* 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 applicabl... | true |
f805d667796e82fdfa07503f69e4ddd428cfee22 | Java | Yuta2049/EPAM-Final-project-OnlineStore | /src/main/java/com/epam/training/onlineStore/dto/impl/ProductDAOImpl.java | UTF-8 | 1,905 | 2.359375 | 2 | [] | no_license | package com.epam.training.onlineStore.dto.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.epam.training.onlineStore.dto.ProductDAO;
import com.epam.training.onli... | true |
3956358bbca97268202b61ce3d787fde68f587de | Java | D1987/CutUrl | /src/main/java/classes/DBConnect.java | UTF-8 | 912 | 2.78125 | 3 | [] | no_license | package classes;
import java.sql.*;
import java.util.ResourceBundle;
/*class dlya soedinenniya s bd*/
public class DBConnect
{
synchronized public Connection getConnection() throws SQLException {
ResourceBundle resource = ResourceBundle.getBundle("database");
String host = resource.getString("HOST... | true |
b24559819fef72d9d5ae00280d079b54a280045e | Java | sridharanselvaraj/JavaOnly | /DataDrivenFramework/src/test/java/com/sri/listeners/CustomListeners.java | UTF-8 | 2,040 | 2.015625 | 2 | [] | no_license | package com.sri.listeners;
import com.relevantcodes.extentreports.LogStatus;
import com.sri.base.TestBase;
import com.sri.utils.TestUtil;
import org.testng.*;
import java.io.IOException;
public class CustomListeners extends TestBase implements ITestListener {
@Override
public void onTestStart(ITestResult iT... | true |
dc60fbd6d7094256b0db7d93492d858d80296f82 | Java | jackbwaite/Jack-s-Projects | /Music/test/TransposeTester.java | UTF-8 | 1,615 | 2.90625 | 3 | [] | no_license | import org.junit.Test;
import org.junit.jupiter.api.Assertions;
public class TransposeTester {
@Test
public void testNote() {
Note.setNumHalfSteps(3);
Note note = new Note("a");
note.transpose();
Assertions.assertEquals(note.getNote(), "c");
}
@Test
public void tes... | true |
c155fb13caf8624e4fe4854a619ecab3b754922f | Java | Relucent/yyl_leetcode | /src/main/java/yyl/leetcode/bean/TreeNode.java | UTF-8 | 5,810 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | package yyl.leetcode.bean;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Queue;
import java.util.function.Consumer;
/**
* Definition for a binary tree node.
*/
public class TreeNode {
public int val;
public TreeNode left;
public TreeNode right;
public TreeNo... | true |
197f31bbbd18a2bc0d04bebc4aa221fd92bdfdd6 | Java | tvtu2105/Mobile_Android_Travel_Assistant | /Source/TravelAsisstant/app/src/main/java/com/ygaps/travelapp/Component/LogInClient.java | UTF-8 | 278 | 1.96875 | 2 | [] | no_license | package com.ygaps.travelapp.Component;
public class LogInClient
{
private String emailPhone;
private String password;
public LogInClient(String emailPhone, String password)
{
this.emailPhone = emailPhone;
this.password = password;
}
}
| true |
e887ac784d1f00db8da48ec2cbfc3e440e33710d | Java | mertdumanli/Java-Spring-MVC-Rest-Company-All-Project | /src/main/java/com/works/repositories/_jpa/LikeRepository.java | UTF-8 | 1,359 | 1.875 | 2 | [] | no_license | package com.works.repositories._jpa;
import com.works.entities.LikeManagement;
import com.works.entities.projections.LikeInfo;
import com.works.entities.projections.LikeInfoAccordingToCustomer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import or... | true |
eaff41bea6a36b40c977d98b09a55e399b4eabb5 | Java | yiweijian/collaboration-markdown-editor | /src/main/java/Preview.java | UTF-8 | 1,104 | 2.296875 | 2 | [] | no_license | import com.vladsch.flexmark.Extension;
import com.vladsch.flexmark.ast.Node;
import com.vladsch.flexmark.ext.tables.TablesExtension;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.parser.ParserEmulationProfile;
import com.vladsch.flexmark.util.optio... | true |
ca27c91d80abbc4986e37291abf3e8211e4602eb | Java | cristian-ruiz-s-ing/Lab08CVDS | /src/main/java/edu/eci/cvds/test/ServiciosAlquilerTest.java | UTF-8 | 6,039 | 2.4375 | 2 | [] | no_license | package edu.eci.cvds.test;
import static org.junit.Assert.assertEquals;
import java.util.List;
import java.sql.Date;
import com.google.inject.Inject;
import edu.eci.cvds.samples.entities.Cliente;
import edu.eci.cvds.samples.entities.Item;
import edu.eci.cvds.samples.entities.TipoItem;
import edu.eci.cvds.samples.serv... | true |
9123c614c348190a0e8825b55f7b7f84c0ea66df | Java | nguyenxuankiet262/PhucLongWebserviceServer | /app/src/main/java/com/dhkhtn/xk/phuclongserverappver2/Adapter/UserAdapter.java | UTF-8 | 4,069 | 2.234375 | 2 | [] | no_license | package com.dhkhtn.xk.phuclongserverappver2.Adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGr... | true |
21973e65cf588c798bf3613f2857929d0532f73a | Java | bppan/spider | /src/main/java/studio/geek/shixiseng/ShixisengHttpClient.java | UTF-8 | 7,287 | 2.234375 | 2 | [] | no_license | package studio.geek.shixiseng;
import org.apache.log4j.Logger;
import studio.geek.core.AbstractHttpClient;
import studio.geek.core.SimpleThreadPoolExecutor;
import studio.geek.core.ThreadPoolMonitor;
import studio.geek.shixiseng.task.JobDetailListPageTask;
import studio.geek.shixiseng.task.JobDetailPageTask;
import st... | true |
c3831c1f3f71a4931b36fb51018f8044cae91c8b | Java | sikomo/test | /src/test/O1C.java | UTF-8 | 657 | 3.078125 | 3 | [] | no_license | package test;
public class O1C {
private int unAttribut;
private int unAutreAttribut;
private O2C lienO2;
private O3C lienO3;
public O1C(O3C lienO3) {
lienO2 = new O2C(); /* un lien de composition est créé */
this.lienO3 = lienO3; /* un lien d’agrégation est créé */
}
public void jeTravaillePourO1() {
l... | true |
50e6e77472cddb561f135a63696871007069df3d | Java | Collap/collap | /api/src/main/java/io/collap/plugin/ModuleFactory.java | UTF-8 | 2,723 | 2.59375 | 3 | [
"BSD-2-Clause"
] | permissive | package io.collap.plugin;
import io.collap.Collap;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
public class ModuleFactory extends PluginFactory {
... | true |
ebcf465595f9823ba70ac025e1eee0133d72bcdb | Java | jtransc/jtransc-examples | /stress/src/main/java/com/stress/sub0/sub3/sub5/Class1036.java | UTF-8 | 394 | 2.171875 | 2 | [] | no_license | package com.stress.sub0.sub3.sub5;
import com.jtransc.annotation.JTranscKeep;
@JTranscKeep
public class Class1036 {
public static final String static_const_1036_0 = "Hi, my num is 1036 0";
static int static_field_1036_0;
int member_1036_0;
public void method1036()
{
System.out.println(static_const_1036_0);
}
pu... | true |
85a304fe01fcb7d20b077264538c55430fa0b9f7 | Java | KoichaDev/OBJ2000B-1-18H-Objektorientert-programmering-1 | /06 - Lineære datastrukturer/UnionArrayList/src/exercise_11_14/UnionArrayList.java | UTF-8 | 1,306 | 3.765625 | 4 | [] | no_license | package exercise_11_14;
import java.util.*;
public class UnionArrayList {
public static void main(String[] args) {
ArrayList <Integer> list = new ArrayList();
ArrayList <Integer> list2 = new ArrayList();
for(int i = 1; i <= 3; i++) {
list.add(randomNumbers(1,... | true |
250d39f40781308c98dd31ebd9a958bdd10afcdb | Java | asilah/GE | /GE/src/main/java/org/gestion/emp/models/DepartementForm.java | UTF-8 | 1,230 | 2.109375 | 2 | [] | no_license | package org.gestion.emp.models;
import org.gestion.emp.entities.Departement;
import org.gestion.emp.entities.Employe;
public class DepartementForm {
private Long codeDept;
private String nom;
private String ville;
private String description;
private Long chefDept;
private String submit;
public String get... | true |
a37b4f936d385d50dc0b936f1a447d1da474d9c5 | Java | glingo/sand-box | /src/main/java/component/resource/reference/ResourceReference.java | UTF-8 | 1,906 | 2.8125 | 3 | [] | no_license | package component.resource.reference;
import java.io.File;
import component.resource.FileSystem;
public class ResourceReference {
public static final String ANY_TYPE = "any";
public static final String STRING = "string";
public static final String FILE = "file";
public static final String MEMORY ... | true |
2c27563db3aaa5676efb1255fac567948dab71bb | Java | armaandhir/moneewise | /src/main/java/com/armaandhir/moneewise/service/ExpenseDescService.java | UTF-8 | 430 | 2.0625 | 2 | [] | no_license | package com.armaandhir.moneewise.service;
import com.armaandhir.moneewise.model.ExpenseDesc;
public interface ExpenseDescService {
/**
* Inserts the description for the given Expense
* @param inExpenseDesc
* @return
*/
public ExpenseDesc addDesc (ExpenseDesc inExpenseDesc);
/**
* Gets the description... | true |
7d1e5c0f9f9e7ac1038827625abc8e1d0c02f359 | Java | RyanTech/myali | /main/src/com/alipay/mobile/commonui/widget/APFrameLayout.java | UTF-8 | 789 | 1.648438 | 2 | [] | no_license | package com.alipay.mobile.commonui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
public class APFrameLayout extends FrameLayout
implements APViewInterface
{
public APFrameLayout(Context paramContext)
{
super(paramContext);
}
public APFrameL... | true |
f244257f2469370422d107bd39b5700e072896ac | Java | DanishRanjan/CRUX-JAVA- | /HackerBlocks/LinkedList_oddeven.java | UTF-8 | 4,833 | 3.6875 | 4 | [] | no_license | package HackerBlocks;
import java.util.Scanner;
public class LinkedList_oddeven {
private class Node {
int data;
Node next;
Node(int data, Node next) {
this.data = data;
this.next = next;
}
}
private Node head;
private Node tail;
private int size;
public LinkedList_oddeven() {
this.head = nul... | true |
c4036356a9e0cc34bdae2cba0176805832a3e608 | Java | aronnec/domainmath-ide | /Jalview 2.8/src/jalview/ws/seqfetcher/ASequenceFetcher.java | UTF-8 | 13,000 | 2.03125 | 2 | [] | no_license | /*
* Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
* Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Publ... | true |
49b11a0626deb7b7aaa83f45b9214319d4f6f22b | Java | SirLyle/ExNihiloFabrico | /src/main/java/exnihilofabrico/mixins/BottleUseMixin.java | UTF-8 | 2,197 | 2.1875 | 2 | [
"MIT"
] | permissive | package exnihilofabrico.mixins;
import exnihilofabrico.impl.BottleHarvestingImpl;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.GlassBottleItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResul... | true |
94695a1a3f9f92194375c5cd5fd4ec7c43796bd4 | Java | regulyator/otus_java_homework | /hw06-SOLID/src/main/java/ru/otus/homework/atm/exceptions/IncorrectSumOrNominalException.java | UTF-8 | 321 | 2.359375 | 2 | [] | no_license | package ru.otus.homework.atm.exceptions;
public class IncorrectSumOrNominalException extends RuntimeException {
public IncorrectSumOrNominalException(String message) {
super(message);
}
public IncorrectSumOrNominalException(String message, Throwable cause) {
super(message, cause);
}
}... | true |
8c73e86c7b3a1a9662a29a185fc58411ac8ba957 | Java | roy2015/daily_experiment | /daily_experiment_core/src/main/java/com/guo/roy/research/leetcode/stage1/stage10/TestSolutionInterview1704.java | UTF-8 | 1,318 | 3.625 | 4 | [] | no_license | package com.guo.roy.research.leetcode.stage1.stage10;
import org.slf4j.LoggerFactory;
/**
* @author guojun
* @date 2020/8/8
*
*
* 面试题 17.04. 消失的数字
* 数组nums包含从0到n的所有整数,但其中缺了一个。请编写代码找出那个缺失的整数。你有办法在O(n)时间内完成吗?
*
* 注意:本题相对书上原题稍作改动
*
* 示例 1:
*
* 输入:[3,0,1]
* 输出:2
*
*
* 示例 2:
*
* 输入:[9,6,4,2,3,5,7,0,1]
*... | true |
5417daa4bc1563dec23e1081472a37bed07b25ff | Java | Kestrong/rocketmq | /rocketmq-spring-boot-starter/src/test/java/com/xjbg/rocketmq/Application.java | UTF-8 | 393 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package com.xjbg.rocketmq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author kesc
* @since 2019/4/5
*/
@SpringBootApplication(scanBasePackages = "com.xjbg.rocketmq")
public class Application {
public static void main(String[] ... | true |
32ca8dad230ffd60e909bacce92a6561c56e994f | Java | SharaC/BibliotecaJDBC | /NetBeansProjects/BibliotecaFinal/BibliotecaFinal/src/biblioteca/Prestamo.java | UTF-8 | 8,424 | 3.109375 | 3 | [] | no_license |
package biblioteca;
import java.util.Arrays;
import java.util.Scanner;
import biblioteca.Informacion;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Prestamo extends Informacion {
Informacion... | true |
2ff6bfeead8fdf076ed6f59e8c9d2e8e806fce65 | Java | noobchen/ADS-Controller | /src/main/java/com/ads/cm/strategy/area/SmspStrategy.java | UTF-8 | 1,354 | 2.1875 | 2 | [] | no_license | package com.ads.cm.strategy.area;
import com.ads.cm.repository.area.areaBean.Area;
import com.ads.cm.util.phone.PhoneUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Author: cyc
* Date: 12-3-22
* Time: 上午10:41
* Description: to write something
*/... | true |
4fd6b9f457cb11d22c341151131f1e89d1adaf88 | Java | gaopu/PersonalBlog | /src/main/java/com/blog/service/ArticleServiceImpl.java | UTF-8 | 4,989 | 2.3125 | 2 | [] | no_license | package com.blog.service;
import com.blog.mapper.ArticleCategoryMapper;
import com.blog.mapper.ArticleMapper;
import com.blog.mapper.CommentMapper;
import com.blog.po.Article;
import com.blog.po.Comment;
import com.blog.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
5a1060e504dcb76eb0f452e7c417b2dbb833e592 | Java | jungting20/data-structure | /listStack/listStack.java | UTF-8 | 1,840 | 3.640625 | 4 | [] | no_license | package listStack;
public class listStack {
node head;
node top;
public listStack(){
head = new node();
top = head;
}
public boolean isEmpty(){
if(this.head.getNext() == null){
return true;
}
else
return false;
}
public void push(int data){
node newNode = new node(dat... | true |
299810b8bbfe039f20287f21ad674c6d1aff083d | Java | enioka-Haute-Couture/jqm | /jqm-all/jqm-model/src/main/java/com/enioka/jqm/jdbc/DbImplMySql.java | UTF-8 | 6,507 | 2.328125 | 2 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | package com.enioka.jqm.jdbc;
import java.io.Console;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Propertie... | true |
6c7f393a3312b370b33aa2a6fc6c439578754531 | Java | IOIIIO/DisneyPlusSource | /sources/com/bamtech/sdk4/useractivity/internal/UserActivityComponent.java | UTF-8 | 1,708 | 1.632813 | 2 | [] | no_license | package com.bamtech.sdk4.useractivity.internal;
import com.bamtech.sdk4.plugin.PluginRegistry;
import com.bamtech.sdk4.useractivity.UserActivityPlugin;
import kotlin.Metadata;
@Metadata(mo31005bv = {1, 0, 3}, mo31006d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u000... | true |
41bbfecc59bf6d81321347059da4fd6441b9d97c | Java | eliaidam/zang-java | /src/main/java/com/zang/api/domain/enums/CarrierLookupStatus.java | UTF-8 | 698 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.zang.api.domain.enums;
import java.util.HashMap;
import java.util.Map;
import org.codehaus.jackson.annotate.JsonCreator;
import com.zang.api.domain.enums.util.EnumUtil;
public enum CarrierLookupStatus {
DELIVRD, UNDELIV, UNKNOWN, REJECTED;
private static Map<CarrierLookupStatus, String> map;
stat... | true |