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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2dee36385c4a7f1048a4323ce74bddb78d1e287 | eaf4e734f5238ede8867f86e298f7e13c5b063fc | /RequestLibrary/request/Sample03.py | 6203e8264257b553f69010310be314202893d4ad | [] | no_license | asifurrouf/RestApiAutomation | 20ca5c19d86996fdc838fb8432f6fab42b1a355e | 57a1685b8197999d308025a4f719c0d341c74ea2 | refs/heads/master | 2020-06-28T21:42:50.653762 | 2017-05-19T06:09:56 | 2017-05-19T06:09:56 | 74,468,130 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import responses
import requests
@responses.activate
def test_my_api():
responses.add(responses.GET, 'http://twitter.com/api/1/foobar',
json={"error": "not found"}, status=404)
resp = requests.get('http://twitter.com/api/1/foobar')
assert resp.json() == {"error": "not found"}
asse... | [
"rouf.asifur@gmail.com"
] | rouf.asifur@gmail.com |
c98f9a9726047f4b9c13bbe9267c04b7238554f5 | 2e15dcd969888a4202a10df87912398b3491faa5 | /eoc/graph_scene.py | 4722aa694123bb86824fff262d42e6e0a237fca3 | [] | no_license | moses1994/manim | 4f1ebe228b90462db97bb517b6b17f87e3ed0b3b | 982ddb4c14e454293c813bc4d1d5d9a0385ae5ad | refs/heads/master | 2021-01-13T03:16:06.288277 | 2016-12-26T15:10:38 | 2016-12-26T15:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,804 | py | from helpers import *
from scene import Scene
# from topics.geometry import
from mobject.tex_mobject import TexMobject, TextMobject
from mobject.vectorized_mobject import VGroup, VectorizedPoint
from animation.simple_animations import Write, ShowCreation
from topics.number_line import NumberLine
from topics.functions... | [
"grantsanderson7@gmail.com"
] | grantsanderson7@gmail.com |
baf0ea5868c97078b0ac00e5849c440553700302 | b9a131dd85fe5f2d2f5b16c97b1f859ede5a4914 | /Curso_em_Vídeo/utilizando while/Desafio02.py | e910749cf987c6cb33cc710b0347cbf2a360b4e0 | [] | no_license | juancassioo/python-sistemas | 131f218bf8fa1bebf1bc6e5fbe3222571ca7a42f | 378596d1c630357b1b1958a3b4e3e7f6f96dd5d1 | refs/heads/main | 2023-07-04T20:27:22.859839 | 2021-08-09T01:10:37 | 2021-08-09T01:10:37 | 394,105,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from random import randint
computador = randint(1,10)
print('Tente adivinhar meu número')
acertou = False
palpites = 0
while not acertou:
jogador = int(input('Digite um numero: '))
palpites += 1
if jogador == computador:
acertou = True
elif jogador < computador:
print(... | [
"noreply@github.com"
] | juancassioo.noreply@github.com |
0b3ff650e9dfb71ebdf0317b59d8e2385c2daa4b | 795b0d3fa770b9e136bf5b0790cf45740025a2ed | /AI/transformerTester.py | 031b469bee275bacd7f638fc85b5739de480c2d5 | [] | no_license | Baes20/AIstuff | 8ff812c537d94d0793b33c21d6ec6adbe1d09008 | 307032ac4c147cab951b579a2eabd82a5acf8abe | refs/heads/master | 2020-04-19T01:39:19.814505 | 2019-09-19T01:12:26 | 2019-09-19T01:12:26 | 167,877,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | from FXTMdataset import MarketDataGenerator
from Attention3 import DeepPredictor
import tensorflow as tf
import random
import matplotlib.pyplot as plt
import numpy as np
import sys
from NASDAQ100dataset import NasdaqGenerator
from Luong import Luong
from Transformer import Transformer
sys.setrecursionlimit(... | [
"noreply@github.com"
] | Baes20.noreply@github.com |
7d686f1717b013e5a16bfd46d17ede520136c2e1 | 1a90e935bf8bae9f352775cd5e4d7cb89e2c1827 | /venv/Scripts/rst2html4.py | 9d13b068a0a2df48b32120082b1d92c9fc6f6b72 | [] | no_license | KyleIrving01/KylePracticals | a3d3fd1c673c0a16050b530034caa9ec582e7261 | 7af28f1903f5d5d97f1a60d88e4b43c7c4bc6500 | refs/heads/master | 2022-10-22T05:28:22.330462 | 2018-04-11T08:08:32 | 2018-04-11T08:08:32 | 127,836,146 | 0 | 1 | null | 2022-10-01T16:15:00 | 2018-04-03T01:57:23 | Python | UTF-8 | Python | false | false | 761 | py | #!C:\Users\Kyle\PycharmProjects\KylePracs\venv\Scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms... | [
"kyle.irving@my.jcu.edu.au"
] | kyle.irving@my.jcu.edu.au |
02a5bbc62239aa59ffed254631814c7b2f0e9001 | b70e3c8d4b512212708eda8bba4e33a102c9edfd | /photo/tests.py | 570f0a6d20fb4a2e8ed816e4a196c4ddab5d0706 | [
"MIT"
] | permissive | markmumba/Thee-Gallery | b8d378700a9696f57d3d2e0af184b4f635537c1b | fcdbeb35f26db6ecb68dd9c786e842fe2aea7772 | refs/heads/master | 2021-09-09T09:34:47.412904 | 2019-08-27T08:34:23 | 2019-08-27T08:34:23 | 203,953,586 | 0 | 0 | null | 2021-06-10T21:53:51 | 2019-08-23T08:06:47 | Python | UTF-8 | Python | false | false | 565 | py | from django.test import TestCase
from .models import Location, Image, Category
# Create your tests here.
class ImageTestClass(TestCase):
def setUp(self):
self.location = Location(name='nairobi')
self.location.save()
self.category = Category(name ='food')
self.category.save()
... | [
"markmumba01@gmail.com"
] | markmumba01@gmail.com |
a2a59919f86d0379d999ad9f21ac54fd2050ef58 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /dms_write_f/endpoint_delete.py | 931dd6bbc2ae6f7170ea30b200a1a599d99271d0 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
43b7ee085e4556264bd72e224d461a3231d7227a | 051175a2e83077b1c55a9b927fa944f7d578954b | /class&object-python/untitled2.py | 3c5f567b8dcc973c6da864961b20e587081da145 | [] | no_license | ajkashik/Class-object-python-Introduction | 79cfec4db6310b796ef91bd4f80ca2fc1dfb970b | 1e9549d59edcd48cad9d3596e242f224c4562b49 | refs/heads/master | 2022-11-06T09:10:19.210570 | 2020-06-28T19:17:44 | 2020-06-28T19:17:44 | 275,652,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class bird:
def __init__(self):
print("This is a bird")
def name(self):
print("bird")
def swim(self):
print("Can swim")
class penguin(bird):
def __init__(self):
super().__init__()
print("This is penguin")
def name(self):
super().name()
... | [
"noreply@github.com"
] | ajkashik.noreply@github.com |
b519651abbfcf68850825535a106d0edbcc9b006 | baaefd1bbc39142294fef46f5cd4b1128a1b8e74 | /data/getData.py | 3772cba7a30c54d6c47390cc3df6d694a9959645 | [] | no_license | gutobenn/inf-visdados | f8853ca21057bded091a578339da1164fe69694e | eb6823b4d1815672c3102b7e60f45c5e79e0e3cb | refs/heads/master | 2020-03-25T05:47:13.090246 | 2018-07-16T22:22:45 | 2018-07-16T22:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import csv, sys
from collections import Counter
input_stream = open(sys.argv[1])
reader = csv.reader(input_stream, delimiter=';')
print(reader.next()) #skip header
data = [row[int(sys.argv[2])] for row in reader]
print data
for (k,v) in Counter(data).iteritems():
print "%s %d" % (k, v)
| [
"fabriciommazzola@gmail.com"
] | fabriciommazzola@gmail.com |
92d0ea6cb275b2656032b22fc0bced5e32c93bac | 535fcd46a4708f35406ac93def63728d3296ff70 | /sign-websocket/lambda_function.py | 39d6b17fb633f574b83477c9627c6065d160793e | [] | no_license | maxzega/sondehub-infra | bd12087d633ec28a7bcc1d1358961635d47e211c | 00fddada463f7f0a4a190026dd311c6b595c8c08 | refs/heads/main | 2023-04-15T21:31:43.310299 | 2021-04-23T10:33:54 | 2021-04-23T10:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | import boto3
import time
import uuid
import urllib.parse
import hmac, datetime, hashlib
import os
#todo this will need an iam role that has iot connection privs
def aws_sign(key, msg):
return hmac.new(key, msg.encode("utf-8"), hashlib.sha256).digest()
def aws_getSignatureKey(key, dateStamp, regionName, serviceN... | [
"git@michaela.lgbt"
] | git@michaela.lgbt |
89e1240e6d4e1e68240d8ff9adcd8c6e1613b0e9 | e3f3def1b627eb1ba58395b23c732b124bc76b05 | /PMCHealthCare/HealthRecord/models.py | a2c6535ae6de0f685a718ccb751229e8b6514528 | [] | no_license | ShraddhaVarat/HealthRecordApp | d59e3c582e4d66a4a0d8cbb88002cf5e7d685e3d | 029f41885ef29440899f720bcf3377991a773008 | refs/heads/master | 2020-03-27T22:32:15.291007 | 2018-10-11T19:26:31 | 2018-10-11T19:26:31 | 147,239,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | from mongoengine import *
from django.utils import timezone
import datetime
from datetime import datetime
from django.db.models import (
DateField, DateTimeField, IntegerField, TimeField, Transform,
)
from PMCHealthCare.settings import DBNAME
connect(DBNAME)
class Doctor(Document):
doctor_id = StringField(max_le... | [
"shraddhavarat77@gmail.com"
] | shraddhavarat77@gmail.com |
33034e06cf155cf17a64e4d985bd5693ace235fb | 00affc541697bb828548f227d6b07d6bdba78eeb | /Report/grafik/amplitude-plot-snorken.py | ce353dcce2dbccf208122d2e8d593ff0fd39d374 | [] | no_license | lgrave11/P8-Report | c0872f5d11814974a8b31a90f4112142635bfc5c | 67bcafddc7ba670560cf018d14ebd5f3d88b11f7 | refs/heads/master | 2016-09-05T19:12:52.511855 | 2015-06-23T08:35:52 | 2015-06-23T08:35:52 | 30,405,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | import datetime
import matplotlib
import matplotlib.dates
from matplotlib.dates import YearLocator, MonthLocator, DateFormatter
def main():
f = open(r"snorken_amplitudes.txt", "r").readlines()
lst = [(datetime.datetime.strptime(x.split("\t")[0].strip(), "%Y-%m-%d %H:%M:%S.%f"), x.split("\t")[1]) for x in f]
... | [
"gravesenlasse@gmail.com"
] | gravesenlasse@gmail.com |
8a5e5ac52df2299bd07b8855ea97880603375668 | 48fcd5b9203c5f34dcad9483259c0f3d46f5d48b | /coursera-python/strings_evaluation.py | ab068659dcdc5aa7585549a1d1bec40e7c103fbf | [] | no_license | ssaulrj/codes-python | 438dd691815d0a688d264928eb07187ba30c2138 | 04b75b001de60a5e202ad373f3379864753ce203 | refs/heads/master | 2022-11-17T11:40:18.883096 | 2020-07-06T00:57:58 | 2020-07-06T00:57:58 | 234,440,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | #The is_palindrome function checks if a string is a palindrome. A palindrome is a string that can be equally read from left to right or right to left, omitting blank spaces, and ignoring capitalization. Examples of palindromes are words like kayak and radar, and phrases like "Never Odd or Even".
def is_palindrome(input... | [
"noreply@github.com"
] | ssaulrj.noreply@github.com |
2d4f81484db9931750caf5780609c291d546af57 | 7828deb2e1c37adafaac9a527887e67e0d2f98ca | /venv/Scripts/easy_install-script.py | b5a08e4f01dc3ed7c0549c7e42567214091492c7 | [] | no_license | arunindia95/automation-first | 78bd565feaad77b86759afff1a12ab71f00ce5e1 | 9b403105ada7e62c020f6752ca619befadbdeb73 | refs/heads/main | 2023-03-29T11:16:27.456232 | 2021-03-21T10:40:21 | 2021-03-21T10:40:21 | 349,966,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!C:\Users\Admin\PycharmProjects\saleprac\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"arun.konagutti06@gmail.com"
] | arun.konagutti06@gmail.com |
06e38ae0557bd579e0f1e8e62c7e68ce5eee8d42 | 6d4c0a2e0997fc2dd850c0ceb2584d65c17a5fb3 | /crud/apps/sr_users/models.py | c3af94bb101e3ba397fdeee81a54e108980bc44b | [] | no_license | cd-chicago-june-cohort/django_orm_Alyssa | 77eb155c46ff79a4c27a36f4154d4f2e0f65161e | 17df629ba00edac1d1cd23dfc93729ff4818f468 | refs/heads/master | 2021-01-01T06:46:28.394999 | 2017-07-19T21:39:40 | 2017-07-19T21:39:40 | 97,506,652 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def user_validator(self, post_data):
errors = {}
if len(post_data['first_name']) == ... | [
"alyssa@nickow.com"
] | alyssa@nickow.com |
eee5575235971f6b7417c1981655c6d18d4f5064 | 15cebfba74a77de9d633addb278e57917ade3a14 | /models/articulation_estimator.py | 9d9d48ff314f0d84ab97e9de202fbe2838559b06 | [] | no_license | liuliu66/articulation_estimator_slim | 75cc04502a24872a0e07dd249c849df825645478 | 561fa07a9901692c4543648349b555711c9b18d0 | refs/heads/main | 2023-06-12T17:08:30.176028 | 2021-07-08T07:35:56 | 2021-07-08T07:35:56 | 370,897,114 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import os, sys
import torch
import torch.nn as nn
from .pointnet2 import PointNet2
from .estimation_head import EstimationHead
class ArticulationEstimator(nn.Module):
def __init__(self,
in_channels=3,
n_max_parts=7):
super(ArticulationEstimator, self).__init__()
... | [
"312989161@qq.com"
] | 312989161@qq.com |
91abdc4a15ab120bb5b7538c6841258ddc4d1d8e | 89e430e5e47642132b272ab454c0bd40344c40a7 | /LeetcodePython/LeetCode/0.base.py | ec95524357a6fac2d831c3c93deac528204ec2b9 | [] | no_license | selonsy/leetcode | bebde23e0e13ba236adb3d905a701a34602f98df | b8f705a77cfcdb7d498d3422f9c4ee88fd61a3b3 | refs/heads/master | 2021-06-28T06:23:36.422766 | 2021-02-23T12:34:40 | 2021-02-23T12:34:40 | 220,758,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import time
import copy
class Solution:
def func1(self, x):
pass
def getVarLen(self):
co = self.func1.__code__
return co.co_argcount
ori_data = [1]
expect_data = [None]
assert len(ori_data) == len(expect_data),'输入输出数据数量不一致'
s = Solution()
funcs = []
var_len = s.getVar... | [
"selonsy@gmail.com"
] | selonsy@gmail.com |
34a936681fc993105ca2d6ae90223c3fbde5699e | 9a17439a485041a0c17fe2b1be2106e8345a686b | /music_controller/polls/apiviews.py | 85345cfc6c89b4abeef87f904d196aea98ba44f7 | [] | no_license | dom-inic/music_controller | 15cc79310919116db310b55d3d6c7df2314fee06 | 73f6b225fd95719dc7244e278b80d6f587a2e921 | refs/heads/master | 2023-02-22T19:26:41.918556 | 2021-01-26T08:57:19 | 2021-01-26T08:57:19 | 326,018,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from django.shortcuts import get_object_or_404
from rest_framework import generics
from . models import Question, Choice
from .serializers import PollSerializer, ChoiceSerializer, VoteSerializer
# class PollList(APIView):
# d... | [
"dominicnyambane22@gmail.com"
] | dominicnyambane22@gmail.com |
32a6be3181eaf73bfdbe1274daba814817ea932b | 6624f41d6a58b91f080b482727b9b7fbd70c3480 | /kannada_brat/coreference_ui.py | 6c440557e1189ac83799a204bec575f7a3ed73a0 | [] | no_license | swarooplr/fp | ac423d4d3c8a7aa9972e95e6bc191e1495eda5d1 | ad5559689f141149f91d410fbe7cd05fe0fd53b7 | refs/heads/master | 2020-05-07T10:25:18.657882 | 2019-07-14T14:08:23 | 2019-07-14T14:08:23 | 180,417,247 | 0 | 1 | null | 2019-05-03T17:12:22 | 2019-04-09T17:28:11 | Python | UTF-8 | Python | false | false | 2,537 | py | import json
from english_brat import final_builder_ui
import os
import random
def buid_brat(text,annotated):
docData = {}
docData['text'] = text
docData['entities'] = []
docData['relations'] = []
start_index = 0
end_index = 0
counter = 0
search_string = text
id_map = {}
fini... | [
"swarooplr13@gmail.com"
] | swarooplr13@gmail.com |
8ad3174e81f9c26f2ddd4b70d68fe27555f25a45 | 957c9b285d508d56d865d60889e1485b34239e92 | /firecares/firestation/migrations/0040_auto_20170126_1640.py | 4a6f93a469ea12d7ef2956004348627b1842f7bc | [
"MIT"
] | permissive | FireCARES/firecares | 677fd4a3c6c554b735fa276fc1cd6a4b67ce42f6 | aa708d441790263206dd3a0a480eb6ca9031439d | refs/heads/develop | 2022-12-11T22:45:11.378689 | 2021-04-22T22:00:12 | 2021-04-22T22:00:12 | 39,472,578 | 12 | 14 | MIT | 2022-12-08T00:02:40 | 2015-07-21T22:16:21 | JavaScript | UTF-8 | Python | false | false | 2,522 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('firestation', '0039_auto_20170126_0857'),
]
sql = """
CREATE OR REPLACE FUNCTION department_fts_document(integer) RETURNS tsvector ... | [
"garnertb@gmail.com"
] | garnertb@gmail.com |
816ce6df5e1915ef71909f8e745acf6d747e9179 | ab621c65fc91f5194c4032d68e750efaa5f85682 | /purchase_invoice_line_percentage/wizards/purchase_make_invoice_advance.py | 66c903b489b5ea00b42dfe67281d9b5bf22f137a | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 2,974 | py | # -*- coding: utf-8 -*-
from openerp.osv import fields, osv
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
class purchase_advance_payment_inv(osv.osv_memory):
_name = "purchase.advance.payment.inv"
_description = "Purchase Advance Payment Invoice"
_columns = {
... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
09b1804b7637a7d48d1db6c42af093f42603907e | fcbe21026e7ae483c535f6eb38ffbfaaa2aa06c2 | /.history/main_20210320181238.py | c4c23e154eacb243057172f4c0f7578559179576 | [] | no_license | robertstrauss/discordAIchatbot | 8e4c85920f73d49daeb1394afbd1ce8baffbb97b | 8347e6a591d352ace1b8fe4c4629e831763eb0ba | refs/heads/master | 2023-04-03T12:55:07.641825 | 2021-04-13T17:54:57 | 2021-04-13T17:54:57 | 357,641,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | import discord
import re
import requests
import random
import time
import threading
import asyncio
client = discord.Client()
pingchannel = client.get_channel("763821567695126588")
pinginterval = 2 # seconds
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
... | [
"robert.strauss@protonmail.com"
] | robert.strauss@protonmail.com |
082ae6ae67757ef03811610dd0fd91fdaf230ab3 | b9a4864e7952918f79761f9c2df9b0e3fc93f45c | /ml-agents/mlagents/trainers/torch/action_log_probs.py | eee4cab8c2701dbe834f549f0d37750123a68f6f | [
"Apache-2.0"
] | permissive | 418sec/ml-agents | bc9e2c4544f4adacacf0b960001316b0c0e6ee9b | 26a7040c9780fc093c6a84653f33627d207bf117 | refs/heads/master | 2023-02-26T04:47:03.195404 | 2021-01-29T19:12:11 | 2021-01-29T19:12:11 | 334,611,921 | 0 | 1 | Apache-2.0 | 2021-02-08T15:38:37 | 2021-01-31T08:53:42 | null | UTF-8 | Python | false | false | 4,426 | py | from typing import List, Optional, NamedTuple, Dict
from mlagents.torch_utils import torch
import numpy as np
from mlagents.trainers.torch.utils import ModelUtils
from mlagents_envs.base_env import _ActionTupleBase
class LogProbsTuple(_ActionTupleBase):
"""
An object whose fields correspond to the log probs ... | [
"noreply@github.com"
] | 418sec.noreply@github.com |
b0bc231c424535e2de8e165f77a9dec6fc51a064 | 8bff98c58d7d5894b9b9095fb4dac049c7b4a77c | /NERYS-product-monitor-master/supreme.py | ba15a427444c4e21539d6e4c03373e59d518e6db | [
"MIT"
] | permissive | mascher/supreme-nikemonitor | cf401e4fadbeb8ff812f514525530e5b85f1f3d4 | 52e5f1e3f333802a2ef2a4fe9495b2f06e1f9e9f | refs/heads/master | 2020-03-27T20:01:18.383492 | 2018-08-21T02:22:25 | 2018-08-21T02:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | '''
NERYS
supreme module
left to do:
save products to sql db
load products from sql db on startup
'''
import requests
from bs4 import BeautifulSoup as soup
import random
from log import log as log
from threading import Thread
from discord_hooks import Webhook
import time
class Product:
def __in... | [
"noreply@github.com"
] | mascher.noreply@github.com |
2603a62d3d40aa583bfcf5eff0ea7b99e1bfbdfd | c3ff4d4d945867d6019438a7ed0ca4cd59e31dfa | /tests/platform_tests/api/test_component.py | 9257e4ad20379554e2be12ed6a6f4b0c7fb71e3f | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | monipko/sonic-mgmt | 9b80386039b98470e093e8e23c3b98bf71a5eb70 | 9927942d83f749579fb99ed92e26a2963b20a0d9 | refs/heads/master | 2021-08-07T04:06:04.760399 | 2020-12-11T07:28:44 | 2020-12-11T07:28:44 | 230,930,317 | 1 | 1 | NOASSERTION | 2020-09-25T12:42:00 | 2019-12-30T14:33:16 | Python | UTF-8 | Python | false | false | 10,169 | py | import logging
import re
import pytest
import yaml
from tests.common.helpers.assertions import pytest_assert
from tests.common.helpers.platform_api import chassis, component
from platform_api_test_base import PlatformApiTestBase
###################################################
# TODO: Remove this after we transi... | [
"noreply@github.com"
] | monipko.noreply@github.com |
6976cdd0d4b19e359e9b77f84aa77a7431923896 | fb4e9ddb628ae19634eb1d51f02fa33d093ca5d1 | /tensorflow-master/tensorflow/contrib/memory_stats/__init__.py | e310f9fd5861cf93c02d83f38c706173a96e5ffe | [
"Apache-2.0"
] | permissive | zhentaowang/machine-learning | 68189bbc9bd052cecf068fb5fc7e88c04ec24e34 | 1dbba7bbe7f5c8c1449c312fb7e0c008581b90be | refs/heads/master | 2021-06-14T14:08:51.889455 | 2017-03-20T02:10:43 | 2017-03-20T02:10:43 | 63,773,867 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"wangzhentao@zhiweicloud.com"
] | wangzhentao@zhiweicloud.com |
4743280e06c6a802965a5557e13204fe16802350 | 873a5c8e5191c41d914d6572163487f7d7112ad0 | /ex012.py | acc51f137666e8014e68e282ddca74d5e39feffc | [] | no_license | VitrSantos/cursoemvideo | 425d999ec260605fa07efa11253bb145fea0483b | addb10f1db260106edf953655cac9850f158c2b0 | refs/heads/master | 2022-11-21T01:18:20.241974 | 2020-07-20T15:41:31 | 2020-07-20T15:41:31 | 265,569,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #Exercício Python 12: Faça um algoritmo que leia o preço de um produto e mostre seu novo preço, com 5% de desconto.
preço = (float(input('Qual o preço do produto? R$ ')))
print(f'Com 5% de desconto seu produto custará R$ \033[032m{preço * 0.95:.2f}') | [
"63022943+VitrSantos@users.noreply.github.com"
] | 63022943+VitrSantos@users.noreply.github.com |
d4bc95e2ad34b3a267b55bb7ddd18f6dfd28ef93 | 6ff23c7157fce6ede541db849cdd7f71a6f07d34 | /ls.py | 2795433b60edc38ca06942909db4fe26b9b19dea | [] | no_license | czachariah/Load_Balancing_DNS_Servers | f425f797dad4ea45042f4ada626318ed791e6cd0 | 1cf68fefbc371830880b394e7ba82327e81b60cf | refs/heads/master | 2022-04-12T08:36:59.800541 | 2020-04-06T17:39:07 | 2020-04-06T17:39:07 | 247,522,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,122 | py | import socket
import sys
import select
import threading
# main
if __name__ == "__main__":
LS = threading.Thread(name='LSserver')
LS.start()
# need to make sure that the port number is given as an argument
if len(sys.argv) != 6:
print("[LS]: ERROR: Need to include the correct number of arugments: "
... | [
"zachariahchris@yahoo.com"
] | zachariahchris@yahoo.com |
0c874e87c7dd0378e2cec7afc6bd82c8f21b69a7 | 738fd4e3ed9966269657ceb2ecbca4b72b5d5526 | /common/binary_search.py | 4304d3ffa361cdc1c29ac93916b8cca4d820a685 | [] | no_license | abelishi/leetcode | 128aa02b5caf509bf130f58eee3243ef52571230 | 1787c4c00a57210c8d47764791cef5f056c7e115 | refs/heads/master | 2023-06-14T01:13:29.113271 | 2021-07-17T07:03:24 | 2021-07-17T07:03:24 | 182,582,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import typing
from typing import List
class BinarySearch(object):
@staticmethod
def upper_bound(sorted_list: List, target) -> int:
left = 0
right = len(sorted_list) - 1
while left < right:
middle = left + (right - left) // 2
if sorted_list[middle] <= target:
... | [
"abelishi@163.com"
] | abelishi@163.com |
06405e42c32db838d8491f73ed075fbf28e05614 | f8602a239b61ff0386be9c3c1230e1f5035952bd | /week_8/codingBat/string2/string2_count_hi.py | d2a62fb5529e35097a63d851e1dcf8e339a3f86b | [] | no_license | MaratNurzhan/WD | 4a7dcf05855b1965de5074503f609b4bee0ea45f | bb629660b8045568934693360f2a8793b158ce6e | refs/heads/master | 2023-01-22T13:48:00.828829 | 2020-04-26T10:33:57 | 2020-04-26T10:33:57 | 237,237,374 | 0 | 0 | null | 2023-01-07T17:10:36 | 2020-01-30T15:01:14 | Python | UTF-8 | Python | false | false | 162 | py | def count_hi(str):
count = 0
for i in range(len(str)-1):
count =count+str[i]=='h' and str[i+1]=='i'
return count
count_hi('abc hi ho')
| [
"nurzhan.marat.2000@mail.ru"
] | nurzhan.marat.2000@mail.ru |
4ac24e02ed56a766960633f19c1674b3162a837f | 88556921c3b76cf1b4d72e0654ad9b53b7ef1546 | /ex9.py | 7e982d5c9c9adfa4277eb76566ef2f1d1e2c57d5 | [] | no_license | jonasrosland/lpthw | 74c5131eb6df467a37591edb21b0960105aada8d | 423dda6623f018e7090ee3a21b0147c173604ba1 | refs/heads/master | 2021-01-10T21:21:26.121628 | 2014-02-03T19:31:19 | 2014-02-03T19:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Here's some new strange stuff, remember to type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print """
There's something going on here.
With the three double quotes.
We'll be able to type... | [
"jonas.rosland@gmail.com"
] | jonas.rosland@gmail.com |
cb42cfea10a03acaae91cbaec8b87a6af184ffd3 | e79888cd68177e7ec5125270cdc52f888e211e78 | /Naoto/chapter05/knock45.py | 8720639a538757187bdeb96acf3bcfdd6516618a | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | '''
45. 動詞の格パターンの抽出
今回用いている文章をコーパスと見なし,日本語の述語が取りうる格を調査したい. 動詞を述語,動詞に係っている文節の助詞を格と考え,述語と格をタブ区切り形式で出力せよ. ただし,出力は以下の仕様を満たすようにせよ.
動詞を含む文節において,最左の動詞の基本形を述語とする
述語に係る助詞を格とする
述語に係る助詞(文節)が複数あるときは,すべての助詞をスペース区切りで辞書順に並べる
「吾輩はここで始めて人間というものを見た」という例文(neko.txt.cabochaの8文目)を考える. この文は「始める」と「見る」の2つの動詞を含み,「始める」に係る文節は「ここで」,「見る」に係る文節は「吾輩は... | [
"naoto_nakazawa@NaotonoMacBook-Pro.local"
] | naoto_nakazawa@NaotonoMacBook-Pro.local |
0394f0ff941f7f6c1eab4c4933df6023fe6baf0a | e4e523ebc00eec4b6126f8884944c8d20156af48 | /server.py | 4223313e8bd9e958c973f39b5c1e382f2ebcd08d | [] | no_license | emish/B.A.R.D. | e3d7811ca40606c7dafef61f3a78e78a77d997b6 | f1ec9ee39c2a1334f2c0301fbe7d4763b57c9176 | refs/heads/master | 2021-01-20T10:41:36.641614 | 2012-01-19T22:57:20 | 2012-01-19T22:57:20 | 3,222,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py | import threading, socket, sys, re, httplib, os
#default server host and port number
host,port_num = "localhost", 9999
#two files: whitelist, blacklist
## shared whitelist, need lock
white_lock = threading.Lock()
## shared history, need lock
black_lock = threading.Lock()
whitelist = 'whitelist'
blacklist = 'blacklist... | [
"a.mamish@gmail.com"
] | a.mamish@gmail.com |
894fd3899b8ea36c619c66d7f18fe72bdefa2997 | dfb2250e8815783a97f1797b171793d903103f4b | /pom/pages/homepage.py | 27f7994d17169f907c67204fa37b6a06b0c0034e | [] | no_license | aniljadesh/Python_automation_Selenium_POM | e17118bcd8628c52e9c29e81191d1c6edaf25bd5 | 1e743057b4536a2abcd420b33ee4870561fb6e03 | refs/heads/main | 2023-03-06T19:24:46.888693 | 2021-02-23T16:49:07 | 2021-02-23T16:49:07 | 341,621,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from pom.locator.locator import Locator
class HomePage():
def __init__(self, driver):
self.driver = driver
self.welcome_link_id = Locator.welcome_link_id
self.logout_link_linkText = Locator.logout_link_linkText
def click_welcome_link(self):
self.driver.find_element_b... | [
"noreply@github.com"
] | aniljadesh.noreply@github.com |
53ce1d81f3614d58a433ad4a62f454b8288a211a | a5711713e8e2a931aa1e931951128be3a2ddf914 | /pta_sim/scripts/ng12p5_fl_sinusoid.py | 7bdb2ce4ba6e48b8d64ff658c96e853aada439ca | [
"MIT"
] | permissive | Hazboun6/pta_sim | b35021352202625817d707105956c77f1754207b | 8023ec2d795abaca426e88ed146c15f4e57cfaa1 | refs/heads/master | 2023-05-25T19:15:20.973598 | 2023-05-17T21:32:56 | 2023-05-17T21:32:56 | 182,192,948 | 1 | 3 | MIT | 2022-12-26T20:47:20 | 2019-04-19T03:07:29 | Python | UTF-8 | Python | false | false | 3,478 | py | #!/usr/bin/env python
# coding: utf-8
import numpy as np
import sys, os, glob, json, pickle, copy
import cloudpickle
import logging
from enterprise_extensions import models, model_utils, hypermodel, sampler
from enterprise.signals.signal_base import PTA
from enterprise.signals import gp_signals, signal_base, determin... | [
"jeffrey.hazboun@gmail.com"
] | jeffrey.hazboun@gmail.com |
e6bfeca1286f905ae510abf5bb85d71353232e7b | 1bc2a635a93b5bc84606edf9ac2226851cac9e6d | /rolling/gui/map/widget.py | b94f40ca6be86257b40af7209cb820c7bc71038c | [
"MIT"
] | permissive | coolkat64/rolling | 819149cbb1e11a455b93a030477f9da91e2f93e4 | 4c3ee2401128e993a52ac9b52cdbd32e17728129 | refs/heads/master | 2022-11-29T00:35:14.058665 | 2020-07-31T20:37:15 | 2020-07-31T20:37:15 | 285,312,272 | 0 | 0 | MIT | 2020-08-05T14:25:48 | 2020-08-05T14:25:47 | null | UTF-8 | Python | false | false | 6,183 | py | # coding: utf-8
import typing
import urwid
from urwid import BOX
from rolling.exception import CantMoveBecauseSurcharge
from rolling.exception import MoveToOtherZoneError
from rolling.gui.connector import ZoneMapConnector
from rolling.gui.dialog import SimpleDialog
from rolling.gui.map.render import MapRenderEngine
f... | [
"sevajol.bastien@gmail.com"
] | sevajol.bastien@gmail.com |
ddeb4292f997109b6ee0fbcc98d0a359bdbea648 | 20fedfd55a0cddff39769278544aea7a0d235c08 | /qutebrowser/themes/base16-qutebrowser/themes/base16-spacemacs.config.py | 111e8f65036fcee09fdffbd274e58ebb9f625135 | [
"CC0-1.0",
"MIT"
] | permissive | ebzzry/dotfiles | 1d2942c6ea0fe847f8fb6c5aacb229b392444c82 | 9ba2d1a3b5aff2f2c65d2c0dd17257e8f9e1f51a | refs/heads/main | 2023-06-09T07:20:35.676866 | 2023-05-26T03:45:26 | 2023-05-26T03:45:26 | 64,131,018 | 30 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,387 | py | # base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Spacemacs scheme by Nasser Alshammari (https://github.com/nashamri/spacemacs-theme)
base00 = "#1f2022"
base01 = "#282828"
base02 = "#444155"
base03 = "#585858"
base04 = "#b8b8b8"
base05 = "#a3a3a3"
base06 = "#... | [
"rommel.martinez@valmiz.com"
] | rommel.martinez@valmiz.com |
72c751c8c83b4c95a2bbf363e97a5089829c4045 | e75f36c9fbe70fec4a20b14765670730532f8ebc | /hand_object_detector/demo_original.py | 20244f3b6d1692b691432516470921b2d7673d58 | [
"MIT"
] | permissive | luigman/CSCI5561ProjectFall2020 | 1f48332753896b78ae0584e48e4bf8fb5f0ce5a7 | f1c8fc7c0d2c7a78dca7fe4046979d8b4d2b1ec6 | refs/heads/main | 2023-08-07T18:02:20.400537 | 2021-09-17T17:59:17 | 2021-09-17T17:59:17 | 302,421,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,558 | py | # --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
from __... | [
"luigman@gmail.com"
] | luigman@gmail.com |
4c4685634fd2453e75bf3df224abee0b2d34f03d | fe92ae3d85ce07480c19539a805e2693ddc3f581 | /hashes_dict/cat_builder.py | 2f67ca8ec40c5c0a832f9b8a6b6aa98f5f8eb0f5 | [] | no_license | pooja1506/Beginner_python_code | 62301ba83cddcdb371fa7b30e8177555056c7ee9 | d0b4f48dbf9dbdb1f4c08a9dd49f8e2b6a25b6c6 | refs/heads/master | 2022-07-03T15:40:24.537769 | 2020-05-09T14:04:20 | 2020-05-09T14:04:20 | 254,545,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """ Write a method cat_builder that takes in a name, color, and age. The method should return a dictionary representing a cat with those values. """
def cat_builder(name_str, color_str, age_num):
final_dict = {}
final_dict["name"] = name_str
final_dict["color"] = color_str
final_dict["age"] = age_num
... | [
"pooja.dmehta15@gmail.com"
] | pooja.dmehta15@gmail.com |
c5f72b1d3bc2f54985570ff75ab86552c9579723 | 9cbd523cdedc727f62c887612e8ae2c25c909964 | /tests/lib/stubs/server/list_line_up/get_table_by_name.py | 01d77c5fd135c7e8f808ce224fb485ba4a0a7239 | [] | no_license | louiscklaw/QA_test_scripts | 8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed | 58b73594332053272d8dce2c812c93297259c782 | refs/heads/master | 2023-01-27T15:48:29.477848 | 2020-12-06T10:05:19 | 2020-12-06T10:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!/usr/bin/env python3
import os,sys
from pprint import pprint
import json
import requests
from list_all_table import listAllTable
def getTableByName(queue_user_name):
all_table_json = listAllTable()
all_table_by_name={}
for table_json in all_table_json:
all_table_by_name[table_json['name']]={
'lid'... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
62b3b12dc948f701cc4134cc368fa080c63f2f1b | 25ad3f52dc8e34250dfbb67a747ac52909386bb7 | /gdance/apps/users/migrations/0002_schedule_modalidad.py | 6f37d4e8ace5f0c28a26adf4917a7aa3ad94c677 | [] | no_license | gdanceapp/gdance | 0f59bc4bee2f7e3c411e31912c12047089f58147 | 0ac66345302a0a9a99ed1f13d99c8b4fb213c866 | refs/heads/master | 2021-05-08T04:43:01.435021 | 2017-11-17T15:58:49 | 2017-11-17T15:58:49 | 108,346,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-11-17 15:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
('users', '0001_initial'),
... | [
"alka65@hotmail.com"
] | alka65@hotmail.com |
8bd9f00361920d3fe8bcb3dc45a3c37724ba9a24 | 42ad563bbebe83a17f9a75f7dd5d7db66d476f9b | /迁移bert tf2/migrate_to_tf2_bert/第一步命令行/bert-master-tf1/run_tokenTypeEmb_class_yr.py | b415f1fddd23097f1163acee830aa29923e0c312 | [] | no_license | 2877992943/information_extracion | 131517ffbe5a8d65536749ac9041a5fb8cbe7a16 | 8c5036777cd47c3d031491c35bb0c1bb89f75fc5 | refs/heads/master | 2021-01-03T23:06:34.058021 | 2020-02-13T14:28:35 | 2020-02-13T14:28:35 | 240,275,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,792 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
f2dbbcafddf9f354bf5167496f494892e861f0b5 | 27be66085e7f72316a01f31aa2946932b64ef05b | /models.py | aa602d50edccd9ca0676a68f175ef7b4bbdbacfd | [] | no_license | c404err/ml | b2a223a00107b67000f8027addb6b1af6c8a93f4 | 0769abde162204bf7ef82891def50641cba4b1a6 | refs/heads/main | 2023-06-18T15:46:22.915532 | 2021-07-19T20:53:52 | 2021-07-19T20:53:52 | 383,961,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,631 | py | import nn
import numpy
class PerceptronModel(object):
def __init__(self, dimensions):
"""
Initialize a new Perceptron instance.
A perceptron classifies data points as either belonging to a particular
class (+1) or not (-1). `dimensions` is the dimensionality of the data.
F... | [
"noreply@github.com"
] | c404err.noreply@github.com |
11a26793bdcb54e200cccb110f50fcb7e3a865ef | 5a89613dffb83ae99946c5529ff30d62918e0401 | /code/training_data/district_training_data.py | a45f971fc627be598134b6d6a4ac7298a356c3f5 | [
"MIT"
] | permissive | sanja7s/JJ | 59a400deb431072fd525dffac368578d08cd68d0 | 6facc5fe4aa19ca5927d3929f73fc8017f35d522 | refs/heads/master | 2021-04-21T21:36:39.114032 | 2020-05-26T10:38:57 | 2020-05-26T10:38:57 | 249,817,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import pandas as pd
# network_type = "vgg16_4096"
# PCA_components = 64
# LABELING_METHOD = "maximum"
# AVERAGING_METHOD = "kaist"
# normalize = False
norm_dict = {
True:"normalized_",
False: "",
"Total": "normalized_across_all_"
}
data_dir = "preprocessed/"
def get_training_data(network_type, PCA_co... | [
"sanja.scepanovic@nokia-bell-labs.com"
] | sanja.scepanovic@nokia-bell-labs.com |
9db06d452195f3e4a3b11e54e8ddb1f4fad30f3b | 15445418c3df26032a5b715b77aa9073d8ff76c5 | /Data_Structures_and_Algorithms_in_Python/06_12_Quiz_Grapth_Traversal_Practice.py | 39684fe33c092aa41af2188a586eaac6893409c6 | [] | no_license | DenisWilsonDev/Courses | 441d9cc14f05065eb41e47167ea28b77a4b76227 | fd668d1122dd1eef5834e6510004279b385ff4df | refs/heads/master | 2020-08-24T11:29:46.199368 | 2019-11-05T13:07:38 | 2019-11-05T13:07:38 | 216,817,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,995 | py | class Node(object):
def __init__(self, value):
self.value = value
self.edges = []
self.visited = False
class Edge(object):
def __init__(self, value, node_from, node_to):
self.value = value
self.node_from = node_from
self.node_to = node_to
# You only need to chan... | [
"dev@deniswilson.ru"
] | dev@deniswilson.ru |
6b80c599f791e236d4a4c9241f42382c94f932bd | 77be118e15e523834b1095ab8dfb45e4a66afa52 | /blog/migrations/0001_initial.py | 8a7d7efac15670e7d57609e0aa9f0dee33a1b487 | [] | no_license | rs07/my-first-blog | 0c7fbbc6d9b389a350c5d2af71f7f18fe9525ff0 | dd3babfcbce70035e7aecdfbf37728086160c1cb | refs/heads/master | 2021-09-02T07:35:34.067644 | 2017-12-31T14:40:53 | 2017-12-31T14:40:53 | 115,858,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2017-12-31 10:36
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"superrishabh0@gmail.com"
] | superrishabh0@gmail.com |
d04b346b78f0c5154d23427b65333dae9753261a | 01d2db8a3c5d0ed96c3da3af71e928b1276f7f43 | /src/main/python/generate_tweet.py | 5a01f81f5f4e7396f3cd314f2a8aeba22d8348a3 | [] | no_license | tobakk/twitter-ai | 6c78413e904f973378c634a476adb499251dab08 | a8a20f7aed8c75a37eddc68aed44a4a7b3cc05f9 | refs/heads/master | 2022-06-05T02:24:00.756355 | 2020-05-04T11:19:25 | 2020-05-04T11:19:25 | 261,021,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import random
import sys
import numpy as np
import tensorflow as tf
from lib import build_dataset, read_training_data, to_string
data_path = 'data/'
training_file = data_path + 'data.txt'
model_file = data_path + 'model.h5'
n_input = 10
model = tf.keras.models.load_model(
data_path + 'model.h5', custom_objects=... | [
"17847628+tobakk@users.noreply.github.com"
] | 17847628+tobakk@users.noreply.github.com |
6d845d03bb3bfd7ccce2e4fe0ca367421bebae5c | 1378bb34a1c6e2f686eac54f62d6adba37acd5e4 | /config.py | ce61fbe9f4f9577fdaa81f0f13ccc25e06ff9603 | [] | no_license | colabearwd/final_demo | 2ae5c36608b576181b544d7897acf651f82db361 | abf656bf772480d33882aeebabd79c0585c21188 | refs/heads/master | 2020-03-27T19:34:40.380456 | 2018-09-19T11:46:08 | 2018-09-19T11:46:08 | 146,998,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # encoding: utf-8
import os
DEBUG =True
SECRET_KEY = os.urandom(24)
DIALECT = 'mysql'
DRIVER = 'mysqldb'
USERNAME = 'root'
PASSWORD = 'root'
HOST = 'localhost'
PORT = '3306'
DATABASE = 'final_demo'
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,
... | [
"wz_jxnu@163.com"
] | wz_jxnu@163.com |
cc722694f4d5c2b3b5cb507e5fabb0250dacb484 | 0b933ccc03c117cfe599fe064a34714fa56ee16b | /reachable.py | 2805c0ce91cc534a34bb2bb5297dd60670385a2f | [] | no_license | fanbbs/ori_coop_server | c2e15a2b77d494ca5a95582bcf1903b2d5d19354 | ab0f92e03b3d3430168f41af85a934bbd1aa0f66 | refs/heads/master | 2020-03-08T21:45:59.384983 | 2018-04-05T22:55:53 | 2018-04-05T22:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | import xml.etree.ElementTree as XML
from collections import defaultdict, Counter
class PlayerState(object):
name_from_id = {
("SK",0): 'Bash', ("SK",2): 'ChargeFlame', ("SK",3): 'WallJump', ("SK",4): 'Stomp', ("SK",5): 'DoubleJump',
("SK",8): 'ChargeJump', ("SK",12): 'Climb', ("SK",14): 'Glide', ("SK",50... | [
"worst.mirari@gmail.com"
] | worst.mirari@gmail.com |
ab3ac1779fcfb178dd41e6ab57196771e8196e5d | 0f6eaef1598e32193fd553a00f1c53e9aa367614 | /exercicios_capitulo4/cube.py | 7c4611b35eadd778664bb4230852ce46f8ee1d7c | [] | no_license | IfDougelseSa/cursoIntensivoPython | 72be288cfd3314e084374abed02d2c9075e7bf3b | c3da310488bec268fb6db416c6c8d54164a180a9 | refs/heads/main | 2023-06-11T19:46:20.066751 | 2021-07-06T13:07:58 | 2021-07-06T13:07:58 | 365,917,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | cubes = [cube**3 for cube in range(1, 10)]
print(cubes)
| [
"doug_ccortez@outlook.com"
] | doug_ccortez@outlook.com |
77b7bc3323f62d7bb1fc73cbf1d52dcb5d3e932c | 4bf050eea24a8144af61438db12845432d2f73a5 | /strings/split_join.py | 93528c565c294617c0e950d656f97c366f450678 | [] | no_license | Yzdesarrollo/FundamentosPython | 43228eae6fe37770ff500b67203703bb2804c636 | 16ca8c36bb688e0ec29cf638ae6f64fa79e2f3f6 | refs/heads/master | 2022-10-10T16:41:28.373987 | 2020-06-11T16:33:24 | 2020-06-11T16:33:24 | 271,595,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | lenguajes = "Python; Java; Ruby; PHP; Swift; Javascript; C#; C; C++"
# resultado = lenguajes.split() # Podemos generar una lista apartir de un string
# print(resultado)
separador = "; "
resultado = lenguajes.split(separador) # Podemos generar una lista apartir de un string
# print(resultado)
nuevo_string = "_".join... | [
"yeison.ariel@accenture.com"
] | yeison.ariel@accenture.com |
08bad906274b22b88b6b3513859e43028c45c6da | 20953bded8c44d09fea22dab32d269e50ea1d35e | /pset4/ps4a.py | 53ea171fb2c8371f9df2d94e7a5a3898b0e61c37 | [] | no_license | utamhank1/MIT_6.0001x | e417ebfd9fecbcad9f9223b2f48be97809e44bcf | 927aab8c51dd8c4a7019ab6943aab6b4cb226c48 | refs/heads/master | 2020-12-29T21:24:23.465373 | 2020-02-06T16:54:43 | 2020-02-06T16:54:43 | 238,736,789 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | # Problem Set 4A
# Name: Ujjwal Tamhankar
# Collaborators: none
# Time Spent: ~ 5hrs
def get_permutations(sequence):
'''
Enumerate all permutations of a given string
sequence (string): an arbitrary string to permute. Assume that it is a
non-empty string.
You MUST use recursion for this part. No... | [
"utamhank1@gmail.com"
] | utamhank1@gmail.com |
7bdf0ae10d88057b630ada47ec7a4bbc25e4837a | 1fe03131ad139e2415fd0c0c73697b4541e5b862 | /.history/src/_fighter_20190422144508.py | b8423e2a178b0c458e0f63ee9a1a09d7fe1b40f4 | [
"MIT"
] | permissive | vidalmatheus/pyKombat | d83175a7a952663e278a8247d43349f87192fde3 | 6646020c59367ba0424d73a5861e13bbc0daac1f | refs/heads/master | 2021-06-20T09:35:07.950596 | 2020-08-06T14:08:13 | 2020-08-06T14:08:13 | 172,716,161 | 1 | 1 | MIT | 2019-12-25T10:54:10 | 2019-02-26T13:24:31 | Python | UTF-8 | Python | false | false | 38,909 | py |
from pygame_functions import *
import fightScene
import engine
import menu
class Fighter:
fighterNames = ["Sub-Zero", "Scorpion"]
fightMoves = [["w", "s", "a", "d"], ["up", "down", "left", "right"]]
combatMoves = [["j","n","k","m","l","u","f"],["1","4","2","5","3","0","6"]]
danceLimit = 7
walkLi... | [
"matheusvidaldemenezes@gmail.com"
] | matheusvidaldemenezes@gmail.com |
47433678731e79969ebc60e04c75a9ed7ad837c7 | 6e362245c5933cb89b636c7a7c853dd8bb1f52cc | /hardware/raspio_pro_hat/pulse_rgbled.py | 2ed9dbd2c202d90acf7bd8fb0d255679a829b3a9 | [
"MIT"
] | permissive | iidylsnicc/raspi_code | 4133ab5ba6093ae40c19284259792cc9e6019ac3 | ee089b8eae29dd4ddf8d45e101affa1e8c5efca4 | refs/heads/master | 2023-08-17T04:31:39.413107 | 2021-09-20T18:00:32 | 2021-09-20T18:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from gpiozero import RGBLED
from time import sleep
led = RGBLED(red=17, green=18, blue=19)
delay = 0.02
while True:
for x in range(100):
led.red = x/100
sleep(delay)
for x in range(100, -1, -1):
led.red = x/100
sleep(delay)
for x in range(100):
led.green = x/100
... | [
"github@cfmacrae.fastmail.co.uk"
] | github@cfmacrae.fastmail.co.uk |
309dcb9d3ae4eb56482f54d31c6b2d71bef2c8dc | d279d30912212aea1b0f9b6d71032748f91b8f17 | /src/message_tests/message_edit_test.py | 8014fe7b3a8eadee0ee545410f51dfa1414e9903 | [] | no_license | HeadYak/comp1531-flock | 3c51300d5957ff8299902204a566b9f0728bcbca | 7e4082a21e3ab68b46376e18481eff3bad00bb3a | refs/heads/master | 2023-04-14T19:41:15.693088 | 2020-11-15T06:10:51 | 2020-11-15T06:10:51 | 365,741,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | '''
Nessacary imports
'''
import pytest
from channel import channel_join
from message import message_send, message_edit
from channels import channels_create
from auth import auth_register
from error import AccessError
from other import clear
from global_data import channels
def test_message_edit():
'''
Testing... | [
"z5257072@cse.unsw.edu.au"
] | z5257072@cse.unsw.edu.au |
527af3a4e7634240faba6c5b05c3ee119377049a | f20e531a213f6892991653e7c6f2288f07c15f9c | /test/test_districtadmins_deleted.py | 63bb48496a9567e2c7f865ef52ab99501a91d8d2 | [
"Apache-2.0",
"MIT"
] | permissive | Clever/clever-python | 54ec744ef997d2c739ea056ae223aa35ef487876 | c123d339f9af16aa32405cdf4051ad4afbdc5bd2 | refs/heads/master | 2022-07-09T11:33:03.804757 | 2022-06-24T01:38:24 | 2022-06-24T01:38:24 | 7,064,597 | 18 | 21 | Apache-2.0 | 2022-06-24T01:38:35 | 2012-12-08T06:12:45 | Python | UTF-8 | Python | false | false | 867 | py | # coding: utf-8
"""
Clever API
The Clever API
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import clever
from clever.rest import ApiException
from clever.models.dis... | [
"amelia.jones@clever.com"
] | amelia.jones@clever.com |
cb78f9c09bc5a9f6ff2a1f449e9edcce8749ea83 | ce469cd389c8bbcd80a167bbc03da4d68e1988f5 | /views/api.py | 08e51b99b00d1ec92d596c473c637d5a735118cc | [] | no_license | dhydrated/kan-banana-web | 7189ecab6092ab105d79bb0817b7921e49280e78 | 87418d2f5fcdd62e63b0f1284cc078945f404ef6 | refs/heads/master | 2021-01-10T22:01:28.497874 | 2012-11-15T11:11:01 | 2012-11-15T11:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import webapp2
import logging
from google.appengine.api import urlfetch
from template_engine import TemplateEngine
class API(webapp2.RequestHandler):
def put(self):
logging.debug('request: %s', self.request)
response = urlfetch.fetch('http://kan-banana.appspot.com/project',
... | [
"dhydrated@gmail.com"
] | dhydrated@gmail.com |
12c3b876d4a666adb377f0019f3af6e7e7c3f34f | c0e279a689a29bd69a22463c6e32d56069005c8c | /2016-10-21/workshop_02.py | d60f87b6e78f45315bba5f34c60cd0059e9784ba | [] | no_license | RinaldoBuratti/ggpl | f1f41d9afc219f35d57c45d7dc0443ec9ff94a6a | fb603002215a4af866e8bf1f0065662c38de4104 | refs/heads/master | 2020-05-23T06:23:37.399426 | 2017-01-31T17:55:28 | 2017-01-31T17:55:28 | 70,234,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,938 | py | from pyplasm import *
from larlib import *
import csv
def search(string, char):
"""
Function to search a character in a string
Args:
string: a string in which we have to find the character char
char: a character
Returns:
An index corresponding to the position of the character within the... | [
"rinaldoburatti@gmail.com"
] | rinaldoburatti@gmail.com |
333121f2cc279a1bf0888d6748253b0b79d00f6d | 9f826b53122cba44a30bf41c3c610f40a2100457 | /employee.py | a0d4db1d26b005a1258fa72f911f3aeec534b11b | [] | no_license | sai444/nkcbackup | 2f76adea23023b61a74f1c6aaca323d360946fcd | 4d691f8e221c1aa2dfe655cd30269dcab9de0150 | refs/heads/main | 2023-06-28T11:01:56.380565 | 2021-07-21T07:08:37 | 2021-07-21T07:08:37 | 388,026,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from flask import jsonify, Blueprint
employee_api = Blueprint('employee_api', __name__)
@employee_api.route("/employee")
def employee():
return jsonify({"msg": "Im in employee file"})
| [
"31222470+sai444@users.noreply.github.com"
] | 31222470+sai444@users.noreply.github.com |
a26b75d618b32140ec9d1bc5934a9358f20d796b | 932ca541a9c0ec65522777a3b4d14ae50ec6f668 | /Desktop/Deep-learning/project_1/train2.py | 71a77b138eb2d8e234fd83553e2b326eabb68cc8 | [] | no_license | Khuongb1609777/text-recognition | e5e9c733052b86f57371b5dd25481c2ab9538b95 | 67b51d9f9fa074f1589c5e61f6d47e7bd7e92779 | refs/heads/master | 2022-12-16T06:23:20.632386 | 2020-09-16T02:36:54 | 2020-09-16T02:36:54 | 295,902,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,166 | py | import cv2 as cv2
import os
import numpy as np
import glob
from skimage.feature import hog
from sklearn.svm import LinearSVC
from keras.datasets import mnist
from sklearn.metrics import accuracy_score
import matplotlib.pyplot as plt
from tkinter import *
# loading Python Imaging Library
from PIL import ImageTk, Image ... | [
"khuong3493455@gmail.com"
] | khuong3493455@gmail.com |
5d22b9accad63d48c5d37b3da688b2eb233b0256 | 580ed1224a2635893324cc8bb292b73ea8e833c7 | /udp_server.py | 3ac0237e90a651e67a4ff9d7c0daa2f6273886e6 | [
"MIT"
] | permissive | mytianya/python-scripts | 661a48c4114f34be418da3ee4cb3e41a025bb938 | 8f94c5549486494de43c41fda24a039fd4b7b7e5 | refs/heads/master | 2023-07-21T05:45:22.194397 | 2021-08-27T09:28:44 | 2021-08-27T09:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | '''
创建一个udp服务器
'''
from socketserver import BaseRequestHandler,UDPServer
class TimeHandler(BaseRequestHandler):
def handle(self):
print('客户端地址:',self.client_address)
msg,sock=self.request
print(msg)
if __name__=='__main__':
serv=UDPServer(('',9111),TimeHandler)
serv.serve_forever() | [
"dsyslove@163.com"
] | dsyslove@163.com |
71868391ab4ff3d83072fcfbfc7ab3faab8917e7 | 6a16b796c788d2ee9b54684b0ee30ea146a29aa3 | /columnApplet/columnApplet.pyde | 2206a454ca0c6263580661e48efd8d5ccddc4906 | [] | no_license | dbt-ethz/MASdfab1819 | 8b7d574afdd35f21e88de379f0824321e86223df | bc84112187b65f9ae692f27ffe6e503aa7078d53 | refs/heads/master | 2020-03-27T10:50:58.491849 | 2019-03-28T23:01:47 | 2019-03-28T23:01:47 | 146,448,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | pyde | add_library('peasycam')
add_library('controlP5')
import math, datetime
import engineSineSubdiv as engine
import gui as gui
import mola.io as io
import mola.slicer as slicer
import mola.renderP5 as renderer
import mola.color as coloriser
def setup():
global sliceZ,pshapeSlice,guiDimX
guiDimX=400... | [
"noreply@github.com"
] | dbt-ethz.noreply@github.com |
850589bb644ae4eab56ab52c3b5cf0289278f50a | 0ba98a960871dba4b81337161c65c4db505ced45 | /attikmoney/core/migrations/0031_auto_20191222_0759.py | abd8707f82d3d15f55f57624ac5890bd6f313a26 | [] | no_license | felipetsi/attikmoney | 7323e9e5f7eb5e96a39c2d5495d6dc6cc5208659 | 5fac3341acee35a1d3f9b61537848a65609aa6f7 | refs/heads/master | 2022-01-18T19:13:28.814336 | 2022-01-02T01:25:24 | 2022-01-02T01:25:24 | 84,989,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2.7 on 2019-12-22 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0030_auto_20191222_0759'),
]
operations = [
migrations.AlterField(
model_name='yieldtype',
name='created_at'... | [
"felipe.pereira@attik.com.br"
] | felipe.pereira@attik.com.br |
c29eef2004e1aa97dff132a0c0327f2c1991e18a | ea6cf1c8df3955bb168454d437e23180c94d2c47 | /Run01/Trans/1.importdata.py | 938c4371d697f983f5628ab906427857903561db | [] | no_license | MohanSha/Employee-attendance-manager | ba0b94b3639d66e6294e1d5390c05fd346f1cd62 | 792a54f3b8ae03904bbe005059ba68674073344c | refs/heads/master | 2021-07-19T13:18:34.450484 | 2017-10-28T11:24:38 | 2017-10-28T11:24:38 | 108,643,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | import xlrd
import MySQLdb
from array import *
#def Left
def left(s, amount = 1, substring = ""):
if (substring == ""):
return s[:amount]
else:
if (len(substring) > amount):
substring = substring[:amount]
return substring + s[:-amount]
# Open the workbook and define the wo... | [
"mohansha.don@gmail.com"
] | mohansha.don@gmail.com |
e88456d798261f16179505051514fc0b8381e1ed | df04d39a56d35b63e51c14bca4dab30bcab7ad8f | /models.py | 12113781ab4d6574ab4ab76405db969676a41fb0 | [] | no_license | javaDer/Crm_Android | 810898273fe090dd36d34481334fe1e6e4e3cb09 | 7b61d1da7347f9e3f4f9e4ca196a30869dc0e339 | refs/heads/master | 2021-05-09T18:00:25.568825 | 2018-01-29T09:36:49 | 2018-01-29T09:36:49 | 119,151,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pymongo
def get_coll():
client = pymongo.MongoClient("127.0.0.1", 27017)
db = client.test
user = db.user_collection
return user
class User(object):
def __init__(self, name, email):
self.name = name
self.email = email
def s... | [
"fa20091001@163.com"
] | fa20091001@163.com |
2097ef464f73ecb7859b6ffa930ed474e10f8c30 | df11b3a4129d660a1eb588334a4f38a73620b9e0 | /api/urls.py | 7d95a920eed945cf47ae06ab44274238b3c96ab3 | [] | no_license | lebaoworks/Django-Example | 65a581222027b6c9c873db9dcc7813dcc2f0783a | 58540b310a00f0981d685819d7ff5b134ed4e985 | refs/heads/main | 2023-01-10T05:36:45.078991 | 2020-10-24T21:54:08 | 2020-10-24T21:54:08 | 306,936,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.urls import include, path
from api import views
urlpatterns = [
path('api', views.ListAPIs.as_view()),
] | [
"noreply@github.com"
] | lebaoworks.noreply@github.com |
4e8cf4ed512607410548a93332fffac910539696 | b1917395e5d0ae5e3a9d379b1eefaf976d4e6b5d | /utils/plot_error.py | 284427ce6a992cb0a9317675445bce8fa674234e | [] | no_license | gupta-nikita/Actions | 056ec046c2cfa03e6733408f0aad8a1cfea712c5 | 3534f3fc442cff6d8f06525262c1eee674e6aaa3 | refs/heads/master | 2021-01-18T22:10:20.182809 | 2017-03-29T15:09:44 | 2017-03-29T15:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | rnn_type = 'rnn' # rnn | lstm | gru
filepath = '/media/HDD1/Models/Actions/abhi/Models/rnn/'
import matplotlib.pyplot as plt
def read_file(file_to_read, image_name, fig_xlabel, fig_title):
file = open(file_to_read, 'r')
file.readline()
error_value = list()
for line in file:
error_value... | [
"abhishek.chaurasia29@hotmail.com"
] | abhishek.chaurasia29@hotmail.com |
fe537df3daf1b7d3a23e18aa6a6536c6f46e31db | 9e984c2a5455efc193983a6ea18ff7b6e13ba500 | /Image procesing-calculate dimentional/old Sourse files/contour-extreme-points/ww.py | 0caaf6689929300da58c7c163017b37b9dc2074c | [] | no_license | Isharathilina/Human_Dimensional_Calculator | 6f028f2f0934ed6ca4f33e026ab6a7d218685c36 | 722129c28773415d8f96825654624c7615ce1770 | refs/heads/master | 2023-01-25T03:49:48.820622 | 2020-11-27T17:52:11 | 2020-11-27T17:52:11 | 155,625,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | # USAGE
# python extreme_points.py
# import the necessary packages
import imutils
import cv2
# load the image, convert it to grayscale, and blur it slightly
image = cv2.imread("sdf.jpg")
#image = cv2.IMREAD_GRAYSCALE("qq.jpg")
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.GaussianBlur(gray, (5, 5), 0)
#... | [
"isharawap@.com"
] | isharawap@.com |
fa81e752ab4f58210563f97e6a552c0b346a39bc | dc17b7519e595c57eb1efb4673e1e4171724ba15 | /models/state.py | 5051d86fc57fd181d16c903d4dfca9cf7869a831 | [] | no_license | FeliPrado31/AirBnB_clone | 87cff5c3542903dc0400ae9d81fb5050c2e2d705 | a3543de35bfd5df0ef5800539867f576e6ab76f5 | refs/heads/master | 2021-02-07T08:13:41.874436 | 2020-03-02T04:13:20 | 2020-03-02T04:13:20 | 244,001,793 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #!/usr/bin/python3
""" class user """
from models.base_model import BaseModel
class State(BaseModel):
""" State class """
name = ""
| [
"srgatoiscool@gmail.com"
] | srgatoiscool@gmail.com |
769e8e8412b7cff1cc93539541ca1f040e150fa4 | 470b64850fcd9f14ebe7920f773b24d0499e8ec4 | /trailer/index.py | 04141c1d166e8559f6db3b2a637f2a5ca6dd2ea1 | [] | no_license | rishiosaur/pragmathic | c8ebcae1cf9a8a3efb6cd64123c523c752b6d3c8 | 63538a2e7cc1804186b0d51bbede0f8a1ec4d691 | refs/heads/master | 2020-08-18T17:20:56.572440 | 2020-01-11T22:13:00 | 2020-01-11T22:13:00 | 215,814,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from manimlib.imports import *
class Intro(Scene):
def construct(self):
boring = TextMobject("School", "math is boring.").set_color_by_tex_to_color_map({"School": RED})
math = TextMobject("Math", "math is hella fun.").set_color_by_tex_to_color_map({"Math": BLUE})
welcome = TextMobject("Wel... | [
"itsrishikothari@gmail.com"
] | itsrishikothari@gmail.com |
4a0330f3d35565a1fd716d6052f8a5199813fd3f | 6915d2d83086cf1200340a59248cf4f2a556248d | /appfacturacion/app/migrations/0001_initial.py | 13f3fb55508f3eaa239838c4ad7282df13d38708 | [] | no_license | jcuadradoh2/appfacturacion | 5278de851ffbae191c848e16c68c2cbb8784749c | 4151b8ed4f0168bdd2453410efd76129a75d5366 | refs/heads/master | 2022-12-04T05:33:47.437006 | 2020-08-09T05:01:26 | 2020-08-09T05:01:26 | 286,120,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | # Generated by Django 2.2.14 on 2020-08-08 06:47
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cliente',
... | [
"jcuadradoh2@unemi.edu.ec"
] | jcuadradoh2@unemi.edu.ec |
4de0862f8cd2eb71a885c5f1753c6f087dbe5fcf | d8bf91fc51b4fd05246097e5c7e5aa07771b1068 | /photo_gallery/settings.py | 064b96358e315a7162f2260c2c31ffcc17e32e11 | [] | no_license | falcon1996/Gallery | 9d51bfba32fe06600a9b49991c99c106003a945f | e1c37d1e7cd02d1d878d5ea0107292248e4fdce9 | refs/heads/master | 2021-06-17T04:16:14.233354 | 2017-04-23T00:29:57 | 2017-04-23T00:29:57 | 82,963,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | """
Django settings for photo_gallery project.
Generated by 'django-admin startproject' using Django 1.9.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impor... | [
"dhruvparashar6@gmail.com"
] | dhruvparashar6@gmail.com |
1311ce208ad1940ea37daa9f4b2901497e5572a2 | 758c5566f4598dbfd7d12d1e8e678458912f5ba0 | /draw_image_copy.py | 07497c27e6386a8005a65ceafcda5ec60228d335 | [] | no_license | isamrx72/PyGames | 989734674b868a5ae781bb6fa74221095c2ddf63 | eb9126072078e01329549b5e2be335457145605a | refs/heads/master | 2021-09-01T03:24:26.111401 | 2017-12-24T14:05:18 | 2017-12-24T14:05:18 | 115,063,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # """ draw_image4.py """
import sys
import pygame
from pygame.locals import QUIT
pygame.init()
SURFACE = pygame.display.set_mode((400, 300))
FPSCLOCK = pygame.time.Clock()
def main():
""" main routine """
logo = pygame.image.load("pythonlogo.jpg")
theta = 0
while True:
for event in pygame.ev... | [
"isamrx73@gmail.com"
] | isamrx73@gmail.com |
830d31a9a9c3b434f9a5e3d0c62520978bfd12b7 | b911744e6b7e464e7f7bc4151b5cc170e33701b2 | /dashborad/zabbix/zb.py | d55530abbc715d2ffdd205b9e86aebc548b1b974 | [] | no_license | Wstc2013/reboot_lianxi | 199bc9cf2ce6ef9a017ca3e1589b2596fcd283e6 | 5de1a5c818e7e764a8cd5ed9950ce646c7daf458 | refs/heads/master | 2021-01-21T12:21:16.824326 | 2017-06-26T02:58:25 | 2017-06-26T02:58:25 | 91,792,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/env python
#-*- coding:utf8 -*-
from zabbix_client import ZabbixServerProxy
from django.conf import settings
class Zabbix(object):
def __init__(self):
self.s = ZabbixServerProxy(settings.ZABBIX_URL)
self.s.user.login(user=settings.ZABBIX_USER, password=settings.ZABBIX_PASS)
def ge... | [
"xiaoyong.feng@cnsha-61418-mac.local"
] | xiaoyong.feng@cnsha-61418-mac.local |
0cb7c21367baf5f8c424541c5fd87bf0e6c9605f | 8d67c77c4572a20d4a66ad0b55befe559a1d4ee9 | /dface/prepare_data/gen_Rnet_train_data.py | 4f8888f201b292b638047df0f9c208571cd5cbec | [
"Apache-2.0"
] | permissive | ratmcu/DFace | 459c2243b5b56af137682ccc8505fa165ff3c2a6 | e99604a85f9c7d732d9f1749350e8b3f01aae9a2 | refs/heads/master | 2020-06-03T15:13:13.223357 | 2019-06-12T23:04:35 | 2019-06-12T23:04:35 | 191,622,342 | 0 | 0 | Apache-2.0 | 2019-06-12T18:12:14 | 2019-06-12T18:12:14 | null | UTF-8 | Python | false | false | 7,659 | py | import argparse
import cv2
import numpy as np
from dface.core.detect import MtcnnDetector,create_mtcnn_net
from dface.core.imagedb import ImageDB
from dface.core.image_reader import TestImageLoader
import time
import os
import cPickle
from dface.core.utils import convert_to_square,IoU
import dface.config as config
im... | [
"314127900@qq.com"
] | 314127900@qq.com |
0ec647632384f519175799e633398d1817864915 | f5487faeed295a97a71b28447e2c4d6c4e115651 | /Sudoku solver/backtrack_solve.py | f73a44e8538455abcb3e868ede8cdb66a2b3903b | [] | no_license | Razeem-r/Personal-projects | ffbca37bd4474df1421932388477a69730ac5b5d | 08fb6ab61035b72234e73765338e77227b788317 | refs/heads/master | 2023-01-25T00:48:22.729453 | 2020-11-28T09:23:28 | 2020-11-28T09:23:28 | 291,892,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,521 | py | from array import *
import numpy as np
# Sample sudoku form
# board =[[0, 0, 6, 0, 0, 5, 0, 0, 0],
# [0, 0, 8, 0, 9, 0, 0, 0, 0],
# [0, 0, 2, 0, 0, 0, 8, 1, 7],
# [4, 0, 0, 3, 0, 8, 0, 0, 0],
# [0, 3, 0, 0, 5, 0, 0, 4, 0],
# [0, 0, 0, 2, 0, 6, 0, 0, 9],
# [8, ... | [
"noreply@github.com"
] | Razeem-r.noreply@github.com |
25c685a5ff1dcef0d1c62a2ea534caa466549562 | 832e0b42c321db1f70e7d826111f0b796cac6247 | /ljspeech.py | 467eb8f7ad1441c71738600224dd4340340d1fe0 | [
"MIT"
] | permissive | mitsu-h/deepvoice3 | 2615b61b92216ac11063792e29ef2f72d3a71fa9 | fb652a9274dd1b94d374a424726e34287cd94186 | refs/heads/master | 2022-12-10T00:44:42.899129 | 2020-08-24T11:00:08 | 2020-08-24T11:00:08 | 230,847,732 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | from concurrent.futures import ProcessPoolExecutor
from functools import partial
import numpy as np
import os
import audio
from hparams import hparams
import time
def build_from_path(in_dir, out_dir, num_workers=1, tqdm=lambda x: x):
'''Preprocesses the LJ Speech dataset from a given input path into a given outp... | [
"u.world96@gmail.com"
] | u.world96@gmail.com |
ffc98858f61ec1894a60bd58273d0805e9f8f653 | 4a86874d3e740b4cd22a8bc6d439f7aba9bd52c0 | /434.字符串中的单词数.py | 4c7c3a0afdac2b8ef53d7ce0a09a274c3f756c5c | [] | no_license | Jassy930/leetcode_main | 4563f9634692d0b09a638114f59f6836edaa73f6 | a2e4e05f2b220702dc874718e34150d1066f6ac1 | refs/heads/master | 2020-04-28T15:35:49.448682 | 2019-09-16T03:49:23 | 2019-09-16T03:49:23 | 175,380,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #
# @lc app=leetcode.cn id=434 lang=python3
#
# [434] 字符串中的单词数
#
class Solution:
def countSegments(self, s: str) -> int:
ss = s.split(' ')
return len(ss)-ss.count('')
| [
"wafe93039@163.com"
] | wafe93039@163.com |
5b9d10a94bd28fb08b016b9daded4640791af4b1 | 489384e8ebf66db4169980f70408742c0cb083f4 | /apps/organization/migrations/0010_courseorg_tag.py | ad5fc1ceb2074092a6cd616d97daee521ebe929c | [] | no_license | carryaimp/OnlineSchool | 2188b24ddf23a6ef71b24bf5ef7df3e2c2617691 | 992b3bc53e66c649acec5c44b71dc621885709e7 | refs/heads/master | 2023-07-07T12:19:54.786264 | 2021-04-02T10:16:29 | 2021-04-02T10:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 2.0.2 on 2018-02-20 22:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0009_teacher_age'),
]
operations = [
migrations.AddField(
model_name='courseorg',
name='tag',
... | [
"jia2jiayuan@163.com"
] | jia2jiayuan@163.com |
4231a87f3283ae55b93184de8966fa632a908023 | adf7952e7b92e29e3d66a98fc88cb0b1ab2af215 | /dsnoti_.py | 35d47416537e3b3d3310bc4298bd57d5654ed9ef | [] | no_license | KimHyoRim/hellparty | a7c3c57f4d24f516d9cf98ac55f327d85db4e4d4 | 3c5416346734cd75bf2f727a1c9a6a6e64f6a659 | refs/heads/master | 2020-05-23T16:16:14.218500 | 2019-06-19T17:27:32 | 2019-06-19T17:27:32 | 186,844,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | #!/usr/bin/python
# coding=utf-8
import sys
from urllib.request import urlopen
from urllib.parse import quote
import time
from xml.etree import ElementTree
import urllib.request
from xml.dom.minidom import parse, parseString
from urllib.request import urlopen
from urllib.parse import quote
import sqlite3
... | [
"noreply@github.com"
] | KimHyoRim.noreply@github.com |
ca76788dd821eb07d06500f9c0ec39b6a0165448 | 977f5aa46679d1da33a28177c6e22d7fdfc24c66 | /TehFolio/apps/homepage/admin.py | 88540eb6bd308d07dae991ae23f2f600f5425e5a | [] | no_license | Tehtehteh/Tehportfolio | 06c2d905b86da147ae2c4cd974d365330b5ce9d2 | 25e70a15c1e03e190e129a46bd61fd712f6a8ea1 | refs/heads/master | 2021-01-21T18:34:00.647887 | 2016-10-08T21:08:41 | 2016-10-08T21:08:41 | 68,407,372 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
from .models import BlogPost
# Register your models here.
admin.site.register(BlogPost) | [
"tehfvpr@gmail.com"
] | tehfvpr@gmail.com |
c39173555469868d74d4277658f382eee8e338d3 | 87e4d69d4a6bdc73a30c0c537e2b13bc27c62a91 | /store_management_system/Accounts/admin.py | 5eea4e48bf56d1705606d6665d65c141cc37d763 | [] | no_license | YashGoyal28/store_management_system | 7409ec79bc17a4464edcc2c75265e191836f0b46 | 92238bb1f9144b12807ab82c175d22266825a1ac | refs/heads/main | 2023-01-19T08:42:20.790691 | 2020-11-24T10:53:27 | 2020-11-24T10:53:27 | 307,624,622 | 1 | 0 | null | 2020-11-23T08:16:16 | 2020-10-27T07:51:49 | Python | UTF-8 | Python | false | false | 137 | py | from django.contrib import admin
from .models import ListOfProducts, Bill
admin.site.register(Bill)
admin.site.register(ListOfProducts)
| [
"y.g.2001yashgoyal@gmail.com"
] | y.g.2001yashgoyal@gmail.com |
5e0dbf237d23e97db1acb499c7473f995063c95c | 5492b2501f3aeebbf6e228f9bbf608bd682e6787 | /converter.py | 4997dab5aff68c23cfdb919fd13737d7a8b3c2d7 | [] | no_license | chainchomp440/chainchomp | b74bfea213f04113f5de9eaa154f76d76b112563 | cd3c015e0b03f2b1008dc9db7282a1edd6546406 | refs/heads/master | 2020-08-29T04:46:21.384362 | 2019-10-28T01:21:09 | 2019-10-28T01:21:09 | 217,932,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
## This is a test code
rmb_str_value=input('please insert cny amount')
rmb_value = eval(rmb_str_value)
usd_vs_rmb= 6.77
usd_value=rmb_value / usd_vs_rmb
print ('usd value =',usd_value)
| [
"tonyshi@TonyShis-MacBook-Air.local"
] | tonyshi@TonyShis-MacBook-Air.local |
29a519f17e93e1f2edbd1437486e383d9684ced6 | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/sat/Models/c775.180.SAT.dimacs.test.py | 8987ff256e8dbfaada30f05c291ec2c34515e155 | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 10,721 | py | input = """
c num blocks = 1
c num vars = 180
c minblockids[0] = 1
c maxblockids[0] = 180
p cnf 180 775
71 -116 -138 0
23 147 13 0
114 -167 -50 0
-6 64 34 0
-129 175 -92 0
172 -58 19 0
-40 164 122 0
-146 -145 -18 0
39 82 -45 0
77 130 47 0
-27 125 -165 0
90 56 41 0
162 -132 63 0
-139 143 -30 0
108 -133 -143 0
-49 -156 1... | [
"mario@alviano.net"
] | mario@alviano.net |
d0be3c0cb82a1c5bd0a09ef09decb96875981c29 | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/tests/cdr/CDR_FUN_003.py | 8f2ed09b839658b011aae872c85d3bfe7bdbe5c0 | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,439 | py | #!/usr/bin/env python2.5
"""
##############################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
##############################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
5836d969a34cd9162fc29c0eaf3f3c12370e941f | 0fa2cb199a567f1ed81faa9a592c9d8a959f69b9 | /adventofcode/2015/13.py | b6a6324619c1979229c2981430dbd6f2bd2e2591 | [
"MIT"
] | permissive | hacktoolkit/code_challenges | ee5d407b3cfd8e27e1ec1254e3db129ce7a8db7d | fa35a3cf8afd18b4c32170f64d5364e90dedd5a6 | refs/heads/master | 2023-06-21T17:09:42.342328 | 2022-12-25T06:18:26 | 2022-12-25T06:18:26 | 30,107,170 | 12 | 6 | null | 2022-12-29T13:58:31 | 2015-01-31T08:37:24 | CSS | UTF-8 | Python | false | false | 2,903 | py | # Python Standard Library Imports
import re
from collections import defaultdict
from itertools import permutations
from utils import (
Re,
ingest,
)
INPUT_FILE = '13.in'
EXPECTED_ANSWERS = (618, 601, )
# INPUT_FILE = '13.test.in'
# EXPECTED_ANSWERS = (330, 286, )
def main():
solution = Solution()
... | [
"hello@jontsai.com"
] | hello@jontsai.com |
7d2a692bfc7fae15da0ae6156a3b1e35a188a34a | 8e8ffec676b76653555605b0e370803a3c4e3598 | /scripts/tags.py | 908d71c5a12d9192bddd78203180a4b659b02954 | [] | no_license | fbzekiyalniz/hub | 04b56165d965ccf67d8ae77a0d8d2659b226b8d6 | c72cc328a01abea0bfd3e1b8413a455b97300ee6 | refs/heads/master | 2020-08-03T11:51:32.008748 | 2019-10-16T17:47:41 | 2019-10-16T17:47:41 | 211,742,619 | 1 | 0 | null | 2019-09-30T00:05:57 | 2019-09-30T00:05:57 | null | UTF-8 | Python | false | false | 112 | py | valid_tags = ['vision',
'nlp',
'generative',
'audio',
]
| [
"ailzhang@fb.com"
] | ailzhang@fb.com |
76645e99a3ab8dda3a18c6fcd5ef21efa0165d58 | cb43eaec0f296e3b216845c33417446038e7149f | /studnit/studnit_app/views.py | a03e204de73bab1bfefe81666fa9e5b1d84c3f9d | [
"MIT"
] | permissive | sonali0901/hackathon-studnit | fc6d4aef4f0c5350ba5f427e0b31ce8876538c9c | 41979fb59a33f2a95d9cd651940a6a8c8d0b7fc4 | refs/heads/master | 2021-01-01T04:44:30.380252 | 2016-04-17T16:45:26 | 2016-04-17T16:45:26 | 56,426,433 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from django.shortcuts import render
from django.contrib.auth import authenticate, logout
from django.contrib.auth import login as login_1
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from studnit import settings
def login(request):
next = request.GET.get('next', '/home/')
if reques... | [
"sonaligpt0@gmail.com"
] | sonaligpt0@gmail.com |
a57090615a00f422ac7cb45b2f7d11e389791935 | df82bc832254751da5b02d6ab780f79722fb292f | /definitions.py | f6f50fb3d8c820f80401b68e4fe2f0637246f105 | [
"MIT"
] | permissive | skilkis/GENX | 9e84026f53cad5f035dce899e989bf140eacf557 | 049267ba7751013517d49939e4ce387484959500 | refs/heads/master | 2020-03-29T00:28:36.759126 | 2019-01-18T21:07:10 | 2019-01-18T21:07:10 | 149,341,276 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,077 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
from constants import *
from utils import Undefined
import numpy as np
__author__ = 'San Kilkis'
class Component(property):
""" Renames the :py:class:`property` to be able to organize all engine components and retrieve them easily """... | [
"sankilkis@msn.com"
] | sankilkis@msn.com |
87afd56421d221bac59235bfc29654fa42999ffd | 2b485c67c723151f73ec96da9f6337a0c9857dae | /easy/q125 validPalindrome.py | 1845ff93d7ae6e5ea92ed9210954fc747d35d733 | [] | no_license | Anupya/leetcode | c7792e6ac61b655491a1c734f9167281356471d3 | cb45e66a41e0c6a8583bb9c4bf846b470ef4bc0f | refs/heads/master | 2022-10-10T14:01:22.189414 | 2022-09-07T21:36:24 | 2022-09-07T21:36:24 | 151,865,310 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
class Solution:
def isPalindrome(self, s: str) -> bool:
s = ''.join(x for x in s if x.isalnum()).lower()
return s == s[::-1]
| [
"anupya@hotmail.ca"
] | anupya@hotmail.ca |
cd066667c03cf7f004e710743a04ccb25008bd1f | 5d91c8dc65df96816994b5e8cce10d2261294349 | /natural-selection-sim 30-10-2020/organisms.py | 6978731a0b29d6a3a8bc1ecd0ba2cd0a60ebf756 | [] | no_license | phletic/pythonEcosystemSimulation | 9d8f90b53a6c37d0f7236404bd9997cb45daa8ce | 9e20afacb1c5a44bca920a9f549962f46d437d5c | refs/heads/main | 2023-01-06T15:27:14.272785 | 2020-10-31T04:14:44 | 2020-10-31T04:14:44 | 302,033,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,492 | py | import math
import random
import string
import sys
from abc import ABC, abstractmethod
# noinspection PyUnresolvedReferences,PyUnresolvedReferences,PyUnresolvedReferences
from vectorMath import Vector
'''
This program will store all the animal classes.
I hope I will be able to allow the user to create his own organis... | [
"chavezchendy@gmail.com"
] | chavezchendy@gmail.com |
e159944e0eb7ef079d843bc84419372a591efabe | 6ac0aeea8229c4e2c7a041e85c3afeeb106c6b01 | /KAPL_UTIL.py | 0dfbd1eb5ca51bf24f664c098d8017ceaca2ed1d | [] | no_license | waiteb15/py3intro | 325dafaaa642052280d6c050eacf8b406b40e01d | 68b30f147e7408220490a46d3e595acd60513e9e | refs/heads/master | 2020-03-27T10:50:25.928836 | 2019-02-28T21:47:11 | 2019-02-28T21:47:11 | 146,448,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | #!/usr/bin/env python
def spam():
print("hello")
def ham():
print("ham")
def _eggs():
print("EGGS")\
| [
"waiteb15@gmail.com"
] | waiteb15@gmail.com |
0a077646db3b2a032b608e4bfe75a1bc68314fae | 24ea68723c92526ea2718df3e44bdff6868eae1d | /demo_app.py | 44171bfdb3ce443a2f5cc15771de2e26a3ea3235 | [] | no_license | r3ap3rpy/gitlab-flask | 87c5b677d4c8caf02063611b8c0bf816741017af | 5ca851cf91bde5f1bfdb3d7ffcd74f1a1ae796f5 | refs/heads/master | 2022-12-29T22:57:46.420142 | 2020-10-18T07:58:18 | 2020-10-18T07:58:18 | 305,051,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello World!"
@app.route("/cicd")
def cicd():
return "GitLab is awesome!"
if __name__ == '__main__':
app.run(host="localhost", port = 8080, debug = True) | [
"r3ap3rpy@gmail.com"
] | r3ap3rpy@gmail.com |
4d5982f1088caa14f4770ab5d8df791193fb9f76 | c60522de559312f47bcf576a774e5410de35eb35 | /wm-test.py | a546dbae20b4f2a72674efd86b1af13cb40d5392 | [] | no_license | benoit-pierre/config-progs | e147af5b478c70fea5761aad1f8823aeab9709a7 | 5b84aff8c5e51c331ace2ba6a609e4a95484a93b | refs/heads/master | 2021-01-18T23:07:59.497783 | 2018-12-18T12:44:54 | 2018-12-18T12:44:54 | 14,686,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | #!/usr/bin/env python2
import subprocess
import optparse
import struct
import signal
import copy
import time
import sys
import re
import os
def check_display(option, opt, value):
m = re.match('^\d+$', value)
if not m:
raise optparse.OptionValueError('invalid display ID: %s' % value)
return int(m.... | [
"benoit.pierre@gmail.com"
] | benoit.pierre@gmail.com |
c30aced17416596217d29686342924973fc2af5e | 3b98d784a48191ec490c331c359c71c3416c7aaa | /core/filters.py | b42bda8b2e02e79e071e56a34c7c1b5bc1e044b4 | [] | no_license | brian-lai/django-docker | 303718507500a844474c60e67b7aec790274b045 | bf22ee921ffd98e3aecd530d5b6b5af80f693e8b | refs/heads/master | 2022-12-28T05:13:36.197124 | 2020-10-13T23:08:10 | 2020-10-13T23:08:10 | 297,494,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | def filter_in(self, queryset, value):
'''Takes a list as an argument and parses the JSON.
'''
value = eval(value)
if isinstance(value, list):
return queryset.filter(id__in=value)
return queryset
| [
"arijsilver@gmail.com"
] | arijsilver@gmail.com |
9853fc5a04732414092946eb9dc0fb337d7d3bba | 589ac0a71099f4ee6857a31986305f0df2c16ede | /Doc/examples/local_blast.py | dbb1e5ee7f191d61d258bf9de3d1f192a4101aeb | [
"LicenseRef-scancode-biopython"
] | permissive | barendt/biopython | 802aad89005b302b6523a934071796edbd8ac464 | 391bcdbee7f821bff3e12b75c635a06bc1b2dcea | refs/heads/rna | 2021-11-09T19:11:56.345314 | 2010-05-01T02:44:42 | 2010-05-01T02:44:42 | 636,700 | 0 | 0 | NOASSERTION | 2021-11-05T13:10:14 | 2010-04-29T02:35:46 | Python | UTF-8 | Python | false | false | 1,503 | py | #!/usr/bin/env python
"""Script demonstrating the ability to interact with local BLAST.
The contents of this script are described more fully in the available
documentation.
"""
# standard library
import os
import sys
# biopython
from Bio.Blast import NCBIStandalone
my_blast_db = os.path.join(os.getcwd(), 'at-est', '... | [
"chapmanb"
] | chapmanb |
4b97325e71d846b3fefb8136d5b0df52f77ba248 | 2364b31ccc8843477295befb09bacbf3a723f1a9 | /ContentFilter.py | cc186f93497f9c9637e0a02dde3189d3cc543a41 | [] | no_license | yenkuanlee/FindGoodIphone7s | c0bd95cdf9b3d67b2e0e302ef5e8b80cda208363 | 4f76a43e9afa768e216b6fbaa9bc57f359636cf6 | refs/heads/master | 2021-01-15T12:02:31.440716 | 2017-09-20T03:28:17 | 2017-09-20T03:28:17 | 99,645,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | # -*- coding: UTF-8 -*-
# Kevin Yen-Kuan Lee
import urllib2
import requests
import re
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def send_email(recipient, subject, body):
import smtplib
user = ""
pwd = ""
gmail_user = user
gmail_pwd = pwd
FROM = user
TO = recipient if type(recip... | [
"yenkuanlee@gmail.com"
] | yenkuanlee@gmail.com |
f32ec776b07d6d6cb688e572fb3e6331462f5c8c | 503d552818dd192e163c3cb5bd61a189865c1759 | /demo/demo/urls.py | c96ca30cafd0495da058e4e66474476d32476c14 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dyve/django-perm | 63c1c5f13a0510404eff7f53435ae2caf96d97a5 | 16a8f5991600aba68a16240b4dd319ce345d8197 | refs/heads/develop | 2023-03-26T14:57:22.909652 | 2017-10-29T09:33:20 | 2017-10-29T09:33:20 | 9,869,046 | 2 | 3 | null | 2014-08-10T06:05:08 | 2013-05-05T13:44:36 | Python | UTF-8 | Python | false | false | 1,065 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import patterns, url
from .views import HomeView, ServerErrorView, ObjectDoesNotExistView, PermissionDeniedView
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
# urlpat... | [
"dylan@zostera.nl"
] | dylan@zostera.nl |
33981ef3da670d488abacf13f279b5fa2b9779c1 | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/xml/sax/__init__.py | f18dd425ad438770ce42e9cce873ce05d468670f | [
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 3,679 | py | """Simple API for XML (SAX) implementation for Python.
This module provides an implementation of the SAX 2 interface;
information about the Java version of the interface can be found at
http://www.megginson.com/SAX/. The Python version of the interface is
documented at <...>.
This package contains the following modu... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
78ff37a966cfd4e8f0a4606de9a2ec9638393962 | 641c9eaa5c1df74e6edfb79628c9f18b6d5d2b91 | /test/test_validate_country_response.py | 3a669f45b6948c4f8613fe7cccf9466ccc8d5461 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Validate | d2d9d0ceb3fce350fd0d86466bc8b5e153a5d478 | 274d38d4a849650402f3bb931799ab82502b4306 | refs/heads/master | 2023-06-10T04:01:35.332273 | 2023-06-03T22:34:47 | 2023-06-03T22:34:47 | 138,435,277 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # coding: utf-8
"""
validateapi
The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501
OpenAPI spec version: v1
Ge... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.