blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbddcb5659c0c9194a9534e43292ed4ffe3b7bd3 | c79416e3f2bc1af3a5c3436282e5c6c95067f473 | /itp1/6_b.py | ade1b7199b6af2d6f9cc3d86e63afc2686fdb73f | [] | no_license | mollinaca/AOJ | c14149c265c3a6cc572617d381609ed624c68df3 | 3389c4060faa18934a02246a0c9e5e234a637514 | refs/heads/master | 2021-05-17T21:20:27.935501 | 2020-04-29T13:52:18 | 2020-04-29T13:52:18 | 250,957,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = int(input())
d = {}
for i in range(n):
d[i]=list(map(str,input().split()))
for mark in ['S','H','C','D']:
for i in range(1,14):
if not [mark,str(i)] in d.values():
pass
print (mark,i)
| [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
c60a7da867aa0e9c2c1416dd43b9fef21fc0ab41 | 1e6aa6dcd483fe66aac09bec23cdb686409a5dac | /merakiq2.py | a3bc1aa453da75d6776be22edfe7245a3c47b51f | [] | no_license | subreena10/files | 0e872a7132a6044ab0cb7ce92f7fb76cb00c6b9e | a97eedd9e7085e6b2ae8af01fd656b44169b0048 | refs/heads/main | 2023-08-14T23:51:27.833537 | 2021-10-01T17:06:33 | 2021-10-01T17:06:33 | 412,552,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | my_files=open("people1.exercise.txt","r")
count=0 # count of number of lines in people.exercise.txt
for name in my_files:
count=count+1
print(count)
my_files.close()
# print(my_files.read()) #to read a file ... | [
"noreply@github.com"
] | noreply@github.com |
fc9e58a4cee12bf97f508979c3cec3a4ee283489 | d9e8b7d5c468b38cdf18cece9dff12ad1188a71b | /Model_Forms/Emp_registration/Employee_registration/manage.py | 6f9e96a4ea4484312e7af9e0068504613e0c6118 | [] | no_license | Ruchika-Munde/Django_Task | f14e0497a4f8045a68dbe58bbd772abf606369d3 | 7fa549842a544527b9f78cbfcf52c26dde31463c | refs/heads/master | 2022-12-16T17:53:12.577323 | 2020-09-09T07:34:43 | 2020-09-09T07:34:43 | 294,036,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | 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', 'Employee_registration.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
390a27c09a7533071f5b9daddeb43cc8ec889b7e | 09b859d9e1a221c43fb068c115f42c397c63e535 | /modcrop.py | 386d649480f7574e944ff7a0b7b0b70df60f74c6 | [] | no_license | lygztq/L-Super-Resolution | c44e3994506526151cc2dd3f8d501eb6617849c8 | da799d4f2a32dfc8cde628715fd8ae3c999edb09 | refs/heads/master | 2021-08-23T10:50:56.421743 | 2017-12-04T15:45:31 | 2017-12-04T15:45:31 | 112,314,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | def modcrop(imgs, modulo):
dim1 = imgs.shape[0] - (imgs.shape[0] % modulo)
dim2 = imgs.shape[1] - (imgs.shape[1] % modulo)
if len(imgs.shape) == 2:
imgs = imgs[:dim1,:dim2]
else:
imgs = imgs[:dim1,:dim2,:]
return imgs
| [
"lygztq@sjtu.edu.cn"
] | lygztq@sjtu.edu.cn |
d698f65935d09f0fd991d2afe81d51f4f35b74b6 | bcca5d8690ab27b15d82aa8900a0481d8b1ee175 | /delivery/api/views.py | 7066e100076edb6ebd1919190b1234996e07bcea | [] | no_license | Pushkar-Bhuse/RestaurantProject | f0607008e6a8fcda5de1188267df9726f8fea774 | c17e9df279b0711db8e639d295598f91273cdd59 | refs/heads/master | 2020-05-07T22:15:03.001909 | 2019-04-17T22:02:10 | 2019-04-17T22:02:10 | 180,937,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | from rest_framework.views import APIView
import json
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from urllib import request
from datetime import datetime
from rest_framework import generics
from delivery.models import Order,Product,OrderItem
from .serializers import Ord... | [
"pushkar.s.bhuse@gmail.com"
] | pushkar.s.bhuse@gmail.com |
e120442d408f42c431f1405c77073a0733e53147 | dd64d0af062cdd64ced8e7f81c6c502582cc4b1a | /BlueGecko/Generators/generate_bglib_msvcsharp.py | 938b1f1b18a2129d2fb6e8de0282d27e81d04228 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | veerarajendran/bglib | c3bcdea90b0153c7bf3beee07dc15a4055ff0e23 | f5b8be4a13958a20d35557a9fa932c5355991bb0 | refs/heads/master | 2023-03-19T01:15:52.331710 | 2021-03-06T03:52:53 | 2021-03-06T03:52:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,456 | py | # ================================================================
# Blue Gecko BLE API BGLib code generator: MSVCSharp platform
# Jeff Rowberg <jeff.rowberg@bluegiga.com>
# ----------------------------------------------------------------
#
# CHANGELOG:
# 2013-05-?? - Initial release
# 2020-08-01 - Ported to... | [
"kris.young@silabs.com"
] | kris.young@silabs.com |
482e379d33aaa03739f0ae02089372a704e412a2 | 8c1e0f1955c4ed4e23d5619ba59eab1200b0b141 | /coding and encoding/Код Хаффмана/TaskA.py | 0deb54bbf8897e306ab5e26ab28e68b4d8cf96cd | [] | no_license | LorentsAn/Itmo_Discrete_Math | 672607d39df328fcdf6ffc6a79f836afe2960d7f | 8e383653a80fb4adf27a31089937956859890ce4 | refs/heads/main | 2023-06-02T13:01:13.084816 | 2021-06-27T00:04:36 | 2021-06-27T00:04:36 | 380,572,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import sys
def huffman_cod(a, n):
b = [1000000001] * n
ans = 0
i, j = 0, 0
for k in range(n - 1):
if i + 1 <= n - 1 and j + 1 <= n - 1:
if a[i] + a[i + 1] <= a[i] + b[j] and a[i] + a[i + 1] <= b[j] + b[j + 1]:
b[k] = a[i] + a[i + 1]
ans += b[k]
... | [
"noreply@github.com"
] | noreply@github.com |
15aa93890cc5835ae46c4f71496c787ab5fb7f36 | 4b26ad54cd7c2c5bd192246df2bb759f16e1e758 | /tests/common/test_run/conv_run.py | ce47a34938b2b93d24fb2d55c626bac68e79b6b9 | [
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Unlicense",
"BSD-2-Clause"
] | permissive | czlsccz/akg | 1f61e1dd631e291ec7dc8753a382fc4fba19d00a | 20697026a83d49af713c6a9bd21b50e1eb3bddbf | refs/heads/master | 2023-06-21T04:29:00.741453 | 2021-07-23T01:35:45 | 2021-07-23T01:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,119 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
756dcdcf0f8b18ffac381c892f619723e4ad7d06 | 9cc5735d21dcfa1121ccaa8ee9bb9b36d3158151 | /StaticValues.py | 2024c8deafa8405eb8f364fd8c53c5ad117a3740 | [] | no_license | huangsunyang/WechatRobot | 07fe23585b62da3c2d1df50d712ebcfe274e1548 | b4585be51a6c7be31e7c63bfff5c4d76ed428854 | refs/heads/master | 2020-03-29T18:19:45.090828 | 2018-10-28T14:10:52 | 2018-10-28T14:10:52 | 150,205,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # coding=UTF-8
caring_friends_list = [u"何可", u"PP", u"黄孙扬", u"", u"小何老师"]
self_user_id = None
temp_msgs_cache = {} | [
"huangsunyang@126.com"
] | huangsunyang@126.com |
b5ce0502060706646b712352b62678340dd7fe48 | 57ccfa900d82794b18f69c42eb174ff816f6a900 | /1 - Júnior/Collections/sets/set_comprehensions.py | 12307161cdce96c909dc586eb8c92b66e508c20d | [] | no_license | ayrtoncarlos/Formacao-Python-TreinaWeb | b1b8e2e6729ec4a45693c436aa5ee2edb89cd7a7 | 32f3e3eb70fe03754c8428846bcf447bb986825b | refs/heads/main | 2023-04-04T13:24:55.119595 | 2021-04-08T04:10:12 | 2021-04-08T04:10:12 | 355,758,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # Criando um set comprehensions
set_comprehensions = {i*i for i in range(10)}
print(type(set_comprehensions))
print(set_comprehensions)
set_1 = {1, 2, 3}
set_2 = {4, 5, 6}
outro_set_comprehensions = {i for i in set_1.union(set_2)}
print(type(outro_set_comprehensions))
print(outro_set_comprehensions)
| [
"bitao.metal@gmail.com"
] | bitao.metal@gmail.com |
a27ff240d8d46c504cd63ae93e2494b8e79f3bb2 | 99d2addf16d5637fd0133fe23153119be4f34e43 | /app/recipe/tests/test_tags_api.py | 8008972a1c50be21f47218c1ed51f485a927bc5e | [
"MIT"
] | permissive | mtbriones/recipe-app-api | b3db6c7f59d4a37da922efacc204405c5fcc0e69 | 31a24626e92fb2a039bc892fc9743b5799e96956 | refs/heads/master | 2022-11-30T00:37:09.006763 | 2020-08-12T09:27:49 | 2020-08-12T09:27:49 | 285,354,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Tag, Recipe
from recipe.serializers import TagSerializer
TAG_URL = reverse('recipe:tag-list')
class P... | [
"mike@pahrsek.com"
] | mike@pahrsek.com |
629162d4781da3145fb67d49532eefb028b41d9a | 8510ad53eefe046275bd9eed9fa69c4ae1506d9e | /display/Display.py | f922942d643f1b2adcc5f65b61c4b163ee1fa366 | [] | no_license | vmuthuk2/DistributedOPFAlg | d4cb1b0f8e2c75bb72d7ca974769489d468681fe | ad5e1ccfffb1df4eccf9da9e851042fd8925c649 | refs/heads/master | 2021-06-06T10:01:37.731168 | 2015-10-30T18:14:45 | 2015-10-30T18:14:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | import matplotlib.pyplot as plt
import os
import math
import numpy as np
class Display:
"""
Display the useful results regarding all the raw data:
1.Primal residual v.s. Dual residual
2.Mean executing time.
3.Objective value (loss)
"""
def __init__(self,pRes,dRes,exeTime,var,obj,... | [
"qiuyupeng.caltech@gmail.com"
] | qiuyupeng.caltech@gmail.com |
414acbdaade3d0362d3dda95f4aafc884d4f33d0 | 8c5a895011063b13552b55702d40cef1aa5472e2 | /IMDB Dataset.py | f066cdfae55e64b90a2ab5031b0244ca70403bb0 | [] | no_license | Admiralhunter/TensorFlowProjects | 39c513bba76cf96c846b316a42f7fdd043dca70f | 2b50f506a39842561b919ecea70436449c8586c3 | refs/heads/master | 2020-06-02T12:31:42.390791 | 2019-06-18T03:59:30 | 2019-06-18T03:59:30 | 191,154,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import matplotlib.pyplot as plt
import numpy as np
from keras import layers
from keras import models
from keras.datasets import imdb
# Import data and vectorize values as either 0's or 1's
(train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
def vectorize_sequences(sequences, dimens... | [
"hunterpalcich18@gmail.com"
] | hunterpalcich18@gmail.com |
4d843e8049a723bb7b1e5db76bede1477a38816e | bde622bd6c8d50528930fc62deeb397575e7c0eb | /Python/pi/gpio_basic.py | 41a770adc9c1e8781f8a9b6bb4f6c3af3285e30f | [] | no_license | dnivanthaka/demo-programs | 6b6700b262bd0509aa319e4a79848b73587be9da | b763c71023cc7553344043851921879c79480b84 | refs/heads/master | 2021-01-10T13:00:58.191468 | 2016-03-20T07:56:57 | 2016-03-20T07:56:57 | 54,304,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import RPi.GPIO as GPIO
# set up the GPIO channels - one input and one output
GPIO.setup(11, GPIO.IN)
GPIO.setup(12, GPIO.OUT)
# input from pin 11
input_value = GPIO.input(11)
# output to pin 12
GPIO.output(12, True)
# the same script as above but using BCM GPIO 00..nn numbers
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, ... | [
"dinusha@DinushaPC.Home"
] | dinusha@DinushaPC.Home |
db5d17c366e3d45b484559e9686129e983c0bf14 | ad5b9bf9673fd894e6aff69dae99c1c6d56c8aff | /test_case/test_baidu.py | b3ec94f349724e9553ddaef6519cfda63babbccb | [] | no_license | ajuana/api_auto | 855d31cd9eb7530e44494d1cf643ebb638cae97f | 0676b8ee8fa19e2626f4a68ca564f550baac3297 | refs/heads/master | 2023-02-08T20:53:05.138213 | 2020-12-31T04:24:47 | 2020-12-31T04:24:47 | 325,244,178 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 136 | py | # coding=gbk
import requests
from common.get_token import get_token
url='https://www.baidu.com/'
r=requests.get(url)
print('ºÃµÄ')
| [
"1120837962@qq.com"
] | 1120837962@qq.com |
e1eced3e0d27f3ba73c85b79dc1a5cf92f51364b | 1fe591727e6972e51cf97d7597734c9a872b6f73 | /tv_shows/tv_shows/settings.py | e54102ceca47cdf73cedc3b0de58db43fae135be | [] | no_license | abbykahler/Python | 2639967867313749d6c380665e689716d0f35fcd | 0d6a7fa9ddd86535fb091eb861772b3c11a71941 | refs/heads/main | 2023-07-15T13:02:24.623934 | 2021-08-28T02:31:41 | 2021-08-28T02:31:41 | 334,590,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | """
Django settings for tv_shows project.
Generated by 'django-admin startproject' using Django 2.2.4.
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 os
... | [
"70241972+abbykahler@users.noreply.github.com"
] | 70241972+abbykahler@users.noreply.github.com |
0de970ab171f85303c1ef6af95fdcb034e0db9ef | cfb37360ff0f0856ffa76c95266f9784dd331549 | /machine_learning/jointDir/bandSim.py | 6c0879a3bc8a8a53900ef4cec9e1cb592ce88e5b | [] | no_license | rastirith/Project_FRB | e80c634a0c1ea650c8ae7814eb2dac417e3e2f18 | e9bce8631c8ba4780d7de10bbe10d29565394f56 | refs/heads/master | 2020-04-01T14:10:26.192757 | 2019-05-09T12:13:20 | 2019-05-09T12:13:20 | 153,283,576 | 0 | 0 | null | 2019-05-09T12:13:21 | 2018-10-16T12:42:50 | Python | UTF-8 | Python | false | false | 11,053 | py | import numpy as np
from matplotlib import pyplot as plt
import math
from scipy import special
import scipy.stats as stats
def cordes(Wms):
""" Calculate the dm range spanned by band at random value between
0.87 and 0.93 in the cordes function.
Keyword arguments:
Wms -- the width (ms) property of s... | [
"oskarnummedal@gmail.com"
] | oskarnummedal@gmail.com |
1a098b3050fd0f58f5c44a3c2cd180f28aa4a3bc | 3c20dd8a37f6694cea1c0cf2111524a5741cf94a | /Desafio063.py | e51a25a9fb82a9704a95d43d1eaa53207dce4906 | [
"MIT"
] | permissive | SheilaFernandes/Desafios-py | f3cdef561223960083655dda47ce2aa08570fcbb | d1dedc8d3111a4dd762409822bd0b5f8a416f728 | refs/heads/master | 2022-11-06T21:28:53.628632 | 2020-06-23T01:44:07 | 2020-06-23T01:44:07 | 272,025,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | print('---'*35)
print('Sequencia de Fibonacci')
print('---'*35)
n = int(input('Digite um número >>>'))
t1 = 0
t2 = 1
cont = 3
print('{} - {}'.format(t1, t2), end='')
while cont <= n:
t3 = t1 + t2
print(' - {}'.format(t3), end='')
cont += 1
t1 = t2
t2 = t3
print('-----FIM-----')
| [
"sheila_com61@yahoo.com.br"
] | sheila_com61@yahoo.com.br |
cf85725a18771089fc4c39ecdbb49c74fe733f2e | aec2b7b853493111c526dbdddf2967628af0705a | /Machine Learning/cross_validation.py | ae9e40b0cb5e38f9a3ee58df06dcbdaf64d8fdde | [] | no_license | hudaoling/hudaoling_20200907 | 6b10d4b9496330c908889b85e14a3d068cbb8d1e | 55d2792518c1676428f7a65fb37cc8541568d6ff | refs/heads/master | 2022-12-07T15:46:33.785550 | 2020-09-07T07:49:16 | 2020-09-07T07:49:16 | 293,445,472 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from sklearn.datasets import make_regression
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_validate
X, y = make_regression(n_samples=1000, random_state=0)
lr = LinearRegression()
print(X)
print('**************')
print(y)
print(len(X),len(y))
result = cross_validate(lr, ... | [
"daodao2010@qq.com"
] | daodao2010@qq.com |
9d2a65a4ec84a2bdab7268c50a1505976a49dc07 | ca3d1625d69e7ffa8b3ec67d711c4db55c25d33d | /src/GACNN-Esfahanian-Akhavan/testGenerationalGA.py | 0f52659feab9c7c791955874b7d34a2c7793e81a | [] | no_license | fireHedgehog/cnn_test | acc5fe421a554bc54422a1b1bfb2897c64c02077 | 1ec21f0b5207689b2fe7f69dae6ffa3d912d5194 | refs/heads/master | 2021-01-04T15:12:35.973100 | 2021-01-02T23:22:49 | 2021-01-02T23:22:49 | 240,607,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # -*- coding: utf-8 -*-
"""
Created on 2019/11/21 15:54
@file: testGenerationalGA.py
@author: Matt
"""
from DataMgr import load_cifar10, write_performance
from GenerationalGA import GenerationalGA
from keras.utils import to_categorical
root = '../../data/cifar-10-batches-py'
# root = '/home/u800199/workdir/datasets/c... | [
"rj.chen91@gmail.com"
] | rj.chen91@gmail.com |
358f1e9a270eafd12e6574e79f677c1214882890 | 4ae93a75c9d32f8752f3a65699870cf14f85bea4 | /ospcpts/ptsrun.py | b997b0c76ca7387c41d12376761542df08ff0407 | [] | no_license | krisgospc/ospc_pts_burnin | 093a62338728e212434157dd4ef5fc4b7e531589 | 19068d8d0591a9a5f03fd4a8be7fa891feabde32 | refs/heads/master | 2021-01-19T20:12:08.640041 | 2017-08-23T21:02:10 | 2017-08-23T21:02:10 | 101,222,123 | 1 | 0 | null | 2017-08-23T21:02:11 | 2017-08-23T20:28:53 | Python | UTF-8 | Python | false | false | 623 | py | #!/usr/bin/env python3
""" logic to interact with phoronix-test-suite """
import json
from subprocess import call
# basic JSON write
def write_prefs():
with open('filename.json', 'w') as f:
json.dumps(data, f)
# basic JSON read
def load_prefs():
with open('filename.json', 'r') as r:
data_st... | [
"kris.g@xoticpc.com"
] | kris.g@xoticpc.com |
84e091a4689fb3a8e2ad1937e3d9a994f38ec460 | 0b3e097b17ed24ade1e5993591c5f59847a72296 | /ex7.py | 77b9644d53228514df45e2b0f3b54220e0a4197e | [] | no_license | mauabe/python-thw | 0518437fe4b4ab9309e6e6b854c3bec923a0db59 | 65074e6b858fc28ac6430e39961f145ddf9050db | refs/heads/master | 2020-04-13T10:43:48.552043 | 2019-02-14T02:18:06 | 2019-02-14T02:18:06 | 163,151,151 | 0 | 0 | null | 2019-02-14T02:18:07 | 2018-12-26T07:35:47 | Python | UTF-8 | Python | false | false | 458 | py | print ("Mary had a little lamb.")
print ("Its fleece was white as %s." % 'snow')
print ("and everywhere that Mary went.")
print ("." * 10) # what'd that do?
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"
# watch that comma at the ... | [
"6901736+mauabe@users.noreply.github.com"
] | 6901736+mauabe@users.noreply.github.com |
3349a87a3c7b1d9abb8cb70bb22bb03a02aae1fe | 7849b6c610d8b0e423560f817ec3526c08c5a72c | /pipeline/run_copy_stripped.py | 0ac70ed522805e87c4dc1fba8f43f45ee24bb82a | [
"BSD-2-Clause"
] | permissive | shuo-zhou/openfmri | 6e5fb47ac66c19df29c4db98df587107c986a262 | 6514f26510fa889fa6679babbbc92b29f8dd6b0a | refs/heads/master | 2022-10-19T22:27:57.258636 | 2017-06-22T20:48:46 | 2017-06-22T20:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | #!/usr/bin/env python
""" run_copy_stripped.py - copy skull-stripped images from freesurfer dirs
"""
## Copyright 2011, Russell Poldrack. All rights reserved.
## Redistribution and use in source and binary forms, with or without modification, are
## permitted provided that the following conditions are met:
## 1. ... | [
"poldrack@gmail.com"
] | poldrack@gmail.com |
2959732295f265b0871df0ee7464ee12779c2961 | 5a634ad6f7f2f49282e8de0aeb87bea0d45aae00 | /django_bootstrap3_multidatepicker/django_bootstrap3_multidatepicker/urls.py | 10d7e3358a74025057d93d52250cf05307a0831e | [
"Apache-2.0"
] | permissive | dhgrz/django-bootstrap3-multidatepicker | f6a839c18f6d70ba7236a6901431c5beec222f21 | 2e57cc3806aba194aeee89e2e27284c30e964cab | refs/heads/master | 2021-01-20T23:21:25.817837 | 2016-02-19T02:51:30 | 2016-02-19T02:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | # Copyright 2016 Fabian Wenzelmann
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, ... | [
"wenzelmf@informatik.uni-freiburg.de"
] | wenzelmf@informatik.uni-freiburg.de |
64a1d5950d97a40344b5459169c86f648d9edef3 | 9b9efe9285ffec50ba815e908b6495d6bce48364 | /challenge2/test_challenge2.py | 8a1982f4e5df9d2231d9dd30384464107505cec7 | [] | no_license | giovannamascarenhas/spoonGuru-project | 793234b233cdbd6c7dc06f3e264f591ca977a53e | 425bd64b5367b3e0b68fc35956af772704a1d5a7 | refs/heads/main | 2023-01-31T18:11:25.475829 | 2020-12-14T14:17:39 | 2020-12-14T14:17:39 | 321,326,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # Internal packages
from challenge_2 import calculate_largest_loss
def test_calculate_largest_loss_function():
"""This function tests the calculate_largest_loss function"""
pricesLst = [2, 5, 10, 12, 13]
assert calculate_largest_loss(pricesLst) == 5
def test_calculate_largest_loss_function_with_0_le... | [
"giovanna.mascarenhas.1@gmail.com"
] | giovanna.mascarenhas.1@gmail.com |
3d5065fe584688913112e0c113e1e416c28f4aa6 | 58377872129227fab9804f9508a248bcdcf1d8ea | /Layers/sigmoid.py | 0002533d4a8c44358ce7842026b267d84ba1615c | [] | no_license | duduhali/HasAI | 0dc7fcfba2fd46aa8d73bd90eeacb2dc95a58b97 | 96b7e963eb72470508977dbd39c310f41fd0f46d | refs/heads/master | 2023-01-02T06:37:35.055717 | 2019-10-01T10:37:23 | 2019-10-01T10:37:23 | 309,314,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import numpy as np
class Sigmoid:
def __init__(self): # 无参数,不需初始化
pass
def sigmoid(self, x):
return 1 / (1 + np.exp(-x))
def forward(self, x):
self.x = x
# print(x.shape) (1024, 26, 1)
self.y = self.sigmoid(x) #可以处理单个元素,也可以处理np数组
return self.y
def bac... | [
"a88b88c88"
] | a88b88c88 |
27c30d4803558159abc9243b9311c56e9c586492 | fc52062f9c0f51dc2b25a61ba586108a3f3f663c | /modules/peewee.py | cd3c87c0264d267832faee3509355de3de316328 | [] | no_license | d1ffuz0r/freeshardwatcher | 4fa9f3de4f925ab9f1cc6cb410dc85d8fffab6c8 | 9ff3ef6b16b598f1d458af79013c65ab7bd89eb3 | refs/heads/master | 2021-01-10T21:18:46.240764 | 2012-03-10T10:50:26 | 2012-03-10T10:50:26 | 3,048,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,199 | py | # (\
# ( \ /(o)\ caw!
# ( \/ ()/ /)
# ( `;.))'".)
# `(/////.-'
# =====))=))===()
# ///'
# //
# '
from __future__ import with_statement
from datetime import datetime
import decimal
import logging
import os
import re
import threading
import time
try:
import s... | [
"d1fffuz0r@gmail.com"
] | d1fffuz0r@gmail.com |
5c42760ff78d4b51e4343021b7deb5b12a24f0b4 | 4f6281659c20c11468d147cef6c730a4cbad0d58 | /node_modules/live-server/node_modules/fsevents/build/config.gypi | 803b85c0269b54bd837ac7480240685904eaa6ce | [
"MIT"
] | permissive | devdaddy/storybook-ui | faa85f265d8890c6122cef96d9645a5ba3b370af | 5ddaaf5ebb58413e91ca3bcd0a21e6ea74d94542 | refs/heads/main | 2023-08-13T19:32:56.840543 | 2021-07-21T15:03:16 | 2021-07-21T15:03:16 | 330,773,110 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"eschmuecker@live.com"
] | eschmuecker@live.com |
7a9966931bb8737df6d6d1b33a77d939a8ad824e | 4254d744d58b8a718a7251ca9bab7bb34c056018 | /src/social/settings.py | 2e535631740005044a97e378b40c4350e4cc2200 | [] | no_license | Eyakub/django-social-login | 85b13b552b2719b9c8b1df60a835190bf571da52 | dcf72c533689940a02b6df620235143902f1cc73 | refs/heads/master | 2022-12-21T00:21:11.212002 | 2019-08-27T06:05:13 | 2019-08-27T06:05:13 | 204,456,358 | 0 | 0 | null | 2022-12-08T06:04:55 | 2019-08-26T10:56:32 | Python | UTF-8 | Python | false | false | 3,578 | py | """
Django settings for social project.
Generated by 'django-admin startproject' using Django 2.2.3.
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 os
# ... | [
"eyakubsorkar@gmail.com"
] | eyakubsorkar@gmail.com |
3d0514621d7d21aecbaad5567828f757b3050c7e | b7e924cff3940a94014f7ef83f830f31c61b1ce1 | /Assignments/Data Types and Variables/Exercise/10. Gladiator Expenses.py | bba19e3016d62c9f98abeae636dcb4500ff4f8ff | [
"MIT"
] | permissive | KaloyankerR/python-fundamentals-repository | a1406ca021819ca32390700380646f1107bf078e | b8e69523ea7e6aa352e8398f0202e283374a0f7c | refs/heads/master | 2023-04-10T05:22:43.907759 | 2021-04-20T20:45:54 | 2021-04-20T20:45:54 | 289,025,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | lost_fights_count = int(input())
helmet_price = float(input())
sword_price = float(input())
shield_price = float(input())
armor_price = float(input())
helmets_trashed = 0
swords_trashed = 0
shields_trashed = 0
armors_trashed = 0
for fight in range(1, lost_fights_count + 1):
if fight % 2 == 0:
helmets_trash... | [
"kaloyankulov2003kk@gmail.com"
] | kaloyankulov2003kk@gmail.com |
aee5f137c27330cda1e66924e85cebf0986034f1 | bc31e2039bead10adccbd4ff0e869ff417ffa8c4 | /external_dns/tests/common.py | a19296b56a3df6fb8fb02ab1ee0930cdabaa1028 | [] | permissive | koreissm/integrations-core | 0a70c0bb26cc534699c3f776678cef0590fc9887 | 4ab56de323dccf977c5f3e7e70b37069365912ad | refs/heads/master | 2020-11-24T23:37:03.463919 | 2019-12-13T17:40:57 | 2019-12-13T17:40:57 | 228,390,125 | 1 | 0 | BSD-3-Clause | 2019-12-16T13:10:24 | 2019-12-16T13:10:23 | null | UTF-8 | Python | false | false | 250 | py | # (C) Datadog, Inc. 2019
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from datadog_checks.dev import get_here
HERE = get_here()
FIXTURE_DIR = os.path.join(HERE, 'fixtures')
CHECK_NAME = 'external_dns'
| [
"ofekmeister@gmail.com"
] | ofekmeister@gmail.com |
903c47ea2af331897d25c06feef451857180cf8f | 18dba2f82e17873e5e8161e74bc714ef88b09b36 | /realestate/devrep/migrations/0024_auto__chg_field_partner_note.py | ed1aaeb01c94b5280314b32aee557cdf13b875eb | [] | no_license | sanchellius/estate-agent | 8013573624b62ea3b6362fa0c22edf8371ca6966 | 53c15c2f2c970bd432ae579b5aa6f76ab2fbac49 | refs/heads/master | 2021-01-17T21:15:35.988578 | 2016-07-25T21:51:24 | 2016-07-25T21:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,463 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Partner.note'
db.alter_column('devrep_partner', 'note'... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
1d829257f6aa9bd937c16ebe5dc899e634989812 | 0edd49b1f7a34a63bbf9ddf92fbc75fe5d46be63 | /tests/resampling/sliced_wasserstein/test_utils.py | 131dbb1425e598da9f4c013a6bac28c588ed7cb9 | [
"Apache-2.0"
] | permissive | JTT94/filterflow | 10c5a5f4cd8bf27f620c83f1b677b162eb59f5c6 | 5d8300ba247c4c17e1a301a22560c24fd0670bfe | refs/heads/master | 2023-04-17T00:24:06.027624 | 2022-10-27T09:20:11 | 2022-10-27T09:20:11 | 247,799,848 | 39 | 4 | Apache-2.0 | 2020-10-13T08:48:19 | 2020-03-16T19:28:52 | Jupyter Notebook | UTF-8 | Python | false | false | 809 | py | import tensorflow as tf
from scipy.stats.stats import _cdf_distance as st_cdf_distance
from filterflow.resampling.differentiable.loss.sliced_wasserstein import _cdf_distance
class TestUtils(tf.test.TestCase):
def setUp(self):
import numpy as np
self.x = np.random.normal(0., 1., [1, 100])
... | [
"jtthornton1994@gmail.com"
] | jtthornton1994@gmail.com |
c394b74aeadad20ebc853e06278df909788eb6fa | 5bb5a722fbf9e0a29c73ff3184dcbcce1639cf44 | /cafesite/cafeyo/views.py | efcb7fdb6a1398241dea2393aef5ad3d754d8f3b | [] | no_license | software-engineering-term-project/cafe-recommendation | 969afad5ac4a8e5327b3ed50780f6c611717c0b0 | 0c3335455cbb7b87d8a432b8bb0c71dba5105761 | refs/heads/master | 2021-05-24T08:31:35.976128 | 2020-06-26T15:13:04 | 2020-06-26T15:13:04 | 253,471,528 | 0 | 2 | null | 2020-06-06T23:44:07 | 2020-04-06T11:01:30 | HTML | UTF-8 | Python | false | false | 2,981 | py | import random
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.urls import reverse
from django.views import generic
from django.db.models import Max
from .models import Gate, Cafe, Category, Menu
# Create your views here.
class I... | [
"allieclan@gmail.com"
] | allieclan@gmail.com |
a5cda1f17a107696d4d83cd64a8d802ebe46b3dc | 45093e6470e866dede760bfb7a082bcbdb540adf | /venv/lib/python3.8/site-packages/urllib3/response.py | 02db0b14c4836f0acc9ab5f7518ed488b3fc97e7 | [] | no_license | rwinfield/first-bot | 0dee7441d80abdd0d93c58b73518e373a8d0af18 | ff6b2628767d8a7e8ebc6115dbf3658429764490 | refs/heads/master | 2023-08-17T01:58:41.332059 | 2023-08-04T19:25:52 | 2023-08-04T19:25:52 | 151,766,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/50/f8/0b/9a71e3e33ef56671fc8af60eca77004e27d33b0f4542e914a839dc9027 | [
"43892564+rwinfield@users.noreply.github.com"
] | 43892564+rwinfield@users.noreply.github.com |
7211e38c162d1e85a5d4701b938298e7b0341d7a | a7bc7593d72b85f20455ab1d67bffee2ad294011 | /TCP_Server/Multiple_Connections/tcpThreadedServerCallback.py | 9694d25d02b6b179c5140ebaf50cb48375195ea6 | [
"MIT"
] | permissive | EdgeLab-FHDO/Sliding-Window | 3e6e44e907f21006c67e36e9c6b5d93d15128795 | 8cb930202242245a8358c8cda1b8533fde3512fb | refs/heads/master | 2022-12-15T08:19:23.164307 | 2020-09-13T12:44:21 | 2020-09-13T12:44:21 | 293,291,622 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,255 | py | from datetime import datetime
from json import loads, dumps
from pprint import pprint
import socket
from threading import Thread
import time
import argparse
CLOSE_KEY="close_comm"
communication_flag=True
#Receives as an argument the ID of the vehicle
parser = argparse.ArgumentParser()
parser.add_argument("server_po... | [
"alyhasansakr123@gmail.com"
] | alyhasansakr123@gmail.com |
d771ce2305c140ba240e770f75da36633ccc5fa2 | a2d7bea260a90b597b4afde27dfb7cc91551e5de | /qrcode.py | 4a7c0a0ffe9d48b61799fe9aea5de678ba2e41a1 | [] | no_license | znsoooo/lsx | 91af25171ab28b5edfc07b127dadf831f062bdef | 4f46815fea3816cbc25911190a1dea03686502c7 | refs/heads/master | 2022-04-26T15:20:39.286159 | 2020-03-28T01:35:22 | 2020-03-28T01:35:22 | 115,320,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | # -*- coding: utf-8 -*-
import Tkinter
from PIL import ImageTk
import qrcode
def qrmake(qrstr):
global n
n = n + 1
print qrstr
qr=qrcode.QRCode(version=19, box_size=3, border=2)
qr.add_data(qrstr)
qr.make(fit=True)
img=qr.make_image()
img.save('qrcode.png')
bm.append(ImageTk.PhotoImage(file = 'qrcode.png'))
... | [
"noreply@github.com"
] | noreply@github.com |
f75884d586b309a8798fa48c923319bb4832a172 | a0773806514525e722a98c5a93dd7c06b619af54 | /gender_project/1.SystemInstallation/Boto/boto_install_VMS.py | e0203717c1b24ecf93d1156f06c15d63eacb38cd | [] | no_license | wppaul/gender_project | 432594af53813f88b2fa77a282b200aaa19ff005 | 5bdf3eb9f00e832f85a21971abe823338b19fdf8 | refs/heads/master | 2022-06-12T15:33:55.959883 | 2016-06-08T13:34:28 | 2022-06-10T06:49:47 | 60,486,657 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | # Author : PENG WANG
# Student Number : 680868
# Supervisor : Prof. Richard Sinnott
# Subject: COMP90055 COMPUTING PROJECT
# Project Name : Gender Identification and Sentiment Analysis on Twitter through machine learning approaches
import boto
import time
from boto.ec2.regioninfo import RegionInfo
#Set up the region... | [
"wppaul@hotmail.com"
] | wppaul@hotmail.com |
664bf80e2b8b6e0fce11e6abe9c3f7d8b088dd15 | fd0e683a14708fd91f54fa085511988142d8f64b | /etl_user_processing_dag.py | 91e4f6c2fc9c2417b56e94f285cd96491f22c19d | [] | no_license | anhassan/User-Processing-ETL-with-Apache-Airflow | 3f7d6857bf96f26845b3a31f59dcbae814717424 | 7b6dcb4c541f93c4e56d26a663269dcaa2ab4479 | refs/heads/main | 2023-02-28T05:33:03.132505 | 2021-02-08T01:04:11 | 2021-02-08T01:04:11 | 336,905,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from airflow.models import DAG
from datetime import datetime, timedelta
from airflow.providers.sqlite.operators.sqlite import SqliteOperator
from airflow.providers.http.sensors.http import HttpSensor
from airflow.operators.http_operator import SimpleHttpOperator
from airflow.operators.python_operator import Python... | [
"noreply@github.com"
] | noreply@github.com |
939811b8912ed2c6432484c973e24256f3eb4565 | a4dba9e5085611d906c3c8a0ae18210a0539c366 | /old programs/test1.py | 1bbe1e2678f8ca2f7f671457c29384c14ccc3660 | [] | no_license | itsdeepesh5/PythonProblems | 688ed9684045ab1d74c346e5683e8a05f6c7582d | c316637655a204a92c93839e4e1972db963e3b36 | refs/heads/master | 2020-04-23T05:14:40.314490 | 2019-02-15T22:04:25 | 2019-02-15T22:04:25 | 170,934,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import mysql.connector
from mysql.connector import Error
def connect():
""" Connect to MySQL database """
try:
conn = mysql.connector.connect(host='localhost',
database='sys',
user='root',
... | [
"noreply@github.com"
] | noreply@github.com |
eac51ba7939513e8781980ad7eff33ef416da53e | 365a8edd7ce051528d7d1c95949f346dd040e6ee | /images/beta/api/models.py | aa60f755b46bf7ea11649372a77c6a7cafdfcc22 | [] | no_license | alavarello/tp-redes | 4b773d62267f89ab8025bc7c796c437fda385b05 | 276dbb7e297e52f49858094a6c3b637e7486b067 | refs/heads/master | 2022-10-26T06:03:59.115403 | 2020-06-11T15:54:58 | 2020-06-11T15:54:58 | 270,426,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
def __repr__(self):
return '<User %r>'... | [
"alavarello@itba.edu.ar"
] | alavarello@itba.edu.ar |
26193cdf761f8077dc688f10883c353f61f3e148 | 07a585035614fd4ea7c34f471fc197562fb76a44 | /locust/test/mock_locustfile.py | f912e5eee49b6f220c6d4be6c0f58c79293b07af | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | voiapp/locust | e8a8bda4ad3a3428810c75eb0dfc12e31fdbe2a2 | 34cb6d1e0792a5ba4e1042a93ffb21cba87c00a8 | refs/heads/master | 2021-05-20T08:11:59.321737 | 2020-03-31T23:44:15 | 2020-03-31T23:44:30 | 252,186,479 | 0 | 0 | MIT | 2020-04-01T13:42:19 | 2020-04-01T13:42:19 | null | UTF-8 | Python | false | false | 1,224 | py | import os
import random
import time
from contextlib import contextmanager
MOCK_LOUCSTFILE_CONTENT = '''
"""This is a mock locust file for unit testing"""
from locust import HttpLocust, TaskSet, task, between
def index(l):
l.client.get("/")
def stats(l):
l.client.get("/stats/requests")
class UserTasks(T... | [
"jonatan@heyman.info"
] | jonatan@heyman.info |
7d3791445dfd1896e15d32f5c4c64df6ce6269f4 | 39c16220bbbac56a06c39ff05efc4d3260c75cca | /a_b_somadosquadrados.py | 76d68347b38f6677a3e0cb8bc9170f292f16ed5a | [] | no_license | ericklennon/Exercicios-resolvidos | dafa0ca585c9aa0e9af6b0ddc37082223afeb48e | 3e1d3d9a544d6826da5ef6296e4fc79354d32f9d | refs/heads/main | 2023-05-03T11:43:21.285197 | 2021-05-18T22:35:44 | 2021-05-18T22:35:44 | 368,680,948 | 0 | 0 | null | 2021-05-18T22:27:51 | 2021-05-18T22:24:40 | null | UTF-8 | Python | false | false | 233 | py | print('Seja bem-vindo(a)')
print('Vamos começar!')
a = float(input('Informe o valor de "a": '))
b = float(input('Informe o valor de "b": '))
hipotenusa = a**2 + b**2
k = int(hipotenusa)
print('O valor da hipotenusa é =', k)
| [
"noreply@github.com"
] | noreply@github.com |
ac571b5be106417bf78308ae66630111171b967a | 63b79eb44cf682ece74be1fc866f7651837db448 | /test/test_game_play_coordinates.py | c482bc9cac2940b0ad284f9d969ff2faa9d1ff13 | [] | no_license | bclark86/powerplay-py | c8cc4df8acd9ada91299706b7a7113ab9c963645 | 584d754629936a93d95157356ff806a5c68438dc | refs/heads/main | 2023-07-19T04:23:16.510338 | 2021-09-02T13:17:12 | 2021-09-02T13:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # coding: utf-8
"""
NHL API
Documenting the publicly accessible portions of the NHL API. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import powerplay
from powerplay.models... | [
"saiem.gilani@gmail.com"
] | saiem.gilani@gmail.com |
3628a8ce50f058c736fb039f85f5847d526b6eba | bd7b5a9908103656604169db275b0804ee536635 | /Fault_Toleraant_Replication_and_Consistency/src/tempSensor/tempSensor.py | 89483b833b149945a02efcf2bdf8e741bf5ff9c2 | [] | no_license | Odey/DOS | c4eae6c318c6b1b1838565e1b06dfc5dc4b7f5d0 | 4fb67d60a4149518bdcb8ed3b5b3bb4cd20e0949 | refs/heads/master | 2020-04-04T22:01:53.630627 | 2018-11-06T02:35:17 | 2018-11-06T02:35:17 | 156,307,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | #!/usr/bin/python
'''tempSensor.py: Returns the current temperature value to the Gateway on request from it. Pull Based.
Return types: float, int
'''
import xmlrpclib
import random
import socket
import sys
import threading
import time
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import S... | [
"noreply@github.com"
] | noreply@github.com |
0d57683a61dfaa651ed6bf5b91d90af7036cacd0 | f258338e5ffe7a9954572d917bf483d9bcd5852c | /Term-2/Project-2-RNN-Time-Series-Prediction-and-Text-Generation/my_answers.py | 13cf6de70a846e422dd7d259231316a483645349 | [
"MIT"
] | permissive | rayheberer/udacity-AI | 8826d0ef446580b847ba0e58e83f99c5b89e87fb | 60bc03477130ba4f37dcfd30737da0fd1632d85e | refs/heads/master | 2020-03-13T00:16:42.481077 | 2018-07-12T01:21:31 | 2018-07-12T01:21:31 | 130,883,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
import keras
# fill out the function below that transforms the input series
# and window-size into a set of input/output pairs for use with our RNN model
def window_transform_series(series, window_siz... | [
"ray.heberer@gmail.com"
] | ray.heberer@gmail.com |
c64c5449dc8fe3ced7cb038841a9b78bb23a72a9 | 5e5413977a65a2b44b9f0494864a7f1d863cedee | /tweety/src/tweety/accounts/models.py | f3eee341b4f3919ac23651dce1fc0a3e4773a90f | [] | no_license | tiwarianup/django-projects | ad7c627a6ea4620ca3d872bd20deb815f6b726ef | 8bafa582f25d6e3185540cf09becfafdda095489 | refs/heads/master | 2020-06-04T04:19:01.128465 | 2019-07-10T04:40:58 | 2019-07-10T04:40:58 | 191,869,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | from django.db import models
from django.conf import settings
from django.urls import reverse_lazy
from django.db.models.signals import post_save
# Create your models here.
class UserProfileManager(models.Manager):
use_for_related_fields = True
def all(self):
qs = self.get_queryset().all()
try... | [
"anup.tiwari39@gmail.com"
] | anup.tiwari39@gmail.com |
1b24ffede505ce8b2a302f8347e5af6d4abb194a | ff588c5b395c7d12171c4492d56d3ccc73f6c283 | /tsmsognScrapy/pipelines.py | 4b5f4a25d5d1ece24ab03c517adb5b7e51a3982b | [] | no_license | tsmsogn/scrapy_getting_started | c3c2db9c6c33083863c8486d655638e7ff4d4166 | 46ce687b8a440d5508ff2b35a42a3a3d332e6215 | refs/heads/master | 2021-05-11T16:20:34.911861 | 2018-01-17T01:16:24 | 2018-01-17T02:44:18 | 117,761,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class TsmsognscrapyPipeline(object):
def process_item(self, item, spider):
return item
| [
"tsmsogn@gmail.com"
] | tsmsogn@gmail.com |
f013d68d8e05bec898c19a70247a883399f8252b | 807bb7e63bfacb4582fa61e03ff0c34d23084d00 | /latihan02.py | 993c7098607ccb19782cbf5cb9ad86db00de1028 | [] | no_license | Ibadnf/latihan02 | 3551e840e6900137ef48c1c3bb15d6f2a2dff8f6 | 4482f21f85586db719a6af1aa7228556b44de103 | refs/heads/main | 2022-12-31T15:30:55.336436 | 2020-10-21T04:28:57 | 2020-10-21T04:28:57 | 303,573,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py |
number=1+1+2+3/4.0
print(number)
mod=10%3 # sisa dari pembagian 3
print(mod)
square=7**2 # perpangkatan
print(square)
helloworld="Hello"+" "+"World"
print(helloworld)
myName="Luke"
print(f"Hello, {myName}")
mylist=["Luke Skywlake","Anakin Skywlaker","Yoda","Padem"]
print(mylist)
print(m... | [
"ibaddilahnf@gmail.com"
] | ibaddilahnf@gmail.com |
82e92e8bdfc250134fffea8b3a0a788f2edb446a | 17c2a9e1de8615be1ec1c17a6ec12a4501f290aa | /jobparser/spiders/hhru.py | bd2485e1c1ef5acbccb50a557540fb72a32eeffb | [] | no_license | Belfi-Gor/data_mining | 7ca0a73e482c767d03b1c6a0f1913d7622d7df36 | 6bf9a5f8703e2d6ddf12ad9da6931fdf38794114 | refs/heads/master | 2020-07-24T23:15:38.101896 | 2020-01-10T09:38:26 | 2020-01-10T09:38:26 | 208,079,647 | 0 | 0 | null | 2020-01-10T09:38:28 | 2019-09-12T15:09:30 | Python | UTF-8 | Python | false | false | 1,125 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import HtmlResponse
from jobparser.items import JobparserItem
class HhruSpider(scrapy.Spider):
name = 'hhru'
allowed_domains = ['hh.ru']
start_urls = ['https://hh.ru/search/vacancy?area=113&st=searchVacancy&text=python']
def parse(self, response:H... | [
"belfi.dev@gmail.com"
] | belfi.dev@gmail.com |
235eb291a1c42d067f9cdaccc1d16d535d9e3e62 | f39e22eb902bf884fd3a862ef2def95b916f303d | /code.py | a6b946c0657dc5f66b02af9d019f0d2fa20aebff | [
"MIT"
] | permissive | TheHockeyist/TheHockeyistBot | eeeb8298ac3b0e43a6ade0e4d25114562c5bbc43 | 6a22caab3ea68f5b4cda085c3e1fe6a0fc090486 | refs/heads/master | 2021-01-19T10:52:08.044814 | 2017-02-27T20:50:47 | 2017-02-27T20:50:47 | 82,220,724 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # To be planned out.
# Ideas for what it should do, hmmm...
# Mathematical calculations, hockey statistics, I don't know...
| [
"noreply@github.com"
] | noreply@github.com |
a335f7cb8da78ddcf79d0b037399a66f51813b90 | 00aac96ce48372a6065551fb0922bb670b427987 | /half_random_forest/code/half_random_forest.py | 20a38fee49c75b2be76065183970f65077c6c1e4 | [
"MIT"
] | permissive | Niederb/python_machine_learning | c67709b8ef9204c295f769310935baf9cd1f3d43 | 8512f419c3b8f07ef0aa12aeaddabec5129d03cd | refs/heads/master | 2021-01-10T15:06:23.892598 | 2016-02-15T20:31:25 | 2016-02-15T20:31:25 | 47,146,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 30 22:22:33 2015
@author: thoma
"""
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.datasets import load_digits
from random import sample
from sklearn.ensemble import BaggingClassifier, RandomForestClassifier
from scipy.stats import m... | [
"thomas@niederberger.ch"
] | thomas@niederberger.ch |
44ac30f5c599cfbc4fe9fb1aa72957353874147a | 517cefe4090a96ff042046c165ae235e840712c8 | /task2/untitled.py | 5b716c95dadbb44d8366e936e113a87e974189fc | [] | no_license | az2181036/seclass | 19ba1e292627f2da578831a9aa777e97fc540d05 | 2c66dd710104f51f4128ac1107f3ac5b284a8882 | refs/heads/master | 2020-05-05T06:09:14.096570 | 2019-05-20T13:14:04 | 2019-05-20T13:14:04 | 179,777,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,298 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMessageBox
class Ui_MainWindow(object):
def se... | [
"xtu_fan@163.com"
] | xtu_fan@163.com |
e6a3c636ec00dbde2939e81839b5db363579020f | ae7c0f2ce24ee11be70b6514ed43b647a17cefff | /posts/admin.py | 3bf168e5e58edbd1cee32e3e862344db15bf7861 | [] | no_license | spinning210/dSite | f1480d6821b9d9637cfe4d245b6a484fb0a1350d | 745bad9ecc3e25e48f98caec7af70aeb42726241 | refs/heads/master | 2023-02-01T08:43:32.016324 | 2020-12-11T12:54:44 | 2020-12-11T12:54:44 | 309,000,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.contrib import admin
from .models import Location, Post
# Register your models here.
class LocationAdmin(admin.ModelAdmin):
list_display = ('id', 'name')
class PostAdmin(admin.ModelAdmin):
list_display = ('subject', 'content', 'author', 'location')
exclude = ('create_date', )
#fields = ('s... | [
"spinning210@gmail.com"
] | spinning210@gmail.com |
7b3e65bcbef044c3c760b54c83f76f8d1890daac | 9d5a2a3971b6248844bd4e0e3905273e59ef8fb8 | /02 BuiltIn Functions/itertools_start.py | dd16551a4f212ce0b432c7322675874e0f5b93f4 | [] | no_license | jssoni14/AdvancedPython | 7c9815a1a91717f47f70cf8cf37ab24b437f424f | 5c6c16df9db72ab15898bab424dec6bc65a91575 | refs/heads/master | 2023-06-03T10:54:16.687348 | 2021-06-11T21:24:17 | 2021-06-11T21:24:17 | 375,839,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # advanced iteration functions in the itertools package
import itertools
def testFunction(x):
return x<40
def main():
# TODO: cycle iterator can be used to cycle over a collection
seq1 = ["Joe", "John", "Mike"]
cycle1 = itertools.cycle(seq1)
print(next(cycle1))
print(next(cycle1))
print(n... | [
"jsoni14@gmail.com"
] | jsoni14@gmail.com |
c60e78dfe5a97c9bb01f35d199028d137100d2ee | 5a86ddc489b786f13ba11f0eddabbc0bbb94bfca | /template.py | 362e56931545c46e2888a9a12bf12c6094447df1 | [
"MIT"
] | permissive | tobiaslidstrom/CalibrePathTP | 86ba20ca2b541e9c781881695e02c223b38eebe3 | 9d78a9d4160ecfa86081212af733745dfac113c0 | refs/heads/main | 2023-02-17T20:55:40.768206 | 2021-01-15T19:59:24 | 2021-01-15T19:59:24 | 329,997,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | program:
tags = sublist(raw_list("tags", ","), 0, 1, ",");
author = sublist(raw_list('authors', ", "), 0, 2, ", ");
series = strcat(field("series"), " (", field("series_index"), ") - ");
title = re(field("title"), ":", " -");
if field("series") == "" then
series = ""
fi;
title_trim = strcat(substr(title, 0... | [
"noreply@github.com"
] | noreply@github.com |
65d5b9bf0861114c0d692e35fa09b9aabbd749b3 | 6483f7f3989685a8dba5a5d8b670c4e4d66bd295 | /basic_system/views.py | 05a8d8360cbcc440ca61851291f650838ca3e6ec | [
"MIT"
] | permissive | JagerCox/basic-project-django2-channels2-gunicorn-dahpne | 531ec1f818ce78be8a1331cc53aa94b5961629b5 | 5329a06d251706f6f02cf202dff04959982d8214 | refs/heads/master | 2020-05-06T13:30:26.095687 | 2019-04-08T12:11:17 | 2019-04-08T12:11:17 | 180,140,830 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import json
from django.shortcuts import render
from django.utils.safestring import mark_safe
def index(request):
return render(request, 'basic_system/index.html', {})
def room(request, room_name):
return render(request, 'basic_system/room.html', {
'room_name_json': mark_safe(json.dumps(room_name))
... | [
"jagercox@gmail.com"
] | jagercox@gmail.com |
7a44bea4a795b724b445971f61de8cd2ad70e5d8 | d88a920852df1d7dd7c7cfde00785021f0f4ab34 | /config/settings/test.py | 000ec7c53dc8061794e6d3ceb82289d37908a2cc | [
"MIT"
] | permissive | DavidLSO/weather_tracker | 891f24fd512941957f17e8f625d8ad3e16fa992a | 74df430341b0415f476f92aaf46ecd6c7e9f37f1 | refs/heads/master | 2022-12-11T18:23:19.572732 | 2019-05-26T17:27:23 | 2019-05-26T17:27:23 | 188,711,793 | 0 | 0 | MIT | 2022-11-22T03:51:29 | 2019-05-26T17:20:32 | Python | UTF-8 | Python | false | false | 2,044 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"david.levy@joyjet.com"
] | david.levy@joyjet.com |
b86346c7eb137597a3ace943be68d03eff5a74b1 | 0018a062b99c2154de254d2ad9da81125ae7bbe0 | /face_cluster.py | 7da1ef4f6f701275aec513b7e213218d29c13653 | [] | no_license | kesuosi/face_cluster | 971f042f6573641e69ce3752dab67d4444b96a63 | f7e90d658b3d264b8e8118c133b22c74a5b37edf | refs/heads/master | 2020-03-21T04:57:15.250329 | 2018-06-21T07:48:29 | 2018-06-21T07:48:29 | 138,136,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | # coding: utf-8
"""
@author: xhb
"""
import sys
import os
import dlib
import glob
import cv2
import time
# 指定路径
current_path = os.getcwd()
model_path = current_path + '/model/'
shape_predictor_model = model_path + '/shape_predictor_5_face_landmarks.dat'
face_rec_model = model_path + '/dlib_face_recognition_resnet_mod... | [
"kesuosi@126.com"
] | kesuosi@126.com |
f559375572f1a380d65ced85f30cdcdc69e0c335 | af8adcdab990ad84f5ac88b321c0e3fc03ddb247 | /079_Word_Search.py | 2156e8d40f1113f9a849f98fc57815632c09f523 | [] | no_license | xudong-sun/leetcode | eafe8bf0336cf3766a0e49230881bae24f8dbb6f | 6f41bc3915881e3c0431550f497b297b7b5a38fa | refs/heads/master | 2023-06-12T16:48:57.449716 | 2023-06-08T06:05:31 | 2023-06-08T06:05:31 | 88,631,317 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | '''
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once.
For example,
Given board =
[
['A','B','C','E'],... | [
"sunxudong@pku.edu.cn"
] | sunxudong@pku.edu.cn |
f2fb741ac114ed73288bcee38cb59153a3b97a0c | a41c1a198a74536be3e46be8951f8a7ef6b8130a | /portal_radicaciones/migrations/0012_auto_20201002_1818.py | 6e74ca5179b2fd0df70159174885c97b6a158b61 | [] | no_license | ricardoqp1997/FamedicPortal | ae54dea15865da942cf63069fd467eb93ab2fbd0 | 47934f7a20e782d2287c7ca153d6cf2fa0f425e6 | refs/heads/master | 2023-07-28T10:02:32.009703 | 2021-09-15T14:33:09 | 2021-09-15T14:33:09 | 286,587,802 | 0 | 0 | null | 2020-12-10T21:52:27 | 2020-08-10T22:05:18 | HTML | UTF-8 | Python | false | false | 775 | py | # Generated by Django 3.0.3 on 2020-10-02 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal_radicaciones', '0011_auto_20201002_1053'),
]
operations = [
migrations.AddField(
model_name='locacion',
name=... | [
"69210936+ricardoqp1997@users.noreply.github.com"
] | 69210936+ricardoqp1997@users.noreply.github.com |
8cc7a154f4e03c2ce422a55ad82bfa3360792052 | 43b61fd5c3a041c861c29604ff26aac716c04d83 | /intro-dl/introdl.py | 59104fe3d34fd0330100bf7cf5410aa81ae210ef | [] | no_license | ENSCMA2/linghacks-2019-workshops | 126baa3f8082b6f0ccc18e612305f9c6e63b14d0 | d05f538c17364450fbab55d8addd18b5a225d333 | refs/heads/main | 2021-07-08T12:01:51.860264 | 2020-08-23T23:16:15 | 2020-08-23T23:16:15 | 178,033,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | import numpy
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers.embeddings import Embedding
from keras.preprocessing import sequence
import tensorflow
# load the dataset
top_words = 5000
(X_train, y_train), (X_test, y_test)... | [
"karina.halevy@gmail.com"
] | karina.halevy@gmail.com |
a28149614442929fb3eaa922c7eb04596d00b89a | 7a724badef6a881d63d7692de6a7b94daaf820be | /counting.py | 3a6f774c02a3340d04722ad0f356fb809ee5d7be | [] | no_license | mirshahzad/python-basic | aa19641140e10e6be88944c81c927410ffc23759 | 1552be46b5890c9976fad43dba007410396ad92a | refs/heads/master | 2022-10-24T18:13:58.938338 | 2020-06-13T09:14:12 | 2020-06-13T09:14:12 | 255,885,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | current_number = 1
while current_number <= 5:
print(current_number)
current_number += 1 | [
"noreply@github.com"
] | noreply@github.com |
64bbc4b3a0a65ec19bda0ca7856ad6ce2c7ad637 | 88c1f9ccb62e91d6b0574bcde1043921bdeb0126 | /test_utilities/src/d1_test/mock_api/get_system_metadata.py | 6418ea795f12a47d1fc3fe6f94c299215b30e1fb | [
"Apache-2.0"
] | permissive | jevans97utk/d1_python | 83b8de8780287c655779844f367b9189413da074 | 3ac4d4f3ca052d3e8641a6a329cab526c8ddcb0d | refs/heads/master | 2020-05-21T01:16:50.677816 | 2019-04-22T16:09:44 | 2019-04-22T16:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | [
"git@dahlsys.com"
] | git@dahlsys.com |
00b93fc5791fa20e9c520adcd54c23edeb92cc4d | 67663fe1791aacea412f8895edc3c49450761daa | /venv/Lib/site-packages/ctree/simd/types.py | b0edf994503b140dadb74c5629ba86edbdc41b36 | [] | no_license | devvirus/CsvToJson | 090be750cebdc0b62c68038c1c2843aee4c353e6 | 4a6d84e60b34a782475a2f23adf2a9bbeae8f4f3 | refs/heads/master | 2022-12-01T18:14:25.486904 | 2020-08-12T10:51:42 | 2020-08-12T10:51:42 | 286,987,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from ctree.types import CtreeType
class SimdType(CtreeType):
"""Base class for all SIMD Types."""
def codegen(self, indent=0):
from ctree.simd.codegen import SimdCodeGen
return SimdCodeGen().visit(self)
class m256d(SimdType):
pass
| [
"prateeksten@gmail.com"
] | prateeksten@gmail.com |
4c082872c00e2802c6747f84f4f54edfa26e02e0 | 2800dbea417b57aab9277dc7ddc86f8eff571b37 | /streamparse/cli/logs.py | a2a17584fcb2d788e8af8dcaebe471cdfed6f2a2 | [
"Apache-2.0"
] | permissive | gchiam/streamparse | c439f7251942d3544c1b35bb68eb5e05b2433b48 | 79d824ffedfdf32865a09d3828b9f943546ac514 | refs/heads/master | 2023-01-28T04:09:51.001040 | 2015-12-07T01:01:27 | 2015-12-07T01:01:27 | 47,520,791 | 0 | 0 | Apache-2.0 | 2023-01-18T22:56:48 | 2015-12-07T00:56:01 | Python | UTF-8 | Python | false | false | 41 | py | # XXX: Add suparser_hook and main method
| [
"hodges.daniel.scott@gmail.com"
] | hodges.daniel.scott@gmail.com |
052bcde8f4d4a4f9c5fc05536d70f9ec4edf3900 | 05ed1cd79adb6001928cbb88bf8181a7bc7c53c6 | /Chapter6/1-text-read.py | 54f120189e3074f3e61c6869f095666f4bf2cbfc | [] | no_license | wangying2016/Web_Scraping_with_Python | 7da07923fd98759772f022625d380113a6319d9e | 75b8c61273d3a43976dca7dbf3b53084c6c929bf | refs/heads/master | 2021-08-23T08:26:10.615460 | 2017-12-04T09:15:42 | 2017-12-04T09:15:42 | 107,662,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from urllib.request import urlopen
textPage = urlopen('http://www.pythonscraping.com/pages/warandpeace/chapter1.txt')
print(textPage.read())
| [
"wy867504146@outlook.com"
] | wy867504146@outlook.com |
ece8d0af3727dc49722e10f2dff6e19722cb6b8d | 141e73826ed5bed9caab23e7a2a5a49cfa184715 | /LearningBornschein/mca-genmodel-test/rf-learning/params-20x20-dog/mca-20-0500-H12.py | 9dad02afdc5612779dac3be859fd79fec669037e | [] | no_license | haefnerlab/LIF_Sampling_Project | d407a8e8dac73d82da4f46d1ae204f033ffdb876 | e6092f6c7539564f68826d689c4170633956f5dc | refs/heads/master | 2023-05-07T11:09:56.605722 | 2021-05-27T03:51:41 | 2021-05-27T03:51:41 | 371,237,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # -*- coding: utf-8
#
# LinCA run for the MCA/BSC Journal Paper
#
from __future__ import division
# Training-data
data_factor = 1.
datafile = "../data/patches-20-dog.h5"
N = 100000
# Model to use
from pulp.em.camodels.mmca_et import MMCA_ET
model_class=MMCA_ET
# Number of hidden causes
H = 500
# Which parameters s... | [
"ankanichattoraj91@gmail.com"
] | ankanichattoraj91@gmail.com |
882db86727840e2fb056a21c2c18c7845a1ccd74 | 4eac4124ea5d204a3c3026be122f8fe1e18812f5 | /tests/azure_upload.py | 34565eb7e65007f3032e251372294ae1ce179e9b | [] | no_license | webclinic017/Airflow_DAG | 74026d0f661944e5b7c3ba75c50cece1396a25fc | 1af39904ed1429ff1dce24f122343d5722e41f03 | refs/heads/master | 2023-08-03T11:33:02.474432 | 2021-09-16T05:07:54 | 2021-09-16T05:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | from pyspark.sql import SparkSession
from pyspark.sql.types import StructType, StructField, DateType, IntegerType, DecimalType
# Create Spark Session
spark = SparkSession.builder.master("local").appName("azure_upload").getOrCreate()
# Set up access key for Azure blob storage
sc = spark.sparkContext
sc._jsc.hadoopCo... | [
"rafael.roano@gmail.com"
] | rafael.roano@gmail.com |
1d342596a3c2b5fe7b4c0f02b71440fa4bb49c42 | 3e19e9f7d1a052f15bb6e9aef7db9a1fc464480f | /ScrapyProject/tiki/tiki/main.py | 7867b9a670386b5f62f0aa1c2d1e74723e5581cb | [] | no_license | Jamie33/learngit | b690ff18e3924e10eee9d7281bf8e0ea4868eccc | 063c9af279a9f7374209d08d284f8a161c76d80c | refs/heads/master | 2023-08-11T19:21:23.782192 | 2023-08-11T05:22:56 | 2023-08-11T05:22:56 | 121,004,322 | 15 | 5 | null | 2023-02-16T01:27:32 | 2018-02-10T10:00:46 | Jupyter Notebook | UTF-8 | Python | false | false | 613 | py | from scrapy.cmdline import execute # 调用此函数可以执行scrapy的脚本
import sys
import os
# 用来设置工程目录,有了它才可以让命令行生效
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# os.path.abspath(__file__) 用来获取当前py文件的路径
# os.path.dirname() 用来获取文件的父亲的路径
# 调用execute()函数执行scarpy的命令 scary crawl 爬虫文件名字
#execute(['scrapy... | [
"452070961@qq.com"
] | 452070961@qq.com |
5e62e5fca95e72c565b182146721fc4664fbc24e | 65df22b4a43adff0db0ba4cd80d875317c7a2f85 | /backend/le20_dev_6236/settings.py | caf138510a9bebc4dd104be49b365755a9c597ec | [] | no_license | crowdbotics-apps/le20-dev-6236 | b4cdc066fcd4751acd5068d54b46e14c939c0259 | 792f7bfa8cc92782c89023bbd1bf7691f8ee77b9 | refs/heads/master | 2022-11-12T21:03:47.778993 | 2020-06-25T10:01:54 | 2020-06-25T10:01:54 | 273,238,723 | 0 | 0 | null | 2020-06-25T10:01:56 | 2020-06-18T12:57:59 | JavaScript | UTF-8 | Python | false | false | 5,723 | py | """
Django settings for le20_dev_6236 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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
064343a96df7219bc7cba517033e35fe1defd3ef | a01c25608188e2bbb4ac3da8b8695fbc69946d56 | /uptodate/card.py | 8f5c06c23409b4b01994bc886dc37398975f114c | [] | no_license | wo0lien/ppc | a83ed1b7cfd606adfa060797c79a0493bffb446f | c3d112b0bc5e2d35ff94c2532e08425f2ceb3bf0 | refs/heads/master | 2020-09-30T13:40:43.198773 | 2020-01-21T14:17:33 | 2020-01-21T14:17:37 | 227,298,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # -*-coding: utf8-*-
class GameCard:
"""
La classe gamecard permet le transport facilité des données entre les threads client et displayer
"""
def __init__(self, color, nb):
"""
Constructeur iinitialisant une nouvelle carte a partir de 2 parametres
Parameters:
color ... | [
"tom.sampic@insa-lyon.fr"
] | tom.sampic@insa-lyon.fr |
73d61e85cc20a0f7345e4c42d7e577ee78cbcc65 | dce89ac52c2b64ae8e3310156c540583c3b617a8 | /hw18/RunDecisionTreeRegression.py | c21e5dace251f5f22c420cb19ff26322888628a2 | [] | no_license | Xi-Plus/NKUST-Parallel-Processing | b07c6f307e7619bd22969db9af505ef4589bc8d5 | 450881a20c17fef4ca7b01399055f5d7c5cd52b9 | refs/heads/master | 2022-11-08T21:12:26.767939 | 2020-06-28T14:26:30 | 2020-06-28T14:26:30 | 259,319,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,060 | py | # -*- coding: UTF-8 -*-
import findspark
findspark.init()
import sys
from time import time
import pandas as pd
import matplotlib.pyplot as plt
from pyspark import SparkConf, SparkContext
from pyspark.mllib.tree import DecisionTree
from pyspark.mllib.regression import LabeledPoint
import numpy as np
from pyspark.mllib.... | [
"huangxuanyuxiplus@gmail.com"
] | huangxuanyuxiplus@gmail.com |
fde5e4450e2ac92a400a65b989d74f1f88271ff8 | e3a4adddc08f0006c679386ec74163d8c24ec5dd | /bipedal/bipedal.py | 5a0da03a160f15cbb4b05db94b49cf3f9b0b18af | [
"MIT"
] | permissive | anetczuk/pybraingym | 1acb8108ec16ac8fdb2545689addfe589bc30ae0 | 4f930021d7802e88c75a1a0aed135dd4de66cc1b | refs/heads/master | 2020-06-23T04:11:51.252106 | 2019-08-12T23:17:11 | 2019-08-12T23:17:11 | 198,507,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!/usr/bin/env python3
import gym
env = gym.make('BipedalWalker-v2')
for i_episode in range(100):
observation = env.reset()
for t in range(10000):
env.render()
print(observation)
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
if d... | [
"anetczuk@o2.pl"
] | anetczuk@o2.pl |
0ff8ef926e518fe014f3efb91f0978235d331d59 | 71894f980d1209017837d7d02bc38ffb5dbcb22f | /multi/devicePresenseAlert/homeassistant/helpers/location.py | eb7b469a19664e6b201c7c9af0a84d43f17c0f73 | [
"MIT"
] | permissive | masomel/py-iot-apps | 0f2418f8d9327a068e5db2cdaac487c321476f97 | 6c22ff2f574a37ba40a02625d6ed68d7bc7058a9 | refs/heads/master | 2021-03-22T04:47:59.930338 | 2019-05-16T06:48:32 | 2019-05-16T06:48:32 | 112,631,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | """Location helpers for Home Assistant."""
from .typing import Sequence
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE
from homeassistant.core import State
from homeassistant.util import location as loc_util
def has_location(state: State) -> bool:
"""Test if state contains a valid location.
... | [
"msmelara@gmail.com"
] | msmelara@gmail.com |
1681288f44cba226e3a4e72dd23a6e23b719d69e | e34ba3f00ca72e26640c4fe030670b691026f5e3 | /Game.py | 129fb184d45b2d540af273b5f86c311fcf6e2c24 | [] | no_license | ytong3/casino-simulation | 5cb0b1aeca7ca444816a903f976702c5c15f28e7 | c8d814cd1090c52dad326925c1358044b1400ded | refs/heads/master | 2021-09-04T07:35:19.583367 | 2018-01-17T03:32:07 | 2018-01-17T03:32:07 | 116,899,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from Outcome import Outcome
from Bin import Bin
'''
Responsibilities:
1. get bets from Playe
2. spin the Wheel
3. collects losing bets
4. pays winning bets.
'''
class Game:
def __inti__(self):
five = Outcome("00-0-1-2-3", 6)
zero = Bin([Outcome("0",35), five])
| [
"ytong3@utk.edu"
] | ytong3@utk.edu |
72d5838be1fe45e1f179972b1c3bc7d7b576c40d | 145b3dda3854f9adfe3f9628b82006994edb842e | /server.py | a3f60137ee8e9cc7f8a8ecb577530fb82af411b6 | [] | no_license | dotuan1120/pi-surveillance | 038f92cc2c939fb43233c1377e9eb540f5ed5b44 | 78c3c3ebb0fab64b1914df051686420d36331e07 | refs/heads/master | 2022-12-21T19:37:09.163411 | 2020-10-01T00:40:53 | 2020-10-01T00:40:53 | 299,993,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,251 | py | import time
import pyrebase
import os
from imutils import build_montages
import datetime
import numpy as np
import imagezmq
import argparse
import imutils
import cv2
import shutil
# convert the video from avi format to mp4 format
def convert_avi_to_mp4(avi_file_path, output_name):
pro = os.popen(
"ffmpeg ... | [
"doanhtuan1120@gmail.com"
] | doanhtuan1120@gmail.com |
e3ddd256f3d55736325b6627069fd7ff399b4526 | 5996c22ae79075dd9b2e583a5f5ffa18bdde6a2d | /code/accelmotor.py | 1120dfec136a789f9c41b487ad365c63b72dcee7 | [] | no_license | hnovak94/SelfBalancingRobot | a8647e2cd49bf67610f9b5d92ab77f1261b5e541 | a11cec2cf5c6bf25cc13ebee5878de716f35b34d | refs/heads/main | 2023-05-24T07:27:05.041427 | 2021-06-09T16:08:48 | 2021-06-09T16:08:48 | 335,387,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | import adafruit_lsm303
import board
import time
import pwmio
import busio
i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_lsm303.LSM303(i2c)
motorA1 = pwmio.PWMOut(board.D13, frequency=5000, duty_cycle=0)
motorA2 = pwmio.PWMOut(board.D12, frequency=5000, duty_cycle=0)
motorB1 = pwmio.PWMOut(board.D2, frequenc... | [
"56082415+hnovak94@users.noreply.github.com"
] | 56082415+hnovak94@users.noreply.github.com |
4ca5a17410e4aa40109deb8f261fe69e84e5f22e | 0021a45bf27dde70cfa54bf1df9d51f27b6be076 | /python/huffman-compress.py | d1a1a77bf9c919459640c14ff996763d250d7f1f | [
"MIT"
] | permissive | GraphicYan/Reference-Huffman-coding | e74a4e65edb413afa59ff5e44ba47a2d2bdbe546 | bc286358d24b81cd06287b3b062da54388e2ee67 | refs/heads/master | 2023-02-12T19:44:08.501375 | 2020-04-14T03:19:24 | 2020-04-14T03:19:24 | 350,271,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | #
# Compression application using static Huffman coding
#
# Usage: python huffman-compress.py InputFile OutputFile
# Then use the corresponding huffman-decompress.py application to recreate the original input file.
# Note that the application uses an alphabet of 257 symbols - 256 symbols for the byte values
# and 1 s... | [
"me@nayuki.io"
] | me@nayuki.io |
fd9ed163d4c9c80a30e6f861cbd14e49ab3cf4ad | f54070cd3048a3645cb25f301592a904d387a1c9 | /python_prgrams/testpython/range.py | bbf0f3ea21df573de2ae047ecff3657b38dcb360 | [] | no_license | mak705/Python_interview | 02bded60417f1e6e2d81e1f6cde6961d95da2a8e | aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d | refs/heads/master | 2020-03-22T21:03:34.018919 | 2019-11-15T08:51:34 | 2019-11-15T08:51:34 | 140,653,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | num=list(range(10))
print num
| [
"mak705@gmail.com"
] | mak705@gmail.com |
d43d96f3a9130aae70c839b3190ffb085dd7ca71 | 3a2fde1c89ecea37cc9476d017478933e44f44d2 | /insight_testsuite/temp/src/bi_antifraud2.py | 225d0a70699265095aa8411490bb9cfeb31fb8f6 | [] | no_license | Kebniss/Insight-code-challenge | 70715b1e0a7f9541df90f5beba6d943f21c0cc4a | e3c58de0eda297b79aca81c525e284cbdd98283a | refs/heads/master | 2020-12-24T10:40:22.273868 | 2016-11-11T06:57:09 | 2016-11-11T06:57:09 | 73,139,660 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | import os
from features import *
from Graph import Graph
import logging
cur_path = os.path.dirname('__file__')
logger = logging.getLogger()
hdlr = logging.FileHandler(os.path.join(cur_path, 'bi_antifraud2.log'))
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
hdlr.setFormatter(formatter)
logger... | [
"ludovica.gonella@gmail.com"
] | ludovica.gonella@gmail.com |
3d37ae217173ffd7aa941fb1ccd8e907bdd53baf | a3fb024bd084405ea56d7aaba1a2a9b77899178a | /u2net_portrait_demo.py | 81d8feb24d319b33a26bc37018acb55d677baee4 | [
"Apache-2.0"
] | permissive | actbee/U-2-Net | 6c7d4b79e368735d2c23b10b595e36cf3c262d8c | 680f9402857837b51663fb502a1f149f7daaf256 | refs/heads/master | 2023-01-23T05:03:38.460443 | 2020-11-22T08:10:01 | 2020-11-22T08:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | import cv2
import torch
from model import U2NET
from torch.autograd import Variable
import numpy as np
from glob import glob
import os
def detect_single_face(face_cascade,img):
# Convert into grayscale
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# Detect faces
faces = face_cascade.detectMultiScale(gr... | [
"xuebin@ualberta.ca"
] | xuebin@ualberta.ca |
0d023197183142a0da5adb4fbb0229f4429a8fe4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/48/usersdata/122/16246/submittedfiles/estatistica.py | 660f88790c989a5091f5670efe17839c069c155c | [] | 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 | 853 | py | # -*- coding: utf-8 -*-
from __future__ import division
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def des(lista):
a=0
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a4c9a10fbe13412bf90987b9c58ecd040195d3d8 | f083fc8981e55565ce7696ec0a875646784db8de | /tests/test_tests.py | 69e3de77a215839b86283efc83573aeb0753c84a | [] | no_license | virginiais4lovers/blumpkin | d82887071f4b8f9cf5943b9cacab27e2ce7e1460 | 049f87fe0aeb79d0a39d94c72254592b15e8e5f6 | refs/heads/master | 2020-04-01T18:07:15.174452 | 2015-01-06T21:24:39 | 2015-01-06T21:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from __future__ import unicode_literals
import mock
from . import TestCase
from blumpkin import test
class TestTestCase(TestCase):
@mock.patch('blumpkin.test.subprocess')
def test_write(self, pytest):
result = test.run(
'blumpkin', ('xml', 'term-missing'), 'tests/'
)
se... | [
"marshall@balancedpayments.com"
] | marshall@balancedpayments.com |
caeade0a67e84ba808da9bbf6202788f0039a0a0 | 532dc8a48406f6e428990eff9d356b24307f3c43 | /NER_bert.py | f9b5a97f97c6ff5a9978a55958aa953d1692a53c | [] | no_license | yexing99/BERT-NER | c5f7bea705b08f3f4e752d8e171458b3f536f30a | a0c2ebb5cd0ad5b3301ceb1270ccb59ca0121a27 | refs/heads/master | 2020-05-07T10:39:32.627827 | 2019-04-10T00:57:12 | 2019-04-10T00:57:12 | 180,426,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,472 | py |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
from tqdm import tqdm, trange
data = pd.read_csv("./data/NER/ner_dataset.csv", encoding="latin1").fillna(method="ffill")
data.tail(10)
# In[2]:
type(data)
# In[3]:
class SentenceGetter(object):
def __init__(self, data):
self.... | [
"xing_mayye@hotmail.com"
] | xing_mayye@hotmail.com |
eeaf45bf3db5b3349a80e28f68148f462f520202 | 698512c01048fcefcc14583089ef2e8c7962923a | /python_work/Chapter_7/rollercoaster.py | 3b4483f592aa7d6e2e7e8cc4bc95115eecb7f32a | [] | no_license | Miguel-Tirado/Python | c76cb9846c9a2b9c6b3c4827cdb95042f4e5d447 | 227def380c64095c3040c848aa035ac46d26d079 | refs/heads/main | 2023-04-16T12:15:03.301275 | 2021-04-30T16:39:48 | 2021-04-30T16:39:48 | 346,443,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | height = input("How tall are you, in inches? ")
height = int(height)
if height > 48 :
print("\nYou're tall enouph to ride!")
else:
print("\nYou'll be able to ride when you're a liitle older.") | [
"miguel.e.tirado11@gmail.com"
] | miguel.e.tirado11@gmail.com |
a89afd1288717c32ee23e15ec54d8047335423b4 | 8ff6c3e513e17be6c51b484bed81d03150bdd175 | /2013-04-analytic/part1/ex471a.py | 24bddb89fc53b92d0344be1df0f62932c9d0bc86 | [] | no_license | ricbit/Oldies | f1a2ac520b64e43d11c250cc372d526e9febeedd | 2d884c61ac777605f7260cd4d36a13ed5a2c6a58 | refs/heads/master | 2023-04-27T20:35:19.485763 | 2023-04-26T04:45:44 | 2023-04-26T04:45:44 | 2,050,140 | 40 | 8 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import math
def s(n):
k0 = n**(2/3.)
ans = 0
for k in xrange(0,int(k0)):
ans += k/float(n)*math.exp(-k*k/2.0/n)
return ans
for i in xrange(6):
print s(10**i)
| [
"bluepenguin@gmail.com"
] | bluepenguin@gmail.com |
76348930d71974586001b6d3a68f23ce2df2995a | b313f1b7b3ae2162a44f416baba8357f0d052003 | /papers/GRN-NER/data_format_util.py | aa045957029e56d2566ef406271fb1a58df92eb8 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/vert-papers | e7cae3dc790c01447a48caa0456f555120f20e84 | c47d103d872cf3db2859410211a6083e0d0caf63 | refs/heads/master | 2023-08-18T19:42:21.218463 | 2023-08-16T02:21:25 | 2023-08-16T02:21:25 | 198,793,756 | 248 | 93 | MIT | 2023-08-16T02:21:27 | 2019-07-25T08:48:16 | Python | UTF-8 | Python | false | false | 2,161 | py | import re
def digit_to_zero(s):
"""
checked
Replace every digit in a string by a zero.
"""
return re.sub('\d', '0', s)
def iob1_to_iob2(tags):
"""
checked
Check that tags have a valid IOB or IOB2/BIO format.
Tags in IOB1 format are converted to IOB2.
"""
for i, tag in enume... | [
"chenhui@chenhuideMacBook-Pro.local"
] | chenhui@chenhuideMacBook-Pro.local |
6c11072b4da33d33523686ffbec02ddab50fc37f | 4e3d2a4198b380136a9ecc3dfc57ba7ab446b1cd | /serctl/ctlser | 74c23e941255257323d36ef885a63cd66491d881 | [] | no_license | BackupTheBerlios/ser | f14376c2cbf596c5d1cced150f2c9d89590a77f9 | ebb6af399af6a0501b3b2e29b0b479106d27e1ae | refs/heads/master | 2020-05-18T16:10:14.236498 | 2011-02-07T13:13:37 | 2011-02-07T13:13:37 | 40,253,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
#
# $Id: ctlser,v 1.1 2006/01/18 17:49:20 hallik Exp $
#
# Copyright (C) 2005 iptelorg GmbH
#
# This is part of SER (SIP Express Router), a free SIP server project.
# You can redistribute it and/or modify it under the terms of GNU General
# Public License as published by... | [
"hallik"
] | hallik | |
d815646acb16240a2be7587ebb21ba0eb184e25e | 55d6f893988cb04f6abe007a2f701101b264323a | /mysite/mysite/article/migrations/0004_auto_20190324_1906.py | 5c443df00bbe7ed093f467308343b1a8a16e24b3 | [] | no_license | 371524zhouha/pythondjango_zh | 8488cf5bef98a5d0fc63ad9c56e34f8a813794cb | 468af9ca98b8e14a8c1997ab186be2f6db314c47 | refs/heads/master | 2020-05-24T09:31:58.029873 | 2019-05-17T12:21:25 | 2019-05-17T12:21:25 | 187,208,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # Generated by Django 2.1.4 on 2019-03-24 11:06
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('article', '0003_auto_20190323_1443'),
]
operations = [
... | [
"920290897@qq.com"
] | 920290897@qq.com |
4d4eea725222a65903abd31a019b38dc94824931 | ee8c9fc247f66a661913b6e89d2abc83f73ced88 | /crawdatatxt.py | 09fd86192bef8354120fbb7fead13a7b1ea6160c | [] | no_license | nguyendong07/crawldata | 8d721d17b5da907db4e9696563b44a06b02920dd | e9366db70959f3f58d36252065c6216d7ddc2cd1 | refs/heads/master | 2023-06-01T05:00:13.673440 | 2021-06-29T03:05:28 | 2021-06-29T03:05:28 | 353,557,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,025 | py | # import textwrap
# import requests
# import json
# import pyodbc
# import pandas as pd
# import urllib
#
# # headers = {'CLIENTAPIKEY': '5ce554c2-1332-481e-97c2-5856d9612433'}
# # a = 0;
# # detail_data = []
# # all_cover_url = []
# # # for x in range (int(22199/20)):
# # URL = "https://api-smartapp.namdinh.gov.vn/api... | [
"nguyenvudong7111999@gmail.com"
] | nguyenvudong7111999@gmail.com |
9fd1a14ff5d323874f4c67fbfadaa56f0d311a2b | 1a0ee89a93d0699ce3352ed228d68f414e85fc3a | /app.py | 5b0b6b1e45d1b9ddbd3ee84078e2e68f14f7f6c7 | [] | no_license | herick024/webapp | f2a15807060b6b08e0982de971de930b187df4d7 | 479473f13ed0ea5a64bec7110806bd1cabdcc9e7 | refs/heads/master | 2020-12-24T05:51:25.179751 | 2016-11-11T04:33:57 | 2016-11-11T04:33:57 | 73,430,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import web
render = web.template.render('views/')
urls = (
'/','index',
'/about','about'
)
class index:
def GET(self):
return render.index()
class about:
def GET(self):
return about
if __name__ == '__main__':
app = web.application(urls,globals())
w... | [
"noreply@github.com"
] | noreply@github.com |
2daf908821f129104172103afa5f796ce87117f6 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_cmp-4.py | d5784ad9b7a06692f4f8615dcc4a2eadc7e42809 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | $TypedVar = "Hello"
b:str = "World"
c:str = "ChocoPy"
def eq(a:str, b:str) -> bool:
return a == b
def neq(a:str, b:str) -> bool:
return a != b
print(eq(a,a))
print(eq(a,b))
print(neq(a,b))
print(neq(b,b))
print(eq(c,a))
print(neq(c,b))
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
cb62d0ce8b32f6c17d8835d07e0b8e1216e6e29e | e25d6f06e927af969c023520710533b3da9e930f | /main.py | cd34cb999a0eb1313a2aa6524f10b2609905d871 | [] | no_license | mahajanyogita/Tic-Tac-Toe-Game | 448c563687739f55fdc0eee3ac752b22aebe980d | 4873af4dc8094deac2325a06fb9d6df5b1bcc646 | refs/heads/main | 2023-05-28T06:00:15.490215 | 2021-06-08T07:34:33 | 2021-06-08T07:34:33 | 374,921,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | import board_formation
import insert_inboard
import check_winner
print("Lets Play TIC TAC TOE!\n")
while True:
player1 = input("Enter Player 1 NAME: ")
char1 = input("Enter character You Want (O/X) : ")
player2 = input("Enter Player 2 Name: ")
if char1 == 'X':
char2 = 'O'
else:
... | [
"noreply@github.com"
] | noreply@github.com |
5386f46ab977c23908fb45a28b1bce3084a6c75d | 167face5e34f69ba36b8a8d93306387dcaa50d24 | /sorted.py | 124b09ab9a5a2973c794325b4581657815c54410 | [] | no_license | william-cirico/python-study | 4fbe20936c46af6115f0d88ad861c71e6273db71 | 5923268fea4c78707fe82f1f609535a69859d0df | refs/heads/main | 2023-04-19T03:49:23.237829 | 2021-05-03T01:24:56 | 2021-05-03T01:24:56 | 309,492,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | """
Sorted
sorted() serve para ordenar.
"""
lista = [4, 7, 8, 1, 4, 2]
lista.sort()
print(lista)
numeros = [6, 1, 8, 2]
print(sorted(numeros)) # Sempre retorna uma lista
print(numeros) # Não modifica o iterável diferente do sort()
# Adicionando parâmetros
print(sorted(numeros, reverse=True))
# Podemos utilizar o s... | [
"contato.williamc@gmail.com"
] | contato.williamc@gmail.com |
bff58ea8daf128d4fb61ece00543dc0674ee23f5 | 497dc09ca780a2786e4414bfc5b2d7c79d9df939 | /pset7/finance/application.py | be33ddfc4016ee1ed2e23a3bf7375fea20cc2eed | [] | no_license | aaron-xyz/CS50 | c50b585e5cc79f759b2e9d6dc59cdc6eab6496ba | e860828a9271e0fa60499f8aa3cc09cbee3309df | refs/heads/master | 2021-01-18T19:57:35.792881 | 2017-12-30T20:52:41 | 2017-12-30T20:52:41 | 100,542,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,828 | py | from cs50 import SQL
from flask import Flask, flash, redirect, render_template, request, session, url_for
from flask_session import Session
from passlib.apps import custom_app_context as pwd_context
from tempfile import mkdtemp
from datetime import datetime
from helpers import *
# configure application
app = Flask(__... | [
"iaaron.xyz@gmail.com"
] | iaaron.xyz@gmail.com |
95576700b2a1d5ca06b2d8709e277a879181eff3 | c316dfca84f396c797091311d1b20d973a8fad43 | /pg_api_master/test_common/do_excel.py | 267d1f9848bc14752d8335050d22152b2f89a7a3 | [] | no_license | huididihappay/api | ae30be6f5d58b804550c36b393a6c43b28c3eab8 | 084b90786fca27c7a7cdeea5c5bc1e343a11478b | refs/heads/master | 2020-11-28T15:06:51.692155 | 2019-12-24T02:19:32 | 2019-12-24T02:19:32 | 229,853,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | # -*-coding:utf-8-*-
# @time :2019/4/30 16:15
# Author :lemon_youran
# @Email :1063699580@qq.com
# @File :do_excel.PY
# @Software :PyCharm
from openpyxl import load_workbook
from test_common import project_path
from test_common.read_config import ReadConfig
class DoExcel:
"""该类完成测试数据的读取,以及测试结果的写回"""... | [
"2420495011@qq.com"
] | 2420495011@qq.com |
c1439ae2e2033a1beac08b8c7ba99e807da323fa | 4428d0b54dcd7125d7001d195d9b42a4ea16403b | /tastypie/resources.py | be384dd5a672fda6697f8da5e7848bd5e42b81b7 | [] | no_license | kthakur/dojo | eb7ee433a4fa2fd98825fa8807086cface37f984 | 33b2e3e877ac1afc4063ef5cb688e78502a56221 | refs/heads/master | 2020-05-18T01:20:26.123845 | 2012-08-12T11:40:26 | 2012-08-12T11:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,349 | py | from __future__ import with_statement
import logging
import warnings
import django
from django.conf import settings
from django.conf.urls.defaults import patterns, url
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned, ValidationError
from django.core.urlresolvers import NoReverseMatch, rev... | [
"chaiyawut@Chaiyawuts-MacBook-Pro.local"
] | chaiyawut@Chaiyawuts-MacBook-Pro.local |
503459a0e9fbecf95a1353bf2eee1e122a965527 | 6e1bdb4dc9e4f97ccfdd261a8110738e2aea65c8 | /source/demo/vgg16_bidirectional_lstm_hi_dim_train_predict.py | 38d143fc9562353c53199bfc10282f1c3b89b1b5 | [] | no_license | nimaaghli/keras-Image-sequence-classifier | 85d826e3e2ff87bdae044d96132d325a10cf1b43 | d4541d732926b04a865a4fd27ef500a6b91a5859 | refs/heads/master | 2020-04-19T12:01:18.712357 | 2019-01-29T23:21:32 | 2019-01-29T23:21:32 | 168,182,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | import numpy as np
from keras import backend as K
import sys
import os
def main():
testsetCount = 5
accuracies = [0, 0, 0,0,0]
for testid in range(0,testsetCount):
print(testid)
K.set_image_dim_ordering('tf')
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
... | [
"naghli2014@my.fit.edu"
] | naghli2014@my.fit.edu |
0fa1f9fb2a8b2502f1ddabc06e2fc22f77ab3e89 | e20a5139f89938536a78215852019bec1b1a049e | /homepage/urls.py | ab8fe820970e58916cdc9349a22dfe8784003001 | [] | no_license | varunnkrishna/digitalmarketing | ecb0177064c1b802c30bd2b29d0311c8cd67f7cb | 700c88a094fd11968f738850ffdcdb0cae748060 | refs/heads/master | 2022-11-06T09:04:33.763191 | 2020-06-20T09:47:43 | 2020-06-20T09:47:43 | 273,397,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.urls import path, include
from .import views
urlpatterns = [
path('', views.homepage_view, name='homepage_view'),
] | [
"90.varunkrishna@gmail.com"
] | 90.varunkrishna@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.