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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba3708d90a4631c1947463207fd55ccaa6c9a973 | 808fbcee02b08b5c89e1af14cebbe1cb3280d8f5 | /jobsapp/forms.py | f7675d0ba0f1577435292b8274f14ddaf4575a6a | [
"MIT"
] | permissive | daniel10027/Django-Recrutement | 14f1aaa788e2887703caf322b627aebdf66a9a89 | 70d86570d9323db0765ae3a313e8d82b1ced4ef2 | refs/heads/master | 2022-12-12T12:29:44.526654 | 2020-03-31T23:41:39 | 2020-03-31T23:41:39 | 252,023,029 | 2 | 0 | MIT | 2022-12-08T03:56:52 | 2020-03-31T23:35:43 | HTML | UTF-8 | Python | false | false | 805 | py | from django import forms
from jobsapp.models import Job, Applicant
class CreateJobForm(forms.ModelForm):
class Meta:
model = Job
exclude = ('user', 'created_at',)
labels = {
"last_date": "Last Date",
"company_name": "Company Name",
"company_description"... | [
"fabianaduval99@gmail.com"
] | fabianaduval99@gmail.com |
4a2196a9ecc0a0210ca916a9f75a99c30dd18bba | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/~inactive/comedynecrophilia/app.py | 32bb06036f62836443d6cbaa929a8408c8d36c71 | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 155 | py | #encoding:utf-8
subreddit = 'comedynecrophilia'
t_channel = '@comedynecrophilia'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| [
"git@fillll.ru"
] | git@fillll.ru |
7a69ab2b1e9995247ed2756773d1d9f7a656de28 | fcb4a07f27494497ef03e157de7ab50fa4e9375f | /core/admin.py | e76cfa38f98048dcac69da644072a4683ef1269b | [] | no_license | 21toffy/IMA | 2ff452025fad908270d2aab0bafa3ee4c26c7710 | 03770d49578817e1466cedc8e09df1840f5349b0 | refs/heads/master | 2023-03-02T02:15:58.778086 | 2021-02-14T16:08:01 | 2021-02-14T16:08:01 | 298,578,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.contrib import admin
from .models import HomeView
from .models import ViewCount
admin.site.register(HomeView)
admin.site.register(ViewCount) | [
"oketofoke@gmail.com"
] | oketofoke@gmail.com |
6d98ad26adf48c6aacf78b9e5ddb609f4bcdf3ef | 123e7db7e36edf5ea8864c03b420a3b8903bf8ba | /src/train_softmax.py | 3db6b022379e1699b55a39810e53de2ce129d9d5 | [
"MIT"
] | permissive | thiago1080/Facenet128 | 8ea43aa0448b8b1a2c0c9a6da0c5eae2df37e0a2 | 2903731808d67facebc9bc7447fe395cf428cd96 | refs/heads/master | 2020-04-02T11:33:15.867391 | 2018-10-23T19:22:14 | 2018-10-23T19:22:14 | 154,395,175 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,264 | py | """Training a face recognizer with TensorFlow using softmax cross entropy loss
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software with... | [
"thiago@gryfo.com.br"
] | thiago@gryfo.com.br |
34f1e6ab92cfc7900c0cc4506201f4c0aada2af1 | 757d195cb148cd47bc09aeadb4f7ab5dd5fcde6e | /Maths Software/triperim.py | 75a089d5cb5de0fcc86a66e349fa57e54cd10687 | [] | no_license | rneil06/PythonMathsSoftware | 70ed82d9448052dd3eda54908a6927507ca11088 | fd0f785eb965724d1944a709d1b7d4fec8ea1a71 | refs/heads/master | 2020-08-17T09:04:10.644419 | 2019-10-18T10:31:45 | 2019-10-18T10:31:45 | 215,642,514 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | print("Enter 'x' to go back. ")
len1 = input("Enter lenght of first side: ")
if len1 == 'x':
import MHOME
else:
len2 = input("Enter length of second side: ")
len3 = input("Enter length of thir side: ")
length1 = int(len1)
length2 = int(len2)
length3 = int(len3)
perimeter = length1 + length2 ... | [
"noreply@github.com"
] | noreply@github.com |
6aff682ebcf0a83bfa5ad21f7124353f39d9b3a7 | b05eed2472c31f42d5d573799c91750b391e1eeb | /practice.py | 69d753350512123dd36c17e05ad6f986507ad932 | [
"MIT"
] | permissive | N5nissy/chibi | 11c1a3d67c6849f30bc35f11c477eff2e2f3ca5a | 8a2f54513146e2c5363f8e2354c7efec811af1e0 | refs/heads/master | 2020-08-03T14:57:56.707807 | 2020-01-23T07:39:34 | 2020-01-23T07:39:34 | 211,793,263 | 0 | 0 | null | 2019-09-30T06:43:58 | 2019-09-30T06:43:57 | null | UTF-8 | Python | false | false | 103 | py | a = [int(input()) for _ in range(3)]
b = [int(input()) for _ in range(2)]
print(min(a) + min(b) - 50) | [
"21716025@jwu.ac.jp"
] | 21716025@jwu.ac.jp |
5e8be4fd0141f72deaee474f4ff2276d6c1bc8cf | 4c068dc1cb754df2ea00d690c36e5a77b0e73235 | /python/snowballing.py | a537ef8b9051243b5feda4efa76a260973094dcf | [] | no_license | gonzalezmorales/my_slipbox | 5f2955aecbdd5edc0309e32a7952546d3c2e9ae6 | 4398f16f0f8c4444b2a2f64ef01f3e43751d63ef | refs/heads/master | 2023-01-22T05:19:48.168836 | 2021-05-02T23:04:59 | 2021-05-02T23:04:59 | 247,828,385 | 1 | 0 | null | 2023-01-06T13:29:45 | 2020-03-16T22:28:11 | Python | UTF-8 | Python | false | false | 1,907 | py | from operator import itemgetter
import networkx as nx
# The following is based on Zinoviev, Dmitry. Complex Network Analysis in Python . Pragmatic Bookshelf. Kindle Edition.
SEED = 'NwHayaCP'
todo_lst = [(0, SEED)] # The SEED is in the layer 0
todo_set = set(SEED) # The SEED itself
done_set = set() # Noth... | [
"gonzalezmorales@un.org"
] | gonzalezmorales@un.org |
ec6575f78763c52bd8ac10b13a907ab6700a134a | 04e6066a99c2d0eefd46439e16959c64436874f4 | /BeginnerProjects/tuples.py | a491220fe0f26c65e30380d41fceaa1c881b2022 | [] | no_license | Saumay-Agrawal/Python_code | cf6a82a572aa0dd2a40948c69d6315d6b4da49ad | 6c0838535e18942a9f7980b294ba30b63c259302 | refs/heads/master | 2021-01-24T18:38:13.699784 | 2017-03-20T13:07:57 | 2017-03-20T13:07:57 | 84,460,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | # '''Working with Tuples.'''
#
# tuple1 = 'a', 'b', 'c', 'd', 'e'
# tuple2 = ('a', 'b', 'c', 'd', 'e')
# # tuple(iterable)
# t = tuple('abc')
# t2 = tuple([1, 2, 3])
# t3 = tuple()
# print(tuple1)
# print(tuple2)
#
# tuple3 = ('a',)
# tuple4 = ('a')
# print(type(tuple3))
# print(type(tuple4))
#
# print(... | [
"saumay.agrawal@gmail.com"
] | saumay.agrawal@gmail.com |
0a097e7aac62b21c0496f0d8fec0473eddbf2db9 | 6fb9da0cd0fc7dde3d730a05d5dbfcc95f26b867 | /process_changes_test.py | 3f4bbaaca9916a4a1f72d2a4291733a8f764d8f9 | [] | no_license | wade12/ProgrammingForBigDataCA3SpellChecker | 882eb91881205c545fe035ad09e75b76e014d118 | 03284d938aa68f61da5b3cb0e4e55f1e7719d29d | refs/heads/master | 2020-12-24T21:22:05.121513 | 2016-04-14T10:40:14 | 2016-04-14T10:40:14 | 56,229,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import unittest
from process_changes import *
class TestProcessChanges(unittest.TestCase):
def setUp(self):
self.commit = Commit()
def test_get_commit_comment(self):
self.assertTrue( self.commit.get_commit_comment >= 0 )
self.assertFalse ( self.commit.get_commit_comment < 0 )
... | [
"wadetaylor@engineer.com"
] | wadetaylor@engineer.com |
96afb5b271a33884acce4873fd5cfb1500777b24 | 381389c9be65b5c73285f8272fe6ed5af0df2d68 | /Web/autofarm/frame/shop/sql.py | 7f3a27573ce045caeabd6de8394d889fc134860b | [] | no_license | cladren123/AutoFarm | 96e3a5e2c0bcf8c7363293e4b64c07c0c229da12 | 27dc48d8925f713197316f2d12b6c9a331e3ce43 | refs/heads/main | 2023-06-09T11:41:56.945505 | 2021-07-02T00:07:17 | 2021-07-02T00:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py |
class Sql:
selectall = "SELECT * FROM shoping";
selectbyid = "SELECT * FROM shoping where itemid = %d"; | [
"woorim1022@naver.com"
] | woorim1022@naver.com |
2eb026b98860289123f4b2493b921fd31a5c0b89 | 7b9164e160b3f375c6ac28496617754aa8cf4a0b | /d_2018_1_4/two_sum.py | daf1cf85471a00cd2821bff95608c62eccec4bd0 | [] | no_license | WhalesZhong/leetcode_fun | 991854de2cb8075e1a092bd873d466a58db0216a | 2e30ee0c29bd49a276224022df1168cc433685d1 | refs/heads/master | 2021-05-04T14:28:23.325897 | 2018-02-10T12:13:00 | 2018-02-10T12:13:00 | 120,202,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # coding: utf-8
def two_sum(nums, target):
"""
:param nums:
:param target:
:return:
"""
num_dict = {}
for idx, num in enumerate(nums):
if num_dict.get(num):
num_dict[num].append(idx)
else:
num_dict[num] = [idx]
for num in nums:
other = ... | [
"whaleszhong@gmail.com"
] | whaleszhong@gmail.com |
eee418fe153706ae3d9dd9fda9b49db7141d3e24 | d6c3c47687e58527c9e6408e7719a8c9649dadde | /Python_code/import data.py | 3cc6c2b63242097a2a40097928b8209f6cbfd49e | [] | no_license | jtgerson/AMZN | 553c49475c50ca6fd5f808b55515ea4bf726d0d4 | eb72179445ad0f44344eb17fc7b3ec579fcb6c2d | refs/heads/master | 2021-05-16T01:37:53.279809 | 2017-10-16T21:25:07 | 2017-10-16T21:25:07 | 106,310,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import csv
f = open('C:/Users/jggerson/Desktop/HP.csv')
csv_f = csv.reader(f)
for row in csv_f:
print (row)
f.close()
import pandas as pd
import numpy as np
df= pd.read_csv('C:/Users/jggerson/Desktop/HP1.csv')
| [
"32581153+jtgerson@users.noreply.github.com"
] | 32581153+jtgerson@users.noreply.github.com |
0a453935234c6bb4d0b69a7ec118920ae7f35a1b | 27f8d273857fee03ba8071d4a0e6d2e95ea1890d | /Week_12_list_vs_dict.py | ae724af172ecd46007338e2caee1ba952f2d8cba | [] | no_license | oyedeloy/chuck_52_weeks_of_python | 3b2c2f6854fb7b3400eda403c829ad4b68f6a471 | 6ce6b6b09f20f0ac359a297b4eb0eace7ec0e872 | refs/heads/master | 2023-07-16T00:05:07.833947 | 2021-08-08T02:34:59 | 2021-08-08T02:34:59 | 393,837,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import time
from tabulate import tabulate
from utility import create_devices
# --- Main program --------------------------------------------
if __name__ == '__main__':
devices = create_devices(num_devices=254, num_subnets=254)
# Create dictionary pointing at those same devices
devices_dict = dict()
... | [
"oyedeloy@gmail.com"
] | oyedeloy@gmail.com |
f2237bc6928349434da33767e62e180754beb83d | 0a32b2be429b53c2fc14bd901b9247d99f9e2cea | /miproyecto/miproyecto/apps/cliente/urls.py | 699d47590c916fee36f215ad758b6dfe8ec188aa | [] | no_license | Marzero/lerolerogit | ff52010ae784fdc8fec8ba21001729a35ed02c46 | c27d2505b33001c8adcd918e5f2b3d5e07070de8 | refs/heads/master | 2020-05-02T04:33:33.401197 | 2014-05-29T06:20:21 | 2014-05-29T06:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.conf.urls import patterns, include, url
from .views import *
urlpatterns = patterns('',
url(r'^registrocliente/$',registrarcliente),
url(r'^clienteregistrado/$',registrodeclienteexito),
) | [
"torero_le@hotmail.com"
] | torero_le@hotmail.com |
76f540c57838fd46af0c74ceabfb52b82a94307c | 2b3c0d1ce1ca6dcb7c920d455b7badb90b791431 | /get_imgs.py | 728a03cc5f108c6cae95c8d23fcca249e62a8b5c | [] | no_license | AdamAlgaert/blarg_data | 232584d2105da570848bd070aed2b9d4a81e5995 | 5cf244fe17f27d191b62965876f59c26d7da496c | refs/heads/main | 2023-01-05T13:22:22.487681 | 2020-11-08T22:37:33 | 2020-11-08T22:37:33 | 310,143,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | #!/usr/bin/env python
import logging
import requests
import jmespath
import shutil
import os
import sqlite3
import hashlib
# bachmanetti spreadsheet (Screaped Responses)
SPREADSHEET_SCRAPED_URL = 'https://spreadsheets.google.com/feeds/cells/1pD1or3qyg-PgT0Q_os-bTKwMr5WfoCY6CZ9AjAcpGqk/3/public/full?alt=json'
# SCRAPE... | [
"adam.algaert@gmail.com"
] | adam.algaert@gmail.com |
cd0a793e77b524b520b11525c48fe38072b95a38 | 12747304dbdfced3ac425870c2c0f680ae3db26e | /home/views.py | 0d725529fe113a485945fec3f2f5c421b4d83fa3 | [] | no_license | Rudresh17/jarvisr | c0079333691092cc55171c757b6f1dfc8a3a1eb6 | 9ce0d1d96545bcd150b3533f508f1d764870e0ef | refs/heads/master | 2020-03-28T18:23:46.240550 | 2018-09-15T06:58:11 | 2018-09-15T06:58:11 | 148,877,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.shortcuts import render
from django.http import HttpResponse
from urllib.request import urlopen
from bs4 import BeautifulSoup
from newsapi import NewsApiClient
from login.forms import todo
# Create your views here.
def index(request):
if request.method=="POST":
form=todo(request.POST)
... | [
"rudreshlegend@gmail.com"
] | rudreshlegend@gmail.com |
4a14662325b1b0f7783af8fcd1c35c50876d3fa0 | 99b65470aeb082b864c44694d9c51d3abfd38d86 | /refresh_code.py | b5c5c68427e3408813537fa6eb80a2b4fbbfae3e | [] | no_license | DavideYang125/py_update_key_schedule | 050caad0d31dd823519e00af8d87cad94aa576e2 | d455d5f62890e3cdd8835bfcd4705805cb1682bd | refs/heads/master | 2023-01-21T19:06:48.763978 | 2020-12-03T07:55:18 | 2020-12-03T07:55:18 | 318,116,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | #更新沙箱密钥
# coding=utf-8
import requests
import xml.dom.minidom as xmldom
import db_handle as db
import redis_handle as redis
#主方法
def main():
code = get_sandbox_key()
if (len(code) > 0):
print(code)
update_db(code)
print('数据库修改完成', flush=True)
redis.del_key_data()
print... | [
"dayang_techmail@163.com"
] | dayang_techmail@163.com |
66e4f5792c5edbb61f1237a1a2507da1fd9d74eb | 3e88024b0aa9abd1158ee16ef9cdb53303a0846a | /Strings/LongestCommonPrefix.py | e5db8f89fad350a20c9e6afa4677ba4fabb695da | [] | no_license | SuryaSudharshan/LeetCodeSolutions | b45660a7cac05c9e75dc12a723c19ba57521cb90 | bdd11477b9ca8a43ffdeed7194a24bb8091e7475 | refs/heads/master | 2020-05-19T17:25:59.787715 | 2019-05-06T06:07:50 | 2019-05-06T06:07:50 | 185,133,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
if strs == []:
return ""
prefix = strs[0]
for s in strs[1:]:
less = min(len(prefix), len(s))
prefix = prefix[:less]
for i in range(less):
if prefix[i] != s[i... | [
"surya.sudharshan1994@gmail.com"
] | surya.sudharshan1994@gmail.com |
cdfdc773e70760b03f443973ca6f30bc13db80e8 | 1ef06063a4dd7160d307a41da769058f595e9898 | /blog/urls.py | f6a5427e93d4646464c642c5ef17b5b855d20782 | [] | no_license | gilsongindrejr/Blogpy | 32cb64f63f603257be895699e387ee02248a3c41 | b2cc63434f6de2f21ef50f3ea0d17603585ab5f8 | refs/heads/main | 2023-08-24T22:57:27.323228 | 2021-11-05T14:22:36 | 2021-11-05T14:22:36 | 410,976,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"gindrejunior@hotmail.com"
] | gindrejunior@hotmail.com |
1c65de719892b0e3c95933a6e47d633dd206ae79 | d3d5bb6eb2bf1d4d592872c5c75f86557d65b6a1 | /nums/experimental/utils.py | 3a49a2d00b069d5681c942e850d2d5d138ca8628 | [
"Apache-2.0"
] | permissive | liuhanyao98/nums_gpu_draft | 5a018a92c88c21965a5405ab86ed10f1d506c4e1 | 48df59afe605f02ea2bd609c5f9e0006fbc27a5d | refs/heads/main | 2023-04-08T00:05:59.076104 | 2021-03-25T04:25:51 | 2021-03-25T04:25:51 | 343,593,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import os
import gc
def check_block_integrity(arr):
for grid_entry in arr.grid.get_entry_iterator():
assert arr.blocks[grid_entry].grid_entry == grid_entry
assert arr.blocks[grid_entry].rect == arr.grid.get_slice_tuples(grid_entry)
assert arr.blocks[grid_entry].shape == arr.grid.get_block_s... | [
"hanyao.liu98@gmail.com"
] | hanyao.liu98@gmail.com |
260e6f319122fd16852afe75e993a3b69b74bc48 | 35ecaa6e3f611e57a243df02224118c98ca506d3 | /group_app/migrations/0002_auto_20210428_1424.py | 49553b4ad14a88435d4d7edc2f5806d6a10f7535 | [] | no_license | srohrbach18/group_project | dfdfce72ef0439b8be834d54789bbab8729856b3 | d89f8a1ea178e987bee0348aae5015dee7ff004a | refs/heads/main | 2023-04-16T01:03:00.538372 | 2021-05-01T06:06:30 | 2021-05-01T06:06:30 | 359,694,290 | 0 | 1 | null | 2021-05-01T06:06:31 | 2021-04-20T05:26:57 | HTML | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.1.7 on 2021-04-28 14:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('group_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='item',
name='id',
field... | [
"mysamari@gmail.com"
] | mysamari@gmail.com |
6eada64ab0a377e22fa71f54b4d2fae8f2673db0 | 85705c4d00de82da00117058b3c6ba0d85f00ada | /manage.py | 987397ede1373c899837e7cd43912385695fc8ef | [] | no_license | Khemrajubale/djangorestone | 2c55e24d0a52ac34ac1d8d06f57e3d3a6aed9c07 | 7d2d0be531983e807daaca77834a06b070cd7d05 | refs/heads/master | 2023-07-11T16:06:43.064928 | 2021-07-22T06:39:33 | 2021-07-22T06:39:33 | 399,379,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_example.settings')
try:
from django.core.management import execute_from_command_line
... | [
"kubale@deloitte.com"
] | kubale@deloitte.com |
e335801c80610ea66bad0222f56c19778a0f4ad5 | 637827a36df755d30da3238ff65ebca49969f805 | /src/explodingquantumbomb2.py | 3782ca09dc609bf2fce3dd352d663a688d0c657c | [
"Apache-2.0"
] | permissive | peter-janderks/quantumbomb | ce9f7bb59a8bf2f363ccb3a1a7738a5e5e9ee025 | 38240dd7de77784b63c8bfb63f3f27aff82912f7 | refs/heads/master | 2020-04-08T09:24:20.895258 | 2019-01-13T17:37:25 | 2019-01-13T17:37:25 | 159,222,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from quantumbomb import quantum_bomb, rotation_angle, get_all_probabilities, pauli_error
from projectq.ops import H, Measure, X, Rx, CNOT, Y, Z
from projectq import MainEngine
from projectq.backends._sim._simulator import Simulator
def run_once_with_bombs_exploding(number_of_iterations, error_rate = 0.0):
eng = M... | [
"noreply@github.com"
] | noreply@github.com |
ff9ea866ff4b14d685a908c860c705eb0ba43a96 | 0a7223017a2e2f83fa15f5ffbe2355c92ab1e62d | /landscapes_assignment/settings.py | 399c2d01e8c170cc8c50b4e0f117d1558955e1cc | [] | no_license | mazurbeam/landscapes | 7d033dad59e3cbceae1c2ca563de726f5286ae48 | 94085cf5cc8f7f40a93c4d4bb5ab652a87bfa448 | refs/heads/master | 2021-01-01T15:26:38.899601 | 2017-07-18T15:43:59 | 2017-07-18T15:43:59 | 97,616,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | """
Django settings for landscapes_assignment 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/
""... | [
"mazurbeam@gmail.com"
] | mazurbeam@gmail.com |
a0a352972105b9487c9cd8a6f540e1686d09df59 | f3bec987d2b81fd2625ea4265ffface26949f30c | /profiles/serializers.py | ea0bd59e33ce1e7cf93666d67016bce2bb27fde4 | [] | no_license | anandhu-here/mesengo | 177329d895693f37c01396d1816a7e27dea72b28 | 6c6f21af6ebd6d37629888de00365f238919afc4 | refs/heads/main | 2023-05-27T00:15:15.176520 | 2021-06-09T12:54:24 | 2021-06-09T12:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | from django.db.models.query_utils import Q
from messenger.models import Conversation
from django.db.models import fields
from rest_framework import serializers
from .models import Profile
class ProfileActionSerializer(serializers.Serializer):
id = serializers.IntegerField()
action = serializers.CharField()
... | [
"anandhuuhere@gmail.com"
] | anandhuuhere@gmail.com |
38490fa96e610887f7cb9048a4ea33d4a6aefaea | d9a634f3788a08e4dd02745e6764a9e56c4b2fd9 | /test/functional/p2p_filter.py | e7f81e9d86d5789724d2aa4774f979b321bb29f4 | [
"MIT"
] | permissive | hhhogannwo/MAGA | b7f19314cb32d6db064c3caa9324c3386a6c3f2a | cb81907eb1e5a87669a8244d8657041aa8456328 | refs/heads/master | 2022-03-04T03:07:28.167818 | 2022-02-17T02:01:27 | 2022-02-17T02:01:27 | 172,364,824 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,024 | py | #!/usr/bin/env python3
# Copyright (c) 2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test BIP 37
"""
from test_framework.messages import (
CInv,
MAX_BLOOM_FILTER_SIZE,
MAX_BLOOM_H... | [
"noreply@github.com"
] | noreply@github.com |
e18febea8e663d537ea5d6644cbb8c6817b4b60d | 0d6d94287c1a51a49dbfff2cdbcf9e45d2fc4a28 | /API_server/migrations/0004_pizza_pizza_id.py | 3c5a34531c46c5cd005c7dbf8501361875cdd412 | [] | no_license | Lorik1999/API_Assignment_6 | 869a940a9dd90b0ac1bef43ee3f8dc461e5f7034 | 3d4dbca0165b35066dbbf347684b9918c9e2540f | refs/heads/master | 2023-06-10T23:23:27.045795 | 2023-05-25T15:37:14 | 2023-05-25T15:37:14 | 370,786,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 3.2.3 on 2021-05-24 17:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API_server', '0003_alter_pizza_price'),
]
operations = [
migrations.AddField(
model_name='pizza',
name='pizza_id',
... | [
"https://github.com/ovmo/titan.git"
] | https://github.com/ovmo/titan.git |
a411a805935be4621ac029a27e8e50e2b72fb46d | 8d50814974840a19d781162a16e5e1331e4a93f5 | /cbow_example.py | b6786c66f8c6fa1138a7ca2ff5ac7b413785fa9f | [] | no_license | entradajuan/Embeddings | 7774da37a133a69eef629c34d928d5153a0b8ce6 | 90d24a493270e2b299ba13a67330b17bf1d9fd39 | refs/heads/master | 2023-08-11T04:00:51.146247 | 2021-09-14T18:34:14 | 2021-09-14T18:34:14 | 373,590,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | import tensorflow as tf
import tensorflow_datasets as tfds
# LOADING DATA
imdb_train, ds_info = tfds.load(name="imdb_reviews", split="train",
with_info=True, as_supervised=True)
imdb_test = tfds.load(name="imdb_reviews", split="test",
as_supervised=True)... | [
"entradajuan@yahoo.es"
] | entradajuan@yahoo.es |
af32c19a05a7ba77388de6a5ca7225230bb65d65 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pdMwiMpYkJkn8WY83_6.py | eb07438f90569faa3aa2f1d20414768ac52e5228 | [] | 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 | 424 | py | """
Write a function that **recursively** determines if a string is a palindrome.
### Examples
is_palindrome("abcba") ➞ True
is_palindrome("b") ➞ True
is_palindrome("") ➞ True
is_palindrome("ad") ➞ False
### Notes
An empty string counts as a palindrome.
"""
def is_palindrome(wor... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2be6063f5f18d3857522aceedeaa90723d289765 | ebe95c8b9e4e37489fa707842383ca1b94597adf | /Python/les_6/lesson_6.py | dbead9cb32d8d17b943b51005223667fa184f36e | [] | no_license | Creator-17/First_python | a38373e986811466b67f78accb9f9cc4a4291a50 | dc86a7f16e29cdb1c111d0e58200ca7ebed3167c | refs/heads/master | 2022-08-29T21:27:57.779178 | 2020-05-27T19:56:27 | 2020-05-27T19:56:27 | 261,722,928 | 0 | 0 | null | 2020-05-27T18:34:01 | 2020-05-06T10:15:29 | Python | UTF-8 | Python | false | false | 5,188 | py | # task1----------------------------------------------------------------------------
from time import sleep
class TrafficLight:
__color = ['Красный', 'Желтый', 'Зеленый']
def running(self):
i = 0
while i < 3:
print(f'Светофор переключается \n '
f'{TrafficLight.__c... | [
"plushap17@gmail.com"
] | plushap17@gmail.com |
aa4ae4645bd75fa85f73bee597894e82e3e0ac43 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/test_basic_gru_unit_op.py | ae3e6dc4f77d2653909e2ea5e62135ab3859e314 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 4,838 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
24df3bf14b679b0b6e9f7fc2a6a5cd313e4fffc7 | 2cd5a22deb3412c8ea383ae26b4c247123a70e64 | /CPUTaskScheduler.py | fe0ef89932aff757c6898dcbc38ca31e39a48409 | [] | no_license | plawanrath/Leetcode_Python | c6b69300bc0504ea55b7e8c7ac3a84c417d1c96a | 0c657eef743fa508db79864e6b37c943e20d2bbe | refs/heads/master | 2023-08-19T09:42:37.791274 | 2021-10-24T15:26:04 | 2021-10-24T15:26:04 | 259,187,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | """
Given a characters array tasks, representing the tasks a CPU needs to do, where each letter
represents a different task. Tasks could be done in any order. Each task is done in one unit of time.
For each unit of time, the CPU could complete either one task or just be idle.
However, there is a non-negative integer... | [
"plawanrath@gmail.com"
] | plawanrath@gmail.com |
2aaf31265651a1a86a4a57fa4b00d31c00cd1627 | 4a56783361db4333e001079b5bafea433023eca6 | /garminconnect.py | 5454477f1a9bab7e5d0c0a7aa1df352360f14d04 | [] | no_license | albertoivo/garmin-parser | 75a5dcb54904c04fe5c45838a5df4022de7896fc | e75b0d22df9319a79724d3bb258bfeaef066819d | refs/heads/master | 2023-01-06T05:45:05.291410 | 2020-11-04T18:44:11 | 2020-11-04T18:44:11 | 282,001,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,068 | py | # -*- coding: utf-8 -*-
"""Python 3 API wrapper for Garmin Connect to get your statistics."""
import logging
import json
import re
import requests
from enum import Enum, auto
BASE_URL = 'https://connect.garmin.com'
SSO_URL = 'https://sso.garmin.com/sso'
MODERN_URL = 'https://connect.garmin.com/modern'
SIGNIN_URL = 'ht... | [
"albertoivo@gmail.com"
] | albertoivo@gmail.com |
286222e8889b5e5c13ad26ad93f8cf4a42044a5d | c497da80b3cde5c6ce8e9ef37f021b35bb5ae21a | /mapit.py | 046066c12fea83b0b1e4739aac7f3113831f671e | [] | no_license | LoneMarvel/Learning-Python | 765d1dc03caa26d097472ac1fe805c3e09434a22 | eb85f4031d7619718cf653d906c40d2bc39f2b17 | refs/heads/master | 2021-01-01T05:13:09.766019 | 2016-04-28T08:49:52 | 2016-04-28T08:49:52 | 57,222,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #!c:\python34\python
import webbrowser, sys
if len(sys.argv) < 2:
print('Usage: mapit address')
sys.exit()
addr = ' '.join(sys.argv[1:])
print(addr)
webbrowser.open('https://www.google.de/maps/place/'+addr) | [
"tinost@gmail.com"
] | tinost@gmail.com |
8a30718b02e5d683903f4fdeba779af7fc5dc3d8 | d904ecb1cf65ffbd2bd0332b46ae3c90a9d96158 | /1days/saiken.py | 994fc44519495ddcd6e4f751108892a752f164eb | [] | no_license | EraSilv/day2 | 9e1b5573017a6c3e3a4afa3cc0d19de10fcc4d34 | a1528897b150cd856d72e7ab387a1dbb5e0189ee | refs/heads/master | 2023-06-04T00:09:18.992833 | 2021-06-28T11:45:36 | 2021-06-28T11:45:36 | 368,862,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py |
# LS = input("last name:")
# FS = input("first name:")
# age = input("age:")
# address = input("address:")
# region = input("region:")
# print('')
# print("Hello1:" + LS + ' ' + FS)
# print("Age1:" + age)
# print("Address1:" + address)
# print("Region1:" + region)
# print('')
ponchik = '''I am Erlan, an 18 year... | [
"erlan2766@gmail.com"
] | erlan2766@gmail.com |
fe2fde5a96da051185d794ab89c23150d40e55db | 61302ec1330b29e06c01b0c6fcc8d11c3c70570e | /py.py | bcafb646488fe0f9d018604b697b351d0b08eca8 | [] | no_license | artaka/jpg2png-master | 8a99e774b6ee802eaab817897d1308204a826c12 | c43733cb3bfda0c716d737da64ede2431cf39985 | refs/heads/master | 2020-05-17T14:04:46.112988 | 2019-04-28T16:42:45 | 2019-04-28T16:42:45 | 183,754,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import os
from PIL import Image
inpng = './inpng/'
pngs = './pngs/'
injpg = './injpg/'
jpgs = './jpgs/'
mode = input("Какой режим выбираем?\n Jpg2png-1 \n Png2jpg-2\n")
if mode == "1": #Jpg2png
for file in os.listdir(inpng): #Есть ли файлы в папке
if file:
pngsname = file + ".png"
... | [
"noreply@github.com"
] | noreply@github.com |
7a6a61c44bb4e6e43038823fc2ef01793c1f76ee | a6d77d00163b80dfb6d34ee254f9ba049290e43e | /fabfile.py | c58c9178b11c15c41c67b72a520ac88bcb192822 | [
"Apache-2.0"
] | permissive | tswicegood/armstrong.core.arm_layout | 6f1cf6c9dc2c9a4030348fa88972eb8a57682705 | 70850a3068660b51a93816e83ecee73637c781c0 | refs/heads/master | 2021-01-16T21:04:18.735887 | 2011-07-20T20:33:59 | 2011-07-20T20:33:59 | 2,080,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 365 | py | from armstrong.dev.tasks import *
settings = {
'DEBUG': True,
'INSTALLED_APPS': (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'armstrong.core.arm_layout',
'lettuce.djang... | [
"development@domain51.com"
] | development@domain51.com |
c1225ac0b8b80664c5c7e7d70b5f53f12f8fd153 | 0b3c5260cd5c33a1beccc5710a5d0fd097a5ea15 | /anchore_engine/db/db_archivedocument.py | b13024780094cf487f4e5bfefd708f78d7b91e2c | [
"Apache-2.0"
] | permissive | omerlh/anchore-engine | fb2d7cb3d8bd259f6c973b450fbaa2c2e00497f0 | 669a0327f8baaee3f5c7c64b482909fe38830d80 | refs/heads/master | 2021-09-02T12:48:51.661648 | 2018-01-02T19:26:47 | 2018-01-02T19:26:47 | 116,236,136 | 1 | 0 | null | 2018-01-04T08:41:39 | 2018-01-04T08:41:39 | null | UTF-8 | Python | false | false | 4,670 | py | import time
from anchore_engine import db
from anchore_engine.db import ArchiveDocument
# specific DB interface helpers for the 'services' table
def add(userId, bucket, archiveId, documentName, inobj, session=None):
if not session:
session = db.Session
our_result = session.query(ArchiveDocument).fil... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
1d6d23ca4b07fa9ea47cddf4a29db00d629a4c56 | 7c081ac61722f11de1758c9701662f85c1bb802c | /pysigep/webservices/webservice_base.py | 270eeb115b16b5f8f51c39007bedbef3ee9fb66f | [
"MIT"
] | permissive | trocafone/pysigep | 8a3ad14febce45bc54aea721b481c87bfcd92f50 | a899fb85e9195ac8686313e20c8bec7c03bde198 | refs/heads/develop | 2021-01-16T22:07:06.093299 | 2016-07-05T13:57:20 | 2016-07-05T13:57:20 | 62,578,970 | 1 | 0 | null | 2016-07-05T13:57:22 | 2016-07-04T17:40:17 | Python | UTF-8 | Python | false | false | 2,803 | py | # -*- coding: utf-8 -*-
# #############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Michell Stuttgart
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software... | [
"michellstut@gmail.com"
] | michellstut@gmail.com |
af7ba8e8e73154777079efb45bb15c7385b578f1 | 7f9cb82ac4f9b02eece0e26af4dea2beae026c8c | /application/migrations/0004_member_is_ok.py | b603246644666f09ac9d7626829be7240a34c051 | [
"MIT"
] | permissive | jessfishenden/imok | 058d4fb1dcc5c64fb0d0a144b08dc7a2e32e6653 | 627f479ec04f5050d763afe3dc92a5d24b1a920c | refs/heads/main | 2023-05-01T07:21:45.896880 | 2021-05-11T19:41:20 | 2021-05-12T16:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.1.6 on 2021-03-07 12:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application', '0003_auto_20210207_1542'),
]
operations = [
migrations.AddField(
model_name='member',
name='is_ok',
... | [
"WheresAlice@users.noreply.github.com"
] | WheresAlice@users.noreply.github.com |
d0a5753e0dc9149645e3d476cd5ed65bb2db45cb | 30eeca4d18bd863260882272cf391b1531dcc871 | /Limits/test/runCombineSinglePoint.py | a7d5ff867174c6caf9afb58bad012a99f0966523 | [] | no_license | decosa/Stat | 3b1a5dabf563366b8117fbc56ceef338b719ad6e | 10ba54677f401e574ed803bf739f714c5fd62338 | refs/heads/master | 2020-04-28T16:53:55.142130 | 2019-11-26T14:58:29 | 2019-11-26T14:58:29 | 175,427,511 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | #!/usr/bin/env python
import ROOT
import subprocess
import optparse
from Stat.Limits.settings import *
from Stat.Limits.combineUtils import runSinglePoint
usage = 'usage: %prog [--cat N]'
parser = optparse.OptionParser(usage)
parser.add_option("", "--mDark", dest='mDark',type="string", help='signal point mDark'... | [
"decosa@t3ui03.psi.ch"
] | decosa@t3ui03.psi.ch |
9f9485d4d8b84ea56512f623d103aa2a35a1a322 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/ZODB-Zope-3.2.1/ZODB/FileStorage/fspack.py | 24eaa776b4a3b4f3496260e9aeae91ce4db9d7d0 | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,676 | py | ##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
96872343beedc40cfd0c01824b44abb62990e28c | bb42128ab60e2d969896bd84f9451b950779e4e1 | /ex004.py | e0a235ef9ed0dea381787aa8ea4e1f4b68adf1ec | [
"MIT"
] | permissive | Roninho514/Treinamento-Python | 331f8a00d32787203a01d7f62c279af75dc3d83d | fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6 | refs/heads/main | 2023-06-25T11:49:01.118344 | 2021-07-31T01:12:10 | 2021-07-31T01:12:10 | 388,283,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | palavra = input('Digite algo:')
print(type(palavra))
print('É numérico?{}' .format(palavra.isnumeric()))
print('Tem espaço?{}' .format(palavra.isspace()))
print('É maiusculo?{}' .format(palavra.isupper()))
print('É minusculo?{}' .format(palavra.islower()))
print('É alfanumérico?{}' .format( palavra.isalnum()))
print('É... | [
"roni.silvasantos514@gmail.com"
] | roni.silvasantos514@gmail.com |
303b62a4629cc64c3c76cadedb0db766bba2e4ff | fb2720e03991b45c538d1c8f0b9edc6a0825dbd6 | /Joe<3Dolpins/sense1.py | 5318f8136ce654281281e99c55de9bc231625973 | [] | no_license | skisky89/tempMon | 9c2bb2192bb764e18c85ea34056abaf55a199217 | 0033fd98353d3aae7a2bdcff5948af8b04b81463 | refs/heads/master | 2021-05-02T06:09:13.976116 | 2020-08-11T14:32:00 | 2020-08-11T14:32:00 | 120,853,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,626 | py | #!/usr/bin/python
import time
import sys
#sys.path.append("/root/Adafruit_Python_DHT")
import RPi.GPIO as GPIO
import os
#import Adafruit_DHT
import urllib
###Setup DHT pins
##RCpin = 24 #LightSensor
##DHTpin = 23 #Humidity
##GPIO.setmode(GPIO.BCM)
##GPIO.setup(RCpin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
###Funct... | [
"skisky@gmail.com"
] | skisky@gmail.com |
302a516e5e5a4b7f73380a92c6fad7d7cd026be5 | 290b0f20a78f4ba71481ebe4129e01d480921e4f | /bot/exts/tetris/stats.py | da6f5e03b83545c08195a1ee43d3d7469ba4b255 | [
"MIT"
] | permissive | pro-gamer007/tetris-discord | 6f1de8c8f48c68c690c007f5f749057d4107b1b8 | 19871a99a46efd18fa837d5754961a3c9454b3a2 | refs/heads/main | 2023-08-24T11:10:28.797468 | 2021-09-19T09:52:26 | 2021-09-19T09:52:26 | 408,089,081 | 0 | 0 | MIT | 2021-09-19T09:51:39 | 2021-09-19T09:51:38 | null | UTF-8 | Python | false | false | 6,744 | py | import datetime
import gc
import inspect
import json
import pathlib
import psutil
import statistics
import sys
from typing import Optional
import discord
from discord.ext import commands, tasks
from tinydb import TinyDB, where
class Stats(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = b... | [
"zshn@pm.me"
] | zshn@pm.me |
43b344472615f646b0ab25b1af7b8b9be64f5cfa | 1fe6e6accee255977f48ca08c14a5a05bc7c13ef | /google/cloud/vision_v1p1beta1/services/image_annotator/client.py | 5ade38260dc97c1edc21fc813a2c08678b863cdb | [
"Apache-2.0"
] | permissive | yamorishintarou/python-vision | 86f9526879193db585f0d85c5f0b8ae376a64b27 | b1a21c62bbae3c62da1a95d3fddf88767103eca2 | refs/heads/main | 2023-08-23T04:13:44.333260 | 2021-11-03T08:06:52 | 2021-11-03T08:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,152 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
079c862affe8e445280aaa0c46eb37b192e9b4c3 | ffe59803cd35129ea317a53b2b4a754bfb9a200d | /longest_common_prefix.py | 6591f14b796eff634370383a695dd8b356ff4109 | [] | no_license | codyowl/leetcode | 78a7a96c54d6592c34987620793eed3dcf1fe1fd | 706924944c6b8d94a7247de13ffb9b1d715496fd | refs/heads/master | 2020-06-16T10:19:09.477053 | 2019-08-30T13:37:14 | 2019-08-30T13:37:14 | 195,537,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | class Solution(object):
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
prefix_first = []
if len(strs) == 1:
for data in strs:
if len(data)>0:
return strs[0][0]
else:
return ""
else:
none_finder = [data for data in strs if len(data)>0]
if len(... | [
"codyowl@gmail.com"
] | codyowl@gmail.com |
f7f16a07618c840f6425f461f21c59edfc396527 | 99bd4d4816e8968a325ea07c41ba2d350915afc9 | /APIv3/Python/API3.py | 9f404e93e9146b8f743668d9277f1364f1246956 | [] | no_license | bmarlow/A10 | ec644380d592891170019bc07a3d66c2a98ab827 | 6daf20ce1d6eba26e3440975310dffdce56c7338 | refs/heads/master | 2021-09-06T10:44:57.654246 | 2018-02-05T18:21:21 | 2018-02-05T18:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,850 | py | import json
import httplib
class a10Device:
JSON_INDENT = 4
AUTH_URI = "/axapi/v3/auth"
LOGOFF_URI = "/axapi/v3/logoff"
LEVEL_NONE = -1
LEVEL_ERROR = 0
LEVEL_HTTP_STATUS_CODE = 1
LEVEL_DEBUG_ALL = 2
def __init__(self,
hostIp,
userName = 'admin',
... | [
"brandon.n.marlow@gmail.com"
] | brandon.n.marlow@gmail.com |
cc278abd1ad57db51abec593e57d7bcea32e3b59 | c228ac72f78e30ffc21ce9d7d3c9ce3171b4e379 | /transaction/www/models.py | b83a9520b3c7b5ca82a6b230300335e1a6eae102 | [] | no_license | sdwyer8/CobraBankApp | e649ddadf491d0d3fc8e71756d473e6e7a0e1779 | f594f149a7c0afd0e7b04e70159d7e5435e96203 | refs/heads/main | 2023-06-05T04:35:18.301767 | 2021-06-29T02:50:44 | 2021-06-29T02:50:44 | 372,653,357 | 0 | 0 | null | 2021-05-31T23:46:17 | 2021-05-31T23:46:16 | null | UTF-8 | Python | false | false | 685 | py | from . import db
from flask_login import UserMixin
from sqlalchemy.sql import func
class Accounts(db.Model):
id = db.Column(db.Integer, primary_key=True)
savings = db.Column(db.Float)
checkings = db.Column(db.Float)
date = db.Column(db.DateTime(timezone = True), default=func.now())
user_id = ... | [
"combs.cdi@gmail.com"
] | combs.cdi@gmail.com |
a9b70bbae3ab62b2faa9e02be4c31be4dfd156f0 | 72232aec390f4bed11994738c67847d94dabbc5d | /TripletFaceDataset.py | 9dca30ca7f7be83489c9a2ff3861185b7a7d3358 | [] | no_license | Coga8/own_facenet | aac4cc743c872db9f51177a97181d7e67970c6ce | 99c0b832b983da01c752be9afff2edc76bb2049a | refs/heads/master | 2022-11-15T10:17:01.379014 | 2020-06-27T14:33:58 | 2020-06-27T14:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | from __future__ import print_function
import torchvision.datasets as datasets
import os
import numpy as np
from tqdm import tqdm
class TripletFaceDataset(datasets.ImageFolder):
def __init__(self, dir, n_triplets, transform=None, *arg, **kw):
super(TripletFaceDataset, self).__init__(dir,transform)
... | [
"cmy11280505@gmail.com"
] | cmy11280505@gmail.com |
859f191ab53f381bc2122b455a9b6c99351c06ab | 869677272283bf5eb9f30fad79c956cd69ee629b | /core/migrations/0008_remove_userprofile_address.py | 53ba5446f97e391e7026eefd0f11a6dc41f886b2 | [] | no_license | AakankshaMathur/shopping_app | a0f88d0d855badf402eac501f837a63d604c6fb9 | 51a4df1e39b85e25ca0f0322685f638d18693775 | refs/heads/master | 2023-04-25T19:02:56.075912 | 2021-05-23T15:48:51 | 2021-05-23T15:48:51 | 342,623,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.1 on 2021-02-26 12:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20210226_1233'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='address',
... | [
"aakankshamathur95@gmail.com"
] | aakankshamathur95@gmail.com |
ccb13a5e3d845bf09eec3fb40555e403ece082c2 | 677d142be25f5904b4ab418ce5ffa1387fe0f695 | /app/config.py | a0f945c9dbd2036423157c7b61e20d7f0375030d | [
"MIT"
] | permissive | mfannick/pitch | ee2ded6a70d6f26e5fa34f635ca5821766006b20 | af321e36d2ad23bc2129b4d6cc41c7779bdea063 | refs/heads/master | 2022-10-12T16:07:54.439498 | 2019-09-30T07:53:03 | 2019-09-30T07:53:03 | 210,202,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import os
class Config:
'''
General configuration parent class
'''
SECRET_KEY ='Fannick'
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://annick:escofavi@localhost/pitch'
UPLOADED_PHOTOS_DEST ='app/static/photos'
# simple mde configurations
SIMPLEMDE_JS_IIFE = True
SIMPLEM... | [
"mfannick1@gmail.com"
] | mfannick1@gmail.com |
52c7d2a5262251a8b1071bd4572e27dad6693f3f | d37939b034cf53ae81eb957d5ea65ae05c290ab6 | /settings.py | b9a47a641018d60272d81328510e62e9bd36442a | [] | no_license | skullerj/ecu_btr_prediction | 0ab22e8f54caa263927328d20b62b21384f4f646 | 52bf81ad257dd08e1f498b1779cf950347bcf4b1 | refs/heads/master | 2021-05-07T09:12:51.279957 | 2017-11-04T19:25:48 | 2017-11-04T19:25:48 | 109,521,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | DOMAIN = {'records': {}}
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
| [
"jfrosero@udlanet.ec"
] | jfrosero@udlanet.ec |
b87776d03301cf9cd4a5dbd6cedc5763d2a60525 | 1375f57f96c4021f8b362ad7fb693210be32eac9 | /kubernetes/test/test_v1_subject_access_review.py | 813eff18c4f80272dcd42bfa8903f85d0e4fa9b2 | [
"Apache-2.0"
] | permissive | dawidfieluba/client-python | 92d637354e2f2842f4c2408ed44d9d71d5572606 | 53e882c920d34fab84c76b9e38eecfed0d265da1 | refs/heads/master | 2021-12-23T20:13:26.751954 | 2017-10-06T22:29:14 | 2017-10-06T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
716098a8f7469e8ffcbdd834a9aae73b196fa55b | 5efc1623d9e06d9b0caa104630d2b5d7610fb19d | /learn/deep_reinforcement_learning_course/deep_q_doom.py | d44d9b1f72a46b6b1336e6e4f9410ed328773ead | [] | no_license | techyajay/phd | 20fd01535b5147b7ef86aa19f6683fa01dca4404 | a1348bb6645a67a1f09aef7155c0db1720291bb6 | refs/heads/master | 2020-04-13T19:37:35.060245 | 2018-12-18T13:44:30 | 2018-12-18T13:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | """Deep Q learning for the game Doom.
See: https://medium.freecodecamp.org/an-introduction-to-deep-q-learning-lets-play-doom-54d02d8017d8
"""
import pathlib
import typing
import skimage
import vizdoom
from absl import app
from absl import flags
from absl import logging
from labm8 import bazelutil
FLAGS = flags.FLA... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
ba94c467bd8f222e23325989858c6f5c2422d7b3 | 431a08cf925a73e9a89121cf1f6cb4adbb377c62 | /Python/upload.py | 916036ad7b0562c6256367b2567ee645f10f2fc8 | [] | no_license | plmutua/AWS-Storage-Services-S3 | d7b205cb7773dcb783124dd7482af0faba12ec6f | eacdc0422ec32e7a9bb6a776d1e0b4479f77b611 | refs/heads/master | 2020-03-29T06:36:59.610866 | 2018-09-20T16:21:15 | 2018-09-20T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import boto3
# Create an S3 client
s3 = boto3.client('s3')
filename = 'bird.jpg'
bucket_name = 'plmbucket1'
# Uploads file
s3.upload_file(filename, bucket_name, filename)
print("File uploaded") | [
"pmutua@localhost.localdomain"
] | pmutua@localhost.localdomain |
bcad1e4075259796884212b6f12161c5e030c532 | 0967cc792be5e6e1b236387db5936f3e4fb8ae48 | /genetic_algorithm.py | 6fbf341a4c0916c76a4f60288db6e3c8be8502f0 | [] | no_license | dbsmith88/vb_experimental | a9805e006b0a46287855fa1d379f6504855de117 | 015d6c9b732bc11e5bf60555a71271630bb9f10a | refs/heads/master | 2022-12-10T19:34:26.503964 | 2020-08-28T20:03:51 | 2020-08-28T20:03:51 | 278,731,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,258 | py | from sorted_heap import SortedHeap
from analytical_model import AnalyticalModel
import multiprocessing as mp
import random
import copy
class GeneticAlgorithm:
def __init__(self, data, response, attributes, seed=42, evaluation="rmse", one_out=False,
generations=100, population_size=100, mutate_pe... | [
"dbsmith@uga.edu"
] | dbsmith@uga.edu |
8232a25f494ea58fe5f4743fe20ae90eea3baca4 | 087f7ec4bb11bca64f29eac49df1104d885067b4 | /midiscenemanager/midiio.py | cf0f27661d1cb8cb11b1990db844f4a85846ac42 | [
"MIT"
] | permissive | SpotlightKid/midiscenemanager | 38dd7e5299fc97fae3de6e8ecfde934c26974da0 | a4f9268ba73f575d5d3313eaf256eb9cebdcbdd0 | refs/heads/master | 2023-06-01T15:21:16.520511 | 2023-05-21T14:44:33 | 2023-05-21T14:44:33 | 111,223,358 | 2 | 0 | null | 2017-11-26T15:26:59 | 2017-11-18T17:06:18 | Python | UTF-8 | Python | false | false | 6,597 | py | # -*- coding: utf-8 -*-
#
# midiio.py
#
"""Wrapper clas for rtmidi.MidiOut to facilitate sending common MIDI events."""
import binascii
import rtmidi
from rtmidi.midiconstants import *
from rtmidi.midiutil import open_midioutput
from .sequencer import SequencerThread
def parse_sysex_string(s):
return binascii.... | [
"chris@chrisarndt.de"
] | chris@chrisarndt.de |
d214f20f0b7b9644017966ed62627b3e70e73e88 | 983e1ecf4dd83ed24f3caa09d35fc4b278cfc229 | /TurtleDrawingProgram.py | b1415488f467456aabf31e53a268eec4fee67d3d | [] | no_license | wildflower-42/FLVS-Foundations-of-Programing | 46aba4c5bde59a05c1834235ac75d57e2357678c | 0470a01b58c97bbd57af776fb03801b09eac134f | refs/heads/master | 2022-12-19T11:25:29.416103 | 2020-10-07T14:13:18 | 2020-10-07T14:13:18 | 299,484,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | #Alaska Miller
#6/19/2020
#The perpouse of this program is to allow the user to draw a custome image with the cursor using keyboard inputs, that can be stopped and completed when the user uses a command to end the program, based off an "end" command in the "while" loop that generates an image that the user can then vie... | [
"noreply@github.com"
] | noreply@github.com |
84143160260f1dd336ed44bdb166a188128d844e | adcbefa6cba639ec8c8eb74766b7f6cd5301d041 | /coffeehouse_nlpfr/translate/ibm_model.py | 5ea12030cfdd157ed39846bc43e3a1cde15a84a8 | [] | no_license | intellivoid/CoffeeHouse-NLPFR | b39ae1eaeb8936c5c5634f39e0a30d1feece6705 | 8ad1b988ddba086478c320f638d10d0c0cacca4c | refs/heads/master | 2022-11-28T02:13:40.670494 | 2020-06-07T04:02:00 | 2020-06-07T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,039 | py | # -*- coding: utf-8 -*-
# Natural Language Toolkit: IBM Model Core
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Tah Wei Hoon <hoon.tw@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Common methods and classes for all IBM models. See ``IBMModel1``,
``IBMModel2``, ``IBMModel3``,... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
24bef4da51b7e473f483cd9fe30280a5be5bb0ea | d6851011cf9669036078a848a55f3dab7528bbd1 | /tests/mock_commands/ghdl | 806201636fad5ce30b2824afa73edbd89f47b119 | [
"BSD-2-Clause"
] | permissive | msfschaffner/edalize | 442743f6c2f41da034482b69c5276efd1a6a40ad | d6757f36c6fc804f1876c907d0df55485937c0f2 | refs/heads/master | 2022-11-30T15:52:48.724111 | 2020-04-13T16:33:20 | 2020-04-16T10:35:00 | 256,582,248 | 1 | 0 | BSD-2-Clause | 2020-04-17T18:38:44 | 2020-04-17T18:38:43 | null | UTF-8 | Python | false | false | 441 | #!/usr/bin/env python
import os
import sys
cmd_file = 'analyze.cmd' if sys.argv[1] == '-i' else 'elab-run.cmd'
with open(cmd_file, 'a') as f:
f.write(' '.join(sys.argv[1:]) + '\n')
if sys.argv[1] == '-i':
for arg in sys.argv:
if arg.startswith('--std'):
std = arg.split('=')[1]
... | [
"olof.kindgren@gmail.com"
] | olof.kindgren@gmail.com | |
eb2c401bccb6319a30e48d31688eae4f130ad2be | e0c378f27462cb00b656473cbe0b172886741818 | /src/flash/image/embedding/__init__.py | 30f7a15003c7c0e8b58925b300084fe61302bb93 | [
"Apache-2.0"
] | permissive | Lightning-Universe/lightning-flash | d0c955d7fdf962175750d154b3a369a483b8d188 | fc6c97a43d65b49561c896bf05bc1c75536d0dc0 | refs/heads/master | 2023-08-17T12:03:52.563905 | 2023-08-14T12:35:10 | 2023-08-14T12:35:10 | 333,857,397 | 58 | 12 | Apache-2.0 | 2023-09-11T14:43:06 | 2021-01-28T18:47:16 | Python | UTF-8 | Python | false | false | 68 | py | from flash.image.embedding.model import ImageEmbedder # noqa: F401
| [
"noreply@github.com"
] | noreply@github.com |
c1ae1f65477b82ebef1d58587f4c37e46ba2ef41 | a9d1a1a35ef400dcedcb9c9c07bc30a71c10756c | /cocoqa_dataset.py | faf695e748886e3b121cffb3bf22d87086f66d99 | [] | no_license | chancezhw/vqa-playground-pytorch | c50ee6fe8247c172fa03a25bfeaf84d6454c4ef5 | 91218a1e3d72735bbdba27b3a89061744d7bea04 | refs/heads/master | 2020-05-30T22:23:46.535674 | 2018-11-23T02:49:30 | 2018-11-23T02:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,613 | py | import gc
import lda
import torch.utils.data as data
from nltk.parse.stanford import StanfordDependencyParser
from putils import *
import redis
import subprocess
class COCOQA(object):
def __init__(self, data_dir, process_dir, samplingans=True, vgenome=False):
self.data_dir = data_dir
self.process_... | [
"liujinlai.licio@bytedance.com"
] | liujinlai.licio@bytedance.com |
7784c6c881491668146821d012aea321c4b1cb44 | b991ab377a8c5b112913de35a2c593dc191347f9 | /data_transformation.py | 2da36cc9ab17ef8b313b5af060eb3b29aee80840 | [] | no_license | Thomasjsr/projet-final-ISN | cfbed00658e3d222f02c9b4a26fe14207936d98b | 40da6acd2477803b24ac89370b7da514f908293d | refs/heads/master | 2020-05-02T23:39:47.041536 | 2019-05-06T21:52:55 | 2019-05-06T21:52:55 | 178,286,626 | 0 | 1 | null | 2019-05-06T18:47:17 | 2019-03-28T21:44:05 | Jupyter Notebook | UTF-8 | Python | false | false | 896 | py | import os
from PIL.Image import*
import file_manager
def list_manager():
datadir_test = "coins_dataset-master/classified/test"
datadir_train = "coins-dataset-master/classified/train"
categories = ["1c", "2c", "5c", "10c", "20c", "50c", "1e", "2e"]
n=0
for category in categories:
pa... | [
"noreply@github.com"
] | noreply@github.com |
c3b92fd7f44fe5db75993fbe1a3612426d5e6c21 | 72b6589dbbc51a78f29eb2351165862b52b6d593 | /baekjoon/samsungA/19237.py | 7027f70ce5b862c7909410b3ab8ad9ef9fa07820 | [] | no_license | kinggodhj/python_coding_test | 255aee270e0b0f38cac8e39503968e8883a2600c | c1efff2149f45ac0ac747d9d1fe99ab0fe48bc45 | refs/heads/master | 2023-05-21T18:59:48.587694 | 2021-06-11T13:01:02 | 2021-06-11T13:01:02 | 342,779,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | N, M, k=map(int, input().rstrip().split(' '))
ocean=[list(map(int, input().split(' '))) for _ in range(N)]
sharks=[[[0, 0, 0, 0]]*(5) for _ in range(M+1)]
sharks_dir=list(map(int, input().rstrip().split(' ')))
sharks_dir.insert(0, 0)
dir={1:[-1,0], 2:[1,0], 3:[0,-1], 4:[0, 1]}
smell=[[0]*N for _ in range(N)]
#shark_idx... | [
"heeeee928@gmail.com"
] | heeeee928@gmail.com |
3feb21f0d8e4940ac18fbed6328531f485b92675 | 595ce39a45d9d1fff6427a30a1cc7b45c83dea7e | /app/core/migrations/0003_ingredient.py | d974956eef5afbdcb81a6f0543617f9ccd73ad7d | [
"MIT"
] | permissive | kobzarenko-volodymyr/recipe-app-api | 751952b80b4f351d5931d92d6b60fbae38c08ee4 | 92bc85728d151addf016fa1b9bca2ca50c574308 | refs/heads/master | 2020-04-25T09:58:16.428429 | 2019-03-26T17:20:00 | 2019-03-26T17:20:00 | 172,693,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 2.1.7 on 2019-03-21 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"kobzarenkovolodymyr@gmail.com"
] | kobzarenkovolodymyr@gmail.com |
2cec6a211276c379fe680ed75f6b80ec5ca6050c | ca950e62782ee9feba8c2c8b31bb9f84c5052dda | /18st_day/yield_from_test.py | c79852dece0d1444f055deb91d97e6dc8ad6831b | [] | no_license | pr1s0n/learn_python3 | 0d6b258bdc08c219e8e5e1b0c7b50d756bae7aab | d998781bd5355c97870eef5b8b5cec961eea18d3 | refs/heads/master | 2020-06-29T19:37:06.745208 | 2019-08-22T14:22:21 | 2019-08-22T14:22:21 | 200,605,521 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | final_result = {}
#子生成器
def sales_sum(pro_name):
total = 1
nums = []
while True:
#不停的从外界接收值并保存
x = yield
print(pro_name+'销量',x)
if not x:#如果接收到None就结束
break
total += x
nums.append(x)
return total,nums
#这个值返回到final_result[key]
#委托生成器
def middle(key):
while True:
final_result[ke... | [
"li1111111@vip.qq.com"
] | li1111111@vip.qq.com |
5a738e577f45dd12f9c5c7046d773a8573c763f2 | f7bbe95b75866ad319240eca234c0e48fbec65e5 | /apps/eotd/migrations/0016_auto__add_field_gameunit_retain.py | dc50d316afb2703aa1469b6c5302400ee2a2fc4a | [] | no_license | qu0zl/UOTD | bf81343479727b541f6629f8553804621d3bb5a2 | 047240f7616986d0a40c7d91e8ea9faa8143c6cf | refs/heads/master | 2016-08-09T12:19:42.785219 | 2013-11-01T12:27:43 | 2013-11-01T12:27:43 | 43,487,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,871 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'GameUnit.retain'
db.add_column('eotd_gameunit', 'retain',
self.gf('dja... | [
"greg@gregfarrell.org"
] | greg@gregfarrell.org |
6cb399bd6c386797f29961c95a3d1802af1c5df5 | 63f9f7caf0a76450530b201933727f33a8d98ac8 | /basic/11/aula11-tratamento-de-erros.py | 675d051b1a842738c9c10fde0a2f1ab2fbc6b867 | [] | no_license | wribeiiro/learn_python | c4ec0ad50506965522b1ce86a17ab1df2813e4e3 | 4610d13b1c5ff4a8d5d9738aefde8f30c700304a | refs/heads/master | 2023-08-11T08:01:22.137812 | 2021-09-25T00:46:36 | 2021-09-25T00:46:36 | 409,664,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import time
def abre_arquivo():
try:
open('teste.txt')
return True
except Exception as error:
print("Deu ruim", error)
return False
while not abre_arquivo():
print('Tentando abrir oarquivo')
time.sleep(5)
print('Consegui abrir o arquivo') | [
"welleh10@gmail.com"
] | welleh10@gmail.com |
610b601c0f207fd07f9e4f7970fc888d958ddf92 | 9fdb2721da332b4441eb323e5ec45d200d7765fd | /webui/common/logger.py | ead0a223b08e42157892c9ff5baca78f871ba8fa | [] | no_license | alx9110/docker-web-ui | 9cc6af61bc6c97ff8bdcc98264a5b52b5f610061 | c15909523d9e4611a078b2d6070f3e0f47952518 | refs/heads/master | 2021-09-10T15:50:08.365583 | 2018-03-27T20:03:30 | 2018-03-27T20:03:30 | 112,866,046 | 2 | 1 | null | 2018-03-27T20:03:31 | 2017-12-02T18:24:02 | HTML | UTF-8 | Python | false | false | 344 | py | import logging
logger = logging.getLogger("DockerWebUI")
logger.setLevel(logging.INFO)
# create the logging file handler
fh = logging.FileHandler("/var/log/dockerwebui.log")
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
# add handler to logger objec... | [
"alx9110@yandex.ru"
] | alx9110@yandex.ru |
74134a4a9c375e989945be3f8e6918439006f882 | c991fa6a5ed68fbe96dbb795d8f22a2045abb537 | /rango/views.py | 3f9e7824a108efad5b683d71ec675eea67c1bf6d | [] | no_license | HanLuo/rango | cbfbea46917b8e5fc8eea36129d78fd38d7ea0ad | 721e5c84b55070ed17e731dca011ab10fbb9871b | refs/heads/master | 2020-04-18T18:04:36.522894 | 2019-07-15T12:51:01 | 2019-07-15T12:51:01 | 167,673,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,227 | py | from django.shortcuts import render
from datetime import datetime
# Create your views here.
from django.http import HttpResponse
from rango.models import Category
from rango.models import Page
from rango.forms import CategoryForm
from rango.forms import PageForm
from rango.forms import UserForm
from rango.forms import... | [
"1903851304@qq.com"
] | 1903851304@qq.com |
ef5ad6e5f5c68126fb897fabfa3e7fb4a6406350 | 515e0e1b1ee570987fccd86948be21561362657f | /MMA.py | c876dbfe2ee2639ce1869a81244366d3c5c144bb | [] | no_license | AndOrtegon/GPTO_Python | f9e60421afeb414e0ac78cd2a1b38f718fc6e22b | f1045dc71f185bd9e9f6f02bcf1a633540dd2723 | refs/heads/master | 2023-06-04T09:51:40.740692 | 2021-06-16T01:20:05 | 2021-06-16T01:20:05 | 360,690,057 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 23,564 | py | ########################################################################################################
### GCMMA-MMA-Python ###
### ###
### This file is part of GCMMA-MMA-Python. GCMM... | [
"afortegonv@unal.edu.co"
] | afortegonv@unal.edu.co |
6ea80c35427c51be580a992e7498a8193ed087f5 | 7e2fab66d5bde91606e1c735bc93bbdcaf804209 | /section2/out/src/run_ml_pipeline.py | 207422c0aaf54b7e1e7b8a69f4d587fd67a5e7e8 | [] | no_license | usamnet000/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression | e3e555d7cd1db53e9fb5e883a6c76b2c3f3212d9 | a6c3c625d8cbdf9a6da5b5b19c3e0b9950c5732e | refs/heads/master | 2022-11-06T07:54:47.760499 | 2020-06-24T19:56:24 | 2020-06-24T19:56:24 | 290,751,343 | 1 | 0 | null | 2020-08-27T10:55:45 | 2020-08-27T10:55:44 | null | UTF-8 | Python | false | false | 1,496 | py | """
This file contains code that will kick off training and testing processes
"""
import os
import json
import random
from experiments.UNetExperiment import UNetExperiment
from data_prep.HippocampusDatasetLoader import LoadHippocampusData
class Config:
"""
Holds configuration parameters
"""
def __init... | [
"hwdgrmy@gmail.com"
] | hwdgrmy@gmail.com |
0989173ccda9a696f95aa915751a62846985e0ef | 70952e923eb82404aa852305c2d5f6c5c53dced8 | /server/app/user_routes.py | 27faafec53e41e9ac7a4c181c6ee7ea27f52b3b0 | [] | no_license | cenak/aviahackathon2021 | 641eb3493ea5d39ee95747b88258cbfa3cebe303 | a913644cb40c102f35cf47795899f60af1f4f9f2 | refs/heads/master | 2023-04-08T20:32:53.168056 | 2021-04-25T12:42:43 | 2021-04-25T12:42:43 | 361,401,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | # Здесь описаны роуты для
# человека-"под самолетом"
#
#
#
#
import json
import sys
# from .db_init import conn
from flask import request, jsonify, make_response, Blueprint
from datetime import datetime
from psycopg2 import sql
from psycopg2.extras import RealDictCursor
users_api = Blueprint('users', __name__)
#@app... | [
"plesen98@gmail.com"
] | plesen98@gmail.com |
8040c181e9b472d3550947000f2ece3b32bac97e | 8640ee2f28364c5200d80377f135d56c5cc3c08d | /word_bag.py | 25699360a1302b1a36d8f51f4b3428c2bbb49b8a | [] | no_license | brianchesley/scrabble_game | 99f85a2e9af53f4a3823b3b3edceff04d475dd02 | 492739d7e51c98d1651e63bf4aa00d52584ac5ff | refs/heads/master | 2020-04-30T19:42:32.206025 | 2019-03-28T21:33:40 | 2019-03-28T21:33:40 | 177,046,355 | 0 | 0 | null | 2019-03-28T21:33:41 | 2019-03-22T00:50:07 | Python | UTF-8 | Python | false | false | 1,919 | py | import random
class Letter:
def __init__(self, letter):
self.char = letter
def __repr__(self):
if self.char is not None:
return self.char + " "
else:
return "__"
def __eq__(self, other):
return self.char == other.char
class ScrabbleBag(Letter):
... | [
"bhches@monsanto.com"
] | bhches@monsanto.com |
2344eada23cfb8ac41031bc13e832bdffc346ff7 | faa763ac2f7e3300981769d5dc8e26f7bf7b68d8 | /ingreso.py | c90f88d15891521c06f5dc21a84d0495d6d056b0 | [] | no_license | kanequito2/seminario2prototipo | d63f42e1810fc8d0f34f3ff5df5a886fb14e3221 | e4be41d2dff227dbae216ac70ff04358f767041f | refs/heads/main | 2023-01-14T06:16:52.451265 | 2020-11-22T04:28:43 | 2020-11-22T04:28:43 | 314,958,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import quickhome as qh
import pymongo
def ingresar(credencial,contrasena):
client = pymongo.MongoClient("mongodb://localhost:27017/")
db = client['quickhome']
users = db['usuarios']
query = {'cedula' : credencial}
result = users.find_one(query)
if result:
if result... | [
"noreply@github.com"
] | noreply@github.com |
dbe9f4eb393e71a7a21668ed22f874251ed21d4b | a27163953c34e9e569966b91524c2450dbbc72c4 | /brigands/factions/models.py | fec4e1747a93e8a6a78a1d8db1b9770256cb7cb3 | [] | no_license | Sasooli/brigandrules | 4c9f14031a533276953f7f1c30cdad37676549e1 | 8b99a43791833ec58e759e8eea3b05f1ed1c98e9 | refs/heads/main | 2023-03-22T10:37:47.076389 | 2021-03-15T16:55:44 | 2021-03-15T16:55:44 | 348,048,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.db import models
class Faction(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
| [
"olafdavis@googlemail.com"
] | olafdavis@googlemail.com |
edaf6548d496e07a077b970fcdf68d7076a424c7 | 716d9e678c884fd9e9f07bbf57c7a0ec684f8255 | /foodboxes/app_items/migrations/0001_initial.py | 8934997852b104c017f9a76a5e7ef50064a6e946 | [] | no_license | arifgafizov/foodboxes_v.2.0 | e6716ba3ab3c0dd77bac212b90db8d710f46d495 | 1093a520e391fd409ba18bab341d6ffbec1104c7 | refs/heads/master | 2023-02-17T21:20:32.491143 | 2021-01-21T19:57:26 | 2021-01-21T19:57:26 | 330,394,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 3.1.5 on 2021-01-10 16:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"agafizov@gmail.com"
] | agafizov@gmail.com |
0006a8010b47859f57692841a577d972fa0ffe63 | fcd02cbf7fae38f0b0d6a95deedc49d5993927da | /models/backbone/__init__.py | 5d8d9e12d55ba6f87789786da9b2fb6e2c00b36a | [
"Apache-2.0"
] | permissive | Highlightbeast/DBNet.pytorch | 7d5082c66516319fb8a02855c1a03be6c122a143 | d95a7dbd37b031f2cf1ca33c63f5658d29803242 | refs/heads/master | 2022-09-21T02:51:33.104828 | 2020-06-05T07:28:01 | 2020-06-05T07:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
# @Time : 2019/8/23 21:54
# @Author : zhoujun
__all__ = ['build_backbone']
from .resnet import *
from .resnest import *
from .shufflenetv2 import *
from .MobilenetV3 import MobileNetV3
support_backbone = ['resnet18', 'deformable_resnet18', 'deformable_resnet50',
'resnet... | [
"572459439@qq.com"
] | 572459439@qq.com |
8c398d951d85811876ae80fc5c9b18551af6c123 | 35e09aa5539b627592b2379671c26e372dca6bda | /13-Set.py | ba876abc1075c3df6a12cdfc56c54089a0e23071 | [] | no_license | annakhomenko111/python | a606352f79b4fcde8943803f7447abfa91246f92 | 0febd0f7330de1bd63de099e1f27111e63a36510 | refs/heads/master | 2023-07-30T21:07:09.442675 | 2021-09-23T11:50:23 | 2021-09-23T11:50:23 | 403,556,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import random
def rGen():
a = {random.randint(-10,10) for i in range (10)}
print(a)
b = {random.randint(-10, 10) for i in range(10)}
print(b)
с = a & b
print('Intersection', с)
rGen()
# https://www.youtube.com/watch?v=_zBTBr6XdZo&t=71s
# https://www.youtube.com/watch?v=KMGRXDxUw18&t=263s | [
"khomenkoanna111@gmail.com"
] | khomenkoanna111@gmail.com |
abcd8f62143d26c371224047ec2538617405b71b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1627+006/sdB_pg_1627+006_lc.py | 3d8cb550156a2ce741e67bc7f9c22da1c2ea971c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[247.399583,0.530394], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1627+006/sdB_pg_1627+006_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6e2b379127ecdaf4df40653672510a9b4d307e4e | 3495dd509a5fe4df6f3cba378b935917739815ca | /Proyecto Grupo 7/Scripts Pyhton de Limpieza/tempGeneral.py | f0b65945a8574fc72c018aa7b7bc9e0037f1d8e1 | [] | no_license | JwangXu/APFEM | 637bbf0fc8069599f1a1331dfc8f180a79c25b44 | e550bdcf1db8103f23f91deadc57f846078037cf | refs/heads/master | 2023-02-17T13:55:49.410159 | 2021-01-18T21:54:06 | 2021-01-18T21:54:06 | 330,795,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,364 | py | import json
import csv
import os.path
import array as arr
#Script para la unificación de los JSON extraidos por el script de python aenetTemp.py en un fichero .csv
# Estructura final de los datos obtenidos de AEMET
# Comunidad, Año, Mes, Temperatura Media, Mínima, Máxima, Presión Máx, Rachas
#Parámetros para el scri... | [
"56585998+JwangXu@users.noreply.github.com"
] | 56585998+JwangXu@users.noreply.github.com |
c2227462ba3ca774a56ef09850ceada2d1510cbf | 08dc05bb510cdcfcb0b175fcff246d2f33410cee | /vvAPI/views/auth.py | 4028a478fcd87ca2601a7614e034c4696acf9032 | [] | no_license | DakotaLambert/VenueVagabondAPI | ba5134184aa1fa8c5d0f700ad89b9586e5e7d2ec | 1faafdeaaa29d04e6f2cf98bc350f0d89fcd1300 | refs/heads/main | 2023-08-12T21:05:23.945552 | 2021-09-23T22:27:07 | 2021-09-23T22:27:07 | 404,401,650 | 0 | 0 | null | 2021-09-23T22:27:08 | 2021-09-08T15:33:43 | Python | UTF-8 | Python | false | false | 2,647 | py | import base64
import uuid
from django.contrib.auth import authenticate
from django.contrib.auth.models import User # pylint:disable=imported-auth-user
from django.core.files.base import ContentFile
from rest_framework.authtoken.models import Token
from rest_framework.decorators import api_view, permission_classes
from... | [
"dakotalambertbiz@gmail.com"
] | dakotalambertbiz@gmail.com |
09355f514250afe265e67188f29d1341e39f90a6 | 4fc993971bc4792d1e5508b2aa681dd96057fa5f | /utils.py | a68b9f171e8fc22e84cb81529143e11c3f859efc | [
"Unlicense"
] | permissive | astelmashenko/ndml_capstone | 5e6e1dcf25492f60466002174eea4fbe586ce102 | 0694672acc1adcc58b43a623e65f024695b76392 | refs/heads/master | 2020-03-22T03:11:47.260486 | 2018-08-17T10:25:10 | 2018-08-17T10:25:10 | 139,418,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import numpy as np
import pandas as pd
from os import path
src_path = path.dirname(path.realpath(__file__))
def compute_missing_values(df):
_size = len(df)
nulls = df.isnull().sum()
nulls = nulls[nulls != 0].sort_values(ascending=False)
nulls_percent = 100 * nulls / _size
return pd.DataFrame({'NaN Count': ... | [
"andrey.stelmashenko@gmail.com"
] | andrey.stelmashenko@gmail.com |
db22fd01e6640bbe57e76b0fe7c5af2d1ba730b0 | 56f968ff8f215f0a64eb822916acf9e6039a036e | /env/lib/python2.7/site-packages/rackspace/load_balancer/v1/load_balancer.py | 565e1a9978cd372a0759caced8906fd42dc878d8 | [] | no_license | AntObr/credit-to-customer | 754d9d144d1f9f49ce9aefd6e0500d76e1cde1e1 | 36b2a100dc65b109b72527a36556a37418b1fcda | refs/heads/master | 2022-01-25T17:34:10.820544 | 2018-04-17T16:48:06 | 2018-04-17T16:48:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,721 | py | # 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
# distributed under t... | [
"obrien.r.anthony@gmail.com"
] | obrien.r.anthony@gmail.com |
7565e1cdea51d680114c599704d68a3b7d4f304b | 6be0ea3a10add1ad32637e99eeeade76bbecd143 | /day5.py | 65503f4a92cbea100ec70e0421ec76f623c68d4e | [] | no_license | Siliconrob/advent2020 | 6e542c31ea1657cfbf09c91917af4a311bfd6d25 | cf52ce67a2e59f7fdb13d704265e9091b35f2caa | refs/heads/main | 2023-02-02T05:20:52.013443 | 2020-12-21T06:24:11 | 2020-12-21T06:24:11 | 318,392,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from aocd import get_data
import queue
def dataQueue(line, start, end = 0):
if end > 0:
input = line[start:end]
else:
input = line[start:]
queue_data = queue.Queue()
for item in input:
queue_data.put(item)
return queue_data
def findPosition(queue_data, upperIndicatorChar, s... | [
"noreply@github.com"
] | noreply@github.com |
d06d2e0a911f5010f8561348d3ab54923e923e31 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_059/ch86_2020_06_22_20_42_01_067760.py | 2a606c4d7a824d5d1b2a4313ad94567cbeff57d6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py |
with open('criptografado.txt', 'r') as arquivo:
conteudo = arquivo.read()
for i in conteudo:
if i == 's':
with open('criptografado.txt', 'w') as arquivo2:
arquivo2.write(conteudo.replace(i, 'z'))
if i == 'a':
with open('criptografado.txt', 'w') as arquivo... | [
"you@example.com"
] | you@example.com |
33cfca9e63d2c61a4e092059207a0a95bd8a17c1 | 17f9ad1066175de0e2f860048a851639ee148d2e | /lexer/lexer.py | ff4c48a622af60ad74f0bbfe69da06fa5faa0b5e | [] | no_license | berochel/TKOM_2021L | 35b6d4a0b1dd776f3a2580a032a08cfb40a9aa97 | 8a8c0fd6d591192c11a9a32e64b6540530d46665 | refs/heads/master | 2023-05-08T03:26:42.316502 | 2021-06-02T08:32:59 | 2021-06-02T08:32:59 | 359,233,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,598 | py | # Written by: Jarosław Zabuski, 2021
import string
from error.error_handlers import LexerError
from lexer.token import Position, new_token, move_forward
from lexer.types import TokenType, token_type_repr
# Main lexer class, containing all methods needed to generate a valid
# lexical tokens tree from a source tex... | [
"zabuski.jaroslaw@gmail.com"
] | zabuski.jaroslaw@gmail.com |
531653f7e9a953e95b57dff8c3558d5909f0842d | d6f7d4f71b4ce5204a17e3ef7a21f495e45a44ce | /Strictly Alternating List.py | e0e78abd6928c0dabf00fe2bad8e44d6e3d8f103 | [] | no_license | zoskar/Binary_search | de43168105688ded7b58e11963bdcce57f83b8af | 532e67b074c478a5af0f23a644e79043e89ed0c5 | refs/heads/master | 2023-06-04T08:13:03.897436 | 2021-06-20T12:24:29 | 2021-06-20T12:24:29 | 356,622,345 | 0 | 0 | null | 2021-06-20T12:24:29 | 2021-04-10T15:29:43 | Python | UTF-8 | Python | false | false | 227 | py | class Solution:
def solve(self, nums):
if nums[0] > nums[1]:
return False
for i in range(len(nums) - 1):
if nums[i] == nums[i + 1]:
return False
return True
| [
"zoskar00@gmail.com"
] | zoskar00@gmail.com |
db8d3ec8e54f8e44baff3012b5e4766f9d7f13e7 | daa7db79416712db406a0c89fae2d6f3db04006b | /get_position.py | fac7b2af9ffb18b8db140efc6425d3df62be9552 | [] | no_license | emi-cd/crater_code | 7982c644ba3196f9f03023f414f9ff648c71f790 | d4de2ea6bdc8091c799f0de24decaea87eccf803 | refs/heads/master | 2022-11-30T04:43:04.927252 | 2020-08-14T09:03:57 | 2020-08-14T09:03:57 | 287,490,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import sys, os
import pandas as pd
import download as dl
import register as rg
def main(argv):
if len(argv) != 1:
print('Please input path to dif path.')
return 0
base_name_origin, _ = os.path.splitext(argv[0])
base_name = base_name_origin.split('/')
lat = base_name[-3].split('-')[0]
if len(base_name[-3].s... | [
"donguri.korokoro425@gmail.com"
] | donguri.korokoro425@gmail.com |
c2ad0d35456b62cf2157dc02f65312ffbd432221 | 8f2d1527d1610a0ea23c101c0f83bce645e2265a | /music/admin.py | d267a0c93d48446063a5d78f7ee6ad837dace4ab | [] | no_license | rhythm55/Viberr | 6b7bb9d021360314de76e94739d78c961c23c965 | 2378a5edc454cc412c57c24ff52eead6d359243b | refs/heads/master | 2020-03-09T17:04:24.811111 | 2018-04-10T08:42:06 | 2018-04-10T08:42:06 | 128,900,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.contrib import admin
from .models import Album,song
admin.site.register(Album)
admin.site.register(song) | [
"rhythmkatal@yahoo.com"
] | rhythmkatal@yahoo.com |
a2eb36c053207018fa03bedf2ebbfb131d88424a | 3b548783a95ccef271cb3501a09dfc9191c75733 | /chapt_11/test_name_function.py | 655f8c7fb03506c45f9efcfa9a6c234c1b38d05e | [] | no_license | ojenksdev/python_crash_course | 5c97abf54fd3f773f9ebedf9c6f2e99550ddbc7d | edc5ffa2241daaaaf2163ba10e86ec55d02d7b83 | refs/heads/master | 2020-04-11T19:39:21.044171 | 2018-12-19T02:39:10 | 2018-12-19T02:39:10 | 162,042,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py"""
def test_first_last_name(self):
"""Do names like Janis Joplin work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(format... | [
"ojenksdev@Oseis-MacBook-Pro.local"
] | ojenksdev@Oseis-MacBook-Pro.local |
985c56b69a592827471cc93c075ef206e2d3117d | b4ac75e9c9eb079a8f5b6a92e594f8cc236c43a5 | /climlab/radiation/greygas.py | 2425f2dab17ab6a044a7d559bc690c16d9b905a2 | [
"MIT"
] | permissive | XrosLiang/climlab | 61666ef6e2462aa0cac2ba1f8bc808b7955d8b1b | 2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7 | refs/heads/master | 2023-03-05T20:15:30.550458 | 2021-01-15T14:15:10 | 2021-01-15T14:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,456 | py | from __future__ import division
from builtins import range
import numpy as np
from climlab.utils.thermo import blackbody_emission
from climlab.radiation.transmissivity import Transmissivity
from climlab.process import EnergyBudget
class GreyGas(EnergyBudget):
'''Base class for all band radiation models,
inclu... | [
"brose@albany.edu"
] | brose@albany.edu |
22f6f4c29ed35e29af9c0bf2cb478610bfc8b693 | 9546040fb946f6e0d913a915ed16f7b55e37a491 | /Test/first_test.py | 1818beb503a4d912e20f510604c3a54a3ea49d1a | [] | no_license | Pasha-Kovalev-29/HW-A-Level | ff39b0b4563b9d148fc1b58d5945a62d52602967 | dcbb29b6801a0dbb5ac29941259a8f7897ac3d14 | refs/heads/master | 2023-03-24T23:22:47.769061 | 2021-03-19T21:00:00 | 2021-03-19T21:00:00 | 343,913,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | def spam(number):
'''Function should return something like this:
spam(1);#bulochka
spam(3);#bulochkabulochkabulochka
But it is broken. Fix it please!
Эта функция принимает числовой параметр. Должна вернуть строку, которая
повторяется столько раз, сколько параметров передано. Она уже написана,
... | [
"pasha0kovalev@gmail.com"
] | pasha0kovalev@gmail.com |
9a1a65d60cc86454d71fd9847cff3ebe56cb1ba3 | 10e2efb32f002e18019bc703fc801516361f96ef | /searchLatencyCache.py | 9982e3393d7c325c77db59f23adf6f4f6b75d94f | [] | no_license | TrafalgarSX/graduation_thesis_picture- | 32f7cfd7d58c636bfc63562da22af6a1d66cc8f1 | c55de3412f0049ca328869b25d78095d67ec4b0d | refs/heads/main | 2023-04-29T19:15:44.138455 | 2021-05-18T13:02:44 | 2021-05-18T13:02:44 | 368,528,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | '''
Author: guo yawen
Date: 2021-05-17 23:02:25
LastEditTime: 2021-05-17 23:08:57
LastEditors: guo yawen
Description:
FilePath: \Thesis\searchLatencyCache.py
TrafalgarSX
'''
import matplotlib.pyplot as plt
from matplotlib.pyplot import MultipleLocator
import numpy as np
# path and cached 0.6factor
# 两行代码正常显示中文
plt.r... | [
"1148636359g@gmail.com"
] | 1148636359g@gmail.com |
461ccf1fcf588f87ddd2359e410e5de3eddd855e | ad113ffed76e72ed0a881a7a6d6a74ea9021e5bf | /tests_compare.py | 09f259dd46dda07db612be2449e8522ef61f31b4 | [] | no_license | biletboh/bitexchange | 03c0bfc04e2f103928c173f014a75b6ceea0def9 | 8d541d6bb82f5e3ff4c71cb65b609503ba6b9417 | refs/heads/master | 2021-01-22T10:46:46.717291 | 2017-05-30T14:43:37 | 2017-05-30T14:43:37 | 92,656,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import time
import os
import configparser
from bitfinex.client import TradeClient
from exmoclient import ExmoTradeClient
from compare import compare_exchange
# Set up configuration
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
conf = configparser.ConfigParser()
conf.read(os.path.join(BASE_DIR, 'settings.ini... | [
"biletskyboh@gmail.com"
] | biletskyboh@gmail.com |
3376a9b65bde1e1df7312960c5ba0514b61e9fe3 | 12dd2ef589424cb300303740ccdd91ec066064b6 | /mencobabuffer.py | 5dd4ac99ed1546ff53b0b9cde55982c1a1f92162 | [] | no_license | cahyacaa/Python-UDP-Comm | 18d969fb2950701cd8fb7ba095aa9c23c350e0d7 | 9764186f9ba3ec6525b28b7c1ccffc57356ecb19 | refs/heads/main | 2022-12-27T03:09:47.679442 | 2020-10-11T17:10:07 | 2020-10-11T17:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import cv2
import socket
import time
from math import ceil
import pickle
from dronekit import connect, VehicleMode, LocationGlobalRelative
from pymavlink import mavutil
vehicle = connect('udp:127.0.0.1:14550',wait_ready=True)
def rescale_frame(frame, percent=10):
width = int(frame.shape[1] * percent/ 100)
heig... | [
"noreply@github.com"
] | noreply@github.com |
e63d89eed6d0c31ebf828de02250a46d2a1bb7cb | 418dfa92834ca28d64f11eeaf9877652baa81814 | /function/def_func.py | bf914ee10e1fd2f382fe66f42fd25c9016e1e129 | [] | no_license | summer-studio/mypython | 0f11c9ee528a863c755610c930bed57943d12eb1 | b761883fbbedc06471ede30518d9e574d3cde70e | refs/heads/master | 2023-07-24T00:19:30.115164 | 2021-06-30T11:00:04 | 2021-06-30T11:00:04 | 222,826,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
def my_abs(x):
if not isinstance(x, (int, float)):
raise TypeError('type error xxx')
if x >= 0:
return x
else:
return -x
print(my_abs(-9))
def nop():
pass
def move(x, y, step, angle=0):
nx = x + step * math.c... | [
"mango2049@163.com"
] | mango2049@163.com |
df7be9df56dab5536f001516b49ba14d7713bc42 | 74850db9f963029fc2c77fdf378018f6f2929f8f | /Completed/ex_12/followalong9.py | 78da6ab4305c390e16f0ba35f9b92a32a7101465 | [] | no_license | CodeVeish/py4e | bf3507f55b04debc90c4b8158c5601c039379363 | dbd558dad52f8d1520205738fd505b3da1914134 | refs/heads/master | 2023-05-06T02:31:25.589747 | 2021-05-23T18:54:48 | 2021-05-23T18:54:48 | 355,971,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #Search for link values within URL input
import urllib.request, urllib.parse, urllib.error
import re
import ssl #the SSL library allows this program to access web sites that strictly enforce HTTPS.
# Ignore SSL certificate errors
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT... | [
"codeveish@gmail.com"
] | codeveish@gmail.com |
7468b944bab44957001008e613b5f91e3fc8ac54 | d433ea562f0ee31a7df354b5855126fcf2bbde07 | /Arduino_Communicator/Communicator.py | c8ca411aa49aa3a134e034948bc0b2f1be137d5b | [
"Apache-2.0"
] | permissive | mynameissean/ferm-control | c8cf18db69709c405b61adf8521617c4ebe39632 | 9ba8b0d58251dfc27ff67f6166f41a557254af1b | refs/heads/master | 2021-01-17T14:41:36.383960 | 2020-02-06T02:30:48 | 2020-02-06T02:30:48 | 22,331,295 | 0 | 1 | null | 2016-01-29T17:37:31 | 2014-07-28T04:53:32 | C++ | UTF-8 | Python | false | false | 3,246 | py |
import serial
import threading
import time
from serial.serialutil import SerialException
import DataWriter
import sys
from ArduinoState import ArduinoState
g_FailureThreshold = 5
class Communicator(threading.Thread):
"""Parse data from the Arduino"""
m_Port = "/dev/ttyS0"
m_Baudrate = 9600
m_Tim... | [
"aaaathatisfouras@gmail.com"
] | aaaathatisfouras@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.