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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bfb54dc4cbe9b33ff4cf3b60028b65ef2ef074d | f34fef9e6ca75155ea14ea27807928c922b992cd | /resources/data/aces_1.0.3/python/aces_ocio/utilities.py | 12782d302b523ff947c148cf204a62dae504318e | [
"MIT"
] | permissive | Monsho/D3D12Samples | e86922b1e1fe300e9ecce8bcdf82856c028bff25 | 37aa7820fc5f1e711864a298322f03079f5d0fbc | refs/heads/master | 2023-01-05T21:49:23.538365 | 2022-12-20T23:26:42 | 2022-12-20T23:26:42 | 80,517,339 | 47 | 7 | null | null | null | null | UTF-8 | Python | false | false | 7,571 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines various package utilities objects.
"""
from __future__ import division
import itertools
import os
import re
from collections import OrderedDict
import PyOpenColorIO as ocio
__author__ = 'ACES Developers'
__copyright__ = 'Copyright (C) 2014 - 2016 - ACES Dev... | [
"cinderella.cage@gmail.com"
] | cinderella.cage@gmail.com |
179c039c28e0cfe0de7e338e59e0ee164eb8b987 | f2098afb99c02f86bd27d890475e52ab6e81b10b | /crypto_web/wsgi.py | 738d809a3e4d63c0791d0bb41b9cca238ea62d83 | [] | no_license | samfoxcode/Cryptocurrency-Trading-Website | 544d4bf89aee242e32e9540fad20bd7c696a362b | 99f9baaed10a0228db0078d3905471a8d512f9f9 | refs/heads/master | 2021-09-13T09:12:20.373582 | 2018-04-27T15:54:13 | 2018-04-27T15:54:13 | 117,155,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for crypto_web 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"samf1596@gmail.com"
] | samf1596@gmail.com |
fbbbc52eab2329bda34461328893fba1754e20a0 | 70934fe6d0feed93994a98650a543832897e69ae | /sinaweibo.bak/weibo_factory.py | 95cfe4e1548a4d14a120107301c0a8c022bd7623 | [] | no_license | zy-sunshine/sunblackshineblog | d1d3f0f69d6b8c006e70a0601bc0d520ec5002bb | ea7d1e2f8477a238501cecf8e63fd3d7a2a945c9 | refs/heads/master | 2021-01-01T16:19:52.954701 | 2011-10-29T17:12:59 | 2011-10-29T17:12:59 | 2,570,586 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,878 | py | #encoding=utf8
#file:weibo_factory.py
#@author:carlos
#@date:2011-2-13
#@link:tieniuzai.com
from weibopy.auth import BasicAuthHandler
from weibopy.api import API
class SinaWeibo:
def __init__(self,username,password):
self.username = username
self.password = password
self.source ="app key" #在申请新浪微博开发者帐号并创建应用后获得
... | [
"zy.netsec@gmail.com"
] | zy.netsec@gmail.com |
fb9989e05ebcb95404af967bb7c263091849833b | 8f4bba3960f7ded3a84cd3482193721eeab1ceec | /tooff/13调整数组顺序奇数在偶数前.py | 706c59df28a2a91595b15d9d236fe2d9d91da16e | [] | no_license | zahidzqj/learn_python | 1e49b5faa34c0ed1bd1b3816fb9a3a8e094d7a4f | d272a2bd8ec9dea4c6edfd8faaf763bb13962348 | refs/heads/master | 2021-05-27T09:21:58.171999 | 2020-11-24T07:41:30 | 2020-11-24T07:41:30 | 128,086,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding:utf-8 -*-
'''
把数组分为两部分,组合起来
'''
class Solution:
def reOrderArray(self, array):
res1 = []
res2 = []
for i in array:
if i%2==1:
res1.append(i)
else:
res2.append(i)
array = res1 + res2
return array
a = Solutio... | [
"920086481@qq.com"
] | 920086481@qq.com |
b027b0187d76b9df394d92412e8360f628ea0efd | 0a21cd04a2385889e5c89c35b081960cc33bc36c | /practice1/IfElseElIfExample.py | b55a5562187d01e0eb379b6353baa0264b2cc3c1 | [] | no_license | knagesh9841/PythonMarch2020 | f914111b75f7f5fccb5fa91ad1b1300c51f4b51c | a8deba81cc9565fbe701b7cdafe1c94e175638a2 | refs/heads/master | 2022-11-11T06:38:58.823454 | 2020-06-10T18:09:57 | 2020-06-10T18:09:57 | 262,742,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py |
Number = int(input("Enter User Input"))
if Number == 1:
print("One")
elif Number == 2:
print("Two")
else:
print("Wrong Input")
# One line if statement
if Number == 1: print("One")
# One line if else statement
print("One") if Number == 1 else print("Wrong Number")
# Nested If
Number = 41
if Number... | [
"knagesh9841@yahoo.com"
] | knagesh9841@yahoo.com |
e2d5d8d090aaa5e2cd9b747edc034a82d1127e9a | 80d6f8ac402be590ca217c1da43254cbc65ec363 | /tests/test_api.py | d4df669d3f694f977e4b3f7d9cdb014130600e8b | [
"Apache-2.0"
] | permissive | mmilenkoski/mlbench-core | 7c1dfcff17b7ad4d1c0f600c98424f1e1456c1bb | d8309379de3ad1731660f7963495f8d160bbdb2a | refs/heads/master | 2021-03-01T20:44:39.352068 | 2020-01-21T14:32:24 | 2020-01-21T14:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,661 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `mlbench_core.api` package."""
import pytest
import datetime
from mlbench_core.api import ApiClient
@pytest.fixture
def kubernetes_api_client_node_port(mocker):
mock_client = mocker.patch('kubernetes.client.CoreV1Api')
mock_client.return_value.list... | [
"ralf.grubenmann@gmail.com"
] | ralf.grubenmann@gmail.com |
da211621da6e551f24f04cd2363e93f9caa9b3a0 | aaaaaad35d89034aebd53a46925ac24db8fafd67 | /chess/checkfunc.py | b700eda88fe6ff2d969d253adf94babd78b237ec | [] | no_license | SajadR2000/chess | 003179285d82d0b06fd61513060ab00c5e5224db | 0ee878c250b40829ae06db659765df33025e3d9f | refs/heads/master | 2022-09-21T13:10:15.288823 | 2022-08-31T07:39:34 | 2022-08-31T07:39:34 | 196,441,158 | 0 | 1 | null | 2020-08-04T10:34:28 | 2019-07-11T17:48:27 | Python | UTF-8 | Python | false | false | 16,811 | py | import Piece
import board
def searchpiece(x, y):
for i in Piece.pieceslist:
if i.currentx == x and i.currenty == y:
return i
return 0
def searchsquare(x, y):
for i in board.squareslist:
if i.x == x and i.y == y:
return i
return 0
def check(... | [
"noreply@github.com"
] | SajadR2000.noreply@github.com |
9ca59564e469220e213a2fdc8a9aaeafe0aa7443 | 2a0670440263fd18454c38a4b0758ecc8edea480 | /bin/experiments.py | fb16c75a7fb72280a74258a687bed768ddc832f0 | [] | no_license | Foolius/recsyslab | 4776e79338d6edb9a84d910da05ef3f95baa5891 | b01698c180cb86baa97394f7b3b51e3c849847cb | refs/heads/master | 2020-12-24T14:52:57.761966 | 2014-01-28T14:21:36 | 2014-01-28T14:21:36 | 8,237,819 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,730 | py | import util.reader
r = util.reader.stringSepReader("u.data", "\t")
internalID = r.getInternalUid("196")
import util.split
trainingDict, evaluationDict = util.split.split(r.getR(), 1234567890)
testMetricsList = []
import util.test
testMetricsList.append(util.test.hitrate)
testMetricsList.append(util.test.precision)
t... | [
"Foolius@server.fake"
] | Foolius@server.fake |
ed3ef4adb8c67b6a07c36f3560134f91d7de49d8 | 6f74aa95c41b88b87cfb971f7d5f50584a14a7f3 | /1 course/Lab6(массивы)/Lab6(2)без дурака.py | 28e3e0730c1cd52ae17eebef996ac3236d8aba7f | [] | no_license | tursunovJr/bmstu-python | c70332f83174d99274f9e296c1cbaf040486d386 | 9899082013fa87699e2a683fe68c6b9c12156815 | refs/heads/master | 2022-05-22T10:20:56.201921 | 2020-04-25T21:23:56 | 2020-04-25T21:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | a = list(map(int, input('Введите элементы массива: ').split()))
for i in a:
if i < 0:
a.remove(i)
print('Количество отрицательных элементов: ', len(a))
| [
"mr.jasur09@mail.ru"
] | mr.jasur09@mail.ru |
71cf86c96f1ba847636eea61053d0a0c4d035bb1 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/host_pool.py | c86dab27732d65d459e1b272f33ec2f1fec05f50 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,255 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
ea921a941fb058f4fb9cd37d24ba7abe103c2f09 | d52601b4998555131244532a4210c6df4100a308 | /env/bin/celeryd | 21e034cbbeb7990f3671ecc99893ae5ba94acef4 | [] | no_license | yuyude54/axf1813 | d87bd0d5b4adeafff55949d4ce917b525afa60e3 | 96db328a7b85ba1a19337f8d7c290ca270fefdd6 | refs/heads/master | 2020-04-07T08:39:25.702588 | 2018-11-19T13:19:28 | 2018-11-19T13:19:28 | 158,222,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/yubin/axf1813/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import _compat_worker
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_compat_worker())
| [
"2435361886@qq.com"
] | 2435361886@qq.com | |
971c4baea9d08b0ddc5e90e340dd81be98b65aa9 | d82ac0c5732ffb474dd10ee22fd2fad6f0095760 | /create_data.py | e60cafd93ab3a7a4a1079c026fc9b1bfe108884f | [] | no_license | arp1561/gender-recognition-opencv-python | b23d3b6f5bce5d4061c93d9ef5835ece56e2571e | ffb9eea844118855a49e85ef23924394a5c154b7 | refs/heads/master | 2021-01-13T11:57:26.317109 | 2017-02-12T08:04:29 | 2017-02-12T08:04:29 | 81,705,351 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import pandas as pd
from os import listdir
from os.path import isfile, join
import numpy
import cv2
csv = pd.read_csv("data_path_female.txt",delim_whitespace="",header=None)
csv1 = pd.read_csv("data_path_male.txt",delim_whitespace="",header=None)
images_path,labels = csv[0],csv[1]
image_list=[]
label_list=[]
for i ... | [
"joshiarpit2@gmail.com"
] | joshiarpit2@gmail.com |
49d37cc7feb53eca058890a9769b9f2baf24e94b | 560822e14d86d3748b708c674bfba364f469a885 | /nmap.py | 6bef89dd78e4ece94516528dfc72b778c51edd40 | [] | no_license | Moein-Ataei/Website-Scanner | 37a3f2095285e0c24b51a2b323ad37be3987daa7 | 99fd3d91858a76485d34f230e87359c3e795961f | refs/heads/master | 2020-12-08T15:01:46.141685 | 2020-01-10T09:20:52 | 2020-01-10T09:20:52 | 233,011,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import os
def get_nmap(option, ip):
command = f"nmap {option} {ip}"
process = os.popen(command)
result = str(process.read())
return result
# print(get_nmap('-F', 'localhost')) | [
"moein.ataei@gmail.com"
] | moein.ataei@gmail.com |
92fb28f8d18a6dbf993bb9a9bced8f2b69a508ca | 10c2ba04e502004e2df0dfb6c70fb83daccc1b30 | /Django/example/05-choice-field/main/editors/forms.py | eff290bbaf2f5b25b5877fc758cf4ca6d68ec0d7 | [] | no_license | yakenohara/KnowHow | 5e79d0015220524f98d9f7c767d2a727534b612d | ccd2aed2d4bf9363136aa30778b5adf382b25c4d | refs/heads/master | 2023-04-05T09:37:14.612262 | 2023-03-26T05:56:40 | 2023-03-26T05:56:40 | 136,476,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from django import forms
from .models import Editor
class EditorEditForm(forms.ModelForm):
class Meta:
model = Editor
fields = (
'name',
'sex',
)
| [
"38835246+yakenohara@users.noreply.github.com"
] | 38835246+yakenohara@users.noreply.github.com |
1f0a1563ab3144ee7205b5b9bead598f298ef4cb | 3aa698ea22a7c2328f8c3302d603fa2bf6825187 | /evennia/evennia/utils/inlinefuncs.py | b548d317d2f7ae738e924c8bcb84860ff9775166 | [
"BSD-3-Clause"
] | permissive | frastlin/iacs-map | 19a28c9eefd0237fc1c1fcc6a5d87b7f592e0b43 | a8b4f740ae3d94a0e1fc51e57475080e4bc97155 | refs/heads/master | 2020-03-21T16:31:55.356494 | 2018-12-15T21:15:40 | 2018-12-15T21:15:40 | 138,775,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,220 | py | """
Inline functions (nested form).
This parser accepts nested inlinefunctions on the form
```
$funcname(arg, arg, ...)
```
embedded in any text where any arg can be another $funcname{} call.
This functionality is turned off by default - to activate,
`settings.INLINEFUNC_ENABLED` must be set to `True`.
Each token s... | [
"brandonkeithbiggs@gmail.com"
] | brandonkeithbiggs@gmail.com |
1b167d908b1dbbae705befe87ecfb250c84f4b2a | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14606.py | 992a0ac036c6de7ae67a625b61486cbe6bb0fc17 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # keep a Python script running even when the user tries to exit out
.pyw
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4a2435dd1d2068244ea66fe23eb0cfd0985512d4 | 86fff122087c37b56fb70bdd114b83b1f121b45d | /glazing/migrations/0015_auto_20161113_2246.py | 59aaa2a66942b7450ab120ab423a99b9e0063a50 | [] | no_license | frankDock/pg_calculators | 034e34127a64fba806b20efac724ac7befaf64ea | 0b367b8b9ce4822c26974dda56e8e8cc4bd77187 | refs/heads/master | 2021-01-12T09:58:30.272561 | 2016-12-21T14:42:47 | 2016-12-21T14:42:47 | 76,320,179 | 0 | 0 | null | 2016-12-13T03:46:05 | 2016-12-13T03:46:05 | null | UTF-8 | Python | false | false | 2,717 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-13 22:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('glazing', '0014_auto_20161113_2227'),
]
operations... | [
"alon@schematech.co.za"
] | alon@schematech.co.za |
918bf5948ed9490633028cdeed9ea000c19a2374 | 560af8e32aa77bfb6c5d837e93d0dc2dd7c9142c | /client_project/wsgi.py | fec9bea087df286ce54366f90bbc4c61b4f9094f | [] | no_license | anirudhasj441/Fake-Api | c7a4aef6bf9eadc16709fe10f4cd3b526664cd4e | 86b6e496cbecf314ef6e6366a84b8f93ce7c775b | refs/heads/master | 2023-06-26T00:00:00.914657 | 2021-07-29T06:35:39 | 2021-07-29T06:35:39 | 390,625,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for client_project 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('DJANG... | [
"anirudhasj441@gmail.com"
] | anirudhasj441@gmail.com |
e4a88b54323db57cc2d1b09b8b6560d91291a6cd | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /administration/migrations/0011_auto_20161109_1845.py | fad5aaa70cdd3596ffe76dba25b75bc51d8583f1 | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-09 18:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('administration', '0010_auto_20161109_0552'),
]
operations = [
migrations.Al... | [
"madison.scott-clary@canonical.com"
] | madison.scott-clary@canonical.com |
d1daee1c0acbc6e0cea9838cfe90cf7fead22e95 | 369cef5dae249cad45ef8596fa074d21a340487e | /client1.py | fd97e2a884947f6a6ad245e043fba4ab2d564f7a | [] | no_license | Maimoi/Socket-Programming-in-Python | a2122804383f5683fb7b5f55183e77790ff558b4 | cf4a018d9b83c8b5fb60a5302cf8d3555148befd | refs/heads/master | 2022-12-30T06:06:31.881250 | 2020-10-08T21:35:01 | 2020-10-08T21:35:01 | 302,271,274 | 0 | 0 | null | 2020-10-08T21:35:02 | 2020-10-08T08:02:18 | Python | UTF-8 | Python | false | false | 505 | py | import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((socket.gethostbyname('localhost'), 1024))
complete_info = ''
while True:
#take only 7 bytes of the message from the server
message = s.recv(7)
#if the length of the message is less than or equal to 0, jsut break the loop
if... | [
"himohit1990@gmail.com"
] | himohit1990@gmail.com |
32fa0e6e401ac5dbe8faf7da29ea2fd5c036a071 | 906652e6b39282668cd849f707454ac6e43952f9 | /inclass/quiz1.py | d36b6b754abda32499c73a7d049ec76b155f4a3e | [] | no_license | keenanzucker/SoftDesSp15 | 4de8d332be38ffed9d3a16fa2c02ac6f4c8fd038 | 5b6a9fee718107570b8c2f4ae1200192131f45a5 | refs/heads/master | 2021-01-20T23:36:47.714656 | 2015-04-02T17:36:56 | 2015-04-02T17:36:56 | 30,047,147 | 0 | 0 | null | 2015-01-29T23:46:20 | 2015-01-29T23:46:19 | null | UTF-8 | Python | false | false | 612 | py |
def filter_out_negative_numbers(inputList):
finalList = [];
for i in inputList:
if i >= 0:
finalList.append(i)
return finalList
#filter_out_negative_numbers([-2.0, 5, 10, -100, 5])
def in_language(word):
if word == '':
return True
numA = 0
numB = 0
for i in word:
if i == 'a':
numA += 1
... | [
"Keenan.Zucker@students.olin.edu"
] | Keenan.Zucker@students.olin.edu |
8e71cbd0f6db70a670e50a0557ef9547ac264f2d | a0c076b23d0462d038e7986497a47c2f602b1301 | /locations/models.py | d01dcf811b9659dc002650ce46c71ba8aec3b357 | [] | no_license | georgemitchell/wedding | 2159b0d2e11d50a3dbb8087d34d3fdbb8f3f0e05 | 192ec741cda49e27395d2b01f7a919ab9bbadd15 | refs/heads/master | 2022-08-28T12:13:14.332909 | 2021-06-06T05:36:52 | 2021-06-06T05:36:52 | 74,855,909 | 0 | 0 | null | 2022-08-11T14:55:32 | 2016-11-26T23:19:33 | JavaScript | UTF-8 | Python | false | false | 2,593 | py | from django.db import models
class Location:
class OldMission:
id = 1
name = "Old Mission"
static_image = "om_square.jpg"
class TraverseCity:
id = 2
name = "Traverse City"
static_image = "tc_square.jpg"
class Leelanau:
id = 3
name = "Leelan... | [
"george@circos.com"
] | george@circos.com |
0aef257107cc557b028a68b2632535b522c6d2fe | 9107d8bc72e45c0c6e7942e1abb47a2c7cee38af | /mplfinance/_version.py | 109f75a8d782b9e088db1c1d9c6c7dbf09611712 | [] | no_license | rbd72369/tradier-options-plotter | ef549067f2a8511e538dbfe966078b5314737a8a | 55125e37103de2d33d65f6d52fb7baea42a782fa | refs/heads/master | 2023-02-13T19:00:18.628193 | 2021-01-09T22:07:43 | 2021-01-09T22:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
version_info = (0, 12, 7, 'alpha', 1)
_specifier_ = {'alpha': 'a','beta': 'b','candidate': 'rc','final': ''}
__version__ = '%s.%s.%s%s'%(version_info[0], version_info[1], version_info[2],
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))
| [
"teddy@teddyrowan.com"
] | teddy@teddyrowan.com |
c94ad6cb9b33cd88f9403e07d6b4521d00c538a1 | b2eeda79302d04e1391ffb40fdd83de53f6b54ef | /app/user/serializers.py | a652350a1a68061fbfa1f0afb9a8e322b53ab9c4 | [
"MIT"
] | permissive | Memo2704/recipe-app-api | 7c7286140ab17d5cf83d93216ffb74de9a3b19c2 | 91b441065547991a8027cbe1496aaf5795d56a49 | refs/heads/main | 2023-05-04T08:19:07.306969 | 2021-05-24T16:56:11 | 2021-05-24T16:56:11 | 334,730,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_model()
fields = ('... | [
"tony.arteaga27@gmail.com"
] | tony.arteaga27@gmail.com |
b757835772edf23d3477770560bbe95cf15110f8 | bf7959048edc0005e04431a0864c719adc5ea9ea | /Contests/weekly/295/D.py | 5cdedcb03259b39f36791adb5099072be5de8d27 | [] | no_license | Yohager/Leetcode | 7c24f490cfa5fd8e3cdb09e5a2305a134a064a93 | 585af82ff2c2d534053f6886714406019ed0c7d1 | refs/heads/master | 2022-12-07T23:51:16.347174 | 2022-11-28T02:30:53 | 2022-11-28T02:30:53 | 178,201,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Solution:
def minimumObstacles(self, grid) -> int:
# 0-1 bfs
m,n = len(grid), len(grid[0])
dist = [[inf]* n for _ in range(m)]
dist[0][0] = 0
q = deque([(0,0)])
while q:
x,y = q.popleft()
for dx,dy in [(1,0),(-1,0),(0,1),(0,-1)]:
... | [
"yohager@MBP-YHWVM7JCVJ-0141.local"
] | yohager@MBP-YHWVM7JCVJ-0141.local |
b0173056cf09e20ef265ae0bf916c84bfd972b1a | 86cd22354f2431087c9b3ff06188f071afb3eb72 | /383. Ransom Note.py | cf3b994fb40efd594dc1c7d269120b8b5583c390 | [] | no_license | tlxxzj/leetcode | 0c072a74d7e61ef4700388122f2270e46c4ac22e | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | refs/heads/master | 2023-08-31T11:04:34.585532 | 2023-08-31T08:25:51 | 2023-08-31T08:25:51 | 94,386,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution:
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
letters = {}
for c in magazine:
if c in letters:
letters[c] += 1
else:
letters[c] = 1
for c in ransomNote:
if letters.get(c, 0) == 0:
... | [
"tlxxzj@qq.com"
] | tlxxzj@qq.com |
d2c1ee090b37997f129b27b79778b792d6a6c6c6 | 923fa865d84c3760e1cd8116e1d698d245d547ac | /script_with_probs.py | cbb31f968abe7aa413e4a6def66ba850761016be | [] | no_license | joyceChu2020/files_backup | 4e489c773c0b75aa21b9a75b444aa24e0df26653 | 1c63602752529734130097a99836f278e8941611 | refs/heads/master | 2023-01-11T06:03:24.847256 | 2020-11-12T21:34:58 | 2020-11-12T21:34:58 | 263,699,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import os
import shutil
import hashlib
inputpath = 'Y:\\hypercapnia'
outputpath = 'C:\\Users\\me\\backup\\hypercapnia\\'
file_str=['.raw', '.dcsraw', '.bin', '.txt', '.pdf', '.doc', '.docx']
for dirpath, dirnames, filenames in os.walk(inputpath):
for filen in filenames:
if os.path.splitext(filen)... | [
"noreply@github.com"
] | joyceChu2020.noreply@github.com |
b307447339363ba5a9bc02068f4df4126d5e6527 | bb824786f095fbf6e6cf627ef9c04afdb5152477 | /apps/pages/migrations/0013_partnerspage.py | e96243788314b36b0fda1ef2712514fcbd92c772 | [] | no_license | Emilnurg/anas.ru | 19000063c7db98c15261056bb9590382db362d42 | 20cee1aee02da192c9c79a51bd0898c1dba0c98f | refs/heads/master | 2021-05-20T12:09:08.155749 | 2017-12-26T13:49:12 | 2017-12-26T13:49:12 | 252,287,670 | 0 | 0 | null | 2021-03-31T19:34:29 | 2020-04-01T21:10:48 | JavaScript | UTF-8 | Python | false | false | 6,865 | py | # -*- coding: utf-8 -*-
# flake8: noqa
# Generated by Django 1.10.7 on 2017-06-08 15:27
from __future__ import unicode_literals
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0012_auto_20170531_1612'),
]
... | [
"wizzzet@gmail.com"
] | wizzzet@gmail.com |
d3d7772cbfdea6a07bffb594754b9505868e02e8 | 21160696434c4f0a449be88f3228bfdc02146ab8 | /RotatingWheels/ParaPostPro/Macros/Screenshots1.py | 91fc0bacc8b7a1e95bafb4cbc61a735d1bb801f4 | [] | no_license | olaafrossi/CFDRuns | 00a456bad257714643fb7c1304a1e33a3d5cce31 | 0928b4d0d77210fd2bbcd5175fce0a1a5724e3a4 | refs/heads/master | 2023-06-12T09:10:44.364992 | 2021-07-07T02:07:40 | 2021-07-07T02:07:40 | 161,521,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,487 | py | #### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# Create a new 'Render View'
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [2094, 1162]
renderView1.AxesGrid = 'GridAxes3DActor'
r... | [
"olaaf.rossi@gmail.com"
] | olaaf.rossi@gmail.com |
71c44b270f1029386b8c8079cc4f51467a806a60 | 8690ca0028c54b62d68badf1753fc6151ae03525 | /Part3 Levels of Aggregation/esem_data/Act/tpot_mnist_pipeline_triangulateAggregationLevelParticipantSplitaggr_5_groups7.py | d83ecdf48b217bda826b409cdf96307576b5488a | [] | no_license | brains-on-code/conducting-and-analyzing-human-studies | fd74ee77fdc56cc61bdc1e0cf9bf423780f5dddc | 548e7443f4d2bdb2db1f2858289b7d3518593c59 | refs/heads/master | 2021-06-26T21:30:56.386121 | 2020-12-22T13:49:16 | 2020-12-22T13:49:16 | 195,975,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = p... | [
"fmriml@fmriml.com"
] | fmriml@fmriml.com |
777f5a7ae56cf785c70587fe44546dc3acddc9d1 | 763384b199bc62b8e8bc941b4fd9b070813092ed | /EightPuzzle/successor.py | deffdf34637bb3dfe1e17bb2599e8cb740ac3b80 | [] | no_license | bungerm/portfolio | 56c464d546527207aab5052c98fead03e241f8e5 | a4fc3c97f43a15791e8ba51863ea8d0652d5fc30 | refs/heads/main | 2023-07-27T20:16:23.395022 | 2021-09-10T14:54:00 | 2021-09-10T14:54:00 | 326,769,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | # Successor Function
# CSC 480 HW1 - Search
#
# Description: The Successor function for the Modified Eight Puzzle.
# Takes a Node and exapnds it, returning an array of child nodes.
#
# See main.py for further details
from node import Node
def GetSuccessors(n):
successors = []
currentState = n.state
up = True
... | [
"bungerm42@gmail.com"
] | bungerm42@gmail.com |
cd5bdfb1fea846237b9755b1fbbca43280bebf1a | 747df35379e741159955673f0eb02672f79fb863 | /data_loader_module.py | 62b68e7d2f39c862edb642f6751d11af94bd514d | [] | no_license | sharax/ECE_143_Group_11 | 782f11dfc28af8959e89d788a554429254f2b369 | a0e20b0eca537d7e59d326225722bb08d851586b | refs/heads/master | 2020-04-21T11:12:28.138124 | 2019-03-16T05:14:58 | 2019-03-16T05:14:58 | 169,515,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py |
# coding: utf-8
# # Data Loader
#
# Module for loading the .csv file that contains the player attributes into a pandas dataframe
# In[1]:
def load_data():
'''
Loads the player_attributes.csv file into a pandas dataframe and returns the dataframe
Returns:
player_attr_dataframe (pd.DataFrame)... | [
"noreply@github.com"
] | sharax.noreply@github.com |
7de2a615a19cb1d00955dde84742ec07a817d152 | 1e7d44d4de59c8588f932897efa68168bf57338e | /FSD/uint64.py | b162930bd6ce6fa71d79077bffa224ebe22af851 | [] | no_license | SkyToGround/SimplePythonKafkaConsumer | 413993436753f740d0906c3406c4e09962039403 | 7f180a5c5413d6bfe1d5aa89c482d9ed66945ffd | refs/heads/master | 2021-01-09T05:40:37.768416 | 2017-03-17T16:08:23 | 2017-03-17T16:08:23 | 80,808,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FSD
import flatbuffers
class uint64(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsuint64(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = uint64()
... | [
"jonas.nilsson@esss.se"
] | jonas.nilsson@esss.se |
e9a8837c8a88cc74bd105f491189015ff3bc4815 | 5218b6c657a9ce92ca3a6ba330cc5fcf38f7ebd8 | /listing2-1.py | e706f76773ad0a260d510324991948d6ce16fe4d | [] | no_license | Sterlingclark/python_project | 918a307ea7b9e1bd8a6fd03487d953f2f0649650 | ee1775affc68ae09e4829f5b9c2a63bde08541e2 | refs/heads/master | 2022-07-30T20:52:39.891049 | 2020-05-23T17:47:22 | 2020-05-23T17:47:22 | 261,255,786 | 1 | 0 | null | 2020-05-20T23:30:43 | 2020-05-04T17:48:21 | Python | UTF-8 | Python | false | false | 174 | py | room_map = [[1, 0, 0, 0, 0],
[0, 0, 0, 2, 0],
[0, 0, 0, 0, 0],
[0, 3, 0, 0, 0],
[0, 0, 0, 0, 4]
]
print(room_map)
| [
"sterlingdclark13@gmail.com"
] | sterlingdclark13@gmail.com |
9b8b6f9bda493cd1e8800f462021606cf91863d6 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /apps/sms/serializers.py | 4d653e2794abcb0dbb3ce297e9d2919f02b8d8f4 | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 207 | py | from rest_framework import serializers
from .models import SmsRecord
class SmsRecordSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = SmsRecord
fields = '__all__' | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
085504951890593b601aa0c70e56a87877e7ca10 | ae6cc0597c73d63885e0f54a4cbe9a16142e824e | /django_projects/mysite/ads/migrations/0003_auto_20210130_0000.py | fdbcd6c992bd8ad0d639ec2fc204cc84c1011801 | [] | no_license | fedeginer/paw | 4e97ee13baffb64f9c75caa7beffb02b468f6842 | 90453729931079c3d893c51ac614fa6c7cc5f7ee | refs/heads/master | 2023-06-09T03:59:57.560543 | 2021-06-21T17:58:40 | 2021-06-21T17:58:40 | 379,011,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | # Generated by Django 3.1.4 on 2021-01-30 00:00
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"fedeginer@alu.comillas.edu"
] | fedeginer@alu.comillas.edu |
ccf6506cd94b33554464a83feb3802c05dd8b2a6 | 78d5ed168b813886fcd4516c90f122ae54f793db | /Leaning/NLP_project/BiLSTM-CRF命名实体识别/Batch.py | ffd48ef8749c2292bc494152a40466379433be95 | [] | no_license | LiaoBoWen/MyProject | 9919272c323d33a435eaa9f989ac73c058410e5b | 648fa01a0f0be1ace4b4b233822ccd2107ab0897 | refs/heads/master | 2020-07-21T07:55:29.301575 | 2019-11-02T03:28:19 | 2019-11-02T03:28:19 | 206,782,221 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import numpy as np
class BatchGenerator:
def __init__(self,X,y,shuffle=False):
if not isinstance(X,np.ndarray):
X = np.asarray(X) # 当原X发生改变,X的输出也会跟着变
if not isinstance(y,np.ndarray):
y = np.asarray(y)
self._x = X
self._y = y
self._epochs... | [
"1506349457@qq.com"
] | 1506349457@qq.com |
6114876cf3210e58b52e230be83c6c00913d2780 | 8393379be9ffd1ad803e401b846e143865cc0af3 | /Python/UseCase/列表表达式.py | 1c9f403e2f43142dd9a4f8dfebcc9cafe7d70aa6 | [] | no_license | weepwood/CodeBase | 406ce4195ede8bebc08a2c53e2a4a85e2e418e4e | a22bab83706d8c64941fe2ccd1b07f83900cf255 | refs/heads/master | 2023-07-15T22:11:27.387335 | 2021-08-25T03:09:57 | 2021-08-25T03:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | fruit = ["apple", "pear", "orange", "banana"]
# 全部替换为大写
for i in range(len(fruit)):
fruit[i] = fruit[i].upper()
print(fruit)
# 使用列表表达式全部替换为小写
fruit = [x.lower() for x in fruit]
print(fruit)
# 过滤首字母为 a 的字符串
filtered_friut = []
for f in fruit:
if f.startswith("a"):
filtered_friut.append(f)
print(fil... | [
"1379978893@qq.com"
] | 1379978893@qq.com |
b7750a59ddd97731a3db15d7ff43b162bbc4a22b | b9ca99a0244e5d5a07e0b27be8192ad01c4eda6c | /EIP/EIP系统所有流程.py | fad26b441598bfd879662694afe6d03b21d1d15c | [] | no_license | Boomshakal/spider | c3fdbf18f874ec9953509e4ce984b5476d25839f | e6779a3961f48325dd4992d88f88b8b3938225d7 | refs/heads/master | 2021-06-17T06:22:19.679444 | 2021-03-05T06:33:36 | 2021-03-05T06:33:36 | 154,489,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import requests
import json
from lxml import etree
url="http://eip.megmeet.com:8008/km/review/km_review_index/kmReviewIndex.do?"
maxpage=5
headers={
"Cookie": "j_lang=zh-CN; JSESSIONID=40ABBC9A619C5860068184B1E339BC4D",
"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chro... | [
"362169885@qq.com"
] | 362169885@qq.com |
807a3b762ecbaf87fb4b164464a47904c275b9eb | ebc52e685c7f2dda75e31d7d46baffd9f38e31d4 | /main.py | 910a00191bf5bc16f910031181b33666a0e0aad2 | [] | no_license | andreeabea/BrainTumorDetection | 0209cf75f04206ff13f9ed2775e25bd7fc4b2cb3 | c86906d622a0c97804f6a578c32413683f0e764d | refs/heads/master | 2022-08-21T03:49:14.642670 | 2020-05-25T20:40:34 | 2020-05-25T20:40:34 | 257,714,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | import unicodedata
import easygui as easygui
from imutils import paths
from sklearn.metrics import classification_report
import augment_dataset
import config
import cv2
import numpy as np
from init import testGen, totalTest, BS, trainGen
from tensorflow.keras.models import load_model
from plot_model import plotCo... | [
"andreea.beatrice2@yahoo.com"
] | andreea.beatrice2@yahoo.com |
c3e2f95860b1519ebb3718386bc321193130c0f1 | 507c0e2e30273e208a7a1dba9b95952f03421823 | /hello-robot/src/CounterLibrary.py | f6a4a47da152813be93d1220e875098091021bf3 | [] | no_license | emeraldgcube/ohtu-2021-2ndrepo | 1fa82d71184266780367c65ead683d4b1dc90fdf | c85e14d762f623c9a20f51461752640e211ceb6b | refs/heads/main | 2023-04-11T01:25:07.695605 | 2021-04-28T20:31:56 | 2021-04-28T20:31:56 | 346,433,084 | 0 | 0 | null | 2021-04-25T15:56:01 | 2021-03-10T17:11:44 | Python | UTF-8 | Python | false | false | 571 | py | from counter import Counter
class CounterLibrary:
def __init__(self):
self._counter = Counter()
def increase_counter(self):
self._counter.increase()
def increment_counter_by(self, amount):
int_amount = int(amount)
self._counter.increment(int_amount)
def reset_counter... | [
"parssinentopi@gmail.com"
] | parssinentopi@gmail.com |
5692e1461442776306fc415db227d24cb23bc350 | e89693a2906534fa4a9d180b404cb96751302e8c | /Timing_Panel.py | 40755d697cc5406b4f8fed9f34ce2b8208e85f42 | [] | permissive | friedrich-schotte/Lauecollect | e278e00692d109e98450c27502986673bf59db6a | acfc5afe34b4df5891a0f8186b8df76625afb51d | refs/heads/master | 2022-09-12T02:59:04.363963 | 2022-08-18T16:39:01 | 2022-08-18T16:39:01 | 186,062,944 | 0 | 2 | MIT | 2020-07-20T02:04:07 | 2019-05-10T22:42:26 | Python | UTF-8 | Python | false | false | 11,389 | py | #!/usr/bin/env python
"""
Graphical User Interface for FPGA Timing System.
Author: Friedrich Schotte
Date created: 2015-05-27
Date last modified: 2022-07-31
Revision comment: Cleanup: self.timing_system.sequencer, self.timing_system.composer
"""
__version__ = "7.3.3"
from logging import warning
from traceback import f... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
9830e776c8a42b181f01171abd5a4f8c4c70daff | 28d82ed890654afac17c1342d24f12676685624b | /ask/migrations/0010_universalquestionlike.py | 20f8480f6ae30dbfd2df43b74d678c52a5d26603 | [] | no_license | Kudusov/AskKudusov | dd6607c3d93f888577f616edf710122fd5b98094 | 8ef18b2f44e83aa9f0ad0fe330b740a9f5338790 | refs/heads/master | 2021-10-09T10:55:15.962534 | 2018-12-26T20:20:36 | 2018-12-26T20:20:36 | 112,365,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-06-14 01:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ask', '0009_universalquestion'),
]
operations = [
... | [
"qudusov98@mail.ru"
] | qudusov98@mail.ru |
14daa40d939878f3b3a2561eb401d6d5569a7094 | b7f2fd7651d264e2846b7425570f62e8530fb398 | /GifBiscuit/settings.py | 7e436102fa3253ffb863e39f6000873dbcbb28e8 | [] | no_license | charlierm/GifBiscuit | 468d4585fcb46dffd215304bc4a01ea97b98c02f | 5e4fd5b9865647d373f854c370ac9c1586e4e9b9 | refs/heads/master | 2016-09-10T19:18:29.794593 | 2013-01-18T19:11:47 | 2013-01-18T19:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | # Django settings for GifBiscuit project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
"joseph@redfern.me"
] | joseph@redfern.me |
db6802cee6da68cc71141f1e3102c152a6f20d28 | 7ee9bb43664c1c439d3408125f06714619fdc4d6 | /odev1.py | 160e6055113c482c57c6a77b4477500ffb5a8c3f | [] | no_license | sevdaghalarova/ileri_seviye_moduller | c53c8db6346da4c80b7a5c8f1fee9bb60441dcf3 | 736e9f97d36dae0125bc3ba5ca1c83e9d88c770c | refs/heads/main | 2023-01-03T05:42:49.078540 | 2020-10-19T21:54:50 | 2020-10-19T21:54:50 | 304,723,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | """Bilgisayarınızdaki tüm mp4,txt ve pdf dosyalarını os modülüyle arayın ve bunların nerede
bulunduklarını ve isimlerini ayrı ayrı
"pdf_dosyalari.txt","mp4_dosyaları.txt","txt_dosyaları.txt" adlı dosyalara kaydedin."""
import os
for klasor_yolu,klasor_islemi,dosya_islemi in os.walk("/Users/sevdaagalarova/Desktop"): # b... | [
"noreply@github.com"
] | sevdaghalarova.noreply@github.com |
d768465bd51e4517b1629e51404a5fcc3d2e422f | ed74957fd2b6f4d8cd0f18321f504977c6d3eff0 | /Common/__init__.py | 943f3f187ba6ee4764b58afe5e435cf48481fd74 | [
"Apache-2.0"
] | permissive | cyouwork/Python_Factory | 0c10bcdd8acee029eb25245694448130082ac2f7 | e42ba41ee823989ff5b74018b8c303050031785b | refs/heads/master | 2016-09-10T22:26:30.848669 | 2013-11-07T13:20:12 | 2013-11-07T13:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,128 | py | # coding=utf-8
# author=season
# import struct
# import socket
# import urllib2
# import json
# import datetime
# from ip2country import iplocate
# from dbconn import DbConn
# from logger import getlogger
# from colorLogger import coloLogger
# from subprocess import Popen, PIPE
# try:
# impo... | [
"yangjy@yangjy.(none)"
] | yangjy@yangjy.(none) |
47f43bae0afd1a3e5f93f6d0f30be5940afcbe2d | 04507c6acd78ac5cb12e9ecfff5d82ad02433ab7 | /ABC 188/DD.py | 18ccb6f4e77336afe3c0698e00dabc4d31cf1224 | [] | no_license | cousin63/atcoder | 40e1bc32ce2f863155c0bc01f51dca59dc0b0118 | 133857447723736ebde7c37a79283283d19f5cf7 | refs/heads/main | 2023-04-13T16:41:00.789553 | 2021-04-25T06:59:09 | 2021-04-25T06:59:09 | 361,351,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | N, C = map(int, input().split())
event = []
for i in range(N):
a, b, c = map(int, input().split())
a -= 1
event.append((a, c))
event.append((b, -c))
event.sort()
#print(event)
ans = 0
fee = 0
t = 0
for x,y in event:
if x!=t:
ans += min(fee, C) * (x - t)
#print(min(fe... | [
"noreply@github.com"
] | cousin63.noreply@github.com |
3ae90b4be704c71af5a0b1e338ce23517d38ce9f | c1ab0f3ccd1ae6f59a80bfcc3c2caaeed2868ba8 | /django_medcheck/core/migrations/0004_diagnosis_time.py | 3fe9f6ba308d6a050762ef67fae4fbe3415cd325 | [] | no_license | antz22/MedCheck | 0a91945f63c850b429f829b1e12e242f885ffdb9 | b75d44b13492f3dcac641504544eea3ef2e3754f | refs/heads/master | 2023-05-31T00:00:01.905437 | 2021-06-14T12:21:12 | 2021-06-14T12:21:12 | 376,289,998 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.2.3 on 2021-06-13 00:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_user_age'),
]
operations = [
migrations.AddField(
model_name='diagnosis',
name='time',
fiel... | [
"anthonyznj@gmail.com"
] | anthonyznj@gmail.com |
d02c5e7c67ee80bc1dab4d0f1ba02e70f36ddb4a | 887a7ff30a1496e29622ddc9867a8b9a7e686a6d | /HoG/hog_python.py | 29ee4c33de66f5faa5d94a1146120a585c9aef38 | [] | no_license | DanyEle/SPD_19 | 906d6f2f4c22b41562615d0df5aa3871329c9de6 | 557e808372ed40843535bb3e2a20845e000a3753 | refs/heads/master | 2020-04-25T22:35:59.771327 | 2019-06-12T15:11:27 | 2019-06-12T15:11:27 | 173,116,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import numpy as np
import math
"""
Created on Wed Jun 12 17:05:24 2019
@author: daniele
"""
def hog(img):
gx = cv2.Sobel(img, cv2.CV_32F, 1, 0)
gy = cv2.Sobel(img, cv2.CV_32F, 0, 1)
mag, ang = cv2.cartToPolar(gx, gy)
bin_n = 16 # Number of bin... | [
"daniele.gadler@yahoo.it"
] | daniele.gadler@yahoo.it |
434c5a3a8380b851bf1a4918cab7b4f11323ae5e | 019d06389d7adbcc8b64932cc195a4e6e919b0d6 | /need/wizard/__init__.py | 7a784798040cad8b1bd88509130f184e7ee126fb | [] | no_license | cskoufana/integc | 6c8f45d1cb39436fb870a8f7e11d50cb559b7851 | 0ca39085d971fa9d418a95d16983bf47994a91b3 | refs/heads/master | 2021-01-12T13:30:41.353588 | 2017-06-01T09:38:39 | 2017-06-01T09:38:39 | 69,959,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | #__author__ = 'yenke'
import need_payment
| [
"yenkemarius@yahoo.fr"
] | yenkemarius@yahoo.fr |
e4cf1646e7113984bb1f78c2b637acfe96d1cc47 | fcd130826ea590414c6fa10e0a43cdd76f94619c | /server.py | 845dae38eb1a2e69cfd14ac8d0812d1056a87cab | [] | no_license | Tenlern/schedule-chatbot | ddb96d3091f1c85a8977570ebe540062ff95285c | 92ee9017ac3d1ec23dc0f6d1f069143b0d5a6d9a | refs/heads/master | 2022-04-06T23:36:11.484371 | 2020-02-14T16:11:06 | 2020-02-14T16:11:06 | 238,038,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import chatbot
import cherrypy
import os
import logging
WEBHOOK_HOST = 'reptileserver.herokuapp.com'
WEBHOOK_PORT = int(os.environ.get("PORT", 5000)) # 8443 # 443, 80, 88 or 8443 (port need to be 'open')
WEBHOOK_LISTEN = '0.0.0.0' # In some VPS you may need to put here the IP addr
WEBHOOK_SSL_CERT = './webhook_cer... | [
"illyash20009@yandex.ru"
] | illyash20009@yandex.ru |
6cfea04f6d1e3ce471d2bc8d7b215d276670e1e7 | 50c23c7a6cddb716c1da8ad0f71017ea105f74de | /run.py | 9c983e1e305f0f9db238889737e8d5ff0dcb05e2 | [] | no_license | dkimpara/dodgsonWinner | df56075e2077faf499bb911573f3ffbb2745b0cc | 026fd0ea66516b2078f5cc4b16956cde87e3a15a | refs/heads/master | 2022-11-30T12:01:56.347577 | 2020-08-18T05:36:48 | 2020-08-18T05:36:48 | 283,106,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from writeup.experimentCode import *
from datetime import datetime
import numpy as np
if __name__ == '__main__':
#collect_data([20,30,40], np.linspace(2.05, 2.45, 5))
#collect_data([20,30,40], np.linspace(2.23, 2.26, 2))
for m in [85, 100]:
startTime = datetime.now()
collect_data([m], np.l... | [
"dhammakimpara@gmail.com"
] | dhammakimpara@gmail.com |
f218029fe99686b97e2ab0a354ec8ba8624a4ec6 | 0726646c823e21e32e21dd51516dd45d414916f0 | /crates/gen-wasmtime-py/tests/run.py | bb40b5c57bcb36565851aa53ce504ef8343398a9 | [
"LLVM-exception",
"Apache-2.0"
] | permissive | syrusakbary/witx-bindgen | e304a0ad4e8d2c017ad8b6aab0ed86909df6d65a | ed2f07c0d76d77d4fe31726fd48ff6f8a76d1b4c | refs/heads/main | 2023-06-20T22:34:29.612376 | 2021-07-27T16:39:29 | 2021-07-27T16:39:29 | 390,169,220 | 1 | 1 | Apache-2.0 | 2021-07-28T00:58:56 | 2021-07-28T00:58:56 | null | UTF-8 | Python | false | false | 21,211 | py | from dataclasses import dataclass
from exports.bindings import Wasm
from imports.bindings import add_host_to_linker, Host, Expected
from typing import Tuple, Optional, List
import exports.bindings as e
import imports.bindings as i
import math
import sys
import wasmtime
@dataclass
class HostState(i.HostState):
val... | [
"noreply@github.com"
] | syrusakbary.noreply@github.com |
a3aa786ffa9172b133c09fd175857777db8ef640 | 3eebfc8f50e025755b41be4cc84999f38c569ffd | /dataset_import/import_traffic_sign.py | 506756c81282d5dd57c00408807760c302b7e197 | [] | no_license | Dmitri00/sign_classification | af939b61ce97d1f9c32ca24853f873571303fa56 | 4f6270b13e6766d3eb60f2bb8a735cf73907f3fd | refs/heads/master | 2023-01-20T20:32:32.921243 | 2020-11-27T12:30:41 | 2020-11-27T12:30:41 | 261,696,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | from torch.utils.data import DataLoader, RandomSampler, SequentialSampler
from datasets.import_data_pipeline import data_transforms
from datasets.import_data_pipeline import dataset_split_pipeline
from datasets.import_data_pipeline import prepare_data
from datasets.traffic_sign import TrafficSign
def import_data(roo... | [
"dima.toichkin@gmail.com"
] | dima.toichkin@gmail.com |
7352c3a42dd59b3f2782b9efd33d692247338565 | 8a91aaa0b8700ddda0814b1d6fb94e6df47fa362 | /NetworkBuilder.py | 5476dc074dff8f514d01cad78c3eb8eeb35a990d | [] | no_license | Justtolook/AI_helloWorld | f1dd2d3451bfa8793aff867298b0f1e60a43ec6a | 86ff85e136e33c4a296642f2109a6ed24c266ad2 | refs/heads/master | 2020-04-04T16:28:32.160647 | 2018-11-04T17:50:15 | 2018-11-04T17:50:15 | 156,079,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | import tensorflow as tf
class NetworkBuilder:
def __init__(self):
pass
def attach_conv_layer(self, input_layer, output_size=32, feature_size=[5, 5], strides=[1, 1, 1, 1], padding='SAME',
summary=False):
input_size = input_layer.get_shape().as_list()[-1]
conv_we... | [
"hlammert@hotmail.de"
] | hlammert@hotmail.de |
fb941c30c3ff7a4afdff1dc8342dc86c3c24b634 | c14b741830ace618eb40efb28715d155f35a8be1 | /venvs/edxapp/lib/python2.7/site-packages/dealer/contrib/django/staff.py | 4d6da87c84d529069c2d93ff0d38e76887a6080d | [] | no_license | myoortcloud/kmu-edx | 6ad57e44e923e153ad2a6ad5c36f2a4b1f98ecde | 02afdda4f0ce040cd7e542d5d80c3256cd9da4b4 | refs/heads/master | 2021-06-02T17:40:57.408858 | 2014-08-06T08:58:55 | 2014-08-06T08:58:55 | 22,097,363 | 0 | 1 | null | 2020-07-25T21:13:42 | 2014-07-22T08:57:55 | Python | UTF-8 | Python | false | false | 337 | py | from .settings import BACKEND
def context_processor(request):
" Append current SCM revision to template context. "
return dict(REVISION=BACKEND.revision)
class Middleware:
" Append current SCM revision to request object. "
@staticmethod
def process_request(request):
request.revision = ... | [
"dotmagi@me.com"
] | dotmagi@me.com |
112f4aa81442b844c76a7d232671c177c7dd10fc | 2196eef6085ea26e8556474c0069a8dcda020c64 | /utils/re_ranking.py | a788d4f8957e059e5d5fd0c9adec463c5845b385 | [] | no_license | VIRC-lab-csust/LSDNN | f32423fa97f0490b98c786852242ed6c64714de9 | 2e95eeeabfd98cb1c71b925e1100dcf270f5cb93 | refs/heads/master | 2020-12-11T12:00:30.462389 | 2020-06-02T11:51:13 | 2020-06-02T11:51:13 | 233,843,411 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | #!/usr/bin/env python2/python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 26 14:46:56 2017
@author: luohao
Modified by Houjing Huang, 2017-12-22.
- This version accepts distance matrix instead of raw features.
- The difference of `/` division between python 2 and 3 is handled.
- numpy.float16 is replaced by numpy.f... | [
"49899527+qq326823564@users.noreply.github.com"
] | 49899527+qq326823564@users.noreply.github.com |
20f99c80dbb85d01bb880545247c17ccdfa77a31 | eea5dc484360750cbf982d6dfe6da0388f8f86b9 | /api/qlua/DelLabel_pb2.py | d9d3bfe80f5b7d1dbd7a55cd48b09a199b5329f8 | [] | no_license | mzhumakhanov/mmvddss | 1032c8c33ec88b76ddc9127781fe4378355ceff7 | 22dbea4a9d76491e9cd5206c5f534d45c44d41e3 | refs/heads/master | 2021-03-12T11:02:42.261422 | 2019-01-27T22:19:43 | 2019-01-27T22:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,508 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: DelLabel.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refl... | [
"mogilevskiyva"
] | mogilevskiyva |
4370030b9d3cbb043403f330d78a8b73c377fcb0 | e227fc8e1eafe2da377f18fe6894619fd68c4c3c | /web/chirp_web/chirp_web/urls.py | 3a96a97677c5725dad5496e67b7f9cc85949210c | [
"MIT"
] | permissive | Suloch/chirp | 5f53b7325f8707cfd2aeaa19be950f5cd26c01c5 | 6da4a4f6acf4b1948c18ff54922fa199b0bb03b2 | refs/heads/master | 2022-11-28T05:08:41.819768 | 2022-11-17T12:20:18 | 2022-11-17T12:20:18 | 144,522,337 | 26 | 5 | MIT | 2022-11-17T12:20:19 | 2018-08-13T02:58:41 | C | UTF-8 | Python | false | false | 819 | py | """chirp_web URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"sulochpatel1@gmail.com"
] | sulochpatel1@gmail.com |
e63d5ca6725aba6362ffd0e7cd7dd80e30a4196c | 91738798613b24b923935546795722f16d299352 | /util/trace_transform/eliminate.py | 32194dc191316e8dd455e4d874f5437a739ec012 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brad-mengchi/asplos_2021_ae | 7d0241f90eff38a3ca5ddc0e198ab4ec22cbd141 | cd9316a57ee4db85ba3ceaa362e839ab4075d0df | refs/heads/master | 2023-03-07T00:18:18.930510 | 2021-02-13T01:47:37 | 2021-02-13T01:47:37 | 318,314,352 | 0 | 2 | BSD-2-Clause | 2021-02-12T21:50:20 | 2020-12-03T20:41:20 | HTML | UTF-8 | Python | false | false | 644 | py | from serial_file import serial_file
def eliminate(path, vfc, outpath):
for (fname, vfc_traces) in vfc:
vfc_traces.reset_iterator()
sf = serial_file(path + '/' + fname, "r")
out = open(outpath + '/' + fname, "w+")
line = sf.readline()
while line:
if line[:-1].spli... | [
"zhan2308@purdue.edu"
] | zhan2308@purdue.edu |
fd337b75f0eb10484074e08ba64c0b939849c29f | ed756885498f009618c4be880f255e5c2402d537 | /web/feeds.py | d65fd10180cb506fc5739ed0d781aa1940d95fda | [] | no_license | GunioRobot/BlancoWeb | c6d1d242960918a6170ed0b1432ac36ea686546f | cff8540c8f5bc0a372cc3500b035f1fdbbc7eab8 | refs/heads/master | 2021-01-20T11:31:50.434756 | 2011-02-21T22:43:42 | 2011-02-21T22:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
from django.contrib.syndication.feeds import Feed;
from web.models import Evento;
class EventoFeed(Feed):
title = "Blanco Irish Tavern";
link = "web/feeds/eventos/";
description = "Suscríbete para conocer todas nuestras fiestas"
def items(self):
return Evento.object... | [
"jneight@gmail.com"
] | jneight@gmail.com |
aee80ab9fe78aa22684a72ea0e812c4808a2078a | 7f6edcc1c3f485c42dde1ed5f52ee40292d3aafa | /data_proc/filter_objects.py | 47ef438576feeb38cd82df588e2f0f2780eda385 | [] | no_license | RocketWill/PositionRefineNets-data-proc | 7d06281f7ed2c1ff923eb9c2dd0bc3000f7c0c17 | 1842fe78249a056f7928060f2e4d5cffa072b881 | refs/heads/main | 2023-01-29T03:17:27.811446 | 2020-12-17T09:21:03 | 2020-12-17T09:21:03 | 322,242,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: willc
"""
import numpy as np
from utils import py_cpu_nms
import cv2
file_name = "/Volumes/Will 1/thesis/cus_ktti_vis/data_proc/data/000015_pred.txt"
class Object3d(object):
""" 3d object label """
def __init__(self, label_file_line):
self.... | [
"chengyong@pku.edu.cn"
] | chengyong@pku.edu.cn |
943eb7ef872e91eecdf173c1d2bcf133d8a02938 | 484f9502f2d1fa35df77df8d3a08bd2bfd2d253d | /src/testers/unittests/test_ast_utils.py | 3debbde14f5a9683c67c251be3268860790f2dd6 | [
"Apache-2.0"
] | permissive | pmeerw/Triton | 5d1c58e93ed257f06f1586a1aa542d1ba307dcbb | 82f11d6b15302e7900ed7f9eb3d686b6313d5b37 | refs/heads/master | 2020-08-04T17:01:47.442181 | 2019-09-30T08:16:44 | 2019-09-30T08:16:44 | 212,212,395 | 0 | 0 | Apache-2.0 | 2019-10-01T22:38:58 | 2019-10-01T22:38:58 | null | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/env python2
## -*- coding: utf-8 -*-
"""Test AST utils."""
import unittest
from triton import *
class TestAstUtils(unittest.TestCase):
"""Testing the AST utilities."""
def setUp(self):
self.ctx = TritonContext()
self.ctx.setArchitecture(ARCH.X86_64)
self.astCtxt = self.... | [
"jonathan.salwan@gmail.com"
] | jonathan.salwan@gmail.com |
085c1ca688f066be5edb8c576b783805eb8506bd | 6d3b434d5815ce245fb21e8215cca886d4d37aa0 | /FullStack/Day04/loop_test.py | 48817b89287d517cff25a7526e2c8d3956c92eeb | [] | no_license | jeen0202/Pycrawling | 6f4dba67c85a39cfd0f011c2c031ffb9bdc207ab | 49b79443e871e113c32f90858d5792db93035c86 | refs/heads/main | 2023-08-03T00:13:07.087531 | 2021-10-06T05:25:49 | 2021-10-06T05:25:49 | 383,691,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/hello_loop')
def hello_name():
value_list = ['list1', 'list2', 'list3']
return render_template('loop.html', values=value_list)
if __name__ == '__main__':
app.run("localhost", port="8085") | [
"jeen0202@korea.ac.kr"
] | jeen0202@korea.ac.kr |
8d69a931823ce83ae12e98a902bc8017db25c58c | 2411a875608eab61e0b7f0d5d825cc142dd063a1 | /nsx-gen/lib/mobclient.py | 541dd56df2c91c3f3d5dcc0e585b30d15efd2395 | [
"Apache-2.0"
] | permissive | vmware-archive/nsx-edge-gen | 02ebf1cb025ee71f6737a2082f6c368507150426 | dd25e303897a6e34f28f0eb288920b25e896f6e7 | refs/heads/master | 2023-01-19T14:39:29.229624 | 2020-11-18T17:26:15 | 2020-11-18T17:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,830 | py | #!/usr/bin/env python
# nsx-edge-gen
#
# Copyright (c) 2015-Present Pivotal Software, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/l... | [
"sabhap@pivotal.io"
] | sabhap@pivotal.io |
b730461584fd1635191b6c39592d880a8c69bad4 | 9effd8eca52b8efebaf56474f6919bfe117af8ad | /Inner Classes/Inner1.py | 365db8f1c541a79593f24821fc24de71c4c083ff | [] | no_license | maliaditya/Python-code-snippets | b7aec315654f3b74328b29d1d775dde06aa3edcf | c2db8c612b68b62eab8fc962b1ebb33dd9e6689e | refs/heads/master | 2023-03-29T20:49:58.264648 | 2021-04-01T08:59:07 | 2021-04-01T08:59:07 | 267,371,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | class Mobile:
def __init__(self):
print("Mobile constructor")
class App:
def __init__(self):
print("App constructor")
def appName(self):
print("Instagram")
Mobile().App().appName() | [
"41832893+maliaditya@users.noreply.github.com"
] | 41832893+maliaditya@users.noreply.github.com |
383b76f74748990c083718d317c1ededcf0adc17 | 09611f3b130dccde3830fa73f7a1a17d88a9af4a | /Python/pi/src/map/routing.py | 0a3394171e58d98c082f3984e4e3d63c46f0eff2 | [] | no_license | Guigajks/PI-VIII | fb656b6b3cd1078c8534844a2f4d046b2143fb8f | ee4db93d15cfeaa8a572f1a26c0b4ba9670f6444 | refs/heads/master | 2020-03-25T12:45:14.240582 | 2018-12-14T20:10:00 | 2018-12-14T20:10:00 | 143,792,102 | 0 | 0 | null | 2018-12-14T20:10:01 | 2018-08-06T23:00:22 | null | UTF-8 | Python | false | false | 126 | py | from django.conf.urls import url
from . import consumer
websocket_urlpatterns = [
url(r'^ws/$', consumer.MapConsumer),
] | [
"guigajks@bitbucket.org"
] | guigajks@bitbucket.org |
d793e6de7377d5ebc904c64c932ada471c962a70 | 772fea37684a53210d99a3010b92a4bd6f1317e8 | /rxcs/cs/finalRecon.py | 9e78ec3a834a8aa9cde7ea9a1f8c92619d4b7b62 | [
"BSD-2-Clause"
] | permissive | JacekPierzchlewski/RxCS | ac5ebd6721f4d261f5e9ef160a61c15d2ce020dd | 250f9ebfe9c12f49754f354e60cc511be76e4632 | refs/heads/master | 2020-12-14T16:09:15.593134 | 2017-03-22T15:53:46 | 2017-03-22T15:53:46 | 19,773,357 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,071 | py | """
*Author*:
Jacek Pierzchlewski, Aalborg University, Denmark. <jap@es.aau.dk>
*Version*:
1.0 | 20-JAN-2016 : * Version 1.0 released |br|
1.0r1 | 28-JAN-2016 : * Only real part of reconstructed signals is preserved
*License*:
BSD 2-Clause
"""
from __future__ import division
import rxcs
import nu... | [
"jap@es.aau.dk"
] | jap@es.aau.dk |
2bef865ec48767a8816169565c3268d77904da1c | 346a7fe97299a299aa8411763094c16c6ff82e81 | /OntoED/model_base.py | 4b201e3c4593690f8d7e8ed5037c1f3a4633cc4f | [] | no_license | hanqingzhu258/OntoED | 576ad0de7b7b4d5df54be94476cbe6fb5da26d8f | 7997c92b2f75c0dc2bde6073f81566ab8bed018b | refs/heads/main | 2023-06-05T09:35:52.676659 | 2021-06-25T11:23:33 | 2021-06-25T11:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,919 | py | # -*- coding: utf-8 -*-
import os
import sys
import torch
from torch import optim, nn
from sklearn.metrics import f1_score, recall_score, precision_score
import settings.parameters as para
class LowResEDModel(nn.Module):
def __init__(self, support_sentence_encoder, query_sentence_encoder):
'''
... | [
"noreply@github.com"
] | hanqingzhu258.noreply@github.com |
b8cc6156455709a06572e21da36d30d39a079576 | ded7fb99380d36aef0e8e52b1e1bce993d956886 | /speech_trial.py | 3943216b7d6e86d2b75cd4fb4724ad92528bee63 | [] | no_license | dhairyaostwal/SurgicalGlass | 37be62e6322d2f971cffe008997b8fff470ca429 | c16c168e5d88a7b12baecd82b6a7c40e580cef0c | refs/heads/master | 2021-02-18T05:44:26.569606 | 2020-10-01T09:30:34 | 2020-10-01T09:30:34 | 245,167,207 | 0 | 0 | null | 2020-10-01T09:30:35 | 2020-03-05T13:13:52 | Python | UTF-8 | Python | false | false | 1,130 | py | import analyze as az
#import speech_trial as stt
from gtts import gTTS
import speech_recognition as sr
import os
import re
import webbrowser
import smtplib
import requests
'''import pyttsx3
engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()'''
def myCommand():
r = sr.Recognizer(... | [
"dhairya.ostwal@gmail.com"
] | dhairya.ostwal@gmail.com |
a56933bd6681e43cf345a102d75f3c814955242f | 1e35ffd787a15b827ecdf78f1c740687914cb7a8 | /People.py | 91753e6029d94a3d10a4acc406733e2e20e325c5 | [] | no_license | msaimam98/TicTacToe | 67978044607d6f5fea5dc125c3475b7e147f0066 | db714d7fafb972baf4f8d16d81a99c2176ec41ba | refs/heads/master | 2020-06-05T08:32:10.395270 | 2019-06-17T18:04:24 | 2019-06-17T18:04:24 | 192,377,254 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | class Player:
"""
Initialize a new User
"""
def __init__(self, name: str, token: int) -> None:
self.name = name
self.tracking_num = token
| [
"noreply@github.com"
] | msaimam98.noreply@github.com |
87cd7b6caedf20828b0a9a3d9035bb427d44719d | 19ebbf320b25151580ef37c3edd77174262698a3 | /jskparser/ast/type/classorinterfacetype.py | 98ad1e02b7d18ca47cae30d526e7f4380f0ae44f | [
"MIT"
] | permissive | plum-umd/java-sketch | f3cc889691aaac8a3a36e092523c1d6b32ac7206 | 3abffb73e1f0ad0f99ef03d5db90fc96c24aa84d | refs/heads/master | 2023-02-09T01:07:20.444520 | 2023-01-26T03:38:51 | 2023-01-26T03:38:51 | 33,940,151 | 21 | 9 | MIT | 2020-10-16T07:10:43 | 2015-04-14T15:29:04 | Java | UTF-8 | Python | false | false | 1,513 | py | #!/usr/bin/env python
from .type import Type
from ..typearguments import TypeArguments
class ClassOrInterfaceType(Type):
def __init__(self, kwargs={}):
if kwargs:
super(ClassOrInterfaceType, self).__init__(kwargs)
# ClassOrInterfaceType
self._scope = None
s... | [
"jreeseue@gmail.com"
] | jreeseue@gmail.com |
8d88dda0b85a6bba883549b8c696f655641e1194 | 2e74c734bee0412a3108d8d3ea109dfef3ff6a1b | /config.py | 49671e39e454b61ffd498aa6ce062625f43f851f | [] | no_license | Myonpasu/DotaDraft | 534c503d6b9be7fa05fd4f21640c49e932d33657 | 11ee43146b39772b7365f28106d5d14a8456501e | refs/heads/master | 2020-03-24T19:24:35.853534 | 2018-08-13T01:25:44 | 2018-08-13T01:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # Your Steam Web API key. These may be acquired from:
# https://steamcommunity.com/dev/apikey
STEAM_API_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
# Name of file in which to store raw data.
MATCH_DATA_FILE = 'matches.json'
# Filtering parameters for fetching match data. Values as stated at:
# https://wiki.teamfortress.... | [
"seanandrewadamson@gmail.com"
] | seanandrewadamson@gmail.com |
67587fd02596295302eec252eab94b2bf319bc33 | 2b70814c99c9c5a75e080b6e778cd6fcb8055aed | /dojo/tools/kubebench/parser.py | 07d1cdcfa7723c50d82164d23d48d11a3286d34d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TarlogicSecurity/django-DefectDojo | 620688a0132d33eb9e15c1f3720afb0af8c91336 | 6a2b0e5939155554a284f90f58e6287632436ce8 | refs/heads/master | 2023-03-16T09:59:36.177034 | 2021-03-07T17:05:30 | 2021-03-07T17:05:30 | 175,589,325 | 2 | 0 | BSD-3-Clause | 2023-03-06T10:01:14 | 2019-03-14T09:26:30 | HTML | UTF-8 | Python | false | false | 2,938 | py | import json
from dojo.models import Finding
class KubeBenchParser(object):
def get_scan_types(self):
return ["kube-bench Scan"]
def get_label_for_scan_types(self, scan_type):
return scan_type # no custom label for now
def get_description_for_scan_types(self, scan_type):
return... | [
"noreply@github.com"
] | TarlogicSecurity.noreply@github.com |
744f1dda5ecaac99291fd666dccddefedfbe56cf | a413b0a0ae6626363df8cce3ee8b01d7d031e33c | /prediction codes/assessions/cross_validation/9/prediction.py | facca549e97c44e4c7bc4b156eebfd7df1a7f2c4 | [] | no_license | colebrookson/covid-19 | 5f57772eb8f1991697c6ef0a224c207add76ad68 | ebb57a3bc4ea677724b248f01bed4ac45eb1f3b8 | refs/heads/master | 2023-07-10T03:55:53.219502 | 2021-08-21T22:09:18 | 2021-08-21T22:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88,001 | py | from makeHistoricalData import makeHistoricalData
from models import GBM, GLM, KNN, NN, MM_GLM, GBM_grid_search, NN_grid_search
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.use('Agg')
from sklearn.metrics import mean_squared_error, mean_absolute_error
fro... | [
"noreply@github.com"
] | colebrookson.noreply@github.com |
a1b24ec0a1cebfe884254cfc39cf4b663f6e3911 | 15da3bb0e353874b623b0876553f2d01c9430da6 | /security.py | 274090c6804f712a6a0be8766c207ab6af1611aa | [] | no_license | EliRibble/OSPi | 55c34385ebb2b09e9bd394dd8b78b3c84ce90cca | 46a11a7f65db91fe99bdca577cdee69bf7973913 | refs/heads/master | 2021-01-15T15:15:33.548863 | 2015-05-20T17:24:19 | 2015-05-20T17:24:19 | 35,950,721 | 0 | 0 | null | 2015-05-20T13:48:29 | 2015-05-20T13:48:28 | Python | UTF-8 | Python | false | false | 218 | py | import random
from web.session import sha1
def password_salt():
return "".join(chr(random.randint(33, 127)) for _ in xrange(64))
def password_hash(password, salt):
return sha1(password + salt).hexdigest()
| [
"junk@theribbles.org"
] | junk@theribbles.org |
f9186d755d160b923eb3e8c35cb07657dd2d757d | 61af06a08acd7dcad97ee0ddb86504910f9b1e45 | /decision_maker/urls.py | 4b981afd8fa6793a2fbf82fe62b016f5ee249208 | [] | no_license | C-Shi/Decision_Maker | 9c18d2b69b9f6507569852148ecaa973131bb67e | c966d652274c4a936790caf8043fa0747bbebb9b | refs/heads/master | 2020-04-10T16:21:26.014609 | 2018-12-14T09:25:48 | 2018-12-14T09:25:48 | 161,142,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """decision_maker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"cshi@ualberta.ca"
] | cshi@ualberta.ca |
526a6eeb29fc2589583002f2006648e788fe06aa | e6ba1dde1f21e4817215668905565edc4616fff8 | /build/gscam/catkin_generated/pkg.develspace.context.pc.py | 1b0a36804ac16f9e95293bc043d8d3ee606623a4 | [] | no_license | shu-98/catkin_ws | dde162026e114dd6e96a90994e6699ac38e85e68 | 8b1094ee815227f3ca766db73103ae2306a948c7 | refs/heads/master | 2020-07-01T15:14:38.537402 | 2019-12-24T11:33:06 | 2019-12-24T11:33:06 | 201,206,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sou/catkin_ws/src/gscam/include;/usr/include/gstreamer-1.0;/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include".split(';') if "/home/s... | [
"jdayeissaw@outlook.jp"
] | jdayeissaw@outlook.jp |
c4a35b1184ddc9951b0bf9e8a1ceeaccd2c708a0 | b951ee6d2de741e84f7bfe2dc5a66853c1d5cd4e | /Array/LinkedInstead.py | 5960eaa4dc231e2a7ddbf5349c752a8df806be84 | [] | no_license | Chongkai-Ma/Fundamentals-of-Python-Data-Structures | e78569f79dfad16ebc18121c250c25d91bb94754 | 170e58d23d9ee73c53b2ab596d7fcfc3e63eccc9 | refs/heads/master | 2020-09-21T03:46:04.980838 | 2019-12-04T14:18:27 | 2019-12-04T14:18:27 | 224,669,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/python3
from node import Node
head = None
for count in range(1, 10):
head = Node(count, head)
probe = head
targetItem = 5
while probe != None and targetItem != probe.data:
probe = probe.next
if probe != None:
probe.data = 88888
print ("The item has been changed")
else:
print ("The it... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
da2c797441188d198de8c57c9a59473cbd5ed769 | c36fdb4d07aeaf0b1e568c45e8020b34c6fa5aca | /usps_integration/models/__init__.py | 136e6ed2d4acabb36fa173d1a7051621eeeb8395 | [] | no_license | planetodooofficial/usps_integration_v13 | c6cf33c49d753c44831d3f6e1da10271d37f0e82 | ad69aa442b0ee65d1b7589b7f7ca409313f908aa | refs/heads/master | 2022-12-24T10:05:39.397215 | 2020-09-30T19:14:55 | 2020-09-30T19:14:55 | 258,160,591 | 0 | 3 | null | 2020-09-30T19:14:56 | 2020-04-23T09:52:32 | Python | UTF-8 | Python | false | false | 1,098 | py | # -*- encoding: utf-8 -*-
##############################################################################
# Copyright (c) 2015 - Present Planet Odoo. All Rights Reserved
# Author: [Planet Odoo]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | [
"https://Anjeel@bitbucket.org"
] | https://Anjeel@bitbucket.org |
7e57dcbf4f48f8fcfe88cb68a3ebfbe549f6d2ab | e944d912def98d7546d17c4303169f52517348ca | /interview_questions/basic/sum_of_rows_1.py | 046b5461ff003408ecb4ae700d527c671bb16873 | [] | no_license | balajich/python-crash-course | 0710854de3cd04695f969cbfe774ef336f707f48 | e62b578f7dc93f6a47fbae00dac2d496b985fe8d | refs/heads/master | 2021-07-30T16:00:45.392119 | 2021-07-29T11:41:49 | 2021-07-29T11:41:49 | 192,034,679 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | '''
Take matrix as input and returns sum of rows`
'''
import numpy as np
def rowsum(matrix):
"""
:param matrix (list): A list of lists where each inner list represents a row.
:returns: (list) A list containing the sum of each row.
"""
result=[]
for sub_list in matrix:
result.append(sum(... | [
"balaji.chopparapu@gmail.com"
] | balaji.chopparapu@gmail.com |
861df4598ba1fd37b569d1606e7b8b78e823be62 | 630b7ab30623f8a83d3ecc8e1ce800db4114df5b | /pf-net/model_PFNet.py | 54120c373b43d986775a8e8f8ac68c541180237e | [
"Apache-2.0"
] | permissive | 63445538/Contrib | d0c6d38a82db66a859403338a2921cbf763f7960 | 8860692e341020bb4332ff9f59b17a0c8cd9c748 | refs/heads/master | 2022-12-07T04:57:21.249293 | 2020-09-07T04:47:28 | 2020-09-07T04:47:28 | 293,422,878 | 0 | 0 | Apache-2.0 | 2020-09-07T04:36:06 | 2020-09-07T04:36:05 | null | UTF-8 | Python | false | false | 10,782 | py | import math
import paddle.fluid as fluid
from paddle.fluid.dygraph import Conv2D, Pool2D, BatchNorm, Linear
from paddle.fluid import ParamAttr
class Conv1D(fluid.dygraph.Layer):
def __init__(self,
prefix,
num_channels=3,
num_filters=1,
size_k=1,
... | [
"caorui0303@gmail.com"
] | caorui0303@gmail.com |
e59f804daffd73963a42e77a36b5adf3f11b3299 | 2f31a0c287584c4a8db6a2622b15b4a1c613756a | /main.py | ca254ca0eeaa676f6a36eaa36e8897f1d5eb5e1c | [] | no_license | sathiz1993/GoNodePython | 41b214acc16a23a9f85de6d4c704c5ffc9a90897 | d9ae736268ec42d27ceb7b49bfb361c895ad087b | refs/heads/master | 2022-04-21T04:57:40.571992 | 2020-04-19T16:18:02 | 2020-04-19T16:18:02 | 256,806,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import csv
import json
with open('data.json') as f:
covidData = json.load(f)
dailyCase = covidData['cases_time_series']
csvData = [['Date', 'Case']]
for data in dailyCase:
csvData.append([data['date'], data['dailyconfirmed']])
with open("output.csv", "w") as f:
writer = csv.writer(f)
writer.writero... | [
"sathiz1993@gmail.com"
] | sathiz1993@gmail.com |
484f6e5666d79ab0841dc247818ac74ca0ac5ac0 | 6c87962838139108bfbc8220c056120d18b894d0 | /main.py | 04b1d8f6b5ccbbd5c6728bc9e2bc6a299a67478c | [] | no_license | cihusss/analyzer | e2144eb0b9be89de74e076b46ba38ae8b5aa2828 | 93d23fbc983a8fc45df007b3859db08d975e0ead | refs/heads/master | 2023-01-03T15:03:06.684214 | 2020-10-27T19:37:16 | 2020-10-27T19:37:16 | 297,706,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from flask import Flask, escape, request, render_template
import skugrind
import json
app = Flask(__name__)
class Params:
def __init__(self):
self.category = 'category'
self.product = 'product'
self.zipcode = 'zipcode'
@app.route('/', methods = ['GET', 'POST'])
def home():
if request.form:
print(request.f... | [
"tmilicevic@triadretail.com"
] | tmilicevic@triadretail.com |
637ed4dde35f2c09ea90b3423775928b81f639db | 815934cc7d4317804bb66632bb9dda7ab590ab7d | /list_of_words.py | 8c48fbc2e4a9e25d40aa2db5057967c3ad9606b4 | [] | no_license | hagom/python4inf | 68671b29c045f4b1ef07c652a7439976b313db70 | af67035558f1798ba53b9db6d13d182c453f6e21 | refs/heads/master | 2023-03-05T14:19:51.187539 | 2021-02-21T15:12:47 | 2021-02-21T15:12:47 | 340,931,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | fname = raw_input("Enter file name: ")
fh = open(fname)
lst = list()
for line in fh:
line = line.rstrip()
line = line.split()
for word in line:
lst.append(word)
lst.sort()
newlst = list()
for words in lst:
if words in newlst: continue
newlst.append(words)
newlst.sort()
print newlst | [
"hgonzalezmata@gmail.com"
] | hgonzalezmata@gmail.com |
c209f65866272c1949e0f237f056f599e2d6ccc6 | 61337408377db0968002acb2ee1fa9afdbc80193 | /containers/core/app/ml_engine/libs/trainer.py | 1ec282cb0bfe004de2a173b370218e55ce275810 | [
"MIT"
] | permissive | pystokes/AERecommend | b3cb3f9ca59fab8e322621590115adf7a12d5589 | 18a7a51dfa554bb5b5b6998760be28718311f321 | refs/heads/master | 2022-12-27T08:46:25.720586 | 2020-10-06T08:27:37 | 2020-10-06T08:27:37 | 293,477,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from logging import getLogger
import math
import torch
import torch.nn as nn
from torch import optim
from utils.common import CommonUtils
from utils.optimizers import Optimizers
logger = getLogger('ML_ENGINE')
class Trainer(object):
def __init__(self, model, device, co... | [
"ml4forecast@gmail.com"
] | ml4forecast@gmail.com |
9f2f07591921cca072d28477de6b228a3f3ed8bb | 8051d0aef3fa75ccf1101292b63bd30e8718da63 | /Utils.py | 82b85d6dcf6743cd0c312a6e935e75e9e62c0dd1 | [] | no_license | z-jack/SDUSpider | b3cbca03a1dac1f98142cf852fc15bc884c60db4 | 2112c6ac44336adf7d10b515a843e004d6164848 | refs/heads/master | 2021-04-26T22:13:39.154703 | 2018-03-08T07:30:45 | 2018-03-08T07:30:45 | 124,044,509 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | from urllib.parse import urlparse
import errno
import sys
import os
ERROR_INVALID_NAME = 123
# validation code from https://stackoverflow.com/questions/9532499
def is_pathname_valid(pathname: str) -> bool:
"""
`True` if the passed pathname is a valid pathname for the current OS;
`False` otherwise.
"... | [
"emailjiong@126.com"
] | emailjiong@126.com |
e1eeeb4c21fbd250dc62e07c598b2cc0c465f402 | 9aaad4cff922e067118644fe1234435d83320335 | /chatbot_pre.py | 422b1d794bb44b52656be59defb4b3e49cf95fad | [] | no_license | JangYoungJune/ssafy_s2_bootcamp_CUagain | 1a10997e40574fff3255fa8db0dbb8bd44205d6e | ed31b62b6c31b7b8d226e2e82aea134117d0c14e | refs/heads/master | 2020-06-18T22:43:19.722764 | 2019-07-12T00:10:23 | 2019-07-12T00:10:23 | 196,480,001 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,458 | py | from flask import Flask
from slack import WebClient
from slackeventsapi import SlackEventAdapter
import csv
#input slack token and signing_secret
SLACK_TOKEN = ''
SLACK_SIGNING_SECRET = ''
app = Flask(__name__)
pre_request_user_list = []
# /listening 으로 슬랙 이벤트를 받습니다.
slack_events_adaptor = SlackEventAdapter(SLACK_SI... | [
"cyj9212@gmail.com"
] | cyj9212@gmail.com |
6c97df099274970c06b328c0561e696fe4c99d3c | d01ccb00377f68b3268cd9b132203a002c1ca7bb | /pythoncentral.io/exam7-2.py | 325dded1cc1ba7719b51cadaa87c25cb8f882c7a | [] | no_license | hrsano645/pyside_practice | c327c594171565d63db429881501423c7c02e260 | a895119aa888c3a1bde219fd59b52f24bd428f32 | refs/heads/master | 2021-01-10T10:09:34.663574 | 2015-10-15T07:15:00 | 2015-10-15T07:15:00 | 44,090,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | # coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
__author__ = 'hiroshi'
import sys
from PySide.QtGui import *
def main():
# Create a Qt application
app = QApplication(sys.argv)
# Our main window will be a QListView
list = QListView()
list.setWi... | [
"hrs.sano645@gmail.com"
] | hrs.sano645@gmail.com |
7d4fff4b0e5e0bb4d6d5e641e95456b7d4777456 | 5150675cf3df057aed75b4fa61d2e45bdd306aff | /2018-07-23_Run0055.py | 0e72474ff927658524dff98fed41785d177ccba8 | [] | no_license | Dan-Schaefer/IPP-Neural-Networks | 601a8e2e322a2437b7b90674ff5dc9577b5d7819 | 7f6dd09469f8c560072ba399114265a21c5de7c6 | refs/heads/master | 2021-10-20T03:58:13.105216 | 2019-02-25T16:08:38 | 2019-02-25T16:08:38 | 121,515,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | #! /usr/bin/env python
'''
Trains 7D QuaLiKiz-NN with a single output (efiTG)
'''
from __future__ import print_function
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, BatchNormalization
from keras.optimizers import RMSprop, adam, Adam
from keras.initializers import Truncate... | [
"danielschaefer01@gmail.com"
] | danielschaefer01@gmail.com |
e7a6da8b913047441c8ecbd61af44920ea566c1b | 95d20fe737d711cf92d68130eb59b6aef4435ec2 | /pyecharts数据可视化/中国国内生产总值.py | 20106c170698be17ce82f33a10baa3719363738d | [] | no_license | CCH21/Python | d11b93851579d85f972828c760a96c5be1f79531 | 33e218810856971f3f1f97a2b8a4c8dce761362e | refs/heads/master | 2022-04-29T11:48:01.816283 | 2022-03-17T11:53:01 | 2022-03-17T11:53:01 | 226,452,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | #!/usr/bin/env python3
import csv
from pyecharts import Line
Quarter = []
GDP = []
Primary_industry = []
Secondary_industry = []
Tertiary_industry = []
with open('中国国内生产总值.csv', 'r', newline='') as csv_in_file:
filereader = csv.reader(csv_in_file)
head = next(filereader)
for row_list in fil... | [
"1398635912@qq.com"
] | 1398635912@qq.com |
8e5b226df11a9d0ac8efbc98100db75c96cb6160 | 887ca3020218909e25b9fa07abc9e95065dc0e9b | /Ecommerce/settings.py | 285b8a9fa4ac3570e83c942e7d28d2d3820790e7 | [] | no_license | Abhi09jeet2000/ecommerceFAM | e683734fa62268f3298b11e6999b0930bffbe92a | f713c4911fcfe23a068a7b5089587df8f3c371af | refs/heads/master | 2022-11-14T10:01:08.032094 | 2020-06-19T06:42:47 | 2020-06-19T06:42:47 | 272,952,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | """
Django settings for Ecommerce project.
Generated by 'django-admin startproject' using Django 2.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"noreply@github.com"
] | Abhi09jeet2000.noreply@github.com |
169846b938321c8dbce20033e51e9b4ee75fa83b | fad91cfb3adc96f27f8502dc20831526bce7bd64 | /simpleaddition.py | 4cb42e8bae71ec71963f6915d4a247cbe0428d7c | [] | no_license | silvouette/kattis_solutions | a452842eda75a3e22c2c43e943b4a04f8b318e19 | 47e93b86ac8bf97997e5b2f44c80731848da83f8 | refs/heads/main | 2023-05-16T08:29:53.583357 | 2021-06-11T05:00:50 | 2021-06-11T05:00:50 | 375,909,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | int1 = int(input())
int2 = int(input())
print(int1+int2) | [
"noreply@github.com"
] | silvouette.noreply@github.com |
178f1b1b9e71512abf2e9e3f7fc910ec5d1d377f | 5bd19438a14764fb2af14d3212d0f2e0633909c2 | /app.py | 33d8980f73a209a19a6a2759413c6bd23c7d5578 | [] | no_license | tjf91/flask-tutorial | 54b2629331895af77471b1bc38c3cfe3c3daadae | de20a238ce7facd01494fc9fabbbd1eb87c65193 | refs/heads/master | 2023-03-09T09:23:29.455619 | 2021-02-22T01:03:54 | 2021-02-22T01:03:54 | 341,033,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from flask import Flask,render_template, jsonify
from flask_pymongo import PyMongo
app = Flask(__name__)
app.config.from_object('config.Config')
@app.route("/")
def home():
print(app.config)
return render_template('index.html', name= 'James')
@app.route('/api/hello')
def hello():
return jsonify({"respon... | [
"tudorjflorea@gmail.com"
] | tudorjflorea@gmail.com |
52c0334887c6155097602a647cc48677621d9129 | 6fece37ca627612fcf9d259d4842e9cdcaf8f0e5 | /model.py | 05a77d51301e1d7e9805fdfe3669646168b09ed8 | [] | no_license | interruping/nine5mok | df93dc832534bc8721707928df2a6251fcee8dcf | bc216e71815e6f02f40fdba45326f1a51c470c73 | refs/heads/master | 2020-04-15T00:07:26.873936 | 2019-01-06T00:56:08 | 2019-01-06T00:56:08 | 164,229,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,410 | py | import tensorflow as tf
import numpy as np
from tqdm import tqdm, trange
from operator import itemgetter
from batchup import data_source
import cv2
class Nine5MokModel(object):
def __init__(self, sess, imgsize, imgchannel):
if len(imgsize) is not 2 and type(imgsize) is not tuple:
ra... | [
"interruping4dev@gmail.com"
] | interruping4dev@gmail.com |
787a125204b197d0d2287a4821f214e7514697d8 | 37a0d59dbc334291b205e05a6ce881acb839e41f | /example/example_model.py | 800b6834af6a2a385ad525665b56467b91335b1a | [
"Apache-2.0"
] | permissive | hoanghieu/vertabelo-sqlalchemy | c5ed3d8cedade34bc6be139acf18e3cfb4989074 | 8c588c4275ea17c64392b16f83f30d63b74ebdf8 | refs/heads/master | 2020-04-01T14:03:41.787822 | 2015-04-16T08:44:59 | 2015-04-16T08:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # -*- encoding: utf-8 -*-
# begin
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, BigInteger,String, ForeignKey, Unicode, Binary, LargeBinary, Time, DateTime, Date, Text, Boolean
from sqlalchemy.orm import relationsh... | [
"nabla@e-point.pl"
] | nabla@e-point.pl |
a531ad222f1ad9d58508ac1533cedda53a5082cc | e3ac2b64b641c004a2bb6698770cc30babb29a7a | /tests/test_functions.py | 064af0a89530dfad179195b36f473af1d3262f31 | [
"ISC"
] | permissive | NicCage1337/as3ninja | d03443bbc9eab9576955ec831ee999a831ec3985 | 34c169ef1dd030d38201b90f5333699540649fba | refs/heads/master | 2020-09-14T02:51:21.412269 | 2019-11-09T20:22:33 | 2019-11-09T20:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # -*- coding: utf-8 -*-
from uuid import UUID
import pytest
from as3ninja.functions import *
def test_ninjafunctions_is_dict():
assert type(ninjafunctions) == dict
class Test_iterfiles:
@staticmethod
def test_all_files():
content_types = {"json": dict, "yaml": dict, "text": str}
loop_m... | [
"github@simonkowallik.com"
] | github@simonkowallik.com |
35a2e4411670a59d855b9d8813a173f54c84aa9d | 7f87b6b4f1e218843fa2d03efec8840408a5a1c9 | /inv/migrations/0002_subcategoria.py | 2424586b205c9d5f539157703298df8c209e288c | [] | no_license | angiengel91/pypos | 03661a3d6d5025a0aeac90ce05c8adf8b1977823 | 359bb2f13dc2912bb32dfdc3f303e4cbcd213b11 | refs/heads/master | 2020-11-27T23:21:52.257819 | 2020-01-03T02:25:55 | 2020-01-03T02:25:55 | 229,644,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # Generated by Django 3.0.1 on 2019-12-23 19:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('inv', '0001_initial'),
... | [
"angiengel.zapata@gmail.com"
] | angiengel.zapata@gmail.com |
92f4a128811233e9904efabf086e54f56061abfe | 391952e57c97177eb358b8750453090b84393355 | /Solutions/Task2/853506_Vlad_Lykashonok/lab2/build/lib.linux-x86_64-2.7/testModuleByVlad/core.py | 813bd25692b0e6fe3cedf932bfc66e1fd9dcafba | [] | no_license | Lykashonok/BSUIR-PYTHON-2020 | 1495a67eb2c563f15cb60c8fd3636805c25209b0 | 0fb716b8693cda9467bd34fe719c6f8ab2365aca | refs/heads/master | 2021-05-18T04:17:34.785974 | 2020-04-23T14:44:24 | 2020-04-23T14:44:24 | 251,102,642 | 0 | 0 | null | 2020-03-29T18:24:06 | 2020-03-29T18:24:05 | null | UTF-8 | Python | false | false | 4,346 | py | import unittest
import json # to check wether jsonByVlad works correctly
import time # to check memoization speed
import sys
sys.path.append('../')
from vectorByVlad.core import VectorByVlad
from jsonByVlad.core import to_json, from_json
from memoizationByVlad.core import factorial, fibonacci
from externalSortByVlad.... | [
"dembyvlad@gmail.com"
] | dembyvlad@gmail.com |
c799bc9198fff55fc6a1642d264a35eed90b6ea0 | bfeec685e05b201b43157c803614e672d2a430a4 | /accounts/tests/test_authentication.py | f33b7e70b9abd66e7221dddd75516d6a7d7bbc79 | [] | no_license | taska-tester/python | 32e8cc535dadd5e3b4010289288ff1a0f1873566 | 7054504bda47c4bfe4410b2d2cb5884dc233d8a7 | refs/heads/main | 2023-04-01T15:38:21.685259 | 2021-04-15T05:53:32 | 2021-04-15T05:53:32 | 349,272,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.authentication import PasswordlessAuthenticationBackend
from accounts.models import Token
User = get_user_model()
class AuthenticateTest(TestCase):
def test_returns_None_if_no_such_token(self):
result = Password... | [
"jason.lai@taskaprosthetics.com"
] | jason.lai@taskaprosthetics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.