repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
heran7/edx-platform | refs/heads/master | common/djangoapps/track/__init__.py | 12133432 | |
qwertyjune/BethSaidaBible | refs/heads/master | venv/lib/python2.7/site-packages/django/contrib/contenttypes/migrations/__init__.py | 12133432 | |
kolomanschaft/updatejunkie | refs/heads/master | notifications.py | 1 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2012 Martin Hammerschmied
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 without restriction, including wit... |
MarcJoan/django | refs/heads/master | django/db/backends/sqlite3/__init__.py | 12133432 | |
vitmod/enigma2-test | refs/heads/master | lib/python/Plugins/SystemPlugins/LCNScanner/__init__.py | 12133432 | |
vipul-sharma20/oh-mainline | refs/heads/master | vendor/packages/django-celery/djcelery/backends/__init__.py | 12133432 | |
sbhowmik89/oppia | refs/heads/develop | core/platform/memcache/__init__.py | 12133432 | |
Edraak/edraak-platform | refs/heads/master | common/djangoapps/django_comment_common/__init__.py | 12133432 | |
mandeepdhami/neutron | refs/heads/master | neutron/plugins/ml2/drivers/arista/__init__.py | 12133432 | |
offbyone/Flexget | refs/heads/master | flexget/plugins/plugin_transmission.py | 9 | from __future__ import unicode_literals, division, absolute_import
import os
from datetime import datetime
from datetime import timedelta
from netrc import netrc, NetrcParseError
import logging
import base64
import re
from urlparse import urlparse
from flexget import plugin, validator
from flexget.entry import Entry
f... |
impowski/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/pytest/testing/test_capture.py | 171 | # note: py.io capture tests where copied from
# pylib 1.4.20.dev2 (rev 13d9af95547e)
from __future__ import with_statement
import pickle
import os
import sys
import _pytest._code
import py
import pytest
import contextlib
from _pytest import capture
from _pytest.capture import CaptureManager
from _pytest.main import E... |
bigdatauniversity/edx-platform | refs/heads/master | common/djangoapps/util/cache.py | 62 | """
This module aims to give a little more fine-tuned control of caching and cache
invalidation. Import these instead of django.core.cache.
Note that 'default' is being preserved for user session caching, which we're
not migrating so as not to inconvenience users by logging them all out.
"""
import urllib
from functoo... |
ammarkhann/FinalSeniorCode | refs/heads/master | lib/python2.7/site-packages/pip/__init__.py | 328 | #!/usr/bin/env python
from __future__ import absolute_import
import locale
import logging
import os
import optparse
import warnings
import sys
import re
# 2016-06-17 barry@debian.org: urllib3 1.14 added optional support for socks,
# but if invoked (i.e. imported), it will issue a warning to stderr if socks
# isn't a... |
hbhzwj/imalse | refs/heads/master | tools/ns-allinone-3.14.1/ns-3.14.1/src/point-to-point/bindings/modulegen__gcc_LP64.py | 14 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... |
christer155/PTVS | refs/heads/master | Python/Tests/TestData/DebuggerProject/DebugReplTest2.py | 18 | def outer(x):
outer_val = x * 2
inner(outer_val)
pass
def inner(y):
inner_val = y * 5
innermost(inner_val)
pass
def innermost(z):
innermost_val = z + 1
pass
global_val = 5
outer(5)
|
gojira/tensorflow | refs/heads/master | tensorflow/contrib/kfac/python/ops/utils_lib.py | 17 | # Copyright 2017 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... |
stuarteberg/iiboost | refs/heads/master | python/tests/broken/python_nochannels_test_class.py | 3 | ###################################################################################
# Test for the IIBoost wrapper class
###################################################################################
from iiboost import Booster
from sklearn.externals import joblib # to load data
# to show something
import matplo... |
fusion809/python-scripts | refs/heads/master | Integration/Simpson's_vector_free_iterative.py | 1 | #!/usr/bin/python3
# This script essentially finds the time taken for a
# simple pendulum that starts with zero velocity at the
# positive x-axis to reach the negative x-axis (theta=-pi)
# using Simpson's rule
# t is time and y is theta
# Import the required NumPy functions
from numpy import sin, pi, sqrt, zeros, abs... |
rubencabrera/micropython | refs/heads/master | tests/bench/from_iter-4-tuple_unbound.py | 101 | import bench
def test(num):
for i in iter(range(num//10000)):
l = [0] * 1000
l2 = tuple(map(lambda x: x, l))
bench.run(test)
|
demiaowu/vimstar | refs/heads/master | .vim/bundle/.ycm_extra_conf.py | 1 | # This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either... |
nullishzero/Portage | refs/heads/master | pym/portage/tests/dep/test_match_from_list.py | 4 | # Copyright 2006-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import sys
from portage.tests import TestCase
from portage.dep import Atom, match_from_list, _repo_separator
from portage.versions import catpkgsplit, _pkg_str
if sys.hexversion >= 0x3000000:
# pylint: disable=... |
dfm/acor | refs/heads/master | setup.py | 1 | #!/usr/bin/env python
# encoding: utf-8
import sys
import os
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
from distutils.core import setup, Extension
setup, Extension
import numpy
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sy... |
isandlaTech/cohorte-demos | refs/heads/dev | led/dump/led-demo-yun/cohorte/dist/cohorte-1.0.0-20141216.234517-57-python-distribution/repo/sleekxmpp/plugins/xep_0096/file_transfer.py | 10 | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2013 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import logging
from sleekxmpp import Iq, Message
from sleekxmpp.plugins import BasePlugin
from sleekxmpp.xmlstream.handler imp... |
vivisect/synapse | refs/heads/master | synapse/tools/guid.py | 2 | import synapse.common as s_common
import synapse.lib.output as s_output
def main(argv, outp=None):
if outp is None: # pragma: no cover
outp = s_output.OutPut()
outp.printf(s_common.guid())
if __name__ == '__main__': # pragma: no cover
import sys
sys.exit(main(sys.argv))
|
heisencoder/route-finder | refs/heads/master | third_party/lib/python/django/contrib/auth/views.py | 100 | from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, QueryDict
from django.template.response import TemplateResponse
from django.utils.http import base36_to_int, is_safe_url, urlsafe_base64_decode, urlsafe_base64_encode
from django.utils.translation... |
lair-framework/pylair | refs/heads/master | pylair/__init__.py | 12133432 | |
gangadhar-kadam/helpdesk-erpnext | refs/heads/master | erpnext/accounts/print_format/credit_note/__init__.py | 12133432 | |
mrunge/horizon | refs/heads/master | openstack_dashboard/dashboards/project/database_backups/tests.py | 11 | # Copyright 2013 Mirantis 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 agre... |
apc-llc/moose | refs/heads/master | python/TestHarness/testers/Exodiff.py | 19 | from RunApp import RunApp
from util import runCommand
import os
class Exodiff(RunApp):
@staticmethod
def validParams():
params = RunApp.validParams()
params.addRequiredParam('exodiff', [], "A list of files to exodiff.")
params.addParam('exodiff_opts', [], "Additional arguments to be passed to i... |
15Dkatz/pants | refs/heads/master | src/python/pants/java/jar/manifest.py | 26 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from contextlib impo... |
jank3/django | refs/heads/master | tests/raw_query/tests.py | 119 | from __future__ import unicode_literals
from datetime import date
from django.db.models.query_utils import InvalidQuery
from django.test import TestCase, skipUnlessDBFeature
from .models import Author, Book, BookFkAsPk, Coffee, FriendlyAuthor, Reviewer
class RawQueryTests(TestCase):
@classmethod
def setUp... |
yakky/django-filebrowser-no-grappelli | refs/heads/master | filebrowser/management/__init__.py | 12133432 | |
resurtm/recarguide | refs/heads/master | backend/common/__init__.py | 12133432 | |
Roboneet/satnogs-db | refs/heads/dev | db/api/__init__.py | 12133432 | |
ronkyo/mi-instrument | refs/heads/master | mi/instrument/nortek/vector/__init__.py | 12133432 | |
alubbock/pysb | refs/heads/master | pysb/simulator/base.py | 5 | from abc import ABCMeta, abstractmethod
import numpy as np
import itertools
import sympy
import collections
from collections.abc import Mapping, Sequence
import numbers
from pysb.core import MonomerPattern, ComplexPattern, as_complex_pattern, \
Parameter, Expression, Model, ComponentSet
from pysb.... |
tensorflow/tfjs-examples | refs/heads/master | iris/python/iris_data_test.py | 1 | # Copyright 2018 Google LLC. 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 law or a... |
dimroc/tensorflow-mnist-tutorial | refs/heads/master | lib/python3.6/site-packages/tensorflow/tensorboard/__init__.py | 12133432 | |
cfossace/test | refs/heads/master | crits/samples/templatetags/__init__.py | 12133432 | |
martydill/url_shortener | refs/heads/master | code/venv/lib/python2.7/site-packages/IPython/html/tree/__init__.py | 12133432 | |
arcean/telepathy-sunshine | refs/heads/master | debian/telepathy-sunshine/usr/lib/python2.6/dist-packages/sunshine/lqsoft/pygadu/__init__.py | 12133432 | |
gustavofonseca/inbox | refs/heads/master | frontdesk/tests/__init__.py | 12133432 | |
wimmuskee/mangrove | refs/heads/master | mangrove_libs/crawler_interfaces/khanacademy/__init__.py | 12133432 | |
yewang15215/django | refs/heads/master | tests/model_permalink/views.py | 1387 | from django.http import HttpResponse
def empty_view(request, *args, **kwargs):
return HttpResponse('')
|
Mirantis/mos-horizon | refs/heads/master | openstack_dashboard/dashboards/project/overview/__init__.py | 12133432 | |
zhimin711/nova | refs/heads/master | nova/tests/unit/test_service.py | 1 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... |
mythmon/kitsune | refs/heads/master | kitsune/twitter/__init__.py | 19 | import logging
from django import http
from django.conf import settings
from twython import Twython
log = logging.getLogger('k')
PREFIX = 'custcare_'
REDIRECT_NAME = PREFIX + 'redirect'
REQUEST_KEY_NAME = PREFIX + 'request_key'
REQUEST_SECRET_NAME = PREFIX + 'request_secret'
MAX_AGE = 3600
def url(request, over... |
cea-sec/miasm | refs/heads/master | miasm/arch/mep/arch.py | 2 | # Toshiba MeP-c4 - miasm architecture definition
# Guillaume Valadon <guillaume@valadon.net>
from builtins import range
from miasm.core.cpu import *
from miasm.core.utils import Disasm_Exception
from miasm.expression.expression import ExprId, ExprInt, ExprLoc, \
ExprMem, ExprOp, is_expr
from miasm.core.asm_ast imp... |
michelts/lettuce | refs/heads/master | tests/integration/lib/Django-1.3/tests/regressiontests/forms/localflavor/kw.py | 89 | from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
from utils import LocalFlavorTestCase
class KWLocalFlavorTests(LocalFlavorTestCase):
def test_KWCivilIDNumberField(self):
error_invalid = [u'Enter a valid Kuwaiti Civil ID number']
valid = {
'282040701483': '28204070... |
rizar/attention-lvcsr | refs/heads/master | libs/Theano/theano/tensor/opt.py | 1 | """
Tensor optimizations addressing the ops in basic.py.
"""
from __future__ import print_function
# TODO: intelligent merge for mul/add
# TODO: 0*x -> 0
import logging
import itertools
import operator
import sys
import time
import traceback
import warnings
import numpy
import numpy as N # guys... please don't do th... |
TeslaProject/external_chromium_org | refs/heads/lp5.1 | tools/mac/dump-static-initializers.py | 121 | #!/usr/bin/env python
# Copyright (c) 2013 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.
"""
Dumps a list of files with static initializers. Use with release builds.
Usage:
tools/mac/dump-static-initializers.py out/Re... |
gauravbose/digital-menu | refs/heads/master | build/lib.linux-x86_64-2.7/django/db/models/sql/aggregates.py | 76 | """
Classes to represent the default SQL aggregate functions
"""
import copy
import warnings
from django.db.models.fields import FloatField, IntegerField
from django.db.models.lookups import RegisterLookupMixin
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.functional import cached_pro... |
nju520/youtube-dl | refs/heads/master | youtube_dl/downloader/__init__.py | 101 | from __future__ import unicode_literals
from .common import FileDownloader
from .external import get_external_downloader
from .f4m import F4mFD
from .hls import HlsFD
from .hls import NativeHlsFD
from .http import HttpFD
from .rtsp import RtspFD
from .rtmp import RtmpFD
from .dash import DashSegmentsFD
from ..utils i... |
rjarv/contact-web-api | refs/heads/master | setup.py | 1 | from distutils.core import setup
setup(name='contactsapi',
version='1.0',
author='Richard Jarvis',
description='''Simple RESTful API to manage Contacts DB. Uses SqlAlchemy, CherryPy
and Postgresql DB backend.''',
package_dir={ 'contactsapi': 'src' },
packages=['contactsapi',
... |
amyvmiwei/kbengine | refs/heads/master | kbe/src/lib/python/Lib/turtledemo/tree.py | 65 | #!/usr/bin/env python3
""" turtle-example-suite:
tdemo_tree.py
Displays a 'breadth-first-tree' - in contrast
to the classical Logo tree drawing programs,
which use a depth-first-algorithm.
Uses:
(1) a tree-generator, where the drawing is
quasi the side-effect, whereas the generator
always yields No... |
DustinHolden/wishlister | refs/heads/master | src/wishlister/views.py | 52 | from django.views import generic
class HomePage(generic.TemplateView):
template_name = "home.html"
class AboutPage(generic.TemplateView):
template_name = "about.html"
|
LeGoldFish/PythonGames | refs/heads/master | Rock Paper Scissors/RPS.py | 1 | import math, time, random, sys, os
playerWins = 0
cpuWins = 0
gameCount = 0
finished = False
gameFinished = False
while not finished:
print("How many games would you like to play?\nPlease give an odd number greater than 3 and less than 15.")
numOfGames = input("> ")
if numOfGames % 2 == 0 or numOfGames < 3 or num... |
emcrispim/ZenPacks.community.IBMV7000 | refs/heads/master | ZenPacks/community/IBMV7000/parsers/parserPerf.py | 1 | ##########################################################################
# Author: Eduardo Crispim, emcrispim@gmail.com
# Date: September, 2015
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 or (a... |
xmendez/wfuzz | refs/heads/master | src/wfuzz/factories/__init__.py | 12133432 | |
lsaffre/lino-welfare | refs/heads/master | lino_welfare/modlib/esf/fixtures/__init__.py | 12133432 | |
zaina/nova | refs/heads/master | nova/api/openstack/compute/contrib/volume_attachment_update.py | 100 | # Copyright 2013 Nebula, Inc.
# 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 ... |
odootr/odoo | refs/heads/8.0 | addons/mail/mail_group_menu.py | 334 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012-today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... |
andychase/eventizer | refs/heads/master | resolve/geohash.py | 1 | # coding: UTF-8
"""
Copyright (C) 2009 Hiroaki Kawai <kawai@iij.ad.jp>
"""
try:
import _geohash
except ImportError:
_geohash = None
__all__ = ['encode','decode','decode_exactly','bbox', 'neighbors', 'expand']
_base32 = '0123456789bcdefghjkmnpqrstuvwxyz'
_base32_map = {}
for i in range(len(_base32)):
... |
googleapis/python-resource-manager | refs/heads/master | google/cloud/resourcemanager_v3/types/tag_bindings.py | 1 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... |
wouwei/PiLapse | refs/heads/master | picam/picamEnv/Lib/site-packages/setuptools/command/install_egg_info.py | 112 | from distutils import log, dir_util
import os
from setuptools.extern.six.moves import map
from setuptools import Command
from setuptools.archive_util import unpack_archive
import pkg_resources
class install_egg_info(Command):
"""Install an .egg-info directory for the package"""
description = "Install an .e... |
JorgeCoock/django | refs/heads/master | tests/defer/__init__.py | 12133432 | |
compucorp/civihr-docs | refs/heads/master | src/__init__.py | 12133432 | |
Thielak/program-y | refs/heads/rc | src/test/utils/text/__init__.py | 12133432 | |
drufat/vispy | refs/heads/master | vispy/gloo/tests/__init__.py | 12133432 | |
DefyVentures/edx-platform | refs/heads/master | lms/djangoapps/django_comment_client/tests/mock_cs_server/mock_cs_server.py | 47 | from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import json
from logging import getLogger
logger = getLogger(__name__)
class MockCommentServiceRequestHandler(BaseHTTPRequestHandler):
'''
A handler for Comment Service POST requests.
'''
protocol = "HTTP/1.0"
def do_POST(self):
... |
arbrandes/edx-platform | refs/heads/master | openedx/core/djangoapps/content/course_overviews/migrations/0010_auto_20160329_2317.py | 4 | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_overviews', '0009_readd_facebook_url'),
]
operations = [
migrations.RemoveField(
model_name='courseoverview',
name='facebook_url',
),
migratio... |
archifix/settings | refs/heads/master | sublime/Packages/SublimeCodeIntel/libs/codeintel2/lang_python.py | 6 | #!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (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.mozil... |
shoheietzel/proj5-maps | refs/heads/master | env/lib/python3.6/site-packages/click/utils.py | 201 | import os
import sys
from .globals import resolve_color_default
from ._compat import text_type, open_stream, get_filesystem_encoding, \
get_streerror, string_types, PY2, binary_streams, text_streams, \
filename_to_ui, auto_wrap_for_ansi, strip_ansi, should_strip_ansi, \
_default_text_stdout, _default_text... |
av8ramit/tensorflow | refs/heads/master | tensorflow/contrib/timeseries/examples/known_anomaly.py | 53 | # Copyright 2017 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... |
jhpyle/docassemble | refs/heads/master | docassemble_demo/docassemble/demo/income.py | 1 | from docassemble.base.util import DADict
__all__ = ['IncomeDict']
class IncomeDict(DADict):
def hook_on_gather(self):
if 'benefits' in self.elements and self['benefits'].receives and 'employment' in self.elements and self['employment'].receives and self['benefits'].amount + self['employment'].amount > 200... |
elkingtonmcb/PredictionIO | refs/heads/develop | examples/scala-parallel-similarproduct/add-and-return-item-properties/data/send_query.py | 283 | """
Send sample query to prediction engine
"""
import predictionio
engine_client = predictionio.EngineClient(url="http://localhost:8000")
print engine_client.send_query({"items": ["i1", "i3"], "num": 4})
|
snakeleon/YouCompleteMe-x64 | refs/heads/master | third_party/ycmd/third_party/jedi_deps/jedi/jedi/third_party/django-stubs/setup.py | 1 | import os
from distutils.core import setup
from typing import List
from setuptools import find_packages
def find_stub_files(name: str) -> List[str]:
result = []
for root, dirs, files in os.walk(name):
for file in files:
if file.endswith('.pyi'):
if os.path.sep in root:
... |
shermdog/py-junos-eznc | refs/heads/master | lib/jnpr/junos/op/fpc.py | 19 | """
Pythonifier for Route Table/View
"""
from jnpr.junos.factory import loadyaml
from os.path import splitext
_YAML_ = splitext(__file__)[0] + '.yml'
globals().update(loadyaml(_YAML_))
|
sander76/home-assistant | refs/heads/dev | tests/components/konnected/test_config_flow.py | 6 | """Tests for Konnected Alarm Panel config flow."""
from unittest.mock import patch
import pytest
from homeassistant.components import konnected
from homeassistant.components.konnected import config_flow
from tests.common import MockConfigEntry
@pytest.fixture(name="mock_panel")
async def mock_panel_fixture():
... |
onelab-eu/myslice | refs/heads/onelab | sla/slaclient/restclient_nosecurity.py | 2 | # -*- coding: utf-8 -*-
import requests
import xmlconverter
import wsag_model
"""REST client to SLA Manager.
Contains a generic rest client and wrappers over this generic client
for each resource.
Each resource client implements business-like() functions, but
returns a tuple (output, requests.Response)
The reso... |
myfluxi/android_kernel_oneplus_msm8974 | refs/heads/3.40-5 | tools/perf/scripts/python/net_dropmonitor.py | 4235 | # Monitor the system for dropped packets and proudce a report of drop locations and counts
import os
import sys
sys.path.append(os.environ['PERF_EXEC_PATH'] + \
'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
from perf_trace_context import *
from Core import *
from Util import *
drop_log = {}
kallsyms = []
def... |
brchiu/tensorflow | refs/heads/master | tensorflow/python/ops/control_flow_util_v2.py | 4 | # 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 applica... |
rismalrv/edx-platform | refs/heads/master | common/djangoapps/xblock_django/migrations/__init__.py | 12133432 | |
misdoro/python-ase | refs/heads/master | ase/test/fleur/__init__.py | 12133432 | |
takis/django | refs/heads/master | django/conf/locale/hu/__init__.py | 12133432 | |
dcroc16/skunk_works | refs/heads/master | google_appengine/lib/django-1.2/django/conf/locale/cy/__init__.py | 12133432 | |
eayunstack/python-neutronclient | refs/heads/master | neutronclient/tests/unit/osc/v2/dynamic_routing/__init__.py | 12133432 | |
ktan2020/legacy-automation | refs/heads/master | win/Lib/site-packages/pip-1.3.1-py2.7.egg/pip/commands/unzip.py | 148 | from pip.commands.zip import ZipCommand
class UnzipCommand(ZipCommand):
"""Unzip individual packages."""
name = 'unzip'
summary = 'Unzip individual packages.'
|
TansyArron/pants | refs/heads/master | src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py | 4 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import itertools
imp... |
Coelhon/MasterRepo.repository | refs/heads/master | plugin.video.specto/resources/lib/resolvers/okru.py | 10 | # -*- coding: utf-8 -*-
'''
Specto Add-on
Copyright (C) 2015 lambda
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 3 of the License, or
(at your option) any l... |
sharifmamun/ansible | refs/heads/devel | v1/ansible/runner/shell_plugins/__init__.py | 12133432 | |
hanleilei/note | refs/heads/master | python/vir_manager/job/colony.py | 12133432 | |
southwolf/amonone | refs/heads/master | amonone/web/apps/settings/tests/__init__.py | 12133432 | |
sputnick-dev/weboob | refs/heads/master | modules/cragr/mobile/__init__.py | 12133432 | |
saimn/glue | refs/heads/master | glue/app/tests/__init__.py | 12133432 | |
gertingold/scipy | refs/heads/master | benchmarks/benchmarks/go_benchmark_functions/go_funcs_S.py | 11 | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
from numpy import (abs, asarray, cos, floor, arange, pi, prod, roll, sin,
sqrt, sum, repeat, atleast_2d, tril)
from numpy.random import uniform
from .go_benchmark import Benchmark
class Salomon(Benchmark):
... |
anhstudios/swganh | refs/heads/develop | data/scripts/templates/object/tangible/wearables/bustier/__init__.py | 12133432 | |
mdaniel/intellij-community | refs/heads/master | python/testData/refactoring/move/moveSymbolDoesntReorderImportsInUsageFile/before/src/a.py | 12133432 | |
petrus-v/odoo | refs/heads/8.0 | addons/website_instantclick/__init__.py | 12133432 | |
edmorley/django | refs/heads/master | tests/i18n/other2/locale/de/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.