blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8596050613ddd18b404c32750a3793b9e419fc6 | dff24f8c37afd9a031fcd9d5be49ff6557149279 | /model/PartCapsuleNet.py | f49e7ba734e3b673a37d447aa34aec8738a2f008 | [
"MIT"
] | permissive | ajdillhoff/3dhpe-udd | a08ddc7a54f8901f708b1fb7ef91d504c0643433 | 5a77818670060710dff2b1b617a96481e5dc20a0 | refs/heads/master | 2020-09-23T06:29:34.757943 | 2020-09-03T17:22:35 | 2020-09-03T17:22:35 | 225,428,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
padding=dilation, groups=groups, bias=False, dila... | [
"ajdillhoff@gmail.com"
] | ajdillhoff@gmail.com |
46578a876b572f705fd240a207db106194fe2d29 | 3c6505934caec3fcdc9ed533f87aad8617255c1c | /PG17.py | 4d89b4c165d26b672325618b3928bb46a67ef791 | [] | no_license | teamchz/pythonProject | d7d566bb6413ee94258d8452fd3737dd89a72ab9 | 581b5e60f18141fb021baea7b9f0a7c62a75903f | refs/heads/master | 2023-01-04T05:57:56.228449 | 2020-11-02T09:39:03 | 2020-11-02T09:39:03 | 306,906,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | def progress(n):
global money
if n == 0:
return money
else:
return progress(n-1) * 1.05
money = 10000
print(progress(30))
| [
"teamchz@gmail.com"
] | teamchz@gmail.com |
27e43e9d33a28d66d39c58401890ea2ae4378934 | 71cf8ce77bd73ae0bf1794654e9cf4c5445aad86 | /pyblake2/bench.py | ea6eb8876e8d273a2c8d85f5d757a0961331c10d | [
"MIT"
] | permissive | bryant/pyblake2 | d2b7298401d929cea24b5b8275dc3136b12ff2d8 | 47cd6da3b06ae71b73289da6510526fc992f595b | refs/heads/master | 2016-09-06T09:58:04.476570 | 2013-04-06T08:18:23 | 2013-04-06T18:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from pyblake2 import Blake2b
b = Blake2b()
payload = ''.join(chr(i) for i in xrange(256)) * 4000
b(payload)
| [
"bryant.wong@stonybrook.edu"
] | bryant.wong@stonybrook.edu |
e6f5c41e185e736d4772e6ccc91ba53bfe5ba936 | d8d3b0629f3ae207a36d406c40ca3e963b60aebf | /setup.py | 0ca4cd92144ab24b67f53327a0e3bc149203b120 | [] | no_license | pepebonet/bbgMod | 7db940916cdc2d458a4f6782da8221c05ee9c572 | e86fc4f2c00aba3972622331142baf4d677aacd6 | refs/heads/master | 2022-06-12T04:32:06.101946 | 2020-05-05T07:18:15 | 2020-05-05T07:18:15 | 252,757,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py |
from os import path
from setuptools import setup, find_packages
VERSION = "0.1"
DESCRIPTION = "Deeplearning tool"
directory = path.dirname(path.abspath(__file__))
# Get requirements from the requirements.txt file
with open(path.join(directory, 'requirements.txt')) as f:
required = f.read().splitlines()
# Get... | [
"jose.bonet@irbbarcelona.org"
] | jose.bonet@irbbarcelona.org |
a49f3d3e0d40c24c70d0cb23ce2a51ac5fd2af44 | f22d4319e6f848202fe847f9190b78ceaae8ed12 | /envExemplo/Lista09/Lista09ExPOO12.py | 7a98654d33705d72f5c682217478f62f45d25783 | [] | no_license | AlexandreLouzada/Pyquest | 7ecc0a3e3002df169bd53ae99e66c54019782698 | 29f0e67e5902fad0fc336ece63c9e5d3868d6b09 | refs/heads/master | 2023-08-30T22:54:46.438567 | 2023-08-21T19:04:39 | 2023-08-21T19:04:39 | 248,549,732 | 10 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | class Produto:
def __init__(self, codigo, nome, quantidade):
self.codigo = codigo
self.nome = nome
self.quantidade = quantidade
def mostrar_detalhes(self):
print("Detalhes do Produto:")
print(f"Código: {self.codigo}")
print(f"Nome: {self.nome}")
print(f"Q... | [
"professorlouzada@gmail.com"
] | professorlouzada@gmail.com |
05a4111cad8b7254f2fa80e1235f86b814ba4854 | 02ec51c28d0c0e17a0621646ee571f72202e5c41 | /deepseg/dataset.py | 4a85a993bd2634342b2573cd634a23db65c27df2 | [
"Apache-2.0"
] | permissive | luozhouyang/deepseg | 4934bcef01ba6bd8debcd89a8f1fdc3f7ef8a788 | 3759af585f32fb5d543ddd5af71c47f16d7e73d2 | refs/heads/master | 2023-09-06T05:46:48.495346 | 2021-01-16T13:02:58 | 2021-01-16T13:02:58 | 155,837,694 | 28 | 8 | Apache-2.0 | 2023-03-25T00:52:11 | 2018-11-02T08:40:19 | Python | UTF-8 | Python | false | false | 6,528 | py | import logging
import os
import re
import tensorflow as tf
def read_vocab_file(vocab_file):
words = []
with open(vocab_file, mode='rt', encoding='utf8') as fin:
for line in fin:
line = line.rstrip('\n').strip()
if not line:
continue
words.append(lin... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
205adc6a7e58f4313d71b4cfc42c1bba51e03ec8 | d85a04ad00942081027e56ab69a7734d27bcc6d8 | /simple-cnn/util/data_processor.py | e49e7043fa7e0245f4cd59bc805dfe6e29f35988 | [] | no_license | Nash2325138/DL_contest2_codes_viewing | ecc9f1a1ed97c70acf27f379c9b801da7069aef0 | 82ca637a97726e18ab902c1eaee18cd42fba6ed0 | refs/heads/master | 2021-08-22T06:37:50.613075 | 2017-11-29T14:58:02 | 2017-11-29T14:58:02 | 112,488,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!/usr/bin/env python3
import numpy as np
import pickle as pkl
import tensorflow as tf
from PIL import Image
from train.params import *
from util.bbox_transform import *
def preprocess_train_data(df):
width = par_img_width()
height = par_img_height()
boxes_resize = df['boxes'].copy()
for img in ra... | [
"j2325138@gmail.com"
] | j2325138@gmail.com |
013d119c7e6c94b89935d95ed0ebb30cce151760 | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /000562HeadFirstPy/000562_01_01_p079_Range_20200225.py | 76af97dd475972c7f62f1a8d29ef28ecd5ded55e | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # range
print('range(5):\t\t\t\t', range(5))
print('list(range(0, 5)):\t\t', list(range(0, 5)))
print('list(range(5, 10)):\t\t', list(range(5, 10)))
print('list(range(0, 10, 2)):\t', list(range(0, 10, 2)))
print('list(range(10, 0, -2)):\t', list(range(10, 0, -2)))
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
ac2b7e9aab22ce7a5f8cf75c707dfeacedc7298e | a538f10ff195c1708fb60a87198eeb939129c7fa | /sos_app/login.py | 6e15303b7d4c69e6d47371846386c76d380715c1 | [] | no_license | sharmaprateek/sos | e2d5124b1c4ece72a6fdff1ab3d4c98a59a008b9 | b1e697a7ae6f1bc5350d6bab0ec4a636ea76a0ad | refs/heads/master | 2021-01-10T19:05:48.045019 | 2014-12-14T20:44:41 | 2014-12-14T20:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext, loader
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
@csrf_exempt
def user_login(request... | [
"prateek.sharma@delphix.com"
] | prateek.sharma@delphix.com |
e54ed7f655645acc151f4ce37ea3e07d86ced540 | 434e97ced79dd752239512b1f7eb58f400e09212 | /1. Single Linked List/1. Simple Linked List.py | 650090aa9e668a738513c97ddcb7bc43c36dcf1a | [] | no_license | bipulhstu/Data-Structures-and-Algorithms-Through-Python-in-Depth | 22aa2de2f3b68ebf4a640d99adf9e5fa47c3a988 | f53d9053b045a496536259f29b696f9b331e55d2 | refs/heads/master | 2020-04-05T20:00:35.765508 | 2018-11-12T05:29:20 | 2018-11-12T05:29:20 | 157,160,846 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | class Node:
def __init__(self,data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
if __name__ == "__main__":
llist = LinkedList()
llist.head = Node(6)
second = Node(3)
third = Node(4)
#linked
lli... | [
"bipulhstu@gmail.com"
] | bipulhstu@gmail.com |
c0563edd5ffa2d7bea4dd77f4ffab00fc1caba0f | b35d346d5e2d379453805a32e56efb734fb3a783 | /hf/3hf/10rejtettuzi.py | 4f9c6ed2caaa7bd4684b55182f0958e49f2b6cdc | [] | no_license | firstvan/Python | 19e6e3063cb14065e86f2e58315fb46cd47053f6 | a9495af9bb00f280b4ddb3a9a0dd21de4d7c83d4 | refs/heads/master | 2020-04-08T07:34:47.117847 | 2014-12-01T16:51:33 | 2014-12-01T16:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #!/usr/bin/env python2
import sys
szoveg ='''Cbcq Dgyk!
Dmeybh kce cew yrwyg hmrylyaqmr:
rylsjb kce y Nwrfml npmepykmxyqg lwcjtcr!
Aqmimjjyi:
Ynyb'''
def main():
szoveg1=''
for ch in szoveg:
a = chr(ord(ch) + 2)
if a == '{':
szoveg1 += 'a'
elif a =='[':
szo... | [
"firstvan@live.com"
] | firstvan@live.com |
e272f1bdf83a3217db0d3d28ac63b47e6ed78a94 | 33363e4ceb2088bcc2ce3e70349e5024e3229f58 | /python/cugraph/centrality/katz_centrality.py | d5ed93622382c55d44b3af2ae27eb9a15f15d1c3 | [
"Apache-2.0"
] | permissive | hieuqtran/cugraph | b8c1e9a39a8627db330f05061a5b655f8546579f | ed867e5db69639ceaf09fffc3aea1027ff09bfe5 | refs/heads/master | 2020-09-02T00:51:46.420739 | 2019-10-17T17:56:36 | 2019-10-17T17:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | # Copyright (c) 2019, NVIDIA CORPORATION.
# 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 i... | [
"kaatish@nvidia.com"
] | kaatish@nvidia.com |
f83ef861fff3787e8ddea902f0faa23e23325946 | c426f269e8f7598d78b0a3bcc5629bfe447d12f6 | /PythonProjects/Python3EssentialTraining/10_InheritanceAndPolymorphism.py | 26d1a776323f3c76f703c6d3289aa4356d761e02 | [] | no_license | DmitryVakhrushev/Python | 8d05d083f63822622f43ea5d873b98ef4e8cfd15 | 9dd2f37bcdce25a5cc0146adb4513ed2e539b650 | refs/heads/master | 2022-11-13T18:39:44.131820 | 2020-06-28T02:29:17 | 2020-06-28T02:29:17 | 243,847,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py |
#-------------------------------------------------------------------
# Lesson 10: Greater reusability with inheritance and polymorphism
#-------------------------------------------------------------------
# Each class (Duck, Person, Dog) inherites "AnimalActions" class
# Class AnimalActions has 4 methods
# Other clas... | [
"dm.vakhrushev@gmail.com"
] | dm.vakhrushev@gmail.com |
f8906983156698e016b2c1b42eaacae61431e5bd | dea470247c097fc7e3af3e6921365a47c16f3b2e | /others/SSIM/configs/_base_/datasets/coco_detection.py | 78d1f516957855ad1e3b51dab1db02e3e2744406 | [
"Apache-2.0"
] | permissive | gist-ailab/mmdetection | e4cdf47a7d58fd24ba5657e63b998ea400d7acbb | ba73ebe80c1af2517dc27ae04b7ac549a6b859ca | refs/heads/master | 2023-07-26T04:05:58.330144 | 2023-07-18T04:18:36 | 2023-07-18T04:18:36 | 583,538,372 | 0 | 1 | Apache-2.0 | 2023-04-11T18:42:27 | 2022-12-30T04:35:47 | Python | UTF-8 | Python | false | false | 1,774 | py | # dataset settings
dataset_type = 'CocoDataset'
data_root = '/SSDb/sung/dataset/coco/'
# data_root = '/home/jovyan/sung/dataset/coco/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations... | [
"hogili89@gist.ac.kr"
] | hogili89@gist.ac.kr |
c9a5215f2c1b60e591fdd67e7e6bf37c9b83b335 | 4f0536090506380b7a6f73c810be453ebc19d8d6 | /arena/rollout_worker.py | 9ac8487e6ed692c28d4bfb3a1a2dc5fc461b4f1d | [
"MIT",
"Apache-2.0"
] | permissive | YuhangSong/Arena-Baselines | 9c9ac3f077210796bec889f71f7a5f66b5873726 | e3e1b2cf0714ff8d35d3297932a4ad483b7e384e | refs/heads/master | 2021-06-28T06:08:21.559251 | 2021-04-05T21:45:52 | 2021-04-05T21:45:52 | 178,899,988 | 36 | 8 | Apache-2.0 | 2019-08-15T02:21:19 | 2019-04-01T16:08:45 | ASP | UTF-8 | Python | false | false | 16,894 | py | from ray.rllib.evaluation.rollout_worker import *
from ray.rllib.evaluation.rollout_worker import _validate_env, _validate_and_canonicalize, _has_tensorflow_graph
from gym import wrappers
class ArenaRolloutWorker(RolloutWorker):
"""arena-spec, support monitor for MultiAgentEnv
"""
@DeveloperAPI
def _... | [
"yuhangsong.china@gmail.com"
] | yuhangsong.china@gmail.com |
95e35d4976bbcfc3afac960c917a0777e0d4dda7 | 2d3c2c7e21acd846960adf0b23e5329fdf84f2cd | /math_progam_2.3.py | 6387a52990cbdda12efa6a96f7dbc6dad56e3368 | [] | no_license | yeaagreed/Math-Program | 6021f9042876e56299d6a0a7b78fa0e91ee990cf | e8165c0da8c9631284fed8efb84e22af72292b6f | refs/heads/main | 2023-07-27T13:29:24.596394 | 2021-09-14T23:54:59 | 2021-09-14T23:54:59 | 399,730,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,230 | py | ##
# math_teacher.py
# 18/08/2021
# SF
def student_menu():
"""Student Module"""
print("""\n\n---------------Welcome to Who Wants to be a Mathionaire!---------------
Who Wants to be a Mathionaire will test your ability at maths
while rewarding you with money. Questions will progressively get harder,
i... | [
"noreply@github.com"
] | yeaagreed.noreply@github.com |
bc1927651feb362fb11038e4a1b6b12a240f8b33 | 20bd15d181c403f0ba6ea269761937aabf34b3c1 | /embeds/embed_common.py | 64ff561a912817ef4f6388cd8c2012c28e5f5d73 | [] | no_license | XinliYu/PyModels | 1ee96e5a544bddf6d6e7d54fa82bab195640d901 | d9b0978f8829e599dee51463c9e437ad20e54c9f | refs/heads/master | 2020-05-22T13:28:18.009886 | 2019-05-21T18:30:29 | 2019-05-21T18:30:29 | 186,359,076 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py |
def find_analogies(w1, w2, w3):
for w in (w1, w2, w3):
if w not in word2vec:
print("%s not in dictionary" % w)
return
king = word2vec[w1]
man = word2vec[w2]
woman = word2vec[w3]
v0 = king - man + woman
distances = pairwise_distances(v0.reshape(1, D), embedding, metric=metric).reshape(V)
... | [
"xyu350@gatech.edu"
] | xyu350@gatech.edu |
cf8ec172f833dec2b1f41077e0893166865d5c4f | 8004831758776360a421b6cb458b48a120d1586e | /chapter_4/slices.py | 4b85a2707d73238969cf98a296ba46482258709c | [] | no_license | scott-gordon72/python_crash_course | 025d15952d7372c2a40780b7038008f9b39c42d2 | 605f1f7e8d90534bd9cb63f44098d95dec739e50 | refs/heads/master | 2022-06-04T19:29:40.142291 | 2020-04-25T01:13:48 | 2020-04-25T01:13:48 | 255,947,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import math
cubes_list = []
for i in range(1, 11):
cubes_list.append(i)
cubes_list_comprehension = [cube ** 3 for cube in cubes_list]
print(cubes_list_comprehension)
print(
f"The first three items in the list of cubes are:{cubes_list_comprehension[:3]}")
cube_middle = int((len(cubes_list_comprehension) / 2) - ... | [
"scott.gordon72@outlook.com"
] | scott.gordon72@outlook.com |
5d1b4ee00dd806c681b392173175892dcc7fa2b7 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-vas/huaweicloudsdkvas/v2/model/stop_task_request.py | fe99f6e141c1773022da7df217fec7c46e3a8df1 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class StopTaskRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
04c1467478361ba2732edb5915c0b5761c73dc42 | 0da798d9578988a40354f97e94dc6d272cedc82f | /main.py | 8d61ed18583e5ae7817db7232da6837e26fb0cf9 | [] | no_license | dmancy/Euler-1D-Solver | 1d9d44717b2d5904a46e22c4b208db5ea25b06a2 | 579a1e6cec77b2270ef7607fe5d44e8d9d4895c9 | refs/heads/master | 2023-03-13T06:39:39.479136 | 2021-03-08T22:19:42 | 2021-03-08T22:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | #Python libraries
import matplotlib.pyplot as plt
import numpy as np
import tikzplotlib
from Grid import Grid
from State import State
from Solver import Solver
from Riemann import Riemann
from Euler import Euler
from plot import plot
#Number of cells
N_cells = 100
#Grid step
delta_x = 1
#Number of faces
N_faces = ... | [
"mancydamien@gmail.com"
] | mancydamien@gmail.com |
50aa2c4e21a87d6584cca67efa345d843c5d8901 | d31baab88d4f0c652a87d21f872759b75bb636ea | /augmentation.py | 0b1cc07fc5534024a664493de76bd0b131501d5c | [] | no_license | ahmetkucuk/flare-prediction | 6841063f43a600d370839129ce3eb03de9cbfa9f | 9d16a790658f9a5e17f8a4c7317e918fd9c7502f | refs/heads/master | 2018-12-20T15:29:24.403037 | 2017-04-30T05:12:27 | 2017-04-30T05:12:27 | 86,946,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py |
import numpy as np
from collections import deque
NO_AUGMENTATION = -1
STRETCH_AUGMENTATION = 1
SQUEEZE_AUGMENTATION = 2
SHIFT_AUGMENTATION = 3
MIRROR_AUGMENTATION = 4
FLIP_AUGMENTATION = 5
REVERSE_AUGMENTATION = 6
def mirror_augmentation(data, labels):
new_labels = list(labels)
new_data = (np.array(data).astype(n... | [
"ahmetkucuk92@gmail.com"
] | ahmetkucuk92@gmail.com |
d2bace887ae8d6e8f98a445073d1abb6dba3225e | 27a9b251f4cda1c94f7aafd8a7b3a47be38fcd55 | /scripts/create_task_database_psych.py | 8a1be30522ec903f599dd38dc0385e87e5cf951f | [] | no_license | openstax/research-wrst | f6ccd0e700f965dc2d356584dbeb4a88a4c16ede | a984a48e59d9bb2457edef5ac38506ef5836a7da | refs/heads/master | 2023-07-19T23:46:32.477195 | 2021-09-02T19:09:12 | 2021-09-02T19:09:12 | 238,274,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | import pandas as pd
import itertools
import numpy as np
import re
import sys
sys.path.append('..')
from wrst.app import create_app
from wrst.database import db
from wrst.database.models import Tasks
from wrst.logic.experiment import Experiment
sentences_file = "../textbook_data/book/psychology_14_1_final.csv"
terms_fi... | [
"andrew.e.waters@gmail.com"
] | andrew.e.waters@gmail.com |
ef36e1c1a2b4b5b64e1e2ba1f028e6f8b4fe565b | 275135c409644b46a551ded2165649145f95a032 | /BotosanLayer.py | 2fde92550b06df6a68d18e1534fe5ebbf77f072f | [
"MIT"
] | permissive | gokomo/BotoSan | 1094dda9eac70e191767bd1ce665b506170c068e | 8869f8016b9ab07d4cbaed1170ae12c329dcdb30 | refs/heads/master | 2021-06-21T06:48:00.887990 | 2017-08-14T21:40:18 | 2017-08-14T21:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,669 | py | # coding=utf-8
import random
import time
import logging
import RegexMatcher
from DateHelper import DateHelper
from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers.protocol_messages.protocolentities import TextMessageProtocolEntity
from yowsup.layers.protocol_presence.protocol... | [
"freddyloher@gmail.com"
] | freddyloher@gmail.com |
b7c5da7117ce9730e6e185f03a1ba51ec604b2da | d1808d8cc5138489667b7845466f9c573591d372 | /notebooks/Ambient Seismic Noise/Probabilistic Power Spectral Densities.py | ea3a14af430a40fdedd483965e6a4b0dd1899483 | [] | no_license | krischer/seismo_live | e140777900f6246a677bc28b6e68f0a168ec41ab | fcc615aee965bc297e8d53da5692abb2ecd6fd0c | refs/heads/master | 2021-10-20T22:17:42.276096 | 2019-11-27T23:21:16 | 2019-11-28T10:44:21 | 44,953,995 | 69 | 59 | null | 2020-05-22T11:00:52 | 2015-10-26T08:00:42 | Python | UTF-8 | Python | false | false | 5,442 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# <div style='background-image:... | [
"lion.krischer@gmail.com"
] | lion.krischer@gmail.com |
026f2b1121016680fce1de335e8f080d67989dce | bc9ad33b3a6e89b3b6d68ec4e2ef25e35b90d5a0 | /students_api/serializers.py | 4db1e71ba39fc1c397d2155c49117a4d1c014353 | [] | no_license | AndreasPatakis/students-rest-api | d56db8a478a0e117a004f200e4b5871087b30ccb | 480dc64e7ae9927b0c84d4d3b633e90919de6de6 | refs/heads/main | 2023-07-15T02:12:16.048230 | 2021-08-31T13:55:01 | 2021-08-31T13:55:01 | 387,763,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | from rest_framework import serializers
from students_api import models
class StudentInfoSerializer(serializers.ModelSerializer):
class Meta:
model = models.StudentInfo
fields = ['id','first_name','last_name','email','home_university','outgoing_university','created_on']
extra_kwargs = {
... | [
"andreaspatakis@gmail.com"
] | andreaspatakis@gmail.com |
abaab192266b62fecf1d3ed43812d90398d0cb17 | 5526613640c53bd4193d5c08dc5b192e359271d9 | /phase_2-3/ML/Models.py | 5e26467f8be473f11872366d1447bb06b1300182 | [
"MIT"
] | permissive | Coke-Zhang/Deep-Docking-NonAutomated | 4451234defbc002362b3600756425d728bdc7741 | a55178dd910e7827dafcc3e0ffaed12277df8307 | refs/heads/main | 2023-07-05T05:50:11.236359 | 2021-08-17T20:16:32 | 2021-08-17T20:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,733 | py | """
Version 1.1.0
The model to be used in deep docking
James Gleave
"""
import keras
from ML.lasso_regularizer import Lasso
from ML.DDMetrics import *
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.layers import (Input, Dense, Activation, BatchNormalization, Dropout, LSTM,
... | [
"j.gleave.james@gmail.com"
] | j.gleave.james@gmail.com |
6c47c751b632674e2e0ad4d9a57dc7dea040b04d | b02eeeeef39a55e89c4cb0abfd19df903f3bd41a | /gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py | 79062cc22e761815e110c4f9c4667a88a215871a | [
"Apache-2.0"
] | permissive | nuclyde-io/flyteidl | af0b81c621c45c05120468ccdfdbcac8e776b5e6 | 376cfc2990f610dfc9f7a63e5bef84785241fb6b | refs/heads/master | 2023-07-16T19:02:34.683059 | 2021-02-03T03:07:16 | 2021-02-03T03:07:16 | 336,040,693 | 0 | 0 | Apache-2.0 | 2021-08-20T05:16:37 | 2021-02-04T18:06:03 | null | UTF-8 | Python | false | false | 1,044 | py | # coding: utf-8
"""
flyteidl/service/admin.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import... | [
"kumare@lyft.com"
] | kumare@lyft.com |
bdfac2cd61e44faa51a89c9a34c72d969a59e1f1 | bac982f419e9160176c979c15d733870039cf083 | /genThumbnail/pages/tests.py | aa8380c963c04db37d3f30b263c8965b2659126b | [] | no_license | mukuls9971/generateThumbnail | cfcf6ff8e62f80f6425e3917c0b7b85758224733 | e49e2be0b28227fe10112d56461f398f099f8a89 | refs/heads/master | 2022-12-26T06:09:46.283747 | 2019-08-25T09:29:37 | 2019-08-25T09:29:37 | 204,172,131 | 1 | 0 | null | 2022-12-08T06:04:08 | 2019-08-24T14:58:15 | Python | UTF-8 | Python | false | false | 256 | py | from django.urls import reverse
from django.test import TestCase
class GenThumbnail(TestCase):
def serverUp(self):
response = self.client.get(reverse('pages:generateThumbnailView'))
self.assertEqual(response.status_code, 200)
| [
"mukul9971@gmail.com"
] | mukul9971@gmail.com |
90eb24001dac503770a3e79bbaf167297f1ef847 | 6741d2d956ecaa84f7bac4205de7ac6f3e78d5b1 | /bin/libs/DataStruc.py | 24b69bad7ed8374684a4c5ec57db8f5c5a6cd33c | [] | no_license | huohongjian/stock3 | dee9e1a8730bcbe9999ef14addc2d7861fcb13e9 | 57b3f6f298693309252cb3c34c0ec64f450f4ce9 | refs/heads/master | 2021-05-12T09:38:31.946794 | 2019-04-11T07:29:59 | 2019-04-11T07:29:59 | 117,325,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author: HuoHongJian
# date : 2018-01-22
class LinkedDict():
def __init__(self, maxLength=10):
self.maxLength = maxLength
self.length = 0
self.buffer = {}
self.head = None
self.last = None
def clear(self):
self.buffer = {}
def size(self):
return sel... | [
"hhj@cwork.FreeBSD.cn"
] | hhj@cwork.FreeBSD.cn |
982f0da4ad46edb7ce2b9cdb7e87f69614147d69 | 33c2d31fa51ff47507d40bcf50308ee1c36637c7 | /listings/views.py | 65a7229a4b47faef2603d31450403bf4d1dc9d6b | [] | no_license | hataung/Django-Python-Backend-Project-for-MaasDev | cc1aa4cf6e96be5f9f72fdd3a5ee3a1d0689ed45 | 93e32cf1fff0c0a44a18a12773522afc783e3d63 | refs/heads/master | 2020-12-02T11:37:11.806004 | 2019-12-30T23:26:51 | 2019-12-30T23:26:51 | 230,993,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django.shortcuts import render
from .models import Listing
def index(request):
listings = Listing.objects.all()
context = {
'listings': listings
}
return render(request, 'listings/listings.html', context)
def listing(request):
return render(request, 'listings/listing.html')
def... | [
"hataung@gmail.com"
] | hataung@gmail.com |
57b0621f9b678f50a2a4a7b4115417ccddb6ec5b | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/encodings/iso8859_7.py | 548579285f31d0307074b640f799b13507d8cd4f | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b352eca3b819488f64fb3338fd93f39c1e30f32bb13f2f9c577925e58f2960e4
size 12844
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
5a89fbeca9a6f09ba1a9cb2766d6401f3cfe9c37 | ff2adf0c96aee0e76f145ecb148969c295a7684a | /BionsMLenv/bin/pip | f8ee14b098b870153f3cdf50177c000b3227c073 | [] | no_license | Romitha/BionsFlask | ff305a5c8e8ca352c0aed526397431e10dcd340b | b07cee56c656535386afa19723ca90ac177af570 | refs/heads/master | 2023-05-31T19:13:17.355540 | 2019-12-05T10:43:22 | 2019-12-05T10:43:22 | 226,051,566 | 0 | 0 | null | 2023-05-22T22:34:47 | 2019-12-05T08:21:45 | C++ | UTF-8 | Python | false | false | 283 | #!/home/janith/Documents/Python/Bions/BionsRealTimeMLFlask/BionsMLenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"janith@datampowered.com.au"
] | janith@datampowered.com.au | |
f4290df45807ae3421e74367c8c802d41d3876cd | cca89a7bbe2da907a38eb00e9a083f57597273f0 | /38. 外观数列/pythonCode.py | 4e6c06fc944b194ff8272cb5d208bd2633070cec | [] | no_license | xerprobe/LeetCodeAnswer | cc87941ef2a25c6aa1366e7a64480dbd72750670 | ea1822870f15bdb1a828a63569368b7cd10c6ab8 | refs/heads/master | 2022-09-23T09:15:42.628793 | 2020-06-06T16:29:59 | 2020-06-06T16:29:59 | 270,215,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | class Solution:
def countAndSay(self, n: int) -> str:
if(n > 1):
s = self.countAndSay(n-1)
cache = 1
res = ''
for i in range(1,len(s)):
if(s[i-1] == s[i]):
cache += 1
else:
res = res + str... | [
"changwenhao1@qq.com"
] | changwenhao1@qq.com |
9493d35e5d07b571524679c86f2b3ec92f2cf783 | a414569f6e54d8b208301515e6e3ed2e71f71264 | /linkedlist/ck189/delete-middle-node.py | 7142d2969300961003faa8da17b247b574861b21 | [] | no_license | MoranLi/algoritm-and-data-structure | ea17778f208d4a158e6649765521b95b5ee5a6ba | 7a38253d99e4a18809649aaa15506d01bf1d9846 | refs/heads/master | 2020-03-30T06:42:45.620795 | 2018-10-23T02:12:05 | 2018-10-23T02:12:05 | 150,883,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import random
def delete_middle(listx):
del listx[len(listx)/2]
return listx
list1 = []
for x in range(0,10):
list1.append(random.randint(0,5))
print(list1)
print(delete_middle(list1)) | [
"moran.li@usask.ca"
] | moran.li@usask.ca |
5503154045f9544e51b2e9b4ceda3ff597290bee | a50180753b613c3bbdc2b25b31b6cd344152e086 | /http_server/modified_http_server.py | dfc22291784420eada96ad69797a6a434e9700b2 | [] | no_license | add-skill/API-Development-Guide | 38affc41ecb8af27622d813e4627ea114ac94d2d | 6f9f97bbaf1bb28d1b8cc7b24714e6a698a000f2 | refs/heads/master | 2023-03-18T16:45:16.979959 | 2020-04-22T10:12:40 | 2020-04-22T10:12:40 | 257,858,173 | 1 | 0 | null | 2021-03-20T03:32:57 | 2020-04-22T09:46:57 | Python | UTF-8 | Python | false | false | 1,248 | py | from http.server import BaseHTTPRequestHandler, HTTPServer, SimpleHTTPRequestHandler
from urllib.parse import urlparse
from urllib.parse import parse_qs
class MyHttpRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.path = 'addskillwebpage.html'
... | [
"akdeswa@microsoft.com"
] | akdeswa@microsoft.com |
a4dccc8a1ad8197482bc566d88feabfacd628ce4 | e91011e80191d415cdec4b155a721559b5f0c2fd | /NeuralNetworks-tensorflow/CNN/transfer_learning/simple_transfer_learning.py | a26e378111014657fc4a3538bae8fd50df079acd | [] | no_license | zhaocc1106/machine_learn | 1cb70366f61d38251715094e07152e0d04e3be01 | d1b70b2a954f4665b628ba252b03c1a74b95559f | refs/heads/master | 2023-05-31T14:24:27.467600 | 2023-05-12T02:12:11 | 2023-05-12T02:12:11 | 125,951,974 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | #
# Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved
#
"""
This is a simple transfer learning model via tf hub(https://tfhub.dev/).
Copy the codes into colab of google to run, otherwise can't access tf hub.
Need install tf-hub as follow:
pip install -U --pre tf-hub-nightly
Authors: zhaochaochao(zhaochaochao@ba... | [
"zhaochaochao@baidu.com"
] | zhaochaochao@baidu.com |
30ff18bf4236dcf8755197d6ade87af5518874be | 6238dc5b5818f54295547cf4cb1afa5553ddfb94 | /taobao/top/api/rest/SimbaAdgroupAdgroupcatmatchsGetRequest.py | 24e2de0cbe6edc91e0df8f31993d210f8c2e1e8c | [] | no_license | liaosiwei/guagua | 8208bb82b1df5506dcb86c1a7094c849ea5576a6 | ee6025813e83568dc25beb52279c86f8bd33f1a4 | refs/heads/master | 2016-09-06T16:45:00.798633 | 2013-05-03T04:02:35 | 2013-05-03T04:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | '''
Created by auto_sdk on 2013-04-14 16:35:32
'''
from top.api.base import RestApi
class SimbaAdgroupAdgroupcatmatchsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.adgroup_ids = None
self.nick = None
def getapiname(self):
retur... | [
"liaosiweiorxiaowei@gmail.com"
] | liaosiweiorxiaowei@gmail.com |
0406509ee9f8401da8685b1a85441948fddffe9d | 8e216c3e3d4e9887d02311c82b2a7a747f0e093a | /py/2021/day1/part1.py | b004e3a8ae628084fc64631811bad16a358c2888 | [] | no_license | Antetokounpo/Advent-of-Code | 9f07f09a6c08f69db4a8dc3559e354549e4aa215 | 607d5754cdf27f52858214563dccbc23f8f1b5a9 | refs/heads/master | 2023-07-21T19:30:15.845750 | 2023-07-10T01:32:11 | 2023-07-10T01:32:11 | 224,746,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from AOC import read_input
ds = read_input().splitlines()
ds = list(map(int, ds))
print([j>i for i, j in zip(ds[:-1], ds[1:])].count(True)) | [
"antor.232@outlook.com"
] | antor.232@outlook.com |
88780208078048052dcd6df32f8d029888d6a13c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_minesweeper.py | 058fff249bf41fa4e8d0d821acb7b0d187f2bb06 | [
"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 | 384 | py |
#calss header
class _MINESWEEPER():
def __init__(self,):
self.name = "MINESWEEPER"
self.definitions = [u'a ship that is used to discover if mines (= bombs) are present and to remove them from the sea']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8a789384c12f9a48619251e8bc9e1a677abad00a | e3bd7f1175997e68424484c8f782a018192104a3 | /tweets/migrations/0002_tweet_parent.py | d01d2b59df2196fff742cc40629e66def344de7c | [] | no_license | GolouHamady/tweet | a0495a3d97b5a7a260892ea9e00b9d4f5462627f | efc9f79568e806eb530806cf713bbdcf88b5e83b | refs/heads/master | 2023-05-10T10:26:10.096892 | 2020-12-06T02:15:32 | 2020-12-06T02:15:32 | 266,257,008 | 0 | 0 | null | 2021-06-10T23:41:36 | 2020-05-23T03:40:50 | Python | UTF-8 | Python | false | false | 477 | py | # Generated by Django 2.1.7 on 2019-04-21 11:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tweets', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='tweet',
... | [
"BARRY@dev.groupe.adg"
] | BARRY@dev.groupe.adg |
02e308e90fc57cec8266fc26f0efd6dcd6c50976 | f12e0cb6bedec951db6e39574176534902bb8e66 | /tcs.py | ee3f0705e2b5493ff4128784df8436513221913c | [] | no_license | Denni007/PythonLearning | 3827c43c0560f0fd5e2ac3029948e52c0b98882d | 5b4db5c2703991bfecda881e116f7c411957e80f | refs/heads/master | 2020-04-12T16:11:53.145822 | 2019-08-07T18:00:42 | 2019-08-07T18:00:42 | 162,605,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | a=input()
a=a[::-1]
l=[]
sum = 0
for i in range(len(a)):
if(a[i]=='A'):
l.append(10)
elif(a[i]=='B'):
l.append(11)
elif(a[i]=='C'):
l.append(12)
elif(a[i]=='D'):
l.append(13)
elif(a[i]=='E'):
l.append(14)
elif(a[i]=='F'):
l.append(15)
elif(a[i... | [
"kukadiyadenish@gmail.com"
] | kukadiyadenish@gmail.com |
6feb5e761a4ee0937e105cf7bfd8ca6c3a35b827 | 1fc94118f1a088109abaf6ca2ffa531d43f4b005 | /src/Computational Photography/HDR/HDR/HDR.py | e35e27617d7c01da4c1c32faa40d83cff23d27fe | [] | no_license | lealzhan/opencv_python | b2e805228a57082079ea4317e078cf9f4b713840 | 4ac3c8bcc8a2fe3d259c3a5d2c4f4d7c216f820e | refs/heads/master | 2021-01-01T04:02:34.672980 | 2017-07-15T06:43:41 | 2017-07-15T06:43:41 | 97,108,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | #http://docs.opencv.org/3.2.0/d2/df0/tutorial_py_hdr.html
import cv2
import numpy as np
def Test():
#################################
#### Exposure_sequence_HDR() ####
#################################
# Loading exposure images into a list
img_fn = ["img0.jpg", "img1.jpg", "img2.jpg", "img3.jpg"]
img_list = [cv... | [
"lealzhan@126.com"
] | lealzhan@126.com |
0e534268fd1c901e0b8d1118a09ec70546910e4d | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Controller/glance/registry/client/v2/api.py | 9d3854fd49122f539d7ee02cd2e0203bbd79972e | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 3,640 | py | # Copyright 2013 Red Hat, Inc
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"wwang@linx-info.com"
] | wwang@linx-info.com |
94da3b5459ec2a866efc488c0c16c7c18ce2774a | b76116a922d8fc33c610738a59919669bf85535a | /Roam Research (Second Brain)/todoist_activity.py | 4a105696f715ec16acdc4c4096d39697d459766d | [] | no_license | hjneuhaus/eyecreality-public | 05505fea202b64abbbf2f1cb2d8fb155acdd5441 | 388b3c8a17abb663de472c192958b491fa41bbe4 | refs/heads/main | 2023-05-27T08:43:17.619209 | 2021-05-25T21:43:36 | 2021-05-25T21:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | from todoist.api import TodoistAPI
import json
import matplotlib.pyplot as plt
import config
from datetime import datetime
api = TodoistAPI(config.todoistAPI)
outputJSON = api.activity.get(page=1,limit=100)
outputDirectory = "Roam Research (Second Brain)/Roam Import/"
projects = []
dates = []
project_counts = []
all_... | [
"andrewcrider@brillada.com"
] | andrewcrider@brillada.com |
a5cac3550aff9d6295a3027084f78fff9f8ac6f0 | 94dd6607af2184dce5115fcdce2b0b330cad052f | /regatta.py | 1f918022a8df2d332c8ccc6397c5da1d4a56fe10 | [] | no_license | Already-inst/testA | 02dfc1df5f750d5552f55a673af2f79f4ac9d1f5 | 91c83a4a2bb6d4d7c872dbf8dd4103952020b75c | refs/heads/master | 2022-11-24T03:59:07.394474 | 2022-11-09T11:52:42 | 2022-11-09T11:52:42 | 240,494,743 | 0 | 0 | null | 2020-02-20T14:09:13 | 2020-02-14T11:36:40 | Ruby | UTF-8 | Python | false | false | 54 | py | SLACK_TOKEN_LAC = "xoxb-54123987-asdfglttzzekhrnemo"
| [
"elacaille0+restricted@gmail.com"
] | elacaille0+restricted@gmail.com |
c8dbdaceaddbb40c066ca040a9c2ee8c28e4fa69 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/196/usersdata/265/78476/submittedfiles/atividade.py | 3765fcc073afbf3178b15cab93d01bb6cdb42c43 | [] | 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 | 185 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite o valor de n: '))
i=1
soma=0
if (n<0):
n=n*(-1)
else:
n=n
while (i<n):
soma=(i/(n))
n=n-1
i=i+1
print(soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b57e43d52ac04a1a6aafbe6d416506910a590a71 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /787_3.py | 194ee7b81f126d774550c6d0683ab09e69646e87 | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # -*- coding: utf-8 -*-
# @Time : 2021-08-15 10:49
# @Author : zxl
# @FileName: 787_3.py
class Solution:
def findCheapestPrice(self, n: int, flights , src: int, dst: int, k: int) -> int:
dis = [float('inf') for i in range(n)]
dis[src] = 0
while k+1:
old_dis = [item for it... | [
"791057615@qq.com"
] | 791057615@qq.com |
aebbed9f4be141876d5534da14664d51688d3af2 | d6ad73da7d5087882aea80f500057e7201675a94 | /10966_물놀이를가자/s1.py | a3e6f6322a60c41468b0f0a39344cd6aced85663 | [] | no_license | Ysh096/swea | 8bcd6038c96705f8a8d83bb5391d5f061bf98e52 | 3d018e5d3e6cea69268a025a117542f9e4a96702 | refs/heads/master | 2023-04-15T05:17:52.933799 | 2021-04-22T11:44:00 | 2021-04-22T11:44:00 | 340,567,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import sys
from collections import deque
sys.stdin = open('input.txt')
def bfs():
result = 0
deq = deque(w_pos)
while deq:
i, j = deq.popleft()
for k in range(4):
nr = i + dr[k]
nc = j + dc[k]
if not (0 <= nr < N and 0 <= nc < M):
continue... | [
"skk7541@gmail.com"
] | skk7541@gmail.com |
ee5739a0303713f51d6c14a2cd5201480f0e6f37 | 7b51d315d9d60f6c1ec0bad7caf4de1c690bae61 | /stanford-nlp-uses/pos-tagging.py | 35ab6c8ca6c4973caf5f4f01ec24a0aeeb99e7f7 | [] | no_license | ritamnrg/absa | 1758b3f847ca4cf8ee97661f738105994b9ce691 | 503cd89a5ff70cbd5ef738aed56d7cf4bab2d061 | refs/heads/master | 2021-04-26T23:28:28.670229 | 2018-03-07T04:41:47 | 2018-03-07T04:41:47 | 124,001,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # -*- coding: utf-8 -*-
from stanfordcorenlp import StanfordCoreNLP
nlp = StanfordCoreNLP("stanford-corenlp-full-2018-01-31")
# res = nlp.annotate("I love you. I hate him. You are nice. He is dumb",
# properties={
# 'annotators': 'sentiment',
# 'outputFo... | [
"if414007@students.del.ac.id"
] | if414007@students.del.ac.id |
5ea906c630642fc75e024f7419a93c0ffdfcec28 | dca0254ddb5681d9ed8903d71f5d1cfec6cfd3f0 | /hw4/task4_main.py | 72df1239971428480fad8fea13c7647f8865bcb3 | [] | no_license | HectorLector/nn17 | 7d54a5e35d4e9b34d895ab135d1d3f24929bf601 | f5f038cf8e0701cb97d8ca34c656816bf0eae211 | refs/heads/master | 2021-09-03T17:36:43.206153 | 2018-01-10T19:11:29 | 2018-01-10T19:11:29 | 109,736,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | #!/usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from task4_data import generate_data
tf.reset_default_graph() # for iPython convenience
# how to define recurrent layers in tensorflow:
cell_type = 'simple'
#cell_type = 'gru'
#cell_type = 'lstm'
# define recurrent ... | [
"d.seywald@student.tugraz.at"
] | d.seywald@student.tugraz.at |
53c433d0713154b6c2857dacae4582305191deec | 3a6e71c36e7d5a5b0b2e0d4aecb8de7c743efc5f | /url.py | 52e84ac36917fc112a64513e50d5d4b0b68dbc6e | [] | no_license | woowooh/12306auto | 3c5be8e988d0ded65e18b69798a457c0cc64d869 | ec31ea64136ce5cea35e861c61580e415f0a223b | refs/heads/master | 2021-01-25T14:32:30.610168 | 2018-03-03T15:14:19 | 2018-03-03T15:14:19 | 123,702,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | https://kyfw.12306.cn/otn/leftTicket/query? | [
"woowooh@outlook.com"
] | woowooh@outlook.com |
ee0788af1f5d22772e783da7a2f03386ccdfa5cf | f061e90f3488b33608e672d5746fb5c5e10f4a2d | /weiboscrapy-1.1.0/mian.py | e88d774eb6748d922bc8fa4c58c7ca9c3a9559fc | [] | no_license | Asenli/spider | 617200502830a06782d88ab5b6cfcd7272532acb | 753b15fdcbd3ca92e274da7c6df7d0bfae898d86 | refs/heads/master | 2020-03-22T12:44:55.140658 | 2018-08-12T01:57:20 | 2018-08-12T01:57:20 | 140,059,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from scrapy import cmdline
cmdline.execute(['scrapy','crawl', 'weibocn']) | [
"634163114@qq.com"
] | 634163114@qq.com |
5d524861359bf7aa6efd4cb5039526f1713f9996 | c5746efe18a5406764c041d149d89c0e0564c5a5 | /4. Python 爬虫工程师/1. 爬虫/Day7/selenium_qqmail.py | 9e1ae747143cf548d202b8c5801fb50b6563f1ef | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 454 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://mail.qq.com')
i_node = driver.find_element_by_xpath('//*[@id="login_frame"]')
driver.switch_to.frame(i_node)
driver.find_element_by_xpath('//*[@id="switcher_plogin"]').click()
driver.find_element_by_id('u').send_k... | [
"stevenpp123@sina.com"
] | stevenpp123@sina.com |
0eed086909dfa9ba0e05bf6c5182a0d96d5ea294 | 9d1a59da79df4eec9fd0abdc7bf00b8ff14e0111 | /Part2/part2.py | d95a054f6c3e898035dcd3e4f94db8fa354c19be | [] | no_license | 2019-bgmp/demultiplexing-anniewly | f3c1fc1552e5d003ae30fb1c5539f096380a7f08 | 0297d4925619b2400b5faa00bc88ba1feb2aa674 | refs/heads/master | 2020-08-06T06:40:08.477702 | 2019-11-12T09:53:24 | 2019-11-12T09:53:24 | 212,875,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | import numpy as np
import gzip
def convert_phred(string):
"""Converts a string of characters into phred scores"""
return [ord(x)-33 for x in string]
complement={"A":"T","T":"A","G":"C","C":"G","N":"N"}
def rev_complement(string):
return ''.join([complement[x] for x in string[::-1]])
def cutoff(q1,q2,q3,q... | [
"annie@Annies-MacBook.local"
] | annie@Annies-MacBook.local |
2bebdc36e6a65509c698c83f4d0b5a1a4db2c21a | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/36834b68b7b4d6366f38/snippet.py | 1d9db68c22a47a3e4ee4b7af2bcab5032498c11c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,281 | py | #!/usr/bin/env python
import sqlite3
import threading
from time import time, sleep, gmtime, strftime
import serial
import requests
# global variales
# sqlite database location
dbname = 'templog.db'
# serial device
DEVICE = '/dev/ttyAMA0'
BAUD = 9600
ser = serial.Serial(DEVICE, BAUD)
# timeout in seconds for wait... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
8080b7c3c35e7127dba17d798bcb4d651b39886c | 18693f41ef3c8600db5c6ffd35efbabd257cbbe3 | /evaluation/trajectory/kitti-01/convert.py | 343147f4fc8724420296116690d011e4ff1bcc7a | [] | no_license | QinHarry/my_imu_slam | d1edb20cc264de1679143befda9a5ed30e2c5526 | 9ee6ac86e0363622756981fd51836be17d3eba5c | refs/heads/master | 2020-07-30T03:19:07.559623 | 2019-11-04T00:04:57 | 2019-11-04T00:04:57 | 210,068,280 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py |
orb = []
gt = []
vins = []
with open('vins.kitti', 'r') as f:
vins = f.readlines()
with open('01.txt', 'r') as f:
gt = f.readlines()
with open('kitti-orb-origin.kitti', 'r') as f:
orb = f.readlines()
m = min(len(vins), len(gt), len(orb))
rate1 = 1.0 * len(vins) / m
rate2 = 1.0 * len(gt) / m
rate3 = 1.... | [
"282588926@qq.com"
] | 282588926@qq.com |
9050ae88bb42afcba500311172f766cff4c50560 | 17224a0e717291c31b5ec454dea5a27d4d1c6602 | /feeder.py | a4313d67cd6abe2428e29f07334016104b8b4619 | [] | no_license | junggil/newswall | 4ef6059750ddd78d5ac4f763d14225b3346f358a | 057d9c307eeecde4c4455bb70f937fc91663f7dc | refs/heads/master | 2021-05-26T21:10:10.494209 | 2011-09-08T00:58:39 | 2011-09-08T00:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | # -*- coding: utf-8 -*-
import feedparser
from random import choice
from pickle import dump, load
from time import time, localtime, asctime
class GoogleNews(object):
TEMPLATE = 'http://news.google.com/news?pz=1&cf=all&ned=%(territory)s&hl=%(language)s&topic=%(topic)s&output=rss'
FEED = {
'ko' ... | [
"sooshia@gmail.com"
] | sooshia@gmail.com |
f774dd4085a2eb26479a0d5c41795e3381d0bc21 | 70e97bd9ff4e09f740ec666fbf5ae09a93b1a12e | /UDP/UDP_Server.py | 74e01e86ba6aafd8e69f01ee93708d001985b9a5 | [] | no_license | ayman-elkassas/Practical-Own | c241c8b5b6b4195d66a8bb47d0c753b84c05d27b | b303c6cc9c661362e5ba7cdc12a86c63d94d80da | refs/heads/master | 2021-01-09T06:33:55.362618 | 2017-02-05T18:05:28 | 2017-02-05T18:05:28 | 81,011,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import socket
#determine ip type ( IPv4,IPv6 ) and transimision protocol type ( TCP OR UDP )
sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.bind(("127.0.0.1",3000)) #bind means join or connect
data,address=sock.recvfrom(1024)
text = data.decode('ascii') | [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
8c49138d00e10f5b67630ddf9bf794ad29d79d14 | 9a30ca725bdec0795093f5318eb28564afe88ffd | /sawtooth-module/validator/sawtooth_validator/server/core.py | 7ead70e9ab2e303bfc58bee4a1614078ae46d12c | [
"CC-BY-4.0",
"Apache-2.0",
"Zlib",
"MIT"
] | permissive | cylon56/Cross-chain-Cryptoasset | 7d8b62cf4f2f4ca8150315d060048e7206700619 | 26d13ebeb16ec2b64cace31a61e265a2f3165557 | refs/heads/master | 2020-03-24T22:40:18.597344 | 2018-08-06T20:21:43 | 2018-08-06T20:21:43 | 143,096,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,287 | py | # Copyright 2016, 2017 Intel Corporation
#
# 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 ... | [
"michaelnlewellen@gmail.com"
] | michaelnlewellen@gmail.com |
c840b0eca1e96539f3f005041cccea99ee8a46a8 | 36a2f42d887959f7819b0477a4f8c259f9f57c21 | /utils/file_handler.py | cbea7614612e226dd12daf452f1023de45f26322 | [] | no_license | khaxis/image_tags | 25cf57a649e8678558199051daf6c3e685b1501e | 2765f48a268775fe53902723493988451990a7c1 | refs/heads/master | 2021-01-11T06:35:02.633260 | 2017-06-08T08:22:05 | 2017-06-08T08:22:05 | 71,862,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | """
The idea of this module is to abstract files handeling. Historicaly they have been stored on local disk. Moving to the cloud now.
"""
import io
from boto import storage_uri
SCHEME = 'gs'
def get_file_stream(file_path):
content = storage_uri(file_path, SCHEME)
content_stream = io.BytesIO()
content.get_... | [
"khaxis@gmail.com"
] | khaxis@gmail.com |
42d5447390d6c320fc2a9c365f222566a5e00d58 | 5c7089ceddd2503ec79a6d81eb2140ac8cd64209 | /snuggle/web/routing/oauth.py | e3d4c9f1eda322e528eef85c4d6764990ebf19cd | [
"MIT"
] | permissive | halfak/snuggle | a7e12ed0b82d6dca3c5a1154ef77e2a281306439 | 384818aaf8a783013b076ada3c74226f10e5dc18 | refs/heads/master | 2022-04-07T03:30:06.500679 | 2016-10-30T23:14:23 | 2016-10-30T23:14:23 | 72,371,739 | 2 | 0 | MIT | 2020-02-28T13:51:05 | 2016-10-30T19:52:01 | JavaScript | UTF-8 | Python | false | false | 451 | py | import json
from bottle import post, get, request
from snuggle.web import processing
from snuggle.web.util import preprocessors
# /oauth/initiate/
@get("/oauth/initiate/")
@preprocessors.session
def oauth_initiate(session): return processing.processor.oauth.initiate(session)
# /oauth/callback/
@get("/oauth/callback/... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
60e4627fb8813e7e21791775e0fd18e5130e7bf0 | 975704b9d73e39275ef8f7b2cf70ce0f52e78bba | /Table.py | 84b7a351807a9ee17f9857b2b32a3b6804ee28ec | [] | no_license | kunu2804/PythonLab | 680d9a787d47d9ea3edec0f21c32d2bd3c06f323 | daeb2d1aa58eed746e9a6bbbf520e4f1934b81a3 | refs/heads/main | 2023-08-22T21:08:52.471494 | 2021-10-11T16:04:37 | 2021-10-11T16:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Q. Write a program to print multiplication table for a given number using for as well as while loop
# By - Kunal Baraniya
num = int(input("Enter Number: "))
print("Table of " + str(num) + " =")
while(num>0):
for i in range(1,11):
print(num, 'x', i, '=', num*i)
break
# Out... | [
"noreply@github.com"
] | kunu2804.noreply@github.com |
9599c70352c7192bda1d9c5a4e92ced129563c66 | c1ad83f59be8bce846a09fe2b4cc36269d130192 | /project/data_prep/clean_scisumm.py | 9e53d461e85b6178c141f86357fbe17bd891a983 | [] | no_license | heikalb/CMPT825 | d498b8977d2a451c5673f16c549506bf7ea2a9b7 | 467abb2168babd518662df32f2674c877d4dec2f | refs/heads/master | 2023-05-11T12:15:20.655939 | 2019-12-23T22:58:40 | 2019-12-23T22:58:40 | 220,340,940 | 0 | 0 | null | 2023-03-24T22:57:45 | 2019-11-07T22:32:52 | Jupyter Notebook | UTF-8 | Python | false | false | 2,186 | py | """
Clean article and abstract data in the Scisumm dataset and place them in separate files.
"""
# coding: utf-8
import os
from xml.dom import minidom
import xml
art_xmls = []
summary_xmls = []
human_summary_txts = []
articles = []
summaries = []
# Get paths of article XMLs
for r, d, f in os.walk('../data/scisumm-... | [
"heikal93@gmail.com"
] | heikal93@gmail.com |
3d7cdbb64b99d5a7c4a1331681e23069ff80eb8a | 8475b07b53ec6de9ff92a65cad8d06d4e0732e34 | /SinglyLinkedLists/python/DoublyLinked.py | 4386d69dfc92d3dd7448321d508bfb747cedaaab | [] | no_license | p-cap/algo-data-structures | 2461293c9daf8d5e9af22e74e3979d8fd3ed1add | 3512c81eef868bfb647a0fb386816ff1231913ae | refs/heads/main | 2023-03-05T00:07:36.849024 | 2021-02-19T17:17:19 | 2021-02-19T17:17:19 | 336,418,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | class PcapDoublyLinkedList(object):
def __init__(self):
self.head = None
class PcapNode():
def __init__(self, value):
self.value = value
self.next = None
self.previous = None
# decalred the list
pcapList = PcapDoublyLinkedList()
# declared the nodes
pcapHead = PcapNode("Uno"... | [
"slashedeye@gmail.com"
] | slashedeye@gmail.com |
7c1c6656e90b5178411fe365e4ba970c5ad541e1 | d07307e15105fef3d9ba604f55af34835d7533e7 | /dlapp/main/urls.py | 9aeaeee5c0ea57e4452031f85886f6b6afecac8d | [] | no_license | jun-16/animalai | ededda46b5e2b9901a2b5e3a1111732a3b777754 | eb315bd1d33f3a210aa16b04586c026926751800 | refs/heads/master | 2020-03-08T08:20:59.611004 | 2019-04-14T06:25:05 | 2019-04-14T06:25:05 | 128,020,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.conf.urls import url
from . import views
from main.views import Home, upload
#urlpatterns = [url(r'^$', views.index, name='index')]
urlpatterns = [
url(r'^$', Home.as_view(), name='home'),
url(r'^upload/$', upload, name='upload'),
]
| [
"junichiro.sumitomo@e-gravity.co.jp"
] | junichiro.sumitomo@e-gravity.co.jp |
80d068801eeb173da337bf4ab7b7b3e4eda4576c | 8d33ae757ce4e566f2525483f9b40579708de043 | /healpix_to_mesh.py | fadb021b3e4b895da8b3f6f97773a4cd5cb82cb6 | [] | no_license | joezuntz/3dprint | 2bab71bee8fea3506e632b19b3c9f1515db0b119 | 9836af734d5ab9689f4e5e6e1051c112cc028e04 | refs/heads/master | 2020-06-24T16:57:09.964409 | 2019-07-29T09:21:48 | 2019-07-29T09:21:48 | 199,022,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | import healpy
import stl
import numpy as np
def healpix_to_mesh(healpix_map, vmin=None, vmax=None, radius_variation=0.05, hemisphere='both'):
"""Make an STL mesh from a healpix map.
"""
npix = healpix_map.size
nside = healpy.npix2nside(npix)
# May which to cap the maximum variation
if vmin is... | [
"joezuntz@googlemail.com"
] | joezuntz@googlemail.com |
68dd71a34db06a3e7a917ed02689051115f6ad75 | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/fluid/dygraph/dygraph_to_static/program_translator.py | 7c039efeb1d34b772c15206f8cc372cbd8f1884f | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 41,809 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | seiriosPlus.noreply@github.com |
c6e3bcb4f3247eab5377cf6364e3705af4e21173 | 4d81a1065f1e487aebae794d5637d37423efd345 | /PyTest_2/test_file_11.py | fad377384ac463f312929453ca675996dcfde478 | [] | no_license | amanoj319319319/EclipsePython | b10cc787125f681e8cb134301c20c450e52e5154 | d366839e03c13daf052874e44aafe21d0f9d437d | refs/heads/master | 2022-09-08T03:47:08.013223 | 2020-06-01T06:12:14 | 2020-06-01T06:12:14 | 267,015,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | ##https://www.tutorialspoint.com/pytest/pytest_tutorial.pdf
#https://www.guru99.com/pytest-tutorial.html
import unittest
import pytest
from selenium import webdriver
import time
import pytest_ordering
import pytest_html
from selenium.webdriver.common.by import By
import pytest_rerunfailures
class Test_Testing2():
... | [
"a.manoj16@gmail.com"
] | a.manoj16@gmail.com |
b8947586aa09a52a9513dc0465110568bb8d6273 | 53994cd9f5e7170190ad0cc92f206338f1d9ee51 | /server.py | 96075e32ee7b07068d7db1a04ff1cf3aa3377d57 | [] | no_license | onatc/SimpleSiri | 02f446cc28a97cb72778adc7d7899aa1a5fa71a7 | fd369104e4c3008c85ffafb801f65bc5b5f574df | refs/heads/master | 2020-03-09T11:58:01.523389 | 2018-04-09T13:15:22 | 2018-04-09T13:15:22 | 128,773,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | #!/usr/bin/env python3
import wolframalpha
import serverKeys
import os
import sys
import socket
import pickle
import hashlib
from cryptography.fernet import Fernet
host = ''
port = int(sys.argv[2])
backlog = int(sys.argv[4])
size = int(sys.argv[6])
client = wolframalpha.Client(serverKeys.wolfram_alpha_appid)
s = so... | [
"noreply@github.com"
] | onatc.noreply@github.com |
bdc1abbcea60534d7378d0d3b011e9518c61bde7 | f94c3f8ca0876444714518950fb3776cd32b3c56 | /area/migrations/0001_initial.py | 7e5bf70e96bba5ee0fc2227b469e11b25ac8db7b | [] | no_license | dengshilong/test-django | 13abe65c48e2eb5f83b3fbf1ddb2c8e66f392f29 | 853f342cb3d7958d120beafe54028c4e8fc2c822 | refs/heads/master | 2020-04-02T13:00:00.577137 | 2016-11-19T03:24:46 | 2016-11-19T03:24:46 | 62,448,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-02 12:28
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import mptt.fields
class Migration(migrations.Migration):
initial = True
dependencies = [... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
4b3ef732583128e53e0513d15cfa521e048c6f99 | 1a6af3dae05e649f7106b4c487dc48b7bf2ee06d | /nlu/streamlit/08_sentence_embedding_manifolds.py | 688d9f87822f56bbe1a30d5d3a73d2386eca4016 | [
"Apache-2.0"
] | permissive | JohnSnowLabs/spark-nlp-workshop | 8911e11a82e2f5f6cd8774ed36753a0215528381 | 25531c9501219ee9874090d02c02985596e6f432 | refs/heads/master | 2023-08-31T03:37:10.689274 | 2023-08-30T18:40:50 | 2023-08-30T18:40:50 | 145,453,331 | 947 | 587 | Apache-2.0 | 2023-09-14T13:01:23 | 2018-08-20T18:06:12 | Jupyter Notebook | UTF-8 | Python | false | false | 362 | py | import nlu
text= """You can visualize any of the 100 + Sentence Embeddings
with 10+ dimension reduction algorithms
and view the results in 3D, 2D, and 1D
which can be colored by various classifier labels!
"""
nlu.enable_streamlit_caching() # Optional caching the models, recommended
nlu.load('embed_sentence.bert').viz... | [
"66001253+ahmedlone127@users.noreply.github.com"
] | 66001253+ahmedlone127@users.noreply.github.com |
5a7772e786b1242b8206f85b33f5ba4a4d87888c | 66bd051d9d2bbbdec5c7fdd4021bc73c6c7c7294 | /Mission_to_Mars/Scraper.py | e6cc60696e2e21823069cabfc73f62ff2c7dafe1 | [] | no_license | Crobinson17/web-scraping-challenge | 90527d8fba9e7e8907b7b102f7d5f7a3e06c6d06 | 2b1addaa2240e73d237970d492f74b6d3f811a03 | refs/heads/main | 2023-05-26T14:48:41.619007 | 2021-06-10T05:38:27 | 2021-06-10T05:38:27 | 371,876,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | from splinter import Browser
from bs4 import BeautifulSoup as soup
import pandas as pd
import requests
import pymongo
import os
from webdriver_manager.chrome import ChromeDriverManager
def init_browser():
executable_path = {'executable_path': ChromeDriverManager().install()}
return Browser('chrome', **executab... | [
"noreply@github.com"
] | Crobinson17.noreply@github.com |
d0a158d1a2258f7f6db2c3798c6bd1c3ba01b883 | 42f5eaf16bfd7076cb5a598cf2f239faa575f28b | /05-grpc-google-cloud-speech/python/google/ads/googleads/v1/common/ad_asset_pb2.py | ccd03074fc01282c95108b7ddb565cf08ab53d4e | [] | no_license | jiriklepl/IMW-2019 | ab0e1c791a794ccf8a6a8d8d4e732c29acee134c | 921c85d3c8132114ad90db8deb52eb5ddc06c720 | refs/heads/master | 2020-08-28T13:29:15.087785 | 2019-12-15T17:12:24 | 2019-12-15T17:12:24 | 217,711,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 8,409 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/common/ad_asset.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf imp... | [
"jiriklepl@seznam.cz"
] | jiriklepl@seznam.cz |
bf6ac9b7698ee3bb2912c54fec4693bfd0c6b505 | 7f57e37222fa7d97e6b9abc592e353f87de36025 | /print_temp.py | c28cbf1fcc22d1c4a0b3e2ea6558ae1ebf8a1d04 | [] | no_license | asanchez78/DS18B20-temperature-log | db4dde404d62965ba59e765cff2e108a1aa73b1d | 6059076d065038c99d58f9c3458ffbad2889696c | refs/heads/master | 2021-05-09T23:29:09.760489 | 2018-01-24T16:13:14 | 2018-01-24T16:13:14 | 118,789,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/python3
import os
import glob
import time
import datetime
from decimal import *
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
base_dir = '/sys/bus/w1/devices/'
device_folder = glob.glob(base_dir + '28*')[0]
device_file = device_folder + '/w1_slave'
def read_temp_raw():
f = open(device... | [
"anthony@xebix.com"
] | anthony@xebix.com |
ce279df001f150b795732de3fb5d8ae56714c416 | e34f21d6836d6837b6856968162148891c29390c | /processing.py | 78cb92d6e2670f6205a6b8912ea97d5deb5b2b38 | [] | no_license | MuztaghAta/handwirtten-digit-recognization | f7dcd0e7333ec134e835e37295ac2e48bb79157a | e83e7522663be453333265c4074e816a4fa0193c | refs/heads/master | 2022-12-14T19:00:13.858079 | 2020-02-01T14:42:59 | 2020-02-01T14:42:59 | 164,705,898 | 0 | 0 | null | 2022-11-21T22:43:49 | 2019-01-08T18:06:12 | Python | UTF-8 | Python | false | false | 3,290 | py | """This program pre-processes self-captured images containing handwritten
digits so that the trained NN model can recognize efficiently. The idea is to
convert digits in the original image to digits that have the same format with
MNIST images that were used to train the NN model.
References:
http://www.hackevolv... | [
"noreply@github.com"
] | MuztaghAta.noreply@github.com |
cdda453cc0a86c9b79620fc9b24b4a61db406d90 | 03922080543f7ef49ee594c7cd774ca7567cc57e | /algoritmos/exercicio.py | 92df7cf8459adc8cc591944293ed06255ece0c0d | [] | no_license | Elaineshield/aula-cc | ae3219a645a47b89ffcc9aedac7505ba0eeed497 | 8fb782d643a6f5c1b92c677718231ceec6ab1fec | refs/heads/main | 2023-04-09T17:44:03.094971 | 2021-04-23T00:31:04 | 2021-04-23T00:31:04 | 360,719,046 | 0 | 0 | null | 2021-04-23T00:37:26 | 2021-04-23T00:37:26 | null | UTF-8 | Python | false | false | 16 | py | # qualquer coisa | [
"rainhadeles2000brokenbones@gmail.com"
] | rainhadeles2000brokenbones@gmail.com |
7e858475947aaf17e9d62c60f18dcbf653d58043 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_wallowing.py | 9ea44930d85d69937dbebfd471045b0321491801 | [
"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 | 242 | py |
from xai.brain.wordbase.verbs._wallow import _WALLOW
#calss header
class _WALLOWING(_WALLOW, ):
def __init__(self,):
_WALLOW.__init__(self)
self.name = "WALLOWING"
self.specie = 'verbs'
self.basic = "wallow"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dee3659b5ed35d15e0d69828401fdbc5fa5646f3 | ff90afd185dddadd654d5b12ff385ccb8305aff4 | /QuotesBot.py | 30caa8610838c50b2d1da555c2e271b1971dfe02 | [] | no_license | MaicoLeberle/QuotesBot | ffee622d1f1d42fa1c05e1de7874515f790d003d | 66541a71c85b04537400f02aa9e9cac5fbb03c78 | refs/heads/main | 2023-06-01T04:14:45.746652 | 2021-06-11T14:59:55 | 2021-06-11T14:59:55 | 375,852,454 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,331 | py | import logging
import sys
from random import randint
import pandas
import datetime
from telegram import Update, ForceReply, ParseMode
from telegram.ext import \
Updater, CommandHandler, MessageHandler, Filters, CallbackContext
# Enable logging, mostly for debugging
logging.basicConfig(format="%(asctime)s - ... | [
"maico.leberle@gmail.com"
] | maico.leberle@gmail.com |
14ec9fc3a79b66b285606d350d30ad3ab04e350f | 64d89e2c0468ce6a7a55a6c3415b7fce4f049ea1 | /Taller de Estructuras de Control Selectivas/Ejercicio_11.py | 1006690172dd281146550084445d15a8a26d613a | [
"MIT"
] | permissive | JRobayo99/Talleres-de-algotimos | 16c544725de5aff3b6c6c804d8958837b7acc13f | 684ad3a4a21ada2f8347a6bae6eaa845d5abb2dc | refs/heads/main | 2023-07-31T07:29:08.939938 | 2021-09-19T21:14:41 | 2021-09-19T21:14:41 | 392,040,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | tf=int(input("Ingrese la tempratura en grados Fahrenheit: "))
if(tf > 85):
print("Natación")
elif(70 < tf and tf<=85):
print("Tenis")
elif(31 < tf and tf<=70):
print("Golf")
elif(9<tf and tf<=32):
print("Esquí")
elif(tf<=10):
print("Marcha") | [
"jramire23664@universidadean.edu.co"
] | jramire23664@universidadean.edu.co |
07da54663e83619ebf814394a3a05b0043f02146 | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/spook/services.py | 827880ce6115fd6c994621ecc4451b0afda60ebd | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 10,941 | py | """Spook - Not your homie."""
from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
import importlib
from pathlib import Path
from typing import TYPE_CHECKING, Any, final
import voluptuous as vol
from homeassistant.core import (
HomeAssistant,
Service... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
812dd0904f388324462562aab2d50b93971aaeed | d243e017ad9248b7852359797453b8078ab055df | /bin/extract_bookings_single_attachment.py | a3953b7a46f7d6c469f2dd3e432ae5b904e893f3 | [] | no_license | capitolmuckrakr/lvmpd_emails | 5d436907b694df5fde5472a970ca5e81cfbd6b97 | ff0d0752819ed03a61954dac4a405c7f85d41a1a | refs/heads/master | 2022-12-09T07:41:17.232160 | 2020-09-01T13:58:41 | 2020-09-01T13:58:41 | 109,310,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from __future__ import print_function
from bs4 import BeautifulSoup
import re, pandas as pd, sys
def extract_booking(booking):
booking_page = open(booking)
soup = BeautifulSoup(booking_page,'html.parser')
table = soup.find_all('table')[-1]
table = [row for row in table][1]
ws_fixer = re.compile(r"\... | [
"alex@capitolmuckraker.com"
] | alex@capitolmuckraker.com |
413efcc1e21b7e2d3f6ce520a53c0c72361966b3 | bc06438b13fac1bf1f5e67689ab384b840fd1d66 | /src/Repository.py | 7b8ffafa04c81ff3fb35c40cd1335f393cacc9b2 | [] | no_license | vanpana/Vertebral-Check | 2a68691687481e346abafd5d4e01632c2da5a1e5 | 20dd07c17380b368ad03cd5b0ca7ce1f3f7912c3 | refs/heads/master | 2020-03-14T14:01:30.462122 | 2018-05-03T11:16:32 | 2018-05-03T11:16:32 | 131,644,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from random import shuffle
class Repository:
def __init__(self, filename):
self.data = {}
self.__load_data_from_file(filename)
def __load_data_from_file(self, filename):
with open(filename, 'r') as file:
for line in file:
line = line.strip("\n").split(",")... | [
"van.panaite@gmail.com"
] | van.panaite@gmail.com |
723b1623f4a7e4d3638578844dbe53a0e285fdaa | 7da8b92ff8b128ae2cdb0c36af5a15c211ff070b | /toolutils/readconfig.py | acc14cda87b770896eba34dcfc9ecccca0a7cd82 | [] | no_license | XIAOJIEZO/auto_web | a30d6f8377dad93d04b8a953a4c5cfd8cc46bed9 | 4019597d1b455bf48cde418abe7d0159b6831550 | refs/heads/main | 2023-06-07T02:15:24.270390 | 2021-06-21T15:12:56 | 2021-06-21T15:12:56 | 372,169,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import yaml
class ReadConfig(object):
def __init__(self):
with open(r'config/GlobalGonfig.yaml', 'r', encoding='utf8') as f:
self.__result = f.read()
def get_test_host(self):
return yaml.load(self.__result, Loader=yaml.FullLoader)["HOST"]["TEST"]
| [
"Liujie26018"
] | Liujie26018 |
452c687b93acd18841ab408b2da5e5db7a0a0179 | 50a8f856343923b972f549d88ff3253c66e91229 | /looppay300.py | c5a19484266b3e95bcca99d4ee52ac1a284029a9 | [] | no_license | yudhaprimadiansyah/MyRandomPythonScript | d34ec525a6f7180d0804340595310b5a57d840d6 | 82e1300362bcdb26b1cece2652f773b9a695da8e | refs/heads/master | 2021-03-28T14:18:02.719209 | 2020-03-17T03:21:37 | 2020-03-17T03:21:37 | 247,869,486 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py |
file = open("payload.py", 'w')
data = ""
string = "0123456789ABCDEF"
payload = ""
for i in string:
for a in string:
payload += "(('"+a+"'*3)+('"+i+"'*4)+'\\x"+i+a+"')+"
file.write(payload)
file.close()
| [
"yudhaprimadiansyah@gmail.com"
] | yudhaprimadiansyah@gmail.com |
5ccf71e79cc611640bbb4fcc4e86577cadc47f1f | 0cbc02dd7d1efbe61de04dcf1c6eccb6496bf074 | /month01/day16_adv/test/test01_generator.py | db25cdc6cf2900234371d72c41e67431d2e088a1 | [] | no_license | fsym-fs/Python_AID | 0b1755c15e20b214940041e81bedb2d5ec99e3f9 | f806bb02cdb1670cfbea6e57846abddf3972b73b | refs/heads/master | 2021-03-20T06:57:45.441245 | 2020-05-27T14:13:45 | 2020-05-27T14:13:45 | 247,187,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """
参照enumeration自定义my_enumeration函数
将list01中,长度大于2的元素设置为空字符串
"""
# list01 = ["唐僧", "猪八戒", "悟空"]
# dict01 = {"唐僧": 101, "猪八戒": 102, "悟空": 103}
# for i in enumerate(list01):
# print(i)
#
#
# def my_enumeration(a):
# index = 0
# for item in a:
# yield (index, item)
# index += 1
#
#
# f... | [
"1085414029@qq.com"
] | 1085414029@qq.com |
48cbdbd8b37d6f37e77826c455bf1a4d78b8583f | 76b6c2b41ba11ca0ca86d3ae9baa5f189a9c6534 | /lib/__init__.py | f2a59c20c32f71fcefe96e1e24b91e5df0c843c9 | [] | no_license | startagain2016/J2ExpSuite | 8faea7ac777604c9a221299f9577ac0bf4261fd2 | 232d08fe1e274e328bbb8f3e982040f7ba4b4a72 | refs/heads/master | 2023-03-22T00:02:22.015037 | 2020-06-23T09:10:44 | 2020-06-23T09:10:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | from lib.Color import Vcolors
from lib.Urldeal import urldeal | [
"noreply@github.com"
] | startagain2016.noreply@github.com |
f76e1d26afef9c3db74abb87ed94e348cbea7826 | 0c497f3053a44ea12b6209b9343871ce5f967ea4 | /Simulator/power_consum_measure.py | 4e5f95416f6a0a7e5671872f70e16becfc6aed3f | [] | no_license | 9511batayan/Eclipse | fcab1aa9883348de51bd3a9016019f85a9ac71b6 | 564f4da014dcb36009a436baa9f03ca82c45699e | refs/heads/master | 2022-08-17T16:57:26.448704 | 2018-08-07T16:10:14 | 2018-08-07T16:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | '''
Created on 2018/08/03
@author: 皓司
'''
from MobileSensorNode import MobileSensorNode
import math
def main():
robot=MobileSensorNode(5,5)
x=robot.getx()
y=robot.gety()
for i :
dis=math.sqrt(i*i+y*y)
output=robot.current_com_power_consum(dis)
i +=2.5
if(i>=10):
... | [
"14ec043@ms.dendai.ac.jp"
] | 14ec043@ms.dendai.ac.jp |
fc6f327544eb21819c633b2eb0612a5fb4929879 | 62b51f02fb209cf036fdbcf00523efdaf318bb2d | /wuaiwow/models/__init__.py | 98a8f6eac2f210d4cc56d4b16d37561d3ee5a95a | [
"BSD-2-Clause"
] | permissive | NlxF/wuaiwow | 58f916ac1855a671908350206f1bb1b1ed1395c9 | 6e4ddd4a2bd98f78aa53f05314ca02f72b579053 | refs/heads/master | 2020-04-23T22:30:03.784811 | 2019-04-10T12:03:49 | 2019-04-10T12:03:49 | 171,503,902 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # coding:utf-8
from users import (User, UserIp, UserInvitation, Characters, Permission, Role, Message,
UserMessage, UserOnline, PermissionRole, permission_has_role, role_is_admin)
from info import Donate, GuildInfo, Agreement
from prompt import AlivePrompt, LevelPrompt, RacePrompt, JobPrompt, Gender... | [
"luxiaofei911@gmail.com"
] | luxiaofei911@gmail.com |
55f45f1d5d803ee3ba85a0e03a7b60a7cc2865db | 0a2f6950f662a441e967af8009826c20444d16f9 | /code_20201031/scrapy_20200529/scrapy_20200529/items.py | 9b5944b512150ac85167ed6ef9e17a8d4fbf9c5b | [] | no_license | nxhuy-github/code_20201031 | 5827028bc4c3842342055ba4224d8581cc56b770 | b034827a293d9acfa1376e5f43e77e417c190985 | refs/heads/main | 2023-01-04T23:57:26.031054 | 2020-10-31T18:37:21 | 2020-10-31T18:37:21 | 308,937,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class Scrapy20200529Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"nxhuy2611@gmail.com"
] | nxhuy2611@gmail.com |
dcb6a27e3447c048454e9444d9290b87e271567a | e632216f8f6de621269a008ccef78b1a1d76e89e | /first/venv/bin/pip3.7 | c7278d9940bc527b25a53a94316d0f6cec694a2d | [] | no_license | Giuseppe-Meo/python-pi-example | d250114c156e6271c6994fda0a243efe33adec84 | d84e921a5d100015ae8016d186edecff7f0477ee | refs/heads/master | 2022-11-05T14:07:00.760047 | 2020-06-23T20:23:56 | 2020-06-23T20:23:56 | 274,478,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | 7 | #!/home/giusepps/PycharmProjects/first/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gm17417@essex.ac.uk"
] | gm17417@essex.ac.uk |
15fee65ff908675945f192902b93b79cf9fb3874 | 587dda9745b55127e29fa7588dc501ce21c761a9 | /scraper/findhome/pipelines.py | a4eda7de20f2d16ac859827922aa6f06f01e653b | [] | no_license | tayfun/findhome | e7dd842c0e7683fa214a99b012fd6216db948d97 | a0bd8f13f51ea043dfe50f838419846d75a9d2ee | refs/heads/master | 2021-01-10T02:52:28.950045 | 2015-10-11T11:12:26 | 2015-10-11T11:12:26 | 44,049,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class FindhomePipeline(object):
def process_item(self, item, spider):
return item
| [
"totayfun@gmail.com"
] | totayfun@gmail.com |
99e7b2d501dbb03573e08ed3e6e37b95c7453772 | bb375781e942087f7dae0a1c4d1da6584c5e6af3 | /settings.py | f9854a3588fea27e284b56250709fcd8e32770ac | [] | no_license | magmax/DjangoBasic | ed3a93a16188cb63e18339f71ec3961239f736ad | 99f028664bc91457722b7e2eb439bec3750688e8 | refs/heads/master | 2021-01-23T13:28:48.766257 | 2011-08-15T07:44:51 | 2011-08-15T07:44:51 | 2,208,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,049 | py | # Django settings for myblog project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'N... | [
"miguelangel.garcia@gmail.com"
] | miguelangel.garcia@gmail.com |
07bda099dee874a5f2c802b1c82fb169bd649c23 | 7794e80641a611a77ae9d7d42bd2009edb1e8a47 | /algoritmos_fabio01_parte02/f1_p2_q7_dias_horas_minutos.py | fd0de9b0a300711937af1f545b0fad305f6e4799 | [] | no_license | rogeriosilva-ifpi/ifpi_ads_algoritmos_2020 | bec767ff82f4a9444d552f22017f26b2915e6357 | bd194b8fcefbdf4b66245e216e546632e1db279e | refs/heads/master | 2022-12-09T15:28:45.730262 | 2020-09-03T12:51:14 | 2020-09-03T12:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Leia um número inteiro de minutos, calcule e escreva quantos dias, quantas horas e quantos minutos ele corresponde.
minuto = int(input('Digite o número em minutos: '))
dias = minuto // 1440
horas = minuto % 1440 // 60
minutos = horas % 60
print(f'{minuto} minutos equivalem a {dias} dia(s) {horas} horas(s)... | [
"noreply@github.com"
] | rogeriosilva-ifpi.noreply@github.com |
f2cd458719a1b2a6c45725aba38870be9cf8ff30 | 37181d99530026ddb3a58e2864a55096bf9003a5 | /DataMining/HW1/Amazon/Utility.py | 3c691e1753b5ff147492fe19c4b118bcbda7e946 | [] | no_license | ktapsyman/Nccucs_work | de0ddaf93a5063efbe19f2832a97e91e4618725e | 4a09b08851a29f848555fa8a881e72e64f8f0dc3 | refs/heads/master | 2018-09-16T04:17:50.786908 | 2018-06-20T01:56:46 | 2018-06-20T01:56:46 | 105,001,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import pandas as pd
def ReadTrainingData(Filepath):
return pd.read_csv(Filepath)
def ReadTestingData(Filepath):
return pd.read_csv(Filepath)
| [
"ktapsyman@gmail.com"
] | ktapsyman@gmail.com |
eb6622db95220cd2835e245ac0a2705598911330 | 1a25d9db773325e0e9e53385208b629fe697c635 | /Push/BrowserComponent.py | 9ceb5cd1c004c55b2d0109b92e89939ea0128066 | [] | no_license | konszpic/AbletonLive9_RemoteScripts | d01f1b99c4d81cff48728c4e68e04a6ab170c40f | b80d4a4c4add6357f9c807dcdec47b24a2a708f8 | refs/heads/master | 2021-01-24T20:01:41.888125 | 2013-11-21T08:18:01 | 2013-11-21T08:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,575 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Push/BrowserComponent.py
from __future__ import with_statement
from functools import partial
from itertools import izip, chain, imap
import string
import re
import consts
import Live
FilterType = Live.Browser.FilterType
D... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
32c67e306f3164cb62c7f999d0694d5a526f9726 | ab2c7c93cac411cb7419e1813987c101931d3d5b | /boundary_checking/test_Range4.py | 2c9ae0d77bb1d3925112218795dd487982cbf492 | [] | no_license | vash-hsu/python | 574ca2a4ef76e8a36f489010403c8e699ddf5b88 | ad3de1dafbe61d1180ab3e2283f758de3d4edd68 | refs/heads/master | 2021-01-21T21:43:26.649602 | 2016-05-11T16:21:22 | 2016-05-11T16:21:22 | 18,483,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,450 | py | #!/usr/bin/env python
import unittest
from Range4 import Range
from Range4 import div_mod
def log_print(label, message):
print("%s: %s" % (label, message))
def log_title(message):
log_print('CASE', message)
def log_desc(message):
log_print('DESC', message)
class BoundaryTest4Range(unittest.TestCas... | [
"vash.hsu@gmail.com"
] | vash.hsu@gmail.com |
6f24047a7dd29849aee3c48d35c190d56f99b757 | 16beed9ab443dee7cacefea9c3db8c8ca381d1ab | /scripts/BreakpointsSave.py | 16385c3128c5773ae81b923bcc07601e3454bae0 | [] | no_license | YuKnight/jeb2-samplecode | 4cc010757345c6ec6f7fee0913fa0388686b0e4e | a26b0597da66ff41eaff54c7a35aed0266512fdf | refs/heads/master | 2020-04-29T11:57:03.043105 | 2019-02-08T23:09:01 | 2019-02-08T23:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | """
JEB script to save (persist) the breakpoints (location and state) of the current debugging session to a file.
- Breakpoints file: [JEB]/bin/breakpoints.txt
- See converse script to reload breakpoints onto a debugging session: BreakpointsLoad.py
The breakpoints file is JSON formatted and can be edited manually as w... | [
"nico@pnfsoftware.com"
] | nico@pnfsoftware.com |
f760fe424b29472e41c81cbbd59ab91d8e8e2170 | d0701226f795ed1e4da862d9f51320fe04026336 | /free-python/turtle1.py | d922ada07c916bb3f20cb45fe3916ce1b7815af1 | [] | no_license | gitdxb/learning-python | 329a8250c56088c7d90a33ae20aa34188eec2a4a | afdd4769f0b2f87eba3fdbd4d8995e201641fe68 | refs/heads/master | 2023-02-11T10:21:32.756320 | 2021-01-05T19:54:40 | 2021-01-05T19:54:40 | 288,846,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from turtle import Turtle
tina = Turtle()
def draw(name, r, col):
name.color(col)
name.dot(r*2)
draw(tina, 150, "blue")
draw(tina, 100, "red")
draw(tina, 50, "yellow") | [
"trantambls@gmail.com"
] | trantambls@gmail.com |
479e5ba6b20dc98c79280fad0aef7d90f72fb86d | 0a7d49300a547eecc823b78a891057f1017db1b2 | /net_spider/dou_log.py | 31cba7e5c57b7bf034e514b7b4d8ad0eb22a1577 | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | from selenium import webdriver
import time
import requests
from lxml import etree
import random
class DouBanSpider(object):
def __init__(self,username,passwd,browser="Chrome",base_url="https://www.douban.com/"):
self.base_url = base_url
if hasattr(webdriver,browser):
self.driver = get... | [
"964725349@qq.com"
] | 964725349@qq.com |
c7bf08d78ff048e8a26e5a89ca4ffdf7a27c0bd8 | 5123ec1c7bee26de2810affc240802563a372777 | /mapthree/venv/bin/runxlrd.py | c4ec9823dbbf7593699816cadd30b79d5dcbd54c | [
"MIT"
] | permissive | bitbyt3r/mapthree | 7371fed9dbbc2b655129b35ec86e1acfcf76ec7f | 8579330b0f5dcae8a3bb4dcd7658b084628e3b0f | refs/heads/master | 2020-12-03T03:56:48.074806 | 2017-08-01T21:39:06 | 2017-08-01T21:39:06 | 95,790,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,333 | py | #!/extra/mark25/mapthree/mapthree/venv/bin/python3
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the contents of first and last... | [
"mark@hackafe.net"
] | mark@hackafe.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.