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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d74f9bc9792a616e6c0933d06f78cde2201693ba | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc008/B/3719594.py | b69ea63898a0d7baadd01fe4aaeb65de1040ec21 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | N, K = map(int, input().split())
A = [int(a) for a in input().split()]
Plus, Whole = [0], [0]
for i in range(N):
Plus.append(Plus[-1] + max(A[i], 0))
Whole.append(Whole[-1] + A[i])
Score = max(max(0, Whole[K] - Whole[0]) + Plus[N] - Plus[K], Plus[N-K] - Plus[0] + max(0, Whole[N] - Whole[N-K]))
for i ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
e3b1ca32371f220e5494e925dba257fd3aaf7afc | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/826.py | 291cb5bbbf8d6b2a6f742b0274197291c8258dd9 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # 弱智方法
class Solution:
def maxProfitAssignment(self, difficulty: List[int], profit: List[int], worker: List[int]) -> int:
w, p = {}, {}
for d,pri in zip (difficulty, profit):
w[d] = 1
if d in p:
p[d] = max(pri, p[d])
else:
p[d] = pr... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
2909cf54ad06e7340aeb3128d7794c1718acc4d6 | 76a6890c01006fff69a920719df0065e6109a5e9 | /full_django_blog/myblog/views.py | bba2acc11ab84388f7f433b809dac48a52bc09c4 | [] | no_license | prathmesh2048/full-django-blog | 0c94ce08c1a17b74c21420d4e658f1b5b5fe12d6 | b25c9af1d25b1677cf82b929d133f1067109b26b | refs/heads/master | 2022-11-21T21:50:39.990007 | 2020-07-23T15:59:39 | 2020-07-23T15:59:39 | 281,994,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.http import Http404
from django.shortcuts import render, redirect
from django.urls import reverse_lazy, reverse
from .models import Post
from django.utils.decorators import method_decorator
fr... | [
"prathmeshnandurkar123@gmail.com"
] | prathmeshnandurkar123@gmail.com |
32af5f9daa05db8a9394c42989ce82fece01f08d | 180a3795a115c0da71078f81efbde45ab2025ca0 | /machine_learning_book/CH02/plot.py | 614ec79097c9a7d30eb96456cd9a02dddfa28638 | [] | no_license | lizhe960118/Machine-Learning | a7593e6788433408bcf072e5e25672debd931ee4 | 2d6fe2373839964645d632895ed2a7dcb9de48b0 | refs/heads/master | 2020-03-31T15:53:57.408037 | 2019-08-18T12:29:11 | 2019-08-18T12:29:11 | 152,355,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # import matplotlib
import matplotlib.pyplot as plt
import KNN
from numpy import *
datingDataMat, datingLabels = KNN.file2matrix('datingTestSet2.txt')
# print(datingDataMat[0:100])
# print(datingLabels[0:20])
fig = plt.figure()
ax = fig.add_subplot(111)
'''
这些是编码为单个整数的子图网格参数。
例如,“111”表示“1×1 grid,first subplot”,“234”表... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
902bc632e7a592419bfbdd250fd9fe501cfafc04 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/todo/solutions/multidim_2_volumetric.py | dc13ecfee2d90c85abdd280d18d22bef9a5a7d1f | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | def exo1():
"""
Implement the forward wavelet transform by iteratively applying these
transform steps to the low pass residual.
nitialize the transform
"""
MW = M
for j in 1: log2(n):
p = n/ 2^(j-1)
sel = 1: p
% average/ difference along X
MW(sel, sel, sel) = ... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
cb4bacfba02f35a4b06e50b9536f97f7af866298 | 7bd9be7f25be80791f9220b62025f06170273293 | /front-plugins/zstatuses/py_cerebro/__init__.py | aa488f1dd5c398d45e43845090805cd67b2b34de | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
"""
py_cerebro package contains modules that provide program interface for file storage (Cargador) and database.
The package includes the following modules:
* :py:mod:`py_cerebro.database` -- access to the database to execute :ref:`SQL-queries <sapi-sql>`.
* :py:mod:`py_cerebro.dbtypes` -- d... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
a519345197a1a925a18bcdcaa5c384edde2d15d1 | c8335705ff06641622668c9b0a3020df9213bc77 | /core/migrations/0013_productpage.py | aae0848edcfab0b1936b19b0cfb191c9132025ec | [] | no_license | Richardh36/ANS | 0adedcc760a6acbf539c8cbedde8edc28186218a | 2c46d36cf349f3ab8556bf713d2a0125c415029a | refs/heads/master | 2016-09-11T02:42:21.952145 | 2015-05-03T14:03:10 | 2015-05-03T14:03:10 | 34,852,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0013_update_golive_expire_help_text'),
('core', '0012_contactpage_intro'),
]
operations = [
migration... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
f28bd4048ae55c0248d5c639b87f134d62a85807 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /088_3.py | 4cfa9bc9edcedf2f4efdb6f13e6e3b3d9d40b18f | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# @Time : 2021-05-13 13:12
# @Author : zxl
# @FileName: 088_3.py
class Solution:
def merge(self, nums1 , m: int, nums2 , n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
if n==0:
return
p = m+n-1
... | [
"791057615@qq.com"
] | 791057615@qq.com |
40bef4374a23d5005e5255ead7feb9767a4d762d | d33352f90d3d046e2e2fa55a123b4b2828260fc3 | /LeetcodePython/Sqrt(x)69.py | 9a627c1f67d9355bb70af15dd91c73dbdcb574e3 | [] | no_license | DianaLuca/Algorithms | 272c27d7d5fa4b7aa03e7500af01a4d67f15d0bf | b3a2013d1c3c7a5a16727dbc2ecbc934a01a3979 | refs/heads/master | 2021-09-11T12:37:00.334011 | 2018-04-07T00:17:57 | 2018-04-07T00:17:57 | 68,707,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Implement int sqrt(int x).
# Compute and return the square root of x.
class Solution(object):
def mySqrt(self, x):
"""
:type x: float
:rtype: float
"""
l, r = 0, x
while l + 1e-6 <= r:
print(l, r)
m = l + (r - l)/2
if m**2 <= x... | [
"lucadiana88@gmail.com"
] | lucadiana88@gmail.com |
dc039f93edf88b962ac46de478b4828a0973415a | 15a676a82a1344726172e5f422cf0ae56505be69 | /src/web/controller/spiderController.py | e555bdcf6a620c0e3da10c75e74f0176912cfc97 | [
"MIT"
] | permissive | 343695222/QQZoneMood | 35c12291ddf58c2571646723b7b8167da3912195 | 1c406d26bb63681e26d986bce57ab402808bf48a | refs/heads/master | 2020-08-20T19:45:35.602392 | 2019-10-14T06:26:29 | 2019-10-14T06:26:29 | 216,059,716 | 1 | 0 | MIT | 2019-10-18T15:57:34 | 2019-10-18T15:57:33 | null | UTF-8 | Python | false | false | 8,208 | py | from flask import Blueprint, session
import json
from src.util.constant import *
from flask import request
from src.spider.main import web_interface
import threading
from time import sleep
from src.web.controller.dataController import do_clear_data_by_user
from src.web.web_util.web_constant import INVALID_LOGIN, SUCC... | [
"maicius@outlook.com"
] | maicius@outlook.com |
0cac1a24f83e80e5ba1a814ae54c5fd731b17ba7 | eb38517d24bb32cd8a33206d4588c3e80f51132d | /grayscale.py | 5a20f7197e61735bd1df50f7d333c75f69b6fa50 | [] | no_license | Fernando23296/l_proy | 2c6e209892112ceafa00c3584883880c856b6983 | b7fdf99b9bd833ca1c957d106b2429cbd378abd3 | refs/heads/master | 2020-04-01T18:01:41.333302 | 2018-12-04T23:45:53 | 2018-12-04T23:45:53 | 153,466,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import cv2
image = cv2.imread('ex6.png')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow('Original image', image)
cv2.imshow('Gray image', gray)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"fernando23296@gmail.com"
] | fernando23296@gmail.com |
4bc12c51c6a8d4ba96daf796d0e2e6a2bb932602 | 787344a140b1f1ca05277b44dbf72fda3fa25cda | /bin/send_reports.py | 504319ea16ef9ba6c2a8c41f9fcdcd965bba3976 | [
"MIT"
] | permissive | poldrack/r-autograder | 6785b40dbd3011dfe5fb47c134c66a8d18985d21 | 58ab96bed7456aef2cec9e01ff6eff23daec0425 | refs/heads/master | 2020-12-29T22:57:53.816305 | 2020-03-05T22:33:24 | 2020-03-05T22:33:24 | 238,765,808 | 3 | 0 | null | 2020-02-06T19:25:53 | 2020-02-06T19:20:10 | Python | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python
"""
send reports to students automatically
set up postfix gmail relay ala:
https://www.justinsilver.com/technology/osx/send-emails-mac-os-x-postfix-gmail-relay/
http://postfix.1071664.n5.nabble.com/MacOS-High-Sierra-10-13-and-Postfix-relaying-td93421.html
date | mail -s "Test Email" poldrack@gma... | [
"poldrack@gmail.com"
] | poldrack@gmail.com |
1b64159778f2c89847c2b168143a6810ad3f4711 | 5178f5aa20a857f8744fb959e8b246079c800c65 | /01_basic/text/src/03/if_ex3.py | fca268651ddcee0a837d8890fbf57c1392c708e2 | [] | no_license | murayama333/python2020 | 4c3f35a0d78426c96f0fbaed335f9a63227205da | 8afe367b8b42fcf9489fff1da1866e88f3af3b33 | refs/heads/master | 2021-05-19T04:03:46.295906 | 2021-03-09T22:23:58 | 2021-03-09T22:23:58 | 251,520,131 | 0 | 3 | null | 2020-10-26T01:20:09 | 2020-03-31T06:35:18 | Python | UTF-8 | Python | false | false | 153 | py | user_id = input("USER ID: ")
password = input("PASSWORD: ")
if user_id == "Alice" and password == "pass":
print("Success")
else:
print("Error")
| [
"murayama333@gmail.com"
] | murayama333@gmail.com |
2bd783713fc5e7f9ca1abcb919e06d59ee812dd5 | 05d3b4d5e0a2b531429434f4500a0f60ec63785d | /Method_Using range in a function.py | f264dfbe02f502becf77e7fae829ed8d8c234943 | [] | no_license | golfnut1400/Python201 | 8fcce72bfee78aafef230b5fdb1bc47bad51b829 | 311a6d7d55b5e2f76623809102c58ef70464a722 | refs/heads/master | 2021-09-03T06:33:49.792487 | 2018-01-06T13:38:58 | 2018-01-06T13:38:58 | 110,043,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py |
import random
def request_range(start, end):
x = random.randrange(start,end) # creates a random number from the 2 arguments
print(x)
request_range(1,1000) # calls the request_range function and passes the 2 arguments
| [
"srcorpuz@hotmail.com"
] | srcorpuz@hotmail.com |
e4bc1036fc2022301460be8634e270c0ff35dfdc | 8ca045c0b94729222e8f3ffe184c0d4f564418c4 | /Image/composite_bands.py | 5969cc2f6e8204679acd4bee99030483ca72b467 | [
"MIT"
] | permissive | levi-manley/earthengine-py-notebooks | bc77632ca22ca85c0092c18f1eb8321abfbe874a | f5a888ddb6834f164e7399b20c683fb9cf604465 | refs/heads/master | 2021-01-02T12:17:27.974005 | 2020-02-09T02:59:20 | 2020-02-09T02:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Image/composite_bands.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" hr... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
369fd4ab3b738c3c268ae4549cc141ea8c623db8 | e5f5468ba082b1c057ac4167831aab95aa7c0d27 | /backend/home/migrations/0002_load_initial_data.py | c6bfce958c6507b9aeb1cb4243b11fe43b59d7ea | [] | no_license | crowdbotics-apps/mobile-28-oct-dev-14129 | bd98341f59a15200661a3896b1288b229247b906 | 02abe8260760b9eef10871767982e8407642b9b9 | refs/heads/master | 2023-01-09T13:41:10.439050 | 2020-10-28T11:31:33 | 2020-10-28T11:31:33 | 307,911,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mobile 28 oct"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
87294359d3c089c38ac1634f9454dd7fffc84699 | 943dca755b940493a8452223cfe5daa2fb4908eb | /abc114/c.py | b6b7ae6b28b7b8b6d6eff7f89534a53858c8d4db | [] | no_license | ymsk-sky/atcoder | 5e34556582763b7095a5f3a7bae18cbe5b2696b2 | 36d7841b70b521bee853cdd6d670f8e283d83e8d | refs/heads/master | 2023-08-20T01:34:16.323870 | 2023-08-13T04:49:12 | 2023-08-13T04:49:12 | 254,348,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | n=int(input())
c=0
def a(i):
if int(i)>n:
return 0
r=1 if all(i.count(c)>0for c in '753') else 0
for c in '753':
r+=a(i+c)
return r
print(a('0'))
| [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
105f6318e16efd787729c4524688009e64c39a6b | 57023b55d9e136b8e2527e2c666b053f73bb6bc9 | /get_url.py | 9e8146918c444ca7b18e1f93400b9904f267d58e | [] | no_license | zengzhiyi/zhuanzhuan_pyspider | f98867742d9f7c760d7274528f85e91439964a48 | 4f27f410a75acec467de4fa73b759cb8a4d6351a | refs/heads/master | 2021-01-13T10:55:28.659431 | 2016-10-29T11:34:56 | 2016-10-29T11:34:56 | 72,281,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from pyspider.libs.base_handler import *
import pymysql
class Handler(BaseHandler):
crawl_config = {
}
#
# def __init__(self):
# self.db = pymysql.Connect('localhost', 'localhost', '123456', data=)
start_url = 'http://www.zhuanzhuan.com/'
grab_url = 'http://zhuanzhuan.58.com/detail/7... | [
"zengzhiyi@gearblade.com"
] | zengzhiyi@gearblade.com |
40b7f46aecadddd429b5ea68491717f4c62a0d36 | a4ecd7798cfa04676e892898774d1e5824b095fb | /distributed/utils.py | 8e2136a99c71da5584d431ba41d5733e85db4cb9 | [] | no_license | kevineriklee/distributed | c48ccb6086861c1adb2a5d7091d792a923387a27 | b0b7c27e4ee6d7b5eebe6569fcf29b32418be440 | refs/heads/master | 2020-12-24T21:27:06.374245 | 2016-02-03T12:43:06 | 2016-02-03T12:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | from __future__ import print_function, division, absolute_import
from collections import Iterable
from contextlib import contextmanager
import logging
import os
import re
import socket
import sys
import tempfile
import traceback
from dask import istask
from toolz import memoize
from tornado import gen
logger = logg... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
7fd3ef46896d70511ef8915b44227ec5c7aea8e2 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/query-tests/Expressions/general/compare.py | 141b5e6a0286eb0877da38d45efaf28b0cf9277e | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 327 | py |
#OK
a = b = 1
a == b
a.x == b.x
#Same variables
a == a
a.x == a.x
#Compare constants
1 == 1
1 == 2
#Maybe missing self
class X(object):
def __init__(self, x):
self.x = x
def missing_self(self, x):
if x == x:
print ("Yes")
#Compare constants in assert -- ok
assert(1... | [
"mark@hotpy.org"
] | mark@hotpy.org |
ca8a8ac861ee58b34eefc98e9160ef198072392a | 145439ad19a9c3c9d40f805ccf9ff5794ca28d62 | /senseplot_es.1.py | 541013ab8d2377881041a491815ab1ede5137190 | [] | no_license | emawind84/sensehat-discotest | f5b122f004eee4e74ba63322aecb723d7a191583 | 87a7aff71969ef9beab0120eaddc132e0d16b561 | refs/heads/master | 2020-05-21T04:27:43.090658 | 2017-10-10T14:30:52 | 2017-10-10T14:30:52 | 46,617,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | #!/usr/bin/env python
import csv
import sys
import logging
import argparse
import matplotlib
import requests
import json
import dateutil.parser
matplotlib.use("Agg")
import matplotlib.dates as md
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s')
_logger = logging... | [
"emawind84@gmail.com"
] | emawind84@gmail.com |
640b1981de612c8310929ae47e05cb72c6ab8ffd | 243d0543f8d38f91954616c014456122292a1a3c | /CS1/0340_lists/challenge1.py | 34564036d9d41147eeed4c7ecb4f996fdaf78e98 | [
"MIT"
] | permissive | roni-kemp/python_programming_curricula | 758be921953d82d97c816d4768fbcf400649e969 | eda4432dab97178b4a5712b160f5b1da74c068cb | refs/heads/master | 2023-03-23T13:46:42.186939 | 2020-07-15T17:03:34 | 2020-07-15T17:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py |
#For 35 points, answer the following questions.
'''1. Write a function that takes a single number named x and returns
a list of all the numbers from x to 0 in descending order. For example,
if 5 is passed to the function, then the function should return a list
that equals [5,4,3,2,1,0].'''
'''2. The following p... | [
"neal.holts@gmail.com"
] | neal.holts@gmail.com |
65d7ff9326e1b49582142df46e4ec8e58c0ea585 | 32fdc94d1b8d98085db5d1e8caae4161d3e70667 | /3rd_party/python3.7/lib/python3.7/site-packages/aliyunsdkcore/acs_exception/exceptions.py | c5a3152d161d237e31cef9651573890127244bbf | [
"Python-2.0"
] | permissive | czfdlut/ticket_proxy | fa0f1924a86babfa7ce96cf97e929f7bf78643b7 | 0d7c19448741bc9030484a97c1b8f118098213ad | refs/heads/master | 2022-12-23T05:25:58.207123 | 2019-11-20T03:58:31 | 2019-11-20T03:58:31 | 174,579,562 | 1 | 3 | null | 2022-12-18T01:18:07 | 2019-03-08T17:22:48 | Python | UTF-8 | Python | false | false | 2,808 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"czfdlut@163.com"
] | czfdlut@163.com |
462c1c5536931ffd74fe6adb0021f49f47a22917 | c4c4a825e361d15aa60603e52195bbeea2b31ad8 | /src/generator.py | ae550a23acdbb4d5b1895b970705ac88b8b828f5 | [] | no_license | brianyu28/accompaniment | cabb55cd26f6e0525dc60df7a493430860b702e8 | a2dd062631d7316bda38823ca23ea6fba33aafb4 | refs/heads/master | 2021-08-24T08:02:45.675990 | 2017-12-08T19:28:06 | 2017-12-08T19:28:06 | 109,048,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import os
import uuid
from contextlib import redirect_stdout
from midi2audio import FluidSynth
from midiutil import MIDIFile
from pydub import AudioSegment
def generate(filename, sequence, configuration, mls, volumes):
"""
Generates merged audio file.
"""
print("Generating accompaniment audio...")
... | [
"brianyu28@gmail.com"
] | brianyu28@gmail.com |
d81fb844ab079e8c36d9a292a808fafb58ad814e | bde2d795de28f9bbfc414752cc49d8ec3e0f00fd | /syntext/test/test_dynamical_load_classes.py | 3f642821f1fa935e8ad25d61bfc44709cb6d2ac1 | [] | no_license | lem89757/syntext | b934cd9339fb938db1c0bb9228852cec3d6e5a03 | 9d3e2e9bb68b325122072d8378217623d3804641 | refs/heads/master | 2022-12-01T20:06:25.328315 | 2020-08-18T04:38:06 | 2020-08-18T04:38:06 | 294,897,996 | 1 | 0 | null | 2020-09-12T07:57:33 | 2020-09-12T07:57:32 | null | UTF-8 | Python | false | false | 370 | py | from syntext.utils.utils import dynamic_load
from syntext.text.generator import TextGenerator
module_name = "syntext.text.generator"
modules = dynamic_load(module_name, TextGenerator)
for module in modules:
print(module)
# RUN: python -m syntext.test.test_dynamical_load_classes
def test_fake_print(*arg):
pr... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
36cf57e1c202ca5edbc650d557e7ec4d3e91c89f | c426a94f2e48a464a19076e4bea5d9553f11a979 | /src/collective/cover/tests/test_refresh_behavior.py | 9a99f022cfdeafc14722093a42b8a39cb6dacf3a | [] | no_license | Mubra/collective.cover | 36932c5ed3df295a9079db5e2786765370b68fcd | 410254dc73093181637e7982c25d18f63936fcb1 | refs/heads/master | 2020-07-31T18:49:26.617963 | 2019-10-01T15:18:52 | 2019-10-01T15:18:52 | 210,716,653 | 1 | 0 | null | 2019-10-01T15:18:54 | 2019-09-24T23:43:28 | Python | UTF-8 | Python | false | false | 2,325 | py | # -*- coding: utf-8 -*-
from collective.cover.behaviors.interfaces import IRefresh
from collective.cover.interfaces import ICoverLayer
from collective.cover.testing import INTEGRATION_TESTING
from plone import api
from plone.behavior.interfaces import IBehavior
from plone.dexterity.interfaces import IDexterityFTI
from ... | [
"hector.velarde@gmail.com"
] | hector.velarde@gmail.com |
66b3e2d6486ac2860cf3d9dc0e2ce7f27b2b2f61 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-rapidmigrationassessment/samples/generated_samples/rapidmigrationassessment_v1_generated_rapid_migration_assessment_create_collector_async.py | e8096a9b9f9911d1e03ce9c62faa838ef80f8c2b | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,128 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# 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 or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
7ae1c12e9f2be77ce9f0ab92c3f38e121f1a177c | 0b79d66196e9bef7cf81c0c17b6baac025b0d7f1 | /apps/institute/exchange/models/trans.py | 4df3228dfa5fefa15caa4a09069fda9dca77b0a5 | [] | no_license | tsevindik/sis-back | bf0244a803ba9432980844ff35498780ac664564 | 4ba942fe38cc150c70898db4daf211213b84a61a | refs/heads/master | 2021-03-24T09:35:49.199712 | 2017-01-25T08:19:37 | 2017-01-25T08:19:37 | 73,540,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.utils.translation import ugettext_lazy as _
from django.db import models
from utils.models import trans as trans_models
from . import main
class ExchangeProgramTrans(trans_models.Translation):
neutral = models.ForeignKey(
main.ExchangeProgram
)
name = models.CharField(
max_len... | [
"abdullahsecer@std.sehir.edu.tr"
] | abdullahsecer@std.sehir.edu.tr |
e4ad7da2163fa94929de33817be367d5a2304aa4 | 9c9c6b8deca524c9401dd24d19510d3843bebe4b | /lib/rosserial-0.7.7/rosserial_python/nodes/message_info_service.py | 255dc0b61ed3c8c8ee470478ca83f71d4bb5d3c3 | [
"MIT"
] | permissive | tku-iarc/wrs2020 | 3f6473c2f3077400527b5e3008ae8a6e88eb00d6 | a19d1106206e65f9565fa68ad91887e722d30eff | refs/heads/master | 2022-12-12T20:33:10.958300 | 2021-02-01T10:21:09 | 2021-02-01T10:21:09 | 238,463,359 | 3 | 8 | MIT | 2022-12-09T02:09:35 | 2020-02-05T14:00:16 | C++ | UTF-8 | Python | false | false | 3,811 | py | #!/usr/bin/env python
#####################################################################
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Clearpath Robotics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | [
"dual-arm@dualarm.com"
] | dual-arm@dualarm.com |
e5ea6a00ec40529047d2c1c4091f48835b8d9bcf | ba3cd834eb2810dd672e026f5f809b8b32918052 | /app/models.py | c55325761c7e8e42ece2616e51e8e8765ad45bc3 | [] | no_license | JellyWX/stripe-donations | 6f9fb789fdfb09417b33964edf1c8c7083d7e248 | 1c4b38dace0c952dfb7a7eb425f83069312fed6a | refs/heads/master | 2020-03-21T01:06:57.410200 | 2018-07-23T17:29:56 | 2018-07-23T17:29:56 | 137,925,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from app import db
class SimpleUser(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String)
email = db.Column(db.String, index=True, unique=True)
user_id = db.Column(db.Integer, unique=True)
| [
"judewrs@gmail.com"
] | judewrs@gmail.com |
d7826c4912bd789949d878121f50e3572b86da3f | d05c946e345baa67e7894ee33ca21e24b8d26028 | /general/detect-fraudulent-transactions/producer.py | 158ba419a43b331f7a476d98ab26bb4e9fd7350e | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 641 | py | import os
import json
from time import sleep
from kafka import KafkaProducer
# import initialization parameters
from settings import *
from transactions import create_random_transaction
if __name__ == "__main__":
producer = KafkaProducer(bootstrap_servers = KAFKA_BROKER_URL
#Encode all ... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
fe18a1b59c75b08af2133e32331902343921e6ae | 5cd7a8e67a911d1a5562488349db38979ff1c047 | /CSV/exercise 25.1/exercise 25.1.py | 066d70d3f7456650d769f9e18d8de7595b1fc119 | [] | no_license | IshaanBAgrawal/Day-25 | 3f154186b040de35b19908fb790807954f5805dc | 070ab3178c5aa3dde25391e69065e08a69665ee1 | refs/heads/master | 2023-07-01T18:45:27.997485 | 2021-08-10T10:04:41 | 2021-08-10T10:04:41 | 394,603,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import pandas
squirrel_data = pandas.read_csv("Central_Park_Squirrel_census.csv")
print(type(squirrel_data))
squirrel_fur_color = squirrel_data["Primary Fur Color"]
black = 0
gray = 0
cinnamon = 0
for color in squirrel_fur_color:
if color == "Black":
black += 1
elif color == "Gray":
gray += 1
... | [
"agrawalishaan115@gmail.com"
] | agrawalishaan115@gmail.com |
65cdcdf0253ddb4b8e88d7d4ee6ec35326b939af | 8e1844578805b43b7b5ef81b6a4efb85e5481af2 | /sysfacts/api.py | 0ea674167d2cec14bf352976739e2419bbfcdd07 | [
"MIT"
] | permissive | pmav99/sysfacts | d73720c42d00b5d8327e483cef0221bacd13035e | 09a5658a8f4e789db71844759dd4ae61369f4f4a | refs/heads/master | 2020-04-17T14:08:13.182321 | 2019-01-25T20:20:36 | 2019-01-25T23:31:03 | 166,644,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # from __future__ import annotations
import platform
import cpuinfo # type: ignore
import distro # type: ignore
import pendulum # type: ignore
import psutil # type: ignore
# TODO @##@#$! mypy
def _to_dict(named_tuple) -> dict:
return dict(named_tuple._asdict())
def get_timestamp() -> str:
return str(p... | [
"pmav99@gmail.com"
] | pmav99@gmail.com |
07931e2f7377890e3555fc52ea41e287579a4de0 | c62fc7366ba080c22d54249561ce572dee085f07 | /tests/test_widget_selectdate.py | bc18260ede55a64d3e9fa4d93660e608ef939aa2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | wendelas/django-material | 9b69e7040e7279b88e45f82ad6aea33a46a82d02 | e29d1568bd450a8066b637d0018a9bf07d2f7948 | refs/heads/master | 2021-01-13T15:45:24.107306 | 2015-12-31T02:19:17 | 2015-12-31T02:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import json
from django import forms
from django.test.utils import override_settings
from django_webtest import WebTest
from . import build_test_urls
try:
from django.forms.widgets import SelectDateWidget
except ImportError:
# django 1.8
from django.forms.extras import SelectDateWidget
class SelectForm(... | [
"kmmbvnr@gmail.com"
] | kmmbvnr@gmail.com |
7407c2e2b17c0229bc90b732819e8d9409972b16 | 8b6cd902deb20812fba07f1bd51a4460d22adc03 | /.history/back-end/djreact/articles/api/urls_20191212170930.py | 3e7b419002f664981ec5529074a7a5d3fed5aac1 | [] | no_license | vishaldenzil/Django-react- | f3a49d141e0b6882685b7eaa4dc43c84857f335a | 35b6d41f6dacb3bddcf7858aa4dc0d2fe039ff98 | refs/heads/master | 2022-11-08T09:27:02.938053 | 2020-05-29T04:53:52 | 2020-05-29T04:53:52 | 267,768,028 | 0 | 1 | null | 2022-10-15T14:08:30 | 2020-05-29T04:52:20 | Python | UTF-8 | Python | false | false | 250 | py | from django.urls import path
from .views import ArticleDetailView,ArticleListView,ArticleCreateView
urlpatterns = [
path('',ArticleListView.as_view()),\
path('<pk>',ArticleCreateView.as_view())
path('<pk>',ArticleDetailView.as_view()),
] | [
"vishal.denzil@ezedox.com"
] | vishal.denzil@ezedox.com |
9d21e326eec729c6206b1528818da7493cf0a122 | 01fbe5abd060ecedda70c7ae5db928e2bc3371e2 | /scripts/git-sync | 12ace2c00429c60c12eba6750aa8f66539612904 | [] | no_license | arecker/bastard | a3911c7c0abc53c4f254bb1c492fa0fccfad0283 | 2e3ab598022dba127503e4f55b43cb0e755c3cd2 | refs/heads/master | 2022-03-14T23:19:13.883117 | 2019-12-02T22:02:51 | 2019-12-02T22:02:51 | 198,136,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | #!/usr/bin/env python
import argparse
import datetime
import logging
import os
import sys
def get_logger(verbose=False):
if verbose:
level = logging.DEBUG
else:
level = logging.INFO
logger = logging.getLogger('git-sync')
logger.setLevel(level)
handler = logging.StreamHandler(sys.s... | [
"alex@reckerfamily.com"
] | alex@reckerfamily.com | |
abddd850b8a545171a5c6c097c1615a2f5a038b0 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/107006040.py | a26c23e1f479d456f90f6ff07e4618f40f826786 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,065 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'MC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'G62', MIN: 0, MAX: 10},
{ID: 'AT5', MIN: 0, MAX: 99},
{ID: 'PR', MIN: 0, MAX: 99... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
e2b7411a8ee36f2d8980496e3c37c414729356fb | 74091dce735f281188d38d2f00d1a68e1d38ff7a | /network_programs/bridge_demo/bridge.py | 9763824c4e75dcdb9d39fd950ea0f3be209e0614 | [] | no_license | nbiadrytski-zz/python-training | 96741aa0ef37bda32d049fde5938191025fe2924 | 559a64aae2db51e11812cea5ff602f25953e8070 | refs/heads/master | 2023-05-07T04:08:23.898161 | 2019-12-10T12:12:59 | 2019-12-10T12:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | import serial
sr = serial.Serial('/dev/tty.usbserial-14200', 115200)
sr.write(b'hello\n')
sr.s
print(sr.readline().decode('utf-8')) | [
"Mikalai_Biadrytski@epam.com"
] | Mikalai_Biadrytski@epam.com |
0a07372dde34fc99c3a5e21470fc0c5ab2b738c3 | 43c96941aae099dd0d01120fd22abaccd6e55b21 | /tests/test_instantiate.py | e3bd9a88fdd63583d743b475da8789f3560c831d | [
"BSD-3-Clause"
] | permissive | agoose77/widget-ts-cookiecutter | 6ddba56c724d9dba6f0d667f23cdab84ed5f9faf | bd6825f02bfd5dc34965024d68dc3f69700863c4 | refs/heads/master | 2023-03-15T23:41:39.624795 | 2020-03-25T12:13:51 | 2020-03-25T12:13:51 | 258,137,524 | 0 | 0 | BSD-3-Clause | 2020-04-23T08:14:11 | 2020-04-23T08:14:10 | null | UTF-8 | Python | false | false | 1,267 | py |
import os
import sys
import pytest
HERE = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(HERE)
pytest_plugins = "pytester"
use_shell = os.name == 'nt'
@pytest.fixture(scope='session')
def example_instance(tmpdir_factory):
from cookiecutter.main import cookiecutter
import pip
... | [
"vidartf@gmail.com"
] | vidartf@gmail.com |
8ab219fea28eb0c510914d55eb4b35a9627a217a | 6234f8d6f22d73ae2759d1388e8de5e5761c16e6 | /meshio/dolfin_io.py | 686ee4d45bd9ae0e4a2720c40b9124d1501913b2 | [
"MIT"
] | permissive | renanozelo/meshio | 44f457cae3a86976629ee8606795b79a7fde649d | 073b99b0315c326bee17527498494aa7941bbe9e | refs/heads/master | 2021-01-13T14:54:31.092974 | 2016-12-06T19:36:06 | 2016-12-06T19:36:06 | 76,459,995 | 1 | 0 | null | 2016-12-14T13:01:04 | 2016-12-14T13:01:04 | null | UTF-8 | Python | false | false | 4,338 | py | # -*- coding: utf-8 -*-
#
'''
I/O for DOLFIN's XML format, cf.
<https://people.sc.fsu.edu/~jburkardt/data/dolfin_xml/dolfin_xml.html>.
.. moduleauthor:: Nico Schlömer <nico.schloemer@gmail.com>
'''
import numpy
import warnings
def read(filename):
from lxml import etree as ET
tree = ET.parse(filename)
ro... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
7fc2467f0250ee8322bbda3d68f914db118efa47 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02725/s138858472.py | cea9d71bc4a6904057ab3ad27c3bc17dd530ad24 | [] | 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 | 442 | py | # 改善1:sys入力
# 改善2:ifで分岐させるより、あとから個別対応した方が分岐を毎回やらないですむ?
import sys
input=sys.stdin.readline
def main():
k,n = map(int, input().split())
s = list(map(int, input().split()))
l = []
for i in range(1,n):
a = s[i] - s[i-1]
l.append(a)
l.append(k - (s[-1] - s[0]))
print(k - max(l))
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5bc3f4f8bb4647a25f30f51ce63937096d4246a1 | 784936ad8234b5c3c20311ce499551ee02a08879 | /lab9/file/parse_file.py | cc36e2a591a78376ec7e3cffe6d4e0078c023d42 | [] | no_license | jonlin97/CPE101 | 100ba6e5030364d4045f37e317aa05fd6a06cb08 | 985d64497a9861f59ab7473322b9089bfa57fd10 | refs/heads/master | 2021-06-16T01:31:31.025153 | 2017-02-28T19:29:11 | 2017-02-28T19:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from sys import argv
def main():
if len(argv) == 1 or len(argv) > 3:
print 'Usage: [-s] file_name'
exit()
elif len(argv) == 3 and '-s' not in argv:
print 'Usage: [-s] file_name'
exit()
else:
if len(argv) == 2:
file_name = argv[1]
else:
argv.pop(argv.index... | [
"eitan.simler@gmail.com"
] | eitan.simler@gmail.com |
cc187ad5d061659b1d141e6ae8c0c903749475b1 | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_textbox11.py | ca80f1243f3d1dbb199c896488058878d7a21f2d | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 857 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
9411320ce5f493de2d42d37e564a2e9624a820f8 | 97884252481ff208519194ecd63dc3a79c250220 | /pyobs/events/newspectrum.py | bb03c0263c82eddeafae717430787cfbb9842aa4 | [
"MIT"
] | permissive | pyobs/pyobs-core | a1f30137d7f991bad4e115de38f543e59a6e30d2 | 2d7a06e5485b61b6ca7e51d99b08651ea6021086 | refs/heads/master | 2023-09-01T20:49:07.610730 | 2023-08-29T09:20:05 | 2023-08-29T09:20:05 | 174,351,157 | 9 | 3 | NOASSERTION | 2023-09-14T20:39:48 | 2019-03-07T13:41:27 | Python | UTF-8 | Python | false | false | 1,003 | py | from __future__ import annotations
from typing import Dict, Any
from typing_extensions import TypedDict
from pyobs.events.event import Event
DataType = TypedDict("DataType", {"filename": str})
class NewSpectrumEvent(Event):
"""Event to be sent on a new image."""
__module__ = "pyobs.events"
def __init... | [
"thusser@uni-goettingen.de"
] | thusser@uni-goettingen.de |
854ae9710abde0ac2c9a66fa74291936c78a3839 | 503e97b5c0bb77e923fe135ff14a8b5ca5e6ba07 | /mxshop/mxshop/settings.py | 14c8a2c9bfd1e2ae8fcb833563b71aac4cf284a3 | [] | no_license | pshyms/dianshang-1 | 72345de3ce769efeb2b17c975b586590524dcdbe | 788b7950f52cb7979a8b73e5d9193243f2e69cad | refs/heads/master | 2021-05-21T10:11:38.248170 | 2020-04-03T06:25:13 | 2020-04-03T06:25:13 | 252,649,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | """
Django settings for mxshop project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
imp... | [
"1816635208@qq.com"
] | 1816635208@qq.com |
f3dd845a32db99083ff44cd824500f31f1ae9c52 | 4d4d05bb396e19e32e1ecbba1e2bd20c52d5d22e | /backend/mobile_testing_12_d_14208/wsgi.py | 2897d07e06cc71965e9451a659567a8368ba3255 | [] | no_license | crowdbotics-apps/mobile-testing-12-d-14208 | c78e93a4b214901383bf803d12dbf70573536b87 | 9dacf9161fbd7912f57a07e47c017b1ac4b52f5b | refs/heads/master | 2023-01-02T20:56:47.081621 | 2020-10-29T15:34:50 | 2020-10-29T15:34:50 | 308,371,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for mobile_testing_12_d_14208 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
af19b5a06d215882024497e34544be63114c99d3 | 4d64248b2d7fed5fc61afb93717f6da9d77bb78e | /test/integration/test_main.py | d29c6c5b74ebd22411d73ba02378a9073d052370 | [
"Apache-2.0"
] | permissive | aniltimilsina/ansible-runner | eab0e40b2e2f1f9db202d9bc532abe92b5439f6e | dd6dbdf137e91adaabff3a1bb602615e174c0f73 | refs/heads/master | 2020-03-31T01:37:39.924968 | 2018-09-28T14:22:50 | 2018-09-28T14:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,312 | py | from __future__ import print_function
from ansible_runner.__main__ import main
import os
import multiprocessing
import shutil
import yaml
import tempfile
import time
from contextlib import contextmanager
from pytest import raises
from ansible_runner.exceptions import AnsibleRunnerException
HERE = os.path.abspath(os... | [
"bthomass@redhat.com"
] | bthomass@redhat.com |
61bce7c35d257868765417a85473fa98fae8ce2f | 75a35cefa5adf2f42503eb0cc8c60f7f96ff9650 | /economico/migrations/0003_auto_20210624_1236.py | 49bc13dc659775704cd8f50eb92f82ef53321af2 | [] | no_license | PatacaSis/agroweb | 5c70f35001d0e88fb5f1642161d4eee6b4abda59 | e2181fa0bb6ca7752bdbaab62fe60ede9f2630b2 | refs/heads/main | 2023-06-20T23:37:50.294745 | 2021-07-19T23:26:55 | 2021-07-19T23:26:55 | 381,737,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # Generated by Django 2.2 on 2021-06-24 15:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('economico', '0002_auto_20210624_1117'),
]
operations = [
migrations.CreateModel(
name='Subrubro',... | [
"patacasis@gmail.com"
] | patacasis@gmail.com |
0fa8189b6205033ea38a4baca5d931a95dd69480 | 6203b9132af8f78c6cb12242bd223fa17d14f31e | /leetcode/hot100/739.py | 4a83290d96acb97e8294d1fcc0c49ad525e00df8 | [] | no_license | joshuap233/algorithms | 82c608d7493b0d21989b287a2e246ef739e60443 | dc68b883362f3ddcfb433d3d83d1bbf925bbcf02 | refs/heads/master | 2023-08-23T12:44:42.675137 | 2021-09-28T02:37:01 | 2021-09-28T02:37:01 | 230,285,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # https://leetcode-cn.com/problems/daily-temperatures/
# 739. 每日温度
from typing import List
from collections import deque
class Solution:
"""
从左向右遍历
维护一个单调栈,如果当前元素 <= 栈顶元素, 当前元素入栈
否则栈顶元素出栈,直到当前元素为最小元素
"""
def dailyTemperatures(self, temperatures: List[int]) -> List[int]:
s... | [
"shushugo233@gmail.com"
] | shushugo233@gmail.com |
d219b210b9aea9a439ac50e2a4a42aed1ea38432 | 37dd9a4970ef0c69868809cd1f09bb9bf137187a | /tests/cupy_tests/core_tests/test_ndarray_scatter.py | 26b568f3b49a1944ebbef7aa07ef03a659b8a08c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | minus9d/chainer | 3d7549135a85926a528e7167e37947735dd096d7 | f34c20e45dc86dfa6bbc62e080be3fd97aa3f466 | refs/heads/master | 2021-01-11T22:17:47.567101 | 2017-01-13T03:49:34 | 2017-01-13T03:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | import unittest
import numpy
import cupy
from cupy import testing
@testing.parameterize(
# array only
{'shape': (2, 3, 4), 'slices': numpy.array(-1), 'value': 1},
{'shape': (2, 3, 4), 'slices': numpy.array([1, 0]), 'value': 1},
{'shape': (2, 3, 4), 'slices': (slice(None), [1, 2]), 'value': 1},
{... | [
"yuyuniitani@gmail.com"
] | yuyuniitani@gmail.com |
79f035817224a222421136ec0202b67a832a3d4d | 4e30d990963870478ed248567e432795f519e1cc | /tests/models/validators/v3_1_patch_1/jsd_bea2910401185295a9715d65cb1c07c9.py | 4c20015d51ab24952aff9a591ff4fba674cede0d | [
"MIT"
] | permissive | CiscoISE/ciscoisesdk | 84074a57bf1042a735e3fc6eb7876555150d2b51 | f468c54998ec1ad85435ea28988922f0573bfee8 | refs/heads/main | 2023-09-04T23:56:32.232035 | 2023-08-25T17:31:49 | 2023-08-25T17:31:49 | 365,359,531 | 48 | 9 | MIT | 2023-08-25T17:31:51 | 2021-05-07T21:43:52 | Python | UTF-8 | Python | false | false | 8,098 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine updateNetworkAccessConditionByName data model.
Copyright (c) 2021 Cisco and/or its affiliates.
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 ... | [
"bvargas@altus.cr"
] | bvargas@altus.cr |
45a1448d0fb517a8f6109c50acd0d444b35696a9 | 09301c71638abf45230192e62503f79a52e0bd80 | /besco_erp/besco_account/general_account_asset/wizard/wizard_asset_compute.py | 2159e39e0228453a5ac13d57989d9b0e66b11412 | [] | no_license | westlyou/NEDCOFFEE | 24ef8c46f74a129059622f126401366497ba72a6 | 4079ab7312428c0eb12015e543605eac0bd3976f | refs/heads/master | 2020-05-27T06:01:15.188827 | 2017-11-14T15:35:22 | 2017-11-14T15:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,916 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"son.huynh@nedcoffee.vn"
] | son.huynh@nedcoffee.vn |
e8fe137014c1db7c346768859e5a1022752e8930 | 231ced7456347d52fdcd126cfc6427bef47843d3 | /spj/timc.py | 1b9cec7e3976f743b8bc8040989f2d874b006b54 | [] | no_license | overminder/SPJ-D.Lester-book-Reading | d6590590d39d0e41ba23b77aecd448ed9888203b | 8a80f4100cdb32c73acf0c14ffdee5f72a8b7288 | refs/heads/master | 2016-09-05T23:37:40.028269 | 2012-12-04T14:25:32 | 2012-12-04T14:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,401 | py | from spj.errors import InterpError
from spj.language import W_Root, W_EAp, W_EInt, W_EVar, W_ELet, ppr
from spj.timrun import (State, Take, Enter, Return, PushInt, PushLabel,
PushArg, PushCode, PushVInt, Move, Cond, Closure)
from spj.primitive import module
def compile(prog):
cc = ProgramCo... | [
"p90eri@gmail.com"
] | p90eri@gmail.com |
a26a366b10cc223f2342920a7884674cb453093c | be50b4dd0b5b8c3813b8c3158332b1154fe8fe62 | /Strings/Python/ConvertToPalindrome.py | 46439cae661b90bd3d651d5ecdbabb178e6a9e66 | [] | no_license | Zimmermann25/InterviewBit | a8d89e090068d9644e28085625963c8ce75d3dff | 6d2138e740bd5ba8eab992d9bf090977e077bfc5 | refs/heads/main | 2023-03-24T18:12:48.244950 | 2021-03-24T14:36:48 | 2021-03-24T14:36:48 | 350,835,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | class Solution:
# @param A : string
# @return an integer
def solve(self, A):
'''while(i<j){
if(count>1) return 0;
if(A[i]==A[j]) i++,j--;
else if(A[i]!=A[j] && A[i+1]==A[j]) i++,count++;
else if(A[i]!=A[j] && A[i]==A[j-1]) j--,count++;
... | [
"noreply@github.com"
] | Zimmermann25.noreply@github.com |
6b06a0acefe3c3545167fd5f57a55c8c71e71347 | fa60536fbc7c0d8a2a8f08f0a5b6351c77d08054 | /3]. Competitive Programming/03]. HackerRank/1]. Practice/08]. Problem Solving/Algorithms/02]. Implementation/Python/_63) Sequence Equation.py | b4f4bb8ecf6be9a2c2c62234e16e5f5721b99482 | [
"MIT"
] | permissive | poojitha2002/The-Complete-FAANG-Preparation | 15cad1f9fb0371d15acc0fb541a79593e0605c4c | 7910c846252d3f1a66f92af3b7d9fb9ad1f86999 | refs/heads/master | 2023-07-17T20:24:19.161348 | 2021-08-28T11:39:48 | 2021-08-28T11:39:48 | 400,784,346 | 5 | 2 | MIT | 2021-08-28T12:14:35 | 2021-08-28T12:14:34 | null | UTF-8 | Python | false | false | 191 | py |
# Contributed by Paraj Shah
# https://github.com/parajshah
n = int(input().strip())
p = list(map(int,input().strip().split(' ')))
for i in range(n):
print(p.index(p.index(i+1)+1)+1)
| [
"parajshah2000@gmail.com"
] | parajshah2000@gmail.com |
89ce91e9cdd45bcea7cda1f6618b0a8911d4b680 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1400.py | 447598b617c56ae623656f731538c43f7a43f01b | [] | 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 | 466 | py | import sys
_ = sys.stdin.readline()
for case, line in enumerate(sys.stdin.readlines()):
case += 1
a, b = map(int, line.split())
if a/10 == 0 and b/10 == 0:
print 'Case #%d: 0' % case
else:
r = {}
for i in xrange(a, b+1):
n = m = str(i)
for _ in n:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f836bad57be012645982c1938cbfcf9f3c52db1d | 5844d61fc4e9fe70a6936e9d0d6bb4bc4f84465c | /phy/traces/filter.py | ef951d1253112612182224882c05961906dd82a7 | [] | no_license | danieljdenman/phy | 4f57c910020e3839432cf56e5ed817bf7b997e8e | 9ba3a00d12b6b72856f1420ed977586d8a8f7d31 | refs/heads/master | 2021-01-22T15:35:47.522407 | 2015-06-25T15:40:41 | 2015-06-25T15:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py | # -*- coding: utf-8 -*-
"""Waveform filtering routines."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import numpy as np
from scipy import signal
from ..utils._types import _as_array
#---... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
6a2bab06289e994ca0c8efdf9279028438e85c5d | 9f48355699f7e12915241024b01985a76620c203 | /CustomStack/mystack.py | 0ab1c2f9594ce238ff9729bd2f2fdc0884d8d517 | [] | no_license | zingp/leetcode-py | 537bebaeb2ac223f5e10014f755ab961582ed0d3 | 53975bd952a1ceb34189682fda16bbee403fd84b | refs/heads/master | 2021-08-10T12:34:07.061017 | 2021-06-15T01:00:23 | 2021-06-15T01:00:23 | 155,186,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py |
class stack(object):
def __init__(self):
self.stack = []
def push(self, ele):
self.stack.append(ele)
def pop(self):
if len(self.stack) > 0:
return self.stack.pop()
else:
return None
def get_top(self):
if len(self.stack) > 0:
... | [
"605156398@qq.com"
] | 605156398@qq.com |
7b912e2285b65f0e82ad4d4d5cf759fb35624272 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv4/af_ipv4_unicast/af_ipv4_attributes/af_common_attributes/redistribute/isis/level_1/__init__.py | 1a220564369c61b327bc9301d3e66a11c96fa4d0 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,914 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
68ba6bf1e51fff464bbcb634b294cd93a537c5f4 | 9e3d6b9f3bbc1d139d3b5a69bbf025c081289ea1 | /manage.py | fbcefc8d2c7375dad31a142433bc03dfdf09fd04 | [] | no_license | abugasavio/msalama | aca5ef2257ff4e192b895c1bb4831d1d43ab7e65 | 2acc5807e8a7f87f387c34a6ae7612d454685292 | refs/heads/master | 2021-05-29T11:44:18.268131 | 2015-09-01T11:28:52 | 2015-09-01T11:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "msalama.production")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"savioabuga@gmail.com"
] | savioabuga@gmail.com |
12aae2888e93f9adc894ae28e23152cd367211f1 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-868.py | 0df90c2432f34c2721944ae516c8dedfeab8a95b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
aa5e04f5a6941d9b5a4fe1cd4674a98c766f223a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kzZD8Xp3EC7bipfxe_5.py | 1d9f1e7d1c26d008ef7a788ee6e967091963b8a4 | [] | 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 | 686 | py | """
Create a function that outputs the result of a math expression in words.
### Examples
worded_math("One plus one") ➞ "Two"
worded_math("zero Plus one") ➞ "One"
worded_math("one minus one") ➞ "Zero"
### Notes
* Expect only the operations `plus` and `minus`.
* Expect to only get number... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9bc92d13acd0e88decb4e96d6907a77962b3f05e | 182d36353a6e33dc1f27f2dc7c0ae95577941dca | /liaoxuefeng/debug.py | 6be77d8e784f6bd8495c5b83bddcd9efcf4e57e1 | [] | no_license | tp-yan/PythonScript | d0da587162b1f621ed6852be758705690a6c9dce | 497c933217019046aca0d4258b174a13965348a7 | refs/heads/master | 2020-09-02T02:49:20.305732 | 2019-12-01T06:54:19 | 2019-12-01T06:54:19 | 219,115,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 14:22:06 2019
@author: tangpeng
调试
"""
"""
1. 断言
凡是用print()来辅助查看的地方,都可以用断言(assert)来替代,如果断言失败,assert语句本身就会抛出AssertionError。
启动Python解释器时可以用-O参数(英文大写字母O)来关闭assert: python -O err.py
"""
def foo(s):
n = int(s)
assert n != 0, "n is zero" # ... | [
"tp1084165470@gmail.com"
] | tp1084165470@gmail.com |
5f772c255a2d963e4174ee771b2d84e4f7d34570 | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python3/l0283_move_zeros.py | 45ac985e2ff57c7e657675ed0adcd7c6d9b39d2c | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from typing import List
class Solution:
def moveZeroes(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
i, j = 0, 0
while j < len(nums):
if nums[j] != 0:
nums[i], nums[j] = nums[j], nums[i]
... | [
"zhoulv82@gmail.com"
] | zhoulv82@gmail.com |
8c47efca30c846eaf43046cb0784d1cc21e03a32 | 9ecdf9b65c0d0ab96945ccdcb7c59e08ea3ad49e | /arelle/plugin/profileFormula.py | 2485a86198492bc9cb376af75f32f6fec1689b7d | [
"Apache-2.0"
] | permissive | joskoanicic/carelle | 348bd5b4e0619161035d2906e6c99ed1ab362c1a | 311f97bd944d49016885cc90d8be41a4bb85300a | refs/heads/master | 2020-04-15T10:04:51.445961 | 2015-11-10T16:50:09 | 2015-11-10T16:50:09 | 68,085,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,608 | py | '''
Profile Formula Validation is an example of a plug-in to GUI menu that will profile formula execution.
(c) Copyright 2012 Mark V Systems Limited, All rights reserved.
'''
import os
from tkinter import simpledialog, messagebox
def profileFormulaMenuEntender(cntlr, menu):
# Extend menu with an item for the prof... | [
"fischer@markv.com"
] | fischer@markv.com |
1f9525b6078ff952fcc29b26d4a6bb1223a4dac0 | 23392f060c85b5fee645d319f2fd5560653dfd5c | /01_jumptopy/chap03/124.py | 1ee85ae3e8516ba4fe143ffe5436b7c0839cc65d | [] | no_license | heyhello89/openbigdata | 65192f381de83e4d153c072ff09fa7574f003037 | b35ff237c32013c3e5380eee782085a64edb9d80 | refs/heads/master | 2021-10-22T04:29:00.852546 | 2019-03-08T02:14:34 | 2019-03-08T02:14:34 | 125,938,319 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 486 | py | # coding: cp949
prompt="""
1. 추가
2. 삭제
3. 목록
4. 종료
숫자를 입력하세요: """
number=0
while number!=4:
number=int(input(prompt))
if number==1:
print("'1. 추가' 메뉴를 선택하셨습니다.")
elif number==2:
print("'2. 삭제' 메뉴를 선택하셨습니다.")
elif number==3:
print("'3. 목록' 메뉴를 선택하셨습니다.")
elif number==4:
... | [
"heyhello89@hanmail.net"
] | heyhello89@hanmail.net |
e6a331871f9ab5acab6cd7dd8eaab2051ab270f2 | 43e0cfda9c2ac5be1123f50723a79da1dd56195f | /python/paddle/distributed/auto_parallel/tuner/trial.py | 3937ca9865181f066597d4afb48ac9832f1036bd | [
"Apache-2.0"
] | permissive | jiangjiajun/Paddle | 837f5a36e868a3c21006f5f7bb824055edae671f | 9b35f03572867bbca056da93698f36035106c1f3 | refs/heads/develop | 2022-08-23T11:12:04.503753 | 2022-08-11T14:40:07 | 2022-08-11T14:40:07 | 426,936,577 | 0 | 0 | Apache-2.0 | 2022-02-17T03:43:19 | 2021-11-11T09:09:28 | Python | UTF-8 | Python | false | false | 4,766 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | jiangjiajun.noreply@github.com |
ff56e6a71796c367dacdf9136d62cb7bbd047cc4 | ca9152cf5adf7c38867aad2fb8ca4d2747149c84 | /src/pytorch_metric_learning/losses/triplet_margin_loss.py | 9e7843bcc5bc24db1cc148eaf81d0060454c7e81 | [
"MIT"
] | permissive | Bobo-y/pytorch-metric-learning | 91d14dec18b988f5acc153c8205e85e069cbc548 | dff4ae570db89dcb59a102f13f665502f9c1c7c6 | refs/heads/master | 2023-04-15T21:01:16.115250 | 2021-04-03T02:44:16 | 2021-04-03T02:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | import torch
from ..reducers import AvgNonZeroReducer
from ..utils import loss_and_miner_utils as lmu
from .base_metric_loss_function import BaseMetricLossFunction
class TripletMarginLoss(BaseMetricLossFunction):
"""
Args:
margin: The desired difference between the anchor-positive distance and the
... | [
"tkm45@cornell.edu"
] | tkm45@cornell.edu |
06f580e8601734f21702378de0b414ab38485f97 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02271/s017858399.py | b1332bc0fcd0f6a8c679f83cab6e08e303625121 | [] | 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 | 956 | py | from itertools import repeat
from itertools import combinations
def rec(s, i, total, m):
if total == m:
return 1
if len(s) == i or total > m:
return 0
return rec(s, i + 1, total, m) + rec(s, i + 1, total + s[i], m)
def makeCache(s):
cache = {}
for i in range(len(s)):
com... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b45991fc4b005bf57fcb4a36ebb41de146a131fa | 65c0eb470e48a018c65631a995c5cf4d0f142cf8 | /test_camera.py | c5b5d5e588650b9737463a5e098433f186ef427f | [] | no_license | WolfgangFahl/ESE205-CVChess | eab7491d130fa534ed966fe3af39cbb7a6f33341 | 3b88090be3015caa90e42f59db4c88be8a67c355 | refs/heads/master | 2020-08-14T05:45:59.729411 | 2019-11-12T08:44:28 | 2019-11-12T08:44:28 | 215,108,730 | 0 | 1 | null | 2019-10-14T17:46:17 | 2019-10-14T17:46:16 | null | UTF-8 | Python | false | false | 163 | py | from Camera import Camera
# test the camera
def test_Camera():
camera=Camera()
assert camera
assert camera.cam
# call the camera test
test_Camera()
| [
"wf@bitplan.com"
] | wf@bitplan.com |
6eb1c2b72186303722500f9625bae4ec1dd3f465 | 61673ab9a42f7151de7337608c442fa6247f13bb | /tkinter/label/label-os.listdir/main.py | befd86ad6bda534d9a7e53df6543a2a2e83995a9 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/env python3
# date: 2019.10.15
# https://stackoverflow.com/questions/58364159/printing-text-from-a-function-into-a-tkinter-label
import os
import tkinter as tk
def get_filenames():
filenames = sorted(os.listdir('.'))
text = "\n".join(filenames)
label['text'] = text # change text in label
roo... | [
"furas@tlen.pl"
] | furas@tlen.pl |
27700db0c9ee4bb37b0c7f811e97c74938133910 | 278d7f4467a112416d1adfbcd3218033ff0fd9b3 | /mmdet/models/detectors/fcos.py | 9f34b76946c8e068fb0a13416e4c7f7d582acc4c | [] | no_license | Young-1217/detection | e3d67938b454e955b5b7a82d5ae222e62f9545fb | 6760288dac92e00ddc3e813ed0e1363c1fa1ce2d | refs/heads/main | 2023-06-01T21:41:37.998947 | 2021-06-21T10:03:01 | 2021-06-21T10:03:01 | 371,868,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from ..builder import DETECTORS
from .single_stage import SingleStageDetector
@DETECTORS.register_module()
class FCOS(SingleStageDetector):
"""Implementation of `FCOS <https://arxiv.org/abs/1904.01355>`_"""
def __init__(self,
backbone,
neck,
bbox_... | [
"noreply@github.com"
] | Young-1217.noreply@github.com |
7df13a7dca896b802ae30f52268f015494835398 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_353/ch135_2020_04_01_12_34_36_501450.py | 17730c3e4d8367f61aa6c05c9fd0102f30264240 | [] | 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 | 225 | py | def equaliza_imagem(k,cores):
i=0
ls=[]
n=len(cores)
while i<=(n-1):
if(cores[i]*k)>=255:
ls.append(255)
else:
ls.append(cores[i]*k)
i+=1
return ls
| [
"you@example.com"
] | you@example.com |
b86e6518cc484c69443fbd6a6ac37c886b02c94b | 1977dfcd971bb80fd5926f00a86d37c21cf80520 | /y/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/core/exceptions.py | 98eab373e0afc66b67b7c92ec5685cdea0b2abd9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | camidagreat/music_game_poc | fd39cd1bbcddaee6ccac2601b95ec81d0358dbf8 | be3c69c026a254078e1dbcee936b368766092a5e | refs/heads/master | 2023-01-08T22:12:05.372029 | 2020-04-22T19:40:31 | 2020-04-22T19:40:31 | 204,744,171 | 0 | 1 | null | 2022-12-10T07:53:06 | 2019-08-27T16:27:00 | Python | UTF-8 | Python | false | false | 4,408 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"l.bidigare.curtis@gmail.com"
] | l.bidigare.curtis@gmail.com |
08434b4f3f8fccef164b31dfdc8d67c11c1d3bfc | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/9b8c6e044ac64769ba086a15c36a3d73.py | d48491b573d2706315333b916b8c906f5b06dde1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 271 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
if what.isupper():
return 'Whoa, chill out!'
if what.endswith('?'):
return 'Sure.'
if not what.strip():
return 'Fine. Be that way!'
else:
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
f7491a276be527fc1210623a64651d181bcea56d | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/antipro/apis/DescribeCpsIpResourcesRequest.py | 27085dc7fbcfc694427a428f43b1e9cbd3a61bc4 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,797 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 or agreed ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
f36c42bb664c1f1846d355327925384abfd55024 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/1232.py | a374f2c0f81a9d1cd08433442c5246cff3db1822 | [] | 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 | 659 | py | #!/usr/bin/python
import sys
import string
def alg(case,f):
row = f.readline().split()
moves = int(row[0])
pO = pB = 1
tO = tB = 0
for i in range(moves):
who = row[i*2+1]
btn = int(row[i*2+2])
if (who == 'O'):
tO += abs(btn-pO) # go
if (tB>=tO): tO=tB # wait before press
tO+=1 # and press
p... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b242453fdad7f3bf393fc5997532df9cb737c959 | e1f5cf7055e54f24f4bea5b1232f337fcbcae63c | /loop/solution/loop_label_encoder.py | 9263b77c47d9d3e6a37ba4fe190b9ce3e983fbd3 | [
"MIT"
] | permissive | revirevy/book-python | fcd64d44840b68e528422de785383f9d4a81fb98 | 9da7bfd43117f33530e708e889c26152dc8c7a25 | refs/heads/master | 2020-04-01T05:13:50.394724 | 2018-10-13T14:58:19 | 2018-10-13T14:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | from random import shuffle
DATABASE = [
('Sepal length', 'Sepal width', 'Petal length', 'Petal width', 'Species'),
(5.1, 3.5, 1.4, 0.2, 'setosa'),
(4.9, 3.0, 1.4, 0.2, 'setosa'),
(4.7, 3.2, 1.3, 0.2, 'setosa'),
(4.6, 3.1, 1.5, 0.2, 'setosa'),
(5.0, 3.6, 1.4, 0.3, 'setosa'),
(5.4, 3.9, 1.7, ... | [
"matt@astrotech.io"
] | matt@astrotech.io |
74a0f6c997b3b3ace16354b5deb86dd6faa55781 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5010/354005010.py | 08b7b2d5821d99edd27618c3cec12800d84b3b4e | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 453 | py | from bots.botsconfig import *
from records005010 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AY',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'M10', MIN: 1, MAX: 1},
{ID: 'P4', MIN: 1, MAX: 20, LEVEL... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
8d83846060bb604cdedc59bea541a59c93abc2d5 | 1086ef8bcd54d4417175a4a77e5d63b53a47c8cf | /Mine/marathon2019/marathon.py | 0a130b63e70d6e960c9cd1e632b5c35ddce5e692 | [] | no_license | wisdomtohe/CompetitiveProgramming | b883da6380f56af0c2625318deed3529cb0838f6 | a20bfea8a2fd539382a100d843fb91126ab5ad34 | refs/heads/master | 2022-12-18T17:33:48.399350 | 2020-09-25T02:24:41 | 2020-09-25T02:24:41 | 298,446,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | def findValleys(n, s):
compteur = 0
marqueur = 0
if s[i] == "U":
marqueur = 1
else:
marqueur = -1
start = (s[i] == "U" and s[i+1] == "D")
for i in s:
if start :
compteur += 1
if !start:
| [
"elmanciowisdom@gmail.com"
] | elmanciowisdom@gmail.com |
3733f46ba880d140ef4e0a90c9a769cf7108649a | a2c7bc7f0cf5c18ba84e9a605cfc722fbf169901 | /python_1_to_1000/269_Alien_Dictionary.py | 01a1de2634d2366896df31c02bfe358cf26a20f1 | [] | no_license | jakehoare/leetcode | 3bf9edd499034ce32be462d4c197af9a8ed53b5d | 05e0beff0047f0ad399d0b46d625bb8d3459814e | refs/heads/master | 2022-02-07T04:03:20.659422 | 2022-01-26T22:03:00 | 2022-01-26T22:03:00 | 71,602,471 | 58 | 38 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | _author_ = 'jake'
_project_ = 'leetcode'
# https://leetcode.com/problems/alien-dictionary/
# There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you.
# You receive a list of words from the dictionary, where words are sorted lexicographically by the rules of this... | [
"jake_hoare@hotmail.com"
] | jake_hoare@hotmail.com |
c89c37e3bf9189730efe0f6a17ec092b259312f8 | bdccb54daf0d0b0a19fabfe9ea9b90fcfc1bdfbf | /Tutorials/10 Days of Statistics/Day 1/interquartile_range.py | c3b235ee9c1a4978d65e8c075307fef710c91737 | [
"MIT"
] | permissive | xuedong/hacker-rank | aba1ad8587bc88efda1e90d7ecfef8dbd74ccd68 | 1ee76899d555850a257a7d3000d8c2be78339dc9 | refs/heads/master | 2022-08-08T07:43:26.633759 | 2022-07-16T11:02:27 | 2022-07-16T11:02:27 | 120,025,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/bin/python3
import sys
n = int(input().strip())
values = [int(arr_i) for arr_i in input().strip().split(' ')]
freqs = [int(arr_i) for arr_i in input().strip().split(' ')]
arr = []
for i in range(n):
current = [values[i]] * freqs[i]
arr.extend(current)
sorted_arr = sorted(arr)
def my_median(arr):
leng... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
b616ace58044491cc943fd3f4f586b46d8608671 | 8155e744f698f7ed4ae32bbbfad3f72c65e810d9 | /admin_honeypot/migrations/0002_auto_20160208_0854.py | 44af8099881b4e75447578fd2f441b5d07de62c4 | [
"MIT"
] | permissive | dmpayton/django-admin-honeypot | 3ccdbd3f65d9a1238356d4e7ee50a8e1d58fe125 | a840496d183df89965eeb33c9a5dd9ea3919dfff | refs/heads/develop | 2023-07-29T00:06:18.292499 | 2022-01-01T22:31:28 | 2022-01-01T22:31:28 | 2,382,101 | 925 | 199 | MIT | 2022-08-09T07:08:28 | 2011-09-13T23:29:15 | Python | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-08 08:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('admin_honeypot', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"derek.payton@gmail.com"
] | derek.payton@gmail.com |
22851edde555a723915cdb62226e165703f4edfb | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Game of Thrones/flask/bin/flask/lib/python2.7/site-packages/pip/cmdoptions.py | 5b9f06dc119b57172b170108b5967275f923fa78 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a5fdb88accc0dfdae1709e438c5038a03ff3e6f4c8d0d1bdf2a51a847b37a8f3
size 15878
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
54442e9c8e985ef92e301aa2c7baa274c910bc31 | 050ccac41c3b3b217204eb5871ca987f897b8d56 | /tradeorsale/tests/unit/core.py | a231ecb06478a6a93f65777b268bfbf34a8239b0 | [] | no_license | marconi/tradeorsale | 6aefc7760f389aabd7e08fe40953914f5ea60abc | 6750260734f77cbf60c19ddddc83ebd27a5fb3a9 | refs/heads/master | 2021-01-23T20:21:24.210074 | 2013-01-12T09:05:09 | 2013-01-12T09:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | # -*- coding: utf-8 -*-
import unittest
import importlib
from paste.deploy.loadwsgi import appconfig
from sqlalchemy import engine_from_config
from StringIO import StringIO
from PIL import Image
from pyramid import testing
from tradeorsale import settings
from tradeorsale.libs.models import initialize_db, Base, DBSe... | [
"caketoad@gmail.com"
] | caketoad@gmail.com |
46ea56be6c49a072fddf5364b9d3558b946ccc02 | acd582814b04fb8065d795582f7c5d77db604bea | /nightreads/user_manager/models.py | 02e7dc0a2feb0ca3cc9dd49578f3ecfa6b24f968 | [
"MIT"
] | permissive | lgp171188/nightreads | 30a37a106f05b0bb8c15c95a7e45931e7068f2d3 | b1bf663d4e752b1c137e846e9928fc55004f7951 | refs/heads/master | 2021-01-21T16:15:39.137766 | 2016-05-26T03:40:13 | 2016-05-26T03:47:16 | 59,670,135 | 0 | 0 | null | 2016-05-25T14:28:42 | 2016-05-25T14:28:42 | null | UTF-8 | Python | false | false | 386 | py | from django.db import models
from django.contrib.auth.models import User
from nightreads.utils import TimeStampMixin
from nightreads.posts.models import Tag
class Subscription(TimeStampMixin):
is_subscribed = models.BooleanField(default=False)
user = models.OneToOneField(User)
tags = models.ManyToManyFie... | [
"hi@avi.im"
] | hi@avi.im |
73d69759d852d2c0af909923caf42a47c061ee40 | 8952afe242c836b516c6236cf0987676cfb7abf7 | /TaobaoSdk/Request/SimbaNonsearchAllplacesGetRequest.py | 0d0d5542730ad88aef570803179f657da9678931 | [] | no_license | xieguanfu/TaobaoOpenPythonSDK | 2fc20df983811990a2d981379c9da6c1117f9f21 | 88cdab41ba19a2326aa4085c92455697bd37d8d7 | refs/heads/master | 2021-01-18T14:38:51.465614 | 2014-08-21T05:44:42 | 2014-08-21T05:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 获取单独出价投放位置列表
# @author wuliang@maimiaotech.com
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardir))
__modulePath = os... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
81a47a577a07d2ef20d2a0d108284521ccb59b0b | 60654caf2633613021470d0285817343f76223e5 | /utils/body_to_row.py | 8d642084644245e05c5263bd4a23600e7fa7f042 | [] | no_license | whoiskx/com_code | 79460ccee973d1dfe770af3780c273e4a0f466c9 | 388b5a055393ee7768cc8525c0484f19c3f97193 | refs/heads/master | 2020-04-09T23:14:28.228729 | 2018-12-06T07:10:25 | 2018-12-06T07:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | def body_to_row(body=''):
if '?' in body:
body = body.split('?')[-1]
# print(body)
body_split = body.split('&')
result = ""
for r in body_split:
result += r + '\n'
print(result)
return result
def headers_to_dict(headers=''):
if headers == '':
return ''
... | [
"574613576@qq.com"
] | 574613576@qq.com |
9f01b0a8f9ec6d29aba97973f582194564ec31b4 | 1924da60fa3298e386acc6dac9bd390784a9b5bb | /test57.py | 5c6a319152b336f3c4ea818e87668b062f0e03ec | [] | no_license | yukitomo/NLP100DrillExercises | c8a177b56f798cef225ace540e965809a1fc1fbc | ea2ceb366de1fa1f27d084e3b9328cc6f34ac1dd | refs/heads/master | 2020-06-01T02:55:11.423238 | 2015-06-10T15:39:03 | 2015-06-10T15:39:03 | 37,205,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#2014-12-14 Yuki Tomo
#(57) (56)を修正し,非自立語は出力に含めないようにせよ
#cat test51_japanese.txt|python test57.py
import sys
from test52 import Morph
from test53 import Chunk,cabtxt2chunk_inputter
from collections import defaultdict
def show_dependency_indynoun_verb(text):
for i in range(len(tex... | [
"over.the.tr0ouble@gmail.com"
] | over.the.tr0ouble@gmail.com |
7f1d0a8ce4c9888b733f77c5f659c376afbf1b78 | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-04-02-Traub1991/plot_steadystate_constants.py | b77e2617830947d93bdfdab0f5048daf51f56e97 | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,573 | py | #Author - Anal Kumar
#disclaimer - The code uses eval() function. Use at your own discretion.
import moose
import rdesigneur as rd
import numpy as np
import matplotlib.pyplot as plt
import Channelprotos as Cp #Channelprotos and rdesigneurProtos should be in the same directory as the pwd
try:
moose.delete('/model'... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
408bc8142e8201c4f69273c94a5d7cc8a3391f73 | f52c121da03c427a7b1a4f70d6c6d379869f338e | /CGAT/WrapperBl2Seq.py | 2b72705164e87201f6a0724c9bde4859f7425fce | [
"BSD-2-Clause"
] | permissive | orianna14/cgat | 7975e5cb8d907f2c83236a6e926d7f4230eb6788 | 7494d17f0a9e3f2333483426aef2c163f3fee0b1 | refs/heads/master | 2021-01-22T11:11:24.509030 | 2015-01-09T11:16:25 | 2015-01-09T11:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | ##########################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by ... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
9585a4e4a65ef46efe897765a84b7e09465160f0 | 81acce1d49924d89e6ebf5a472ad5b1b80cc202c | /Draw2D.py | 7f1ca89964823ded207e1bb4b4b9b8c0241f238d | [] | no_license | truggles/Z_to_TauTau_13TeV | 36a85b024052fcfef3c9efd8aebc63dc85744f7b | 123fe0d25f8e926d8959f54cd4f64122394b60d5 | refs/heads/master | 2021-03-13T01:50:43.031581 | 2017-10-12T18:56:25 | 2017-10-12T18:56:25 | 37,312,811 | 0 | 0 | null | 2016-09-29T08:29:13 | 2015-06-12T09:08:22 | Python | UTF-8 | Python | false | false | 7,908 | py | #!/usr/bin/env python
import ROOT
import re
from array import array
import math
ROOT.gROOT.SetBatch(True)
def add_lumi():
lowX=0.58
lowY=0.835
lumi = ROOT.TPaveText(lowX, lowY+0.06, lowX+0.30, lowY+0.16, "NDC")
lumi.SetBorderSize( 0 )
lumi.SetFillStyle( 0 )
lumi.SetTextAlign( 12 )
l... | [
"truggles@wisc.edu"
] | truggles@wisc.edu |
90d2a950603b34fd3f89912efe29b45abdb4d45a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.3/programming/languages/perl/XML-XQL/actions.py | e6165f4328993702d0ec62af5da1fff8f5818066 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools
def setup():
perlmodules.configure("/usr")
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
27a5fbcd017b34cabd64cefb4a53a4f4208369b8 | a55ad28bbb4fa7edb534f6c1834e7aa00b7dbc2a | /ververica_api_sdk/models/job.py | b3cc3e3509886202781ef2aff5ddaa66edbccc8a | [] | no_license | justlikemikezz/ververica-api-sdk | df29dca99af00944aef5cf06b715e697752fada8 | 0eee284b4433f74b35fd2f41d149e619624aaed3 | refs/heads/master | 2020-12-22T16:01:43.588537 | 2020-01-29T00:39:34 | 2020-01-29T00:39:34 | 236,848,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | # coding: utf-8
"""
Application Manager API
Application Manager APIs to control Apache Flink jobs # noqa: E501
OpenAPI spec version: 2.0.1
Contact: platform@ververica.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
cl... | [
"michael.handria@bird.co"
] | michael.handria@bird.co |
207a7011a5837bad96395aed19342501aa663f78 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/tasks/queues/resume.py | 230674c0f92827e5d0fc9bf32cb2124351e7564d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 1,406 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
0d12a1eb786b8fb073816be57a8967bb4bb8891a | 875188967ac96bdabc2780983ef2db32c8c727ef | /ebirdtaiwan/home/migrations/0006_auto_20200824_1303.py | e9cdb42fcf9d8df64348e88652a2c892ff30a1d9 | [
"MIT"
] | permissive | even311379/EbirdTaiwan2020 | b57ef8db79ef0d6b452016b6aa48bee2afe227b2 | 2c1aa4d7346b5ade909d45f7c245fa4988394124 | refs/heads/master | 2022-12-28T01:04:48.431595 | 2020-10-16T15:03:52 | 2020-10-16T15:03:52 | 289,954,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # Generated by Django 3.1 on 2020-08-24 13:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0005_auto_20200824_1301'),
]
operations = [
migrations.RenameField(
model_name='homepage',
old_name='Title',
... | [
"even311379@hotmail.com"
] | even311379@hotmail.com |
e93167fdb787888ff891a9b26a2a79b76ce27430 | f202ac96ff532c5dfba9914cc5b0c843c9ad34e1 | /parlai/agents/programr/processors/post/denormalize.py | d05d38b9c718e33a2958870d12afecede2d0e06c | [
"MIT"
] | permissive | roholazandie/ParlAI | 3caf2c913bbe6a4c2e7e7eee5674d7786eca5427 | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | refs/heads/master | 2021-12-02T01:30:09.548622 | 2021-10-19T17:38:23 | 2021-10-19T17:38:23 | 187,677,302 | 0 | 0 | MIT | 2021-06-24T21:44:34 | 2019-05-20T16:31:52 | Python | UTF-8 | Python | false | false | 497 | py | from parlai.agents.programr.utils.logging.ylogger import YLogger
from parlai.agents.programr.processors.processing import PostProcessor
DEBUG = False
class DenormalizePostProcessor(PostProcessor):
def __init__(self):
super().__init__()
def process(self, word_string):
# denormalized = brain.d... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
b48dd591d3492478f1c4606a1de80669a3716b41 | 9b1cf71a9b744b66276701ef76ed3a4190b1bd84 | /kcliutils/utils/texts/core_texts/readme.py | 4dbab9971fb669563ee1b0136eeee6b4f6a45ee1 | [
"MIT"
] | permissive | kkristof200/py_cli_utils | f9678ae5de322e558f3c29f9fede546f73d95db2 | 8c18ea37e84be5e7df1f5fcf7cdc10ae70ecf7c6 | refs/heads/main | 2023-07-18T10:02:02.783816 | 2021-09-06T20:35:43 | 2021-09-06T20:35:43 | 331,058,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | readme = '''
# [PACKAGE_NAME]
[SHIELDS]
## Description
[DESCRIPTION]
## Install
~~~~bash
pip install [PACKAGE_NAME]
# or
pip3 install [PACKAGE_NAME]
~~~~
## Usage
~~~~python
import [PACKAGE_NAME]
~~~~
## Dependencies
[DEPENDENCIES]
'''.strip() | [
"kovacskristof200@gmail.com"
] | kovacskristof200@gmail.com |
fd564c59e983ccc78fb0dc633639dc628bc55e09 | a34507bee8dc5502c663a71f3e98257f8ff0334d | /easy/326-3的幂.py | 466aedce67d6f53f2b802168fd8b4e5de6ccb34c | [] | no_license | michelleweii/Leetcode | 85b7876a3e283f3982dd86de01ccc5470e63388f | 0c09b5a018e7334bd49dd251834fc8e547084cc1 | refs/heads/master | 2022-05-17T07:28:23.684720 | 2022-04-28T12:40:48 | 2022-04-28T12:40:48 | 149,776,312 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # 利用pow(a, b)函数即可。需要开a的r次方则pow(a, 1/r)。
# 用取余! python除法/都保留小数点后的数字的
# 不知道为什么leetcode上报错
# class Solution(object):
# def isPowerOfThree(self, n):
# """
# :type n: int
# :rtype: bool
# """
# if n==0:
# return False
# else:
# rs = pow(n,1/3)
# ... | [
"641052383@qq.com"
] | 641052383@qq.com |
11a68425333067afa7dc3f201861931da7d6047d | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/CanPlaceFlowers.py | 0358e0ea494a51eb3138962f4b54b4310d1f6b00 | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | """
You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.
Given an integer array flowerbed containing 0's and 1's, where 0 means empty and 1 means not empty, and an integer n, return if n new flowers can be planted in the flowerbed wit... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.