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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
298d3cdd5af5f59d29456e4807d6a5d2f39fb9e8 | Java | mattCPSC304/mattCPSC304 | /src/matt/ui/UIWindow.java | UTF-8 | 2,780 | 2.53125 | 3 | [] | no_license | package matt.ui;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
//main tutorial used: previous, plus:
// for the useful/horrifying gridbag layouts: http://docs.oracle.com/javase/tutorial/uiswing/layout/gridbag.html
@S... | true |
d4f77a338fbc4bc3ce0acb983d225d004bd11e6e | Java | wangxp1988/kuaidi | /renren-admin/src/main/java/io/renren/common/utils/UploadAndExcelUtil.java | UTF-8 | 1,361 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package io.renren.common.utils;
import java.io.File;
import java.io.IOException;
import java.util.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.multipart.MultipartFile;
/**
* excle文件上传工具上传后返回路径
* @author Administrator
*
*/
public class UploadAndExce... | true |
2b04856456042fcef11cdf2e248f1e8c3e648dcc | Java | asaelr/TastyIdea | /app/src/main/java/com/example/asaelr/tastyidea/RecipesSearcher.java | UTF-8 | 2,729 | 2.328125 | 2 | [] | no_license | package com.example.asaelr.tastyidea;
import android.content.res.Resources;
import android.os.AsyncTask;
import com.example.asaelr.tastyidea.RecipesSupplier;
import com.google.api.client.json.GenericJson;
import com.google.api.client.util.Key;
import java.io.IOException;
import java.io.Serializable;
import networki... | true |
13055282c3b152ae7b659366fec69912d383b2be | Java | JogiYo/Algorithm | /src/baek10000/BOJ_10773.java | UTF-8 | 711 | 3.234375 | 3 | [] | no_license | package baek10000;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Stack;
// BOJ 10773 : Zero
// using stack
public class BOJ_10773 {
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder ... | true |
a68b1dcd723bdab23684cb6cd9d6409d7e760e21 | Java | alexeyev/trends | /TrendsSuite/src/test/java/ru/compscicenter/trends/SorterExecutor.java | UTF-8 | 2,722 | 2.546875 | 3 | [] | no_license | package ru.compscicenter.trends;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.compscicenter.trends.ner.EnglishNEExtractor;
import ru.compscicenter.trends.ner.model.NamedEntity;
import ru.compscicenter.trends.ner.model.Tag;
import ru.compscicenter.trends.uti... | true |
f6b5c62cd1b85c86305daa4c1f2999e83eb5d173 | Java | KM-88/JPlayer | /common-systems/src/main/java/datasource/BaseDAO.java | UTF-8 | 1,031 | 2.296875 | 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 datasource;
import java.util.List;
/**
*
* @author kranti
*/
public class BaseDAO {
private static DataBaseInterface ... | true |
4d7d7e3fea321f6f422c2ad9a24cf6b18b368375 | Java | pixb/xc-chat | /XCAndroid/modules/XCServerLibrary/protobuf/out/com/pix/xcserverlibrary/protobuf/XCChatMsgBRO.java | UTF-8 | 5,051 | 2.109375 | 2 | [] | no_license | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: xc_protoc.proto at 63:1
package com.pix.xcserverlibrary.protobuf;
import com.squareup.wire.FieldEncoding;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoAdapter;
import com.squareup.wire.ProtoReader;
import com.squareup.w... | true |
9e4978bead8b7001378543fd4883a94f51449f47 | Java | MrcRjs/soap-client-gui | /src/wsgui/ImageUtil.java | UTF-8 | 585 | 2.75 | 3 | [
"MIT"
] | permissive | package wsgui;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
public class ImageUtil {
public Image resize(Image image, int width, int height) {
Image scaled = new Image(Display.getDefault(), width, height);
GC gc = n... | true |
d665ff41cda429e001501f8982ceedd2d27b30a5 | Java | sirinath/Terracotta | /dso/tags/2.7.0/code/base/deploy/src/com/tc/admin/sessions/SessionsProductWrapper.java | UTF-8 | 2,549 | 2.015625 | 2 | [] | no_license | /*
* All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tc.admin.sessions;
import com.tc.management.exposed.SessionsProductMBean;
import com.tc.management.opentypes.adapters.ClassCreationCount;
import java.uti... | true |
8c0935ebc67d731480f84d60bb37ea89b741f5de | Java | Amir-Khan-98/MThree | /src/Database/DatabaseRunMain.java | UTF-8 | 2,105 | 2.6875 | 3 | [] | no_license | package Database;
import java.sql.*;
import OrderManager.Order;
import Ref.Instrument;
import Ref.Ric;
public class DatabaseRunMain {
public static void main(String[] args) throws Exception {
// PREREQUISITE FOR CONNECTING TO THE DATABASE AND CONTROLLERS
DatabaseController dbc = new DatabaseCont... | true |
d654ec5084bf8858f2089aa7b8ce6d0e0cf32866 | Java | realsightAPM/westworld | /tsp/src/main/java/com/realsight/westworld/tsp/lib/util/data/VolumeData.java | UTF-8 | 2,559 | 2.6875 | 3 | [] | no_license | package com.realsight.westworld.tsp.lib.util.data;
import java.io.IOException;
import java.nio.charset.Charset;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import com.realsight.westworld.tsp.lib.csv.CsvReader;
import com.realsight.westworld.tsp... | true |
43283a83729c08ef30076df452f969ae994be373 | Java | desadipas/lucas_app | /app/src/main/java/com/tibox/lucas/network/dto/AnularDTO.java | UTF-8 | 699 | 1.882813 | 2 | [] | no_license | package com.tibox.lucas.network.dto;
/**
* Created by desa02 on 21/06/2017.
*/
public class AnularDTO {
private String cUser;
private String cComentario;
private int nIdFlujoMaestro;
public String getcUser() {
return cUser;
}
public void setcUser(String cUser) {
this.cUser ... | true |
a3537f78f9636431ef288c9f5ac8679972446b5d | Java | raviish95/SPDevelopers | /app/src/main/java/com/awizom/spdeveloper/Adapter/NotificationListAdapter.java | UTF-8 | 4,549 | 1.929688 | 2 | [] | no_license | package com.awizom.spdeveloper.Adapter;
import java.lang.reflect.Type;
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Handler;
import android.support.annotation.RequiresApi;... | true |
ff783fae5624208a4bd47804ee8297109f406690 | Java | desrogers/ascent-autos | /src/main/java/com/galvanize/autos/Automobiles.java | UTF-8 | 1,577 | 2.4375 | 2 | [] | no_license | package com.galvanize.autos;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "automobiles")
public class Automobiles {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "model_year")
... | true |
54fb9524672326a16b9c8b90b8471df6a8da3f6e | Java | minwoo/TopicSeg | /src/topicseg/Runner.java | UTF-8 | 3,873 | 2.21875 | 2 | [] | no_license | /*
* Copyright (C) 2010 Cluster of Excellence, Univ. of Saarland
* Minwoo Jeong (minwoo.j@gmail.com) is a main developer.
* This file is part of "TopicSeg" package.
* This software is provided under the terms of LGPL.
*/
package topicseg;
import jargs.gnu.CmdLineParser;
import org.apache.log4j.*;
import topics... | true |
bed89e4a11a7c2dbe332cbd275b62f732ece1aea | Java | June-Boat/samplejava | /src/Test2.java | GB18030 | 1,862 | 3.40625 | 3 | [] | no_license | import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test2 {
public static void main(String[] args){
int rowCount = 0;
Scanner sc = new Scanner(System.in);
rowCount = sc.nextInt();
int i=0;
StringBuilder sb = new StringBuilder();
... | true |
5f156ef4936c7f38a0997bafd74e986148ead8b5 | Java | PedroRomanoBarbosa/Distributed-Backup-Service | /src/sdis/DataSocket.java | UTF-8 | 1,574 | 2.84375 | 3 | [] | no_license | package sdis;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import java.util.Arrays;
public class DataSocket extends MulticastSocket {
public DataSocket(int port) throws IOException {
super(port);
}
@Deprecated
publ... | true |
75320ac1849a28f70d741298a22bceff6f4be531 | Java | androidsxy/Mandroid | /baiduweishii/src/main/java/com/zzptc/sxy/baiduweishii/Uitls/MemoryCleanTools.java | UTF-8 | 8,377 | 2.21875 | 2 | [] | no_license | package com.zzptc.sxy.baiduweishii.Uitls;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import com.zzptc.sxy.baiduweishii.R;
import com.zzptc.sxy.baiduweishii.contant.AppProcessInfo;
... | true |
80053f022ba518102362387f6347b28b0398095a | Java | feelxing/TecDemo | /JackSonDemo/src/main/java/com/feel/pojo/Persion.java | UTF-8 | 240 | 1.53125 | 2 | [] | no_license | package com.feel.pojo;
/**
* Created by MEV on 2017/3/30.
*/
public class Persion {
private String name;
private String address;
private String tel;
private int age;
private String sex;
private Company company;
}
| true |
9e943e5137f0e060cfde6378c612ef537b77a368 | Java | aorellanad/datastructure | /src/esctructura_de_datos/Shell_sort.java | UTF-8 | 799 | 3.234375 | 3 | [] | no_license |
package esctructura_de_datos;
/**
*
* @author Joel Tito
*/
public class Shell_sort {
public int[] toSort(int rNumbers[]) {
OrdenamientoShell(rNumbers);
return rNumbers;
}
public void OrdenamientoShell(int[] a) {
int salto, aux, i;
boolean cambios;
... | true |
0c62f34173f13d574a22a29b7f5783ce5ab93e54 | Java | AntonioSuarez/progexch1 | /Main.java | UTF-8 | 248 | 2.875 | 3 | [] | no_license |
public class Main {
public static void main(String[] args){
House house = new House();
Window window = new Window();
house.CreateHouse(2);
window.CreateWindow(2);
window.DisPlayWindow("Is this what it's supposed to look like?");
}
}
| true |
d78c0afd299b0042458e821858ba42ae92a65426 | Java | blissnmx/owner-code | /spring-nmx-code-2.0-aop/src/main/java/com/demo/aspect/LogAspect.java | UTF-8 | 608 | 2.625 | 3 | [] | no_license | package com.demo.aspect;/**
* @author ning_mx
* @date 19:52 2020/4/26
* @description
*/
import lombok.extern.slf4j.Slf4j;
/**
* @author ning_mx
* @date 2020/4/26
*/
@Slf4j
public class LogAspect {
//在调用一个方法之前,执行before方法
public void before(){
//这个方法中的逻辑,是由我们自己写的
log.info("Invoker Before ... | true |
4d1d5a4499cae0d29ff3d93955981bf0be8e6af6 | Java | Emonsaemon/hotel.booking | /hotelbooking/src/main/java/com/hotel/hotelbooking/dto/Token.java | UTF-8 | 476 | 2.5 | 2 | [] | no_license | package com.hotel.hotelbooking.dto;
public class Token {
String token;
String prefix;
public Token(String token) {
this.token = token;
this.prefix = "Bearer ";
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = t... | true |
8cbbeab7ea0ddebbd92074cf346cc72e017065cb | Java | yangfanfinland/UncleWooShop | /src/com/unclewoo/service/book/OrderItemService.java | UTF-8 | 331 | 1.898438 | 2 | [] | no_license | package com.unclewoo.service.book;
import com.unclewoo.bean.book.OrderItem;
import com.unclewoo.service.base.DAO1;
public interface OrderItemService extends DAO1<OrderItem>{
/**
* 更新商品购买数量
* @param itemid 订单项
* @param amount 购买数量
*/
public void updateAmount(Integer itemid, int amount);
}
| true |
33f085006d2cdeea9271622d8f8860a0e99b1705 | Java | Heifarabuval/MaReu | /app/src/main/java/com/heifara/buval/mareu2/utils/Filters.java | UTF-8 | 1,001 | 2.546875 | 3 | [] | no_license | package com.heifara.buval.mareu2.utils;
import com.heifara.buval.mareu2.model.Meet;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import static com.heifara.buval.mareu2.utils.Calendar.sameDate;
public class Filters {
/*
Return List sort by date
... | true |
aff6de18a08c949c481fe7f35fbb14bac35edb8d | Java | FelMelo/TIS-II | /src/javaapplication1/Empresa.java | UTF-8 | 3,669 | 2.75 | 3 | [] | no_license | package javaapplication1;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author rajha
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.F... | true |
c614f7700543636a003e1f46383e90a698a2a264 | Java | tassoskonst/CinemaProject-Connect-with-Database-Java- | /CinemaProject-Connect with Database(Java-PostgreSql)/DYNWEBPROJECT/src/userspackage/Admins.java | UTF-8 | 4,004 | 2.703125 | 3 | [] | no_license | package userspackage;
import java.util.Scanner;
import java.util.HashSet;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class Admins extends Users
{
public Admins() {}
public Admins(String n,Stri... | true |
733549a0ab1aa521b871116c41f5c6add371c5d4 | Java | amitrai7/DelhiTourGuide | /app/src/main/java/com/example/android/tourguide/Information.java | UTF-8 | 3,252 | 2.4375 | 2 | [] | no_license | package com.example.android.tourguide;
import android.os.Parcel;
import android.os.Parcelable;
public class Information implements Parcelable {
private String placeName;
private String nearestMetro;
private String distanceFromMetro;
private int placeImageResourceID;
private String phoneNo;
pri... | true |
75f7b5268819e9606a11152095b9fd04165f02b1 | Java | arunma/YunaktiTestProject | /firstPackage/TestClass.java | UTF-8 | 1,107 | 2.859375 | 3 | [] | no_license | package firstPackage;
import java.util.Date;
import firstPackage.subFolder.MainClass;
@TC(classUnderTest = "firstPackage.subFolder.MainClass", helperClasses = "")
public class TestClass {
private String name;
private String address;
private int number;
MainClass main;
public TestClass(){
main=new MainClas... | true |
f07200a99bf82fa9627a4b1c471e91092446d824 | Java | 2445896255/SoftwareTest | /softwareTest/test/com/unit/TestMyClass.java | UTF-8 | 3,808 | 3.1875 | 3 | [] | no_license | package com.unit;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class TestMyClass {
MyClass myClass;
@Before
public void init()
{
myClass=new MyClass();
}
/**
* int getGCD(int num1, int num2)
* 1.num1<0,n... | true |
a5e16acd3feb056f1a97be2800f41dec46f0d6c4 | Java | JorgeAlcarazKuv/EjerciciosAsignaturaProgramacion | /Tema3/Ejercicio02.java | UTF-8 | 530 | 3.390625 | 3 | [] | no_license | /*
Ejercicio 2 Tema 3
@author Jorge Alcaraz Bravo
*/
public class Ejercicio02 { //es readLine en realidad, y probando deberia ser mayus
public static void main(String[] args) {
double factorConversion = 166.386;
System.out.println("Introduce los euros a convertir: ");
double euros = Double.parseDou... | true |
c5ee7c0f434d2be1d2327512ba15b0ab361e0a64 | Java | ShiAnni/SE2 | /client/src/main/java/businesslogic/fundbl/BankAccount.java | UTF-8 | 4,035 | 2.453125 | 2 | [] | no_license | package businesslogic.fundbl;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* @author LIUXUANLIN
*/
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.ArrayList;
import busines... | true |
647cead9ec7b29aa32649a4254b32778bafda637 | Java | HubertYoung/AcFun | /acfun5_7/src/main/java/io/reactivex/internal/operators/flowable/FlowableSingleMaybe.java | UTF-8 | 2,822 | 2.265625 | 2 | [] | no_license | package io.reactivex.internal.operators.flowable;
import io.reactivex.Flowable;
import io.reactivex.FlowableSubscriber;
import io.reactivex.Maybe;
import io.reactivex.MaybeObserver;
import io.reactivex.disposables.Disposable;
import io.reactivex.internal.fuseable.FuseToFlowable;
import io.reactivex.internal.subscripti... | true |
a66118920c27494f5b488c103799e0b66cc8734d | Java | gordo0195/Text--Finder | /src/arbolstring/LlamadaDocx.java | UTF-8 | 2,062 | 2.609375 | 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 arbolstring;
import org.apache.poi.xwpf.extractor.XWPFWordExtractor;
import org.apache.poi.xwpf.usermodel.XWPFDocument... | true |
509cf63ee410529d100dbe58c00075b8505cdc1e | Java | mnishom/OperatorAndMath | /src/contoh/kelasB/Penugasan.java | UTF-8 | 397 | 2.84375 | 3 | [] | no_license | package contoh.kelasB;
public class Penugasan {
static double sum(double... nilai){
double d = nilai[0];
for (int i = 1; i < nilai.length; i++) {
d += nilai[i];
}
return d;
}
public static void main(String[] args) {
double jumlah = sum(1,2,... | true |
cd9e2a3313e49198e8210263fa6dc065bb2f45f1 | Java | ClementBonnefoy/ChessMusic | /chessboard/src/sml/elements/Body.java | UTF-8 | 1,228 | 2.828125 | 3 | [] | no_license | package sml.elements;
import sml.interfaces.IInstruction;
import sml.interfaces.ISMLElement;
import sml.interfaces.IVisitor;
public class Body implements ISMLElement {
private IInstruction instruction;
private Body next;
public Body(IInstruction instruction, Body next) {
super();
this.instruction = instruc... | true |
4e9b3b6069d2b8a1355d421c14b5fa1a8d877770 | Java | casperenghuus/6878 | /Gene4x/ARACNE/src/org/geworkbench/util/associationdiscovery/clusterlogic/ClusterPanel.java | UTF-8 | 3,381 | 2.34375 | 2 | [] | no_license | package org.geworkbench.util.associationdiscovery.clusterlogic;
import javax.swing.*;
import java.awt.*;
/**
* <p>Title: Plug And Play</p>
* <p>Description: Dynamic Proxy Implementation of enGenious</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: First Genetic Trust Inc.</p>
*
* @author Manj... | true |
95c5af33dc82891b16204666218963eb3c5d6ffa | Java | BasRegi/CSFightClub | /src/test/TestCMD.java | UTF-8 | 13,183 | 2.65625 | 3 | [] | no_license | package test;
import java.util.ArrayList;
import java.util.Scanner;
import data.BattleData;
import data.Card;
import data.GameData;
import data.LobbyData;
import data.Minion;
import events.EventTrigger;
import events.EventUtil;
public class TestCMD extends Thread {
private GameData gameData;
private B... | true |
f93abfd6320f472acadd79c0da2eed1524cab6fe | Java | autumnharmony/oographplus | /openoffice-addon/src/main/java/ru/ssau/graphplus/PageHelper.java | UTF-8 | 8,991 | 1.835938 | 2 | [] | no_license | /*************************************************************************
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or... | true |
ec1c7df9e1a18bfc4ba393bfad06ef4c1f8ee13f | Java | jelford/Please | /tests/test/gennedcode/PrimitiveArguments.java | UTF-8 | 1,935 | 2.328125 | 2 | [] | no_license | package test.gennedcode;
import gen.elford.james.please.Please;
import gen.elford.james.please.PleaseInterface;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
public class PrimitiveArguments {
private PleaseInterf... | true |
f8f28f3b71a6e018fc2655e8a7a96e7861582e7c | Java | ajithmemana/My-Demo-Projects | /NewsReader/src/com/qburst/newsreader/api/GetNewsApi.java | UTF-8 | 1,936 | 2.015625 | 2 | [] | no_license | package com.qburst.newsreader.api;
import java.util.Map;
import android.util.Log;
import com.qburst.newsreader.api.beans.response.News_ParseResponseBean;
import com.qburst.newsreader.api.beans.request.News_ParseRequestBean;
import com.qburst.newsreader.interfaces.NRApiListener;
import com.qburst.newsreader.interfaces.... | true |
9efa822ae4f7402f134a30818ccb0147484cd895 | Java | stevejhkang/algorithm-quiz | /project_folder/src/boj_may/BOJ_2636.java | UTF-8 | 4,293 | 2.9375 | 3 | [
"MIT"
] | permissive | package boj_may;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;
public class BOJ_2636 {
private static int r;
private static int c;
private static int[][] map;
private s... | true |
16581833b6dd4198cab35afa2c12c90e9f425336 | Java | cpbentley/pasa_cbentley_swing | /src/pasa/cbentley/swing/widgets/b/BTextNote.java | UTF-8 | 1,313 | 2.046875 | 2 | [
"MIT"
] | permissive | package pasa.cbentley.swing.widgets.b;
import javax.swing.JTextArea;
import pasa.cbentley.core.src4.ctx.UCtx;
import pasa.cbentley.core.src4.logging.Dctx;
import pasa.cbentley.swing.ctx.SwingCtx;
import pasa.cbentley.swing.imytab.IMyGui;
public class BTextNote extends JTextArea implements IMyGui {
pri... | true |
d04a43fbf78b2f451593032a35a99aab2c901835 | Java | iantal/AndroidPermissions | /apks/playstore_apps/com_ubercab/source/cmi.java | UTF-8 | 742 | 1.9375 | 2 | [
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.View;
public abstract class cmi
{
private cmj a;
private int b;
private int c;
cmi() {}
abstract Surface a();
abstract void a(int paramInt);
void a(int paramInt1, int paramInt2) {}
void a(cmj paramCmj)
... | true |
2917a4b539b901ad8ca350a36510783e754714f6 | Java | LuisMesquita/android-quantoprima | /app/src/main/java/br/com/mobiclub/quantoprima/ui/activity/AboutMobiClubActivity.java | UTF-8 | 2,992 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package br.com.mobiclub.quantoprima.ui.activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.squareup.otto.Subscribe;
import br.... | true |
9ba13460ecfdf6a6456b44409ee3eea9807fb8bf | Java | JetBrains/intellij-community | /java/testFramework/src/com/intellij/testFramework/fixtures/impl/JavaTestFixtureFactoryImpl.java | UTF-8 | 1,871 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testFramework.fixtures.impl;
import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
i... | true |
b85861212c98121e35f3d30c28954c981034dffc | Java | prodrigestivill/jmus | /src/ist/mus/comm/GameData.java | UTF-8 | 7,945 | 2.28125 | 2 | [] | no_license | /*
* Created on May 11, 2005
*
* Copyright 2005 Pau Rodriguez-Estivill <prodrigestivill@yahoo.es>
*
* This software is licensed under the GNU General Public License.
* See http://www.gnu.org/copyleft/gpl.html for details.
*/
package ist.mus.comm;
import ist.mus.baraja.Baraja40;
import ist.mus.baraja.Carta;
impo... | true |
3419fb4aa19be8eb814254973a5625f7d3204cf0 | Java | nikskonda/library-back-end | /service/src/main/java/by/bntu/fitr/converter/user/OrderDtoConverter.java | UTF-8 | 771 | 2.28125 | 2 | [] | no_license | package by.bntu.fitr.converter.user;
import by.bntu.fitr.converter.AbstractDtoConverter;
import by.bntu.fitr.dto.user.order.OrderDto;
import by.bntu.fitr.model.user.order.Order;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Comp... | true |
c0ea7c783d0b66b1c56afdc7782b86aca6ccb4f5 | Java | bellmit/mescep | /src/main/java/com/mes/old/meta/RTransportationTime.java | UTF-8 | 489 | 1.78125 | 2 | [] | no_license | package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* RTransportationTime generated by hbm2java
*/
public class RTransportationTime implements java.io.Serializable {
private RTransportationTimeId id;
public RTransportationTime() {
}
public RTransportationTime(RTransport... | true |
45ac9a57b3a5c5b6bdc98dbcb0a344902e2b88cd | Java | PMalaniouk/JDBC | /src/jdbc/DatabaseConnection.java | UTF-8 | 7,396 | 2.390625 | 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 JDBC;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author whb108
* @vers... | true |
879a401467ce0e0ffc6159abd279cc11c00360b9 | Java | kr-pound/Weather-Android-Studio | /Weather/app/src/main/java/data/WeatherHttpClient.java | UTF-8 | 1,808 | 2.578125 | 3 | [] | no_license | package data;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import Util.Utils;
public class WeatherHttpClient {
public String getWeatherData(String place) {... | true |
a5f8b90401d0f60c2f9cf1abba7db44c690512fe | Java | juldrixx/MangAnime_Desktop | /src/controlers/ControlerMediaUnit.java | UTF-8 | 7,493 | 2.203125 | 2 | [] | no_license | package controlers;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import javax.swing.AbstractAction;
import javax.swing.Icon;... | true |
8fa67ec5700435938c4ca80067b9a6c1b72d8765 | Java | PadraoiX/QWCFPEnvDependencies | /QWCFPxWalli/Fontes/qwcfp_view-master/src/br/com/pix/qware/qwcfp/beans/OpenDownloadBean.java | UTF-8 | 2,683 | 1.867188 | 2 | [] | no_license | package br.com.pix.qware.qwcfp.beans;
import java.io.IOException;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ViewScoped;
import javax.faces.context.ExternalCo... | true |
a1fc194a2d3ceeee7faa2c947a09bbf200705ba4 | Java | adonis2014/weixinradio | /src/main/java/com/qianmi/mq/ShadinessProducer.java | UTF-8 | 968 | 2.140625 | 2 | [] | no_license | package com.qianmi.mq;
import com.qianmi.domain.Pair;
import com.qianmi.domain.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;
... | true |
c7edae7f5e804c96c7da1ebca1f835f874dbc8ae | Java | 1187717503/BoutiquePortal | /intramirror-root/intramirror-vendor-web/src/main/java/com/intramirror/web/controller/order/OrderShipController.java | UTF-8 | 99,665 | 1.5625 | 2 | [] | no_license | package com.intramirror.web.controller.order;
import com.google.gson.Gson;
import com.intramirror.common.help.ResultMessage;
import com.intramirror.logistics.api.model.Invoice;
import com.intramirror.logistics.api.model.VendorShipment;
import com.intramirror.logistics.api.service.IInvoiceService;
import com.intramirro... | true |
80cca1c7e305c4a68235fdae0e975bdb12b7baeb | Java | michal257/day_schedule_android | /app/src/main/java/com/project/dayshedule/dayshedule/Groceries/GroceriesCategoryListActivity.java | UTF-8 | 3,123 | 2.125 | 2 | [] | no_license | package com.project.dayshedule.dayshedule.Groceries;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ListView;
import com.... | true |
71f1f906e240db148cde75bd37047642971bf4c8 | Java | shivampathak94/otp-app-Angular | /Java-Code/rest/LoginController.java | UTF-8 | 1,221 | 2.3125 | 2 | [] | no_license | package com.prac1.springdemo.rest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class LoginController {
@ResponseBody
@GetMapping("/loginemployee")
public String logi... | true |
9fd5b3f266ad8e004a695261a6a97e971c9bbd2e | Java | marcos8154/Persistor | /src/br/com/persistor/sessionManager/SessionFactory.java | UTF-8 | 2,984 | 2.421875 | 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 br.com.persistor.sessionManager;
import br.com.persistor.connectionManager.DataSource;
import br.com.persistor.generalClasses.... | true |
84b84be8f3fee18c303a06fca73c45410237de3d | Java | eden9209/pokemons-game | /src/gameClient/myGui.java | UTF-8 | 8,223 | 2.65625 | 3 | [] | no_license | package gameClient;
import gameClient.CL_Pokemon;
import gameClient.CL_Agent;
import api.edge_data;
import api.game_service;
import api.directed_weighted_graph;
import api.node_data;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import ... | true |
ead5923b43a6ea9d52a57b719bb4606000c6d3f2 | Java | zhongxingyu/Seer | /Diff-Raw-Data/5/5_2c82119b048064bd47612ec63890e594f18df9c9/GroovyRepl/5_2c82119b048064bd47612ec63890e594f18df9c9_GroovyRepl_t.java | UTF-8 | 613 | 2.34375 | 2 | [] | no_license | package br.com.tecsinapse.glimpse.server.groovy;
import groovy.lang.GroovyShell;
import br.com.tecsinapse.glimpse.server.Repl;
public class GroovyRepl implements Repl {
private GroovyShell groovyShell = new GroovyShell();
public GroovyRepl(VarProducer varProducer) {
varProducer.fill(groovyShell);
}... | true |
8e160dc422d7d551eba3c66274991c975d920fe4 | Java | aaroncheung123/EI-Robotics | /app/src/main/java/com/aaroncheung/prototype4/MainActivity.java | UTF-8 | 1,745 | 2.328125 | 2 | [] | no_license | package com.aaroncheung.prototype4;
import android.app.Activity;
import android.content.Intent;
import android.hardware.usb.UsbManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import co... | true |
0733744dfb44d978bf5748bef7eb4288203d8f6b | Java | tomaszbawor/agro | /src/main/java/com/tbawor/agro/items/armor/body/BodyArmor.java | UTF-8 | 273 | 2.171875 | 2 | [] | no_license | package com.tbawor.agro.items.armor.body;
import com.tbawor.agro.items.ItemType;
import com.tbawor.agro.items.armor.Armor;
public class BodyArmor extends Armor {
public BodyArmor(String name, int defence) {
super(name, defence, ItemType.BODY_ARMOR);
}
}
| true |
546018ca322b80ab9cff6470f41b67c53fd597f8 | Java | lazuta/oaip-labs-1 | /src/lab10/Task2/iHealth.java | UTF-8 | 238 | 2.25 | 2 | [] | no_license | package lab10.Task2;
public interface iHealth {
String nameOrg = "";
String adress = "";
double budget = 0;
int countPeople = 0;
String getNameOrg();
String setNameOrg(String nameOrg);
String message();
}
| true |
66643f983f9f4cb13f945ae23347ca0865c06a37 | Java | bghorpade/SeleniumAutomation | /MavenProjects/FirstMavenProject/src/test/java/SamplePackage/SecondMavenClass.java | UTF-8 | 498 | 2.21875 | 2 | [] | no_license | package SamplePackage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class SecondMavenClass {
@Test
public void launch()
{
WebDriver dr;
System.out.println("Launch Chrome Browser");
System.setProperty("webdriver.ch... | true |
c7c71f2602fb9700f7dbb40cc5b0814d7de82ce5 | Java | karannkumar/data-structures | /src/com/leetcode/year_2020/MaximumLengthofRepeatedSubarray.java | UTF-8 | 4,196 | 2.96875 | 3 | [] | no_license | package com.leetcode.year_2020;
import static java.lang.Math.max;
/**
* @author neeraj on 03/05/20
* Copyright (c) 2019, data-structures.
* All rights reserved.
*/
@SuppressWarnings("DuplicatedCode")
public class MaximumLengthofRepeatedSubarray {
public static void main(String[] args) {
System.out.pr... | true |
f585925b3b3a587561937b944a6d157174034e8b | Java | priyankagoel25/axelerant | /src/test/java/models/billPay.java | UTF-8 | 393 | 2.453125 | 2 | [] | no_license | package models;
public class billPay {
private static address address;
private static String name;
private static String phoneNumber;
private static String accountNumber;
public billPay(address address, String name, String phoneNumber, String accountNumber)
{
this.address = address;
this.name = name;
th... | true |
d0726e12fc562a4651835d4de03c9e4be14d783c | Java | callELPSYCONGROO/aurora | /utils/src/main/java/com/wuhenjian/aurora/utils/entity/zimg/ZimgResult.java | UTF-8 | 2,098 | 2.34375 | 2 | [] | no_license | package com.wuhenjian.aurora.utils.entity.zimg;
/**
* zimg服务器请求返回的结果
* @author 無痕剑
* @date 2018/1/3 16:59
*/
public class ZimgResult {
private Boolean ret;
private info info;
private error error;
public Boolean getRet() {
return ret;
}
public void setRet(Boolean ret) {
this.ret = ret;
}
public Zi... | true |
18b825efd167318365133cca2ccd78d5ac6c9522 | Java | MobiusReactor/CS308 | /prototypes/collisions/model/SquareBumper.java | UTF-8 | 1,691 | 3.421875 | 3 | [] | no_license | package collisions.model;
import physics.LineSegment;
import physics.Vect;
import physics.Circle;
import java.util.ArrayList;
public class SquareBumper {
private int x1,x2,y1,y2,size; // x1 & y1 -> top left, x2 & y2 -> top right, x3 & y3 -> bottom right, x4 & y4 -> bottom left,
private LineSegment a,b,c,d;
priva... | true |
9ecae0f5223a345811b669d897830e23cb06d290 | Java | andanhm/FoodApp | /app/src/main/java/app/andanhm/foodworld/database/client/table/CartTable.java | UTF-8 | 1,256 | 2.28125 | 2 | [] | no_license | package app.andanhm.foodworld.database.client.table;
/**
* --------------------------CART table--------------------------
*/
public class CartTable {
public static final String CART_TABLE = "tblCart";
public static final String PRODUCT_ID = "pro_id";
public static final String PRODUCT_NAME = "pro_name... | true |
87c7b28fad0081186d42cebdc369f7033672c9e8 | Java | zhaozhu365/PractiseCustomView | /app/src/main/java/com/example/zhaozhu/practisecustomview/pathanimationdemo/MainActivity.java | UTF-8 | 1,337 | 2.296875 | 2 | [] | no_license | //package com.example.zhaozhu.practisecustomview.pathanimationdemo;
//
//import android.app.Activity;
//import android.os.Bundle;
//import android.view.View;
//import android.view.View.OnClickListener;
//import android.widget.Button;
//import android.widget.RelativeLayout;
//
//public class MainActivity extend... | true |
63dc3f057716d5299add7d382063125457ee434e | Java | louren1234/Weeting_front | /app/src/main/java/com/example/again/MyMoim.java | UTF-8 | 5,708 | 2 | 2 | [] | no_license | package com.example.again;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widge... | true |
d6991203160118481f7b2b810c06897e5042c677 | Java | luiz158/sports-equipment | /src/main/java/ui/login/view/ClosableFrame.java | UTF-8 | 89 | 1.921875 | 2 | [] | no_license | package ui.login.view;
public interface ClosableFrame {
public void closeFrame();
}
| true |
8f5f179215e3db91c502cb5a710e99d3fa4151a4 | Java | KennethLieu/TicTacToe | /CounterClient.java | UTF-8 | 571 | 3.21875 | 3 | [] | no_license |
/**
* Write a description of class CounterClient here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class CounterClient
{
public static void main(String[] args)
{
Counter c = new Counter(5);
c.setCount(17);
c.increaseCount();
c.increaseCount();
... | true |
684887f8bf53a9bcdd3fe69088c94df22d691a28 | Java | cyproto/stqa | /Project-1/selenium/src/selenium/DefaultSuiteTest.java | UTF-8 | 4,222 | 2.125 | 2 | [] | no_license | package selenium;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.core.IsNot.not;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.Fire... | true |
0f11f280cfad18b9007a09363af19338c54bf640 | Java | JimaryX/LeetCode | /src/leet_code03/LeetCode445.java | UTF-8 | 1,664 | 3.5625 | 4 | [] | no_license | package leet_code03;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Stack;
public class LeetCode445 {
public static void main(String[] args) {
int[] num1 = { 1, 2, 3, 4 };
int[] num2 = { 8, 3, 4 };
System.out.println(Arrays.toString(listToInt(createList(num1))));
System.out.println(Arr... | true |
c097ea3dce4cef76a56be09cc8fd0325277fcd96 | Java | RaniaBOUSSANDEL/AlphaGroupe | /ProjetGestiBanck/GestiBankBack/src/main/java/com/wha/springmvc/model/CompteBancaire.java | UTF-8 | 2,874 | 2.125 | 2 | [] | no_license | package com.wha.springmvc.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
imp... | true |
917dd9bf03d3add7837f5a8e9a236ff6b1b0a6be | Java | pylrichard/web_service_study | /roncoo_pay/pay_facade_bank/src/main/java/com/bd/roncoo/pay/facade/bank/entity/BankAccount.java | UTF-8 | 2,359 | 2.078125 | 2 | [] | no_license | package com.bd.roncoo.pay.facade.bank.entity;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
/**
* 银行账户信息表参数实体
*/
@Getter
@Setter
public class BankAccount extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 开户银行名称
*/
private String openBank;
/... | true |
2f18466d72cb74070140f6facf2c2f5e93ed7a33 | Java | so72/iTend | /src/com/noesgoes/itend/db/OrderDbAdapter.java | UTF-8 | 3,168 | 2.9375 | 3 | [] | no_license | package com.noesgoes.itend.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class OrderDbAdapter {
private static final... | true |
946ba98aaaf3fbe88ca650aadca0093aa698f2d5 | Java | neilwithdata/BBSmart-Alarms-Pro | /src/com/bbsmart/pda/blackberry/bbtime/util/BBLogger.java | UTF-8 | 424 | 1.953125 | 2 | [] | no_license | package com.bbsmart.pda.blackberry.bbtime.util;
import com.bbsmart.pda.blackberry.bbtime.AppInfo;
import net.rim.device.api.system.EventLogger;
public final class BBLogger {
public static void initialize() {
EventLogger.register(AppInfo.APP_KEY, "BBSmart Alarms Pro",
EventLogger.VIEWER_STRING);
}
public st... | true |
cfd5a4a73b2426fde3e4eb4d82769d37b7299045 | Java | DavidSilvaAlves/androidStudioProject | /app/src/main/java/com/example/cartaofidelidade/Uteis/Uteis.java | UTF-8 | 485 | 1.914063 | 2 | [] | no_license | package com.example.cartaofidelidade.Uteis;
import android.app.AlertDialog;
import android.content.Context;
import com.example.cartaofidelidade.R;
public class Uteis {
public static void Alert(Context context, String mensagem){
AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);
... | true |
c8dbc7247258187ce9665906cdd1d914362f7339 | Java | caxapexac/StronglyConnectedComponentsPractice | /src/ru/eltech/view/GraphPopupMenuEdge.java | UTF-8 | 985 | 2.484375 | 2 | [
"MIT"
] | permissive | package ru.eltech.view;
import javax.swing.*;
/**
* Контекстное меню при клике ПКМ*2 на {@link ru.eltech.logic.Edge}
*/
public final class GraphPopupMenuEdge extends JPopupMenu {
public GraphPopupMenuEdge(GraphEditor graphEditor, Integer id) {
JMenuItem removeEdgeMenuItem = new JMenuItem("Удалить дугу")... | true |
1298604fe13a8dc79769d945921b34c0d670e689 | Java | ecmnet/MAVGCL | /MAVGCL/src/main/java/me/drton/jmavlib/log/px4/PX4LogReader.java | UTF-8 | 12,809 | 2.171875 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package me.drton.jmavlib.log.px4;
import java.io.EOFException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import me.drton.jmavlib.log.BinaryLogReader;
import me.drton.jmavlib.log.FormatE... | true |
f69bd40c43d0a027dfe47f7f244531a6445dc989 | Java | alexyekymov/cvdb | /src/com/github/alexyekymov/cvdb/MainFile.java | UTF-8 | 1,786 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package com.github.alexyekymov.cvdb;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class MainFile {
public static void main(String[] args) {
String filePath = "./.gitignore";
File file = new File(filePath... | true |
1ec1f75f0d1f8e3339b8b9846c69fc742e20ffa1 | Java | ArjanO/KenIkJouNietErgensVan | /spring-ws/src/main/java/com/dare2date/domein/lastfm/LastfmData.java | UTF-8 | 2,400 | 2.53125 | 3 | [
"MIT"
] | permissive | /**
* Copyright (c) 2013 HAN University of Applied Sciences
* Arjan Oortgiese
* Joëll Portier
*
* 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
* restriction, including withou... | true |
641dc66fcdcac826dc3f9826145d3afb2c5da632 | Java | pkkann/his | /his_v2/src/webcam/WebcamTool.java | UTF-8 | 11,413 | 2.359375 | 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 webcam;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.W... | true |
b6d6b0ff1c08ef9a7e97589e5382f4738fea4eca | Java | FatBallFish/Muses | /app/src/main/java/com/victorxu/muses/search/presenter/SearchResultPresenter.java | UTF-8 | 5,066 | 2.28125 | 2 | [] | no_license | package com.victorxu.muses.search.presenter;
import android.content.Context;
import android.util.Log;
import android.view.View;
import com.google.gson.Gson;
import com.victorxu.muses.R;
import com.victorxu.muses.gson.PageCommodity;
import com.victorxu.muses.search.contract.SearchResultContract;
import com.victorxu.mu... | true |
0b9ec7dff2db0abb724568abaa16feda9d7ad55a | Java | JeffWoo2019/aliyun-openapi-java-sdk | /aliyun-java-sdk-ecsops/src/main/java/com/aliyuncs/ecsops/model/v20160401/OpsSlsDescribeDashBoardResponse.java | UTF-8 | 3,312 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
ed8c3126e8aef363b769e810be31be35c758269d | Java | vianhazman/dagger | /dagger-core/src/main/java/io/odpf/dagger/core/exception/HttpFailureException.java | UTF-8 | 350 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package io.odpf.dagger.core.exception;
/**
* The class Exception if there is failure in Http.
*/
public class HttpFailureException extends RuntimeException {
/**
* Instantiates a new Http failure exception.
*
* @param message the message
*/
public HttpFailureException(String message) {
... | true |
fd154bb64edc25acbc2ae168792a071e0f7ded07 | Java | zulus128/aMTrade | /MTrade/src/com/vkassin/mtrade/Quote.java | UTF-8 | 1,915 | 2.671875 | 3 | [] | no_license | package com.vkassin.mtrade;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
public class Quote implements Comparable<Quote> {
// private static final long serialVersionUID = 24L;
private static ... | true |
fa17e3a4a9c612fc9746ff3d548a8114c34f9765 | Java | margaritis/genlab | /genlab.core/src/genlab/core/exec/ICleanableTask.java | UTF-8 | 187 | 1.726563 | 2 | [] | no_license | package genlab.core.exec;
/**
*
* Tags the tasks which, by construction, can be cleaned once finished.
*
* @author Samuel Thiriot
*
*/
public interface ICleanableTask extends ITask {
}
| true |
977b8ab087f8fa43ad4eeac99a4a5205fdc81f5a | Java | krudolph/jade4j | /src/main/java/de/neuland/jade4j/expression/JexlExpressionHandler.java | UTF-8 | 3,302 | 2.421875 | 2 | [
"MIT"
] | permissive | package de.neuland.jade4j.expression;
import org.apache.commons.jexl3.JexlExpression;
import org.apache.commons.jexl3.JexlScript;
import org.apache.commons.jexl3.internal.JadeJexlEngine;
import org.apache.commons.jexl3.JexlEngine;
import org.apache.commons.jexl3.MapContext;
import de.neuland.jade4j.exceptions.Express... | true |
25d64bb5101d46b18f498ac27fc5cd527c9cdba8 | Java | hradecek/booking-manager | /booking-manager-api/src/main/java/cz/muni/fi/pa165/dto/CreateHotelDto.java | UTF-8 | 861 | 2.84375 | 3 | [] | no_license | package cz.muni.fi.pa165.dto;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* Data transfer object for creating a <i>hotel</i> item.
*
* @author Ivo Hradek
*/
public class CreateHotelDto {
@NotNull
@Size(min = 3, max = 50)
private String name;
public S... | true |
b7fc6833fa96852ab63529905137e03b7739954b | Java | jheimes-silveira/LocacaoVeiculo | /app/src/main/java/br/com/unitri/jheimesilveira/locacaoveiculo/bo/VeiculoBO.java | UTF-8 | 572 | 1.945313 | 2 | [] | no_license | package br.com.unitri.jheimesilveira.locacaoveiculo.bo;
import android.content.Context;
import java.sql.SQLException;
import br.com.unitri.jheimesilveira.locacaoveiculo.db.GenericCRUD;
import br.com.unitri.jheimesilveira.locacaoveiculo.domain.Categoria;
import br.com.unitri.jheimesilveira.locacaoveiculo.domain.Veicu... | true |
970fc659c19f23300d0c1591b70d87b6043e579d | Java | secondzc/myAlgorithm | /src/main/java/com/tongyuan/collection/TestHashmap.java | UTF-8 | 826 | 3.40625 | 3 | [] | no_license | package com.tongyuan.collection;
import java.util.HashMap;
import java.util.Iterator;
/**
* Created by zhangcy on 2018/5/9
* 遍历map时删除元素的做法:更新迭代器
* fail-fast的作用是一个线程在迭代时,若另外的线程改变了容器的结构,就会ConcurrentModificationException异常
*/
public class TestHashmap {
public static void main(String[] args) {
HashMap<Str... | true |
826821cb7e577798f80b5ffcdc430e20ff925c42 | Java | ayushnigamsworld/ds_algo | /anonymous/src/ikm/PersonTest.java | UTF-8 | 954 | 3.140625 | 3 | [] | no_license | package ikm;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
public class PersonTest {
static List<Person> people = Arrays.asList(new Person("bob", 1), new Person(2), new Person("Jane", 3));
static int x;
public static void main(String[] args) {
people.stream().reduce(... | true |
6eacb40115a171b6e1af7bce91bda80c21db8740 | Java | to-explore-future/MySqlTest1 | /src/Main.java | UTF-8 | 1,628 | 2.625 | 3 | [] | no_license | import hierarchyDemo.util.SqlUtil;
import hierarchyDemo.view.TransferView;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
public class Main {
public static void main(String[] args) throws Exception{
// simpleTest();
SqlMethodTest sqlMethodTest = new SqlMethodTes... | true |
81f016cb65b7c8274fa7d2541beafb7ef8cf31f6 | Java | kpkk/Java-sample-porjects | /src/main/java/LamdaExpressionExample.java | UTF-8 | 694 | 3.484375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
public class LamdaExpressionExample {
public static void main(String[] args) {
LambdaExpressions ll=()->{
System.out.println("draw method implementation");
};
ll.draw();
ArrayList<String> list=new ArrayList<String>();
list.add("p... | true |
512e05dbf1fc0a9756fae00b95835a4a187fa4ea | Java | booknara/BatteryChecker | /src/com/booknara/android/batterychecker/MainActivity.java | UTF-8 | 3,422 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.booknara.android.batterychecker;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.BatteryManager;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Men... | true |
69bb019f441dc08881c400538499fcce21912b45 | Java | cms-sw/hlt-confdb | /src/confdb/converter/ascii/AsciiPathWriter.java | UTF-8 | 843 | 2.71875 | 3 | [] | no_license | package confdb.converter.ascii;
import confdb.converter.ConverterEngine;
import confdb.converter.IPathWriter;
import confdb.data.Path;
public class AsciiPathWriter implements IPathWriter
{
public String toString( Path path, ConverterEngine converterEngine, String indent )
{
String str = indent;
if ( path.isEn... | true |
3d8104f9d3c4d4f578740d03c011fca6fa8eb205 | Java | arnonmoscona/iqfeed | /src/main/java/com/moscona/trading/adapters/iqfeed/IqFeedConfig.java | UTF-8 | 13,913 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package com.moscona.trading.adapters.iqfeed;
import com.moscona.events.EventPublisher;
import com.moscona.exceptions.InvalidArgumentException;
import com.moscona.exceptions.InvalidStateException;
import com.moscona.test.util.TestResourceHelper;
import com.moscona.trading.IServicesBundle;
import com.moscona.trading.ISe... | true |