repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
endlessm/chromium-browser | third_party/depot_tools/fetch_configs/config_util.py | 2 | 1638 | # Copyright (c) 2013 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.
"""This module holds utilities which make writing configs easier."""
from __future__ import print_function
import json
class Config(object):
"""Bas... | bsd-3-clause | -3,427,243,475,538,356,700 | 30.5 | 80 | 0.681929 | false | 4.115578 | false | false | false |
TacticalGoat/reddit | DelayBotT/delaybotT.py | 1 | 4260 | #/u/GoldenSights
import praw
import time
import datetime
import sqlite3
'''USER CONFIGURATION'''
APP_ID = ""
APP_SECRET = ""
APP_URI = ""
APP_REFRESH = ""
# https://www.reddit.com/comments/3cm1p8/how_to_make_your_bot_use_oauth2/
USERAGENT = ""
#This is a short description of what the bot does. For example "/u/GoldenS... | mit | -3,111,328,070,677,242,400 | 35.101695 | 482 | 0.68662 | false | 3.174367 | false | false | false |
recursecenter/RSVPBot | strings.py | 1 | 2577 | import config
ANNOUNCE_MESSAGE = """
**[{title}]({url})**
{timestamp}
Created by {created_by}
To start an RSVPBot thread for this event:
```{key_word} init {url}```
""".strip()
MSG_CREATE_EVENT_ON_RC_CALENDAR = """
RSVPBot events are saved on the RC calendar. To create an event that will be tracked in this thread, g... | mit | 5,160,972,723,061,756,000 | 52.6875 | 254 | 0.719829 | false | 3.078853 | false | false | false |
saymedia/flask-compress | flask_compress.py | 1 | 3222 | import gzip
try:
from io import BytesIO as IO
except:
import StringIO as IO
from flask import request
class Compress(object):
"""
The Compress object allows your application to use Flask-Compress.
When initialising a Compress object you may optionally provide your
:class:`flask.Flask` applic... | mit | -5,863,244,114,132,079,000 | 33.645161 | 114 | 0.597455 | false | 4.261905 | true | false | false |
eco32i/ggplot | ggplot/geoms/geom_abline.py | 1 | 1260 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import matplotlib.pyplot as plt
from matplotlib.dates import drange, date2num
from pandas.lib import Timestamp
from datetime import timedelta
import numpy as np
from .geom import geom
import pandas as pd
class ... | bsd-2-clause | -2,361,244,803,072,503,300 | 34 | 83 | 0.55873 | false | 3.6 | false | false | false |
qvazzler/Flexget | flexget/plugins/urlrewrite/isohunt.py | 1 | 3608 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
from future.moves.urllib.parse import quote
import logging
import re
import feedparser
from flexget import plugin
from flexget.entry import Entry
from flexget.event import eve... | mit | -2,577,430,881,180,603,000 | 33.361905 | 120 | 0.56541 | false | 3.762252 | false | false | false |
standage/sequniq | sequniq/parse.py | 1 | 3833 | # -----------------------------------------------------------------------------
# Copyright (C) Daniel Standage, 2015. It is licensed under the ISC license,
# see LICENSE.txt. Contact: daniel.standage@gmail.com
# -----------------------------------------------------------------------------
"""
Generators for parsing s... | isc | 2,973,343,182,879,858,700 | 26.378571 | 79 | 0.516045 | false | 3.71775 | false | false | false |
alienlike/courier | courier/models/account_link.py | 1 | 1782 | from datetime import datetime
from sqlalchemy import Column, Integer, ForeignKey, Boolean, DateTime
from sqlalchemy.orm import relationship, backref
from .base import DeclarativeBase
class AccountLink(DeclarativeBase):
# table
__tablename__ = 'account_link'
# columns
id = Colum... | gpl-3.0 | 4,681,192,711,699,085,000 | 45.921053 | 109 | 0.643659 | false | 4.242857 | false | false | false |
svm-zhang/poolseq_tk | sz_acount.py | 1 | 3378 | '''
python poolseq_tk.py count
Description: Count alleles at each SNP give the pileups
Author: Simo V. Zhang
Input: pileup file with reads bases converted to corresponding alleles
Output: pielup file with allele counts
(1) chr
(2) pos
(3) ref base
(4) alt base
(5) allele counts in the o... | gpl-2.0 | -4,970,120,119,147,440,000 | 26.917355 | 96 | 0.598283 | false | 2.511524 | false | false | false |
mbauskar/erpnext | erpnext/patches/v8_7/make_subscription_from_recurring_data.py | 1 | 1634 | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import today
def execute():
frappe.reload_doc('subscription', 'doctype', 'subscription')
frappe.reload_doc('selling', 'doctype', 'sales_orde... | gpl-3.0 | -903,746,289,309,461,900 | 35.333333 | 87 | 0.72093 | false | 3.124283 | false | false | false |
ScienceWorldCA/domelights | backend/domeplayer/scripts/chaser-blue-fade.py | 1 | 1152 | import socket
import sys
import time
import random
import base64
""" Fading white chaser pattern """
HOST, PORT = "localhost", 9999
FIXTURES = 260
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((HOST, PORT))
canvas = []
for i in range(0,FIXTURES*3):
canvas.append(0)
fp = open( 'running', 'w... | apache-2.0 | 6,400,051,492,977,337,000 | 18.525424 | 56 | 0.594618 | false | 2.716981 | false | false | false |
PaddlePaddle/models | PaddleCV/image_classification/fast_imagenet/reader.py | 1 | 6775 | #copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#Unless required by applicable l... | apache-2.0 | 5,752,484,946,407,509,000 | 34.103627 | 82 | 0.585387 | false | 3.724574 | false | false | false |
pculture/unisubs | apps/teams/signals.py | 1 | 7525 | # Amara, universalsubtitles.org
#
# Copyright (C) 2013 Participatory Culture Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your ... | agpl-3.0 | -2,416,420,001,652,783,600 | 40.346154 | 91 | 0.732359 | false | 3.783308 | false | false | false |
robwarm/gpaw-symm | gpaw/test/cmrtest/cmr_test4.py | 1 | 1281 | # This test makes sure that the i/o interfaces work with CMR.
# CMR itself does not have to be installed for this test.
#
# The reason why CMR cannot use direct writes to DB/GPAW files is that
# GPAW cannot always write a GPAW without performing a new calculation e.g.
# GPAW(filename).write(...)
# fails in some ra... | gpl-3.0 | -6,507,146,153,682,806,000 | 27.466667 | 89 | 0.69477 | false | 2.809211 | true | false | false |
specify/specify7 | specifyweb/workbench/upload/tests/test_bugs.py | 1 | 8187 |
import io
import json
import csv
from pprint import pprint
from unittest import skip
from datetime import datetime
from decimal import Decimal
from ..uploadable import Exclude
from ..upload_result import Uploaded, UploadResult, Matched, FailedBusinessRule, ReportInfo, TreeInfo
from ..upload_table import UploadTable, ... | gpl-2.0 | 6,606,023,491,129,068,000 | 55.854167 | 207 | 0.671064 | false | 2.213301 | false | false | false |
perplexes/couchapp | python/couchapp/utils/__init__.py | 1 | 2821 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2009 Benoit Chesneau <benoitc@e-engura.org>
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
#
import codecs
import os
import sys
import urlparse
import urllib
# compatibility with... | apache-2.0 | 5,177,487,938,545,326,000 | 21.934959 | 74 | 0.56682 | false | 3.517456 | false | false | false |
tiredpixel/pikka-bird-collector-py | pikka_bird_collector/collectors/postgresql.py | 1 | 4994 | from pikka_bird_collector.parsers.table import Table as Parser
from .base_port_command import BasePortCommand, Base
class Postgresql(BasePortCommand):
"""
Collector for PostgreSQL (http://www.postgresql.org/).
The collector is enabled whenever non-empty settings are passed.
Multip... | mit | -1,248,612,989,321,853,400 | 32.072848 | 80 | 0.489187 | false | 4.305172 | false | false | false |
elhuhdron/emdrp | emdrp/emdrp/dpCubeIter.py | 1 | 19641 | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2016 Paul Watkins, National Institutes of Health / NINDS
#
# 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... | mit | 3,392,337,723,787,381,000 | 60.378125 | 120 | 0.611832 | false | 3.722001 | false | false | false |
jeeyoungk/exercise | python/calendar.py | 1 | 1671 | DAYS_IN_MONTH = [31,28,31,30,31,30,31,31,30,31,30,31]
DAYS_IN_MONTH_CUMULATIVE = [None for i in range(12)]
DOW = ['sun', 'mon', 'tues', 'wed', 'thurs', 'fri', 'sat']
# pre-calculate cumulative days till this month (not including this month).
for i in range(12):
if i == 0: DAYS_IN_MONTH_CUMULATIVE[i] = 0
else: ... | mit | -414,533,418,909,324,800 | 32.42 | 90 | 0.624177 | false | 2.748355 | false | false | false |
feureau/Small-Scripts | Blender/Blender config/2.91/scripts/addons/bricker_v2-2-1/functions/brick/mesh_generators/tile.py | 1 | 4378 | # 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 | -8,467,515,662,449,953 | 39.165138 | 152 | 0.620603 | false | 3.02557 | false | false | false |
lmjohns3/manifold-experiment | en-dee.py | 1 | 6947 | import climate
import lmj.plot
import logging
import numpy as np
import sklearn.decomposition
import theanets
climate.add_arg('--dimensions', type=int, default=10, metavar='D')
climate.add_arg('--samples', type=int, default=1000, metavar='N')
climate.add_arg('--clusters', type=int, default=20, metavar='K')
climate.add... | mit | 2,385,183,796,207,257,000 | 31.462617 | 93 | 0.549158 | false | 3.169252 | false | false | false |
fgaudin/aemanager | accounts/migrations/0012_auto__add_field_expense_supplier.py | 1 | 12652 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Expense.supplier'
db.add_column('accounts_expense', 'supplier', self.gf('django.db.models.... | agpl-3.0 | 5,774,475,095,478,383,000 | 81.155844 | 183 | 0.551138 | false | 3.649264 | false | false | false |
laurentb/weboob | modules/lyricsmode/module.py | 1 | 1723 | # -*- coding: utf-8 -*-
# Copyright(C) 2016 Julien Veyssier
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | lgpl-3.0 | -4,821,468,968,850,700,000 | 31.509434 | 86 | 0.713871 | false | 3.589583 | false | false | false |
LIMXTEC/BitCore | contrib/seeds/generate-seeds.py | 1 | 4341 | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | mit | -4,901,292,662,621,745,000 | 30.456522 | 98 | 0.571067 | false | 3.175567 | false | false | false |
cardmaster/makeclub | controlers/url.py | 1 | 3202 | '''Copyright(C): Leaf Johnson 2011
This file is part of makeclub.
makeclub 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.
makeclub ... | agpl-3.0 | -1,901,133,220,814,521,600 | 35.804598 | 120 | 0.682698 | false | 3.133072 | false | false | false |
JoeJimFlood/RugbyPredictifier | 2020SuperRugby/matchup.py | 1 | 16562 | import os
os.chdir(os.path.dirname(__file__))
import sim_util
import sys
import pandas as pd
import numpy as np
from numpy.random import poisson, uniform
from numpy import mean
import time
import math
po = False
team_homes = pd.read_csv(os.path.join(os.path.split(__file__)[0], 'TeamHomes.csv'), header = None, index_... | mit | 3,946,143,101,696,154,000 | 39.29927 | 162 | 0.55899 | false | 2.941218 | false | false | false |
pyokagan/gyp | pylib/gyp/simple_copy.py | 1 | 1385 | # Copyright 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A clone of the default copy.deepcopy that doesn't handle cyclic
structures or complex types except for dicts and lists. This is
because gyp copies so large structur... | bsd-3-clause | 4,918,599,992,610,725,000 | 22.474576 | 72 | 0.680866 | false | 3.479899 | false | false | false |
mice-software/maus | bin/user/simulate_mice.py | 1 | 2151 | #!/usr/bin/env python
"""
Simulate the MICE experiment
This will simulate MICE spills through the entirety of MICE using Geant4, then
digitize and reconstruct TOF and tracker hits to space points.
"""
import io # generic python library for I/O
import MAUS # MAUS libraries
def run():
""" Run the macro
""... | gpl-3.0 | -5,412,434,296,677,713,000 | 30.632353 | 80 | 0.699675 | false | 3.172566 | false | false | false |
ibm-security-intelligence/api-samples | data_classification/02_LowLevelCategories.py | 1 | 2598 | #!/usr/bin/env python3
# This sample script demonstrates how to
# 1. get a list of low level categories
# 2. get a single low level category by its id
import importlib
import json
import os
import sys
sys.path.append(os.path.realpath('../modules'))
client_module = importlib.import_module('RestApiClient')
SampleUtilit... | apache-2.0 | 4,357,113,796,614,164,000 | 32.74026 | 79 | 0.624326 | false | 4.22439 | false | false | false |
lukaasp/libs | aws_xray_sdk/ext/django/middleware.py | 1 | 3458 | import logging
import traceback
from aws_xray_sdk.core import xray_recorder
from aws_xray_sdk.core.models import http
from aws_xray_sdk.core.models.trace_header import TraceHeader
log = logging.getLogger(__name__)
# Django will rewrite some http request headers.
USER_AGENT_KEY = 'HTTP_USER_AGENT'
X_FORWARDED_KEY = ... | unlicense | -9,111,171,738,209,037,000 | 31.622642 | 81 | 0.633892 | false | 3.787514 | false | false | false |
yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py | 1 | 43047 | """ PilotAgentsDB class is a front-end to the Pilot Agent Database.
This database keeps track of all the submitted grid pilot jobs.
It also registers the mapping of the DIRAC jobs to the pilot
agents.
Available methods are:
addPilotTQReference()
setPilotStatus()
deletePilot()
clearPilo... | gpl-3.0 | 8,148,434,752,963,911,000 | 34.197874 | 119 | 0.572793 | false | 3.855876 | false | false | false |
jtotto/sooper-jack-midi-looper | src/GUI/jack_midi_looper_gui/engine_manager.py | 1 | 10951 | # JACK MIDI LOOPER
# Copyright (C) 2014 Joshua Otto
#
# 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 any later version.
#
# This program is dis... | gpl-2.0 | -1,342,625,881,783,382,500 | 35.748322 | 99 | 0.601863 | false | 4.152825 | false | false | false |
ramansbach/cluster_analysis | clustering/visualize.py | 1 | 2797 | from __future__ import absolute_import, division, print_function
import numpy as np
import gsd.hoomd
import sklearn
import scipy.optimize as opt
import os
import pdb
from sklearn.neighbors import BallTree
from sklearn.neighbors import radius_neighbors_graph
from scipy.spatial.distance import cdist
from scipy.special im... | mit | -3,627,616,678,007,215,000 | 30.784091 | 78 | 0.632463 | false | 3.950565 | false | false | false |
ethereum/pydevp2p | devp2p/multiplexer.py | 1 | 21218 | from gevent.queue import Queue
from collections import OrderedDict
import rlp
from rlp.utils import str_to_bytes, is_integer
import struct
import sys
sys.setrecursionlimit(10000) # frames are generated recursively
# chunked-0: rlp.list(protocol-type, sequence-id, total-packet-size)
header_data_sedes = rlp.sedes.List... | mit | -6,756,658,152,461,528,000 | 37.578182 | 105 | 0.582996 | false | 3.985349 | false | false | false |
tschaefer/director | director/__init__.py | 1 | 2748 | # -*- coding: utf-8 -*-
import sys
import os
import argparse
from director.importer import Importer
from director.updater import Updater
from director.service import Service
def stype(bytestring):
unicode_string = bytestring.decode(sys.getfilesystemencoding())
return unicode_string
def parse_options():
... | bsd-3-clause | -2,391,396,943,135,285,000 | 32.108434 | 67 | 0.519651 | false | 4.649746 | false | false | false |
mitodl/bootcamp-ecommerce | localdev/seed/app_state_api.py | 1 | 17130 | """API functionality for setting the state of an application"""
import os
import random
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.core.files import File
from d... | bsd-3-clause | 5,803,917,556,540,261,000 | 34.83682 | 116 | 0.648803 | false | 4.068884 | false | false | false |
TamiaLab/carnetdumaker | apps/gender/fields.py | 1 | 1538 | """
Model fields for the gender app.
"""
from django.db import models
from django.utils import six
from django.utils.translation import ugettext_lazy as _
from .constants import (GENDER_CHOICES,
GENDER_UNKNOWN)
class GenderFieldBase(models.CharField):
"""
This database model field ca... | agpl-3.0 | 8,364,084,219,892,851,000 | 27.481481 | 77 | 0.587776 | false | 4.179348 | false | false | false |
JaredButcher/dayOfSagittariusIII | Server/sockServer.py | 1 | 8357 | import asyncio
import dataManagement
from enum import Enum, unique
import html
import json
import threading
import websockets
dataStor = None
def start(port, data):
global dataStor
dataStor = data
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
try:
coro = websockets.server.se... | mit | 310,050,558,187,058,500 | 31.905512 | 133 | 0.459495 | false | 4.039149 | false | false | false |
jumpstarter-io/nova | nova/tests/api/openstack/compute/plugins/v3/test_servers.py | 1 | 134728 | # Copyright 2010-2011 OpenStack Foundation
# Copyright 2011 Piston Cloud Computing, 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-2.0 | 2,637,198,558,954,699,000 | 40.595554 | 79 | 0.559654 | false | 3.954563 | true | false | false |
census-instrumentation/opencensus-python | contrib/opencensus-ext-requests/setup.py | 1 | 1936 | # Copyright 2019, OpenCensus 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 agreed to in w... | apache-2.0 | 4,184,736,613,953,377,000 | 36.960784 | 128 | 0.66374 | false | 4.008282 | false | false | false |
foursquare/pants | contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/variable_names.py | 1 | 4706 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import ast
import keyword
import re
from functools import wraps
import six
from pants.c... | apache-2.0 | -250,211,113,857,295,550 | 33.602941 | 98 | 0.671058 | false | 3.375897 | false | false | false |
avigad/boole | old/expr_examples.py | 1 | 2607 | ################################################################################
#
# expr_examples.py
#
################################################################################
from boole.core.model import *
################################################################################
#
# Examples
... | apache-2.0 | -8,128,380,361,066,723,000 | 23.364486 | 80 | 0.392789 | false | 3.045561 | false | false | false |
warner/petmail | src/petmail/eventsource.py | 1 | 7209 | from twisted.python import log, failure
from twisted.internet import reactor, defer, protocol
from twisted.application import service
from twisted.protocols import basic
from twisted.web.client import Agent, ResponseDone
from twisted.web.http_headers import Headers
from .eventual import eventually
class EventSourcePar... | mit | 1,099,797,958,269,554,300 | 34.165854 | 80 | 0.609793 | false | 4.303881 | false | false | false |
anilpai/leetcode | Tests/test_matrix.py | 1 | 1516 | from unittest import TestCase
from Matrix.MatrixInSpiral import Solution as a
from Matrix.MatrixRotate90deg import Solution as b
from Matrix.RotateMatrix import Solution as c
class TestSolution(TestCase):
def test_spiralmatrix(self):
r = a()
matrix = [
[1, 2, 3, 4],
[5, 6, ... | mit | -5,891,117,889,782,187,000 | 38.921053 | 167 | 0.509235 | false | 2.966732 | true | false | false |
boblefrag/lolyx | lolyx/urls.py | 1 | 1605 | # -*- coding: utf-8 -*- pylint: disable-msg=R0801
#
# Copyright (c) 2013 Rodolphe Quiédeville <rodolphe@quiedeville.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | gpl-3.0 | 8,413,431,553,604,031,000 | 42.351351 | 75 | 0.700748 | false | 3.525275 | false | false | false |
tensorflow/models | research/object_detection/builders/preprocessor_builder.py | 1 | 18154 | # Copyright 2017 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,135,707,827,955,755,500 | 39.979684 | 80 | 0.640961 | false | 3.832383 | true | false | false |
tobegit3hub/deep_recommend_system | http_service/restful_server/settings.py | 1 | 3216 | """
Django settings for restful_server project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impor... | apache-2.0 | 7,750,119,693,354,985,000 | 26.02521 | 83 | 0.684701 | false | 3.526316 | false | false | false |
AstroTech/workshop-python | network/src/imap-gmail.py | 1 | 1379 | import getpass
import imaplib
import email
from pprint import pprint
from quopri import decodestring
from datetime import datetime
USERNAME = getpass.getuser()
PASSWORD = getpass.getpass()
HOST = 'imap.gmail.com'
PORT = 993
imap = imaplib.IMAP4_SSL(HOST, PORT)
imap.login(USERNAME, PASSWORD)
imap.select('INBOX')
def... | mit | 7,039,509,036,235,123,000 | 22.372881 | 77 | 0.618564 | false | 3.275534 | false | false | false |
uhuramedia/Havel | HavelCMS/admin.py | 1 | 7900 | import datetime
from django.conf import settings
from django.contrib import admin
from django.contrib.admin.options import FORMFIELD_FOR_DBFIELD_DEFAULTS
from django.core import urlresolvers
from django.db import models
from django.utils.importlib import import_module
from django.utils.translation import ugettext_lazy... | bsd-3-clause | -1,609,924,798,894,494,700 | 34.426009 | 133 | 0.599114 | false | 4.059609 | false | false | false |
lecovi/reveal.js | archivos/encapsulamiento_property.py | 1 | 1041 | class Encapsulamiento:
""" Esta clase tiene 3 atributos y 3 métodos propios.
>>> # El atributo privado es accesible a través de una Propiedad.
>>> x = Encapsulamiento()
>>> x.atributo_publico
este atributo es privado.
>>> x._atributo_semi_privado
este atributo es 'ca... | mit | -8,376,594,411,097,522,000 | 30.333333 | 73 | 0.619923 | false | 2.988439 | false | false | false |
pashinin-com/pashinin.com | src/ege/migrations/0006_auto_20170217_1608.py | 1 | 1323 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-17 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('edu', '0007_auto_20170217_1434'),
('ege', '0005_auto_20170129_0117'),
]
ope... | gpl-3.0 | 364,146,395,202,600,960 | 38.966667 | 187 | 0.593828 | false | 2.93154 | false | false | false |
tweakyllama/Arduino-Projects | I2C/src/raspberry.py | 1 | 1938 | import time
import smbus
class I2C(object):
@staticmethod
def getPiVersion():
"Gets the version number of the Pi board"
try:
with open('/proc/cpuinfo', 'r') as infile:
for line in infile:
# Match a line of the form "Revision : 0002" while ignoring extra
# info in front of... | gpl-2.0 | 7,011,148,986,396,381,000 | 32.413793 | 87 | 0.615067 | false | 3.388112 | false | false | false |
joshbuddy/crew | pitcrew/tasks/ensure/aws/route53/has_records.py | 1 | 1339 | import json
import asyncio
from pitcrew import task
@task.arg("zone_id", desc="The zone id to operate on", type=str)
@task.arg("records", desc="A list of records to ensure are set", type=list)
class HasRecords(task.BaseTask):
"""Ensure route53 has the set of records"""
async def verify(self):
json_ou... | mit | 3,340,604,327,670,191,000 | 36.194444 | 153 | 0.589246 | false | 3.729805 | false | false | false |
niavok/perroquet | perroquetlib/repository/exercise_repository_exercise.py | 1 | 15308 | #! /usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2011 Frédéric Bertolus.
# Copyright (C) 2009-2011 Matthieu Bizien.
#
# This file is part of Perroquet.
#
# Perroquet 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 ... | gpl-3.0 | 3,889,338,079,324,293,000 | 32.346405 | 118 | 0.633281 | false | 4.052423 | false | false | false |
slub/vk2-georeference | georeference/utils/process/mapfile.py | 1 | 4870 | # -*- coding: utf-8 -*-
'''
Copyright (c) 2015 Jacob Mendt
Created on 04.08.15
@author: mendt
'''
import os
import uuid
from mapscript import MS_IMAGEMODE_RGB, MS_OFF, MS_PIXELS, MS_LAYER_RASTER, layerObj, mapObj, MS_ON, outputFormatObj
from georeference.utils.exceptions import MapfileBindingInitalizationException
... | gpl-3.0 | 5,549,427,881,581,592,000 | 35.074074 | 116 | 0.641684 | false | 3.858954 | false | false | false |
holgerd77/django-public-project | public_project/south_migrations/0023_auto__del_field_siteconfig_navi_link_color.py | 1 | 21861 | # -*- coding: utf-8 -*-
import 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 'SiteConfig.navi_link_color'
db.delete_column(u'public_project_siteconfig', 'navi_link_colo... | bsd-3-clause | -2,835,805,165,672,189,400 | 81.18797 | 227 | 0.558803 | false | 3.71849 | true | false | false |
neuro-ml/reskit | reskit/core.py | 1 | 21723 | """ Core classes. """
from sklearn.externals.joblib import Parallel, delayed
from sklearn.model_selection import cross_val_score, cross_val_predict
from sklearn.model_selection import GridSearchCV
from sklearn.metrics.scorer import check_scoring
from sklearn.pipeline import Pipeline
from sklearn.base import Transform... | bsd-3-clause | 620,806,418,496,660,200 | 36.42931 | 90 | 0.554655 | false | 4.429504 | false | false | false |
lcary/nbd | nbd/export.py | 1 | 3791 | from abc import (ABCMeta, abstractmethod, abstractproperty)
from os import path as ospath
import logging
import nbformat
from nbconvert import (PythonExporter, RSTExporter)
from nbd.fileops import (get_file_id, write_file)
EXPORT_FORMAT_PYTHON = 'python'
EXPORT_FORMAT_RST = 'rst'
logger = logging.getLogger()
clas... | mit | 7,295,198,112,324,375,000 | 30.330579 | 78 | 0.710367 | false | 3.837045 | false | false | false |
GeosoftInc/gxpy | geosoft/gxapi/GXSTR.py | 1 | 48660 | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace the code in this block
### end... | bsd-2-clause | -3,684,899,027,531,421,700 | 31.354388 | 188 | 0.58097 | false | 3.722745 | false | false | false |
wbali/rwc-inventory-manager | inventory_manager_app/stock/forms.py | 1 | 1742 | from flask_wtf import FlaskForm
from wtforms import StringField, DateField, IntegerField, SelectField, DecimalField
from wtforms.validators import DataRequired, Optional
from wtforms.widgets import TextArea
class StockForm(FlaskForm):
stock_id = IntegerField()
item_name = StringField("Item name", validators... | mit | -1,446,767,546,980,391,400 | 27.57377 | 83 | 0.695178 | false | 4.695418 | false | false | false |
Arcanemagus/SickRage | sickbeard/providers/rarbg.py | 1 | 6962 | # coding=utf-8
# Author: Dustyn Gibson <miigotu@gmail.com>
#
# URL: https://sick-rage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 ... | gpl-3.0 | 7,859,844,668,399,947,000 | 38.333333 | 149 | 0.548118 | false | 4.234793 | false | false | false |
JarbasAI/jarbas-core | mycroft/jarbas-skills/skill_trivia/__init__.py | 1 | 10505 | from adapt.intent import IntentBuilder
from mycroft.skills.core import MycroftSkill
import random, math, os, sys
from os.path import dirname
path= dirname(dirname(__file__))
sys.path.append(path)
# import intent layers
from service_intent_layer import IntentParser
__author__ = 'jarbas'
class MathQuestions:
def ... | gpl-3.0 | -7,013,586,128,043,303,000 | 38.645283 | 135 | 0.58991 | false | 4.029536 | false | false | false |
ZeitgeberH/nengo | nengo/tests/test_config.py | 1 | 3332 | import pytest
import nengo
import nengo.config
def test_config():
@nengo.config.configures(nengo.Ensemble)
class TestConfigEnsemble(nengo.config.ConfigItem):
something = nengo.config.Parameter(None)
other = nengo.config.Parameter(0)
@nengo.config.configures(nengo.Connection)
class Te... | gpl-3.0 | 283,863,634,523,770,460 | 29.568807 | 72 | 0.654862 | false | 3.653509 | true | false | false |
FedoraScientific/salome-geom | src/GEOM_SWIG/geomBuilder.py | 1 | 644045 | # -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your ... | lgpl-2.1 | -8,497,507,476,621,121,000 | 48.652687 | 169 | 0.597899 | false | 4.442548 | true | false | false |
vindar/mtools | tools/mtools-project.py | 1 | 8519 | #!/usr/bin/env python
#
# Copyright 2015 Arvind Singh
# This file is part of the mtools library.
#
# mtools 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 optio... | gpl-3.0 | -2,650,942,873,968,966,000 | 25.538941 | 98 | 0.620965 | false | 3.335552 | false | false | false |
adieyal/billtracker | code/billtracker/scrapers/models.py | 1 | 3436 | from django.db import models
from django.conf import settings
import bills.models as bill_models
class GovInfoScraper(models.Model):
bill_name = models.CharField(max_length=100)
bill_code = models.CharField(max_length=10)
comment_startdate = models.DateField()
comment_enddate = models.DateField()
s... | bsd-3-clause | -3,848,321,381,667,851,000 | 32.686275 | 87 | 0.625146 | false | 3.613039 | false | false | false |
tamentis/psutil | examples/process_detail.py | 1 | 4156 | #!/usr/bin/env python
#
# $Id$
#
# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Print detailed information about a process.
"""
import os
import datetime
import socket
import sys
import... | bsd-3-clause | 8,451,998,020,740,110,000 | 31.46875 | 87 | 0.492541 | false | 3.434711 | false | false | false |
mupen64plus/mupen64plus-ui-python | src/m64py/frontend/dialogs.py | 1 | 2520 | # -*- coding: utf-8 -*-
# Author: Milan Nikolic <gen2brain@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | -3,016,938,212,530,211,000 | 32.6 | 71 | 0.678968 | false | 3.772455 | false | false | false |
Joshuaalbert/IonoTomo | src/ionotomo/inversion/gradient_and_adjoint.py | 1 | 13841 | '''The gradient for steepest direction, i.e. <Cm, d/dm(-log(posterior))>
is equal to Adjoint(G).(g(m) - d_obs) + (m - m_prior) = Cm.G^t.Cd^-1 .( g(m) - d_obs ) + (m - m_prior)'''
from ionotomo.geometry.tri_cubic import bisection
import numpy as np
from scipy.integrate import simps
import dask.array as da
from... | apache-2.0 | 3,531,586,930,173,808,000 | 40.457055 | 156 | 0.449173 | false | 2.814355 | false | false | false |
freerangerouting/frr | tests/topotests/lib/common_config.py | 1 | 120562 | #
# Copyright (c) 2019 by VMware, Inc. ("VMware")
# Used Copyright (c) 2018 by Network Device Education Foundation, Inc.
# ("NetDEF") in this file.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and... | gpl-2.0 | -3,059,218,530,192,539,600 | 33.986071 | 96 | 0.456985 | false | 4.476367 | true | false | false |
Zarthus/Reconcile | tools/ignorelist.py | 1 | 2663 | """
The MIT License (MIT)
Copyright (c) 2014 - 2015 Jos "Zarthus" Ahrens and contributors
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 rig... | mit | 5,329,721,178,999,119,000 | 30.702381 | 77 | 0.640631 | false | 4.521222 | false | false | false |
pierce403/EmpirePanel | lib/modules/situational_awareness/network/powerview/user_hunter.py | 1 | 5974 | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-UserHunter',
'Author': ['@harmj0y'],
'Description': ('Finds which machines users of a specified group are logged into. '
'P... | bsd-3-clause | -559,141,152,159,625,900 | 36.572327 | 128 | 0.4307 | false | 4.692852 | false | false | false |
kernsuite-debian/lofar | MAC/Deployment/data/Coordinates/CoordMenu.py | 1 | 10615 | #!/usr/bin/env python
# P.Donker ASTRON
# and Arno Schoenmakers the Great
import sys
import pg
from subprocess import Popen
import os
import getpass
from optparse import OptionParser
from database import getDBname, getDBhost, getDBport, getDBuser
VERSION = '0.0.2' # version of this script
default_targetdate='2009.5'
... | gpl-3.0 | -5,528,725,688,728,908,000 | 33.464286 | 99 | 0.557419 | false | 3.702476 | false | false | false |
JaneliaSciComp/osgpyplusplus | examples/osg-tutorial/tut2_textures.py | 1 | 6318 | #!/bin/env python
# Translated into python from C++ tutorial at
# http:#trac.openscenegraph.org/projects/osg/wiki/Support/Tutorials/Textures
from osgpypp import osg, osgDB, osgViewer
import sys
# Creating Textured Geometry using StateSets
# Goals
# Add a texture to geometry defined by OpenGL drawing primitives intr... | bsd-3-clause | 5,011,954,014,060,613,000 | 38.242236 | 108 | 0.738841 | false | 3.480992 | false | false | false |
sbobovyc/GameTools | ImmunityDebugger/collectLoopRets.py | 1 | 2256 | #!/usr/bin/env python
import immlib
from immlib import LogBpHook, BpHook
class ReturnBP(BpHook):
def __init__(self):
BpHook.__init__(self)
def run(self, regs):
imm = immlib.Debugger()
eip = regs["EIP"]
imm.log("bp, EIP is 0x%08X " % eip)
imm.addKnowledge("0x%0... | gpl-3.0 | 2,774,366,314,029,570,600 | 29.90411 | 107 | 0.503103 | false | 3.503106 | false | false | false |
JeanOlivier/pyHegel | pyHegel/__init__.py | 1 | 2890 | # -*- coding: utf-8 -*-
########################## Copyrights and license ############################
# #
# Copyright 2011-2015 Christian Lupien <christian.lupien@usherbrooke.ca> #
# ... | gpl-3.0 | 6,260,107,342,247,178,000 | 47.166667 | 104 | 0.510035 | false | 4.76112 | false | false | false |
dknlght/dkodi | src/script.module.urlresolver/lib/urlresolver/plugins/vevio.py | 1 | 2891 | """
Plugin for UrlResolver
Copyright (C) 2018 jsergio
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.
... | gpl-2.0 | -3,188,007,391,110,179,000 | 35.1375 | 112 | 0.628156 | false | 3.803947 | false | false | false |
GPflow/GPflowOpt | gpflowopt/acquisition/pof.py | 1 | 3594 | # Copyright 2017 Joachim van der Herten
#
# 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,453,852,975,451,257,900 | 41.282353 | 145 | 0.687257 | false | 4.093394 | false | false | false |
adamchainz/django-mysql | src/django_mysql/utils.py | 1 | 9970 | import os
import subprocess
import time
from collections import defaultdict
from queue import Empty, Queue
from threading import Lock, Thread
from weakref import WeakKeyDictionary
import django
from django.db import DEFAULT_DB_ALIAS
from django.db import connection as default_connection
from django.db import connectio... | bsd-3-clause | -5,315,907,786,015,990,000 | 30.550633 | 87 | 0.590672 | false | 4.020161 | false | false | false |
th0mmeke/toyworld | kinetics_2D.py | 1 | 7872 | """
Created on 22/03/2013
@author: thom
"""
import random
import math
import logging
from rdkit.Chem import AllChem as Chem
from ULPS import Float_t
import config
class Kinetics2D(object):
@classmethod
def get_ke(cls, m, x, y):
return 0.5 * m * (x * x + y * y)
@classmethod
def get_speed(... | gpl-3.0 | 6,768,914,614,100,645,000 | 43.982857 | 184 | 0.597053 | false | 3.107777 | false | false | false |
Diviyan-Kalainathan/causal-humans | ClusterAnalysis/v_test.py | 1 | 2510 | '''
Analyses the clusters and returns v-type of vars
Author : Diviyan Kalainathan
Date : 28/06/2016
DEPRECATED - Use plot-gen/Cluster_extraction instead
'''
import csv,numpy
def v_test(input_data,data_folder,num_clusters, num_vars, list_vars):
"""
:param input_data: Data used to do the clustering(String)
:... | mit | 1,592,596,920,828,584,400 | 42.293103 | 202 | 0.584064 | false | 3.632417 | false | false | false |
wateraccounting/wa | Collect/GLEAM/DataAccess.py | 1 | 8456 | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Collect/GLEAM
"""
# import general python modules
import os
import numpy as np
import pandas as pd
import glob
from joblib import... | apache-2.0 | 4,973,839,900,364,555,000 | 32.828 | 121 | 0.607498 | false | 3.391897 | false | false | false |
delacuesta13/Who-am-I | itsme/models.py | 1 | 4585 | from django.db import models
from django.contrib.auth.models import User
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
phone = models.CharField(max_length=100, blank=True)
location = models.CharField(max_length=100, blank=True)
profession = models.CharField(max_length=100... | gpl-3.0 | -7,769,707,275,793,938,000 | 40.306306 | 87 | 0.68506 | false | 3.752046 | false | false | false |
steny138/PythonTaipeiOpendata | migrations/versions/3974d310ac43_.py | 1 | 3035 | """empty message
Revision ID: 3974d310ac43
Revises: edfc37a36914
Create Date: 2016-11-11 16:39:16.828429
"""
# revision identifiers, used by Alembic.
revision = '3974d310ac43'
down_revision = 'edfc37a36914'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | apache-2.0 | 1,569,172,373,200,974,000 | 41.746479 | 77 | 0.685008 | false | 3.31694 | false | false | false |
mcfongtw/MkConfig | mkconfig/core/chain.py | 1 | 1494 | import logging
logger = logging.getLogger(__name__)
class ChainOfTransfiguration(object):
"""
A chain of responsibility implementation that channel through a series of transifgurations. One may depend
on previous step with respect to Context
"""
_chain = []
_context = {}
def __init__(s... | mit | -3,838,645,005,129,700,400 | 24.322034 | 110 | 0.609103 | false | 4.420118 | false | false | false |
tiborsimko/invenio-jsonschemas | invenio_jsonschemas/errors.py | 1 | 1593 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Invenio-JSONSchemas errors."""
from __future__ import absolute_import, print_func... | mit | 5,699,083,285,520,204,000 | 31.510204 | 72 | 0.625235 | false | 4.328804 | false | false | false |
qPCR4vir/orange3 | Orange/widgets/unsupervised/owpca.py | 1 | 14413 | from PyQt4.QtGui import QFormLayout, QColor, QApplication, QLineEdit
from PyQt4.QtCore import Qt, QTimer
import numpy
import pyqtgraph as pg
from Orange.data import Table, Domain, StringVariable
from Orange.data.sql.table import SqlTable, AUTO_DL_LIMIT
from Orange.preprocess import Normalize
from Orange.projection im... | bsd-2-clause | 5,290,078,399,030,746,000 | 34.153659 | 80 | 0.576077 | false | 3.978195 | false | false | false |
apporc/neutron | neutron/db/db_base_plugin_v2.py | 1 | 64808 | # Copyright (c) 2012 OpenStack Foundation.
# 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... | apache-2.0 | -2,228,443,469,237,160,700 | 46.201748 | 79 | 0.556737 | false | 4.275498 | false | false | false |
tmtowtdi/django | mysite/polls/admin.py | 1 | 1401 |
from django.contrib import admin
from polls.models import Question, Choice
class ChoiceInLine( admin.TabularInline ):
model = Choice
extra = 3
class QuestionAdmin( admin.ModelAdmin ):
### By default, the Question object's str() is displayed on the "list of
### questions" page. Tell it to display ... | artistic-2.0 | -2,186,924,659,745,510,700 | 33.170732 | 91 | 0.630978 | false | 4.132743 | false | false | false |
bsipocz/astropy | astropy/utils/misc.py | 1 | 40318 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
A "grab bag" of relatively small general-purpose utilities that don't have
a clear module/package to live in.
"""
import abc
import copy
import contextlib
import difflib
import inspect
import json
import os
import signal
import... | bsd-3-clause | -8,344,829,424,143,748,000 | 33.369991 | 124 | 0.597331 | false | 4.412389 | false | false | false |
CoreSecurity/pysap | pysap/utils/fields.py | 1 | 12226 | # ===========
# pysap - Python library for crafting SAP's network protocols packets
#
# SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved.
#
# The library was designed and developed by Martin Gallo from
# the SecureAuth's Innovation Labs team.
#
# This program is free software; you can red... | gpl-2.0 | 3,712,130,716,518,683,000 | 31.515957 | 117 | 0.586128 | false | 3.613952 | false | false | false |
mbiokyle29/pipelines | EBseq/ebseq_extras.py | 1 | 3684 | import os.path
import re
# don't use slots since we only have a few of these guys
class _sampleRec():
def __init__(self, name, mean, std, condition):
self.name = name
self.mean = int(mean)
self.std = int(std)
self.condition = int(condition)
class EbseqExtras():
def __init__(s... | mit | -1,907,952,357,245,468,400 | 29.708333 | 103 | 0.51683 | false | 4.070718 | false | false | false |
taigaio/taiga-back | taiga/export_import/management/commands/dump_project.py | 1 | 2981 | # -*- coding: utf-8 -*-
# Copyright (C) 2014-present Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later ver... | agpl-3.0 | 5,321,887,911,599,760,000 | 39.283784 | 110 | 0.571956 | false | 4.429421 | false | false | false |
GoogleCloudPlatform/PerfKitBenchmarker | perfkitbenchmarker/linux_packages/maven.py | 1 | 4623 | # Copyright 2020 PerfKitBenchmarker 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 appli... | apache-2.0 | -5,603,522,190,831,945,000 | 34.022727 | 100 | 0.679645 | false | 3.039448 | false | false | false |
mindbody/API-Examples | SDKs/Python/swagger_client/models/time_clock_report.py | 1 | 7634 | # coding: utf-8
"""
MINDBODY Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impor... | bsd-2-clause | -8,113,522,800,906,684,000 | 28.459459 | 132 | 0.573788 | false | 3.898825 | false | false | false |
SymbiFlow/sv-tests | tools/runners/Yosys.py | 1 | 1388 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import os
from BaseRunner import BaseRunner
... | isc | -7,568,493,084,167,110,000 | 24.703704 | 65 | 0.54755 | false | 3.242991 | false | false | false |
fedora-conary/conary | conary/trovetup.py | 1 | 7716 | #
# Copyright (c) SAS Institute 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 w... | apache-2.0 | -8,419,735,200,402,609,000 | 34.232877 | 79 | 0.616252 | false | 4.123998 | false | false | false |
allancaffee/scaly-mongo | scalymongo/structure_walker.py | 1 | 4037 | """
Structure Walker
================
A utility used to aid in structure validation.
"""
from inspect import isclass
from scalymongo.errors import ValidationError
class StructureWalker(object):
"""A helper class to recurse a :class:`dict`-like object in accordance with
a structure.
:param field_transl... | bsd-3-clause | 7,673,683,350,043,057,000 | 34.725664 | 79 | 0.567005 | false | 4.34086 | false | false | false |
FedoraScientific/salome-smesh | src/Tools/blocFissure/gmu/rotTrans.py | 1 | 2187 | # -*- coding: utf-8 -*-
import logging
from geomsmesh import geompy
import math
from triedreBase import triedreBase
O, OX, OY, OZ = triedreBase()
# -----------------------------------------------------------------------------
# --- operateur de rotation translation d'un objet centré à l'origine
def rotTrans(objet, o... | lgpl-2.1 | 1,145,417,926,614,904,200 | 37.035088 | 121 | 0.677122 | false | 2.837696 | false | false | false |
Twi/amaya | amaya/base.py | 1 | 8526 | from exceptions import ConnectionError
from ircmess import IRCLine
from select import select
import socket
import ssl
class IRCBot:
"""
An IRCBot is a class that maintains a connection with a remote IRC server
and keeps track of channel members, information about the remote server,
and other things th... | mit | 6,726,665,231,286,973,000 | 27.51505 | 82 | 0.554891 | false | 3.985975 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.