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 |
|---|---|---|---|---|---|---|---|---|---|---|
it-events-ro/scripts | update-from-eventbrite.py | 1 | 6855 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import sys
import utils
included_organizers = {
2491303902, # http://www.eventbrite.com/o/itcamp-2491303902
6873285549, # http://www.eventbrite.com/o/sponge-media-lab-6873285549
3001324227, # http://www.eventbrite.com/o/labview-student-ambassador-upb-30... | agpl-3.0 | -8,798,751,040,999,646,000 | 52.554688 | 122 | 0.756966 | false |
MangoMangoDevelopment/neptune | lib/ros_comm-1.12.0/test/test_rospy/test/rostest/test_latch.py | 2 | 3693 | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | bsd-3-clause | 7,342,764,846,024,820,000 | 39.141304 | 98 | 0.663959 | false |
ProgVal/Limnoria-test | plugins/GPG/test.py | 5 | 5812 | ###
# Copyright (c) 2015, Valentin Lorentz
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditi... | bsd-3-clause | -8,063,978,653,867,004,000 | 40.219858 | 83 | 0.707502 | false |
alexsilva/smartbackup | smartbackup/plugins.py | 1 | 1085 | import peewee
from bakthat.plugin import Plugin
import bakthat
import backends
import models
import bakthat.models
__author__ = 'alex'
class MysqlEngineBackend(Plugin):
def activate(self):
#self.log.info("Connecting plugin '{0}'".format(backends.S3BackendPlus.name))
#bakthat.models.database_pr... | mit | 2,441,257,913,264,602,000 | 26.15 | 97 | 0.716129 | false |
HengeSense/website | website/migrations/0003_auto__chg_field_userprofile_gender__chg_field_userprofile_date_of_birt.py | 1 | 4876 | # -*- 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):
# Changing field 'UserProfile.gender'
db.alter_column('website_userprofile', 'gender', self.gf('django.db.m... | agpl-3.0 | 3,340,166,466,635,874,000 | 64.905405 | 182 | 0.576292 | false |
Atrasoftware/PyTMCL | PyTMCL/tests/test_codec.py | 1 | 7568 | #!/usr/bin/env python
import unittest
from TMCL import *
import random as rnd
MAXITER = 200
REQUEST_KEYS = codec.REQUEST_KEYS + ['value']
REPLY_KEYS = codec.REPLY_KEYS + ['value']
class CodecTestCase(unittest.TestCase):
def _gen_byte(self, min_i=0, max_i=256):
return rnd.randint(min_i, max_i-1)... | lgpl-3.0 | -1,073,172,985,004,600,400 | 29.516129 | 112 | 0.612711 | false |
liesbethvanherpe/NeuroM | neurom/fst/__init__.py | 1 | 6830 | # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | bsd-3-clause | 317,015,164,251,236,800 | 39.898204 | 96 | 0.701611 | false |
denys-duchier/kivy | kivy/uix/filechooser.py | 1 | 32541 | '''
FileChooser
===========
.. versionadded:: 1.0.5
.. versionchanged:: 1.2.0
In the chooser template, the `controller` is not a direct reference anymore
but a weak-reference.
You must update all the notation `root.controller.xxx` to
`root.controller().xxx`.
Simple example
--------------
main.py
.... | mit | -4,341,889,288,043,636,700 | 31.476048 | 80 | 0.598414 | false |
sonofatailor/django-oscar | tests/integration/basket/test_models.py | 1 | 11161 | # -*- coding: utf-8 -*-
from decimal import Decimal as D
from django.test import TestCase
from oscar.apps.basket.models import Basket
from oscar.apps.catalogue.models import Option
from oscar.apps.partner import availability, prices, strategy
from oscar.test import factories
from oscar.test.factories import (
Bas... | bsd-3-clause | 7,816,845,905,431,013,000 | 37.088737 | 104 | 0.661828 | false |
sam-m888/gprime | gprime/filters/rules/media/_matchesfilter.py | 1 | 1711 | #
# gPrime - A web-based genealogy program
#
# Copyright (C) 2002-2006 Donald N. Allingham
#
# 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 optio... | gpl-2.0 | -4,651,842,400,809,518,000 | 35.404255 | 79 | 0.534191 | false |
patjouk/djangogirls | jobs/migrations/0004_auto_20150712_1803.py | 1 | 3951 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0003_auto_20150510_1707'),
]
operations = [
migrations.RemoveField(
model_name='job',
name='... | bsd-3-clause | 2,459,570,391,821,128,700 | 41.945652 | 188 | 0.576563 | false |
Stanford-Online/edx-ora2 | openassessment/xblock/openassessmentblock.py | 1 | 42271 | """An XBlock where students can read a question and compose their response"""
import copy
import datetime as dt
import json
import logging
import os
from lazy import lazy
import pkg_resources
import pytz
from webob import Response
from xblock.core import XBlock
from xblock.fields import Boolean, Integer, List, Scope,... | agpl-3.0 | -6,988,523,098,980,771,000 | 35.315292 | 116 | 0.594545 | false |
cleberzavadniak/canivett | canivett/tree.py | 1 | 6306 | import os
import errno
import logging
import imp
from fuse import Operations, FuseOSError
class Tree(Operations):
"""
Most of this class is based on the work of Stavros Korokithakis:
https://www.stavros.io/posts/python-fuse-filesystem/
;-)
"""
def __init__(self, base):
self.logger = l... | gpl-2.0 | -1,390,266,037,243,918,800 | 28.605634 | 84 | 0.553283 | false |
gabriel-samfira/jrunner | jrunner/jobqueue/preprocesors/__init__.py | 1 | 1097 | # Copyright 2013 Cloudbase Solutions Srl
# 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 applicabl... | apache-2.0 | -7,388,835,889,981,652,000 | 30.342857 | 77 | 0.714676 | false |
lvxejay/jmw-capstone | proteus/base_types/base_list_socket.py | 1 | 2046 | # ---------------------------------------------------------------------------------------#
# ----------------------------------------------------------------------------- HEADER --#
"""
:author:
Jared Webber
:synopsis:
:description:
:applications:
:see_also:
:license:
... | gpl-3.0 | -7,207,979,154,944,302,000 | 22.070588 | 90 | 0.388563 | false |
MariusWirtz/TM1py | TM1py/Services/TM1Service.py | 1 | 1569 | import pickle
from TM1py.Services import *
class TM1Service:
""" All features of TM1py are exposed through this service
Can be saved and restored from File, to avoid multiple authentication with TM1.
"""
def __init__(self, **kwargs):
self._tm1_rest = RESTService(**kwargs)
# inst... | mit | -6,446,374,943,573,261,000 | 27.527273 | 83 | 0.631612 | false |
sridevikoushik31/nova | nova/virt/baremetal/ipmi.py | 1 | 10006 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# coding=utf-8
# Copyright 2012 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2012 NTT DOCOMO, 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.... | apache-2.0 | 7,198,640,514,716,515,000 | 33.38488 | 79 | 0.573056 | false |
Arthraim/douban2mongo | book2mongo.py | 1 | 2157 | # coding= utf-8
from bs4 import BeautifulSoup
import codecs
from mongoengine import *
from book import Book
connect('mydouban')
import os
os.chdir("book")
for filename in os.listdir("."):
with codecs.open(filename, "r", "utf-8") as html_file:
soup = BeautifulSoup(html_file.read())
for item in sou... | mit | 4,743,349,884,267,529,000 | 35.982143 | 136 | 0.494447 | false |
dahlia/wikidata | wikidata/quantity.py | 1 | 1837 | """:mod:`wikidata.quantity` --- Quantity
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. versionadded:: 0.7.0
"""
from typing import Optional
from .entity import Entity
__all__ = 'Quantity',
class Quantity:
"""A Quantity value represents a decimal number, together with information
about the uncertainty interv... | gpl-3.0 | 4,169,294,263,064,760,000 | 30.135593 | 78 | 0.494284 | false |
jeroanan/Gyroscope | gyroscope.py | 1 | 1371 | from collections import ChainMap
import logging
import time
import sys
import GetArgs
import GetSite
from Config import Defaults
from Config import LoadSites
from Config import LoadConfig
from Config import Settings
def work():
def init_config():
args = GetArgs.get_args()
return ChainMap(args, L... | mit | -2,587,680,111,265,204,000 | 28.170213 | 121 | 0.646244 | false |
ooici/marine-integrations | mi/dataset/driver/dosta_abcdjm/dcl/driver.py | 1 | 6591 | """
@package mi.dataset.driver.dosta_abcdjm.dcl.driver
@file marine-integrations/mi/dataset/driver/dosta_abcdjm/dcl/driver.py
@author Steve Myerson
@brief Driver for the dosta_abcdjm_dcl
Release notes:
Initial Release
"""
__author__ = 'Steve Myerson'
__license__ = 'Apache 2.0'
from mi.core.common import BaseEnum
fro... | bsd-2-clause | -5,689,769,519,623,224,000 | 35.821229 | 97 | 0.617812 | false |
rouge8/hitsearch | threadtest/maker.py | 1 | 1288 | from time import sleep
import time
import threading
class BoxFiller(threading.Thread):
def __init__(self,parent):
threading.Thread.__init__(self)
self.parent = parent
def run(self):
count = 0
for i in range(30):
sleep(.5)
count += 1
self.parent... | mit | 5,738,367,370,088,499,000 | 24.76 | 66 | 0.505435 | false |
sassoftware/jobslave | jobslave/slave.py | 1 | 1471 | #
# 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 | 1,234,899,746,340,290,800 | 27.288462 | 74 | 0.711081 | false |
eigoshimizu/Genomon | scripts/genomon_pipeline/dna_pipeline.py | 1 | 57868 | import os
import shutil
import glob
from ruffus import *
from genomon_pipeline.config.run_conf import *
from genomon_pipeline.config.genomon_conf import *
from genomon_pipeline.config.sample_conf import *
from genomon_pipeline.dna_resource.bamtofastq import *
from genomon_pipeline.dna_resource.fastq_splitter import *
f... | gpl-2.0 | 2,453,567,865,520,221,000 | 54.965184 | 288 | 0.628586 | false |
twicki/dawn | docs/_extension/cmake.py | 1 | 4098 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
##===-----------------------------------------------------------------------------*- Python -*-===##
## _
## | |
## __| | __ ___ ___ ___
## / _` |/ _` \ \ /\ / / '_ |
## ... | mit | 2,626,606,504,850,924,000 | 36.263636 | 100 | 0.464129 | false |
masoodking/LinkPrediction | tsne_python/tsne.py | 1 | 5760 | #
# tsne.py
#
# Implementation of t-SNE in Python. The implementation was tested on Python 2.5.1, and it requires a working
# installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the
# results of this example, a working installation of matplotlib is required.
# The ... | bsd-3-clause | 3,899,504,067,676,658,000 | 29.967742 | 117 | 0.602257 | false |
convexopt/gpkit | gpkit/tests/t_vars.py | 1 | 7635 | """Test VarKey, Variable, VectorVariable, and ArrayVariable classes"""
import unittest
import numpy as np
from gpkit import (Monomial, NomialArray, Variable, VarKey,
VectorVariable, ArrayVariable)
import gpkit
from gpkit.nomials import Variable as PlainVariable
class TestVarKey(unittest.TestCase):
... | mit | 2,720,635,913,569,846,000 | 33.863014 | 80 | 0.568173 | false |
GaussDing/django | tests/admin_changelist/tests.py | 1 | 33998 | from __future__ import unicode_literals
import datetime
from django.contrib import admin
from django.contrib.admin.options import IncorrectLookupParameters
from django.contrib.admin.templatetags.admin_list import pagination
from django.contrib.admin.tests import AdminSeleniumWebDriverTestCase
from django.contrib.admi... | bsd-3-clause | -5,703,059,772,062,413,000 | 45.130258 | 164 | 0.629978 | false |
plang85/rough_surfaces | rough_surfaces/plot.py | 1 | 2368 | import numpy as np
from matplotlib import rcParams
import scipy.stats as scst
# TODO get rid of these and we won't need matplotlib in the setup, only for examples
rcParams['font.size'] = 14
rcParams['legend.fontsize'] = 10
rcParams['savefig.dpi'] = 300
rcParams['legend.loc'] = 'upper right'
rcParams['image.cmap'] = 'ho... | mit | 3,680,067,757,627,451,400 | 32.352113 | 90 | 0.602618 | false |
vergecurrency/VERGE | test/functional/interface_http.py | 1 | 4779 | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the RPC HTTP basics."""
from test_framework.test_framework import VergeTestFramework
from test_fr... | mit | 6,686,118,359,302,574,000 | 43.25 | 106 | 0.626282 | false |
bluesky4485/qiniu4blog | qiniu4blog/qiniu4blog.py | 1 | 3873 | #!/usr/bin/env python3
import os, time, datetime, platform, urllib, hashlib
import qiniu
from mimetypes import MimeTypes
import pyperclip
from os.path import expanduser
import configparser
homedir = expanduser("~")
config = configparser.ConfigParser()
config.read(homedir+'/qiniu.cfg')
mime = MimeTypes()
now = datetim... | mit | -7,276,391,584,932,604,000 | 28.469231 | 102 | 0.549465 | false |
shiroyuki/gallium | gallium/obj/encoder.py | 1 | 1878 | import datetime
from abc import ABC
from dataclasses import asdict, is_dataclass
from enum import Enum
from typing import Any, List, Optional
class PlugIn(ABC):
def can_handle(self, obj: Any) -> bool:
...
def encode(self, obj: Any) -> Any:
...
class DataClassPlugIn(PlugIn):
def can_hand... | mit | -1,853,982,818,953,678,800 | 24.04 | 90 | 0.571885 | false |
GovReady/govready-q | guidedmodules/module_logic.py | 1 | 95357 | import uuid
from itertools import groupby
from urllib.parse import urlunparse
from django.conf import settings
from jinja2.sandbox import SandboxedEnvironment
from controls.enums.statements import StatementTypeEnum
from controls.oscal import Catalogs, Catalog
from siteapp.settings import GOVREADY_URL
def get_jinja2... | gpl-3.0 | 5,768,756,161,847,980,000 | 44.321768 | 204 | 0.57162 | false |
ellmo/rogue-python-engine | rpe/player.py | 1 | 1367 | import rpe_map
import camera
class Player(object):
def __init__(self, rpe_map, direction_vector):
self._rpe_map = rpe_map
self._x = rpe_map.start_position[0]
self._y = rpe_map.start_position[1]
self._camera = camera.Camera(rpe_map.start_position, direction_vector)
@property
... | gpl-3.0 | -1,962,575,099,425,045,200 | 23.854545 | 83 | 0.548647 | false |
qedsoftware/commcare-hq | custom/ilsgateway/tanzania/handlers/generic_stock_report_handler.py | 1 | 2041 | from django.conf import settings
from corehq.apps.commtrack.exceptions import NotAUserClassError
from corehq.apps.commtrack.sms import process
from corehq.apps.sms.api import send_sms_to_verified_number
from custom.ilsgateway.tanzania.handlers.ils_stock_report_parser import ILSStockReportParser
from custom.ilsgateway.t... | bsd-3-clause | 5,092,202,569,598,729,000 | 29.924242 | 108 | 0.593827 | false |
qedsoftware/commcare-hq | corehq/apps/case_search/views.py | 1 | 1603 | import json
from corehq.apps.domain.decorators import cls_require_superuser_or_developer
from corehq.apps.domain.views import DomainViewMixin
from django.http import Http404
from dimagi.utils.web import json_response
from django.views.generic import TemplateView
from corehq.apps.case_search.models import case_search_e... | bsd-3-clause | -1,550,747,963,873,273,300 | 39.075 | 76 | 0.696818 | false |
googleapis/python-aiplatform | tests/unit/enhanced_library/test_enhanced_types.py | 1 | 2007 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 1,963,648,343,854,830,300 | 31.901639 | 82 | 0.765321 | false |
praekelt/wsgi-ua-mapper | ua_mapper/updatewurfl.py | 1 | 1900 | import os
import sys
from optparse import OptionParser
from urllib import urlopen
from ua_mapper.wurfl2python import WurflPythonWriter, DeviceSerializer
OUTPUT_PATH = os.path.abspath(os.path.dirname(__file__))
WURFL_ARCHIVE_PATH = os.path.join(OUTPUT_PATH, "wurfl.zip")
WURFL_XML_PATH = os.path.join(OUTPUT_PATH, "wurf... | bsd-3-clause | 2,836,465,306,440,326,000 | 31.758621 | 99 | 0.623684 | false |
Clarity-89/clarityv2 | src/clarityv2/work_entries/admin.py | 1 | 1978 | import datetime
from datetime import timedelta
from django.contrib import admin
from django.contrib.admin.filters import DateFieldListFilter
from django.db.models import Sum
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from import_export.admin import ImportExportActionModel... | mit | 394,790,853,219,527,550 | 37.038462 | 96 | 0.650152 | false |
amilan/dev-maxiv-pynutaq | src/pynutaq/perseus/perseusutils.py | 1 | 7717 | #!/usr/bin/env python
###############################################################################
# NutaqDiags device server.
#
# Copyright (C) 2013 Max IV Laboratory, Lund Sweden
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Publi... | gpl-3.0 | -5,668,996,451,132,105,000 | 28.795367 | 110 | 0.618116 | false |
nick41496/Beatnik | slackbot/migrations/0001_initial.py | 1 | 1031 | # Generated by Django 2.2.9 on 2020-04-26 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Install',
fields=[
('id', models.AutoField(... | gpl-3.0 | 4,604,570,838,081,418,000 | 37.185185 | 114 | 0.588749 | false |
markgw/jazzparser | lib/nltk/classify/megam.py | 1 | 5817 | # Natural Language Toolkit: Interface to Megam Classifier
#
# Copyright (C) 2001-2010 NLTK Project
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
#
# $Id: naivebayes.py 2063 2004-07-17 21:02:24Z edloper $
"""
A set of functions used to i... | gpl-3.0 | 2,395,200,553,374,821,000 | 33.625 | 75 | 0.596527 | false |
datsideofthemoon/openbts-webui | urls.py | 1 | 1973 | # Copyright (C) 2012 Daniil Egorov <datsideofthemoon@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.
# This... | gpl-3.0 | 4,428,396,824,841,071,600 | 37.686275 | 102 | 0.716168 | false |
sachabest/cis599 | web/dashboard/uploader.py | 1 | 2445 | import csv, logging
from .models import Student, Project
from django.contrib.auth.models import User
logger = logging.getLogger(__name__)
def parse_input_csv(csv_file_wrapper, project_file_wrapper):
'''
Takes in raw text and outputs json for group information.
Expected format of project_file:
Name / ... | mit | -322,003,598,205,245,440 | 34.970588 | 88 | 0.608589 | false |
ZTH1970/alcide | scripts/import_users.py | 1 | 5758 | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
import csv
import codecs
import string
import random
from datetime import datetime, time
import django.core.management
import alcide.settings
django.core.management.setup_environ(alcide.settings)
from django.contrib.auth.models import User
from alcide.actes.mod... | agpl-3.0 | -7,221,619,280,167,472,000 | 30.464481 | 99 | 0.588051 | false |
sheqi/TVpgGLM | test/practice6_pystan_hmc_Qi_loop_test.py | 1 | 1347 | import pickle
import numpy as np
import numpy.random as npr
import matplotlib.pyplot as plt
from pyglm.utils.utils import expand_scalar, compute_optimal_rotation
dim = 2
N = 20
r = 1 + np.arange(N) // (N/2.)
th = np.linspace(0, 4 * np.pi, N, endpoint=False)
x = r * np.cos(th)
y = r * np.sin(th)
L = np.hstack((x[:, Non... | mit | 6,740,229,076,920,193,000 | 24.923077 | 96 | 0.582777 | false |
googleads/googleads-python-lib | examples/ad_manager/v202105/activity_group_service/get_all_activity_groups.py | 1 | 1854 | #!/usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | apache-2.0 | 4,992,633,580,900,890,000 | 35.352941 | 74 | 0.721143 | false |
vxsx/djangocms-text-ckeditor | djangocms_text_ckeditor/utils.py | 1 | 6174 | # -*- coding: utf-8 -*-
import os
import re
from collections import OrderedDict
from functools import wraps
from classytags.utils import flatten_context
from cms.models import CMSPlugin
from django.core.files.storage import get_storage_class
from django.template.defaultfilters import force_escape
from django.template.... | bsd-3-clause | -6,806,602,773,429,382,000 | 33.49162 | 106 | 0.660026 | false |
uwcirg/true_nth_usa_portal | portal/views/portal.py | 1 | 47136 | """Portal view functions (i.e. not part of the API or auth)"""
from datetime import datetime
from pprint import pformat
from time import strftime
from urllib.parse import urlencode
from celery.exceptions import TimeoutError
from celery.result import AsyncResult
from flask import (
Blueprint,
Response,
abo... | bsd-3-clause | -3,423,425,466,594,004,000 | 34.954233 | 79 | 0.634229 | false |
datapythonista/pandas | pandas/tests/frame/methods/test_set_index.py | 2 | 25979 | """
See also: test_reindex.py:TestReindexSetIndex
"""
from datetime import (
datetime,
timedelta,
)
import numpy as np
import pytest
from pandas import (
Categorical,
DataFrame,
DatetimeIndex,
Index,
MultiIndex,
Series,
date_range,
period_range,
to_datetime,
)
import panda... | bsd-3-clause | -3,370,677,243,398,780,400 | 35.182451 | 88 | 0.549752 | false |
carpyncho/feets | feets/extractors/ext_q31.py | 1 | 3876 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2017 Juan Cabral
# 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 withou... | mit | -5,410,018,966,500,149,000 | 33.300885 | 79 | 0.566563 | false |
danylaksono/inasafe | safe_qgis/impact_statistics/test/test_postprocessor_manager.py | 1 | 5425 | # coding=utf-8
"""
InaSAFE Disaster risk assessment tool developed by AusAid and World Bank
- **GUI Test Cases.**
Contact : ole.moller.nielsen@gmail.com
.. note:: 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 Fre... | gpl-3.0 | 8,593,382,577,701,894,000 | 33.119497 | 78 | 0.640922 | false |
xinghalo/DMInAction | src/tensorflow/recommend/ops.py | 1 | 2022 | from src import tensorflow as tf
def inference_svd(user_batch, item_batch, user_num, item_num, dim=5, device="/cpu:0"):
with tf.device("/cpu:0"):
bias_global = tf.get_variable("bias_global", shape=[])
w_bias_user = tf.get_variable("embd_bias_user", shape=[user_num])
w_bias_item = tf.get_va... | apache-2.0 | -2,948,722,271,632,747,000 | 56.142857 | 104 | 0.643 | false |
robin900/gspread-dataframe | tests/mock_worksheet.py | 1 | 1986 | import os.path
import json
import re
from gspread.models import Cell
from gspread_dataframe import _cellrepr
def contents_of_file(filename, et_parse=True):
with open(os.path.join(os.path.dirname(__file__), filename), "r") as f:
return json.load(f)
SHEET_CONTENTS_FORMULAS = contents_of_file("sheet_conten... | mit | -4,786,977,959,139,163,000 | 24.792208 | 76 | 0.598691 | false |
theonaun/theo_site | app_surgeo/services/rest_api.py | 1 | 2418 | import json
from django.http import HttpResponse
from .calculations import surgeo_model
from .calculations import surname_model
from .calculations import geocode_model
from .calculations import forename_model
from .hmac_utility import verify_message
class RestAPI(object):
'''Takes queries and gets results.'''
... | mit | -262,319,776,951,719,100 | 33.056338 | 72 | 0.593879 | false |
google-research/google-research | gfsa/model/edge_supervision_models_test.py | 1 | 8547 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 8,043,755,052,644,149,000 | 35.216102 | 79 | 0.583246 | false |
kodi-czsk/plugin.video.online-files | resources/lib/fastshare.py | 1 | 5924 | # -*- coding: UTF-8 -*-
#/*
# * Copyright (C) 2012 Libor Zoubek
# *
# *
# * 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, or (at your option)
# * any later version... | gpl-2.0 | 3,914,445,946,651,833,000 | 43.878788 | 121 | 0.549629 | false |
ngageoint/scale | scale/recipe/seed/recipe_definition.py | 1 | 21647 | """Defines the class for managing a recipe definition"""
from __future__ import unicode_literals
import json
import os
from django.db.models import Q
from job.configuration.data.exceptions import InvalidConnection
from job.configuration.interface.scale_file import ScaleFileDescription
from job.deprecation import JobC... | apache-2.0 | -336,845,178,525,268,600 | 43.541152 | 120 | 0.612464 | false |
alanrodas/fa6i-kgt | kgt/__init__.py | 1 | 1408 | # Import required libraries
from flask import Flask, render_template
from flask_login import LoginManager
from ConfigParser import SafeConfigParser
from pony.orm import *
# Load the configuration file of the application
config = SafeConfigParser()
config.read('kgt/config.ini')
# Create the flask application to run
ap... | gpl-3.0 | 6,765,289,706,268,825,000 | 29.608696 | 191 | 0.761364 | false |
dnlcrl/TensorFlow-Playground | 1.tutorials/2.Deep MNIST for Experts/mnist.py | 1 | 3226 |
import tensorflow as tf
# download and install the data automatically
import input_data
# download dataset or open
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
# launch interactive session
sess = tf.InteractiveSession()
# placeholders
x = tf.placeholder("float", shape=[None, 784])
y_ = tf.placeho... | mit | 4,093,565,697,744,812,000 | 28.87037 | 113 | 0.676689 | false |
p473lr/i-urge-mafia-gear | HP Code Wars Documents/2014/Solutions/prob02_CheckDigit.py | 1 | 2339 | #!/usr/bin/env python
#CodeWars 2014
#
#Check Digits
#
# There are many situations where we exchange a number with someone. In some cases we need
# to be sure that the number we gave them was received correctly. This is especially
# important for credit cards, serial numbers, and product bar code numbers.
# A check... | apache-2.0 | -2,976,268,853,443,760,600 | 34.984615 | 91 | 0.666524 | false |
toddpalino/kafka-tools | tests/tools/models/test_cluster.py | 1 | 5206 | import json
import unittest
from testfixtures import LogCapture
from kafka.tools.models.broker import Broker
from kafka.tools.models.topic import Topic
from kafka.tools.models.cluster import Cluster
class SimpleClusterTests(unittest.TestCase):
def setUp(self):
self.cluster = Cluster()
def add_broker... | apache-2.0 | 2,682,005,011,271,960,000 | 36.724638 | 110 | 0.50461 | false |
shpakoo/YAP | StepsLibrary.py | 1 | 60173 | ########################################################################################
## This file is a part of YAP package of scripts. https://github.com/shpakoo/YAP
## Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php
## Copyright (c) 2011-2013 Sebastian Szpakowski
#############... | mit | 3,567,784,365,733,237,000 | 26.780702 | 226 | 0.617004 | false |
CuBoulder/atlas | atlas/backup_operations.py | 1 | 1820 | """
atlas.backup_operations
~~~~
Commands that run on servers to create, restore, and remove backups.
Instance methods:
Delete - Local - Remove backup files.
"""
import logging
import os
from datetime import datetime
from time import time
from atlas import utilities
from atlas.config import (ENVI... | mit | -1,822,666,200,972,725,500 | 36.916667 | 98 | 0.639011 | false |
michaelrice/gotland | gotland/rabbit/api.py | 1 | 18344 | # Copyright 2014 Michael Rice <michael@michaelrice.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 app... | apache-2.0 | -7,473,669,924,650,975,000 | 37.216667 | 80 | 0.590656 | false |
clchiou/garage | py/g1/http/http2_servers/g1/http/http2_servers/parts.py | 1 | 1361 | import g1.networks.servers.parts
from g1.apps import parameters
from g1.apps import utils
from g1.bases import labels
from .. import http2_servers # pylint: disable=relative-beyond-top-level
from . import nghttp2
SERVER_LABEL_NAMES = (
# Input.
'application',
# Private.
('server', g1.networks.servers... | mit | 8,790,086,334,072,161,000 | 30.651163 | 79 | 0.686995 | false |
ajaygarg84/sugar | src/jarabe/frame/clipboardpanelwindow.py | 1 | 5219 | # Copyright (C) 2007, One Laptop Per Child
#
# 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 distrib... | gpl-2.0 | 9,051,991,144,524,601,000 | 35.496503 | 79 | 0.569266 | false |
yCanta/yCanta | convert/higherpraise.py | 1 | 2030 | import urllib2
import re
def convert(input_url):
'''return a dictionary as documented in __init__.py '''
# Example higherpraise.com content
# <div aligni="center"><!-- #BeginEditable "1" -->
# <table attrs=". . . ">
# ...
# <h1 align="center"><b><font class="default"><u>
# Title text </u... | unlicense | 8,676,968,065,586,122,000 | 24.061728 | 90 | 0.550246 | false |
bolkedebruin/airflow | airflow/hooks/pig_hook.py | 1 | 1159 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | apache-2.0 | -3,636,194,131,831,471,000 | 38.965517 | 86 | 0.761001 | false |
shlomozippel/ansible | lib/ansible/playbook/play.py | 1 | 14133 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | gpl-3.0 | -539,593,946,497,060,400 | 42.352761 | 141 | 0.521333 | false |
maribhez/DietasBot | fabfile.py | 1 | 1342 | # coding: utf-8
from fabric.api import *
import os
#Paso inicial para poner a punto nuestra maquina.
def Instala():
#Aseguramos la limpieza de la maquina.
run ('sudo rm -rf DietasBot')
#Descargamos nuestra aplicacion desde GitHub.
run('git clone https://github.com/maribhez/DietasBot.git')
#Entra... | gpl-3.0 | 6,034,723,090,547,334,000 | 28.822222 | 69 | 0.590164 | false |
julienmalard/Tikon | pruebas/test_ecs/test_aprioris.py | 1 | 1353 | import unittest
import numpy as np
import numpy.testing as npt
import scipy.stats as estad
from tikon.ecs.aprioris import APrioriDens, APrioriDist
from tikon.ecs.dists import DistAnalítica
class PruebaAprioris(unittest.TestCase):
@staticmethod
def test_apriori_dens():
apr = APrioriDens((0, 1), 0.9)
... | agpl-3.0 | 9,142,627,457,586,882,000 | 32.55 | 86 | 0.635618 | false |
MSLNZ/msl-equipment | tests/test_connection.py | 1 | 2262 | import enum
import pytest
from msl.equipment import exceptions
from msl.equipment.connection import Connection
from msl.equipment.record_types import EquipmentRecord
class EnumTest1(enum.IntEnum):
A = 1
B = 2
C = 3
class EnumTest2(enum.IntEnum):
data_A = 11
DATA_B = 12
RES_C = 13
class E... | mit | 1,085,828,139,733,513,500 | 31.314286 | 91 | 0.710433 | false |
evilhero/mylar | lib/comictaggerlib/comicapi/comet.py | 1 | 9192 | """A class to encapsulate CoMet data"""
# Copyright 2012-2014 Anthony Beville
# 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 requi... | gpl-3.0 | 3,675,850,606,253,734,400 | 32.304348 | 97 | 0.546997 | false |
stackforge/python-openstacksdk | openstack/tests/unit/image/v2/test_proxy.py | 1 | 19139 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | -938,669,344,473,607,300 | 37.125498 | 78 | 0.541042 | false |
bplancher/odoo | openerp/addons/base/tests/test_views.py | 2 | 40915 | # -*- encoding: utf-8 -*-
from functools import partial
import itertools
import unittest
from lxml import etree as ET
from lxml.builder import E
from psycopg2 import IntegrityError
from openerp.exceptions import ValidationError
from openerp.tests import common
import openerp.tools
Field = E.field
class ViewCase(c... | agpl-3.0 | -832,309,322,385,947,100 | 32.371126 | 107 | 0.47535 | false |
ArcaniteSolutions/truffe2 | truffe2/vehicles/models.py | 2 | 13930 | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django import forms
from django.shortcuts import get_object_or_404
from generic.models import GenericModel, GenericStateModel, FalseFK, GenericGroupsModel, GenericStateRootValidable, GenericGroupsModerab... | bsd-2-clause | -4,125,093,519,237,388,300 | 33.147783 | 185 | 0.59247 | false |
jonnybazookatone/ADSimportpipeline | lib/conversions.py | 1 | 1831 | #!/usr/bin/env python
import ads
from ads.Looker import Looker
class ConvertBibcodes:
def __init__(self):
self.bib2alt = Looker(ads.alternates).look
self.bib2epr = Looker(ads.pub2arx).look
self.alt2bib = Looker(ads.altlist).look
self.epr2bib = Looker(ads.ematches).look
def get... | gpl-3.0 | -3,548,930,736,092,136,400 | 32.290909 | 72 | 0.541234 | false |
nickraptis/fidibot | src/modules/help.py | 1 | 2615 | # Author: Nick Raptis <airscorp@gmail.com>
"""
Module for listing commands and help.
"""
from basemodule import BaseModule, BaseCommandContext
from alternatives import _
class HelpContext(BaseCommandContext):
def cmd_list(self, argument):
"""List commands"""
arg = argument.lower()
index ... | bsd-2-clause | -5,116,395,268,455,257,000 | 32.961039 | 79 | 0.521606 | false |
google-research/leaf-audio | example/train.py | 1 | 2594 | # coding=utf-8
# Copyright 2021 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 ... | apache-2.0 | 7,620,625,562,801,573,000 | 35.027778 | 79 | 0.692367 | false |
moagstar/xsorted | docs/conf.py | 1 | 8799 | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
# ... | mit | -1,019,507,065,598,080,300 | 33.778656 | 85 | 0.690533 | false |
buckets1337/MotherMUD | Objects.py | 1 | 25773 | # Objects.py
"""
This file defines the various different objects that can be found in the world
"""
#--------------------------
# This file defines the objects in the world. Best practice for naming an object follows: <region><Room><Name>, where the region is lowercase and every other word in the smashed string is ca... | apache-2.0 | 8,426,455,827,758,730,000 | 31.665399 | 333 | 0.702867 | false |
bjornaa/roppy | roppy/averator.py | 1 | 1728 | # -*- coding: utf-8 -*-
"""Generator for moving averages from ROMS file(s)"""
import numpy as np
def roms_averator(ncid, var_name, L, grd):
"""Generator for moving averages from ROMS file(s)
var_name : text string, name of NetCDF variable
ncid : an open NetCDF Dataset or MFDataset
grd : a roppy.S... | mit | 2,815,143,418,121,291,300 | 29.315789 | 73 | 0.545718 | false |
PrincetonML/AND4NMF | code/compute_error.py | 1 | 1397 | import numpy as np
from numpy.linalg import norm
def compute_error(A_in, Ag_in):
A = A_in
Ag = Ag_in
#reallign
D = A.shape[1]
inner = np.zeros((D, D))
for i in range(D):
for j in range(D):
inner[i, j] = np.asscalar(A[:, i].transpose() * Ag[:, j] )/(norm(A[:, i]) * norm(Ag[:... | mit | -702,603,614,609,093,800 | 30.75 | 103 | 0.531854 | false |
Tong-Chen/scikit-learn | sklearn/ensemble/gradient_boosting.py | 1 | 44936 | """Gradient Boosted Regression Trees
This module contains methods for fitting gradient boosted regression trees for
both classification and regression.
The module structure is the following:
- The ``BaseGradientBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regressio... | bsd-3-clause | 8,973,508,359,669,950,000 | 36.260365 | 81 | 0.582228 | false |
linuxdeepin/deepin-ui | dtk/ui/tooltip.py | 1 | 22624 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Xia Bin
#
# Author: Xia Bin <xiabin@linuxdeepin.com>
# Maintainer: Xia Bin <xiabin@linuxdeepin.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | gpl-3.0 | -150,503,247,418,591,170 | 30.730715 | 230 | 0.594457 | false |
Ziemin/telepathy-gabble | tests/twisted/presence/decloak.py | 2 | 2634 | from twisted.words.xish import domish
from gabbletest import exec_test, make_presence
from servicetest import EventPattern, assertEquals
import ns
import constants as cs
def test(q, bus, conn, stream, should_decloak=False):
event = q.expect('stream-iq', query_ns=ns.ROSTER)
event.stanza['type'] = 'result'
... | lgpl-2.1 | -1,589,560,376,580,385,300 | 36.098592 | 79 | 0.665907 | false |
jackjlynch/github-activity-mirror | gh_copy.py | 1 | 1333 | from lxml import html
import requests
import argparse
from datetime import datetime
from git import Repo, Actor
def main():
parser = argparse.ArgumentParser(description='Copy a user\'s Github commit activity')
parser.add_argument('user')
parser.add_argument('repo_dir')
parser.add_argument('name')
p... | gpl-3.0 | 1,612,143,610,113,723,100 | 30 | 104 | 0.642911 | false |
AISystena/web_crawler | lib/image_cnn/ImagePredictor.py | 1 | 1517 | # coding: utf-8
import os.path
import pickle
import numpy as np
#from chainer import cuda
import chainer.functions as F
import Util
"""
CNNによる画像分類 (posi-nega)
- 5層のディープニューラルネット
"""
class ImagePredictor:
def __init__(self, gpu=0):
current_dir_path = os.path.dirname(__file__)
self.model_pkl = cu... | mit | 6,428,009,083,430,815,000 | 23.810345 | 66 | 0.540653 | false |
oscarpilote/Ortho4XP | src/O4_Mesh_Utils.py | 1 | 24769 | import time
import sys
import os
import pickle
import subprocess
import numpy
import requests
from math import sqrt, cos, pi
import O4_DEM_Utils as DEM
import O4_UI_Utils as UI
import O4_File_Names as FNAMES
import O4_Geo_Utils as GEO
import O4_Vector_Utils as VECT
import O4_OSM_Utils as OSM
import O4_Version
if 'dar'... | gpl-3.0 | -8,716,772,008,718,751,000 | 45.039033 | 197 | 0.559772 | false |
Treeki/NewerSMBW | Koopatlas/src/worldeditor.py | 1 | 5227 | from common import *
import re
def editableColourStr(array):
return '#%02X%02X%02X (%d)' % tuple(array)
NICE_STR_RE = re.compile('^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})\s*(?:\((\d+)\))?$')
def colourFromNiceStr(thing):
match = NICE_STR_RE.match(thing)
try:
if match:
r,g,b,a = match.groups()
ret... | mit | 4,182,107,282,050,427,000 | 27.562842 | 96 | 0.650277 | false |
daviddrysdale/pynamo | dynamo2.py | 1 | 10913 | """Implementation of Dynamo
Second iteration, adding detection of missing responses and expansion of the preference list."""
import copy
import random
import logging
import logconfig
from node import Node
from framework import Framework
from hash_multiple import ConsistentHashTable
from dynamomessages import ClientPu... | gpl-2.0 | 6,073,878,917,768,870,000 | 43.004032 | 121 | 0.607441 | false |
3WiseMen/python | pystock/pystock_xingAPI/xarequest.py | 1 | 23907 | #xarequest.py
import os
import threading
import time
import win32com.client
from .abstract_component import AbstractQueryProviderComponent
from .abstract_component import AbstractSubscriptionProviderComponent
class XAQueryEvents:
def __init__(self):
self._event_object_connector = XAQueryEvents.event_obj... | mit | 6,547,232,836,483,975,000 | 31.366959 | 138 | 0.660839 | false |
pyannote/pyannote-algorithms | pyannote/algorithms/segmentation/__init__.py | 1 | 1228 | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 CNRS (Hervé BREDIN - http://herve.niderb.fr)
# 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 re... | mit | 6,311,056,182,666,504,000 | 46.192308 | 80 | 0.770986 | false |
hosseinoliabak/learningpy | 13_51_googleApi.py | 1 | 2968 | '''
Calling a JSON API
In this assignment, you will write a Python program somewhat similar to
http://www.py4e.com/code3/geojson.py. The program will prompt for a location,
contact a web service and retrieve JSON for the web service and parse that data,
and retrieve the first place_id from the JSON. A place ID is a te... | gpl-3.0 | 1,357,545,549,673,138,400 | 37.545455 | 80 | 0.723383 | false |
titiwu/simpl | tests/test_simplDirectories.py | 1 | 3981 | from unittest import TestCase
import simpl.music_directories
class TestSimplDirectories(TestCase):
dir_list = [{'playlists': [],
'directory': '01-Test',
'files': ['Doobie Brothers - Without Love (Where would you be now).mp3',
'Frank Sinatra - New York ... | gpl-3.0 | 1,080,743,227,735,018,400 | 53.534247 | 120 | 0.560663 | false |
mgp/sharebears | sharebears/url_decoder_github.py | 1 | 5196 | import re
import url_decoder
from url_decoder import UrlDecoder, UrlDecoderException
class _GitHubUrlDecoder(UrlDecoder):
@staticmethod
def can_decode_url(url, parsed_url):
if not parsed_url.netloc.startswith("github."):
return False
return True
class GitHubRepositoryOwnerItem:
"""The owner in ... | apache-2.0 | 2,276,164,251,358,414,600 | 26.0625 | 89 | 0.672825 | false |
zhlinh/leetcode | 0142.Linked List Cycle II/solution.py | 1 | 1073 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
*****************************************
Author: zhlinh
Email: zhlinhng@gmail.com
Version: 0.0.1
Created Time: 2016-03-17
Last_modify: 2016-03-17
******************************************
'''
'''
Given a linked list,
return the node where... | apache-2.0 | -6,262,251,490,648,963,000 | 22.844444 | 44 | 0.50699 | false |
harkrishan/TwitterBot | TwitterBot.py | 1 | 3213 | #!/usr/bin/python
# Importing Twython
from twython import Twython
# Importing Wolfram
import urllib
import wolframalpha
import urllib2
from xml.etree import ElementTree as etree
import sys
import time
#Setting variables for Twitter
app_key = "*****YOUR APP KEY******"
app_secret = "****YOUR APP SECRET*****"
oauth_tok... | gpl-2.0 | 5,662,756,556,183,229,000 | 29.894231 | 112 | 0.498599 | false |
redcorelinux/sisyphus | src/frontend/cli/sisyphus-cli.py | 1 | 1263 | #!/usr/bin/python3
import sys
from libsisyphus import *
checkSystemMode()
pkgList = sys.argv[2:]
if "__main__" == __name__:
if sys.argv[1:]:
if "install" in sys.argv[1:]:
startInstall(pkgList)
elif "uninstall" in sys.argv[1:]:
startUninstall(pkgList)
elif "force-u... | gpl-2.0 | 5,561,284,598,834,534,000 | 27.066667 | 47 | 0.47981 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.