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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3c3350d331393ea83eede2ee19ca9d984c1bfd0 | 589385876626ffdf0e3a960a191eed9b90fa6eb2 | /trunk/aztk/web/user_homepage.py | 0caf42cd3ffc7a4a1681b32a784c6440e5ed2011 | [
"BSD-3-Clause"
] | permissive | BGCX261/zoto-server-svn-to-git | bb7545852bd52d6626f3b2b9c0b1d5834eb08201 | 73abf60264ae5a6b610d19e25be833f0754b160e | refs/heads/master | 2021-01-21T23:04:02.366636 | 2015-08-25T15:16:12 | 2015-08-25T15:16:12 | 41,602,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | """
dyn_pages/user_homepage.py
Author: Trey Stout
Date Added: ?
User homepage. Also the starting point for all user interior pages.
"""
## STD LIBS
## OUR LIBS
from zoto_base_page import zoto_base_page
from dyn_image_handler import dyn_image_handler
from user_albums import user_albums
from user_galleries import us... | [
"you@example.com"
] | you@example.com |
7e19b1f65c28d7e8d33d9f9df1406f25cab5200c | fb652a77dd6dba0c971ac052271e1e03ff7c0d6e | /settings/migrations/0008_auto_20181113_0656.py | 9d9fe0d0ca6b8a4d8782e2b78f2ff35543fb2503 | [] | no_license | ryosuwito/mt-commerce | 5fa8419650d8c089bc8baf75322389141b4522af | 90359dada36ab903dbf30f3ab6616a3c4ed3f655 | refs/heads/master | 2022-12-11T05:22:31.037960 | 2019-03-07T10:59:58 | 2019-03-07T10:59:58 | 169,371,940 | 0 | 0 | null | 2022-12-08T01:21:07 | 2019-02-06T07:56:27 | HTML | UTF-8 | Python | false | false | 592 | py | # Generated by Django 2.0.8 on 2018-11-13 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('settings', '0007_auto_20181113_0655'),
]
operations = [
migrations.AlterField(
model_name='footerlink',
name='addr',... | [
"ryo@ryolaptop.ryosuwito.com"
] | ryo@ryolaptop.ryosuwito.com |
1055e5be5726757fa80bb3ebe93883dab06b38ae | f8ca9769a359795dc649c46e299cd9b3bfca1864 | /forum/spiders/cancer_cancerforums_spider.py | f3a2c67fe128c84d117d7c3248a56d9a73bcdde2 | [] | no_license | florencefantine/ehealth_scraper | d4093a67543f653de200e6610eaaf65842aa322f | 886ed12d0a605584796dea11b532883c1e86d09a | refs/heads/master | 2021-01-10T11:39:58.270130 | 2015-11-24T22:09:34 | 2015-11-24T22:09:34 | 45,852,359 | 1 | 6 | null | 2015-11-24T20:52:28 | 2015-11-09T16:51:54 | Python | UTF-8 | Python | false | false | 3,237 | py | # -*- coding: utf-8 -*-
import scrapy
import hashlib
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors import LinkExtractor
from scrapy.selector import Selector
from forum.items import PostItemsList
import re
from bs4 import BeautifulSoup
import logging
import string
imp... | [
"joyce@selfcarecatalysts.com"
] | joyce@selfcarecatalysts.com |
9618d0ea8bcd0e39563734aa75c10cfbf72a6dde | bbd69601912a3361d788efd03a47f9d4e3bac09e | /unittests/test_propgriddefs.py | ba6c67748213bd2fab4de8c1bcd982fff4d23034 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 1,278 | py | import unittest
from unittests import wtc
import wx
import wx.propgrid as pg
#---------------------------------------------------------------------------
class propgriddefs_Tests(wtc.WidgetTestCase):
def test_propgriddefs1(self):
pg.PG_INVALID_VALUE
pg.PG_DONT_RECURSE
pg.PG_BASE_OCT
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
6038afd572bebeb6555821f05e0710b04f59d809 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/wllgar015/question3.py | 73caabd33916af860b5d886602e949a64214f59d | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | #question 3
message=input("Enter the message:\n")
repeat=eval(input("Enter the message repeat count:\n"))
frame=eval(input("Enter the frame thickness:\n"))
def awesome(message, repeat, frame):
#Frame 1 is two characters greater than the input string
#Printing the string messages would work quite well.
#Th... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
dc11c2a9a91ce330d48bdf58adb1905e8abc7e5f | 219b7903ad9b16acb4790f561952021e60f23abe | /giftexchange/admin.py | 671384fdd7635bf9f0761dcda08bdcce3a118864 | [] | no_license | astromitts/gifterator3000 | 40663de82526ef874c05d9385f53e6c2e3cb1625 | 64a8c420eb7b729c96861aa430f7f15cbe499d3d | refs/heads/master | 2023-01-28T06:47:09.110323 | 2020-12-04T01:43:53 | 2020-12-04T01:43:53 | 293,815,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.contrib import admin
from giftexchange.models import (
GiftExchange,
Participant,
AppUser,
ExchangeAssignment,
AppInvitation,
MagicLink
)
class ParticipantInline(admin.TabularInline):
model = Participant
fields = ['appuser']
class GiftExchangeAdmin(admin.ModelAdmin):
inli... | [
"morinbe@gmail.com"
] | morinbe@gmail.com |
ed6deb8cf63883ec1dce2f0f037fd6877ffbaea1 | c8c9278ffb74da44789b310540693c66468b998c | /shop/urls.py | 87f494b760e5ec8a18cf0fe7c69c724930fc0633 | [] | no_license | danielspring-crypto/ekit | bdfcec4b2ce8e36bb9e692f7a825bfce0bbf4166 | 560f6fa5522e1cb4a2cf30325b2b1b07beceea3d | refs/heads/main | 2023-01-28T00:20:22.058791 | 2020-12-07T08:33:06 | 2020-12-07T08:33:06 | 319,253,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from django.urls import path
from .import views
app_name = 'shop'
urlpatterns = [
path('', views.product_list, name='product_list'),
path('<slug:category_slug>/', views.product_list, name='product_list_by_category'),
path('<int:id>/<slug:slug>/', views.product_detail, name='product_detail'),
] | [
"borncode3@gmail.com"
] | borncode3@gmail.com |
1f44b4b6d3e46f04b442fb65029b4ba093647a51 | 9ae936a9689832a5b22cd12998c5dc5047aee164 | /December_2020/December_2020/5_dec_2020/test.py | b410a47a0763433f3d18e060eca479c4c3ca3919 | [] | no_license | inderdevkumar/2020-Python-Projects | 218320335f352dc340877d1ef62b65605ce4ccfd | 210154d092021d8de5f30797af9ad8e193e3c68e | refs/heads/master | 2023-02-04T08:47:05.952342 | 2020-12-25T15:33:27 | 2020-12-25T15:33:27 | 322,878,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | #===================== Function Defination to check prime numbers=================================
from itertools import count, islice
primes = (n for n in count(2) if all(n % d for d in range(2, n)))
print("100th prime is %d" % next(islice(primes, 99, 100)))
#===================== Function Defination to Euler of ... | [
"id0102yadav@gmail.com"
] | id0102yadav@gmail.com |
3ba42d75b8d7773ba4b0b673f1dbbbdaf2f8c9ec | 4a41223e8c8ab33d83c6f213692c6097bb96540d | /eelbrain/_stats/permutation.py | b4e3ec6a2a339c793de3982c33ed7a8d87dbda5e | [
"BSD-3-Clause"
] | permissive | rbaehr/Eelbrain | 33ceeee24533581ab3e7569c31e0f6a6c6dfcda1 | 6301dc256e351fdbb58bbe13ab48fde7bfcf192a | refs/heads/master | 2021-07-05T19:19:20.573231 | 2017-10-03T04:35:23 | 2017-10-03T04:35:23 | 104,907,464 | 0 | 0 | null | 2017-09-26T16:03:20 | 2017-09-26T16:03:20 | null | UTF-8 | Python | false | false | 6,505 | py | # Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
from itertools import izip
from math import ceil
import random
import numpy as np
from .._data_obj import NDVar, Var
from .._utils import intervals
_YIELD_ORIGINAL = 0
# for testing purposes, yield original order instead of permutations
def _resample_params... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
01ebc7eb291e960ec42d8dc23255d61ec4d1af5c | 71a28d4bc1c0f32dc9185332ba2142ba823d3e53 | /core/urls.py | b9dba265ed605e2da34c2ae8c0cdaf56b88c141d | [] | no_license | ekeydar/train_stops_map | 51b1e3a86967851ea16f2e822867f881b91d24fe | acbc1a1a250ca6c3e7f5dde8932301bd4b67c96d | refs/heads/master | 2016-09-12T21:17:13.771035 | 2016-05-27T12:54:46 | 2016-05-27T12:54:46 | 59,438,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^stops/$', views.StopList.as_view(), name='stops'),
url(r'^stops/(?P<pk>\d+)/$', views.StopDetail.as_view(), name='stop'),
]
| [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
ec6e6ad22ab5a96295739ceb492638e945ef5cdd | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/dossier/upgrades/to4303.py | 0a0901f85458945e5a68304d5dff1c762b0b9236 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 964 | py | from ftw.upgrade import ProgressLogger
from ftw.upgrade import UpgradeStep
from opengever.dossier.templatedossier import TemplateDossier
from plone import api
from zope.event import notify
from zope.lifecycleevent import ObjectModifiedEvent
class MigrateTemplateDossierClass(UpgradeStep):
def __call__(self):
... | [
"david.erni@4teamwork.ch"
] | david.erni@4teamwork.ch |
f898bc011b7d9345fbef96b0f970ceb599a3409a | 6f1d57238f3b395b04696a16768bcc507f00630c | /A_Comparing_Strings.py | 283a2e89d3cfcd5b5fe35998a4154d040395da59 | [] | no_license | FazleRabbbiferdaus172/Codeforces_Atcoder_Lightoj_Spoj | 024a4a2a627de02e4698709d6ab86179b8301287 | 6465e693337777e7bd78ef473b4d270ce757a3a2 | refs/heads/master | 2023-07-01T06:32:14.775294 | 2021-07-27T17:07:37 | 2021-07-27T17:07:37 | 271,202,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import sys
s1 = list(input())
s2 = list(input())
d1, d2 = dict(), dict()
miss = 0
if len(s1) != len(s2):
print("NO")
sys.exit(0)
for i in range(97, 97+26):
d1[chr(i)] = 0
d2[chr(i)] = 0
for i in range(len(s1)):
d1[s1[i]] += 1
d2[s2[i]] += 1
if s1[i] != s2[i]:
miss +=... | [
"noreply@github.com"
] | FazleRabbbiferdaus172.noreply@github.com |
213d25bf84577a6d3302247cb04c2a0af37c66c0 | 1abd2d4fe2f01584bf0aab44d7e98e76f7280f9f | /setup.py | 5f1ae46c490365023591c75ca903926ea2fd28c3 | [] | no_license | yychuang/GenIce | b370c046cb4eec134ab80f7faa36aeb00f52786e | 80b836df7208be3d830bd276924a0a91635eded7 | refs/heads/main | 2023-06-06T18:24:23.242385 | 2021-06-28T08:57:25 | 2021-06-28T08:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
import os
import codecs
import re
# Copied from wheel package
here = os.path.abspath(os.path.dirname(__file__))
#README = codecs.open(os.path.join(here, 'README.txt'), encoding='utf8').read()
#CHANGES = codecs.open(os.path.join(here, 'CHANGES.txt'), e... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
83e984bf7313b99dd2e24c39e24640b35d45e344 | a2706c66c4f2769c00fc5f67e1a85742cfa7e17c | /WebSocket/Handle/console.py | 71d912effb8fa4a6b590eaf8e05ac2ba4968e4fc | [
"BSD-3-Clause"
] | permissive | Jeromeyoung/viperpython | 48800312dcbdde17462d28d45865fbe71febfb11 | ba794ee74079285be32191e898daa3e56305c8be | refs/heads/main | 2023-09-01T18:59:23.464817 | 2021-09-26T04:05:36 | 2021-09-26T04:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,131 | py | # -*- coding: utf-8 -*-
# @File : console.py
# @Date : 2021/2/26
# @Desc :
from Lib.configs import RPC_FRAMEWORK_API_REQ
from Lib.log import logger
from Lib.method import Method
from Lib.rpcclient import RpcClient
from Lib.xcache import Xcache
class Console(object):
def __init__(self):
pass
@stati... | [
"yu5890681@gmail.com"
] | yu5890681@gmail.com |
c03381a3eb66d32c05604a2226fbaea846f8e98c | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/dbm.py | ac53fcf86f8ad981eb28108dc15d60478a2542de | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # encoding: utf-8
# module dbm
# from /usr/lib64/python2.6/lib-dynload/dbm.so
# by generator 1.136
# no doc
# no imports
# Variables with simple values
library = 'GNU gdbm'
# functions
def open(path, flag=None, mode=None): # real signature unknown; restored from __doc__
"""
open(path[, flag[, mode]]) -> map... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
f2d88ede145a55a634404601a3248fdd20b69f0c | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/perso/stat.py | 376ea04b6dc9b0fedb3545626465b19dc441e1d2 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# 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
# lis... | [
"kredh@free.fr"
] | kredh@free.fr |
eebaf1cc5939bf3397f44b7abae4b3301b3f9927 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cc/huaweicloudsdkcc/v3/model/update_network_instance_request_body.py | ccb6925b1dca4650bfa9c81651ceef569cd52c3e | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,407 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateNetworkInstanceRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ke... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6ff299c2cc6c8b9893253d3ebe9d3ea491400c72 | 60be3894ad491bde502b8f6909a026ee115d952e | /aiosmb/network/tcp.py | 3da2e5cbc315e7cbcfde7804212c83c4942ef225 | [] | no_license | topotam/aiosmb | 7c97c6a9806c84a9fae28fa372cc6903fa6ec0c5 | e2ece67bbf380f576b154b09ea5fd63d9b4ecf4c | refs/heads/master | 2023-06-25T17:41:03.605226 | 2021-07-27T18:31:12 | 2021-07-27T18:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | import enum
import asyncio
from aiosmb import logger
from aiosmb.commons.exceptions import *
class TCPSocket:
"""
Generic asynchronous TCP socket class, nothing SMB related.
Creates the connection and channels incoming/outgoing bytes via asynchonous queues.
"""
def __init__(self, socket = None, target = None):
... | [
"info@skelsec.com"
] | info@skelsec.com |
482928edaa2e06cd3b7bed4f4eaec7daf1bdda60 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/esphome/domain_data.py | 01f0a4d6b1369b6f6908d943c821bb3805e59e57 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,885 | py | """Support for esphome domain data."""
from __future__ import annotations
from dataclasses import dataclass, field
from typing import TypeVar, cast
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.json import JSONEncoder
from homeassistant.he... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
5a1ed0cd70c637628613bcdc2591471ce0eebf24 | b3c8678c1db0b3e256de97e560d7d4d26c1dd6eb | /src/jpl.mcl.site.sciencedata/src/jpl/mcl/site/sciencedata/testing.py | 4325448b2a43549da50926c2e47a4028a8f43d2d | [
"GPL-2.0-only",
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | MCLConsortium/mcl-site | e4a127235504e7ac5575ef3d73c8fd1bdf02824b | 5eb9c16a7fe322192a03461a9f22ecb8c17307fd | refs/heads/master | 2021-06-09T23:49:35.775652 | 2021-04-30T22:59:59 | 2021-04-30T22:59:59 | 49,965,919 | 1 | 0 | Apache-2.0 | 2020-08-25T15:58:27 | 2016-01-19T16:24:58 | Python | UTF-8 | Python | false | false | 1,896 | py | # encoding: utf-8
from plone.app.testing import PloneSandboxLayer, IntegrationTesting, FunctionalTesting, PLONE_FIXTURE
from . import PACKAGE_NAME
import pkg_resources, urllib2, urllib, httplib, plone.api
class TestSchemeHandler(urllib2.BaseHandler):
u'''A special URL handler for the testing-only scheme ``testsc... | [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
d555da4df0ff92fad94428138c04e5725366861c | 47542e6b98c19592f44ce44297771c698d4987f7 | /ch09/09_08.py | 42a496a958555522889a656ddd4e96b4f567131b | [
"Apache-2.0"
] | permissive | sharebook-kr/book-cryptocurrency | 235b6998668265ec804451afddd245a52824f51a | 847ba97ba096c257b35f5e507cd33fa6a0724860 | refs/heads/master | 2022-12-14T05:24:52.765589 | 2022-11-30T01:35:08 | 2022-11-30T01:35:08 | 128,632,349 | 162 | 141 | Apache-2.0 | 2022-11-30T01:35:09 | 2018-04-08T11:05:17 | Python | UTF-8 | Python | false | false | 301 | py | import websockets
import asyncio
async def bithumb_ws_client():
uri = "wss://pubwss.bithumb.com/pub/ws"
async with websockets.connect(uri) as websocket:
greeting = await websocket.recv()
print(greeting)
async def main():
await bithumb_ws_client()
asyncio.run(main()) | [
"brayden.jo@outlook.com"
] | brayden.jo@outlook.com |
9a4b55c49ddbd6bf15ee9f95c0e49e1c0aa461d2 | 0c7e54178e89a4dad98deb8265c2cb41ca3399b9 | /backend/strawberry_forms/tests/test_mutations.py | 470971ab95ea4f9bf7f8c47ae52ac75af4feafda | [
"MIT"
] | permissive | marlenebDC/pycon | 4394bf7a0aecc5aa8ae0b378900d86c2afc7fab7 | 175f2ee9e8698bbcf15dd33d2eb4739fee04c6d7 | refs/heads/master | 2023-07-07T00:34:39.932779 | 2020-01-21T01:00:24 | 2020-01-21T01:00:24 | 235,290,754 | 0 | 0 | MIT | 2023-06-23T23:35:11 | 2020-01-21T08:30:15 | null | UTF-8 | Python | false | false | 1,670 | py | import strawberry
from django.forms import Form, IntegerField
from strawberry_forms.mutations import FormMutation
def test_form_mutation_without_context():
class TestForm(Form):
a = IntegerField()
def save(self, *args, **kwargs):
return "hello"
class TestMutation(FormMutation):
... | [
"marcoaciernoemail@gmail.com"
] | marcoaciernoemail@gmail.com |
225c14407e2eba431953f219ed8ecc4582a965c5 | 8b54570140861ffbe464e244f9f49ba55e341577 | /linux/ovirt-guest-tray.py | cdc740419735bb0eb6c99bfa8f3a70c09adf3c55 | [
"Apache-2.0"
] | permissive | vinzenz/ovirt-guest-agent-tray | 36569d149b7082e8129fbe5c462869bfeb8bf779 | 581a73f3ff4431a6a17f6ff9bc3d64f2b23ff586 | refs/heads/master | 2016-09-06T07:41:07.988384 | 2014-07-30T13:55:46 | 2014-07-30T13:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | #!/usr/bin/env python
import gtk
class TrayIcon:
def __init__(self, *args, **kwargs):
self.icon = gtk.StatusIcon()
self.icon.set_from_file('ovirt-icon-48.svg')
self.icon.connect('popup-menu', self.on_popup_menu)
def on_about(self, *args, **kwargs):
dlg = gtk.Dialog("About the ... | [
"vfeenstr@redhat.com"
] | vfeenstr@redhat.com |
d5cab9a4b1e7e1be3cf13dddebae13f6a4066b74 | 1d9a6406c859fda186f520bb4472c551fc572c7b | /src/hopla/hoplalib/zoo/petcontroller.py | b5f9e7d0243348d6b233bab73bbf200a2f76e11e | [
"Apache-2.0"
] | permissive | rickie/hopla | af21b794ce6719d402721550e1ee4091790410b6 | 24a422194e42c03d5877dc167b2b07147326a595 | refs/heads/main | 2023-08-13T17:33:03.612293 | 2021-10-12T12:13:25 | 2021-10-12T12:13:25 | 408,538,704 | 0 | 0 | Apache-2.0 | 2021-09-20T17:30:15 | 2021-09-20T17:30:15 | null | UTF-8 | Python | false | false | 2,211 | py | """
A module for performing feeding Pet HTTP requests.
"""
from typing import NoReturn, Optional, Union
import requests
from hopla.hoplalib.http import HabiticaRequest, UrlBuilder
from hopla.hoplalib.zoo.feed_clickhelper import get_feed_data_or_exit
from hopla.hoplalib.zoo.zoofeed_algorithms import FeedPlanItem
cla... | [
"31448155+melvio@users.noreply.github.com"
] | 31448155+melvio@users.noreply.github.com |
e1461c6411425ee974d36267c209f92b7be55c59 | f6188c0c27da8d2507e832908ba9de524f0b907d | /client_speed_test.py | b23314ac7daa63ea09593b18003d1800d1583546 | [] | no_license | lforet/repfibdigit | df1df2fe2ba40ede9662120ea94f7d529f5d4abc | 945ce755fd2526a1a3e242b909b93a79ac4e65fb | refs/heads/master | 2021-01-10T08:43:11.123781 | 2018-12-21T05:32:45 | 2018-12-21T05:32:45 | 8,490,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | #!/usr/bin/python # This is client.py file
#System modules
import os
import time
import itertools
import cPickle as pickle
import numpy as np
#import cProfile
import timeit
import uuid
import sys
import fib
########################################################################
pgbreak = "------------... | [
"laird@isotope11.com"
] | laird@isotope11.com |
00db2c8c3ed972b7163d98736f55e12ede747a2c | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577538_Poor_Man_unit_tests/recipe-577538.py | a085b12780b5428ff89dbdb43e8d9d754e602175 | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 3,834 | py | #! /usr/bin/env python
######################################################################
# Written by Kevin L. Sitze on 2010-12-03
# This code may be used pursuant to the MIT License.
######################################################################
import sys
import traceback
from types import FloatType, ... | [
"betty@qburst.com"
] | betty@qburst.com |
294780ff7ab60dc91677fc1d89295b77c146b850 | 4a53aba78d55247e185d8cef5e2a1f8892ae68be | /learn_python/08.jpype.py | 13917ac8e31a1518b4553ebf02a516bd1b6ee5af | [] | no_license | axu4github/Learn | 665bb8ddd2eb420a0e7bc3d1ff68f66958936645 | 2eb33b5a97f1730e3f774b80e3b206c49faa2228 | refs/heads/master | 2023-01-22T15:49:53.260777 | 2018-10-25T15:21:56 | 2018-10-25T15:21:56 | 61,703,577 | 1 | 0 | null | 2023-01-12T08:23:28 | 2016-06-22T08:46:46 | JavaScript | UTF-8 | Python | false | false | 664 | py | # encoding=utf-8
'''
Mac安装JPype
1. 下载 https://sourceforge.net/projects/jpype/ 最新版本
2. 解压,进入目录
3. 执行 sudo python setup.py install
若存在 `error: command 'clang' failed with exit status 1` 的问题
则需要在 setup.py 文件的 `self.includeDirs` 中添加 `"/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/"` 以便可以找到 `jni.h` 等头文件。
具... | [
"axu.home@gmail.com"
] | axu.home@gmail.com |
746b0c743ffb8d49b2ff71cf870102d7d7279481 | 5cea76d53779d466f19a5cf0b51e003586cc4a7b | /py4ops/getip.py | e2bbe141b3b44d2c61828b6bf996715b6e854f17 | [] | no_license | evan886/python | 40152fdb4885876189580141abe27a983d04e04d | d33e996e93275f6b347ecc2d30f8efe05accd10c | refs/heads/master | 2021-06-28T12:35:10.793186 | 2021-05-26T14:33:40 | 2021-05-26T14:33:40 | 85,560,342 | 2 | 1 | null | 2017-10-11T05:31:06 | 2017-03-20T09:51:50 | JavaScript | UTF-8 | Python | false | false | 599 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
import socket
import fcntl
import struct
def get_ip_address(ifname):
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
return socket.inet_ntoa(fcntl.ioctl(
s.fileno(),
0x8915, # SIOCGIFADDR
struct.pack('256s', ifname[:15])
)[20:24])
pri... | [
"evan886@gmail.com"
] | evan886@gmail.com |
be3cab903221403283dcb433087d1d2770b819c1 | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /SipopPolicyImg/SipopPolicyImg/settings.py | dc0ee7131688caeaf0e766dc8fe3b44d9a87787e | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 2,169 | py | # Scrapy settings for SipopPolicyImg project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/topics/settings.html
#
SPIDER_MODULES = ['SipopPolicyImg.spiders']
NEWSPIDER_MODULE = 'SipopPolicyImg.spiders'
ROBO... | [
"34021500@qq.com"
] | 34021500@qq.com |
09b541231ca7b26b86b963b1d56d20ded60d96a8 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_ConstantTrend/cycle_12/ar_/test_artificial_128_Anscombe_ConstantTrend_12__100.py | 90590116d599656197e31e656d41ca810bd1f95f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 12, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
62476df0b7f7d2e336afdd3147f644b538346cf3 | 6e9c127bd6705a8b92f240ca663163504b86cd81 | /elecsim/reinforcement_learning/__init__.py | c81092b6f862e68895065cc1c34baacd81f097c9 | [
"MIT"
] | permissive | alexanderkell/elecsim | 239ffd539d1b04f24186ddaae20ac4ce6b258c03 | df9ea14cbc8dd3fd4302be9274cb6ea61c0cdb10 | refs/heads/master | 2023-04-06T10:03:35.367411 | 2023-04-05T16:52:16 | 2023-04-05T16:52:16 | 124,561,430 | 36 | 10 | MIT | 2022-12-08T01:57:45 | 2018-03-09T15:55:53 | Jupyter Notebook | UTF-8 | Python | false | false | 229 | py | """
File name: __init__.py
Date created: 01/03/2019
Feature: #Enter feature description here
"""
__author__ = "Alexander Kell"
__copyright__ = "Copyright 2018, Alexander Kell"
__license__ = "MIT"
__email__ = "alexander@kell.es"
| [
"alexander@kell.es"
] | alexander@kell.es |
2b8a2244e4e8b8f8a97d5cbe7d0d579cd8508d15 | bc1525a4e85e49829ccbf7cfc9db6881790fa3a7 | /pyUbiForge/ACU/type_readers/788BAA0D.py | cf65a21e511965a7960ee2750c94202ea6eb269d | [] | no_license | christianbethel1993/ACExplorer | 5183228c1c1beb5d7a3c768f5c8345e00e38f82f | f343de8925e0ca08aff7d2719c5e885dc3e503ac | refs/heads/master | 2023-03-26T13:57:15.390140 | 2019-07-02T12:05:23 | 2019-07-02T12:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from pyUbiForge.misc.file_object import FileObjectDataWrapper
from pyUbiForge.misc.file_readers import BaseReader
class Reader(BaseReader):
file_type = '788BAA0D'
def __init__(self, file_object_data_wrapper: FileObjectDataWrapper):
for _ in range(4):
for _ in range(4):
file_object_data_wrapper.read_float_... | [
"james_clare1@yahoo.co.uk"
] | james_clare1@yahoo.co.uk |
1ccbc85a8f20324d99f2b2eb30db1d21ed445f07 | 1f51c4e89a71ea3fcc2cc921613aacc19e078b69 | /16_Cleaning Data in Python [Part - 1]/02_Text and categorical data problems/06_Removing titles and taking names.py | e3da04a5987946e045f113e8723ed5864fb6283b | [
"MIT"
] | permissive | CodeHemP/CAREER-TRACK-Data-Scientist-with-Python | 871bafbd21c4e754beba31505965572dd8457adc | 13ebb10cf9083343056d5b782957241de1d595f9 | refs/heads/main | 2023-03-26T08:43:37.054410 | 2021-03-22T15:08:12 | 2021-03-22T15:08:12 | 471,015,287 | 1 | 0 | MIT | 2022-03-17T13:52:32 | 2022-03-17T13:52:31 | null | UTF-8 | Python | false | false | 1,407 | py | '''
06 - Removing titles and taking names
While collecting survey respondent metadata in the airlines DataFrame,
the full name of respondents was saved in the full_name column. However
upon closer inspection, you found that a lot of the different names are
prefixed by honorifics such as "Dr.", "Mr.", "Ms." and "Miss... | [
"ifaizymohd@gmail.com"
] | ifaizymohd@gmail.com |
3cd902ce5209b6c7863f07b1602b49859de1031e | 4d2475135f5fc9cea73572b16f59bfdc7232e407 | /prob224_basic_calculator.py | e775df1d9d3e1655e6652d7439cd899e9757ac9c | [] | no_license | Hu-Wenchao/leetcode | 5fa0ae474aadaba372756d234bc5ec397c8dba50 | 31b2b4dc1e5c3b1c53b333fe30b98ed04b0bdacc | refs/heads/master | 2021-06-24T04:57:45.340001 | 2017-06-17T02:33:09 | 2017-06-17T02:33:09 | 45,328,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | """
Implement a basic calculator to evaluate a simple expression string.
The expression string may contain open ( and closing parentheses ),
the plus + or minus sign -, non-negative integers and empty spaces .
You may assume that the given expression is always valid.
Some examples:
"1 + 1" = 2
" 2-1 + 2 " = 3
"(1+(... | [
"huwcbill@gmail.com"
] | huwcbill@gmail.com |
78cc2c0e6ce7233a114f720346695cd17917852a | f6c051b15e29fbf1501499d5551c0d9237da0852 | /order/migrations/0008_auto_20210108_0304.py | 8fa64fe7e7a2df8ee6ded7dac0bf581c23033732 | [] | no_license | Deepjyoti13/eCommerce | 8e672d2c4b6f708ef4ac1b66521ce72d2fe2cc39 | b0745b8c3a410f7ee8182496c556229748fd3265 | refs/heads/master | 2023-02-25T04:00:47.068320 | 2021-01-24T19:21:13 | 2021-01-24T19:21:13 | 321,396,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 3.1.4 on 2021-01-07 21:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0007_order_tracking'),
]
operations = [
migrations.AlterField(
model_name='order',
name='status',
... | [
"deepjyotide13@gmail.com"
] | deepjyotide13@gmail.com |
f1c57d57d4175a117e64f2370c9b2da75032aefd | 5cea76d53779d466f19a5cf0b51e003586cc4a7b | /project/chapter29squish/config.py | c0a9c78f74009e17e69d5662bf33698d71ab2bc1 | [] | no_license | evan886/python | 40152fdb4885876189580141abe27a983d04e04d | d33e996e93275f6b347ecc2d30f8efe05accd10c | refs/heads/master | 2021-06-28T12:35:10.793186 | 2021-05-26T14:33:40 | 2021-05-26T14:33:40 | 85,560,342 | 2 | 1 | null | 2017-10-11T05:31:06 | 2017-03-20T09:51:50 | JavaScript | UTF-8 | Python | false | false | 713 | py | # Configuration file for Squish
# -----------------------------
# Feel free to modify the configuration variables below to taste.
# If the game is too fast or too slow, try to modify the speed
# variables.
# Change these to use other images in the game:
banana_image = 'banana.png'
weight_image = 'weight.png'
splash... | [
"evan886@gmail.com"
] | evan886@gmail.com |
9fcb80ebf6ba49d19469342df5512714fae0445e | c7cbbd4b1c1e281cef5f4a0c4e3d4a97cee2241e | /froide/accesstoken/views.py | f7bfb75707d18ad131e30d2a36f10fd8cc21fc26 | [
"MIT"
] | permissive | manonthemat/froide | 078cf78a6eb35226512c0bdfa2ac9043bcc81ad9 | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | refs/heads/master | 2020-08-14T08:19:36.215473 | 2019-10-14T19:43:16 | 2019-10-14T19:43:16 | 215,129,869 | 0 | 0 | MIT | 2019-10-14T19:35:49 | 2019-10-14T19:35:49 | null | UTF-8 | Python | false | false | 669 | py | from django.views.decorators.http import require_POST
from django.utils.translation import ugettext_lazy as _
from django.contrib import messages
from froide.helper.utils import render_403, get_redirect
from .forms import ResetTokenForm
@require_POST
def reset_token(request):
if not request.user.is_authenticate... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
990b85fea581c3710a827f71f87d0f2bc9447d5f | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/4.2/lib/python2.7/site-packages/robot/libraries/dialogs_py.py | 252b6948049aa0b01ab2f54bdf4e68c57aabb39a | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,703 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
35dfe86db227e3ebcc4020419a9b458da4804d07 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_8/models/quota_setting_response.py | 911d109050831d4426d6f40b7851420fcdcd0f2a | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,181 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.8, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
605cceafb7745578da0e5040c7db03dccc5e5ffc | c5b69745b12ad36241fa792af44480eb70918cb0 | /ibis/tests/expr/test_literal.py | d43226d69d94263d4b54d263c8d01711f06d49e2 | [
"Apache-2.0"
] | permissive | vishalbelsare/ibis | bdbfde79086b268f4592cde009e0ffa52ece97e6 | 3fd6afb223fa442ccd0d9db69a74a431d5e7bcca | refs/heads/master | 2023-08-16T16:23:00.535467 | 2021-11-23T15:33:35 | 2021-11-23T15:33:35 | 141,067,229 | 0 | 0 | Apache-2.0 | 2021-11-29T20:12:43 | 2018-07-16T00:06:27 | Python | UTF-8 | Python | false | false | 1,388 | py | import ibis
from ibis.expr import datatypes
from ibis.expr.operations import Literal
from ibis.tests.util import assert_pickle_roundtrip
def test_literal_equality_basic():
a = ibis.literal(1).op()
b = ibis.literal(1).op()
assert a == b
assert hash(a) == hash(b)
def test_literal_equality_int_float()... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
ae33e5e64e5edcb987ff8edd262f7a45e2a61f7b | 48c4dda8fbecb5bc9506eb0a318508c9a9f37aca | /deep learning from scratch.py | e10c1b2aa591751efd915dc08f92debac8407696 | [] | no_license | bigeyesung/DLkaggle | f59e8e2fdac430fd5e97cfc67e63c837a8b12cee | f57b10740b206ecff1bcbfdc7d4436ac8dcac28d | refs/heads/master | 2023-07-05T22:16:03.042595 | 2021-08-07T15:48:54 | 2021-08-07T15:48:54 | 262,594,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | import numpy as np
from sklearn.model_selection import train_test_split
from tensorflow import keras
img_rows, img_cols = 28, 28
num_classes = 10
def prep_data(raw):
y = raw[:, 0]
out_y = keras.utils.to_categorical(y, num_classes)
x = raw[:,1:]
num_images = raw.shape[0]
out_x = x.reshape(num_... | [
"sungchenhsi@gmail.com"
] | sungchenhsi@gmail.com |
9cdfc43db870a09854c65404a963963d2cb4b43d | bbf744bfbfd9a935bd98c7cf54152a5d41194161 | /chapter_15/die_visual.py | d9629d134497d4af77867b78e009e95a6471a52b | [] | no_license | terranigmark/python-crash-course-projects | 65a7863be2d26fe8b91ac452b12203386eb0259a | 79ed9ed8e6a1bf015990a9556689379274231d13 | refs/heads/master | 2022-12-05T21:59:00.352140 | 2020-08-21T04:59:50 | 2020-08-21T04:59:50 | 266,263,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from plotly.graph_objs import Bar, Layout
from plotly import offline
from die import Die
# create a D6
die_1 = Die()
die_2 = Die(10)
# make some rolls and store results in a list
results = []
for roll_num in range(50_000):
result = die_1.roll() + die_2.roll()
results.append(result)
# analyze the results
fre... | [
"linnk99@gmail.com"
] | linnk99@gmail.com |
cc0f68e8359cb95579b7d20bc6c3581cdc712cbd | 5e5e99e8493fbef64847494caf059c910c03c823 | /arrays/palindromic-substrings.py | b398b82336fa0371d58df3ab24c16dec63daf978 | [] | no_license | jcockbain/leetcode-python | f4e487b13ae4cacef9cbedfd4358f8ee0006e2b8 | d7f83ea5a11e4c8340c48698d29aa3bc0b942121 | refs/heads/master | 2020-07-09T19:58:42.933881 | 2019-10-28T23:34:34 | 2019-10-28T23:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | def countSubstrings(self, s):
"""
:type s: str
:rtype: int
"""
N = len(s)
ans = 0
for center in range(2*N - 1):
left = center / 2
right = left + center % 2
while left >= 0 and right < N \
and s[left] == s[right]:
ans += 1
left -... | [
"james.cockbain@ibm.com"
] | james.cockbain@ibm.com |
0ba3ed98a522196a66863cdd0ce816654065b1b2 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/web/server/src/simcore_service_webserver/db_listener/plugin.py | a4fda5b69bdff33c6386eee2e702f5c74e8bbb01 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 870 | py | """
computation module is the main entry-point for computational backend
"""
import logging
from aiohttp import web
from servicelib.aiohttp.application_setup import ModuleCategory, app_module_setup
from ..db.plugin import setup_db
from ..projects.db import setup_projects_db
from ..rabbitmq import setup_rabbitmq
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
2671fbfa345590729a83bef8261428be9a1bf018 | f8d5c4eb0244c4a227a615bc11c4c797760c3bec | /utils/rldraw.py | 2e944f936c3ad5ea6d074a6f0f9d74759cdd0c70 | [] | no_license | SamPlvs/reinforcement_learning_pytorch | e9b84659f870d938814177f1288fa4a2eb152599 | ffb9e53eeff011c4d3d5933a60c2b65fdbb18e2a | refs/heads/master | 2020-03-23T04:08:51.778325 | 2018-01-16T22:36:48 | 2018-01-16T22:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import matplotlib.pyplot as plt
import numpy as np
def reward_episode(rewards, image_path, env_name='', method_name='', comment=''):
reward_list = rewards
total_num = np.shape(reward_list)[0]
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(list(range(total_num)), reward_list)
ax.set_xlabel... | [
"kebai0624@gmail.com"
] | kebai0624@gmail.com |
5a75b3e5fcce03f7bd10d309196f67bdbc85c252 | 1d641f71f7aab082ed0b3ee805d6ff24b012ca2d | /ecommerce/carts/urls.py | aacdcfc353ac76fe4c2a60b52d83aa8708090caa | [] | no_license | Arkajit-m18/django-mca-major-project | 3d63ac96cd32c49e9a95629a680c5b0b7561cbd3 | 59b6f39d923a7e134bbb4bbb769bc06721321760 | refs/heads/master | 2020-05-18T00:31:44.435948 | 2019-05-15T15:23:21 | 2019-05-15T15:23:21 | 184,065,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from django.urls import path
from . import views
app_name = 'carts'
urlpatterns = [
path('', views.cart_home, name = 'cart_home'),
path('update/', views.cart_update, name = 'cart_update'),
path('checkout/', views.checkout_home, name = 'checkout'),
path('checkout/success/', views.checkout_done, name =... | [
"arkajit.18@gmail.com"
] | arkajit.18@gmail.com |
ca0d04658eb03c43a7dceddf7338d8c1f5cd372f | 346cf248e94fe97ba9c0a841827ab77f0ed1ff20 | /experiments/kdd-exps/experiment_DynaQtable_130_Feb14_0029.py | efabd8516978796f715bed1b20adcd12deaf5f2b | [
"BSD-3-Clause"
] | permissive | huangxf14/deepnap | cae9c7c654223f6202df05b3c3bc5053f9bf5696 | b4627ce1b9022d4f946d9b98d8d1622965cb7968 | refs/heads/master | 2020-03-26T02:54:01.352883 | 2018-08-12T01:55:14 | 2018-08-12T01:55:14 | 144,429,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | # System built-in modules
import time
from datetime import datetime
import sys
import os
from multiprocessing import Pool
# Project dependency modules
import pandas as pd
pd.set_option('mode.chained_assignment', None) # block warnings due to DataFrame value assignment
import lasagne
# Project modules
sys.path.append('... | [
"liujingchu@gmail.com"
] | liujingchu@gmail.com |
6fdc3db5b428914f4813bf4199befece5ed7563e | df4a7c46c46d1eca6570493b9707bdf64e54f8d3 | /py/209.minimum-size-subarray-sum.py | adaf3f0e6093c8efaad3d2fbdcb5fae7fb66b2a1 | [] | no_license | CharmSun/my-leetcode | 52a39bf719c507fb7032ed424fe857ba7340aea3 | 5325a56ba8c40d74d9fef2b19bac63a4e2c44a38 | refs/heads/master | 2023-03-29T06:39:49.614264 | 2021-03-28T16:33:52 | 2021-03-28T16:33:52 | 261,364,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | #
# @lc app=leetcode id=209 lang=python3
#
# [209] Minimum Size Subarray Sum
#
# @lc code=start
from typing import List
class Solution:
# 双指针移动
def minSubArrayLen(self, target: int, nums: List[int]) -> int:
if not nums:
return 0
left = 0
right = -1
sum = 0
l... | [
"suncan0812@gmail.com"
] | suncan0812@gmail.com |
09228ae64537dd9fb78fcabb808a96dacec36126 | 2ab391bfaadf0743da8ffee084896b999e88482d | /wx.py | a2bd1358136ac0530889f2fe820be14236fd42ec | [] | no_license | wean/coupon-windows | 552a59637ea45539bdfa70c6d1bd04626f0fdbd0 | 9565b23c7f44594f182d7a268d4ed45bdeaf8dd3 | refs/heads/master | 2020-04-05T07:11:43.024665 | 2017-11-24T08:23:50 | 2017-11-24T08:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,676 | py | # -*- coding:utf-8 -*-
import random
import itchat
import time
from schedule import Schedule
from search import SearchingKeyRegex
from special import Searcher
from utils import getProperty, randomSleep, reprDict
class WX(Schedule):
def __init__(self, configFile):
Schedule.__init__(self, configFile)
... | [
"974644081@qq.com"
] | 974644081@qq.com |
beead89528382b978348836d26fab1b78be43800 | 26e4bea46942b9afa5a00b9cde9a84f2cc58e3c9 | /pygame/Astar/implementation.py | 4965fc01f99a6ab2206ed2468d00869b3bb21107 | [] | no_license | MeetLuck/works | 46da692138cb9741a913d84eff6822f107510dc7 | ab61175bb7e2ed5c5113bf150e0541ae18eb04c4 | refs/heads/master | 2020-04-12T05:40:25.143075 | 2017-08-21T17:01:06 | 2017-08-21T17:01:06 | 62,373,576 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,781 | py | # Sample code from http://www.redblobgames.com/pathfinding/
# Copyright 2014 Red Blob Games <redblobgames@gmail.com>
#
# Feel free to use this code in your own projects, including commercial projects
# License: Apache v2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>
from __future__ import print_function
class Sim... | [
"withpig1994@hanmail.net"
] | withpig1994@hanmail.net |
bbbb9c609651e91e3a3c15c139ff1b5813c22879 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil2333.py | c971dffe1465e621fa1a309de3e74ac9949af7f2 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | # qubit number=4
# total number=29
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += CNOT(0,3) # number=14
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fbddef4b9d48e173fddbe92424567a8926db63a3 | 94c7440e7f1d2fdbe4a1e26b9c75a94e49c14eb4 | /leetcode/303.py | 3e11c0d02ea85837838c1abfd9fcbb8f9d209292 | [
"Apache-2.0"
] | permissive | windniw/just-for-fun | 7ddea4f75cf3466a400b46efe36e57f6f7847c48 | 44e1ff60f8cfaf47e4d88988ee67808f0ecfe828 | refs/heads/master | 2022-08-18T09:29:57.944846 | 2022-07-25T16:04:47 | 2022-07-25T16:04:47 | 204,949,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | """
link: https://leetcode.com/problems/range-sum-query-immutable
problem: 离线计算数组区间和
solution: 转存 sum[:i]
"""
class NumArray:
def __init__(self, nums: List[int]):
self.s = [0 for _ in range(len(nums) + 1)]
for i in range(1, len(nums) + 1):
self.s[i] = self.s[i - 1] + nums[i - 1]
... | [
"windniw36@gmail.com"
] | windniw36@gmail.com |
150ada0104f487967baa8037bdf9800d1d660c71 | d10c5d3603e027a8fd37115be05e62634ec0f0a5 | /13_Machine-Learning-with-Tree-Based-Models-in-Python/13_ex_1-12.py | 8bc8ee02a70ea444f217bbab5bc0d3c2c3a249c6 | [] | no_license | stacygo/2021-01_UCD-SCinDAE-EXS | 820049125b18b38ada49ffc2036eab33431d5740 | 027dc2d2878314fc8c9b2796f0c2e4c781c6668d | refs/heads/master | 2023-04-29T01:44:36.942448 | 2021-05-23T15:29:28 | 2021-05-23T15:29:28 | 335,356,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # Exercise 1-12: Linear regression vs regression tree
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.tree import DecisionTreeRegressor
from sklearn.metrics import mean_squared_error as MSE
SEED = 3
df = pd.read_csv('input/auto.c... | [
"stacy.gorbunova@gmail.com"
] | stacy.gorbunova@gmail.com |
f13dd503a9b25ec0cf197860872374891737e452 | 24c84c5b93cd816976d370a99982f45e0d18a184 | /ArraysProblem/Python/FindAllNumbersDisappearedinAnArray.py | 25420fb3ce55ce8bdb7c4beb3f9a49d0977405c8 | [] | no_license | purushottamkaushik/DataStructuresUsingPython | 4ef1cf33f1af3fd25105a45be4f179069e327628 | e016fe052c5600dcfbfcede986d173b401ed23fc | refs/heads/master | 2023-03-12T13:25:18.186446 | 2021-02-28T18:21:37 | 2021-02-28T18:21:37 | 343,180,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | class Solution:
def findDisappearedNumbers(self, nums):
lst = []
if not nums:
return lst
m = max(nums)
for i in range(len(nums)):
print(i)
if i+1 in nums:
continue
else:
lst... | [
"purushottamkaushik96@gmail.com"
] | purushottamkaushik96@gmail.com |
ce59e45ee8cddd99cedd8e16aefcff92641a326a | 8214e7369f2b86f19602eaffe9e8072f336391bb | /tasks.py | e4ab65a9167e0813e7287c98ba19959386973525 | [
"BSD-3-Clause"
] | permissive | pydev-git/cookiecutter_flask_docker | 27dc47e69a957bd89aeb76db13cc0a08897cd467 | 0bbe0f366d0d8d914b02518c94f5ff75d03386b5 | refs/heads/master | 2021-06-01T11:30:30.912658 | 2016-07-27T08:05:18 | 2016-07-27T08:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Invoke tasks."""
import os
import json
import shutil
from invoke import task, run
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp:
COOKIECUTTER_SETTINGS = json.load(fp)
# Match default value of app_nam... | [
"sloria1@gmail.com"
] | sloria1@gmail.com |
e06215fdfb4e2456cf5f6f26ef24b108051d7371 | cd9eb87e3e1b04e6f421377eff02514de05c98e2 | /learn_SciPy/scikit-learn/User Guide/1. Supervised learning/1.10. Decision Trees.py | 2e0907d0cc61331fa0146ca0c4f1677688f35028 | [] | no_license | zhaojinxi/learn_python | 45f116f9729bbf19d9bb4a574b06e0ec41f754dc | 07b4a5a231e39b6d2c28f98e99a3a8fe3cb534c4 | refs/heads/master | 2021-06-05T22:00:02.528023 | 2020-03-22T04:19:22 | 2020-03-22T04:19:22 | 129,857,802 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | import sklearn.tree
import sklearn.datasets
import graphviz
#1.10.1. Classification
X = [[0, 0], [1, 1]]
Y = [0, 1]
clf = sklearn.tree.DecisionTreeClassifier()
clf = clf.fit(X, Y)
clf.predict([[2., 2.]])
clf.predict_proba([[2., 2.]])
iris = sklearn.datasets.load_iris()
clf = sklearn.tree.DecisionTreeClassifier()
cl... | [
"super-string@outlook.com"
] | super-string@outlook.com |
ab37819178678efc8832a481c7d0f60c89cf7dfe | c27e78d35cdc802e4790280c384a0f97acf636ef | /src/rulesTest.py | c7cda2cbd1a74e52e447aefbc5576b0f6f3b5dc3 | [] | no_license | undersea/Special_Topic | 99e424d9e443523a4d880ef478455bb75d7c82cd | 7bf7ed2c92b864d99790b927965bad819bfb7cfb | refs/heads/master | 2020-03-25T04:01:26.909441 | 2011-05-30T03:26:53 | 2011-05-30T03:26:53 | 3,587,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from unittest import TestCase, main
from rules import Degree
class TestRules(TestCase):
def setUp(self):
print "setUp"
self.rules = Degree()
pass
def tearDown(self):
print "tearDown"
del self.rules
pass
def testAdd(self):
count = len(self.rules.rule... | [
"terrasea@gmail.com"
] | terrasea@gmail.com |
4698bbd10d6f9865b9e14c4ccd5f0c59b5bd7996 | 8f506513cb73d9bdb5dbdd9084aaba020b1efbea | /Course_1-Algorithmic_Toolbox/Week-1/Excercise_Challenges/2_maximum_pairwise_product/max_pairwise_product.py | 16ef706e59671dba4d782c766223be8cf322274f | [] | no_license | KhanAjmal007/Data-Structures-and-Algorithms-Specialization-Coursera | 1255ecf877ecd4a91bda8b85e9c96566fe6d5e4d | ab6e618c5d8077febb072091e80c16f5f1a15465 | refs/heads/master | 2023-03-21T04:18:04.580423 | 2020-07-11T07:18:06 | 2020-07-11T07:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def max_pairwise_product(numbers):
max1 = -999
max2 = -9999
for value in numbers:
if value > max1:
max2 = max1
max1 = value
elif value > max2:
max2 = value
return max1 * max2
if __name__ == '__main__':
input_n = int(input())
input_numbers = ... | [
"mokit.aust@gmail.com"
] | mokit.aust@gmail.com |
f2f4d6b715cc9b11ba5174b51906804ad1a1ca7e | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/external_updater/base_updater.py | 18d4435858c7a22b295ca26455f4abbaf44d16d4 | [] | no_license | 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 | 2,590 | py | # Copyright (C) 2018 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 required by applicable law ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
a85110d0091d407c2364cee12549f5de1adf8a07 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5744014401732608_0/Python/ArbokEkans/C.py | 413f74cc89b84cfd4dc8d0ba77d001600a4d53ea | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | def solve():
b, m = [int(i) for i in input().split()]
if m > 2**(b-2):
return "IMPOSSIBLE"
else:
graph = construct(b)
rep = bin(m)[2:][::-1]
if m == 2**(b-2):
for key in graph:
if key != b-1:
graph[key].append(b-1)
else:... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
36b479f0a4a7e4c24279afbf988d9396960305bd | 81a9840c702927b4ca9ef17b766064f1d3c9139d | /mantabot/apps/moderation/handlers/readonly.py | 212eafdce5f9d13f3499cb72f207fa73becc05d9 | [
"MIT"
] | permissive | spectras/mantabot | 58b2d996ccd359c7720006b87ab94db1ac07956f | 9b2de297d46224d66a84b8925e09cc209d8b37d4 | refs/heads/master | 2020-03-19T12:42:20.893443 | 2018-06-07T23:25:09 | 2018-06-07T23:25:09 | 136,534,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import discord
from mantabot.apps.moderation import service
class ReadOnly(object):
""" Simple plugin that deletes messages sent to some channels """
name = 'moderation.readonly'
def __init__(self, client):
self.client = client
async def on_message(self, message):
channel = message.c... | [
"julien@etherdream.org"
] | julien@etherdream.org |
18426ac763d7a141d3556b448fb271532e0d54af | 3c3095585c075002b707475b49bdd8d8c7d4b71d | /InvenTree/InvenTree/urls.py | d9600333f4698fcd539486876a45dfd4ae42af04 | [
"MIT"
] | permissive | andyseracuse/InvenTree | ffa7c0a2d131b363c0b93c2d888a9a89c0048bf7 | c5166ec845ffe9477ab488931775dcdfd1dce7e7 | refs/heads/master | 2022-06-08T12:54:11.522718 | 2020-04-20T09:30:58 | 2020-04-20T09:30:58 | 258,296,796 | 0 | 0 | MIT | 2020-04-23T18:33:12 | 2020-04-23T18:33:11 | null | UTF-8 | Python | false | false | 4,211 | py | """
Top-level URL lookup for InvenTree application.
Passes URL lookup downstream to each app as required.
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from qr_code import urls as qr_code_urls
from company.urls import company_urls
... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
8fddcccf8a50a7b00db56be3a20a3f31347fac88 | 82d588161a8f8cd27c3031c779120ea4380791b9 | /yejin/삼성 SW 역량 테스트 기출 문제/2021 하반기/13458.py | 0e77a2dfcaf4b39f4e2dc3fcea152240ebab6c5f | [] | no_license | Yejin6911/Algorithm_Study | 3aa02a7d07169382a78c049d1de8251a52da816c | 98c968bfeed17ab6b62e3a077280e0310f08190a | refs/heads/master | 2023-09-01T00:31:07.212413 | 2021-10-24T07:56:21 | 2021-10-24T07:56:21 | 345,009,057 | 1 | 1 | null | 2021-09-20T13:08:33 | 2021-03-06T04:57:34 | Python | UTF-8 | Python | false | false | 343 | py | import sys
import math
input = sys.stdin.readline
n = int(input())
A = list(map(int, input().split()))
B, C = map(int, input().split())
total = n
# 총감독관 감시 인원 제외
for i in range(n):
if A[i] <= B:
A[i] = 0
else:
A[i] -= B
# 부감독관 인원 계산
total += math.ceil(A[i]/C)
print(total)
| [
"cdjin6911@gmail.com"
] | cdjin6911@gmail.com |
a0fb061548bfd69cb764cc4823ae29227aa804a6 | 0e8ab63a60fd03b1778aa392c0b11fedd88409e4 | /ingest/ingest/manager.py | 8ed7b3d707ce64b45eb7b82fa5323c3a84a15a39 | [] | no_license | Kyeongrok/dms | babeb19115355c3d930c94c89ca55d3e5de2dc55 | a67c446f0ffd3f9a1812de961ef915c405a4096f | refs/heads/master | 2021-06-23T22:44:18.881538 | 2019-09-26T03:42:13 | 2019-09-26T03:42:13 | 210,993,619 | 0 | 0 | null | 2021-03-25T22:57:32 | 2019-09-26T03:41:24 | Python | UTF-8 | Python | false | false | 2,747 | py | import abc
import logging
import os
from dmsclient.client import DMSClient
from dmsclient.exceptions import DMSClientException
from ingest import util
from ingest.logger import ElasticsearchHandler, JournalFormatter
class AbstractIngestManager(abc.ABC):
def __init__(self, config, mount_path, reader_id, cartridge... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1d3aa6d35106c3460d100c2156236cc0871312ec | fc5becca3e2e48a444b512e059df1cd21601829b | /Aulas/Aula19A.py | 4d8089077e3bdd14ae5f3b3b6ced29a4100d4556 | [
"MIT"
] | permissive | Felix-xilef/Curso-de-Python | c44bf8c22b393aefaed3a2bb3127ef7999e27fb8 | cdff7c7f3850e6326e274c8c1987b9e1a18ce910 | refs/heads/master | 2021-05-19T11:09:22.644638 | 2020-04-01T22:09:02 | 2020-04-01T22:09:02 | 251,665,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Dicionários {} / dict() - como uma lista, porém o indice pode ser definido (key)
pessoas = {'nome': 'Felix', 'sexo': 'm', 'idade': 18}
print(pessoas)
print(pessoas['nome'])
print(pessoas['idade'])
print(pessoas.values())
print(pessoas.keys())
print(pessoas.items())
for k, v in pessoas.items():
print(k, '=', v)
d... | [
"felixpb@yahoo.com.br"
] | felixpb@yahoo.com.br |
c4b90c1495df475c554108312c8e2a94b88ee10d | ef66e297a49d04098d98a711ca3fda7b8a9a657c | /Python/display.py | 1b280e0ad29c46c1e08530191b08e20ef0df52eb | [] | no_license | breezy1812/MyCodes | 34940357954dad35ddcf39aa6c9bc9e5cd1748eb | 9e3d117d17025b3b587c5a80638cb8b3de754195 | refs/heads/master | 2020-07-19T13:36:05.270908 | 2018-12-15T08:54:30 | 2018-12-15T08:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # coding: UTF-8
__metaclass__ = type
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import random
import socket
i = 0
winId = 0
s = None
poses = []
SIZE = [800, 600]
clear = True
def Draw():
global poses
global clear
glEnable(GL_POINT_SMOOTH)
if clear:
glClear(GL_C... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
e57f6351bc13444d18ec9ae6b667d6e3d4b37ed4 | a7e75fcd05aa8ebf2066c4eb0a05496042dd5ded | /better_work_data/better_work_data/items.py | ab7aeb32e62a563ca44dce609a18c2de91fd0b79 | [
"MIT"
] | permissive | JackDan9/miniProgram | d6fe14fced0f9a154d01a6f950ab26325ed445de | d60a33275334b4caa3c15d5c6196938fb800505b | refs/heads/master | 2023-02-10T13:26:23.453536 | 2023-01-09T03:41:43 | 2023-01-09T03:41:43 | 132,235,452 | 1 | 0 | MIT | 2023-02-08T00:42:41 | 2018-05-05T09:55:32 | JavaScript | UTF-8 | Python | false | false | 515 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class BetterWorkDataItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
order = scrapy.Field()
title = scrapy.Field()
s... | [
"1835812864@qq.com"
] | 1835812864@qq.com |
dc52624b745e24996b18b3d581240cefcbe6d403 | 04934bc61ceab01ad24ab1672461a1b103884e91 | /ssh/sshconn_002.py | da12bca4af6f78377d324cb95c618bfe4ad0dab7 | [] | no_license | aiedonline/aulapentest | 05f31d0410493f02361fe778ab02d584aa84ef5e | 1dd28feb95941f49205af836c9013283b4cb6b99 | refs/heads/main | 2023-08-18T10:22:19.596876 | 2021-09-26T20:14:50 | 2021-09-26T20:14:50 | 402,219,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | #!/usr/bin/python
import sys;
from netmiko import Netmiko
ip = "11.11.11.171";
print("\033[1;33m[*] - SSH Bruteforce Attack", " \033[0;0m");
print("\033[1;33m[*] - SSH target", ip, " \033[0;0m");
with open("user.txt") as users:
users = users.readlines();
for user in users:
passwords_testados = [];
... | [
"yellow@battosai.yellow.dojo"
] | yellow@battosai.yellow.dojo |
6fdea119f9c9239b63eda3db6b7c2b1d0233e66d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02585/s776126936.py | 78cc9d2cac5fd2a3bfb611ed540139e54d721039 | [] | 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 | 2,175 | py | import sys
sys.setrecursionlimit(10**7)
readline = sys.stdin.buffer.readline
def readstr():return readline().rstrip().decode()
def readstrs():return list(readline().decode().split())
def readint():return int(readline())
def readints():return list(map(int,readline().split()))
def printrows(x):print('\n'.join(map(str,x)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e99b1b904a183481565ed38808f38f03702f4e60 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2739/60825/244336.py | 391935b7e27570792c33d23a3858845f5b95b823 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | res=[]
def printAns(currList, currSum, target, k):
if(currSum==target&&currList.size()==k):
res.append(currList)
return
elif currSum>target||currList.size()>k:
return
else:
for i in range(currList[len(currList)-1], 9):
t=currList[:]
t.append(i)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3e241bca87c1106e07b8d5ffd8e53da25cae808a | 8e1141fb8d9bf02d7e1c2fb887d66049d0860714 | /InvenTree/build/models.py | d09e7518785858212cb1d0f2ae5b953b0b916930 | [
"MIT"
] | permissive | ksanchezcld/InvenTree | 73ec392db5149814604e79690b465ae900af0c94 | ceea0533686305077c07c78ffa20ab4227ce2cf4 | refs/heads/master | 2023-02-28T10:07:02.741814 | 2018-05-12T02:44:29 | 2018-05-12T02:44:29 | 165,738,059 | 1 | 0 | MIT | 2023-02-11T19:31:42 | 2019-01-14T21:28:53 | JavaScript | UTF-8 | Python | false | false | 3,216 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from django.db import models
from django.core.validators import MinValueValidator
class Build(models.Model):
""" A Build object organises the creation of new parts from the component parts
It u... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
3b81da56caa93e61d28fabd2fb15cbe2d6049842 | af6feb644d2435e1d656556261e5e100209beb1c | /helper/show_pred.py | 3e501e41b0d01880007c112e02a8e8be86dcecf8 | [
"MIT"
] | permissive | liusida/TorchServe_FaceLandmark_Example | f2ca5d1e9cde2eed340ce46584a06cb0e16ef4ac | 1e854f2f82874255b59ca27b19d3a3254fe69636 | refs/heads/main | 2023-04-26T16:25:18.421724 | 2021-05-26T03:25:00 | 2021-05-26T03:25:00 | 370,864,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | import collections
import matplotlib.pyplot as plt
def show_pred(preds, input_img, only_2d=True, filename=None):
# 2D-Plot
plot_style = dict(marker='o',
markersize=4,
linestyle='-',
lw=2)
pred_type = collections.namedtuple('prediction_type', ['sl... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
b57127734749739690a92ea4af6da4fa3a1d9bd5 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2017_06_01/models/sku_py3.py | 8bb382d6481045d2cc41fe140e170b08d4bbffa6 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,319 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
daa712434a43b1506008cb02c38d0182d39483c2 | b9c55de2b21ca781ab5522da8a1db34ed55bd644 | /django-app/member/urls.py | cee47f79b216288c4dad0072c53238b1df7520be | [] | no_license | JeongEuiJin/model-wed-p | 04a8ed2aa8145a860e214c563fcebae9d7e39692 | 9fb987f5fe65c05825c519d6ef4bd4d802e0dccb | refs/heads/master | 2021-01-21T21:05:07.169721 | 2017-06-19T12:11:51 | 2017-06-19T12:11:51 | 94,772,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.student_list, name='student_list'),
url(r'^(?P<s_pk>\d+)/$', views.student_del, name='student_del')
]
| [
"hehar1020@gmail.com"
] | hehar1020@gmail.com |
e789385cd300ec837af0be820f02f87154600e1d | 8a4a4cab76ddf1b19a017c3e5c765caf9a5fe3cc | /test/test_remote_app_permission_update_user.py | 45ffee2297dddce630ab3389a4f5adc204e15ffc | [] | no_license | ibuler/testsdk | fa724ff129e2a6144c05b8330cd4014c8bfb9a58 | 015bc6ca7da64180a2a11756a4e7cce733aca806 | refs/heads/master | 2020-06-23T09:02:50.322517 | 2019-07-25T05:51:26 | 2019-07-25T05:51:26 | 198,577,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # coding: utf-8
"""
Jumpserver API Docs
Jumpserver Restful api docs # noqa: E501
OpenAPI spec version: v1
Contact: support@fit2cloud.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swag... | [
"ibuler@qq.com"
] | ibuler@qq.com |
2fafa7209aecd8c1e4b79ff259093980bd081564 | b9a73fe404ee30baf8a88276030363ad2d1d4cc5 | /old/BRNN_Gap/eval.py | d8cfef3415e874b7220fbd604a5df6822553a2ff | [] | no_license | everglowing/Language-Models | 06da6befceef9b4fd1f43ba7d6708fcf8862f715 | 67db3fc5d0b0ef099cac306bd78294764d3587cf | refs/heads/master | 2021-01-13T04:12:41.341299 | 2016-12-27T18:53:24 | 2016-12-27T18:53:24 | 77,684,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | from __future__ import print_function
import numpy as np
import tensorflow as tf
import argparse
import codecs
import time
import os
from six.moves import cPickle
from utils import TextLoader
from model import Model
from six import text_type
def main():
parser = argparse.ArgumentParser()
parser.add_argument... | [
"kalpeshk2011@gmail.com"
] | kalpeshk2011@gmail.com |
cedcb016825d6154f200e7ccfe1d53847c674bb6 | 9512f329d9326ed0b9436202947de9eee0c6c387 | /Cap07-estruturas_de_repeticao/for_03.py | dcfe65ac3989ce9551d9ca9f6b3a0ccdf9f82056 | [] | no_license | frclasso/CodeGurus_Python_mod1-turma1_2019 | 9fffd76547256ac480db41536223682a5b152944 | e34d60498ee45566dbf1182551d91250a9aab272 | refs/heads/master | 2020-04-30T02:01:50.757611 | 2019-06-10T15:38:58 | 2019-06-10T15:38:58 | 176,546,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # loop aninhado
lot_2D = [
['Toyota', 'Audi', 'BMW'],
['Lexus', 'Jeep'],
['Honda', 'Kia', 'Mazda']
]
#print(lot_2D[0][0]) # lista 0 , elemento 0 da lista 0
# for linha in lot_2D:
# for carro in linha:
# print(carro)
lot_3D =[
[
['Tesla', 'Fiat', 'BMW'],
['Honda', 'Jeep'... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
5ea3abe3100127da5d59957fa8e7d512baa17b7f | 9a7b7f90aa62ce52643e2df83d8aef7ba7803afd | /src/input_handlers/inventory_drop_handler.py | f467da4003f1c32e9ad309fed15c3b0a08d53594 | [] | no_license | voidnologo/tcod_roguelike | d82a060a94784a18156fefe105a3e26a540525e9 | 23d806f960134c17ccbd4e6ca5527f35e654df65 | refs/heads/main | 2023-02-28T11:05:52.809161 | 2021-02-07T16:36:38 | 2021-02-07T16:36:38 | 331,168,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import actions
from input_handlers.inventory_event_handler import InventoryEventHandler
class InventoryDropHandler(InventoryEventHandler):
"""
Handle dropping an inventory item
"""
TITLE = 'Select an item to drop'
def on_item_selected(self, item):
return actions.DropItemAction(self.engin... | [
"(none)"
] | (none) |
e5fc3b96e27fd580d60715aa2a9faae4dfa0113f | 7f7ba9fa96eb7741e3a7956aae439802376099d1 | /excel_sync/db/models/mixins.py | 27dc97215b789f0bf7f1c8a652037d36b68db776 | [
"BSD-3-Clause"
] | permissive | FriedrichK/django-excel-sync | bd34911960fab6580985378da7427f7823163bf7 | 3e649231dcdd26b29278dc2e9563ad0ab67d9f1c | refs/heads/master | 2021-01-02T14:46:34.420031 | 2014-04-21T09:59:47 | 2014-04-21T09:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from excel_sync.db.models.fields import SpreadsheetMixin
class SpreadsheetModelMixin:
@staticmethod
def import_spreadsheet_data(klass):
source = get_spreadsheet_datasource(klass)
fields_with_spreadsheet_metadata = get_fields_with_spreadsheet_metadata(klass)
field_settings = build_field... | [
"friedrich@cartogami.com"
] | friedrich@cartogami.com |
ff93f4c4e03c2723185097e82af8b56b2598c151 | 16be53c2dc4eee5602d3f7a38c599917009fb802 | /account/migrations/0002_remove_profile_address.py | 02e0e499ef82da7cbf16355972f4610131d12c84 | [] | no_license | surajit003/mubango | 35f37fb992782ae168a407922b494c3be0605e00 | 603e13cd07417d200330ca7292d9032af568a0b9 | refs/heads/main | 2023-03-28T07:59:57.967026 | 2021-03-27T09:34:46 | 2021-03-27T09:34:46 | 315,040,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Generated by Django 3.0.4 on 2021-01-12 21:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("account", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="profile",
name="address",
),
]
| [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
2398d673bdef1187105868a48ac3e87d4555d20f | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stdlib/mimetypes.pyi | 5a3ec91acbcdb71fb39f59656555c7233be0d66e | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 1,554 | pyi | import sys
from _typeshed import StrPath
from typing import IO, Sequence, Tuple
if sys.version_info >= (3, 8):
def guess_type(url: StrPath, strict: bool = ...) -> Tuple[str | None, str | None]: ...
else:
def guess_type(url: str, strict: bool = ...) -> Tuple[str | None, str | None]: ...
def guess_all_extensio... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
b4891a5b540f1bd8e420aa57dab3d7ec38f825b6 | 232d0a99df3ad03ce7811b4e96ebb6982cc0f865 | /aggregate.py | 396c21a0343add8ef7e949e48692f0f5f77f2ad8 | [] | no_license | tomalrussell/aggregation-case-study | 9e6db17e3a43f436dfce8cb84e608cb61b607239 | d23217d94e61d89043baffcfd157883fc474b8ae | refs/heads/master | 2020-06-23T03:46:44.340892 | 2016-11-24T11:23:43 | 2016-11-24T11:23:43 | 74,666,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | from __future__ import print_function
import argparse
from collections import namedtuple
import fiona
from shapely.geometry import shape
from rtree import index
def proportion_of_a_intersecting_b(a, b):
intersection = a.intersection(b)
return intersection.area / a.area
ShapeWithValue = namedtuple('ShapeWithVa... | [
"tomalrussell@gmail.com"
] | tomalrussell@gmail.com |
ba683fa2671b6bcd12fa5fce3c7356675c5f5a60 | db697271157368eb39ee9d9479d0c6a7eb9d06dd | /virtual/bin/easy_install | f22e90e735bfeae51bc3a727bc7716715ebadcd1 | [
"MIT"
] | permissive | amoskipz/instagram | 5edaf03fd784c44fb325dc9f294fab41acc7bc4c | 120e5ef1213567297689e04d5b8620508ce18fea | refs/heads/master | 2023-04-09T13:09:27.379801 | 2021-04-10T17:29:14 | 2021-04-10T17:29:14 | 352,740,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/moringa/Desktop/amoz/amosinstagram/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oduorthomas14@gmail.com"
] | oduorthomas14@gmail.com | |
0571f647ae3ab197917c302a532b8449f7afe44d | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /scripts/parse_pyi.py | d4b35524274e7a8a2fb6d2ba5b401434ca6486d5 | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 1,049 | py | import pathlib
import sys
from typed_ast import ast3
def add_parents(tree):
for node in ast3.walk(tree):
for child in ast3.iter_child_nodes(node):
child.parent = node # type: ignore
def find_enums(tree):
for node in ast3.walk(tree):
if not isinstance(node, ast3.Assign):
... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
59de5f4d684f1fcbb412201731cec5a17abe4081 | 08f42d68aaea64c986a532b86562365f2a6fe3b5 | /src/addlayouttable.py | 3e32ab12ae34fdcd43ccd0ad5cf36d01a2dfbff6 | [
"MIT"
] | permissive | sos82/micropython-microbit-v2 | da65da0c4ae8a3e2189bb598f75fec43d4628007 | a44573c623a9e935257c8db51a3f0c2e75ea10aa | refs/heads/master | 2023-07-19T07:03:40.101099 | 2021-09-11T15:13:42 | 2021-09-11T15:13:42 | 402,835,132 | 0 | 0 | MIT | 2021-09-11T15:13:43 | 2021-09-03T16:35:34 | null | UTF-8 | Python | false | false | 7,683 | py | #!/usr/bin/env python3
"""
Add a flash layout table to a hex firmware for MicroPython on the micro:bit.
Usage: ./addlayouttable.py <firmware.hex> <firmware.map> [-o <combined.hex>]
Output goes to stdout if no filename is given.
The layout table is a sequence of 16-byte entries. The last entry contains the
header (... | [
"damien@micropython.org"
] | damien@micropython.org |
67b2a9dd24d52509e01bfca824c18c8a25229ef6 | 52e2224538bfa7e69f9e0688dc49c53a247070d7 | /app/api/serializers/offers.py | 5a8539cca5bad81d59223205eb8855f955c825cc | [] | no_license | averdier/epsi_my_learning_chain_api | 2958f8ab6333e87f8b5d1a97f8d485361cdcba9d | ea85dced579f6285f3acd0edd0d64ead4f6f2332 | refs/heads/master | 2022-12-09T19:56:27.836637 | 2018-04-13T09:23:46 | 2018-04-13T09:23:46 | 129,227,310 | 1 | 0 | null | 2022-12-08T01:02:30 | 2018-04-12T09:32:18 | Python | UTF-8 | Python | false | false | 1,666 | py | # -*- coding: utf-8 -*-
from flask_restplus import fields
from .nested import facilitator_nested, api
offer_post_model = api.model('Offer POST model', {
'name': fields.String(required=True, min_length=4, description='Name'),
'tags': fields.List(fields.String(), required=False, description='Tags'),
'price... | [
"a.verdier@outlook.fr"
] | a.verdier@outlook.fr |
68bce261a32438af944cc7a39d301fd1bed0c9b1 | e260e72c6d8f24ef250173025b2ecf129960cf03 | /src/python/py27hash/key.py | 34b6e925ab62923b6e110a518a7371a6aa5cb145 | [
"MIT"
] | permissive | neuml/py27hash | 1cdce30b9480ff338ca0488c2d80a196fc783370 | 4d814de4ab616f33bb2d74c687e74fa57c399a56 | refs/heads/master | 2022-11-23T21:21:56.220330 | 2022-11-20T12:45:21 | 2022-11-20T12:45:21 | 223,510,843 | 11 | 3 | MIT | 2022-03-27T14:46:02 | 2019-11-23T00:57:33 | Python | UTF-8 | Python | false | false | 5,425 | py | """
Compatibility methods to support Python 2.7 style key iteration in Python 3.X+
This is designed for compatibility not performance.
"""
import ctypes
# pylint: disable = E0401
from .hash import Hash
class Keys(object):
"""
Compatibility class to support Python 2.7 style iteration in Python 3.X+
Logi... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
fc451ae5171ff6413eb5371ac7f7c792cf544866 | e874e3b4312b2beebaa42fa1489b50c618055190 | /venv/Lib/site-packages/onyx/core/datatypes/rdate.py | 96d0f5c2af82ec4900dac49253b490f6f1a8a386 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,973 | py | ###############################################################################
#
# Copyright: (c) 2015 Carlo Sbraccia
#
# 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:/... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
6828a845e8b4a33abe9c434db3f96ee98f8001fa | 36b624c0b7f0e691772f7521695c02f0709f9f89 | /day8.py | cc9d00263a5a71ed2da284db2e9df17031b7dd4f | [] | no_license | alex-huff/advent-of-code-2020 | 4ee30fdcd6b67aceb0c0fb919de9a18f61d9987c | 701cfcba1c952710c0bf0b9336f670141a9ac276 | refs/heads/main | 2023-02-02T13:51:37.722815 | 2020-12-22T01:32:21 | 2020-12-22T01:32:21 | 323,081,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | def getValueBeforeLoop(code):
acc = 0
pc = 0
executionSet = set()
finished = False
while True:
if pc == len(code) - 1:
finished = True
break
if pc in executionSet:
break
inst = code[pc][0]
value = code[pc][1]
executionS... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
301d507040d644d6ddc8e77d11c75c42c9c382f2 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/Contests/101Hack42/cutting_paper_squares.py | fc51e8c2e28f90db86021f38bf68df6bf3be5567 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/env python
import sys
# any way of cutting is minimal and uses n*m-1 cuts
n,m = map(int,sys.stdin.readline().split())
print n*m-1
| [
"blg@gmx.com"
] | blg@gmx.com |
300abebbed2333e357357a47e73f19850524efd9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/310/71048/submittedfiles/formula.py | ea9ddc63827097528e7fa6c3641fd8e29889c94f | [] | 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 | 208 | py | # -*- coding: utf-8 -*-
# STARTING
p = float(input('Digite o valor de p: '))
i = float(input('Digite o valor de i: '))
n = float(input('Digite o valor de n: '))
v = p*((((1+i)**n)-1)/i)
print ('%.2f' %v )
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
513c734e5f42fa3c0906eb3309cba7ef169d6c1b | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyLine_init.py | c4b6e6d09c91538afb94bb6ecf72091943ac25a9 | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # XXX Set a resource for the supply line inside a resource
parent_value = context.getParentValue()
if parent_value.getPortalType() in context.getPortalResourceTypeList():
context.setResourceValue(parent_value)
# Predicate ?
context.setMappedValuePropertyList([
'base_price', 'additional_price',
... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
2d157e6b043c49bbf4392ba1010da1ab43617f94 | 1698fe3ff15a6737c70501741b32b24fe68052f4 | /py-elasticsearch-django-master/spider/ESearch/spiders/haoyang_spider.py | a227d4b4b41603f8a992a695342ceb534df4a4bb | [] | no_license | menhswu/djangoapps | 4f3718244c8678640af2d2a095d20a405e337884 | 039a42aa9d1537e7beb4071d86bea7a42253d8b3 | refs/heads/master | 2023-03-04T03:56:01.070921 | 2021-01-28T07:35:02 | 2021-01-28T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | # -*- coding:utf-8 -*-
import scrapy
import re
import urllib2
from scrapy.http import Request
from scrapy import Selector
from ESearch.items import XiangmuItem
from ESearch.utils.common import get_md5
# 32406
class DmozSpider(scrapy.Spider):
name = "haoyang"
start_urls = []
main_url = "http:... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
44b3f8b9bf6336102b52df080e47ad6e0a0e1c8d | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/gyp/test/win/gyptest-quoting-commands.py | c6e3167e76c582ad10c5852afaa2c21f62439533 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 565 | py |
"""
Make sure batch files run as actions. Regression test for previously missing
trailing quote on command line. cmd typically will implicitly insert a missing
quote, but if the command ends in a quote, it will not insert another, so the
command can sometimes become unterminated.
"""
import TestGyp
import sys
... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
e60bc54cc535f4ab73531ba9f4f5eac45fce071c | 09145b3b07273e0e064a855cf2302220cebcf181 | /textwrap_ex.py | 95b08fe738e17f49e6c04d9e5cc134b0a91c315a | [] | no_license | 01x01/python3-standard-library | 7fa762a12cbcb3535bd8b31128bd9c3aed167e10 | 1af424a04d3f16abf1c6bc42abf80ae357e35920 | refs/heads/master | 2020-06-24T12:23:38.563609 | 2019-08-12T09:42:34 | 2019-08-12T09:42:34 | 168,808,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # coding: utf-8
# 文本段落格式化处理
# 主要功能: 类似文件编辑器覆盖或填充特性的编程功能
# 文本内容
sample_text = '''The textwrap module can be used to format text for output in
situations where pretty-printing is desired. It offers
programmatic functionality similar to the paragraph wrapping
or filling features found in many text editors.
... | [
"John.Wen@ehealth.com"
] | John.Wen@ehealth.com |
b741fb5ad71c5f866583c59b99471308f3687b26 | f3fb46ec8167c3d7e451265a76e1646aef78233f | /world/stat_checks/utils.py | 3d228a15fb3d369bed4b3c54c83fd1a965011308 | [
"MIT"
] | permissive | Arx-Game/arxcode | d1196941db4b551bb8ec96024241787cf4f34af3 | 363a1f14fd1a640580a4bf4486a1afe776757557 | refs/heads/stable_orphan | 2023-08-03T04:27:24.388330 | 2023-07-29T15:10:38 | 2023-07-29T15:10:38 | 144,421,010 | 52 | 45 | MIT | 2023-08-19T00:52:23 | 2018-08-11T22:06:07 | Python | UTF-8 | Python | false | false | 685 | py | """
Just a few utilities. Should NOT import anything in global scope to avoid
circular imports.
"""
def get_check_by_name(name: str):
"""
Convenience method to avoid worrying about circular imports when
fetching checks.
"""
from world.stat_checks.models import StatCheck
check = StatCheck.get_... | [
"surly.mime@gmail.com"
] | surly.mime@gmail.com |
e9f3f9f51a547f3f2aa65e33127282f566ad08a5 | 39b8aa964883b2bde4349e0c9c38e3233c310548 | /src/Implement Queue using Stacks.py | 421724c0e798d0e25106167e09fd34fd1f92ff3e | [] | no_license | orifake/leetcode-python | 053b82491e0b8d6197dd12d92eec5883211285db | 8e375ebebe0a0285efefc33ed61afb22f41d0c75 | refs/heads/master | 2023-03-09T14:32:17.833456 | 2021-02-26T16:09:31 | 2021-02-26T16:09:31 | 264,466,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.queue = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
return self.queue.append(x)
def pop(self) -> int:
"""
... | [
"349758699@qq.com"
] | 349758699@qq.com |
800bfc292b541e358ca68c9e6c326a8a80714489 | 6581a1c0b04af75ab7d386597ec436bd4937b6df | /pystache/tests/main.py | 7342c91712b8528bdc016eb6c3da6dde4a999216 | [
"MIT"
] | permissive | trenchmortar/pystache | f3ab3263ca0e990176306d3a0de9a4fba441c78f | cc262abf19cd90e34390d5ddb5db30d6f04620fa | refs/heads/master | 2020-04-23T00:33:47.600879 | 2012-04-26T05:49:19 | 2012-04-26T05:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # coding: utf-8
"""
Exposes a run_tests() function that runs all tests in the project.
This module is for our test console script.
"""
import os
import sys
import unittest
from unittest import TestProgram
import pystache
from pystache.tests.common import PACKAGE_DIR, PROJECT_DIR, SPEC_TEST_DIR, UNITTEST_FILE_PREFI... | [
"chris.jerdonek@gmail.com"
] | chris.jerdonek@gmail.com |
413503c12f4dc6734628644e7c8b0fb1e3e15539 | aeec646a9a2feb6fbaac31d4548d9aa09ad125e3 | /peer_module.py | 879a6662404995a3a8da03457bae8f7f63f7be5e | [
"MIT"
] | permissive | hslee1539/p2p | c0a9798e6da54029373ddf3d2b74ff30dc27e567 | c472271eff409ef345f29ef32f562a5f5e00d3ba | refs/heads/master | 2020-07-18T14:45:33.260168 | 2019-09-10T07:45:45 | 2019-09-10T07:45:45 | 206,264,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,674 | py | import socket
import threading
import random
import p2p
class Peer:
""""""
ip : str
controlPort : int
connectionPorts : list
service : str
peerList : list
maxConnection : int
serverThreads : list
clientThreads : list
serverState : list
running : bool
controlSocket : s... | [
"qq1539@naver.com"
] | qq1539@naver.com |
7f53a02ffe54ce6ac59ddf141ab26147d828a8de | c79779a1233e95858499143d717a41205932c53d | /pypi_practices/check_readme.py | 87c4304a51e43f77a2ba84c739eb4ed25c7ac8d5 | [
"MIT"
] | permissive | asottile-archive/pypi_practices | a8915fca09619f741f385c000bc98d84f9fd515f | a4da562c471198dd35806c52016fac44bb46c08d | refs/heads/master | 2021-09-15T02:01:34.023997 | 2018-05-24T00:46:27 | 2018-05-24T00:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from __future__ import print_function
import os.path
from pypi_practices.errors import FileValidationError
from pypi_practices.make_entry import make_entry
def check_readme(cwd):
readme_path = os.path.join(cwd, 'README.md')
if not os.path.exists(readme_path):
raise FileValidationError(
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.