code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/channels.h | C | gpl3 | 1,985 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/poll.h | C | gpl3 | 3,622 |
/* Public include file for server support */
/*
* This file is part of the SSH Library
*
* Copyright (c) 2003-2008 by Aris Adamantiadis
*
* The SSH 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 Fou... | zzlydm-fbbs | include/libssh/server.h | C | gpl3 | 5,923 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/buffer.h | C | gpl3 | 2,622 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/messages.h | C | gpl3 | 2,184 |
#ifndef __AGENT_H
#define __AGENT_H
#include "libssh/libssh.h"
/* Messages for the authentication agent connection. */
#define SSH_AGENTC_REQUEST_RSA_IDENTITIES 1
#define SSH_AGENT_RSA_IDENTITIES_ANSWER 2
#define SSH_AGENTC_RSA_CHALLENGE 3
#define SSH_AGENT_RSA_RESPONSE ... | zzlydm-fbbs | include/libssh/agent.h | C | gpl3 | 3,014 |
#ifndef __SSH1_H
#define __SSH1_H
#define SSH_MSG_NONE 0 /* no message */
#define SSH_MSG_DISCONNECT 1 /* cause (string) */
#define SSH_SMSG_PUBLIC_KEY 2 /* ck,msk,srvk,hostk */
#define SSH_CMSG_SESSION_KEY 3 /* key (BIGNUM) */
#define SSH_CMSG_USER 4 /* user (string) */
#define SSH_CMSG_AUTH_RHOSTS 5 /*... | zzlydm-fbbs | include/libssh/ssh1.h | C | gpl3 | 3,660 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/session.h | C | gpl3 | 3,943 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 Aris Adamantiadis <aris@0xbadc0de.be>
*
* The SSH 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 Foundation; either version 2.1 of th... | zzlydm-fbbs | include/libssh/callbacks.h | C | gpl3 | 3,769 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/dh.h | C | gpl3 | 2,182 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2003-2008 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, o... | zzlydm-fbbs | include/libssh/sftp.h | C | gpl3 | 28,441 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2003-2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, o... | zzlydm-fbbs | include/libssh/libssh.h | C | gpl3 | 16,637 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2003-2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, o... | zzlydm-fbbs | include/libssh/priv.h | C | gpl3 | 8,154 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/keyfiles.h | C | gpl3 | 1,174 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/keys.h | C | gpl3 | 2,903 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/packet.h | C | gpl3 | 1,335 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/misc.h | C | gpl3 | 2,315 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, or (at... | zzlydm-fbbs | include/libssh/wrapper.h | C | gpl3 | 4,465 |
#ifndef PCAP_H_
#define PCAP_H_
#include "config.h"
#include "libssh/libssh.h"
#ifdef WITH_PCAP
typedef struct ssh_pcap_context_struct* ssh_pcap_context;
int ssh_pcap_file_write_packet(ssh_pcap_file pcap, ssh_buffer packet, uint32_t original_len);
ssh_pcap_context ssh_pcap_context_new(ssh_session session);
void ssh... | zzlydm-fbbs | include/libssh/pcap.h | C | gpl3 | 701 |
/*
* This file is part of the SSH Library
*
* Copyright (c) 2003-2009 by Aris Adamantiadis
*
* The SSH 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 Foundation; either version 2.1 of the License, o... | zzlydm-fbbs | include/libssh/scp.h | C | gpl3 | 1,845 |
#ifndef __SSH2_H
#define __SSH2_H
#define SSH2_MSG_DISCONNECT 1
#define SSH2_MSG_IGNORE 2
#define SSH2_MSG_UNIMPLEMENTED 3
#define SSH2_MSG_DEBUG 4
#define SSH2_MSG_SERVICE_REQUEST 5
#define SSH2_MSG_SERVICE_ACCEPT 6
#define SSH2_MSG_KEXINIT 20
#define SSH2_MSG_NEWKEYS 21
#define SSH2_MSG_KEXDH_INIT 30
#define SSH... | zzlydm-fbbs | include/libssh/ssh2.h | C | gpl3 | 2,336 |
#!/bin/sh
xgettext -k_ -d fbbs -s -o fbbs.pot ../src/*.c
| zzlydm-fbbs | i18n/extract.sh | Shell | gpl3 | 58 |
#!/bin/sh
msgmerge -s -U fbbs.po fbbs.pot
| zzlydm-fbbs | i18n/update.sh | Shell | gpl3 | 43 |
#include "fbbs/dbi.h"
#include "fbbs/post.h"
#include "fbbs/time.h"
#include "fbbs/web.h"
enum {
QUERY_LENGTH = 512,
};
bool allow_reply(uint_t flag)
{
return !(flag & FILE_NOREPLY);
}
int get_post_mark(uint_t flag)
{
int mark = ' ';
if (flag & FILE_DIGEST)
mark = 'G';
if (flag & FILE_MARKED) {
if (mark == ... | zzlydm-fbbs | www/board.c | C | gpl3 | 2,442 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic -Werror")
add_definitions(-D_XOPEN_SOURCE=600)
add_executable(fbwebd web.c main.c board.c parse.c post.c)
target_link_libraries(fbwebd crypt fcgi fbbs fbbspg)
install(TARGETS fbwebd RUNTIME DESTINATION bin)
| zzlydm-fbbs | www/CMakeLists.txt | CMake | gpl3 | 265 |
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "fbbs/pool.h"
#include "fbbs/string.h"
#include "fbbs/web.h"
extern int bbs_board(web_ctx_t *ctx);
extern int bbs_post(web_ctx_t *ctx);
typedef struct web_handler_t {
const char *name; ///< name of the handler.
int (*func)(web_ctx_t *); ... | zzlydm-fbbs | www/main.c | C | gpl3 | 1,861 |
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "fbbs/error.h"
#include "fbbs/pool.h"
#include "fbbs/string.h"
#include "fbbs/web.h"
/**
* Get an environment variable.
* The function searches environment list where FastCGI stores parameters
* for a string that matches the string pointed by 'key'... | zzlydm-fbbs | www/web.c | C | gpl3 | 5,728 |
#include <stdlib.h>
#include "fbbs/web.h"
int bbs_post(web_ctx_t *ctx)
{
const char *idstr = get_param(ctx->r, "id");
long id = strtol(idstr, NULL, 10);
char file[128];
snprintf(file, sizeof(file), "posts/%ld/%ld", id / 10000, id);
const char *query = "SELECT board_id, gid FROM posts WHERE id = $1";
db_param_t... | zzlydm-fbbs | www/post.c | C | gpl3 | 783 |
function switchPanel(link) {
var item = link.nextSibling;
var expand = false;
if (item.style.display == 'block') {
item.style.display = 'none';
} else {
item.style.display = 'block';
expand = true;
}
var id = link.parentNode.id;
bbs.store.get('navbar', function(ok, val) {
var str = '0000000';
if (ok &&... | zzlydm-fbbs | html/js/bbs.js | JavaScript | gpl3 | 5,212 |
function closewin()
{
opener.document.postform.text.value += "\n" + document.getElementById('url').innerHTML + "\n";
return window.close();
} | zzlydm-fbbs | html/js/bbsupload.js | JavaScript | gpl3 | 147 |
body {
text-align: center;
background: #e6d373;
behavior: url(csshover.htc);
}
a:link,a:visited{
text-decoration: none;
font-weight: bold;
color: #000000;
list-style-type: none;
font-size: 14px;
}
a:hover,a:active {
color: #304c54;
}
#container {
margin-right: auto;
mar... | zzlydm-fbbs | html/style.css | CSS | gpl3 | 3,131 |
#hd{position:absolute;top:0;left:144px;margin:0.5em;}
#main{position:absolute;top:32px;left:144px;margin:0.5em 0 0.5em 0;}
#ft{display:none;margin:0.5em;}
#main td{font-size:12px;height:1;}
table.content{width:100%;}
th.ptitle,td.ptitle{width:auto;}
.content tr{line-height:24px;}
table.post{width:100%;}
| zzlydm-fbbs | html/css/ie6fix.css | CSS | gpl3 | 305 |
body, div, ul, ol, li, h1, h2, h3, h4, h5, h6, form, input, textarea, p, blockquote, th, td, dl {
margin: 0;
padding: 0;
}
body {
font-family: "SimSun", "Gill Sans MT", Verdana, sans-serif;
font-size: 1em;
width: 100%;
background-color: #f0f7ff;
}
ul, ol {
list-style: none;
}
table {
border-collapse: separate;
... | zzlydm-fbbs | html/css/bbs.css | CSS | gpl3 | 2,081 |
* {
font-family: Tahoma, Verdana, Arial;
}
img {
border: none;
vertical-align: middle;
padding-right: 5px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
ul li {
padding: 5px 0;
margin-right: 10px;
}
input.txt {
background: #edecec;
width: 100px;
height:20px;
border: none;
}
... | zzlydm-fbbs | html/css/index.css | CSS | gpl3 | 1,690 |
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="showpost">
<xsl:param name='content'/>
<xsl:variable name='before'><xsl:if test='not(contains($content, " "))'><xsl:value-of select='$... | zzlydm-fbbs | html/xsl/showpost.xsl | XSLT | gpl3 | 12,914 |
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method='html' encoding='utf-8' doctype-public='-//W3C//DTD HTML 4.01//EN' doctype-system='http://www.w3.org/TR/html4/strict.dtd'/>
<xsl:template name='timeconvert'>
<xsl:param name='ti... | zzlydm-fbbs | html/xsl/bbs.xsl | XSLT | gpl3 | 2,846 |
<?xml version='1.0' encoding='gb2312'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:import href='bbs.xsl' />
<xsl:output method='html' encoding='gb2312' doctype-public='-//W3C//DTD HTML 4.01//EN' doctype-system='http://www.w3.org/TR/html4/strict.dtd'/>
<xsl:template match='/'>
... | zzlydm-fbbs | html/xsl/bbssel.xsl | XSLT | gpl3 | 823 |
<?xml version='1.0' encoding='gb2312'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:import href='bbs.xsl' />
<xsl:import href='showpost.xsl' />
<xsl:output method='html' encoding='gb2312' doctype-public='-//W3C//DTD HTML 4.01//EN' doctype-system='http://www.w3.org/TR/html4/st... | zzlydm-fbbs | html/xsl/bbsrss.xsl | XSLT | gpl3 | 1,346 |
// Ver: 4.1.30228
var nOP=0,nOP5=0,nIE=0,nIE4=0,nIE5=0,nNN=0,nNN4=0,nNN6=0,nMAC=0,nIEM=0,nIEW=0,nDM=0,nVER=0.0,st_delb=0,st_addb=0,st_reg=1;stnav();var st_ttb=nIE||nOP&&(nVER>=6&&nVER<7);
var stT2P=["static","absolute","absolute"],stHAL=["left","center","right"],stVAL=["top","middle","bottom"],stREP=["no-repeat","repea... | zzlydm-fbbs | html/images/stm31.js | JavaScript | gpl3 | 33,019 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic -Werror")
add_definitions(-D_XOPEN_SOURCE=500)
add_library(fbbs STATIC util.c string.c file.c hash.c mmap.c socket.c pass.c
cache.c cfg.c pool.c user.c time.c)
| zzlydm-fbbs | lib/CMakeLists.txt | CMake | gpl3 | 218 |
#include <wchar.h>
#include <string.h>
#include "fbbs/string.h"
#if 0
/**
* Convert string to lower case.
* @param dst result string.
* @param src the string to convert.
* @return the converted string.
* @note 'dst' should have enough space to hold 'src'.
*/
char *strtolower(char *dst, const char *src) {
char *... | zzlydm-fbbs | lib/string.c | C | gpl3 | 5,327 |
#include <stdio.h>
#include <string.h>
#include "fbbs/cfg.h"
#include "fbbs/string.h"
enum {
CONFIG_MAX_KEYS = 64,
CONFIG_MAX_LINE_LEN = 256,
CONFIG_BUFFER_SIZE = 3584,
};
int config_init(config_t *cfg)
{
void *ptr = malloc((sizeof(*cfg->keys) + sizeof(*cfg->vals))
* CONFIG_MAX_KEYS + CONFIG_BUFFER_SIZE);
if ... | zzlydm-fbbs | lib/cfg.c | C | gpl3 | 1,578 |
#include <stdlib.h>
#include <unistd.h>
#include "fbbs/pool.h"
#include "fbbs/util.h"
enum {
ALIGNMENT = sizeof(unsigned long),
};
static int _max_pool_alloc = 0;
/**
* Align pointer.
* @param ptr The pointer to be aligned.
* @return The aligned pointer.
*/
static inline void *_align_ptr(void *ptr)
{
return (... | zzlydm-fbbs | lib/pool.c | C | gpl3 | 3,182 |
#include <stdlib.h>
#include <string.h>
#include "fbbs/hash.h"
/**
* Default hash funtion (djb algorithm).
* @param [in] key The key.
* @param [in,out] klen The length of the key. See ::hash_func_t.
* @return The calculated hash value.
*/
unsigned int hash_func_default(const char *key, unsigned int *klen)
{
unsi... | zzlydm-fbbs | lib/hash.c | C | gpl3 | 5,170 |
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "fbbs/util.h"
#ifndef NSIG
#ifdef _NSIG
#define NSIG _NSIG
#else
#define NSIG 65
#endif
#endif
/**
* Daemonize the process.
*/
void start_daemon(void)
{
int n, pid;
umask(0); // C... | zzlydm-fbbs | lib/util.c | C | gpl3 | 1,504 |
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stddef.h>
#include <sys/socket.h>
#include <sys/un.h>
#include "fbbs/string.h"
/**
* Create a unix domain dgram socket and then connect to a server.
* @param basename The basename of the created socket.
* The actual path is suffix... | zzlydm-fbbs | lib/socket.c | C | gpl3 | 1,756 |
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <crypt.h>
#include <sys/time.h>
#include "fbbs/site.h"
#ifndef MD5
#ifndef DES
/* nor DES, MD5, fatal error!! */
#error "(pass.c) you've not define DES nor MD5, fatal error!!"
#endif
#endif
/** Used in integer-string conversion... | zzlydm-fbbs | lib/pass.c | C | gpl3 | 1,835 |
#include "fbbs/dbi.h"
int get_user_id(db_conn_t *c, const char *name)
{
db_param_t param[1] = { PARAM_TEXT(name) };
db_res_t *res = db_exec_params(c, "SELECT id FROM users WHERE name = $1",
1, param, true);
if (db_res_status(res) != DBRES_TUPLES_OK)
return -1;
if (db_num_rows(res) > 0)
return db_get_integer... | zzlydm-fbbs | lib/user.c | C | gpl3 | 347 |
#include <stdio.h>
#include "fbbs/time.h"
/**
* Convert time to string in specified format.
* @param time time to convert.
* @param mode The format.
* @return converted string.
*/
const char *date2str(time_t time, int mode)
{
const char *weeknum[] = { "天", "一", "二", "三", "四", "五", "六" };
const char *engweek[] =... | zzlydm-fbbs | lib/time.c | C | gpl3 | 1,516 |
#include <unistd.h>
#include "fbbs/cache.h"
#include "fbbs/socket.h"
#include "fbbs/string.h"
typedef struct cache_server_t {
int fd;
} cache_server_t;
static cache_server_t server;
/**
* Initialize a cache client.
* @return 0 if OK, -1 on error.
*/
int cache_client_init(void)
{
int fd = unix_dgram_connect(CAC... | zzlydm-fbbs | lib/cache.c | C | gpl3 | 1,381 |
/** @file
* Memory mapped I/O.
*/
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/file.h>
#include "fbbs/file.h"
#include "fbbs/mmap.h"
enum {
MMAP_MINSIZE = 4096, ///< Minimum memory mapped region size.
};
/**
* Map file associated with fi... | zzlydm-fbbs | lib/mmap.c | C | gpl3 | 2,466 |
#!/usr/bin/env python
from setuptools import setup
import os
import re
v = open(os.path.join(os.path.dirname(__file__), 'ibm_db_sa', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
setup(
... | zzzeek-ibm-db-sa | ibm_db_sa/setup.py | Python | asf20 | 2,220 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/pyodbc.py | Python | asf20 | 4,704 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/ibm_db.py | Python | asf20 | 4,851 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
# +-... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/base.py | Python | asf20 | 22,382 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/zxjdbc.py | Python | asf20 | 7,808 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
# +-... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/reflection.py | Python | asf20 | 27,456 |
"""requirements.py
This file is used by the SQLAlchemy 0.8 testing suite to mark various
optional behaviors as non-supported.
"""
from sqlalchemy.testing.requirements import SuiteRequirements
from sqlalchemy.testing import exclusions
class Requirements(SuiteRequirements):
@property
def on_update_cascade(s... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/requirements.py | Python | asf20 | 2,292 |
# +--------------------------------------------------------------------------+
# | Licensed Materials - Property of IBM |
# | |
# | (C) Copyright IBM Corporation 2008, 2013. |
... | zzzeek-ibm-db-sa | ibm_db_sa/ibm_db_sa/__init__.py | Python | asf20 | 1,948 |
from sqlalchemy.dialects import registry
registry.register("db2", "ibm_db_sa.ibm_db", "DB2Dialect_ibm_db")
registry.register("db2.ibm_db", "ibm_db_sa.ibm_db", "DB2Dialect_ibm_db")
registry.register("db2.pyodbc", "ibm_db_sa.pyodbc", "DB2Dialect_pyodbc")
registry.register("db2.zxjdbc", "ibm_db_sa.zxjdbc", "DB2Dialect_zx... | zzzeek-ibm-db-sa | ibm_db_sa/run_tests.py | Python | asf20 | 538 |
package com.swtdesigner;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
im... | zzupdate | trunk/Update/src/com/swtdesigner/SWTResourceManager.java | Java | asf20 | 14,601 |
package com.taobao.update;
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class WebService {
public String getVersion() {
String version = null;
try {
String endpoint = "http://shua.zhuzhuxc.com/soft/Sof... | zzupdate | trunk/Update/src/com/taobao/update/WebService.java | Java | asf20 | 3,734 |
package com.taobao.update;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
/**
* @author Liupeng
* @version CreateTime:2010-12-20
*/
public c... | zzupdate | trunk/Update/src/com/taobao/update/VersionService.java | Java | asf20 | 2,033 |
package com.taobao.tools;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.ImageLoader;
import org.eclips... | zzupdate | trunk/Update/src/com/taobao/tools/GIF.java | Java | asf20 | 5,118 |
package com.taobao.tools;
/**
* @author Liupeng
* @version CreateTime:2010-11-16
*/
public class Property {
public static String java_path = "";
public static String win_path = "";
static {
win_path = System.getProperty("user.dir");
java_path = win_path.replaceAll("\\\\"... | zzupdate | trunk/Update/src/com/taobao/tools/Property.java | Java | asf20 | 339 |