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
AustereCuriosity/astropy
astropy/config/paths.py
1
10744
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module contains functions to determine where configuration and data/cache files used by Astropy should be placed. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from ..extern impor...
bsd-3-clause
6,146,739,670,736,519,000
33.107937
99
0.612249
false
sqall01/alertR
alertClientExecuter/alertRclient.py
1
12421
#!/usr/bin/env python3 # written by sqall # twitter: https://twitter.com/sqall01 # blog: https://h4des.org # github: https://github.com/sqall01 # # Licensed under the GNU Affero General Public License, version 3. import sys import os import stat from lib import ServerCommunication, ConnectionWatchdog, Receiver from l...
agpl-3.0
694,129,595,070,432,500
41.979239
120
0.591901
false
kwikteam/phy
tools/api.py
1
7682
# -*- coding: utf-8 -*- """Minimal API documentation generation.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ from importlib import import_module import inspect import os.path as op import r...
bsd-3-clause
-4,705,370,727,807,438,000
29.355731
93
0.564193
false
FabriceSalvaire/PySpice
examples/ngspice-shared/ngspice-interpreter.py
1
1806
#################################################################################################### #r# #r# ===================== #r# NgSpice Interpreter #r# ===================== #r# #r# This example explains how to use the NgSpice binding. #r# ######################################################################...
gpl-3.0
-2,954,109,373,574,108,700
19.735632
100
0.525499
false
thinkle/gourmet
gourmet/check_encodings.py
1
10430
from typing import Dict from gi.repository import Gtk from .gdebug import debug from .gtk_extras import dialog_extras as de from gettext import gettext as _ from .prefs import Prefs class CheckEncoding: """A class to read a file and guess the correct text encoding.""" encodings = ['iso8859', 'ascii', 'latin_...
gpl-2.0
-2,510,780,388,387,652,600
40.553785
125
0.541611
false
jakenjarvis/pyOss
MasterlistChecker.py
1
12321
#!/usr/bin/python # -*- coding: utf-8 -*- # This file encoding UTF-8 no BOM. このファイルの文字コードはUTF-8 BOM無しです。 ################################################################################ __appname__ = "MasterlistChecker.py" __author__ = "Jaken<Jaken.Jarvis@gmail.com>" __copyright__ = "Copyright 2010, Jaken" ...
gpl-3.0
-4,486,569,772,765,041,000
37.088136
155
0.479403
false
yk5/incubator-airflow
airflow/hooks/S3_hook.py
1
12717
# -*- coding: utf-8 -*- # # 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 #...
apache-2.0
-2,631,231,125,961,501,700
34.621849
108
0.57663
false
walty8/trac
trac/db/tests/sqlite_test.py
1
3385
# -*- coding: utf-8 -*- # # Copyright (C) 2015 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consists o...
bsd-3-clause
1,011,288,823,298,077,700
32.514851
78
0.631905
false
mluke93/osf.io
website/routes.py
1
51178
# -*- coding: utf-8 -*- import os import httplib as http from flask import request from flask import send_from_directory from framework import status from framework import sentry from framework.auth import cas from framework.routing import Rule from framework.flask import redirect from framework.routing import WebRen...
apache-2.0
8,155,702,705,884,056,000
30.263286
147
0.506819
false
red-hood/calendarserver
txdav/caldav/datastore/scheduling/test/test_implicit.py
1
65169
## # 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.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
apache-2.0
-7,479,997,661,628,814,000
29.667765
144
0.707085
false
Eric89GXL/vispy
vispy/visuals/graphs/layouts/force_directed.py
1
7502
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Force-Directed Graph Layout =========================== This module contains implementations for a force-directed layout, where the graph is modelled like a...
bsd-3-clause
-9,037,603,166,237,468,000
34.386792
77
0.589443
false
mrachinskiy/booltron
ops_destructive/destructive_func.py
1
5385
# ##### BEGIN GPL LICENSE BLOCK ##### # # Booltron super add-on for super fast booleans. # Copyright (C) 2014-2021 Mikhail Rachinskiy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
gpl-3.0
4,390,248,468,535,569,000
25.268293
84
0.591272
false
googleapis/python-pubsub
google/pubsub_v1/services/schema_service/pagers.py
1
5563
# -*- 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 o...
apache-2.0
3,531,521,777,943,690,000
34.433121
87
0.6421
false
pozetroninc/micropython
tools/codeformat.py
1
5981
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2020 Damien P. George # Copyright (c) 2020 Jim Mussared # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated document...
mit
-5,834,360,555,829,730,000
32.982955
97
0.584852
false
Archman/beamline
contrib/demo1.py
1
9941
#!/usr/bin/python # coding: utf-8 # ## Code demonstration for using *beamline* python package to do online modeling # # Tong Zhang, March, 2016 (draft) # # For example, define lattice configuration for a 4-dipole chicane with quads: # # ...
mit
9,197,368,168,278,072,000
32.136667
598
0.67458
false
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/migrate/versions/0056_workflow_outputs.py
1
1144
""" Migration script to create tables for adding explicit workflow outputs. """ from sqlalchemy import * from sqlalchemy.orm import * from migrate import * from migrate.changeset import * import logging logging.basicConfig( level=logging.DEBUG ) log = logging.getLogger( __name__ ) # Need our custom types, but don't ...
gpl-3.0
321,194,510,091,218,500
27.6
107
0.693182
false
dc3-plaso/plaso
plaso/cli/extract_analyze_tool.py
1
2810
# -*- coding: utf-8 -*- """The extraction and analysis CLI tool.""" import datetime import os from plaso.cli import status_view_tool from plaso.lib import errors class ExtractionAndAnalysisTool(status_view_tool.StatusViewTool): """Class that implements a combined extraction and analysis CLI tool.""" def __init...
apache-2.0
8,326,963,996,448,086,000
30.931818
80
0.688968
false
lmarent/network_agents_ver2_python
agents/GraphExecution.py
1
4105
import multiprocessing from ProviderAgentException import ProviderException import MySQLdb import logging import foundation.agent_properties logger = logging.getLogger('presenter_application') logger.setLevel(logging.INFO) fh = logging.FileHandler('presenter_logs.log') fh.setLevel(logging.INFO) formatter = logging.For...
mit
-8,014,453,808,743,486,000
38.471154
114
0.552741
false
aniversarioperu/secretariobot
setup.py
1
1462
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ # TODO: put package requirements here ] test_requi...
bsd-3-clause
-2,511,109,087,706,356,000
26.074074
66
0.619015
false
jrsmith3/refmanage
test/test_bibfile.py
1
6481
# -*- coding: utf-8 -*- import unittest import pathlib2 as pathlib from refmanage import BibFile from refmanage.ref_exceptions import UnparseableBibtexError from pybtex.database import BibliographyData # Base classes # ============ class Base(unittest.TestCase): """ Base class for tests This class is int...
mit
5,419,868,417,544,243,000
30.926108
176
0.618732
false
Newsboy-VA/Newsboy-Core
core/core.py
1
1657
#!/usr/bin/env python3 import asyncio import sys import logging import argparse from nlu import NLU from client_communication import VAClientHandler from module_communication import VAModuleHandler class VirtualAssistant(object): ''' ''' def __init__(self): parser = argparse.ArgumentParser( ...
gpl-3.0
4,354,760,709,866,121,000
27.084746
79
0.613156
false
eshook/Forest
unittests/test_Bobs.py
1
1255
""" Copyright (c) 2017 Eric Shook. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. @author: eshook (Eric Shook, eshook@gmail.edu) @contributors: <Contribute and add your name here!> """ from forest import * import unittest # Test forest/bobs/Bob.p...
bsd-3-clause
-2,300,860,208,043,709,200
32.026316
97
0.650199
false
josiah-wolf-oberholtzer/discograph
discograph/ui.py
1
3715
# -*- encoding: utf-8 -*- import json from flask import Blueprint from flask import current_app from flask import make_response from flask import request from flask import render_template from flask import url_for from discograph import exceptions from discograph import helpers blueprint = Blueprint('ui', __name__, ...
mit
2,357,549,400,716,320,300
31.596491
77
0.644415
false
cl4u2/chirp
chirp/xml_ll.py
1
7989
# Copyright 2008 Dan Smith <dsmith@danplanet.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is ...
gpl-3.0
3,356,739,449,751,182,300
30.956
79
0.587182
false
tedkulp/bossogg
boss3/Database.py
1
40212
#Boss Ogg - A Music Server #(c)2003 by Ted Kulp (wishy@comcast.net) #This project's homepage is: http://bossogg.wishy.org # #This program is free software; you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation; either version 2 of the L...
gpl-2.0
-2,373,406,627,346,853,400
38.735178
411
0.680643
false
Tapo4ek/django-cacheops
cacheops/query.py
1
20226
# -*- coding: utf-8 -*- import sys import json import threading import six from funcy import select_keys, cached_property, once, once_per, monkey, wraps, walk from funcy.py2 import mapcat, map from .cross import pickle, md5 import django from django.utils.encoding import smart_str, force_text from django.core.exceptio...
bsd-3-clause
-6,195,858,916,017,696,000
37.234405
98
0.597399
false
leigh123linux/Cinnamon
files/usr/share/cinnamon/cinnamon-settings/modules/cs_workspaces.py
3
2070
#!/usr/bin/python3 from SettingsWidgets import SidePage from xapp.GSettingsWidgets import * class Module: name = "workspaces" category = "prefs" comment = _("Manage workspace preferences") def __init__(self, content_box): keywords = _("workspace, osd, expo, monitor") sidePage = SideP...
gpl-2.0
622,025,873,954,569,200
42.125
193
0.638164
false
vmassuchetto/dnstorm
dnstorm/app/migrations/0005_auto__add_field_idea_description.py
1
16145
# -*- 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): # Adding field 'Criteria.created' db.add_column('dnstorm_criteria', 'crea...
gpl-2.0
-7,145,299,977,409,573,000
81.377551
208
0.552865
false
czepluch/pysecp256k1
c_secp256k1/__init__.py
1
9618
import numbers import struct from glob import glob from os import path try: from secrets import SystemRandom random = SystemRandom() except ImportError: try: from random import SystemRandom random = SystemRandom() except ImportError: import random from bitcoin import electrum_sig...
mit
-740,912,916,495,049,200
26.797688
96
0.638698
false
LamaHamadeh/Microsoft-DAT210x
Module 5/assignment3.py
1
6640
''' author Lama Hamadeh ''' import pandas as pd from datetime import timedelta import matplotlib.pyplot as plt import matplotlib from sklearn.cluster import KMeans matplotlib.style.use('ggplot') # Look Pretty # # INFO: This dataset has call records for 10 users tracked over the course of 3 years. # Your job is to fi...
mit
-1,770,293,944,817,420,300
33.764398
119
0.708434
false
lyhrobin00007/FlaskCTA
app/tdbpy/tdbapi.py
1
12173
# -*- coding: utf-8 -*- """ Created on Wed Sep 07 13:21:35 2016 @author: 024536 """ import tdbpy from datetime import datetime, timedelta pSetting = { 'szIP':"172.22.137.140", 'szPort':"20003", 'szUser':"liyonghan", 'szPassword':"liyo1234", 'nTimeOutVal':10, 'nRetryCount':10, 'nRetryGap':...
mit
7,127,535,681,113,352,000
40.82397
119
0.577416
false
tensorflow/datasets
tensorflow_datasets/core/utils/resource_utils_test.py
1
2052
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
apache-2.0
-2,268,741,723,178,552,800
33.779661
74
0.718324
false
JazzeYoung/VeryDeepAutoEncoder
theano/tensor/nnet/tests/test_bn.py
1
5616
from __future__ import absolute_import, print_function, division import theano from theano.tests import unittest_tools as utt import numpy from theano.tensor.nnet.bn import batch_normalization def test_BNComposite(): try: orig = theano.config.compute_test_value theano.config.compute_test_value =...
bsd-3-clause
-4,517,601,108,685,921,300
38.549296
116
0.507301
false
SiniAghilas/scripts
source/python/script_martin_algorithm.py
1
5564
#!/usr/bin/jython import os import sys from java.io import FileOutputStream import logging import optparse import getopt import string __all__ = [] __version__ = 0.1 __date__ = '15-03-2015' __updated__ ='21-03-2016' __author__='asini' ## related path if os.path.dirname(sys.argv[0])!= "": directery_name=os.path.dir...
gpl-3.0
-2,692,751,104,350,632,400
31.923077
183
0.682063
false
hankcs/HanLP
hanlp/components/mtl/tasks/tok/reg_tok.py
1
5225
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-08-02 16:51 import logging from typing import Union, List, Dict, Any, Iterable, Tuple import torch from alnlp.modules import util from torch import Tensor from torch.utils.data import DataLoader from hanlp.common.dataset import SamplerBuilder, PadSequenceDataLoader...
apache-2.0
9,092,129,869,008,547,000
46.93578
115
0.576459
false
CSIRT-MU/Stream4Flow
applications/detection/ddos/spark/detection_ddos.py
1
10022
# -*- coding: utf-8 -*- # # MIT License # # Copyright (c) 2016 Michal Stefanik <stefanik.m@mail.muni.cz>, Milan Cermak <cermak@ics.muni.cz> # Institute of Computer Science, Masaryk University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentati...
mit
-2,848,101,401,985,156,600
45.398148
128
0.669627
false
dradux/tracker
web/app.py
1
3934
# app.py import sys, os, logging from logging.handlers import RotatingFileHandler import os.path as op from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy from flask.ext.security import login_required, Security, SQLAlchemyUserDatastore, utils import flask_admin as admin from config import ...
gpl-3.0
-1,318,932,726,950,668,000
38.737374
145
0.728266
false
snyaggarwal/pex
tests/test_pex_binary.py
1
3548
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from contextlib import contextmanager from optparse import OptionParser from pex.bin.pex import configure_clp, configure_clp_pex_resolution from pex.fetcher import PyPIFetcher from pex.pa...
apache-2.0
1,874,773,087,032,883,500
33.784314
90
0.710541
false
pony012/PruebaServicioCucea
app/app.py
1
2764
# from flask import Flask from flask import render_template, redirect, url_for, flash from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import Required, Length, EqualTo, DataRequired # from flask_mongoengine import MongoEngine from flask_se...
mit
-703,852,059,490,693,200
30.770115
77
0.671852
false
utarsuno/quasar_source
deprecated/c_processes/c_compiler.py
1
1140
# coding=utf-8 """This module, c_compiler.py, is a utility program to compiling c programs.""" from universal_code.shell_abstraction.shell_command_runner import run_shell_command_and_get_results def create_object_file(source_file_path, object_output_path): """Creates an object file.""" return _run_command_and_ret...
mit
-659,934,029,010,199,700
38.310345
141
0.716667
false
MSEMJEJME/Get-Dumped
renpy/easy.py
1
4218
# Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us> # # 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, m...
gpl-2.0
1,460,786,579,161,761,800
28.704225
82
0.584637
false
carbonblack/cb-event-duplicator
cbopensource/tools/eventduplicator/transporter.py
1
14136
from __future__ import absolute_import, division, print_function import logging import datetime from cbopensource.tools.eventduplicator.utils import get_process_id, get_parent_process_id import sys __author__ = 'jgarman' log = logging.getLogger(__name__) class Transporter(object): def __init__(self, input_sourc...
mit
3,804,607,781,867,005,400
37.835165
119
0.491865
false
GrognardsFromHell/TemplePlus
tpdatasrc/co8infra/scr/Spell740 - Ray of Clumsiness.py
1
1719
from toee import * import tpdp def OnBeginSpellCast( spell ): print "Ray of Cluminess OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level def OnSpellEffect( spell ): print "Ray of Clumsiness OnSpellEffect" def OnBeginRound( sp...
mit
-6,098,167,636,621,271,000
31.45283
111
0.733566
false
arkon/cdf-scrapers
labs/labs.py
1
2979
from collections import OrderedDict from html.parser import HTMLParser import argparse import datetime import json import os import sys import time import urllib.request class PageParser(HTMLParser): """Parser for CDF Lab Machine Usage page.""" def __init__(self): HTMLParser.__init__(self) #...
mit
-283,823,200,020,091,780
24.681034
77
0.536757
false
mapzen/vector-datasource
scripts/csv_colours.py
2
2023
from vectordatasource.colour import parse_colour from vectordatasource.transform import Palette from optparse import OptionParser import sys import csv import yaml def to_hex(colour): return "#%02x%02x%02x" % tuple(colour) yaml_config_file = None output_file = sys.stdout output_colour_key = 'Colour name' input_...
mit
1,974,132,946,544,497,700
33.288136
79
0.608008
false
Leibniz137/testinfra
testinfra/modules/supervisor.py
1
3502
# coding: utf-8 # 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 # dist...
apache-2.0
7,123,089,475,247,661,000
29.99115
74
0.590805
false
JessWalters/VinnyBot
Core/Stats.py
1
2045
import glob import json import os import threading import discord from urllib.request import urlopen from urllib.request import Request from Config import getToken commandsCalled = 0 members = {} VINNY_COLOR = int('008cba', 16) async def getStats(message, client): serverCount = 0 channelCount = 0 for ser...
mit
-4,362,727,674,846,634,000
33.661017
134
0.632274
false
dchaplinsky/pep.org.ua
pepdb/core/migrations/0160_auto_20190801_1806.py
1
1125
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-08-01 15:06 from __future__ import unicode_literals from django.db import migrations, models def publish_everything(apps, schema_editor): Company = apps.get_model("core", "Company") Person = apps.get_model("core", "Person") Person.objects.all(...
mit
1,302,245,182,735,781,600
31.142857
141
0.643556
false
delitamakanda/socialite
app/main/forms.py
1
2488
from flask_wtf import Form from flask_pagedown.fields import PageDownField from wtforms import TextField, StringField, SubmitField, TextAreaField, BooleanField, SelectField, ValidationError from wtforms.validators import Required, Length, Regexp, EqualTo, Email from ..models import User, Role, Comment class CommentFo...
mit
-8,109,677,442,507,174,000
43.428571
183
0.679662
false
fred806/Pype
pypeNuke.py
1
52150
import nuke import nukescripts import os from xml.dom import minidom from xml.dom.minidom import Document from xml.etree import ElementTree as ET import getpass import re import ftplib from ftplib import FTP import uuid import os2emxpath as path import subprocess as sp import logging pypePath = os.envir...
mit
-3,904,076,662,467,990,500
42.763948
245
0.527651
false
bradkav/ATLASfits
DiphotonFits.py
1
1961
#--DiphotonFits.py - Version 1 - 04/02/2016 #--Author: Bradley J Kavanagh #--Summary: Code for fitting the ATLAS diphoton data #--and calculating the significance of the 750 GeV excess #--Note: Requires emcee (http://dan.iel.fm/emcee/current/) #--Please report any problems to: bradkav@gmail.com print "----Likelihood...
mit
-6,611,880,352,664,472,000
29.169231
68
0.570117
false
yangautumn/turing_pattern
amorphous_pattern/grid_graph.py
1
1941
""" Simulate how Droplets will perform with Young's Model on Grid Graphs with different density Author: Yang Li Date: July 14, 2017 # randomly generate N droplets with diameter = 4.5cm within a square of length 60cm """ from AmorphousGraph import * # 'factor' value kind of means how much strength to push each ...
gpl-3.0
1,260,177,515,249,739,000
25.958333
91
0.646574
false
rolandgeider/wger
wger/gym/tests/test_contract_options.py
1
3231
# This file is part of wger Workout Manager. # # wger Workout Manager 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. # # wger W...
agpl-3.0
1,165,271,795,223,467,500
27.095652
78
0.548128
false
jelly/calibre
src/calibre/devices/kobo/kobotouch_config.py
1
19439
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' ...
gpl-3.0
7,033,228,520,682,415,000
40.625268
142
0.618705
false
AnalogJ/lexicon
lexicon/tests/providers/test_hover.py
1
2518
"""Integration tests for Hover""" import json import re from unittest import TestCase from lexicon.tests.providers.integration_tests import IntegrationTestsV2 class HoverProviderTests(TestCase, IntegrationTestsV2): """TestCase for Hover""" provider_name = "hover" domain = "novuslex.com" domain_id = ...
mit
-8,230,661,576,582,441,000
34.971429
85
0.571485
false
RENCI/xDCIShare
hs_core/tests/api/views/test_unshare_resource.py
1
11042
import json from django.test import TestCase, RequestFactory from django.contrib.auth.models import Group from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.exceptions import PermissionDenied from hs_core import hydroshare from hs_core.views import unshare_resource_wit...
bsd-3-clause
5,025,365,695,839,599,000
43.524194
99
0.641369
false
DeflatedPickle/Colony
colony/time.py
1
1986
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """""" from tkinter import IntVar __title__ = "Time" __author__ = "DeflatedPickle" __version__ = "1.3.1" class Time(object): def __init__(self, hours: int = 0, minutes: int = 0, seconds: int = 0): self._hours = IntVar(value=hours) self._minutes = In...
mit
-9,133,802,816,021,608,000
27.371429
110
0.552367
false
Sinar/telus
lib/pymg3.py
1
7566
#!/usr/bin/python """ This is a module for dealing with MongoDB via PyMongo. Use this module to manage databases and collections in MongoDB using the Python driver, PyMongo. The API operation commands have slight differences between `mongo` shell and `pymongo` in Python scripts. MongoDB manual (https://docs.mongodb.c...
gpl-3.0
-5,252,623,188,029,648,000
33.866359
70
0.649749
false
aerospace-notebook/aerospace-notebook
nbimport.py
1
2719
""" Module. """ import io, os, sys, types from IPython import nbformat from IPython.core.interactiveshell import InteractiveShell def find_notebook(fullname, path=None): """find a notebook, given its fully qualified name and an optional path This turns "foo.bar" into "foo/bar.ipynb" and tries turning "Foo...
bsd-3-clause
-4,277,971,977,055,841,000
30.988235
90
0.579257
false
vallemrv/tpvB3
tpv_for_eetop/tpv/controllers/arqueo.py
1
6717
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 10-May-2017 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 17-Mar-2018 # @License: Apache license vesion 2.0 from kivy.uix.anchorlayout import AnchorLayout from kivy.properties import ObjectProperty, StringProp...
apache-2.0
-6,670,678,691,411,380,000
31.765854
79
0.57749
false
kingname/Bi_BiBi
jikexueyuan/webControlWithDataBase.py
1
1508
#--coding:utf8-- from flask.ext.bootstrap import Bootstrap from flask import Flask, render_template, redirect from flask.ext.wtf import Form from wtforms import StringField, SubmitField, TextAreaField from util.DataBaseManager import DataBaseManager app = Flask(__name__) bootstrap = Bootstrap(app) app. config['SECRET...
gpl-3.0
-7,558,096,615,025,651,000
34.560976
93
0.674897
false
Arello-Mobile/sphinx-confluence
sphinx_confluence/__init__.py
1
20132
# -*- coding: utf-8 -*- """ https://confluence.atlassian.com/display/DOC/Confluence+Storage+Format """ from distutils.version import LooseVersion import os from docutils import nodes from docutils.parsers.rst import directives, Directive, roles from docutils.parsers.rst.directives import images from docutils.parser...
mit
2,380,515,453,393,359,000
33.179966
113
0.582853
false
gsantovena/marathon
tests/system/test_marathon_root.py
1
28234
""" Test using root marathon. This test suite imports all common tests found in marathon_common.py which are to be tested on root marathon and MoM. In addition it contains tests which are specific to root marathon, specifically tests round dcos services registration and control and security. """ import...
apache-2.0
-217,581,934,169,658,050
34.073292
158
0.624495
false
kubevirt/client-python
kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py
1
2430
# coding: utf-8 """ KubeVirt API This is KubeVirt API an add-on for Kubernetes. OpenAPI spec version: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class K8sIoApi...
apache-2.0
7,947,710,263,294,770,000
23.545455
77
0.518519
false
Yusuke1987/openstack_template
openapp/openstack/common/report/generators/process.py
1
1221
# Copyright 2014 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
apache-2.0
4,941,720,029,709,224,000
31.131579
78
0.730549
false
chrisvans/roasttron
docs/conf.py
1
7821
# -*- coding: utf-8 -*- # # roasttron documentation build configuration file, created by # sphinx-quickstart. # # 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. # # All configuration values have...
mit
6,534,412,259,365,037,000
30.922449
80
0.697737
false
untitaker/python-webuntis
webuntis/objects.py
1
29012
""" This file is part of python-webuntis :copyright: (c) 2013 by Markus Unterwaditzer. :license: BSD, see LICENSE for more details. """ import datetime from webuntis.utils import datetime_utils, lazyproperty, \ timetable_utils class Result(object): """Base class used to represent most API object...
bsd-3-clause
4,595,428,751,574,091,300
27.555118
115
0.576106
false
dims/cinder
cinder/volume/drivers/dell/dell_storagecenter_common.py
1
55203
# Copyright 2015 Dell 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 agree...
apache-2.0
7,205,747,925,299,166,000
44.622314
79
0.531366
false
Southpaw-TACTIC/TACTIC
src/pyasm/search/mongodb_test.py
1
4510
########################################################### # # Copyright (c) 2013, Southpaw Technology # All Rights Reserved # # PROPRIETARY INFORMATION. This software is proprietary to # Southpaw Technology, and is not to be reproduced, transmitted, # or disclosed in any way without written permi...
epl-1.0
784,356,280,658,903,200
24.771429
88
0.602882
false
simoncozens/GlyphsPlugins
Comb.glyphsFilter/Contents/Resources/plugin.py
1
3651
# encoding: utf-8 from GlyphsApp.plugins import * from math import cos, sin from glyphmonkey import * from itertools import izip from GlyphsApp import LINE class Comb(FilterWithDialog): # Definitions of IBOutlets # The NSView object from the User Interface. Keep this here! dialog = objc.IBOutlet() # Text field...
mit
-6,872,188,751,832,791,000
29.425
111
0.641468
false
bucko909/powerpod
powerpod/types.py
1
25068
from collections import namedtuple import datetime import calendar import struct import sys class StructType(object): """ Automatically uses SHAPE to pack/unpack simple structs. """ @classmethod def from_binary(cls, data): try: return cls(*cls._decode(*struct.unpack(cls.SHAPE, data))) except: sys.stderr...
bsd-2-clause
-8,511,836,035,023,288,000
38.230047
489
0.65079
false
snd/dejavu
recognize.py
1
1047
import sys import warnings warnings.filterwarnings("ignore") import argparse import timeit from dejavu import Dejavu from dejavu.timer import Timer from dejavu.recognize import FileRecognizer parser = argparse.ArgumentParser() parser.add_argument("file", help="the file to recognize") parser.add_argument( "-...
mit
-60,996,768,827,672,870
22.266667
75
0.627507
false
mgautierfr/ediap
libs/painter/__init__.py
1
3074
# This file is part of Edia. # # Ediap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Edia is distributed in the hope that it will...
gpl-2.0
42,613,606,250,163,280
30.690722
111
0.634027
false
gratefulfrog/ArduGuitar
Ardu2/design/POC-3_MAX395/pyboard/V1_WithHMI/pyboard_no_debug/Presets.py
1
13399
import csv from state import State # 2016 12 25: changed saveCurrentConfigAsPreset to allow for both save to disk and not to disk # this is where I put all the preset configs """ Each config is a dictionary of this form: currentDict = {'Name': 'EasyMusic','M' : [0,0],'A' : [0,0],'B' : [0,0],'C' : [0,0],'D' : [0,0],'...
gpl-2.0
4,316,819,819,730,568,000
54.139918
183
0.462646
false
pfouque/deezer-python
deezer/client.py
1
7891
""" Implements a client class to query the `Deezer API <http://developers.deezer.com/api>`_ """ import json try: # pragma: no cover - python 2 from urllib import urlencode from urllib2 import urlopen except ImportError: # pragma: no cover - python 3 from urllib.parse import urlencode from urllib.requ...
mit
-2,699,333,509,705,244,000
30.564
80
0.582816
false
gajim/gajim
win/misc/create-launcher.py
1
5971
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later...
gpl-3.0
-4,010,021,185,229,620,700
27.706731
81
0.610283
false
geometalab/Vector-Tiles-Reader-QGIS-Plugin
plugin/util/global_map_tiles.py
1
14349
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL2Tiles, Google Summer of Code 2007 & 2008 # Global Map Tiles Classes # Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326, # generate a simple...
gpl-2.0
6,512,009,764,957,224,000
40.351585
113
0.621298
false
droodle/kansha
kansha/card/comp.py
1
12065
# -*- coding:utf-8 -*- # -- # Copyright (c) 2012-2014 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- import dateutil.parser from nagare import component, log, security from ...
bsd-3-clause
-3,670,669,339,380,194,000
31.964481
173
0.594115
false
google-research/google-research
ncsnv3/ncsn_lib.py
1
21967
# coding=utf-8 # Copyright 2021 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...
apache-2.0
-2,651,883,456,299,889,700
38.79529
114
0.630946
false
mcalmer/spacewalk
client/rhel/rhnlib/rhn/rpclib.py
1
24163
# # This module contains all the RPC-related functions the RHN code uses # # Copyright (c) 2005--2018 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTAB...
gpl-2.0
4,209,307,803,917,549,600
32.794406
169
0.573687
false
bsipocz/ccdproc
ccdproc/tests/pytest_fixtures.py
1
1765
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from astropy.tests.helper import pytest from astropy import units as u from astropy.utils import NumpyRNGContext from ..ccddata import CCDData # If additional pytest markers are defined th...
bsd-3-clause
1,015,693,112,330,947,700
27.467742
77
0.67932
false
jyates/SimpleDBHammer
src/mongo.py
1
1090
''' Copyright 2011 Jesse Yates 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 wr...
apache-2.0
-4,374,926,212,630,796,300
31.088235
82
0.686239
false
jenfly/monsoon-onset
scripts/thesis-figs.py
1
9561
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') sys.path.append('/home/jwalker/dynamics/python/monsoon-onset') import numpy as np import xarray as xray import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl from m...
mit
6,556,450,848,463,915,000
35.773077
85
0.606422
false
brunobord/critica
apps/articles_epicurien/admin.py
1
2409
# -*- coding: utf-8 -*- """ Administration interface options for ``critica.apps.articles_epicurien`` models. """ from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from critica.apps.admin.sites import basic_site, advanced_site from critica.apps.articles.admin import BaseArticleA...
gpl-3.0
-3,054,804,316,831,667,000
38.491803
90
0.674554
false
palerdot/calibre
src/calibre/db/backend.py
1
68501
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' # Imports {{{ ...
gpl-3.0
-5,460,101,433,638,921,000
40.141742
141
0.527146
false
brainwane/missing-from-wikipedia
webapp/application.py
1
1721
# -*- coding: utf-8 -*- from flask import Flask, render_template, request import missing app = Flask(__name__) # take in names from datainput.html form # run massagenames (implicitly chunks into 50 titles per request) and leftout # return result to user in results.html form def onWikipedia(names, lang): names =...
gpl-3.0
-7,242,098,130,690,440,000
35.617021
136
0.655433
false
yelizariev/addons-yelizariev
odoo_backup_sh/tests/test_odoo_backup_sh_auto_rotation.py
1
2946
# Copyright 2018 Stanislav Krotov <https://it-projects.info/team/ufaks> # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from datetime import datetime, timedelta import odoo.tests.common @odoo.tests.common.at_install(False) @odoo.tests.common.post_install(True) class TestOdooBackupSh(odoo.tests...
lgpl-3.0
-7,109,469,045,742,021,000
39.356164
87
0.540054
false
kennedyshead/home-assistant
homeassistant/helpers/entity_platform.py
1
26292
"""Class to manage the entities for a single platform.""" from __future__ import annotations import asyncio from collections.abc import Coroutine, Iterable from contextvars import ContextVar from datetime import datetime, timedelta import logging from logging import Logger from types import ModuleType from typing impo...
apache-2.0
6,382,021,984,624,040,000
34.577808
125
0.571543
false
robbievanleeuwen/section-properties
sectionproperties/examples/example_frame.py
1
1555
import time import numpy as np import matplotlib.pyplot as plt import sectionproperties.pre.sections as sections from sectionproperties.analysis.cross_section import CrossSection # create a rectangular section geometry = sections.RectangularSection(d=100, b=50) # create a list of mesh sizes to analyse mesh_sizes = [1...
mit
-2,314,972,156,369,502,700
38.871795
78
0.684887
false
F-Secure/lokki-wp8
scripts/common.py
1
1958
""" Copyright (c) 2014-2015 F-Secure See LICENSE for details """ """ Common methods to be used in converting localization files. Copyright: F-Secure, 2012 """ #defult product name in localization files PRODUCT_NAME_DEFAULT_VALUE = "F-Secure Mobile Sync" # id that defines default product name in localization file PROD...
apache-2.0
-7,674,815,097,206,625,000
37.392157
103
0.643514
false
fr0uty/oartm
tests/kao/test_db_kamelot_fifo.py
1
1412
# coding: utf-8 from __future__ import unicode_literals, print_function import pytest from oar.lib import db from oar.kao.job import insert_job from oar.kao.platform import Platform from oar.kao.kamelot_fifo import main, schedule_fifo_cycle @pytest.yield_fixture(scope='function', autouse=True) def minimal_db_initi...
bsd-3-clause
5,573,465,817,564,996,000
23.344828
76
0.626062
false
willforde/script.module.codequick
script.module.codequick/lib/codequick/support.py
1
14851
# -*- coding: utf-8 -*- from __future__ import absolute_import # Standard Library Imports import importlib import binascii import inspect import logging import time import sys import re # Kodi imports import xbmcaddon import xbmcgui import xbmc # Package imports from codequick.utils import parse_qs, ensure_native_st...
gpl-2.0
6,763,565,868,317,495,000
34.958838
119
0.619824
false
grlee77/numpy
numpy/lib/tests/test_stride_tricks.py
1
18890
import numpy as np from numpy.core._rational_tests import rational from numpy.testing import ( assert_equal, assert_array_equal, assert_raises, assert_, assert_raises_regex, assert_warns, ) from numpy.lib.stride_tricks import ( as_strided, broadcast_arrays, _broadcast_shape, broadcast_to, broadcast_...
bsd-3-clause
-1,454,254,805,155,908,400
33.981481
82
0.521122
false
SamuelDauzon/Improllow-up
tasks/migrations/0006_auto_20151022_1917.py
1
1081
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0005_auto_20151018_1303'), ] operations = [ migrations.CreateModel( name='TaskType', fields...
mit
-790,270,236,375,810,000
32.6875
114
0.55102
false
virajkanwade/plugin.video.zeetv
resources/lib/slimit/lexer.py
1
15051
############################################################################### # # Copyright (c) 2011 Ruslan Spivak # # 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, inc...
gpl-3.0
7,872,050,808,526,940,000
33.441648
79
0.431732
false
h4ck3rm1k3/gcc_py_introspector
gcc/tree/tnode.py
1
1044
class TNode : def __init__(self, node_id, node_type, o): self.node_id=node_id self.node_type=node_type #self.o=o def nid(self): return self.node_id.n def pstack(self): r = "" debug( "Stack:%s" % pprint2.pformat(self.o.stack)) #debug(pprint2.pformat(di...
gpl-2.0
5,055,035,353,580,054,000
31.625
96
0.45977
false
GutenkunstLab/SloppyCell
Example/PC12/PC12Run.py
1
1172
from SloppyCell.ReactionNetworks import * import Nets reload(Nets) import Experiments as Expts import Calculations as Calcs m = Model([ Expts.ErkMekTraverse2EGF.expt, Expts.ErkMekTraverse2NGF.expt, Expts.Raf1LandrethEGF.expt, Expts.Rap1YorkNGF.expt, Expts.RasGree...
bsd-3-clause
5,435,433,293,142,724,000
24.478261
66
0.685154
false
lehmannro/translate
storage/xml_extract/unit_tree.py
1
4885
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008-2010 Zuza Software Foundation # # This file is part of translate. # # translate 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 ...
gpl-2.0
5,338,542,481,059,170,000
39.371901
102
0.641146
false
pcmanus/cassandra-dtest
upgrade_through_versions_test.py
1
20763
import bisect, os, random, re, subprocess, time, uuid, unittest from collections import defaultdict from distutils.version import LooseVersion from cql import OperationalError from dtest import Tester, debug, DISABLE_VNODES, DEFAULT_DIR from tools import new_node, not_implemented TRUNK_VER = '2.2' # Used to build upg...
apache-2.0
-1,917,096,939,052,648,700
40.860887
134
0.592063
false
ayepezv/GAD_ERP
addons/website/models/ir_ui_view.py
2
8995
# -*- coding: ascii -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from itertools import groupby from lxml import etree from odoo import api, fields, models from odoo import tools from odoo.addons.website.models import website from odoo.http import request _logger = lo...
gpl-3.0
412,984,447,094,891,260
39.886364
135
0.572318
false