blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40984c2fb2d800dd58b439a634f44d0ceae530a0 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_message_statistics_response.py | 1e7816007f8524b86b1888cb87a5c5deb1613cd5 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,215 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListMessageStatisticsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d3f5f4ebf463dfdf6dea3516eec80760478a8772 | 5a2a4a4d9402b167039b3fc0c0ace186b50aa099 | /bonus.py | 03987745456039107f21411f95cf990ba6a032d1 | [] | no_license | uswdnh47/608-mod2 | d7b2bc6a98a823ce9e5f81b6c71f932f2d2777de | 35616e66d945c64d0295938b6a308fb5972abe4a | refs/heads/main | 2023-07-13T09:26:05.933462 | 2021-09-01T02:38:03 | 2021-09-01T02:38:03 | 401,530,012 | 1 | 0 | null | 2021-09-01T02:38:04 | 2021-08-31T01:00:28 | Python | UTF-8 | Python | false | false | 1,405 | py | import statistics as stats
values = [2000001, 2002001,2004001,2006001,2008001,2010001,2014001,2014001,2016001,2018001,2020001,2022001,2024001,2026001,2028001,2030001,2032001,2034001,2036001,2038001,2040001,2042001,2044001,2046001,2048001,2050001,2052001,2054001,2056001,2058001,2060001,2062001,2064001,2066001,2068001,2... | [
"noreply@github.com"
] | noreply@github.com |
cdc75150fd9e9b0bb84009d08bf0c00bb9a0f43b | 05ac6b13a380f1b0ed0676afaae9f8467b86b4a9 | /livegraph.py | d4bb9ed1fad2e85763f54554907e3f0591ba2853 | [
"MIT"
] | permissive | UncleEngineer/LiveGraph | fe6177473dca2bb16815dfb0f65dd3084b72c10e | 825dc11663fe3dbbfde6a722bf9ec35adac1c7f2 | refs/heads/main | 2023-02-13T09:19:44.307744 | 2021-01-25T16:28:16 | 2021-01-25T16:28:16 | 332,809,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | """
===============
Embedding in Tk
===============
"""
from tkinter import *
from tkinter import ttk
import random
import tkinter
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk
from matplotlib.backend_bases import key_press_handler
from matplotlib.figure import Figure
GUI ... | [
"noreply@github.com"
] | noreply@github.com |
b664bb20187e7f0cdf540e04e82e5f1ca252f334 | 8e93a9c97b928937bd98f76eff45306bf7228e1a | /createWindows.py | eb2b267f273835937d2a6cc82cb3f646d837959e | [] | no_license | Krenil-Sapariya/Python-GUI-basics | 43de40dffb91ed31435b125637100026f6709713 | 6b14369c8b0574b4ad7e38162bbaf0df5be18cd7 | refs/heads/main | 2023-08-13T06:43:21.002947 | 2021-09-29T02:59:15 | 2021-09-29T02:59:15 | 410,449,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import tkinter
#define window
root = tkinter.Tk()
root.title('Window basics') # set title
# set icon of window
# root.iconbitmap('filename.jpg')
root.geometry('400x400') # size of window
root.resizable(0,0) # if you don't want your window to resize
root.config(bg='blue') # set bg color
# an... | [
"noreply@github.com"
] | noreply@github.com |
7083f94716d817a0f64bfe154b86ee5261c2109e | e17b0ad0ebeb361e5565eb3d12e717f296a7b878 | /SheetAPI/config_example.py | a3fa30cc58a3bb13f0e1eee83397cd254f4f0c2e | [] | no_license | easy-rpg/SheetAPI | 94ea732083c3a7a82577e59e3a882a878772d6eb | 5542197f8388eed761a15a79c6ccca4fd481ccba | refs/heads/master | 2022-12-11T17:01:16.130002 | 2018-07-05T00:26:48 | 2018-07-05T00:26:48 | 131,898,341 | 1 | 0 | null | 2022-11-22T02:30:09 | 2018-05-02T19:44:34 | Python | UTF-8 | Python | false | false | 231 | py | # DB Heroku
# import dj_database_url
# DATABASES = {'default': dj_database_url.config(conn_max_age=600, ssl_require=True)}
# DB LOCAL
DB_HOST = "localhost"
DB_PORT = ""
DB_NAME = "DB_NAME"
DB_USER = "DB_USER"
DB_PASSWORD = ""
| [
"rodrigondec@gmail.com"
] | rodrigondec@gmail.com |
aaa428f3cb53f1e23a659033c3fd740d63e515e0 | 50a956eef8afaab3dc9313f87968341942175f4b | /sdm/test/atest-sdm-lineuler-acousticvorticityentropypulse-2d.py | 6e7b04046a1dacbae99f7c3900a5ee441553f985 | [] | no_license | supermangithu/dcm | ad7a0abad7742f1fc6e93cfef5b1859e4bb632bd | 221f99ce52f9b2c822fe56c0557f366b4e16bc47 | refs/heads/master | 2022-06-02T15:45:38.706892 | 2014-02-23T11:54:11 | 2014-02-23T12:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,943 | py | import coolfluid as cf
import math
### Create new model specialized for SD
model = cf.root.create_component('accousticpulse_2d','cf3.dcm.Model');
### Load the mesh
mesh = model.domain.load_mesh(file = cf.URI('../../../resources/square100-quad-p2-50x50.msh'), name = 'square')
model.build_faces();
### Add the Partial... | [
"wdeconinck@me.com"
] | wdeconinck@me.com |
3b20f19e109bf8ecb64d75d8dbf9d358e61b7f30 | 9d891ee19c0a6ebec7285b10f6ec3ff8695fef81 | /wonder_stats/tests/test_consumers.py | c1bae7b6e3c63fe07fe7d195a8958395efae1bde | [] | no_license | wojhan/wonder-stats | abf2c92a4efd9997032b2ad3f8891b407c8120c4 | 9af9a4a4220edac0b9f87bc7c9354253bf1ed870 | refs/heads/master | 2022-12-01T09:00:22.676741 | 2020-08-15T17:46:12 | 2020-08-15T17:46:51 | 287,737,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import pytest
from wonder_stats import consumers
@pytest.mark.parametrize('message_type, body', [
('test', {'k1': 'v1', 'k2': 'v2'}, )
])
def test_websocket_message_initialization(message_type, body):
message = consumers.WebSocketMessage(message_type, **body)
for body_key, body_value in body.items():
... | [
"w.haniewski@gmail.com"
] | w.haniewski@gmail.com |
f193f7ef7cff8bde1f26661a8767a73db6db85f4 | 3e05978cc48a9aaaa31fedbd182f8f55901a0f12 | /Data-Structures/Dynamic Programming/Patterns/Pattern-1__01Knapscak/min_subset_sum_diff.py | 8ce4620b3bd5ab011dcc030f9faae83af7d48d71 | [] | no_license | Akashtyagi/DataStructure | 86f88e13f3dceb7bc69bd703c78a8fc05b37de46 | 8af84bd07dc7e1d73ead813ad8632ed8112166cb | refs/heads/master | 2022-12-19T19:04:47.450299 | 2020-10-02T12:12:48 | 2020-10-02T12:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 7 00:34:21 2020
@author: AkashTyagi
"""
def min_subset_sum_diff(nums):
l = len(nums)
summ = sum(nums)
m = summ//2
dp = [[False]*(m+1) for i in range(l+1)]
dp[0][0] = True
for i in range(1,l+1):
dp[i][0] = True
... | [
"akashtyagi@qainfotech.com"
] | akashtyagi@qainfotech.com |
4652f613145fb60655bd9d03b2e0216af7a37090 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/types/product.py | e4a0de410942b7658ddae38bbd0a119804277476 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,576 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
cd4b5d06ac6645f6260588192fe3ce2be88410b7 | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/scrapy/seapets/ebay_spider.py | 60ab55266368702543f063870e4045f0adfb606e | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 1,675 | py | import os
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse
from scrapy.utils.url import urljoin_rfc
from scrapy.utils.response import get_base_url
from product_spiders.items import Product, ProductLoaderWithNameStrip as ProductLoader
from ... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
de259db007a1d40c2f20b2a0e71bb23c2f112f5d | a7e4e2e90ddfbf5f62bcdb6911297bcd36fd2869 | /Python/The while loop/The minimum divider.py | 1884a0c641314ace94a97ccd7bd005beb573b71b | [] | no_license | mottledZebra/Exercises | 613b1771987762103d6ff03c679bcef4f4146190 | a7680deff87a2f517b5739f77752be018261b028 | refs/heads/master | 2022-04-09T19:59:26.414248 | 2020-03-20T17:55:42 | 2020-03-20T17:55:42 | 48,891,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Дано целое число, не меньшее 2.
# Выведите его наименьший натуральный делитель, отличный от 1.
# Given an integer not less than 2.
# Output his smallest natural divisor other than 1.
print('Дано целое число, не меньшее 2.')
print('Вывести его наименьший натуральный делитель, отличный от 1.')
print()
ans = 'y'
whi... | [
"tolsen@inbox.ru"
] | tolsen@inbox.ru |
a63504979166b461e22dfaf6d6afce7a89d18161 | d408df0235927f9bce6004d67aa5e842a8eee1ff | /inference.py | c992d301b9da8384f5b79acb29815484dc5b7161 | [] | no_license | khangt1k25/Contrastive-Bottleneck-Segmentation | 9ca41e04af1a4af6dd7502df2771588243b898cd | c6b6611b228e5a8dbda69cec18dcf01f829522da | refs/heads/master | 2023-09-04T03:20:08.200640 | 2021-10-12T10:22:23 | 2021-10-12T10:22:23 | 368,530,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.serialization import load
from torch.utils.data import DataLoader
from torchvision.transforms import ToTensor, ToPILImage
from models import *
from utils import *
from dataset import *
from collate import collate_custom
from tqdm import tqdm
... | [
"khangruni@gmail.com"
] | khangruni@gmail.com |
35fef84bc6b217a74e816bced89470089abcb367 | acd5b6c0641ac3581a8f86a42f7ebb753504ae30 | /liberty_bell/components/ssd1351_display_adapter.py | 73b44bae5b092f927d000c4a78f40638ce1283e2 | [] | no_license | mattgrogan/liberty_bell | c9aa150cd493d480be54f58b3f621c9f3b1e9319 | 35ef4d55155d7d60ab15113ff068276c29ace510 | refs/heads/master | 2020-05-21T17:51:28.599919 | 2017-10-21T15:34:48 | 2017-10-21T15:34:48 | 61,948,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | """ This module holds code for all displays """
import time
from liberty_bell.components.ssd1351_display import SSD1351_Display
class SSD1351_Display_Adapter(object):
""" This wraps the SSD1351 """
def __init__(self, name, width, height, rst, dc, spi_port, spi_device):
""" Initialze the display """
sel... | [
"mvgnyc@gmail.com"
] | mvgnyc@gmail.com |
e93010ae26c2f452cbfb17ba59524682846ac2e7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/asp.py | 5132eb9ef039bf880ace7b2535f8a47941dfbc54 | [] | 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 | 162 | py | ii = [('WilkJMC3.py', 4), ('PettTHE.py', 11), ('WilkJMC2.py', 5), ('CoolWHM.py', 1), ('LyelCPG.py', 1), ('WestJIT2.py', 1), ('LandWPA2.py', 1), ('SomeMMH.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
66aa2e6b4bfaa38bb4426ce7d639aabfbde4bd97 | 0648aeda4e4c6da54428a040e2248a1efcb148ae | /code_initializer.py | 0602dd2455613a3264f40cf88b6bcbc63be260df | [] | no_license | ajaymaity/grid-search-with-keras | 3b86d30cba43eed752eddfa341cfb09b197c443c | 0bb3c29b4119183b28040371c69198ff1619a541 | refs/heads/master | 2020-05-21T12:13:41.240543 | 2019-05-11T15:45:33 | 2019-05-11T15:45:33 | 186,049,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | # Use scikit-learn to grid search the weight initialization
import numpy
from sklearn.model_selection import GridSearchCV
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
# Function to create model, required for KerasClassifier
def create_model(i... | [
"ajay_maity@optum.com"
] | ajay_maity@optum.com |
d506a23ac2b52d1efcdc9199a261eb8543b893c2 | 12cb93fbc6dc83f2574df4c5b612e8a701aed310 | /sprint12/2 Базовые структуры/122f_least_favorite_thing.py | 0835e8ef2b1261e09f79c3541ea9022ba2ee9981 | [] | no_license | dzanto/algorithmics | 85b871ea72069b42d2771b021d0ba02adbd2f021 | 462f4837818eb4f654228e051fcbff0902cad658 | refs/heads/master | 2023-01-09T04:58:06.280813 | 2020-11-11T10:41:38 | 2020-11-11T10:41:38 | 303,316,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | class Node:
def __init__(self, value, next_item=None):
self.value = value
self.next_item = next_item
def solution(node, idx):
if idx == 0:
head = node.next_item
return head
head = node
while idx-1:
node = node.next_item
idx -= 1
if node.next_item.... | [
"dzanto@gmail.com"
] | dzanto@gmail.com |
1bccd7d930b5dec65eead7410ebb2acc4488735c | 66df0193ea0810a9ccde310b5ad1da305642747e | /8_1236.py | 50455fca59a7bf1feca42613971d6edd316b42a3 | [] | no_license | toriz7/solveAlogorithmProblem | 67facc71e8f53f60faedd588656fcaa95b7e9827 | 40d366e572a9be5fca2f159f53c8544448654dee | refs/heads/main | 2023-04-04T11:08:54.800565 | 2021-04-22T14:27:53 | 2021-04-22T14:27:53 | 305,416,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #8
# 스스로 풀지 못한 문제.
N,M= map(int, input().split())
Mat=[['.']*M for i in range(N)]
rowcan=0
colcan=0
#입력
for row in range(N):
input_data=input()
if 'X' not in input_data:# 해당 행에 경비원 없으면 행을 후보로 넣는다.
rowcan+=1
for col in range(M):
Mat[row][col] = input_data[col]
# 열 검사
for col in range(M):
... | [
"noreply@github.com"
] | noreply@github.com |
d6b86b1af4acdf4dbdd08dc74083be5d5b602403 | cb5b17c50ac62bc5e0e5127a4bec9b47f6f7d646 | /lib/networks/losses.py | a8f8264d6d1e68e2f1819e317da9f10b9f5eb2c9 | [] | no_license | Regenerator/prns | 04a160ea706bac26460e97bf12d282fb94e00881 | cc99835519331c12dcba85bddbbdf6c0af7b3f80 | refs/heads/master | 2022-11-25T06:04:22.777959 | 2020-07-28T23:13:14 | 2020-07-28T23:13:14 | 198,115,777 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | import numpy as np
import torch
import torch.nn as nn
class KLDivergence(nn.Module):
def __init__(self):
super(KLDivergence, self).__init__()
def forward(self, mu1, logvar1, mu2=None, logvar2=None):
if mu2 is None:
if mu1 is None:
loss = torch.zeros(1).cuda()
... | [
"roman.klokov@inria.fr"
] | roman.klokov@inria.fr |
5b3c8eb87f14b56ba99b048c861e3741debcc9b0 | 5e10c81e138aa00778cf74f3412e3f8be6e16871 | /app/utils/detect.py | ad2e45e4e4e9517acd9a4eb1b555d81bebc3db7e | [] | no_license | Wanglingdu/ownModify | b92793e103d348dcbdc1249fccda094e4c60176a | 8b75f9ed8db67712183adb0fa0c4093294bbc6fd | refs/heads/master | 2022-11-07T00:32:44.425052 | 2018-11-19T05:58:41 | 2018-11-19T05:58:41 | 157,649,486 | 0 | 2 | null | 2022-10-10T11:36:50 | 2018-11-15T03:56:03 | Python | UTF-8 | Python | false | false | 5,582 | py | # coding:utf-8
from app import app
import time, pdb
import os
import re
from PIL import Image, ImageDraw, ImageFont
import numpy as np
import datetime
import urllib
import json
import hashlib
def rop_detect(dest_dir, infos):
start_time = time.time()
img_name = set()
for filename in os.listdir(dest_dir):
... | [
"Wanglingdu@outlook.com"
] | Wanglingdu@outlook.com |
3304675c9f32315e636e7eb7ddd6bae94047887a | 751accf6c36b26e5da87837773bc7403691baa25 | /car_with_trailers_sims/T_LQR/T_LQR_car_w_trailers_sims.py | 0ff694cb51f92d492a7a6a6fa1e62fce606ee0a2 | [] | no_license | karthikeyaparunandi/T_PFC_paper | 0913a71c664dda6476fed5b796a7b03d9ce288e4 | c1fe2dfd06cdac4a050069919aa04a92e34f3cc9 | refs/heads/master | 2022-08-20T09:18:16.537881 | 2019-06-06T21:56:09 | 2019-06-06T21:56:09 | 171,076,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | '''
copyright @ Karthikeya S Parunandi - karthikeyasharma91@gmail.com
python code for simulations on car-like robot using T-LQR method.
'''
#!/usr/bin/env python
from __future__ import division
import h5py
from casadi import *
from T_LQR_car_w_trailers import T_LQR_car_w_trailers
import matplotlib.pyplot as plt
import ... | [
"karthikeyasharma91@gmail.com"
] | karthikeyasharma91@gmail.com |
a93cc724adf2790b67ffc92d88c83b143f781755 | 04c1e447a513722378d66e3f4147b21cda136bd7 | /MM/3p/venv/lib/python3.5/site-packages/plot/apps/region/draw_one_region.py | 04ee60d5cc7f1dd176899d26f11ec8ca6905372c | [] | no_license | kozakjefferson/devw | 4f2283381b9cd4ec491d181fd6564f39caf0b1fa | 592cf26c4b06c3cdc5eb5640a5cb413870308484 | refs/heads/master | 2020-03-19T15:20:23.386233 | 2018-06-08T21:16:55 | 2018-06-08T21:16:55 | 136,667,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """
Draw a single region
"""
from typing import Dict, Tuple, List, AnyStr
from numpy import ndarray
from ...tk.matplotlibTK.legend import format_legend_label
def draw_one_region(
obj_axis, # type: object
xy1y2, # type: List
p # type: Dict
... | [
"jnkkozak@gmail.com"
] | jnkkozak@gmail.com |
d6f767ba29749e80af1081a9d56b603d236a7679 | e28f6905146318c055e5d7be4feb07a92f6c679f | /semana2/ex7s2.py | 7fd759403a234ff45aaf00d2d58da8796a57f00b | [] | no_license | fcoprata/AtividadePython | 5002d8b5b639e4b032e1241f1058ab92a3047f66 | 6bca22a76492893f6ab69cc48ea13e496023108c | refs/heads/master | 2023-08-20T12:30:15.038550 | 2021-09-28T00:46:08 | 2021-09-28T00:46:08 | 397,370,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py |
lista = []
while (1):
name = input("Digite o nome: ")
if name == "parar":
break
else:
lista.append(name)
print(sorted(lista))
| [
"fcoprata@alu.ufc.br"
] | fcoprata@alu.ufc.br |
62faad3705bda1478983f032850686bfdd348dbd | 91639fea573828d08e8642a9022fe2ec62319414 | /future/types/newstr.py | 6a01f83530985735559b1b493b0bf1432abb2a4b | [
"MIT"
] | permissive | agincel/AdamTestBot | 9787a22f25a3bfc2bbab0b6c6e66b857cb369f32 | fee093c3dd944881bd92c9180fbb3a13700673da | refs/heads/master | 2020-05-22T04:26:39.241479 | 2016-12-29T22:15:04 | 2016-12-29T22:15:04 | 44,931,116 | 0 | 8 | null | 2016-10-18T22:04:33 | 2015-10-25T21:40:35 | Python | UTF-8 | Python | false | false | 15,602 | py | """
This module redefines ``str`` on Python 2.x to be a subclass of the Py2
``unicode`` type that behaves like the Python 3.x ``str``.
The main differences between ``newstr`` and Python 2.x's ``unicode`` type are
the stricter type-checking and absence of a `u''` prefix in the representation.
It is designed to ... | [
"adam@DESKTOP-TA850RC.localdomain"
] | adam@DESKTOP-TA850RC.localdomain |
a33bf04505947fb836d3130ee4d89ef2351d3905 | f7b76613d8388a8725d8957450ea65c4d0d0ef3a | /Overlayi2cCap/i2cStreamManager.py | d1697aa9d0a4b87c3d766564bd6cf3cffeeefedb | [] | no_license | AbhikChowdhury6/OpenHDS | b193bbf41e48ffe3d75a6f20dd6bc9e04c610307 | b7b9f64b2acce072c9879e250e4148ef5f89335b | refs/heads/master | 2020-03-26T10:12:01.617836 | 2018-08-16T21:22:20 | 2018-08-16T21:22:20 | 144,786,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # thisfile is to grab all of the data on the i2c bus based on the the configuration file
#write it to files
# keep an open socket and stream it (via jttp https later)
import time
import smbus
import os
#import all of the devices on the bus for now
bus = smbus.SMBus(1)
# extanciate and configure all of the objects
... | [
"Abhik.ch6@gmail.com"
] | Abhik.ch6@gmail.com |
366becbf38b2cbd59b48a9d5a492a6b43b6d2a89 | 00f32f70e633334d0862cf39dbe854147c85eda1 | /src/boncUtils/KafkaUtils/KafkaUtilsLocal.py | 6a8186824a844c3fede198d58f7e7ec24d580cef | [] | no_license | wanglikang/RetardedSpider | b377561338ab036a6a6272c6023c38df5c515a22 | 2303135dab359cd3975e4df4ece5d8df4d8f1584 | refs/heads/master | 2022-12-12T17:23:22.857578 | 2018-12-08T14:26:09 | 2018-12-08T14:26:09 | 154,911,464 | 0 | 0 | null | 2022-11-22T02:36:36 | 2018-10-27T01:23:15 | Python | UTF-8 | Python | false | false | 2,344 | py | # -*- coding: utf-8 -*-
import time
import random
from kafka import KafkaProducer
import datetime
import random
bootstrap_servers = 'localhost:9092'
# bootstrap_servers = '172.16.32.125:9092'
producer = KafkaProducer(bootstrap_servers=bootstrap_servers)
topicpre = 'test-topic-'
def sendAMessage2(topics):
nowtime ... | [
"1024196018@qq.com"
] | 1024196018@qq.com |
7f47c6d8cca379d6f4c70480f6f1cdd8bf139e4b | dbdfbdd487e6aff7c09e7b091f058acf65ef9251 | /Matplotlib/2 day.py | 1dbc704b85955bd82273bfcd5fe1a7fc0c758ea6 | [] | no_license | Kevin0918/DataAnalyze_tutorial | 12795e9b2f8c57161938e3eab872076502190a9e | 3b16cbb78c7d1e2ce830acd7bfe1a776ddd87ae2 | refs/heads/master | 2020-12-02T18:11:39.007480 | 2017-07-18T11:43:29 | 2017-07-18T11:43:29 | 96,492,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | # encoding = utf-8
# Many types of figures
import numpy as np
import matplotlib.pyplot as plt
def main():
# 绘制散点图 Scatter
fig = plt.figure()
ax = fig.add_subplot(3, 3, 1)
n = 128
X = np.random.normal(0, 1, n)
Y = np.random.normal(0, 1, n)
T = np.arctan2(Y, X) # 上色
# plt.axes([0.025, ... | [
"2473998520@qq.com"
] | 2473998520@qq.com |
6874ab1561fcbefe2edd109a8e4cc9a0e70cb1dd | 8a6104c025242590ac659ae9dd7488bc9faac053 | /RutishauserLabtoNWB/events/newolddelay/python/analysis/behavior.py | 9e9ba6c5863076a4a27dcf860a95dda24f562574 | [
"BSD-3-Clause"
] | permissive | sumner15/recogmem-release-NWB | 23a40f1a75e62a47e6071bd6ac168f70dbb3256e | e21b8433622dfa04d46779287e39bd0ee5e6255b | refs/heads/master | 2022-12-15T10:46:15.019037 | 2020-05-29T01:29:02 | 2020-05-29T01:29:02 | 293,928,673 | 0 | 0 | NOASSERTION | 2020-09-08T21:12:54 | 2020-09-08T21:12:53 | null | UTF-8 | Python | false | false | 14,682 | py | import RutishauserLabtoNWB.events.newolddelay.python.analysis.helper as helper
import scipy.stats as stats
import logging
import matplotlib.pyplot as plt
import numpy as np
def plot_behavioral_graphs(*argv):
"""
Input: Variable number of NWB sessions in the '~~~.nwb' format
Output:
Behavioral analys... | [
"31257907+nandchandravadia@users.noreply.github.com"
] | 31257907+nandchandravadia@users.noreply.github.com |
e3de59ab0a628f70e1187295bc11caee29962f62 | 308e318d1fd56520b1cfe093a5436043c72703db | /medicalcase/urls.py | 7fbff357f5082f6a7d17dabd49a02a808157e9fd | [] | no_license | NicholasTurner23/360MedNet-1 | b35e2b79712cd5568054e697298ad02c368f8853 | fb3939031c455c62c889383f73611b5b6845d8dd | refs/heads/master | 2021-06-18T09:57:32.656789 | 2017-06-17T22:33:32 | 2017-06-17T22:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.conf.urls import url
from medicalcase import views as medicalcase_views
urlpatterns = [
url(r'^post/medical_case/$', medicalcase_views.MedicalCaseCreate.as_view(), name='medical-case'),
url(r'^medical_cases/$', medicalcase_views.MedicalCaseList.as_view(), name='medical_cases'),
url(r'^medical_c... | [
"faithnassiwa@gmail.com"
] | faithnassiwa@gmail.com |
4c6813a647ef95ad18309558db0dffdaeadc0528 | 4f25e4dec97be389529ddc56278703e0c1b6b6e0 | /books/migrations/0001_initial.py | 7bccea47de3a4f1546741ae330e066082f9f2893 | [] | no_license | yogae/django-test | a88621a8675abc70550d2a251d1ab7893de5ccae | 8238969f5bc8560849577b562ce6b4a1ea7edf45 | refs/heads/master | 2020-04-08T14:05:29.977001 | 2018-11-28T00:55:52 | 2018-11-28T00:55:52 | 159,421,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # Generated by Django 2.1.3 on 2018-11-22 23:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | [
""
] | |
1f2f1d293faf734d8ce56d68a50cd959e318ddc9 | 60386b8c5513f2ba02e73b9db951e3eb636ea7c1 | /PythonExercicios/ex005.py | 13b615dbe187d55a3f34418345c0042fbfe79675 | [] | no_license | cesarsst/PythonProjects | 4cdc9c02ec034768d51def3a7cd2622d4456eede | c5cf38abe1542330a1ba364215945923b9993edd | refs/heads/master | 2020-04-12T10:26:22.750701 | 2019-04-25T00:08:00 | 2019-04-25T00:08:00 | 162,429,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | #Faça um programa que leia um numero e mostre na tela o seu sucessor e seu antecessor
n = int(input('Digite um numero: '))
ant = n-1
suc = n+1
print('O antecessor de {} é {} e o sucessor é {}'.format(n, ant, suc))
| [
"32494389+cesarsst@users.noreply.github.com"
] | 32494389+cesarsst@users.noreply.github.com |
768dcf4b3e0a31bf24e77e7aec2022d14e1cc3a0 | a213af790886bc804fa092bef63c6f4d90d37b6d | /luffycity后端/api/serializers/course.py | a6b696f8199808beff63c27859165c4b053596b3 | [] | no_license | naive9527/luffycity-1 | 47bfba70a7be33b76f05b4df14183efca5a885c2 | 730708d576949aed0ebce0dc202f5fd945b4fd67 | refs/heads/master | 2021-10-19T15:26:59.377464 | 2019-02-22T05:43:01 | 2019-02-22T05:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,930 | py | #!/usr/bin/env python
# _*_ encoding:utf-8 _*_
__author__ = '于sir'
__date__ = '2019/2/18 14:17'
from rest_framework import serializers
from api import models
class CourseSerializer(serializers.ModelSerializer):
""" course 表"""
course_type = serializers.CharField(source='get_course_type_display')
level = ... | [
"xinxinainixd@qq.com"
] | xinxinainixd@qq.com |
24b8b0d128b1755bfce972e35b56b2635439d049 | 927eb86f9d2b0466f580c08ec84e6a13604ba6f8 | /worldcupapp/views/media.py | 7d48a519f7bb1ae79aa49c2624f70fec9e7f0476 | [] | no_license | by-Exist/piku_backend_api | 61ee1aa0526d29d735f0fd8c0cf0a69d2a01abe4 | 5dfc4a3fc6cb842e2dc16d5af5b6fd7dea609b4f | refs/heads/main | 2023-06-11T21:10:51.652924 | 2021-07-07T14:35:33 | 2021-07-07T14:35:33 | 338,810,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,041 | py | from itertools import chain
from django.shortcuts import get_object_or_404
from django.utils.functional import cached_property
from worldcupapp.models.worldcup import Worldcup
from rest_framework import mixins, viewsets, response, status
from rest_framework.decorators import action
from drf_spectacular.utils import (
... | [
"bolk9652@naver.com"
] | bolk9652@naver.com |
0fb49387c4236353b3a28aca712ad1f5c471a393 | c9458b251f12bae2526217446eb228971b7c0dae | /scrapylogin/items.py | 9f0ece86728950d50c7d3105ca8ab83b5fe3576a | [] | no_license | batulu12/scrapylogin | f36c28be41609c0ad41ebd1fecf8893c017e8452 | dd71ac3f8134de22cdf09a04ecb591cba4b0ab2e | refs/heads/master | 2021-01-01T16:50:29.800333 | 2015-08-31T01:16:35 | 2015-08-31T01:16:35 | 26,672,014 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class GithubUserItem(Item):
_id=Field()
url=Field()
user_id = Field()
username = Field()
n... | [
"batulu1987315@163.com"
] | batulu1987315@163.com |
ee1a58bcf366c8ace7692c83bec3ecbc8aba652c | 9a0109c2e6dc192068374a7497b305828b65afd3 | /read_statistics/__init__.py | edec89066d3c67f577ea517a90d1c27d87391b73 | [] | no_license | laughterGod/MyblogSystem | 03d015e3cc46d27fbe9f40413ca78441fbf76905 | 63f08287c367fdb1a3410c8ce534c8a1f826e1f7 | refs/heads/master | 2023-01-09T03:43:55.536147 | 2020-12-23T14:12:11 | 2020-12-23T14:12:11 | 201,200,945 | 1 | 0 | null | 2022-12-26T21:34:53 | 2019-08-08T07:15:39 | Python | UTF-8 | Python | false | false | 65 | py | default_app_config = 'read_statistics.apps.ReadStatisticsConfig'
| [
"hanziguo@kingsoft.com"
] | hanziguo@kingsoft.com |
71439de2a364c259cfed90fea9e2175609014d0c | a8b1b81a7bc584565c31280c8be858c597d3a3a1 | /workIndia/manage.py | 41fbc478b3ad4b0a6451e0a550c4682fd5c9f850 | [] | no_license | adityachoudary54/workindiaproject_password_manager | d434f797a1548392e52705619b9f33622f16b099 | b056a7b64a11b35adad8bda49ff284dccbd7aef3 | refs/heads/master | 2022-12-11T10:21:08.305343 | 2020-08-25T14:06:49 | 2020-08-25T14:06:49 | 290,221,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'workIndia.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"33027155+adityachoudary54@users.noreply.github.com"
] | 33027155+adityachoudary54@users.noreply.github.com |
5eae1492af790922bb806b1d1c75466db26ca638 | 1d22e0cc8db1ddbdab6c06a049ccc15f35dfff99 | /hmm_class/hmm_classifier.py | ef78103fd4f6f7572a36a305ebe37019bd61ebd0 | [] | no_license | JiaxinYu/machine_learning_examples | 59f37335407d9b9523a6879602ad3d58eac7da77 | db49879ca5efd34e7d2ad6c3ddf1fb4854c24429 | refs/heads/master | 2020-06-11T07:24:29.871826 | 2016-11-27T17:54:19 | 2016-11-27T17:54:19 | 75,734,758 | 1 | 0 | null | 2016-12-06T13:39:27 | 2016-12-06T13:39:27 | null | UTF-8 | Python | false | false | 2,841 | py | # https://udemy.com/unsupervised-machine-learning-hidden-markov-models-in-python
# http://lazyprogrammer.me
# Demonstrate how HMMs can be used for classification.
import string
import numpy as np
import matplotlib.pyplot as plt
from hmmd_theano import HMM
from sklearn.utils import shuffle
from nltk import pos_tag, wor... | [
"sublime.balloon@gmail.com"
] | sublime.balloon@gmail.com |
a712979f0746ffdb9d01e4e7639de181f610ecfc | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/apimanagement/v20210101preview/list_delegation_setting_secrets.py | 7b3884925eda30d4b2d81d99584cc3666a53a128 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,469 | 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
__... | [
"noreply@github.com"
] | noreply@github.com |
224733db7bbbe943a5cdd5d14513e71863001123 | 37879f158886946a3328cb7c938b774eef6b12f4 | /feature_engineering_pandas.py | 003cf38f3ec684d66b08086075a253ee2016ccec | [
"MIT"
] | permissive | beckernick/cml_rapids | 82f73bb4a7a12783967e1392ab5dba0d4ca01fde | da29a412418ac5c5be038f6c96af0b926c57c1ea | refs/heads/main | 2023-04-28T17:25:42.612687 | 2021-05-13T12:17:49 | 2021-05-13T12:17:49 | 367,154,418 | 0 | 0 | MIT | 2021-05-13T19:31:23 | 2021-05-13T19:31:23 | null | UTF-8 | Python | false | false | 3,622 | py | ## Feature Engineering using dask
import time
import pandas as dd
import pandas as pd
import numpy as np
from feature_engineering_2 import (
pos_cash, process_unified, process_bureau_and_balance,
process_previous_applications, installments_payments,
credit_card_balance
)
### Load Data
bureau_balance... | [
"bpl.law@gmail.com"
] | bpl.law@gmail.com |
f66cef6a68cdeac9b5ddd4269b3bf892b66c42f5 | 72cc8d87905918d9ce8eab22180cdbeb8f040276 | /Module2/wrangling-data.py | 9bf122173ded8e529ea4e764ad647758271aabd1 | [
"MIT"
] | permissive | bozhink/DAT210x | 2b6aca1fdae33ab87faa2dea45f6a319149a15f2 | 2ac5d717e8c671f4a3884f30406ad8fc3edc5961 | refs/heads/master | 2020-07-10T18:03:31.161560 | 2016-09-11T14:14:51 | 2016-09-11T14:14:51 | 67,400,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | # -*- coding: utf-8 -*-
import pandas as pd
df = pd.read_csv('', sep=',')
# Find nan
df.Feature.isnull()
df.Feature.notnull()
df.isnull()
df.notnull()
# Any time a nan is encountered, replace it with a scalar value:
df.my_feature.fillna( df.my_feature.mean() )
df.fillna(0)
# Forward/Backeard fill
df.fillna(metho... | [
"bozhink@gmail.com"
] | bozhink@gmail.com |
734ded4d9ed0355de4c637681b1104410ac535e7 | a07fb7e4d7cb9a3b626769e0690d10e4bdbc8da1 | /models.py | 68cb42b762487786cb76041c64bc8018d03bc38f | [] | no_license | syrvanser/memory-efficient-distributed-representations | 23277cceeec0bd2ff914d31c9118f42797c176cf | 7a8dcf028d44660c496462585d52a4af2ada2da7 | refs/heads/master | 2023-07-09T02:45:48.832902 | 2021-08-17T22:27:25 | 2021-08-17T22:27:25 | 374,692,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,505 | py | import tensorflow as tf
import tensorflow_recommenders as tfrs
from dpq_embedding import DPQEmbedding, MGQEEmbedding, TripleMGQEEmbedding
from typing import Dict, Text
from utils import augment_data
class RankingModel(tf.keras.Model):
def __init__(self, args, unique_user_ids, unique_movie_ids):
super().__... | [
"syrvanser@gmail.com"
] | syrvanser@gmail.com |
c882105ca46a3f7823f9788acf54067ac3aabd9b | 942352f51f61b1bd87d64fee12862ccede98a148 | /UI.py | 444bee867c8bea072211835849ba8b8af7afddfd | [] | no_license | andrrus2004/git-and-circles | b10f1732c6657d5eb65c861a6c795daaba421ed6 | 3dabf226dd07b5f20a1dbab387b8f2ac9e03d55f | refs/heads/master | 2023-02-16T18:30:25.590310 | 2021-01-12T17:21:01 | 2021-01-12T17:21:01 | 329,037,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(500, 570)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
sel... | [
"rakhmanov.andrey@gmail.com"
] | rakhmanov.andrey@gmail.com |
e0216efaaea6832c178d2b5615a91514dc4d96bb | ab704aa624338918d53ece09e1bcbcc39cbdc3b7 | /print.py | 015062292dae3c8d3e3f1a8b25e886e16ac42b10 | [] | no_license | Omega-developrs/Simple-git | fceac72f4e4e0c188ce8a6768952561d0bfbe5aa | fcdadecf50459d2985328226fea941cd7f3490a2 | refs/heads/master | 2022-12-02T15:48:55.256447 | 2020-08-25T14:45:12 | 2020-08-25T14:45:12 | 290,234,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py |
print("Let's fix the code")
print("Hello, World!")
| [
"ajaykrishnaanandhan@gmail.com"
] | ajaykrishnaanandhan@gmail.com |
2ce2737f7960c8ed5d5f3a9c942e1d8c09ac1592 | e53bc45497fc77cef79404c71760086bdcc43835 | /014-contexto-estatico/variables_de_clase.py | 46e59f57c799a761922eddd1fe7543b0dfb4aaf1 | [] | no_license | pacomgh/universidad-python | f6f33f859cb3dabc593c45ef85cb2a4ba0c7825c | e6b5d9ebdeefe7737013bb83ea87ced8c62ebc5c | refs/heads/master | 2023-04-25T01:42:38.900691 | 2021-05-04T22:56:24 | 2021-05-04T22:56:24 | 279,757,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | class MiClase:
#esta variable se asocia con la clase y no con el objeto
variableClase = "variable de clase"
#definimos un atributo de instancia, se asocia a objeto y no clase
def __init__(self, nombre):
#se asocia con los objetos a crear, variable de clase fuera de cualquier metodo
#pero... | [
"paco.mgh@gmail.com"
] | paco.mgh@gmail.com |
b0a5644af806359a75483523a5f4cbb90c1cc09b | 0d52bd60f06d6e5c7a783832febc33123e171625 | /visualizers/jbrowse/JBrowse-1.12.3_ct/tests/selenium_tests/welcome_page_test.py | 9a366a1b6c4318a1b6749b0e00be8ba0b3dded95 | [
"LGPL-2.1-or-later",
"Artistic-2.0",
"LGPL-2.1-only",
"Apache-2.0"
] | permissive | Multiscale-Genomics/VRE | 13fde91dd46425e5d202cded78970cf430575a71 | 8d946226e5b0818eb16b49cdce4ef0c1ea536d99 | refs/heads/master | 2021-01-22T20:41:24.784276 | 2019-07-22T18:00:57 | 2019-07-22T18:00:57 | 85,320,027 | 5 | 2 | Apache-2.0 | 2020-07-07T04:35:57 | 2017-03-17T14:23:11 | JavaScript | UTF-8 | Python | false | false | 247 | py | import unittest
from jbrowse_selenium import JBrowseTest
class WelcomePageTest( JBrowseTest, unittest.TestCase ):
data_dir = 'nonexistent'
def test_volvox( self ):
self.assert_element('//div[contains(@class,"fatal_error")]/h1')
| [
"root@multiscalegenomics.eu"
] | root@multiscalegenomics.eu |
ca06b826d8a2b9095d0b122e68a5c4e0da83821a | 3ec283fa90fcfec323ed1ee4e5e75fc61ffa4244 | /practice_exercises/CodeSignalArcade/IsLucky.py | a747640c8df725d13ab5c8ade8cd29b0638f3ab6 | [] | no_license | jmmiddour/CSPT19 | a252076d26d45120ee4650f1e5616923ec700892 | 9f424f4521aa709ed026b7b085922e719b48e29e | refs/heads/main | 2023-04-19T10:37:40.461375 | 2021-04-27T02:49:55 | 2021-04-27T02:49:55 | 346,905,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | """
Ticket numbers usually consist of an even number of digits.
A ticket number is considered lucky if the sum of the first half
of the digits is equal to the sum of the second half.
Given a ticket number `n`, determine if it's lucky or not.
Example:
For n = 1230, the output should be:
isLucky(n) = true;
For n = ... | [
"64432505+jmmiddour@users.noreply.github.com"
] | 64432505+jmmiddour@users.noreply.github.com |
7c2ec9f77e57a62a2549d84905a21e7d3809c20d | be9a1d2b459f5b6b795dfdfbf6c5642b0c801320 | /youtube_dlc/postprocessor/sponskrub.py | 4e9bec2571d4e77ca7f7aa5732581f12cdf1eb21 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | GRBaset/yt-dlp | 34b7880a8c59bbf3653f7c0066053e581046f3ff | 82e3f6ebda56c84166494e157e0f856467ca5581 | refs/heads/master | 2023-02-24T11:48:35.830262 | 2021-01-31T07:48:06 | 2021-01-31T15:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py | from __future__ import unicode_literals
import os
import subprocess
from .common import PostProcessor
from ..compat import compat_shlex_split
from ..utils import (
check_executable,
encodeArgument,
encodeFilename,
shell_quote,
str_or_none,
PostProcessingError,
prepend_extension,
)
class S... | [
"pukkandan@gmail.com"
] | pukkandan@gmail.com |
59c3bd06e2e52ff8c563ba694f192343d83d345f | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-SceneKit/PyObjCTest/test_scnmaterial.py | f2c6d6c21c5547c3bc9103160f5ceb299b9928c3 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | from PyObjCTools.TestSupport import *
import objc
import sys
if os_level_key(os_release()) < os_level_key("10.12") or sys.maxsize >= 2 ** 32:
import SceneKit
class TestSCNMaterial(TestCase):
def testConstants(self):
self.assertIsInstance(SceneKit.SCNLightingModelPhong, unicode)
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
8b7b56add43227c30c4f35edb28e313454c621e3 | 6d2af2903eec2c2afe0394d8d9053cee4aec40d5 | /src/main.py | ed4074cac2a8ebde32ac7e0bf75af0ef74f2e324 | [] | no_license | herewestand/ducking-bear | 6e0e264546552b5f8cb26b27969c2e06c5296b95 | d11b029276b3ba6d928701f36d64ce11da61b397 | refs/heads/master | 2021-01-13T02:14:27.778236 | 2014-01-19T21:52:17 | 2014-01-19T21:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | '''
Created on Jan 15, 2014
@author: Knightmare
'''
from circuit import NAND
from circuit import AND
from circuit import OR
from circuit import XOR
from circuit import XNOR
from circuit import NOR
if __name__ == '__main__':
p=NAND(input1=1,input2=1)
x=AND(input1=p.getNANDcarry(), input2=1)
print(x.getAND... | [
"ivanbravo714@gmail.com"
] | ivanbravo714@gmail.com |
a4ad6e33db53eed60982e79cb3e0d0d0155285eb | 63b285256f049d4e1defa2ef8c548e66d84ca63b | /venv/Lib/site-packages/sqlalchemy/testing/plugin/pytestplugin.py | a0729cc0c47511578e6d9b786ec475d13ff5d6af | [] | no_license | MaxOng94/Flask-tutorial | d5ea20fa370cdf563e5e0cc301faade94a4f1346 | e17dfab71fc9ddde452c6dfb758890d3b3f7d304 | refs/heads/master | 2023-04-03T03:42:05.283274 | 2021-04-12T00:18:52 | 2021-04-12T00:18:52 | 295,922,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,720 | py | try:
# installed by bootstrap.py
import sqla_plugin_base as plugin_base
except ImportError:
# assume we're a package, use traditional import
from . import plugin_base
import argparse
import collections
from functools import update_wrapper
import inspect
import itertools
import operator
imp... | [
"Max_Ong_@outlook.com"
] | Max_Ong_@outlook.com |
26e408ff7b8ea76f1a3851880d6af619017a2b21 | 57b5966315e50444087f0232f19a0f32e62c8dc5 | /src/main/generic_cpu/test5_1/build_program_options_links.py | 4364e4fd5a3fd4ad298feb718caa7ceffc59b301 | [
"BSL-1.0"
] | permissive | cicerone/kosim | b44b6e29ffddd69f18a1ad7463c2a9cba0b81a48 | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | refs/heads/master | 2021-01-22T06:36:56.915921 | 2011-09-10T05:38:19 | 2011-09-10T05:38:19 | 377,484 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | #!/usr/bin/env python
import os
current_path = os.getcwd()
cmd = 'ls'
print "==================="
print current_path
print "==================="
cmd = 'ln -s ' + current_path + '/program_options/options_builder.h ' + current_path + '/main/generic_cpu/test5_1/options_builder.h'
os.system(cmd)
cmd = 'ln -s ' ... | [
"cicerone_mihalache@yahoo.com"
] | cicerone_mihalache@yahoo.com |
18ab42c276337f57636ec03c57500e23dd33eeda | d57f6c045c7b07dd53ee80982005beb33450b64b | /migrations/versions/b75221b7534f_.py | 80700eb2975f945de0b9aab80daaa6d3a076c042 | [] | no_license | gwynethbradbury/ouss_ball | 7df0ccafd42bd8d6fd22816c71fbe9a6a852351a | 1115fe316f7c1ee1407017a60a054b1f7291f331 | refs/heads/master | 2023-05-11T18:36:29.921936 | 2018-03-22T15:56:52 | 2018-03-22T15:56:52 | 122,100,136 | 1 | 0 | null | 2018-03-22T13:55:05 | 2018-02-19T17:58:55 | PHP | UTF-8 | Python | false | false | 641 | py | """empty message
Revision ID: b75221b7534f
Revises: 57bc3837370a
Create Date: 2016-01-11 19:56:43.653390
"""
# revision identifiers, used by Alembic.
revision = 'b75221b7534f'
down_revision = '57bc3837370a'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
### ... | [
"samuel.littley@toastwaffle.com"
] | samuel.littley@toastwaffle.com |
bd0fab02a5fbbadc2955432d86b4c0f514793a5d | 1817aca734cda258cbbfd9e13fbf040d76824621 | /aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/SetLogsDownloadStatusRequest.py | 3f5de92cf81226eceacc5ace8c2ca2a158173dc2 | [
"Apache-2.0"
] | permissive | sdk-team/aliyun-openapi-python-sdk | 4bd770718e70e31f19e1e322727c27ba74d9fb80 | 996cb07bfcf010fe3ab65daa73d26df2f3b6e97f | refs/heads/master | 2022-08-04T13:11:56.729215 | 2022-07-25T10:01:10 | 2022-07-25T10:01:10 | 183,356,741 | 0 | 0 | null | 2019-04-25T04:33:24 | 2019-04-25T04:33:24 | null | UTF-8 | Python | false | false | 2,308 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
0396db19461d11a0434ffe45dea96486a92f557d | c4ca9ceacbca44dae4616c5b21b29d033a199c54 | /Numerikal Methods/RCL.py | e5846cbe97f54eef5d15df0ba56f2ca0f3b2f0fe | [] | no_license | Fahmi-adzkar/Komputasi-Gelombang | a09f273e54daf913280a9dd6aa028b8b46fb1b73 | 74ebfea65bf2edf47148c8bbdc937cf9bb060a4e | refs/heads/master | 2022-10-21T06:48:17.676499 | 2020-06-14T13:01:33 | 2020-06-14T13:01:33 | 258,963,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from matplotlib import pyplot as plt
import numpy as np
R = 10.0
L = 20.0
C = 2.0e-6
w = 157.0
V0 = 10.0
N = 4000
t = np.linspace(0, 20, N)
#print(C*C*R*R - 4*C*L)
q = np.zeros(N)
rq = np.zeros(N)
particular = np.zeros(N)
alpha1 = -0.5 * (C*R - np.sqrt(complex(C*C*R*R - 4*C*L))) / (C*L)
alpha2 = -... | [
"noreply@github.com"
] | noreply@github.com |
e2d2378456b3bdf8a5030177685e67b9cf7dc3ee | aed701e4aa8cac8084988ff59ac84954f617bff3 | /Data Science Brazil Marathon/Week_01/Python Boothcamp/soma dos elementos.py | 990696eed643e33f762c4bc0600920d8bd70fab2 | [] | no_license | lebaruch/Courses | 4f1e4fe69c14931eebcd12374fffc90af1283d33 | 446a6e53359f06840abc97770dbe535168e7d96c | refs/heads/master | 2020-04-12T21:10:44.670379 | 2019-02-06T16:17:11 | 2019-02-06T16:17:11 | 162,755,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #Entrada de dados
n = int(input())
x = input().split()
for i in range(len(x)):
x[i] = int(x[i])
#for loop
total = 0
for _ in x:
total = total + _
print(total) | [
"32648733+lebaruch@users.noreply.github.com"
] | 32648733+lebaruch@users.noreply.github.com |
88527c65331eeed22277879b45bee253d707fccd | 5d2d7b1664df2e2f3eb925e778df0eb28a4c9d31 | /abc181/c.py | 72ec609d2d8ee63a9278bd1a460f292ecc3135fd | [] | no_license | nsmr-sor/atcoder | 149bdff9f584b07eaac1024ccc0b80610baecdda | 103f6450d2f060b5d4acb69963a5c7035269faf5 | refs/heads/main | 2023-02-19T13:10:49.272947 | 2021-01-17T16:20:14 | 2021-01-17T16:20:14 | 327,569,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # ✅
from sys import stdin
import math
def main():
input = stdin.readline
n = int(input())
ans = 0
xy = [list(map(int, input().split())) for _ in range(n)]
d = []
d0 = 0
for i in range(n):
for j in range(i):
for k in range(j):
x1 = xy[i][0]
... | [
"nsmr.sor@gmail.com"
] | nsmr.sor@gmail.com |
8411f21b811eca560091444108d42f0dc1514fce | 951a3c8d6ec3d4e5f0718b8e6c92348196e5ebbf | /mysite/polls/migrations/0003_remove_question_question_prompt.py | e82e0fccbdf3a513a36859ca9de862621ece514d | [] | no_license | aspiringguru/learnDjango | 6f3b178381cd8037f9c954e7cc49f68d6a8b3b4c | 24ac82293b109ad36bb375e32983154b4de23470 | refs/heads/master | 2020-12-10T23:00:33.479558 | 2020-01-15T08:46:18 | 2020-01-15T08:46:18 | 233,736,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # Generated by Django 2.2.9 on 2020-01-15 00:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0002_question_question_prompt'),
]
operations = [
migrations.RemoveField(
model_name='question',
name='question_pro... | [
"bmatthewtaylor@gmail.com"
] | bmatthewtaylor@gmail.com |
28260c0c3fdb9c630f17b72bb8b5f4bddf3d0d23 | 717a1d83b2a70987e09666a4f5e5b7b1a63e103e | /gen_cont.py | 6321748d61d8e8e94acbfb11d1cff4207ab98d7f | [] | no_license | angest1000/CBPythonPtzi | 041426ac6a3160242fda7c233e7d3f5e705cb562 | efe20c86bd1df653fc8509929f30481dfc13c83f | refs/heads/master | 2022-11-24T10:36:36.810243 | 2020-08-02T15:12:41 | 2020-08-02T15:12:41 | 284,171,017 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | import random
def generar_contrasena(longitud):
mayus = ['A','B','C','D','E','F','G'
,'H','I','J','K','L','M','N'
,'Ñ','O','P','Q','R','S','T'
,'U','V','W','X','Y','Z']
minus = ['a','b','c','d','e','f','g'
,'h','i','j','k','l','m','n'
,'ñ','o','p','q',... | [
"angest1000@gmail.com"
] | angest1000@gmail.com |
4754f4b9498095bafa3fd040f74cfafe16bd2007 | 0033e322b2d0dee963ecb4ba624ba0c4a980b58d | /pythonBasics/ifThisThenThat.py | 1ff34c4a3ddf61efd0224de2c66523bfabc8256a | [
"MIT"
] | permissive | GavinThomas1192/pythonBasics | 77687fc0975e06c986db85e34bbe8d109b3fd01d | be968f75a823543d8cb39b477150c45f54e933fd | refs/heads/master | 2021-09-03T11:13:45.486975 | 2018-01-08T15:58:51 | 2018-01-08T15:58:51 | 111,608,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | age = 25 * 365
if age < 10000:
print('Wow, you\'re young!', 'Age = {}'.format(age))
else:
print('Wow, you\'re old!')
# Make admitted = true if age is 13
admitted = None
if age >= 13:
admitted = True
else:
print('Age isn\'t 13!')
days_open = ['Monday', 'Tuesday', 'Wednesday']
days_open_string = ('... | [
"gthomas1192@gmail.com"
] | gthomas1192@gmail.com |
27ed906ab1dac7b2975ec6cfaf6a6c99b4f6056f | cbb4d4b58bc382b9d0cf7ea4b2d7e767ac793283 | /study/bin/pip | 9e55dc4683809303f40f85bd1ef24ebc2e49a840 | [] | no_license | GDUT-Condi/django-model-test | 46166969dde8b9571e5b4dc6ced5b53e6ddb44eb | 1372f13419fadab0dfd97375b73abc055f329239 | refs/heads/master | 2021-05-15T09:55:58.830653 | 2017-10-25T09:34:29 | 2017-10-25T09:34:29 | 108,227,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/condi/django-model-test/study/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"465982240@qq.com"
] | 465982240@qq.com | |
3d9b92e848fdcae5c757c763e97c33e57548532f | 2a9c651a11ded845c0d6e662a1bdfeb8322ab8e4 | /code/src/sinogram.py | 7df277efb3eefbb5d7d618d11a082841ac9a2df2 | [
"MIT"
] | permissive | tomboulier/dcc-translation | 33a369b46b2ec185ca29e62fe75c6ac003954946 | 3463346918e07ffa15bb6f5a3e39a44b992da353 | refs/heads/main | 2023-04-08T01:43:16.155933 | 2022-03-27T14:02:01 | 2022-03-27T14:02:01 | 356,943,838 | 0 | 0 | null | 2021-04-12T20:09:32 | 2021-04-11T18:12:13 | TeX | UTF-8 | Python | false | false | 2,341 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from scipy import interpolate
class Results(object):
"""
Encapsulation of everything that is computed by Simulator
"""
def __init__(self, params, source, detector):
self.params = params
self.source = sour... | [
"boulier.thomas@gmail.com"
] | boulier.thomas@gmail.com |
1b436fbdb01b1c36642b2c16d65b37fe7528f948 | 951e8f73b3a7b160aaa7a9f63ef87b7af6dd367d | /utilities/url_utilities.py | 40b167f0f5a080dfe03339f03825c70a8d97e1c2 | [] | no_license | nickflanagan/PageSpider | adbbf3a11e677edf37d844662c428a638794140e | 7f06f29183ab8aee5039b181e5d24126e1b94f65 | refs/heads/master | 2020-05-09T19:14:53.696883 | 2019-04-17T03:02:04 | 2019-04-17T03:02:04 | 181,372,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | import re
import string
from urllib.request import urlopen
from bs4 import BeautifulSoup
def load_urls_from_files(file_path: str):
try:
with open(file_path) as f:
content = f.readlines()
return content
except FileNotFoundError:
print("the file {0} could not be found".fo... | [
"flanaganna@gmail.com"
] | flanaganna@gmail.com |
9899e61e838316ce1b3b991f7e30f2cdf4ceda1b | 2f73618f69cf43eed83d3d2af52a5618bb87d74f | /Projects/TechRecommender/python_51job_8_12/data_save.py | bd7e3915fd553f8ac570553d43ccd026476f9866 | [] | no_license | JerryLiuLYU/PyLYU | a4c18309912d94f1fb8ff2acb21a031bfc1f0888 | 096586e49a42bf2e386f9c9d025271667d1449b3 | refs/heads/master | 2021-06-16T08:25:01.630744 | 2021-03-24T12:35:49 | 2021-03-24T12:35:49 | 165,650,036 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from python_51job_8_12.crawling import *
def save(sheet_tab, content):
sheet_tab.insert(content)
| [
"xiatiandeyu1997@126.com"
] | xiatiandeyu1997@126.com |
929ee08aee8171b652e862af8479fa10eae5a457 | 6984724d0466d477635b23d073affa9b00f01f67 | /Tasks/Gerasimchik_Tasks/Task3/HomeWork3.py | b356f9898d1a93b9941f46ea4a68afa882cd1919 | [] | no_license | RomanPutsilouski/M-PT1-37-21 | 202414fac782e6c68f741e55f9b7697f0c974f45 | ceef9b4e6bcff2a9033615ec761f0e2e73c9467e | refs/heads/main | 2023-05-30T21:10:22.404817 | 2021-06-30T00:26:29 | 2021-06-30T00:26:29 | 348,462,785 | 1 | 0 | null | 2021-06-05T15:44:27 | 2021-03-16T19:06:57 | Python | UTF-8 | Python | false | false | 1,803 | py | import io
def format_text(page_width):
with io.open('text.txt', 'r', encoding='utf-8') as text_file:
raw_text = text_file.read()
result_text = ''
for line in raw_text.split('\n'):
inter_list_1 = []
inter_list_2 = []
string_length = 0
for word in line.split():
... | [
"gerasimchick@tut.by"
] | gerasimchick@tut.by |
ba9d90bc4d7be681860622542269363eb3dd8008 | 0228981cc246e8fdc4f04b8084a546efb4410009 | /app.py | 8173e682d0857cf509f4a7efc8edee59a6ea2b38 | [] | no_license | prates/amamentsp | 5545c3419cd7aa2e08718d00e41f249b8b7c0752 | d34a54cb4b168c5b00338796ad164a49a5b68d2f | refs/heads/master | 2020-04-10T23:19:48.032945 | 2018-12-11T14:56:28 | 2018-12-11T14:56:28 | 161,349,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,709 | py | import json
import logging
import os
import sys
import flask
from flask import Flask
from flask import request
from app.address_controller import Address
from app.auth import Auth
from app.controller_donation_user import DonationControllerUSer
from app.donation_institution import DonationInstitutionController
from ap... | [
"alexandre.b.prates@gmail.com"
] | alexandre.b.prates@gmail.com |
512c76ab159a877dea30fe399f3220371dd2baf0 | 51de6a2a2ce8882ee6462cd1076c7b9675830531 | /0x0F-python-object_relational_mapping/2-my_filter_states.py | 20f1742598a0848dd05b4b932cf3a0fffab10e70 | [] | no_license | anamariaroman/holbertonschool-higher_level_programming | 9b479c9b1484e4388ec0a4390cda81480626725a | 5d75ccc35dfc92887d0f9a9e0b0773ed741d179e | refs/heads/master | 2023-08-17T23:40:25.164128 | 2021-09-23T04:57:43 | 2021-09-23T04:57:43 | 361,869,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/python3
"""
takes in an argument and displays all values in the
states table of hbtn_0e_0_usa where name matches the argument.
"""
import MySQLdb
from sys import argv
if __name__ == "__main__":
db = MySQLdb.connect(host="localhost", port=3306, user=argv[1],
passwd=argv[2], db=a... | [
"2979@holbertonschool.com"
] | 2979@holbertonschool.com |
5859434341568411959a48e0941bf29a6dbeaeae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_091/ch4_2020_09_04_14_40_54_928784.py | 652261e221bca6774cbba41cd2b6e29cac4be123 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | def classifica_idade(idade):
if idade <= 11:
return ('crianca')
if 12<=idade<=17:
return('adolescente')
if idade => 18:
return('adulto')
a= 13
b=classica_idade(a)
print(b) | [
"you@example.com"
] | you@example.com |
31e70a733b33aad326a8f4db00164efbc50b2eab | 881e5b3529f6030db8f307df477a2b7e6e1966a9 | /ascii_reader.py | c6c3d124d9cc1c002a28ed4cc654c73c060cc27e | [] | no_license | hanjae1122/PSID | f92152705947b07da2a6da6705d868cc031f9a00 | 8383626cb45decb29c5d450cc4a8737703e374ed | refs/heads/master | 2020-03-11T11:30:20.367870 | 2018-04-26T23:37:13 | 2018-04-26T23:37:13 | 129,971,282 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,291 | py | import os
import re
import pickle
import pandas as pd
INDEX_TYPE = 'sps'
class ascii_:
def __init__(self, f_path, f_name, is_fam):
self.file_path = f_path
self.file_name = f_name
self.is_fam = is_fam
def _get_index_path(self):
return os.path.join(self.file_path, self.file_na... | [
"han.jae1122@gmail.com"
] | han.jae1122@gmail.com |
96b772958a9c0a774904dcf77ee5a9f9143e17c7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/2cb4a725b4cb9be160d194f7b47df6c98709ebfd-<create_connection_team_slave>-fix.py | d3c209e5c778414dddc980ca9daa3ffc050223ca | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | def create_connection_team_slave(self):
cmd = [self.nmcli_bin, 'connection', 'add', 'type', self.type, 'con-name']
if (self.conn_name is not None):
cmd.append(self.conn_name)
elif (self.ifname is not None):
cmd.append(self.ifname)
cmd.append('ifname')
if (self.ifname is not None):
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6403ad2b98e96221396b32ae056c4758dbbd2e87 | dcfc53351011ca78b5856716185531c23b159a5a | /scripts/pkgs/lxml.py | 5e632e0fa4a0e03dd7f729bcf0c13dcab8a5103b | [] | no_license | PERCE-NEIGE/pkg-sigil-pour-Linux | 91a2ac1af87c7e1c2c5fd4fb757707281543fec7 | 410f3ed0a648a5a21388b494a2367296dc62bb2f | refs/heads/master | 2020-05-29T23:18:31.519552 | 2018-01-27T21:36:05 | 2018-01-27T21:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
# Sigil adaptations made by Doug Massay 2017
from __future__ import (unicode_literals, division, absolute_import,
print_function)
import shutil
import os
from .constants impor... | [
"dougmassay@users.noreply.github.com"
] | dougmassay@users.noreply.github.com |
63a6fa0d3a6a84c3ab7e40fa5567d36680c4b923 | 20428460c043318f96a7bb977a695a7b716b26d9 | /Django/Users/apps/dojo_ninjas/migrations/0001_initial.py | e22173a1fbc57b7ab0a095b311cd900adf96599b | [] | no_license | sjamal2012/Python_apps | 4498027f63904cbb10e05f9dac532adbcb57b418 | d182af3e46bc9d495935f5da96eea2fe4ff5fd56 | refs/heads/master | 2020-03-09T15:50:12.417360 | 2018-04-10T03:39:47 | 2018-04-10T03:39:47 | 128,869,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-12-13 05:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"sammyjamal12@gmail.com"
] | sammyjamal12@gmail.com |
872272668856c95b98a8b112c51f14e2082b0a8e | 3481a08fa87c8106448388558258ee91438a3db6 | /paramz/parameterized.py | 45729a18dfe37ffa46f31cc3584b3ff5ef040433 | [
"BSD-3-Clause"
] | permissive | AlexGrig/paramz | 2b96c727e3d5f0843badb114e9a76ff14d6504bf | b7b2253fc4af88e5fb0f87cd9248b9699adaed0e | refs/heads/master | 2020-12-11T02:04:46.168479 | 2016-03-08T15:52:52 | 2016-03-08T15:52:52 | 53,961,967 | 0 | 0 | null | 2016-03-15T16:48:03 | 2016-03-15T16:48:03 | null | UTF-8 | Python | false | false | 20,294 | py | #===============================================================================
# Copyright (c) 2015, Max Zwiessele
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of sour... | [
"ibinbei@gmail.com"
] | ibinbei@gmail.com |
b78e377d1debde7999508f7dd2c2807e6db66e1c | 3bfe20b4fb2f0a7c38d33b9928e730fddc436499 | /src/dispatch/plugins/kandbox_planner/rule/travel_time.py | ca670e7f2e5bb01709a5ff282609725588e1cc75 | [
"Apache-2.0"
] | permissive | ajunlonglive/easydispatch | 27cdffd9161ee49efff7e55e4aadee43b89650d7 | 2cf32a374d12c804ff396f90b789c2a838003c5d | refs/heads/main | 2023-06-17T11:13:11.224370 | 2021-07-05T11:45:24 | 2021-07-05T11:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,032 | py | import dispatch.plugins.kandbox_planner.util.kandbox_date_util as date_util
from dispatch.plugins.bases.kandbox_planner import KandboxRulePlugin
class KandboxRulePluginSufficientTravelTime(KandboxRulePlugin):
"""
Has the following members
rule_code = "sufficient_travel_time_previous_n_next"
rule_nam... | [
"qiyang.duan@alibaba-inc.com"
] | qiyang.duan@alibaba-inc.com |
317f64cccda875dd79f73e6462bd48afe8bf589d | 235f96d4b2e0fb672f20be75b114375744efc9c3 | /Unindo Dicionários e Listas.py | edbea666c95d0fa593348a6d4203548d82c2808b | [] | no_license | anderportela/Learning--Python3--Curso_em_Video | f13e1c47a628aa6dee2ba883a82c36adf751d6f7 | 3b0abe6367d04b5043207ddacf29a4af623ebadf | refs/heads/master | 2020-06-29T03:34:48.422798 | 2019-09-15T00:37:50 | 2019-09-15T00:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | print('-='*50)
print(f'\033[1;31m{"CADASTRO DE PESSOAS":^100}\033[m')
print('-='*50)
pessoas = []
pessoa = {}
si = mi = 0
while True:
pessoa.clear()
pessoa['nome'] = str(input('Nome: '))
while True:
pessoa['sexo'] = str(input('Sexo [F/M]: ')).upper()[0]
if pessoa['sexo'] in 'MF':
... | [
"noreply@github.com"
] | noreply@github.com |
1c32f269b6561e49a363802f8ff3ae5b4377c9b3 | 37ab6b7a61e8e50064db046dce7863d02c969d0a | /Assignment 3/part1.2(2*2over).py | 5bf43b4d3a5872ffdaed1f3441d46b43e1c95962 | [] | no_license | jamesfrj/ECE-448 | 9dc31f732ebb0b98887efdfeb91424f9d6404c30 | d9493ef0ec4409c1eb76b5f40e0e321037a2c47b | refs/heads/master | 2021-09-05T09:14:26.522583 | 2018-01-26T00:10:53 | 2018-01-26T00:10:53 | 112,629,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,949 | py | import math
import time
#important numbers
NUM_TRAINING = 5000
NUM_TESTING = 1000
NUM_DIGIT = 10
NUM_PIXEL = 784 #28*28
IMG = 28 #Dimension of images
#initiate a dict with size of 729 = 27^2
def init_likelihood():
ret = {}
for line in range(27):
for pixel in range(27):
ret[line, pixel] = [0]*NUM_DIGIT
retur... | [
"noreply@github.com"
] | noreply@github.com |
47a8b2b70036aab2a700572c2e5189691c8c06be | 3a31ca2fa0d24c2a9931ccc6bf516075bc091237 | /settings.py | 3bc0eb4067828adbe0f825ac6ab9aa7ced8cc448 | [] | no_license | TSLEFK/times4blog | 1f8b15b6530c5d813397055ec623e97f1d020efe | f72c95860009c7557f4671782a44292790857616 | refs/heads/master | 2020-04-10T17:06:19.657374 | 2018-12-10T12:09:27 | 2018-12-10T12:09:27 | 161,165,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import os
from os.path import join, dirname, abspath
from dotenv import load_dotenv
# dotenv_path = join(dirname(dirname(abspath(__file__))), '.env')
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
slack_incoming_webhook_pass = os.environ.get("SLACK_WEBHOOK_URL")
SLACK_INCOMING_WEBHOOK_URL = "h... | [
"satarn.sherlock@gmail.com"
] | satarn.sherlock@gmail.com |
ede6c7d72c0c171aa6623fb47d892a6213d9c836 | f4b273a9bf90c22f4df92b444cc04a7a451564b0 | /23_climbing_Stairs/climb.py | 3db0700064c184b4a74f8b9f55bd08b22aab7e3d | [] | no_license | RawandKurdy/snippets | ac7324b8720ffd618605d18359b35493f50655cf | 935da24ee15d68ab3a4e512f88f6a0418f25bba3 | refs/heads/master | 2020-07-29T11:21:47.206388 | 2020-07-05T09:35:59 | 2020-07-05T09:35:59 | 209,779,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Climbing Stairs - Interview Question -
# Asked By Apple and Adobe
# in Python
def climbingStairs(n):
r = [1, 1, 2] # Initial Result Set
if n <= 2: return r[n]
for step in range(3, n + 1):
r.append(r[step - 1] + r[step - 2])
return r[n]
n = 26 # Steps
ways = climbingStairs(n)
print(ways)... | [
"rawand.farhad@gmail.com"
] | rawand.farhad@gmail.com |
d00b4da42d9cff46a10c86af99671a754526a5f8 | 90fb6f665e6c8c83f1c8207e0a2e793833fc3c6d | /ml_intro/ch10/__init__.py | b2079b2214f6ff5b5f2948dfb7641c56e3fc30c9 | [] | no_license | hello-wangjj/Introduction-to-Programming-Using-Python | 8698ced3067714ab639328f5e3e78ccbbb4905c4 | ff24118d1779d589e37aa6ab88002176e8f475c3 | refs/heads/master | 2021-09-13T22:29:00.355794 | 2018-05-05T07:28:29 | 2018-05-05T07:28:29 | 57,047,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | __author__ = 'wangj'
__date__ = '2018/01/20 00:01'
def main():
pass
if __name__ == '__main__':
main() | [
"wangjj886688@qq.com"
] | wangjj886688@qq.com |
d8f0a62231d4650d4d4bde11c4def29c92a68bb4 | bf46a059530990eb84b737ec737d3c7f6627407b | /mitosCalsification/plot.py | 404a77cd7505cbd2b2354065530d7a1fe0773e94 | [] | no_license | Claudio-Tapia/Mitos | 867fd93e8f193e4421f79ae3c168d39cd71db60a | d2b932021748b508b2fdff55f3183d7e5949f6bf | refs/heads/master | 2020-04-18T17:20:39.481771 | 2019-02-04T17:18:20 | 2019-02-04T17:18:20 | 167,652,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | import numpy as np
import os
from sys import platform
from sklearn.metrics import roc_curve
from keras.utils.np_utils import to_categorical
from sklearn.metrics.ranking import roc_auc_score, precision_recall_curve, average_precision_score
def print_plots(metrics_names, train_metrics, val_metrics=None, test_metrics=N... | [
"claudio.t@outlook.cl"
] | claudio.t@outlook.cl |
c2ec9b6fb96c92ea4ea41a5c668b29324b7a0789 | b7fad8c328d8b55eb51d14252f050190fa06e10d | /app/models.py | 80b6ad8a5d58da55e1588e460304141ee10a6c37 | [] | no_license | hail-ans/demo-for-valiance | de9a95a4e8811d50e9128936b3d9d790b5444781 | 8573a0fc60f03913e368bb21b3363a87b4147c67 | refs/heads/master | 2023-03-12T21:18:04.060797 | 2021-02-28T09:48:32 | 2021-02-28T09:48:32 | 343,067,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # app/models.py
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from app import db, login_manager
class Person(UserMixin, db.Model):
"""
Create an Person table
"""
# Ensures table will be named in plural and not in singular
# as is the ... | [
"72516466+hail-ans@users.noreply.github.com"
] | 72516466+hail-ans@users.noreply.github.com |
609e68b30e1727e410a4945deb16ae799e18594c | e336bbe9ea2ad378b7cf801384109e1d1fdab6c5 | /DeepDream/vggClassifier.py | 405834dcafddb2dfa8a211051c0baac22df1124d | [] | no_license | viktor-ktorvi/Deep_Dream_PSIML6 | 531b0f0baaa8f43000c0f3ccc4a3d0cfccb2a03d | 1bb8e2dbd1b959c1721041751e9c82dfcc1e8258 | refs/heads/master | 2022-11-28T17:24:42.956558 | 2020-08-12T15:47:19 | 2020-08-12T15:47:19 | 285,327,037 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | import torch
import os
import numpy as np
import cv2
from PIL import Image
import torchvision.models as models
import requests
from matplotlib import pyplot as plt
import torchvision.transforms as transforms
from scipy.special import softmax
from utils import *
def predictVGG16(filename, topN=10):
d... | [
"noreply@github.com"
] | noreply@github.com |
7b858252e74e2b4db0213fec0841d531fde9f5a3 | a46e5e4d4ed79f540e7709c7cbf4f9cd5ebbad7d | /price-watcher/main.py | 9e2f3c6451c54fb698387893d46f3f3fff54a98e | [
"Apache-2.0"
] | permissive | Ashton-Sidhu/prefect-home-automation | 7da2583a86f9cc5e7c75b1061824ff36532fde5e | 9ed1235c896e40f462f4f90f45cace86018c58ae | refs/heads/master | 2023-04-18T17:08:19.539830 | 2021-05-02T20:03:16 | 2021-05-02T20:03:16 | 295,056,123 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | import requests
from bs4 import BeautifulSoup
from prefect import task, Flow, Parameter
from prefect.tasks.notifications.email_task import EmailTask
from prefect.tasks.control_flow import case
@task
def get_price(url):
"""
Get price of product from a URL.
TODO: Change this to get the price of your produ... | [
"ashton.sidhu1994@gmail.com"
] | ashton.sidhu1994@gmail.com |
58b1208a3d6f193b5184242a3e0822f89b75ca2a | 87657ddcc5df51e0f8a4f96857eecbf7c742864c | /methods/matlab/qda.py | 58691fa029ad397a5ede566aa93d6dc5e56d1a6a | [] | no_license | settur1409/benchmarks | f50fb3785d6f0caf4d0ea5bb915455aca3b065fc | cfd8a139a09b65b9468af30a643ae136ae8c813c | refs/heads/master | 2020-06-29T21:48:11.382866 | 2019-02-21T18:50:25 | 2019-02-21T18:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | '''
@file qda.py
Class to benchmark the matlab qda method.
'''
import os
import sys
import inspect
# Import the util path, this method even works if the path contains symlinks to
# modules.
cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(
os.path.split(inspect.getfile(inspect.currentframe()))[0], ... | [
"dewangsultania@gmail.com"
] | dewangsultania@gmail.com |
2c6fb144b59995510b219aca23920c4346ded296 | 77e29df803e7a7e0cf2c8edf1a734e2723f79f37 | /buildmenuviews/menus2.py | c94fcd4815ac9b1498460350601b5eec38dee15d | [
"MIT"
] | permissive | acadianshadow237/BA_MDI1 | b6db7633fa8dfddd3141cb331899344d762d1498 | 73e0e87c15ff083ce860f7a09fa2de3a3c71c215 | refs/heads/master | 2023-08-28T04:54:21.497942 | 2021-10-18T18:42:19 | 2021-10-18T18:42:19 | 396,855,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'menus2.ui'
##
## Created by: Qt User Interface Compiler version 6.1.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
####################... | [
"acadianshadow237@gmail.com"
] | acadianshadow237@gmail.com |
e1f6740a875c434bf2e70839f5493f69bb4e96d7 | 64b6364b2cea4e49cc1768e159ceb3fb438fc096 | /src/metric_runner.py | dc4d64f00f77ed24aac17d9f471364a1a419b32d | [] | no_license | nkartashov/4genome_tester | 902828f2a4373df9888788d4cb98398700259e7b | 547446b9f38ee69177d8a12bb171c1d2ae993cad | refs/heads/master | 2016-09-06T01:08:24.565208 | 2015-06-04T22:55:17 | 2015-06-04T22:55:17 | 34,047,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | __author__ = 'nikita_kartashov'
from src.graph.statistics import get_distribution_metric, \
get_simple_paths_metric, \
get_bp_distance_metric, \
get_dcj_distance_metric, \
get_ca_metric, \
get_mca_metric, \
get_cumulative_metric_batch
from .metrics.metrics import Metrics
ANNOTATED_SINGLE_METR... | [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
65ef39321430c083fac304d0ea35f332bcf18662 | f8c164a1e0bab9d2816beb6fe2a7dd36759d1815 | /Python_Sintaxis/Operadores_de_asignacion.py | 6355f921595b162ff44ecbac067985c0ead9947c | [] | no_license | Solbanc/Programacion_python | e66daaf3dc7641f3934287b8090098889c6a2ac8 | 75e2d348d690ae659584cdec40841fd83722ae5e | refs/heads/main | 2023-08-14T18:03:29.111564 | 2021-09-30T05:07:37 | 2021-09-30T05:07:37 | 409,835,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | nombre = "Hola "
nombre+= input("Escribe tu nombre: ")
print(nombre," Esto es le incremento y decremento de una variable \n")
print("Incremento o Decremento ")
x = 1
print("El valor inicial de x es: ",x)
x += 1
x += 1
x += 1
x += 1
print("El valor final de x es de: ", x ,"\n")
print("Decremento o disminucio: ")
pr... | [
"sormack.javi@gmail.com"
] | sormack.javi@gmail.com |
36a11457b2ad103a18565c44f60b426d4dc20b3e | 99d436394e47571160340c95d527ecadaae83541 | /algorithms_questions/ch18_graph_theory/q45_1.py | 0053a3fd5f07e6c424f2a633246622ae14a46a7f | [] | no_license | LeeSeok-Jun/Algorithms | b47ba4de5580302e9e2399bcf85d245ebeb1b93d | 0e8573bd03c50df3f89dd0ee9eed9cf8716ef8d8 | refs/heads/main | 2023-03-02T06:47:20.939235 | 2021-02-08T05:18:24 | 2021-02-08T05:18:24 | 299,840,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | """
최종 순위 - 2회차
"""
# 풀이 제한 시간 : 60분
# 2020/12/31 11:10 ~ 11:31
# 실패 - 자료의 사용(data[i])에 실수, 큐에 처음 초기화를 안함
from collections import deque
"""
# 위상 정렬 알고리즘에서는 사용할 필요가 없다.
def find_parent(parent, x):
if parent[x] != x:
parent[x] = find_parent(parent, parent[x])
return parent[x]
def union_parent(parent,... | [
"seok9376@gmail.com"
] | seok9376@gmail.com |
b5faf82ad73aadaff1bd1970efa1a7fe32bb250f | bf15a97a377bc49495a8c278cd247387a08361fd | /intersight/models/hcl_exempted_catalog.py | 03d80031ad546ce01d077c8a759720408006b260 | [
"Apache-2.0"
] | permissive | movinalot/intersight-python | ffcb434e5fdf3f6e857dd967c794a64b2d2e05de | cdc3b082d75eac93b74029ab610e16d3008fdd8c | refs/heads/master | 2020-12-18T15:46:06.780834 | 2019-10-29T00:39:49 | 2019-10-29T00:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,346 | py | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-961
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class HclExemptedCatalog(object):
"""
NOTE: This cl... | [
"ategaw@cisco.com"
] | ategaw@cisco.com |
de8de4a17ab7c78b43d4dc1dd862aaa4d5ba5ef9 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/DestroyVirtualClusterRequest.py | f34fbf62e2477c455d21adcac88c4659473afa70 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 1,456 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2418a512b3ff7dfd65b3964bc9f6b7e1a524eccc | 418e26d0a5db209cff7516c692195d83a6125460 | /day_12/tast_02.py | 81e1a87326847ce5482032e4c32f6e8293c9b449 | [] | no_license | Rosayme/Python_class | 6b7a728d82bbdfe7cd3e8e4a556afaf291b5a832 | 06448b8d091e7784c03f5efc13d51fa6cc5ad628 | refs/heads/master | 2020-03-21T09:16:52.417842 | 2018-06-23T10:33:43 | 2018-06-23T10:33:43 | 138,391,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import time
# 引入时间(防止报告被覆盖)
now = time.strftime('%Y-%m-%d_%H_%M_%S') #获取当前时间
file_path = 'test'+now+'.html'
print(now)
# 断言 测试用例的判断
# assertEqual(a,b) a==b
# assertNotEqual(a,b) a!=b
# assertTrue(x) bool(x) is true
# assertFalse(x) bool(x) is false
# assertIs(a,b) a is b
# assertIsNot(a,b) a is not... | [
"noreply@github.com"
] | noreply@github.com |
aa246a141acec672c194e15bd3b7d965d9edefad | 1f5553dbea14aae5040f1cb21f24a3f9052ec38f | /api_v1/middleware/__init__.py | 2499d14d58a4f386cbac3ce65e7c20c3dbb37589 | [] | no_license | Igorxp5/applada-api | ce79639a4fbbbbca9441994424c48ecbaa62379c | 93bf089412ebf17fb4ffec0186e5ea488abc6df2 | refs/heads/master | 2022-05-16T23:53:56.392365 | 2020-02-24T13:20:41 | 2020-02-24T13:37:36 | 231,856,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from rest_framework import status
from django.utils.deprecation import MiddlewareMixin
from django.http import JsonResponse
from api_v1.core import not_found_json
class NotFoundMiddleware(MiddlewareMixin):
def process_response(self, request, response):
if (response.status_code == status.HTTP_404_NOT_FOU... | [
"rogixp5@gmail.com"
] | rogixp5@gmail.com |
01f1a0827812125e6f431ac5d30b4e0d93d110aa | 1488596157b920b47daeba65bb7461b45d1e1b99 | /NotepadSI.py | c4818e72d3c16067ca3ef7d32b738536c2287860 | [] | no_license | Elliot-G-jackson/Simple-GUI | 9e1a64d8e467c8d189c854ab2c0dfe01466a0d39 | cd34c41138cd5dfcbf011bff231e9426b653b763 | refs/heads/main | 2023-08-18T10:59:36.898479 | 2021-10-09T14:17:30 | 2021-10-09T14:17:30 | 415,328,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | from tkinter import *
from tkinter import ttk
import tkinter as tk
from tkinter.filedialog import asksaveasfile
from tkinter.filedialog import askopenfilename, asksaveasfilename
#Main window
window = tk.Tk()
window.title("Text Editor Application")
#Save file system
def save_file():
filepath = asksavea... | [
"noreply@github.com"
] | noreply@github.com |
2fe994984c180f8dbc2d5226e736a78e48b6e485 | 9880e22384803f7e575eb1b5b79be9945a7820bb | /main.py | 6bc164e65f68418d7be3ea4acab574a5476c875f | [] | no_license | Requinard/journalert | 5020c22b03aa8f723ea249e52eca97d96cc388f1 | 23f326f7a83bb31f3aab6f9d099906356fd176e3 | refs/heads/master | 2021-01-25T09:31:45.348900 | 2017-06-09T11:01:03 | 2017-06-09T11:01:03 | 93,845,243 | 0 | 0 | null | 2019-10-21T15:00:38 | 2017-06-09T09:58:22 | Python | UTF-8 | Python | false | false | 1,890 | py | import select
import json
import telepot
import os
from systemd import journal
priority = [
'Emergency',
'Alert',
'Critical',
'Error',
'Warning',
'Notice',
'Informational',
'Debug'
]
class TelegramBackend:
def __init__(self, config):
self.config = config['telegram']
self.bot = telepot.Bot(self.conf... | [
"d.diks94@gmail.com"
] | d.diks94@gmail.com |
a8ff70e74c31d7dfdefc8f66262b1bad05c5a1c2 | 7b98faf4dfff3efeb3138deeb1c99f1f85385c4f | /Dj/asgi.py | ea5739a210de96570868d042a3acbbaf56a43dae | [] | no_license | BBFallen20/Django_ItBooker | c120edca4324301c0a973cef472e6b0d9bbbb61f | bb0935233c0b239362530c1f917b79d887f7171b | refs/heads/master | 2023-05-09T00:40:12.317544 | 2021-06-02T16:36:31 | 2021-06-02T16:36:31 | 293,116,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
ASGI config for Dj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"Danila.333"
] | Danila.333 |
c069e09415f1defdc8d01514c6fd17aa75e89705 | 2e3c34fb789df9b221afdf11d3c71ee63ef255e8 | /python/python的类方法使用.py | d9e6089883bf316c4dc4b26e4418f7f198b3b0ae | [] | no_license | alexshenyuefei/python- | 9ada18993590fd1c167313b8d04a8f944f3369cc | e95ccd123554a8cd91ab2b985cf090d792fcefde | refs/heads/master | 2021-09-08T08:07:15.754648 | 2018-03-08T13:01:42 | 2018-03-08T13:01:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # python的类充当js里对象,是基本的数据结构,可以存储属性.
class calculator(object):
operand1 = 1
operand2 = 2
@classmethod
def add(cls):
# 全局变量在程序之中始终有定义的,局部变量在它的函数体内,以及嵌套的函数内始终有定义的.
# 这里的变量operand1,opearand2在函数外,需要通过解释器传入的cls,指定外部对象(这里是calculator)访问
cls.result = cls.operand1 + cls.operand2
calculat... | [
"906634214@qq.com"
] | 906634214@qq.com |
5241cc7c3a50e8e6b00d938dec0ec8ed871222fd | f0270ae7c1c35bd42a1bec0f63919d5aad015470 | /main_app/__init__.py | 54b0baeae4bcc64e485eb57282437b48c02d60de | [] | no_license | NBsyxx/Software_engineering | 5b8497c3c5f00c7c39bd823ddd1a1c75ecda437c | e6a96cf72a751d89735a0900be9a54c661d1f5c6 | refs/heads/master | 2020-08-14T16:37:34.737900 | 2019-10-10T01:41:40 | 2019-10-10T01:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import os
from flask import Flask
def create_app(test_config=None):
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
DATABASE=os.path.join(app.instance_path, 'main_app.sqlite'),
)
if test_config is None:... | [
"yx1215@nyu.edu"
] | yx1215@nyu.edu |
17fcaffaf0ef060efc8efdd572e9c98802867ee9 | 7bc3c786950a5a246dae8fb4e9ae5d87a45dacc8 | /prim_dijkstra.py | 583efe5348c084d33838deccf7d2d3698d25b0e2 | [] | no_license | dsabljak/Infmre | 0d76bf8fc063b878845695bb2367c0f473fadb98 | 0505c7e4c8c714d0ae1400a09e9203d9c3d3d557 | refs/heads/master | 2023-01-31T00:03:50.001178 | 2020-12-12T09:59:16 | 2020-12-12T09:59:16 | 302,101,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | class FileReader:
def __init__(self, path):
self.file = open(path, 'r')
self.nodes = set()
self.edges = []
self.edge_cost = dict()
self.parse()
"""
Data is written in .txt file like:
begin_node, end_node, cost, direction;
This method parses all ... | [
"dsabljak98@gmail.com"
] | dsabljak98@gmail.com |
7d455fe1a5c7e3d0f7e8897c95d81e07fe685f8e | 6c78029ef09dc24e3985afcb44e272194c8e244c | /System.py | d0337115a9e7529b9a4b571af7181bc87f5cf202 | [
"Apache-2.0"
] | permissive | Shimeshu/Login-system | a70d61af6598339bff91f6586b729e1b783c21fd | 71c47869615a31e0ea0dd019d8d778d9b2278cf3 | refs/heads/master | 2023-02-12T23:29:21.960373 | 2021-01-07T06:13:15 | 2021-01-07T06:13:15 | 327,310,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from Portals.Login import Login
from Portals.Register import Register
print('Welcome to the Login System!!')
user_input = input('Want to [L]ogin or [R]egister? -> ')
if user_input.lower() == 'l':
Login()
elif user_input.lower() == 'r':
Register()
| [
"shimeshu12345@gmail.com"
] | shimeshu12345@gmail.com |
96cdda7deaa7720cd3559f3d0b3e5accb90e9308 | 6c597d56ab500f8d0788b803fdfb9ab4dbb37a90 | /openregistry/assets/claimrights/tests/transferring.py | 29487148a1b9b1a3825f6e85e4ebbe8f092f72a2 | [
"Apache-2.0"
] | permissive | openprocurement/openregistry.assets.claimrights | 1671e55313aa69b073d1662a0fe16a8bd604f4fd | 8f8d59760da3b647730da9d56e656a6ef4d12302 | refs/heads/master | 2021-05-14T23:59:00.664485 | 2019-03-27T15:33:44 | 2019-03-27T15:33:44 | 104,233,542 | 0 | 10 | Apache-2.0 | 2019-02-06T11:28:28 | 2017-09-20T15:27:44 | Python | UTF-8 | Python | false | false | 549 | py | # -*- coding: utf-8 -*-
import unittest
from openregistry.assets.claimrights.tests.base import AssetTransferWebTest
from openregistry.assets.core.tests.plugins.transferring.mixins import AssetOwnershipChangeTestCaseMixin
class AssetOwnershipChangeTest(AssetTransferWebTest,
AssetOwnershi... | [
"leitsius@gmail.com"
] | leitsius@gmail.com |
cc0fb0e1305f44163f8acfc4e0a97aa557db9619 | 68b3d6369e895aadff8be90a662b9763348264e2 | /grep/work.py | 2c63dfe6d8c520fd4b85c71298be1d6fc1dca757 | [] | no_license | vidu120/myideas | 5af515eb595ef33fecb17fedbc71c001a05ef382 | c4fc02a60942651a16f8c6580c61cb47e1492f82 | refs/heads/master | 2022-12-19T12:28:53.042282 | 2020-09-17T18:47:06 | 2020-09-17T18:47:06 | 287,235,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | #!/usr/bin/env python3
with open("mine") as file:
for line in file:
print(line.rstrip("\n"))
| [
"vidhangoyal10@gmail.com"
] | vidhangoyal10@gmail.com |
7144a6ff54454b0dd9e092387cc4f7c4aea0c587 | b9c942beef6fbb70fd5ce221e8401a992b2ad202 | /Heroku Model Deployment/server/project.py | 3458ccc459feffe0e1a091190173d551d2f456d5 | [] | no_license | dmanwill/Hand-Gesture-Recognition-Dataset-and-CNN-Model | 0dd68f899778b9e96dac5fb6ef2e02c2655a523b | fce4e825e5e87a82f8910dc3603bbf2313983842 | refs/heads/master | 2023-03-30T02:00:08.015228 | 2021-04-11T00:12:11 | 2021-04-11T00:12:11 | 354,685,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | import os
# GUI Packages.
import matplotlib.pyplot as plt
import ipywidgets as widgets
import time
# AWS Packages.
import boto3
# AWS Variables.
accessKeyID = os.environ["AWS_ACCESS_KEY_ID"]
secretAccessKey = os.environ["AWS_SECRET_ACCESS_KEY"]
s3BucketName = "heroku-deployment"
lambda_function_name = "heroku_deploy... | [
"Daniel.Manwiller@kla-tencor.com"
] | Daniel.Manwiller@kla-tencor.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.