code
stringlengths
6
947k
repo_name
stringlengths
5
100
path
stringlengths
4
226
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
947k
# Copyright (C) Linaro Limited 2015,2017 # Author: Milo Casagrande <milo.casagrande@linaro.org> # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at...
kernelci/kernelci-backend
app/models/tests/test_report_model.py
Python
lgpl-2.1
3,903
# __init__.py - collection of Croatian numbers # coding: utf-8 # # Copyright (C) 2012 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License,...
tonyseek/python-stdnum
stdnum/hr/__init__.py
Python
lgpl-2.1
870
# coding: utf-8 from django.test import TestCase from eventex.subscriptions.forms import SubscriptionForm class SubscribeTest(TestCase): def setUp(self): self.resp = self.client.get('/inscricao/') def test_get(self): 'GET /inscricao/ must return status code 200.' self.assertEqual(200, self.resp.status_code) ...
victorwestmann/wttd
eventex/subscriptions/tests.py
Python
lgpl-2.1
1,211
"""Core implementation of path-based import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the p...
prefetchnta/questlab
bin/x64bin/python/37/Lib/importlib/_bootstrap_external.py
Python
lgpl-2.1
60,574
from corpsearchsystem import CorpSearchSystem from modules.editdistance.normalized import \ NormalizedEditDistanceQueryToHandle,\ NormalizedEditDistanceQueryToDisplayName from modules.editdistance.lengths import \ LengthOfQuery, LengthOfHandle, LengthOfDisplayName from modules.editdistance.stopwords import...
WING-NUS/corpSearch
system/systems.py
Python
lgpl-3.0
2,889
# -*- coding: utf-8 -*- # Python stdlib import unittest # Unit tests from unit_tests.test_tfstate import test_base, test_provider def suite(): suite = unittest.TestSuite() suite.addTests(test_base.suite()) suite.addTests(test_provider.suite()) return suite if __name__ == '__main__': unittest.Te...
rodynnz/python-tfstate
unit_tests/test_tfstate/__init__.py
Python
lgpl-3.0
359
# -*- coding: iso-8859-1 -*- # # Copyright (C) 2009 Rene Liebscher # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 3 of the License, or (at your option) any # later ver...
arruda/pyfuzzy
fuzzy/set/ZFunction.py
Python
lgpl-3.0
1,985
import json, sys from collections import defaultdict annotations = json.loads(sys.stdin.read()) stats = defaultdict(lambda: defaultdict(float)) for annotation in annotations: show = '_'.join(annotation['name'].split('_')[:2]) stats['show'][show] += 1 stats['shots']['num'] += 1 stats['split'][annotati...
meriembendris/ADNVideo
src/annotation/grammar/label-stats.py
Python
lgpl-3.0
2,190
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-10-25 15:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('pipeline', '0002_auto_20161024_0848'), ...
sclooney94/Python_3_AVI
migrations/0001_initial.py
Python
lgpl-3.0
1,309
# -*- coding: utf-8 -*- # # Import script for .csv files. # Note: manifest a strong printaholism. # import sys, os, csv, re from optparse import OptionParser # get path of the django project path = ("/").join( sys.path[0].split("/")[:-1] ) ppath = ("/").join( sys.path[0].split("/")[:-2] ) if path not in sys.pat...
medialab/reanalyse
reanalyseapp/update.py
Python
lgpl-3.0
11,321
import sys,os from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. shared_modules_base=os.path.join(os.path.abspath(__file__).rsplit(__file__, 1)[0], 'src', 'shared_modules') capture_base=os.path.join(os.path.abspath(__file__).rsplit(__file__, 1)[0], 'src', ...
teamCarel/EyeTracker
setup.py
Python
lgpl-3.0
1,584
# -*- coding: utf8 -*- import logging import math from Graphx import graphx from GameEngine.GameObjects.gameObjectBehaviour import GameObjectBehaviour from Brains.human import HumanBrain from conf import conf class CarBehaviour(GameObjectBehaviour): brainTypes = { 'human': HumanBrain } """ Behaviour of the ...
Hiestaa/cognitive-racer
GameEngine/GameObjects/Car/behaviour.py
Python
lgpl-3.0
3,344
from django.contrib import admin from foxcms.models.perms import Clearance, Permission class PermissionInline(admin.TabularInline): model = Permission extra = 3 @admin.register(Clearance) class ClearanceAdmin(admin.ModelAdmin): fields = [ 'name' ] inlines = [ PermissionInline ]
bkfox/foxcms
foxcms/admin/perms.py
Python
lgpl-3.0
302
""" ETMPlot Date: 10-Jun-16 Authors: Y.M. Dijkstra """ from scipy.signal import argrelextrema import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt import step as st import nifty as ny class ws_Q_plot: # Variables # Methods def __init__(self, input): self.input = input ...
YoeriDijkstra/iFlow
Examples/Tutorial/plotting/ws_Q_plot.py
Python
lgpl-3.0
3,083
# (C) British Crown Copyright 2013 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
Jozhogg/iris
lib/iris/tests/unit/fileformats/ff/test_FF2PP.py
Python
lgpl-3.0
15,608
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of Androwarn. # # Copyright (C) 2012, 2019, Thomas Debize <tdebize at mail.com> # All rights reserved. # # Androwarn is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by #...
maaaaz/androwarn
warn/search/manifest/manifest.py
Python
lgpl-3.0
4,316
#This example is meant to be used from within the CadQuery module of FreeCAD. import cadquery import Part #1.0 is the distance, not coordinate r = cadquery.Workplane("front").hLine(1.0) #hLineTo allows using xCoordinate not distance r = r.vLine(0.5).hLine(-0.25).vLine(-0.25).hLineTo(0.0) #Mirror the geometry and ext...
dcowden/cadquery-freecad-module
CadQuery/Examples/Ex011_Mirroring_Symmetric_Geometry.py
Python
lgpl-3.0
447
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>) # # This program is free software: you can redistribute it and/or modify # it...
smart-solution/icy
icy_sale_webkit/__init__.py
Python
lgpl-3.0
1,084
x = 2 y = 2 print(x * y) print (x % 5) print(len("Hello g")) import pandas as pd cars = {'Brand': ['Honda Civic','Toyota Corolla','Ford Focus','Audi A4'], 'Price': [22000,25000,27000,35000] } df = pd.DataFrame(cars, columns = ['Brand', 'Price']) print (df[0:1])
Desmo46/Python
testfile.py
Python
lgpl-3.0
283
import unittest from tests.dict_tester import DictTester from local_repositories import iva_formatter CVE_ID = "CVE-1999-0004" SUMMARY = "MIME buffer overflow in email clients, e.g. Solaris mailtool and Outlook." VUL_CONFIG = ["cpe:2.3:a:hp:dtmail", "cpe:2.3:a:university_of_washington:pine:4.02", "cpe:2.3:o:sco:unixw...
fkie-cad/iva
tests/test_local_repositories/test_iva_formatter.py
Python
lgpl-3.0
3,606
# -*- coding: utf-8 -*- from odoo import http # class Acicf(http.Controller): # @http.route('/acicf/acicf/', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/acicf/acicf/objects/', auth='public') # def list(self, **kw): # return http.request.render('acicf...
Communities-Communications/acicf
controllers/controllers.py
Python
lgpl-3.0
669
from .exifyay import *
NarrativeTeam/exifyay
bindings/__init__.py
Python
lgpl-3.0
23
import enum class S3SignatureVersion(enum.Enum): S3_V2 = 'S3_V2' S3_V4 = 'S3_V4'
bitmovin/bitmovin-python
bitmovin/resources/enums/s3_sig_version.py
Python
unlicense
91
import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
jb-old/chii
quoth/uwsgi_app.py
Python
unlicense
148
#!/usr/bin/env python from __future__ import print_function with open("../File_example.txt") as file_in: for line in file_in: print(line.strip()) print('#' * 40) file_to_write = open("../File_example.txt", "wt") print(file_to_write) file_to_write.write("Line one\nLine two\nLine three\n") file_to_write.f...
Sergiy-DBX/pynet_test-
Files/Ex_1.py
Python
unlicense
661
from lxml import etree class Opf: _OPF_NS = "http://www.idpf.org/2007/opf" DC_NS = "http://purl.org/dc/elements/1.1/" def __init__(self, opf): self._opf = etree.parse(opf) def getSpineItems(self): return self._xpath(self._opf, "/opf:package/opf:spine/opf:itemref/@idref") def get...
leandro86/epubcreator
epubcreator/pyepub/pyepubreader/opf.py
Python
unlicense
3,730
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: types.py from types import * MSG_KEY_PARAMS = 65536 MSG_KEY_PARAMS_TARGET = 65537 MSG_KEY_RESULT = 131072 MSG_KEY_RESULT_UPTIME = 131073 MSG_KEY_RESU...
DarthMaulware/EquationGroupLeaks
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/uptime/types.py
Python
unlicense
340
''' Created on Nov 21, 2013 @author: ezulkosk ''' from FeatureSplitConfig import ers_optional_names, bdb_optional_names, \ webportal_optional_names, eshop_optional_names, ers_config_split_names, \ webportal_config_split_names, eshop_config_split_names, bdb_config_split_names from consts import METRICS_MAXIMIZE...
ai-se/parGALE
epoal_src/parallelfeaturesplitGIA.py
Python
unlicense
33,034
workhour=input('enter work hour:') workrate=input('enter work rate:') if workhour>40: pay=40*workrate+(workhour-40)*workrate*1.5 else: pay=workhour*workrate print 'pay:',pay
xloc/SwimmingPool
Questions Submit/Q1/Q1_xiong.py
Python
unlicense
189
#!/bin/env python # mainly for sys.argv[], sys.argv[0] is the name of the program import sys # mainly for arrays import numpy as np def newtraph(fx, fxprime): if __name__ == '__main__': print 'hello'
ketancmaheshwari/hello-goog
src/python/newtonraphson.py
Python
apache-2.0
209
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ricepanel.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
CallmeTorre/RicePanel
ricepanel/manage.py
Python
apache-2.0
252
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
kogotko/carburetor
openstack_dashboard/dashboards/admin/overview/tests.py
Python
apache-2.0
10,491
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/active-qa
px/nmt/model_test.py
Python
apache-2.0
70,985
from __future__ import absolute_import from __future__ import print_function import ujson from django.http import HttpResponse from mock import patch from typing import Any, Dict, List, Text, Union from zerver.lib.actions import ( do_change_is_admin, do_set_realm_property, do_deactivate_realm, ) from ze...
christi3k/zulip
zerver/tests/test_realm.py
Python
apache-2.0
10,099
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-dialogflow-cx
samples/generated_samples/dialogflow_v3_generated_flows_delete_flow_sync.py
Python
apache-2.0
1,367
from __future__ import absolute_import from .analysis import * from .elevation import * from .hydrology import * #from .geocoder import * __version__ = "3.5.3"
Esri/executive-dashboard
ExecutiveReportingScript/arcrest/agol/helperservices/__init__.py
Python
apache-2.0
160
# -*- coding: utf-8 -*- # flake8: noqa # Disable Flake8 because of all the sphinx imports # # 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 licens...
Fokko/incubator-airflow
docs/exts/exampleinclude.py
Python
apache-2.0
9,331
# Copyright 2016 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 to in...
andrewalexander/cloud-custodian
c7n/commands.py
Python
apache-2.0
9,335
# -*- coding: utf-8 -*- # # Copyright 2013 - Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
nmakhotkin/mistral-extra
examples/webhooks/api/controllers/resource.py
Python
apache-2.0
1,470
# -*- coding: utf-8 -* from distutils.core import setup import os PACKAGE_NAME = "railgun" def recurse(d): ret = [] for f in os.listdir(d): if f.startswith("."): continue df = os.path.join(d, f) if os.path.isfile(df): ret.append(df) elif f != "build": re...
evolvIQ/railgun
setup.py
Python
apache-2.0
990
#!/usr/bin/env python # Copyright 2012 Cisco Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
igor-toga/local-snat
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
Python
apache-2.0
41,399
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class IfVlanRemote(RemoteModel): """ VLANs that an interface is in along with the STP state of the interface. Also includes SVIs (VlanInterfaceInd = 1) and peer interfaces attached to access ports (VlanExtensionIn...
infobloxopen/infoblox-netmri
infoblox_netmri/api/remote/models/if_vlan_remote.py
Python
apache-2.0
4,719
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
google-research/google-research
non_semantic_speech_benchmark/export_model/tf_pad.py
Python
apache-2.0
2,326
''' 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 (the "License"); you may not use this ...
pluradj/incubator-tinkerpop
gremlin-python/src/main/jython/gremlin_python/process/strategies.py
Python
apache-2.0
5,953
# -*- coding: utf-8 -*- # See https://zulip.readthedocs.io/en/latest/subsystems/events-system.html for # high-level documentation on how this system works. from typing import Any, Callable, Dict, List, Optional, Set, Tuple import copy import os import shutil import sys from django.conf import settings from django.http...
tommyip/zulip
zerver/tests/test_events.py
Python
apache-2.0
146,684
import json with open('bot/config.json', 'r') as f: _config = json.load(f) config = _config['config'] name = _config['name']
kreuks/liven
bot/config.py
Python
apache-2.0
140
import urllib2 class BibRecord(): _access_token = None _wskey = None def __init__(self, access_token, wskey): self._access_token = access_token self._wskey = wskey def read(self): """Use an Access Token's User Parameter to request a Bibliographic Record""" request_url...
OCLC-Developer-Network/oclc-auth-python
examples/authentication_token/bibliographic_record.py
Python
apache-2.0
1,088
# coding:utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) import scrapy from w3lib.html import remove_tags class BaiduSearchSpider(scrapy.Spider): name = "baidu_search" allowed_domains = ["baidu.com"] start_urls = [ "https://www.baidu.com/s?wd=机器学习" ] def parse(self, resp...
Danceiny/HackGirlfriend
Spider/CorpusSpider/CorpusSpider/spiders/baidu_search.py
Python
apache-2.0
1,698
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
taknevski/tensorflow-xsmm
tensorflow/contrib/learn/python/learn/estimators/dynamic_rnn_estimator.py
Python
apache-2.0
49,250
# Copyright (c) 2016 Cisco Systems # 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 require...
noironetworks/aci-integration-module
aim/db/hashtree_db_listener.py
Python
apache-2.0
18,457
from utils.header import IndexedHeader, Field class IndirectSymbolIndex(Field): INDIRECT_SYMBOL_ABS = 0x40000000 INDIRECT_SYMBOL_LOCAL = 0x80000000 def display(self, header): if self.mnemonic: value = self._get_value(header) if value == self.INDIRECT_SYMBOL_ABS: ...
hkkwok/MachOTool
mach_o/headers/indirect_symbol.py
Python
apache-2.0
852
# Copyright 2013 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
huaweiswitch/neutron
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py
Python
apache-2.0
59,556
# -*- test-case-name: twistedcaldav.test.test_wrapping -*- ## # Copyright (c) 2005-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
red-hood/calendarserver
twistedcaldav/storebridge.py
Python
apache-2.0
150,144
# coding: utf-8 # # Copyright 2021 The Oppia 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 requi...
kevinlee12/oppia
core/storage/blog/gae_models_test.py
Python
apache-2.0
15,690
from cosrlib.document.html import HTMLDocument import pytest def _links(html, url=None): return HTMLDocument(html, url=url).parse().get_hyperlinks() def test_get_hyperlinks(): links = _links("""<html><head><title>Test title</title></head><body>x</body></html>""") assert len(links) == 0 links = _lin...
commonsearch/cosr-back
tests/cosrlibtests/document/html/test_hyperlinks.py
Python
apache-2.0
4,389
# 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...
allisonrandal/openstack-spec-tracker
spectracker/pagerender.py
Python
apache-2.0
1,658
#numbers = [3,1,9,7,8,2,5,6,4,0,11,15,13, 14,21,3,3,1,9,7,8,2,5,6,4,0,11,15,13, 14,21,3] numbers = [30, 10, 11, 45, 1, 50, 10, 11, 45, 1, 50, 10, 11, 45, 1, 50, 10, 11, 45, 1, 50, 10, 11, 45, 1, 50, 10, 11, 45, 1, 50] print_stack = [] def get_pivot(mynumbers): return (mynumbers[0]+mynumbers[-1])/2 ...
fernandozamoraj/py_sandbox
py101/quick_sort.py
Python
apache-2.0
2,345
# Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # Copyright 2013 Red Hat, 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 Li...
vmthunder/nova
nova/tests/api/openstack/compute/test_servers.py
Python
apache-2.0
188,039
#!/usr/bin/env python3 import csv import argparse FLAG = None def write_file(feats,lab_list, fn): with open(fn,'w') as f: for num, i in enumerate(feats): for j in range(len(i)): f.write(str(i[j]) + ',') f.write(str([len(i)-1]) + '\n') return def transform(...
hoaaoh/Audio2Vec
src/trans_len.py
Python
apache-2.0
1,528
import os import pickle import torch SPECIAL_WORDS = {"PADDING": "<PAD>"} def load_data(path): """ Load Dataset from File """ input_file = os.path.join(path) with open(input_file, "r") as f: data = f.read() return data def preprocess_and_save_data(dataset_path, token_lookup, creat...
Diyago/Machine-Learning-scripts
DEEP LEARNING/NLP/LSTM RNN/Next Chars pytorch/project-tv-script-generation/helper.py
Python
apache-2.0
1,431
# 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 # distrib...
openstack/python-openstackclient
openstackclient/network/v2/l3_conntrack_helper.py
Python
apache-2.0
8,285
__author__ = 'wentian' test = "123" print(test) input_A = input("Input: ") print(input_A)
zhihaoSong/spring-practices
demo/src/main/java/demo/docker/entry.py
Python
apache-2.0
91
# -*- coding: utf-8 -*- import requests import BeautifulSoup import csv class PfManager: """ Data management tool for IVBPF and CNSPF """ PASSWORD_FILE = 'password.txt' LOGIN_URL = 'user.php' REGISTER_URL = 'register.php' DETAIL_URL = 'detail.php' DELETE_URL = 'config.php' def __...
DaisukeMiyamoto/ivbpf_manager
ivbpf_manager/pfmanager.py
Python
apache-2.0
5,659
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-aiplatform
samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_async.py
Python
apache-2.0
1,513
# Copyright (c) 2016 HuaWei, 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 writi...
openstack/zaqar
zaqar/storage/configuration.py
Python
apache-2.0
1,625
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/spectral-density
tf/experiment_utils_test.py
Python
apache-2.0
3,931
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2017) Hewlett Packard Enterprise Development LP # # 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/licen...
HewlettPackard/oneview-ansible
library/hpe_icsp_os_deployment.py
Python
apache-2.0
6,438
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-02-20 07:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('landing', '0010_auto_20180220_0747'), ] operations = [ migrations.RemoveFie...
flavoi/diventi
diventi/landing/migrations/0011_auto_20180220_0805.py
Python
apache-2.0
786
# Copyright (C) 2014 Juniper Networks, Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
thanhtien522/nova-docker
novadocker/virt/docker/opencontrail.py
Python
apache-2.0
4,378
""" Contains the network configuration for each drone. Elements to update for each flight: 'host' - This is the IP which should be set on the drone - this will only update when changing drone network information 'bind_host' - This is the IP which is used by the network card/USB dongle to connect to the drone - this w...
rc500/ardrone_archive_aarons_laptop
multi_uav/network_config.py
Python
apache-2.0
1,371
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleads/google-ads-python
google/ads/googleads/v8/services/services/extension_feed_item_service/client.py
Python
apache-2.0
25,315
# Copyright 2013. Amazon Web Services, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
SimyungYang/py-flask-signup
application.py
Python
apache-2.0
4,769
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import collections i...
UnrememberMe/pants
src/python/pants/backend/jvm/tasks/reports/junit_html_report.py
Python
apache-2.0
11,048
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101 # Smartsheet Python SDK. # # Copyright 2018 Smartsheet.com, 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....
smartsheet-platform/smartsheet-python-sdk
smartsheet/models/access_token.py
Python
apache-2.0
2,612
from setuptools import setup, find_packages setup( name="mongodb", version="3.0.1", author="Marcus LaFerrera (@mlaferrera)", url="https://github.com/PUNCH-Cyber/stoq-plugins-public", license="Apache License 2.0", description="Save results and archive payloads using MongoDB", packages=find_p...
PUNCH-Cyber/stoq-plugins-public
mongodb/setup.py
Python
apache-2.0
364
from .usuario import RepositorioUsuarioEmMemoria from .recurso import RepositorioRecursoEmMemoria
ESEGroup/Paraguai
repositorios_memoria/__init__.py
Python
apache-2.0
98
# # ================================================================= # ================================================================= class IPAddress(object): """ An IP Address stores the level 3 information about a logical ethernet port. The data can be ipv4 or ipv6. """ def __init__(self, ad...
windskyer/k_nova
paxes_nova/objects/network/dom_kvm.py
Python
apache-2.0
30,773
"""toss URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
toss-app/toss-backend
toss/toss/urls.py
Python
apache-2.0
1,419
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.goal.erro...
dbentley/pants
src/python/pants/goal/goal.py
Python
apache-2.0
8,127
from unittest import TestCase import rectpack.waste as waste from rectpack.geometry import Rectangle class TestWaste(TestCase): def test_init(self): w = waste.WasteManager() def test_add_waste(self): w = waste.WasteManager() w.add_waste(30, 40, 50, 50) w.add_waste(5, 5, 20, 20...
secnot/rectpack
tests/test_waste.py
Python
apache-2.0
2,165
# -*- coding: utf-8 -*- """unittest-xml-reporting is a PyUnit-based TestRunner that can export test results to XML files that can be consumed by a wide range of tools, such as build systems, IDEs and Continuous Integration servers. This module provides the XMLTestRunner class, which is heavily based on the default Te...
bzzzz/cython
Cython/Tests/xmlrunner.py
Python
apache-2.0
13,744
from sys import maxsize class Contact: def __init__(self, firstname=None, lastname=None, company=None, homephone=None, workphone=None, mobilephone=None, secondphone=None, address=None, year=None, secondaddress=None, id=None): self.firsrtname=firstname self.lastname=lastname self.company=c...
volkodav1985/volkodavpython
model/contact.py
Python
apache-2.0
957
# print "Hello, World!" "Hello, World!"
ytbau/python2
hello_world_using_interpreter.py
Python
apache-2.0
40
from django.conf.urls import url, include from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.utils.translation import ugettext_lazy as _ urlpatterns = [ url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^fitbit_api...
goodes/fit4school
fit4school/urls.py
Python
apache-2.0
677
__source__ = 'https://leetcode.com/problems/maximal-square/' # https://github.com/kamyu104/LeetCode/blob/master/Python/maximal-square.py # Time: O(n^2) # Space: O(n) # # Description: Leetcode # 221. Maximal Square # # Given a 2D binary matrix filled with 0's and 1's, # find the largest square containing all 1's and re...
JulyKikuAkita/PythonPrac
cs15211/MaximalSquare.py
Python
apache-2.0
6,103
# Copyright (c) 2012 OpenStack Foundation # Copyright (c) 2015 Rushil Chugh # 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/l...
NetApp/manila
manila/share/utils.py
Python
apache-2.0
3,138
# 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 # distributed under t...
UTSA-ICS/keystone-kerberos
keystone/contrib/revoke/core.py
Python
apache-2.0
9,529
# Copied from https://github.com/ohmu/ohmu_common_py test/test_pgutil.py version 0.0.1-0-unknown-fa54b44 """ pglookout - postgresql utility function tests Copyright (c) 2015 Ohmu Ltd See LICENSE for details """ from pglookout.pgutil import ( create_connection_string, get_connection_info, mask_connection_info, ) f...
ohmu/pglookout
test/test_pgutil.py
Python
apache-2.0
2,593
# Copyright 2014 Diamond Light Source Ltd. # # 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 t...
swtp1v07/Savu
savu/plugins/manchester_recon.py
Python
apache-2.0
7,508
import sys import os from flask import render_template, make_response, request, Blueprint, redirect, url_for, flash from sqlalchemy import select from collections import defaultdict from sqlalchemy.exc import OperationalError from pywdbms.db.file import load_databases_from_file as load from pywdbms.db.file import upda...
pikulak/pywdbms
api/app.py
Python
apache-2.0
16,191
# https://requests-oauthlib.readthedocs.org/en/latest/examples/real_world_example.html#real-example import os from flask import Flask, request, redirect, session, url_for from flask.json import jsonify # import hashlib # import binascii import evernote.edam.userstore.constants as UserStoreConstants # import evernote...
rdhyee/oauth-flask-examples
evernote_sdk/evernote_oauth1a.py
Python
apache-2.0
3,694
# Copyright (c) 2015 Presslabs SRL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
PressLabs/silver
silver/api/serializers/transaction_serializers.py
Python
apache-2.0
5,877
# - # Copyright 2016 Max Fischer # - # # - # 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 appl...
maxfischer2781/cpy2py
cpy2py/kernel/__init__.py
Python
apache-2.0
993
#!/usr/bin/env python # -*- coding: utf-8 -*- # Scour # # Copyright 2010 Jeff Schiller # Copyright 2010 Louis Simard # Copyright 2013-2014 Tavendo GmbH # # This file is part of Scour, http://www.codedread.com/scour/ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fil...
codedread/scour
scour/scour.py
Python
apache-2.0
178,584
# Copyright (c) 2017. Mount Sinai School of Medicine # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
hammerlab/topiary
topiary/cli/errors.py
Python
apache-2.0
1,087
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cookie_app', '0007_auto_20141118_0707'), ] operations = [ migrations.CreateModel( name='DateTime', f...
nathanielbecker/business-contacter-django-app
myproject/cookie_app/migrations/0008_auto_20141120_0807.py
Python
apache-2.0
847
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
kdheepak89/pypdevs
pypdevs/allocators/autoAllocator.py
Python
apache-2.0
2,745
#coding:utf-8 # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None def __unicode__(self): return u'val:%s'%(self.val,) def __str__(self): return self.__unicode__().encode('utf-8') @staticmethod def array2list(a): ...
freecoder-zrw/leetcode
data_struct.py
Python
apache-2.0
737
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Administrator # # Created: 08/10/2011 # Copyright: (c) Administrator 2011 # Licence: <your licence> #--------------------------------------------------------------------...
hemmerling/codingdojo
src/game_of_life/python_coderetreat_berlin_2014-09/python_legacycrberlin01/gol01.py
Python
apache-2.0
685
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
fengkaicnic/traffic
traffic/utils.py
Python
apache-2.0
44,222