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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e08fcd2d1e413bc7a3a92ee6303bb7e8cfd5379e | 581b960e3782e6968c23a664567cf1e857161048 | /20190505_pycon_plugins/code_pyplugs/plotters/line.py | cb0f32bc87907ba66f3c6c9b086fd2c2e61e74ee | [] | no_license | gahjelle/talks | d6f04e0edf8ce15949120f715479c7e82de9d46c | d0423f46568b6495ee913f8a850c619c65c1214c | refs/heads/master | 2023-04-30T16:21:18.801997 | 2023-04-23T18:39:29 | 2023-04-23T18:39:29 | 147,107,339 | 21 | 2 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | """Plot a line plot"""
# Third party imports
import pyplugs
@pyplugs.register
def line(ax, data):
"""Plot a line plot"""
data.plot(ax=ax)
| [
"[email protected]"
] | |
bdc7c56228322a08b6c0e6e1e2705a7bb79dad5d | db863bdd3507bf53800368d88a887247ef4a7636 | /Transaction/migrations/0009_auto_20210408_1019.py | 55bea4125b4834ec2947a82808078a205c74bdd9 | [] | no_license | vikasjoshis001/yes_backend | ed116f774237517da23dc5b420d791cba33a3efa | 97e071a4037f7020cc4bce667eee10e7294903f7 | refs/heads/master | 2023-08-01T03:27:40.521169 | 2021-09-15T09:16:29 | 2021-09-15T09:16:29 | 353,229,366 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 3.0.7 on 2021-04-08 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Transaction', '0008_auto_20210408_1015'),
]
operations = [
migrations.AlterField(
model_name='transactionhistorymodel',
... | [
"[email protected]"
] | |
42b84294b85ec7fda3c05db22cbb46d5d6bec28e | 462682b3b29304b561eaea3833c29e84d1e95c0e | /PythonTypes/ConsoleCode.py | 46da9d7f5a7259f3b5872f29883a929d85b87cc7 | [] | no_license | ravi4all/PythonDecMorning | 4452b8340ce0b4ab067bd769725c5a6f831b7f45 | 1e20da3c90d407dbef714770ad54e72f16be0eec | refs/heads/master | 2021-09-02T11:01:28.686860 | 2018-01-02T05:05:06 | 2018-01-02T05:05:06 | 113,133,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,304 | py | Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> a = []
>>> a.append(1)
>>> a
[1]
>>> a.append(2)
>>> a
[1, 2]
>>> a.append("Hello")
>>> a
[1, 2, 'Hello']
>>> a = [1,2,3,10.5,"Hello",True]
>>> a[0]... | [
"[email protected]"
] | |
ec95f318cee2e9f5dd28e4996ed3789e99994eb5 | bc41457e2550489ebb3795f58b243da74a1c27ae | /python/ghtc2012.py | 1eacd49e770cdbff348b5fe621063937f34b7f50 | [] | no_license | SEL-Columbia/ss_sql_views | 28a901d95fe779b278d2a51aec84d6bf51245c02 | d146fd96849a4d165f3dc3f197aadda804a2f60a | refs/heads/master | 2021-01-01T19:35:18.999147 | 2012-05-10T18:43:36 | 2012-05-10T18:43:36 | 3,020,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | import offline_gateway as og
import datetime as dt
import matplotlib.pyplot as plt
import pandas as p
'''
25 "ml00"
164 "ml01"
143 "ml02"
213 "ml03"
192 "ml04"
57 "ml05"
70 "ml06"
102 "ml07"
123 "ml08"
'''
# todo: fit solar generation over same time period
'''
print
print 'ml03'
og.analyze_load_profile_curve(213,... | [
"[email protected]"
] | |
cbbc41a4f95e61fcc71ca12aa4a08db0df652e6f | 1e4b37d3bfa9ecba22517548c0577dee76704d8f | /temp_ws/src/sawyer_velctrlsim-master/src/ref_rand_joint_state_pub.py | 4cb127b09acdbc0ce1e8873cbdce164979627504 | [] | no_license | mch5048/catkin_ws_4rl | 0aa19dc46effd2ae7941cc1e0b6d824f595d8574 | 2201d3b353da3b380dc7330ae5651e9640cd3408 | refs/heads/master | 2020-04-19T01:42:56.013573 | 2019-02-21T01:09:13 | 2019-02-21T01:09:13 | 167,879,885 | 0 | 0 | null | 2019-02-21T01:09:14 | 2019-01-28T01:27:31 | Makefile | UTF-8 | Python | false | false | 1,350 | py | #!/usr/bin/env python
import rospy
import numpy as np
from sensor_msgs.msg import JointState
class RandomJointState:
def __init__(self):
rospy.init_node('ref_js_randomizer')
self.pub = rospy.Publisher('/ref_sawyer/joint_states',JointState, queue_size=10)
self.ref_js = JointState()
... | [
"[email protected]"
] | |
9c9fb00c316199447af33e79a78359efcc6b08d9 | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /medium/python/c0075_142_linked-list-cycle-ii/00_leetcode_0075.py | 439484c8b6b418348aa22f97d0b9fbe24737d76b | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#142. Linked List Cycle II
#Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
#Note: Do not modify the linke... | [
"[email protected]"
] | |
65a545ee33b66672c39fab64dbefac761dbab3cf | 6fbd633d0c7c831ca8217788dcd3e82cd26dd72d | /src/pkgcheck/const.py | 87135e5e7de36a83947d0af03c71d28bba8104a3 | [
"BSD-3-Clause"
] | permissive | chutz/pkgcheck | b93724cc0c0dd3d17e49c734faf019b2ad67b0c7 | 714c016381b53246b449dd9c3116811e50db744f | refs/heads/master | 2020-09-22T13:46:59.498632 | 2019-12-01T04:05:35 | 2019-12-01T04:06:11 | 225,225,319 | 0 | 0 | BSD-3-Clause | 2019-12-01T20:22:06 | 2019-12-01T20:22:05 | null | UTF-8 | Python | false | false | 3,343 | py | """Registration for keywords, checks, and reporters."""
import inspect
import os
import pkgutil
import sys
from functools import partial
from importlib import import_module
from snakeoil import mappings
from . import __title__, checks, reporters, results
_reporoot = os.path.realpath(__file__).rsplit(os.path.sep, 3)... | [
"[email protected]"
] | |
c6ef643551dfb8508cda8c878e72f447e75cb54d | bec8f33002130d8395f4ac4f0c74b785aa22cac5 | /appium/options/ios/xcuitest/other/command_timeouts_option.py | 420b350397bc4e77af147af84a13acbd818a8ad0 | [
"Apache-2.0"
] | permissive | appium/python-client | 1c974fdf1ac64ce4ac37f3fc8c0a3e30c186d3ca | 2e49569ed45751df4c6953466f9769336698c033 | refs/heads/master | 2023-09-01T22:14:03.166402 | 2023-09-01T11:52:27 | 2023-09-01T11:52:27 | 18,525,395 | 1,588 | 606 | Apache-2.0 | 2023-09-10T02:00:09 | 2014-04-07T17:01:35 | Python | UTF-8 | Python | false | false | 2,627 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"[email protected]"
] | |
9f3e016075ca44f0a6162e23e5b74692c5851c57 | 6b1febf141315330fcb67495e094ff7aeb6520c8 | /ajaxsite/mixins.py | f42c1cf1f8587b620de9f6014651869faba40358 | [] | no_license | anidem/ajax-setup | 40a6ae856b0b3415ba3a2842f812c96d2b0978ef | bf5c9187eb878c627c5cb20a6e58a4e0e602be65 | refs/heads/master | 2021-01-10T20:38:22.928879 | 2014-11-17T18:13:46 | 2014-11-17T18:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from django.http import JsonResponse
class AjaxableResponseMixin(object):
"""
Mixin to add AJAX support to a form.
Must be used with an object-based FormView (e.g. CreateView)
"""
def form_invalid(self, form):
response = super(AjaxableResponseMixin, self).form_invalid(form)
if self.... | [
"[email protected]"
] | |
3ac03889ebac07e88d1b65696d71d07c0ca04cb5 | 3bbe69481d294eba60f83639f3a9430fb8cda4d9 | /feedback/views.py | 69481acb6cf19ded68b141738fab0ae2af40b3df | [] | no_license | ulugbek1999/ncd-cms | 5e288f44b01387cd66a54d2dcaf1e0d288205bc4 | dcb43bf65f0d6efcbf6481f5c9284c8c1a7c6b9d | refs/heads/master | 2022-09-06T13:22:34.637080 | 2019-12-14T09:10:26 | 2019-12-14T09:10:26 | 204,455,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from django.urls import reverse
from django.views.generic import TemplateView, ListView, View, DetailView
from .models import Feedback
from django.contrib.auth.mixins import LoginRequiredMixin
class FeedbackListView(LoginRequiredMixin, ListView):
template_name = 'feedback/list.html'
model = Feedback
conte... | [
"[email protected]"
] | |
11bb78f5bf946d78ca3589dc9dcad9baeaa919c9 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2462/60708/289131.py | 444c31167f10af1ad63b76154f6c924656b18429 | [] | 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 | 652 | py | def find(list,l,r,index):
if(l>r):
return index
mid=(l+r)//2
if(list[mid]>list[mid-1] and list[mid]>list[mid+1]):
index=mid
find(list,l,mid-1,index)
return index
else:
index1=find(list,l,mid-1,index)
index2=find(list,mid+1,r,index)
if index1!=-1:
... | [
"[email protected]"
] | |
02cc23d4157b6b0f584b4183e57cb643b4c693e1 | 57870ba30e4c530482db3a2f182e6c037a010a01 | /cauldron/test/test_reload.py | c9f2890cf6018d34bfe35ba78af77afa1113469a | [
"MIT"
] | permissive | khemanta/cauldron | 32e17b978a5856a4ac12bc79cdd23583207c0750 | 79ae3aa2cf919feb5c3365f85ae006075bec47e3 | refs/heads/master | 2021-01-11T14:25:16.416313 | 2017-02-08T23:12:24 | 2017-02-08T23:12:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from cauldron.test import support
from cauldron.test.support import scaffolds
class TestReload(scaffolds.ResultsTest):
"""
"""
def test_reload(self):
"""
"""
r = support.run_command('open @examples:hello_cauldron')
r = support.run_command('reload')
self.assertFal... | [
"[email protected]"
] | |
f023f3dae9e638f1830edf280727cf851dbd9faa | fdb9b553a23647f7ea06f690613707c40b54902f | /src/main/resources/resource/Tracking/Tracking.py | 870b67eea8d276da57bc8641d9971ca3702a1d76 | [
"CC-BY-2.5",
"Apache-2.0"
] | permissive | ShaunHolt/myrobotlab | d8d9f94e90457474cf363d36f4a45d396cfae900 | 92046d77abd560f0203050b3cccb21aa9df467f2 | refs/heads/develop | 2021-07-08T04:55:01.462116 | 2020-04-18T19:58:17 | 2020-04-18T19:58:17 | 122,795,957 | 0 | 0 | Apache-2.0 | 2020-04-18T19:58:18 | 2018-02-25T01:37:54 | Java | UTF-8 | Python | false | false | 2,158 | py | # a minimal tracking script - this will start all peer
# services and attach everything appropriately
# change parameters depending on your pan tilt, pins and
# Arduino details
# all commented code is not necessary but allows custom
# options
port = "COM19" #change COM port to your own port
xServoPin = 13 #change ... | [
"[email protected]"
] | |
11563a609e255317803e2b21817ec9e87f6efe33 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_19/models/directory.py | 0a684f6248f887806fa3011cccd444893b0e0135 | [
"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 | 6,952 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.19
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"[email protected]"
] | |
f3b1cf51d5b02fff27e636e3da4cc964efe47835 | 77be22f90869e8ad91e8ae15009274e97753e832 | /andrewl_mortal_kombat/rsa1.py | 8cb9ea18f8adfb8bd5883d58c0d3962a58e2e93a | [] | no_license | lwerdna/crackme | a18b0544c51d04b947bf2d6254c71dc4744dd728 | 9f9e082805a75120c6084cedb4a9306c6ec3818d | refs/heads/master | 2023-02-14T04:55:39.275773 | 2023-01-22T05:50:25 | 2023-01-22T05:50:25 | 192,410,237 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/python
# rsa challenge, straight forward
#
# example name/serial pairs:
#
# knowledge/26582066182495701597915248727138888909
# is/141271412203160330710342183730048971956
# power/135066534443646675683259471815808056369
# Mortal/125332528239055605555179231197739673804
# Kombat/97493559731364... | [
"[email protected]"
] | |
72cd412bb1d32b99ae9b5fb9e575dec5bfecfaf3 | 56d58964a7a498e8f99bf804927b5d15f69fbccb | /fluent_pages/pagetypes/fluentpage/admin.py | 992accd311303ed0bd915a6ae3924c8c0af9afd4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | floppya/django-fluent-pages | 3c8e56a12261c6901ef63008e3203f7518f5864e | 5041d3b2d1d02bfc90cca1fe017618d99555a37b | refs/heads/master | 2021-01-18T11:26:13.853182 | 2013-04-06T22:16:20 | 2013-04-06T22:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | from django.conf.urls.defaults import patterns, url
from fluent_pages.admin import HtmlPageAdmin
from fluent_pages.models import PageLayout
from fluent_pages.utils.ajax import JsonResponse
from fluent_contents.admin.placeholdereditor import PlaceholderEditorAdmin
from fluent_contents.analyzer import get_template_placeh... | [
"[email protected]"
] | |
dbbc4a131d4c1c6286c0c8fad167b1b843753cd3 | 795efc7484b5e1ccfd18ead6afed9dc3ccb7de99 | /apps/books/urls.py | 344716a952eff813a2da3a1fe534e881ef2988ca | [] | no_license | wd5/book_base | ccf874357a42679043cb9063be443761a6d91ed4 | 922820180b24c45fd56afff72e55de79728d32b4 | refs/heads/master | 2021-01-10T01:37:41.318168 | 2012-08-01T09:54:34 | 2012-08-01T09:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import BookList, BookDetail
from .views import BookBlank, BookBlankFromBookmark
from .views import BookmarkList, BookmarkAdd, BookmarkDel, BookmarkDelAll
from .views import RenderOrderBookForm, MakeOrderBook, CancelOrderBook
urlp... | [
"[email protected]"
] | |
cbbfba50005ee9b1a3b09f614c684c894ae7e6b6 | b0ec01db9a15fcb171f9a73f44f67a736804f113 | /app/__init__.py | 323adc2762af574ee13612b08b7c39bece7521d6 | [] | no_license | uwase-diane/BookApp | 60b7aded64f6892e51a13f3c6c487c25534f46f0 | 4549a1705b38a4a2f86c1b0cb34a2468c5964a56 | refs/heads/master | 2023-01-29T00:28:24.781440 | 2020-12-10T09:28:49 | 2020-12-10T09:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from flask import Flask
from config import config_options
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_uploads import UploadSet,configure_uploads,IMAGES
from flask_simplemde import SimpleMDE
login_manager = LoginManager()
login_manager.se... | [
"[email protected]"
] | |
01521707f60526029a7269c3681ee91590141a97 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/demxinhvn.py | c23106e40abebd9467378da623d03ed7d214615c | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@id='product-main']/h1",
'price' : "//span[@class='price-new']/span[@id='formated_special']",
'category' : "",
'descript... | [
"[email protected]"
] | |
74ebf1832b3b13468d1c73b53dcd6062ad53a6bb | 50be0ae5bc8a28b25c2ed81ea119140b8fa160bd | /libs/markdowncode.py | 44fef0ef313ec8be9bb438da32e337aa86416770 | [] | no_license | Deattor/docmaster | e899c98cc3f93fd2cb4383205ae76111a53febe5 | d3647c2734415c566554e07363fc85ec652fa626 | refs/heads/master | 2020-12-26T20:40:38.404797 | 2014-03-09T04:45:28 | 2014-03-09T04:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | #encoding=utf-8
##预处理器
from markdown.preprocessors import Preprocessor
class CodePreprocessor(Preprocessor):
def run(self, lines):
new_lines = []
flag_in = False
block = []
for line in lines:
if line[:3]=='!!!':
flag_in = True
... | [
"[email protected]"
] | |
a372d6acf27900226db66972f167ca17971335c0 | 5f57cfb662e7a490235255273114d2eb712a9ce4 | /djd-prog2/noite-aula10/inimigos.py | 84a03745c90c009a40dee665aa4cb6f38314c03d | [] | 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 | 253 | py | AMARELO = (255, 255, 0)
class Alien:
def __init__(self, c, x, y):
self.cor = c
self.pos_x = x
self.pos_y = y
a1 = Alien("AMARELO", 100, 500)
a2 = Alien("AZUL", 150, 350)
print("A1 Cor:", a1.cor)
print("A2 Cor:", a2.cor)
| [
"[email protected]"
] | |
17544fa8a3e7e531224872ab76b461074fd8402f | 3db0033d5266d73a84ab8cb0385b1b5f718f1d47 | /menpobench/predefined/trainable_method/sdm.py | 9f087bed219adb651b23bc29f03d6016f17151ca | [
"BSD-3-Clause"
] | permissive | luckynote/menpobench | 64ba98480712289e777d75b1d40402a8fe121857 | cf0ea24c0bb6143bcfc6b0dc18951bcded69317e | refs/heads/master | 2020-03-26T22:58:14.692536 | 2016-06-16T21:32:40 | 2016-06-16T21:32:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from menpobench.method import MenpoFitWrapper
from menpobench.imgprocess import menpo_img_process
from menpofit.sdm import SDMTrainer
metadata = {
'display_name': 'Menpo Supervised Decent Method',
'display_name_short': 'Menpo SDM'
}
def train(img_generator):
# clean up the images with the standard menpo... | [
"[email protected]"
] | |
f925dec040d95821cef191779da6306070d8ebd1 | 74951991a9e1dbe92d4999da9060409a9492bdc3 | /minimum-number-of-operations-to-move-all-balls-to-each-box/minimum-number-of-operations-to-move-all-balls-to-each-box.py | 8b91d314c3fcf1107e5a03f5f58cacc5ca30453a | [] | no_license | drpuig/Leetcode-1 | fd800ee2f13c7ce03fa57c8a1d10b3aa6976d7c0 | 4ee104f3069c380e1756dd65f6ff6004554e6c0e | refs/heads/main | 2023-07-15T08:57:32.971194 | 2021-08-21T08:29:24 | 2021-08-21T08:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | class Solution:
def minOperations(self, boxes: str) -> List[int]:
# similar to 238. Product of Array Except Self and 42. Trapping Rain Water
# example for leftCost:
# input 11010
# leftCount 01223
# leftCost 01358
ans = [0]*len(boxes)
leftCount, leftCost,... | [
"[email protected]"
] | |
f9adf60909c5eb13e5acb5e65c6af8986fc22867 | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/Anuraj Pariya/Day 3/question 2.py | e1eb01c954fac70baaec7abeb51bcb72b21b949c | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 356 | py | def uniqueCharacters(num):
for i in range(len(num)):
for j in range(i + 1,len(num)):
if(num[i] == num[j]):
return False
return True
num = input('enter no.')
if(uniqueCharacters(num)):
print("The String ", num," has all unique characters")
else:
print("The String "... | [
"[email protected]"
] | |
1e73fcf13b62a58f6664ed0b3991ee7998376d37 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02842/s205208232.py | ff1472f4186e61c2bc8dcd3915d423c7c49f881b | [] | 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 | 211 | py | import math
n = int(input())
x = int(n/1.08)
if math.floor(x*1.08) == n:
print (x)
elif math.floor((x-1)*1.08) == n:
print (x-1)
elif math.floor((x+1)*1.08) == n:
print (x+1)
else:
print (":(")
| [
"[email protected]"
] | |
50e7908500919233f20330f73cca0b3ef23c2b71 | 6b045457b0ea97f950eaef8373f417617be0bdd6 | /edexOsgi/com.raytheon.uf.edex.plugin.goesr/utility/common_static/base/derivedParameters/functions/satRgbRecipeDiff.py | 45781926363996d2c0eb651e84109c0ed370a9dd | [] | no_license | Unidata/awips2-goesr | 76228dda89e2d867318f2d6bffb10a897afe4083 | 61cc76f83643fea62dbfe59ba26d04e1ec9bc0ac | refs/heads/unidata_18.2.1 | 2023-09-04T06:36:35.949636 | 2023-05-02T18:59:52 | 2023-05-02T18:59:52 | 72,454,342 | 2 | 5 | null | 2023-05-02T18:59:53 | 2016-10-31T16:15:04 | Java | UTF-8 | Python | false | false | 5,460 | py | '''
<!--
This is an absolute override file, indicating that a higher priority
version of the file will completely replace a lower priority version
of the file.
-->
<!-- TOWRdocs Header
Derived Parameter Python file for implementing channel difference RGB recipes.
-->
<!-- TOWRdocs De... | [
"[email protected]"
] | |
e3c648df17473aa2c6ec699a3c3a228f309b458b | cc096d321ab5c6abf54fdcea67f10e77cd02dfde | /flex-backend/pypy/rpython/rctypes/achar_p.py | 679fb44c613f75c7b294d3527c0d94da6c01241f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | limweb/flex-pypy | 310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2 | 05aeeda183babdac80f9c10fca41e3fb1a272ccb | refs/heads/master | 2021-01-19T22:10:56.654997 | 2008-03-19T23:51:59 | 2008-03-19T23:51:59 | 32,463,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from pypy.rpython.rctypes.implementation import CTypesCallEntry, CTypesObjEntry
from pypy.annotation.model import SomeString
from ctypes import c_char_p
class CallEntry(CTypesCallEntry):
"Annotation and rtyping of calls to c_char_p."
_about_ = c_char_p
def specialize_call(self, hop):
string_repr... | [
"lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d"
] | lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d |
6fbe95249a65618956af92f25e82a132dbcd9f39 | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/scipy/_lib/tests/test_linear_assignment.py | 5ba729dcac445604773fab01e74e2df735b11eb7 | [
"BSD-3-Clause",
"Python-2.0",
"Qhull",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause",
"GPL-3.0-or-later",
"BSD-3-Clause-Open-MPI",
"GCC-exception-3.1",
"GPL-3.0-only"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,420 | py | from itertools import product
from numpy.testing import assert_array_equal
import numpy as np
import pytest
from scipy.optimize import linear_sum_assignment
from scipy.sparse import csr_matrix, random
from scipy.sparse.csgraph import min_weight_full_bipartite_matching
# Tests that combine scipy.optimize.linear_sum_... | [
"[email protected]"
] | |
d8aacd22dc55729c0394ca6fdd998d7aef004f28 | 3bedfe030662300844861d8f4d0ba52c1e43f950 | /fit_farquhar_model/plot_priors.py | af76c6018455b51fd775409540fd1529586fb42a | [] | no_license | shaoxiuma/FitFarquharModel | d200ae38d3fd6ab73b1db4910ef7c15fe16bb0f3 | fd3766feaea65e80025df9bf5a9257e68805f696 | refs/heads/master | 2021-01-06T06:45:36.683836 | 2016-07-14T09:41:05 | 2016-07-14T09:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import truncnorm as tn
import pymc
#mu = 25.0
#sigma = 11.25
#a = 1.0
#b = 650.0
#vals = tn(a=a, b=b, loc=mu, scale=sigma)
#plt.hist(vals.rvs(100000), bins=50)
#plt.xlim(0, 100)
#plt.show()
N = 10000
Vcmax = [pymc.TruncatedNormal('Vcmax25', \
... | [
"[email protected]"
] | |
30bb5a8de099650a678bb641cbd91df19f7b70e5 | edc1f1369794a4a1c499c6e9d5fe49a712657611 | /algorithms/BAT-algorithms/Linklist/把链表分隔成 k 部分.py | b8bdcc1f196b6ec7dc476ed648423dfbb07a90aa | [] | no_license | williamsyb/mycookbook | 93d4aca1a539b506c8ed2797863de6da8a0ed70f | dd917b6eba48eef42f1086a54880bab6cd1fbf07 | refs/heads/master | 2023-03-07T04:16:18.384481 | 2020-11-11T14:36:54 | 2020-11-11T14:36:54 | 280,005,004 | 2 | 0 | null | 2023-03-07T02:07:46 | 2020-07-15T23:34:24 | Python | UTF-8 | Python | false | false | 1,148 | py | """
题目:
把链表分隔成 k 部分,每部分的长度都应该尽可能相同,排在前面的长度应该大于等于后面的。
示例:
Input:
root = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], k = 3
Output: [[1, 2, 3, 4], [5, 6, 7], [8, 9, 10]]
"""
from Linklist.utils import *
def split_list_to_parts(root, k):
cur = root
count = 0 # 统计节点个数
while cur is not None:
co... | [
"[email protected]"
] | |
3cba030978802e2c08627276829ad7783d3fa0b9 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /AaSXX4SKNdZ7mgqK7_17.py | be63a7e642493a1b3670a3c483d9fb9f2cc07103 | [] | 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 | 1,821 | py | """
Check the principles of minimalist code in the [intro to the first
challenge](https://edabit.com/challenge/2XLjgZhmACph76Pkr).
In the **Code** tab you will find a code that is missing a single character in
order to pass the tests. However, your goal is to submit a function as
**minimalist** as possible. Use the... | [
"[email protected]"
] | |
f6fe6717319bec24fa325da576bb51eb891e8504 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Courses, Trainings, Books & Exams/PYTHON 3 - Scientific Training/5-1 Defining and Calling Functions -03.py | 17586f32ac4d6ca197e6bf670f6a09aad7f612a0 | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/python
def parrot(voltage, state='a stiff', action='voom'):
print("-- This parrot wouldn't", action,)
print("if you put", voltage, "volts through it.",)
print("E's", state, "!")
# Define a dictionary
d = {"voltage": "4.000.000", "state": "bleedin' demised", "action": "VOOM"}
# call the functi... | [
"[email protected]"
] | |
3197e0ded1fcd0b9cbfc65013a98c0b902ec901a | becf6e96bd866e4a8ee964bc1901225e4fa3fb46 | /thornoise/noise.py | 264f7672212363d1214a68567be5297050cf0eaa | [
"MIT"
] | permissive | YannThorimbert/RpgMap | 80be6a4aea9e8af41a8ff61657a8fcfddd12dd62 | c8c4746e1c99930142d8742e0aa6975dde7efa90 | refs/heads/main | 2023-04-20T17:50:03.875740 | 2021-05-05T12:47:52 | 2021-05-05T12:47:52 | 354,846,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,210 | py | from __future__ import print_function, division
import random, math
import matplotlib.pyplot as plt
def generate_constraints(n_octaves, S, chunk):
"""Generates random height constraints used by terrain generation.
THIS IS NOT THE ACTUAL TERRAIN GENERATION FUNCTION."""
min_res = int(S / 2**(n_octaves-1))
... | [
"[email protected]"
] | |
f948d2c486bf549cd835bfca0a5694c3e2e0688a | 0f5c047bdb5cd8aee5b6aac3447e7cf75c6eedcc | /weighted/weighted_lev_gen.py | 752dfb8ad94d66988658319bec58e4935880d9ff | [] | no_license | dengl11/CS166-Project | fcde43fe5a044757432faa53ef79dcaa4ed46132 | f05c5de12a0cfe6939e55149cc69d82ceca41a1c | refs/heads/master | 2020-03-18T23:13:56.963216 | 2018-06-13T22:21:19 | 2018-06-13T22:21:19 | 135,390,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | import sys, os
sys.path.append(os.path.join(os.path.abspath(__file__), "../"))
from util import *
from trie import *
from levenshtein import *
from match import *
from generator import *
from config import *
from lev_dfa_gen import *
from weighted_gen import *
class WeighedLevTrieGenerator(LevTrieDFAGenerat... | [
"[email protected]"
] | |
a38ad724f73002d0f6a61cdd841bd780cfb1b1fc | 6d7336a48936a15484798d59cb863d8419e9578c | /setup.py | 84631162f58c4005edc139c3796016fad04db54b | [
"MIT"
] | permissive | bbengfort/cellular-automata | 48f8f07925e1fb3b4466f090127f44f8f761c799 | c58ab58773796037979da70806b9d19797a64926 | refs/heads/master | 2021-01-01T15:35:44.698790 | 2014-02-07T20:48:49 | 2014-02-07T20:48:49 | 16,409,041 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | #!/usr/bin/env python
# setup
# Setup script for cellular-automata
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Fri Jan 31 09:15:08 2014 -0500
#
# Copyright (C) 2014 Bengfort.com
# For license information, see LICENSE.txt
#
# ID: setup.py [] [email protected] $
"""
Setup script for cellular-... | [
"[email protected]"
] | |
55f1881da1b8b571d4ead59e470624bd417dde15 | eb2df6020f5759feee3d6d78c5f8c78999454a09 | /scheduled_jobs/trulight_energy/capacity_curves/read_capacity.py | 7a06b2ec665d19e94399d9f1b55cf383d3f12c1f | [] | no_license | mywork-dragon/dave-energy | 7a08f855d245c2d90a9c13aa85fc3b9f28ae9294 | 4b3430be6ef6957389ab05be3a17a0245f5d6662 | refs/heads/master | 2023-07-28T02:55:26.791724 | 2021-09-06T11:44:30 | 2021-09-06T11:44:30 | 365,872,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from scheduled_jobs.trulight_energy.run import run
from scheduled_jobs.trulight_energy.run import TrulightAPIType
CAPACITY_CURVE_URL = "/api/CapacityCurve"
if __name__ == "__main__":
run(CAPACITY_CURVE_URL, TrulightAPIType.Capacity) | [
"[email protected]"
] | |
9b080ae18cafe06d4113940f5175b3baafc4f009 | 311c4dc3034b108049c0d21adad71144433c539d | /cars/tests.py | 7215f9f9f078bb99be857970d1c462350d43c22c | [] | no_license | Osama-Yousef/cars-api-permissions-postgres | 34acfd9fdc0545e147d07e821f767e1e414149f9 | 2292f10e6ae53b6da3f0848ed1832d1fe1346c4d | refs/heads/master | 2022-12-22T07:21:24.926870 | 2020-09-28T15:00:47 | 2020-09-28T15:00:47 | 299,285,921 | 1 | 0 | null | 2020-09-28T15:00:48 | 2020-09-28T11:25:05 | Python | UTF-8 | Python | false | false | 907 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from .models import Car
# Create your tests here.
class BlogTest(TestCase):
@classmethod
def setUpTestData(cls):
test_user = get_user_model().objects.create_user(username='testuser', password='password')
test_user... | [
"[email protected]"
] | |
4dd7ac5371dafbffb4120681c5a84bd01d820d3f | 7860f554d0a51f8af87f71c0a927d12f618b2197 | /all_topic/esay_topic/38. 外观数列.py | 2ee250f25b470d91b81d208e631bc16b3aa019bd | [] | no_license | starrye/LeetCode | 79586b5984a4c28b9a641a0108a41dccacd9375a | 83c589464e0caad960679aea259681c965218d13 | refs/heads/master | 2022-07-26T21:05:42.616460 | 2022-06-23T10:10:38 | 2022-06-23T10:10:38 | 158,910,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/local/bin/python3
# -*- coding:utf-8 -*-
"""
@author:
@file: 38. 外观数列.py
@time: 2020/8/10 16:15
@desc:
"""
from typing import List
"""
给定一个正整数 n(1 ≤ n ≤ 30),输出外观数列的第 n 项。
注意:整数序列中的每一项将表示为一个字符串。
「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。前五项如下:
1. 1
2. 11
3. 21
4. 1211
5. 111221
第一项是数字 1
描述前... | [
"[email protected]"
] | |
03a9735ba626fe96b762c8a33362a10ef2117c76 | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /testlints/test_lint_sub_ca_certificate_policies_marked_critical.py | fdded72a9b8ed872ca9ac65bd20ff499b974937f | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import sys
sys.path.append("..")
from lints import base
from lints import lint_sub_ca_certificate_policies_marked_critical
import unittest
import os
from cryptography import x509
from cryptography.hazmat.backends import default_backend
class TestSubCaPolicyCrit(unittest.TestCase):
'''test lint_sub_ca_certificate_... | [
"[email protected]"
] | |
7db12f0089bc848a4c09ea3a04ec1d7797dfce8a | 675cdd4d9d2d5b6f8e1383d1e60c9f758322981f | /supervised_learning/0x11-attention/8-transformer_decoder_block.py | 6297de99d6e9a896c8f3eaa4dd43d2e1acc22042 | [] | no_license | AndresSern/holbertonschool-machine_learning-1 | 5c4a8db28438d818b6b37725ff95681c4757fd9f | 7dafc37d306fcf2ea0f5af5bd97dfd78d388100c | refs/heads/main | 2023-07-11T04:47:01.565852 | 2021-08-03T04:22:38 | 2021-08-03T04:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | #!/usr/bin/env python3
""" Tranformer decoder block"""
import tensorflow as tf
MultiHeadAttention = __import__('6-multihead_attention').MultiHeadAttention
class DecoderBlock(tf.keras.layers.Layer):
""" create an encoder block for a transformer: """
def __init__(self, dm, h, hidden, drop_rate=0.1):
"... | [
"[email protected]"
] | |
57a43a810299204f78640312238dbe2c58d1d9a6 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_secrets_request.py | ec09eb7b62cb6671442582b7035c6ecf09abdefa | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,501 | py | # coding: utf-8
import pprint
import re
import six
class ListSecretsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value... | [
"[email protected]"
] | |
415113fb75120a82dfd4e56463217dc72faec19b | 10abe784a87ce1f9b37383471af15c69db7087ed | /snippets/input_3.py | cc99892ca9e2792c2974c9f1a1221bbd023922d8 | [] | no_license | The-Cooper-Union-CS102/Lesson-7-Introduction-To-Python | e5f27dadbea27dda83bde7893771d39c0d4cb064 | e663bb2e5373b19fd79553757c0ab52e9600518a | refs/heads/main | 2023-01-24T13:03:21.161831 | 2020-11-24T22:51:54 | 2020-11-24T22:51:54 | 303,213,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | opened_file = open('README.md')
content = opened_file.read()
print(f'Number of characters: {len(content)}')
words = content.split()
print(f'Number of words: {len(words)}')
lines = content.split('\n')
print(f'Number of lines: {len(lines)}')
print(f'Number of unique words: {len(set(words))}')
opened_file.close()
| [
"[email protected]"
] | |
5c6af0f82f0c47d71d0ca32753a263aaa76c23a5 | 3784268a19831d75753392c726ed59118dde632d | /cifar/eval_all.py | cef8a0014979778f66cbd7f671d7f481776959c7 | [
"MIT"
] | permissive | joaomonteirof/e2e_verification | d789399e026a9e6505395a7decae79da0057f3f4 | 867f7a2fbdb2ac9154c31e1e63762b9a58b32d7e | refs/heads/master | 2022-12-08T13:24:03.653512 | 2020-09-02T03:28:42 | 2020-09-02T03:28:42 | 186,659,374 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,461 | py | from __future__ import print_function
import argparse
import torch
from torchvision import datasets, transforms
from models import vgg, resnet, densenet
import numpy as np
import os
import sys
import glob
from utils import *
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Cifar10 - Evaluati... | [
"[email protected]"
] | |
34cd44260e0cfe1b01d0c68d5483e76202bc1907 | 92e3a6424326bf0b83e4823c3abc2c9d1190cf5e | /scripts/icehouse/opt/stack/heat/heat/openstack/common/db/exception.py | 27987c57b6aeadb45b9547d26ff7820317516fa3 | [
"Apache-2.0"
] | permissive | AnthonyEzeigbo/OpenStackInAction | d6c21cf972ce2b1f58a93a29973534ded965d1ea | ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e | refs/heads/master | 2023-07-28T05:38:06.120723 | 2020-07-25T15:19:21 | 2020-07-25T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | [
"[email protected]"
] | |
ae802470108ec86a3a76c105e3ae18dd8acbfab3 | 904fd519e3f10c8a21653d3fdea34915d2e708e2 | /dat/migrations/0001_initial.py | 586992533e52fb421a095ca0084fdeddfc2485fe | [
"Apache-2.0"
] | permissive | Kgermando/es-script | 5d4c74996dd83a2e91fb462f3ceb4943c887811c | f1b10ecf2c805e8875a025e7033c724e236f6cd1 | refs/heads/main | 2023-06-26T00:54:31.351588 | 2021-07-26T15:40:14 | 2021-07-26T15:40:14 | 366,509,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | # Generated by Django 3.1.7 on 2021-06-11 05:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cont... | [
"[email protected]"
] | |
fc31d030779e0d6f5442220445962d8dc9cd3eaf | c0ca5fe06bce08f9ab739cd4bdcddd782b915898 | /Python_tests/decoraror_kwargs/spookiplugins.py | 6fcf735fc81f09b74b864cfc0566b0d1b31bdb8a | [] | no_license | PhilippeCarphin/tests | bac30ceb9d2d8135b34af3e520fe2a9030028044 | 9716f53a41ed025c2d346be90c19866c59a03daa | refs/heads/master | 2023-07-06T15:09:53.048447 | 2023-07-04T23:52:43 | 2023-07-04T23:52:43 | 53,367,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py | from pyunix import make_unix_function
# noinspection PyUnusedLocal
@make_unix_function
def decorated_arg_function(humeur=None,
couleur=8,
bonjour=False) -> IMO:
"""EXAMPLE SPECIFICATION : A function that doesn't do anything.
# TODO The behavior will be tha... | [
"[email protected]"
] | |
bdc0db1a009ab22c4fed0cab30158cc6d04d80fb | dde0d75db42c19390f2625a7888586e4d2a14fd7 | /devel/.private/cob_object_detection_msgs/lib/python2.7/dist-packages/cob_object_detection_msgs/msg/_TrainObjectResult.py | 4334f1679464dd809bb35e2ddf81fa5c4c2cac43 | [] | no_license | dhemp09/uml-robotics | 16460efe8195a3f9a6a8296047f4fd4d9df0de80 | 862132e00e221b0a86bc283e7568efa984be673f | refs/heads/master | 2020-03-26T09:44:04.033762 | 2018-08-15T18:11:18 | 2018-08-15T18:11:18 | 144,762,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cob_object_detection_msgs/TrainObjectResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class TrainObjectResult(genpy.Message):
_md5sum = "d41d8cd98f00b204e980... | [
"[email protected]"
] | |
276311ba192111ad3852fba51761d00a98d969e2 | e0a51ac08f13f4d3d89ccd770225a9ca0cecb80a | /seucorretor/cidades/admin.py | 6d8a0d0175ea14209d65b26b1205eee421665a9c | [] | no_license | MarcosDihl/corretaza-buscador | 8bbc94a81f7414a3cbc4a1b7ce7b841431209b1c | a3579059839f32c585dda05775fa525fdd34121e | refs/heads/master | 2022-04-04T03:36:47.360708 | 2018-01-31T03:05:13 | 2018-01-31T03:05:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib import admin
from .models import Cidade, Regiao, Bairro
admin.site.register(Cidade)
admin.site.register(Regiao)
admin.site.register(Bairro)
| [
"[email protected]"
] | |
d12d58a30488fa6fba934eb791e0ccbbffd9631b | ed63c99ccb0beebcfe9bff2ef68e9c86877fa7d8 | /vocoder/train.py | b2449f66ffe8fcb05e7c7aeccb502f70c6c114b5 | [
"MIT"
] | permissive | X-CCS/Real-Time-Voice-Cloning-1 | d25588a852b87849f9a517d587a3a36d086bbae0 | ae4aa2aa1605168d2f04275e1a45f6de2d88f3f0 | refs/heads/master | 2022-02-28T03:29:26.135339 | 2019-10-23T12:01:10 | 2019-10-23T12:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | from vocoder.models.fatchord_version import WaveRNN
from vocoder.vocoder_dataset import VocoderDataset, collate_vocoder
from vocoder.distribution import discretized_mix_logistic_loss
from vocoder.display import stream, simple_table
from vocoder.gen_wavernn import gen_testset
from torch.utils.data import DataLoader
from... | [
"[email protected]"
] | |
baf29f1497792eadf8baea08bff17463c2572a94 | 5f6c16e89cf58304c2e70f1e34f14110fcec636c | /python-swagger-sdk/test/test_secret_network_rest_api.py | 67db62646ec81cd1341b284912b0e92b3292fe27 | [] | no_license | mohammedpatla/secretapi | 481c97901a5e92ca02e29470ab683df80ea0f26a | df420498bd0ae37fd1a152c3877a1342275a8f43 | refs/heads/master | 2022-12-25T01:55:18.038954 | 2020-10-04T23:13:54 | 2020-10-04T23:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | # coding: utf-8
"""
API for Secret Network by ChainofSecrets.org
A REST interface for state queries, transaction generation and broadcasting. # noqa: E501
OpenAPI spec version: 3.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"[email protected]"
] | |
8566f9e75de89e699548243255089d570f8f980a | a59ec95fddc064ea9a554ad41e4ac8e82376701a | /myshop/orders/forms.py | 85b29fe6f1e2dd581d3dc42576bb2d6f250431df | [] | no_license | Nicholas86/PythonDemos | 449c08713c7c03633719a4ae7287b127783d7574 | 4f06639cc65a5e10cc993335d3d34e2d60aac983 | refs/heads/master | 2021-01-22T21:07:11.457179 | 2017-08-18T06:40:44 | 2017-08-18T06:40:44 | 100,681,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
from django import forms
from .models import *
# 创建模型表单,根据模型Order
class OrderCreateForm(forms.ModelForm):
class Meta:
model = Order
# 表单展示的字段,用户需要填写的内容
fields = ['fi... | [
"[email protected]"
] | |
58cb0959aa62afa5c2cbef4ea5407a68d55606ce | cceeb787cf02dfee98f6b913e0815a5250505a29 | /special/special_m_CochranQ检验.py | 9ec770271c99a0204bdee065914558bcfc190c82 | [] | no_license | shandakangping/BioStat | 4782bdf599ddc4b44dcb9c4ad100459edbd2d221 | c2ecc1282bc12228b88eeba66551aec87d30fd8e | refs/heads/master | 2022-03-28T05:37:50.322348 | 2019-12-05T04:20:17 | 2019-12-05T04:20:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #CochranQ检验 https://spssau.com/front/spssau/helps/medicalmethod/cochranQ.html
import pandas as pd
from statsmodels.sandbox.stats.runs import cochrans_q
def core(x):
'''
x: pd.DataFrame()
'''
n = len(x)
freq = x.apply(lambda a:a.value_counts()).T
perc = freq.apply(lambda a:a... | [
"[email protected]"
] | |
12a26396e8dab5f0018ea9c4f98927ab88a5a63b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pzQXHMqizBmaLDCHc_9.py | 15c6a97cb23a0e43aaf7b064fe8045b18ba3fc93 | [] | 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 | 1,858 | py | """
It's a Pokemon battle! Your task is to calculate the damage that a particular
move would do using the following formula (not the actual one from the game):
damage = 50 * (attack / defense) * effectiveness
* attack = your attack power
* defense = the opponent's defense
* effectiveness = the effectiven... | [
"[email protected]"
] | |
294569d8a26a8235760f1210848bfc69ed7e87ec | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_242/ch150_2020_04_13_20_26_06_768478.py | 39ac017bfbff2072d7991d338db44e25d37255e3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import math
def calcula_pi(n):
contador=1
soma=0
while contador<=n:
soma+=6/(contador**2)
contador+=1
pi = math.sqrt(soma)
return pi
| [
"[email protected]"
] | |
b8e9300a6881004ad7de71e3459c045a7a356399 | 6cb25fcb5ce0e4f3b8cfb1165abe15d3de7fce82 | /link/tasks.py | 17747a2aee50b47ae5cd6eecc5882eb6e64a79f8 | [] | no_license | RoodrigoRoot/bills_celery | 4d3f904821f49629f2c024772899943e06042451 | 3ec5c5806c9b1ec75ff6ec3b287bf4d0a2537164 | refs/heads/master | 2022-12-24T09:04:46.917201 | 2020-02-10T22:41:55 | 2020-02-10T22:41:55 | 239,628,828 | 0 | 0 | null | 2022-12-08T03:35:29 | 2020-02-10T22:42:03 | Python | UTF-8 | Python | false | false | 330 | py | from celery import shared_task
from ftplib import FTP
@shared_task
def get_bills_moth():
#month = "manual_en.pdf"
#ftp = FTP("demo.wftpserver.com")
#ftp.login("demo-user", "demo-user")
#ftp.cwd("download")
#ftp.retrbinary("RETR " + month ,open(month, 'wb').write)
print("Factura descargada")
... | [
"[email protected]"
] | |
e0d214ad9218a623239cde1c8e194ac4ca8332fb | 7d44d7e8b12263ed3f692fba4f19eaff0420c5c0 | /earth/adventurers.py | d812355915f9774a05acd68bdb8c1dd2cbebff3e | [
"MIT"
] | permissive | ryltsev/earth | 64a59b5af20477d0e9c1e2585d8772223d6b7421 | 2787eeb37692f1c82bc12cb24a4c1574826204a7 | refs/heads/master | 2023-08-18T15:37:25.506828 | 2019-05-26T09:11:40 | 2019-05-26T09:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | import time
import typing
import attr
from .year import Months
from .travel import fly, AirportProblem
class Busy(RuntimeError):
"""Raised when Adventurer is busy."""
def pack(adventurer):
print(f"{adventurer.profile} {adventurer.name} is packing 👜")
@attr.s(auto_attribs=True, kw_only=True)
class Adven... | [
"[email protected]"
] | |
dc2c6fac31db0f166a99c5899a1563edaf631d31 | f682bf62d7de4afeeadf7c4f93dd51cfe51a78ec | /vikuraa/NumberDisplay.py | e781b41148dfc47b4834f3122482c00767f9e032 | [] | no_license | aliaafee/vikuraa | 1159d19573f043baa8401510888c22920d9edf04 | df02493249b563c2f14ecd517ef8cbd09f1641a0 | refs/heads/master | 2020-05-29T13:13:35.554124 | 2017-02-20T18:21:48 | 2017-02-20T18:21:48 | 82,592,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | import wx
class NumberDisplay(wx.Panel):
def __init__(self, parent, rows, first_row_big=True, size=wx.Size(-1,-1)):
wx.Panel.__init__(self, parent, style=wx.SUNKEN_BORDER, size=size)
self.SetBackgroundColour('WHITE')
self.label = {}
self.value = {}
gs = wx.FlexGridSize... | [
"[email protected]"
] | |
2bd17aa550e72879b0baf592355a60b8120b372f | 1f9611710ffaf5e0493799f716d3006c2f27b412 | /tests/test_madlib.py | dea7c141a360f9b41dc1300064bd9d61a683a647 | [] | no_license | majdalkilany/madlib-cli.1 | 2ea8d37cfe39e60151480c15ccad2841f58f53d8 | 48fb9e0b5aa1a9d29081e50304ff1e208ede3921 | refs/heads/master | 2022-12-02T19:14:57.538714 | 2020-08-22T14:39:52 | 2020-08-22T14:39:52 | 289,232,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from madlib_cli_1.madlib import read_file ,parse ,merge_and_write_file
def test_read() :
expected = open('assets/mad_file.txt').read().strip()
received = read_file()
assert expected == received
def user_input_test () :
accepted = 'please enter name >> '
actual = user_input(['name'])
a... | [
"[email protected]"
] | |
51df05dbb475d3d601e27c671a0abd7bfd968318 | a02789088ef6f7134d70b7235fa92ddcab9a667b | /eventsourcing/popo.py | 62bf9a207f000983720a274e3360dcd1d0d436a9 | [
"BSD-3-Clause"
] | permissive | bernardotorres/eventsourcing | 89f4f6aaf62f321ce28f5ec9ddbb60712495aa8b | 002077d185c261920f8ea8a397e292ab73a25319 | refs/heads/main | 2023-08-07T17:38:59.665618 | 2021-09-18T07:04:19 | 2021-09-18T07:04:19 | 407,116,568 | 0 | 0 | BSD-3-Clause | 2021-09-16T10:13:36 | 2021-09-16T10:13:35 | null | UTF-8 | Python | false | false | 4,826 | py | from collections import defaultdict
from threading import Lock
from typing import Any, Dict, Iterable, List, Optional
from uuid import UUID
from eventsourcing.persistence import (
AggregateRecorder,
ApplicationRecorder,
InfrastructureFactory,
IntegrityError,
Notification,
ProcessRecorder,
S... | [
"[email protected]"
] | |
456af233a7576621e75971e4b2de66322b1689c9 | 5a914243183e26f26e445c6f9d0bdf38eacde83a | /em/here_em1.py | b2054ec7f7c21d3da446dab1657a78cc4e948c56 | [] | no_license | linafeng/KDD-demo | b95834a0c9ae3e0e08d1d2fb710bf421b9eda8d5 | 8648a69f49dd8b27060e8349d84d6cde8b070716 | refs/heads/master | 2022-06-16T02:08:10.140190 | 2020-05-07T10:04:23 | 2020-05-07T10:04:23 | 255,523,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # -*- coding: utf-8 -*-
"""
用全部的特征值矩阵进行聚类训练
"""
import pandas as pd
import csv
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.mixture import GaussianMixture
from sklearn.preprocessing import StandardScaler
# 数据加载,避免中文乱码问题
data_ori = pd.read_csv('./heros.csv', encoding='gb18030')
features = [u'最大生命'... | [
"[email protected]"
] | |
b488e8f76122fb33075b71ea5447d66f8dab36ea | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2986/60705/264139.py | b726ef653c77a48cfa8e0baed697e3d4e6069ce1 | [] | 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 | 485 | py | word1 = input()
word2 = input()
m = len(word1)
n = len(word2)
line = [0 for i in range(0, n+1)]
matrix = [line.copy() for i in range(0, m+1)]
for i in range(0, m+1):
matrix[i][0] = i
for i in range(0, n+1):
matrix[0][i] = i
for i in range(1, m+1):
for j in range(1, n+1):
if word1[i-1] == word2[j-1]... | [
"[email protected]"
] | |
03d890f8f2dfbdcee709b7d5c2e90d16d30b8606 | 277f976227c7590f6de5e7991d8fbed23b6646fe | /euler/solution/p7.py | 24b6e6d889b48270005e27956ac6af780eaa9deb | [] | no_license | domspad/euler | ca19aae72165eb4d08104ef7a2757115cfdb9a18 | a4901403e442b376c2edd987a1571ab962dadab2 | refs/heads/master | 2021-01-17T14:04:39.198658 | 2016-07-25T23:40:10 | 2016-07-25T23:40:10 | 54,561,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py |
# BRUTE Force - alg from p3... 10 mins
# In [35]: %time p7()
# 10 0
# 20 8
# 40 12
# 80 22
# 160 37
# 320 66
# 640 115
# 1280 207
# 2560 375
# 5120 685
# 10240 1254
# 20480 2312
# 40960 4288
# 81920 8009
# CPU times: user 1.05 s, sys: 24.2 ms, total: 1.07 s
# Wall time: 1.1 s
# Out[35]: 104743
from math import sqrt
... | [
"[email protected]"
] | |
abb757860c83b8d6040106470b0abcc1405c33f1 | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4N/4N-4M_MD_NVT_rerun/set_3.py | e43d9b8429c088bc81e4ec4d4db05a1ba78a0721 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4N/MD_NVT_rerun/ti_one-step/4N_4M/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_3.in'
temp_pbs = filesdir + 'temp_3.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"[email protected]"
] | |
b132f75964416e8fb6db865f13619d5a5d4feebc | ca41bc15576624f4be22c777833b6dbf80a3d5f9 | /dolly/tarjetas/views.py | 6f751f0cebaf9d47fe33c218daa4b79650d76b56 | [] | no_license | aris-osorio/dolly | 74840477e01a020dfaaaf3a4e94c4f95f48f690e | 256042bae4d4253fbc93f50aa125047e5090b68c | refs/heads/main | 2023-02-01T14:48:19.840785 | 2020-12-17T07:30:34 | 2020-12-17T07:30:34 | 321,873,299 | 0 | 0 | null | 2020-12-17T06:51:59 | 2020-12-16T04:58:55 | Python | UTF-8 | Python | false | false | 309 | py | from rest_framework import viewsets
from django.shortcuts import render
from tarjetas.models import Tarjeta
from tarjetas.serializers import TarjetaSerializer
# Create your views here.
class TarjetasViewSet(viewsets.ModelViewSet):
serializer_class = TarjetaSerializer
queryset = Tarjeta.objects.all() | [
"[email protected]"
] | |
1783bd109902241c813c9e0a689496e14d5cedcc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch48_2020_04_10_20_07_55_415960.py | 44a694247dd0499ee9a39cc77edfd3fd0ea899fd | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def eh_crescente(x):
numero = True
i = 0
while numero:
while (i + 1) < len(x):
if x[i] < x[i+1]:
i = i + 1
else:
numero = False
return(False)
return(True)
| [
"[email protected]"
] | |
a48aae75de72aac5915ef51f45e6d1a46a853b69 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/recoveryservices/v20201201/get_protection_container.py | f52c0b9299418c861bc4540e9f8abd775c160bd0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,276 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"[email protected]"
] | |
dc8f58995b56a74a71ab55bfcf0f407a1856b1e8 | e21f7d14e564d7fb921277a329ff078e86ad86a2 | /2020/day-02/day_02.py | 77772c41380808b0f53d3cf39eedf829893ccbe2 | [] | no_license | MrGallo/advent-of-code-solutions | 31456a0718303cca6790cf1227831bcb14649e27 | 28e0331e663443ffa2638188437cc7e46d09f465 | refs/heads/master | 2022-07-07T08:49:30.460166 | 2020-12-17T17:22:24 | 2020-12-17T17:22:24 | 160,988,019 | 0 | 1 | null | 2022-06-21T22:26:19 | 2018-12-08T23:34:51 | Python | UTF-8 | Python | false | false | 1,269 | py | from typing import List, Tuple, Callable
Password = Tuple[str, str, int, int]
def main():
with open('input.txt', 'r') as f:
lines = f.read().split("\n")
passwords = []
for line in lines:
password = line.split()[-1] # last 'word'
colon_pos = line.index(':')
minmax, letter... | [
"[email protected]"
] | |
76a65c84f9cf87f1a638d3ca4ab887975e058090 | 9bd1c702f6a764f1227bb92b3c25045e1270e6d7 | /utility/queueUtility/queueFactory.py | 2111478742d447159b4ed8236151ef2c58c2ba4a | [] | no_license | sdz7121211/Crawler | 94b429d343165c959713ff1fffa40c54e41bcb57 | 6b3f1d0f78fed3027f2f075963e433d2c1c13bb8 | refs/heads/master | 2021-01-22T11:46:20.299124 | 2014-01-21T07:04:59 | 2014-01-21T07:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import Queue
instanceList = {}
def GetInstance(queue_id):
return instanceList[queue_id]
def CreatInstance(queue_id, maxNum = 0):
obj = Queue.Queue(maxsize = maxNum)
instanceList[queue_id] = obj
##!/usr/bin/python
## -*- coding: utf-8 -*-
##from queuesContr... | [
"[email protected]"
] | |
4e7a333cf591059236324b62a574244c81efc0c5 | 7bdf57cdb8d7a8dd0916e9263e63ef2d20723bec | /src/app/config.py | 29b15c27ea5973e7184897e54f7bfe46ab9bfd75 | [] | no_license | cyr1z/api-generate-table-image | 085b855c6ec48f6b46f602f92cd21ec0f03391e3 | d06e13eb6538ac4d2986903fba086140b11c3832 | refs/heads/main | 2023-07-13T20:50:01.146353 | 2021-08-30T06:03:10 | 2021-08-30T06:03:10 | 401,231,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from os import getenv
from dotenv import load_dotenv
load_dotenv()
class Config:
port = getenv('PORT')
production = getenv('PROD')
project = getenv('PROJECT_NAME', 'default')
base_url = getenv('BASE_URL')
storage_dir = getenv('STORAGE_DIR')
token = getenv('TOKEN')
| [
"[email protected]"
] | |
47debde28beda902a0c661b99da718fe0df26f64 | e2f7350e08784a793044e911670f50fdc560bcbc | /examples/population-annealing-qpu.py | 5229bee006233aecdf36ffa1c65d186d6815a2fa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | hsadeghidw/dwave-hybrid | 7a5dc4dd9ce7d8544f9276309eb1a4e8b450a5f8 | e667035b5623f122813795d433a40db6e520ff66 | refs/heads/master | 2020-08-21T21:31:19.708429 | 2019-09-19T16:59:50 | 2019-09-19T16:59:50 | 216,250,242 | 0 | 0 | Apache-2.0 | 2019-10-19T18:12:07 | 2019-10-19T18:12:07 | null | UTF-8 | Python | false | false | 2,194 | py | #!/usr/bin/env python
# Copyright 2019 D-Wave Systems Inc.
#
# 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 ... | [
"[email protected]"
] | |
8dccce2cb401bc399d13979fc9d02d0db03644cd | cea3a0be3209626c11f3ec7c235b0a7f7fdbe256 | /appengine_config.py | cad07b958597b5ca5a2a64641a75d268d1cd0720 | [
"LicenseRef-scancode-public-domain"
] | permissive | snarfed/plusstreamfeed | 56a2d1441097dd1660b9c5a46b546505ac8c2fa8 | 01362468594b820d9f57f4830a13df5f1aceaed1 | refs/heads/master | 2020-04-10T15:53:21.389755 | 2019-04-18T14:18:33 | 2019-04-18T23:18:43 | 41,272,334 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # Load packages from virtualenv
# https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring
from google.appengine.ext import vendor
vendor.add('local')
from granary.appengine_config import *
| [
"[email protected]"
] | |
e26cbf3aa76e7ccbaad9ffdccf7b920147bf8c64 | cd555725b300579d44c0bd3f6fc8f6a968912dfb | /UF1/Nieto_Alejandro_Gomez_Alejandro_PT15/Exercici2-2.py | 847dc7532d4ef40f9f8a3a48b08218e721990879 | [] | no_license | aleexnl/aws-python | 2da5d8a416927f381618f1d6076d98d5e35b3b5e | 03fce7744b443b2b59a02c261067ecae46ecc3d9 | refs/heads/master | 2022-11-24T08:58:24.686651 | 2020-04-18T15:58:32 | 2020-04-18T15:58:32 | 221,772,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # Fem una tupla amb els dias que tenen cada mes
dias_mes = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
# Fem una altra on passarem una data.
avui = (2018, 4, 11)
# Guardamos los valores de la tupla en las variables a(any), m(mes) y d(dia)
a, m, d = avui
# Creem una tupla a la cual possarem el dia que es nadal (25 ... | [
"[email protected]"
] | |
e1edaf60e374412bee0cbbd1ef24f83c1c72e19a | 0bdd797b3e95429e03108152cacfbb26069f1d76 | /stack/ternaryexpression.py | da9bb4cd80a9007718dd489b83661c65f5fdbb77 | [
"MIT"
] | permissive | mengyangbai/leetcode | 3eda89470c933fdec5ffdfbf9cceb57e85c7e44d | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | refs/heads/master | 2021-06-28T15:39:16.258564 | 2019-06-27T07:30:22 | 2019-06-27T07:30:22 | 142,398,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Solution(object):
def parseTernary(self, expression):
"""
:type expression: str
:rtype: str
"""
stack = []
expr = list(expression)
while len(stack) > 1 or expr:
tail = stack[-5:]
if len(tail) == 5 and tail[3] == '?' and tail[1] ==... | [
"[email protected]"
] | |
2dc546f6dbc042377bebe95d64321e6f51650677 | af57db915a3e0376a400511417c5750e180de3d5 | /auto/forms.py | 2a3709428dbab0f1cf9f461305895e35748bcd2a | [] | no_license | Aitodev/ais | a8377e572a7cbf902c0d2229e27465af01a202f3 | a463dac02dde4be2586e4d3e77b58b7c0cb89f7e | refs/heads/main | 2023-02-25T06:55:09.594195 | 2021-02-01T16:06:45 | 2021-02-01T16:06:45 | 335,005,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | from django import forms
from django.contrib.auth.models import User
from .models import *
from .models import Feedback
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput)
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField... | [
"[email protected]"
] | |
6fd84c7eaaf2f3f098c6eafed22ac366f1da98cb | 5c59dd613315aefbdc26d2494efd9184c177f8a9 | /langevin_thermostat.py | b23b17896f0ae28f3e6aabaf25bd74692e63de0b | [] | no_license | DuaneNielsen/odes | d7f4480e18a5044726e8faacf85eb2be67b08fb3 | 26735aad34d0658755f639464670cae0add3cd02 | refs/heads/master | 2022-12-28T15:34:19.014633 | 2020-10-10T17:43:05 | 2020-10-10T17:43:05 | 302,956,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from vpython import *
import random
ground = box(color=color.red, size=vector(22, 1, 1), pos=vector(0, -1.5, 0))
top = box(color=color.red, size=vector(22, 1, 1), pos=vector(0, 19.5, 0))
left = box(color=color.red, size=vector(1, 22, 1), pos=vector(-11, 9, 0))
right = box(color=color.red, size=vector(1, 22, 1), pos=ve... | [
"[email protected]"
] | |
f983b13f56d37aa51fd6fad03f39562f4d2a7fd3 | 9e2935a5186914e44a739989c9b5c1a89fef9f65 | /dht11_no_sucess/2.py | 7049346ef0a6743c5245a6eb104bb2cfb894eb16 | [] | no_license | raspberrypitools/sensor | a36001f0eea6e423ea1659c7bb514e244a12bcf6 | 96e731416843c6cba04e3e549a59714123e665e6 | refs/heads/master | 2021-02-17T09:58:22.822618 | 2020-06-12T14:40:33 | 2020-06-12T14:40:33 | 245,087,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
import RPi.GPIO as GPIO
import time
channel =7
data = []
j = 0
GPIO.setmode(GPIO.BCM)
time.sleep(1)
GPIO.setup(channel, GPIO.OUT)
GPIO.output(channel, GPIO.LOW)
time.sleep(0.02)
GPIO.output(channel, GPIO.HIGH)
GPIO.setup(channel, GPIO.IN)
print GPIO.input(channel),GPIO.... | [
"[email protected]"
] | |
a891d1335f0277aed08bff930a81a3111785cbcd | 5dd5d4f80a883459ece27066bb88a8a951b1f88a | /examples/volumetric/read_vti.py | bc37309bb1de11d7eca624cf3460946772df96b7 | [
"MIT"
] | permissive | Gjacquenot/vtkplotter | 428cd7c302ca50980a829aa274cf0c4165990267 | dc865f28dec0c6f10de159dc1f8f20dd69ee74cf | refs/heads/master | 2020-05-25T17:19:55.569739 | 2019-05-22T14:56:50 | 2019-05-22T14:56:50 | 170,382,207 | 0 | 0 | MIT | 2019-02-12T19:58:25 | 2019-02-12T19:58:24 | null | UTF-8 | Python | false | false | 873 | py | """
Using normal vtk commands to load a xml vti file
then use vtkplotter to show the resulting 3d image.
"""
import vtk
from vtkplotter import datadir
# Create the reader for the data.
reader = vtk.vtkXMLImageDataReader()
reader.SetFileName(datadir+"vase.vti")
reader.Update()
img = reader.GetOutput()
# specify the da... | [
"[email protected]"
] | |
7f4c31ff4d35f469ac39c66f2f9f5a3237164696 | 6929f9696a8f90b3778d449a199cee8891f3f739 | /python_core/packages_test/package_described.py | 9212ff4dd84afff229f7e04dd0d8c09253353576 | [] | no_license | chemplife/Python | 881d492a4271fb2b423f2dd611eaac53a0efdc34 | 7fdfbf442a915e4f41506503baad4345a52d1e86 | refs/heads/master | 2022-12-31T20:00:22.475985 | 2020-10-19T20:14:43 | 2020-10-19T20:14:43 | 305,503,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | """
The directory this file is in, is now a python package.
Package: It is a MODULE that has additional functionalities.
- It can have more packages inside it
- It can have module inside it.
To make any directory a package recoganisable by python compiler,
- There needs to be a __init__.py file in it.
Eg:
app... | [
"[email protected]"
] | |
03a69a90e7668a902e87e4659702760b40bab9f8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2553.py | 33b08c886bcd825a1acedf643a39ec999814fd9f | [] | 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 | 1,332 | py |
# function to flip
def flip(s):
if s == '+' :
return '-'
else:
return '+'
# function takes N as input and prints output
def compare(f, s):
return int(f) < int(s)
def solution(N):
result = None
n = list(str(N))
i = len(n) - 1
while i > 0 :
# print(i, le... | [
"[email protected]"
] | |
46062115961e2560753e312d28159cdebeda7ca2 | 849cd35166a93259c8bf84f001a3c40d9fe18b98 | /bomj.py | 3ab89c246b9b4a91d31b4921845d35dac34a030e | [] | no_license | Larionov0/Group2-lessons | 98c3d20d7532583ee66e766371235cfe888264c5 | 6426962e9b6766a9470ab1408b95486e63e4c2fa | refs/heads/master | 2023-05-07T01:42:57.290428 | 2021-05-27T17:52:02 | 2021-05-27T17:52:02 | 334,012,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | import random
from time import sleep
money = 1000
satiety = max_satiety = 10
satiety = 1
things = [
['аксесуар', 'шорти', 0],
['аксесуар', "кепка", 0],
]
store = [
['аксесуар', 'тапки', 50],
['аксесуар', "телефон", 200],
['аксесуар', "спортивний костюм", 300],
['аксесуар',... | [
"[email protected]"
] | |
8cafb8dc6888632bb689dd46e15eb44721ac98d4 | 210b05500599fe0fbe165c1cd3056e9a11487b0d | /ico/cmd/refund.py | 06da4a97c1ca722f174293455fb0c5996989f604 | [
"Apache-2.0"
] | permissive | streamr-dev/token-launch-smart-contracts | b7fa04c9b33b5c2e371fc88dee1555b74334000e | 209d574ded70b4c382894d09ea886a2704291ce0 | refs/heads/master | 2021-01-01T04:48:56.809663 | 2017-07-10T01:23:33 | 2017-07-10T01:23:33 | 97,254,821 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,520 | py | """Distribute ETH refunds."""
import csv
import datetime
import json
import os
import time
from decimal import Decimal
import shutil
import click
from eth_utils import from_wei
from eth_utils import is_checksum_address
from eth_utils import to_wei
from populus.utils.accounts import is_account_locked
from populus impo... | [
"[email protected]"
] | |
32b5aa500d83bd14aee751d92265569351a866f2 | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/fishpond.py | a505966943e5272cc2c64493bb9cf1f8f5c9e360 | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"[email protected]"
] | |
96c83faea4fa8fcd498552cfd69510ae95d4500b | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /BOJ/Python/15684_사다리조작.py | ad8c21b700f5ed8bafd0f746b37d65e039941596 | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # baekjoon source = "https://www.acmicpc.net/problem/15684"
def check(x, y):
if x < 0 or x > h : return False
if y < 0 or y > n - 1: return False
return True
def make_ladder(a,b):
pass
def ladder(a, b):
q = [[a, b]]
visited = [[0] * n for _ in range(h +1)]
while q:
t = q.pop(0)
... | [
"[email protected]"
] | |
a179f9c4dfc6c25e8e7b9b0ebef9df266971e387 | 4911cc3eaadd536a234dc9e7e563ad0df8e7ba3c | /src/bd2k/util/test/test_d32.py | aaf9711801ab83db106c1de7ff75ea68a9b4ab52 | [] | no_license | hschmidt/bd2k-python-lib | 56ca4747e2b2cc3baf98c5f0efa343229018ea77 | a662f3c5564299a6c2d86233e6bee741e9e44c3d | refs/heads/master | 2020-06-28T06:04:27.265541 | 2016-11-18T07:22:44 | 2016-11-18T07:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # Copyright (c) 2014 Dominic Tarr
# Copyright (c) 2015 Hannes Schmidt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use, co... | [
"[email protected]"
] | |
c0f861945d032cb15056a8e6d63ad54fa9f7c2b0 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/5.Package/5.2.stat.py | de809c5d862f6396d89748097203c556a8f6ae77 | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
from scipy import stats
import math
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
def calc_statistics(x):
n = x.shape[0] # 样本个数
# 手动计算
m = 0
m2 = 0
m3 = 0
... | [
"[email protected]"
] | |
3f7fb0c976574d21edfe92fca912a67f210f5bfa | 9a9788a67925ba563f835fac204e76dc6cabb5bd | /Products/CMFDefault/browser/discussion/tests/test_discussion.py | ca429f37cfe1f2a3600665d5f7040b2a8ec0931b | [
"ZPL-2.1"
] | permissive | zopefoundation/Products.CMFDefault | d8f5fe6754d90abfaa37460ee2a3b0314167e34a | a176d9aac5a7e04725dbd0f7b76c6ac357062139 | refs/heads/master | 2023-06-21T20:54:29.719764 | 2021-02-05T17:36:40 | 2021-02-05T17:36:40 | 36,096,105 | 0 | 4 | NOASSERTION | 2021-02-04T15:08:40 | 2015-05-22T21:29:53 | Python | UTF-8 | Python | false | false | 950 | py | ##############################################################################
#
# Copyright (c) 2008 Zope Foundation and Contributors.
#
# 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 I... | [
"[email protected]"
] | |
96343d7dbf5cef604566654a976175dd9694d385 | aaed251a860f6606fa826ccc057d5bbb13800fe1 | /swagger_client/models/jvm_info.py | ca9db7012cb553c3b0715ee388d53a85989b7044 | [] | no_license | japaniel/insightvm-python | 707f0bd16f20302e99c117f3e562cd5dbf25359e | 9bf8ae98b6d61c1d5c4ab2d8c6c810a68e16bf3d | refs/heads/main | 2023-02-02T04:01:36.204154 | 2020-12-16T01:21:20 | 2020-12-16T01:21:20 | 320,130,684 | 1 | 0 | null | 2020-12-16T01:21:21 | 2020-12-10T01:57:52 | Python | UTF-8 | Python | false | false | 6,254 | py | # coding: utf-8
"""
InsightVM API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 3
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re ... | [
"[email protected]"
] | |
5e0de4bfd6bde7090acbcccc3bf5523f1cca16b6 | 75ec986d34d5391d46d6469c513626f69f5d978d | /Incepator/listcomprehensions/listcomprehensions1.py | 68f786bc3bef3a729cc3f9c8b4b0748696eef5ee | [] | no_license | CatrunaMarius/python | d9f8dc221458e4b65c3f801daf3b59aa2b946358 | d063bffb4eafa56ac1e205c2d39fc893ab50e992 | refs/heads/master | 2020-04-24T05:23:22.756002 | 2020-01-06T11:56:12 | 2020-01-06T11:56:12 | 171,703,482 | 0 | 0 | null | 2019-02-20T16:12:39 | 2019-02-20T15:59:08 | null | UTF-8 | Python | false | false | 181 | py | #fillind with random numbers
from random import randint
low = int(input("Entre min: "))
high = int(input("Entre max: "))
a= [randint(low, high) for i in range(10)]
print(a) | [
"[email protected]"
] | |
f039e27d9ed5f302d3c0eadb99c82005051d3598 | 66c9ce87b3462ec49caa8cd5286ffccc0e6f26ee | /dag.py | b415d17786098c013d11d9ce2e1e0304774e8779 | [
"MIT"
] | permissive | kendricktan/dpim | e0b839f8ce9e65c48b020819b5cd96630ec66789 | 0b8c95f625c3b136f3b938ea7663c90bcb73c5e4 | refs/heads/master | 2020-03-12T03:25:16.904858 | 2018-04-21T08:43:45 | 2018-04-21T08:43:45 | 130,424,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,979 | py | import hashlib
import crypto
from collections import namedtuple
MIN_WORK = '000'
# directed acyclic graph primitives
# OpenTx
# params:
# account => which blockchain account you trying to open
# hash => hash of the opentx
# work => work done to get the 'valid' txid (starts with X amount of zeros)
OpenTx = namedtupl... | [
"[email protected]"
] | |
7d339ebc3f20cf56e6b20c247266259ba6e349f3 | 861db97defcdadae5f10263b9a6d41e7d0b85131 | /ex111/utilidadescev/moeda/__init__.py | bd0def54dfeb7a94e37473fc89d39d79370bb5b3 | [] | no_license | gguilherme42/CursoEmVideo_Python | 0483f092fe6563bc97a260ca07c2d4f1f882ac61 | 54eec56e98ae71dbb2ba02eb6904cd236a42be70 | refs/heads/master | 2021-01-06T15:15:25.194038 | 2020-04-27T22:19:42 | 2020-04-27T22:19:42 | 241,374,850 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | '''
Exercício 110:
Crie um pacote chamado utilidadezCeV que tenha dois
módulos internos chamados moeda e dado.
Transfira todas as funções utilizadas nos desafios 107,
108 e 109 para o primeiro pacote e mantenha tudo funcionando.
'''
def moeda(n=0, moeda='R$'):
return f'{moeda}{n:.2f}'.replace('.'... | [
"[email protected]"
] | |
1ab177bf9094897a7f5e1adc529942f3e0d1ed73 | ccfe4e0bb18b46b4dd5ce4503ae54b1eaae3bba5 | /scripts/queue_splitter.py | 3e43004ca4b1cfebde60515da52ec0887e608299 | [
"ISC"
] | permissive | dimitri/skytools | 5cb67f5f581ab16acd8b84d78ba5cc9e05b9cb56 | 37ec8fc09ba897b02a1ca871055eb69a00deceae | refs/heads/master | 2021-01-15T18:05:21.396894 | 2011-10-17T15:06:18 | 2011-10-17T15:06:18 | 1,082,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | #! /usr/bin/env python
"""Puts events into queue specified by field from 'queue_field' config parameter.
Config parameters::
## Parameters for queue_splitter
# database locations
src_db = dbname=sourcedb_test
dst_db = dbname=destdb_test
# event fields from where target qu... | [
"[email protected]"
] | |
3d8f5d713d82e1349cb2ac1a43f58dec0dd32a96 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/analysis/AnalysisTask.pyi | 2450f5f4a1e96ac652add615aed51765563f62a3 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | pyi | import ghidra.framework.cmd
import ghidra.framework.model
import ghidra.util.task
import java.lang
class AnalysisTask(ghidra.framework.cmd.BackgroundCommand):
def __init__(self, __a0: ghidra.app.plugin.core.analysis.AnalysisScheduler, __a1: ghidra.app.util.importer.MessageLog): ...
@overload
def ap... | [
"[email protected]"
] | |
84e01bd5afe8578563e994e94102bc3484de4101 | 61f921e1ee1d2461ba420ef33b854a53f2169c6f | /tests/test_designer.py | db1e8f9269f74adb0a3615adadb84e9a73b768fe | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jsheppard95/typhon | 420ef80b8568dec76bb0551301354144d9bf18ea | 072e3cd821068f7f148d9ed7bffe58abc5a4d7d4 | refs/heads/master | 2020-04-18T09:48:18.368334 | 2019-01-23T21:44:21 | 2019-01-23T21:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from typhon.designer import TyphonSignalPanelPlugin
def test_typhon_panel_plugin_smoke():
tpp = TyphonSignalPanelPlugin()
| [
"[email protected]"
] | |
2327f182abd9ddab4db6d24bdc1284e162f57a56 | 8dae5a0fa4efcb3cdef596b58f0ebfcd7b73e315 | /skidl/__init__.py | 7ef3364ad1afd33243b357d244c0b49270544f98 | [
"MIT"
] | permissive | andrewjaykeller/skidl | 94c790b9ffaf3c6948b38569e890d29cfff73b12 | 89cb53dc142c51c620223a14164b158407685505 | refs/heads/master | 2020-05-17T21:50:03.570986 | 2019-04-19T19:55:39 | 2019-04-19T19:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
"""SKiDL: A Python-Based Schematic Design Language
This module extends Python with the ability to design electronic
circuits. It provides classes for working with:
* Electronic parts (``Part``),
* Collections of part terminals (``Pin``) connected via wires (``Net``), and
* Groups of related n... | [
"[email protected]"
] | |
cf80ca5edffa2b7ae75c87fed73d72279668bf58 | 8b926cf341d6294deac60949e19716a1bccf80e3 | /day3/functions/10.py | 0fd509940291d6ab4dc6bc2c350e549de0843374 | [] | no_license | shobhit-nigam/qberry | dc041ecb7468ef04545c761636cb605660105f8e | 54d8988ddf9c1301174b23c9c02c3b3b9b3473c0 | refs/heads/main | 2023-08-07T02:39:19.426236 | 2021-10-07T12:53:00 | 2021-10-07T12:53:00 | 413,307,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def funca (la=55, lb=77, lc=66):
return la+lb, la+lc, "hey", [la, lb, lc]
u, v, w, x = funca(100, 22, 10)
print("u =", u)
print("v =", v)
print("w =", w)
print("x =", x)
# error
u, v = funca(100, 22, 10)
| [
"[email protected]"
] | |
36fd3ec3e343ef9210b2a247491bed58499851a0 | 9463d85666453fd8e57a0ce9e515e4765ae2b60a | /cwpoliticl/cwpoliticl/scraped_websites.py | 1b5c36189affb30506c8ee8cbbc97f9b239d97d0 | [
"MIT"
] | permissive | trujunzhang/djzhang-targets | dc6c3086553a5450fb239cc1cef5330a51a02e1f | c2e327acde9d51f0455e7243f17d93d74b579501 | refs/heads/master | 2021-01-09T20:52:31.258826 | 2016-07-16T13:18:53 | 2016-07-16T13:18:53 | 60,747,429 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | from enum import Enum
from cwpoliticl.extensions.dailyo_parser import DailyoParser
from cwpoliticl.extensions.deccanchronicle_parser import DeccanchronicleParser
from cwpoliticl.extensions.dnaindia_parser import DnaIndiaParser
from cwpoliticl.extensions.firstpost_parser import FirstPostParser
from cwpoliticl.extension... | [
"[email protected]"
] | |
65356e5dbd131f3cc166ec4c8ccf3afb28c990af | daa3498147304fe617b8b77a38bc96bb9a8f6d6c | /archs/core/wideresnet.py | 75186cfbaa58b8ade7c484fc2bf077c0e9b12c14 | [
"MIT"
] | permissive | gatheluck/archs | 9a13050f0b217d8f24528d0e0743c63190fa3f0c | 23adfd71ae3b1f73416c59e82af80698cb2e593e | refs/heads/master | 2023-03-10T08:34:26.917271 | 2021-02-19T03:13:14 | 2021-02-19T03:13:14 | 333,693,669 | 0 | 0 | MIT | 2021-02-28T13:34:10 | 2021-01-28T08:27:24 | Python | UTF-8 | Python | false | false | 5,584 | py | import math
from typing import Type, Union
import torch
from torch import nn
from torch.nn import functional
__all__ = ["wideresnet16", "wideresnet28", "wideresnet40"]
class BasicBlock(nn.Module):
def __init__(
self, in_planes: int, out_planes: int, stride: int, droprate: float = 0.0
) -> None:
... | [
"[email protected]"
] | |
75948801b21c5fbd376936925ab4134c3dfaedec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02397/s703752111.py | c76263628dfd6c936ed83609679a4b2b18dfa38d | [] | 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 | 190 | py | for i in range(3000):
a = input().split()
x = int(a[0])
y = int(a[1])
if x + y == 0:
break
elif x < y:
print(x,y)
elif y < x:
print(y,x)
else:
print(x,y)
| [
"[email protected]"
] | |
7458d7f380e6667abd2fe6bb0b1909024baa0a30 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/84/23549/submittedfiles/main.py | c42463e6d42fbe22f24ac4b3c428bb369aaa1b15 | [] | 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 | 291 | py | # -*- coding: utf-8 -*-
from __future__ import division
import funcoes
#COMECE AQUI
m=input('digite o numero m de termos da formula de pi:')
e=input('digite o epsilon para o calculo da razao aurea:')
print('%.15f'%(funcoes.calcula_pi(m)))
print('%.15f'%(funcoes.calcula_razao_aurea(m,e)))
| [
"[email protected]"
] | |
cedd6424f3d86009eb50c26c71ae2df8dd7d90cd | c1fdff5522b65fbff697d5445ef018f5a4c4d39f | /src/profiles_project/profiles_api/urls.py | 1570d40b697fc89f4ce5e8252b65c87fedc2fb79 | [] | no_license | jimpalowski/2nd-REST | 858f2ac4b38e59ec275cbcbb682a929bc8052a50 | e7e51da345332b5a5f854076b46776677f2f7571 | refs/heads/master | 2021-04-26T23:53:44.496698 | 2018-03-05T06:44:51 | 2018-03-05T06:44:51 | 123,876,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py |
from django.conf.urls import url
from django.conf.urls import include
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset')
router.register('profile', views.UserProfileViewSet)
router.register('lo... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.