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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dad64a78b096b80c43759b584af08e34c1f1b78 | 8eeae0008711f6c62e63a599d2d7e67ba43b32ad | /tradesimpy/engines/backtest_engine_import.py | 77bfd0a3d79150cb0d5a189b1e2bc0e2cc5994e3 | [
"BSD-2-Clause"
] | permissive | shaoshoutianheyu/tradesimpy | d0db391fef0cc3471dc159da318c2de3b8bb6d31 | 5b58676e8d9ae2ce2d714413beddbc14e6154fc7 | refs/heads/master | 2020-12-13T19:13:29.582731 | 2016-08-10T19:35:27 | 2016-08-10T19:35:27 | 66,049,690 | 5 | 5 | null | 2016-08-19T03:29:06 | 2016-08-19T03:29:05 | null | UTF-8 | Python | false | false | 315 | py | import os
import sys
# Provide directory paths for necessary imports
lib_paths =\
[
os.path.abspath('../data/'),
os.path.abspath('../backtester/'),
os.path.abspath('../trading_algorithm/'),
]
for lib_path in lib_paths:
sys.path.append(lib_path)
sys.path = list(set(sys.path))
| [
"grant.bartel@gmail.com"
] | grant.bartel@gmail.com |
dbed2a85e85458a64ddba3eb266945ed0f13a0de | fd374fb704d03abec6c82c6c6a73fbd934e6ce5b | /polls/views.py | 51d0ddafbd3ced46d4078e8ffbf2fba60899289e | [] | no_license | zl2838/hw15 | 7096272143c3ace83718fc91b10dc13d5d4fa820 | 34cf75e787d5619863b8855cca3ab94328322fc3 | refs/heads/master | 2020-09-11T08:41:18.163725 | 2019-11-19T03:44:34 | 2019-11-19T03:44:34 | 222,008,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_questio... | [
"zl2838@columbia.edu"
] | zl2838@columbia.edu |
4d4ecc1e1bddc6ac36317f8f1c3f8dc07d77ef43 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /Bite_83/test_timezone.py | 48b2574919d1328895aa94b5cdc1f6966ae66c3b | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 1,060 | py | from datetime import datetime
from timezone import what_time_lives_pybites
def test_what_time_lives_pybites_spanish_summertime():
# AUS is 8 hours ahead of ES
naive_utc_dt = datetime(2018, 4, 27, 22, 55, 0)
aus_dt, es_dt = what_time_lives_pybites(naive_utc_dt)
assert aus_dt.year == 2018
assert a... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
913cd021c12d554ac4af6619ce5decfb7ce970c3 | ee89a6682a01f67b753ab9a7d4ddf588e90c5a59 | /src/table_titles.py | 0714f430783075fae91b5bf9d523c4bd8b430ba6 | [] | no_license | wbkd/bpa-wochenberichte-htw | 7ba39429e979580a4b4e2ffee584957fa7e6de25 | 43608de6986c0b846a3d359d0282a4ae1ef5ac8d | refs/heads/master | 2023-06-01T22:31:52.802453 | 2021-06-26T12:26:13 | 2021-06-26T12:26:13 | 379,924,894 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,350 | py | from operator import itemgetter
"""Script to extract all table headers of one pdf, using font styles and sizes to identify headers.
Most parts of the code gratefully taken from https://ichi.pro/de/extrahieren-von-uberschriften-und-absatzen-aus-pdf
-mit-pymupdf-113724360868967
Headers that don't belong to tables ca... | [
"pustet@posteo.de"
] | pustet@posteo.de |
f819a33c29a02bdfd3bd03dc17a1abc83f6968ad | 67c8fbadf97cad08d5dc03100863a7e4cfb67bd4 | /api/serializers.py | 5907ce214f03dba88de81b96f3d340c91d23dac6 | [] | no_license | SavenkovAlx/public-chat-API | 4fb3c388992f57991e52da936086a4323b162f6f | 3c9b33f447f40ee43e6b833638c83b603789585f | refs/heads/main | 2023-03-31T05:27:56.899064 | 2021-03-28T13:53:24 | 2021-03-28T13:53:24 | 352,340,422 | 0 | 0 | null | 2021-03-28T13:53:24 | 2021-03-28T13:44:20 | Python | UTF-8 | Python | false | false | 797 | py | import re
from rest_framework import serializers
from .models import Message
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fields = ['id', 'email', 'text', 'created_date', 'update_date']
def validate_email(self, email):
norm_email = email.lower()
... | [
"savenkovalx@gmail.com"
] | savenkovalx@gmail.com |
41a58d08aeb1f5f3ee5fbd1e3067dbcc9eefbc43 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3540.py | a875472b054493c30d3909c9a4a41429a81f0434 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,742 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8b4a671e8f15ec14fb5e1bf7b5b95915b9486d2a | c10d080c40161633a922b1274b92d3048555ea5b | /src/interaction.py | 5d3b9721a9476bcf679456078f04c14a32d3b311 | [
"MIT"
] | permissive | leolani/leolani-datarepresentation | 3c784bb8401c3b67efe2b80ac4a34498f0f9e827 | bc2975310fe623f7548db54bf5d691c7bbcf0c1e | refs/heads/main | 2023-01-06T07:52:45.733312 | 2020-10-23T09:10:29 | 2020-10-23T09:10:29 | 306,548,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,604 | py | import os
import re
import platform
import requests
import pycountry
import subprocess
from time import time
from datetime import datetime
from random import getrandbits
from typing import List, Iterable, Dict, Tuple, Optional
from vision import Object, Face, Observations
from language import Chat
class Context(obje... | [
"s.baezsantamaria@vu.nl"
] | s.baezsantamaria@vu.nl |
f2e1196243b5d394c734be8e294572d083fbdc33 | a798b3033f7f0fd42c02f1b90b718511a36024e4 | /views.py | 6347e541d596a6d56d4c6c00af9d4b832e1932e5 | [] | no_license | kpagariya/DjangoJan21 | 11fd50c17757926c96255a0ecc504ba9bc82124d | 0fd17d2845350433de181bee21e829b8c9b37ab3 | refs/heads/main | 2023-02-25T02:31:51.694615 | 2021-01-28T14:19:28 | 2021-01-28T14:19:28 | 329,339,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.contrib import messages,auth
from django.contrib.auth.models import User
def homemenu(request):
#return HttpResponse('<h1>Hello, I am learning Django!</h1>')
return render(request,'menu/home.html')
def loginmenu(r... | [
"noreply@github.com"
] | kpagariya.noreply@github.com |
fa05da510debee69a4af4485d50232ca7c5fa3c1 | a42e38bc94858d2ea0b751b0717b076407bd75ef | /example/example/documents/models.py | d5cd8b0f3c739532f0e66ebd430b9e5cfcc842b3 | [
"MIT"
] | permissive | wolfhechel/django-azurite | 90aca7274649e99e1f3595be422e75ce541644d9 | 48107d1979b480f72d6dad18b4dd2e60c3c19748 | refs/heads/master | 2021-01-22T04:10:09.436420 | 2017-05-17T11:05:43 | 2017-05-17T11:05:43 | 37,257,138 | 0 | 0 | null | 2015-06-11T11:28:29 | 2015-06-11T11:28:28 | null | UTF-8 | Python | false | false | 217 | py | from django.db import models
class Document(models.Model):
name = models.CharField(max_length=50)
file_field = models.FileField(upload_to='files')
def __unicode__(self):
return u'%s' % self.name
| [
"drewtemp@gmail.com"
] | drewtemp@gmail.com |
0b239c2c51a089c34e86074facdbcc6c217e14ef | f77d436de9db3ec3d0b9cba8baf90895409f5b89 | /Term 1/CarND-Alexnet-Feature-Extraction/train_feature_extraction.py | 8d60314ccb033bd1fe639ef8ef011948d6b08a7c | [] | no_license | markusmeyerhofer/SelfDrivingCarND | ecea9f13b018db0df8a718a6c0a8f52818ba04ea | 9421fc46b2a05fb9ca5c7aebd18ca4101d019d4c | refs/heads/master | 2020-07-04T06:10:21.617199 | 2019-08-13T16:17:43 | 2019-08-13T16:17:43 | 202,181,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | import pickle
import time
import tensorflow as tf
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
from alexnet import AlexNet
nb_classes = 43
epochs = 10
batch_size = 128
with open('./train.p', 'rb') as f:
data = pickle.load(f)
X_train, X_val, y_train, y_val = train_test_s... | [
"markus.meyerhofer@me.com"
] | markus.meyerhofer@me.com |
85b2dfa0de69e2abae6ac8a76301db1e6d1b3290 | 8d97668e0666f0b7e7c82b52bae13ece76435612 | /examples/python/bufr_ecc-448.py | a864aeb6e297b4686e900660b7ed80a888dd6d04 | [
"Apache-2.0"
] | permissive | jdkloe/eccodes | 83e5e6df5100d53a4274c706f5cb6fb07ca23743 | 66700b02d8a74722deafa085dab76e99e9b44fca | refs/heads/master | 2021-12-15T01:35:24.387814 | 2021-12-01T15:55:14 | 2021-12-01T15:55:14 | 243,985,448 | 0 | 0 | NOASSERTION | 2020-02-29T14:42:08 | 2020-02-29T14:42:07 | null | UTF-8 | Python | false | false | 1,838 | py | # (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernme... | [
"masn@ecmwf.int"
] | masn@ecmwf.int |
adfbeffea9979a517b0969fbc17f9bae8accd85f | 3a0da75df781481b054ab885a251361b4559aea2 | /superlists/lists/tests/test_views.py | 5dddcf23566e246c908c0e5de6b485b245fcef5f | [] | no_license | vickiev305/mhcjterm2016 | 03bc92bd1404e60b69a80b12cf7b4ee09ac3bc7f | 6dfdb5098a9883d947f78e8522821882c395ffac | refs/heads/master | 2021-01-10T02:10:27.405891 | 2016-01-15T16:50:46 | 2016-01-15T16:50:46 | 49,726,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,127 | py | from django.core.urlresolvers import resolve
from django.utils.html import escape
from django.template.loader import render_to_string
from django.test import TestCase
from lists.views import home_page
from django.http import HttpRequest
from lists.models import Item, List
class HomePageTest(TestCase):
def test_ro... | [
"victo22v@mtholyoke.edu"
] | victo22v@mtholyoke.edu |
697626c30cf184c516e232318ae7b05ae01d178c | bdd3bb5ac2abce8bc16fd7a28826b4a2db17079a | /obs_mapper/obs_plot.py | dc4f9f4b82186e356d0f15303658178b2e6d7747 | [] | no_license | MIT-STARLab/circinus_tools | 9537269c38dc89de51aba0ac250f910ff621e9ea | e18d40766acb26f7074aff317ea96ea54301a788 | refs/heads/master | 2023-07-21T13:24:52.611318 | 2022-01-22T15:05:44 | 2022-01-22T15:05:44 | 249,547,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # Tools for plotting observation targets
#
# @author Kit Kennedy
import json
from collections import namedtuple
import matplotlib.pyplot as plt
from matplotlib.pyplot import savefig
from matplotlib.patches import Rectangle
# need to "pip install pillow" for this import to work
from scipy.misc import imread
GeoPoin... | [
"akennedy@mit.edu"
] | akennedy@mit.edu |
d7804ea8b7f2ecc0bd38927b3992aa58daadc478 | af9b7a00b55aac5eaed58592cf8a9d69e659a076 | /learning_log/learning_logs/forms.py | da3fa007a63b1f3e2886d67e9cb7c2ee946bc820 | [] | no_license | dujiaojingyu/Django-Practice | bc246d2283a8f994567756b4e391ea167359620b | cab5db123eb97bd424a84fae24629cc0e1be4652 | refs/heads/master | 2020-03-25T17:33:25.597885 | 2018-08-08T08:38:09 | 2018-08-08T08:38:09 | 143,983,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | __author__ = "Narwhale"
from django import forms
from .models import Topic
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields= ['text']
labels = {'text':''}
| [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
79a91706bf96b9abcd40c27b0c9b989e0f98d43c | a226186de42abb44e426e54b2dd03ccfc882fd75 | /courses/settings.py | d32737c62dc4fd969901f042bbe18662f1dca84b | [] | no_license | KristoD/Courses-Python2-Django | 87ad0b54aae9007407929033545a9d8fe0b3e380 | 371bafcc1239e21c4c839b8158b3339b43e16937 | refs/heads/master | 2020-03-26T00:40:56.025046 | 2018-08-10T21:03:44 | 2018-08-10T21:03:44 | 144,332,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for courses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"chrisdedeian@gmail.com"
] | chrisdedeian@gmail.com |
e5b0b1f4b9f206b62340e849ea16c8f2270dc880 | 3fdf00da8c02d8498aa594b763d455ff11bc65e1 | /generate.py | be9a80aea94240c6608bab6d6ba09c99d010c989 | [] | no_license | prabormukherjee/BERT-keyphrase-extraction | e3e2c1db05660a4383f9953f2c81bb68f49607dc | c45115447d91179a99e4ce6e2f1c426841a3fdbe | refs/heads/master | 2023-01-28T13:08:23.045704 | 2020-12-13T13:05:45 | 2020-12-13T13:05:45 | 315,028,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,019 | py | """Generate Key Phrase of the model"""
import argparse
import random
import logging
import os
import numpy as np
import torch
#from pytorch_pretrained_bert import BertForTokenClassification, BertConfig
from transformers import BertForTokenClassification, BertConfig, BertTokenizer
from evaluate import evaluate
import... | [
"prabor1@gmail.com"
] | prabor1@gmail.com |
5d396f8a619172ddd3f61c1c285aedc696426ca7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03001/s613586641.py | 5dadc4795c529eb1e7ffe05c54da04dc2de9168e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import sys
sys.setrecursionlimit(10**6)
w, h, x, y = map(int, input().split())
ans1 = w*h/2
ans2 = 0
if x == w/2 and y == h/2:
ans2 = 1
print(ans1, ans2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
410dcad216373dd96905200a44c6f6e4a4a9826e | e1da5e8320113ce0affee1daa9f6ad94c26e9441 | /lab3/3.2.py | 2166b23b2fcfe74b51be1609214fe728243e4f3a | [] | no_license | cheretka/Fundamentals-of-Artificial-Intelligence | 5f5efc119609ca4b131fbb217eefe1ce84aa7e16 | d2949d9ab76e33651b24a696b2543101d540a9ce | refs/heads/master | 2023-05-14T03:32:11.485401 | 2021-05-25T16:58:58 | 2021-05-25T17:13:11 | 370,770,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | import numpy as np
def relu(x):
return (x > 0) * x
def relu2deriv(output):
return output>0
input = np.array([[8.5, 0.65, 1.2],
[9.5, 0.8, 1.3],
[9.9, 0.8, 0.5],
[9.0, 0.9, 1.0]])
layer_1_weights = np.array([[0.1, 0.2, -0.1],
[-... | [
"ocheretianfws@gmail.com"
] | ocheretianfws@gmail.com |
5d6068c848077e8a105dbf9d50960d966a1c1194 | 9bc039ec7538305c8b26066541d0430fc8402fec | /Debugger.py | 69b9c6efc5650b5684c984d40eccbb41c5ad7a5f | [
"Apache-2.0"
] | permissive | SamDu1998/Python-Learning | 44d7870c478c48d171f1fa9df192e033691b40af | 68920f2ea598ee5bb5ab4c64ec1262294bb79b05 | refs/heads/master | 2021-04-03T04:55:02.514401 | 2018-03-24T06:51:45 | 2018-03-24T06:51:45 | 124,553,966 | 0 | 0 | Apache-2.0 | 2018-03-24T06:50:06 | 2018-03-09T14:54:32 | Python | UTF-8 | Python | false | false | 1,155 | py | try:
print('try...')
r = 10 / 0
print('result:', r)
except ZeroDivisionError as e:
print('except:', e)
finally:
print('finally...')
print('END')
# 用try来运行这段代码
# 如果执行出错,则后续代码不会继续执行
# 而是直接跳转至错误处理代码,即except语句块
# 执行完except后,如果有finally语句块,则执行finally语句块
try:
print('try...')
r = 10 / 4
print(... | [
"djc1998@163.com"
] | djc1998@163.com |
c0d6a280a0a7680cf42afeeccaecfcfb1cbf28a4 | cf4f9389e7eb0a7753f2139b79274e96db744f56 | /go_and_do_people_info/serializers.py | b99b8eb7b4e36dc3ab74d17eb72c31963a9b969d | [
"MIT"
] | permissive | capitalChurch/GoDoBackend | f7dc8a126fce99da6df87df8203408f3fe810139 | ded1614cceaeb202fb922dac1c04c40c45f6d9e0 | refs/heads/master | 2020-08-10T09:19:38.119653 | 2019-10-16T03:44:16 | 2019-10-16T03:44:16 | 214,314,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,197 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group, User
from go_and_do_people_info.models import (Country, Event, Ministry, News,
Prayer, Ticket, UserProfile,
Volunteer)
from phonenumber_field ... | [
"philipeborba@gmail.com"
] | philipeborba@gmail.com |
2ca6dd6d9e283d56848cb08dedccbc18699489cf | f40c65a649206261d7255eb3132ea67963f13a17 | /src/wait.py | d830074cea069e62e268c87b9f7ee5afbff4750b | [
"MIT"
] | permissive | fcurella/gh-status-check | 2ec47ca212bfe471cda97d1ae0c1ee41f16420e3 | 1fdb5f7be1dcdb9f2338839ad55ad7c9188b159b | refs/heads/main | 2022-12-22T18:35:00.543508 | 2020-10-01T17:46:35 | 2020-10-01T17:46:35 | 297,731,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | import asyncio
import logging
import os
import sys
import aiohttp
from asgiref.sync import sync_to_async
from github import Github
REPOSITORY = os.environ["GITHUB_REPOSITORY"]
SHA = os.environ["GITHUB_SHA"]
EVENT = os.environ["GITHUB_EVENT_NAME"]
EVENT_PATH = os.environ["GITHUB_EVENT_PATH"]
TOKEN = os.environ["INPUT... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
054d4ae02061323bc123c1d0faad5aec890d1a87 | b9503e86921041609763c65f148c08ecff69cc4b | /dojo_ninjas_app/models.py | 9da7e8535bda9583ef770e1a7765cb4f707b8e21 | [] | no_license | cristian-nav/Dojo-y-ninjas | c1371e7b4c74b4ee127f3734e68f30fdcc80c623 | d06016bf2e6f5adc7d20806f0031c04a978c769c | refs/heads/main | 2023-02-25T06:11:44.707956 | 2021-02-11T18:44:58 | 2021-02-11T18:44:58 | 338,104,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from django.db import models
class Dojo(models.Model):
name = models.CharField(max_length=255)
city = models.CharField(max_length=255)
state = models.CharField(max_length=2)
desc = models.CharField(("dojo antiguo"), max_length=50)
class Ninja(models.Model):
dojo = models.ForeignKey(Dojo, related_n... | [
"cris.project03@gmail.com"
] | cris.project03@gmail.com |
68a3df6c0377dc1399e5b7410bc5a493031893e5 | 486a74b3f129f696a6199834b01cc286515a170f | /groups/views.py | 66e3e93a6c2c9f97ff1c5c960a5ed23868f3a0f1 | [] | no_license | pkattimani51/simple_social_app | 30e245ef88800dee9d1c8c3fa69d36066a4ed795 | abac095dda1f2d91563f9f76b500c21ac80890e5 | refs/heads/master | 2021-05-18T01:33:30.143416 | 2020-03-29T15:46:26 | 2020-03-29T15:46:26 | 251,048,749 | 0 | 0 | null | 2020-03-29T18:28:41 | 2020-03-29T14:14:08 | Python | UTF-8 | Python | false | false | 2,017 | py | from django.shortcuts import render, get_object_or_404
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from .models import Group, GroupMember
from django.urls import reverse
from django.contrib import messages
from django.db import IntegrityError
cla... | [
"prkattim@partnet.cisco.com"
] | prkattim@partnet.cisco.com |
61bd905871c3846fa56e4ddc6b4a859a88c8a0fc | f9081d54071a499736ccc00fe11c58ab2ebe9f89 | /subagents.py | ede9ffee62f605615ec02742792d8a1a9efd0461 | [] | no_license | moridinamael/subagents | 6970f332840620a49cf3b85ce5f1ec63c2fabd61 | 57c654a092ba1e5a72212406b6f4a384f3d8b02c | refs/heads/master | 2020-05-21T12:49:26.518696 | 2019-07-09T03:49:30 | 2019-07-09T03:49:30 | 186,050,878 | 5 | 1 | null | 2019-07-09T03:49:31 | 2019-05-10T20:32:42 | Python | UTF-8 | Python | false | false | 22,894 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 10 14:09:30 2019
@author: Matt
"""
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 04 09:26:27 2019
@author: mfreeman
"""
import random
import math
import matplotlib.pyplot as plt
import copy
class position():
def __init__(self,x,y):
self._x = x
sel... | [
"tamuic@gmail.com"
] | tamuic@gmail.com |
5cccbaa94265737b9c994909e64e4f7648eded0d | 0b1128bc9348f8e231ba5344544e6651e666b428 | /Project/ServiceLayer.py | 6152b13d419b215b3803c865e3e31616958c128f | [] | no_license | Robot173/KURS_PDB | 0668d5531e57320c6c7b76a86330ed5b1ceb17d8 | 92a66f148cf4fe7f04ab5bfd5044bbb483fe1e33 | refs/heads/master | 2020-05-16T10:24:24.458524 | 2019-05-29T11:47:33 | 2019-05-29T11:47:33 | 182,983,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,835 | py | from proxy.device_proxy import DeviceProxy as DevGW
from proxy.user_proxy import UserProxy as UsGW
from proxy.test_proxy import TestProxy as TestGW
from proxy.report_proxy import ReportProxy as RepGW
from proxy.rating_proxy import RatingProxy as RatGW
from proxy.post_proxy import PostProxy as PostGW
from constants impo... | [
"todosievnik@gmail.com"
] | todosievnik@gmail.com |
9236eff7dea85e348b76f3d349db72fe24ee20c1 | 52bbc07d59b003342a0920da47b20cb4a52385c4 | /node.py | 515f5e395046f4bbf7bf1799140358081ad58036 | [] | no_license | juliemyhu/HB-DS | 281aeefdf57a0ffe6ec680cacbf49716a88403a4 | a13846647eb6c266ccf7bca2d71cf1da59b36e05 | refs/heads/master | 2023-03-23T08:54:52.852559 | 2021-03-08T23:59:59 | 2021-03-08T23:59:59 | 292,702,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Node():
def __init__(self,data):
self.data = data
self.next = None
class DLinkedNode():
def __init__(self,data)
self.data = data
self.next = None
self.prev = None | [
"jhu21495@gmail.com"
] | jhu21495@gmail.com |
e0278a3e2e7f4c9d8f654cc264072d3c87528f49 | e42e963b6a8c7a77cad7969fe5ced1992116fe10 | /accounts/tests.py | ad00664ae7d8ed24f35e118ccf5df012db4cccae | [] | no_license | adnanhaider/sms | 7abf74f112caa3fa896519b7acce3cd9a308d0bd | 3f3332c077375f7e75e90c4f77d2dc6cf5254071 | refs/heads/master | 2022-12-29T13:23:15.540834 | 2020-10-17T04:16:33 | 2020-10-17T04:16:33 | 255,548,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from django.test import TestCase
from .models import User
class UserProfileTest(TestCase):
def test_user_model_has_profile(self):
user = User(
email = "adnan@gmail.com",
password="admin"
)
user.save()
self.assertTrue(
hasattr(user, 'principal... | [
"adnanhaider530@gmail.com"
] | adnanhaider530@gmail.com |
e4448f39b42e44e64db73404f01ce8f3786ff926 | a9696abf5bdf2d5e5bb8594905bb698b210f2b0e | /setup.py | 1b3c38465f54aec981b665bf499cfc5fa912f980 | [] | no_license | niconoe/django-nuages-tag | 553b278fcea5220eab2276ee08125e59b415d28e | 8d264972583cbd2d0ff5924050ff92d2ee27dd20 | refs/heads/master | 2020-05-20T07:20:56.840260 | 2013-02-13T20:18:30 | 2013-02-13T20:18:30 | 5,314,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-nuages-tag',
version='0.1.3',
author=u'Nicolas Noé',
author_email='nicolas@niconoe.eu',
packages=find_packages(),
url='https://github.com/niconoe/django-nuages-tag/',
license='B... | [
"nicolas@niconoe.org"
] | nicolas@niconoe.org |
4d2951e12c2ba280e102b0d81a77f21d42208f05 | 22c76898be1752bd5756285d41aa925866ff537a | /src/py/solution_manager.py | 6d3102ee57694bdefeb8d9511d08fae5726bcdb7 | [] | no_license | willthbill/ExtensionCC | 8be2371876e8e90b82e7989074c0ab5db1c4c109 | 129ef58d12242172ddb6ded2dac3dd561e8363ed | refs/heads/main | 2023-07-19T09:34:24.983091 | 2023-07-16T20:50:00 | 2023-07-16T20:50:00 | 613,107,140 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | py | from math import inf
import os, shutil, json
from loguru import logger
import cgshop2023_pyutils
from py.polygon_set import PolygonSet
import importlib
class SolutionManager:
def __init__(self, group="instances_v2"):
self.group = group
self.P = None
def get_all_file_names(self):
retur... | [
"williambillemeyling@gmail.com"
] | williambillemeyling@gmail.com |
e277cd2671d5de63fd0453d59feb4fde97ffbdaf | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/s5_getparser_20210216045646.py | c901cc9e70acfeeb7542185d4f3f24d9c669f62e | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,991 | py | import shutil
from fonduer.parser.preprocessors import html_doc_preprocessor
from sqlalchemy import exc
import pdftotree
import re
from sen_parser_usable import *
from config import config
import json
import os
import posixpath
import http.server
import urllib.request, urllib.parse, urllib.error
import cgi
import sh... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
a4efdc368ce9c0168642c7aa9bfae67cbdc36f99 | decf31fb4ee58c8abb7892a3a4b1891863567461 | /batchgenerators/examples/brats2017/brats2017_dataloader_3D.py | 6eece8c96ef4e66af7201c0ff14748ca05311e11 | [
"Apache-2.0"
] | permissive | justusschock/batchgenerators | 7f9a3aa57aa4046d37dd5d4cbe181fe5ab48b078 | 6d31e5c79871f2a33ed6f9947bfbdf6c8e1a538e | refs/heads/master | 2020-06-04T20:29:45.870365 | 2019-06-16T11:03:56 | 2019-06-16T11:03:56 | 165,810,390 | 0 | 0 | Apache-2.0 | 2019-01-15T08:06:08 | 2019-01-15T08:06:08 | null | UTF-8 | Python | false | false | 11,498 | py | from time import time
from batchgenerators.augmentations.crop_and_pad_augmentations import crop
from batchgenerators.dataloading import MultiThreadedAugmenter
from batchgenerators.examples.brats2017.config import brats_preprocessed_folder, num_threads_for_brats_example
from batchgenerators.transforms import Compose
fro... | [
"f.isensee@dkfz-heidelberg.de"
] | f.isensee@dkfz-heidelberg.de |
2aedeb2b23073928b3f8b67e3cc1d7b1e29ec108 | b237ba12ed0b825490c5616eb4726a22792f34bd | /package/scripts/turtlesim_go_to_2.py | 056519625430a6d429a70c000a18973ce3d956ee | [] | no_license | JoelsonMiller/trabalhos | 76b45279bd02abc86337c0015dd87c90ae4d8cd1 | d30e4664576c05382c9b779e38884d0cc22e05c5 | refs/heads/master | 2021-07-12T19:26:27.099620 | 2020-08-05T13:19:53 | 2020-08-05T13:19:53 | 191,399,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import rospy
from turtlesim.msg import Pose
from geometry_msgs.msg import Twist
import math
pub = rospy.Publisher("/turtle1/cmd_vel", Twist, queue_size=10)
goal_x = 3.0
def callback(data):
#print("A pose em x = " + str(data.x) + " y = " + str(data.y) + " theta = " + str(data.theta))
twist = T... | [
"noreply@github.com"
] | JoelsonMiller.noreply@github.com |
55cadd97907633b2c24c61b2e9a54c14c2564999 | bcbddf91c1a59438e5508f9d92cb213a39df3448 | /imagegen/nodes/noise_node.py | d3561f86d50ba9e26840adb7fe51def634148d82 | [] | no_license | nfactorial/imagegen | 1323b9a1112a79c39a153df428345155f7feb048 | 7420f8cdcea12fddb92bb8dadfc8e0bb6bc0f165 | refs/heads/master | 2021-01-10T07:09:12.470665 | 2016-03-02T17:25:48 | 2016-03-02T17:25:48 | 52,427,109 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | """
Copyright 2016 nfactorial
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 agreed to in writing, software
dis... | [
"nfactorial@btopenworld.com"
] | nfactorial@btopenworld.com |
8af1f2b9b43cf26c7d092f16479f3b479eed5d23 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-10/popupmenu.py | 5226849ca7224afab2ef1c1e69a3aae5158a74d5 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1,
"Popup Menu Example")
self.panel = p = wx.Panel(self)
menu = wx.Menu()
exit = menu.Append(-1, "Exit")
self.Bind(wx.EVT_MENU, self.OnExit, exit)
... | [
"869999860@qq.com"
] | 869999860@qq.com |
7db90b76ad8b3755f314e61da0f7b4ddf29bd341 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /lambda单行表达式_0.py | dd751c9cc43d2361811c60ac8ee87e8da1b77fb7 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | GB18030 | Python | false | false | 500 | py | #!/usr/bin/python
# -*- coding: cp936 -*-
b= [x for x in range(2,100) if not[y for y in range(2,int(x**0.5)) if not x%y]]
print("100以内的全部质数是:",b)
c= [y for y in range(2,36)]
print('2--35全部输出',c)
b= [x for x in range(2,24) if True]
print('2--23全部输出',b)
d= [x for x in range(2,24) if False]
print('无返回: ',... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
f9b1ac42f013c89dbd7aaf9bcb5ea7ba62c3199e | 9050fbce29cbc3924cbc24fd40a655173e9e748e | /demo_else/else用法.py | 8bde27a0dd252f88587eaee6bdc426dd0e4f3528 | [] | no_license | yuesest/pydemo | f2772f8183ce375e0c6d05270f795966706f9898 | b53fa539c869035561c9b0dfdbd35c2546d5c263 | refs/heads/master | 2023-05-26T10:58:30.020883 | 2020-06-15T10:59:53 | 2020-06-15T10:59:53 | 202,110,544 | 0 | 0 | null | 2023-05-22T22:30:13 | 2019-08-13T09:28:10 | Python | UTF-8 | Python | false | false | 832 | py | # -*- coding: utf-8 -*-
# @Time : 2019/11/24 0024 9:12
# @Author : Vincent
# @Email : Vincent@163.com
# @File : else用法.py
# @Software: PyCharm
def else1(num):
for i in range(num):
if(i>10):
break
print(i)
else:
print("over")
# else1(5)
# print("##"*20)
# else1(20)... | [
"2015huangchunhao"
] | 2015huangchunhao |
0733491eee55234423a66abc2ff9356c899a6a40 | f0439b825a45259b4c47777513acf665281f4602 | /posts/migrations/0001_initial.py | 46c4b380a3bfbe587d358f7aff0921d3b8f86f38 | [
"MIT"
] | permissive | glweems/django-dummy-blog | 508e1262d1457739d0065bc7d8169cd795a84410 | a8b7c2be6a9f28e9c05cf96294983dbad7119766 | refs/heads/master | 2023-05-08T21:03:55.691842 | 2019-08-14T21:32:18 | 2019-08-14T21:32:18 | 202,423,677 | 1 | 0 | null | 2023-04-21T20:35:57 | 2019-08-14T20:47:19 | Python | UTF-8 | Python | false | false | 730 | py | # Generated by Django 2.2.4 on 2019-08-14 18:46
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Posts',
fields=[
('id', mod... | [
"gwgraphicdesign@gmail.com"
] | gwgraphicdesign@gmail.com |
dfe138a8b062dadc9bf0ccbf8f7a91c3026c7cc6 | 94db0ed850c3f9080a6beae1afcbf7eba1d50b5c | /3_task_2.py | 6ab8b4527b67a8a6a4e932e224aba2ae86d1cf5a | [] | no_license | vikulovm5/Homeworks | 212c97469906dc805253cfe182e74455b7338f74 | 0613b6a0b79c29774dfa2bfb245ef3fd8ab2dcd7 | refs/heads/master | 2023-06-19T09:46:09.590389 | 2021-07-19T20:21:42 | 2021-07-19T20:21:42 | 318,340,025 | 0 | 0 | null | 2021-07-19T20:21:43 | 2020-12-03T22:47:33 | Python | UTF-8 | Python | false | false | 439 | py | def data(name, last_name, year, city, mail, phone):
return name, last_name, year, city, mail, phone
a = input("Введите имя: ")
b = input("Введите фамилию: ")
c = input("Введите год рождения: ")
d = input("Введите город проживания: ")
e = input("Введите email: ")
f = input("Введите номер телефона: ")
print(f"{str... | [
"vikulov.1991@mail.ru"
] | vikulov.1991@mail.ru |
e42b09c7276cceed3af5975712adab3f66799982 | 6893b439bdc5243058fecf5769bd587fd9f56ec9 | /anchorhub/validation/validate_overwrite.py | 4140b4dee9eb3fb3229ea9d94af2b09806dec4fb | [
"Apache-2.0"
] | permissive | samjabrahams/anchorhub | 15f73a5bf3425c2558647d5a5c6eac95ef93c0ef | 5ade359b08297d4003a5f477389c01de9e634b54 | refs/heads/master | 2021-01-10T04:02:42.770945 | 2016-03-04T19:45:52 | 2016-11-18T19:17:50 | 50,009,409 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | """
Functions for validating the overwrite argument in combination with other
arguments
"""
import os.path as path
from anchorhub.exceptions.validationexception import ValidationException
from anchorhub.util.hasattrs import hasattrs
def validate(opts):
"""
Client facing overwrite validation. Checks to see i... | [
"sjabraha@gmail.com"
] | sjabraha@gmail.com |
76dfebb655f45b53d778e40b6ae290fc76785090 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Intermediate/C239/__init__.py | cf2036a70032f331ee1707580700ecc8e93ea54f | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 71 | py | #! python3
from r_DailyProgrammer.Intermediate.C239.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
0709557c1f679fa1a41d7157bfe2c991f6adadfc | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NTWS-AP-IF-MIB.py | d9da09616db8ef8ddc0d2db88e651ab9fd3c63d5 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,408 | py | #
# PySNMP MIB module NTWS-AP-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTWS-AP-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:16:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
fbe0979bb9bfd1111ac0cd12f14a2aecde30e551 | 892266713e500efa5ac04e1b8de812200410c956 | /devset.py | cd8b6e2d344c504aedbc001fde9be6ebc8fc85de | [
"BSD-2-Clause"
] | permissive | martinphellwig/django-g11n | 972eb95128637ec0b21efabad6b40ba02c30356c | 94eb9da7d7027061873cd44356fdf3378cdb3820 | refs/heads/master | 2020-08-29T12:24:04.687019 | 2016-10-10T15:54:32 | 2016-10-10T15:54:32 | 218,030,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #! /usr/bin/env python
"""
Developer Reset.
"""
import os
APP = 'django_g11n'
DIR = os.path.dirname(os.path.abspath(__file__))
def get_last_migration_file():
"Fetch the latest migration file."
_ = os.path.join(DIR, APP, 'migrations')
_ = [os.path.join(_, item) for item in os.listdir(_) if not item.starts... | [
"martin@localhost"
] | martin@localhost |
a14b9d7ee3ae9527c62b6bac4b30185f407e2cfb | 3f399b08c7f86604fc608d9cf065ada9459dcd9f | /blog_core/djangoapps/user_module/migrations/0001_initial.py | c157486a847968493f8e709fad04638c1f9dd93c | [] | no_license | mrxiaoxinyong/DBlog | 0aad823588bca47a4b3133f3fbb14028e33aa5b3 | 2c4280515e2c3867c5349dd04a9deeef58092e92 | refs/heads/master | 2022-10-08T04:30:50.046112 | 2020-06-01T09:15:13 | 2020-06-01T09:15:13 | 268,473,875 | 10 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2020-03-15 15:27
from __future__ import unicode_literals
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initi... | [
"xuzhongwen2@huawei.com"
] | xuzhongwen2@huawei.com |
1077e3a359f70ea9f79c9681b0bc59bf455afbb9 | 616f5d438c7662d2fedc5b55ec616e702a57cf1a | /downtime.py | 33c4fec10f960e751be99c4b6253e2a17ac818d0 | [
"MIT"
] | permissive | mozilla-it/security-patching | d07015c77bc768c0ae67e224ef23783dc5f51801 | 23cbbf39c5b5ccc47c6a818f8137abaeb55d49f1 | refs/heads/master | 2021-07-03T16:42:12.875642 | 2020-08-04T19:41:46 | 2020-08-04T19:41:46 | 95,240,563 | 0 | 1 | MIT | 2020-08-04T19:41:48 | 2017-06-23T17:11:59 | Python | UTF-8 | Python | false | false | 3,650 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
downtimes.py
'''
import os
import re
import sys
import socket, ssl
sys.dont_write_bytecode = True
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from ConfigParser import SafeConfigParser
class IRC(object):
def __init__(self, network, port, nick... | [
"scott.a.idler@gmail.com"
] | scott.a.idler@gmail.com |
42533e87831e34941babde24267e52e9219a54f1 | 6fa13067f1f5f50a48f7a535184c8abfb0334012 | /old/fall2019/lecture8/sqlite_example2.py | e6d430e24ea7aacf5ae9ecffb2af1c1309060823 | [] | no_license | mkzia/eas503 | 89193b889c39fc5dbc81217e1c6c3d2581b6929d | 4d7b548cc7fa8e938842d390f3df710c23d5f8fb | refs/heads/master | 2023-09-04T06:56:49.796298 | 2023-09-01T02:05:16 | 2023-09-01T02:05:16 | 205,002,120 | 70 | 123 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import os
import sqlite3
from sqlite3 import Error
def create_connection(db_file):
conn = None
try:
conn = sqlite3.connect(db_file)
conn.execute("PRAGMA foreign_keys = 1")
except Error as e:
print(e)
return conn
def create_table(conn, create_table_sql):
try:
c = ... | [
"mkhawarzia@gmail.com"
] | mkhawarzia@gmail.com |
b6f80b51afd99ba0773086834fe57db9c858d9da | 03de30415febd0771ace187ae6c3c21ad75296d9 | /migrations/versions/8e659f49dead_initial_migration.py | 08aeba6d220c8aedc4e2d4bad44086395c50994a | [
"MIT"
] | permissive | mmbukane-shy6/PITCH | 62f803dbbf6efa4574b7a465606fed8a61eb1011 | e460f7a9d999282b90e1d39c71bd8a60ce6f242e | refs/heads/master | 2022-07-03T13:50:46.844958 | 2020-05-08T14:06:23 | 2020-05-08T14:06:23 | 261,741,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | """Initial Migration
Revision ID: 8e659f49dead
Revises:
Create Date: 2020-05-08 12:45:46.285478
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8e659f49dead'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"sheiladidy9@gmail.com"
] | sheiladidy9@gmail.com |
fbcc54fea5b182b3e2383026e517dcaa50974606 | f20516958c39123f204e2bc442c91df7df1cc34a | /amqpstorm/exchange.py | 865a03bd8e75475a400c5bdf1d4068945cb5fa0b | [
"BSD-3-Clause"
] | permissive | bradparks/ReadableWebProxy | 3c2732cff64007afa8318b5b159616a529068322 | 81fbce3083471126942d2e2a298dba9eaf1092b1 | refs/heads/master | 2020-05-29T11:48:40.189530 | 2016-08-25T15:17:14 | 2016-08-25T15:17:14 | 66,568,996 | 0 | 0 | null | 2016-08-25T15:13:39 | 2016-08-25T15:13:39 | null | UTF-8 | Python | false | false | 5,689 | py | """AMQP-Storm Channel.Exchange."""
import logging
from pamqp.specification import Exchange as pamqp_exchange
from amqpstorm import compatibility
from amqpstorm.base import Handler
from amqpstorm.exception import AMQPInvalidArgument
LOGGER = logging.getLogger(__name__)
class Exchange(Handler):
"""AMQP Channel.... | [
"something@fake-url.com"
] | something@fake-url.com |
42c833655d0fc3460137731e23c8829b9f9b608f | c08cbc3589f2542ee2718ba900dec682e80cbd48 | /authentication_practice/forms.py | e31e8fc91248f5f8137a1075d05042ba5db5d264 | [] | no_license | pun1sh3r/flask_lab | 4abf1f1d4d1ada4de556e87e70861c3f5902c677 | 0e2fb2c9ed46d22a3a36584b36adb37d3c2ebfc0 | refs/heads/master | 2023-09-04T01:49:06.795779 | 2021-11-08T21:41:52 | 2021-11-08T21:41:52 | 421,600,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Email, EqualTo
# registration form
class RegistrationForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
# add email field here:
... | [
"lmendieta@fidelissecurity.com"
] | lmendieta@fidelissecurity.com |
e4cf4ab1bde5d12816c7568855788438a2c3bde5 | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/SetAutoScaleConfigRequest.py | 3e59df6b987590270e37c30aed6f6b4716a2eea1 | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 10,448 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
fc435a020a77c3ed5c0f0d15795d7431a52254f3 | 6b6cff01c462ae67765315dbe50c9c4aa6711cf8 | /tests/test_page_loader.py | c43db17e27b5a0d2a170b66b508575cafb031008 | [] | no_license | LyuPo7/python-project-lvl3 | cbc49ceb9d1845831aa0edbd873a1cce496517b0 | cf8248b1a11f9b2bcce31365ae3d20487ade403c | refs/heads/main | 2023-04-16T23:10:58.859114 | 2021-05-04T12:43:04 | 2021-05-04T12:43:04 | 304,558,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # -*- coding:utf-8 -*-
"""Tests for page-loader."""
import os
import pytest
import requests
import tempfile
import requests_mock
from page_loader import page
from page_loader import path
from bs4 import BeautifulSoup as bs
LINK = 'https://pythonjobs.github.io'
HTML = './tests/fixtures/source/pythonjobs-github-io.htm... | [
"lport@frtk.ru"
] | lport@frtk.ru |
37c1c3091247a88ff307abacfcd63fbc7b304bb5 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/versioneer/test.py | 32fd79d45d8ce3d9b488d3feae6bca952e983ac1 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import versioneer
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
e3e7ebee71f69fdbdd0c48659e3990cb42319055 | 513913bb77fc7f8f71e67de53d99bc8b33deb04e | /myDict.py | 4c71faa73b213c7bd4cbe1c7b0dd843304bd3dfe | [] | no_license | jmhughes018/camp-game | 3314e883f99a59269ea57b4fe9180f237f874104 | d72bc021ff89474fb2ee209f4ab37772d927126c | refs/heads/master | 2020-04-10T12:20:27.055457 | 2016-09-15T17:24:23 | 2016-09-15T17:24:23 | 68,007,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | myPhrases = ['CACTUS PACT', 'SIMPLE DIMPLE', 'RIP VAN WRINKLE', 'BLUE FISH RED FISH', 'WILDLY MILD', 'TURBO BLURB', 'PORK AND STORK', 'ELMOS ELBOW', 'GIMPY BLIMP', 'BANG BANG SHRIMP', 'MOCHA CHA CHA', 'ORANGE MOCHA FRAP', 'BUMMER SUMMER', 'WINTER LINT', 'FALL WATERFALL', 'DING DONG STAY', 'SPRING DYNASTY', 'EPSOM SALT'... | [
"joshhughes@Flint-Michigan.local"
] | joshhughes@Flint-Michigan.local |
713bb962b877fb213095665a6b71f9e0de8414e9 | cb4de1e6e0ceb4a8221b69c65443fb3d2e98978e | /users/forms.py | 78e2c493dca6f991c03aab3f41759756c8de157b | [] | no_license | jm5833/TTP-FS | b7ffc5b5f89910e6859a25dfbd189b9b6d665740 | 3dfeca71acc58bbfdea7e060b488ed2f2dd499e0 | refs/heads/master | 2020-07-01T21:32:04.818288 | 2019-08-17T01:56:59 | 2019-08-17T01:56:59 | 201,306,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from django import forms
from users.models import User
from django.contrib.auth.forms import UserCreationForm
#create a custom usercreationform
class RegistrationForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = (
'first_name',
... | [
"jm5833@nyu.edu"
] | jm5833@nyu.edu |
956a8c2e6f77f02477e08eab6172881f93d5b37c | 5ae3fb122408210fdd99aa02f3fb187059d8e4bf | /django_realtime/wsgi.py | 64a9d66a0a48710b2dcf33ec2a4708641545ec5c | [] | no_license | Tee-py/django_realtime | 1e129a738567eced96ac92b95e128b6f0bb9426b | 65dd68aa1215a2dcf08430bfa54ac26e4f71d528 | refs/heads/master | 2023-01-11T10:37:46.689473 | 2020-11-05T03:26:06 | 2020-11-05T03:26:06 | 310,178,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for django_realtime 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('DJAN... | [
"emmanueloluwatobi2000@gmail.com"
] | emmanueloluwatobi2000@gmail.com |
fc852f88b4e0c78bbfc8a6e3ef6906da90cd2fdc | 5e152949f9df4a2821cf0b5973af0b525dd895fc | /train.py | 480b50f3426accd2e1d4a00def40b477d64518f8 | [] | no_license | Chunlinx/WSAN4SNLI | 04ab4392219c02fe2e19923064ac154e7fc4ff3e | f331e587902934a5ec578a2df2dc0d8033e9a60f | refs/heads/master | 2020-03-28T03:53:13.354186 | 2018-08-30T09:06:32 | 2018-08-30T09:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,230 | py | # coding: utf-8
# author: huang ting
# created time: 2018-04-28-23:14
import tensorflow as tf
import pickle as pkl
import numpy as np
import models
import time
import os
import math
import sys
import utils
from scipy.stats import spearmanr, pearsonr
np.random.seed(1234567)
# os.environ["CUDA_VISIBLE_DEVIC... | [
"huangting@sensetime.com"
] | huangting@sensetime.com |
c2561953ef098004bb6a320a8cec415081a19e7a | 6b579dcde8214b6f47d669311fe5c5607ae8be6c | /MIT_6.00.1x_EDX_Code/ProblemSet4/ps4b.py | 1af8b51f28b4754fe44cca0be0f24b6affad5eab | [
"Giftware"
] | permissive | ulankford/python | e9eda397bd6e4831c86e79149d6930a20397737b | 36d72dd825201a7faf049effda0d4237d9d0f6de | refs/heads/master | 2023-01-24T05:41:16.222390 | 2020-11-18T03:22:33 | 2020-11-18T03:22:33 | 313,809,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,011 | py | from ps4a import *
import time
#
#
# Problem #6: Computer chooses a word
#
#
def compChooseWord(hand, wordList, n):
"""
Given a hand and a wordList, find the word that gives
the maximum value score, and return it.
This word should be calculated by considering all the words
in the wordList.
... | [
"u_lankford@yahoo.com"
] | u_lankford@yahoo.com |
18970aa0b8d05531fef6be6422178c963d0f2565 | d7fe48137c22a1a75fc671b3a6d27e16a6006318 | /tools/updateeventlist.py | 935c56ae2d3e08a2ef4c82cee4b33a477edc18b1 | [] | no_license | kcsfelty1337/demoinfo-csgo-python | ea180e0925b970ee966b443ea29283aba67c79dd | 9803b698142ede15402938044538f4d22981f15f | refs/heads/master | 2021-05-28T10:24:16.878136 | 2014-07-17T00:31:58 | 2014-07-17T00:31:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | '''
Creates a formatted list of game events
Created on Jul 12, 2014
@author: Chris
'''
from demoinfocsgo.demodump import DemoDump
from demoinfocsgo.proto.netmessages_public_pb2 import svc_GameEventList, CSVCMsg_GameEventList
import sys
import json
import collections
events = {}
_GAMEEVENT_TYPES = {2:"s... | [
"chris.m@live.nl"
] | chris.m@live.nl |
d05adb9e8f3b23791f785e4edd6a3ae0c8f2c18d | 0bad0c8529bac119d0c1d6ed9dc2891a50b62918 | /test.py | 21936eb46fa6f9ecabf0bffff14698c691c938bb | [] | no_license | devthakkar/nbahack | ec1d9711528bbff2df3258096dc783456ad50960 | cbfbe09037d503fb058eb363ddd9d6c1f21a3f0d | refs/heads/master | 2020-04-04T13:18:13.259558 | 2019-08-10T18:46:03 | 2019-08-10T18:46:03 | 155,956,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | from nba_api.stats.endpoints import commonplayerinfo
from nba_api.stats.endpoints import playerdashboardbylastngames
from nba_api.stats.static import players
player_info = commonplayerinfo.CommonPlayerInfo(2544, "00")
lebron_dict = player_info.common_player_info.get_dict()
# lebron_log = playergamelog.PlayerGameLog(25... | [
"theo.shiao@gmail.com"
] | theo.shiao@gmail.com |
b70b5c7cf84e0b280ac098442bbcf016824aff58 | 358720a705bb79fd22d8d6d7a54219ea875272e9 | /src/searchml.py | 78750da7afbc7222401aeadaaee856d5983e02bf | [
"MIT"
] | permissive | gbrian/naive-machine-learning | 4aabba3af76c190ad4254f7281e5d1f9c80daea8 | 2f31be1111f3cb94e8fa8df00837000fdf30dac1 | refs/heads/master | 2021-01-09T20:19:27.145016 | 2016-07-29T08:08:39 | 2016-07-29T08:08:39 | 64,289,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | # http://chrisstrelioff.ws/sandbox/2015/06/08/decision_trees_in_python_with_scikit_learn_and_pandas.html
from __future__ import print_function
import pickle
import os
import subprocess
from optparse import OptionParser
import pandas as pd
from sklearn.tree import DecisionTreeClassifier, export_graphviz
# Pa... | [
"Ramones77"
] | Ramones77 |
8a362a0df735219f29c68495bb533f8f394296d1 | fa0aea96b4c1d3dce39ce74a1396b562b06f349d | /code.py | 0e7034935d1e4691a0c71e4e635a7d331375aa3b | [] | no_license | EMID3/av3intro | d4ae8a7c2b6a8c0f530284ae384f099f8de63786 | 98316d9fa38995ab796895d93388379b94a9c424 | refs/heads/master | 2020-06-11T02:04:25.222832 | 2019-06-26T03:26:42 | 2019-06-26T03:26:42 | 193,822,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import cv2
img = cv2.imread("mdfoto.jpeg", cv2.IMREAD_COLOR)
stylization = cv2.stylization(img)
cv2.imshow('mdfoto2', stylization)
cv2.waitKey(0)
cv2.destroyAllWindows()
cv2.imwrite("mdfoto_result.png", stylization)
| [
"noreply@github.com"
] | EMID3.noreply@github.com |
748b1a4c649433f18bc779c59fa3d4da540bf330 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/libs/pagination.py | f3aaf30a3bad15075443aa054f66f133a9d41638 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 206 | py | from rest_framework.pagination import PageNumberPagination
class StandardPageNumberPagination(PageNumberPagination):
page_size = 1000
page_size_query_param = 'page_size'
max_page_size = 10000
| [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
0779a1edd54738654a758385bdb33e9439b926a2 | a833546104577c7edf624f390224289b429ca551 | /data_py/test/studyClass.py | 2e0a03994a505b54eb6dfc9a74b907b688c8bf11 | [] | no_license | xiaof-github/stocklist | 2867f85bf8d9d6a72e7ff15be18df3a0635115c3 | dc43498ec25498bae12cd47893d58e424820b9dd | refs/heads/master | 2021-01-09T06:30:19.580554 | 2017-09-13T15:14:41 | 2017-09-13T15:14:41 | 80,996,398 | 3 | 0 | null | 2017-09-13T14:54:56 | 2017-02-05T13:58:10 | JavaScript | UTF-8 | Python | false | false | 1,334 | py | class Student(object):
count = 0
books = []
def __init__(self, name, age):
self.name = name
self.age = age
pass
Student.books.extend(["python", "javascript"])
print "Student book list: %s" % Student.books
# class can add class attribute after class defination
Student.hobbies = ["readin... | [
"xffit@163.com"
] | xffit@163.com |
8949fd27f20bac7ca8fa3e52863191da0940371b | 98fbbd0518b5618746e28d4e86d1ea5d1107759f | /home/migrations/0011_auto_20190321_1456.py | 667175809b0645abd674bdfb8877ce774ca8e5c1 | [] | no_license | fabriciolc/tupperTools | 2670f3baa203cb20cf4af13b0f7ad4603a1b6562 | 93bc4fbe9cdab6ae113304b99d5decfc23315d16 | refs/heads/master | 2020-05-01T01:02:20.893023 | 2019-04-30T17:05:08 | 2019-04-30T17:05:08 | 177,185,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 2.1.7 on 2019-03-21 14:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0010_auto_20190321_1419'),
]
operations = [
migrations.RemoveField(
model_name='ocorrencia',
name='codigo_consultora... | [
"fabri_mu@hotmail.com"
] | fabri_mu@hotmail.com |
fff1cffde4038a400c759755602b96895cbcf9a8 | 322b5f31448bd45a000d50c98006ab2702ad763c | /scripts/launchpad | d4b3dea461dc4072bee6968203fd63f8ff2102dd | [] | no_license | kdpuvvadi/pop | 0217464c3a86efd802da318361c78d8e757d745f | 63825e3336f925fc9a1f03e232524f1e6b7b8b7b | refs/heads/master | 2022-12-04T12:44:50.383299 | 2020-07-16T20:39:35 | 2020-07-16T20:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,331 | #!/usr/bin/env python3
import argparse
from debian.changelog import Version
from debian.deb822 import Deb822, Sources
from os import path
import shutil
from subprocess import check_call
import sys
from lib import foreach_repo, launchpad, launchpad_anon
parser = argparse.ArgumentParser(description="Upload packages to... | [
"jeremy@system76.com"
] | jeremy@system76.com | |
8e9785baac8ff556a581e1e9f2f3a55fba065370 | 771de2d30593f78ec171e11adcf6c5c2e27650a4 | /model/albert/cnn.py | 07eeaaf3bd9d0a3d8901e72f4ca22d0887a4ac98 | [] | no_license | hsuehkuan-lu/sentiment-classification | e32af916d801b221bb0645e2884dcd0257ee6582 | 0b206e2d9a7d1212b707b8157a963c42122cb151 | refs/heads/main | 2023-06-13T23:42:06.461165 | 2021-07-11T07:12:37 | 2021-07-11T07:12:37 | 376,563,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | import torch
import torch.nn as nn
from model.base import ModelBase
from transformers import AlbertModel
class Model(ModelBase):
def __init__(self, bert_hidden_size, hidden_size, kernel_size, dropout, pretrained_model, *args, **kwargs):
super(Model, self).__init__()
# [B x L] -> [B x L x D], [B x ... | [
"s810142000@gmail.com"
] | s810142000@gmail.com |
234d3f7663e86886eea126cca3488d474d5b0a96 | cbf4e6e92f4cbb4b56002de0c7cdf369a7e5a2d0 | /vote/urls.py | b13e5e8247a898de89519bf0b98c5e44dc67987b | [] | no_license | sasha361322/vote_site | b1c827284a1bf214e1a35533fcadfee11d4c44e1 | 2e641a96e0efb1b82bbcb49c87bbb4f58ab3fa38 | refs/heads/master | 2020-04-05T23:16:54.352591 | 2016-01-12T19:15:33 | 2016-01-12T19:15:33 | 49,219,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.conf.urls import patterns, include, url
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^vote/get/(?P<vote_id>\d+)/$', 'vote.views.vote'),
url(r'^vote/addanswer/(?P<vote_id>\d+)/(?P<answer_id>\d+)/$', 'vote.views.addanswer'),
url(r'^vote/addvote/$', 'vote.views.... | [
"sasha361322@gmail.com"
] | sasha361322@gmail.com |
f28e72b2529f3e6f641908d677f59d1829fa37be | 5cdc56d480380ba519be89a6f25bc7a2b306ce7c | /watson-framework-archive/imcrypt/app.py | 77f6431232a874ce0a4b892469340710fd2b8299 | [
"BSD-2-Clause"
] | permissive | sigmundv/encrypt-image | c94d05d294565a0f5c2248022eea54a73f7c96f6 | b37bc93b56be1cc7934c44705df3ba52906fe18e | refs/heads/master | 2020-12-02T23:57:40.171386 | 2017-07-22T15:20:04 | 2017-07-22T15:20:04 | 95,965,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | # -*- coding: utf-8 -*-
from watson.framework import applications
from imcrypt.config import base as config
application = applications.Http(config)
| [
"sigmundv@gmail.com"
] | sigmundv@gmail.com |
80ed617f49dd786e0529d9c3caf25960f00a657b | 9d2a4be0db964ca2061aeae5cc469c19fcbc4c45 | /Language-Day-EL.py | 5c85fed474e17c85f9361857c4fb528a0060b580 | [
"Apache-2.0"
] | permissive | athenian-ct-projects/Language-Day-EL | 464f0242d70f3957aae617a7d6da22d67371d7b5 | 4f8c135e6574335891610b90dac87f8a75f60073 | refs/heads/master | 2021-03-31T15:53:01.021244 | 2020-03-18T02:30:42 | 2020-03-18T02:30:42 | 248,117,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,919 | py | # DO NOT RUN THIS CELL WHILE PLAYING GAME (IT RESETS PROGRESS)
# This sets list to nothing at start of game
fs=[]
# Vowel function:
# Checks if the input (that is a noun) starts with a vowel and inserts a or an
# depending on what it starts with. It also adds the input to the end of the
# list (fs).
def vowel():
i... | [
"noreply@github.com"
] | athenian-ct-projects.noreply@github.com |
c7f974d728172a7299772df1316b74e2b84e35f1 | d0daad3c1afb5ad08f98ba123b20b3b011387b55 | /21-tkinter/02-textos.py | a2242a017b8092a8c456dfc08d4db6c55749fdef | [] | no_license | RubennCastilloo/master-python | a0c17201f947e19905aea9f8bf991395456e2d3d | a12a6fb4bf6884df6df3615a5f4494777cbbbabd | refs/heads/main | 2023-08-12T17:03:09.124907 | 2021-09-16T18:55:38 | 2021-09-16T18:55:38 | 370,833,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from tkinter import *
ventana = Tk()
ventana.geometry("700x500")
texto = Label(ventana, text="=>Bienvenido a mi programa<=")
texto.config(
fg="white",
bg="#000000",
padx=50,
pady=20,
font=("Fira Code", 30),
justify=RIGHT
)
texto.pack(anchor=W)
def pruebas(nombre, apellidos, pais):
return ... | [
"rcastillo@raivtech.com"
] | rcastillo@raivtech.com |
1f970ca9cf4bace4e59a2748dfe36151bf58600f | 330db133f16c294b8d0f4bb7213bbafc18a86d55 | /tests/test_find_command.py | 6c56992ff984d16d04e47bcf0e1cbebdf3168e13 | [
"MIT"
] | permissive | bgschiller/clickthrough | 612cedf070f1599ef140c720ee18e62a760a8dd9 | ea68a1412cc54ba6ec40d0a760c6a93c8cf57255 | refs/heads/master | 2020-05-18T01:53:44.135760 | 2014-07-13T22:32:01 | 2014-07-13T22:32:01 | 21,776,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import clickthrough
import os
import shutil
from nose.tools import with_setup, assert_raises
def test_find_command():
clickthrough.get_command('hello')
clickthrough.get_command('hello.hello')
def test_find_on_bad_command():
assert_raises(Exception, #should be more specific...
clickthrough.get_co... | [
"brian@topopps.com"
] | brian@topopps.com |
9372d896b7050b2587a7d13762a113a2e9af5b33 | cfa2417f07259e512a1bbface4f1f4ccd66502c6 | /test/test_Likelihood/test_LensLikelihood/test_base_lens_likelihood.py | 6ecb7556a125e7d02dc4226cdb44037390dd4b9d | [
"BSD-3-Clause"
] | permissive | jiwoncpark/hierArc | 3779439533d3c9c5fe2e687f4bdf737dfc7673e8 | 3f31c0ae7540387fe98f778035d415c3cff38756 | refs/heads/master | 2021-05-18T21:32:45.590675 | 2020-12-23T00:01:01 | 2020-12-23T00:01:01 | 251,431,028 | 0 | 0 | NOASSERTION | 2020-03-30T21:20:08 | 2020-03-30T21:20:08 | null | UTF-8 | Python | false | false | 4,045 | py | import numpy as np
import pytest
import unittest
from hierarc.Likelihood.LensLikelihood.base_lens_likelihood import LensLikelihoodBase
class TestLensLikelihood(object):
def setup(self):
np.random.seed(seed=41)
self.z_lens = 0.8
self.z_source = 3.0
num_samples = 10000
ddt_s... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
e9fd1db94e460e5bc79127bf14a7e482c47db36f | 448dbe8c9006de73839a1444da7175de4381a903 | /src/GUI_MainWindow/DockElements/ScriptWidget.py | 42b31866cbd92231d80b930f9a6268e301b88ec2 | [] | no_license | GuillaumeReinisch/Impact | 2e5f75b48647e1431e65fc23da03506d38851e77 | 5a7f727f7f07591c24e28a44a89ab7da31b989d6 | refs/heads/master | 2021-01-25T07:19:18.010080 | 2014-01-31T12:22:37 | 2014-01-31T12:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 1 14:33:31 2013
@author: chico
"""
import sys, functools
from PySide import QtCore, QtGui
from TreeModels import *
from DockElements.PythonConsole import *
from DockElements.PythonHighlighter import *
class OutLog:
""" Writer of python's out streams into a QTextE... | [
"reinisch.gui@gmail.com"
] | reinisch.gui@gmail.com |
9c9da1e97169f478d6774822d571de995bc96c6f | baf1dddb1e1dd4ff878438726c4f78736895e994 | /reddwarf/tests/api/mgmt/instances_actions.py | 08e895727dc550af5aefd92c704584dbb2ecc15a | [] | no_license | SlickNik/reddwarf | a8bd0a5e9431ff9bcba02e9134ab42f9ac1ab4c6 | 267e29477909f237ccf06e4c86e63be7ba54bd07 | refs/heads/master | 2020-04-06T04:52:30.684626 | 2013-04-30T20:25:13 | 2013-04-30T20:26:00 | 8,933,765 | 0 | 0 | null | 2015-11-10T14:36:18 | 2013-03-21T16:56:17 | Python | UTF-8 | Python | false | false | 4,700 | py | # Copyright 2013 OpenStack 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 a... | [
"jcruz7@gmail.com"
] | jcruz7@gmail.com |
65bdc4f9eb4bdbd64aa2920720db1f17d5831c9b | c7c0bcbeb06a00531795cefdcdb033cfdc25d273 | /chapter-11/orders/setup.py | 5fab50bb1de07e80c29fb2b5bada47e2046c7096 | [
"Apache-2.0",
"MIT"
] | permissive | wallacei/microservices-in-action-copy | c05a9405e9312576a260b8e001d0c9ea2f1fde18 | f9840464a1f9ec40622989e9e5377742246244f3 | refs/heads/main | 2023-05-31T06:42:13.535322 | 2021-06-19T19:23:16 | 2021-06-19T19:23:16 | 377,201,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='orders',
version='0.0.1',
description='Orders microservice',
... | [
"iwallace1975@gmail.com"
] | iwallace1975@gmail.com |
aa5a6d6bffb3faf7cd5237c368d24247a9cfb507 | 0c4b71fcf867fbd32148f84f228fd510cc4e46d9 | /lastmile/migrations/0016_actor_agreement.py | e62c961eff152a77250d9ac1484ef3150b292af7 | [] | no_license | acounsel/lastmile | 0f4a88c767752b0fd160d536024895250b5cb633 | e54ec5357d03cf083ea3bbff0a8f1ccd5ccd832b | refs/heads/master | 2021-08-26T00:39:58.089921 | 2021-08-13T18:25:58 | 2021-08-13T18:25:58 | 242,027,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.0.5 on 2020-05-13 03:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lastmile', '0015_agreement_slug'),
]
operations = [
migrations.AddField(
model_name='actor',
name='agreement',
... | [
"sarrabi@gmail.com"
] | sarrabi@gmail.com |
b249358dff9c245fe79b7fef88d3504beacff288 | 7783f5498bc0d5a4bc141e54f30a76c74d19ee07 | /web/webserver.py | c4af9a5ec7b2a21606c38a38640bc7c43807d51e | [] | no_license | danhamilt1/muons | 14d9205c973f6e228c012f7cb6de7abf55ba60db | 4e372572d2e821175f898edb15e437dec8aa0f32 | refs/heads/master | 2020-12-26T02:39:41.168946 | 2014-11-05T20:07:29 | 2014-11-05T20:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # from XRootD import client
from flask import Flask, render_template, url_for, send_from_directory
from datetime import datetime
# import pygal
# from pygal.style import LightSolarizedStyle
# from detector import Event
import random
app = Flask(__name__)
@app.route("/")
def home():
now = datetime.now()
timeS... | [
"justin2.salmon@live.uwe.ac.uk"
] | justin2.salmon@live.uwe.ac.uk |
3f728415282774230325f355da06cc6b4cb449c8 | ee1ad2c3fbd433f0a75034c7f90944bf6c7d80e6 | /main.py | 0048758b5e1b7bba1762c8bf719381b3cd390431 | [] | no_license | carolnesso/MD-project | 74499bbe66264ae45e6e0059e8284d5b988726ae | 9e261e4e98d46667b9bdfde3ddf429caad131bc7 | refs/heads/master | 2020-07-07T17:35:25.519437 | 2019-08-20T20:32:14 | 2019-08-20T20:32:14 | 203,423,485 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | """
ARQUIVO PRINCIPAL (main.py)
"""
import prime
import keys
import mdc
import dictionaryies
import exp_modular
import savefile
def encrypt(code_msg, n, e):
"""
Recebe uma sequencia numerica (onde cada numero representa um caractere
digitado pelo usuario na messagem original), o valor 'n' e o expoente 'e'... | [
"noreply@github.com"
] | carolnesso.noreply@github.com |
df4e0d2623d4485a4a60b229bf38edd8181200c1 | e5fc822c86c0257397ba472f4e841fa00402af8f | /parserforsentiment.py | c86109f27f4a4fc0699052735b8e9372d9fd3acf | [] | no_license | nuttea/jupyter | 274869b05c4bd3b3b6649cac0c1b298eee02b0d1 | 19f315714aecb4fb860a92bd811561de5b6a7a06 | refs/heads/master | 2021-01-12T08:23:28.513208 | 2016-12-15T13:26:41 | 2016-12-15T13:26:41 | 76,561,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import csv
from nltk.corpus import stopwords
import re
import string
stop = stopwords.words('english')
inter1 = []
posts_clean = []
posts = []
posts_found_with_brand = []
limited_post = []
limited_post2 = []
with open('edmunds_extraction.csv') as f:
rows = csv.reader(f, delimiter = ',')
for row in rows:
... | [
"nuttea@gmail.com"
] | nuttea@gmail.com |
f186738e39d4f69aeca3c6b07920c064c8ae49d8 | 9b83834db424c4ae525ae161ccf40dd8ac2c17ba | /tools/pdf-req-parser/autosar_pdf_parser/__init__.py | a9ffe51834f557d8e38b9ab5c35d3d72c5fec889 | [
"MIT"
] | permissive | mmyszke/AUTOSAR-Adaptive | cc2e5ba6462a2de78f87a49dccefd73be4c136b2 | c45550b9e1e450de34b2ea756443d296bdbb9928 | refs/heads/master | 2022-11-30T00:58:46.007731 | 2020-08-07T06:59:46 | 2020-08-07T06:59:46 | 267,556,525 | 0 | 0 | MIT | 2020-05-29T12:13:07 | 2020-05-28T10:08:46 | null | UTF-8 | Python | false | false | 2,883 | py | import os
import simplejson
from PyPDF2 import PdfFileReader
class SimpleRequirementsParser(object):
def __init__(self, path, verbose=False):
self.input_directory = path
self.input_list_file = '{}/input.json'.format(path)
self.input_list = SimpleRequirementsParser.get_input_list(self.input... | [
"noreply@github.com"
] | mmyszke.noreply@github.com |
5d2b2a4d2b4b746f879dd700bf735501568d8707 | bcafa5ae72554aa70868f8d6c3a5a25b40924e21 | /models/retrieval/model.py | b6c9a742113e70d3583eddf5397e55e22386cc04 | [] | no_license | pxu4114/Generative_CVS | 0f100bb12bdfbd94e238a8b4f154a22f8573ec66 | 399ff7bc919becef0c02fa01d6d1be917ff05690 | refs/heads/master | 2020-07-03T18:44:38.133990 | 2019-10-24T15:28:26 | 2019-10-24T15:28:26 | 202,008,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import tensorflow as tf
from tensorflow.contrib import slim
# from flip_gradient import flip_gradient
tf.set_random_seed(999)
def visual_feature_embed(X, emb_dim, is_training=True, reuse=False,dropout_ratio=0.5):
with slim.arg_scope([slim.fully_connected], activation_fn=None, reuse=reuse):
net = tf.... | [
"pxu4114@rit.edu"
] | pxu4114@rit.edu |
9bf257fa6c138050306f2d742f190f5687aa2ada | af6c649718b518e20bd8c5b1f26a3780f8babd1c | /time_planner.py | 00d9ca1149338f838e8980b97c6a2eba478010c3 | [] | no_license | quanewang/public | 31274d9c3f6cd96a62872620d7d4f81957734ecd | 7593f887ca54f8b393bbd0b196e498665663d665 | refs/heads/master | 2022-01-04T08:09:51.940244 | 2022-01-04T02:23:14 | 2022-01-04T02:23:14 | 119,501,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | """
--LESSON
--- [b[0], a[1]]=>[b[0], min(a[1], b[1])]
--- i += 1 => j += 1
--- [max(a[0], b[0]), min(a[1], b[1])]
Time Planner
Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is... | [
"Quan.Wang@cambiahealth.com"
] | Quan.Wang@cambiahealth.com |
0a295fa014ecd07653abfe29e4748732058d94cd | bcc78f8113cbaaa14aeaea5dd3a88f46a636c8d4 | /CircuitPlaygroundExpress_LightSensor.py | fc3ed4907b11afe46877e394a4b8dd506f3ce877 | [] | no_license | bribrown/CircuitPython | 6ae59a800202a76741e686758b87c94added23ee | e37d50ae18d97ea54b158f54629ff0eda8a1e10d | refs/heads/master | 2022-04-01T02:55:46.786629 | 2020-01-30T02:31:42 | 2020-01-30T02:31:42 | 116,894,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # CircuitPlaygroundExpress_LightSensor
# reads the on-board light sensor and graphs the brighness with NeoPixels
from simpleio import map_range
from analogio import AnalogIn
import board
import neopixel
import time
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, auto_write=0, brightness=.05)
pixels.fill((0,0,0))
pixel... | [
"noreply@github.com"
] | bribrown.noreply@github.com |
98d38db48e4ed92aa5459825d91eb2f6629564f3 | 45ed991d87ff31797dc5ea692eea304a4c2ff07e | /faq/views.py | 2c9546b9416ee83f9c444dfd5129dad0da7af9d3 | [] | no_license | Hadian1989/FAQ | 4314686858c38895970bf5de176891974ca87b87 | e8e0bf44e681162ac767829868231993ba0de79a | refs/heads/main | 2023-07-31T18:41:34.210333 | 2021-09-09T15:26:25 | 2021-09-09T15:26:25 | 404,612,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.shortcuts import render
from django.views.generic import TemplateView
from .models import *
# Create your views here.
def show_categories(request):
return render(request, "categories.html", {'categories': Category.objects.all()})
class HomePageView(TemplateView):
template_name = 'home.html'
| [
"ghazal.hadiyan@gmail.com"
] | ghazal.hadiyan@gmail.com |
a08b6a7a99b0ab5b2de2ff6bf12388fbf6319a48 | c4bfd8ba4c4c0f21bd6a54a9131f0985a5a4fa56 | /crescent/resources/s3/bucket_policy/constants.py | 5ba83647b2baf057d3d871cc99288b7e11f8f64e | [
"Apache-2.0"
] | permissive | mpolatcan/crescent | 405936ec001002e88a8f62d73b0dc193bcd83010 | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | refs/heads/master | 2022-09-05T04:19:43.745557 | 2020-05-25T00:09:11 | 2020-05-25T00:09:11 | 244,903,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from crescent.core.constants import get_values
class _RequiredProperties:
class BucketPolicy:
BUCKET = "Bucket"
POLICY_DOCUMENT = "PolicyDocument"
# --------------------------------------------------
class ResourceRequiredProperties:
BUCKET_POLICY = get_values(_RequiredProperties.BucketPol... | [
"mutlupolatcan@gmail.com"
] | mutlupolatcan@gmail.com |
ecf6ce05ca13be717536bba2b129acced9e3020d | 3cb844c60d1397cb04b9fa5584e0f932fac9fbc3 | /cluster.py | 856c77918f547c8344a3944a918b1518832df5a8 | [] | no_license | vijayaramagopalan/Emotion-age-and-ethinicity-recognition | f1dee371abf37adba996e2b6e0d087f5c48183dd | 93a96575a967a9ba15b9d4938ae1c694b84b3903 | refs/heads/master | 2020-07-10T23:23:35.526308 | 2019-08-26T10:51:46 | 2019-08-26T10:51:46 | 204,395,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,089 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from scipy import misc
import tensorflow as tf
import numpy as np
import os
import sys
import argparse
import facenet
import align.detect_face
from sklearn.cluster import DBSCAN
def main(args):
pnet, rn... | [
"noreply@github.com"
] | vijayaramagopalan.noreply@github.com |
a2475d2665bf611b955e1b272f6b4d90ee9bc82a | f5fb9b4eead0b32d51fd54c099c1b15d0551fca6 | /venv/grey_ct.py | 939983b9f3bf0c952c482216761965f5963504b0 | [
"Apache-2.0"
] | permissive | hellending/CT-conv2d_SVM_random-forest | 3ccbea45b40f1aeab0fc318eb5bbb4534dc0b3ff | 100807fadbb55297cad45ce2163ed9a14e3149ab | refs/heads/main | 2023-02-08T13:07:21.880205 | 2020-12-18T18:26:22 | 2020-12-18T18:26:22 | 321,894,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,881 | py | import tensorflow.compat.v1 as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import grey_picture as rd
import os,sys
from sklearn.model_selection import train_test_split
import time
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
tf.disable_eager_execution()
def creat_label(length,classficatio... | [
"1499983040@qq.com"
] | 1499983040@qq.com |
0c6f4a482144c0528ccfe935a6c4a8422cf0bd92 | 04ff52cae8e6645ce14347933a429081ae12d055 | /Chapter 2/21211 Sara.py | b4b237555ee82121723f5236016a8e39df1a33ee | [] | no_license | smaxwell953/PythonLabs | d0518ef038f586ce75fbc5cd9fb4827be9396381 | d29e7e0cffe86ac2ed64664e851c1d4b3798b057 | refs/heads/master | 2021-07-04T19:13:53.260126 | 2021-04-26T01:49:46 | 2021-04-26T01:49:46 | 233,175,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #Write a one-line piece of code, using the print() function, as well as the newline and escape characters, to match the expected result outputted on three lines.
print('"I\'m"\n''""learning""\n''"""Python"""')
| [
"noreply@github.com"
] | smaxwell953.noreply@github.com |
f8aa9cc771efab36e523016cc18be7dd92b8bf88 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_study_group_values_controller_api.py | 671f7e874460bcd47617d26a420f26a608131ef4 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import rcc
from rcc.api.study_group_values_controller_api import StudyGroupVa... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
a232db2616848042691d1e7c825e015af8882aab | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/3409403/snippet.py | 0e119325f7fbab1ea9ab0c1fde4fd52135828a49 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 547 | py | from google.appengine.ext import db, ndb
from google.appengine.datastore import entity_pb
def db_entity_to_protobuf(e):
return db.model_to_protobuf(e).Encode()
def protobuf_to_db_entity(pb):
# precondition: model class must be imported
return db.model_from_protobuf(entity_pb.EntityProto(pb))
def ndb_enti... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
d192679b29b6356a0584a298b3f3bd1b5f8b88c7 | 0bebea87a84635978aead5294a1d366c92821582 | /conf/settings/deploy.py | 7502aac5db41169a6a9eb58ce8d33b17878fec6c | [] | no_license | uibeom96/uibeom96test | 8bdffbed53cbacc08eabbc0cc28f9a12bdbe2a77 | 489cd8af10a69ee6a10369a366ea595c1f77d7f0 | refs/heads/master | 2023-04-18T06:20:25.788686 | 2021-04-21T12:50:36 | 2021-04-21T12:50:36 | 360,168,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from conf.settings.base import *
import dj_database_url
DEBUG = False
ALLOWED_HOSTS = ["*"]
DATABASES = {
'default': {
'ENGINE': get_secret_key("DB_DP_ENGINE"),
'NAME': get_secret_key("DB_DP_NAME"),
"USER": get_secret_key("DB_DP_USER"),
"PASSWORD": get_secret_key("DB_DP... | [
"dmlqja7570@daum.net"
] | dmlqja7570@daum.net |
990c0d14f1a9a11941085c4fae1209efd43555c4 | e9988eb38fd515baa386d8b06bb7cce30c34c50d | /sitevenv/lib/python2.7/site-packages/django/utils/translation/trans_real.py | 6ab071dabaf28cf2d985efd0f10d8189984cabaf | [] | no_license | Arrrrrrrpit/Hire_station | 8c2f293677925d1053a4db964ee504d78c3738d8 | f33f044628082f1e034484b5c702fd66478aa142 | refs/heads/master | 2020-07-01T01:24:18.190530 | 2016-09-25T20:33:05 | 2016-09-25T20:33:05 | 201,007,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,622 | py | """Translation helper functions."""
from __future__ import unicode_literals
import gettext as gettext_module
import os
import re
import sys
import warnings
from collections import OrderedDict
from threading import local
from django.apps import apps
from django.conf import settings
from django.conf.locale... | [
"kunal1510010@gmail.com"
] | kunal1510010@gmail.com |
5aadabb6bec3aec95c8f54c9736e197ced6a47ab | 0daf6763c960cd898e9bb5612b1314d7e34b8870 | /mnist_1/data.py | b1bf29e2af4aca2bbe3f70fd3c775cddef6107cf | [
"MIT"
] | permissive | evanthebouncy/nnhmm | a6ba2a1f0ed2c90a0188de8b5e162351e6668565 | acd76edaa1b3aa0c03d39f6a30e60d167359c6ad | refs/heads/master | 2021-01-12T02:27:32.814908 | 2017-04-01T05:01:24 | 2017-04-01T05:01:24 | 77,956,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,180 | py | import numpy as np
from scipy.misc import imresize
from scipy.ndimage.filters import gaussian_filter
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
X_L = 10
L = 14
N_BATCH = 50
OBS_SIZE = 20
KEEP = 0.6
# ---------------------------- helpers
d... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
70b79e0772e5b3d392cca2ec29ce149af520b38c | 583e9099d4905a554bbd8a59e1fce6ebe16f34a7 | /coords.py | 615f56a2e8089d22d9718f5d7396f88a1cd019b0 | [] | no_license | App24/Minecraft-Coordinate-Convertor | f74c2e2bb1f9cd93012bf077dd5805601ef0cd18 | 343f6e5f6d08fb8efa76225ec74e58c17194e355 | refs/heads/master | 2022-12-23T05:16:29.589715 | 2020-09-30T05:29:19 | 2020-09-30T05:29:19 | 299,817,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,009 | py | import tkinter #Tkinter is a module that comes with python
from tkinter.font import * #Prevents doing tkinter.font.Font
def popup(title,_text,_fg="black"):
toplevel = tkinter.Toplevel()
#Setting Icon
icon=tkinter.PhotoImage(file="icon.gif")
toplevel.tk.call("wm","iconphoto", toplevel._w, icon)
#Set... | [
"kado.fofinho2@gmail.com"
] | kado.fofinho2@gmail.com |
7d785f758a09bb73456db84de1934fe4b7496de3 | 625a50a9d6664e10578094fc943a5f0595d6d41c | /mysite/travel/apps.py | bc26ab87a4ea6ee6855bb07c27973878728c74c0 | [] | no_license | jll2884/testing | 92b325d089b370600bc5bfbf5125a88ba4b229f2 | 067afb97ec2d94160550a9a452b580c222f199aa | refs/heads/master | 2020-04-23T19:56:03.723730 | 2019-02-19T06:53:59 | 2019-02-19T06:53:59 | 171,422,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class travelConfig(AppConfig):
name = 'travel'
| [
"Simplylopez7@gmail.com"
] | Simplylopez7@gmail.com |
3775521386c59304a0872b9053c2111fdfe7ca55 | da687718aa8ce62974090af63d25e057262e9dfe | /cap14-funcoes/extras/entrada.py | 8f9a269e72ba810cb2bb7d637f9fbdeaae697fbd | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | def valida_inteiro(mensagem, minimo, maximo):
while True:
try:
v = int(input(mensagem))
if v >= minimo and v <= maximo:
return v
else:
print(f'Digite um valor entre {maximo} e {minimo}.')
except: print('Voce deve digitar um numero i... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
1c1842851e7ef3306eade4b5362a299e7a952d0f | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /django2/bookmarks/bookmarks/settings.py | 8277bde8c3c7f242eb407532c2ef68e2c0ae896b | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 3,367 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.0.8.
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
... | [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
c4c19d754d5ca8299ee238a2f3fe86ae2ca8ca8d | da650c454c9f961c38310de25dc9367d19873ae5 | /chalice/blog/models.py | 464b25b4bdeea57b7cd5695b1881c519ed97b021 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | andrimarjonsson/chalice | c356e39ae4fa11419d11725db8429482667b50da | e0140cf415372925aa97ef26ef306a868b66fd3e | refs/heads/master | 2021-03-12T22:08:15.976799 | 2013-04-04T18:14:14 | 2013-04-04T18:14:14 | 3,710,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from sqlalchemy.ext.hybrid import hybrid_property
from datetime import datetime
from chalice.extensions import db
from chalice.helpers import slugify
class Post(db.Model):
__tablename__ = 'posts'
# -- Columns
id = db.Column(db.Integer, primary_key = True)
_title = db.Column('title', db.String(255), n... | [
"andri.m.jonsson@gmail.com"
] | andri.m.jonsson@gmail.com |
a9ab497015525833279bb4f7cb7b294f7e35efe7 | 5fd401dbc7b9ac782d387067c43a559971de5028 | /modules/file/upload.py | 5ad9b4a030323d70e88e69b37d7ef047af896c60 | [] | no_license | SagaieNet/weevely3 | 0b41be1bbd08a8ebde1e236775462483ad175c6e | c169bbf24807a581b3f61a455b9a43a5d48c8f52 | refs/heads/master | 2021-01-22T15:00:19.838734 | 2014-09-30T20:00:07 | 2014-09-30T20:00:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | from core.vectors import PhpCmd, ModuleCmd
from core.module import Module
from core import messages
from core.loggers import log
import random
import hashlib
import base64
class Upload(Module):
"""Upload file to remote filesystem."""
def init(self):
self.register_info(
{
... | [
"emilio.pinn@gmail.com"
] | emilio.pinn@gmail.com |
197947df3f6c3b552f542cad538188861870d86f | 95c027e7302751b335b33d287e0efac7483edfc3 | /boj/BOJ_평균.py | aaf5066b2ef4cd7f9d8f10ec2c10ff292124ceba | [] | no_license | kimchaelin13/Algorithm | 01bd4bcb24c58d5d82714e60272d5af91d2d9ce8 | 53f7f3cff5a141cf705af3c9f31cdb9ae997caff | refs/heads/master | 2023-02-03T08:58:26.660299 | 2020-12-20T17:01:16 | 2020-12-20T17:01:16 | 296,996,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import sys
sys.stdin = open("input.txt", "r")
s = []
for i in range(5):
s.append(int(input()))
for j in range(len(s)):
if s[j] < 40:
s[j]=40
print(round(sum(s)/len(s))) | [
"kimchaelin13@gmail.com"
] | kimchaelin13@gmail.com |
f7b9a0fc0cd5204982d3b8b58c4546e77a6110c1 | 8666a70d42be23f8b712228ced55c585a1c13899 | /saas_portal_start/controllers/main.py | 3c6e488b805ee0760f5b72a728bf1133fd7ddebf | [] | no_license | digitalliuzg/odoo-saas-tools | 4ea3a059903236dc3cb1ec6d42433cb4fb1da6cc | a7bead937ed39c8a1b41a848b2ee47064b1d2982 | refs/heads/master | 2021-01-21T16:21:42.393322 | 2015-04-15T16:01:12 | 2015-04-15T16:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
import openerp
from openerp import SUPERUSER_ID
from openerp.addons.web import http
from openerp.addons.web.http import request
from openerp.addons.auth_oauth.controllers import main as oauth
import werkzeug
import simplejson
import uuid
import random
class SaasPortal(http.Controller):
@ht... | [
"ivann.exe@gmail.com"
] | ivann.exe@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.