text stringlengths 14 410k | label int32 0 9 |
|---|---|
private static void skipWhitespace() {
char ch=lookChar();
while (ch != EOF && Character.isWhitespace(ch)) {
readChar();
if (ch == '\n' && readingStandardInput && writingStandardOutput) {
out.print("? ");
out.flush();
}
ch = lookChar();
}
... | 5 |
synchronized void changeMap(int intLocX, int intLocY, short value)
{
if (value < 0 || value > vctTiles.size())
{
log.printMessage(Log.INFO, "Invalid value passed to changeMap("+intLocX+","+intLocY+","+value+")");
return;
}
if (intLocX < 0 || intLocX > MapColumns || intLocY < 0 || intLocY > MapRows)
{
... | 6 |
public void mark(int[][] matrix, int x, int y) {
int n = matrix.length - 1;
int row = x; int col = y;
for(int i = 0; i <= n; ++i){
matrix[x][i] = 2;
matrix[i][y] = 2;
}
while(row <= n && col <= n){
matrix[row++][col++] = 2;
}
row = x; col = y;
while(row >= 0 && col >= 0){
matrix[row--][col... | 9 |
public String getInnerClassString(ClassInfo info, int scopeType) {
InnerClassInfo[] outers = info.getOuterClasses();
if (outers == null)
return null;
for (int i = 0; i < outers.length; i++) {
if (outers[i].name == null || outers[i].outer == null)
return null;
Scope scope = getScope(ClassInfo.forName(... | 8 |
@Override
public void update()
{
int xa = 0, ya = 0;
if (anim < 7500)
{
anim++;
} else
{
anim = 0;
}
if (input.up)
{
ya--;
}
if (input.down)
{
ya++;
}
if (input.left)
{
xa--;
}
if (input.right)
{
xa++;
}
if (xa != 0 || ya != 0)
{
move(xa, ya);
walking =... | 7 |
public static double binomialCoefficientDouble(final int n, final int k) {
ArithmeticUtils.checkBinomial(n, k);
if ((n == k) || (k == 0)) {
return 1d;
}
if ((k == 1) || (k == n - 1)) {
return n;
}
if (k > n / 2) {
return binomialCoefficientDouble(n, n - k);
}
if (n < 67) {
return binomialCoe... | 7 |
public static void addPainters(final Paintable... painters) {
if (painters == null || getPaintHandler() == null) {
return;
}
for (final Paintable p : painters) {
if (p != null) {
if (p instanceof PaintTab) {
getMainPaint().add((PaintTab) p);
} else {
getPaintHandler().add(p);
}
}
... | 5 |
@Override
public final LinkedPointer addEffect(AbstractEffect<Boolean> e) {
if (e == null)
throw new NullPointerException("The effect is null.");
if (!e.affectTo().equals(type))
throw new NullPointerException("The effect cannot affect this property.");
lock();
... | 7 |
public void setClient(List<Client> client) {
this.client = client;
} | 0 |
public boolean similar(Object other) {
try {
if (!(other instanceof JSONObject)) {
return false;
}
Set<String> set = this.keySet();
if (!set.equals(((JSONObject)other).keySet())) {
return false;
}
Iterator<St... | 9 |
private void updateLink() {
try {
LinkListViewHelper helper = (LinkListViewHelper) updateLinkListComboBox.getSelectedItem();
if(helper == null)
return;
ElementListViewHelper to = (ElementListViewHelper) updateLinkToComboBox.getSelectedItem();
ElementListViewHelper from = (ElementListViewHelper) up... | 3 |
private void restoreFullDescendantComponentStates(FacesContext facesContext,
Iterator<UIComponent> childIterator, Object state,
boolean restoreChildFacets)
{
Iterator<? extends Object[]> descendantStateIterator = null;
while (childIterator.hasNext())
{
if ... | 9 |
public void addMaterial(String asId, String asName) {
if (this.getMaterials() == null) {
this.setMaterials(new Vector<MaterialAttr>());
}
this.getMaterials().add(new MaterialAttr(asId, asName));
} | 1 |
public static void sortCards(ArrayList<Card> cards, boolean ascending_descending, boolean value_suite) {
if (ascending_descending) {
sortAscending(cards, (value_suite) ? CardValueComparator : CardSuiteComparator);
}
else {
sortDescending(cards, (value_suite) ? CardValueCo... | 3 |
@Override
public String convertSelfToString() {
Integer lackLength;
String idStr = String.valueOf(id);
if(idStr.length() <= 6){
lackLength = 6 - idStr.length();
for(int i = 0; i < lackLength; i++){
idStr = "0" + idStr;
}
}
else{
idSt... | 8 |
public static void main(String[] args)
{
long start = System.currentTimeMillis();
try
{
ObjectOutputStream outputStream =
new ObjectOutputStream(
new FileOutputStream("myBinaryIntegers.dat"));
for (int i = 1; i<=1000000; i++){
outputStream.writeInt(i);
}
System.out.print... | 2 |
public static long getZobristKey(Board board) {
long zobristKey = 0L;
for (int index = 0; index < 120; index++) {
if ((index & 0x88) == 0) {
int piece = board.boardArray[index];
if (piece > 0) // White piece
{
zobristKey ^= PIECES[Math.abs(piece) - 1][0][index];
} else if (piece < 0) // Bl... | 6 |
@Override
public Candidato alterar(IEntidade entidade) throws SQLException {
if (entidade instanceof Candidato) {
Candidato candidato = (Candidato) entidade;
PessoaDao pdao = new PessoaDao();
pdao.alterar(candidato);
String sql = "UPDATE candidato SET "
... | 6 |
public void create_table(String tableName, ArrayList<String> headers, ArrayList<Integer> types, ArrayList<Integer> sizes, ArrayList<Boolean> isNullAble, String objectIdColumnName) throws SeException{
_log.info("Create table ... "+tableName);
SeTable table = new SeTable(conn, (conn.getUser()+"."+tableName)); ... | 3 |
private static boolean stack_boolean(CallFrame frame, int i)
{
Object x = frame.stack[i];
if (x == Boolean.TRUE) {
return true;
} else if (x == Boolean.FALSE) {
return false;
} else if (x == UniqueTag.DOUBLE_MARK) {
double d = frame.sDbl[i];
... | 9 |
LinkedList<Review> getReviews(String reviewer, String isbn, int amount) throws SQLException {
LinkedList<String> select = new LinkedList<String>();
select.add("*");
LinkedList<String> from = new LinkedList<String>();
from.add("Reviews");
LinkedList<Pair<String, String>> whereClau... | 4 |
public static double getMultiplier(){
double value = (targetFPS/currentFPS) * multiplier;
if(Double.isInfinite(value) || Double.isNaN(value)){
return 1;
}
return value;
} | 2 |
private static boolean isPrimitive(Class<?> c)
{
if (c.isPrimitive())
{
return true;
}
else
{
return primitives.contains(c);
}
} | 2 |
public boolean containsUnionThatContains( K key ) {
List<K> all = new ArrayList<K>();
for( Map.Entry<K, List<V>> e : mMap.entrySet() ) {
int c0 = mComp.compareMinToMax( key, e.getKey() );
int c1 = mComp.compareMinToMax( e.getKey(), key );
if( c0 < 0 && c1 < 0 ) {
... | 9 |
public boolean CheckGameComplete() {
return (this.blackPieces==0 || this.whitePieces == 0)?true:false;
} | 2 |
public JSONObject getJSONObject(String key) throws JSONException {
Object object = get(key);
if (object instanceof JSONObject) {
return (JSONObject)object;
}
throw new JSONException("JSONObject[" + quote(key) +
"] is not a JSONObject.");
} | 1 |
public double[] distributionForInstance (Instance instance) throws Exception {
if (!getDoNotReplaceMissingValues()) {
m_ReplaceMissingValues.input(instance);
m_ReplaceMissingValues.batchFinished();
instance = m_ReplaceMissingValues.output();
}
if (getConvertNominalToBinary()
&& ... | 7 |
public void setup() {
if((MODUS & CODEX_MODE) == CODEX_MODE)
size((int) (displayWidth*(2/3f)),displayHeight,render);
else if((MODUS & PRESENT_MODE) == PRESENT_MODE)
size(displayWidth,displayHeight, render);
else
size(alternativeWidth,alternativeHeight, render);
if(render == P2D)
((PGraphics2D)g).tex... | 9 |
public void holes_to_win(){
for (int i = 0; i < hoyde; i++) {
for (int j = 0; j < bredde; j++) {
if((map[i][j] == target) ||(map[i][j] == box_on_target)){
holes++;
}
}
}
} | 4 |
public void helper (String defName, SemanticAction node)
{
if( Compiler.extendedDebug ){
System.out.println( node.getName() );
}
if( node.getBranches().isEmpty() ){
if(node.getType() == SemanticAction.TYPE.INTEGER ||
node.getType() == SemanticAction.TYPE.BOOLEAN ){
return;
... | 8 |
public static <E extends Comparable<E>> void sortWithQueue(Stack<E> stack) {
if(stack==null || stack.size()==0) {
return;
}
Queue<E> auxQueue = new LinkedList<E>();
while(!stack.isEmpty()) {
E item = stack.pop();
int auxQSize = auxQueue.size();
while(auxQSize>0 && auxQueue.peek().compareTo(it... | 7 |
private boolean checkSingleRow(int z) {
for(int x = 0; x < length; x++) {
for(int y = 0; y < width; y++) {
if(cubes[x][y][z] == Piece.NOTHING)
return false;
}
}
return true;
} | 3 |
private void initAllItems() {
allItems.clear();
// allItems.addAll(resource.findAllByGraph());
if (selectedSlot != null && selectedSlot.getSlotType() == ViewportSlotType.PRESENTATIONSTREAM) {
// final PresentationStream ps = controller.getPresentationStreamForViewport(viewport);
... | 2 |
@EventHandler
public void WitherConfusion(EntityDamageByEntityEvent event) {
Entity e = event.getEntity();
Entity damager = event.getDamager();
String world = e.getWorld().getName();
boolean dodged = false;
Random random = new Random();
double randomChance = plugin.getZombieConfig().getDouble("Wither.Nause... | 7 |
public void setShutdownMenuFontstyle(Fontstyle fontstyle) {
if (fontstyle == null) {
this.shutdownMenuFontStyle = UIFontInits.SHDMENU.getStyle();
} else {
this.shutdownMenuFontStyle = fontstyle;
}
somethingChanged();
} | 1 |
public void usingBang() {
visibleScreen.getSetup().getRound().getCheckerForPlayedCard().playingCard(visibleScreen.getIndex());
if (visibleScreen.getSetup().getRound().getCheckerForPlayedCard().checkBarrel()) {
if (visibleScreen.getSetup().getRound().getPlayerInTurn().getAvatar().toString(... | 4 |
public void leaveChannel(ChatChannel channel, User user){
try {
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
String url = "jdbc:derby:" + DBName;
Connection connection = DriverManager.getConnection(url);
Statement statement = connection.createStatement();
String deleteStatement = "DELETE FROM... | 3 |
public PrivateKey decodePrivateKey(byte[] k) {
// magic
if (k[0] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0]
|| k[1] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[1]
|| k[2] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[2]
|| k[3] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[3]) {
throw n... | 5 |
@Id
@Column(name = "percent")
public double getPercent() {
return percent;
} | 0 |
public static void main(String[] args) {
System.out.print("Enter size of grid: ");
int n = scanner.nextInt();
StdDraw.setScale(-n, n);
StdDraw.setPenRadius((0.9*size)/((double)n*2+1));
final int[] pos = {0,0};
while (true) {
System.out.println("Position = (" + pos[x] + "," + pos[y]+ ")");
if(M... | 7 |
@Override
public int decidePlay(int turn, int drawn, boolean fromDiscard){
//If it gives us a bad score, take from draw pile
if (!fromDiscard || cache_turn != turn){
cache_pos = findBestMove(turn, drawn);
//If it hurts our score, we'll discard
if (last_score.output <= base_score.output)
cache_pos = -1... | 5 |
public final List<Direction> getDirectionsToMoveTo(Element element) {
final List<Direction> directions = new ArrayList<Direction>();
for (Direction direction : Direction.values())
if (canMoveElement(element, direction))
directions.add(direction);
return directions;
} | 2 |
@Override
synchronized int vider() {
int compte = 0;
for (int i = 0; i < vehicules.length; i = i + 1) {
compte = compte + (vehicules[i] == null ? 0 : 1);
vehicules[i] = null;
}
return compte;
} | 2 |
private static Connection initConnection() {
Connection thisCon = null;
try {
Class.forName("com.mysql.jdbc.Driver");
thisCon = DriverManager.getConnection("jdbc:mysql://" + server, account ,password);
Statement stmt = thisCon.createStatement();
stmt.executeQuery("USE " + database);
} catch (SQLExcept... | 2 |
public void setAge(long age) {
this.age = age;
} | 0 |
public Edge getEdgeWithChunk(Chunk another){
for(Edge edge : this.edges){
if((edge.getIdA() == this.id && edge.getIdB() == another.getId())
|| (edge.getIdB() == this.id && edge.getIdA() == another.getId())){
return edge;
}
}
return null;
} | 5 |
public static HashMap<String, HashMap<String, Integer>> getMap(String filePath) throws Exception
{
HashMap<String, HashMap<String, Integer>> map =
new HashMap<String, HashMap<String,Integer>>();
BufferedReader reader = filePath.toLowerCase().endsWith("gz") ?
new BufferedReader(new InputStreamReader(
... | 6 |
public String retrieveXML(){
// create file chooser and ensure it displays in the center of the main window
JFileChooser xmlBrowser = new JFileChooser();
//sets xml filter
xmlBrowser.setFileFilter(new XMLFilter());
if(curDir!=null){
//if jFileChooser has been used before, load to previous directory
xm... | 6 |
@EventHandler
public void onQuit(PlayerQuitEvent event)
{
Player player = event.getPlayer();
ItemStack[] inv = player.getInventory().getContents();
ItemStack[] armor = player.getInventory().getArmorContents();
ItemStack is;
for(int i = 0; i < inv.length; i++)
{
... | 4 |
@SuppressWarnings("unchecked")
public static float[] restore1D(String findFromFile) {
float[] dataSet = null;
try {
FileInputStream filein = new FileInputStream(findFromFile);
ObjectInputStream objin = new ObjectInputStream(filein);
try {
dataSet = (float[]) objin.readObject();
} catch (ClassCastEx... | 2 |
private CategoryDataset getDataSet() {
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(2221, "14-2-4", "80");
dataset.addValue(3245, "14-2-5", "81");
dataset.addValue(5342, "14-2-6", "34");
dataset.addValue(7653, "14-2-7", "56");
return dat... | 0 |
@Override
public void run() {
while (isRunning) {
try {
if (lcd instanceof LCDController)
((LCDController) lcd).aquireLock();
for (Button button : Button.values()) {
if (button.isButtonPressed(lcd.buttonsPressedBitmask())) {
if (buttonDownTimes[button.getPin()] != 0) {
... | 9 |
public int getRowCount() {
return variables.length;
} | 0 |
public void addNewOrder(UserType type, Order newOrder) throws DbException {
con = new Connector(DBCredentials.getInstance().getDBUserByType(type));
try {
con.startTransaction();
String sql = "INSERT INTO \"Orders\" (user_id, start_date, end_date) VALUES (?, ?, ?);";
... | 8 |
@Override
public RepairHandlePOA get() {
if (poa_ == null) {
poa_ = new DefaultRepairHandle(delegate_);
}
return poa_;
} | 1 |
@GET
@Path("/v2.0/networks")
@Produces({MediaType.APPLICATION_JSON, OpenstackNetProxyConstants.TYPE_RDF})
public Response listNetwork(@HeaderParam("Accept") String accept) throws MalformedURLException, IOException{
if (accept.equals(OpenstackNetProxyConstants.TYPE_RDF)){
String dataFromKB=NetworkOntology.listNe... | 1 |
public void actionPerformed(ActionEvent event) {
if(event.getActionCommand().equals(info.getActionCommand())){
new NodeInfoDialog(parent, node);
} else if(event.getActionCommand().equals(delete.getActionCommand())){
Runtime.removeNode(node);
parent.redrawGUI();
} else if(event.getActionCommand().equals(... | 9 |
public void setParent(ClusterNode parent) {
this.parent = parent;
} | 0 |
@Override
public boolean equals(final Object o)
{
boolean isEqual = false;
if (o != null && getClass() == o.getClass())
{
final Human h = (Human)o;
isEqual = getName().equals(h.getName())
&& getSacks() == h.getSacks()
&& getHealth() == h.getHealth()
&& getStreng... | 5 |
private int getNextStatesOfMaskByCharacter(int mask, Character ch) {
int nextMask = 0;
for (int i = 0; i < states.length; i++) {
if ((mask & pow[i]) != 0 && states[i] != null) {//mask contain state i
State state = states[i].getNextState(ch);
if (state != null)... | 9 |
public List<String> validate(){
List<String> errors = new ArrayList<>();
if (!isValid(name, NAME_PATTERN)) {
errors.add("Name is not valid");
}
if (!isValid(lastName, NAME_PATTERN)) {
errors.add("Last Name is not valid");
}
if (!isValid(email, EMAIL_P... | 6 |
private String prepareTag(String tag) {
if (tag.length() == 0) {
throw new EmitterException("tag must not be empty");
}
if ("!".equals(tag)) {
return tag;
}
String handle = null;
String suffix = tag;
for (String prefix : tagPrefixes.keySet(... | 9 |
public void reset() {
Random random = new Random();
for (int i = 0; i < layers.length; i++)
{
int layerInputs = neuronCount;
if (i == 0)
{
layerInputs = inputCount;
}
layers[i] = new Neuron... | 2 |
private void startOutput(String fileName){
leavesNodeFile = new java.io.File(fileName + ".leavesNode.txt");
leavesContentFile = new java.io.File(fileName + ".leavesContent.txt");
try {
leavesNodeFileWriter = new FileWriter(leavesNodeFile);
leavesContentFileWriter = new FileWriter(leavesContentFile);
leav... | 1 |
public Deck()
{
// Generates ordered pair of 52 Cards
int cardValue;
int currHand;
int boundary;
for(int index = 3; index >= 0; index--)
{
currHand = 14;
boundary = 2;
while(currHand >= boundary)
{
... | 6 |
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Rechnung)) {
return false;
}
Rechnung other = (Rechnung) object;
if ((this.id == null && other.id != null) || (... | 5 |
private static long ggT(long a, long b) {
while (true) {
if (a > b) {
a %= b;
if (a == 0)
return b;
} else {
b %= a;
if (b == 0)
return a;
}
}
} | 4 |
public void propertyChange(PropertyChangeEvent e) {
boolean update = false;
String prop = e.getPropertyName();
//If the directory changed, don't show an image.
if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) {
file = null;
update = true;
//If a... | 4 |
public RegisteredListener[] getRegisteredListeners() {
RegisteredListener[] handlers;
while ((handlers = this.events) == null) bake(); // This prevents fringe cases of returning null
return handlers;
} | 1 |
@Override
public final void tActionEvent(TActionEvent e)
{
Object eventSource = e.getSource();
if (eventSource == saveGenesButton)
{
Hub.geneIO.saveGenes(
new Genes(geneEditorField.getText(), seedSizeSlider.getValue(), (int) redLeafSlider.getValue(), (int) greenLeafSlider.getValue(), (i... | 7 |
private void displayAttacks(){
// this.jPanel1.setVisible(false);
// this.jPanel2.setVisible(true);
if (this.character.getAttacks() != null){
DefaultListModel listModel = new DefaultListModel();
for(Attack attack : this.character.getAttacks()){
... | 2 |
private void addInLines(StringBounder stringBounder, String s) {
if (maxMessageSize == 0) {
addSingleLine(s);
} else if (maxMessageSize > 0) {
final StringTokenizer st = new StringTokenizer(s, " ", true);
final StringBuilder currentLine = new StringBuilder();
while (st.hasMoreTokens()) {
final Strin... | 9 |
public int getLandPrice(Tile tile) {
Player nationOwner = tile.getOwner();
int price = 0;
if (nationOwner == null || nationOwner == this) {
return 0; // Freely available
} else if (tile.getSettlement() != null) {
return -1; // Not for sale
} else if (nati... | 8 |
public FrameWithPanel(String title)
{
super(title);
} | 0 |
public int calcTotal(){
int total = 0;
for(int i=1; i<=this.five; i++){
total+=5;
}
for(int i=1; i<=this.ten; i++){
total+=10;
}
for(int i=1; i<=this.twenty; i++){
total+=20;
}
return total;
} | 3 |
private boolean _decompose() {
double h[] = QH.data;
for( int k = 0; k < N-2; k++ ) {
// find the largest value in this column
// this is used to normalize the column and mitigate overflow/underflow
double max = 0;
for( int i = k+1; i < N; i++ ) {
... | 7 |
static public void copyFile(String path, String filename, InputStream content) {
File file = new File("plugins" + path, filename);
try {
if(!file.exists()) {
File dir = new File("plugins/", path);
dir.mkdirs();
file.createNewFile();
}
OutputStream out = new FileOutputStream(file);
byte[] buf... | 3 |
public List<QuadTree> getRightNeighbors()
{
QuadTree sibling = this.getRightSibling();
if ( sibling == null ) return new ArrayList<QuadTree>();
return sibling.getLeftChildren();
} | 1 |
@Override
public void validarSemantica() {
Tipo condicion=null;
try {
condicion =expr1.validarSemantica();
} catch (Exception ex) {
Logger.getLogger(SentenciaWhile.class.getName()).log(Level.SEVERE, null, ex);
}
if(condicion instanceof TipoBooleano){
... | 4 |
private boolean isValidField() {
if(getLogin().indexOf(' ') != -1 || getPassword().indexOf(' ') != -1 || getConfirmPassword().indexOf(' ') != -1) {
setMessage("Login and password can't contain spases.");
return false;
} else {
if(isValidPassword()) {
r... | 4 |
static final void method556(boolean bool) {
anInt8656++;
if (ObjectDefinition.loadingHandler != null)
ObjectDefinition.loadingHandler.method2319((byte) -75);
if (bool == false) {
if (Class348_Sub32.aThread6946 != null) {
for (;;) {
try {
Class348_Sub32.aThread6946.join();
break;
} catch... | 5 |
@Override
protected Object doProcessIncoming(Object o) throws FetionException {
// -_-!!! , 好吧,我承认这里判断逻辑有点乱。。
if (o instanceof SipcResponse) {
SipcResponse response = (SipcResponse) o;
// 先检查这个回复是不是分块回复的一部分
SliceSipcResponseHelper helper = this
.findSliceResponseHelper(response);
if (helper != nul... | 5 |
public View create(Element elem) {
String kind = elem.getName();
if (kind != null)
if (kind.equals(AbstractDocument.ContentElementName)) {
return new LabelView(elem);
}
else if (kind.equals(AbstractDocument.ParagraphElementName)... | 6 |
public boolean start() {
synchronized (optOutLock) {
// Did we opt out?
if (isOptOut()) {
return false;
}
// Is metrics already running?
if (task != null) {
return true;
}
// Begin hitting the s... | 7 |
public void addElement(String key, String label)
{
if (!listLabel.containsKey(key)) {
listLabel.put(key, label);
listKey.add(key);
}
fireIntervalAdded(this, 0, listKey.size());
} | 1 |
public void decode( ByteBuffer socketBuffer ) {
if( !socketBuffer.hasRemaining() || flushandclosestate )
return;
if( DEBUG )
System.out.println( "process(" + socketBuffer.remaining() + "): {" + ( socketBuffer.remaining() > 1000 ? "too big to display" : new String( socketBuffer.array(), socketBuffer.position(... | 8 |
public String toString(){
String result = new String();
if (getLeftChild() != null)
result += leftChild.toString();
if (getOp() != null)
switch(op){
case ADD:
result += "+";
break;
case SUBTRACT:
result += "-";
break;
case MULTIPLY:
result += "*";
break;
case DIVIDE:
... | 9 |
@Test
public void runTestReflection1() throws IOException {
InfoflowResults res = analyzeAPKFile("Reflection_Reflection1.apk");
Assert.assertEquals(1, res.size());
} | 0 |
public static boolean checkSOAP(SOAPMessage message, boolean printCert)
throws Exception {
boolean rez = false;
System.setProperty("com.ibm.security.enableCRLDP", "false");
// Add namespace declaration of the wsse
SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
... | 9 |
public void testDataDependance1() {
try {
int[] label = new int[0];
TreeNode result = contains(new TreeNode(label), mkChain(new int[][]{ label }));
assertTrue(null, "Failed to locate the only node of a leaf!",
result != null
&& result.getData(... | 8 |
private boolean jj_2_60(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_60(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(59, xla); }
} | 1 |
public void decryptFile(String filePath, byte[][][] reversedSubKeys) {
System.out.println();
System.out.println("Decrypting");
try {
final File inputFile = new File(filePath);
final File outputFile = new File(filePath.replace(".des",".decrypted"));
final Inpu... | 5 |
private void voteButtonListener() {
viewRecipiesPanel.nickLabel1.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
currentRecipe.setVotes(1.0);
recipes.set(currentRecipePos, currentRecipe);
try {
Recipe.writeToFile(recipes);
} catch (ClassNotF... | 5 |
private boolean jj_2_80(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_80(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(79, xla); }
} | 1 |
@Override
public Response performRequest(Request request) {
if (request.getParams().containsKey("Innermessage")) {
String inner = request.getParams().get("Innermessage").get(0);
if ("exit".equals(inner)) {
node.getHttpServer().stop(23);
... | 4 |
public void setCtrCcResponsable(long ctrCcResponsable) {
this.ctrCcResponsable = ctrCcResponsable;
} | 0 |
@Override
public void init(List<String> argumentList) {
operator = argumentList.get(0);
} | 0 |
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://down... | 6 |
public synchronized void update(long elapsedTime) {
if (frames.size() > 1) {
animTime += elapsedTime;
if (animTime >= totalDuration) {
animTime = animTime % totalDuration;
currFrameIndex = 0;
}
while (animTime > getFrame(currFrame... | 3 |
private void doConstructParsingTable() {
//[TODO] construct parsing table
//for title use and $
LinkedList<String> pTableHeader = new LinkedList<String>();
LinkedList<NonTerminalValue> nt = new LinkedList<NonTerminalValue>();
pTableHeader.addAll(terminals);
pTableHeader.add("$");
nt.addAll(nonTerminals);
... | 7 |
Subsets and Splits
SQL Console for giganticode/java-cmpx-v1
The query retrieves a limited number of text entries within a specific length range, providing basic filtering but minimal analytical insight.