blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42a59f892a98e74a4c42441549d2d609eed08529 | a1b892c0f5f8c5aa2c67b555b8d1d4b7727a86a4 | /HTML/outage/test.py | feaec475507a72c66bfa111e20a713c1f88284c0 | [] | no_license | Vivekdjango/outage | 60f463ae5294d2b33544a19bda34cc2c22dd42c8 | 20cfbc07e6714f0c8c7e685ea389f1b8ef1bfd53 | refs/heads/master | 2021-01-20T04:18:40.023340 | 2017-04-28T06:46:26 | 2017-04-28T06:46:26 | 89,675,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import re
with open('/var/www/html/outage/Vivektest.html','r+') as f:
s=f.read()
d=re.search(r'Downtime</b>:([0-9]+)',s)
j='Downtime</b>:90'
x=d.group()
s=re.sub(x,j,s)
f.seek(0)
f.truncate()
with open('/var/www/html/outage/Vivektest.html','a') as g:
g.write(s)
g.close()
| [
"viveksinha@IC0532-L0.corp.inmobi.com"
] | viveksinha@IC0532-L0.corp.inmobi.com |
7d7403199232daf804abcef3c44475cc6d85bbdb | e55c876bf34e150cef8c4575f45481b567296a8c | /backend/manage.py | 7b441b75d60ab7bb439e9056593756e1a615208d | [] | no_license | crowdbotics-apps/testtttt5555-dev-15969 | 5c44f20694d6b99efb93d36241a38f7912afb2b5 | e092cd8b1ea34149ee2cfae1e9612f86a754932c | refs/heads/master | 2023-01-27T22:12:52.002176 | 2020-11-30T11:59:38 | 2020-11-30T11:59:38 | 317,209,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testtttt5555_dev_15969.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
97005734ec6b4c93adc78cd19c609fa7f49dac2c | f83ca7d939e8b7688445f336ceedcf871da3ed21 | /sysroot/usr/lib/python3/dist-packages/blinkt.py | 3dae99458928bbdd066f8966ee0d34197bd45404 | [] | no_license | FundamentalFrequency/juce-aarch64-linux-cross-compiler | 1c432d77b8bc7dd11692a9aef34408ed8baddf1f | 3fb7539e4459228231699efbe227e50638b620e4 | refs/heads/main | 2023-03-17T07:49:31.396127 | 2022-07-15T04:52:18 | 2022-07-15T04:52:18 | 496,806,629 | 13 | 4 | null | 2022-10-21T21:07:26 | 2022-05-26T23:57:36 | Python | UTF-8 | Python | false | false | 3,619 | py | import atexit
import time
import RPi.GPIO as GPIO
__version__ = '0.1.2'
DAT = 23
CLK = 24
NUM_PIXELS = 8
BRIGHTNESS = 7
pixels = [[0, 0, 0, BRIGHTNESS]] * NUM_PIXELS
_gpio_setup = False
_clear_on_exit = True
def _exit():
if _clear_on_exit:
clear()
show()
GPIO.cleanup()
def set_brightness... | [
"stonepreston@protonmail.com"
] | stonepreston@protonmail.com |
0aa45401d8b9d7ecc694f70ae64fad64be567afa | c00a2490947ad10582b5d675f070ccb62b70901d | /testing/vivaldi_testing_base.gypi | 17dedd737c47f8dbfc349f283963feba7c8c0596 | [
"BSD-3-Clause"
] | permissive | teotikalki/vivaldi-source | 543d0ab336fb5784eaae1904457598f95f426186 | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | refs/heads/master | 2021-01-23T01:17:34.305328 | 2016-04-29T20:28:18 | 2016-04-29T20:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | gypi | {
'type': 'none',
'target_conditions': [
['OS=="win"', {
# Allow running and debugging browser_tests from the testing directory of the MSVS solution view
'product_name':'<(_target_name).exe',
}],
],
}
| [
"jason@theograys.com"
] | jason@theograys.com |
93cdc0d21e1503e893733f61a9dd2b1977f3ea97 | 659a7a65c877f2eb0adbb6001a1f85f063d01acd | /mscreen/autodocktools_prepare_py3k/AutoDockTools/Utilities24/write_models_from_states.py | 3fab201f1f0771a18e5098623dd8904e1f25a07d | [
"MIT"
] | permissive | e-mayo/mscreen | da59771be250ebe341feb102e0cbf41aab70de43 | a50f0b2f7104007c730baa51b4ec65c891008c47 | refs/heads/main | 2023-06-21T17:47:06.519307 | 2021-08-09T16:06:29 | 2021-08-09T16:06:29 | 345,008,321 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,818 | py | #!/usr/bin/env python
#
#
#
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/Utilities24/write_models_from_states.py,v 1.4 2010/04/05 21:07:42 rhuey Exp $
#
# $Id: write_models_from_states.py,v 1.4 2010/04/05 21:07:42 rhuey Exp $
#
import os, sys, sys
from string import join
from MolKit import Read
from mglu... | [
"eduardomayoyanes@gmail.com"
] | eduardomayoyanes@gmail.com |
5057692bd4eb3599bc2347781c35514eda74b72f | bdda88c9a9141e9873f871dea6a197a3c413aad4 | /last/wsgi.py | 01e630a2b2f7ee2e8f1bb214003fbde4dfcffb09 | [] | no_license | thienkimlove/python_last | 83e890e30ef3e4dbd7e063b7f11c5ae2b65c9f84 | f6685ed71c30196f40b122b2aefc35271802d092 | refs/heads/master | 2022-12-15T21:57:24.128016 | 2018-08-20T10:57:42 | 2018-08-20T10:57:42 | 120,873,885 | 0 | 0 | null | 2022-12-08T00:54:39 | 2018-02-09T07:42:28 | JavaScript | UTF-8 | Python | false | false | 385 | py | """
WSGI config for last 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"quan.dm@teko.vn"
] | quan.dm@teko.vn |
376f29ecfebbf1df2ed02a33676c3f737a6e6b60 | 7022c58c3affc4a31cb261a44cb42ff07088e654 | /modify_video.py | 64aef4b9fc60e71aaf8fbed518e654834661b99e | [
"MIT"
] | permissive | reading-stiener/Audio-to-audio-alignment-research | 9298c47c139240b8b2a4b80bfeffa6db6d278c8a | 8ea2789a760e63b92a3a2f14236a87417236e533 | refs/heads/main | 2023-02-12T14:05:25.948830 | 2020-12-22T05:53:11 | 2020-12-22T05:53:11 | 303,211,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | from moviepy.editor import VideoFileClip, concatenate_videoclips, vfx
from moviepy.video.fx.speedx import speedx
from pprint import pprint
import os
import json
def modify_video(folder, filename, mod_dict, audio_file=None):
with VideoFileClip(filename, audio=False) as videoclip:
cliplist = []
for c... | [
"apradha1@conncoll.edu"
] | apradha1@conncoll.edu |
0e2abcb6c0c351b66ae5fb542aaaecce8c8f3fbf | b23b3a4cc7d4ebdf08d958af82128ba535b1402f | /Codeforces/T-primes.py | 8fc2cb522a317a237d883dfa154a807a34c8cb13 | [] | no_license | darshantak/Competitive-Programming | 8665cb1f837140275b6664464522ae942fb6ca50 | 1413d3cc9904b534178a5ac3e4dcd48733c9d26f | refs/heads/master | 2021-08-16T00:02:33.507276 | 2020-05-15T13:55:22 | 2020-05-15T13:55:22 | 180,850,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import math
def SieveOfEratosthenes(n, prime,primesquare, a):
for i in range(2,n+1):
prime[i] = True
for i in range((n * n + 1)+1):
primesquare[i] = False
prime[1] = False
p = 2
while(p * p <= n):
if (prime[p] == True):
i = p * 2
while(i <= n):
prime[i] = False
i += p
p+=1
j = 0
for... | [
"30834020+darshantak@users.noreply.github.com"
] | 30834020+darshantak@users.noreply.github.com |
3754f58c4dc34461dbba2390774e8247149a0188 | 90c2619937019bb1145edfb2d9d6a7cdea460b57 | /src/538.py | 004d39d2e9e53a8ea9413a35ac09f724706a45d1 | [
"MIT"
] | permissive | zhaoyi3264/leetcode-solutions | 2d289a7e5c74cfe7f8b019c6056ce16485ae057b | 1a3a2d441cdd07a17e80b0ea43b7b266844f530c | refs/heads/main | 2023-06-03T11:35:25.054669 | 2021-06-28T02:58:07 | 2021-06-28T02:58:07 | 349,618,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
s = 0
def update(self, root):
if not root:
return
self.update(root.righ... | [
"zhaoyi3264@gmail.com"
] | zhaoyi3264@gmail.com |
c76ddadc6c35d5df98c2328ccbdfe66c0af64a20 | 8be967439ddf76eaad9e49fb9d8f18d832db5cf4 | /mmd/realtime.py | d2ada934da2d2003fb6abac9d7ea39210fb9fd41 | [
"BSD-3-Clause"
] | permissive | jjgoings/McMurchie-Davidson | b4acda0d0e49f96ec10bee4e8c58c0bf20d77f77 | 8c9d176204498655a358edf41698e59cf970a548 | refs/heads/master | 2023-02-07T21:13:50.285990 | 2023-02-05T04:32:59 | 2023-02-05T04:32:59 | 81,615,513 | 72 | 23 | BSD-3-Clause | 2023-02-05T04:33:00 | 2017-02-10T23:13:26 | Python | UTF-8 | Python | false | false | 7,265 | py | from __future__ import division
from __future__ import print_function
import numpy as np
from scipy.linalg import expm
class RealTime(object):
"""Class for real-time routines"""
def __init__(self,mol,numsteps=1000,stepsize=0.1,field=0.0001,pulse=None):
self.mol = mol
self.field = field
... | [
"jjgoings@gmail.com"
] | jjgoings@gmail.com |
a5da9ca40cc5a5566e5d13d5e2df167a59f0917c | 88b7c57a0d9a7a3b28ebd9d6c12ecbbebc50e8a5 | /beep/wechat_callback/routing.py | 45e3e73b84586df877f05a8f9c0b838cde257889 | [] | no_license | largerbigsuper/beep | 71438a4c2feae1afd6ecd25899e95f441bf2165b | a5d84437d79f065cec168f68210c4344a60d08d1 | refs/heads/master | 2022-09-23T02:09:37.117676 | 2020-01-03T06:21:57 | 2020-01-03T06:21:57 | 209,052,138 | 0 | 0 | null | 2022-09-13T23:03:25 | 2019-09-17T12:47:26 | Python | UTF-8 | Python | false | false | 315 | py | from django.urls import path
from . import consumers_wehub, consumers_live, consumers_wehub_task
websocket_urlpatterns = [
path('ws/wehub/', consumers_wehub.WehubConsumer),
path('ws/wehub_task/', consumers_wehub_task.WehubTaskConsumer),
path('ws/live/<str:room_name>/', consumers_live.LiveConsumer),
] | [
"zaihuazhao@163.com"
] | zaihuazhao@163.com |
57609feaa868e5d5d230added1c8394bdd894701 | ed06ef44c944707276a2fca16d61e7820596f51c | /Python/build-array-where-you-can-find-the-maximum-exactly-k-comparisons.py | 1e62106f0b746ff6dded6ba1d710508c12ac3a25 | [] | no_license | sm2774us/leetcode_interview_prep_2021 | 15842bef80637c6ff43542ed7988ec4b2d03e82c | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | refs/heads/master | 2023-05-29T14:14:49.074939 | 2021-06-12T19:52:07 | 2021-06-12T19:52:07 | 374,725,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # Time: O(n * m * k)
# Space: O(m * k)
class Solution(object):
def numOfArrays(self, n, m, k):
"""
:type n: int
:type m: int
:type k: int
:rtype: int
"""
MOD = 10**9 + 7
# dp[l][i][j] = number of ways of constructing array length l with max element i... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
9c32666c1d023909998ab37c378f153017c92d8e | bdd40ea113fdf2f04ef7d61a096a575322928d1d | /Rupesh/DjangoTutorial/ecomarce/analytics/admin.py | ab78365d3c71a629a921a000a91bb6fc59872b46 | [] | no_license | rupesh7399/rupesh | 3eebf924d33790c29636ad59433e10444b74bc2f | 9b746acf37ab357c147cdada1de5458c5fc64f53 | refs/heads/master | 2020-12-22T05:01:29.176696 | 2020-03-03T10:32:36 | 2020-03-03T10:32:36 | 202,111,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.contrib import admin
from .models import ObjectViewed, UserSession
admin.site.register(ObjectViewed)
admin.site.register(UserSession)
| [
"rupesh7399@gmail.com"
] | rupesh7399@gmail.com |
27c774ca6c97f31bc49ca5a0c1b98c71f35dbc89 | 00df54846f8ee079785e39844329cb764c52dcd4 | /message/views.py | bf0fc4d77a173b5e6b8958456a319309963758f5 | [] | no_license | idber/devops | 1d6dcae3f5bdd173b9f38985552d40bea191f0e0 | e0371c4ae7ae552489ea376ecdb72b8847fc41a8 | refs/heads/master | 2020-04-19T15:29:31.884030 | 2019-01-30T01:45:57 | 2019-01-30T01:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from django.shortcuts import render
from message.models import Message
from django.http import Http404
from django.contrib.auth.decorators import login_required
# Create your views here.
@login_required
def log_audit(request):
'''
审计日志
'''
if request.user.is_superuser:
logs = Message.objects.a... | [
"ntuwang@126.com"
] | ntuwang@126.com |
b4a702b6ed8560ac00be41b9f452df78a097e8f9 | 8694f444cf64f28bd208a470551f2c267da040d6 | /spider_04_爬虫数据处理/douban案例/django_orm_usage/doubanBookSpider/spider/spider.py | a469fcf3edd508f0e6e9cb6f87952e5598216cf6 | [] | no_license | fadeawaylove/spider_improve | 2b52fa2b7c0fee990cc3442c7929a2a8eeb4d0f7 | da9c9e3c59c8dba235e9635d91bff6d4998e6588 | refs/heads/master | 2020-08-12T20:21:49.543179 | 2019-11-07T08:08:18 | 2019-11-07T08:08:18 | 214,837,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,380 | py | import requests
import lxml.etree
import re
import datetime
import random
from utils.spider_utils import get_free_proxies
class DoubanBook(object):
tag_list_url = "https://book.douban.com/tag/?icn=index-nav"
list_page_url = "https://book.douban.com/tag/{tag_name}?start={start}&type=T"
book_info = ["作者", ... | [
"dengrt@akulaku.com"
] | dengrt@akulaku.com |
9995f2b5def6c1301c8524c51013d6babad47b8d | 457c673c8c8d704ec150322e4eeee2fde4f827ca | /Python Fundamentals - January 2020/Basic_Syntax_Conditional_Statements_and_Loops_Exercise/03_Leonardo_DICaprio_Oscars.py | 57f953fa07bfb812d762ec8c1cb6bd4b23ec85cf | [] | no_license | xMrShadyx/SoftUni | 13c08d56108bf8b1ff56d17bb2a4b804381e0d4e | ce4adcd6e8425134d138fd8f4b6101d4eb1c520b | refs/heads/master | 2023-08-02T03:10:16.205251 | 2021-06-20T05:52:15 | 2021-06-20T05:52:15 | 276,562,926 | 5 | 1 | null | 2021-09-22T19:35:25 | 2020-07-02T06:07:35 | Python | UTF-8 | Python | false | false | 294 | py | oscar = int(input())
if oscar == 88:
print('Leo finally won the Oscar! Leo is happy')
elif oscar == 86:
print(f'Not even for Wolf of Wall Street?!')
elif oscar < 88 and 86 or oscar <= 88:
print("When will you give Leo an Oscar?")
elif oscar > 88:
print("Leo got one already!")
| [
"daredevil91138@gmail.com"
] | daredevil91138@gmail.com |
27a5c84cd1a806afab12078d6674fbb2f952c37e | 83b7bfc7c8db61ffe5490699347f11da2185287c | /env/bin/django-admin | 75649bf991bc1ca1deeb5f9666c7c52148410f21 | [] | no_license | Kennedy-Njeri/Geo-Django | aa8e428f63431ebf137f03b1f7a6ea9d716960c2 | 2924421ad543662e7718bfc2e3330d9e2d6e2d75 | refs/heads/master | 2020-05-09T15:10:47.000864 | 2019-04-14T20:57:17 | 2019-04-14T20:57:17 | 181,222,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | #!/Users/kennedy/Desktop/Geo-django/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"mistakenz123@gmail.com"
] | mistakenz123@gmail.com | |
ebbe6bda3d528d935983968f89a4a23146afb88b | 7b02a5580ff924dce93b85c8614ae5a1468cd15e | /experiment_brain_parcellation.py | 2dc8bc780bd44e4ad11bbf888998f913c2c10f2b | [] | no_license | dr-alok-tiwari/brain_segmentation | 96638aafd891718666e391dac10492b3d2b38e90 | 0b233a78cad1cff686637c90ef04abeef6d830d3 | refs/heads/master | 2023-08-09T15:24:58.312337 | 2015-01-11T17:07:43 | 2015-01-11T17:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,808 | py | __author__ = 'adeb'
from shutil import copy2
import inspect
import PIL
import pickle
from spynet.utils.utilities import analyse_classes
from data_brain_parcellation import DatasetBrainParcellation
from network_brain_parcellation import *
from spynet.models.network import *
from spynet.models.neuron_type import *
from ... | [
"adbrebs@gmail.com"
] | adbrebs@gmail.com |
fa626b028d0775bee0feb369374052f9523ec263 | b44a984ac8cfd183e218d56e1ec5d0d3e72d20fd | /High_Frequency/BFS/Normal/Number of Big Islands/bfs.py | 7700361d8fde7e07bf4ccef36dd2c64d3a73a234 | [] | no_license | atomextranova/leetcode-python | 61381949f2e78805dfdd0fb221f8497b94b7f12b | 5fce59e6b9c4079b49e2cfb2a6d2a61a0d729c56 | refs/heads/master | 2021-07-15T20:32:12.592607 | 2020-09-21T00:10:27 | 2020-09-21T00:10:27 | 207,622,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import collections
DIRECTIONS = [(0, -1), (0, 1), (-1, 0), (1, 0)]
class Solution:
"""
@param grid: a 2d boolean array
@param k: an integer
@return: the number of Islands
"""
def numsofIsland(self, grid, k):
# Write your code here
if not grid or not grid[0]:
retur... | [
"atomextranova@gmail.com"
] | atomextranova@gmail.com |
8ce4c2319c585a7dd079e69d0ca3dc8c5b98cd32 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqpt/ingrdroppkts.py | 478c00de06b7c4e986fd229f08ef660e7c8dc624 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,753 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
63d0fc53f9cc76b62fdd92fc85ebfca1525ae1a9 | f07c7e3966de00005230ebe31ab0579b92b66872 | /math_utils/convolution.py | 6d414a7c9bd485bd3e9a29deee84ce7215587363 | [
"Apache-2.0"
] | permissive | Algomorph/LevelSetFusion-Python | 30d990228e3d63a40668ade58e7879ae6e581719 | 46625cd185da4413f9afaf201096203ee72d3803 | refs/heads/master | 2021-06-25T11:30:44.672555 | 2020-11-11T14:47:33 | 2020-11-11T14:47:33 | 152,263,399 | 12 | 2 | Apache-2.0 | 2019-05-30T23:12:33 | 2018-10-09T14:15:03 | Python | UTF-8 | Python | false | false | 7,026 | py | # ================================================================
# Created by Gregory Kramida on 9/18/18.
# Copyright (c) 2018 Gregory Kramida
# 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 Licen... | [
"algomorph@gmail.com"
] | algomorph@gmail.com |
7e4b361f79a43152d672caa1c83ae56bd44ff673 | 5a25edcf994a760688dc7c933e8071bf4ff24df3 | /exercises/en/exc_04_11_02.py | a9511ce0f53ab920097e6454be946cf6c9569440 | [
"CC-BY-NC-4.0",
"MIT"
] | permissive | heyMP/spacy-course | 8762990ed6179011680730d9c24d5d34c0a8d954 | 3740c717f0d1090b01c1b0fe23f8e30af3bf0101 | refs/heads/master | 2022-11-07T21:52:15.479840 | 2020-06-25T18:13:44 | 2020-06-25T18:13:44 | 275,202,487 | 1 | 0 | MIT | 2020-06-26T16:39:32 | 2020-06-26T16:39:31 | null | UTF-8 | Python | false | false | 419 | py | TRAINING_DATA = [
(
"Reddit partners with Patreon to help creators build communities",
{"entities": [(0, 6, "WEBSITE"), (21, 28, "WEBSITE")]},
),
("PewDiePie smashes YouTube record", {"entities": [____, (18, 25, "WEBSITE")]}),
(
"Reddit founder Alexis Ohanian gave away two Metall... | [
"ines@ines.io"
] | ines@ines.io |
b5b3be15067d366ee420348a2d7f641af1b2cf54 | d92db7dc61cd6ed719b691866d6512713c981a1b | /tests/transformations_test/RemoveEpsilonRules/Reverse/__init__.py | 015f6088ca4d2afda459d5ea45855316fe7366f6 | [
"MIT"
] | permissive | PatrikValkovic/grammpy | e4dfdc28f023415909a666581892a480392c7cb7 | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | refs/heads/master | 2021-07-24T12:05:13.685812 | 2021-06-10T12:50:41 | 2021-06-10T12:50:41 | 95,211,841 | 2 | 1 | null | 2017-07-29T10:44:43 | 2017-06-23T10:51:44 | Python | UTF-8 | Python | false | false | 110 | py | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 03.09.2017 16:15
:Licence MIT
Part of grammpy
"""
| [
"patrik.valkovic@hotmail.cz"
] | patrik.valkovic@hotmail.cz |
e5536d37b56d755c780c4e6d352acd6422f843bd | 04a4d89bc7915e0624abf95651e5ad21d9ed6da2 | /base/src/cloudstrype/array.py | 8ecac8685d1afb3f2bf4bec40a582be19bf1dc0f | [] | no_license | btimby/cloudstrype-too | 5af8f8a4fecb60838093aafc6de44cab5bf5da7c | 6bc600de7d181c41a9d7e7cca557025c6aea16f2 | refs/heads/master | 2021-04-29T21:49:14.585978 | 2018-02-15T22:18:14 | 2018-02-15T22:18:14 | 121,624,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from __future__ import absolute_import
import os
from .base import sync_wrapper
from .auth import AuthClient
ARRAY_URL = os.environ.get('CLOUDSTRYPE_ARRAY_URL', 'http://array/')
class ArrayClient(AuthClient):
base_url = ARRAY_URL
def __init__(self, *args, **kwargs, replicas=1):
super().__init__(*... | [
"btimby@gmail.com"
] | btimby@gmail.com |
507a8251ec9f391f3544477ad1510d2654cb40f3 | 4c4c589f9047c60eb3d65d5a7fa86ded7c6c1d64 | /populators/create_all.py | 333b163df8a55cfe1deeb691c55c3af5c901374b | [] | no_license | navkal/el | 39a27e92283f922219cebffa3821806fe5cd8a5e | a4739dc33022fb1b4e9a6f71ef40c989896b08f5 | refs/heads/master | 2023-08-09T03:35:06.918760 | 2023-08-04T15:57:12 | 2023-08-04T15:57:12 | 237,359,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | # Copyright 2019 Energize Andover. All rights reserved.
import argparse
import os
import sys
sys.path.append( '../util' )
import util
# Main program
if __name__ == '__main__':
parser = argparse.ArgumentParser( description='Create all Andover databases' )
parser.add_argument( '-d', dest='debug', action='sto... | [
"navkal@hotmail.com"
] | navkal@hotmail.com |
b0d8569db3fe5071021907875f85cbb80e012dd1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03646/s658997973.py | aa705f075e79683fc7b7b695a6c8322e03dacc5a | [] | 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 | 187 | py | k = int(input())
n = 50
q, r = divmod(k, n)
A = [n-1]*n
for i in range(n):
A[i] += q
for i in range(r):
A[i] += n+1
for j in range(n):
A[j] -= 1
print(n)
print(*A)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4115eda73266412d21b877ad0115bc888ce614c4 | f9215dc23bf0ab8ef9730e78413e5844247d270b | /jarbas/core/tests/__init__.py | d5b296cc9396389d1a2b48c6d00078e0e120f390 | [
"MIT"
] | permissive | vitallan/jarbas | 6c873c98663e68e5d8c2192d0648c6870a01a4a1 | 2ffdccfec499c271bec13bf518c847d8d5210d94 | refs/heads/master | 2021-01-13T04:31:09.492131 | 2016-09-26T19:39:55 | 2016-09-26T21:27:52 | 69,503,820 | 1 | 0 | null | 2016-09-28T21:07:35 | 2016-09-28T21:07:35 | null | UTF-8 | Python | false | false | 1,606 | py | from datetime import date, datetime
sample_document_data = dict(
document_id=42,
congressperson_name='Roger That',
congressperson_id=1,
congressperson_document=2,
term=1970,
state='UF',
party='Partido',
term_id=3,
subquota_number=4,
subquota_description='Subquota description',
... | [
"cuducos@gmail.com"
] | cuducos@gmail.com |
0ca467d38b50cb1b3fea439d181379282e495201 | e2cf46746537799f2584fa9bc3307c95f11768e3 | /flashsale/jimay/models/order.py | faa88c71549e4202226cdc4bc94d4af4f50fc0ef | [] | no_license | wahello/xiaolusys | 3c7801543d352a7a1b1825481982cea635ebcdd4 | 7296b9b68167001c91f4b07c1f8d441cc5653578 | refs/heads/master | 2020-03-30T03:39:26.485590 | 2018-08-21T06:23:05 | 2018-08-21T06:23:05 | 150,700,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,196 | py | # coding: utf8
from __future__ import absolute_import, unicode_literals
import datetime
import hashlib
from django.db import models, transaction
from django.dispatch import receiver
from django.utils.functional import cached_property
from signals.jimay import signal_jimay_agent_order_ensure, signal_jimay_agent_order_... | [
"xiuqing.mei@xiaolu.so"
] | xiuqing.mei@xiaolu.so |
c9b6c3a1c4baa68286a7c7502f3b5d1a66d14d49 | 94f4bb0f6e43b2eb2f1bdb284a580b76121fa9af | /1109.py | ba76a0936d7d3434232ab867509244588d344dbe | [] | no_license | huosan0123/leetcode-py | f1ec8226bae732369d4e1989b99ab0ba4b4061c4 | 22794e5e80f534c41ff81eb40072acaa1346a75c | refs/heads/master | 2021-01-25T11:48:17.365118 | 2019-09-12T15:45:34 | 2019-09-12T15:45:34 | 93,934,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | class Solution(object):
def corpFlightBookings(self, bookings, n):
"""
:type bookings: List[List[int]]
:type n: int
:rtype: List[int]
"""
if not bookings:
return []
ans = [0] * n
for b in bookings:
ans[b[0]-1] += b[2]
... | [
"noreply@github.com"
] | huosan0123.noreply@github.com |
2f47ca3bbbcb658c413b278edb19c876e0151737 | d5be2d0dadbe7c89642eadae595b6fb739ba1f63 | /Some_python/Genome_Sequencing_Bioinformatics_II-master/18.LinearSpectrum.py | 29c66e8db5505ea9a5774efd8b3e5647cca2b6db | [] | no_license | TomaszSzyborski/Bioinformatics_Specialization | af738599713cebef9d9fdb0265ec473a125df0d1 | 2ceb9d8595904da7dd5f718e82b786e3993957a8 | refs/heads/master | 2020-12-02T19:47:54.635971 | 2017-07-16T20:31:40 | 2017-07-16T20:31:40 | 96,391,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | '''
LinearSpectrum(Peptide, AminoAcid, AminoAcidMass)
PrefixMass(0) ? 0
for i ? 1 to |Peptide|
for j ? 1 to 20
if AminoAcid(j) = i-th amino acid in Peptide
PrefixMass(i) ? PrefixMass(i ? 1) + AminoAcidMass(j)
LinearSpectrum ? a list consisting of the single integer 0
... | [
"tomasz.szyborski@gmail.com"
] | tomasz.szyborski@gmail.com |
6c9052cd8ec268fdb89ca4c446426047f5b2e64b | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_express_route_ports_locations_operations.py | 2cc07c596adf32b9e88c46b7057b896344f9f125 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 7,901 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
62fcf1cc3e7abf245e0eed7686b48be4857dcc31 | 1194cd5a8b92a4ff2b0480d31c7fd24a7ab46fe9 | /usr/lib/enigma2/python/Plugins/Extensions/TuneinRadio/addons/__init__.py | 7cb0114e35a01a88decc5d1328aa6b4253ecea33 | [] | no_license | linuxbox10/enigma2-plugin-extensions-tuneinradio | 8aaa41ee607758503f40d2ec9a85bdd6b4c6f1e0 | fb8609a72208f556cc172f31cdf1aae33b013148 | refs/heads/master | 2020-12-02T10:14:57.513546 | 2017-07-09T19:11:52 | 2017-07-09T19:11:52 | 96,705,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # Embedded file name: /usr/lib/enigma2/python/Plugins/Extensions/TuneinRadio/addons/__init__.py
pass | [
"jaysmith940@hotmail.co.uk"
] | jaysmith940@hotmail.co.uk |
085d88ce79b4c09829e7c422a1acd0f34b144625 | 7e9248f3b79b2ea6698d873189de0c3422997033 | /backend/tasker_business/models.py | cce19087ab6df3c7583760945bc91ed79d08b103 | [] | no_license | crowdbotics-apps/rpa-19128 | cf2c05d0e5e82b9989b8b9694bd48802655e5b3f | 88e35e7b6249fa167bb3dea3730141cb277a8e09 | refs/heads/master | 2022-11-20T03:08:53.659668 | 2020-07-23T18:18:07 | 2020-07-23T18:18:07 | 282,024,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | from django.conf import settings
from django.db import models
class Timeslot(models.Model):
"Generated Model"
date = models.DateField()
start_time = models.TimeField()
end_time = models.TimeField()
class TaskerAvailability(models.Model):
"Generated Model"
tasker = models.OneToOneField(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
024836a46dc4863b62f2a6f7b309595a72918541 | c78a3ff497590a813ed5b6f283afea4515b6fb49 | /aliyun-python-sdk-ocs/setup.py | 19b7b16ca47b919381a58083f81a360d3eae0dde | [
"Apache-2.0"
] | permissive | StarsHu/aliyun-openapi-python-sdk | 2a4af194882cd68f700f42413655616d1a78117b | 00df8731169b968f6f7837c89a00bcea441745e0 | refs/heads/master | 2021-07-02T23:28:20.603399 | 2017-09-25T08:59:38 | 2017-09-25T08:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | #!/usr/bin/python
'''
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"... | [
"lijie.ma@alibaba-inc.com"
] | lijie.ma@alibaba-inc.com |
1f396a456bd9a3f856c99417b47ad3c1238279fc | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/usersactions_beta/azext_usersactions_beta/vendored_sdks/usersactions/aio/operations_async/_user_onenote_notebook_section_page_parent_section_operations_async.py | 864979970170cae0e0a0df45aa5d8662690d9ec6 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,575 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
b2873364981f6c89eed840b8be52ebb7fb2cd891 | 81f2d4aa3bfb216e04efec81c7f614603a8fd384 | /irekua/rest/utils/permissions.py | a579360cb99113d2a5632cf58fca0969b2adc678 | [] | no_license | CONABIO-audio/irekua | 44564020c342e8bd49a14707f206962869bc026d | 4531a6dbb8b0a0014567930a134bc4399c2c00d4 | refs/heads/master | 2022-12-10T09:43:05.866848 | 2019-10-17T16:18:21 | 2019-10-17T16:18:21 | 170,434,169 | 0 | 1 | null | 2022-12-08T01:44:04 | 2019-02-13T03:32:55 | Python | UTF-8 | Python | false | false | 1,680 | py | from rest_framework.permissions import BasePermission
from rest.permissions import IsAdmin
from rest.permissions import ReadOnly
class PermissionMapping(object):
DEFAULT_PERMISSION = IsAdmin | ReadOnly
def __init__(self, mapping=None, default=None):
if mapping is None:
mapping = {}
... | [
"santiago.mbal@gmail.com"
] | santiago.mbal@gmail.com |
a900434d73f3b5d48843ddb0b816fc9d3d54df50 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/OpenPhish/Integrations/OpenPhish_v2/test_data/api_raw.py | 734dfd9cc498a4640f5a22d562a7bb1755d31082 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 788 | py | RAW_DATA = 'https://cnannord.com/paypal/firebasecloud/83792/htmjrtfgdsaopjdnbhhdmmdgrhehnndnmmmbvvbnmn' \
'dmnbnnbbmnm/service/paypal\nhttp://payameghdir.ir/cxxc/Owa/\nhttps://fxsearchdesk.net/Client' \
'/tang/step4.html\nhttps://fxsearchdesk.net/Client/tang/step3.html\nhttps://fxsearchdesk.net/' ... | [
"noreply@github.com"
] | demisto.noreply@github.com |
718fe8cfe0779e581eb25d464850b5df0c04d846 | f9f54c110fa422408e95deb077bbe594f8aec960 | /epikjjh/sort/sort.py | 63e3e33e2febd51074e1f7c02c8be30ff3a875ba | [
"MIT"
] | permissive | 15ers/Solve_Naively | 39f9dc0e96aef7d957dde33cd1353dd7671aeb9c | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | refs/heads/master | 2021-07-07T23:56:10.231601 | 2020-09-10T08:55:44 | 2020-09-10T08:55:44 | 184,999,228 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | def selection_sort(arr: list):
for i in range(len(arr)-1, 0, -1):
max_index = i
for j in range(i):
if max_elem < arr[j]:
max_index = j
arr[i], arr[max_index] = arr[max_index], arr[i]
def insertion_sort(arr: list):
for i in range(1, len(arr)):
for j i... | [
"epikjjh@gmail.com"
] | epikjjh@gmail.com |
6f78f852e6aca7f1c649ae0695b2151e991cabc2 | 2bacd64bd2679bbcc19379947a7285e7ecba35c6 | /1-notebook-examples/keras-udemy-course/cnn_class2/use_pretrained_weights_resnet.py | 48c6bc23ebedeb15802fec8078bb5d46dd73b5ff | [
"MIT"
] | permissive | vicb1/deep-learning | cc6b6d50ae5083c89f22512663d06b777ff8d881 | 23d6ef672ef0b3d13cea6a99984bbc299d620a73 | refs/heads/master | 2022-12-12T15:56:55.565836 | 2020-03-06T01:55:55 | 2020-03-06T01:55:55 | 230,293,726 | 0 | 0 | MIT | 2022-12-08T05:27:43 | 2019-12-26T16:23:18 | Jupyter Notebook | UTF-8 | Python | false | false | 4,849 | py | # https://deeplearningcourses.com/c/advanced-computer-vision
# https://www.udemy.com/advanced-computer-vision
from __future__ import print_function, division
from builtins import range, input
# Note: you may need to update your version of future
# sudo pip install -U future
from keras.layers import Input, Lambda, Den... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
b46ff85b0961b21961ea9d2a07ee248a8ad4b92e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_portico.py | 71356c0776ec5f684070f1cc1c5508df8c828aeb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py |
#calss header
class _PORTICO():
def __init__(self,):
self.name = "PORTICO"
self.definitions = [u'a covered entrance to a building, usually a large and impressive building, that is supported by columns']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
23228fca858ae9f4969e14f3cfd351321ad5a08f | bc2ea53e1dbbda6818efae0e30c93498562f850a | /setup.py | 439d3a7315cf802b47906b6e1a22207c6dad985a | [
"BSD-2-Clause"
] | permissive | zmedico/gemato | fa47db3320824fca5ff5e1dfdd04391ff9c081e6 | 2a3c4354ba3c3515a86b81782ab30a34a14faea2 | refs/heads/master | 2021-10-23T13:16:10.822184 | 2019-03-16T07:51:59 | 2019-03-16T07:51:59 | 112,166,687 | 1 | 1 | null | 2017-11-27T08:09:08 | 2017-11-27T08:09:08 | null | UTF-8 | Python | false | false | 1,187 | py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# (C) 2017-2018 Michał Górny <mgorny@gentoo.org>
# Licensed under the terms of 2-clause BSD license
from setuptools import setup
setup(
name='gemato',
version='14.0',
description='Gentoo Manifest Tool -- a stand-alone utility to verify and update Gentoo Mani... | [
"mgorny@gentoo.org"
] | mgorny@gentoo.org |
1a01c08c797dcb23bf43fe33e045c0e7ca633adf | dd59a809da984f59315110aa019eabfbbf1a547d | /submissions/AlexMiller/AlexMiller-stitch_and_average.py | 38ff80363396aa0910870fb9a96217aaaa6f5d93 | [] | no_license | tranhoangkhuongvn/dc-michelin-challenge | f679b55a0d595c56cbc3c82e8673fb1c49bdeb44 | a34e8183f0c04314ee433852d3567c6b88a3aee6 | refs/heads/master | 2020-04-18T10:05:50.661201 | 2016-10-15T20:01:49 | 2016-10-15T20:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import pandas as pd
import pdb
import random
prefix = "/media/alex/HD/"
# prefix = "D:/"
prefix2 = "/media/alex/SSD/"
# prefix2 = "C:/"
#Read in the original DC dataset
df = pd.read_csv(prefix+"Documents/Data/Yelp/dc.csv",header=0,encoding="latin1")
#Keep only restaurant name, review date, price rating, average sco... | [
"alex.k.miller@gmail.com"
] | alex.k.miller@gmail.com |
e0b4271157ee723d721cd2ef40b941481e4d51da | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Quartz/Examples/Programming with Quartz/BasicDrawing/MyView.py | d13dea356b286df29b777944be4bb3413e728402 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 4,743 | py | import AppDrawing
import Cocoa
import Quartz
import FrameworkTextDrawing
import FrameworkUtilities
import objc
import UIHandling
import PDFHandling
from objc import super
# XXX: Why are these global?
_drawingCommand = UIHandling.kHICommandSimpleRect
_pdfDocument = None
class MyView(Cocoa.NSView):
currentMenuItem... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
f426826bbfe2daf0908d2f859ebab5c6b49d17d6 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/bgp/rib/afi_safis/afi_safi/ipv4_unicast/loc_rib/__init__.py | 369c2b9a761dcce70880524e2b59b6a685ba2aed | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,432 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
9a3ca5f038df2d91274264f5c5e0e84d04919a94 | 9745e5d8acae70bcdd7011cc1f81c65d3f5eed22 | /Interview Preparation Kit/Stacks and Queues /Min Max Riddle/solutions.py | fa525d9722e71608c301d368bff05d2bbd5b24a6 | [] | no_license | rinleit/hackerrank-solutions | 82d71b562d276ec846ab9a26b3e996c80172f51e | 519a714c5316892dce6bd056b14df5e222078109 | refs/heads/master | 2022-11-10T05:08:11.185284 | 2020-07-02T01:34:35 | 2020-07-02T01:34:35 | 254,403,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/bin/python3
import os
import sys
# Complete the riddle function below.
def riddle(arr):
maxes=[float("-inf")]*len(arr)
for i in range(0,len(arr)):
# find biggest window for which i is a minimum
right=i
left=i
while right+1<len(arr) and arr[right+1]>=arr[i]:
righ... | [
"rinle.it@gmail.com"
] | rinle.it@gmail.com |
4b5e7e285b8e0c0129a0dff3c8dc00f64d5ef802 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/prefix_list_global_rulestack_get_maximum_set_gen.py | c8ef113d486bafe5a4bee4d324a8a7d46b6bcafb | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,652 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
217b70a3e8d3cb947f5ede6970b9ebb41ba81cc8 | 7778920b9f05fa25a76c4caf89c05838398a3f91 | /sciwing/metrics/token_cls_accuracy.py | f258efa2fed41e25349b896e41ee2c0131557373 | [
"MIT"
] | permissive | sean-dingxu/sciwing | 7c68101d579e031ecff20e1886911119b16861cf | 75eca1ea43be165eab20cf8bd81bbc19cecda74c | refs/heads/master | 2021-01-26T11:13:55.625792 | 2020-05-17T18:28:41 | 2020-05-17T18:28:41 | 243,418,557 | 0 | 0 | MIT | 2020-03-08T13:56:09 | 2020-02-27T03:07:19 | null | UTF-8 | Python | false | false | 12,061 | py | from typing import Dict, Union, Any, List, Optional
from sciwing.metrics.BaseMetric import BaseMetric
import wasabi
from sciwing.utils.common import merge_dictionaries_with_sum
import numpy as np
import pandas as pd
from sciwing.metrics.classification_metrics_utils import ClassificationMetricsUtils
import torch
from sc... | [
"abhinav@comp.nus.edu.sg"
] | abhinav@comp.nus.edu.sg |
4948b993f20d3fd92127a96ca2711c9fa8bf6de4 | 7dbcbec8cfd75576d1be86270899b6642e0e9d70 | /testhtmlserv.py | b84d1716321ed64ef1a70b2c87ecb3637afdf4c0 | [] | no_license | huangnauh/learnpython | b72f43572cd42b962c11688c65437cca0b081f4f | e25f582a7811aa63de2f533736921529b600bcc8 | refs/heads/master | 2021-01-22T23:25:30.370990 | 2015-03-23T13:51:06 | 2015-03-23T13:51:06 | 23,954,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | #!E:/python34/python.exe
#coding= utf-8
from http.server import BaseHTTPRequestHandler #BaseHTTPRequestHandler类细分到处理每个协议的方法,这里是‘GET’方法的例子
import urllib.parse
class GetHandler(BaseHTTPRequestHandler):
def do_GET(self): #重写这个方法
parsed_path = urllib.parse.urlparse(self.path)
message_parts = [ #建立... | [
"huanglibo2010@gmail.com"
] | huanglibo2010@gmail.com |
22212b89866c682e600156e061acfef822671fd1 | a5d05e3cecfa6571016e41d19c982f1082714582 | /PROXYC.py | e125e22e4e8ce246a22c2fe83135f1a2f165446a | [] | no_license | Sanket-Mathur/CodeChef-Practice | 8ebc80eb9a32c90a5b3785348fca2048190dbeb0 | cba5bc2eaaf5489cbd8e85acaca6f82d223cff4f | refs/heads/master | 2023-08-08T05:59:42.755206 | 2021-09-26T12:44:15 | 2021-09-26T12:44:15 | 268,267,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import math
for _ in range(int(input())):
N = int(input())
S = list(input())
Cp = S.count('P')
Ca = S.count('A')
req = math.ceil(N * 0.75)
if req <= Cp:
print(0)
else:
c = 0
for i in range(2,N-2):
if (S[i]=='A') and (S[i-1]=='P' or S[i-2]=='P') and (S[i+1... | [
"rajeev.sanket@gmail.com"
] | rajeev.sanket@gmail.com |
785f17b8be057a2d4b4d69e3b7ba1879ff2d3dca | b1eac5e638273ddce5f7a9111676ecf1a7a0305a | /day1/selenium8.py | 5bfc2c56f17e9600606c08d8fb1b6aeb17298ec0 | [] | no_license | zhangbailong945/pachong | 081d4b79448ab01292d91011e6db4811784baa63 | 8af730989488ecfc09d40e96a4790ce1a6ce1714 | refs/heads/master | 2020-03-28T01:15:27.909917 | 2019-06-06T09:46:07 | 2019-06-06T09:46:07 | 147,490,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | #执行js
import sys,time
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
chro... | [
"1207549344@qq.com"
] | 1207549344@qq.com |
d3daa7f23d6a4d10810242a59fcec06aa298a39e | 1676168244eed1c5610b2c1c38f692f89990b112 | /part3-python/Bigdata/Code09-01 화면크기 및 서브윈도.py | f4671848d6135e29810e9a23864dbe61fa9a5036 | [] | no_license | gtpgg1013/AI_docs | 351e83f986d66224c82fff2de944753c98336d03 | 43f8eed8b2732314bd40ed65e1d7eb44dd28fc04 | refs/heads/master | 2022-12-09T17:32:02.992554 | 2019-11-20T09:03:56 | 2019-11-20T09:03:56 | 182,927,565 | 1 | 0 | null | 2022-12-08T06:50:23 | 2019-04-23T03:54:56 | Jupyter Notebook | UTF-8 | Python | false | false | 23,641 | py | from tkinter import *
from tkinter.simpledialog import *
from tkinter.filedialog import *
import math
import os
import os.path
####################
#### 함수 선언부 ####
####################
# 메모리를 할당해서 리스트(참조)를 반환하는 함수
def malloc(h, w, initValue=0) :
retMemory= []
for _ in range(h) :
tmpList = []
f... | [
"gtpgg1013@gmail.com"
] | gtpgg1013@gmail.com |
2bae305f0500147fc5d51dff37b5e9d7fd5dce7b | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/sql/operations/geo_backup_policies_operations.py | c92d279872efaa148b9ae1fbb6e5a3e1f681184a | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 12,711 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
c6292bb43fa0041b229f80af33521753cd403b09 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03030/s045798606.py | 802f6b64e445e923406fd390ac302f6e446d0078 | [] | 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 | 247 | py | N = int(input())
l = []
for i in range(N):
s, p = input().split()
l.append([s, int(p), i+1])
# 地名に関して辞書順に / 点数に関して降順に並べる
l = sorted(l, key=lambda x:(x[0], -x[1]))
for i in range(N):
print(l[i][2]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
368593ff4cb7bb628c9d4940f35785de2bf17747 | 28d1f2444b6078ba2aae89a76cd6fd03a6f86d0c | /imadial-system/imadial/nlu/nlu.py | 7f55c2117559f45dfe4aeb23570bd2d28e863f59 | [] | no_license | tzuhsial/ImageEditingWithDialogue | a35b793ba5bde52b6c1570604cdf5cfbbe3835ab | 355f52ff6bb9e46e1beafaf336dadfc96537886c | refs/heads/master | 2020-05-30T00:19:02.980304 | 2020-02-22T23:40:04 | 2020-02-22T23:40:04 | 189,456,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,248 | py | import copy
import os
import re
import sys
import requests
from nltk import edit_distance
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
from ..util import build_slot_dict
english_stopwords = stopwords.words('english')
stemmer = PorterStemmer()
integer_pattern = r"-?\d+"
def NLUPortal(nlu_... | [
"iammrhelo@gmail.com"
] | iammrhelo@gmail.com |
8c32f32f1ae46ac6ef655a80201fa69829b661bb | b0839dfc309ef90ddfea3d902799c8eefb7a9641 | /Heisenberg.py | d5d833d466b9fe22983a116dc7f0f3e863c2f03d | [] | no_license | vishalpatil0/Heisenberg | 2b1ce030d295be691c32f7144205fc9444aebc80 | 94247dc2436a6e72366ffccc155e32751d0ab6db | refs/heads/main | 2023-02-09T13:54:59.149643 | 2021-01-05T11:47:09 | 2021-01-05T11:47:09 | 310,631,823 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 22,902 | py | import datetime,wikipedia,webbrowser,os,random,requests,pyautogui,playsound,subprocess,time
import urllib.request,bs4 as bs,sys,threading
import Annex,wolframalpha
from ttkthemes import themed_tk
from tkinter import ttk
import tkinter as tk
from tkinter import scrolledtext
from PIL import ImageTk,Image
import sqlite3,p... | [
"vishalgpatil10@gmail.com"
] | vishalgpatil10@gmail.com |
9f80173b3cf8f824c5a2554175f22621476761a1 | 7d9030094153bf363ba5690607bf496b0bb76009 | /script/Thread_pool.py | 44b8fbb80234a42e0b2260bf9ee1fedc71cfb46c | [] | no_license | stan12138/archive | 2773c309e59458000fb1eac44c6d3fc073bfc511 | 54478dc286712948913e3c9ca126015a8bb24bc8 | refs/heads/master | 2020-12-02T18:15:39.609495 | 2020-02-24T13:19:29 | 2020-02-24T13:19:29 | 96,503,611 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | import threading
import queue
__all__ = ["Work","ThreadPool"]
class WorkDone(Exception) :
pass
class WorkThread(threading.Thread) :
def __init__(self,work_queue,result_queue,timeout) :
threading.Thread.__init__(self)
#self.setDaemon(True) 已经被废弃了
self.daemon = True
self.work_queue = work_queue
self.res... | [
"ihnyi@qq.com"
] | ihnyi@qq.com |
263a0ba65383bbc06082fdef23c848663ec54781 | 45f6a4dfc837998565d4e4e4cde258a27fdbd424 | /learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/player/poseidon_player.py | bb1fbcf1975f01557c0d822235d2c2cc2b615f06 | [] | no_license | isoundy000/learn_python | c220966c42187335c5342269cafc6811ac04bab3 | fa1591863985a418fd361eb6dac36d1301bc1231 | refs/heads/master | 2022-12-29T10:27:37.857107 | 2020-10-16T03:52:44 | 2020-10-16T03:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Auther: houguangdong
# @Time: 2020/7/17
import time
from freetime.entity.msg import MsgPack
from freetime.util import log as ftlog
from poker.entity.dao import gamedata
from poker.entity.configure import gdata
from newfish.entity.msg import GameMsg
from newfish.entity im... | [
"1737785826@qq.com"
] | 1737785826@qq.com |
b71b29353e59f08f5782750c9968d379ea377173 | ce522e5edb852562d688be96d0c15294a0d9e66b | /ecommerce/checkout/migrations/0002_auto_20170320_0235.py | 0a52143404eb6550a78302aa47ac334a1bba2924 | [] | no_license | juniorcarvalho/django-ecommerce | 62c67f57d615afa47fc77ca3f738e966616b36d3 | c6511aed95719a65f349bd7caec052515ddbbe39 | refs/heads/master | 2021-01-19T12:55:13.824402 | 2017-03-21T02:57:41 | 2017-03-21T02:57:41 | 82,350,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-20 05:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
('checkout', '0001_initial'),
]
operations = [
m... | [
"joseadolfojr@gmail.com"
] | joseadolfojr@gmail.com |
6bae73ca218abf294b04fd6534f4406c794145b2 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc095/A/4966582.py | 2037c5670eb3dba4a28fc15b2812759685ba5649 | [] | 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 | 38 | py | print(int(input().count("o"))*100+700) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f91277476203cfe568c65fc4eb763e51affe8f00 | 7482abade21b37b188cd4d7636fdcc9b59927847 | /projekt/primer.py | 56468f6fffdd38197a69a1c1f88ee9397d4d684d | [
"MIT"
] | permissive | evadezelak/OPB | f25a4924c680b2ee85d8e81e55cab1cfa4bdc717 | 425533f41660353a52abed439c85efc5dd801273 | refs/heads/master | 2020-05-17T07:48:22.224513 | 2019-04-18T11:57:33 | 2019-04-18T11:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
# uvozimo bottle.py
from bottle import *
# uvozimo ustrezne podatke za povezavo
import auth_public as auth
# uvozimo psycopg2
import psycopg2, psycopg2.extensions, psycopg2.extras
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) # se znebimo problemov s šumni... | [
"janos.vidali@fmf.uni-lj.si"
] | janos.vidali@fmf.uni-lj.si |
574d4092f50b993d1f38e0a957a6acfa58a43c31 | fe54d59a1a030a9c1395f4f4d3ef2e2b2ec48343 | /build/scripts-2.7/manage.py | d56608cfd1ed804a07264990cbacd3890abd8d63 | [] | no_license | zbwzy/nailgun | 38a4198a0630a1608c14e55bee03b5ed04ded3e8 | 2eaeece03ebc53f48791db2aa8e7d24c010910f2 | refs/heads/master | 2022-09-25T09:03:33.296368 | 2016-02-23T09:32:55 | 2016-02-23T09:32:55 | 52,345,460 | 0 | 0 | null | 2022-09-16T17:45:43 | 2016-02-23T09:03:07 | Python | UTF-8 | Python | false | false | 8,813 | py | #!C:\Python27\python.exe
# -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, 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/licens... | [
"zhangbai2008@gmail.com"
] | zhangbai2008@gmail.com |
a03f17fd5bf1c66f472802a75980cdd2d516268c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /gt9LLufDCMHKMioh2_7.py | 016938adf4ecabd120de337982e70522542a7c1a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py |
stutter = lambda w : (w[:2] + "... ")*2 + w + "?"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4e002e755d0c221b8396df31adcb81a4bffa5b2a | ba916d93dfb8074241b0ea1f39997cb028509240 | /python/sliding_window.py | 2279df01725d7098a84cbdb30106369deb9195a2 | [] | no_license | satojkovic/algorithms | ecc1589898c61d2eef562093d3d2a9a2d127faa8 | f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e | refs/heads/master | 2023-09-06T08:17:08.712555 | 2023-08-31T14:19:01 | 2023-08-31T14:19:01 | 169,414,662 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | def find_average_subarrays(k, arr):
result = []
for i in range(len(arr) - k + 1):
avr = sum(arr[i:i+k]) / k
result.append(avr)
return result
def find_average_subarrays_window(k, arr):
result = []
window_sum, left = 0.0, 0
for right in range(len(arr)):
window_sum += arr[... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
dc0732bc17c1d9bd0f61168d8585bf9ebcd8dcc7 | 19ae613228d539deb768ece8b65e1f50a610bab6 | /pddl/pddl.py | 296e3e4b75acebd41edb2508ab767a5ada2e43be | [] | no_license | hyzcn/Bat-leth | cf7166c8c465bfabd3abf78ea712af95eff42ab3 | 1fc9c033d89f4d8a758f57e539622c4a36f1811b | refs/heads/master | 2021-06-07T20:54:21.554291 | 2016-10-16T01:04:21 | 2016-10-16T01:04:21 | 255,225,651 | 0 | 1 | null | 2020-04-13T03:50:15 | 2020-04-13T03:50:15 | null | UTF-8 | Python | false | false | 5,333 | py | #
# This file is part of pyperplan.
#
# 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in... | [
"drwiner131@gmail.com"
] | drwiner131@gmail.com |
b2a52cd3a7ad6f3b0a3ac55ff2c6147a0ded178e | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/530.minimum-absolute-difference-in-bst.py | a3a1a96c14fc0afec10ff9a53dfcfe8ba839397c | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 247 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def getMinimumDifference(self, root: TreeNode) -> int:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
eb96e3855d329c0fad9ec94c2f1a5316a047fe52 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/django_nose/django_nose/nose_runner.py | 3cb8d1e63c08da8d09673c4aa7912ef1358027e8 | [
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 2,660 | py | """
Django test runner that invokes nose.
Usage:
./manage.py test DJANGO_ARGS -- NOSE_ARGS
The 'test' argument, and any other args before '--', will not be passed
to nose, allowing django args and nose args to coexist.
You can use
NOSE_ARGS = ['list', 'of', 'args']
in settings.py for arguments that you alw... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
8dffd4a74543cb7509f054827c210076c6e09a40 | 7bd0954e956993df19d833810f9d71b60e2ebb9a | /test/matrix/test_LIGO_noise.py | 07feafe27f250c7076da65d882d3fdc1023562bf | [
"Apache-2.0"
] | permissive | aa158/phasor | 5ee0cec4f816b88b0a8ac298c330ed48458ec3f2 | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | refs/heads/master | 2021-10-22T09:48:18.556091 | 2019-03-09T18:56:05 | 2019-03-09T18:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
from os import path
import numpy as np
import declarative
import numpy.testing as np_test
import pytest
from declarative.bunch import (
DeepBunch
)
from phasor.utilities.np import logspaced
from phasor import system
from lig... | [
"Lee.McCuller@gmail.com"
] | Lee.McCuller@gmail.com |
c946e3d7d9f7bc6cd9acbc12ac3715f0fec5809c | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/distutils/command/bdist.pyi | 616b93e4aa49694aba5a4a8b4e65e50adb80db1b | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | pyi | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/distutils/command/bdist.pyi | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
db803a0586142b52f75809ffd21a1d35b32ff2a4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2976/60705/263776.py | 3a732b098934518bb61117ea96d97db82cacde9c | [] | 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 | 638 | py | short = input()
length = len(short)
k = 1
while k < 20:
try:
a = input()
except EOFError:
k += 1
continue
len_of_a = len(a)
# 删除短字符串
i = 0
while i + length <= len_of_a:
if short == a[i:i+length]:
a = a[0:i] + a[i+length:len(a)]
len_of_a -=... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4adc28cf02ad73151e0d6daf883933c57205b21f | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/sword2offer/000剑指0_Offer_29._顺时针打印矩阵.py | 583332df292ce5dd4b00535341ccffb0c19c9cf1 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | '''
执行用时:24 ms, 在所有 Python 提交中击败了87.79%的用户
内存消耗:13.5 MB, 在所有 Python 提交中击败了94.97%的用户
'''
class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
M, N = len(matrix), len(matrix[0]) if matrix else 0
top, left, bot... | [
"838255715@qq.com"
] | 838255715@qq.com |
413d10d141e21938b4e969cb4513dd7b41f93f96 | d54e1b89dbd0ec5baa6a018464a419e718c1beac | /Python from others/飞机大战/wk_11_事件退出事件.py | 60da8d84e1ea8c3b53ded2f4b9a0bad6839fe54c | [] | no_license | cjx1996/vscode_Pythoncode | eda438279b7318e6cb73211e26107c7e1587fdfb | f269ebf7ed80091b22334c48839af2a205a15549 | refs/heads/master | 2021-01-03T19:16:18.103858 | 2020-05-07T13:51:31 | 2020-05-07T13:51:31 | 240,205,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import pygame
# 游戏的初始化
pygame.init()
# 创建游戏的窗口
screen = pygame.display.set_mode((480, 700))
# 绘制背景图像
bg = pygame.image.load("./images/background.png")
screen.blit(bg, (0, 0))
# 绘制英雄的飞机
hero = pygame.image.load("./images/me1.png")
# screen.blit(hero, (200, 500))
# 可以在所有绘制工作完成之后, 统一调用 update 方法
# pygame.display.upda... | [
"1121287904@qq.com"
] | 1121287904@qq.com |
023b73f0b93d17480fbbccec70ee83318541d482 | 876773d9c2f3945b37730416ae972ffe912d61af | /backend/manage.py | b04e2e78e5ebc452fbec2a899a8cf2e24ddfbf83 | [] | no_license | crowdbotics-apps/upfood-22998 | 955c21c85e1890108b656ca9451fe31bfdebb8c5 | 80f4e9e4969af8ee4b71b57490ae38212d046e53 | refs/heads/master | 2023-01-20T06:19:08.499602 | 2020-11-26T19:07:06 | 2020-11-26T19:07:06 | 316,316,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "upfood_22998.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a4ee19fffd100a3fc05a6e021b724a07d4482aad | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/kubernetes/client/models/extensions_v1beta1_deployment_list.py | 10b69c3d65178e80e977c84bfa9479ff4e264369 | [] | no_license | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,727 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: release-1.15
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Exten... | [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
3aafcf9d843e58fbbf774ed45ecdf3dcfeaabe94 | f7db9442c0ba1f5c9f0b2c5fe0f1b0c10320b64a | /Warmup-1/near_hundred.py | f756ae999c0bdda305e96ae6fb20f6bd936a5169 | [] | no_license | antonioramos1/codingbat-python | aba5498fbf331ea47ce1b4178c6f7b8f81fc5908 | bfd02e338d886f8807dd3fb8a766d77a91e0ab50 | refs/heads/master | 2021-09-10T04:16:16.589515 | 2018-03-21T00:20:39 | 2018-03-21T00:20:39 | 126,085,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def near_hundred(n):
return ((n >= 90 and n <= 110) or (n >= 190 and n <= 210))
| [
"antonioramosglz@gmail.com"
] | antonioramosglz@gmail.com |
fb1a0fe8be3323847c1589104e7ad955265f9f5a | 94487ea9d7d2bbdf46797fc5bf82fee45cf23db5 | /tests/python/unittest/test_tir_schedule_set_axis_separator.py | 102b3d1cd71062ee45a0b251ca94cf6c3217bb9c | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | were/tvm | 9cc379dac1bcd9ae83b133a313db75f5a63640f6 | afb67e64a1891e1d1aab03c4614fca11473e7b27 | refs/heads/master | 2022-11-22T15:47:02.888421 | 2022-05-28T00:10:40 | 2022-05-28T00:10:40 | 146,328,333 | 3 | 0 | Apache-2.0 | 2018-08-27T17:03:20 | 2018-08-27T17:03:19 | null | UTF-8 | Python | false | false | 6,121 | 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 not u... | [
"noreply@github.com"
] | were.noreply@github.com |
b8f8c7887b4161a0796f663e1360ff23717fcf82 | 3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72 | /month01/code/day08/shopping.py | afbad4e6ba4720b418384e8528526145ab6bd682 | [] | no_license | leinian85/year2019 | 30d66b1b209915301273f3c367bea224b1f449a4 | 2f573fa1c410e9db692bce65d445d0543fe39503 | refs/heads/master | 2020-06-21T20:06:34.220046 | 2019-11-04T06:37:02 | 2019-11-04T06:37:02 | 197,541,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | commodity_info = {
101: {"name": "屠龙刀", "price": 10000},
102: {"name": "倚天剑", "price": 10000},
103: {"name": "九阴白骨爪", "price": 8000},
104: {"name": "九阳神功", "price": 9000},
105: {"name": "降龙十八掌", "price": 8000},
106: {"name": "乾坤大挪移", "price": 10000}
}
order = {}
def commodity_list()... | [
"42737521@qq.com"
] | 42737521@qq.com |
e606fb13a685824d01e0a0355fcc0f0aa2b9a8da | 6c42b234cba1f077dc306242ad1973d56f812343 | /beginner_tasks/strings.py | 82cd9c20d1567b20f2865c2fe8e03db530f63596 | [] | no_license | wencakisa/Python-Dev | 330a9ba3a8320f8e1fa5bfb86c85b24253361a6a | 511d307b6f64174002112cadcdbd0e23c1d69b70 | refs/heads/master | 2021-01-17T13:23:22.939323 | 2016-08-02T14:57:36 | 2016-08-02T14:57:36 | 59,685,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import re
def slice_str(string, max_length):
if max_length < len(string):
return string[: max_length] + "..."
return string
def show_after(string, after):
return string[re.search(r'\s{}\s'.format(after), string).span()[1]:]
def main():
string = "This is soo difficult, I prefer playing WoW... | [
"wencakisa@gmail.com"
] | wencakisa@gmail.com |
4e7130c92ca3727848a0d762125ea88d8243c716 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/stock_by_location/__openerp__.py | 9d07484e4fbf097c623c67fd130a188a963c3698 | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 BrowseInfo(<http://www.browseinfo.in>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
ddf9db09959a2290f75dfe464a502b92e03bf010 | ce285e8e855137888552e55083e19838fab3afda | /settings/common.py | 226e17ddba151670455e45a4f50c668643b365b0 | [] | no_license | bmarchenko/traveler | 4215b5596f2ea70796ea1ff4d21342aa3cf6ccff | 5af5a302677dd3037e7e1b52d7e5ef49dd41cf86 | refs/heads/master | 2016-08-11T20:33:16.410335 | 2012-11-10T22:48:19 | 2012-11-10T22:48:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | # Django settings for your project.
import conf.environment
import os
LOCAL = False
SITE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'wsgi.application'
ROOT_URLCONF = 'urls'
# Additional location... | [
"dstegelman@gmail.com"
] | dstegelman@gmail.com |
cdfd9f0abdd1724bd2da56b313d4938752e38da7 | a691e764b10453c69e040abfa6841d25b622beba | /orquesta/composers/native.py | f025177d6f03821eb4e085cdc882ebde1fc3d98c | [
"Apache-2.0"
] | permissive | alertlogic/orquesta | ee0952c5e79663e4c928e6028e0cf514c55359d4 | 68fddf0ab312cca35616fcb3815966ab2fe83edb | refs/heads/master | 2023-08-15T23:01:10.836310 | 2021-10-14T16:20:49 | 2021-10-14T16:20:49 | 405,152,762 | 0 | 0 | Apache-2.0 | 2021-09-10T18:24:28 | 2021-09-10T16:56:38 | null | UTF-8 | Python | false | false | 4,312 | py | # Copyright 2019 Extreme Networks, 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 law or agreed to i... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
a5fc7a520f05a37155608a9bdf8777f0b5348450 | f33b30743110532ddae286ba1b34993e61669ab7 | /weekly contest/第180场周赛/2.py | ec84e43eebe3c1867ea8e5cce5a67373fe0b84be | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from typing import List | [
"762307667@qq.com"
] | 762307667@qq.com |
c44a31bc672dd09d76b28c6336bbe521e2267744 | 409ce560793c070ef4211b99c5a4a5316a258c4f | /pylith/meshio/DataWriterVTK.py | 09ebe3ec0aea184c8dbba3a476889a1d9c618937 | [
"MIT"
] | permissive | calum-chamberlain/pylith | bb718bfb4305f03b45d42348e5d4fa5ed5f4a918 | 8712c39ade53c1cc5ac0e671e4296cee278c1dcf | refs/heads/master | 2020-12-06T17:15:08.638337 | 2016-05-15T20:30:28 | 2016-05-15T20:30:28 | 46,401,744 | 0 | 0 | null | 2016-05-15T20:30:29 | 2015-11-18T07:09:12 | C++ | UTF-8 | Python | false | false | 3,366 | py | #!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
f324e10f5052054d2e3506b49f197c47921214b8 | 8ec05f1d5800e0b98afa92367f74bed9f95e0ee9 | /venv/Scripts/autopep8-script.py | 4a622cfc0daaa5f5bad725211ff99e47d1376171 | [] | no_license | ayanchyaziz123/ecom-final-year-project | 28362922a88c71aba29d22f29c7f34e1cad6189f | d21fdd885b3b768935dc29171c5a6761c4b88e9c | refs/heads/master | 2023-08-12T17:10:23.826744 | 2021-10-06T12:36:17 | 2021-10-06T12:36:17 | 405,435,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!f:\proshop_django-master\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8'
__requires__ = 'autopep8==1.5.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"aaziz9642@gmail.com"
] | aaziz9642@gmail.com |
bdcb618792133f600fa704d895b48da6883d5bea | 341dd7b46978fb898999233aa8aa5cede7e73e60 | /PathPlanning/RRTStarReedsShepp/rrt_star_reeds_shepp.py | d30001fb9c23e80aa3478aa0d67dcba5a7b8c651 | [
"MIT"
] | permissive | michaelchi08/PythonRobotics | 577d94a54ac5e5bec2199a109e3a9cbd74b24ee1 | d302e2756b7f2835b1a6524651e490525bd1c8c2 | refs/heads/master | 2021-05-09T20:28:36.179719 | 2018-01-23T00:28:14 | 2018-01-23T00:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,655 | py | """
Path Planning Sample Code with RRT for car like robot.
author: AtsushiSakai(@Atsushi_twi)
"""
import random
import math
import copy
import numpy as np
import reeds_shepp_path_planning
import matplotlib.pyplot as plt
show_animation = True
class RRT():
"""
Class for RRT Planning
"""
def __init... | [
"asakai.amsl+github@gmail.com"
] | asakai.amsl+github@gmail.com |
f004bf5cdc9d3ec9a3989848533cffae640eb624 | ced2dc1f67830f70bc8449b864a5ddf9858a6f76 | /CMSSW_9_4_12/src/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysispri_M4500_R_0-5.py | 73cdd810f68a21cb46fd834007aa58975b8517cb | [] | no_license | xdlyu/16_MINIAODV3 | 6e1c455a17e8453974b200c05da18a81386936fe | 5f506cb0e3411fe85bc0b86d6f9477ca7d46eea3 | refs/heads/master | 2020-12-13T03:46:54.895084 | 2020-01-17T14:47:22 | 2020-01-17T14:47:22 | 234,304,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M4500_R0-5_off_pri'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Su... | [
"XXX@cern.ch"
] | XXX@cern.ch |
f41ed179960d7125eec63d2285d10a17156fb3c6 | c5148bc364dac753c0872bd5676027a30b260486 | /build/lib/biosteam/utils/piping.py | ed498bd6d23025192278e5db5152a86278742757 | [
"MIT",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ecoent/biosteam | 86f47c713a2cae5d6261b6c2c7734ccf7a90fb4e | f1371386d089df3aa8ce041175f210c0318c1fe0 | refs/heads/master | 2021-02-24T14:10:23.158984 | 2020-03-05T03:43:17 | 2020-03-05T03:43:17 | 245,433,768 | 1 | 0 | NOASSERTION | 2020-03-06T13:59:27 | 2020-03-06T13:59:26 | null | UTF-8 | Python | false | false | 11,369 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 5 16:47:33 2018
This module includes classes and functions relating Stream objects.
@author: Yoel Cortes-Pena
"""
from thermosteam import Stream, MultiStream
__all__ = ('MissingStream', 'Ins', 'Outs', 'Sink', 'Source',
'as_stream', 'as_upstream', 'as_downstr... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
db151470bbf8c4aa74cb965d7db73f15f4d712e4 | d8b259ea6401e435643a7b90365489f0ccef61b6 | /chapter5/poplib/poplib_gmail.py | 073067347352f2e51b8438815d313baaad07c4a1 | [
"MIT"
] | permissive | elgsaid/Learning-Python-Networking-Second-Edition | 08598637c2e8cdbebaf5ebf2c2c76cac96b0c76c | 39b68fbb936cf8fa2765c5819dcf0ce0a38a3b79 | refs/heads/master | 2020-04-29T11:10:02.791614 | 2019-03-15T09:17:24 | 2019-03-15T09:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #!/usr/bin/env python3
import poplib
import getpass
mailbox = poplib.POP3_SSL ('pop.gmail.com', 995)
mailbox.user('user@gmail.com')
password = getpass.getpass(prompt='Enter your password:')
mailbox.pass_(password)
EmailInformation = mailbox.stat()
print("Number of new emails: %s ", EmailInformation)
numberOfMails = ... | [
"jose-manuel.ortega-candel@capgemini.com"
] | jose-manuel.ortega-candel@capgemini.com |
c2e9579ce129c1425c3e34152fa1d73e81a4ab49 | 3b09dc4623dac559c85c0333526d55b0615d79d7 | /problems/160.py | 2954f908cc61c9c88f77a0e50b347db0751403d2 | [] | no_license | Asperas13/leetcode | 5d45bd65c490ada9b3cb2c33331a728eab2ef9b4 | 7f2f1d4f221925945328a355d653d9622107fae7 | refs/heads/master | 2021-09-28T15:54:54.761873 | 2020-05-05T15:29:48 | 2020-05-05T15:30:59 | 145,767,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
memo = {}
while headA or headB:
if headA:
... | [
"ivan.pashnev@developex.com"
] | ivan.pashnev@developex.com |
09df7e7f68fd8ba2a32ed3f08fa5d77a2593c809 | e9ccc5228e8a4e404aa6e58efbba248a1aa21d5f | /server/sources.py | be7113c98923f89dc9a57907d16e916c00ac67a0 | [] | no_license | thisismyrobot/kindleclock | c65f0a50dc4d799593955584d44572ca28c729bd | 188dd4362691acb563d9f911bd896328c650a63f | refs/heads/master | 2016-08-05T04:48:38.051853 | 2013-01-28T23:55:07 | 2013-01-28T23:55:07 | 6,515,177 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,965 | py | import base64
import cgi
import datetime
import re
import time
import tools
import urllib
import urllib2
import xml.dom.minidom
def unreadgmail():
try:
auth = open("gmailauth.txt").read()
URL = 'https://gmail.google.com/gmail/feed/atom'
req = urllib2.Request(URL)
re... | [
"rwallhead@gmail.com"
] | rwallhead@gmail.com |
6d06e28c7bd02f094783d6e10e8a240deb8a4028 | d0d3697b723e11c33837b8de2d572a44b84a26db | /cruise_track_data_plotting.py | 8e0334b753d7f83150f732e2e9db4165f9c38eef | [
"MIT"
] | permissive | Swiss-Polar-Institute/science-data-utils | dc77e86a1cca0d7642daf97fa3e9045919efd867 | 6a85570ee586fa1ba1644ba2b1c9dea3a5257eae | refs/heads/master | 2022-08-09T10:02:13.678635 | 2021-11-29T20:03:47 | 2021-12-02T07:39:29 | 145,117,181 | 0 | 0 | MIT | 2022-06-21T21:37:22 | 2018-08-17T12:20:58 | Python | UTF-8 | Python | false | false | 3,863 | py | import matplotlib.pyplot as plt
import matplotlib.cm as cm
import pandas
import datetime
#import seaborn as sns
def get_data_file(filepath, columns):
"""Get a subset of the data from one file and write into a dataframe"""
#filepath = input("Enter the full path and name of the file")
dataframe = pandas.rea... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
705621984ef4661f63de4f2a9be8693afc845f01 | 3fd7adb56bf78d2a5c71a216d0ac8bc53485b034 | /tensorflow_data/sawyer/noup_28_dna5/conf.py | 04cd6eb5133f3a850c3be2f9893050d50ffa4d9b | [] | no_license | anair13/lsdc | 6d1675e493f183f467cab0bfe9b79a4f70231e4e | 7760636bea24ca0231b4f99e3b5e8290c89b9ff5 | refs/heads/master | 2021-01-19T08:02:15.613362 | 2017-05-12T17:13:54 | 2017-05-12T17:13:54 | 87,596,344 | 0 | 0 | null | 2017-04-08T00:18:55 | 2017-04-08T00:18:55 | null | UTF-8 | Python | false | false | 1,935 | py | import os
current_dir = os.path.dirname(os.path.realpath(__file__))
# tf record data location:
DATA_DIR = '/'.join(str.split(current_dir, '/')[:-3]) + '/pushing_data/sawyer_noup_29/train'
# local output directory
OUT_DIR = current_dir + '/modeldata'
from video_prediction.prediction_model_downsized_lesslayer import c... | [
"frederik.ebert@mytum.de"
] | frederik.ebert@mytum.de |
1df51ff8f1c07cfd37c44135ee621e5a6a511252 | fe7133ea8e879631e63ef3c5312670464ae0970b | /email_test.py | f0d2e88d51707ef12a621e035d9e4ae58ea8429e | [] | no_license | jonathaw/general_scripts | 4f13c55d3544b829488c1d479c2feff1a6c26829 | 0cf47ab3ade55b9396cb5aea00e09dafd2694067 | refs/heads/master | 2021-01-17T02:50:54.936936 | 2017-03-19T17:18:44 | 2017-03-19T17:18:44 | 41,436,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import smtplib
sender = 'jonathan.weinstein2012@gmail.com'
receivers = ['jonathan.weinstein2012@gmail.com']
message = """From: LSFManager <LSF@manager.com>
To: Me <jonathan.weinstein2012@gmail.com>
Subject: LSFManager Report
This is a test e-mail message.
"""
try:
smtpObj = smtplib.SMTP('localhost')
smtpObj.s... | [
"jonathan.weinstein@weizmann.ac.il"
] | jonathan.weinstein@weizmann.ac.il |
663ddf06b0dcc361f9b79ebadbd3809ffe539966 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayOpenAppSilanApigrayelevenQueryRequest.py | 6ae4d53b1a2df987c4f0ae79daab60b26f7e67a5 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,196 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenAppSilanApigrayelevenQueryRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._version =... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
c509131d6d695838fd5f8caf0e0236271d308935 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_2/16_2_1_Taizo_R1B_A.py | f57872090549f06b308b5880482ee39c7abee60d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,168 | py |
# -*- coding: utf8 -*-
import sys
# inputFile = "A-small-attempt0.in"
# inputFile = "A-large-practice.in"
inputFile = "A-large.in"
f = open(inputFile)
sys.stdout = open(inputFile.replace(".in", ".txt"), 'w')
tc_num = int(f.readline().rstrip())
k1 = {"Z": ["ZERO", 0], "W": ["TWO", 2], "U": ["FOUR", 4], "X": ["SIX", ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
06b86c6227955f55df9ca40267865fd155d7cdd9 | 75e7093ba88fc8fb7c2787fc9b1f289f058f1807 | /reprounzip/setup.py | 80acb4c5d726fbd814e5e31c3c0d3e42347ffd71 | [
"BSD-3-Clause"
] | permissive | Aloma/reprozip | f8a6e7117d29d7b3a4477acf34f3e09993c7f235 | 449bebbcba0674467515383ecfbd6e9cee1f5dc1 | refs/heads/master | 2020-12-03T09:18:17.523917 | 2014-10-06T20:44:25 | 2014-10-06T20:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import os
from setuptools import setup
import sys
# pip workaround
os.chdir(os.path.abspath(os.path.dirname(__file__)))
with open('README.rst') as fp:
description = fp.read()
req = [
'PyYAML',
'rpaths>=0.8']
if sys.version_info < (2, 7):
req.append('argparse')
setup(name='reprounzip',
version=... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
d00d7f695d0fa7ea3119cd533450e09474399e48 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/avi/avi_ipaddrgroup.py | fd2cd3c38ff7a56e237e08e0d1bb627f9756c9f5 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 4,970 | py | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
c3227b65442886d4c177b72911ad5fcb24542c5d | c66c214f062bc4de08354bb15d4d7e343b6b7e4a | /custom_dists/gaussian_circle.py | b07fdde7579a75be61689138444384e4801054dd | [] | no_license | pinakm9/JKO | 1a297f58fd1630d33a2314c82e702208943098e8 | 88265e9f38040e3a6ec73edeec59c85b770bf0ed | refs/heads/master | 2023-05-10T11:03:00.482300 | 2021-06-12T19:42:48 | 2021-06-12T19:42:48 | 352,030,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | import numpy as np
import scipy.stats as ss
import tensorflow as tf
import tensorflow_probability as tfp
class GaussianCircle:
"""
Description:
creates a multimodal distribution aranged on a circle uniformly using iid Gaussians
Args:
mean: mean for each Gaussian distribution
cov: c... | [
"pinakm9@gmail.com"
] | pinakm9@gmail.com |
94f6e3cf69a00aa6b1808778722130a275ee4713 | e4eabccc6d971289cf13653d1b6f290e39b870ab | /1407-group-the-people-given-the-group-size-they-belong-to/group-the-people-given-the-group-size-they-belong-to.py | b33c28a8c7eb9dab579c4c5b78fa1624574c7390 | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | # There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n - 1.
#
# You are given an integer array groupSizes, where groupSizes[i] is the size of the group that person i is in. For example, if groupSizes[1] = 3, then person 1 must be in a group of size 3.... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
6ac4b9f6d7a8296aec554296ab0dc68eaee88daa | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/format/spectra/params/FactorisedParams.py | 9e8686207c6eec119c39f5eea89f9cd2b36199d8 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 11,487 | py |
"""
======================COPYRIGHT/LICENSE START==========================
AzaraParams.py
Copyright (C) 2008 Wayne Boucher and Tim Stevens (University of Cambridge)
=======================================================================
This file contains reserved and/or proprietary information
belonging to the a... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
aa09d6bdb5805a8c7fee8a75dfc9873d3a8b7afc | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py | fcc76ca14127db2dbe9b959c1bd40143f03524e3 | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | Python | false | false | 2,323 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the... | [
"adzhou@hp.com"
] | adzhou@hp.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.