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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a12f16bca3314acc2311443f9ac38090380edb1 | 250a1f14955de0e23766a7b30a7296a187a69cf5 | /seguros.py | 9a8f6ab922b7d10b5277ba5ca66dbdc248889857 | [] | no_license | dxviidmg/seguros | 98d2a6716be61e867a5670760d496643486c6171 | 12cfbecc0be141a03d24f997c9a97d7574f3e6a5 | refs/heads/master | 2021-01-12T17:58:30.522598 | 2016-10-19T03:57:12 | 2016-10-19T03:57:12 | 71,317,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/env python3
def preguntas():
pregunta = input("")
return pregunta
def calculo(plan, alcohol, lentes, enfermedad, edad):
if (plan == "A" or plan == "B") and edad >= 0:
if plan == "A":
cuotaBase = 950
else:
cuotaBase = 1200
if alcohol == "n" and lentes == "n" and enfermedad == "n" and edad < ... | [
"david@david-Lenovo-U310"
] | david@david-Lenovo-U310 |
d60a814c28143be0a5c7d1e0fc2c8e5f1ed37443 | 4bc87e8f3801ff8c14e3abdbc215744e29cf075e | /notebooks/test.py | 86c78557d9fa7678e0c6c08daf520b56bac05cc9 | [
"MIT"
] | permissive | brotatos/growth | 9718974ee0ea491298874985c3c75ca9087ccb8f | 27856415c769b2852d931a092d5a6846abe5ad20 | refs/heads/master | 2021-01-11T16:57:01.529713 | 2017-02-28T00:25:11 | 2017-02-28T00:25:11 | 79,701,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
def auto_canny(image, sigma=0.33):
# compute the median of the single channel pixel intensities
v = np.median(image)
# apply automatic Canny edge detection using the computed median
lower = int(max(0, (1.0 - sigma) * v))
upper = int(mi... | [
"[email protected]"
] | |
12417d01dc0f8a4f9aee523f9ec745a1d1940548 | 77c965bde6202614ba4a45649efde432b67b5264 | /api/utils.py | 7f0f213da8768f09de4a9bccea2689af3d7f77d7 | [] | no_license | Munkhtur/Image-Colorizer | 1d2eb1ce5841bdc8fa1c3adf26e4f24bebbf10ee | 39b4e6913ab1a8eadd49ce5710de9a6b8482864b | refs/heads/master | 2023-07-30T18:53:18.889392 | 2021-10-04T08:25:12 | 2021-10-04T08:25:12 | 413,312,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import secrets
import os
from PIL import Image
from flask import url_for, current_app
import time
now = time.time()
def save_picture(form_picture):
random_hex = secrets.token_hex(8)
_, f_ext = os.path.splitext(form_picture.filename)
picture_fn = random_hex + f_ext
picture_path = os.path.join(
... | [
"[email protected]"
] | |
2e294f451957743c51d7c14b22be1f2f924f3dd9 | de42126083dcbdbd431a9827e3e5c8987720d4c7 | /bin/django-admin.py | 4cd14231c8cd2768c0222df94c3f9573f6104398 | [] | no_license | MicztheMike/redis-servertest | 73222230ee96ad66e99da71dc224563c5b4f2c7b | c8e5f7b3f3cebd8ce5c8fe87108fbd2bb653813f | refs/heads/master | 2020-03-23T08:52:38.063267 | 2018-07-17T23:46:09 | 2018-07-17T23:46:09 | 141,353,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | #!/home/noc/miketestimg/mike/bin/python3
# EASY-INSTALL-DEV-SCRIPT: 'Django==2.2.dev20180716182847','django-admin.py'
__requires__ = 'Django==2.2.dev20180716182847'
__import__('pkg_resources').require('Django==2.2.dev20180716182847')
__file__ = '/home/noc/miketestimg/mike/bin/django/django/bin/django-admin.py'
with ope... | [
"[email protected]"
] | |
b4bd0d04e9435209f15707975d7bcdfc818e3abf | bcabc33ab2e052485f9609143dfdb8eaa847f47f | /Exercise33.py | de08ecd75524608b4c3d4726198f4765529ae443 | [] | no_license | ErenBtrk/Python-Exercises-2 | 3b82a92d33fce661cd003a9096cdfbf29e8c9f27 | 42f40fc26fcef7c83e19313aea1fab4396c48f6a | refs/heads/master | 2023-04-27T08:56:07.879353 | 2021-05-15T19:05:46 | 2021-05-15T19:05:46 | 367,335,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | '''
33. Write a Python program to sum of three given integers. However, if two values are equal sum will be zero.
'''
my_list = []
isEqual = False
sum = 0
i = 0
while i < 3:
number = int(input("Please enter a number : "))
sum += number
if(number in my_list):
isEqual = True
my_list.append(numb... | [
"[email protected]"
] | |
d0d38f9ad8bfa595c858d3c508118ae75370fdd9 | 9a7e9c96ff32362064d2b3fffe13a770c054cc4a | /transpositionDecrypt.py | 881ca23bad452039a6837136d83b47ca3e73980b | [] | no_license | jlgrosch/PythonTraining | fcebe52688215b4e982ea83a052db9a6c8be9f6d | ae1e212a63f3907b24cf1e5788c9a10dafb9535c | refs/heads/master | 2020-03-28T13:27:48.866095 | 2018-11-12T00:28:40 | 2018-11-12T00:28:40 | 148,397,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import math, pyperclip
def main():
myMessage = 'Cenoonommstmme oo snnio. s s c'
myKey = 8
plaintext = decryptMessage(myKey, myMessage)
# Print the encrypted string in ciphertext to the screen, with
# a | after it in case there are spaces at the end of the message
print(plaintext + '|')
p... | [
"[email protected]"
] | |
006b607bc7b2de98ec06c9d44f27e98caf7b211b | 4a4f1eb77d0247d3f68f41f48bd42485787c61a7 | /100q/question_041/exercise041.py | 4a9c8a76b3c126479164cc2c333b16f58bf116d2 | [] | no_license | crawsome/Python-programming-exercises | 1a14e35749dfe3049d88535638d88d3a4c06ecaa | 11f45ad7f5beb79382903ad568b96c168793fb6c | refs/heads/master | 2020-05-23T10:49:59.987977 | 2019-08-18T21:24:21 | 2019-08-18T21:24:21 | 186,725,479 | 0 | 0 | null | 2019-05-15T01:16:30 | 2019-05-15T01:16:30 | null | UTF-8 | Python | false | false | 150 | py | """2.10
Question:
Define a function which can generate and print a tuple where the value are square of numbers between 1 and 20 (both included).
""" | [
"[email protected]"
] | |
8f9b9d0b24a4d0cdabeeed1209d50d12b85a9d00 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/BAS-TCP-MIB.py | c800063426c18db4269a44ab81ea8c50dacdd298 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 17,633 | py | #
# PySNMP MIB module BAS-TCP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAS-TCP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:34:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"[email protected]"
] | |
a03022e69efb6d0ca7a4bb1f9420747bb30f37d9 | 9c3bb98eb9d0a587a302bdfa811f7b5c6a5a0a37 | /Week 1/id_050/LeetCode_70_050.py | 07a2820dbb45ced18ddecff9df6516a9993540fd | [] | permissive | chenlei65368/algorithm004-05 | 842db9d9017556656aef0eeb6611eec3991f6c90 | 60e9ef1051a1d0441ab1c5484a51ab77a306bf5b | refs/heads/master | 2020-08-07T23:09:30.548805 | 2019-12-17T10:48:22 | 2019-12-17T10:48:22 | 213,617,423 | 1 | 0 | Apache-2.0 | 2019-12-17T10:48:24 | 2019-10-08T10:50:41 | Java | UTF-8 | Python | false | false | 284 | py | class Solution(object):
def climbStairs(self, n):
"""
:type n: int
:rtype: int
"""
if n <= 2: return n
f1, f2 = 1, 2
for i in range(3, n+1):
f3 = f1 + f2
f1 = f2
f2 = f3
return f3
| [
"[email protected]"
] | |
453292745d5696c32db20ed256af1e42152f0252 | 0bd7685c419f54fbcbb36129ee61a1ad5a79c44a | /NewsWebsite/urls.py | 5726b9035718cd68f13c36f4a0976309f0667543 | [] | no_license | AS-AmanSinghal/NewsWebsite | d3c3aeeb08248d51ade5ad1c5003e1cca73db535 | 42db57a64cfeb5b810d4ff0da113522540f60b94 | refs/heads/master | 2023-04-30T23:51:46.511751 | 2021-05-22T10:34:51 | 2021-05-22T10:34:51 | 367,278,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | """NewsWebsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"[email protected]"
] | |
0bdf2c06f437b597d430d1218c0994b998651b0f | 8351de4523dccf6f7dc515e0d9e6f8aef3465d38 | /arsmagica/arsmagica/sqllite_settings.py | 66fcf3df085064c9c6f23323a9f04ff4502db82b | [] | no_license | DaveTheTroll/ArsMagica | 1db5089bfa54dd472af1ee47dfa7d6fb4328e785 | b6323cf94f6dde15ba97b770d778fe6c58bbb058 | refs/heads/master | 2022-11-16T01:45:56.303057 | 2020-07-15T16:59:59 | 2020-07-15T16:59:59 | 271,326,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """
Django settings for arsmagica project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
e63438f8d0fb4edfc07e2ca115759d3f1e683380 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch78_2020_06_21_00_43_30_170269.py | ccb49ce8e0e8810c449896d168656b21ea4add01 | [] | 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 | 492 | py | def calcula_tempo(dicio):
nome_tempo = {}
for e,a in dicio.items():
t = (200/a)**(1/2)
nome_tempo[e] = t
return nome_tempo
nome_acel = {}
nome = input("Digite o nome: ")
while nome != "sair":
aceleracao = input("Digite a aceleração: ")
nome_acel[nome] = aceleracao
nome = input("... | [
"[email protected]"
] | |
5f7446f489a68650bf5413ecc2062f9a325e93f6 | 2f5c38b8c7c6f2285f44b72c686875ada094f89e | /webim_oauth_vk/main/models.py | 17a73cb676f9512201f6bdd88ea12fbc9fa0858b | [] | no_license | Pegorino82/VK_OAuth | 956166de516b17ecf19e24e21ef1d29406f5052c | 8c92a501147a46af8a2f89a453dcc8ff9c51c089 | refs/heads/master | 2020-04-09T19:45:14.550287 | 2018-12-05T17:21:56 | 2018-12-05T17:21:56 | 160,552,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from django.db import models
from django.contrib.auth.models import User
class Friend(models.Model):
friend_id = models.IntegerField()
first_name = models.CharField(
max_length=150,
null=True
)
last_name = models.CharField(
max_length=150,
null=True
)
nicknam... | [
"[email protected]"
] | |
55f1675ef1c6713370c088eaa413f7f0540bc987 | 08b0fa07fb13392784dd1948d4b8da5fff96a650 | /DisplacedJetMCProd/test/DisplacedJetProd/makeCfgFiles.py | 562be028a33ea4f64fbdc874164ebc64ce062b3b | [] | no_license | Cristian42/UsercodeCMS | 5b59078c4914b8156a44afbb086137eb8e85be30 | dad91a5760bb35711b61c358aa360df09fa4e3c8 | refs/heads/master | 2021-01-17T23:01:33.838580 | 2013-09-16T19:44:26 | 2013-09-16T19:44:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | import os
os.mkdir('cfgFiles')
for f in os.listdir('../../python'):
if f.find("HTo2Long")==-1 : continue
if f.endswith('pyc') : continue
command = "cmsDriver.py MyAnalysis/DisplacedJetMCProd/python/"+f+" \
--step GEN:ProductionFilterSequence,SIM,DIGI,L1,DIGI2RAW,HLT:GRun\
--beamspot Realistic7TeVCollision\
--fil... | [
""
] | |
5e8deb881009950cdc20313fbf6fd802f964a34f | 8f35599e264e57e87916381cd03eb9f17e82be74 | /stepik_tasks/python_programming/unit3.7/task3-7-3.py | ba9ef3c13e56d46b763daca27e72ff8180e20d95 | [] | no_license | DorogAD/stepik | 6c1b91d68dc09ce2255501724b0b2ee22624467c | 80203de57fa9f226cb23d35c7f08cc43eb91cf56 | refs/heads/master | 2023-02-22T19:53:45.145799 | 2021-01-24T10:16:48 | 2021-01-24T10:16:48 | 310,315,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | """
https://stepik.org/lesson/3380/step/3?unit=963
Простейшая система проверки орфографии может быть основана на использовании списка известных слов.
Если введённое слово не найдено в этом списке, оно помечается как "ошибка".
Попробуем написать подобную систему.
На вход программе первой строкой передаётся количест... | [
"[email protected]"
] | |
68f03066fd5fa39a29476db1b2d3a557829e1395 | 4a85a4048212a796c4b4893d97ce189f95d984b4 | /document/views.py | 650f0f82f106f7b012764280c4d3be52cd279459 | [
"MIT"
] | permissive | harshit212705/MyPen-Backend | 6169254b30195feaeea5bb73973e2b47f5c80013 | 3d1b496c7c64c455a167e59db820556893ff3ece | refs/heads/master | 2023-02-22T07:16:12.150932 | 2021-01-28T03:51:53 | 2021-01-28T03:51:53 | 286,424,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,064 | py | from rest_framework import viewsets
from rest_framework import permissions
from django.http import HttpResponse, JsonResponse,FileResponse
from django.views.decorators.csrf import csrf_exempt
from django.core.files.storage import default_storage
from shutil import copyfile, rmtree
from fpdf import FPDF
from PyPDF2 impo... | [
"[email protected]"
] | |
bb1df2a73f76642867e6419de64f363b50a7fdf1 | b2b8da5f84433be8aa0358b50f8f92c1a33c1ad4 | /frontiers.py | bd29d3f1d2bd3451544190180ab296e702983cf0 | [] | no_license | HUIYINGLEE/Artificial-Intelligence-Search | 754655ea1fa48f251218327ba8399ca25a28d2f4 | 31d39055b2f57e16cb9bbc274ebf73083b2c903e | refs/heads/master | 2021-01-23T04:23:48.799642 | 2017-09-05T07:30:39 | 2017-09-05T07:30:39 | 102,445,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py |
""" This file contains data structures useful for representing search frontiers
for your depth-first, breadth-first, and a-star search algorithms (Q1-3).
You do not have to use these, but it is strongly recommended.
"""
import heapq, collections
class Stack(object):
""" A container with a last-in-first... | [
"[email protected]"
] | |
22d5ffcad123fb4eadc95116c69093d02e661bc4 | cc1ea36872e95190582813dc8235c8d4afbf4d78 | /python/ray/experimental/data/tests/test_dataset.py | 10680d1de1c7895d8d9b5e1321216782aba92526 | [
"MIT",
"Apache-2.0"
] | permissive | tmct/ray | dfde69624742b6c24b27f0b5c6be5fd77d07c135 | 53206dd4401665ec599118241c236ac9e6f4852a | refs/heads/master | 2023-05-30T18:25:23.838922 | 2021-06-30T10:32:11 | 2021-06-30T10:32:11 | 377,907,576 | 0 | 0 | Apache-2.0 | 2021-06-17T17:14:18 | 2021-06-17T17:14:18 | null | UTF-8 | Python | false | false | 3,618 | py | import os
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
import pytest
import ray
from ray.tests.conftest import * # noqa
def test_basic(ray_start_regular_shared):
ds = ray.experimental.data.range(5)
assert sorted(ds.map(lambda x: x + 1).take()) == [1, 2, 3, 4, 5]
assert ds.count... | [
"[email protected]"
] | |
696e39ff3ce938c57d77bbd1d19720114a429717 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802120344.py | 295d66f8b4e038a18999b672b169036dff3785bd | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"[email protected]"
] | |
d8d1fdfd39c67f49a3452b03040757c0ece60164 | b34017f6b6a6ba2579d31ba147201efd49a1318a | /View/client_view.py | 3b42d8abd082098d5aa3610a15b3ed24de57413a | [] | no_license | RichardLukacs/MyStore | ca207ab670abb88e30c6f76e28fe59258abc53ab | 11b82b3f0afe67f1ae96f7143c4f033662f177fd | refs/heads/main | 2023-06-30T16:46:08.384988 | 2021-07-30T10:30:09 | 2021-07-30T10:30:09 | 391,020,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | class ClientConsoleView:
@staticmethod
def display_one_client(client):
"""
Display one client in the console
:param client: Client
"""
if client:
print(client)
else:
print('No such client')
@staticmethod
def display_al... | [
"[email protected]"
] | |
91304baf41353160c2dc62465e514ad735ed0613 | 1001a92bb42809d73b2320b94fc9a6239122afd8 | /social-website/bookmarks/account/migrations/0001_initial.py | 48c07afa3dbe90d9aaceea49c8c53b48129390d9 | [] | no_license | iluxonchik/django-by-example | 566924bb702eadf1c4fd2c760fa170e13048fc02 | b752b20dd5d01fc443f2d0b6d00dfaf804a4a453 | refs/heads/master | 2021-01-17T17:37:50.725295 | 2016-07-22T16:38:09 | 2016-07-22T16:38:09 | 60,127,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-28 22:49
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | [
"[email protected]"
] | |
6a1b21ebf2ba5d540449901d367ac42258853d0f | be6daee5e78faf9d501b4c4d9eee696eb20dc787 | /SignalWire/outboundsms.py | ca406390346ff0be24dcdab66c082ed16d90b232 | [] | no_license | goodmorningsms/website | 58bb39d3e78748e23e7ea2a58ea59da610b73a92 | 43ca53b3e0add9f3b345d9501f91e4a4396b6766 | refs/heads/master | 2020-05-16T07:29:10.922346 | 2019-04-25T21:30:54 | 2019-04-25T21:30:54 | 182,879,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | print("Hello world")
__pacage__ = None
from signalwire.rest import Client as signalwire_client
import private_key as key
txt_service = signalwire_client(key.project_key, key.api_key,
signalwire_space_url = key.signalwire_url)
"""
import gspread
from oauth2client.service_account import Ser... | [
"[email protected]"
] | |
a0c798b8f6efc1d95512a72dedd752659655ec9d | cf7c33cd8def8d9e55bcd23c76f174b2d22312fa | /Python/test_b.py | b4de07ffcc9b78d7993b8e80231c23b76ed39de2 | [] | no_license | tinchodipalma/winclap-fullstack | f4ffee440844827caac9391c1c0c131f3079efea | cb82a525108cabe0d73620b4f842b8c966fb664e | refs/heads/master | 2021-04-30T16:43:23.910727 | 2017-01-26T13:12:42 | 2017-01-26T13:12:42 | 80,114,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import re
def annograms(word):
words = [w.rstrip() for w in open('WORD.LST')]
# Get same length words
words = list(filter(lambda x: len(x) == len(word), words))
# Check for each letter in word with regex
regex_pattern_list = ['(?!.*{}.*{})'.format(s, s) for s in list(word)]
regex_pattern_str ... | [
"[email protected]"
] | |
1ced2d5c55106a19d0fa414dd17ea6b1564230fd | 9d35caf28fa2e4cb0ec56491fed240c6a0da2f02 | /Acunetix12-Scan-xray.py | b94dda80043a31635ce64489e2f1b2d61c5dfe18 | [] | no_license | Jadore147258369/Acunetix12-Scan-xray | b49eb9838756a6ccdeaa51c62aa33ce37e8cc036 | 5be491d1c408374a7d5a0637eaa9cc01f323b0fc | refs/heads/master | 2022-12-08T12:02:37.702308 | 2020-09-03T07:51:11 | 2020-09-03T07:51:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,750 | py | import requests
import json
import tableprint
import os
import sys
import openpyxl as ws
from config import *
requests.packages.urllib3.disable_warnings()
def get_scans():
creat_xlsx()
c = 0
while True:
result = requests.get(define.host + "api/v1/scans?c=" + str(c), headers=define.api_header, tim... | [
"[email protected]"
] | |
b1d23fd7f98b9381ceec7d7651a3b6654f0f24dd | aa7d92a5ac6be781b77882dc83ec0b6bb2b7f34c | /vocab/student.py | d29ebdf6d1185936e8da385d374b49d00a43effe | [] | no_license | timthetinythug/lexicon | bc2ccc3e166b98cae72492508d890ca2829e2b2a | 67aded618fc9c41af6656dbdedf6f3d50d773dcd | refs/heads/master | 2020-03-22T10:28:15.057275 | 2018-07-05T22:12:28 | 2018-07-05T22:12:28 | 139,904,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from format_txt import format
from parsed import parser
from word_dict import vocab
# Student will create an object for student with student name &
# and parse their vocabs for further implementation
# type(name) == string
# type(vocab_sheet) == string (file.txt)
# have the following file format:
# Date
# word, 0... | [
"[email protected]"
] | |
9fd1055937018450212f454ac0800c8b37638cb4 | 12541a13c92f50b5369ee7f99ed0c1e97a45f035 | /2/2-10.py | ea0ed8aceae926373a46bd329d8cc417f82a6ddc | [
"BSD-3-Clause"
] | permissive | liuhanyu200/pygame | 6364d90914c244fa53f56a5616a9bd95b86f440c | 38a68e779e6b0a63edb1758fca98ebbf40bb0444 | refs/heads/master | 2023-06-07T04:32:57.946745 | 2021-07-01T10:17:41 | 2021-07-01T10:17:41 | 375,933,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | #-*- coding:utf-8 -*-
# 2.5.2 注释
# 作者 hsyagk
# 邮箱 [email protected]
# 功能: python 注释学习 | [
"[email protected]"
] | |
820930a5e53816c16ff55040a2c335e0fd53fe5c | 938b4df6428da214d25cb268b0d4099d56f1c8cf | /CodingBat/warmUp2.py | 5bdf0c535060622959a7b13096b0bac4ff506706 | [] | no_license | AL-knowledgeSeeker/Python_Prac | 5f2500b80c50bbeca5a1ff879a91f7582d1e2d80 | 878f07921cd30914e80675e8955f99b946d98561 | refs/heads/master | 2020-11-26T01:58:07.382605 | 2020-01-06T19:37:11 | 2020-01-06T19:37:11 | 228,930,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | class warmUp2:
def string_times(self,str, n):
return str*n
def front_times(str, n):
if len(str) < 3:
return str * 4
else:
return str[:3] * n
def string_bits(str):
temp = ''
for i in range(len(str)):
if i % 2 == 0:
... | [
"[email protected]"
] | |
b7c67d3c5f23c1d92ab7030f1b19e6adbbfc0969 | 7c0ac3eb9c84662a748579190a5f563b1980c668 | /python_wagtail/mysite/mysite/wsgi.py | 0a9eb600d85c3554ba7e021fba2991251d5274ee | [] | no_license | ngduytra/python-utilities | 97cf49d4e5c7f68111c4aef89c1b6fdeda2e8fbc | 9db51b19735e632f8dccd2dc1e09f77744d13547 | refs/heads/main | 2023-09-03T02:18:33.290112 | 2021-11-10T03:25:45 | 2021-11-10T03:25:45 | 426,470,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for mysite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"[email protected]"
] | |
0db523f629f5e49a1e06ffc80d9771b1054577b5 | 76839071c203b7dc09f8da9afe776ba5e2de8159 | /testing/prepare_data.py | 1f888d4c6b226329b0487d49a56cb2dd256e6811 | [] | no_license | TwineTickler/tradingproject | 6200ac656bc03195dc2833c05007c501a1081d3b | c9f16c48f49d74c64d1d1951c7aa45a961167fa7 | refs/heads/main | 2023-02-21T14:25:40.960274 | 2021-01-26T17:00:19 | 2021-01-26T17:00:19 | 316,829,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | import numpy
from sklearn.preprocessing import MinMaxScaler
def prepare_data(df, look_back=1):
# returns 4 arrays
# trainX, trainY, testX, and testY
numpy.random.seed(7) # set random seed
dataset = df.values # move the data into a numpy array
scaler = MinMaxScaler(feature_range=(0, 1))
data... | [
"[email protected]"
] | |
3cf4abfdaf5094a306978d20df90e429f4110f67 | 927b8ad06ac318c9fbff96587bc2ae3325c1b71a | /webapp/app.py | 187dd78013addda8b124b7aa61360b89664287e3 | [] | no_license | anthonydillon/random.webteam.space | 095b494f95c531d1fa87205b5a33f9f434ab01d6 | 1a38d5aabfe78a1430743a230cd989c9196aa587 | refs/heads/master | 2020-12-30T09:02:51.638677 | 2019-11-22T16:23:10 | 2019-11-22T16:23:10 | 238,942,061 | 0 | 0 | null | 2020-02-07T14:21:22 | 2020-02-07T14:21:21 | null | UTF-8 | Python | false | false | 1,175 | py | import flask
from werkzeug.contrib.fixers import ProxyFix
from werkzeug.debug import DebuggedApplication
from webapp.handlers import add_headers, clear_trailing_slash
from webapp.webteam.views import webteam
def create_app(testing=False):
app = flask.Flask(
__name__, template_folder="../templates", stati... | [
"[email protected]"
] | |
7a55f0da86c53f5851d0f3bf98eac22dc24a968b | 1373deef4c5c20c3f1f43f3ad8d3f98cfb602a49 | /novice/01-04/created/task/views.py | e14bb109481094396928a4d83232ed348046f31c | [] | no_license | giko99/praxis-academy | 53e0dc5497a42e8317a72b5879a68ecfc09e0b7d | 7b48da3930b7701a827a5d5ad16e629aa21267f3 | refs/heads/master | 2023-04-18T08:10:57.193051 | 2021-04-27T19:52:50 | 2021-04-27T19:52:50 | 287,189,913 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.shortcuts import render
from . import models
# Create your views here.
def index(req):
if req.POST:
models.Task.objects.create(name=req.POST['name'], status=req.POST['status'])
tasks = models.Task.objects.all()
return render(req, 'task/index.html',{
'data' :tasks,
}) | [
"[email protected]"
] | |
f95a67440ef70c23e6aa2a98be806bd8f7595efe | 3f67b218b7d949894593cb8c2dacb28379cf542d | /SFM/SFM.py | fa9f629e3216b7eb658ff204c8b6b03be50a61a9 | [] | no_license | PonsletV/Structure-from-motion | 768724e58caf5eee82caf71f3d9c869d63d91319 | cdddfc5e250d99fc307cc9097a27997351c0aa13 | refs/heads/master | 2022-04-14T21:59:22.316210 | 2020-03-20T13:48:57 | 2020-03-20T13:48:57 | 245,221,341 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,932 | py | import numpy as np
import cv2
from Descriptors.matching import Match
from SFM.camera import Projection, compose, concat, Calibration
class Sfm(object):
""" Class for representing the correspondence between two images"""
def __init__(self, calibration: Calibration, match: Match, projection_left: Projection):
... | [
"[email protected]"
] | |
e6778ae2069b9e2e1466c351be963150e6dbbb48 | 08ad52ed4d6b33d464d245273f060bd0722029ea | /hwrt/handwritten_data.py | aa1ad136ec299d60f1d8b175390c321856fb681d | [
"MIT"
] | permissive | MartinThoma/hwrt | 8468d5fee904f54b1a925693aff76911666308e9 | f271046c64679f38fb98a2af115a92c258c5897a | refs/heads/master | 2023-02-21T16:48:51.348954 | 2022-06-22T05:22:37 | 2022-06-22T05:22:37 | 24,846,573 | 73 | 20 | MIT | 2023-02-16T02:35:36 | 2014-10-06T13:20:25 | Python | UTF-8 | Python | false | false | 16,680 | py | """
Representation of a recording of on-line handwritten data.
On-line means that the pen trajectory is given (and not online as in
'Internet').
"""
# Core Library modules
import json
import logging
from typing import Callable, List
# Third party modules
import numpy
from PIL import Image, ImageDraw
logger = loggin... | [
"[email protected]"
] | |
e920b86f0aa0bf8d44fb0cb2489067041c153ae8 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming OOP Python/OOP Exercise/Inheritance/person_01/project/person.py | 2a28800d1e6c9dcda6757be91fba3a054ad899ab | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | class Person:
def __init__(self,name, age):
self.name = name
self.age = age
| [
"[email protected]"
] | |
9704cae30d70ad976d7e0d9eb0d2456cfeb753cb | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/algorithm-master/lintcode/450_reverse_nodes_in_k_group.py | fd54fa836cbe380c21c5b379ea1fb83a87f320a5 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,038 | py | """
Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
"""
c_ Solution:
"""
@param: head: a ListNode
@param: k: An integer
@return: a ListNode
"""
___ reverseKGroup head, k
__ n.. head:
r..
d... | [
"[email protected]"
] | |
20fb0d8b294ad796f7075499d1ced20f90dc2488 | 401125c11f19161b9e917af0fd9ee3f4d5f3f199 | /shared/bower_components/brython/www/src/Lib/asyncio/__init__.py | f7b4e3469bb2221ca02a19fa2bde5bba3472e14a | [
"BSD-3-Clause"
] | permissive | seriocomedy/site | 56dbdf65e245420e53be4ace6b714ee1e180a1ab | b54d15d077b787ff894fc60eb7462c2ba837cda6 | refs/heads/master | 2022-10-09T20:46:57.934497 | 2017-04-21T17:34:48 | 2017-04-21T17:34:48 | 88,890,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | """The asyncio package, tracking PEP 3156."""
import sys
# The selectors module is in the stdlib in Python 3.4 but not in 3.3.
# Do this first, so the other submodules can use "from . import selectors".
# Prefer asyncio/selectors.py over the stdlib one, as ours may be newer.
try:
from . import selectors
except Im... | [
"[email protected]"
] | |
6788c1fd622280ee6be93fea139815e6f5b2f6f9 | 7a36b21109b47154cfd4131f23df83d27ade98b1 | /wedesign-web/registration/views.py | e83e7da7c8743a1e60b9a28caa343b8cd72ebbd2 | [
"MIT"
] | permissive | CyanoFactory/WeDesign-Website | 0f8dd9a26320a65705aa3e7fbc6fbab528ae9fee | f0fae6e1e6149e37b30a62e9af0febc800a4f19a | refs/heads/master | 2020-11-23T22:37:57.145799 | 2020-03-06T14:49:05 | 2020-03-06T14:49:05 | 227,849,591 | 0 | 0 | MIT | 2020-03-06T14:52:10 | 2019-12-13T13:46:18 | HTML | UTF-8 | Python | false | false | 1,183 | py | """
Copyright (c) 2019 Gabriel Kind
Hochschule Mittweida, University of Applied Sciences
Released under the MIT license
"""
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required
from wedesign.helpers import render_queryset_to_response
from .forms import CreateProfileForm, Ch... | [
"[email protected]"
] | |
cd7db34b7d9898480ce1b87ed4718a9d6c684be7 | 3d12d2ce979408da3aacb2fad10a0ea62a75f906 | /config.py | 2c497366d27a4b8cf4104bcec285aeac41b55324 | [
"Apache-2.0"
] | permissive | kotu931226/classifier_transformer_pytorch | d2be78a1c283dbc90b2d9fc9cb87a8daa0fd7c7f | 13284cd8b2a818be4033702354bbb9c7ba3815ea | refs/heads/master | 2020-04-07T15:44:22.284996 | 2018-11-27T12:26:43 | 2018-11-27T12:26:43 | 158,498,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import torch
ids_size = 16
d_model = 512
hidden_size = 256
n_classes = 4+1+1
d_ff = 2048
N = 3
n_heads = 16
n_epoch = 20*6
batch_size = 64
x_path = './data/Arithmetic_x.csv'
y_path = './data/Arithmetic_y.csv'
pad_id_path = './data/Arithmetic_pad_x.csv'
save_model_path = './data/classify.pt'
device = 'cuda' if torch.... | [
"[email protected]"
] | |
9f807ef484473954e15ac8907434e0dd96831d3f | 43a47c9f7e670b1e834dc3610672f40460732b03 | /raidensim/types.py | b72512fa10ea5e17485c62152ce1f323d45d277c | [] | no_license | devium/routing_sim | 5b53388033d2c92b198f2e14e91b490cdd566c82 | 50a8166b4187c9ba77e6c60e247fc31c6d32a479 | refs/heads/master | 2021-07-03T18:47:54.920578 | 2018-03-26T13:06:00 | 2018-03-26T13:06:00 | 96,193,726 | 0 | 0 | null | 2017-07-04T08:20:17 | 2017-07-04T08:20:17 | null | UTF-8 | Python | false | false | 256 | py | from typing import Tuple, List
from raidensim.network.node import Node
from numpy import array
Fullness = float
Reason = str
IntRange = Tuple[int, int]
FloatRange = Tuple[float, float]
Path = List[Node]
Coord = array
DiskCoord = array
PolarCoord = array
| [
"[email protected]"
] | |
50cb8ffbfd32566b6d0893cdab210c642116660b | e7a00fbe886c6436258afb34f6d8977cc0c96041 | /model_code/RandomForestClassifier.py | c7e49989a4dda659aeba6b19885236188a1d1735 | [
"MIT"
] | permissive | harshnisar/sklearn-benchmarks | 3da7fb54809308ad984c052f0ab1a1996278cfd4 | d6f2c65df9147e49569f69575e3162b3d234a592 | refs/heads/master | 2021-01-20T22:35:26.559299 | 2016-04-08T12:43:49 | 2016-04-08T12:43:49 | 52,671,801 | 0 | 0 | null | 2016-02-27T14:58:19 | 2016-02-27T14:58:19 | null | UTF-8 | Python | false | false | 2,900 | py | import sys
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.cross_validation import StratifiedShuffleSplit
from sklearn.preprocessing import StandardScaler
import itertools
dataset = sys.argv[1]
# Read the data set into memory
input_data = pd.read_csv(dataset, compression='gzip', s... | [
"[email protected]"
] | |
b990ec2e31f7726a3ab485d9584b861fd5ae09c0 | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_hippo_malrot/analyse_PLINK.py | ae82034df4da695a324ec0a62354448d1c084211 | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | """
@author yl247234
"""
import pandas as pd
import numpy as np
import optparse
import re, glob, os, json
## INPUTS ##
#We used 249058 variants remaining over the 466125 variants loaded from .bim file
DIRECTORY_SNPS = '/neurospin/brainomics/2016_hippo_malrot/results_snps/'
input_snps = DIRECTORY_SNPS+'IHI_genotypes.... | [
"[email protected]"
] | |
59374fd6bd814521d0880beccd53963435fc39df | dd545fb390ccc7b5bc3e8752e9fd1279a8547df0 | /scrawl/utils.py | 75507812607a064b99924cd39389404d93ddedb3 | [
"MIT"
] | permissive | dormantman/scrawl | f3cf8e0a3e6840c67428c986e75acd6d7a1cbc80 | c1845f1a0f69be812227b22b79a08dd086c11f61 | refs/heads/master | 2021-01-02T15:21:40.810798 | 2020-02-16T00:49:19 | 2020-02-16T00:49:19 | 239,679,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import os
import sys
from flask import jsonify, make_response
sys.setrecursionlimit(100)
def find_pages(page_name: str):
page_data = page_name.split('/')
if len(page_data) > 1:
return page_data
return page_data[0], ''
def render_error(message: str, status_code=500):
content = jsonify(det... | [
"[email protected]"
] | |
39ff97d2ee5bfaac3d226330a7858be88a85e7da | 636cc2ebe9050f736e4e27a641ff64f4a2409cfe | /lesson004/code/basic_python/reg.py | ea9f7c18206869a11646cb9dc38ebbce3790a410 | [] | no_license | zdRan/FuturePlanNodes | c8d9ec3e2f58999acdd964eca3198adc383727c3 | 3d16f5e6fe80f4ba66a98ae80d19817c43d9bf12 | refs/heads/master | 2020-05-22T02:19:03.197272 | 2019-08-16T02:00:10 | 2019-08-16T02:00:10 | 186,196,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | # -*- coding: utf-8 -*-
# @Time : 2019/5/12 14:51
# @Author : zdRan
# @FileName: reg.py
# @Software: PyCharm
# @Blog :https://github.com/zdRan/FuturePlanNodes
import re
s = "代码地址是http://www.github.com"
reg = "http://[w]{3}\.[a-z0-9]*\.com"
result = re.findall(reg, s)
print(result)
s = "hello python hello"
re... | [
"[email protected]"
] | |
0f1f73aefabbe839581fb46a2fd4e17b9dfebe4a | 81d3cfb56abd49a55a7b1850e78472df33d82616 | /Python/libraries/recognizers-number-with-unit/recognizers_number_with_unit/number_with_unit/german/extractors.py | 8b707a048d19adb6e0076bf808645bd7fa793342 | [
"MIT"
] | permissive | dugarsumit/Recognizers-Text | 08e536b336928fccb6f48552a61421b16541ed79 | ab6aba833f75d734a266df935a4245b04a228017 | refs/heads/master | 2021-02-17T19:02:54.789870 | 2020-03-05T15:36:39 | 2020-03-05T15:36:39 | 245,119,937 | 0 | 0 | MIT | 2020-03-05T09:26:54 | 2020-03-05T09:26:53 | null | UTF-8 | Python | false | false | 5,952 | py | from typing import Dict, List, Pattern
from recognizers_text.culture import Culture
from recognizers_text.extractor import Extractor
from recognizers_text.utilities import RegExpUtility
from recognizers_number.culture import CultureInfo
from recognizers_number.number.models import NumberMode
from recognizers_number.nu... | [
"[email protected]"
] | |
3ff9bcc607cf180c7c6b9d5c032ae61b2971806b | e309fb2053d870ddabe35801d47bd73141b1c1ab | /setup.py | 39b8363551106fad81768b699958acf4e61ff65c | [
"MIT"
] | permissive | jmoiron/par2ools | 20c2b17b7d0d58ed04d5c12fbfa037e3727a4203 | 3a9a71c8d0cadecb56bff711b2c2db9b3acb496c | refs/heads/master | 2023-08-13T19:34:53.259101 | 2016-01-10T23:01:42 | 2016-01-10T23:01:42 | 2,627,372 | 11 | 3 | MIT | 2021-06-14T08:26:51 | 2011-10-22T18:49:03 | Python | UTF-8 | Python | false | false | 1,095 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for par2ools."""
from setuptools import setup, find_packages
import sys, os
version = '0.1'
# some trove classifiers:
# License :: OSI Approved :: MIT License
# Intended Audience :: Developers
# Operating System :: POSIX
setup(
name='par2ools',
... | [
"[email protected]"
] | |
b03098c39b14930e53f40ab6584e9339e3d0b901 | c38ac05ac36e4ec6eb0738f0e615342806ed70cf | /blog/forms.py | 6aa7ae74d239e5c4dcbfd6710bfca775cbfaae39 | [] | no_license | jpanknin/django-unleashed2 | 5de2d74ec0e9a1524784ee0893ee8d932db02a6c | dc16799ec30bb1118c7ce179604a3641b1ce9f7b | refs/heads/master | 2020-12-24T20:24:04.727271 | 2016-05-10T00:06:11 | 2016-05-10T00:06:11 | 58,072,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = '__all__'
def clean_slug(self):
return self.cleaned_data['slug'].lower() | [
"[email protected]"
] | |
56b41bf773d22472032f09c9289dc4656c5871f0 | 71eb9a93e4bceb0af802924cbaebbf071a9e7b42 | /wn/_core.py | 534d84e5da7161577ab35f0984c6b163c5b85284 | [
"MIT"
] | permissive | dpalmasan/wn | d1177e8192263bcaf0dc9683350d7c3744469658 | 44d01d4b1e56c36ef45c816d8c8733cde5f69104 | refs/heads/main | 2023-04-11T06:04:00.644462 | 2021-04-07T13:30:50 | 2021-04-07T13:30:50 | 356,056,660 | 0 | 0 | MIT | 2021-04-08T21:49:39 | 2021-04-08T21:49:38 | null | UTF-8 | Python | false | false | 44,261 | py |
from typing import TypeVar, Optional, List, Tuple, Dict, Set, Iterator
import warnings
import wn
from wn._types import Metadata
from wn._util import flatten
from wn._db import NON_ROWID
from wn._queries import (
find_lexicons,
find_ilis,
find_proposed_ilis,
find_entries,
find_senses,
find_syns... | [
"[email protected]"
] | |
2fb27e6c828a8ac88870fdb65f162e369d27d3ca | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/googlecloudsdk/command_lib/filestore/backups/util.py | 253b7e8f5059390c4d1a981d074475c459222000 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 2,370 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"[email protected]"
] | |
9f7a749185882e2c5faa0dfef7fe85f2208a8096 | 7ce56dc3a1110b61d0087565f02b4fe576cad58c | /scrapy_test/picture/picture/pipelines.py | 9aac5a02d3f866297d61c654a719f88c3a7d5c54 | [] | no_license | lssxfy123/PythonStudy | 7c251961ce72217e83184853cb0c11dc773e4075 | d5beba373b78c6c0276c413a44819d3084899d01 | refs/heads/master | 2022-11-28T17:25:36.957483 | 2021-11-26T09:55:32 | 2021-11-26T09:55:32 | 55,392,700 | 1 | 1 | null | 2022-11-22T01:39:12 | 2016-04-04T07:28:25 | Jupyter Notebook | UTF-8 | Python | false | false | 793 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import re
import os
import requests
from picture.settings import IMAGES_STORE
class PicturePipeline(object):
def process_i... | [
"[email protected]"
] | |
796488331e7adf05752f2a1b73759c353cf42b04 | 3b35218014ed5503bb75158139e404d4029dedae | /profil/migrations/0005_auto_20160510_1225.py | cf3f9b1e8e7a38c05331fa6d33321060063a6450 | [] | no_license | psarrus/Centre_Equestre | 1b962f6cebc930fa8b4297d95943f592fc0725b5 | f9493162cd0b58c996c8c39dcd13de6b904fc796 | refs/heads/master | 2021-01-21T14:44:08.408880 | 2016-07-23T13:40:31 | 2016-07-23T13:40:31 | 56,144,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-10 10:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profil', '0004_profil_categorie'),
]
operations = [
migrations.AlterField(
... | [
"[email protected]"
] | |
c63d787b39e6b7018435b0490e71dc883b6de049 | 362fa7a29274726fc1b37232771c0ce7021afe39 | /cogs/jurassic_modules/lab.py | 0643d5128818bc6b851d51681d574e2dc4d76aff | [] | no_license | H3Cki/T-Bot | 08bbcf349eb110b5078ae95eaeb8acc1cf56c24f | 75faaaf4cbe3d6a89d0b8062fd979c45afa53666 | refs/heads/master | 2021-04-02T12:08:53.218367 | 2020-09-26T00:16:16 | 2020-09-26T00:16:16 | 248,273,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,378 | py | from .dino_info import StaticDino, ProfileDinoPart, DinoStatEmojis as DSE
import discord
import random
import asyncio
from ..utils.general import splitList
from math import ceil
class Lab:
MAX_CAPACITY = 16
CONTROLS = {
'prev' : u'◀',
'next' : u'▶',
'reload': u'🔃',
's... | [
"[email protected]"
] | |
b1c818806a7402be80445ca18bff8944f3f90fd6 | 6e61e02ff67171ec157b5694dbfda974955fb864 | /First_Django_Project/settings.py | c260b65fe0b4e6714b64a2d8f7add2c4bd865638 | [] | no_license | emmanueln644/First_Django_Project | 33754ead923b084d87d8928f3ed3646917aee37e | 60f2cec91cd1a2c5680af1beda78efb2c17c421d | refs/heads/main | 2023-04-06T15:17:55.070238 | 2021-04-20T19:51:23 | 2021-04-20T19:51:23 | 359,935,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for First_Django_Project project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"[email protected]"
] | |
9d4c99c7b27ada6cb300e5d4531cc7b5698a3d28 | 289366c8e140f4a64f76728e7582a88017ff6071 | /leave_groups.py | ee6bacf1699e8f492ea400e270e2057333a39fb1 | [] | no_license | roginski/leavemygroups | e089d0dc851d563ae97c1de4fe879f9cff8699aa | 30c8564aed08bb95c0eeecbf902c6043782d0b68 | refs/heads/master | 2022-05-19T07:11:49.059644 | 2022-03-21T09:38:38 | 2022-03-21T09:38:38 | 38,970,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #!/usr/bin/env python
import requests
access_token = '041cfc0c19e18a9803066a3d1fa0bee4f45d19e87aa3658c88522a06d495433400f229dbe2226d6f1327d'
user_id = '1801158'
app_id = 4989700
def login(email, password):
r = session.get('http://vk.com/login.php', params={'email': email, 'pass': password})
r.raise_for_status()
... | [
"[email protected]"
] | |
f4eb77fc446b5c458fcd784804493e19c66b2351 | c579950bf5d5acc9283058f4aeb13fa57686244b | /day1/part1.py | 6eb1f57c98c24f46900f3337fa3de0e574636dfc | [
"MIT"
] | permissive | kayew/aoc-2018 | 621180abb79acd35c9fd6629b5148a935cbe462c | 4db312cc6b3aa8d5d21e4573755a99fd3b36b4ff | refs/heads/master | 2021-10-02T22:10:29.328062 | 2018-12-01T14:47:39 | 2018-12-01T14:47:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python3
with open("input.txt") as file:
lines = file.readlines()
total = 0
for line in lines:
total += int(line)
print(total) | [
"[email protected]"
] | |
50d0a51187d3988fc95a82761d84adea3ee986a1 | b4faab9b904d155ce6e781a675f972dcb810c008 | /waifu2x/training/calibrate_output.py | 4e54b6e18cc19528a00a155526e28a07cfc1dcb1 | [
"MIT",
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | nagadomi/nunif | 0c595d3e61f3c89082ce7481cfba139b85ac863d | 6d4b92da09801572e984b05f6733d460b60250aa | refs/heads/master | 2023-08-31T21:29:56.460275 | 2023-08-21T18:16:01 | 2023-08-21T18:16:01 | 202,088,108 | 486 | 59 | MIT | 2023-08-04T05:51:17 | 2019-08-13T07:23:32 | Python | UTF-8 | Python | false | false | 2,816 | py | import argparse
from tqdm import tqdm
import torch
import torch.nn as nn
from nunif.models import load_model, save_model, get_model_config
def calibrate_output():
class RGBCalibration(nn.Module):
def __init__(self):
super().__init__()
self.rgb = nn.Parameter(torch.zeros((1, 3, 1, 1... | [
"[email protected]"
] | |
11dac78ea79735c540a89c55181e2832d4cb734d | d3b39413106d8e3456150606b29aac6908af7b98 | /Python/Code/20/main.py | d63c12fbdd3e39345584a5f51976de0a370399da | [] | no_license | hnmahamud/Unix-Problem-Solving | 2322ae57ae744a661138097908d58b6a037e19a6 | db454ec61fdee200bbeb89d1a6d07e75d992230e | refs/heads/master | 2023-01-10T23:31:24.787352 | 2020-11-21T17:19:17 | 2020-11-21T17:19:17 | 314,863,946 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | word = 'Java'
file = open('test.txt', 'r')
Lines = file.readlines()
for line in Lines:
lowLine = line.lower()
lowWord = word.lower()
if lowWord in lowLine:
print(line) | [
"[email protected]"
] | |
2ba09893226bf7e5014fbc70b13a6c1faa226e49 | d6a0cc09c0fd86d95bc0ee8034acf09334a2c377 | /tensorflow/C05_ ANN_DNN/lecture/step02_softmax_DNN.py | b6394ea889a7e4ea1c391f61b124628396176696 | [] | no_license | Kimuksung/bigdata | e2b0e04e817a7113cba8c5d4acdd8cf20b664147 | e7cce223eb55709d9ebcb631e39360b347a02764 | refs/heads/master | 2021-07-13T10:16:54.498961 | 2021-03-08T02:27:28 | 2021-03-08T02:27:28 | 241,530,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | """
DNN model
- hidden layer : relu function
- output layer : Softmax activation function
- hidden1 layer classifier node =12
- hidden2 layer classifier node = 6
- data set : iris
"""
import tensorflow.compat.v1 as tf # ver1.x
tf.disable_v2_behavior() # ver2.0 사용안함
from sklearn.datasets impor... | [
"[email protected]"
] | |
807823111c3c2231cfa2e27d7dcdaa35764acbc7 | 26e5cbe3175b260c47c69caaf986d1bd90d2c3fa | /samplepyhana.py | f2043de500033dd66a61ec0372604f0203584b97 | [] | no_license | shaw1236/sapSamples | 1536e32949072be070e86c18654341ce2687ec90 | b43b3f65c0112d3f656173d31eca372c02e15e78 | refs/heads/master | 2020-09-11T06:26:53.590070 | 2020-06-24T18:41:25 | 2020-06-24T18:41:25 | 221,971,058 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | ## Purpose: wrapper to pyhdb to simplify the query call
## Date : Nov 11, 2019
## Author : Simon Li
'''
Usage :
from MyHdb import MyHdb
hdb = MyHdb()
'''
#https://github.com/SAP/PyHDB
import pyhdb
class MyHdb:
#constructor
def __init__(self, sys = 'SB3'):
self.sys = sys.upper()
self.__logi... | [
"[email protected]"
] | |
59de8c57d501bd523824f1575cccfd191af63dfc | ed06ef44c944707276a2fca16d61e7820596f51c | /Python/stone-game-v.py | 3b5ae50a61aea6458307eaf7d11d58e7279c0f96 | [] | no_license | sm2774us/leetcode_interview_prep_2021 | 15842bef80637c6ff43542ed7988ec4b2d03e82c | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | refs/heads/master | 2023-05-29T14:14:49.074939 | 2021-06-12T19:52:07 | 2021-06-12T19:52:07 | 374,725,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | # Time: O(n^2)
# Space: O(n^2)
class Solution(object):
def stoneGameV(self, stoneValue):
"""
:type stoneValue: List[int]
:rtype: int
"""
n = len(stoneValue)
prefix = [0]
for v in stoneValue:
prefix.append(prefix[-1] + v)
mid = range(n)
... | [
"[email protected]"
] | |
6f1a2669f7e36e5c1eaedb917e17c720177d2365 | 70c38c9d44ea63f13d21426b2e6f53c6851b4cd1 | /14--Morphological.py | 2a7d093d8d3fe5cd48086895d1343bdeac61216b | [] | no_license | harshit-777/OpenCV-Learning | d6b626ef909c2e958420e841d5c4d34f0b430cc7 | dd709fde70eb5474172c585ec26a85482e655937 | refs/heads/master | 2022-11-13T09:12:00.722570 | 2020-06-29T05:32:29 | 2020-06-29T05:32:29 | 275,738,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('H1.png', cv2.IMREAD_GRAYSCALE)
_, mask = cv2.threshold(img, 220, 255, cv2.THRESH_BINARY_INV)
kernal = np.ones((5,5), np.uint8)
dilation = cv2.dilate(mask, kernal, iterations=2) #remove dot from image
erosion = cv2.erode(mask, kerna... | [
"[email protected]"
] | |
71e91ed1f8228d4e4b6642429ea3080bcbf8a5af | 956a665a3e4b2d2112e001b6576ed14c8ab9a3d6 | /account/urls.py | 6a117ecc189ab2e3feb4d5804815080a80cb4d7c | [] | no_license | UBegimai/python11_blog | bab03066ad3da10ce124e66b13dd8647b157184f | 5ef5e8c8da73433ec25c4b5554d35cb5915d685a | refs/heads/master | 2023-05-02T16:47:48.084709 | 2021-06-10T11:29:20 | 2021-06-10T11:29:20 | 375,338,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from django.contrib.auth.views import LogoutView
from django.urls import path
from django.views.generic import TemplateView
from account import views
from account.views import RegistrationView
urlpatterns = [
path('register/', RegistrationView.as_view(),
name='registration'),
path('success_registrati... | [
"[email protected]"
] | |
1e61d6408e0725eb6fcec5ad07fcf611b4a33e9e | 0ccf8ee2feb9faaea15cf6b54eb3ccbc8133ddb5 | /Euler/euler18.py | 84aec6f0d181a82ae6fed093631e9764c612e45b | [] | no_license | duncanmichel/Programming-Problem-Solutions | 753ad156bbdc44188986403d7a77bd22133b0885 | b0e6112e730b5d08aae21a552572fb0929672976 | refs/heads/master | 2023-01-04T12:51:15.322581 | 2022-12-31T17:00:38 | 2022-12-31T17:00:38 | 158,260,686 | 1 | 0 | null | 2019-05-02T18:52:18 | 2018-11-19T16:55:44 | Python | UTF-8 | Python | false | false | 1,104 | py | triangle = [[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 4, 82, 47, 65],
[19, 1, 23, 75, 3, 34],
[88, 2, 77, 73, 7, 63, 67],
[99, 65, 4, 28, 6, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48, 72, 33, 47, 32, 37, 16, 94, 29],
[53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14],
[70, 11, 33, 28, 7... | [
"[email protected]"
] | |
6806e9f5f4ff1a7fa0883b8ec7676c4ff81db7c8 | ca9db01a710a0ec64985f358c60280e3c6f57350 | /Sort/src/Sort.py | 250d4ea3e830de4d13c3670924f671dba5521b1b | [] | no_license | ThomasBriggs/python-examples | 40d5d1e5b199bb2182c7443b3061461bd64e50a9 | a0d3bbd577fb51b1b6ea220b4ea6f3dd7b6ebf2c | refs/heads/master | 2022-06-03T11:02:45.301230 | 2022-05-27T12:36:48 | 2022-05-27T12:36:48 | 189,917,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | def genRandom(x, min=0, max=100):
from random import randint
a = []
for i in range(x):
a.append(randint(min, max))
return(a)
def bubbleSort(array):
n = len(array)
for i in range(n-1):
for j in range(n-1-i):
if array[j] > array[j+1]:
temp = array[j]
... | [
"[email protected]"
] | |
054ce53f885fac0ae5666cb468e1a9572cd1c333 | 07c61596c1fba2e2a7034fe5af9707794ea2e2c1 | /Hackerrank/Python/Set_Mutations.py3 | f35aae2bde3fdab4fa28161a7ed681cbf359a234 | [] | no_license | H-Shen/Collection_of_my_coding_practice | 2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4 | 6415552d38a756c9c89de0c774799654c73073a6 | refs/heads/master | 2023-08-24T21:19:08.886667 | 2023-08-22T03:47:39 | 2023-08-22T03:47:39 | 180,731,825 | 8 | 1 | null | 2021-08-13T18:25:25 | 2019-04-11T06:48:09 | C++ | UTF-8 | Python | false | false | 411 | py3 | a = int(input())
A = set(map(int,input().strip().split()))
N = int(input())
for i in range(N):
I = input().split()
b = int(I[1])
B = set(map(int,input().strip().split()))
if I[0] == 'intersection_update':
A &= B
elif I[0] == 'update':
A |= B
elif I[0] == 'symmetric_difference_u... | [
"[email protected]"
] | |
86e8fa4560dbeb9b31b42fe539e3860eca576eea | 85e09a9d9a26a6e9c685715525fd9c50434d8c03 | /tests/test_index.py | 17b32221f2bda9442e60d662bec2a1503b3c9186 | [] | no_license | zhuny/template-web | 0c1310941f7a2c68df7fc4df14ea96e72f3b2342 | 37723fa03a066c594e423da4b2b5d7aefb8ae975 | refs/heads/master | 2021-07-13T23:50:05.077834 | 2020-04-15T11:33:58 | 2020-04-15T11:33:58 | 249,177,873 | 0 | 0 | null | 2021-06-17T00:44:00 | 2020-03-22T12:24:20 | Python | UTF-8 | Python | false | false | 259 | py | import unittest
from main import app
class IndexTest(unittest.TestCase):
def setUp(self):
self.client = app.test_client()
def test_get_restful(self):
resp1 = self.client.get("/index")
resp2 = self.client.get("/index/123")
| [
"[email protected]"
] | |
6682b3369aad8d7f4aa7f5ff10bd9db85b0912cb | 1901ef608c4347977a962b84d952f3e283bc2551 | /07_string.py | 1bd58bc68c4888a5367a21199fe59bb3049ea704 | [] | no_license | abdullahalmamun0/Python_Full_Course | 469bcfeec53679c9f9760e35c7b60d29dc1e8199 | 19e5dd95efb1c538a9fc60ba2c7612591338e53f | refs/heads/main | 2023-06-23T08:40:05.020906 | 2021-07-12T16:43:08 | 2021-07-12T16:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # -*- coding: utf-8 -*-
a = 'codinglaugh'
b = "codinglaugh"
print(a,type(a))
print(b,type(b))
c = "youtube channel name is 'codinglaugh'"
print(c)
d = '''codinglaugh
learn
something
everyday'''
print(d,type(d))
e = 'codinglaugh '
f = "learn "
g = "something "
h = "everyday "
# print(e+f+g+h+"marjuk")... | [
"[email protected]"
] | |
664cb187c0cf7a2c9333969198b48d7b1c9239a1 | 31597ea394a645637fb7c14ae33b65a6dc8ca004 | /atom/python/keywords.py | a8d4320761c7040163c6e8b28802a74ec3848fe6 | [] | no_license | codespeak/grammars | 41703acefb2a6aebca2846a1488ce9d4606f5666 | cf658c5d3d63752b66de11919645cba52b670976 | refs/heads/master | 2020-08-04T08:56:18.050563 | 2015-09-29T00:12:24 | 2015-09-29T00:12:24 | 38,143,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | from pynhost.grammars.atom import atomextension, atomutils
from pynhost.grammars.atom.python import pyextension
class PythonKeywordsGrammar(pyextension.PyExtensionGrammar):
activate_key = '{ctrl+alt+8}',
def __init__(self):
super().__init__()
self.settings['filtered words'] = []
self.... | [
"[email protected]"
] | |
5853b12773f0b1d80e6fc09cba643ccead08d7df | 0e36c610f199032c0d1093cb156449efa566cd1f | /api/urls.py | aeaf5640b5e91984248a8f5310334bce292282f5 | [
"MIT"
] | permissive | kostin-001/sound_check | 3351c06918b7e5db11ffdce9a30808bdb774ab07 | 8842d298ed19e3182f50efce3b48ee35ae7e4b1a | refs/heads/master | 2022-12-15T05:28:04.289586 | 2022-12-01T08:17:05 | 2022-12-01T08:17:05 | 267,848,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from django.urls import re_path, path, include
from drf_yasg import openapi
from drf_yasg.views import get_schema_view
from rest_framework.permissions import AllowAny
from rest_framework.routers import DefaultRouter
from api.v1.endpoints import SongViewSet
router = DefaultRouter()
router.register(r'songs', SongViewS... | [
"[email protected]"
] | |
7b74f92fb64929dec57098985a0ed523ae9c23dd | bd8dccd6f389a4b13d63233856e10924bbe4db2c | /old_junk/auto_complete.py | 57149712b58ea14c6470ff8eb57fb0481840ce47 | [] | no_license | LucHighwalker/tweetGenerator | ce138ea3a67978a74397985aee4624bcca52e7f4 | 6b7dd3f1e6b0bf82cf84cb37e24cfb961e3c3596 | refs/heads/master | 2020-04-02T11:52:56.837906 | 2018-12-14T01:35:14 | 2018-12-14T01:35:14 | 154,410,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | import os
import time
import getch
words = [line.rstrip('\n')
for line in open('./words.txt')]
possibilities = list()
sentence = ''
current_word = ''
cursor_timing = 1
cursor_switched = time.time()
cursor = '|'
def display():
global possibilities
global sentence
global cursor_timing
global... | [
"[email protected]"
] | |
7b498f1fb0d8b447934a6ed881fe221e77176670 | b6e6060b2d5df98436b78b21e61e82a5e2a25aed | /neurolib/restore/restore.py | 66eaee7c34aeeb71dad938f1bcfa57f859088df5 | [] | no_license | gumpfly/neurolib | f7ba01d6539baf760eb10585e3cfa5cb1a077b8f | 12ee60e78f384a9fa9b780a614fae7b72d9b5b19 | refs/heads/master | 2020-12-02T14:55:10.829786 | 2019-03-22T20:11:03 | 2019-03-28T23:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | # Copyright 2018 Daniel Hernandez Diaz, Columbia University
#
# 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 applicabl... | [
"[email protected]"
] | |
9134c41f8c30bff516c9509e5b840081e7c3e4d3 | 26930c239cc8f850393e3924a467f0b8928a35fa | /Demo_one/venv/bin/easy_install | 0440de96bd745f1449d9da6d5d71f80f21ce1033 | [] | no_license | PETERMAOSX/Pycharm_Code | 2c64e3c55e671e6b1b535936612d864cc1241451 | e1f65356ed173835f4a7833249ce593e8d5a9330 | refs/heads/main | 2023-01-05T22:53:00.177845 | 2020-11-03T14:33:20 | 2020-11-03T14:33:20 | 309,711,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | #!/Users/neo/PycharmProjects/Demo_one/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"[email protected]"
] | ||
9aa79891fd75f52a44e59e561528ca99a393fa4f | 5f16a1c392d979d4a9fcd03a77e33989000a07bf | /article/serializers.py | a4d3e796258204c1783548a8c56e94ccf5b22555 | [] | no_license | nikitabansal711/djangofirstapp | 826fabc436d6a04238cacff9fbf86c6be16af879 | b31f2fc5969c2db7c3b70b7cda40a718ba5f516d | refs/heads/master | 2021-05-21T15:50:02.198770 | 2020-04-05T10:18:31 | 2020-04-05T10:18:31 | 252,703,503 | 0 | 0 | null | 2020-04-04T09:49:06 | 2020-04-03T10:41:58 | Python | UTF-8 | Python | false | false | 928 | py | from rest_framework import serializers
from article.models import Article, Author
class ArticleSerializer(serializers.Serializer):
title = serializers.CharField(max_length=120)
description = serializers.CharField()
body = serializers.CharField()
author_id = serializers.IntegerField()
def create(... | [
"[email protected]"
] | |
a1ea1a1eb4d06992254c9a9080d64ada7fd5a7e3 | c3ddb7105733c30a3b6e45cd4c2943022347ba3e | /setup.py | d87bbcf608d662ec29296da3c981473b4aaff1a1 | [
"MIT"
] | permissive | theagilepadawan/python-asyncio-taps | 45d7fd6d74c1caf0f17f34e7e86f6fc51e885b32 | 85805dc42ece1009be9eb5de9f753c4801c81d7c | refs/heads/master | 2021-02-07T13:07:58.054370 | 2019-12-23T01:10:01 | 2019-12-23T01:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
from distutils.core import setup, Extension
import os
import os.path
include_dirs = ['/usr/local/include']
library_dirs = ['/usr/local/lib']
install_path = os.getenv('INSTALL_PATH', None)
if install_path:
include_dirs.append('%s/include' % instal... | [
"[email protected]"
] | |
c0cff9cdc25398783e31ca66b9f2060d5df2fb35 | 3e592cd4c76ffddac02edca65f86d5a03a99b415 | /Python Exercises/LPTHW - E1.py | e2d4b14df7ec46d32e28a03a7b5a46aa95310cfb | [] | no_license | GMoney1337/Python | d32f1457a2e3c24f3ffdbe1deecf6d9f0a06c426 | fd7626f862ef919172368ddba16e97d54e48acb6 | refs/heads/master | 2021-01-24T04:19:59.761730 | 2019-12-16T18:42:02 | 2019-12-16T18:42:02 | 122,853,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | print("Hello World!")
print("Hello Again!")
print("This is fun.")
print('Yay! Printing.')
print("I'd rather you 'not'.")
print('I "said" do not touch this.')
| [
"[email protected]"
] | |
00697b0edf2522d1882b35c90d669bc71dbb5982 | fc357aba40672ce57fcbf96e2ad837caaef389d4 | /dashboard/dashboard/update_bug_with_results.py | 84d7ea069e616bc5010b8383e1469bf348d9be1f | [
"BSD-3-Clause"
] | permissive | dinosk/catapult | e550a7028ff3836fa7ec974d1a85eae2ccb14513 | 6de275176224197282cfd6a5617f3775abad734b | refs/heads/master | 2021-06-05T16:37:44.163473 | 2016-02-11T19:16:02 | 2016-02-11T19:16:02 | 56,242,905 | 0 | 1 | BSD-3-Clause | 2020-07-24T05:02:58 | 2016-04-14T14:12:00 | HTML | UTF-8 | Python | false | false | 33,139 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""URL endpoint for a cron job to update bugs after bisects."""
import datetime
import json
import logging
import re
import traceback
import urllib
from go... | [
"[email protected]"
] | |
13c0080c9a926d91ea9068b73bd41eb76d621568 | 591feda5a13fc2e80cbe5b95a81b04b12b9f2ab0 | /ediel/filename.py | ed7a2438ae4e2d8c101d59c3abf8d7a725143408 | [
"MIT"
] | permissive | EnergieID/ediel | 19d2d09a130db831ecab146d630af4bc25b20bfd | ba900d0121af7e6f125515d0de190a48738bb9d9 | refs/heads/master | 2023-06-25T05:24:43.387939 | 2023-06-14T12:15:32 | 2023-06-14T12:15:32 | 84,204,819 | 2 | 0 | null | 2017-10-30T15:37:58 | 2017-03-07T13:53:38 | Python | UTF-8 | Python | false | false | 1,136 | py | """
Module to do MIG filename parsing and regex matching
"""
import glob
import re
from typing import Optional, Iterator
NPS_PATTERN = '(?P<path>(?:.*\/)?(?P<filename>(?P<sender>[0-9]{13})\.(?P<receiver>[0-9]{13})\.(?P<sequence>[0-9]*)\.(?P<export>EXPORT(?P<export_no>[0-9]{2})[^\.]*)\.(?P<mig>MIG[^\.]*)\.csv))'
def ... | [
"[email protected]"
] | |
695a439a5eff644df7f057083ab7d8912a4bff8a | a6e82e7394fd537f89d79a27067b4380a2d89230 | /sistemaRM/forms.py | 48277a7d514817111a788349ae634ca6a8d34abf | [] | no_license | jesustr52/proyecto_ReynaMadre | 504a38b890356e6ded99c2738aeb4993a24422ae | 567dc13198fad5ac873c3430b2d14faae532b6be | refs/heads/main | 2023-08-16T13:13:47.065170 | 2021-10-02T05:02:00 | 2021-10-02T05:02:00 | 412,693,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from django import forms
from .models import *
class EmpleadoForm(forms.ModelForm):
class Meta:
model = Empleado
fields = ['nombreE', 'fechaNacimiento', 'email', 'genero', 'telefono', 'celular', 'empresa', 'departamento', 'fechaIngreso']
| [
"[email protected]"
] | |
3e6a2db3fe62dd58d8dc55dfde63937829daed4c | 9162e68bc67facb6108973ab1f3c79cc0b8b3680 | /forms/run_form.py | 6f9f5dd7db5abff5f202eca4336183707a9fd07c | [] | no_license | ghamarian/tf3 | 0570e0d1911083333614acad9fc0a52822a69770 | 4873906669ee9bde30c32da0abb09b2a2821c165 | refs/heads/master | 2020-03-16T16:08:29.714764 | 2018-08-01T08:44:24 | 2018-08-01T08:44:24 | 132,774,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from flask_wtf import FlaskForm
from wtforms import SubmitField, BooleanField
from wtforms.widgets import HTMLString, html_params, Input
class RunForm(FlaskForm):
submit = SubmitField("Run")
| [
"[email protected]"
] | |
1d9116e8334293b95c02095e5236e4c85762a45e | 2649bdbeb09a9efcd37162cacb58d8bc4727d8e7 | /userLog/apps.py | 97a26772c654d38ef910fd63e30ca699922deb1c | [] | no_license | vishwajeet1/testapp | 04fbf1091ab6b5875acd1d44ac86f5a29ee296f8 | 71d803bc11be29633cc6662c87365fdfe3fbd4c8 | refs/heads/master | 2021-01-14T19:28:15.129707 | 2020-02-27T09:55:18 | 2020-02-27T09:55:18 | 242,730,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class UserlogConfig(AppConfig):
name = 'userLog'
| [
"[email protected]"
] | |
4d386ab887ac7ca42972e38bdea98c5820ab2b7f | b342ee1cb11dccc608aea374c2311b94dc54e79e | /askcode/migrations/versions/1926ca1f1d65_fakeuser.py | 1c3d39325880173beafe011ad759bc287aa0f00f | [] | no_license | mcnigno/askcode | d7c614d23437e66c5beacb2a7f38aa6764ecc872 | f74a886817cf4973ada7e44be94141c0f154465c | refs/heads/master | 2020-04-14T12:02:02.013367 | 2019-01-28T07:14:08 | 2019-01-28T07:14:08 | 163,828,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | """fakeuser
Revision ID: 1926ca1f1d65
Revises: d9480694d971
Create Date: 2019-01-01 11:09:19.171518
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1926ca1f1d65'
down_revision = 'd9480694d971'
branch_labels = None
depends_on = None
def upgrade():
# ### c... | [
"[email protected]"
] | |
840752b1ffa1b4e8ebc61b443df2cab733c939cf | 787bac92000d751d30a8c8fe8dad99f6b1110f5b | /setup.py | 73eeb1703bd70197004a12c47437e4eb0e4c3d40 | [
"MIT"
] | permissive | inglesp/kith | 844ee598d033d353c05d5a1ac374899f90423fcc | 9f783020adc167287a581f6140e42a8b1854f2ca | refs/heads/master | 2021-01-09T20:41:41.651244 | 2016-07-18T22:47:55 | 2016-07-18T22:47:55 | 63,642,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | from setuptools import find_packages, setup
import os
import re
def read(*parts):
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, *parts)) as f:
return f.read()
VERSION = re.search(
"^__version__ = '(.*)'$",
read('src', 'kith', '__init__.py'),
re.MULTILINE
... | [
"[email protected]"
] | |
2296afa25f0b11755c3fde80f5eb65bfb16c1674 | 054bc8696bdd429e2b3ba706feb72c0fb604047f | /python/stats/FisherExactTest/FisherExactTestScipy.py | f608232c82c5f8b4cc40b6722b4003e21f40407b | [] | no_license | wavefancy/WallaceBroad | 076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f | fbd00e6f60e54140ed5b4e470a8bdd5edeffae21 | refs/heads/master | 2022-02-22T04:56:49.943595 | 2022-02-05T12:15:23 | 2022-02-05T12:15:23 | 116,978,485 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | #!/usr/bin/env python3
"""
FisherExactTest for 2by2 table.
@Author: [email protected]
Usage:
FisherExactTestScipy.py -c cols -t cols [-a alternative] [--pd int]
FisherExactTestScipy.py -h | --help | -v | --version | -f | --format
Notes:
1. Read results from stdin, and outpu... | [
"[email protected]"
] | |
df2eff0642c75f5be09e49609c2ae4ff9a7b0156 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_api_service_status.py | 8859f1942cf458e5bd1ae12c8f6107c50730d798 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,933 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"[email protected]"
] | |
aeb5bfff15260d043fd102e5bef6fe4304e669f8 | d3dc72ab96ddf3c201237884f7722cc6bf6b44d9 | /dezero/core.py | 3f08161235443506e3b420f84f5d99f295c725b9 | [] | no_license | lacrosse91/my_tf | f767ce76de6b2dd4657d003ae947d0dc39ef5354 | 5f384ba31264c1b783e2a2c494c80c0b8f7995f4 | refs/heads/main | 2023-01-02T08:14:12.487976 | 2020-10-26T02:09:28 | 2020-10-26T02:09:28 | 304,539,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,692 | py | import weakref
import numpy as np
import contextlib
import dezero
class Config:
enable_backprop = True
@contextlib.contextmanager
def using_config(name, value):
old_value = getattr(Config, name)
setattr(Config, name, value)
try:
yield
finally:
setattr(Config, name, old_value)
de... | [
"[email protected]"
] | |
44be647875cf30289b42eb843dacd132d0c8a7a5 | 9ddb6f63d49d8a84203c212407c6c9b0014a8a64 | /HIPRFISH_probe_design/Snakefile | aa9212e3593f3e8f2636207ba4ffe769c932e284 | [] | no_license | proudquartz/hiprfish-probe-design | c723f25da9b2b66bd8b2fdfd598a1ed9e56e9225 | 64e3c44d38f3079bad755362c51ccf4fbbae7710 | refs/heads/master | 2020-07-07T00:35:10.635087 | 2019-09-14T19:17:03 | 2019-09-14T19:17:03 | 203,187,836 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,707 | """
Collect HiPRFISH probe design results
Hao Shi 2019
De Vlaminck Lab
Cornell University
"""
###############################################################################################################
# HiPR-FISH: Simulation of HiPR-FISH probes with different design parameters
####################################... | [
"[email protected]"
] | ||
e88077c34739ecedaa32ccd0a5e4b145d929f309 | f725bade01b86baf57509c716fba7d4a0d8cbe0f | /python/projecteuler/p124.py | 0f56042d19fddc12a3240a634bde11f249be39e9 | [] | no_license | guoea/sample-code | 07b9ba8a5006f0143238a7b4aefb69fbb64042b7 | 1ecdcdd6548edffe7e3e19c94b7ba4f0ea59526a | refs/heads/master | 2023-02-03T07:27:30.035284 | 2020-12-23T23:38:51 | 2020-12-23T23:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | import math
import numpy as np
def get_all_primes(n):
arr = [True for n in range(n+1)]
arr[0], arr[1] = False, False
arr[2] = True
index = 2
while index < len(arr):
for j in range(index * 2, n+1, index):
arr[j] = False
index += 1
while index < len(arr) and not ar... | [
"[email protected]"
] | |
8621950ead90a0d32bd5496e2f26acae2d603d95 | 4866d3058dfe4cd3f3e9d842eb9554736559b5d4 | /String/5.py | 043101c5e3286857963f37a49e0223f98ba44f9d | [] | no_license | KIMGEEK/Python-Ruby_training | bd94b1b5d3e6c962a47e80b3be8571e20143c450 | c614b3e7aceda1b63141abde79b67fb35ea3712d | refs/heads/main | 2023-06-10T14:27:27.820791 | 2021-06-30T08:43:53 | 2021-06-30T08:43:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print(10+5)
print("10"+"5") | [
"[email protected]"
] | |
0576b2d56d6ef55155bf670ff37e0e8fcb7d9db3 | bf7640c56a0d73660be76633842c1d7aa599cf4b | /PersonReg.py | 5774e93d47a646eb75ea91b7069a6c74000c073b | [] | no_license | Senethys/5DA000 | 509131ccdbfe5f4ade7a3acedfb778703de8d724 | cff2d6f496f4ca20f0d4ecb29852a4601d92ffe3 | refs/heads/master | 2020-03-27T22:45:48.303142 | 2018-09-03T22:12:25 | 2018-09-03T22:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | # -*- coding: latin-1 -*-
import sqlite3
from Person import Person
import cgitb
cgitb.enable()
class PersonReg:
"""The most important part pf the assigment, handles all interactions
with the SQL database. Most often called from the the cgi files
and in rare cases in the page objects to fetch no... | [
"[email protected]"
] | |
dafbbb61ab430fc0f860ce175aa8b937c7053a1a | 0cd932581091540eb5e37e07ce982a70a24955d3 | /externalModels/python/3dPosition/3dPositionYaml.py | 32502c02f4dc09c6ec8a7fe69eeb0730e22034da | [
"MIT"
] | permissive | boubinjg/SoftwarePilot | 4af165ebef6092ca29d2781184feaebd5253572f | 89c1106f48cda7cf37b2af23ac64052fbbf08bb8 | refs/heads/master | 2022-12-10T08:57:59.252982 | 2022-10-04T19:01:54 | 2022-10-04T19:01:54 | 176,774,502 | 39 | 11 | MIT | 2021-10-02T14:19:53 | 2019-03-20T16:29:47 | HTML | UTF-8 | Python | false | false | 647 | py | import sys
#path_name = '/Users/naveentr/Drone_codebase/feature_extraction/DJI_1957.JPG'
path_name = sys.argv[1] #get the image name/path_to_image from the user.
X = "1"
Y = "1"
Z = "1"
with open(path_name, 'r') as fp:
for line in fp:
if line.strip().split('=')[0] == "X":
X = line.strip().spli... | [
"[email protected]"
] | |
056d47e226f6ed1321d50431ee6f8b427d8d5631 | e61713688e0a7b6bbd4d9bf18c8838c45dbd3d01 | /FWCore/Integration/test/testSwitchProducerProvenanceAnalyzer_cfg.py | 60ff3e0cbb4ed8b224e362971e4a6ba60a7fcac7 | [
"Apache-2.0"
] | permissive | FlorianBury/cmssw | 21042a1d7823bc99234006e15b0b2a67c34999da | 6406d33feab56ab2af79b00b533f62b5368ac33e | refs/heads/master | 2021-06-09T23:30:59.378761 | 2019-01-21T12:54:56 | 2019-01-21T12:54:56 | 166,834,745 | 0 | 0 | Apache-2.0 | 2019-01-21T15:15:31 | 2019-01-21T15:15:31 | null | UTF-8 | Python | false | false | 389 | py | import FWCore.ParameterSet.Config as cms
import sys
process = cms.Process("ANA1")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring("file:"+sys.argv[-1])
)
process.analyzer = cms.EDAnalyzer("SwitchProducerProvenanceAnalyzer",
src1 = cms.InputTag("intProducer"),
src2 = cms.InputT... | [
"[email protected]"
] | |
321dacc443a8cdc2e1183237e44c6917993fec8d | cf16bb3eebe2d8c1683243085b24cb51432bde56 | /meredith/__log__.py | 24c3db9b81db5c85e399dbce45d432d594f05032 | [] | no_license | kwarwp/carol | 0ed3c8da736e60dcf2e85c68f93bb7238edc1cc9 | b540639dcbd1769adc99e318a4477166d44e4a6b | refs/heads/master | 2020-03-15T01:45:20.269113 | 2018-10-24T21:27:57 | 2018-10-24T21:27:57 | 131,901,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py |
{'date': 'Fri Oct 05 2018 11:19:48.164 GMt-0300 (Horário Padrão de Brasília) -X- SuPyGirls -X-',
'error': '''Traceback (most recent call last):
module _core.main line 160
dialog.action(lambda *_: self.start()
module _core.supygirls_factory line 135
self.act(self, lambda *_: self.hide() or extra()) if self.... | [
"[email protected]"
] | |
517e47525a81267dd94fe9a75cd79194e7cdca85 | 9f8067e557f44b4f28dde6381ff65d7e1f550e4d | /reservations/views.py | fd3c002e1066d2389545795ab9a463f0bfb58184 | [] | no_license | Alisher007/spa2 | e56aae341b927a39170b3a9a40badc0643fff414 | 04a611abbcd22bf977602bdf85675ea2e3f92b0d | refs/heads/master | 2021-09-29T12:15:10.658713 | 2020-03-29T12:42:30 | 2020-03-29T12:42:30 | 251,028,673 | 0 | 0 | null | 2021-09-22T18:48:39 | 2020-03-29T12:38:58 | JavaScript | UTF-8 | Python | false | false | 7,978 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.template.loader import render_to_string
from django.http import JsonResponse
from django.db.models import Q
from datetime import date
from products.models import Product
from customers.models import Customer
from products.models import Produc... | [
"[email protected]"
] | |
e64570e001fad63d2ab380a3b13e537c0eb9e84d | 6c2b07d29685f097f552f59eac07b56d2fcc7a2f | /middleChinesePronunciator/pronLogic/apps.py | 36eebd7fc7ec01d26875b1ce43f0385b4d6da267 | [] | no_license | caw051/middleChinesePronunciator | 1de1bcd5e007ecaee5181e22816cacb89d0d98d0 | d959dea54f9f377822f29a0f3aa40eef378bc64c | refs/heads/master | 2020-07-23T16:41:08.696611 | 2019-09-29T08:03:17 | 2019-09-29T08:03:17 | 207,633,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class PronlogicConfig(AppConfig):
name = 'pronLogic'
| [
"[email protected]"
] | |
c93190617ff7ebeb56f51f3c6bba7316c0acd771 | bad52a828d8995ef3e80bedec63a4b0fa14945e8 | /wishful_module_srslte/__init__.py | fda9b00c8902ed1434b7dd84df30db6813cd1167 | [] | no_license | luwangg/module_srslte | 1a306a90d32f7e1f3f397fe438691ff7c329d213 | b4819386836ad3b92617913fe65864a15c2a471b | refs/heads/master | 2020-04-08T00:08:56.931441 | 2018-10-24T10:11:15 | 2018-10-24T10:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from .module_srslte import *
| [
"[email protected]"
] | |
52b518dfdc67baed00845dc1a5a7ca931bf771b3 | 51bab5c90567f2c7b2b8708a33e444774954f26c | /logging/callee.py | 10ed72fc5de446d990bf303f98935facadb96e20 | [] | no_license | Lohengrinnn/pytrick | d55edf095f530484670869f0b43734b24c53f7fd | 61b2dce9fc762fffd39ac3a61d80e998d7c5e5bf | refs/heads/main | 2023-04-11T13:41:44.458570 | 2021-04-20T19:23:52 | 2021-04-20T19:23:52 | 359,897,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def func():
s_handler = logging.StreamHandler()
f_handler = logging.FileHandler("file.log")
s_handler.setLevel(logging.DEBUG)
f_handler.setLevel(logging.WARNING)
logger.addHandler(s_handler)
logger.addHandler(f_h... | [
"[email protected]"
] | |
f87af5f39d4fe133be0da1a76d9c4a04108cb547 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02715/s294971061.py | ee4f079a5487c6d3efdcbf1a97f1275c22a6cc49 | [] | 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 | 261 | py | N,K = list(map(int,input().split()))
MOD = 10**9+7
arr = [pow(K//i, N, MOD) for i in range(1,K+1)]
for i in range(K//2,0,-1):
arr[i-1] -= sum(arr[2*i-1:K:i]) % MOD
arr[i-1] %= MOD
arr = [(i+1)*j%MOD for i,j in enumerate(arr)]
print(sum(arr)%MOD) | [
"[email protected]"
] | |
dcfb6853d0e3395861a0c32e7f2e03dcde75a5f6 | b4e3ce1f752e3470e05b1a8ccea00da31250dcf9 | /minimumOfThree.py | a4de9a29d69d0dba9e0bd4997cd90da98df634a0 | [] | no_license | brayanestive18/CodeAbbey | 29851772a469368359ee8244a82dce820c86ff03 | 0d6127828159cdfaf02ea381a583b2a381100c3f | refs/heads/master | 2020-03-06T20:46:51.932684 | 2019-09-01T22:46:08 | 2019-09-01T22:46:08 | 127,062,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/env python
""" Minimum Of Three
python minimumOfTwo.py
Ingrese el total de numeros de datos:
input 28
Ingrese los numeros:
Input:
-2324803 -9546536 -7755899
7790004 -9096052 8883763
-3718911 9095374 -8995681
5882345 -14932 -1171013
-4752924 3820231 3333289
2591187 6860972 -5716512
-1187736 -1618721 37615... | [
"[email protected]"
] | |
fcca2d613c388b57dfdde7b60777cb95156d8533 | 9e6129645e4ec7e14b65736c72147450de7583b1 | /rotate-string/rotate-string.py | 8e193ce842bc0031e11d5785d45638a39eba0a4a | [] | no_license | hamazumi/Leetcode | 97c09c22e5d55d5c8c29f4abdce1ae72faf7781c | f34f99e9e28634ea593363392b494bf1c5cff44e | refs/heads/main | 2023-08-16T22:01:51.035655 | 2021-10-09T19:04:12 | 2021-10-09T19:04:12 | 387,860,885 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | class Solution:
def rotateString(self, s: str, goal: str) -> bool:
s2=s*2
print(s2)
if goal in s2 and len(s)==len(goal):
return True
return False | [
"[email protected]"
] | |
1537ab99bfa2d022007be7a7f72d856fabdc4865 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/site-packages/passlib/handlers/scram.py | 69211c05d5190fe2a53a8d8e5bf7e2d2aa550a65 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c01b28060d2a2d6f0703936c81c9ddd5b33b64360415b6a9006a0fd3fe38379f
size 22539
| [
"[email protected]"
] | |
2f497e81c59a8fa590681166bc75ba3aac1dc2fc | 80a80ddd08e57d28896e4a8f2bd6053913db5157 | /setup.py | a69e9e19519488934d1755471bc5c56bccf2f280 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tonygeomoraes/pyres | e162dac3f6035b5af1dd9b3e096b306c23490278 | b0b8bc37d4d88fc407c15c3c8d07aa8c20ee86b7 | refs/heads/master | 2021-05-07T22:26:22.545190 | 2017-07-05T15:00:37 | 2017-07-05T15:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import sys
from setuptools import setup
# To use:
# python setup.py bdist --format=wininst
# trap someone trying to install pyres with something other
# than python 2 or 3
if not sys.version_info[0] in [2, 3]:
print('Sorry, pyres not supported in your Python version')
print(' Supported versions: 2 and 3')... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.