blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a827c73237bc593d7776fbc61aafe15c97776895 | 28b0f19a30aae14925d24a55d0dbe91da8fb4f44 | /Main.py | efe5bf0ce7dbbb33e7b2fe35c6ebaa44b1eae7f5 | [] | no_license | rowan-maclachlan/IPDSDGA | c5b342ba86c25018e968c67a85d3a1cff6b1f745 | c91d02e52c8aa1217e3ae4cd54001a6c213d439d | refs/heads/master | 2021-06-16T15:43:54.423167 | 2017-01-08T05:28:15 | 2017-01-08T05:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | import Cell
import Position as ps
GENERATIONS = 2
SIMULATION_STEPS = 8
def get_largest(cells):
return cells[len(cells)-1], cells[len(cells)-2]
if __name__ == "__main__":
# Print and recombinate tests
cellID = 0
cell_a = Cell.Cell(cellID, ps.Position(0, cellID))
cellID += 1
cell_b = Cell.Ce... | [
"rdm695@mail.usask.ca"
] | rdm695@mail.usask.ca |
e93926a3af6d7c201d8c06ab19c7dc14984d1529 | e43bf421edc060d5b3767adf2826cfd71472442c | /Python_function_challenges.py | bc0e74ef49efabe4cd609a2e14b07fd3ec0c29aa | [] | no_license | NatrezC/Unit-4_deliverables | dc8e4e2e253354d3bbf66710263dfe656db01a18 | b3050b940077d956f0c08f758f67f030364ded6c | refs/heads/main | 2023-03-01T00:37:07.011022 | 2021-01-17T06:20:19 | 2021-01-17T06:20:19 | 330,251,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | #1 Write a function named sum_to() that takes a number parameter n and returns the sum of the numbers from 1 to n. For example:
def sum_to(n):
sum = 0
for i in range(1 + n):
sum +=i
print(sum)
sum_to(6)
sum_to(10)
#2 Write a function named largest() that takes a list parameter and returns the l... | [
"cnatrez@gmail.com"
] | cnatrez@gmail.com |
fbf23f0b0fd82074e65b27b87e5b411567df6d1c | 0446602db0d7d65f19c2488b4379e8477890057c | /prac_02/string_formatting_examples.py | 8fe96be07def54052843b92cb1ad09dbe0a47992 | [] | no_license | zacgilby/cp1404practicals | 9b57966e62bded312230a29b3c070e78af43537f | 6d0455c8ef89a60ae7e1c0e869b46e0da26084b9 | refs/heads/master | 2020-03-26T23:04:05.241861 | 2018-09-11T05:40:48 | 2018-09-11T05:40:48 | 145,507,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | """
CP1404/CP5632 - Practical
Various examples of using Python string formatting with the str.format() method
Want to read more about it? https://docs.python.org/3/library/string.html#formatstrings
"""
name = "Gibson L-5 CES"
year = 1922
cost = 16035.40
numbers = [0, 50, 100]
for i in range(len(numbers)):
print(... | [
"zachary.gilby@my.jcu.edu.au"
] | zachary.gilby@my.jcu.edu.au |
02704e22f9b22b1a65a44d8ae9eb70844c824f17 | 5a75799f34488b263c9d1587578ada907e40f5bc | /mytest/socket/single/single_s_socket.py | ae6ee0d744f9e5b0e70bd4f864165f3e73109f11 | [] | no_license | zenwuyuan/mytest | b4e3f4a67c83e339f163b87dcff8737836daca78 | 838d2791bb75d8bd8b6057bf74c34b14d84bb418 | refs/heads/master | 2021-08-16T13:07:53.361691 | 2020-04-03T08:49:35 | 2020-04-03T08:49:35 | 146,848,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #!/usr/bin/env python3
from socket import *
from time import ctime
HOST = '127.0.0.1'
PORT = 8080
BUFSIZ = 1024
ADDR = (HOST,PORT)
tcpSerSock = socket(AF_INET,SOCK_STREAM)
tcpSerSock.bind(ADDR)
tcpSerSock.listen(2)
while True:
print('Waiting for connection...')
tcpCliSock,addr = tcpSerSock.accept()
print... | [
"jf871030@gmail.com"
] | jf871030@gmail.com |
9d8dcc8421ab1d253140e90d08e521e68fefc2b6 | bf75656248b0b0def53807648fb35b658e48412b | /examples/Dynamic/TRMM/rise/plot.py | 65882fe41aba5651e197a1bc23866e5e9cbfb12d | [] | no_license | ilhamv/MC-old | 5942d771c33583f0f8f0f64ff2108b3a0adfd7a3 | 1ef3e89ef147f65dcc7fc0321657fc80b8194ed1 | refs/heads/master | 2021-09-14T18:45:21.713131 | 2018-05-17T13:24:02 | 2018-05-17T13:24:02 | 117,119,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | import h5py
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import animation
f_mc = h5py.File('output.h5', 'r');
f = h5py.File('output_TRMM.h5', 'r');
#===============================================================================
# alpha eigenvalues
#=============================================... | [
"ilhamv@umich.edu"
] | ilhamv@umich.edu |
8b23311b26580c0b5fa81c0651c11cf941b65e96 | 53be839ec30082e9e49e7593ddc5f508466ea413 | /tests/functional_test/dumb_test.py | dca12a75b28ef388229fdf6291b7143570d73409 | [] | no_license | timmartin19/ripozo-html | c0f62fad333f1a25b351eb6f9e4e817f8ebd0542 | 1455723ac1074c8b8081542df46c1797d0169fc4 | refs/heads/master | 2021-01-10T02:36:56.984431 | 2016-01-19T06:09:42 | 2016-01-19T06:09:42 | 48,511,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import webbrowser
import unittest2
from ripozo import ResourceBase, restmixins, apimethod
from ripozo_html import HTMLAdapter
class DumbTests(unittest2.Test... | [
"tim.martin@vertical-knowledge.com"
] | tim.martin@vertical-knowledge.com |
95ae895102b27133c7b5f434b0a386a15765b914 | 2214f236157cf8fcee24f5d28d81e73eeb43bd9d | /movement.py | bf84887ff05dd96160810b9e5ab97bbdee5f9bfa | [
"MIT"
] | permissive | deadrobots/StackOverBot-17 | fc867ec13ef111e243ea8993f7624d0975f61d27 | 370bb06131d810338614c4143ccb73c32ba88ff3 | refs/heads/master | 2021-06-15T00:16:27.856311 | 2017-04-01T02:17:28 | 2017-04-01T02:17:28 | 83,097,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from wallaby import *
def driveTimed(left, right, time):
"""
create_drive_direct(left, right)
:rtype: object
"""
create_drive_direct(-right, -left)
msleep(time)
create_drive_direct(0, 0)
def driveTimedStraight(power, time):
"""
create_drive_straight(power)
:rtype: object
"""
c... | [
"botball@deadrobots.com"
] | botball@deadrobots.com |
7363da0178ffb226331388981d853a728cf55149 | ad75e11f50facf025417979caeb37957b009b38e | /pmgsimproapi/api.py | 76afce57d2bf8fee1d4c8e266a412f9d497b40df | [] | no_license | pckmsolutions/pmgsimproapi | d429e70904ce0824237cb2e7587f4e57a407136a | 8d43aff5237a422a0f83ef825d12ab56641cdc50 | refs/heads/main | 2023-06-09T16:17:51.319354 | 2021-06-19T16:21:06 | 2021-06-19T16:21:06 | 258,010,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,871 | py | from collections import namedtuple
from datetime import timezone
from logging import getLogger
from functools import wraps
from pmgaiorest import ApiBase
from typing import Optional, Dict
from logging import getLogger
logger = getLogger(__name__)
Page = namedtuple('Page', 'items page_number number_of_pages total_cou... | [
"possemeeg@gmail.com"
] | possemeeg@gmail.com |
28a47d6d8040b10d7b3ffebe51e2276eb44c4cec | 9e7239bd96c4ca1b691d487817cd3e341feb5b54 | /NTWebsite/migrations/0056_auto_20190107_0922.py | 894535e8891ce1012b8ca1ca7eaf05e5f0cd75d4 | [] | no_license | mw8888/NagetiveWebsite-Django | 50e7e3fe05fae4361f26cf0474e0edabb52e0e5c | 8689dbfc7a5e6447965d9e3189332dd237c91a13 | refs/heads/master | 2020-05-02T17:32:04.098752 | 2019-01-08T11:54:10 | 2019-01-08T11:54:10 | 178,101,720 | 2 | 0 | null | 2019-03-28T01:22:35 | 2019-03-28T01:22:34 | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.0.6 on 2019-01-07 01:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('NTWebsite', '0055_auto_20190106_1539'),
]
operations = [
migrations.AlterField(
model_name='configparams',
name='CP_... | [
"616604060@qq.com"
] | 616604060@qq.com |
6b3badfcb176a00aae87424890ce4d05493ca53e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2194/60749/255882.py | 53f47cca7bd3d09ab0df4305df9ac8394bd7b7f2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | n=int(input())
res=[[] for _ in range(n)]
for t in range(n):
res[t]=list(map(int,input().split(" ")))
def ifprime(num):
if num==1:
return False
for t in range(2,num):
if num%t==0:
return False
return True
for h in res:
temp=[]
str1=""
for t in range(h[0],h[1]+1):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cb348de2589f2f6f5936eee2a08fe78369f68e15 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Datasets/the-minion-game/Correct/061.py | 3dd4ff6cd83b958383f9bb0e76bf1c2a98c94fa3 | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | string = input()
Stuart = 0
Kevin = 0
strlen = 1
vowels = ("a","e","i","o","u")
for i in range(len(string)):
if string[i].lower() in vowels:
Kevin += (len(string)-i)
else:
Stuart += (len(string)-i)
if Stuart > Kevin:
print ("Stuart "+str(Stuart))
elif Stuart < Kevin:
print ("Kevin "+str... | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
ee4e7d3975d86a7ba8a5bc918e35d6d57a44484e | 5945ccbb9302da14c770f01977eb353456841f32 | /pydicom_attempt.py | a97f6570a93b61bc10af001e348bd2eadb9e8597 | [] | no_license | QTIM-Lab/Processing_DICOMS_in_couch | 8604d20c9347135ef6c3e68cabf09eb153c361de | f0217a993e3c18e0e520aea02600613b91f8cee5 | refs/heads/main | 2023-07-13T05:07:31.343803 | 2021-08-18T03:19:14 | 2021-08-18T03:19:14 | 397,455,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,036 | py | import pydicom, sys, pdb, os, string, re
# pip install dicom or pydicom
from pydicom.data import get_testdata_file
from pydicom import dcmread
import pandas as pd, numpy as np
import multiprocessing, time
fpath = get_testdata_file("CT_small.dcm")
# pd.set_option('display.min_rows', 5) # How many to show
pd.set_option(... | [
"bbearce@gmail.com"
] | bbearce@gmail.com |
f8a2aa48568e27abc071b474a7337ae271771cc4 | cdb21ded35ad572807cdf6384d43d97971263f9f | /fouriergraph.py | c981ffe3e08d1a1bd279cb7ef44693352a34e392 | [] | no_license | cdceballor/marconi | 0eb1444bca2841b9c35fa99907985842dadd6175 | 50360248e042098fe109e588b683a11dcab926db | refs/heads/master | 2022-09-22T02:05:52.224580 | 2020-06-05T01:18:33 | 2020-06-05T01:18:33 | 250,641,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | import scipy.io.wavfile as wavfile
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [16,12]
plt.rcParams.update({'font.size' : 18})
def main():
s_rate, signal =wavfile.read('songs/bad_songs/not_good_song.wav')
sample_badRate, badSample = wavfile.read('songs/bad_songs/not_goo... | [
"noreply@github.com"
] | cdceballor.noreply@github.com |
37b8fd87664fa7347b4b9809d6ac322d6b822bff | cb91cd103c0042094472f690aabff26637b30f98 | /cpu_stat.py | 3224a2b05f02cea723fb565be2aa0edff1659073 | [
"MIT"
] | permissive | sebastian-code/system_overview | 0d10f55992331c58b7bc59efbb4380f1cbcdfef5 | 0340e163cfff89f8532a06f28ee1cbbc9f96049d | refs/heads/master | 2020-05-03T22:51:45.242235 | 2015-07-29T11:41:37 | 2015-07-29T11:41:37 | 39,890,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | #!/usr/bin/env python
#
# Copyright (c) 2010-2013 Corey Goldberg (http://goldb.org)
#
# This file is part of linux-metrics
#
# License :: OSI Approved :: MIT License:
# http://www.opensource.org/licenses/mit-license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of ... | [
"sebaslander@gmail.com"
] | sebaslander@gmail.com |
6b6e175ca8bf64af929209040b404c04032022a6 | 88f8b9b43702217aa2c93e97a862ddee0b71f9a1 | /keyboardhackerapp/views/sync.py | 6736cc17542787ebdf5397a0682511fb1620cab8 | [] | no_license | nathantheinventor/keyboard-hacker | c630221bc288b7247fe6e21620ee5e9da58ea911 | f4c61d1b2d7d3db25862cc95865764aa3f1abe47 | refs/heads/master | 2020-07-25T23:32:39.110317 | 2019-09-16T00:20:32 | 2019-09-16T00:20:32 | 208,457,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.shortcuts import render
from django.http import HttpRequest, HttpResponse, HttpResponseRedirect
from time import time
def sync(req: HttpRequest) -> HttpResponse:
return HttpResponse(time() * 1000.0) | [
"nathantheinventor@gmail.com"
] | nathantheinventor@gmail.com |
fdef9e1142b7a2ebd63155a29a40524d52f3573b | e2addeff623464e25364a3b07910b6c77f014dd5 | /news_feed/migrations/0001_initial.py | 40e1c5c81bdca73964c7c50d34ae72a71df89485 | [
"MIT"
] | permissive | Soigres/es-pl7 | 1282eb4e4abbc5303c19e6c8d4a52aa2fadaa652 | 739d0c766a2ab70f2bc87d597041921d9845cac9 | refs/heads/master | 2020-03-29T13:00:49.997822 | 2018-09-22T01:58:35 | 2018-09-22T01:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # Generated by Django 2.1.1 on 2018-09-13 14:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"pedro.alex.ribeiro@hotmail.com"
] | pedro.alex.ribeiro@hotmail.com |
f6185cf19a64bb63530d452c58615df8a2baaff6 | ccd7ca1c542c7fc0c60cd1e2c5723f5c505ce418 | /CEPACClusterLib.py | 75d4ec98b815fc2cc5fe169a6f5cc167ebf208c0 | [] | no_license | fervion/Cluster-Tool | 3860b8a5afe77e5e5dbcf2612e058231b036b2a7 | 2da4b3e8024b4cc6a0e7b4aab5b1b658155b6792 | refs/heads/master | 2020-03-28T00:24:13.343880 | 2018-09-04T20:04:41 | 2018-09-04T20:04:41 | 147,408,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,307 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 29 10:10:08 2015
CEPAC Cluster tool library
STD list:
* objectify things
* GUI
* make zipped download work
* fix jobname and folder name thing
* kill jobs
@author: Taige Hou (thou1@partners.org)
@author: Kai Hoeffner (khoeffner@mgh.harvard.edu)
"""
from __... | [
"noreply@github.com"
] | fervion.noreply@github.com |
79fb2c539e4809067334c47c08ee9e341dbf6de2 | 16e01a94dc0d8f729be7684c9f0f249836fce359 | /build/lib/netabio/__init__.py | 38e23c1563bc75675aa55cce4affccf08b928708 | [] | no_license | Nurtal/NETABIO | 959be136aee32229b01de78f3787eca6609a7f9c | dfd1d5d5f593c433b34634972d9f61197fb0a7e2 | refs/heads/master | 2021-01-20T21:16:37.423112 | 2021-01-13T09:21:50 | 2021-01-13T09:21:50 | 101,761,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py |
"""
"""
import os
__version__ = "0.0.1"
_ROOT = os.path.abspath(os.path.dirname(__file__))
def get_script_path(path):
return os.path.join(_ROOT, 'scripts', path)
def get_data_path(path):
return os.path.join(_ROOT, 'data', path)
## Get path for R script
CORRELATIONMATRIX_SCRIPT = get_script_path('fs_correlation_mat... | [
"nathan.foulquier.pro@gmail.com"
] | nathan.foulquier.pro@gmail.com |
df74748eca1ff878707ff9e11abd7a90123f6957 | 510724320e1e4032f976fdc5c6e1cc20c632475d | /practica2-8.py | ed85c91d731badfd4f7a9ad181b1a953f9adfec1 | [] | no_license | beloplv/entrega_python | ca129b832c403b9b1484c0193ebeeed44dc89396 | 05dc7a84721627cdd86f1670698dad1dd6fc9e38 | refs/heads/master | 2021-05-25T16:31:22.073058 | 2020-04-07T16:10:35 | 2020-04-07T16:10:35 | 253,826,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | lista = []
letras_primas = []
palabra = input('ingrese una palabra: ').lower()
#limpiar caracteres especiales
palabra = palabra.replace(' ', ' ')#sacamos los espacios
letras_sin_repetir = set(palabra)
for l in letras_sin_repetir:
lista.append([l,palabra.count(l)])
print(lista)
def es_primo (num):
if num <=... | [
"belo.lp@hotmail.com"
] | belo.lp@hotmail.com |
cf17aa81d5fd56cbaddfd67b56f8347f0dcc4ba9 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_database_tables_operations.py | 80cd58d73f50f63f89756880a71ad6973b217cc9 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 10,127 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
428eee51e5773f507ac8d5e499d588f20cd89741 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02239/s467624321.py | e99fe13b3bd0e7848a7182a747adec5f254305d8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | n = int(input())
G = []
G.append([])
for i in range(n):
v = list(map(int, input().split()))
G.append(v[2:])
q = []
q.append(1)
checked = [False] * (n + 1)
checked[1] = True
d = [-1] * (n + 1)
d[1] = 0
while q:
current = q.pop(0)
for v in G[current]:
if not checked[v]:
q.append(v)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34c7f9943b99e7e6a7c9523b927c981eb06cb18f | 6b3a706484d1ea07b595846f965f172f9be2dd3b | /flaskr/auth.py | 0c8770ce46adb492ecd603402801caafb5e5cb04 | [] | no_license | tflucker/python-blog | 1b97c79a72cc79e51bb7447a10a687d1f35be817 | 39de62c4ef6f7ac693b1cf7933a7da6299942b5f | refs/heads/main | 2023-05-27T11:57:36.553086 | 2021-06-17T01:55:32 | 2021-06-17T01:55:32 | 377,334,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | import functools
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from werkzeug.security import check_password_hash, generate_password_hash
from flaskr.db import get_db
bp = Blueprint('auth', __name__, url_prefix='/auth')
@bp.route('/register', methods=('GET', '... | [
"tflucker@gwmail.gwu.edu"
] | tflucker@gwmail.gwu.edu |
e5f226f2a01768eceeb8b8f7eeb9c4302a6a0c45 | 7aab309dee577d4df80f69b47dc4ec48d2ed451a | /python_tasks_advanced/cels.py | 035d80e282735e05854446a90eea799be114e058 | [] | no_license | omitiev/python_lessons | 64f657e32d4414e75c6510ec111240018ed6b7d5 | 97561e56814c514756e207c2b323ca8e1366994e | refs/heads/master | 2021-10-09T06:32:30.154748 | 2018-12-22T12:02:28 | 2018-12-22T12:02:28 | 97,019,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | '''
реализовать дескриптор Celsius для преобразования градусов фаренгейта в градусы цельсия
class Temperature:
celsius = Celsius()
def __init__(self, initial):
self.fahrenheit = initial
Для перевода температуры из шкалы Фаренгейта в шкалу Цельсия нужно от исходного числа отнять 32 и умножить результат ... | [
"oleksii.mitiev@gmail.com"
] | oleksii.mitiev@gmail.com |
d599a32015509383a8cc397300fcaa9ee27645c3 | 0f7e3f0a74192bdf48810325469b8acd7e9b5541 | /rent.py | aaad8113fd337f4762099caf28c0afcfdf7d1232 | [] | no_license | TelmanH/RentVehicleSystem | d97279cba970df5cee27ff7aecf4edc8476c6a46 | 01750a8d7c690699525efa5780b0c450a6f47d5e | refs/heads/master | 2023-03-29T14:25:47.916959 | 2021-04-04T22:50:00 | 2021-04-04T22:50:00 | 322,725,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,763 | py | import datetime
# parent class
class VehicleRent:
def __init__(self, stock):
self.stock = stock
self.now = 0
def displayStock(self):
"""
display stock
"""
print("{} vehicle available to rent".format(self.stock))
return self.stock
... | [
"noreply@github.com"
] | TelmanH.noreply@github.com |
2dc7e2e97203b4b33219cb69dc4ddbb3662c6f49 | c6a96dedabf27b581a7378123a7124d7d054991c | /tester.py | ea2b573df178b7443f853bf8115d6b66dfeaf08b | [] | no_license | redeye93/ViterbiAlgorithm | b445d154d8e0aba812a3445bba2b4fc1dff4af4e | f5ca7c927d06685bb4cb3fe9a091b61085a64cdb | refs/heads/master | 2021-04-03T09:12:52.920140 | 2018-03-10T21:46:37 | 2018-03-10T21:46:37 | 124,626,968 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import sys
import os
from collections import Counter
def count_c(x, y):
if len(x)<len(y):
(x, y) = (y, x)
a = Counter(x)
b = Counter(y)
return sum(min(b[key], value) for (key, value) in a.items())
if len(sys.argv) == 3:
file1 = sys.argv[1]
file2 = sys.argv[2]
if not os.path.ex... | [
"utkarshgera77@gmail.com"
] | utkarshgera77@gmail.com |
f05336e22c0ecd4e51379312cb55a58e69b04c87 | 02952ddf96e7960a3faef74485f4ffc12bcf2973 | /tests/test_projects/test_parallelSDC/test_preconditioner.py | 721bb0679d9f43391103863777497ff76214f947 | [
"BSD-2-Clause"
] | permissive | danielru/pySDC | 5decca37e1ecea643fe21dac0f978e3fdaa24ac6 | 558b2b4db3aeb97e6a87e41cd4958a8a948af37a | refs/heads/master | 2020-12-25T10:58:57.215298 | 2017-03-21T06:45:59 | 2017-03-21T06:45:59 | 31,062,846 | 0 | 0 | null | 2015-02-20T11:52:33 | 2015-02-20T11:52:33 | null | UTF-8 | Python | false | false | 131 | py | from projects.parallelSDC.preconditioner_playground import main, plot_iterations
def test_main():
main()
plot_iterations() | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
1e13f89a1a8a0b4e88abe02f70cdd50a0a87215a | b9fe15c72998488a9dfe73469cf7eb30659dcfd4 | /snake_eyes/buffered_distribution.py | 18a15f102ffa6609fceca4df86e9464e9eba20c1 | [
"MIT"
] | permissive | bentheiii/snake_eyes | d8ea4e76aad5f060b64c55eed3d129a6d3ede01e | a5f53c203c6bb536592d9b3dcc270f924cd9ef6a | refs/heads/master | 2020-09-08T00:06:24.856647 | 2020-01-22T08:44:55 | 2020-01-22T08:44:55 | 220,951,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,676 | py | from __future__ import annotations
from itertools import chain
from numbers import Number
from typing import Generic, TypeVar, Iterable, Type, Any, Tuple, Dict, Optional, Mapping, Union
from dyndis import Self
import numpy as np
from snake_eyes.support_space import DiscreteFiniteSupportSpace
try:
from scipy imp... | [
"sample@notreal.fake"
] | sample@notreal.fake |
6e91dd8602f65435370b4eed75287e0436e66dba | 4d1f9c7253d7351227d5d9be45d650d88c2ee75b | /dsgd.py | 590c52f89d8091828e921f27e0577acd1fefc6cb | [] | no_license | shaw-stat/MF-under-attack-model | 0a9a1f64840b050ee3e750b5e065a66ed3a5b844 | dea44b4d65711125f3468635cca96775a4f6bb4f | refs/heads/master | 2023-02-28T10:23:40.548452 | 2021-02-03T04:34:49 | 2021-02-03T04:34:49 | 335,347,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,149 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 12 20:50:10 2020
@author: shaw
"""
import sys
import math
from time import time
import random
import csv
import numpy
from pyspark import SparkContext
from scipy import sparse
from sklearn.preprocessing import normalize,scale
import numpy as np
import pandas as pd
from ... | [
"1653519@tongji.edu.cn"
] | 1653519@tongji.edu.cn |
41f32d17361896607a0dbb0526f28df14fc0dd44 | f3304ceb4407e818d30407937fec1fac2c212307 | /run2.py | 142d9ad7bf2bbdd68be68cfc36e6f7405590a2be | [] | no_license | kkirsanov/avito-parser | d6dc621a93ec54ca988ffd134a48b7cb83260e5c | d00f54f706da4734f0a12882ffc59a882fad850a | refs/heads/master | 2020-03-24T21:04:37.376646 | 2018-07-31T12:43:08 | 2018-07-31T12:43:08 | 143,012,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #!/usr/bin/python
# Run unix date command 3 times
import leveldb
import json
cnt = 0
f = open("z.csv", "r")
f2 = open("z3.csv", "w")
ph = set()
for l in f:
d = l.split('\t')
try:
if d[-5][0] == '8':
d[-5] = "7"+d[-5][1:]
p = d[-5]
if p not in ph:
st = "\t".joi... | [
"kkirsanov@gmail.com"
] | kkirsanov@gmail.com |
65bbdc9338d1742bfe07263040119d0da97205ce | d3af72e4c623dffeda95e662d495a95c8f2e317a | /scripts/gene_checker/annotations/utils/utils.py | ebd9775887739a4562e0953e798ff45a0f24a331 | [] | no_license | bioinf/bi2014-mycoplasma-genitalium | 0e2fbf095a461339064ea38f1be4586897f7c2ac | bd8eb82bb8d883faeb0492d74deb7a396577b782 | refs/heads/master | 2016-09-05T11:34:00.325602 | 2014-12-06T12:37:12 | 2014-12-06T12:37:12 | 24,504,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | __author__ = 'nikita_kartashov'
NUCLEOTIDE_COMPLIMENTS = {'A': 'T', 'C': 'G', 'T': 'A', 'G': 'C'}
CODON_LENGTH = 3
START_CODON = 'AUG'
STOP_CODONS = ['UAA', 'UAG']
PURINES = ['A', 'G']
SHINE_DALGARNO = 'AGGAGG'
def split_into_ns(data, n):
return zip(*(iter(data),) * n)
def fst(x):
return x[0]
def snd... | [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
da8bd8f4a014138a3d91dc7d39ac778710cd0c9a | e2faae27d29a82c02ccbea3170b6b86d033c2318 | /bmi_calculator.py | 4c1ac31d396ece5a12ef26858e8ad4ea94142c46 | [] | no_license | chrynx/python | 526087f8a76969e5909146021fe8b2b684f51b9d | b4ce4960f7d7d7d2ccdf223adc0cc781a6074c8b | refs/heads/master | 2023-01-11T00:16:43.341877 | 2017-12-16T14:28:46 | 2017-12-16T14:28:46 | 110,001,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | user = raw_input('Hello, What is your name? -> ')
print 'Welcome, ' + user
weight = float(raw_input('Can you please tell me your weight in kilograms? -> '))
height = float(raw_input('And your height in meters? -> '))
def bmi_calculator(w, h):
bmi = w / (h ** 2)
print 'Hello, Your BMI is -> ' + str(bmi)
if bmi < 18.... | [
"ralphmadriaga@gmail.com"
] | ralphmadriaga@gmail.com |
f980dc402cb2aeb058ee68f17487aaa041dc20ba | a02a0e814dbb52753def1b62b76c772506578e75 | /face_tag_video.py | 1b47bbcd0547ed325a102ba6edb1a5e93a9d19f5 | [] | no_license | rashmibhaty/Face_Tag_Generator | 0b7ccb85f1bc665a16729432c85867544d3ada6e | 527729a68128b2539fcff7d0229fb9e4e6547ad4 | refs/heads/master | 2022-11-22T20:32:04.969325 | 2020-07-28T07:07:31 | 2020-07-28T07:07:31 | 267,585,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,592 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 27 18:11:42 2020
@author: rashmibh
"""
import cv2
from keras.models import load_model
import numpy as np
import os
#Video to use for face tagging
Video_File_Name='VID_20200518_191839.mp4'
MODEL_FILE='model.facedetect_family'
INDICES_FILE='class_indices_... | [
"noreply@github.com"
] | rashmibhaty.noreply@github.com |
792b27211442dbcce6022c3d2d48273e4a5ec3ed | 6ab073e94e4b3241c65614c7a8eecb2afa3d3dc9 | /app/core/migrations/0003_ingredient.py | b8c63d2f176c3e87e3b4ce17236650da531d001a | [
"MIT"
] | permissive | shaquibquraish/recipie-app-api | c05f90e4c9e0b428c80c1d9d7b96e5159b7199a2 | e90e63ba053ffea6ff801d476ca4e4c77c5ff946 | refs/heads/master | 2020-12-15T08:25:50.796182 | 2020-01-28T14:55:47 | 2020-01-28T14:55:47 | 235,045,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.2 on 2020-01-22 19:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"shaquibquraishi@gmail.com"
] | shaquibquraishi@gmail.com |
f99d52f317bd6aca8f1627b1732eab6e46b1c580 | f62ff90d7850af458d8f12386fc9ee9134dbe7c1 | /Plots/Showplots/Model_4/Slopes.py | 4a50fda1d37fcada8edb14639b508ef35b6ea07e | [] | no_license | AlexSchmid22191/EIS_R_Sim | 51b431f078cb455fc38637c192436c0523449565 | 851b061e60811e1e58a5b2fd4e393e529c3f86ac | refs/heads/master | 2023-06-27T17:40:59.177270 | 2021-07-22T11:50:27 | 2021-07-22T11:50:27 | 380,768,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | from matplotlib.pyplot import subplots, show
from matplotlib.style import use
from numpy import load
from Equations import e, k, T
use('../Show.mplstyle')
data = load('../../../Currents_Resistances_Model_4/Slope_Data_Model_4.npy')
fig, axes = subplots(nrows=2, ncols=2, figsize=(12, 8))
for ax in axes.flatten():
... | [
"Alex.Schmid91@gmail.com"
] | Alex.Schmid91@gmail.com |
873cd6116a82e9e22ce7abe0b328cb92468b58be | ca970e84e2138e3fb57a95706a7ecfed4879bc44 | /Advanced_python/Object_internals_and_custom_attributes/vector_2.py | 22e1a671523ae3123202dca29da7a1ad7837f76c | [] | no_license | thxa/test_python | b67854ddfa2d89c315917e0739a419d085ff7845 | d8c1e0204d54e2c9e0799a5b41c81399f1487e45 | refs/heads/master | 2020-06-26T19:07:28.570894 | 2020-03-10T20:34:55 | 2020-03-10T20:34:55 | 199,723,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | class Vector:
def __init__(self, **coords):
private_coords = {'_' + k: v for k, v in coords.items()}
self.__dict__.update(private_coords)
# def __getattr__(self, name):
# return "name = %s" %name
# def __getattr__(self, name):
# private_name = '_' + name
# return getattr(self, private_name)
# https:... | [
"33045743+thxa@users.noreply.github.com"
] | 33045743+thxa@users.noreply.github.com |
d22257ae400edba16284923f650c9396517b0122 | f40cd3359ec78bd2723cfdb80de8fe3c77003681 | /image_processing/process_images.py | d931281237ac58982417392c480c0358845f8b85 | [] | no_license | LanaSina/prednet_gol | be1c72173bae171c527483baf36d773bbc9f3033 | 1fdc853e1241a1e4dad782a8d9c48279042cb60f | refs/heads/master | 2020-04-27T17:16:05.842755 | 2019-09-02T07:22:08 | 2019-09-02T07:22:08 | 174,510,932 | 0 | 3 | null | 2019-09-02T07:22:09 | 2019-03-08T09:47:19 | Jupyter Notebook | UTF-8 | Python | false | false | 2,857 | py | # Create image datasets.
import argparse
import importlib
import numpy as np
import os
import requests
import urllib.request
import sys
from bs4 import BeautifulSoup
import hickle as hkl
from imageio import imread
from scipy.misc import imresize
usage = 'Usage: python {} DATA_DIR [N_IMAGES] [ORDER] [--help]'.format... | [
"lana.sinapayen@gmail.com"
] | lana.sinapayen@gmail.com |
f26aa2b147563cfbc91ff87d0a1e57cc576b9ead | 60606b2665de5fdc4a099c7b4489ef9df5f742d8 | /appBank/src/main.py | 30882feda9535a39a133b4a5776d30ce26f2b832 | [] | no_license | frdanwrhdyt/appllikasi-perbankan-dg-python | 3e95589d3eeb00e900ae3e26cb59beb83f279be8 | 100bf1d8023283729bce4055f442e48f985d8999 | refs/heads/master | 2022-07-23T03:23:17.980300 | 2020-05-21T17:57:30 | 2020-05-21T17:57:30 | 265,915,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,276 | py | import json
import os
from collections import Counter
def clearScreen():
input()
os.system('cls')
class Login:
def __init__(self,username,password):
self.__username = username
self.__password = password
def getName(self):
return self.__username
def getLogin(self):
... | [
"farid780anwar@gmail.com"
] | farid780anwar@gmail.com |
8b5e76af94f8db48d834469d1bd897444bf4d7bf | a6172e91bad7c17e699a1253360b82f9cb6188aa | /envs.py | 7d1757888faf1cfc1c9bb9a299972a4989aa9ce7 | [] | no_license | wangyouzhuo/pytorch-a3c-attention | 7f2af43869eb9cd20f35d882eeca3828dd718928 | 142da0a377e861bc7226a4a86bdc53b359629941 | refs/heads/master | 2020-04-28T05:19:06.695210 | 2019-02-16T14:51:32 | 2019-02-16T14:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | import cv2
import gym
import numpy as np
from gym.spaces.box import Box
# Taken from https://github.com/openai/universe-starter-agent
def create_atari_env(env_id):
env = gym.make(env_id)
env = AtariRescale84x84(env)
env = NormalizedEnv(env)
return env
def _process_frame84(frame):
frame = frame[3... | [
"gamrianshani@gmail.com"
] | gamrianshani@gmail.com |
a7cc97b5e49ca2c7859a2cb2f70472934c5ad299 | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/tut/sample/contact/urls.py | cbd927b2b80e5d9ff7cf2904f6a45474adb1c169 | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 137 | py | from . import views
from django.urls import path, include
urlpatterns = [
path('contactme/', views.contactus, name='contact-me'),
]
| [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
ca4ca0b26337918f518b836b293d681197779508 | 9c7bc80c99cfa42bb5fca431e3fcca6bb712bba7 | /tests/unit/modules/test_xfs.py | 4b423d69d124c028313cb910588169ab2bb05064 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | darix/salt | 678856d84cb53e3390998306ec09de64220a8fc7 | fae3dfc4f417988f431514f89e398a86fe5541a4 | refs/heads/openSUSE-2019.2.0 | 2023-01-21T05:38:58.088830 | 2020-02-12T09:05:45 | 2020-02-19T13:37:56 | 241,922,575 | 0 | 1 | NOASSERTION | 2022-06-01T18:26:13 | 2020-02-20T15:42:58 | null | UTF-8 | Python | false | false | 1,407 | py | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import, print_function, unicode_literals
import textwrap
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import skipIf, TestCase
from tests.support.mock import (
NO_MOCK,
NO_M... | [
"dincamihai@users.noreply.github.com"
] | dincamihai@users.noreply.github.com |
57b74c58c636552617a86ca776cdc6f914fe0984 | 0c5b84db768690c304e26552a765b277601f6393 | /jim/config.py | d7344285fceac051dfbda5219282afc026ad7b88 | [] | no_license | Implexx/Messenger | 09d43d4b3412734e23e1bad8ee74866ae9ee510f | 75bf09331cc28eb88ee13ff1725ab87351d40d4d | refs/heads/master | 2020-03-26T01:34:32.952377 | 2018-08-13T09:43:58 | 2018-08-13T09:43:58 | 144,373,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | """Константы (ключи, действия, значения, коды ответов) и настройки"""
ENCODING = 'utf-8'
USERNAME_MAX_LENGTH = 25
MESSAGE_MAX_LENGTH = 500
# Ключи протокола (действия)
ACTION = 'action'
TIME = 'time'
USER = 'user'
ERROR = 'error'
ACCOUNT_NAME = 'account_name'
RESPONSE = 'response'
AUTH = 'authenticate'
USER_ID = 'us... | [
"hurtmind@mail.ru"
] | hurtmind@mail.ru |
fcbba6b6aeedfe4d2b974334b93de13ca8113414 | 93634959a1873580b7b9f449f02b338bac9b4dab | /php-fpm/php-fpm.py | 5f6d0a8e6407bc22cc2a632ebcadf68a94548442 | [] | no_license | saranshjain1/Datadog-Plugins | 5b12638c1f3f8b77b91b633c49465748d369ba80 | 0d8f8645c07dfd103976024cdd16052ad5473269 | refs/heads/master | 2021-01-22T11:47:43.550438 | 2014-04-16T19:14:34 | 2014-04-16T19:14:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | #!/usr/bin/python2.6
import sys
import os
import subprocess
from checks import AgentCheck
class details(AgentCheck):
GAUGES = {
'start time':'php-fpm.start time',
'start since':'php-fpm.start since',
'accepted conn': 'php-fpm.connections',
'listen queue': 'php-fpm.listen queue',
'max listen que... | [
"saransh@saransh.(none)"
] | saransh@saransh.(none) |
52b12b817990f295f9c1dc821dfbaaae87f185e5 | 46548aac69803470361503b005d64bb2ec8cb24c | /EulerProjects/project10.py | 8c934240bbe2732541a74f4f99680c2e0e43f764 | [] | no_license | hoangnhancs/CS112.L11.KHTN | e425141203f2c09e7e45c0125b2241eb5c51598e | d1ac96ce5953d1a0b621b802a2bbe1c468ea07c1 | refs/heads/master | 2023-02-21T07:35:22.859211 | 2021-01-25T02:23:31 | 2021-01-25T02:23:31 | 294,288,315 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def check (n, arr_prime):
for i in arr_prime:
if n%i==0:
return False
return True
arr_prime = [2]
sum =2
for i in range(3, 2000001):
if check(i, arr_prime)==True:
arr_prime.append(i)
sum+=i
print(sum)
#print(arr_prime)
# #print(check(3,arr_prime))
# print(check(9, arr_prime)) | [
"thaihoangnhantk17lqd@gmail.com"
] | thaihoangnhantk17lqd@gmail.com |
2fc719b1fdba27a69f938d9dbb23e5487b3a8aaf | 6c89cc53812a3d819c5f701b10a7b57343e4d47e | /config.py | 77e679ee2a28a00973a53b6ed25c3777a73d947b | [] | no_license | mmg1/DefaultLogExpress-DLE- | 72f4f85c705a0f4028651701d84b01aa07d7a148 | 6ed93e366be7744b7b7e8f47293e3763aca1691e | refs/heads/master | 2021-09-27T16:01:59.581145 | 2018-11-09T10:53:29 | 2018-11-09T10:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # coding: utf-8
WARNING = "\033[31m[!] \033[0m"
FORBI = "\033[31m[x] \033[0m"
PLUS = "\033[32m[+] \033[0m"
INFO = "\033[34m[?] \033[0m"
LESS = "\033[33m[-] \033[0m"
LINE = "\033[34m=\033[0m" * 20
| [
"noreply@github.com"
] | mmg1.noreply@github.com |
714e831e1d51a913ff27d8ffbcf275abb01e4997 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/facebook/strings_arrays/498_diagonal_traverse.py | 49810dc7b8f714f7e2fc3ac3da9c6b1fedb5b7de | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | from typing import List
# diagonal length
class Solution:
def findDiagonalOrder(self, matrix: List[List[int]]) -> List[int]:
if not matrix:
return []
n = len(matrix)
m = len(matrix[0])
i, j, di, dj = 0, 0, 0, 1
direction = 0
res = [0] * (m * n)
l ... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
665b1be081ab338d26b6231b4e8c856ff8a1b2dd | 0faf534ebb6db6f32279e5bee25b968bd425ce3a | /tests/extension/thread_/axi_slave_lite/thread_axi_slave_lite.py | 1bda522df6d89d386a8ef2f35d2313d7523cd9d5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PyHDI/veriloggen | e8647cb2d40737d84e31d6b89c5799bab9cbd583 | f2b1b9567150af097eed1b5e79ba2b412854ef43 | refs/heads/develop | 2023-08-09T10:02:35.626403 | 2023-08-09T00:50:14 | 2023-08-09T00:50:14 | 37,813,184 | 282 | 60 | Apache-2.0 | 2023-07-20T03:03:29 | 2015-06-21T15:05:30 | Python | UTF-8 | Python | false | false | 3,495 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
from veriloggen import *
import ve... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
e3326e19b9640eea1e9bbfd8cdc74c97f007cbc8 | 6c137e70bb6b1b618fbbceddaeb74416d387520f | /spyre/testing/onthefly.py | 7516351719b40b94613f133f92eb3c6cd36a4dbb | [
"BSD-2-Clause"
] | permissive | zhong-lab/code | fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15 | b810362e06b44387f0768353c602ec5d29b551a2 | refs/heads/master | 2023-01-28T09:46:01.448833 | 2022-06-12T22:53:47 | 2022-06-12T22:53:47 | 184,670,765 | 2 | 7 | BSD-2-Clause | 2022-12-08T21:46:15 | 2019-05-02T23:37:39 | Python | UTF-8 | Python | false | false | 321 | py | # Device List
devices = {
# 'fungen':[
# 'lantz.drivers.keysight.Keysight_33622A.Keysight_33622A',
# ['USB0::0x0957::0x5707::MY53801461::INSTR'],
# {}
# ]
}
# Experiment List
spyrelets = {
'rabi':[
'spyre.spyrelets.onthefly.OnTheFlySpyrelet',
{},
{}
],
... | [
"none"
] | none |
46778ad365c9d953b71ac7459414e523c97ebb4b | f7485ca051de935b81a249d89cbf6f463e75ba15 | /apps/user/migrations/0001_initial.py | 7e4830c3bad4db83b80c6cced4d4fd7acee4bfc6 | [] | no_license | HJK17/alloygame | cf47446bc1581476bddbbb6a85f31aec358a3a3a | 41cc0a5dba0c62b39efeebe1da42d672678e703c | refs/heads/main | 2023-08-20T23:09:09.262069 | 2021-10-06T07:18:19 | 2021-10-06T07:18:19 | 403,262,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | # Generated by Django 3.2.1 on 2021-07-28 07:47
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"1334535487@qq.com"
] | 1334535487@qq.com |
037f5e2109dad9ac971742c44a53bf6923ae4d93 | 61c4c220a70a18d179ed77a6b02914045945a85d | /knock100/knock38.py | ce216d3bfbfca2c9b356f33a56ec73b45b608ce3 | [] | no_license | hoka-sp/NLP100 | 5839adedc1b8d522d93859cdad07319fc8967679 | b206c4eb2a43e268fc68fd7b54bf12132389141c | refs/heads/master | 2023-07-13T15:19:44.076759 | 2021-08-09T15:06:47 | 2021-08-09T15:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import sys
import knock30
from collections import defaultdict
import matplotlib.pyplot as plt
def extract_words(block):
return [b['base'] + '_' + b['pos'] + '_' + b['pos1'] for b in block]
def main():
args = sys.argv
args.append('ch04/neko.txt.mecab')
phrase_list = [knock30.parse_mecab(phrase)
... | [
"64342567+hoka-sp@users.noreply.github.com"
] | 64342567+hoka-sp@users.noreply.github.com |
8d067df9baee38f186b6ab7885a23f86661b7c9f | eb712c6945b4eb188da204c6c27b725c99c98c8d | /Simple Right Angle Pattern.py | 092b556c2f2b0934d6961559cba0cbab627b2da2 | [] | no_license | learncodesdaily/PP-Pattern | 5d38ea495598e315878577303392547ee2367ec0 | 38820c60ff0f0f93cc6e7f9a003b79c3470ee53f | refs/heads/master | 2022-06-11T08:44:59.456938 | 2020-05-10T16:51:21 | 2020-05-10T16:51:21 | 262,827,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | def alphabetPattern(n):
for i in range(1,n+1):
for j in range(65, 65 + i):
a = chr(j)
print(a, end=" ")
print("\r")
n = int(input("Enter Pattern Size : "))
alphabetPattern(n)
| [
"noreply@github.com"
] | learncodesdaily.noreply@github.com |
711cc710fa9d0f60acbbd8cb2631d8c17a09353d | d113ee244b1e140724a983d0ef50c05ea8570de3 | /lectures/week-eight/lights.py | bc6bedc09296a655f99984bf4fd9cd5543f0d7a7 | [] | no_license | HumnResources/CS50 | 06136552a65f48adbe7874952d5f0320eea61efe | 050111878bc2725218a013d1f1c38e88be052875 | refs/heads/master | 2023-06-04T08:52:48.702331 | 2021-06-24T18:08:57 | 2021-06-24T18:08:57 | 374,654,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import os
import requests
USERNAME = os.getenv("USERNAME")
IP = os.getenv("IP")
URL = f"http://{IP}/api/{USERNAME}/lights/1/state"
# put adds information to server, using a dict with key 'on' value 'false'
requests.put(URL, json={"on": False})
while True:
requests.put(URL, json={"bri": 254, "on": True}
| [
"ziskachase@gmail.com"
] | ziskachase@gmail.com |
c9d4301742de47bbc0430217c6f470d4ba6ba0ad | a8ec52196f76071abe0ed1bae05f87c6abb67be8 | /chainer/utils/conv_nd.py | 97efa4af62bc8716fe3075162f0f52259c1b1cf8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fgnt/chainer | 92496c551b83fdc5322689113a9f6a647b038bed | ad2a51c08981c75f285a4395f283be8bb9b5d301 | refs/heads/master | 2021-01-18T11:54:28.620452 | 2016-08-22T07:54:45 | 2016-08-22T07:54:45 | 66,252,118 | 0 | 1 | null | 2016-08-22T08:05:47 | 2016-08-22T08:05:45 | null | UTF-8 | Python | false | false | 4,475 | py | import itertools
import numpy
import six
from chainer import cuda
from chainer.utils.conv import get_conv_outsize
from chainer.utils import conv_nd_kernel
def as_tuple(x, n):
if hasattr(x, '__getitem__'):
assert len(x) == n
return tuple(x)
return (x,) * n
def im2col_nd_cpu(img, ksize, strid... | [
"kamonama@gmail.com"
] | kamonama@gmail.com |
f4ff7b6a3d6fc1fc1ae39399a49474d8d349ada7 | 05f6f98f0b2efeb9578b19015a80121ae1906800 | /backup/cam.py | 0756abd07f7c5289c15316637fbb0ccf6cb839f9 | [] | no_license | anumanu/Augmented-wear | 494831180eff55560b97bd8eca12137427207521 | 035e1c6cc5c25d1a9b320aa26ff4081aa6225fcd | refs/heads/master | 2020-06-01T23:31:25.870969 | 2019-06-09T05:02:27 | 2019-06-09T05:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | # python cam.py --filter HSV --webcam
import cv2
import argparse
import numpy as np
import pyautogui
(screen_width,screen_height) = pyautogui.size()
def callback(value):
pass
def main():
range_filter = 'HSV'
camera = cv2.VideoCapture(0)
while True:
ret, image = camera.read()
... | [
"athuldevin@gmail.com"
] | athuldevin@gmail.com |
143282840eae55d35e061325759c7e9a140a4f57 | f56e4bb2d3a91b068292d698388ac5e82a40f078 | /inkshop/apps/products/migrations/0011_remove_productday_name.py | 0c27b59784126d3c5812ca071d7fec5a926e7134 | [] | no_license | inkandfeet/inkshop | 979064eb902c86dc95a6399e79ac753efbe547d1 | 691187b3eb4435782f8054e6404f1203e7d0c383 | refs/heads/master | 2022-12-13T01:26:02.361970 | 2021-11-18T23:01:50 | 2021-11-18T23:01:50 | 175,481,726 | 1 | 1 | null | 2022-12-08T04:59:16 | 2019-03-13T18:59:17 | Python | UTF-8 | Python | false | false | 329 | py | # Generated by Django 2.2 on 2020-08-17 00:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0010_productday_product'),
]
operations = [
migrations.RemoveField(
model_name='productday',
name='name',
... | [
"steven@inkandfeet.com"
] | steven@inkandfeet.com |
2dde96911891398f787d917e459942675023cc4d | 6bf6fc3f8634d386dac5b4cc9df9f78beb8d22e2 | /simple_server/simple_server.py | 25f499f03c87f649d22a4f782c550ebb4ecf2358 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | loxodromic/pwap8 | 03ff2aa9a9e8752c64ac34e0002129c0a842aa31 | fda3266c64f1d1c925fc54bacaf2f26e06aa84a6 | refs/heads/master | 2020-12-19T07:08:59.647615 | 2020-01-23T23:25:59 | 2020-01-23T23:25:59 | 235,658,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import http.server
import socketserver
#from https://docs.python.org/3/library/http.server.html
PORT = 8000
handler = http.server.SimpleHTTPRequestHandler
handler.extensions_map = {
'.manifest': 'text/cache-manifest',
'.html': 'text/html',
'.png': 'image/png',
'.jpg': 'image/jpg',
'.css': 'text/css',
'.js': '... | [
"matt@example.com"
] | matt@example.com |
504ad01ebe00c01f4db6cf21d97386a7a4e93d43 | 2f1d93a17565a2fa6c07799ddefba1bc64776660 | /dual_transf.py | 570ae28e9746504ce0ff8d8e371ee142decc3ae5 | [] | no_license | ishine/TSTNN | b6f40680a57f1208b805f340554613cccb370ac5 | 3a1dac4968bdb45d959985c535ab359f3f3cc4ce | refs/heads/master | 2023-02-28T01:32:24.849369 | 2021-02-06T04:44:20 | 2021-02-06T04:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,541 | py | import torch.nn as nn
import torch
import numpy as np
from single_trans import TransformerEncoderLayer
import os
#os.environ['CUDA_VISIBLE_DEVICES'] = '0, 1'
class Dual_Transformer(nn.Module):
"""
Deep duaL-path RNN.
args:
rnn_type: string, select from 'RNN', 'LSTM' and 'GRU'.
input_size: ... | [
"51517793+key2miao@users.noreply.github.com"
] | 51517793+key2miao@users.noreply.github.com |
af63f50c7e181b66f8bc77cdc57720f68b212bcd | ddf896fb5487228d1f8d56f19d9e69425554b2aa | /main/exceptions.py | ba5cd92ed3fb073931941911a06c505e800eaf33 | [] | no_license | quinn-lee/novalinks | caf057b60d721cecb92b526bde1647e5db7e658c | 8bb45cdaff6bde61fe00e41924109fb48c36cbd5 | refs/heads/main | 2023-08-25T15:30:49.049926 | 2021-10-28T12:06:27 | 2021-10-28T12:06:27 | 352,111,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # coding:utf-8
# 自定义异常类
class ValidationException(Exception):
def __init__(self, code, msg):
super().__init__(self) # 初始化父类
self.code = code
self.msg = msg
def __str__(self):
return "{} {}".format(self.code, self.msg)
| [
"lifuyuan33@gmail.com"
] | lifuyuan33@gmail.com |
c11a20375fcb8269589c69d7a42577b6ff5b69a1 | 4a36ce842a0cdbad127f8e4df245b49754154128 | /simple_mod_installer/conf/migrator.py | 908d18202634eef055817e0dfc25aa94b1477eb0 | [] | no_license | tfinlay/simple-mod-installer | 4bdedb1bcfc1d000be1d0d1da778de58e372107c | 7d8de09e7a1cd3a7b5102bc6d6d62f677889da7f | refs/heads/master | 2020-03-30T21:51:48.617068 | 2018-10-04T23:06:55 | 2018-10-04T23:06:55 | 151,644,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | """
These functions migrate from the key version up to the config version specified by the function's return value.
Each function takes one parameter: an absolute path to the config file
"""
import json
from simple_mod_installer.util import join_path
import logging
logger = logging.getLogger(__name__)
def update_1_... | [
"12890179+tfinlay@users.noreply.github.com"
] | 12890179+tfinlay@users.noreply.github.com |
b20b4c24dcadb4f67bba5b69fdbe6e2fb914ae22 | 46e007e62359e7ed3ce118decb63e1b6f8692a83 | /music/forms.py | a2dbf3ecb6a33fdb6c811dc67e873e8ab393a8aa | [] | no_license | Kiran-sz/Gana | 5762513329f785a9f907476a5bcf4c0895c8b020 | b8dad4b05cbd5af414ce1d58cfe6653f0e1954f8 | refs/heads/master | 2020-04-27T15:55:49.869757 | 2019-03-17T15:40:38 | 2019-03-17T15:40:38 | 174,397,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django import forms
from django.contrib.auth.models import User
from .models import Album, Song
class AlbumForm(forms.ModelForm):
class Meta:
model = Album
fields = ['artist', 'album_title', 'genre', 'album_logo'] | [
"kiranzond9@gmail.com"
] | kiranzond9@gmail.com |
a6ac7091cdb000d88943dc783eb219899f67e8eb | 45b91235051a6bfff0fa2acb6311abf41176ef90 | /hangman.py | abc99282ae4ca22de155bfdac34cc6b84164a795 | [] | no_license | dereyurtali/Hangman | a359ec8e0a66fcdc5d3154653a85ad43ee2b78e2 | dce0c0c9bd23214cfc4bafbddf3db27ea7bdc2cf | refs/heads/master | 2023-04-02T07:44:20.027370 | 2021-04-09T08:56:42 | 2021-04-09T08:56:42 | 354,659,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,526 | py | # Problem Set 2, hangman.py
# Name:
# Collaborators:
# Time spent:
# Hangman Game
# -----------------------------------
# Helper code
# You don't need to understand this helper code,
# but you will have to know how to use the functions
# (so be sure to read the docstrings!)
import random
import string
WORDLIST_FILEN... | [
"ali.dereyurt@stu.fsm.edu.tr"
] | ali.dereyurt@stu.fsm.edu.tr |
d67a175df19a408da2c199f5b0086646347b62b7 | 3319aeddfb292f8ab2602840bf0c1e0c2e5927be | /python/fill_mem.py | 7fffd16b155e85c92196cf16753d72a0476bebc9 | [] | no_license | slaash/scripts | 4cc3eeab37f55d822b59210b8957295596256936 | 482fb710c9e9bcac050384fb5f651baf3c717dac | refs/heads/master | 2023-07-09T12:04:44.696222 | 2023-07-08T12:23:54 | 2023-07-08T12:23:54 | 983,247 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/python
import sys,os,random,math
def gen_list(m):
l=list()
for n in range(0,m-1):
try:
l.append(random.randint(0,m))
except MemoryError,err:
print('Out of memory? ',err)
# if (n%int(math.sqrt(m))==0):
# sys.stdout.write('.')
# sys.stdout.flush()
return l
random.seed()
d=dict()
max=10
if... | [
"rmoisa@yahoo.com"
] | rmoisa@yahoo.com |
8764406ec291bb88670cfa66bd83c286d9b5f3e3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02583/s498399445.py | de6b4c39cce18ecbe13a7eedbe9a880f7066f64d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | n = int(input())
l = sorted(map(int,input().split()))
ans = 0
for a in range(n):
for b in range(a+1,n):
for c in range(b+1,n):
if l[a] != l[b] != l[c] and l[a]+l[b] > l[c]:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ff8346ce731f72d914f8d0a33d4da1b5cba310f1 | 289646aef1eb3e73fa657d62b77d8664b721a2a2 | /controllers/controllers.py | d5ad470aa76fbdf9f9e0b6b177f0c14c8a75ce85 | [] | no_license | xmarts/axolot_tracking_beta | 8a198fe8612b618a7effb29031418675433ca354 | 494780a50da3c470275d2d02a9f286870800aa97 | refs/heads/master | 2023-03-19T11:54:57.861380 | 2021-03-11T13:56:49 | 2021-03-11T13:56:49 | 344,592,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class MyModule4(http.Controller):
# @http.route('/my_module4/my_module4/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/my_module4/my_module4/objects/', auth='public')
# def list(self, **kw):
# return... | [
"jesusalvarezxmarts@gmail.com"
] | jesusalvarezxmarts@gmail.com |
d968d99703c58fc9574ae881f38e3721e6f99fb4 | 741cd58673a025f7ecede5b1f53fc8435501c690 | /Products_app/admin.py | 1ccfca2afe910e6a2b9d9640ab386d4099a0d35f | [] | no_license | icepablo/store | 63f71145de0c30c74147f57978378eca025bd9a5 | 838f3493109056ea35f2066a2e412e887f3f09da | refs/heads/master | 2020-03-24T00:33:46.738030 | 2018-09-25T12:34:12 | 2018-09-25T12:34:12 | 142,296,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
# Register your models here.
from .models import Product,Category
admin.site.register(Product)
admin.site.register(Category)
| [
"nontherlight@gmail.com"
] | nontherlight@gmail.com |
65b07e72f6b95b846c09908e68d9a63ad7c350f0 | 0157dc1de36498038514fc41f7a49ed0edb7abb6 | /game.py | ff0303ae66d829357b3694d28936835a9c4cf5c9 | [] | no_license | sistemd/game-in-python | d790b25b5fbb2125af932745e113082064f238da | ec2a3619976c0af7b90f77fcb4dd924d6b71f659 | refs/heads/master | 2023-04-13T04:05:31.187950 | 2018-05-05T19:37:23 | 2018-05-05T19:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,772 | py | from typing import Callable, Optional, List, Iterable
import enum
import abc
import sdl
import utils
GRAVITY = 1000
# Redundant type aliases?
Checkbox = sdl.Rectangle
Checkboxes = Iterable[Checkbox]
MainLoopCallback = Callable[[utils.Seconds], None]
def main_loop(cb: MainLoopCallback, fps: int) -> None:
end ... | [
"enntheprogrammer@gmail.com"
] | enntheprogrammer@gmail.com |
4a017370d471f61cc3780adf58a4ac8e2bb1676e | 71536013ef36dfca22f43f822d5c8f5c42d763da | /functions/messaging.py | 53cb46a208e2491a8b979526cdbf42d9c73c743e | [] | no_license | jerryneal/TradeChart | 9b179c541778fd3417c80f9e9d89aaf1c068ca42 | 51dbc269bd4697751ad1ad68c3e700b89439e159 | refs/heads/master | 2021-01-12T11:27:29.305368 | 2016-12-03T15:47:05 | 2016-12-03T15:47:05 | 72,930,614 | 0 | 0 | null | 2016-11-22T16:12:38 | 2016-11-05T14:17:50 | Python | UTF-8 | Python | false | false | 1,362 | py | from twilio.rest import TwilioRestClient
from configParser import *
import smtplib
import logging
class SendMessage():
def __init__(self):
self.cf = ParseConfig()
self.message = None
def sendSMSMessage(self,message):
try:
server = smtplib.SMTP(self.cf.gmSetup,self.cf.gmP... | [
"mckenzo12@live.com"
] | mckenzo12@live.com |
0ce2eb38c6ab9d4f84d257ae0707be923f6db556 | 8ec6beee190c8abbc4ac69d79c3569cc0c04241b | /weather/migrations/0002_auto_20201122_1744.py | 43bb60e9143cc00e21e6c82ab355bd214818fb62 | [] | no_license | mkyd-kill/Django-weatherapp | ea2141b19876c67e2f5c10763aded306ae06b1f9 | 360c24ba7ac8a0254b2be79a1f3cdaa2cb69e4b7 | refs/heads/master | 2023-07-13T13:07:45.063314 | 2021-08-21T14:00:36 | 2021-08-21T14:00:36 | 398,015,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.1 on 2020-11-22 14:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weather', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='city',
name='name',
field=m... | [
"romeomureithi@gmail.com"
] | romeomureithi@gmail.com |
bcd9ab42112147aa28a990704a1b3f4bd5082c92 | f68cd225b050d11616ad9542dda60288f6eeccff | /testscripts/RDKB/component/PAM/TS_COSAPAM_UpnpDevGetMediaServerState.py | fe649ec40dc301d5f710ed0a0a615db7bb1f45f1 | [
"Apache-2.0"
] | permissive | cablelabs/tools-tdkb | 18fb98fadcd169fa9000db8865285fbf6ff8dc9d | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | refs/heads/master | 2020-03-28T03:06:50.595160 | 2018-09-04T11:11:00 | 2018-09-05T00:24:38 | 147,621,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,289 | py | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2016 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | [
"jim.lawton@accenture.com"
] | jim.lawton@accenture.com |
8711eb0a24716d9305861bccc9eba32a5c7f40b0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_145/697.py | 3aa7d3d6b3e6a7823876b141a8df00a7a9a03a0d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import math
import fractions
T = int(input())
for t in range(1, T+1):
p,q = map(int, input().split('/'))
g = fractions.gcd(p,q)
p //= g
q //= g
plog = math.floor(math.log(p, 2))
qlog = math.log(q, 2)
qflog = math.floor(qlog)
if (qlog != qflog):
ans = "impossible"
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2a869f0259fa62bd12e0441e047e3f7cd970d99c | d4976b3cbec9d017672e98eb762418eb98c03a6f | /training/train_cnn_timeseries.py | b079b2b0426934dfe9da7bd6c1a10ebd7f378c66 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | haydenshively/Tezos-Prediction | e6319b5b250aa1fcb7f329406e1da6e621e77782 | 0718fb45b0f9e12e388110394d251a7d9794d3c0 | refs/heads/master | 2022-11-19T17:39:55.270123 | 2020-07-01T21:05:33 | 2020-07-01T21:05:33 | 258,636,839 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | import os
from scipy import stats
import numpy as np
from tensorflow.keras.utils import Sequence
from transforms import GAF
from models import CNNTimeSeries
class MyData(Sequence):
def __init__(self, dir, batch_size, n_samples_in, n_samples_out=1, distrib_size=1):
history_chunks = []
... | [
"haydenshively@gmail.com"
] | haydenshively@gmail.com |
58362d785398190d27cf4b31b0dc8c4f2fb5fb8e | 27ba1f72b60a5d2ea4050c292546537c99d3b7d2 | /setup.py | 8e0658b4e2880ddcce9a33629a88a915a4e7b02e | [] | no_license | michieljmmaas/CoronaSorter | 4b751e47128a8c96f3975f71c2edd2c2fb5cca2e | 18cb7f59851a1c47a96192a357ed3f28098370ee | refs/heads/master | 2021-05-20T02:13:06.535071 | 2020-04-20T21:25:02 | 2020-04-20T21:25:02 | 252,142,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from setuptools import setup
setup(name='CoronaSorter', version='1.1', packages=[''], url='', license='', author='MichielMaas', author_email='michieljmmaas@gmail.com', description='Plot van de CSV data geleverd door RIVM')
| [
"michieljmmaas@gmail.com"
] | michieljmmaas@gmail.com |
88890341a60f319b1124a3764a29d3a184e1b5ad | 7fee13fbe3d9a36ccd928d821966846853fc5d75 | /proj1/tests/string.unicode-unnamed-character.py | 135b53667085a742c25e59bd414cb5e2fd36e1c1 | [] | no_license | sphippen/uofu-compilers-tests | 8151cba16613a85d68c7a84917036530765ffc32 | a5869072f1cf468f652f855aeb511c9fa2d67ae3 | refs/heads/master | 2021-01-23T20:22:45.542518 | 2015-05-01T06:28:02 | 2015-05-01T06:28:02 | 30,105,673 | 2 | 3 | null | 2015-03-30T19:20:22 | 2015-01-31T07:20:03 | Python | UTF-8 | Python | false | false | 16 | py | "\N{<control>}"
| [
"joshkunz@me.com"
] | joshkunz@me.com |
ec8df99aa40209f1f2b0cb8c8fabf01bc1520036 | 284566560a7e128573e81e4782d5a97ddcd5320f | /src/main/resources/parser/rubocop.py | 97301a9eb7bdfe4537c064e951ab9d0a6780ba9d | [] | no_license | xebialabs-community/xltv-rubocop-plugin | 41ccc30ef82c8d62765bdd1fac3b5f12df6c57a0 | efb36c48492a7746e2a923971d8d61bd16071809 | refs/heads/master | 2021-01-12T08:46:00.811852 | 2019-05-10T17:12:20 | 2019-05-10T17:12:20 | 76,682,534 | 0 | 1 | null | 2016-12-16T20:35:58 | 2016-12-16T20:11:55 | Python | UTF-8 | Python | false | false | 2,898 | py | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import json
from parser.xunit imp... | [
"joris.dewinne@gmail.com"
] | joris.dewinne@gmail.com |
88e7578e5af18f773fac5562716a88e5c7a6dbdb | 0d4ec25fb2819de88a801452f176500ccc269724 | /min_queue.py | 509cca9eabd345107e70355d3cb50c52554d3d73 | [] | no_license | zopepy/leetcode | 7f4213764a6a079f58402892bd0ede0514e06fcf | 3bfee704adb1d94efc8e531b732cf06c4f8aef0f | refs/heads/master | 2022-01-09T16:13:09.399620 | 2019-05-29T20:00:11 | 2019-05-29T20:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | """
enqueue
add ele to queue
remove al elements from list > cur ele
add ele
dequeue
remove lee from queue
remove ele from list if equal to removed element
"""
from collections import deque
class MaxQueue():
def __init__(self):
self.queue = deque([])
self.max_queue = []
def enquque(self, x):
self.queue.ap... | [
"rohithiitj@gmail.com"
] | rohithiitj@gmail.com |
b325113484a7068d0bd9fb42c74bfdd16fdfa3fc | a1cbca323d0436af13bf7d273479a1981791d677 | /大数据/pyspark/zml_salary_predict/salary_predict_feature/resume_education_feature.py | 4edef9c1319960847f96d0f11cb9b6578d4c65f8 | [] | no_license | reganzm/ai | a23bce1d448e4d14b3877774e946be291d17c3e1 | 4572975e14bf4e4160f18db9c17717eab2051ea1 | refs/heads/master | 2020-03-26T05:23:32.507691 | 2018-12-10T06:25:02 | 2018-12-10T06:25:02 | 144,554,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # -*- coding: utf-8 -*-
# 教育经历数据中的学校、学历、专业编码
from pyspark.sql import SparkSession
from pyspark.sql.types import IntegerType
if __name__ == '__main__':
spark = SparkSession.builder.master("yarn").appName("resume_educations_data_prepare").config("spark.ui.port",
... | [
"zhangmin@shandudata.com"
] | zhangmin@shandudata.com |
43c4a5bc0ee159d5d78f69a2595b75a757ec59c3 | 97f2d3e77c562feafc5612b2628bf917ddf9627e | /home/urls.py | 1dba72dc2a0b77562d794244861336a429c317bf | [] | no_license | isottellina/p11-purbeurre-fix | b2109f85052d6596191905f8db5ca4d9c25f8b4f | c6d62f209888316ffc9485af436b5f70fb490e8d | refs/heads/master | 2023-08-17T02:38:42.112947 | 2020-06-17T18:44:20 | 2020-06-17T18:44:20 | 262,383,107 | 0 | 1 | null | 2021-09-22T18:59:42 | 2020-05-08T17:13:12 | Python | UTF-8 | Python | false | false | 362 | py | # urls.py ---
#
# Filename: urls.py
# Author: Louise <louise>
# Created: Sun Apr 26 21:16:25 2020 (+0200)
# Last-Updated: Mon Apr 27 00:15:10 2020 (+0200)
# By: Louise <louise>
#
from django.urls import path
from . import views
app_name = 'home'
urlpatterns = [
path('', views.index, name='index'),
p... | [
"louise@zanier.org"
] | louise@zanier.org |
4440815abc0a8366b2c885d6b9a1639c097b19ce | c0e0f7fb132dbb9225639044e0daa354789a4101 | /model/CustInfo.py | 88febc56bbef470a0ae6e21a531973421c72ea4e | [] | no_license | tomdziwood/PreciousClients | aff7bde3039795e24cd6ee4c044bf5711ba32ddd | 582b2a161614a73fc701b1b02ade3b089bf38603 | refs/heads/master | 2023-04-29T00:03:47.376082 | 2021-05-24T21:24:32 | 2021-05-24T21:24:32 | 369,925,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | class CustInfo:
def __init__(self, id, firstname, lastname, street_address, district, voivodship, postcode, est_income, own_or_rent, date):
self.id = id
self.firstname = firstname
self.lastname = lastname
self.street_address = street_address
self.district = district
s... | [
"tomdziwood@gmail.com"
] | tomdziwood@gmail.com |
fd4085640fc9754859cef2e874972d817cf51803 | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/service_hooks/v4_1/models/publisher.py | 065981f8d9f43c06f237b5a4594cdddc056d4ec9 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 2,589 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
664c3548f179f3d8b289a9433cca256bd21dbeb3 | 9a7f5f07c550e02f13c79d88d0a2c39a34e4b891 | /rules/discovery/rule_artifactory.py | 75c1e67e7fbe0fdcfa1602c7b965d77cf60ad1be | [] | no_license | Saloniimathur/vuln-scanner-flask | 90901a5167761e0fccf10b6dcf92ad5aeab44333 | 07ab9b715233275f86e3d3328a0feaa0ed6c404a | refs/heads/master | 2023-04-12T09:03:53.189102 | 2021-05-10T07:56:14 | 2021-05-10T07:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | from core.redis import rds
from core.triage import Triage
from core.parser import ScanParser
class Rule:
def __init__(self):
self.rule = 'DSC_SSB9'
self.rule_severity = 2
self.rule_description = 'This rule checks for the exposure of Artifactory Panels'
self.rule_confirm = 'Identified an Artifacto... | [
"krisna.pranav@gmail.com"
] | krisna.pranav@gmail.com |
b56ed93be4561121e0fb330608d921547dad4529 | 9aa776778cf6734c98c63eb390b3766be7e91e49 | /Assignment 7/train_eval.py | bfac93bca86862ded408fc902b00743dcd4a60f2 | [] | no_license | rushi-the-neural-arch/EVA6-Computer-Vision | 867749543dd166461f1552d9c0308bce59d9c1f0 | 8fa41fdb17f11d666189a52e2a9939d9ad7a3c20 | refs/heads/main | 2023-07-09T03:09:42.468784 | 2021-08-07T13:55:31 | 2021-08-07T13:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | import torch.nn as nn
import torch
from utils import calculate_accuracy
def train(model, iterator, optimizer, scheduler, criterion, l1_factor, device):
epoch_loss = 0
epoch_acc = 0
model.train()
for (x, y) in iterator:
x = x.to(device)
y = y.to(de... | [
"noreply@github.com"
] | rushi-the-neural-arch.noreply@github.com |
a4260a14f3673d699a88bb6b289abad6bd38beb7 | cbfddfdf5c7fa8354162efe50b41f84e55aff118 | /venv/lib/python3.7/site-packages/nltk/treeprettyprinter.py | 9d92c098bfa27d9d8ba042cb447f85f039ae656c | [
"Apache-2.0",
"MIT"
] | permissive | tclerico/SAAC | 8d2245221dd135aea67c5e079ac7eaf542b25e2f | 2f52007ae8043096662e76da828a84e87f71091e | refs/heads/master | 2022-12-09T21:56:33.430404 | 2019-02-20T14:23:51 | 2019-02-20T14:23:51 | 153,152,229 | 3 | 0 | MIT | 2022-09-16T17:52:47 | 2018-10-15T17:13:29 | Python | UTF-8 | Python | false | false | 24,342 | py | # -*- coding: utf-8 -*-
# Natural Language Toolkit: ASCII visualization of NLTK trees
#
# Copyright (C) 2001-2018 NLTK Project
# Author: Andreas van Cranenburgh <A.W.vanCranenburgh@uva.nl>
# Peter Ljunglöf <peter.ljunglof@gu.se>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Pretty-pr... | [
"timclerico@gmail.com"
] | timclerico@gmail.com |
8cf8a773e5453f17c5d821de53ab612575e70022 | 80bce7b7cfffb29dc4464d5556476de621311945 | /Hackerrank/maxToys.py | fa24460afbc0b105587abeccd8e80fac8a3609a8 | [] | no_license | dstadz/leetCode | 7f00d8c00282519a1aaa5be5e8d26740d9bfe1a7 | 9fc41e52a17f9ab6343a30cc363a1325f0acd336 | refs/heads/master | 2021-03-20T01:28:58.432027 | 2020-12-03T17:58:13 | 2020-12-03T17:58:13 | 247,162,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the maximumToys function below.
def maximumToys(prices, k):
options = []
# filter out useless things
for p in prices:
if p < k:
options.append(p)
if sum(options) <= k:
return len(option... | [
"danstad2012@gmail.com"
] | danstad2012@gmail.com |
d7aeba3928b28d5b42b67856008adb2434e7790d | 86cfd03e0fe96246bc2ed3e6d196b1700fadb991 | /simple_1d.py | 99de3c50ce2896d93b374822361294d584c04bd1 | [] | no_license | ttagu99/speech_recognition | 6911e87bb9d5d92a9451e2c213c87ce43f79a276 | ef7626b5b3f0969367eb418caf153aa889df5e79 | refs/heads/master | 2020-04-25T03:48:30.636118 | 2019-02-25T11:03:23 | 2019-02-25T11:03:23 | 172,489,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,509 | py | #-*- coding: utf-8 -*-
import os
import re
from glob import glob
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
os.environ["CUDA_VISIBLE_DEVICES"]="2"
POSSIBLE_LABELS = 'yes no up down left right on off stop go silence unknown'.split()
id2name = {i: name for i, name in enumerate(POSSI... | [
"ttagu99@gmail.com"
] | ttagu99@gmail.com |
db6fd0c315542a0507e1cf52c55d26f0f0669f12 | 7f01d72976f42c0165bf4cc6dee935a31a04cdb6 | /src/config/settings/staging.py | dad01fd5ec1547d9f86181147e83dc8aca4edbe8 | [] | no_license | aasilbek/vin-decode | 3263e98e6ed8966375377050842f7f4a00acaab0 | 266ebcd0d4baeb2b13176d4c47f7c227babd93be | refs/heads/main | 2023-07-26T03:41:47.182336 | 2021-09-06T06:30:40 | 2021-09-06T06:30:40 | 403,267,819 | 0 | 0 | null | 2021-09-05T20:39:39 | 2021-09-05T09:34:45 | Python | UTF-8 | Python | false | false | 65 | py | from .base import * # noqa
ALLOWED_HOSTS = ["*"]
DEBUG = False
| [
"asilbek@novalab.uz"
] | asilbek@novalab.uz |
9dfdd3b92ece26371c870d84de248f5f7116abc9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02695/s405471285.py | c0ad507ae3a6ab6de07f9a4d9c26cf42ebb312ac | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | def resolve():
N, M, Q = list(map(int, input().split()))
Q = [list(map(int, input().split())) for _ in range(Q)]
import itertools
maxpoint = 0
for seq in itertools.combinations_with_replacement(range(1, M+1), N):
point = 0
for a, b, c, d in Q:
if seq[b-1] - seq[a-1] == c:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
62489cf6bd1db233798d3235efa6a361b6c9fcfc | a02f2373e00f2d02ae3c3103467f8b0f950296e9 | /MapReduce/mapper.py | 1c5edab7b706d307e869bc4e4ebe986e083a9313 | [] | no_license | hayltonbernardes22/Data_analysis_study | 3621dc6f92c7ebcd447f5f0392d81aa5e92fbb72 | aec88f4f580dcf620736b643a93ab0d9ce32ad39 | refs/heads/master | 2023-08-27T19:08:50.073282 | 2021-11-05T20:07:53 | 2021-11-05T20:07:53 | 299,105,977 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """mapper.py"""
import sys
# input comes from STDIN (standard input)
for line in sys.stdin:
# remove leading and trailing whitespace
line = line.strip()
# split the line into words
words = line.split()
# increase counters
for word in words:
# write the results to STDOUT (standard outpu... | [
"noreply@github.com"
] | hayltonbernardes22.noreply@github.com |
633e7c045409b3b10cab965303d655ecbd4338e7 | f47cd722e457c5ace3ae11717c6535b06e91a2b8 | /Chaper02/U02_Ex09_ConvertFtoC.py | fffaab6b5306c5d5d545ddd35a75c837aee589d2 | [] | no_license | sebastians22/COOP2018 | 659cd1113cd5e2062866c1833768811dbd413c3b | c8ce2a0c24b8065e2ac4a07148b8dadca7d5d173 | refs/heads/master | 2020-03-28T06:36:50.829082 | 2019-03-01T05:27:16 | 2019-03-01T05:27:16 | 147,847,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | # U02_Ex09_ConvertFtoC.py
#
# Author: Sebastian Schaefer
# Course: Coding for OOP
# Section: A2
# Date: 04 Sep 2018
# IDE: PyCharm
#
# Assignment Info
# Exercise: 08
# Source: Python Programming
# Chapter: 02
#
# Program Description
#
# This program converts F to C
#
#
#
# Algorithm (pseudocode)
# Pr... | [
"sebastian.s22@student.parishepiscopal.org"
] | sebastian.s22@student.parishepiscopal.org |
2c8d42fdfbbb3bb1764d33bc816b9153cb402755 | a2d38faaadf89873271fc43c9f44e4e4299a9844 | /BE/app/audio_prediction_app.py | cc07f09baffa0a02a7ab996823031a72dbba8892 | [] | no_license | fsoft-ailab/aicovidvn-web | 6bc85c378ed984edfb928a33ad23aa4e229cec13 | f626eb168ef61cf1bfdf986b5c16937015b555ef | refs/heads/main | 2023-06-25T09:35:48.155538 | 2021-07-31T10:07:02 | 2021-07-31T10:07:02 | 387,201,530 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,622 | py | import json
import time
import base64
from flask import Blueprint, request, jsonify
from common import url_constant, param_constant, constant
from werkzeug.exceptions import BadRequest, InternalServerError
from utils import log_service, utils, postgres_util, s3_util
from services.audio_collection_services import AudioC... | [
"noreply@github.com"
] | fsoft-ailab.noreply@github.com |
becedd2878f6e3858bad94afb54decbd5501c9df | 4360f645e23c0d4077769b2085a197751b509804 | /Python/Card_Deck_Player_old.py | cd21aa9067cbcd0a34b20cf2a784f2f6e87194a0 | [] | no_license | TeresaRem/CodingDojo | 4d003916f0040d9b6bcb1c52759611536f2974e5 | 6be2f6ddb32a6c877cb6ce2a629b1a46708bb6a6 | refs/heads/master | 2021-06-12T00:05:18.062462 | 2017-02-06T23:56:58 | 2017-02-06T23:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import random
class Card(object):
def __init__(self, suit, number):
self.suit=suit
self.number=number
self.visib=False
def flip(self):
if self.visib==True:
self.visib=False
else:
self.visib=True
return self
def display... | [
"wapniarski@gmail.com"
] | wapniarski@gmail.com |
46f00f42a71b5e55e83bda0564202507b68eb03d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayBossFncGfaccenterConsolidationAcceptResponse.py | dc10dbd7e88c59b7deaaec1c29288feca42e302d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,442 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayBossFncGfaccenterConsolidationAcceptResponse(AlipayResponse):
def __init__(self):
super(AlipayBossFncGfaccenterConsolidationAcceptResponse, self).__init__()
sel... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
5d835d442c8cea1929273cb83ab37aed722fd719 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-cdk/python/airbyte_cdk/sources/file_based/discovery_policy/default_discovery_policy.py | 56bd19d01f16e48e289dd511f1b8cb00beda50fd | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 701 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from airbyte_cdk.sources.file_based.discovery_policy.abstract_discovery_policy import AbstractDiscoveryPolicy
DEFAULT_N_CONCURRENT_REQUESTS = 10
DEFAULT_MAX_N_FILES_FOR_STREAM_SCHEMA_INFERENCE = 10
class DefaultDiscoveryPolicy(AbstractDiscoveryPolicy):
... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
b30e7d624446c7260f0f799485ef0ad8f553a8ee | e8c3e7964f4b448e94481704d29508e9d6bd1798 | /CommonTools/test/buildWZworkspace_forZZ_1sigma_allErrOK_withEWKSyst_signalShapeFix_f5z_ifLessThen0SetTo0_2604Files_SMaTGCfit_QCDscaleFix.py | 64f483f5c7da078f04405ce67dfa038144d252d5 | [] | no_license | senka/ZZ_2l2nu_4l_CMS_combination | 1401f81dc255ea0ae4a0a5c73b022670849a1152 | 197655fa2143ffe1665cd7a1c6e5af2a2f48e57a | refs/heads/master | 2021-01-13T02:06:27.885996 | 2014-08-09T16:15:14 | 2014-08-09T16:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,308 | py | import pyroot_logon
import limits
import os
import sys
from array import *
from ROOT import *
from optparse import OptionParser
from ConfigParser import SafeConfigParser
def isItCorrelated(name):
print '\t ----> isItCorrelated: testing ',name
if ('_eff_b' in name or '_les' in name or '_pu' in name or '_ume... | [
"senka.duric@cern.ch"
] | senka.duric@cern.ch |
8a2ae10b22c4b3a967896e84b577bda9040e3527 | eb781c723da986b8230f869bc42a60a0f28eb257 | /number_of_ways_treverse_grid.py | 1af3ed67d61aca507cef4a0ddc63597b0d205252 | [] | no_license | sandy836/Interviewpro | 9dc49a4a6903559067fd6c63867d99562f607774 | f50efab83d6ff84bef132e841cd642a8511c013d | refs/heads/master | 2022-09-29T23:02:08.201229 | 2020-06-07T13:48:41 | 2020-06-07T13:48:41 | 254,679,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | def num_ways(n, m):
dp = [[0]*n for _ in range(m)]
for i in range(n):
dp[0][i] = 1
for j in range(m):
dp[j][0] = 1
for i in range(1, m):
for j in range(1, n):
dp[i][j] = dp[i][j-1]+dp[i-1][j]
return dp[-1][-1]
print(num_ways(3,7)) | [
"sandeepshrivastava518@gmail.com"
] | sandeepshrivastava518@gmail.com |
bf9b56c08bf4cf1b9e5b81624139200b57d166bc | 9c7f47b2f31ea4ae55e33c706efe524eb62ff177 | /HT_1/HT_1_13.py | 102b0b529a7af654ee6b096b686edbd4e13fa6a1 | [] | no_license | Kantarian/GITHUB | 05b6d5425b345667a4188ced23da76ed337b910a | fa047cbb2beb9bf372b22596bea8aaef80423872 | refs/heads/main | 2023-02-14T16:57:50.229446 | 2021-01-13T15:43:48 | 2021-01-13T15:43:48 | 311,783,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #13. Write a script to get the maximum and minimum value in a dictionary.
my_dict = {'x':500, 'y':5874, 'z': 560}
key_max = max(my_dict.keys(), key=(lambda k: my_dict[k]))
key_min = min(my_dict.keys(), key=(lambda k: my_dict[k]))
print('Maximum Value: ',my_dict[key_max])
print('Minimum Value: ',my_dict[key... | [
"noreply@github.com"
] | Kantarian.noreply@github.com |
59e922e5a23e26a9a7e7f22c7006d5d0cdecf0da | 99912297cd307c87aab1c4f3a3959858fd054340 | /ssc/cuboid_fitting.py | 779887b71876627cfaf1ca5831b4a445b93c8ed1 | [
"MIT"
] | permissive | zhigangjiang/SingleShotCuboids | 2d07a3aa4138f8714a0b1bb0c8b94957c42257f2 | ff2c06fb8cba8fae3be2e1293546b6e558c8f757 | refs/heads/master | 2023-03-07T19:16:58.609393 | 2021-02-20T15:39:07 | 2021-02-20T15:39:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,935 | py | import torch
import numpy as np
import functools
import kornia
class CuboidFitting(torch.nn.Module):
def __init__(self,
mode: str='joint', # one of ['joint', 'floor', 'ceil', 'avg']
floor_distance: float=-1.6,
):
super(CuboidFitting, self).__init__()
self.homog... | [
"nzioulis@iti.gr"
] | nzioulis@iti.gr |
8ad9bb30b3e0dce0d9be4144394ea10060e7df85 | e52afdf311d9b682fd2edfa2ac131bd83bbe63eb | /Week 2/4/Polynomial_LR.py | 5446a78c823704506e21c48f5ec0f3701b8fd318 | [] | no_license | YashwanthMN1/MLEdyoda | cc1185e4618e896764a0b01773a886e49ba9b8e7 | 36a9470729c57c7b6b742bac239e9352f8b2a133 | refs/heads/main | 2023-05-02T11:51:11.801693 | 2021-05-25T13:52:24 | 2021-05-25T13:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 9 15:10:23 2021
@author: RISHBANS
"""
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Company_Performance.csv')
X = dataset.iloc[:, [0]].values
y = dataset.iloc[:, 1].values... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
5a816edcf9b5572793ef4934aa937c7b939a75a5 | 7102f5d667da9b68622e96c17d22ae5e48c68878 | /Problems' Solution/DesignerDoorMat.py | d72174d6a27b563513dcb1fec7423ae715333edc | [] | no_license | shahnawaz-pabon/Python-with-HackerRank | 0032ff5c44fe9015f637131ae4d15d1bdc1812be | 53c68e82089f263f52b2c1431faccc979ccad5a3 | refs/heads/master | 2021-07-15T14:46:03.514436 | 2017-05-30T16:20:54 | 2017-05-30T16:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | N, M = map(int, input().split())
for i in range(1, N, 2):
print((".|." * i).center(M, "-"))
print("WELCOME".center(M, "-"))
for i in range(N - 2, 0, -2):
print((".|." * i).center(M, "-"))
'''
N, M = map(int, input().split())
s = '.|.'
wlcm = 'WELCOME'
upper = int(N / 2)
lower = upper
... | [
"noreply@github.com"
] | shahnawaz-pabon.noreply@github.com |
ff2d8f2ab7ae00026e60b344129a01111c5b7aad | c7d5c327e673fb11fe60afc0defbbfc4cd50f45a | /Free/proyecto/python/5.py | 18609a4b7fa2e3e1d702e8376ac3bf8a36c74cf8 | [] | no_license | juandaar/IoT-Platform-php-2016 | 3ebc5ffe62195a59ec40ac6b25faaec550a1ffd9 | 6a1334d749c9351d47a1c915f908c5d6d3f5f333 | refs/heads/master | 2020-12-04T16:57:23.586731 | 2020-01-05T00:22:41 | 2020-01-05T00:22:41 | 231,845,085 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import argparse
import numpy as np
import json
from sklearn import linear_model
#holi
parser = argparse.ArgumentParser('informacion')
parser.add_argument('numero_inicial', metavar='N', type=int)
parser.add_argument('valores')
args = parser.parse_args()
arreglo_json=args.valores
numero_inicial=args.numero_inicial;
dato... | [
"juandaar@gmail.com"
] | juandaar@gmail.com |
a90e66c06f0382b100105aa3e048d08ef5a258e6 | 5752f1ddb8df26568777cc207d75a247e485af6b | /CODES/spot_hot_n_cold_omni_avg_maps.py | cf0f3cb84f6f3efb7c8cab3a6dd10c4afe75741b | [
"MIT"
] | permissive | manu-script/recomb_landscape | 240ba83195f336eb1841443a201b9871ddc29d42 | cf01d7d0fc8a57a3ca2a105498a3acdaeb9ac6cc | refs/heads/master | 2021-05-13T15:33:00.190293 | 2019-10-12T09:22:09 | 2019-10-12T09:22:09 | 116,767,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,588 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 22 09:55:00 2017
@author: manu
"""
import os
import numpy as np
import pandas as pd
import peakutils as pu
import warnings
from scipy.optimize import OptimizeWarning
from joblib import Parallel, delayed
from multiprocessing import cpu_count
from sci... | [
"manuvaivasvata7@gmail.com"
] | manuvaivasvata7@gmail.com |
fdb01d318303a533b9e7b88a3aa633b89b8ea312 | 629606ef6e0ce252f74729ac60f57ca8805c3c78 | /hw_002_LargeData/hw_001_matplotlib/venv/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py | 3f8639e631b3b73b837fda3c724ad481f739df3d | [] | no_license | LeeXyan/lxgzhw006 | cc31024874725f60b766c9d5d24c2dafc66b8de3 | 621a73544262df7e104806579242deeaa8dbe2c2 | refs/heads/master | 2021-10-10T17:41:52.381843 | 2019-01-15T00:25:08 | 2019-01-15T00:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,416 | py | import functools
import textwrap
import warnings
class MatplotlibDeprecationWarning(UserWarning):
"""
A class for issuing deprecation warnings for Matplotlib users.
In light of the fact that Python builtin DeprecationWarnings are ignored
by default as of Python 2.7 (see link below), this class was pu... | [
"1156956636@qq.com"
] | 1156956636@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.