repo_name stringlengths 7 65 | path stringlengths 5 186 | copies stringlengths 1 4 | size stringlengths 4 6 | content stringlengths 941 973k | license stringclasses 14
values | hash stringlengths 32 32 | line_mean float64 5 100 | line_max int64 26 999 | alpha_frac float64 0.25 0.93 | ratio float64 1.5 7.35 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dimagi/commcare-hq | corehq/apps/aggregate_ucrs/admin.py | 1 | 1975 | from django.contrib import admin
from . import models
class TimeAggregationDefinitionAdmin(admin.ModelAdmin):
def get_changeform_initial_data(self, request):
initial_data = super(TimeAggregationDefinitionAdmin, self).get_changeform_initial_data(request)
defaults = {
'start_column': '... | bsd-3-clause | 56b00ba838ab9bbdc0dea518f4a0ec50 | 32.474576 | 104 | 0.735696 | 4.030612 | false | false | false | false |
onepercentclub/bluebottle | bluebottle/cms/management/commands/loadlinks.py | 1 | 1847 | # -*- coding: utf-8 -*-
import json
from django.core.management.base import BaseCommand
from bluebottle.cms.models import SiteLinks, LinkGroup, Link
from bluebottle.utils.models import Language
class Command(BaseCommand):
help = 'Load site links from json'
def add_arguments(self, parser):
parser.ad... | bsd-3-clause | 71291ddaf7e2b05145d36d54981dfd9f | 37.479167 | 83 | 0.441798 | 5.00542 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.