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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f38302532a1db3c972e4413e332da4c2144cc11 | f7cb41fe0859d80574e412f51280376c8e3c9e0f | /yard/skills/66-python/cookbook/yvhai/demo/std/collections/dict.py | f4194347689f807351b82b4ba8185b92fb9885ed | [
"Apache-2.0"
] | permissive | bbxyard/bbxyard | 7ca771af10237ae9a6d758baf26d78d110e8c296 | 5bf32150fa5cade9e4d9063037e5a03e587f9577 | refs/heads/master | 2023-01-14T17:39:04.191739 | 2020-08-18T06:56:36 | 2020-08-18T06:56:36 | 11,716,364 | 1 | 2 | Apache-2.0 | 2022-12-30T01:25:47 | 2013-07-28T06:48:59 | C | UTF-8 | Python | false | false | 2,910 | py | # 实现multdict
from collections import defaultdict, OrderedDict, Counter
from yvhai.demo.base import YHDemo
class OrderedDictDemo(YHDemo):
"""OrderedDict"""
def __init__(self):
super(OrderedDictDemo, self).__init__("OrderDict")
@staticmethod
def demo(args=[]):
od = OrderedDict()
... | [
"bbxyard@gmail.com"
] | bbxyard@gmail.com |
6d9ad99200ba4e3cdf7b88a7da2787de0df12c8b | afde521f50b6be4be9e5c3071ed6459419fb5edb | /env/lib/python3.6/site-packages/pyecharts/charts/scatter3D.py | 35198ac9849fd58ec18641bff9956994438195d7 | [] | no_license | guhongcheng/myblog | ddef4aa0888dedfb70933b34bfd0c5da5bb5d5cd | b11f5ee26125b9551b1f27814b96a845dd4e6a76 | refs/heads/master | 2022-12-18T20:26:46.596014 | 2018-07-26T02:46:07 | 2018-07-26T02:46:07 | 134,683,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # coding=utf-8
from pyecharts.chart import Chart
import pyecharts.constants as constants
class Scatter3D(Chart):
"""
<<< 3D 散点图 >>>
"""
def __init__(self, title="", subtitle="", **kwargs):
kwargs["renderer"] = constants.CANVAS_RENDERER
super(Scatter3D, self).__init__(tit... | [
"1051712303@qq.com"
] | 1051712303@qq.com |
dba87a9b580d39b7e8694daed7b9a5cb06a8db56 | 998a180e5c974d89c9ad33532d4fd33298c806a4 | /chapter1_arrays_and_strings/palindrome_permutation_1_4.py | 9fff45e7b07a41cdbf04a5422ddc172fcfa0d501 | [] | no_license | Taycode/cracking-the-coding-interview-solutions | c542a047a37b5af406469ba3f912b4bbdc326b05 | 0c2dcc4d4558dc4766b5ddcce470a60986eb39a6 | refs/heads/master | 2023-02-08T16:31:59.683541 | 2020-12-27T16:59:12 | 2020-12-27T16:59:12 | 324,807,557 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """
Given a string, write a function to check if it is a permutation of a palin
drome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation
is a rearrangement of letters. The palindrome does not need to be limited to just dictionary words.
EXAMPLE
Input: Tact Coa
Output: True (permut... | [
"tay2druh@gmail.com"
] | tay2druh@gmail.com |
2aa1f7f97663abbd042a034c1570074ff9f985b1 | d496e9b71a9cdc226c8005b7d1be53a0c9154a36 | /guessNumber.py | 8be67a889479f08dae7d291e69ea215d59321b7b | [] | no_license | Shubham-S-Yadav/Python | 1f83e4a28e304679e16829613d845e8eae6f3921 | 830537dd02b60bb9f00a9079556a0c9323a26c17 | refs/heads/master | 2021-07-03T06:39:06.150795 | 2017-09-22T14:05:01 | 2017-09-22T14:05:01 | 104,320,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | '''
Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right.
'''
import random
while True:
number = int(input("Enter a number between 1 to 10: "))
rand = random.randrange(1, 10)
if (number == rand... | [
"31968975+Shubham-S-Yadav@users.noreply.github.com"
] | 31968975+Shubham-S-Yadav@users.noreply.github.com |
e97d3591d81411fa559ed7e6451f00eadeff503d | 7ee8abf70257e885215a1abd4838845ffce0a626 | /hello.py | 04c61710ba08d106ff3895cc62b2c2843a31686a | [] | no_license | diorich/firstapp | b52610118d3eabe752ab7fee4860f91cf5a9be22 | 62dddc6863b2b6c258b4536567a43a5dafd8ca12 | refs/heads/master | 2021-01-17T18:08:15.500815 | 2016-10-17T18:42:15 | 2016-10-17T18:42:15 | 71,169,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello World!"
if __name__=='__main__':
app.run(port=5000, debug=True)
| [
"d.rich@live.co.uk"
] | d.rich@live.co.uk |
0f715b9465ba1a0dcc750d969a70815c72610331 | c5ea70bb1337b9c9c72a5dd80cebac8f1ba52a4d | /articleapp/migrations/0001_initial.py | af823e9e2455f6c04a5a7bb967af3293be69d4cd | [] | no_license | leesh9069/Django_Project_LSH | 8466f0a8e6670e3357f23e64437ec9452ae23c33 | 9fb647cc2586f3244a80f65ed31d4d646a4cac6f | refs/heads/master | 2023-07-19T16:29:54.855919 | 2021-09-23T06:41:58 | 2021-09-23T06:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # Generated by Django 3.2.5 on 2021-08-01 15:38
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),
]
ope... | [
"shlee9069@naver.com"
] | shlee9069@naver.com |
33864e4c4e10988ab56cdf4ba1f15fbbd344f0e0 | d2f50124ff3bec70b9b3139ecb063b06e526781d | /despachos_mercancias/migrations/0012_auto_20170113_1639.py | 17429c15b3153edf6a6c8081aaad3e0199999d20 | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-13 21:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('despachos_mercancias', '0011_enviotransportadoratcc_ciudad'... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
a395c82a89fc6e3b2e18e384f6d821681a2b2481 | 6c38e5f5e43e47f83b34581b0f3a785ee5b5768b | /old_version/src_server/handler/care_handler.py | 76abda847be279c69728bf1dd5f353e49d16bc03 | [] | no_license | 340StarObserver/deepnote | bd3a8765222e550bec4cd05e894b3fa8ba6f1303 | 643a5252ceeb6e5d633ae1b0691121136135fbbe | refs/heads/master | 2021-01-17T01:50:02.731339 | 2017-03-23T08:49:12 | 2017-03-23T08:49:12 | 63,515,784 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Author : Lv Yang
# Created : 05 October 2016
# Modified : 22 October 2016
# Version : 1.0
"""
This script used to care somebody or cancel care
"""
import time
import sys
sys.path.append("../model")
from base_handler import BaseHandler
from mongoconn_model impor... | [
"lvyang@ippclub.org"
] | lvyang@ippclub.org |
ce37c43e76430750154401851a00fca84140d317 | abd9537f8b90a990e195ded5f9fafdcc108d2a48 | /swea/d4/1486/1486_shelf_powerset.py | 487056a865e5b4c70509b2d17d0851b107ba7e2c | [] | no_license | ohdnf/algorithms | 127171744631406c1d08cc2583aa569a094fa2cd | 6f286753dab827facc436af4f2130f11dad2d44f | refs/heads/master | 2023-08-09T11:19:56.445351 | 2021-08-31T13:11:46 | 2021-08-31T13:11:46 | 236,180,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import sys
sys.stdin = open('input.txt')
t = int(input())
for test_case in range(1, t+1):
n, b = map(int, input().split()) # 점원 수, 선반 높이
clerks = list(map(int, input().split()))
# clerks.sort(reverse=True)
heights = list()
for i in range(1<<n):
tmp = 0
for j in range(n+1):
... | [
"jupyohong7@gmail.com"
] | jupyohong7@gmail.com |
08580dffeacca70d2adf0088f5b03bd8a89be49a | 115e96b9de17f0040333c6d375b45b6c4df8765e | /even_odd.py | f805324ec9be827edd335c3b5b65a41b0189131c | [] | no_license | NdunguGP/pythonApps | e4deab3db2c7dcec58a1f3bf5ed228df4724c963 | 98cb3150e66d66622e8be8f0ebb99a4e076bacc8 | refs/heads/master | 2021-07-23T16:37:11.543607 | 2017-10-29T19:33:10 | 2017-10-29T19:33:10 | 104,220,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import random
def even_odd(num):
# If % 2 is 0, the number is even.
# Since 0 is falsey, we have to invert it with not.
return not num % 2
start = 5
while start:
number = random.randint(1, 99)
if even_odd(number):
print("{} is even".format(number))
else:
prin... | [
"noreply@github.com"
] | noreply@github.com |
e5a492b919dd3469c6ccf1a0e1b91198ebd9a81a | b3ad87a5556c4cb46953db552517090163c79f4b | /extract_feat.py | a38d5c9497da1bf6d87ff7f76a4fe026f3e03e3c | [] | no_license | martinhoang11/Image-classification-with-cnn-and-svm-model | c9b8e0222c2472b16d8239c0c46c9aebc4308ff1 | 1ed4e6e2130d8771f0f7122697f202c5b85ce4ef | refs/heads/master | 2020-07-01T15:33:41.092036 | 2019-08-08T08:43:37 | 2019-08-08T08:43:37 | 201,212,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | import numpy as np
import tensorflow as tf
import vgg16
import cv2
import os
# Change this path
DATASET_DIR = './Images/run/'
if not os.path.exists('./npydataset'):
os.mkdir('./npydataset')
def load_image(PATH):
batch = []
folder_name = []
img = [cv2.imread(PATH + file) for file in os.listdir(PATH)]
... | [
"39638263+martinhoang11@users.noreply.github.com"
] | 39638263+martinhoang11@users.noreply.github.com |
b6909e37a238b47e2e8dba721836e7fc248f5a2f | af4024de1e85735b88de94392934c75295e4bfb6 | /aula04/conta_digitos.py | ba7b5cb7571f5389e2154ec64a0d09d3e86fd4e6 | [] | no_license | felipenatividade/curso-python | 82f26e82e27377392684a6ece0e446eb4ee73e8c | 63820cd76471492f4d3742beafc78818273f0430 | refs/heads/master | 2020-04-05T01:42:13.393989 | 2018-11-28T00:00:49 | 2018-11-28T00:00:49 | 156,445,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | n = int(input('Digite um numero'))
d = int(input('Digite um digito'))
versaoStr = str(n)
def conta_digitos(versaoStr):
for i<
| [
"felipecmro@hotmail.com"
] | felipecmro@hotmail.com |
997203f940c4b6476c12df8f5e3f8b791bb4cc9b | 39d183b0a113148a6bbc7cbd5ac6fa522f06f700 | /5手写数字识别/mnist_test.py | 264524a799b6c2799e7040855cf2cf3b95ce7332 | [] | no_license | gdgf/MoocTF | 0311ddab6f69bf9e570e43f3395f43b013fd47d6 | 8cfdfcd0b6397967f7346f7db898cc19bac19a81 | refs/heads/master | 2022-04-17T00:54:56.896890 | 2020-02-16T02:52:17 | 2020-02-16T02:52:17 | 240,673,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # coding:utf-8
# 去掉警告
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# 测试浮现了
import time # 为了延迟
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import mnist_forward
import mnist_backward
TEST_INTERVAL_SECS = 5 # 程序循环的额时间
def test(mnist):
with tf.Graph().as_default() as g... | [
"794428738@qq.com"
] | 794428738@qq.com |
14575f006fa799ab2f3698289711bf9ad024a62a | 86813bf514f3e0257f92207f40a68443f08ee44b | /0338 比特位计数/0338 比特位计数.py | 96ff96f4ec3d4463f1b79f1a90552912d3e21da3 | [] | no_license | Aurora-yuan/Leetcode_Python3 | 4ce56679b48862c87addc8cd870cdd525c9d926c | 720bb530850febc2aa67a56a7a0b3a85ab37f415 | refs/heads/master | 2021-07-12T13:23:19.399155 | 2020-10-21T03:14:36 | 2020-10-21T03:14:36 | 212,998,500 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | #label: math/dynamic programming difficulty: medium
"""
思路一:
麻瓜思想,每个数转成二进制计数
"""
class Solution:
def countBits(self, num: int) -> List[int]:
res = list()
for i in range(num+1):
res.append(bin(i).count('1'))
return res
“”“
思路二:
《剑指Offer》里提到的结论:如果一个数 i 和 i - 1 做与运算,那... | [
"noreply@github.com"
] | noreply@github.com |
c0c8b5cd76ab1211715caf9c7860677b20a6a49e | dfadee3252841bae4f1065919d794557832245a9 | /exercise-3/ex3.py | b6994faa4de7370b7f4aaa52829e708297765462 | [
"MIT"
] | permissive | Queky/advent-code-2020 | 7c74b4e91f62fd7ab2475c96d8e5f4799c9c9bd7 | 1a1dbc208464b28e813f4743423c7fbacd5a4d0d | refs/heads/main | 2023-02-01T14:38:04.023310 | 2020-12-13T18:51:47 | 2020-12-13T18:51:47 | 320,059,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py |
class Map:
maxWidth = 0
maxHeight = 0
positions = []
def __init__(self, lines):
self.maxWidth = len(lines[0])
self.maxHeight = len(lines)
for line in lines:
if line:
self.positions.append(list(line))
def is_tree(self, x, y):
return self... | [
"inakisanchez_92@hotmail.com"
] | inakisanchez_92@hotmail.com |
49ada2472ec71775a9376b00c9ae37ee34f38b0a | 15e3bdc0af8247f8f4f6d4932336e8fcba94e239 | /string/format.py | bb537793cf27719c4358d7183adc6edfa377f444 | [] | no_license | yuii-code/_workshop02 | e3b38c53ffa130d9a0fb2947af53708dbeca2264 | 7cdd901ec0728b442a37ffaaa4df0b29f019e027 | refs/heads/master | 2023-03-23T02:24:35.477521 | 2021-03-13T10:41:43 | 2021-03-13T10:41:43 | 328,414,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | age = 20
txt = "My name is yui, and I am {}"
result = txt.format(age)
print("result", result)
| [
"onthicha.s@ku.th"
] | onthicha.s@ku.th |
a095922b84d873ba110a5c151c41ad135874eb8c | c370c85aaa470a9dcfef38de2356083ce1b41b41 | /src/main.py | da4494bdd58941e0265ad7a602b47ae31e8c602e | [] | no_license | mlytle4218/pod-kast | cd51979d16c322fddab2b2638922d9ebb5eded82 | e519add9cf4b2e5eeca53485c5431a9988bb1466 | refs/heads/main | 2023-08-24T05:00:52.949984 | 2021-10-09T06:49:36 | 2021-10-09T06:49:36 | 411,491,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,053 | py | # python imports
import os, subprocess
# local imports
import utils
from data_accessor import DataAccessor
from menu import Menu
from sqlite_database_creation import Category, Podcast
from sql_category import CategoryControls
from sql_podcast import PodcastControls
import config
from log import logging as log
clas... | [
"mlytle4218@gmail.com"
] | mlytle4218@gmail.com |
d49b8dd94000b3cb7de0d0de656972db01f76896 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba0150.pngMap.py | 12eae37b66b5a10110de9f226bbdc8418a2818d0 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba0150.pngMap = [
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'0000000000000000000000000000000000000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
7f2df471b94bb54376e154486267ebd828d91fe3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_deepens.py | 5ee1f3387e1e9e28ab6fb75803b9751b7df84712 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _DEEPENS():
def __init__(self,):
self.name = "DEEPENS"
self.definitions = deepen
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['deepen']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
523ebba8af98a2d50fc0e4ed662799dd8673bccc | 59020ea258d38e876b39a4a5d79a85ad4d014084 | /rpi/withImgReg/testCamera.py | fae929747cdd4b24b55abfae99836b64bdc18abf | [
"MIT"
] | permissive | Joash-JW/CZ3004-MDP-Image-Recognition | eb4db054cf6a74b9269a6b5b4af271d311ef7f86 | 75a12aa7b44ace049ac8885fb832135083b26c9b | refs/heads/master | 2022-12-28T10:35:16.947227 | 2020-09-28T16:28:07 | 2020-09-28T16:28:07 | 246,212,331 | 0 | 0 | MIT | 2020-09-28T16:28:08 | 2020-03-10T05:01:00 | Jupyter Notebook | UTF-8 | Python | false | false | 53 | py | from sendImg import *
obj = sendImg()
obj.takePic()
| [
"32333304+Joash-JW@users.noreply.github.com"
] | 32333304+Joash-JW@users.noreply.github.com |
a5cfcab1ab85afbc722c0382948b7d599a5f384b | 6ee14bd6b0f7c71d7d81249f24b2472b7af58dad | /scripts/page_utils.py | f5e6cccd218fdae6bafcbee38f2611707e71aa24 | [] | no_license | matplo/lmdweb | ae7124d508f3630647457c77e4791d15f44172ab | d95a40dd61a3862d301cbbf5d4ba613759e5081c | refs/heads/master | 2020-04-30T12:40:57.709765 | 2019-06-11T18:49:28 | 2019-06-11T18:49:28 | 176,832,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def safe_meta_get(page, what_meta, default_val=True):
retval = default_val
try:
retval = page.meta.get(what_meta)
except:
retval = default_val
page.meta = { what_meta : default_val}
if retval is None:
retval = default_val
page.meta[what_meta] = default_val
return retval
| [
"mploskon@lbl.gov"
] | mploskon@lbl.gov |
809cb39be1c498b2dc3381f28cb369e0fa000dd1 | d404fb72dee51f8c2791bf21cc5d9ee91d2d6a45 | /ch03_if/0118_grade.py | 994ed4ab4c6a92af05a7cb316a7605ce19cac7b7 | [] | no_license | kangwonlee/18pf_welcome_template | 6c5c997e7aac08d8a7d94d4a146037c2d3b4a813 | 9279559c7cde37a18b8e1d5e596f161087493218 | refs/heads/master | 2021-04-12T07:52:29.577562 | 2018-03-18T21:29:28 | 2018-03-18T21:29:28 | 125,769,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | score = int(input("성적을 입력하시오: "))
if score >= 90:
print("학점 A")
elif score >= 80:
print("학점 B")
elif score >= 70:
print("학점 C")
elif score >= 60:
print("학점 D")
else:
print("학점 F")
| [
"kangwon.lee@kpu.ac.kr"
] | kangwon.lee@kpu.ac.kr |
c757bd9966acd9a987e30e914ce32a7e7481d6da | 9ee9d0aa7d924e7d0500f88f2d5a566a31857360 | /stylegan-encoder-master/encode_images_fk.py | 361ee0eacd88487356f25f28066cc64cd8dc42fa | [] | no_license | Fenkail/py-torch | 044302f71b3254cca9da3308697d14c048253675 | 91e5eedb8df124753bcd13081416cafdd1ee2f48 | refs/heads/master | 2020-06-29T14:17:19.206952 | 2019-10-12T08:20:23 | 2019-10-12T08:20:23 | 200,559,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,975 | py | import os
import argparse
import pickle
from tqdm import tqdm
import PIL.Image
import numpy as np
import dnnlib
import dnnlib.tflib as tflib
import config
from encoder.generator_model import Generator
from encoder.perceptual_model import PerceptualModel, load_images
from keras.models import load_model
import time
impor... | [
"fengkai1996@foxmail.com"
] | fengkai1996@foxmail.com |
84178264efd8e2f1fc7382e20d6fb767bbb79b3d | 70205375cd8d98c6f7f7a214fc7f9db8abab75f5 | /WEEK-9/1-Money-In-The-Bank/The-Alchemy-Way/base.py | 78fc905756046d9a3ffe2c88dbfcab01d946fc5b | [] | no_license | presianbg/HackBG-Programming101 | 81f006b938663f982e182cdfef312cd7f9f33263 | 1a16953d4ac12766828daaf62a6290a68043a7bc | refs/heads/master | 2021-01-18T22:33:27.515738 | 2016-05-26T04:54:47 | 2016-05-26T04:54:47 | 32,878,278 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | '''
Share Base to other files - main idea
'''
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
| [
"presianbg@gmail.com"
] | presianbg@gmail.com |
600a302ed2fe494a20e8295bf50c9fec01ba19fb | b857397e77f2804b80a5e7a39c1434230889986b | /orders/migrations/0016_auto_20180614_1907.py | 58c4f6e5dc62487230bf19ecdd3ad5dd110652ab | [] | no_license | Gxrjan/OnlineOrder-on-Django | 38af12489ab95ca705b5e8a32f6bd886cbbdf718 | 7a2901cbd613b378505dc22a2522f5e5d20bcbf5 | refs/heads/master | 2020-03-22T17:11:18.958217 | 2018-07-10T05:02:22 | 2018-07-10T05:02:22 | 140,379,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.0.5 on 2018-06-14 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0015_auto_20180614_1457'),
]
operations = [
migrations.AlterField(
model_name='template',
name='name',
... | [
"Gxrjan@gmail.com"
] | Gxrjan@gmail.com |
78bce8b6106795876ff11fd8725ce110034391de | 7dce2aa5fbbf74dedb51d2a4792a9ccbf29a7430 | /pybin/cpu.py | 91de011c898c5ed3800ffbc1926d2a0f9c6b6239 | [] | no_license | robert-e-roy/spork | 4e4e1fec3d056fc33d5c42f77bd87bbfa3c3885d | bbc475ffe86cee9b6131365857365acf62314fe9 | refs/heads/master | 2023-02-02T08:49:48.114545 | 2020-12-20T21:45:54 | 2020-12-20T21:45:54 | 45,711,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | #!/usr/bin/env python
import os
import sys
import pdb
import time
import array
def main():
'''What wll we do!'''
tsize=10000000
print "cpu speed test\n"
# pdb.set_trace()
myArray=[0]
start=time.time()
msize=0
while (msize < tsize):
msize += 1
myArray.append(1)
now=time.t... | [
"me@robert-e-roy.com"
] | me@robert-e-roy.com |
5c4f2ddf4459e23dcfd43b94dcfb8c19ba95d495 | 2518db90aeef9130856081ec6600ab261be25741 | /Test/stats_python/stats.py | 8107c1874b760fcb1b3ecc6914108c32db1bf894 | [] | no_license | MalcolmMielle/RSI | aec03084da4326fdab111773dd8e83242ff50f8a | 5a1eec8d749ac71060e5814e9b51ed823550b09f | refs/heads/master | 2020-09-17T05:25:52.439905 | 2019-11-25T17:34:40 | 2019-11-25T17:34:40 | 224,004,604 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import numpy
import scipy.stats
import matplotlib.pyplot as plt
def mean(list):
sum = 0
for element in list:
sum = sum + element
sum = sum / len(list)
return sum
def variance(list, mean):
sum_el = 0
for element in list:
temp_el = element - mean
temp_el = temp_el * temp_el
sum_el = sum_el + temp_el
su... | [
"malcolm.mielle@protonmail.com"
] | malcolm.mielle@protonmail.com |
aa416bdfc7a7201c4451bbc32abf96628417d47f | 67e1c52432a4d6a35ad1609a072b1d0c19b9f24b | /osi_django_app/manage.py | 604a4509ef9904cd98b5258bbca348a45d6b0529 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | tapaswenipathak/Open-Source-Programs | d7c017b70e89e81e19054e4c1f503deb325678db | ab31f6307338905a76635656ed2dc4dffb789bac | refs/heads/master | 2023-08-24T07:39:42.232907 | 2023-01-28T15:11:56 | 2023-01-28T15:11:56 | 46,958,040 | 2,527 | 569 | MIT | 2023-08-14T10:48:14 | 2015-11-27T03:37:32 | JavaScript | UTF-8 | Python | false | false | 634 | 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', 'osi_django_app.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"tapaswenipathak@gmail.com"
] | tapaswenipathak@gmail.com |
0eefce36ea159a3ee01e3a8648d44a932052a570 | 679e31fe16e92e1d0bc3448c25845103f19a622f | /web_flask/3-python_route.py | 96ec3a910bab88bd161ba28e53c1573167ff9a05 | [] | no_license | Gikaro/AirBnB_clone_v2 | ab7d63ce3e942253ded54d30d68c631eb055308c | 5744e747f2fdb722d7e6843bd1e4a67abf9c8243 | refs/heads/master | 2023-03-20T01:34:49.172584 | 2020-09-02T23:22:39 | 2020-09-02T23:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | #!/usr/bin/python3
"""WebFlask module"""
from flask import Flask
from os import environ
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_route():
"""Display Hello HBNB"""
return 'Hello HBNB!'
@app.route('/hbnb', strict_slashes=False)
def hbnb_route():
"""Display HBNB"""
return '... | [
"sebri.issam@gmail.com"
] | sebri.issam@gmail.com |
12e01a17bd141b1e82d95006b641e5bb0343d272 | 484c462c29e3c2f8ac280b79c11db6982c6a8ca6 | /neurolab-0.2.3/neurolab/__init__.py | 1c9445506114073da6f75ac4c16ca8634f996e27 | [] | no_license | thelma1944/Python_Stuff | b5fa53bf008bb5e865204201b144fe20e7f87565 | 077131a2c9f247396dca86fdf18933d38ae8d501 | refs/heads/master | 2021-06-05T12:25:35.779070 | 2020-10-03T18:20:16 | 2020-10-03T18:20:16 | 16,077,931 | 0 | 1 | null | 2021-03-26T00:30:14 | 2014-01-20T17:36:16 | Python | UTF-8 | Python | false | false | 1,754 | py | # -*- coding: utf-8 -*-
"""
Neurolab is a simple and powerful Neural Network Library for Python.
Contains based neural networks, train algorithms and flexible framework
to create and explore other neural network types.
:Features:
- Pure python + numpy
- API like Neural Network Toolbox (NNT) from MATLAB
... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
666833e38405142de2789716d45b14fc5149cbc6 | 53451bc76fea13b592fbe3d885123d002ea8da14 | /run.py | 4244c8c2101e90d75bd2e8c245813d872224a886 | [] | no_license | jicius/fake_proxy | a640476ad3d6cdcbd3d81741bd66bcaf9083ecec | 882c25b7da6657793bd32963aa2509f99d10cda9 | refs/heads/master | 2021-01-23T01:40:28.358157 | 2017-09-10T03:03:37 | 2017-09-10T03:03:37 | 85,923,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Jicius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | [
"bq_ji@yahoo.com"
] | bq_ji@yahoo.com |
b74a713408aefee074e4a9a91ccb1e88510edabe | 38c753e495cd362086777d3e78330325580cb5a3 | /q10.py | ddc209bcdf18eff788f55bb82962785d86a2db3f | [] | no_license | Sandesh-Thapa/Assignment-II-Control-Structure | 578d6841f1e186f1700d3abe8185089d35ace76b | a1c7e7b66a95e38ba7267180970c56f047b114c2 | refs/heads/master | 2023-01-30T08:06:50.304445 | 2020-12-13T15:12:07 | 2020-12-13T15:12:07 | 321,084,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | # Write a function that takes camel-cased strings (i.e. ThisIsCamelCased), and converts them to snake case (i.e. this_is_camel_cased). Modify the function by adding an argument, separator, so it will also convert to the kebab case (i.e.this-is-camel-case) as well.
def convertStringCase(camel, separator):
output = ... | [
"sandeshthapa426@gmail.com"
] | sandeshthapa426@gmail.com |
974fac91bb980b5ccc2df0d561cd18c2080e6149 | 5c22a1b4af40a008681eb2a6b7829a3c135b7d78 | /Coding_and_Evaluation/detection/vgg/cal_comp_rate.py | b5ee3e9a698cafe80874b41eae55353e40b2bd50 | [] | no_license | ZoomChen/DeepFeatureCoding | 67c595a54859b8262d6397fe8ebef6d7c813a7b9 | 93dab42cfbfe9a579ae5f7d88e34e2c612d66b80 | refs/heads/master | 2020-08-20T09:16:34.107215 | 2019-11-05T01:31:21 | 2019-11-05T01:31:21 | 216,005,759 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import os
import sys
import pickle
quant_feat_dir = '/abs_path/coding/detection/vgg'
Qp_list = [12, 22, 32, 42]
feat_list = ['conv1', 'pool1', 'conv2', 'pool2', 'conv3', 'pool3', 'conv4', '... | [
"chenzhuo.zoom@gmail.com"
] | chenzhuo.zoom@gmail.com |
488cf30ffd994fadeab06641083eb00fa3b153e5 | 4eff9d232c5dcae30232de53e7de2d7a7902b9fd | /authapp/forms.py | 9af4ac083b66639cb24a899a5698fa19c64c42d9 | [] | no_license | Volhen/geekshop | 56728b195797de18c25061f0a5bb4881eff15a08 | c9226486fb9c9b13faea434e3fba2b7e6a0dd4f9 | refs/heads/master | 2020-05-23T08:31:32.562412 | 2019-05-20T10:41:22 | 2019-05-20T10:41:22 | 184,905,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | import random
import hashlib
from django.contrib.auth.forms import AuthenticationForm, UserChangeForm, UserCreationForm
from authapp.models import GeekUser
from django import forms
from .models import GeekUserProfile
class GeekUserLoginForm(AuthenticationForm):
class Meta:
model = GeekUser
... | [
"zver2485@mail.ru"
] | zver2485@mail.ru |
dbaa16ecbdad9bbf872d8aacc6e0c934db1fa839 | dd34d98b9301a1bea1daaa85f567310b5663847e | /chapter06/6-7.py | 9e4a777d2d537cd70c7bbed2365705c18c69962b | [] | no_license | wngq/PythonCrashCourse | a4d4b34c3380b2ea3d5773331b5bf79a7e1b0abd | f6679319cd560ef336ba452eb28eebf272584b62 | refs/heads/master | 2023-04-03T19:56:29.995690 | 2021-04-14T03:07:01 | 2021-04-14T03:07:01 | 349,893,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | person_1 = {
'first_name': 'bin',
'last_name': 'huang',
'age': 29,
'city': 'nanjing',
}
person_2 = {
'first_name': 'ziyu',
'last_name': 'zhang',
'age': 28,
'city': 'shenzhen',
}
person_3 = {
'first_name': 'chao',
'last_name': 'sun',
'age': 27,
'city': 'shandong',
}
peopl... | [
"wqi1203@gmail.com"
] | wqi1203@gmail.com |
aa46e0d853383325897465db18e112db394bcc2d | 27ee4952728504e85d37d47d1c3cba87b550c12f | /htmlsession.py | 57b9ae4d349bb430294af93cb7e15846aa3d6790 | [] | no_license | Minux13/testVerbs | 43bc30eb177a1f85a0c11b638d117e406a3373fd | d79dc4ac428681eb9b5e91880492d5903fa2460a | refs/heads/master | 2021-06-27T15:58:17.745450 | 2019-04-17T16:50:47 | 2019-04-17T16:50:47 | 133,498,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | #!/usr/bin/env python
from requests_html import HTMLSession
session = HTMLSession()
r = session.get('https://python.org/')
| [
"neurona13@gmail.com"
] | neurona13@gmail.com |
84183f7c48cf28f0fa8308a8d63844f013db01fe | 27158575cad2b13ba578f0864172dd667dca3daa | /proj1.py | 1e2378b137cb94c44b0dee3501a24e3ec414c153 | [] | no_license | pcuste1/cmsc441-c9-repo | 6b6aad35dff35fc9d61a467ba01d4133e39bfbe9 | 522bb4a49985e14031ad54093890441188f56624 | refs/heads/master | 2020-06-12T22:03:06.785767 | 2016-12-03T21:24:56 | 2016-12-03T21:24:56 | 75,501,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | from __future__ import print_function
import sys
import time
sys.setrecursionlimit(1500)
matches = {'H':'G', 'G':'H', 'W':'T','T':'W'}
r = []
line = []
def OPT(i,j):
if not i < j-4:
return 0
if r[i][j] != '-':
return r[i][j]
q = -1
for x in range(i, j-4):
temp = OPT(i,x-1... | [
"pcuste1@umbc.edu"
] | pcuste1@umbc.edu |
05f8987371f5ddb15e977ff76f10a537b712f7bd | 4703810393f666b8f6abd9658d1a8903ee554fe8 | /images360/spiders/images.py | 8f78ec0faca3514e3788514c6ec7042ff1c00fe4 | [] | no_license | wangch230/360Picture | 0ec8a6012c54c43eab2d0ca8a1bf5a6aa08285e2 | 27e90c6dc14cff44faa4310d0ca0f0b213b67426 | refs/heads/master | 2020-04-18T21:22:44.905200 | 2019-01-27T03:02:23 | 2019-01-27T03:02:23 | 167,763,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # -*- coding: utf-8 -*-
from scrapy import Request, Spider
from urllib.parse import urlencode
import json
from images360.items import Images360Item
class ImagesSpider(Spider):
name = 'images'
allowed_domains = ['images.so.com']
start_urls = ['http://images.so.com/']
def parse(self, response):
... | [
"wangch30@qq.com"
] | wangch30@qq.com |
f9412f6cc667dfbdacaae362e4edfd002c3afe40 | 5e8ad98800aeffd7a63f3469ac27b6bd46bb7be4 | /prime.py | 29d6e8087139b5651c8d01b64aba2496b667c37a | [] | no_license | V-Kiruthika/GuviBeginner | 4d41f35074f290a90559974fdd4b70904cd858a5 | da43fbb7cfac1ea3c56f3cb35dbbe983f9e9e1f6 | refs/heads/master | 2020-06-29T20:44:33.936875 | 2019-08-15T10:29:22 | 2019-08-15T10:29:22 | 200,619,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | d=int(input())
for i in range(2,d):
if d%i!=0:
print("yes")
break;
else:
print("no")
break;
| [
"noreply@github.com"
] | noreply@github.com |
c36eed7135bf3ee45450a5e984b86bfbba0868c1 | cfbbf8406ca014f27b1467ac359e1b14560c67ba | /routes/admin.py | aeaec483a36234fc519e88e80219d5f975a8be5d | [] | no_license | Sajad321/Alamjad_api | abe035c29f8f65b31dff29026a7ce123b15c04a0 | bc44fa6a83a51205f7a00b28605a220f2b6949a1 | refs/heads/master | 2023-02-24T22:22:38.789663 | 2021-01-22T11:24:24 | 2021-01-22T11:24:24 | 287,375,723 | 0 | 1 | null | 2020-09-02T16:14:44 | 2020-08-13T20:39:19 | Python | UTF-8 | Python | false | false | 24,486 | py | from flask import jsonify, abort, Blueprint, request
import json
from .auth import requires_auth
from models import user, report, history_of_pharmacy, history_of_user_activity, doctor, zone, pharmacy, doctor_pharmacies, company, item, acceptance_of_item, order, availability_of_item, notification, item_order
from math i... | [
"saj99h@hotmail.com"
] | saj99h@hotmail.com |
84d0c392bf79f9dc6b5aabeae0dcb651c2507545 | 18574df53001f3b6f717a15289495f4f94cb4389 | /examples/run_ensemble_nowcast.py | 3cc0f10cffa265c0b33d2b8d7c06683ff35e04b8 | [
"BSD-3-Clause"
] | permissive | savelov/nowcast | 6fa789b66724cc65b8d4e611cb6b7c98eb4756a0 | 9c1168b1ba642f15bc4ffb000bdbca6db27c29b1 | refs/heads/gimet | 2021-06-22T15:17:52.527381 | 2020-03-29T16:06:55 | 2020-03-29T16:06:55 | 157,089,594 | 6 | 2 | BSD-3-Clause | 2020-05-03T13:11:31 | 2018-11-11T14:49:03 | Python | UTF-8 | Python | false | false | 7,249 | py | #!/bin/env python
"""Stochastic ensemble precipitation nowcasting
The script shows how to run a stochastic ensemble of precipitation nowcasts with
pysteps.
More info: https://pysteps.github.io/
"""
import datetime
import matplotlib.pylab as plt
import numpy as np
import pickle
import os
import pysteps as stp
import... | [
"savelov@gmail.com"
] | savelov@gmail.com |
1c6412b50843364b2655f72d593b23b9af5b1d5d | 2c556a8907579f05e8ab91a4939868d3c4693c2b | /apps/tasks/migrations/0027_auto_20200705_1710.py | 8c73f7d01cf8b2c8e42d9bacc32d9a8abaa13a75 | [] | no_license | TaoHuangNa/YinProject | a6d5e86b080192bef855d31c60201193158e3b1d | facb86596dc6ba0be6d09bec5de3dcdf50cb2a1e | refs/heads/master | 2022-11-18T11:03:00.263466 | 2020-07-13T13:46:30 | 2020-07-13T13:46:30 | 279,313,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # Generated by Django 2.1.1 on 2020-07-05 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0026_delete_taskstype'),
]
operations = [
migrations.AlterField(
model_name='tasks',
name='state',
... | [
"1416501312@qq.com"
] | 1416501312@qq.com |
8c49147cf82f3595fd7da33c4712b0584be9560e | d5ce1d654153baea4177e7bd5e6bb1ff5515ad79 | /dadWeather.py | 1cc63c0945682aea9e385f0cbab4f9cb062094fc | [] | no_license | dennis15926/DadWeather | 177bc10156772c75983a633c89030788abaabcfd | 3170d0e6642f0ef53b2ff2b8e4548345b5041ab3 | refs/heads/master | 2021-01-10T11:55:30.999334 | 2016-03-12T20:56:46 | 2016-03-12T20:56:46 | 53,753,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | #coding: utf-8
import webget
import myFileIO
from datetime import timezone,timedelta
import datetime
URL = 'http://www.cwb.gov.tw/V7/observe/rainfall/Rain_Hr/7.htm'
rain_str = webget.split_text(webget.url_to_text(URL))
days_no_rain = myFileIO.get_days_no_rain()
print (rain_str)
current_time = datetime.datetime.now(tim... | [
"dennis15926@gmail.com"
] | dennis15926@gmail.com |
4c682a791c45a4e6ed232c2a6b448d06c18f76d6 | 094115d2aaaa02f738e5a57d7b443d3f030a8c13 | /pki/__init__.py | 1b88213288cf3d87f8303d7453ef63d34157ecd0 | [
"Apache-2.0"
] | permissive | 245754954/pki-1 | 034af83f0dd796b9994888142c01bab61d9078dd | 8e6c17b8719f11a7def15ea66ea39092d9397635 | refs/heads/master | 2023-03-23T05:21:35.718203 | 2021-02-18T14:53:32 | 2021-02-18T14:53:32 | 353,202,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | import os
import logging.config
from flask import Flask, redirect
from flask_bootstrap import Bootstrap
from mongoengine import connect
logging.root.setLevel(logging.DEBUG)
logging.config.fileConfig(os.path.abspath(os.path.join(os.path.dirname(__file__), 'logging.conf')))
logger = logging.getLogger(__name__)
def cr... | [
"wyvernnot@gmail.com"
] | wyvernnot@gmail.com |
1e80f050379c3620ecae456eef6480ff547b77d4 | 13f5c66af02a64aa8c5d988e9560b82bcf058fd0 | /learning_sql/views.py | 8cec81152d26fe1d92d386c49f799cf9269d320b | [] | no_license | heitorchang/reading-list | a1090b969d0f16cbc7c0e371671e85dca0bde201 | 3dcfd68cb02179e75216ff459fda693ec1fb8684 | refs/heads/master | 2023-04-27T03:04:28.122341 | 2023-04-21T14:04:20 | 2023-04-21T14:04:20 | 67,825,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # p. 249
def create_totals_vw():
cursor = cnx.cursor()
cursor.execute("""
CREATE VIEW customer_totals_vw
(cust_id,
cust_type_cd,
cust_name,
num_accounts,
tot_deposits
)
AS
SELECT cst.cust_id, cst.cust_type_cd,
CASE
WHEN cst.cust_type_cd = 'B' THEN
(SELECT bus.nam... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
77c1a1e2a26adc6671d02a8748df8ead36fdde04 | 60ff6aa653ba0b68e362152268a5fa8e27ddc20a | /recommenders/Exploratory_data_analysis.py | f19637a1a574866a7505cfa0a550860f64e613bd | [] | no_license | Ndu3000/unsupervised-predict-streamlit-template | 9ce03635849c680f887439ac4b575392b5a4ca2a | ddde14972164164ef651806253061db1a34118fd | refs/heads/master | 2022-11-19T20:49:02.995279 | 2020-07-28T10:37:48 | 2020-07-28T10:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py |
import pandas as pd
# To create plots
import matplotlib.pyplot as plt # data visualization library
import seaborn as sns
sns.set_style('whitegrid')
from wordcloud import WordCloud, STOPWORDS #used to generate world cloud
#define a function that counts the number of times each genre appear:
def count_word(df, ref_... | [
"menzi639@gmail.com"
] | menzi639@gmail.com |
34e03ed4d72971d6ba7816fbfd77917897ceb6db | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch81_2020_04_08_14_08_30_221505.py | 3d1850c8883fa9998cbf766d0212133a37e9b36c | [] | 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 | 225 | py | def interseccao_valores(dicio1,dicio2):
lista=[]
for valor in dicio1.values():
for valor2 in dicio2.values():
if valor==valor2:
lista.append(valor)
return lista
| [
"you@example.com"
] | you@example.com |
ff7a3fc726a311d22688ac9d93394bb9217d0333 | c61876227baed49f79332dfc4549744dafaf1e44 | /bot.py | 8df2c1b84e733b4144106e766e60e156dbc33d60 | [] | no_license | TheTrueShell/QueueBot | 5c8ff4e143cdf937884eda4406435440514d9b53 | 033848527e71fc27a718b8585ef6b65874d2ff96 | refs/heads/master | 2023-03-09T19:20:43.287528 | 2021-02-17T18:19:24 | 2021-02-17T18:19:24 | 338,392,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | from logging import warning
import discord
from discord import channel
from discord import guild
from discord.ext import commands
import asyncio
class MyClient(discord.Client):
waitingQueue = [] #Holds all members waiting in the queue
roomIDs = [809454410543530014, 809454540504039424, 809454553790545950] #The... | [
"1906816@swansea.ac.uk"
] | 1906816@swansea.ac.uk |
48022a7ebdfbe5fa95fc2ddeea52e546eebfab4b | 6daba5f780eb4e0a10b92da5838eda97925cd649 | /lesson6_step5.py | 75a7f6cc85827d6abc14b99986d3f63b7817f2d1 | [] | no_license | infinity71/test_repository_stepik | 48d05d9e5692d474fb99cf2c7c6b1958917a3594 | 4fcc8f2ed42375a37a1edc058a6f257f838b506e | refs/heads/master | 2022-12-20T08:12:47.267905 | 2020-10-01T18:20:16 | 2020-10-01T18:20:16 | 299,732,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from selenium import webdriver
import time
import math
link = "http://suninjuly.github.io/find_link_text"
try:
browser = webdriver.Chrome()
browser.get(link)
text = str(math.ceil(math.pow(math.pi, math.e) * 10000))
print(text)
buttonlink = browser.find_element_by_link_text(text)
buttonlink.cl... | [
"m.devlikamova@gmail.com"
] | m.devlikamova@gmail.com |
e923e894f298de0501742da399ba096237404c13 | 6aa9fdff566a2ca384ed1b1db6933a415581bc22 | /backend/isasatec_23315/wsgi.py | 0442c9c343131871e14516b7d974bda02284aece | [] | no_license | crowdbotics-apps/isasatec-23315 | ae10c4ecde97b30cde72a627d65354b666ddb32c | 6a0a3bfddbba71ac7ee6256ffd1de0f7b3e565e7 | refs/heads/master | 2023-01-28T16:38:25.528446 | 2020-12-11T15:56:50 | 2020-12-11T15:56:50 | 320,553,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for isasatec_23315 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
44b4fec55b74c691af090b8774c0c386e6cc5dc1 | 6effd19fb11796892b52a95c274eaa0dd13126bc | /Server Module/server/gettrafficlights/migrations/0004_auto_20170703_2109.py | 89977b7804880e8f3177e14cc5b20fe446bc5fca | [] | no_license | NourhanEssam/graduation-project | 759c79f63422b777ff5781ab71f3cade3a50f700 | f3f11412a775ef49b63091605e334090b6a6341b | refs/heads/master | 2021-06-21T07:50:07.918818 | 2017-07-14T12:41:08 | 2017-07-14T12:41:08 | 72,365,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-03 19:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gettrafficlights', '0003_auto_20170703_2107'),
]
operations = [
]
| [
"eslamsamir232@gmail.com"
] | eslamsamir232@gmail.com |
cc8073a006724d4c3a463c9da8af11bbef0e2d5c | 19136335b7e88324546fdfed45b4d0b22042202c | /rplugin/python3/deoplete/filter/converter_truncate_menu.py | 90a331d0f918b01825f96575468fc8be3376b89e | [
"MIT"
] | permissive | nholik/deoplete.nvim | 3074fa3cdd5a8a2df5f300d0ac74fedde6555fdf | 614cd3ddf1f352c977f3405e809d967093571117 | refs/heads/master | 2020-05-27T18:05:59.540419 | 2019-05-26T22:26:41 | 2019-05-26T22:26:41 | 188,736,112 | 0 | 0 | NOASSERTION | 2019-05-26T22:06:01 | 2019-05-26T22:06:01 | null | UTF-8 | Python | false | false | 1,034 | py | # ============================================================================
# FILE: converter_truncate_menu.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
# ============================================================================
from deoplete.base.filter import Base
from deop... | [
"Shougo.Matsu@gmail.com"
] | Shougo.Matsu@gmail.com |
c55f365e169d1106b279c90b35267dee292c835b | acd749424ec557eb2c0aed20333131eeb738b27a | /pyart/io/nexrad_cdm.py | 2df276d06cb14dcb08a6247e4e97c50c44c7cd4b | [
"BSD-3-Clause"
] | permissive | zxdawn/pyart | c5b8cc505e4eea0db01af40bdd3a796ff11020b2 | fc51a68dfb488392217b2093ed593f07016e793b | refs/heads/CNRAD | 2020-03-17T23:14:30.526023 | 2019-05-19T13:39:00 | 2019-05-19T13:39:00 | 134,036,631 | 9 | 0 | null | 2018-05-22T14:07:30 | 2018-05-19T06:34:09 | Python | UTF-8 | Python | false | false | 13,609 | py | """
pyart.io.nexrad_cdm
===================
Functions for accessing Common Data Model (CDM) NEXRAD Level 2 files.
.. autosummary::
:toctree: generated/
read_nexrad_cdm
_scan_info
_populate_scan_dic
_get_moment_data
"""
import os
from datetime import datetime, timedelta
import netCDF4
import nu... | [
"jjhelmus@gmail.com"
] | jjhelmus@gmail.com |
332b13da0a1f4b13b5645e39b38500507e8151e3 | 80f817608976451f032a0c1410cdfe34cd339d39 | /encyclopedia_builder.py | 1946247572660b3466e98eb33a2fca7d79ea0c51 | [] | no_license | erik-roger-fuller/NLP-art-articles | 413fd398b3685059178fd876e2b852cbcb2ceb40 | 616b5cfe8bda5ac52aa83e7111a4ae68cdcae9b5 | refs/heads/main | 2023-06-03T22:43:48.912717 | 2021-06-15T15:52:08 | 2021-06-15T15:52:08 | 346,487,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,942 | py | import pandas as pd
import numpy as np
import json
import csv
import os
import re
from spacy.kb import KnowledgeBase
import spacy
def museum_classify(desc1, desc2, name):
if desc1 == "ART":
desc1= ["Art Museum"]
elif desc1 == "BOT":
desc1= ["Arboretum", "Botanical Garden", "Nature Center"]
... | [
"erik.roger.fuller@gmail.com"
] | erik.roger.fuller@gmail.com |
102f709bebff12b32c93c321b66bd7327cd6e92b | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/matchmaking/models/models_query_mock_by.py | 8e41cf6eec7f84d441d5c2d4e272a292a791f88e | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 3,879 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# AccelByte Gaming Services Matchmaking Service (2.25.7)
# pylint: disabl... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
cb1e240271c4c122a05c64729f1e9330f325aff6 | aab0c5e931fa5c63a1e11ad107e785d8205e2adf | /lista7jordana/Ex052.py | 948f562d066232eec9d714324bf76760f5d4ebaa | [] | no_license | AtilioA/Python-20191 | 0cba16de6dd5e637920677dfe59ce572ccbca4cc | c1ba4280fab9965ccf47fbf0271cd9efacb86da4 | refs/heads/master | 2020-04-28T16:54:34.641561 | 2019-06-27T15:03:53 | 2019-06-27T15:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from Ex048 import *
def printaMaisProxMedia(lista):
mpm = maisProxMedia(lista)
print("Valor mais próximo da média = {mpm}")
| [
"atiliodadalto@hotmail.com"
] | atiliodadalto@hotmail.com |
25be5070981b8513e439d196c2468bff17d82ecc | 053c59a8ef72644c5cf6c909450e1856ae3ea833 | /pinocchio/vercomp.py | 488bcbe90799846065ec9dcbf3f54b8c95254836 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Ethsnarks/ethsnarks-pinocchio | 5576f29843736b918b0ab1d6897aecc32e2122d7 | 4001749cfd350a5e9ae1608dc06103bf0e384cd8 | refs/heads/master | 2020-04-04T06:41:00.997812 | 2018-11-01T23:37:23 | 2018-11-01T23:37:23 | 155,753,201 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,534 | py | #!/usr/bin/python
from __future__ import print_function
import pickle
import json
import argparse
import sys
import subprocess
import os
import tempfile
import traceback
from .ArithFactory import ArithFactory
from .BooleanFactory import BooleanFactory
from .Timing import Timing
import pycparser
from pycparser import ... | [
"HarryR@noreply.users.github.com"
] | HarryR@noreply.users.github.com |
799f27d7bd6278066b4a0c11259c76d826704d80 | 48e9d0e84238daf0de290551e3588e9ff3f49549 | /calculadora.py | 43fadb96364fb7c2a09a91ee806895c89e916e0c | [] | no_license | celord/PythonGreencore | 9606af569738703b66d80bce6e423c9a313fa539 | 259aadcc346203f8092f6c6d286e3fca2e9fc550 | refs/heads/master | 2020-05-30T23:18:15.542876 | 2019-06-19T14:39:59 | 2019-06-19T14:39:59 | 190,014,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | def Menu():
print("""*****************
Calculadora
************
Menu
1) Suma
2) Resta
3) Multiplicacion
4) Division
""")
def Calculadora():
"Funcion para calcular Operaciones Aritmeticas"
Menu()
opc = int(input("Seleccion Opcion \n"))
while (opc > 0 and opc <5):
... | [
"celord@gmail.com"
] | celord@gmail.com |
d874442d2b3aae643694eac7e754a09f39b2094b | c74d19de038a0ede9c91e3c357b5a8854e8698ad | /07-Dynamic Programming/coins.py | 175eaf2519923f2d9cb5d90c104f534803dede37 | [
"MIT"
] | permissive | sajjadm624/competitive-programmer-handbook-python | 1e026824faaaed0f6dc1cbf05225f9d7b9e4cf7e | 8b33f4cff7ce5cb20f69b5f1cb67ee8154826981 | refs/heads/master | 2022-06-17T08:37:00.217521 | 2020-05-08T10:33:35 | 2020-05-08T10:33:35 | 260,295,899 | 0 | 0 | MIT | 2020-04-30T19:06:24 | 2020-04-30T19:06:24 | null | UTF-8 | Python | false | false | 1,442 | py | import math
coins = [1,3,4]
#recursive solution to minimum number of coins problem
def c_solve(x):
if x < 0: return math.inf
elif x == 0: return 0
best = math.inf
for c in coins:
best = min(best, c_solve(x-c)+1)
return best
print(c_solve(10)) #solves quickly
print(c_solve(30)) #takes several seconds
#print(c_... | [
"noreply@github.com"
] | noreply@github.com |
150caba5e2ce7bbe0f2fac7228a73b1c48b130e8 | 35be15b1dc120a256750cf66305f169974c2e55c | /ecommerce/jan2020/blog/admin.py | 2f847da382c95e6db6daed732a0c2fa22da850e2 | [] | no_license | tejendrapatel/Ecommerce_Logics | 2f10a5e216691add092f37a8186a9940b905f173 | 16ad13672c275e1be3ee6b3f5cd84d09f1600496 | refs/heads/main | 2023-08-27T00:53:10.438777 | 2021-10-23T11:50:36 | 2021-10-23T11:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from blog.models import *
admin.site.register(college)
admin.site.register(contact)
| [
"info.prospectias@gmail.com"
] | info.prospectias@gmail.com |
6c542f2791ff8cf70bd64f3ba980fb51f4749655 | 3c383f520c80c97e215753efc76a83aa0a8ad7b1 | /inventory/inventory/urls.py | baf70a45a65d5ccdf831ff3ed905b88fae1ad1f2 | [] | no_license | vermamayank5455/stock_inventory | a75244098042b7148300e88075c884fa55878b88 | e97ca7fee3126427db58de222aa57226c9855c30 | refs/heads/main | 2023-07-15T17:13:22.590562 | 2021-08-18T11:13:06 | 2021-08-18T11:13:06 | 337,970,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | """inventory URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"vermamayank5455@gmail.com"
] | vermamayank5455@gmail.com |
59f257e74467edf2e02f1c12f63bef4bc528fd7e | 085488720112922ff3aed15f99f3c93911425c4a | /vesper/signal/tests/test_s3_byte_sequence.py | c6f1f484a9b415154c8d517bf998a2ab6d8b4200 | [
"MIT"
] | permissive | HaroldMills/Vesper | 0b61d18bc241af22bfc251088fc87d72add6367b | ec92fe5231f54336499db189a3bbc6cb08a19e61 | refs/heads/master | 2023-07-05T22:45:27.316498 | 2023-07-04T11:58:14 | 2023-07-04T11:58:14 | 19,112,486 | 49 | 6 | MIT | 2023-02-14T16:09:19 | 2014-04-24T14:55:34 | Python | UTF-8 | Python | false | false | 909 | py | import unittest
import warnings
from vesper.signal.tests.byte_sequence_tests import ByteSequenceTests
from vesper.signal.s3_byte_sequence import S3ByteSequence
from vesper.tests.test_case import TestCase
REGION_NAME = 'us-east-2'
BUCKET_NAME = 'vesper-test'
OBJECT_KEY = 'Bytes 00-FF.dat'
OBJECT_LENGTH = 256
# TODO... | [
"harold.mills@gmail.com"
] | harold.mills@gmail.com |
2a2d1d8830e835a1494087e94fb849e401876cc4 | bf21cd0ef7a94fa106ccd9f91a4bbfdcda7f94ed | /python-basic/chapter04/ex01_2.py | 2b0d435813f0cc5b511a07e9e93529dd676c29ef | [] | no_license | juneglee/Deep_Learning | fdf8cae1b962aaa0ce557cb53f78a22b6d5ae1e8 | 17a448cf6a7c5b61b967dd78af3d328d63378205 | refs/heads/master | 2023-07-15T03:02:55.739619 | 2021-08-19T14:04:55 | 2021-08-19T14:04:55 | 273,253,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # 리스트 연선자 : 연결(+) , 반복(*), len()
# 리스트 연산자
list_a = [1, 2, 3]
list_b = [4, 5, 6]
print("# 리스트")
print("list_a = ", list_a)
print("list_b = ", list_b)
print()
# 기본 연산자 : 연결(+) , 반복(*)
print("# 리스트 기본 연산자")
print("list_a + list_b =", list_a + list_b)
print("list_a * 3 =", list_a * 3)
print()
# 길이 구하기 : len()
print... | [
"klcpop1@gmail.com"
] | klcpop1@gmail.com |
ac59204e9abd021cf11fc1a250525dc4f0c141d8 | 2be1efe0bc2d4e0a3a98936ad203a1d7080b5136 | /internal software/test/test.py | c3bf5baf43199d9d1a38f7c0152a5c8b235c944e | [] | no_license | LC-Sat/internal-software | 06433bf58a27dca7613c01df3ae0419a18eb2542 | 2e74914be1b1fd3fccdffc60adc9b4cdf7247095 | refs/heads/main | 2023-08-13T13:15:25.307593 | 2021-10-16T13:51:46 | 2021-10-16T13:51:46 | 417,841,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import unittest
import os
import sys
from unittest.mock import patch
import threading
mock_dir = os.path.join(os.path.dirname(__file__), "mock_libs")
assert(os.path.exists(mock_dir))
sys.path.insert(0, mock_dir)
from src import cansat
class FakeSat(threading.Thread):
def __init__(self, mode=cans... | [
"noreply@github.com"
] | noreply@github.com |
e955c3e29e09ef198d1c10665adeac55d4a8f4db | 337b532bad7432f9719735f2e3cd305cff6264b3 | /sina/sina/spiders/sinaguider.py | c84f94835d5e7c6bbdddbd7909bf8d20a5056da1 | [] | no_license | Mr-chen-Linker/douban | 279e13fdb55f75f868bf4cf77f32af3c06f85f75 | bfaba89fe0d8f03db222db019e28de776ca3cb3d | refs/heads/master | 2020-03-18T14:18:45.907343 | 2018-05-25T10:36:33 | 2018-05-25T10:36:33 | 134,841,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | # -*- coding: utf-8 -*-
import scrapy
import os
from ..items import SinaItem
class SinaguiderSpider(scrapy.Spider):
name = 'sinaguider'
allowed_domains = ['news.sina.com.cn']
start_urls = ['http://news.sina.com.cn/guide/']
def parse(self, response):
# 用于暂时保存item的列表
items = []
... | [
"39607153+Mr-chen-Linker@users.noreply.github.com"
] | 39607153+Mr-chen-Linker@users.noreply.github.com |
5af4b4a8df574aaa5ac607d9afdff9e1919791bb | 69528c8872d4b67fd5a3ee4206a48deae7a6113c | /HaploManager/find_misassemblies.py | 0f05d1814aa0e9f53d5fbc50f294286fa8159774 | [] | no_license | Firefly007-2018/scripts | 60692ad7dfc450a79edf18f0947d13519595764c | 686a3148169cfd2ef47ffe87709d93e2db6d73d5 | refs/heads/master | 2020-12-04T08:18:54.078319 | 2018-06-19T10:03:25 | 2018-06-19T10:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,156 | py | #!/usr/bin/python3 -u
import os
import sys
import pathlib
import argparse
import re
import string
import sqlite3 as sql
from pprint import pprint
from Bio import SeqIO
from collections import defaultdict, namedtuple
from operator import itemgetter
from termcolor import colored
Gap = namedtuple('Gap', 'scaffold start ... | [
"johnomics@gmail.com"
] | johnomics@gmail.com |
d572a7d14711cfe9547737215020f5f428c3d827 | 2e359b259d3071a97930a1944cb6b7ff336fc369 | /account/views.py | 5b89b2f62c061a1f92ec28b30b5bca035fce1d52 | [] | no_license | skalizzo/Django_Social_Media_Project | bb4171ad3e7b1968361301d0c87cf4c0ac8e9f4e | 18d3695cadb96fc54baeededa8e965e001d7f583 | refs/heads/master | 2023-02-20T18:15:19.199821 | 2021-01-27T20:19:59 | 2021-01-27T20:19:59 | 333,534,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm
from django.contrib.auth.decorators import login_required
from .models import Profile
from django.contrib import ... | [
"christian00richter@gmail.com"
] | christian00richter@gmail.com |
4d4579bfc8296b07953246830efeaecae7e6e0ef | c5d15be7f68e8120c7c710b090df21d6f50bf48e | /First Partial/Ejer/Ej2_A01630738.py | 117270a27a76bf54dce99c99ec1610b492222ad1 | [] | no_license | arath11/Fundamentos_programacion_PYTHON | 13f2fa15f3f854ab880ab463f865c656c02384a0 | 4f426f4e29a1d101005e0a038290f9a2e98b7306 | refs/heads/master | 2020-04-23T22:24:28.149248 | 2019-02-19T16:18:52 | 2019-02-19T16:18:52 | 171,500,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #Julio Arath Rosales Oliden
#A01630738
import math
#Se piden los datos
lado_l=float(input("Inserta la medida del lado L \n"))
lado_h=float(input("Inserta la altura del prisma \n"))
#Se saca el area, sumando las areas de los triangulos y los rectangulos
area_base=(math.sqrt(3)/4)*(lado_l**2)
area_lado=(lado_h*... | [
"noreply@github.com"
] | noreply@github.com |
6aa411c0ab67854ce1c59337301b2e5b1d25c752 | c918d30d0d026a35acae0253cc4c545cdea90e8e | /python_exercise_classification.py | ac58aeacc654208e33eef82a6d9d99c6d37df4b4 | [] | no_license | zhangwen464/pytorch_studying | d1f397bb29cd2c2af55b1f64cdb37e9ecc668315 | e56566e643222f74b86a212970143c68f0ae2b49 | refs/heads/master | 2020-03-30T00:18:08.446860 | 2018-09-27T02:14:27 | 2018-09-27T02:14:27 | 150,515,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | # author :momo
#time :2018.09.20
# classification network
#prepare training data
import torch
import matplotlib.pyplot as plt
import torch.nn.functional as F
from torch.autograd import Variable
n_data=torch.ones(100,2) #数据基本形态
x0=torch.normal(2*n_data,1) #类型0 x data(tensor),shape=(1... | [
"noreply@github.com"
] | noreply@github.com |
a19d147dc3ac0dc1389f80f703d9bfdb9880730f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/281/66059/submittedfiles/testes.py | 4f5702282440b083bcb9303e18bb7339f798841e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("Hello Word")
print("olá Mundo") | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
39a8bcf785f7ae33a4d0d62d9cb566110b1b5440 | a0fc566d29d8429f9ecc765e59d8d3718f6b60a1 | /Python Core/2-6.py | 92840063b942019d67d2fe87ea25b90193049d7d | [] | no_license | muyicui/pylearn | 0f3ca863cf2629ea246271f81ea2f43a9cbd4dff | 1130bc57f629c31994709ba6bfe176ab220f30c1 | refs/heads/master | 2021-01-10T06:49:48.457891 | 2019-03-15T02:26:20 | 2019-03-15T02:26:20 | 54,449,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
num = int(raw_input('please enter a number:'))
if num > 0:
print '%d is positive' % (num)
elif num == 0:
print '%d is zero' % (num)
else:
print '%d is negative' % (num)
| [
"muyi.cui@outlook.com"
] | muyi.cui@outlook.com |
95dda09cdcc2204cf56cce764f5d795178e6963d | d2f3de8bd68260f4e333be3b812a627f7f2ec10a | /course-65389-DL2020advanced/lesson-08-step-02-pytorch-autograd.py | e98504e22899d5c0e48d9b2e93dffe2f3c206c3e | [] | no_license | sidorkinandrew/stepik | 2b915e1a959d98fd338372ba88d231323a905da5 | 3513846036df036d3ffdea15ad0d7a856a3ec77f | refs/heads/master | 2021-11-23T02:09:18.265495 | 2021-11-20T23:24:36 | 2021-11-20T23:24:36 | 245,150,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from matplotlib import pyplot as plt
import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split
import torch
def find_x_derivative(x, y):
x = torch.tensor([x], dtype=float, requires_grad=True)
y = torch.tensor([y], dtype=float)
z = torch.sin(torch.tan(x)*(x*x/y) + ... | [
"sidorkina.oksana.19@gmail.com"
] | sidorkina.oksana.19@gmail.com |
31ed4f5f60a390cfa304795d62ffcae162a4cedf | 5eb953194b0dc0d95c9f557a6cc32ab70bf18a26 | /calc2.py | ef03a6646529d3580b98c7a2a0051289aec41202 | [
"MIT"
] | permissive | voodoopeople42/Vproject | 786543460ebe298b0881dbec7b26db98699ee1d7 | 349e80a0d3cfd590cb9dbe667acfbdb7393308e3 | refs/heads/master | 2021-06-25T04:55:23.694415 | 2019-11-29T12:05:14 | 2019-11-29T12:05:14 | 217,142,513 | 0 | 0 | MIT | 2021-03-20T02:23:28 | 2019-10-23T19:58:37 | Python | UTF-8 | Python | false | false | 404 | py | import math
what = input ( "what u want? (cos, sin, log, sqrt): " )
a = int(input("Input a number: "))
if what == "cos":
a = math.cos (a)
print ("result: " + str(a))
elif what == "sin":
a = math.sin (a)
print ("result: " + str(a))
elif what == "log":
a = math.log (a)
print("result: " + str(a))
elif what == "s... | [
"s1kwood2033@gmail.com"
] | s1kwood2033@gmail.com |
d342732ac3b6fe72d50a5b8e94fc6365d7766d2f | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20200301/route_table.py | 0f7b2c604bdb6750a43a91e17b7ebf103a368267 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,631 | 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 |
566ddef51d09647542ab85a39035216d08bc0846 | 7b2e267d7f7dccce8d57c37dba772d778923d05d | /pendant_injection.py | f7e1e2bc9ee08a3cab52ee99b1ce6d1bdcd7d7ca | [] | no_license | Posfay/Zero-Forcing | 88ebe7706104b513ccc7064bfcab71c586226fbd | b18e1c97e13c46e70d4379c74d1e5933d8f4cf5a | refs/heads/master | 2023-04-17T04:21:06.437817 | 2021-04-17T16:11:13 | 2021-04-17T16:11:13 | 286,028,300 | 1 | 1 | null | 2020-10-07T21:34:49 | 2020-08-08T11:14:53 | Python | UTF-8 | Python | false | false | 6,588 | py | import os
import datetime
import networkx as nx
import graph_utils
import zero_forcing_process as zf
def inject_pendant_to_edge(edge_list, edge):
"""
Creating a new graph by injecting a pendant to edge
:param edge_list:list(list())
:param edge: list(int) (node1, node2)
:return: Graph
"""
... | [
"benedek@posfay.com"
] | benedek@posfay.com |
74bc608d4b97f1b7c0df621bcabed6cd361d7dbc | dd0b0df88a08a4f4ab249c76cf0ea82482ff37bb | /sfepy/terms/terms.py | 41157ad7b967a814fae63a5692dccc27c5c414df | [
"BSD-3-Clause"
] | permissive | mfkiwl/sfepy | 43e3a2cbed240b8ef387a8ab9037c1f6fd19e0fe | 67275845da49e772b2f8faaa48df165893f2be16 | refs/heads/master | 2021-01-18T07:59:19.289053 | 2013-10-31T09:54:55 | 2013-10-31T09:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,287 | py | import re
from copy import copy
import numpy as nm
from sfepy.base.base import (as_float_or_complex, get_default, assert_,
Container, Struct, basestr, goptions)
from sfepy.base.compat import in1d
# Used for imports in term files.
from sfepy.terms.extmods import terms
from sfepy.linalg i... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
195f63b7fb6b96f891292d287a89d7dccdcbe323 | 0866c751f954ac0799dc1edf88c5294791a2c5a9 | /order/urls.py | 3c56ff433a1e3339c99a2a2748434cee65e83a07 | [] | no_license | ChubakSopubekov/plovo | cd4b3bb3721b9460d32d0a093e69d6fb2d655abe | af103fe20c4e7dbebbc26cd06592163009c1d37a | refs/heads/main | 2023-04-27T14:37:44.100420 | 2021-05-17T14:17:36 | 2021-05-17T14:17:36 | 361,718,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.urls import path
from .views import OrderListCreateView, OrderView
urlpatterns = [
path('', OrderListCreateView.as_view(), name='order-list-create'),
path('<int:pk>/', OrderView.as_view(), name='order'),
] | [
"sopubekov96@gmail.com"
] | sopubekov96@gmail.com |
24d3f7246c7d2d37f6a7c022003cc680690ab32e | f0b5d51f23c6bab2e01e353141ea89d1f07f8b82 | /catkin_ws/build/rosserial/rosserial_msgs/cmake/rosserial_msgs-genmsg-context.py | c0023794e87a9060bb15a6573580190b0274e95a | [] | no_license | rignitc/semi_humanoid_robot | 84a3a540707392149c380d751838b7ec0a98735d | d6e04258ae57e7627bfd56952bc717e4b069ad1f | refs/heads/master | 2020-08-07T08:26:28.988420 | 2019-10-07T12:01:10 | 2019-10-07T12:01:10 | 213,360,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/msg/Log.msg;/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/msg/TopicInfo.msg"
services_str = "/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/srv/RequestMessageInfo.s... | [
"rig@nitc.ac.in"
] | rig@nitc.ac.in |
f0bc2d2a2876743d3b1f731be6382a0665dacae3 | 6a16e5e56f38ff4ed1fc02b5a6497a8ac28e51f0 | /__files archives/_helena_final_script-3.py | bf602bbfbbeb4bd872c44b2aeabd780e54252058 | [] | no_license | aslinurtaskin/SHEDIO | 32a3e9a927432e376e8ec38e279dd61bbc5050ce | 659a768ed985843d8499340bfbbb06474945dc69 | refs/heads/master | 2023-03-23T04:49:13.914458 | 2021-03-20T13:02:08 | 2021-03-20T13:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,359 | py | import csv
import sys
import cv2 as cv
import numpy as np
import argparse
import random as rng
import math
import matplotlib.pyplot as plt
import turtle
from PIL import Image
from numpy import savetxt
rng.seed(12345)
# Define functions ___________________________________________________
img_path = ('/Users/helenaho... | [
"helenahomsi17@gmail.com"
] | helenahomsi17@gmail.com |
792b61efe2adbe81bfa8e2d488a1dbf4bd884444 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/export_top_sql_templates_details_response.py | 1286a8c3db19b4ec0f54ea95567708a585fd8a62 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,619 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportTopSqlTemplatesDetailsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
64c2c471974ea13afac4cdef5cd02c11de405ea3 | b49df6b6ed1ef168f7cf69d60da58b06d0b69853 | /dowhileloop.py | 2838b65ef0a93109fbe0f14a86a0350bb720b647 | [] | no_license | justus-migosi/do-while-loop | cefd6cd5c4baa75a5158cfc382c31f2d7385ecaf | 097c5f4201c4ec676eda5e1c17a0d96dbd1e7ae3 | refs/heads/main | 2023-03-23T14:37:01.878627 | 2021-03-07T14:55:47 | 2021-03-07T14:55:47 | 345,373,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | x=1
while True:
print(x)
x=x+1
if(x>10):
break | [
"noreply@github.com"
] | noreply@github.com |
19fff9aea639d7c8ef19c6c6ba38178f7a3e5a7a | 0e6c8439bfbe6bb55638e2c50de516146729a8a3 | /website/addons/dataverse/tests/test_provider.py | cef5164276c62e550e11ddaa98492b40a5e9bbc0 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sf2ne/Playground | 5385e2cb0aa5172e1037ec99eaf36c5239707ff4 | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | refs/heads/testWebFlowers | 2022-12-15T07:44:08.371300 | 2016-03-11T16:32:06 | 2016-03-11T16:32:06 | 53,675,768 | 0 | 0 | Apache-2.0 | 2022-11-22T00:27:34 | 2016-03-11T15:17:39 | Python | UTF-8 | Python | false | false | 1,545 | py | import httplib as http
from nose.tools import * # noqa
import mock
from framework.exceptions import HTTPError
from website.addons.dataverse.tests.utils import (
create_mock_connection, DataverseAddonTestCase, create_external_account,
)
from website.addons.dataverse.provider import DataverseProvider
class TestD... | [
"rliebz@gmail.com"
] | rliebz@gmail.com |
8d06459eaeb52a36c67f79167e259238fa29ad11 | 2b2464cd7a9c83bc1dd2c3bef144a8421fcd8659 | /61a-su20-practice-mt/question_3/tests/question_3.py | b80bc4fc23584abbd11add72b2b6c742f45848f8 | [] | no_license | royh02/Past-Exams | 6f63853a44341187a0fce2cd7cda9b73e812df91 | 3884fbe45b210cba85427e6005054d1dbf96f8a7 | refs/heads/master | 2022-11-20T19:30:18.356589 | 2020-07-16T03:48:50 | 2020-07-16T03:48:50 | 277,603,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | test = {
'name': 'question_3',
'points': 6,
'suites': [
{
'cases': [
{
'code': r"""
>>> close(123)
123
>>> close(153)
153
>>> close(1523)
153
>>> close(15123)
1123
... | [
"65890703+xroid-x@users.noreply.github.com"
] | 65890703+xroid-x@users.noreply.github.com |
685eea7db453f95d3b09c7e014f28eeee0ba4439 | a8123a86db99b9365b10ba76dd509d58caa7bc10 | /python/practice/start_again/2021/05182021/Day18.3_Darw_a_spriograph.py | 8814fcac3b147a6c0f49245cd49b4fbe21a8a16f | [] | no_license | smohapatra1/scripting | c0404081da8a10e92e7c7baa8b540acc16540e77 | 3628c9109204ad98231ae8ee92b6bfa6b27e93cd | refs/heads/master | 2023-08-22T20:49:50.156979 | 2023-08-22T20:43:03 | 2023-08-22T20:43:03 | 147,619,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #Draw a Spirograph
from turtle import Turtle, Screen
import turtle as t
import random
tim = t.Turtle()
t.colormode(255)
tim.speed("fastest")
#Random Color
def random_color():
r = random.randint(0,255)
g = random.randint(0,255)
b = random.randint(0,255)
color = (r, g, b)
return color
def draw_spiro... | [
"samarendra.mohapatra121@gmail.com"
] | samarendra.mohapatra121@gmail.com |
bce74c6a733e3a6ec747ca11da5381c33c922752 | 7125244993e00d1663b3752622fbed7ad2b6e5c0 | /locustFiles_basics/MultipleTask.py | 82728d91bcf5fc5f0e56f7bb41ea2aa014875b9f | [] | no_license | dipanjanmt/LocustProject_2 | c0ecd8c1faeca6e88012d0b641eec18c6c6295da | 6c9205636ce0a38e305fcfee0e20669ae9234ece | refs/heads/master | 2023-05-13T06:46:39.761001 | 2021-06-08T18:41:02 | 2021-06-08T18:41:02 | 375,044,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from locust import User, between, task, SequentialTaskSet
class SearchProduct(SequentialTaskSet):
@task
def search_men_products(self):
print("Searching men products")
@task
def search_kids_products(self):
print("Searching kids products")
@task
def exit_task_execution(self):
... | [
"dipanjankundu@Dipanjant-Kundu.local"
] | dipanjankundu@Dipanjant-Kundu.local |
d994f4b20a182b9c9b4b26dea314bed2f83d5097 | da52951c32b37aa75765b718707ce08c0a6208d1 | /ReinforcementLearning/PolicyGradient/PPO/tf2/main.py | b3a0d38e4986d6a9da18c87322ee6faa32643f1d | [] | no_license | philtabor/Youtube-Code-Repository | 08c1a0210f80976df50b01a91f1936a7d5c7b302 | eb3aa9733158a4f7c4ba1fefaa812b27ffd889b6 | refs/heads/master | 2023-08-08T05:28:11.712470 | 2023-03-27T16:07:29 | 2023-03-27T16:07:29 | 144,081,173 | 811 | 568 | null | 2023-07-24T20:00:37 | 2018-08-09T00:21:29 | Python | UTF-8 | Python | false | false | 1,575 | py | import gym
import numpy as np
from agent import Agent
from utils import plot_learning_curve
if __name__ == '__main__':
env = gym.make('CartPole-v0')
N = 20
batch_size = 5
n_epochs = 4
alpha = 0.0003
agent = Agent(n_actions=env.action_space.n, batch_size=batch_size,
alpha=alpha... | [
"ptabor@gmail.com"
] | ptabor@gmail.com |
7ae123aa82822cebe97dbca6eea26e9c58d5e5fd | 016ea541673c9cd795b7270e1793e76482478134 | /1Basics/3IfStatements/3-07.py | a4fae230281f4d98b9f88b1f3cc814c75636ddac | [] | no_license | zako16/heinold_exercises | 5e77983fc715aa7dc7367561b2a4dae420db2b35 | 5551161e2d16d740df2e9ee7c2a53b235d627046 | refs/heads/master | 2021-06-10T23:34:33.516166 | 2017-02-06T07:24:57 | 2017-02-06T07:24:57 | 70,688,144 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | """
Write a program that asks the user for two numbers and prints !Close! if the numbers are
within .001 of each other and !Not close! otherwise.
"""
numberOne = eval(input("Enter 1 number:"))
numberTwo = eval(input("Enter 2 number:"))
if abs(numberOne - numberTwo) <= .001:
print("Close")
elif abs(numberOne - numbe... | [
"pojiratelnica@gmail.com"
] | pojiratelnica@gmail.com |
fe7ef14c8f1f1bd5d70ed77e431a9ed651889e4c | dbc5e86162d0fc97a2c40f91c181762f4c904cde | /photologue/admin.py | 4bb65371d920b247f783e12a1661857367ce650d | [
"BSD-3-Clause"
] | permissive | iberben/django-photologue | 7739df7c6bb2401a5c89587b803dbfef2e673cb4 | cf546ce05172240068aa7d01b41cecf75c3e03e9 | refs/heads/master | 2021-01-19T05:49:14.504577 | 2010-11-12T14:48:21 | 2010-11-12T14:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | """ Newforms Admin configuration for Photologue
"""
from django.contrib import admin
from models import *
class SetAdmin(admin.ModelAdmin):
list_display = ('name', 'date_added', 'is_public')
list_filter = ('date_added', 'is_public')
date_hierarchy = 'date_added'
prepopulated_fields = {'slug': ('name',... | [
"ingo.berben@city-live.be"
] | ingo.berben@city-live.be |
aaf7c07df0a3a79d0aa83017aa4a3142f7911d98 | dec5c1416279178c23e81794789ed27e7e806faf | /profiles_api/models.py | 921345fafbd8fe1b8cb4afa2e7952b8838987617 | [
"MIT"
] | permissive | amitarvindpatil/profiles-rest-api | 44c7555888e654a2a64362d21834f5a67aeab07a | c2092bdc13c77e2f1f3cd4940740f752cc2b180f | refs/heads/master | 2022-09-15T06:53:40.777169 | 2020-05-31T09:01:43 | 2020-05-31T09:01:43 | 260,257,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
from django.conf import settings
# Create your models here.
class UserProfileManager(BaseUserManager):
"""Manager For U... | [
"amitpatil04041993@gmail.com"
] | amitpatil04041993@gmail.com |
8740e21ca2700f49a46ae97ee6a65222d9aaedd6 | 5494c7990e07e9ff465dd78c642e939abcb2f3ba | /lab/lab07/lab07.py | c84914c7b7645b8ad0e759e7f724519fbca39ee9 | [] | no_license | minleminzui/ucb_cs61a_21summer | cd816dc1874f308f723914aea2874d9bee72d4e8 | 0269ef7f7b3c6180e4c56862bc6c8e8a60743ed5 | refs/heads/main | 2023-08-15T14:40:10.002607 | 2021-10-06T13:57:12 | 2021-10-06T13:57:12 | 414,231,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | def naturals():
"""A generator function that yields the infinite sequence of natural
numbers, starting at 1.
>>> m = naturals()
>>> type(m)
<class 'generator'>
>>> [next(m) for _ in range(10)]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
"""
i = 1
while True:
yield i
i += 1
... | [
"2969413251@qq.com"
] | 2969413251@qq.com |
7228fe09f21e47607f8b4d813784fbe298fefdb7 | 1080cd26378ef9070c61360211dc113b428216f6 | /.venv/lib/python3.7/bisect.py | 7ed693cbdb8fa88e018a5e0d72e6a3588aba86ce | [
"Apache-2.0"
] | permissive | ricklon/circleciplatformio | b616ba829a1de179830b7979c9864dff17e9a54d | 3b832e3705e0a0b627adb8afd8a4b687c833d0be | refs/heads/master | 2022-12-09T13:03:46.716842 | 2019-08-17T22:56:33 | 2019-08-17T22:56:33 | 202,931,258 | 0 | 0 | Apache-2.0 | 2022-12-08T06:02:49 | 2019-08-17T21:04:38 | Python | UTF-8 | Python | false | false | 58 | py | /home/gitpod/.pyenv/versions/3.7.2/lib/python3.7/bisect.py | [
"rick.rickanderson@gmail.com"
] | rick.rickanderson@gmail.com |
96ecd307f055f3b68969e8d57c8d8d5d0247f15a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/i5u.py | ddabd582980b6c53e4d7b8520dbd5e019a933eac | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
9bfef8ea5ee76a8076e4ae4927c5af7803deeabb | dc5675b4e32cac0807ea07f70ff75d53497d903e | /causal/convert_to_npy.py | 95245c92657dc0b18ded4d24ed9332b9228f1c2e | [] | no_license | jeff-da/cracking-the-commonsense-code | 7ea8d17fb56541c19f860d498be22d8641c38d22 | 8a54f01888959245f066da8c7c921d949adce93e | refs/heads/master | 2020-10-01T15:40:32.213604 | 2019-12-12T09:31:10 | 2019-12-12T09:31:10 | 227,568,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | """
Convert the GloVe co-occurrence data to a numpy matrix.
"""
from argparse import ArgumentParser
import struct
import numpy as np
from scipy.sparse import coo_matrix, lil_matrix
from tqdm import trange
p = ArgumentParser()
p.add_argument("--vocab_file", required=True)
p.add_argument("--cooccur_file", required=Tr... | [
"jexeld@gmail.com"
] | jexeld@gmail.com |
6277d8e8a2d1b27b8540502c24b2e0c1977f2425 | d4b80f29bbfa914159c9bddd6615a625abdecff7 | /PFChargedHadronAnalyzer/python/CfiFile_cfi.py | 064661e1be2b7b70e8b7ac153c209625c4d57764 | [] | no_license | bkansal/PFCalibration | 36153346f8048642be07c26b3c4398829b161a2e | 12a301266ba0031cb82cdfbbf8797b12d6caef7b | refs/heads/master | 2023-05-11T20:09:47.363140 | 2016-11-29T09:28:40 | 2016-11-29T09:28:40 | 124,348,268 | 0 | 4 | null | 2018-03-08T06:36:58 | 2018-03-08T06:36:58 | null | UTF-8 | Python | false | false | 92 | py | import FWCore.ParameterSet.Config as cms
demo = cms.EDAnalyzer('PFChargedHadronAnalyzer'
)
| [
"shubham.pandey@cern.ch"
] | shubham.pandey@cern.ch |
d5af0b0faa18fdfc639b31b41dfbdb93a890659b | 085a6c4ac532bd4f46980f340890659b0cd03824 | /two_sigma_problems/problem_9.py | f2c2e10d39d7f5185f1a978013c9b743178ba7e5 | [
"MIT"
] | permissive | thinhnguyennt7/Daily-Coding-Problem | c66aa51422dc79ee912fbd042fefb2b2cf37a94f | 16d42e33af1de08aac1d888be518e398b4674bc8 | refs/heads/master | 2021-04-04T02:10:52.800504 | 2020-03-18T17:29:44 | 2020-03-18T17:30:01 | 248,416,248 | 1 | 1 | MIT | 2020-03-19T05:13:37 | 2020-03-19T05:13:36 | null | UTF-8 | Python | false | false | 223 | py | """This problem was asked by Two Sigma.
Using a function rand5() that returns an integer from 1 to 5 (inclusive) with
uniform probability, implement a function rand7() that returns an integer
from 1 to 7 (inclusive).
""" | [
"mxcsyounes@gmail.com"
] | mxcsyounes@gmail.com |
bcf00fd1fcede042853180e550443fed81814591 | 4e86bcea2789d983207561889f902efdae99a4a7 | /3.WebDev/django/mysite/main/views.py | ac68f8e3557ed6128c80c33345220109909987f9 | [] | no_license | bloedlink/python | 6a6204222745730eeb010a11f1fc0588208aaf8d | a3be0ddbf5e65d986e3b039cf2059348225f0a0f | refs/heads/master | 2023-08-03T23:28:11.684917 | 2021-03-12T19:59:36 | 2021-03-12T19:59:36 | 254,076,131 | 1 | 0 | null | 2023-07-23T11:18:27 | 2020-04-08T12:04:20 | HTML | UTF-8 | Python | false | false | 313 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'index.html')
def master(request):
return render(request,'master.html')
def carpool(request):
return render(request,'carpool.html')
def test(request):
return render(request,'test.html') | [
"nielsjanssen.1990@gmail.com"
] | nielsjanssen.1990@gmail.com |
adc05494fa63bf6c34d7e85ba4b3674a26b19617 | a5e9150f12fe0de60fe8851e1ed9f7b45ca01a00 | /keras_cifar10.py | dc386e3cff981333990ceaead537f870e2d54d02 | [] | no_license | dain5832/DL4CV | d73b9b8cd1807d01b6d3e56b75ce536c56078cc8 | 2af85f03e9bf87e6f9ff27554f7ec02c95d40f03 | refs/heads/master | 2022-11-14T15:23:58.049282 | 2020-07-06T07:15:51 | 2020-07-06T07:15:51 | 277,467,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # import the necessary packages
from sklearn.preprocessing import LabelBinarizer
from sklearn.metrics import classification_report
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import SGD
from tensorflow.keras.datasets import cifar10
imp... | [
"noreply@github.com"
] | noreply@github.com |
6a2420036fa088bc0c7d614f108b8106288d4953 | f6a9b4b571d58078fc15e65ec1f50828b64f3b09 | /pulp-client/handlers/user.py | 9e5d40643c0e32bf8f75c05f3f51efff9f196e78 | [] | no_license | AyushGupta-Code/pulp-client | f36451fa320f27da83d63defcb3e497ccfa1565c | dc25ad8d87d7bc542955bdb5a54d4294d3dcc034 | refs/heads/master | 2023-04-09T14:41:56.062154 | 2021-04-18T16:11:59 | 2021-04-18T16:11:59 | 350,825,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from db.user import User
from flask_login import login_required
from flask import Flask, redirect, request, url_for, Blueprint
from flask_login import current_user
import requests
import json
#creates a page
userpage = Blueprint('userpage', __name__, template_folder='templates')
# userid is a variable and "users" is... | [
"ayushgupta20011@gmail.com"
] | ayushgupta20011@gmail.com |
40fc3a0276b1fc14e4cbde317b29b1d2aaf23308 | c3cc02f10e8e6e892da1c033d8f9f20efc01213a | /upload-login-registration-django/AuthProject/templates/EPIC/Joining/views.py | b6fd731b2fbebcffcd0697b079d2dc0e2d3764e3 | [] | no_license | benchmarketdev/Python-Django | 43d2b28a8538a8c43aad9b37e23488c325ed9f1b | 20e6ac34c3f010a0ab36fd2d6bf8114a20d158f7 | refs/heads/master | 2020-04-01T04:32:42.320898 | 2018-10-13T18:35:28 | 2018-10-13T18:35:28 | 152,867,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from django.shortcuts import render, redirect
from models import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from datetime import datetime
import datetime, decimal
from Employee.models import *
from Library.emailer import *
from Users.models import *
from djan... | [
"eagle@gmail.com"
] | eagle@gmail.com |
351cca2054fb8641c34017b3bc190680a699b824 | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/10_Modules/Parallel_Processing/a_get_cpu_count.py | 0a0464db866ec3a6c8aa2be9e3d728d2be413a38 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import multiprocessing as mp
result = '''There are {} processors, in number, in this \
computer'''.format(mp.cpu_count())
print(result)
print(dir(mp))
print(mp.current_process())
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.