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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf960886e27a282e96793a265af4645d21cbffdb | 763af65b4d651a893c1db17a9d96558cdcfbff36 | /deployApp/migrations/0001_initial.py | c8682ce0d9cbe9d630d0fc8fccb1e207ebd6cbc0 | [] | no_license | Tonyloyt/Sample_Image_upload_on_django | caa5304fb803df0f0785a0afee3de43f74bd71fb | 648ad69431aecf3f081ca11324376e4c21b15ac8 | refs/heads/main | 2022-12-31T15:07:13.654687 | 2020-10-23T18:23:16 | 2020-10-23T18:23:16 | 306,715,116 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 3.1.2 on 2020-10-23 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hotel',
fields=[
('id', models.AutoField(au... | [
"tony@datascientist.tz"
] | tony@datascientist.tz |
6398727d41745a5f48c6ccd6952f2945d5814a3f | 8a1200f2bd0bf25a264c065da896d1806e45155a | /packages/ply-9999.py | 591b952a924da74d2703d4d6bcf134dbd272ecc0 | [] | no_license | mhulsman/enhance | fac908eca561749ab99ea708f19f37eaceabf6c5 | 761234a263e4962a8e10026ce143c1ea0e7e8728 | refs/heads/master | 2021-01-18T23:40:56.252953 | 2016-09-29T13:04:48 | 2016-09-29T13:04:48 | 1,520,086 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from package import *
class ply(EasyInstallPackage):
dependencies = ["setuptools","python"]
| [
"m.hulsman@tudelft.nl"
] | m.hulsman@tudelft.nl |
cc15ab4da0e3d63290d555da764c4651e5b116d5 | 2368797b51548c0f6393d63bf4973898ac99d528 | /strings/easy/q443.py | dfc657c4a91311384a0c289c38920c173469005f | [] | no_license | pengzhefu/LeetCodePython | 595887d1625666962e7e959ffa148580f9b89ada | 59eff778a5fd5cff3b5b6b88c6c7e76dd213dfb0 | refs/heads/master | 2021-06-08T19:44:52.487031 | 2021-06-01T15:44:29 | 2021-06-01T15:44:29 | 175,763,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 30 23:39:02 2019
@author: pengz
"""
'''
Given an array of characters, compress it in-place.
The length after compression must always be smaller than or equal to the original array.
Every element of the array should be a character (not int) of length 1.
After you are d... | [
"32311379+pengzhefu@users.noreply.github.com"
] | 32311379+pengzhefu@users.noreply.github.com |
d32ff8d6d91f2a76d7d8268ae80199f8576c9628 | 889b3ce82835575b6a8492df1acfd4223ef9a7d9 | /chapter_03/cars.py | 7bf0109f44de5f9c36416aea4f649cd088e98885 | [] | no_license | MS1027439787/pythonBasic | dc3456f20d669459c8a829434d442c1ec277162e | 627de187271a330cbc234b25a9d3f6d5d0bd933e | refs/heads/master | 2023-04-09T06:07:25.425470 | 2021-04-20T05:51:08 | 2021-04-20T05:51:08 | 356,777,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | cars = ['bmw', 'audi', 'toyota', 'subaru']
print("Here is the original list:")
print(cars)
print("\nHere is the sorted list:")
# 临时排序
print(sorted(cars))
print("\nHere is the reverse alphabetical list:")
print(sorted(cars, reverse=True))
print("\nHere is the original list again:")
print(cars)
# 永久排序
cars.sort(rever... | [
"1027439787@qq.com"
] | 1027439787@qq.com |
d56087a4dd2c8057cef9ebf1388b7c6be56346be | a15cb54c04773fd7d0ef46590e2e56d48fd90725 | /game_python/game2/Ex_complementar_1.py | 87a5ab4da248ca2fdf31f5330596a0913a0428a1 | [] | no_license | wcsten/game_python | f6c964922efc684ac4ee9089063be2e490c1f831 | e77aceffe0e3e934fb085086bbdb3046935c973d | refs/heads/master | 2021-01-22T03:44:14.439072 | 2017-02-09T13:31:22 | 2017-02-09T13:31:22 | 81,453,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | #coding=UTF-8
import time
def displayIntro():
print('Converter horas em AM/PM')
print('Programa para converter da notação de 24 horas para a notação de 12 horas.')
def receiveHour():
hourList = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]
hour = int(input('Digite a hora para ser convertida:'... | [
"noreply@github.com"
] | noreply@github.com |
b2cec81969bcdc94b01c28fdb7df0ad7d85d7cf4 | df1d49839642d5dd9d3232e550b448ff813b298e | /virtual/bin/pip3.6 | 3a0c125f493e9d8db29bb7bb6bbde2795be44256 | [] | no_license | vincentmuya/Tech | 86e486044eb968b25cb53edf003acde391936900 | 239dbab12a6f6324eec4c55223c331a3871375aa | refs/heads/master | 2023-01-05T17:16:48.434239 | 2020-10-29T15:23:20 | 2020-10-29T15:23:20 | 308,339,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | 6 | #!/home/v1nc3n7/Documents/Projects/Projects/blog/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vincentmuya13@gmail.com"
] | vincentmuya13@gmail.com |
d22177499c618ff254b7d77a4adadebd0fbc9c16 | 82ccbe6f52a89e0acd1b88cd3de6c2c434bcef6c | /lib/PanGenomeAPI/fetch_summary/main.py | 64197ada34555c2089d05a55099c48806cd693d0 | [
"MIT"
] | permissive | kbaseapps/PanGenomeAPI | e51da942cb61f4341824e7b296fa2b694b7deda6 | 52dfc557279824f3b1c3b0a537528ccfaee39ab1 | refs/heads/master | 2021-07-20T04:30:31.032517 | 2021-02-23T22:45:09 | 2021-02-23T22:45:09 | 89,646,247 | 0 | 3 | MIT | 2021-02-23T22:45:09 | 2017-04-27T22:42:41 | Python | UTF-8 | Python | false | false | 7,818 | py | """
Fetch and construct summary data for previewing a pangenome.
"""
from installed_clients.WorkspaceClient import Workspace as Workspace
def fetch_pangenome_summary(
pangenome_ref: str,
workspace_url: str,
token: str) -> dict:
"""
Construct a summary data object for a single pangenome... | [
"jayrbolton@gmail.com"
] | jayrbolton@gmail.com |
3e9f75c07b7ff0be2d77ae15583de498bfd35d54 | 3941ec89010ca44057d9b8d0fe7b3a19b78fffe0 | /Tweety/settings.py | 3bc1f84e7632a651c93eca3748e932c8fb9799d1 | [] | no_license | surilshah/TwittTrendz | 609131c34fb006612c0734ee580689d599944f8b | b4a19db231ab6103f71752694057a9ace0ce0304 | refs/heads/master | 2021-07-05T19:21:54.160330 | 2017-04-22T20:51:06 | 2017-04-22T20:51:06 | 89,079,936 | 0 | 0 | null | 2021-06-10T18:45:18 | 2017-04-22T15:31:37 | HTML | UTF-8 | Python | false | false | 3,283 | py | """
Django settings for Tweety project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"suril.shah.94@gmail.com"
] | suril.shah.94@gmail.com |
cf425e83ff89715da8fdcf608b46377237011508 | 7c33168acb30d6ebb05062f8e2518a231359fbf5 | /qa/rpc-tests/listtransactions.py | 1590ec297800f8a928a698a33ef90d20500a344d | [
"MIT"
] | permissive | NPSCoin/npscoin-core | 69b867c20f2100ce4a0343a33b5c6ef320ac4ce0 | b6738d9f0eec0b12492b8763022889942317836a | refs/heads/master | 2020-03-25T13:38:11.615816 | 2018-09-23T03:41:03 | 2018-09-23T03:41:03 | 143,836,153 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,133 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the listtransactions API
from test_framework.test_framework import BitcoinTestFramework
from ... | [
"team@npscoin.io"
] | team@npscoin.io |
f666310032f38377abc0fdb0dbaf6d4e6c3a9267 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/core/arrays/datetimes.py | 047ee2e0330a5d47eec67d4f0aa99bef673c04a4 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,063 | py | from datetime import datetime, time, timedelta
import textwrap
from typing import Union
import warnings
import numpy as np
from pytz import utc
from pandas._libs import lib, tslib
from pandas._libs.tslibs import (
NaT,
Timestamp,
ccalendar,
conversion,
fields,
iNaT,
normali... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
e449c66a114a30229389e02c99d5811d21aa2e4a | cb81226e6fdf76a22c486a463394e894e3f9341d | /Kinderly/Models/room.py | 6b2d857bc0db662580497676d915d122ae2c9804 | [] | no_license | deSudoers/Kinderly-server | 9af494c224724170e0b6d80eb74f74271ea6d259 | 14a04260d490489c4ba8f765d63d0f6cf53f5cd2 | refs/heads/master | 2022-12-09T16:10:28.518237 | 2020-03-26T18:20:41 | 2020-03-26T18:20:41 | 163,542,370 | 4 | 0 | null | 2022-12-08T01:30:38 | 2018-12-29T21:31:48 | Python | UTF-8 | Python | false | false | 1,840 | py | import datetime
from Kinderly import db
class RoomModel(db.Model):
__tablename__ = "Room"
room_id = db.Column("RoomID", db.Integer, primary_key=True)
capacity = db.Column("Capacity", db.Integer)
has_attach_bath = db.Column("HasAttachBath", db.Boolean)
has_ac = db.Column("HasAC", db.Boolean)
... | [
"shrijitsingh99@gmail.com"
] | shrijitsingh99@gmail.com |
b339aef21130959862e1238010178a4c08a2aac9 | b7b4cf655797ca1114d306657189b6631985116d | /ssb/run/ssb-pyspark.py | e489234590b15338835d2314615a7c9e6123ee21 | [] | no_license | hurdad/datawarehouse-benchmark | 43b1539ab271068f873e3867888af7313350b1bc | 45fc5c5759a81e8f44a763be1adfb076b9b236af | refs/heads/master | 2021-01-02T08:57:42.687698 | 2019-08-31T23:35:18 | 2019-08-31T23:35:18 | 19,026,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import sys
from pyspark import SparkConf, SparkContext, HiveContext
if __name__ == "__main__":
if len(sys.argv) != 4:
print("Usage: ssb-pyspark <executor-cores> <executor-instances> <query> ")
exit(-1)
# Configure Spark
conf = SparkConf().setAppName("SSBQuery").setMaster("yarn-client").set("spark.executor.inst... | [
"hurdad@gmail.com"
] | hurdad@gmail.com |
1f155611b98f6e17bb1e3d9874b47e462fbe64f6 | f5c1e9dfcaac1590c5d7b90b0395f5f961c2fb07 | /CacheUtils.py | a18f3537f4adf5f665b9029a266e4c532b9e7fa1 | [
"MIT"
] | permissive | robpotter89/HackDay_Q3 | 67a37ae90dfed782b72b2eb382df7b115ed0b45c | 647b7ec56d0d783e999c53761bb7839b24fac78a | refs/heads/master | 2022-11-26T20:26:53.059824 | 2019-09-23T14:35:11 | 2019-09-23T14:35:11 | 209,398,981 | 0 | 0 | MIT | 2022-11-22T01:40:03 | 2019-09-18T20:32:57 | Python | UTF-8 | Python | false | false | 8,104 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import csv
import json
import os
import re
import time
import zlib
from datetime import datetime, timedelta
from io import BytesIO, TextIOWrapper
from urllib.parse import urlsplit
from zipfile import ZipFile
import requests
from pymongo import MongoClient
from redis im... | [
"noreply@github.com"
] | noreply@github.com |
4a1131302a6d2169c5bec5347e9930175079807a | a20a818e19e6a2bdc7207ed5b073265a1a567bf0 | /hello_world/main4.py | 6b7dc98df760c47aaad1f4cf8ddc4b2ceb555566 | [] | no_license | HareemZubair/Pycharm | d944d304dd64cc13167a981e8ddf41c80361afbf | 383f924939c555a6884f1de860a2809a08e2c7ae | refs/heads/master | 2020-11-23T22:41:00.430804 | 2019-12-13T13:54:32 | 2019-12-13T13:54:32 | 227,850,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | #tuples
name = ("messi","harry","afridi")
print(name) | [
"hareemzubair250@gmail.com"
] | hareemzubair250@gmail.com |
28beb8b65bbc25c5e6504c1cf35b51ca1ee2559e | c7231624f78a695cc0425f0062b8dcdbdb6b81e1 | /manage.py | befd73c41ff82aa6799ec5d1a8282630e3d6a73f | [] | no_license | BraxtonBodel/hackerUsc-Back | 08722afece39b1dce5234af3911dc605ac8a4ad6 | 9b1c3972f77940d1a5fc91c301bf2b9d973fb805 | refs/heads/main | 2023-01-20T11:52:27.695506 | 2020-12-01T17:33:00 | 2020-12-01T17:33:00 | 317,563,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backendHackerUsc.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"brabodel@hotmail.com"
] | brabodel@hotmail.com |
009a6db22d5cbcfa17aced05ceb3ed368d3c3b09 | 3d79f543ee5747e13c4d6d9a64a3d8260894e123 | /config/common.py | c5823c65b8f9e543c891967b8408ad76e25c57c3 | [] | no_license | kazak600/social-network-webinar | bd1cb4f80022f0b3c26ef4badaa11a04cf028d1b | 72a99aed791f9573a20dbf9518b7abdba9335975 | refs/heads/master | 2023-08-07T00:44:22.675723 | 2023-07-25T09:36:24 | 2023-07-25T09:36:24 | 147,933,664 | 5 | 12 | null | 2023-08-02T02:18:07 | 2018-09-08T13:00:32 | Python | UTF-8 | Python | false | false | 287 | py | import pathlib
class BaseConfig:
debug = True
app_name = 'Social Network'
secret_key = b'TyzLMReLCWUiPsTFMActw_0dtEU7kAcFXHNYYm64DNI='
database_name = 'my_database'
PROJECT_ROOT = pathlib.Path(__file__).parent.parent
STATIC_DIR = str(PROJECT_ROOT / 'static')
| [
"kakkazak@gmail.com"
] | kakkazak@gmail.com |
6aca68d20eb3755ef7a229aea72cd91fed6e1ad3 | 510bcf546e08ddd10fa5c09ed966e76ee9006569 | /accounts/models.py | 889f525ee019e6f5e988db4a01fdfb3a98e877e7 | [] | no_license | 4hey/First-Django-Project | 02cf00fb17648960faa82bf4d6864c0231ad1780 | a370291c11606eb748f123f82d9d4500bb5147c1 | refs/heads/master | 2022-11-18T03:40:28.950090 | 2020-07-11T05:23:34 | 2020-07-11T05:23:34 | 276,499,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py | """ユーザー登録情報に関するユーザーモデルの定義"""
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.urls import reverse
class User(AbstractUser):
"""ユーザーモデル
django既存のユーザーモデルを継承したオリジナルユーザーモデル
Attributes:
p_choices: prefectureフィールドのchoicesオプションの選択肢
c_c... | [
"phily.ai.3.yc.76@gmail.com"
] | phily.ai.3.yc.76@gmail.com |
833f7986080b5020cce57c632acd7e198dfe66a9 | 04b5ffc196713cfc8eb94a1444c7c6959cf79627 | /store/models/customer.py | 69662d2d6048054887f3f9a01369355d557b41df | [] | no_license | shahab627/EcomerceDJango | 6704c326ee972697bb1e27b07cea3a7cc558bcfd | c83a544c355167b6e701dda9185f62c750c4fe0c | refs/heads/master | 2023-06-24T11:46:50.994519 | 2021-07-30T14:38:17 | 2021-07-30T14:38:17 | 347,714,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from django.db import models
class Customer(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
phone = models.CharField(max_length=15)
email = models.EmailField()
password = models.CharField(max_length=500)
def register(self): # saving the... | [
"shahabmughal766@gmail.com"
] | shahabmughal766@gmail.com |
e9401703c3aba5a5b74b8b032bd8e11d554487e4 | ccc1930a820225f970f6121a310eaf406ff0afa1 | /Lol_web_crawler/api_caller2.py | b392e5b9898e4949f208165c9f904c5c181d323f | [] | no_license | andreculham/Lol_web_crawler | 72b888189e098f4796d68c13f4e508dbc14e8ae9 | b6a8b188c4b2f4d2430b6df8e0cef32dfb2f9f9d | refs/heads/master | 2021-09-10T03:51:29.309568 | 2018-03-20T22:35:13 | 2018-03-20T22:35:13 | 106,743,374 | 1 | 0 | null | 2018-02-21T06:56:48 | 2017-10-12T20:44:18 | Python | UTF-8 | Python | false | false | 1,850 | py | from riotwatcher import RiotWatcher
import time
import json
watcher = RiotWatcher('RGAPI-b17a8469-7cf1-4f9d-bbd7-e244a4225b92')
my_region = 'jp1'
'''
me = watcher.summoner.by_name(my_region, 'test')
print(me)
# all objects are returned (by default) as a dict
# get my 1 mastery page i keep changing
my_mastery_pages = ... | [
"andre.culham@gmail.com"
] | andre.culham@gmail.com |
b0c3d6b9a3b36724804759e23eae5515f5337337 | 8ba2043dac1b1f78c261edec045e8479e942af6a | /Individual_Labeled_Image_Generator.py | c9ab3b82e75e6f8f31be3e4e4cad359523dab27c | [] | no_license | deepaksinghcv/t_SNE_visualization | fc7f68cbaf0f300c3b9b423096efa5f841a51e5c | 7592345f13854c42dbe2e8d670ccc88961561f11 | refs/heads/master | 2022-11-09T18:31:10.987461 | 2020-07-02T16:41:02 | 2020-07-02T16:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,434 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import multiprocessing
import numpy as np
from PIL import Image
import uuid
import time
# In[2]:
def delabeler(path_tuple):
'''
Takes a tuple which consists of original RGB image and the labelIds image
Generate individually labeled RGB images
NOTE: T... | [
"deepak.singh@research.iiit.ac.in"
] | deepak.singh@research.iiit.ac.in |
f4bfcc0eabf9586b04429b532ed962af599e6db5 | fcff051c9cfb72331e6b59d4a6b0d2fb8591adb8 | /back_project.py | 927c80846f86982f906e76df0033cfb4888e3c76 | [] | no_license | BrunoKM/ct-simulation | cf808290270877692fc273dc43a944b05d98f940 | 8b8ad456af57426807d3af6b1aceae0a6a46e5e3 | refs/heads/master | 2020-05-20T21:58:54.061582 | 2019-05-16T14:05:56 | 2019-05-16T14:05:56 | 185,773,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import numpy as np
import math
import scipy
from scipy import interpolate
import sys
def back_project(sinogram, skip=1):
"""back_project back-projection to reconstruct CT data
back_project(sinogram) back-projects the filtered sinogram
(angles x samples) to create the reconstruted data (samples x... | [
"bkmlodozeniec@gmail.com"
] | bkmlodozeniec@gmail.com |
b8d293c61ac612e27ae925e7022d46e09fc967e0 | 59c74cf1100d9ca98b342bad65fc623978c56bf0 | /Problem Set/BMI.py | d104dfc981c66eccb9ad535926b875bd40803f46 | [
"MIT"
] | permissive | olgarozhdestvina/pands-problems-2020 | 4a16eb46f027fba20f00463124d73eb3a830a286 | 5d61bf6a86fbbe18adf00f547ce2380a39903e6e | refs/heads/master | 2020-12-28T00:22:41.464416 | 2020-04-03T08:53:54 | 2020-04-03T08:53:54 | 238,118,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Olga Rozhdestvina
# This program calculates your Body Mass Index (BMI)
height = float (input("Enter your height in cm: "))
weight = float (input("Enter your weight in kg: "))
squareOfHeight = height ** 2 / 10000 # convert cm to m
BMI = weight / squareOfHeight
print("Your BMI is {:.2f}".format(BMI))
# Rounding ... | [
"olgarozhdestvina@gmail.com"
] | olgarozhdestvina@gmail.com |
4617256c20731fbbb1264d27b0f6bf009bf729fb | 207c686ca0034e8b8c0b5768fe32b89404480553 | /tu16.py | 9dd2973f9fd0fa614f038d4993daf41a23f6d24c | [] | no_license | Louico/CIUTOKYO_questions | 64b845c65adea5e9a60f0a646d231ee56d21c7e1 | 2f8e8abfe7dea51a2a947a3de67337801d45fd24 | refs/heads/master | 2020-04-16T23:55:18.448966 | 2019-01-24T13:57:00 | 2019-01-24T13:57:00 | 166,030,388 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,185 | py | rowtype1 = "****"
rowtype2 = "| |"
rowtype3 = "* *"
rowtype4 = "*"
rowtype5 = "|"
rowtype6 = " |"
rowtype7 = "| "
rowtype8 = "* "
rowtype9 = " *"
def number(numbers):
r= [""]*5
for i in numbers:
if i=="0":
r[0]+=rowtype1
r[1]+=rowtype2
r[2]+=rowtype3
... | [
"450125293@qq.com"
] | 450125293@qq.com |
7d8b83ad987f94f6be3f1db2985cad941bcfb925 | 5b25b0180ffcef444ad27fcb69005c985d8629df | /venv/bin/easy_install-3.5 | 4b8d3ed70c60d56643d16d3a5dd4cf01e64ee97c | [] | no_license | theheartthief/Flasky | 6c8145f783a44d9ed157639e56385f04ef67ebf4 | 5f32acd83c1b9884c08e1cd13a3bfc7af07c1f74 | refs/heads/master | 2020-03-29T16:09:56.178770 | 2018-09-26T12:57:55 | 2018-09-26T12:57:55 | 150,100,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | 5 | #!/home/zhang/PycharmProjects/flasky2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"2640403479@qq.com"
] | 2640403479@qq.com |
ef1ae83917df42c0cc383935c8cd37807cda3f12 | 280ca08784641379bd565832337b129900d64010 | /pop3/script.py | b1c291fd63b2c879ab67e4a6935d06ef639001e1 | [] | no_license | defntvdm/networks-anytask | c96a4a3de26b5996ac5a202c849aa8228796475d | 7461953520559247a32a61ae8917c3fa1bc85f26 | refs/heads/master | 2021-05-31T11:26:18.419300 | 2016-06-24T13:34:39 | 2016-06-24T13:34:39 | 56,532,070 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,926 | py | #!/usr/bin/python3
import argparse
import socket
import ssl
import re
import base64
import os, sys
import binascii
def get_args():
parser = argparse.ArgumentParser(epilog="(с) Николаев Вадим",
description="Показывает письма почты "
"по логину паролю и серверу",
prog="pop3")
parser.add... | [
"nikolayevvadim@gmail.com"
] | nikolayevvadim@gmail.com |
69e0098c9da9ef73a596638a554362dc471a0434 | 7864e775c9561852633cdd79db3a43e94940b2b8 | /migreat/bin/pip-2.7 | d89ec5300302fc80736c265c97d3eac23f96383b | [] | no_license | Eleonore9/Geolocation | ccb520092b134e2f3c462a57036c9e27a4450900 | 45375d19ed963c32820dee1b14c69639aac3735a | refs/heads/master | 2016-09-05T13:57:07.013656 | 2014-03-22T19:22:01 | 2014-03-22T19:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | 7 | #!/home/eleonore/Documents/Geocode_Migreat/migreat/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.3.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.3.1'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('pip==1.3.1', 'console_scripts', 'pip-2.7')()
)
| [
"eleonore.mayola@ymail.com"
] | eleonore.mayola@ymail.com |
c3d6c4f46612b7f7c5ec6f9758883ee9cf8a0f4a | d051f3fe9fda31b72fa0ddce67aa1f4293c7c37c | /infer/local_gibbs_move.py | e8d91c772ccb38d12b759ff202759798f9ddefa4 | [
"BSD-3-Clause"
] | permissive | davmre/sigvisa | 4e535215b6623310d8f5da64258f6fa9a378f9fd | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | refs/heads/master | 2021-03-24T10:24:52.307389 | 2018-01-05T19:33:23 | 2018-01-05T19:33:23 | 2,321,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,990 | py | import numpy as np
from sigvisa.models.distributions import PiecewiseLinear
from sigvisa.utils.array import index_to_time, time_to_index
"""
Methods to propose a param value from a piecewise linear approximation
to the Gibbs conditional. This can be based on either the full model
posterior (proxylp_full) or a cheap ... | [
"dmoore@cs.berkeley.edu"
] | dmoore@cs.berkeley.edu |
b6c79e76dd24def16d52f93e5c24223e42f05f24 | b210d58b724c7199f43ddde031eba40996c82257 | /submissions/sm_102_amit/week_13/day_4/session_1/sum_evens_list.py | 91145a862a264ac398f9b2a886d4ce0d4d0f6812 | [] | no_license | Tanmay53/cohort_3 | 0447efd2dc8b3c1284b03da7326b35393fdf5f93 | 351fb6e1d0c29995fb5cb3b6af411dbcf0ced64c | refs/heads/master | 2021-05-23T17:55:36.508185 | 2020-04-05T12:58:07 | 2020-04-05T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # Print the sum of all the even numbers in the given list of numbers
numList = [12, 15, 7, 78, 45]
sum = 0
for x in numList:
if x % 2 == 0:
sum += x
print(sum)
| [
"akamit21@outlook.com"
] | akamit21@outlook.com |
78fb7cd610c41aa44ce0675bafff2e566f43a844 | 27a9e16c3e4b6905645c4d0d2a6242191cfd2234 | /daily-challenge/1-30/day-18.py | 4a0dee5e3ec7227a64fb5def6db5fa80fc0265b6 | [] | no_license | stosik/coding-challenges | 6e58636991af384928401aea97299957dddf2655 | 9b52573c0da5dd125f8a2e96fae22cb4afe8a113 | refs/heads/master | 2022-11-30T07:18:19.792347 | 2020-08-16T18:21:12 | 2020-08-16T18:21:12 | 275,012,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # This problem was asked by Google.
# Given an array of integers and a number k, where 1 <= k <= length of the array,
# compute the maximum values of each subarray of length k.
# For example, given array = [10, 5, 2, 7, 8, 7] and k = 3, we should get: [10, 7, 8, 8], since:
# 10 = max(10, 5, 2)
# 7 = max(5, 2, 7)
# 8... | [
"tosikszymon@gmail.com"
] | tosikszymon@gmail.com |
59409dadd7b7b3c1d6713977c4386d2632442ff6 | 7e1c34c4054c2ff001ec97e5b6568d687fbfa543 | /consecutive-sum/try.py | ec558d21afab5d5778fdbd4765b07f8dcb3cc87e | [] | no_license | Ashishkapil/python-runs | 5da9805dbd1a558f0f4c26160a97a7a526b1a4eb | 788dbe6e60d1b7f06d395961eb531d668109a754 | refs/heads/master | 2020-03-20T23:05:31.985421 | 2018-02-13T00:39:10 | 2018-02-13T00:39:10 | 137,828,840 | 0 | 1 | null | 2018-06-19T02:14:13 | 2018-06-19T02:14:13 | null | UTF-8 | Python | false | false | 555 | py | # Given an array of positive integers and a target total of X,
# find if there exists a contiguous subarray with sum = X
# [1, 3, 5, 18] X = 8 Output: True
# X = 9 Output: True
# X = 10 Output: False
# X = 40 Output :False
#!/usr/bin/env python
arr = [23, 5, 4, 7, 2, 11]
target = 18
start = 0
end = start
summ... | [
"vik@Vikhyaths-MacBook-Air.local"
] | vik@Vikhyaths-MacBook-Air.local |
7f8010f5ebfed5673267cda1ccb26abd4c6fdea8 | 490136a6e8518029300cb79ca7fd92e8d003b3b0 | /main/migrations/0010_auto_20190418_1922.py | 4f9dd4576f4279c73e814680dda8c97d620c096b | [] | no_license | mcescalante/oh-lastfm | 8223d47e6c61bd86ae863a4774f7432a3497aab7 | ccfa80b32ef8b87194b2b592ab9e45386136506c | refs/heads/master | 2020-05-15T09:18:36.825817 | 2019-04-19T19:07:34 | 2019-04-19T19:07:34 | 182,174,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # Generated by Django 2.2 on 2019-04-18 19:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20181017_1735'),
]
operations = [
migrations.RemoveField(
model_name='datasourcemember',
name='acces... | [
"mcescalante@gmail.com"
] | mcescalante@gmail.com |
b01c50870d43d27528b044e7e7e500dcee1a7d3b | 8484b5610f9a38d5f9de5066d546ac3c40f33872 | /menocare/migrations/0005_auto_20200917_1601.py | 3bf03b8e89baabba864df528c6df900ca848c056 | [] | no_license | CleoMugs/dentist | 580755db645481cc6ff39cd2603b78c67d70f497 | e2892746f6f36ded31e887b982a862c470308c14 | refs/heads/master | 2023-01-19T19:58:29.046705 | 2020-11-27T19:36:25 | 2020-11-27T19:36:25 | 289,466,864 | 0 | 0 | null | 2020-10-29T18:20:37 | 2020-08-22T10:27:57 | HTML | UTF-8 | Python | false | false | 610 | py | # Generated by Django 3.1.1 on 2020-09-17 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menocare', '0004_auto_20200914_1733'),
]
operations = [
migrations.AddField(
model_name='comment',
name='photo',
... | [
"cleophas.mugeni@gmail.com"
] | cleophas.mugeni@gmail.com |
24730b8c81b03751f2f0099ab19c0516e3c1f94d | c2acd258856cb9219134d079a9be0dd0505b9cd3 | /demo54.py | 108cfd036fd7f0a632ee4c29c132c5cc55d7e5f2 | [] | no_license | dsissac-liu/bdpy0618 | 129537cf4b89f471bf02754af73f17745050fc69 | a39c8dd389bd81a8576c22335e3045f969bac87b | refs/heads/master | 2020-06-05T14:31:29.475967 | 2019-06-21T07:36:15 | 2019-06-21T07:36:15 | 192,460,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | file1 = open('data\\Python_Introduction')
readme_txt = file1.read()
file1.close()
print type(readme_txt), len(readme_txt), readme_txt[:101]
with open('data\\Python_Introduction') as file2:
readme_txt2 = file2.read().decode('UTF-8')
readme_txt3 = file2.read().decode('ASCII')
print type(readme_txt2), len(readme... | [
"dsissacliu@gmail.com"
] | dsissacliu@gmail.com |
575ed02449017c1a4ecadde20439e92718777610 | 083ae8105750cc96306bfffcc2ee86b7977342f3 | /star_leaders/repo_metadata.py | 404cd8b0ff80ff49b30367b083f249f2dd7fdcb4 | [
"LicenseRef-scancode-public-domain"
] | permissive | WallarooLabs/wallaroo-python-example | 07e7213223fd02969895ddec3e069fc33a436680 | 25cd60207164b8e6cf3f0a7eafe4bd01d1278ab3 | refs/heads/master | 2020-03-17T08:18:40.550434 | 2018-06-14T18:48:32 | 2018-06-14T18:48:32 | 133,433,629 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | import operator
class RepoMetadata(object):
"""
This class is responsible for keeping tally of things
like stars on a repo and recent events for the most
popular repos.
"""
def __init__(self):
self.current_hour = None
self.window = []
self.repos = {}
self.leader... | [
"brian@wallaroolabs.com"
] | brian@wallaroolabs.com |
3f9a0b1d182a5ddd38813da6721ae1a290403895 | b4bc5fb10b0d498cb0d3e5ee2ce3473b10b553e5 | /fast_transformers/recurrent/attention/self_attention/adamax_attention.py | 1cac02af4c80484f39d1bc654fd0d6ccdea11efe | [] | no_license | minhtannguyen/momentum-transformer-code-submission | 2f0005028ab7e32957612f642330acd802bded8e | 68b11ce5564a8212cd91cb2093b457a00d511046 | refs/heads/master | 2023-05-31T19:20:57.380490 | 2021-06-04T15:08:26 | 2021-06-04T15:08:26 | 373,784,396 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | """Implement the causally masked linear attention as a recurrent model."""
import torch
from torch.nn import Module
from ....attention_registry import RecurrentAttentionRegistry, Optional, Float, Int, \
Callable, EventDispatcherInstance
from ....events import EventDispatcher
from ....feature_maps import elu_featu... | [
"mn15@rice.edu"
] | mn15@rice.edu |
28b287c1814ef2863546e43451e26917e37be12f | ee7661ccaef52686ee81a7458c638504f81a1c14 | /mercury/converter.py | b2435c52b9575bebac9297398e82162d18f26045 | [] | no_license | bigkon2/mercury | c6cec9ce88c6b4cb980fe0f3db3d677bd2643346 | ed791c9e9bccf73d84e945d32a5e75318def87c1 | refs/heads/master | 2016-08-11T21:22:49.389165 | 2015-12-16T11:22:25 | 2015-12-16T11:22:25 | 47,936,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | from re import sub
class Converter(object):
kg_koef = 2.20462
cwt_koef = 100
meter_to_foot = 35.3146667
def camel_case_to_underscore(self, name):
s1 = sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
return sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
def convert_weight(self, value, src... | [
"bigkon@list.ru"
] | bigkon@list.ru |
34652e3f6e13b791804cf8ac33a2cdd8f0bc04b0 | e128d23ac2326f54a6a7b5203be84b72871a9aba | /Code/App/Calculation/Sharpe_Ratio.py | af6688950a78272a13661d193980b0f5cee66fd5 | [] | no_license | Jackson-lk/asset_allocation_stock_app | ec1b6090b8469a476c0028c2e645a9294049c67f | e1edf3dfb4c5626b138328c72cdd9a3c68ea6bd5 | refs/heads/master | 2020-03-19T17:31:54.868025 | 2018-06-14T03:10:22 | 2018-06-14T03:10:22 | 136,764,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | import pandas as pd
import numpy as np
# Purpose: To calculate the sharpe ratio of each stock
# VALUES
# Risk free rate of 5 yrs from US Treasury in %
risk_free_rate = 2.74
# 2018 inflation rate in %
inflation_rate = 1.9
# Load the datasets
df_stats = pd.read_csv('../../../Dataset_clean/stats_UtoD.csv')
... | [
"noreply@github.com"
] | noreply@github.com |
f8bddbe0bca011790a2e4c1ded8cbf766682d2a5 | b4abad3644619f044e952473ea4226488d13f7d5 | /interface_test_automation/pyh.py | 6995f5a379b1086c12418b7f15b69c9159ae9704 | [] | no_license | guor911/automation | 66010b38b59584cbe1cf9d169d03d72777c536cf | d9d791934aa5660170bb1b3f29433a3d09c281f6 | refs/heads/master | 2021-01-16T11:30:40.340406 | 2017-08-11T07:31:29 | 2017-08-11T07:31:29 | 99,999,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,504 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @file: pyh.py
# @purpose: a HTML tag generator
# @author: Emmanuel Turlay <turlay@cern.ch>
__doc__ = """The pyh.py module is the core of the PyH package. PyH lets you
generate HTML tags from within your python code.
See http://code.google.com/p/pyh/ for documentation.
""... | [
"guor911@users.noreply.github.com"
] | guor911@users.noreply.github.com |
33e0ba3e0a69e34cf7ebd41107f6f66e2889c636 | c9293ab68d0235a1830a3634a41a5b65b4eb5d6a | /Lessons/Section-03/lesson_0087/main.py | 525fed4f815ccabfb1476b840d227c9ecfdc9c6d | [] | no_license | lipegomes/python-django-udemy-studies | 4f836497ee10ece7ee5b40af1b636bb1c03deb75 | 938fa6a05f9505b8eaf6e7e6bc1c5e199b670432 | refs/heads/master | 2023-01-07T01:22:16.855346 | 2020-11-03T13:49:54 | 2020-11-03T13:49:54 | 283,852,942 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | """
Faça uma lista de tarefas com as seguintes opções:
- Adicionar uma tarefa
- Listar tarefas
- Opção de desfazer (a5 cada vez que chamarmos, desfaz a última ação)
- Opção de refazer (a cada vez que chamarmos. refaz a última ação)
"""
def show_op(todo_list):
print()
print("Tarefas: ")
pri... | [
"fgdl.py91@gmail.com"
] | fgdl.py91@gmail.com |
26513c4aa0154dcc45a9dbf4881271ce85f5368e | 4a506391d992d3f24401c242c271da8b4308eb8f | /002_if/9498.py | a9715c355be92704acd3ff321dc9b00fc343cd7e | [] | no_license | shdev95lee/baekjoon | a7c036750642717792c0faec607c23608952d789 | 0ed04c46ee0d811c744689072fd4fe4fdca3c267 | refs/heads/master | 2023-06-08T01:11:14.160480 | 2021-06-25T14:48:39 | 2021-06-25T14:48:39 | 379,516,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | i = int(input())
if i>=90:
print("A")
elif i>=80:
print("B")
elif i>=70:
print("C")
elif i>=60:
print("D")
else:
print("F") | [
"shdev95lee@gmail.com"
] | shdev95lee@gmail.com |
e481852479752fcb39853e0c43406eb0b815c9e4 | fd1e90d9689f822656e86fa66190f514ceb9a1d6 | /baseresource/greenresource.py | f6e2512878d9fa6a0b9966d6c18b481c96017d2b | [] | no_license | HSATAN/twistwuzhong | 9635b9c066ec267d3012a010c6f0531cd47be287 | fffa7c4a559d7298d9ce158b67e41b17ce93d308 | refs/heads/master | 2020-03-18T19:26:54.334572 | 2018-07-26T06:16:59 | 2018-07-26T06:16:59 | 135,154,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # _*_ coding:utf-8 _*_
from __future__ import print_function
from twisted.web.resource import Resource
import json
class BaseResource(Resource):
def render_HEAD(self, request):
print("-------------------")
return self.real_HEAD(request)
def render_GET(self, request):
print("get------... | [
"2499090390@qq.com"
] | 2499090390@qq.com |
9ae13a4bd3deeb4db33e4849dd540d691c16c490 | ecd25dc270cd1c07116928001e8a6bfbbddb48b7 | /ImdbPopShow/spiders/popShow_spider.py | c7d7c782ec7f5dd78c2a65306953bda28cabc954 | [] | no_license | lienchewei/ImdbPopShow | 72602caffcd226ead017a3985d8751cdaf14322e | c50b14f8feac934d474a1f1f2031a439b20824d1 | refs/heads/master | 2020-03-20T08:22:47.645285 | 2018-06-14T04:44:09 | 2018-06-14T04:44:09 | 137,306,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,931 | py | import scrapy
from ImdbPopShow import ImdbpopshowItem
main_url = 'http://www.imdb.com'
class ImdbPopShowSpider(scrapy.Spider):
name = "imdbPopShowSpider"
start_urls = ['http://www.imdb.com/chart/tvmeter?ref_=nv_tvv_mptv_4']
def parse(self, response):
pat = re.compile('http://www.imdb.c... | [
"lienchewei5@gmail.com"
] | lienchewei5@gmail.com |
a7c21d54856656b32e6782e79fe32019a7febf32 | 53b655c84f286de198e8ac896259d1d164d4d1f8 | /childpages/plotpage.py | 9462bad75b6d83c0fb932018f45512996aa0c992 | [] | no_license | dragondjf/MetroMathPlot | d88643d041b9da102c6d78343bb4daf909085fa5 | 5b81edbecd29c0b2a339d4879930b623aa795914 | refs/heads/master | 2016-09-01T19:19:16.418917 | 2013-04-27T13:32:29 | 2013-04-27T13:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,007 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from PyQt4 import QtGui
from PyQt4 import QtCore
from guiutil import *
import configdialog
import util
from appserver.wavehandler import WaveReplayHandler, WaveThreadHandler
timeinteral = 100
class PlotPage(QtGui.QWidget):
def __init__(self, parent=None):
super(P... | [
"dragondjf@gmail.com"
] | dragondjf@gmail.com |
354e01fce6aefff99f4edd7b403fce517fd84aa9 | 5ade8b91512e174ace25c8357d408cc1887c84b7 | /haigan/sipderPicture.py | 91455071579d6537d2a827faea468daf0e5b78ed | [] | no_license | qiuzhuangshandian/haienNote | 1f3d6ddc63172cfd12fd9f67ec587e3d13d3a4d3 | a58617ad1bbebe3b7d66a23fbf1880f617299a23 | refs/heads/master | 2021-07-05T02:33:26.647133 | 2019-03-27T12:33:10 | 2019-03-27T12:33:10 | 114,324,158 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import requests
from bs4 import BeautifulSoup
import os
import traceback
def download(url,filename):
if os.path.exists(filename):
print('file exists!')
return
try:
r = requests.get(url,stream=True,timeout=60)
r.raise_for_status()
with open(filename,'wb') as f:
... | [
"1102485579@qq.com"
] | 1102485579@qq.com |
4b4b97ee6dc3d053e9824f6858b4ea2d37b51add | 8f807dc92c56e23051bee0da53ca3385b617a277 | /Metodos de las Listas/Metodo extend().py | d90987e08d98a1348f2613966348618034b55988 | [
"MIT"
] | permissive | JSNavas/CursoPython2.7 | 5063e5bbba2dbc5b446d5fc636f63077e51d2b9a | d1f9170dbf897b6eb729f9696a208880e33c550b | refs/heads/master | 2021-01-23T04:58:14.861736 | 2017-03-26T18:56:09 | 2017-03-26T18:56:09 | 86,256,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | lista = [1,2,3,4,5]
lista2 = [6,7,8,9,10]
print "\nlista 1: "
print lista
print "\nlista 2: "
print lista2
lista.extend(lista2) # El metodo extend te permite agregar los elementos de un lista
# al final de la lista en la que se utilice este metodo
print "\nLista extendida: "
print lista | [
"jesusnavas2210@gmail.com"
] | jesusnavas2210@gmail.com |
a6967f5aeb2b2541339e96e0ff361039c1c4a1ef | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_1/Python/wiz4rd/solve.py | 71ffac888475eabb0c81b27c4c0114a8c34376e6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # http://code.google.com/codejam/contest/4314486/dashboard#s=p0
from collections import defaultdict
from re import match
from numpy import array, argsort
from time import sleep
from numpy.linalg import matrix_rank
def biggest(a,N): return argsort(a)[::-1][:N]
def absolute(ls): s = int(sum(ls)/2);return any(e>s... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
320548dc77bda75db17d8543c10650d8287d1bb6 | a9c6b63c803d2f13f7ac0fd4ec13cfb21f9a5bea | /set-1/string to integer.py | fa63e9c7c54ca8a3d1e1f557e7b34a6622adeb93 | [] | no_license | 12345k/GUVI-Code-Kata-Player | 8fe81fa84b798593d2aa0294ea85cf510fd15baf | 54f1ed074159132045854032fee3902a843299b6 | refs/heads/master | 2020-03-07T18:53:26.612358 | 2018-04-01T17:38:37 | 2018-04-01T17:38:37 | 127,655,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | s = str(input())
d=int(s)
print(d) | [
"noreply@github.com"
] | noreply@github.com |
4620c177df3478e05cc6d84a76cbc7bc79c80768 | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/Intangible/StructuredValue/PriceSpecification/PaymentChargeSpecification/__init__.py | cd82c29e455e399753f86c2537f0d702dd8cd6b2 | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, descriptionProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, nameProp
from schemaorgschemas.Thing.Intangible.StructuredValue.PriceSpecification import validFromProp, priceCurrencyProp, priceP... | [
"mihai.nechita95@gmail.com"
] | mihai.nechita95@gmail.com |
61a0658adaede368302467d0fb0ad563b60268ce | 3a0ce86cc76764a2679c72a76f47e93aec7179a4 | /Sorting/selection_sort.py | 0c1b2daaa07528b2aa413e456d8f3f324b89a65f | [] | no_license | Dhruvilshah007/Algorithm | 0753458137c128846bb002043921949e55eb1176 | e80afaef8be2f04c2e1be93e4ef4ebe39dc72cb7 | refs/heads/main | 2023-01-02T15:21:26.004484 | 2020-10-28T16:10:54 | 2020-10-28T16:10:54 | 305,989,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import sys
A = [68, 25, 19, 22, 13,28]
# Traverse through all array elements
for i in range(len(A)):
min_idx = i
for j in range(i+1, len(A)):
if A[min_idx] > A[j]:
min_idx = j
# Swap the found minimum element with
# the first element... | [
"noreply@github.com"
] | noreply@github.com |
5200aa96e9d81415b1bb84e8b209ab236f306a51 | 87b7e17db8a76876f8fdbb36e790f8636f979e37 | /blog/models.py | 263683c4f71d9c53464933dbe001282fccf47020 | [] | no_license | intel64/my-first-blog | 3781819b03550e9dfe5c72522f9323fd0ca02cf7 | 9155fba4d00632231e3adf506d3cb2888dedb642 | refs/heads/master | 2020-04-10T01:42:45.530247 | 2018-11-26T12:04:37 | 2018-11-26T12:04:37 | 160,723,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.user', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
defa... | [
"ajayiolawale757@gmail.com"
] | ajayiolawale757@gmail.com |
843f7dd30cd608334a71cfb94397992fbe593252 | e40a692c7aab30df0a752761e9f6d267d8a7150e | /FP/Backtracking/Presentation/console.py | 2e9b4a5fce0c4df117788b9e6e9d17fef3a24aa1 | [] | no_license | CombatFrog/facultate | fe42f86c3dab4e4b5e5cee4477e7a1feb6ddae99 | ea1c780a0a0fcdad8ef64d11f6de897bc3abbbec | refs/heads/master | 2020-09-25T00:01:55.777505 | 2020-07-17T17:21:41 | 2020-07-17T17:21:41 | 225,874,635 | 0 | 0 | null | 2019-12-15T16:29:29 | 2019-12-04T13:31:45 | Python | UTF-8 | Python | false | false | 463 | py |
class Consola:
def __init__(self, backIter, backRec):
self.__backIter = backIter
self.__backRec = backRec
def run(self):
lista = input("Introduceti elementele listei separate printr-un spatiu: ")
lista.strip()
lista = lista.split()
for i in range(len... | [
"noreply@github.com"
] | noreply@github.com |
86dd4a53a05804ddf9ffde57e4cac11196104618 | eac714c071af0dbd4edb46e7a85bc78646c8d6d1 | /coworker/cities/admin.py | 91d448674ecc2599d29434c62681d9bffb441a39 | [
"MIT"
] | permissive | spacesmap/2 | b38cc31f65533f469aef154fe3fd4990928874ea | 83dbd29eeab063e40d787143b614313e93e609d9 | refs/heads/master | 2021-06-30T10:01:19.224033 | 2017-09-23T02:08:31 | 2017-09-23T02:08:31 | 104,549,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.contrib import admin
from .models import City
class CityAdmin(admin.ModelAdmin):
list_display = ('name', 'level_type', 'status')
admin.site.register(City, CityAdmin)
| [
"arti3d.artem@gmail.com"
] | arti3d.artem@gmail.com |
77c496af1b25470977c1b8ab2fc6ed1d657e8f60 | e972ebd59711a786780f4178f5b717fe245fd0a3 | /Python/6thOct-13.py | 3102deeb91980ca5c7cc047de29b64c79cdc3502 | [] | no_license | sai-varshith/make-pull-request | a46ed30803070fc28fd0b70a152779e53f98bcad | 8e1faa342fae423731090d271314cd5b9e23a9db | refs/heads/master | 2023-08-14T11:25:41.460714 | 2021-10-02T05:00:27 | 2021-10-02T05:00:27 | 412,333,564 | 3 | 0 | null | 2021-10-01T05:02:53 | 2021-10-01T05:02:52 | null | UTF-8 | Python | false | false | 593 | py | def prime_check(num:int) -> int:
if num > 1:
for i in range(2, num):
if (num % i) == 0:
return 0
break
else:
return 1
else:
return 0
def print_fibbonaci(n : int):
n1, n2 = 1, 1
count = 0
while count < ... | [
"noreply@github.com"
] | noreply@github.com |
86101da67dc69b3cac58cb47af9a1d72e4694e2d | 0523e61836a65c2e17e5bfaeff95a9e61bfdb736 | /Guess_a_number_game.py | 7e1432fb9687d78fc7e5f7ed68f00f35ffb70c30 | [] | no_license | Oalecia/Guess_a_number_game | 31858f3b2c039e6aa4b930e8d02edb61cc583195 | 543c70f1bd41363d67406a0939d1a51e20f97678 | refs/heads/master | 2020-09-24T02:01:58.791883 | 2019-12-03T14:10:43 | 2019-12-03T14:10:43 | 225,635,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | print("enter a whole number between 1-10, You have 1 in 10 chance of being correct")
from random import randint
for _ in range(10):
a=randint(0, 10)
x=int(input())
if x<a:
print("YOU LOSE! The number you have entered is too low")
if x>a:
print("YOU LOSE! The number you have entered is too high")
if x==a:
... | [
"noreply@github.com"
] | noreply@github.com |
56488b551df60e95a3b374f9f34cef3c06407dd2 | dbc35a06a6070c2a628fa601f265459085bdee21 | /spencersapp/anil 1/0021_auto_20210201_1150.py | 7f25be06ca1fb24b7cbe2f2e6c221d4f6f0d5031 | [] | no_license | anilanu-hue/storeproject1 | 34ac0f2b53df42d0c18bd5c38d09300d3fb0b68b | 17281c495d56b27bf0c11ab70ba9b197500dd179 | refs/heads/master | 2023-04-14T14:16:42.490785 | 2021-04-15T07:31:07 | 2021-04-15T07:31:07 | 358,165,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # Generated by Django 3.1.2 on 2021-02-01 06:20
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spencersapp', '0020_auto_20210201_1150'),
]
operations = [
migrations.AlterField(
model_name='brand',
... | [
"anilanu4367@gmail.com"
] | anilanu4367@gmail.com |
7d6fbcfbeb723b86d1115052aebf86319aa7389d | a120ea00b9512e47b48802279f60aaef5e06ff7c | /venv/Scripts/easy_install-3.7-script.py | fe42eadeaefb1a344a81828187305b625c38f229 | [] | no_license | adriancelej/BUS1 | 18f28a3ed01b0b02f1336e9f4f2b8d319f2f8e06 | 3980106b472e52d71ca1549990281984ad217a83 | refs/heads/master | 2020-08-23T16:34:47.658163 | 2019-10-29T13:43:49 | 2019-10-29T13:43:49 | 216,664,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!C:\Users\admina\Desktop\Uczelnia\BUS\lab1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"adriancelej@o2.pl"
] | adriancelej@o2.pl |
2ddc5ca7f522f8159ec1ca17599d40bf2c4eca88 | 912c4445e7041869d1c8535a493b78d7ee35424b | /status/api/tests.py | fc4d45246e3fead061e60c2bd54215da6084c563 | [] | no_license | maltezc/Udemy-DjangoRestAPI | 3f243ec97ea5e8e9d6ddc2005986b6a05aa11097 | de6f885cf0cddaf22fb6fd72d18fc805b9ce48d2 | refs/heads/master | 2022-12-14T06:04:43.011691 | 2018-08-05T01:10:17 | 2018-08-05T01:10:17 | 140,590,753 | 0 | 0 | null | 2022-11-22T02:48:04 | 2018-07-11T14:56:08 | Python | UTF-8 | Python | false | false | 7,199 | py | import os
import shutil # shell utility method
import tempfile
from PIL import Image # pip install pillow
from django.urls import reverse
from rest_framework import status
from rest_framework.reverse import reverse as api_reverse
from rest_framework.test import APITestCase
from django.contrib.auth import get_user_model... | [
"cflux.maltez@live.com"
] | cflux.maltez@live.com |
94c2bb9f2bf5ff780817f95501a01d2d0f22465d | d24631b5de1b16a2d066c549287c0bddfcf599cc | /src/profiles_project/profiles_api/migrations/0001_initial.py | 292d9e4c9a3d11a364617d2a56562c436a4fdee3 | [] | no_license | devomacdee/rest_profile_feed_api | d4ac796daeab5c22bb668647a14444096b319a33 | 1899e716d0f86e899157a9f32a1aaf43755a8898 | refs/heads/master | 2020-12-30T16:45:27.978687 | 2017-05-11T20:25:47 | 2017-05-11T20:25:47 | 91,020,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-05 14:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0008_alter_user_username_max_length'),
]
operations = [
... | [
"devingmccoy@gmail.com"
] | devingmccoy@gmail.com |
f2b6801a79a953ed612d01a8adbf08cb086b9b60 | 587fca08b9c312315649eb388b1fe632ab6e9384 | /venv/Scripts/pip3-script.py | 1de906d033ac6205b28c88d6ed75eb67cb24e625 | [] | no_license | Ahmadam37/Swift_Project | c3eacdac0954b3601204778aec2be0d73b7d8d07 | f5398bc835f312e663570d7e070696eb44628671 | refs/heads/master | 2020-07-07T18:45:26.522466 | 2020-02-02T07:16:20 | 2020-02-02T07:16:20 | 203,442,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!C:\Users\admin\PycharmProjects\FDay\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"ahmadam37@hotmail.com"
] | ahmadam37@hotmail.com |
a211d928cc23259cc403575946215f38bf503b3d | 69d70a66b4636d381eb01a0d1985b52cced599d6 | /decorativeFrame.py | 74c478831a016fef8f1e3254a3607fdb36bb1e6b | [] | no_license | rmainhar/147_Image_Artist | b10cf70113ed56416a87ce20b169be50d10049a2 | 717f646d506413229e432fd96ecef84b19d6fffd | refs/heads/master | 2021-01-25T13:36:44.468677 | 2018-03-13T20:42:11 | 2018-03-13T20:42:11 | 123,596,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py | import PIL
import matplotlib.pyplot as plt # single use of plt is commented out
import os.path
import PIL.ImageDraw
def frame(original_image, color, percent_of_side):
""" Places a frame around a PIL.Image
Change line 37 so that use_decorative_frame is False to answer Step 10.
original_image m... | [
"rmainhar@shakopee.k12.mn.us"
] | rmainhar@shakopee.k12.mn.us |
b5a4664e72adb9bca48d7513d00d7273c3814693 | a2c2f7611f2711eb88c0d858c61a9f8dd3a72c1e | /src/courses/views.py | d6c48a3270296e984312a84bcc48751f6a325e1a | [] | no_license | apgomez85/trydjango | 982e29f823be1f991ee158f3c520dcc147ce5cee | 7642e64100a86c49a83e14b080625fdc8fc376ca | refs/heads/master | 2022-11-06T11:53:47.460460 | 2018-08-04T03:14:38 | 2018-08-04T03:14:38 | 143,228,918 | 0 | 1 | null | 2022-10-20T09:20:36 | 2018-08-02T01:58:49 | Python | UTF-8 | Python | false | false | 1,085 | py | from django.shortcuts import render, get_object_or_404
from django.views import View
from .models import Course
# BASE VIEW CLass = VIEW
class CourseListView(View):
template_name = "courses/course_list.html"
queryset = Course.objects.all()
def get_queryset(self):
return self.querys... | [
"apgomez85@gmail.com"
] | apgomez85@gmail.com |
8a79220de4482d143c6b5692428d1cb67498137b | 6a367892596ccf3ef0de0354edaba76a8a5175e4 | /Online Judges/Hackerrank/Medium/Iterables and Iterators.py | 54d6f216a7fa19825eed27866f1c3992e79483a4 | [] | no_license | thepankj/Data-Structures-and-Algorithms | 97930e6502f679d4edfd6f46aa8fa00b60129837 | 9e80e0c803f3518c3f5cc9c083049f6cf4c3e0a9 | refs/heads/main | 2023-03-23T01:42:52.226914 | 2021-03-17T10:40:32 | 2021-03-17T10:40:32 | 325,464,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python
# coding: utf-8
# In[28]:
from itertools import combinations
N = int(input())
letters = input().split()
K = int(input())
combs = list(combinations(letters, K))
fav_outcome = 0
for i in combs:
if 'a' in i:
fav_outcome += 1
tot_outcome = len(combs)
prob = round(fav_outcome/tot_outcom... | [
"noreply@github.com"
] | noreply@github.com |
9e891b8cbcbe8409b9682741e1d9a58a350a8144 | f1183482e47167a9020046c061a53b88179193ec | /scripts/outcomes/site_gains/get_p_values.py | 27bcdbdfc5aebf9759788126a2a688639809f241 | [
"MIT"
] | permissive | morrislab/plos-medicine-joint-patterns | a7a4ff4ce5f16d673fe2af48429ebe43b5132458 | cfdc6dd4854ec33e7e2efbf36d648b65d278df33 | refs/heads/master | 2020-04-17T09:33:09.077084 | 2019-01-18T19:33:32 | 2019-01-18T19:33:32 | 166,462,950 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | """
Calculates P-values from the permutation test.
"""
import feather
import functools as ft
import numpy as np
import pandas as pd
import tqdm
from click import *
from logging import *
from statsmodels.sandbox.stats.multicomp import multipletests
def get_stats(df: pd.DataFrame, df_baseline: pd.DataFrame) -> pd.Dat... | [
"simonwmeng@gmail.com"
] | simonwmeng@gmail.com |
918ad7bb0117b30c6486fbc80d1fd1b193eca18c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_393/ch118_2020_10_04_20_23_11_549205.py | 0e12279bb35457c3ba0953ad701ea15292ec51a7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import math
def reflexao_total_interna(n1,n2,teta2):
y= math.radians((((n1/n2)*math.sin(math.radians(teta2)))))
if y > 1:
return True
else:
return False
| [
"you@example.com"
] | you@example.com |
9d62730d91c81e90b92bfda809246a2eba0364c3 | c365df5959c5fceca29899fb7eb2c06e83b793df | /001_目标检测实践_keras版YOLOv3训练自己的数据/code/_06_yolo.py | 23996a288158a788c539db160a14489d6dabbfc0 | [
"MIT"
] | permissive | ami66/AI_projects | d194f40211a259fde9c30c79bfd3fe5b0ce3802a | e6376e8f84e32b8309ed8ae4a32a60b8eb7382ac | refs/heads/master | 2020-12-28T18:41:35.163249 | 2019-12-24T03:28:00 | 2019-12-24T03:28:00 | 238,445,296 | 1 | 0 | MIT | 2020-02-05T12:29:26 | 2020-02-05T12:29:25 | null | UTF-8 | Python | false | false | 8,759 | py | # -*- coding: utf-8 -*-
# 导入常用的库
import os
import time
import numpy as np
# 导入keras库
from keras import backend as K
from keras.layers import Input
# 导入yolo3文件夹中mode.py、utils.py这2个代码文件中的方法
from yolo3.model import yolo_eval, yolo_body
from yolo3.utils import letterbox_image
# 导入PIL画图库
from PIL import Image, I... | [
"474933858@qq.com"
] | 474933858@qq.com |
c93ad99254f4c0e85f1924faf26875ded721372d | 7f73e92e8fc1c1562e3743c886257eda68b407d7 | /visual_filters.py | b73802558988846bfa3a525f9e8991f85eed061d | [] | no_license | fendaq/CNN_feature_visualization_pytorch | a9be03d747b8cf4f9a0acd959a08e7b03cbdb464 | 1e2c8e16735174e231e03e48b2cd0de4f84ffc1b | refs/heads/master | 2020-04-14T22:49:21.154362 | 2019-01-04T11:57:24 | 2019-01-04T11:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
from torchvision.models.vgg import vgg16
import cv2
import copy
import numpy as np
import matplotlib.pyplot as plt
from utils import deprocess_image
# https://discuss.pytorch.org/t/why-cant-i-see-grad-of-an-intermediate-variable/94/6
grads = {}
... | [
"znzx075hl@gmail.com"
] | znzx075hl@gmail.com |
5d69698ad01bbd10caf8a04dc238435399c102a0 | c099f8d5b255320929ef9ee73bf8f51ceffdd655 | /ball.py | 2601e92ed66d68a2e606eac30dc225a384ddf250 | [] | no_license | honcyeung/Ping-Pong-Game | 7086c85a3f9b1dad31938f017de0c6b0228d18c6 | edd88e558767b10f6460027c281acdeea160e9d9 | refs/heads/main | 2023-07-06T01:50:25.143885 | 2021-08-11T15:40:22 | 2021-08-11T15:40:22 | 395,037,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from turtle import Turtle
class Ball(Turtle):
def __init__(self):
super().__init__()
self.shape('circle')
self.color('white')
self.penup()
self.speed('slow')
#self.goto(0,0)
self.x_move = 10
self.y_move = 10
self.move_speed = 0.03
... | [
"noreply@github.com"
] | noreply@github.com |
cd892113b1909bb023c20fdd7b877cfbcf19debb | f6a61ffb8eb720fa1505d1ca1f52a3436968c6a1 | /phys5794-homework1/phys5794-homework1-problem3.py | 3294c90349b103180abeb1345de4f41109658ecf | [] | no_license | thominspace/phys5794-homework | 6edc3ab6680cd847f652236e749daa0ce638b4be | 60c04e0b98fbc7351a5d42fbdd1cabdc4b224408 | refs/heads/master | 2021-01-21T13:08:30.985763 | 2017-10-20T00:43:46 | 2017-10-20T00:43:46 | 51,550,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # Thomas Edwards
# PHYS 5794 - Computational Physics
# 1/27/16
# Homework 1, Problem 3
# Problem statement:
# Write a program to calculate the integral
# exp(-x) dx, x = [0, 1]
# and estimate its numerical accuracy by using the Simpson rule. The numerical accuracy can be
# obtained by comparing with the analytical res... | [
"thominspace@gmail.com"
] | thominspace@gmail.com |
3c7381700dd51e46681693cb02fba56bbe79e2f3 | cea30aead7f0b529ee072c1bcab2896777e1408d | /PreprocessingCropsData/venv/Lib/site-packages/mpl_toolkits/tests/__init__.py | d5bd2047c484dceb46dbd677b7d1236edf7ab7ae | [] | no_license | pgj9702/FarmSolution | 3730ab3ca983b335ed48a60935c5fa6e3983cbb1 | a8cacc45b8519e79b51ab65b9539a01f5006e64f | refs/heads/master | 2023-03-30T15:41:10.312044 | 2021-03-31T08:47:23 | 2021-03-31T08:47:23 | 334,019,778 | 0 | 1 | null | 2021-02-22T09:32:57 | 2021-01-29T02:52:46 | Python | UTF-8 | Python | false | false | 375 | py | from pathlib import Path
# Check that the test directories exist
if not (Path(__file__).parent / "baseline_images").exists():
raise IOError(
'The baseline image directory does not exist. '
'This is most likely because the test area_data is not installed. '
'You may need to install matplotl... | [
"cao147147@naver.com"
] | cao147147@naver.com |
04d560051f784a7adef1e2450c98a8917ecc9863 | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/multiplicity/migrations/0044_referencespacelocation_active.py | c685d927bce6613caf9aa25e774e3ac226361258 | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.1.3 on 2019-03-04 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('multiplicity', '0043_auto_20190209_1723'),
]
operations = [
migrations.AddField(
model_name='referencespacelocation',
... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
fbab493168de831c8b736596a9bf700cad48ca29 | 0f0a8050b90ab2db927aa67a097643fbacf73ebb | /mysite/mysite/settings.py | af0c31cf290016ed39e864cc610445f5b69d898d | [] | no_license | kotnid/django-chatroom | 8bbad633ae9b8a7b93201857e81d41ce2d403496 | 651c79e95424bff268523f08cadded2260d1129e | refs/heads/main | 2023-06-18T15:07:30.825758 | 2021-07-20T00:35:00 | 2021-07-20T00:35:00 | 384,048,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.4.
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 pathlib ... | [
"tkt0506tkt@gmail.com"
] | tkt0506tkt@gmail.com |
a02e962f1c5d82a41e748de8fb1d38b119166c0c | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /CondTools/Ecal/python/copyTrivialAlignEB_cfg.py | c690529c0fa086e7e9df506f16670a72c30d21b9 | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | Python | false | false | 1,416 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
process.load("CondCore.DBCommon.CondDBCommon_cfi")
#process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
#process.CondDBCommon.DBParameters.aut... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
1b5e747a4b2642018e32c6e08f4f4180972ecebd | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /c_py_extention/Lib/site-packages/pip/_vendor/urllib3/response.py | 5502a119973864003bf66c8602b91f684a84c7cb | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,042 | py | from __future__ import absolute_import
from contextlib import contextmanager
import zlib
import io
import logging
from socket import timeout as SocketTimeout
from socket import error as SocketError
try:
import brotli
except ImportError:
brotli = None
from ._collections import HTTPHeaderDict
from... | [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
6ed344da8865beb7c48cefcf899b613e6539128e | 62d82c9cbd336dbe0b2659b33a6d27b44175757c | /pages/navigation_catalog_page.py | 6cbf47d10c6d60631c02bae8c87bfb8e3834d02a | [] | no_license | deingvard/python_shop_by | 9c44d2fc3b3adaba05531d3794eead9a1aa8efc5 | 7db4914f5a2e97452e773b62c04a341c240ba687 | refs/heads/master | 2022-07-17T04:56:54.530450 | 2019-09-26T10:12:18 | 2019-09-26T10:12:18 | 210,331,617 | 1 | 1 | null | 2022-06-21T22:52:59 | 2019-09-23T10:52:34 | Python | UTF-8 | Python | false | false | 450 | py | from selenium.webdriver.common.by import By
from webium import BasePage, Finds, Find
class NavigationCatalogPageLocators(BasePage):
sections = Finds(by=By.XPATH, value="//span[contains(@class, 'Catalog__SectionLevel1')]")
subsections = Finds(by=By.XPATH, value="//span[contains(@class, 'Catalog__SectionLevel3'... | [
"iiuliyeu@scnsoft.com"
] | iiuliyeu@scnsoft.com |
4b1e41f432815b21dae58574c8193c76b20fb975 | 437c588da217fa0a3292fe3013b1325642b9f785 | /apis/bin/pip | c29a8145ee6409f8eb474b479d3578ec5cda755e | [] | no_license | isemona/okta_api_testing | 1f508b423023a4c87270014513a5c81e9cfcc32e | da252e7147d2717661ba5ff902f5339945db009f | refs/heads/master | 2022-12-11T18:18:54.668981 | 2020-03-25T06:33:11 | 2020-03-25T06:33:11 | 247,847,717 | 0 | 0 | null | 2022-12-08T03:50:29 | 2020-03-17T00:55:47 | Python | UTF-8 | Python | false | false | 244 | #!/Users/semonaigama/okta_apis/apis/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"semona.igama@gmail.com"
] | semona.igama@gmail.com | |
6daab6643f2616881eb6b9a8fd052c5011a42ce3 | 1f4808e60d8753401b480d453d493ace634e3fe9 | /e_business_spider/amazon/amazon/spiders/review_detail_spider.py | 9772484f06c216ef79903dc79368b9ec02105655 | [
"MIT",
"Apache-2.0"
] | permissive | yousuowei123/e_business_spider | 824124b122dc757f4cded53cd182c6c8b0d50c4b | 74c26811693491607f1ef13db4876176c07c8d57 | refs/heads/master | 2021-04-06T06:13:19.706637 | 2018-03-13T01:58:46 | 2018-03-13T01:58:46 | 124,976,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | import math
import subprocess
import scrapy
from pydispatch import dispatcher
from scrapy import signals
from amazon.helper import Helper
from amazon.items import ReviewDetailItem, ReviewProfileItem
from amazon.sql import ReviewSql
class ReviewSpider(scrapy.Spider):
name = 'review_detail'
cust... | [
"noreply@github.com"
] | noreply@github.com |
fb8a8216c0d51fc8522fdf4c07e087b4f63e245d | 2755eae09a7745181cd37c318c68dc57cef575e9 | /test/functional/feature_addressindex.py | dc8d059db421e5b2c2cafc544a0c175f58b94cda | [
"MIT"
] | permissive | mytitanium/Titanium-Core-1.0 | fe6f73fcfe7c41a2cbd4ed565d0709aae2609d10 | 470e6a0a23de1ea867d693e362d1a0f6ccc12aa7 | refs/heads/main | 2023-08-14T09:53:05.357854 | 2021-05-17T06:30:36 | 2021-05-17T06:30:36 | 314,249,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,626 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
from test_framework.test_framework import BitcoinTestFra... | [
"mastergamer6sep@gmail.com"
] | mastergamer6sep@gmail.com |
603882c35d1658fbb70d32cc0a4adab196eec5d2 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/operations/_express_route_circuits_operations.py | aa23a5fe60e0f1801b53387edc44271fb622cf79 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 52,312 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
5bdcc6cf975d1c91609041403c71ecffcb959e0c | 62def70e2d802375b1ad28b0ac85fee2010ee0a9 | /displays/ws2801/rainbow.py | f9bd668f5edc1adab7f890ed626b53de332c52fb | [] | no_license | MarkAYoder/BeagleBoard-exercises | c48028b6e919d8c04dedfd2040a133c760f0f567 | 2fab7c7f7aa09bf101168dfb279e690bc43a6514 | refs/heads/master | 2023-07-22T08:06:19.482358 | 2023-07-12T19:24:51 | 2023-07-12T19:24:51 | 5,111,513 | 48 | 41 | null | 2021-07-29T18:02:29 | 2012-07-19T15:07:14 | JavaScript | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/env python
import time
import math
import sys
from LedStrip_WS2801 import LedStrip_WS2801
amp = 10
f = 10
shift = 3
def fillAll(ledStrip, color, sleep):
for i in range(0, ledStrip.nLeds):
ledStrip.setPixel(i, color)
ledStrip.update()
def rainbow(ledStrip, nrOfleds):
phase = 0
skip ... | [
"Mark.A.Yoder@Rose-Hulman.edu"
] | Mark.A.Yoder@Rose-Hulman.edu |
334cda64f6566b641dfa7f695a7911c18aeb72bf | a4228efe4788e043727c587589ad8e7043233c9e | /topic_based_segmentation/train_keras_model.py | 73b209fb9301725f5e6392adaf4457a3d871cd20 | [] | no_license | CrystalXiaoXiao/SpokenInputTopicDetection | f53aa8a4944f5a35981b12a93d1960b10b60c83d | f075f5a8f128a4fda4cae9377da50f5b9377760a | refs/heads/master | 2020-11-30T09:25:46.022675 | 2017-10-15T11:38:38 | 2017-10-15T11:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,090 | py | from DataLoader import DataLoader
from keras.models import Sequential
from keras.layers import Dense, Activation, \
LSTM, Dropout, Embedding, Lambda, Bidirectional, Merge
from keras.layers import Conv1D, MaxPooling1D
import keras
from keras.preprocessing import sequence
from keras.callbacks import ModelCheckpoint
... | [
"mohamed.emad.soliman@gmail.com"
] | mohamed.emad.soliman@gmail.com |
497fa83c1c9aa580261535736445295525cf4427 | 67d43f62e64d45e4dcdbf47d758a630dd9e4e50b | /guess_the_number.py | 42a0c9030fc2b02079fc681359941f605362541f | [] | no_license | Loto-bit/first-project | 8185caa2c013e6c1e77aa562a4c75826fe6b0aeb | db1a76723db3bc17f0f9e49cc0aba7e56e36f492 | refs/heads/master | 2022-11-17T23:32:46.549998 | 2020-07-09T08:30:30 | 2020-07-09T08:30:30 | 275,242,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import random
def compare():
win = random.randrange(1,10)
print(win)
flag = True
while flag:
num = int(input("Write a number: "))
if num > win:
print("Nope, try lower")
elif num < win:
print("Nope, try higher")
... | [
"noreply@github.com"
] | noreply@github.com |
6b070f4656d6fd36f68bc0dd598ac9f15b9f3123 | a7aabc5bd71b5ef6bdddee9908efcc840930e13c | /tests/testapp/tests/test_utils.py | 509c0a384f223b47432eab62359e52d05cb6b9c5 | [
"BSD-2-Clause"
] | permissive | enterstudio/towel | b7567261b325d19d621af126553ac33350f9a927 | 6892788527b8a111cbf5963e909964aabc96d740 | refs/heads/master | 2021-07-05T05:49:11.654374 | 2016-11-21T08:43:41 | 2016-11-21T08:43:41 | 85,775,854 | 0 | 0 | NOASSERTION | 2021-07-03T01:07:07 | 2017-03-22T02:25:57 | Python | UTF-8 | Python | false | false | 3,733 | py | from __future__ import absolute_import, unicode_literals
from django.template import Template, Context
from django.test import TestCase
from towel.utils import (
related_classes, safe_queryset_and, tryreverse, substitute_with)
from testapp.models import Person, EmailAddress
class UtilsTest(TestCase):
def t... | [
"mk@spinlock.ch"
] | mk@spinlock.ch |
06ca81d105d2299fc45662811c6a969bc1757358 | b4bd028a9cf6ee1c2cf0dab4f3fbc5bf779767f1 | /app/core/tests/test_admin.py | c3f726808a95ccdf95047d6b1677bfdd03230c24 | [
"MIT"
] | permissive | okidijimmy200/recipe-app-api | 33500c7bbe48b10a4045a71cfc3cfd4bdfeca474 | 987788043c95c6c4f75f4df3124306b4f6575b15 | refs/heads/main | 2023-08-22T22:43:54.247329 | 2021-09-23T12:28:31 | 2021-09-23T12:28:31 | 405,045,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
# setup functions tht need to be run b4 any other test
def setUp(self):
self.client = Client() #set to test client variable
self.admin_user = ... | [
"okidijimmie@gmail.com"
] | okidijimmie@gmail.com |
712beee0c3563de9fb46b2bcac2975a3cab3e520 | 570227155e5a9f1285cec3bacb5e0f570f53daf3 | /mrcnn/parallel_model.py | c75df62bf06fe158224c6dad859a41baa50ecb4a | [] | no_license | frodsantos/polyp-detection-segmentation-mask-rcnn | 56676f47e9824e30ed56f3bfc67049e46a2f303e | 5b9a138d7fa95c5c720eaf6081c7efe4242d4a1b | refs/heads/master | 2021-09-22T11:26:57.034982 | 2018-09-09T16:13:03 | 2018-09-09T16:13:03 | 147,788,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | """
Mask R-CNN
Multi-GPU Support for Keras.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
Ideas and a small code snippets from these sources:
https://github.com/fchollet/keras/issues/2436
https://medium.com/@kuza55/transparent-multi-gp... | [
"noreply@github.com"
] | noreply@github.com |
9e66eff52beda5e4b7d85385b65e31b1f2b2ddbe | 24a46dc04333b50c90f726b6d9a95d5638aae826 | /DRestFramework/DRestFramework/asgi.py | 262b28ca2b05f57f0059acbfdcc1dccb2c0451d2 | [] | no_license | oguzhanztrk/DjangoProjects | e576c70d8951173c75a736e33a11a085191780e1 | 59802330805d1f5e715f049d66b14bc18dcff40f | refs/heads/master | 2023-02-07T07:23:35.835487 | 2021-01-01T16:07:53 | 2021-01-01T16:07:53 | 288,226,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for DRestFramework 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('DJANG... | [
"oguzhan.ztrk14@gmail.com"
] | oguzhan.ztrk14@gmail.com |
52a7077c4a5e57e74351d2143f1de90345c7a686 | 75678ff3f7fb3af16b36d5ef952ce90c089336e1 | /legacy_folder/lspi.py | be9388df0bf5391f1256dbf20676302329ca1385 | [] | no_license | jeonggwanlee/LSTD-mu | 71cc530b7072aab9e515609fa61f0fefe1d53903 | b2d890ddba587ac01b722a4a6b21575b354dec9d | refs/heads/master | 2020-04-12T16:06:25.249480 | 2019-03-07T16:58:00 | 2019-03-07T16:58:00 | 162,602,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | import numpy as np
from rbf import Basis_Function
from policy import Policy
import pickle
import ipdb
import os
"""
important property of LSPI is that it does not require an an approximate
policy representation, At each iteration, a different policy is evaluated
and certain sets of basis functions may be more appropri... | [
"leejk526@gmail.com"
] | leejk526@gmail.com |
c112adbf68b743044edcb76406c6f539a19c6611 | c0ef5d2f48a52a23fce89c5fb965ac7f724f8244 | /statistical_prediction.py | 218640e2f4ddf71911b18eabccf71a9cc0d1a2cc | [] | no_license | setnicka/gene_prediction_project | a62762a6008d0182540162325c732cd0cb3ddd17 | cfd52d4c447ad8701a4341d3c6112bda74002336 | refs/heads/master | 2021-01-10T04:16:21.652103 | 2016-01-22T07:06:31 | 2016-01-22T07:06:31 | 49,730,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python3
import gene_tools
from gene_settings import sequences_dir
model_pre = 15 # To catch Pribnow and Gilbert box
model_post = 25 # To catch ribosomal binding site
def StatisticalPredictionTrain(sequences):
model = None
for seq in sequences:
real_genes = gene_tools.ReadGenes(sequences_dir + seq +... | [
"setnicka@seznam.cz"
] | setnicka@seznam.cz |
d0e0fa8c7ca3e92cb5dfab6cb3b690dae9ab9b27 | 9098740c69d805bf373000e6573854bd4c0de698 | /Matplot/matplotExercise.py | d6eb4c6782b5d15b0eec18e069fa9a4d3d374677 | [] | no_license | sureshk2a/Python-for-DS-and-ML | 0d3bbd762d2b0f1fa76c551c57570023bbc77db9 | c07a72c293a6d5eb9a0deeeab74eb8dca4979832 | refs/heads/master | 2022-11-26T10:03:09.662502 | 2020-08-03T00:39:56 | 2020-08-03T00:39:56 | 260,941,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0,100)
y = x*2
z = x**2
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.set_xlabel("X")
ax.set_ylabel("Y")
ax.set_title('title')
ax.plot(x,y)
plt.show() | [
"34769206+sureshk2a@users.noreply.github.com"
] | 34769206+sureshk2a@users.noreply.github.com |
390292cd85133a1d94b7ccdc633c51b83ca43120 | 997312a59cb833c3c14e90fbf0046dd76ddf741f | /djangoproxy/proxy/apps.py | b6b0bcba5241a7932314db14595697f722b62f24 | [] | no_license | Aggosh/DjangoProxy | 0ebccf222aaa5c02a3673194110002a04732e658 | 706eeb1a4527fcfd9e938dddc673af4e8c30056b | refs/heads/master | 2023-02-22T16:24:30.894222 | 2021-01-20T12:03:34 | 2021-01-20T12:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class ThumbnailerConfig(AppConfig):
name = "proxy"
| [
"bkmzilia@gmail.com"
] | bkmzilia@gmail.com |
23469463dfbc6631814a0468add53c75df07336e | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0572.0_Subtree_of_Another_Tree.py | 04f22ba2c1aebcb28258a3c091754703156231d3 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | '''
Success
Details
Runtime: 340 ms, faster than 10.24% of Python online submissions for Subtree of Another Tree.
Memory Usage: 14.6 MB, less than 53.07% of Python online submissions for Subtree of Another Tree.
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
b1da72ca6a90f4e8721e59a996efb5614262544d | 04f5eb559d2d1823b545f6e9536fdb427d533506 | /ex_methods/lime/lime_tabular.py | ec1100dff9d70767e843ed20ef7db09043bfeb00 | [] | no_license | shybeeJD/XAI-platform | 467b80883a451b352cdc2dec13f446e899f39e83 | 7bde870321e5366a3cf41ae04b9c3a2a7e898610 | refs/heads/main | 2023-08-13T22:34:10.115463 | 2021-10-19T02:03:45 | 2021-10-19T02:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,435 | py | """
Functions for explaining classifiers that use tabular data (matrices).
"""
import collections
import copy
from functools import partial
import json
import warnings
import numpy as np
import scipy as sp
import sklearn
import sklearn.preprocessing
from sklearn.utils import check_random_state
from pyDOE2 import lhs
f... | [
"295886980@qq.com"
] | 295886980@qq.com |
cb04ddbe159999dd98fe3bc062ec157af7e08e40 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/36d056acd92ca2f7e97fec82fd09f36c42c05338-<input_producer>-bug.py | 3a7ddc7afac95a39d452b1dd75f57e4f08345d0f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py |
def input_producer(input_tensor, element_shape=None, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None, summary_name=None, name=None):
'Output the rows of `input_tensor` to a queue for an input pipeline.\n\n Args:\n input_tensor: A tensor with the rows to produce. Must be at\n one-d... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
da67d7ed8dcc598ee9cefa72bace4f050b28b358 | d28c5a2993f5ba6133845ee724c188e0b3c3775a | /python/tests/test_helper.py | 9f71fa7d2dd00a8d29ffc62329535b7979a77772 | [
"Apache-2.0"
] | permissive | bcgov/RSBC-DataHub-API | 5817d9b5298ee5824415cb53fad2e10c19806533 | 5039b02cb3b5e2eb008fb8ad82e4070b65c59c7e | refs/heads/master | 2023-07-12T17:02:51.857211 | 2023-07-06T16:05:31 | 2023-07-06T16:05:31 | 240,372,827 | 9 | 12 | Apache-2.0 | 2023-07-06T16:07:56 | 2020-02-13T21:57:54 | Python | UTF-8 | Python | false | false | 1,320 | py | import python.common.helper as helper
import python.common.message as message
import python.form_handler.business as business
import pytest
import json
def test_helper_has_add_error_to_message_method():
message_dict = json.loads('{"event_type": "some invalid event"}')
expected_error_message = 'error message'
... | [
"jlonge@corebox.net"
] | jlonge@corebox.net |
4aadeccf6326d9ccb2694ac8bd52aaf36d149d60 | 111529119f4311045510560e617903fad68590da | /0024/0024.py | f4edb242fec037e99bf9adda67ce4e2a8f71e48a | [] | no_license | ashtonbaker/project-euler | 2ab66b0a2195ca2ef07aca6fc2e6fb7731925bc5 | 134e3d984e6f5e695e30f1ef5488e8a8883b1aa0 | refs/heads/master | 2016-09-06T06:33:43.250972 | 2015-10-26T00:35:34 | 2015-10-26T00:35:34 | 30,418,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import math
factorials = [math.factorial(i) for i in xrange(9, -1, -1)]
coefficients = [0] * 10
n = 0
while sum([a*b for a,b in zip(factorials, coefficients)]) != 999999:
while sum([a*b for a,b in zip(factorials, coefficients)]) < 999999:
coefficients[n] += 1
if sum([a*b for a,b in zip(factorial... | [
"ashtonsb@umich.edu"
] | ashtonsb@umich.edu |
a470996c18a37b613670620541320c7ae4f9bc6c | 3869085dd69bc23c9b9a8f30e80835f1e1e22364 | /purchasing/urls00.py | 46260ba52f7a54d845a0b8082d5bfddc2aa7af49 | [] | no_license | izzwl/nest | 679f7ac713fe6f1dee04412dd4ce2f3d0bad3c93 | 074fa63370ea8334c11295fa571584f05e6d45ff | refs/heads/master | 2022-11-29T03:54:50.902647 | 2019-07-24T09:11:42 | 2019-07-24T09:11:42 | 196,491,884 | 0 | 0 | null | 2022-11-22T04:07:40 | 2019-07-12T02:06:32 | Python | UTF-8 | Python | false | false | 472 | py | from django.urls import path
from . import views00
app_name = 'purchasing'
urlpatterns = [
path('in71/',views00.in71, name="in71"),
path('in72/',views00.in72, name="in72"),
path('in73/',views00.in73, name="in73"),
path('in74/',views00.in74, name="in74"),
path('in75/<int:in73_id>/',views00.in75, n... | [
"nest@nest.umcntp.co.id"
] | nest@nest.umcntp.co.id |
d591b7b7cee682ba69d0ba97411d93be9f283bc6 | e7840ce797c11daab93807a115f552a0112da315 | /run/train_cifar_gumbel.py | 8edaa179482bd06ce7af838970d637fb9b2a1c97 | [] | no_license | ymcidence/OperationFreya | aaf5d08807d51fab4acf421727bbb2b76a76a07e | e9706a39ce288117c8f1845824302bf4c06950d5 | refs/heads/master | 2023-01-06T19:59:36.270735 | 2020-11-02T09:54:56 | 2020-11-02T09:54:56 | 300,807,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import tensorflow as tf
from time import gmtime, strftime
from model.gumbel_model import GumbelModel as Model
from model.gumbel_model import step_val, step_train
from util.data.basic_data import BasicData as Data
from util.dat... | [
"ymcidence@gmail.com"
] | ymcidence@gmail.com |
8d44f0ae2fab70d1487c0f3c5d9cd7d23366ab77 | 30ddeb5af375185c2052839e6ea7c8db377ae307 | /CBVProject2/CBVProject2/settings.py | 68e25edb76c04fad6aa3ee24cd03deee776b7185 | [] | no_license | lukez08/CBV-repo | ffe121d6e65136c42fa07bc683a07d6593a1443e | 960acf4c246483cdcb1b06942552149526d372cb | refs/heads/master | 2023-02-19T21:28:05.665897 | 2021-01-23T05:47:22 | 2021-01-23T05:47:22 | 332,137,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | """
Django settings for CBVProject2 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"manojmmanu13@gmail.com"
] | manojmmanu13@gmail.com |
d1b8b380409305b112615cc2f6a3b1f200a89b38 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_268/ch34_2020_03_29_20_16_22_997795.py | 7ac92c7d8b2fdc1116c6e200a907b413c1ee9f71 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | def eh_primo(n) :
if (n <= 1) :
return False
if (n <= 3) :
return True
if (n % 2 == 0 or n % 3 == 0) :
return False
i = 5
while(i * i <= n) :
if (n % i == 0 or n % (i + 2) == 0) :
return False
i = i + 6
return True
def maior_pr... | [
"you@example.com"
] | you@example.com |
3b9abbb2fcb50fd72c4067684bcf92b9414508fa | c874b33d28b4fb4b794be4447cc1abadce707178 | /generator.py | cdfc502aabab07a011b16912f65f46e2f2ae8c0a | [] | no_license | Zombiedbot/Pentago | 885695d78b9bf7eb993b726f2d63760585c6778a | 8679d924d4f0cb347c09308f436b841bdaa122a1 | refs/heads/master | 2020-07-04T00:12:34.319143 | 2019-08-13T08:07:12 | 2019-08-13T08:07:12 | 202,094,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,984 | py | import random
import pentago
def make_4_1():
M = [['.' for i in range(6)] for i in range(6)]
k = random.randint(1, 14)
if k < 7:
for i in range(1, 5):
M[k - 1][i] = 'X'
b = random.randint(5, 7)
#print(b, k, 0)
for i in range(b):
c = 36 - 4 - i - 2
... | [
"artemyena52@gmail.com"
] | artemyena52@gmail.com |
b8a6d4b5c488151244256500ffaab2184cecdabc | c6eb52478346d4c0b272035f45f62f6b1dccf2c3 | /data_science_py/26_spark/lambda_expressions.py | e961135b4db95e1a1a503192e7ba57b3086ce7a9 | [] | no_license | antichown/udemy_courses | 88732eea17eac8614152aa815d57c64fa54d0104 | d308fe478a67cb7fc395d99d798ac58fdc1f58c4 | refs/heads/master | 2022-11-06T22:28:08.118570 | 2020-07-17T02:00:19 | 2020-07-17T02:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/env python
# coding: utf-8
# #lambda expressions
#
# One of Pythons most useful (and for beginners, confusing) tools is the lambda
# expression. lambda expressions allow us to create "anonymous" functions. This
# basically means we can quickly make ad-hoc functions without needing to properly
# define a... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.