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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9165164e515db0c6b566cd86b9fc82c03c2e684 | 6d65d71e3b41c50692e2d6a662ef260537ecfcb7 | /app/recipe/tests/test_tags_api.py | 81287f276f7c7992036c44da95c011f71182a783 | [
"MIT"
] | permissive | shambhu1998/recipe-app-api | 1fc851eb2a52e3bca6afd653b036edb4b4cc8df0 | 208aa3d5b8f8d8559ef7a31841d480bec9cd8a15 | refs/heads/master | 2020-12-02T06:03:06.212375 | 2020-01-14T09:46:04 | 2020-01-14T09:46:04 | 230,916,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | 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
TAGS_URL = reverse('recipe:tag-list')
class P... | [
"sksr140@gmail.com"
] | sksr140@gmail.com |
c6e9767ea4e3fefcba0e336da28de9a358a009d6 | 11740b3da6938c614a452675566d9b71664440c6 | /Exercícios/Desafio 022.py | 9736ea499521f150e28b234a18e7a2fb3f2c391b | [] | no_license | yanbernardo/exercicios-python-3 | 174090868ebbe847c37a2e34c0dc416d220b7b9e | b9e0854b3f545093d542c1d9886e617d00d0375e | refs/heads/main | 2023-04-18T17:02:34.016598 | 2021-04-29T23:54:52 | 2021-04-29T23:54:52 | 309,819,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | nome = input('Digite seu nome aqui: ')
print('-'*40)
print()
nome = nome.strip()
print('Seu nome com todas as letras maiúsculas:\n{}\n'.format(nome.upper()))
print('Seu nome com todas as letras minúsculas:\n{}\n'.format(nome.lower()))
list = nome.split()
cd = int(len(list)) - 1
conta = 0
while cd >= 0:
conta = cont... | [
"yan.bernardo24@hotmail.com"
] | yan.bernardo24@hotmail.com |
cb1c9466b8bc0fc0a5e9060466867e22b7a4cbbd | e55f6df2b9b458fc366daf61c4cc7ab96f8fce63 | /bughouse/wsgi.py | 3fe258bcf8749b281dc42b7682ba6cdc374d3ffd | [
"MIT"
] | permissive | eyetoe/bughouse-ranking | ecd6232505572306a46b18c6064f6068cd21ffe9 | d5e0ed2333621de11ad0328947c19c2c0474f677 | refs/heads/master | 2021-01-23T21:10:35.171275 | 2015-01-30T00:03:00 | 2015-01-30T00:03:00 | 30,049,731 | 0 | 0 | null | 2015-01-30T01:09:14 | 2015-01-30T01:09:13 | null | UTF-8 | Python | false | false | 473 | py | """
WSGI config for bughouse-rankings project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bughouse.settings")
import ... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
8d24074cf493679577f504d36046b4e457cb3996 | 5fb6e578b72b83b5c0db957f5add04b708f82eb1 | /scripts/filter_host_align.py | 70deb041b9ef8bf97803d83e9fc8b9ab0c265646 | [] | no_license | aehrc/vector-integration-simulation-pipeline | 5621efc35e047ec7aad6dfa02eed1aa946b8b946 | 3dac66c1bf4617912ea0231db1094ab88a821955 | refs/heads/master | 2023-04-08T14:34:25.300911 | 2022-08-04T05:50:33 | 2022-08-04T05:50:33 | 433,681,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | #!/usr/bin/env python3
# Filter host alignment (with all reads) for only those reads indicated to be integrations
from sys import argv
from os import path
import argparse
import csv
import pysam
import pdb
def main(argv):
#get arguments
parser = argparse.ArgumentParser(description='simulate viral integrations')
... | [
"suzanne.scott@csiro.au"
] | suzanne.scott@csiro.au |
5aef409cdd51bd675d0677ae9adb5f3d6a2189e9 | 816b36ccfc85eb3c5af0d7a22b9d06c52853851c | /latextree/parser/coredefs.py | b408bc3834a2c6f5e87e661e45119edbdd474c15 | [
"MIT"
] | permissive | imagingbook/latextree | 7695229db42d31b9492d9e228a3add3fea583668 | 272ee1594b3bdea39a043fb2ac2b86ac9a1728e8 | refs/heads/master | 2020-07-24T07:25:23.208478 | 2019-09-11T15:34:35 | 2019-09-11T15:34:35 | 207,846,182 | 0 | 0 | MIT | 2019-09-11T15:30:21 | 2019-09-11T15:30:20 | null | UTF-8 | Python | false | false | 22,590 | py | # coredefs.py
r'''
This file contains the dictionary `defs' which has the following keys:
Families:
1. `commands' argument definitions for commands
2. `environments': argument definitions for environments
3. `declarations': argument definitions for declarations
Stop token definitions:
4. `blocks':... | [
"evansd8@cf.ac.uk"
] | evansd8@cf.ac.uk |
6da801e4db2b489fb50e2e79f114dd5b8b5537d5 | 84b050cd57d092d6fe0c0351c9ab8fbe8698139f | /sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py | c09bbe02b9f0d00db2103c64e286684d53292f3e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | ormichae/azure-sdk-for-python | 825857ac29f6588410ea24a6cddd052898ad7ab6 | 15523b712402fc928ee58f2a5311ac9ea703699c | refs/heads/main | 2023-06-05T10:24:27.487981 | 2021-06-29T15:55:00 | 2021-06-29T15:55:00 | 381,446,657 | 0 | 0 | MIT | 2021-06-29T17:32:06 | 2021-06-29T17:32:06 | null | UTF-8 | Python | false | false | 11,379 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import datetime
from typing import Optional
from azure.core.exceptions import HttpResponseError
from azure.core.polling import AsyncLROPoller
from azure.c... | [
"noreply@github.com"
] | ormichae.noreply@github.com |
77bb3fb15b793880f1770bd45abc2a54be6d1c8b | 7ce35c8c48c6d805818089fcbe8bb226cc206bcb | /add.py | 5e305570df5909613e34536b6cf3d5839504e3fd | [] | no_license | bopopescu/pythonprograms | 341b73ecbde41115aa543993405db30a6e312fde | 2757953ab95411ec568d5ddb2b0718dd04e3c45b | refs/heads/master | 2022-11-24T13:59:28.333120 | 2020-02-12T18:02:59 | 2020-02-12T18:02:59 | 281,846,391 | 0 | 0 | null | 2020-07-23T04:02:03 | 2020-07-23T04:02:03 | null | UTF-8 | Python | false | false | 82 | py | a=int(input("enter a number"))
b=int(input("enter second number"))
c=a//b
print(c) | [
"techiejasna@gmail.com"
] | techiejasna@gmail.com |
b887f9f077f7570f52443962a16f4947be7a05d8 | 1e43c36e023d376b6c42ef72c5f71b5a416c3dbd | /8/get_grade_packets.py | 38695f049ba7b97e82fa1a05962b793ce1fd5b2e | [] | no_license | Archer279/NetworkSecurityFall2019 | e274f77cf06caba03b20b574e963ccca0503250f | 06d389d2684a47b61da050dbda5de6e3bde023ec | refs/heads/master | 2022-03-17T17:36:31.301879 | 2019-12-16T02:39:34 | 2019-12-16T02:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | from playground.network.packet import PacketType
from playground.network.packet.fieldtypes import UINT8, STRING, BUFFER, UINT16, BOOL
class GameCommandPacket(PacketType):
DEFINITION_IDENTIFIER = "20194.exercise6.gamecommand"
DEFINITION_VERSION = "1.0"
FIELDS = [
("cmd", STRING)
]
@cl... | [
"soap27century@github.com"
] | soap27century@github.com |
a6055b9637416e5bb76fe43919b05e1a96737cc2 | 24b7958da97e67f6bdf96802662cde1378a25ed1 | /common/qqMail.py | 0a8452dc4060a1e33117290f74dd01d0f76390eb | [] | no_license | zhangyayun812/python | 274b1d711fdaeca8c7ce6704d1b04f1bac2a0215 | 30fe2bec864ec117aa2154455fd16e0bcc0c00e4 | refs/heads/master | 2020-03-20T10:04:54.466031 | 2018-12-18T23:10:58 | 2018-12-18T23:10:58 | 137,358,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
"""邮件发送
Usage:
qqMail <receivers> <subject> <msg>
"""
from docopt import docopt
from email.mime.text import MIMEText
from email.header import Header
from smtplib import SMTP_SSL
if __name__ == '__main__':
# 将绑定交互参数
arguments = docopt(__doc__)
receivers = arguments['<receiver... | [
"zhangyayun812@163.com"
] | zhangyayun812@163.com |
a9531c33073d1fcf63cd979fe6112aea676fe846 | 0306982fc3d0bd6ff4bb12af3e2fea7e640b535c | /TraversingABinarySearchTree.py | 05c0912c4dbf7f2cde033c1a414b4bec75031ab1 | [] | no_license | Kyle-Holmstrom/BinaryTreeSearch | f03e4a34cb9fd1bb1faeadcff6aaa543aa6e4ff5 | 9de7611b18670e9317c071c3bbd61bf8fdae32b9 | refs/heads/main | 2023-07-18T04:35:12.033572 | 2021-09-03T03:16:08 | 2021-09-03T03:16:08 | 402,632,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | class BinarySearchTree:
def __init__(self, value, depth=1):
self.value = value
self.depth = depth
self.left = None
self.right = None
# Insert a value into the Binary Search Tree
def insert(self, value):
if value < self.value: # Checks that target value is less than root's value
... | [
"holmstrom.kyle@yahoo.com"
] | holmstrom.kyle@yahoo.com |
10fad30c48551a67a99b225b69ae6e0ae8f6d97a | 6a2e36b2a439a7961abc43ed58235a2e791468c7 | /MultiSourceData/Answers.py | 638d0731eabdcdbd5218927ea77c362bec1234b1 | [] | no_license | chegangquan/MachineLearning | 784644b93aedbb5307031d42645300910433f06b | 6d0bb17b79882a52d20f3e9f1e4aae7c4ae833dc | refs/heads/master | 2023-02-16T05:33:32.579602 | 2021-01-10T04:56:10 | 2021-01-10T04:56:10 | 320,622,697 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | import pandas as pd
import math
# 均值函数 E(x)=1/n∑xi
def avg(a):
return sum(a) / len(a)
# x与y的斜方差 cov(x,y)=E( (x-E(x))*(y-E(y)) )
def covf(x, y):
return avg((x - avg(x)) * (y - avg(y)))
# 标准差 √a=√(E[a-E(a)]^2)
def std(a):
return math.sqrt(avg((a - avg(a)) ** 2))
# 相关系数 pxy=cov(x,y)/(√x*√y)
def cor(x, ... | [
"507844892@qq.com"
] | 507844892@qq.com |
31cce398662515ac75d0d22c8b4c15694709c482 | 45d9a460a394498c1a7549c9a2c87ea85b455def | /Components/CommonPonents/FormLeftWordComponent/Inputs/check_box_input.py | b5a091339a14d1c696cba2e7db9da02faab079e7 | [] | no_license | linhaoi1997/UIAutoDemo | 731c235c06ede5d7b66dba217ada9f5a82ef1da4 | c01c8a63a47bcde0f055ea5cc04e573ba0e384f8 | refs/heads/master | 2023-07-04T23:03:27.555696 | 2021-07-22T01:47:02 | 2021-07-22T01:47:02 | 387,370,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.support.wait import WebDriverWait
from Utils.AssertTools.raise_error import raise_assert_error
from .base_input import BaseInput
class Checkbox(BaseInput):
name_locator = "./span[last()]"
input_locator = ".//input"
@prop... | [
"15774518534@163.com"
] | 15774518534@163.com |
f557d03fd78d6d96103982547bae45f0a3ee868a | ddf93e1d513325b7d8b0b61d9767be66f7bb59eb | /Python基础教程第三版源代码/Chapter10/listing10-4.py | 122814bcfb1607b8874050356c558ac5676f90df | [
"Apache-2.0"
] | permissive | Answer1994/Code-Exercise | 4ff9a409e448582cf3e6dbc36d3ee9e40d5ce5fd | bceaa9b233786c88509348dff7066fe903da68db | refs/heads/master | 2022-11-09T05:28:05.217001 | 2019-07-23T01:07:16 | 2019-07-23T01:07:16 | 198,323,453 | 0 | 1 | Apache-2.0 | 2022-10-30T02:01:09 | 2019-07-23T00:49:58 | Jupyter Notebook | UTF-8 | Python | false | false | 111 | py | # hello4.py
def hello():
print("Hello, world!")
def test():
hello()
if __name__ == '__main__': test() | [
"13247352760@163.com"
] | 13247352760@163.com |
18b796436561004b8d5656d04547f2ec63c9fbb6 | 956f021e617c70523d53f7788abc407870ea5866 | /ticket/models.py | 7011af6901266435e2a5d2177baca2fc41a2b26a | [] | no_license | fidodido/RudderTickets | efa683e7683b6c27d98d5baa0631eff041453bc5 | 4feaa0752340b52a6fd3b8664bee302b4fa92a8e | refs/heads/master | 2021-09-13T21:32:12.852345 | 2018-05-04T13:21:42 | 2018-05-04T13:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
class Project(models.Model):
name = models.CharField(max_length=255, unique=True)
slug = models.SlugField(unique=True)
description = models.TextField()
created = models.DateTimeField(auto_now_add=True)
updated... | [
"joseibiea@gmail.com"
] | joseibiea@gmail.com |
94a08ee367b8c3fedf12ed69ea31a86f65785ce5 | 6f4c3c327f00c9edc4abfa25515643602152d96e | /Kindlekuniya/history/migrations/0006_histdata.py | 8feba5ba21822a1a29ee2f4b920e0ef4d2dca183 | [] | no_license | monthol8th/SWE-Kindlekuniya | 9d72033a89bd3e6279510df90d6dd1451f0a7f8d | a3eddb1dbfd88aeefe23d0139a3d53af9ce25220 | refs/heads/master | 2021-07-09T08:53:04.685397 | 2017-10-09T01:37:00 | 2017-10-09T01:37:00 | 106,223,286 | 0 | 0 | null | 2017-10-09T01:24:49 | 2017-10-09T01:24:49 | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-09-29 16:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('history', '0005_auto_20170929_0327'),
]
operations... | [
"jittapat007@gmail.com"
] | jittapat007@gmail.com |
4fdb572de5c4740a9847f4ac502f35b48d6c8cc3 | 42a8ae48593dabb08414911c0bda44723c6e88ae | /client.py | dd1b8ea839b8348f30839e6241d6755d2fabf27b | [
"MIT"
] | permissive | vsaw/miniSSL | 3c39fe34dcc55152bd5eec08e5cb08ee94ab8667 | 47671bb1cf4d558c340947c2a38d2c4fefd80643 | refs/heads/master | 2020-12-24T11:45:49.640830 | 2014-07-30T20:56:56 | 2014-07-30T20:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py |
import argparse
from minissl.SslClient import SslClient
from minissl.test.PemSamples import minnissl_ca_pem
from minissl.TcpDispatcher import PickleStreamWrapper
import socket
import asyncore
import sys
def handle_connect(client):
"""Send a GET request on connect to initiate the download
:param client:
... | [
"valentin@sawadski.eu"
] | valentin@sawadski.eu |
7ebf736268c6fccb6d308d7d93f188197cd0e806 | 2fec09704108ad2d689c5a123bd223ce4456d0ee | /flask_web实战练习/第3章Flask Web开发/ext.py | 115a1e552ecb8e88deb1c995124f9cd27ac2b758 | [] | no_license | mojoru2023/Recoding_Flask | f5387461a24cbdf83b394b346d767cec998d81cd | 0b745f495a219f9df627f3fd8c06ac0ffcac03fb | refs/heads/master | 2023-04-29T11:26:47.714830 | 2018-12-18T09:14:00 | 2018-12-18T09:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #! coding=utf-8
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy() | [
"291109028@qq.com"
] | 291109028@qq.com |
52a07fbbc22af3ca55e23f6369dfcd9a7bcc04c3 | b4cf7a69f2ad0d02dc1a051c49ad1ccc90b02d9d | /model_utils.py | 06ba08b8a86c323716b3ec70151c21a35050413c | [] | no_license | edouardoyallon/deep_separation_contraction | 68f9e1ea65c992afbd5d99bf6747f4620d16f04e | 5f5edd92127d0e2906597660f9b94a04ce670f94 | refs/heads/master | 2021-01-20T07:38:03.577330 | 2017-03-06T08:35:39 | 2017-03-06T08:35:39 | 73,836,173 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | #####
## MODIFIED BY: Edouard Oyallon
## Team DATA - ENS 2016
## Can be found on: https://github.com/bgshih/tf_resnet_cifar
#####
import tensorflow as tf
def shape_probe(tensor):
return tf.Print(tensor, [tf.shape(tensor)], message='Shape=', summarize=10)
def min_max_probe(tensor):
return tf.Print(tensor, [tf.re... | [
"edouard.oyallon@ens.fr"
] | edouard.oyallon@ens.fr |
c1a62e2c34326568057ebf8d4611369552627fb3 | 5202495ecca913290c0610d3af55e4a5b342686b | /Majority Element.py | c23139979d0b2877db1d0f390007b41358afc420 | [] | no_license | shank54/Leetcode | 6e76515647ed0bb3d8d3b1e0e9d2c890fbc77f3c | d8c3be5937c54b740ebccd0b373a67ece46773f3 | refs/heads/master | 2021-01-11T08:59:26.757870 | 2018-11-09T02:41:53 | 2018-11-09T02:41:53 | 77,485,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | class Solution(object):
def majorityElement(self, nums):
count = {}
for i in nums:
if i in count:
count[i] += 1
else:
count[i] = 1
srt = sorted(count,key=count.get,reverse=True)
return srt[0]
| [
"shashanthota1@gmail.com"
] | shashanthota1@gmail.com |
c2e5707e1065d503d12f115c9aa6346a87c8874c | 7c105cb6734b770a3ddee9bccdeab53835e5ea98 | /depthFirstOrder.py | ca556a51294cb0198f291625221c9e6d6af968a4 | [] | no_license | akshaydixi/graph-works | 4ba539d6ab8d7454a956f5b0b622761a85abcc0b | b187b1d5aaf999ca844b526e4fdeeeb9e5cb5426 | refs/heads/master | 2020-06-02T12:20:24.880515 | 2013-04-30T18:31:17 | 2013-04-30T18:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from digraph import Digraph
class DepthFirstOrder:
def __init__(self,g):
self.marked = {}
self.reversepost = []
for v in range(1,g.vertices()+1):
self.marked[v]=False
for v in range(1,g.vertices()+1):
if not self.marked[v]:
self.dfs(g,v)
def dfs(self,g,v):
self.marked[v] = True
for w in g.adj(v... | [
"akshaydixi@gmail.com"
] | akshaydixi@gmail.com |
b8db649d1dea8ec826d384534f658cdb9c37b643 | 538575a2fa48d8870e731ab2ff99dc73893694ad | /setup.py | e09bdb5cc36f8684d043eeabe5d7e7b6ebaa01f3 | [
"MIT"
] | permissive | thodson-usgs/hygnd | f7b0e92fea674c5a1d7fdac85d5a0e5e18b18c88 | 04d3596f79350ba19e08851e494c8feb7d68c0e0 | refs/heads/master | 2023-02-02T13:25:45.812560 | 2020-12-08T22:42:00 | 2020-12-08T22:42:00 | 125,310,756 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from setuptools import setup
from os import sep
setup(name='hygnd',
version='0.1',
description='HYdrologic Gauge Network Datamanager',
url='',
author='Timothy Hodson',
author_email='thodson@usgs.gov',
license='MIT',
packages=['hygnd'],
entry_points = {
'console... | [
"thodson@usgs.gov"
] | thodson@usgs.gov |
eb90b3f1a2e117412869191d19eb399e07a882ff | a37817c8e0eeabc6f8eb7c61270e49b024daf839 | /src/ChartView.py | d258427984a2b5975350f2a36acca2355dd896b4 | [] | no_license | filoscoder/dominsok_pizza_pos | 5c6d67c07aaf9a9e9d52d8020f115bce42748e62 | 18c3effacf0bf17526a24f43081fd819d68983d6 | refs/heads/master | 2020-07-14T14:16:13.683398 | 2019-11-01T09:09:17 | 2019-11-01T09:09:17 | 205,332,870 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | # db 연결 - mysql connector
import mysql.connector
import pygal
def payment_select1():
# db 연결
conn = mysql.connector.connect(host='192.168.0.170', user='scott', passwd='tiger', db='pythondb')
cur1 = conn.cursor()
sql1 = "SELECT c.month, sum(c.p_total) sum " \
"FROM (SELECT Month(... | [
"noreply@github.com"
] | filoscoder.noreply@github.com |
e185699bccae906efd50c6082f249a88da26a200 | db0fa7d3d7cc1ebf99a84bbcbc31cc8329ffd343 | /Activity7.py | f0e29a1ef591eb8ea7f724417a2abc58eec0c47a | [] | no_license | MansiSadhwani/PythonSDET | 0457d58971eafdf2062c0add0445bb169f26a493 | 41d6a2baa286b7d8947a89cd38a35b3807eb518a | refs/heads/master | 2022-12-09T07:17:17.905343 | 2020-09-12T20:37:38 | 2020-09-12T20:37:38 | 292,818,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | numbers = list(input("Enter the numbers:").split(","))
sum =0
for number in numbers:
sum+=int(number)
print (sum)
| [
"noreply@github.com"
] | MansiSadhwani.noreply@github.com |
18f73f82e254156700412664c088dde4ed64dde4 | acb86643b3e6109511a7167cfe12837ed2d6c304 | /Blog/migrations/0001_initial.py | 266d319ac3cd8349e96b64aab5f9b827ca51fab5 | [] | no_license | LiuJian517/Django-Blog | e57135b583f7ba773038f585304f58a3ddc25d06 | c38bab6b6ed9314e531cdf20635b04b9e5ba3037 | refs/heads/master | 2021-07-23T15:36:24.045283 | 2017-10-27T07:49:18 | 2017-10-27T07:49:18 | 108,515,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-05 08:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"jianliu517@163.com"
] | jianliu517@163.com |
24649932671e99adaaa9b302e2008e455b73214b | 4ca4d483d21fcfbdb75f1b6e7a05e99f517f44cb | /mongopython/Documentale/Document.py | 2316c0b912294b8997808093112f675bf400477e | [] | no_license | AlePericolo/pythonAle | f264cd1bb43b471942f176ab6898de4142030262 | 38e72673a4ef37e542d849056dbcb216601f31ea | refs/heads/master | 2020-04-14T16:41:35.554973 | 2019-01-03T20:50:21 | 2019-01-03T20:50:21 | 163,958,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | import DocumentData
from mongopython.Mongo import Database, Client, Collection
class Document:
def __init__(self, conf, data = None):
self.client = Client.Client(conf.conf)
self.database = Database.Database(self.client.getClient(), conf.conf)
self.documents = Collection.Collection(self.da... | [
"alessandro.pericolo@dscsrl.it"
] | alessandro.pericolo@dscsrl.it |
c6e49b74f6393f3dc97b43f6a976b99c224a60f7 | 994ad3be869c535656c33ffbc88cc33a40b49315 | /owmfdw.py | 78198effea27792a0a809aa710c769df58b4cdd7 | [
"MIT"
] | permissive | ycku/owmfdw | 2e63af2ccabcce9f4501b3ed1213e7995636328e | f5e3774b034e601076f6394164b498f1bc727481 | refs/heads/master | 2020-09-04T03:36:24.979559 | 2020-06-29T04:52:57 | 2020-06-29T04:52:57 | 219,648,999 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | """
This FDW just supports one city query.
The appid in the code is the sample appid which can not query dynamically. (static data results)
You need to apply your own appid on Open Weather Map.
API doc: https://openweathermap.org/current
CREATE SERVER owmfdw_srv FOREIGN DATA WRAPPER multicorn OPTIONS ( wrapper 'multi... | [
"ycku@csie.org"
] | ycku@csie.org |
826d20a20c1a2f0bd648a45f17397d34e7b36b42 | ecd2aa3d12a5375498c88cfaf540e6e601b613b3 | /Facebook/Pro168_Excel Sheet Column Title.py | 84835125fdd64ff38bb2bf6db80f1d87d5764407 | [] | no_license | YoyinZyc/Leetcode_Python | abd5d90f874af5cd05dbed87f76885a1ca480173 | 9eb44afa4233fdedc2e5c72be0fdf54b25d1c45c | refs/heads/master | 2021-09-05T17:08:31.937689 | 2018-01-29T21:57:44 | 2018-01-29T21:57:44 | 103,157,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | class Solution:
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
d = 'ZABCDEFGHIJKLMNOPQRSTUVWXY'
ans = ''
while n:
ans = d[n%26] + ans
if not n % 26:
n = n//26-1
else:
n = n//26
... | [
"yoyinzyc@gmail.com"
] | yoyinzyc@gmail.com |
19e778d1c5b25dc8e783cf23b894c3bc9c678998 | db6ca661470ab2db3b71eb37a0e2acf8e650b0dc | /example 15/cxfreeze-quickstart.py | 8d4f9b5ddadaf471232931a12b9a2a667051abc6 | [
"MIT"
] | permissive | viktortat/cx_freeze_examples | 7ad05aba204a8c0c57d1db2360879ceefb8cecf9 | 6d78e4a18c5a2768ce9d6ee6b9efe69b74bfd79f | refs/heads/master | 2021-05-16T17:52:13.612172 | 2017-06-27T19:22:53 | 2017-06-27T19:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | #!C:\Python\32-bit\2.7\python.exe
from cx_Freeze.setupwriter import main
main()
| [
"jenyay.ilin@gmail.com"
] | jenyay.ilin@gmail.com |
1388e8707e9cc01698f54789d940cbd355ad016a | 43b668a7a367de5443e394146b39e34fb284fd1b | /283.py | bb249534c3eea356adca80ba1080c1f0b14bf90d | [] | no_license | cycy137/leetcode | 8bcd7dacaddd00f315298d862ab47cd236c2c9eb | 3e4c7487513139576bd220e8b7a1238fddc9ee0b | refs/heads/master | 2020-04-09T22:39:43.216664 | 2018-12-06T23:25:00 | 2018-12-06T23:25:00 | 160,634,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | class Solution:
def moveZeroes(self, nums):
# tmp=[]
# print(len(nums))
# num_zero=nums.count(0)
# while 0 in nums:
# nums.remove(0)
# for i in range(num_zero):
# tmp.append(0)
# nums.extend(tmp)
# return nums
first=0... | [
"noreply@github.com"
] | cycy137.noreply@github.com |
87a3a786612c483df343b432f0160f8e912d9eb6 | 16ca018c208345ca5af5f74e598e081a429b8716 | /statistics.py | 17787691e1c614fdb8f75b709a9fa001b0c2cb7e | [] | no_license | Hoop77/Connect4 | ea3aaf98946391ccb048c756f57d2f0e1b3860ef | 0e9ef3f98061c632cd75b6a1cb94492c0d7278dc | refs/heads/master | 2020-06-19T05:05:56.262154 | 2019-07-21T23:42:45 | 2019-07-21T23:42:45 | 196,573,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | from matplotlib import pyplot as plt
import json
import copy
import board
def default_stats():
return {
'episode_results': [],
'episode_lengths': [],
'epsilon': {'steps': [], 'values': []},
'loss': {'steps': [], 'values': []}
}
def save_stats(stats, params, path):
with open... | [
"p.badenhoop@gmx.de"
] | p.badenhoop@gmx.de |
2c85f7d2c47fb8f4aa82c9bef21477d9e2832fa7 | a62caa31768f829f4b07d705bfee801cf26e9f51 | /src/sina/sinaAPI.py | 753425946f5e731522576e285b99219a7cc418ac | [] | no_license | bsspirit/DotABook | dc1abcdb62f058649443d79f5ea2ac18debfcde5 | 1ffa9fe46aaaa517f32027b403ab10bdff4b4aee | refs/heads/master | 2021-01-16T19:18:29.592635 | 2012-12-06T09:04:23 | 2012-12-06T09:04:23 | 1,477,219 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | # -*- coding: utf-8 -*-
from flask import current_app
from weibopy.auth import OAuthHandler, API
from db.create_sina import db,Sina_User
consumer_key = '2967452232'
consumer_secret = '0fb77c003faf71cc503751829f118057'
def save_sina_user(user, uid=None, screen=None):
db_user=None
if uid == None:
db_user = Sina_Use... | [
"bsspirit@163.com"
] | bsspirit@163.com |
ebc820f00dc5b3e29759d3ea831e47a9e22fa83b | 85778ab1e2e835de06dc9e3d74965bf254e12550 | /scan/dao/scrapped_data_dao.py | e637ffd6b2b1e998eb201dd71d5381fb2b902922 | [] | no_license | Season02/Spezia2 | 75fc3e224fca189ed9183ff270539d2a05863afd | a45e1d07bbcd3b7af35cc936cf1192168edd5c32 | refs/heads/master | 2020-03-19T20:14:02.614596 | 2018-06-11T08:02:00 | 2018-06-11T08:02:00 | 135,564,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,402 | py | from CoTec.core.database.mysql_go import MysqlHelper
from CoTec.utility.string.string_go import genUUID
from .DBStructure import *
from Spezia2.config.global_var import Configs
tableName = 'news'
article_table_name = 'article'
class ScrappdeDataDao:
news = TBNews()
news_table_name = news.TableName
articl... | [
"sayhanabi@hotmail.com"
] | sayhanabi@hotmail.com |
53f30b553c1d1aa5c8359d84b5cba1cd55bcdbc4 | b64cd7597f23e7b3fc1323ba96fc9003bea81fab | /tests/suites.py | 8149b66832fb469084b4e673eb347891e9fa6318 | [
"MIT"
] | permissive | javakian/ParlAI | 94abe4c840a22ed23346b00f30100a55269f1168 | bd8a5b2c2d95489eb5cdb40b8c78a4485fae22a4 | refs/heads/master | 2023-08-20T13:17:40.839704 | 2019-12-10T15:48:37 | 2019-12-10T15:48:37 | 227,186,405 | 1 | 0 | MIT | 2023-09-08T23:07:50 | 2019-12-10T18:12:21 | null | UTF-8 | Python | false | false | 2,720 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Various test loaders.
"""
import os
import unittest
import random
from itertools import chain
def _circleci_paral... | [
"noreply@github.com"
] | javakian.noreply@github.com |
1e70656593dbc121aefa3294f2e7ed0d3e83b8a5 | af93a7134b6ab670ef25ebd56b93630d6f9d170e | /day07/part2.py | d42662aaaf49d9cfd20cb43aaa31d172c4d703d7 | [] | no_license | anthonyrodriguez/advent-of-code-2020 | 402780937d020c0d39973ca0cece2cb5ee0e845f | 401f2ed82d340cad4a341da8753eb2178530d022 | refs/heads/master | 2023-02-03T01:13:09.565912 | 2020-12-19T21:39:14 | 2020-12-19T21:39:14 | 318,027,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,320 | py | testRawInput = """shiny gold bags contain 2 dark red bags.
dark red bags contain 2 dark orange bags.
dark orange bags contain 2 dark yellow bags.
dark yellow bags contain 2 dark green bags.
dark green bags contain 2 dark blue bags.
dark blue bags contain 2 dark violet bags.
dark violet bags contain no other bags."""
r... | [
"antrodriguez@utexas.edu"
] | antrodriguez@utexas.edu |
4d3fdbc2743365cbae34eef42df8884abddbeaec | fab3d466b228d37c4a5f6511934220db777ec34d | /des/des.py | 711179b266da566b5fb61ffc5d5ba5382b076365 | [] | no_license | fcu-d0449763/cryptography | 63fbad1a5e5f7aea994af75156a89721e1a00486 | c649803da107511e02de1fc3a293f4b695c150fe | refs/heads/master | 2021-05-28T00:24:10.633799 | 2013-06-11T07:06:52 | 2013-06-11T07:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
######################################################################
## Filename: des.py
##
## Copyright (C) 2009, renewjoy
## Version: 0.1
## Author: renewjoy <rlj_linux@126.com>
## Created at: Sun Mar 1 11:41:02 2009
## ... | [
"oyea9le@gmail.com"
] | oyea9le@gmail.com |
77061d907a27ca62f9a5039191abdaecaa27183e | 21d07aab03b0d162d538e6742f4c3bdae0ad0ac3 | /7.Loops/00.for_loop.py | d18d2641835f014e8a96fb8b186d5361b41d744a | [] | no_license | sonusbeat/intro_algorithms | f287f7cedd174727d0b13ab0a28ee3032e7ace9b | 11cd9ddd0da2208bc7f052b7ac9d13f4a41c9d3e | refs/heads/master | 2020-07-29T19:41:33.374377 | 2019-10-02T15:20:52 | 2019-10-02T15:20:52 | 209,936,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Loops - to repeat code
# for loops are used to iterateovera given sequence
# On each iteration, the variable ()
# for i in range(10): # range(10) 0...9
# print(i)
# range(end): 0 to end-1
# for i in range(1, 10): # 1...9
# print(i)
# range(start, end): start to end-1
# for i in range(0, 10, 2): #from 0... | [
"sonusbeat@hotmail.com"
] | sonusbeat@hotmail.com |
f2b90d99fa73d63b85d3c2ee98bbfb6b66a54577 | 417d15341699b699c8f4b555ff2b10ab0070f27e | /set.py | 1c1bcac6ab200db32e9fbe6ffd94cb3ae6bb37ef | [] | no_license | milu234/Python | 3461b0b9bef66dba86718e5ccdd21671cc89c7cb | 192338994ea9fac78b9b9b08becb205f1f0a965f | refs/heads/master | 2021-05-09T12:38:24.784716 | 2018-04-18T17:41:25 | 2018-04-18T17:41:25 | 119,016,623 | 1 | 0 | null | 2018-04-06T02:48:23 | 2018-01-26T06:49:36 | Python | UTF-8 | Python | false | false | 619 | py | my_set={1,2,3}
print(my_set)
my_set={1.0,"Hello",(1,2,3)}
print(my_set)
my_set={1,2,3,43,2}
print(my_set)
a={}
print(type(a))
a=set(a)
print(type(a))
#print(my_set[0]) #set does not supports indexing
my_set.add(12)
print(my_set)
my_set.update([56,45,89])
print(my_set)
my_set.discard(12)
print(my_set)
my_set.remove(45)
... | [
"milanhazra234.mh@gmail.com"
] | milanhazra234.mh@gmail.com |
7e43e5bebfebbe93da3b07b5f69007737ed58e06 | d5fbb40c8fa95970a6b1dd10920071a3330c6de8 | /test/give_gsqr_value.py | a5330aca5b3e4eb42c9e9346b75e74ce3b8a3b95 | [] | no_license | Pooleyo/theta.py | 622000e04a7834a7b12d371337992f6063c3f332 | 7bdf96f7494db7fda8dbe8d1e8bb536a5b39e39d | refs/heads/master | 2021-06-18T06:03:47.176742 | 2019-09-18T16:02:02 | 2019-09-18T16:02:02 | 137,497,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | def run(i, j, wavelength, a_lattice, normal, norm_view_x, norm_view_y, central_pixel, width_mm_per_pixel, height_mm_per_pixel, vector_origin_to_central_pixel, unit_vector_source_to_origin, adjust_to_centre_of_pixel, width, height):
import numpy as np
current_pixel = [i, j]
pixel_difference = ... | [
"ajp560@york.ac.uk"
] | ajp560@york.ac.uk |
5a56b2ef87daef4394c37dd0811c1471c8240cf4 | d9d8f69d3c8bcde622f77335844266d837c0e869 | /computer-vision/image-classification/mnist_rmdl/dnn.py | 3320b6b5fd8689f64873e9c193e0a5c72a3a78a3 | [
"MIT"
] | permissive | tyburam/paperswithcode | 3ec29bc5389170a5b747d98d9d82e0cebea2d95d | fcea3fac37e5bf10bb0284216ef7aded4c0c778b | refs/heads/master | 2020-05-03T11:08:22.282849 | 2019-03-31T09:46:17 | 2019-03-31T09:46:17 | 178,594,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | import tensorflow as tf
import random
from tensorflow.keras.layers import Flatten, Dense, Dropout
class DNN(tf.keras.Model):
def __init__(self, shape, number_of_classes, min_hidden_layer_dnn=1, max_hidden_layer_dnn=8,
min_nodes_dnn=128, max_nodes_dnn=1024, dropout=0.05):
super(DNN, self).... | [
"tyburam@hotmail.com"
] | tyburam@hotmail.com |
9077d643da771473315883ae66ecb4f72ad4a6f0 | 1f49924a1a2e475bf3723e2f1aba70d422526342 | /spider/scrapys/douban/douban/pipelines.py | b9ef1b27bf2556489e968ffabb82020a5030b1f9 | [] | no_license | lbjhuang/pystudy | d82a67b59982357f2fed84b5a467a5d15a40c218 | 7d13f43376dfe1af9f21f25ee772f5d7ca33a708 | refs/heads/master | 2021-05-06T15:26:31.585706 | 2018-05-19T08:12:50 | 2018-05-19T08:12:50 | 113,552,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | 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
import pymongo
from scrapy.conf import settings
class DoubanPipeline(object):
def __init__(self):
host = settings["... | [
"867999030@qq.com"
] | 867999030@qq.com |
df80a7aabc083c6ff148f47856957e302006c4e8 | aeb598aa26d68d5a0ce41eced20b5e8e7b4fe4fd | /SEE/Scripting/1/1a/1.py | 1a1e57f167c491b054098ea521d0c641f0dd11c2 | [
"MIT"
] | permissive | nimishbongale/5th-Sem-ISE | a1a95de0c4c8fc95ee1279b249b728d3cfd3ed25 | 1c2456792bc34ba326332a6f91095ad7d9bb8155 | refs/heads/master | 2021-07-11T09:10:17.926486 | 2020-10-02T13:34:02 | 2020-10-02T13:34:02 | 204,038,228 | 1 | 19 | MIT | 2020-10-02T13:34:04 | 2019-08-23T16:58:40 | Python | UTF-8 | Python | false | false | 369 | py | #i)
l1=[]
for i in range(5):
l1.append(int(input()))
#ii)
print("Max element: ",max(l1),"\nMin element: ",min(l1))
#iii)
l1.append(7)
#iv)
l1.remove(7)
#v)
print("Enter element to be searched: ")
if int(input()) in l1:
print("Element found")
else:
print("Element not found")
#Use .index() for locati... | [
"nimishnb98@gmail.com"
] | nimishnb98@gmail.com |
b7b3c4db7bd9efdaa0d3ab039c9fae27750e7b1e | 0b691a06b49a3f74aa461bc25aec31ce5c23e34b | /web_crud/wsgi.py | da0bbc0b3c05723817026c1e74b26c5b48b4d352 | [] | no_license | hector97i/CRUD_web | 4b929d0204f955a8f4f7cf8839bcb3de05b20faf | 04c75652d2d42affdb33b1199f72b0818204b939 | refs/heads/master | 2022-12-31T23:03:00.528295 | 2020-10-21T19:14:05 | 2020-10-21T19:14:05 | 305,901,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for web_crud project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"dany0997@gmail.com"
] | dany0997@gmail.com |
ec631d851518a186b9bd2fb53ceaa1c457aa0a88 | 047a2a668a1b72d4d3f7aeaf2323107a21ba2b85 | /Chepter-9-File input-output/Prac4-donkey.py | aa10e9ce19e645c3716d9da207e8e8e479883119 | [] | no_license | impankaj91/Python | ec766d4f69e3ee2a095cdb177dfd711da2a3a33a | cb5b348e40ef4e31f26cf511a3309cba1da86f68 | refs/heads/main | 2023-05-31T03:34:00.326382 | 2023-05-22T15:29:17 | 2023-05-22T15:29:17 | 307,060,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | #Replace A donkey Word With #####
with open("donkey.txt","r") as f:
data=f.read()
if 'Donkey' in data:
with open("donkey.txt","w") as f:
f.write(data.replace('Donkey','#####'))
| [
"noreply@github.com"
] | impankaj91.noreply@github.com |
b3298954ec8c27d398f70b4f86945833a1145d7f | f70478351bd2089a083fb99a5814439274bdf4e8 | /comentarios/api/viewsets.py | b8c512d9590e318379911b5184db047ab2894aac | [] | no_license | ggondimrb/pontos-turisticos | 2aca2e15b13facfb4177c43208340cc3c595e601 | c7407039561ea0321bd142d463e7d6a3e8024ff7 | refs/heads/main | 2023-08-02T07:26:41.249755 | 2021-09-21T23:45:25 | 2021-09-21T23:45:25 | 406,961,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from rest_framework.viewsets import ModelViewSet
from .serializers import ComentarioSerializer
from comentarios.models import Comentario
class ComentarioViewSet(ModelViewSet):
queryset = Comentario.objects.all()
serializer_class = ComentarioSerializer
| [
"ggondimrb@gmail.com"
] | ggondimrb@gmail.com |
856088a883bd861a7f805a94dc5d068a1e755b86 | a7be2c29c16605fc3a638d0192bd003851e71bcc | /test_infrared.py | 49fda03743eaa414e9066574872c8e1539b971bc | [] | no_license | rodskin/raspberrypi-polaroid | 293a106e95cde10e0cf92a358dbbc478f9553ff3 | 565d13ae6cc6a82c2adb43ee3ec283f397c5b60c | refs/heads/master | 2021-01-21T13:21:45.635404 | 2016-04-26T13:41:35 | 2016-04-26T13:41:35 | 50,429,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # this file is run using this command: "sudo python camera.py"
# python must be installed, and you must call the command while
# you are in the same folder as the file
#from time import sleep
from time import sleep
import os
import RPi.GPIO as GPIO
import subprocess
import Image
import datetime
import time
import pygam... | [
"rodskin@rodmanjaro.numericable.fr"
] | rodskin@rodmanjaro.numericable.fr |
1a0b7e202ae5f123ebffbe04e8124b8b5c56dc43 | d8e03813725b044d6a8630bbc4d06fff1dd68586 | /general/wildcard_matching.py | 1b85f2131898bb1f300202c5beafb400d0e4dafb | [] | no_license | henryh28/coding_practice | 573cab318da2ed92456ff17a42111acc66c8753d | 86fed524d0a4bf20dbac2fba89547ddb48096f00 | refs/heads/master | 2020-03-25T03:31:12.299835 | 2019-08-08T18:54:06 | 2019-08-08T18:54:06 | 143,346,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
# shortcut
if s == p or p == "*":
return True
if min(len(s), len(p)) == 0 and max(len(s), len(p)) > 0:
return False
s_len = len(s)
dp = [True] + [False] * s_len
... | [
"noreply@github.com"
] | henryh28.noreply@github.com |
db80f27c283095975c89f3f8611800749fc56764 | 1ee910d6602123eb1328f56419b04e31b3761b6b | /lib/python3.5/site-packages/twilio/rest/preview/hosted_numbers/__init__.py | 7262d0d10d7274368ba1d50476a971856d20292a | [
"MIT"
] | permissive | mraza007/Pizza-or-Not-a-Pizza | 7fc89e0905c86fbd3c77a9cc834a4b6098912aeb | 6ad59d046adbd6be812c7403d9cb8ffbdbd6b0b8 | refs/heads/master | 2022-12-15T15:47:34.779838 | 2018-07-04T02:28:56 | 2018-07-04T02:28:56 | 127,992,302 | 30 | 4 | MIT | 2022-11-22T00:43:51 | 2018-04-04T01:56:26 | Python | UTF-8 | Python | false | false | 1,684 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.version import Version
from twilio.rest.preview.hosted_numbers.authorization_document import AuthorizationDocumentList
from twilio.rest.preview.hosted_numbers.hosted_number_order impo... | [
"muhammadraza0047@gmail.com"
] | muhammadraza0047@gmail.com |
559b9e0b9554e8f2c541f32fc7927b1be122042e | 6c79256021eb9a3efd5842f5d4d3eef84971ad96 | /multi.py | dfb3f3fba670ad5f3dfd9b8cb6b1df111cd15b0c | [
"Apache-2.0"
] | permissive | archiekey/OpenCV_Project | 1892ad8b675a8d040eb752014a95455f61926eb2 | f70e2a7e7384b93aced0ad5348f3c60cf9cfd786 | refs/heads/master | 2021-01-22T13:23:53.874194 | 2017-08-18T01:54:22 | 2017-08-18T01:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | from __future__ import print_function
from imutils.video import WebcamVideoStream
from imutils.video import FPS
import argparse
import imutils
import cv2
from collections import deque
import numpy as np
import pyautogui
greenLower = (29, 86, 6)
greenUpper = (64, 255, 255)
pts = deque(maxlen=64)
# construct the argum... | [
"archanakvenkatesh@gmail.com"
] | archanakvenkatesh@gmail.com |
bc2908deb632e77cc9c3b7c525c4c41e19e51d34 | dd483c380c93edb21dae4cb0cb082ba0bfeb3e6a | /app/src/apps/DIVERSITY/MACCSKeys/views.py | 5bc67cf590be2ed77e85aea24ede7281221c60f1 | [] | no_license | BarbaraDiazE/D_Peptide_Builder | 7aa4647c9b0ce20d8a258834d0dffaf21e368224 | d47e29e0b9e55bd6e520bc9caf7d362e796d458d | refs/heads/master | 2020-04-25T02:29:03.092694 | 2019-02-25T20:43:19 | 2019-02-25T20:43:19 | 172,440,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.shortcuts import render, render_to_response
from django.http import HttpResponse
from bokeh.embed import components
from rest_framework.views import APIView
from .compute import GenerateFingerprint
# Create your views here.
class MACCKeysView(APIView):
def get(self, request):
csv_name = re... | [
"debi_1223@hotmail.com"
] | debi_1223@hotmail.com |
19809edc68b9bc26fc9d8a4f6612fd2d615bbc8a | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/pipelines/__init__.py | 52581bbdf617d39d290f1a42a479a9a4b8f5e3f4 | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 35,758 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
import io
import json
import os
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "... | [
"hz416@cam.ac.uk"
] | hz416@cam.ac.uk |
dc7159eff0476cae0d09aa0179835f51a675e33a | c5857b50862bf56397739e7c2f524bb7b233e929 | /homeassistant/components/bmw_connected_drive.py | 48452b6d79b78711784a1937bb7486e662d7b42c | [
"Apache-2.0"
] | permissive | nickw444/home-assistant | 6668beaf1b1cc0dbcf0d3246b5bb57766cd66a2c | 8d48164f25f3b7f272ee486ecdeb6e1e8e4c6174 | refs/heads/dev | 2023-08-23T11:26:32.812468 | 2018-04-11T01:38:23 | 2018-04-11T01:38:23 | 129,087,456 | 0 | 1 | NOASSERTION | 2021-08-31T22:42:32 | 2018-04-11T12:05:55 | Python | UTF-8 | Python | false | false | 3,359 | py | """
Reads vehicle status from BMW connected drive portal.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/bmw_connected_drive/
"""
import datetime
import logging
import voluptuous as vol
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD
from ... | [
"marhje52@kth.se"
] | marhje52@kth.se |
0df64ff8a13db4e53e7c5af17592ec68fb1165d9 | 37889259aa40a8cdeb415eab3074929ab85f0ba6 | /wtccc/gcta/testsets.py | a14739eb5a9202973f06d6856004500560bc705e | [] | no_license | aksarkar/frea-work | 8e1c15502fd1b40708f6d6de11afed4b3eba9de7 | 05337a375e03e233590ad1a306850c1dfea493e5 | refs/heads/master | 2021-05-23T12:38:27.539191 | 2020-04-05T17:16:47 | 2020-04-05T17:18:01 | 253,289,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import random
import sys
data = [line.split() for line in sys.stdin]
cases = [(f, i) for f, i, c in data if c == '1']
controls = [(f, i) for f, i, c in data if c == '0']
for f, i in random.sample(cases, len(cases) // 2):
print(f, i, 1)
for f, i in random.sample(controls, len(controls) // 2):
print(f, i, 0)
| [
"aksarkar@mit.edu"
] | aksarkar@mit.edu |
ff20344952dd24672c8d16fd7e68865c14b3823f | 4bd1b686f71eb1b3f4f0f6f87064b52a5f1f9afd | /server/middleware/AddToBU.py | 60e50aa030ab550065cf7c2b98d0912eafe04787 | [
"Apache-2.0"
] | permissive | arubdesu/sal | a2195f9a9079568484ad098dcfb442e021648988 | 9da1652e8c084801855a4d10bd768cde151becea | refs/heads/master | 2021-01-22T12:29:02.081252 | 2016-05-06T21:31:37 | 2016-05-06T21:31:37 | 59,508,986 | 1 | 0 | null | 2016-05-23T18:38:35 | 2016-05-23T18:38:34 | null | UTF-8 | Python | false | false | 791 | py | from django.conf import settings
from server.models import *
class AddToBU(object):
"""
This middleware will add the current user to any BU's they've not already
been explicitly added to.
"""
def process_view(self, request, view_func, view_args, view_kwargs):
if hasattr(settings, 'ADD_TO_AL... | [
"graham@grahamgilbert.com"
] | graham@grahamgilbert.com |
e28b408b5337c8289fdabd4d4affdb74076e3deb | 1f5c0b5e2003d5f9695145970a727223622bf4b9 | /python/invert_binary_tree.py | 277dbf8708fae6fc533fb36cfd95f93502568f00 | [] | no_license | ychen171/LeetCode | 1f666f3aa60940ee372c29dd38e6fa99aea5cb37 | fec88bbbbb45d29763039b27f144dc442dd27fcb | refs/heads/master | 2023-01-09T00:43:20.614846 | 2022-12-19T18:27:01 | 2022-12-19T18:27:01 | 91,740,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @return {TreeNode}
def invertTree(self, root):
if (root == None):
retu... | [
"ychen171@gmail.com"
] | ychen171@gmail.com |
927ace5146d0832f368d18d0bf1bd798e4917faf | 7b19ed4fdadd869f97b62a1764a1e185fb845148 | /guardhouse/sentry_wrap/migrations/0002_auto__chg_field_sitemessage_message.py | 4dc16419fde1f283c2964167584c5865b5c75dfb | [
"BSD-2-Clause"
] | permissive | ulope/guardhouse | 7218e48fae44ab143cd4920327e7ea9577429ddb | d89158e50cb6c1f18846f67628bcc0610298bacb | refs/heads/master | 2016-09-05T10:16:28.513643 | 2011-07-31T23:48:09 | 2011-07-31T23:48:09 | 2,060,016 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,757 | py | # encoding: utf-8
import 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 'SiteMessage.message'
db.alter_column('sentry_wrap_sitemessage', 'message_id', self.gf('d... | [
"ulo@ulo.pe"
] | ulo@ulo.pe |
a571c674c43ba37abef16834199edde65bc48442 | 9c27253692529b46f4523be5c0448e61ed662b36 | /odroid/catkin_ws/src/ros_self_driving_car/scripts/test_drivers_calibration.py | a29ba10ffe1fb633f20d5bf3c0bf03f8672978e7 | [] | no_license | AldoAguilar/self_driving_car_project | b78179052370ca34a88eec6d3ac9df5d5e9e592f | 401c96192a95c3c5a83733b36069e5771199b741 | refs/heads/master | 2021-03-05T20:56:23.800498 | 2020-11-18T00:07:03 | 2020-11-18T00:07:03 | 246,152,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | #!/usr/bin/env python
import rospy
from libraries.motor_calibrator import motor_calibrator
if __name__ == '__main__':
try:
calibrator = motor_calibrator(log_enable = True)
calibrator.test()
except rospy.ROSInterruptException as e:
print(e)
pass
| [
"a01167783@itesm.mx"
] | a01167783@itesm.mx |
e1924ddbfa880afbbb4d865818564ba10f52ba09 | e23f1a49b528e70000f4c9cc6abd269cb93515a7 | /app/main/controllers.py | 97767d8d0834a20f5f7430dc6f594320275f15a1 | [] | no_license | sbertrand14/my-twitter-api | ad0ea79cff04baf4effff9f7905c63c82afd226a | 6e5f3df892fe96b47cb1af0d9c4d1922b522c4dd | refs/heads/master | 2021-07-11T16:08:15.860835 | 2020-01-22T17:07:56 | 2020-01-22T17:07:56 | 235,622,496 | 0 | 0 | null | 2021-03-20T03:03:59 | 2020-01-22T17:07:08 | Python | UTF-8 | Python | false | false | 164 | py | # app/main/controllers.py
from flask import Blueprint
main = Blueprint('main', __name__)
@main.route('/hello')
def home():
return "Goodbye from a Blueprint!"
| [
"sbertrand14@laposte.net"
] | sbertrand14@laposte.net |
2a97e0e3414e057888aacaf015c8891a149bbd1e | 1629c1506fd355765c65114f92a875afc8261232 | /myproject/Medzcoolapp/urls.py | 183b165f7ba669a907d99c8872a07177614c6779 | [] | no_license | vrecicr/Medzcoolapp | 8b633c3227ce1910e245e3fb6b9ff23edd0fdfdf | 6290745eab646523a8864ad64794d2d06bcb4851 | refs/heads/master | 2021-04-29T09:54:46.392312 | 2017-01-05T04:05:59 | 2017-01-05T04:05:59 | 77,756,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | """Medzcoolapp URL Configuration
***For further instructions, please reference
"""
from django.conf.urls import url, include
from django.contrib import admin
from Medzcoolapp import views
from django.contrib.auth import views as auth_views
urlpatterns = [
url(r'^home/$', views.home, name='home'),
url(... | [
"noreply@github.com"
] | vrecicr.noreply@github.com |
09fc13cea09e2c69563d78d155d466e3d2e74421 | 2a4e2690cf4c69db481718f57a0bed8691274a2a | /plots.py | 0aa274bacd64da387d788d54634bc6ce0c713dfb | [] | no_license | Przepioreczka/licencjat | 2402579ead5647e0b8bc8dd36c2b8bee9593a6b1 | f9fa63ac414c3e5049180cabcd35c6aaac334437 | refs/heads/master | 2023-07-02T11:00:54.766856 | 2021-08-04T16:40:50 | 2021-08-04T16:40:50 | 255,432,318 | 1 | 0 | null | 2021-01-11T11:44:48 | 2020-04-13T20:15:53 | Jupyter Notebook | UTF-8 | Python | false | false | 3,208 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.signal as ss
from typing import Iterable, Union
def before_after_plot(before_data, after_data, fs, channel, ch_name, name, start = 150, stop = 250, Fs_new = None):
time = np.arange(start,stop,1/fs)
plt.figure(figsize = (13,5))
plt.subplot(1,2... | [
"beataa.kedzierska@gmail.com"
] | beataa.kedzierska@gmail.com |
43f84c15e532e23c4f07aeeae0f9577453e55080 | 0e3cfed590a590284c0e4d7dd5d7348c8c474175 | /Hashing in Python/Chaining Method/2 - Implementing Hashing using Python Dictionary.py | 37a62e96ecd99841cc983d74eb500e0e7b295e2b | [] | no_license | puneet4840/Data-Structure-and-Algorithms | 71e5d11aaa783603c49a5891d0f118c1e4ef22c6 | 8d3e246dcefec56a4137a855ba96f5f7b91dc1f4 | refs/heads/master | 2023-04-17T18:34:32.739522 | 2021-04-28T17:14:29 | 2021-04-28T17:14:29 | 362,554,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # Implementing Hashing using Python Dictionary.
print()
class Hashing:
def __init__(self,size):
self.size=size
self.hash_table=dict()
for i in range(self.size):
self.hash_table[i]=[]
def Hash_Function(self,key):
return key%self.size
def Insert_Ele(self,item):
... | [
"pkv4840@gmail.com"
] | pkv4840@gmail.com |
0f5e056ab801fa5aab71962dd721ec86c737a2d9 | bd07f9860e911383fbd0eed5b650704fd9d86c1e | /src/Point.py | 34dd200aa215866ea3f624ddd8f79574f003011c | [
"MIT"
] | permissive | xuz11rhit/09-ImplementingClasses | f1bd196e6d23c273bd2b9caa3e7507ac31e29c9a | 6085b6586b9ef210fee3c56976c182fcf3751b5e | refs/heads/master | 2020-04-21T03:32:43.822141 | 2019-02-15T19:42:45 | 2019-02-15T19:42:45 | 169,287,269 | 0 | 0 | null | 2019-02-05T18:07:06 | 2019-02-05T18:07:05 | null | UTF-8 | Python | false | false | 2,021 | py | def main():
test_point()
def test_point():
p1 = Point(20, 30)
p2 = Point(200, 150)
p3 = Point(100, 30)
p1.move_to(10, 20)
p1.move_by(20, 60)
print(p1.distance)
print(p1.get_distance_traveled())
print(p1.closer_to(p2, p3))
print(p1.halfway_to(p2))
class Point(object):
def __... | [
"xZR990619"
] | xZR990619 |
5a5ba79c25f90ec644c498be06d0bdd0240db211 | 719b0742250a8dac1eafa7ce685c2bca7359b73b | /awx/main/managers.py | d2af95e2b832db6b67a0bcc693dc660a8bedc7e1 | [
"Apache-2.0"
] | permissive | devops786/awx-demo | e4c4cc921611a755e850d3e319e9ecfaea208c27 | 5ebb8a15628865e5ddd2f39ccb29e19387782205 | refs/heads/master | 2020-04-23T06:09:24.709558 | 2019-02-16T06:35:04 | 2019-02-16T06:35:04 | 170,964,076 | 0 | 0 | Apache-2.0 | 2019-02-16T04:52:24 | 2019-02-16T04:52:24 | null | UTF-8 | Python | false | false | 8,930 | py | # Copyright (c) 2015 Ansible, Inc.
# All Rights Reserved.
import sys
import logging
from django.db import models
from django.conf import settings
from awx.main.utils.filters import SmartFilter
from awx.main.utils.pglock import advisory_lock
___all__ = ['HostManager', 'InstanceManager', 'InstanceGroupManager']
logg... | [
"root@ip-172-31-84-17.ec2.internal"
] | root@ip-172-31-84-17.ec2.internal |
dc7124848367a75ffdd380a1703c76c9e7b2513c | ddf6b9c33de2caa480e89a1cbbc6db14fed92b88 | /fadeben/lib/app_globals.py | f23a3553cf1dc683f54a1fc13a93e1ac06778df9 | [] | no_license | emitzner/fadeben | 98ffe975bcc14e44e470f3d5eb6acb37ea8c8394 | c86679c18d2afe0b2be030195c827ad05c73a9f3 | refs/heads/master | 2021-01-19T04:28:48.289282 | 2014-01-12T17:15:46 | 2014-01-12T17:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | """The application's Globals object"""
from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
from fadeben.lib.email import TurboMailer
from fadeben.config.serverconfig import ServerConfig
from pylons import config
class Globals(object):
"""Globals acts as a container for objec... | [
"brian@btoconnor.net"
] | brian@btoconnor.net |
a87b8dbd250e959f4d798301bedd92b2b7e805fa | 71e8f3e3c5433e47c662f639fa4dafd11ef32c36 | /win/tools/db2h.py | aae5c831d40e20a723d25fe14f911a159c55f1f9 | [] | no_license | SeanLiangYoung/nocnnic | 93eb3fb34b32bc32c955a0e93368d4ea841eb882 | e002576e9916fd3b53461d171e90418777581cb4 | refs/heads/master | 2016-09-06T16:49:19.053307 | 2010-02-09T04:35:31 | 2010-02-09T04:35:31 | 33,517,401 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #
# Copyright 2010, Harry Li <harry.li AT pagefreedom.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... | [
"Harry Li@localhost"
] | Harry Li@localhost |
c700e9b3e5b37ef7c90c331aa0fdefad19b90330 | 752116ef4b69a3049fef0cfe9b3d212548cc81b1 | /sources/memory/application/eventcallees.py | 7ecf81c18b59fc8c57a7db185b7931e0d6503722 | [] | no_license | VDOMBoxGroup/runtime2.0 | e54af4af7a642f34b0e07b5d4096320494fb9ae8 | cb9932f5f75d5c6d7889f26d58aee079b4127299 | refs/heads/develop | 2023-07-07T11:06:10.817093 | 2023-07-03T06:11:55 | 2023-07-03T06:11:55 | 62,622,255 | 0 | 12 | null | 2023-05-23T02:55:00 | 2016-07-05T09:09:48 | Python | UTF-8 | Python | false | false | 2,493 | py |
from collections import MutableSequence
from uuid import uuid4
from utils.properties import lazy, weak, constant, roproperty
from ..generic import MemoryBase
from .binding import MemoryBindingSketch, MemoryBindingRestorationSketch
EMPTY_LIST = []
@weak("_owner")
class MemoryEventCalleesSketch(MemoryBase, MutableSe... | [
"nikolay.grishkov@vdombox.ru"
] | nikolay.grishkov@vdombox.ru |
9c4daf254a1c57b03c3db0bcbafa3b24c007655b | 079b7692f8d69d7c8ea1d05ca14987af5ac10314 | /dealer.py | df9fce1df09f864c27a5b09f213f18002c3a54fb | [] | no_license | atimoti/Gritv6-Web | e0a8f9abefdb89561f9ce0b64bd1f87bceeea216 | 50217c6d1ce60ffccde931938e318bb20b664daa | refs/heads/master | 2021-01-10T14:00:56.878155 | 2015-12-14T20:50:49 | 2015-12-14T20:50:49 | 46,486,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from random import randint
def shuffle(thisDeck, seed=0):
if seed == 0:
heart = thisDeck['hearts'][randint(0, 8)]
else:
rand = (int) (seed**.5) % 9
heart = thisDeck['hearts'][rand]
cards = []
cards.append(heart)
spades = thisDeck['spades']
for spade in spades:
... | [
"basile@ufl.edu"
] | basile@ufl.edu |
a44323ee7e57485883b502a6b855e8a969490445 | 2aee26b6c48603c04052ae85e80a478eb599ad51 | /paperless-back_last-master/api/api2.py | dc07dc9c00024e3749f1efe01d726fe89702737a | [] | no_license | Farrutt/ppl_v1 | ea49786aab87db09937a787aa30d43619ac22f2f | 576186335a9a2d42386d8204c947225d334ac907 | refs/heads/main | 2023-06-13T01:35:46.835954 | 2021-07-07T08:17:17 | 2021-07-07T08:17:17 | 383,724,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577,569 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from config import db_config
from config.lib import *
from config.value import *
from method.callserver import *
from method.convert import *
from method.access import *
from method.publicqrcode import *
from method.document import *
from method.cal_taxId import *
from met... | [
"farrutt.th@inet.co.th"
] | farrutt.th@inet.co.th |
599b94feb0d6cc049aaf900691bbf9c903c6e950 | ebcc57cbd7bc4c951fe3cf9826efc2d03d1e47e8 | /LeetCode Contests/Contest 189/1451. Rearrange Words in a Sentence.py | 53448ced65c4d824ffff4aa2be3132ad86a06e6e | [] | no_license | Vahid-Esmaeelzadeh/CTCI-Python | 17a672e95f1d886f4fb66239a4aa22a87f38382a | 867360ab13dd63d24d6f3e45b5ac223755942b54 | refs/heads/master | 2022-10-26T16:43:54.939188 | 2020-06-11T21:42:15 | 2020-06-11T21:42:15 | 190,065,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | # 1451. Rearrange Words in a Sentence
import math
def arrangeWords(text: str) -> str:
count_word_map = {}
words = text.split()
for word in words:
if len(word) in count_word_map:
count_word_map[len(word)].append(word.lower())
else:
count_word_map[len(word)] = [word.l... | [
"v.esmaeelzadeh@gmail.com"
] | v.esmaeelzadeh@gmail.com |
85e0d5af36ae7c97e8b8163299eae20a82c1dcff | 86dbcc3ef219fa4593afcce7077ece6b4806187b | /backend/uchicago/scraper.py | 1c23aadf2310e27dda46b7d2d3a99fcd0eeb6e8f | [
"MIT"
] | permissive | maths22/canigraduate.uchicago.edu | 3a764cfcdc07f96bb1332d6c752a99204a6edae9 | b2a09784ddb94f96f97ef1252ba2482ac32d6a61 | refs/heads/master | 2023-02-15T10:12:18.140934 | 2017-03-13T06:20:09 | 2017-03-13T06:20:09 | 85,335,744 | 0 | 0 | MIT | 2023-02-02T02:19:31 | 2017-03-17T17:03:50 | TypeScript | UTF-8 | Python | false | false | 3,834 | py | import collections
import pyrebase
import json
import httplib2
from lib import Term
firebase = pyrebase.initialize_app({
'apiKey': 'AIzaSyCjBDyhwbXcp9kEIA2pMHLDGxmCM4Sn6Eg',
'authDomain': 'canigraduate-43286.firebaseapp.com',
'databaseURL': 'https://canigraduate-43286.firebaseio.com',
'storageBucket':... | [
"kevmo314@gmail.com"
] | kevmo314@gmail.com |
962e66840f63def97de832508a6d91e2883621af | 8361ec8087ad094b150ac5c6454a4317b2917d57 | /test/mongodbtest/main.py | 2f7a853fe785f2467df38f591684f30199e956b6 | [
"MIT"
] | permissive | ScarecrowStraw/Ag-IoT | e852823f73f66e5e47510250cd4e5a04c2953793 | 4acf55d6bcf6016471c3545409512cc465a275ee | refs/heads/master | 2023-06-17T21:40:29.666727 | 2021-07-09T17:49:08 | 2021-07-09T17:49:08 | 384,512,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | import sys
import datetime
from pymongo import MongoClient
from random import seed
from random import randint
seed(1)
class MongoDBConnect():
def __init__(self):
self.setupMongodb()
def setupMongodb(self):
self.client = MongoClient('localhost', 27017)
self.db = self.client["LoRaNetwork... | [
"00sao00ios00@gmail.com"
] | 00sao00ios00@gmail.com |
fa949376411e1cce7380bce80cb5c25d2d3bcf4e | 4c21f9fdd2d17229a9569c16296b447865701707 | /Day13/Assignment2.py | a6ea2ff4028b4b1af4a4fd4135c6138e6845e287 | [] | no_license | NeelMasure/PythonClasses | 2e9f80e5950f1d95f130cbf2961ba76572e168ff | b0953f784163f0b61b005ec9063590bfd7b187f4 | refs/heads/master | 2023-02-17T06:20:21.299153 | 2021-01-17T02:37:43 | 2021-01-17T02:37:43 | 277,351,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from selenium import webdriver
from selenium.webdriver import Chrome
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
driver= Chrome(ChromeDriverManager().install())
driver.maximize_window()
driver.get("https://www.tripadvisor.in/")
driver.find_element_by_xpath(... | [
"masureneel96@gmail.com"
] | masureneel96@gmail.com |
51dde15d6c9dcd5b47372074f59a94aaf285d18e | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/boto-2.2.2-py2.7.egg/tests/s3/test_encryption.py | 91ef71c0aea21de4627a56c7fc28687ec5bf20f8 | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 3,689 | py | # Copyright (c) 2010 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2010, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restrict... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
7fca737d933dc05a8d262b9838072e398d6e672b | 902f2617d3b5f5a4d71cbbd5b047e699bdc590e3 | /catch/get_unit.py | 4aee2e12d99dc34a515afc77d4cafc20c4791c7e | [] | no_license | dragonMar/eia | cbb34704d021f4abadb967a70a5a751d1246182d | 30861354d97537f02254baedaf648a18cc597ef5 | refs/heads/master | 2021-01-12T13:52:35.159762 | 2016-11-10T07:52:36 | 2016-11-10T07:52:36 | 69,075,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | #!/user/bin/evn python
#coding:utf-8
#author:dragonMar
import datetime
import re
import requests
import threading
import Queue
from conn_psql import conn_psql
from requests.adapters import HTTPAdapter
from bs4 import BeautifulSoup as bs
from mail import send_mail
create_time = datetime.datetime.now().strftime("%Y-%... | [
"mayexinxin@163.com"
] | mayexinxin@163.com |
3d19f59a1cf67ef588f572431c210bc2e04a0078 | 58046bf1d94c3f3ed6630f5c36a9c826271db03c | /sgmdxfparser/linetypes.py | 559f2b1ab828152b762b5cc34fab82a3c92f6a19 | [
"CC-BY-3.0"
] | permissive | neogeo-technologies/GeofoncierEditeurRFU | 28c98309a0d69e52364aebb9aba9eb0810d6012b | 0b706055421e815229b0c2edc12fc21ec50313f4 | refs/heads/master | 2022-05-10T21:10:42.280172 | 2022-05-04T09:03:49 | 2022-05-04T09:03:49 | 32,805,477 | 2 | 4 | null | 2022-05-04T09:03:50 | 2015-03-24T14:57:02 | Python | UTF-8 | Python | false | false | 1,167 | py | # sgmdxfparser - copyright (C) 2017, Etienne MORO
# and copyright (C) 2012, Manfred Moitzi (mozman)
# Purpose: handle linetypes table
# Created: 2014-01-06
# Updated: 2017-02-06
# License: MIT License
__author__ = "emoro - mozman"
from .layers import Table
class Linetype(object):
def __init__(sel... | [
"noreply@github.com"
] | neogeo-technologies.noreply@github.com |
e1527622d7e13b128f5f9f7d8137b0560629cba8 | 3b08f1e7455c18edf4d51b39a255d7f605d03dfc | /Milkovify/Cogs/owner.py | 4b9aa04d0cdf441a658e3620921dd91db403828d | [] | no_license | bntoine/Flobot | 6dd9e6ac021c5abc43dda408ddf4681c22741b66 | fef83203b4bc2d92a74705bac5bc155634a25722 | refs/heads/main | 2023-07-07T02:45:45.803883 | 2021-08-13T03:01:44 | 2021-08-13T03:01:44 | 395,106,125 | 0 | 0 | null | 2021-08-11T20:14:52 | 2021-08-11T20:14:51 | null | UTF-8 | Python | false | false | 3,053 | py | from discord.ext import commands
import discord
from Core import permissions
def mod_check(ctx) -> bool:
"""
We can assume anyone with manage_messages is a mod.
This should be a decorator.
"""
if ctx.author.guild_permissions.manage_messages:
return True
return False
... | [
"noreply@github.com"
] | bntoine.noreply@github.com |
2f4436080ba419b967db3a6882405cf290cc8f4e | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/telemetry/telemetry/internal/results/csv_pivot_table_output_formatter.py | 43fb9738be93a7c747300f9dcaf53950f9f28256 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 2,408 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import csv
from telemetry.internal.results import output_formatter
from telemetry.value import scalar
from telemetry.value import trace
class CsvPivotTabl... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
e583e650ba2b2f0b51a3a7cdf207635d8b890fb9 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.3/tests/modeltests/save_delete_hooks/models.py | 515c7f6c917eec43bd1f9198e93e78b3e6af91be | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 909 | py | """
13. Adding hooks before/after saving and deleting
To execute arbitrary code around ``save()`` and ``delete()``, just subclass
the methods.
"""
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=20)
def __init... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
781015300e81a0f085188e83843c4264c5cc7352 | 416326a23836d9e47c92bfd8ef7161e3bb3d3d48 | /GAN/swiss_roll/utils/plotting.py | a7127d2ad8b34c4e5ec311343859d1d70368bb20 | [] | no_license | petzkahe/GAN-geodesics | 2bdf1d9681741544fee733f689fab5db048394b4 | 1377cc6a43023127532a17ca26d848c0f36eece9 | refs/heads/master | 2020-04-08T00:33:25.831440 | 2019-06-20T13:59:18 | 2019-06-20T13:59:18 | 158,856,333 | 1 | 0 | null | 2019-01-21T13:32:35 | 2018-11-23T16:34:39 | Python | UTF-8 | Python | false | false | 3,747 | py | import matplotlib
import numpy as np
matplotlib.use('pdf') # to generate png images, alternatives: ps, pdf, svg, specify before importing pyplot
import matplotlib.pyplot as plt
from GAN.swiss_roll.GAN_Learning.config_GAN import *
from GAN.swiss_roll.Geodesic_Learning.Standard_Approach.config_geodesics import *
def... | [
"ted@maths.lth.se"
] | ted@maths.lth.se |
364f661f1c9b4d85b8e2fd9da50590288ee3033f | b59560c5a19421496d8f6440a1cae8408e28ae4f | /loans/migrations/0001_initial.py | fe1067b7ac5501b22e1a049936cfe75c81ebbc23 | [] | no_license | dheerajreal/ExampleLoanAPI | ea6d4115448bd20788bf171a9609e20a7be2f73d | dbbda18ebd9a299843191d19ca0f874e1d161b3b | refs/heads/master | 2023-06-17T11:18:47.777097 | 2021-07-05T04:27:28 | 2021-07-05T04:27:28 | 365,797,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # Generated by Django 3.2 on 2021-05-09 10:51
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"44266862+dheerajreal@users.noreply.github.com"
] | 44266862+dheerajreal@users.noreply.github.com |
95e8c46dc93fe2c9d67d82995753bbaa9c9719ef | 0883e55b84a8f66447b22c4dc156401e52440168 | /applications/movies/urls.py | 530b6060654116e8e9c1e6af122e192be33107b5 | [] | no_license | guinslym/falardeau | 76ba32ee92f8991d9a2e1b6cbee843b477f70a3e | 95c7c2160fbddc90263da70214de7a1ea18d0aa0 | refs/heads/master | 2021-01-20T17:20:20.246826 | 2016-06-15T00:08:56 | 2016-06-15T00:08:56 | 61,071,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.conf.urls import url
from .views import MoviesListView
urlpatterns = [
url(r'^$', MoviesListView.as_view(), name='websites_list'),
#url(r'^(?P<slug>[-\w]+)/$', WebsitesDetailView.as_view(), name='websites_detail'),
]
| [
"guinslym@users.noreply.github.com"
] | guinslym@users.noreply.github.com |
0ec34ae3d67d38d261d287cf6d43148b655b3c0a | 66643f48950453dd1cc408a763360db2be9942f6 | /src/graphql/utilities/type_comparators.py | 62883785e8dbf69ca3febe93f60392d49a88ac1c | [
"MIT"
] | permissive | khasbilegt/graphql-core | ac958b5a68c27acd0c7f96429deeca7f7f8736b3 | fc76d01a2a134ba2cebd863bf48773fd44c2645b | refs/heads/main | 2023-08-05T06:03:56.299244 | 2021-09-19T10:31:30 | 2021-09-19T10:31:30 | 408,735,141 | 1 | 0 | MIT | 2021-09-21T08:00:36 | 2021-09-21T08:00:35 | null | UTF-8 | Python | false | false | 4,629 | py | from typing import cast
from ..type import (
GraphQLAbstractType,
GraphQLCompositeType,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLSchema,
GraphQLType,
is_abstract_type,
is_interface_type,
is_list_type,
is_non_null_type,
is_object_type,
)
__all__ = ["is_equa... | [
"cito@online.de"
] | cito@online.de |
853bbfd72f446f98d07d47042852e1b80144dd93 | 167eb71c690e43e06b943a04a031f9e662ac7521 | /acq4/analysis/modules/MapAnalyzer/ctrlTemplate.py | 901625697512bfeaab44b13aa117f413f51a6d39 | [
"MIT"
] | permissive | histed/acq4 | 8e0a5dedc74c2ea063477e4b0027fbade3a72e61 | ea0242d49245b81ab218d8d3e0187138b136ded5 | refs/heads/develop | 2021-01-19T23:46:54.999081 | 2017-03-24T22:48:52 | 2017-03-24T22:48:52 | 89,023,143 | 0 | 6 | null | 2017-04-21T20:58:33 | 2017-04-21T20:58:32 | null | UTF-8 | Python | false | false | 3,373 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './acq4/analysis/modules/MapAnalyzer/ctrlTemplate.ui'
#
# Created: Tue May 20 15:26:55 2014
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8... | [
"pmanis@med.unc.edu"
] | pmanis@med.unc.edu |
8bd3a1fd66979e916bd66848fbf18dac81cccc66 | f08749ca91f970d7a56aa11880b82ea67cd63d61 | /Lab1.2/Lab1.2.py | 40924a6fac75f5c6072c7f31c39d56dce44dd0cd | [] | no_license | yichernov/p4ne | 2464570463a6f7c19fca67c6e86a48b90145a857 | aee35ebcf4d86881a72e0de236b75367004323fe | refs/heads/master | 2021-01-02T06:22:19.507296 | 2020-02-21T09:50:14 | 2020-02-21T09:50:14 | 239,525,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from matplotlib import pyplot
from openpyxl import load_workbook
wb = load_workbook('data_analysis_lab.xlsx')
sheet = wb['Data']
def getvalue(x): return x.value
dates = [i.value for i in sheet['A'][1:]]
rel_temp = [i.value for i in sheet['C'][1:]]
sun_activity = [i.value for i in sheet['D'][1:]]
'''dates = list(ma... | [
"yi.chernov@jet.su"
] | yi.chernov@jet.su |
06394a77ed2f1d2d9fef605ef4221e00a7e27e68 | 096ccaca86872b03a137edf58221413073d770cb | /spiders/wine_in_black.py | f82ed3b7850ef36fb7a7997195fa35eb55d5f09a | [] | no_license | DH-heima/webscrapping | f142962b50deed2628052dd7a48098a4afbcbada | 1dc8f81f45db0d4366391c3052c5ab36f4d4bc5d | refs/heads/master | 2022-02-02T23:26:22.520064 | 2019-06-13T13:38:10 | 2019-06-13T13:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,858 | py | import os.path as op
from io import BytesIO
from lxml import etree
parser = etree.HTMLParser()
from time import sleep
import requests
import requests_cache, imghdr
from validators import validate_raw_files
from create_csvs import create_csvs
from ers import all_keywords_de as keywords, fpath_namer, mh_brands, header... | [
"pierre.chevalier@epitech.eu"
] | pierre.chevalier@epitech.eu |
db18463c61582861617810a045b7c5ec84f705d3 | 4f4fa989f0449826190d83a6ead4211822eed826 | /pythongames.py | 021a9d503f30ef7178632a0aa92c1ce29bc92806 | [] | no_license | chloehuh5/pythonshapes | 6a88c8a4b3a67ff1cbfd763fb6cc94b19e8aa449 | 0b08a32756fdf915f5e2ca4c0f6b11d38e9aaa50 | refs/heads/master | 2020-12-02T18:01:26.826042 | 2017-07-07T20:15:29 | 2017-07-07T20:15:29 | 96,461,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | start= '''
You decide to take up babysitting. You think "hey its kids, money and love. what could go wrong?"
You are babysitting a five year old boy named James. He asks you to take him to the park.
Type the options to play.
'''
print("start")
print ("You decide to take up babysitting. You think 'hey its kids, money ... | [
"noreply@github.com"
] | chloehuh5.noreply@github.com |
335c4735b5f93c8d400b3bcc439d8e4c1593fba9 | 676927c4601f0710bb78ff06610a4fe2f85c998e | /logisticReg.py | ab38332e7cb8997b139a28dfbd554c8e4b6e4c98 | [] | no_license | BrianJConway/locateAudioSnippet | 55e4d1c27b214617db9cd34f05b0520c012bbacc | d919494a1514949ea8dbdb2b47f206cec3ebab22 | refs/heads/master | 2021-01-20T05:40:22.580385 | 2017-10-03T21:40:46 | 2017-10-03T21:40:46 | 101,461,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | import numpy as np
import scipy.optimize as op
import os
import locateAudio
# Maps values from 0 to 1
def sigmoid(x):
return 1 / (1 + np.exp(-x))
# Normalizes values so that the mean is 0
def normalize(x):
# Store means of each column in a row vector
mu = np.mean(x, axis=0)
# Store std dev of each co... | [
"brianc@nevada.unr.edu"
] | brianc@nevada.unr.edu |
44d69bd46ff324ead7ec7445e787bbd91f553c7b | 2fa24558d83ff57370f8d230b21da63755499407 | /squirts/misc/vertical-scale.py | 6ce3998f93b1fe1472e4622e7c0fa018ab1626d8 | [
"MIT"
] | permissive | ajaypg/Tk-Assistant | be356e1f9211d8d65cfa8406f4cddbfa340b2a90 | 98941e2d24e6f5db8f3a51fde618db39aac29155 | refs/heads/master | 2020-12-12T15:23:49.835787 | 2019-12-10T04:26:39 | 2019-12-10T04:26:39 | 234,160,415 | 1 | 0 | MIT | 2020-01-15T19:51:15 | 2020-01-15T19:51:14 | null | UTF-8 | Python | false | false | 845 | py | """Vertical scale.
Stand-alone code from Tk Assistant.
stevepython.wordpress.com"""
from tkinter import Canvas, Scale, Tk, VERTICAL
root = Tk()
root.title('Vertical scale example')
def setHeight(canvas, heightStr):
"""Set scale height."""
height = 21
height = height + 21
y2 = heigh... | [
"noreply@github.com"
] | ajaypg.noreply@github.com |
feb08e60a88a79b0e6525cae8075ce14d7e90d9c | ff669e08566570eeedb3a5f61423fbeff9ce3502 | /mysite/settings.py | 24f2c520b4a15b29b3ba9ff395911202c23479bd | [] | no_license | EmaCor13/my-first-blog | 538b26974aa14bf1d5cdb47396b86a4c10931fc9 | 8fd0f943b33faf895d1236dbe4f79ffb558772d4 | refs/heads/master | 2021-01-23T09:10:31.073850 | 2017-09-19T17:00:58 | 2017-09-19T17:00:58 | 101,093,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"k-rloslopezfcbdrago@hotmail.com"
] | k-rloslopezfcbdrago@hotmail.com |
1b44d695a8bcc11b42dc6f6d733884a5907296cb | 9276e2d3168ce407f1c7e35c07749c1ab84cbc87 | /maria/hook.py | 857e3b1f7368045e7f20e8b0f4bfa4be0a92d043 | [] | no_license | lehoon/maria | 731dce49dbeb6edcf4d360ee1bcda9dec6c1ec27 | 2f2bc1dca40f5f63154c47e60112e936f26a04b7 | refs/heads/master | 2021-01-18T02:29:29.635672 | 2013-08-10T03:15:30 | 2013-08-10T03:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | #!/usr/local/bin/python2.7
#coding:utf-8
import sys
import logging
from maria.config import config
logger = logging.getLogger(__name__)
# TODO get repo path
def parser_command(command):
if not command:
return None
repo = 'test.git'
command = command.split(' ')
command[-1] = command[-1].strip(... | [
"ilskdw@gmail.com"
] | ilskdw@gmail.com |
026287153fca2dacac06372d7916aaa4ecaff4db | 8720c54cf154e9a1d2e6da64f4397ce7edb0d8c8 | /run_unittest.py | fefe3611baae399e563e17538ac803b1399239de | [] | no_license | mcardillo55/abstract-email | 50053ee48be0df1ad806f2f19c13513bdae2d193 | 6003159d3067a46ccd07bf35aeb08e859760e8fc | refs/heads/master | 2021-01-10T21:15:43.836693 | 2014-07-29T10:45:07 | 2014-07-29T10:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | """
run_unitest.py
"""
import unittest
import json
import copy
from app import app
from app.mail import Mail
class EmailAbstractTestCase(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.goodParams = {
'to': 'fake@example.com',
'to_name': 'Ms. Fake',... | [
"mcardillo55@gmail.com"
] | mcardillo55@gmail.com |
3ff7f8f44946e6ee1ce84b79248822b5cbf47d21 | 10098dbd21799e13128728c1b9eec47faaf15de3 | /staff_department/admin.py | 76424e72998c18d2f9b93a53ee79880f32f2619f | [] | no_license | oWlogona/myFactory | 1c602c450e2df8a95e1ad195afd2eba2976b0608 | 970dfcc5a5423ba346bab39751c9c3873c01ed3e | refs/heads/main | 2023-01-14T11:45:24.912318 | 2020-11-16T07:39:13 | 2020-11-16T07:39:13 | 313,223,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from django.contrib import admin
from staff_department.models import Profile, UserSpecialty
class ProfileAdmin(admin.ModelAdmin):
list_display = [field.name for field in Profile._meta.fields]
class UserSpecialtyAdmin(admin.ModelAdmin):
list_display = [field.name for field in UserSpecialty._meta.fields]
ad... | [
"нвУ№и6нц7"
] | нвУ№и6нц7 |
635334fafe5fa45e17a2c2eaa5a6d8be192ffb6f | e62f13ea50ac3d5ab659377a79b7cbd2d1550bb9 | /Proyecto1.py | 0fbe37057526048df791a1473bea52a09ab3dc35 | [] | no_license | 1Yasmin/compis3 | a840023085c6a4fd8e9ba30e341bd8bf11debf6c | 653ee08d8f45aa005d256fc11f7a8224e49760b9 | refs/heads/master | 2023-04-07T04:49:04.712950 | 2021-04-16T02:55:48 | 2021-04-16T02:55:48 | 269,541,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | """
Entrada de datos
*** Implementación de Thompson
Construcción de NFA --> Simulación (si o no de una cadena w)
Contrucción de subconjuntos
Tabla con: NFA | DFA | Variables....
Construcción de AFD dada r
Graficar el AFD
Simulación de AFD --> (si o no de una cadena w)
... | [
"ychavez2014ig@gmail.com"
] | ychavez2014ig@gmail.com |
ea77ff053ea92804564d32e01eeb9606a2346820 | dd875e63cb2bf1cd43326f9df1569939253b243c | /tests/test_token/test_bag.py | 4caedaada4c684d18c310bf00286e3631cc45feb | [
"MIT",
"Python-2.0"
] | permissive | life4/textdistance | 514bb05112bc8ad2a1f4ca2941c7590f617a5232 | d3e1f6d2117ac70f63eb027b1223b8ddf42cd4aa | refs/heads/master | 2023-08-11T23:20:46.518294 | 2022-09-18T07:45:53 | 2022-09-18T07:45:53 | 90,356,012 | 1,819 | 145 | MIT | 2022-09-18T07:43:24 | 2017-05-05T08:46:10 | Python | UTF-8 | Python | false | false | 426 | py | # external
import pytest
# project
import textdistance
ALG = textdistance.Bag
@pytest.mark.parametrize('left, right, expected', [
('qwe', 'qwe', 0),
('qwe', 'erty', 3),
('qwe', 'ewq', 0),
('qwe', 'rtys', 4),
])
def test_distance(left, right, expected):
actual = ALG(external=False)(left, right)
... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
5bae3616fbfc026d80d3b2c8e25c72108155882b | 52a7b1bb65c7044138cdcbd14f9d1e8f04e52c8a | /oscar/apps/offer/abstract_models.py | 7d03c5b805cf5a6d465670899402552eec36a4cd | [] | no_license | rds0751/aboota | 74f8ab6d0cf69dcb65b0f805a516c5f94eb8eb35 | 2bde69c575d3ea9928373085b7fc5e5b02908374 | refs/heads/master | 2023-05-03T00:54:36.421952 | 2021-05-22T15:40:48 | 2021-05-22T15:40:48 | 363,398,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,133 | py | import itertools
import operator
import os
import re
from decimal import Decimal as D
from decimal import ROUND_DOWN
from django.conf import settings
from django.core import exceptions
from django.db import models
from django.db.models.query import Q
from django.template.defaultfilters import date as date_filter
from ... | [
"you@example.com"
] | you@example.com |
eb029faf2ac47f51ba38f779935c0e1a93e208ad | ffcf7f608e9378874fff440274b8ad13b7f26f42 | /Word Window Classification/eval.py | 0a7c570b733d086f527c0141ab4426c9de6eec64 | [] | no_license | linhaowei1/Learning-Learning | dc2cd541f6041be999b034a50207d0e9b8b61960 | 7ab0134db053a47e1669d918f9fd5238d88fc7ca | refs/heads/main | 2023-06-26T13:44:49.240362 | 2021-07-26T01:45:11 | 2021-07-26T01:45:11 | 306,884,901 | 1 | 1 | null | 2021-07-26T01:45:11 | 2020-10-24T13:03:43 | Python | UTF-8 | Python | false | false | 1,378 | py | from model import *
from torch.utils.data import DataLoader
from functools import partial
vocabulary, datasets, inx2word, word2inx = make_data(corpus, LOCATION)
test_corpus = [
'I am born in hebei',
'I make a trip to hongkong',
"she comes from paris",
"Anxi and xiamen are beautiful",
"you can come ... | [
"noreply@github.com"
] | linhaowei1.noreply@github.com |
2dfa174f1ec1003a2b882afd4509cc13dc9430f8 | b82fb1865082cc3e43902d1c243fb43588d82e7d | /wsps.py | ed7f78363f77d0ba653bb1c781b91951bff5d2b8 | [] | no_license | toddjobe/WSPS | 9809241803d02d66f5be0a4f4ee26c7fd261432b | 986d59e4adc675e137f0096f0215a68b9078dcd2 | refs/heads/master | 2021-01-20T23:23:58.407820 | 2013-06-23T11:39:50 | 2013-06-23T11:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # requires pysox
from sys import stdout
import ConfigParser
import pysox
defaults={
'videoStream': 'udp://localhost:1234',
'audioDevice': 'default',
'localFolderBase': '/Users/toddjobe/Documents/AudioFiles',
'localFolderBase': '/Users/sunraes/Desktop/AudioFile',
'remoteFolder': '%(localFolderB... | [
"toddjobe@gmail.com"
] | toddjobe@gmail.com |
f12bfa6f0d34247b63b0d898ea4c9a475cfd160d | 8896b5e32f29de6a2fb3b03ce2ce086e99a22ce8 | /hangmanBoard.py | 39506361c6eaae3eb0060a019c8c1110e3780b27 | [] | no_license | DannyCosto/pythonStuff | 30ae956e1ac5f1b4d2d2cb4181585ea7e8d7814e | 5db8195650475af4d9338381aac3d6ef664af6ee | refs/heads/main | 2023-08-22T08:57:10.150846 | 2021-10-11T20:19:31 | 2021-10-11T20:19:31 | 406,572,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | import random
hang = ["""
H A N G M A N - Fruit Edition
+---+
| |
|
|
|
|
=========""", """
H A N G M A N - Fruits Edition
+---+
| |
O |
|
|
|
=========""", """
H A N G M A N - Fruits Edition
+---+
| |
O |
| |
|
|
========="""... | [
"danny.costelloe@gmail.com"
] | danny.costelloe@gmail.com |
68db002ece701a78b34a2008b672fb429735ef1d | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bb1.py | a272dbb08b843b639b495030b83e5785f5936383 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
627876afa6b7181fdacf49d33fab0d4c52c70692 | 5a34ce118ea4503e2497ddd5517da3805cc15690 | /00原始代码【无笔记纯享版】/00-01-3pandas常用内容速成简记/demo05简单类型变换预处理数据/演示案例:数据转换/example数据转换1-根据身份证号信息填性别栏/example数据转换1.py | 6a7945957ff7983443c8928dbcf2f43186e400a7 | [
"MIT"
] | permissive | ccsourcecode/python-data-analysis | d38b4c3e42cdf41dc479972a63109befb73f118f | ec97de685439bbd990eb23edfc8145ad33c02210 | refs/heads/master | 2023-06-30T04:03:10.408756 | 2021-08-09T08:00:47 | 2021-08-09T08:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import pandas as pd
# 取出文件
df = pd.read_csv(filepath_or_buffer="住户信息.csv")
# print(df.columns)
# 身份证号列转为字符串
df["身份证号"] = df["身份证号"].astype(dtype=str)
# 取出身份证号的第13位判断性别:奇数男,偶数女
gender = [("男" if int(identity[12]) % 2 == 1 else "女") for identity in df["身份证号"]]
# print(gender)
# 补齐性别列的缺项
df["性别"] = gender
print(df)
| [
"cutelittletiantian@foxmail.com"
] | cutelittletiantian@foxmail.com |
2cca5aa749607f440de91ff5f79018aa883e6347 | 00e67116b4539d5351eadc37868497ce45a3f81c | /tensorflow_demo.py | e7d9bb5f43d88c0fcb9ffdc9248b1df01d1e2025 | [] | no_license | Dufert/TensorflowDemo | b77cb333ec111a2a428aab62835ce1cb539ad5bb | 47b074213251426741b763863ce4befc23f84835 | refs/heads/master | 2023-07-28T20:10:58.639721 | 2021-09-11T06:21:57 | 2021-09-11T06:21:57 | 405,301,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,524 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 9 09:36:07 2018
@author: Administrator
"""
# ==============================================================================
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use... | [
"dufert1130@gmail.com"
] | dufert1130@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.