blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e0d715b09ef16a51954d2c44d76ea74f7239998 | a152737aeb8900fa28a09d6eb179c747d018a23d | /byke/apps.py | 64616d4026053361cea7aef5785bb4aa6b282e83 | [] | no_license | jnm/nvb | ff12dd351cac003ff57cf1b415f118676a1fc6d6 | b60278795912de7086a15667decbde364ad2557d | refs/heads/master | 2021-01-10T09:49:54.983252 | 2016-03-06T02:10:21 | 2016-03-06T02:10:21 | 51,812,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class BykeConfig(AppConfig):
name = 'byke'
| [
"john@tmoj.net"
] | john@tmoj.net |
da8d9dcfd0eca8579bdd3850fa9e8d5aecbcb137 | 88298e1bfd85f860af9541f10581a551508a2bc4 | /sqla_mixins.py | 79f2ae44939ea3ca90305c903790c3b9421d7d3b | [
"BSD-2-Clause"
] | permissive | bboe/sqla_mixins | 3f57b4b301599e8300e1f35418a0374e3e748f18 | 416a81875d75f2da18e454bd479e44490830e58f | refs/heads/master | 2016-09-06T02:07:47.591474 | 2014-01-18T01:39:55 | 2014-01-18T01:39:55 | 5,026,249 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | import sys
from passlib.hash import pbkdf2_sha512
from sqlalchemy import Column, DateTime, String, Integer, Unicode, func
from sqlalchemy.ext.declarative import declared_attr, has_inherited_table
if sys.version_info < (3, 0):
builtins = __import__('__builtin__')
else:
import builtins
__version__ = '0.6'
cla... | [
"bbzbryce@gmail.com"
] | bbzbryce@gmail.com |
a20a7b40b54d2af4ad2695d429a65afacd91ffcb | 481f451f28d0b76a5705a577925401631b947391 | /appendAndDelete.py | 9c02cd69db6e1427e87d79a8698ceeb942b66751 | [] | no_license | ecarlosfonseca/HackerRank | a9512c4e85947895bb1fe7218e6ba16a9d40a18a | 64ec5b0524c0354d6d675eeff3a79e3beeec9d07 | refs/heads/master | 2022-11-12T11:08:39.231220 | 2020-06-26T15:22:20 | 2020-06-26T15:22:20 | 254,875,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | def appendAndDelete(s, t, k):
# Determines if string t can be transformed in string s with k amount of appends() and or removes()
cycles = min(len(s), len(t))
for cycle in range(cycles):
if s[cycle] != t[cycle]:
stop = cycle
break
else:
stop = len(s)
... | [
"ecarlosfonseca@gmail.com"
] | ecarlosfonseca@gmail.com |
5a8e921432a486312e2f8bcb492440c0fa67770c | ae0e440e3dfbea4d52f883a773203f052499f9df | /todo/admin.py | 59a15e032b74061486ec8a8e32ab5282a36052f2 | [] | no_license | pratikp676/todo-checklist | 60a98ccc687a538fff627818d60dd5cc1cb786f4 | 14a0b7397adde01738f3c563470290212c695576 | refs/heads/master | 2023-08-23T07:19:37.818491 | 2021-01-20T09:41:34 | 2021-01-20T09:41:34 | 331,258,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.contrib import admin
from .models import Todo
# Register your models here.
class TodoAdmin(admin.ModelAdmin):
readonly_fields = ('created',)
admin.site.register(Todo,TodoAdmin) | [
"pratikp676@gmail.com"
] | pratikp676@gmail.com |
b8e0bd3249af43f08fa161d7a65ca004c7b51f9c | 72b5046f9a1bf097752b3653cefba5014d01afb1 | /API/privs.py | 5c9178a7a9211a3c0324960aad6828fd85538d89 | [
"Apache-2.0"
] | permissive | IsmaeRLGV/Modular-UserBot- | 471b8fc6f0ff5c5a6d639cd9a67c3c8fb87cfed4 | e65f4001232e0748091eefc3ad85a1b8eba30c60 | refs/heads/master | 2021-01-22T04:54:08.377379 | 2014-04-21T23:37:48 | 2014-04-21T23:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,877 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import arrays,re,db,client
def IsRegister(user):
try:
InDB=re.compile(r'%s' % user, re.IGNORECASE)
except sre_constants.error:
InDB=re.compile(r'Fgt5dR5s333', re.IGNORECASE)
isRegister=False
while isRegister == False:
for i in arrays.DB_user:
if InDB.match(i[0]... | [
"IsmaeRLGV@gmail.com"
] | IsmaeRLGV@gmail.com |
c152cce695f77b2e55e1c0265c6a6bb5eeaf1ff7 | 2ce89e344da74ebaf0f3f5667c91d4b15e8d108b | /seedingFundProject/seeding_fund/apps.py | 8e16b95dfc777f009dec890b9a31e34ca63c24ca | [] | no_license | qusaiqishta/infograph | c472d6d37a99c3483fbda034426721465dfd7807 | a3996f801219d9ed2759db5fb038ba579fcc05e3 | refs/heads/main | 2023-07-27T18:26:36.936218 | 2021-09-08T12:13:01 | 2021-09-08T12:13:01 | 404,314,553 | 0 | 0 | null | 2021-09-08T12:13:01 | 2021-09-08T11:03:09 | Python | UTF-8 | Python | false | false | 155 | py | from django.apps import AppConfig
class SeedingFundConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'seeding_fund'
| [
"qeshtaqusai0@gmail.com"
] | qeshtaqusai0@gmail.com |
94cc1f4f283f3af04379dc0bfad806581e1e0337 | 52e82cd90481b2935560a681267898f1613c707f | /mbs/restore.py | abfc90daa9c712322f26884e39ffc06dd97c7b64 | [] | no_license | gregbanks/mongodb-backup-system | 41b8b2aea01e8f4a1ed330b1d90df19a890127fd | 03bf03e1e218831f097c533b6df658189d6d0469 | refs/heads/master | 2021-01-20T22:51:08.518721 | 2013-06-23T07:48:38 | 2013-06-23T07:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | __author__ = 'abdul'
from task import *
from bson.dbref import DBRef
###############################################################################
# Restore
###############################################################################
class Restore(MBSTask):
def __init__(self):
# init fields
M... | [
"abdul@mongolab.com"
] | abdul@mongolab.com |
db229c44bf419a6f4cffc081ccc2674a702177f6 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2005/py01/day05/stack.py | e086afc28450f9e0d7589e037f8359e59420a056 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | stack = []
def push_it():
"用于压栈"
data = input("数据: ").strip()
if data: # 如果字符串非空
stack.append(data)
else:
print("\033[31;1m没有获取到数据\033[0m")
def pop_it():
"用于出栈"
if stack:
print("从栈中弹出了: \033[31;1m%s\033[0m" % stack.pop())
else:
print("\033[31;1m栈已经为空\033[0m... | [
"zhangzhg@tedu.cn"
] | zhangzhg@tedu.cn |
6d920157b1d0de15431a76545eb871345ec67ec6 | 5808b499777b247208dc6c964a2a94d33a0fbbf8 | /github/py_code/divideCommentsMonth.py | a83e1464532f3b5076f5bc427304c36439d724a4 | [] | no_license | jiangsha1007/repoHealth | 82eb723a7d65574cdac7b824149a45421e74b320 | 32f891c78cf1ebac6b7f545eb4664a4345411d28 | refs/heads/master | 2020-04-01T08:57:33.263257 | 2018-10-15T04:47:02 | 2018-10-15T04:47:02 | 153,053,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import json
import re
import os
import time
import datetime
def divideCommentsMonth(repo,endYear):
repos = repo.split(sep="/")
folder = repos[1]
cDir = "public/data/" + repo+ "/" + "comments/"
files = os.listdir(cDir)
# print(files)
pages=len(files)
print(pages)
comments... | [
"jiangsha1007@sina.com"
] | jiangsha1007@sina.com |
e14a8cf3d8884d6bf6d9581d2e4d79e26aa55349 | 4e79dcb25de7418d361e27499755aa7fdb4db3e5 | /frontend/views/views_index.py | 67fb34f016663ad6c1686724d02b7e94af385ae4 | [] | no_license | notedit/eightfoot | 95e1df2021d113dfee7e94938198628ac58f4ade | 2bf861bccb540caa86066e4d737e253623d7afdf | refs/heads/master | 2016-09-10T14:57:24.998704 | 2012-07-16T05:43:23 | 2012-07-16T05:43:23 | 4,460,610 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,541 | py | # -*- coding: utf-8 -*-
# date: 2012-05-29
# author: notedit
"""
Your time is limited, so don't waste it living someone else's life.
Don't be trapped by dogma - which is living with the results of other
people's thinking. Don't let the noise of other's opinions drown out
your own inner voice. And most important, have ... | [
"notedit@gmail.com"
] | notedit@gmail.com |
ee581ee3b57018e57d9c7839908a6a1af6ba7a3e | 2eaa44d462e916a69341a43cdeda96defea50003 | /generateFeatures.py | e2d28bf4e5ea92ba37d0eb795c36b1d06911b667 | [] | no_license | jvalici/cagoleCaca | b63475d85b0165b11be3e997593bf87f2be96394 | 3f3ae00d0d9fe5692221e14a3b5dbff2dcdc50e9 | refs/heads/master | 2021-07-16T20:44:18.733352 | 2017-10-24T22:39:25 | 2017-10-24T22:39:25 | 108,190,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import numpy as np
import pandas as pd
# generate the features for all the user with id in [currentId, nextId-1].
# dfs is the list of the three dataframes for members, transactions, user_logs, and train
def generate_features( currentId, nextId, dfs ):
ids = np.arange(currentId, nextId)
indicesLeft = [np.zeros... | [
"jvalici@gmail.com"
] | jvalici@gmail.com |
ff04bc0bf64a188a05cc335675fe9a68c84f5d29 | 6c9de356229e3f58a17ce86565874665521f27e6 | /commons/pre_process.py | 684c237d0de2f888e18e669070ff6a772a702333 | [] | no_license | LXY919/BpAnalysis | e5effc7bd1f64df4cc66de66296872e59b084288 | 947dc55efb085acf359add19f3d2461184e8474d | refs/heads/master | 2020-07-28T21:27:54.288568 | 2019-09-18T14:52:54 | 2019-09-18T14:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from wavelet import wavelet_filter
"""
2019-9-5
对数据做预处理,过程包括:
1. 去除DC分量
2. 均值+小波滤波
3. 去除基线漂移
4. 归一化波形
"""
def remove_dc(table):
# 1. 去除 DC 分量
min_ir1 = min(table.ir1)
min_ir2 = min(table.ir2)
min_red1 = min(table.r... | [
"1050748528@qq.com"
] | 1050748528@qq.com |
56d8cc7bf85206e899e481ec653355b243195992 | f2420fe7530c4db1f8e4c23358be24ae4c7e9632 | /train_VIE_SLEEP.py | 0198b6adcfdb663daac2c1ea1974a3b8036366e6 | [] | no_license | ZidiXiu/VIE | 2b7443737304af3e356b109f6a592628a3444395 | 555d4c84f15ff87ee05ab51bca6fc0fa4c4b7edf | refs/heads/master | 2022-12-29T22:18:39.257966 | 2020-10-14T00:44:09 | 2020-10-14T00:44:09 | 297,220,935 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 18,928 | py | from __future__ import print_function
import math
import os
import numpy as np
import pandas
import argparse
import torch
import torch.utils.data
from torch import nn, optim
from torch.nn import functional as F
from torchvision.utils import save_image
from torch.utils.data import Dataset, DataLoader, Sampler
from to... | [
"zx35@duke.edu"
] | zx35@duke.edu |
6195b3fe9424518c1c4191f0f89cc620ea98a3c4 | 6bbc9d1b6f031f64150bc016a536cb7d2c687032 | /yibo/tempest/tempest/api/volume/test_sf_volumes_attach.py | 323a9e53bb662a5b60c5c49e29a7610290356230 | [
"Apache-2.0"
] | permissive | laoyigrace/files | a4c91a47ba605aabfdd25abf574610ddb479969c | 1ccdab06d5800572ee0fc569c87d56332efe1538 | refs/heads/master | 2020-07-07T23:25:03.674206 | 2017-05-19T14:49:24 | 2017-05-19T14:49:24 | 66,083,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,875 | py | # Copyright 2012 OpenStack Foundation
# 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 requ... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
f8aa377e14866f71d01f1a5d33aa8abb0837f16e | 8bfd78291d7cd7ab1fd806659b027b14f02acaf5 | /deidentify/dataset/uthealth2corpus.py | 6996289429f4c63f882ae5069b3ea2a1c99a571c | [
"MIT"
] | permissive | nedap/deidentify | 586ae3b5ba05d2b5369c1296211f39945c703f65 | a827378b5b454a928cccdb8fe85d6e1ae5c26464 | refs/heads/master | 2023-07-08T22:37:32.555236 | 2022-11-09T18:26:50 | 2022-11-09T18:26:50 | 228,331,179 | 99 | 21 | MIT | 2023-06-22T15:03:00 | 2019-12-16T07:47:18 | Python | UTF-8 | Python | false | false | 3,233 | py | """Conversion script for the i2b2/UTHealth corpus."""
import glob
import os
import xml.etree.ElementTree as ET
from os.path import basename, dirname, join, splitext
from loguru import logger
from sklearn.model_selection import train_test_split
from deidentify.base import Annotation, Document
from deidentify.dataset ... | [
"jan.trienes@googlemail.com"
] | jan.trienes@googlemail.com |
a905908679bb48c05d3afd0ea70e309c1c90813d | ad82717f0cf768a2cc38851249d123771ecadb4d | /assignment3/cs231n/classifiers/rnn.py | df5d245ddaa2389c2057ecdc87d31407bc58a4a3 | [] | no_license | ssriramana93/cs231 | 8ceba9d04beaf86cd53f34400abbb28e935bf098 | eb9b0b7c5137b776647bd126afc9dd7241952631 | refs/heads/master | 2021-07-06T10:15:04.074385 | 2017-09-30T22:45:35 | 2017-09-30T22:45:35 | 103,793,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,275 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.rnn_layers import *
class CaptioningRNN(object):
"""
A CaptioningRNN produces captions from image features using a recurrent
neural network.
The RNN receives input vectors of size D, has... | [
"raminmyst@gmail.com"
] | raminmyst@gmail.com |
d7ce72f83a50a569a7db3d1cba0ef7e47f409d52 | c3d2f02daf1dbfb90817bab822177bceec1cc9e3 | /spm/kkk.py | 03aa97a304c204a102ac842d41c5e440d26edbf2 | [] | no_license | KAYDEEP/Stock-prediction | a40b8b63b907a1a982345a61b1eeb04a55a27603 | 349bfb944f6da051ee04dac276269323c3d5347b | refs/heads/master | 2020-06-04T08:03:51.655240 | 2019-06-29T13:56:16 | 2019-06-29T13:56:16 | 191,937,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py |
import csv
import numpy as np
from sklearn.svm import SVR
import matplotlib.pyplot as plt
plt.switch_backend('TkAgg')
dates = []
prices = []
def get_data(filename):
with open(filename, 'r') as csvfile:
csvFileReader = csv.reader(csvfile)
next(csvFileReader) # skipping column names
for row in csv... | [
"+KAYDEEP@users.noreply.github.com"
] | +KAYDEEP@users.noreply.github.com |
cfc51e09dfdf342ebdea407d83179772f132b123 | 122ba27afaab4b2f909b1b23d3020506cbc1b356 | /setup.py | e2660a9046ea37653cc4e43cc733bb21c331a56a | [
"MIT"
] | permissive | lukasturcani/molder | 5f018c159f1cb0813249b61056f6a9fe4d8c1474 | a5a3e8e3958dd0daa83576ec7a21cfc73f5b75d2 | refs/heads/master | 2021-01-01T04:53:19.144138 | 2019-01-26T22:35:28 | 2019-01-26T22:35:28 | 90,673,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from distuils.core import setup
setup(
name='molder',
version='1.0',
description='A molecular data collection web app.',
author='Lukas Turcani',
url='https://www.github.com/lukasturcani/molder',
packages=['molder'],
install_requires=['flask']
)
| [
"lukasturcani93@gmail.com"
] | lukasturcani93@gmail.com |
640d8615e3a22c8ea6c8ab5407cbaf849441e260 | 192c001fa61d30a3d04c4b6e6ec37c680e7f4b5f | /trunk/AdditionalPlugIns/VtkWindow/VtkWindow/Helpers.py | 34574bf57692cbeb7aaab633a9d215b0cac690c6 | [] | no_license | BackupTheBerlios/simuvis4-svn | a9ee1d9d3df2ddc319ea33a56b2bed2197b82639 | df38c6205dcd37e005142e70d1cec9b4a541761e | refs/heads/master | 2021-01-22T04:49:19.550943 | 2009-09-12T20:38:51 | 2009-09-12T20:38:51 | 40,748,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # encoding: utf-8
# version: $Id$
# author: Joerg Raedler <jr@j-raedler.de>
# license: GPL v2
# this file is part of the SimuVis4 framework
# FIXME: old SimuVis code
import math
class RgbCalculator(object):
"""calculates an rgb pattern for a value"""
def __init__(self, min, max):
self.setMinMax(... | [
"jraedler@6b4c185e-cb43-0410-a2ac-e70e11b4cc95"
] | jraedler@6b4c185e-cb43-0410-a2ac-e70e11b4cc95 |
684f32296e32278604c5960ca9e11ddffe578e78 | 5c58b90e9a735b7ee779339ea417e913eebe83bf | /vocab.py | e2ba6aca827a36b82c1bc73d44fe70b176a11320 | [] | no_license | RuixinGui/XCS224N-A5-master_fixed | 1a98eff4c7eddc56c067e63b67b73c93b0ee17e0 | 951512e66e265642b411eeeb2321ac6709b828b3 | refs/heads/main | 2023-01-24T12:50:38.558487 | 2020-11-29T00:12:52 | 2020-11-29T00:12:52 | 316,846,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,612 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Usage:
vocab.py --train-src=<file> --train-tgt=<file> [options] VOCAB_FILE
Options:
-h --help Show this screen.
--train-src=<file> File of training source sentences
--train-tgt=<file> File of training target sentences
... | [
"noreply@github.com"
] | RuixinGui.noreply@github.com |
4b03c42aaa7425a6b379ca6b3096c3dd1dd205e0 | d56bf627aa5eb674efe4052ae7d42f4e5a24f3c1 | /pset9/application.py | d8901ab7c3fab8e55d90af32db59ea7567f293d1 | [] | no_license | mido3ds/CS50-Psets | 20e620490a379200f0f8e7445f73a3b679e223e7 | d6702f3b3db5ef890e0bd3bcee27a5cdfa011a81 | refs/heads/master | 2020-05-30T07:14:22.230830 | 2017-02-17T19:38:11 | 2017-02-17T19:38:11 | 69,060,775 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,456 | py | from cs50 import SQL
from flask import Flask, redirect, render_template, request, session, url_for
from flask_session import Session
from passlib.apps import custom_app_context as pwd_context
from tempfile import gettempdir
from random import randrange
from os import urandom
from datetime import datetime
from subproces... | [
"mido3ds@gmail.com"
] | mido3ds@gmail.com |
c027acb5823d8bb3e393791fb8b39074ba6f2175 | a1903bad5a9a5b42214a27d07cf5eb01845b7cbd | /dashboard/apps/utilities/urls.py | 4294e497acfc40c6f004c8e64cd2cd773069b400 | [] | no_license | aderraik/Dashboard-with-Django-and-Bootstrap | a877cb7d01640e0908323f83c22e5a4ee46fd759 | 97fdc8bef05517a57032542decc11f07025a0233 | refs/heads/master | 2022-12-11T13:11:19.813025 | 2020-08-31T22:47:29 | 2020-08-31T22:47:29 | 287,655,630 | 1 | 0 | null | 2020-08-15T01:23:24 | 2020-08-15T01:23:23 | null | UTF-8 | Python | false | false | 693 | py | from django.urls import path
import dashboard.apps.utilities.colors.views as ColorsViews
import dashboard.apps.utilities.borders.views as BordersViews
import dashboard.apps.utilities.animations.views as AnimationsViews
import dashboard.apps.utilities.others.views as OthersViews
app_name = 'utilities'
urlpatterns = [... | [
"rgoestenmeier@via-internet.de"
] | rgoestenmeier@via-internet.de |
0177cf4f3dd6a5080a474d6ba3e640c1e74e6855 | d99c6fbd5e602bb9d475fe5db5cac71e78a82399 | /seq_func_review.py | 28b611700e9bd4f97c3799f3f7a07549886e31f1 | [] | no_license | kjhjh04003/Python-Review | f435e80239ba4ec9d46beca061391588560d4022 | 9b5dcb8da3b422d5267e7f1b998d6e789d1deb26 | refs/heads/master | 2023-05-07T06:14:18.022360 | 2021-05-27T02:10:04 | 2021-05-27T02:10:04 | 370,963,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | def using_range():
# range 객체 : 범위 생성
# 순차 자료형이기 때문에 list() 사용 가능
# 인자가 1개 : 0부터 인자 경계 이전
# 실제 값은 가지고 있지 않고 필요할 때 한개씩 생성
seq = range(10) # 0~9Rkwl
print(seq, type(seq))
print(list(seq))
# 인자가 2개 : 시작경계, 끝경계
seq2 = range(2, 10) # 2~9까지
print(seq2)
print(list(seq2))
# 인자... | [
"kjhjh04003@naver.com"
] | kjhjh04003@naver.com |
3dcb1d11f5b2c28b2c3b9e83f6742c756f44fe94 | 61e358080f40545ff9b2bb0dcbd8d974c3387e65 | /venv/bin/gunicorn | 7ec12ecb5cce6b20762e22b7bdf4a0a8ec5af74d | [] | no_license | AugustLONG/goodnews | f5b652b675b9a5612049dbab4781e1c89b96bbc6 | 8e73d159f16d0cda7e64b09d92544bd3fec31dac | refs/heads/master | 2016-09-01T09:16:02.929640 | 2015-12-17T12:37:54 | 2015-12-17T12:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/zhoumiao/djangoscrapy/hacker/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"melodyres@163.com"
] | melodyres@163.com | |
574fc83dd4d87dc20f79d82e496505e6cc7fdf67 | da7afdcaa07f00b9ec6fbc6c29f87e71936f29ab | /libraries/go-stats/go_gmt.py | 06db30da517685310113f1718bc7b85fa7908be1 | [
"BSD-3-Clause"
] | permissive | geneontology/go-stats | f208ef5cd6624a88168cbcd1be90ddb782b2b39a | 89ef0e2238b16359361ed47cd938c24d526e4971 | refs/heads/master | 2023-05-25T12:00:10.057871 | 2021-08-26T19:55:23 | 2021-08-26T19:55:23 | 191,247,143 | 0 | 0 | BSD-3-Clause | 2023-05-22T22:16:42 | 2019-06-10T21:19:40 | Python | UTF-8 | Python | false | false | 8,799 | py | # This script is experimental and is used to produce GMT files out of GO terms
import sys, getopt, os, json
import go_stats_utils as utils
from obo_parser import OBO_Parser, TermState
max_rows = 10000000
select_ontology = "select?fq=document_category:\"ontology_class\"&q=*:*&rows=" + str(max_rows) + "&wt=json&fq=i... | [
"24249870+lpalbou@users.noreply.github.com"
] | 24249870+lpalbou@users.noreply.github.com |
bdc056c52547f02f6f62705b2a1968cb662b234c | 15599ccd25ed2a640ecb46518d663bebf49ef970 | /gridgeo/__init__.py | 4c0a7d38878bf1d17732e3b3f523fd2ca50c244c | [
"MIT"
] | permissive | lizferguson5/gridgeo | 452dcad56bd456166ac0b560163e467681278e94 | 5a9a8550391b06ef446c439b4b5108fd399a7c40 | refs/heads/master | 2020-03-27T12:18:57.350609 | 2018-07-19T19:59:15 | 2018-07-19T19:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from __future__ import absolute_import, division, print_function
from gridgeo.gridgeo import GridGeo
__version__ = '1.0.0'
__all__ = [
'GridGeo',
]
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| [
"ocefpaf@gmail.com"
] | ocefpaf@gmail.com |
e30245051b9e70ca5dd97f524ae45129745672b2 | 3a54f2007dd18471f589929b5fe66771b280ac4a | /Example_15.py | 28ceb5055e94bd7f6693925307652954c03aab0f | [] | no_license | OvchinnikovaNadya/coursePython1 | 512186258394828ca955ce1c5ea00944b4c756ae | 4d08f46f3134c2dc0cf2902932f99ac266eb347d | refs/heads/main | 2023-04-10T13:11:56.682348 | 2021-04-25T13:29:40 | 2021-04-25T13:29:40 | 360,199,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #Сделать int что 2 + 2 = 5
class MyInt(int):
def __add__(self,x):
return super().__add__(x+1)
y = MyInt(2)
y += 2
print(y)
#Сделать list в котором не больше 10
x = [1]
print(type(x))
class MyList(list):
def __init__(self, x):
if len(x) > 10:
raise ValueError('Длина list не мож... | [
"ovchinikova-n@mail.ru"
] | ovchinikova-n@mail.ru |
ab77e1c7361df9f59c4fd67c62d7caf5fa4abc0c | efa03e0895b32591d2debf2dcbc62d13c73a45f1 | /Projet ISN/Le Projet Final.py | 11720e5bb1c5db542bf1e56fc67462d9f5dc4e56 | [] | no_license | AlexisMalletTS2/ProjetISN2020 | 7b94022be785c2a88de8f16932cb5274ef0771d3 | 56885fdf9d43020adb33def571318aeda12b4ec7 | refs/heads/master | 2022-08-28T18:09:51.997517 | 2020-05-27T11:28:41 | 2020-05-27T11:28:41 | 266,716,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,602 | py | import tkinter as tk # le programme va aller chercher toutes les fonctions de la bibliothèque Tkinter
from tkinter.font import *
from PIL import Image, ImageTk
def deplacement(): #Tentative de fonction de déplacement d'image
canvas_dep.move(pirouette7,0,5)
de... | [
"noreply@github.com"
] | AlexisMalletTS2.noreply@github.com |
94a8d61a8ba25a18456697292d741887bcf84a6b | f660496f040b483dd46d8b154014cf4926ad2b26 | /robotics_assignments/image_processing_hw/src/image_pub.py | c17f9385138d134e2198b8b9ee2866faecabe18c | [] | no_license | ashwinj92/Duckiebot-ROS | a50224db303823b1418b043f3e3f33c18165c5dd | bda21dee9c4e09d4e0b68030ca6a92d46fddd68c | refs/heads/master | 2023-06-22T15:19:16.385936 | 2023-06-11T03:11:12 | 2023-06-11T03:11:12 | 237,695,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python
import sys
import rospy
import cv2
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
if __name__=="__main__":
if len(sys.argv) < 1:
print "ERROR incorrect number of arguments"
print "Usage: %s <image filename>" % sys.argv[0]
exit()
# get the fi... | [
"you@example.com"
] | you@example.com |
9d4df17a454b8ca07bec82a2a5327d58f338f0f6 | e0f0d6e574394f2f3de7440fa774c1e6926653fe | /si601_project_giantbomb_tssameer.py | 4ee0134073255a48eb89dce43ccb035a537ce876 | [] | no_license | sameer-t/Data_Manipulation | 1fd41c2928527ae7c164f8a94bff114b1e00ac86 | 7e87177053587bdd87e179459ce8307a25dcfc81 | refs/heads/master | 2020-04-16T17:52:30.804138 | 2014-10-29T03:49:18 | 2014-10-29T03:49:18 | 25,590,656 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import urllib2, json, re, collections, csv
from time import sleep
access_token = '628bfb5b1daf49082ccce4de40702548fdb8e3d8'
def convert(data):
if isinstance(data, basestring):
return data.encode('utf-8')
elif isinstance(data, collections.Mapping):
return dict(map(convert, data.iteritems()))
... | [
"saisameer.t@gmail.com"
] | saisameer.t@gmail.com |
677f77dbd62ba0033b6067106f9fd8d9857e1d18 | c8cf1bdacdbf6de75e61cc6a2ce8617479c19ec6 | /test/jit/test_tracer.py | 1d95dc8d0d8a4bd0fd29a4919b4bd07edc85a3d3 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Afonso-2403/pytorch | 7f5ddf8370de938045b4ec412b98bef9dfc193ed | e35e6237d24b6c96b122deb21f015c0fe3eccb13 | refs/heads/master | 2023-08-21T18:43:43.019194 | 2021-09-13T17:58:00 | 2021-09-13T17:58:00 | 363,847,561 | 1 | 0 | NOASSERTION | 2021-07-08T19:06:16 | 2021-05-03T07:16:49 | C++ | UTF-8 | Python | false | false | 87,640 | py | import unittest
import io
import os
import sys
import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable, Function
from torch.testing import FileCheck
# Make the helper files in test/ importable
pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpat... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
690cba99d52f50b437c164249f2dfb2d5f3856e7 | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /2020/Concurrency/Producer&ConsumerModel.py | 3a23d9d01fb9c1bf3a33c494fa23bed90f0dbfcb | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | from threading import Thread
from threading import Condition
from threading import Lock
from threading import current_thread
from collections import deque
import time
import random
class Solution:
def __init__(self, n):
self.cond = Condition()
self.list_item = deque()
self.curr = 0
... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
ba46ec62e8b6bd7269e47076a5906df2f7336aa0 | 8926921df76ab45f982dc74ad1a0bb9a69d162f1 | /DCF.py | f1944b872cb15ef7fb2b80f44f09444c8f32ea34 | [] | no_license | SurajKoju/Image_Processing_using_Python | 36676aecb681f580afc541ff1532b0d5cd017423 | 71824b1aeea90092d63954eca9c47cc5d3383b35 | refs/heads/master | 2022-04-09T07:27:43.285804 | 2020-02-02T04:12:17 | 2020-02-02T04:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # #discrete cosine transform
import cv2
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import Normalize
import matplotlib.cm as cm
B=8 #blocksize
fn3= '/home/koju/Desktop/Image_Processing/images.png'
img1 = cv2.imread(fn3,cv2.IMREAD_GRAYSCALE)
h,w=np.array(img1.shape[:2])//B * B
print(... | [
"noreply@github.com"
] | SurajKoju.noreply@github.com |
8970c78416509d050a786e0c4dd52eb392acd29c | 2d81f497033301046eb9f2da6835e2a812f92185 | /syde675-3b.py | 10561961ab71647301825c964d5f33dd1fb4b9c5 | [] | no_license | peterzhangboyun/feature-recognition | fa8c20184ad903b2fdf299e36cc4e1eb08869a99 | e128555a8e1f6402c955cf0fe36c0e913d7291cf | refs/heads/master | 2020-03-26T22:06:41.719605 | 2019-06-26T23:38:44 | 2019-06-26T23:38:44 | 145,432,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | from numpy import *
import numpy as np
import struct
def load_images(file_name):
binfile = open(file_name, 'rb')
buffers = binfile.read()
magic, num, rows, cols = struct.unpack_from('>IIII',buffers, 0)
bits = num * rows * cols
images = struct.unpack_from('>' + str(bits) + 'B', buffers, struct.calc... | [
"peterzhangby@126.com"
] | peterzhangby@126.com |
533bf2d662d9b4e37c86a722e3f67e70265ba6b4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /WPojigJER35bJT6YH_19.py | 81005550eb38687a8fcd86bc85eed7d403cf330e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py |
def reversed_binary_integer(num):
return int(bin(num)[2:][::-1],2)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c027ff6dbd3b65a060cbbf428beba67e46c55b97 | 8d45f303a34188316009405ca007ba5c663bfbef | /ch09/favorite_languages.py | 81f854dc0403f17d3e8205858c0e87a15d5fcff5 | [] | no_license | heyb7/python_crash_course | 4d7f45961d085e4dc9146872a651bb4cd001b663 | 04cb6c9b0c362f5db5bd208432f222edfcd65126 | refs/heads/master | 2021-09-09T10:37:38.355446 | 2018-03-15T08:57:08 | 2018-03-15T08:57:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from collections import OrderedDict
favorite_languages = OrderedDict()
favorite_languages['jen'] = "python"
favorite_languages['sarah'] = "c"
favorite_languages['edward'] = 'ruby'
favorite_languages['phil'] = 'python'
for name, langeage in favorite_languages.items():
print(name.title() + "'s favorite language is... | [
"heyanbing@emindsoft.com.cn"
] | heyanbing@emindsoft.com.cn |
b5bddfc34ba6cecc04cc3e80b8acf14dc26ed421 | d4832ac489089b4e6f9bcaa8dc57a549472e63fb | /unit_3/lecture3/lecture3/settings.py | 2f65d2f528582e40f4aefefbc1fed9d39ef8996f | [] | no_license | AuguestGao/cs50web | 1fef7d462fa6605f15d8c55ca19f4a10e0c11c9e | a938b24678176191889ca9b82a5096df76cb9602 | refs/heads/master | 2023-02-10T02:00:26.290948 | 2021-01-06T03:26:03 | 2021-01-06T03:26:03 | 312,689,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for lecture3 project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"AuLucian@users.noreply.github.com"
] | AuLucian@users.noreply.github.com |
843e886d5c65bec2a64ffc185df889da65e818c9 | 9e1b7c7a097707c5b1e8120f22e8e404f8a48158 | /src/day05.py | c05b807d1ac44020860030391421228491310d95 | [] | no_license | Jaxwood/special-palm-tree | 589a57e4748458f64725d5551f946500f9a00027 | e60f3d5bb1641b0fda766f1b99aa8cc24af0f42d | refs/heads/master | 2023-05-03T03:15:52.684355 | 2021-05-28T17:32:29 | 2021-05-28T17:32:29 | 367,483,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from typing import Dict, List, Set
def find_nice_strings(candidates: List[str]) -> int:
"""find strings that are nice"""
sum = 0
vowels = {'a', 'e', 'i', 'o', 'u'}
for candidate in candidates:
vowelCount = 0
doubleCount = 0
banned = list(filter(lambda s: candidate.find(
... | [
"jacob@lorenzen.me"
] | jacob@lorenzen.me |
eea72e4751fe69b590a5a46878ff485555074252 | 6c186657a841311aaa424e58f86280b4cd91cc78 | /20_oops.py | 8e544dd4ce8ddb518248359b12fe6da4528e1ae6 | [] | no_license | Balajikrishnan00/Python | 15c0cd18adfda0380d08dbe269b59dac8a183d64 | d3b982a533a6a8014e1cb4df83b0550b15a26428 | refs/heads/master | 2023-05-26T17:45:55.371071 | 2021-06-17T19:09:31 | 2021-06-17T19:09:31 | 360,929,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,204 | py | """
import sys
class customer:
''' This class is about bank'''
bank='Indian Overseas Bank'
def __init__(self,name,acno,blance=500):
self.name=name
self.acno=acno
self.blance=blance
print('welcome Mr.',self.name,'How can help you')
def deposit(self,amt):
self.blan... | [
"balajikrishnan00@gmail.com"
] | balajikrishnan00@gmail.com |
bdda16a27d9413491a5b1701765061540eb88330 | c39564f0b7616d697e4e7a42d8dd87238e76ae57 | /p03_Funciones/src/ej10_es_perfecto.py | 33fca835d6e1e3beb2cab29ea82d5b79f9bccee7 | [] | no_license | agarod/Programacion_Cientifica | 39181f2dcc079407ed9a807080a69295cb993dd1 | af907fee55c323862ac268390ecc268b5dabe334 | refs/heads/master | 2021-01-11T15:18:07.482967 | 2017-01-29T00:54:03 | 2017-01-29T00:54:03 | 80,322,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #!/usr/bin/python
# encoding: utf-8
import sys
'''
__author__: "Ardiel Garcia Rodriguez"
__email__: "alu0100266382@ull.edu.es"_
__numero de ejercicio__: 10
__enunciado__:Escriba una funcion que indique si un numero dado es
o no es perfcto.
__status__: "Terminado"
'''
def es_perfecto(numero):
suma... | [
"ardielgr.dev@gmail.com"
] | ardielgr.dev@gmail.com |
e7bd6a08d5b0ff56acf58ee060eb8870c0682e28 | 5fc47f29e08c036aa6d1ff9ef3def4b5e4011982 | /demo.py | 1aaef3ec4d70ee545f549d7de5e266d891929c04 | [] | no_license | theSreeRam/intensityApp | b9f8f6a904057c0158f673844e956e412f641fb6 | 3cdf2ef40a1208a5134063c1bcd6e2bf7b98b93a | refs/heads/master | 2023-01-22T16:20:58.154850 | 2020-11-26T07:58:54 | 2020-11-26T07:58:54 | 302,035,412 | 1 | 1 | null | 2020-11-18T10:35:09 | 2020-10-07T12:52:28 | Python | UTF-8 | Python | false | false | 569 | py | from tkinter import *
root = Tk()
def myClick():
myLabel = Label(root, text="Look! I clicked a button")
myLabel.grid()
print(e.get())
#first defining the widget
myLabel1 = Label(root, text="Hello World")
myLabel2 = Label(root, text="My name is Sreeram")
myButton = Button(root, text="Enter your name", padx=50, pa... | [
"panigrahi.sreeram@gmail.com"
] | panigrahi.sreeram@gmail.com |
7ad9710521fe168b6210538e9c45ef2fc1bceeb0 | 4bc1600bdb68fc7ae26a15f382f17521721c2be7 | /about_dice_project.py | 7330b10e07e6511154d0816d0477eee61a4d8d61 | [] | no_license | abhishekshahgithub/Python_2 | 923e1046408a21b81579ae439d7cdb1a722b7420 | 8a08c8520ac8d86861b62a15bd490a05900435f0 | refs/heads/master | 2020-03-20T05:07:36.953696 | 2018-06-13T11:23:57 | 2018-06-13T11:23:57 | 137,204,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
import random
class DiceSet(object):
def __init__(self):
self._values = None
@property
def values(self):
return self._values
def roll(self, n):
# Needs implementing!
# Tip: ran... | [
"noreply@github.com"
] | abhishekshahgithub.noreply@github.com |
a964f56d9cf00c52cf72e1ff825a4253e203d742 | aaff711b31dcaf59e0924a8ff2928d6ff859b4a7 | /main2.py | aa95dd857ed385b608685e42c783cce6c6d8330f | [] | no_license | harupy/kaggle-dsb2019 | abde925d0b529d07085b3010a79c56729409273d | 144d34c40200523e7263ac2c3512c15b6fa522e7 | refs/heads/master | 2020-12-26T18:22:01.285659 | 2020-01-24T08:58:23 | 2020-01-24T08:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,521 | py | import logging
import gc
import pickle
import sys
import warnings
import lightgbm as lgb
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from pathlib import Path
from typing import List
if __name__ == "__main__":
sys.path.append("./")
warnings.filterwarnings("ign... | [
"arabiannight1994@yahoo.co.jp"
] | arabiannight1994@yahoo.co.jp |
31e541aaccddff85da5d1bf271711495bf95994e | 68a3c320323f5b3f0fd8c568953c1f473f91772a | /cmds/admin/owner.py | d8e5583592cf8f63ba2524f255503c99a8bea3cf | [] | no_license | Mj11jM/Void-Bot | e9011ebed29dd49f84941174d114ca844d4e4cc4 | c24309e4ab2cd742a2e0cf5a60fe02ad18efd45b | refs/heads/master | 2023-04-01T01:46:15.009796 | 2020-08-22T20:53:42 | 2020-08-22T20:53:42 | 254,979,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,329 | py | import discord
import random
import aiohttp
import os
import cmds.utils.loader
from io import BytesIO
from bot_index import startExt, presDB, freeDB, AllLoad
from discord.ext import commands, tasks
class Owner(commands.Cog):
"""Owner Only Commands"""
def __init__(self, bot):
self.bot = bot
s... | [
"themj11jm@gmail.com"
] | themj11jm@gmail.com |
5c684988b26cbf5fdd03b0b5626cee3a1148da9a | c7be0921028d8fb471b752e3e57708c3bfdd440d | /wordgame.py | 5b4cb332ad6b08918132068cb5a876c4e40053c3 | [] | no_license | elca337/wordgame | 6c7baa4c14c614e08bf41bac1c086077bf8461e8 | 8f62d9a0af40d48a72a2ebc1d6822bc59e639799 | refs/heads/master | 2020-04-26T10:54:21.922593 | 2019-03-02T21:14:59 | 2019-03-02T21:14:59 | 173,499,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | verb = input("Please enter a verb: ")
noun = input("Please enter a noun: ")
adjective = input("Please enter an adjective: ")
print("I enjoy practice, I find it helps me to ", verb, "better.")
print("Without practice my ", noun, "would probably not even work.")
print("My code is getting more ", adjective, "every sin... | [
"noreply@github.com"
] | elca337.noreply@github.com |
34a0c47bf183c0720e16bd205cbddff72d4e149e | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2020/0320/JaeBin.py | bb5c5a4ffc160fa3f6e14a8bb84e82eddfafc43d | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 2,062 | py | # 12. 프린터
def solution(priorities, location):
answer = 0
first = priorities[0]
big = 0
stack = []
for i in range(len(priorities)):
stack.append([priorities[i], i])
if first < priorities[i]:
big = stack[i]
# big = max(stack[len(priorities)])
# print(... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
b551694fd8d3e854e5c1500fc69e605d0b90bafe | 1484709afe5cce20402a4fd348f9a3ea7ac61f87 | /CS201/Homework/Homework 2.py | 798ba26ec7ee0c16d3f413d8b1f718e6625125e2 | [] | no_license | coxl24wv/Introduction-Computer-Programming-Part1-CS201 | 5ae87845962b63e9658fffef90110cf01f467f8f | c9172fc4ac9ba941da26a9c74b6c9c90ebe3b1ff | refs/heads/master | 2020-07-05T18:31:01.651491 | 2019-08-16T13:30:50 | 2019-08-16T13:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | # Second Program/Homework 2
# Programmer Lauren Cox
# Date of last revision 15-01-2016
name = input('What is your name?')
print( name + ' ' 'loves Python.')
| [
"noreply@github.com"
] | coxl24wv.noreply@github.com |
49188fddd898ec5dea31df3dc0056aadeceb2734 | 3c0a46303746ee2349462570281dc305ebe79f0d | /src/transport_cards/migrations/0001_initial.py | 1da299bdab0bad6a0a534c411de9cd691c8c9634 | [] | no_license | devtimberg/to24 | 431eef0fd4f34b1cab243681d5f9893d97d08c85 | c4b6082f217328a9a3e463b807c9ac1f38720604 | refs/heads/master | 2020-03-08T13:01:11.098765 | 2018-04-03T23:42:32 | 2018-04-03T23:42:32 | 128,146,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,660 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-22 10:19
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):
initial = True
dependencies = [
('auth', '... | [
"devtimberg@gmail.com"
] | devtimberg@gmail.com |
a7b6e5afec9fe2d8ccf4ca906cff2d118c13692d | 4738129b25fceb5c8fdc83eebdd7621e41910230 | /miscellanea/ugly_number/python/is_ugly_number.py | 0a6fee75df8dbaf3f2775f601f2713bc1e4d86d9 | [
"MIT"
] | permissive | MDGSF/JustCoding | 43aa20773b9c8325e6ba632e9941d235e9e285aa | 2faa46323df991a12014021b49d568387a882233 | refs/heads/master | 2023-07-21T19:07:15.899019 | 2023-07-09T07:29:59 | 2023-07-09T07:29:59 | 201,714,062 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | #!/usr/bin/env python3
def is_ugly_number(num):
if num <= 0:
return False
while num % 2 == 0:
num //= 2
while num % 3 == 0:
num //= 3
while num % 5 == 0:
num //= 5
return num == 1
def main():
for i in range(10):
print(f'{i}: {is_ugly_number(i)}')
if __name__ == "__main__":
main()
| [
"huangjian@minieye.cc"
] | huangjian@minieye.cc |
2070b583b3a2cffd1e5aaa4a5458c9d7d1be3026 | 584f589b276bd9e6b6b6bad652875fa932b70b46 | /app.py | 3dcd54b3ee6ce6f19dc325563aff7fbf4c233862 | [] | no_license | velicue/contestify | 34abce3dd12501b69e88a89a9b99594a489f7eb8 | 08bf296b84050498ba279a07378fdda40e5615d8 | refs/heads/master | 2021-01-12T20:07:42.105813 | 2015-12-07T14:04:29 | 2015-12-07T14:04:29 | 44,889,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from app import app, service
service.emailService()
#app.debug = True
app.run()
| [
"mattzhang9@gmail.com"
] | mattzhang9@gmail.com |
86afb52964faf98f53393f2ec9ff86d22017d1a9 | e9fd01aaf5cd5aea0b92aa72a5652cc4b08bd26d | /TD/Idees/animation.py | de326e1c3849966e01c9dda14e4d3c93cfb19abf | [] | no_license | Costadoat/Informatique | cc45f053a66f8b4773dbabb48ce99b3323075c1c | f478327928a6c04586ca819d4c2deedac7a50efb | refs/heads/master | 2023-09-01T18:07:49.508745 | 2023-08-25T14:11:11 | 2023-08-25T14:11:11 | 39,880,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | # when we're in pylab mode, the next two imports are not necessary
# we do it here for correctness sake, iow your code will also run without pylab mode
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# gravitational acceleration on Earth in m*s^-2
g = 9.81
#g = 1.6249
# ac... | [
"costadoat@crans.org"
] | costadoat@crans.org |
63753e6623eb3fb1c72e7b10b37e8748f1af4ea6 | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/net_tools/nios/test_nios_mx_record.py | 3e120d57947e3432c7b67268436e1ef01f2de139 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
c22be5c1ca7f421ee748d71de9f1986d2efd4573 | c33007bc802a9c1f39379919f7999705bfb663c0 | /yademo/utils/text_util.py | f0e7a1b5a293e8728a2a7283cd1699bfa9605e27 | [] | no_license | Sijiu/mcrawl | 69a953a900848edc64a553dbb6a22b67f5b9c064 | cd1332e7eeaf3cb6bcb6a11914e1bfbd13df195f | refs/heads/master | 2021-01-18T11:08:26.889630 | 2016-05-25T11:40:07 | 2016-05-25T11:40:07 | 59,658,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # -*- coding: utf-8 -*-
# @author: xuhe
# @date: 15/10/29
# @description:
FONT_ZH_EN_DICT = {
"宋体": "SimSun",
"微软雅黑": "Microsoft YaHei",
"黑体": "SimHei",
"隶书": "LiS",
"幼圆": "YouYuan",
"仿宋": "FangSong",
"楷体": "KaiTi",
"华文黑体": "STHeiti",
"细明体": "MingLi",
"标楷体": "DFKai-SB",
"... | [
"mxh403@163.com"
] | mxh403@163.com |
dfedb649c95fe61715d89b2b2d28ee0d4657a49e | 72160b01d6b2fa87c6b584fe7ac4dfabba623780 | /tracking/bustersAgents.py | cf2bcd388b0654df58ed0c9edc7af3522c7ed608 | [] | no_license | mdogan13/intro-to-ai-pacman-projects | fe28a5dbb6ba6036607eff4159e11a36bd8de5cd | a619a6ade150eabc9d71f5d97ca2c370db8f4c46 | refs/heads/master | 2020-05-30T15:01:08.267941 | 2019-06-02T06:06:15 | 2019-06-02T06:06:15 | 189,808,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,356 | py | # bustersAgents.py
# ----------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkel... | [
"noreply@github.com"
] | mdogan13.noreply@github.com |
05a1b79677dcf03dd493d3d2e027c349e84bc3f6 | 37d0dd5d90c98e4d519b3b1f2e6567c24e434913 | /blog/admin.py | ce896de6aeefbebbe5f6c1d8621efec8cd6798ed | [
"MIT"
] | permissive | chnlong12/django2_DjangoUeditor | 117127be241177ede745edd505e3fb2dd308ce62 | f70f21230661a7959baf7cdfc1fd1ae665c9413c | refs/heads/master | 2020-08-09T16:40:53.464697 | 2018-04-20T04:59:14 | 2018-04-20T04:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.contrib import admin
from blog.models import *
# Register your models here.
admin.site.register(Article) | [
"740264559@qq.com"
] | 740264559@qq.com |
fa93322d25b8ce6f4e1ebd56ecf747da0d7c6261 | 715ce41725734fffd3959db8d2a32be27e2cfea8 | /evalml/automl/utils.py | 996823a5a215e1bd3552dd9eb7d6588a6029a0d5 | [
"BSD-3-Clause"
] | permissive | johnkabler/evalml | a85a26a6d734dc145d400ceab81a4ba8bc10bff6 | bd04b000fc9f8285dc7f0365051e516126dbdc8e | refs/heads/main | 2022-12-24T08:42:47.688851 | 2020-10-05T15:49:27 | 2020-10-05T15:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from evalml.objectives import get_objective
from evalml.problem_types import handle_problem_types
def get_default_primary_search_objective(problem_type):
"""Get the default primary search objective for a problem type.
Arguments:
problem_type (str or ProblemType): problem type of interest.
Return... | [
"noreply@github.com"
] | johnkabler.noreply@github.com |
4c1ac643b9852ca20c0b0471ac175c6da6c67e3c | 26087dc771fa3032c5598582ebb5aa780f5c7d7b | /doos_op.py | 9b9f498cddc35a955c48402e54ded073d3a9f500 | [] | no_license | TiemenB/Blender | 3d9c18d8104f94a2125730110fe403685c0ef982 | c4ba27144bd76f1d2cd4ac5c6c9dfb4d0b4bf997 | refs/heads/main | 2023-02-02T09:41:27.507347 | 2020-12-16T08:17:31 | 2020-12-16T08:17:31 | 321,281,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | import bpy
class MESH_OT_doos(bpy.types.Operator):
"""maak een doos met opgegeven maten"""
bl_idname = "mesh.doos"# komy in de afdeling mesh en heet planken
bl_label = "doos"
bl_options = {'REGISTER', 'UNDO'} # nodig voor menu in beeld te krijgen
# hier staan waardes die je mee kan geven
n... | [
"noreply@github.com"
] | TiemenB.noreply@github.com |
3a1c04e0ab201854b64eb7f178f6a2987750c4c6 | a9916adc07af57b01fcf7dafd8bb8e44542463a3 | /stoptraining.py | 9cbcc717657535b20901baf02bee28b6fb607e67 | [] | no_license | maxiaoyuzdz/cifar_classifier | d71d96c7a2915ef46988fcf134da8d5ad54f9165 | cafe356a4bbeddb8839f089fa1493e7b325ba090 | refs/heads/master | 2021-01-20T16:18:31.892080 | 2017-09-18T14:25:31 | 2017-09-18T14:25:31 | 95,727,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py |
import numpy as np
from logoperator import ReadAllLossLog
def main():
epoch, m, training_loss, validation_loss, training_accuracy, validation_accuracy = ReadAllLossLog('/media/maxiaoyu/data/Log/q11.log')
shouldv = 20
va = np.array(validation_accuracy)[::-1]
max_va = va.max()
# print(max_va... | [
"maxiaoyuzdz@gmail.com"
] | maxiaoyuzdz@gmail.com |
5cd808f525c720804758561dc493a8c43b1be782 | 7a19dfc7c8741e3c2e5e0c2f1b0260959c303ab4 | /scripts/artifacts/simInfo.py | c7e68494062c76df096b76f7c4aa51ee872497e5 | [
"MIT"
] | permissive | abrignoni/iLEAPP | 89735f04b96a697c16e0d2edc44d95e529c01584 | d9c43007aca17554148dbd2b0ffaad44fe3869f1 | refs/heads/main | 2023-08-08T13:36:48.234249 | 2023-08-01T20:29:17 | 2023-08-01T20:29:17 | 229,842,283 | 528 | 104 | MIT | 2023-09-12T21:45:41 | 2019-12-24T00:28:42 | Python | UTF-8 | Python | false | false | 3,756 | py | import os
import datetime
import json
import plistlib
import datetime
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, logdevinfo
def timestampcalc(timevalue):
timestamp = (datetime.datetime.fromtimestamp(int(timevalue)).strftime('%Y-... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
ab3a049774e068b3f59821b6c0194c172286ce1d | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/venv/Lib/site-packages/setuptools/_distutils/__init__.py | d1cbc7a38c1e92584848e326567b22da7d3c940f | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:969400a6147feee8560b67db484a6ce096bd5b86307b337f217fcb244b779215
size 250
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
cd5a6a8fe1ea58ecfa49c6e2ca13de97a7f9cdf4 | 543923e777241c5e27920dc3a652c28b0e916477 | /flask_mysql/validations/Recipes/flask_app/models/recipe.py | 597fc373f9eeb66926252073fa315c1d2060ab53 | [] | no_license | KaterynaShydlovska/python | b04398c5ea6f04e787cd253d807ac6d7db711153 | 34cd7b5277a6405aff55722c6da94ad065bfde19 | refs/heads/main | 2023-05-04T00:12:20.924373 | 2021-05-25T21:59:23 | 2021-05-25T21:59:23 | 363,815,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from flask_app.config.mysqlconnection import connectToMySQL
from flask import flash
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class Recipes:
def __init__(self, data):
self.name = data['name']
self.description = data['description']
self.instruction... | [
"katerynashydlovska@Katerynas-MacBook-Air.local"
] | katerynashydlovska@Katerynas-MacBook-Air.local |
03360380c64760cca86dce93a18d862111b20792 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/delete_gateway_response_type_v2_request.py | 0ccfa905440f6191d4bd6234f8754221a55beb5f | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 9,417 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteGatewayResponseTypeV2Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a00a2497299d4256d3532de2895cd3f20effbe25 | 2d2dd7024f2ac732adf059fb86e75ff9ef2bc001 | /commentparsingreddit/redditFetcher.py | 32f33f72ef25f5e79db59be84713b659659c840e | [] | no_license | plattenschieber/COINs2015Election | 3bc359fd7c113c9ff66335ab8b378f0ee00741a1 | b703d0d35ec4964440914e9bd3fb211268bb470a | refs/heads/master | 2021-01-10T06:21:27.241723 | 2016-02-15T18:56:57 | 2016-02-15T18:56:57 | 44,482,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | import praw
import csv
from pprint import pprint
# setup a unique user agent to not get banned
r = praw.Reddit(user_agent='mac:COINs2015Election:v1.0.3 (by /u/plattenschieber)')
# a list of subreddits based on buzzwords and some manual ones where we know they are relevant for us
subredditlist = ['SandersForPresident... | [
"plattenschieber@gmail.com"
] | plattenschieber@gmail.com |
091097d6f0291cd9c2424437ad0185a12eb147c0 | 8931653e0970afb45649b98a1c253cd759dd4f2b | /model_flcolagedo__gd_conexiones_def.py | d1141598fefe2d1f64715fedae201cdca9986875 | [] | no_license | yeboyebo/flcolagedo | 7444909c9e58a1cd62fd605444e97ee77db62fe4 | 7054c3cdde2c9b7e47da62376d9ec35026d8e90f | refs/heads/master | 2020-04-13T19:27:04.943804 | 2019-03-01T13:00:01 | 2019-03-01T13:00:01 | 163,402,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # @class_declaration interna #
from YBLEGACY import qsatype
class interna(qsatype.objetoBase):
ctx = qsatype.Object()
def __init__(self, context=None):
self.ctx = context
# @class_declaration flcolagedo #
from YBLEGACY.constantes import *
class flcolagedo(interna):
def flcolagedo_getDesc(se... | [
"javiercortesveliz@gmail.com"
] | javiercortesveliz@gmail.com |
b6747965849a70d5277a34229eaf3531be0e53c5 | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/i18n/obsolete_translations/__init__.py | 3c69a69a26e7500e7884ccba3dcffbd47861d80b | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 150 | py | from django.utils.translation import gettext as _
string1 = _("This is a translatable string.")
# Obsolete string.
# string2 = _("Obsolete string.")
| [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
464a87d0d9a78b8573100bd56517f8595229ec4d | 44bbfe1c9a7f16e632cdd27c2de058033b33ea6d | /mayan/apps/lock_manager/apps.py | 27e11f8bd162add6c07c31c7945ed733a9f66077 | [
"Apache-2.0"
] | permissive | lxny2004/open-paperless | 34025c3e8ac7b4236b0d8fc5ca27fc11d50869bc | a8b45f8f0ee5d7a1b9afca5291c6bfaae3db8280 | refs/heads/master | 2020-04-27T04:46:25.992405 | 2019-03-06T03:30:15 | 2019-03-06T03:30:15 | 174,064,366 | 0 | 0 | NOASSERTION | 2019-03-06T03:29:20 | 2019-03-06T03:29:20 | null | UTF-8 | Python | false | false | 245 | py | from __future__ import unicode_literals
from django import apps
from django.utils.translation import ugettext_lazy as _
class LockManagerApp(apps.AppConfig):
has_tests = True
name = 'lock_manager'
verbose_name = _('Lock manager')
| [
"littlezhoubear@gmail.com"
] | littlezhoubear@gmail.com |
727d582df5bab8783d9f40b7a707f8c06595d363 | 58e348983582f85d95ba25f1a097262b08c00be2 | /tests/test_token_handler.py | deaea18891f108964acae521ad5fdedadab34860 | [
"MIT"
] | permissive | dmuhs/web3data-py | 4903e480481a8a2ded083fabf45751c6b2e96608 | 27b885549d55f617ff9924a4269ad282b45d3fba | refs/heads/master | 2023-01-06T11:46:26.398440 | 2022-02-17T15:59:19 | 2022-02-17T15:59:19 | 247,438,937 | 10 | 4 | MIT | 2022-12-26T21:35:50 | 2020-03-15T09:49:06 | Python | UTF-8 | Python | false | false | 1,446 | py | from itertools import product
import pytest
import requests_mock
from web3data.chains import Chains
from web3data.exceptions import APIError
from web3data.handlers.signature import SignatureHandler
from . import API_PREFIX, CHAINS, HEADERS, RESPONSE
LIMITED_CHAINS = (
Chains.BCH,
Chains.BSV,
Chains.BTC,... | [
"dmuhs@protonmail.ch"
] | dmuhs@protonmail.ch |
268a23f3c374d97903a842dc0dae84a3e6a32d06 | e57713d795d1c6030bff1602e8ed930889b76917 | /.ipynb_checkpoints/textos.py | defe52a367ed3f8ae134177c26b28ec9d0fe2b5c | [] | no_license | rvaldez1986/ai_chatbot | f8b1a0c11ce9dd7d20dd1dd3274b8097cd55d5af | eab5424e6a43d89eb73972bc805f7a21e34ac047 | refs/heads/master | 2020-06-04T09:20:39.840292 | 2020-02-18T21:15:27 | 2020-02-18T21:15:27 | 191,962,844 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,304 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 2 12:35:29 2019
@author: rober
"""
def dict_textos0():
textos = {}
#REPLYS
repST = ('Su consulta sobre el tema {0} es para una persona natural o para una empresa?')
repQ = ('Gracias por su retroalimentacion. En ACTUARIA queremos siempre da... | [
"roberto.valdez.ponce@gmail.com"
] | roberto.valdez.ponce@gmail.com |
839bdfa63b3c361abff59ac4c35f10771779c1f0 | b5c2571948d1e7fd6a21cfe3267cb7de9088cf56 | /Bytecode Decompile/MazeGameGlobals.py | 30bbb50ce31dbda90060af33ab0cc787621333a8 | [] | no_license | C0MPU73R/Toontown-2003-Bytecode | ff32042d4da5894ec3a4fb7da43614df26d25a9d | aa6862f86034f342d5fee9934cd6ed3e83de99f3 | refs/heads/master | 2023-05-03T11:55:57.959617 | 2018-12-02T00:05:43 | 2018-12-02T00:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import RandomNumGen
ENDLESS_GAME = config.GetBool('endless-maze-game', 0)
GAME_DURATION = 60.0
SHOWSCORES_DURATION = 2.0
SUIT_TIC_FREQ = int(256)
def getMazeName(gameDoId, numPlayers, mazeNames):
try:
return forcedMaze
except:
names = mazeNames[numPlayers - 1]
return names[RandomNumGen.... | [
"flamingdog101@gmail.com"
] | flamingdog101@gmail.com |
82d4c413dc12df27ead2b991c59a70cce5f20b90 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /04Python workbook/ch3loop/68paritbit.py | 4ff8317860bc6f6b0ccf8f7760c725b4d33eee3b | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 291 | py | line = input("Enter 8 bits:")
while line != "":
if line.count("0") + line.count("1") != 8 or len(line )!=8:
print("That's not 8 bit")
else:
ones = line.count("1")
if ones % 2 == 0:
print("Parit should be 0")
else:
print("Parit shoudld be 1")
line = input("Enter 8 bits:") | [
"greatabel1@126.com"
] | greatabel1@126.com |
c3fb8a2d33c48c10b8d1ed1f167229dc363f6461 | e1c6eee6042cfb6d1b254fe04219d5339fbb6e8f | /Sprint Challenge/northwind.py | ad798f2ff56588bf3307c2c3cbd0454a6d057022 | [
"MIT"
] | permissive | CJRicciardi/DS-Unit-3-Sprint-2-SQL-and-Databases | 9fc41a52e4bcd2c14530cb15d0dfa612c462787c | b7d7f505a4e33775eb9973de3dae4ef47215da41 | refs/heads/master | 2021-03-28T06:29:27.917331 | 2020-03-20T17:57:40 | 2020-03-20T17:57:40 | 247,846,535 | 1 | 0 | MIT | 2020-03-17T00:46:34 | 2020-03-17T00:46:34 | null | UTF-8 | Python | false | false | 1,795 | py | # northwind.py
import sqlite3 as lite
import os
import pandas as pd
# construct path to northwind_small.sqlite3
connection = lite.connect("northwind_small.sqlite3")
#print("Connection:", connection)
# create cursor instance for connection
cursor = connection.cursor()
#print("Cursor:", cursor)
# query, execution and... | [
"ricciardistg@gmail.com"
] | ricciardistg@gmail.com |
876870088df44bce8e2d806e443ba6db4e7ed56c | 2c6295c2845dcee5112be821307367059a00d249 | /Term Assignment/max-value random forest.py | df44775286aea59abcf4e36a3140fca85ea5c335 | [] | no_license | arianne1998/1BM110 | eb96604bf84750678a94d90227a286c4e35ba7de | b3dedc6cc0912d7675be072b40b6788dbb739842 | refs/heads/main | 2023-03-28T14:31:47.981787 | 2021-04-02T07:47:05 | 2021-04-02T07:47:05 | 340,035,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,747 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import re
import sklearn
from sklearn.metrics import roc_curve, auc, accuracy_score, r2_score, mean_squared_error
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
from sklearn... | [
"bas_roodenburg@hotmail.com"
] | bas_roodenburg@hotmail.com |
eb91efcb416ab3a3b19e7a40980a9fe7b954abad | 6a99dc451bc5af666494729999d91d1ce48a917f | /mysite/mysite/settings.py | 5486fe804be72db0ead041a75fe6deedd26f0174 | [] | no_license | vanm98/djangoTutorial | 82f35cd9eae2a7fa9cccb8eafa480776c60b2ae6 | a6a921df06103ce4a69b10224561d3defd4b6eb2 | refs/heads/master | 2020-04-18T13:54:17.672840 | 2019-02-26T15:37:49 | 2019-02-26T15:37:49 | 167,574,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"1522808179@mil"
] | 1522808179@mil |
ca9df04907f9ce4cd79b705860017169c2a4a7ef | 79079c592d9a86d32bc16535b6b6edaf796d21c4 | /main.py | 70545940ed4786b9afca10af4bdd921903f5cc9b | [] | no_license | c1a1o1/3d-gan-tensorflow | 00d37ff7b27d3fe2b6c93d2c796709b621e3e031 | 1a43185c0332a9a4ac888ecc77645cfbbe24d2c0 | refs/heads/master | 2021-01-15T17:50:16.018118 | 2017-06-16T04:03:16 | 2017-06-16T04:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import tensorflow as tf
import numpy as np
import time
from Gan_3D_model import*
with tf.Session() as sess:
train_data_path = 'D:/python_workspace/Liuhy/3Dporject/ModelNet40_Voxel/ModelNet40_Voxel/airplane/64/train'
checkpoint_dir = 'D:/python_workspace/Liuhy/3Dporject/3DShapeNets/3DGan_liuhy/checkp... | [
"756993749@qq.com"
] | 756993749@qq.com |
2d855a5c23a7fed4a1d192321137937f6763fb22 | 6ee249a2fe56d4664c7385e8ee40846e365e6378 | /insideout/views.py | 1f27189cd86a8badf5d7dc4611eaf4a4ff840dbc | [] | no_license | cproctor/insideout | 0a47c6477520524e7946618c2e0b44a3b0fa8287 | ef0ceb420052e400692c8700fb69294965e68300 | refs/heads/master | 2021-01-25T09:52:56.045820 | 2018-03-13T07:53:32 | 2018-03-13T07:53:32 | 123,326,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.shortcuts import render
def homepage(request):
return render(request, 'insideout/homepage.html', {})
def crossdomain(request):
return render(request, 'insideout/crossdomain.xml', {}, content_type="text/xml")
| [
"chris.proctor@gmail.com"
] | chris.proctor@gmail.com |
3d281be997e07cb039534e51306f24ac0d1602a9 | d14d5702c27e6a3958a0008975092714d04da7b6 | /src/hdusd/ui/usd_list.py | 71c1e4114d0c0a5f0fa4f603dc5b17e3ce7db1d3 | [
"Apache-2.0"
] | permissive | Speedwag00n/BlenderUSDHydraAddon | 645f95d7a81f01645291b1ed693d01ba237607ad | a55b7fed51429815fc591510cab183a24e088b2a | refs/heads/master | 2023-02-16T10:27:28.880258 | 2020-12-29T17:28:39 | 2020-12-29T17:28:39 | 326,612,971 | 0 | 0 | Apache-2.0 | 2021-01-06T12:52:02 | 2021-01-04T08:10:39 | null | UTF-8 | Python | false | false | 8,344 | py | #**********************************************************************
# Copyright 2020 Advanced Micro Devices, Inc
# 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.or... | [
"noreply@github.com"
] | Speedwag00n.noreply@github.com |
c65109dbe0856949890b2cab6b76ccd2f6214e0c | 19027267b94cba3da430239a1ef2a7f213417e45 | /Tracer_Kinetic/methods/quant_method_lp.py | 7d6eb5c8751f14cf5dda8e80e8b293d48c980236 | [
"MIT"
] | permissive | llevitis/APPIAN | f3256199a02e9a7c3f7877211de794250feb0b97 | 5fce2ea908422ea95cc88b29c15dfd3981f61f32 | refs/heads/master | 2020-04-01T22:24:17.451850 | 2019-02-05T12:18:02 | 2019-02-05T12:18:02 | 153,706,639 | 0 | 0 | MIT | 2018-10-19T00:58:58 | 2018-10-19T00:58:58 | null | UTF-8 | Python | false | false | 2,369 | py | from quantification_template import *
in_file_format="ECAT"
out_file_format="ECAT"
reference=True
voxelwise=True
class quantOutput(TraitedSpec):
out_file = File(argstr="%s", desc="Parametric image")
class quantInput( CommandLineInputSpec):
out_file = File(argstr="%s", position=-1, desc="image to operate o... | [
"thomas.funck@mail.mcgill.ca"
] | thomas.funck@mail.mcgill.ca |
1890cab32416f7c0823f8b42e3eeffb616663f84 | 44f39ab252edcfb51555497c2a43190a4905ee97 | /docs/conf.py | 76b035bfd684ea589246934a383da9deff3e9ea8 | [
"MIT"
] | permissive | mjsiers/practice-data-goveqpaper | ebf68c28f4d60c3b116d752a7bc5c54bfc6068dc | 9bbc7492fa1941ed6732feaeb269f894a9d4e929 | refs/heads/master | 2022-12-15T04:27:58.819399 | 2019-02-04T17:26:20 | 2019-02-04T17:26:20 | 165,886,978 | 1 | 0 | MIT | 2022-12-08T01:35:09 | 2019-01-15T16:40:45 | Makefile | UTF-8 | Python | false | false | 8,024 | py | # -*- coding: utf-8 -*-
#
# practice-data-goveqpaper documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configurat... | [
"msiers@saturnsys.com"
] | msiers@saturnsys.com |
b5950da974e034833bc7e9e32b1788956be49686 | fcd29745ed7a66b46f5039c2ad07f2fa5cb457a2 | /22_popular_libraries/video_code/5_creating_a_mailgun_library/start/email_mailgun.py | 8e87f86a7e62a5264c0a94e718c88c9c10f63829 | [
"MIT"
] | permissive | PacktPublishing/The-Complete-Python-Course | 17489ec6939b5c6c20b92d5bb2d15a71a6444f8e | b880ef9c0e281316f4080531d3690435a686e9c0 | refs/heads/master | 2023-02-19T04:22:33.451524 | 2023-02-02T06:04:40 | 2023-02-02T06:04:40 | 204,631,924 | 56 | 72 | MIT | 2023-02-15T23:21:39 | 2019-08-27T06:09:32 | Python | UTF-8 | Python | false | false | 572 | py | import requests
MAILGUN_API_URL = 'https://api.mailgun.net/v3/sandbox0fd1d065f521484b8af277034648e756.mailgun.org'
MAILGUN_API_KEY = 'key-798b9585aedd35d87f1bf506cadc221e'
FROM_NAME = 'Jose'
FROM_EMAIL = 'jose@schoolofcode.me'
TO_EMAILS = ['jslvtr@gmail.com']
SUBJECT = 'Test e-mail'
CONTENT = 'Hello, this is a test... | [
"dwayned@packtpub.com"
] | dwayned@packtpub.com |
41d2e17998e5b82cea13d9aa9c6150dfd5d469ba | 30dd715d8f90c77fab24964355592f177c27e319 | /ValidationProject/wsgi.py | 401b9d4390e4633ba2d9791f0462b4fb43d3bf74 | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-spring/django-validation-ic-Kenn-CodeCrew-1 | 86f54b2c0435e1a777087d5417b72c55b136e5e5 | 4a02bdc4b9f9c171c085653fc6d7bfc9ca25c7b1 | refs/heads/master | 2020-04-25T23:04:46.038214 | 2019-02-28T17:11:39 | 2019-02-28T17:11:39 | 173,132,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for ValidationProject 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"kenn+git@code-crew.org"
] | kenn+git@code-crew.org |
7d527dce82b5e2728ccf9deafdfef94fc31d91be | 30c3debb297e0938a719364dea79bf22dd1a5904 | /backend/trips/migrations/0002_trip.py | 9afceb6f93b01b1e9e9c8c7f3e9b949c576b7c65 | [] | no_license | davidespihernandez/django-react-trips | 00b2106c3dfd1227bc03aff903ab2ed1691224dd | a2951828334d90a87583b80d00c4898ad997c4ef | refs/heads/master | 2022-11-30T20:08:41.692546 | 2020-08-20T16:30:52 | 2020-08-20T16:30:52 | 289,054,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | # Generated by Django 3.0.5 on 2020-05-25 16:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("trips", "0001_initial")]
operations = [
migrations.CreateModel(
name="Trip"... | [
"davidespihernandez@gmail.com"
] | davidespihernandez@gmail.com |
7d1c2049b4737894968dece4dbebf229e896b61e | 33ab9ae25104c83d3ca0275025b9226a5447860e | /product/product/settings.py | 22413cd469447158190272bb21fedd24e98111a6 | [] | no_license | bhuwan55/jquery-ajax-snippets | 33da01caa1a60be1af8aa5bf47042e1dd2b65d94 | 3f2936186ab23d47a5b2a0d6383b91e71e19bedc | refs/heads/master | 2022-12-05T16:33:34.522568 | 2020-02-20T10:15:49 | 2020-02-20T10:15:49 | 241,549,472 | 1 | 0 | null | 2022-11-22T05:19:44 | 2020-02-19T06:29:28 | Python | UTF-8 | Python | false | false | 3,136 | py | """
Django settings for product project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"awsumbj55@gmail.com"
] | awsumbj55@gmail.com |
c33ce417e4d842ed41233c8d39dfde5c93bf90a5 | 71517349ee8a94fd4f683042371861cb7884efd9 | /buddysystem/application/migrations/0005_profile_desired_companions.py | b88b65fce9a906e05dbe659ca1d4bb4a3dd5ea47 | [] | no_license | Audrey-Newman/buddy-system | d6edf5388e6a06272314948c78aa087df96ee6f9 | 731f0fd2332eebdd9b35f72430d5758b0bde9791 | refs/heads/master | 2021-08-06T18:29:44.010655 | 2017-11-06T19:13:07 | 2017-11-06T19:13:07 | 109,515,737 | 0 | 0 | null | 2017-11-06T19:13:07 | 2017-11-04T17:33:11 | Python | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-05 05:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application', '0004_profile_score'),
]
operations = [
migrations.AddField(
... | [
"aen7xa@virginia.edu"
] | aen7xa@virginia.edu |
7537f1cf3c5f7375cee6813d559e4b5c34438a87 | 75f5ee997eab7f0050fd515b486bc6549304bbd5 | /insta/photoalbum/forms.py | 2ab725f3b83438384643055f7ca95044250fa578 | [] | no_license | agatagmaj/Instasomething | 8757d46bf361ebdbe0762362d49fa2f7630040b9 | ac6ba2c1672002881c184e76b1f490c1ffccac49 | refs/heads/master | 2020-03-30T04:09:21.147208 | 2018-09-28T12:57:54 | 2018-09-28T12:57:54 | 150,726,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django import forms
class UploadFileForm(forms.Form):
title = forms.CharField(max_length=64, required=False)
file = forms.ImageField() | [
"agatagmaj@gmail.com"
] | agatagmaj@gmail.com |
a36888a3c77e242d1f5f2e551f917dedeffe417b | 546c4ff60de3967d99d2af9dc92c711fbe2fa3c8 | /idetec/urls.py | 1c60db3abff08b8e421d8ea89cc408ac23c532f9 | [] | no_license | suchilin/maquinaria | ae27ff86791b867bbab6096362774d8b5f69eb8c | ca35802c5ecf0f4f1d27a5f3f7d81118498fdc42 | refs/heads/master | 2020-04-02T22:53:35.479268 | 2016-06-24T14:09:46 | 2016-06-24T14:09:46 | 61,839,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import RedirectView
urlpatterns = patterns('',
url(r'^', include('solicitudes.urls', namespace='solicitudes')),
(r'^idetec/accounts/... | [
"enigma_profunda@hotmail.com"
] | enigma_profunda@hotmail.com |
4756747b60219eaecb57896c416cbf92f47c2594 | 6938ddc0516e3aaadc41dec1a816bee289a7762d | /src/python/algorithms/subsets/subsets.py | 9e088471070ac3e4fb22637ec52075c55c73ea2d | [] | no_license | hansewetz/gitrep2 | aefc0b78d1fdf598260f5fa0d17b8113624f1b45 | 8aac1a4e3ae096b2e2f9d1746880b790b4760936 | refs/heads/master | 2020-03-14T22:20:53.371631 | 2018-05-03T07:32:32 | 2018-05-03T07:32:32 | 131,819,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #!/usr/bin/env python
import sys
# generate subsets
# v - vector
# bv - bol vector, true of element part of subset, false otherwise
# k - current position
# n #of elements in v
def subsetsAux(v,bv,k,n):
# check if we should print elements
if k==n:
for i in range(0,n):
if bv[i]: sys.stdout.write("{0} ".f... | [
"hansewetz@hotmail.com"
] | hansewetz@hotmail.com |
4dcfa5175cb1853111f2cb692eaae3a760089e63 | ad7e65ca210dc254f29454ab382d875cb9535daa | /coffeebot/utils.py | 10575cb69565fb13bfb300d5a28f51a65ac35513 | [
"MIT"
] | permissive | RobotDisco/mattermost-coffeebot | 3b65e52053ecc89f72a0741f549ae26d8ac7284c | cd27b9c0ecc7ecb38f570c42fb0789999021f468 | refs/heads/master | 2020-06-01T04:00:07.013100 | 2019-07-10T04:40:24 | 2019-07-10T04:40:24 | 190,626,517 | 0 | 0 | MIT | 2019-07-10T04:40:25 | 2019-06-06T17:59:16 | Python | UTF-8 | Python | false | false | 6,702 | py | import random
from sqlalchemy.sql import text
from coffeebot import config, session
from coffeebot.models import User, Pair
def get_channel(driver, team_name, channel_name):
"""
Retrieve a channel given a team and channel name.
Returns the JSON response from the Mattermost API.
"""
response = dr... | [
"pcjl@users.noreply.github.com"
] | pcjl@users.noreply.github.com |
2f0be5f99cfb60f9a02393b858c049a2e7353bab | 60811c2d3f81b77f3b870b1ec0ace4b8f1bad19d | /python test/vowels string.py | 45ffe6bb70bdc3f36f42240a5fad866113ed4d18 | [] | no_license | APARNAS1998/luminardjango1 | b85c249dacb4d5e819d338e19fd8af48a2ea393e | 8bd91a38223910c14270e0e21c2d890dc16e2117 | refs/heads/master | 2023-08-09T12:49:49.201051 | 2021-09-15T08:39:25 | 2021-09-15T08:39:25 | 403,527,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | string=input('enter the string')
vow='aeiou'
empty=''
for i in string:
if i not in vow:
empty=empty+i
print(empty)
| [
"aparna.s1721@saintgits.org"
] | aparna.s1721@saintgits.org |
b4fedb807639f5c38443073a26046acd46ed2334 | ea7d6085e653105e3a31cedbe1ea9c324d470efb | /thesis/img/micrografias/170-outros/convert_gray_scalebar.py | 1c05872a997ab1cd67e7916ae99bcedfaa963514 | [] | no_license | arthursn/PhD | 2820b96ca0d92a9b9ce4d0fac84c8ab29d2138b8 | a9b860c840269eb67aa7023d07063f781d23b0e8 | refs/heads/master | 2021-10-16T05:01:13.552451 | 2019-02-08T00:39:51 | 2019-02-08T00:39:51 | 151,268,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import glob
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
from PIL import Image
from matplotlib_scalebar.scalebar import ScaleBar
font0 = FontProperties()
font0.set_size(13)
font0.set_family('sans-serif')
font0.set_file('/usr/share/fonts/truetype/mstt... | [
"nishikawa.poli@gmail.com"
] | nishikawa.poli@gmail.com |
1f53d11dafb4c125e55493d44db015e1533bdf42 | 622d2e4b894e5884847638523a7e584a8afb8c8e | /lib/instruments/TempChamberControl/modbus_tk/TempChamberControl.py | b2974b00c40698970f580a174c14cd8745d58528 | [] | no_license | kennyku796/V2X-ATE | 23db23128fb83a7d590bc21fbafb9264eb14294a | 05e110cd3c2382a134d30474ac832b6e5d6faf77 | refs/heads/master | 2020-04-07T17:24:28.831961 | 2017-10-03T08:18:03 | 2017-10-03T08:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,049 | py | #!/usr/bin/env python
# -*- coding: utf_8 -*-
"""
modbus_tk for the temperature chamber.
Modbus TestKit: Implementation of Modbus protocol in python
(C)2009 - Luc Jean - luc.jean@gmail.com
(C)2009 - Apidev - http://www.apidev.fr
This is distributed under GNU LGPL license, see license.txt
"""
import sys
import s... | [
"zohar_sefti@yahoo.com"
] | zohar_sefti@yahoo.com |
802ad5f40c0f30464d37f5c2f052d08893a2acee | c009d46a0b791fbd05b74629fe9f0e45bb6573d0 | /django/hands-on/session1/python_rev.py | 2333ef947659df5882dda46b3b7fa72d0725aa19 | [] | no_license | serdardurmus/Clarusway-Projects | bcf52775fa17a82ed31728a22e53a107e34733e0 | 327028283a01beddb3e7f134db78cfa8d39606ea | refs/heads/master | 2023-02-12T17:37:22.754666 | 2021-01-09T16:39:57 | 2021-01-09T16:39:57 | 289,539,403 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # Minner noe / oppsummering
# print("Hello World")
# not and or (priotiere)
# print([] or 1 and 0 and [1] or not 0)
# a = "henry"
# b = a.rstrip("y")
# c = a.rs
# print(a)
# ----------------------------
## List
## Dictionary
## Tuple
## Set
a = list()
b = ["ali", 1, -1, True, [1,2]]
print(type(a))
print(type(b))
pr... | [
"serdar83durmus@gmail.com"
] | serdar83durmus@gmail.com |
7fd34c0f9f522af5403fa9a97596d57c30c50fa4 | 370bcd596051652f893ca1776123eaf27e7813ed | /Encapsulation - Exercise/wild cat zoo/project/tiger.py | 6533339b627c303f9075b63a4a7bde22aad398e7 | [] | no_license | zdravkob98/Python-OOP-November-2020 | 130eb711fc06cd39da0c9b9112f0dad867867f8c | ed0abdbff32a9afcb904bc08e53bee1584e1b0d3 | refs/heads/main | 2023-02-04T10:34:36.959141 | 2020-12-23T15:39:37 | 2020-12-23T15:39:37 | 323,936,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from project.animals_base import AnimalBase
class Tiger(AnimalBase):
needs = 45
| [
"zdravkobonev@abv.bg"
] | zdravkobonev@abv.bg |
15e1b0d05f28b755b3c069502846842bca5a2a7e | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /qianfeng/常用模块/urllib/3-get.py | b350fd85a8630d8b2e107ef0ed06231b231877a8 | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import urllib.request
import urllib.parse
word = input('请输入你要搜索的内容:')
url = 'https://www.baidu.com/s?'
# 参数写成字典
data = {
'ie':'utf-8',
'wd':word,
}
query_string = urllib.parse.urlencode(data)
url += query_string
# 发送请求
response = urllib.request.urlopen(url)
print(url)
print(response.read())
| [
"it_hjl@163.com"
] | it_hjl@163.com |
8239ff353d8819af83732e68a6f5a66b33e9c3ef | 2cc68d1f90e519d803573b04da0b40eb139ae70e | /users/migrations/0006_auto_20200114_2234.py | faf157fe313e43d78da445c7f7b5bef8a34710db | [] | no_license | eRafaell/simple-flashcards | 5ebd21946ab892e00c3c4ca0b2dfc36f3b1a3104 | ee9f41caefd9c4d3085149059c26098ed1d641e3 | refs/heads/master | 2022-12-17T12:52:15.551867 | 2020-02-08T20:00:20 | 2020-02-08T20:00:20 | 225,472,886 | 0 | 1 | null | 2022-11-22T04:54:40 | 2019-12-02T21:33:18 | JavaScript | UTF-8 | Python | false | false | 440 | py | # Generated by Django 2.2 on 2020-01-14 22:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20191215_1353'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='image',
... | [
"rafalo82@interia.pl"
] | rafalo82@interia.pl |
ceea35a95eb95d2d80993d3f36373bd3d4b4e393 | 02a0633107f34a0a40f8c87c56ebcb7d52582d48 | /conv_vae.py | ef9c51abb551b0e797923d57aa27bb287fad554f | [
"BSD-3-Clause"
] | permissive | kastnerkyle/ift6266h15 | 87a1e4a0903690a59c5c833d0d16096c229b2a0d | 536484926cc0555e4a042a582c1c1958835f9163 | refs/heads/master | 2021-01-01T19:01:42.630534 | 2015-04-20T03:22:24 | 2015-04-20T03:22:24 | 29,013,264 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 20,906 | py | # Kyle Kastner
# License: MIT
"""
VAE in a single file.
Bringing in code from IndicoDataSolutions and Alec Radford (NewMu)
"""
import theano
import theano.tensor as T
from theano.compat.python2x import OrderedDict
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from optimizers import rmsprop, sgd_... | [
"kastnerkyle@gmail.com"
] | kastnerkyle@gmail.com |
df5d6bd5f4a392d58b19719f3e6584daca573c4b | c828cd876d92b1e10309909c1d4e63ae64d5dfde | /eigen.py | a24865fdc3e2be8728d191bdc33efd75e9fa17ee | [] | no_license | walkergussler/random_python | 111770b2c06c0560145210073510568c5eeca564 | c7d8386d906ce4c21490b651d9f3a49ab3fa24e5 | refs/heads/main | 2023-01-09T16:39:58.916523 | 2020-11-10T07:24:18 | 2020-11-10T07:24:18 | 311,574,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | import numpy as np
import sys
from ghost.util.distance import hamming
from Bio import SeqIO
def doHdistReturnProp(seqs1,seqs2): #calculate hamming proportions between two sets of sequences, return matrix
keylen=len(seqs1[0])
l1=len(seqs1)
l2=len(seqs2)
hdist=hamming(seqs1,seqs2,ignore_gaps=False)
a... | [
"mnz0@biolinux.biotech.cdc.gov"
] | mnz0@biolinux.biotech.cdc.gov |
f3b973abaeb7d82e984adf8b5947f37cbd3d670e | 1a3d6caf89e5b51a33627458ae7c0bbb00efdc1d | /src/gluonts/torch/model/deepar/lightning_module.py | dac207ccc13117d02b5260d54ff56b32dd4225c7 | [
"Apache-2.0"
] | permissive | zoolhasson/gluon-ts | e9ff8e4ead4d040d9f8fa8e9db5f07473cb396ed | 3dfc0af66b68e3971032a6bd0f75cd216988acd6 | refs/heads/master | 2023-01-25T01:52:57.126499 | 2023-01-13T17:50:38 | 2023-01-13T17:50:38 | 241,743,126 | 0 | 1 | Apache-2.0 | 2020-08-06T16:53:11 | 2020-02-19T22:45:54 | Python | UTF-8 | Python | false | false | 4,044 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | zoolhasson.noreply@github.com |
9356317c2642a1bdfa87247aa8eea8fbbd762bd8 | 8850d67783bb86a83a5bb68df0a78c0f8684ac56 | /test/unit/helpers/aws_mocks.py | 0fa2a1c362eef3558596cd789053b17c69edf9fa | [
"Apache-2.0"
] | permissive | awesome-security/streamalert | 057b8d86d65ff0e84d580a2f251efcb7760b548c | 33a3f1034873a2ee10485ad179110dccb2bd965b | refs/heads/master | 2021-01-19T13:56:28.307580 | 2017-08-18T01:33:52 | 2017-08-18T01:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | '''
Copyright 2017-present, Airbnb Inc.
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, sof... | [
"jack.naglieri@airbnb.com"
] | jack.naglieri@airbnb.com |
de483b46af8e92f611afdd077928ed53d03d7f10 | f8191eddfe8e8894b1b8a9410e94718176f7df69 | /ComputerVision/src/ImageSorting.py | 0cc84067af6d1bbc22c90be4e2196c95902fc8cf | [
"MIT"
] | permissive | egdavis1/CloserThanMars | 6a625fa5dba9bd881f2cef5d2cc5359fe3407b0f | 57049d5b6bf8fee50d84672e8333debcd5d60e1a | refs/heads/master | 2020-04-02T05:05:15.183335 | 2018-10-21T21:17:20 | 2018-10-21T21:17:20 | 154,051,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #Written by: Sam Dugan and Justin Drapeau
import json
import os
import requests
CONST = "data.txt"
CONST1 = "TheWayYouNibbleOnMyEarTheOnlyWordsIWannaHear.txt"
x1 = open(CONST, "r")
x2 = open(CONST1, "r")
y1 = json.loads(x1.read())
y2 = json.loads(x2.read())
print("Proccessing files.")
c = 0
z = ["color", "descript... | [
"davis@davis-VirtualBox.(none)"
] | davis@davis-VirtualBox.(none) |
85e5fd7b7fe9549d598dc33f20e5e0931955970f | ab6c6559d9cfac36c3c4ece192fa2300767662d1 | /Python Game Development for Beginners - Working Files/Chapter 4/Checking for intersection Part II/counters.py | 98eb5ccf9936a6d2850e6e60edaa9f0d5803b2a7 | [] | no_license | Igor-Nosatov/PythonGameDev_Trinket | 962b86572c74c64652a24768dfec2101fcae221f | e6166f69307ded6880b0aaa3299c0a151807bb9c | refs/heads/master | 2020-06-24T20:22:57.187289 | 2016-05-03T10:33:26 | 2016-05-03T10:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import turtle
from math import sqrt
from time import sleep
counterscreen = turtle.Screen()
counterscreen.reset()
class Counter(turtle.Turtle):
def __init__(self, coordinates = [160, 170], screen = counterscreen):
turtle.Turtle.__init__(self)
self.reset()
self.hideturtle()
self.penup()
self.speed... | [
"lrbeaver@gmail.com"
] | lrbeaver@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.