blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fad738ad7b13dcce721b2525ae36d3b0f26ae079 | 320b78882c944bad612f5da589ad6319b7339339 | /Aula22/Exercicio1.py | 7a5afcaf2b4f7ee2815ada89d6ce127101c7f91f | [] | no_license | talissad/TrabalhosPython | aed1d26b5a72b79d6b26aff9e62e7d76963ae081 | e7a890ef5695bf8eeb8929eb6fafafff4ed1b7b9 | refs/heads/master | 2022-04-10T09:49:04.749672 | 2020-02-27T14:46:20 | 2020-02-27T14:46:20 | 220,218,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # Aula 21 - 09-12-2019
# Crie uma classe cliente:
# 1) deve ter como atributos: codigo, cpf, nome, idade, sexo
# 2) como metodos: receber salario, comprar, pagar divida
# Quando recebe aumenta o dinheiro na carteira.
# quando compra aumenta os bens e diminui o dinheiro na carteira
# Se comprar e não tiver dinheiro o s... | [
"900161@proway.treina"
] | 900161@proway.treina |
31298541903089b84d357150a735501103053981 | 0a57f05221d425119cb2994c5686a95e01b33d46 | /ex21.py | 67a0f965521d5f8cce8027401d93c01786fc9214 | [] | no_license | luroto/lpthw | 371ad2de422e7656b9f18461808d28847d17971f | e89329477d0c5c5b34d7998832b395c05385876b | refs/heads/master | 2022-06-02T17:56:01.873932 | 2020-05-02T17:52:11 | 2020-05-02T17:52:11 | 260,742,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | def add(a,b):
print(f"ADDING {a} + {b}")
return a + b
def substract(a, b):
print(f"SUBSRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return (a / b)
print("Let's do some math with just functions")
age = add(3... | [
"774@holbertonschool.com"
] | 774@holbertonschool.com |
f24458a14352f36a4dc76daf6247758d8ae07d7f | d016e0c9a54e6e3d46b86894c99cc7739c02c7f5 | /tree.py | 39c72f9656aca2166fc707de71253d5a7a982770 | [] | no_license | rinkeshpanwar/datastructure | 31f25c036ac314867d3f93a1094d5232342d351b | cbd0656b163473ed8c906b539265874cf22231c9 | refs/heads/main | 2023-02-17T17:42:39.301587 | 2021-01-12T07:01:59 | 2021-01-12T07:01:59 | 328,899,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import collections
class node:
def __init__(self,data=None):
self.data = data
self.left =None
self.right = None
class tree:
def __init__(self):
self.dq = collections.deque()
def insert(self,data):
return node(data)
def inorder(self,root):
if root == None:... | [
"rinkeshpanwar1997@gmail.com"
] | rinkeshpanwar1997@gmail.com |
d952153518b3548b45a3b32e997c5a804e137594 | 08fdbaab91f447a2c290bf2d084958476ebf3919 | /project/settings.py | 21a3b809dc9fcb66df98cf6b775608385d3a946f | [] | no_license | yhoiseth/database | 057dbe987545e577455b3e596411a7c52021bc7a | 531b6e37856c1a77a3686ff7d8730c4da34340eb | refs/heads/master | 2022-04-28T20:29:00.744181 | 2019-10-26T12:59:28 | 2019-10-26T12:59:28 | 216,885,249 | 0 | 0 | null | 2022-04-22T22:38:27 | 2019-10-22T18:41:29 | Python | UTF-8 | Python | false | false | 2,345 | py | import os
from typing import List
from django_heroku import settings
AUTH_USER_MODEL = "app.User"
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = "Dummy key"
ENVIRONMENT = os.getenv("ENVIRONMENT", "production")
DEBUG = ENVIRONMENT == "development"
ALLOWED_HOSTS: List = []
INSTALLED... | [
"yngve@hoiseth.net"
] | yngve@hoiseth.net |
6a6ebe3550b44d0e3ce445ed0151ed8f95c18ec0 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.1.2/_downloads/boxplot_demo1.py | aac441baa4f86269d657f3d8b96bfebf095017f7 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 7,720 | py | """
========
Boxplots
========
Visualizing boxplots with matplotlib.
The following examples show off how to visualize boxplots with
Matplotlib. There are many options to control their appearance and
the statistics that they use to summarize the data.
"""
import matplotlib.pyplot as plt
import numpy as np
from matplo... | [
"tcaswell@gmail.com"
] | tcaswell@gmail.com |
08089a76a10f77d295414b1e754f50c25d3125b0 | 2f2d01957abfbbe3fc79d8727cf43a096cd454d8 | /for_opencv/document1_1.py | 5f47a319249173ac902793abb716595b42e9a74c | [] | no_license | bizhili/for_python | 61b26becd46e9ce519619e01d4a8525b5fa03519 | 727d6a384bc3f0af23c33643d35f5e20799d85ee | refs/heads/master | 2020-07-08T02:23:23.868222 | 2019-08-30T07:11:49 | 2019-08-30T07:11:49 | 203,539,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import time
from math import sqrt
def is_prime(n):
for c in range(2,int(sqrt(n))+1):
if n%c==0:
return False
return True if n!=1 else False
def main():
filenames=('a.txt','b.txt','c.txt')
fs=[]
for f in filenames:
fs.append(open(f,'w'))
for number in range(1,10000):
... | [
"3067842904@qq.com"
] | 3067842904@qq.com |
c256fd9a9df13486844f0267178661e718862bac | 2caa155818c373fd5d9530e761bb7636255d4588 | /python_exs_curso_em_video/ex052.py | 986413a60540b5b6f85da16b65a2665f428fc48b | [
"MIT"
] | permissive | David-Matos-Sousa/David-no-GitHub | 8f64a5713d12a76d6a288363b8ade6de79f98fca | a46e762912f869db34705905b20f8221db2c22f6 | refs/heads/master | 2022-12-25T19:48:08.945055 | 2020-10-04T16:58:51 | 2020-10-04T16:58:51 | 291,156,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | num = int(input('Write a number:'))
div = 0
for c in range(1, num+1):
if num % c == 0:
print('\033[34m', end='')
div = div + 1
else:
print('\033[31m', end='')
print('{} '.format(c), end='')
print('\n\033[m The number {} was divisible {} times'.format(num, div))
if div == 2:
print... | [
"david.matos.sousa@gmail.com"
] | david.matos.sousa@gmail.com |
e7eee4841d85a333ebb5e70c5cd6218388d11953 | 2ac0efad0ff5a1d9266119bded4a1120e6b19f1b | /Project_undefined/wechatMoney/wechat_red_envelope_2.py | d93eb0ec0b18f7699d7be3dfa32e9c942b462af2 | [] | no_license | boyac/pyUndefined | 3b91e4d1b0b8b544029ba1ffc8bc4ef0b2aa8f43 | 913d88eb0c1348d91dff025fa3b1f5643e583a75 | refs/heads/master | 2021-06-22T09:59:16.605391 | 2021-02-03T09:49:28 | 2021-02-03T09:49:28 | 62,711,768 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
__author__ = 'Boya Chiou'
import numpy as np, numpy.random
class Lucky:
"""
The user assigns a lump sum to a group red envelope, and the number of small red envelopes within it.
"""
def __init__(self, amount, n):
self.amount = amount
self.n = n
def money(self):
self.hong_bao = np... | [
"chinawhitewhy@gmail.com"
] | chinawhitewhy@gmail.com |
2a860191471fc855f28ac3836dcfbfa78f252b2e | 296d8a539b3946df0ae6d527acb407bf78e5c10c | /grammar.py | ffc89cfa2549d7d136d5bb249c7346cb18613b5f | [] | no_license | Coswold/tweet_generator | 8dc4b2b409c3b665a644e072fb6eec4d00bc869e | 19ba5ae4c98e7e9de4ad048db9d03067dea77a73 | refs/heads/master | 2023-02-24T20:39:08.126372 | 2019-07-06T21:03:12 | 2019-07-06T21:03:12 | 155,779,429 | 0 | 0 | null | 2023-02-02T06:34:03 | 2018-11-01T21:42:33 | Python | UTF-8 | Python | false | false | 201 | py | def grammar (sentence):
sentence = sentence.capitalize()
if sentence[len(sentence) - 1] == ',':
sentence[len(sentence) - 1] == '.'
else:
sentence += '.'
return sentence
| [
"studentloaner2@Admins-MacBook-Pro.local"
] | studentloaner2@Admins-MacBook-Pro.local |
afaa879df31238594f246e718dd47f1d00af9697 | 2c6678a6e10852605b1ce57e8ab5962f25806877 | /eCommerce/store/admin.py | 2c644739d7c3b813cce8c18a97191f36e0e3723f | [] | no_license | Souvikkkk7/first-ecom | ed8c4d24235aa144d79ba8ab0bee41361bec65ba | 7558373b53fd5eed9df5517dd77cc12f3c5192c3 | refs/heads/master | 2022-11-17T23:29:07.985677 | 2020-07-16T19:07:11 | 2020-07-16T19:07:11 | 280,233,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Customer)
admin.site.register(Product)
admin.site.register(Image)
admin.site.register(Order)
admin.site.register(OrderItem)
admin.site.register(ShippingAddress)
admin.site.register(Description) | [
"sdhali469@gmail.com"
] | sdhali469@gmail.com |
aff3c2c6450bef98b974e283d127f004593fee34 | db918436073a11388d9f87f71c0567a40a15ff57 | /app/__init__.py | 830f20e2be2303dae5b2101bf680549cea718f4d | [] | no_license | githubdelegate/websocket_test | 822815f411926def0a7aea8f549546bb9f373dc3 | c408c84681702d2648527530f266e3565d47d49d | refs/heads/master | 2020-03-20T08:43:52.630897 | 2018-06-26T06:09:01 | 2018-06-26T06:09:01 | 137,317,353 | 0 | 0 | null | 2018-08-21T00:33:55 | 2018-06-14T06:43:25 | HTML | UTF-8 | Python | false | false | 479 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.debug = True
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:root@127.0.0.1:3306/movie"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
db = SQLAlchemy(app)
db.create_all(app)
from app.home import home as home... | [
"ostmail@163.com"
] | ostmail@163.com |
04fbafe84494848f4aa99009abefa1c69bb5d05d | b8b6214ee3a21534d736b0c7ea42ab3d82394c15 | /python_fund/list_advanced/even_numbers.py | 3da254265d46162fd360edc7c7034dcb49940a10 | [] | no_license | calendula547/python_fundamentals_2020 | 10b232b75e4fb6e0f5a97dabf5b10d214b1e6b31 | bf735bdab22b4b2d3ea53c90786ad18051e22cb8 | refs/heads/main | 2023-04-11T23:25:16.826902 | 2021-04-28T07:18:48 | 2021-04-28T07:18:48 | 362,365,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | nums = list(map(int, (input().split(", "))))
even_nums_indices = []
for i in range(len(nums)):
if nums[i] % 2 == 0:
even_nums_indices.append(i)
print(even_nums_indices)
| [
"nevzaharieva@gmail.com"
] | nevzaharieva@gmail.com |
f9e03766b92f7594acf0b234d6939d7287936474 | f30286966b67ca71a717a702a86560a20ea0af9e | /migrations/0013_auto_20190617_1903.py | 7d8fa331043d3b7b851520bb8a1699dbfd7cecfd | [
"Apache-2.0"
] | permissive | j-ollivier/sonov-main | 9a2397bb619227d50b048a5a3f9b2a4e30f97b97 | 78123513fa73deae174363750fd64ab3e92a3d2a | refs/heads/master | 2020-03-18T03:06:33.682840 | 2019-10-20T15:49:12 | 2019-10-20T15:49:12 | 134,223,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.1.7 on 2019-06-17 17:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0012_tag_category'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='category',
... | [
"pro.jollivier@gmail.com"
] | pro.jollivier@gmail.com |
60daa405763d1b7b37c74167e6234513e70bff79 | 1d1ca8f286a49bc832745b3f50879bf2ea381e6b | /recognize.py | b57ad22dbfb02b3d71ee513fc320cc2118687ba8 | [
"Apache-2.0"
] | permissive | old-school-kid/Wavenet | f3937994d10d9fbd637bf9940b7c001f9212c87f | ada74d4752c0b35cc948723957de38bc708290a5 | refs/heads/main | 2023-06-09T21:17:06.259253 | 2021-07-08T16:25:05 | 2021-07-08T16:25:05 | 384,158,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | # -*- coding: utf-8 -*-
import sugartensor as tf
import numpy as np
import librosa
from model import *
import data
__author__ = 'namju.kim@kakaobrain.com'
# set log level to debug
tf.sg_verbosity(10)
#
# hyper parameters
#
batch_size = 1 # batch size
num_blocks = 3 # dilated blocks
num_dim = 128 # la... | [
"mishrasp393@gmail.com"
] | mishrasp393@gmail.com |
cd5164c69ee16da41cde15a50b45625ba1443c1f | 1d6c1eec6a8f6ba732c6dd5218f80403532313b8 | /nums.py | 7bbbed0312528b953279dab2feae74f5cd225730 | [] | no_license | Quitedeer/my_python | 816713a57194888f86a914a715c6e8f3e6aa9b58 | 2ac39087036400ce92c08c33c77aae1373b8e1ec | refs/heads/master | 2020-07-25T00:21:58.704160 | 2019-11-17T22:33:25 | 2019-11-17T22:33:25 | 208,097,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | s = 'В разные эпохи и у разных народов число\
Пи имело разное значение. Например,\
в Древнем Египте оно равнялось 3.1604 \
у индусов оно приобрело значение 3.162 \
китайцы пользовались числом, равным 3.1459 \
Буквенное обозначение число Пи получило только \
в 1706 году – оно происходит от начальных букв \
двух гречески... | [
"varya.dementjeva@gmail.com"
] | varya.dementjeva@gmail.com |
990775905446504fb3fa261f8eacb2b0990801a4 | 5296b6666b3401ac532e9d1f6eba6549c48295c3 | /test.py | 2c7fe45d6039908eb9bf3f8bef82eb11b2fc06b2 | [] | no_license | skotin/germ | 5a2cffdc1667808647d067e400efc4c7929e0cab | e3418cb63b8d2e1bca97368d531cf245e30635be | refs/heads/master | 2020-05-31T04:47:06.607006 | 2013-01-04T04:24:57 | 2013-01-04T04:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | __author__ = 'Serg'
import math,pygame,time
#for i in range(0,20):
# print i%3%2
a=1
b=2
def myprint(a,b):
print "a=",a,", b=",b
myprint(a,b)
start = time.clock()
for i in range(1,1000000):
t=a
a=b
b=t
end = time.clock()
myprint(a,b)
print 'Time 1: %s' % (end - start)
myprin... | [
"jetbrains@Ret.local"
] | jetbrains@Ret.local |
c8c91b8f93916d59a46e5052ed5bf42d766b5c99 | e914da03391c81b69ae47c3dfaabb119259eb66f | /aon_decoder.py | 4f5b351c967cae4c175b18aac6ed5d606fc3f548 | [] | no_license | koder-ua/python_practice | 25f67e7c2333c0f96a2a711947e87951769570db | a68b8fc9c12e841b7355c745db6d104205ea568f | refs/heads/master | 2021-01-22T04:22:58.642582 | 2015-12-15T14:16:40 | 2015-12-15T14:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Homework for Automatic Number Identification (ANI)
https://github.com/koder-ua/python-classes/blob/master/slides/pdf/FF_tasks.pdf
Slide #7
"""
def decode(string):
"""
ANI decoder:
- combine repeated characters (2333# -> 3)
- remove single characters (123... | [
"vitaliy@kulanov.org.ua"
] | vitaliy@kulanov.org.ua |
009684393084452c5b0ff73051c5f4001fc8dcf9 | f30542a38c878de60587010cfbdfbec99acd5ba3 | /program.py | b37fe7f3cfcb7ae28db9f9b0ff8725986a301065 | [] | no_license | qetennyson/WeatherClient | 249b7f250c492113831cbf6f1c34376b41084bff | 7f2653a90c531e7f2d8cd09f28b34b3ef8c83775 | refs/heads/master | 2020-03-18T04:43:51.534031 | 2018-05-21T17:34:07 | 2018-05-21T17:34:07 | 134,302,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | import requests
import bs4
import collections
WeatherReport = collections.namedtuple('WeatherReport',
'cond, temp, scale, loc')
def main():
print_the_header()
z_code = input("What zipcode do you want the weather for (ex. 42101)? ")
html = get_html_from_web(z_code)... | [
"quincytennyson8@gmail.com"
] | quincytennyson8@gmail.com |
5cd4b51f31296a5d47ca6420b2a7f882817ae9de | ed29a3788ecd26e9e16a39ea0bf69ce25d286d3d | /Codewars/level7/remove_consecutive_duplicate_words.py | 17ffdee99b6a2b82b69be24b78841b5ddfb59f00 | [] | no_license | Bradley94/misc-theory-work | c01059e22cfb0c8f1223a935b2d44f7c33ae6e7b | 7f95ba25de5326d19ce2405afd3f6fbfbddb0b79 | refs/heads/master | 2023-01-03T05:03:25.470327 | 2020-11-02T16:48:17 | 2020-11-02T16:48:17 | 295,984,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """
Your task is to remove all consecutive duplicate words from string, leaving only first words entries. For example:
"alpha beta beta gamma gamma gamma delta alpha beta beta gamma gamma gamma delta"
--> "alpha beta gamma delta alpha beta gamma delta"
"""
def remove_consecutive_duplicates(s):
results =[]
for ... | [
"noreply@github.com"
] | Bradley94.noreply@github.com |
233ed265bef7e632cc81bca6d416bb261f3e9c21 | e4689f203b51ea5f987caf3487a4dc51f770a0ae | /converter/data_check.py | 7adc87cf41f82f928e249a70f802a9399d1097e6 | [
"MIT"
] | permissive | shijun18/Spine_Seg | b93a1e4a9185b05b0cfdeaaf382b502c0e7763a5 | 90c41d8ee08235c43bd3a5236da5a0ee7066fced | refs/heads/main | 2023-06-10T11:04:43.420324 | 2021-07-04T08:00:39 | 2021-07-04T08:00:39 | 371,382,899 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import os
import numpy as np
import json
import pandas as pd
from utils import hdf5_reader
def data_check(input_path,annotation_list):
slice_num = 0
csv_info = []
class_list = []
for item in os.scandir(input_path):
csv_item = []
print(item.name)
csv_item.append(item.name)
... | [
"46990068+shijun18@users.noreply.github.com"
] | 46990068+shijun18@users.noreply.github.com |
8cc39834a3986a41c0b6c4717eda289d67aa0f2a | 7d3cb9e6ac0f2a0f217fb8ad77076fd4f719a437 | /xen_signature/apps/pdf_to_image/migrations/0003_auto_20181020_1658.py | 75cf4f4498115f51b134898cac32d0c1bc38dea3 | [] | no_license | FlashBanistan/django-xen-signature | b88b0698b00390e019ebb419d74043f1e36777ba | b390e9aa069c89021e63e41a554489ccf9d685a5 | refs/heads/master | 2020-04-02T06:11:24.486660 | 2018-10-26T17:17:20 | 2018-10-26T17:17:20 | 154,135,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Generated by Django 2.1.2 on 2018-10-20 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdf_to_image', '0002_auto_20181020_1657'),
]
operations = [
migrations.RenameField(
model_name='documentimage',
old_... | [
"FlashBanistan66@gmail.com"
] | FlashBanistan66@gmail.com |
29aa7eefb7323c5953972bcecbf05797b238b684 | e42cce21fbb3c4fe3f271c2029d9659270a968ab | /vmrunapi/vmrunapi.py | cde0c05a165dbfc2cd3c7b87f6803f601bfd2453 | [] | no_license | cloudbase/maas-hacks | d086a91338e45121dafb33734ba4977e31851dbc | 0e2cc5537ff64376505c1e9e77dcdf3657fc4d78 | refs/heads/master | 2016-09-06T13:02:15.808249 | 2014-04-30T00:24:58 | 2014-04-30T00:24:58 | 17,869,386 | 5 | 0 | null | 2014-05-06T01:23:22 | 2014-03-18T14:43:58 | Python | UTF-8 | Python | false | false | 3,400 | py | #!/usr/bin/python
import flask
import os
import re
import subprocess
import sys
if sys.platform == 'win32':
from win32com.shell import shell
from win32com.shell import shellcon
app = flask.Flask(__name__)
STARTED = "started"
STOPPED = "stopped"
def _get_matching_vmx_path(path, mac_address):
mac_address... | [
"apilotti@cloudbasesolutions.com"
] | apilotti@cloudbasesolutions.com |
c2fa064613a1f526d84a65e037a0b775ba7bfa1e | 97aa750d98b33fb015c5b01e1c9f1608d1bd2248 | /jollycoin/transaction.py | 707c60cc90ece59eb9deec3a42c0fe9fc679fa97 | [
"MIT"
] | permissive | jollycoin/jollycoin | 5e9cdc6a04e8378c67a305f475b793203aa46eb3 | 14151e4445948201bc8ab77e9a8d423ad16ae950 | refs/heads/master | 2022-01-07T06:55:00.379236 | 2019-05-23T20:00:09 | 2019-05-23T20:00:09 | 108,996,695 | 0 | 0 | MIT | 2019-05-23T20:00:10 | 2017-10-31T13:05:05 | null | UTF-8 | Python | false | false | 6,818 | py | from typing import TypeVar, Dict
from decimal import Decimal
from datetime import datetime
from collections import OrderedDict
import json
import random
from . import crypto
# we require it defined like this because of python3.6
# it will be overwritten once Transaction class is defined
Transaction = TypeVar('Transa... | [
"noreply@github.com"
] | jollycoin.noreply@github.com |
51f25d94a6156be528cb69c1e4fa12a1e9105b24 | 752914aef43ee1f486ca4d8356a4c1f26d2a00f8 | /MLPonqm7/BOB/qm7BOB/mlp_bob_formatted.py | ec1c3fdbfb714270dca1374913d6e88def44f808 | [] | no_license | vinodrajendran001/Molecules-Prediction | 75a71465126285a3034111d9904b03788bd3b463 | 8dd8798397debdde9392c5a6c2aee2dcaa921d92 | refs/heads/master | 2021-01-10T02:22:40.918540 | 2016-02-16T10:42:47 | 2016-02-16T10:42:47 | 51,827,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,775 | py | __author__ = 'vinod'
import pickle
import cPickle as cp
import gzip
import time
import numpy as np
import theano.tensor as T
import climin.stops
import climin.initialize
import climin.project
import climin.schedule
import climin.mathadapt as ma
from breze.learn.mlpbobformatted import Mlp, FastDropoutNetwork
from sk... | [
"vinodr.msec@gmail.com"
] | vinodr.msec@gmail.com |
8f01e04333af1cea09f3e51b223b8fc8dda8dd49 | 4cf04ef3c4b894270bd5ea93e8c104a08be055ef | /src/config.py | f74c386c3229cc8bca225ea4faee27a4999d20f5 | [] | no_license | CF-chen-feng-CF/yolov3.pytorch | 36df1d5827bad40da352e60252d89d9dd577e39d | a7a8a5b6b8e893651309d081fb4fcc5c4d06ce9c | refs/heads/master | 2021-05-17T19:34:23.776109 | 2019-02-21T08:31:15 | 2019-02-21T08:31:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | import os
import json
opj = os.path.join
ROOT = '/home/penggao/projects/detection/yolo3'
LOG_ROOT = opj(ROOT, 'logs')
CKPT_ROOT = opj(ROOT, 'checkpoints')
def parse_names(path):
"""Parse names .json"""
with open(path) as json_data:
d = json.load(json_data)
return d
def creat... | [
"370095872@qq.com"
] | 370095872@qq.com |
01b19daef8aab2a869f8f843620617c2c27f6912 | 529e713a78e82de2ae5d44cfb8ef209e0894d72a | /numpy-rng/arrays.py | 9dd8d7b53619dbb04a4f83b22c11f636bd268b8c | [
"MIT"
] | permissive | realpython/materials | cd2f548276be2c82f134ca03eadb1cd279e0f26e | d2d62756d3854f54a12a767f2bf9470486c0ceef | refs/heads/master | 2023-09-05T22:12:29.806738 | 2023-08-31T20:56:28 | 2023-08-31T20:56:28 | 132,374,697 | 4,678 | 6,482 | MIT | 2023-09-12T22:22:06 | 2018-05-06T20:46:18 | HTML | UTF-8 | Python | false | false | 145 | py | import numpy as np
rng = np.random.default_rng()
print(rng.random(size=(5,)))
print(rng.random(size=(5, 3)))
print(rng.random(size=(3, 4, 2)))
| [
"noreply@github.com"
] | realpython.noreply@github.com |
b5f2d8b366ba2b11e7364e206c5f48149a027e36 | 9596182c6505cb4b2b746b501d799eb3e083d479 | /python/PZEntityManager.py | 35f29a00d900933950167a96edb5b480db6c01f8 | [] | no_license | ColinGilbert/projectzombie | 2b55361c6f1c5d41d82d2fb03d200fd4e3be2f19 | af772cd66fabf899eb124602dcbd4e6c4a21b467 | refs/heads/master | 2021-01-22T02:07:58.275092 | 2015-04-06T00:57:57 | 2015-04-06T00:57:57 | 33,460,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | '''
Created on Jul 2, 2010
@author: gnulinux
'''
import ogre.renderer.OGRE as ogre
#from cgkit.cgtypes import vec3, quat
from PZEntity import Entity
import numpy as np
from array import array
from PFieldPathFinding import PFieldPathFinder
import copy
class EntityManager():
'''
classdocs
''... | [
"llwijk@200bf698-8c57-11dd-a017-db29c870d619"
] | llwijk@200bf698-8c57-11dd-a017-db29c870d619 |
57c5f0267b758e4eb4c42389e10c758178243ed3 | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/models/networks/discriminators/patch_dis.py | 83491547d5a6977f9e719ae8d16041dd07558ae4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 2,757 | py | # Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved.
import torch
import torch.nn as nn
import functools
class PatchDiscriminator(nn.Module):
"""Defines a PatchGAN discriminator"""
def __init__(self, input_nc, ndf=32, n_layers=3, max_nf_mult=8,
... | [
"liuwen@shanghaitech.edu.cn"
] | liuwen@shanghaitech.edu.cn |
6609cf56139197e5b6ce8b7736b492dc732cad8d | 6c94a71b2e2757fd78cb0f78f00d6b656a474d7c | /2-6.py | 5a44fc105e90c84c760702315118475ec69dbfda | [] | no_license | albastienex/TEST | 23429304aac7d6eef444a9fecc9ecb4b22919b1a | 9c28df7d0adf39afeb74c742326451afb711b916 | refs/heads/master | 2023-03-01T09:14:21.804490 | 2021-01-30T07:08:20 | 2021-01-30T07:08:20 | 332,668,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | a=1.79
a=float(input())
print(int(a*10)%10)
#print(int(float(input()) * 10) % 10) | [
"a980364@gmail.com"
] | a980364@gmail.com |
e0a7315e974496146f931f1dccb8aff89ce1264d | 1ca94f20401cc0bd33a7a935dea2f3c66776dbe4 | /users/models.py | b8680d9a1d986368544da5d9676214693646fa7a | [] | no_license | liangsongyou/news-18 | 468d06a854e3bf6b5389e6efbb2b1a812d45fef6 | 45619e32d7f950d75949912ee8c570903f6c39f3 | refs/heads/master | 2020-04-11T15:59:26.136085 | 2018-12-15T13:54:16 | 2018-12-15T13:54:16 | 161,909,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
age = models.PositiveIntegerField(default=0)
| [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
267fe225eba8e89d2d695df128a07d16d65a1f14 | 168322e08da047df57a0ea5dbecf985ee63e94a8 | /.~c9_invoke_t4F4Zb.py | a359c8dfeea3764b101c63ac100a0c2f930038ec | [] | no_license | SteveJerettMcQueen/recordtransactions | 286a4f0b4d8bb99e119864b1c9690eb730f131b9 | ce20e7c67885f6d30247957abb91d025988e652d | refs/heads/master | 2021-09-06T10:41:47.529056 | 2018-02-05T17:29:27 | 2018-02-05T17:29:27 | 112,973,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | import numpy as np
import pandas as pd
import matplotlib as mpl
mpl.use('agg')
import matplotlib.pyplot as plt
plt.style.use('seaborn-darkgrid')
import matplotlib.dates as mdates
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
import seaborn as sns
import earnings as ear
from util import to_p... | [
"sjmsj1321@yahoo.com"
] | sjmsj1321@yahoo.com |
ac134464a47b592c7910c67633b8e7a152effe85 | 0c91c7415e7c6dec237c60283e23abcc7b797fe1 | /python/python-practice/call_func.py | e8a688664e0223dd6ce0ce6ee5c647e5ad2cfe35 | [] | no_license | bookpark/Fastcampus | ac6c1280e0c91d33942717a50a52083284cf410b | 5eea00aa5bd41d1a7da75995899c05516a5f235c | refs/heads/master | 2018-07-11T08:38:59.633991 | 2018-06-01T08:02:17 | 2018-06-01T08:02:17 | 104,309,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def print_func():
print('call func')
def execute(f):
f()
print(print_func)
print(print_func())
def call_string():
return 'call string'
def capital(f):
capitalize.f()
print(execute)
| [
"bkbkgg@gmail.com"
] | bkbkgg@gmail.com |
06a59e32f037c215fdd5e541b97856291bb4a2c7 | fded1e6c9cdd64bd96f0bad1d2877a65a0202631 | /src/simulacra/cluster/__init__.py | 4c576ebc5c4b160c199211499b0c315b87a4a462 | [
"MIT"
] | permissive | johnvonlzf/simulacra | 46100c33be6992b1f45d7272884689579c28bd37 | b89fd0abf59debf077a4ce4cc46d5e0c58f53b4d | refs/heads/master | 2022-01-23T23:04:08.191552 | 2018-10-14T15:53:23 | 2018-10-14T15:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from .interface import *
from .job_creation import *
from .processing import *
| [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
2cb549fab7ccf5db93a112f7980fa14fbc3ffbd0 | 8e7e51ff8b9c1103d10aa86c3d1cb446cfb25e4c | /djeniesecurity/djeniesecurity/urls.py | c409e1093e267c2e36d190bdc95028974c4ec905 | [] | no_license | huogerac/modulo4 | b2c6e07f5e2928182a03edac503d0a4468736007 | b30e056fb5a4703255982a349ed184beaea010fd | refs/heads/master | 2021-01-17T21:25:03.926382 | 2013-09-23T10:21:51 | 2013-09-23T10:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'djeniesecurity.views.home', name='home'),
# url(r'^djeniesecurity/', include('djeniesecurity.foo.urls')),
# Uncomment the admin/doc line below... | [
"huogerac@gmail.com"
] | huogerac@gmail.com |
435b0627724efbcd7a0b660dfb6a13edf64dd46d | 93a56f93e547153d9664bb31124925fdda4e6780 | /dj_test1/dj_test1/wsgi.py | 692b1d642989fb05ea12c7b9d2205b2177cd6143 | [] | no_license | weizhibing/python_djangoPro | e0191eadd2c2e022c802178b45e3709b7c3c061a | e0f32cee023574861124b9794a31e5b555daa0d2 | refs/heads/master | 2020-05-17T09:46:00.990354 | 2019-04-26T14:26:08 | 2019-04-26T14:26:08 | 183,641,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
"""
WSGI config for dj_test1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.enviro... | [
"noreply@github.com"
] | weizhibing.noreply@github.com |
cb613a9a3f6aa424cb036ac23144bd0df777b427 | e7422eae5799add31d929029cf71b4045a412dbd | /CG/lab2/lab2.py | 40e8cf9dd59dc41fd4068b6cf99e75f2ea71bb07 | [] | no_license | hhhhhhhhah/CG | a1edf5a0ac5b5b1754da231070026ae96e32e5ca | 5adb2d1c19f14101b68182e530654845cc80ea8b | refs/heads/master | 2021-08-31T23:42:50.556380 | 2017-12-23T14:56:38 | 2017-12-23T14:56:38 | 105,590,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection
import numpy as np
a = 1
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.axis('off')
# Вершины клина
v = np.array([[a, a, 0], [-a, a, 0], [-a, -a, 0], [a, -a, 0], [0, 0, -2*a/np.sqrt(2)], [... | [
"filbaun@gmail.com"
] | filbaun@gmail.com |
2b1327c03bb9c5dc46f3c52af92183372bce9d3b | cc088b4cf927a0918a6187ac98c42e526d5da2d7 | /utils/utils.py | aabc68c0cf0a55eba87af60e5e5ab469c4bcc97a | [
"MIT"
] | permissive | hajungong007/SPRNet | e7a4274ea74b9dc99e2217088766b6988ea44b23 | 92bcbeedcd1ae9a3a1e9e9669a06998b78648465 | refs/heads/master | 2023-01-21T18:01:04.425289 | 2020-12-04T04:36:56 | 2020-12-04T04:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | import os
import numpy as np
import torch
import math
import cv2
import torchvision.transforms.functional as F
irange = range
def make_grid(tensor, nrow=8, padding=2,
normalize=False, range=None, scale_each=False, pad_value=0):
"""Make a grid of images_l1loss_ssim.
Args:
tensor (Tenso... | [
"nglequocviet@gmail.com"
] | nglequocviet@gmail.com |
b12c0fb45f697b54880348bc5234ea5e8967228d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1197.py | 1ebb841cfc54a0fc26e0f2bd3522d7dfdaa63405 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=51
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
23e1f4403f33f22267341c871867fca421ebeeac | 08b826c94a78dc1ceeba4e561237fef8cc5929f0 | /twitter_credentials.py | 42c1be1baf9a50c9c5a3b7886e06a83298b9e9bd | [] | no_license | bhadra28/Twitter_score_calculator | f9490cca28366a8c5b0bda6ae5eea82187c55442 | 8ce1a3b2ffae2489b29433f7437d93a94e248c7e | refs/heads/main | 2023-06-16T03:13:46.613237 | 2021-07-06T13:26:42 | 2021-07-06T13:26:42 | 383,467,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Variables that contains the user credentials to access Twitter API
ACCESS_TOKEN = "1395632396205268995-9CLMX3RpdybP72cJgCOS0Yq6UpcCYn"
ACCESS_TOKEN_SECRET = "a9EFJSI4SozGfGqT47N0I2uDoWKQUXFuBXYvsbWw1KF77"
CONSUMER_KEY = "b0OiZs1MrgbN51rwA8YNu8XUS"
CONSUMER_SECRET = "A2iIQFAiOZbC0LkbEvZypbK2RGGNqgnvtNMeAMbrP5VLJmRjEW"... | [
"noreply@github.com"
] | bhadra28.noreply@github.com |
c6648052d504c66fdd82e66d076da7dc9f764989 | f2828d2adf11c6e7f7050812d45d7525306cd8f3 | /Aula 1/A1Ex3.py | 2c27f681570fd06db386ddce30ec9932b306b42e | [] | no_license | VitorSRamos/IntroPython | 9384d66994977c87fda91abbcd6b52af214e7870 | 342919a89dfa1521f5a86e16b6acd87ede32c9a9 | refs/heads/master | 2020-03-30T15:19:10.583649 | 2018-10-08T02:23:03 | 2018-10-08T02:23:03 | 151,357,803 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #Exercício 3
a = 3
b = -4
c = -10
delta = (b**2)-(4*a*c)
y1 = (-b + (delta)**(0.5))/(2*a)
y2 = (-b - (delta)**(0.5))/(2*a)
print ('As raízes da função são' , y1 , 'e' , y2 ,)
| [
"noreply@github.com"
] | VitorSRamos.noreply@github.com |
d8298e301e9ebd7c818b76c18f9cf8a0e5446e36 | 559166a4eb2ae1d51a1053e5f37b08c49a2adb3e | /Interface_MAB/test2.py | f3b00531c268833b866c109c0fbf9813c15929fe | [] | no_license | joker21663/Interface_MAB | 60ec14aa62d0b26a4d37ff469c2daab8572e4e18 | 4227aa9bca9ec68069067f7d323da10992021579 | refs/heads/master | 2021-01-17T15:36:14.539302 | 2016-06-21T08:52:07 | 2016-06-21T08:52:07 | 58,457,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gtk
class TestWindow:
def __init__(self):
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
box = gtk.VBox()
button0 = gtk.Button("Test Button")
label0 = button0.get_children()[0]
label0.modify_fg(gtk.STATE_NORMAL, gtk.gd... | [
"joker@localhost.localdomain"
] | joker@localhost.localdomain |
e1241643f1fdabd9675e8ec25ea0a5b2350349a4 | 62d6a37e1fb1b224b53e14a1cf151ef0571aa20f | /tests/fixtures/tests.py | abc94a63d35f2bfe008a3e1bdcf4d4b144ec1bb5 | [] | no_license | katrid/orun | 4fa0f291a1ef43f16bc1857a170fc0b2e5e06739 | bfc6dae06182124ba75b1f3761d81ba8ca387dea | refs/heads/master | 2023-08-30T03:58:34.570527 | 2023-08-09T04:05:30 | 2023-08-09T04:05:30 | 66,562,767 | 14 | 4 | null | 2023-01-06T22:29:37 | 2016-08-25T14:01:44 | Python | UTF-8 | Python | false | false | 2,024 | py | from orun.test import TestCase
from orun.apps import apps
from orun.db import connection
class FixturesTest(TestCase):
fixtures = {
'fixtures': [
'fixtures.author.csv', 'fixtures.author.tsv', 'data.xml', 'fixtures.book.tsv', 'fixtures.book.csv',
'metadata.%(db_vendor)s.sql',
... | [
"alexandre@katrid.com"
] | alexandre@katrid.com |
e29b795b791a39c16bac4e8f849e8d67b243c733 | 18dca9a552f5aa9303536613ec39f19cebf6647c | /CreateTrainingFiles/ArxivMAG/prepare_arxiv_hd2v_file.py | b73e1d6597b04b0f270151a1756b21c7527be5e2 | [
"MIT"
] | permissive | ashwath92/MastersThesis | 9a39ed7eec825ed559d09507721c21bd12e2ab9c | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | refs/heads/master | 2021-08-16T12:01:33.282459 | 2020-06-27T16:00:16 | 2020-06-27T16:00:16 | 197,282,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,315 | py | """ Prepapres a file from Arxiv data (as well as additional mag contexts) as per the hyperdoc2vec format.
All the citation markers in the output file are MAG Ids (for the ACL papers, the mapping from ACL to
MAG can be found in /home/ashwath/Programs/ArxivCS/SQLITEDB/arxivcs_mag_mapping.sqlite3 -- table name: arxivcs_ma... | [
"ashwath92@gmail.com"
] | ashwath92@gmail.com |
ad3a293d4e7e01087f5620cbe77f946ebfbfb544 | ed4b1613c43112ed66d9017246e7862a97f25f6c | /testfrontdroana/testfrontdroana/wsgi.py | 22139567b34b4f8e49e7dfae41d7387b81aa4504 | [] | no_license | SeemaSP/sb-bootstrapfinalrepo | 9e9f1c24ec7201617081d4e578b23ce2aea813bd | 5e3deda70914aed9e5258fd125c1127c8765a5cc | refs/heads/master | 2020-07-23T07:57:26.163324 | 2016-11-15T12:57:16 | 2016-11-15T12:57:16 | 73,813,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for testfrontdroana project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"noreply@github.com"
] | SeemaSP.noreply@github.com |
d0a6d89461ffbf3a57691489e3c9c3e1b6d69ed8 | cfe1551cab9f24788dc4ee06d344e05c581c6566 | /predictvenv/Lib/site-packages/ttaa_utils/dictionaries.py | 5327e64b45730e0bb8e54daa4018fb6548504cae | [] | no_license | moshuixin/ETR_prediction | 5e38644a3760b2671dc3480794a3fb4ecdad0f45 | 17faeea197e28d8e2ce21d53caaba4c9cc3a5c52 | refs/heads/master | 2022-12-21T22:05:14.300322 | 2018-04-23T11:59:36 | 2018-04-23T11:59:36 | 130,687,314 | 0 | 1 | null | 2022-12-19T05:42:56 | 2018-04-23T11:38:29 | Python | UTF-8 | Python | false | false | 3,068 | py | """Tools made to work with dictionaries"""
class DicArrays:
"""
Basic tools to work with array of dictioanries
"""
def __init__(self, dics=(), **kwargs):
self.dics = dics
def list_key_values(self, key):
""" Returns a list that contains value=dict[key] for each dictionary
i... | [
"xinxin.yang@de.ey.com"
] | xinxin.yang@de.ey.com |
1e6895e6f359a03fff2e6129c7a5e162e1c1d48a | 4ad53199feb82d911bd2edbe0b5713da8c1909c1 | /pytablewriter/style/__init__.py | 6be6ff1844a0928139b11cb5ac086bac8216c4f9 | [
"MIT"
] | permissive | thombashi/pytablewriter | 9bf8b73da0eb18dba835e951021fd581958a4d12 | 49f9da777625a5b920c2c87c5e086d33d19a80d4 | refs/heads/master | 2023-08-19T05:13:15.333317 | 2023-07-01T08:03:47 | 2023-07-01T08:03:47 | 59,484,958 | 609 | 43 | MIT | 2021-09-20T15:26:45 | 2016-05-23T13:25:53 | Python | UTF-8 | Python | false | false | 1,006 | py | from dataproperty import Align, Format
from ._cell import Cell
from ._font import FontSize, FontStyle, FontWeight
from ._style import DecorationLine, Style, ThousandSeparator, VerticalAlign
from ._styler import (
GFMarkdownStyler,
HtmlStyler,
LatexStyler,
MarkdownStyler,
NullStyler,
ReStructure... | [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
74b92f45f67cf407365824f65209050f0db4d914 | 29ae8c6bbb81c0fe2ba958fa51ec44c373c0aa16 | /week2/cdb.py | 729536de6c0320feb5316a8075d385acfe3a31c5 | [] | no_license | evadyadko/gevpro | ba8a6e9dddd90c91c937c73ee086f3b67959ed74 | 72a0f149c5ace7680ba1340f54488c3da8a69298 | refs/heads/main | 2023-03-13T06:55:56.402150 | 2021-02-28T22:27:59 | 2021-02-28T22:27:59 | 335,079,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from xml.etree import ElementTree as ET
def get_adjectives(database_path):
tree = ET.parse(database_path)
root = tree.getroot()
adj_set = set([cid.attrib['form'] for cid in root
if 'ADJ' in cid.attrib['pos']])
return adj_set
def main():
print(get_adjectives('cdb-sample.xml'))
... | [
"evadyadko@gmail.com"
] | evadyadko@gmail.com |
5cc40f6f01d9530255a06e81239788b2eae2fb46 | 981ecc9cf59dd6f839c3e40d26601efb1d073558 | /src/face_recognition/youtube_dl/aes.py | c5bb3c4ef1561847a1025a0b35095a2224582efe | [
"MIT"
] | permissive | lodemo/CATANA | 469e0684b816f09ac74f186552b463cc77db369e | a349f460772511ccbb16429b40bfb50f774d45d4 | refs/heads/master | 2023-03-30T04:07:12.070332 | 2021-02-03T21:47:32 | 2021-02-03T21:47:32 | 102,767,095 | 12 | 6 | MIT | 2023-03-24T21:55:24 | 2017-09-07T17:36:45 | Jupyter Notebook | UTF-8 | Python | false | false | 16,123 | py | from __future__ import unicode_literals
import base64
from math import ceil
from .utils import bytes_to_intlist, intlist_to_bytes
BLOCK_SIZE_BYTES = 16
def aes_ctr_decrypt(data, key, counter):
"""
Decrypt with aes in counter mode
@param {int[]} data cipher
@param {int[]} key 16/24/3... | [
"moritzlode@gmail.com"
] | moritzlode@gmail.com |
a0115f2376d4b303c31a2fc2d41d8b84830d0916 | 710276d0c9521c4654bb163fb8ef1438bb8316cc | /setup.py | 51203bf16681c47568bbe72adddbbe4300da1b0d | [
"MIT"
] | permissive | djego/ecommerce-peru-scrap-cli | 5f4a452b5a8d1fab1d702bafffd2d1f9b81454e8 | 82ff1f91af7e105b80f30b1fd747a25ec296f2d4 | refs/heads/master | 2023-01-04T16:37:19.980907 | 2020-10-24T03:29:07 | 2020-10-24T03:29:07 | 295,941,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import setuptools
with open("readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='ecope',
version='0.1.2',
scripts=['./scripts/ecope'],
author='Diego Machaca',
author_email = 'diegomachaca@gmail.com',
url = 'https://github.com/djego/ecommerce-peru-scrap-cli',
... | [
"diego.machaca@gmail.com"
] | diego.machaca@gmail.com |
c378f62bb39cc0420ff55a8945b7cf08be9326f4 | 4facdac2e8a2be71c319cb82b0aea89783be6aa9 | /python.venv/bin/kill_instance | 0f57b88160acfb04f094de69c6198bbbd459cb7a | [] | no_license | agilebeat/BDSO-text-analysis | 1c9e44b20923d3535100ab5febf50fee620279c1 | ac961b77dc3a0ed33fe3e49597115c741d1a04e8 | refs/heads/master | 2022-02-19T20:01:51.793807 | 2019-08-26T14:11:09 | 2019-08-26T14:11:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | #!/root/bdso/python.venv/bin/python3
import sys
from optparse import OptionParser
import boto
from boto.ec2 import regions
def kill_instance(region, ids):
"""Kill an instances given it's instance IDs"""
# Connect the region
ec2 = boto.connect_ec2(region=region)
for instance_id in ids:
print... | [
"Seunghye.Wilson@agilebeat.com"
] | Seunghye.Wilson@agilebeat.com | |
004878eee5cb4cdac1571456f0170a3c5841a3bd | c67ed725f9ea58f905f3b1224010ee8f7dcc0e14 | /manage.py | a8f6c68e8abfc81c8db51d05c5f479d81742cc90 | [
"MIT"
] | permissive | gonvaled/backend-django-ember-showcase | c34fee9795b6c0af10cabc576a5706a75028f4bc | 6445e80a062dd9dfe8840c43ef45c324914144ce | refs/heads/master | 2021-01-10T10:53:55.587302 | 2016-01-07T19:57:51 | 2016-01-07T19:57:51 | 49,221,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend_django_ember_showcase.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"gonvaled@gonvaled.com"
] | gonvaled@gonvaled.com |
1c2afae869071dc954bc26d8167396d0e199b87c | 7284c72bbe38820230e1969eedda57698bad9d9d | /player.py | 0020b0f0130df25424c6181370670730b9def805 | [] | no_license | Clutterbutter/one_night_werewolf_python | 7f3fb3cda2212857251664e9cd5ee4a7d7346f21 | b7a240e75f365643bd49b0cf082c8784d2d6a3c8 | refs/heads/master | 2020-04-03T17:41:39.030224 | 2018-10-30T21:06:23 | 2018-10-30T21:06:23 | 155,455,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | #If you want to run the program, go to RUN ME
######
# This file contains the player class.
######
game_sizes = {
1 : 'one',
2 : 'two',
3 : 'three',
4 : 'four',
5 : 'five',
6 : 'six',
7 : 'seven',
8 : 'eight',
9 : 'nine',
10 : '10'
}
class Player:
def __init__(self, p... | [
"0502866@mlsd.org"
] | 0502866@mlsd.org |
63e2e817f780c3fe671c795146ef75a062a2ce01 | 23148187fbcda3dc6ec4883cc960a1c3d00f5844 | /tests/__init__.py | 7fb557f71f2819e3b27479b94bef968e28e7eae0 | [
"BSD-3-Clause"
] | permissive | yinxiaojing1/pre_epi_seizures | c1944dbd5bda82c820bccab874b67a0d4efcff31 | e4e83e10256a4ef402061ca8bcbc3331fd8fc431 | refs/heads/master | 2020-03-17T17:31:19.224073 | 2018-05-16T16:47:13 | 2018-05-16T16:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # -*- coding: utf-8 -*-
"""Unit test package for pre_epi_seizures."""
| [
"fmsargo@gmail.com"
] | fmsargo@gmail.com |
564264f489217b11582113729d08d6510332408b | 2dc2babb74118d1a4620aeb54112877bc6f44363 | /NNC.py | 7b73524071298b7f209348bd744e3da239fea5b0 | [] | no_license | zongxinwu92/stanford_cs231n_NNC | fe55871fab9833a430537a5be6cde42c5bfd99ce | cf8394bf976242b0c65237152e077752b6b71a31 | refs/heads/master | 2020-03-16T16:41:00.852364 | 2018-05-09T21:54:53 | 2018-05-09T21:54:53 | 132,799,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import numpy as np
class NearestNeighbor(object):
def __index__(self):
pass
def train(self, X, y):
'''X is N*D where each row is an example, Y is one-D of size N'''
self.Xtr = X
self.ytr = y
def predict(self, X):
'''X is X*D where each row is an example we wish t... | [
"zongxinwu@Zongxins-MacBook-Pro.local"
] | zongxinwu@Zongxins-MacBook-Pro.local |
a38f3f82f9156151b766513745c8d7a2c1d77e7c | d3df14eac415e1d593bd55cb3333a72f790caab2 | /Texy/Texy_event.py | 1eede7b78505b9116a4698ab4188df25124ff087 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | Thirsty-Robot/Texy.py-Game-Engine | 03850cbc6115e6d4c9614b3812b5da25c289ee03 | 7dce4b6ac79ecf21e7908be007919799c5382d20 | refs/heads/master | 2020-03-23T11:56:07.827300 | 2018-08-07T08:52:59 | 2018-08-07T08:52:59 | 141,527,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from colorama import *
init(autoreset=True)
def text(string):
color = Fore.WHITE + string
return color
def alert(string):
color = Fore.RED + string
return color
def notification(string):
color = Fore.YELLOW + string
return color
def emphasis(string):
color = Fore.YELLOW + Back.BLUE + string
return color
d... | [
"Thirsty-Robot@protonmail.com"
] | Thirsty-Robot@protonmail.com |
ffdd69291bd6db302ef39fc5a06f21f460375837 | 2c733aeaccae6ffb509a5b75b61fcf09252e899e | /test_server.py | 12e697853ef4dbf73eca368da645704dddc7c218 | [] | no_license | YouRancestor/WeChatGameServerTest | 7dbe71903e2959a54dad0fc4d1e309cfc022dabd | 687b610c5a2db3027fe43afbba421080da9ca834 | refs/heads/master | 2020-05-18T18:07:04.734686 | 2019-05-02T12:24:10 | 2019-05-02T12:24:10 | 184,576,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
app = make_app()
app.listen(80)
tornado.ioloop.... | [
"zyr_zyr_@sohu.com"
] | zyr_zyr_@sohu.com |
a62f1b08399dc567a10875ea06da7d1d25752cbf | 01f966d42235ec3a18609b20e0eb863d4c3f8946 | /windows_tools/office/__init__.py | 16e4179fcc34c542c00f3a120a554578e10d5924 | [
"BSD-3-Clause"
] | permissive | hpkumbhar/windows_tools | 562d8b1d1714b074f603679578665929cf7ea2b3 | 810f22038af4a6250976cd31cfcb4b85c8a79062 | refs/heads/master | 2023-08-15T15:46:32.992440 | 2021-10-11T18:14:09 | 2021-10-11T18:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of windows_tools module
"""
Microsoft Office identification
Versioning semantics:
Major version: backward compatibility breaking changes
Minor version: New functionality
Patch version: Backwards compatible bug fixes
"""
__intname__ = ... | [
"ozy@netpower.fr"
] | ozy@netpower.fr |
541093f02de52d797169a02ceaec446a12f89eb9 | 9a14c99da43b5d27f344e9dd5cd9cf88f6796268 | /Scrutiny/Dictionary/DictionaryIteration.py | f4c70ee7a6aaf31ccb4b42bd47a65c1865da45e4 | [] | no_license | ResearchInMotion/CloudForce-Python- | adb1a08aa52c7fa0140ba0ed51bc3b138d52a8a8 | a7b925e94d83712569dbb808d8aad0e6efbddf34 | refs/heads/master | 2021-01-20T11:38:40.700723 | 2018-07-28T07:30:51 | 2018-07-28T07:30:51 | 101,677,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | phonebook = {"John" : 938477566,"Jack" : 938377264,"Jill" : 947662781}
for name, number in phonebook.items():
print("Phone number of %s is %d" % (name, number))
check = {"sahil":8,"Nikki":9,"Vmal":9}
for name,number in check.items():
print("Age of %s is %d"%(name,number))
| [
"sahilnagpal@Sahils-MacBook-Air.local"
] | sahilnagpal@Sahils-MacBook-Air.local |
e6f9d1c42f6150c8c792e1f813a99f392b36ca7f | 9a80ded7514678436d20359d67a2f527bd7d81cb | /odoocms_fee/report/student_fin_report_summary_report.py | 2ffb4f774294f3c39f9a08e8591a0f8ec6c3ca40 | [] | no_license | royalline1/iiui | e84bd0c5c83085a43f26ed91c29c11023e3d0e7a | 68591ee290f6be4181ed862185fca092d487f00e | refs/heads/master | 2020-08-07T18:45:20.232881 | 2019-09-25T17:52:08 | 2019-09-25T17:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import pdb
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
from pytz import timezone, utc
import time
from odoo.http import request
import logging
_logger = logging.getLogger(__name__)
class S... | [
"farooq@aarsol.com"
] | farooq@aarsol.com |
d9164c4b3811ee68c95e494d3120e1877b63ed24 | 426ea3c0ed0e2163a7a2af2ed2ac7084779fbedf | /IDE_Ver/Tool/__init__.py | bdf4c6e71a9a542fd3ec032efc2c5b31dd44e5dc | [] | no_license | kevin910162/Perpetual-Callable-Bond-Pricing | b303ebfe6c1009d7ad342c47419721ace770ee28 | 3048ff0b301b30c66cd916afe35c556bfb6780a2 | refs/heads/master | 2020-12-05T12:30:59.502082 | 2020-02-12T04:27:13 | 2020-02-12T04:27:13 | 232,110,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from .downloadinfo import DownLoadInfo
from .functions import Functions
from .loadinfo import LoadInfo
from .plot import Plot | [
"40070418+kevin910162@users.noreply.github.com"
] | 40070418+kevin910162@users.noreply.github.com |
77d950e90b279c3c0f8a7d1aa395e6b81e1a73ab | 06c1e0add693ba6d9fa3421f6e3713ea1df47036 | /snakeskin/path_finders/__init__.py | 8a012c900caefe2b281e754cabfa768043c569a9 | [
"Apache-2.0"
] | permissive | ewanbarr/snakeskin | 95dc9069c61de60097aa78b0d68218e3ed240445 | b41a5393e9b4ab42fd6245e022dd4923be01815b | refs/heads/master | 2020-04-15T07:20:24.400522 | 2015-12-07T04:55:34 | 2015-12-07T04:55:34 | 33,218,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from base_path_finder import BasePathFinder
| [
"ewan.d.barr@googlemail.com"
] | ewan.d.barr@googlemail.com |
f91c3242a4878095551e3cadefe04006bd7cb9ca | 97f10c4614f5946fbffaf614bbdcd654156d73bd | /backend/post/models.py | a5358ebda697afb0a978af2303643e23ae4d6d02 | [
"Apache-2.0"
] | permissive | aryasoni98/Code-Kindle | 71e18a1da9bcf69be2eac168ba1c539f41ef1ebd | 856a3a5fcfe561df4d351f2a724d70f430a29954 | refs/heads/main | 2023-04-10T08:26:52.449561 | 2021-04-19T19:06:00 | 2021-04-19T19:06:00 | 358,722,732 | 0 | 0 | Apache-2.0 | 2021-04-19T19:06:01 | 2021-04-16T21:23:33 | Python | UTF-8 | Python | false | false | 205 | py | from django.db import models
# Create your models here.
class Post(models.Model):
files = models.FileField(upload_to='documents/')
uploaded_at = models.DateTimeField(auto_now_add=True)
| [
"bushra.akram999@hotmail.com"
] | bushra.akram999@hotmail.com |
a29e5f81d40ccd06b6053ab1c38c7a185c9ec5fc | 7851871aa904c8e02b88690ef4423f8d988f8a90 | /square_no_list.py | a8a23de9e4c0dfc5702f6d0c31443e03f6b7e24a | [] | no_license | sharda2001/list | 98809d9e0913adf9691523eb380fef4aa13fb703 | 40c2328e7da6dd410945e9febf767ba78f66cea1 | refs/heads/main | 2023-06-17T09:54:10.122583 | 2021-07-13T03:52:00 | 2021-07-13T03:52:00 | 377,053,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | numbers = [1, 2, 3, 4, 5]
squared_numbers = [number ** 2 for number in numbers]
print(squared_numbers) | [
"noreply@github.com"
] | sharda2001.noreply@github.com |
c4ab791f131770d16025600c9969fa275bcb485e | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/recicler/localizaciones/l10n_be_invoice_bba/__init__.py | 8c3517b22a87f1e464f6866fc7d7621f263d5a7d | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # -*- encoding: utf-8 -*-
# Part of YuanCloud. See LICENSE file for full copyright and licensing details.
# Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved.
import partner
import invoice
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
829b6ee686c41e29153cc2e3e1f700ce9f61714d | 71f13647082c9690cb56688e792734e7b09b0b7d | /data.py | 87da597195f576390e22433e4bd6a98c64e8983d | [] | no_license | anushapv2000/data_class | 3116069aef0f8feee54a1a5699884626a31d5c15 | 3eafd5c3f197a2c5265e952f1cda4213aede5d87 | refs/heads/main | 2023-07-23T06:58:41.371007 | 2021-08-31T10:02:26 | 2021-08-31T10:02:26 | 401,652,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | print('kjsadfa i')
| [
"anusha.pv@btech.christuniversity.in"
] | anusha.pv@btech.christuniversity.in |
29120f7257dfbc2ee265a054bef335380f6ebefa | dcfa5d5d731381cb109d6efbc11c83648ea4fa7e | /Scripts/ScriptsHoras/10Proyecto_spark.py | 6252912a6402aea5f802292cc0b26420cd9c26b9 | [] | no_license | srgxv1/twitchAdsStudy | 798c97252f69522e9190418c264d139ff575608d | 2d834474ffec86a0f240b417abc44415e2b567a9 | refs/heads/master | 2020-04-10T06:28:11.588293 | 2018-12-17T20:19:41 | 2018-12-17T20:19:41 | 160,855,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from pyspark import SparkConf, SparkContext, SQLContext, Row
from pyspark.sql.functions import col
import sys
conf = SparkConf().setMaster('local').setAppName('Twitch')
sc = SparkContext(conf = conf)
sqlContext = SQLContext(sc)
inputRDD = sc.textFile('10').map(lambda x: x.split('\t'))
ids = inputRDD.map(lambda p: Ro... | [
"rodrigo.manuel.perez@gmail.com"
] | rodrigo.manuel.perez@gmail.com |
8afa42adcb90a1783e1a39552cbf424e96241e96 | 593566486cb3eae8e049847fa9c78c3949a88f87 | /TodoList/views.py | 0ea095a7d9a274055812715ac1d6359d35c79870 | [] | no_license | DaKoala/Pre-Work---Todo-List | e6f13f251396d810b3804c218bf4aa5be36c1e04 | 4ac6226d983d1fe687301f68436db8222a811eb7 | refs/heads/master | 2021-01-01T18:18:59.785031 | 2017-07-25T12:40:35 | 2017-07-25T12:40:35 | 98,300,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | from django.shortcuts import render
from django.http import HttpResponse
from .forms import ToDoForm
from .models import *
import re
import datetime
# Create your views here.
def index(request):
to_do_list = ToDo.objects.all()
week_list = list()
for i in range(7):
week_list.append(datetime.date.t... | [
"noreply@github.com"
] | DaKoala.noreply@github.com |
ae825fe3516b3c4458a8137c101f289786af735c | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /src/stk/molecular/topology_graphs/cage/two_plus_four/two_plus_four.py | 80aa18537329f8d918ee7fea003280f088245115 | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | """
Two Plus Four
=============
"""
from ..cage import Cage
from ..vertices import LinearVertex, NonLinearVertex
from ...topology_graph import Edge
class TwoPlusFour(Cage):
"""
Represents a capsule cage topology graph.
Unoptimized construction
.. moldoc::
import moldoc.molecule as molecul... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
4703a772fb058f2ae5422adf59565dcc4c53ebd5 | 138a481380dae21341e5ad5f25d9f9a38451f217 | /01/1.py | 1f534b0795bbf72bad753a8817f425a14337df86 | [] | no_license | glee-/advent2020 | 456b855d008e784a1cd627dc274f2afd6ea3bd06 | acc5c9990c33c5428853e24608d542feaa42d032 | refs/heads/master | 2023-01-31T08:38:53.671050 | 2020-12-17T09:03:58 | 2020-12-17T09:03:58 | 321,848,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import sys
# two sum
f = open(sys.argv[1])
nums = []
for line in f.readlines():
nums.append(int(line.strip()))
setnums = set(nums)
for num in nums:
alt = 2020 - num
if alt in setnums:
print(num, alt)
print(num * alt)
| [
"gleeb@berkeley.edu"
] | gleeb@berkeley.edu |
a726034e9cd9ddef97e37184362bcc9a99f8446a | 525592619f62d5c782bbeac002e3472fafc05ecd | /blog_project/urls.py | 426b1b9d623fe587ed330e88b64536172a20e32c | [] | no_license | suelalleshaj/blog | eef9459568c8244f5142c9c6b6c6c3ef3bda2804 | 688158b2bf6c4f5b38f2ffd73a700a2ed953bdb4 | refs/heads/master | 2023-04-25T10:09:11.810655 | 2021-04-27T17:58:51 | 2021-04-27T17:58:51 | 362,208,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | """blog_project 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-... | [
"suelalleshaj"
] | suelalleshaj |
7fb479085e8c781abc3d68e21b41792dad0d3518 | 90e57d637193457f25faca09e3607919c79586f4 | /Text/File_reader.py | 14d6fe349581de010fc4ff32354cbe3caa33a8f2 | [] | no_license | Pelmondo/PythonPractice | eee7e04dd47d18f146280b6c216e9d44256e2083 | 72c60a978451819b1a26f07e95a8c8524c1f10b7 | refs/heads/master | 2020-05-03T04:48:27.748213 | 2019-03-29T15:33:44 | 2019-03-29T15:33:44 | 178,432,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # with open('pi_digits.txt') as file_object:
# contents = file_object.read()
# print(contents.rstrip())
file_name = 'pi_million_digits.txt'
# with open(file_name) as file_object:
# for line in file_object:
# print(line.rstrip())
with open(file_name) as file_object:
lines = file_object.readlines()
# print(line... | [
"studnetserg@gmail.com"
] | studnetserg@gmail.com |
ddb817066bd2ddac9614af88404c53d4467561fd | 015eeb251288d23a6ac2fee1c8f85a347f70b34c | /Util/Log.py | fb98fbe47e45cc004da4392df0f13137a4e9674b | [] | no_license | zhuhui2018/dataDrien | b137aaa23d7fe7d3ad9f495469be2a7044d4caaa | fb5fc725055d113a4d75a7eda81e2be78a043831 | refs/heads/master | 2022-04-21T13:38:41.288513 | 2020-04-20T12:47:21 | 2020-04-20T12:47:21 | 257,276,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #encoding:utf-8
import logging.config
from Proj_Var.Var import *
#读取日志的配置文件
logging.config.fileConfig(LogPath)
#选择一个日志格式
logger=logging.getLogger("example02")
def error(message):
#打印error级别的信息
logger.error(message)
def info(message):
#打印info级别的信息
logger.info(message)
def warning(message):
#打印wa... | [
"1137030459@qq.com"
] | 1137030459@qq.com |
2617cd1f3a647f2cf4ab00ef8bf59d44f9754cd1 | 2bfffc7aecf402e391a99118833fb392667b6665 | /cat.py | da5effe54063a959d5340a1bdb1746cc526c2d40 | [] | no_license | VladimirKozlov466/QAP_module_16 | 3064c8bb9abc47f7a2d6d4ee09cd46dca119fca0 | b84d2d90ab8f84286e258b1dbee71ffa479725b9 | refs/heads/master | 2023-07-07T22:15:34.048649 | 2021-09-03T13:26:34 | 2021-09-03T13:26:34 | 400,108,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | class Cat:
def __init__(self, name, gender, age):
self.name = name
self.gender = gender
self.age = age
def getName(self):
return self.name
def getGender(self):
return self.gender
def getAge(self):
return self.age
def pet_info(self):
return ... | [
"noreply@github.com"
] | VladimirKozlov466.noreply@github.com |
24ba9691f4135c3792fffc6b6620cd106159e6aa | ecf7adcd4d6bce51ee7c36048ed895b97b135191 | /HcalNoiseAnalyzer/config/res/HcalNoiseTree_Cosmics_v3_231228.py | b80ab8a132aa6b7077ac57c051c979573c233c2c | [] | no_license | paktinat/HCAL | 54739e72a54b870da2cbd77952c17280a86062d6 | d6a760ff66fb880146fd0f0a18f5b5791456e121 | refs/heads/master | 2016-08-03T18:39:54.885419 | 2015-12-19T08:46:50 | 2015-12-19T08:46:50 | 35,083,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,753 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: RECO --data -s RAW2DIGI,RECO --scenario cosmics --filein file:5C1B1DE5-9B38-E211-A048-001D09F24FBA.root --fileout DummyOutput.root --condit... | [
"saeid.paktinat@cern.ch"
] | saeid.paktinat@cern.ch |
0799da7f0ed0a7e68edd997eeaa9deedf6405066 | 8f70b40ef1c657ee14accfe6e2f8b1ebb1bebb7e | /schoolinfo/urls.py | e842061d58d48d531db89aafe7420297d52ef38e | [] | no_license | TejashviVerma/School_ERP | e3d6f1aabe92167c2b55c0b1682dde505bb04edd | 11406da8b1d8701b7ea55f75c76f1cbf44a72c53 | refs/heads/master | 2023-08-03T15:10:11.481306 | 2020-09-13T18:02:40 | 2020-09-13T18:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name="addSchoolInfo"),
]
| [
"yashboura303@gmail.com"
] | yashboura303@gmail.com |
409b1cba66bea305247d7f650e6ca420be6dfcd5 | 69f6f415469bca089f6d147767c13c401f142a31 | /flywheel_cli/monkey.py | 188f2dbdf9f0eb25bcddbaedca1b47fec45f3b75 | [
"MIT"
] | permissive | amitvakula/python-cli | 8d7e34a98237680db87099aa1d72db25c8391cbb | 0bdbd39c40cdb3fe4dbd3b0cb38abbce94242dac | refs/heads/master | 2020-06-25T09:48:46.362433 | 2019-07-16T18:21:16 | 2019-07-16T18:21:16 | 199,276,371 | 0 | 0 | MIT | 2019-07-28T11:02:30 | 2019-07-28T11:02:30 | null | UTF-8 | Python | false | false | 618 | py | """This module provides system-level monkey patches as needed"""
def patch_fs():
"""On windows, python 3.6.6 os.readlink errors if passed bytes instead of a string.
This monkey-patch fixes the case where pyfilesystem uses fsencode before calling readlink.
"""
import os
if os.name == 'nt':
... | [
"justinehlert@flywheel.io"
] | justinehlert@flywheel.io |
6305425047bc6275d2a171616fbdffe8a360ec2c | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/rsb_register_shifted_register_a1.py | 584074016b2edaaf59d9ac2ff84cb51509bec935 | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 837 | py | from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.rsb_register_shifted_register import RsbRegisterShiftedRegister
from armulator.armv6.shift import decode_reg_shift
class RsbRegisterShiftedRegisterA1(RsbRegisterShiftedRegister):
@staticmethod
def from_bitarra... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
61f7cc0d8f2595e32918fd8d26d5b20f718ccaec | fd20270ef3a1b9611a4f1572318e6cdfc3e776d8 | /webapp2/user/migrations/0004_auto_20150907_0713.py | 00a34c359dfa20f0984abfad787a9200f8c2898e | [] | no_license | moment-x/f | 78ed69dc1e690f255b8be6f9e63eb5befef256ba | 0bc921ac67c06a9f9e8f44381478618aec55f10b | refs/heads/master | 2021-01-25T00:11:37.935406 | 2015-09-09T02:28:30 | 2015-09-09T02:28:30 | 42,149,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20150907_0352'),
]
operations = [
migrations.AlterField(
model_name='user',
name='... | [
"token@email.com"
] | token@email.com |
d881d475a329f313693c8425ebd4d338265f273a | d8b96536b5b7e396c04b9893af78386e92c8d587 | /snowflet/toolkit.py | d8ac700ebf23a2f01072da0030f48acb26ddc2ab | [
"MIT"
] | permissive | bluefloyd00/snowflet | 187585e656751f03fe9d906d5ad9442e74328669 | a1676158bffc5f44970845b054d1ad221e9540c7 | refs/heads/master | 2023-03-28T11:48:47.265273 | 2020-07-01T07:02:26 | 2020-07-01T07:02:26 | 271,345,220 | 1 | 0 | MIT | 2021-03-25T23:50:40 | 2020-06-10T17:44:32 | Python | UTF-8 | Python | false | false | 6,416 | py | """ Analytics Toolkit """
import os
import re
import hashlib
import hmac
from datetime import datetime, timedelta
import logging
import logging.config
import nltk
import pandas as pd
import yaml
def read_yaml_file(path_to_file):
""" Loads YAML file as a dictionary.
Arguments:
- path_to_file (string): path... | [
"noreply@github.com"
] | bluefloyd00.noreply@github.com |
1460b3e9fde82391611fff364e1feede93cbbc11 | 28dce7cced29b2870e88535e4b0f6f9cbb02d746 | /task_18/get_data.py | 9a132fd6e09428bf5728f96570ac202818e56cca | [] | no_license | kuzzzko/python | d12f3721c9012bdfc16d85dde1ccf442542c2eed | 6be15e9f53a26b8305e3b91eaf97963fff676383 | refs/heads/master | 2020-04-22T05:46:29.822390 | 2019-04-20T19:40:31 | 2019-04-20T19:40:31 | 170,167,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
import sqlite3
import sys
def output_with_2args(keys,cursor_obj):
for row in cursor_obj:
for k in keys:
print('{:12}: {}'.format(k, row[k]))
print('-' * 40)
def output_with_0args(cursor_obj):
for row in cursor_obj:
print('{:2... | [
"kuzzzko@gmail.com"
] | kuzzzko@gmail.com |
8d26a6f969809cb725345cdc97e909cdc61f535b | 97a39cfdbd0ae4310eef729785630438278d3279 | /manage.py | 4dfa3b998a58a9b60a40062cf56854fe68d23419 | [
"Apache-2.0"
] | permissive | cvlucian/confidant | e9ddf15885ec6a4442422a00d7c9d2a84f8dfa20 | 8e273fb813d57ae831343f7d047b32a8f62458cb | refs/heads/master | 2021-01-13T09:37:39.757319 | 2020-09-23T14:35:53 | 2020-09-23T14:35:53 | 72,053,900 | 1 | 0 | NOASSERTION | 2020-09-23T14:36:19 | 2016-10-26T23:44:55 | Python | UTF-8 | Python | false | false | 809 | py | from flask.ext.script import Manager
import confidant.workarounds # noqa
from confidant import app
from scripts.utils import ManageGrants
from scripts.utils import RevokeGrants
from scripts.bootstrap import GenerateSecretsBootstrap
from scripts.bootstrap import DecryptSecretsBootstrap
manager = Manager(app.app)
# E... | [
"rlane@lyft.com"
] | rlane@lyft.com |
78df3320c27ab2b3e2c072df6c4e2ef16a3b7759 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1469.py | 8fbe59658076b2a46a7c77ed1bf039f34b16f0ae | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | import numpy as np
def checkWin(p):
#2 is X, 3 is O, check using the MOD method
if p == 0:
return "no"
if p % 2 == 0 and p % 3 != 0:
return 'X'
if p % 2 != 0 and p % 3 == 0:
return 'O'
else:
return 'draw'
def solve(filename):
fin = open(filename + '.in', 'r')
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8de96ffa0c89cc9d5487a55588a2927367ce0f10 | 808035dee84363d9a53f740ae2918b39f07c448e | /topics/migrations/0008_topic_created_by.py | 3417de43ed5fca3d7286843008d43429c018d14d | [] | no_license | wandeei/QA | 5f706fa8717cbab4a3bdcd210c0e8fd61e8049e2 | 8ddb60f28cdade4b6825aeadf860079888778d14 | refs/heads/master | 2021-01-22T21:33:14.852560 | 2017-03-19T01:38:28 | 2017-03-19T01:38:28 | 85,443,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-01 20:33
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"fokeleji@gmail.com"
] | fokeleji@gmail.com |
2117b794c1515992b0712439da36ddfd1ee9888c | 01be82f78a051e0fb50bc9bf4c581376536019b0 | /testdome/two_sums.py | ed4fa520d5ba8f990ec616e74470e2c79a707f53 | [
"MIT"
] | permissive | sgrade/pytest | 4aaaa2b215a685468f91390733b1d03669a3ce78 | eae5ee9dd6829d52644c4df489d5514a0e0c8728 | refs/heads/master | 2023-06-08T23:36:12.437741 | 2023-06-06T19:53:26 | 2023-06-06T19:53:26 | 124,512,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | """
Write a function that, given a list and a target sum, returns zero-based indices of any two
distinct elements whose sum is equal to the target sum. If there are no such elements,
the function should return (-1, -1).
For example, find_two_sum([1, 3, 5, 7, 9], 12) should return a tuple containing any of the followin... | [
"romankmail@gmail.com"
] | romankmail@gmail.com |
f8b31d25968d3fe677a466959b35b7d08a5de8db | e36aebe2b744e3d1105eed748f4162a59441dd6d | /0x01-python-if_else_loops_functions/6-print_comb3.py | c46681b48856916bb71cb9ba49c68b551e3b1cb4 | [] | no_license | mrfosse/holbertonschool-higher_level_programming | 98f52ddaccf3e666180b0339f79bef98b2d3702f | 4c3f1d123c4d5072b3b304e5bb714dc6b4c43324 | refs/heads/master | 2021-01-20T07:18:13.104848 | 2017-05-31T06:16:56 | 2017-05-31T06:16:56 | 78,599,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/python3
a = 0
b = 1
while a <= 9:
c = b
while c <= 9:
if a == 8 and c == 9:
print("{}{}".format(a, c))
else:
print("{}{}, ".format(a, c), end="")
c = c + 1
a = a + 1
b = b + 1
| [
"mrfosse99@gmail.com"
] | mrfosse99@gmail.com |
7adb5d9b745908f403b296e7e0549b4dd2b044dc | c8bb38197d9fd24d6c633d605a9374e28eae40c9 | /Testing/X-ray SuiteTry/views/XRS_MainView.py | 3552fa5dbb1b7dda92b97dd1a07359dd26e6437b | [] | no_license | kif/Py2DeX | d42b3ceeebc9d104df4cd2996a0170f95cee29d7 | f149e07b5b5facfb7e622866d151f384184c1bc8 | refs/heads/master | 2020-04-16T01:23:10.794126 | 2014-07-09T15:21:04 | 2014-07-09T15:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,012 | py | import sys
from PyQt4 import QtGui
from UiFiles.XRS_Main import Ui_XRS_Main
import matplotlib as mpl
mpl.rcParams['font.size'] = 10
mpl.rcParams['lines.linewidth'] = 0.5
mpl.rcParams['lines.color'] = 'g'
mpl.rcParams['text.color'] = 'white'
mpl.rc('axes', facecolor='#1E1E1E', edgecolor='white', lw=1, labelcolor='whit... | [
"clemens.prescher@gmail.com"
] | clemens.prescher@gmail.com |
aedb63d1e0dbac9808fffbec764639c2e106e2e3 | 7f0ad59f5d2e21438674362c5a1bb04f72f7b14c | /booktest/migrations/0002_auto_20190925_1832.py | d6528288a2067fa1eefdf0c77e5c0098d046c995 | [] | no_license | SHOST628/djangop1 | 1f3221b972dfccb8ea468b1c85b16426397b4cd6 | 95c3d891102d2e7431397fba479251060c64977a | refs/heads/master | 2023-04-30T02:17:37.724184 | 2019-09-28T05:14:28 | 2019-09-28T05:14:28 | 210,747,901 | 0 | 0 | null | 2023-04-21T20:37:30 | 2019-09-25T03:29:57 | Python | UTF-8 | Python | false | false | 356 | py | # Generated by Django 2.2.5 on 2019-09-25 10:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('booktest', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='bookinfo',
old_name='bititle',
... | [
"599531369@qq.com"
] | 599531369@qq.com |
0dc35183393d83eb31bf25b1f1f39d1850886c4d | 17ef1c7483843540ce4d063708afa65430b9301f | /tests/test_allocate.py | b4281fbb11694e1dbc38fd7af714e2195439f9b5 | [
"MIT"
] | permissive | CivicKnowledge/synpums | e01f8815c5fe118ec748c248b84c862a1db15a3f | dd3793388862aa7b43eee2fc2aa96fcf21014267 | refs/heads/main | 2023-01-03T09:04:37.021235 | 2020-10-31T00:17:15 | 2020-10-31T00:17:15 | 304,128,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import unittest
import warnings
import pandas as pd
import rowgenerators as rg
from synpums import *
from synpums.util import *
warnings.filterwarnings("ignore")
state = 'RI'
year = 2018
release = 5
cache_dir = '/tmp/synpums'
class TestAllocate(unittest.TestCase):
def test_basic(self):
tasks = Alloc... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
844b1e4a210ae535d99b8c29e268f0cc6c5624c4 | 145e38280b64a03c68f8c6bd293156cd06f8d149 | /time.py | 1bb03bba1dc7085ef3466e43a5cc394f537aa559 | [] | no_license | Friendktt/My-work | 21cf51509343d04fbed1d211356164a25a504c15 | a9a7143e9affec78516806086259a00f2affa9d5 | refs/heads/master | 2020-03-28T16:04:50.344455 | 2018-10-30T17:52:04 | 2018-10-30T17:52:04 | 148,657,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | """time"""
def main():
"""time"""
text = input()
num = int(input())
mounth = 'JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC'
num1 = mounth.find(text)
num2 = (num1 + num*4) % 48
print(mounth[num2:num2 + 3])
main()
| [
"noreply@github.com"
] | Friendktt.noreply@github.com |
5a5e0ce76558c3b94ad2149478844745d1f5087a | 67f19ebb1fb3189e4c2f99484c1dc13af5099edb | /wii_packages/enso/gage_don_h/gage_don_h.py | 08da11557b1626666c779f60cf484d446bd3aa80 | [] | no_license | delguoqing/PyLMPlayer | 609c4fe35e56e4ce3ce30eeb2e9244aad5ea1609 | db8a1edf70ac1c11deffddc458788b3a2c2078df | refs/heads/master | 2021-01-22T05:06:00.491732 | 2013-09-13T04:54:23 | 2013-09-13T04:54:23 | 8,878,510 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | def func0(this, _global):
this.stop()
def func1(this, _global):
this.gotoAndPlay("fever")
def func2(this, _global):
if 2 <= this.fever_gage._play_head <= 23:
this.fever_gage.gotoAndPlay("toNormal")
this.stop()
def func3(this, _global):
this.fever_gage.gotoAndPlay("toFever")
this.stop()
DATA = (
func0,
fu... | [
"delguoqing@hotmail.com"
] | delguoqing@hotmail.com |
34701cf143a4d45631f9f624420e2a494c855fec | 666dc64af3f5579dc213ac0ad9c2c36cb0a67c30 | /src/03_practitioner_bundle/10_dogs_vs_cats/crop_accuracy.py | 1cc306655316afad7fcc1c0af81f44163b8c3da3 | [] | no_license | zzingobomi/Opencv | 847e086cadb7429b1898f1a83e939d5aaeba9b5d | 8dc7692f680e84b5bfa4c41ee06251ec3190bf26 | refs/heads/master | 2023-03-03T00:48:08.923019 | 2021-02-08T06:17:14 | 2021-02-08T06:17:14 | 328,566,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | # import the necessary packages
from config import dogs_vs_cats_config as config
from pyimagesearch.preprocessing import ImageToArrayPreprocessor
from pyimagesearch.preprocessing import SimplePreprocessor
from pyimagesearch.preprocessing import MeanPreprocessor
from pyimagesearch.preprocessing import CropPreprocessor
f... | [
"zzingo5@naver.com"
] | zzingo5@naver.com |
8d13198a10bafeba6b94dad3cf02953c983de332 | 67325192c1e528a39d457f11e61b480d68826708 | /mods/mcpython/Item/gold_block.py | 248d5e0998a17f7d438e81b093ded15dc48a62bd | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from .Item import *
class GoldBlock(Item):
def getName(self):
return "minecraft:gold_block"
def getTexturFile(self):
return "./assets/textures/items/gold_block.png"
handler.register(GoldBlock)
| [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
1010ec65d867986aaaf4d6b1a73ea4d33920f131 | cc5f61369ce554106252c38d502663ba6306f65a | /albow/demo/screens/LaunchDemosScreen.py | 57b7d4f397ba9f086b51eb392a8f7e1a5ef017d9 | [
"MIT"
] | permissive | hasii2011/albow-python-3 | 884e6ef704b655e6e5a7338b25e3a2c20fda60c4 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | refs/heads/master | 2022-02-04T22:43:52.431765 | 2022-01-10T15:41:39 | 2022-01-10T15:41:39 | 182,160,833 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | py |
from typing import cast
import logging
from albow.core.ResourceUtility import ResourceUtility
from albow.core.ui.Screen import Screen
from albow.core.ui.Shell import Shell
from albow.widgets.Button import Button
from albow.widgets.Label import Label
from albow.layout.Column import Column
from albow.layout.Grid imp... | [
"Humberto.A.Sanchez.II@gmail.com"
] | Humberto.A.Sanchez.II@gmail.com |
6fb0242d3b682477d14e7b4fe0caebb5edcc2d43 | fd936777d5be7f97accdf8f12ffc5407a7614d84 | /software/openUI/OpenFrameState.py | 8e41b0fe1be1bffa0c54d28914161a436941439b | [] | no_license | GiuX/giux-openwsn-sw | 0f38f3d33b53e39811cecbf0177cfdeb16c948ea | f1e6a29747502bc34fb50908b2838cad5145344d | refs/heads/master | 2021-01-21T00:52:24.105857 | 2013-03-27T00:49:08 | 2013-03-27T00:49:08 | 10,557,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | import json
import OpenFrame
import OpenTable
import OpenGuiLib
class OpenFrameState(OpenFrame.OpenFrame):
def __init__(self,guiParent,width=None,height=None,frameName="frame",row=0,column=0,columnspan=1):
# store params
self.guiParent = guiParent
self.frame... | [
"watteyne@eecs.berkeley.edu"
] | watteyne@eecs.berkeley.edu |
5c9f2854ab21e6a4f0a2279da1cc6f59fa67e162 | acb00f2d6bd40522a7a7a3375a2138572da46533 | /games/Sokoban/screens/game.py | cccd4c9ce8a55f64b4209dc54e64e26a4ea7e499 | [] | no_license | Nonju/rcade | 377d605a2ab8188a56c63bb1a3d343a42fd2c6b5 | 7428bf1aaea95896713ec75b47f727bc9f40704c | refs/heads/master | 2023-08-07T16:23:12.882868 | 2021-09-18T22:26:42 | 2021-09-18T22:26:42 | 400,798,058 | 0 | 0 | null | 2021-09-13T18:59:55 | 2021-08-28T13:21:52 | Python | UTF-8 | Python | false | false | 8,706 | py |
import pygame
import math
import os
from enum import Enum
from constants import window
from utils import KeyState, ThrottledUpdate, Delay
from ..constants import colors
from ..states import GameState
from ..events import GOTOMENU
LEVEL_DIR = '/../levels/'
class Direction(Enum):
UP = 0
RIGHT = 1
DOWN = ... | [
"albinzon@gmail.com"
] | albinzon@gmail.com |
087bc7514170d26a886ceb157ad850b49b661a4b | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/connection_points/connection_point/endpoints/endpoint/state/__init__.py | 50aadd5a1163361e23e5c78af06fbd8a3a0a4ce6 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 30,938 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
fc3ed4e2ab098a3f20123eaa7cb3de9aef831a42 | afa6ba97f05c4c05d935fc87fec6c4457f761871 | /PythonStuff/complex/complex.py | cda2aa884cfda04fd777c88810415d694323e300 | [] | no_license | Rubalicious/PredictionProject | a23a6b6f37000de256def4ad7ff3da630d144a5c | 83b4f2037c5cb243eccb8f1f859858c6413747d4 | refs/heads/master | 2021-06-29T21:39:39.875815 | 2017-02-27T05:21:06 | 2017-02-27T05:21:06 | 35,399,016 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | from ast import literal_eval
import numpy as np
import matplotlib.pyplot as plt
import itertools, copy
def sizeof(z): return np.sqrt(z.real**2 + z.imag**2)
def map_(z, c=0): return (z)**2 + c
def to_complex(u): return np.complex(u[0], u[1])
def in_M(z):
c = copy.copy(z)
count = 0
while sizeof(z) <=2:
if cou... | [
"rabrams12@email.arizona.edu"
] | rabrams12@email.arizona.edu |
8414d656d3e0a08a8377c7717cdb4cabfe93d099 | 4598524620d159bd0d6e2fc2f390299b55ec9bc0 | /Kattis/iwannabe.py | 669ebcb61eb86585403f1d6d7ba54c0049206772 | [] | no_license | skyu0221/Kattis-UVa | a586c15851063828f8b78c66f93b833af1c27fcd | bd3a0835d4bb9a6ab50fca6e0db3c8df7cc4ed1b | refs/heads/master | 2021-08-22T17:39:57.172371 | 2021-01-13T00:15:58 | 2021-01-13T00:15:58 | 69,905,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from heapq import nlargest
n, k = input().split()
k = int(k)
data = list()
for i in range(int(n)):
data.append(tuple(map(int, input().split())))
sets = set()
for i in range(3):
sets.update(nlargest(k, data, key=lambda x: x[i]))
print(len(sets)) | [
"skyu0221@gmail.com"
] | skyu0221@gmail.com |
c2a50a2894a8886745a3b0cf6176b87cdd9ff324 | bd14c979335112b7718b0feda18ebf0e3b40fe5c | /contest_093/b_small_and_large_integers_2nd.py | 5090fc480a7ed5adb7ee90d373f591aadebb6a25 | [] | no_license | ababa831/atcoder_beginners | 22c57b15333d110126d1b1afadc0ff5e8784fc4f | 1a30882ce7f20f312045d5dc7bfaa5688cc8a88e | refs/heads/master | 2023-03-07T15:47:19.750682 | 2020-03-04T19:53:45 | 2020-03-04T19:53:45 | 143,360,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # Accepted
a, b, k = map(int, input().split())
lower_list = [i for i in range(a, a + k)]
upper_list = [i for i in range(b, b - k, -1)]
out_list = sorted(set(lower_list + upper_list))
for out in out_list:
if a <= out <= b:
print(out) | [
"flvonlineconverter@gmail.com"
] | flvonlineconverter@gmail.com |
0169933bc2e1d5109a0bc4234754bd5af1414393 | ac822274f4fb85d6429fcb668842b9a892f0cf7a | /dynamic-programming/fibonacci/computing_fibonacci3.py | e62ee9126cc8c3f76bf7c671dfd7eda4b61efbab | [] | no_license | Vonewman/algorithm_toolbox | 01738a4c56aebc1ef5e321477af1e74b55521aa0 | 1ce53c2933c6069770fbe36c5fa41d1a2b030138 | refs/heads/master | 2021-06-14T18:17:25.119585 | 2021-05-26T20:48:36 | 2021-05-26T20:48:36 | 195,592,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | """Computation of the fibonacci Number using and iterative algorithm
Time Complexity: O(N)
@AUTHOR: Abdoulaye Diallo (A.D.)"""
def fib(n):
''' (int) -> int
Return the F[n] fibonacci number which is an
>>> fib(5)
5
>>> fib(10)
55
'''
T = [None] * (n + 1)
T[0], T[1] = 0, 1... | [
"vonewman7@gmail.com"
] | vonewman7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.