repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
teslaji/homebase | refs/heads/master | venv/HomeBase/lib/python3.5/site-packages/wheel/wininst2wheel.py | 472 | #!/usr/bin/env python
import os.path
import re
import sys
import tempfile
import zipfile
import wheel.bdist_wheel
import distutils.dist
from distutils.archive_util import make_archive
from shutil import rmtree
from wheel.archive import archive_wheelfile
from argparse import ArgumentParser
from glob import iglob
egg_in... |
akrherz/idep | refs/heads/main | scripts/cscap/assign_mlra.py | 2 | """Assign a MLRA_ID to the huc12 table"""
from __future__ import print_function
from pyiem.util import get_dbconn
def main():
"""Go Main Go"""
pgconn = get_dbconn("idep")
cursor = pgconn.cursor()
cursor.execute(
"""
update huc12 SET mlra_id = m.mlra_id FROM mlra m
WHERE ST_Contains(m.... |
fitermay/intellij-community | refs/heads/master | python/testData/optimizeImports/simple.after.py | 12133432 | |
Vegasvikk/django-cms | refs/heads/develop | cms/test_utils/project/fakemlng/migrations/__init__.py | 12133432 | |
hodgestar/overalls | refs/heads/master | overalls/uploaders/__init__.py | 12133432 | |
40023256/2015cd_midterm- | refs/heads/master | static/Brython3.1.0-20150301-090019/Lib/posixpath.py | 722 | """Common operations on Posix pathnames.
Instead of importing this module directly, import os and refer to
this module as os.path. The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Mac, Windows),
os.path provides the same operations in a manner specific to that
platform, and is a... |
bdeggleston/cassandra-dtest | refs/heads/master | upgrade_tests/upgrade_through_versions_test.py | 4 | import operator
import os
import pprint
import random
import signal
import time
import uuid
import logging
import pytest
import psutil
from collections import defaultdict, namedtuple
from multiprocessing import Process, Queue
from queue import Empty, Full
from cassandra import ConsistencyLevel, WriteTimeout
from cass... |
pablorecio/hendrix | refs/heads/master | hendrix/blog/__init__.py | 12133432 | |
JoeJasinski/WindyTransit | refs/heads/master | mobiletrans/mtlocation/migrations/__init__.py | 12133432 | |
openhealthcare/randomise.me | refs/heads/master | rm/userprofiles/management/commands/__init__.py | 12133432 | |
ChristianKreuzberger/django-rest-imageupload-example | refs/heads/master | django_rest_imageupload_backend/backend_app/__init__.py | 12133432 | |
nwlunatic/vmmaster-frontend | refs/heads/master | dashboard/migrations/__init__.py | 12133432 | |
yaseppochi/mailman | refs/heads/master | src/mailman/handlers/docs/__init__.py | 12133432 | |
raymondxyang/tensorflow | refs/heads/master | tensorflow/python/summary/__init__.py | 12133432 | |
mandeepdhami/neutron | refs/heads/master | neutron/scheduler/__init__.py | 12133432 | |
crowdhackathon-transport/optimizers | refs/heads/master | crowdstance-api/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/charade/gb2312freq.py | 3131 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... |
zdary/intellij-community | refs/heads/master | python/testData/hierarchy/call/Static/InnerFunction/main.py | 80 | def bar():
pass
def target_func():
def foo():
return bar()
foo()
target_<caret>func() |
mfjb/scikit-learn | refs/heads/master | sklearn/neighbors/kde.py | 303 | """
Kernel Density Estimation
-------------------------
"""
# Author: Jake Vanderplas <jakevdp@cs.washington.edu>
import numpy as np
from scipy.special import gammainc
from ..base import BaseEstimator
from ..utils import check_array, check_random_state
from ..utils.extmath import row_norms
from .ball_tree import BallT... |
AEW2015/PYNQ_PR_Overlay | refs/heads/master | python/pynq/pl.py | 1 | # Copyright (c) 2016, Xilinx, 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:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of ... |
ojengwa/grr | refs/heads/master | lib/aff4_objects/users_test.py | 4 | #!/usr/bin/env python
# pylint: disable=unused-import,g-bad-import-order
from grr.lib import server_plugins
# pylint: enable=unused-import,g-bad-import-order
from grr.lib import aff4
from grr.lib import rdfvalue
from grr.lib import test_lib
class UsersTest(test_lib.AFF4ObjectTest):
def setUp(self):
super(Use... |
CAAD-RWTH/ClockworkForDynamo | refs/heads/master | nodes/0.9.x/python/Element.CopyByVector.py | 6 | import clr
from System.Collections.Generic import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from R... |
fujunwei/chromium-crosswalk | refs/heads/master | tools/cr/cr/targets/chrome_shell.py | 29 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module for the chrome_shell targets."""
import cr
class ChromeShellTarget(cr.NamedTarget):
NAME = 'chrome_shell'
CONFIG = cr.Config.From(
CR_... |
brchiu/tensorflow | refs/heads/master | tensorflow/contrib/cluster_resolver/python/training/slurm_cluster_resolver.py | 2 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# 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 ... |
yashodhank/erpnext | refs/heads/develop | erpnext/schools/doctype/course_scheduling_tool/course_scheduling_tool.py | 10 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import calendar
from frappe import _
from frappe.model.document import Document
from frappe.utils import add_days, getdate... |
IndonesiaX/edx-platform | refs/heads/master | common/djangoapps/third_party_auth/api/__init__.py | 12133432 | |
andmos/ansible | refs/heads/devel | lib/ansible/modules/cloud/heroku/__init__.py | 12133432 | |
ASCrookes/django | refs/heads/master | django/conf/locale/sl/__init__.py | 12133432 | |
watonyweng/nova | refs/heads/master | nova/db/sqlalchemy/migrate_repo/versions/298_mysql_extra_specs_binary_collation.py | 60 | # Copyright 2015 Cisco Systems, 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 o... |
SimenB/jasmine | refs/heads/master | lib/jasmine-core/core.py | 163 | import pkg_resources
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
class Core(object):
@classmethod
def js_package(cls):
return __package__
@classmethod
def css_package(cls):
return __package__
@classmethod
def image_... |
antoviaque/edx-platform | refs/heads/master | lms/djangoapps/student_account/__init__.py | 12133432 | |
eSmelser/SnookR | refs/heads/develop | SnookR/substitutes/__init__.py | 12133432 | |
jgoclawski/django | refs/heads/master | tests/check_framework/__init__.py | 12133432 | |
mitocw/edx-platform | refs/heads/master | pavelib/utils/test/__init__.py | 12133432 | |
jinluyuan/osf.io | refs/heads/develop | tests/test_cas_authentication.py | 14 | # -*- coding: utf-8 -*-
import mock
import unittest
from nose.tools import * # flake8: noqa (PEP8 asserts)
import httpretty
import furl
from framework.auth import cas
from tests.base import OsfTestCase, fake
from tests.factories import UserFactory
def make_successful_response(user):
return cas.CasResponse(
... |
UCBerkeleySETI/blimpy | refs/heads/master | blimpy/io/fil_writer.py | 1 | """
Procedures for writing to a Filterbank File
"""
import time
import numpy as np
from .sigproc import generate_sigproc_header
def write_to_fil(wf, filename_out, *args, **kwargs):
""" Write data to .fil file.
It check the file size then decides how to write the file.
Args:
filename_out (str)... |
aldian/tensorflow | refs/heads/master | tensorflow/python/kernel_tests/init_ops_test.py | 8 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... |
yunfanz/ReionBub | refs/heads/master | visualizations/visualize.py | 1 | import numpy as np
import os
import fnmatch
from scipy import ndimage
import matplotlib.pyplot as plt
import seaborn as sns
from watershed import *
from skimage import measure, morphology
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
from joblib import Parallel, delayed
#See
#segmentation.mark_boundaries wor... |
miikka-h/Projektikurssi17 | refs/heads/master | pi3/device_finder.py | 1 | #!/bin/python3
import evdev
import pyudev
from threading import Event
from queue import Queue
# keyboard detection
context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
devinput = "/dev/input/"
event_location = ""
device_list = []
monitor.filter_by('input')
print("kissa")
def log_event(actio... |
quru/qis | refs/heads/master | src/imageserver/image_manager.py | 1 | #
# Quru Image Server
#
# Document: image_manager.py
# Date started: 07 Mar 2011
# By: Matt Fozard
# Purpose: Image management engine and primary class
# Requires:
# Copyright: Quru Ltd (www.quru.com)
# Licence:
#
# This program is free software: you can redistribute it and/or modify
# it... |
gregkorte/Python-Koans | refs/heads/master | python2/libs/mock.py | 249 | # mock.py
# Test tools for mocking and patching.
# Copyright (C) 2007-2009 Michael Foord
# E-mail: fuzzyman AT voidspace DOT org DOT uk
# mock 0.6.0
# http://www.voidspace.org.uk/python/mock/
# Released subject to the BSD License
# Please see http://www.voidspace.org.uk/python/license.shtml
# Scripts maintained at h... |
caisq/tensorflow | refs/heads/master | tensorflow/contrib/learn/python/learn/estimators/composable_model.py | 42 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... |
tdautc19841202/micropython | refs/heads/master | tests/io/stringio_with.py | 47 | import _io as io
# test __enter__/__exit__
with io.StringIO() as b:
b.write("foo")
print(b.getvalue())
|
foobacca/django-cms | refs/heads/develop | cms/plugins/flash/forms.py | 22 | from django import forms
from cms.plugins.flash.models import Flash
class FlashForm(forms.ModelForm):
class Meta:
model = Flash
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type') |
naro/django-guardian | refs/heads/master | guardian/exceptions.py | 47 | """
Exceptions used by django-guardian. All internal and guardian-specific errors
should extend GuardianError class.
"""
class GuardianError(Exception):
pass
class NotUserNorGroup(GuardianError):
pass
class ObjectNotPersisted(GuardianError):
pass
class WrongAppError(GuardianError):
pass
class Mixed... |
tux-00/ansible | refs/heads/devel | test/units/parsing/__init__.py | 12133432 | |
benjaminrigaud/django | refs/heads/master | tests/i18n/other2/locale/de/__init__.py | 12133432 | |
xin3liang/platform_external_chromium_org_third_party_skia | refs/heads/master | gm/copy_config.py | 20 | #!/usr/bin/python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utility to duplicate a config in some subset of our GM expectation files.
Created for http://skbug.com/2752 ('split existing "gpu" ... |
vladon/omim | refs/heads/master | 3party/Alohalytics/tests/googletest/test/gtest_test_utils.py | 674 | #!/usr/bin/env python
#
# Copyright 2006, 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 list... |
sparcs-kaist/otlplus | refs/heads/develop | apps/support/__init__.py | 12133432 | |
2baOrNot2ba/dreamBeam | refs/heads/master | scripts/__init__.py | 12133432 | |
Kazade/NeHe-Website | refs/heads/master | google_appengine/lib/django-1.2/tests/modeltests/reserved_names/__init__.py | 12133432 | |
yuhangwang/meson | refs/heads/master | mparser.py | 4 | # Copyright 2014-2015 The Meson development team
# 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 agree... |
abdoosh00/edraak | refs/heads/master | common/lib/xmodule/xmodule/vertical_module.py | 9 | from xblock.fragment import Fragment
from xmodule.x_module import XModule, STUDENT_VIEW
from xmodule.seq_module import SequenceDescriptor
from xmodule.progress import Progress
from xmodule.studio_editable import StudioEditableModule, StudioEditableDescriptor
from pkg_resources import resource_string
from copy import co... |
manuelli/director | refs/heads/corl-master | src/python/scripts/videoPlayer.py | 5 | import os
import PythonQt
from PythonQt import QtCore, QtGui, QtUiTools
from director.timercallback import TimerCallback
import director.objectmodel as om
from director import lcmUtils
from director import cameraview
from director import vtkAll as vtk
import json
import drc as lcmdrc
CAPTURE_CHANNEL = 'DECKLINK_VIDEO... |
Zumochi/eve-wspace | refs/heads/develop | evewspace/core/management/commands/__init__.py | 12133432 | |
wimnat/ansible | refs/heads/devel | test/units/parsing/utils/__init__.py | 12133432 | |
visualputty/Landing-Lights | refs/heads/master | django/contrib/redirects/middleware.py | 447 | from django.contrib.redirects.models import Redirect
from django import http
from django.conf import settings
class RedirectFallbackMiddleware(object):
def process_response(self, request, response):
if response.status_code != 404:
return response # No need to check for a redirect for non-404 re... |
frost12/fc2 | refs/heads/master | contrib/bitrpc/bitrpc.py | 2348 | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:8332")
else:
access = Ser... |
arjunbm13/youtube-dl | refs/heads/master | youtube_dl/extractor/philharmoniedeparis.py | 116 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
float_or_none,
int_or_none,
parse_iso8601,
xpath_text,
)
class PhilharmonieDeParisIE(InfoExtractor):
IE_DESC = 'Philharmonie de Paris'
_VALID_URL = r'http://live\.philharmoniedepari... |
boothead/karl | refs/heads/master | karl/utilities/converters/rtf.py | 1 | # Copyright (C) 2008-2009 Open Society Institute
# Thomas Moroz: tmoroz@sorosny.org
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License Version 2 as published
# by the Free Software Foundation. You may not use, modify or distribu... |
gibxxi/nzbToMedia | refs/heads/master | libs/rarfile1/test/testcorrupt.py | 5 | #! /usr/bin/env python
import rarfile
import sys, os, time
import tempfile
def progress():
sys.stdout.write('.')
sys.stdout.flush()
def try_read(tmpfn):
#progress()
try:
rf = rarfile.RarFile(tmpfn)
if rf.needs_password():
rf.setpassword('password')
except rarfile.Error... |
pedestre/Kernel-Apolo-JB-4.1.2 | refs/heads/master | tools/perf/util/setup.py | 2554 | #!/usr/bin/python2
from distutils.core import setup, Extension
from os import getenv
cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
cflags += getenv('CFLAGS', '').split()
perf = Extension('perf',
sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
'util/evsel.c', 'util/cpumap.c', 'util/... |
ppries/tensorflow | refs/heads/master | tensorflow/python/kernel_tests/identity_op_py_test.py | 29 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... |
ktritz/vispy | refs/heads/master | vispy/scene/visuals.py | 7 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
The classes in scene.visuals are visuals that may be added to a scenegraph
using the methods and properties defined in `vispy.scene.Node` such as name,
visible, parent, chi... |
tangrams/yaml-cpp | refs/heads/master | test/gtest-1.8.0/googlemock/scripts/fuse_gmock_files.py | 242 | #!/usr/bin/env python
#
# Copyright 2009, 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 list... |
LumaPictures/rez | refs/heads/pull_requests | repository/arch/x86_64/package.py | 6 | name = "arch"
version = "x86_64"
authors = [
"ajohns"
]
description = \
"""
Package representing the architecture.
"""
uuid = "repository.arch"
|
mgit-at/ansible | refs/heads/devel | test/units/module_utils/facts/system/test_lsb.py | 18 | # unit tests for ansible system lsb fact collectors
# -*- coding: utf-8 -*-
#
# Ansible 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.... |
mattjmorrison/ReportLab | refs/heads/master | src/reportlab/graphics/barcode/lto.py | 14 | # (c) 2008 Jerome Alet - <alet@librelogiciel.com>
# Licensing terms : ReportLab's license.
import string
from code39 import Standard39
from reportlab.lib import colors
from reportlab.lib.units import cm
class BaseLTOLabel(Standard39) :
"""
Base class for LTO labels.
Specification taken from "IBM LTO Ult... |
Glottotopia/aagd | refs/heads/master | moin/local/moin/build/lib.linux-x86_64-2.6/MoinMoin/action/RenamePage.py | 2 | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - RenamePage action
This action allows you to rename a page.
@copyright: 2002-2004 Michael Reinsch <mr@uue.org>,
2006-2007 MoinMoin:ThomasWaldmann,
2007 MoinMoin:ReimarBauer
@license: GNU GPL, see COPYING for details.
... |
RFS4ever/pyDdnsPod | refs/heads/master | pyDdnsPod.py | 1 | #!/usr/bin/env python3
#
# 获取域名列表
# curl -X POST https://dnsapi.cn/Domain.List -d 'login_email=api@dnspod.com&login_password=password&format=json'
#
# 获取记录列表
# curl -X POST https://dnsapi.cn/Record.List -d 'login_email=api@dnspod.com&login_password=password&format=json&domain_id=2317346'
import socket
import urllib.re... |
RachitKansal/scikit-learn | refs/heads/master | sklearn/ensemble/voting_classifier.py | 178 | """
Soft Voting/Majority Rule classifier.
This module contains a Soft Voting/Majority Rule classifier for
classification estimators.
"""
# Authors: Sebastian Raschka <se.raschka@gmail.com>,
# Gilles Louppe <g.louppe@gmail.com>
#
# Licence: BSD 3 clause
import numpy as np
from ..base import BaseEstimator
f... |
steveb/heat | refs/heads/master | heat/api/cfn/v1/__init__.py | 10 | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... |
Diptanshu8/zulip | refs/heads/master | zerver/lib/url_preview/oembed/__init__.py | 31 | from __future__ import absolute_import
from typing import Optional, Any, Text
from pyoembed import oEmbed, PyOembedException
def get_oembed_data(url, maxwidth=640, maxheight=480):
# type: (Text, Optional[int], Optional[int]) -> Any
try:
data = oEmbed(url, maxwidth=maxwidth, maxheight=maxheight)
ex... |
ActiveState/code | refs/heads/master | recipes/Python/577544_Elliptic_Curve_Prime/recipe-577544.py | 1 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import math
import random
#y^2=x^3+ax+b mod n
prime=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, ... |
lundjordan/mozharness | refs/heads/master | configs/talos/windows_config.py | 10 | import os
import socket
PYTHON = 'c:/mozilla-build/python27/python.exe'
PYTHON_DLL = 'c:/mozilla-build/python27/python27.dll'
VENV_PATH = os.path.join(os.getcwd(), 'build/venv')
config = {
"log_name": "talos",
"buildbot_json_path": "buildprops.json",
"installer_path": "installer.exe",
"virtualenv_path... |
JorgeCoock/django | refs/heads/master | tests/template_backends/test_utils.py | 351 | from django.core.exceptions import ImproperlyConfigured
from django.template import engines
from django.test import SimpleTestCase, override_settings
class TemplateStringsTests(SimpleTestCase):
@override_settings(TEMPLATES=[{
'BACKEND': 'raise.import.error',
}])
def test_backend_import_error(self... |
balint256/gnuradio | refs/heads/master | gr-analog/python/analog/qa_pwr_squelch.py | 10 | #!/usr/bin/env python
#
# Copyright 2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your optio... |
bboozzoo/sparts | refs/heads/master | sparts/tasks/poller.py | 5 | # Copyright (c) 2014, Facebook, Inc. All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
from .periodic import PeriodicTa... |
tonygalmiche/ove_groupe | refs/heads/master | __init__.py | 1 | # -*- coding: utf-8 -*-
import ove_groupe
|
willingc/oh-mainline | refs/heads/master | vendor/packages/python-dateutil/updatezinfo.py | 31 | #!/usr/bin/python
from dateutil.zoneinfo import rebuild
import shutil
import sys
import os
import re
SERVER = "elsie.nci.nih.gov"
DIR = "/pub"
NAME = re.compile("tzdata(.*).tar.gz")
def main():
if len(sys.argv) == 2:
tzdata = sys.argv[1]
else:
from ftplib import FTP
print "Connecting t... |
jmmease/pandas | refs/heads/master | pandas/tests/tseries/conftest.py | 2 | import pytest
import pandas.tseries.offsets as offsets
@pytest.fixture(params=[getattr(offsets, o) for o in offsets.__all__])
def offset_types(request):
return request.param
@pytest.fixture(params=[None, 'UTC', 'Asia/Tokyo', 'US/Eastern',
'dateutil/Asia/Tokyo', 'dateutil/US/Pacific'])
de... |
SMFOSS/CheesePrism | refs/heads/master | tests/something_else/something_else/__init__.py | 9480 | #
|
DSLituiev/scikit-learn | refs/heads/master | examples/covariance/plot_covariance_estimation.py | 99 | """
=======================================================================
Shrinkage covariance estimation: LedoitWolf vs OAS and max-likelihood
=======================================================================
When working with covariance estimation, the usual approach is to use
a maximum likelihood estimator,... |
nityansuman/Python-3 | refs/heads/master | puzzles/string_master.py | 2 | ''' Two strings are given.
Modify 1st string such that all the common characters of the 2nd strings have to be removed
and the uncommon characters of the 2nd string have to be concatenated with uncommon characters of the 1st string.
Note: If the modified string is empty then print '-1'. '''
if __name__ == "__ma... |
simudream/django-pipeline | refs/heads/master | pipeline/compressors/__init__.py | 5 | from __future__ import unicode_literals
import base64
import os
import posixpath
import re
from itertools import takewhile
from django.contrib.staticfiles.storage import staticfiles_storage
from django.utils.encoding import smart_bytes, force_text
from pipeline.conf import settings
from pipeline.utils import to_cla... |
gautamMalu/rootfs_xen_arndale | refs/heads/master | usr/lib/python2.7/SimpleHTTPServer.py | 29 | """Simple HTTP Server.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.6"
__all__ = ["SimpleHTTPRequestHandler"]
import os
import posixpath
import BaseHTTPServer
import urllib
import cgi
import sys
import shutil
impor... |
rspavel/spack | refs/heads/develop | var/spack/repos/builtin/packages/xabclib/package.py | 5 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Xabclib(MakefilePackage):
"""
Xabclib (eXtended ABCLib) is a numerical library with au... |
sabi0/intellij-community | refs/heads/master | python/testData/refactoring/move/relativeImportsToModulesInSameMovedPackageNotUpdated/after/src/pkg/m5.py | 12133432 | |
golismero/golismero | refs/heads/master | thirdparty_libs/django/conf/locale/bn/__init__.py | 12133432 | |
ellisdg/3DUnetCNN | refs/heads/master | unet3d/models/keras/resnet/__init__.py | 12133432 | |
mworion/mountwizzard | refs/heads/2.5 | mountwizzard/baseclasses/__init__.py | 12133432 | |
kwailamchan/programming-languages | refs/heads/master | python/aldebaran/hana/hana/motion/move/motion_walkCustomization.py | 3 | # -*- encoding: UTF-8 -*-
''' Walk: Small example to make Nao walk '''
''' with gait customization '''
''' NAO is Keyser Soze '''
import sys
import time
import almath
from naoqi import ALProxy
def StiffnessOn(proxy):
# We use the "Body" name to signify the collection of all joint... |
vertelab/odoo-smart | refs/heads/master | smart_salary_simulator_se/controllers/__init__.py | 7372 | import main
|
pixyj/feel | refs/heads/master | django-server/feel/concept/migrations/0001_initial.py | 1 | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-07 06:01
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
... |
nopjmp/SickRage | refs/heads/master | sickrage/providers/torrent/TorrentProvider.py | 3 | # coding=utf-8
# This file is part of SickRage.
#
# URL: https://sickrage.github.io
# Git: https://github.com/SickRage/SickRage.git
#
# SickRage 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... |
unicef/un-partner-portal | refs/heads/develop | backend/unpp_api/apps/project/migrations/0023_auto_20171005_0335.py | 1 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-05 03:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... |
bleib1dj/boto | refs/heads/develop | tests/integration/sns/test_cert_verification.py | 126 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software withou... |
gnowxilef/Wox | refs/heads/master | PythonHome/Scripts/chardetect-script.py | 13 | #!d:\Personal\Github\Wox\PythonHome\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'chardet==2.3.0','console_scripts','chardetect'
__requires__ = 'chardet==2.3.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('chardet==2.3.0', 'console_scripts', 'chard... |
glaudsonml/kurgan-ai | refs/heads/master | tools/sqlmap/plugins/dbms/db2/syntax.py | 2 | #!/usr/bin/env python
"""
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
from plugins.generic.syntax import Syntax as GenericSyntax
class Syntax(GenericSyntax):
def __init__(self):
GenericSyntax.__init__(self)
@staticmethod
de... |
bjh83/googletest | refs/heads/master | test/gtest_uninitialized_test.py | 2901 | #!/usr/bin/env python
#
# Copyright 2008, 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 list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.