index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
17,885
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/tarfile.py
/home/jose/anaconda3/lib/python3.6/tarfile.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,886
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/warnings.py
/home/jose/anaconda3/lib/python3.6/warnings.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,887
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/tokenize.py
/home/jose/anaconda3/lib/python3.6/tokenize.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,888
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/genericpath.py
/home/jose/anaconda3/lib/python3.6/genericpath.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,889
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/_bootlocale.py
/home/jose/anaconda3/lib/python3.6/_bootlocale.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,890
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/reprlib.py
/home/jose/anaconda3/lib/python3.6/reprlib.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,891
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/ntpath.py
/home/jose/anaconda3/lib/python3.6/ntpath.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,892
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/os.py
/home/jose/anaconda3/lib/python3.6/os.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,893
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/base64.py
/home/jose/anaconda3/lib/python3.6/base64.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,894
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/io.py
/home/jose/anaconda3/lib/python3.6/io.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,895
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/tempfile.py
/home/jose/anaconda3/lib/python3.6/tempfile.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,896
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/token.py
/home/jose/anaconda3/lib/python3.6/token.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,897
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/abc.py
/home/jose/anaconda3/lib/python3.6/abc.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,898
JoseEvanan/frikr
refs/heads/master
/Frikr/urls.py
"""Frikr URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,899
JoseEvanan/frikr
refs/heads/master
/env/lib/python3.6/copyreg.py
/home/jose/anaconda3/lib/python3.6/copyreg.py
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,900
JoseEvanan/frikr
refs/heads/master
/users/serializers.py
from django.contrib.auth.models import User from rest_framework import serializers class UserSerializer(serializers.Serializer): id = serializers.ReadOnlyField() # read only first_name = serializers.CharField() last_name = serializers.CharField() username = serializers.CharField() email = serializ...
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,901
JoseEvanan/frikr
refs/heads/master
/photos/views.py
from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.http import HttpResponse, HttpResponseNotFound from django.shortcuts import render, redirect from django.urls import reverse from django.views.generic import View, ListView from django.db.models im...
{"/users/permissions.py": ["/users/api.py"], "/photos/migrations/0003_auto_20181022_0740.py": ["/photos/validators.py"], "/users/api.py": ["/users/serializers.py", "/users/permissions.py"], "/photos/api.py": ["/photos/views.py"], "/Frikr/urls.py": ["/photos/api.py", "/photos/views.py", "/users/api.py"]}
17,902
mhall119/wallpaper_contest
refs/heads/master
/submissions/models.py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Contest(models.Model): name = models.CharField(max_length=64, blank=False, null=False) def __str__(self): return self.name class Category(models.Model): name = models.CharField(max_length=64,...
{"/submissions/management/commands/from_flickr.py": ["/submissions/models.py"], "/submissions/admin.py": ["/submissions/models.py"], "/submissions/views.py": ["/submissions/models.py"]}
17,903
mhall119/wallpaper_contest
refs/heads/master
/submissions/management/commands/from_flickr.py
from django.core.management.base import BaseCommand, CommandError from rest_framework.parsers import JSONParser import requests import datetime import simplejson from submissions.models import Contest, Submission class Command(BaseCommand): help = 'Imports images from Flickr group' def add_arguments(self, p...
{"/submissions/management/commands/from_flickr.py": ["/submissions/models.py"], "/submissions/admin.py": ["/submissions/models.py"], "/submissions/views.py": ["/submissions/models.py"]}
17,904
mhall119/wallpaper_contest
refs/heads/master
/submissions/migrations/0001_initial.py
# Generated by Django 2.0 on 2018-02-15 15:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
{"/submissions/management/commands/from_flickr.py": ["/submissions/models.py"], "/submissions/admin.py": ["/submissions/models.py"], "/submissions/views.py": ["/submissions/models.py"]}
17,905
mhall119/wallpaper_contest
refs/heads/master
/submissions/admin.py
from django.contrib import admin from django.utils.safestring import mark_safe from submissions.models import Contest, Category, Submission, Vote # Register your models here. admin.site.register(Contest) admin.site.register(Category) class SubmissionAdmin(admin.ModelAdmin): def view(self, photo): return ...
{"/submissions/management/commands/from_flickr.py": ["/submissions/models.py"], "/submissions/admin.py": ["/submissions/models.py"], "/submissions/views.py": ["/submissions/models.py"]}
17,906
mhall119/wallpaper_contest
refs/heads/master
/submissions/views.py
from django.shortcuts import render, redirect from submissions.models import Contest, Category, Submission, Vote from django.contrib.auth.decorators import login_required # Create your views here. @login_required def list_contests(request): context = { 'contests': Contest.objects.all() } return ren...
{"/submissions/management/commands/from_flickr.py": ["/submissions/models.py"], "/submissions/admin.py": ["/submissions/models.py"], "/submissions/views.py": ["/submissions/models.py"]}
17,908
manulangat1/Netflix-clone
refs/heads/master
/core/serializers.py
from rest_framework import serializers from .models import PlayList,Movie,Profile from django.contrib.auth import get_user_model User = get_user_model() class MovieSerializer(serializers.ModelSerializer): class Meta: model = Movie fields = '__all__' class PlayListSerializer(serializers.ModelSerial...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,909
manulangat1/Netflix-clone
refs/heads/master
/core/migrations/0002_playlist_name.py
# Generated by Django 3.0.3 on 2020-02-10 17:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( model_name='playlist', name='name', field=...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,910
manulangat1/Netflix-clone
refs/heads/master
/core/api.py
from .serializers import MovieSerializer,PlayListSerializer,UserSerializer,ProfileSerializer from .models import PlayList,Movie from rest_framework import viewsets, mixins, permissions from rest_framework import status from rest_framework import generics from rest_framework.response import Response from rest_framework...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,911
manulangat1/Netflix-clone
refs/heads/master
/core/models.py
from django.db import models from django.contrib.auth import get_user_model from django.db.models.signals import post_save from django.dispatch import receiver User = get_user_model() # Create your models here. class BaseModel(models.Model): updated_at = models.DateTimeField(auto_now=True) created_at = models....
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,912
manulangat1/Netflix-clone
refs/heads/master
/core/views.py
from django.shortcuts import render import requests from django.http import HttpResponse from isodate import parse_duration from .models import Movie from django.shortcuts import get_object_or_404 # Create your views here. API_KEY = "AIzaSyDQnTT1O4JNvLBEWTaCj-65aAU4vQd7A_o" def index(request): print(requests) a...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,913
manulangat1/Netflix-clone
refs/heads/master
/core/migrations/0005_profile_bio.py
# Generated by Django 3.0.3 on 2020-02-11 14:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_profile'), ] operations = [ migrations.AddField( model_name='profile', name='bio', field=mo...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,914
manulangat1/Netflix-clone
refs/heads/master
/core/admin.py
from django.contrib import admin # Register your models here. from .models import Movie,PlayList,Category,Profile admin.site.register(Movie) admin.site.register(PlayList) admin.site.register(Category) admin.site.register(Profile)
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,915
manulangat1/Netflix-clone
refs/heads/master
/core/migrations/0001_initial.py
# Generated by Django 3.0.3 on 2020-02-10 17:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BaseModel', fields=[ ...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,916
manulangat1/Netflix-clone
refs/heads/master
/core/urls.py
from django.urls import path from .views import index,youtube,add_to_playlist from .api import MovieAPI,PlayListAPI,MovieCreateAPI,MoviesAPI,UserList from rest_framework import routers router = routers.SimpleRouter() router.register(r'user', UserList) urlpatterns = [ path('',index), path('data/',youtube), ...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,917
manulangat1/Netflix-clone
refs/heads/master
/core/tests.py
from django.test import TestCase from datetime import datetime import json from .serializers import PlayListSerializer,MovieSerializer from django.utils import timezone from .models import BaseModel,Movie,PlayList import pytest from rest_framework.test import APITestCase from rest_framework import status from django.ur...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,918
manulangat1/Netflix-clone
refs/heads/master
/core/tasks.py
from celery.task.schedules import crontab from celery.decorators import periodic_task import requests from django.http import HttpResponse from isodate import parse_duration from .models import Movie from django.shortcuts import get_object_or_404 from celery.utils.log import get_task_logger from .views import save_yout...
{"/core/serializers.py": ["/core/models.py"], "/core/api.py": ["/core/serializers.py", "/core/models.py"], "/core/views.py": ["/core/models.py"], "/core/admin.py": ["/core/models.py"], "/core/urls.py": ["/core/views.py", "/core/api.py"], "/core/tests.py": ["/core/serializers.py", "/core/models.py"], "/core/tasks.py": [...
17,920
primal100/serverperformance
refs/heads/master
/lib/handlers.py
import asyncio from functools import partial import socketserver import time def get_handler(handler_cls, executor, action_cls, done_event): description = ' '.join([handler_cls.__name__, executor.__name__, action_cls.__name__]) return partial(handler_cls, description, executor, action_cls, done_event) class...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,921
primal100/serverperformance
refs/heads/master
/lib/testcases.py
import unittest import os import socket import multiprocessing class BaseTestCase(unittest.TestCase): num_to_send = 100 msg_size = 100 stop_event = multiprocessing.Event() done_event = multiprocessing.Event() def run_server(self, *args): raise NotImplementedError def start_server_pro...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,922
primal100/serverperformance
refs/heads/master
/lib/actions.py
import aiofile import asyncio import binascii import os from pathlib import Path import time chunk_length = 16 sleep_for = 0.001 def bytes_to_chunks(b): pos = 0 while pos < len(b): newpos = pos + chunk_length chunk = b[pos:newpos] pos = newpos yield chunk class Action: d...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,923
primal100/serverperformance
refs/heads/master
/tests.py
from lib.testcases import BaseTestCase from lib.actions import actions from lib.servers import sync_servers from lib.executors import sync_executors from lib.handlers import sync_handlers class TestSyncServersSleeping(BaseTestCase): def run_server(self, s, h, e, a): from lib.actions import actions ...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,924
primal100/serverperformance
refs/heads/master
/lib/servers.py
import asyncio import threading import socketserver from lib.handlers import get_handler class BaseServer: server = None def __init__(self, handler_cls, executor_cls, action_cls, stop_event, done_event, host="localhost", port=9999): self.stop_event = stop_event self.host = host self....
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,925
primal100/serverperformance
refs/heads/master
/lib/executors.py
import asyncio import os from concurrent import futures thread_executor = futures.ThreadPoolExecutor() process_executor = futures.ProcessPoolExecutor() def run(cb, func, *args): func(*args) cb() def run_in_thread(cb, func, *args): future = thread_executor.submit(func, *args) future.add_done_callbac...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,926
primal100/serverperformance
refs/heads/master
/lib/__init__.py
import asyncio import os if os.name=='linux': import uvloop loop_policy = uvloop.EventLoopPolicy else: class WindowsEventLoopPolicy(asyncio.DefaultEventLoopPolicy): def new_event_loop(self): return asyncio.ProactorEventLoop() loop_policy = WindowsEventLoopPolicy def set_loop_polic...
{"/tests.py": ["/lib/testcases.py", "/lib/actions.py", "/lib/servers.py", "/lib/executors.py", "/lib/handlers.py"], "/lib/servers.py": ["/lib/handlers.py"]}
17,928
vgrangep/cooperative-agents-simulation
refs/heads/main
/agent.py
import random class Agent: """ Notes ---------- There is a really big assumption in this simulation. Agents have no idea when the game will end. Therefore, they can not modify their strategy based on the number games left to play. The score increment is calculated based on a combination of our ans...
{"/app.py": ["/agent.py"]}
17,929
vgrangep/cooperative-agents-simulation
refs/heads/main
/app.py
from agent import * import random def display_results(agents): for ag in agents: print(sum(ag.score)) def pair_agents(agents, verbose=False): random_agents = list(agents) random.shuffle(random_agents) pairings = list(zip(random_agents[:len(random_agents)//2], random_...
{"/app.py": ["/agent.py"]}
17,937
wikty/Spiders
refs/heads/master
/scrapy_tor/test/check_privoxy_http_port.py
import requests # privoxy proxy port proxy_port = 8118 # generate http session s = requests.Session() s.proxies = { "http": "http://127.0.0.1:%d" % proxy_port } # make http request #r = s.get("http://www.google.com") r = s.get("https://www.atagar.com/echo.php") print(r.text)
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,938
wikty/Spiders
refs/heads/master
/ejob/ejob/middlewares.py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html import os from scrapy import signals from scrapy.http import HtmlResponse from selenium import webdriver class EjobSpiderMiddleware(object): # Not...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,939
wikty/Spiders
refs/heads/master
/scrapy_tor/test/check_socks_to_tor.py
import socks # SocksiPy module import socket import urllib.request import stem.process from stem.util import term TOR_SOCKS_PORT = 9150 def set_socks_proxy(): try: # Set socks proxy socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', TOR_SOCKS_PORT) socket.socket = socks.socksocket # Perform DNS res...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,940
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/db.py
import sqlite3, sys import settings sqlite_file = settings.SQLITE_FILE sqlite_table = settings.SQLITE_TABLE sqlite_table_desc = settings.SQLITE_TABLE_DESC def create_table(): client = sqlite3.connect(sqlite_file) cursor = client.cursor() sql = 'CREATE TABLE IF NOT EXISTS {table} ({fields})' fields = ['id INTEGER...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,941
wikty/Spiders
refs/heads/master
/netmusic/test/login.py
import os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.select import Select import config username = '15620161152193' password = '160318' driver = webdriver.Firefox(executable_path=os.path.abspath(config.GECKODRIVER_PATH)) # WebDriver will wait unti...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,942
wikty/Spiders
refs/heads/master
/ejob/ejob/spiders/lagou_job_spider_test.py
# -*- coding: utf-8 -*- import os, json from urllib.parse import quote import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from ejob.items import JobItem from ejob.item_loaders import LagouJobItemLoader class LagouJobSpiderSpider(scrapy.spiders.CrawlSpider): nam...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,943
wikty/Spiders
refs/heads/master
/ejob/db/sqlite_db.py
import sqlite3 from .base_db import BaseDb class SqliteDb(BaseDb): def __init__(self, sqlite_file=None, sqlite_mode=None): if sqlite_file: self.sqlite_file = sqlite_file else: self.sqlite_file = 'dump.db' if sqlite_mode: self.debug = sqlite_mode else: self.debug = True self.client = sqlite3...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,944
wikty/Spiders
refs/heads/master
/notification/notification/spiders/event_wisesoe_spider.py
# -*- coding: utf-8 -*- import time, os, json import requests import scrapy from scrapy.mail import MailSender def get_email_body(title, speaker, address, showtime, reservetime): return """ Title: {title} Speaker: {speaker} Address: {address} ShowTime: {showtime} ReserveTime: {reservetime} """.format(title=title, sp...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,945
wikty/Spiders
refs/heads/master
/scrapy_tor/test/check_pycurl_to_tor.py
import io import pycurl import stem.process from stem.util import term TOR_SOCKS_PORT = 9150 # Uses pycurl to fetch a site using the proxy on the SOCKS_PORT def query(url): output = io.BytesIO() query = pycurl.Curl() query.setopt(pycurl.URL, url) query.setopt(pycurl.PROXY, 'localhost') query.setopt(pycurl.PROXY...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,946
wikty/Spiders
refs/heads/master
/ejob/parser/parse_jobs_description.py
from scrapy.selector import Selector def parse(filename): content = '' with open(filename, 'r', encoding='utf8') as f: content = f.read() sl = Selector(text=content)
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,947
wikty/Spiders
refs/heads/master
/scrapy_tor/test/check_selenium.py
# Python language bindings for Selenium WebDriver # https://pypi.python.org/pypi/selenium from selenium.webdriver.phantomjs.webdriver import WebDriver dirver = WebDriver(executable_path="../example/phantomjs-2.1.1-windows/bin/phantomjs.exe") dirver.get('http://www.baidu.com') print(dirver.title)
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,948
wikty/Spiders
refs/heads/master
/ejob/db/__init__.py
from .sqlite_db import SqliteDb as SQLiteDB
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,949
wikty/Spiders
refs/heads/master
/scrapy_tor/example/example/spiders/showip.py
# -*- coding: utf-8 -*- import scrapy class ShowIpSpider(scrapy.Spider): name = "showip" #start_urls = ['http://icanhazip.com'] url = 'http://icanhazip.com' def start_requests(self): # for i in range(200): # yield scrapy.Request(self.url, callback=self.parse, dont_filter=True) yield scrapy.Request(self.url...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,950
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class StarsItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class StarInfoItem(scrapy.Item): s...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,951
wikty/Spiders
refs/heads/master
/ejob/ejob/items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class EjobItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class CatalogItem(scrapy.Item): id ...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,952
wikty/Spiders
refs/heads/master
/ejob/ejob/pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import os, json, codecs, hashlib from urllib.parse import quote import scrapy from scrapy.exceptions import DropItem class Ejo...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,953
wikty/Spiders
refs/heads/master
/ejob/ejob/item_loaders.py
from scrapy.loader import ItemLoader from scrapy.loader.processors import TakeFirst, MapCompose, Join, Compose, Identity from w3lib.html import remove_tags def take_first_nonempty_from_iterable(): return TakeFirst() def str_strip(chars=' '): return MapCompose(lambda s: s.strip(chars)) def list_strip(chars=' '): r...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,954
wikty/Spiders
refs/heads/master
/netmusic/test/config.py
PHANTOMJS_PATH = '../bin/phantomjs-2.1.1-windows/phantomjs.exe' GECKODRIVER_PATH = '../bin/geckodriver-v0.17.0-win32/geckodriver.exe'
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,955
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/spiders/stars_catalog_spider.py
import re, string, json import scrapy class StarsSpider(scrapy.Spider): name = "stars-catalog-spider" start_urls = [ 'http://ent.qq.com/c/dalu_star.shtml', ] stars_capital = [c for c in string.ascii_uppercase] stars_capital.append('0-9') def start_requests(self): for url in self.start_urls: request = scr...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,956
wikty/Spiders
refs/heads/master
/china_stars/Scrapy-sqlite-item-exporter-master/exporters.py
""" Item Exporters are used to export/serialize items into sqlite3 database. """ from scrapy.contrib.exporter import BaseItemExporter import sqlite3 class SqliteItemExporter(BaseItemExporter): def __init__(self, file, **kwargs): self._configure(kwargs) self.conn = sqlite3.connect(file.name) ...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,957
wikty/Spiders
refs/heads/master
/netmusic/test/firefox.py
import os from selenium import webdriver from selenium.webdriver.common.keys import Keys import config print(os.path.abspath(config.GECKODRIVER_PATH)) driver = webdriver.Firefox(executable_path=os.path.abspath(config.GECKODRIVER_PATH)) # WebDriver will wait until the page has fully loaded (that is, the “onload” even...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,958
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/settings.py
# -*- coding: utf-8 -*- # Scrapy settings for stars project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/t...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,959
wikty/Spiders
refs/heads/master
/ejob/db/base_db.py
import abc class BaseDb(metaclass=abc.ABCMeta): @abc.abstractmethod def close(self): pass @abc.abstractmethod def sql(self, q): pass @abc.abstractmethod def create_table(self, tbl_name, fields, extra=None): pass @abc.abstractmethod def select_table(self, tbl_name, fields=[], where_condition=None): ...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,960
wikty/Spiders
refs/heads/master
/ejob/ejob/spiders/rongyp_catalog_spider.py
# -*- coding: utf-8 -*- import scrapy from ejob.items import CatalogItem class RongypCatalogSpiderSpider(scrapy.Spider): name = "rongyp_catalog_spider" allowed_domains = ["rongyp.com"] start_urls = ['https://www.rongyp.com/index.php?m=Home&c=Job&a=jobSearch'] def start_requests(self): for url in self.start_url...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,961
wikty/Spiders
refs/heads/master
/scrapy_tor/test/check_tor_control_port.py
import getpass import sys import stem import stem.connection from stem.control import Controller CONTROL_PORT = 9151 if __name__ == '__main__': # connect tor control socket try: controller = Controller.from_port(port=CONTROL_PORT) except stem.SocketError as e: print("Unable to connect to tor on port %d: %s" %...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,962
wikty/Spiders
refs/heads/master
/ejob/ejob/spiders/lagou_catalog_spider.py
# -*- coding: utf-8 -*- import scrapy from ejob.items import CatalogItem class LagouCatalogSpiderSpider(scrapy.Spider): name = "lagou_catalog_spider" allowed_domains = ["lagou.com"] start_urls = ['http://www.lagou.com/'] def parse(self, response): xpath = '//*[@id="sidebar"]//*[@class="menu_box"][.//h2[contain...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,963
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/pipelines.py
# -*- coding: utf-8 -*- import codecs, json, sqlite3 # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class StarsCatalogPipeline(object): def open_spider(self, spider): self.f = codecs.open('stars_...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,964
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/spiders/stars_spider.py
import re, string, json, urllib import scrapy from stars.items import StarInfoItem class StarsSpider(scrapy.Spider): name = "stars-spider" start_urls = [ 'http://ent.qq.com/c/dalu_star.shtml', ] stars_capital = [c for c in string.ascii_uppercase] stars_capital.append('0-9') starinfo_fields = { 'name':'姓名', ...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,965
wikty/Spiders
refs/heads/master
/netmusic/test/api.py
## # selenium.webdriver module provides all the WebDriver implementations. # Currently supported WebDriver implementations are Firefox, Chrome, IE and Remote. ## from selenium import webdriver # webdriver.Firefox( # firefox_profile=None, # firefox_binary=None, # timeout=30, # capabilities=None, # proxy=None, # ex...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,966
wikty/Spiders
refs/heads/master
/ejob/ejob/spiders/rongyp_job_spider_test.py
# -*- coding: utf-8 -*- import os, json, re from urllib.parse import quote import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from ejob.items import JobItem from ejob.item_loaders import RongypJobItemLoader def filter_job_url(url): m = re.search(r'openings_id=\...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,967
wikty/Spiders
refs/heads/master
/ejob/ejob/spiders/pinggu_catalog_spider.py
# -*- coding: utf-8 -*- import scrapy class PingguCatalogSpiderSpider(scrapy.Spider): name = "pinggu_catalog_spider" allowed_domains = ["pinggu.org"] start_urls = ['http://bbs.pinggu.org/z_rc.php'] def parse(self, response): pass
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,968
wikty/Spiders
refs/heads/master
/china_stars/stars/stars/spiders/starinfo_spier.py
import re, string, json, urllib import scrapy from stars.items import StarInfoItem class StarsTestSpider(scrapy.Spider): name = "starinfo-spider" start_urls = [ 'http://datalib.ent.qq.com/star/2829/index.shtml', ] starinfo_fields = { 'name':'姓名', 'another_name':'原名', 'gender':'性别', 'english_name':'英文名...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,969
wikty/Spiders
refs/heads/master
/scrapy_tor/test/renew_tor_connection.py
# -*- coding: utf-8 -*- import time import urllib import requests import stem import stem.connection from stem import Signal from stem.control import Controller PROXY_PORT = 8118 # privoxy proxy port TOR_CONTROL_PORT = 9151 TOR_CONTROL_PASSWORD = '123456' def create_http_session(proxy_port): s = requests.Session...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,970
wikty/Spiders
refs/heads/master
/notification/notification/middlewares.py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals from scrapy.http import HtmlResponse from selenium import webdriver from selenium.webdriver.common.proxy import Proxy, ProxyT...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,971
wikty/Spiders
refs/heads/master
/scrapy_tor/example/example/middlewares.py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html import random from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware from stem import Signal from stem.control import Controller from s...
{"/ejob/db/sqlite_db.py": ["/ejob/db/base_db.py"], "/ejob/db/__init__.py": ["/ejob/db/sqlite_db.py"]}
17,972
zzhacked/securityMonitor
refs/heads/master
/connect_db.py
from pymongo import MongoClient def enqury_data(): wordlist = [] DBNAME = '' #数据库名 DBUSERNAME = '' #数据库用户 DBPASSWORD = '' #数据库密码 DB = '' #数据库IP PORT = 27017 db_conn = MongoClient(DB, PORT) na_db = getattr(db_conn, DBNAME) na_db.authenticate(DBUSERNAME, DBPASSWORD) return na_db if __name__ ==...
{"/flask_demo.py": ["/connect_db.py"]}
17,973
zzhacked/securityMonitor
refs/heads/master
/spider/get_wechat_info.py
import requests from bs4 import BeautifulSoup as bs from lxml import etree import time from PIL import Image from fateadm_api import FateadmApi import datetime from selenium import webdriver from pymongo import MongoClient import random import re user_agent = [ 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537....
{"/flask_demo.py": ["/connect_db.py"]}
17,974
zzhacked/securityMonitor
refs/heads/master
/spider/get_cve_info.py
import re import time import requests import os from pymongo import MongoClient from bs4 import BeautifulSoup as bs nowtime = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) def get_CVE_urls(): urls = [] res = requests.get('https://cassandra.cerias.purdue.edu/CVE_changes/today.html') #pr...
{"/flask_demo.py": ["/connect_db.py"]}
17,975
zzhacked/securityMonitor
refs/heads/master
/flask_demo.py
import re import time from flask import Flask from flask import request from flask import render_template from connect_db import enqury_data app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def home(): na_db = enqury_data() now_time = time.strftime('%Y-%m-%d', time.localtime(time.time())) d...
{"/flask_demo.py": ["/connect_db.py"]}
17,976
zzhacked/securityMonitor
refs/heads/master
/spider/get_anquanke_info.py
import requests from pymongo import MongoClient from bs4 import BeautifulSoup as bs import time import os nowtime = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) def anquanke_info(): url = 'https://www.anquanke.com/' #keywords = config.keywords#关注的关键字 wordlist = [] select_msg = '' res = reque...
{"/flask_demo.py": ["/connect_db.py"]}
17,977
zzhacked/securityMonitor
refs/heads/master
/spider/get_seebug_info.py
#! /usr/bin/env python3 # encoding: utf-8 import asyncio import requests from pymongo import MongoClient from bs4 import BeautifulSoup as bs from pyppeteer import launch async def main(): browser = await launch() page = await browser.newPage() await page.goto('http://www.seebug.org') await page.waitFor(...
{"/flask_demo.py": ["/connect_db.py"]}
17,987
honoriovega/cst205-proj2
refs/heads/master
/app.py
""" Course : CST205 Title : app.py Authors: Javar Alexander, Honorio Vega, Antonio Villagomez Abstract : This program is the driver of the program. It sets up the server. It also broadcasts and sends new messages. aswell as saving the messages to a database. It pulls pictures from Getty and...
{"/models.py": ["/app.py"], "/botcommands.py": ["/gettyApi.py"]}
17,988
honoriovega/cst205-proj2
refs/heads/master
/models.py
""" Course : CST205 Title : models.py Author: Honorio Vega Abstract : This file is our database model. It defines our fields and table. This file will be used to create the database in postgresql. Date : 03/15/2017 Who worked on what: Honorio wrote this file. Consulted with Antonio and Javar for the...
{"/models.py": ["/app.py"], "/botcommands.py": ["/gettyApi.py"]}
17,989
honoriovega/cst205-proj2
refs/heads/master
/gettyApi.py
""" Course : CST205 Title : botcommands.py Authors: Javar Alexander, Honorio Vega Abstract : This file contains the commands for the getty api. It contains two functions. One to fetch the background for the chat app and the other to retrieve images based on a users request. For example if a user types "!! ...
{"/models.py": ["/app.py"], "/botcommands.py": ["/gettyApi.py"]}
17,990
honoriovega/cst205-proj2
refs/heads/master
/botcommands.py
""" Course : CST205 Title : botcommands.py Authors: Javar Alexander, Honorio Vega Abstract : This contains the possible commands that the bot can do. It can be made to repeat what a user said. It can also be made to fetch pictures and gif's from Getty and Giffy respectively. Date : 03/15/2017 W...
{"/models.py": ["/app.py"], "/botcommands.py": ["/gettyApi.py"]}
17,991
fanghuiz/ufc-stats-crawler
refs/heads/master
/ufcStats/utils.py
import datetime import re from dateparser import parse def get_element_atk(stat, element): if stat is None: return None f1_att = stat[0].split('of')[1].strip() f1_land = stat[0].split('of')[0].strip() f2_att = stat[1].split('of')[1].strip() f2_land = stat[1].split('of')[0].strip() if e...
{"/ufcStats/spiders/spider.py": ["/ufcStats/items.py", "/ufcStats/utils.py"], "/ufcStats/pipelines.py": ["/ufcStats/utils.py"]}
17,992
fanghuiz/ufc-stats-crawler
refs/heads/master
/ufcStats/spiders/spider.py
import scrapy from scrapy.loader import ItemLoader from ufcStats.items import * from ufcStats.utils import * class FightsSpider(scrapy.Spider): name = 'ufcFights' start_urls = ['http://ufcstats.com/statistics/events/completed?page=all'] custom_settings = { 'ITEM_PIPELINES': { 'ufcStat...
{"/ufcStats/spiders/spider.py": ["/ufcStats/items.py", "/ufcStats/utils.py"], "/ufcStats/pipelines.py": ["/ufcStats/utils.py"]}
17,993
fanghuiz/ufc-stats-crawler
refs/heads/master
/ufcStats/pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.exporters import JsonLinesItemExporter, CsvItemExporter import pathlib from ufcStats.utils import print_time fi...
{"/ufcStats/spiders/spider.py": ["/ufcStats/items.py", "/ufcStats/utils.py"], "/ufcStats/pipelines.py": ["/ufcStats/utils.py"]}
17,994
fanghuiz/ufc-stats-crawler
refs/heads/master
/ufcStats/items.py
# -*coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.loader.processors import Identity, TakeFirst, Compose, MapCompose, Join STR_toInt = Compose(TakeFirst(), int) STR_toFloat = Compose(TakeFirst...
{"/ufcStats/spiders/spider.py": ["/ufcStats/items.py", "/ufcStats/utils.py"], "/ufcStats/pipelines.py": ["/ufcStats/utils.py"]}
18,022
useakat/cfqcd
refs/heads/master
/particles.py
# This file was automatically created by FeynRules $Revision: 302 $ # Mathematica version: 7.0 for Mac OS X x86 (64-bit) (November 11, 2008) # Date: Tue 31 Aug 2010 16:54:46 from __future__ import division from object_library import all_particles, Particle ve = Particle(pdg_code = 12, name = 've', ...
{"/vertices.py": ["/particles.py"]}
18,023
useakat/cfqcd
refs/heads/master
/vertices.py
# This file was automatically created by FeynRules $Revision: 302 $ # Mathematica version: 7.0 for Mac OS X x86 (64-bit) (November 11, 2008) # Date: Tue 31 Aug 2010 16:54:46 from object_library import all_vertices, Vertex import particles as P import couplings as C import lorentz as L V_1 = Vertex(name = 'V_1', ...
{"/vertices.py": ["/particles.py"]}
18,024
umluizlima/ac318-turma1-grupo1
refs/heads/master
/app/controller/main.py
from flask import ( Blueprint, redirect, url_for, session, render_template, request, flash ) from app.model import User bp = Blueprint('main', __name__, url_prefix='') @bp.route('/', methods=["GET", "POST"]) def index(): if request.method == "POST": data = request.form.to_dict() if 'username...
{"/app/controller/main.py": ["/app/model.py"], "/app/controller/auth.py": ["/app/model.py"], "/app/controller/user.py": ["/app/model.py", "/app/controller/auth.py"]}
18,025
umluizlima/ac318-turma1-grupo1
refs/heads/master
/app/controller/auth.py
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from app.model import db, User, Telephone, Email bp = Blueprint('auth', __name__, url_prefix='') @bp.route('/signup', method...
{"/app/controller/main.py": ["/app/model.py"], "/app/controller/auth.py": ["/app/model.py"], "/app/controller/user.py": ["/app/model.py", "/app/controller/auth.py"]}
18,026
umluizlima/ac318-turma1-grupo1
refs/heads/master
/app/model.py
import os import vobject from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate db = SQLAlchemy() migrate = Migrate() class User(db.Model): """ CREATE: db.session.add(item) -> db.session.commit() READ: Item.query.all() or Item.query.filter_by(key=value).first() UPDATE: item = Item...
{"/app/controller/main.py": ["/app/model.py"], "/app/controller/auth.py": ["/app/model.py"], "/app/controller/user.py": ["/app/model.py", "/app/controller/auth.py"]}
18,027
umluizlima/ac318-turma1-grupo1
refs/heads/master
/app/controller/user.py
from flask import ( Blueprint, render_template, abort, send_from_directory, request, session, jsonify, current_app, redirect, url_for, flash ) from app.model import db, User, Email, Telephone from .auth import login_required bp = Blueprint('user', __name__, url_prefix='') @bp.route("/<username>") def profil...
{"/app/controller/main.py": ["/app/model.py"], "/app/controller/auth.py": ["/app/model.py"], "/app/controller/user.py": ["/app/model.py", "/app/controller/auth.py"]}
18,028
umluizlima/ac318-turma1-grupo1
refs/heads/master
/app/controller/pwa.py
from flask import ( Blueprint, send_from_directory ) bp = Blueprint('pwa', __name__, url_prefix='') @bp.route('/manifest.json') def manifest(): return send_from_directory('static', 'manifest.json') @bp.route('/sw.js') def service_worker(): return send_from_directory('static', 'sw.js')
{"/app/controller/main.py": ["/app/model.py"], "/app/controller/auth.py": ["/app/model.py"], "/app/controller/user.py": ["/app/model.py", "/app/controller/auth.py"]}
18,031
omipareja/Gestor_Empleados
refs/heads/master
/empleados/aplicaciones/departamento/migrations/0003_auto_20210219_1414.py
# Generated by Django 3.1.6 on 2021-02-19 14:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('departamento', '0002_auto_20210218_0125'), ] operations = [ migrations.AlterModelOptions( name='departamento', options={'ord...
{"/empleados/aplicaciones/departamento/views.py": ["/empleados/aplicaciones/departamento/models.py"], "/empleados/aplicaciones/persona/admin.py": ["/empleados/aplicaciones/persona/models.py"], "/empleados/aplicaciones/departamento/urls.py": ["/empleados/aplicaciones/departamento/views.py"], "/empleados/aplicaciones/per...
18,032
omipareja/Gestor_Empleados
refs/heads/master
/empleados/aplicaciones/departamento/views.py
from django.shortcuts import render from django.urls import reverse_lazy from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from django.views.generic.edit import FormView from django.views.generic import ListView, DetailView, CreateView, TemplateView, UpdateView, D...
{"/empleados/aplicaciones/departamento/views.py": ["/empleados/aplicaciones/departamento/models.py"], "/empleados/aplicaciones/persona/admin.py": ["/empleados/aplicaciones/persona/models.py"], "/empleados/aplicaciones/departamento/urls.py": ["/empleados/aplicaciones/departamento/views.py"], "/empleados/aplicaciones/per...