blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f731cfa199247a4181837c7dc0f6d3f01fe24c4e | 67be7acadeac8d44affc1810e68e3d83750e2d9b | /minning-util-codes/src/divide-in-intervals.py | b184aaeff840a650bd988b8dc3f628fe2dcdb3bf | [] | no_license | jordaos/text-minning | d8b869e8738513a33df942681d00abb481a7966a | c44a73f548f977ee02ab5ed3c56c7e6a86234025 | refs/heads/master | 2021-04-12T05:19:27.705194 | 2018-03-24T15:42:07 | 2018-03-24T15:42:07 | 125,797,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import sqlite3
import sys
import os
from columns import Columns
from subprocess import call, check_output
from cd import cd
PROJECT = ''
if len(sys.argv) > 1:
PROJECT = sys.argv[1]
else:
print 'Give parameter (project name)'
sys.exit()
PATH = 'DBs/' + PROJECT
DB = PATH + "/" + PROJECT + '.sqlite'
def have_twoh... | [
"jordao05@hotmail.com"
] | jordao05@hotmail.com |
50c29638c8cd749a331b847e30f6ddf9e828d468 | 7ee15347ff755880ee3fec124b7a91faf112644c | /firstpage.py | 3331ce8b58ee39f798f36ea1b28aeb6304386959 | [] | no_license | DurgaSaiSudheerGubbala/FACE-RECOGNITION-ATTENDENCE-SYSTEM | ab6a7a8380f2390399c392e2ddab6c2881450e66 | 0783027d2062edc2a01ea91aec73f313d4e39d38 | refs/heads/main | 2023-02-06T05:44:15.164210 | 2020-12-23T02:38:08 | 2020-12-23T02:38:08 | 323,781,965 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | #import module from tkinter for UI
from tkinter import *
from playsound import playsound
import os
from datetime import datetime;
#creating instance of TK
root=Tk()
root.configure(background="white")
#root.geometry("300x300")
def function1():
os.system("py dataset_capture.py")
def funct... | [
"noreply@github.com"
] | noreply@github.com |
6fcd77974cc305566c9496941a87ef64cb688e50 | 66fda6586a902f8043b1f5e9532699babc7b591a | /lib_openshift/models/v1_deployment_trigger_image_change_params.py | cdb5495ce392554744c8473da2b748a72362bdae | [
"Apache-2.0"
] | permissive | chouseknecht/lib_openshift | 86eff74b4659f05dfbab1f07d2d7f42b21e2252d | 02b0e4348631e088e72a982a55c214b30a4ab9d9 | refs/heads/master | 2020-12-11T05:23:17.081794 | 2016-07-28T20:15:39 | 2016-07-28T20:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,799 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
2efe378579a32f494f6942fa0ac13a700a233957 | cffee94b843fff699f68eaae972ed829858fbb0d | /typings/mediafile/mutagen/mp3/__init__.pyi | da26b2285df4dd3b5373082919fadc979a486824 | [
"MIT"
] | permissive | Josef-Friedrich/phrydy | 3b5fae00d3d7210821dc9037d00f9432e1df3c2d | c6e17e8b9e24678ec7672bff031d0370bfa8b6f8 | refs/heads/main | 2023-08-25T12:11:47.333984 | 2023-08-08T14:50:08 | 2023-08-08T14:50:08 | 66,490,323 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | pyi | """
This type stub file was generated by pyright.
"""
from __future__ import division
from functools import partial
from io import BytesIO
from mutagen._util import BitReader, cdata, iterbytes
"""
http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header
http://wiki.hydrogenaud.io/index.php?title=MP3
"""
cl... | [
"josef@friedrich.rocks"
] | josef@friedrich.rocks |
937206a203bb423de0c7d72e23c6038ff821b56e | 33491a09da629999c84f11ed10543cb6de425221 | /final.py | bdfccf9101ffdfa2176e9668abeb5dba728fef2d | [] | no_license | lebomashatola/CS50W | e4559ec1894fadaaa8a2fe88c3ec693e7437f2c2 | 7abbcb3243c5e3227879c993b993cda271c724db | refs/heads/master | 2020-04-14T16:37:31.262458 | 2019-02-12T10:19:55 | 2019-02-12T10:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | import pandas as pd
import numpy as np
#Creates new sig dataset with gene name added
class read_csv:
def __init__(self, sig, names):
self.sig = sig
self.gene_names = names
def out_csv(self):
print(self.sig.columns)
self.sig = self.sig.drop([' Gene Name'], axis=1)
sig_ge... | [
"lm@Lebos-MacBook-Air.local"
] | lm@Lebos-MacBook-Air.local |
be29ecfaa46d89bbd1ee4b1db0e5d9408aabbcd4 | e9fead57eac4217ab9be524acdaedbb5d850fd57 | /main.py | 992c758c3ab6078ad5623aa6b2f413081355d222 | [] | no_license | DAMIOSKIDEV/GiveawayNitroJoiner | e9d2587e2867d4bedd0df44f2e7bea0b83067dac | 6d706126808a5cc72c6fe24da9025f1f439a32c1 | refs/heads/master | 2022-12-07T05:19:07.201818 | 2020-03-26T04:47:45 | 2020-03-26T04:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import requests, re, time, random
from colorama import init, Fore
init(convert=True)
def start():
urls = ["https://discordservers.me/servers/search?term=Nitro&page=", "https://discordservers.me/servers/search?term=Giveaway&page="]
numb = 1
session = requests.Session()
print(f"[{Fore.CYAN}>{Fore.RESET}... | [
"noreply@github.com"
] | noreply@github.com |
f9242da26ab0e85261149acc3935789753a44160 | 0cafca9e27e70aa47b3774a13a537f45410f13f7 | /idb/ipc/push.py | c7f6d1ab8f6e77317e6d081e0655d31ebf0c16a5 | [
"MIT"
] | permissive | fakeNetflix/facebook-repo-idb | 18b67ca6cfa0edd3fa7b9c4940fec6c3f0ccfa73 | eb4ed5a7dc4a14b224a22e833294d7366fe4725e | refs/heads/master | 2023-01-05T13:19:40.755318 | 2019-08-16T15:23:45 | 2019-08-16T15:25:00 | 203,098,477 | 1 | 0 | MIT | 2023-01-04T07:33:09 | 2019-08-19T04:31:16 | Objective-C | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from idb.common.stream import stream_map
from idb.common.tar import generate_tar
from idb.grpc.idb_pb2 import Payload, PushRequest, PushResponse
from idb.grpc.stream import Stream, drain_to_stream
from idb.grpc.types import ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
181269644d8602fc2dcb673b30857f2da8b2b11f | 6deafbf6257a5c30f084c3678712235c2c31a686 | /Toolz/sqlmap/tamper/least.py | 53a8a6aadefe283a268fd3ad7a0c5fd1f51f2a67 | [
"Unlicense",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-other-permissive"
] | permissive | thezakman/CTF-Heaven | 53fcb4a72afa821ad05d8cc3b309fb388f958163 | 4b52a2178922f1502ab00fa8fc156d35e1dc653f | refs/heads/master | 2023-04-05T18:20:54.680378 | 2023-03-21T13:47:45 | 2023-03-21T13:47:45 | 167,290,879 | 182 | 24 | Unlicense | 2022-11-29T21:41:30 | 2019-01-24T02:44:24 | Python | UTF-8 | Python | false | false | 1,126 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import re
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.HIGHEST
def dependencies():
pass
def tamper(payload, **kwargs):
"""
Replaces greater than ope... | [
"thezakman@ctf-br.org"
] | thezakman@ctf-br.org |
31d7c339cd134320969c186fadcd97cfb4c7b15e | 0a830ace2253924ca216f1bcca5a61327a710d78 | /MainWebApp/urls.py | 7b329d32f937967400a6f7cb69c1386abcedafd5 | [] | no_license | AyushSolanki-17/HealthGaurd-Server | 39f0161e54f3a70d2014aafc723a6a52217277d3 | 64661afecbd226c0962ff7181c6038690b2fb0b6 | refs/heads/main | 2023-05-04T10:14:17.024867 | 2021-05-25T13:59:26 | 2021-05-25T13:59:26 | 370,714,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.urls import path
from . import views
app_name = 'MainWebApp'
urlpatterns = [
path('', views.HomeView.as_view(), name='home')
]
| [
"ayush17solanki@gmail.com"
] | ayush17solanki@gmail.com |
a1c79de8e2240910b9f6374bba5cfb966fee8daf | f2e97531cb0e01a8cfc636eda7d3e56873c33af7 | /python/Alura/data science/numpy/atr_metodos.py | e64426b2ad71b0cfe57ee5cf36136f770de6562c | [
"MIT"
] | permissive | alifoliveira/rep-estudos | c0c13153ff0728090ffa2102d159dbff2e750444 | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | refs/heads/master | 2023-01-05T11:57:29.335267 | 2020-11-04T01:54:08 | 2020-11-04T01:54:08 | 278,215,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import numpy as np
dados = np.array([[44410., 5712., 37123., 0., 25757.],
[2003, 1991, 1990, 2019, 1006]])
cont = np.arange(10)
print(dados.shape) # retorna quantidade de linhas e colunas
print(dados.ndim) # retorna a quantidade de dimnensões do array
print(dados.size) # retorna o... | [
"53924906+alifoliveira@users.noreply.github.com"
] | 53924906+alifoliveira@users.noreply.github.com |
224712607926f64e14c27334b837bc69b83fd5f4 | 54e6f5ef63d9d48af97321c2cc1fe83e4315de65 | /rkcodingmusic.py | 6639fc9c28e166a6c44c51aadeec4fe8b54e02f8 | [] | no_license | Harsishest/Videos | 70de7947a1b259bbafef7019645eedbe01014093 | 7556839ecf9c1781a7bae899affdcf4461337e26 | refs/heads/master | 2023-04-24T19:12:47.332613 | 2021-04-29T13:56:36 | 2021-04-29T13:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | import discord
from discord.ext import commands, tasks
from discord.voice_client import VoiceClient
import youtube_dl
from random import choice
youtube_dl.utils.bug_reports_message = lambda: ''
ytdl_format_options = {
'format': 'bestaudio/best',
'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',... | [
"noreply@github.com"
] | noreply@github.com |
f41c2cc05cab603afafc3e2f134cee4a96198d8c | eae037ea71a2dfb9830c2a8fd3b28fdf4e9048a3 | /code/chapter-1/create.py | b6e73c092e94ca0654c8d83d753bcbd4ab18fe98 | [
"MIT"
] | permissive | StevenYuysy/fullstack-in-python | 040c17ed93b8807fa5c4f0c5ebc34ef79678e0e9 | 688badd91d212298a49ec0d08c9cc456ccb16984 | refs/heads/master | 2021-01-20T20:36:54.835161 | 2016-07-31T15:07:12 | 2016-07-31T15:07:12 | 62,937,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
engine = create_engine('sqlite:///restaurantmenu.db')
Base.metadata.bind = engine
DBSession = sessionmaker(bind = engine)
session = DBSession()
myFirstRestaurant = Restaurant(name='Pizza... | [
"stevenyuysy@gmail.com"
] | stevenyuysy@gmail.com |
43d3b82f26767f992d2dca75556788abb438e7d5 | 7055607e2407e4adbad1bf888324e9b406f11092 | /FolderingFolderServer/migrations/0010_auto_20190524_1424.py | 899d0185f5108e273b3df2035b8a0154f6f199d7 | [] | no_license | wldnjszz1/foldering-backend | 3c3f6b933cb9fa6c41f467e4cf162377d40f846a | 2dd215c597cf4f55d36677cebeb035212e988c2b | refs/heads/master | 2020-05-05T06:56:54.850948 | 2019-05-25T03:36:24 | 2019-05-25T03:36:24 | 179,807,347 | 1 | 0 | null | 2019-04-06T08:24:45 | 2019-04-06T08:24:45 | null | UTF-8 | Python | false | false | 1,017 | py | # Generated by Django 2.2 on 2019-05-24 05:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('FolderingFolderServer', '0009_folder_author'),
]
operations = [
migrations.CreateModel(
name='Use... | [
"wldnjszz1@naver.com"
] | wldnjszz1@naver.com |
14ecb79893f2a150fcc1e6200c9e85886e0f7225 | e282226e8fda085f4c64c044327eceb3388e94ce | /mainapp/api/urls.py | 1b3871642a15056f10650c9fb8bffcec8a5d906f | [] | no_license | Pavlenkovv/REST-API | 2bf36f40104a51f2735ce3dd3eebcf274061a1a2 | 352d0bd24e88fdb793e658c5b6eaffa97b56062c | refs/heads/main | 2023-03-15T22:45:50.121953 | 2021-03-07T07:56:31 | 2021-03-07T07:56:31 | 344,887,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import AuthorViewSet, NewsPostViewSet, CommentViewSet
router = DefaultRouter()
router.register(r"newsposts", NewsPostViewSet, basename="user")
router.register(r"author", AuthorViewSet)
router.register(r"comment", C... | [
"pavlenko.vyacheslav@gmail.com"
] | pavlenko.vyacheslav@gmail.com |
a577db8343aacf6c938785370776165124e21ff3 | fc536757e799e4e63a618f54be00c814bf0f6c8d | /clip-search/pipeline/src/source.py | b4e8c1e81743e00d23dba502f2389927e8c9fcb0 | [
"MIT"
] | permissive | wellcomecollection/data-science | 94384593827bbeca3e6a6fb6cdd92a1f256ad256 | f5d158de6d4d652e7264093c64420288ecb6a85b | refs/heads/main | 2023-08-28T11:46:36.724074 | 2023-08-21T15:12:59 | 2023-08-21T15:12:59 | 217,507,441 | 7 | 1 | MIT | 2023-09-14T08:57:58 | 2019-10-25T10:11:57 | Jupyter Notebook | UTF-8 | Python | false | false | 1,132 | py | from .elasticsearch import get_catalogue_elastic_client
def yield_source_images(pipeline_date):
es = get_catalogue_elastic_client(pipeline_date)
index_name = f"images-indexed-{pipeline_date}"
pit = es.open_point_in_time(index=index_name, keep_alive="12h")
search_after = None
while True:
r... | [
"h.pim@wellcome.org"
] | h.pim@wellcome.org |
9d85ca9a49ac29137fab87fa3e5409a1f53439cf | a4cd26dc44067e0818e8e5e8bcab1598dac4cbc3 | /Thread_timer.py | 8d18fbe00d1dadb8b62183406c36ab59c8efff8d | [] | no_license | pacoSAM/CAM-GUI | c7f19d9094df94677021cd5440f68c94bfb32a32 | aba2baacc11446b5869f035148f27fd10937020f | refs/heads/master | 2021-01-20T20:48:08.361399 | 2016-08-23T11:32:59 | 2016-08-23T11:32:59 | 65,860,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | #! /usr/bin/python
#-*- coding: utf-8 -*-
#==========================================================
#Titre: timer
#
#
#Par: Paco SAMBA
#===========================================================
import threading ,time, datetime
verrou=threading.Lock()
class TimerDevice(threading.Thread):
def __init__(self,fun... | [
"sambapaco@yahoo.fr"
] | sambapaco@yahoo.fr |
dd8efbcb0f30507324168b341eb1ef5685be3c38 | 19333274c884ecbdd1c2d11884de3cd9527b30b8 | /zl_spider/hainan/danzhou.py | c4e530d1a6268eec25ff5f431927f34bb7558b41 | [] | no_license | Gzigithub/- | 876efcb9400c2c3675a75c4530d9dfee9953ba5f | ec789bb31c85b1439901818c25dfbe0905963a79 | refs/heads/master | 2022-11-24T06:42:14.892696 | 2018-12-21T11:48:07 | 2018-12-21T11:48:07 | 126,142,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,499 | py | import time
import pandas as pd
import re
from lxml import etree
from selenium import webdriver
from bs4 import BeautifulSoup
from lmf.dbv2 import db_write
from selenium.webdriver import ActionChains, DesiredCapabilities
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from ... | [
"123456.com"
] | 123456.com |
afd910c1dc1ff1f57ec13ad810946ddbdff546d7 | dc05171d98f1dc9f1193dbd7cfb145c17f54004e | /credittransfer/home/migrations/0004_auto_20200909_1755.py | 07fd301ca30d43bc2d2cd45bf0ba77029fef02ef | [] | no_license | adityanandan/credit_management-TSF | 363730746ecae6dd5e119a432ccacb1670631204 | dbb2a59ce6e8d21885c401fff88473b09233865d | refs/heads/master | 2022-12-19T13:31:41.366496 | 2020-09-17T15:14:01 | 2020-09-17T15:14:01 | 295,351,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 3.0.8 on 2020-09-09 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20200909_1653'),
]
operations = [
migrations.AddField(
model_name='user',
name='previous_credit',
... | [
"agrahari.aditya16@gmail.com"
] | agrahari.aditya16@gmail.com |
6737cae69cbfad8f35c500dd8658e24cb6486688 | 097e6f529e9481de69415e89c1e5d653be0413a7 | /Field_Class.py | 0b3373c85244232f87111992a5a39a4d7773c797 | [] | no_license | Prudhvi-19/Farm-Management-System | 3057ec98b91f0ee479d14a72171a2521ceaa0efa | c8fb4a41a3a087e611457647fde5ba47bcb4df43 | refs/heads/master | 2020-04-22T12:23:08.483581 | 2019-02-12T18:36:10 | 2019-02-12T18:36:10 | 170,369,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,126 | py | from Cow_Class import *
from Sheep_Class import *
from Potato_Class import *
from Wheat_Class import *
import random
class Field:
"""A Class to stimulate Field which Contain Plants and Animals ."""
#constructor
def __init__(self, max_animals, max_crops):
self._crops = []
self._animals = []
... | [
"noreply@github.com"
] | noreply@github.com |
daaaf0b5b3f4c3a36f1009e3b2b8a1cb64e00908 | af72519425d8a57afa86776a5a415aadaba8a1a0 | /clairvoyance/entity_types.py | 2c8670b4f66f4de2d82403d4541b1b30a897ae19 | [] | no_license | paulbricman/python-clairvoyance | 95d3daf47648973c9dea818137204affa9fdcd52 | 5c06dcd98107c1d37baf8157f029c0bbd35efe81 | refs/heads/master | 2021-09-13T10:45:49.126306 | 2018-04-28T15:40:58 | 2018-04-28T15:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | def string_type():
return ['string', '']
def lang_type():
return ['string', 'lang']
def name_type():
return ['string', 'name']
def domain_type():
return ['string', 'domain']
def ip_type():
return ['string', 'ip']
def country_type():
return ['string', 'country']
def integer_type():
retu... | [
"paubric@gmail.com"
] | paubric@gmail.com |
1b41395082d1617e92cb4539c977d7f616a594fc | ecd630f54fefa0a8a4937ac5c6724f9a3bb215c3 | /projeto/avalista/migrations/0022_auto_20200910_1230.py | 8922215b9bc4a928404f7c8043839ce3aebed4a8 | [] | no_license | israelwerther/Esctop_Israel_Estoque | 49968751464a38c473298ed876da7641efedf8de | d6ab3e502f2a97a0d3036351e59c2faa267c0efd | refs/heads/master | 2023-01-07T20:21:38.381593 | 2020-11-12T17:35:14 | 2020-11-12T17:35:14 | 258,642,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # Generated by Django 3.0.7 on 2020-09-10 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('avalista', '0021_avalista_fiador_n_operacao'),
]
operations = [
migrations.AlterField(
model_name='avalista',
name='... | [
"israelwerther48@outlook.com"
] | israelwerther48@outlook.com |
0e228e608ad73772836b6b7c8696378c9b1eb319 | b444914008df603953c8c53d0eb833cf6e7f8dce | /deal_with_news/deal_with_news.py | bde6b832a0595aa5e9425d3c9844beb50ec6d708 | [] | no_license | changgedangxiao/craller_news | cceab2bf698c0f4658b49319b44288d574505e09 | dd1801b93eb7c38b0818921b94c3528761a60845 | refs/heads/master | 2022-12-17T07:27:06.154422 | 2019-01-29T11:14:23 | 2019-01-29T11:14:23 | 168,132,484 | 0 | 0 | null | 2022-12-08T01:34:19 | 2019-01-29T10:02:05 | HTML | UTF-8 | Python | false | false | 825 | py | #coding=utf-8
from bs4 import BeautifulSoup
import re
from craller_news.mysql_jh import DBConn
def deal_html(html_path="../fetch_html/1.html"):
soup=BeautifulSoup(open(html_path))
news_title=soup.title.string
news_author=soup.find(name="p",attrs={"class":"author-name"}).string
news_source=soup.find()
... | [
"hongli@starmerx.com"
] | hongli@starmerx.com |
13ca1c0d5bb3a665f885467aeb92cf786bba64b1 | c7e2e34b900029872b6760a38e905e9ebbdc31b6 | /lib/datasets/celeba.py | 4ed48778297b93519fdbad609949c052982a1e11 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | JiajianZeng/caffe-face-attributes | 333e56c3f43b64b600065aa6e5deb8e1a5c56ccb | c5c16d1eadea85fa40156de414fdbe595293aac2 | refs/heads/master | 2021-01-17T21:09:10.636678 | 2018-03-28T16:54:11 | 2018-03-28T16:54:11 | 84,162,833 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,243 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os
from datasets.imdb import imdb
import datasets.ds_utils as ds... | [
"503917315@qq.com"
] | 503917315@qq.com |
e4adfe56054c17345380d384b2475d55646b4b60 | 4921dd11c4cfe45d1d7cfab954c5cfcb4b124972 | /challenges/pattern.py | 67ca75485c13169df216cae7cc43e18eb537600a | [] | no_license | anay-jain/Machine-learning-in-python | 4708c78e876f143777878a3c87d4e26ade09bdf7 | 8b74c360e56130eb3d3a62532451d493f2455eaa | refs/heads/master | 2020-07-10T09:54:36.668861 | 2019-08-30T15:35:43 | 2019-08-30T15:35:43 | 204,235,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | try:
n=int(input())
except:
pass
for x in range(1,n+1):
print(x,end=" ")
print(end="\n")
for i in range(n-1):
for t in range (1,n-i):
print(t, end=" ")
print('* '*(i*2+1) , end=" ")
print(end="\n")
| [
"anayjain98@gmail.com"
] | anayjain98@gmail.com |
693985483ab6c80f3eb110cd22ba40936fa58935 | 7b3bfe08614802ef6b7046601a7c60aba5ed3aac | /Model/train_SAN.py | d02642f63b41e24ca47dbdce06f43c4cdab51a27 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | mapleinmount/SAT_for_image_classification_of_heavy_mineral_grains | 52c2335650397a9ec227398ba48e859cf6f4c4c2 | 081c6ab84cb9719fe71c59ba2c4c58eb3d030072 | refs/heads/main | 2023-07-13T19:28:49.077545 | 2021-08-06T07:31:34 | 2021-08-06T07:31:34 | 393,232,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,385 | py | import os
import random
import time
import cv2
import numpy as np
import logging
import argparse
import shutil
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.parallel
import torch.optim
import torch.utils.data
import torchvision
import torchvision.transforms as transforms
impor... | [
"cbjg395@gmail.com"
] | cbjg395@gmail.com |
35e280fd151a401ebfceaf55c144d82f9cf6005d | 9981ca5a21e4187a74e57320bc138b1c46dabe45 | /parroquialista/migrations/0001_initial.py | 056ef2ec6d824c30f2a50bf22275a3e647b982cd | [] | no_license | ceag235/ParroquiaWeb | f3c44760d090ed085b02a580b8cee5219f385b1b | 72d050ffe0ac729de6e9f95f2310c0a85a2da577 | refs/heads/master | 2021-09-02T10:21:31.062116 | 2018-01-01T21:04:45 | 2018-01-01T21:04:45 | 115,822,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-12-01 20:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Parroquia... | [
"cesar.acosta@gmail.com"
] | cesar.acosta@gmail.com |
7032f31c624cbe3832c6516d669ce2246a315b3b | cfc36873e9e166212d15add1b7c79610f956968c | /multiplelinearregression1.py | 5bf2b0423c9fcf3b4bbe6857e6d788d24a77d8f4 | [] | no_license | BaluAnush18/Machine-Learning-Basics | 8727f4ea7dfdae8064793a526de9c48aeda1596a | 1ec7e9f6d32b00b978d452f3a0866c5bbd490976 | refs/heads/main | 2023-05-13T23:07:48.642036 | 2021-05-25T08:44:52 | 2021-05-25T08:44:52 | 370,621,290 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | #SAME AS LINEAR REGRESSION BUT HAS MANY COMBINATIONS OF b & x.
#LINEAR REGRESSION -> y = b0 + b1*x1
#MULTIPLE REGRESSION -> y = b0 + b1*x1 + b2*x2 + b3*x3 + bn*xn
#ASSUMPTIONS OF LINEAR REGRESSION:
#Linearity, Homoscedasticity, Multivariate Normality, Independence of Errors, Lack of Multicollinearity.
#DUMMY V... | [
"noreply@github.com"
] | noreply@github.com |
f839f9696b4fbf844d94d553f489d414e67a92e9 | 098ae2441ad0bbdb79212ee7462c8b522fcdaa07 | /config.py | c1db2b09a49c43b942e56bacd9ff1ef98133a65c | [] | no_license | liuwar/fg_show_web | 9e8db73f1b6c5b0fff98b9b8f76f8b3bbaa0cb0b | 772b54fe6fd4256af97177ea83aab2716db42b70 | refs/heads/main | 2023-04-29T07:24:09.589821 | 2021-05-19T02:18:22 | 2021-05-19T02:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py | from os import path
class Config:
SECRET_KEY = ''
#DATABASE
SQLALCHEMY_DATABASE_URI = ''
SQLALCHEMY_TRACK_MODIFICATIONS = False
#UP_LOAD
MAX_CONTENT_LENGTH = 10 * 1024 * 1024
UPLOADED_IMAGEFILES_DEST = path.join(path.dirname(path.abspath(__file__))),"/app/static/image"
DEBUG = True... | [
"572179341@qq.com"
] | 572179341@qq.com |
bea94d93e49502d92c4c31df5a75a23b238d7292 | b67d739367a6789c01be22f169498fbda1dcbbc3 | /models/rpn.py | 590d039d7835d14df06cd4bd5197e9c0bb864093 | [] | no_license | luoyi9340/faster_rcnn | e5ac6e68283bfb7a5b3c7d25160490269f030e03 | 8d0c6960f54404cb0a19872a44a94a57d9961108 | refs/heads/master | 2023-03-03T00:37:30.566775 | 2021-02-16T03:18:47 | 2021-02-16T03:18:47 | 327,672,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,674 | py | # -*- coding: utf-8 -*-
'''
RPN模型
@author: luoyi
Created on 2021年1月5日
'''
import tensorflow as tf
import models
import utils.conf as conf
from models.layers.rpn.models import RPNNet
from models.layers.rpn.losses import RPNLoss
from models.layers.rpn.metrics import RPNMetricCls, RPNMetricReg
from models.layers.rpn.p... | [
"irenebritney@192.168.31.84"
] | irenebritney@192.168.31.84 |
3f7f0533a77371bd9afca6f9b3db560d4bd1bbc5 | ff6a258429d73f3536528decaf595ab749b17084 | /tools/ray.py | e9a5b54fc8416a899c144e0b623e812095452459 | [] | no_license | xavihart/CG-RayTracer | 1a3051317f868332e6213eed560d41f1c6619c4c | 29218a32ae0436d23a238bfe70f00727f91a7799 | refs/heads/master | 2022-12-10T03:12:23.256644 | 2020-09-15T15:40:00 | 2020-09-15T15:40:00 | 273,280,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from .vec3 import *
class ray:
def __init__(self, a_=vec3(0, 0, 0), b_=vec3(0, 0, 0), t_=0):
# note : a_ and b_ must be vec3
self.a = a_
self.b = b_
self.t = t_
def origin(self):
return self.a
def direction(self):
return self.b
def point_at_para... | [
"xavihart@sjtu.edu.cn"
] | xavihart@sjtu.edu.cn |
a8691c22467753872cc6ea65d244c12c491dc815 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_nationality.py | 4e1dcbd9aa26fd3af3fbdc1264cb9f070b10fdb7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
#calss header
class _NATIONALITY():
def __init__(self,):
self.name = "NATIONALITY"
self.definitions = [u'the official right to belong to a particular country: ', u'a group of people of the same race, religion, traditions, etc.: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2fe768dff1923ab14087efa6799cddc20e67ef62 | 0f662b816ef6c54e557a4ef19c16a7ed15e96ad1 | /attention/helpers.py | 7d6db7d3183b810b444a56d9dfed92e1ac7f7406 | [] | no_license | xiaowodaweiwang/practical-ml | c23781dcf3420adc1ffe07b14e8deb05e5d94150 | 1297ccb7f1220f2e7205575dd50ce372c6e018d8 | refs/heads/master | 2022-12-26T06:27:40.705938 | 2020-05-21T01:02:32 | 2020-05-21T01:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import cv2
import tensorflow as tf
from tensorflow import keras
import numpy as np
K = keras.backend
Model = keras.models.Model
def overlay_attn(model, x, img_path, filepath='./attention/attn.jpg'):
# https://github.com/Vadikus/practicalDL/blob/master/01%20-%2005%20-%20Attention%20of%20ConvNet%20(VGG16).ipynb
... | [
"larryschirmer@gmail.com"
] | larryschirmer@gmail.com |
6178613ae1de09e96e249662e9fbc8df8c9503f8 | 7353050d53f6b3fbb0561a719908bef630143ff6 | /telBot_env/bin/easy_install | 4d7fb214fedc93b87d6fbec4f89e17c42a344ac0 | [] | no_license | GoldenRed/telBot | 5754b6314c2774d8575d07ffec1d3dbb8d3c1699 | a2b0b884bb8a849ddcfb8c62a79aa464ffc881af | refs/heads/master | 2022-12-13T18:14:46.461823 | 2021-04-05T06:54:11 | 2021-04-05T06:54:11 | 211,549,491 | 0 | 0 | null | 2022-12-08T06:39:58 | 2019-09-28T19:09:57 | Python | UTF-8 | Python | false | false | 271 | #!/mnt/c/Users/dbz00/Sync/telBot/telBot_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yared94@gmail.com"
] | yared94@gmail.com | |
8da1f2b67b46206e3835fdfee41f7365ac844f46 | 577f03954ec69ed82eaea32c62c8eba9ba6a01c1 | /py/testdir_ec2_only/test_parse_covtype20x_s3.py | d6207e11b1f8763b5cd9fdd1466e72b472d7c03f | [
"Apache-2.0"
] | permissive | ledell/h2o | 21032d784a1a4bb3fe8b67c9299f49c25da8146e | 34e271760b70fe6f384e106d84f18c7f0adb8210 | refs/heads/master | 2020-02-26T13:53:01.395087 | 2014-12-29T04:14:29 | 2014-12-29T04:14:29 | 24,823,632 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | import unittest, sys, random, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
print "Will build clouds with increment... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
788ecb8dfd993ef9d68c1c979145bef4be44c7a1 | 516dea668ccdc13397fd140f9474939fa2d7ac10 | /enterprisebanking/middlewares.py | ad1d6a91a6ff2f6a7afebb8c4d5c122ae4ea0f71 | [] | no_license | daniel-kanchev/enterprisebanking | 08f1162647a0820aafa5a939e64c1cceb7844977 | bdb7bc4676419d7dcfe47ca8e817774ad031b585 | refs/heads/main | 2023-04-09T19:29:30.892047 | 2021-04-07T08:10:15 | 2021-04-07T08:10:15 | 355,463,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class enterprisebankingSpiderMidd... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
80dfa387b904d7af2b4712b81c72688f68323e6c | 88819d977f39410eb55b58d6e9752e13d2562232 | /catkin-ws/build/rrbot_control/catkin_generated/pkg.installspace.context.pc.py | 327335c2ca359a670965033714ac99a77413dee2 | [] | no_license | sutkarsh-s/controls | 7b55b5399344cbdc6c8c7a46273ea70bc9e49140 | 4d16b10f72ea356e12d7c3b5db64663107b0dc61 | refs/heads/master | 2022-11-18T01:48:29.287126 | 2020-06-12T15:20:18 | 2020-06-12T15:20:18 | 264,671,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rrbot_control"
PROJECT_SPACE_DIR = "/... | [
"aarushsingh3006@gmail.com"
] | aarushsingh3006@gmail.com |
b896bde0dd58631301979a4950418280891ea378 | 6d3e3fdeba418e5ba488d8bdb7069f360cf62792 | /KHoMi.py | 30600b6bd9626ec4ae5dd7dcacb33863beb675d5 | [] | no_license | Cipher312365/khomi | a758ca34c0fb45f4fa99d8b43686cc5cd0929748 | bb82b53507d12025adf454d01f6e258cf17e01a7 | refs/heads/master | 2022-12-08T16:24:37.515413 | 2020-09-13T13:50:54 | 2020-09-13T13:50:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,822 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
8fb5e452de9da869a55ccca9cd00839bdadeeeab | 3bfa43cd86d1fb3780f594c181debc65708af2b8 | /algorithms/sort/heap_sort.py | 0f1953ff4b5ac7e3fd902dd4f15744131c3cc8bf | [] | no_license | ninjaboynaru/my-python-demo | 2fdb6e75c88e07519d91ee8b0e650fed4a2f9a1d | d679a06a72e6dc18aed95c7e79e25de87e9c18c2 | refs/heads/master | 2022-11-06T14:05:14.848259 | 2020-06-21T20:10:05 | 2020-06-21T20:10:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py |
"""
<https://docs.python.org/3/library/heapq.html>
<https://www.youtube.com/watch?v=AEAmgbls8TM&feature=youtu.be>
Steps:
1. Put every item in the list into a heap
2. Each step get the smallest item from the heap, put the smallest into
a new list
3. Repeat until the heap is empty
```python
from heapq import heappu... | [
"wangxin19930411@163.com"
] | wangxin19930411@163.com |
b2c6540ba4582aa077ad54bbf8c43422c96bc68e | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/comp/trnsmtderrpktshist1d.py | 132265e9aed2a406e03e9466df4b0697c29e891b | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,008 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5a8b3968a4cc55cdc7a8bc045270be33a8d29f1b | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/AlphaPowerSystem-MIB.py | c83f2dc059508d3a6ad59c5621b516f5335d4221 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 87,886 | py | #
# PySNMP MIB module AlphaPowerSystem-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AlphaPowerSystem-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:33:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
b31321ac3e23c0e48f3a65038b6c320737c09e3f | e62fdc5a601741eb858aed6ffe056e6ac708e081 | /week1/rle.py | 0c6aa7a9b08e5f89d849387dd223edcd1ea89c45 | [] | no_license | MathuraMG/learning-machine | c589556d6400b51557f9f54e6884998b3093d24d | 71bb7d44900af131fa28cd5f051fd98040f325f3 | refs/heads/master | 2020-04-05T22:56:34.485343 | 2017-01-05T15:07:23 | 2017-01-05T15:07:23 | 68,153,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from __future__ import print_function
global_output = []
def encode(input):
prev_char = input[0]
curr_char = input[1]
curr_len = 1
output = [[prev_char,curr_len]];
for i in range(1,len(input)):
curr_char = input[i]
if prev_char == curr_char:
output[len(output)-1][1]+=1... | [
"mmg9291@gmail.com"
] | mmg9291@gmail.com |
96e39bd588f9626dd6b4e0636638a73b71de9323 | 4b4154d96ec6c91ac6c1cd1b87549ab76b8aee90 | /1-design-patterns/behavioral/strategy/strategy_1.py | c4f9eda359393ffbd6f67cfe042f8004567975ad | [] | no_license | ivanhumenyuk/design-paterns | da36c6258c6369064c2a956c4e97115b85e0af56 | c518958cb351d1f4030018a0720205d887d8e74e | refs/heads/master | 2023-02-19T00:31:12.109044 | 2021-01-18T11:18:04 | 2021-01-18T11:18:04 | 322,827,455 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from abc import ABC, abstractmethod
class SalesSystem(ABC):
@abstractmethod
def discount(self, amount: float):
pass
class BaseSalesSystem(SalesSystem):
def discount(self, amount: float):
return amount * 0.92
class GoldSalesSystem(SalesSystem):
def discount(self, amount: float):
... | [
"vanya19960529@gmail.com"
] | vanya19960529@gmail.com |
c8a7032f68913beb07d201079216842e34ee9eeb | 0abbaa3db2361d8dde8d701c9e6f67533aad287a | /Garbage/pi.py | 0ebb6aa5d1fb500e3dbacda6a21f85ae6a90b79f | [] | no_license | ducochapelle/CodeJam | bff72d6952e92453922b7f79970cfb89eb80b29c | fee3c643c87ea410b0b9bf6e81da2265b290efd8 | refs/heads/master | 2021-01-10T12:21:00.398240 | 2015-12-09T19:36:42 | 2015-12-09T19:36:42 | 47,709,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # print pi to the 5th decimal
# given pi = 4(1/1-1/3+1/5-1/7...)
pseudo_pi = 1
sum_fract = 0
bottom = 1.0
sign = 1
while round(pseudo_pi,5) is not 3.14159:
sum_fract += sign / bottom
bottom += 2
sign *= -1
pseudo_pi = 4 * sum_fract
print pseudo_pi, bottom
| [
"duco.chapelle@gmail.com"
] | duco.chapelle@gmail.com |
373f495680899101324afcd14270ec1573dec5d3 | 35e28f5c6d3df8c3478f883795a3643881ad71ba | /USG/items.py | dd5ff1735fa2fe2fb05edde1e4eb092069c1b05a | [] | no_license | ajayvjn/USG-WebScrapper | 628cc30e8b6dbac33b9ab36228c1bd72629e98e0 | 093b3e4a1ca8f04f4ce0ca5f574e1275fe2d8a05 | refs/heads/master | 2020-05-20T12:26:08.521352 | 2017-01-30T21:09:25 | 2017-01-30T21:09:25 | 80,463,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | 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 UsgItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field()
pass
| [
"ajay.vjn17@gmail.com"
] | ajay.vjn17@gmail.com |
613351e89d22dfa1cec4cfad9beb9fa751759990 | b1b685a1dc5245845b8f419023241c22ca4bf749 | /wikidocs/28-class.py | 4c6003c76d19e09df17fc35bcdfad0aa33db8f96 | [] | no_license | gimslab/python-exam | 040e7202d255e64167c0e0352893707d2d281a2b | 0144073690cd938324b88cf9b46054f5ce69840c | refs/heads/master | 2016-09-06T07:54:00.411019 | 2015-10-11T08:27:07 | 2015-10-11T08:27:07 | 42,339,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | class Calculator:
def __init__(self):
self.result = 0
def adder(self, num):
self.result += num
return self.result
cal1 = Calculator()
cal2 = Calculator()
print(cal1.adder(3))
print(cal1.adder(2))
print(cal2.adder(4))
print(cal2.adder(3))
print(cal1.result);
print(cal2.result);
| [
"gimslab.com@gmail.com"
] | gimslab.com@gmail.com |
f51f822cd04bc5b1f4cd7cd1c075196b0aaec60a | 4b848709353abd6c628c84f6da084adff133a5c6 | /Server Files/subprocesses/streaming.py | 73bab1d2c12917293abe5361ec53c45b499145db | [] | no_license | DasSpecMaker/Doorbell | b03d72e50dd483291a82408818355827c5f5bf50 | 08227dcc80c4fa61023bea45fdbc13a8bf7410fa | refs/heads/master | 2021-01-06T03:28:50.241654 | 2020-03-31T01:10:55 | 2020-03-31T01:10:55 | 241,210,991 | 0 | 0 | null | 2020-02-17T21:24:20 | 2020-02-17T21:24:19 | null | UTF-8 | Python | false | false | 1,895 | py | import socket
import time
import picamera
import struct
from PIL import Image
import io
import datetime
import sys
import signal
#from subprocess import STDOUT, PIPE
# Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means)
server_socket = socket.socket()
#port = sys.argv[1]
#print(port)
server_socket... | [
"ngo.victor20@gmail.com"
] | ngo.victor20@gmail.com |
265d01952ab7506e909f20767daaeac5d52864e4 | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/dataset_tools/create_oid_tf_record.py | 271fd0aac175d399dda9b528a9a311145f48cfc1 | [
"MIT",
"Apache-2.0"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 5,240 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
5d0a2f7e05ee7c3731f9b7550e0d5d9f8625cb88 | 78c08cd3ef66836b44373280a333c040ccb99605 | /ostap/fitting/tests/test_fitting_convolution.py | 3f980fbf093211f18849b15254d2f25697d8e7a7 | [
"BSD-3-Clause"
] | permissive | Pro100Tema/ostap | 11ccbc546068e65aacac5ddd646c7550086140a7 | 1765304fce43714e1f51dfe03be0daa5aa5d490f | refs/heads/master | 2023-02-24T08:46:07.532663 | 2020-01-27T13:46:30 | 2020-01-27T13:46:30 | 200,378,716 | 0 | 0 | BSD-3-Clause | 2019-08-03T13:28:08 | 2019-08-03T13:28:07 | null | UTF-8 | Python | false | false | 3,426 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) Ostap developers.
# =============================================================================
# @file test_fitting_convolution.py
# Test module for ostap/fitting/convolution... | [
"Ivan.Belyaev@cern.ch"
] | Ivan.Belyaev@cern.ch |
1c756ee1722315d82f7d75aa98100a4ec775b5fa | e66ef5811180b0692cedb171a97991bb046bde33 | /templates/postgresql.py.j2 | 0a52fe8514d8c592c4c341847f08a0c7c96fd397 | [
"MIT"
] | permissive | MartinHell/ansible-dgc-common | 3b8b8f6dfd25966fab797f806c4c71487e52d3eb | 67fec6d456f688f91d27c0fb6c00f7faccd53af5 | refs/heads/master | 2022-02-24T05:24:56.006179 | 2019-09-20T08:37:19 | 2019-09-20T08:37:19 | 114,650,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | j2 | #!/usr/bin/env python
import psycopg2
import sys
try:
conn = psycopg2.connect("dbname='{{ repmgr_db_name }}' user='{{ repmgr_db_user }}' host='localhost' password='{{ repmgr_db_password }}' connect_timeout=1")
except:
sys.stdout.write("Unable to connect to the database\n")
sys.exit(2)
cur = conn.cursor()... | [
"martin.hellstrom@dgc.se"
] | martin.hellstrom@dgc.se |
ddc044cb1da3ccffcbc308251dd875a60f2600f4 | 54083370977a61521548f8b7b914ee15cc8c0330 | /training_data_gen/resize.py | de1f2df08810024b5ede522599b11d0331fc74c4 | [] | no_license | ravindranyk/captcha_cracker | 814e8813f2139d98c725da6b9691e0f612ce3fcf | 66eff7738ea1f5dbd36052a16cd2b932f1bb8bbf | refs/heads/master | 2021-01-23T07:50:28.080650 | 2017-04-02T10:33:12 | 2017-04-02T10:33:12 | 86,423,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from PIL import Image
from resizeimage import resizeimage
import glob
def resize_file(in_file, out_file, size):
with Image.open(in_file) as fd:
new_width, new_height = size
fd = fd.resize((new_width, new_height), Image.ANTIALIAS)
fd.save(out_file)
fd.close()
for filename in glob.glob('dat... | [
"ravindranyk707@gmail.com"
] | ravindranyk707@gmail.com |
db5c3f8c6618635864e14b710fcc54c82f8e4fd1 | 4697065fedc3df947b50e443d477ea492d32c379 | /Text_Analyzer_SoloLearn/Example_solo.py | bb21b568c51b70abe42736b89f373337f409382a | [] | no_license | Maryam-ask/Python_Tutorial | 3db7fdb2020c1b476d501ccb2e34e1ac3f3b80ae | dc589ee4c0faf1fb384659498b69ac1c9dbb8de4 | refs/heads/master | 2023-06-22T17:09:50.432282 | 2021-07-19T10:51:19 | 2021-07-19T10:51:19 | 387,431,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | """
Longest Word:
Given a text as input, find and output the longest word.
Sample Input
this is an awesome text
Sample Output
awesome
"""
def count_char(txt):
counter = 0
i = 0
while (i < len(txt)):
counter +=1
i += 1
return counter
text = input("Enter your text: ")
txt_list = ... | [
"maryamaskari19@gmail.com"
] | maryamaskari19@gmail.com |
3a8fe495d062bc57cac1944bc5cfc45f1bf25ac7 | 571b57a3f059a2d9ea78f47aa695c8f3327746f5 | /08.py | 5a1cd895822275733ede409e3fac3cb23f1338df | [] | no_license | pixma500/hello-world | 0bb09c432693ad5f294ef4326dd18d89b90e1201 | ab9cf7813d085624f26bb572d1c9dabfb98441f2 | refs/heads/master | 2022-12-07T04:55:26.483765 | 2020-08-21T04:48:44 | 2020-08-21T04:48:44 | 263,539,911 | 0 | 0 | null | 2020-05-13T06:21:52 | 2020-05-13T06:04:25 | null | UTF-8 | Python | false | false | 1,193 | py | import time
d='7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035... | [
"svidinoff@mail.ru"
] | svidinoff@mail.ru |
f66e5ca5bccba463ba1c7ea0e178e85c4982a93f | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /Dacon/solar1/test04_solar9.py | 0f9e499e4f86263fff68de5a667aeda9b729cb92 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,798 | py | # 7일의 데이터로 2일의 target값 구하기
# 시간별로 데이터를 나눠서 훈련
import numpy as np
import pandas as pd
import tensorflow.keras.backend as K
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.layers import Dense, Input, LSTM, Dropout, Conv1D, Flatten, MaxPooling1D, GRU, SimpleRNN
from tensorflow.keras.backend im... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
d7c870c6c4ac1878e11b895e1762fa9c2276425c | 35567c513fcaff673433d24a8353193f2384435c | /src/wafp/targets/catalog/otto_parser/__init__.py | cea36b73513f5fcb30d0d6856288df295c3e9cb7 | [
"MIT"
] | permissive | schemathesis/web-api-fuzzing-project | 7d573c28b73e5b5ea2660fff3d79c5763b13d1a1 | 4f9d9614dafb06ea7d469a8fc9de230c1f152bdd | refs/heads/main | 2023-07-13T12:48:01.934609 | 2023-06-29T21:44:21 | 2023-06-29T21:44:21 | 354,606,912 | 12 | 1 | null | 2023-01-29T00:44:44 | 2021-04-04T17:35:40 | Python | UTF-8 | Python | false | false | 850 | py | from wafp.targets import (
BaseTarget,
Language,
Metadata,
Package,
SchemaSource,
SchemaSourceType,
Specification,
SpecificationType,
)
class Default(BaseTarget):
def get_base_url(self) -> str:
return f"http://0.0.0.0:{self.port}/"
def get_schema_location(self) -> str:... | [
"dadygalo@gmail.com"
] | dadygalo@gmail.com |
b6f00ea9445cb2ed873ffc84fb662a6f421f60ba | 38cec74894f6d4296412f5c5c497ac2fd9574047 | /lib/timer/managed_resource.py | b4a4d0ae9912ce2ac3f18f5cc82611c645e6b5b5 | [] | no_license | jweaver85/neopixel-pico | bbc38afe8cf93d56432b184df9d965fa3c49808f | 11f2a17dba1718745db5038f54020d6539c982b5 | refs/heads/main | 2023-07-19T18:53:17.704179 | 2021-09-01T01:40:01 | 2021-09-01T01:40:01 | 370,134,083 | 0 | 0 | null | 2021-08-31T02:58:32 | 2021-05-23T18:55:51 | Python | UTF-8 | Python | false | false | 3,103 | py | import timer
class ManagedResource:
"""
Manages a singleton resource with your functions that initialize a resource and clean it up between uses.
This class vends access to `resource` via a fair queue. Intended use is with something like a busio.SPI
with on_acquire setting a chip select pin and on_r... | [
"justinweaver1985@gmail.com"
] | justinweaver1985@gmail.com |
f1c1d1272813db29b692fe04bc813b6a679526fc | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20dbcc2a-5cc5-11e4-af55-00155d01fe08.py | b39c4aee05264d664cba5c47aa38bafddd842eb2 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | #!/usr/bin/python
################################################################################
# 20dbcc2a-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
2c13a2ad2330d2baa37a1eefedee78edf5ec460e | 837deb0044ec12b6f5261c6453f9909a5bbfbf25 | /api/accounts/serializers.py | 8ff407ad34d643d86f23eff12822c5cdac264a5d | [
"MIT"
] | permissive | yetiblue/testtemplate | 7de10c9e71713377adb0211c6728aa82a84567fe | 1fdc8a987710be89f53551934bf0539a8899b12a | refs/heads/master | 2023-07-11T23:36:03.636055 | 2020-07-29T16:51:25 | 2020-07-29T16:51:25 | 283,553,637 | 0 | 0 | MIT | 2023-06-21T23:09:45 | 2020-07-29T16:51:23 | Vue | UTF-8 | Python | false | false | 200 | py | from rest_framework import serializers
from accounts.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
exclude = ["id", "password"]
model = User
| [
"thempver@gmail.com"
] | thempver@gmail.com |
068c3a2719668d0fbb119a48641c6c1176aefbd9 | 7b4cbaa1e7bab897e34acba06f73ac17760d394a | /sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_synchronization_status.py | 222415631e7bf3e8af75e91992c1a625ab626c3d | [
"Apache-2.0"
] | permissive | nHurD/argo | 0fab7f56179c848ad8a77a9f8981cb62b4a71d09 | f4a65b11a184f7429d0615a6fa65bc2cea4cc425 | refs/heads/master | 2023-01-13T04:39:54.793473 | 2022-12-18T04:48:37 | 2022-12-18T04:48:37 | 227,931,854 | 0 | 2 | Apache-2.0 | 2019-12-13T22:24:19 | 2019-12-13T22:24:18 | null | UTF-8 | Python | false | false | 12,163 | py | """
Argo Workflows API
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/ # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-g... | [
"noreply@github.com"
] | noreply@github.com |
b50a2e1ab089d707485cc42e0c38f5c1bf7429cd | 8c632cf57af066d2075b9d00fca352e3ad0b4e1d | /lesson 3/11 - CSV Exercise.py | bdc523022771836748ac681faaaf11ef8263a817 | [] | no_license | wesammustafa/Intro-to-Data-Science-Udacity | 65d779f2e969bf36c27f27169981b24cc8501a1f | 84ee375d0cc4b92e9c3c26368e8212bdbe1a3b89 | refs/heads/main | 2023-08-31T04:49:13.410727 | 2021-10-23T17:24:44 | 2021-10-23T17:24:44 | 412,406,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | import pandas
def add_full_name(path_to_csv, path_to_new_csv):
#Assume you will be reading in a csv file with the same columns that the
#Lahman baseball data set has -- most importantly, there are columns
#called 'nameFirst' and 'nameLast'.
#1) Write a function that reads a csv
#located at "path_to... | [
"wesam.mustafa100@gmail.com"
] | wesam.mustafa100@gmail.com |
e0edbf38f52713fdf3fcb9f4d800149ab78a4add | e94408865d15b1afc0965a4d0525f124d2d2924c | /round1_code_backup/baseline_nezha_trained_weight/DataCollator.py | 21904335850a888462d4a88aee638dffd4853933 | [] | no_license | ngc7292/tianchi-oppo-matching | cc1d266a7faa3aa74fdfa492d6045a9671836c26 | 2d5f9a8759f3e96db36477501bce2ee0c49cf9da | refs/heads/master | 2023-05-09T00:42:36.143363 | 2021-05-11T06:46:25 | 2021-05-11T06:46:25 | 353,206,029 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,758 | py | # -*- coding: utf-8 -*-
"""
__title__="DataCollator"
__author__="ngc7293"
__mtime__="2021/3/17"
"""
from dataclasses import dataclass
from typing import Dict, List, Optional, Tuple, Union
import torch
from transformers.tokenization_utils_base import BatchEncoding, PreTrainedTokenizerBase
from transformers import Ber... | [
"feizhaoye@gmail.com"
] | feizhaoye@gmail.com |
26919ce61bc4cd179841fe1636c2052caf704c10 | 7d2df264115a103e7853c26405dd3a6812352553 | /manage.py | 15a142f12be08c0a7c58fceecf52831694364c7c | [] | no_license | stahlscott/race-support-backend | 8736d64535567ea6bc5c10ef3bd9a21fc7cf9580 | 31397674f7befea4b792eb6621f2f13dcc449b68 | refs/heads/master | 2020-05-24T22:41:13.439696 | 2019-05-21T00:49:13 | 2019-05-21T00:49:13 | 138,305,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | # manage.py
import unittest
import coverage
from flask.cli import FlaskGroup
from project.server import create_app, db
from project.server.models import User, Event, Race, Rider
import subprocess
import sys
app = create_app()
cli = FlaskGroup(create_app=create_app)
# code coverage
COV = coverage.coverage(
br... | [
"scott@skiplist.com"
] | scott@skiplist.com |
2cac3d08334c146dd3333f471c8ee1fa6546c71d | bc9c1a4da0d5bbf8d4721ee7ca5163f488e88a57 | /research/urls.py | fe0aeb667e57278015b49196ad14403f92bec46d | [] | no_license | mit-teaching-systems-lab/newelk | 77f43666f3c70be4c31fdfc6d4a6e9c629c71656 | a2e6665bfcf9e2ea12fde45319027ee4a848f93c | refs/heads/master | 2022-12-13T20:50:17.632513 | 2019-10-03T19:02:01 | 2019-10-03T19:02:01 | 132,154,880 | 0 | 4 | null | 2022-12-08T01:26:56 | 2018-05-04T15:04:20 | Python | UTF-8 | Python | false | false | 222 | py | from django.urls import path
from . import views
urlpatterns = [
# path('chatlogs/', views.streaming_chat_csv),
# path('answerlogs/', views.streaming_answers_view),
path("feedback/", views.toggle_feedback)
]
| [
"bhanks@mit.edu"
] | bhanks@mit.edu |
3ca6956b11786854ba5ed8849b17496003024f52 | a82ef0fc466216c89878888346226ab5adac1349 | /make.py | 9312eda3205ca5aa7f1205c63119b1ebf3c3391a | [] | no_license | tchau4485/rawson.js | 885c6be0931b352f6e7b73ce54a295fbc5ed417f | f9de04f0cd28f8dcc1aad5cf8fbc3b369ec79fed | refs/heads/master | 2021-01-16T20:31:17.528303 | 2013-03-10T21:51:47 | 2013-03-10T21:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | #!/usr/bin/python
import os, sys, re, json, shutil
from subprocess import Popen, PIPE, STDOUT
exec(open(os.path.expanduser('~/.emscripten'), 'r').read())
sys.path.append(EMSCRIPTEN_ROOT)
import tools.shared as emscripten
# Config
emscripten.Settings.USE_TYPED_ARRAYS = 2
emscripten.Settings.CORRECT_OVERFLOWS = 0
e... | [
"fbuchinger@fbuchinger-ThinkPad-Edge.(none)"
] | fbuchinger@fbuchinger-ThinkPad-Edge.(none) |
07ca45b0d4fc80cdbfe1ba1c70137645fd5053db | 8a99fd853c98cb78174c1400fed6a00487c2d4e7 | /FizzBuzz.py | e2d5d81c30e904185abd0b92daa7c9572afe0bb9 | [] | no_license | ajkmonster/fizzbuzzpyth | a6b4cd5f022540e36711f19fd65f1b20bb61e32f | 4601cf801fe14c252b02eb7ccd680990f52cfe26 | refs/heads/master | 2020-05-06T15:19:01.602174 | 2019-04-08T15:56:19 | 2019-04-08T15:56:19 | 180,183,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | for x in range(1,100,1):
if x%5==0 & x%3==0:
print ('Fizzbuzz')
elif x%5==0:
print('Buzz')
elif x%3==0:
print('Fizz')
else:
print(x)
| [
"noreply@github.com"
] | noreply@github.com |
82b23cb422076185141456f57956768bf267521b | cc746a21c8c7f234c1ce71c5ac1ca67ff5f98469 | /students/yevhen_alexandr/imaginarium/game/models.py | a3fe801e09e911f68464553c7c5f1b87cf58e3b4 | [] | no_license | zdimon/wezom-python-course2 | 0dad698bcfc46b0959242f95df5c4ecdd1a441ba | d4f805849d02e7516c6806fa475d49ac4869240c | refs/heads/master | 2023-06-16T16:59:57.161205 | 2021-01-27T16:18:04 | 2021-01-27T16:18:04 | 322,817,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from django.db import models
from django.utils.safestring import mark_safe
class Page(models.Model):
title = models.CharField(max_length=250)
content = models.TextField()
class Image(models.Model):
title = models.CharField(max_length=250, null=True, blank=True)
image = models.ImageField(upload_t... | [
"George_V@ua.fm"
] | George_V@ua.fm |
390ee336f83088e3f9b8609b7c854dfa3f4ea232 | 2e5e990955957cf04367ef6eedd62e6add7ccdc7 | /oms_cms/backend/api/v2/social_networks/serializers.py | 24a77bc22571a871c6dfb51890fd85f061a40858 | [
"BSD-3-Clause"
] | permissive | RomanYarovoi/oms_cms | 3dfcd19ff03b351dc754f73f4a0d8a9986cf28ec | 49c6789242d7a35e81f4f208c04b18fb79249be7 | refs/heads/master | 2021-07-06T18:49:51.021820 | 2020-10-15T05:52:55 | 2020-10-15T05:52:55 | 196,556,814 | 0 | 0 | BSD-3-Clause | 2020-10-15T05:52:57 | 2019-07-12T10:07:29 | JavaScript | UTF-8 | Python | false | false | 312 | py | from rest_framework import serializers
from oms_cms.backend.social_networks.models import SocialNetworks
class SocialNetworksSerializer(serializers.ModelSerializer):
"""Сериализация социальных сетей"""
class Meta:
model = SocialNetworks
fields = '__all__'
| [
"arsavit@gmail.com"
] | arsavit@gmail.com |
e3d72c1481cbc8561eafdf733425c7c3c0d61ef5 | ac8eb14f45dcdf3dba02cbb42fb848026f35e6a9 | /server/catalog/admin.py | 0fd6c91178354e6a59ca0d0f0b639eb0fb388517 | [] | no_license | kostisbourlas/pysearch | 0d9a68dd94f28fea5600d46e97ef7792c5ab9e08 | 391da36a27b58e9797bf9b7207d946b111bb520c | refs/heads/main | 2023-07-13T13:02:44.597945 | 2021-08-12T16:50:09 | 2021-08-12T16:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.contrib import admin
from .models import Wine
@admin.register(Wine)
class WineAdmin(admin.ModelAdmin):
fields = (
'id', 'country', 'description', 'points', 'price', 'variety', 'winery'
)
list_display = ('id', 'country', 'points', 'price', 'variety', 'winery',)
list_filter = ('coun... | [
"kostisbourlas@protonmail.com"
] | kostisbourlas@protonmail.com |
7a61f5f44034c653d32cd5858fe9f6521bc38446 | 7936f2011261efa2d31b2b1f2a16eee9ba29a0cd | /article_scraper/article_scraper/spiders/wikipedia.py | 83b012fa6a501e0700101fa4707d4e29b04b746c | [] | no_license | gregorybohn620/RCATScrape | 746386ce671a67e5d53b9f05d45b987410409cee | 5bb0e4734712d6d05eb6c704e3493337fd56b685 | refs/heads/master | 2023-06-29T18:51:22.127161 | 2021-08-02T22:43:31 | 2021-08-02T22:43:31 | 392,110,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from article_scraper.items import Article
class WikipediaSpider(CrawlSpider):
name = 'wikipedia'
allowed_domains = ['en.wikipedia.org']
start_urls = ['http://en.wikipedia.org/wiki/Kevin_Bacon']
r... | [
"gregorybohn620@utexas.edu"
] | gregorybohn620@utexas.edu |
2d4358e6df492ace9ba536ec9894210f4f6dd9a5 | 3ee6ec4eca2a03a58ae1d7cd7aa547fb724cbb43 | /part1/pos_scorer.py | 5c0487e5628a66acf1ba19f53951491553d9d9c9 | [] | no_license | tanvi5/Optical-character-recognition-and-POS-tagger | 01dcd41ce9e122a38c11c74fc8785947d0440e4b | dd5b3431eed6fbf3bd9db5ba2f43061cd8263e8d | refs/heads/master | 2020-04-13T11:15:47.303325 | 2018-12-26T10:49:26 | 2018-12-26T10:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | #!/usr/bin/env python3
###################################
# CS B551 Fall 2018, Assignment #3
#
# Scoring code by D. Crandall
#
class Score:
def __init__(self):
self.word_scorecard = {}
self.sentence_scorecard = {}
self.word_count = 0
self.sentence_count = 0
def score(self, ... | [
"noreply@github.com"
] | noreply@github.com |
48fb9be7fe206dd8b786ee8826e31648fa25db09 | 439e07d2fa9c016631e40d3fb191558066434245 | /search/exp.py | ae488175c73b0df4df2b4e4f93f73f386f8be945 | [] | no_license | AkashTalware/search_trailers | 72ddc242b4bb065377d48f5a88965d175737e148 | 602affc732340fb61fb9f70fe4c02dcf20702333 | refs/heads/master | 2023-04-26T02:37:27.653382 | 2021-04-07T10:51:31 | 2021-04-07T10:51:31 | 354,066,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from pytube import YouTube
obj = YouTube("https://www.youtube.com/watch?v=ZrdQSAX2kyw")
strs = obj.streams.get_by_resolution(resolution="720p")
print(strs.mime_type)
# strm_all = obj.streams.filter(mime_type="video/mp4")
# l = {}
# l = {video for video in strm_all if video.resolution not in l.fromkeys("resolution")}... | [
"DK0031@digikull.com"
] | DK0031@digikull.com |
9589b6d1134195f2758af446807ba14035c231bb | e1878d2072e0aac22d1b9b1bac7a06b8b7af3eed | /models/shufflenet.py | 0a600b69d000a34744141fda16041929f3fe031e | [] | no_license | njuhuxw/B.2-image-classification-master | db747296cea8ae178349017d37b0d5280457202e | 6f10c2db7ec13e2f1b00c8f0b67e25e964fde862 | refs/heads/master | 2023-01-19T02:58:12.351546 | 2020-11-30T09:51:10 | 2020-11-30T09:51:10 | 311,579,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,438 | py | """shufflenet in pytorch
[1] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, Jian Sun.
ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices
https://arxiv.org/abs/1707.01083v2
"""
from functools import partial
import torch
import torch.nn as nn
class BasicConv2d(nn.Module):
de... | [
"852393503@qq.com"
] | 852393503@qq.com |
bd13e9dce56eb2014ae5589dc7d6718fb83209fa | cf32375a13c127b24277c115fe692fbd46c23edb | /gallery/gallery/settings.py | 268022e41fd1eb2c40ce7d720ae680ab13963b1e | [] | no_license | vivekmohbe/Gallery | 87cbd914d59b24d52de12555a27935540cb71616 | fc7199c9d2caa9e6f8a6cdefa2eef83c82c8caab | refs/heads/master | 2020-04-13T10:25:34.110275 | 2018-12-26T05:44:36 | 2018-12-26T05:44:36 | 163,138,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | import os
#import posixpath
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '8ace3072-47a0-4910-b522-dc3601f38c35'
# SECURITY WARNING: don't r... | [
"root.mohbe@gmail.com"
] | root.mohbe@gmail.com |
77c2ecaf8881dc69f7f28a6a102a52a772152728 | a2bb2cb991af985ec9444053e2c396d45dae5633 | /Tree questions/tree using inorder preorder.py | fabdefd5be990689fd3f67762c176b0561cddeb5 | [] | no_license | PauraviW/leetcode-problems | e8ad25ff3e565329065bc9907ebdcfbb81087865 | b309ec7304806c328b64ab47fa006b67c2e99307 | refs/heads/master | 2023-03-07T08:01:48.515155 | 2021-02-18T17:03:55 | 2021-02-18T17:03:55 | 265,299,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def constructTree(self, inorder, preorder):
if preorder and inorder:
root = TreeNode(preorder.pop(0))
left_array = inorde... | [
"pauravi.wagh12@gmail.com"
] | pauravi.wagh12@gmail.com |
35d70444c9801cd8678cf01c2f4f4dfb90bfa76a | 600aaed27fd7239db246e9ae1030f2fad8ee6015 | /.scripts/colour-manager.py | e9541c48947178353756ed1615725ce42cefc62f | [] | no_license | Hives/dotfiles-old | e89c97f53d454606db4e15b16e8b4916871dbf8c | 544d71c267a062db4778b85a9d46b38e975a05b2 | refs/heads/master | 2022-04-07T14:55:12.769628 | 2019-12-23T17:02:04 | 2019-12-23T17:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,595 | py | import os
import pprint
import subprocess
import sys
from pathlib import Path
from shutil import copyfile
# sys.argv is the list of arguments
# the first (zeroth) argument is always the name of the script
if len(sys.argv) > 1:
scheme = sys.argv[1]
else:
scheme = "dark-scheme"
home = str(Path.home()) + "/"
pat... | [
"communty.hivemind@gmail.com"
] | communty.hivemind@gmail.com |
2b92e1d8ee0232efdc6ea9429845fd92291d9e48 | dce6734caa0b2c60a8166a9c1020621dcaaa4079 | /src/roi_heads.py | 98e225ebacd3b5e111c7b68982162904f76e2fbe | [] | no_license | xiweiya/Thundernet-pytorch | 91be8b79edfc6da5623ea763b50f34041580171a | 0d62cd55430d5ce55560c1efc43d552b2d0b6671 | refs/heads/master | 2022-11-10T05:40:05.807907 | 2020-07-04T15:03:15 | 2020-07-04T15:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,303 | py | import torch
import torchvision
import torch.nn.functional as F
from torch import nn, Tensor
from torchvision.ops import boxes as box_ops
from torchvision.ops import misc as misc_nn_ops
from torchvision.ops import roi_align
#from . import _utils as det_utils
from torchvision.models.detection import _utils as det_ut... | [
"820001401@qq.com"
] | 820001401@qq.com |
bf880139591dc7c773d8e6bf7be78b1c793a73ef | 364b36d699d0a6b5ddeb43ecc6f1123fde4eb051 | /_downloads_1ed/fig_poisson_continuous.py | 686b96403de5b92c73a2308049b03cfd324a149b | [] | no_license | astroML/astroml.github.com | eae3bfd93ee2f8bc8b5129e98dadf815310ee0ca | 70f96d04dfabcd5528978b69c217d3a9a8bc370b | refs/heads/master | 2022-02-27T15:31:29.560052 | 2022-02-08T21:00:35 | 2022-02-08T21:00:35 | 5,871,703 | 2 | 5 | null | 2022-02-08T21:00:36 | 2012-09-19T12:55:23 | HTML | UTF-8 | Python | false | false | 3,102 | py | """
Unbinned Poisson Data
---------------------
Figure 5.14
Regression of unbinned data. The distribution of N = 500 data points is shown
in the left panel; the true pdf is shown by the solid curve. Note that although
the data are binned in the left panel for visualization purposes, the analysis
is performed on the un... | [
"vanderplas@astro.washington.edu"
] | vanderplas@astro.washington.edu |
fb6d0251fe6ca08954b8d6eb6b5819a007eb479e | e51ceaf0965f6c8bc6819be7a0659f68a5e0f494 | /meldining/migrations/0001_initial.py | b790376ac9dab13c1078b72583de08d3a45e1175 | [] | no_license | zyrsas/Meldining | dc3b4650d5561e1fb864ff4397451584352187ba | a4399c3928481ac112443f9dba9b96e9144e8f3e | refs/heads/master | 2020-03-17T14:25:29.621633 | 2018-05-16T13:43:26 | 2018-05-16T13:43:26 | 133,671,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-05-16 12:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cuisin... | [
"zyrsas@gmail.com"
] | zyrsas@gmail.com |
f50bdb4996105f6ed0b9c648a3fcff1ec31af93a | d0e0b5bb93a3aedb5c8ae97219fba03b24a84e7c | /scripting.py | ef8a3e86654e46a303e9e6edb079ac85629f0f36 | [] | no_license | R3LYK/social_media_stock_mentions | 031ecb847cfb3a30008f796abc33a5e8f3c30ff1 | cf8f3d48263fa41f74aae8bea16306156f10f307 | refs/heads/main | 2023-08-17T11:48:21.189450 | 2021-09-13T19:09:01 | 2021-09-13T19:09:01 | 405,258,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | import csv
def row_factory(row) | [
"kyler.pettitt@gmail.com"
] | kyler.pettitt@gmail.com |
e4ca782977736d9954c8673fb792ca854051d919 | cb2e148af9601b9e11bdad097cca840bc4cc4bb0 | /backend/app/resources/orderResource.py | b1fd66907edd312189420114a1d7de1a911e0c91 | [] | no_license | jgavirias13/pruebaTecnicaSigma | 560df64ca8e4caf1ab1a6ac7cd3624e485351d1f | b6ed42d15c9d842e242d984d11f79134a379e39d | refs/heads/main | 2023-03-28T01:03:04.154030 | 2021-03-25T05:05:47 | 2021-03-25T05:05:47 | 351,245,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from flask_restful import Resource
from flask import request
from app.schema.orderSchema import OrderSchema
from app.models.order import Order
from app.models.product import Product
from app.common.util import calculateTotalCompra
orderSchema = OrderSchema()
class OrderResource(Resource):
def post(self):
data =... | [
"jgavirias13@gmail.com"
] | jgavirias13@gmail.com |
52e88576c46178114061c73d824c6421f1a462db | 0ad2ef394f5c5811ebcb74f99da34d94ca97ef60 | /preprocessor.py | 5c2a6c8bf56c5fda83a9e08f97c7db06bd5073c1 | [] | no_license | efazs/bangla-handwritten-recognision- | ba768808756d20a18d13584638960e3f7f79a883 | 280749e7061e2a53d43c9ed8616f0c0a65f98f81 | refs/heads/master | 2021-10-24T19:24:48.208064 | 2019-03-27T17:54:46 | 2019-03-27T17:54:46 | 178,053,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 6 03:18:05 2019
@author: Efas
"""
# Import libraries
import os,cv2
import numpy as np
from PIL import Image
from numpy import *
import numpy as np
path1 =r"G:\pics\before_reform_originalS"#path containg the original image
#path1=r"G:\pics\pilo\before_reform_origina... | [
"ns.efas@gmail.com"
] | ns.efas@gmail.com |
353f081526d1adc98c5c58ccd4e63448de00b336 | e845aa989b0dc8315ded987e419931fe73f90bcb | /find_difference.py | ce3702730b2066bf9787f87952dfe4ec69ddfd02 | [] | no_license | rolandobloom/find_difference_task | 6ee2c0b6d7dee4521e916d83c10aa4330f42da19 | 2474bfc7a941d36d7a71b70d64965697ddc4a387 | refs/heads/main | 2023-06-09T02:34:14.111188 | 2021-07-01T06:23:57 | 2021-07-01T06:23:57 | 309,392,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import re
from methods import ReverseWithReversed
if __name__ == '__main__':
array_a = list(map(int, re.findall(r'[^,\.\s]+', input('enter array A:'))))
array_b = list(map(int, re.findall(r'[^,\.\s]+', input('enter array B:'))))
result = ReverseWithReversed.find_difference(array_a, array_b)
print(f'... | [
"rszocki@bankier.pl"
] | rszocki@bankier.pl |
64ad76f77783d4b8a4cb1b9d87b673ea62470bf1 | f566dfc5ce189d30696b9bf8b7e8bf9b1ef45614 | /Example/DQN_SimpleMaze/DoubleDQN_SimpleMazeTwoD.py | a8615b896bcd6023b12a714b7533a963e26b7691 | [] | no_license | yangyutu/DeepReinforcementLearning-PyTorch | 3dac4ad67fa3a6301d65ca5c63532f2a278e21d7 | 7af59cb883e24429d42a228584cfc96c42f6d35b | refs/heads/master | 2022-08-16T13:46:30.748383 | 2022-07-30T05:47:47 | 2022-07-30T05:47:47 | 169,829,723 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py |
from Agents.DQN.DQN import DQNAgent
from Agents.Core.MLPNet import MultiLayerNetRegression
import json
from torch import optim
from copy import deepcopy
from Env.CustomEnv.SimpleMazeTwoD import SimpleMazeTwoD
import numpy as np
import matplotlib.pyplot as plt
import torch
torch.manual_seed(1)
def plotPolicy(policy,... | [
"yangyutu123@gmail.com"
] | yangyutu123@gmail.com |
51c50551241db4e366b3aea0efdd7ca6f78e8961 | 6fa371c04848cb68c0b1d58533fdd89b7a176008 | /drawing.py | 84ea5dbdfc6f87f20e197b0f81dc156e04dc5e8f | [] | no_license | solversa/coordination | acc626094246f622a45409d0f704f3407286dce9 | 1b115fdb76f58e10402767bf65103b9dd197376b | refs/heads/master | 2021-06-19T01:03:36.974354 | 2017-04-24T05:39:34 | 2017-04-24T05:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py | import numpy as np
import tensorflow as tf
import gym
from utils import *
import random
import os
class Policy():
def __init__(self, observation_space, action_space):
self.observation_space = observation_space
self.action_space = action_space
self.observation_size = self.observation_space.... | [
"kevin@bobthechicken.com"
] | kevin@bobthechicken.com |
543a88f853a1e518b01143a3870652ad879a269a | b51341a9411d48be0214ab84ffebe881b52bc352 | /app.py | 88a4f4359d7f067146d4d3fdaebe717349d5c654 | [] | no_license | charan-kumardot/smartphonebot | 52a89a99a78b1966ae2f5d028aacaeee5de05eee | 2347b6987b942f84abc4c458a1a0fb5332ce59a8 | refs/heads/main | 2023-02-19T00:17:12.665043 | 2021-01-19T16:19:47 | 2021-01-19T16:19:47 | 330,577,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | from cht import Chat,reflections
from flask import Flask, render_template, request
from twilio.twiml.messaging_response import MessagingResponse
app = Flask(__name__, template_folder='templates')
pairs =[
['(good|hlo|welcome|hello|Hi|hey|שלום|ברוך הבא|בוקר טוב|היי|מה שלומך|הוא|טוֹב|הי|סליחה|אפש... | [
"noreply@github.com"
] | noreply@github.com |
f92d14e56e3f2106526540e9015138bc89fc3d77 | c12008fee6b319ccc683956d0a171a00e12debb0 | /everyday/e191020.py | 53e6428caf621fada6c4bfabfffe7d54a1250dd8 | [] | no_license | yrnana/algorithm | 70c7b34c82b15598494103bdb49b4aefc7c53548 | 783e4f9a45baf8d6b5900e442d32c2b6f73487d0 | refs/heads/master | 2022-04-13T23:50:53.914225 | 2020-04-01T12:41:14 | 2020-04-01T12:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def solution(arr):
l = len(arr)
n = 0
for i in range(l):
if arr[i] != 0:
swap(arr, i, n)
n += 1
return arr
def swap(arr, i, j):
tmp = arr[i]
arr[i] = arr[j]
arr[j] = tmp
print(solution([0, 5, 0, 3, -1]))
print(solution([3, 0, 3]))
| [
"nyryn0945@gmail.com"
] | nyryn0945@gmail.com |
cb002e1559544ff2efdbb9c0ae44c92d54398282 | 8ce5eaba8a2848c17f9a47eb083afdd90887e17e | /scripts/loading/suppl_files/load_pubmed_PMC_files.py | e8c7834e02a0481d3d93a121e901d44195f54939 | [
"MIT"
] | permissive | yeastgenome/SGDBackend-Nex2 | cad926729f9da738b3e82fc85d29b936ed6b8f1a | 017e7248fbc3f1d1e8062d67f26937ec00c3cb8a | refs/heads/master | 2023-08-23T12:24:15.220178 | 2023-06-22T01:22:11 | 2023-06-22T01:22:11 | 46,740,355 | 5 | 7 | MIT | 2023-09-06T20:28:05 | 2015-11-23T18:40:33 | Python | UTF-8 | Python | false | false | 4,239 | py | from src.helpers import upload_file
from src.boto3_upload import upload_one_file_to_s3
from scripts.loading.database_session import get_session
from src.models import Dbentity, Filedbentity, Referencedbentity, Edam,\
FilePath, Path, ReferenceFile, Source
from datetime import datetime
import logging
import os
import... | [
"noreply@github.com"
] | noreply@github.com |
1d3a69f3fca58fe93dbc386743538093df884e7d | 444e1626df9ff13af6b65ae3dd8b68fdce91de62 | /class_practice2.py | 28d885c6945bf872f6ba9663c1bd51a81308f6d3 | [] | no_license | yash94749/myrepos | 3de56748e506f54a4cfe5ff13f530851873ab5fe | 86ad72637c2de6594fce5afd71270878faf7bee8 | refs/heads/master | 2020-03-12T08:57:21.408278 | 2018-04-22T06:49:34 | 2018-04-22T06:49:34 | 130,540,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | class company:
def __init__(self,Name,location,types):
self.CompanyName = Name
self.CompanyLocation = location
self.CompanyDomain = types
self.CompanyWebsite = 'www' + '.' + Name + '.com'
class Employee(company):
amount = 1.04
def __init__(self,Name,location,types,emp_firs... | [
"0128it@gmail.com"
] | 0128it@gmail.com |
e7fa14ad1683f757c0af7cb0b591d2e67a9b53df | 4ffee6a04d44c44b3ce4edf50e78dd0a9205db01 | /Datastructures/index_2.py | 64bbfc5476c2a1d12aafa5b462b1c238478e7bf2 | [] | no_license | BercziSandor/pythonCourse_2020_09 | 075fd6481821f32b83aed71ea85fbaeb4d2d3777 | 43144edcc6f114df9568245026276c772f32b79c | refs/heads/master | 2023-04-01T23:09:44.306936 | 2021-03-22T08:32:20 | 2021-03-22T08:32:20 | 299,989,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | # Értékadás slicing segítségével.
lst = [10, 20, 30, 40, 50]
# Az 1, 2, 3 indexű elemeket le akarjuk cserélni erre: [-2, -3, -4]
lst[1:4] = [-2, -3, -4]
print(lst) # [10, -2, -3, -4, 50]
#######################################
# Ha slicing segítségével végzünk értékadást, akkor az új elemnek egy iterálható
# soroz... | [
"Sandor.Berczi@t-systems.com"
] | Sandor.Berczi@t-systems.com |
e3537da9193eb857a9a504c5b9dabd21764f97f7 | 4ff20bb90b85de0adf9f1957a1790b7c6d1fc4b6 | /AssetMP/api.py | 724e26ee8c148ff409154daa35b643fcaa93f510 | [] | no_license | suzihua666/AssetMP | d8544a086536e928b6fccf4268aba79fdab6cddf | c31d3d1e678207547471ad13acda5618773530d8 | refs/heads/master | 2022-05-11T21:53:56.437998 | 2019-02-28T08:04:00 | 2019-02-28T08:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,103 | py | # -*- coding: utf-8 -*-
# @Author: richard
# @Date: 2018-04-11 14:35:54
# @Last Modified by: richardzgt
# @Last Modified time: 2018-09-05 14:31:00
# Purpose:
#
from django.http import HttpResponse, Http404
from django.db.models.query import QuerySet
from django.core import serializers
from django.core.paginato... | [
"gaotao@huored.com"
] | gaotao@huored.com |
c3493467acffb606aefbbf9f4ca1107f40f79470 | 1332983c07bbecc16ec694a10d9557100b8af031 | /Front-End/distance.py | 7768d20a848df20f3260370a2f96a554b47d689c | [] | no_license | kkuzminskas/cs3235 | c37487580164cf2a1238aac75770375b975ef191 | 577e656316120ca29542e45699ba5f3f21972a18 | refs/heads/master | 2023-01-09T07:30:40.673905 | 2019-11-13T06:52:11 | 2019-11-13T06:52:11 | 216,753,016 | 0 | 2 | null | 2023-01-04T23:38:04 | 2019-10-22T07:43:38 | Python | UTF-8 | Python | false | false | 1,316 | py |
import prep_data
import dist_analysis
import json
import numpy as np
def extract_norm_x_y_t(filename):
try:
file = open(filename, "r")
data = file.read()
data = json.loads(data)['all']
except:
prep_data.clean_data(filename)
return extract_norm_x_y_t
tracking_data... | [
"kendallkuzminskas2020@u.northwestern.edu"
] | kendallkuzminskas2020@u.northwestern.edu |
4c0ef9a83233da4c94a5a82848e953f60b8f5ccb | 92d7e64212dfc4ef025eb1da6ac745d86b45482d | /hello.py | 7c97d7be985a9ff8e01c53aa200ae24c80910687 | [
"MIT"
] | permissive | abhishekanand/leetcode | 1be6c4cfae1d00735f064d10194d1ccd3a9d0ecf | f1f86d20312561ec599f076587d696d126e88bdd | refs/heads/master | 2020-03-13T19:54:33.674946 | 2018-07-06T06:34:37 | 2018-07-06T06:34:37 | 131,263,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | import pandas as pd
import os
x = 5
print("Hello world!")
| [
"noreply@github.com"
] | noreply@github.com |
e153e5d4b04c8b4638087b42cd4998c8931ec241 | 595854e3b2095736efe18eba0f64823924cff4f3 | /cooking/asgi.py | de4ee270d33d87e5c8b767ee1124308605f40210 | [] | no_license | saigurrampati/recipe | 9c50640ced95c2369339a8b38372803381a1f1fb | e5d6f4265073418a266aaf65ab6c5232053e555f | refs/heads/main | 2023-06-05T12:56:36.389085 | 2021-05-07T07:41:11 | 2021-05-07T07:41:11 | 363,030,628 | 0 | 0 | null | 2021-06-28T02:31:33 | 2021-04-30T04:57:13 | Python | UTF-8 | Python | false | false | 391 | py | """
ASGI config for cooking project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"g.saikumarreddy19@gmail.com"
] | g.saikumarreddy19@gmail.com |
6c16e2c8f646a76de7c95d1bce0bd8207155521e | 5d0dd50d7f7bf55126834292140ed66306e59f10 | /MIGRATE/msgpack_to_sql.py | 4ce966fdef93c6b79fcabe824ec1177b571c63de | [] | no_license | JellyWX/tracker-bot | 32d2c8666a7c6ca0835aa94695be4ccd7fc37bb5 | b0909c4883b0ee6e0300a163e94ea0d69dffa062 | refs/heads/master | 2021-05-02T16:14:11.638292 | 2018-04-26T19:47:50 | 2018-04-26T19:47:50 | 120,670,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import msgpack
import sqlite3
with open('../DATA/USER_DATA', 'rb') as f:
data = msgpack.unpack(f, encoding='utf8')
connection = sqlite3.connect('../DATA/data.db')
cursor = connection.cursor()
for user, values in data.items():
command = '''CREATE TABLE u{user} (
game VARCHAR(50),
time INT
)
''... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
463cb930ed33d88b8c55dfbae8cb4eb3ce6e48c8 | 782ef5f9dfa872590409a568973c56be8072597d | /project/settings.py | b0984615b18207eccda51b3da8bc3dc698c5b089 | [] | no_license | heraldmatias/liceolncc | 34fa013bdcc31c1595699207b9494db8f8713c22 | 02931da47936e3c5c41dfe6d0e250acc837c6fba | refs/heads/master | 2021-01-22T06:37:00.810302 | 2012-08-15T23:36:14 | 2012-08-15T23:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,145 | py | # -*- coding: utf-8 -*-
# Django settings for project project.
from os.path import dirname, join, realpath, split
SYSTEM_PATH, PROJECT_DIR = split(realpath(dirname(__file__)))
ADMINS = (
('Herald Olivares', 'heraldmatias.oz@gmail.com'),
('Moises Ibanez', 'moics30@gmail.com'),
)
FCGI_OPTIONS = {
'method':... | [
"heraldo@jorge-HP-Compaq-8200-Elite-SFF-PC.(none)"
] | heraldo@jorge-HP-Compaq-8200-Elite-SFF-PC.(none) |
9d975f2478bf0f76125b516f1f17802747c622f8 | 7c668c22c3c79428e4be833cab2251cb5134b1f5 | /python_deep_learning2/7_10.create_custom_callback.py | 1d771b316e7d10f736daa91a61c2b31f2513c9e1 | [] | no_license | tengge1/LearnPython | 486297fe892528d2e71876b686bda5785e4f43bd | 862b4484b74f7a4b27105212ad76785fa02f87c0 | refs/heads/master | 2022-10-14T09:36:15.872035 | 2020-04-10T04:02:27 | 2020-06-08T04:02:36 | 228,754,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from tensorflow import keras
from tensorflow.keras import Sequential
from tensorflow.keras.datasets import mnist
from tensorflow.keras.layers import Flatten, Dense
import numpy as np
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train = x_train / 255.0
x_test = x_test / 255.0
model = Sequential()
model.a... | [
"930372551@qq.com"
] | 930372551@qq.com |
6f7629ccc4c0086b3e895b41224590449279acb5 | 60ec81571533bbfda62ed3b383c3ae984af005a8 | /recipes_exam/recipes_exam/urls.py | c7848c3dcbca30149e5701b86d5f782f2068f718 | [] | no_license | fingerman/django-projects | f35f4a39810b0db6294bfe689c30ad62947839b9 | ba3606abf7d77025ff08ffaffb64110ea2f4f92c | refs/heads/master | 2023-02-27T05:18:53.600833 | 2021-01-31T21:07:25 | 2021-01-31T21:07:25 | 334,756,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """recipes_exam URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"adamov.george@gmail.com"
] | adamov.george@gmail.com |
cdaa954933ee74866fd220287c1b3d8d73887ee1 | 99b92590ccba48f40a53d6200d8dbe2bdbdc0314 | /stdplugins/execmod.py | 74b7fe2fec75f9a149e6dc81a072dffe31f7e3d2 | [
"Apache-2.0"
] | permissive | SirGod/PornHub | b5dd079db385817eb598c01b4846d3b4763529f7 | 2fb1368d673b5efa10349939974f59c3d6a114ec | refs/heads/master | 2020-09-04T11:17:33.914120 | 2019-11-05T07:09:29 | 2019-11-05T07:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,256 | py | """COMMAND : .cpu, .uptime, .suicide, .env, .pip, .neofetch, .coffeehouse, .date, .stdplugins, .fast, .iwantsex, .telegram, .listpip, .pyfiglet, .kowsay"""
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain o... | [
"noreply@github.com"
] | noreply@github.com |
249309d3c41e03e3fe9f734f5c7be424511e3763 | 5f81bff4ccd6920b448d2165854e928c7efda9f5 | /movements/movements/doctype/payment_location/payment_location.py | cc7fe470791bd8124ef15eb493d76239203a89e9 | [
"MIT"
] | permissive | hshamallakh/movements | d77897263ead77ffc1cc6e89f935abe2e0c15b2e | 3087497390f470d9da667ae918d86807b4d6bbff | refs/heads/master | 2021-05-04T00:40:08.225206 | 2018-02-05T16:59:58 | 2018-02-05T16:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Ahmed Ragheb and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class PaymentLocation(Document):
pass
| [
"ubuntu@ip-172-31-83-45.ec2.internal"
] | ubuntu@ip-172-31-83-45.ec2.internal |
d7919c38e0ac4b378ccf1771060a7670a3744ca6 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/freestyle/styles/apriori_density.py | 1de2c4c033457e302c229c3c7014b55c0b8010d7 | [
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
"GPL-2.0-or-lat... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 1,743 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"admin@irradiate.net"
] | admin@irradiate.net |
9d95173045444ddceac7aaebc34b8f75adf12995 | fff26da96c4b324cdbc0315c3fdf1fe2ccbf6bf0 | /.history/test_celegans_corrected_weights_20210615130634.py | a875acee9236154c606750101651e4d37fd22fd9 | [] | no_license | izzortsi/spreading-activation-networks | ebcd38477a4d4c6139a82b0dd7da3d79a0e3f741 | f2cf0bf519af746f148fa7a4ea4d78d16ba6af87 | refs/heads/dev | 2023-06-28T03:49:34.265268 | 2021-06-15T18:07:51 | 2021-06-15T18:07:51 | 376,718,907 | 0 | 0 | null | 2021-06-15T18:07:51 | 2021-06-14T06:01:52 | Python | UTF-8 | Python | false | false | 3,390 | py | # %%
import graph_tool.all as gt
import numpy as np
import numpy.random as npr
# import matplotlib.colors as mplc
from matplotlib import cm
import matplotlib.colors as mplc
import os, sys
from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib
from plot_functions import *
# %%
def init_elegans_net():
g... | [
"istrozzi@matematica.ufrj.br"
] | istrozzi@matematica.ufrj.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.