blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
533e3e9e0d3933c9cab68a17a183a4d2ffcd9185 | 80a3e654cf33e5c86410e207e3a28ed160adbd75 | /while_loop/chance.py | 7f3126d4dabe9d831f7029fd098f4c3d169d9e0c | [] | no_license | Rinkikumari19/python | f3f6e57ca39d7d6fe4e110264eb5685be2441f66 | 2b98f4bac313725c2716cc8a60440336d28acba4 | refs/heads/master | 2022-11-26T06:47:34.161251 | 2020-08-02T18:37:54 | 2020-08-02T18:37:54 | 284,518,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py |
a=1
while a<3:
user=input("enter your number")
if user>1 and user<10:
print("well done",user)
break
print("try again",user)
a=a+1
# it is giving only two chance for choosing one disit positive number
| [
"ravina18@navgurukul.org"
] | ravina18@navgurukul.org |
5fc62bf89d97074a30f343fdd7e7c71f7980ca59 | 9e2386557ddcaf91e0f0ea9b530d40803305aa70 | /demo_practice.py | 9416b4fbd9483f5066a327023fb13e623bf4f44b | [] | no_license | wonjunee/trading-strategy | 3f8c83c11aa3fb03cfb20cce706111fb29789ba6 | 584c151de97c06664da415f45831dfc0354750ca | refs/heads/master | 2020-04-05T23:43:04.856065 | 2016-05-27T13:44:58 | 2016-05-27T13:44:58 | 56,386,790 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import pandas as pd
import numpy as np
index = range(10)
columns = ["spy","xom","tsla"]
data = np.zeros((10,3))
for i in range(10):
for j in range(3):
data[i,j] = i+j
print data
df = pd.DataFrame(data,index=index, columns=columns)
df.to_csv("c:/asdf.csv",sep=',',mode="w") | [
"mymamyma@gmail.com"
] | mymamyma@gmail.com |
6c955006ad7d43bf927065f190511b69f0e3558f | e05f8d36c70336a8714cc260c02fe85ecee2e62e | /subject/async/taskflow_executor.py | d4857cf2ba6197c88dc4e399d66f45a3cdf3d825 | [
"Apache-2.0"
] | permissive | laoyigrace/subject | eafa442b5d9ebf83c78a01ce3bb5d088d08d620d | e6ed989fdc250917a19788112b22322b73b3550f | refs/heads/master | 2021-01-11T00:06:54.790751 | 2016-10-24T02:13:32 | 2016-10-24T02:13:32 | 70,754,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | # Copyright 2015 OpenStack Foundation
# 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 requ... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
0bc43c3ad977cfe32fc973668d306419a82a681b | dd208e5d00cce0a5a38d881af8a59aaeb532e44b | /Python_level_1/Python_05/dz/examples/with_args.py | 49a6ab2cc503379c314886bdb6642f66f67233a0 | [] | no_license | dKosarevsky/geekbrains | 93324fc8c70db93f253ba844185ad2ef83126e6c | c8eedfe8a89ff482a075a8506a821c22a08995a1 | refs/heads/master | 2020-04-19T06:28:56.425038 | 2019-02-03T05:58:19 | 2019-02-03T05:58:19 | 168,019,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # Данный скрипт можно запускать с параметрами:
# python with_args.py param1 param2 param3
import os
import sys
print('sys.argv = ', sys.argv)
def print_help():
print("help - получение справки")
print("mkdir <dir_name> - создание директории")
print("ping - тестовый ключ")
def make_dir():
... | [
"kosarevsky.d@ya.ru"
] | kosarevsky.d@ya.ru |
0141db8f5bab72bc92a65732aead052ac6506ff5 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/demo_20201202110049.py | b1bb432219ecbc5344d3764ccb029d6dc016db91 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # a=10
# print(a)
# #id可以打印变量的内存地址
# print(id(a))
# A= 1
# a =2
# print(a,A)
# a =1
# b = 0.2
# c = 2j
# print(type(a))
# print(type(b))
# print(type(c))
# a = str(2)
# print(a)
# print(type(a))
# b = "b"
# c = "c"
# d ="d" "r"
# # print(b)
# # print(c)
# # print(type(b))
# print(c,b)
# print(d)
# e = "123456... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
008230ba394ee59eae89a9db3424786097496803 | 793913495349a2a53565c9238915ff928995b555 | /django-easyvisa/callback/migrations/0003_auto_20200701_0031.py | e6e286501fffb816021b834b5581207cff031ec9 | [] | no_license | Naumov1889/django_easyvisa | 48ff9f56569e5950dbb700159c2a4b7515d87413 | 8c81f9e37ef4c6f44ad1f5aef3d00c136ef7bc40 | refs/heads/master | 2023-04-09T07:26:38.432411 | 2021-04-03T09:16:43 | 2021-04-03T09:16:43 | 277,068,342 | 0 | 0 | null | 2021-04-03T09:16:44 | 2020-07-04T08:15:02 | JavaScript | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.0.7 on 2020-06-30 19:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('callback', '0002_callback_detected_or_selected_city'),
]
operations = [
migrations.AlterField(
model_name='callback',
... | [
"144112passgitword"
] | 144112passgitword |
906d86c2ae2e6bca34c5b65ab71d51cab87ec027 | 46a62c499faaa64fe3cce2356c8b229e9c4c9c49 | /taobao-sdk-python-standard/top/api/rest/ItemsListGetRequest.py | 0fcf7e2591ee10166d01e83a48f2dac1f56c9ede | [] | no_license | xjwangliang/learning-python | 4ed40ff741051b28774585ef476ed59963eee579 | da74bd7e466cd67565416b28429ed4c42e6a298f | refs/heads/master | 2021-01-01T15:41:22.572679 | 2015-04-27T14:09:50 | 2015-04-27T14:09:50 | 5,881,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | '''
Created by auto_sdk on 2012-09-23 16:46:13
'''
from top.api.base import RestApi
class ItemsListGetRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.fields = None
self.num_iids = None
self.track_iids = None
def getapiname(self):
return 'taobao.items.l... | [
"shigushuyuan@gmail.com"
] | shigushuyuan@gmail.com |
bbcb1c79475f6c71621807a47de1d755d73ce442 | 6c2d219dec81b75ac1aef7f96f4e072ed7562f81 | /scenes/siteFellatioJapan.py | a2e9383facfcfe91e3398fddb40eb6ae62b82cfb | [] | no_license | SFTEAM/scrapers | 7e2b0a159cb19907017216c16a976d630d883ba5 | 778f282bf1b6954aa06d265fdb6f2ecc2e3c8e47 | refs/heads/main | 2023-08-15T18:21:41.922378 | 2021-09-24T22:24:29 | 2021-09-24T22:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | import re
import dateparser
import scrapy
import string
import html
from tpdb.BaseSceneScraper import BaseSceneScraper
from tpdb.items import SceneItem
class siteFellatioJapanSpider(BaseSceneScraper):
name = 'FellatioJapan'
network = 'Digital J Media'
parent = 'Fellatio Japan'
start_urls = [
... | [
"briadin@yahoo.com"
] | briadin@yahoo.com |
787a5a5ee14fea40ffc9f6577d59fb2f207efd76 | 29055f6da38e148e38e33c6f750e3d4e6609a0fb | /Home/house-password.py | cd5efc863de40a01fdb270219dd051fcdebb9301 | [] | no_license | ckclark/CheckiO | 42ed57b64f80a5b9d9781b311d8ce439c8ebabc5 | f9e01f57b6a73160a18dec5a255ea4507814b06b | refs/heads/master | 2021-01-17T14:30:48.848211 | 2016-07-16T14:34:06 | 2016-07-16T14:34:06 | 47,816,733 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | def checkio(data):
lower, upper, digit = False, False, False
for c in data:
if 'a' <= c <= 'z':
lower = True
elif 'A' <= c <= 'Z':
upper = True
elif '0' <= c <= '9':
digit = True
else:
return False
return len(data) >= 10 and lo... | [
"clark.ck@gmail.com"
] | clark.ck@gmail.com |
8f5c150b8b5760e781530d16056384e102256d1e | ac88bdb4d2e0aae0c96f2305dc8e9140aedc9294 | /Day4/projects/rock_paper_scissor/main.py | 97bfad1589ee154523a4c7c3dd069ac79afb75ba | [] | no_license | AMAN123956/Python-Daily-Learning | 5a253102c48f62b6786dec0991688b56086ada07 | 9b62dce3688f8f0f10a5e0addce137a2954f20d7 | refs/heads/main | 2023-06-09T19:36:55.454485 | 2021-06-30T16:52:07 | 2021-06-30T16:52:07 | 375,426,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''... | [
"you@example.com"
] | you@example.com |
c5c6487e9e9aa72ce21660aea5075b42816d3bad | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /coupons/migrations/0001_initial.py | 0abbdeaf85b34cd2f85deb81508d6642fb5dbb84 | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 845 | py | # Generated by Django 2.1.7 on 2019-03-26 12:03
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Coupon',
fields=[
... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
34e39fc404c212d0c75c858ccf54d7d8b313e83b | 8024be47f6643ba998a2596353d42e3bca0be720 | /StandardLib/multiprocessing/shared_memory.py | 879893032a2b44c52041b866e721ebc2f5915401 | [] | no_license | hiepbkhn/itce2011 | a8aaec08e426454671570e28f1dd4828d83d12ca | d8985d1484699bdbb7bbece572058a420a960eac | refs/heads/master | 2021-04-22T12:49:38.516261 | 2019-02-11T15:45:42 | 2019-02-11T15:45:42 | 37,022,768 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | '''
Created on Jan 1, 2013
@author: Nguyen Huu Hiep
'''
from multiprocessing import Process, Value, Array
def f(n, a):
n.value = 3.1415927
for i in range(len(a)):
a[i] = -a[i]
if __name__ == '__main__':
num = Value('d', 0.0)
arr = Array('i', range(10))
p = Process(target=f, args=(num, a... | [
"hiepnh.vtt@gmail.com"
] | hiepnh.vtt@gmail.com |
2894ef4e63e6847fa52a6f4b1dd4061ee4a1ceba | 84c2fa4aed9094b5ec3cc612d28980afe5d42d34 | /appiumdemo/appium1126/pages/invitemember_detail_page.py | cfae0f8190b84a05a590d3a91cb0660222598aed | [] | no_license | cyg2695249540/generatewework | 186831a1b5c788e9b99e90d1a08bf6a8638131ce | cd01b0fc4a69cc2f2ed4c109afdf8771bee3bffd | refs/heads/master | 2023-01-20T17:13:13.186034 | 2020-12-01T12:05:01 | 2020-12-01T12:05:01 | 310,201,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # !/usr/bin/env Python3
# -*- coding: utf-8 -*-
# @FILE : invitemember_detail_page.py
# @Author : Pluto.
# @Time : 2020/11/26 19:46
from appium.webdriver.common.mobileby import MobileBy
from appiumdemo.appium1126.pages.base_page import BasePage1126
class InvitememberDetailPage1126(BasePage1126):
_name_... | [
"2695249540@qq.com"
] | 2695249540@qq.com |
325e8ddfd293680b5ab643fdac0a98ebd7722b1e | 529297d80bfa34c7f3cd7b9773e0419bbfacdf15 | /package_control/package_io.py | 13216f922988558567af717f7be34a6fce4bf64d | [
"MIT"
] | permissive | wskplho/package_control | 3d451e7a05242dca949932d032ca94b850477316 | c9034102844456c9c69ef13ac159d59d0de29833 | refs/heads/master | 2021-01-18T08:02:33.199235 | 2015-02-11T06:29:45 | 2015-02-11T06:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | import os
import zipfile
import sublime
from .console_write import console_write
from .open_compat import open_compat, read_compat
from .file_not_found_error import FileNotFoundError
def read_package_file(package, relative_path, binary=False, debug=False):
package_dir = _get_package_dir(package)
if os.path... | [
"will@wbond.net"
] | will@wbond.net |
f2732c25bc2c3cc235f1fa7847f391bba885b387 | 5b6afd9c63d7408a6254710689a9fe809e026b50 | /main.py | 92d8914c01bb1fec34a118f1a9eff517ab5ac3f5 | [] | no_license | Watchful1/ShittyRainbow | f89b17760cb237902ae71bb6578ea202de5fd5a9 | 28a6f6648dcb30028ac12c14466ca1ef850810b3 | refs/heads/master | 2020-12-13T19:58:46.360531 | 2020-06-06T03:13:17 | 2020-06-06T03:13:17 | 95,512,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | #!/usr/bin/python3
import praw
import os
import logging.handlers
import time
import sys
import configparser
import signal
import traceback
import re
from datetime import datetime
from datetime import timedelta
### Config ###
LOG_FOLDER_NAME = "logs"
SUBREDDIT = "shittyrainbow6"
THRESHOLD = 80
USER_AGENT = "shittyrain... | [
"watchful@watchful.gr"
] | watchful@watchful.gr |
e5ee16a45a98d60aba41c675c9248969eb74bf51 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/timber/testcase/firstcases/testcase5_026.py | cb47585a01d65de126db4d2ef9f35710a8674769 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,044 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
ace6e9f4dae2ebb01af5fdf3aefa34b3f2405daf | 847d6ee4a0094925553768088f0ca9d2b3d3cc66 | /memegen/routes/_cache.py | 4b831f37b359948e1df521155c1f77787e8f5e7a | [
"MIT"
] | permissive | DanLindeman/memegen | 1aa2cafdac11626026f12cf7b74f0ab4b543fb3a | f40555a74edc25c45323704d7319223c897e5084 | refs/heads/master | 2021-01-17T20:33:00.330415 | 2016-11-15T06:03:45 | 2016-11-15T06:03:45 | 38,079,069 | 0 | 0 | null | 2015-06-25T23:07:05 | 2015-06-25T23:07:02 | Python | UTF-8 | Python | false | false | 1,092 | py | import logging
import yorm
from yorm.types import List, Object
import profanityfilter
log = logging.getLogger(__name__)
@yorm.attr(items=List.of_type(Object))
@yorm.sync("data/images/cache.yml")
class Cache:
SIZE = 9
def __init__(self):
self.items = []
def add(self, **kwargs):
if kwa... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
8b1bbe0dfe6c4350cf8adef320c53dafc138538c | b0640fb8fd786771463efaa0b591a2995dfbb6c1 | /mayan/apps/document_signatures/tasks.py | 9657f6417f268973f873e1d824a08576f2b93d2a | [
"Apache-2.0"
] | permissive | kyper999/mayan-edms | 9a868ee9470e8689bf8c36f3cc6c05bcc2b356a8 | ca7b8301a1f68548e8e718d42a728a500d67286e | refs/heads/master | 2021-01-22T20:18:34.009706 | 2017-03-14T03:58:25 | 2017-03-14T03:58:54 | 85,309,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | from __future__ import unicode_literals
import logging
from django.apps import apps
from mayan.celery import app
RETRY_DELAY = 10
logger = logging.getLogger(__name__)
@app.task(bind=True, ignore_result=True)
def task_unverify_key_signatures(self, key_id):
DetachedSignature = apps.get_model(
app_label=... | [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
77d5254be7c63252cfe108bb60e564073dff72d5 | 7cd8ee14711eaf33cee0d9e06e78a974fc579242 | /Facebook/Facebook/spiders/facebook_excelsheet_parsing.py | c061f3ca89046e8afdcac1ec38daae599dc30ce0 | [] | no_license | Chandler-Song/pi | c618117dfdd9a7496a57c69f029851e94787f591 | aebc6d65b79ed43c66e7e1bf16d6d9f31b470372 | refs/heads/master | 2022-03-13T02:44:30.452673 | 2019-02-19T09:38:45 | 2019-02-19T09:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | import MySQLdb
import datetime
import os
import openpyxl as px
import glob
import md5
import json
class Fbparsing(object):
def __init__(self):
self.con = MySQLdb.connect(db='FACEBOOK',
user='root', passwd='root',
charset="utf8", host='localhost', use_unicode=True)
self.cur = self.con.cursor()
self.social_p... | [
"aravind@headrun.com"
] | aravind@headrun.com |
7eff07fc829689636f0c4674c2505b58d9751574 | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter7/7_27_add_function_to_object.py | e453504d836b16c1118e848b9703eeafd9b27f4a | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 161 | py | class A:
def print(self):
print("my class is A")
def fake_print():
print("my class is not A")
a = A()
a.print()
a.print = fake_print
a.print()
| [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
636d3fa668c7816463117317d4e56b536bffbed2 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/acloud/public/report.py | 6afff82d5083b9f1b2aeeb754d4526cd7929426c | [
"Apache-2.0"
] | permissive | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,382 | py | #!/usr/bin/env python
#
# Copyright 2016 - The Android Open Source Project
#
# 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... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
c5c14c003bd36c2e6f9c6f18c535e2136e5b3364 | 9c627ff27787665b2e0114a4043ec04db7442936 | /khl.py | 2540f04667fbeb505984ee34eeaf46ed711d298a | [] | no_license | suganthicj/ghj | b3df775dc0ff671257e68258bc554235542860a6 | be5f50c64b6ebc4a3dbcb2bc9dd6ba5bc4b26cbf | refs/heads/master | 2020-07-04T01:07:20.712895 | 2020-01-08T05:52:03 | 2020-01-08T05:52:03 | 202,105,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | def fact(x1):
z1=1
for t in range(1,x1+1):
z1=z1*t
return(z1)
x1,y1=map(int,input().split())
print(fact(x1)//(fact(x1-y1)*fact(y1)))
| [
"noreply@github.com"
] | suganthicj.noreply@github.com |
851259f4debcff8423300b2853325afb1a593a3a | a80963fbac8c0edcef5b1b9bad67a4b5913cd569 | /web_app_flask/flaskblog/config.py | 3b6fe6094c7ab261edc316f247a9159297134cc9 | [] | no_license | manurp/Python_programs | 946877caf93a2ff0239c68dc4e8e02c72fe6f156 | 1a0c896b05b72afee7a48dd1bc2bef2aa7ffe0af | refs/heads/master | 2020-06-28T01:22:59.140092 | 2018-09-01T17:03:18 | 2018-09-01T17:03:18 | 97,080,367 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import os
class Config:
SECRET_KEY = '5791628bb0b13ce0c676dfde280ba245' #move this env variable
SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'#move this env variable
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('EMAIL_USER')
MAIL_PAS... | [
"manojrpoojary@gmail.com"
] | manojrpoojary@gmail.com |
70d16b77c892b63310336c81815d8e1b6cc832f9 | d65a9118ddbf9ec7f156e7383240080942e9a47b | /python/dev/processes/geckolaunch.py | 7e271fbba8b6b49ec569b8cae01a0a4ad6fefa55 | [
"MIT"
] | permissive | gecko-robotics/gecko | 4f96acbbd4d09b205073d6150ebb1345cf4e60fd | f340381113bdb423a39d47aaee61e013bb9e002a | refs/heads/master | 2022-05-30T21:20:38.049321 | 2022-03-06T21:43:01 | 2022-03-06T21:43:01 | 165,568,726 | 2 | 0 | MIT | 2019-10-26T19:28:10 | 2019-01-14T00:06:09 | HTML | UTF-8 | Python | false | false | 3,369 | py | #!/usr/bin/env python3
"""
So this is sort of a copy of roslaunch
"""
import sys
sys.path.append("../../")
from pygecko.multiprocessing import GeckoProcess
from pygecko.file_storage import FileJson, FileYaml
import multiprocessing as mp
import time
import logging
import logging.config
import logging.handlers
# https... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
76bb4cd60b6d44e55e7d4e94eae0236830d89195 | 5004bb828f4bf3fb419fd9cfca711cd612cc8ecd | /CMSAPI/topic_views.py | 18db101a1e4b46e406f580e7f81ba323fb0b2ab8 | [] | no_license | JulianYangJingJun/OSVRCMS | 5918354c6c4671aff1b183e4a7df9788a8261c8a | bef95536e96417e18972a3118e19a8074bfc8684 | refs/heads/master | 2022-12-11T12:42:41.497851 | 2018-01-05T02:27:44 | 2018-01-05T02:27:44 | 113,274,305 | 3 | 1 | null | 2022-11-22T02:06:16 | 2017-12-06T05:45:27 | Python | UTF-8 | Python | false | false | 7,222 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: Julian
@license: Apache Licence
@contact: aqkt_436@163.com
@site: http://www.abbstyle.com
@software: PyCharm
@time: 2017/4/20 11:00
"""
from django.http import Http404
from rest_framework.decorators import api_view
from rest_framework.response import Re... | [
"JulianYangJingJun@users.noreply.github.com"
] | JulianYangJingJun@users.noreply.github.com |
67306a97836e769d619abaa555af2bf2d367e65c | b951e1d2ad3fbed70500d1e8d15bd8e033a3e7ff | /精通网络爬虫/myfirstpjt/mypjt3/mypjt3/pipelines.py | 131b60085d9e4083c6ea305ea89d01122fc6a227 | [] | no_license | whyismefly/pythoncrawl | b195d8beb380558bdda74f3e79c38bbeeddc86c4 | 0e6fb6675971edbedc87bcb923afc83d1f577643 | refs/heads/master | 2021-07-08T21:50:10.287630 | 2020-09-15T16:57:53 | 2020-09-15T16:57:53 | 192,689,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class Mypjt3Pipeline(object):
def process_item(self, item, spider):
return item
| [
"whyismeflying@hotmail.com"
] | whyismeflying@hotmail.com |
472ee732da73893d1fdbefdf5c703cbba57dd5a1 | c671c6637e04b93cd7cd2f6dac20f9fd07b0462b | /src/pyams_batching/tests/__init__.py | 4cc11acab09a5a8de6f4dbb67e2c40365b752ab6 | [
"ZPL-2.1"
] | permissive | Py-AMS/pyams-batching | 746f80a37e9e78f6c7b85f91faff06d6be33fc8e | 60418bf4cf34d8c9e78f806ccd2bc652556c43f9 | refs/heads/master | 2021-07-09T19:08:46.193295 | 2021-03-09T07:21:56 | 2021-03-09T07:21:56 | 234,533,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | #
# Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | [
"thierry.florac@onf.fr"
] | thierry.florac@onf.fr |
f2dea8305700fe14e6a85c62ca818711ee856c6c | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/_codeforces/1379_a.py | a361296f706f1f7a0715516413f369236fa8e6b2 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
#input = sys.stdin.readline
from pprint import pprint
import sys
def count_aba(s):
param = "abacaba"
res = 0
for i in range(len(s)):
if str(s[i:... | [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
92510f03682835d498113b4cdfc4b55ca76a4337 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_6263e9812ef844e09bb70749be52ec3b/python/setup.py | 9b37e3118db11e902bea1093c1c6eec6f5cd20a1 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 2,650 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5baf0029ac5eae63b4e4775b8d271d0690dc3956 | 0809ea2739d901b095d896e01baa9672f3138825 | /libraryproject/libApp/migrations/0001_initial.py | dc4d77f31ad63d79181ed2829f3f619fc0f83bb1 | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.0.5 on 2020-04-19 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='destination',
fields=[
('id', models.AutoFi... | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
a3d1fefc0de6b1a5c86d7165100b386d5b17e2ab | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03296/s677827689.py | a2beb2c257353c536aa840b602253747bf28034e | [] | 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 | 133 | py | N=int(input())
a=list(map(int,input().split()))
Q=0
for i in range(N-1):
if a[i]==a[i+1]:
a[i+1]=0
Q+=1
print(Q) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
159f0d5334f669e99d124f85542b169dae2551a1 | b7a67fa152eeea31f59f142e77d1424e48802fb8 | /python/ThirteenTeV/SMHiggsToTauTau_13TeV-powheg_pythia8_cff.py | 85d33b8ceac965600ef536efbdb0206a54618925 | [] | no_license | gitytakahas/genproductions | 500e681e5fcaa079732a83346bbaa660d3923186 | bd96765534cd5b56caa2a3d0ff33cc4f51c1924d | refs/heads/master | 2020-04-12T11:37:19.933238 | 2015-06-17T12:24:18 | 2015-06-17T12:24:18 | 28,107,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import *
generator = cms.EDFilter("Pythia8HadronizerFilter",
... | [
"Yuta.Takahashi@cern.ch"
] | Yuta.Takahashi@cern.ch |
6295ab04722328cd1e95e2f2d3aceb5164f2d840 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/water_month/area/community/man/right/book_generic/life_idea_hour/thing/right/city.py | 673099c49029c87b862751054d5913ea8edef6df | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Linq;
/* in this repo */
using dfbStartup;
namespace cog_console
{
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
06a44194988f1facf0a06262e0a56eea88956e24 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/ebayer/kernel-old/xen/drivers/module-nvidia96/comar/xorg.driver.py | 3aab34d3d14cb1db66cb7d2729abbe605d4b088a | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import subprocess
from zorg.config import getDeviceInfo
version = "96.43.16"
driver = "nvidia96"
base = "/usr/lib/xorg/%s" % driver
BLACKLIST_CONF = "/etc/modprobe.d/blacklist-nouveau.conf"
ZORG_ENABLED_PACKAGE = "/var/lib/zorg/enabled_package"
ZORG_KERNEL_MODULE ... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
3e32a5b633e134e568ff7eca4b2c084387d43cc7 | e9b3bceb3a88c10a46bad27963052838d1b545cf | /territory/models.py | bcd63c8e4523de61329d5a97037c977d6005c02e | [] | no_license | vtemian/outclan | 23273b6486152efd1d5ccc1c6364b9b2d4ab119a | 80cdbf70ed6ca4ca235f425355d8bf8b027636a4 | refs/heads/master | 2021-01-22T22:49:32.025184 | 2011-09-12T11:10:09 | 2011-09-12T11:10:09 | 2,370,588 | 0 | 1 | null | 2016-10-20T18:13:52 | 2011-09-12T11:06:34 | C++ | UTF-8 | Python | false | false | 451 | py | from django.db import models
from Items.models import Defends
from account.models import UserProfile
from location.models import Location
class Territory(models.Model):
owner = models.OneToOneField(UserProfile)
defense = models.IntegerField(max_length=6, null=True)
capital = models.OneToOneField(Location... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
16e6c9ba1bf833080de09896f4fdbbcfcec58329 | 51885da54b320351bfea42c7dd629f41985454cd | /abc190/d.py | 62cdf1f0f2e041b9dcc02340e2f1e0d92d5293dd | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #
# abc190 d
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.r... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
a802b085a25b1ece7b6a2d7983a3d6aceed6ddc2 | 34b9ef26424161ce5aaa0c5a3cb93819e3f8b681 | /zipfiles/zip1_read_extract.py | 95dfe395dc3557a2e3c0820a5dd8af65b3153772 | [] | no_license | sarthak77/practice | 9544842563294e28d69cad4cb61b825db591efaf | 78618892c97797840681c3996f8f777b720b49de | refs/heads/master | 2020-03-23T17:35:49.919785 | 2019-07-08T07:22:17 | 2019-07-08T07:22:17 | 141,866,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import os,zipfile
exampleZip = zipfile.ZipFile('j.zip')
#for all files&folders present in zip folder j.zip
print(exampleZip.namelist())
# particular file in j.zip folder
a=exampleZip.open('j.txt')
b=a.readlines()
print(b)
#to extract all
exampleZip.extractall('./hello')
exampleZip.extract('j.txt','./hello2') | [
"sarthak.singhal@students.iiit.ac.in"
] | sarthak.singhal@students.iiit.ac.in |
6e39ad98dd9e143ac015980a3c4f910d7ac21279 | 4126bac318747280437b985007becfde1c445253 | /side-project/DjangoEnv/Python_Fundamentals/sorry/apps/to_wife/models.py | c7fe32d78cb6addaced4431877de1329cb411277 | [] | no_license | HaochengYang/Project | 887e42b8429055f31cb5edb4474c2e9a8e4557e6 | d4d829a1127935daa65b928f8f94a27f9012ca2c | refs/heads/master | 2021-01-12T14:41:18.714541 | 2017-02-15T21:48:58 | 2017-02-15T21:48:58 | 72,052,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from __future__ import unicode_literals
from django.db import models
class AnserManager(models.Manager):
def answer_check(self, postdata):
error =[]
if len(postdata['answer']) ==2:
error.append('Give me another chance')
response ={}
if len(postdata['answer']) == 3:
... | [
"haocheng0906@gmail.com"
] | haocheng0906@gmail.com |
c59907b7ecc7c4804b84311be66877c430195609 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/ETFMM_D/YW_ETFMM_SHSJ_160_D.py | 57fc0b0bba23388683c8f72ba68c88bc33badeaa | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/m... | [
"418033945@qq.com"
] | 418033945@qq.com |
8271d58f982d67b7b02016a629c43029693b3070 | cc10b80f143684270a7f4db7c73ada125309e3fa | /Number_of_Paths_with_Max_Score_1301.py | 782b5c297e0f3ed08df7cd964a1db243f6a9451d | [] | no_license | jay6413682/Leetcode | bfe8bf15183aa824fb96d9ff5a1ead5b7b7fa4d9 | 3ea03cd8b1fa507553ebee4fd765c4cc4b5814b6 | refs/heads/master | 2023-03-04T19:43:31.477643 | 2023-03-02T06:34:50 | 2023-03-02T06:34:50 | 30,943,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | class Solution:
def pathsWithMaxScore(self, board: List[str]) -> List[int]:
""" my own dp solution. 解题思路可看https://mp.weixin.qq.com/s?__biz=MzU4NDE3MTEyMA==&mid=2247485565&idx=1&sn=9d307e3ef239d9ba509624736408fc3c&scene=21#wechat_redirect,她的解就算了。
注意:每个数字都是正数
"""
# 从左上到右下等价从右下到左上
... | [
"private@email.address"
] | private@email.address |
04b15aa78d4efde6470211c0fd4b71f3efbd6f35 | 45dc0dd09a7599d75711340cb69207267c8567b2 | /script/lib/config.py | 9ac2a7bdd2c332addacf1e162f145643199a3a3f | [
"MIT"
] | permissive | ccheever/atom-shell | 6616b852bf6a1ef9fa3f0563d8777a229e3fd73c | dd804b090a20ff06423394a11f8190869af14ded | refs/heads/master | 2021-01-17T06:38:36.292105 | 2014-05-30T01:02:21 | 2014-05-30T01:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | #!/usr/bin/env python
NODE_VERSION = 'v0.11.10'
BASE_URL = 'https://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = '34d71b3bcc65c5213663a967ee1950c6d3729346'
| [
"zcbenz@gmail.com"
] | zcbenz@gmail.com |
4149cd3f9a5c51d9a5c6608f197d5c002cdfcab1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03206/s078879399.py | 9efad4b84d1d70b07729719116873b430cee5df8 | [] | 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 | 150 | py | n=int(input())
if n==25:print("Christmas")
if n==24:print("Christmas Eve")
if n==23:print("Christmas Eve Eve")
if n==22:print("Christmas Eve Eve Eve") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c08e93f8e654ba9b458ebf4baf1d8f4cf5d3a559 | a41749c1adcde222a90dc8fd6459cd3db104def3 | /zadania/zaj6/sessions/models.py | e2c797e463cb6810ec0065f440f72ecd31063470 | [] | no_license | jbzdak/webapliacje | 0385eae3357b3dad3bf99e3aae5b0eadbe036ded | 85ca7f1ff6390477dac80eaed9ac561656dc5b06 | refs/heads/master | 2021-01-10T08:57:47.809807 | 2016-01-13T19:17:27 | 2016-01-13T19:17:27 | 43,634,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import base64
import os
import pickle
from django.db import models
# Create your models here.
class Session(models.Model):
session_key = models.CharField(
default=base64.b64encode(os.urandom(64)),
)
db_session = models.BinaryField()
@property
def session(self):
return pickle.loads(bytes(self.db... | [
"jbzdak@gmail.com"
] | jbzdak@gmail.com |
1ac977190fab50fc0351df022cbe6a4a7c3fb0bf | 5175aa0d42d1de3c04d1a88494406e0ea31792d6 | /src/12_numba_mem/1d_iter_avg.py | 822b0903ba9b83414b7dcdcd0b9725c3b4c0100d | [
"MIT"
] | permissive | agrippa/hpc-bootcamp | c24a41aaf86e21d0185ba63b363d2fe0964df339 | 7db008557a48e7a6d9eae2df2371a3c7b9f0678c | refs/heads/master | 2021-10-10T07:58:30.003887 | 2021-09-30T15:39:28 | 2021-09-30T15:39:28 | 58,377,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | #!/usr/bin/python
import sys
import time
import math
import numpy as np
import matplotlib
matplotlib.use('agg')
from numba import cuda
@cuda.jit
def kernel(nxt, curr, N):
tid = cuda.blockIdx.x * cuda.blockDim.x + cuda.threadIdx.x
if tid < N:
tid += 1
nxt[tid] = (curr[tid - 1] + curr[tid + 1])... | [
"jmaxg3@gmail.com"
] | jmaxg3@gmail.com |
1176076ed6df9142c0ed646a73fb69f9a4dd0265 | 3fdad7e4cf4725e90354a674eddea4ec34f2344c | /myia/operations/op_hyper_map.py | 97e305726ef971005cc594ee0180e49bc63ae1b9 | [
"MIT"
] | permissive | zangmunger/myia | 1f2e9045af62da5a5d832eed0436de7c5813cd99 | 0aa38aa3c43648ee408dc031352ba442f6bed59f | refs/heads/master | 2020-12-13T04:10:28.154027 | 2020-01-15T20:33:05 | 2020-01-15T20:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | """Definition of the operation `hyper_map`."""
from ..hypermap import hyper_map
__operation_defaults__ = {
'name': 'hyper_map',
'registered_name': 'hyper_map',
'mapping': hyper_map,
'python_implementation': hyper_map,
}
| [
"abergeron@gmail.com"
] | abergeron@gmail.com |
694364cf7931df5c0fe3e23c5f9f5504071cac1c | d4280eca1a9badb0a4ad2aa22598616eedece373 | /PyQt/GUI example/image/image.py | e737c48e14526a4f71dce05347a12d8da6194647 | [] | no_license | Little-Captain/py | 77ec12bb2aaafe9f709a70831266335b03f63663 | 74ba3c3449e7b234a77500a17433e141e68169f7 | refs/heads/master | 2021-06-09T11:33:23.205388 | 2019-11-22T01:17:44 | 2019-11-22T01:17:44 | 131,844,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel
from PyQt5.QtGui import QIcon, QPixmap
class App(QWidget):
def __init__(self):
super().__init__()
self.title = 'PyQt5 image - pythonspot.com'
self.left = 10
self.top = 10
self.width = 640
self.heigh... | [
"littlecaptain@foxmail.com"
] | littlecaptain@foxmail.com |
b7afe682565db2fdd2f5ef04136e24aa702d536a | 2ce9d661457d079f7ee3e9643c33018f02fa9dc3 | /compute_genesis_details.py | 78a009eaf06d2e27b5fbabed737755ad30290c6e | [] | no_license | protolambda/steklo | bf202fe9817e40e2bdddefe452ae40765102949e | 174f7f4d7c08c9df1f9cdab8228c1a3b1c12d33a | refs/heads/master | 2023-04-18T05:45:24.643194 | 2021-04-30T09:43:07 | 2021-04-30T09:43:07 | 362,686,274 | 2 | 1 | null | 2021-04-30T03:45:50 | 2021-04-29T04:10:21 | Python | UTF-8 | Python | false | false | 3,567 | py | import json
from datetime import datetime
import os
from ruamel.yaml import YAML
from pathlib import Path
from eth2spec.config import config_util
def load_conf():
yaml = YAML(typ='base')
loaded_config = yaml.load(Path('./eth2_config.yaml'))
out: Dict[str, Any] = dict()
for k, v in loaded_config.items()... | [
"proto@protolambda.com"
] | proto@protolambda.com |
de5536fd24b4ddb808476eb6350b1ea118d6a101 | e0cbea0cb68f0ba5dba837dbe60067eb88e3d151 | /CodeClubProjects/AboutMe/venv/bin/easy_install-3.7 | 1dc1318f8d6e61e265fd9bb343043171e4a89bf8 | [] | no_license | arossbrian/my_short_scripts | 74fb689ac25feaffb14437496902ee1a0dcc5b60 | a34923f7ecbf027d8a0704400fcfb3e71ed662fd | refs/heads/master | 2023-05-24T16:45:51.050321 | 2023-05-11T16:20:30 | 2023-05-11T16:20:30 | 195,057,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | 7 | #!/home/piper/Documents/shortpythonscripts/CodeClubProjects/AboutMe/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[... | [
"arossbrian@gmail.com"
] | arossbrian@gmail.com |
db7eca128d698041919735e0a472a63e06a753a7 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/maxas_limit/in_/__init__.py | c51e23e84b45f64d9b0a21b1efbfdcfa29859956 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
f780da42cad3baae6415617f60277acd128d2287 | 70026e9e5a6d9f70057574c749d0ef8b603763f5 | /importers/access_technical/formmaps.py | 866000798513181e56fd4025121468b338687cfd | [
"MIT"
] | permissive | GreenBankObservatory/nrqz_admin | 96b113e640bfdec221631626114665ef1f684cc5 | c8e0876c3ab7a3feae578fa725dbfd1bdbe52a61 | refs/heads/master | 2023-05-11T16:28:21.731339 | 2023-05-01T14:25:25 | 2023-05-01T14:25:25 | 159,407,852 | 2 | 0 | MIT | 2022-12-14T04:13:35 | 2018-11-27T22:22:48 | Python | UTF-8 | Python | false | false | 6,649 | py | """Field mappings for Access Technical Data"""
from cases.forms import (
AttachmentImportForm,
CaseImportForm,
FacilityImportForm,
PersonImportForm,
)
from django_import_data import FormMap, ManyToOneFieldMap, OneToOneFieldMap
from importers.access_application.formmaps import (
convert_access_date... | [
"tchamber@nrao.edu"
] | tchamber@nrao.edu |
6b4f25e1418ffb1fb811d8c6f83c611742df6f5e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /G9QRtAGXb9Cu368Pw_0.py | 0d8ae98acfb90be8f4463c1db4c4f1f435deb6cb | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | """
Create a function that takes a variable number of arguments, each argument
representing the number of items in a group, and returns the number of
permutations (combinations) of items that you could get by taking one item
from each group.
### Examples
combinations(2, 3) ➞ 6
combinations(3, 7, 4) ➞ ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ee726722cbd056c4d788513d194afc4f90954599 | 8cc44eb6cc0fd2e74ce80246ad50e9d510591345 | /q166.py | a583b83a24adaa9250c2bf69f67d3071ab70ad84 | [] | no_license | gitttttt/lc | 8b6521af300c6903f593b209783560b6b880d8ae | fa1a63cb192666fc6aa5c7c72130993818ea58d0 | refs/heads/master | 2020-05-30T07:12:56.955633 | 2016-12-14T03:16:42 | 2016-12-14T03:16:42 | 68,888,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import time
class Solution(object):
def fractionToDecimal(self, numerator, denominator):
"""
:type numerator: int
:type denominator: int
:rtype: str
"""
n, d = numerator, denominator
l = n/d
n -= l*d
tmp = {n: 0}
c = 0
while n ... | [
"zhangyifan@neotel.com.cn"
] | zhangyifan@neotel.com.cn |
8953b3de112833a058c748ef93792785f48fe80d | 8ffccb986def3f1f669b475a8575e05dccd77163 | /py23표준모듈/py23_03_datetime모듈.py | d91f40a9911edfa9aeb6f45ee703ff11527c81e6 | [] | no_license | pythonJhu/testProject | 09f5d412b0271e17b31f78fd7133d6e54464c41a | 74f27b0f5c2b798122c3edbd66f7b485a8add6d5 | refs/heads/master | 2021-01-01T10:55:56.370576 | 2020-03-08T07:09:33 | 2020-03-08T07:09:33 | 239,248,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | #################################
# datetime 모듈의 사용법을 익힌다.
#
#datetime.now() 현재 년월일시분초 가져오기
#datetime.timedelta() 시간 가감로세스를 주어진 초만큼 정지
#datetime.replace() 시간 교체
#################################
# 모듈을 읽어 들입니다.
########################
# 현재 년,월,일,시,분,초 출력하기
# 예시) 년 2020
# 월 3
# 일 2
# 시 15... | [
"bvyuguy@md.com"
] | bvyuguy@md.com |
429bc5e46821a2fa089c5e110922970908977275 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ARC/ARC127/a2.py | 00dda31573e1fcb0413c9ee2b7d13c87101d1f8b | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from itertools import groupby
n = int(input())
def solve():
cnt = [0]*20
for k in range(1, len(str(n))+1):
v = [0]*k
for i in range(k):
s = list('1'*(i+1)+'0'*(k-i-1))
p = list('1'*(i+1)+'0'*(k-i-1))
p[i] = '2'
p = int(''.join(p))
s ... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
75ca5d6a2456e0e3f11abe3fcb9b840fd86d2842 | d13a069fda8ce2e0a202eb43266af7558355cdc6 | /LIZA_DAMIAN_CARLOS/app24.py | f6343e15eed5fb035ad6cd972c6bd35847859e27 | [] | no_license | CARLOSC10/T09_LIZA.DAMIAN_ROJAS.CUBAS | 879aba53c1db9ed2bfc4c37da3bf1cbd9df14d97 | 357ec4a3c266fa4ddf8d13b1ecb2af0feb604755 | refs/heads/master | 2020-11-27T04:52:52.004005 | 2019-12-20T18:10:12 | 2019-12-20T18:10:12 | 229,309,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import libreria
import os
#ARGUMENTOS
densi=int(os.sys.argv[1])
grave=int(os.sys.argv[2])
altu=int(os.sys.argv[3])
precion_hidrostatica=libreria.precion_hidrostatica(densi,grave,altu)
print("LA PRECION HIDROSTATICA ES:",precion_hidrostatica)
| [
"clizad@unprg.edu.pe"
] | clizad@unprg.edu.pe |
e1f15240af7d33b1d09beb66315b676acfcb2b78 | 978771b07fd3773462a12c27afa90d4c0ddc3efb | /nock.py | 50538c1de19e452ede120e8871ec1d11fa2bbc2e | [
"MIT"
] | permissive | jtauber/pynock | 168dd899f5f36ccf1a2903b8d8a8319f682b6648 | a11f9088653aad5400a097026429a2599bca2d06 | refs/heads/master | 2021-01-10T21:08:02.963296 | 2014-07-15T22:47:54 | 2014-07-15T22:47:54 | 13,111,154 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | #!/usr/bin/env python3
# []
def l(*lst):
if len(lst) == 1:
return(lst[0], 0)
if len(lst) == 2:
return lst
else:
## LINE 2
return (lst[0], l(*lst[1:]))
# *
def nock(noun):
## LINE 1
return tar(noun)
# ?
def wut(noun):
if isinstance(noun, int):
## LINE... | [
"jtauber@jtauber.com"
] | jtauber@jtauber.com |
357501f3d0ec752589c89dd30414adf9e2c0c0f9 | ae181bc91a206e6cfdf476f02bc3d5f48d155ade | /train.py | d6ce0e047c65eefd535c3693b44f13273a44b612 | [
"Apache-2.0"
] | permissive | Guillem96/deep-erase | 56042f396cfe02d031b464fd49e5f083ba7f4b74 | faefdef3ac79b2365ecd0e12c14a4a4692e80c71 | refs/heads/main | 2023-03-10T16:02:55.542674 | 2021-02-23T09:06:50 | 2021-02-23T09:14:28 | 332,744,143 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,610 | py | import click
from pathlib import Path
from typing import Tuple
from datetime import datetime
import matplotlib.pyplot as plt
import tensorflow as tf
import deeperase
def _show_batch(input_images: tf.Tensor, target_images: tf.Tensor):
cols = 2
rows = input_images.shape[0]
i = 1
for inp, target in z... | [
"guillem.orellana@gmail.com"
] | guillem.orellana@gmail.com |
c19fc12e10af564f86825e8fa7baa0775f6b376e | 9a9d1e0a2185985b12adebdd15540a91012bbe1d | /Algorithms/3.4/linear_probing.py | 25468d72f492295fb57985ca06b5b637ed7a26ea | [] | no_license | soasme/Practise | 2c15844ce31c36bad9d46e800afbc411bb16fa24 | 68b07fd91cd3106dd19bbc43144a5c7d95f18d2e | refs/heads/master | 2020-05-16T22:25:37.143113 | 2013-08-01T01:39:33 | 2013-08-01T01:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | # -*- coding: utf-8 -*-
class NullItem(object):
def __repr__(self):
return 'Null'
nullitem = NullItem()
class LinearProbingHashTable(object):
def get(self, key):
start = self.hash(key)
index = start
while True:
if not self.keys[index]:
return
... | [
"soasme@gmail.com"
] | soasme@gmail.com |
689fc26a3c7f494805b9a1320bd1041d3fd5e63f | 411c286e478f54caeff3e97096543729eaf04673 | /energypy/common/memories/register.py | 01bc67ba802e1dbafb1c2621dcac45a5a6b83891 | [
"MIT"
] | permissive | winonecheng/energy-py | bab64f8e8b3c16bab94002d996f0ec52489fcb4f | 1ac00446cfd6baf335f3772c679488758f9bfded | refs/heads/master | 2022-09-13T22:43:19.469607 | 2020-05-27T00:46:20 | 2020-05-27T00:46:20 | 261,758,799 | 0 | 0 | MIT | 2020-05-06T12:57:11 | 2020-05-06T12:57:10 | null | UTF-8 | Python | false | false | 571 | py | from energypy.common.memories.array_memory import ArrayMemory
from energypy.common.memories.deque_memory import DequeMemory
from energypy.common.utils import load_pickle
memory_register = {
'array': ArrayMemory,
'deque': DequeMemory,
}
def make_memory(**kwargs):
""" makes a memory for an agent to store... | [
"adam.green@adgefficiency.com"
] | adam.green@adgefficiency.com |
8aa3eff7382385d8e13decb1696b941136374141 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/189/36614/submittedfiles/triangulo.py | 493c9e3b4bc7b09447795aadd4639235b06c8bf5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite o a:'))
b=int(input('digite o b:'))
c=int(input('digite o c:'))
if a-c<b<a+b and a-b<c<a+b and b-c<a<b+c:
print('S')
if (a**2)==(b**2)+(c**2):
print('Re')
if (a**2)>(b**2)+(c**2):
print('Ob')
if (a**2)<(b**2)+(c**2):
print(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c6e9cf996b39333196e449a0649d2889a1f486dc | c6dc8b682aea706b18b05952f791e01989db3669 | /Programiz/factorsOfNumber.py | f8ec3ddce9db6b08958d547ad481ecf2dece139e | [] | no_license | LizaPersonal/personal_exercises | aeb9ceb2593a6d5ee1a8e9f7c0862ce638acd29b | 649dc0c116861995fbf58b4736a0c66fd75d648c | refs/heads/master | 2021-04-03T02:17:51.850676 | 2018-07-31T21:10:59 | 2018-07-31T21:10:59 | 125,123,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Python Program to find the factors of a number
# define a function
def print_factors(x):
# This function takes a number and prints the factors
print("The factors of", x, "are:")
for i in range(1, x + 1):
if x % i == 0:
print(i)
num = int(input("Enter a number: "))
print_factors(n... | [
"liza@rocketrip.com"
] | liza@rocketrip.com |
69cb268a9f079de02e6051b40a76a7bf315f3b64 | 1ba5c90292dbed982a23167fd083dd2cf29f6d8d | /boliau/cmd.py | 889b173587b4e455d1d2d81770686d0be15f7399 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hychen/boliau | 8d99a331056ef18001cae5503084624c1e43618c | 618e4557c7b4a3d97c9926b1d7e691291472ff7c | refs/heads/master | 2021-01-01T17:37:25.012545 | 2013-08-16T09:58:58 | 2013-08-16T09:58:58 | 7,454,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | #!/usr/bin/env python
# -*- encoding=utf8 -*-
#
# File: cmd.py<2>
#
# Copyright (C) 2012 Hsin-Yi Chen (hychen)
# Author(s): Hsin-Yi Chen (hychen) <ossug.hychen@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Softwar... | [
"ossug.hychen@gmail.com"
] | ossug.hychen@gmail.com |
30ffa913c0d48fabc85d7ec5bdcb9c547a074b77 | 9db903f5bae9f3832f37028e17116fc9ad853078 | /Io.py | 2eec0901e0342e1e71b79214946617d46c4f560c | [
"BSD-3-Clause"
] | permissive | tbekolay/behaviour-tool | d852c46b2036265389772383c4002427842cafea | c15df562bac0e601a56f95c4bc91ff261cb6d26e | refs/heads/master | 2016-09-10T13:41:43.373418 | 2013-03-12T21:28:12 | 2013-03-12T21:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | # Copyright (c) 2010, Trevor Bekolay
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions ... | [
"tbekolay@gmail.com"
] | tbekolay@gmail.com |
a00ef8bfae88bf48b77d5252a64432fef1551793 | 5bf245e55b756ca3e664d857f36db092855c7a98 | /externals/pyriemann/utils/base.py | fd883f69f94e6611d19cef41320bb2f1fb565825 | [
"BSD-3-Clause"
] | permissive | kingjr/decoding_challenge_cortana_2016_3rd | b264fabbe8fb2f3788d11dc2c4deebcf217a64a5 | 26c2ebf5200b5a5cd268fa73ac3928d7257d08d3 | refs/heads/master | 2021-01-20T17:54:12.617430 | 2016-07-13T22:31:58 | 2016-07-13T22:31:58 | 63,120,115 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | import numpy
import scipy
###############################################################
# Basic Functions
###############################################################
def sqrtm(Ci):
"""Return the matrix square root of a covariance matrix defined by :
.. math::
\mathbf{C} = \mathbf{V} \left(... | [
"jeanremi.king+github@gmail.com"
] | jeanremi.king+github@gmail.com |
f2ce158f2e07d179637d6c3bfff26bcf5693f6fb | 66122f35551335b943f0b05a3f912b1a26a3f2ac | /instagram/converters.py | c2c6188cfa44c02a86847db70e72ecdadc2698ee | [] | no_license | noname2048/django-prac-001 | 33d1a6d35927045a50e588906215b662aa2a3931 | fc8f4f07d09167dc9c4882689a6652cb6a915c14 | refs/heads/master | 2023-03-05T19:56:09.096676 | 2021-02-05T22:23:49 | 2021-02-05T22:23:49 | 336,402,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | class YearConverter:
regex = r"\d{4}"
def to_url(self, value):
return str(value)
def to_python(self, value):
return int(value)
class MonthConverter(YearConverter):
regex = r"\d{1,2}"
class DayConverter(YearConverter):
regex = r"[0123]\d"
| [
"sungwook.csw@gmail.com"
] | sungwook.csw@gmail.com |
16ecd84cb8786f5dd79b88a6eb76cf8350e65d82 | ddb3656fbacef606ac3cfa53eb74a99be90202cd | /selfdrive/loggerd/SConscript | 2adcfb846cf1e5165e1e3dcebb38711ed1f83e7b | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ErichMoraga/openpilot | f70b353099d3643c9f8d16fb8003811418c95656 | 2f73be29651e34e62eaf18472f9219cea57c177a | refs/heads/812 | 2023-08-02T16:58:57.870050 | 2023-07-20T17:33:41 | 2023-07-20T17:33:41 | 140,953,335 | 58 | 77 | MIT | 2023-07-30T15:33:18 | 2018-07-14T14:41:16 | C | UTF-8 | Python | false | false | 1,021 | Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc', 'gpucommon')
logger_lib = env.Library('logger', ["logger.cc"])
libs = [logger_lib, common, cereal, messaging, visionipc,
'zmq', 'capnp', 'kj', 'z',
'avformat', 'avcodec', 'swscale', 'avutil',
'yuv', 'bz2', 'OpenCL']
src = ['l... | [
"user@comma.ai"
] | user@comma.ai | |
9985294cca51d98586736c061ab0b82f34b30888 | 597b82737635e845fd5360e191f323669af1b2ae | /06_python_OOP/mathdojo/mathdojo.py | d24e1146f8aa9f530116fa0d039ad43d28e1f615 | [] | no_license | twknab/learning-python | 1bd10497fbbe181a26f2070c147cb2fed6955178 | 75b76b2a607439aa2d8db675738adf8d3b8644df | refs/heads/master | 2021-08-08T08:50:04.337490 | 2017-11-10T00:28:45 | 2017-11-10T00:28:45 | 89,213,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,160 | py | ##########
#
# MathDojo Assignment - Tim Knab - Sept 2016
#
##########
'''
///////////////
// QUESTIONS //
///////////////
# QUESTION 1: Any idea why my result() method gives me this error?
`TypeError: 'int' object is not callable`
# QUESTION 2: Is there any way I could refactor this code?
'''
class Math... | [
"natureminded@users.noreply.github.com"
] | natureminded@users.noreply.github.com |
4d4230b546411c2dba840e11c1cefd1e62aa800a | bf58599faee5052ad3ca70cf1d7a4b3713efc3cb | /music/models.py | 215a164aba1300bf68382fb72aac66eef3ec4200 | [] | no_license | surajkumarbhagat71/mymusic | d69f71af93f0c5bb9ad390b438986872ad5aa841 | 5793cbe91bdcbfb5ee1096a8bb5e8f463b1f14ad | refs/heads/master | 2023-03-12T05:18:11.377120 | 2021-03-04T11:19:12 | 2021-03-04T11:19:12 | 344,448,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from django.db import models
# Create your models here.
class Category(models.Model):
cat_id = models.AutoField(primary_key=True)
title = models.CharField(max_length=200)
def __str__(self):
return self.title
class Music(models.Model):
music_id = models.AutoField(primary_key=True)
song_... | [
"surajkumarbhgat71@gmail.com"
] | surajkumarbhgat71@gmail.com |
e00893536d8a5ba9999c0791f7b71752f41aa792 | 0717c8bf08f7be5fc06d4fe839d48ec62593eb7f | /gengue_shop/config/urls.py | 273f1abb48b8877d5ce763742980bc6dbf82795e | [] | no_license | gengue/gengue-shop | e3a9ed61762ef6ebfcda330e9e239c57b2faf1f1 | 49e302b93128d9b23a5c4af2573f065a928f298a | refs/heads/master | 2021-01-13T08:22:56.398279 | 2016-09-27T10:02:45 | 2016-09-27T10:02:45 | 69,321,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.conf.urls import include, url
from django.contrib import admin
from django.views import defaults
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView
urlpa... | [
"genesisdaft@gmail.com"
] | genesisdaft@gmail.com |
507207c4fed3e2faa54b38f283df30ea292fb210 | dde47e757247095eca45c9d743a0e1a1530f6ef7 | /postgres/python/main.py | 2663ed44867d9cfd2006e1a487750bfd48a6c524 | [
"CC0-1.0"
] | permissive | dataength/extracting-data-from-various-sources | e7c223ce6add600f6fb8e95d2d8367e57cf4fa53 | 685286641df5b70dd1fc69f3544e2abbb080d197 | refs/heads/main | 2023-07-18T00:14:44.267681 | 2021-09-06T14:44:48 | 2021-09-06T14:44:48 | 400,954,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import configparser
import csv
import psycopg2
if __name__ == "__main__":
parser = configparser.ConfigParser()
parser.read("pipeline.conf")
dbname = parser.get("postgres_config", "database")
user = parser.get("postgres_config", "username")
password = parser.get("postgres_config", "password")
... | [
"zkan.cs@gmail.com"
] | zkan.cs@gmail.com |
bfba7d450d7963c5a0859cf771906bf4f3f7dc02 | fafe93ffba6185a718b3c8cdfd6cf36a29cf3302 | /scripts/logreg_iris_bayes_2d_pymc3.py | 83b02ba3c4d85bf85aafa9abe59c5a7aeb58c794 | [
"MIT"
] | permissive | uniontm/pyprobml | 7a8e2b545c50b8e0e2f9683029450ace6a1d54da | e3db0a9f7718f3f1906924969c78ffb473cb2f0f | refs/heads/master | 2023-01-29T02:30:32.305147 | 2020-12-12T07:29:07 | 2020-12-12T07:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | # Bayesian Binary logistic regression in 2d for iris flwoers
# Code is based on
# https://github.com/aloctavodia/BAP/blob/master/code/Chp4/04_Generalizing_linear_models.ipynb
import pymc3 as pm
import numpy as np
import pandas as pd
import theano.tensor as tt
#import seaborn as sns
import scipy.stats as stats
from s... | [
"murphyk@gmail.com"
] | murphyk@gmail.com |
a5ccbf140f0a1bb2be2b02821828bc62380c407d | d9cd12fe7607fe3931fc1a611a3613c9ef7afb42 | /manipulation/playing_with_food/scripts/mask_scripts/move_unlabeled_data.py | fec89965824d49547c8f2f5bb455abceae0f2d70 | [] | no_license | HARPLab/gastronomy | e4c42626a6883acf5818dcfe97069253ca7fdd12 | ad713e4eb15a2d9573622bace528fc86e19a6545 | refs/heads/master | 2022-04-27T11:31:16.408378 | 2022-03-17T00:17:34 | 2022-03-17T00:17:34 | 166,125,356 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import glob
import subprocess
annotation_file_paths = glob.glob('/home/klz/food_training_annotations/*.png')
test_image_file_paths = glob.glob('/home/klz/food_test_images/*.png')
unlabeled_dir = '/home/klz/unlabeled_food_images/'
for file_path in test_image_file_paths:
file_name = file_path[file_path.rfind('/')+1... | [
"kevinleezhang@gmail.com"
] | kevinleezhang@gmail.com |
358f5ac428b0ffba80271216f482b1df64d4b728 | 8733bca14c304e71cdaaed2fc94b7538af4cdfd6 | /0-makeBashFile.py | e424c39cef7546fa9c3056b521680bbc478fc135 | [] | no_license | jameshughes89/intracranialPressureNonlinearModelling | e6138a7a45091600b9f8f6dff5340e32ab76b5ce | d3b64ea96d531e798a32ce92a1d55dff2963138c | refs/heads/master | 2021-01-17T20:50:50.721406 | 2017-08-03T18:34:40 | 2017-08-03T18:34:40 | 95,585,439 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | ################################################
subjects = [3029993, 3033031, 3083337, 3094054, 3096171, 3105502, 3169632, 3262086, 3269261, 3289177, 3367596, 3379471, 3460047, 3463681, 3505904, 3516004, 3555523, 3562822, 3582988, 3599360, 3600995, 3607634, 3623238, 3645431, 3646209, 3662063, 3721988, 3738640, 3779174... | [
"JamesHughes89@Gmail.com"
] | JamesHughes89@Gmail.com |
f20de9737cc53d751027d4fd93eaf20130ba4e94 | 5f57cfb662e7a490235255273114d2eb712a9ce4 | /djd-prog2/noite-aula12/plataforma.py | de54f362f7f5c29439695eac72639b25bed64351 | [] | no_license | antoniorcn/fatec-2020-2s | 762e14acfbf0cb42a2e478662e6cf0001794f72c | 4d90cc35d354382ad38c20ce2e32924216d7d747 | refs/heads/master | 2023-01-27T22:52:29.529360 | 2020-12-05T13:51:30 | 2020-12-05T13:51:30 | 289,972,977 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 6,758 | py | import pygame
pygame.init()
GRAVIDADE = 0.0009
matrix = [
"PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP",
"P..............................................................................P",
"P.......PPPPP.................................................................... | [
"antoniorcn@hotmail.com"
] | antoniorcn@hotmail.com |
76c022051bda65895bc8a3f75930dc7e7afb7d23 | a934a51f68592785a7aed1eeb31e5be45dd087d3 | /sample/temp.py | ff8a531cc85ae060d32e8146dc716a0aabb0b79e | [] | no_license | nsshayan/Python | 9bf0dcb9a6890419873428a2dde7a802e715be2b | 0cf5420eecac3505071326c90b28bd942205ea54 | refs/heads/master | 2021-06-03T18:41:06.203334 | 2020-09-28T07:28:48 | 2020-09-28T07:28:48 | 35,269,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import matplotlib.pyplot as plt
from ImageLibrary import *
myFile = pickAFile()
img = open('track.png','rb')
im = plt.imread(img)
plt.show()
| [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
ad3f9a1599d8f1a3d423dee2d7e1eca8d397e6e7 | 19bc4d44dc7303e23a6949b1bc7b98b65bcf80e9 | /python/Build_a_Machine Learning_Model_with_Python/Supervised_Learning/Support_Vector_Machines/polynomial_kernel.py | f4b9972504b388a5c41c74f9d9f286b6d0543b27 | [] | no_license | henry1034/Challenge-Project-of-CodeCademy | c66190ff3a318e22f263fcf78344632773065c24 | 61ebe84696cec120393acca62b4fce4bdea0fb30 | refs/heads/master | 2023-07-04T01:04:16.978374 | 2021-07-29T17:27:56 | 2021-07-29T17:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | from sklearn.datasets import make_circles
from sklearn.svm import SVC
from sklearn.model_selection import train_test_split
#Makes concentric circles
points, labels = make_circles(n_samples=300, factor=.2, noise=.05, random_state = 1)
#Makes training set and validation set.
training_data, validation_data, training_lab... | [
"noreply@github.com"
] | henry1034.noreply@github.com |
68c440e26cbde9b606eb8da55d7e0db50e993e73 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1491.py | 99241b949aa1c7301db3633ec313debf46b4cc82 | [] | 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 | 511 | py | def get_empty(n, k):
if k == 1:
if n % 2:
ret = (n-1)//2
return ret, ret
else:
ret = n//2
return ret, ret - 1
else:
kn = k//2
if k % 2 and not n % 2:
nn = n//2 -1
else:
nn = n//2
ret... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6e6aafe979ba2a043809f53660b2b7ebb727d8c1 | de3fe8840a7b3eedf4684cb408c859cb0e7a418b | /vendor/migrations/0002_auto_20210205_0151.py | f21b2eec2c29f6333422682ee9f03ca8271f7463 | [] | no_license | jabykuniyil/fadeeto | e849f4d75516488ddd2ca024af784852935b3afd | 45910ab16fd53891a618810738e542c2dfc2ff98 | refs/heads/main | 2023-03-22T05:00:03.269688 | 2021-03-09T09:36:00 | 2021-03-09T09:36:00 | 337,984,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.1.5 on 2021-02-04 20:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='vendor',
name='password',
... | [
"mohdjabiran112@gmail.com"
] | mohdjabiran112@gmail.com |
a22f37f6e6bfb28265d633ee6df38690b7fb6341 | 9cf6b67410b243ce087ab4ba7142b4fef7b52be8 | /storjnode/version.py | e469d403606ac6bed36bae599fc8984f694b067c | [
"MIT"
] | permissive | biddyweb/storjnode | f6172272651497e346c5ff6f5dd03df8844bcefd | 5656d43aab0cff510773f5836740e2e85c992677 | refs/heads/master | 2020-12-25T10:49:59.352267 | 2016-01-06T19:40:56 | 2016-01-06T19:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = '0.0.21'
| [
"fabian.barkhau@gmail.com"
] | fabian.barkhau@gmail.com |
698b7eedd0547d1ec74c8db3191b4732932135d1 | 53818da6c5a172fe8241465dcbbd34fba382820d | /PythonProgram/chapter_04/4-11.py | 596f6726e73157fc95404388ff187567c82fff8f | [] | no_license | Lethons/PythonExercises | f4fec3bcbfea4c1d8bc29dfed5b770b6241ad93b | 81d588ffecf543ec9de8c1209c7b26c3d6a423b3 | refs/heads/master | 2021-04-15T11:36:08.991028 | 2018-07-07T09:20:40 | 2018-07-07T09:20:40 | 126,686,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | pizza_list = ['cheese pizza', 'mushroom pizza', 'pepperoni pizza']
friend_pizzas = pizza_list[:]
pizza_list.append('hum pizza')
friend_pizzas.append('beef pizza')
print("My favorite pizzas are:")
for pizza in pizza_list:
print(pizza)
print("My friend favorite pizzas are:")
for pizza in friend_pizzas:
print(pizz... | [
"lethons@163.com"
] | lethons@163.com |
cb34aac1c82460a3af820d47a1b91b1298097dc9 | 10dd783f6e2561c5de249f3ce88ba1ad74c54dce | /dothebackup/ui.py | a60b1a58f79c4e0e8fbc33ad9a68aaa8a9bb1648 | [] | no_license | Python3pkg/DoTheBackup | 8422275dbf1f9525077cc1c6754fe8213bbfdb26 | 000172c859f80d7ec26f6978088c655c082fc822 | refs/heads/master | 2021-01-21T17:29:34.613263 | 2017-05-21T12:59:00 | 2017-05-21T12:59:00 | 91,957,271 | 0 | 0 | null | 2017-05-21T12:58:58 | 2017-05-21T12:58:58 | null | UTF-8 | Python | false | false | 783 | py | import click
import logging
from dothebackup.runner import get_started
@click.command()
@click.argument('configfile', type=click.File('r'))
@click.option(
'--name', '-n', help='Run a specific job from the config.'
)
@click.option(
'--test', '-t', is_flag=True,
help='Only prints the created commands that ... | [
"marvin@xsteadfastx.org"
] | marvin@xsteadfastx.org |
03db0dab47cb657e1cac588157a91b26c4349f45 | 8159f9d2f8b89d84567958288eddab5fbb03a741 | /schedules/migrations/0014_auto_20160712_1102.py | e52bd17a5b0d119adce24693c94234623048a380 | [] | no_license | CasinoSchedule/Schedule-API | d1c9da5c610c99c980d64b24eaf7cfba4d034b30 | b8ebf6210d3317d733a80e242cb819ce054961eb | refs/heads/master | 2021-01-17T19:18:49.230384 | 2016-08-17T07:40:36 | 2016-08-17T07:40:36 | 61,742,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-12 18:02
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('schedules', '0013_callout'),
]
... | [
"aarondscruggs@gmail.com"
] | aarondscruggs@gmail.com |
e43e210e240f77aa197c4eeb477b987aedd210c7 | 75cda7224d64581120477d894a3684f5c38af58f | /Assesment/model_keras_adaptor.py | 226342108efb1ee242e4211e0043ca9d74eebd3c | [] | no_license | Jincheng-Sun/CFSC | 99c92a1c82dfda091dc8f53d22766caa26b03ef4 | 5edf6b9a26c0a2a3cada6c678c55df56fc17cb42 | refs/heads/master | 2020-04-15T17:48:53.972825 | 2019-02-09T23:24:07 | 2019-02-09T23:24:07 | 164,888,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,935 | py | from Assesment.model_adaptor import IModelAdaptor
import json
from itertools import cycle
import matplotlib.pyplot as plt
import numpy as np
from keras import models
from scipy import interp
from sklearn.metrics import roc_curve, auc, confusion_matrix, classification_report
from sklearn.metrics import accuracy_score
fr... | [
"sjc951213@gmail.com"
] | sjc951213@gmail.com |
8ee5ae8c26e969ee2e1a8b19f27845b19c6cca17 | 772fd399a088a0c4bcf453a1a44345744d5f34d6 | /15654.py | b1b3457cb926f8985b8dfd7668a3bf823d313281 | [] | no_license | hybae430/Baekjoon | 91e6b7bd72bac2c5f200d1c1d857c770a0f090aa | a7b6f7fde794d461b0dfad31daa75182b1b110d0 | refs/heads/master | 2023-01-02T01:08:37.744926 | 2020-10-24T17:25:12 | 2020-10-24T17:25:12 | 304,783,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # N과 M(5)
import sys
N, M = map(int, sys.stdin.readline().split())
arr = list(map(int, sys.stdin.readline().split()))
arr = sorted(arr)
visited = [False] * N
out = [] # 출력 내용
results = []
def solve(depth, N, M):
if depth == M: # 탈출 조건
a = ' '.join(map(str, out)) # list를 str으로 합쳐 출력
results.appe... | [
"violet9643@naver.com"
] | violet9643@naver.com |
043961a5fc5c63432f7e8db343ad564b3e4c7f53 | b6d935a2b88d989bd7d64f9b3634a4a13611f27f | /apps/mac/mac_gui_client/windows/personal_pkey_dialog.py | f6b0be48639830e396f33e1bf4990391e7fa5a15 | [] | no_license | drambol/Mozy-Client-Automation | 026c11f2c030254699be643fcd5fa3db41bbb362 | 520b23b8078e715cc8af9b1de4de0c5723b2547e | refs/heads/master | 2021-04-03T06:52:24.500570 | 2018-03-14T02:22:30 | 2018-03-14T02:22:30 | 125,142,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python
#
# Copyright (c) DELL EMC, Inc. All rights reserved.
# For more information, please see the COPYRIGHT file in the top-level
# directory.
#
# Stewards: Christine Gong
from apps.mac.mac_lib.mozy_ui_element import MacMozyUIBase, Element
class Personal_Key_Dialog(MacMozyUIBase):
"""
descr... | [
"ken.xu@emc.com"
] | ken.xu@emc.com |
5e4ee197cb5db36a39233cd1ff90653d4efb6aa2 | f9369134d8d12e4b542e5529d4283abbda76c07e | /moveElementToEnd.py | 074761ff93dead38d485adf8f329057ccd858f78 | [] | no_license | yash921/leetcode-questions | 10fdaae874075ddb20331ccbf39dd82d10a9bb11 | f3fa3d3b5843a21bb86f91711105ae2751373e9c | refs/heads/main | 2023-03-27T01:28:13.986142 | 2021-03-20T06:23:40 | 2021-03-20T06:23:40 | 349,645,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 19 18:56:30 2020
@author: yash
"""
#Leetcode Problem - 283. Move Zeroes
#Solution - Best Solution
def moveElementToEnd(array, toMove):
i = 0
j = len(array) - 1
while i < j:
while i < j and array[j] == toMove:
j -= 1
... | [
"yashdixit921@gmail.com"
] | yashdixit921@gmail.com |
133e836ed67616abfe6f819df78e90013a9d5efa | a1730de4b50c17ecd388a995a1526c2eab80cb7d | /Plugins/Aspose-Cells-Java-for-Jython/asposecells/WorkingWithWorksheets/PageBreakPreview.py | 54c97b7f7f01231643ef8ffe14993440c7cde35e | [
"MIT"
] | permissive | aspose-cells/Aspose.Cells-for-Java | 2dcba41fc99b0f4b3c089f2ff1a3bcd32591eea1 | 42d501da827058d07df7399ae104bb2eb88929c3 | refs/heads/master | 2023-09-04T21:35:15.198721 | 2023-08-10T09:26:41 | 2023-08-10T09:26:41 | 2,849,714 | 133 | 89 | MIT | 2023-03-07T09:39:29 | 2011-11-25T13:16:33 | Java | UTF-8 | Python | false | false | 816 | py | from asposecells import Settings
from com.aspose.cells import Workbook
class PageBreakPreview:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithWorksheets/PageBreakPreview/'
workbook = Workbook(dataDir + "Book1.xls")
#Adding a new worksheet to the Wor... | [
"fahadadeel@gmail.com"
] | fahadadeel@gmail.com |
bfe2b2d34530a15aef6270d95313ff350a944aab | 40bf8016b86d3869dbc694f12f99a8b4103ae41a | /eval_RN.py | 2f865c2e589806e8de0bfbc4522ecca63f72e73b | [] | no_license | lwj2018/islr-few-shot | 3bc8e71fca3bfa07ec57c01cac095587494a010b | 4ff900662ba16b402f6ccda032d022f527873c1a | refs/heads/master | 2021-05-26T09:03:05.235782 | 2020-06-10T06:59:17 | 2020-06-10T06:59:17 | 254,068,609 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import os.path as osp
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from models.gcrHCN import gcrHCN
from models.RN import RN
from utils.ioUtils import *
from utils.trainUtils import train_mn_pn
from utils.testUtils import eval... | [
"lwj19970331@gmail.com"
] | lwj19970331@gmail.com |
a9f6879e961ee2a0d1db65cebcb7adc0e166edc6 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/ctypes/test/test_pep3118.py | 5afe2b2122014c11d410d2cc3ec0e8efc024f3da | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,102 | py | # 2016.05.01 15:29:11 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_pep3118.py
import unittest
from ctypes import *
import re, sys
if sys.byteorder == 'little':
THIS_ENDIAN = '<'
OTHER_ENDIAN = '>'
else:
THIS_ENDIAN = '>'
OTHER_ENDIAN = '<'
def normalize(format):
... | [
"info@webium.sk"
] | info@webium.sk |
3d33cd23d617f692c0e6738b5fa9e5359bfcfb06 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/gYearMonth/Schema+Instance/NISTXML-SV-IV-list-gYearMonth-minLength-2-3.py | 92652a724c696c659b914e0dc363b3d515eba016 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 566 | py | from output.models.nist_data.list_pkg.g_year_month.schema_instance.nistschema_sv_iv_list_g_year_month_min_length_2_xsd.nistschema_sv_iv_list_g_year_month_min_length_2 import NistschemaSvIvListGYearMonthMinLength2
from xsdata.models.datatype import XmlPeriod
obj = NistschemaSvIvListGYearMonthMinLength2(
value=[
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
869e38e808c0f84921ee45980a29775955d95370 | e268832c9a5ecd465851347fc870ccf92e073309 | /Top_100_Liked_Questions/19._Remove_Nth_Node_From_End_of_List/solution.py | 1af0f386b0bda11d3e3f399eea3355ff1dd5d4c6 | [] | no_license | hkim150/Leetcode-Problems | a995e74ecca6b34213d9fa34b0d84eea649f57c2 | 1239b805a819e4512860a6507b332636941ff3e9 | refs/heads/master | 2020-12-04T08:06:42.981990 | 2020-10-03T00:20:29 | 2020-10-03T00:20:29 | 231,688,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
# two pointer with constant gap method
dummyHead = ListNode(0, head)
... | [
"hkim150@illinois.edu"
] | hkim150@illinois.edu |
17edf84b4b16e50b58e117b406b824c764e68495 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GL/NV/draw_texture.py | fc22a16082fe34b4f893b9eeee7a1ce5afc71b2e | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 710 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
aeceb71a51613f6ece9eed0c6f44f90b98c55e5e | 28a124b6a2f22a53af3b6bb754e77af88b4138e1 | /DJANGO/mastertodjangoadmin/app/models.py | 7cd756001877ed756628fa46c0b196f2b3e68103 | [] | no_license | mebaysan/LearningKitforBeginners-Python | f7c6668a9978b52cad6cc2b969990d7bbfedc376 | 9e1a47fb14b3d81c5b009b74432902090e213085 | refs/heads/master | 2022-12-21T03:12:19.892857 | 2021-06-22T11:58:27 | 2021-06-22T11:58:27 | 173,840,726 | 18 | 4 | null | 2022-12-10T03:00:22 | 2019-03-04T23:56:27 | Python | UTF-8 | Python | false | false | 1,442 | py | from django.db import models
from djgeojson.fields import PointField # 3rd party kütüphaneler sayesinde gelen field
class Category(models.Model):
name = models.CharField(max_length=100)
is_active = models.BooleanField(default=True)
def __str__(self):
return self.name
class Meta:
verbo... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
f4088ba3551d75ea8afde8092d05d5c7bfdcb007 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/52/usersdata/78/22518/submittedfiles/matriz1.py | 8ce0e1a133dd5e508be6a7692c5ba6bc788ba0c5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def menorcoluna(a):
for j in range(0,a.shape[1],1):
for i in range(0,a.shape[0],1):
if a[i,j]==1:
return j
def maiorcoluna(a):
for j in range(0,a.shape[1],1):
for i in range(0,a.shape[0],1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b6a261b0532c85618eb2ff4a0ba451619f4a34c1 | 444c7275448111a096984d872b7a301520f3643e | /projects/tf_np_thread_matmul.py | 2fff992b7b36d9d00ec86cdead546bef9110073b | [] | no_license | chinchangkuo/MLclass | 2f16ee0364f3d94aebf89116b4b6ed5279c97319 | 0d4bb6566e3126aa54b5d8723015d823db453193 | refs/heads/master | 2021-07-24T10:53:18.708562 | 2017-11-03T22:46:57 | 2017-11-03T22:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | import numpy as np
from numba import jit
import tensorflow as tf
import time
import sys
from threading import Thread
from queue import Queue
# parameters ===================
tot_mat = 500
mat_size = (2000,2000)
tot_thread=6
# generator ====================
np.random.seed(1)
# numpy ====... | [
"pipidog@gmail.com"
] | pipidog@gmail.com |
6188c5949f9c515f96f7774859641126f05757cb | 04a77043cebd9415069aad4a6b8e7af077de1168 | /2-python_opp/day04/exmple/with.py | f89f92f907c7a4f8b87763e90f2e32a3ed827701 | [] | no_license | yangxiangtao/biji | a935fbc4af42c81205900cb95a11e98c16d739de | 5c5f46e6c145fc02ea10b7befdc05c489fc3b945 | refs/heads/master | 2022-11-12T02:25:51.532838 | 2019-04-02T01:22:12 | 2019-04-02T01:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # with.py
# try:
# # f = open('a.txt','rt')
# with open('a.txt','rt') as f:
# for line in f:
# print(line,end='')
# except:
# print('文件操作失败')
class A:#自定义资源管理器
def __init__(self,name):
self.name = name
def __enter__(self):
print("__enter__语句被执行")
return... | [
"123@bb.com"
] | 123@bb.com |
e44fa3642e2378079802d6204dbb6928a90949d4 | 9244eaedc761bd9cc26243f5884fb054c3dbc932 | /webdemo/urls.py | 44f8923e2a461ddbb9a4e25713d2239c5dedb829 | [] | no_license | srikanthpragada/WEBDEMO_PYTHON_11_NOV_2019 | 51e1705f4ed1fd5754a49a97314deee4ae3ed925 | 9a9bc763a1af37d3fa5b2f6429b4caa0aed9975a | refs/heads/master | 2020-11-25T20:45:39.159377 | 2019-12-28T14:25:05 | 2019-12-28T14:25:05 | 228,838,083 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """webdemo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
388e6af3c611bdbe8611e947b0c1d86a96e192bb | 9bcf722780efec7994bebe2bb476b0784b0a353a | /42-Trapping-Rain-Water/solution.py | 93a5bcb964aab8226b7cabe5dd53429e0a95e150 | [] | no_license | wenjie1070116/Leetcode | a1429810513276b845bfb36284bd747308c015b3 | 5f5791b1e7eefa0205cbb6cb8ae2d5320ffcd916 | refs/heads/master | 2020-04-06T06:50:23.762233 | 2016-08-19T19:36:15 | 2016-08-19T19:36:15 | 58,875,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
n = len(height) if height else 0
if n < 2: return 0
Max = 0
for i in xrange(1, n):
if height[i] > height[Max]:
Max = i
left ... | [
"wenjie1070116@gmail.com"
] | wenjie1070116@gmail.com |
5b505ab5a0d15d4767b51e051ef36ab6432c708c | 7247c340764145b329779fe045546e4fdc0679b5 | /blog/models.py | 97b5ac22e710ed9e60154bdbc5505ff4dd062224 | [] | no_license | abhigyan98/my-first-blog | 5df9bb679440b9796aaf5ec552c3372c9950133a | 65b5a14a086796ef2dc0eb561440101849f0ab76 | refs/heads/master | 2021-07-04T11:33:03.509344 | 2017-09-23T10:52:31 | 2017-09-23T10:52:31 | 104,081,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.db import models
# Create your models here.
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
pub... | [
"you@example.com"
] | you@example.com |
2644424641c25bdfca7e16cd598426f2cf2fd931 | d52cb4c2e880875944b14da0b8a9542235942ac8 | /geeksforgeeks/linked_list/23_Merge_K_sorted_linked_lists_pending.py | 8f3568bc35e09245c2d0f0137d6ea44e1204e461 | [] | no_license | saparia-data/data_structure | fbd61535b68f92143b2cb2679377c0f56f424670 | 2e8700cfdaeefe0093e5b4fb2704b1abcd300d02 | refs/heads/master | 2023-05-08T18:54:52.250941 | 2021-06-04T05:44:29 | 2021-06-04T05:44:29 | 296,071,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | '''
Given K sorted linked lists of different sizes. The task is to merge them in such a way that after merging they will be a single sorted linked list.
Input:
First line of input contains number of testcases T. For each testcase,
first line of input contains number of linked lists N and next line contains data of no... | [
"saparia.ashvin@tavant.com"
] | saparia.ashvin@tavant.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.