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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8cfcba3e20c4b93a0fe4a250a491f169270afabe | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/FrequencyRuleDetail.py | b846e57f4e1d54ec0a6cc953f0a0723b7ba9ddfc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,587 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class FrequencyRuleDetail(object):
def __init__(self):
self._frequency_duration = None
self._frequency_type = None
self._total_times = None
self._used_times = None
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
ae6fc7d3c35d5c0d5f99d2a00ec6329685a66892 | e6a17c35ca3c139909d38856ebffcf99b18bff1d | /news_feed/newsfeed/newsfeed/pipelines.py | 9ec4f06e844038c899bca720bfdd9a9b83cad23b | [] | no_license | kingomalek/web-scraping | cbe29b6c0fc15e987879986ac5ecd867ec959677 | 00d79d7972b350cb38d53cd43ea2a9ee8c20a0fe | refs/heads/master | 2020-03-28T21:38:43.291440 | 2018-09-17T18:44:20 | 2018-09-17T18:44:20 | 149,117,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class NewsfeedPipeline(object):
def process_item(self, item, spider):
return item
| [
"kingo.malek@gmail.com"
] | kingo.malek@gmail.com |
06a154a6ff2cdb789d37bab35001675a05b875c4 | cb995863a3e9b3a676556820871de8dd0c54db3a | /tkinter.py | 7deb8354fa65094a15edcfdf41c6370c3b865f09 | [] | no_license | J4rn3s/Assignments | c46c0e5066a84f2a0c0667f041a03e8dfca59cd8 | 7372464cfe50517dc8894e31fe40a6dc6eef873e | refs/heads/main | 2023-05-30T17:40:51.478873 | 2021-06-19T12:32:15 | 2021-06-19T12:32:15 | 371,911,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | app = Tk()
app.title("TVN Game Show")
app.geometry('300x100+200+100')
b1 = Button(app, text = "Correct!", width = 10)
b1.pack(side = 'left', padx = 10, pady = 10)
b2 = Button(app, text = "Wrong!", width = 10)
b2.pack(side = 'right', padx = 10, pady = 10)
app.mainloop() | [
"noreply@github.com"
] | J4rn3s.noreply@github.com |
297a8f68eacdc7a9634aa7d5be0d8284bf7bb2c9 | c08153289b66cd2c358d84311675c6eeb54a40c1 | /sort/mergeSort.py | f2e36732d40b3080b3ab98bfe08afb09a76a16b0 | [] | no_license | wllps1988315/search | 3496048eade03bf38d2e178919d68579bcf5e800 | 474fc728fa0aeae35c90140b7bf4055c5dd492d7 | refs/heads/master | 2021-05-12T01:18:34.130863 | 2018-05-02T12:58:10 | 2018-05-02T12:58:10 | 117,556,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding:utf-8 -*-
def mergeSort(alist):
print("Splitting ",alist)
if len(alist) > 1:
mid = len(alist) // 2
lefthalf = alist[:mid]
righthalf = alist[mid:]
mergeSort(lefthalf)
mergeSort(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) a... | [
"wang_lan@gowild.cn"
] | wang_lan@gowild.cn |
4a0b34d2f8e40e95a1eab41133933cb56377886a | 7f92c2fc131ca637d8b7c2a4dbba4b974884e786 | /lab3/scripts/experiment1_data1.py | 34d428b8ea9f437b4dfa13b2d7434f8402e13770 | [] | no_license | byronwasti/CircuitsLabs | 2c5694f07a59adedddde361d0a85a690a83e096b | be1227c504ed1a2b81b6d670cbaa45d4b8be8e17 | refs/heads/master | 2020-05-23T11:15:14.853587 | 2017-09-03T18:53:50 | 2017-09-03T18:53:50 | 80,369,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import csv
TAKE_NEW_DATA = False
FILENAME = "data/experiment1_data2_3.csv"
if TAKE_NEW_DATA:
import smu
s = smu.smu()
f = open(FILENAME, "wb")
writer = csv.writer(f)
v_in = np.linspace(0.35, 0.9, 255)
i_b = []
i... | [
"byron.wasti@gmail.com"
] | byron.wasti@gmail.com |
ddb880615853b09b4f915137cf0ffae2c24d6d4a | b57f1b57a7c97e049807dd7fc2468a06fd0ab1b5 | /pdfimport/settings.py | 5a759bc489d8e1174e7d2e15f9f57769d56dce1e | [] | no_license | vsjakhar/PDFImportDjango | 930f176737d3789f0e3ef6b3c566e47894b60d88 | 7a363d5db0f2aacd5adde4683f9977e84a487af3 | refs/heads/master | 2022-12-21T14:18:41.406788 | 2020-02-18T13:54:54 | 2020-02-18T13:54:54 | 241,169,539 | 0 | 0 | null | 2022-12-08T03:38:13 | 2020-02-17T17:38:57 | Python | UTF-8 | Python | false | false | 3,297 | py | """
Django settings for pdfimport project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"vijayjakhar.vj@gmail.com"
] | vijayjakhar.vj@gmail.com |
d9eacd98ea6425409d95aa56128e592e61371963 | eb7af309163957e5f0e96c56f4b864f68dffe854 | /charpter17/03_function_3.py | 08add8e16e206f8d4eaad3185cbd2603a53e17f9 | [] | no_license | chiminwon/Python365 | 302aaaa0b47b05afaad35b92f444eadf93d9d63b | 7efc82b7e77e60cd4495888c2c65505395ee4a17 | refs/heads/master | 2023-01-19T11:58:40.702360 | 2020-11-20T11:59:33 | 2020-11-20T11:59:33 | 299,821,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def change(b):
print(id(b))
# 指向的是同一个对象
b = 10
print(id(b))
# 一个新对象
a = 1
print(id(a))
change(a)
print(id(a))
| [
"chiminwon@gmail.com"
] | chiminwon@gmail.com |
7554b628c55916d907873d94795fa04924df70e3 | 0cf4ddd70a3184098d8c5bbc7cef010233670ef8 | /practica28.py | 2e7167e85a2b77ca51a47241af19b883eb058648 | [] | no_license | Zerobitss/Python-101-ejercicios-proyectos | aadecfbd5306f5fedee389ae5262d5c42507ed51 | 4b51778cddf8a476c1f472e1ad0b05b17b7b2461 | refs/heads/master | 2023-02-27T12:07:24.460312 | 2021-02-13T21:48:09 | 2021-02-13T21:48:09 | 338,676,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Escribir un programa que almacene la cadena de caracteres contraseña en una variable, pregunte al usuario por la contraseña
hasta que introduzca la contraseña correcta.
"""
def run():
password = str(input("Ingresa contraseña: "))
re_password = str(input("Repite la contraseña: "))
while password != re_pa... | [
"game4droidplay@gmail.com"
] | game4droidplay@gmail.com |
c7e0bb3087d8b71a2084ee14c60cbb3c3496faa8 | 38a3f9b2e71636bef436e4edfdbb454901644219 | /pytext/models/pair_classification_model.py | 7bd8a1bbedd8dfe08d9df1569c31f87a008121eb | [
"BSD-3-Clause"
] | permissive | dimalik/pytext | 917e35f973fd9fec7e8ae1cc476b42a2affd0511 | 1e4dd71b1a42350ba8a31123aa8d9d753ec7f7ce | refs/heads/master | 2020-07-25T23:36:06.110597 | 2019-09-14T02:58:12 | 2019-09-14T02:59:57 | 208,457,838 | 0 | 0 | NOASSERTION | 2019-09-14T15:12:57 | 2019-09-14T15:12:57 | null | UTF-8 | Python | false | false | 11,800 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import itertools
import os
from typing import Dict, List, Tuple, Union
import torch
import torch.nn as nn
from pytext.data.tensorizers import LabelTensorizer, Tensorizer, TokenTensorizer
from pytext.models.decoders import De... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c5782c245643b838896519a5bc26ab0d1bc46851 | 1957ddd8a3dfd3b0b1f6662ab6da43e2ddcd65de | /2prakticheskaya/Project4.py | 7d5c1d13577d3e1ae10d2ce7694bc8fa479adb7c | [] | no_license | Lightm0re/PythonProjects | 5535ae4f4aa81d7e247c41a575e329ce3d7f5adb | 8187589b19ac99d98da63943cdf09fc5e57c5fba | refs/heads/master | 2021-09-05T13:32:28.831925 | 2018-01-28T07:09:34 | 2018-01-28T07:09:34 | 107,757,412 | 0 | 0 | null | 2017-11-27T14:10:23 | 2017-10-21T06:33:51 | Python | UTF-8 | Python | false | false | 947 | py | '''Дан список результатов попыток одного спортсмена для некоторого соревнования.
Написать функцию, которая считает сколько за сессию был установлен новый рекорд, т.е. текущее значение превышает значение максимального.
Например
Имеем список результатов.:
scores = [10, 5, 20, 20, 4, 5, 2, 25, 1].
В данном случае отв... | [
"noreply@github.com"
] | Lightm0re.noreply@github.com |
a4caa5c125fb88be2064c7a27f84753a9b2403a2 | 4a46f9d06515e61ef89ef0a5bfa1393cf218e68f | /contrib/testgen/base58.py | 67b715c25dd628cb736b44d720f2d808fa84248c | [
"MIT"
] | permissive | GroinGuy/GroinCoin-GXG | fe886d386fef948c818b4b34c59040791da45f3b | d71c1b200683a77ccf797d8a500e468351da5ee0 | refs/heads/master | 2020-05-21T14:04:39.761147 | 2019-02-02T13:52:52 | 2019-02-02T13:52:52 | 19,191,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | # Copyright (c) 2012-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Groincoin base58 encoding and decoding.
Based on https://groincointalk.org/index.php?topic=1026.0 (public domain)
'''
import... | [
"mendozg@gmx.com"
] | mendozg@gmx.com |
2f3367fa233aac359784e8be07064e5bf08ef2fe | 83d7af883df9f83e987b6401fe9a57ec73cacac0 | /dynamic_programming/CtCI_8_5_recursive_multiply/Solution.py | 497679635a4420698a33010d944b2332de9f5180 | [] | no_license | chopdev/leetcode_tasks | 93f3b807e3e33a2735cb9558dbe0f1b39d7c08f9 | 89aee5e9064e1bfe9873d26836453f0c7507bbc4 | refs/heads/master | 2023-08-28T04:46:01.534860 | 2023-08-27T08:17:15 | 2023-08-27T08:17:15 | 135,029,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # Recursive Multiply: Write a recursive function to multiply two positive integers without using
# the * operator (or / operator). You can use addition, subtraction, and bit shifting, but you should
# minimize the number of those operations.
# The idea is to divide smaller number on two, until it's 1
# when it's one, ... | [
"taras.plavin@gmail.com"
] | taras.plavin@gmail.com |
6c3af5545e6bfcfdd613ef4bc3f7d871b00511c2 | 641a0e2db97e87a712f9d8bfbc43ada02dcfa707 | /wsgi/openshift/photo_album/views.py | 19b1113b959ad524531713ac4acb58042299a3a5 | [] | no_license | sagoyanfisic/openshift-cloudinary-django-sample | bf5ac2044be1eb493e6d64009d82f9eca296dd35 | 46f22bb4a9c251640e1c3b939e666384118e3e13 | refs/heads/master | 2021-01-10T03:55:46.352982 | 2016-04-05T22:40:23 | 2016-04-05T22:40:23 | 55,558,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import json
from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from cloudinary import api
from .models import Profile
def filter_nones(d):
return dict((k,v) for k,v in d.iteritems() if v is not None)
def list(request):
defaults = dict... | [
"sagoyanfisic1@gmail.com"
] | sagoyanfisic1@gmail.com |
258a37565841ee4d731973893e916a4420e4a63c | 4bb36e95ea92cea2a707be16fefcd873f4fc6f4e | /mirrormirror.py | ef86f758a4c982bb82847ca1c4122f03b9f04fd4 | [] | no_license | mdhruv/mirrormirror | d734c4959108ee66d4b75393caef4e51d3d6ced8 | bcb1776b9386f84af957f636295f4487f8c7b122 | refs/heads/master | 2021-01-20T11:17:07.023343 | 2019-02-07T03:43:53 | 2019-02-07T03:43:53 | 55,566,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import os
import urllib
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'],
autoescape=True)
class MainPage(webapp2.RequestHandler):
def get(self):
greeting = 'Meow Meow Meow'
templ... | [
"mikhail@Mikhails-MacBook-Pro.local"
] | mikhail@Mikhails-MacBook-Pro.local |
bca9b2cf1b50fa691d5a504ec98d956b07a26fdc | 09f7fd68c3b0f898cd04ea88daca2a42ca19908b | /mapss/celery.py | 4c26aee5e4d4fa367175465c5a70ea2741a283ad | [] | no_license | MPI-MAPSS/MAPSSdb | 512656b5d0c73ae019ea3acbcaee12617470cd77 | 982394c95c615a135ec6171c819c3f6eb29b56f7 | refs/heads/master | 2023-04-16T06:04:10.286241 | 2023-02-11T13:34:48 | 2023-02-11T13:34:48 | 600,424,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
import platform
if platform.system().lower() == "windows":
os.environ.setdefault("FORKED_BY_MULTIPROCESSING", "1")
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mapss.settings')
app = Celery('mapss')
app.config_from_o... | [
"root@mpi-arches.server.shh.mpg.de"
] | root@mpi-arches.server.shh.mpg.de |
136cf267494f11774e3f8639873ca55c73edb135 | 3880b3a05a9781350a32a3b2ca7f6d8313c0a0e0 | /Day6/wordcount/mycount/views.py | 8475ad74c857c2831a69467f15c9383eba7bd9f6 | [] | no_license | roseline0912/LikeLion | 60dc179b45460bd7ecd1aa0154f1512faf44feb9 | 9f2a3386544bd6e7f928494328ff8d8ca9d6feb1 | refs/heads/master | 2022-11-13T03:14:13.307939 | 2020-07-04T07:15:23 | 2020-07-04T07:15:23 | 274,402,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.shortcuts import render
# Create your views here.
def index(request):
context ={}
if request.GET.get("myword"):
mysentence = request.GET.get("myword")
context["wordlen"] = len(mysentence.replace(" ", ""))
myword = mysentence.split(" ")
... | [
"roseline0912@likelion.org"
] | roseline0912@likelion.org |
b979ee45340f7f2fc214f705b02ac0390ba4212d | 2ba8b045dd9db51ca14c17c6e04383f113532445 | /src/collective/saml2/testing.py | 9f37cc920cd2c762d3edd8bb620cc36db10bf752 | [] | no_license | collective/collective.saml2 | 04c5cb1519108c8ccd95c827065d83afd5a33e57 | 1bb2eb09bed6201b2a48fb0dfa68946be6e03174 | refs/heads/master | 2023-08-28T11:40:53.034492 | 2022-11-22T14:51:23 | 2022-11-22T14:51:23 | 15,853,111 | 5 | 6 | null | 2022-11-22T14:51:24 | 2014-01-12T23:18:22 | Python | UTF-8 | Python | false | false | 865 | py | from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import IntegrationTesting
from plone.app.testing import applyProfile
from zope.configuration import xmlconfig
class CollectiveSAML2(PloneSandboxLayer):
defaultBases = (PLONE_FIXTURE, )
def setU... | [
"software@pretaweb.com"
] | software@pretaweb.com |
90ec448ee163c8b2dbceef7d3cf6a9bddda79de8 | 8e7d45ad0cd018a2cb6a12b077c93794a933959b | /leet/0904-fruit-into-baskets/fruit-into-baskets.py | 8753c71eb955ef01cfeaf957ef3b78977c3eab8f | [] | no_license | lugy-bupt/algorithm | 550a28060615d824de34c66c117f76a83e07b708 | 43b663c125dfa1f78a0936f5caa601407cfb39f4 | refs/heads/master | 2020-04-10T12:22:39.765248 | 2019-07-09T08:09:18 | 2019-07-09T08:09:18 | 161,020,432 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | class Solution:
def totalFruit(self, tree: List[int]) -> int:
def getFruit(start: int) -> int:
ret = 0
dicts = {}
for i in range(start, len(tree)):
if tree[i] not in dicts and len(dicts) == 2:
break
... | [
"noreply@github.com"
] | lugy-bupt.noreply@github.com |
1f5cf71313699b12469422f9ba4438ec8d5ae895 | bd7aeb7d1b9d8aedbad2510015235a6e95f8f834 | /src/mbox_move.py | 020b0a9e0894eb5d6ee53afd1617fad1ed4159c2 | [
"MIT"
] | permissive | pzia/keepmydatas | 7f60f7a5128380b74a7349ac9cb4125f2b938bbb | 3783909119e7ece986a92b9e56ec53cddeb924e3 | refs/heads/master | 2021-05-19T22:48:15.389461 | 2020-12-25T11:24:39 | 2020-12-25T11:24:39 | 32,166,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Parse tree, find matching MBOX files, and move them info a new folder"""
import KmdCmd
import KmdFiles
import KmdMbox
import os
import re
import logging
class KmdFilesMove(KmdCmd.KmdCommand):
regexp = None
def extendParser(self):
super(KmdFilesMove, sel... | [
"paparazzia@gmail.com"
] | paparazzia@gmail.com |
3ed3dd12b61c0bfff33ee52c0e26c742ceb72636 | 66ba8fe37044b65313164a98614b28ef4a220873 | /testnmap/libnmap.py | 8bf4bff11394388bb9ce9fd29ef7a2b70570f945 | [] | no_license | eroa/reconator | 022d64b59882427064738bbf242b82a56c8de760 | 33c767155508ec49a5536977f8e16a06823c3853 | refs/heads/master | 2021-10-27T04:15:20.383146 | 2019-04-15T22:20:48 | 2019-04-15T22:20:48 | 30,401,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import libnmap
from libnmap.process import NmapProcess
from libnmap.parser import NmapParser, NmapParserException
import os
import sys
import subprocess
import multiprocessing
from multiprocessing import Process, Queue
# start a new nmap scan on localhost with some speci... | [
"toxic@t28.io"
] | toxic@t28.io |
4fa016208f4968d005714f2d87dac7a6746a25fb | 9d84a9bf3d7034438d4da1397a45a604f07d2802 | /Meshless_Python/rascunho.py | a3f1fc52aec3624b244099d00470d0873ef6cf86 | [] | no_license | CatarinaPinheiro/MetodosSemMalha | 98470dd7baaf027245133458fef69ce07e425254 | 013688682ac4c0f2899294566913d2b85bcfd164 | refs/heads/master | 2020-03-14T12:23:54.916183 | 2018-12-09T13:22:58 | 2018-12-09T13:22:58 | 131,609,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | import numpy as np
import weightmatrix as wm
from numpy import linalg as la
import basismatrix as bm
import basis as b
import coefficients as c
import minimumradius as mr
r_data = [[0, 1], [0.5, 1.5], [1, 2], [1.5, 2.5], [2, 3], [2.5, 3.5], [3, 4], [3.5, 4.5], [4, 5]]
contour_point = [[0, 0], [4, 4]]
radius_approxima... | [
"catarina_pine@hotmail.com"
] | catarina_pine@hotmail.com |
260bc80dd5742c558de48ccfb624ce6a0f75a8be | 6fd6d2f5c68520924670114ddd24f9d7a3888c3f | /polymerxtal/visualize.py | f4c4205e9c3efa70b317da7335b2b667625c66c0 | [
"BSD-3-Clause"
] | permissive | lengxupa/polymerxtal | 571e8bd14b7e89f6cf282a08b2036e556d8664d0 | 7deb455b5ef23991c183489b1f4c0d8f004d4b52 | refs/heads/master | 2023-08-17T07:14:19.423912 | 2021-09-17T18:29:48 | 2021-09-17T18:29:48 | 287,057,077 | 1 | 3 | BSD-3-Clause | 2021-01-21T19:28:17 | 2020-08-12T16:00:49 | Python | UTF-8 | Python | false | false | 3,986 | py | """
Functions for visualization of molecules
"""
import numpy as np
import sys
from mpl_toolkits.mplot3d import Axes3D
try:
from ovito.io import import_file
from ovito.vis import Viewport
use_ovito = True
except:
use_ovito = False
try:
import matplotlib.pyplot as plt
except:
from polymerxta... | [
"shen276@purdue.edu"
] | shen276@purdue.edu |
7aba85c6ebf81e6b8ed347093357cbff4d827275 | 4f4631bc9fac672badb5e98d0f8907b2eb56266b | /test/functional/feature_snapshot_creation.py | 0322fbea12bd0c4e46ef89a80656f2e9599f6a83 | [
"MIT"
] | permissive | Ruteri/unit-e | 28e4b0a9bf2cc5518ed6a9fb79191419d51db67b | d3d12508b915986841bd19c4dee9e50dd662a112 | refs/heads/master | 2020-05-15T04:32:21.220451 | 2019-04-17T16:25:03 | 2019-04-17T16:25:03 | 182,087,190 | 0 | 0 | null | 2019-04-18T12:51:34 | 2019-04-18T12:51:34 | null | UTF-8 | Python | false | false | 6,087 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The Unit-e developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test Snapshot Creation
This test checks the following scenarios:
1. node generates snapshots with the expec... | [
"noreply@github.com"
] | Ruteri.noreply@github.com |
2d28e463f1087e08ef742eb7ec1d87f589b99e31 | 3240dd0d68c2df789af6f7da70b6bcf0a0fa0f94 | /main.py | e5ee83b6a0eb617161e4c31654937f74c8c4a3a2 | [] | no_license | Equilibris/Factorizing | 0a548c8c05ddc17fdf6c05065d12f3c9d07abb53 | 51e2c7bd86d9c5b396c593f055b9a75fbb089f34 | refs/heads/master | 2021-06-19T08:24:44.805674 | 2021-05-07T16:26:24 | 2021-05-07T16:26:24 | 210,669,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import numbers
# print(numbers.Equation.fromSpecal(23,25,numbers.OpperationFactory.divide).factors)
n = numbers.Number.fromFloat(20)
n2 = numbers.Number.fromFloat(5)
print(n.value,n.fractData)
# print(n2.factors)
# n3 = n/100
# n3 = numbers.Fraction.fromSpecal(1000,10)
f = n / n2
# print(f.value, f.fractData)
# p... | [
"williambilly42@gmail.com"
] | williambilly42@gmail.com |
c72fb300065a7e41cf9584bc194214d698246a47 | 8d50cc4f37c153fcb51de4501f3fa50c00394d9b | /test/benchmark/resnet_slim_benchmark.py | 3d10631b62d37ff457840007840c8b2d4b969844 | [
"MIT"
] | permissive | liujuanLT/InsightFace_TF | dbd239dfdda1866c348e82211932884f73cb3067 | 257b6e0dcf7e7c3523dc7e1c08ba529fab1bf75b | refs/heads/master | 2022-04-27T21:24:01.458277 | 2022-03-17T12:28:15 | 2022-03-17T12:28:15 | 463,040,192 | 0 | 0 | MIT | 2022-02-24T06:51:16 | 2022-02-24T06:51:15 | null | UTF-8 | Python | false | false | 1,231 | py | import tensorflow as tf
import tensorflow.contrib.slim.nets as nets
import numpy as np
slim = tf.contrib.slim
resnet = nets.resnet_v1
if __name__ == '__main__':
output_shape = 85164
batch_size = 64
image = tf.placeholder(name='input_x', shape=[None, 224, 224, 3], dtype=tf.float32)
labels = tf.placeho... | [
"auroua@yeah.net"
] | auroua@yeah.net |
e9868115fb1b17cac45a92abf205614c1dfca74d | 3223859df7266ce695fc226cac1c189ee1b976ce | /ALE_Example1/Controllers_For_Example/Chicken_Controller4/Chicken_Controller4.py | 30c10dab7e9caeffb3f34423cfc58858f1b8be0f | [] | no_license | MGBirch/ALEFramework | 483936097a0bfd7e91fd29f78de59d2fe3973ef1 | b5ab5379a11386ecb95cef11bfa186ebee693f22 | refs/heads/master | 2023-04-14T04:27:20.069818 | 2021-04-27T12:13:27 | 2021-04-27T12:13:27 | 346,075,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from ALEFramework.LeggedPredator import LeggedPredator
class Chicken(LeggedPredator):
def __init__(self):
mdNames = ['leg1', 'leg2', 'leg3', 'leg4']
turnSpeed = 1.0
forSpeed = 1.0
objName = 'chicken4'
self.food = ['grain', 'grain1', 'grain2', 'grain3']
super().__init... | [
"noreply@github.com"
] | MGBirch.noreply@github.com |
f4cda1bae13452fdd41043adbee86bf30238644a | 45380b07df616b8b2a8f5ad7a9ece6a5456d7f33 | /spiral_copy/spiral_copy.py | 0991fc5ec4cf79ffff1a4f8fbc7000963435b607 | [] | no_license | TheBroMoe/pramp-interview-questions | dd68707a6b1f8346e9df338deddd4e1eb0247d68 | b552551adc958bf980c42504866b303d86513aca | refs/heads/master | 2020-03-24T06:13:01.562847 | 2018-09-06T02:24:17 | 2018-09-06T02:24:17 | 142,520,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | '''
[ [1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
[11, 12, 13, 14, 15],
[16, 17, 18, 19, 20] ]
[1,2,3,...]
output_array = []
1. traverse first list from 0 to n
... | [
"kebbi@ualberta.ca"
] | kebbi@ualberta.ca |
22b47dad8aa99195f72c644637c87c628c275287 | 1dfb2227a17d71d7bf4f02f96a253c8ac9e36edd | /dennisivy/settings.py | 4c98d4d7d23c43e621a300f5a5bc63cc2f8db4ac | [] | no_license | Yohannes27/johannes | 08c5c68bb3480a2d208b82e76fecf6756f815cf8 | 81cda3cd4cee4cd764639401ea2ba3ae9dea8d7e | refs/heads/master | 2023-06-15T22:11:00.524732 | 2021-07-17T08:59:55 | 2021-07-17T08:59:55 | 386,883,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | """
Django settings for dennisivy project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"joelawro@gmail.com"
] | joelawro@gmail.com |
093b4ed2cab951bd4c4af98e355f13a85fdf697b | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/gensim/similarities/levenshtein.py | e517c5121744a6d4dd34b418f439b626454109cb | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 5,352 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Vit Novotny <witiko@mail.muni.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
This module provides a namespace for functions that use the Levenshtein distance.
"""
from itertools import islice
import logging
from m... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
14522ad9116c0690e6a9b73bbf98c168a8f15f6e | 3dddfa7991e905fedb8ea9b8903c17d720f6a4be | /config/api_router.py | e9bd092e59da7ec5c9be37244fd3bea5312a0d6d | [
"MIT"
] | permissive | codescribblr/project-manager-django3 | 9892e05913641dc011eee40512c40efc4fa7aaeb | d0dc79e992811eee3e35666acdb16bcafa16d98d | refs/heads/master | 2021-03-07T20:12:47.699515 | 2020-03-19T19:15:32 | 2020-03-19T19:15:32 | 246,294,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from vapor_manager.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "api"
urlpatterns = router.urls
| [
"codescribblr@gmail.com"
] | codescribblr@gmail.com |
ba52a043026d9aa6c70b8c067334f239eca8a97d | 6ad57cf50ef36037401713b68cd4725bec993392 | /projects/07/src/lib/translator.py | 528e9d55697346843ae29863d86cc8953a4c0a9b | [] | no_license | mtx2d/nand2tetris | 76121abee92fd016986a83ef81f5ddacdfbdf755 | 6473fcdacc9d3e06fa454a1435719327ccd03c41 | refs/heads/master | 2023-01-28T17:05:38.132896 | 2020-12-09T05:01:36 | 2020-12-09T05:01:36 | 292,430,034 | 0 | 0 | null | 2020-11-30T04:08:37 | 2020-09-03T01:02:21 | Hack | UTF-8 | Python | false | false | 403 | py | from typing import Generator
from .parser import Parser
from .code_writer import CodeWriter
class Translator:
def __init__(self, input_file: str):
self.parser = Parser(input_file)
self.code_writer = CodeWriter(input_file)
def translate(self) -> Generator[str, None, None]:
... | [
"matrix2d@outlook.com"
] | matrix2d@outlook.com |
0b2fc92c265a62bf6c807bfb777e8324c8d00e99 | 737381d9e433d538a9534ca214cad9378a3d05ef | /flask/carmen-python/carmen/resolvers/profile.py | 916865c20ab08db2b6af0a21dff698bcff322f93 | [
"BSD-2-Clause"
] | permissive | halflkaka/Toxic-Comment-Detector | e9987c4014175e03e482fd0c7f6005df752e7078 | 7aecb2fe8acc0163d19f185a25a3adda20738824 | refs/heads/master | 2020-04-10T19:16:41.544661 | 2018-12-12T23:23:58 | 2018-12-12T23:23:58 | 161,229,489 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | """Resolvers based on Twitter user profile data."""
import re
import warnings
from names import *
from resolver import AbstractResolver, register
STATE_RE = re.compile(r'.+,\s*(\w+)')
NORMALIZATION_RE = re.compile(r'\s+|\W')
def normalize(location_name, preserve_commas=False):
"""Normalize *location_name* by... | [
"yzzhou.2017@hotmail.com"
] | yzzhou.2017@hotmail.com |
5aece78f9df30d5b1f02206cef9109a5d8884fce | 1ebe5a07e7f6260c2c2ceb6ca00dcf2a0341e544 | /op_impl/built-in/ai_core/tbe/impl/dynamic/sigmoid_grad.py | 12a4e8060c7c75ec879836ff02245bf134ad404c | [] | no_license | gekowa/ascend-opp | f5e09905336d85f9974d555d03d37a75cb8185c1 | 5c28a2faf9d2a117ea6f0923efe35fcd53904dd2 | refs/heads/master | 2023-04-09T12:14:40.337104 | 2021-04-19T23:00:59 | 2021-04-19T23:00:59 | 359,620,865 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the Apache License Version 2.0.You may not use
this file except in compliance with the License.
This progra... | [
"gekowa@gmail.com"
] | gekowa@gmail.com |
cc0bff1a878ca2c0d021572fd5105692d941f13d | bf6a60eb8467064fdf65628d3d94174422650a51 | /agenda/settings.py | f7e10b16ee080185c6344a87cd18085aa595afa2 | [] | no_license | saracris33/agenda | fa7fc276d51320a714594d06fac5c232d6de903e | 18982fbb34982410174b012a04ac94a4ca62e5c1 | refs/heads/master | 2023-04-03T00:20:12.085075 | 2021-03-28T23:01:46 | 2021-03-28T23:01:46 | 352,085,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for agenda project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"saracristina33@gmail.com"
] | saracristina33@gmail.com |
122ff0d6144ede7500d7b14ce445d07e8d7ac56c | eef8ad0c5e6b7b69a4077595e0b10e511cf6a140 | /students_control/wsgi.py | 21756654b85f65a6c642be8b90342629c4ce5be5 | [] | no_license | serg-pe/students | 7528d2c6b75e980b2eba8eb84cc43e263377487a | f7a37c8f7edf29f735a711dc1cad17c08cd69284 | refs/heads/master | 2023-07-02T22:21:25.712895 | 2021-08-05T14:06:06 | 2021-08-05T14:06:06 | 393,065,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for students_control 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"pechurin.serg@gmail.com"
] | pechurin.serg@gmail.com |
b927b5d25d217da5c4c4e64c5bd351c503b06041 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan.py | 594d670d723c414dc75c3cbcbd6b5e220e0f45a7 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,543 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
cbe9093790f695b6df02ae166b045ce24747d369 | d7024d113fd02d23cefb4909f3138af32c72f885 | /djlevelfive/basic_app/urls.py | 1cac84a9bf20eb101880c1d521695b7fd89509af | [] | no_license | jegawaran/django_learning_login | 853da3e58e2bd8d542859796b0e4a0d4c1ce6f25 | 7e93a8d14b3bbc6f11bb8ea7deb71d5e934400dd | refs/heads/master | 2021-05-26T02:00:19.944086 | 2020-04-09T14:01:05 | 2020-04-09T14:01:05 | 254,009,311 | 0 | 0 | null | 2020-04-09T14:01:06 | 2020-04-08T06:54:52 | Python | UTF-8 | Python | false | false | 252 | py | from django.contrib import admin
from django.urls import path,include
from basic_app import views
app_name = 'basic_app'
urlpatterns = [
path('user_login',views.user_login,name='user_login'),
path('register',views.register,name='register')
]
| [
"jagatheesjothi@gmail.com"
] | jagatheesjothi@gmail.com |
7c0b71d0ee54f8a018fa020cc6f7065ad91a921a | 11c0d9c266602d204168fc1320fe5e8810045e0b | /number guess game.py | 671be84a1b5cf7c4e5d3901fe1172e829999e462 | [] | no_license | hiteshkrypton/Python-Programs | 44d7b463a0d665c3ab6fc7eb6d24a4296121a848 | 28cf3d832d93e56fcc62bdf265b765865d0c1c14 | refs/heads/master | 2023-01-03T23:37:05.559438 | 2020-10-06T20:21:05 | 2020-10-06T20:21:05 | 301,844,360 | 1 | 0 | null | 2020-10-25T15:05:57 | 2020-10-06T20:17:32 | Python | UTF-8 | Python | false | false | 466 | py | # share https://youtu.be/x084tfX4JnI
# subscribed by armor-boop as @varunpariharr ig handel
#plz watch this video https://youtu.be/x084tfX4JnI from codehouse and subscribe for further amazing videos related to coding programming
import random
r = random.randint(1,20)
while(True):
inp = int(input())
if(inp<r):
p... | [
"noreply@github.com"
] | hiteshkrypton.noreply@github.com |
b5aa8609ba4bfc1316d746246c92c28fcc417aac | 63bf17b9710c983483c920bcef40366a906caca3 | /myenv/bin/easy_install-2.7 | d01121c657b04c108bb9601f005a925b17b7b649 | [] | no_license | yamen225/tryDjango18 | 63a97ad7c1c4be30c41342fb9e4be3cfb9c1cd94 | c5d72842abdc1e15e7a5a2de586d09fd87b75792 | refs/heads/master | 2020-03-22T14:10:10.754849 | 2018-07-08T10:26:01 | 2018-07-08T10:26:01 | 140,158,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | 7 | #!/home/yamen/WorkSpace/Django1.9/Development/myenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yamen225@gmail.com"
] | yamen225@gmail.com |
1c502f728773194232d669a486066cf73f92df2b | 0ff7dfab354e475b978a371c0dc35c3246725a1e | /lofd/migrations/0049_auto_20200524_2110.py | 5a778ee1a7bcd36fdc9e7ab9e30e924250a03485 | [] | no_license | ozgeyilmazh/lofd | 0f15305a8f95ed0bac8ae32da43a901f888b53c3 | ac15f788d34c684b5d45891d8fcbeb380c78352c | refs/heads/main | 2023-01-01T00:13:40.103619 | 2020-10-18T23:12:42 | 2020-10-18T23:12:42 | 287,809,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # Generated by Django 2.2.4 on 2020-05-24 21:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lofd', '0048_book_cover_image'),
]
operations = [
migrations.CreateModel(
name='Watch',
fields=[
('i... | [
"onder.yilmz@gmail.com"
] | onder.yilmz@gmail.com |
f802008470611389229998d8cb6b02f793426a34 | aadb2d7175273bd99520998d3970456c86c15de9 | /binder.py | eaf321def1404c14d1b5a4cfb4f72084d69330cb | [
"BSD-3-Clause"
] | permissive | gahughes/Apertif-Visualization-Example-Docker | 94bc9a8bf5a2a1dd392f8b45182022ba217b6078 | c541a0660df2c5427d10b9576fde20b99b806cd4 | refs/heads/main | 2023-08-17T00:45:48.888234 | 2021-09-27T11:20:21 | 2021-09-27T11:20:21 | 410,800,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """Install code on Binder.
This script is executed from Dockerfile configuration file
It installs software dependencies declared in environment.yml
in the docker container built for the Binder service.
"""
import yaml
import conda.cli
import subprocess
import sys
with open("environment.yml") as stream:
content = ... | [
"gareth.hughe@cta-observatory.org"
] | gareth.hughe@cta-observatory.org |
0328bd33ee83d556bf57c8a718f7cbaa035b7531 | 5d058397ba3f90d3c9864076dd2908dd43c0b70a | /weather.py | dcd73f7d42fe71cbd97e27bb95e50569b80bd5cb | [] | no_license | R-Yamaga/git_lesson | 2604628086f368656d39a98520da504cdcb43299 | 08b588f7996ad23378865792c81d2dd6bd1bf223 | refs/heads/master | 2023-03-07T01:25:27.536331 | 2021-02-20T06:41:40 | 2021-02-20T06:41:40 | 340,559,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import requests
import json
from pprint import pprint
API_KEY = "de0493ad02b5f68f7866c1ea3a8819e4"
BASE_URL = "http://api.openweathermap.org/data/2.5/weather?units=metric&lang=ja"
city = "Kobe,jp"
response = requests.get(BASE_URL + "&q={}&APPID={}".format(city, API_KEY))
weather_data = json.loads(response.text)
# ppr... | [
"yamaga.3939.love@gmail.com"
] | yamaga.3939.love@gmail.com |
9f77649ff464ce56850ba4c2959988042dc566e6 | 941c37c639551010fb99dfa29d0da15589a86cf9 | /scripts/classification.py | 4c4e0d0bbdf830389fd32ea0745963c6607179cd | [] | no_license | rpezoa/multiW_analysis | 0d28ed6b9bfb5b335f6e19aaab62f941f893792f | d0d6909fecc19c2e1f547f4efc6fb4b59c05f039 | refs/heads/main | 2023-01-21T03:39:06.961507 | 2020-11-27T19:27:39 | 2020-11-27T19:27:39 | 314,274,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | import numpy as np
from sklearn.ensemble import RandomForestClassifier
import lightgbm as lgb
import time
from sklearn.model_selection import RandomizedSearchCV
def classification(X_train, y_train):
print("Running classification model ...")
start = time.time()
d_train = lgb.Dataset(X_train, label=y_train)... | [
"rpezoarivera@gmail.com"
] | rpezoarivera@gmail.com |
e656df746553b3c6a62b4a2c65f1bf14cff21bed | bf842db27fe35c8f4e659682326b4b77bf9b5726 | /embedding_glove.py | 7b28503d2ee92628ce560bb9ee0343695e4bcd71 | [] | no_license | palarunava/deep-learning-exercises | 79135db506fadd8acd8fe775802e987c642066c8 | 92e195b96a77f731cb767f153308fe05e19a1cbd | refs/heads/master | 2020-04-17T07:38:17.959265 | 2019-02-13T07:49:24 | 2019-02-13T07:49:24 | 166,377,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | from numpy import array
from numpy import asarray
from numpy import zeros
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import Embedding
#%%
# de... | [
"pal.arunava83@yahoo.com"
] | pal.arunava83@yahoo.com |
4162fc60669d9da300db7416d8d71205d1582779 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/errors/__init__.pyi | 27774c85b4c35c1cb30753e12fefd8de51da2622 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | pyi | # Stubs for tensorflow.errors (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python import OpError as OpError
from tensorflow.python.framework.errors import AbortedError as AbortedError, AlreadyExistsError as AlreadyExistsError, CancelledError as CancelledError... | [
"matangover@gmail.com"
] | matangover@gmail.com |
1e6046772828baa97b1ac0a5d2a410f1e5a74fb2 | a885bfe825f42129155841c71b146ed9e254f285 | /concurrency/process_io.py | 128ed4ca10ad8bc6f63078bdee6667031c470824 | [] | no_license | stackeric/practical-python | 72c3a0210c0206c66ad608cf7f31da8261a3dca4 | e6f12189b59953da0887afd85cbac6c576406265 | refs/heads/master | 2022-12-02T18:36:38.159509 | 2020-08-25T11:12:51 | 2020-08-25T11:12:51 | 287,465,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import time
from multiprocessing import Process, Queue
def block_task(q):
time.sleep(1)
q.put("Done")
def main():
n = 4
tasks = []
q = Queue()
result = []
for i in range(n):
p = Process(target=block_task, args=(q,))
tasks.append(p)
for i in tasks:
i.start()
... | [
"eric@ericde"
] | eric@ericde |
606bcb6ee4260f59f029fccb186d5191429fe6bf | de84f9d44b59aa39a1612c683cf2de150ef59e9b | /qurl/migrations/0001_initial.py | 43c0b8f99a45263bfb2a764182ab58f5e645ba99 | [] | no_license | evrenesat/uygulamatik | 25d7617d4ae6c10623b30d4a57731242efa9a4a7 | c90da279c6571549e35f51e097524752d9cc2936 | refs/heads/master | 2021-01-19T05:39:26.908079 | 2014-06-05T21:57:00 | 2014-06-05T21:57:00 | 65,093,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: 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):
# Adding model 'QRcode'
db.create_table(u'qurl_qrcode', (
(u'id', self.gf('django.db.models.fiel... | [
"esat.ozkan@grow-is.com"
] | esat.ozkan@grow-is.com |
d61f4f643c07997b94870339b9e90ad794a8f9fc | 4769bb5482141b84898a33c4376394389d540c15 | /docker/models/services.py | 590729eb19fa03d913f1306d0c27de12ab258293 | [] | no_license | oraluisarias/dockerPSM | a92052a3f0641acdb57b94aba26934754927ddcc | 4b66ffb9ff061c1661b880fa8f62a6bec94464c0 | refs/heads/master | 2021-01-21T18:58:24.671171 | 2017-05-22T21:55:06 | 2017-05-22T21:55:06 | 92,103,006 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,961 | py | import copy
from docker.errors import create_unexpected_kwargs_error
from docker.types import TaskTemplate, ContainerSpec
from .resource import Model, Collection
class Service(Model):
"""A service."""
id_attribute = 'ID'
@property
def name(self):
"""The service's name."""
return self.... | [
"tflores"
] | tflores |
86d517542aae9fb3b1f8c499f26b5e9fd3831df4 | 48040e0159e4c8471923edc1e89260f1350f73d2 | /forms/autoCreateShifts.py | 4a38ba876a8012b6084bcab6d1ea15326551492c | [] | no_license | flurl/lagerManager | 496214fd841987882e8debbdccc5e81d76727f01 | f7617b9dddc3ff175e44bb847583fbffb933c716 | refs/heads/master | 2020-05-21T15:19:07.969152 | 2019-06-17T15:40:16 | 2019-06-17T15:40:16 | 5,766,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui, QtSql
from CONSTANTS import *
import DBConnection
import config
from lib.GlobalConfig import globalConf
from forms.formBase import FormBase
from ui.forms.autoCreateShiftsForm_gui import Ui_AutoCreateShiftsForm
import datetime
class AutoCreateShiftsForm(FormBa... | [
"it@postgarage.at"
] | it@postgarage.at |
5f1f8f1639525065d366c6762675a3cc642d30c2 | 84bb72a8618116c6e61353b73b744a5271bc99aa | /scripts/cloud/ppo_gcp.py | 50607139b0024b559f136bac0d5f06aeebdfe3e7 | [] | no_license | ndalton12/AMPED | 46916b109e19e88831150bde6ee8a5358bc91323 | d93d5379ab91ace92d9c2f112ea5a9d1881fd0cb | refs/heads/master | 2023-05-26T18:27:52.487607 | 2020-12-16T01:35:43 | 2020-12-16T01:35:43 | 310,496,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py |
import ray
from ray import tune
from ray.rllib.agents.ppo import PPOTrainer
from src.common.env_wrappers import register_super_mario_env
def train():
register_super_mario_env()
ray.init(address="auto")
tune.run(
PPOTrainer,
config={
"env": "super_mario",
"framew... | [
"niall.dalton12@gmail.com"
] | niall.dalton12@gmail.com |
c73146252b7243a3e4200c4ac7e3b724ebbf5db5 | 8d79780c26453efd8d0a8ed5b1bea3ad30d54fa2 | /signs/commands/stopwords.py | 5c11110480e379df3c92bf4e39bbc89c8cb0c4b8 | [
"MIT"
] | permissive | autonomio/signs | 90d217bb873e8417b5c55c6e53fe7551cb18833d | 0ae345464d21d144e43f1e342ceb07783fe70a4f | refs/heads/master | 2023-08-03T10:57:52.638763 | 2023-07-29T11:17:00 | 2023-07-29T11:17:00 | 138,289,276 | 13 | 3 | MIT | 2023-07-29T11:17:02 | 2018-06-22T10:23:32 | Python | UTF-8 | Python | false | false | 2,570 | py | class Stopwords:
def __init__(self,
docs,
common_stopwords=True,
add_stopwords=[],
min_length=2,
max_threshold=10):
'''Accepts as input a list-of-lists where
each sublist is a document represented in tokens.
... | [
"mailme@mikkokotila.com"
] | mailme@mikkokotila.com |
5c6512d6f30eb845155ab18b6ca2551e3db2692e | 80cab747b3a1ed9639ba45b86d1c6871c4d23fd0 | /fb_mybot/apps.py | 0bf4eb4f779c4b7d9328d96a6bd738725c1c5c1b | [] | no_license | HadesSama/fuujisamytestbot | efd43440661e3e83ee26ea8af80a7260a60a3b50 | 4aaeda1c8e2195914b33a04de8435bb94991f715 | refs/heads/master | 2021-01-20T10:28:28.965635 | 2017-03-04T23:47:56 | 2017-03-04T23:47:56 | 83,932,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class FbMybotConfig(AppConfig):
name = 'fb_mybot'
| [
"samybensbih@gmail.com"
] | samybensbih@gmail.com |
c403caa88f7b02079838aa6f7f4193a522735a2a | 8e41c877244f04c79cb0828e582f23fc19fce31c | /david/modules/works/model/work.py | eac66b28f1eccb686aed670193c1ec97f8e21f71 | [
"MIT"
] | permissive | ktmud/david | 8214e0dd3c6b74f696e4d9a038eadc2e8e22223b | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | refs/heads/master | 2016-08-05T22:56:42.548100 | 2014-01-19T11:57:18 | 2014-01-19T12:05:18 | 13,518,612 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
from config import SITE_ROOT
from david.core.db import db, orm, func, CatLimitedQuery, UidMixin
from david.core.accounts import User
from david.core.attachment import MediaMixin
from david.lib.utils import truncate, striptags
from david.ext.babel import lazy_gettext as _
from david.modules.ar... | [
"jyyjcc@gmail.com"
] | jyyjcc@gmail.com |
0278c67c002e9408e6651d0eb061d1606c8955f0 | 782ea192b3d7bb6392488c841ec60392a7dd5569 | /home/models.py | bba6bb452fe7dd171fca3d8843eacceb472fd124 | [] | no_license | GM1957/mysite | 9526658800b2deefedb1da07d5e152acfe9a618e | ee2dcdd8b9c6c3243c7b615ae0f72c55ec745cb1 | refs/heads/master | 2022-12-22T08:40:21.846110 | 2020-10-03T17:17:54 | 2020-10-03T17:17:54 | 300,935,268 | 0 | 0 | null | 2020-10-03T17:56:46 | 2020-10-03T17:15:53 | JavaScript | UTF-8 | Python | false | false | 1,606 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.timezone import now
# Create your models here.
class Product(models.Model):
productUniquename = models.CharField(max_length=200)
product_id = models.AutoField(primary_key=True)
product_name = models.CharField(max_len... | [
"Tanmoybhowmik03@gmail.com"
] | Tanmoybhowmik03@gmail.com |
23db1f0ed3b70bb1a06804fbf9ed2880e100f1f4 | c2d533b32c258280293be3f3bf20afe7fd77f1ac | /home/debian/brewing/log.py | bae24f68a12a10a641c07a4bb0a83aa3fc8f7447 | [] | no_license | leograba/final_paper_tcc | 26bc1621272cbb587a750a7eb994b5e2b80428da | 9743055eea2e6245d68295da7897e6e7a43d1b34 | refs/heads/master | 2021-01-18T16:26:42.147756 | 2016-05-29T19:51:07 | 2016-05-29T19:51:07 | 50,020,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | import temp
temp.tlog()
| [
"leogveiga@gmail.com"
] | leogveiga@gmail.com |
0b7d0093a662db29643feb27131176aa436c1bb7 | 29aa0266f6cb5578730cc44e6f792a7eeb6b01a5 | /src/big_o_notation.py | 1f93e368b1dcd5f8d3e3a83fd41aa3210bdf92c2 | [] | no_license | Kandelonius/python-lectures-LS | 7ad0e1690dd5e474dbb6f9595fa488c1b58ef2aa | 1d81a4e52238ae06894050168bb713760e47a804 | refs/heads/master | 2022-12-16T14:02:33.638479 | 2020-09-23T22:29:31 | 2020-09-23T22:29:31 | 286,515,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | my_list = [1, 2, 3, 4, 5]
longer_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def print_list(arr): # O(n) linear
for n in arr:
print(n)
print_list(my_list)
def print_pairs(items): # O(n^2) quadratic
for item_one in items:
for item_two in items:
print(item_one, item_two)
def my_fu... | [
"shane.kaestner@yahoo.com"
] | shane.kaestner@yahoo.com |
8ad2d0a9ef495db9e47b6c1c13825bd57cc2fef6 | 4c00d6993f7d934fd57314df275e37ce3d231c39 | /defrag.py | 66ad04e6883ba9651f624597344fb2d9349cca59 | [] | no_license | cbhl/cusec12 | 56ce830d70ba9deee92fba745260bcca1a0bd1c3 | 0967a471833fc8f2d55fd8464b96ddadb195ad67 | refs/heads/master | 2016-09-06T04:10:12.421705 | 2012-01-21T04:55:42 | 2012-01-21T04:55:42 | 3,220,147 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | #!/usr/bin/env python
'''
Defrag
CUSEC Coding Competition
Waterloo Software Engineering
@author Michael Chang, Alice Yuan, Joshua Kaplin, Aaron Morais
'''
import defrag_scorer
from strategy import *
class TimeoutException(Exception):
pass
if __name__ == '__main__':
import argparse
import signal
... | [
"m9chang@uwaterloo.ca"
] | m9chang@uwaterloo.ca |
84ffc63b90733910ea156b66f03e2393e38acd03 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9CWPv99o4EjZgHnkq_20.py | 51d78dfb8d43ec2f17ffec1bef69618a23bddc68 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | """
Write a function that divides a list into chunks such that the sum of each
chunk is `<= n`. Start from the left side of the list and move to the right.
### Examples
divide([1, 2, 3, 4, 1, 0, 2, 2], 5)
➞ [[1, 2], [3], [4, 1, 0], [2, 2]]
divide([1, 0, 1, 1, -1, 0, 0], 1)
➞ [[1, 0], [1], [1, ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2018a3d9a6c42fdf513d453e9e9e752d29105e14 | e62513f731a7e0c0f93df82fad4a7c391ae79503 | /examples/crypto_ticker.py | 28c1b0cb756302b1f0204ca0b27fe9326392f9ba | [
"MIT"
] | permissive | bjarnekvae/pymobitec-flipdot | 173157c6954d014b87ad444405466a1157f52d11 | b51545e8b1b792c2c4e970cf9ce8b207ffabe9c2 | refs/heads/master | 2021-06-25T11:27:28.342520 | 2021-01-09T00:54:09 | 2021-01-09T00:54:09 | 171,110,798 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import serial
import time
import pymobitec_flipdot as flipdot
import cryptocompare
import RPi.GPIO as GPIO
crypto_currency = 'ADA'
fiat_currency = 'USD'
LED_flash_threshold = 0.005 # % price change per period
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, GPIO.HIGH)
prev_pri... | [
"bjarnekvae@gmail.com"
] | bjarnekvae@gmail.com |
d537973b9f91bc317cd461a50404c9e0a259fd8f | 4f380f74e0b0992427e5aa5d7c0bfc7ce841c98f | /main.py | 138fa0aeeb06cf83cd4f653c068ee9a201fd0a3b | [] | no_license | MurrayC7/DeepISP | 1c4512087ce3ea40e274dd340a51e9f9500488c4 | 303507174c240a9f5048a76fdaa6045069f9d395 | refs/heads/master | 2022-04-03T20:17:36.407947 | 2019-11-28T07:49:17 | 2019-11-28T07:49:17 | 215,030,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import argparse
import os
import tensorflow as tf
tf.set_random_seed(819)
from .model import Unet
parser = argparse.ArgumentParser(description='deepisp')
parser.add_argument('--dataset_dir', dest='dataset_dir', default='fivek', help='path of the dataset')
args = parser.parse_args()
def main():
if not os.path.e... | [
"330784960@qq.com"
] | 330784960@qq.com |
6b2b48dfde1b45519659285e8341242c9d50a5b9 | 4fe0dae5fcac233b087326b907513b3fb390e87c | /qidian_login/qidian_login/spiders/bookshelf.py | 789234414771125ffa7c77e946ca1cd94bd3de48 | [] | no_license | cjg1994/crawl_practice | 9b91efb1e237b91c2714828f10a2fa7c4e5c452b | 8fc62c03b30dcce6b52b152ae03358aa9159be9a | refs/heads/master | 2022-11-19T14:56:51.947369 | 2020-07-13T13:18:56 | 2020-07-13T13:18:56 | 279,276,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | # -*- coding: utf-8 -*-
"""
通过browsercookie可以获取chrome浏览器存在本地的各个网站的cookie对象,< Cookie key=value domain>
构造一个cookie字典,通过请求发送实现自动登录
"""
import scrapy
import browsercookie #browsercookie库的使用
from qidian_login.items import QidianLoginItem
cookie='Cookie: _csrfToken=W3JqtsH9COGyqaCjsvl3TgJe8E6YbrpcA2CAWen3; newstatisticUUID=... | [
"532223911@qq.com"
] | 532223911@qq.com |
148be16b7639ef836ce0d724e7b939cb91f4eb7d | e1a2ddd7e382a450f75f47a366f740e807bf6d99 | /area.py | 6d46b185c2688b712e294169f7740fbd61845300 | [] | no_license | Padmajaya123/simple-python-programs | ddb37b410800b1601c640d907e1a13deba8f40c7 | 28a40e0ce2764fb7ab33ad234c6de668ed99dc04 | refs/heads/master | 2022-09-29T04:16:10.854631 | 2020-06-02T04:11:24 | 2020-06-02T04:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | a=int(input("enter the length="))
b=int(input("enter the breadth="))
as1=0
sr=0
c=0.0
as1=a*a
sr=a*b
r=int(input("enter radius="))
c=3.14*r*r
print("Area of square=",as1)
print("Area of rectangle=",sr)
print("Area of circle=",c) | [
"saipadmarekha@gmail.com"
] | saipadmarekha@gmail.com |
a9982fa549dd8e35fbd52c6ff5c868688b657c02 | a9eec5b1dbccb40f4bf4daad61bf4a1e669218b0 | /api/poc-api/apps/api/v1/notifications/views.py | dcc6713ef86124cf761773813675d06e3f887ecf | [] | no_license | Gaiachain-Ltd/Charcoal-Web-Panel | f515a92ee6660e3bf53026465449227aa5255bee | 18ab01b3bb0906e4ebf9fd1864a1e37562ce53cf | refs/heads/master | 2023-01-20T09:16:48.327582 | 2020-11-25T11:58:09 | 2020-11-25T11:58:09 | 315,596,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from rest_framework.viewsets import ReadOnlyModelViewSet
from apps.notifications.models import Notification
from config.swagger_schema import CustomSchema
from .serializers import NotificationSerializer
class NotificationViewSet(ReadOnlyModelViewSet):
serializer_class = NotificationSerializer
schema = Custo... | [
"sbondar@milosolutions.com"
] | sbondar@milosolutions.com |
d3fc9110d178c1cc4d088cd664454800902db469 | 3c2cc8910c4a333a44d2d7b22489ef8d5ddb6a13 | /src/zvt/domain/quotes/stock/stock_1mon_hfq_kdata.py | eef6e6ec4b3b171e2a4a4a850183a722c32f1e8f | [
"MIT"
] | permissive | zvtvz/zvt | 6341dc765177b1e99727207f1608b730cbbb705a | 03aee869fd432bb933d59ba419401cfc11501392 | refs/heads/master | 2023-08-28T10:05:29.185590 | 2023-08-01T10:19:03 | 2023-08-01T10:19:03 | 179,451,497 | 2,782 | 922 | MIT | 2023-04-04T09:31:03 | 2019-04-04T08:06:57 | Python | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
# this file is generated by gen_kdata_schema function, dont't change it
from sqlalchemy.orm import declarative_base
from zvt.contract.register import register_schema
from zvt.domain.quotes import StockKdataCommon
KdataBase = declarative_base()
class Stock1monHfqKdata(KdataBase, StockKdataCom... | [
"5533061@qq.com"
] | 5533061@qq.com |
7cf077b680285fd75d19fc7ffb8aaee66ef25fa3 | 53ac1a010ae901c0af1a73e46683f3d0f0ef973c | /hack/codeRS/mythread.py | 0c7743231a5bc85f6421f80498dee923af87ba47 | [] | no_license | CO18344/Hack | c1ffbdf38d69a0e3a855ab813339ec022f195e20 | e529e2c405a71776cd9e899c859e470e2692439c | refs/heads/main | 2023-08-04T09:18:47.464166 | 2021-08-31T22:12:16 | 2021-08-31T22:12:16 | 401,844,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | import threading
from customauth.models import MyUser
from codeRS.models import Solved, Problem
class CodeProcessor(threading.Thread):
def __init__(self,request):
threading.Thread.__init__(self)
self.waiting = []
self.success = []
self.failed = []
self.request = request
def run(self):
if request.user.is... | [
"satviksingh28@gmail.com"
] | satviksingh28@gmail.com |
ee7db765838bb6a38ab0336af7c697e96935fbd6 | 2d83f8a0d03fcc52edf6cdb0520648f0e60d35c0 | /HCF.py | 28eb30707f5b7dda02d566422a299ba24959a0f0 | [] | no_license | VishnuSahani/Python1 | d490898baed893170bda909e9f599c584e09da7f | 638cdddce100ebcb3eac6c807ef5c3de6e81fe7f | refs/heads/master | 2020-06-04T18:33:22.450233 | 2019-07-17T06:08:44 | 2019-07-17T06:08:44 | 192,145,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | n = int(input("Enter the first number to find HCF of Number : "))
m = int(input("Enter the second number to find HCF of Number : "))
def find_hcf(x,y):
if x>y:
s = y
else:
s = x
for i in range(1 , s+1):
if x % i== 0 and y % i == 0:
hcf = i
return hcf
print("the H.C.F.... | [
"vishnu83550@gmail.com"
] | vishnu83550@gmail.com |
f9da977baa73f80e23b13009c0d7c375fb78ca28 | 7ada2807aed5be68c5a45f9b8fe30f315136be27 | /learn_motif.py | b2930e2a2eb2d2e59bd0af5aa5e58a6f500b963d | [] | no_license | naterich2/oops_meme | 1128618871ae03b2da03db3a374425b7479ad3b9 | 7f86d7b63f1628296d40d789e6bf381c764307b2 | refs/heads/master | 2021-01-05T07:53:03.533754 | 2020-02-13T00:10:36 | 2020-02-13T00:10:36 | 240,941,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,647 | py | #!/usr/bin/env python
# Written by: Nathan Richman <nate@nrichman.dev>
# For BMI 776 (Advanced Bioinformatics) at UW-Madison
# Spring 2020
# Part of homework 1, this file contains classes and a main function to run the MEME algorithm
# with an OOPS model and exhaustive subsequence method as a starting point.
# Fram... | [
"nate.rich2@gmail.com"
] | nate.rich2@gmail.com |
a8f4da140844cda00490682847b76c6fddaa7724 | 5bd690929978bf1fbc3ab5c37c5ea77dd77ceecf | /blog/models.py | c0dc21b63b63c199dcb1bd71be68c436a1f4dfa1 | [] | no_license | zeferino90/django_tutorial | 72b4849778ab55789241ef258f34f3d31345930a | 69cfcec73cce53a73adb0ce8cf0fa5012e8d7f72 | refs/heads/master | 2020-12-31T07:32:14.937142 | 2016-05-18T11:31:03 | 2016-05-18T11:31:03 | 59,109,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now())
published_date = models.DateTimeField(blank... | [
"mperesp1990@gmail.com"
] | mperesp1990@gmail.com |
bcdec5e496ad6f5abee019462653d2a2374ba54f | 56b62b19f83d33c53ea75407fb43f3ba7e47948a | /server/tests/conf.py | 2b425850d2b3827889506cac766cea03fcb44151 | [] | no_license | irs1318dev/irsScouting2017 | 73fc9b7696cbb76e8db95e24583331b046a7025a | cf2f0f75495916a74f3246e5119fa945f281c279 | refs/heads/master | 2021-01-16T00:28:41.380053 | 2020-02-26T04:29:54 | 2020-02-26T04:29:54 | 81,687,929 | 5 | 2 | null | 2019-02-18T21:11:35 | 2017-02-11T22:50:46 | Jupyter Notebook | UTF-8 | Python | false | false | 406 | py | """Commonly used settings
"""
# Server settings
host = "localhost"
port = "5432"
# Production Database Settings
user = "irs1318"
pw = "irs1318"
db = "scouting"
def_event = ("turing", "2017")
# Root Settings
root_user = "postgres"
root_pw = "irs1318"
root_db = "postgres"
# Test Settings
test_user = "irs1318test"
te... | [
"stacy.k.irwin@gmail.com"
] | stacy.k.irwin@gmail.com |
0050a190e919c80e77c4c53c167500cd7131620c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/knew.py | 4912c6babbcef8ee5f2db46376577b4a90541f7c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,609 | py | ii = [('BentJDO2.py', 2), ('CookGHP3.py', 44), ('MarrFDI.py', 6), ('CoolWHM2.py', 8), ('KembFFF.py', 7), ('GodwWSL2.py', 76), ('ChanWS.py', 1), ('SadlMLP.py', 7), ('FerrSDO3.py', 21), ('WilbRLW.py', 19), ('WilbRLW4.py', 20), ('RennJIT.py', 3), ('AubePRP2.py', 13), ('CookGHP.py', 65), ('MartHSI2.py', 20), ('LeakWTI2.py'... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
cd7edd607511c4ceb2f03d8021a7dc766ee99b53 | 55fc1cf505abd993a5271e9c607b0b744345c71c | /web_flask/0-hello_route.py | 4ebdee0bbcb0a956093e58c93720f2c9c156cd09 | [] | no_license | scurry222/AirBnB_clone_v2 | e8469639920219a83ff94033e388aea9d4e87ec6 | 90683b32a48e580f7948ad062be837d523c7e86b | refs/heads/master | 2020-07-03T17:42:09.458200 | 2019-09-05T01:10:58 | 2019-09-05T01:10:58 | 201,990,874 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/python3
""" starts a web application """
from flask import Flask
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_flask():
""" returns intro string """
return "Hello HBNB!"
if __name__ == "__main__":
app.run()
| [
"scurry222@gmail.com"
] | scurry222@gmail.com |
061edeb101c45ea71f83da9acd8e7f2de792d075 | 792b3fcf3c83c37e26dd5f6bfbe7716018c8c571 | /Server/Routes/sockets.py | bde9ea55b819e9844a0d623739404df0533105c1 | [] | no_license | kevin-fang/PillUp | afcad8d5e9d21f6a9b0b764e480a9f58c480b76c | 5b4b11fb9f9206aad47f4a316c41f817cddc9711 | refs/heads/master | 2023-01-06T20:12:57.328896 | 2021-08-10T22:16:17 | 2021-08-10T22:16:17 | 148,874,677 | 2 | 0 | null | 2023-01-04T12:51:03 | 2018-09-15T06:02:02 | Python | UTF-8 | Python | false | false | 775 | py | from Utilities.NotificationCenter import NotificationCenter as Notification
from main import socketio
import json
@Notification.notify_on('dispense')
def dispense(patient, medicine):
try:
data = patient.to_json()
data['medicine'] = medicine.to_json()
data = json.dumps(data)
socketi... | [
"sh.taslim@gmail.com"
] | sh.taslim@gmail.com |
4b543224375ff819cf154581c26265bf3182c556 | 7a27a6d95f3cf2ec6952f40d6e8707e49cb52602 | /litex/build/altera/platform.py | 1d8898655046b168fc3bf5ba6ee11707753253c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | davidcorrigan714/litex | d2dd84f313e5ad545a59bb84c53174ab77165fc3 | a6fd7b5d3714824bfcaaabdd752a8c5dc4bbbdff | refs/heads/master | 2023-01-10T04:31:52.694859 | 2020-11-09T02:34:10 | 2020-11-09T02:34:10 | 284,874,101 | 0 | 1 | NOASSERTION | 2020-08-13T05:26:00 | 2020-08-04T04:09:36 | C | UTF-8 | Python | false | false | 1,681 | py | #
# This file is part of LiteX.
#
# Copyright (c) 2015-2019 Florent Kermarrec <florent@enjoy-digital.fr>
# Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
import os
from litex.build.generic_platform import GenericPlatform
from litex.build.altera import common, quar... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
8c7ce204924a3462703bfebf3cb2f66d8dc93ceb | 4d6a249d9389406e25849574d9b0fde9a978359c | /tests/callable/publisher_function/test_subscriber_staticmethod.py | 633e112b3ac18cd6f48c855a7c400154b7cffd50 | [
"Apache-2.0"
] | permissive | basecue/cue | 8eb80b12f381a4a54755bc46d14311182a57e34b | 9d425c8e0fc306f5d48336a3f4ca66ed16d52b3c | refs/heads/main | 2023-02-05T22:38:35.681848 | 2020-12-30T20:25:41 | 2020-12-30T20:25:41 | 291,537,586 | 0 | 0 | null | 2020-12-30T20:25:43 | 2020-08-30T19:27:09 | Python | UTF-8 | Python | false | false | 1,080 | py | from types import SimpleNamespace
import pytest
from cue import publisher, subscribe
@pytest.fixture
def setup():
@publisher
def event(text: str, flag: bool = True):
return text, flag
class Subscriber:
subscribers = SimpleNamespace(
on_event_staticmethod=[],
)
... | [
"noreply@github.com"
] | basecue.noreply@github.com |
c074f5c57031ec03570f3131d545e1442de6317b | d66100c02073f051ceff3edf0845eb702cb6ed5f | /qida/models.py | 23928af25ef7083debc0670d934bbd8a418eeff2 | [] | no_license | liubq919/VisualizeLogStatistics | 1c22ec12c3fc0decaa47518b1cc4ade0ede24a47 | 5b2499e47474a8c89409643e2aab961bba5d5204 | refs/heads/master | 2021-01-10T08:44:49.284076 | 2016-03-09T02:58:56 | 2016-03-09T02:58:56 | 53,462,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | # -*- coding: utf-8 -*-
from mongoengine import *
__author__ = 'liubq'
class EveryFifteenMinutes(EmbeddedDocument):
hour = IntField(required=True)
counter1 = IntField(required=True, default=0)
counter2 = IntField(required=True, default=0)
counter3 = IntField(required=True, default=0)
counter4 = I... | [
"liubq919@163.com"
] | liubq919@163.com |
786ab8024912c38318e08fc8049d53e37a5b1fae | 050fc5ca698dfd7612dee42aa980fc7b5eee40a2 | /skywalking/plugins/sw_aiormq.py | 4b32c562651bb98bba2d06ce8a20f795c85f3101 | [
"Apache-2.0"
] | permissive | apache/skywalking-python | 8ac6ce06630c519f9984a45e74c1fcc88cf5b9d6 | 1a360228c63cd246dd4c5dd8e1f09bdd5556ad7d | refs/heads/master | 2023-09-05T02:45:56.225937 | 2023-08-28T22:19:24 | 2023-08-28T22:19:24 | 261,456,329 | 178 | 122 | Apache-2.0 | 2023-08-28T22:19:26 | 2020-05-05T12:13:49 | Python | UTF-8 | Python | false | false | 3,888 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"noreply@github.com"
] | apache.noreply@github.com |
75b37980676a19f8650268bda87ff9eb82f75b43 | 5d9038f6e4ef1082a264bbb10c2421245240b21a | /test/test2.py | ecddee7c85e65d7ac8d4078e47d12e0a9854afa3 | [] | no_license | changyubiao/myalgorithm-demo | ee9c8f559d61604ec8f4805785adf1a569d031a4 | 88c374d9062d17266abf75b155e42859c5e3d078 | refs/heads/master | 2022-12-08T18:47:23.681537 | 2020-09-20T14:31:04 | 2020-09-20T14:31:04 | 160,837,582 | 1 | 0 | null | 2022-12-08T06:38:18 | 2018-12-07T14:58:04 | Python | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@Time : 2018/12/16 09:55
@File : test2.py
@Author : frank.chang@shoufuyou.com
info = [
{"name": "laoda", "age": 12, "height": "175"},
{"name": "laoda", "age": 22, "height": "180"},
{"name": "laoda", "age": 42, "height": "160"},
]
"""
from opera... | [
"frank.chang@shoufuyou.com"
] | frank.chang@shoufuyou.com |
28613b7868c467dcf529cc1ac0d62aa02ddc6084 | 8956e74841d05e3eb69018fe212258ff4cd77879 | /store/views/contact.py | 97037ad8dadf2c794adccb079e8aba4a83c9f477 | [] | no_license | Manishkd04/py-estore | b66ca2e1343616c1e88c9c8acc74943012d37813 | aadd736157334a146a8fcca4f79ccb394b5cd6ec | refs/heads/master | 2023-02-02T02:47:05.885373 | 2020-12-19T16:09:45 | 2020-12-19T16:09:45 | 322,549,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from django.shortcuts import render, redirect
from django.contrib.auth.hashers import check_password
from store.models.customer import Customer
from django.views import View
from store.models.product import Product, Contact
from store.models.orders import Order
class Contactview(View):
def get(self, request):
... | [
"nashkumard5@gmail.com"
] | nashkumard5@gmail.com |
a9b8cd453824211daa9e5f60e01fec60b5424b1e | 71a8ad2db4ea0c208bb40ba58777f0467a67b2ba | /numpy_bressert/ch02_scipy/solutions_to_funcs.py | c170907789bc6fe1db6190bd108026ed19297b08 | [] | no_license | olegzinkevich/programming_books_notes_and_codes | 5a1384378f9428a04ea07c8c21efda5c8c2462d4 | 22395f7c83c9b561ec75e7ac8729f92444bd799b | refs/heads/main | 2023-02-26T17:40:36.686058 | 2018-02-07T11:11:06 | 2018-02-07T11:11:06 | 335,343,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # With data modeling and fitting under our belts, we can move on to finding solutions,
# such as “What is the root of a function?” or “Where do two functions intersect?” SciPy
# provides an arsenal of tools to do this in the optimize module.
# Let’s start simply, by solving for the root of an equation (see Figure 3-4)... | [
"zinkevicholeg@gmail.com"
] | zinkevicholeg@gmail.com |
962a7d8d4456f1429dcf5cf7858441c22b27f0df | 7c33a847d6af570d076ee01edfaee581815fb23f | /listings/migrations/0001_initial.py | accf0d7af47503650181b62e10901c2ea885f588 | [] | no_license | ToughTiger/tbre | 35baadd60050c903092101db77a7f0ad5ed94511 | 3585a3e708d342c34eb6c9de70c638686707997b | refs/heads/master | 2023-04-18T10:51:58.019836 | 2021-05-03T09:51:11 | 2021-05-03T09:51:11 | 359,229,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # Generated by Django 3.2 on 2021-04-20 09:30
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"santosh.cerdak@gmail.com"
] | santosh.cerdak@gmail.com |
dcd3c1fcde72e282819c6cf23917385107266f14 | 7d25b5877a615cad87ce4b606db1f06dba05afa6 | /convert_to_snake_case.py | 6bde2e631f695f88e174a6e78b8cd8732583e520 | [] | no_license | Thomd209/Convert_to_snake_case | c32b06c7edf9f27b6a0240d70e56a55b9a2b12bf | e2c6597f882daeede3a3f674cde3e4f109ba9beb | refs/heads/main | 2023-04-04T06:49:16.845828 | 2021-04-14T21:37:53 | 2021-04-14T21:37:53 | 358,048,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | def convert_to_snake_case(s):
snake_case = ''
for i in range(len(s)):
if i == len(s) - 1:
snake_case += s[i]
continue
if s[i + 1].isupper() and s[i + 1].isalpha():
snake_case += s[i] + '_'
else:
snake_case += s[i]
snake_ca... | [
"thomd209@gmail.com"
] | thomd209@gmail.com |
e624584bc90951ce86e2b1625a67dc7648748b9f | 5c90e8542121f110d595805116afc3ae9863f6bd | /Ada_LSN/operations.py | 2efaca044053bf8901745863f945de769b6df2ee | [] | no_license | philaWu/SDL-Skeleton | 46d710f317a820a3bb193d218f96948534ddfd50 | 554bbfd4775422343ce7d7789ca22720a298d359 | refs/heads/main | 2023-06-26T09:01:31.518831 | 2021-07-26T10:48:18 | 2021-07-26T10:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
OPS = {
'skip': lambda C, stride: Identity(),
'conv1': lambda C, stride: Conv(C, C, 1, stride, 0),
'conv3': lambda C, stride: Conv(C, C, 3, stride, 1),
'conv5': lambda C, stride: Conv(C, C, 5, stride, 2),
'dconv3_2': lambda C, strid... | [
"noreply@github.com"
] | philaWu.noreply@github.com |
2d80f265944c4dd17736144a3090e076a6c797d3 | d59cb746bb746c4ed87d5b222c7bde0688d95456 | /todo/tasks/migrations/0002_task_done.py | 6de5bb6d3ee400fa11fed9db9dd5bb0b502e3514 | [] | no_license | quiqueporta/devscola-djangorest | 0eea64f30b49554c05bd508767be38ea4ab9cc41 | 4121e7a7c82721c730e70f042d95d6f4696da814 | refs/heads/master | 2020-03-27T06:19:36.761044 | 2018-08-25T13:27:09 | 2018-08-25T13:34:47 | 146,097,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.1 on 2018-08-25 12:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='task',
name='done',
field=model... | [
"quiqueporta@gmail.com"
] | quiqueporta@gmail.com |
23f10a81cd196cdcebaab2c24f29d41451239302 | ee409492c8e6370ee883b6fa430fde3ec0bd7a73 | /sys/day8/file.py | be6f36086354d38bdacffc5daae7cf8dde891547 | [] | no_license | n30curry/python | 0e9aa681e94dafe6b39d703e751a80891ac4e708 | 8ab8e37fec6ae320e5c2f647182e4a24165dcf8d | refs/heads/master | 2020-11-25T21:38:36.949822 | 2016-09-07T02:09:59 | 2016-09-07T02:09:59 | 66,701,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #!/usr/bin/python
import re
a = open('dict.txt','r')
b = a.readlines()
print type(b)
| [
"1070380869@qq.com"
] | 1070380869@qq.com |
083a6080a763233b225992d29eee723297afd443 | 3a5d2b0b840f138b1813649bf54626ab3bdc66da | /admin_login.py | 86c0bab40c7bf029b3c63bef50ae59340ffded92 | [] | no_license | deadline-dealt/ip_project | 37532d67e85f066ee7c43c0c09e62f298a5f4f9d | b088b722f57bec8886591699a925a27084bd0d56 | refs/heads/main | 2023-03-24T07:49:43.380894 | 2021-03-29T16:18:48 | 2021-03-29T16:18:48 | 352,696,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import tkinter as tk
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk,Image
root=tk.Tk()
root.title("Admin Login")
root.geometry("1000x500+200+100")
#==========background_img==================
photo = ImageTk.PhotoImage(Image.open("/home/varun/varun-files/ip project001/images/loginp.jpg"))
r... | [
"noreply@github.com"
] | deadline-dealt.noreply@github.com |
7b0b098c83e893f44397072c1651e786b859c43e | 5ddb33c0aed2dbfac990b5cbe35861c91ec25548 | /dynn/data/mnist.py | 126220df89f2992934441526595b87c08313e0e0 | [
"MIT"
] | permissive | pmichel31415/dynn | 984b0fdfe45bf77f079248d1678d1aaf0dbf3649 | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | refs/heads/master | 2022-11-01T08:58:53.432236 | 2018-12-11T18:06:15 | 2018-12-11T18:06:15 | 106,301,897 | 1 | 1 | MIT | 2022-10-26T17:18:51 | 2017-10-09T15:32:02 | Python | UTF-8 | Python | false | false | 3,201 | py | #!/usr/bin/env python3
"""
MNIST
^^^^^
Various functions for accessing the
`MNIST <http://yann.lecun.com/exdb/mnist/>`_ dataset.
"""
import os
import struct
import gzip
from io import BytesIO
import array
import numpy as np
from .data_util import download_if_not_there
mnist_url = "http://yann.lecun.com/exdb/mnist/"... | [
"pmichel31415@gmail.com"
] | pmichel31415@gmail.com |
e41d656de70cbce44fc05b492b78337f13b6036b | 4bad9a1d18d0c0071b4a894fa0e181a4a77fece8 | /app/plans/ramp.py | c13924d7e307464d3db41876dbfa6b9f510a5945 | [] | no_license | bauersmatthew/olf | ae2d91514fb31664325cb62a05dea77baed224aa | aa472d1d68014976532532460308789aceb94e73 | refs/heads/main | 2023-07-22T16:45:25.107692 | 2021-09-10T04:12:43 | 2021-09-10T04:12:43 | 404,792,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,875 | py | from errors import *
import random
import copy
def order_from_spec(spec):
if isinstance(spec, str):
return [spec]
elif isinstance(spec, list):
shuffle = False
items = spec
else:
assert isinstance(spec, dict)
shuffle = spec.get('shuffle', False)
items = spec['... | [
"bauer.s.matthew@gmail.com"
] | bauer.s.matthew@gmail.com |
43d980dd88b22f0291fd9f0ef7279c68ae1ca292 | 3417f1ad3580519829172af19d7ce01e7972b4b7 | /manage.py | 1dd101fa79b5ad02c51c906177c5f98e305ff091 | [] | no_license | min-afk/noob | b54eec904da9e5beb8459a74d1201c299314d673 | 0af044509878dfd9c04b179957daf67e33750f81 | refs/heads/master | 2021-03-29T11:31:09.623974 | 2020-03-17T12:04:00 | 2020-03-17T12:04:00 | 247,950,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'noob.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"minotodor@gmail.com"
] | minotodor@gmail.com |
634a8fda1b878503bf27d2455a97bc7b1ebf595a | e5450be6c3a071b81b57ac640b756f707b44cc92 | /server/resources/portfolio/education.py | 6218f0af78db05b0f31680a66a1010f2043ba15a | [] | no_license | karmadilos/portfolio-market | 9fec4c5b0de6c8d9d894601076f3de7de569d64b | 2e82c5aff59a607843e78e60b361fec97fb05d8a | refs/heads/master | 2023-04-09T16:19:50.945833 | 2021-03-08T12:44:32 | 2021-03-08T12:44:40 | 362,552,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | from flask import jsonify, request
from flask_restful import reqparse, abort, Api, Resource
from flask_jwt_extended import jwt_required
from flask_jwt_extended import get_jwt_identity
from database.models.education import Education
from database.db import db
from flask_jwt_extended import JWTManager
import datetime
imp... | [
"swj960515@gmail.com"
] | swj960515@gmail.com |
b62c10fe3f323f7df0fb2e4d3ffbe716839c228a | d1c0c6f9f2a9297639825138f8a62aa7a6e71a03 | /PythonMoora/management/hasiltes/views.py | c6ffdf481e9ca2fd892353945ad9fb7e86a81cb7 | [] | no_license | yunuslon/SPKDataSiswa | bd147280c4f141e193554da499aa45ccf9219a4c | e2af29d7d6777460d285207f11ebb6c7d2b926c1 | refs/heads/master | 2020-04-08T02:01:47.689577 | 2018-12-19T07:55:32 | 2018-12-19T07:55:32 | 158,919,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | from django.shortcuts import render, redirect, get_list_or_404
from django.views.generic import View
from django.http import HttpResponse
from django.contrib import messages
from orm.models import HasilTes,Siswa
from .forms import HasilTesForm
from library.view import ManagementAccessView
# Create your views here.
cla... | [
"yunuslon97@gmail.com"
] | yunuslon97@gmail.com |
a32cbb4f180530ca941c558c1b528e2e3c1b2831 | 3f992958e8897a957e3b99c1391f48821fdcfb68 | /Tests/Test_InputUserData.py | 1ac375b7603157d74f5a1d3a01593690872e242d | [] | no_license | GlubokinV/ProgramSort | d36143898b8f88591906944ea2698a7685009998 | 49d7d5d44c383dbc22f1367e1c8e06f5d78537b8 | refs/heads/main | 2023-04-14T01:07:18.039866 | 2021-04-15T18:29:54 | 2021-04-15T18:29:54 | 357,791,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | import unittest
from Program.InputUserData import DataInput
class TestExample(unittest.TestCase):
"""Тестирование функции подготовки вводимых данных для обработки"""
def test_example_only_KZS(self):
"""Разбивает строку из КЗС на отдельные символы?"""
x = DataInput()
res = x.example('З... | [
"glubokin_vyacheslav@mail.ru"
] | glubokin_vyacheslav@mail.ru |
ee1e1f57e91c9660d5c3c00a1b93a25981c9b7af | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES1/OES/stencil8.py | 412215b93288aa6a7ffd69e2b7144d4f8c58a803 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# Code generation uses this
# End users want this...
from OpenGL.raw.GLES1 import _errors
_EXTENSION_NAME = 'GLES1_OES_stencil8'
def _f(function):
return _p.createFunction(functio... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
3ecc132007c95e7d84efb6b8054cfa19c6580661 | 2f18521276c42457d09ed2470d5c663e28f47504 | /triangle.py | d28eaf844529e5dc99b8991c930a7c56204d79f5 | [] | no_license | benpulido21/python_prueba_isep | 6240734de9aac0e9cbe9637e01712e10578f5f10 | 575340fa8b20bd0d68494509e96a38d30897606e | refs/heads/main | 2023-01-06T18:10:46.727378 | 2020-11-10T02:16:05 | 2020-11-10T02:16:05 | 311,506,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #declaramos la clase triangulo con el constructor y sus atributos privados
class Triangulo(object):
def __init__(self):
self.__a = 6
self.__b = 10
self.__c = 6
#metodo para calcular la altura y area de un triangulo e imprimirlo
def CalcularArea(self):
a = self.__a... | [
"noreply@github.com"
] | benpulido21.noreply@github.com |
0fd7e4600c1f60ad50ddd026cfbcf63facd62174 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2019/IdentifierReference[0,0].EarlyErrors.spec | 83d1d21d575792c488f8b800f94658ad98179c23 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 316 | spec | <li>
It is a Syntax Error if this production has a <sub>[Yield]</sub> parameter and StringValue of |Identifier| is `"yield"`.
</li>
<li>
It is a Syntax Error if this production has an <sub>[Await]</sub> parameter and StringValue of |Identifier| is `"await"`.
</li> | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
cd3fe391a3c4e68535080180aaa0f1eeff2ee745 | 4a4a4653bc70bb25241c532307e8fbb2142fee92 | /helloworld.py | bac76f0f7208476e12978f924dd2f1c2c564d4b7 | [] | no_license | v202009/PROG1700-basics-demo-da | 4830daa5792fe3eb0e43fa7f6e29d9d91d3f510a | 7a7e2e1863843bde4482e642de9f245e8eee79d8 | refs/heads/master | 2022-12-17T14:48:12.920194 | 2020-09-22T14:54:49 | 2020-09-22T14:54:49 | 297,675,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | print("Hello World!")
print("Hello, again!")
print("Goodbye...")
| [
"w0432542@nscc.ca"
] | w0432542@nscc.ca |
1b3b2b81385f029cf071465b5a67afbfcc29d78e | 5de16bedbdabbd552dcebdeec3d2be30b59c80e3 | /Array Partition I/solution.py | 7d7a8e6875fca546f93cf66fffa754e5d02d2abf | [] | no_license | kimjaspermui/LeetCode | 39f6aa61a27e7bf2aac7de940941ec376f3640e8 | c01002206fcc1b3ed35d1ba1e83dffdff5fc16a5 | refs/heads/master | 2020-12-02T07:51:49.508145 | 2018-07-15T04:21:48 | 2018-07-15T04:21:48 | 96,737,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | class Solution:
def arrayPairSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# sort the list first
nums = sorted(nums)
# get the sum by pairing them from the left
tempSum = 0
for i in range(0, len(nums), 2):
... | [
"kmui@ucsd.edu"
] | kmui@ucsd.edu |
40468665411f90fee120f8434b3ccd804495257c | 66d25596e2165da03a40e6f31c59789d27d71572 | /ban/commands/auth.py | e89df21f79ef2f27edbe8cdc087963ab72e72c8b | [] | no_license | christopheprudent/ban | 72336bfaf1e5bc24477f00ada2aa1bd37c12d614 | 187a2e7719cb2d7ef64a35c22975cea3686097bb | refs/heads/master | 2021-01-18T11:23:38.890962 | 2016-05-11T16:39:42 | 2016-05-11T16:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from ban.auth.models import Token, User
from ban.commands import command, reporter
from ban.core import context
from . import helpers
@command
@helpers.session
def dummytoken(**kwargs):
"""Create a dummy token for dev."""
session = context.get('session')
Token.delete().where(Token.access_token == 'token'... | [
"yb@enix.org"
] | yb@enix.org |
8a57fcfb46d097525f0644f0772dd6101d30b6e8 | 491727fd417d9012055601b322a2a85ae0f09fa7 | /quoteShare/main/urls.py | 6e55634ce2ed20f5264a3adb439c327eba0655d3 | [] | no_license | neumeye9/quoteShare | 77f49e393a4744a7b2314dec6664bf51be32155b | 796e9c8d1806f2cfa08e72a9b4e4417ac001880d | refs/heads/master | 2021-06-28T04:14:02.274981 | 2017-09-18T16:49:42 | 2017-09-18T16:49:42 | 103,965,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"noreply@github.com"
] | neumeye9.noreply@github.com |
2429dd6e0f7ede974b1e9f1a3904282d0dd48edf | 5c89de8b2b6ceaabd7c094514fd96440577a4347 | /profiles/phylosift_gene_filter.py | 4c2f80e0a7d27a301d9e03467a6b8269375a6010 | [] | no_license | Ecogenomics/PhylogeneticM | 0d959d1bfc6b5abf8a112efd2a45114d22a6ee38 | 463243f5e02a32d0427dca784c9c20bb264a07f6 | refs/heads/master | 2020-06-03T13:59:50.113576 | 2013-03-11T06:06:30 | 2013-03-11T06:06:30 | 5,761,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,272 | py | import os
import sys
import psycopg2 as pg
import xml.etree.ElementTree as ET
import common
valid_configs = [('individual', type(None), "Create individual FASTA files for each marker instead of a concatenated alignment."),
('taxonomy', type(''), "Filter for organisms with this taxonomy (internal geno... | [
"a.skarshewski@uq.edu.au"
] | a.skarshewski@uq.edu.au |
0262980918b061d33ebd285f6a64c74430421acf | d08f165c3dc46a8736588306e9e7c8964e22c7f8 | /Inheritance_practice.py | 155a3ae4a096145cf5aafda3763306bafce8a401 | [] | no_license | vermadev54/Python-oops | fa2b12389612cd222852041e8d76792d57ebee68 | d1a1d44117c34efa950b2397718d10d5ef268e86 | refs/heads/master | 2021-07-12T05:23:31.785691 | 2020-08-16T06:37:15 | 2020-08-16T06:37:15 | 192,698,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | class student(object):
__city="patna"
def __init__(self,name,email,roll,father_name):
self.name=name
self._roll=roll
self.email=email
self.__father_name=father_name
def __str__(self):
return "{},{},{}".format(self.name,self.roll,self.email)
def __gat_father_name(s... | [
"kumar"
] | kumar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.