code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
package org.ocbc.utils;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
public class request {
public static JSONObject get(String url, HashMap<String, String> headers) {
Buffer... | Java |
/*
* Mounts a BitLocker Drive Encrypted (BDE) volume
*
* Copyright (C) 2011-2015, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published ... | Java |
###说明
- 这是用C++实现的二分搜索树
####使用工具
- CMake
- make
####使用代码
- 注意请安装cmake3.5以上版本
- 新建一个文件夹
`mkdir build`
- 进入build目录
`cd build`
- cmake配置
`cmake ..`
- 编译执行
`make`
- 进入bin目录下
`cd bin/`
- 执行代码
`./BinarySearchTree`
| Java |
/*
* Copyright (C) 2014 Stuart Howarth <showarth@marxoft.co.uk>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 3, as published by the Free Software Foundation.
*
* This program is distributed in the ... | Java |
/*
* Copyright(c) 2013 Tim Ruehsen
* Copyright(c) 2015-2016 Free Software Foundation, Inc.
*
* This file is part of libwget.
*
* Libwget is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either ve... | Java |
<?php
/**
*
* Copyright (c) 2014 gfg-development
*
* @link http://www.gfg-development.de
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
$GLOBALS['TL_LANG']['tl_linkslist_list']['title_legend'] = 'Titel';
$GLOBALS['TL_LANG']['tl_linkslist_list']['config_legend'] = 'Einstellungen';
... | Java |
namespace MoCap.Manager
{
class Dispatcher : IComMsg
{
}
}
| Java |
/**********************************************************************
* Copyright (c) 2010, j. montgomery *
* All rights reserved. *
* *
* Redistribution and use in sou... | Java |
<?php
/**
* This file is part of contao-community-alliance/dc-general.
*
* (c) 2013-2019 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This project is provided in good faith and hope to be usable by ... | Java |
/*
* Copyright 2016 - 2021 Marcin Matula
*
* This file is part of Oap.
*
* Oap is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | Java |
package org.openbase.bco.device.openhab.communication;
/*-
* #%L
* BCO Openhab Device Manager
* %%
* Copyright (C) 2015 - 2021 openbase.org
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foun... | Java |
#include "gitrepository.h"
#include <qtcacheexception.h>
#include <git2.h>
inline void git_eval(int err){
if (err) {
const git_error* err = giterr_last();
throw QtC::QtCacheException(err->message);
}
}
template<typename T> class git_auto
{
public:
git_auto(T* object = NULL)
... | Java |
/*
* SonarLint for Visual Studio
* Copyright (C) 2016-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3... | Java |
<?php
/**
* @copyright Copyright (c) Metaways Infosystems GmbH, 2011
* @license LGPLv3, http://www.arcavias.com/en/license
* @package MShop
* @subpackage Common
*/
/**
* Common interface for items that carry sorting informations.
*
* @package MShop
* @subpackage Common
*/
interface MShop_Common_Item_Positi... | Java |
#!/bin/zsh
export PATH="${HOME}/bin:${HOME}/script:${PATH}"
export HISTSIZE=1000000
if [[ -z "${HOSTNAME}" ]] ; then
export HOSTNAME="${HOST:-$(hostname)}"
fi
if [[ -d "${MYSHELL}/plugins" ]]; then
for i in "${MYSHELL}/plugins/"* ; do
source "${i}"
done
fi
function prompt_char() {
if [ $UID -eq 0 ]; then echo... | Java |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativef... | Java |
#!/bin/sh
#cabal install msgpack-rpc
ghc --make ping.hs
| Java |
create schema if not exists toughradius collate utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS raduser@'172.%.%.%' identified by 'radpwd';
GRANT ALL PRIVILEGES ON toughradius.* TO raduser@'172.%.%.%';
ALTER USER 'raduser'@'172.%.%.%' IDENTIFIED WITH mysql_native_password BY 'radpwd';
use toughradius;
create table if n... | Java |
/*
* =====================================================================================
*
* Filename: select-sort.c
*
* Description:
*
* Version: 1.0
* Created: 12/23/2016 04:47:42 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organ... | Java |
## Welcome to GitHub Pages
You can use the [editor on GitHub](https://github.com/ldscholar/ldscholar.github.io/edit/master/README.md) to maintain and preview the content for your website in Markdown files.
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pag... | Java |
#include "StructuralInterface.h"
StructuralInterface::StructuralInterface (StructuralEntity *parent)
: StructuralEntity (parent)
{
setCategory (Structural::Interface);
setStructuralType (Structural::NoType);
setResizable (false);
setTop (0);
setLeft (0);
setWidth (ST_DEFAULT_INTERFACE_W);
setHeight... | Java |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... | Java |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___... | Java |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | Java |
package com.wangdaye.common.base.fragment;
import com.wangdaye.common.base.activity.LoadableActivity;
import java.util.List;
/**
* Loadable fragment.
* */
public abstract class LoadableFragment<T> extends MysplashFragment {
/**
* {@link LoadableActivity#loadMoreData(List, int, boolean)}.
* */
p... | Java |
/* ========================================================================== */
/* === SuiteSparse_config =================================================== */
/* ========================================================================== */
/* Configuration file for SuiteSparse: a Suite of Sparse matrix packages
* ... | Java |
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* Contao Open Source CMS
* Copyright (C) 2005-2012 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | Java |
/*---
iGeo - http://igeo.jp
Copyright (c) 2002-2013 Satoru Sugihara
This file is part of iGeo.
iGeo is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3.
iGeo is distri... | Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | Java |
<?php
/**
* This file is part of contao-community-alliance/dc-general.
*
* (c) 2013-2019 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This project is provided in good faith and hope to be usable by ... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test 6</title>
<script src="sxz.js"></script>
</head>
<body>
<img src="lena_std.jpg" align="left" alt="original image" />
<canvas id="canvasid" width="512" height="512... | Java |
/*
* PROJECT: NyARToolkitCS
* --------------------------------------------------------------------------------
*
* The NyARToolkitCS is C# edition NyARToolKit class library.
* Copyright (C)2008-2012 Ryo Iizuka
*
* This work is based on the ARToolKit developed by
* Hirokazu Kato
* Mark Billinghurst
* H... | Java |
/* radare - LGPLv3 - Copyright 2014-2015 - pancake, jvoisin, jfrankowski */
#include <dirent.h>
#include <r_core.h>
#include <r_lib.h>
#include <yara.h>
#undef R_API
#define R_API static
#undef R_IPI
#define R_IPI static
// true if the plugin has been initialized.
static int initialized = false;
static bool print_s... | Java |
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Added support for decoding HTML entities (decode_html_entities()) (... | Java |
package org.yawlfoundation.yawl.worklet.client;
import org.yawlfoundation.yawl.editor.ui.specification.SpecificationModel;
import org.yawlfoundation.yawl.engine.YSpecificationID;
import java.io.IOException;
import java.util.Map;
/**
* @author Michael Adams
* @date 18/02/2016
*/
public class TaskIDChangeMap {
... | Java |
rori_wood_mite_lair_neutral_small_02 = Lair:new {
mobiles = {},
spawnLimit = 15,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
}
addLairTemplate("rori_wood_mite_lair_neutral_small_02", rori_wood_mite_lair_neutral_small_02)
| Java |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | Java |
/**
The GPL License (GPL)
Copyright (c) 2012 Andreas Herz
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
This pr... | Java |
/*
Logic.h -- part of the VaRGB library.
Copyright (C) 2013 Pat Deegan.
http://www.flyingcarsandstuff.com/projects/vargb/
Created on: 2013-03-05
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software F... | Java |
package idare.imagenode.internal.GUI.DataSetController;
import idare.imagenode.ColorManagement.ColorScalePane;
import idare.imagenode.Interfaces.DataSets.DataSet;
import idare.imagenode.Interfaces.Layout.DataSetLayoutProperties;
import idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ColorPaneBox;
... | Java |
// mksysnum_linux.pl /usr/include/asm/unistd_64.h
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
// +build amd64,linux
package unix
const (
SYS_READ = 0
SYS_WRITE = 1
SYS_OPEN = 2
SYS_CLOSE = 3
SYS_STAT = 4
SYS_FSTA... | Java |
/* Mesquite source code. Copyright 1997-2009 W. Maddison and D. Maddison.
Version 2.7, August 2009.
Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code.
The commenting leaves much to be desired. Please approach this source code with the spirit of ... | Java |
/*
* XAdES4j - A Java library for generation and verification of XAdES signatures.
* Copyright (C) 2010 Luis Goncalves.
*
* XAdES4j is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 3... | Java |
/*
* This file is part of RskJ
* Copyright (C) 2017 RSK Labs Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later... | Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | Java |
#pragma once
#include <type_traits>
#include <limits>
#include <utility>
namespace sio {
template<typename T>
struct is_bit_enum: public std::false_type {};
template<typename Enum, std::enable_if_t<std::is_enum<Enum>{}, int> = 0>
class bitfield {
public:
using integer = std::underlying_type_t<Enum>;
private... | Java |
package com.hyenawarrior.oldnorsedictionary.modelview.meaning_panel
import android.app.Activity
import android.view.{View, ViewGroup}
import android.widget.{EditText, TextView}
import com.hyenawarrior.oldnorsedictionary.R
import com.hyenawarrior.oldnorsedictionary.modelview.{ClickListener, DynamicListView, EditTextTyp... | Java |
#include <bits/stdc++.h>
using namespace std;
#define DEBUG // comment this line to pull out print statements
#ifdef DEBUG
// completely copied from http://saadahmad.ca/cc-preprocessor-metaprogramming-2/
const char NEWLINE[] = "\n";
const char TAB[] = "\t";
#define EMPTY()
#define DEFER(...) __VA_ARGS__ EMPTY()
#d... | Java |
XCC = xmpcc
XRUN = mpiexec
TESTS = $(wildcard *.c)
EXES = $(TESTS:.c=.x)
OBJS = $(TESTS:.c=.o)
.PHONY: clean all default run submit showlog cleanlog
all default: $(EXES)
.SUFFIXES: .x
.c.x:
$(XCC) -o $@ $<
run:
$(XRUN) -n 1 ./coarray_translation.x
$(XRUN) -n 2 ./coarray_scalar.x
$(XRUN) -n 2 ./coarra... | Java |
# -*- coding: utf-8 -*-
"""
This module put my utility functions
"""
__author__ = "Jiang Yu-Kuan <yukuan.jiang@gmail.com>"
__date__ = "2016/02/08 (initial version) ~ 2019/04/17 (last revision)"
import re
import os
import sys
#------------------------------------------------------------------------------
... | Java |
/**
\file millionaire_prob.cpp
\author sreeram.sadasivam@cased.de
\copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation
Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt
This program is free software: you can redistribute it and/or modify
... | Java |
<?php
/*
dvdetect DVD detection, analysis & DVDETECT lookup library
Copyright (C) 2013-2015 Norbert Schlia <nschlia@dvdetect.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by
the Free Software Foundation, eith... | Java |
/***********************************************************************
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, (subject to the limitations in the disclaimer below)
are permitted provided that the following con... | Java |
/*
Galois, a framework to exploit amorphous data-parallelism in irregular
programs.
Copyright (C) 2010, The University of Texas at Austin. All rights reserved.
UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE
AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY
... | Java |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SharpGraphLib
{
public partial class LegendControl : UserControl
{
List<LegendLabel> _Labels = new List<LegendLabel... | Java |
#include "samplesat.h"
#include "memalloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
uint32_t num_sorts = 100;
uint32_t num_consts = 1000;
uint32_t buf_len = 11;
#define ENABLE 0
typedef struct inclause_buffer_t {
int32_t size;
input_literal_t ** data;
} inclause_buffer_t... | Java |
//============================================================================
// I B E X
// File : ibex_DoubleHeap.h
// Author : Gilles Chabert, Jordan Ninin
// Copyright : IMT Atlantique (France)
// License : See the LICENSE file
//... | Java |
/**
* Premium Markets is an automated stock market analysis system.
* It implements a graphical environment for monitoring stock markets technical analysis
* major indicators, for portfolio management and historical data charting.
* In its advanced packaging -not provided under this license- it also includes :
* S... | Java |
/**
*
* This file is part of Disco.
*
* Disco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Disco is distributed ... | Java |
using iTextSharp.text;
namespace PdfRpt.VectorCharts
{
/// <summary>
/// BarChartItem
/// </summary>
public class BarChartItem
{
/// <summary>
/// BarChartItem
/// </summary>
public BarChartItem()
{ }
/// <summary>
/// BarChartItem
/... | Java |
/**
*
*/
package com.sirma.itt.emf.authentication.sso.saml.authenticator;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import javax.crypto.SecretKey;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang... | Java |
#include <cstdio>
#include <iostream>
#include <vector>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
#define DEBUG
#undef DEBUG //uncomment this line to pull out print statements
#ifdef DEBUG
#define TAB '\t'
#define debug(a, end) cout << #a << ": " << a << end
#else
#define debug(a, en... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>BlueViaAndroidSDK: XmlDirectoryPersonalInfoParser Class Reference</titl... | Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | Java |
class WeavingType < ActiveRecord::Base
acts_as_content_block :belongs_to_attachment => true
has_many :weavings
belongs_to :user
validates_presence_of :name
validates_uniqueness_of :name
end
| Java |
/**
* DynamicReports - Free Java reporting library for creating reports dynamically
*
* Copyright (C) 2010 - 2012 Ricardo Mariaca
* http://dynamicreports.sourceforge.net
*
* This file is part of DynamicReports.
*
* DynamicReports is free software: you can redistribute it and/or modify
* it under the terms of t... | Java |
<?php
if (file_exists('../libcompactmvc.php'))
include_once ('../libcompactmvc.php');
LIBCOMPACTMVC_ENTRY;
/**
* Mutex
*
* @author Botho Hohbaum <bhohbaum@googlemail.com>
* @package LibCompactMVC
* @copyright Copyright (c) Botho Hohbaum
* @license BSD License (see LICENSE file in root directory)
* @link ... | Java |
if (WIN32)
if (MSVC71)
set (COMPILER_SUFFIX "vc71")
set (COMPILER_SUFFIX_VERSION "71")
endif(MSVC71)
if (MSVC80)
set (COMPILER_SUFFIX "vc80")
set (COMPILER_SUFFIX_VERSION "80")
endif(MSVC80)
if (MSVC90)
set (COMPILER_SUFFIX "vc90")
set (COMPILER_SUFF... | Java |
{-|
Module : Main-nowx
Description : Модуль с точкой входа для консольной версии приложения
License : LGPLv3
-}
module Main where
import Kernel
import PlayerConsole
import DrawingConsole
import Controller
import AIPlayer
-- | Точка входа для консольной версии программы
main :: IO ()
main = do
... | Java |
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2015-2020 The plumed team
(see the PEOPLE file at the root of the distribution for a list of names)
See http://www.plumed.org for more information.
This file is part of plumed, version 2.
plumed is free software... | Java |
" Settings for tests. "
from settings.project import *
# Databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
'USER': '',
'PASSWORD': '',
'TEST_CHARSET': 'utf8',
}}
# Caches
CACHES['default']['BACKEND'] = 'django.core.cache.ba... | Java |
//
// Copyright 2012 Josh Blum
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distr... | Java |
package org.molgenis.lifelines.catalog;
import nl.umcg.hl7.service.studydefinition.POQMMT000002UVObservation;
import org.molgenis.omx.catalogmanager.OmxCatalogFolder;
import org.molgenis.omx.observ.Protocol;
public class PoqmObservationCatalogItem extends OmxCatalogFolder
{
private final POQMMT000002UVObservation o... | Java |
/*
* SonarQube Lua Plugin
* Copyright (C) 2016
* mailto:fati.ahmadi AT gmail DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at y... | Java |
/*
* partition.h -- a disjoint set of pairwise equivalent items
*
* Copyright (c) 2007-2010, Dmitry Prokoptsev <dprokoptsev@gmail.com>,
* Alexander Gololobov <agololobov@gmail.com>
*
* This file is part of Pire, the Perl Incompatible
* Regular Expressions library.
*
* Pire is free soft... | Java |
SUBROUTINE SGETF2( M, N, A, LDA, IPIV, INFO )
*
* -- LAPACK routine (version 3.0) --
* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
* Courant Institute, Argonne National Lab, and Rice University
* June 30, 1992
*
* .. Scalar Arguments ..
INTEGER INFO, LDA, ... | Java |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"Visual Property Editor (using wx PropertyGrid) of gui2py's components"
__author__ = "Mariano Reingart (reingart@gmail.com)"
__copyright__ = "Copyright (C) 2013- Mariano Reingart"
__license__ = "LGPL 3.0"
# some parts where inspired or borrowed from wxFormBuilders & wxPython... | Java |
#!/usr/bin/python3
import sys
from pathlib import Path
list_scope_path = Path("./list_scope_tokens.txt")
keyword_bit = 13
list_scope_bit = 14
def main():
if len(sys.argv) < 2:
print("Error: Must specify an argument of either 'tokens' or 'emitters'!", file=sys.stderr)
return 1
list_scopes = set()
with list_s... | Java |
package com.faralot.core.ui.fragments;
import android.app.Activity;
import android.app.AlertDialog.Builder;
import android.app.Fragment;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Media... | Java |
module RailsLog
class MailerSubscriber < ActiveSupport::LogSubscriber
def record(event)
payload = event.payload
log_mailer = Logged::LogMailer.new(message_object_id: payload[:message_object_id], mailer: payload[:mailer])
log_mailer.action_name = payload[:action_name]
log_mailer.params = ... | Java |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; ... | Java |
package de.riedquat.java.io;
import de.riedquat.java.util.Arrays;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import static de.riedquat.java.io.Util.copy;
import static de.riedquat.java.util.Arrays.EMPTY_BYTE_ARRAY;
import static org.j... | Java |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2014 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; e... | Java |
package com.darkona.adventurebackpack.inventory;
import com.darkona.adventurebackpack.common.IInventoryAdventureBackpack;
import com.darkona.adventurebackpack.init.ModBlocks;
import com.darkona.adventurebackpack.item.ItemAdventureBackpack;
import com.darkona.adventurebackpack.util.Utils;
import net.minecraft.entity.pl... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitExAPI.Markets.Kraken.Requests
{
/// <summary>
/// https://api.kraken.com/0/private/TradeBalance
/// </summary>
public class RequestTradeBalance
{
}
}
/*Input:
aclas... | Java |
//
// BitWiseTrie.hpp
// Scissum
//
// Created by Marten van de Sanden on 12/1/15.
// Copyright © 2015 MVDS. All rights reserved.
//
#ifndef BitWiseTrie_hpp
#define BitWiseTrie_hpp
#include <vector>
//#include <iostream>
#include <cstring>
#define __SCISSUM_BITWISE_TRIE_USE_ZERO_TABLE 1
namespace scissum {
... | Java |
/**
*×÷Õß:Âé²Ë
*ÈÕÆÚ:2013Äê6ÔÂ20ÈÕ
*¹¦ÄÜ:×Ô¶¨ÒåÑÕɫѡÔñ¶ÔÏó,´ÓQColorDialogÀàÖÐÌáÈ¡ÖØÐ·â×°.½ö±£Áôͨ¹ýÊó±êpickÌáÈ¡ÑÕÉ«µÄ¿Ø¼þ
*˵Ã÷:¿ªÔ´,Ãâ·Ñ,ʹÓÃʱÇë±£³Ö¿ªÔ´¾«Éñ.
*ÁªÏµ:12319597@qq.com
*²©¿Í:www.newdebug.com
**/
#include "colorshowlabel.h"
#include <QApplication>
#include <QPainter>
#include <QMimeData>
#inc... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Harnet.Net
{
public class Request
{
#region Properties
/// <summary>
/// Request method (GET, POST, ...).
/// </summary>
public string M... | Java |
package org.alfresco.repo.cmis.ws;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace LeagueOfChampios
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.ax... | Java |
// Copyright (C) 2013 Columbia University in the City of New York and others.
//
// Please see the AUTHORS file in the main source directory for a full list
// of contributors.
//
// This file is part of TerraFERMA.
//
// TerraFERMA is free software: you can redistribute it and/or modify
// it under the terms of the GN... | Java |
#include "util/checksum.hpp"
namespace trillek {
namespace util {
namespace algorithm {
static uint32_t crc32_table[256];
static bool crc32_table_computed = false;
static void GenCRC32Table()
{
uint32_t c;
uint32_t i;
int k;
for(i = 0; i < 256; i++) {
c = i;
for(k = 0; k < 8; k++) {
... | Java |
Imports Windows.Graphics.Imaging
Imports Windows.Storage
Imports Windows.Storage.Pickers
Imports Windows.Storage.Streams
Imports Windows.UI
Module Captura
Public Async Sub Generar(lv As ListView, tienda As String)
Dim picker As New FileSavePicker()
picker.FileTypeChoices.Add("PNG File", New List... | Java |
/*
* Copyright (C) 2011-2020 goblinhack@gmail.com
*
* See the LICENSE file for license.
*/
#include "my_main.h"
#include "my_thing_tile.h"
#include "my_time_util.h"
#include "my_wid.h"
void wid_animate (widp w)
{_
if (!w->animate) {
return;
}
tpp tp = wid_get_thing_template(w);
if (!tp) ... | Java |
/*******************************************************************************
* Copyright (c) 2014 Open Door Logistics (www.opendoorlogistics.com)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this d... | Java |
/******************************************************************************
* Copyright (c) 2014-2015 Leandro T. C. Melo (ltcmelo@gmail.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software... | Java |
/****************************************************************************
**
** Copyright (C) 2014-2018 Dinu SV.
** (contact: mail@dinusv.com)
** This file is part of Live CV Application.
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser
** General Public Licen... | Java |
package org.energy_home.dal.functions.data;
import java.util.Map;
import org.osgi.service.dal.FunctionData;
public class DoorLockData extends FunctionData {
public final static String STATUS_OPEN = "OPEN";
public final static String STATUS_CLOSED = "CLOSED";
private String status;
public DoorLockData(long tim... | Java |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fasta.h"
#include "util.h"
fastap fa_alloc(int maxlen) {
fastap fa;
fa = (fastap) malloc(sizeof(struct fasta));
fa->id = (char *) malloc(maxlen+1);
fa->data = (char *) malloc(maxlen+1);
fa->maxlen = maxlen;
return fa;
}
int fa_next(fasta... | Java |
.NOTPARALLEL :
SOURCES_PATH ?= $(BASEDIR)/sources
BASE_CACHE ?= $(BASEDIR)/built
SDK_PATH ?= $(BASEDIR)/SDKs
NO_QT ?=
NO_WALLET ?=
NO_UPNP ?=
FALLBACK_DOWNLOAD_PATH ?= https://crimsoncore.org/depends-sources
BUILD = $(shell ./config.guess)
HOST ?= $(BUILD)
PATCHES_PATH = $(BASEDIR)/patches
BASEDIR = $(CURDIR)
HASH_LE... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.