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 |
|---|---|---|---|---|---|---|---|---|---|---|
mozilla/kitsune | kitsune/kpi/management/commands/update_l10n_metric.py | 1 | 2630 | from datetime import date, timedelta
from django.conf import settings
from django.core.management.base import BaseCommand
from kitsune.kpi.management import utils
from kitsune.kpi.models import L10N_METRIC_CODE, Metric, MetricKind
from kitsune.sumo import googleanalytics
class Command(BaseCommand):
help = "Calc... | bsd-3-clause | -4,162,794,303,850,482,700 | 38.253731 | 96 | 0.620152 | false |
mikeireland/pynrm | go.py | 1 | 3044 | # -*- coding: utf-8 -*-
"""
Created on Fri May 2 13:49:11 2014
@author: mireland
A script for testing... Change this to try out your own analysis.
"""
import astropy.io.fits as pyfits
import numpy as np
import matplotlib.pyplot as plt
from azimuthalAverage import *
# This includes an AO Instrument called "aoinst"
... | mit | 485,956,035,243,356,400 | 32.450549 | 112 | 0.669185 | false |
liveaverage/baruwa | src/baruwa/messages/management/commands/updatesarules.py | 1 | 2104 | #
# Baruwa - Web 2.0 MailScanner front-end.
# Copyright (C) 2010-2012 Andrew Colin Kissa <andrew@topdog.za.net>
#
# 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... | gpl-2.0 | -2,498,919,949,420,552,000 | 35.912281 | 73 | 0.620722 | false |
andrescodas/casadi | test/python/function.py | 1 | 39929 | #
# This file is part of CasADi.
#
# CasADi -- A symbolic framework for dynamic optimization.
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
# K.U. Leuven. All rights reserved.
# Copyright (C) 2011-2014 Greg Horn
#
# CasADi is free software; you can... | lgpl-3.0 | -8,780,133,748,727,028,000 | 25.182951 | 131 | 0.50988 | false |
unicef/un-partner-portal | backend/unpp_api/apps/project/exports/pdf/cfei.py | 1 | 10729 | import hashlib
import os
import tempfile
from urllib.parse import quote
from collections import defaultdict
from babel.dates import get_timezone, format_datetime, format_date
from django.http import HttpResponse
from django.utils import timezone
from reportlab.lib import colors
from reportlab.lib.enums import TA_CENTE... | apache-2.0 | -6,228,119,588,589,943,000 | 35.003356 | 117 | 0.530338 | false |
jodal/pykka | tests/test_registry.py | 1 | 5406 | import pytest
from pykka import ActorRegistry
pytestmark = pytest.mark.usefixtures("stop_all")
class ActorBase:
received_messages = None
def __init__(self):
super().__init__()
self.received_messages = []
def on_receive(self, message):
self.received_messages.append(message)
@p... | apache-2.0 | -6,687,783,531,278,411,000 | 27.15625 | 88 | 0.689974 | false |
myarjunar/QGIS | python/plugins/processing/gui/ScriptEdit.py | 1 | 7614 | # -*- coding: utf-8 -*-
"""
***************************************************************************
ScriptEdit.py
---------------------
Date : April 2013
Copyright : (C) 2013 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
****************... | gpl-2.0 | 8,183,763,172,976,205,000 | 34.746479 | 79 | 0.5855 | false |
rockfruit/bika.lims | bika/lims/browser/viewlets.py | 1 | 5596 | # This file is part of Bika LIMS
#
# Copyright 2011-2016 by it's authors.
# Some rights reserved. See LICENSE.txt, AUTHORS.txt.
import json
import urllib
import time
from Products.CMFCore.utils import getToolByName
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone import api
from plon... | agpl-3.0 | 2,753,649,612,882,502,000 | 34.417722 | 79 | 0.629378 | false |
jgerschler/ESL-Games | Kinect/Adjective Adverb/Adverb or Adjective (Deprecated)/AdverbOrAdjectiveFullScreen.py | 1 | 12778 | # for python 3
# You'll need to customize this according to your needs. Proper orientation of
# the kinect is vital; if participants are able to maintain their head or wrists
# continuously inside the word rects, they will repeatedly trigger the collision
# detection
from pykinect2 import PyKinectV2
from pykinect2.PyKi... | mit | -6,398,711,910,049,684,000 | 48.527132 | 140 | 0.529191 | false |
wxgeo/geophar | wxgeometrie/sympy/codegen/tests/test_applications.py | 7 | 2142 | # This file contains tests that exercise multiple AST nodes
from sympy.external import import_module
from sympy.printing.ccode import ccode
from sympy.utilities._compilation import compile_link_import_strings, has_c
from sympy.utilities._compilation.util import TemporaryDirectory, may_xfail
from sympy.utilities.pytest... | gpl-2.0 | 2,645,039,982,932,565,000 | 37.945455 | 94 | 0.643791 | false |
1kastner/analyse_weather_data | gather_weather_data/wunderground/summarize_raw_airport_data.py | 1 | 8898 | """
Summarize all downloaded airport weather station data files.
Uses UTC time zone.
Use
-m gather_weather_data.wunderground.summarize_raw_airport_data
to run the demo
"""
import os
import json
import datetime
import logging
import numpy
import pandas
import metar.Metar # needs https://github.com/tomp/python-meta... | agpl-3.0 | 770,557,623,363,537,300 | 36.70339 | 119 | 0.647786 | false |
uber/ludwig | ludwig/encoders/sequence_encoders.py | 1 | 102959 | #! /usr/bin/env python
# coding=utf-8
# Copyright (c) 2019 Uber Technologies, 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
#
# Unles... | apache-2.0 | -4,513,123,417,475,683,300 | 47.519793 | 88 | 0.562719 | false |
husman/WoTrack | apps/wordtrack/levenshtein_reduce.py | 1 | 1308 | from nltk import metrics
class LevenshteinReduce(object):
def __init__(self, phrase, tracks):
"""
:param phrase: (str) phrase or ngram
:param tracks: (list) tacks to perform best string matching with
:return: Returns the track from the list of tracks best matching the given phrase... | mit | 3,303,247,753,938,505,700 | 30.926829 | 89 | 0.541284 | false |
samuelclay/NewsBlur | apps/monitor/views/newsblur_app_times.py | 1 | 1188 | from django.views import View
from django.shortcuts import render
import datetime
from django.conf import settings
class AppTimes(View):
def get(self, request):
servers = dict((("%s" % s['_id'], s['page_load']) for s in self.stats))
data = servers
chart_name = "app_times"
chart_typ... | mit | 787,922,604,095,509,000 | 28.7 | 98 | 0.496633 | false |
libvirt/autotest | frontend/migrations/046_merge_databases.py | 1 | 1604 | try:
import autotest.common as common
except ImportError:
import common
from autotest_lib.database import db_utils, migrate
TKO_MIGRATION_NAME = '031_rename_tko_tables'
migrations_module = __import__('autotest_lib.tko.migrations', globals(),
locals(), [TKO_MIGRATION_NAME])
tko_mi... | gpl-2.0 | 150,529,076,999,455,550 | 38.121951 | 80 | 0.638404 | false |
AustP/Gitso | ArgsParser.py | 1 | 6563 | #! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@author: AustP
@copyright: 2008 - 2014
Gitso is free software: you can redistribute it a... | gpl-3.0 | 8,648,307,074,989,359,000 | 31.171569 | 134 | 0.612525 | false |
googleapis/python-bigquery | tests/unit/helpers.py | 1 | 2391 | # Copyright 2018 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 agreed to in writing, s... | apache-2.0 | -3,217,451,600,862,831,600 | 28.158537 | 88 | 0.726474 | false |
marios-zindilis/musicbrainz-django-models | musicbrainz_django_models/models/l_release_group_url.py | 1 | 2149 | """
.. module:: l_release_group_url
The **L Release Group Url** Model.
PostgreSQL Definition
---------------------
The :code:`l_release_group_url` table is defined in the MusicBrainz Server as:
.. code-block:: sql
CREATE TABLE l_release_group_url ( -- replicate
id SERIAL,
link ... | gpl-2.0 | 6,486,950,495,496,527,000 | 35.423729 | 82 | 0.652862 | false |
Cynerd/linux-conf-perf | scripts/database.py | 1 | 4605 | import os
import datetime
import postgresql
import collections
import utils
import exceptions
from conf import conf
from conf import sf
def __git_describe__():
return utils.callsubprocess('git_describe',
conf.git_describe_cmd, False, True)[0]
def __git_commit__():
return utils.callsubprocess('git_rev_parse',
... | gpl-2.0 | 6,165,452,961,440,444,000 | 27.602484 | 100 | 0.621498 | false |
gregoil/rotest | src/rotest/cli/discover.py | 1 | 2610 | # pylint: disable=protected-access
from __future__ import absolute_import
import os
import unittest
from fnmatch import fnmatch
from collections import OrderedDict
import py
from rotest.common import core_log
from rotest.core.case import TestCase
from rotest.core.flow import TestFlow
from rotest.common.config import ... | mit | 5,184,662,427,198,314,000 | 27.064516 | 77 | 0.622222 | false |
ismir/conference-archive | tests/test_zen_api.py | 1 | 1981 | import pytest
import os
import zen.api
OFFLINE = not zen.api._is_online()
OFFLINE_REASON = 'Not online, skipping integration tests'
@pytest.mark.skipif(OFFLINE, reason=OFFLINE_REASON)
def test_zen_api_create_id():
assert zen.api.create_id(stage=zen.api.DEV) is not None
@pytest.fixture()
def pdf_file(resource... | mit | -6,261,890,807,430,278,000 | 27.710145 | 75 | 0.71681 | false |
VerstandInvictus/PatternsEmerge | backend/mdcore.py | 1 | 2290 | import codecs
import config
import unidecode
from pyvirtualdisplay import Display
from time import sleep
from selenium import webdriver, common
user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36' \
' (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
class mdLogger:
def __init... | mit | 7,318,596,778,538,684,000 | 34.230769 | 77 | 0.625328 | false |
reviewboard/rbtools | rbtools/utils/console.py | 1 | 5835 | from __future__ import print_function, unicode_literals
import getpass
import logging
import os
import subprocess
import sys
from distutils.util import strtobool
from six.moves import input
from rbtools.utils.encoding import force_unicode
from rbtools.utils.errors import EditorError
from rbtools.utils.filesystem imp... | mit | 5,098,123,812,060,817,000 | 26.785714 | 79 | 0.606855 | false |
dpapathanasiou/cmdline-news | cmdlinenews.py | 1 | 10334 | #!/usr/bin/env python
"""
This module uses feedparser to get item titles and links from any rss
feed, and presents the results as simple command-line output.
It's great for browsing your favorite sites unobtrusively, without having
to open a browser window.
Feeds are memoized for feed_memoize_interval seconds after ... | mit | -3,972,210,597,351,385,000 | 33.677852 | 103 | 0.566093 | false |
mwalter416/mse | mse.py | 1 | 3866 | import json
import urllib2
mseServers=[
'1.2.3.4',
'5.6.7.8',
'9.10.11.12'
]
def getClients(server, user, password):
passwordManager = urllib2.HTTPPasswordMgrWithDefaultRealm()
passwordManager.add_password(None,"https://"+server+"/",user,password)
authHandler = urlli... | gpl-3.0 | -870,076,906,316,883,200 | 41.955556 | 210 | 0.605277 | false |
jaraco/aspen | aspen/http/__init__.py | 1 | 1364 | """
aspen.http
++++++++++
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
status_strings = {
100 : "Continue",
101 : "Switching Protocols",
200 : "OK",
201 : "Created",
202 : "Accepted",
2... | mit | -7,257,926,841,668,285,000 | 24.735849 | 44 | 0.594575 | false |
tjcsl/ion | intranet/apps/groups/views.py | 1 | 1335 | import logging
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from ..auth.decorators import admin_required, deny_restricted
from .forms import GroupForm
from .models import Group
logger = logging.getLogger(__name__)
# thi... | gpl-2.0 | -4,160,988,958,609,916,400 | 30.785714 | 127 | 0.698876 | false |
305120262/ArcGISServerManageTools | GetServerLog.py | 1 | 3475 | #coding=utf-8
"""
-------------------------------------------------------------------------------
Name: getsvrlog.py
Purpose: Collect ArcGIS Server Site Logs
Author: Sean.L (luwl@esrichina.com.cn)
Created: 8/25/16
Copyright: (c) Sean.L 2016
---------------------------------------------------------... | apache-2.0 | -3,539,942,323,636,875,000 | 31.783019 | 98 | 0.573237 | false |
apporc/neutron | neutron/db/address_scope_db.py | 1 | 5406 | # Copyright (c) 2015 Huawei Technologies Co.,LTD.
#
# 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 app... | apache-2.0 | 7,848,985,610,826,370,000 | 42.596774 | 78 | 0.617462 | false |
michaldaniel/Ebook-Viewer | src/main.py | 1 | 3097 | #!/usr/bin/env python3
# Easy eBook Viewer by Michal Daniel
# Easy eBook Viewer 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 Foundation.
# Easy eBook Viewer is distributed in the hope that it will be useful, but WITHO... | gpl-3.0 | 7,647,124,034,847,273,000 | 36.768293 | 94 | 0.649338 | false |
gersteinlab/AlleleDB | alleledb_pipeline/fasta.py | 1 | 1219 |
import sys
class fastaReader:
def __init__(self, fn):
self.done=False
self.ifile=open(fn)
self.hdr=self.ifile.readline().rstrip()
def __iter__(self):
return self
def next(self):
if self.done:
raise StopIteration
body=''
while True:
... | cc0-1.0 | -6,581,678,336,333,099,000 | 24.93617 | 56 | 0.496308 | false |
mishravikas/geonode-cas | geonode/api/api.py | 1 | 6609 | from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.contrib.contenttypes.models import ContentType
from geonode.base.models import TopicCategory
from geonode.layers.models import Layer
from geonode.maps.models import Map
from geonode.documents.models import Document
fro... | gpl-3.0 | -4,784,719,522,403,801,000 | 30.626794 | 104 | 0.64397 | false |
thezbyg/gpick | tools/gpick.py | 1 | 5990 | import os, time, re, string, glob, subprocess
from .gettext import *
from .resource_template import *
from .ragel import *
from .template import *
from SCons.Script import Chmod, Flatten
from SCons.Util import NodeList
from SCons.Script.SConscript import SConsEnvironment
def MatchFiles (files, path, repath, dir_exclud... | bsd-3-clause | -5,433,451,065,571,015,000 | 28.95 | 162 | 0.674624 | false |
wangyao1052/PyLitMath | LitMath/Quaternion.py | 1 | 7864 | import math
import Util
class Quaternion(object):
__slots__ = ['x', 'y', 'z', 'w']
__hash__ = None
def __init__(self, x=0.0, y=0.0, z=0.0, w=1.0):
self.x = float(x)
self.y = float(y)
self.z = float(z)
self.w = float(w)
def set(self, x, y, z, w):
sel... | mit | 6,612,314,253,307,068,000 | 30.71371 | 86 | 0.47177 | false |
avaitla/Haskell-to-C---Bridge | pygccxml-1.0.0/unittests/has_binary_operator_traits_tester.py | 1 | 1826 | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import unittest
import autoconfig
import parser_test_case
from pygccxml import utils
from pygccxml import parser
fr... | bsd-3-clause | -7,846,514,007,162,185,000 | 35.306122 | 101 | 0.609529 | false |
blkFinch/hutch-val-pair-project | AdventureGameMain.py | 1 | 6122 | '''
This is our main file
'''
import random
from Player import Player
def intro(): #intro to the GAME
print('Good morning')
input('What a weird dream you woke from, huh? PRESS ENTER')
input('Maybe once you open your eyes ... PRESS ENTER')
input('You will see something IS a little off ... PRESS ENTER')... | mit | -6,399,877,454,721,388,000 | 26.701357 | 88 | 0.526299 | false |
anthonybishopric/pyboxfs | setup.py | 1 | 2401 | #!/usr/bin/env python
#from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup
import sys
PY3 = sys.version_info >= (3,)
VERSION = "0.4.1"
COMMANDS = ['fscat',
'fscp',
'fsinfo',
'fsls',
'fsmv',
'fscp',
'fsrm',... | bsd-3-clause | 3,206,000,054,005,804,000 | 30.592105 | 251 | 0.572262 | false |
jkyeung/XlsxWriter | xlsxwriter/test/comparison/test_autofilter07.py | 1 | 2715 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | bsd-2-clause | -4,847,764,919,581,915,000 | 28.51087 | 79 | 0.556169 | false |
protagora/device_network_protocol | middleware/config/config.py | 1 | 8717 | import os
from dna.middleware.util.format import ConfigurationFormatFactory
class ConfigurationException(Exception):
pass
class Configuration(object):
# file write formats: json, yaml, xml...
FORMAT_JSON = ConfigurationFormatFactory.FORMAT_JSON
ERROR_READING_CONFIG = "Error reading configuration"
... | mit | -1,562,335,483,494,242,300 | 32.656371 | 127 | 0.571068 | false |
Xarenn/Clint | check_exercise.py | 1 | 1492 | from sys import platform
import subprocess
from web_utils import get_text
import psutil
application_code = get_text()
ClintC = ["system" , "cmd" , "fstream"]
ClintJava = ["cmd" , "Runtime" , "Process" , "InputStream" ]
ClintPython = ["popen" , "getopt" , "sys" , "cmd"]
def kill(pid):
process = psutil.Process(pi... | gpl-3.0 | 853,967,924,178,594,600 | 29.44898 | 81 | 0.644772 | false |
upconsulting/IsisCB | isiscb/isisdata/migrations/0024_auto_20160623_2302.py | 1 | 2305 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-06-23 23:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('isisdata', '0023_auto_20160621_1726'),
]
operations... | mit | -2,416,223,021,765,066,000 | 58.102564 | 568 | 0.598698 | false |
stuckj/dupeguru | cocoa/base/ui/main_menu.py | 1 | 4535 | ownerclass = 'AppDelegateBase'
ownerimport = 'AppDelegateBase.h'
edition = args.get('edition', 'se')
result = Menu("")
appMenu = result.addMenu("dupeGuru")
fileMenu = result.addMenu("File")
editMenu = result.addMenu("Edit")
actionMenu = result.addMenu("Actions")
owner.columnsMenu = result.addMenu("Columns")
modeMenu =... | gpl-3.0 | 4,438,039,141,243,665,400 | 54.304878 | 104 | 0.74333 | false |
alex/changes | changes/jobs/sync_build.py | 1 | 3768 | from datetime import datetime
from flask import current_app
from sqlalchemy.sql import func
from changes.config import db, queue
from changes.constants import Result, Status
from changes.db.utils import try_create
from changes.jobs.signals import fire_signal
from changes.models import Build, ItemStat, Job
from changes... | apache-2.0 | 3,599,841,873,223,517,700 | 29.634146 | 96 | 0.649151 | false |
xiafan68/socialtsquery | script/transform/mergetransform.py | 1 | 6150 | # encoding:utf8
import sys
import os
import json
from optparse import OptionParser
class Transformer(object):
def __init__(self, idir, prefixs, start):
self.idir = idir.decode("utf8")
self.prefixs = prefixs
self.start = start
def loadRecs(self, xaxis, yaxis):
self.xaxis = xaxis... | apache-2.0 | 178,341,992,861,829,660 | 38.921569 | 273 | 0.54224 | false |
EdDev/vdsm | tests/throttledlog_test.py | 1 | 3208 | #
# Copyright 2016 Red Hat, 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) any later version.
#
# This program is distributed in th... | gpl-2.0 | 3,209,195,312,421,084,700 | 33.494624 | 79 | 0.642145 | false |
Signbank/BSL-signbank | signbank/registration/migrations/0006_existing_users_must_agree_to_data_protection.py | 1 | 5683 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | bsd-3-clause | -8,236,108,371,473,989,000 | 66.654762 | 195 | 0.562907 | false |
chisimba/modules | geonames/resources/loadgeodata.py | 1 | 8244 |
import fileinput
import time
import base64
import xmlrpclib
import os
import random
import sys
import zipfile
import os.path
#Define some variables (Change these to suit your circumstances!)
SERV = 'http://127.0.0.1/'
UNAME = 'admin'
PWORD = 'a'
APIENDPOINT = '/app/index.php?module=api'
# -- END EDITABLE REGION -- Pl... | gpl-2.0 | 6,628,066,400,187,882,000 | 29.761194 | 221 | 0.635978 | false |
elthariel/dff | api/gui/widget/nodetree.py | 1 | 4524 | # DFF -- An Open Source Digital Forensics Framework
# Copyright (C) 2009-2010 ArxSys
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LICENSE file
# at the top of the source tree.
#
# See http://www.digital-forensic.org for more information about this... | gpl-2.0 | 1,806,217,078,347,832,600 | 38.33913 | 155 | 0.630195 | false |
developerworks/horizon | horizon/templatetags/horizon.py | 1 | 4694 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, 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
#
# ... | apache-2.0 | -6,105,045,522,224,733,000 | 33.014493 | 79 | 0.655731 | false |
vatslav/perfectnote | keepnote/extensions/editor_insert_date/__init__.py | 1 | 6514 | """
KeepNote
Insert date extension
"""
#
# KeepNote
# Copyright (c) 2008-2009 Matt Rasmussen
# Author: Matt Rasmussen <rasmus@mit.edu>
#
# 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 Foundat... | gpl-2.0 | -2,647,988,965,441,606,700 | 26.485232 | 84 | 0.547129 | false |
rishubhjain/monitoring-integration | setup.py | 1 | 3872 | import re
from setuptools import Command
from setuptools import find_packages
from setuptools import setup
import subprocess
try:
# Python 2 backwards compat
from __builtin__ import raw_input as input
except ImportError:
pass
def read_module_contents():
with open('version.py') as app_init:
ret... | lgpl-2.1 | 833,820,315,377,622,100 | 29.015504 | 89 | 0.57593 | false |
raccoongang/edx-platform | common/djangoapps/edxmako/tests.py | 1 | 7168 | import unittest
import ddt
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from django.test import TestCase
from django.test.client import RequestFactory
from django.test.utils import override_settings
from mock import Mock, patch
from edxmako import ... | agpl-3.0 | -8,118,186,956,944,947,000 | 44.081761 | 120 | 0.666434 | false |
amadeusproject/amadeuslms | log/search.py | 1 | 20242 | from elasticsearch_dsl.connections import connections
from elasticsearch_dsl import (
Q,
DocType,
Text,
Date,
Integer,
Long,
Object,
Search,
MultiSearch,
A
)
from elasticsearch.helpers import bulk
from elasticsearch import Elasticsearch
from datetime import datetime, timedelta
fr... | gpl-2.0 | -6,597,723,901,138,538,000 | 24.984596 | 101 | 0.421105 | false |
kubeflow/tf-operator | sdk/python/kubeflow/tfjob/models/v1_tf_job_list.py | 1 | 7083 | # Copyright 2019 kubeflow.org.
#
# 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,... | apache-2.0 | -8,458,928,608,242,113,000 | 31.342466 | 295 | 0.605817 | false |
teriyakichild/python-zcli | zcli/ClsDict.py | 1 | 6115 |
# Why cls_state... cls_state is a portable attrdict
class ClsDict(dict):
"""This is an attrdict implementation that provides:
* property access for dict elements
* overrides for properties
*
* Override getitem, setitem, getattr, and setattr to provide the following behaviors:
@property deco... | apache-2.0 | 5,009,992,875,838,406,000 | 42.06338 | 90 | 0.502371 | false |
peteboyd/lammps_interface | lammps_interface/lammps_potentials.py | 1 | 45269 | #!/usr/bin/env python
"""
Lammps potentital types.
"""
class BondPotential(object):
"""
Class to hold bond styles that are implemented in lammps
Purpose is to store info that the user wants to use to overwrite standard UFF output of lammps_interface
"""
class Class2(object):
"""Potential ... | mit | -365,919,329,613,635,260 | 32.833333 | 154 | 0.368354 | false |
docusign/docusign-python-client | docusign_esign/models/form_data_item.py | 1 | 6485 | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | mit | 5,604,492,730,149,338,000 | 27.568282 | 140 | 0.568851 | false |
dragondjf/musicplayer | objbrowser/__init__.py | 1 | 2196 | """ objbrowser package
"""
__all__ = ['browse', 'execute', 'create_object_browser', 'logging_basic_config']
import sys, os, logging, pprint, inspect
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from objbrowser.objectbrowser import ObjectBrowser
from objbrowser.version import PROGRAM_NA... | gpl-2.0 | 9,170,331,517,159,916,000 | 29.5 | 92 | 0.656648 | false |
LCAV/MP3Lab | psychoacoustic.py | 1 | 6282 | import numpy as np
import sys
from parameters import *
from common import add_db
def smr_bit_allocation(params,smr):
"""Calculate bit allocation in subbands from signal-to-mask ratio."""
bit_allocation = np.zeros(N_SUBBANDS, dtype='uint8')
bits_header = 32
bits_alloc = 4 * N_SUBBANDS * params.nch
bi... | gpl-3.0 | -1,006,138,368,114,001,700 | 26.313043 | 91 | 0.576568 | false |
kapily/dropcast | tal_scraper.py | 1 | 4679 | import urllib2
from bs4 import BeautifulSoup
import json
episode_page = 'https://www.thisamericanlife.org/radio-archives/episode/%i'
DOWNLOAD_URL = 'http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/%i.mp3'
import re
def get_episode_info(episode_id):
req = urllib2.Request(episode_page % episode_id, he... | mit | -5,505,101,537,983,017,000 | 38.652542 | 135 | 0.566574 | false |
kleisauke/pyvips | pyvips/tests/test_create.py | 1 | 16056 | # vim: set fileencoding=utf-8 :
import unittest
import pyvips
from .helpers import PyvipsTester
class TestCreate(PyvipsTester):
def test_black(self):
im = pyvips.Image.black(100, 100)
self.assertEqual(im.width, 100)
self.assertEqual(im.height, 100)
self.assertEqual(im.format, pyv... | mit | 3,602,800,372,133,500,000 | 35.995392 | 78 | 0.55867 | false |
IceCubeDev/hackerschool | WebServer/1.0/JUNK/simple/LogAnalyse.py | 1 | 1674 | __author__ = 'Ivan Dortulov'
class Client(object):
def __init__(self, id):
self.history = ["connect"]
self.name = id
import xml.etree.ElementTree as ET
tree = ET.parse('/home/ivan/Documents/Python/SubTasking/log.xml')
root = tree.getroot()
clients = []
def find_client(id):
for client in cl... | gpl-2.0 | 2,940,849,170,953,890,300 | 26.016129 | 76 | 0.568698 | false |
TaliesinSkye/evennia | src/typeclasses/models.py | 1 | 52630 | """
This is the *abstract* django models for many of the database objects
in Evennia. A django abstract (obs, not the same as a Python metaclass!) is
a model which is not actually created in the database, but which only exists
for other models to inherit from, to avoid code duplication. Any model can
import and inherit... | bsd-3-clause | 1,408,945,110,943,835,400 | 39.144928 | 354 | 0.601463 | false |
maloep/romcollectionbrowser | resources/lib/xbmc.py | 1 | 35342 | ## @package xbmc
# Various classes and functions to interact with XBMC.
#
"""
Various classes and functions to interact with Kodi.
"""
from builtins import str
from builtins import object
import os
import xbmcgui as _xbmcgui
_loglevel = 1
_settings = {'external_filemanaging': 'true'}
_filename = 'dummy.l... | gpl-2.0 | -1,056,369,458,410,369,400 | 23.316619 | 115 | 0.573029 | false |
tactcomplabs/gc64-hmcsim | test/sst/6.0.0/goblin_singlestream2.py | 1 | 2128 | import sst
# Define SST core options
sst.setProgramOption("timebase", "1ps")
sst.setProgramOption("stopAtCycle", "0 ns")
# Define the simulation components
comp_cpu = sst.Component("cpu", "miranda.BaseCPU")
comp_cpu.addParams({
"verbose" : 0,
"generator" : "miranda.SingleStreamGenerator",
"generatorParams.verbose"... | bsd-2-clause | -6,510,001,266,288,083,000 | 30.761194 | 109 | 0.653665 | false |
be-cloud-be/horizon-addons | horizon/school_course_description/__init__.py | 1 | 1024 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2015 be-cloud.be
# Jerome Sonnet <jerome.sonnet@be-cloud.be>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | agpl-3.0 | -1,533,728,369,068,066,300 | 43.565217 | 78 | 0.598633 | false |
dmerejkowsky/twittback | twittback/test/test_edit.py | 1 | 1694 | import types
import twittback.edit
import pytest
def setup_edit_test(tweet_factory, repository, mocker, *, nvim_returncode):
tweet_1 = tweet_factory.make_tweet(42, "First tweet!", date="2017-07-07")
tweet_2 = tweet_factory.make_tweet(57, "Second tweet", date="2017-08-02")
repository.add_tweets([tweet_1,... | mit | 1,600,812,956,185,833,700 | 29.25 | 79 | 0.675325 | false |
rhcarvalho/kombu | kombu/transport/django/__init__.py | 1 | 1865 | """Kombu transport using the Django database as a message store."""
from __future__ import absolute_import
from django.conf import settings
from django.core import exceptions as errors
from kombu.five import Empty
from kombu.transport import virtual
from kombu.utils.encoding import bytes_to_str
from kombu.utils.json ... | bsd-3-clause | -3,546,270,812,444,046,300 | 26.426471 | 78 | 0.64933 | false |
robwarm/gpaw-symm | gpaw/test/td_na2.py | 1 | 2589 | from ase import Atoms
from ase.units import Bohr
from gpaw import GPAW
from gpaw.tddft import TDDFT, photoabsorption_spectrum, \
LinearAbsorbingBoundary, P4AbsorbingBoundary, PML
from gpaw.test import equal
import os
# Sodium dimer, Na2
d = 1.5
atoms = Atoms(symbols='Na2',
positions=[( 0, 0, d),
... | gpl-3.0 | -2,869,614,445,619,258,000 | 27.766667 | 76 | 0.693704 | false |
fabrique/django-sortedm2m | test_project/settings.py | 1 | 3023 | # Django settings for testsite project.
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ... | bsd-3-clause | 4,290,291,372,759,314,400 | 28.067308 | 111 | 0.711876 | false |
showell/zulip | tools/lib/test_server.py | 1 | 3491 | import os
import subprocess
import sys
import time
from contextlib import contextmanager
from typing import Iterator, Optional
# Verify the Zulip venv is available.
from tools.lib import sanity_check
sanity_check.check_venv(__file__)
import django
import requests
MAX_SERVER_WAIT = 180
TOOLS_DIR = os.path.dirname(o... | apache-2.0 | -5,317,063,131,087,900,000 | 33.564356 | 94 | 0.625322 | false |
EmanueleCannizzaro/scons | test/Alias/action.py | 1 | 4351 | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to us... | mit | -4,555,432,439,422,890,000 | 30.078571 | 94 | 0.65732 | false |
willkg/pytest-wholenodeid | pytest_wholenodeid.py | 1 | 1244 | import sys
from _pytest.terminal import TerminalReporter
import pytest
__version__ = '0.2'
__releasedate__ = '20150826'
class WholeNodeIDTerminalReporter(TerminalReporter):
def _getfailureheadline(self, rep):
if hasattr(rep, 'location'):
fspath, lineno, domain = rep.location
# U... | bsd-3-clause | -2,336,017,143,045,652,000 | 31.736842 | 82 | 0.674437 | false |
ricardogsilva/PyWPS | tests/test_describe.py | 1 | 11512 | import unittest
from collections import namedtuple
from pywps import Process, Service, LiteralInput, ComplexInput, BoundingBoxInput
from pywps import LiteralOutput, ComplexOutput, BoundingBoxOutput
from pywps import E, WPS, OWS, OGCTYPE, Format, NAMESPACES, OGCUNIT
from pywps.inout.literaltypes import LITERAL_DATA_TYPE... | mit | 6,562,990,740,681,274,000 | 41.014599 | 114 | 0.599027 | false |
omaciel/robottelo | tests/upgrades/test_remoteexecution.py | 1 | 11012 | """Test for Remote Execution related Upgrade Scenario's
:Requirement: Upgraded Satellite
:CaseAutomation: Automated
:CaseLevel: Acceptance
:CaseComponent: API
:TestType: Functional
:CaseImportance: High
:Upstream: No
"""
from nailgun import entities
from robottelo.constants import DEFAULT_LOC, DEFAULT_ORG, DISTR... | gpl-3.0 | 1,559,263,921,155,933,400 | 39.189781 | 96 | 0.589266 | false |
zhangyake/python-itchat | test/songCloudImage.py | 1 | 2058 | '''
้่ฟ็จๆทid ่ทๅ็ฝๆไบ้ณไน็จๆทๅฌๆญๅๅฒ
ๆญๆฒไบๅพ
'''
import time
from os import path
from selenium import webdriver
import numpy as np
from bs4 import BeautifulSoup
from PIL import Image
from wordcloud import WordCloud
class SongCloudImage(object):
baseUrl = 'http://music.163.com/#/user/songs/rank?id={}'
def __init__(self, ... | mit | -7,244,206,359,720,226,000 | 32.724138 | 202 | 0.588957 | false |
Paulius-Maruska/python-isign | src/isign/connection.py | 1 | 1919 | from typing import Dict, Union
import requests
from .environment import (
get_default_environment,
ISignEnvironment,
)
from .error import ISignError
class ISignConnection:
def __init__(self,
access_token: str,
user_agent: str = "Python iSign",
environme... | mit | -2,141,897,105,286,535,700 | 35.903846 | 102 | 0.606045 | false |
USCDataScience/polar.usc.edu | html/team3-a3/app.py | 1 | 3694 | from flask import Flask, jsonify, send_from_directory, redirect, request
import requests
import os
url = 'http://54.183.25.174:9200/polar.usc.edu/_search?q=*:*&size=10000&fields='
#res = requests.get()
#result = res.json()['hits']['hits']
#print len(result)
data = []
with open('datasize.json', 'rb') as f:
data = e... | apache-2.0 | -6,820,167,529,576,510,000 | 28.31746 | 84 | 0.546291 | false |
eHealthAfrica/rapidpro | temba/utils/management/commands/test_db.py | 1 | 30746 | from __future__ import unicode_literals, division, print_function
import json
import math
import pytz
import random
import resource
import six
import sys
import time
import uuid
from collections import defaultdict
from datetime import timedelta
from django.conf import settings
from django.contrib.auth.models import U... | agpl-3.0 | 4,498,941,162,839,964,700 | 42.611348 | 163 | 0.56996 | false |
aliyun/aliyun-oss-python-sdk | tests/test_server_side_encryotion.py | 1 | 19249 | # -*- coding: utf-8 -*-
from .common import *
from oss2.models import ServerSideEncryptionRule, PartInfo
from oss2 import (SERVER_SIDE_ENCRYPTION_KMS, SERVER_SIDE_ENCRYPTION_AES256,
SERVER_SIDE_ENCRYPTION_SM4, KMS_DATA_ENCRYPTION_SM4)
from oss2.headers import (OSS_SERVER_SIDE_ENCRYPTION, OSS_SERVER_S... | mit | 1,040,213,598,630,709,200 | 46.528395 | 158 | 0.664814 | false |
pythonprobr/pypratico | gui/rc4.py | 1 | 1556 | #!/usr/bin/env python3
def rc4(chave, entrada, loops=1):
''' Algoritmo compatรญvel com o RC4 '''
kbox = list(range(256)) # criar caixa para chave
for i, car in enumerate(chave): # copiar chave e vetor
kbox[i] = car
j = len(chave)
for i in range(j, 256): # repetir ate preencher
... | gpl-2.0 | 966,880,750,209,758,700 | 26.272727 | 71 | 0.524759 | false |
kaspermunch/MultiPurpose | MultiPurpose/NWAlign/DPMatrix.py | 1 | 1966 | """DPMatrix.py
This class models a dynamic progamming matrix for use in sequence
alignment models. The design of this class is based on the description of
dynamic programming matrices in:
Durbin et al. 1998. Biological Sequence Analysis. Cambridge University
Press.
Classes:
* DPMatrix
* DPMatrixCell
"... | gpl-2.0 | -4,016,408,432,478,683,600 | 26.690141 | 75 | 0.596134 | false |
apanda/modeling | mcnet/components/aclfirewall.py | 1 | 2245 | from . import NetworkObject
import z3
class AclFirewall (NetworkObject):
def _init(self, node, network, context):
super(AclFirewall, self).init_fail(node)
self.fw = node.z3Node
self.ctx = context
self.constraints = list ()
self.acls = list ()
network.SaneSend (self)
... | bsd-3-clause | 5,685,815,839,039,126,000 | 37.706897 | 111 | 0.531849 | false |
utarsuno/urbtek | code_manager/miscellaneous_scripts/formatting.py | 1 | 2795 | # coding=utf-8
"""
This module, formatting.py, is just utility functions to format source code text.
"""
# This is needed for the custom compiler.
KEYWORDS = []
def sort_by_deliminator(deliminator, code_text, lines_to_ignore=None):
"""This method will take a chunk of code and format it so that it is sorted by colu... | apache-2.0 | 5,322,014,180,477,122,000 | 37.819444 | 107 | 0.706261 | false |
mahim97/zulip | zerver/management/commands/convert_bot_to_outgoing_webhook.py | 3 | 2259 |
from argparse import ArgumentParser
from typing import Any
from zerver.lib.management import ZulipBaseCommand
from zerver.models import Service, UserProfile
class Command(ZulipBaseCommand):
help = """Given an existing bot, converts it into an outgoing webhook bot."""
def add_arguments(self, parser: Argument... | apache-2.0 | -501,458,603,563,518,340 | 37.288136 | 86 | 0.579017 | false |
DarioGT/Zim-QDA | zim/plugins/spell.py | 1 | 4224 | # -*- coding: utf-8 -*-
# Copyright 2008 Jaap Karssenberg <jaap.karssenberg@gmail.com>
'''Spell check plugin based on gtkspell'''
import os
import gobject
from zim.config import get_environ
from zim.plugins import PluginClass
from zim.gui.widgets import ErrorDialog
from zim.signals import SIGNAL_AFTER
try:
imp... | gpl-2.0 | 7,307,459,120,267,643,000 | 32.52381 | 116 | 0.569129 | false |
ow2-compatibleone/accords-platform | pyaccords/amazonEc2Interface.py | 1 | 2282 | ##############################################################################
#copyright 2012, Hamid MEDJAHED & Elyes ZEKRI (hmedjahed@prologue.fr) #
# Prologue #
#Licensed under the Apache License, Version 2.0 (the "License"); #
#yo... | apache-2.0 | -907,503,873,179,354,000 | 29.426667 | 83 | 0.543821 | false |
zsjohny/jumpserver | apps/terminal/backends/command/models.py | 1 | 1763 | # -*- coding: utf-8 -*-
#
import uuid
from django.db import models
from django.utils.translation import ugettext_lazy as _
from orgs.mixins.models import OrgModelMixin
class AbstractSessionCommand(OrgModelMixin):
RISK_LEVEL_ORDINARY = 0
RISK_LEVEL_DANGEROUS = 5
RISK_LEVEL_CHOICES = (
(RISK_LEVEL_... | gpl-2.0 | 1,010,516,030,425,513,000 | 32.903846 | 143 | 0.636982 | false |
FFroehlich/AMICI | python/amici/setuptools.py | 1 | 9201 | """
setuptools
----------
Helper functions for AMICI core and module package preparation
"""
import os
import sys
import shlex
import subprocess
import shutil
from distutils import log
from .swig import find_swig, get_swig_version
try:
import pkgconfig # optional
# pkgconfig python module might be installe... | bsd-2-clause | 9,211,415,132,428,881,000 | 31.512367 | 79 | 0.570373 | false |
Logic-gate/TadawulStocks | launcher.py | 1 | 5299 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# TadawulStocks v 0.1 - launcher.py
# Copyright (C) <2014> mad_dev(A'mmer Almadani)
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.... | mpl-2.0 | 6,934,701,322,119,036,000 | 36.58156 | 169 | 0.610115 | false |
irwinsnet/DesPy | despy/fel/event.py | 1 | 9768 | # Despy: A discrete event simulation framework for Python
# Version 0.1
# Released under the MIT License (MIT)
# Copyright (c) 2015, Stacy Irwin
"""
****************
despy.model.event
****************
.. autosummary::
Event
.. todo
Refactor event so it no longer inherits from Component.
... | mit | 5,991,695,657,016,548,000 | 33.397887 | 78 | 0.576372 | false |
ollitapa/VTT-Raytracer | python_source/pyraytracer/spectrumTools.py | 1 | 1572 | #
# Copyright 2015 VTT Technical Research Center of Finland
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 | -2,404,852,283,381,364,700 | 28.660377 | 80 | 0.697837 | false |
logan169/pyGeno | pyGeno/importation/SNPs.py | 1 | 7001 | import urllib, shutil
from ConfigParser import SafeConfigParser
import pyGeno.configuration as conf
from pyGeno.SNP import *
from pyGeno.tools.ProgressBar import ProgressBar
from pyGeno.tools.io import printf
from Genomes import _decompressPackage, _getFile
from pyGeno.tools.parsers.CasavaTools import SNPsTxtFile
fro... | apache-2.0 | -4,346,369,277,220,279,300 | 31.412037 | 148 | 0.710756 | false |
ltilve/chromium | tools/perf/benchmarks/smoothness.py | 1 | 9502 | # Copyright 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.
from telemetry import benchmark
from benchmarks import silk_flags
from benchmarks import webgl_expectations
from measurements import smoothness
import page_... | bsd-3-clause | -2,125,144,565,361,553,700 | 28.236923 | 80 | 0.775837 | false |
toslunar/chainerrl | tests/experiments_tests/test_train_agent_batch.py | 1 | 5850 | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases() # NOQA
import math
import tempfile
import unittest
from chainer imp... | mit | 1,088,744,852,587,239,300 | 34.454545 | 76 | 0.476923 | false |
olegpshenichniy/truechat | server/api/thread/views.py | 1 | 2146 | from rest_framework import generics
from rest_framework.exceptions import PermissionDenied
from .models import PrivateThread, GroupThread
from .serializers import PrivateThreadListCreateSerializer, PrivateThreadRetrieveDestroySerializer
from .serializers import GroupThreadListCreateSerializer, GroupThreadRetrieveUpdat... | mit | 4,422,282,854,011,121,700 | 33.612903 | 100 | 0.72973 | false |
pexip/meson | mesonbuild/modules/rpm.py | 2 | 8284 | # Copyright 2015 The Meson development team
# 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 ... | apache-2.0 | -8,432,540,976,851,068,000 | 44.767956 | 97 | 0.547682 | false |
m-rakowski/html-to-csv | app/extract.py | 1 | 2373 | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
import csv
import re
class Extraction():
def has_class(self,tag):
return tag.has_attr('class')
def get_info_dict(self,url):
r = requests.get(url)
r.encoding = 'utf-8'
data = r.text
soup =... | bsd-3-clause | -5,575,228,197,144,984,000 | 27.590361 | 85 | 0.485883 | false |
qedsoftware/commcare-hq | corehq/util/doc_processor/interface.py | 1 | 11487 | import weakref
from abc import ABCMeta, abstractmethod
from datetime import datetime
import six
from corehq.util.pagination import PaginationEventHandler, TooManyRetries
class BulkProcessingFailed(Exception):
pass
DOCS_SKIPPED_WARNING = """
WARNING {} documents were not processed due to concurrent mod... | bsd-3-clause | -6,447,132,111,041,313,000 | 35.582803 | 114 | 0.640289 | false |
hanul93/kicomav | Engine/plugins/dde.py | 1 | 8396 | # -*- coding:utf-8 -*-
# Author: Kei Choi(hanul93@gmail.com)
import os
import re
import zipfile
import kernel
# -------------------------------------------------------------------------
# zip ํ์ผ์ ํน๋ณํ ํ์ผ๋ช
์ ์์ถ ํด์ ํ์ฌ ๋ฐ์ดํฐ๋ฅผ ๋ฆฌํดํ๋ค.
# -------------------------------------------------------------------------
def get_zip_data... | gpl-2.0 | 3,509,038,780,561,625,000 | 31.513274 | 91 | 0.384867 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.