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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
868da6ad7de2e92037f68b84e2de141d81e5376e | 9d6e747ed7204555199ece2033decff978295a09 | /Programmers/그리디/구명보트.py | e397a45f8b8c3318aef387de4ebb6add75f97628 | [] | no_license | leejaeyeong/Algorithm | 5b47ed9aa241990945cbf2451afe7f084984ced5 | 72072d1e0c28e72075fc00db9239a4bd444b68b6 | refs/heads/master | 2021-08-08T10:57:07.345943 | 2021-07-11T15:01:59 | 2021-07-11T15:01:59 | 238,156,464 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | ''' 무인도에 갇힌 사람들을 구명보트를 이용하여 구출하려고 합니다.
구명보트는 작아서 한 번에 최대 2명씩 밖에 탈 수 없고, 무게 제한도 있습니다.
예를 들어, 사람들의 몸무게가 [70kg, 50kg, 80kg, 50kg]이고 구명보트의 무게 제한이 100kg이라면
2번째 사람과 4번째 사람은 같이 탈 수 있지만 1번째 사람과 3번째 사람의 무게의 합은 150kg이므로
구명보트의 무게 제한을 초과하여 같이 탈 수 없습니다.
구명보트를 최대한 적게 사용하여 모든 사람을 구출하려고 합니다.
사람들의 몸무게를 담은 배열 people과 구명보트의 무게 제한 l... | [
"dldustn14@gmail.com"
] | dldustn14@gmail.com |
6b13c2d1b3333eb858d2f7ff6f6803b8edbd5e52 | f9e441608cbca1fd2a39de27cdc187cf676ef159 | /matplotlib/example26.py | 3a47fec94e67faf5639d189d893932d8b226684f | [] | no_license | tisnik/jupyter-notebook-examples | cdded1ce63f6637c76c33adbfb25d9efc13b5fcf | 66974b0590f8beef39ed9d364c9d2b1ee3bd2e63 | refs/heads/master | 2023-07-07T04:43:11.787115 | 2021-08-05T07:16:20 | 2021-08-05T07:16:20 | 257,216,516 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Jupyter Notebook
#
# Dvacátý šestý demonstrační příklad:
# - zobrazení 3D grafu funkce typu z=f(x,y)
from mpl_toolkits.mplot3d import axes3d
from matplotlib import cm
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.gca(projection='3d')
delta = 0.1
# průběh nezávislé proměnné x
x = n... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
4de9459362cd51256cf0acfb5269084fb1d69ad5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/show_user_repository_auth_response.py | dbf5288a6fb5ffa67492b7a9cdb0a81de2d9138d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,467 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowUserRepositoryAuthResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f769536752aa4961db43d52a48a9b2267ab748be | b796ada966f71ea8b26198f6956f847838ed2df3 | /Django_advanced/advcbv/advcbv/urls.py | 9b313393ff4431331ad1bf4affbb5bbee611846f | [] | no_license | cdunn6754/Django_Stuff | 786672b79f69bce8a12369369d6672362401b1d9 | ae631e0318f50a160c572b3d137c5453df0271f7 | refs/heads/master | 2021-01-01T19:58:18.854531 | 2017-10-22T00:16:58 | 2017-10-22T00:16:58 | 98,733,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | """advcbv URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"cdunn6754@gmail.com"
] | cdunn6754@gmail.com |
1a1971c072b24595aa808de9a2af6fbceee0b46b | e03ffd4821bd278da3b0835cd8630b12958d4236 | /sply/grammar.py | 94b2ee96b6e7368047387bcdd4fca2b58a1f4c68 | [] | no_license | RussellLuo/sply | c659a33eabefe935db06ace846fe30e31bd841ba | d6f11f155803b874890428d173b45ee3f2b3fe76 | refs/heads/master | 2016-09-06T04:40:04.977841 | 2014-06-11T15:48:29 | 2014-06-11T15:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ### decorators ###
def token(regex):
def wrapper(func):
func.grammar = {
'type': 'token',
'definition': regex
}
return func
return wrapper
def production(rules):
def wrapper(func):
func.grammar = {
... | [
"luopeng.he@gmail.com"
] | luopeng.he@gmail.com |
62c3025dd72cbd79bb67fc3b146f88adb5c53aa9 | 13830825b25ec01ec2874094a10f36b4b1336ac7 | /tf/languages/python/triggers/run.py | 1e16f634c9f07393965d850f7e8e98d94d0d240a | [] | no_license | yurimalheiros/textflow | db62047b43c44d43c6efc67ad94f8118f984b076 | c21ddf8aba58dc83d58a8db960d58d91ee2e5c74 | refs/heads/master | 2016-09-10T14:47:18.159229 | 2011-11-02T14:26:31 | 2011-11-02T14:26:31 | 1,927,215 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # -*- coding: utf-8 -*-
#######################################################################
# Copyright © 2007-2009 Yuri Malheiros.
# Copyright © 2009 TextFlow Team.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# the Fr... | [
"yurimalheiros@gmail.com"
] | yurimalheiros@gmail.com |
9be3517010189943cd437a0ff0fd2307813d2d6d | f73c9010616f91b64042d9a39e42bd8e1a8ab364 | /virtual/bin/django-admin | 329dbca9ba5f0b38234df91dc94f692282115fa2 | [
"MIT"
] | permissive | mireille1999/Neighbourhood | f8d348c0f30c523d7a7a0c891f508be677e6e927 | 62bfe235a31521219acb3a093467e2ce5d21c976 | refs/heads/main | 2023-04-19T03:38:45.016484 | 2021-05-06T09:01:12 | 2021-05-06T09:01:12 | 363,867,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | #!/home/mireille/Desktop/Django/Neighbourhood/virtual/bin/python
# -*- 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())
| [
"muhawenimana920@daviscollege.com"
] | muhawenimana920@daviscollege.com | |
8d7b14dcccda8ae9f7b2682fb5da36c5f06b8731 | 0534c55fd45878ee1ef12d6a9a2903c51cc6cd56 | /backend/task_profile/models.py | 0876c0b99a2c9c7e831a67edea5d5986436f2d77 | [] | no_license | crowdbotics-apps/lcbo-go-19501 | a7db5aa2265da23ab294de9c683951e54522ce22 | 96dd8ad7ce8c3dcb9526e2197a952d9b8028898f | refs/heads/master | 2022-11-26T07:36:01.090189 | 2020-08-11T20:23:52 | 2020-08-11T20:23:52 | 286,839,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | from django.conf import settings
from django.db import models
class Notification(models.Model):
"Generated Model"
type = models.CharField(max_length=20,)
message = models.TextField()
user = models.ManyToManyField("users.User", related_name="notification_user",)
timestamp_created = models.DateTimeF... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bc7dfd6b2743ba065db5069510e641c5b4e23c65 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/class스타크래프트프로젝트전반전_20200709104854.py | 1d7e1775de7a8f0280b1c3b4921af09ff2aa05b5 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # 일반 유닛
class Unit:
def __init__(self, name, hp, speed):
self.name = name
self.hp = hp
self.speed = speed
print("{0} 유닛이 생성되었습니다.".format(name))
def move(self, location):
print("[지상 유닛 이동]")
print("{0} : {1} 방향으로 이동합니다. [속도 {2}]"
.format(self.name, ... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
1a6b70ae45e9fc29904a01cf685b64bf43a59743 | 0e9bd59e25d45adbc859cd187a5ebb00da4685ea | /tests/photometric_database/test_lightcurve_database.py | d3b21ca0bbdd55f26a9d21f5bb7727df9bc803b3 | [
"Apache-2.0"
] | permissive | REStickland/ramjet | cc836090d5afb868db4317bf9cb7416c26061c02 | ad69e284d5c45b6bd5e3d34e861e5d7b106d4589 | refs/heads/master | 2021-03-10T14:08:42.759728 | 2020-03-02T17:44:34 | 2020-03-02T17:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | """
Tests for the LightcurveDatabase class.
"""
from typing import Any
from unittest.mock import Mock, patch
import numpy as np
import tensorflow as tf
import pytest
import ramjet.photometric_database.lightcurve_database
from ramjet.photometric_database.lightcurve_database import LightcurveDatabase
class TestLightcu... | [
"golmschenk@gmail.com"
] | golmschenk@gmail.com |
66fbc0fc76eb0b501882c183116d815f84b4740a | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/03613/3613.py2.py | a7d442d8f366f973d05a21dfa90f433f61769397 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
22cd7d391cc9fbe273b5040f9df01d41521f8ad7 | 722ace259d9a92a7923a7ebd32608acbfddb073d | /Tag04/doz_a7.py | 69786d28c2f05b2563f8c924bbd53b3c49e9c70d | [] | no_license | anna-s-dotcom/python_final | 19da2d0d2a420f4d54bb2a9760593b655230dcea | 41275625c8905f55a7561cd50df51bbb7d4c39bd | refs/heads/master | 2020-12-08T15:30:04.336376 | 2020-01-10T10:17:15 | 2020-01-10T10:17:15 | 233,017,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # Aufgabe 7)
# Erstelle eine Funktion, welche eine Zahl und einen Befehl übergeben bekommt.
# Der Befehl soll „lin“ oder „quad“ sein.
# Je nach dem soll die Funktion ausgeführt werden:
# lin = 4*x+5
# quad = 4*x2+5*x+6
# 1) Nutze ein if/else Konstrukt.
def linquad(x, f = 'lin'):
if f == 'lin':
re... | [
"noreply@github.com"
] | anna-s-dotcom.noreply@github.com |
524077872b20c6c49333c3c0e864ffe3114cc7fb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2423/60899/261347.py | b07973f6cbd23601c9ce7344d44ec4505e1dade2 | [] | 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 | 409 | py | numOftests = int(input())
for i in range(numOftests):
list2 = list(map(int, input().split()))
length = list2[0]
list0 = list(map(int,input().split()))
list1 = list(map(int, input().split()))
list0.sort()
list1.sort()
lengthOfzero = len(list0)
list0.extend(list1)
list0 = list(set(list... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d191aa6944595ac49641b74daa31bb3cd5b34f34 | e5dad8e72f6c89011ae030f8076ac25c365f0b5f | /caret_scripts/smooth_medial_wall.py | 3ba2096b84ab538f66083977dd8820563423cb95 | [] | no_license | djsperka/caret | f9a99dc5b88c4ab25edf8b1aa557fe51588c2652 | 153f8e334e0cbe37d14f78c52c935c074b796370 | refs/heads/master | 2023-07-15T19:34:16.565767 | 2020-03-07T00:29:29 | 2020-03-07T00:29:29 | 122,994,146 | 0 | 1 | null | 2018-02-26T16:06:03 | 2018-02-26T16:06:03 | null | UTF-8 | Python | false | false | 4,412 | py | #!/usr/bin/python
#
# Imports
#
import os
import sys
#
# Global Variables
#
progName = "/Users/john/caret5_osx/caret_source/caret_command/caret_command"
#progName = "caret_command"
areaColorFileName = "Geography.areacolor"
separateBorderProjectionFileName = "MedialWall_Separate.borderproj"
mergedBorderProjection... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
c3ce493b5b7d71d6751e0d43317734bfe591ca9a | 18d4e647425400d41c128c0a6f90e0654dcf0fef | /MAGNN/model/base_MAGNN.py | 24429d3e8ade7f1fcc2f4d17ce76532d3899def9 | [] | no_license | ddatta-DAC/AD_v3 | 793537fca36c49acee8c63396966a1d6d43df407 | 75191fc77874fa1d09c570195036cb8b8b83de24 | refs/heads/master | 2022-09-16T18:57:58.982936 | 2020-05-29T15:34:04 | 2020-05-29T15:34:04 | 263,650,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,744 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import dgl.function as fn
from dgl.nn.pytorch import edge_softmax
class MAGNN_metapath_specific(nn.Module):
def __init__(self,
etypes,
out_dim,
num_heads,
rnn_type='gru',
... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
2fda7128de47a50c6ff375d42206469d47952984 | 68a088346090ae4e929c208906b14181da0f92f6 | /第一阶段/2. Python01/day03/exercise/01_str_rectangle.py | 753207cbeb3641e48a534062ed628f0b1941a2de | [] | no_license | LONG990122/PYTHON | d1530e734ae48416b5f989a4d97bd1d66d165b91 | 59a2a2a0b033c8ad0cb33d6126c252e9d574eff7 | refs/heads/master | 2020-07-07T09:38:03.501705 | 2019-09-23T16:28:31 | 2019-09-23T16:28:31 | 203,316,565 | 0 | 0 | null | 2019-10-23T15:02:33 | 2019-08-20T06:47:44 | HTML | UTF-8 | Python | false | false | 401 | py | # 01_str_rectangle.py
# 写一个程序,打印一个高度为4的矩形方框
# 要求输入一个整数,此整数代表矩形的宽度,输出此矩形
# 如:
# 请输入宽度: 10
# 打印如下:
# ##########
# # #
# # #
# ##########
w = int(input("请输入宽度: "))
line1 = '#' * w
line2 = '#' + ' ' * (w - 2) + '#'
print(line1)
print(line2)
print(line2)
print(line1) | [
"54302090+LONG990122@users.noreply.github.com"
] | 54302090+LONG990122@users.noreply.github.com |
f8edac2da5a69b605d4359c2f8f216e0976f96d9 | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/techsupport/techsupport_vcsdebug.py | 5ab73d62848edc2f0279a82d14c841396240e154 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 820 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class GeneratesAvcsDebugFile(A10BaseClass):
""" :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`
URL for this object::
`https://<Hostname|Ip address>//axapi/v3/techsupport/vcs... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
556f9a4f94a174e5febc071241d4cba8792817cd | fcecbfe364306bd4da1ac316d38e5dc4fc7942a2 | /model_util/test_diag.py | 2ab0bbfe19f5ccae96a8533164a08bc8ef4c68f1 | [] | no_license | darothen/crm-tools | ce7cda50ca8d49c801848d60a83372a6f3eef273 | 095da56aba6911e472093a2ebae8a73503ff0855 | refs/heads/master | 2016-09-06T14:53:28.088780 | 2014-05-05T14:12:13 | 2014-05-05T14:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from crm_io import read_diag, save_diag
#filename = "/Volumes/legion_home/models/crm71_2d/OUTPUT/DIAG"
filename = "/Volumes/legion_storage02/crm_testing/kshv_2d_largedomain/kshv_500ccn_100in/DIAG"
nz = 65
spmd = True
ts = 20
nt = read_diag(filename, nz, spmd)
all_time, all_tdiag = save_diag(filename, nz, nt, spmd)
pr... | [
"darothen@mit.edu"
] | darothen@mit.edu |
76a142e0bf1248e45f81f90da77866782710a3d6 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Terracortril_med_Polymyxin_B_eye_or_ear_ointment_SmPC.py | 1981573d4c6dae71344cf9ec7d1423466396b794 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | {'_data': [['Common',
[['Eye',
u'Sveda vid instillation. Vid l\xe5ngtidsbehandling hornhinneskada och intraokul\xe4r tryckstegring.']]],
['Uncommon', [['Eye', u'Aktivering av viruskeratit.']]],
['Rare', [['Eye', u'Korneaperforation, katarakt vid l\xe5ngtidsbehandling.']]]... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
3bfbb99e6ddff6a51ff6bb6726c8df7a291a5619 | 30158cbe4ef57ec85df07da8e8f8085a5001996c | /frame_2D_alg/alternative versions/frame_blobs_ortho.py | 5e55f32ec1a59c90132a010af70173b6bfe1edf4 | [
"CC-BY-4.0",
"MIT"
] | permissive | boris-kz/CogAlg | 951c00e202db8537d106b9794b5309f22f3d25b9 | a56a369524c9435bfb20225b71e87b6b28c9d1e3 | refs/heads/master | 2023-09-04T04:07:52.028903 | 2023-09-04T00:58:53 | 2023-09-04T00:58:53 | 90,488,789 | 110 | 54 | MIT | 2023-05-04T11:27:04 | 2017-05-06T20:17:18 | Python | UTF-8 | Python | false | false | 13,568 | py | from scipy import misc
from time import time
from collections import deque, namedtuple
import numpy as np
'''
frame_blobs() defines blobs: contiguous areas of positive or negative deviation of gradient. Gradient is estimated
as |dx| + |dy|, then selectively and more precisely as hypot(dx, dy), from cross-c... | [
"boris.kz@gmail.com"
] | boris.kz@gmail.com |
970db4f9221a1a43b4d38341b08f46bb0370580c | 25403dd331c6f273190461ed57c12c9f633853b9 | /chiton/core/environment.py | 1e0113b34cfc4ea1dddea7ec596c12a3ce322fb8 | [] | no_license | justinlocsei/chiton | d1a91a57ff90f16aa375d0f4c6a0b093a66d2d38 | 6ca38962d08a6ca154434a1f78235155710ffeec | refs/heads/master | 2021-03-27T15:10:07.811691 | 2017-01-30T01:18:33 | 2017-01-30T01:18:33 | 48,400,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | import os.path
import re
from voluptuous import All, Length, Invalid, MultipleInvalid, Schema
from chiton.core.exceptions import ConfigurationError
# All known log levels
LOG_LEVELS = ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL')
def use_config(user_data={}):
"""Load an external JSON configuration file.
... | [
"justin.locsei@gmail.com"
] | justin.locsei@gmail.com |
59f8c7d57f0528ed4dfb3503f979f7eb63155d5d | 149660428ec7570b02b9e8b3d494dcd548e80005 | /01-04_python基础/05_高级数据类型/hm_17_字符串的查找和替换.py | 9801733fcb09d371234b006f6705420a8c32271f | [] | no_license | kenzzuli/hm_15 | 603eb178e476f946eb57b1cdf0c85ba5d65e8d58 | db8a6d13776e55aa4e05ff9f39e9c8e98d59d8ee | refs/heads/master | 2023-08-07T01:57:01.993474 | 2021-09-23T15:49:19 | 2021-09-23T15:49:19 | 359,322,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | hello_str = "hello world"
# 1.判断是否以指定字符串开始
print(hello_str.startswith("hello")) # 大小写敏感
# 2.判断是否以指定字符串结束
print(hello_str.endswith("orld"))
# 3.查找指定字符串
# index同样也可以查找指定的子字符串在大字符串中的索引
print(hello_str.find("wo"))
print("*" * 100)
print(hello_str.rindex('o'))
print(hello_str.index("o"))
print(hello_str.rindex("r"))
pri... | [
"820710063@qq.com"
] | 820710063@qq.com |
36070783ac0da6e39d149ff6a9e6e406d58e1bb4 | 5e1bf5340b28288027d946f136fa0838ca2621dd | /RL_Udemy/optimistic_initial_values.py | 05f34a93a3960471d89c25c00170bf64dd4f12cf | [] | no_license | DavisDataScience/DataInterviewPrep | 5964006933fa8dd1f9b684be94744f5c9505eadb | 55921a8752e349b9cd08833148c38ebb9210d4ed | refs/heads/master | 2020-12-30T11:02:49.782409 | 2018-04-20T07:11:11 | 2018-04-20T07:11:11 | 98,841,799 | 5 | 0 | null | 2017-11-08T09:54:28 | 2017-07-31T02:52:15 | HTML | UTF-8 | Python | false | false | 1,662 | py | # https://deeplearningcourses.com/c/artificial-intelligence-reinforcement-learning-in-python
# https://www.udemy.com/artificial-intelligence-reinforcement-learning-in-python
import numpy as np
import matplotlib.pyplot as plt
class Bandit:
def __init__(self, m, upper_limit):
self.m = m
self.mean = upper_limi... | [
"fespinosa@ucdavis.edu"
] | fespinosa@ucdavis.edu |
a386ad32ce1908a2c38fe109aef2276beec8507d | d2c54233a96b0de3137d320a86de726f87f6d3b4 | /cnn/struct/updateset_module.py | 420fca72eebd6129c8038d6af319637cdeb3851b | [
"MIT"
] | permissive | hslee1539/cnn | aa93e6c41e994b409b5ebcd6e1abfaef98cd0c60 | 816418af0a0057d777f41ac072c3a97fea7e2027 | refs/heads/master | 2020-05-01T13:30:25.781805 | 2019-09-10T08:47:24 | 2019-09-10T08:47:24 | 177,493,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from import_lib import lib
from tensor.main_module import *
from ctypes import Structure, c_int, POINTER, c_float
# Tensor는 POINTER(_Tensor) 임
class _UpdateSet(Structure):
_fields_ = [
('delta', Tensor),
('value', Tensor),
('momnt', Tensor)
]
lib.cnn_create_updateset.argtypes = (Tens... | [
"qq1539@naver.com"
] | qq1539@naver.com |
25a9c9a9109a8396fc521ce6af6ccc72553ddb0a | 77717d0024c8597fec83600259ea5547abbc183a | /configs/guided_anchoring/ga_retinanet_r50_fpn_1x_coco.py | 1c8c581bccb439fbd4d5f7a4f67777162361b1f8 | [
"Apache-2.0"
] | permissive | fengyouliang/wheat_detection | 0a090ef5eda7f2c5463996f4795f9ce06dd04050 | d056123426a1260c29b486cbb8e44a88a0a3c5bc | refs/heads/master | 2022-11-17T15:09:29.113493 | 2020-07-18T13:47:34 | 2020-07-18T13:47:34 | 276,532,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | _base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py'
model = dict(
bbox_head=dict(
_delete_=True,
type='GARetinaHead',
num_classes=80,
in_channels=256,
stacked_convs=4,
feat_channels=256,
approx_anchor_generator=dict(
type='AnchorGenerato... | [
"1654388696@qq.com"
] | 1654388696@qq.com |
1df75ea249e9b902876129b1f377f9baad11d651 | 0210dc6652a9abd37d8200b1338e0db177d2b199 | /model/transforms/autoregressive/ar_linear.py | e6a998a0c34555211f6eb3e208946e72e391fc78 | [
"MIT"
] | permissive | dihjiang/argmax_flows | 77fdb303eb6e508f07cd5b2b7b84855e37c4511b | 4ffff4bd6f7b25e20292eff6bad2bf5a962e8d39 | refs/heads/main | 2023-05-14T07:03:24.527960 | 2021-06-01T12:10:18 | 2021-06-01T12:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import torch
from survae.utils import sum_except_batch
from .ar import AutoregressiveBijection
class AdditiveAutoregressiveBijection(AutoregressiveBijection):
'''Additive autoregressive bijection.'''
def _num_params(self):
return 1
def _forward(self, x, params):
return x + params, x.new_... | [
"didrik.nielsen@gmail.com"
] | didrik.nielsen@gmail.com |
c707702f06a08c042d2db0549257878c0cee865b | 367b17c673c274154fb778f536021c7b5d32d47a | /tools/v8_presubmit.py | ea241b4724522aae50e1bb0cf87728b829b2d6fe | [
"bzip2-1.0.6",
"BSD-3-Clause",
"SunPro"
] | permissive | Drieger/v8 | e52083873e67dbc122e3169451ef11bfe5c8cc93 | 93283bf04ae3fd96592b4090e90ac75130aa9d52 | refs/heads/master | 2020-03-26T22:19:17.520937 | 2019-01-15T17:11:25 | 2019-01-15T18:08:07 | 145,448,530 | 0 | 0 | NOASSERTION | 2018-10-05T11:58:51 | 2018-08-20T17:18:53 | C++ | UTF-8 | Python | false | false | 23,214 | py | #!/usr/bin/env python
#
# Copyright 2012 the V8 project authors. 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
# noti... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ec9449b8fc562621af4968040ac96cc6fe147d4b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_67/87.py | c30dc2a35d202661326157975327a7f60af30452 | [] | 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 | 2,790 | py | #! /usr/bin/env python
# vim: set et ts=4 sw=4 ci cino=(0:
import sys
import os
import math
import binascii
def main():
f = open(sys.argv[1])
ntest = int(f.readline().strip())
for nt in xrange(ntest):
nrect = int(f.readline().strip())
rects = []
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
388b5093f3eea31cab989db5d839937c077d237f | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/stock_account/tests/test_account_move.py | 7b2607004c5d051787e4e778dcda9115697a8446 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 5,741 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
from odoo.addons.stock_account.tests.test_stockvaluation import _create_accounting_data
from odoo.tests.common import tagged, Form
@tagged("post_i... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
4abeb645d33ce6f4cf795c8c9e123787d71aec95 | b427fc41375fd95d6da5c7168a823f1b286bb250 | /imageAugmentation/noise.py | dcf11f01bcfd107942d802d3774aa805d2e5191e | [] | no_license | heixialeeLeon/DeepFundation | 40b9cc14ed639d1b9cd34dad32c9b497c9e23927 | f42560cc25e447f812bdfabd24d426bd9b49bb94 | refs/heads/master | 2020-04-18T06:11:05.222490 | 2019-08-02T01:09:21 | 2019-08-02T01:09:21 | 167,309,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | import numpy as np
from numpy import random
import torch
from torchvision import transforms
import cv2
from PIL import Image, ImageFilter
import skimage
def RandomNoise(img, noise):
img = img.astype(np.float32)
img = img / 255.0
mode = [
lambda x : skimage.util.random_noise(x, 'gaussian', mean=0, v... | [
"lipeizhao@em-data.com.cn"
] | lipeizhao@em-data.com.cn |
2e2f683e57de6ef5a99d838c90b3c50d17ab40b9 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_PolyTrend/cycle_7/ar_12/test_artificial_1024_None_PolyTrend_7_12_0.py | c929841014abe7e46526d945e3cdc89788a4419e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 7, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
611d72e952623f37ad15946469334fd8729f472b | 25310086303e892b29754ad3287ede45ee189f4c | /torcms/script/script_sitemap.py | bf194a786e2fea0b7465ee171ec65f7baa38fa68 | [
"MIT"
] | permissive | CW0606/TorCMS | 41d65431a439bba0360305291f34fb4ed1b32b9c | 23ddc4d2c27bda890ef2a7998770888857dc6a61 | refs/heads/master | 2021-05-15T13:42:40.041532 | 2017-10-17T00:40:21 | 2017-10-17T00:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | # -*- coding: utf-8 -*-
'''
Generating sitemap.
'''
import os
from torcms.model.post_model import MPost
from torcms.model.wiki_model import MWiki
from config import router_post, SITE_CFG
def gen_post_map(file_name, ext_url=''):
'''
Generate the urls for posts.
:return: None
'''
with open(file_nam... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
5c822d163aa8bd895275596a4e7a02de83a3ff35 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/web_tests/external/wpt/cookies/resources/dropSecure.py | 9820295697d22e258b885da239db9fd828b64d3c | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 483 | py | from helpers import makeDropCookie, setNoCacheAndCORSHeaders
def main(request, response):
"""Respond to `/cookie/drop/secure` by dropping the two cookie set by
`setSecureTestCookies()`"""
headers = setNoCacheAndCORSHeaders(request, response)
# Expire the cookies, and return a JSON-encoded success code... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9888ad9a7521b31a4a5620fd551865e5aaf87a6e | 1ca90c49a56420ce876c0418146d27c853cf850f | /tests/test_registryv2imagesource.py | 1a5e9182ebd935ecdb62b54d3d2f6d8ce8f19191 | [
"Apache-2.0"
] | permissive | ChinnoDog/docker-sign-verify | f159f9b86ce5da8bd62f9c9da840cfae8a4f5f14 | 1fc4ad6c54d076d9515ddd1f690b53e73f8e4bc4 | refs/heads/master | 2023-02-16T12:16:09.510077 | 2020-07-28T19:58:29 | 2020-07-28T19:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,868 | py | #!/usr/bin/env python
# pylint: disable=protected-access,redefined-outer-name
"""RegistryV2ImageSource tests."""
import logging
from copy import deepcopy
from datetime import datetime
from pathlib import Path
from typing import Dict
import aiofiles
import pytest
from docker_registry_client_async import FormattedS... | [
"crashvb@gmail.com"
] | crashvb@gmail.com |
ace3fa96b99c770cfc4abe0e6bbc691329863df0 | 3433314089e976a121e0a4ff7320d1214faabc8b | /autoarray/util/mapper_util.py | 71ba884a15c17b9107ebb5ccd6c466f43e568f46 | [
"MIT"
] | permissive | Sketos/PyAutoArray | ab7a63543a35401560ee575c4a8ede7a2561d743 | 72dc7e8d1c38786915f82a7e7284239e5ce87624 | refs/heads/master | 2021-02-12T19:06:17.247806 | 2020-04-10T13:15:00 | 2020-04-10T13:15:00 | 244,619,959 | 0 | 0 | MIT | 2020-03-03T17:21:03 | 2020-03-03T11:35:40 | Python | UTF-8 | Python | false | false | 7,865 | py | import numpy as np
from autoarray import decorator_util
@decorator_util.jit()
def mapping_matrix_from_pixelization_1d_index_for_sub_mask_1d_index(
pixelization_1d_index_for_sub_mask_1d_index,
pixels,
total_mask_pixels,
mask_1d_index_for_sub_mask_1d_index,
sub_fraction,
):
"""Computes the util ... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
e2f2035ebe825909c200b197f392cd98c62b4dd1 | 93ad28897161a30027a2ac1d10c7235f6d66b2f8 | /docker_registry_client_async/formattedsha256.py | c788ae5c66bd8f8ada4732201c212cd1574d8e51 | [
"Apache-2.0"
] | permissive | GitHK/docker-registry-client-async | 0ce117374eb094c3705510d72c081d24c316bada | 384b1b7f7abcda55258028d930b45054ab03f6c4 | refs/heads/main | 2023-05-11T10:50:55.432955 | 2021-03-16T18:57:25 | 2021-03-16T18:57:25 | 371,687,021 | 0 | 0 | Apache-2.0 | 2021-05-28T12:03:12 | 2021-05-28T12:03:11 | null | UTF-8 | Python | false | false | 1,292 | py | #!/usr/bin/env python
"""Utility classes."""
import hashlib
class FormattedSHA256(str):
"""A algorithm prefixed SHA256 hash value."""
def __new__(cls, sha256: str):
if sha256:
sha256 = sha256.replace("sha256:", "")
if not sha256 or len(sha256) != 64:
raise ValueError... | [
"crashvb@gmail.com"
] | crashvb@gmail.com |
1ec4029f94f10baeb145b9970801a547ff3b09f6 | de9cb0ae2f80832c0573cba63330983ed23fa0d0 | /dict/insert_word.py | fcd1770448fd942442c4bf8c2d079c3408bd233f | [] | no_license | brooot/Aid_Files | 3fa25ccf3ac23a8ca69fdefb3ab1089534ff9d81 | 11cdbc5037cddf042b857558902fdc04513335be | refs/heads/master | 2023-03-27T15:29:24.534347 | 2021-03-25T13:02:52 | 2021-03-25T13:02:52 | 200,647,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import pymysql
import re
f = open('dict.txt')
db = pymysql.connect('localhost', 'root',
'xzl1122', 'dict')
cur = db.cursor()
sql = 'insert into words (word,interpret) \
VALUES (%s,%s)'
a = 1
for line in f:
# 获取匹配内容元组 (word,mean)
tup = re.findall(r'(\w+)\s+(.*)', line)[0]
'''要加[0]是... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
8947cf626fb6b113322a37e8f0468da4d664e36b | ea393959886a5cd13da4539d634f2ca0bbcd06a2 | /tensorflow/cs224d_tf_tutorial_example.py | c6b21c628c02abe4a105916a220217b28b672dce | [] | no_license | zhangchizju2012/LeetCode | f605f35b82f16282559af71e4e61ec2629a90ebc | 0c4c38849309124121b03cc0b4bf39071b5d1c8c | refs/heads/master | 2020-04-05T12:12:14.810639 | 2018-08-09T10:24:52 | 2018-08-09T10:24:52 | 81,021,830 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 28 16:58:40 2018
@author: zhangchi
"""
#import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
#import seaborn
# Define input data
X_data = np.arange(100, step=.1)
y_data = 20 * X_data + 10 #X_data + 20 * np.sin(X_data/10)
# Plot... | [
"zhangchizju2012@zju.edu.cn"
] | zhangchizju2012@zju.edu.cn |
bebafa256688cc5b2033779112d3ba4ee6592a67 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL17_mMed-1000_mDark-10_kappa-0p2_aligned-down_cff.py | 1e55bb177e0248446530a17ca3b58394c483f328 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,961 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
cefc94e4b906f9be3a6fb61c800913cfaf3f1f37 | ad4299d34d75f4cf346c08d1971fff0555923b7a | /nodeum_sdk/models/by_metadata_value_buckets.py | 7f663cd885871b1cc0cbcc91a8a3dca52273855a | [
"MIT"
] | permissive | nodeum-io/nodeum-sdk-python | 16ab0b4e6dcff05c4a06829d263d27f3b66a41be | 205536491bff507dea7be44af46202c17e7121d9 | refs/heads/master | 2021-07-13T19:38:24.863671 | 2020-09-01T09:56:30 | 2020-09-01T09:56:30 | 201,425,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,247 | py | # coding: utf-8
"""
Nodeum API
The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http... | [
"thomas.chandelle@mt-c.com"
] | thomas.chandelle@mt-c.com |
b7ce35e05be0a2aeebc41796f49d3ef7d711954c | 24a38619bfb7458e9124c4eddb86e67f46a7cdcd | /weo/dates.py | 1b39ad9c71ad183e5cf6f79f06437c4734f4f8e2 | [] | no_license | FinTrek/weo-reader | 8a976b08bb8d4b606ea0930507bf57529d9d094d | 8a9f6a51e19ca38caeaa35d2c814dc73a7b1388d | refs/heads/master | 2023-04-07T09:24:33.690258 | 2021-04-15T08:12:49 | 2021-04-15T08:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,177 | py | import os
from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from pathlib import Path
from typing import List, Optional, Tuple, Union
import requests
__all__ = [
"download",
"all_releases",
"make_url_countries",
"make_url_commodities",
"Date",
]
def cur_year() ... | [
"e.pogrebnyak@gmail.com"
] | e.pogrebnyak@gmail.com |
daa5e171eace2bc81c2aa7d6a425aaead522bd20 | 6b551bec528a1d6544201d3c6d86835e885343b5 | /deep_privacy/config/__init__.py | e890ce1d31413b02d716c5a49fc2d643da63d24f | [
"MIT",
"Apache-2.0"
] | permissive | hukkelas/DeepPrivacy | 9471c8e9389828aa09330905081205b061161d81 | 5ee3f1b0608f03ac54d5694b6421f6132cb63f0e | refs/heads/master | 2023-08-16T00:41:02.366235 | 2023-03-28T06:23:34 | 2023-03-28T06:23:34 | 206,106,232 | 1,288 | 194 | MIT | 2021-08-18T08:21:33 | 2019-09-03T15:08:27 | Python | UTF-8 | Python | false | false | 188 | py | import argparse
from .base import Config
def default_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser()
parser.add_argument("config_path")
return parser
| [
"hakon.hukkelas@ntnu.no"
] | hakon.hukkelas@ntnu.no |
437e08dbe2b55f9fa56c1e729dcc134bed63ab13 | 58f38f1d69d4bfc650ad18e0045c36ae29c9d84a | /Django基础部分代码/chapter11/authenticate_demo/front/models.py | fb099528d5cfdb0ff7e815a2b0d07bce8ee2011e | [] | no_license | zjf201811/DjangoWebProject | 0670c61b89387901089bf67cf2423d9341f69913 | fab15784fb326ba4517951e180418ea54de03afe | refs/heads/master | 2020-04-18T12:03:08.798484 | 2019-05-06T03:59:46 | 2019-05-06T03:59:46 | 167,522,193 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | from django.db import models
from django.contrib.auth.models import AbstractUser,BaseUserManager
from django.dispatch import receiver
from django.db.models.signals import post_save
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth... | [
"thor201105@163.com"
] | thor201105@163.com |
b32ecefa6149e3e45d3aa903f5f8953541a5d1af | a9ac3c537fc778b34cb32d4528e2d1190e65e19e | /shabanipy/version.py | 964651219a1dc54208efb4ad35ddff70d2eb6d1e | [
"MIT"
] | permissive | wms269/shabanipy | 9f770cfdf113ca8e8af69cd793be2f8bf9b0141a | 1e751631e031c528e18d5e0d8ff4fa1457f4107e | refs/heads/master | 2022-09-23T15:43:43.875608 | 2020-04-09T17:49:24 | 2020-04-09T17:49:24 | 265,638,022 | 1 | 0 | MIT | 2020-05-20T17:25:40 | 2020-05-20T17:25:39 | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2018 by ShabaniPy Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT license.
#
# The full license is in the file LICENCE, distributed with this software.
# ----------------... | [
"marul@laposte.net"
] | marul@laposte.net |
93225b0a14654568b4b5d579a6201445d80399e2 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/scikit-learn-Cookbook/code/chapter1/swiss_roll.py | c73c474a387fc3b5967f5bbab6fa6a4afc785319 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 429 | py | import sklearn.datasets as d
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt
import numpy as np
swiss_roll = d.make_swiss_roll()
f = plt.figure(figsize=(8, 4))
ax = f.add_subplot(111, projection='3d')
ax.set_title("A swiss roll with Y flattened.")
colors = np.array(['r', 'g', 'b'])
X = ... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
88d76acedf188298f224f8ab1e5713387b2cc660 | 8dde6f201657946ad0cfeacab41831f681e6bc6f | /digit_sum.py | 0325ac29e4631c9bb8dd93c9c6043d1056304b3f | [] | no_license | peraktong/LEETCODE_Jason | c5d4a524ba69b1b089f18ce4a53dc8f50ccbb88c | 06961cc468211b9692cd7a889ee38d1cd4e1d11e | refs/heads/master | 2022-04-12T11:34:38.738731 | 2020-04-07T21:17:04 | 2020-04-07T21:17:04 | 219,398,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | import collections
def getCounter(i):
# if i < 10:
# return collections.Counter(range(i+1))
threshold = 10
counters = [collections.Counter({0: 1})]
while i >= threshold:
cur_counter = counters[-1]
next_counter = collections.Counter()
for num in cur_counter:
f... | [
"caojunzhi@caojunzhisMBP3.fios-router.home"
] | caojunzhi@caojunzhisMBP3.fios-router.home |
838aebd46b9d1c892d43774d08246182238c65fb | 02682d8426a7738740d13b695f93223ddc1054a3 | /enabler/apps.py | ad8f1b1563d8c11f05ecbb547b2481dda0ad1cad | [] | no_license | math2001/cmt_manager | f8898d16d8e1e0f90651bd8e006b82dd98288a89 | d6a690b3885e9db2ff1921695ec7b2f31747a39f | refs/heads/master | 2023-01-31T03:20:52.023640 | 2020-12-12T03:03:29 | 2020-12-12T03:03:29 | 320,718,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class EnablerConfig(AppConfig):
name = "enabler"
| [
"australie.p@gmail.com"
] | australie.p@gmail.com |
19ac95fe5874ccfc89b7bb5c896250cdb88931c4 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2020_10_01_preview/models/_models_py3.py | a7053c060d6e53b3f37a65edb20344800cc44851 | [
"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 | 159,358 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
bf85f2d5bc9202b07db534959a5bffdd241ea76a | 192874fd96861ceb1864a71bf6f13932cc017d63 | /hue/desktop/core/ext-py/openpyxl-1.6.1/openpyxl/writer/styles.py | c31a5a905027ab106aeed9608cef392eb720e9c8 | [
"MIT",
"PSF-2.0",
"Apache-2.0"
] | permissive | OpenPOWER-BigData/HDP-hue | 1de3efc0ac773f1e7b1acd03675f11b65c6f477d | 23719febdaae26c916bdc9d0712645987ae7e0e4 | refs/heads/master | 2021-01-17T17:19:31.157051 | 2016-07-18T19:44:10 | 2016-07-18T19:44:10 | 63,631,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,535 | py | # file openpyxl/writer/styles.py
# Copyright (c) 2010-2011 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, c... | [
"afsanjar@gmail.com"
] | afsanjar@gmail.com |
99c7253a3a82a9b457f75291657f219af610974a | 7baef4f7dad8e6538096d42c4e03e6d531fbf0bf | /day03/pymysql回顾.py | 8024a2823e0fbd29a0872938bafc1ab8e1a1cd6e | [] | no_license | q737645224/spyder | a16a2bdbdab12ca6b2546f81363d3571d1358a3e | bae94180ef6953a21a2491da378cce738312afc7 | refs/heads/master | 2020-04-07T20:03:30.966825 | 2018-11-23T04:29:34 | 2018-11-23T04:29:34 | 158,673,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # 创建一个库 testspider
# 创建一张表 t1 (id int)
# 在表中插入一条记录 id=1
import pymysql
# 创建数据库连接对象
db = pymysql.connect("localhost","root","123456",
charset="utf8")
# 创建游标对象ss
cursor = db.cursor()
cursor.execute("create database if not exists testspider;")
cursor.execute("use testspider;")
cursor.execute("crea... | [
"764375224@qq.com"
] | 764375224@qq.com |
c73811aca9f9efdecf49e96164b6a636150efd2a | 4e02d5b0b1b0739553fd40bbbdfb0d02c9830350 | /128_Longest_Consecutive_Sequence.py | c9b07f448a3b08cc5afae8e2d2900b8f23681a6f | [] | no_license | bingli8802/leetcode | b039ab6af62f0c8992463393f561caafd21056e6 | a509b383a42f54313970168d9faa11f088f18708 | refs/heads/master | 2023-03-29T03:11:45.801090 | 2021-03-23T22:55:16 | 2021-03-23T22:55:16 | 279,321,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class Solution(object):
# 先消重再排序
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
nums = list(set(nums))
nums.sort()
n = len(nums)
dp = [1] * n
res = 1
# print n... | [
"noreply@github.com"
] | bingli8802.noreply@github.com |
a94cec00255f5040df4c55fb1849dca6fed62f52 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/423/usersdata/310/90249/submittedfiles/mdc.py | a77c841ed2e89333d50d419a258627beefa4aba9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input('Digite n1: '))
n2 = int(input('Digite n2: '))
i = 1
while true:
i+=1
(n1%i)== (n2%i)==0
if i == n1 or i==n2:
break
print (i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f21d03a72329d8ac5a16de1eab795c0d58849ca1 | ef11cb7a2ee550e4fb95be46cd4d67d6cc230787 | /python/Top Interview Questions - Medium/Sorting and Searching/tests/test_peakelement.py | d127805ee2d84e333d8f1e8d744f4cc27a3513b7 | [] | no_license | Hilldrupca/LeetCode | 44b32161743ba982ea5e3fe593ff8a27c96e9350 | c6d600bc74afd14e00d4f0ffed40696192b229c3 | refs/heads/master | 2023-03-31T22:21:17.967663 | 2021-04-07T16:18:17 | 2021-04-07T16:18:17 | 288,544,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import unittest, sys
sys.path.append('..')
from peakelement import Solution
class TestPeakElement(unittest.TestCase):
def setUp(self):
self.s = Solution()
def test_find_peak_element(self):
case_one = [1,2,3,1]
self.assertEqual(self.s.findPeakElement(case_one), 2)
... | [
"hilldrupca@gmail.com"
] | hilldrupca@gmail.com |
304249226458b0590377088be01d33c50df7627a | 4a5c67c87150955ce0164b4263458dbcb563bbda | /api_venv/bin/sqlformat | ce4f3d3fe4f575bd89d0ab0ad3ace1e2db24b0c2 | [] | no_license | madhav06/python-rest-api | 24715a1b8f0f58ab5ba45d03e8f2fc9eb355a5f0 | fb49b308bfa478ed53817e1d0a504099a1317e96 | refs/heads/master | 2023-02-07T05:30:07.347111 | 2020-12-19T09:02:16 | 2020-12-19T09:02:16 | 294,404,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/madhavnandan/python-rest-api/api_venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mnandan06@gmail.com"
] | mnandan06@gmail.com | |
f4574ec50464cb4a665ca662d90ca13be44605c6 | 75f0580af1734b9edb9e06bfadfe48f45b057872 | /2017/16/sol.py | 835caece5131fdce96b033253e6823d0875f54c4 | [] | no_license | penteract/adventofcode | 5bb317f8093f60c1d776d0983016a5288d059603 | 7b7344708ef1d58caa339a32a13f3390556b664c | refs/heads/master | 2023-01-29T16:08:13.541190 | 2023-01-16T20:21:02 | 2023-01-16T20:21:02 | 160,901,373 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | from functools import *
from itertools import *
from collections import defaultdict
import sys
sys.setrecursionlimit(100000)
f = open("input")
l=[x for x in f]
d=defaultdict(int)
#r=list(map(int,l[0].split()))
#l=["s1,x3/4,pe/b"]
l = l[0].split(",")
p = [chr(x) for x in range(ord("a"),ord("p")+1)]
#p=list("abcde")
pr... | [
"tcathcartburn@gmail.com"
] | tcathcartburn@gmail.com |
db49ab033224ca4e10e045059a3acc5df038ce33 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002442.py | 5629f88f997a1d7f910f1dc3a272cbf65af41175 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
4404f045b07bb343172c518668f96bba1f6a6075 | 3a99586e226f0f23ace22fcc30af7b190e90dd08 | /esp32/tools/get.py | 51be563a24a667b244c4f3d8cf43666479955974 | [] | no_license | thewenneur/esp32-1 | 19a1095b0b619c0bb9cb9eaa86abd2a9d9678269 | d683123af8cc39fe2dfc281ac44444023186960f | refs/heads/master | 2021-01-20T08:36:48.001717 | 2017-08-29T16:39:49 | 2017-08-29T16:39:49 | 101,567,493 | 0 | 0 | null | 2017-08-29T16:44:49 | 2017-08-27T17:06:58 | C | UTF-8 | Python | false | false | 5,065 | py | #!/usr/bin/env python
# This script will download and extract required tools into the current directory.
# Tools list is obtained from package/package_esp8266com_index.template.json file.
# Written by Ivan Grokhotkov, 2015.
#
from __future__ import print_function
import os
import shutil
import errno
import os.... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
583dd181b2b7cd621ebd9e4f11ad5c3aaa71c632 | db69a3e20ec69bd8a08ed14ec6193a08e543965d | /mars/dataframe/window/expanding/tests/test_expanding.py | 2b03e57dbb175028f762828d25976440b7f1e046 | [
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | Fernadoo/mars | dbf62cd6f3ff82e3c399f1c06c6da1681b462856 | f8e93edeecbe184b018cd1d0d948b3a2ba74bee6 | refs/heads/master | 2023-08-12T12:48:33.726883 | 2021-09-29T14:29:18 | 2021-09-29T14:29:18 | 377,359,795 | 0 | 1 | Apache-2.0 | 2021-09-29T14:29:19 | 2021-06-16T03:29:08 | Python | UTF-8 | Python | false | false | 2,337 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# 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 a... | [
"noreply@github.com"
] | Fernadoo.noreply@github.com |
58ed44fde6b4a7efde10c71105ac6a59cce696d1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HaxQfQTEpo7BFE5rz_22.py | ad90b5d4387874d64b88c56f046176ed2d7ab37e | [] | 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 | 636 | py |
def alternate_pos_neg(lst):
Length = len(lst)
if (0 in lst):
return False
if (Length < 2):
return True
Group_A = []
Group_B = []
Counter = 0
Length = len(lst)
while (Counter < Length):
Item = lst[Counter]
if (Counter % 2 == 0):
Group_A.append(Item)
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1f04965e75982f1b5afc12d0b634c0c48480c05a | 356b5455a4fb86c49c800a6181323b7fabef2b08 | /ppci/cli/java.py | fb06d54a7bd02da0b0ff2377aad9a91c0f00bb8b | [
"BSD-2-Clause"
] | permissive | obround/ppci | be7d1ce7832513629ee1301e7b67c0ceda38d668 | ba0840bc5f4ffd889f882a814fb26f88cd854379 | refs/heads/master | 2023-02-11T13:47:35.439871 | 2021-01-05T22:33:08 | 2021-01-05T22:33:08 | 327,131,704 | 0 | 0 | BSD-2-Clause | 2021-01-05T22:08:23 | 2021-01-05T22:08:23 | null | UTF-8 | Python | false | false | 2,137 | py | """ Java handling utility.
"""
import argparse
import sys
from .base import base_parser, march_parser, LogSetup, get_arch_from_args
from .compile_base import compile_parser, do_compile
from ..arch.jvm import read_class_file, class_to_ir, print_class_file
from ..arch.jvm import read_jar
from ..irutils import print_modu... | [
"windel@windel.nl"
] | windel@windel.nl |
a6a0f7b4beb4b4725dd0e18f9b8fc2ea3da17868 | ecc5e006b8336a444678ac0db9ef63fffc1307d3 | /backend/affinity_24197/wsgi.py | 862ceeb3ae2ce5ecf19d749a9131ca9f323b9128 | [] | no_license | crowdbotics-apps/affinity-24197 | f280bff6a9352c86e4df6306167cd322f1e798d4 | 699558a60e58f52c53b50650200b9c0ff27292ed | refs/heads/master | 2023-02-27T06:40:05.898471 | 2021-02-01T20:55:17 | 2021-02-01T20:55:17 | 335,081,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for affinity_24197 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.setdefault('DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
487a87eccdc9fded9c01a8c11fc065a68e28b11e | 87140007e96872d3611f0778eb0eebe5799616d7 | /runs/src8-tgt4/par-bro-iter03000.cfg.py | 9b417d6b0b220f0e5ea3402e7eca3723d83b49d6 | [
"MIT"
] | permissive | janpawellek/broeval | 49499fa302abff916ffced201034d3b9394503cd | 57e31aa6e354d0bba88103b44910483e8d982d00 | refs/heads/master | 2021-01-11T12:19:13.619220 | 2016-12-20T16:23:27 | 2016-12-20T16:23:27 | 76,468,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py |
# Write results to this file
OUTFILE = 'runs/src8-tgt4/par-bro-iter03000.result.csv'
# Source computers for the requests
SOURCE = ['10.0.0.11', '10.0.0.12', '10.0.0.13', '10.0.0.14', '10.0.0.31', '10.0.0.32', '10.0.0.33', '10.0.0.34']
# Should Bro be enabled on the source machines?
SOURCE_BRO = [True, True, True, Tr... | [
"pawellek@stud.uni-heidelberg.de"
] | pawellek@stud.uni-heidelberg.de |
914826d139e292b9eaad569990e10a927b19d38f | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000375.py | aa7700fe091caac398fee48064c6a60790bbfb21 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
aae86dec0874ccba8a31b92ae911f0ffd56c20b4 | e233f9bf52ad0f88416962edd957a3c866c19b78 | /reagent/workflow/spark_utils.py | fbd43d68752885e10e28a6381fa830d1d76ccb3b | [
"BSD-3-Clause"
] | permissive | dwtcourses/ReAgent | 38c99dfe47adf1471620419f744cb4145f4f4151 | b9b54d4f30ff65cf1c54dc0cf90c938b48c44f90 | refs/heads/master | 2022-04-26T15:35:46.109984 | 2020-04-29T05:38:14 | 2020-04-29T05:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | #!/usr/bin/env python3
import logging
import os
import pprint
from os.path import abspath, dirname, join
from typing import Dict, Optional
import reagent
from pyspark.sql import SparkSession
from pyspark.sql.functions import col
logger = logging.getLogger(__name__)
# This is where Scala preprocessing (i.e Timeline... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
95da1c4d9aaf181baaa004c2b4e9535dcb762d7c | e983e429c87d27860b35e91e82109474aecefe7e | /env/bin/django-admin.py | 45576ab1de002d7bddddaf05f80cc1126b22ae25 | [
"MIT"
] | permissive | wilbrone/InstaPhotos | 6943312933a9d33fc5593f109756ccd7fec7118f | f4a0b7ccf04637702f5868f4ce9d88913863bc55 | refs/heads/master | 2022-12-11T05:45:58.010157 | 2020-01-20T08:33:44 | 2020-01-20T08:33:44 | 230,255,757 | 0 | 0 | MIT | 2022-12-08T03:27:12 | 2019-12-26T11:52:30 | Python | UTF-8 | Python | false | false | 177 | py | #!/home/aphya5/moringa-school-projects/Django/instagram/env/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"wilbroneokoth@gmail.com"
] | wilbroneokoth@gmail.com |
4ea1512ea43feb40f0800c9b8e9a1a44af519500 | fac37d77a8d00e3d13106bcd728d51a455dd16f2 | /aspc.py | 42705d3d34343e8607e14290df10a67f66313486 | [] | no_license | anu-bioinfo/rosalind-4 | c6a628bba94f647cf4a34bdf505f1527af4346a9 | 3ddc659d44298f4dd4b5dde66d7833b4d27a2580 | refs/heads/master | 2020-03-25T13:47:39.521215 | 2014-09-14T02:30:54 | 2014-09-14T02:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/env python
from __future__ import print_function, division
import os
from math import factorial
def sum_of_combinations(n, m):
return sum(factorial(n) // (factorial(k) * factorial(n - k))
for k in range(m, n + 1)) % 1000000
if __name__ == "__main__":
with open(os.path.join('data',... | [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
5e792aae5764fc35b1a8a29c85694f13c0e7eb99 | 53181572c4b22df4b569a9901bcd5347a3459499 | /ceit_191116/py200307/function_1_def.py | 7356a48cd8e325c795895d041c04ae7aae902bff | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | """
function definition, syntax
without parameters
def function_name(*parameters):
'''docstring'''
statement(s)
"""
# example 1 - my print a line
# function name: myprint
# parameters: ()
# define - user-defined
def myprint():
print("===")
print()
print("===")
# call a function
mypri... | [
"lada314@gmail.com"
] | lada314@gmail.com |
d259c44a3f848080f0ba94f0baa88e557cf06e5b | e8c93a67b7812c644d0485ddae665a638d278340 | /captum/attr/_core/layer/layer_integrated_gradients.py | 9d3840cc23968bc9e3bfc7fed8f55d4fcf49620a | [
"BSD-3-Clause"
] | permissive | nanohanno/captum | b30ebadb6da683269bc9d9fb8253304d51049441 | f1346fc32a1f191f2c9a9401428372f68a88aec1 | refs/heads/master | 2021-08-09T00:43:51.866663 | 2021-07-23T23:33:14 | 2021-07-23T23:34:48 | 226,319,799 | 1 | 3 | BSD-3-Clause | 2019-12-06T11:56:44 | 2019-12-06T11:56:43 | null | UTF-8 | Python | false | false | 24,893 | py | #!/usr/bin/env python3
import functools
import warnings
from typing import Any, Callable, List, Tuple, Union, overload
import torch
from torch import Tensor
from torch.nn.parallel.scatter_gather import scatter
from captum._utils.common import (
_extract_device,
_format_additional_forward_args,
_format_out... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d17f822579e1bc3a3eb2590493618026d10cf984 | 1a82a96e860d69d4f1ce862c1fa86919f356a7a8 | /finalcif/gui/new_key_dialog.py | 9ca94cbda85fd2c273bbcbb20e78edb0b3b9babc | [
"Beerware"
] | permissive | dkratzert/FinalCif | f9d27aaf4a5da2620c000e75cf7a59c78646c2dc | f97ccec1e8be9ce4034784fa52bbc5257d9a9e7d | refs/heads/master | 2023-08-31T10:24:08.258193 | 2023-08-31T10:22:20 | 2023-08-31T10:22:20 | 191,889,707 | 21 | 1 | NOASSERTION | 2023-05-21T15:07:51 | 2019-06-14T06:41:16 | Python | UTF-8 | Python | false | false | 1,569 | py | import re
from PyQt5 import QtWidgets
from PyQt5.QtCore import pyqtSignal
from finalcif.cif import all_cif_dicts
from finalcif.gui.new_key_dialog_ui import Ui_AddKeyWindow
class NewKey(QtWidgets.QMainWindow, Ui_AddKeyWindow):
new_key_added = pyqtSignal(str)
def __init__(self, parent=None):
super().... | [
"dkratzert@gmx.de"
] | dkratzert@gmx.de |
aef336f70ef99ce4f5996661124bb6ba969bbb5d | 5118ee8e91da7e76949cbb8d401462d5f402723d | /python_work_fs01/2018/0329/test3.py | 819908059479c589e80f0bf5257e3b48cb5e76da | [] | no_license | nakanishi-akitaka/python_backup | ad87941396e84cacd8540d66033b560025c4de92 | d11e5b9cf4dd57f51938d3638ff74c102380e624 | refs/heads/master | 2020-06-30T08:22:39.696697 | 2019-12-21T23:18:55 | 2019-12-21T23:18:55 | 200,776,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,751 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from pymatgen import Composition, Element
from numpy import zeros, mean
trainFile = open("bandgapDFT.csv","r").readlines()
# input: pymatgen NO Composition object
# output: SOSEI vector
def naiveVectorize(composition):
vector = zeros((MAX_Z))
for elemen... | [
"noreply@github.com"
] | nakanishi-akitaka.noreply@github.com |
0463e4ee319c4bf4ebffe5cd815ab8f85b45adef | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/importer/tflite2/handlers/backend/transpose.py | 23234c75127cac797ca8c1adf4ffb04f15ab2673 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 2,705 | py | # Copyright (C) 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This progr... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
aa65c39966c5c3996b0e4ccc5cd54969b654a3b4 | b3d552675b36cb88a1388fcfc531e497ad7cbee9 | /day8/form_validater/cms/models.py | bd100b3fda14c14a849c139d0223a34e3b01935a | [] | no_license | gaohj/1902_django | 3cea1f0935fd983f25c6fd832b103ac5165a2e30 | 822af7b42120c6edc699bf97c800887ff84f5621 | refs/heads/master | 2022-12-11T10:02:50.233398 | 2019-11-26T08:33:38 | 2019-11-26T08:33:38 | 209,241,390 | 2 | 0 | null | 2022-12-08T07:28:24 | 2019-09-18T07:05:48 | Python | UTF-8 | Python | false | false | 179 | py | from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=100)
telephone = models.CharField(max_length=100) | [
"gaohj@126.com"
] | gaohj@126.com |
582cd839c799c316ee8471223a0c1ea010ab379b | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_LinearTrend/cycle_0/ar_12/test_artificial_1024_Quantization_LinearTrend_0_12_0.py | 77be5894f2be385b71feb3c48605ac0b18920a78 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 0, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
bf494aea278afcbbd81af424e97a4bce171d18d2 | d87d312ff0d8e200605d35932abdfa282c803110 | /qswatplus/PIL/ImageDraw.py | 6a70def3b20f79f40de5fd8c9ccac0fea86eb39c | [
"GPL-2.0-or-later",
"MIT"
] | permissive | celray/swatplus-automatic-workflow | 70848960f8ff6b109899ced145ee938d2adcfd19 | ddb3de70708687ca3167ec4b72ac432426175f45 | refs/heads/master | 2022-03-16T17:23:15.815336 | 2022-03-09T19:08:35 | 2022-03-09T19:08:35 | 248,785,912 | 11 | 5 | MIT | 2020-10-16T11:11:56 | 2020-03-20T15:12:48 | Python | UTF-8 | Python | false | false | 16,527 | py | #
# The Python Imaging Library
# $Id$
#
# drawing interface operations
#
# History:
# 1996-04-13 fl Created (experimental)
# 1996-08-07 fl Filled polygons, ellipses.
# 1996-08-13 fl Added text support
# 1998-06-28 fl Handle I and F images
# 1998-12-29 fl Added arc; use arc primitive to draw ellipses
# 1999-01... | [
"celray.chawanda@outlook.com"
] | celray.chawanda@outlook.com |
353cc38bd9be00b7415a5b43c6474ad6cede0ac4 | 6e1549257568a0ca81b3fc5864e2e1fa65171b06 | /salarydk/models/inline_response20086.py | 5ba1f813cf50856872be7f174fd9b1ec2d9076ca | [] | no_license | tdwizard/salarydk | 19d3453de8fbdd886a0189dbf232f98de971e18a | dcf5040101b3e576f1068ea104148651e5c66511 | refs/heads/master | 2023-08-05T05:40:09.561288 | 2021-09-24T09:41:43 | 2021-09-24T09:41:43 | 409,910,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,924 | py | # coding: utf-8
"""
Salary.dk API
This is the public API for Salary.dk. # General Our API is a JSON-based, REST-like API. Our webapp uses the exact same API, so everything you can do in our webapp, you can do through our API. However, we are slowly opening up the API, so not all endpoints are documented her... | [
"tdrobiszewski@tdwizard.com"
] | tdrobiszewski@tdwizard.com |
598ac98ebf7a8341d74571338f3b6e48b6e28ed2 | 708074835900ae623239ce3c0d1e6f948b799fd0 | /ftp-2/ftp_client/ftp_client.py | 0656e0224631f01bd97e806116aa4fd738f037a1 | [] | no_license | hukeyy/learn_python | 66688bcbaa43d79775030d2876979bbda08892ef | c71a37da88b089316536587ed47d32405bd987a3 | refs/heads/master | 2020-03-21T11:07:24.049328 | 2018-12-25T11:59:17 | 2018-12-25T11:59:17 | 138,490,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: hkey
import os, sys
import socket
class MyClient:
def __init__(self, ip_port):
self.client = socket.socket()
self.ip_port = ip_port
def connect(self):
self.client.connect(self.ip_port)
def start(self):
self.connect()
... | [
"mickey.20@qq.com"
] | mickey.20@qq.com |
4bcc563980a7cf202366282871a65a1d905a2c74 | 143e7c46515697d009bdb0bb4825db18942db002 | /movies/forms.py | a59290839cee1ac462126f093ba2d4be41f147bc | [] | no_license | yoonwoo123/project_08 | e171aec3729b5d2686b3d10769c2bbd84a2b90ad | b978e86696b84c7e505263ad0fa776edb93d0a58 | refs/heads/master | 2020-09-01T14:18:29.392806 | 2019-04-04T05:15:16 | 2019-04-04T05:15:16 | 218,978,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from django import forms
from .models import Movie
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
class MovieForm(forms.ModelForm):
class Meta:
model = Movie
fields = '__all__'
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwa... | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
ffdb634592c69b8a2d23ac8f12192049bb9f4287 | d5dc79925d84486315fb0ed71a0403a27cb5d6af | /DDF_experiment/dark_ddf.py | 09266d09ec5714e5e4ae827ebfc8ee579b124e60 | [] | no_license | lsst-sims/sims_featureScheduler_runs1.4 | 2e5b3380f29256c6bbc164787cb41d060456d1d3 | 87684c9c3156f3ebd18cc06c8512ee92ef1b16a0 | refs/heads/master | 2020-08-11T09:06:19.901882 | 2020-07-17T20:45:17 | 2020-07-17T20:45:17 | 214,535,040 | 1 | 2 | null | 2019-12-03T20:59:31 | 2019-10-11T21:57:32 | Jupyter Notebook | UTF-8 | Python | false | false | 24,296 | py | import numpy as np
import matplotlib.pylab as plt
import healpy as hp
from lsst.sims.featureScheduler.modelObservatory import Model_observatory
from lsst.sims.featureScheduler.schedulers import Core_scheduler, simple_filter_sched
from lsst.sims.featureScheduler.utils import standard_goals, create_season_offset
import l... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
9d503b9b1c3674a28181a2570002021ac4478d1d | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/Axiom_49_61_Classic/Axiom.py | 0ab7f4b3308a768b95753f436555c09b9f96c849 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Axiom_49_61_Classic/Axiom.py
from _Axiom.consts import *
from _Axiom.Transport import Transport
from _Axiom.Pads import Pads
from _Axiom.Encoders import Encoders
from SliderSection import SliderSection
import Live
impo... | [
"admin@scoopler.com"
] | admin@scoopler.com |
5f1b314f8c6a6fa4da53ae06524ff29cf5a0f199 | ecd9b7e440f002a00d3a8a8e62de208508fadb75 | /flask/docker_flask_simple/app.py | cb6628b3c9dbfca90bb81b8a092b41c7c253c91b | [] | no_license | enderst3/challenges | ce2248eabc36e64dbd84dffad3fea176108bc3f3 | 0b13195cc53d5fc25f7bedd3dad1c14051e216cc | refs/heads/master | 2023-01-09T00:47:51.129159 | 2020-04-20T22:09:00 | 2020-04-20T22:09:00 | 77,492,197 | 0 | 1 | null | 2023-01-03T22:44:04 | 2016-12-28T01:08:14 | null | UTF-8 | Python | false | false | 180 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Flask Docerized'
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0')
| [
"enderst3@gmail.com"
] | enderst3@gmail.com |
e76a7e53420bb1d7554e59aa283fc3ad1b29a39a | 268568ff2d483f39de78a5b29d941ce499cace33 | /external-deps/python-language-server/pyls/_utils.py | b1a3bd96c8db094dcff95ae71fcefcf25cd50da1 | [
"MIT",
"Python-2.0"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 6,670 | py | # Copyright 2017 Palantir Technologies, Inc.
import functools
import inspect
import logging
import os
import sys
import threading
import jedi
PY2 = sys.version_info.major == 2
JEDI_VERSION = jedi.__version__
if PY2:
import pathlib2 as pathlib
else:
import pathlib
log = logging.getLogger(__name__)
def debo... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
205911f940c06e8ae528b745e89315ebdc625763 | 3546dd5dbcffc8509440c820faa7cf28080c5df7 | /python35/Lib/site-packages/scipy/spatial/_procrustes.py | e94af255f13055b789b6289a7e0f6872ad2a0b60 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | Matchoc/python_env | 55ad609c8270cc6148eda22d37f36709d73b3652 | 859d84d1717a265a4085ad29706b12c19c62d36f | refs/heads/master | 2022-02-13T11:05:51.825544 | 2020-06-05T02:42:08 | 2020-06-05T02:42:08 | 75,793,921 | 0 | 1 | Apache-2.0 | 2018-12-14T07:30:28 | 2016-12-07T03:06:13 | Python | UTF-8 | Python | false | false | 4,498 | py | """
This module provides functions to perform full Procrustes analysis.
This code was originally written by Justin Kucynski and ported over from
scikit-bio by Yoshiki Vazquez-Baeza.
"""
from __future__ import absolute_import, division, print_function
import numpy as np
from scipy.linalg import orthogonal_p... | [
"matchoc@hotmail.com"
] | matchoc@hotmail.com |
99a4eea6eda5b5fb118f8699d09cd04ae35731c3 | 2f898bb332097d11f321186207e94f6d156587f3 | /audio/generar_lista.py | 19b54a1a93b7ab07278abcc704016addeba3b756 | [
"MIT"
] | permissive | miltonsarria/teaching | ad2d07e9cfbfcf272c4b2fbef47321eae765a605 | 7a2b4e6c74d9f11562dfe34722e607ca081c1681 | refs/heads/master | 2022-01-05T05:58:13.163155 | 2019-05-02T20:45:46 | 2019-05-02T20:45:46 | 102,375,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import os
data_dir='/home/sarria/python/audio/audio'
######################
# frequency range to plot
archivo=open('lista.txt','w')
for dirpath, dirnames, filenames in os.walk(data_dir):
for name in filenames:
if name.split('.')[1]=='wav':
fullname = os.path.join(dirpath,name)
archivo.write... | [
"miltonsarria@gmail.com"
] | miltonsarria@gmail.com |
cdf97c1a0c5c56f2ee41575f2427b61649c0da97 | 043ca446cbee59c1926de7473869ef34748e5b2b | /_2016/patreon.py | e381afcf994ca2b241b69e2c1b1d7faa5516bb21 | [
"MIT"
] | permissive | soubam/videos | 785d04907d6955456797f989893b3f811c7f721e | 04a00e521808e2b733903bd1c91435a29ba2c678 | refs/heads/master | 2023-08-28T15:38:08.284733 | 2021-11-11T23:22:35 | 2021-11-11T23:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,927 | py | from manim_imports_ext import *
class SideGigToFullTime(Scene):
def construct(self):
morty = Mortimer()
morty.next_to(ORIGIN, DOWN)
self.add(morty)
self.side_project(morty)
self.income(morty)
self.full_time(morty)
def side_project(self, morty):
rect = ... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
6e2543b569d01c6fb691b474f00c0e8cba92b412 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /22_专题/字典序列删除/No.205 マージして辞書順最小.py | eaa9b544e0e0d282d781269d4968c7757f805bb3 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # https://yukicoder.me/problems/no/205
from heapq import heapify, heappop, heappush
from typing import List
def minLexMerge(words: List[str]) -> str:
"""字典序最小的合并字符串"""
pq = [w + chr(200) for w in words]
heapify(pq)
res = []
while pq:
min_ = heappop(pq)
res.append(mi... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
04354364843fb4756d535de602e0fdfbd92a9c56 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class592.py | 0d982aed897b3624ea008b4b08f71e31f6e89d1f | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | # qubit number=3
# total number=16
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d8cf6188053ba908317208d886dcc8fd7f1b6f87 | 62bbfb6c50bba16304202aea96d1de4990f95e04 | /dependencies/pulumi_aws/ebs/get_volume.py | 76cdd9bcbc32565818b181ebf5c6ff8e2aa9a736 | [] | no_license | adriell/lambda-autoservico-storagegateway | b40b8717c8de076e61bbd422461c7d624a0d2273 | f6e3dea61b004b73943a5438c658d3f019f106f7 | refs/heads/main | 2023-03-16T14:41:16.821675 | 2021-03-11T03:30:33 | 2021-03-11T03:30:33 | 345,865,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,905 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | [
"adriel@infoway-pi.com.br"
] | adriel@infoway-pi.com.br |
0db7239c4f03d3370f18ba124dbfcb684296c2b2 | 962bc309985d39c115948dc788027dd860491ec8 | /src/bioservices/tcga.py | 67281041e4d623bedabba038cd7b7b6e13f0a6f3 | [] | no_license | kp14/bioservices | 6d03808ca5d14c84b708a819c8e4ad3ba3cb8931 | a0e7f0f7aee3c8afc41ebebeb70d04dd02155e4f | refs/heads/master | 2020-12-25T20:43:15.568664 | 2015-11-04T15:46:04 | 2015-11-04T15:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | # -*- python -*-
#
# This file is part of bioservices software
#
# Copyright (c) 2013-2014 - EBI-EMBL
#
# File author(s):
# Thomas Cokelaer <cokelaer@ebi.ac.uk>
#
#
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# ... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
78e539bc4df5bd03fd0482b41756fceec1fe2904 | 0aedbdf98c00ff0c74a6fa759d4991563b957cde | /TwitterStream.py | 5061256bb6e4ebb9d7cc5fee8bd48a203c55c4fe | [] | no_license | seethakris/ASPP2018 | b953b0cc6684f9a9c667e85b6a37de73a2f0f41a | 44aca0d6f3d3a1dac3bd9348477d23adc7b53f43 | refs/heads/master | 2021-09-04T11:07:51.423377 | 2018-01-18T04:24:54 | 2018-01-18T04:24:54 | 117,678,504 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | # Import the necessary methods from tweepy library
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
from time import sleep
from collections import deque # list-like container with fast appends and pops on either end
# Variables that contains the user credentials to... | [
"seethakris@gmail.com"
] | seethakris@gmail.com |
5481f6f58c583a5b277d9510ddf791c355253b36 | 4510bbf54e2ca619c3a863f5ca03df6584585402 | /tfx/components/__init__.py | c41bd948dd4197767f194a8a52a9a827be681b74 | [
"Apache-2.0"
] | permissive | Mdlglobal-atlassian-net/tfx | e55f38336d1989ac970b5069c7128097ed86b422 | 37cbbb95c65e1a891045dd13232a7f2a293a7b70 | refs/heads/master | 2022-10-02T07:44:41.180873 | 2020-06-01T18:49:15 | 2020-06-01T18:49:53 | 268,607,840 | 0 | 1 | Apache-2.0 | 2020-06-01T19:01:51 | 2020-06-01T19:01:50 | null | UTF-8 | Python | false | false | 2,189 | py | # Lint as: python2, python3
# Copyright 2019 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
8bb262aeb2c7180ba30a8500f8b6363764b4e797 | 8890925319a25dc3df29f53d0d8125d347680f68 | /looker_client_31/looker_sdk/user.py | 211ffb1e3e321c24c8a99f3587927f6b7965c9ad | [
"MIT"
] | permissive | ContrastingSounds/looker_sdk_31 | f5d300ae54aee1cc5a2621b36b49541db24ed248 | f973434049fff1b605b10086ab8b84f2f62e3489 | refs/heads/master | 2020-03-19T20:31:24.785373 | 2018-06-11T09:41:36 | 2018-06-11T09:41:36 | 136,802,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,338 | py | # coding: utf-8
"""
Experimental Looker API 3.1 Preview
This API 3.1 is in active development. Breaking changes are likely to occur to some API functions in future Looker releases until API 3.1 is officially launched and upgraded to beta status. If you have time and interest to experiment with new or modifie... | [
"looker@MacBook-Pro.local"
] | looker@MacBook-Pro.local |
fbfcabf6cfb11d516401f5429f766accc46becaf | 7a09af404f29389504742a3d5f1727bfbe562750 | /TrekBot2_WS/build/tf2_tools/catkin_generated/pkg.installspace.context.pc.py | f8537ec21dba2e692b461229e9f52497428867f2 | [
"MIT"
] | permissive | Rafcin/TrekBot | 4baa2ed93b90920b36adba0b72384ac320d2de01 | d3dc63e6c16a040b16170f143556ef358018b7da | refs/heads/master | 2020-03-30T02:15:35.361254 | 2018-12-14T03:30:25 | 2018-12-14T03:30:25 | 150,622,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "tf2;tf2_msgs;tf2_ros".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tf2_tools"
PROJEC... | [
"Rafcin.s@gmail.com"
] | Rafcin.s@gmail.com |
34104a73ede55a038ffc76a358918c958c9d3b49 | b36c05bfa929cac8f956feebba1e7cb2fc550387 | /d5/d5p2.py | ef18fab1691f09b791969af3089469d440ed7028 | [] | no_license | jabadia/advent-of-code-2017 | ddc5dd2e141e0620ec7d017d0345cc3807debfbf | 9e595bf7d074073dde0f85353fe060e6bf147969 | refs/heads/master | 2021-09-01T20:15:39.211708 | 2017-12-25T22:33:12 | 2017-12-25T22:33:12 | 115,634,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,315 | py | TEST_INPUT = """
0
3
0
1
-3
"""
INPUT = """
0
1
0
0
1
-3
0
0
2
-2
-6
-3
2
-5
-6
-3
-3
0
-8
-12
1
-9
-12
-9
0
-7
-17
-6
-18
-7
-6
-21
-28
-14
-23
-14
-17
-5
-35
-17
-26
-14
1
-27
-19
-40
-32
-44
2
-14
-15
-12
-35
0
-49
-12
-7
-46
-47
-32
-33
-47
-7
-62
-20
-35
-4
-35
-8
-3
-61
-38
-63
-27
-33
-57
-48
-66
-68
-11
-61
-5... | [
"javi.abadia@gmail.com"
] | javi.abadia@gmail.com |
90d1ba7d7f1065e6b4287dc4f9bdf753dd042573 | de56d8ffb98bf4ef8336a89f7dea2ba4e4797134 | /blog/migrations/0005_auto_20200619_0217.py | 4f935d59ebd5bda644ffa14190f257db3d6f39a6 | [] | no_license | topdev38/agecny-cms | 9bb5280646d498592738936599ceb13c87899428 | ff9f76b06e2e41b82cc2ebf54fbd27a9a22994f3 | refs/heads/master | 2023-01-01T23:15:50.436794 | 2020-10-18T03:51:17 | 2020-10-18T03:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Generated by Django 3.0.5 on 2020-06-19 09:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0009_auto_20200619_0205'),
('blog', '0004_auto_20200618_0812'),
]
operations = [
migrations... | [
"gabriel.sabadac@yahoo.ro"
] | gabriel.sabadac@yahoo.ro |
425f90eb8552b8eddac49d0942fe278eeb209643 | 85e078ee3ceda5091624233ca19ba42f78747499 | /LeetCode/binary_tree_tilt.py | da123fed23b66a5d89eb908cb09913176514a842 | [] | no_license | papayetoo/StudyinPython | d5e6ec0cff0e97fcc4afc8d846e3658c06eb67c2 | f686b6e08720ad4d7d57b41d24c63c4bfa64dd90 | refs/heads/master | 2021-07-22T04:05:38.993123 | 2021-02-03T14:12:26 | 2021-02-03T14:12:26 | 240,009,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | 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:
def findTilt(self, root: TreeNode) -> int:
def postorder(node: TreeNoe):
if not node:
... | [
"rhkdgus0826@gmail.com"
] | rhkdgus0826@gmail.com |
fc14e4aaa42ca1b1f9774ae8c9c96ace464ac8e0 | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/train/xgboost/xgboost_predictor.py | 1b319b93b299bc02a5b83a2f1cdcfa1e8fab6e8e | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 5,718 | py | from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
import pandas as pd
import xgboost
from ray.air.constants import TENSOR_COLUMN_NAME
from ray.air.data_batch_type import DataBatchType
from ray.air.util.data_batch_conversion import _unwrap_ndarray_object_type_if_needed
from ray.train.predictor import ... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
6e6667cf463f0e2376456bda7fa413e8cc8c9d58 | 45b8e141f762b95edec36ce40809ea4b89e3d287 | /mahkalastore/home/views.py | 23c7f82f9021101fb873e62508a747c6d244c294 | [] | no_license | nimanoori22/mys | 73d7a0ad141e1c6208e776a15d079a2599c46a7f | 0122586a4d69f80219ad25e42ef89f3052f5cb81 | refs/heads/master | 2022-11-28T22:24:44.947703 | 2020-08-13T14:52:19 | 2020-08-13T14:52:19 | 279,652,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | from django.shortcuts import render, HttpResponse, HttpResponsePermanentRedirect
from product.models import Product, Category, Images, Comment
from home.models import Setting, ContactForm, ContactMessage
from .forms import SearchForm
from django.contrib import messages
from django.http import HttpResponseRedirect
impor... | [
"nimanoori000@gmail.com"
] | nimanoori000@gmail.com |
d9f06fb6f20f3f1270aaab0aff1acbd04c6ce096 | d4c82eb9ae3037cf8742c3fc8c31cf4a80f5d21c | /examples/Python/examples/Tools/scripts/finddiv.py | 7f483e293126378754d76f484901c26e6bae0d42 | [] | no_license | gzhu-team-509/programming-knowledge-base | 68132b1a669f208dab94dcf2401ce39d89ebe53b | 3f3d026927157b7fdf210da195cb912366975e75 | refs/heads/master | 2021-05-05T12:17:12.686569 | 2017-11-04T07:30:28 | 2017-11-04T07:30:28 | 104,754,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | #! /usr/bin/python2.6
"""finddiv - a grep-like tool that looks for division operators.
Usage: finddiv [-l] file_or_directory ...
For directory arguments, all files in the directory whose name ends in
.py are processed, and subdirectories are processed recursively.
This actually tokenizes the files to avoid false hi... | [
"lightyears1998@hotmail.com"
] | lightyears1998@hotmail.com |
33925cd42a46e5db54b36a88e09837da3dec21cd | 888d4ea7e0a61f8c4a2ae602c57799b367b5174f | /crab/old/datasets2016FSR.py | c31e801ea2719eabf82ba143a8d7b9b580973227 | [] | no_license | gmandorl/nanoAOD-tools | 6a95debfb96bb86f55568942dc0b347873b38144 | 2cb041148f99cb41e03d19014657db8ddb5c16cd | refs/heads/master | 2020-07-24T23:36:14.018605 | 2020-06-16T14:59:24 | 2020-06-16T14:59:24 | 208,084,777 | 0 | 1 | null | 2020-03-15T10:00:14 | 2019-09-12T15:34:19 | Python | UTF-8 | Python | false | false | 13,936 | py | data2016 = {
"SingleMuonRun2016B" : [
"/SingleMuon/arizzi-RunIIDataJuly18_nanoFSRV2_un2016B-17Jul2018_ver2-v1-57057fb2c24f603844e32924f34ddf42/USER",
],
"SingleMuonRun2016C" : [
"/SingleMuon/arizzi-RunIIDataJuly18_nanoFSRV2_Run2016C-17Jul2018-v1-57057fb2c24f603844e32924f34ddf42/USER",
],
"SingleMuonRu... | [
"silvio.donato@cern.ch"
] | silvio.donato@cern.ch |
23094fc7981a2a9ec1933bf16e464be5b94360bb | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20170601/network_watcher.py | 4acd5c948f6a86e7fb6e05cd645200b151fc7041 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,727 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.