blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e38298b3db6bf24895dd9139bc51769fbef8cd78 | 37f10a692d0e1a9a396f505af60b04f7db44d3e1 | /01 Algorithms/01 Warmup/CompareTheTriplets.py | 9b18b2dcebec59ded6a89ae7c2987fd725d10ec4 | [] | no_license | nbrahman/HackerRank | 95842f5dbda2ab8aedc7808831c12b9f92a37e03 | ec5d42d7e578f01efba87a099f42e82512704dca | refs/heads/master | 2021-01-19T11:53:59.685444 | 2017-07-29T16:04:21 | 2017-07-29T16:04:21 | 88,003,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | '''
Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty.
We define the rating for Alice's challenge to be the triplet , and the rating for Bob's challenge to be the triplet .
Y... | [
"nikhil.brahmankar@gmail.com"
] | nikhil.brahmankar@gmail.com |
dd8482007a09376cf80c5d5028b8fed0a793ea17 | 5c8e807a38c666e3bc95d840ddb875e88da018b7 | /lesson8.py | 4b8293e9e5b2dad16da3f22f30ef3f0f6c78bbf2 | [] | no_license | akasemper/Python1stStep | 077d5b3805bdcc62d78769eaef8fc356b615496f | e57e3b6902ce2374c61eb354b4fb15c0a6a75edf | refs/heads/master | 2020-04-15T16:44:21.622463 | 2019-01-09T11:30:41 | 2019-01-09T11:30:41 | 164,848,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | import math
import random as r
import lesson9 as m
from lesson9 import add as a
a (23, 6) | [
"akasemper@gmail.com"
] | akasemper@gmail.com |
49a32dd77c93a1e9601f4b1732db4e9eec51d139 | d09b5fe877f351eafd00c26c844ec366855359ab | /Chapter-1/hash_table.py | a6210652e56d599faf79d793bba080a1b94e0ac2 | [] | no_license | viveksyngh/CTCI-6th-Edition-Python-Solution | c788bfdb9d94e70f9c59ee218f5cccac9304f7fb | 6c4c9a09418e3b5e75355b68f85c3a4077b835e5 | refs/heads/master | 2022-10-23T21:41:54.295719 | 2022-10-09T10:55:12 | 2022-10-09T10:55:12 | 73,009,966 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | class Node:
def __init__(self, key, value):
self.key = key
self.value = value
def get_value(self):
return self.value
def get_key(self):
return self.key
def set_next(self, next):
self.next = next
def get_next(self, next):
return self.next
class Li... | [
"vivekkmr45@yahoo.in"
] | vivekkmr45@yahoo.in |
026f13320885d03b36c23a89c48509a0bd7fd742 | fc3b75588d0719676981efd2f1065ae38ab85497 | /manage.py | a6283321cb5206b99746ad44122166a83a3818a5 | [] | no_license | feanorjm/backend_launcher | c1019bbc62e4a1e604565d8a0a99f21da3639d9d | 60c859f8a855a7488cbacc072e405bce9bfbe753 | refs/heads/master | 2021-09-25T02:57:08.500211 | 2020-01-22T18:43:27 | 2020-01-22T18:48:02 | 227,022,821 | 0 | 0 | null | 2021-09-22T18:06:25 | 2019-12-10T03:40:18 | HTML | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backendlauncher.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"feanorjm@gmail.com"
] | feanorjm@gmail.com |
077b2ebd5c5e17c1fa32ede5bca2c126606752e2 | a90196fca52b129216ea22aa93fcec5de8d1bc27 | /accounts/migrations/0001_initial.py | 478d93d7e9b5bfa185578869e403eb20e9b7e038 | [] | no_license | ckhe1215/meramera2 | 6009daf59950b168d0d8b32cc297eb92e76f1617 | 85474bc825bdd9a2bf5b1a26a6509f49ee230324 | refs/heads/master | 2020-07-02T08:15:09.377386 | 2019-08-09T21:05:45 | 2019-08-09T21:05:45 | 201,469,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # Generated by Django 2.2 on 2019-07-28 11:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"ckhe1215@gmail.com"
] | ckhe1215@gmail.com |
e8b453ef268745f99b12a5c485ad4987525ef912 | b69f0f345d3770478ec903dbd56b04641148594f | /menu.py | 20e02e6e82657e5ae2389f0ebf3ede3a386cfd37 | [] | no_license | wellandbb/A-level-Project-Game | 22f191c2aa50ed3d322ab47355eb0e5a9e720469 | aeeb87c2eb1a39dae44d7e1674e6aa975a3bf6d5 | refs/heads/master | 2020-05-18T20:59:58.915001 | 2020-05-18T16:44:38 | 2020-05-18T16:44:38 | 184,647,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | import pygame, sys
pygame.init()
from settings import *
menu = True
while menu:
# set clock
clock.tick(30)
#event loop
for event in pygame.event.get():
# bomb out of loop if quit
if event.type == pygame.QUIT:
menu = False
win.fill(black)
win.blit(pygame.image.load... | [
"43852743+wellandbb@users.noreply.github.com"
] | 43852743+wellandbb@users.noreply.github.com |
91bebb09bc6024dfa9e4392aaab0a55020f063b4 | d7f33fd19ecc59aadebe4f50db605ad39b967dbd | /disambig_creation.py | 36a957f12832a0936243132decf3d61f9165915d | [] | no_license | juansaenz/leaguepedia_util | 9687ab3634ccdf022c637323dceb0638ed5ece88 | 77e3dfe501b333b3a8dc2a04f207b8bf0858dbc3 | refs/heads/master | 2020-08-05T19:01:30.131055 | 2019-10-04T11:34:01 | 2019-10-04T11:34:01 | 212,667,697 | 0 | 0 | null | 2019-10-03T19:54:58 | 2019-10-03T19:54:58 | null | UTF-8 | Python | false | false | 7,129 | py | import re, threading, mwparserfromhell
from log_into_wiki import *
#################################################################################################
original_name = 'Starky'
irl_name = "Juan Carlos Cano"
new_name = '{} ({})'.format(original_name, irl_name.strip())
init_move = True
blank_edit = False
l... | [
"18037011+RheingoldRiver@users.noreply.github.com"
] | 18037011+RheingoldRiver@users.noreply.github.com |
b787d5796db4ef7cfaf71d448bf81c2e6fe55582 | 093b727f9742ef0f9d97fb9870cd69f367104edd | /main.py | 73e37b21361638fe40dbb04227c203521e93248c | [] | no_license | akerem16/basic-calculator-git-en-tr | ea70fcdf503366855c8ef94367503bb5d112de83 | f7c79a9bdb4ab1aa0f5a16b5f4c299128ada7f3d | refs/heads/master | 2023-05-30T20:53:05.729968 | 2021-06-08T14:45:37 | 2021-06-08T14:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # Basic calculator in python 3.6
# Made in Turkey
# By akerem16
# [EN] First we will get number of operations. We will run the code block according to what action will be taken.
# [TR] ilk önce işlem numarasını almamız gerekiyor. Hangi işlem yapılacaksa ona göre kod bloğu çalıştıracağız.
operationnumber = str(input(""... | [
"akerembegic16@gmail.com"
] | akerembegic16@gmail.com |
e48457d278580c6a39e5c28f37e35ec482015823 | 5b58a332c6bea0688d196aabedfc8ccc49bdd134 | /experiments/cnn_short_embeddings/get_embeddings.py | c2dfad97b2a1949c516d77ecfb2e88218654e2d3 | [] | no_license | ver228/classify_strains | 5420c2b3ea8e93b6ba46900c385f52f664f1cbd7 | dc61e7431410e25ab7c2da0acb6d090cc2ebaabb | refs/heads/master | 2021-09-20T08:52:14.505868 | 2018-08-07T12:26:22 | 2018-08-07T12:26:22 | 108,448,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 17 14:57:25 2017
@author: ajaver
"""
import sys
import os
import pandas as pd
import torch
import tqdm
import numpy as np
import tables
#Be sure to use abspath linux does not give the path if one uses __file__
_BASEDIR = os.path.dirname(os.path.abs... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
99addf12f6477d42e6cc49078268d5e6afdf5f2d | d7016f69993570a1c55974582cda899ff70907ec | /sdk/devcenter/azure-developer-devcenter/samples/create_environment_sample.py | 637a5e178d90414987a7ffcd3707ca295f73c41e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 3,239 | py | # coding=utf-8
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ... | [
"noreply@github.com"
] | noreply@github.com |
ec2458abdc4641a5fcbaa34d681b86691011b184 | 189045e375ddf9035a67d873f796133240c27778 | /test_unit_core/test_core.py | 85802e288d5758365753731c395366fca82b4535 | [] | no_license | Tursis/bookstore | 7bacc728011ef2784f6a2e7e42fbf51deb7dc8a5 | 8be1c028bdb1ffc4934d1029e2c64ca8ed45dd42 | refs/heads/master | 2023-04-30T18:14:26.409692 | 2021-08-03T09:30:57 | 2021-08-03T09:30:57 | 239,798,771 | 0 | 0 | null | 2023-04-21T21:05:44 | 2020-02-11T15:39:59 | CSS | UTF-8 | Python | false | false | 2,349 | py | from io import BytesIO
from PIL import Image
from django.core.files.uploadedfile import InMemoryUploadedFile
from store.models import Category, Publisher, BookAuthor, BookGenre, Book, Magazine, CategoryDiscount
from django.contrib.auth.models import User, Permission
def create_user(username, password, email):
... | [
"Tursis94@gmail.com"
] | Tursis94@gmail.com |
1cb015781e77e67a74384b79402417915dfea0a6 | dc1460572385a8675ba545d50d3e63bbb361bd47 | /test/__init__.py | 993c5f1e9bddec09bff50ea6d5cab01aa64a94ab | [] | no_license | jmuel/XIVapi | cf9cda597dcb951b3160a6bb355b860b07528bd4 | 15fcdb01db271e522b0cfe0cd95bf9f0688a425c | refs/heads/master | 2021-01-13T01:15:33.068298 | 2013-11-25T04:19:39 | 2013-11-25T04:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | __author__ = 'jamesmueller'
| [
"jmuel11@gmail.com"
] | jmuel11@gmail.com |
b45c9b02f05aa2a1d529bacf9ec69c1b70e7e35b | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Data-Structures-Algos-Codebase/ALGO/__PYTHON/YT_DOWN.py | 2e47b44e59c00793d16628f53a9120871d31a7a4 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 310 | py | simport pafy
url = "https://www.youtube.com/watch?v=OE7wUUpJw6I&list=PL2_aWCzGMAwLPEZrZIcNEq9ukGWPfLT4A"
video = pafy.new(url)
print(video.title)
stream=pafy.new(url).streams
best=video.getbest()
for i in stream:
print(i)
print(best.resolution,best.extension)
print(best.url)
best.download(quiet=False)
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
1a501a8b28ff37b9c9942abd90ea1dce3bed0a57 | eaf37d1f428fd552e16c40fd57ab07b6822358a5 | /ecommerce/settings.py | b0961272e8597bf978eaff7d65cddb4854572f14 | [] | no_license | PathakDeepak/Ecommerce_Website | 26df5f502a5ca04ddb9a456c31ac0df3b57ccb27 | 23eaa2f07462d03b2c326761c4135c3b63258e77 | refs/heads/master | 2020-03-19T08:34:36.465715 | 2018-06-12T22:14:50 | 2018-06-12T22:14:50 | 136,216,239 | 0 | 0 | null | 2018-06-12T22:10:00 | 2018-06-05T18:08:22 | HTML | UTF-8 | Python | false | false | 3,266 | py | """
Django settings for ecommerce project.
Generated by 'django-admin startproject' using Django 2.0.6.
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
... | [
"pathakdeepak024@gmail.com"
] | pathakdeepak024@gmail.com |
26f999a48d12ee717570e8a1ae1e7e96e06c6f69 | 245b0329360b18c32510a6d13b2650fd6ca752cc | /ch03/trendline.py | 14d037ac047d819a1524cf921cf4e087b23e6a60 | [] | no_license | TanUkkii007/numpy-begginers-guide | 56c315d207f681bd4e6d70abeac82bfc0db2bad5 | 6d483bc8672947a06d4240c4379f00183da46d8b | refs/heads/master | 2021-01-17T08:08:07.113571 | 2016-06-29T16:45:59 | 2016-06-29T16:45:59 | 61,984,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | import numpy as np
import matplotlib.pyplot as plt
def fit_line(t,y):
'''Fits t to a line y = at + b'''
A = np.vstack([t, np.ones_like(t)]).T
return np.linalg.lstsq(A, y)[0]
# Determine pivots
h,l,c = np.loadtxt('data.csv', delimiter=',', usecols=(4,5,6), unpack=True)
pivots = (h+l+c)/3
# Fit trend line... | [
"yusuke.007.yasud@gmail.com"
] | yusuke.007.yasud@gmail.com |
72d2226275299fa2088c68f9e68757129e36fc47 | abac3d202ecde8b971ea652a46664bc6eea833d5 | /ChildTest.py | 84ba261e5328fa67c9ca9117393e33c92c35cd52 | [] | no_license | scoop1234/OnceTwiceThreeTimes | c8d19beff98d6d04a2324e4a3449bc2f20f3fcc1 | d7a14e1de9d4c7cba59938559b4f53e3b6006009 | refs/heads/main | 2023-02-19T05:36:05.491680 | 2021-01-08T16:30:10 | 2021-01-08T16:30:10 | 327,943,498 | 0 | 0 | null | 2021-01-08T16:30:11 | 2021-01-08T15:41:37 | null | UTF-8 | Python | false | false | 68 | py | ### Adding a new file in child branch
print ("Inside Child branch")
| [
"noreply@github.com"
] | noreply@github.com |
33b321ff9c8568dadff59fa0f21283a1ffe59690 | 9b45526ae91c5cb93fa826f9b18529b7c682d4fb | /db.py | 229e905529ef60e528567cc79dbdc3c6af3e1442 | [] | no_license | michaeliq/reto_python | ee80393df283039ed1331704b5dbba0ec90b1ce4 | f0cea9edbe0a24370e4f7e89d825140d978cc216 | refs/heads/master | 2022-11-06T20:00:01.374742 | 2020-06-22T12:13:19 | 2020-06-22T12:13:19 | 265,648,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///keywords.sqlite')
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
| [
"michaelesacol@gmail.com"
] | michaelesacol@gmail.com |
06508b203e835acfbbf0bbf0b7a84a345cc45f85 | 0265b2b1333fdea7e3f3dbd510b1ffbb93f61bc1 | /src/bot/create_chatbot/farm_location.py | 4398ca0cfb1858c0cb449de01e340e28d6402e2e | [] | no_license | martinacioffi/Agricultural_SmartContract | 3e694f460c93ce663cbff1716d1436810848a5b7 | 8bb968362ac8f73e7ccaa78463c010bfe01650a5 | refs/heads/master | 2023-05-25T22:36:24.255014 | 2019-12-16T17:30:51 | 2019-12-16T17:30:51 | 223,229,788 | 0 | 1 | null | 2023-05-22T22:35:13 | 2019-11-21T17:38:08 | Python | UTF-8 | Python | false | false | 4,273 | py | location_name = 'FarmLocation'
location_tp = [
[{'text': 'It is in ',
'entity_type': None,
'alias': None,
'user_defined': False},
{'text': 'Kenya',
'entity_type': '@sys.geo-country',
'alias': 'geo-country',
'user_defined': True}],
[{'text': 'Dutton',
'entity_type'... | [
"3010036@studbocconi.it"
] | 3010036@studbocconi.it |
2e06b237f8de00ed2eda46de62f6d4a013feeb58 | 5989e503a733e8b29f4c502008446a75c2b43ff8 | /src/geofr/api/serializers.py | e6b9048e6acbf53169edb9aa681077ec2224fb2d | [] | no_license | samuelpath/aides-territoires | 399a6a7b0607ef5a8d2b327247446b239f5b1a42 | 5793bd49d7157a34e08c29e56a46e1e3ead0651f | refs/heads/master | 2022-12-20T14:35:18.671563 | 2020-08-21T08:00:33 | 2020-08-21T08:00:33 | 288,424,578 | 0 | 0 | null | 2020-08-18T10:27:17 | 2020-08-18T10:27:16 | null | UTF-8 | Python | false | false | 388 | py | from rest_framework import serializers
from geofr.models import Perimeter
class PerimeterSerializer(serializers.ModelSerializer):
id = serializers.CharField(source='id_slug')
scale = serializers.CharField(source='get_scale_display')
text = serializers.CharField(source='__str__')
class Meta:
... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
b3ca3bb296cf1188dbe456c3f41f7d93f65402d5 | f30f0592870cbf27453d341dcf0072ffacad463b | /test_case/test_login.py | 5d5eb7a9f333bad4a202ff85e4269ae40cd3089b | [] | no_license | Hanlen520/ApiTest_PeopleStreet | 27df600848027206d45245a8c87f61934ff4a736 | 3fac407952e4609bdef191ab07e1d990e9ea2b9d | refs/heads/master | 2020-05-07T14:05:05.424325 | 2019-03-21T07:25:11 | 2019-03-21T07:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import requests
import json
import unittest
from util.test_star_end import TestStarEnd
from util.modules import ddt
from config import root_path
from util.gettestdata import get_testcase
from util.modules.HTMLTestRunner_API import set_response, set_data
from config import host
case_path = root_path + '\\data\\case.xls... | [
"46121109+luyula@users.noreply.github.com"
] | 46121109+luyula@users.noreply.github.com |
d41e1f0b0366fbb9391c5a7a7d4361ec324a635d | 44327f78b14cb88fa9721cb202d835719ab467f1 | /Dev Task.py | 10e9022a86bf06fa990b3eab4c552f5ffb807890 | [] | no_license | matveevnikita/project | 16af40fb508a538c50dc3c181d4d2835d2bba1e7 | 92a4d42e05acc2d452daf2ec7b323830760953bd | refs/heads/master | 2022-10-30T08:38:32.721160 | 2020-06-16T09:07:03 | 2020-06-16T09:07:03 | 270,287,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | # Решение задачи по программированию
Особенность этой задачи состояла в том, что очень быстро можно придумать наивное решение,
которое будет неэффективно при большом размере данных. Все участники, которые получали
превышение времени на 11 тесте, дошли до этого шага.
Наивное решение выглядит примерно так (взято у ... | [
"noreply@github.com"
] | noreply@github.com |
2199907c60b642fc0b49a0f65c76fad3bede684c | a7bc9d934d27422831b69d21364061cd715e108d | /python-studies/loan.py | 9fcf00e87d899b0a6024d52c2d4df8436a7ce9e0 | [
"MIT"
] | permissive | jhfelix/PYTHON | 7de0dffdd33315653a042c9e24a899cc1e10f89a | 7aaeeb082035327032b6f36e797fd824a51d60ae | refs/heads/main | 2023-03-14T08:34:06.497870 | 2021-03-05T20:14:54 | 2021-03-05T20:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | house = float(input('Enter the value of the house '))
salary = float(input('Enter your salary '))
years = int(input('Enter the number of years '))
installment = house / (years * 12)
minimum = salary * 30/100
print('The installment will be: {:.2f}'.format(installment))
if installment <= minimum:
print('Loan granted'... | [
"jjsousa6@gmail.com"
] | jjsousa6@gmail.com |
a500f896814b804667d401c3e0da8d8b792bbad7 | ea9a4e5edd1e5fbbfb0ec418b717ec14005db23a | /Graph_EEG/RGNN.py | 3c36125c376e9daaf3eab07e2133efe4457ee440 | [] | no_license | MizWong/Graph_EEG | da6032ca728d77144c95af9c298ee9d96cd37564 | 3882572f7eaa9e96e1417b8249f494c7f6c952f1 | refs/heads/master | 2022-10-22T19:23:38.901742 | 2020-06-13T13:10:08 | 2020-06-13T13:10:08 | 272,010,644 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,214 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 6 20:19:22 2020
@author: miz
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
from torch_geometric.nn import SGConv, global_add_pool
from torch_scatter import scatter_add
from torch_geometri... | [
"MizWong@foxmail.com"
] | MizWong@foxmail.com |
b78ddbc1564251804689dd52abf7d3bc88e893c1 | ea5595f6f20f45f62a850b2e9a5265e51909d0c3 | /bjnatividad_simulation4.py | f70913146262965d547c69a1428b1cff9628ead3 | [] | no_license | miyagi08/Algorithms | da10328853e6f21c6b31d15cdac7d291e840b74a | de1389105d6aa5b97d0af1b37960b6f9ccdea35a | refs/heads/master | 2021-01-15T22:09:21.880154 | 2012-08-03T04:03:41 | 2012-08-03T04:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | import pygame
import sys
import math
import random
pygame.init()
pygame.mouse.set_visible(True)
font = pygame.font.Font("freesansbold.ttf", 32)
clock = pygame.time.Clock()
window = pygame.display.set_mode([800,600])
background_color = pygame.Color(240,25,255)
class Ball:
def __init__(self, x, y):
self.x... | [
"Bjmyla08@gmail.com"
] | Bjmyla08@gmail.com |
873d1bd6ca2ee40b96de7283f1881593207e2e85 | 3eaaf73aeb74fc0a36b577e2616d2d372316351e | /withKid/代码清单4-end.py | 80ccd67f7f05505abba1754abf12085c39220d87 | [] | no_license | 845318843/20190323learnPython | 21fbf0c6c91c649825a8b7ea1bbbdba7cb2a4866 | bf348ad13df0a1e140e0c93658622b3875536b08 | refs/heads/master | 2020-05-01T07:30:40.971528 | 2019-03-29T06:29:17 | 2019-03-29T06:29:17 | 177,353,400 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # 测试题
apple = int(3.14)
print(apple)
# 第二题不行 先算5/9 等于零
temp = 13.2
# 第三题
print(int(temp+0.5))
# 动手试一试
cat = '12.34'
dog = float(cat)
duck = int(56.78)
ken = int(float(cat))
print(dog, " ", duck, " ", ken)
| [
"845318843@qq.com"
] | 845318843@qq.com |
51b931f4cbc8c6615df2d81a2b0a5b3b96daf7dc | b88ae2886349c3334d9b7e736630ba82e3264f6f | /main_app/migrations/0002_recipe_user.py | 065fc76e3c593a96373f34238555bfdc369e3b4b | [] | no_license | oleomark/RecipeRotator | 54f9a2d0a747c8f37805234f0b51c599474ffa87 | 738de53e0ae2a07ec9a9fd6530e679b9440043c7 | refs/heads/master | 2023-05-07T13:10:59.663770 | 2021-05-28T15:59:47 | 2021-05-28T15:59:47 | 369,677,375 | 0 | 2 | null | 2021-05-28T08:30:34 | 2021-05-21T23:46:36 | Python | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.2.3 on 2021-05-24 17:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main_app', '0001_initial... | [
"aromeekim@aromees-mbp.home"
] | aromeekim@aromees-mbp.home |
8053f79e0e03dda1c92981c32cad2dae86baf930 | 4a9faea1da0a95a311e4a4ccf83e477aa959ce30 | /doors/admin.py | ae963019881480ceecd132273a5731ba30411727 | [] | no_license | hobbes3/doors | 430949b390f4c8d5deafb225ea13f2ac9b27ccae | a46231e50333a300252133d8d0e69dae8b52c4fa | refs/heads/master | 2020-04-28T21:41:57.383094 | 2013-05-16T06:01:48 | 2013-05-16T06:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.contrib import admin
from doors.models import *
class PropertyAdmin(admin.ModelAdmin):
list_display = (
'name',
'property_type',
'tenant_count',
'address_line_one',
'address_line_two',
'city',
'state',
'zip_code',
'website',
... | [
"hobbes3@gmail.com"
] | hobbes3@gmail.com |
2c2f24af74010e46ee8e03fb06314bd10414c50b | 9666bb704a40c3ef6c5f8711369c9ad703962ac0 | /curate_21319.py | 314fe314e53e060d8c461b98da215562c1d663c0 | [] | no_license | id96/frenchRev_honors | d0993145a287aacc5ddb5b57417932ce63cdded8 | e467b4863aa6fef28b7b1843c0ffdc42a847e46e | refs/heads/master | 2020-03-28T11:54:30.342060 | 2019-02-13T15:39:03 | 2019-02-13T15:39:03 | 148,255,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import re, sys
import numpy as np
from collections import Counter
word_pattern = re.compile("\w[\-\w]+\w")
vocab_reader = open('clean_output/reduction_test.txt', mode='r')
vocab_writer = open('clean_output/reduction_test_string2.txt', mode='w')
stopwords = ['les', 'que', 'des', 'qui', 'est', 'vous', 'dans', 'pour'... | [
"id96@cornell.edu"
] | id96@cornell.edu |
d9213d2c6b72b46b327ce6a9697cc507a3850b4e | c29cdc64f42eae3bc7d584a7b9b84961ce09da04 | /bitcoinx/__init__.py | d8c08b3d58a13838d07a60b0f1dbabaa6c15fe86 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | msinkec/bitcoinX | d379e32e9dc0f43700710032ad0ce7ffca2e398d | 26ec8a8a8c2a6423e0438dea9918c740c96f5eb2 | refs/heads/master | 2023-04-28T18:52:12.072225 | 2021-05-11T11:19:44 | 2021-05-11T11:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from .address import *
from .base58 import *
from .bip32 import *
from .chain import *
from .consts import *
from .errors import *
from .hashes import *
from .interpreter import *
from .keys import *
from .misc import *
from .mnemonic import *
from .networks import *
from .packing import *
from .script import *
from .s... | [
"kyuupichan@gmail.com"
] | kyuupichan@gmail.com |
2db47ba68f2ea413bcfb86f6c1fe52f077823732 | 98b1956594921aeef6e4b3c0f5b15703c3eee6a7 | /atom/proton/python/proton_api/models/purchase_calculator_horizon_request.py | b7590bee1dea46714dec17a3678d38a86cb52947 | [
"Apache-2.0"
] | permissive | sumit4-ttn/SDK | d4db3dcac077e9c9508a8227010a2ab764c31023 | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | refs/heads/master | 2022-11-25T14:05:16.911068 | 2020-08-09T17:31:55 | 2020-08-09T17:31:55 | 286,413,715 | 0 | 0 | Apache-2.0 | 2020-08-10T08:03:04 | 2020-08-10T08:03:03 | null | UTF-8 | Python | false | false | 11,099 | py | # coding: utf-8
"""
Hydrogen Proton API
Financial engineering module of Hydrogen Atom # noqa: E501
OpenAPI spec version: 1.7.18
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Purc... | [
"hydrogen@Hydrogens-MacBook-Pro.local"
] | hydrogen@Hydrogens-MacBook-Pro.local |
c9b4bbec3144cad904dfdcd615ec193095982826 | 0d9de851c1300e3e32d0cc451c11056c8d66000b | /src/lib/simpleFunctions/__init__.py | c80d4494c99e377f9f42fe8c5b12f188feb330b1 | [
"MIT"
] | permissive | sankhaMukherjee/vtk | 3fa91641c832f4260514588425474a42dce51d75 | fc6ae8b4e56d62796a1a0d28e0c7dce598114103 | refs/heads/master | 2022-12-11T02:02:08.036116 | 2020-02-24T15:51:41 | 2020-02-24T15:51:41 | 232,733,822 | 0 | 0 | MIT | 2022-12-08T03:24:47 | 2020-01-09T05:59:01 | Python | UTF-8 | Python | false | false | 112 | py | """simpleFunctions
This contains simple functions that can be used for creating more
complex visualizations
""" | [
"sankha.mukherjee@gmail.com"
] | sankha.mukherjee@gmail.com |
6fcf9314cf403a3f34a5b37ac18fa6fe9b8dbee2 | 69fa431cc593c11f2e356aa558208ff9d7bfe669 | /python_version/main.py | e42f775e491e501b8f2622970e2ae28a2b5726de | [] | no_license | k-young-passionate/Baekjoon | ac1a31be19cdc1d28f305f64c8dd2875fa3c804c | 0515c265f73f81b284264d912865520a2331d169 | refs/heads/master | 2021-06-27T12:15:35.036178 | 2020-09-24T12:40:37 | 2020-09-24T12:40:37 | 147,852,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from p13549 import result
if __name__ == "__main__":
result()
| [
"kyshim9004@gmail.com"
] | kyshim9004@gmail.com |
07b1cc6f15706cc85195d1f31342c5c903119290 | bdf94f3803e70dde146ca4a6a1984a5fdc5acea0 | /locallibrary/catalog/migrations/0003_bookinstance_borrower.py | c9aeae11c7714df68ffb713c24a59d1275a00ea4 | [] | no_license | brandonkeffer/Assign1Deploy | 86f012bee87961b23dd436bc51fb6a428a38ea79 | f5dd76917516305b13a53eb133b28e9baf686ec3 | refs/heads/main | 2023-03-03T18:36:36.440169 | 2021-02-08T02:25:55 | 2021-02-08T02:25:55 | 336,937,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # Generated by Django 3.1.6 on 2021-02-07 20:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('catalog', '0002_auto_202... | [
"bkeffer@unomaha.edu"
] | bkeffer@unomaha.edu |
7c9bf108963d9b8a6fb010e24bdf22b9642acc45 | 3c4228934c8dc847f74ad80de07846e802688360 | /api.py | 2018ce5b69ff7baf94c51352b3c91dc89e15394b | [] | no_license | dh2eraj/emojifier | b1795cfdd534e5f5ab6c41c6b1c31b74f1ca734e | 8cda7831f6a960d2a8b2ef98cc1894de7f568bd2 | refs/heads/master | 2022-11-29T23:56:49.986764 | 2020-03-31T13:51:38 | 2020-03-31T13:51:38 | 251,609,905 | 0 | 0 | null | 2022-11-21T21:56:03 | 2020-03-31T13:24:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,423 | py | from keras.models import model_from_json
import emoji
import pandas as pd
import numpy as np
emoji_dictionary = {"0": "\u2764\uFE0F", # :heart: prints a black instead of red heart depending on the font
"1": ":baseball:",
"2": ":beaming_face_with_smiling_eyes:",
... | [
"noreply@github.com"
] | noreply@github.com |
ed146779588cd7189d51bb5d520952ed956f518a | 7ff0077a55f6bf4a74704e430f354aeabaae3e0b | /tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py | a92246b95c13587324e028dd9841e11f232c49ad | [
"Apache-2.0"
] | permissive | markaduol/probability | 50a1d97810d11c747bd9546f977b2937c9e04d78 | 8af21dff96502a5bdc01b1be2c595043a3efc5d1 | refs/heads/master | 2020-03-29T20:50:26.001297 | 2018-09-25T21:51:10 | 2018-09-25T21:51:50 | 150,333,784 | 0 | 1 | Apache-2.0 | 2018-09-25T21:54:49 | 2018-09-25T21:54:49 | null | UTF-8 | Python | false | false | 6,579 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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 o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
2dd536b904a62506b93274bb3d0f22d5a262597e | 48fa4e50b602b75a4ed397ec87f837af761ed3c9 | /it3/test_B.py | aeeb02d6a183c991bb942b7044a9366d1fee1bc8 | [] | no_license | Rezga12/information-theory | 17ede0d87dd18076e4236aae34fd5b93ddbdff46 | bb7d76fa296eb2f9683dd7058e6f956d641830cf | refs/heads/master | 2020-08-19T19:39:06.838144 | 2019-12-08T08:12:08 | 2019-12-08T08:12:08 | 215,947,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | import sys
import os
from os import path
import numpy as np
def file_to_matrix(f, sz):
matrix = []
matrix = f.read().split('\n')[:sz]
matrix = list(map(list, matrix))
for i in range(len(matrix)):
s = matrix[i]
matrix[i] = list(map(int, s))
return matrix
if __name__ == "__main__":... | [
"rmeis16@freeuni.edu.ge"
] | rmeis16@freeuni.edu.ge |
a5f2d175c4bd39173b6e5ab513c9561003e9c357 | 4752c7ad35fb4d703351b81e4aac152999a4bf62 | /imagenet_codebase/modules/layers.py | 2c0fcdaab936410b5dee623b63b7f9538fb4607a | [] | no_license | LaVieEnRoseSMZ/OQA | 823e12f09dc5ac484ec24618194be4c20f1d52fd | 99cd181280e97140e228f4d7fb7c71e8412c9aa1 | refs/heads/main | 2022-12-30T20:58:37.296385 | 2020-10-21T07:36:20 | 2020-10-21T07:36:20 | 302,518,655 | 24 | 6 | null | null | null | null | UTF-8 | Python | false | false | 16,783 | py | from imagenet_codebase.utils import *
def set_layer_from_config(layer_config):
if layer_config is None:
return None
name2layer = {
ConvLayer.__name__: ConvLayer,
DepthConvLayer.__name__: DepthConvLayer,
PoolingLayer.__name__: PoolingLayer,
IdentityLayer.__name__: Ident... | [
"shenmingzhu@sensetime.com"
] | shenmingzhu@sensetime.com |
93a48f41ace29a59cbacd0abae3ae28cf4ce270d | ba416d2a2b793b8b7b34b8fef6d9f7dffa31ea27 | /posts/views.py | f8f03c11d23a0b7b9ec51ecf6ff71ccc101d4fc7 | [] | no_license | sVujke/blog_django | 15fef108ee467ab7f82538d4e49ab5976412e510 | c1d48091194d29b427a301be9f478646d7dcfc80 | refs/heads/master | 2021-01-17T16:22:35.821386 | 2016-07-25T15:37:57 | 2016-07-25T15:37:57 | 64,137,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
#def index(request):
# return render(request, "index.html", {})
def posts_home(request):
return render(request,"index.html",{})
def post_create(request):
return HttpResponse("<h1>Create!</h1>")
def post_det... | [
"stefanvujovic93@gmail.com"
] | stefanvujovic93@gmail.com |
70a9a462bddf6d39bab1fda9f89e3b18a1d676f3 | 516e5306016746d799cb0486eb66134dee2a4768 | /partition.py | 2d70ef23dad0fb3518ba96114bfa425974262ca8 | [
"MIT"
] | permissive | kirito25/integer-partition | d9784726e4a3161afa99ed1f33b53b10260f82dd | 73aa0a2683aec2585d2171302c3e913a804719bc | refs/heads/master | 2021-01-25T13:06:26.108405 | 2018-03-02T23:12:34 | 2018-03-02T23:12:34 | 123,529,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import sys
"""
Generates all the partitions of number n.
If doall is true it will also generate the
partitions for n-1,...,0
"""
def partitions(n, doall=False):
# base case of recursion: zero
if n == 0:
yield [0]
return
# recurively build partition
for p in partitions(n - 1, doall):
... | [
"cristian@cs.umb.edu"
] | cristian@cs.umb.edu |
34b5e5ca851ec421d6839040c8cf986f9d47e3e2 | 16f34a866a0fba5352dc9d7c83de741fdbc13df9 | /lecture_2/lists_examples.py | efd47c11e96c270886a066711243ea540fc48d4f | [] | no_license | ethanbar11/haskal_28_6_21 | 02fd6ae22b83d4e4678a9bba0dd0b90af147a05e | 2c6a2a5fc1db2cafdfde88593b3d55048ed86bc3 | refs/heads/main | 2023-07-10T17:33:20.513451 | 2021-08-23T16:57:15 | 2021-08-23T16:57:15 | 383,196,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | lst = [True, 1, 2, 3, 'Hello']
print(lst[0])
lst[1] = 15
print(lst)
length_of_lst = len(lst)
print('The length of the list is', length_of_lst)
print(len('Hello'))
lst_2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print(lst_2[1:7:2])
| [
"ethanbarbar@gmail.com"
] | ethanbarbar@gmail.com |
a757f3d914bdde0ef89da7e2fadcee03f355b5be | 87d66e2aba292a412377144a1fef5a91286d8788 | /App/migrations/0002_mainnav.py | fc2f321591cec1a572135f9aa97e84a56c51099f | [] | no_license | fandsimple/shop | b9436debe42bb2970921917ccfb44b5e7319722b | b505dc834246a32fefaaadbc11d9d6f9ef3f8fa9 | refs/heads/master | 2021-03-12T14:18:26.075625 | 2020-03-18T14:08:48 | 2020-03-18T14:08:48 | 246,628,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-09-26 15:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"fand1024@163.com"
] | fand1024@163.com |
ec94c28f00614ff819588a8cf42fd09ba957a6ff | c7f5d9b7f68953b3a3eea4849807fc4ec55642e1 | /Algorithms.py | 2e6dfc831cdf9768ee7327a6cbbd941ac6fa0b39 | [] | no_license | V-sety/Sorting-algirithms-in-Tkinter | 288f4c3188614c3bf2f81b64815ad25a51134cca | c9258583c30dc8e1c127ab2a93e9b0c49c1ad1fc | refs/heads/master | 2022-07-16T06:08:58.114920 | 2020-05-14T16:53:49 | 2020-05-14T16:53:49 | 263,349,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | import time
def bubbleSort(array, drawArr):
if len(array) == 1:
return array
l = len(array)-1
while l != 0:
for i in range(l):
if array[i] > array[i+1]:
array[i], array[i+1] = array[i+1], array[i]
drawArr(array, ["pink" if x == i or x == i +
... | [
"Simon.Volhv@gmail.com"
] | Simon.Volhv@gmail.com |
bf5954d24c61d538ff0ac4b0739015a5e3d1f4ff | 80f0102d7536e2bb9bbecab4329a22247cb7c2dc | /defword | b78896e804902d93a1a1a85f83703533d21fa936 | [] | no_license | mpatel25/grePrep | 0e139ec5342ad359346942e3e05133bba60527be | ffdcd8b2b85fda4920cf10baa0cb33e08423dba8 | refs/heads/master | 2020-04-05T21:36:54.018756 | 2018-12-01T20:50:02 | 2018-12-01T20:50:02 | 157,226,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | #!/usr/bin/env python3
import sys
from os import system, path
import random
import textwrap
from datetime import datetime
#--------------GETCH-----------------------------------------------------
class _Getch:
"""Gets a single character from standard input. Does not echo to the
screen."""
def __init__(self):... | [
"medhajpatel@gmail.com"
] | medhajpatel@gmail.com | |
83fe8f031b24bb99f2d85a50f8485a683f7ad80d | ba88160e72d704fb0de4004ee5f6dac3c3a9b3e7 | /solved/icpcteamselection.py | b1ba5abbcef4407483b44dcbf07c7738c1e6c7f4 | [] | no_license | Ujjwal-N/programming_problems | 8b604a34dcae6ff01b973235d1c51eec8ed2f3fb | f972e86063ccb65f69981d38eaee7cbf4e45a94c | refs/heads/main | 2023-05-30T21:31:58.005400 | 2021-07-13T23:50:15 | 2021-07-13T23:50:15 | 316,880,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | import random
import math
nums = []
def main():
global nums
numDataSets = int(input())
for i in range(numDataSets):
currLen = int(input()) * 3
numStrings = input().split()
for item in numStrings:
binSearchAppend(int(item))
i = int(currLen / 3)
retInt = 0... | [
"ujjwal.nadhani@gmail.com"
] | ujjwal.nadhani@gmail.com |
a130f0c853f62605daccb19b5841e9f2933371d9 | 192f6751bb9f68e20b6c7de5c8732c0ad91d2606 | /similarity.py | 27ae418426438d0b01f9bd1ef2158ead6dbfee30 | [] | no_license | ganeshbhosale86/beer_challenge_analytics | f4125d1e60736b5fd9507d798f4090c3c4f35f44 | 2ed46a1c827e6bf1cfa60987cba371e6ccc07708 | refs/heads/main | 2023-01-10T07:33:00.382957 | 2020-11-12T08:45:08 | 2020-11-12T08:45:08 | 312,196,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import spacy
import numpy as np
import pandas as pd
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import preprocessing as prep
import utils
def s... | [
"noreply@github.com"
] | noreply@github.com |
8efcb650afa9441b110c665d318f32b37546ba99 | 77263a75ff8d0d881f237018f4f87b1efd767bed | /prac_04/list_comprehensions.py | cd79160523230366269af9b1dfdca69fcf4df175 | [] | no_license | BrodyJorgensen/CP1404 | d92f5e0d803df98f2bde4d123042efd44663ad6f | 6dfbc3679c7edbda273e0ca3112e5b106bc3cab0 | refs/heads/master | 2020-04-30T13:49:19.757134 | 2019-04-11T03:51:56 | 2019-04-11T03:51:56 | 176,870,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | names = ["Bob", "Angel", "Jimi", "Alan", "Ada"]
full_names = ["Bob Martin", "Angel Harlem", "Jimi Hendrix", "Alan Turing",
"Ada Lovelace"]
first_initials = []
for name in names:
first_initials.append(name[0])
print(first_initials)
first_initials = [name[0] for name in names]
print(first_initials)
fu... | [
"jorgo9110@gmail.com"
] | jorgo9110@gmail.com |
e5dbca1cb79bc850369b95e9e1b2896737e4e03a | 0364f335020f6a9f569c316d29922031244e31e6 | /program/tensorflow object detection.py | 2ca763802ed303dc0b605333a86975359543d2de | [] | no_license | mcl19909949541/programming | 32cd380c029798f3b2bb1c00b790629d46a1f789 | 2c21ab1edd4fda5498e2a020999b3178c43f4bd1 | refs/heads/main | 2023-07-06T05:22:28.401378 | 2021-08-08T03:21:45 | 2021-08-08T03:21:45 | 392,913,063 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | # coding: utf-8
# 可以放在任何文件夹下运行(前提正确配置API[环境变量])
# 退出 按q键
import numpy as np
import tensorflow as tf
import cv2
import os
from object_detection.utils import visualization_utils as vis_util
from object_detection.utils import label_map_util
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
cv2.setUseOptimized(True) # ... | [
"noreply@github.com"
] | noreply@github.com |
4f9b64e48d3dff3f060542a5076a2034a6dffc06 | 3768876f04edbe64688b88de9e4c16b3aa257380 | /foodtruck/example.py | ee088e384669f61eb747ae16e44d26331b41c04b | [] | no_license | SoyoungPark1202/SeoulFestivalDataMining | c510d999fafb943667f36649ec7349c5fe80265a | ac779ae997e1c70d7f8e2abd838ba23f2cb95c76 | refs/heads/master | 2020-03-24T07:29:56.706608 | 2018-07-27T11:56:01 | 2018-07-27T12:13:24 | 142,566,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,839 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
BORDER_LINES = [
[(5, 1), (5, 2), (7, 2), (7, 3), (11, 3), (11, 0)], # 인천
[(5, 4), (5, 5), (2, 5), (2, 7), (4, 7), (4, 9), (7, 9), (7, 7), (9, 7),
(9, 5), (10, 5), (10, 4), (5, 4)], # 서울
[(1, 7), (1, 8), (3, 8), (3, 10), (10, 10)... | [
"soyoung12002@gmail.com"
] | soyoung12002@gmail.com |
4c6b7753f53b60c9864168194e34f83687e37277 | 40a0d943b85271dc1f55b211b6e6f998dcef8364 | /PYTHON/karyawan/bubbleSort.py | c5fa2ee20ccab77b5dd92335ac8e008331e4e8f3 | [] | no_license | OtakUdang24/Solve-The-Problem | 5b0ac86ade2993abb11542422d91a073da791c2a | 454918a70e3af56e11c08ef3c9f44d1e68af1863 | refs/heads/master | 2021-11-04T14:24:10.940653 | 2019-04-28T05:21:02 | 2019-04-28T05:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | data = [
["Yusuf", 100000000],
["Eko", 30000],
["Anggoro", 120]
]
n = len(data)
#
# for j in range(n):
#
# for k in range(0, n-j-1):
# if data[k][1] > data[k+1][1]:
# data[k][0], data[k+1][0] = data[k+1][0], data[k][0]
# data[k][1], data[k+1][1] = data[k+1][1], data[k][1]... | [
"yusufeko2001@gmail.com"
] | yusufeko2001@gmail.com |
fb523d4ac0701ee26b2a08da783ef7cf65994e9f | 19b4f61d6da8e6bb8d924fb21f846c8c813ba3d8 | /tarea012.py | c7a0406fb43da55aac78bfdd0e640d4836ba5c4f | [] | no_license | gjredondo/REPOSITORIODBGUSTAVOREDONDO | 412c10f850a4cb7d9babb35a3fa0c93000360c9d | 2c01ee6b60877cab28c0c1aace7fdb761c3badae | refs/heads/master | 2022-12-08T03:15:17.985746 | 2020-08-27T04:59:37 | 2020-08-27T04:59:37 | 290,678,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py |
def parimpar(num):
if num%2==0:
boole=0
else:
boole=1
return(boole)
def leernum():
num = float (input("Digite un numero "))
boole = parimpar(num)
if boole==0:
print(f"El numero {num} es Par!")
else:
print(f"El numero {num} es Impar!")
def main():... | [
"gjredondo@uniguajira.edu.co"
] | gjredondo@uniguajira.edu.co |
0b7d14607047c9647069a7f089c86bde158bc707 | 4be5b0d3705a938a1865c7f30dc52e2975c0d74a | /sdk_python/aliyun-python-sdk-kms-2.11.0/aliyunsdkkms/request/v20160120/DescribeRegionsRequest.py | ad1b24874ed5a536c5d23ce7f88bf3ccbeb8d46e | [] | no_license | SnoopySYF/garden | 940fdf8a95cc3fcda9001a46ed79eb3793896b19 | 9fba6d76c14b56cd365883cfa5aa2011f6d92513 | refs/heads/master | 2022-12-10T10:57:08.264324 | 2020-09-01T23:34:00 | 2020-09-01T23:34:00 | 287,958,913 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"beastkillerbin@gmail.com"
] | beastkillerbin@gmail.com |
2c50ae17bf7a4020e4c38dad89b8c2f2e718938e | 2c22736309a50968896b4724df4a7a1d1a150d88 | /0x01-python-if_else_loops_functions/102-main_bytecode.py | 4801657a690e4c9923a4606d44fc6f58f6c90ae0 | [] | no_license | gcifuentess/holbertonschool-higher_level_programming | ce9f263c0eef07facc1e02b719a8ae7193233d6d | 75e405ec7f1aa9138aa54e86f7b41aa08ead7f2a | refs/heads/master | 2023-06-18T08:36:22.580908 | 2021-07-18T20:46:40 | 2021-07-18T20:46:40 | 291,871,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/env python3
import dis
magic = __import__('102-magic_calculation').magic_calculation
dis.dis(magic)
| [
"1795@holbertonschool.com"
] | 1795@holbertonschool.com |
6741d8af6bd64f44ce8282efeb4594958db494e4 | 1fc9a12c86be4e440f4f0d95c8b871c79df07545 | /ML Libariries/python_pandas/dataframe_row.py | b1f101d5632b2dcc45428ad701ace69103a14311 | [] | no_license | Rohit-Gupta-Web3/Articles | a56e7f1b36d6d5efd846eec2e1a4036716ac16eb | 0f584916e065059d4dd1e95e7de874a7830fdff4 | refs/heads/master | 2023-05-14T02:50:17.817951 | 2020-07-26T06:44:10 | 2020-07-26T06:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import pandas as pd
data = {'Name':['C','Sharp','Corner'], 'Age':[20,21,22], 'Address':['Delhi','Kanpur','Tamil Nadu']}
df = pd.DataFrame(data)
data1= df.loc[0]
print(data1)
| [
"rohit.gupta@iic.ac.in"
] | rohit.gupta@iic.ac.in |
0928b2aef6fb3bf066f79c87ebba6bc80a7eb927 | cf09d6430e37b5460d7208d6cae6d3af0fa15925 | /jsonbot/jsb/drivers/irc/irc.py | 73b02fba5cbb17f1b57d99a86feea83c9b31e61d | [
"MIT"
] | permissive | Lujeni/old-projects | 2bbf0ff89852a3e4a9677475a615d2ee4b07d635 | 657304c8b017a98935de9728fc695abe8be7cc4f | refs/heads/master | 2021-03-12T23:08:34.054777 | 2014-10-16T23:10:15 | 2014-10-16T23:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,684 | py | # jsb/socklib/irc/irc.py
#
#
"""
an Irc object handles the connection to the irc server .. receiving,
sending, connect and reconnect code.
"""
## jsb imports
from jsb.utils.exception import handle_exception
from jsb.utils.generic import toenc, fromenc
from jsb.utils.generic import getrandomnick, strippedtx... | [
"julien@thebault.co"
] | julien@thebault.co |
8e6888d89f7bfecd8770a5f22c026c8bec6f6e1c | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/peering/v20201001/prefix.py | 590d1ca07d2db7f49feb2223d306ee9a2fcd6f6d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,122 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
bad111c370e04a62e3e9f19868fc1862a53e48f3 | fd877cb919622d6a4efa305fb9eaec8a31e8dd37 | /scripts/coop/extract_idhs.py | 96006b4849a3fe65260d49d3758153010ba1974b | [
"MIT"
] | permissive | NCiobo/iem | 37df9bc466ffcbe4f6b1f9c29c6b5266559f200c | 75da5e681b073c6047f5a2fb76721eaa0964c2ed | refs/heads/master | 2021-01-23T09:39:33.090955 | 2017-09-05T16:34:12 | 2017-09-05T16:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | """Extraction as requested by IA Public Health"""
import psycopg2
import sys
YEAR = int(sys.argv[1])
def main(argv):
"""Do Something"""
pgconn = psycopg2.connect(database='postgis', host='localhost',
port=5555, user='nobody')
cursor = pgconn.cursor()
cursor2 = pgconn.cur... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
cc3eb6baa39ba7ceeabae74afd25b1cf174f9fea | 1d3cf12d23880584a699b91a93dc0582f8805449 | /ros2multicast/ros2multicast/command/multicast.py | 1a1c67763858058794b464e7f447cbcbfbb22713 | [
"Apache-2.0"
] | permissive | LoyVanBeek/ros2cli | 5f90e5e6d9a760934324cb481092ff2e938a0353 | 93e717c042a06d21e267a89a7de7780335acb323 | refs/heads/master | 2020-12-02T09:44:51.534493 | 2019-12-16T19:12:51 | 2019-12-16T19:12:51 | 230,969,789 | 0 | 0 | Apache-2.0 | 2019-12-30T19:36:49 | 2019-12-30T19:36:49 | null | UTF-8 | Python | false | false | 1,441 | py | # Copyright 2017 Open Source Robotics Foundation, 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... | [
"noreply@github.com"
] | noreply@github.com |
f2c4e6b1a789554712a287c4f0a34afbf2126b22 | f9c0e305ca873cd9784f1a6f441fee0ca7fbc468 | /recom/main/map.py | e13f55ae806969fe8b3404e4775d65e18b170a56 | [] | no_license | flybetter/recom_web | b3caac2873786f4a10fbedc8b34d2ea4888aeafe | ef06f64931df594f4c8c6b2f72a59e0ad4a5e637 | refs/heads/master | 2020-03-27T10:21:35.813149 | 2018-10-10T08:47:56 | 2018-10-10T08:47:56 | 146,412,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from flask import render_template, Blueprint
from urllib import request
import json
from recom.main.recom_glorithm import startup, secondHouseRequestJson, get_history, get_associate_community
import logging
logging.basicConfig(level=logging.DEBUG)
bp = Blueprint('map', __name__, url_prefix='/map')
HISTORY_URL = 'ht... | [
"flybetter@163.com"
] | flybetter@163.com |
2ebeb1af2486684d1a3e45df73b6fbb9fe41cad1 | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /String/Shortest Distance to a Character.py | 61944332f699e54e8ea2514cf4b61df0e868fee3 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | class Solution(object):
def produce_range(self,arr,s,e):
if s == e:
return
else:
length = e-s
c = 1
for i in range(s,s+length/2):
arr[i] = c
c += 1
if (e-s) % 2 == 0:
c -= 1
... | [
"spondoncsebuet@gmail.com"
] | spondoncsebuet@gmail.com |
503bf0ab703b6185d62330db9da1e486310d8b2e | 5d7d1ce1c51a1a7db4928c6eee73db9cc2a17b6c | /Day 4/W8/Sols/p1.py | 5d174c40dc882c91ac05ed05d2c51dec1d6f0fbc | [] | no_license | CatPhD/JSC_Python | 7085545b136b32f25f243bca2987bfed63666b5f | a3bd8ccd21c775ffa362deffba453175d6613b04 | refs/heads/master | 2021-09-03T13:14:52.576746 | 2018-01-09T09:35:58 | 2018-01-09T09:35:58 | 115,262,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def encrypt(text, key):
length = len(text)
key = key.lower()
encrypted = ''
i = 0
while i < length:
e = ord(text[i]) ^ ord(key)
encrypted += chr(e)
i += 1
return encrypted
plainText = input('Enter plain text to encode: ')
key = input('Enter a key: ')
e... | [
"noreply@github.com"
] | noreply@github.com |
a89f5561d6f0d464153b830301be17dfa0e8c5c9 | f232e7baadf9c60a976793e119bcec0065570334 | /polygon-django/polygon/migrations/0008_auto_20210905_1724.py | 524aa8085a02b963258946693a5cac5d5c604fd9 | [] | no_license | LPJWS/polygon | 6bd71b04c8ba7d30e4547c4058bb820cd84f580a | 57e759ed10291ca3d5c8bf046ec4b6906faa3da9 | refs/heads/main | 2023-07-22T13:53:41.205427 | 2021-09-08T09:31:25 | 2021-09-08T09:31:25 | 403,398,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # Generated by Django 3.2.6 on 2021-09-05 14:24
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('polygon', '0007_task_date'),
]
operations = [
migrations.RemoveField(
model_name='task',
... | [
"lpjakewolfskin@gmail.com"
] | lpjakewolfskin@gmail.com |
953142c807eecf9abe449711514d5cd7ba8c584f | dec871a5af458af6ee6f8adde7023d7c6e11b809 | /Anonymous function.py | 25457de3cad933c043289416b5f7734ef26a1225 | [] | no_license | IbrarShakoor/Python-codes | 753e7108fcea09e79a44f501a76d31bc619a321d | ab0cf6e18241f98c400869968554be94f3b73ad6 | refs/heads/master | 2022-12-09T23:17:08.397975 | 2020-07-22T07:58:45 | 2020-07-22T07:58:45 | 281,322,770 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | #anonymous function =without name
#We can create the function without nam ein python
#These funtions are anonymous they dont have any name and they use in python
#we can pass these fun to other functions;
#Syntax is: anyname= lambda arguments :operation
#This lamda is a keyword also functions are ... | [
"noreply@github.com"
] | noreply@github.com |
2663c17a3be9d0bd971d43cf7e85554db1817f0f | 7562636f530c9f4cd6726c6232b29ec0c2793c6a | /leitor_inteiro.py | 489671afdf32820f0a1e522b1102fe91768c5585 | [] | no_license | Catarina607/Python-Lessons | 946ef8a541f947b2db3e2b05a9421a03c81c6f83 | 249ebfef1bf31825b0430580557031ea08581311 | refs/heads/main | 2023-04-29T15:29:21.618872 | 2023-04-15T21:46:30 | 2023-04-15T21:46:30 | 316,120,386 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py |
valor = int(input('Insira um valor: '))
print(valor)
| [
"noreply@github.com"
] | noreply@github.com |
5e10d01be687ad36d906c3e893f05564f5edc79e | bf4f11bcac4c92975fdcb98c328a03a663d2d9ae | /dask_gdf/tests/test_sort.py | 9c4988271286624f74c78fcbd7e0bede033a9e90 | [
"Apache-2.0"
] | permissive | Quansight/dask_gdf | 88063f6ca4d3de5a5e7ed5d2f3e23fbe55cc1523 | 9f67410f4ff6c5cea18f831404d2f2fe7bf632ab | refs/heads/master | 2020-03-28T14:46:50.533877 | 2018-11-06T19:26:56 | 2018-11-06T19:26:56 | 148,521,998 | 1 | 1 | Apache-2.0 | 2018-09-19T14:43:19 | 2018-09-12T18:12:49 | Python | UTF-8 | Python | false | false | 1,314 | py | import pytest
import numpy as np
import pandas as pd
import pygdf
import dask
import dask_gdf as dgd
@pytest.mark.parametrize('by', ['a', 'b'])
@pytest.mark.parametrize('nelem', [10, 100, 1000])
@pytest.mark.parametrize('nparts', [1, 2, 5, 10])
def test_sort_values(nelem, nparts, by):
df = pygdf.DataFrame()
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
b22f61d554cde13ac443a4d36afbcbe31b11503c | 061fae1214809965e14d5206eeb1976584fc3d3a | /venv/bin/rstpep2html.py | 8ab7109e663934072ddfaac2eee634b2b32ca27b | [] | no_license | glimpsewearables/GlimpseCamWebappV1Old | 5d89ddf9ad69757fe1d9651a62633b4ab45bdd63 | 567edda4c66f6b220a539000da887560af0708b8 | refs/heads/master | 2020-03-25T01:34:39.449982 | 2018-08-30T06:10:21 | 2018-08-30T06:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #!/home/ubuntu/GlimpseCamWebapp/venv/bin/python3
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhancement Proposal... | [
"ubuntu@ip-172-31-90-117.ec2.internal"
] | ubuntu@ip-172-31-90-117.ec2.internal |
46d3f251f99fc97444ae05edd04392c2014f16f2 | 16d1d07d393cbf398fa8c3eb99b5624638738447 | /stonks.py | 7d6da44a28b64a9dcc98df27ae99dc5a3a71d5ea | [] | no_license | CarsonCase/option_hedge_analysis | b665fbc735e2d95e54babe128637aba2305288dd | 83dcc87a1daffce83bd1d3d3f5192e2159947dac | refs/heads/master | 2022-11-06T02:26:41.757561 | 2020-05-27T21:00:39 | 2020-05-27T21:00:39 | 267,422,411 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | import yfinance as yf
import sys
from option import option
import config
#========================FUNCTIONS==============================
def makeList(is_call, option_list, min_volume):
valid_list = []
for i in option_list.index:
if(option_list.at[i,"volume"] > min_volume):
o = option(is_ca... | [
"carsonpcase@gmail.com"
] | carsonpcase@gmail.com |
88e97cd6c165b602d0400ab52d1421e77f5b4376 | f330a7a4e5e7b643bdc3c8664f5cf60c2b2fa266 | /python/tests/test.py | c017c0d54721c3534ddd4cd93028d268a0c6b935 | [
"Apache-2.0"
] | permissive | brymer-meneses/Autograd | ae3bf681b46376152d69827b580540556c08e7ec | 47b63eb76675a14dab4868160d292d7cde768154 | refs/heads/main | 2023-03-31T04:02:25.354480 | 2021-03-09T14:06:56 | 2021-03-09T14:06:56 | 344,804,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import os
import unittest
from ..autograd import Variable
class TestVariableGrad(unittest.TestCase):
def test_add(self):
a = Variable(2, requires_grad=True)
b = Variable(3)
c = a + b
c.backwards()
self.assertEqual(a.grads, 1)
self.assertEqual(b.grads, 0)
de... | [
"meneses.brymer@gmail.com"
] | meneses.brymer@gmail.com |
ee47ea3245a9cd92cd24c180636dd59a9eba5dfa | b6a31ec10b39a3dbae183ba40c42078cadf88946 | /383. Ransom Note.py | 900fdd239e174e5afdc8395cd90ddc62d89eb8ef | [] | no_license | QIAOZHIBAO0104/My-Leetcode-Records | 69fabd11b279f08861cd644973e51bf664da0d90 | 882724c8d50b2f21193c81e5072c31385c5e6b8e | refs/heads/main | 2023-07-11T00:17:02.368441 | 2021-08-07T16:19:45 | 2021-08-07T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | '''
https://leetcode.com/problems/ransom-note/
Given an arbitrary ransom note string and another string containing letters from all the magazines,
write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.
Each letter in the magazine string can o... | [
"noreply@github.com"
] | noreply@github.com |
4ed68097494e6b387f81ceefb955b667378aeb46 | 0fcaa731b9f602a331dedbd4aa5071d83d0757b8 | /ADT/graph.py | 8775f4f109ac5982b7d067b654543f54a5b7f171 | [] | no_license | Aprilmei/robot_world | 21d904bc20f4b837cb080d5ce5371e27287df9fd | 1d0067c8ee39d571230a678243061056a71fcdd8 | refs/heads/master | 2021-01-24T18:25:38.369262 | 2017-04-06T21:35:19 | 2017-04-06T21:35:19 | 84,432,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py |
class Graph:
def __init__(self):
self.__my_adjacency_list = []
self.__vertex_content = []
def add_vertex(self, x):
self.__my_adjacency_list.append([])
self.__vertex_content.append(x)
def add_edge(self, x, y):
if y not in self.__my_adjacency_list[x]:
... | [
"sanchiyou@msn.cn"
] | sanchiyou@msn.cn |
ad44dad875a365d275e56789aa2223cd41f871d1 | c9452790eca228a113d130139214067dd46016e9 | /unittest/profile_test.py | 762c2174e4d9cf96a73ecb4a8fed7db4b6af1468 | [] | no_license | SaraKaminska/Projekt-i-Webbramverk | 220bfa003424a269051eba3217da4d637c909df1 | cab15bc63833b8a62328016a1f2c09d3034e3deb | refs/heads/master | 2023-03-06T03:54:46.097445 | 2021-02-10T12:27:13 | 2021-02-10T12:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from unittest import TestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from Data_mongo.repositories.user_repository import remove_friend, get_user
from view import app
class ProfileTest(TestCase):
def setUp(self):
self.driver = webdriver.Chrome('chromedriver.exe')
... | [
"sara.kaminska@hotmail.com"
] | sara.kaminska@hotmail.com |
bcf06db0e1814cbe541fdf8eb26de9f4c5bd2ef2 | 57add1c1eae5da5044eba2e9cffe30a4d8fc5d3e | /WitchTrue/env/Scripts/django-admin.py | 6f634d6ece25befa4d105827e7a7085e694ab5cd | [] | no_license | Uraxara/UraxaraStore | 513ad50590f5863857957c61f0ae83b75e3a7a44 | 8ec5d942db2ad5be5aba05f182f2bfeeb6b31ede | refs/heads/master | 2022-08-24T04:02:51.618570 | 2020-05-31T17:03:08 | 2020-05-31T17:03:08 | 263,049,245 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!C:\Users\Oleja_norm\source\repos\WitchTrue\WitchTrue\env\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"devil3900@yandex.ru"
] | devil3900@yandex.ru |
040a28bbca0488bf75ae3e924255bc998ed49d07 | c060e97316872e208398bd7ca43f523c488047d3 | /Machine Learning A-Z(Python Files)/Part 1 - Data Preprocessing/my_data_preprocessing.py | b46ed2c934f461db2a621ca5e364b0325459c153 | [] | no_license | AshishBarvaliya/Machine-Learning-A_Z-algo- | cebb84c06844ce1090072086db56dc6c869273fd | f9b23f7b8d1ac4be80fab914435458b3d5832a6c | refs/heads/master | 2020-05-29T13:53:56.771921 | 2019-08-23T15:47:57 | 2019-08-23T15:47:57 | 189,177,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #-----------data processing---------
#import libs
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#read dataset
dataset = pd.read_csv('Data.csv')
x = dataset.iloc[:,:-1].values
y = dataset.iloc[:,3].values
#handle missing values
from sklearn.preprocessing import Imputer
imputer ... | [
"noreply@github.com"
] | noreply@github.com |
a9dade58948f6e5f6125a94e61ef08f83c7bc97d | 0fd65c18f1eb6432c70b28e3d2fd2a53700b7a88 | /Streamlit App/App/classify.py | f9688f9481658f0f433a41105c6e8ee80db9fbfb | [] | no_license | sambhavana/Traffic_Sign_Classifier-with-Streamlit | 3b332d9ddf85df6b27a1e05f444de19883894dc9 | ff06739e0bd96a1e5b012392516e1d60d8a6499f | refs/heads/master | 2022-06-26T09:36:22.946303 | 2020-05-11T08:38:36 | 2020-05-11T08:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing.image import img_to_array, load_img
import numpy as np
import streamlit as st
# The data will be downloaded only once and cached for future use by using "st.cache"
# get_model() loads the model into the cache
@st.cache(allow_output_muta... | [
"noreply@github.com"
] | noreply@github.com |
c982b1e6dd147785af191d72ea2358a10a9e69cd | d8eed0cb00b1dcf0f9e5940f095d1adbacce5211 | /blog_project/settings.py | 05da6c05ecc30eadf22e7ff4ffa0bfd764775f7c | [] | no_license | whalay/blogAPI | 56e89559b2f7078e10faacc54d17cb538a28c8b6 | a801b0ccf7bbeda35c0d50974aa3554b5f8c86b7 | refs/heads/master | 2023-08-12T17:32:29.483112 | 2021-10-02T23:35:30 | 2021-10-02T23:35:30 | 412,934,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | """
Django settings for blog_project project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pa... | [
"soliuy5@gmail.com"
] | soliuy5@gmail.com |
e7a852ac55d216250d2d7287cfbe728f56a66194 | 3b22944c3f2cc4337c27707bd312ed4a2e076f46 | /twibo_server/model/chat.py | 22dd322789473b6f0b73b7a3b805d8c97c01d5da | [] | no_license | fanchy888/twibo | cf91b5dcafa6d54ec45bb194225efa1f681745ad | 84eb52473780b71fe6f1fbeb93e37621c24b446e | refs/heads/master | 2022-10-29T12:03:31.483570 | 2022-10-23T16:52:07 | 2022-10-23T16:52:07 | 171,113,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | from datetime import datetime
from sqlalchemy import INTEGER, VARCHAR, BOOLEAN, TEXT, DateTime, Column
from twibo_server.model.mysql_manager import session_manager, MixinBase, Base
from twibo_server.model.user import UserModel
class ChatRoomModel(Base, MixinBase):
__tablename__ = 'ChatRoom'
PERSONAL = 'perso... | [
"fanchy888@gmail.com"
] | fanchy888@gmail.com |
da57d819bd3a67f05ae778ad9e7dcc40b419ae3f | ec346681f92705a8a7bc30c9518e1cddc4a82ec8 | /CariKerja/asgi.py | 8a782e8b20546c0c06a70654ee2613dca7a28cbe | [] | no_license | AlfanMask/CariKerja | da78e1d41d7819e441e51d5197d0f8d0d400b118 | 15a76c8d795dd25a66903c0f7a430993cf11772f | refs/heads/master | 2022-10-20T19:55:37.640693 | 2020-06-12T17:02:03 | 2020-06-12T17:02:03 | 271,007,362 | 0 | 0 | null | 2020-06-09T13:16:51 | 2020-06-09T13:16:50 | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for CariKerja project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"Philippurwoko123@gmail.com"
] | Philippurwoko123@gmail.com |
9f8ee571eeb0117fd6d3dc6d26daac16aed1426d | e8bb192a291e5e8f899ca4b298600db5f522f9ee | /benchmarks/src/garage_benchmarks/experiments/algos/vpg_garage_tf.py | 8894c4a9a1693f3769b6b5e244ea9bc564b36ad3 | [
"MIT"
] | permissive | songanz/garage | d3024dec0e6834659a6b2d209acc1283d6ce0c52 | e8c98648065e746a46e553ea58cda4d231e2f7e8 | refs/heads/master | 2022-11-30T03:44:15.874619 | 2020-08-06T18:37:17 | 2020-08-06T18:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | """A regression test for automatic benchmarking garage-TensorFlow-VPG."""
import gym
import tensorflow as tf
from garage import wrap_experiment
from garage.envs import GarageEnv, normalize
from garage.experiment import deterministic, LocalTFRunner
from garage.np.baselines import LinearFeatureBaseline
from garage.tf.al... | [
"noreply@github.com"
] | noreply@github.com |
a4e557eba9ada36c64c224421039d81c25d0f4f2 | b341425a14b5323125d98509473f382e013c3627 | /python/clone_db/create_db_connection.py | 077955f14364b9bf48145bcad1c443dc49e5b2d3 | [] | no_license | sandeeppradhan92/practice | 746da17ec482f939dd4002d80961ab1ace324b65 | 9c6027bca36d07a493185d278b9f09f619364a8e | refs/heads/master | 2020-04-16T01:48:14.876620 | 2020-02-24T14:58:16 | 2020-02-24T14:58:16 | 165,186,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from sqlalchemy.engine.url import URL
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
class db_connection:
def __init__(self, conn_parameters):
self.conn_parameters = conn_parameters
connection_string = URL(**conn_parameters)
self._engine = create_engine(connect... | [
"sandeeppradhan92@gmail.com"
] | sandeeppradhan92@gmail.com |
d8bd84ced1d4e374d9272f1f05d065184113eea6 | 4a3b42739001007bcb3a3ec1b3030cd8a6e6a01b | /3-Gui编程-tkinter/src/17-OptionMenu选项菜单控件.py | 40f2d5a103a1d0737b97be67ba8fe052f2b35201 | [] | no_license | YG-07/PyTkVideo | a15a08fe7453bfe5b1d8c4cc1a0aaff2b34f187f | 872d04e6e81e47298e446796ee44836e014b8628 | refs/heads/main | 2023-02-25T00:56:50.786671 | 2021-01-26T13:21:54 | 2021-01-26T13:21:54 | 331,215,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | #-*- coding:utf-8 -*-
from tkinter import *
from tkinter import messagebox
class Application(Frame):
# 一个经典的GUI程序
def __init__(self, master=None):
super().__init__(master) #super()是父类的构造器
self.master = master
self.pack()
self.createWidget()
def createWidget(self):
... | [
"1030138554@qq.com"
] | 1030138554@qq.com |
81f9777d85bfea570db4b14103e4242513d92ff8 | 917373dccfe9bfd1dddab437066fdf9172410ab2 | /python/modules_and_packages/03_packages/pkg1/module_D.py | 088a32c58d0f85de02a7c0cdbd7d917939de3d60 | [] | no_license | rotemjac/teaching_software | bebd8cefcc5c1f1c7ec874ed61cbb6d02f85b25e | 4461567855b40fab63051562ee61a05b52552b98 | refs/heads/master | 2021-06-15T19:43:32.910073 | 2019-09-20T22:01:26 | 2019-09-20T22:01:26 | 145,210,483 | 2 | 0 | null | 2019-04-10T09:09:04 | 2018-08-18T10:21:24 | Java | UTF-8 | Python | false | false | 52 | py |
def printer():
print("Hi from pkg1 - module_D") | [
"rotem_jac@yahoo.com"
] | rotem_jac@yahoo.com |
526b2f3d58ff323df5b38e4535fff2e98c14bbce | ffd81ca432a03f54292e567b85fcebe8c2ae24cd | /speed_test/lprof_speedtest.py | ed5c9dbcaf0da170877ccfdb40643615aff1da8b | [
"MIT"
] | permissive | jemissik/fetch3_nhl | f068fc456d245abfe0336024f644a69b1215f97f | 8a93f85a01ad985c4137079e6fa77bbe83d2429d | refs/heads/main | 2023-07-09T09:14:58.911068 | 2023-02-20T03:20:11 | 2023-02-20T03:20:11 | 429,869,390 | 1 | 3 | MIT | 2023-09-02T21:18:39 | 2021-11-19T16:44:30 | Python | UTF-8 | Python | false | false | 1,849 | py | import cProfile
import pstats
from pathlib import Path
try:
from fetch3.__main__ import (
Picard,
initial_conditions,
prepare_met_data,
setup_config,
spatial_discretization,
temporal_discretization,
)
from fetch3.model_functions import *
except ImportError:
... | [
"missik.2@osu.edu"
] | missik.2@osu.edu |
9b3bc29f7fc107bcad33a460f67e5bea06b6c446 | 348121e654a4a626b7eef745319a7168f205ebe9 | /venv/Scripts/django-admin.py | 9f8766dab7e330e9a5e70fc7472c54f86b461581 | [] | no_license | Vladxex/news_2 | 3d6aada6f4a32ab9a2ceb049d80667b1b2891074 | 4944c2fc55fb7c1384fdcfa77dcdc8da696ca9e9 | refs/heads/main | 2023-02-02T16:56:45.528881 | 2020-12-17T12:26:55 | 2020-12-17T12:26:55 | 322,286,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!c:\users\vlad_\desktop\uceba\snakes\news_2\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-adm... | [
"vlad_19_96@mail.ru"
] | vlad_19_96@mail.ru |
bdc03f096e691ea007bff299bb8a79c684f45a07 | 149639a08aabbd580f9fc72f899e2ed469d2d74e | /skypy/power_spectrum/_growth.py | 2ff11ab476ccb126c2b8802de2acce85c287eddc | [
"BSD-3-Clause"
] | permissive | sibirrer/skypy | 66bd089a65f9872daf90f871deb02e16ad910e35 | 9eb9330f90b021746f2c150fa0cb2d2c85026a96 | refs/heads/master | 2023-04-14T14:53:09.948469 | 2020-09-29T23:34:06 | 2020-09-29T23:34:06 | 255,949,180 | 0 | 0 | BSD-3-Clause | 2021-04-06T17:44:06 | 2020-04-15T14:52:51 | Python | UTF-8 | Python | false | false | 6,809 | py | """Growth function.
This computes the linear growth function in
perturbation theory.
"""
from astropy.utils import isiterable
import numpy as np
from scipy import integrate
__all__ = [
'growth_factor',
'growth_function',
'growth_function_carroll',
'growth_function_derivative',
]
def growth_function_ca... | [
"noreply@github.com"
] | noreply@github.com |
82109fa8a3e1b8f8bf950f064095c51bcb9be40c | 80abb15483a7d9656bd76d73374be8e0b69b5a90 | /feedback_project/feedback_project/asgi.py | 5a79d8d30b4bd54d473c089272e5f31060428716 | [] | no_license | bsvreddy555/my_project | 1f6424a13fb40c3abdb9b4938df50e6c9b5c53c8 | 700a2244decccdaab56eea86d925b0c1b65f122e | refs/heads/master | 2022-11-17T11:55:42.695163 | 2020-07-19T03:54:22 | 2020-07-19T03:54:22 | 280,787,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for feedback_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"mywindows2407@gmail.com"
] | mywindows2407@gmail.com |
b20b47135f62b8619d055add9626eae9ae7903a5 | ab55d83d3f396eddb6886cc480449dd11ca4c52a | /Problems/wertyu/Python3/wertyu.py | 71d91e6b2246ec81a9fede2ef5091c97edac559d | [] | no_license | Resethel/Kattis | 925c88a550553fea439ce072b284ab0d3eff7c25 | 92d5ef0479d4f5868fe79951ba25222e1793993b | refs/heads/master | 2022-09-10T04:33:20.726146 | 2022-09-06T08:53:42 | 2022-09-06T08:53:42 | 154,182,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # Using Python 3
# https://open.kattis.com/problems/wertyu
dict = {
'1':'‘',
'2':'1',
'3':'2',
'4':'3',
'5':'4',
'6':'5',
'7':'6',
'8':'7',
'9':'8',
'0':'9',
'-':'0',
'=':'-',
'W':'Q',
'E':'W',
'R':'E',
'T':'R',
'Y':'T',
'U':'Y',
'I':'U',
... | [
"resethel@gmail.com"
] | resethel@gmail.com |
a8d66ae6f1890c51b3679f27615bdb941ebb8284 | 5f69a6549b8d5e417553d910622e6855b2ae679b | /src/opendr/perception/face_recognition/algorithm/util/verification.py | 83ba8d023647523111cddab2d755f0ae441f07e0 | [
"Apache-2.0"
] | permissive | opendr-eu/opendr | 822219f709613d77c5eb62c5d02808d344239835 | b3d6ce670cdf63469fc5766630eb295d67b3d788 | refs/heads/master | 2023-08-31T07:02:36.375231 | 2023-08-29T06:39:51 | 2023-08-29T06:39:51 | 293,755,225 | 535 | 82 | Apache-2.0 | 2023-09-13T16:53:34 | 2020-09-08T08:55:04 | Python | UTF-8 | Python | false | false | 5,545 | py | """Helper for evaluation on the Labeled Faces in the Wild dataset
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restrictio... | [
"ptosidis@gmail.com"
] | ptosidis@gmail.com |
df251314f2e045c99600345965dcd45e6ea5f35e | a68dfddfa83b9ab7b8a8843bf1d118d27246c637 | /abc034/b.py | 83ef14959e900436372553d4b3987982cbef7244 | [] | no_license | ry3s/atcoder | fa1dbe3995a196df93ec2aec2ef63755c7b956ad | cc88d386269a56164ba64520230cf8c54ad18b3d | refs/heads/master | 2021-11-25T10:52:28.952908 | 2021-11-16T19:08:03 | 2021-11-16T19:08:03 | 185,827,644 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | n = int(input())
if n % 2 == 0:
print(n - 1)
else:
print(n + 1)
| [
"ktchg752@yahoo.co.jp"
] | ktchg752@yahoo.co.jp |
e3141a919d5497f8d19a2c37886e19d8c669ae13 | eca8bc1bb1cfdd01dc95cf4bebc3e437d7ea4570 | /niaarm/cli.py | 0cf2e75a2b347d7375e1724112007bf12e2beb3f | [
"MIT"
] | permissive | firefly-cpp/NiaARM | 4a2ba66577aeebfff7cf6e550b83f3f8fe1bd731 | f2bf618c4a27a2097eff6d131bede86c8c3c300a | refs/heads/main | 2023-08-02T14:28:07.143816 | 2023-07-20T13:47:03 | 2023-07-20T13:47:03 | 431,086,597 | 10 | 5 | MIT | 2023-07-20T13:47:05 | 2021-11-23T12:11:15 | Python | UTF-8 | Python | false | false | 6,633 | py | import argparse
from inspect import getmodule, getmembers, isfunction
import os
from pathlib import Path
import platform
import subprocess
import sys
import numpy as np
import niaarm
from niaarm import NiaARM, Dataset, get_rules
from niapy.util.factory import get_algorithm
from niapy.util import distances, repair
from... | [
"ziga.stupan@gmail.com"
] | ziga.stupan@gmail.com |
571dc3fd511171d8b01836d43438b0bc1133cc61 | 0e2915733c184c2529e36cb51b5562e9c287b96f | /comicpullcalvinespanol/comicpullcalvinespanol.py | 5acfd5ee46fea4f02138bca3d82c31cd642bf4d8 | [
"Unlicense"
] | permissive | ceafin/comicpullcalvinespanol | 43107e3f35ac8460500e88c5eace48607c7eeee3 | 34a1d056f4108280f5605a0f217f71f53b2093ac | refs/heads/master | 2022-03-31T23:41:35.526821 | 2020-01-30T05:32:54 | 2020-01-30T05:32:54 | 237,133,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python
from datetime import datetime, timedelta
from lxml import html
from urllib.request import urlopen, urlretrieve
import wget
def main():
for i in range(100, 1, -1):
now = datetime.now() - timedelta(days=i) # current date and time
date_time = now.strftime("%Y/%m/%d")
p... | [
"cmilner@indeed.com"
] | cmilner@indeed.com |
8dc21b539a1709fbbc19f848faf4d29c48d613e5 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Athena/training/demo/demo/weave/sum_ex.py | e71d44f05ce9cdb9fe79675d5a085c08694899d1 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,262 | py | import time
from numpy import array, arange
from scipy import weave
def weave_sum(a):
""" Build a 'sum' method that will work on contiguous
1D arrays.
"""
code = """
double sum = 0.0;
for(int i=0; i < Na[0]; i++)
sum += a[i];
return_val = sum; ... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
5e577691fa1cf8d21de1ed9cadcf24ee67438469 | 561685ee1a243574cfa5576dbc1187fc710306bb | /ml/ml/helper_functions/encoders.py | 7feaa2e08c8578e3ace303be04d7edaed04e14bf | [] | no_license | ivyleavedtoadflax/kaggle-house-prices | 4a7d61d9655726e078ba845686abc21abb1c1389 | 2b44dcd09a32461e04ce2ef5c8cffaba4f7f0ebc | refs/heads/master | 2020-04-01T14:31:21.805055 | 2018-10-13T17:52:12 | 2018-10-13T17:52:12 | 153,297,630 | 1 | 0 | null | 2018-10-16T14:14:43 | 2018-10-16T14:14:43 | null | UTF-8 | Python | false | false | 437 | py | import pandas as pd
def one_hot_encoder(df, one_hot_list):
'''
Takes a dataframe and a list of (categorical) variables as an input.
One-hot encodes a list of categorical variables, and returns a new
dataframe
'''
for col in one_hot_list:
df_1h = pd.get_dummies(df[col])
df_1h.... | [
"ewingt1979@gmail.com"
] | ewingt1979@gmail.com |
3457d37c6f1dfc3005c54f4b733dd89fd782404f | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ARC/arc001-arc050/arc041/b.py | 923178d3ccfc5919230f3dbbbcc329f538fb9950 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
def main():
n, m = map(int, input().split())
b = [list(map(int, input())) for _ in range(n)]
dxy = [(0, 1), (0, -1), (-1, 0), (1, 0)]
ans = [[0 for _ in range(m)] for _ in range(n)]
for i in range(1, n - 1):
for j in range(1, m - 1):
value_mi... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
afeb6e3c4238418d40c6547181fed0f21f254e27 | ee2a8bde861339b45193cfa3c8f93eec9c37911a | /reverseString.py | f4bf9052766c408f046ba107120deb50315f2265 | [] | no_license | messi010203/PythonProject | 86651a5a306ce4c75b5e9d2458e3c6bee3ecb6c3 | a2b9985f792b7e5e4cc2c550aa6d29b3046edc86 | refs/heads/master | 2021-01-24T10:48:43.097263 | 2016-10-08T08:54:17 | 2016-10-08T08:54:17 | 70,306,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #coding:utf-8
def reverseString(string):
# string=string[::-1] #first method
string=reversed(string) #second method
return ''.join(string)
print reverseString('123')
| [
"fuxuyuan@126.com"
] | fuxuyuan@126.com |
fe8ff709b8bd73d3592b4aba244527842803f29e | 3fb3d31a022507869c183b4cdc8a7567d4cf286b | /PS4/ps4a.py | a4698509baecf3b25ac0d5061117e78dc80d83dc | [] | no_license | AlexGordienko/MITx-6.00.1x | 8719ae75a4e705418c5b910a1f141e5d2d498060 | 124594dbde1ab8bf6582ca3a8a8247e4afa0c817 | refs/heads/master | 2021-06-20T23:01:39.912584 | 2017-08-15T03:59:07 | 2017-08-15T03:59:07 | 100,327,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,930 | py | # The 6.00 Word Game
import random
import string
VOWELS = 'aeiou'
CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
HAND_SIZE = 7
SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1,
'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u':... | [
"alexgor99@gmail.com"
] | alexgor99@gmail.com |
81f9e964f5ae34f4835e059763571709baa3b509 | 4c3057ba7d31074f9c72665093deb49cd74bcbb9 | /CryptoDesUtil.py | 659bba9259670c2a867fc48d62342924f249e363 | [] | no_license | chengfei001/tibosi | 84d04e45edc4bb27278ee21aa6157c13dfde885b | 176d71356b23d993fc2ac2956c04c0e3b549721f | refs/heads/master | 2021-09-20T22:53:15.413648 | 2018-08-16T07:12:07 | 2018-08-16T07:12:07 | 113,154,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | from Crypto.Cipher import DES
from binascii import b2a_hex, a2b_hex
import re
from pymongo import MongoClient
client = MongoClient(host={'localhost'},port=27017)
db = client.kaoshibaodian_base
"""
des cbc解密密算法
针对考试宝典标题解密
"""
class DESUtil:
def __init__(self):
self.iv = "5QTtRO3v"
self.key = "5QT... | [
"chengfei001@gmail.com"
] | chengfei001@gmail.com |
d9d53f0ef306a6014e72ad63f7ca95fc67710c12 | eb4a4ca2f02513ea8585efca7ebd80e730600039 | /uiuc_laundry.py | e3d42160af3fe033dc4f41bbaef93ff9385e655c | [] | no_license | dti-illinois/alexa-laundry-checker | 6c5a41dd6d9ba7a5c66118abb555f32442d39653 | 8e2e770f26713b165484bb022e5569e0cdacacab | refs/heads/master | 2021-09-19T07:17:12.147513 | 2018-07-24T19:27:22 | 2018-07-24T19:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | import json
import urllib
from urllib2 import urlopen
from bs4 import BeautifulSoup
import requests
import re
building_id = {
'allen' : 1,
'bousefield' : 2,
'busey' : 3,
'clark' : 4,
'daniels' : 5,
'f.a.r' : 6,
'goodwingreen' : 7,
'hopkins' : 8,
'i.s.r' : 9,
'l.a.r' : 10,
'nugent' : 11,
'orcharddowns' : 12... | [
"yisi.liu17@gmail.com"
] | yisi.liu17@gmail.com |
2c63a6ede236b805538ef201acf6748f3e2a251b | 026c905089f46a6042896c51e27934fbb803a94c | /modelMods.py | 719392fc57843c68e0f2c2345a87d134df26a1cb | [] | no_license | pransil/ossl-oneShot | bf26b0ea299f04579c00419760d8923a5791fac5 | b6e2ac9ebe0b50523c9a6ddfc48ca1dd960ca3ec | refs/heads/master | 2021-05-16T14:00:43.178492 | 2018-11-11T19:59:03 | 2018-11-11T19:59:03 | 117,897,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | """modelMods.py - Adding new units to top layer
"""
import numpy as np
from scipy import spatial
import utils
def kill_unit(model, layer, u):
"""
Delete a unit (u) by removing: that row from the W, G and Wc (win count) matrices, the bias, updating Ln.
Return the updated model
"""
W, b, Lm, Ln, G,... | [
"pat.ransil@gmail.com"
] | pat.ransil@gmail.com |
447132d0ebe4484244f16b6fb9e4cfafc9d3f761 | f54ea9b8a3ccde1b0fa1e9c4945bc9c517c3a458 | /class_buffer.py | e8af8411ec8f1784285219b9f3989a6ac2702d59 | [] | no_license | mara1esh/py-projects | 41f25c40d2ddb71a06800b1bd90ce663d741b608 | 2b29095c9302df8b70e7729c783f7f6235a4be0f | refs/heads/master | 2020-03-28T09:37:40.419373 | 2018-09-10T13:52:47 | 2018-09-10T13:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #class Buffer, which will accumulate the elements of the sequence and output the sum of the five consecutive elements as they accumulate
class Buffer:
def __init__(self):
self.container = []
self.part = []
def add(self, *a):
SUM_FOR_APPEND = 5
for i in a:
self.conta... | [
"noreply@github.com"
] | noreply@github.com |
9fce73a0c9a6a611d877f8dfcb1ea3f2ad00a67a | 00d1d0f60b1cb0697c7f33a396958c5264101933 | /media.py | 94658b6d52991565096b42748e80a3ea944b7693 | [] | no_license | Lookingforstarzz/stars | d6f47e45fd75c443b73271b1c55840dad7b331d3 | a4b1b529d14c904ed913513aa7068bc327ccf21a | refs/heads/master | 2020-04-29T10:00:38.134202 | 2019-05-05T03:35:54 | 2019-05-05T03:35:54 | 176,046,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image,
trailer_youtube):
self.title = movie_title
self.storyline = movie_storyline
self.poster_image_url = poster_image
self.trailer_youtube_url = trailer_youtube
d... | [
"noreply@github.com"
] | noreply@github.com |
4aeefa20966ec07f96c283d0335a70df8c3f297f | 7706addb10379f0496717b57039411350c606130 | /aslparser/aslparser.py | 346d79d4c336cf9c5382b70b0a0719f981836b63 | [] | no_license | aringler-usgs/datalessXML | 0eec6f58586db7469edf9109c279dcf8e2b50e0a | 1332d76aa5ec816a1d34c9319874f03682c5ae0e | refs/heads/master | 2020-04-04T02:55:40.278596 | 2015-08-17T16:25:21 | 2015-08-17T16:25:21 | 40,505,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,032 | py | # -*- coding: utf-8 -*-
"""
Main module containing XML-SEED parser.
:copyright:
The ObsPy Development Team (devs@obspy.org)
:license:
GNU Lesser General Public License, Version 3
(http://www.gnu.org/copyleft/lesser.html)
"""
from StringIO import StringIO
from lxml.etree import Element, SubElement, tostrin... | [
"aringler@usgs.gov"
] | aringler@usgs.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.