code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
import Cookie
import datetime
import time
import email.utils
import calendar
import base64
import hashlib
import hmac
import re
import logging
# Ripped from the Tornado Framework's web.py
# http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09
#
# Tornado is licensed under the Apache Licen... | Python |
# Copyright (C) 2007 Joe Gregorio
#
# Licensed under the MIT License
"""MIME-Type Parser
This module provides basic functions for handling mime-types. It can handle
matching mime-types against a list of media-ranges. See section 14.1 of the
HTTP specification [RFC 2616] for a complete explanation.
http://www.w3.o... | Python |
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
#!/usr/bin/python2.4
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
#!/usr/bin/python2.4
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | Python |
__version__ = "1.0c2"
| Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python |
# Early, and incomplete implementation of -04.
#
import re
import urllib
RESERVED = ":/?#[]@!$&'()*+,;="
OPERATOR = "+./;?|!@"
EXPLODE = "*+"
MODIFIER = ":^"
TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE)
VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part... | Python |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | Python |
"""SocksiPy - Python SOCKS module.
Version 1.00
Copyright 2006 Dan-Haim. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | Python |
"""
iri2uri
Converts an IRI to a URI.
"""
__author__ = "Joe Gregorio (joe@bitworking.org)"
__copyright__ = "Copyright 2006, Joe Gregorio"
__contributors__ = []
__version__ = "1.0.0"
__license__ = "MIT"
__history__ = """
"""
import urlparse
# Convert an IRI to a URI following the rules in RFC 3987
#
# The characte... | Python |
from __future__ import generators
"""
httplib2
A caching http interface that supports ETags and gzip
to conserve bandwidth.
Requires Python 2.3 or later
Changelog:
2007-08-18, Rick: Modified so it's able to use a socks proxy if needed.
"""
__author__ = "Joe Gregorio (joe@bitworking.org)"
__copyright__ = "Copyright... | Python |
#!/usr/bin/env python
#
# Copyright (c) 2002, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this ... | Python |
import sys
import os
import platform
import sconsUtils
msvc_version = ""
if os.environ.has_key("MSVC_VERSION"):
msvc_version = os.environ["MSVC_VERSION"]
sconsUtils.importBuildEnvs()
buildMode = sconsUtils.getEnvVar("CORAL_BUILD_MODE")
env = Environment(
CPPPATH = [
os.path.join(os.pard... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
import coralBuilder
module = coralBuilder.buildModule("jitterNode", ["JitterNode.cpp"])
| Python |
from PyQt4 import QtGui, QtCore
from coral.coralUi.pluginUi import PluginUi
from coral.coralUi.nodeInspector.nodeInspector import NodeInspectorWidget
class JitterNodeInspectorWidget(NodeInspectorWidget):
def build(self):
NodeInspectorWidget.build(self)
button = QtGui.QPushButton("Say Hi!", self)
... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
#... | Python |
import coralBuilder
module = coralBuilder.buildModule("sineNodePolymorphic", ["sineNodePolymorphic.cpp"])
| Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
import sys
import os
import platform
import sconsUtils
msvc_version = ""
if os.environ.has_key("MSVC_VERSION"):
msvc_version = os.environ["MSVC_VERSION"]
sconsUtils.importBuildEnvs()
coralPath = os.path.join(os.pardir, "coral")
coralLib = None
try:
Import("coralLib")
except:
coralLib = ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
#... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
#... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
import sys
import os
import platform
import sconsUtils
os.environ["CORAL_BUILD_FLAVOUR"] = "coralMaya"
msvc_version = ""
if os.environ.has_key("MSVC_VERSION"):
msvc_version = os.environ["MSVC_VERSION"]
sconsUtils.importBuildEnvs()
coralPath = os.path.join(os.pardir, "coral")
coralLib = None
try... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
from maya import cmds, OpenMaya, OpenMayaAnim
def exportSkeleton(topNode, filename):
fileContent = "coralIO:1.0\n"
fileContent += "type:transform\n"
joints = cmds.listRelatives(topNode, allDescendents = True, type = "joint")
fileContent += "transforms:" + str(len(joints)) + "\n"
... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
import sys
import os
import distutils
import sconsUtils
os.environ["CORAL_BUILD_FLAVOUR"] = "coralMaya"
sconsUtils.importBuildEnvs()
coralPath = os.path.join(os.pardir, os.pardir, "coral")
coralLib = None
try:
Import("coralLib")
except:
coralLib = SConscript(os.path.join(coralPath, "SConstruc... | Python |
import sys
import thread
import time
from coral import Node, NumericAttribute, StringAttribute
from coral.plugin import Plugin
from coral.coralUi import mainWindow
from coralMedia import SoundManager
class SoundStreamNode(Node):
def __init__(self, name, parent):
Node.__init__(self, name, parent)
... | Python |
import coralBuilder
import os
print os.getcwd()
# To build this pugin you'll need the fmod library: http://www.fmod.org/index.php/download
env = coralBuilder.buildEnv()
env.Append(LIBS = "fmodex")
env.Append(CPPPATH = os.environ["CORAL_FMOD_INCLUDES"])
env.Append(LIBPATH = os.environ["CORAL_FMOD_LIBS_PATH"])
modul... | Python |
from PyQt4 import QtGui, QtCore
from coral.coralUi.pluginUi import PluginUi
from coral.coralUi.nodeInspector.nodeInspector import NodeInspectorWidget
from coral.coralUi.nodeEditor.nodeUi import NodeUi
from coral.coralUi.nodeEditor.nodeEditor import NodeEditor
from coral.coralUi.mainWindow import MainWindow
from coral.... | Python |
class KernelNodeInspectorWidget(NodeInspectorWidget):
def __init__(self, coralNode, parentWidget):
NodeInspectorWidget.__init__(self, coralNode, parentWidget)
self._kernelSourceEdit = None
self._kernelBuildConsole = None
self._attrOrderWidgets = {}
self._useSizeButtons = {... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
import sys
import os
import platform
import sconsUtils
sconsUtils.importBuildEnvs()
buildMode = sconsUtils.getEnvVar("CORAL_BUILD_MODE")
msvc_version = ""
if os.environ.has_key("MSVC_VERSION"):
msvc_version = os.environ["MSVC_VERSION"]
env = Environment(
CPPPATH = [
sconsUtils.getEnvVar("... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
#... | Python |
import time
import thread
from _coral import Node, NumericAttribute
class TimeNode(Node):
def __init__(self, name, parent):
Node.__init__(self, name, parent)
self.setClassName("Time")
self._framesPerSecond = NumericAttribute("framesPerSecond", self)
self._time =... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
#... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# <license>
# Copyright (C) 2011 Andrea Interguglielmi, All rights reserved.
# This file is part of the coral repository downloaded from http://code.google.com/p/coral-repo.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | Python |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# coding : utf-8
# author : binux(17175297.hk@gmail.com)
from sinastock import *
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Eric Lo on 2010-05-20.
Copyright (c) 2010 __lxneng@gmail.com__. http://lxneng.com All rights reserved.
"""
class Pinyin():
... | Python |
'''
Created on 2011-11-21
@author: Administrator
'''
import urllib2
import datetime
class BBStock():
def stocklist(self,reg):
pass
def getAstocklistfrombloomberg(self):
def parseonestock(src):
nlist=src.split('<td')
ret=[]
for n in nlist:
... | Python |
# -*- coding: utf-8 -*-
'''
Created on 2011-11-23
@author: Administrator
'''
from sinastock import *
import urllib2
import simplejson
import os
import urllib2
import sqlite3
import datetime
import threading
import Queue
import time
import shutil
from setting import *
def myfloat(src):
if len(... | Python |
'''
Created on 2011-11-21
@author: Administrator
'''
import urllib2
import datetime
class SINAStock():
'''
get A,HK,US stock list from all vendor
'''
def getstocklist(self,reg):
if reg=='SH':return self.getSHstocklistfromSINA()
elif reg=='HK':return self.getHKstocklistfro... | Python |
'''
Created on 2011-11-23
@author: Administrator
'''
from foxtrader import *
import datetime
import os
import shutil
import zipfile,gzip
def date2int(sdate):
return sdate.year*10000+sdate.month*100+sdate.day
def str2date(sdate):
return sdate
return datetime.date(int(sdate[:4]),int(sdate[4:6... | Python |
# -*- coding: utf-8 -*-
'''
Created on 2011-11-21
@author: Administrator
'''
import struct
import os
from setting import *
import time
import datetime
import urllib2
import simplejson as json
def myfloat(src):
if len(src.strip())==0:return 0
return float(src)
def str2date(src):
# print src
... | Python |
'''
Created on 2011-11-14
@author: Administrator
'''
from setting import *
import urllib2
import os
from stockdatadownload import *
import datetime
from foxtrader import *
from sinastock import *
from ibstock import *
from bloombergstock import *
if __name__ == '__main__':
starttime=datetime.d... | Python |
'''
Created on 2011-10-26
test for rawcontent ,errlist,jobslist use dict instead of file
@author: Administrator
'''
import os
import urllib2
import sqlite3
import datetime
import threading
import Queue
import time
import shutil
import simplejson
from setting import *
joblist={1:1}
loglist={1:1}
class ... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.