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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30044b5829a883a71c6f425fb8f3121b747e8d53 | e1f9baea0f9ad270fe6cd26817b8f58666e1e8ed | /fig1_projection_newplot.py | 75d9563aa13cc1729e33a1ed7d6a3ede81af159d | [] | no_license | tyoo37/fesc_project | 4f2747ab814f2d9ae716fc88d8f0a82abf1c0d07 | d4211a41f75042dcc63a1a5d8895b789491c403e | refs/heads/main | 2023-02-28T14:56:30.508354 | 2021-02-06T06:43:59 | 2021-02-06T06:43:59 | 336,473,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,649 | py | import numpy as np
from scipy.io import FortranFile
from scipy.io import readsav
import matplotlib.pyplot as plt
import time
import os.path
import matplotlib.patches as patches
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
from astropy.cosmology import FlatLambdaCDM
from astropy.visualization import ZSca... | [
"noreply@github.com"
] | noreply@github.com |
f991f0151a8dda85fd7b923dfbf44c69063ed06a | 93795b826912c44dc7797effca38efc7a4c6603f | /sorting/monk-being-monitor.py | a226387e2b1ec2931a75b5925a469541e11b68bb | [] | no_license | nattapat-v/code-monk | 961fa087c78f941fb29f9a49845a3c0e6391b620 | 01d5701c54b63c290e0bc0bd1fb5c58907f6dd96 | refs/heads/main | 2023-06-20T03:37:59.935763 | 2021-07-18T09:27:06 | 2021-07-18T09:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from itertools import groupby
def group(h):
h.sort()
h = [len(list(j)) for i, j in groupby(h)]
h.sort()
return h
def solution(h):
if len(set(h)) == 1:
print('-1')
else:
h = group(h)
print(h[-1] - h[0])
T = int(input())
for _ in range(T):
n = int(input())
h = l... | [
"dream_nattapat@hotmail.com"
] | dream_nattapat@hotmail.com |
190bfa669cf3e49500f9113ee9ff6e2ec99bac36 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/portal/out_140030000.py | 5eb2acf20a46a339aaa1228ed2aad91159c1a465 | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 166 | py | if sm.hasQuestCompleted(21202) and sm.hasQuest(21201) or sm.hasQuestCompleted(21303) and sm.hasQuest(21302):
sm.warp(140000000, 1)
else:
sm.warp(140010200, 1) | [
"sensiblemagic@gmail.com"
] | sensiblemagic@gmail.com |
e31a60671323357774dacb420be416d4091213cf | c29d5a918b7dee4ad8f8ff17f63968bee84cc856 | /count_hongbao.py | 112f9169ffa06adcecce0ec13d844958803ca6dd | [] | no_license | longhongjun/jobinsina | 9dfac0456d951c18107e319133257935a47e7790 | a72621a77843a3eb441a216cc52a260307ce6fe2 | refs/heads/master | 2021-01-23T20:27:18.085219 | 2013-05-16T10:23:20 | 2013-05-16T10:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #coding:utf-8
'''用于统计从主站发出的、带“#让红包飞#”关键词的原创/转发 次数/人数'''
import datetime
import pandas as pd
def main():
f=open('c:\\result.txt','rb')
data=f.readlines()
f.close()
zhuzhan_appid=('*','**','****')
result_list=[]
for item in data:
item=item.split('\t')
if item[4] in zhuzhan_appi... | [
"lllhhw@gmail.com"
] | lllhhw@gmail.com |
fea2f08c9f726cf28b051dffac17414bb63ba028 | 693e23a99539b1837d5331847bb726d6dd6ba1ae | /ansible/environments/stage/state2inventory2.py | 87b94bd920688e999398d568f0d1c86580f6a1e5 | [
"MIT"
] | permissive | spinor72/otus-devops-infra | e375a7ec347484b89feb94255044baf8004e8dd0 | 35a0e5db24f88941c756f8afbb80087258edd70e | refs/heads/master | 2020-04-02T05:50:25.767922 | 2018-04-18T15:16:59 | 2018-04-18T15:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py | #!/usr/bin/python
import sys
import os
import argparse
import json
from subprocess import Popen, PIPE
import ConfigParser
URL_TEMPLATE = "gs://{}/{}/default.tfstate"
DEBUG = False
BUCKET = "storage-bucket-spinor-test"
PREFIX = "terraform/stage"
def load_state(bucket, prefix):
try:
state_loader = Popen(["... | [
"spinor72@gmail.com"
] | spinor72@gmail.com |
831816fbb5c78a1a9f011082071976f5c31f65cb | 60f8187a36a2d1e19daaf81e0b476af48dff299e | /main.py | 04372691f07ad116ab3ea89b8767ab195808774e | [] | no_license | AndreasArne/iot-course-lnu | 150eb452e74c3e118fb23c50cc25937aeb0e43ad | 3c73ebfa909a3a8d10e46099eb7044cb701938c2 | refs/heads/main | 2023-06-26T08:22:14.097097 | 2021-08-02T15:05:32 | 2021-08-02T15:05:32 | 391,902,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import time
import ubinascii
import hashlib
from mqttclient import MQTTClient
from machine import Pin
from _pybytes import Pybytes, unique_id
from _pybytes_config import PybytesConfig
print("Setup")
# Use pybytes config to connect to Wifi
conf = PybytesConfig().read_config()
pybytes = Pybytes(conf)
pybytes.start()
#... | [
"andreas_osby@hotmail.com"
] | andreas_osby@hotmail.com |
11af46ef97df5e9a477ac2fc1ce38b1f0d148bd8 | c74756d67db9ad5207a493cd501fbec0ba2614ee | /过往的爬虫项目/zls_moviePro/zls_moviePro/items.py | 27607e9a9d5379e52946430675f7d28bad717af0 | [] | no_license | kawakami-araki/- | 1a3928fbc77cbb7b08659c5c01cdcda894e89626 | 2d0515fde8c6234831bab7c4313b901b233416d3 | refs/heads/master | 2022-03-31T12:10:58.308646 | 2020-01-14T06:27:49 | 2020-01-14T06:27:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ZlsMovieproItem(scrapy.Item):
movie_name = scrapy.Field()
detail_text = scrapy.Field()
| [
"55047390+fcg22450@users.noreply.github.com"
] | 55047390+fcg22450@users.noreply.github.com |
51bdf2cbbf1b7030553346999295a259f8d27ba9 | 5b3c7a9e8adb114bd1962782bf78b4ab84f95506 | /append_delete_inlinkedlist.py | d50a2f146e74fe2dae39939eef43af0d1d06cf00 | [] | no_license | suryansh4537/basics | 09817e9e9051157f1082a96d433308966231221c | 47244a54122324cbbd489f7dea7d6328f19ef96f | refs/heads/master | 2020-05-31T13:57:46.483380 | 2019-08-03T11:34:23 | 2019-08-03T11:34:23 | 190,317,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | class Node:
def __init__(self,data):
self.data=data
self.nextval=None
class linkedlist:
def __init__(self):
self.head=None
def append(self,data):
new_node=Node(data)
if self.head==None:
self.head=new_node
return
last=sel... | [
"noreply@github.com"
] | noreply@github.com |
d1474cc0df6c811402262151e649c79b99c5fa63 | 7033a3077a5824ee74af4f7edc16224349ee8ef9 | /venv1/lib/python3.7/site-packages/phonenumbers/carrierdata/data2.py | 94bc6c16dc2590e3f7b65fcef3f39358d3d5960d | [] | no_license | Caiphe/Barrows_python | 773e7c7d45c38753c5e3dce87c95768fcf3e5e9d | 8fd3f18f53aceef2b56ee18f6847a4441ae82803 | refs/heads/master | 2020-07-04T06:49:00.824349 | 2019-08-19T09:47:48 | 2019-08-19T09:47:48 | 202,192,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,301 | py | """Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2019 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"caipheilunga@gmail.com"
] | caipheilunga@gmail.com |
ebe6e7a3cc63ed2303d62fe9f298a5aff5760b94 | 6ffc7ec6a1e95910b9e32c93d2976879b65eeb73 | /app/utils/crud_collection_destination.py | c75c484f9075e2f30822da5a193cdec1ddffd04b | [] | no_license | BIGtanukiudon/information-gathering-managiment | 7d51eb07bd5da43ba96bdd8e8bf6b8f910ec0e99 | f2ee8523e6b185909afd3f884c23e1050981aa89 | refs/heads/main | 2023-07-18T19:07:25.596644 | 2021-09-18T05:20:34 | 2021-09-18T05:20:34 | 379,589,673 | 0 | 0 | null | 2021-09-18T05:20:35 | 2021-06-23T12:06:33 | Python | UTF-8 | Python | false | false | 1,217 | py | from sqlalchemy.orm import Session
from sqlalchemy.exc import SQLAlchemyError
from database.models import CollectionDestinationForGet as CDDM4G, CollectionDestinationForCreate as CDDM4C
from models.collection_destination import CollectionDestinationCreate as CDC
def get_collection_destination(db: Session, collection_... | [
"rksakanatanuki@gmail.com"
] | rksakanatanuki@gmail.com |
9cb82dbfb52bc39ff71664aa836a811c579409b2 | 918721a0c8b854d4a67e0227cc516647ba8b16ab | /quotesServer/quotesServer/quotesServer/settings.py | 8bf27dc574b870adad202ace707e920ac81d2888 | [] | no_license | nrjvarshney/QuoteFromPic | 39631bed99d7aab8ddfa9328094c3c024fa55cbf | 2d48d19096f97ce60b8f696f81586ea047f8fbee | refs/heads/master | 2022-03-27T16:21:24.989782 | 2019-07-23T18:46:40 | 2019-07-23T18:46:40 | 198,168,244 | 0 | 1 | null | 2020-01-13T05:46:57 | 2019-07-22T07:14:21 | Jupyter Notebook | UTF-8 | Python | false | false | 3,183 | py | """
Django settings for quotesServer project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"nevarshn@microsoft.com"
] | nevarshn@microsoft.com |
a6c789b7be6e47e5a363cd0cc4b9e9d846ce4005 | b3b443f0bc49bbb10c26b51fe89e6860d4ca3d3a | /ctreport_selenium/ctreport_html/scripts/detailmodal.py | d3f7cf88a94f4e60fc79f4cc43686715a63414b6 | [
"MIT"
] | permissive | naveens33/ctreport-selenium | 6b3a1cc93a6741a1d493c2452c1cf56c6d85c052 | 9553b5c4b8deb52e46cf0fb3e1ea7092028cf090 | refs/heads/master | 2022-12-23T04:55:12.226339 | 2020-08-29T19:22:00 | 2020-08-29T19:22:00 | 228,779,087 | 2 | 2 | MIT | 2022-12-18T22:53:51 | 2019-12-18T07:03:39 | Python | UTF-8 | Python | false | false | 5,082 | py | def content(var):
c = '''
<script>
function createmodal(id) {
''' + var + '''
var content = '<table class="table table-bordered ">';
var footer = ''
if(Array.isArray(tests[id])){
content += '<tbody>\
<tr class="ta... | [
"naveensagayaselvaraj@gmail.com"
] | naveensagayaselvaraj@gmail.com |
46a68cf8d816140c27a6905b438ef3b5390e2390 | 29ecf78ebd8fe26409db20f5a5ccbf40a0b7bf77 | /posts/tests/test_api_views.py | 10d12405755f41f59f77e32766cef9f8a3457530 | [] | no_license | pranavchandran/Django-Tests-unleashed | 56225d1cdd6cca58df4e0fffec33b3d36cabbad7 | dc76e6b87cea7842388cd90bbd5a45c563e4af3f | refs/heads/master | 2022-09-29T11:11:10.517822 | 2020-06-10T06:21:29 | 2020-06-10T06:21:29 | 271,107,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | from rest_framework.test import APIRequestFactory,force_authenticate
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.contrib.auth.models import AnonymousUser,User
from posts.models import Post
fro... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
be12370e08190de56618721120fab97c739b4cac | 0873613d4a935a8473466e9cdbb38c0ea72770cf | /sol.py | 74ddf6cd819972d6e305e649359aeb8cbaa5f80b | [] | no_license | KTala9/AIND-Sudoku | f8cf34c87c0b8a40dddf8b437d0df6bda2a60c83 | b3fc7373647626f0d5fccff4fa2d79a58daaafdf | refs/heads/master | 2021-01-21T19:13:35.036264 | 2017-05-28T20:28:34 | 2017-05-28T20:28:34 | 92,130,703 | 0 | 0 | null | 2017-05-23T04:54:12 | 2017-05-23T04:54:12 | null | UTF-8 | Python | false | false | 8,626 | py | import itertools
def cross(A, B):
"Cross product of elements in A and elements in B."
return [s+t for s in A for t in B]
rows = 'ABCDEFGHI'
cols = '123456789'
boxes = cross(rows, cols)
row_units = [cross(r, cols) for r in rows]
column_units = [cross(rows, c) for c in cols]
square_units = [cross(rs, cs) for... | [
"ktalanine@deloitte.com"
] | ktalanine@deloitte.com |
083c11e06225210c43ebe3bbfe58f3b6b2068634 | 52e125ea26123a332321b9ee0156cc878dce7f03 | /topcoder/KeyDungeonDiv1.py | d0a75c10ff6a1fc449572926318e30ebc1f11a7f | [] | no_license | mihneagiurgea/pysandbox | 73252fcfe82515d6203470a97919d8390208df46 | 5c49b0d3aa15894b50507c55f4d66f48544af224 | refs/heads/master | 2021-01-22T20:08:56.228738 | 2020-09-27T23:31:53 | 2020-09-27T23:31:53 | 6,213,625 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | from collections import namedtuple, defaultdict
State = namedtuple('State', ['r', 'g', 'w'])
class KeyDungeonDiv1(object):
def canOpen(self, state, i):
r = max(0, self.doorR[i] - state.r)
g = max(0, self.doorG[i] - state.g)
return state.w >= r + g
def open(self, state, i):
r ... | [
"mihnea.giurgea@ubervu.com"
] | mihnea.giurgea@ubervu.com |
229128424c9b4cb65c8e0638f4b143ddde03708d | eab5f1c8292a76babb0e1b86471db954ac0d1a41 | /guvi90.py | ea2fae62f19a846b8a998e9be1d931e0daa5d69e | [] | no_license | pavanimallem/pavs3 | 56cabfa7cc56c650746cbf80296e6fe32578f953 | c43e6b2993317c438554bbcae304eb6aa6763801 | refs/heads/master | 2020-03-24T07:26:10.827892 | 2018-09-19T11:18:24 | 2018-09-19T11:18:24 | 142,564,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | str=raw_input()
x=[]
for i in str:
if(i.isdigit()):
x.append(i)
print "".join(x)
| [
"noreply@github.com"
] | noreply@github.com |
4d94685eff433b3cd9954ef5f2e3a219a023b767 | db1580d0ea6f8740a2e729f8265bdf98f42ca286 | /songFileServer/models.py | ac40ce374b276c2e6dc438f630c7807e73475385 | [] | no_license | jyotib652/SongAudiobookFileServer | 598bb02abfa94e64831f5df9229d45e107c457f3 | 196819410d4d3a83b16c130bedc7b7dd47e52a22 | refs/heads/main | 2023-03-15T02:11:21.392860 | 2021-03-16T05:51:39 | 2021-03-16T05:51:39 | 347,339,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from django.db import models
# Create your models here.
# class CustomDateTimeField(models.DateTimeField):
# def value_to_string(self, obj):
# val = self.value_from_object(obj)
# if val:
# val.replace(microsecond=0)
# return val.isoformat()
# return ''
class Song(m... | [
"jyotib652@gmail.com"
] | jyotib652@gmail.com |
33812b49768d981e641e836ec3d404c2f197b362 | ea52083073db9b1d87ffb660ad17afd5eb0e24c6 | /mypythonscripts/HelloCG.py | 047b82fa14c48414b154798627cd6dd91dee287b | [] | no_license | avikdeb/pythonwork | 1641d93d45b44c7d75a6ec591c54b1529c72a763 | 5e067afc38244c3133765570c3f59dfb47d1d4d3 | refs/heads/master | 2020-03-09T06:47:57.003019 | 2018-05-14T16:36:18 | 2018-05-14T16:36:18 | 125,887,248 | 0 | 0 | null | 2018-04-08T08:24:31 | 2018-03-19T16:22:09 | null | UTF-8 | Python | false | false | 138 | py | print("Hello Everyone!")
def print_something():
for count in range(0,3):
print("I am writing something!")
print_something() | [
"gkc.cse@gmail.com"
] | gkc.cse@gmail.com |
cfb1675bba4c3ed8406d520389114b467ce2dd69 | 631123e441324e8366bd522046e042a3fb8d50bc | /inputTokenizer.py | 780e0faa903844338202ff7dc7743cf576b97aac | [] | no_license | skrishpv/deeplearning-chatbot-758b | 33d5ad82c10071af3929ec3ce61aa2999dce2c3c | 64d297563ec3dbb95ab4fa38394d405112118283 | refs/heads/main | 2023-02-03T18:38:36.583250 | 2020-12-18T15:08:57 | 2020-12-18T15:08:57 | 320,298,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
import pickle
def tokenizeInput(vocab_size, oov_token, training_sentences, testing_sentences, max_len):
tokenizer = Tokenizer(num_words= vocab_size, oov_token=oov_token)
tokenizer.fit_on_... | [
"67808815+skrishpv@users.noreply.github.com"
] | 67808815+skrishpv@users.noreply.github.com |
a85b4046bfc7987cb03c53122f8ed3882aa82d61 | 2272759c7b09397ff462115fc68d1b8363f572db | /app/__init__.py | 5715f71dd4d096fce31c078b09bcf1a4e9ed4dcc | [
"MIT",
"CC-BY-4.0"
] | permissive | Bubblbu/fhe-collector | e8f2f2b8d80a86c11c43d506244077b879ebedfc | b587a952eec318eab6cf430383fe83ca85277895 | refs/heads/master | 2020-03-30T17:49:08.065705 | 2019-09-17T22:54:25 | 2019-09-17T22:54:25 | 151,471,327 | 0 | 0 | MIT | 2018-10-03T19:48:38 | 2018-10-03T19:48:38 | null | UTF-8 | Python | false | false | 34,027 | py | """
.. module::
:platform: Linux
:synopsis: Web-app to collect facebook metrics.
.. moduleauthor:: Stefan Kasberger <mail@stefankasberger.at>
"""
__author__ = 'Stefan Kasberger'
__email__ = 'stefan.kasberger@univie.ac.at'
__copyright__ = 'Copyright (c) 2019 Stefan Kasberger'
__license__ = 'MIT License'
__vers... | [
"mail@stefankasberger.at"
] | mail@stefankasberger.at |
c175141ce719e09b6cea9f37d217223ff7d6033a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/H/hitkarsh/karnataka_2.py | 6c81472eb4a4013c05dd3d24a663158f61abd084 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | import scraperwiki
import mechanize # added by Usha
import re # added by Usha
import lxml.html
url="http://censusindia.gov.in/Census_Data_2001/Village_Directory/List_of_Villages/List_of_Villages_Alphabetical.aspx?cki=&State_Code=29"
import string
#create list of upper case alphabets
l=list(string.ascii_uppercase)
#crea... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
78640dca0822abb8a5bb9127e14b9c04fb305615 | 883c1d9ece9a5a5d7001b7a92fe3e8f1a7776354 | /cmt_statistics_tool/statistics/s01_01.py | e3905b7075a8e52365297bfd23484e2bb712c0f4 | [] | no_license | HPI-Information-Systems/cmt_statistics_tool | d2aab748965d959a339d9f24e6ff4027c6ef4d92 | 76f7e58b472ad3f20264e5c985a1d269b5d5cc63 | refs/heads/master | 2023-09-03T12:59:22.211882 | 2021-10-05T07:37:45 | 2021-10-05T07:37:45 | 404,407,951 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | """Reviewers and ratings: Expertise Level vs Rating"""
from asyncio import run
from matplotlib import pyplot as plt
from matplotlib.axes import Axes
from pandas import DataFrame
from seaborn import barplot
from sqlalchemy import func
from sqlalchemy.future import select
from uvloop import install
from cmt_statistics_... | [
"39628987+fabianhe@users.noreply.github.com"
] | 39628987+fabianhe@users.noreply.github.com |
aea3200a6cf1ceec2a12eac766f221b4f85cb99d | 03415e25427d9a17bada8fd75daadc45c093c377 | /LST_Collect.py | 7cf76c296c1d1f4a78e7ce9e9b0fd9243fd117e1 | [] | no_license | mwilensky768/MJW-HERA | 472d639bd4086a31be112564be9b2b22e70e3e86 | da1710a17123cc3ccd3e318e224712eb80bcb3bd | refs/heads/master | 2021-08-10T22:32:15.391270 | 2017-11-13T01:45:48 | 2017-11-13T01:45:48 | 108,204,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import pyuvdata
import glob
import numpy as np
from math import pi
inpath = '/data6/HERA/data/2458042/zen.2458042.'
pathlist = glob.glob(inpath + '*.xx*.uv')
obslist = np.sort(np.array([int(path[path.find('zen.') + 12:path.find('.xx')])
for path in pathlist]))
pathlist_sort = [inpath + str(obs) + '.... | [
"mjw768@uw.edu"
] | mjw768@uw.edu |
d2b90e879e40e32c34f931f514ed5e99a04ff5b1 | 979366550b6a98a758f17828407d3304e63a540a | /microblog/app/models.py | 6350b18df6700e15a03f659295db3fedf8a570f5 | [] | no_license | ankitrkumar/Learning-Python | 2ff5dd497234742dbfd5916b6993f15606d3b43c | f112272b7622795d17113c8edd850fdfe066ca75 | refs/heads/master | 2021-01-10T13:48:50.810023 | 2015-07-03T22:52:55 | 2015-07-03T22:52:55 | 36,099,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | from app import db, app
from hashlib import md5
import sys
from config import WHOOSH_ENABLED
enable_search = WHOOSH_ENABLED
if enable_search:
import flask.ext.whooshalchemy as whooshalchemy
followers = db.Table('followers',
db.Column('follower_id', db.Integer, db.ForeignKey('user.id')),
db.Column('followe... | [
"ankitkumar1618@gmail.com"
] | ankitkumar1618@gmail.com |
ca566e9009110135e2547eb8c805829d729eff4d | 2aa15786d231136f4487ac904ada5719a0605f3d | /testData/completion/conlist.py | 9a6bf6f67cfe03e5a66772df712542583dc4291a | [
"Apache-2.0",
"MIT"
] | permissive | koxudaxi/pydantic-pycharm-plugin | 7b2f248e45aceccb58e12e67abb34c89e32a53a0 | 61455a7d63c46d567e739ae05f15475b84142a16 | refs/heads/main | 2023-08-23T07:23:40.067425 | 2023-08-07T16:25:52 | 2023-08-07T16:25:52 | 197,027,423 | 362 | 13 | MIT | 2023-09-14T16:39:41 | 2019-07-15T15:41:01 | Kotlin | UTF-8 | Python | false | false | 199 | py |
from pydantic import BaseModel
from pydantic.types import conlist
class A(BaseModel):
abc: conlist()
cde: conlist(str)
efg: conlist(item_type=str)
hij: conlist(List[str])
A(<caret>) | [
"noreply@github.com"
] | noreply@github.com |
352ca71e5dbb7798c95372d5af60e84c1ba86dff | 612535501dcbe82923d45e84517843f0f666a289 | /AMLS_20-21_SN20059361/B2/CNN_B2.py | 6fc2a063572f926cd116569352181e93ad275f7a | [] | no_license | TianhuitiaXu/AMLS_assignment20_21- | 90b7725076c49acf7961004612a00e05f60fbf5a | d1e2208faa01aaaa8536409d99b25c83efa16c14 | refs/heads/master | 2023-02-15T23:13:17.836022 | 2021-01-07T00:04:52 | 2021-01-07T00:04:52 | 304,770,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,122 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from tqdm import tqdm
from keras.preprocessing import image
from tensorflow.keras.layers import Conv2D, BatchNormalization, Activation, MaxPool2D, Dropout, Flatten, Dense
i... | [
"noreply@github.com"
] | noreply@github.com |
90d22ecc08de8602eac788e6f922fed5d85d7ac9 | ad32b7116b3ff8e0dab14ad9ba0cf35fdb61cca6 | /python/count_leaves_of_binary_tree.py | e10e12eb4a2013095fa64a0b367d361b1efb8292 | [] | no_license | beingnikhilarora/ds-algo | 0e440300cf5978626ab224cc431a30ff734b7bfb | 8925e563a8fd9943a3ed6df0a83a40c89705d2ac | refs/heads/master | 2020-05-15T11:29:27.330318 | 2019-04-22T18:41:36 | 2019-04-22T18:41:36 | 182,230,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | class TreeNode(object):
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def count_leaves(root):
if not root:
return 0
if not (root.left or root.right):
return 1
else:
return count_leaves(root.left) + count_leaves(root.right)... | [
"beingnikhilarora@gmail.com"
] | beingnikhilarora@gmail.com |
607219c000f7f31a1333d2b772480f3aad169545 | fea6e9d6b20b0c5f2a05a6f2433aae4176b2a00a | /server/applibs/account/tasks/fetch_status.py | 1c80b02e381a041e1e063576ae4ca0441bcb6c7a | [] | no_license | fanshuai/kubrick | fddf6c21bcd500223d9a05bd002e47eb1ecf8839 | b7ed6588e13d2916a4162d56509d2794742a1eb1 | refs/heads/main | 2023-03-24T12:21:44.562850 | 2021-03-19T15:11:40 | 2021-03-19T15:11:40 | 349,445,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | """
验证码发送状态同步
"""
import logging
from kubrick.celery import app
from server.corelib.dealer import deal_time
from server.corelib.notice.async_tasks import send_dd_msg__task
from server.constant.djalias import CQueueAlias
logger = logging.getLogger('kubrick.celery')
@app.task(queue=CQueueAlias.Timed.value)
def fetch_... | [
"zfaner@gmail.com"
] | zfaner@gmail.com |
0380da442927af5372a04c57cc92c5eaca31627f | ad04a6364cb38b3951b2c427c5e8c9e554c457ee | /test_kitti_pose.py | e63685520c20982df09c48e7f7b32e4cdcf08c22 | [
"MIT"
] | permissive | Arjung27/SFM-Learner | 5ce428d920a3f1e43e59133af3f795c2676cbaa8 | 8da43b4266dfeb23465d3caad0d23b0c8f457257 | refs/heads/master | 2022-08-14T02:33:49.443046 | 2020-05-20T20:46:51 | 2020-05-20T20:46:51 | 264,470,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | from __future__ import division
import os
import math
import scipy.misc
import tensorflow as tf
import numpy as np
from glob import glob
from SfMLearner import SfMLearner
from kitti_eval.pose_evaluation_utils import dump_pose_seq_TUM
flags = tf.app.flags
flags.DEFINE_integer("batch_size", 1, "The size of of a sample b... | [
"arjun.g1511@gmail.com"
] | arjun.g1511@gmail.com |
1e069e901a9d931704594b568c24eb89ab3392b6 | 541fed374b1d1ebff33c42496db84337e06177b6 | /City.py | 4e62852ace82662a8167ce02a534b5b510013eba | [] | no_license | huangruihaocst/tsp-genetic | faaa6654459cfce521f936bd31c5438c19f8d250 | 794be023d698fca41caf797810feb44a0024cdea | refs/heads/master | 2020-03-21T17:47:49.697351 | 2016-05-03T04:42:06 | 2016-05-03T04:42:06 | 138,854,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | class City:
def __init__(self, name, x, y):
self.name = name
self.x = x
self.y = y
| [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
5e3409f2d51063ee40904ea53ad1d9db1bded724 | f2ff4f3bcb80b1062e95f8c6ece2793cd58b2ecf | /GIT PV/Client-server application 4.4v/Client-server application 4.4v/Server/config.py | d1e188e5366e67d03655b69fd7bdc016086db09c | [] | no_license | Victor2000GIT/PythonApplication | 88c0a6f2394caa9b04e36ad4bfac5cf678937e6e | e1e1af56ad4049159e0635cafaf6015931286688 | refs/heads/master | 2020-12-02T06:25:33.073260 | 2017-07-11T01:01:44 | 2017-07-11T01:01:44 | 96,831,742 | 0 | 0 | null | 2017-07-11T01:01:44 | 2017-07-11T00:01:17 | Tcl | UTF-8 | Python | false | false | 24 | py | ClientCommand = ("", 0)
| [
"wiktor@mail.ru"
] | wiktor@mail.ru |
854ae93892eb1ab90f7c762a359cddc341b04067 | 856668b36edfcd34bac74e062f9990944a9dd0f0 | /recommenders_class.py | 35e76185e65515da2b6928c2cf848865201708de | [] | no_license | fraidaL/SF_DAT_15_WORK | 2b45071d2bdf01f3599ac82635888eae2a7def53 | 889c8361ee412340710eb3ebae4a330ca4c0a29a | refs/heads/master | 2020-05-29T16:03:20.415732 | 2015-08-27T01:28:39 | 2015-08-27T01:28:39 | 37,505,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,207 | py |
"""
Class 18: Recommendation Engines
Content based and Collaborative based filtering
Jaccard Similarity
Modified KNN Algorithm
"""
import pandas as pd
########################################
## Collaborative-Based User Filtering ##
########################################
#read in brands data
user_brands = pd.read... | [
"fraida.lev@gmail.com"
] | fraida.lev@gmail.com |
08835a2cf6230c6cdf9585aea813e58abddf569b | 2335093cd5940a6e59e6a9334a4e5b683a704f8e | /SugarSyncInstance.py | 8e4e6ac6faa3224d2c91dc65a2a7ef4e0f22bae5 | [] | no_license | HonestQiao/SugarSync-Python-Client | 247a73440e018717842158d6ee3f6d22582ff48e | dfc624a8b3ca9ca8e86775803186c35242aff89a | refs/heads/master | 2021-01-20T19:18:59.376705 | 2012-09-02T07:46:53 | 2012-09-02T07:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# author: Alexander Straube
# author: Lukas Schreiner
#
# For editors/contributors: please add an author tag above -
# for a full list ;-)
#
# For debugging: please use the pudb from
# https://github.com/orsenthil/pudb.git
# because the original does not support python... | [
"lukas.schreiner@gmail.com"
] | lukas.schreiner@gmail.com |
2e7e71d751ad855e3a9be19f978880fcf20395bd | 3dd68d711b5cda2231a44c613fed554b8c1031b2 | /pdf_rotate/settings_manager.py | dd2c2aa6dc9196dc20fc61810208f8cf6c2b8176 | [] | no_license | it-walker/pdf_rotate | 36755b383a71c8c420ac04a857d2928551947572 | 2af2808e7cb1d40bd0e950985dc1743f5118732d | refs/heads/master | 2022-04-26T02:22:08.683771 | 2020-04-26T03:27:52 | 2020-04-26T03:27:52 | 258,921,419 | 0 | 0 | null | 2020-04-26T03:27:54 | 2020-04-26T02:33:06 | null | UTF-8 | Python | false | false | 1,221 | py | import yaml
class SettingsManager:
_key_target_file_path = "target_file_path"
_key_out_file_path = "out_file_path"
_key_rotate = "rotate"
@property
def target_file_path(self):
"""対象のPDFファイルパス"""
return self._target_file_path
@property
def out_file_path(self):
"""... | [
"myhome.satoh+backlog@gmail.com"
] | myhome.satoh+backlog@gmail.com |
86b103721a71c81bb1ec8da79ea8625a844315db | 3eda1cfd85cc60aa49922256a632eb8d9ea81954 | /api/utils/decorators.py | cf4e87517c3269dd6ad8478acf4da1dd04becbf1 | [] | no_license | akshaybabu09/employee-device-manager | 1981b9f2bd5abb8b36d3da2a392b7d40017cb219 | 34ef45d8558741d9707271b48579e78f707f0a07 | refs/heads/master | 2022-09-27T05:08:41.943416 | 2019-12-17T05:06:39 | 2019-12-17T05:06:39 | 227,947,908 | 1 | 0 | null | 2022-09-16T18:14:44 | 2019-12-14T01:12:34 | Python | UTF-8 | Python | false | false | 773 | py | from functools import wraps
import jwt
from flask import request, Response
from api import app
from api.employee.models import Employee
from api.utils.status_codes import UNAUTHORIZED
def token_required(f):
@wraps(f)
def decorated(*args, **kwargs):
token = None
if 'access-token' in request.... | [
"akshay@loktra.com"
] | akshay@loktra.com |
23007d4246cb908e0036ea6dbb78f3bc8a4a723d | 125b42b9f42b3a45838b15afb2a25fec3113e05c | /Ex4/pal.py | 7aff42612342e89abe739d584dd557a460f98db7 | [] | no_license | kcanez/ProjEulerCode | 1b50f16fc658792fb85f93da8fdf21a7acebdf9d | c61ca29f380f9e28e7f677e4baa3be7f8f27d6a7 | refs/heads/master | 2021-01-10T08:49:03.988335 | 2016-02-16T00:39:52 | 2016-02-16T00:39:52 | 50,868,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import math
MAX = 999
i = MAX
j = MAX
maxPal = 0
def isPal(num):
first = 0
numText = str(num)
last = len(numText)-1
mid = math.floor(len(numText)/2)
while first <= mid:
if first == mid:
return True
else:
if numText[first] != numText[last]:
... | [
"kevin.canez@gmail.com"
] | kevin.canez@gmail.com |
af9738f6a4a38219406718a295ea78a732a3232d | a5205843ab0c6cff8f76f32436c580cfd523e9ad | /edit_sample_craps.py | cb01ef33a0829d35b2b1f5ee2d59d478e474790b | [] | no_license | LRBeaver/Random | 70194cde5d26b5e268d7c245056cedc8d0a6618d | 90ec0036a4efb383d6496a7724a108aa1b2f2ddf | refs/heads/master | 2020-12-24T18:42:37.716951 | 2016-04-14T12:52:56 | 2016-04-14T12:52:56 | 56,150,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | __author__ = 'lyndsay.beaver'
import random
def playRound():
print("The come-out phase: ")
print()
rollDice = input("Hit ENTER to roll the dice...")
diceTotal = random.randint(1,6) + random.randint(1,6)
if diceTotal in (7,11):
print("You rolled a", diceTotal)
print("You ... | [
"lrbeaver@gmail.com"
] | lrbeaver@gmail.com |
bac299c3cb313b52052370dda678e88f817e000f | 95c3b632c9f03983f4dcc277756058df71fa510f | /text2vec/tokenizer.py | f150e2b3ce5e4ac62f2a6de82dc941415fbdf5c6 | [] | no_license | gaojing8500/Zero2OneBuildMachineLearningModel | c3c897d072b27d991419d830e2c35d04e34c637c | 60963daa6ca6af853621d246d5286ee0da77828a | refs/heads/main | 2023-08-19T19:05:20.799276 | 2021-10-12T11:25:20 | 2021-10-12T11:25:20 | 377,815,343 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | from typing import List
import jieba
import json
##hanlp还是比较麻烦的
# from pyhanlp import *
class Tokenizer(object):
def __init__(self):
self.name = "Jieba hanlp allennlp corenlp"
def __str__(self):
return self.name
def tokenize(self, sentences, tokenize_label):
if tokenize_label ==... | [
"jing.gao01@united-imaging.com"
] | jing.gao01@united-imaging.com |
290a3b4f08969bef3f76e2e5fecc22d486567154 | 4659ef75716389c6f9280c609cc1e639da79d9ee | /libs/x86_64/matplotlib2/animation.py | 2763cf16c9392054d9b936b0dd4215801f516e56 | [] | no_license | vvkond/QGIS | cf2ea68f53921010916f999dd34dade190eaa22a | 302dbc948de3163ec74d47164c5e6e1f8a6f7df0 | refs/heads/master | 2021-06-03T22:37:34.290064 | 2020-12-03T04:33:03 | 2020-12-03T04:33:03 | 107,931,779 | 1 | 1 | null | 2019-09-20T04:16:34 | 2017-10-23T04:23:30 | Python | UTF-8 | Python | false | false | 67,441 | py | # TODO:
# * Loop Delay is broken on GTKAgg. This is because source_remove() is not
# working as we want. PyGTK bug?
# * Documentation -- this will need a new section of the User's Guide.
# Both for Animations and just timers.
# - Also need to update http://www.scipy.org/Cookbook/matplotlib2/Animations
# * Blit... | [
"skylex72rus@gmail.com"
] | skylex72rus@gmail.com |
901005101e83d21158d5f681a8a232e73f3bfa90 | e492b3b33d333420f40ead5b8b0c9340dedaac6a | /Cogs/Logger.py | 325da4af195b673fe000f629d3141a24e559edc0 | [] | no_license | timwhite/MegaBot | 51079471c4cc9cfee08a9a47f888f038b0d08bce | 21c52c27bff9127c7dfe7b35712e03349016a4eb | refs/heads/master | 2021-03-14T10:41:36.492531 | 2020-03-12T06:31:32 | 2020-03-12T06:31:32 | 246,759,600 | 0 | 0 | null | 2020-03-12T06:25:43 | 2020-03-12T06:25:42 | null | UTF-8 | Python | false | false | 4,795 | py | import discord
from discord.ext import commands
import os
import subprocess
import asyncio
import re
from dotenv import load_dotenv
from datetime import datetime
version = '0.5.5 Alpha'
load_dotenv()
logurl = os.getenv('LOG_URL')
panic_word = os.getenv('PANIC_WORD')
panic_length = int(os.getenv('PANIC_LOG_LEN'))
now ... | [
"kainenjw@gmail.com"
] | kainenjw@gmail.com |
cbd8fcf710be493308140c526ea247720404d8d5 | dc9ef3bebf6dc7387c893b2999c0caaa2bc6ca3f | /run_scripts/pktc.py | a1bfa396d47c79e88247cc03fa05eb5b1a84a66f | [] | no_license | ganesh1901/TWDL | 8d052e1475b1930af8bbad95364b04262597d900 | 960ea2ddce6f6265a3e51f0f7483a50f216804b1 | refs/heads/main | 2023-02-08T12:22:09.857666 | 2020-12-29T18:55:00 | 2020-12-29T18:55:00 | 325,363,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py |
from matplotlib.pyplot import figure, show
from numpy import arange, sin, pi
import struct
import os
import time
import sys
import binascii
if (len(sys.argv) != 2):
print 'usage == python 1)filein name '
exit(0)
file_name = sys.argv[1]
timetag_fmt = 'L'
header_fmt = 'H'
if os.path.islink(file_name):
... | [
"addepalliganesh323@gmail.com"
] | addepalliganesh323@gmail.com |
7cf8c871194f2bd90b8ae87f4758338eca105f0e | e28070b3ac7c3373c529c78b83240da80d00e16d | /scripts/audioReply.py | 2b238a1e650ecc04220a0dff2aa9b75fa467621c | [] | no_license | This-Is-Ko/myAssistant | 9f02dc915a067bec0cf640b03b88434047c70201 | d0b6e6f44eeb9ccb4fd0f7e72907ee41a23d6653 | refs/heads/master | 2022-03-15T15:37:31.343465 | 2019-10-24T06:49:08 | 2019-10-24T06:49:08 | 213,093,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from gtts import gTTS
from pydub import AudioSegment
from pydub.playback import play
def getAudioReply(audioString):
makeAudioReply(audioString)
playAudio("temp/output/reply.mp3")
def makeAudioReply(audioString):
print(audioString)
tts = gTTS(text=audioString, lang='en')
tts.save("temp/output/reply.mp3")
def pl... | [
"kobo67@hotmail.com"
] | kobo67@hotmail.com |
d8422b8aa979e0556d75828f1a513a2d477b8016 | f2406914ebd779c1955e1105b683aa313b490576 | /Source/utilities2.py | fea925c7c2c039054d5ca963a92dad6510dda143 | [] | no_license | Jaideepm08/Crime-in-Vancouver | 0f59dd00c9a0dc2ef3787b3213748a29c870e7f8 | 124f22c12d2ef67c68947d4dd01d079118455130 | refs/heads/master | 2021-07-11T23:42:38.354678 | 2021-02-23T09:24:19 | 2021-02-23T09:24:19 | 235,506,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,757 | py | import pandas as pd, numpy as np, fiona, timeit
from geopy.distance import vincenty
from shapely import geometry
from utilities import utm_to_latlong, latlong_to_utm
from __builtin__ import False
from pandas.core.frame import DataFrame
PROJECT_ROOT = '../'
def main():
#test values
lat = 49.2668355595
... | [
"45701689+Jaideepm08@users.noreply.github.com"
] | 45701689+Jaideepm08@users.noreply.github.com |
7321373acb0af20941885f268896dbd444622116 | 1f554053ca430f60542f26febd47df2bc28c4499 | /lms_app/migrations/0010_alter_courses_course_detail.py | 12073b9a8af787f5f915fc5300db438daca937de | [] | no_license | ashikpydev/Learning-Management-System | e46c1358c5d02a0e14e295f5c1b8a2c5a1290799 | 824eeb34700e5cd842d628c490ac09f7f139023c | refs/heads/main | 2023-06-13T02:25:42.314229 | 2021-06-29T04:35:18 | 2021-06-29T04:35:18 | 371,429,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.2.3 on 2021-06-18 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lms_app', '0009_rename_blog_ttle_blog_blog_title'),
]
operations = [
migrations.AlterField(
model_name='courses',
na... | [
"ashiqurrahman0506@gmail.com"
] | ashiqurrahman0506@gmail.com |
ac2debe025aa644830e9dd2142081101ea527a27 | 121c994c7bc86d0fb28d30f5abbb6f23800fed25 | /connected_world_api/connected_world_api/settings.py | 774df49bac46b5c3539eff907c7b0c5ea3e0e2f2 | [] | no_license | avelaga/connected_world_api | d7ef3b75d554973fa3d3aa32ff8e536f1502b423 | 7a523d0e4fda9a331ae4345ea15b70cd1d30b075 | refs/heads/master | 2023-04-29T07:28:25.945068 | 2021-04-26T19:12:22 | 2021-04-26T19:12:22 | 360,400,317 | 0 | 0 | null | 2021-04-26T17:40:05 | 2021-04-22T05:17:58 | Python | UTF-8 | Python | false | false | 3,804 | py | """
Django settings for connected_world_api project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
fr... | [
"abhinav.velaga@gmail.com"
] | abhinav.velaga@gmail.com |
bdaf49b8f1852494947d57dd9f3e385d7cb21ecb | 73c9211d5627594e0191510f0b4d70a907f5c4c5 | /pytest/lesson6/TestXlsxReportdemo.py | 2c2e3aef8262fceb1736ac41921a38a074af96c5 | [] | no_license | tigerxjtu/py3 | 35378f270363532fb30962da8674dbcee99eb5ff | 5d24cd074f51bd0f17f6cc4f5f1a6e7cf0d48779 | refs/heads/master | 2021-07-13T05:34:15.080119 | 2020-06-24T09:36:33 | 2020-06-24T09:36:33 | 159,121,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,744 | py | # -*- coding:utf-8 -*-
import xlsxwriter
import time
from pytest.lesson4.testrequest import *
from pytest.lesson4.testvote import *
from pytest.lesson4.testrequest import *
from pytest.testdata.getpath import GetTestDataPath
import xlrd
#把GetTestReport方法自己写出来
from pytest.testdata.getpath import GetTestReport
testu... | [
"liyin@16010.net"
] | liyin@16010.net |
a34492455f57342694d38e9b0238b4df02fb6fe5 | eb63b1d36aefe82885865b6bc0161a60c4141acf | /exam/migrations/0003_auto_20170718_0556.py | 54750a45ee10289847bb07bcf1515281858f95a8 | [] | no_license | vinodsesetti/onlineportal | 82005aea76b38b237b8ec10e7a4ed1e921de5746 | 39231d0acd6c07fce06936590693cd876b236c01 | refs/heads/master | 2021-01-23T08:49:31.506375 | 2017-09-06T03:11:25 | 2017-09-06T03:11:25 | 102,556,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-18 05:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exam', '0002_auto_20170718_0554'),
]
operations = [
migrations.AlterField(
... | [
"vinodsesetti@gmail.com"
] | vinodsesetti@gmail.com |
9de156bb01de3eafff3afb39c54460c9d46babbf | a5e9f5cabb4f513968f105eaaf8ba83cd7833b4f | /home/models.py | a1064177e94524efaabd76dd9122c7897d248c67 | [] | no_license | sagaruniyal/Django-Blog-Project | 6178b782b31bff6e385a0e5d0697e06c8c2b67d5 | 3e0b5c4500875706dcff017de49e3b2b5bdb4a14 | refs/heads/master | 2022-11-15T06:38:08.219641 | 2020-06-30T10:46:06 | 2020-06-30T10:46:06 | 276,069,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.db import models
# Create your models here.
# Database ---> excel Workbook
# Models in Django --->Table-----> Sheet
class Contact(models.Model):
sno = models.AutoField(primary_key=True)
name = models.CharField(max_length=255)
phone = models.CharField(max_length=13)
email = models.CharField... | [
"uniyals322@gmail.com"
] | uniyals322@gmail.com |
bde03dcbaf6dcd991de97a0554b598898ba38ef5 | 15ef76c7e32e0ae54da7fcd5a7c2239f63c47ed4 | /coincidences.py | 5cbe1b6948dcd907a74d88ff3a42fbcd613237e2 | [] | no_license | jmaicas/habitat | 3e1e2bdd98ac294b48e8a9e6cdbd8ccbd5554245 | 67cb5dfa879b58a2587a91656bc86071b60388be | refs/heads/main | 2023-06-02T10:57:14.173750 | 2021-06-23T17:10:59 | 2021-06-23T17:10:59 | 336,404,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,342 | py | import sys
import os
import platform
import glob
import re as re
import numpy as np
import random
import pandas as pd
from statistics import mean
import matplotlib.pyplot as plt
import xlsxwriter
from w_coincidencies import *
from coincidences_classes import *
from PyQt5.QtWidgets import QMainWindow, Q... | [
"noreply@github.com"
] | noreply@github.com |
e02a4e642a50e5cb9fea026b8290f81105be0c01 | 7cd169ba231b45a4faed48ef08d60a3f6172c877 | /train.py | 9be3c9471c15b6fd44edf231e12d0e67cd4550ab | [] | no_license | GeraldHost/bert-ner | 07412c97e611ee0b9620e75f1c74c3deb6e09b35 | ecdeb15f707db7ce2e62b479cba4e823f82cb78c | refs/heads/master | 2022-12-28T05:39:09.539353 | 2020-10-15T14:49:57 | 2020-10-15T14:49:57 | 303,312,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | import pandas as pd
import numpy as np
import joblib
import torch
from sklearn import preprocessing
from sklearn import model_selection
from transformers import AdamW
from transformers import get_linear_schedule_with_warmup
import config
import dataset
import engine
from model import EntityModel
def process_data(... | [
"me@jacobford.co.uk"
] | me@jacobford.co.uk |
221f4c8150fddc906199d788e70ea2553500a8f7 | 2903ac66369b6bd45889b12629d8c8e34e6089b3 | /frappe_training/config/desktop.py | 60ea98f53064fec38a864b70c7e641453fb4dd78 | [
"MIT"
] | permissive | sivaranjanipalanivel/training | 6fa50b5f97fb00894404fba11122599fd796623c | b177c56a319c07dc3467ce3113e332ecee9b81fa | refs/heads/master | 2023-07-17T06:11:29.894363 | 2021-08-02T14:47:31 | 2021-08-02T14:47:31 | 391,987,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "frappe_training",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("frappe_training")
}
]
| [
"you@example.com"
] | you@example.com |
bc10143549abf633a804734a7dfb801743e8a2eb | 6e96e9ecb3cd60954fb2be6fc4b6cad4b9450309 | /django_api/contact_api/utils.py | 3592a4dff3b471236d3133fa85e392941ed36ba4 | [] | no_license | sarahdactyl71/django_api | b1e3392befdf2d99dac9a1d754ed1957892fd4c9 | 87bcd12dc7d1aa1b18968f3da16c1c7369e2a1bb | refs/heads/master | 2020-03-26T09:20:25.695850 | 2018-08-22T06:05:24 | 2018-08-22T06:05:24 | 144,745,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import json
def parse_json_for_data(request):
r = json.loads(request.body)
full_name = r['full_name']
email = r['email']
address = r['address']
phone = r['phone']
return {'full_name': full_name, 'email': email, 'address': address, 'phone': phone}
def get_user_creds(request):
username = req... | [
"kirkse710@gmail.com"
] | kirkse710@gmail.com |
4c3861919096c212fc796e992d2e10a2588b9a40 | 7d8711ca39731eed2b236f9b03c113c62415efde | /test/__init__.py | 96b466c239e27c665071b28e2bfd277713d2fcef | [] | no_license | IndonesiaHaze/indonesia-haze | d4cc94b48c89e2badff4d52c2549c194a735009e | 9908a2859b0801dba53479bb9bfcbaa95228e7ae | refs/heads/master | 2021-01-10T17:51:39.494257 | 2016-02-08T09:21:22 | 2016-02-08T09:21:22 | 48,312,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | __author__ = 'brlnt-super'
| [
"okasurya@users.noreply.github.com"
] | okasurya@users.noreply.github.com |
fc79fded64c300677e0efa2c62dbca95c45f3941 | 3f29c0eecb7bf4bf5ead307210d08201660024a1 | /Networking/Google_Calendar/Native_HTTP/Refresh_Token.py | 0ad9641ea334a602a38a7d410825c7757fc06353 | [] | no_license | reds98/Python-Sensei | 3f171745889f051bd51dbd4f1636206cd3eda2ba | ace27303cfc89400980ebd1188245532dfd44003 | refs/heads/master | 2020-07-31T06:58:26.034758 | 2020-06-05T06:59:41 | 2020-06-05T06:59:41 | 210,522,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import requests
response = requests.post(
url='https://www.googleapis.com/oauth2/v4/token',
data={
'client_id': '329717365176-aqe4dnhufklio4fcbhlg2j498g7gspn4.apps.googleusercontent.com',
'client_secret': '-1OsrUOu_P2Bwa1e-CAX6C_-',
'refresh_token': '1//04t3Sd3pr_NKCCgYIARAAGAQSNwF-L9Irq... | [
"sahid.rojas64@gmail.com"
] | sahid.rojas64@gmail.com |
111aa7b541118eeee86127ef84029eea234ce034 | 4b8dfa56ee51214637db2ac718c599a44577d076 | /app/__init__.py | 73af1bc70d3a52dd149747a4d0dc6bd566d6e376 | [] | no_license | psy2848048/langchain_eosio | fed1add7b451fb8c9c21a2f4780d905dc95bc7d6 | 82f7984a6f207d6403f274fbe1846f53b172cb6d | refs/heads/master | 2022-10-19T13:42:27.250579 | 2020-06-16T01:26:10 | 2020-06-16T01:26:10 | 272,577,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # -*- coding: utf-8 -*-
from flask import Flask, g, redirect, make_response, jsonify
from flask_session import Session
from flask_cors import CORS
import os
import subprocess
# Define the WSGI application object
app = Flask(__name__, static_url_path='/static', template_folder='/static/front')
#: Flask-Session
Session... | [
"psy2848048@gmail.com"
] | psy2848048@gmail.com |
33db5512963f5b8c6d5910b476d375ebec537462 | 414393a5048e5212223051d6a5541ecb873bcc53 | /imagenet_VGG16/main_PFSUM.py | 00bece7144bfcbbe48d1335b150d8de00d3d18ec | [] | no_license | byh1321/CIFAR100_Distorted_Channel_Selective | 5a0fc1107ab9d60ce12504a8e474144762eda8df | 897f2dea4e645329dfc3bf3df6b147c783bfa83f | refs/heads/master | 2020-03-21T02:31:24.024771 | 2019-08-12T05:59:53 | 2019-08-12T05:59:53 | 138,002,631 | 0 | 0 | null | 2019-08-02T02:26:49 | 2018-06-20T08:26:51 | Python | UTF-8 | Python | false | false | 21,685 | py | from __future__ import print_function
import time
import torch
import torch.nn as nn
import torchvision.datasets as datasets
import torch.backends.cudnn as cudnn
import torchvision.transforms as transforms
from torch.autograd import Variable
import torch.nn.functional as F
import torchvision.models as models
import ar... | [
"byh1321@naver.com"
] | byh1321@naver.com |
15cb6d7afdc7fc7eaaeaf492f771909ea8cda285 | 833b43575815ce6c5fa8cbac2628cb774331eda7 | /chap14_p277_code1.py | ae943fb048c09744b8a7feb977edb8216aa7d722 | [] | no_license | ai-times/infinitybook_python | d9529dfe7d486bf5c713d52b530915a23cbf1812 | 1c011c31994d07fe959bba9b519c4365f5f40e7f | refs/heads/main | 2023-03-01T12:18:20.695888 | 2021-02-14T04:22:40 | 2021-02-14T04:22:40 | 338,578,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | code = input("주민번호 앞자리 입력 : ")
y = "19" + code[0:2]
m = code[2:4]
d = code[4:6]
age = 2019-int(y)+1
print("당신은", y, "년에 태어났군요.")
print("당신의 생일은", m, "월", d, "일 이군요.")
print("당신의 올해", age, "살 이군요")
| [
"wskim092@gmail.com"
] | wskim092@gmail.com |
2bd082fdd4932b32b6df338c4a8dc17d3a48077a | 328f38ab097afcdf0426b21a070c3c78ecfe6edb | /1-4.py | f19a93617c0ef7a8f68d96f214bc3d717314e355 | [] | no_license | smgmamur/Practice-Python | ab3f1130dbf0b5ec6590c61039649035190130f3 | d383b196b92b1ba62c2c678164a98fd24eb320a0 | refs/heads/master | 2021-09-06T19:08:03.390086 | 2018-02-10T04:13:28 | 2018-02-10T04:13:28 | 106,565,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | '''
Created on Oct 11, 2017
@author: mhossain
'''
i = 0
num = int(input("Enter a number to find its divisors:"))
nums_less_than_num = list(range(1,num+1))
divisors = []
while nums_less_than_num[i]<num:
if num%nums_less_than_num[i]==0:
divisors.append(nums_less_than_num[i])
i=i+1
print(divisors)
| [
"noreply@github.com"
] | noreply@github.com |
10db09bd205a4767ad04c2ad9a7ae71e296af40f | 296132d2c5d95440b3ce5f4401078a6d0f736f5a | /homeassistant/components/xiaomi_ble/sensor.py | 831b5d0910be035820e0172f6706c2b06edb2f0c | [
"Apache-2.0"
] | permissive | mezz64/home-assistant | 5349a242fbfa182159e784deec580d2800173a3b | 997d4fbe5308b01d14ceabcfe089c2bc511473dd | refs/heads/dev | 2023-03-16T22:31:52.499528 | 2022-12-08T02:55:25 | 2022-12-08T02:55:25 | 68,411,158 | 2 | 1 | Apache-2.0 | 2023-03-10T06:56:54 | 2016-09-16T20:04:27 | Python | UTF-8 | Python | false | false | 6,812 | py | """Support for xiaomi ble sensors."""
from __future__ import annotations
from typing import Optional, Union
from xiaomi_ble import DeviceClass, SensorUpdate, Units
from homeassistant import config_entries
from homeassistant.components.bluetooth.passive_update_processor import (
PassiveBluetoothDataProcessor,
... | [
"noreply@github.com"
] | noreply@github.com |
d28eca3d054bc287a25d6c77fb244f87cf085ec2 | a8ce50df43eb06efe284e0a5f58bad1ba29db95e | /VaccinationSpots.py | 896ec55b65509194479b2ea6e4af362a76297171 | [] | no_license | RohitDashora/vaccineFinder | 052a983d0655fce7c10ad2fbf70fccacfc281e4f | 234d7b564c354f2b1b5083686b820d59462e52c5 | refs/heads/main | 2023-05-30T07:35:42.315273 | 2021-06-06T19:48:18 | 2021-06-06T19:48:18 | 364,281,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | ### core login, now distributed, this file will be removed
import argparse
import requests
import json
import datetime
from datetime import date
from datetime import timedelta
#adding argparse to go with command line argument, this will also generate helptext
ap= argparse.ArgumentParser()
ap.add_argument("pincode", he... | [
"rohitdashora@gmail.com"
] | rohitdashora@gmail.com |
5d5765059765b74e4cfcfc5ac46ced0437562b18 | a633ffc4cf287c4799843f8480a4bb804432c2f0 | /makecsv.py | 72821f81037ead2d743d1d777c2fe5dd87be3fcb | [] | no_license | josieFoo/webscrapper | d195e8a19230c8d209f03a8231b7f76c3e71ade5 | 999a8a04099c466b08a34f3897d2ef8015ffdf8a | refs/heads/master | 2023-04-03T14:37:22.458373 | 2021-05-04T19:35:38 | 2021-05-04T19:35:38 | 364,366,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import csv
def save_to_file(tuples):
file = open("courses.csv", mode="w")
writer = csv.writer(file)
writer.writerow(["title", "link"])
for t in tuples:
writer.writerow(list(t.values()))
return | [
"65567887+josieFoo@users.noreply.github.com"
] | 65567887+josieFoo@users.noreply.github.com |
984ba1aebcc881466e7f57859ef9a5ae29fb6614 | 0deba0f28b36ab39df4bdb2ed9fca9fedf638a91 | /lovegov/dev_manage.py | 5cd2e1704b13f49a4ab804a846b49263dca6959d | [] | no_license | mhfowler/LoveGov | 080e2c8fedcc3ad7b5d008787921558cfd86a2bf | a77c9d968059361fe09409d46568afe86239e3ba | HEAD | 2016-09-06T06:03:34.289383 | 2014-09-04T15:32:39 | 2014-09-04T15:32:39 | 4,600,457 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.core.management import execute_manager
import imp
try:
imp.find_module('dev_settings')
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'dev_settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing ... | [
"jsgreenf@gmail.com"
] | jsgreenf@gmail.com |
27a49544c7c1b8f8f550a76bdb9f95675a635c6a | 3cedb583e9f3dfcdf16aeba56a0b3ff7c6213e99 | /python-codes/m3_curso_em_video_estruturas_compostas/ex101.0.py | b156f239ea79ed513ea7696f940a01732d28e535 | [
"MIT"
] | permissive | lucasportella/learning-python | 0f39ae2389db6d07b5b8c14ebe0c24f1e93c77c5 | a9449dffd489e7e1f1619e3acef86bc2c64f0f14 | refs/heads/master | 2022-12-26T15:04:12.806300 | 2020-10-14T23:17:47 | 2020-10-14T23:17:47 | 260,685,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def voto(ano_nascimento):
from datetime import date
idade = date.today().year - ano_nascimento
if idade < 16:
return print(f"Com {idade} anos: VOTO NEGADO")
elif 16 <= idade < 18 or idade >= 70:
return print(f"Com {idade} anos: VOTO OPCIONAL")
elif idade >= 18 and idade < 70:
... | [
"lucasportellaagu@gmail.com"
] | lucasportellaagu@gmail.com |
c87621bd581d363337b17836bd4c0148c9a0d81b | 3df711ca560ed1d5da78ef6a30babf1e5500ec96 | /posts/migrations/0001_initial.py | ae463b455cb684bba71f6242a1c3d9848d0ea1d1 | [
"MIT"
] | permissive | alejandrowd/platzigram-github | 3a7da395e99a5daa7a4ac1553375516a7c45885f | 87056629dc7c196281330f02fc4e830b06acef2e | refs/heads/master | 2020-04-21T18:43:29.170782 | 2019-02-11T22:53:38 | 2019-02-11T22:53:38 | 169,781,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # Generated by Django 2.0.7 on 2019-01-17 00:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0002_auto_20190116_1901'),
migrations.swappable_depend... | [
"arguellowalter@gmail.com"
] | arguellowalter@gmail.com |
2f4a30b005a855598d009b9a2f39db016da46006 | a8ab1fe9859f8d790af0f685bcadffdd39707354 | /main.py | bd2912c06f9621996a792267bdc5b08602dd2a86 | [] | no_license | Nigel-Ernest/PDF_to_Speech | 5e530b2fe2b940717ff93ad19a1d1a9dc46a4fc9 | 7bd25952f6d1e793994449741cf10dccf8c4e827 | refs/heads/main | 2023-01-04T01:32:31.793960 | 2020-10-30T13:18:10 | 2020-10-30T13:18:10 | 308,634,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import pyttsx3
import PyPDF2
book = open('The_Art_Of_War.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(book)
pages = pdfReader.numPages
print(pages)
speaker = pyttsx3.init()
speaker.setProperty('rate', 150)
speaker.setProperty('volume', 0.7)
voices = speaker.getProperty('voices')
voice_id = "HKEY_LOCAL_MAC... | [
"noreply@github.com"
] | noreply@github.com |
273fd7b6034f9f22838ca96b6da75d9ec2de89ea | 4d4efbfed965c4f61d1a769c73aebd2ac84bd3a2 | /Unidad 3/ejercicio13.py | ee7e9fb1a4ccb47d28fc23bedc89948a47938e4d | [] | no_license | JoeMaurice88/testayed2021 | 985275d93570578ee5a5f832e24d083c7f86e0de | 8a4216df4e2d2cc423a918a9b8eaa2f1d1a5e4f8 | refs/heads/main | 2023-07-27T18:23:51.976812 | 2021-09-09T23:44:03 | 2021-09-09T23:44:03 | 404,898,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """Ejercicio (Ahora con flag)**
El programa debe:
* pedir un dato al usuario
* solo en caso que este escriba la palabra clave "python" imprimir por pantalla "Correcto",
en caso contrario debe seguir pidiendo el dato
* no deben aparecer errores."""
flag= True
while flag:
dato_1= input("Ingrese un dato: ")
... | [
"joelmaurice@iresm.edu.ar"
] | joelmaurice@iresm.edu.ar |
bc8bc46623f89ed25fa9f05d0c589a967a1bcd30 | bb68bb93b4c587bbe898fa968c170ecf7abe861f | /CheckValidCGRs_and_Uniqueness.py | 6b037039f54d39e85241453d2a21f907761f8214 | [] | no_license | phquanta/CGRSmiles | 701b3ecc806982ba2fb2f694f5f0fa180853ace3 | 287f94dc6d4522d720b82f5ba3045a0423ebe846 | refs/heads/main | 2023-03-31T06:08:05.733237 | 2021-04-01T15:27:33 | 2021-04-01T15:27:33 | 353,736,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,864 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 8 19:47:32 2020
@author: phquanta
"""
import rdkit
from rdkit.Chem import AllChem
from rdkit import Chem, RDConfig
from rdkit.Chem import MolFromSmiles, AllChem
from rdkit.Chem.rdChemReactions import PreprocessReaction
import CGRtools as cgr
fr... | [
"phquanta@gmail.com"
] | phquanta@gmail.com |
19cc60d4e3a124fb7b5614ada71255c241c7ebaa | b8d05aa6db8c1f43f431480f7952a49949d45b53 | /model/init_net.py | 600b7769496114f25e0f4cc0bd970b11672076ce | [] | no_license | tonggege001/MyGAN | 4ca184ac7a456d1cde732da29dfb85e5fab507a4 | 5742bdac7e844d06b67387d1fd8bc16347a4cd55 | refs/heads/main | 2023-05-10T23:35:56.580537 | 2021-05-31T12:35:41 | 2021-05-31T12:35:41 | 370,544,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | import torch
import torch.nn as nn
from torch.nn import init
def init_net(net, init_type='normal', init_gain=0.02, gpu_ids=[]):
"""Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights
Parameters:
net (network) -- the network to be initialized... | [
"wontun12@gmail.com"
] | wontun12@gmail.com |
a69a5ede8bc3f3237d149df470385eda0dce6cb6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YLf984Eod74ha4Tok_9.py | 8d3ff278a5843fa0485c8620003772aaf0edbc8e | [] | 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 | 1,331 | py | """
In a calendar year, it is exactly 365.25 days. But, eventually, this will lead
to confusion because humans normally count by exact divisibility of 1 and not
with decimal points. So, to avoid the latter, it was decided to add up all
0.25 days every four-year cycle, make that year to sum up to 366 days
(including ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e7512b4e43e0611ca740b20d2048d4b3495e4361 | e4a9e84cffa74cc56e2a6647e1fc9ae7d607adaa | /BackEnd/apps/a_common/scheme.py | a24b1f2d2c1dee0ab65e9394fa00004a8cc1428e | [
"MIT"
] | permissive | lyleshaw/Program-Practice | 1be643b8516300065902d644be99686edd6b4f5e | 84cdc4fd2fd353974ea5b8cd12a01d847db3cac3 | refs/heads/master | 2023-05-14T11:48:04.568317 | 2021-06-06T02:45:05 | 2021-06-06T02:45:05 | 369,116,923 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | import abc
from typing import List
from fastapi import Query
from pydantic import BaseModel, Field
from apps.a_common.constants import Sex
"""
放一些通用的验证字段,比如手机号,邮编,身份证
"""
PhoneField = Field(..., regex=r"^1(3[0-9]|5[0-3,5-9]|7[1-3,5-8]|8[0-9]|9[0-9])\d{8}$", description="手机号码,带有正则验证", title="手机号码")
IDCard... | [
"x@lyleshaw.com"
] | x@lyleshaw.com |
2918cf510c1ddfe401a31a9ef624cd06e9c23e25 | edb6545500e39df9c67aa918a6125bffc8ec1aee | /src/prompt_toolkit/layout/screen.py | 2b58272ca1cc52d588539ac551aa16498dd12b20 | [
"BSD-3-Clause"
] | permissive | repnzscasb/python-prompt-toolkit | 2681716b0e10ef816228091a19700d805ec0f4d9 | da05f669d00817655f76b82972272d4d5f4d4225 | refs/heads/master | 2022-12-22T09:34:26.426466 | 2022-12-06T22:35:54 | 2022-12-06T22:35:54 | 148,856,050 | 0 | 0 | BSD-3-Clause | 2018-09-15T00:53:56 | 2018-09-15T00:53:56 | null | UTF-8 | Python | false | false | 10,241 | py | from collections import defaultdict
from typing import TYPE_CHECKING, Callable, DefaultDict, Dict, List, Optional, Tuple
from prompt_toolkit.cache import FastDictCache
from prompt_toolkit.data_structures import Point
from prompt_toolkit.utils import get_cwidth
if TYPE_CHECKING:
from .containers import Window
__... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
7cca3e60f41f8fdd61160edec4bdf0bd36208e58 | 4b3d06e1baf7ec652039bbe780968d26fd203b62 | /train_online.py | ecf1bd503b5edadf259e51fcd812a6b4fc81d088 | [] | no_license | antoinecomp/Chatbot_RASA_room_reservation | 8f7ddcef9b2a893830ec8df328d58625ce18102a | 7c20bcefc75159b5736eb7c91e56c52fee0b7dd6 | refs/heads/master | 2020-04-08T20:50:33.670614 | 2018-11-25T11:19:13 | 2018-11-25T11:19:13 | 159,717,529 | 0 | 0 | null | 2018-11-29T19:34:23 | 2018-11-29T19:34:17 | Python | UTF-8 | Python | false | false | 1,501 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from rasa_core.agent import Agent
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.policies.memoization import MemoizationPolicy
fro... | [
"noreply@github.com"
] | noreply@github.com |
ace6b636412317b0696d877f61b07556ff12852e | fd799b081c1fc448aca783d4af8f81825c7183c1 | /events/migrations/0002_auto_20170828_1345.py | ce8a20db458e128c7c30f1a6d280fe83f0dfba39 | [] | no_license | Fcmam5/sdh_foundation | 73e72176db8d712dc555a093552a5ba878149109 | 0d8bb3587562ae691c5923b13513189128c39b59 | refs/heads/master | 2022-12-13T18:41:21.607936 | 2020-02-13T22:36:37 | 2020-02-13T22:36:37 | 100,252,638 | 3 | 1 | null | 2022-11-22T04:28:47 | 2017-08-14T09:48:57 | JavaScript | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-28 13:45
from __future__ import unicode_literals
from django.db import migrations, models
import events.models
class Migration(migrations.Migration):
dependencies = [
('events', '0001_initial'),
]
operations = [
migrations.Al... | [
"bahri.aimen48@gmail.com"
] | bahri.aimen48@gmail.com |
54c2c7f3ffcb4e4ed90513a1268dfb34424e6ee1 | 1f32096af05da776c59a11b74a424637aa718113 | /primer_clip/bed.py | f8515d2c193cfd8fbfdaa6d97ed825da38f3986d | [] | no_license | ohsu-comp-bio/compbio-galaxy-wrappers | a222dbef5d4d4101f1705c6101f2e212435d1ea8 | 6162bc6d8ee37401de8dffec545935953028bed7 | refs/heads/master | 2023-08-31T05:32:22.305366 | 2023-08-29T18:24:59 | 2023-08-29T18:24:59 | 32,424,561 | 6 | 13 | null | 2023-09-14T19:28:18 | 2015-03-17T22:40:39 | Python | UTF-8 | Python | false | false | 6,729 | py | class BedReader(object):
"""
Simple class to ingest BED files and return a data structure as such:
{chrom: [start1, stop1], [start2, stop2], ...}
Input: filename
"""
def __init__(self, filename):
self.filename = open(filename, 'rU')
self.bed_ints = self._create_bed()
s... | [
"jhl667@yahoo.com"
] | jhl667@yahoo.com |
53fd18278c30fb46cf3443854f3924d9d88bf8f1 | eb99e2e9eda8ed769bf9d27d0e1ece2f4df98302 | /DataLoad.py | 253001fe6fc6ba2ec222a4c86c2b7e02bd19adec | [] | no_license | AmbarDudhane/Hotel-Search-Engine | b33990d59d445ebcade0e212bc9b41a7ddf8f1ab | 8744a51461c67aec748815981be93f32d150aa34 | refs/heads/master | 2020-08-09T11:20:03.930810 | 2019-12-04T05:25:42 | 2019-12-04T05:25:42 | 214,076,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | '''
Author : Ambar Dudhane
Date : 6-10-2019
Contact : ambarsd12345@hotmail.com
'''
import os
import pandas as pd
from nltk.corpus import stopwords
from nltk.tokenize import RegexpTokenizer
from nltk.stem import PorterStemmer
import math
import pickle
import datetime
def storeTotalDocuments(total):
... | [
"noreply@github.com"
] | noreply@github.com |
f05b076a55494c3defd23b21101ba4ccb8e6b53b | fd9e9a5b9e013bbbd834f5f85d4e1b8ee165443a | /db_downgrade.py | 6bfb62d2e183d28b9a725dcc9396d71f0ed6ac84 | [] | no_license | xiayunlong1991/noozjunkie | 0e44b665616880cdc310ccafbd0c80e46d1a1b05 | 6311c4e970e3c01a622b3677e874ec030a800443 | refs/heads/master | 2020-12-28T23:04:52.343098 | 2016-01-13T20:25:46 | 2016-01-13T20:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!flask/bin/python
from migrate.versioning import api
from webapp_config import SQLALCHEMY_DATABASE_URI
from webapp_config import SQLALCHEMY_MIGRATE_REPO
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
api.downgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO, v - 1)
v = api.db_version(SQLALCH... | [
"ljheidel@gmail.com"
] | ljheidel@gmail.com |
08b4c22919b5f084c739575e4ce22a1ed07a6174 | 901ca534bf5cdb3f7fdc0b53eb243fc4f1e6c3a6 | /taopiaopiao/urls.py | 43830b71ffe4286a1080ebf15c2ae6e97f5fa0f2 | [] | no_license | jiangxinke19960710/taopiaopiao | cc70f47def72bce1bf586ceb3dbe068c6b4d9989 | adb3e9423767dddaefd04c755b88f3645fca1381 | refs/heads/master | 2020-05-04T20:43:52.720398 | 2019-04-04T07:55:10 | 2019-04-04T07:55:10 | 158,798,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.conf.urls import url,include
from django.contrib import admin
from apps.home import views
urlpatterns = [
url('admin/', admin.site.urls),
url('home/',include('home.urls') ),
url('account/',include('account.urls') ),
url(r'^captcha/',include('captcha.urls') ),
url(r'sort_movies/',includ... | [
"2263009782@qq.com"
] | 2263009782@qq.com |
d91a3f21c10aa90b08dbeab595516c260355f3d6 | 5a3ce4563bb64786949d73b8637adf29da620207 | /lpthw_27-52_15072016_pycharm/ex32.py | dafd6f56a831f394f48084a5e1255e09af7b1137 | [] | no_license | ohoboho79/LPTHW | 8a445ecd51dae2c9a57a9d23077ab8cc1661ace3 | f61a9dba4c14940dae8719f2c53d2e3325eae09b | refs/heads/master | 2020-12-25T14:22:40.761076 | 2016-09-09T13:29:51 | 2016-09-09T13:29:51 | 67,192,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
#This first kind of for-loop goes through a list
for number in the_count:
print "This is count %d" % number
#same as above
for fruit in fruits:
print "A friut of type: %s" % fruit... | [
"nterziysky@mail.bg"
] | nterziysky@mail.bg |
066304dabdf5fafd3a3ca245cdb1d1d3665ca05a | 557946dcb52d38173d06f5d1aad069294dd10254 | /producttracker/tracker/admin.py | fb7198a9f25559514eaf077d58ee6cf88f26380d | [] | no_license | thomaschriskelly/product-tracker | 4c5404dde61c91c4ae6d9b11f7441fd4d2d132fb | d7ae34d164904faa89c963ac66413bb46162cd4b | refs/heads/master | 2021-07-12T06:19:02.728080 | 2017-10-14T16:34:38 | 2017-10-14T16:34:38 | 106,733,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
# Register your models here.
from .models import Product, Breadcrumb
admin.site.register(Product)
admin.site.register(Breadcrumb)
| [
"thomaschriskelly@gmail.com"
] | thomaschriskelly@gmail.com |
faf6419f573eee071a77d9cb8740755a3ebf8256 | be94ee27511f5a558405c9bb9caba713841b1059 | /hmm/chart-bar.py | 755ca1e9a93396bfd9c36a4c4349fbf26a08bdb5 | [] | no_license | david-message/python | 12430ae01f46367e4fa93dd75f7dc7a4a4da9e09 | 7f2604f3cf955c374dc3dff1e52e696bf206df50 | refs/heads/master | 2021-09-03T13:13:52.729204 | 2018-01-09T09:25:04 | 2018-01-09T09:25:04 | 107,939,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """
Make a pie chart
This script is written by Vamei, http://www.cnblogs.com/vamei
you may freely use it.
"""
import matplotlib.pyplot as plt
import numpy as np
# quants: GDP
# labels: country name
labels = []
quants = []
# Read data
for line in file('../data/country_gdp.txt'):
info = line.split()
labels.a... | [
"david.message@gmail.com"
] | david.message@gmail.com |
10cc66e1643f4c035580b4b7091f02ac6134d1c9 | b754aeccfb2c8dcd572fe6aeb03ed99bd6cd2ee9 | /docs/source/conf.py | 08225bc4ce3132060ec6994a2ce54cce92c05e79 | [
"MIT"
] | permissive | danielflanigan/resonator | dbd9e2ca76cec1e09f6dd0f1d5e549730058d74b | 97f4183ca956d40ca3be606dc4b7fc202360ac58 | refs/heads/master | 2022-07-28T04:27:33.455803 | 2022-07-14T07:53:31 | 2022-07-14T07:53:31 | 134,384,010 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"daniel.isaiah.flanigan@gmail.com"
] | daniel.isaiah.flanigan@gmail.com |
c274c1bb953eb1497f0f75d7d6eae5b6c2d654e4 | 6653b885b0a4ef50b833757277d40c187289edc3 | /togithub/tcp_server.py | 94377df79b36fd30e8c093bdbb6dc7058fb3e5aa | [] | no_license | gdcgit/python_study | 0955542f2ba9dc1a8c0b294beb5306235d3a5bf3 | c3c9a24f2e98c9524e9b60f9bbcdeb768079b1e3 | refs/heads/master | 2020-03-10T05:28:11.930943 | 2018-09-03T08:32:05 | 2018-09-03T08:32:05 | 129,218,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # -*- coding: utf-8 -*-
import socket
import threading
import time
def tcplink(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'welcome')
while True:
data = sock.recv(1024)
time.sleep(1)
if not data or data.decode('utf-8') == 'exit':
... | [
"378641588@qq.com"
] | 378641588@qq.com |
8a47560d80d2fcdfd8863054c9180f0cfd30801c | 8be54552853763d82315300b543364206e82afb3 | /botAIT.py | ed17bb6184f5e168bf6c6d0e647faf8284827ddf | [] | no_license | ramir7887/telegrambot | 8e36ffd90070eab36a1525bd0ad06eeadf456b61 | 27c927d2cdadc94c625dbe964e5fbf388f542fd3 | refs/heads/master | 2020-05-24T09:59:59.268288 | 2019-05-28T16:06:30 | 2019-05-28T16:06:30 | 187,219,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,960 | py |
#import initbot
import requests
from telebot import types
import telebot
import json
import socket
import redis
import re
import yaml
from postgres import Postgres
############################################
############################################
#1)Добавить функцию с общей информацией о станке
#2)Разделить тел... | [
"ramir7887@yandex.ru"
] | ramir7887@yandex.ru |
8e4f243dcfc79f2d6db3631448de760c0f7d0b54 | b65542cac9b8bbe4fd1cc434297aaefb11b7bee0 | /dzTraficoBackend/dzTrafico/apps.py | b5a858ce335467cabfdcdbf500db2a1e694580b8 | [
"MIT"
] | permissive | DZAymen/dz-Trafico | f3c53e9531b267dd6b578124c4d33f00ea071dc0 | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | refs/heads/master | 2023-01-07T14:41:36.274533 | 2020-10-31T14:04:26 | 2020-10-31T14:04:26 | 107,466,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class DztraficoConfig(AppConfig):
name = 'dzTrafico'
| [
"aymen_lakehal@live.fr"
] | aymen_lakehal@live.fr |
675df779fe3084bf1af9683905678d351fb4168a | f906e747b4366a9a8364d922fd7dab8280b16424 | /tensorflow_cookbook-master/02_TensorFlow_Way/03_Working_with_Multiple_Layers/03_multiple_layers_of_ipynb.py | 6cf0b7244c0a20c16c999b4a21840eccd16542a9 | [
"MIT"
] | permissive | tony36486/Machine-Learning | 17c396725d8e2925e8304cb9f9eee7590ad155cf | 4cc8b163212ee0550d057209fb88a2617f0fd75f | refs/heads/master | 2021-01-21T13:21:45.700914 | 2017-07-22T07:22:52 | 2017-07-22T07:22:52 | 91,810,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 31 22:52:07 2017
@author: tony
"""
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import os
from tensorflow.python.framework import ops
#Reset graph
ops.reset_default_graph()
#Create a Graph Session
sess = tf.Session()
#Create Tensors
# Creat... | [
"tony36486@users.noreply.github.com"
] | tony36486@users.noreply.github.com |
0b67d648bfe3eb20a16551d68355d41b176292bc | c32d944bcb8b5c375b86cc11fa74f6d3356d952c | /venv/bin/django-admin | b88bcac5d91bee06ffdca07e0fe1b8df397205c7 | [] | no_license | cleocardoso/RNcaronas | deff0465a080c9cb5fa635017570dd2233239ae0 | 2a420953864e1e0dceed7253c946f637049b0490 | refs/heads/main | 2023-03-15T09:54:15.035255 | 2021-03-17T17:24:47 | 2021-03-17T17:24:47 | 335,401,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/home/cleonice/PycharmProjects/RNcaronas/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"cleotads21@gmail.com"
] | cleotads21@gmail.com | |
6d92263aec607e08cf6bd3646b8df1e30e2e2ca4 | e9cbdb3260cdeb5e4ef96cd48cdb93694c22c565 | /spider/search.py | e65fdea50fc2942ee1c1493e75e560da3df5608f | [] | no_license | FelixVicis/nan-fresno | 1ba41af5f82fa5cdad218495725819f6d1912f38 | 589c080aa40d15cdc995f72baab3447051036c5e | refs/heads/master | 2020-03-27T16:47:26.899627 | 2018-07-29T03:07:05 | 2018-07-29T03:07:05 | 146,806,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import googlesearch as google
def websites(query, start=0, stop=None, per_page=10):
return google.search(query, start=start, stop=stop, num=per_page)
def images(query, start=0, stop=None, per_page=10):
return google.search_images(query, start=start, stop=stop, num=per_page)
| [
"Mills.Allen.James@gmail.com"
] | Mills.Allen.James@gmail.com |
9124d26a7c4310c597113e9a92316dc2a76880aa | 831fb492d63b6cb0cecc7fc93ba62cf912040ff4 | /mysite/settings.py | 5795cad0583df818aa260841e0aa73a1d6d5afea | [] | no_license | edu4il/my-first-blog | 4a3fc5dfd499927a8a0090bddf1240ffd1e8804e | 2009bb774d2fe6b553340dfe2fd950eefd0209d1 | refs/heads/master | 2020-03-22T18:14:48.620187 | 2018-07-12T02:43:27 | 2018-07-12T02:43:27 | 82,006,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.7.
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
# ... | [
"edu4il@nate.com"
] | edu4il@nate.com |
a3cb808b44d85ac6501e2d248c800322b76a5627 | 864831cd1de41069ec72ee3225a5dc5af0f9f3a9 | /django-react/leads/models.py | f0c48a5358c5f738955767af5510b7857b6effb0 | [] | no_license | KyrahWiggins/django-rest-demo | 7ec6fe98beb377065007673a75f329da4491fe3b | cf2c310dacaa5035a9ac66763bee429608092fe1 | refs/heads/main | 2023-07-06T05:21:21.218368 | 2021-07-27T20:04:36 | 2021-07-27T20:04:36 | 385,282,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Lead(models.Model):
objects = None
name = models.CharField(max_length=100)
email = models.EmailField()
message = models.CharField(max_length=300)
phone = models.CharField(max_length=20)
created_... | [
"kyrah.wiggins@gmail.com"
] | kyrah.wiggins@gmail.com |
f731329651c7822ef9fefb15848334d0ba19c654 | 4d1cc7fbec98ab05eb500855e3d61bcdd0067d22 | /D.py | a9cc2f2c05d9891673e64796615e8d58fc2ebd46 | [] | no_license | itachiuchihu/lab6 | a8da5ef28ed7631429b34ffe7cbf21314a047eca | 6c6e94d627861a185de98cdc0f4723a226005ac5 | refs/heads/master | 2020-12-11T03:56:01.399899 | 2015-10-12T19:09:46 | 2015-10-12T19:09:46 | 43,736,480 | 0 | 0 | null | 2015-10-06T07:40:15 | 2015-10-06T07:40:15 | null | UTF-8 | Python | false | false | 274 | py | A=input()
k=int(A[0])
n=int(A[1])
B=[]
for i in range(k):
Q=''
Q=Q+input()
for t in range(n):
if
B=B+[int(Q[t])]
Q=''
for i in range(n):
u=i
C=[]
for t in range(k):
C=C+[B[u]]
u=u+n
f=min(C)
Q=Q+str(f)
print(Q) | [
"warcraft.menyilo@rambler.ru"
] | warcraft.menyilo@rambler.ru |
89082409ae181644fe0c44742f9546791c840103 | b915d2155a1d09e29db8563127faf5ca4ec184eb | /3/main.py | 7b4586ca15c91e5dec069282dfcb82bd4a6bc3e9 | [] | no_license | AnshThayil/AdventofCode2015 | 618bffb3b601a3e9d3c73fb72e7324a2c1ab2056 | aa5735eff61acb0cb2a5afe9265b2318c88ab2b8 | refs/heads/master | 2022-12-26T08:55:30.569708 | 2022-12-14T10:36:04 | 2022-12-14T10:36:04 | 114,738,595 | 0 | 0 | null | 2022-12-11T10:46:24 | 2017-12-19T08:24:03 | Python | UTF-8 | Python | false | false | 2,328 | py | #author - Ansh Thayil
#Advent of Code 2015 Day 3 - Perfectly Spherical Houses in a Vacuum
x = 0
y = 0
xlist =[0]
ylist = [0]
coords = []
def removeduplicates(list):
workablelist = list
list_without_duplicates = []
for i in range(len(list)):
for j in range(i + 1,len(list)):
if list[i] =... | [
"Ansh.Thayil@yahoo.in"
] | Ansh.Thayil@yahoo.in |
dfa62b814e12a7fa59459792800f836689250725 | 6d43c34b418233d9b81980e6cba01a26d6a3e91a | /Tutoring/file01.py | a2e1c5de2973e1ed48c157523a3749179049e822 | [] | no_license | spongebob03/Playground | 1cbba795294e5d609cb0ae951568f62d6f7e8dbc | 4acae2f742f9f8b7e950053207e7c9f86cea6233 | refs/heads/master | 2021-01-05T04:22:36.303355 | 2020-05-22T13:59:28 | 2020-05-22T13:59:28 | 240,878,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | f = open("test.txt","r")
data=f.read()
f.close()
dic={}
for i in data:
dic[i]=data.count(i)
print(dic)
f=open("proverbs.txt","w")
f.write(str(dic))
f.close()
| [
"sunhee1996@naver.com"
] | sunhee1996@naver.com |
5e66469bc6925e125f81384f459e25881ddab17c | 71c9cae3ed8f96dfd40bd5040bc5d7e9f37590e9 | /jerrybot.py | db37244fd9bc8f2aaefcd94cd638e885036ba6ba | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | akosthekiss/jerrybot | b6eb1dd261624473a553efcf0081ab92cbe4ed7c | d892d1f841b43a54a05b27a83118a0a8c9642f51 | refs/heads/master | 2021-01-11T05:14:52.444071 | 2016-09-25T22:09:53 | 2016-09-25T22:09:53 | 69,193,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,327 | py | #! /usr/bin/python
# Copyright 2016 University of Szeged
# Copyright 2016 Akos Kiss
#
# 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
#
# Unl... | [
"akiss@inf.u-szeged.hu"
] | akiss@inf.u-szeged.hu |
c51f1a3b2c6432d6e2c324706f3f1ef9f43cc9ac | a5c7a5b169781e6c8636e9351e576e3f18c62602 | /RaijinEngine/properties.py | f07568a11441bfc674575601c7679ca8cd9e28b4 | [] | no_license | shivankurkapoor/raijin | a910cedfe0f26f37c93f21cbb8c8eb568973117f | 514e9a866c7566542c892295be138e357065b0d5 | refs/heads/master | 2021-09-12T23:37:05.084116 | 2018-04-22T21:01:33 | 2018-04-22T21:01:33 | 59,457,994 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | datasetPath = "C:\\RaijinDataset\\ml-1m\\ml-1m\\"
#datasetPath = "C:\\RaijinDataset\\ml-10m\\ml-10M100K\\"
linksFile = datasetPath + 'links.dat'
moviesFile = datasetPath + 'movies.dat'
ratingsFile = datasetPath + 'ratings.dat'
tagsFile = datasetPath + 'tags.dat'
model_path = "C:\\RaijinDataset\\"
model = "models\\"
| [
"shivankurkapoor3192@gmail.com"
] | shivankurkapoor3192@gmail.com |
09a00f789cbf4c18b58320e124a3ce9bc5e31e41 | d7bc2e88a1905b54da4321d11270c1854ec06c4d | /get_tissue_samples.py | ff4d5a6cbb7895377e7604e6d9f4348b97de8f46 | [] | no_license | cu-swe4s-fall-2019/workflow-anle6372 | 3cb071c58305d297b02cbbe0a7339743eb3442dd | 7ea149af045121d67fe36801249ee81db43f858c | refs/heads/master | 2020-09-14T18:08:21.057637 | 2019-11-22T01:01:35 | 2019-11-22T01:01:35 | 223,210,139 | 0 | 0 | null | 2019-11-22T01:01:36 | 2019-11-21T15:53:36 | Python | UTF-8 | Python | false | false | 1,561 | py | """File for retrieving sample IDs
Parameters
----------
attribute_file : gzipped .gct file containing the gene reads
tissue_name : tissue sample to search corresponding IDs for
output_file_name : name of resulting file
listing sample IDs of associated tissue sample
Returns
-------
output_file : file listing sample IDs... | [
"anle6372@colorado.edu"
] | anle6372@colorado.edu |
7e9dcb08a5d09de543ba08b0a18e43862bec4e80 | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/nympy_commands/oo_numpy_array_manipulation2.py | 2fd9ce51e253406e6f5724fd2fcd8efc7014909a | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | '''
Created on Jan 22, 2012
@author: oo
'''
import numpy
np=numpy
A=[1,2,3]
B=[4,5,6]
A=np.array(A)
B=np.array(B)
c=np.concatenate((A,B))
print c
print '2------------'
c=np.column_stack((A,B))
print c
print '3------------'
c=np.hstack((A,B))
print c
c=np.vstack((A,B))
print c
print '4-----------... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
85863f93c57442e96186df3112f03e59a994bebf | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetExample/InDetSLHC_Example/share/jobOptions_SLHC_nn_prodTrainingSample.py | f8455debc388b3c7208aa0f0ff0ccf73d99c6714 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | ###############################################################################
# jobOptions_SLHC_nn_prodTrainingSample.py
#
# script that reads a series of simulated HIT files, runs digitization and
# clusterization and produces the Ntuples needed to train the cluster splitting
# neuronal network.
# The ntuples produc... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
04b6dd3e9c8df9585e9921d7d92c5ec930088a0f | 74d4c335a53c2c42414d501c6e4d63ed4d9abe1f | /run_tests.py | 4d27eba6e6dd219cc65341c58e9875a5c0ad625b | [
"MIT"
] | permissive | nbeaver/format_json | 4d3d8ff279e67dcc10f05ca533670689c3f923ac | 4d0c2a0660f2e760664751adf92036fd657e1827 | refs/heads/master | 2020-06-03T05:51:39.011907 | 2019-06-18T23:30:17 | 2019-06-18T23:30:17 | 191,468,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | #! /usr/bin/env python3
import format_json
import tempfile
import json
import logging
import unittest
class MyTestCase(unittest.TestCase):
def test_input_output(self, payload=''):
fp = tempfile.NamedTemporaryFile(mode='w', delete=False)
json.dump(payload, fp)
logging.info(fp.name)
... | [
"nathanielmbeaver@gmail.com"
] | nathanielmbeaver@gmail.com |
9ab282d30730162f807df5f1051fb64b4b701f87 | 9abe7510f0dfe405774f5fddcb900b8cfbd89422 | /pi/sense_tools_dodge.py | 3cadb6b1ffc74eb9d6036e7959f849e3d3700ca3 | [] | no_license | ssocolow/Pastebin | 26506c6241b0f9b40fe837c89dde8709d1be207f | 0620ea0701f86b761f6484d587a879b619e63b72 | refs/heads/master | 2022-08-11T19:05:13.644064 | 2022-06-23T15:12:23 | 2022-06-23T15:12:23 | 175,307,139 | 0 | 0 | null | 2021-12-14T15:15:45 | 2019-03-12T22:41:51 | Python | UTF-8 | Python | false | false | 3,095 | py | #import sense hat libraries
from sense_hat import SenseHat
from time import sleep
from sense_tools import Sense_BOARD
import random
#make a sense hat
sense = SenseHat()
sense.clear()
sense.set_rotation(180)
b = Sense_BOARD(sense)
x = 3
y = 0
c = 0
t = 0.03
lives = 3
asteroids = []
first = True
#if pitch is > 20 it i... | [
"noreply@github.com"
] | noreply@github.com |
359e4a6cb059bdb7dbb6abd441869231dd9db3e2 | 2474b18786f3d8d12c6822437ac5a327cb43554b | /reports/report1/oop.py | 7ededa3b3c50f5a98e4476c9e48f37eb329491e2 | [] | no_license | marwaHisham/python_tasks | 5f22466ef3360b12012aa2df46abbd2c0283f963 | ea73be6116a2ae38270d96888fe837740296e56c | refs/heads/master | 2021-05-08T22:57:25.837940 | 2018-02-03T18:49:06 | 2018-02-03T18:49:06 | 119,692,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | #1- super can use to define the parent you need to call even if you inherit from parent
#only and parent inherit from top parent you can use child to call top parent
class Human:
name="marwa"
makeFault=0
def __init__(self,name):# constructor definition
self.name=name
print("i am",name)
... | [
"promarwa2020@gmail.com"
] | promarwa2020@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.