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 |
|---|---|---|---|---|---|---|---|---|---|---|
insiderr/insiderr-app | app/widgets/items/comment.py | 1 | 3202 | from .placeholder import Placeholder
from .template import TemplateItem, ItemCallback
from widgets.layoutint import GridLayoutInt
from kivy.properties import StringProperty, ObjectProperty, NumericProperty, AliasProperty, OptionProperty
from utilities.formatting import get_formatted_when
from kivy.logger import Logger
... | gpl-3.0 | -1,765,818,321,988,416,800 | 32.705263 | 106 | 0.639913 | false |
shobhitmishra/CodingProblems | LeetCode/Session3/SerializeDeserializeBST.py | 1 | 1582 | import sys
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Codec:
def serialize(self, root):
result = []
self.serializeHelper(root, result)
result.reverse()
return ",".join(result)
def serializeHelper(self... | mit | 1,336,546,976,220,845,000 | 25.383333 | 71 | 0.616941 | false |
agoose77/hivesystem | manual/movingpanda/panda-11d.py | 1 | 6687 | import dragonfly
import dragonfly.pandahive
import bee
from bee import connect
import math, functools
from panda3d.core import NodePath
import dragonfly.scene.unbound, dragonfly.scene.bound
import dragonfly.std
import dragonfly.io
import dragonfly.canvas
import Spyder
# ## random matrix generator
from random impor... | bsd-2-clause | 210,151,778,070,107,100 | 27.948052 | 109 | 0.649469 | false |
Liuchang0812/COC_dashboard | src/app.py | 1 | 1216 | __author__ = 'liuchang'
from tornado.web import RequestHandler, Application
import tornado
from tornado import gen
from tornado.options import define
import tornado.options
import os
from core import clan
class IndexHandler(RequestHandler):
def get(self, *args, **kwargs):
return self.render('index.html'... | apache-2.0 | -5,759,482,561,828,794,000 | 25.456522 | 81 | 0.603618 | false |
awacha/cct | cct/processing/mainwindow/projectdialog/projectdialog.py | 1 | 3004 | import os
import appdirs
from PyQt5 import QtWidgets, QtCore, QtGui
from .projectdialog_ui import Ui_Form
class ProjectDialog(QtWidgets.QWidget, Ui_Form):
projectSelected = QtCore.pyqtSignal(str)
def __init__(self, mainwindow: QtWidgets.QWidget):
self.mainwindow = mainwindow
super().__init_... | bsd-3-clause | -4,091,614,986,864,855,600 | 33.930233 | 107 | 0.601198 | false |
crossgovernmentservices/sue-my-brother | tests/test_authentication.py | 1 | 3591 | import mock
import pytest
import time
from datetime import datetime
from flask import url_for
from mock import Mock, patch
from app.main.models import User, Suit
from app.main.views import authenticated_within
max_age = 50
mock_time_more_than_max_age = Mock()
mock_time_more_than_max_age.return_value = (
time.mk... | mit | -7,666,764,198,254,559,000 | 28.677686 | 77 | 0.661376 | false |
osamja/local_sockets | app/main.py | 1 | 4410 | from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from Tkinter import *
from tkFileDialog import askopenfilenames
from ip import get_ip_addr
import time
from threading import Thread
""" Display landing webpage at IP_ADDR:PORT and allow download of PATH file. """
class MyHandler(BaseHTTPRequestHandler):
... | mit | 5,952,390,639,927,118,000 | 38.026549 | 91 | 0.582313 | false |
josenavas/labman | labman/db/equipment.py | 1 | 6002 | # ----------------------------------------------------------------------------
# Copyright (c) 2017-, labman development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | bsd-3-clause | -6,006,356,591,627,091,000 | 32.909605 | 79 | 0.53099 | false |
irl/gajim | src/session.py | 1 | 21949 | # -*- coding:utf-8 -*-
## src/session.py
##
## Copyright (C) 2008-2014 Yann Leboulanger <asterix AT lagaule.org>
## Copyright (C) 2008 Brendan Taylor <whateley AT gmail.com>
## Jonathan Schleifer <js-gajim AT webkeks.org>
## Stephan Erb <steve-e AT h3c.de>
##
## This file is part o... | gpl-3.0 | 8,008,322,647,868,001,000 | 39.49631 | 85 | 0.537245 | false |
pooler/electrum-ltc | electrum_ltc/gui/qt/qrcodewidget.py | 1 | 4704 | import qrcode
from PyQt5.QtGui import QColor, QPen
import PyQt5.QtGui as QtGui
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
QApplication, QVBoxLayout, QTextEdit, QHBoxLayout, QPushButton, QWidget,
QFileDialog,
)
from electrum_ltc.i18n import _
from electrum_ltc.simple_config import SimpleConfig
... | mit | 2,888,548,823,002,609,700 | 26.83432 | 76 | 0.528061 | false |
shinrisama/Jp | JP.py | 1 | 262490 | # coding: utf-8
import wx
import dataset
import xlsxwriter
from xlsxwriter.workbook import Workbook
import xlwt
import tagtool
import codecs
import csv
import csvkit
from stuf import stuf
# import the newly created GUI file
import JukuPlanner
import subprocess
import os
import sys
import glob
import funzioni
import cal... | gpl-3.0 | -7,033,408,689,322,820,000 | 54.919572 | 237 | 0.568567 | false |
MaxTyutyunnikov/lino | obsolete/voc/makesql.py | 1 | 3136 | #coding: utf-8
## Copyright 2008-2009 Luc Saffre.
## This file is part of the Lino project.
## Lino 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) a... | gpl-3.0 | 2,935,300,112,210,750,000 | 26.699115 | 91 | 0.601917 | false |
jandom/rdkit | rdkit/Chem/Draw/qtCanvas.py | 1 | 3513 | # $Id$
#
# Copyright (C) 2014 Seiji Matsuoka
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
from rdkit.Chem.Draw.canvasbase import CanvasBase
f... | bsd-3-clause | 2,263,329,650,974,698,000 | 35.59375 | 98 | 0.63877 | false |
SKA-ScienceDataProcessor/integration-prototype | sip/execution_control/docker_api/sip_docker_swarm/docker_swarm_client.py | 1 | 21591 | # -*- coding: utf-8 -*-
"""Docker Swarm Client API."""
from typing import List
import re
import os
import logging
import copy
import docker
import yaml
LOG = logging.getLogger('sip.ec.docker_swarm_client')
class DockerSwarmClient:
"""Docker Swarm Client Interface."""
def __init__(self):
"""Initial... | bsd-3-clause | 469,997,558,959,020,900 | 30.798233 | 79 | 0.519105 | false |
AlexPereverzyev/spidy | spidy/document/web_client.py | 1 | 3066 |
''' High-level HTTP communication interface. '''
import re
import codecs
import httplib
from spidy.common.errors import WebException
WEB_URL_PATTERN = re.compile('''([a-z]{3,9}:\/\/|[a-z]{3,9}:\/\/www\.|www\.)([\w.-]+)((?:\/[\w\/:@\-_~.%!$&'()*+=,;]*)?(?:\?[\w\-\+=&;%@._]*)?(?:#[\w\/:?@\-_~.%!$&'()*+=,... | bsd-3-clause | -5,077,729,482,255,502,000 | 34.094118 | 184 | 0.468037 | false |
jwmatthews/r3 | cds/cds_api/test/unit/managers/test_cds.py | 1 | 2640 | import logging
import os
import sys
from mongoengine.errors import NotUniqueError
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)) + "/../")
import base
from pulp_cds.api.managers.cds import CDSManager
log = logging.getLogger(__name__)
class TestCDSManager(base.BaseTestCase):
def setUp(self):
... | gpl-2.0 | 2,412,351,400,109,083,000 | 28.662921 | 90 | 0.642045 | false |
Belgingur/WrfUtils | PointForecast/bilinear_interpolation.py | 1 | 5510 | #!/usr/bin/env python
"""
Functions to perform bilinear interpolation based only on the station lon/lat and wrfout file.
"""
import math
import logging
import netCDF4
import numpy as np
LOG = logging.getLogger('belgingur.bilinear')
EARTH_RADIUS_M = 6378168
class TargetOutsideGridError(ValueError):
""" Rai... | lgpl-3.0 | 4,345,679,591,206,021,600 | 33.654088 | 115 | 0.592015 | false |
weibohit/tools | unittest_serial.py | 1 | 1764 | from driver.serial_impl import SerialImpl
from utility.log import InitLogging
from utility.log import VLOG
import optparse
import time
import sys
def Init():
ser = SerialImpl()
ser.LoopBackTest()
ser.Close()
def ContinueSend3(ser, seconds):
timeout = time.time() + seconds
while time.time() < timeout:
ti... | mit | -8,875,937,484,170,843,000 | 25.727273 | 76 | 0.651361 | false |
opencord/voltha | voltha/extensions/omci/omci_messages.py | 1 | 18479 | #
# Copyright 2017 the original author or 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 applicable law or... | apache-2.0 | 2,495,795,283,369,438,700 | 30.320339 | 104 | 0.616159 | false |
venthur/mushu | libmushu/driver/gtec.py | 1 | 10764 | #!/usb/bin/env python
# gtec.py
# Copyright (C) 2013 Bastian Venthur
#
# 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 version.... | gpl-2.0 | -3,668,518,099,025,746,000 | 35.364865 | 129 | 0.571906 | false |
raymontag/keepassc | setup.py | 1 | 1140 | from os import mkdir, stat
from stat import ST_MODE
from distutils.core import setup
setup(name = "keepassc",
version = "1.8.2",
author = "Karsten-Kai König, Scott Hansen",
author_email = "grayfox@outerhaven.de",
url = "http://raymontag.github.com/keepassc",
download_url = "https://githu... | isc | 1,510,634,092,117,000,700 | 44.56 | 96 | 0.615452 | false |
askbow/cloaked-octo-ironman | google-python-exercises/hello.py | 1 | 1089 | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""A tiny Python program to check that Python is working.
Try running this program from t... | bsd-2-clause | -7,344,168,670,453,875,000 | 32 | 133 | 0.719927 | false |
ericholscher/fabric | setup.py | 1 | 2369 | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from fabric.version import get_version
readme = open('README').read()
long_description = """
To find out what's new in this version of Fabric, please see `the changelog
<http://docs.fabfile.org/changes/%s.html>`_.
You can also install t... | bsd-2-clause | 1,664,655,176,561,810,400 | 33.333333 | 198 | 0.62558 | false |
p0cisk/Bookshelf | routings.py | 1 | 4987 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from flask import Blueprint, jsonify, render_template, redirect, request
from models import Books, Authors, Stories, AuthorsStories
from peewee import fn
from decorators import count
from playhouse.shortcuts import model_to_dict
from collections import defaultdict
mod_routing... | mit | 1,332,563,994,120,331,300 | 29.975155 | 97 | 0.601765 | false |
kawamuray/ganeti | lib/tools/burnin.py | 1 | 42637 | #!/usr/bin/python
#
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
#
# 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)... | gpl-2.0 | -6,059,015,601,982,323,000 | 35.44188 | 80 | 0.594038 | false |
aaaler/k9 | k9d/mpu6050/examples/6axis_dmp.py | 1 | 2719 | # coding=utf-8
import math
import smbus
import mpu6050
from time import time
# Sensor initialization
mpu = mpu6050.MPU6050(
address=mpu6050.MPU6050.MPU6050_DEFAULT_ADDRESS,
bus=smbus.SMBus(1))
mpu.dmpInitialize()
mpu.setDMPEnabled(True)
# get expected DMP packet size for later comparison
packetSize = mpu.dmpG... | lgpl-3.0 | 2,685,161,083,789,600,000 | 25.656863 | 77 | 0.545421 | false |
vim-scripts/TeX-9 | ftplugin/tex_nine/evince_dbus.py | 1 | 5753 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of the Gedit Synctex plugin.
#
# Copyright (C) 2010 Jose Aliste <jose.aliste@gmail.com>
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public Licence as published by the Free Software
# Found... | gpl-3.0 | 6,099,572,603,743,671,000 | 36.357143 | 105 | 0.591344 | false |
ocordes/arctic | doc/source/conf.py | 1 | 9412 | # -*- coding: utf-8 -*-
#
# acs-cte documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 20 10:46:26 2013.
#
# 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... | lgpl-3.0 | 6,446,165,862,263,057,000 | 31.567474 | 215 | 0.703676 | false |
don-systems/management-system | mgmtsystem_nonconformity/__manifest__.py | 1 | 2251 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under... | agpl-3.0 | -5,128,717,417,023,612,000 | 39.927273 | 79 | 0.617503 | false |
treycucco/pxp | pxp/stdlib/math.py | 1 | 4465 | import math
from decimal import Decimal
from pxp.exception import FunctionError
from pxp.function import FunctionArg, FunctionList, InjectedFunction
from pxp.stdlib.types import number_t, boolean_t
def math_abs(resolver, value):
"""Returns the absolute value of value."""
val = resolver.resolve(value)
return va... | bsd-3-clause | -4,806,091,900,588,177,000 | 33.882813 | 135 | 0.701904 | false |
kpreid/shinysdr | shinysdr/i/network/test_audio_http.py | 1 | 6035 | # -*- coding: utf-8 -*-
# Copyright 2018 Kevin Reid and the ShinySDR contributors
#
# This file is part of ShinySDR.
#
# ShinySDR 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 Licen... | gpl-3.0 | 1,066,103,399,301,635,100 | 38.966887 | 346 | 0.688815 | false |
Mzero2010/MaxZone | plugin.video.Mzero/channels/tengourl.py | 1 | 1956 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# Mzero - XBMC Plugin
# Canal para ver un vídeo conociendo su URL
# http://blog.tvalacarta.info/plugin-xbmc/Mzero/
#------------------------------------------------------------
from core import config
from core import logger
from cor... | gpl-3.0 | -6,197,162,499,388,738,000 | 35.018519 | 137 | 0.63599 | false |
noironetworks/horizon | openstack_dashboard/dashboards/project/volume_groups/forms.py | 1 | 7723 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | 5,956,005,950,523,606,000 | 38.005051 | 79 | 0.533083 | false |
fifengine/fifengine-demos | shooter/scripts/ships/enemies.py | 1 | 6693 | # -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2013 by the FIFE team
# http://www.fifengine.net
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#... | lgpl-2.1 | 8,287,204,922,065,141,000 | 26.097166 | 85 | 0.676827 | false |
NitinBhaskar/mbed | workspace_tools/tests.py | 1 | 39585 | """
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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 | -1,732,097,689,878,460,400 | 36.34434 | 131 | 0.538285 | false |
semiautomaticgit/SemiAutomaticClassificationPlugin | semiautomaticclassificationplugin.py | 1 | 86616 | # -*- coding: utf-8 -*-
'''
/**************************************************************************************************************************
SemiAutomaticClassificationPlugin
The Semi-Automatic Classification Plugin for QGIS allows for the supervised classification of remote sensing images,
provid... | gpl-3.0 | 1,716,961,368,861,842,000 | 50.911423 | 266 | 0.759837 | false |
aurule/npc | npc/gui/uis/main_window.py | 1 | 9243 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'npc/gui/uis/main_window.ui'
#
# Created by: PyQt5 UI code generator 5.7.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | mit | -1,819,100,779,175,044,000 | 58.632258 | 106 | 0.724332 | false |
NicolasLM/spinach | spinach/engine.py | 1 | 10923 | from datetime import datetime, timezone
from logging import getLogger
import threading
from .task import Tasks, Batch, Schedulable
from .utils import run_forever, handle_sigterm
from .job import Job, JobStatus, advance_job_status
from .brokers.base import Broker
from .const import DEFAULT_QUEUE, DEFAULT_NAMESPACE, DEF... | bsd-2-clause | 3,673,688,660,669,416,400 | 37.734043 | 79 | 0.593244 | false |
vhaasteren/PTMCMCSampler | PTMCMCSampler/PTMCMCSampler.py | 1 | 35363 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import scipy.stats as ss
import os
import sys
import time
from nutsjump import NUTSJump, HMCJump, MALAJump
try:
from mpi4py import MPI
except ImportError:
print 'Do not have mpi4py package.'
import nompi4py a... | mit | 9,100,587,971,638,490,000 | 33.433301 | 100 | 0.55428 | false |
davidzyx/PythonNotes | Part I/ch04_notes.py | 1 | 2075 | # ch04_notes.py
# Chapter 4 notes taken from Automate the Boring Stuff with Python (2015).pdf
# Created by Davidzz on 7/20/2016
# List data type
primes = [2, 3, 5, 7, 11, 13, 17]
print(primes[0]) # 2
# For negative index number, start counting from the right
print(primes[-1]) # 17
print(primes[0:5]) # [2, 3, 5, 7, 11]... | gpl-3.0 | -4,305,339,258,504,948,000 | 21.074468 | 77 | 0.675181 | false |
thachhoang/boxmover | main.py | 1 | 2715 | import json
import logging
import logging.config
import sys
import os
import pytumblr
from boxmover import delete_queue, reblog_everything, confirm, like_everything, new_oauth, unlike_everything, \
get_follow_list
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {'simple': {'... | mit | 2,587,896,771,294,788,600 | 27.578947 | 111 | 0.583425 | false |
kgblll/libresoft-gymkhana | apps/explohyperfiction/rest/petitions.py | 1 | 4387 | # -*- coding: UTF-8 -*-
from django.http import HttpResponse, HttpResponseRedirect
from django.template.loader import get_template
from django.template import Context, RequestContext
from django.shortcuts import render_to_response
from datetime import datetime
from django.contrib.auth import authenticate, login, log... | gpl-2.0 | -5,561,933,755,589,448,000 | 47.744444 | 145 | 0.713928 | false |
ecederstrand/exchangelib | exchangelib/recurrence.py | 1 | 13352 | import logging
from .fields import IntegerField, EnumField, EnumListField, DateOrDateTimeField, DateTimeField, EWSElementField, \
IdElementField, MONTHS, WEEK_NUMBERS, WEEKDAYS
from .properties import EWSElement, IdChangeKeyMixIn, ItemId, EWSMeta
log = logging.getLogger(__name__)
def _month_to_str(month):
r... | bsd-2-clause | -5,107,342,709,076,370,000 | 37.478386 | 116 | 0.687088 | false |
ErinMorelli/em-media-handler | mediahandler/types/__init__.py | 1 | 7777 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is a part of EM Media Handler
# Copyright (c) 2014-2021 Erin Morelli
#
# 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 rest... | mit | 7,511,138,175,308,434,000 | 29.61811 | 84 | 0.561656 | false |
bowen0701/algorithms_data_structures | lc0605_can_place_flowers.py | 1 | 2449 | """Leetcode 605. Can Place Flowers
Easy
URL: https://leetcode.com/problems/can-place-flowers/
Suppose you have a long flowerbed in which some of the plots are planted and some are not.
However, flowers cannot be planted in adjacent plots -
they would compete for water and both would die.
Given a flowerbed (represen... | bsd-2-clause | -3,217,385,267,934,301,700 | 25.619565 | 92 | 0.537362 | false |
feureau/Small-Scripts | Blender/Blender config/2.91/scripts/addons/bricker_v2-2-1/functions/brick/mesh_generators/standard_brick.py | 1 | 5467 | # Copyright (C) 2020 Christopher Gearhart
# chris@bblanimation.com
# http://bblanimation.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 opt... | gpl-3.0 | -5,588,545,381,719,541,000 | 46.12931 | 205 | 0.60728 | false |
pdamodaran/yellowbrick | tests/rand.py | 1 | 3176 | # tests.random
# A visualizer that draws a random scatter plot for testing.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Wed Mar 21 17:51:15 2018 -0400
#
# ID: random.py [] benjamin@bengfort.com $
"""
A visualizer that draws a random scatter plot for testing.
"""
########################... | apache-2.0 | 5,707,857,525,669,161,000 | 28.137615 | 77 | 0.55573 | false |
MiczFlor/RPi-Jukebox-RFID | scripts/python-phoniebox/PhonieboxDaemon.py | 1 | 6961 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# import threading
import sys, os.path
import signal
from Phoniebox import Phoniebox
from time import sleep, time
# get absolute path of this script
dir_path = os.path.dirname(os.path.realpath(__file__))
defaultconfigFilePath = os.path.join(dir_path, 'phoniebox.conf')
#... | mit | 4,467,813,023,690,706,000 | 39.707602 | 111 | 0.60724 | false |
ivan7farre/PyFreeFOAM | Foam/finiteVolume/cfdTools/compressible/compressibleCourantNo_impl.py | 1 | 2812 | ## pythonFlu - Python wrapping for OpenFOAM C++ API
## Copyright (C) 2010- Alexey Petrov
## Copyright (C) 2009-2010 Pebble Bed Modular Reactor (Pty) Limited (PBMR)
##
## 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 F... | gpl-3.0 | 3,301,216,150,076,530,700 | 34.15 | 120 | 0.599573 | false |
gamarino/numa_shared_taxes | invoices.py | 1 | 9193 | #-*- coding: utf-8 -*-
##############################################################################
#
# NUMA Extreme Systems (www.numaes.com)
# Copyright (C) 2013
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | agpl-3.0 | -4,234,420,390,260,595,700 | 54.047904 | 205 | 0.526923 | false |
ronie/script.playalbum | default.py | 1 | 1774 | import sys
import xbmc, xbmcaddon
import json
ADDON = xbmcaddon.Addon()
ADDONID = ADDON.getAddonInfo('id')
ADDONVERSION = ADDON.getAddonInfo('version')
def log(txt):
if isinstance (txt,str):
txt = txt.decode("utf-8")
message = u'%s: %s' % (ADDONID, txt)
xbmc.log(msg=message.encode("utf... | gpl-2.0 | -1,628,069,564,425,146,400 | 37.565217 | 173 | 0.590192 | false |
coarse/NGSE | test.py | 1 | 3875 | from webtest import TestApp
import unittest
from ngse import main
# from pyramid import testing
# from cornice import Service
import sys
login_testcases=[
['ngse@coe.upd.edu.ph', 'ngse', True],
['mfmayol@up.edu.ph', 'kz2xjiAm', True],
['bmicons360@gmail.com', 'QFmy5jWg', True],
['bmicons360@gmail.com', 'iaX6oHGy'... | gpl-3.0 | 8,050,052,237,690,515,000 | 24 | 87 | 0.610581 | false |
IKARUSSoftwareSecurity/FakeTokenConfigDecrypt | decrypt_bankersecure.py | 1 | 2652 | __author__ = 'bachmann.s & elias.t'
import base64
from Crypto.Cipher import Blowfish
import zipfile
import sys
from os.path import isdir
from os.path import exists
from os.path import join
from os.path import split
from os import listdir
from argparse import ArgumentParser
blfs = 'res/raw/blfs.key'
config = 'res/raw/... | bsd-2-clause | -7,360,807,983,732,962,000 | 31.753086 | 120 | 0.609729 | false |
sarielsaz/sarielsaz | test/functional/importprunedfunds.py | 1 | 4602 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Sarielsaz Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the importprunedfunds and removeprunedfunds RPCs."""
from test_framework.test_framework import S... | mit | -4,054,450,471,639,731,700 | 39.368421 | 117 | 0.644937 | false |
superdachs/servercontrol | servercontrol/network/migrations/0001_initial.py | 1 | 1149 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-19 14:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Interfa... | gpl-3.0 | 6,986,743,445,912,005,000 | 37.3 | 114 | 0.592689 | false |
centrofermi/e3pipe | db/__select2__.py | 1 | 3094 | #!/usr/bin/env python
# *********************************************************************
# * Copyright (C) 2014 Luca Baldini (luca.baldini@pi.infn.it) *
# * *
# * For the license terms see the file LICENSE, distributed *
# * along ... | gpl-3.0 | -7,725,358,799,463,030,000 | 33 | 79 | 0.601487 | false |
Charlotte-Morgan/inasafe | safe/gis/vector/clean_geometry.py | 1 | 2725 | # coding=utf-8
"""Try to make a layer valid."""
from qgis.core import QgsFeatureRequest
from safe.common.custom_logging import LOGGER
from safe.definitions.processing_steps import clean_geometry_steps
from safe.gis.sanity_check import check_layer
from safe.utilities.profiling import profile
__copyright__ = "Copyrigh... | gpl-3.0 | 244,502,894,381,175,800 | 29.277778 | 76 | 0.645138 | false |
start-jsk/jsk_apc | jsk_apc2016_common/python/jsk_apc2016_common/rbo_segmentation/evaluate.py | 1 | 7455 | from apc_data import APCDataSet, APCSample
from probabilistic_segmentation import ProbabilisticSegmentationRF, ProbabilisticSegmentationBP
import pickle
import os
import matplotlib.pyplot as plt
import numpy as np
import copy
import rospkg
def _fast_hist(a, b, n):
k = (a >= 0) & (a < n)
hist = np.bincount(n ... | bsd-3-clause | -4,862,534,498,546,936,000 | 34.331754 | 101 | 0.548625 | false |
ElvishArtisan/GlassCoder | plugins/pypad_glasscoder.py | 1 | 2223 | #!%PYTHON_BANGPATH%
# pypad_glasscoder.py
#
# Send articulated PAD updates to an instance of glasscoder(1).
#
# (C) Copyright 2019 Fred Gleason <fredg@paravelsystems.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
#... | gpl-2.0 | -3,623,632,450,328,001,000 | 34.285714 | 158 | 0.665767 | false |
johnnoone/json-spec | tests/test_operations.py | 1 | 4710 | """
tests.tests_operations
~~~~~~~~~~~~~~~~~~~~~~
"""
import pytest
from collections import Mapping, Sequence
from . import TestMappingType, TestSequenceType
from jsonspec.operations import check, remove, add, replace, copy, move
from jsonspec.operations import Error, NonexistentTarget
def test_types():
... | bsd-3-clause | -2,329,346,672,964,189,700 | 23.409326 | 71 | 0.486412 | false |
proversity-org/edx-platform | openedx/features/course_experience/tests/views/test_course_home.py | 1 | 25042 | # coding=utf-8
"""
Tests for the course home page.
"""
from datetime import datetime, timedelta
import ddt
import mock
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import QueryDict
from django.utils.http import urlquote_plus
from django.utils.timezone import now
from p... | agpl-3.0 | -1,781,964,234,215,230,000 | 44.422868 | 116 | 0.68723 | false |
grahamhayes/designate | designate/tests/test_api/test_v2/test_zones.py | 1 | 27400 | # Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# 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/lice... | apache-2.0 | 7,254,965,936,942,582,000 | 36.741047 | 79 | 0.59292 | false |
mrkiwi-nz/django-helpdesk | helpdesk/migrations/0003_initial_data_import.py | 4 | 1141 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from sys import path
from django.db import models, migrations
from django.core import serializers
fixture_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../fixtures'))
fixture_filename = 'emailtemplate.json'
def deserialize_fi... | bsd-3-clause | -8,847,635,837,566,119,000 | 24.931818 | 86 | 0.695881 | false |
thesgc/shergar | shergar/calc/migrations/0002_auto__del_field_workflowstep_depth__del_field_workflowstep_path__del_f.py | 1 | 10972 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'WorkFlowStep.depth'
db.delete_column(u'calc_workflowste... | mit | 4,968,346,890,640,987,000 | 70.253247 | 195 | 0.560882 | false |
futurecolors/django-future-url | setup.py | 1 | 1341 | # -*- coding: utf-8 -*-
import os
import codecs
from setuptools import setup, find_packages
import django_future_url
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
setup(
name="django-future-url",
version=django_future_url.__version__,
author='Vitaly Olevinsky',
author_email='olev... | mit | 1,000,879,088,271,199,900 | 32.525 | 94 | 0.619687 | false |
kgsn1763/deep-learning-from-scratch | common/functions.py | 1 | 1171 | #!/usr/bin/env python
# coding: utf-8
import numpy as np
def identity_function(x):
return x
def step_function(x):
return np.array(x > 0, dtype=np.int)
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def sigmoid_grad(x):
return (1.0 - sigmoid(x)) * sigmoid(x)
def relu(x):
return np.maximum(0, ... | mit | 8,491,684,971,797,022,000 | 16.507937 | 68 | 0.55485 | false |
licco/zipline | zipline/history/history_container.py | 1 | 18509 | #
# Copyright 2014 Quantopian, 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 wr... | apache-2.0 | 1,417,596,418,311,687,000 | 36.928279 | 79 | 0.580853 | false |
gwillem/magento-malware-scanner | mwscan/ruleset.py | 1 | 7113 | import os
import re
import json
import logging
import hashlib
import requests
import yara
import time
from requests.exceptions import RequestException
from mwscan import settings
# For very old installs, eg CentOS:
# https://github.com/magesec/magesec/issues/60
try:
requests.packages.urllib3.disable_warnings()
exc... | gpl-3.0 | 1,615,909,693,083,476,500 | 29.397436 | 126 | 0.60059 | false |
lex86/nnet | python/nnet.py | 1 | 5793 | import sys
from ctypes import *
import numpy as np
nnetlib = np.ctypeslib.load_library('libnnet', '../lib/')
class NNet:
def __init__(self, cfg_path):
init = nnetlib.NNet_init
self.nnet = init(cfg_path)
if self.nnet == 0:
sys.exit(-1)
c_size = c_int()
size = nn... | gpl-2.0 | 6,646,499,532,115,967,000 | 32.680233 | 76 | 0.416882 | false |
mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/web/framework/webapp.py | 1 | 39566 | """
"""
import inspect
import os
import hashlib
import random
import socket
import string
import time
from Cookie import CookieError
from galaxy import eggs
eggs.require( "Cheetah" )
from Cheetah.Template import Template
eggs.require( "Mako" )
import mako.runtime
import mako.lookup
# pytz is used by Babel.
eggs.requir... | gpl-3.0 | 6,105,172,054,496,387,000 | 47.666667 | 186 | 0.601274 | false |
GoogleCloudPlatform/datacatalog-connectors-rdbms | google-datacatalog-oracle-connector/system_tests/cleanup_results_test.py | 1 | 1324 | #!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | 2,843,499,763,594,922,000 | 29.790698 | 75 | 0.714502 | false |
hfutsuchao/Python2.6 | fromNet/pinyinDomainScan.py | 1 | 1428 | #coding:utf-8
from yuming import ifRegged
import sys
import time,random
dicType = []
dic = {}
dtFile = open('domainType','r').readlines()
for t in dtFile[1:-1]:
dicType.append(t[:-1])
#print dicType
times = [1,2,3,4]
for t in times:
dic[t] = []
totalDic = []
pinyinFile = open('pinyin','r').readlines()
fo... | gpl-2.0 | -3,893,511,307,367,741,400 | 21.666667 | 65 | 0.516106 | false |
20c/django-ixpmgr | src/django_ixpmgr/util.py | 1 | 1735 | import configparser
from collections import namedtuple
import os
import re
from ixpmgr import settings
from ixpmgr.models import Customer
from ixpmgr.models import PhysicalInterface
from ixpmgr.models import VirtualInterface
from ixpmgr.models import VlanInterface
def load_config():
"""
load the IXP-Manager ... | apache-2.0 | 7,544,470,746,037,920,000 | 24.514706 | 80 | 0.65879 | false |
twdb/sonde | sonde/formats/generic.py | 1 | 6474 | """
sonde.formats.generic
~~~~~~~~~~~~~~~~~
This module implements a generic format.
The files are in .csv format and must conform to the
following guidelines
comments and metadata at top of file in the format:
# name: value
a timezone field: (UTC-?, the data must all be in one UTC of... | bsd-3-clause | -5,914,747,278,133,182,000 | 32.71875 | 83 | 0.538153 | false |
wilkeraziz/grasp | grasp/mt/pipeline.py | 1 | 27278 | """
:Authors: - Wilker Aziz
"""
import random
import os
import itertools
import numpy as np
import grasp.ptypes as ptypes
import grasp.semiring as semiring
from grasp.loss.fast_bleu import DecodingBLEU
from grasp.mt.segment import SegmentMetaData
import grasp.mt.cdec_format as cdeclib
from grasp.mt.input import mak... | apache-2.0 | -1,688,278,262,305,269,200 | 37.097765 | 118 | 0.5507 | false |
fernandolins/What2watch | What2Watch/settings.py | 1 | 5815 | # Django settings for What2Watch project.
import os
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
LOGIN_URL = '/'
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = ... | lgpl-3.0 | -936,482,418,237,707,900 | 31.853107 | 136 | 0.687704 | false |
sintrb/Douban-Group-AD-Killer | datamining/classify/bayes.py | 1 | 2418 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2014-10-15
# @Author : Robin (sintrb@gmail.com)
# @Link : https://github.com/sintrb/Douban-Group-AD-Killer
# @Version : 1.0
from base import BaseClassifier, test_classifer
class BaseProbability():
def __init__(self, cls, prt):
self.cls = cls
self.prt... | gpl-2.0 | 1,136,967,823,608,875,100 | 23.742268 | 61 | 0.65125 | false |
vmintam/flasky_older | fabfile_youtrack.py | 1 | 8441 | __author__ = 'vmintam'
from cuisine import user_ensure, dir_exists, dir_ensure, mode_sudo, dir_remove
from cuisine import user_remove, user_check, file_write, package_ensure_yum
from cuisine import package_clean_yum, package_update_yum, file_append
from fabric.api import env, hide, sudo, run
from fabric.colors import r... | mit | 8,358,021,976,100,836,000 | 28.010309 | 113 | 0.525767 | false |
peterbrittain/asciimatics | samples/pacman.py | 1 | 18400 | #!/usr/bin/env python3
from copy import deepcopy
import sys
from asciimatics.exceptions import ResizeScreenError
from asciimatics.paths import Path
from asciimatics.renderers import StaticRenderer, ColourImageFile, FigletText
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.ef... | apache-2.0 | 8,174,484,442,454,301,000 | 33.200743 | 100 | 0.299946 | false |
oicr-ibc/riser | bin/run_analysis.py | 1 | 3234 | #!/usr/bin/python
import ConfigParser,os,sys
from subprocess import call
from glob import iglob
from shutil import move
from os.path import join
use_message = '''
Usage:
python run_analysis.py
'''
class Usage(Exception):
def __init__(self, msg):
self.msg = msg
def get_version():
return "1.2.0"
... | gpl-3.0 | 6,044,638,009,739,695,000 | 33.404255 | 137 | 0.579159 | false |
ska-sa/montblanc | montblanc/tests/meqtrees/turbo-sim.py | 1 | 8704 | # -*- coding: utf-8 -*-
#% $Id$
#
#
# Copyright (C) 2002-2007
# The MeqTree Foundation &
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | gpl-2.0 | 2,129,762,275,439,893,000 | 35.41841 | 149 | 0.729779 | false |
vthorsteinsson/tensor2tensor | tensor2tensor/utils/diet.py | 1 | 12143 | # coding=utf-8
# Copyright 2018 The Tensor2Tensor 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 applicable... | apache-2.0 | 4,098,083,250,670,264,300 | 32.637119 | 80 | 0.659722 | false |
chromium/chromium | third_party/protobuf/python/google/protobuf/internal/json_format_test.py | 9 | 51094 | #! /usr/bin/env python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# https://developers.google.com/protocol-buffers/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ... | bsd-3-clause | 7,361,897,291,038,372,000 | 39.454473 | 80 | 0.607606 | false |
philwo/dbbench | selector.py | 1 | 2829 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Performs randomized SELECT queries on a test database in multiple threads.
#
# Copyright 2012 by Philipp Wollermann
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | apache-2.0 | -7,106,444,881,440,432,000 | 30.433333 | 168 | 0.618947 | false |
ccca-dc/ckanext-mdedit | ckanext/mdedit/plugin.py | 1 | 9816 | import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit
import json
import ckanext.mdedit.logic.action as action
import pylons
from ckanext.mdedit import helpers
from ckanext.mdedit import validators as v
ignore_empty = plugins.toolkit.get_validator('ignore_empty')
from ckanext.mdedit.helpers import (
... | agpl-3.0 | -6,954,540,575,138,646,000 | 37.645669 | 133 | 0.614609 | false |
GoogleCloudPlatform/appengine-python-standard | src/google/appengine/ext/ndb/model.py | 1 | 130428 | #!/usr/bin/env python
#
# Copyright 2007 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -7,679,272,179,333,130,000 | 30.765222 | 82 | 0.653272 | false |
geertj/draco2 | draco2/util/test/test_misc.py | 1 | 2420 | # vi: ts=8 sts=4 sw=4 et
#
# test_misc: test suite for draco2.util.misc
#
# This file is part of Draco2. Draco2 is free software and is made available
# under the MIT license. Consult the file "LICENSE" that is distributed
# together with this file for the exact licensing terms.
#
# Draco2 is copyright (c) 1999-2007 by... | mit | -5,645,479,705,840,652,000 | 27.470588 | 76 | 0.570661 | false |
coopernurse/radiator | radiator/__init__.py | 1 | 19563 |
import logging
import uuid
import struct
import os
import time
import re
import types
import base64
import random
import tempfile
logger = logging.getLogger('radiator')
def start_server(reactor,
dir=None,
fsync_millis=0,
rewrite_interval_secs=300):
broker = Brok... | mit | 2,084,008,065,329,050,600 | 34.961397 | 204 | 0.543322 | false |
sawdog/OraclePyDoc | oraclepydoc/oracleobjects/oraclecolumn.py | 1 | 1065 | class OracleColumn:
"""! \brief Oracle column represents table column object"""
def __init__(self, name, column_id, data_type, nullable, data_default, comments):
self.column_id = column_id
self.name = name
self.data_type = data_type
self.nullable = nullable
self.data_def... | gpl-2.0 | 8,176,197,300,944,973,000 | 39.961538 | 85 | 0.524883 | false |
appleseedhq/gaffer | python/GafferUI/NumericPlugValueWidget.py | 1 | 7034 | ##########################################################################
#
# Copyright (c) 2011-2012, John Haddon. All rights reserved.
# Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted prov... | bsd-3-clause | -8,314,075,521,094,012,000 | 35.445596 | 143 | 0.702587 | false |
ArteliaTelemac/PostTelemac | PostTelemac/PostTelemac.py | 1 | 10296 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
PostTelemac
A QGIS plugin
Post Traitment or Telemac
-------------------
begin : 2015-07-07
git sha : $Form... | gpl-3.0 | -2,736,814,625,547,561,000 | 33.901695 | 115 | 0.587801 | false |
davy39/eric | Utilities/ClassBrowsers/idlclbr.py | 1 | 12545 | # -*- coding: utf-8 -*-
# Copyright (c) 2005 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Parse a CORBA IDL file and retrieve modules, interfaces, methods and
attributes.
Parse enough of a CORBA IDL file to recognize module, interface and method
definitions and to find out the superclasses of an interfac... | gpl-3.0 | -3,784,231,802,065,473,500 | 31.926509 | 79 | 0.520048 | false |
smorand/dtol | var/test/essai/models.py | 1 | 1276 | from django.db import models, transaction
'''
create table dt_games (id integer primary key auto_increment, name varchar(100), lasteventid integer);
create table dt_spawns (id integer primary key auto_increment, name varchar(100), game_id integer references game(id), lasteventid integer);
insert into dt_games values (... | gpl-3.0 | 7,205,550,349,692,199,000 | 37.666667 | 140 | 0.732759 | false |
ucloud/uai-sdk | examples/tensorflow/train/mnist_summary_1.1/code/mnist_summary.py | 1 | 7440 | # 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 | 2,417,338,661,895,161,300 | 38.163158 | 110 | 0.667876 | false |
wujuguang/scrapy | scrapy/core/downloader/webclient.py | 1 | 5796 | from time import time
from six.moves.urllib.parse import urlparse, urlunparse, urldefrag
from twisted.web.client import HTTPClientFactory
from twisted.web.http import HTTPClient
from twisted.internet import defer
from scrapy.http import Headers
from scrapy.utils.httpobj import urlparse_cached
from scrapy.utils.python... | bsd-3-clause | 2,003,167,116,600,618,500 | 35.225 | 92 | 0.658213 | false |
gmartinvela/Incubator | Incubator/mongo_save.py | 1 | 2777 | from pymongo import MongoClient
import urllib2
import time
import datetime
import json
import sqlite3
import pandas.io.sql as psql
from data_utils import retrieve_DBs, extract_data_from_DB
mongo_client = MongoClient()
mongo_db = mongo_client.incubator
measures_collection = mongo_db.measures
local_path_SHT1xdb = "/ho... | mit | 6,239,591,299,131,140,000 | 29.866667 | 115 | 0.707598 | false |
NBajanca/django-non-profit | volunteers/tests.py | 1 | 2614 | from django.contrib.auth.models import User
from django.test import TestCase
from volunteers.models import Volunteer, Task, Shift, Preference, VolunteerShift, VolunteerUnavailability, \
VolunteerPresence
class VolunteerTestCase(TestCase):
def setUp(self):
self.user = User.objects.create_user(usernam... | mit | -5,676,116,049,376,112,000 | 49 | 120 | 0.628846 | false |
tddv/readthedocs.org | readthedocs/doc_builder/environments.py | 1 | 24734 | '''
Documentation Builder Environments
'''
import os
import re
import sys
import logging
import subprocess
import traceback
import socket
from datetime import datetime
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _, ugettext_noop
from docker import Client
from docker.uti... | mit | 6,347,718,754,111,018,000 | 37.52648 | 90 | 0.569459 | false |
JoaquimPatriarca/senpy-for-gis | tmp/Prog_25.py | 1 | 7237 | # Criação de amostras de treino (70%) e amostras de avaliação (30%) consideradas ideais para cada um dos factores condicionanes - por ideal entenda-se: cada classe de cada factor tem 70% dos pontos que a intersectam definidos como ocorrências para treino e tem 30% para validação - GRASS GIS
def cria_objTable(tab, path... | gpl-3.0 | 2,416,969,780,901,124,600 | 40.087209 | 291 | 0.55769 | false |
ctrl-alt-d/fpuf | fpuf/settings.py | 1 | 7622 | # -*- coding: utf-8 -*-
import os
from django.core.urlresolvers import reverse
# Django settings for aula project.
PROJECT_DIR = os.path.join( os.path.dirname(__file__), '..')
location = lambda x: os.path.join(PROJECT_DIR, x)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com... | gpl-3.0 | -7,926,954,789,157,858,000 | 29.8583 | 127 | 0.691944 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.