commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
d95001c17b095b713d8a4edacead561ba127aa53 | Remove '\' condition from test as it will not be in the file path when used on Linux. | approvals/ApprovalTests.Python,tdpreece/ApprovalTests.Python,approvals/ApprovalTests.Python,approvals/ApprovalTests.Python | src/NamerTests.py | src/NamerTests.py | import unittest
import os
from approvaltests.Namer import Namer
class NamerTests(unittest.TestCase):
def test_class(self):
n = Namer()
self.assertEqual("NamerTests", n.getClassName())
def test_method(self):
n = Namer()
self.assertEqual("test_method", n.getMethodName())
d... | import unittest
import os
from approvaltests.Namer import Namer
class NamerTests(unittest.TestCase):
def test_class(self):
n = Namer()
self.assertEqual("NamerTests", n.getClassName())
def test_method(self):
n = Namer()
self.assertEqual("test_method", n.getMethodName())
d... | apache-2.0 | Python |
b2c4fe987bb8b72ccc34710964e86b278e17c257 | update module description | bmya/tkobr-addons,bmya/tkobr-addons,bmya/tkobr-addons | tko_web_sessions_management/__openerp__.py | tko_web_sessions_management/__openerp__.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# ThinkOpen Solutions Brasil
# Copyright (C) Thinkopen Solutions <http://www.tkobr.com>.
#
# This... | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# ThinkOpen Solutions Brasil
# Copyright (C) Thinkopen Solutions <http://www.tkobr.com>.
#
# This... | agpl-3.0 | Python |
4e88b6ee9c1927aeb312e40335633d2ca9871c8c | Fix psycopg2 DataError due to bad varchar length | onyb/ethane,onyb/ethane,onyb/ethane,onyb/ethane | tokens/migrations/0002_token_token_type.py | tokens/migrations/0002_token_token_type.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-14 19:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tokens', '0001_initial'),
]
operations = [
migrations.AddField(
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-14 19:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tokens', '0001_initial'),
]
operations = [
migrations.AddField(
... | apache-2.0 | Python |
af938efc1dd293e5b382c85c756b66d1e79ab431 | improve problem 2 python exec duration | sirodoht/project-euler,sirodoht/project-euler,sirodoht/project-euler | Problem_02_sum_fibonacci/problem_2.py | Problem_02_sum_fibonacci/problem_2.py | import datetime
term_a = 1
term_b = 2
sum = 0
time_a = datetime.datetime.now()
while term_a < 4000000 and term_b < 4000000:
print("Current Sum {:,}".format(sum))
if term_a % 2 == 0:
sum += term_a
if term_b % 2 == 0:
sum += term_b
term_a += term_b
term_b += term_a
print("Result... | import datetime
term_a = 1
term_b = 2
sum = 0
time_a = datetime.datetime.now()
while term_a < 4000000 and term_b < 4000000:
print("Current Sum {:,}".format(sum))
if term_a % 2 == 0:
sum += term_a
if term_b % 2 == 0:
sum += term_b
term_a += term_b
term_b += term_a
print("Result... | mit | Python |
fe7fdad284c9247a6f997e9656d124c6d6ee4ef8 | Modify expected program output | dials/dials,dials/dials,dials/dials,dials/dials,dials/dials | test/command_line/test_export_mosflm.py | test/command_line/test_export_mosflm.py | from __future__ import absolute_import, division, print_function
import json
import os
import procrunner
def test_export_mosflm(dials_regression, tmpdir):
dials_regression_escaped = json.dumps(dials_regression).strip('"')
with open(os.path.join(dials_regression, "experiment_test_data/experiment_1.json"), 'r') as... | from __future__ import absolute_import, division, print_function
import json
import os
def test_export_mosflm(dials_regression, tmpdir):
from libtbx import easy_run
dials_regression_escaped = json.dumps(dials_regression).strip('"')
with open(os.path.join(dials_regression, "experiment_test_data/experiment_1.jso... | bsd-3-clause | Python |
db19d66e5a6e44f39bbc62e28aee8addb460fe39 | fix blank image error | auto-mat/django-webmap-corpus | webmap/admin_image_widget.py | webmap/admin_image_widget.py | #originated from https://djangosnippets.org/snippets/2455/
from django.contrib.admin.widgets import AdminFileWidget
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.conf import settings
from PIL import Image
import os
try:
from easy_thumbnails.files impo... | #originated from https://djangosnippets.org/snippets/2455/
from django.contrib.admin.widgets import AdminFileWidget
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.conf import settings
from PIL import Image
import os
try:
from easy_thumbnails.files impo... | mit | Python |
e743f82d93e9501c8b3bd827ee0553ceec8aadb6 | Allow Spider to log into LinkedIn. | nihn/linkedin-scraper,nihn/linkedin-scraper | linkedin_scraper/spiders/search.py | linkedin_scraper/spiders/search.py | from os import environ
from scrapy.spiders.init import InitSpider
from scrapy.http import Request, FormRequest
class SearchSpider(InitSpider):
name = 'search'
allowed_domains = ['linkedin.com']
login_page = 'https://www.linkedin.com/uas/login'
start_urls = [
'https://www.linkedin.com/vsearch... | import scrapy
class SearchSpider(scrapy.Spider):
name = 'search'
allowed_domains = ['linkedin.com']
start_urls = [
'https://www.linkedin.com/vsearch/f?type=people&keywords=MateuszMoneta']
def parse(self, response):
for search_result in response.css('li.mod.result.people'):
... | mit | Python |
fa241c1734371a06a64422db35b819c530047221 | Fix bug in wcs_utils | dpshelio/sunpy,Alex-Ian-Hamilton/sunpy,Alex-Ian-Hamilton/sunpy,dpshelio/sunpy,Alex-Ian-Hamilton/sunpy,dpshelio/sunpy | sunpy/coordinates/wcs_utils.py | sunpy/coordinates/wcs_utils.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division
import astropy.wcs.utils
from astropy.wcs import WCSSUB_CELESTIAL
from .frames import *
__all__ = ['solar_wcs_frame_mapping']
def solar_wcs_frame_mapping(wcs):
"""
This function registers the coordinates frames to their FITS-WCS coordi... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division
import astropy.wcs.utils
from astropy.wcs import WCSSUB_CELESTIAL
from .frames import *
__all__ = ['solar_wcs_frame_mapping']
def solar_wcs_frame_mapping(wcs):
"""
This function registers the coordinates frames to their FITS-WCS coordi... | bsd-2-clause | Python |
b3eade614661c436f43547384f6681d3e9f05614 | use develop branch for plugins and update | konradxyz/dev_fileserver,codilime/cloudify-manager,geokala/cloudify-manager,codilime/cloudify-manager,geokala/cloudify-manager,cloudify-cosmo/cloudify-manager,isaac-s/cloudify-manager,codilime/cloudify-manager,konradxyz/dev_fileserver,cloudify-cosmo/cloudify-manager,isaac-s/cloudify-manager,cloudify-cosmo/cloudify-mana... | worker_installer/versions.py | worker_installer/versions.py | #/*******************************************************************************
# * Copyright (c) 2013 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... | #/*******************************************************************************
# * Copyright (c) 2013 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... | apache-2.0 | Python |
47687356689615317d4f5f9cb846abec320f84bf | Enhance shell sort syntax (#2035) | TheAlgorithms/Python | sorts/shell_sort.py | sorts/shell_sort.py | """
This is a pure Python implementation of the shell sort algorithm
For doctests run following command:
python -m doctest -v shell_sort.py
or
python3 -m doctest -v shell_sort.py
For manual testing run:
python shell_sort.py
"""
def shell_sort(collection):
"""Pure implementation of shell sort algorithm in Python... | """
This is a pure Python implementation of the shell sort algorithm
For doctests run following command:
python -m doctest -v shell_sort.py
or
python3 -m doctest -v shell_sort.py
For manual testing run:
python shell_sort.py
"""
def shell_sort(collection):
"""Pure implementation of shell sort algorithm in Python... | mit | Python |
31a73c9680751ea8fe2eea3769b974c4e968f1b4 | Correct the exception message | redhat-openstack/neutron,beagles/neutron_hacking,mmnelemane/neutron,yamahata/tacker,jumpojoy/neutron,beagles/neutron_hacking,shahbazn/neutron,JianyuWang/neutron,projectcalico/calico-neutron,Comcast/neutron,projectcalico/calico-neutron,yamahata/neutron,openstack/neutron,dims/neutron,suneeth51/neutron,adelina-t/neutron,s... | neutron/plugins/nicira/vshield/common/exceptions.py | neutron/plugins/nicira/vshield/common/exceptions.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 VMware, 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
#
# ... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 VMware, 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
#
# ... | apache-2.0 | Python |
fa5a89e367e83c1273fe6122eed68af1ff9ff911 | 修改javascript writer:去除es6语法,保存兼容性 | youlanhai/ExcelToCode | writers/javascript_writer.py | writers/javascript_writer.py | # -*- coding: utf-8 -*-
from base_writer import BaseWriter
class JavaScriptWriter(BaseWriter):
def write_sheet(self, name, sheet):
self.write_types_comment(name)
self.output("\n")
output = self.output
max_indent = self.max_indent
output("exports.", name, " = {\n")
keys = sheet.keys()
keys.sort()
... | # -*- coding: utf-8 -*-
from base_writer import BaseWriter
class JavaScriptWriter(BaseWriter):
def write_sheet(self, name, sheet):
self.write_types_comment(name)
self.output("\n")
output = self.output
max_indent = self.max_indent
output("export let ", name, " = {\n")
keys = sheet.keys()
keys.sort()
... | mit | Python |
d237071aef4cc62c3506d25072937cdc6feab797 | Update example to make use of the new simplified color scheme api | pyQode/pyqode.core,zwadar/pyqode.core,pyQode/pyqode.core | examples/modes/pygments_syntax_highlighter.py | examples/modes/pygments_syntax_highlighter.py | """
Minimal example showing the use of the AutoCompleteMode.
"""
import logging
logging.basicConfig(level=logging.DEBUG)
import sys
from pyqode.qt import QtWidgets
from pyqode.core.api import CodeEdit, ColorScheme
from pyqode.core.backend import server
from pyqode.core.modes import PygmentsSH
if __name__ == '__main_... | """
Minimal example showing the use of the AutoCompleteMode.
"""
import logging
logging.basicConfig(level=logging.DEBUG)
import sys
from pyqode.qt import QtWidgets
from pyqode.core.api import CodeEdit, ColorScheme
from pyqode.core.backend import server
from pyqode.core.modes import PygmentsSH
if __name__ == '__main_... | mit | Python |
653a4622ea3ef3e369af66fde615722949733dbd | FIX POST /settings parameters | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | packages/grid/backend/grid/api/settings/settings.py | packages/grid/backend/grid/api/settings/settings.py | # stdlib
from typing import Any
from typing import Optional
# third party
from fastapi import APIRouter
from fastapi import Body
from fastapi import Depends
from fastapi.responses import JSONResponse
from nacl.encoding import HexEncoder
from nacl.signing import SigningKey
# syft absolute
from syft.core.node.common.ac... | # stdlib
from typing import Any
from typing import Optional
# third party
from fastapi import APIRouter
from fastapi import Body
from fastapi import Depends
from fastapi.responses import JSONResponse
from nacl.encoding import HexEncoder
from nacl.signing import SigningKey
# syft absolute
from syft.core.node.common.ac... | apache-2.0 | Python |
97478d1ef478aea3f2b3680598260d62de0c3891 | Move imports in switchmate component (#27646) | home-assistant/home-assistant,postlund/home-assistant,aronsky/home-assistant,balloob/home-assistant,FreekingDean/home-assistant,mezz64/home-assistant,titilambert/home-assistant,nkgilley/home-assistant,toddeye/home-assistant,qedi-r/home-assistant,tboyce1/home-assistant,qedi-r/home-assistant,kennedyshead/home-assistant,a... | homeassistant/components/switchmate/switch.py | homeassistant/components/switchmate/switch.py | """Support for Switchmate."""
from datetime import timedelta
import logging
# pylint: disable=import-error, no-member, no-value-for-parameter
import switchmate
import voluptuous as vol
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
from homeassistant.const import CONF_MAC, CONF_NAME
import ... | """Support for Switchmate."""
import logging
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, CONF_MAC
_LOGGER = logging.getLogger(__name__)... | apache-2.0 | Python |
e4d1befd2681d54d6573e59b6c9e654bbe206726 | Update trans_line_parser.py | mdbartos/RIPS,mdbartos/RIPS,mdbartos/RIPS | temporary/trans_line_parser.py | temporary/trans_line_parser.py | import pandas as pd
import numpy as np
d = {}
for i in range (2001, 2011):
d.update({i : pd.read_excel('schedule6_%s.xls' % (i), skiprows=6)})
c = pd.concat([i[['NERC Region', 'Design (kV)', 'Size (MCM)', 'Material']] for i in d.values()]).dropna()
c['NERC Region'] = c['NERC Region'].str.strip()
c['Material'] = ... | import pandas as pd
d = {}
for i in range (2001, 2011):
d.update({i : pd.read_excel('schedule6_%s.xls' % (i), skiprows=6)})
c = pd.concat([i[['NERC Region', 'Design (kV)', 'Size (MCM)', 'Material']] for i in d.values()]).dropna()
c['NERC Region'] = c['NERC Region'].str.strip()
c['Material'] = c['Material'].str.r... | mit | Python |
2c3a1beed1b856b323e076fdaa5fc8e5575d1c4f | fix tests | SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci | metaci/release/tests/test_utils.py | metaci/release/tests/test_utils.py | from unittest.mock import Mock
import pytest
from ...fixtures.factories import ReleaseFactory
from ..utils import send_release_webhook
def test_send_release_webhook(mocked_responses, mocker, transactional_db):
mocker.patch(
"metaci.release.utils.settings",
METACI_RELEASE_WEBHOOK_URL="https://web... | from unittest.mock import Mock
import pytest
from ...fixtures.factories import ReleaseFactory
from ..utils import send_release_webhook
def test_send_release_webhook(mocked_responses, mocker, transactional_db):
mocker.patch(
"metaci.release.utils.settings",
METACI_RELEASE_WEBHOOK_URL="https://web... | bsd-3-clause | Python |
83e4d06efbedfa46f0a800fc9422d6b227c442e9 | Fix IsaFake's cxx_header setting | haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5 | src/dev/Device.py | src/dev/Device.py | # Copyright (c) 2005-2007 The Regents of The University of Michigan
# 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 ... | # Copyright (c) 2005-2007 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | Python |
537c533e42629e9c904ea2df778060fd00daa69b | Clean and prepare CIFAR-10 data better | israelg99/eva | eva/examples/cifar10.py | eva/examples/cifar10.py | #%% Imports.
import numpy as np
import keras
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, MaxPooling2D... | #%% Imports.
import numpy as np
import keras
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, MaxPooling2D... | apache-2.0 | Python |
38fe1c55b5062289a73d5ab7a20f44fd064eecd8 | add missing py-setuptools-scm dependency (#23842) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/py-lazy-object-proxy/package.py | var/spack/repos/builtin/packages/py-lazy-object-proxy/package.py | # Copyright 2013-2021 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 PyLazyObjectProxy(PythonPackage):
"""A fast and thorough lazy object proxy."""
homepa... | # Copyright 2013-2021 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 PyLazyObjectProxy(PythonPackage):
"""A fast and thorough lazy object proxy."""
homepa... | lgpl-2.1 | Python |
cd9b9675cd81e9ee01b4ad2932319a6070b82753 | Fix typo in 0099 reverse_sql. | kou/zulip,kou/zulip,kou/zulip,rht/zulip,andersk/zulip,zulip/zulip,kou/zulip,andersk/zulip,andersk/zulip,zulip/zulip,andersk/zulip,rht/zulip,kou/zulip,rht/zulip,zulip/zulip,kou/zulip,andersk/zulip,zulip/zulip,zulip/zulip,zulip/zulip,rht/zulip,rht/zulip,kou/zulip,zulip/zulip,rht/zulip,rht/zulip,andersk/zulip,andersk/zuli... | zerver/migrations/0099_index_wildcard_mentioned_user_messages.py | zerver/migrations/0099_index_wildcard_mentioned_user_messages.py | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("zerver", "0098_index_has_alert_word_user_messages"),
]
operations = [
migrations.RunSQL(
"""
CREATE INDEX IF NOT EXISTS zerver_usermessage_wildcard_mentioned_message_id
... | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("zerver", "0098_index_has_alert_word_user_messages"),
]
operations = [
migrations.RunSQL(
"""
CREATE INDEX IF NOT EXISTS zerver_usermessage_wildcard_mentioned_message_id
... | apache-2.0 | Python |
4b45a3ee94e4bcb339719c9f12e002ffc6544215 | Update api.py | aaivazis/nautilus,AlecAivazis/nautilus,aaivazis/nautilus,AlecAivazis/nautilus,AlecAivazis/nautilus | example/services/api.py | example/services/api.py | # external imports
from nautilus import APIGateway
from graphene import Schema, ObjectType, String, Mutation, Boolean
from nautilus.api import ServiceObjectType
from nautilus.api.fields import Connection
from nautilus.network import dispatchAction
from nautilus.conventions import getCRUDAction
# local imports
from .rec... | # external imports
from nautilus import APIGateway
from graphene import Schema, ObjectType, String, Mutation, Boolean
from nautilus.api import ServiceObjectType
from nautilus.api.fields import Connection
from nautilus.network import dispatchAction
from nautilus.conventions import getCRUDAction
# local imports
from .rec... | mit | Python |
09fab7f3b522d5b57adc6f5565cd7520ddea9439 | Allow targeting both units and positions | Dentosal/python-sc2 | sc2/action.py | sc2/action.py | from itertools import groupby
from s2clientprotocol import raw_pb2 as raw_pb, common_pb2 as common_pb
from .position import Point2
from .util import name_normalize
from .unit import Unit
def combine_actions(action_iter, game_data):
for key, items in groupby(action_iter, key=lambda a: a.combining_tuple):
a... | from itertools import groupby
from s2clientprotocol import raw_pb2 as raw_pb, common_pb2 as common_pb
from .position import Point2
from .util import name_normalize
from .unit import Unit
def combine_actions(action_iter, game_data):
for key, items in groupby(action_iter, key=lambda a: a.combining_tuple):
a... | mit | Python |
525accb4d3ed3bc6d345143fb0fa1d8faa0ce23d | Bump version to 0.5.0 for new release. | tensorflow/model-optimization,tensorflow/model-optimization | tensorflow_model_optimization/python/core/version.py | tensorflow_model_optimization/python/core/version.py | # Copyright 2019 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... | # Copyright 2019 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... | apache-2.0 | Python |
5a46f336a1b98d1ddeed40bcb24e285394760bf3 | make rcS files read from the m5 source directory, not /dist. | aclifton/cpeg853-gem5,gedare/gem5,zlfben/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,austinharris/gem5-riscv,aclifton/cpeg853-gem5,sobercoder/gem5,cancro7/gem5,kaiyuanl/gem5,HwisooSo/gemV-update,aclifton/cpeg853-gem5,markoshorro/gem5,briancoutinho0905/2dsampling,yb-kim/gemV,yb-kim/gemV,markoshorro/gem5,geda... | configs/common/SysPaths.py | configs/common/SysPaths.py | # Copyright (c) 2006 The Regents of The University of Michigan
# 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 ... | # Copyright (c) 2006 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | Python |
4a3caeda223e797c4c110d9986a8b566833d7981 | Update log.py | ufabdyop/screenlock,ufabdyop/screenlock,ufabdyop/screenlock | source/log.py | source/log.py | import os, stat, sys, shutil, win32api, win32file, win32security, ntsecuritycon
import logging
from datetime import datetime
# determine if application is a script file or frozen exe
if getattr(sys, 'frozen', False):
APPLICATION_PATH = os.path.dirname(sys.executable)
elif '.exe' in os.path.dirname(__file__):
A... | import os, stat, sys, shutil, win32api, win32file, win32security, ntsecuritycon
import logging
from datetime import datetime
# determine if application is a script file or frozen exe
if getattr(sys, 'frozen', False):
APPLICATION_PATH = os.path.dirname(sys.executable)
elif '.exe' in os.path.dirname(__file__):
A... | mit | Python |
e54061a9318f2c04f6f4c0dd786316a3db6d97c2 | improve MPI example | ohlmann/parallel_decorators | examples/example_mpi.py | examples/example_mpi.py | # execute with: mpiexec -np 4 python example_mpi.py
from parallel_decorators import vectorize_parallel, is_master
from time import sleep
import random
@vectorize_parallel(method='MPI', use_progressbar=True, label='computation',
scheduling='auto')
def foo(i):
sleep(0.1+random.random()*0.5)
... | # execute with: mpiexec -np 4 python example_mpi.py
from parallel_decorators import vectorize_parallel, is_master
from time import sleep
import random
@vectorize_parallel(method='MPI', use_progressbar=True, label='computation')
def foo(i):
sleep(0.1+random.random()*0.5)
return i**2
@vectorize_parallel(metho... | bsd-3-clause | Python |
21d079d843c59d44ab3eb1d79aa83486902d3df0 | Fix delete query bug | groveco/django-sql-explorer,epantry/django-sql-explorer,epantry/django-sql-explorer,groveco/django-sql-explorer,groveco/django-sql-explorer,groveco/django-sql-explorer,epantry/django-sql-explorer | explorer/permissions.py | explorer/permissions.py | from explorer import app_settings
from explorer.utils import allowed_query_pks, user_can_see_query
def view_permission(request, **kwargs):
return app_settings.EXPLORER_PERMISSION_VIEW(request.user)\
or user_can_see_query(request, **kwargs)\
or (app_settings.EXPLORER_TOKEN_AUTH_ENABLED()
... | from explorer import app_settings
from explorer.utils import allowed_query_pks, user_can_see_query
def view_permission(request, **kwargs):
return app_settings.EXPLORER_PERMISSION_VIEW(request.user)\
or user_can_see_query(request, **kwargs)\
or (app_settings.EXPLORER_TOKEN_AUTH_ENABLED()
... | mit | Python |
1cffd5af2be0f58372e15cc1d29172b93743b12d | fix some bugs in query_by_committee.py | ntucllab/libact,ntucllab/libact,ntucllab/libact | libact/query_strategies/query_by_committee.py | libact/query_strategies/query_by_committee.py | from libact.base.interfaces import QueryStrategy
import numpy as np
from functools import cmp_to_key
import math
class QueryByCommittee(QueryStrategy):
def __init__(self, models):
"""
model: list trained libact Model object for prediction
Currently only LogisticRegression is suppor... | from libact.base.interfaces import QueryStrategy
import numpy as np
from functools import cmp_to_key
import math
class QueryByCommittee(QueryStrategy):
def __init__(self, models):
"""
model: list trained libact Model object for prediction
Currently only LogisticRegression is suppor... | bsd-2-clause | Python |
5e503d06dbdf0d97e7054a86eaa18ac20d710fd7 | check for broken games having scores | magfest/mivs,magfest/mivs | mivs/site_sections/mivs_judging.py | mivs/site_sections/mivs_judging.py | from mivs import *
@all_renderable(c.INDIE_JUDGE)
class Root:
def index(self, session, message=''):
return {
'message': message,
'judge': session.logged_in_judge()
}
def studio(self, session, message='', **params):
studio = session.indie_studio(params)
... | from mivs import *
@all_renderable(c.INDIE_JUDGE)
class Root:
def index(self, session, message=''):
return {
'message': message,
'judge': session.logged_in_judge()
}
def studio(self, session, message='', **params):
studio = session.indie_studio(params)
... | agpl-3.0 | Python |
feaaaf0c5e3cddfebaed501a700705a0b438f914 | Update app.py | Fillll/reddit2telegram,Fillll/reddit2telegram | reddit2telegram/channels/r_propagandaposters/app.py | reddit2telegram/channels/r_propagandaposters/app.py | #encoding:utf-8
from utils import weighted_random_subreddit
subreddit = weighted_random_subreddit({
'propagandaposters': 1.0,
})
t_channel = '@r_propagandaposters'
def send_post(submission, r2t):
return r2t.send_simple(submission,
text=False,
gif=True,
img=True,
album=True,
... | #encoding:utf-8
from utils import weighted_random_subreddit
# Subreddit that will be a source of content
subreddit = weighted_random_subreddit({
'propagandaposters': 1.0,
# If we want get content from several subreddits
# please provide here 'subreddit': probability
# 'any_other_subreddit': 0.02
})
#... | mit | Python |
b6e74e77ea7557d1ca602298a08ee9c0bdc8f37b | Remove unused import | hashbangstudio/Python-Minecraft-Examples | 09-createWallWithSetBlocks.py | 09-createWallWithSetBlocks.py | #import the needed modules
from mcpi.minecraft import *
from mcpi.block import *
if __name__ == "__main__":
# Create a connection to the Minecraft game
mc = Minecraft.create()
# Get the player position
playerPosition = mc.player.getTilePos()
wallStartXposn = playerPosition.x + 6
wallStartYp... | #import the needed modules
from mcpi.minecraft import *
from mcpi.block import *
from time import sleep
if __name__ == "__main__":
# Create a connection to the Minecraft game
mc = Minecraft.create()
# Get the player position
playerPosition = mc.player.getTilePos()
wallStartXposn = playerPosition... | bsd-3-clause | Python |
58107b8c2623117bc1550dbc145101782b8d96be | Change log format | daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various | testcode/update-log-level-at-runtime.py | testcode/update-log-level-at-runtime.py | ''' Set basic logging, change level on the fly
'''
import logging
# Change default WARNING to ERROR level
logging.basicConfig(level=logging.ERROR,
format='%(asctime)s | %(levelname)s | %(message)s'
)
def is_a(param1):
return type(param1)
def test_types():... | ''' Set basic logging, change level on the fly
'''
import logging
# Change default WARNING to ERROR level
logging.basicConfig(level=logging.ERROR)
def is_a(param1):
return type(param1)
def test_types():
params = [1, "one", 1.0]
for p in params:
# Won't print
logg... | mit | Python |
e99997c6d6a4aac06fba46c250dd2fdc25029d1b | allow fmp op tests to be run w/o gpu | diogo149/treeano,jagill/treeano,nsauder/treeano,nsauder/treeano,diogo149/treeano,nsauder/treeano,diogo149/treeano,jagill/treeano,jagill/treeano | treeano/theano_extensions/tests/fractional_max_pooling_test.py | treeano/theano_extensions/tests/fractional_max_pooling_test.py | import nose.tools as nt
import numpy as np
import theano
import theano.tensor as T
fX = theano.config.floatX
if "gpu" in theano.config.device:
import treeano.theano_extensions.fractional_max_pooling as fmp
def test_fractional_max_pooling_numeric_gradient():
def fun(x):
return fmp.Disjoint... | import nose.tools as nt
import numpy as np
import theano
import theano.tensor as T
import treeano.theano_extensions.fractional_max_pooling as fmp
fX = theano.config.floatX
if "gpu" in theano.config.device:
def test_fractional_max_pooling_numeric_gradient():
def fun(x):
return fmp.DisjointPse... | apache-2.0 | Python |
f767de872d028ffd9a34cc437337b7bece664382 | Update the sample test with examples | nephomaniac/nephoria,nephomaniac/nephoria | nephoria/testcase_utils/sample_test_suite.py | nephoria/testcase_utils/sample_test_suite.py | #!/usr/bin/env python
from nephoria.testcase_utils.cli_test_runner import CliTestRunner, SkipTestException
import copy
import time
"""
This is intended to demonstrate some basic ways to write a test suite.
To run this test from the command line:
## First see what CLI args are provided. Not the --sample-arg added in... | #!/usr/bin/env python
from nephoria.testcase_utils.cli_test_runner import CliTestRunner, SkipTestException
import copy
import time
"""
This is intended to demonstrate some basic ways to write a test suite.
To run this test from the command line:
## First see what CLI args are provided. Not the --sample-arg added in... | bsd-2-clause | Python |
7aeef66c60535f271bfa68d77403f1c72549f348 | Fix NoneType has no attribute 'store' in sale_customer_specific_website_quote | OpusVL/odoo-sale-extras | sale_customer_specific_website_quote/models/sale.py | sale_customer_specific_website_quote/models/sale.py | # -*- coding: utf-8 -*-
##############################################################################
#
# Customer-specific products - suggested products integration
# Copyright (C) 2016 OpusVL (<http://opusvl.com/>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Customer-specific products - suggested products integration
# Copyright (C) 2016 OpusVL (<http://opusvl.com/>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | agpl-3.0 | Python |
9692017d597a0d8f464ee5cefb42f4785fb2c833 | update to 1.47.16 (#20397) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/help2man/package.py | var/spack/repos/builtin/packages/help2man/package.py | # 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 Help2man(AutotoolsPackage, GNUMirrorPackage):
"""help2man produces simple manual pages fro... | # 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 Help2man(AutotoolsPackage, GNUMirrorPackage):
"""help2man produces simple manual pages fro... | lgpl-2.1 | Python |
1bee682d675a3879465ca3b226a8966152414dc0 | add a PREFIX parameter to make invocation (#21527) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/pciutils/package.py | var/spack/repos/builtin/packages/pciutils/package.py | # Copyright 2013-2021 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 Pciutils(MakefilePackage):
"""This package contains the PCI Utilities."""
homepage = ... | # Copyright 2013-2021 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 Pciutils(MakefilePackage):
"""This package contains the PCI Utilities."""
homepage = ... | lgpl-2.1 | Python |
7f7dbbb0331472954af7a766e4ce4bf1c36a10c3 | Add products to report | dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq | corehq/apps/reports/commtrack/ledgers_by_location.py | corehq/apps/reports/commtrack/ledgers_by_location.py | from collections import namedtuple
from dimagi.utils.decorators.memoized import memoized
from no_exceptions.exceptions import Http400
from corehq.apps.commtrack.models import StockState
from corehq.apps.locations.models import SQLLocation
from corehq.apps.products.models import SQLProduct
from .const import STOCK_SEC... | from collections import namedtuple
from dimagi.utils.decorators.memoized import memoized
from corehq.apps.commtrack.models import StockState
from corehq.apps.locations.models import SQLLocation
from .const import STOCK_SECTION_TYPE
_Row = namedtuple('Row', "location stock")
class LedgersByLocationDataSource(objec... | bsd-3-clause | Python |
5ad7b7b2809c9043822c3409afc1afdf8ea9f1cd | increase initial lr | da03/Attention-OCR,jvpoulos/Attention-OCR,dashayushman/air-script,emedvedev/attention-ocr,da03/Attention-OCR,dashayushman/air-script | src/exp_config.py | src/exp_config.py | import platform
"""
Default paramters for experiemnt
"""
class ExpConfig:
# phase
PHASE = 'test'
VISUALIZE = True
# input and output
DATA_BASE_DIR = '/mnt/90kDICT32px'
DATA_PATH = '/mnt/train_shuffled_words.txt' # path containing data file names and labels. Format:
MODEL_DIR = 'train'... | import platform
"""
Default paramters for experiemnt
"""
class ExpConfig:
# phase
PHASE = 'test'
VISUALIZE = True
# input and output
DATA_BASE_DIR = '/mnt/90kDICT32px'
DATA_PATH = '/mnt/train_shuffled_words.txt' # path containing data file names and labels. Format:
MODEL_DIR = 'train'... | mit | Python |
788f47b24ef3089685c1e966e9e95e0c61c773ca | Fix Telesom test (#4368) | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | bluebottle/funding_telesom/tests/test_api.py | bluebottle/funding_telesom/tests/test_api.py | from builtins import object
import json
from django.urls import reverse
from mock import patch
from rest_framework import status
from bluebottle.funding.tests.factories import FundingFactory, DonationFactory
from bluebottle.funding_telesom.models import TelesomPaymentProvider, TelesomPayment
from bluebottle.funding_t... | from builtins import object
import json
from django.urls import reverse
from mock import patch
from rest_framework import status
from bluebottle.funding.tests.factories import FundingFactory, DonationFactory
from bluebottle.funding_telesom.models import TelesomPaymentProvider
from bluebottle.funding_telesom.tests.fac... | bsd-3-clause | Python |
7acef5370a9e3d8a3794db095f38a1f3ca57cc4b | remove unwanted field alterations | masschallenge/django-accelerator,masschallenge/django-accelerator | accelerator/migrations/0020_remove_is_open_from_program_family.py | accelerator/migrations/0020_remove_is_open_from_program_family.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-28 18:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0019_migrate_is_open_for_startups_and_experts'),
]
operations = [
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-28 18:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0019_migrate_is_open_for_startups_and_experts'),
]
operations = [
... | mit | Python |
cefd702e681c06abd36769c5f02425bc6ff0c1d7 | correct lint | masschallenge/django-accelerator,masschallenge/django-accelerator | accelerator/migrations/0099_add_industry_cluster_20220419_1352.py | accelerator/migrations/0099_add_industry_cluster_20220419_1352.py | # Generated by Django 2.2.27 on 2022-04-19 17:52
import sorl.thumbnail.fields
from django.db import (
migrations,
models,
)
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0098_update_startup_update_20220408_0441'),
]
operations = [
migrations.CreateMode... | # Generated by Django 2.2.27 on 2022-04-19 17:52
import sorl.thumbnail.fields
from django.db import (
migrations,
models,
)
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0098_update_startup_update_20220408_0441'),
]
operations = [
migrations.CreateMode... | mit | Python |
a8a29a0b0de5f6c98836c077e9ba09fc7db52ce0 | Fix old syntax in filterMultiplications.py | mgalbier/Envision,lukedirtwalker/Envision,mgalbier/Envision,mgalbier/Envision,mgalbier/Envision,mgalbier/Envision,dimitar-asenov/Envision,lukedirtwalker/Envision,mgalbier/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,... | InformationScripting/scripts/filterMultiplications.py | InformationScripting/scripts/filterMultiplications.py | # Removes all BinaryOperation nodes from the input which are not Multiplications
#
# Test to execute: ast -global -t=BinaryOp* | filterMultiplications
for tuple in Query.input.tuples('ast'):
if type(tuple.ast) is BinaryOperation:
if tuple.ast.op != BinaryOperation.OperatorTypes.TIMES:
Query.inp... | # Removes all BinaryOperation nodes from the input which are not Multiplications
#
# Test to execute: ast -s=g -t=BinaryOp*|filterMultiplications
for tuple in Query.input.tuples('ast'):
if type(tuple.ast) is BinaryOperation:
if tuple.ast.op != BinaryOperation.OperatorTypes.TIMES:
Query.input.re... | bsd-3-clause | Python |
463ed36f63a28ed20ef7c22a289898d2e9a99ed9 | Fix of ES enum range search - import and mapping | c2corg/v6_api,c2corg/v6_api,c2corg/v6_api | c2corg_api/search/mappings/report_mapping.py | c2corg_api/search/mappings/report_mapping.py | from c2corg_api.models.report import REPORT_TYPE, Report
from c2corg_api.search.mapping import SearchDocument, BaseMeta
from c2corg_api.search.mapping_types import QueryableMixin, \
QEnumArray, QInteger, QDate, QEnumRange
from c2corg_common.sortable_search_attributes import sortable_severities, \
sortable_avalanch... | from c2corg_api.models.report import REPORT_TYPE, Report
from c2corg_api.search.mapping import SearchDocument, BaseMeta
from c2corg_api.search.mapping_types import QueryableMixin, \
QEnumArray, QInteger, QDate, QEnumRange
from c2corg_common.sortable_search_attributes import sortable_severities, \
sortable_avalanch... | agpl-3.0 | Python |
0cfdec3ead26fa97926075c2e87a39445e222da2 | Fix style | mnieber/dodo_commands | dodo_commands/extra/webdev_commands/django-manage.py | dodo_commands/extra/webdev_commands/django-manage.py | """Run a django-manage command."""
import argparse
from dodo_commands.extra.standard_commands import DodoCommand
class Command(DodoCommand): # noqa
decorators = ['docker']
def add_arguments_imp(self, parser): # noqa
parser.add_argument(
'manage_args',
nargs=argparse.REMAINDE... | """Run a django-manage command."""
import argparse
from dodo_commands.extra.standard_commands import DodoCommand
class Command(DodoCommand): # noqa
decorators = ['docker']
def add_arguments_imp(self, parser): # noqa
parser.add_argument(
'manage_args',
nargs=argparse.REMAINDE... | mit | Python |
04768b4e878ba5809c68aff80c91445c3e359520 | Kill the crawler if it runs for longer than seven hours | TobyRoseman/PS4M,TobyRoseman/PS4M,TobyRoseman/PS4M | crawler/updateItemTable.py | crawler/updateItemTable.py | import logging
import os
import signal
import sys
from random import shuffle
from time import time, sleep
sys.path.append("..")
from crawler import crawl
from engine.data.database.databaseConnection import commit, rollback
from engine.data.database.sourceTable import getAllSources
def getLogger():
log = logging... | import logging
import os
import sys
from random import shuffle
from time import time, sleep
sys.path.append("..")
from crawler import crawl
from engine.data.database.databaseConnection import commit, rollback
from engine.data.database.sourceTable import getAllSources
def getLogger():
log = logging.getLogger()
... | mit | Python |
6087fc0b0a6e19ed15b4b66ecf7c0e3667bc8b8d | support QQMusic (y.qq.com) | xyuanmu/you-get,pitatensai/you-get,lilydjwg/you-get,CzBiX/you-get,XiWenRen/you-get,specter4mjy/you-get,linhua55/you-get,zmwangx/you-get,dream1986/you-get,cnbeining/you-get,forin-xyz/you-get,jindaxia/you-get,shanyimin/you-get,candlewill/you-get,kzganesan/you-get,linhua55/you-get,runningwolf666/you-get,rain1988/you-get,x... | src/you_get/downloader/qq.py | src/you_get/downloader/qq.py | #!/usr/bin/env python
__all__ = ['qq_download']
from ..common import *
def qq_download_by_id(id, title = None, output_dir = '.', merge = True, info_only = False):
url = 'http://vsrc.store.qq.com/%s.flv' % id
_, _, size = url_info(url)
print_info(site_info, title, 'flv', size)
if not info_on... | #!/usr/bin/env python
__all__ = ['qq_download']
from ..common import *
def qq_download_by_id(id, title = None, output_dir = '.', merge = True, info_only = False):
url = 'http://vsrc.store.qq.com/%s.flv' % id
_, _, size = url_info(url)
print_info(site_info, title, 'flv', size)
if not info_on... | mit | Python |
8906d1647150df751e07025b6486d5e2efffd43a | Add manual bullets. | nanaze/xmascard | makecard.py | makecard.py | #!/usr/bin/env python
import sys
import svgwrite
from xml.dom import minidom
def _LoadSvg(path):
doc = minidom.parse(path)
doc_frag = minidom.DocumentFragment()
for node in doc.childNodes:
doc_frag.appendChild(node)
return doc_frag
def _CreateTree():
tree = minidom.Element('svg')
tree.setAttribute(... | #!/usr/bin/env python
import sys
import svgwrite
from xml.dom import minidom
def _LoadSvg(path):
doc = minidom.parse(path)
doc_frag = minidom.DocumentFragment()
for node in doc.childNodes:
doc_frag.appendChild(node)
return doc_frag
def _CreateTree():
tree = minidom.Element('svg')
tree.setAttribute(... | apache-2.0 | Python |
ab9d25d357a6cd2442d52fff673cceb5cb6d3d49 | make massanalysis tests more meaningful | helo9/wingstructure | tests/test_structuresection.py | tests/test_structuresection.py | import pytest
import numpy as np
from wingstructure.structure import section, material, MassAnalysis
@pytest.fixture
def airfoilcoords():
import numpy as np
# load airfoil coordinates
return np.loadtxt('docs/usage/FX 61-184.dat', skiprows=1, delimiter=',')
def test_structurecreation(airfoilcoords):
... | import pytest
from wingstructure.structure import section, material, MassAnalysis
@pytest.fixture
def airfoilcoords():
import numpy as np
# load airfoil coordinates
return np.loadtxt('docs/usage/FX 61-184.dat', skiprows=1, delimiter=',')
def test_structurecreation(airfoilcoords):
# create material
... | mit | Python |
95adb60a8f92f8275316817f9d9b64fce5ffb737 | Fix patch | gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext | erpnext/patches/v7_0/convert_timelog_to_timesheet.py | erpnext/patches/v7_0/convert_timelog_to_timesheet.py | import frappe
from erpnext.manufacturing.doctype.production_order.production_order \
import make_timesheet, add_timesheet_detail
def execute():
frappe.reload_doc('projects', 'doctype', 'task')
frappe.reload_doc('projects', 'doctype', 'timesheet')
if not frappe.db.table_exists("Time Log"):
return
for data in fr... | import frappe
from erpnext.manufacturing.doctype.production_order.production_order \
import make_timesheet, add_timesheet_detail
def execute():
frappe.reload_doc('projects', 'doctype', 'task')
frappe.reload_doc('projects', 'doctype', 'timesheet')
if not frappe.db.table_exists("Time Log"):
return
for data in fr... | agpl-3.0 | Python |
4404e9b520f87f59598222654a078e8a79a21d0b | remove redundantly listed module 'yubikey' | ThomasHabets/python-pyhsm,ThomasHabets/python-pyhsm,Yubico/python-pyhsm,ThomasHabets/python-pyhsm | Lib/pyhsm/__init__.py | Lib/pyhsm/__init__.py | # Copyright (c) 2011, Yubico AB
# 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 condit... | # Copyright (c) 2011, Yubico AB
# 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 condit... | bsd-2-clause | Python |
070e52abbed94ff3f59634386405dfeb4d789035 | fix default pythonpath. | infinit/drake,mefyl/drake,mefyl/drake,infinit/drake,infinit/drake,mefyl/drake | src/drake/templating.py | src/drake/templating.py | # Copyright (C) 2013, Quentin "mefyl" Hocquet
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
import drake
class Context:
curr... | # Copyright (C) 2013, Quentin "mefyl" Hocquet
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
import drake
class Context:
curr... | agpl-3.0 | Python |
05e8ee652d1465244b213fd63638d088e72252b1 | bump development version | openmotics/gateway,openmotics/gateway | src/gateway/__init__.py | src/gateway/__init__.py | # Copyright (C) 2016 OpenMotics BV
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribu... | # Copyright (C) 2016 OpenMotics BV
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribu... | agpl-3.0 | Python |
219303805f21b64cad6f961466e45b96a8f81393 | add a test array fixture | synthicity/activitysim,bhargavasana/activitysim,synthicity/activitysim,bhargavasana/activitysim | activitysim/omx/tests/test_omxfile.py | activitysim/omx/tests/test_omxfile.py | import os
import tempfile
import numpy as np
import numpy.testing as npt
import pytest
import tables
from .. import open_omxfile, ShapeError
@pytest.fixture
def tmpomx(request):
with tempfile.NamedTemporaryFile() as f:
fname = f.name
def cleanup():
if os.path.exists(fname):
os.r... | import os
import tempfile
import numpy as np
import pytest
import tables
from .. import open_omxfile, ShapeError
def add_m1_node(f):
f.create_matrix('m1', obj=np.ones((7, 7)))
@pytest.fixture
def tmpomx(request):
with tempfile.NamedTemporaryFile() as f:
fname = f.name
def cleanup():
i... | agpl-3.0 | Python |
37dc9303a6c15137c1bbb48ce740b3c2023b741c | fix medium_id for website sent form | sysadminmatmoz/OCB,bplancher/odoo,stephen144/odoo,storm-computers/odoo,storm-computers/odoo,stephen144/odoo,stephen144/odoo,bplancher/odoo,hip-odoo/odoo,microcom/odoo,Elico-Corp/odoo_OCB,dfang/odoo,ygol/odoo,dfang/odoo,sysadminmatmoz/OCB,laslabs/odoo,hip-odoo/odoo,ygol/odoo,laslabs/odoo,storm-computers/odoo,hip-odoo/od... | addons/website_crm/models/crm_lead.py | addons/website_crm/models/crm_lead.py | from openerp import models, SUPERUSER_ID
class Lead(models.Model):
_inherit = 'crm.lead'
def website_form_input_filter(self, request, values):
values.setdefault('medium_id', request.registry['ir.model.data'].xmlid_to_res_id(request.cr, SUPERUSER_ID, 'utm.utm_medium_website'))
return values
| from openerp import models, SUPERUSER_ID
class Lead(models.Model):
_inherit = 'crm.lead'
def website_form_input_filter(self, request, values):
values.setdefault('medium_id', request.registry['ir.model.data'].xmlid_to_res_id(request.cr, SUPERUSER_ID, 'crm.crm_medium_website'))
return values
| agpl-3.0 | Python |
8d89f09bfd502aa42e8a83c2c5e5c7e4a2d8aefb | Move translator notes just before translatable strings | django-leonardo/horizon,orbitfp7/horizon,karthik-suresh/horizon,Metaswitch/horizon,froyobin/horizon,blueboxgroup/horizon,takeshineshiro/horizon,xinwu/horizon,ChameleonCloud/horizon,Dark-Hacker/horizon,philoniare/horizon,damien-dg/horizon,coreycb/horizon,liyitest/rr,Metaswitch/horizon,karthik-suresh/horizon,coreycb/hori... | horizon/test/test_dashboards/dogs/puppies/tables.py | horizon/test/test_dashboards/dogs/puppies/tables.py | # 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... | # 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... | apache-2.0 | Python |
04f9760f49ac1100951f6f33dd10cdf6b43ee20a | Fix print statements | pvtodorov/indra,pvtodorov/indra,bgyori/indra,johnbachman/indra,jmuhlich/indra,sorgerlab/indra,sorgerlab/belpy,pvtodorov/indra,johnbachman/indra,sorgerlab/belpy,sorgerlab/indra,jmuhlich/indra,pvtodorov/indra,jmuhlich/indra,sorgerlab/indra,bgyori/indra,johnbachman/belpy,bgyori/indra,johnbachman/belpy,johnbachman/belpy,so... | indra/tools/reading/process_reach_from_s3_submit.py | indra/tools/reading/process_reach_from_s3_submit.py | from __future__ import absolute_import, print_function, unicode_literals
from builtins import str, dict
import sys
import subprocess
if __name__ == '__main__':
usage = 'Usage: %s pmid_list tmp_dir num_nodes num_cores_per_node' % \
sys.argv[0]
if len(sys.argv) != 5:
print(usage)
sy... | import sys
import subprocess
if __name__ == '__main__':
usage = 'Usage: %s pmid_list tmp_dir num_nodes num_cores_per_node' % \
sys.argv[0]
if len(sys.argv) != 5:
print usage
sys.exit()
# The file containing the PMIDs to read
pmid_list = sys.argv[1]
# Path to temporary... | bsd-2-clause | Python |
6bcdeac971bd98c0bbf64abfefe42cc9b7880ce1 | update shader storage buffer | ubuntunux/PyEngine3D,ubuntunux/PyEngine3D,ubuntunux/GuineaPig | OpenGLContext/ShaderStorageBuffer.py | OpenGLContext/ShaderStorageBuffer.py | import math
import ctypes
from ctypes import sizeof, c_float, c_void_p, c_uint, string_at
import numpy as np
from OpenGL.GL import *
from Common import logger
class ShaderStorageBuffer:
def __init__(self, name, binding, datas):
self.name = name
self.binding = binding
self.buffer = glGenB... | import math
import ctypes
from ctypes import sizeof, c_float, c_void_p, c_uint, string_at
import numpy as np
from OpenGL.GL import *
from Common import logger
class ShaderStorageBuffer:
def __init__(self, name, binding, data):
self.name = name
self.buffer = glGenBuffers(1)
self.binding =... | bsd-2-clause | Python |
58e7fdde5025b9ef8b823ca6ad5e894efc15910d | Handle a subtle case during re-rendering involving file removal. | conda-forge/conda-smithy,conda-forge/conda-smithy,shadowwalkersb/conda-smithy,shadowwalkersb/conda-smithy,ocefpaf/conda-smithy,ocefpaf/conda-smithy | conda_smithy/feedstock_io.py | conda_smithy/feedstock_io.py | from contextlib import contextmanager
import os
import shutil
def get_repo(path, search_parent_directories=True):
repo = None
try:
import git
repo = git.Repo(
path,
search_parent_directories=search_parent_directories
)
except ImportError:
pass
ex... | from contextlib import contextmanager
import os
import shutil
def get_repo(path, search_parent_directories=True):
repo = None
try:
import git
repo = git.Repo(
path,
search_parent_directories=search_parent_directories
)
except ImportError:
pass
ex... | bsd-3-clause | Python |
14d7271eeaf18ef0d03ae7c3a259dd049b85fd38 | Update runTensorBoard.py | prashantas/MyDataScience | DeepNetwork/runTensorBoard.py | DeepNetwork/runTensorBoard.py | import tensorflow as tf
a = tf.constant(5.0)
b = tf.constant(6.0)
c = a*b
sess = tf.Session()
File_Writer = tf.summary.FileWriter('C:\\Users\\prassha\\Desktop\\MachineLearning\\EquiSkill\\TF_Sonar\\graph',sess.graph)
## Execute this program and Run the following command from Annaconda prompt (C:\Users\prassha\AppDa... | import tensorflow as tf
a = tf.constant(5.0)
b = tf.constant(6.0)
c = a*b
sess = tf.Session()
File_Writer = tf.summary.FileWriter('C:\\Users\\prassha\\Desktop\\MachineLearning\\EquiSkill\\TF_Sonar\\graph',sess.graph)
## (C:\Users\prassha\AppData\Local\Continuum\Anaconda3) C:\Users\prassha\Desktop\MachineLearning\Eq... | bsd-2-clause | Python |
06a4ccf973e5fbfaa970ab8e09be31ba8a285ba3 | fix redirect after password change | Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org | Instanssi/admin_auth/views.py | Instanssi/admin_auth/views.py | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response
from django.http import Http404,HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.template import RequestContext
from forms import LoginForm
def ... | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response
from django.http import Http404,HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.template import RequestContext
from forms import LoginForm
def ... | mit | Python |
551b527237fbfa23224b649b1f34c0928df99ca4 | enable specifying of specific test methods | instinct-vfx/rez,nerdvegas/rez,nerdvegas/rez,instinct-vfx/rez | src/rez/cli/selftest.py | src/rez/cli/selftest.py | '''
Run unit tests.
'''
import inspect
import os
import rez.vendor.argparse as argparse
from pkgutil import iter_modules
cli_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
src_rez_dir = os.path.dirname(cli_dir)
tests_dir = os.path.join(src_rez_dir, 'tests')
all_module_tests = []
def setup_parser(par... | '''
Run unit tests.
'''
import inspect
import os
import rez.vendor.argparse as argparse
from pkgutil import iter_modules
from fnmatch import fnmatch
cli_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
src_rez_dir = os.path.dirname(cli_dir)
tests_dir = os.path.join(src_rez_dir, 'tests')
all_tests = []... | apache-2.0 | Python |
0d1b7fcd580e2f21d124d2cb218a690ef98c7cd1 | Add attributes to task class | Bigless27/Python-Projects | Python-To-Dos/task.py | Python-To-Dos/task.py | class Task(object):
def __init__(self, content):
self.complete = content
self.complete = false
| task.py | mit | Python |
1c165e91d71e4ea4a567d07ed22c5119d1561270 | Integrate LLVM at llvm/llvm-project@f8de9aaef2f4 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "f8de9aaef2f472ad7572748582444083d31d5a95"
LLVM_SHA256 = "577e77afb764eff514ba5c8fdf8ad86fd9b2e073d06df055d9c6bb42fcfd6b20"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "494e77138c2e53961c43fe6957142d4f90034f98"
LLVM_SHA256 = "a1fb353141d25de395741ae8a5b8481a321dff6d17070dff72d286b8e901041a"
tfrt_http_archive(
... | apache-2.0 | Python |
ac5e9efee473efc86b8c0496ef7423a50132e52a | Integrate LLVM at llvm/llvm-project@119cef40d18c | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "119cef40d18c48240854edc553dca61c4e9fdf27"
LLVM_SHA256 = "315e329767fee749ce38ef4d00bae13ce093ec272665d7d00349af844f416797"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "0c22cdfdd1bff6b0fddba8124ab5478884d1629c"
LLVM_SHA256 = "ae5cd4d31ac14fcd974227a117734f6e01239afd64eebaee2eb60349936bb115"
tfrt_http_archive(
... | apache-2.0 | Python |
2d3b32ff83360ac4c161b5fdf886a906ca27e1b3 | Integrate LLVM at llvm/llvm-project@ab85996e475c | tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,I... | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "ab85996e475ceddfda82255c314229ac0c0f4994"
LLVM_SHA256 = "140b4198fa4f0ec1917a0e252feec5e19ccd9d7e96fc818c555b5551c796ec5b"
tf_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "395bda933f76097fee350544e05373838d7e698b"
LLVM_SHA256 = "6d94e42137a45dcaff35ec7cff045c7e24d196b5fd3b63aaf1343fa5e2429338"
tf_http_archive(
... | apache-2.0 | Python |
45957d0586854a40e1ddf18b04a896450bfa4892 | Integrate LLVM at llvm/llvm-project@2656fb39451f | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "2656fb39451ff19400b76bba93f7f6a27879784c"
LLVM_SHA256 = "07dbae443dd41c2fe8a0fee02e81ec651941ff4404aa5c298e34c8f931166186"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "0cf888514454350cd97ab79cdb4a73e7f189eea0"
LLVM_SHA256 = "515bd27c1e4dda74603237a84e89b1c31b96aa91934fefb196b98bf18a443991"
tfrt_http_archive(
... | apache-2.0 | Python |
fc55e3af01e239b0fcdf9d9e6c21cf99476feb29 | Integrate LLVM at llvm/llvm-project@58ddeba3e0de | tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow,karllessard/tensorflow,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,paolodedios/t... | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "58ddeba3e0de504039add9b5a10a4546de25c7a9"
LLVM_SHA256 = "825fac2c30865ac5a2be24b1015153e62760d4455ebf7a23fb9926a7c46f6e48"
tf_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "4504e1134c9118f3c322685f8a90129e09bab92c"
LLVM_SHA256 = "2b1d7a96ff37600cae12d2ed51b9f0554b1bbc6511ffe51ac7525928b29bab44"
tf_http_archive(
... | apache-2.0 | Python |
6dfe928445dfde9b92a31c6724ece8c8a855924a | Integrate LLVM at llvm/llvm-project@cc8d32ae7d94 | Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/te... | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "cc8d32ae7d94c96b9280df40eb3507eae79c7101"
LLVM_SHA256 = "7cbfb727c8009baab7c967bb4a96f9abaf139357dc2be1b7d4cbb7878fb6a2e0"
tf_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "56ae4f23b227897361d2a7c84364a6df81f3c327"
LLVM_SHA256 = "7579f3aa248cce4712b33debe6a328a2c0a2588850b9aeb70bb46e7e1fb0fb1e"
tf_http_archive(
... | apache-2.0 | Python |
cc25a42526c03f482bac3e7246f011bc88330af6 | Integrate LLVM at llvm/llvm-project@93183a41b962 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "93183a41b962ce21ea168357172aaf00cdca5bd9"
LLVM_SHA256 = "9f212bca2050e2cffa15aa72aa07d89e108b400d15ca541327a829e3d4108fb9"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "366df11a35392c946678f1af94038945c23f06c8"
LLVM_SHA256 = "cd720387229e8ee74cc9d7d685a298c709fb2bdb2063301e509f40dacbdbaaea"
tfrt_http_archive(
... | apache-2.0 | Python |
b02e06be41ccf751821228bfaf08b567556f2e0d | Integrate LLVM at llvm/llvm-project@7059a6c32cfa | tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_s... | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "7059a6c32cfad8f272fad47265e3890cd7a1a7e1"
LLVM_SHA256 = "867868333acbd89d95f9a9fcfa640902de17bf9b80e24eeda88c50a409bcffa4"
tf_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "f962dafbbdf61234bfa51bde95e2e5c52a02e9b9"
LLVM_SHA256 = "9ae9cae1c72a35630499345bffa72ab45e2fcec2442acba6cbf88f5dee575919"
tf_http_archive(
... | apache-2.0 | Python |
a230ca2f414f578a0f77f3327aef22e24f30260d | Integrate LLVM at llvm/llvm-project@3ca6eee2a975 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "3ca6eee2a975edcfa49d8adff6b90df6f8e1ba85"
LLVM_SHA256 = "ffcfc07c22b9508bd77906e2e70366b34d93bee7ceb03b39da28c3dd524bb34e"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "095bbc3a5a75f2e576b6efeadae34aaca693084e"
LLVM_SHA256 = "c71fa7274c8cc7c47de8cb5ea35d4fde3c1028d6083ec5573e85eeb017e4e942"
tfrt_http_archive(
... | apache-2.0 | Python |
1b3a945efc7574ea308d6950c58dcc88877f8467 | Integrate LLVM at llvm/llvm-project@1a729bce8617 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "1a729bce86173c9019545599c8a0771d0419ce9e"
LLVM_SHA256 = "e1688cbb98bb250b0a055c81d259cabcb339ca347ddfedf6827bea4d8f174eb1"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "aed179f5f557664d6deb26ef6fdc6aa944af41af"
LLVM_SHA256 = "41911605d3654841eaa3d8cd854a95b71c39e643ea362086837ad3681a71db05"
tfrt_http_archive(
... | apache-2.0 | Python |
26eaaae16b4f97f4e8981d8e9cc0255a7781e9b0 | Integrate LLVM at llvm/llvm-project@deb73a285b92 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "deb73a285b92ece59c93c2c3b4b398bdd540513c"
LLVM_SHA256 = "8fd1071f8647cca612a70f7d813295452dcde804cc8b25a9b6daa8867a6bb118"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "a59014b759050af93e0ab214dcbf0cc2dd75bb75"
LLVM_SHA256 = "5dc76080bde29428b588c0724991ee0387e7652ac3d0d50cdb1887921d31afd8"
tfrt_http_archive(
... | apache-2.0 | Python |
9f09fe00370c4305c17d6f36afeb821e0eebaece | Integrate LLVM at llvm/llvm-project@81c99c5404c1 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime | third_party/llvm/workspace.bzl | third_party/llvm/workspace.bzl | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "81c99c5404c1aa92eadb7fb93dbeaae7bfaa5195"
LLVM_SHA256 = "004bb9687b0af78f507a6f5cfbed42eb712cacd8a553dc60dd833c89ba0466c7"
tfrt_http_archive(
... | """Provides the repository macro to import LLVM."""
load("//third_party:repo.bzl", "tfrt_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "f0d997c4723214f5bc098b0acd2e61f3215d4a49"
LLVM_SHA256 = "234253a7536e446b188de700453a6d6847e33b7813771c052b88982fb7d5753d"
tfrt_http_archive(
... | apache-2.0 | Python |
91f9d61a6c0b42ef9e7d46528d977b3d5eacd0bf | Use SubQuery term instead of subqry | frappe/frappe,yashodhank/frappe,yashodhank/frappe,yashodhank/frappe,StrellaGroup/frappe,StrellaGroup/frappe,frappe/frappe,frappe/frappe,yashodhank/frappe,StrellaGroup/frappe | frappe/desk/listview.py | frappe/desk/listview.py | # Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from typing import Dict, List
import frappe
from frappe.query_builder.functions import Count
from frappe.query_builder.terms import SubQuery
from frappe.query_builder.utils import DocType
@frappe.whitelist()
def get_list... | # Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from typing import Dict, List
import frappe
from frappe.query_builder.functions import Count
from frappe.query_builder.terms import subqry
from frappe.query_builder.utils import DocType
@frappe.whitelist()
def get_list_s... | mit | Python |
3cb4b32ab2a5b8ece55ed37ecf1ed41a110299af | Call cloudkeeper directly, no need to switch uid | CESNET/secant,CESNET/secant | cron_scripts/argo_consume.py | cron_scripts/argo_consume.py | #!/usr/bin/env python
from __future__ import print_function
import sys
import subprocess
sys.path.append('../lib/')
from argo_communicator import ArgoCommunicator
import logging, os
if os.path.split(os.getcwd())[-1] == 'lib' or os.path.split(os.getcwd())[-1] == 'cron_scripts':
sys.path.append('../include')
else:
... | #!/usr/bin/env python
from __future__ import print_function
import sys
import subprocess
sys.path.append('../lib/')
from argo_communicator import ArgoCommunicator
import logging, os
if os.path.split(os.getcwd())[-1] == 'lib' or os.path.split(os.getcwd())[-1] == 'cron_scripts':
sys.path.append('../include')
else:
... | apache-2.0 | Python |
73c4b803f7f33b8c6ca1bcd135757e486bedcfb2 | increment unit agent version | tsuru/tsuru-unit-agent,scorphus/tsuru-unit-agent | tsuru_unit_agent/__init__.py | tsuru_unit_agent/__init__.py | __version__ = "0.2.0"
| __version__ = "0.1.0"
| bsd-3-clause | Python |
7b75e47ce4fec541e432f84367ba58393934b941 | Update version 0.6.6 -> 0.6.7 | dwavesystems/dimod,dwavesystems/dimod | dimod/package_info.py | dimod/package_info.py | __version__ = '0.6.7'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = 'acondello@dwavesys.com'
__description__ = 'A shared API for binary quadratic model samplers.'
| __version__ = '0.6.6'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = 'acondello@dwavesys.com'
__description__ = 'A shared API for binary quadratic model samplers.'
| apache-2.0 | Python |
4501989968c395d48b3c109047b1fac4ab78dca5 | update sample | mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb | client/python/samples/basic/BasicWorkflow.py | client/python/samples/basic/BasicWorkflow.py | from modeldb.basic.ModelDbSyncerBase import *
# Creating a new project
name = "test1"
author = "srinidhi"
description = "pandas-logistic-regression"
SyncerObj = Syncer(
NewOrExistingProject(name, author, description),
DefaultExperiment(),
NewExperimentRun("Abc"))
print Syncer.instance.experiment
Syncer.in... | from modeldb.basic.ModelDbSyncerBase import *
# Creating a new project
name = "test1"
author = "srinidhi"
description = "pandas-logistic-regression"
SyncerObj = Syncer(
NewOrExistingProject(name, author, description),
DefaultExperiment(),
NewExperimentRun("Abc"))
print Syncer.instance.experiment
Syncer.in... | mit | Python |
78e83894eca866e06713bb91efff6a85d8b1f92b | split parse mail into write json+parse_mail | Nedgang/adt_project | mail_parser.py | mail_parser.py | #!/usr/bin/env python3
# -*- coding: utf8 -*-
import os
from email.parser import Parser
import json
def parse_mail(file_in):
"""
Extract Subject & Body of mail file
headers must be RFC 2822 style
"""
# filename_out = os.path.splitext(os.path.basename(file_in))[0] + ".json"
# infile_p... | #!/usr/bin/env python3
# -*- coding: utf8 -*-
import os
from email.parser import Parser
import json
def parse_mail(file_in, prefix_out):
"""
Extract Subject & Body of mail file
headers must be RFC 2822 style
outfile is created in the same directory than infile
"""
filename_out = ... | mit | Python |
2e897f7dce89d4b52c3507c62e7120ee238b713c | Connect database engine to postgresql | caasted/aws-flask-catalog-app,caasted/aws-flask-catalog-app | database/database_setup.py | database/database_setup.py | from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product
engine = create_engine('postgresql://catalog:catalog123!@l... | from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product
engine = create_engine('sqlite:///productcatalog.db')
Base... | mit | Python |
21bb03d9760000c3789b7814f6171d549cfc6410 | Add sysinfo to PY2 (#177) | DMOJ/judge,DMOJ/judge,DMOJ/judge | dmoj/executors/PY2.py | dmoj/executors/PY2.py | from dmoj.judgeenv import env
from .python_executor import PythonExecutor
class Executor(PythonExecutor):
command = env['runtime'].get('python')
test_program = "print __import__('sys').stdin.read()"
name = 'PY2'
syscalls = ['sysinfo']
fs = ['.*\.(?:so|py[co]?$)', '.*/lib(?:32|64)?/python[\d.]+/.*'... | from dmoj.judgeenv import env
from .python_executor import PythonExecutor
class Executor(PythonExecutor):
command = env['runtime'].get('python')
test_program = "print __import__('sys').stdin.read()"
name = 'PY2'
fs = ['.*\.(?:so|py[co]?$)', '.*/lib(?:32|64)?/python[\d.]+/.*', '.*/lib/locale/', '/proc... | agpl-3.0 | Python |
8cbc8504ae3124932d34535678b1b9e9ab18ca12 | Fix newlines in blacklist | Ispira/Ispyra | Ispyra/bot_globals.py | Ispyra/bot_globals.py | #Global variables and functions for the bot
import configparser
import logging
import os
#Print to console and log the data
def log_print(data):
try:
print(data)
logging.info(data)
#The unfortunate end user is on Windows
except UnicodeEncodeError:
data = data.encode("utf-8")
... | #Global variables and functions for the bot
import configparser
import logging
import os
#Print to console and log the data
def log_print(data):
try:
print(data)
logging.info(data)
#The unfortunate end user is on Windows
except UnicodeEncodeError:
data = data.encode("utf-8")
... | mit | Python |
cc457173ba73316c7e2d1d450e9333eabbd72d5b | Update down revision for command migration | wfxiang08/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes | migrations/versions/3f6a69c14037_create_jobstep_command_table.py | migrations/versions/3f6a69c14037_create_jobstep_command_table.py | """create jobstep command table
Revision ID: 3f6a69c14037
Revises: 21a9d1ebe15c
Create Date: 2014-07-15 15:47:01.960708
"""
# revision identifiers, used by Alembic.
revision = '3f6a69c14037'
down_revision = '21a9d1ebe15c'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
de... | """create jobstep command table
Revision ID: 3f6a69c14037
Revises: 19b8969073ab
Create Date: 2014-07-15 15:47:01.960708
"""
# revision identifiers, used by Alembic.
revision = '3f6a69c14037'
down_revision = '19b8969073ab'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
de... | apache-2.0 | Python |
bccd95ee9c94553b80816c866c3e90f39134d1d2 | Update understand_data.py with original code | candidate-selection-tutorial-sigir2017/candidate-selection-tutorial,candidate-selection-tutorial-sigir2017/candidate-selection-tutorial,candidate-selection-tutorial-sigir2017/candidate-selection-tutorial | assignments/assignment1/exercise/src/understand_data.py | assignments/assignment1/exercise/src/understand_data.py | from __future__ import unicode_literals
import argparse
import csv
from prettytable import PrettyTable
import pandas as pd
HEADERS = ["ID", "TITLE", "URL", "PUBLISHER", "CATEGORY", "STORY", "HOSTNAME", "TIMESTAMP"]
def run(input_file, num_records):
# printing data in a structured form
with open(input_file... | ./../../../../finished-product/src/backend/understand_data.py | apache-2.0 | Python |
cea80880ce184fa06a751507c8c2c42a3259b0df | add comment | qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | corehq/apps/change_feed/tests/test_pillow.py | corehq/apps/change_feed/tests/test_pillow.py | from django.conf import settings
from django.test import SimpleTestCase
from fakecouch import FakeCouchDb
from kafka import KafkaConsumer
from kafka.common import ConsumerTimeout
from corehq.apps.change_feed import topics
from corehq.apps.change_feed.consumer import change_meta_from_kafka_message
from corehq.apps.chang... | from django.conf import settings
from django.test import SimpleTestCase
from fakecouch import FakeCouchDb
from kafka import KafkaConsumer
from kafka.common import ConsumerTimeout
from corehq.apps.change_feed import topics
from corehq.apps.change_feed.consumer import change_meta_from_kafka_message
from corehq.apps.chang... | bsd-3-clause | Python |
64392eb0cf4bdedf23640a6236b70ea476036b11 | Migrate to oslo.context | openstack/networking-brocade,stackforge/networking-brocade,stackforge/networking-brocade,rmadapur/networking-brocade,openstack/networking-brocade | neutron/tests/unit/ml2/drivers/brocade/test_brocade_l3_plugin.py | neutron/tests/unit/ml2/drivers/brocade/test_brocade_l3_plugin.py | # Copyright (c) 2014 OpenStack Foundation
#
# 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 ... | # Copyright (c) 2014 OpenStack Foundation
#
# 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 ... | apache-2.0 | Python |
8b21c705dd9229f48df2dccd44f797995e041650 | use range from six.moves | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | corehq/apps/userreports/expressions/utils.py | corehq/apps/userreports/expressions/utils.py | from __future__ import absolute_import
import copy
import ast
from datetime import date, datetime, timedelta
from decimal import Decimal
from types import NoneType
from simpleeval import SimpleEval, DEFAULT_OPERATORS, InvalidExpression, DEFAULT_FUNCTIONS
from six.moves import range
def safe_pow_fn(a, b):
raise I... | from __future__ import absolute_import
import copy
import ast
from datetime import date, datetime, timedelta
from decimal import Decimal
from types import NoneType
from simpleeval import SimpleEval, DEFAULT_OPERATORS, InvalidExpression, DEFAULT_FUNCTIONS
def safe_pow_fn(a, b):
raise InvalidExpression
def safe_... | bsd-3-clause | Python |
a8c8b136f081e3a2c7f1fd1f833a85288a358e42 | Change validators to allow additional arguments to be given to the functions they are wrapping | praekelt/vumi-http-retry-api,praekelt/vumi-http-retry-api | vumi_http_retry/workers/api/validate.py | vumi_http_retry/workers/api/validate.py | import json
from functools import wraps
from twisted.web import http
from jsonschema import Draft4Validator
from vumi_http_retry.workers.api.utils import response
def validate(*validators):
def validator(fn):
@wraps(fn)
def wrapper(api, req, *a, **kw):
errors = []
for v... | import json
from functools import wraps
from twisted.web import http
from jsonschema import Draft4Validator
from vumi_http_retry.workers.api.utils import response
def validate(*validators):
def validator(fn):
@wraps(fn)
def wrapper(api, req, *a, **kw):
errors = []
for v... | bsd-3-clause | Python |
4eb1f4c8acf54b5c071524b1007e71ae20079484 | return expected DD next sequence number | libra/libra,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core | docker/mint/server.py | docker/mint/server.py | """
Simple faucet server
Proxies mint requests to local client that owns association keys
"""
import decimal
import os
import platform
import random
import re
import sys
import flask
import pexpect
MAX_MINT = 10 ** 19 # 10 trillion libras
def create_client():
if application.client is None or not application.c... | """
Simple faucet server
Proxies mint requests to local client that owns association keys
"""
import decimal
import os
import platform
import random
import re
import sys
import flask
import pexpect
MAX_MINT = 10 ** 19 # 10 trillion libras
def create_client():
if application.client is None or not application.c... | apache-2.0 | Python |
f3d6c0c26e537403464f68ecb7cf55b5ab8b45f2 | Fix cal_descriptor helper to return lists of cal points. | BBN-Q/QGL,BBN-Q/QGL | QGL/BasicSequences/helpers.py | QGL/BasicSequences/helpers.py | # coding=utf-8
from itertools import product
import operator
from ..PulsePrimitives import Id, X, MEAS
from ..ControlFlow import qwait
from functools import reduce
def create_cal_seqs(qubits, numRepeats, measChans=None, waitcmp=False):
"""
Helper function to create a set of calibration sequences.
Parameters
... | # coding=utf-8
from itertools import product
import operator
from ..PulsePrimitives import Id, X, MEAS
from ..ControlFlow import qwait
from functools import reduce
def create_cal_seqs(qubits, numRepeats, measChans=None, waitcmp=False):
"""
Helper function to create a set of calibration sequences.
Parameters
... | apache-2.0 | Python |
c96ecdb9e9969152125d7fe591219ad675fa80d6 | Fix template location in views.py of tags | super1337/Super1337-CTF,super1337/Super1337-CTF,super1337/Super1337-CTF | tags/views.py | tags/views.py | from django.shortcuts import render
from .models import Tag
def tags(request):
tags = Tag.objects.all()
return render(request, 'tags/tags.html', {'tags': tags})
| from django.shortcuts import render
from .models import Tag
def tags(request):
tags = Tag.objects.all()
return render(request, 'challenges/tags.html', {'tags': tags})
| mit | Python |
616e43a765777e20981e5f1d0901d6fec9a2745c | Fix chunkification | notapresent/rutracker_rss,notapresent/rutracker_rss,notapresent/rutracker_rss | taskmaster.py | taskmaster.py | """Adds tasks to task queue"""
import pickle
from google.appengine.api import taskqueue
def add_feeds_update_task():
"""Enqueue task updating feeds"""
taskqueue.add(url='/task/update_feeds')
def add_feed_build_tasks(params_list):
"""Enqueue task for building feed for specific category"""
q = taskque... | """Adds tasks to task queue"""
import pickle
from google.appengine.api import taskqueue
def add_feeds_update_task():
"""Enqueue task updating feeds"""
taskqueue.add(url='/task/update_feeds')
def add_feed_build_tasks(params_list):
"""Enqueue task for building feed for specific category"""
q = taskque... | apache-2.0 | Python |
370dac353937d73798b4cd2014884b9f1aa95abf | Test that users can access frontend when in osmaxx group | geometalab/osmaxx,geometalab/osmaxx-frontend,geometalab/osmaxx-frontend,geometalab/drf-utm-zone-info,geometalab/osmaxx,geometalab/drf-utm-zone-info,geometalab/osmaxx-frontend,geometalab/osmaxx,geometalab/osmaxx,geometalab/osmaxx-frontend | osmaxx-py/osmaxx/contrib/auth/tests/test_frontend_permissions.py | osmaxx-py/osmaxx/contrib/auth/tests/test_frontend_permissions.py | from django.test import TestCase
from django.contrib.auth.models import User, Group
from osmaxx.contrib.auth.frontend_permissions import user_in_osmaxx_group, FRONTEND_USER_GROUP
class TestFrontendPermissions(TestCase):
def test_superuser_can_access_frontend_even_if_not_in_osmaxx_group(self):
an_admin = U... | from django.test import TestCase
from django.contrib.auth.models import User
from osmaxx.contrib.auth.frontend_permissions import user_in_osmaxx_group
class TestFrontendPermissions(TestCase):
def test_superuser_can_access_frontend_even_if_not_in_osmaxx_group(self):
an_admin = User.objects.create_superuser... | mit | Python |
ad0263f8e608b7f13b27f0e94583708de2643592 | Create docs/_formatted_howtos when building HOWTO docs | google/flax,google/flax | docs/format_howtos.py | docs/format_howtos.py | """
Read all of the HOWTO .diff files and convert them into .html files
that are both Python syntax highlighted /and/ diff syntax highlighted.
Then these can be included directly in readthedocs as inline HTML
files.
"""
import pygments
import pygments.formatters
from pygments.lexers import PythonLexer
import os
def... | """
Read all of the HOWTO .diff files and convert them into .html files
that are both Python syntax highlighted /and/ diff syntax highlighted.
Then these can be included directly in readthedocs as inline HTML
files.
"""
import pygments
import pygments.formatters
from pygments.lexers import PythonLexer
import os
def... | apache-2.0 | Python |
1652b921fa2fadc936b346fc3de217cf97b0e476 | Fix condition in snapshot script. Argv is never 2 long, it can be 3 or 4. | AerialX/rust-rt-minimal,fabricedesre/rust,emk/rust,erickt/rust,cllns/rust,j16r/rust,untitaker/rust,cllns/rust,miniupnp/rust,zachwick/rust,seanrivera/rust,aidancully/rust,achanda/rand,barosl/rust,pshc/rust,aidancully/rust,barosl/rust,kmcallister/rust,mdinger/rust,l0kod/rust,quornian/rust,fabricedesre/rust,LeoTestard/rus... | src/etc/make-snapshot.py | src/etc/make-snapshot.py | #!/usr/bin/env python
import snapshot, sys
if len(sys.argv) == 3:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], ""))
else:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], sys.argv[3]))
| #!/usr/bin/env python
import snapshot, sys
if len(sys.argv) == 2:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], ""))
else:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], sys.argv[3]))
| apache-2.0 | Python |
70a6105a89ccc5fb7cd8e9ae689d4f105eae6bfe | Fix minor error where not all r_grow variables would be added automatically if they arent specified in the XML file | ram8647/tcseg,ram8647/tcseg,ram8647/tcseg | Simulation/PostProcessParamsXML.py | Simulation/PostProcessParamsXML.py | def process_dictionary(dict):
'''
:param dict: the raw dictionary
:return: a dictionary where all the values have been checked and manipulated if needed
'''
batch_interpreter_version = 'beta1'
if 'r_mitosis_R123' in dict.keys():
val = dict['r_mitosis_R123']
dict['r_mitosis_R1']... | def process_dictionary(dict):
'''
:param dict: the raw dictionary
:return: a dictionary where all the values have been checked and manipulated if needed
'''
batch_interpreter_version = 'beta1'
if 'r_mitosis_R123' in dict.keys():
val = dict['r_mitosis_R123']
dict['r_mitosis_R1']... | mit | Python |
e0e385814fcf434c949a9fc71ad8db9fbe342901 | Set CentOS version to 'latest' for simplicity. | mbrukman/cloud-launcher,mbrukman/cloud-launcher,mbrukman/cloud-launcher,mbrukman/cloud-launcher | apps/hortonworks/hdp2/centos6/vm/ambari.py | apps/hortonworks/hdp2/centos6/vm/ambari.py | # Copyright 2014 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 writing,... | # Copyright 2014 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 writing,... | apache-2.0 | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.