repo_name stringlengths 6 90 | path stringlengths 4 230 | copies stringlengths 1 4 | size stringlengths 4 7 | content stringlengths 734 985k | license stringclasses 15
values | hash int64 -9,223,303,126,770,100,000 9,223,233,360B | line_mean float64 3.79 99.6 | line_max int64 19 999 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 8.06 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
open-power-ref-design/os-services | osa/dbaas/dbimage-builder/scripts/helpers/flavor.py | 2 | 7296 | #!/usr/bin/env python
#
# Copyright 2017 IBM US, 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 ... | apache-2.0 | 8,843,339,586,068,962,000 | 30.448276 | 79 | 0.570175 | false | 3.969532 | false | false | false |
frederic-mahe/FROGS | bin/filterSeq.py | 1 | 9601 | #!/usr/bin/env python2.7
#
# Copyright (C) 2014 INRA
#
# 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 ... | gpl-3.0 | -2,002,366,141,815,636,700 | 46.300493 | 257 | 0.604625 | false | 3.746001 | false | false | false |
rsnakamura/oldape | apetools/connections/sshconnection.py | 1 | 11280 |
#python Libraries
import socket
import os
from threading import RLock
# third-party libraries
import paramiko
# apetools Libraries
from apetools.commons.readoutput import ValidatingOutput
#apetools libraries
from apetools.baseclass import BaseClass
from apetools.commons import errors
ConnectionError = errors.Connec... | apache-2.0 | 5,383,001,721,986,146,000 | 32.372781 | 121 | 0.579699 | false | 4.462025 | false | false | false |
CloudServer/pcs-nova-driver | utils/add-ez-image.py | 1 | 1563 | #!/usr/bin/env python
# Copyright (c) 2013-2014 Parallels, 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/LIC... | apache-2.0 | -6,459,721,705,912,173,000 | 28.490566 | 78 | 0.636596 | false | 3.236025 | false | false | false |
dopplershift/MetPy | src/metpy/plots/skewt.py | 1 | 36705 | # Copyright (c) 2014,2015,2016,2017,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Make Skew-T Log-P based plots.
Contain tools for making Skew-T Log-P plots, including the base plotting class,
`SkewT`, as well as a class for making a `Hodog... | bsd-3-clause | -4,583,578,366,248,421,000 | 36.762346 | 95 | 0.597875 | false | 4.163925 | false | false | false |
marifersahin/pyfolio | entry/migrations/0001_initial.py | 1 | 1767 | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-07 17:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.... | mit | 8,467,261,344,103,888,000 | 40.093023 | 162 | 0.5897 | false | 4.227273 | false | false | false |
Yegor-Budnikov/cort | cort/core/documents.py | 1 | 22166 | """ Manage individual documents of text collections.
In particular, classes in this module allow to access the linguistic
information present in documents.
"""
from collections import defaultdict
import logging
from cort.core import mentions
from cort.core import spans
from cort.StanfordDependencies import Stanford... | mit | 827,868,650,435,764,200 | 34.4656 | 95 | 0.565867 | false | 4.141629 | false | false | false |
HBPNeurorobotics/BlenderRobotDesigner | robot_designer_plugin/interface/segments.py | 1 | 3437 | # #####
# This file is part of the RobotDesigner of the Neurorobotics subproject (SP10)
# in the Human Brain Project (HBP).
# It has been forked from the RobotEditor (https://gitlab.com/h2t/roboteditor)
# developed at the Karlsruhe Institute of Technology in the
# High Performance Humanoid Technologies Laboratory (H2T)... | gpl-2.0 | 281,097,420,519,548,700 | 37.188889 | 165 | 0.668897 | false | 3.748092 | false | false | false |
all-umass/superman | superman/preprocess/pipeline.py | 1 | 1908 | from __future__ import absolute_import, division, print_function
import re
from . import steps
# Cache for _make_pp, maps pp_string -> pp_fn
_PP_MEMO = {}
# Lookup table of pp-string name -> pipeline step
PP_STEPS = dict((cls.name, cls) for cls in
(getattr(steps, cls_name) for cls_name in steps.__all... | mit | 3,657,690,625,026,275,300 | 24.783784 | 79 | 0.593816 | false | 3.102439 | false | false | false |
163gal/Time-Line | libs/wx/tools/Editra/src/syntax/_nsis.py | 2 | 8682 | ###############################################################################
# Name: nsis.py #
# Purpose: Define NSIS syntax for highlighting and other features #
# Author: Cody Precord <cprecord@editra.org> #
... | gpl-3.0 | -1,756,552,485,892,623,000 | 52.925466 | 80 | 0.593757 | false | 4.030641 | false | false | false |
igordejanovic/textX-ninja | textx_ninja/textx_ninja.py | 2 | 7620 | # -*- coding: UTF-8 -*-
import os
from PyQt4.QtGui import QMessageBox
from ninja_ide.core import plugin
from ninja_ide.core import settings
from ninja_ide.core.plugin_interfaces import IProjectTypeHandler
from ninja_ide.core import file_manager
from ninja_ide.tools import json_manager
from .textxsyntax import TEXTX_E... | gpl-3.0 | -2,552,651,225,524,219,400 | 34.115207 | 75 | 0.582021 | false | 3.881814 | false | false | false |
freevoid/yawf | yawf_sample/simple/workflows/message_groups.py | 1 | 1768 | from django import forms
from yawf.creation import CreationAwareWorkflow
from yawf.messages.common import BasicStartMessage, MessageSpec
from yawf.handlers import EditHandler, LoopHandler, StartWorkflowHandlerBase
from yawf_sample.simple.models import Window, WINDOW_OPEN_STATUS
class MessageGroupsTestWorkflow(Creati... | mit | -7,381,737,756,002,360,000 | 20.301205 | 76 | 0.705317 | false | 3.937639 | false | false | false |
EvenStrangest/tensorflow | tensorflow/python/ops/nn.py | 2 | 50227 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,721,363,160,980,455,400 | 41.27862 | 92 | 0.656838 | false | 3.701054 | false | false | false |
lablup/sorna-manager | src/ai/backend/manager/models/alembic/versions/dbc1e053b880_add_keypair_resource_policy.py | 2 | 3479 | """add-keypair-resource-policy
Revision ID: dbc1e053b880
Revises: 2b0931e4a059
Create Date: 2019-02-07 15:30:54.861821
"""
from alembic import op
import sqlalchemy as sa
from ai.backend.common.types import DefaultForUnspecified
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revis... | lgpl-3.0 | -7,285,651,059,395,284,000 | 34.865979 | 85 | 0.612532 | false | 3.917793 | false | false | false |
frossigneux/python-kwrankingclient | kwrankingclient/base.py | 1 | 4216 | # Copyright (c) 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 required by applicable law or agreed to in writ... | apache-2.0 | 3,391,231,690,091,948,000 | 30 | 81 | 0.618121 | false | 4.129285 | false | false | false |
dreamsxin/ubuntu-tweak | ubuntutweak/policykit/widgets.py | 4 | 3068 | # Ubuntu Tweak - Ubuntu Configuration Tool
#
# Copyright (C) 2007-2011 Tualatrix Chou <tualatrix@gmail.com>
#
# Ubuntu Tweak 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
... | gpl-2.0 | -9,164,212,803,161,372,000 | 32.714286 | 103 | 0.665906 | false | 3.801735 | false | false | false |
frankosan/pypers | pypers/steps/picard/sort.py | 1 | 2629 | import re
import os
from pypers.core.step import CmdLineStep
class Sort(CmdLineStep):
spec = {
"version": "1.119",
"descr": [
"Runs picard tool to sort a sam or bam file"
],
"args":
{
"inputs": [
{
"name" : "inp... | gpl-3.0 | -5,983,627,976,183,354,000 | 35.013699 | 136 | 0.423735 | false | 4.166403 | false | false | false |
TeemuAhola/sailelfcloud | src/qml/python/keyhandler.py | 1 | 7699 | '''
Created on Jun 21, 2016
@author: Teemu Ahola [teemuahola7@gmail.com]
'''
import os
import pathlib
import xml.etree.ElementTree as et
import json
import datetime
import itertools
import copy
import fileHelpers
keyStoreDir = None
keyDatabase = {}
def _checkIfXmlFileIsKeyFile(file):
tree = et.ElementTree(None... | gpl-3.0 | -7,899,270,569,313,292,000 | 28.725869 | 122 | 0.610209 | false | 3.722921 | false | false | false |
nimbusproject/epumgmt | src/python/epumgmt/main/em_cmdline.py | 1 | 2667 | from em_core import core, EPUMgmtOpts
import sys
import os
import traceback
import em_deprecated
import em_optparse
from epumgmt.api.exceptions import *
from epumgmt.api import *
import remote_debug
def main(argv=sys.argv):
if os.name != 'posix':
print >>sys.stderr, "Only runs on POSIX systems."
r... | apache-2.0 | -1,347,385,849,543,218,400 | 29.306818 | 79 | 0.591676 | false | 3.788352 | false | false | false |
connorjan/RISC-721-Assembler | Mif.py | 1 | 4012 | import Common
class MifLine(object):
Comment = {
"altera" : "--",
"cadence" : "//"
}
def __init__(self, data=None, address = None, comment = "", instruction = None):
self.Address = address
self.Data = data
self.Comment = comment
self.Instruction = instruction
def GetAddressAsInt(self):
try:
... | mit | 6,988,436,481,201,151,000 | 30.590551 | 117 | 0.655783 | false | 3.041698 | false | false | false |
alejo8591/maker | core/templatetags/administration.py | 1 | 2069 | # encoding: utf-8
# Copyright 2013 maker
# License
"""
Administration templatetags
"""
from coffin import template
from maker.core.rendering import render_to_string
from jinja2 import contextfunction, Markup
from django.template import RequestContext
register = template.Library()
@contextfunction
def administrati... | mit | 8,095,528,877,235,683,000 | 31.328125 | 76 | 0.634123 | false | 4.459052 | false | false | false |
SanPen/CopperPlate | Gui/gui.py | 1 | 39199 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_mainWindow(object):
def setupUi(self, mainWindow):
mainWindow.setO... | gpl-3.0 | 1,478,617,367,962,429,000 | 62.214516 | 122 | 0.701579 | false | 3.572744 | false | false | false |
anselmobd/fo2 | src/lotes/views/ajax/altera_direito_estagio.py | 1 | 2746 | from pprint import pprint
from django.http import JsonResponse
from fo2.connections import db_cursor_so
import lotes.queries as queries
def altera_direito_estagio(request, id):
cursor = db_cursor_so(request)
data = {
'id': id,
}
erro = False
ids = id.split('_')
estagio = ids[0]
... | mit | -5,049,129,435,819,038,000 | 25.660194 | 72 | 0.468682 | false | 3.284689 | false | false | false |
hzlf/openbroadcast | website/pure_pagination__/paginator.py | 1 | 7843 | from django.conf import settings
from math import ceil
import functools
from django.template.loader import render_to_string
PAGINATION_SETTINGS = getattr(settings, "PAGINATION_SETTINGS", {})
PAGE_RANGE_DISPLAYED = PAGINATION_SETTINGS.get("PAGE_RANGE_DISPLAYED", 10)
MARGIN_PAGES_DISPLAYED = PAGINATION_SETT... | gpl-3.0 | 123,892,328,951,955,440 | 34.821596 | 114 | 0.58243 | false | 4.143159 | false | false | false |
hfp/libxsmm | samples/deeplearning/sparse_training/fairseq/tests/test_sparse_multihead_attention.py | 1 | 2545 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import unittest
from fairseq.modules.sparse_multihead_attention import SparseMultiheadAttention
class TestSparseMultiheadAttent... | bsd-3-clause | -5,284,112,696,338,809,000 | 52.020833 | 114 | 0.536346 | false | 3.539638 | true | false | false |
areeb-beigh/hacker-scripts | hs-wallpaper.py | 1 | 2486 | # Author: Areeb Beigh
# Created: 10th April 2016
"""
Chooses a random image file from the directory specified in the config.ini
[hs-wallpaper] section and sets it as the desktop background
"""
#############################################################################
# Copyright (C) 2016 Areeb Beigh <areebbeig... | gpl-3.0 | -4,344,905,633,328,572,000 | 40.433333 | 88 | 0.565165 | false | 4.569853 | true | false | false |
dougalsutherland/opt-mmd | gan/main_mmd.py | 1 | 3383 | import os
import numpy as np
from model_mmd import DCGAN
from utils import pp, visualize, to_json
import tensorflow as tf
flags = tf.app.flags
flags.DEFINE_integer("max_iteration", 400000, "Epoch to train [400000]")
flags.DEFINE_float("learning_rate", 2, "Learning rate [2]")
flags.DEFINE_float("decay_rate", 1.0, "De... | bsd-3-clause | 4,996,792,231,883,969,000 | 48.75 | 144 | 0.637895 | false | 3.194523 | false | false | false |
raiden-network/raiden | raiden/messages/encode.py | 1 | 2426 | from raiden.messages.abstract import Message
from raiden.messages.synchronization import Processed
from raiden.messages.transfers import (
LockedTransfer,
LockExpired,
RevealSecret,
SecretRequest,
Unlock,
)
from raiden.messages.withdraw import WithdrawConfirmation, WithdrawExpired, WithdrawRequest
f... | mit | 712,101,891,500,512,800 | 41.561404 | 91 | 0.747321 | false | 3.720859 | false | false | false |
cbonoz/codehealth | dependencies/rply/utils.py | 7 | 1131 | import sys
from collections import MutableMapping
class IdentityDict(MutableMapping):
def __init__(self):
self._contents = {}
self._keepalive = []
def __getitem__(self, key):
return self._contents[id(key)][1]
def __setitem__(self, key, value):
idx = len(self._keepalive)
... | mit | -6,137,988,897,228,705,000 | 20.75 | 52 | 0.548187 | false | 4.010638 | false | false | false |
becdot/adventures-in-text | game.py | 1 | 5012 | # THE GAME
# Game details (i.e. objects, rooms) are defined in test_game.py
# Game can be played via self.play(user_action), which uses grammar.py to parse and call the user action
# self.serialise() turns the game into a dictionary of strings (similar to JSON format)
# The deserialise function is used by passing a se... | mit | 8,880,346,274,358,287,000 | 42.215517 | 127 | 0.594374 | false | 3.974623 | false | false | false |
thorrak/fermentrack | app/models.py | 1 | 101302 | from __future__ import unicode_literals
from django.db import models, transaction
from django.core.validators import MinValueValidator, MaxValueValidator
from django.utils import timezone
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from django.core.exceptions import ObjectDoes... | mit | -5,021,220,917,735,197,000 | 43.450197 | 198 | 0.602673 | false | 4.009102 | false | false | false |
hophead-ninja/perfect_shape | perfect_shape/shaper.py | 1 | 6878 | from functools import reduce
from operator import add
from mathutils import Vector, Matrix
import math
def get_loop(edges, vert=None):
if vert is None:
edge = edges[0]
edges.remove(edge)
success_0, is_boundary_0, verts_0, edges_0 = get_loop(edges, edge.verts[0])
success_1, is_bound... | gpl-2.0 | 8,952,367,918,161,354,000 | 32.715686 | 107 | 0.52806 | false | 3.916856 | false | false | false |
PYPIT/PYPIT | pypeit/spectrographs/keck_deimos.py | 1 | 45002 | '''
Implements DEIMOS-specific functions, including reading in slitmask design files.
'''
from __future__ import absolute_import, division, print_function
import glob
import re
import os
import numpy as np
from scipy import interpolate
from astropy.io import fits
from pypeit import msgs
from pypeit import telescope... | gpl-3.0 | 7,628,136,888,729,223,000 | 38.649339 | 124 | 0.491734 | false | 3.794435 | false | false | false |
rgerkin/libNeuroML | neuroml/examples/build_3D_network.py | 1 | 3968 | """
Example to build a full spiking IaF network throught libNeuroML & save it as XML & validate it
"""
from neuroml import NeuroMLDocument
from neuroml import Network
from neuroml import ExpOneSynapse
from neuroml import Population
from neuroml import Annotation
from neuroml import Property
from neuroml import Cell
... | bsd-3-clause | -861,191,301,866,033,200 | 28.61194 | 146 | 0.595766 | false | 3.192277 | false | false | false |
KnightHawk3/LyricSig | signature.py | 1 | 1306 | #!/usr/bin/python2
# -*- coding: utf-8 -*-
import os
import random
# Credit to tetrapus
# (https://github.com/tetrapus/Karkat/blob/master/text.py#L14-L28)
def lineify(data, max_size=400):
"""
Split text up into IRC-safe lines.
"""
lines = []
for i in data.split("\n"):
line = [[]]
... | mit | 6,559,260,495,030,130,000 | 21.912281 | 69 | 0.623277 | false | 2.954751 | false | false | false |
ysh329/stock-newspaper-crawler | myclass/class_create_databases.py | 1 | 8984 | # -*- coding: utf-8 -*-
# !/usr/bin/python
################################### PART0 DESCRIPTION #################################
# Filename: class_create_databases.py
# Description: Create database and tables CLASS.
# database_name="essayDB"
# 4 tables' name:
# table structure a... | apache-2.0 | -1,122,970,345,445,142,700 | 41.051643 | 188 | 0.52423 | false | 3.880416 | false | false | false |
benschmaus/catapult | dashboard/dashboard/api/bugs.py | 2 | 2825 | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from dashboard.api import api_request_handler
from dashboard.common import datastore_hooks
from dashboard.common import utils
from dashboard.models import tr... | bsd-3-clause | -4,018,856,434,417,309,000 | 34.3125 | 77 | 0.616283 | false | 3.776738 | false | false | false |
goto-junji/csp-seq | src/ce2sd.py | 1 | 3834 | #! /usr/local/bin/python3
# coding: utf-8
import sys
import logging
import yaml
import collections
import os
def represent_odict(dumper, instance):
return dumper.represent_mapping("tag:yaml.org,2002:map", instance.items())
def construct_odict(loader, node):
return collections.OrderedDict(loader.construct_pa... | mit | 1,725,615,255,922,920,400 | 34.165138 | 122 | 0.521002 | false | 3.290129 | false | false | false |
tumi8/siblings | src/measure_ts.py | 1 | 11144 | #!/usr/bin/env python3
'''
Conducts TCP TS measurements towards a target list (option 1) on a specific
interface (option 2).
Exports result as a .pcap file by calling tcpdump.
Concept is to create a number of processes, which in turn fire up thousands
of threads. These conduct the measurements.
Threads receive measurem... | gpl-2.0 | 3,031,100,399,950,481,000 | 38.51773 | 155 | 0.585068 | false | 3.58328 | false | false | false |
kret0s/gnuhealth-live | tryton/client/tryton/gui/window/view_form/view/form.py | 1 | 18926 | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import operator
import gtk
import gettext
from collections import defaultdict
from . import View
from tryton.common.focus import (get_invisible_ancestor, find_focused_child,
... | gpl-3.0 | -1,524,958,398,003,296,500 | 36.776447 | 78 | 0.581845 | false | 4.091224 | false | false | false |
peterwilletts24/Monsoon-Python-Scripts | vort_and_div/divergence.py | 1 | 5210 | """
Load winds on pressure levels and calculate vorticity and divergence
"""
import os, sys
import datetime
import iris
#import iris.unit as unit
import iris.analysis.calculus
import iris.analysis.cartography
import numpy as np
import math
import pdb
diag = '30201'
cube_name_u='eastward_wind'
cube_name_v='northward... | mit | -6,605,451,863,548,719,000 | 32.184713 | 247 | 0.650096 | false | 2.953515 | false | false | false |
KWARC/mwetoolkit | bin/old/lemmatise.py | 1 | 7210 | #!/usr/bin/python
# -*- coding:UTF-8 -*-
# ###############################################################################
#
# Copyright 2010-2014 Carlos Ramisch, Vitor De Araujo, Silvio Ricardo Cordeiro,
# Sandra Castellanos
#
# lemmatise.py is part of mwetoolkit
#
# mwetoolkit is free software: you can redistribu... | gpl-3.0 | -6,581,186,722,894,388,000 | 35.231156 | 83 | 0.529542 | false | 4.172454 | false | false | false |
joshgabriel/dft-crossfilter | benchmark-view/crossfilter_app/main.py | 1 | 21099 | import os
from os.path import dirname, join
from collections import OrderedDict
import pandas as pd
import numpy as np
from bokeh.io import curdoc
from bokeh.layouts import row, widgetbox, column
from bokeh.models import Select, Div, Column, HoverTool, ColumnDataSource, Button, CheckboxButtonGroup
from bokeh.plotting... | mit | -526,584,617,032,010,750 | 36.676786 | 192 | 0.582255 | false | 3.405811 | false | false | false |
devilry/devilry-django | devilry/devilry_qualifiesforexam/tests/test_models.py | 1 | 3089 | # 3rd party imports
from model_bakery import baker
# Django imports
from django import test
from django.core.exceptions import ValidationError
# Devilry imports
from devilry.devilry_qualifiesforexam import models as status_models
class TestStatus(test.TestCase):
def test_notready_no_message(self):
test... | bsd-3-clause | 3,275,388,277,236,497,400 | 48.031746 | 116 | 0.625445 | false | 4.102258 | true | false | false |
tongxindao/shiyanlou | shiyanlou_cs368-195cf5ea3b/2048.py | 1 | 6988 | # _*_coding=UTF-8_*_
import curses
from random import randrange, choice
from collections import defaultdict
letter_codes = [ord(ch) for ch in 'WASDRQwasdrq']
actions = ['Up', 'Left', 'Down', 'Right', 'Restart', 'Exit']
actions_dict = dict(zip(letter_codes, actions * 2))
def get_user_action(keyboard):#用户输入处理,直到获得用户有效... | apache-2.0 | 4,963,654,729,599,915,000 | 32.525773 | 111 | 0.52214 | false | 3.203941 | false | false | false |
jasedit/pymmd | pymmd/mmd.py | 1 | 6415 | #!/usr/bin/env python
"""Interface to the MultiMarkdown parser."""
import os.path
import platform
import ctypes
import ctypes.util
from .download import SHLIB_EXT
from .defaults import DEFAULT_LIBRARY_DIR
_MMD_LIB = None
_LIB_LOCATION = None
def load_mmd():
"""Loads libMultiMarkdown for usage"""
global _MMD... | mit | -3,084,091,377,684,076,000 | 32.763158 | 98 | 0.674981 | false | 3.341146 | false | false | false |
gfcapalbo/connector-woocommerce-1 | connector_woocommerce/model/sale.py | 2 | 13076 | # -*- coding: utf-8 -*-
#
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
# 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 ... | agpl-3.0 | 9,197,941,283,124,446,000 | 33.68435 | 79 | 0.549251 | false | 4.063393 | false | false | false |
breandan/java-algebra-system | examples/suzukiSato_ex1.py | 3 | 1474 | #
# jython examples for jas.
# $Id$
#
import sys;
from jas import PolyRing, QQ, RF
from jas import startLog, terminate
# Suzuki and Sato, ISSAC 2006, example 1
# integral function coefficients
#r = PolyRing( QQ(),"b,a,z,y,x", PolyRing.lex );
#r = PolyRing( RF( PolyRing(QQ(),"a, b",PolyRing.lex) ), "z,y,x", PolyRin... | gpl-2.0 | 5,446,605,200,828,284,000 | 15.021739 | 81 | 0.545455 | false | 2.303125 | false | false | false |
gregglind/firefox-pulse | analyze-pulse-response-rate-ui-test/pulse_ui_setup_R.py | 1 | 7036 | #! /usr/bin/env python
from __future__ import division, print_function
import pdb
import fileinput
try:
import ujson as json
except:
import json
import logging
logging.root.setLevel(20)
from collections import defaultdict
import codecs
import re
import sys
import csv
import time
#UTF8Writer = codecs.getwrite... | mpl-2.0 | 584,574,881,337,060,000 | 23.178694 | 118 | 0.589255 | false | 3.103661 | false | false | false |
maplion/SPEED | speedloader.py | 1 | 5572 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module for loading data from files
GitHub repository: https://github.com/maplion/SPEED
@author: Ryan Dammrose aka MapLion
"""
import sys
from testcalculations import time
__author__ = "Ryan Dammrose"
__copyright__ = "Copyright 2015"
__license__ = "MIT"
class Speed... | mit | -8,405,817,655,329,450,000 | 31.401163 | 111 | 0.596734 | false | 4.27957 | false | false | false |
syncloud/redirect | integration/smtp.py | 1 | 1317 |
import datetime
import json
import quopri
import time
from os.path import join
from urllib.parse import urlparse
import requests
def emails(artifact_dir=None):
attempts = 1
while attempts < 10:
results = try_emails(artifact_dir)
if len(results) > 0:
return results
attemp... | gpl-3.0 | 3,543,082,194,730,875,400 | 24.326923 | 117 | 0.654518 | false | 3.578804 | false | false | false |
bgalehouse/grr | lib/artifact_lib.py | 2 | 21769 | #!/usr/bin/env python
"""Library for processing of artifacts.
This file contains non-GRR specific pieces of artifact processing and is
intended to end up as an independent library.
"""
import itertools
import json
import os
import re
import yaml
import logging
from grr.lib import artifact_registry
from grr.lib impo... | apache-2.0 | -1,889,629,521,013,371,400 | 36.085179 | 80 | 0.657219 | false | 4.023845 | false | false | false |
samedder/azure-cli | src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py | 3 | 50631 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | 2,678,951,948,769,391,600 | 66.688503 | 413 | 0.687958 | false | 3.851145 | false | false | false |
Imaginashion/cloud-vision | .fr-d0BNfn/django-jquery-file-upload/venv/bin/enhancer.py | 1 | 1660 | #!/home/ssm/Documents/projects/djangoProjects/october/django-jquery-file-upload/venv/bin/python3
#
# The Python Imaging Library
# $Id$
#
# this demo script creates four windows containing an image and a slider.
# drag the slider to modify the image.
#
try:
from tkinter import Tk, Toplevel, Frame, Label, Scale, HOR... | mit | -4,032,921,333,834,241,500 | 25.349206 | 96 | 0.648193 | false | 3.102804 | false | false | false |
mfnch/pyrtist | pyrtist/lib2deep/lathe.py | 1 | 3218 | # Copyright (C) 2017 Matteo Franchin
#
# This file is part of Pyrtist.
# Pyrtist 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 late... | lgpl-2.1 | -7,414,922,622,391,703,000 | 33.234043 | 79 | 0.633934 | false | 3.176703 | false | false | false |
axi0mX/ipwndfu | image3_24Kpwn.py | 1 | 2668 | # Credit: This file is based on 24Kpwn exploit (segment overflow) by chronic, CPICH, ius, MuscleNerd, Planetbeing, pod2g, posixninja, et al.
import struct
import image3
def exploit(img3, securerom):
with open('bin/24Kpwn-shellcode.bin', 'rb') as f:
shellcode = f.read()
MAX_SHELLCODE_LENGTH = 1024
... | gpl-3.0 | -1,545,745,744,943,488,300 | 48.407407 | 140 | 0.611319 | false | 2.832272 | false | false | false |
ufieeehw/IEEE2014 | ros/ieee2014_tf_broadcaster/scripts/ieee2014_tf_broadcaster.py | 1 | 2196 | #!/usr/bin/env python
import roslib
roslib.load_manifest('ieee2014_tf_broadcaster')
import rospy
import tf
from geometry_msgs.msg import PoseStamped, Transform
from dynamixel_msgs.msg import JointState
last_pan_position = 0.0
last_tilt_position = 0.0
tf_broad = tf.TransformBroadcaster()
def handle_lidar_pose(msg)... | gpl-2.0 | -4,531,860,027,708,252,700 | 36.220339 | 110 | 0.695811 | false | 3.141631 | false | false | false |
ioshchepkov/pygeoid | pygeoid/coordinates/utils.py | 1 | 1110 |
import numpy as np
import astropy.units as u
def spherical_distance(lat1: u.deg, lon1: u.deg, lat2: u.deg, lon2: u.deg):
"""Return distance on the sphere.
Returns distances between initial
points (specified by `lat1`, `lon1`) and terminus points (specified by
`lat1`, `lon2`) as a distance matrix.
... | mit | 121,855,407,209,237,380 | 25.428571 | 75 | 0.631532 | false | 3.126761 | false | false | false |
bdorney/CMS_GEM_Analysis_Framework | python/computeClustQLandaus.py | 1 | 2552 | #!/afs/cern.ch/sw/lcg/external/Python/2.7.4/x86_64-slc6-gcc48-opt/bin/python2.7
# -*- coding: utf-8 -*-
#"""
# Created on Thursday April 20 17:21:01 2017
#
# @author: Brian L. Dorney
#
# Example call:
#
# python2.7 python/computeClustQLandaus.py --file=$PWD/data/TestBeam2013_FNAL_ClustCharge/C... | gpl-3.0 | -925,470,031,893,977,200 | 34.943662 | 237 | 0.648511 | false | 3.119804 | false | false | false |
ehabkost/virt-test | virttest/qemu_vm.py | 1 | 121472 | """
Utility classes and functions to handle Virtual Machine creation using qemu.
@copyright: 2008-2009 Red Hat Inc.
"""
import time, os, logging, fcntl, re, commands, errno
from autotest.client.shared import error
from autotest.client import utils
import utils_misc, virt_vm, test_setup, storage, qemu_monitor, aexpect... | gpl-2.0 | 8,993,138,020,382,045,000 | 41.207088 | 90 | 0.498378 | false | 4.125386 | false | false | false |
NickSanzotta/WiFiSuite | wifisuite/helpers/deauthentication.py | 1 | 1125 | # Module: deauth
# Description: Helper - Performs Broadcast based Deauthentication
# Author: Nick Sanzotta
# Contributors:
# Version: v 1.09132017
try:
import os, sys, threading
from scapy.all import *
from theme import *
except Exception as e:
print('\n [!] Error %s' % (e))
class deAuth(threading.Thread):
def _... | mit | 8,923,978,018,628,556,000 | 37.793103 | 138 | 0.723556 | false | 2.877238 | false | false | false |
revolutionarysystems/merge | merge/mailTest.py | 1 | 1453 | # Import smtplib for the actual sending function
import smtplib
# Import the email modules we'll need
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
def emailDoc(baseFileName, me, you, subject, credentials):
# Open a plain text file for reading. For this example, ass... | bsd-3-clause | -5,446,254,296,498,394,000 | 31.022727 | 125 | 0.700619 | false | 3.179431 | false | false | false |
HumanExposure/factotum | dashboard/views/ajax.py | 1 | 23843 | from urllib.parse import urlencode
from django.urls import reverse
from django.views import View
from django.views.generic.detail import SingleObjectMixin
from django_datatables_view.base_datatable_view import BaseDatatableView
from django.http import JsonResponse
from django.db.models import Q, Count, Subquery, Case,... | gpl-3.0 | -7,442,149,805,627,097,000 | 34.27071 | 141 | 0.545275 | false | 3.974496 | false | false | false |
cgwire/zou | zou/app/blueprints/source/kitsu.py | 1 | 4464 | from sqlalchemy.exc import IntegrityError
from flask import request
from flask_restful import Resource
from flask_jwt_extended import jwt_required
from zou.app.models.entity import Entity, EntityLink
from zou.app.models.project import Project
from zou.app.models.task import Task
from zou.app.mixin import ArgsMixin
fr... | agpl-3.0 | 4,667,412,795,062,725,000 | 30.659574 | 76 | 0.610663 | false | 3.957447 | false | false | false |
Jailander/aaf_deployment | aaf_walking_group/scripts/interface_demo.py | 4 | 1169 | #! /usr/bin/env python
import rospy
import actionlib
from aaf_walking_group.msg import InterfaceAction, InterfaceGoal
class GuideInterfaceTesting(object):
def __init__(self):
rospy.loginfo("Creating interface client.")
self._client = actionlib.SimpleActionClient(
'interface_server',... | mit | -5,294,505,008,608,688,000 | 26.833333 | 80 | 0.573995 | false | 4.003425 | true | false | false |
pedro2555/vatsim-status-proxy | manage.py | 1 | 2100 | #!/usr/bin/env python
"""
VATSIM Status Proxy
Copyright (C) 2017 - 2019 Pedro Rodrigues <prodrigues1990@gmail.com>
This file is part of VATSIM Status Proxy.
VATSIM Status Proxy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fr... | gpl-2.0 | 6,495,291,481,394,938,000 | 30.307692 | 96 | 0.644762 | false | 3.471074 | true | false | false |
TomWerner/AlumniMentoring | mentoring/views/views.py | 1 | 8812 | import datetime
import logging
from django.conf import settings
from django.contrib import messages
from django.core.mail import EmailMultiAlternatives
from django.forms.utils import ErrorDict
from django.shortcuts import render, redirect, get_object_or_404
from django.template.loader import render_to_string
from men... | mit | -2,330,475,231,486,329,000 | 40.17757 | 154 | 0.631298 | false | 3.856455 | false | false | false |
gencer/sentry | src/sentry/api/endpoints/organization_integrations.py | 1 | 1118 | from __future__ import absolute_import
from sentry import features
from sentry.api.bases.organization import (
OrganizationEndpoint, OrganizationIntegrationsPermission
)
from sentry.api.paginator import OffsetPaginator
from sentry.api.serializers import serialize
from sentry.models import Integration
class Organ... | bsd-3-clause | 445,086,809,815,370,050 | 33.9375 | 97 | 0.697674 | false | 4.737288 | false | false | false |
BechtelCIRT/cassava | cassava_scrypture/VirusTotal/virustotal_file.py | 2 | 1039 | """
VirusTotal file lookup (by SHA256)
"""
import cassava
from scrypture import webapi
class WebAPI(webapi.WebAPI):
domains = webapi.list_input('Domains and IPs (Newline Delimited)')
submit_button = webapi.submit_button('Totally!')
def run(self, form_input):
domains = form_input['domains']
... | mit | -654,778,978,262,805,500 | 27.861111 | 81 | 0.475457 | false | 4.058594 | false | false | false |
3324fr/spinalcordtoolbox | dev/wt_scripts/sct_manage_dicom.py | 2 | 5113 | #!/usr/bin/env python
#########################################################################################
# Convert dicom images into nifti format with dcm2nii
#
# Only for montreal data (anatomical, zoom, dezoom)
# For nonzoom, merge b0 and dwi
#
# USAGE
# --------------------------------------------------------... | mit | 3,535,762,648,911,142,400 | 31.987097 | 94 | 0.55134 | false | 3.108207 | false | false | false |
basilisk-pm/basilisk | basilisk_pm/profiles/views.py | 1 | 7089 | from django.shortcuts import render
from profiles.forms import UserForm, UserProfileForm, EditForm, SnippetForm
from django.contrib.auth import authenticate, login
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
... | gpl-3.0 | -7,311,834,229,543,352,000 | 39.050847 | 126 | 0.64325 | false | 4.430625 | false | false | false |
blueboxjesse/giftwrap | giftwrap/builders/docker_builder.py | 1 | 6181 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2014, Craig Tracey <craigtracey@gmail.com>
# 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-2.0 | 3,780,894,797,305,095,000 | 35.146199 | 79 | 0.560751 | false | 3.995475 | false | false | false |
dims/heat | heat_integrationtests/functional/test_remote_stack.py | 2 | 5598 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | -6,674,250,883,696,162,000 | 38.985714 | 79 | 0.653626 | false | 3.790115 | true | false | false |
tjcsl/cslbot | cslbot/commands/jargon.py | 1 | 3355 | # -*- coding: utf-8 -*-
# Copyright (C) 2013-2018 Samuel Damashek, Peter Foley, James Forcier, Srijay Kasturi, Reed Koser, Christopher Reffett, and Tris Wilson
#
# 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 Softw... | gpl-2.0 | -624,025,010,017,376,400 | 47.623188 | 150 | 0.621162 | false | 2.990196 | false | false | false |
vacjaliu/meteor | examples/unfinished/python-ddp-client/ddp-client.py | 169 | 10313 | #!/usr/bin/env python2.7
import sys
import json
import time
import argparse
import thread
import threading
import traceback
from ws4py.client.threadedclient import WebSocketClient
from cmd import Cmd
DDP_VERSIONS = ["pre1"]
def log(msg):
"""A shortcut to write to the standard error file descriptor"""
sys.s... | mit | 7,940,578,194,344,622,000 | 32.702614 | 79 | 0.518375 | false | 4.306054 | false | false | false |
DragonSA/portbuilder | libpb/port/__init__.py | 1 | 1355 | """FreeBSD Ports."""
from __future__ import absolute_import
from libpb import event, mk, signal
__all__ = ["get_port", "get_ports", "ports"]
class PortCache(object):
"""Caches created ports."""
def __init__(self):
"""Initialise port cache."""
self._ports = {}
self._waiters = {}
... | bsd-2-clause | -7,394,961,145,852,604,000 | 23.196429 | 59 | 0.521771 | false | 3.916185 | false | false | false |
cameronlai/ml-class-python | skeletons/ex3/ex3_nn_sklearn.py | 1 | 2814 | import numpy as np
import matplotlib.pyplot as plt
import scipy.io as sio
from sklearn.neural_network import MLPClassifier
from ex3 import *
## Machine Learning Online Class - Exercise 3: Neural Network - One-vs-all with sci-kit learn
# Instructions
# ------------
#
# This file contains code that helps you get st... | mit | -2,505,108,438,777,822,000 | 30.266667 | 134 | 0.61194 | false | 3.897507 | false | false | false |
drmrd/ansible | lib/ansible/plugins/action/patch.py | 107 | 2644 | # (c) 2015, Brian Coca <briancoca+dev@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | gpl-3.0 | -5,221,499,544,707,785,000 | 35.722222 | 110 | 0.647504 | false | 4.061444 | false | false | false |
The-Compiler/qutebrowser | scripts/dev/src2asciidoc.py | 1 | 20515 | #!/usr/bin/env python3
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | gpl-3.0 | -1,608,575,191,325,554,000 | 34.740418 | 79 | 0.583622 | false | 3.932337 | true | false | false |
sivertkh/gtrackcore | gtrackcore/test/track_operations/operations/CoverageTest.py | 1 | 3293 |
import unittest
import numpy as np
from collections import OrderedDict
from gtrackcore.track_operations.operations.Coverage import Coverage
from gtrackcore.metadata import GenomeInfo
from gtrackcore.track.core.GenomeRegion import GenomeRegion
from gtrackcore.track_operations.TrackContents import TrackContents
# Test... | gpl-3.0 | 8,046,570,049,140,780,000 | 30.970874 | 97 | 0.579107 | false | 4.260026 | true | false | false |
Bartzi/stn-ocr | mxnet/networks/svhn.py | 1 | 10495 | import mxnet as mx
from networks.text_rec import LocalizationNetwork
from symbols.lstm import lstm_unroll
class SVHNLocalizationNetwork:
@staticmethod
def get_network(data, source_shape, num_timesteps, num_rnn_layers=1, blstm=False, attr={'lr_mult': '0.01'}):
h = mx.symbol.Convolution(data=data, ke... | gpl-3.0 | -2,347,947,455,125,708,000 | 51.48 | 119 | 0.601906 | false | 2.971404 | false | false | false |
jrper/fluidity | libspud/diamond/diamond/pygtkconsole.py | 8 | 9371 | #!/usr/bin/env python
# GTK Interactive Console
# (C) 2003, Jon Anderson
# (C) 2007 Imperial College London and others.
# Please see the AUTHORS file for a full list of contributors.
# See www.python.org/2.2/license.htm for
# license details.
#
import gtk
import gtk.gdk
import code
import sys
import pango
impo... | lgpl-2.1 | -1,325,748,204,520,810,800 | 27.141141 | 106 | 0.640593 | false | 3.319518 | false | false | false |
iver56/cross-adaptive-audio | individual.py | 1 | 3636 | import os
import settings
import json
import neural_network_representation
import hashlib
import experiment
import pickle # TODO: try cPickle. it might be faster.
class Individual(object):
def __init__(self, genotype, neural_mode, effect):
self.genotype = genotype
self.output_sound = None
... | gpl-3.0 | -7,926,580,559,237,891,000 | 33.628571 | 101 | 0.606711 | false | 4.155429 | false | false | false |
willemarcel/vaivem | vaivem/emprestimo/admin.py | 1 | 9963 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2010 Wille Marcel Lima Malheiro and contributors
#
# This file is part of VaiVem.
#
# VaiVem is free software under terms of the GNU Affero General Public
# License version 3 (AGPLv3) as published by the Free
# Software Foundation. See the file README for copying condition... | agpl-3.0 | -1,824,314,248,886,351,400 | 47.710784 | 236 | 0.665895 | false | 3.3223 | false | false | false |
benrudolph/commcare-hq | corehq/apps/userreports/views.py | 1 | 18465 | import json
import os
import tempfile
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse
from django.http.response import Http404
from django.shortcuts import render
from django.utils.decorators import method_decorator
from corehq... | bsd-3-clause | -5,840,701,629,938,108,000 | 36.004008 | 113 | 0.666613 | false | 3.885732 | true | false | false |
bitmazk/django-multilingual-events | multilingual_events/models.py | 1 | 10433 | """Models for the ``multilingual_events`` app."""
from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Q
from django.utils import timezone
from django.utils.translation import get_language, ugettext_lazy as _
from cms.models imp... | mit | 7,305,657,168,966,712,000 | 25.614796 | 79 | 0.576057 | false | 4.115582 | false | false | false |
arienchen/pytibrv | pytibrv/TibrvDQ.py | 1 | 4259 | ##
# pytibrv/TibrvDQ.py
# TIBRV Library for PYTHON
#
#
# LAST MODIFIED : V1.0 20170222 ARIEN arien.chen@gmail.com
#
# DESCRIPTIONS
# -----------------------------------------------------------------------------
#
#
# CHANGED LOGS
# -----------------------------------------------------------------------------
# 201702... | bsd-3-clause | 5,821,199,646,913,962,000 | 28.372414 | 107 | 0.588166 | false | 3.637062 | false | false | false |
OpenBMP/openbmp-mysql-consumer | cron_scripts/gen-whois/dbAccess.py | 1 | 5797 | #!/usr/bin/env python
"""
Copyright (c) 2013-2015 Cisco Systems, Inc. and others. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10... | epl-1.0 | -7,797,106,118,746,572,000 | 30.335135 | 97 | 0.56098 | false | 4.736111 | false | false | false |
anselmbradford/energywise | Code/query_temps.py | 2 | 6414 | # Lets try with temperatured
import urllib2
import json
import numpy as np
import pytz
import datetime as rdatetime
import time
from datetime import datetime
from dateutil import tz
from utils import fill_in, qdump, qload
tz_used = pytz.timezone("US/Central")
only_one_year = True
key = 'http://api.wunderground... | mit | -7,318,284,098,173,548,000 | 42.337838 | 163 | 0.544902 | false | 3.097055 | false | false | false |
tisnik/fabric8-analytics-common | integration-tests/features/steps/three_scale_preview.py | 1 | 7255 | """Tests for stack-analyses, component-analyses, submit-feedback API via 3scale."""
import requests
import os
import time
from behave import when, then, given
from urllib.parse import urljoin
from src.parsing import parse_token_clause
from src.stack_analysis_common import contains_alternate_node
def threescale_previ... | apache-2.0 | -3,687,299,044,266,431,500 | 42.704819 | 96 | 0.653894 | false | 3.911051 | false | false | false |
ethertricity/bluesky | plugins/opensky.py | 1 | 6238 | """A plugin for playing air traffic from the OpenSky Network.
The plugin gets current traffic from the OpenSky Network and makes aircraft
move.
The OpenSky Python API allows for a number of unauthenticated requests. If you
feed the network, you are allowed an unlimited number of requests for the data
you feed. If you... | gpl-3.0 | 7,533,456,566,240,675,000 | 32.180851 | 163 | 0.588811 | false | 3.440706 | false | false | false |
leonjza/weblick | app/views.py | 1 | 4202 | # The MIT License (MIT)
#
# Copyright (c) 2015 Leon Jacobs
#
# 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, modif... | mit | 1,337,717,966,981,567,700 | 32.357143 | 80 | 0.650405 | false | 3.761862 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-datafactory/azure/mgmt/datafactory/models/self_hosted_integration_runtime_node.py | 1 | 6462 | # 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 | -3,712,628,270,846,210,000 | 45.489209 | 85 | 0.638657 | false | 4.105464 | false | false | false |
lumidify/BobGUI | FileManager.py | 1 | 4055 | import os
import sys
import pygame
import locale
import functools
from pygame.locals import *
pygame.init()
pygame.display.set_caption("Choose a file...")
screen = pygame.display.set_mode((1000, 500))
font = pygame.font.SysFont(None, 20)
class Button():
def __init__(self, text, command, left, top):
self.nor... | lgpl-3.0 | 1,738,958,700,696,617,200 | 35.863636 | 131 | 0.576819 | false | 3.786181 | false | false | false |
Rude-Enterprises/WDL-DiscordBot | cogs/pickups.py | 1 | 1838 | import asyncio
from discord.ext import commands
player_set = set()
players_for_priv = 6
class Pickups():
"""Pickups - all commands related to Pickup-Game (PUG) Management."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, ignore_extra=False)
async def add(self, c... | gpl-3.0 | -2,536,100,653,316,649,000 | 32.418182 | 106 | 0.590316 | false | 3.611002 | false | false | false |
ralphbean/bugwarrior | tests/test_taiga.py | 1 | 2707 | from builtins import next
import responses
from bugwarrior.services.taiga import TaigaService
from .base import ServiceTest, AbstractServiceTest
class TestTaigaIssue(AbstractServiceTest, ServiceTest):
SERVICE_CONFIG = {
'taiga.base_uri': 'https://one',
'taiga.auth_token': 'two',
}
record... | gpl-3.0 | 7,983,276,653,316,967,000 | 27.797872 | 92 | 0.495013 | false | 3.872675 | true | false | false |
a-campbell/blaze_loader | blaze_loader/blaze_loader.py | 1 | 4894 | import blaze as bz
from sqlalchemy import select
import json
import os
class LazyAttr(object):
def __init__(self, get):
self._get = get
self._cache = {}
def __get__(self, instance, owner):
if instance is None:
return self
try:
return self._cache[insta... | mit | -6,796,080,154,770,423,000 | 29.5875 | 79 | 0.504087 | false | 4.133446 | true | false | false |
phoebe-project/phoebe2-docs | 2.1/tutorials/pblum.py | 1 | 10384 | #!/usr/bin/env python
# coding: utf-8
# Passband Luminosity
# ============================
#
# Setup
# -----------------------------
# Let's first make sure we have the latest version of PHOEBE 2.1 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the lat... | gpl-3.0 | 3,787,973,816,124,750,000 | 23.205128 | 510 | 0.704545 | false | 3.095082 | false | false | false |
rustychris/stompy | examples/dfm_dwaq/basic_test.py | 1 | 7108 | """
Example of scripting DFM and DWAQ
This script runs a simple DFM domain (square cartesian grid, with
oscillating flow boundary in one corner.), and then a DWAQ dye
release simulation.
sets up a tracer run with a spatially-variable initial
condition and runs it for the duration of the hydro.
"""
import os
import n... | mit | 452,787,654,910,288,260 | 30.874439 | 111 | 0.67206 | false | 3.020824 | false | false | false |
CeltonMcGrath/TACTIC | 3rd_party/CherryPy/cherrypy/test/modfcgid.py | 6 | 4258 | """Wrapper for mod_fcgid, for use as a CherryPy HTTP server when testing.
To autostart fcgid, the "apache" executable or script must be
on your system path, or you must override the global APACHE_PATH.
On some platforms, "apache" may be called "apachectl", "apache2ctl",
or "httpd"--create a symlink to them if needed.
... | epl-1.0 | -2,568,828,127,213,745,700 | 33.33871 | 77 | 0.662987 | false | 3.651801 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.