repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/connection_monitor_parameters.py | 1 | 2077 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 2,804,683,573,402,267,000 | 39.72549 | 96 | 0.636013 | false |
beatrizChagas/scrm-solutions | extracao/urls.py | 1 | 2598 | from django.conf.urls import url
from django.contrib import admin
from . import views
app_name = 'extracao'
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.index, name='index'),
url(r'^register/$', views.register, name='register'),
url(r'... | gpl-3.0 | -2,117,453,052,318,958,300 | 44.428571 | 135 | 0.620477 | false |
political-memory/django-representatives-votes | representatives_votes/migrations/0001_initial.py | 1 | 2777 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dossier',
fields=[
('id', models.AutoField(verb... | agpl-3.0 | -1,841,945,215,058,576,400 | 45.283333 | 142 | 0.544833 | false |
jamslevy/gsoc | thirdparty/google_appengine/google/appengine/api/user_service_pb.py | 1 | 2072 | #!/usr/bin/env python
#
# Copyright 2007 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 o... | apache-2.0 | -8,208,109,922,592,143,000 | 21.769231 | 74 | 0.666988 | false |
swanysimon/rd2weekly | summary/scoring.py | 1 | 1405 | from collections import namedtuple
from itertools import groupby
Player = namedtuple("Player", "name cbs_id_number in_lineup active_pitcher")
class Team:
def __init__(self, name, division):
self.name = name
self.division = division
self.players = []
self.wins = []
self.l... | mit | 3,190,130,946,123,452,400 | 27.673469 | 76 | 0.589324 | false |
babyliynfg/cross | tools/project-creator/Python2.6.6/Lib/test/test_csv.py | 1 | 40695 | # -*- coding: iso-8859-1 -*-
# Copyright (C) 2001,2002 Python Software Foundation
# csv package unit tests
import sys
import os
import unittest
from StringIO import StringIO
import tempfile
import csv
import gc
from test import test_support
class Test_Csv(unittest.TestCase):
"""
Test the underl... | mit | 149,992,621,648,327,900 | 36.831107 | 108 | 0.506573 | false |
faush01/plugin.video.embycon | resources/lib/datamanager.py | 1 | 12522 | # Gnu General Public License - see LICENSE.TXT
import json
from collections import defaultdict
import threading
import hashlib
import os
import cPickle
import time
from .downloadutils import DownloadUtils
from .simple_logging import SimpleLogging
from .item_functions import extract_item_info
from .kodi_utils import H... | gpl-2.0 | 4,095,778,726,364,563,000 | 37.176829 | 107 | 0.576026 | false |
D-iii-S/Bobic | last.py | 1 | 1151 | import os
import time
import utils
class last:
def __init__(self):
self.nolast = "No foreign lastlog"
def lastlog(self):
fd = os.popen("last -10 -w -F")
users = [utils.get_username()]
nolastlog = True
for line in fd:
line = line.strip()
backup = line
if line == "":
break
pieces = line.spl... | apache-2.0 | -2,221,521,439,989,490,200 | 20.716981 | 69 | 0.590791 | false |
boblefrag/python-rest-api-framework | tests/controllers_test.py | 1 | 3913 | from unittest import TestCase
import json
import time
from werkzeug.wrappers import BaseResponse
from werkzeug.test import Client
from app import ApiApp
from rest_api_framework.authentication import ApiKeyAuthentication
from rest_api_framework.datastore import PythonListDataStore
from rest_api_framework import models... | mit | 1,717,447,640,130,257,000 | 28.421053 | 78 | 0.567851 | false |
missionpinball/mpf | mpf/tests/test_RGBColor.py | 1 | 6414 | import unittest
from mpf.core.rgba_color import RGBAColor
from mpf.core.rgb_color import RGBColor, RGBColorCorrectionProfile
class TestRGBColor(unittest.TestCase):
def test_default_color(self):
"""Test the default color."""
color = RGBColor()
self.assertEqual((0, 0, 0), color.rgb)
... | mit | 1,871,851,357,513,084,400 | 39.594937 | 86 | 0.603991 | false |
andela-sjames/paystack-python | paystackapi/tests/test_transfer.py | 1 | 3647 | import httpretty
from paystackapi.tests.base_test_case import BaseTestCase
from paystackapi.transfer import Transfer
class TestTransfer(BaseTestCase):
@httpretty.activate
def test_initiate(self):
"""Method defined to test transfer initiation."""
httpretty.register_uri(
httpretty.... | mit | -6,657,427,713,209,973,000 | 28.650407 | 84 | 0.536605 | false |
vbwagner/ctypescrypto | tests/testec.py | 1 | 2298 | from ctypescrypto import pyver
from ctypescrypto.oid import Oid
from ctypescrypto.ec import create
from base64 import b16decode
from subprocess import Popen, PIPE
import unittest
def dump_key(key):
""" Convert key into printable form using openssl utility
Used to compare keys which can be stored in differen... | mit | -1,205,380,533,858,710,000 | 38.62069 | 119 | 0.692341 | false |
sorgerlab/belpy | indra/tools/reading/starcluster_reading/process_reach_from_s3.py | 1 | 1614 | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import sys
import pickle
import logging
from indra.sources import reach
from indra.literature import s3_client
if __name__ == '__main__':
usage = "Usage: %s pmid_list start_index end_index" % sys.argv[0]
if ... | mit | 3,977,894,421,920,643,000 | 32.625 | 78 | 0.60223 | false |
enochd/RMG-Py | rmgpy/rmg/main.py | 1 | 62676 | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the
# RMG Team (rmg_dev@mit.edu)
#
# Permission is hereby granted, free of c... | mit | -5,214,712,252,094,422,000 | 48.003909 | 228 | 0.582121 | false |
kg-bot/SupyBot | plugins/RequestBot/__init__.py | 1 | 2605 | ###
# Copyright (c) 2015, KG-Bot
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and t... | gpl-3.0 | 3,945,267,707,427,858,400 | 37.308824 | 79 | 0.760845 | false |
PinguinoIDE/pinguino-ide | pinguino/qtgui/ide/custom_widgets/code_editor/syntax.py | 1 | 3711 | #! /usr/bin/python
#-*- coding: utf-8 -*-
import datetime
today = datetime.datetime.now()
Autocompleter = {}
Autocompleter["directive"] = ["define", "include", "ifndef", "endif", "undef", "if", "elif", "else", "error", "warning"]
#from const.h
const = [ "PI", "HALF_PI", "TWO_PI", "DEG_TO_RAD", "RAD_TO_DEG", "NULL", ... | gpl-2.0 | 1,781,279,100,530,614,800 | 38.913978 | 183 | 0.516033 | false |
geonition/dashboard | dashboard/models.py | 1 | 2789 | from django.db import models
from django.contrib.gis.db import models as geomodels
from django.core.urlresolvers import reverse
from django.utils import translation
from django.contrib.auth.models import User
from django.db.models import Avg, Count
from django.core.mail import send_mail
from django.conf import settings... | mit | 2,679,844,413,973,452,300 | 41.907692 | 205 | 0.594478 | false |
userzimmermann/robotframework | src/robot/model/modelobject.py | 1 | 1116 | # Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | apache-2.0 | 785,729,993,020,874,400 | 28.368421 | 75 | 0.6819 | false |
uclouvain/osis_louvain | base/models/enums/vacant_declaration_type.py | 1 | 2117 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -7,085,030,439,298,773,000 | 41.32 | 87 | 0.674386 | false |
sussexstudent/falmer | falmer/events/migrations/0034_auto_20190919_1108.py | 1 | 1311 | # Generated by Django 2.2.4 on 2019-09-19 10:08
from django.conf import settings
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('events', '0033_auto_20190820_1356'),
]
operations = [
migrations.AddFiel... | mit | 2,254,729,209,743,373,600 | 31.775 | 124 | 0.596491 | false |
xgds/xgds_map_server | xgds_map_server/management/commands/purgeMaps.py | 1 | 1782 | #__BEGIN_LICENSE__
# Copyright (c) 2015, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The xGDS platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance ... | apache-2.0 | -2,914,736,571,422,936,600 | 40.44186 | 83 | 0.679574 | false |
zstackio/zstack-woodpecker | integrationtest/vm/multihosts/vm_snapshots/paths/local_path5.py | 1 | 1964 | import zstackwoodpecker.test_state as ts_header
import os
TestAction = ts_header.TestAction
def path():
return dict(initial_formation="template5", checking_point=8, path_list=[
[TestAction.create_vm, 'vm1', ],
[TestAction.create_volume, 'volume1', 'flag=scsi'],
[TestAction.attach_volume, 'vm1', 'volume1'],
... | apache-2.0 | -4,880,214,339,891,721,000 | 43.636364 | 261 | 0.705193 | false |
fkmclane/MCP | mcp/initial.py | 1 | 1954 | import getpass
import os
import os.path
import mcp.config
import mcp.common.util
def check():
import mcp.model.user
import mcp.model.server
import mcp.model.source
import mcp.model.script
# create prefix directory if necessary
try:
os.makedirs(mcp.config.prefix)
except FileExist... | mit | 6,350,820,675,414,093,000 | 24.051282 | 128 | 0.638178 | false |
pombredanne/invenio | modules/bibsword/lib/bibsword_client_templates.py | 1 | 42258 | # -*- coding: utf-8 -*-
## This file is part of Invenio.
## Copyright (C) 2010 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any... | gpl-2.0 | -329,531,007,690,559,500 | 36.899552 | 165 | 0.46874 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/registry/browser/tests/test_breadcrumbs.py | 1 | 6929 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
__metaclass__ = type
from zope.component import getUtility
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
from lp.registry.browser.tests.test_pillar_sharing i... | agpl-3.0 | 1,061,253,418,268,570,900 | 37.494444 | 79 | 0.67268 | false |
gebhard73/dshield | srv/dshield/weblogsubmit.py | 1 | 3107 | #!/usr/bin/env python
# submit logs to DShield 404 project
import os
import sys
import sqlite3
from DShield import DshieldSubmit
from datetime import datetime
import json
# We need to collect the local IP to scrub it from any logs being submitted for anonymity, and to reduce noise/dirty data.
# To do: turn below into... | gpl-2.0 | -6,164,848,956,159,228,000 | 32.408602 | 148 | 0.650789 | false |
Asalle/coala | coalib/results/Result.py | 1 | 12073 | import uuid
from os.path import relpath
from coala_utils.decorators import (
enforce_signature, generate_ordering, generate_repr, get_public_members)
from coalib.bearlib.aspects import aspectbase
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.SourceRange import SourceRange
# Omit ... | agpl-3.0 | 5,308,395,310,088,770,000 | 35.47432 | 80 | 0.553384 | false |
sunspotter/database | orm2.py | 1 | 11253 | import datetime
from sqlalchemy import create_engine, exists
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, DateTime, Float, Boolean,\
ForeignKey
from sqlalchemy.orm import relationship
def _convert_bool(s):
'''
Function to be just used here!!
... | gpl-3.0 | -4,029,971,202,083,332,000 | 40.677778 | 407 | 0.514085 | false |
danielhb/kimchi | tests/test_host.py | 1 | 5041 | # -*- coding: utf-8 -*-
#
# Project Kimchi
#
# Copyright IBM, Corp. 2015
#
# 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, or (at your option) any lat... | lgpl-3.0 | -8,401,846,286,958,856,000 | 36.619403 | 79 | 0.623686 | false |
jeremycline/pulp_puppet | pulp_puppet_extensions_admin/pulp_puppet/extensions/admin/repo/status.py | 2 | 13189 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or impli... | gpl-2.0 | -68,426,790,368,538,670 | 44.633218 | 112 | 0.640355 | false |
doylew/detectionsc | format_py/n_gram_training_short.py | 1 | 1889 | import os
import glob
#####################################################
######Init the arff##################################
#####################################################
os.remove("ngram_short.arff")
file_ = open("ngram_short.arff", "a")
file_.write("@RELATION sys_attack\n")
file_.write("@ATTRIBUTE "... | mit | 7,991,673,332,914,937,000 | 23.217949 | 96 | 0.511911 | false |
Fat-Zer/FreeCAD_sf_master | src/Mod/Draft/draftguitools/gui_stretch.py | 2 | 24251 | # ***************************************************************************
# * (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> *
# * (c) 2009, 2010 Ken Cline <cline@frii.com> *
# * (c) 2020 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> *
# * ... | lgpl-2.1 | 5,800,105,577,930,970,000 | 49.947479 | 254 | 0.400849 | false |
xapi-project/sm | tests/test_mpath_dmp.py | 1 | 16580 | """
Unit tests for mpath dmp
"""
from __future__ import print_function
import errno
import os
import unittest
import mock
import testlib
import util
import mpath_dmp
import SR
from SR import SROSError
from Queue import Queue
import xs_errors
# pylint: disable=W0613; mocks don't need to be accessed
# pylint: disabl... | lgpl-2.1 | -6,994,002,296,398,884,000 | 37.290993 | 99 | 0.61152 | false |
helloztq/helloztq.github.io | _drafts/minimap.py | 1 | 1681 | #-*- coding:utf-8 -*-
import os
import json
ROOT_PATH = os.path.dirname(os.path.realpath(__file__))
SRC_PATH = ROOT_PATH + "/../../../../doc/最终文档及资源/images/world/erjiditu/erjiditu/Json/erjiditu_1.json"
OUT_LUA_PATH = ROOT_PATH + "/../Resources/script/minimap/minimap.lua"
f = open(SRC_PATH)
jsonstr = f.read()
f.clo... | mit | 3,696,986,919,335,329,000 | 40.7 | 124 | 0.538092 | false |
techdragon/nikola | nikola/plugins/task/sitemap/__init__.py | 1 | 14165 | # -*- coding: utf-8 -*-
# Copyright © 2012-2015 Roberto Alsina and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights t... | mit | -6,342,570,376,375,265,000 | 42.581538 | 178 | 0.536783 | false |
david-cattermole/qt-learning | python/qtLearn/windows/reparent/reparentWindow.py | 1 | 4228 | """
Usage:
>>> import qtLearn.windows.reparent.reparentWindow
>>> qtLearn.windows.reparent.reparentWindow.main()
"""
import sys
import time
import Qt.QtWidgets as QtWidgets
import qtLearn.uiUtils as uiUtils
import qtLearn.widgets.nodesMayaWidget as nodeMayaWidget
import qtLearn.windows.reparent.forms.ui_getNodes as... | bsd-3-clause | -3,869,595,958,491,443,000 | 26.633987 | 73 | 0.655629 | false |
mehmetalianil/Kreveik | setup.py | 1 | 2419 |
# Copyright 2012 Mehmet Ali ANIL
#
# 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 applicabl... | apache-2.0 | -1,643,781,602,302,675,500 | 36.796875 | 166 | 0.63456 | false |
yougov/librarypaste | librarypaste/launch.py | 1 | 1902 | import os
import argparse
import yaml
import cherrypy
from more_itertools.recipes import consume
from . import datastore
from .pastebin import BASE, Server
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'-c', '--config', dest="configs",
default=[], action="append", h... | mit | -481,426,817,513,712,060 | 25.054795 | 74 | 0.603049 | false |
mlucchini/keras-playground | networks/mnist-digit-recognition-cnn-network.py | 1 | 1749 | from keras.callbacks import TensorBoard
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.layers.convolutional import Convolution2D
from keras.layers.convolutional import MaxPooling2D
from kera... | gpl-3.0 | 7,068,291,912,514,157,000 | 36.212766 | 127 | 0.720412 | false |
openwfm/wrfxpy | src/recover_catalog.py | 1 | 3815 | from __future__ import absolute_import
from __future__ import print_function
from forecast import make_job_file, JobState, process_arguments, load_sys_cfg
import json
import logging
import sys,glob
import os.path as osp
simulations_path = osp.abspath('simulations') # copy here job_id/wfc
catalog_path = osp.join(sim... | mit | 3,069,693,406,301,629,400 | 42.850575 | 106 | 0.530799 | false |
myvoice-nigeria/myvoice | myvoice/survey/migrations/0006_auto__del_field_surveyquestion_for_display__del_field_surveyquestion_d.py | 1 | 12977 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'SurveyQuestion.for_display'
db.delete_column(u'survey_s... | bsd-2-clause | -4,653,175,298,091,208,000 | 73.586207 | 195 | 0.551283 | false |
stryder199/RyarkAssignments | Assignment2/ttt/code_activator/python/lists/list_slices_defaultUL_io.py | 1 | 1268 | # what sublist is extracted by default lower/upper indexes?
question_type = 'input_output'
source_language = 'python'
hotspot_declarations = [
['$x0','int'],['$x1','int'],['$x2','int'],['$x3','int'],['$x4','int'],
['$y0','int'],['$y1','int'],['$y2','int'],
]
group_list = [
['list_slices_defaultUL_io_forwa... | mit | 481,491,523,882,367,600 | 19.451613 | 78 | 0.593849 | false |
tapichu/highway-maps | src/highway-maps/carreteras/tests/models.py | 1 | 1206 | from django.test import TestCase
from carreteras.models import *
class ModelsTestCase(TestCase):
# Load test data
fixtures = ['test']
class EstadoTestCase(ModelsTestCase):
def test_should_have_test_data(self):
self.assertEqual(len(Estado.objects.all()), 32)
def test_should_return_name_when_converted_to_string... | mit | -2,839,571,837,537,421,300 | 32.5 | 60 | 0.757048 | false |
scy-phy/minicps | examples/s3-2017/scada.py | 1 | 1366 | """
scada.py
"""
from minicps.devices import SCADAServer
from utils import SCADA_PROTOCOL, STATE
from utils import SCADA_PERIOD_SEC
from utils import IP
from utils import CO_0_2a, CO_1_2a, CO_2_2a, CO_3_2a
from utils import HR_0_2a
import time
RTU2A_ADDR = IP['rtu2a'] + ':502'
RTU2B_ADDR = IP['rtu2b'] + ':502'
SCADA... | mit | -7,721,036,023,228,098,000 | 22.152542 | 77 | 0.565154 | false |
inspirehep/inspire-next | tests/integration/workflows/test_utils.py | 1 | 5633 | # -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2020 CERN.
#
# INSPIRE is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | gpl-3.0 | 8,209,969,628,254,175,000 | 30.824859 | 95 | 0.604119 | false |
datapythonista/pandas | pandas/tests/indexes/timedeltas/methods/test_astype.py | 2 | 4293 | from datetime import timedelta
import numpy as np
import pytest
import pandas as pd
from pandas import (
Float64Index,
Index,
Int64Index,
NaT,
Timedelta,
TimedeltaIndex,
timedelta_range,
)
import pandas._testing as tm
class TestTimedeltaIndex:
def test_astype_object(self):
id... | bsd-3-clause | 3,730,662,493,967,113,700 | 32.80315 | 86 | 0.598183 | false |
vikkyrk/incubator-beam | sdks/python/apache_beam/coders/coder_impl.py | 1 | 25372 | #
# 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 us... | apache-2.0 | -995,709,935,074,878,100 | 33.661202 | 80 | 0.689382 | false |
nighres/nighres | nighres/brain/mp2rage_dura_estimation.py | 1 | 4959 | import numpy as np
import nibabel as nb
import os
import sys
import nighresjava
from ..io import load_volume, save_volume
from ..utils import _output_dir_4saving, _fname_4saving, \
_check_topology_lut_dir, _check_available_memory
def mp2rage_dura_estimation(second_inversion, skullstrip_mask,
... | apache-2.0 | -5,286,006,519,294,991,000 | 35.19708 | 83 | 0.627546 | false |
jwilk/mwic | tests/test_trim.py | 1 | 1946 | # Copyright © 2014-2016 Jakub Wilk <jwilk@jwilk.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | mit | 8,090,106,356,451,535,000 | 29.983871 | 79 | 0.642374 | false |
Jumpscale/jumpscale_portal8 | apps/portalbase/macros/page/login/1_main.py | 1 | 3948 | def main(j, args, params, tags, tasklet):
page = args.page
page.addCSS("/jslib/bootstrap/css/bootstrap-3-3-1.min.css")
page.addCSS("/jslib/old/bootstrap/css/bootstrap-responsive.css")
page.addCSS("/jslib/flatui/css/flat-ui.css")
page.addCSS("/jslib/font-awesome/css/font-awesome.min.css")
page.ad... | apache-2.0 | 6,315,472,374,606,857,000 | 30.584 | 142 | 0.568389 | false |
andreasrosdal/freeciv-web | pbem/mailstatus.py | 1 | 4297 | '''**********************************************************************
Copyright (C) 2009-2016 The Freeciv-web project
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, eithe... | agpl-3.0 | -8,122,000,766,746,526,000 | 41.544554 | 164 | 0.627414 | false |
thermokarst/qiime2 | qiime2/metadata/tests/test_metadata_column.py | 1 | 36564 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2020, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause | -5,118,677,128,262,354,000 | 35.627255 | 79 | 0.546835 | false |
alchemistry/alchemlyb | docs/conf.py | 1 | 6045 | # -*- coding: utf-8 -*-
#
# alchemlyb documentation build configuration file, created by
# sphinx-quickstart on Wed Feb 1 15:01:17 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
#... | bsd-3-clause | -3,076,089,569,095,737,300 | 32.032787 | 89 | 0.67378 | false |
chazzam/adventofcode | d16.py | 1 | 2145 | #!/usr/bin/env python
import argparse
import os.path
import sys
import collections
# -i 10000 -s 20
# -i 10010000000110000 -s 272
# -i 10010000000110000 -s 35651584
def get_options(argv=None):
"""parse the commandline options.
Check for all supported flags and do any available pre-processing
"""
opts = argpa... | apache-2.0 | 2,452,010,722,828,176,000 | 23.655172 | 67 | 0.652214 | false |
rbbratta/virt-test | virttest/utils_selinux_unittest.py | 1 | 1995 | #!/usr/bin/python
"""
Unittests for utils_libvirtd module.
"""
import unittest
import common
from virttest import utils_selinux
from autotest.client import os_dep
class TestSelinux(unittest.TestCase):
"""
Class for unittests of utils_selinux.
"""
def test_sestatus(self):
"""
Test the me... | gpl-2.0 | 5,109,379,312,788,153,000 | 32.25 | 77 | 0.611529 | false |
scwuaptx/CTF | 2017-writeup/asis/canakmgf.py | 1 | 1050 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwnpwnpwn import *
from pwn import *
import time
#host = "10.211.55.6"
#port = 8888
host = "128.199.247.60"
port = 10001
r = remote(host,port)
def alloca(size,data):
r.recvuntil("5. Run away")
r.sendline("1")
r.recvuntil("?")
r.sendline(str(size))
... | gpl-2.0 | -7,564,741,886,792,836,000 | 18.090909 | 61 | 0.629524 | false |
LRGH/elfesteem | tests/test_minidump_manipulation.py | 1 | 1684 | #! /usr/bin/env python
import os
__dir__ = os.path.dirname(__file__)
from test_all import run_tests, assertion, hashlib
from elfesteem.minidump_init import Minidump
def test_MD_windows(assertion):
md = open(__dir__+'/binary_input/windows.dmp', 'rb').read()
assertion('82a09a9d801bddd1dc94dfb9ba6eddf0',
... | lgpl-2.1 | 8,207,295,610,560,033,000 | 34.083333 | 71 | 0.620546 | false |
bitmazk/cmsplugin-redirect | cmsplugin_redirect/cms_plugins.py | 1 | 1251 | """CMS Plugins for the ``cmsplugin_redirect`` app."""
from django.utils.translation import ugettext_lazy as _
from django.http import HttpResponseRedirect
from cms.plugins.link.forms import LinkForm
from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from .models import ForceRedirectPlug... | mit | -5,765,137,024,366,025,000 | 33.75 | 77 | 0.680256 | false |
stack-of-tasks/sot-dyninv | python/mocap/footprint_parser.py | 1 | 2502 | '''
Read the file coming from the Oscar footprint extraction, and
display the position at the proper time interval, using the RF and LF
objects of robotviewer.
'''
from numpy import *
# --- FOOT PRINT PARSER ------------------------------------------------------------
class FootPrintParser:
def __init__(self,rob... | lgpl-3.0 | 6,610,572,883,476,368,000 | 31.921053 | 96 | 0.470424 | false |
MostlyOpen/odoo_addons_jcafb | myo_person_mng_cst/wizard/address_mng_create_wizard.py | 1 | 5196 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol
#
# 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
#... | agpl-3.0 | 5,497,097,607,140,637,000 | 36.114286 | 84 | 0.493072 | false |
f304646673/PhpDebugger | src/socket_protocol.py | 1 | 1073 | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
class socket_protocol:
def __init__(self):
self.response = ""
pass
def pack_request(self, request):
request... | apache-2.0 | -2,110,549,869,557,461,000 | 25.85 | 78 | 0.55452 | false |
sarleon/WebScanner | core/spider.py | 1 | 2076 | import requests
from config import config
from multiprocessing.pool import ThreadPool
from util.printer import printer
from util.content import parse_robots_txt,parse_res
import urllib3
urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings()
class Spider:
WEB_ROOT=config.WEB_ROOT
def wor... | gpl-3.0 | -4,954,073,716,851,211,000 | 26.315789 | 131 | 0.597303 | false |
certtools/contactdb | old2/old/db/initialize/pgpImporter.py | 1 | 2345 | #!/usr/bin/env python2.7
import pprint
import gnupg
import re
import logging
import psycopg2
from psycopg2 import errorcodes
# need to call init() to initialize this
gpgdict = dict()
# ----------------------------------------------------
# functions
def insert_pgp_key(k, dbcursor):
if (k == None or k == ""):
... | agpl-3.0 | 1,824,992,953,328,917,800 | 28.683544 | 119 | 0.571855 | false |
mdzik/bearded-octo-wookie | ZouHeBC.py | 1 | 9179 | from bearded_octo_wookie.lbm import *
from sympy import *
from fractions import Fraction
from bearded_octo_wookie.MRT import genFeq, getMRT
from sympy.utilities.codegen import codegen
#W = np.array([Rational(_W) / Rational(36) for _W in W[:] * 36.])
U = [var('U_0'), var('U_1')]
rho = var('rho')
D = 2
Q = 9
def g... | apache-2.0 | -9,052,371,557,334,107,000 | 23.34748 | 101 | 0.43447 | false |
Amechi101/concepteur-market-app | venv/lib/python2.7/site-packages/tests/test_processors.py | 1 | 4457 | from pilkit.lib import Image, ImageDraw
from pilkit.processors import (Resize, ResizeToFill, ResizeToFit, SmartCrop,
SmartResize)
from nose.tools import eq_, assert_true
from pilkit.processors.resize import Thumbnail
from .utils import create_image
import mock
def test_smartcrop():
... | mit | -3,577,787,544,769,124,000 | 29.951389 | 79 | 0.666143 | false |
nash-x/hws | nova/api/openstack/compute/contrib/huawei/extended_actions.py | 1 | 1813 |
import webob
from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova import compute
from nova import exception
from nova.openstack.common import log as logging
from nova.openstack.common.gettextutils import _
LOG = logging.getLogger(__name__)
class ExtendedActionsController(wsgi.Con... | apache-2.0 | -8,890,084,542,298,031,000 | 33.207547 | 79 | 0.666299 | false |
ifwe/brocade-tool | setup.py | 1 | 2919 | #!/usr/bin/env python
"""
Copyright 2015 Ifwe 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... | apache-2.0 | 5,088,481,423,400,502,000 | 30.728261 | 79 | 0.646797 | false |
googleapis/googleapis-gen | google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/errors/types/internal_error.py | 1 | 1220 | # -*- 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... | apache-2.0 | 1,228,454,453,813,239,600 | 29.5 | 74 | 0.686885 | false |
Naeka/vosae-app | www/core/migrations/0006_normalize_font_names.py | 1 | 1040 | # -*- coding: utf-8 -*-
from south.v2 import DataMigration
from core.models import Tenant
from core.pdf.conf.fonts import mapping
class Migration(DataMigration):
def forwards(self, orm):
supported_fonts = mapping.keys()
for tenant in Tenant.objects():
if tenant.report_settings.font_n... | agpl-3.0 | 9,108,190,033,753,548,000 | 30.515152 | 80 | 0.604808 | false |
Dolyphin/FSI_1D | Lax_Wendroff.py | 1 | 2122 | % ------------------------------
% filename: Lax_Wendroff.m
%
% We recall that vsol:
% column 1: the volumic mass
% column 2: the momentum
% column 3: the total energy (per volum unit)
function [vsol, vflux]=Lax_Wendroff(gamm1,ifct,Delta_t,vsol,vpres,wx, conec, vcor_n, vcor_np1,number);
[nnt, ndln] = size(vsol);
[ne... | gpl-3.0 | 5,450,060,205,453,099,000 | 27.293333 | 102 | 0.63148 | false |
probabble/roundware-server | roundwared/audiotrack.py | 1 | 10047 | # Roundware Server is released under the GNU Affero General Public License v3.
# See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory.
# TODO: Figure out how to get the main pipeline to send EOS
# when all audiotracks are finished (only happens
# when repeat is off)
# TODO: Reimplement pan... | agpl-3.0 | -3,624,491,594,080,919,600 | 38.246094 | 131 | 0.574699 | false |
BrianSwift/JunoCam | Juno3D/singleChannelOBJs/P00_102G.obj.py | 1 | 10051 | # Setup Blender for Juno3D rendering
# Requires JunocamLibrary.blend to be loaded before running this
import bpy
from mathutils import Quaternion
# import Juno3D geometry and textures Wavefront OBJ
bpy.ops.import_scene.obj(filepath="/Users/bswift/Downloads/PJ0EFB/P00_102G.obj",axis_forward='Y', axis_up='Z')
# Replace ... | mit | 8,841,822,718,561,269,000 | 46.410377 | 110 | 0.773654 | false |
ezod/adolphus | adolphus/yamlparser.py | 1 | 13782 | """\
YAML parser module.
@author: Aaron Mavrinac
@organization: University of Windsor
@contact: mavrin1@uwindsor.ca
@license: GPL-3
"""
import os
import yaml
from math import pi
import pkg_resources
from itertools import chain
from .robot import Robot
from .solid import Solid
from .laser import RangeModel
from .cov... | gpl-3.0 | 8,007,242,541,659,513,000 | 37.497207 | 84 | 0.493034 | false |
lightbase/WSCacicNeo | wscacicneo/model/all_reports.py | 1 | 7688 | #!/usr/env python
# -*- coding: utf-8 -*-
__author__ = 'adley'
from requests.exceptions import HTTPError
from wscacicneo import config
import logging
from liblightbase.lbbase.struct import Base, BaseMetadata
from liblightbase.lbbase.lbstruct.group import *
from liblightbase.lbbase.lbstruct.field import *
from liblight... | gpl-2.0 | -3,582,415,873,444,309,000 | 24.929054 | 79 | 0.551661 | false |
NejcZupec/ggrc-core | src/ggrc/automapper/rules.py | 1 | 5417 | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
from collections import namedtuple
import itertools
import logging
from ggrc import models
Attr = namedtuple('Attr', ['name'])
type_ordering = [['Audit'], ['Program'],
['Regulation', 'Pol... | apache-2.0 | 5,939,661,096,293,722,000 | 28.928177 | 79 | 0.564704 | false |
ehsanfar/ofspy_Lite | ofspy/federateLite.py | 1 | 14346 | import re
# import random
from .elementLite import Satellite, GroundStation
from .qlearner import QlearnerStorage, QlearnerCost
from .generalFunctions import matchVariance
class FederateLite():
def __init__(self, name, context, costSGL, costISL, storagePenalty = 100, strategy = 1):
"""
@param name... | apache-2.0 | -4,556,431,127,364,762,000 | 36.653543 | 160 | 0.60428 | false |
pupils/pupils | pupils/actividad/models.py | 1 | 1369 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2012 Fco. Javier Lucena Lucena (https://forja.rediris.es/users/franlu/)
Copyright (C) 2012 Serafín Vélez Barrera (https://forja.rediris.es/users/seravb/)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Affero General Public Li... | agpl-3.0 | 5,601,697,293,969,844,000 | 35.945946 | 85 | 0.765179 | false |
gwtsa/gwtsa | setup.py | 1 | 1595 | from setuptools import setup, find_packages
with open("README.rst", "r") as fh:
long_description = fh.read()
# Get the version.
version = {}
with open("pastas/version.py") as fp:
exec(fp.read(), version)
setup(
name='pastas',
version=version['__version__'],
description='Python package to perform ... | mit | 1,236,786,742,061,193,200 | 36.093023 | 71 | 0.611285 | false |
fboers/jumegX | jumeg_preproc_data.py | 1 | 15296 | #import os
import mne
from jumeg.jumeg_base import jumeg_base
#from jumeg.decompose.ocarta import ocarta
#from jumeg.ctps import ctps
#from jumeg import jumeg_plot
#################################################################
#
# apply epocher data
#
##################... | bsd-3-clause | -1,812,626,027,738,260,700 | 34.822014 | 181 | 0.553805 | false |
kronenpj/python-for-android | pythonforandroid/recipes/libsodium/__init__.py | 1 | 1210 | from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory
from os.path import exists, join
import sh
class LibsodiumRecipe(Recipe):
version = '1.0.16'
url = 'https://github.com/jedisct1/libsodium/releases/download/{version}/libsodium-{version}.tar.gz'
depends = []
patches = ['s... | mit | 8,509,477,309,329,966,000 | 38.032258 | 128 | 0.655372 | false |
snap-stanford/ogb | examples/linkproppred/citation2/cluster_gcn.py | 1 | 8751 | import argparse
import torch
import numpy as np
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch_sparse import SparseTensor
from torch_geometric.data import ClusterData, ClusterLoader
from torch_geometric.nn import GCNConv
from torch_geometric.utils import to_undirected
from ogb.lin... | mit | -6,964,540,207,255,427,000 | 35.012346 | 80 | 0.596275 | false |
jseabold/statsmodels | statsmodels/tsa/statespace/representation.py | 4 | 44869 | """
State Space Representation
Author: Chad Fulton
License: Simplified-BSD
"""
import numpy as np
from .tools import (
find_best_blas_type, validate_matrix_shape, validate_vector_shape
)
from .initialization import Initialization
from . import tools
class OptionWrapper(object):
def __init__(self, mask_attri... | bsd-3-clause | 5,586,837,975,756,007,000 | 39.061607 | 79 | 0.571998 | false |
mopidy/mopidy-scrobbler | tests/test_frontend.py | 1 | 5342 | from unittest import mock
import pylast
import pytest
from mopidy import models
from mopidy_scrobbler import frontend as frontend_lib
@pytest.fixture
def pylast_mock():
with mock.patch("mopidy_scrobbler.frontend.pylast", spec=pylast) as m:
yield m
@pytest.fixture
def frontend():
config = {"scrobbl... | apache-2.0 | -822,858,280,645,919,400 | 29.701149 | 77 | 0.686073 | false |
ovnicraft/suds | suds/wsse.py | 1 | 6846 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser 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 distributed in the hope that it will b... | lgpl-3.0 | 7,100,247,521,210,390,000 | 28.508621 | 118 | 0.599036 | false |
armstrong/armstrong.apps.crm | armstrong/apps/crm/tests/base.py | 1 | 12915 | from contextlib import contextmanager
import datetime
from django.contrib.auth.models import Group
from django.contrib.auth.models import User
from django.test.client import RequestFactory
import fudge
from fudge.inspector import arg
import unittest
from ._utils import TestCase
try:
from registration.backends impo... | apache-2.0 | -2,226,255,618,262,425,600 | 34.383562 | 79 | 0.625319 | false |
incuna/django-user-management | user_management/api/serializers.py | 1 | 6257 | from django.contrib.auth import get_user_model
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers, validators
from user_management.utils.validators import validate_password_strength
User = get_user_model()
class UniqueEmailValidator(validators.UniqueValidator):
def f... | bsd-2-clause | 1,266,843,194,220,928,300 | 30.60101 | 83 | 0.629855 | false |
SafirSDK/safir-sdk-core | src/olib/olib_test.ss/src/run_olib_tests.py | 1 | 5955 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright Saab AB, 2014 (http://safirsdkcore.com)
#
# Created by: Lars Hagstrom (lars@foldspace.nu)
#
###############################################################################
#
# This... | gpl-3.0 | 8,456,867,617,410,130,000 | 64.43956 | 178 | 0.73283 | false |
facebookresearch/Detectron | detectron/utils/segms.py | 1 | 9915 | # Copyright (c) 2017-present, Facebook, 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... | apache-2.0 | -6,994,483,454,064,312,000 | 34.537634 | 83 | 0.604539 | false |
perkinslr/pypyjs | addedLibraries/multiprocessing/synchronize.py | 1 | 10778 | #
# Module implementing synchronization primitives
#
# multiprocessing/synchronize.py
#
# Copyright (c) 2006-2008, R Oudkerk
# 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. Redistribution... | mit | 935,930,518,360,757,800 | 29.882521 | 78 | 0.590462 | false |
amirouche/pythonium | pythonium/compliant/builtins/list.py | 1 | 2405 | class ListIterator:
def __init__(self, obj):
self.list = obj
self.index = 0
self.length = len(obj)
def __iter__(self):
return self
def __next__(self):
if self.index == self.length:
raise StopIteration
index = self.index
self.index = self... | lgpl-2.1 | -2,493,964,963,930,566,700 | 23.05 | 51 | 0.521414 | false |
Bleyddyn/malpi | train/hparam_skopt.py | 1 | 6169 | import pickle
import datetime
import numpy as np
from skopt.space import Real, Integer, Categorical, Dimension, Identity
from skopt.utils import use_named_args
from skopt import gp_minimize
from skopt import dump, load
# Requires the latest version:
# pip3 install git+https://github.com/scikit-optimize/scikit-optimize... | mit | 9,016,349,244,207,250,000 | 37.080247 | 164 | 0.590695 | false |
subins2000/TorrentBro | torrentbro/Settings.py | 1 | 2160 | #!/usr/bin/python3
from PyQt5.QtCore import QSettings
from PyQt5.QtWidgets import QDialog
from torrentbro.ui import Ui_Settings
class Settings(QDialog):
def __init__(self):
super().__init__()
self.initUI()
self.initEvents()
self.exec_()
self.show()
def initUI(self)... | gpl-3.0 | -6,252,303,686,053,160,000 | 31.238806 | 80 | 0.631944 | false |
jimktrains/achd-downloader | get-achd.py | 1 | 22063 | #!/usr/bin/env python3
import csv
import copy
from bs4 import BeautifulSoup
import httplib2
from urllib.parse import urlencode
import sys
def extract_record(row):
#<tr>
#<td align="left">
# <font color="#333333">
# <a id="ctl00_ContentPlaceHolder1_gvFSO_ctl51_hypJavascript"></a>
# <a href... | gpl-3.0 | 3,967,313,637,979,219,000 | 50.071759 | 938 | 0.602774 | false |
Eyra-is/Eyra | Backend/server-interface/qc/scripts/create_wrong_prompts/prepBadData.py | 1 | 3531 | # Copyright 2016 The Eyra Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | -1,588,329,630,693,001,500 | 36.978495 | 151 | 0.610025 | false |
JeewakaSankalpa/CaptsLog | captslog/ui/mainwindow.py | 1 | 3456 | from PyQt4 import QtCore, QtGui
from PySide import QtCore, QtGui
from centralwidget import CentralWidget
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
... | mit | 6,875,469,999,496,511,000 | 37.831461 | 79 | 0.676215 | false |
nanophotonics/nplab | nplab/instrument/camera/thorlabs/thorlabs_tsi_sdk/tl_mono_to_color_enums.py | 1 | 2177 | """
tl_mono_to_color_enums.py
"""
from enum import IntEnum
class _CTypesEnum(IntEnum):
@classmethod
def from_param(cls, obj):
return int(obj)
class COLOR_SPACE(_CTypesEnum):
"""
A color space describes how the colors in an image are going to be specified. Some commonly used color spaces are... | gpl-3.0 | 4,482,946,328,809,954,300 | 53.425 | 162 | 0.741387 | false |
jkyeung/XlsxWriter | xlsxwriter/test/comparison/test_chart_axis23.py | 1 | 1661 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | bsd-2-clause | -5,053,954,785,676,656,000 | 25.790323 | 79 | 0.546659 | false |
jelford/activesoup | src/activesoup/driver.py | 1 | 6820 | import functools
from typing import Any, Dict, Optional, Callable
from urllib.parse import urljoin
import requests
import activesoup
import activesoup.html
from activesoup.response import CsvResponse, JsonResponse
class DriverError(RuntimeError):
"""Errors that occur as part of operating the driver
Th... | mit | 3,605,680,454,093,410,000 | 35.084656 | 98 | 0.634751 | false |
gbnk0/pyptables | pyptables/utils.py | 1 | 2004 | import os
import sys
import subprocess
default_binpath = "/sbin/iptables"
def rule_to_list(rule):
listrule = []
if rule.chain:
listrule.append("-A")
listrule.append(rule.chain.name)
if rule.in_if:
listrule.append("-i")
listrule.append(rule.in_if)
if rule.out_if:
... | mit | 662,567,184,734,610,600 | 22.313953 | 66 | 0.54491 | false |
Micronaet/micronaet-bom | bom_placeholder_check/__openerp__.py | 1 | 1677 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
#
# ODOO (ex OpenERP)
# Open Source Management Solution
# Copyright (C) 2001-2015 Micronaet S.r.l. (<https://micronaet.com>)
# Developer: Nicola Riolini @thebrush (<https://it.linkedin.com/in/thebr... | agpl-3.0 | -4,769,430,613,487,018,000 | 33.22449 | 79 | 0.575432 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.