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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e95da268eeb27403565a04a05a979ba3c32207e | f363a2c4edd5d475701b7ef5263fdbc5dbda6ecb | /sm.py | 13b563986b32572c089d054e40c64fa734081aea | [] | no_license | michaelwiest/ucsd-cse-253-hw1 | eb9799487ee572e071d40d389a56313c09e64fae | dd95f8b0b8e31ee4e467f3e6b849170ad207c137 | refs/heads/master | 2021-05-05T15:14:17.539289 | 2018-01-18T07:57:13 | 2018-01-18T07:57:13 | 117,298,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,716 | py | from mnist import MNIST
import pandas as pd
import numpy as np
import pylab as plt
from helper import *
# np.set_printoptions(threshold=np.nan)
np.set_printoptions(threshold=100)
class SoftMax():
def __init__(self, mnist_directory, lr0=None, lr_dampener=None):
self.mnist_directory = mnist_directory
... | [
"michaelwiest@Michaels-MacBook-Pro-2.local"
] | michaelwiest@Michaels-MacBook-Pro-2.local |
b23f6427b134d5142d600e52e0c2cae68943e78d | e22a9e5ae2508ba5d3fb6d786f070ea3dbbfa541 | /158A.py | 580895c4dd322c7c4ae91a58d81ebc31f46fc918 | [] | no_license | almakhann/Codeforces | 7ff14c96f1cd09f7c80c5486263aa9012bd74e92 | 9f64a14887471639aa3865ae1f0561c24471ec96 | refs/heads/master | 2022-04-19T04:16:11.160934 | 2020-04-15T16:35:09 | 2020-04-15T16:35:09 | 255,976,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | first = input().split(' ')
second = input().split(' ')
count = 0
for i in range(int(first[0])):
if int(second[i]) > 0:
if int(second[i]) >= int(second[int(first[1])-1]):
count += 1
print(count)
| [
"serik97_ktl@mail.ru"
] | serik97_ktl@mail.ru |
bb3d8a5f150df51b5fdef25b495d0d2462c6e144 | aae0461973440174afbf8e75e4ddf0f0c4dd1a9c | /gnu/gnu_slides.py | 1a30f50a3ee380b604a8669eeb4d4ef8b8b97991 | [] | no_license | behdad/slippy | f81eeac68df39eb0f6a7465effacd7239eb24cbf | 5535fe88a785dd75c96171b989f310fcd80e479e | refs/heads/master | 2023-08-29T08:48:40.919688 | 2016-09-27T08:02:01 | 2016-09-27T08:02:01 | 15,673,169 | 20 | 0 | null | 2014-01-10T08:09:47 | 2014-01-06T12:14:35 | Python | UTF-8 | Python | false | false | 5,180 | py | #!/usr/bin/python
# -*- coding:utf8 -*-
slides = []
def slide_add(f, data=None, width=800, height=400):
slides.append ((f, data, width, height))
return f
import pango
def text_slide (l):
def s (r):
for i in l:
yield i
for i in range (30):
yield ''
slide_add (s, data={'align': pango.ALIGN_LEFT})
texts = ... | [
"behdad@behdad.org"
] | behdad@behdad.org |
4c8f7e6ae2aeddd5c42226129d42c4cb4aab080a | 3ab599127dc2fc89cfee5f3ee3a91168499cb475 | /tests/notebooks/print.py | f53c6110196004fd9f0397077b033b4cca94f792 | [
"BSD-3-Clause"
] | permissive | maartenbreddels/voila | 17dfb39c131ffad4b3b51926214dc71a2e06a964 | d3a52abdd34b68bdabdd8f0ae34071711cd16742 | refs/heads/master | 2022-05-11T05:47:44.843627 | 2020-09-28T09:58:37 | 2020-09-28T09:58:37 | 149,579,689 | 2 | 1 | NOASSERTION | 2020-05-27T07:59:20 | 2018-09-20T08:50:19 | Python | UTF-8 | Python | false | false | 284 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python
# ---
print('Hi Voilà!')
| [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
1106db283ff566d316750ba1076bb9539d901e37 | 3f2639c02a3658c43c7bf971069883d23239e8b9 | /100+ Exercises Solved/Question - 5.py | 9348976ab4f0a6b6acd1310d9a00ef9d8640159a | [] | no_license | Ellipse404/100-Exercises-Python-Programming- | 0da5882b23ce4a050fe952db8302cc0041241870 | d00e966aeb3d6c5870c89f8606fdc32bae964fe5 | refs/heads/master | 2021-05-24T11:54:08.237919 | 2020-04-06T16:10:38 | 2020-04-06T16:10:38 | 253,547,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 16 16:54:45 2019
@author: BHASKAR NEOGI
"""
# Level - 1
class String(object) :
def __init__ (self) : # U may not use these 2 lines.
self.s = ""
def getString(self) : ... | [
"noreply@github.com"
] | noreply@github.com |
3beb6d4f595049104745ef63df90443dbd500e9d | cd4f3bd30bb4e85fc824e21defbb950f42e2f103 | /Item/Couches.py | 9afd515a399502727c11322bc201379024d5c455 | [] | no_license | XelekGakure/ReceipAdministrator | db727a55479b4bf65ae2e4c1530091821c415bb5 | 7338db681fdb210ffe5e456eedfa54b5e91c05a4 | refs/heads/master | 2021-01-08T03:43:56.613347 | 2020-02-20T14:27:32 | 2020-02-20T14:27:32 | 241,902,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from Item import Item
class Couches(Item):
def __init__(self) -> None:
super().__init__(15, "Couches")
| [
"julien.lauret.pro@gmail.com"
] | julien.lauret.pro@gmail.com |
20d0c280fe8495075d08fc145034ff128292e4f0 | 300454fee89ca862fcdef2da93e1034398642291 | /display.py | ce4a7c3909f815f129185b1693ea5233721227c4 | [
"MIT"
] | permissive | mehranjeelani/SR_gan | 238982092e7d8134a20aea54c610a5db5d490878 | abd835ff265054838205869bbdad63d87745b5e0 | refs/heads/master | 2022-12-02T10:27:12.262593 | 2020-08-08T07:24:26 | 2020-08-08T07:24:26 | 275,428,468 | 0 | 0 | MIT | 2020-07-18T00:26:36 | 2020-06-27T18:12:13 | Python | UTF-8 | Python | false | false | 3,584 | py | import argparse
import os
from math import log10
import pandas as pd
import torch.optim as optim
import torch.utils.data
import torchvision.utils as utils
from torch.autograd import Variable
from torch.utils.data import DataLoader
from tqdm import tqdm
import torch.nn as nn
import pytorch_ssim
from data... | [
"mehranjeelani@gmail.com"
] | mehranjeelani@gmail.com |
d7d088644cfa61a4680b4b1b727799c44e89f857 | 67d0f6bfe81bae6aa32d179de1a3a5f8e14b11d1 | /extranet/migrations/0003_student_group.py | e5ecda2cc9d8323692940499a3d8baebeb00440e | [] | no_license | jakubmisiak/wsb-programowanie-obiektowe | 386e1d36679d2c65cdd3f344a8b9a681e34a3b19 | 5eb46b738fb5c2d72f056dd47721cc7fe7909b65 | refs/heads/main | 2023-03-25T20:19:45.577350 | 2020-12-16T21:22:02 | 2020-12-16T21:22:02 | 352,344,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 3.1.4 on 2020-12-04 20:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('extranet', '0002_student'),
]
operations = [
mig... | [
"noreply@github.com"
] | noreply@github.com |
e85424d2b73d54e38f10a2da90d91825bc10d932 | 173b16ed4476557501145e149b0426e2e28aaacb | /doodlebob.py | dcf7d51ace2bea05cd43e00db46b74596d899ad7 | [] | no_license | jlovoi/doodlebob_adventures | 3ebcb61872c1fec90451a962d7f0f1777cb9f326 | d125c26d801a21d685be706fe1c83c43e0e1747e | refs/heads/master | 2021-09-05T21:20:26.437298 | 2018-01-31T03:30:22 | 2018-01-31T03:30:22 | 119,625,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import pygame
class Doodle():
"""settings for doodle placement"""
def __init__(self, settings, screen):
self.screen = screen # need doodle.screen in order to reference/use the original screen
self.settings = settings
self.image = pygame.image.load('images/doodlebob.bmp')
self.rect = self.image.get_rect()
... | [
"jlovoi@Josephs-MacBook-Pro.local"
] | jlovoi@Josephs-MacBook-Pro.local |
87bb2d668f30b7eb6f87e3194c21c258c21263f5 | 9a48c9dd431b1bcae0c338f5075177d4dcf9c71b | /lib/stats.py | 870441dd6c9c0ff71862228a041515c96c241420 | [
"ICU",
"MIT"
] | permissive | ravikt/OpticalFlowToolkit | f683f1932f07f76ab50e4c338f08205cc8aa2eb7 | 410246072c0de7e5e071c30682674a0b6186d74e | refs/heads/master | 2020-06-08T17:19:02.421818 | 2019-06-22T19:22:16 | 2019-06-22T19:22:16 | 193,271,247 | 0 | 0 | MIT | 2019-06-22T19:19:00 | 2019-06-22T19:19:00 | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/python
"""
stats.py
This file generates data statistics
Author : Ruoteng Li
Date 16 Oct 2016
"""
import numpy as np
import os
from PIL import Image
full = 196608
input_dir = '../../../data/FC/data'
output_dir = '../SegNet/CamVid/trainflowannot'
files = os.listdir(output_dir)
files.sort()
stats = [0, 0, 0,... | [
"liruoteng@gmail.com"
] | liruoteng@gmail.com |
3d0dc04dc9e883dc6cccaa6b0935ef9c431fc6cc | adeee7988d712c7670d9743b4b4a0d52d62da9c9 | /nvesta/api/views/v1/__init__.py | 97e76cc77702bb3f22fa758e2475e80167062aca | [] | no_license | MarsStirner/nvesta | 632d040fa45c4d3b6e4a65bf1085935a27bdbd1d | d36d5e4b9403e4692dde276b43962e0430657a76 | refs/heads/master | 2020-12-03T00:33:45.775802 | 2016-08-19T09:28:34 | 2016-08-19T09:28:34 | 96,042,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | # -*- coding: utf-8 -*-
from . import apiutils, dictionary, hs, kladr
__author__ = 'viruzzz-kun'
| [
"m.malkov@bars-open.ru"
] | m.malkov@bars-open.ru |
cab3722b1448cd41cbd498434b184e0056ab54bd | c5c0d18688c5a4b0f2cd9fb73e3591c09af39230 | /agrost/apps.py | 5fc917b860cf40a27117cdf998a62e2220f516f3 | [] | no_license | AmitGamot/Agri-Analytics | 69b1b92172845f7e734d5b2f12bba9731dbf4dcb | c314357bc2c91fe19bc312f9aae6789acc35751a | refs/heads/master | 2023-05-26T23:35:59.138568 | 2021-05-30T05:32:00 | 2021-05-30T05:32:00 | 370,703,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class AgrostConfig(AppConfig):
name = 'agrost'
| [
"amitgamot05@gmail.com"
] | amitgamot05@gmail.com |
c5e98de5ca67d6b8ad2c8ba8c594dfe40d51ba48 | 2f83cebda902ad0ae60f6b4eb6b6f37742671e1d | /tests/test_groio.py | 8a66bb8c99d6d3162040028b58112dfbb0697bc2 | [
"MIT"
] | permissive | jbarnoud/groio | ccb5eb381979927e393e3235fff2fef99148b44f | f387c42c067db1466114e775640440371c381f6d | refs/heads/master | 2021-01-24T00:03:32.627337 | 2015-09-11T13:16:42 | 2015-09-11T13:16:42 | 42,727,769 | 1 | 1 | null | 2015-09-18T14:38:08 | 2015-09-18T14:38:07 | null | UTF-8 | Python | false | false | 6,389 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Unit tests for groio library
"""
from __future__ import division, print_function
import unittest
import os
import sys
import contextlib
import groio
__author__ = "Hubert Santuz & Jonathan Barnoud"
# Path to the directory containing the material for tests
REFDIR = os... | [
"hubert.santuz@gmail.com"
] | hubert.santuz@gmail.com |
b8664ce8a44166d29e61a75e3ca17132ba423261 | 76eb17916555462a9219cb7cfea741b2281ace7b | /testbot/urls.py | 8b8843e97dfa5a7526faad8d82ac7c207b0cbefc | [
"MIT"
] | permissive | luungoc2005/chatbot_test | 6ecabbe507d01418282a883d6ab70eb10130c991 | f8c901c9c14a50727a7b514dda1e569c8180b458 | refs/heads/master | 2021-08-30T13:07:20.132250 | 2017-11-15T03:35:47 | 2017-11-15T03:35:47 | 105,901,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from django.urls import path
from . import views
urlpatterns = [
# ex: /testbot/
path('', views.index, name='index'),
path('examples/', views.examples, name='examples'),
path('test/', views.test, name='test'),
] | [
"luungoc2005@gmail.com"
] | luungoc2005@gmail.com |
5cac8cdc56b579d7b87c1b9d6a558ed496f54f49 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /7QPHWACcDihT3AM6b_6.py | 42998e86441fe6f7df22cf74314d844cef6aab32 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | """
You are given an input array of bigrams, and an array of words.
Write a function that returns `True` if **every single bigram** from this
array can be found at least **once** in an array of words.
### Examples
can_find(["at", "be", "th", "au"], ["beautiful", "the", "hat"]) ➞ True
can_find(["ay", ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cd9d8b0b39e0e09d7940516635e9a94f971f38fc | 7f4886802e83352f37d35509b7775c93c2756105 | /accounts/forms.py | db5c1f9a162a945c87a84c42d50cf009988f7614 | [] | no_license | JihyeKim0923/lion10 | c23a019c3725de2d9f70556993db1ed3e8d6ae2e | 2b76dc9290bec6f4d827a625b2f0b1e92c85ed53 | refs/heads/master | 2020-06-19T02:56:24.746341 | 2019-07-11T15:40:17 | 2019-07-11T15:40:17 | 196,539,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django import forms
class CreateUserForm(UserCreationForm):
email=forms.EmailField(required=True)
nickname=forms.CharField(required=True)
class Meta:
model=User
fields=("username","email... | [
"sos13313@naver.com"
] | sos13313@naver.com |
f0b3710c6bf6eebf47cd69db345fc58831d7d39c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/308/usersdata/295/73012/submittedfiles/ex1.py | d7faface2964c55c9b074fbe6eed286761f20fc3 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
#COMECE A PARTIR DAQUI!
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
f = a*(x**2) + b*x + c
if DH>0
print("X1 e X2")
else:
print("SRR")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8c24505675dcd7f8269bbafc518d90b57b7317eb | 71fb2f3ab9c0111cb491a50ed59988dd5fdc5235 | /login/mixins.py | 03bb7f0ecfe1bef50dd2f3cbf13ab7fed6bd25f6 | [
"BSD-3-Clause"
] | permissive | manezinho/EMSTrack-Django | f69d200a35bb95d0ace8bca34b12a841ca7fca24 | 91723944abcaf3b258ff52c1b8bad1ed532d8f0a | refs/heads/master | 2022-11-15T08:46:07.891927 | 2020-06-03T04:54:19 | 2020-06-03T04:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from mqtt.cache_clear import mqtt_cache_clear
class ClearPermissionCacheMixin:
def save(self, *args, **kwargs):
# save to UserProfile
super().save(*args, **kwargs)
# invalidate permissions cache
mqtt_cache_clear()
def delete(self, *args, **kwargs):
# delete from Us... | [
"mcdeoliveira@earthlink.net"
] | mcdeoliveira@earthlink.net |
f7132cf3933990eadc7239ea00b892c2ab3f8b43 | d5e974c65ed58c5e62e09eb49de0754230b9f68a | /crawler/crawler_test.py | 1543a4c26b9d656acedd6cae00c413f9b28394f4 | [] | no_license | kjyggg-sketch/wordcloud | 224d28922768403f378c9ef220db5cf00bcc16ab | 86137dab4bb9683dc9495d6ad5b76fb4e7bdd836 | refs/heads/master | 2022-12-28T16:15:34.680973 | 2020-10-12T03:57:47 | 2020-10-12T03:57:47 | 276,003,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from crawler import navershopping
from crawler import naverblog
from crawler import bigkinds
#
# bigkinds.crawl(keyword='4차산업',
# startDate='2017-01-01',endDate='2020-04-01', nCrawl=100)
naverblog.crawl(keyword='데이터바우처',
startDate='2020-06-01',
endDate='2020-06-09',
... | [
"jykim@almaden.co.kr"
] | jykim@almaden.co.kr |
b68b80f86534d69c452cc1ff2a9135f02797455f | b10302009a97c00650a99a474bd266145b35c088 | /sqlite_database.py | 64ca554eb2e778d9e14343266271bab6955aa934 | [] | no_license | robynkwamo/RUBi | 2dce8c17d71cf90c0254ec69b8811da17101897d | 2dce8be4795b8be0e45d9e1e209335a4311f24be | refs/heads/master | 2020-07-01T13:48:48.309527 | 2019-08-08T06:29:49 | 2019-08-08T06:29:49 | 201,187,713 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,762 | py | import sqlite3
from data import *
#### create a database file ####
conn = sqlite3.connect('dataHub.db')
####**** create a memory database for testing only ****####
# conn = sqlite3.connect(':memory:')
#### create a cursor to read through the database ####
c = conn.cursor()
#### drop table if exist #... | [
"noreply@github.com"
] | noreply@github.com |
6e1387d82d992492af8d31aff4beea24595cbe8d | e7ae11013d03df592a142f225df345df70451d33 | /update/parser_zasa.py | 39a9d4f857d79d07485f826623b39224fabec6be | [
"MIT"
] | permissive | kuna/iidxranktable | 7028bef5ca410b207e18b45a5ba3f2f6e5d51739 | 7182baaf25b76a8f696e96947d85d4b1d074ba4a | refs/heads/master | 2021-09-15T01:11:03.931539 | 2021-08-04T10:21:26 | 2021-08-04T10:21:26 | 32,804,915 | 8 | 0 | null | 2016-02-12T16:49:49 | 2015-03-24T14:47:43 | Python | UTF-8 | Python | false | false | 1,544 | py | #-*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import urllib
import re
def getGroup(arr, g):
for ele in arr:
if (ele[0] == g):
return ele
# if not, add group
new_group = (g, [])
arr.append( new_group )
return new_group
#
# ==================================================================
#
def pars... | [
"kgdgwn98@gmail.com"
] | kgdgwn98@gmail.com |
efd792efcef452aa13a12e22f971062fd6a4fc81 | 5bba21208673ad4a43ae84bde1ac861b8b857a7e | /conftest.py | f31019dcb2c13e0c9ce272ab9cbd4894e2862358 | [] | no_license | gongzuo666/teach | d9c79a889c77663a1594bd148ead7532a26bd31c | 5ce6839cbe69e8094338de9110885faf28c49cbb | refs/heads/master | 2023-01-06T21:09:01.064643 | 2020-11-03T08:17:26 | 2020-11-03T08:17:27 | 309,554,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : conftest.py
# Author: tian guang yuan
# Time : 2020/6/21 21:54
import pytest
import json
from Lib.ApiLogin import LoginClass
from Lib.ApiLesson import LessonClass
@pytest.fixture(scope='module', autouse=True) # 环境初始化,数据清除
def delete_all_lesson(request):
... | [
"15100978670@163.com"
] | 15100978670@163.com |
2606c17e45322b2f7607fa4df41b209d3ef5fb13 | fb1964b66da85ed65bd7ed348e127bbf4cbaf6d0 | /myCal2/bigCal.py | a17b6236c3b3542f4debae3b83a675c595d05734 | [] | no_license | iimseunghyun/mypython | 2ee157cd3bc5eeae224326660d59c42c400632b2 | 432677a3d24ffd8f4f145c077b0782440e4e8bf4 | refs/heads/master | 2021-03-25T17:45:33.573778 | 2020-03-16T07:25:52 | 2020-03-16T07:25:52 | 247,636,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | class BigNum:
digit =[
"000000...00...00...000000",
"....1....1....1....1....1",
"22222....2222222....22222",
"33333....333333....333333",
"4...44...444444....4....4",
"555555....55555....555555",
"666666....666666...666666",
"77777....7....7....7....7... | [
"lms-426@hanmail.net"
] | lms-426@hanmail.net |
ba56c4441471b121cb245b3dc7df10afed2be875 | c8fb08b75c19d16719c31a5f6aa368372f8d410c | /rotate.py | ea231ad9b865b54baa56c40b8d4ad573f027bb9f | [] | no_license | leohfigueiredo/Image_proc_init | 7efbfefddf37e8673249f6b5355f170f50b31fa7 | f79ce5ae9a284d74775fca5f67267fb79bff3d9f | refs/heads/master | 2022-12-09T14:10:57.682981 | 2020-09-07T23:07:26 | 2020-09-07T23:07:26 | 293,649,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import cv2
import matplotlib.pyplot as plt
# read the image in grayscale
img = cv2.imread("Lenna.png", 0)
rows, cols = img.shape
# rotate for 45 degree counter-clockwise respect to the center of the image
M = cv2.getRotationMatrix2D((cols/2, rows/2), 45, 1)
dst = cv2.warpAffine(img, M, (cols, rows))
# display image
... | [
"leohfigueiredo@gmail.com"
] | leohfigueiredo@gmail.com |
369d942517debc6f30b559509854cb06ba1ef9e5 | 27d0ea837489f68978287e369b60faa57eeb2497 | /examples/wifiz.py | 9044f15d865520323e139912c9568d0c8210365d | [] | no_license | nimdavtanke/wifi-scripts | 9692a4c67d23cc1a7d076d6a41be2bdd6cf4d3ce | 83576bcbf62cdfe020b5c2178f9ab177733de1dc | refs/heads/master | 2016-08-06T15:20:47.206467 | 2015-03-28T08:37:16 | 2015-03-28T08:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,227 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# 802.11 sniffer/wpsig/wpspin/reaver
# Credits go to:
#
# Craig Heffner Tactical Network Solutions
# https://github.com/devttys0/wps
#
# WPSIG [ablanco@coresecurity.com, oss@coresecurity.com]
__author__ = '090h'
__license__ = 'GPL'
from sys import argv, exit
from os im... | [
"oleg.kupreev@gmail.com"
] | oleg.kupreev@gmail.com |
cc339d3a4c500a7f726c3be25016416989effdf5 | 8186368ed5062106a1dca6677b6542ce67e890a9 | /util/get_similar_fromid.py | 087a9797fbff07cd36632e847ed600cc3fcedcee | [] | no_license | sunyuzhao/group_profiles | 993d28cf9cd8867d10f6eb4d19f5c41459c768a5 | c2773551b35c618ad6adbeb1b83ab4c2e57b52ec | refs/heads/master | 2020-04-26T02:19:06.163166 | 2018-04-11T06:33:46 | 2018-04-11T06:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | # -*- coding: utf-8 -*-
import sys
import requests
from urllib2 import urlopen
from urllib import urlencode
import json
reload(sys)
sys.setdefaultencoding("utf-8")
KEY_TO_FROM_ID = 'http://dataplatform.yidian.com:8083/api/other/channel_query/query_all'
FROM_ID_SIMILAR = 'http://10.111.0.129:3303/info'
def get_from... | [
"js982986555@live.com"
] | js982986555@live.com |
051ee8415a1c0bdf5dcf6ba43751abb4505e5215 | 53f415d67dd3304c16d8a3e51d34a2ea02249bc7 | /NIPS Topic Model.py | 50b0b09b8bd4f5d4684fe972a2bfc165621286d9 | [
"MIT"
] | permissive | munsheet/EM | c6b599c4b6dc5c9fc039e3b79aca272cd08ec76c | 921752f79e78a4cb6f9e51166d992a7b14af0366 | refs/heads/master | 2021-01-19T09:13:18.120286 | 2017-04-09T20:47:58 | 2017-04-09T20:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | # import libs
import numpy as np
import matplotlib.pyplot as plt
import sys
from math import log
# read data
file = open('data/docword.nips.txt', 'r')
data = [int(datum) for datum in file.read().split()]
D = data[0]
W = data[1]
NNZ = data[2]
data = data[3:]
# store data as numpy matrix
x = np.zeros((D, W))
for i i... | [
"zpahuja2@illinois.edu"
] | zpahuja2@illinois.edu |
f4b5de28e17ca2e76abd4ecf8563070ac8f934bc | 77a5d39b108d07bf0a1516fa8b3fdee71b4e5bb7 | /utils.py | 767aae0096d20c47ac2828d81d7ad855ff773ec1 | [] | no_license | babypure/One-shot-Image-to-Image-Translation | 94ac810c4d2e0384da5d99055cfa4f1f878abbf0 | d23bcd2db77d415ba34c9c01a0a6fd25f8721023 | refs/heads/master | 2022-01-16T00:22:33.797739 | 2019-07-22T09:05:21 | 2019-07-22T09:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | import tensorflow as tf
from tensorflow.contrib import slim
from scipy import misc
import os, random
import os
import numpy as np
class ImageData:
# define input data info
def __init__(self, img_h=256, img_w=256, channels=3, augment_flag=False, if_style=False):
self.img_h = img_h
self.img_w = img_w
self.channe... | [
"a0928249471@gmail.com"
] | a0928249471@gmail.com |
a53d180b2d0604cbcd6624d4c8f734141673ae1d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/fd662cf898124b46b21e2ca30d117042.py | 6281c95b5842337f10d96aec50200b80c8cd2e1d | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 346 | py | def hey(input):
has_alpha = False
has_num = False
for i in input:
if i.isalpha():
has_alpha = True
elif i.isnumeric():
has_num = True
if not has_alpha and not has_num:
return "Fine. Be that way!"
if input.upper() == input and has_alpha:
return "Whoa, chill out!"
if input[-1] == "?":
return "Su... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
4b8f9da92a1bc4cbf9f59d86ffaba208a6c9a530 | 72b57850bf0ef7480a9a5dfc38e428371631a00d | /amilaunch/amilaunch.py | c5b6dbe8c69b950521d8216dd0a31a9645fce4c2 | [
"Apache-2.0"
] | permissive | 4n6ir/matchmeta | e92ceb005c928708273d3d8d9d538b8a44f110e5 | 6ec4f5094e359f7861e828eab17953704cc4a6e8 | refs/heads/main | 2023-03-18T15:51:55.266987 | 2023-03-13T01:54:49 | 2023-03-13T01:54:49 | 325,153,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,063 | py | import boto3
import json
import logging
import os
import uuid
from boto3.dynamodb.conditions import Key
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def handler(event, context):
cfn_client = boto3.client('cloudformation')
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table(os.... | [
"84751182+jblukach@users.noreply.github.com"
] | 84751182+jblukach@users.noreply.github.com |
b20e6db9ec4eac90633fcf7179a14e44c6974727 | a06918243fe887867d226ae28c341f7cd8728677 | /config/settings.py | bad81065ce1aa45e06c0f457e95279dc5df791d1 | [] | no_license | z1song/django_project | 97cb4b1cd2978ce7af196027e88cc19e8f190dc7 | 16476dfa5b36141206f78cefd0c76fbcda5693f0 | refs/heads/master | 2023-02-02T13:52:13.008003 | 2020-12-20T12:52:12 | 2020-12-20T12:52:12 | 319,083,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"wcn07102@naver.com"
] | wcn07102@naver.com |
9005faf81f6743fc7239e96b95cffe85cde7e46d | 72985bbc5bfc4126340eef54c7446b97e6e8d0fd | /orangejuice/utils/orangemail.py | c5845aef1311be2b759034b8add22c6798fc79f9 | [] | no_license | Larryrun80/OrangePlus | c3d09783b80ac356c6008dcfaa5e695b41be076b | 6079d68d9011195eaae1b95cc38db11d0b3e2c69 | refs/heads/master | 2021-01-21T13:11:13.694958 | 2015-07-31T09:23:04 | 2015-07-31T09:23:04 | 26,968,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | #!/usr/bin/env python
#Filename: orangejuice/utils/orangemailer.py
import configparser
import os
import smtplib
import email.utils
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
class OrangeMail:
''' This Class ... | [
"larryrun80@gmail.com"
] | larryrun80@gmail.com |
7bc495af7d3700fb9a3e374f33be587cd2222125 | 0de8086cea7e23af2a37211f248f4aee129322f3 | /untitled3.py | 932e7547edebdd8176d21c5bbf5ac793b4e8ac17 | [] | no_license | xinbotian/Huffman-encoding | 0ca38b6fd8e2953468220947507dc15439b8fb90 | 435356ca1f550e7b6bff6a172ada6f11d82c11c4 | refs/heads/master | 2021-05-07T20:02:18.474070 | 2017-10-31T03:37:17 | 2017-10-31T03:37:17 | 108,940,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | def avg_length(tree, freq_dict):
""" Return the number of bits per symbol required to compress text
made of the symbols and frequencies in freq_dict, using the Huffman tree.
@param HuffmanNode tree: a Huffman tree rooted at node 'tree'
@param dict(int,int) freq_dict: frequency dictionary
@rtype: fl... | [
"xinbo.tian@mail.utoronto.ca"
] | xinbo.tian@mail.utoronto.ca |
005f638d6130c9043c19036ceb805b865dcb3fe6 | 8d96dd3abef64eebdcfdd1b6cf508275d63e8caf | /serverTest.py | b3807afca1e09a826227a14b3bb68cc332aabbae | [] | no_license | arcosin/ANP_ProcNode | dcd7b04435827f66dc985557b8e3510f7c412b6b | ca7af8677bc5a4787b8df39824b556fb19a6387d | refs/heads/master | 2023-04-14T14:26:41.835884 | 2021-04-20T06:08:04 | 2021-04-20T06:08:04 | 339,306,146 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import client , server
def main():
print("start")
portno = 61619
name = "Naruto.jpg"
id = "Server"
s1 = server.Server( portno , name , id)
s1.createProxy()
s1.start()
if __name__ == '__main__':
main() | [
"VardhanAditya123@github.com"
] | VardhanAditya123@github.com |
15e51efc95ece00ddf71f40f02725436fbf5c154 | f29d67589d29844abd82176e2ba9e4514fde40f0 | /0109_light/src/RaspberryPI/light.py | 0a3ecc44d32e5b402dc6e8549d35e0e6e47d1b36 | [] | no_license | FaBoPlatform/FaBo | b92315e61226f020d1e6409387fc35fa3b255eb5 | f0a26d2747e5dbf67cb1311c6d9ac06bbc981a64 | refs/heads/master | 2023-09-01T06:41:43.500410 | 2023-08-30T08:47:49 | 2023-08-30T08:47:49 | 28,205,523 | 33 | 6 | null | 2021-02-22T06:16:08 | 2014-12-18T23:06:39 | Objective-C | UTF-8 | Python | false | false | 1,124 | py | #!/usr/bin/env python
# coding: utf-8
#
# FaBo Brick Sample
#
# #109 Light Brick
#
# A0コネクタにLightを接続して、GPIO4コネクタに接続したLED Brickの明るさ調節に使用しています。
import RPi.GPIO as GPIO
import spidev
import time
import sys
# A0コネクタにLightを接続
LIGHTPIN = 0
# GPIO4コネクタにLEDを接続
LEDPIN = 4
# GPIOポートを設定
GPIO.setwarnings(False)
GPIO.setmode(... | [
"hideki.yamauchi@gmail.com"
] | hideki.yamauchi@gmail.com |
ed729caf1ecd7de60eb6f11108f66492b349a339 | b9d4045527d5ac750bc9d1ebe4dbfd50320a66fc | /mysite/settings.py | 156b2bf7c724934ec03a360f984c649044f087b0 | [] | no_license | ninalittorin/my-first-blog | 18eaffeb5258ae8b9db20205954725c83a3f9ad0 | e719c18310c0b975ab433e5608aca07c85cfa54c | refs/heads/master | 2020-04-17T11:20:47.953704 | 2019-01-19T14:13:45 | 2019-01-19T14:13:45 | 166,536,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"ninalittorin@gmail.com"
] | ninalittorin@gmail.com |
0e9d848536ac21073907a772967755033d617ca8 | 65c5ca0db75f56118de52494bbcce68a6fea0f66 | /hw07_CuteInterpreter.py | a058ef6b1cffa69f05c8402b0598f852b2b17e69 | [] | no_license | ohheebin/PL_24-Cute_Interperter | 69115a7e1313e02262c85c42f53cd67c4aaff5aa | b14174f0eaf448fa730cac0fc6eaaf63566698bc | refs/heads/master | 2020-05-29T11:42:01.758177 | 2016-05-29T15:51:08 | 2016-05-29T15:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,158 | py | # -*- coding: utf-8 -*-
from string import letters, digits
class CuteType:
INT=1
ID=4
MINUS=2
PLUS=3
L_PAREN=5
R_PAREN=6
TRUE=8
FALSE=9
TIMES=10
DIV=11
LT=12
GT=13
EQ=14
APOSTROPHE=15
DEFINE=20
LAMBDA=21
COND=22
QUOTE=23
... | [
"geniusry@naver.com"
] | geniusry@naver.com |
cd47f62822b1151340a50de2d7fbd3314f87f456 | 23b7798eba392235ef0adc62869e4e27736f7749 | /src/restaurant_researcher/wsgi.py | 4210d0ac5fc17e03c973ba747e898de27a634be0 | [] | no_license | kathryn0908/restaurant_api | f802072077c2c4e7b81dba5b95482888d5c1cbe9 | 215e3112e9b47577b440e5f1e3d28423cad177f6 | refs/heads/master | 2022-11-30T02:01:30.809491 | 2020-08-05T16:36:15 | 2020-08-05T16:36:15 | 274,771,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for restaurant_researcher project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"kathrynlael@gmail.com"
] | kathrynlael@gmail.com |
4a5c5376aa7ce609fdb64cecfb2774f44dbc8725 | cf0480eb13906bf6e2c46bfe09b864ee9bbf6776 | /Functions/Calc/Calc_1.py | 3b600966f2c62976f2522ee032f37f2d17a06b1c | [] | no_license | ravi4all/Python_JuneRegular_Evening | f7afb665541b88a9cb6ce89a488a32120f63dd6b | ad6e17c4acdcb2c669ba0508b12aeca8bdab8976 | refs/heads/master | 2020-03-20T21:20:36.763561 | 2018-07-06T11:26:52 | 2018-07-06T11:26:52 | 137,736,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | print("""
1. Add
2. Sub
3. Mul
4. Div
""")
user_choice = input("Enter your choice : ")
num_1 = int(input("Enter first number : "))
num_2 = int(input("Enter second number : "))
if user_choice == "1":
result = num_1 + num_2
print("Sum is",result)
elif user_choice == "2":
result = num_1 - nu... | [
"noreply@github.com"
] | noreply@github.com |
abc693b61aa74343a53bf216a81b234375a2d68f | a50b7b55ce92e4ad9e6020184dfd1a90319374ab | /src/veggies/migrations/0010_remove_food_to_substitute_show_on_view.py | 6469e9c072ec08748a1f59fe63d3078472adbd17 | [] | no_license | AdamGinna/DockerVeggies | bdb48af93b06a67a8a86a478585dedd80e236f5c | c43bd382775b46e566e7296b7a2f541453539bfd | refs/heads/master | 2023-04-24T20:22:38.618557 | 2021-05-03T17:42:51 | 2021-05-03T17:42:51 | 361,412,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Generated by Django 2.2.7 on 2020-04-01 11:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('veggies', '0009_auto_20200401_1107'),
]
operations = [
migrations.RemoveField(
model_name='food_to_substitute',
name='show_o... | [
"adam.ginna.work@gmail.com"
] | adam.ginna.work@gmail.com |
2c80f7d7ae8727f7b54b96f32435206ead344557 | 99a018f99af4ebff2e1ac6029ad6307ffa558e37 | /src/powergrader/processors/base.py | 7f34578f72617911f71784dd8ff7c1fa1e6da0ef | [] | no_license | kuboschek/powergrader | e558f7fdb9b55624d25076bec388359e47aa073c | eef6d813fa064b8a3921fea5047d71c5f1891475 | refs/heads/master | 2021-05-03T07:53:58.017849 | 2016-05-26T18:35:07 | 2016-05-26T18:35:07 | 53,963,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python
import datetime
from helpers import get_ex_dir
class BaseProcessor(object):
"""Do nothing processor."""
def __init__(self, exname, filenames, testcases):
self.exname = exname
self.ex_dir = get_ex_dir(exname)
self.filenames = filenames
self.testcases = test... | [
"x32000@gmail.com"
] | x32000@gmail.com |
3d7d70c65db095cbce34a2025152ea993cae07f3 | c9ab887d14e6a9a003bd7033a2c2af08c4a6b1d6 | /hvenv/Scripts/django-admin.py | 8fd4a15b766d207c1e5311cbc5444d177472d61a | [] | no_license | haezoo/my-first-blog | 2c74991b157099e4eb7a22cc8b4eb27e61c6019b | deebff8ecdcd883db4669c2080b941584f607830 | refs/heads/master | 2020-04-10T10:26:49.484791 | 2018-12-08T21:44:38 | 2018-12-08T21:44:38 | 160,966,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | #!c:\djangogirls\hvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"heatherltoll@gmail"
] | heatherltoll@gmail |
df6cbd2525ccf0b8c651166827b6e67a7a5d0630 | f30a1dcb8a4134aed5f1635799ccceedb590d77a | /kmeans_knn_ratingPrediction_moviePrediction_analysis_000/misc/build_num_ratings_per_movie.py | 58dc8d490857c41df3ce193969d62f9484281234 | [] | no_license | Willian-Girao/Clustering-Recommendation-Netflix | aecc951106d3dfc827b24ca6f6182a19a13510c4 | f4655c93803d9b4b3f7a337fc54cc4c6980b6563 | refs/heads/master | 2020-06-10T03:38:31.222618 | 2019-09-22T17:56:39 | 2019-09-22T17:56:39 | 193,571,046 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python
import os
import csv
# Getting all files within target directory.
movies_files = os.listdir('training_set/')
# opening user file
final_file = open("movies_rateCount.txt","a+")
# List with rating to be sorted
ratings_array = []
# Looping through each file found.
for movie_file in movies_fil... | [
"williansoaresgirao@gmail.com"
] | williansoaresgirao@gmail.com |
f6e85541c1404ada5258f7f24c2b9c8480cd87f4 | ccf57c5b03b602ee0a2f13a9299958d9d5a30e91 | /根据股票代码获取当前数据.py | 44fe0ab70287253b330552b111ff3a7ab42e5a3f | [] | no_license | mrwtx1618/py_all | e4e4c0214223d44ff4d5499311b87ae5cfe33dc9 | fa3955382229f91c739bda2d57d0b42b885f9c9b | refs/heads/master | 2021-08-28T14:08:27.578827 | 2017-12-12T12:18:24 | 2017-12-12T12:18:24 | 113,982,790 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 2,228 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import re
import datetime
def getStockInfo(url):
"""根据url获取信息"""
stockList = []
request = urllib2.Request(url)
response = urllib2.urlopen(request)
stockStr = response.read()
stockList = stockStr.split(',')
return ... | [
"13110180012@fudan.edu.cn"
] | 13110180012@fudan.edu.cn |
b73c3fb36f61b44c607e0a663ff232dd7a06ce78 | 3cab75b3c7065c4c6c021ceb41564bfa941b53e8 | /lists/tests.py | a940a569e58435a2481d62f0a7facc1ade5195c2 | [
"MIT"
] | permissive | linzeyang/testing_goat | 1809020791946e4b39d68ecda062612144309afb | 9e3ff82d2d24383be4dd2c693ac5a962f503c2c5 | refs/heads/master | 2021-01-23T16:35:37.068794 | 2014-02-11T14:42:43 | 2014-02-11T14:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | from django.core.urlresolvers import resolve
from django.test import TestCase
from django.http import HttpRequest
from django.template.loader import render_to_string
from lists.models import Item, List
from lists.views import home_page
# Create your tests here.
class ListAndItemModelsTest(TestCase):
def test... | [
"zeyanglin2013@gmail.com"
] | zeyanglin2013@gmail.com |
030567038e4e134b0730539fcc924b6029a5698b | c8675ec0ac3e7036990aa255c1f82e476e9bed7b | /fineprune/mid_datasetgrad_optim.py | 946514ad47b11ff6105e82f704315e4429c97e51 | [] | no_license | ziqi-zhang/Renofeation | c74bfc040be6c131d250cf8a2bb2ab7c09e69ad0 | a2f9ad692799692d3db07fca30d25c3c05923449 | refs/heads/master | 2023-07-27T18:51:48.093837 | 2021-09-02T02:56:07 | 2021-09-02T02:56:07 | 269,360,779 | 0 | 0 | null | 2020-06-04T13:01:00 | 2020-06-04T13:00:59 | null | UTF-8 | Python | false | false | 4,258 | py | import os
import os.path as osp
import sys
import time
import argparse
from pdb import set_trace as st
import json
import random
from functools import partial
from operator import itemgetter
from heapq import nsmallest
import copy
import torch
import numpy as np
import torchvision
import torch.nn as nn
import torch.nn... | [
"ziqi_zhang@pku.edu.cn"
] | ziqi_zhang@pku.edu.cn |
d2f30985dff53befafcdbff29343246a2e7fff4c | a78c8cb4a3c41f39edbfd150467ccc4b837b1696 | /python_crash_course/chapter_3_lists/bicycles.py | 0ed3e0a37d0b866b3575a16481a4b0bb0f577812 | [] | no_license | shayroy/ChamplainVR | f1ed509edbfb4a735092dd8960d5c6860ea8055b | 3d9d8318024fbfb25a8bbdb5315072fe148c5311 | refs/heads/master | 2020-04-03T16:18:46.434730 | 2019-03-08T23:17:15 | 2019-03-08T23:17:15 | 155,399,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | bicycles = ['trek', 'cannondale', 'redline', 'specialized']
print(bicycles)
print(bicycles[0])
print(bicycles[0].title())
print(bicycles[1])
print(bicycles[3])
print(bicycles[-1])
message = "My first bicycle was a " + bicycles[0].title() + "."
print(message) | [
"2shayroy@gmail.com"
] | 2shayroy@gmail.com |
f57ba3f42f0fa8e30c8a1dd086d3ee1c1ee35d4e | a68883f6cdb5e607d89b7afa94e68023c132055c | /tests/test_time_off.py | bbd96fbd8ef4da14a073179a345c1cb7333281fe | [
"MIT"
] | permissive | JosephvB-JBA/PyBambooHR | 2e62e246ffe4eaa85e824aa6a232f502e3395747 | e3c83f9bfcd8f6703e220462ea1aa06703632441 | refs/heads/master | 2020-11-28T05:22:33.919602 | 2019-12-24T09:44:56 | 2019-12-24T09:44:56 | 229,715,301 | 0 | 0 | MIT | 2019-12-24T09:44:57 | 2019-12-23T09:00:37 | null | UTF-8 | Python | false | false | 6,169 | py | """Unittests for time off api
"""
import httpretty
import os
import sys
import unittest
from json import dumps
from requests import HTTPError
# Force parent directory onto path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from PyBambooHR import PyBambooHR
class test_time_off(unit... | [
"joevanbo@pm.me"
] | joevanbo@pm.me |
a7db7a35a129dddef9b0cb830716ebca4fed85be | 42366c1e36038bf879652b4f4c45c6105209a738 | /snakemake/wrapper.py | 52b1c95f9256a8db894ea389c38ad40fd4bec165 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | endrebak/snakemake_dev | e22989e40d475250a1f6e44421290b75dcaf6651 | 846cad1273de7cf43a25fc210174ce43dfd45a8a | refs/heads/master | 2021-01-13T16:01:30.593695 | 2016-12-14T08:21:22 | 2016-12-14T08:21:22 | 76,775,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | __author__ = "Johannes Köster"
__copyright__ = "Copyright 2016, Johannes Köster"
__email__ = "koester@jimmy.harvard.edu"
__license__ = "MIT"
import os
import posixpath
from snakemake.script import script
def is_script(path):
return path.endswith("wrapper.py") or path.endswith("wrapper.R")
def get_path(path, ... | [
"johannes.koester@tu-dortmund.de"
] | johannes.koester@tu-dortmund.de |
5d0ed9ab08f7f7ae03317f6eb8e55318594ebfa4 | d4d6576e67ba1a935e28062835e56636fb7b6bfc | /priorgen/pca_utils.py | 05e43c552c5879146cf3f036c106616fa493ebaa | [
"MIT"
] | permissive | joshjchayes/PriorGen | caf80f49b4429345fd688c55d1eadd0a25df7cf8 | 228be0b06dca29ad2ad33ae216f494eaead6161f | refs/heads/master | 2023-05-26T00:51:14.875596 | 2021-06-07T14:58:26 | 2021-06-07T14:58:26 | 211,059,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,487 | py | '''
pca_utils.py
Module containing functions to run PCAs, and generate diagnostic plots
'''
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import numpy as np
def run_PCA(parameters, observables, n_components):
'''
Runs a principal component analysis to reduce dimensionality of
o... | [
"joshjchayes@gmail.com"
] | joshjchayes@gmail.com |
ccd9a83891610d364cd5354c03ff16bc5b6dcaf1 | 87367fe2ee0203a88fb911e476818d7b17ec932f | /shop/migrations/0010_auto_20200322_0621.py | a03c0f2483ce917a205d6d0cdde9ff5c9c20b983 | [] | no_license | brianmurim9/ecommerce | 08808d11c785d91b8afeed19dbf7ee9af9411fa3 | 7dbc9ba5d80771e799f55fb2ced51cd0d2c37d1f | refs/heads/main | 2023-02-22T20:55:31.714612 | 2021-01-16T06:13:33 | 2021-01-16T06:13:33 | 330,094,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.0.4 on 2020-03-22 13:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('shop', '0009_auto_202003... | [
"noreply@github.com"
] | noreply@github.com |
f3ed0316d367ac2d8180e59a9ef4e265df2eb72b | d78dfc5089717fc242bbd7097f507d811abb4260 | /French/plugin.video.fr.filmsdefrance/streamcomplet_common.py | 01bb111cb943894548d6f78bf38f215525777056 | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 69,201 | py | ### ############################################################################################################
### #
### # Author: # The Highway
### # Description: # Common File
### #
### ############################################################################################################
### ###... | [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
ca2fa5ad4997c54d0f3874f400a20a3fbfbdaf02 | ccbe341f4bc5f46ce31968a1d764a87f6f6803a8 | /pytheas/__init__.py | 49bf2edb9ecbfe446b859aa5cdeb805ed037f51e | [
"MIT"
] | permissive | skytreader/pytheas | 8ce1e23965c61aff5eb48a301e9a8e04d3c70a55 | c41cf985827734a1a9be1e61a93fca2a7b14c3d9 | refs/heads/master | 2023-04-09T01:54:24.423483 | 2014-06-03T04:04:35 | 2014-06-03T04:04:35 | 17,976,330 | 0 | 0 | null | 2023-03-31T14:38:58 | 2014-03-21T10:30:38 | Python | UTF-8 | Python | false | false | 156 | py | # Copied from https://github.com/andymccurdy/redis-py/blob/master/redis/__init__.py
__version__ = "0.1.2"
VERSION = tuple(map(int, __version__.split(".")))
| [
"chadestioco@gmail.com"
] | chadestioco@gmail.com |
9bad8400dbafa3c00fcaf4ba4085dc262f62207b | 7b3743f052da9a74808b7d2145418ce5c3e1a477 | /v2/api.thewatcher.io/api/docs/private.py | 5f68768247fe15338ab8d818e23743055fb70ded | [
"MIT"
] | permissive | quebecsti/kdm-manager | 5547cbf8928d485c6449650dc77805877a67ee37 | a5fcda27d04135429e43a21ac655e6f6acc7768e | refs/heads/master | 2020-11-26T19:22:53.197651 | 2019-10-22T20:53:40 | 2019-10-22T20:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,331 | py | authorization_token_management = {
"authorization_check": {
"name": "/authorization/check",
"desc": """\
<p><b>GET</b> or <b>POST</b> to this endpoint to determine if your Authorization
header is still valid or if it has expired.</p>""",
},
"authorization_refresh": {
"name": "/author... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
1aae5ab705875a61c1ac256f801c34bf867ac8a3 | 35fc464a495aef8ea4f80e85034c74f4f6dd6d60 | /Flask-3/wwwroot/data_model/user.py | d4987682e85410ed2fad54c7d81501e8b94b3a6c | [
"BSD-3-Clause"
] | permissive | yuu045-ran/Azure-Linux-Samples | be64b3ccafd316685147f985dae36bee4de816e4 | 29897b1ad6902e97d069e067d00b5938eced4740 | refs/heads/master | 2022-05-24T21:27:25.809023 | 2020-05-03T13:59:34 | 2020-05-03T13:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,421 | py | #coding=utf-8
from flask import Flask, jsonify, request, render_template,session
import pymongo
import pandas as pd
import datetime
import time
import numpy as np
# Model
from data_model.manager import *
from data_model.channel import *
from data_model.webhook import *
from data_model.user import *
from data_model.ta... | [
"39946188+shengdamao@users.noreply.github.com"
] | 39946188+shengdamao@users.noreply.github.com |
11dab269946bcb383552e513d1c5b90dd10c2af2 | 2a56d481855e3621f2c7ffce455bb76f79e6cbea | /bin/mergeExport.py | d0a339644dddbd1941fbce1dfa3a5501a2f8be1c | [
"BSD-3-Clause"
] | permissive | SkyTruth/CrowdProjects | 26ad6bec809f068f8fca032f22e1a8d6982b21b7 | eede4c97ca5195d8ad39ce353c962f588e52c6ad | refs/heads/master | 2021-01-23T06:29:08.526153 | 2016-12-20T17:45:58 | 2016-12-20T17:45:58 | 18,370,679 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,431 | py | #!/usr/bin/env python
# This document is part of CrowdTools
# https://github.com/SkyTruth/CrowdTools
# =================================================================================== #
#
# New BSD License
#
# Copyright (c) 2014, SkyTruth, Kevin D. Wurster
# All rights reserved.
#
# Redistribution and use in sou... | [
"kevin@skytruth.org"
] | kevin@skytruth.org |
4f9ca14ac345b49bbb0027d21927469e5a86964b | 9173442035ac395d841b8e6a0de00b790adec9f1 | /python/indexing.py | f72e3f84d409affc75e97715b2a3614d48b73252 | [] | no_license | rana811/python | ffcf356adb9424be1232502a144ffda614c444a7 | ac3b0a1f8af3c948d34d07031f707914792612e6 | refs/heads/master | 2022-07-17T01:04:10.670155 | 2020-05-10T14:57:44 | 2020-05-10T14:57:44 | 262,807,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # Get [1, 4, 5] from [[1, 2], [3, 4], [5, 6]] using indexing
import numpy as np
def extract(a_list):
return a_list[0][0],a_list[1][1],a_list[2,0]
arraylist = np.array([[1,2],[3,4],[5,6]])
print(extract(arraylist)) | [
"noreply@github.com"
] | noreply@github.com |
ca15e754c14f4db76db15fe9fb24de4b5692d004 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4459099.3.spec | f64a808352387d76005b2abdd7351b26ddfed579 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,321 | spec | {
"id": "mgm4459099.3",
"metadata": {
"mgm4459099.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
6f590f2c761cd1220e5ca1df8b95fc08618bfc20 | 85dfec15ff7b358efdae421809e95f4d8d356c23 | /lab5_1/ppo/migrations/0001_initial.py | 1d4f47c0dbea9687294836997563433b6a6f2b7c | [] | no_license | Abenov222Sanjar/django | cc874f00d7dc9b6e438a5acaf5d0e2e11e4f17c8 | b40040a0dad8c6bd507fe29c54160b30ec41b85d | refs/heads/master | 2023-03-23T16:25:39.227069 | 2021-03-20T08:53:29 | 2021-03-20T08:53:29 | 349,625,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # Generated by Django 3.1.7 on 2021-03-20 08:24
from django.db import migrations, models
import ppo.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
... | [
"d.sanjjjar@gmail.com"
] | d.sanjjjar@gmail.com |
589622c55a74eca1fc73975a0a765d941516878c | 0531120d1b6130633a6e0f95299b58867526174d | /file5_1.py | 84e22f6199f6883446ed88aa523a3760c19b9c3c | [] | no_license | wohao/cookbook | d5a5c6dce954dcf9b5f46389755362c8ae37cf32 | e7da30d4db804eed7cb752cc078239a9c4bcff06 | refs/heads/master | 2020-12-30T16:15:16.743739 | 2017-05-11T11:25:40 | 2017-05-11T11:25:40 | 90,970,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | with open('somefile.txt','wt') as f:
f.write('I Love You')
f = open('somefile.txt','rt')
data = f.read()
f.close()
with open('D:\python\cookbook\somefile.txt','wt') as f:
print('Hello world!',file=f)
print('ACME',50,91.5)
print('ACME',50,91.5, sep='')
print('ACME',50,91.5, sep=',')
print('ACME',50,91.5, sep='',en... | [
"2285687708@qq.com"
] | 2285687708@qq.com |
299d305fdf5120d7ae4877948db9c5066b969a08 | 74a8a159eacf9ae58ad9fe18d9ef2ce7e07f7abb | /agora/board/migrations/0002_auto_20150205_0230.py | a66dd58fe30964a8edfd0fa707985c61a31c1495 | [] | no_license | anderoonies/Agora | 74893317be2f0865f1c8667bfb07f7e6b8a0a7de | 2fdcd750f6b374d22fe223cb7908e35c2dcde2c6 | refs/heads/master | 2021-01-16T19:44:20.862465 | 2015-02-15T21:29:14 | 2015-02-15T21:29:14 | 30,504,649 | 0 | 0 | null | 2015-02-08T20:30:28 | 2015-02-08T20:30:27 | null | UTF-8 | Python | false | false | 605 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('board', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
name='score',
... | [
"andrewbayer2016@u.northwestern.edu"
] | andrewbayer2016@u.northwestern.edu |
b3f5d0c910c8f9d43e879694c07e0dc8cb5a7f18 | 75bc35acfc11f9d142dfaf66d276131538e6812d | /__main__.py | 241fc68d6cce1db77c061bcecd775704163c485f | [] | no_license | arunreddy00/AmazonLinux-Hardeningscript | 6f60d4ba52cc856124e0ca145b2cff0ce72d8fa7 | 1037b3301f11e9107555142c24cd6bb5f99fd827 | refs/heads/main | 2023-04-18T10:20:23.056121 | 2021-05-09T15:19:03 | 2021-05-09T15:19:03 | 365,781,821 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,331 | py | """Bootstrap script for Amazon Linux to comply CIS Amazon Linux Benchmark v2.0.0"""
import argparse
import logging
import os
import re
from subprocess import CalledProcessError
import pkg_resources
from util import exec_shell, set_backup_enabled, File, Package, Service, PropertyFile
def get_string_asset(path):
... | [
"noreply@github.com"
] | noreply@github.com |
4057486e70b78cb4a5a51e88d6e9c8052b98fd00 | 54bc49797f827d51382efeb57945ba8b48d495e7 | /core/migrations/0021_coupon_amount.py | ff8490ec168d799d126f33f823edd6173f0b1d0a | [] | no_license | samarth1771/ecommerce | 3b9fa8662a29c6d44102738d748218aa72f32f0c | 94b5e72829f7901dc3e13b61a08da52f2afb40fc | refs/heads/master | 2022-12-24T01:23:57.720059 | 2020-09-25T05:12:07 | 2020-09-25T05:12:07 | 298,473,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.2.3 on 2020-09-24 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0020_order_coupon'),
]
operations = [
migrations.AddField(
model_name='coupon',
name='amount',
f... | [
"samarthpatel71@gmail.com"
] | samarthpatel71@gmail.com |
4b32abb8482edd3df05ec1cdbb77ec59595f0fc4 | 917763caec8661aaa223a9928e844c504e9175e5 | /humanhash.py | 90e01e699035416eb07e11c757bb64e8ea1ccf9e | [] | no_license | shabda/humanhash-coffeescript | c17f25b05ed3299a658a66847138fcedd95dec75 | 628d6b62964d707d85d7c1eb4718af144706b8e0 | refs/heads/master | 2016-08-03T03:11:23.270378 | 2011-12-13T05:51:44 | 2011-12-13T05:51:44 | 2,970,011 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | """
humanhash: Human-readable representations of digests.
The simplest ways to use this module are the :func:`humanize` and :func:`uuid`
functions. For tighter control over the output, see :class:`HumanHasher`.
"""
import operator
import uuid as uuidlib
DEFAULT_WORDLIST = (
'ack', 'alabama', 'alanine', 'alaska'... | [
"shabda@agiliq.com"
] | shabda@agiliq.com |
8a21fce1e50a4aee7f479ffad6660a64753cc79c | 5df0d9ac4ffcce7465de0037da26c76c95b4c0d0 | /ualf/ualf.py | c6e194e229d3c8819f480a3c537e6060e2361938 | [
"MIT"
] | permissive | auwalsoe/ualf_parser | f3d4acf805c58271a389e300ff891deb3cbb5cf7 | b7e6c649b8eb0a9766f44837cb34236625194e36 | refs/heads/master | 2020-03-19T05:33:56.016790 | 2020-02-15T17:31:26 | 2020-02-15T17:31:26 | 135,944,135 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | '''UALF data parsing class'''
class Ualf:
def __init__(self, ualf_coordinates):
self.read_ualf(ualf_coordinates)
def read_ualf(self, ualf_coordinates):
ualf_coordinates = list(ualf_coordinates)
self.version = int(ualf_coordinates[0])
self.year = int(''.join(ualf_coordinates[2:... | [
"auwalsoe@gmail.com"
] | auwalsoe@gmail.com |
cc0c3f49a86cd19e0eac92eb6d9d45901dc5447e | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/enums/common_funds_sources.py | b752318a7a87e9b2ab9fbcb9e237f428646c1ce1 | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 2,552 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Dict
from sims.funds import FundsSource... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
f2f46024e6515ff95aa1fe7addebe8370c56a73e | 85fd399e0cf9997028e5d30aed85cf20cf476cb5 | /mlrun/api/migrations/versions/d781f58f607f_tag_object_name_string.py | ad89d4e7c0c1c9318e5a19460cccad34d34aa342 | [
"Apache-2.0"
] | permissive | omarirfa/mlrun | deb9c63ec8bb50f80e3e77d042fde1ddb52d5284 | 6336baf610bc67997c60be4ad7c32b4ea7d94d49 | refs/heads/master | 2023-08-13T19:14:43.362103 | 2021-09-22T09:59:58 | 2021-09-22T09:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | """tag object name string
Revision ID: d781f58f607f
Revises: e1dd5983c06b
Create Date: 2021-07-29 16:06:45.555323
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "d781f58f607f"
down_revision = "deac06871ace"
branch_labels = None
depends_on = None
def upgrade()... | [
"noreply@github.com"
] | noreply@github.com |
6f0d14d9a72dd011c196fe8d61e322a505a18730 | 6f795b6e7d92678f66ace97ec48a0790467347c3 | /Primitive.py | 4d03494830b16735894f93fffc8216530ddd9859 | [] | no_license | zshimanchik/primitive-reflexes | 7164be7396d21fdbdf822dafe044aa670385303d | bcabd5160b4a8a1c9e9e072e1d83f6ba29330ef7 | refs/heads/master | 2020-04-05T22:48:06.898392 | 2015-08-16T13:07:12 | 2015-08-16T13:07:12 | 37,374,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | __author__ = 'zshimanchik'
import math
from NeuralNetwork.NeuralNetwork import NeuralNetwork
class Primitive():
DEBUG = True
MIN_BRAIN_STIMULATION = 0.04
MAX_BRAIN_STIMULATION = 0.1
BRAIN_STIMULATION_FILTER_THRESHOLD = 0.3
RANDOM_VALUE_FOR_ANSWER = 0.1
def __init__(self):
self.x = 89... | [
"zahar.shamanchik@gmail.com"
] | zahar.shamanchik@gmail.com |
43eaf19862f81f19ed856901ec0e25148584096e | 44471e1b64165c760c27cb934ff8800eb0e64ebd | /profile_test.py | aab9415d74a439c41b377cece1e796b3e5fdcd1d | [
"MIT"
] | permissive | mlvc-lab/ILKP | 93db8ada28d411a4cf4a9ebdb25b65a9da0cd6ec | d9c05223f742167c8dd6543a3276fde08b7986ff | refs/heads/master | 2023-07-23T22:18:41.678177 | 2021-09-05T05:14:06 | 2021-09-05T05:14:06 | 403,219,642 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,461 | py | import time
import pathlib
from os.path import isfile
import numpy as np
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torch.autograd.profiler as profiler
import models
import config
from utils import *
from data import DataLoader
fro... | [
"ho7719@gmail.com"
] | ho7719@gmail.com |
7fd63d245dbd1ed1b3c96be002435fe20c90baf8 | 44bbfe1c9a7f16e632cdd27c2de058033b33ea6d | /mayan/apps/authentication/links.py | dc7385bd9ff9101a3656851017b7786194679579 | [
"Apache-2.0"
] | permissive | lxny2004/open-paperless | 34025c3e8ac7b4236b0d8fc5ca27fc11d50869bc | a8b45f8f0ee5d7a1b9afca5291c6bfaae3db8280 | refs/heads/master | 2020-04-27T04:46:25.992405 | 2019-03-06T03:30:15 | 2019-03-06T03:30:15 | 174,064,366 | 0 | 0 | NOASSERTION | 2019-03-06T03:29:20 | 2019-03-06T03:29:20 | null | UTF-8 | Python | false | false | 478 | py | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from navigation import Link
def has_usable_password(context):
return context['request'].user.has_usable_password
link_logout = Link(
icon='fa fa-sign-out', text=_('Logout'), view='authentication:logout_view'
)
... | [
"littlezhoubear@gmail.com"
] | littlezhoubear@gmail.com |
1cf00f3de1525c671dd6fd82eb8540bb1d901ff0 | 1efdff241b82221e633bf93d1745f6c852df287b | /attendance/attendance/webscraping.py | 9d35a78e9df37466025f2aa177b51ce7b3f51813 | [] | no_license | dhruv-kabariya/attend | 6b84821e9889dfd366a4d14fc104ffb50bcce1aa | fc4fb8565146ceb1bf86c81b4ea7afb2a74f41f8 | refs/heads/master | 2020-08-12T13:34:49.041054 | 2020-02-29T13:13:53 | 2020-02-29T13:13:53 | 214,776,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from bs4 import BeautifulSoup as soup
from urllib.request import urlopen, Request
import time
search = input()
mu_url = "https://www.amazon.in/s?k="+search+"&ref=nb_sb_noss"
req = Request(mu_url)
page_code = urlopen(mu_url)
code = page_code.read()
page_code.close()
page_soup = soup(code, 'html.parser')
divs = page_... | [
"dhruvkabariya1@gmail.com"
] | dhruvkabariya1@gmail.com |
890373e747027f7865371d1230e88bca75d7b9be | f0e3ba0707d8db85afa50701b739b570259236ca | /ppts/apps.py | 083527dbb919b18619df6ea1b4dbb874ebc2d59c | [
"MIT"
] | permissive | Tubbz-alt/planningportal | bb3ff20ea3a730ccc2ca2ebef9e76198d5df8869 | ef8ed9e604c2ff7fb88836247aaa8eba0cfa235f | refs/heads/master | 2022-12-24T14:42:18.925112 | 2019-07-14T22:26:15 | 2019-07-14T22:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class PptsConfig(AppConfig):
name = 'ppts'
| [
"steven.buss@gmail.com"
] | steven.buss@gmail.com |
97653dade3c09365113a5b85661c09ce7269226c | 6316b0092623c3f9fc8a0077f8d791bf8fb661e3 | /kubernetes/instance/deployment/bin/voltboot | 548695924be97358360777d0f5c6699263d53de1 | [] | no_license | litesoft-go/MockVoltDBcluster | 2d0d0f64afeb3cfc8ef61e714ff42b4c777f199d | bdd63e2318bf4d050e74b030c7908cf3358a5af6 | refs/heads/master | 2022-08-27T23:38:27.050344 | 2020-05-28T16:02:29 | 2020-05-28T16:02:29 | 253,620,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,279 | #!/usr/bin/env python
# -*-mode: python-*-
# This file is part of VoltDB.
# Copyright (C) 2020 VoltDB Inc.
# VoltDB Kubernetes node startup controller
# for use with the VoltDB operator for Kubernetes
#
# Environment variables understood by voltboot:
#
# +-----Variable name----------------+----Default value------+
# ... | [
"george.smith@altoros.com"
] | george.smith@altoros.com | |
d0b82243f2f566c97ca61981f2fe732363eeb5ad | 90f0c803a1b905aeff9a9fc67a82267bd8711484 | /getJob.py | cbe1a3113f63ba15a914326a10f4ed9a20f27f45 | [] | no_license | cdemircioglu/ORTest | f4ee02f2f01bf10ff3c49ce063a6542cb96aeaf8 | 0a0082e1072799f679ec6b4dd985e718409b276d | refs/heads/master | 2021-01-11T02:57:56.528509 | 2016-12-22T07:00:26 | 2016-12-22T07:00:26 | 70,874,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #!/usr/bin/env python
import pika
import sys
import subprocess
import time
import os
print sys.argv[1]
credentials = pika.PlainCredentials('controller', 'KaraburunCe2')
parameters = pika.ConnectionParameters('HWLinux',5672,'/',credentials)
connection = pika.BlockingConnection(parameters)
channel = conn... | [
"c81021292@china.huawei.com"
] | c81021292@china.huawei.com |
b2051e9fb5b2093734a94ebbbb2b4dbcd3731a38 | 719a8b314ee5b477c8d61bd685f84f0a73310b07 | /class1/read_jsonyaml.py | be760242252464d77c2601ce4b26f1542e97f0ce | [] | no_license | jvascousa/pynet_class | e278a11c69f0f966bcd1752770fe14538802e36d | 896571dcad23447502b557f2837f96dabd4f8541 | refs/heads/master | 2021-01-11T02:22:07.186495 | 2016-10-29T23:32:02 | 2016-10-29T23:32:02 | 70,972,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #!/usr/bin/env python
import yaml
import json
from pprint import pprint
def output_print(my_list,my_str):
print '\n\n'
print '#' * 3
print '#' * 3 + my_str
print '#' * 3
pprint(my_list)
def main():
yaml_file = 'yaml_test.yaml'
json_file = 'json_file.json'
with open(yaml_file) as ... | [
"jvascousa@gmail.com"
] | jvascousa@gmail.com |
874d0a89668922462ad058aefcd0701876771879 | 54e4c67cd295283532387975801c98300fcf7925 | /django_hosts_tutorial/help/urls.py | 5e4ee8bb781ffee7d48342674c80a6d34f28e82e | [] | no_license | ThusithaDeepal/Django-dynamic-subdomai-tutorial | 16ea8a71687766ed286942a988891fb8277acc0f | 0f06ce10db6aa19abcb4189ba66447debb1c97b6 | refs/heads/master | 2021-06-10T07:38:29.362445 | 2021-05-18T09:41:28 | 2021-05-18T09:41:28 | 184,202,571 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.conf.urls import url,include
from help import views
urlpatterns=[
url(r'^$',views.home,name='home'),
url(r'^articles/$', views.articles, name='articles'),
] | [
"noreply@github.com"
] | noreply@github.com |
61d43a1943726db6691f8d8f151c4e7ef7359254 | 87f9f2701c6fbbb7804123dcff31760da3477be2 | /blender_scripts/tools/natural_sim.py | 3926dbec844cc7db3ab8b8827f3e3d4fd8f3ee66 | [] | no_license | syedfaizanhussain94/Simulations-master | f023bdac5135f32e17bcfa677a708fd77da8c0ed | 8d38567363102d5c896397b027b73e9d6ed585a9 | refs/heads/master | 2021-03-05T21:52:04.796320 | 2020-05-28T19:25:49 | 2020-05-28T19:25:49 | 246,155,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,252 | py | #import bpy
import imp
from random import random, uniform, randrange
from copy import copy
import pickle
import bobject
imp.reload(bobject)
from bobject import *
import blobject
import helpers
imp.reload(helpers)
from helpers import *
#Sim constants
WORLD_DIMENSIONS = [150, 150]
SIM_RESOLUTION = 1 #0.25
DEFAULT_DAY... | [
"syedfaizanhussain94@gmail.com"
] | syedfaizanhussain94@gmail.com |
cce3f02bf224ac4fd4a742c1e3447c7135e07cca | 7ad4ef003ca4555cfa0eb75045c7895fb817429a | /frontend/models.py | a0b6ced04602d3dd55fa976dc52d677aa66f3836 | [] | no_license | K-gns/MySite | c949d7e3e5693705a04dc0d60fe6410d7dff527b | ae26e6bc839eba1cdf1f724c991fb5e3a329b257 | refs/heads/main | 2023-05-21T21:38:38.886150 | 2021-06-13T15:43:28 | 2021-06-13T15:43:28 | 361,487,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from user_profile.models import MainCycle, Boost
| [
"kb465@mail.ru"
] | kb465@mail.ru |
d97172650fbf494f48bcbcba5842c6bd9d488899 | 28331cad1f61e41e6da2a4e221ec2776974e14a6 | /server.py | 2749887fbd22f20b8929d1c8185a689f3f0699c4 | [] | no_license | chaocharliehuang/FlaskCounter | 5ba0c0708460dafe80554b0dc712a6161cedae6e | f7c24378682f9f92036b48be29a148557cfecc25 | refs/heads/master | 2020-12-02T18:01:00.312014 | 2017-07-06T19:09:51 | 2017-07-06T19:09:51 | 96,461,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from flask import Flask, render_template, redirect, session
app = Flask(__name__)
app.secret_key = 'secret'
@app.route('/')
def index():
if session.get('count'):
session['count'] += 1
else:
session['count'] = 1
return render_template('index.html')
@app.route('/add2', methods=['POST'])
def... | [
"chaocharliehuang@gmail.com"
] | chaocharliehuang@gmail.com |
2ec14bf6f34984991ab45b18102ceb8a9bd71ef3 | 7d1b5d963737926e323890e5a89fd4bcd9a925a2 | /test/year.py | a2ad37263ddc9a473804893b34701bf27db64992 | [] | no_license | zhaowan1/python | af1cccd507f86542e8a4adbcd7ed445db8f2abf0 | 3456bf9560caefc279f584e1652806712f30dc12 | refs/heads/master | 2020-03-11T01:41:51.053258 | 2018-04-16T07:04:34 | 2018-04-16T07:04:34 | 129,698,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | '''
Created on 2018年4月10日
@author: Administrator
'''
#coding:utf-8
import calendar
print ("Show a given years monthly calendar")
print ('')
year = int(input("Enter the year"))
print ('')
calendar.prcal(year)
print ('')
| [
"457273410@qq.com"
] | 457273410@qq.com |
798c7f096b9f4441b998dfce001956b4ada7b976 | e6afd34196217b6e19580dacbe98cbef9f547693 | /mp_MRP/old/deep_understanding/myrl.py | 570db48af3d31744a7c52bd6c8ca23baf02966d4 | [] | no_license | StevenMaharaj/rlscf_my_notes | 22eabeb00b24c7cb87dcf708be326ecb62453e13 | 093c0f2f78ae071c94718ca270afa4c773923fa7 | refs/heads/main | 2023-07-29T09:44:59.149352 | 2021-09-06T01:18:19 | 2021-09-06T01:18:19 | 400,407,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from typing import Generic, Callable
from abc import ABC
from abc import ABC, abstractmethod
from collections import defaultdict
from dataclasses import dataclass
# import graphviz
import numpy as np
from pprint import pprint
from typing import (Callable, Dict, Iterable, Generic, Sequence, Tuple,
Ma... | [
"stevesamah@gmail.com"
] | stevesamah@gmail.com |
e5f0c601126a17759971f370a8f72bf5a5588a3d | c9de632682ba1b4714ac40a6357869cdfcdb34b2 | /python/holidays/__init__.py | b98ae657a5fcd944487df7b6d3ddb984c15f032d | [
"MIT"
] | permissive | lldh/holidata | 29be3a6ab959c0e25993c38f7adefde11bb261d2 | 3d6eb26a7d2178b4629f6423e91bdc4f1b80af35 | refs/heads/master | 2020-08-28T02:46:38.228485 | 2019-10-19T12:09:24 | 2019-10-19T12:09:24 | 217,565,782 | 0 | 0 | null | 2019-10-25T15:42:45 | 2019-10-25T15:42:45 | null | UTF-8 | Python | false | false | 318 | py | from .holidays import Locale
__all__ = [
"Locale",
"da-DK",
"de-AT",
"de-BE",
"de-CH",
"de-DE",
"el-GR",
"en-GB",
"en-NZ",
"en-US",
"es-ES",
"es-US",
"fr-BE",
"fr-FR",
"hr-HR",
"it-IT",
"nb-NO",
"nl-BE",
"nl-NL",
"ru-RU",
"sk-SK",
]
| [
"thomas.lauf@tngtech.com"
] | thomas.lauf@tngtech.com |
7845d7329d08bab1283ada4f9496acfb73c168a1 | 160223a98d4c614191b333e9d251de2195e20d84 | /deleteTXT.py | 6281cba0977e94624ab1dce317b4447ab212d4e1 | [] | no_license | ScentWoman/CertUpdate | bcb2dbc7c7622b3e9aadf33d0cb9e7729789091b | c0f9a9d0d1f7346e712d9a9ea9107ae92dc9ad72 | refs/heads/master | 2021-05-20T00:10:14.853915 | 2020-09-01T00:45:04 | 2020-09-01T00:45:04 | 252,099,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/env python3
#coding=utf-8
import os
import idna
import json
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.acs_exception.exceptions import ClientException
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdkalidns.request.v20150109.DeleteDomainRecordRequest import... | [
"noreply@github.com"
] | noreply@github.com |
ac9a58095a2dbea5ba34aa817faf8212aa33e21b | 1d9833e16c36dec536c00f789f7a3f624612e612 | /src/VGGnet.py | d4c05c9da02e5ec434cd56afd2abfe90190a2f75 | [] | no_license | genglsh/class_sex | adb1e24c75e11a90bd9dc2443e3a40aac60a950d | 96f61de59a811e4a90733549cbbd120874d2cb74 | refs/heads/master | 2020-04-07T17:29:17.536461 | 2019-07-23T00:43:52 | 2019-07-23T00:43:52 | 158,571,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | import numpy as np
import tensorflow as tf
import os
import json
import cv2
import sys
from datetime import datetime
import math
import time
import tensorflow as tf
from net_fun import *
import json
def time_tensorflow_run(session, target, feed, info_string):
num_steps_burn_in = 10
total_duration = 0.0
tot... | [
"970808471@qq.com"
] | 970808471@qq.com |
2402b83ef5cd0b70fcb7d27ab642b796d4d37ef7 | bcff7145c765324233b9bfd42c325901a9514b50 | /Sklep/wsgi.py | 195a22245386afb85cd0eeaa296f090af5384326 | [] | no_license | waltad/Sklep | 3484e7dc3dd5acfb9fcbde49a6024354b7f6ff1a | 2c027c222537eef3e2e49b2cd180028c796e2240 | refs/heads/master | 2023-08-25T00:07:53.562229 | 2021-10-10T13:28:49 | 2021-10-10T13:28:49 | 410,259,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for Sklep project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"tadek.waluga@gmail.com"
] | tadek.waluga@gmail.com |
3f40dfbcfa58149e96a1a0ae3e8456f1e82d73d2 | e6ae448e67fc9cff39614eb73c5a6b0745f097d3 | /quick_sort.py | 1f23630195d8a9fd84e2c7ec8190ef4cfc21710f | [] | no_license | cdredmond/Python | 975327e1b6891b69cda91440360bcec336502d0a | ad01d12a1985ee67dc80acd1ed5c421a7f66a501 | refs/heads/master | 2020-05-23T01:35:15.749248 | 2017-08-08T13:20:42 | 2017-08-08T13:20:42 | 23,943,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | def quick_sort(a_list):
quick_sort_helper(a_list, 0, len(a_list) - 1)
def quick_sort_helper(a_list, first, last):
if first < last:
split_point = partition(a_list, first, last)
quick_sort_helper(a_list, first, split_point - 1)
quick_sort_helper(a_list,split_point + 1, last)
def parti... | [
"charlesdredmond@gmail.com"
] | charlesdredmond@gmail.com |
841522d1b8b277a3a8b10930d1882bc2a73b7dba | 3fa6b53052fdb68e24347ec2f229cc162c9209a9 | /src/main_rereading.py | dc3fb54413c815a88411d165d5ee5486a70901c9 | [] | no_license | ZJULearning/videoqa | 9dbb5f7a479c6983c1e0151069242d271014a4d8 | 1de9602e4a0f0506487ecf014190d4e261c8998f | refs/heads/master | 2022-01-08T06:52:05.156411 | 2019-06-17T05:36:28 | 2019-06-17T05:36:28 | 83,045,581 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,956 | py | from rereader import *
import theano
import theano.tensor as T
import numpy as np
from blocks.graph import ComputationGraph
import h5py
from fuel.datasets.hdf5 import H5PYDataset
from fuel.transformers import Flatten
from fuel.streams import DataStream
from fuel.schemes import SequentialScheme, ShuffledScheme
from bloc... | [
"xuehy@live.cn"
] | xuehy@live.cn |
26f57305b55d3b30eaa55261b2928f5dc17ece1b | b8ee76250770ba628b818a26b6f894347ff2e390 | /Sqlite3Module.py | f3dd02adf33ac2df83d79a9fb702b4e8d11bbb8e | [] | no_license | SimonGideon/Journey-to-Pro | 77c77bd1a5de387c41bc8618100bbb3957d15706 | 1591310891c7699710e992fe068b8fa230ac3d56 | refs/heads/master | 2023-04-28T19:31:53.155384 | 2021-05-18T19:18:32 | 2021-05-18T19:18:32 | 358,926,411 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import sqlite3
conn = sqlite3.connect('Database1.db')
c = conn.cursor()
# Create a table
c.execute('''CREATE TABLE stocks(date text, trans text, symbol text, qty real, price real)''')
# Insert a raw of data.
c.execute("INSERT INTO stock VALUES ('2006-01-05','BUY','RHAT',100,35,14)")
conn.commit()
conn.close()
# Gett... | [
"simongideon918@gmail.com"
] | simongideon918@gmail.com |
32132dadfe46998dce89622fe20c09f838a966b1 | d899e761b6e152cb4470cfa12741ca700a53f377 | /Scripts/Answer.py | b75d252dfabf2c44b443b23fee1dd85c7406f00d | [] | no_license | DBtycoon/REAPER | 52a32d98bd3043d01f3dc0ceb62a54dc305e661a | 7563be2f75723c5e8b377c0330febfd99ee14cb8 | refs/heads/master | 2021-01-01T17:31:56.177586 | 2013-07-18T04:10:19 | 2013-07-18T04:10:19 | 7,144,935 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from reaper_python import *
'''
Refers to the possible answers returned from a message box
'''
Ok = 1
Cancel = 2
Abort = 3
Retry = 4
Ignore = 5
Yes = 6
No = 7
class Answer:
Ok = 1
Cancel = 2
Abort = 3
Retry = 4
Ignore = 5
Yes = 6
No = 7
| [
"civress2@yahoo.com"
] | civress2@yahoo.com |
351231d4e432a8544864dbc8f9fc095f617f1e0c | 31575890c75d65455512ee7377bc39830de8a055 | /simulation.py | 51218f289dd038087633e6a16e76ff9bd00d2a00 | [] | no_license | dalerxli/aggregate | 712a4c9074c3235c0fe0c3686dc3c3c7be4853dd | 4c9a42b02ee50df4984e3ca730697a030a60a8ff | refs/heads/master | 2020-04-02T09:00:55.818879 | 2016-11-18T11:18:36 | 2016-11-18T11:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,345 | py | #!/usr/bin/python
"""
simulation.py
Mark S. Bentley (mark@lunartech.org), 2016
Simulation environment module for building aggregates. Currently this is non-
dynamic and uses random vectors and line-sphere/line-spheroid intersects to
build various aggreates types. The simulation environment tracks the per-
particle po... | [
"mark@lunartech.org"
] | mark@lunartech.org |
ff5974705f143472c351bf8f4e3490095f6fc4f9 | cd10be27d55a22723a94025a8cc653fb0dec084d | /keylogger.pyw | ca647f5158eca584534df31558567825897a0c1c | [] | no_license | tedski999/python-scripts | a09dafa979ab0550d188a1fdc61984aa64c8688e | aeb283799108b482efa5d082083d0c325f7cb2a4 | refs/heads/master | 2022-12-04T02:48:16.558582 | 2020-08-21T17:06:20 | 2020-08-21T17:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | pyw | from win32gui import GetWindowText, GetForegroundWindow
from pynput.keyboard import Listener
from datetime import datetime
from os import path
import logging
logPath = ".\\logs\\"
lastFocusName = ""
def on_press(key):
global lastFocusName
filename = (str(datetime.now().date()) + ".txt")
logging.basic... | [
"tedjohnsonjs@gmail.com"
] | tedjohnsonjs@gmail.com |
6e6be05f168d51c04778758cfdbef7aef1c73390 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/aio/operations/_rollouts_operations.py | 3e790f1835a9d269c5154a3a56505a1fc12ed757 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 23,787 | 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"
] | noreply@github.com |
f1d6c053ab19fde48f2886203d3ce102e1ac3d2b | 4b558f3501407de951b686810794e18a4b2902cb | /Person.py | c90c6d96686ce2ae80fb8957e8f6434c2b1d0eb2 | [] | no_license | AmitGreen/TeacherSample | 05be63527b37f013adc6de6d8499668d717c8a73 | efb12aea1ac737d8ae2ab0ee8aa550adbd34edc1 | refs/heads/master | 2020-04-14T19:46:40.606477 | 2019-01-04T07:03:03 | 2019-01-04T07:13:57 | 164,070,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #
# Copyright (c) 2019 Amit Green. All rights reserved.
#
#
# Person
# Base class of Student and Teacher
#
class Person(object):
__slots__ = ((
'identifier', # PersonIdentifier
))
is_student = False
is_teacher = False
def __init__(self, identifier):
... | [
"amit.mixie@gmail.com"
] | amit.mixie@gmail.com |
f70cab19ea72af45550d3d357554c561f60bd2f2 | eb13de99f7092685cf7356cf3bff49342a070756 | /lab4/example3.py | 70f7f7d3a40059daaf8e6e55deb16fe689ac1dc5 | [] | no_license | e56485766/280201109 | 711874a84852e5160e9753c408462f6241a8f034 | 466a9a89e947e4515a6622d921b97979064fd518 | refs/heads/master | 2023-02-18T08:27:52.871387 | 2021-01-18T10:03:51 | 2021-01-18T10:03:51 | 311,320,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | nums = [8, 60, 43, 55, 25, 134, 1]
sum = 0
for i in nums:
sum += i
print(sum) | [
"ege_yucel_90@hotmail.com"
] | ege_yucel_90@hotmail.com |
b59746db08e06102b15d6584d17af086dbf60ad3 | 2354ad69c4134ab1141890f45007979614b6891a | /jpeg_location.py | d7fda35834c2f15abe808bf29bef451ffad11b34 | [] | no_license | dmullz/jpegLocationFinder | cad159ed1bda2da1e845d17009cfac2701f7696f | 7086a36d628dbcb41f4740bb37d2b24f0eba43aa | refs/heads/master | 2020-08-26T16:09:10.145197 | 2019-10-26T03:48:52 | 2019-10-26T03:48:52 | 217,067,645 | 0 | 0 | null | 2019-10-27T14:33:33 | 2019-10-23T13:42:38 | Python | UTF-8 | Python | false | false | 4,159 | py | from PIL import Image
from PIL.ExifTags import TAGS
from PIL.ExifTags import GPSTAGS
from openpyxl import load_workbook
from openpyxl import Workbook
from openpyxl.styles import Font
import requests
import os
HERE_APP_ID = "vQCC4M7DiyR3w4sNySuk"
HERE_APP_CODE = "J0hDHbYEc9lf5WXlXszxCw"
# @DEV - Function to add a row ... | [
"dangermouse12885@gmail.com"
] | dangermouse12885@gmail.com |
c6a4f7fd762b8c458facb55f5b26d1bc13b3c944 | e16d7d8f60145c68640b25aa7c259618be60d855 | /django_by_example/myshop/orders/admin.py | f09d215605498c4504e1c955a53d7fe07aa330af | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from django.contrib import admin
from .models import Order,OrderItem
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'first_name', 'last_name', 'email','address', 'postal_code', 'city', 'paid','created', 'updated'... | [
"544136329@qq.com"
] | 544136329@qq.com |
3ce9ae75cfba581fd1556d6acba08d404943f333 | 89ab7ddfbf71e67a07b81592376d365e487e7ab2 | /python_stack/django/django_full_stack/tv_shows_project/tv_shows_app/models.py | 5c09f7cd3b6d029a237a44bcf5b6c35b19d500e9 | [] | no_license | napatpiya/bootcamp | b9ec8b57f2bde960893fead2cd199d218d197128 | 456d71fbc87a3fac5fac2386ea5b5914a3b35141 | refs/heads/master | 2023-05-27T07:12:48.392117 | 2020-06-30T02:58:47 | 2020-06-30T02:58:47 | 237,839,511 | 0 | 0 | null | 2023-05-07T22:20:16 | 2020-02-02T21:28:10 | Python | UTF-8 | Python | false | false | 1,488 | py | from django.db import models
import datetime
# Create your models here.
class ValiManager(models.Manager):
def validator(self, postData, request):
errors = {}
print(datetime.date.today())
print(postData['reldate'])
present = datetime.date.today()
reldate = datetime.datetime.... | [
"napat_ont@hotmail.com"
] | napat_ont@hotmail.com |
ad95a02abfd27b13261a61ab7c66af089dff71c2 | 57baad3ff3081f0e70f61c8613d4a5033303712a | /top_block.py | 8e1ab040cf61c24c71277661792878294035abd9 | [] | no_license | miliheredia8/ISDB-T | 5d8c6bc118008ff0f1508956a063eda3da1ff162 | 25d2f71674d44b549b9b5feba07c9f9a35eba161 | refs/heads/master | 2022-12-07T00:51:29.179071 | 2020-09-06T19:11:06 | 2020-09-06T19:11:06 | 281,508,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86,625 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Top Block
# Generated: Tue Jul 21 09:49:44 2020
##################################################
from distutils.version import StrictVersion
if __name__ == '__main__':
import ... | [
"noreply@github.com"
] | noreply@github.com |
c3130eff5ead53a74d10c68261d2e3559dfc4623 | 91ab6e48d02822bd957e210484fceff4ce0b7d61 | /usim_pytest/test_usimpy/utility.py | 07f6c368aa6577c5ef2802885d34f46f00ad824f | [
"MIT"
] | permissive | MaineKuehn/usim | d203c78f2f644f546b932d1da40b50f26403d053 | 28615825fbe23140bbf9efe63fb18410f9453441 | refs/heads/master | 2021-09-25T08:05:03.015523 | 2021-09-17T13:42:39 | 2021-09-17T13:42:39 | 177,617,781 | 18 | 3 | MIT | 2021-09-17T13:42:40 | 2019-03-25T15:50:34 | Python | UTF-8 | Python | false | false | 1,097 | py | from functools import wraps
from typing import Callable, Generator
from ..utility import UnfinishedTest
def via_usimpy(test_case: Callable[..., Generator]):
"""
Mark a generator function test case to be run via a ``usim.py.Environment``
.. code:: python3
@via_usimpy
def test_sleep(env):... | [
"maxfischer2781@gmail.com"
] | maxfischer2781@gmail.com |
381480860df458c87e5cf101bb9259c71ffeca3f | 8951d78a98ced3e61c465814bc19185c2fa983f9 | /23. pip(external_package)/03. pillow/imageProcessing3.py | beaa26c21358943f6bfed897bc89b0b9213b2cf2 | [] | no_license | yusuke-hi-rei/python | 0f14a70c5d701a691fa797275d5a8ee08ff51e0e | 41abaea22c5d17395a397cbd6d6d34dae62808e3 | refs/heads/master | 2022-04-15T12:12:06.165098 | 2020-04-11T16:35:26 | 2020-04-11T16:35:26 | 254,903,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | ## Convert to monochrome.
from PIL import Image
#! Exception processing is performed assuming
#! that the image file cannot be opened.
try:
img1 = Image.open("image.jpg", "r")
#! L: grayscale.
img2 = img1.convert("L")
img2.save("image_saved3.jpg", "JPEG")
print("saved...")
except IOError as error... | [
"yultutin01@yahoo.co.jp"
] | yultutin01@yahoo.co.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.