index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
20,360
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from django.core.manag...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,361
phlax/pootle_vcs
refs/heads/master
/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2006-2013 Translate House # # This file is part of Pootle_Vcs. # # Pootle_Vcs 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...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,362
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/migrations/0004_auto_20150923_2206.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pootle_vcs', '0003_auto_20150923_2155'), ] operations = [ migrations.RenameField( model_name='projectvcs', ...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,363
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/finder.py
import os import re class TranslationFileFinder(object): path_mapping = ( (".", "\."), ("<lang>", "(?P<lang>[\w]*)"), ("<filename>", "(?P<filename>[\w]*)"), ("<directory_path>", "(?P<directory_path>[\w\/]*)")) def __init__(self, translation_path): self.translation_pat...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,364
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/files.py
import os from import_export.utils import import_file from pootle_store.models import Store from pootle_translationproject.models import TranslationProject class RepositoryFile(object): def __init__(self, vcs, path, language, filename, directory_path=None): self.vcs = vcs self.language = langua...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,365
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/plugins.py
import io import logging import os from ConfigParser import ConfigParser from pootle_language.models import Language from pootle_store.models import Store from .files import RepositoryFile from .finder import TranslationFileFinder logger = logging.getLogger(__name__) class Plugin(object): name = None file...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,366
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs_commands/info.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from pootle_vcs.manage...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,367
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import logging import ...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,368
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs_commands/set_vcs.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from django.core.manag...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,369
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/schedule.py
import django_rq import datetime def func(): print "Boom!" scheduler = django_rq.get_scheduler('default') scheduler.schedule(datetime.datetime.utcnow(), func, interval=5)
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,370
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs_commands/fetch_translations.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from pootle_vcs.manage...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,371
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/__init__.py
from .plugins import Plugins, Plugin from .files import RepositoryFile (Plugin, RepositoryFile) plugins = Plugins()
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,372
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/migrations/0002_projectvcs_project_type.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pootle_vcs', '0001_initial'), ] operations = [ migrations.AddField( model_name='projectvcs', name='p...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,373
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs_commands/status.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from pootle_vcs.models...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,374
phlax/pootle_vcs
refs/heads/master
/pootle_vcs/management/commands/vcs_commands/files.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from pootle_vcs.manage...
{"/pootle_vcs/models.py": ["/pootle_vcs/__init__.py"], "/pootle_vcs/management/commands/__init__.py": ["/pootle_vcs/models.py"], "/pootle_vcs/files.py": ["/pootle_vcs/models.py"], "/pootle_vcs/plugins.py": ["/pootle_vcs/files.py", "/pootle_vcs/finder.py", "/pootle_vcs/models.py"], "/pootle_vcs/management/commands/vcs_c...
20,376
weiss1217/hideTwi
refs/heads/master
/hideTwi.py
#------------------------------------------------------------------------------- # Name: hideTwi # Purpose: # # Author: T # # Created: 24/12/2020 # Copyright: (c) T 2020 # Licence: <your licence> #------------------------------------------------------------------------------- import js...
{"/hideTwi.py": ["/config.py"]}
20,377
weiss1217/hideTwi
refs/heads/master
/config.py
#メインウィンドウ透過率 MAIN_ALPHA = 0.5 #画像ウィンドウ透過率 IMAGE_ALPHA = 0.5 #テーマカラー(color code 若しくは color name) #IMAGE_COLOR = "aliceblue" # or "#f0f8ff" IMAGE_COLOR = "darkgray" # or "#a9a9a9" #フォントカラー PHONT_COLOR = "#000000" #画像保存ディレクトリ IMAGE_DIRECTORY = "" # or "D:\hoge\huga\photo"
{"/hideTwi.py": ["/config.py"]}
20,382
labcodes/dados_brasil_io
refs/heads/master
/politicos/views.py
from datetime import date from rest_framework import generics, serializers from rest_framework.response import Response from politicos.models import Deputado, GastoCotaParlamentar class GastoCotaParlamentarSerializer(serializers.ModelSerializer): class Meta: model = GastoCotaParlamentar fields = ...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,383
labcodes/dados_brasil_io
refs/heads/master
/comum/migrations/0001_initial.py
# Generated by Django 2.0.4 on 2018-05-04 18:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Estado', fields=[ ('sigla', models.CharFiel...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,384
labcodes/dados_brasil_io
refs/heads/master
/politicos/management/commands/import_deputados.py
import requests from django.core.management import BaseCommand from politicos.models import Deputado class Command(BaseCommand): def pega_proxima_pagina(self, resposta): tem_proxima_pagina = [ link['href'] for link in resposta['links'] if link['rel'] == 'next' ] re...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,385
labcodes/dados_brasil_io
refs/heads/master
/empresas/migrations/0003_auto_20180504_2040.py
# Generated by Django 2.0.4 on 2018-05-04 20:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('empresas', '0002_remove_empresa_unidade_federativa'), ] operations = [ migrations.RemoveField( model_name='socio', n...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,386
labcodes/dados_brasil_io
refs/heads/master
/empresas/management/commands/import_pessoas_juridicas.py
from datetime import datetime import pandas as pd from django.core.management import BaseCommand from django.db import transaction from empresas.models import Empresa, Sociedade class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('csv', type=str) parser.add_argument('...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,387
labcodes/dados_brasil_io
refs/heads/master
/comum/models.py
from django.db import models class Estado(models.Model): sigla = models.CharField(max_length=2, primary_key=True) nome = models.CharField(max_length=255) def __str__(self): return self.nome
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,388
labcodes/dados_brasil_io
refs/heads/master
/empresas/models.py
from django.db import models from django.db.models import Case, Count, F, OuterRef, Q, Subquery, Sum, Value, When from django.db.models.functions import Coalesce class EmpresaQuerySet(models.QuerySet): def annotate_deputados(self): from politicos.models import Deputado deputados_qs = Deputado.obj...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,389
labcodes/dados_brasil_io
refs/heads/master
/empresas/management/commands/import_empresas.py
import bisect from datetime import datetime import pandas as pd from django.core.management import BaseCommand from django.db import transaction from empresas.models import Empresa class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('csv', type=str) parser.add_argumen...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,390
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0003_deputado.py
# Generated by Django 2.0.4 on 2018-05-04 18:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('comum', '0001_initial'), ('politicos', '0002_auto_20180504_1821'), ] operations = [ migrations.Crea...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,391
labcodes/dados_brasil_io
refs/heads/master
/empresas/migrations/0006_auto_20180513_0541.py
# Generated by Django 2.0.4 on 2018-05-13 05:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('empresas', '0005_empresa_uf'), ] operations = [ migrations.AlterField( model_name='empresa', name='empresas', ...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,392
labcodes/dados_brasil_io
refs/heads/master
/empresas/_models.py
from django.db import models class GastosDeputados(models.Model): # Deputado codlegislatura = models.IntegerField(null=True) # Gasto datemissao = models.DateTimeField(null=True) idedocumento = models.IntegerField(null=True) idecadastro = models.IntegerField(null=True) indtipodocumento = mo...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,393
labcodes/dados_brasil_io
refs/heads/master
/empresas/migrations/0005_empresa_uf.py
# Generated by Django 2.0.4 on 2018-05-07 20:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('comum', '0001_initial'), ('empresas', '0004_auto_20180507_1717'), ] operations = [ migrations.AddFi...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,394
labcodes/dados_brasil_io
refs/heads/master
/empresas/management/commands/import_pessoas_fisicas.py
from datetime import datetime import pandas as pd from django.core.management import BaseCommand from django.db import transaction from empresas.models import PessoaFisica, Sociedade class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('csv', type=str) parser.add_argum...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,395
labcodes/dados_brasil_io
refs/heads/master
/politicos/graficos.py
import matplotlib.pylab as plt from politicos.models import Deputado def chunks(l, n): """Yield successive n-sized chunks from l.""" for i in range(0, len(l), n): yield l[i:i + n] def graficos_gasto_mensal(): media_mensal = Deputado.objects.get_media_mensal() dados = sorted(media_mensal.item...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,396
labcodes/dados_brasil_io
refs/heads/master
/empresas/management/commands/import_estrangeiros.py
import bisect from datetime import datetime import pandas as pd import numpy as np import csv from django.core.management import BaseCommand from django.db import transaction from empresas.models import Estrangeiro, Sociedade class Command(BaseCommand): def add_arguments(self, parser): parser.add_argumen...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,397
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0005_auto_20180508_1559.py
# Generated by Django 2.0.4 on 2018-05-08 15:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('empresas', '0005_empresa_uf'), ('politicos', '0004_auto_20180504_1903'), ] operations = [ migration...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,398
labcodes/dados_brasil_io
refs/heads/master
/politicos/apps.py
from django.apps import AppConfig class PoliticosConfig(AppConfig): name = 'politicos'
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,399
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0002_auto_20180504_1821.py
# Generated by Django 2.0.4 on 2018-05-04 18:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('politicos', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='partido', name='id', ), ...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,400
labcodes/dados_brasil_io
refs/heads/master
/politicos/management/commands/import_partidos.py
import requests from django.core.management import BaseCommand from politicos.models import Partido class Command(BaseCommand): def handle(self, *args, **options): partidos = [] camara_url = 'https://dadosabertos.camara.leg.br/api/v2/partidos/?formato=json&itens=100' resposta = requests...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,401
labcodes/dados_brasil_io
refs/heads/master
/politicos/models.py
from django.db import models from django.db.models import Avg, F, FilteredRelation, Prefetch, Q, Sum class DeputadoQuerySet(models.QuerySet): def annotate_gasto_mensal_por_deputado(self): meses = range(1, 13) anos = range(2009, 2019) annotations = { f'gastos_{ano}_{mes:02}': S...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,402
labcodes/dados_brasil_io
refs/heads/master
/comum/apps.py
from django.apps import AppConfig class ComumConfig(AppConfig): name = 'comum'
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,403
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0004_auto_20180504_1903.py
# Generated by Django 2.0.4 on 2018-05-04 19:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('politicos', '0003_deputado'), ] operations = [ migrations.RemoveField( model_name='partido', name='deferimento', ...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,404
labcodes/dados_brasil_io
refs/heads/master
/politicos/management/commands/import_gastos.py
from dateutil.parser import parse from datetime import datetime import pandas as pd from django.core.management import BaseCommand from empresas.models import Empresa from politicos.models import GastoCotaParlamentar, Deputado class Command(BaseCommand): def add_arguments(self, parser): parser.add_argum...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,405
labcodes/dados_brasil_io
refs/heads/master
/empresas/migrations/0007_auto_20180517_1932.py
# Generated by Django 2.0.4 on 2018-05-17 19:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('empresas', '0006_auto_20180513_0541'), ] operations = [ migrations.RemoveField( model_name='empresa', name='empresas', ...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,406
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0007_auto_20180513_0241.py
# Generated by Django 2.0.4 on 2018-05-13 02:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('politicos', '0006_remove_deputado_id_camara'), ] operations = [ migrations.AlterField( model_na...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,407
labcodes/dados_brasil_io
refs/heads/master
/politicos/migrations/0008_auto_20180516_1511.py
# Generated by Django 2.0.4 on 2018-05-16 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('politicos', '0007_auto_20180513_0241'), ] operations = [ migrations.AddIndex( model_name='gastocotaparlamentar', ind...
{"/politicos/views.py": ["/politicos/models.py"], "/politicos/management/commands/import_deputados.py": ["/politicos/models.py"], "/empresas/management/commands/import_pessoas_juridicas.py": ["/empresas/models.py"], "/empresas/models.py": ["/politicos/models.py"], "/empresas/management/commands/import_empresas.py": ["/...
20,421
fieldhawker/akagi
refs/heads/master
/app/aimaker/views.py
from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse_lazy from django.utils import timezone from django_filters.views import FilterView from django.shortcuts import render from django.views.generic import TemplateView from app.aimaker.for...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,422
fieldhawker/akagi
refs/heads/master
/app/urls.py
from django.urls import path from django.conf.urls import url, include from .models import Item from django.views.generic import TemplateView from .views import ItemFilterView, ItemDetailView, ItemCreateView, ItemUpdateView, ItemDeleteView, FaceView from .views_top import TopIndexView from .aimaker.views import AiMak...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,423
fieldhawker/akagi
refs/heads/master
/app/views_top.py
from django.contrib.auth.mixins import LoginRequiredMixin # from django.http import HttpResponseRedirect # from django.urls import reverse_lazy # from django.utils import timezone # from django.views.generic import DetailView # from django.views.generic.edit import CreateView, UpdateView, DeleteView # from django_filte...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,424
fieldhawker/akagi
refs/heads/master
/app/aimaker/utils.py
from logging import basicConfig, getLogger, DEBUG from django.http import HttpResponse import requests import json import io import base64 basicConfig(level=DEBUG) logger = getLogger(__name__) def AiMakerRequest(base64): logger.debug('AiMakerRequest') # AIメーカーのWebAPIから取得したデータを返却する API_Key = 'c28f369480...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,425
fieldhawker/akagi
refs/heads/master
/app/views.py
from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse_lazy from django.utils import timezone from django.views.generic import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django_filters.views imp...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,426
fieldhawker/akagi
refs/heads/master
/app/aimaker/models.py
from django.db import models import io import base64 class Photo(models.Model): # 保存先ディレクトリの指定 image = models.ImageField(upload_to='images') def image_src(self): with self.image.open() as img: base64_img = base64.b64encode(img.read()).decode() return 'data:' + img.file.con...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,427
fieldhawker/akagi
refs/heads/master
/app/forms.py
from django import forms from .models import Item class ItemForm(forms.ModelForm): """ モデルフォーム構成クラス ・公式 モデルからフォームを作成する https://docs.djangoproject.com/ja/2.1/topics/forms/modelforms/ """ class Meta: model = Item fields = '__all__' # 以下のフィールド以外が入力フォームに表示される # A...
{"/app/aimaker/views.py": ["/app/aimaker/models.py", "/app/aimaker/utils.py"], "/app/urls.py": ["/app/views.py", "/app/views_top.py", "/app/aimaker/views.py"], "/app/views.py": ["/app/forms.py"]}
20,429
pawelgalka/bubbleshooter
refs/heads/master
/arrow.py
# coding=utf-8 #file for class of bubble and it's events #Paweł Gałka 11.08 from settings import * class Arrow(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.angle = 90 arrowImage = pygame.image.load('arrow.png') arrowImage.convert_alpha() ...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,430
pawelgalka/bubbleshooter
refs/heads/master
/board.py
# coding=utf-8 from settings import * from bubble import * def CreateEmptyBoard(): board = [] for i in range (ROWS): col = [] for j in range (COLS): col.append(EMPTY) board.append(col) return board def FillBoard(board, colorlist): for i in range(STARTLAYERS): ...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,431
pawelgalka/bubbleshooter
refs/heads/master
/settings.py
# coding=utf-8 #Paweł Gałka 11.08 import sys import pygame as pygame import pygame.gfxdraw import random, math, time, copy from pygame.locals import * random.seed() #colors RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) ORANGE = (255, 128, 0) YELLOW = (255, 255, 0) PURPLE = (102, 0, 101) NAVY ...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,432
pawelgalka/bubbleshooter
refs/heads/master
/setup.py
import cx_Freeze #for now, do the wildcard import, though the bigger the script gets, I would recommend an as ... structure executables = [cx_Freeze.Executable("main.py")] cx_Freeze.setup( name="Bubble shooter", author = "Pawel Galka", options={"build_exe": {"packages":["pygame"], ...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,433
pawelgalka/bubbleshooter
refs/heads/master
/main.py
# coding=utf-8 #Paweł Gałka 11.08 from settings import * from bubble import * from arrow import Arrow from board import * def main(): pygame.init() clock = pygame.time.Clock() board = CreateEmptyBoard() FillBoard(board,COLORS) launchBall = False ball = getBubble(COLORS) ball.rect.center...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,434
pawelgalka/bubbleshooter
refs/heads/master
/bubble.py
# coding=utf-8 #file for class of bubble and it's events #Paweł Gałka 11.08 from settings import * class Bubble(pygame.sprite.Sprite): def __init__(self, color, row=0, column=0, x=STARTX, y=STARTY): pygame.sprite.Sprite.__init__(self) self.rect = pygame.Rect(0,0,30,30) #30 because balls have gr...
{"/arrow.py": ["/settings.py"], "/board.py": ["/settings.py", "/bubble.py"], "/main.py": ["/settings.py", "/bubble.py", "/arrow.py", "/board.py"], "/bubble.py": ["/settings.py"]}
20,435
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/_repository.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import random import time from typing import Any, Dict, List, cast import typepy from .._const import DATETIME_FORMAT, RETRY_COUNT, CardType, CommonCardKey, Result from ._base import AbstractCardDataFetcher, CardData from ._common import dump_or...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,436
thombashi/ghscard
refs/heads/master
/ghscard/_logger.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import logbook import typepy def get_logger(log_level: int, extra_name: str): logger_name_list = [] if typepy.is_not_null_string(extra_name): logger_name_list.append(extra_name) logger = logbook.Logger(" ".join(logger_name_l...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,437
thombashi/ghscard
refs/heads/master
/ghscard/_const.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ PROGRAM_NAME = "ghscard" CARD_DATA_VERSION = 2 DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z" MAX_PER_PAGE = 100 RETRY_COUNT = 3 class AppConfigKey: GITHUB_API_ACCESS_TOKEN = "github_api_personal_access_token" OUTPUT_DIR = "output_dir" IND...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,438
thombashi/ghscard
refs/heads/master
/ghscard/_emoji.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import re from typing import Mapping, cast class EmojiParser: __re_emoji = re.compile(r":[\+a-zA-Z0-9_-]+:") def __init__(self, emoji_kv_mapping: Mapping[str, str]) -> None: if not emoji_kv_mapping: raise ValueError(...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,439
thombashi/ghscard
refs/heads/master
/ghscard/__init__.py
from .__version__ import __author__, __copyright__, __email__, __license__, __version__
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,440
thombashi/ghscard
refs/heads/master
/ghscard/_error.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ class ApiStatusError(Exception): """ Raised when GitHub API is in red status. """
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,441
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/_common.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from typing import Counter, Dict, Union from .._const import CommonCardKey ChartData = Dict[str, list] def dump_organization(organization) -> Dict[str, str]: if not organization: return {} if organization.name: organi...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,442
thombashi/ghscard
refs/heads/master
/test/test_emoji.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import pytest from ghscard._emoji import EmojiParser emojis = { "+1": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png?v7", "-1": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f44e.png?v7", "100": "ht...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,443
thombashi/ghscard
refs/heads/master
/ghscard/_stopwatch.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import contextlib import datetime from ._const import DATETIME_FORMAT @contextlib.contextmanager def stopwatch(logger, name): start_time = datetime.datetime.now() logger.debug(f"start {name:s}: {start_time.strftime(DATETIME_FORMAT):s}"...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,444
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/_organization.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._const import DATETIME_FORMAT, CardType, CommonCardKey from ._base import AbstractCardDataFetcher, CardData class OrganizationCardDataFetcher(AbstractCardDataFetcher): @property def type(self) -> str: return CardType.ORGA...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,445
thombashi/ghscard
refs/heads/master
/ghscard/_cache.py
from datetime import datetime from functools import total_ordering from typing import Union from datetimerange import DateTimeRange from path import Path @total_ordering class CacheTime: @property def second(self) -> Union[int, float]: return self.__second @property def hour(self) -> float: ...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,446
thombashi/ghscard
refs/heads/master
/ghscard/_detector.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import github import typepy from github.GithubException import UnknownObjectException from ._const import CardType class GithubIdDetector: @property def id(self) -> str: return self.__id def __init__(self, id: str, logger, ...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,447
thombashi/ghscard
refs/heads/master
/ghscard/_generator.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import errno import os.path from typing import Mapping import click import github import msgfy import typepy from github.GithubException import BadCredentialsException, UnknownObjectException from path import Path from pathvalidate import sanitiz...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,448
thombashi/ghscard
refs/heads/master
/ghscard/__main__.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import errno import os import sys import appconfigpy import click import logbook import logbook.more import msgfy import retryrequests import typepy from appconfigpy import ConfigItem, ConfigManager, DefaultDisplayStyle from github.GithubExceptio...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,449
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/__init__.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from ._base import AbstractCardDataFetcher from ._organization import OrganizationCardDataFetcher from ._repository import RepositoryCardDataFetcher from ._user import UserCardDataFetcher
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,450
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/_user.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import collections from multiprocessing.pool import AsyncResult # noqa from typing import Any, Counter, Dict, List, Optional, Union # noqa from .._const import DATETIME_FORMAT, CardType, CommonCardKey from ._base import AbstractCardDataFetcher,...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,451
thombashi/ghscard
refs/heads/master
/ghscard/_github_client.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import re from typing import Dict import msgfy import retryrequests import typepy from github.GithubException import RateLimitExceededException from ._const import MAX_PER_PAGE from ._emoji import EmojiParser from ._stopwatch import stopwatch ...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,452
thombashi/ghscard
refs/heads/master
/ghscard/fetcher/_base.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import abc import datetime import multiprocessing from typing import Dict, List, Union import github from .._const import CARD_DATA_VERSION, DATETIME_FORMAT, CommonCardKey, Result from .._github_client import GitHubClient from ._common import Ch...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,453
thombashi/ghscard
refs/heads/master
/docs/make_readme.py
#!/usr/bin/env python3 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import sys from readmemaker import ReadmeMaker PROJECT_NAME = "ghscard" OUTPUT_DIR = ".." def write_quickstart(maker): maker.set_indent_level(0) maker.write_introduction_file("quickstart.txt") maker.inc_in...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,454
thombashi/ghscard
refs/heads/master
/test/test_detector.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import github import logbook import pytest from github.GithubException import UnknownObjectException from ghscard._const import CardType from ghscard._detector import GithubIdDetector def monkey_get_organization(a, b): raise UnknownObjectEx...
{"/ghscard/fetcher/_repository.py": ["/ghscard/_const.py", "/ghscard/fetcher/_base.py", "/ghscard/fetcher/_common.py"], "/ghscard/fetcher/_common.py": ["/ghscard/_const.py"], "/test/test_emoji.py": ["/ghscard/_emoji.py"], "/ghscard/_stopwatch.py": ["/ghscard/_const.py"], "/ghscard/fetcher/_organization.py": ["/ghscard/...
20,507
pshegde96/multilayer-perceptron
refs/heads/master
/trainer.py
import numpy as np import pickle,shutil from network import Network from cross_entropy import cross_entropy import matplotlib.pyplot as plt import math import time import argparse from mnist import MNIST import os '''Parse CommandLine Arguments ''' parser = argparse.ArgumentParser() parser.add_argument('model_id',h...
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,508
pshegde96/multilayer-perceptron
refs/heads/master
/softmax.py
import numpy as np ''' Computes the softmax of a matrix considering the rows as input variables ''' def softmax(x,tmp=1): big = np.max(x,axis=1) x = x-big.reshape(-1,1) exp = np.exp(x*tmp) return exp/(np.sum(exp,axis=1)).reshape(-1,1) if __name__ == "__main__": main()
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,509
pshegde96/multilayer-perceptron
refs/heads/master
/activations.py
''' Contains all the activation functions implemented along with their derivatives ''' import numpy as np def sigmoid_fn(X): return 1/(1+np.exp(-X)) def sigmoid_derivative(X): sigm = sigmoid_fn(X) return sigm*(1-sigm) def relu_fn(X): return np.clip(X,0,None) def relu_derivative(X): der = np.zero...
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,510
pshegde96/multilayer-perceptron
refs/heads/master
/network.py
import numpy as np from layers import Layer from softmax import softmax class Network: def __init__(self,layers_size,activation='relu',task='classification'): self.layers_size = layers_size self.activation = activation self.task = task def init_network(self): self.lay...
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,511
pshegde96/multilayer-perceptron
refs/heads/master
/layers.py
import numpy as np import activations as act class Layer: def __init__(self,activation='relu',in_dim=1,out_dim=1,posn='hidden'): self.activation = activation self.in_dim = in_dim self.out_dim = out_dim self.posn=posn #Initialize the weight matrix and the bias vector via Xavier...
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,512
pshegde96/multilayer-perceptron
refs/heads/master
/numerical_gradient.py
import numpy as np import cPickle,gzip from network import Network from cross_entropy import cross_entropy import copy '''Important Parameters''' BATCH_SIZE = 64 LAYERS_SIZE = [784,50,20,10] LEARNING_RATE = 0.001 LR_DECAY = 0.85 #EVERY 200 ITERATIONS LAMBDA_REG = 0.005 NO_ITER = 8000 h = 1e-5 '''Load the Data-Set''...
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,513
pshegde96/multilayer-perceptron
refs/heads/master
/cross_entropy.py
import numpy as np def cross_entropy(Y_hat,y,one_hot='True'): if one_hot == 'False': Y = np.zeros_like(Y_hat) Y[range(y.shape[0]),y] = 1 else: Y=y inter = Y*np.log(Y_hat+1e-7) cross_entropy = -1.0/Y.shape[0]*(np.sum(inter)) return cross_entropy
{"/network.py": ["/layers.py", "/softmax.py"], "/layers.py": ["/activations.py"]}
20,515
eduardogpg/important_people
refs/heads/master
/config.py
import os class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'my_custome_secret_key' class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'mysql://root:@localhost/important_people' SQLALCHEMY_TRACK_MODIFICATIONS = False
{"/forms.py": ["/models.py"], "/manage.py": ["/config.py", "/forms.py", "/models.py"]}
20,516
eduardogpg/important_people
refs/heads/master
/forms.py
from wtforms import Form from wtforms import TextField from wtforms import PasswordField from wtforms.fields.html5 import EmailField from wtforms import HiddenField from wtforms import validators from models import User def length_honeypot(form, field): if len(field.data) > 0: raise validators.ValidationError('Es...
{"/forms.py": ["/models.py"], "/manage.py": ["/config.py", "/forms.py", "/models.py"]}
20,517
eduardogpg/important_people
refs/heads/master
/common/advanced_message.py
class AdvancedMessage(object): messages = [] class Message(): def __init__(self, message = '', type_message ='', identifier=''): self.message = message self.type_message = type_message self.identifier = identifier self.create_pre_idetifier() def create_pre_idetifier(self): self.pre_idetifier = "a...
{"/forms.py": ["/models.py"], "/manage.py": ["/config.py", "/forms.py", "/models.py"]}
20,518
eduardogpg/important_people
refs/heads/master
/models.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask_sqlalchemy import SQLAlchemy from werkzeug.security import generate_password_hash from werkzeug.security import check_password_hash import datetime db = SQLAlchemy() class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) ...
{"/forms.py": ["/models.py"], "/manage.py": ["/config.py", "/forms.py", "/models.py"]}
20,519
eduardogpg/important_people
refs/heads/master
/manage.py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Eduardo Ismael García Pérez' __contact__ = '@eduardo_gpg' from flask import Flask from flask import render_template from flask import request from flask import session from flask import redirect from flask import url_for from flask import flash from flask im...
{"/forms.py": ["/models.py"], "/manage.py": ["/config.py", "/forms.py", "/models.py"]}
20,545
ciampluca/unsupervised_counting
refs/heads/master
/train_adv.py
import sys import tqdm import os import torch import torch.nn as nn from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from torch.utils.data.sampler import WeightedRandomSampler from torchvision.transforms.functional import normalize from config import Config from models.CSRNet ...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,546
ciampluca/unsupervised_counting
refs/heads/master
/datasets/NDISPark.py
import os from PIL import Image import numpy as np import torch from torch.utils.data import Dataset from torch.utils.data import DataLoader from torchvision.transforms.functional import to_pil_image, normalize from utils.utils import get_transforms class NDISPark(Dataset): def __init__(self, root_dataset, pha...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,547
ciampluca/unsupervised_counting
refs/heads/master
/config.py
import os import time import torch class Config: def __init__(self, batch_size=None, lr_base=None, discriminator_lr_base=None, epochs=None, root_dataset=None, root_val_dataset=None, checkpoint_folder=None, momentum=0.9, weight_decay=0.0001, model_name=None, input_dim_resize=480...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,548
ciampluca/unsupervised_counting
refs/heads/master
/utils/transforms.py
import random from PIL import Image import numpy as np import torchvision.transforms.functional as F class RandomHorizontalFlip(object): def __call__(self, img_and_density): """ img: PIL.Image img_and_density: PIL.Image """ img, density_map = img_and_density if r...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,549
ciampluca/unsupervised_counting
refs/heads/master
/test.py
import os import tqdm from PIL import Image import numpy as np import torch from torch.utils.data import DataLoader from models.CSRNet import CSRNet from datasets.NDISPark import NDISPark from utils.utils import get_transforms # Parameters ROOT_DATASET = "/media/luca/Dati_2_SSD/datasets/vehicles_counting/NDISPark" ...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,550
ciampluca/unsupervised_counting
refs/heads/master
/utils/utils.py
from PIL import Image import numpy as np import torch from torchvision.transforms import Compose, ToTensor, Normalize from utils.transforms import PairedCrop, RandomHorizontalFlip, CustomResize def get_transforms(general_transforms=None, img_transforms=None, target_transforms=None, train=None, dim_resize=None): ...
{"/train_adv.py": ["/config.py", "/utils/utils.py", "/datasets/NDISPark.py"], "/datasets/NDISPark.py": ["/utils/utils.py"], "/test.py": ["/datasets/NDISPark.py", "/utils/utils.py"], "/utils/utils.py": ["/utils/transforms.py"]}
20,565
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/tests/django/details/abstractmodels/Person.py
from django.db import models from django.contrib.auth.models import User from django.core.validators import MaxValueValidator, MinValueValidator GENDER = ( ('F',"""Female"""), ('M',"""Male"""), ) GENDER = ( ('M',"""Make"""), ('F',"""Female"""), ) class Person(models.Model): person_id = models.AutoField("Pers...
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...
20,566
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/tests/django/details/abstractmodels/Country.py
from django.db import models from django.contrib.auth.models import User from django.core.validators import MaxValueValidator, MinValueValidator class Country(models.Model): country_name = models.CharField("Name", max_length=50) class Meta: abstract = True class Country(models.Model): country_id = models.AutoF...
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...
20,567
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/tests/test1.py
from googlespreadsheet2django.builder import export_code if __name__ == "__main__": export_code('1HWhdkKIHUK-tOEJWEp6gVh3evyV1YipgqV7QeTsUtYI', 'django')
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...
20,568
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/tests/django/details/admins/PersonAdmin.py
from details.models import Person from django.forms import Textarea, CheckboxSelectMultiple from django.forms.models import ModelMultipleChoiceField from django.utils.translation import ugettext as _ from django.contrib import admin from django.conf import settings from django.db import models from common.admintools i...
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...
20,569
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/tests/django/details/admin.py
##### auto:start:Person ##### from models import Person from admins.PersonAdmin import * class PersonAdmin(PersonAdminAbstract): pass ##### auto:end:Person ##### ##### auto:start:Country ##### from models import Country from admins.CountryAdmin import * class CountryAdmin(CountryAdminAbstract): pass ##### aut...
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...
20,570
UmSenhorQualquer/googlespreadsheet2django
refs/heads/master
/googlespreadsheet2django/answers/choice.py
class Choice(object): def __init__(self, code, label): self._code = code self._label = label def __unicode__(self): return "\t('%s',\"\"\"%s\"\"\")" % (self._code, self._label) def __str__(self): return self.__unicode__()
{"/tests/test1.py": ["/googlespreadsheet2django/builder.py"], "/googlespreadsheet2django/answers/answers.py": ["/googlespreadsheet2django/answers/choice.py"], "/googlespreadsheet2django/models/models_loader.py": ["/googlespreadsheet2django/models/field.py", "/googlespreadsheet2django/models/model.py"], "/googlespreadsh...