repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
GunoH/intellij-community
refs/heads/master
python/testData/inspections/PySingleQuotedDocstringInspection/test.py
83
<weak_warning descr="Triple double-quoted strings should be used for docstrings.">'''</weak_warning>package docstring<weak_warning descr="Triple double-quoted strings should be used for docstrings.">'''</weak_warning> def foo(): <weak_warning descr="Triple double-quoted strings should be used for docstrings.">"</wea...
cydenix/OpenGLCffi
refs/heads/master
OpenGLCffi/GLES2/EXT/EXT/multi_draw_indirect.py
1
from OpenGLCffi.GLES2 import params @params(api='gles2', prms=['mode', 'indirect', 'drawcount', 'stride']) def glMultiDrawArraysIndirectEXT(mode, indirect, drawcount, stride): pass @params(api='gles2', prms=['mode', 'type', 'indirect', 'drawcount', 'stride']) def glMultiDrawElementsIndirectEXT(mode, type, indirect, ...
obi-two/Rebelion
refs/heads/master
data/scripts/templates/object/building/faction_perk/hq/shared_hq_s05_fp.py
2
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/faction_perk/hq/shared_hq_s05_fp.iff" result.attribute_template_id ...
RapidApplicationDevelopment/tensorflow
refs/heads/master
tensorflow/contrib/learn/python/learn/tests/dataframe/feeding_queue_runner_test.py
30
# 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...
aferr/LatticeMemCtl
refs/heads/master
src/arch/x86/isa/insts/simd64/integer/logical/exclusive_or.py
91
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
showgood/YCM_windows
refs/heads/master
third_party/bottle/test/test_contextlocals.py
50
# -*- coding: utf-8 -*- ''' Some objects are context-local, meaning that they have different values depending on the context they are accessed from. A context is currently defined as a thread. ''' import unittest import bottle import threading def run_thread(func): t = threading.Thread(target=func) t.start()...
MalloyPower/parsing-python
refs/heads/master
front-end/testsuite-python-lib/Python-2.0/Lib/dos-8x3/test_err.py
27
#! /usr/bin/env python """Test the errno module Roger E. Masse """ import errno from test_support import verbose errors = ['E2BIG', 'EACCES', 'EADDRINUSE', 'EADDRNOTAVAIL', 'EADV', 'EAFNOSUPPORT', 'EAGAIN', 'EALREADY', 'EBADE', 'EBADF', 'EBADFD', 'EBADMSG', 'EBADR', 'EBADRQC', 'EBADSLT', ...
fengbaicanhe/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/gis/db/backends/spatialite/adapter.py
624
from django.db.backends.sqlite3.base import Database from django.contrib.gis.db.backends.adapter import WKTAdapter class SpatiaLiteAdapter(WKTAdapter): "SQLite adaptor for geometry objects." def __conform__(self, protocol): if protocol is Database.PrepareProtocol: return str(self)
lepricon49/CouchPotatoServer
refs/heads/master
libs/html5lib/treebuilders/_base.py
715
from __future__ import absolute_import, division, unicode_literals from six import text_type from ..constants import scopingElements, tableInsertModeElements, namespaces # The scope markers are inserted when entering object elements, # marquees, table cells, and table captions, and are used to prevent formatting # fr...
j00bar/ansible
refs/heads/devel
contrib/inventory/ssh_config.py
41
#!/usr/bin/env python # (c) 2014, Tomas Karasek <tomas.karasek@digile.fi> # # This file is part of Ansible. # # 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 # (a...
fresskarma/tinyos-1.x
refs/heads/master
contrib/handhelds/swtest/RadioTest/test_uart.py
2
#!/usr/bin/python ''' Copyright (c) 2005 Hewlett-Packard Company 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 li...
codilime/cloudify-plugins-common
refs/heads/master
cloudify/tests/test_lifecycle_retry.py
2
######## # Copyright (c) 2015 GigaSpaces Technologies Ltd. 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...
jalavik/invenio
refs/heads/master
invenio/modules/jsonalchemy/jsonext/engines/mongodb_pymongo.py
14
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013, 2014 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any...
vigilv/scikit-learn
refs/heads/master
examples/linear_model/plot_sparse_recovery.py
243
""" ============================================================ Sparse recovery: feature selection for sparse linear models ============================================================ Given a small number of observations, we want to recover which features of X are relevant to explain y. For this :ref:`sparse linear ...
xpol/gyp
refs/heads/master
test/library/gyptest-shared-obj-install-path.py
53
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that .so files that are order only dependencies are specified by their install location rather than by their alias. """ # Pyth...
mislavcimpersak/django-daguerre
refs/heads/master
daguerre/migrations/__init__.py
12133432
rasjani/xbmc-moontvfi
refs/heads/master
resources/__init__.py
12133432
remind101/stacker_blueprints
refs/heads/master
tests/__init__.py
12133432
Orav/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/test/test_ctypes.py
2
import unittest from ctypes.test import load_tests if __name__ == "__main__": unittest.main()
qzio/compose
refs/heads/master
tests/integration/state_test.py
27
from __future__ import unicode_literals import tempfile import shutil import os from compose import config from compose.project import Project from compose.const import LABEL_CONFIG_HASH from .testcases import DockerClientTestCase class ProjectTestCase(DockerClientTestCase): def run_up(self, cfg, **kwargs): ...
cgwalters/anaconda
refs/heads/master
tests/pyanaconda_tests/iutil_test.py
7
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in ...
roderickmackenzie/opvdm
refs/heads/master
gui/debug.py
1
# Organic Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for organic solar cells. # Copyright (C) 2012 Roderick C. I. MacKenzie # # roderick.mackenzie@nottingham.ac.uk # www.opvdm.com # Room B86 Coates, University Park, Nottingham, NG7 2RD, UK # # This program is free softwar...
dya2/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/sqlite3/test/userfunctions.py
46
#-*- coding: ISO-8859-1 -*- # pysqlite2/test/userfunctions.py: tests for user-defined functions and # aggregates. # # Copyright (C) 2005-2007 Gerhard Häring <gh@ghaering.de> # # This file is part of pysqlite. # # This software is provided 'as-is', without any express or implied # warran...
piagarwal11/GDriveLinuxClient
refs/heads/master
src/watchdog-0.8.2/src/watchdog/observers/polling.py
17
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com> # Copyright 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 # # ...
wefner/w2pfooty
refs/heads/develop
__init__.py
386048
digris/openbroadcast.org
refs/heads/development
website/apps/pushy/urls.py
386048
Microsoft/PTVS
refs/heads/master
Python/Tests/TestData/InfoBar/InfoBarEnvYml/main.py
386048
reubano/csvkit
refs/heads/master
tests/test_convert/test_geojson.py
21
#!/usr/bin/env python try: import unittest2 as unittest except ImportError: import unittest from csvkit.convert import geojs class TestGeoJSON(unittest.TestCase): def test_geojson(self): with open('examples/test_geojson.json', 'rt') as f: output = geojs.geojson2csv(f) self.as...
metalspring/android_kernel_htc_msm8974
refs/heads/kk44
scripts/gcc-wrapper.py
1276
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2011-2012, The Linux Foundation. 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 th...
samdoran/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet_facts.py
63
#!/usr/bin/python # # This is a 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. # # This Ansible library is distributed in the hope that i...
tzonghao/influxdb-python
refs/heads/master
influxdb/tests/influxdb08/client_test.py
4
# -*- coding: utf-8 -*- """Client unit tests.""" import json import socket import sys import unittest import random import warnings import mock import requests import requests.exceptions import requests_mock from nose.tools import raises from mock import patch from influxdb.influxdb08 import InfluxDBClient from inf...
edureis95/xbmc
refs/heads/master
lib/gtest/test/gtest_filter_unittest.py
2826
#!/usr/bin/env python # # Copyright 2005 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 of...
ccnmtl/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/conf/locale/uk/__init__.py
12133432
Salat-Cx65/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/codeop.py
187
r"""Utilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin function compile(), which take program text, a filename and a 'mode' and: - Return code object if the command is complete and valid - Return None if the command is incomplete - Raise Sy...
tensorflow/lingvo
refs/heads/master
lingvo/tasks/milan/score_functions.py
1
# Lint as: python3 # Copyright 2021 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 ...
ruitian/firefly
refs/heads/master
firefly/views/api/__init__.py
9
from __future__ import absolute_import # coding=utf-8 from flask import Blueprint from flask_restful import Api from .category import CategoryApi, CategoryListApi from .comment import ReplyApi from .user import FollowUserApi, BlockUserApi bp = Blueprint('api', __name__, url_prefix='/api') api = Api(bp) api.add_resour...
birkestroem/NougatUI
refs/heads/master
tools/bin/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py
217
# This file comes from # https://github.com/martine/ninja/blob/master/misc/ninja_syntax.py # Do not edit! Edit the upstream one instead. """Python module for generating .ninja files. Note that this is emphatically not a required piece of Ninja; it's just a helpful utility for build-file-generation systems that alr...
savoirfairelinux/odoo
refs/heads/master
addons/purchase/res_config.py
357
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms o...
GolovanovSrg/au-linux-kernel-spring-2016
refs/heads/master
linux/tools/perf/scripts/python/export-to-postgresql.py
238
# export-to-postgresql.py: export perf data to a postgresql database # Copyright (c) 2014, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU General Public License, # version 2, as published by the Free Software Foundation. # # Thi...
adamchainz/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/ec2_group.py
7
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of Ansible # # 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. # ...
hlamer/enki
refs/heads/master
enki/core/actionmanager.py
3
""" actionmanager --- Provides text path based access to main menu actions ====================================================================== Use this module for adding own actions to the main menu Shortcuts are configured by appshortcuts plugin """ from PyQt5.QtCore import pyqtSignal, QObject, pyqtSlot from PyQ...
Eliminater74/LGD851_G3_L_Kernel_v20E
refs/heads/master
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...
guzru/django-avatar
refs/heads/master
avatar/templatetags/__init__.py
12133432
denisenkom/django
refs/heads/master
django/conf/locale/zh_CN/__init__.py
12133432
NL66278/odoo
refs/heads/8.0
addons/decimal_precision/decimal_precision.py
34
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
jcnelson/syndicate
refs/heads/master
old/ms/django_ag/tests.py
6666
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
ingadhoc/openerp-travel
refs/heads/master
travel_rental_service/wizard/travel_rental_service_import.py
2
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2010 - 2014 Savoir-faire Linux # (<http://www.savoirfairelinux.com>). # # This program is free software: you can redistribute it a...
youdonghai/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/windows.py
93
# windows.py - Windows utility function implementations for Mercurial # # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from i18n import _ import osutil, encoding im...
smmribeiro/intellij-community
refs/heads/master
python/testData/resolve/LookAhead.py
83
def f(): return f<ref>oo foo = 1
AutorestCI/azure-sdk-for-python
refs/heads/master
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_paged.py
2
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
heynemann/pyvows
refs/heads/master
pyvows/reporting/xunit.py
1
# -*- coding: utf-8 -*- '''Provides the `XUnitReporter` class, which creates XML reports after testing. ''' # pyVows testing engine # https://github.com/{heynemann,truemped}/pyvows # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 Daniel Truemper truemped@googlem...
douglaskastle/mezzanine
refs/heads/master
mezzanine/core/migrations/__init__.py
12133432
tfroehlich82/erpnext
refs/heads/develop
erpnext/education/report/absent_student_report/__init__.py
12133432
poiati/django
refs/heads/master
tests/migrations/migrations_test_apps/migrated_app/models.py
12133432
Partoo/scrapy
refs/heads/master
scrapy/templates/project/module/__init__.py
12133432
chirilo/mozillians
refs/heads/master
vendor-local/lib/python/tablib/packages/yaml/reader.py
114
# This module contains abstractions for the input stream. You don't have to # looks further, there are no pretty code. # # We define two classes here. # # Mark(source, line, column) # It's just a record and its only use is producing nice error messages. # Parser does not use it for any other purposes. # # Reader(so...
shssoichiro/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/pytest/_pytest/vendored_packages/pluggy.py
178
""" PluginManager, basic initialization and tracing. pluggy is the cristallized core of plugin management as used by some 150 plugins for pytest. Pluggy uses semantic versioning. Breaking changes are only foreseen for Major releases (incremented X in "X.Y.Z"). If you want to use pluggy in your project you should thu...
jalavik/invenio-records
refs/heads/master
invenio_records/recordext/__init__.py
634
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later...
ProfessionalIT/professionalit-webiste
refs/heads/master
sdk/google_appengine/lib/django-1.5/django/contrib/sitemaps/management/__init__.py
12133432
simone/django-gb
refs/heads/master
tests/migrations/faulty_migrations/__init__.py
12133432
igsr/igsr_analysis
refs/heads/master
p3/__init__.py
12133432
chrys87/fenrir
refs/heads/master
src/fenrirscreenreader/commands/onHeartBeat/__init__.py
12133432
jt6562/XX-Net
refs/heads/master
python27/1.0/lib/darwin/gevent/_semaphore.py
6
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__,'_semaphore.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) try: __bootstrap__() except (ImportError, LookupError): ...
cathook/PTTArticleRecommender
refs/heads/master
src/miner/modules/mining.py
2
import bs4 #import urllib2 import re import time import logging import json from datetime import datetime from optparse import OptionParser from optparse import Option, OptionValueError import urllib.request as urllib2 import os, sys import importlib importlib.reload(sys) LOGNAME = 'log' VERSION = '0.2' globvar = 0 #a...
bobobox/ansible
refs/heads/devel
lib/ansible/modules/windows/win_service.py
17
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Chris Hoffman <choffman@chathamfinancial.com> # # This file is part of Ansible # # 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 ...
Yokan-Study/study
refs/heads/master
2018/02.07/python/jya.members.py
1
import requests headers = {'Authorization': '{key}'} #1명의 회원 이름 정보 가져오는 함수 getMember() 만들기 def getMember(id): r = requests.get('https://gapi.gabia.com/members?user_id={0}'.format(id), headers=headers) # print(r) j = r.json() # print(j) k = j['client_info'] hanname = k['hanadmin'] # j.hanadmin ...
BeyondTheClouds/enoslib
refs/heads/master
enoslib/service/k3s/k3s.py
1
from enoslib.api import play_on, run_command from typing import List from ..service import Service from enoslib.objects import Host class K3s(Service): def __init__(self, master: List[Host], agent: List[Host]): """Deploy a K3s cluster. Reference: https://rancher.com/docs/k3s/latest/en/qu...
crmccreary/openerp_server
refs/heads/master
openerp/addons/document_webdav/nodes.py
9
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affe...
krintoxi/NoobSec-Toolkit
refs/heads/master
NoobSecToolkit - MAC OSX/tools/sqli/tamper/randomcase.py
10
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import re from lib.core.common import randomRange from lib.core.data import kb from lib.core.enums import PRIORITY __priority__ = PRIORITY.NORMAL def dependencies(): pa...
ian-garrett/meetMe
refs/heads/master
env/lib/python3.4/site-packages/setuptools/site-patch.py
720
def __boot(): import sys import os PYTHONPATH = os.environ.get('PYTHONPATH') if PYTHONPATH is None or (sys.platform=='win32' and not PYTHONPATH): PYTHONPATH = [] else: PYTHONPATH = PYTHONPATH.split(os.pathsep) pic = getattr(sys,'path_importer_cache',{}) stdpath = sys.path[le...
hsharsha/depot_tools
refs/heads/master
third_party/boto/pyami/copybot.py
102
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # 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 # without limitation the rights to use, copy, modi...
shaufi/odoo
refs/heads/8.0
addons/mail/tests/test_mail_features.py
172
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
bartscheers/tkp
refs/heads/master
tests/test_database/test_alchemy.py
1
import unittest import logging import tkp.db import tkp.db.model import tkp.db.alchemy from tkp.testutil.alchemy import gen_band, gen_dataset, gen_skyregion,\ gen_lightcurve logging.basicConfig(level=logging.INFO) logging.getLogger('sqlalchemy.engine').setLevel(logging.WARNING) class TestApi(unittest.TestCase...
sidzan/netforce
refs/heads/master
netforce_general/netforce_general/controllers/inline_help_body.py
4
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # 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 without limitation the rights # to use, copy, modify, merge, publ...
ihsanudin/odoo
refs/heads/8.0
addons/hw_escpos/controllers/main.py
26
# -*- coding: utf-8 -*- import commands import logging import simplejson import os import os.path import io import base64 import openerp import time import random import math import md5 import openerp.addons.hw_proxy.controllers.main as hw_proxy import pickle import re import subprocess import traceback try: from...
leansoft/edx-platform
refs/heads/master
common/djangoapps/student/migrations/0025_auto__add_field_courseenrollmentallowed_auto_enroll.py
114
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CourseEnrollmentAllowed.auto_enroll' db.add_column('student_courseenrollmentallowed', 'auto_...
DirtyUnicorns/android_external_chromium-org
refs/heads/kitkat
tools/telemetry/telemetry/page/page_test_runner.py
25
# Copyright (c) 2012 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. import os import sys from telemetry import test as test_module from telemetry.core import browser_options from telemetry.core import discover from teleme...
AnTAVR/aai2
refs/heads/master
src/modules/base/m_main.py
1
import logging from gettext import gettext as _ from typing import Tuple, List from aai_framework.dial import ColorTxt from aai_framework.interface import ModuleInterface, DialogTestInterface from libs.db import DbDomains, DbTimezones, DbLocales, DbKeymaps, DbFonts, DbFontMaps, DbFontUnimaps from libs.pacman import Pk...
marioyc/RL-algorithms
refs/heads/master
train_atari.py
1
import json import logging import numpy as np import os import random import time from tqdm import tqdm # atari learning environment imports from ale_python_interface import ALEInterface # custom imports import common.feature_extractors as feature_extractors import common.file_utils as file_utils import common.learn...
ESS-LLP/frappe
refs/heads/develop
frappe/desk/page/backups/backups.py
14
import os import frappe from frappe import _ from frappe.utils import get_site_path, cint, get_url from frappe.utils.data import convert_utc_to_user_timezone import datetime def get_context(context): def get_time(path): dt = os.path.getmtime(path) return convert_utc_to_user_timezone(datetime.datetime.utcfromtimes...
314r/joliebulle
refs/heads/master
joliebulle/base.py
1
#!/usr/bin/python #­*­coding: utf­8 -­*­ import PyQt5 import sys import logging from PyQt5 import QtCore import json import xml.etree.ElementTree as ET from globals import * from model.fermentable import * from model.hop import * from model.yeast import * from model.misc import * from model.mash import * from mode...
kmee/odoo-brazil-hr
refs/heads/8.0-develop
l10n_br_hr_vacation/models/hr_payslip.py
2
# -*- coding: utf-8 -*- # Copyright 2017 KMEE Hendrix Costa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import fields, models class HrPayslip(models.Model): _inherit = 'hr.payslip' periodo_aquisitivo_provisao = fields.Char( string=u'Período Aquisitivo do Calculo', ...
datasciencebr/serenata-toolbox
refs/heads/master
tests/journey/test_chamber_of_deputies_deputies_dataset.py
1
import os from unittest import main, skipIf, TestCase import numpy as np from serenata_toolbox.chamber_of_deputies.deputies_dataset import DeputiesDataset class TestDeputiesDataset(TestCase): def setUp(self): self.subject = DeputiesDataset() def test_fetch(self): df = self.subject.fetch() ...
kadamski/certmaster
refs/heads/master
certmaster/CommonErrors.py
4
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
nemmeviu/hosts-footprint
refs/heads/master
global/general/management/commands/global_2_el.py
2
#encoding=utf8 import sys #from __future__ import print_function from django.core.management.base import BaseCommand, CommandError from general.models import * def main(options): # total tiendas all_locals = Local.objects.all() print(len(all_locals)) for x in all_locals: if options['action']...
nagyistoce/edx-platform
refs/heads/master
openedx/core/lib/cache_utils.py
75
""" Utilities related to caching. """ import functools from xblock.core import XBlock def memoize_in_request_cache(request_cache_attr_name=None): """ Memoize a method call's results in the request_cache if there's one. Creates the cache key by joining the unicode of all the args with &; so, if your arg m...
egabancho/invenio-accounts
refs/heads/master
tests/test_accounts_user.py
1
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2006, 2007, 2008, 2010, 2011, 2013, 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # Li...
dwillcox/nucplotlib
refs/heads/master
nucplot.py
1
""" nucplot is a script for plotting the results of a nuclear reaction network calculation from, e.g. Frank Timmes' TORCH code. execute 'python nucplot.py --help' for command line options. TORCH commonly produces lots of files with a subset of the total number of isotopes in each file for the same calculation. Bef...
asm-products/movie-database-service
refs/heads/master
ani/lib/python2.7/site-packages/django/conf/locale/sr_Latn/__init__.py
12133432
Ghost-script/dyno-chat
refs/heads/master
kickchat/apps/pulsar/utils/settings/__init__.py
12133432
rhertzog/django
refs/heads/master
tests/migrations/test_migrations_no_changes/__init__.py
12133432
popazerty/test-1
refs/heads/master
lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/__init__.py
12133432
manassolanki/erpnext
refs/heads/develop
erpnext/patches/v8_0/update_student_groups_from_student_batches.py
40
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import * from frappe.model.mapper import get_mapped_doc def execute(): if frappe.db.table_exists("Student Batch"): stud...
SergeyMakarenko/fbthrift
refs/heads/master
thrift/compiler/py/generate/__init__.py
5
#!/usr/local/bin/python2.6 -tt # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (...
nopjmp/SickRage
refs/heads/master
sickbeard/name_parser/regexes.py
11
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: https://sickrage.github.io # # This file is part of SickRage. # # 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 of the Li...
rbrito/pkg-youtube-dl
refs/heads/master
youtube_dl/extractor/ora.py
87
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_urlparse from ..utils import ( get_element_by_attribute, qualities, unescapeHTML, ) class OraTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?(?:ora\.tv|unsafespeech\....
mdavid/horizon
refs/heads/master
openstack_dashboard/test/test_plugins/panel_group_tests.py
44
# 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 # d...
sarthfrey/Texty
refs/heads/master
lib/httplib2/__init__.py
106
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...
tcole98/dinorunio
refs/heads/master
app/models.py
1
import datetime from app import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) nickname = db.Column(db.String(64), index=True, unique=False) score = db.Column(db.Integer, index=True) date = db.Column(db.DateTime, default=datetime.datetime.utcnow) def __init__(self, nickname,...
scotwk/cloud-custodian
refs/heads/master
tools/zerodark/zerodark/resolver.py
7
# Copyright 2017-2018 Capital One Services, 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 agreed ...