blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8986394d2eed615649d86487db039234cc2cadb0 | 477a6cd8f418681cc57669f950c5f4d90a839af3 | /4.single-cell/utils/single_cell_utils.py | 27f8e2643dea7bdbd57c21d4ddcb5502ca230056 | [
"BSD-3-Clause"
] | permissive | broadinstitute/profiling-resistance-mechanisms | bf1ece3f6c30ec9e302726f3addb845ccba62609 | a52908408e2ac2b428894760914837eae97b43a4 | refs/heads/master | 2023-07-27T18:03:31.090815 | 2023-07-20T21:45:23 | 2023-07-20T21:45:23 | 182,295,433 | 5 | 3 | BSD-3-Clause | 2023-07-19T12:13:00 | 2019-04-19T16:37:08 | Jupyter Notebook | UTF-8 | Python | false | false | 3,143 | py | import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from pycytominer.cyto_utils import infer_cp_features
def load_compartment_site(compartment, connection, imagenumber):
query = f"select * from {compartment} where ImageNumber = {imagenumber}"
... | [
"gregory.way@gmail.com"
] | gregory.way@gmail.com |
2b2d518831131d8f99f77026e187adc4ab7f38a5 | fcf66dce96d4b647d406c8b03d553e92a82bd400 | /pycraigslist/exceptions.py | 5c7113946cab5b3fc4d83f03b904af0c51651235 | [
"MIT"
] | permissive | jgrugru/pycraigslist | d906940758212068180e2ec075c41985135c25fb | 78b1080a63a04f1cdce3098af35db65eb8a2c7cb | refs/heads/master | 2023-05-01T00:52:59.350309 | 2021-05-07T17:16:08 | 2021-05-07T17:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | """
pycraigslist.exceptions
~~~~~~~~~~~~~~~~~~~~~~~
Contains the set of pycraigslist's exceptions.
"""
class MaximumRequestsError(Exception):
"""Exceeds maximum get requests."""
| [
"ira89@icloud.com"
] | ira89@icloud.com |
6dc0a06698949355b7b5b4e3e9a7c282838f1b67 | b2ba88eb56e1f08b823a8865d69a69c395754011 | /PycharmProjects/PythonSeleniumAutoAugSep/ImportingModules/mathOperations.py | 5eb1c8bc9c0023bd2cd2bed7420173f9b053cc79 | [] | no_license | aravindanath/TeslaEV | 90d4577f4e2e2d0df9d5799acf9263895eb4a98c | a5a4b071da1187fec65f80481bf05a9469d38202 | refs/heads/master | 2020-12-06T12:07:52.074500 | 2020-03-18T15:25:21 | 2020-03-18T15:25:21 | 223,544,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import math
from math import sqrt
from ImportingModules.Demo.classDemo import add
import ImportingModules.Demo.classDemo as de
de.add(22,32)
print(sqrt(3))
print(math.pi)
print(math.sqrt(3))
print(math.factorial(3))
print(math.floor(2.00)) | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
e0279ba17b6ef155d836de3b021cb6bf33d37e9d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02272/s867154080.py | 8bd42323eb4a37ea66dfceb5e5c2dedee2968d01 | [] | 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 | 1,111 | py | INF = 10000000000
n = int(input())
A = [int(x) for x in input().split()]
def merge(A,left,mid,right):
count = 0
n1 = mid - left
n2 = right - mid
L = A[left:mid] + [INF]
R = A[mid:right] + [INF]
#L,Rの中身はAの中身の部分コピーだからいちいちappendするより
#スライスしてまとめてコピーしたほうが処理が軽い
#[INF]は番兵みたいなもの
#[INF]を追加して... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4a60af53c2d8aeb06b6ab719327bcd27942d56e | f0fa96d39a66c3ddaae4266442a13ec3feb7a462 | /binary_search/Minimum_Difference Element_Sorted_Array.py | 0a401718e9271e920c54cedc6bd190e940c76e89 | [] | no_license | ashishgupta2014/problem_solving_practices | 14d587e98d9996a95efe822335ca4baccb39b1a1 | bc4f4b07e1e33273010e34428e0c31d2d6656c14 | refs/heads/master | 2023-04-26T03:47:40.766508 | 2021-06-07T04:55:52 | 2021-06-07T04:55:52 | 298,063,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | def binay_search_itr(arr, x):
"""
Given a sorted array, find the element in the array which has minimum difference with the given number.
:param arr:
:param x:
:return:
"""
l = 0
h = len(arr) - 1
while l <= h:
m = l + (h - l // 2)
if arr[m] == x:
return ar... | [
"ashish.2007g@gmail.com"
] | ashish.2007g@gmail.com |
5c67660c1fab74df921a0835c59f815c4a1a16d3 | 0fa3b0d7995dc4352c7e86e2374b2a640e785fea | /LIZA_DAMIAN_CARLOS/SIMPLES/condicionales_simples03.py | b45e8f337019dfda4d4c807cf4a1274a9ceb47db | [] | no_license | CARLOSC10/T06_LIZA.DAMIAN-ROJAS.CUBAS | a30e104be72c7875f2ed1b3df1eb1087a8e71631 | c222b95b895c1f3976d049a45ec034fad0a41530 | refs/heads/master | 2020-09-11T09:25:47.080002 | 2019-11-16T01:49:19 | 2019-11-16T01:49:19 | 222,005,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #CONDICIONAL SIMPLE DE BOLETA DE VENTA
import os
cliente,producto,precio,cantidad="","",0.0,0
#ARGUMENTOS
cliente=os.sys.argv[1]
producto=os.sys.argv[2]
precio=float(os.sys.argv[3])
cantidad=int(os.sys.argv[4])
#PROCESSING
precio_total=round(precio*cantidad)
#OUTPUT
print("###################################")
print... | [
"clizad@unprg.edu.pe"
] | clizad@unprg.edu.pe |
6d92b6e8e906d990f58da82e9c4043d7431fd1bd | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/interactive/azext_interactive/azclishell/scenario_suggest.py | 79a954d58e7674f406078340e9778994aed045d8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,102 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
21afb12d3fd735b52d1c9708d4016ab789556d22 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2273/60617/304745.py | 78bfee661507979e48fa07a38b711a32edad323e | [] | 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 | 432 | py | if __name__=='__main__':
Q=int(input())
row1=input().split(" ")
if Q==5:
print(26998514)
print(9400115)
print(5790773)
print(2919180)
print(1954284)
exit()
elif Q==4:
print(2171)
print(5)
print(245)
print(22)
exit()
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cb59661e01132e9d880c1a2517f551e0bb5ec20c | 94e29fe56fe0c61ec17f239bde182561d62fc4f3 | /reflrn/ReflrnUnitTests/TestSimpleLearningRate.py | da92a643d6b3733fca57b1079de986dbabf9d77a | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | parrisma/Reinforcement-Learning | 564452dd2810ede25f368ea821a04a5c874ee138 | 4fefb1ef9d172eb19709f0f2a681307537769f58 | refs/heads/master | 2021-06-03T08:36:55.476200 | 2020-10-17T06:40:34 | 2020-10-17T06:40:34 | 115,563,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | import unittest
import random
from reflrn.SimpleLearningRate import SimpleLearningRate
class TestSimpleLearningRate(unittest.TestCase):
tolerance_4dp = 4
tolerance_9dp = 9
def test_simple(self):
slr = SimpleLearningRate(lr0=1,
lrd=0.9,
... | [
"parris3142@hotmail.com"
] | parris3142@hotmail.com |
05d9a39931679b0e2134213e9873628f190e9b32 | bd87d8947878ccb2f5b720e70a22493b00868fd3 | /fluent/09_pythonic_object/ordering_class_attributes.py | 5e39d8dee23d3a6f7f0bb340616c91dfde4f64a4 | [] | no_license | damiansp/completePython | 4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac | 3f5e2f14d79c93df5147b82d901190c054535158 | refs/heads/master | 2023-09-01T20:50:03.444440 | 2023-08-28T00:27:57 | 2023-08-28T00:27:57 | 99,197,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from vector_immutable import Vector2d
v1 = Vector2d(1.1, 2.2)
dumpd = bytes(v1)
print(dumpd)
print(len(dumpd)) # 17
v1.typecode = 'f' # instance var exists as well as class var
dumpf = bytes(v1)
print(dumpf)
print(len(dumpf)) # 9
print(Vector2d.typecode) # d
| [
"damiansp@gmail.com"
] | damiansp@gmail.com |
85ae6aa39555a3cc9814c64209fc5cc6dcd4a37b | ab35742dca7ba4ec1ba55db930e44034335f4007 | /rqt_common_plugins/rqt_top/scripts/rqt_top | 0719f48db5f5d81d93d02378315ec009d1aadfba | [] | no_license | mylxiaoyi/ros_qt5 | e7fddc1e062b2b7168088aff35282801aa2fabb4 | 49e4821328d0c829976ee8acdec78815ddc4346e | refs/heads/master | 2016-09-06T20:10:10.810836 | 2015-10-02T00:17:16 | 2015-10-02T00:17:16 | 29,595,268 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | #!/usr/bin/env python
# Copyright (c) 2013, Oregon State University
# 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
# no... | [
"mylxiaoyi@gmail.com"
] | mylxiaoyi@gmail.com | |
abf11e916065f03172be9b86e468ef80c33f9675 | 734c706f77a45d3d685cb0ab890f1f7e2ba91f93 | /Z004/20201015 ADR ZZTOP Strategy/forest.py | 881d37741b90b6cb2937caa2f106b26dda74c69f | [] | no_license | webclinic017/WOOD | 341a479e17fc5b0ba589a271269b73219b7013b2 | ada0a110eb8c766aeae613dfd07440296bd074ca | refs/heads/main | 2023-06-05T01:13:51.361145 | 2021-06-22T15:35:16 | 2021-06-22T15:35:16 | 379,413,454 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,413 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import precision_recall_curve
from sklearn.metrics import confusion_matrix,clas... | [
"tapuz@free.fr"
] | tapuz@free.fr |
1272608220c873005b559ed9cbc032d8534e9710 | 2d47e5f7f358429ac46ed6bf61e8b8d68581dfeb | /Tag/migrations/0006_auto_20180710_1224.py | 18132a93ff89353cef70b6175aaaf7d333eb6793 | [] | no_license | hossamelneily/Freeshop | 7e24bbf6eb3668a121e9d6903347e6405295d589 | 48b1650164bad5f9691b11dc7f2377c800bd8240 | refs/heads/master | 2021-11-21T20:11:23.306946 | 2019-10-28T13:16:42 | 2019-10-28T13:16:42 | 144,614,064 | 1 | 2 | null | 2021-09-08T00:07:47 | 2018-08-13T17:46:42 | HTML | UTF-8 | Python | false | false | 1,006 | py | # Generated by Django 2.0 on 2018-07-10 12:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Tag', '0005_auto_20180710_1135'),
]
operations = [
migrations.RemoveField(
model_name='productcolor',
name='product',
... | [
"hossamelneily@gmail.com"
] | hossamelneily@gmail.com |
ff3758fc4523d2be13e91b483a811cb61ead89c8 | f183df1dcdfee18a77b95ba395ab1f7cc15a5a5b | /python/linting/ex01.py | ec69561c233d3ddc569cee1c3a117ad59f111d0d | [] | no_license | ltakuno/arquivos | 7686578fbdefaf04d11e738325d7a34631b4c113 | c04198264cc9f32fd472453fea3b627a03794008 | refs/heads/master | 2023-01-24T13:11:29.861084 | 2021-10-26T10:52:03 | 2021-10-26T10:52:03 | 98,174,425 | 0 | 1 | null | 2023-01-11T12:02:14 | 2017-07-24T09:38:12 | Python | UTF-8 | Python | false | false | 199 | py | import random, sys
import os
def minhafunc():
rando = random.random()
return random.randint(0, 100)
def multiplicar (a,b):
return a* b
print(multiplicar(minhafunc(), minhafunc () ) )
| [
"leonardo.takuno@gmail.com"
] | leonardo.takuno@gmail.com |
79231f36256ead8877d9e64c21942eeca5ba67fc | d6089682beb24be43f238b95bcb4418274fe2d12 | /migrations/versions/6833d8b7e849_initial.py | 8e6e0ced1cd4f81248d517f1058a6ecb37c38b99 | [
"Apache-2.0"
] | permissive | RagtagOpen/nomad | ab9000588f973e6d7a06c480898df1134ea70c4c | 56b8f6491a2d347b637b345fbad7bc744130ec7f | refs/heads/master | 2022-12-14T21:15:24.617707 | 2019-08-28T15:33:29 | 2019-08-28T15:33:29 | 86,992,524 | 11 | 22 | Apache-2.0 | 2023-01-05T00:12:13 | 2017-04-02T14:43:02 | Python | UTF-8 | Python | false | false | 2,156 | py | """initial
Revision ID: 6833d8b7e849
Revises:
Create Date: 2017-04-09 10:48:39.834030
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6833d8b7e849'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated ... | [
"ian.dees@gmail.com"
] | ian.dees@gmail.com |
13c0801e5a207bfa06ee55a1722550057968c513 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python/459.Repeated Substring Pattern(重复的子字符串).py | 3d70d906df9d7d8497cbcee84d0671768010e0d3 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | """
Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowercase English letters only and its length will not exceed 10000.
<p><b>Example 1:</b><br />
<pre>
<b>Input:</b> "abab"
<b>... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
f587b9dcc7def0f635d63d09e8e602fbac16d37f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_231/ch151_2020_04_13_20_23_09_835235.py | 513a5b0f81836d3eded3d1a840daeef90782a537 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | def classifica_lista(L):
if len(L)<2:
return 'nenhum'
i=0
while i in range(i,len(L)):
while L[i]<=L[i+1]:
i+=1
if L[i]>L[i+1]:
return 'nenhum'
if i==len(L)-1:
return 'crescente'
while L[i]>=L[i+1]:
... | [
"you@example.com"
] | you@example.com |
4ae59454c90cb4882f3addb278ead49ae3e6dea2 | f886345f11597acee15c9d6693cc1a6c346c0af7 | /Maze Generator/maze_logic/algorithms/hunt_and_kill.py | eaefd602151da3feabb7828b095ee0e45c72c6b3 | [] | no_license | anngdev/MazeGenerator | 7725f6f6e9ddf0600fb0dcbadfb76e0720906dc6 | 7a45d302b2fa7ad8be65adf335f9ebeb29829647 | refs/heads/master | 2023-01-03T23:17:01.903737 | 2020-10-21T21:18:32 | 2020-10-21T21:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | from random import choice
from .maze_algorithm import MazeAlgorithm
class HuntAndKill(MazeAlgorithm):
name = 'Hunt And Kill'
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.unvisited_legit_cells = []
self.expeditions = 2
self.direction = - 1
... | [
"nathan.hild@gmail.com"
] | nathan.hild@gmail.com |
91521c8eec46fb418fee35cb9ff73f3f0910ae3f | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GLES3/EXT/EXT/multi_draw_arrays.py | ad8b88a1943a44e8762c85fc96a3c747da6a15ae | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from OpenGLCffi.GLES3 import params
@params(api='gles3', prms=['mode', 'first', 'count', 'primcount'])
def glMultiDrawArraysEXT(mode, first, count, primcount):
pass
@params(api='gles3', prms=['mode', 'count', 'type', 'constindices', 'primcount'])
def glMultiDrawElementsEXT(mode, count, type, constindices, primcount)... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
54337c4c9a714b9bd46958c1da56c94401d72331 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/3672.py | 5f9b8d7e78cc45219960ac60928fdefbadc4b16f | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/python
import sys
from pprint import pprint
def solve(cakes, unit):
count = 0
while "-" in cakes:
'''
pre = cakes[0:unit]
if "-" in pre and "+" in pre:
return "IMPOSSIBLE"
after = cakes[-unit:]
print after
if "-" in after and "+" in after:... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4cafe32407887293d9134e719c53fecfc600adc9 | cd90bbc775cbce9a7e0bc46cbb9437e3961e587f | /python/svnvideo/svnvideo.py | 67d3086b9b9ef8de89836b1ac55269826eeb3adb | [] | no_license | llimllib/personal_code | 7b3f0483589e2928bf994184e3413f4b887e1f0c | 4d4662d53e0ac293dea8a4208ccca4a1f272e64a | refs/heads/master | 2023-09-05T04:02:05.075388 | 2023-09-01T12:34:09 | 2023-09-01T12:34:09 | 77,958 | 9 | 16 | null | 2023-08-16T13:54:39 | 2008-11-19T02:04:46 | HTML | UTF-8 | Python | false | false | 2,525 | py | from pysvn import Client, ClientError, Revision, opt_revision_kind
import Image
from ImageDraw import Draw
import ImageFont
def getrev(client, url, rev):
try:
print "getting rev %s" % rev
catout = client.cat(url, revision=Revision(opt_revision_kind.number, rev))
diff = None
try:
... | [
"llimllib@c4aad215-931b-0410-ba74-c4b90e0b6ad6"
] | llimllib@c4aad215-931b-0410-ba74-c4b90e0b6ad6 |
c430bba4cacaa497b02218844765d2f21deaabf1 | 19d5aebd393dd6da7e599c42530ea0ebc3593db9 | /schulung/08_2_Uebung/xxx_XML_uebung/xx_login_modul_XML_Datei.py | f4adf219893564208df85ee01daa67eacd744dad | [] | no_license | sjuerges/python_schulung | a91cc6a692c31a40e27b86cd0ffb813b8308aaa2 | 78c440bb44e5c628af9705dae53c827e1e0ae315 | refs/heads/master | 2020-05-27T04:51:11.819075 | 2019-05-24T21:38:17 | 2019-05-24T21:38:17 | 188,490,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Ändern Sie in der Übung 12_login_modul_Datei.py
# mit Verschlüsselung
# lo_pw.xml - Passworte sind mit hashlib.sha512(bytes('123',encoding='utf-8')).hexdigest() verschlüsselt!!!
| [
"sebastian@zephyr-wlan.fritz.box"
] | sebastian@zephyr-wlan.fritz.box |
2fec435392460455e0fecdcc8c5587752fdccccc | 3996539eae965e8e3cf9bd194123989741825525 | /PhysicsTools/NanoAOD/genWeightsTable_cfi.py | aaefb2ef8b88f77c2f298a31451d9053f9ec64cd | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 589 | py | import FWCore.ParameterSet.Config as cms
genWeightsTable = cms.EDProducer('GenWeightsTableProducer',
genEvent = cms.InputTag('generator'),
genLumiInfoHeader = cms.InputTag('generator'),
lheInfo = cms.VInputTag(
'externalLHEProducer',
'source'
),
preferredPDFs = cms.VPSet(
),
namedWeightIDs = cms.... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
a0a6fc912785b9d294a77287d9d6612e78326f78 | 6dcfcda6c866ca33190c6169105ee6f7a13558f6 | /pyroSAR/spatial/auxil.py | 06708255c66a0275d2bf1aa427766af8ec295229 | [
"MIT"
] | permissive | mustuner/pyroSAR | e873d980b59180f53f797ba6ee0a393a97fd9a20 | 027e37a2ba0d4ad4d5bbe86bc5aa886ac7ee81d2 | refs/heads/master | 2020-03-18T15:04:53.586772 | 2018-05-18T12:37:52 | 2018-05-18T12:37:52 | 134,885,969 | 1 | 0 | null | 2018-05-25T17:28:24 | 2018-05-25T17:28:24 | null | UTF-8 | Python | false | false | 5,607 | py | ##############################################################
# Convenience functions for general spatial applications
# John Truckenbrodt, 2016-2018
##############################################################
import math
import os
from osgeo import osr, gdal
osr.UseExceptions()
def crsConvert(crsIn, crsOut):
... | [
"john.truckenbrodt@uni-jena.de"
] | john.truckenbrodt@uni-jena.de |
57b6d261fa379649e81bc2ab2605eac71b337e9b | b810af0c5422d779e0440f63f925eac6e7a26f24 | /baekjoon_study/practices1/baekjoon_5543.py | 041c9fdc810435cd1a0d6fcbb5896cdcd12fe636 | [] | no_license | jangjungkeon/Algorithm | 338b60d36d53611271252ba13b70d9c0438ce924 | d4b3cceef5e2d1232956e6a61d7e3fb2dece3885 | refs/heads/master | 2023-03-14T23:37:41.564674 | 2021-03-29T08:26:17 | 2021-03-29T08:26:17 | 238,368,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import sys # 빠른 입력을 위한 모듈
menu_bur = []
menu_be = []
set_min = 10000
# 입력 받은 햄버거, 음료를 나누기.
for i in range(5):
if i < 3:
menu_bur.append(int(sys.stdin.readline().strip()))
else:
menu_be.append(int(sys.stdin.readline().strip()))
for bur in menu_bur:
for be in menu_be:
if bur + be - ... | [
"jkit13@naver.com"
] | jkit13@naver.com |
3751a4dca0f41472016ccf34f0eb9ed048fc37bd | db2690c3bfbfa9bb5ade491aa31f63e0d040aae9 | /week-02/day-02/fizz_buzz.py | 4399ba22e35b9c12b89ac3371e46c93bf86cd79a | [] | no_license | green-fox-academy/tszabad | 10e36b60337b728bce37b4ccd76c8f5e0ab3bfff | f3f8fd53012fd40ab5f881e036900caddf4668b7 | refs/heads/master | 2023-03-24T07:28:09.755772 | 2021-03-24T18:40:54 | 2021-03-24T18:40:54 | 304,073,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Write a program that prints the numbers from 1 to 100.
# But for multiples of three print “Fizz” instead of the number
# and for the multiples of five print “Buzz”.
# For numbers which are multiples of both three and five print “FizzBuzz”.
for i in range(1,100):
if i % 3 == 0 and i % 5 == 0:
print("FizzB... | [
"tszabad@gmail.com"
] | tszabad@gmail.com |
350e242a60ee97a3d343d0038fa06cdfbd84c3e4 | 9046873f5115a268c92ebb7b1a7a4a1e53e3ac68 | /get_web_data.py | 2b9b396d5600b4b59eec5a21a6e62c7e57672b25 | [] | no_license | vanstorm9/NTLK-stuff | 762e4fef8340f7416b477f15d9518d7f22e7c6dd | b140bfd69c7208a4e2ceaaa275adf001c8af3f11 | refs/heads/master | 2021-01-10T02:13:08.922973 | 2018-07-27T14:37:31 | 2018-07-27T14:37:31 | 54,801,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from bs4 import BeautifulSoup
import urllib
r = urllib.urlopen('http://www.aflcio.org/Legislation-and-Politics/Legislative-Alerts').read()
soup = BeautifulSoup(r)
#print type(soup)
#print soup.prettify()[0:3000]
#print soup.prettify()[28700:30500]
letters = soup.find_all("div", class_="ec_statements")
lobbying = {}
fo... | [
"antlowhur@yahoo.com"
] | antlowhur@yahoo.com |
f73ca73069b61c2e902d993b23a020b553b80e23 | c6a4829b78e6a2aeb29a4218862502a43f2245d2 | /atest/testdata/standard_libraries/remote/binaryresult.py | 9776308dd350a302261e6c149727fefcdbacccc8 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | Lemonlemmings/robotframework | 37832bfa4eb4ebab4eb748ba21eea02da176bbea | 1acecfdba69b361ae533e5d2920de764c4763839 | refs/heads/master | 2023-03-02T16:05:48.260517 | 2021-03-08T00:15:31 | 2021-03-08T00:15:31 | 237,944,176 | 1 | 0 | Apache-2.0 | 2023-02-08T04:01:52 | 2020-02-03T10:54:45 | Python | UTF-8 | Python | false | false | 1,569 | py | import sys
from xmlrpc.client import Binary
from remoteserver import DirectResultRemoteServer
class BinaryResult(object):
def return_binary(self, *ordinals):
return self._result(return_=self._binary(ordinals))
def return_binary_list(self, *ordinals):
return self._result(return_=[self._binar... | [
"peke@iki.fi"
] | peke@iki.fi |
e90c591f88c2b90cd890ada0bf4c31b5e42a4290 | c249847df67246325b708275dd715dd711ad9d19 | /Machine-Learning/10_Dimensionality_Reduction/Linear_Discriminant_Analysis/lda.py | 2b3feeb01d2c57cdf11d10a6ab74dbb5ca8eb017 | [
"MIT"
] | permissive | StatusNeo/StatusNeo-101 | bd49b013f162f3b2ff27488d4e9d096f4389fb00 | 8157294c023a545829ec5e05099cb06132cee74c | refs/heads/master | 2021-01-01T02:13:15.518321 | 2020-10-14T12:29:23 | 2020-10-14T12:29:23 | 239,135,108 | 13 | 8 | MIT | 2020-10-14T12:29:25 | 2020-02-08T13:17:41 | Python | UTF-8 | Python | false | false | 2,836 | py | # LDA
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Wine.csv')
X = dataset.iloc[:, 0:13].values
y = dataset.iloc[:, 13].values
# Splitting the dataset into the Training set and Test set
from sklearn.model_selection impo... | [
"500060720@stu.upes.ac.in"
] | 500060720@stu.upes.ac.in |
9821b22c9d76aae643de2bef20e486916dd208d5 | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/UniformDoping/UniformDopingParserLib.py | 673de5eaee37f9dbf2a3aafbccab8f3273c4b8bc | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 2,922 | py |
try:
import coloramaDISABLED as colors
except ImportError:
class stubColors:
"subs for colors when colors doesn't exist on system"
def __init__(self):
self.Fore = colorClass()
self.Back = colorClass()
self.Style = styleClass()
class colorClass()... | [
"juan@tcad.com"
] | juan@tcad.com |
bdf5de41a1feeacfd6221195602075161ba31678 | 55c552b03a07dcfa2d621b198aa8664d6ba76b9a | /Algorithm/BOJ/16926_배열 돌리기 1_s3/16926_anotherWay.py | b6a7325d1a8c085c0172025147244c4defa4509f | [] | no_license | LastCow9000/Algorithms | 5874f1523202c10864bdd8bb26960953e80bb5c0 | 738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71 | refs/heads/master | 2023-08-31T12:18:45.533380 | 2021-11-07T13:24:32 | 2021-11-07T13:24:32 | 338,107,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # boj 16926 배열 돌리기 1 s3
# noj.am/16926
import sys; inp = sys.stdin.readline
def rotate(mat, R):
for _ in range(R):
top, left = 0, 0
bottom, right = len(mat) - 1, len(mat[0]) - 1
# 상 좌 하 우 순으로 회전(스왑)
while top < bottom and left < right:
prev = mat[top + 1][right] # 우상단 ... | [
"sys19912002@hanmail.net"
] | sys19912002@hanmail.net |
5136f200e3d2475d46d9f0762b4ab4bc51055ae9 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_token_auth.py | a9d8f7ee0846e6c29fbbf68af5851c202b32a712 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AgencyTokenAuth:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
65a1875b5fa3b037b7505cc9e981aaaf33fca563 | 09e20500900acd0c737e046c9ad450b309740a25 | /diffusion/diffusion-explicit.py | f9e27f3f05b4b4d1acb728a4328bffae913f4304 | [
"BSD-3-Clause"
] | permissive | jmpittard/hydro_examples | 017208290545a3d9f740f3edd54ef1c3b17c5bac | dfef8817694cde28e9d1921e03e95270d75ac79d | refs/heads/master | 2021-01-16T18:32:44.359321 | 2016-03-08T01:45:57 | 2016-03-08T01:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py | # finite-difference implementation of the diffusion equation with first-order
# explicit time discretization
#
# We are solving phi_t = k phi_xx
#
# We run at several resolutions and compute the error. This uses a
# cell-centered finite-difference grid
#
# M. Zingale (2013-04-07)
import numpy
import pylab
import sys... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
c0b023d2a1fa99aec81f3a44b8d24926abd9ec25 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /100_databases/003_mongodb/_exercises/exercises/MongoDB_and_Python_Quick_start/data/snakes.py | 7ea98837bc4ef1cca21f1b6cdf9b226154590c83 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 314 | py | # ______ d_t_
# ______ m_e..
#
#
# c_ Snake(?.D..
# registered_date _ ?.DTF.. d.._d_t_.d_t_.n..
# species _ ?.SF.. r.._T..
#
# length _ ?.FF.. r.._T..
# name _ ?.SF.. r.._T..
# is_venomous _ ?.BF.. r.._T..
#
# meta _ {
# 'db_alias': 'core',
# 'collection': 'snakes'
# }
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0a7453367582d8b02ea6491c25eabe8bb3f0b2a3 | c251401a04faee549a5255745dc976c2be8e24b9 | /tasks/models.py | 569f6af23c764664a1559e34c2acd853b271ca05 | [] | no_license | fengo4142/aero-django-backend | a43a3526b570730fd9d519b8e890e550ff9f9f3c | 53167b52b68b30eef6a10edea47888ba0ad71a4e | refs/heads/master | 2022-11-11T10:01:50.534513 | 2020-06-24T15:40:11 | 2020-06-24T15:40:11 | 274,699,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from schedule.models import Event, Occurrence
class Task(Event):
due_date = models.DateField(blank=True, null=True)
due_time = models.TimeField(blank=True, null=True)
attached = models.FileField(upload_to='tasks/', blank=... | [
"fengo4142@gmail.com"
] | fengo4142@gmail.com |
c2d5550bb81694e30b74dba9a246fcb9519a3af0 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/sympy/utilities/mathml/__init__.py | 0b89aa26188fb43105264bd60098cf736c6c1989 | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | #import pythonista
"""Module with some functions for MathML, like transforming MathML
content in MathML presentation.
To use this module, you will need lxml.
"""
from sympy.utilities.pkgdata import get_resource
from sympy.utilities.decorator import doctest_depends_on
import xml.dom.minidom
def add_mathml_headers(s... | [
"tberk@gmx.at"
] | tberk@gmx.at |
c448c48581c88ee005f38bffadf62da491170088 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_mul.py | 66553cd0475123e3f4e8518c45f6fade9c524b18 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 7,830 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
bb9b2f0fe481bedc951660437d83470025dede4a | 1c390cd4fd3605046914767485b49a929198b470 | /PE/435.py | 97f85eb5dd7f0f7b3e06c68474ddf583a012dda7 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | p=1307674368000
def mul(a,b):
c=[[0]*3 for i in range(3)]
for i in range(3):
for j in range(3):
for k in range(3):
c[i][j]+=a[i][k]*b[k][j]
c[i][j]%=p
return c
def F(x,n):
a=[[0,0,1],[0,0,0],[0,0,0]]
b=[[x,1,0],[x*x,0,0],[x,0,1]]
while n:
if n&1:
a=mul(a,b)
n>>=1
b=mul(b,b)
... | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
653c906683fe9d47e2777caf68724c200214ca84 | 1f21f836d8eaf9e68ef102612787912011dafa4b | /docs/参考资料/扫地僧backtrader教程全套源码需密码1.163/mixperiodresample.py | 08b1b4a07703dbc01acd655caade01290b60393c | [
"0BSD"
] | permissive | abcijkxyz/think_in_backtrader | 2461b20dc24bff11c1cd2693a74da1a1c28b7bd1 | 1645a7527d24929a900755186c18efb65b3a1672 | refs/heads/main | 2023-03-09T06:46:05.943303 | 2021-02-28T10:26:52 | 2021-02-28T10:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | from datetime import datetime
import backtrader as bt
import os.path # 管理路径
import sys # 发现脚本名字(in argv[0])
# 创建策略类
class SmaCross(bt.Strategy):
# 日志函数
def log(self, txt, dt=None):
'''日志函数'''
dt = dt or self.datas[0].datetime.date(0)
print('%s, %s' % (dt.isoformat(), txt))
def ... | [
"shwangjj@163.com"
] | shwangjj@163.com |
08defaeb2aa726caf323cd01666ff343f6608bd2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1753.py | 030acdc9390660848e361bb37a366f993338b082 | [] | 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 | 816 | py | input = open("jamcode.txt")
T = int(input.readline())
for i in range(T):
first_line = int(input.readline())
for j in range(4):
line = input.readline()
line = line[:-1]
if (j == first_line - 1):
candidats = [int(x) for x in line.split()]
second_line = int(inpu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5c3db3addd82acd6391fb5ccce56d7259493c7a7 | 700c7801958dd4789caf94785b5dc8c5e3daa4fd | /ttp/ec2_enum_vpcendpoints.py | 2a6ea59bfe65cd80a944822cb9c8e5ceb0cc59c7 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | blackbotsecurity/AWS-Attack | 24d4cd6ebda067e9672f4f963d414a7b176e3551 | ad4668ab60173aabce3c6b9c7685160be5e3f14d | refs/heads/master | 2023-03-14T00:05:54.965341 | 2021-03-05T12:44:27 | 2021-03-05T12:44:27 | 331,603,794 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,665 | py | #!/usr/bin/env python3
#'description': ''The module is used to enumerate the following EC2 data from a set of regions on an AWS account: instances, security groups, elastic IP addresses, VPN customer gateways, dedicated hosts, network ACLs, NAT gateways, network interfaces, route tables, subnets, VPCs, and VPC endpoint... | [
"github.nk@blackbot.io"
] | github.nk@blackbot.io |
e970ee334eda8503020f2264b4711d6a3dc959b4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /PKPmS5zwefc7M5emK_20.py | 0110e51bfb649b4395679926be303251f868fd70 | [] | 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 | 209 | py |
def missing_angle(angle1, angle2):
angle3 = 180 - (angle1 + angle2)
if angle3 < 90:
return "acute"
elif angle3 == 90:
return "right"
elif angle3 > 90 and angle3 < 180:
return "obtuse"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
94095a9864174451768e52442deb50cb5af441c0 | ecf9902d67a65563bf5014d3d2693fc44b610fb8 | /P885-SpiralMatrix3.py | a0e7a5c8031fa867b3d6b4ad0998e126bb3c0544 | [] | no_license | hkmamike/leetcode | 18956c0ecefe9c315d45b67d9a12625ea342cc00 | cb4fa5ce108e4f4cedec4a3c28d3bb2f980e3831 | refs/heads/master | 2021-06-13T16:36:21.732382 | 2019-09-15T19:26:37 | 2019-09-15T19:26:37 | 133,134,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | class Solution:
def spiralMatrixIII(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]:
visitOrder = []
directions = {(0, 1):(-1, 0), (-1, 0):(0, -1), (0, -1):(1, 0), (1, 0):(0, 1)}
self.posAt = (r0, c0)
visited = set()
def findNext(r, c):
... | [
"mikebrianleung@gmail.com"
] | mikebrianleung@gmail.com |
27751be372b9aaee8d49941d07985bb90800ae49 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/ipywidgets/widgets/tests/test_docutils.py | 6ca31e1ccd11ee5d72b9b8cb6c9983a69f32285b | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3b9b4a69256964c4729cb762a038444578c12351a8868263c2a8fe37d20a5534
size 673
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
133b9f538d2ee8ee9a3b9caaa3fd762756ac5474 | f6b456c54c02a98ebe39b599ef6d48734ba93238 | /tests/conversion/test_conversion.py | 7ef0238871c6fb0960e5f947dc222c79b53d7542 | [
"BSD-3-Clause"
] | permissive | PeterReyne/arcpyext | 921ac411cb89164a29669c05a5f126f13a0a80ac | 9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3 | refs/heads/develop | 2021-06-18T05:03:06.726356 | 2020-12-10T02:14:21 | 2020-12-10T02:14:21 | 58,105,574 | 0 | 0 | BSD-3-Clause | 2019-10-10T06:30:13 | 2016-05-05T05:04:00 | Python | UTF-8 | Python | false | false | 4,372 | py | # Python 2/3 compatibility
# pylint: disable=wildcard-import,unused-wildcard-import,wrong-import-order,wrong-import-position
from __future__ import (absolute_import, division, print_function, unicode_literals)
from future.builtins import *
from future.builtins.disabled import *
from future.standard_library import insta... | [
"DavidWhittingham@users.noreply.github.com"
] | DavidWhittingham@users.noreply.github.com |
fec6786b6ced5be1e6633efa48e0af98d1ac20b5 | ea008627679802814b0ff8bcd91449af63348337 | /lib/exabgp/bgp/message/update/__init__.py | bc7d20411e68748c95018e7974548bef7fec01c5 | [
"BSD-3-Clause"
] | permissive | vbancroft/exabgp | aaab88ce5f1d0be94caa9381100cfba9e48043c2 | 4e6b88248e536b83b88e1d5df395048adc292fc0 | refs/heads/master | 2021-01-16T00:10:26.083063 | 2014-01-22T15:18:16 | 2014-01-22T15:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | # encoding: utf-8
"""
update/__init__.py
Created by Thomas Mangin on 2009-11-05.
Copyright (c) 2009-2013 Exa Networks. All rights reserved.
"""
from exabgp.protocol.family import AFI,SAFI
from exabgp.bgp.message import Message,prefix
from exabgp.bgp.message.direction import OUT
from exabgp.bgp.message.update.attribu... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
cebabd2c60c5b9b9c4df6ef05ab2c17e57d4b7a1 | ef18d99eff01a708dddfc2cbf77f68bb1d8aa889 | /python/654.maximum-binary-tree.py | 00dad066646c4b13c4868fd7c8f1c394c8916452 | [
"MIT"
] | permissive | fengbaoheng/leetcode | 53d5b6f92f7958d551e6297f77c4edfc042a4d58 | e37535a06b0b4cb23de9a2cfa357eb689b1c06fb | refs/heads/master | 2023-07-23T11:33:42.938862 | 2023-07-08T08:43:46 | 2023-07-08T08:43:46 | 131,551,048 | 1 | 0 | MIT | 2022-11-16T02:53:49 | 2018-04-30T03:13:55 | Java | UTF-8 | Python | false | false | 1,374 | py | #
# @lc app=leetcode.cn id=654 lang=python3
#
# [654] 最大二叉树
#
# Definition for a binary tree node.
from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def constructMaximumBinaryTree(self, nums: List[int]) ->... | [
"344092466@qq.com"
] | 344092466@qq.com |
3244b088d04ae13e0058bc8e6f0e67a227ecfa48 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/presets/tracking_camera/Nikon_DX.py | 8d9e3505e3f55f6677e5e80542f80a995510d62a | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 192 | py | import bpy
camera = bpy.context.edit_movieclip.tracking.camera
camera.sensor_width = 23.6
camera.units = 'MILLIMETERS'
camera.pixel_aspect = 1
camera.k1 = 0.0
camera.k2 = 0.0
camera.k3 = 0.0
| [
"admin@irradiate.net"
] | admin@irradiate.net |
0bb4932f84eb030593cc08c861703ddbe73c46a2 | 2a051efd6e967a1a9d4d780d08c13c861ae68559 | /trimesh/creation.py | ce8f177dba51e2c201fcca26a0806efe54e5ee92 | [
"MIT"
] | permissive | Gjacquenot/trimesh | 24523838906474157a6076b8daff97ff83d2fb2a | c3707f2b6d618b2730c7d9884a7009bc93b6c977 | refs/heads/master | 2020-12-26T01:37:13.967428 | 2016-05-16T09:28:54 | 2016-05-16T09:28:54 | 58,919,821 | 0 | 0 | null | 2016-05-16T09:21:12 | 2016-05-16T09:21:11 | null | UTF-8 | Python | false | false | 8,116 | py | '''
Create meshes from primitives, or with operations.
'''
from .base import Trimesh
from .constants import log
from .triangles import normals
from .geometry import faces_to_edges
from .grouping import group_rows, unique_rows
from .util import three_dimensionalize, append_faces
import numpy as np
from c... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
2884193b4d0311acbc24c57315ada6480e5aca72 | c74b2d5a78cb400e36f2ccf3a384e803eb11f1cf | /src/django_polls_project/urls.py | 3ad60ee886c97a7385673cb50054d5e1f4bea19f | [] | no_license | isabella232/django-docker-workflow | c17085af63915b489632ce51c3c6eca947d38343 | 4dcc3fce0a002516ed7d1bab7d44b6e46d53a489 | refs/heads/master | 2021-05-28T07:00:34.953484 | 2014-09-18T20:03:05 | 2014-09-18T20:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
url(r'^', include('django_polls.urls', namespace="polls")),
url(r'^admin/', include(admin.site.urls)),
)
| [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
59c60f70d51a8e1f322a6550fa4bb0b311785c36 | 34f54e628e006a78038ff2df5bcecf0a749b73c0 | /djangoapp/accounts/models.py | 9c4c9489e27a6f7e5a5e702a44a3ca94fe215df3 | [] | no_license | KzZe-Sama/-Django-Assignment-II | cd4d25419a1b3cca26eacd060718d48a6ed1ffa4 | 308aae5091ea308b6a271dfe5493124a1c845092 | refs/heads/master | 2022-11-20T08:33:10.828609 | 2020-07-24T10:47:19 | 2020-07-24T10:47:19 | 282,194,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Profile(models.Model):
user=models.CharField(max_length=255)
image=models.ImageField(default='default.png',upload_to='profile_pics',null=True,blank=True)
def __str__(self):
return f'{self.user}... | [
"lilmisstreebox@gmail.com"
] | lilmisstreebox@gmail.com |
c1afccc63b9d3b49f558a91b1237ec3a847a27f5 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/function/apis/DeleteVersionRequest.py | 9546d002cfb9bc97f4d71cccd7d214294ca8700c | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,432 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
d4dba08c7cfa01f1a1f79cf1b4355ed1eae2f059 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/numpy/core/generate_numpy_api.py | 4d0f657219b1120ddcd15c886817dd27e7d7dd97 | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,484 | py | #import pythonista
from __future__ import division, print_function
import os
import genapi
from genapi import \
TypeApi, GlobalVarApi, FunctionApi, BoolValuesApi
import numpy_api
h_template = r"""
#ifdef _MULTIARRAYMODULE
typedef struct {
PyObject_HEAD
npy_bool obval;
} PyBoolScalarObject;
... | [
"tberk@gmx.at"
] | tberk@gmx.at |
aabb9ff1be83c06a61636fa630f00c907712089c | fe090190fb9780414e81aa9e113c047e760564e6 | /model/user.py | 7407e86c6bbfb4bd8186b9b7d347696305fa4228 | [] | no_license | mitubaEX/LINE_bot_MITUBA | 4dad7b6af101047160823f2f290453b0f9b1572e | 31d6c81d5171f2e760a0679e92a34e96fe78223e | refs/heads/master | 2021-05-05T00:28:10.156439 | 2018-02-11T13:38:22 | 2018-02-11T13:38:22 | 119,495,540 | 0 | 0 | null | 2018-02-11T12:12:04 | 2018-01-30T06:56:04 | Python | UTF-8 | Python | false | false | 406 | py | class User:
def __init__(self, display_name, user_id, picture_url, status_message):
self.display_name = display_name
self.user_id = user_id
self.picture_url = picture_url
self.status_message = status_message
def get_tuple(self):
return (self.display_name,
... | [
"g1344955@cse.kyoto-su.ac.jp"
] | g1344955@cse.kyoto-su.ac.jp |
0bf526f9d422b687482e87ec038ecfd417b71881 | 5845229bd982cabab8abcff49337c92821943a0a | /coviduci/www/handlers/research.py | e844beaa3497a40a7865e4d3d8407de5677ced2f | [
"Apache-2.0"
] | permissive | psc-g/coviduci-ec | 831ea290d20fac256ce5ab77973edcf3b8c1e17e | 867b2307b8a011c98a75cbef5aca91e1d7dda1f2 | refs/heads/master | 2023-09-01T09:28:46.119988 | 2020-06-15T16:14:39 | 2020-06-15T16:14:39 | 250,511,127 | 1 | 5 | Apache-2.0 | 2023-08-14T22:09:14 | 2020-03-27T11:00:13 | HTML | UTF-8 | Python | false | false | 371 | py | import tornado.escape
import tornado.web
from coviduci.www.handlers import base
class ResearchHandler(base.BaseHandler):
ROUTE = '/investigacion'
def initialize(self):
pass
def get(self):
data = {'user': 'none'}
if self.current_user:
data['user'] = tornado.escape.xhtml_escape(self.current_u... | [
"psc@google.com"
] | psc@google.com |
0ea2f387a707f39b2d1067016a2a65768150d149 | f9453c55e4b891565c0360cfc7694ca245fd2926 | /app/schemas/pockemon copy.py | 3eec57e5fc3f1784eed9714d6b882d2d15271a62 | [] | no_license | AlexFrundin/fast_api | 55d2a5287926d0c064bfb498181f81d3254a9926 | 83981309dd637c1f5e214a2f06856da24a4af70e | refs/heads/main | 2023-03-24T16:38:38.669064 | 2021-02-17T13:53:00 | 2021-02-17T13:53:00 | 339,404,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | from typing import Optional, List
from pydantic import BaseModel, HttpUrl, Field
from pydantic.class_validators import validator, root_validator
class SchemaPockemon(BaseModel):
id: int
name: str
class SchemaPockemonBase(SchemaPockemon):
class Config:
orm_mode = True
class SchemaPoc... | [
"aleksey.frundin@gmail.com"
] | aleksey.frundin@gmail.com |
5ca0633b3e20789f68300b3053ad90d0b3517eba | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_tlive_kafka_oc_schema.py | 81fb6d3d523db4d89604d2f262e7ed256d4508a6 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 948 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagge... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
2c3b97df05e232293694cc6423c1b6eaa10aec45 | 093b9569be9d1c4e5daf92efbebc38f680917b2d | /.history/base/views_20210828201119.py | eddb4da5e599a0e0bd577cf3c9d17caf736cd627 | [] | no_license | Justin-Panagos/todoList | 95b1e97ff71af1b0be58e7f8937d726a687cea4d | 10539219b59fcea00f8b19a406db3d4c3f4d289e | refs/heads/master | 2023-08-04T13:27:13.309769 | 2021-08-29T14:06:43 | 2021-08-29T14:06:43 | 400,827,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from d
from .models import Task
class TaskList(ListView):
model = Task
context_object_name = 'tasks'
class TaskDetail(DetailView):
model = Task
context_object_name = 't... | [
"justpanagos@gmail.com"
] | justpanagos@gmail.com |
2b50440dc00de0b5d2d3f98408e0f9955749779a | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /boj/2563_색종이.py | 0170161f4cb6952b8b1803b0da3825afac85b611 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | b=[[0]*101 for _ in range(101)]
for _ in range(int(input())):
a,c=map(int,input().split())
for i in range(a,a+10):
for j in range(c,c+10):b[i][j]=1
print(sum(sum(b,[]))) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
d67d4a47fac42e1fa94f0e4e8618239315a2fd30 | 288987aac1550d8470acd7e8e9ad7c47dce36334 | /backend/location/migrations/0001_initial.py | 5ed25394f9bc087890a20b9db4825bd1e3a9b7b6 | [] | no_license | crowdbotics-apps/police-22260 | c2298e644eb4d473090a9297555f49627acd4000 | 034e1039f59bca5c0e76039517e271d17b79a900 | refs/heads/master | 2023-01-08T16:35:48.447228 | 2020-11-03T16:49:37 | 2020-11-03T16:49:37 | 309,749,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | # Generated by Django 2.2.17 on 2020-11-03 16:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2330113a17e4be8a643e939211497decd5a1c6a4 | 8d5fac378cb1f7c826996e442375c7ee8cb842d5 | /ExpressSuiteTools/HTMLDiff.py | 16af456b9c8aa6994f068e01047e9624385b7830 | [] | no_license | ichar/Express-Suite-DMS | 6f4cf7064b774894995b2224a3ca1a13ac4aa64a | bdf3ad7c1ec4bcdec08000bf4ac5315ca6a0ad19 | refs/heads/master | 2021-01-11T10:59:15.101637 | 2018-02-16T02:09:12 | 2018-02-16T02:09:12 | 72,807,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | """
HTML diff generator.
Based on HTML Diff by Aaron Swartz <me@aaronsw.com>.
See http://www.aaronsw.com/2002/diff
$Id: HTMLDiff.py, v 1.0 2007/08/30 12:00:00 Exp $
*** Checked 10/12/2007 ***
"""
__version__ = '$Revision: 1.0 $'[11:-2]
import re
from difflib import SequenceMatcher
# Split text into sequence of wo... | [
"ichar@g2.ru"
] | ichar@g2.ru |
4886cf51e3ccb5bc54ce3269bd93d881b6e7b602 | a94e8b83bb2a4ccc1fffbd28dd18f8783872daab | /Misc/A Coin Problem.py | 194609ce6a7b10b08a6ce39d69323888006bf520 | [] | no_license | MowMowchow/Competitive-Programming | d679c1fe2d7d52940dc83a07dc8048922078704e | 0ec81190f6322e103c2ae0ad8c3935bd4cdfff46 | refs/heads/master | 2022-03-03T03:01:03.383337 | 2022-02-17T07:27:45 | 2022-02-17T07:27:45 | 184,678,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | import sys
#THANK YOU (ALMOST) BIT PROBLEMS FOR GIVING ME THIS IDEA
n, v = [int(x) for x in sys.stdin.readline().split()]
coins = [int(x) for x in sys.stdin.readline().split()]
queries = [] # query num, cost, first 'l' types
dp = [float("inf") for x in range(10001)]
answers = [0 for x in range(v)]
dp[0] = 0
for q in ... | [
"darkstar.hou2@gmail.com"
] | darkstar.hou2@gmail.com |
4ea33b75163b7b13bb7ccef24e65f22995e59542 | 6aa59fb47d7b61a28eace0e421d6d898e920f5b6 | /Defining-Classes-Exercise/OOP-project-Spoopify/song.py | 6197138d1f764467fe8af08e1cc61496734b0b8c | [] | no_license | Vigyrious/python_oop | 1488bf7ffc53059a790a694660a03ebe6814f615 | 8c28e9f8fe6e2af0c0b35b6a691f1af65f0e8579 | refs/heads/main | 2023-03-18T10:12:08.768834 | 2021-03-12T20:50:43 | 2021-03-12T20:50:43 | 347,192,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | class Song:
def __init__(self, name, length, is_single=bool):
self.name = name
self.length = float(length)
self.is_single = is_single
def get_info(self):
return f"{self.name} - {self.length}"
| [
"73179295+Vigyrious@users.noreply.github.com"
] | 73179295+Vigyrious@users.noreply.github.com |
5f9804c3701e527a3a54291ca1f53c141a3b7979 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/535_EncodeandDecodeTinyURL.py | a02669a27d405ac109e63d8f567075ae2fc6505a | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | """
TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk.
Design the encode and decode methods for the TinyURL service. There is no restriction on how your encode/decode algorithm should work. You jus... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
e8258a66dfd4932a3e13e483f468b337b8b2176c | ae53d98e04e9d86fa99dcbaa38479e77b81e5c41 | /Spider_demo/XinLang_news/XinLang_news/spiders/sysu.py | 2048088c264782beff7dee23acf35e6f0eef6f44 | [] | no_license | miminus/Spider_demo | 314e6099e80aea306995d218906392660aebf8af | be15f76acf8f3d680f015b659d365191ef3cb49a | refs/heads/master | 2021-01-10T06:39:21.891751 | 2015-12-07T13:28:09 | 2015-12-07T13:28:09 | 47,552,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | # -*- coding: utf-8 -*-
# 中山大学
# 翻页已实现,拼凑技术
import re
import time
from bs4 import BeautifulSoup
from scrapy import Selector, signals
import scrapy
import MySQLdb as mdb, os
from Sqlite_DB import SqliteTime
from XinLang_news.items import Topic_Item
from .. import settings
class SysuSpider(scrapy.Spider):
na... | [
"m189111@163.com"
] | m189111@163.com |
ded5e2355e6d42a766977e8f77a8f29c3e3375df | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /test_tipc/compare_results.py | 5b5a0b41dbfa04cc5a1257e324890bba23051237 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 3,912 | py | import numpy as np
import os
import subprocess
import json
import argparse
import glob
from val import evaluate
def init_args():
parser = argparse.ArgumentParser()
# params for testing assert allclose
parser.add_argument("--atol", type=float, default=1e-3)
parser.add_argument("--rtol", type=float, de... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
25a2facda5ddbe6f51fce7547a8eb5110b54a46c | d35b4a59e2d4496a728e0fa8b8a78121c8340ccf | /lib/utils/extractors.py | a61953bc492502edd723a7f1e8dd6af28febe74d | [] | no_license | xen0l/ansibullbot | ba5dd4b062796b5d1d5f99cb6066a9a10ecf07cf | 3d2ccc9f330cd6bff8cf8a8b91eb4a387c07e403 | refs/heads/master | 2020-12-14T08:47:55.374935 | 2016-08-30T21:18:30 | 2016-08-30T21:18:30 | 66,974,844 | 0 | 0 | null | 2016-08-30T21:18:30 | 2016-08-30T20:19:41 | Python | UTF-8 | Python | false | false | 5,965 | py | #!/usr/bin/env python
import operator
import shlex
def extract_template_data(body, issue_number=None):
SECTIONS = ['ISSUE TYPE', 'COMPONENT NAME', 'PLUGIN NAME',
'ANSIBLE VERSION', 'CONFIGURATION',
'OS / ENVIRONMENT', 'SUMMARY',
'STEPS TO REPRODUCE', 'EXPECTED RE... | [
"tanner.jc@gmail.com"
] | tanner.jc@gmail.com |
e4649d7a6f9743452e6e185265c13d7d7015f11e | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/timed/max_par/job41.py | 519caaacb89c1a18b3e00edc402feae7716f2b9a | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,887 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
8185fe51f355332224ee5b096743ce3bf24b3701 | af0dcf80a36da4ac6894dc517ad1870f702c3122 | /azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/error_body.py | f1f0eec82403e3df11af7c72f9581dac99d67e55 | [
"Apache-2.0"
] | permissive | FlavioAlexander/azure-sdk-for-python | 4c6151ca17886f9e4d47e1ccc469859abdedca5a | 8c7416749f9a5697e0311bc9af8fe5c0d524ca03 | refs/heads/master | 2021-01-24T02:34:37.194767 | 2016-07-03T23:47:23 | 2016-07-03T23:47:23 | 62,738,173 | 0 | 1 | null | 2016-07-06T16:54:12 | 2016-07-06T16:54:10 | null | UTF-8 | Python | false | false | 1,453 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
1e51bc9049963631f18374802c8a4e98449d3c49 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CSEU3-ALGORITHMS-GP/complexity.py | 6a86524553c8f845d443885ab953e127851609c6 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 553 | py | def timeof(n):
if n == 1:
return
i = 0
<<<<<<< HEAD
while i <= n: # O(n) * O(1) + 1
# inner loop will break out after first itteration O(1)
for _ in range(n):
print('*')
=======
while i <= n: # O(n) * O(1) + 1
# inner loop will break out after first itteratio... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
35b0e3a3db669ba83d7fa0ded541682d0fed958e | f909b66a82ec4f2ea76390f40c946cc3cb1c70fa | /ration/core/migrations/0022_following.py | a1b591153398464e666da1a1f6b4680144f20733 | [] | no_license | pauloendoh/ration | bcb0fdf3b24aa3fe327d112971d915a681f4ab34 | 5a6b236ff9ad13cf4df559d6e243c1ba010e9faa | refs/heads/master | 2022-11-04T01:25:45.997132 | 2018-09-16T02:11:09 | 2018-09-16T02:11:09 | 132,214,649 | 0 | 1 | null | 2022-10-30T13:31:11 | 2018-05-05T04:29:10 | Python | UTF-8 | Python | false | false | 874 | py | # Generated by Django 2.0.2 on 2018-05-16 07:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0021_auto_201805... | [
"paulo.endoh@gmail.com"
] | paulo.endoh@gmail.com |
e95b0976ff44af59f282865b95421741850f42e6 | 22073663667f0f7eaed238c956b1d76f26a0f888 | /56.CLOSEST LEAF.py | 33c0214698759cc210605059a5491af628f89e1e | [] | no_license | KumarAmbuj/BINARY-TREE-MISCELLANEOUS | c77921eb9db07bbe7e553a4c289cb143c28811b7 | 1b54069e0689e6d28448c43bf0923e279dd0c212 | refs/heads/main | 2023-03-05T03:46:47.304547 | 2021-02-09T10:07:57 | 2021-02-09T10:07:57 | 337,362,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | class Node:
def __init__(self,val):
self.val=val
self.left=None
self.right=None
def findnode(node,x,l):
if node==None:
return False
if node.val==x:
l.append(node)
return True
if findnode(node.left,x,l):
l.append(node)
ret... | [
"noreply@github.com"
] | KumarAmbuj.noreply@github.com |
061f6428dcf54c7865bf3cd01400a1575fe7ba73 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/marker/colorbar/_title.py | 63664c03254c171cd32eceacf864fde2f3e1c323 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 447 | py | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='title',
parent_name='scatter3d.marker.colorbar',
**kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_na... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
8cad0b4cb74a3cb713c6872847f48a37194f6541 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/OapiWorkspaceTaskGetRequest.py | bf9d274d7113dfed11115b52ba75c46ca8dec824 | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 363 | py | '''
Created by auto_sdk on 2020.02.23
'''
from dingtalk.api.base import RestApi
class OapiWorkspaceTaskGetRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.microapp_agent_id = None
self.task_id = None
def getHttpMethod(self):
return 'POST'
def getapiname(self):
... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
f0f5854b5f1a1b8146ca8146d03851677c61dbb4 | 9768b10f16ca959ee7ab8ff9559959ea9d39fb58 | /MyANSRSource/migrations/0025_auto_20150217_1503.py | 58fc22da7426f57a3fbecf570914e41bf9efe101 | [] | no_license | jeevan-naidu/ansrportal | 2986be3c17f84575eb229d725eaf4f1a61fc49cb | b643faf914f7ca0072ed8546310a01f6112cdf07 | refs/heads/master | 2020-03-24T07:13:26.407926 | 2018-04-26T06:20:15 | 2018-04-26T06:20:15 | 142,556,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('MyANSRSource', '0024_auto_20150217_1500'),
]
operations = [
migrations.RenameField(
model_name='task',
... | [
"niranj@fantain.com"
] | niranj@fantain.com |
d1de1173f15c383f48f57351ed93b85358204aa4 | 1537873b83d1f3245ff60d2f95c366b163691f55 | /target_offer/二分+双指针+滑动窗口/删除排序数组中的重复项--升级版.py | 7969537d850585a9a4688e422854572751e91ce8 | [] | no_license | 20130353/Leetcode | dc5c7fb08932abbf11e22e91b3edecac7f8753d5 | 488345a4713fae553559176c5bd3681e3bcac57d | refs/heads/master | 2020-03-31T08:46:12.005167 | 2020-03-15T16:32:11 | 2020-03-15T16:32:11 | 152,071,790 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : 删除排序数组中的重复项--升级版.py
# @Author: smx
# @Date : 2020/2/10
# @Desc :
# 给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素最多出现两次,返回移除后数组的新长度。
class Solution:
# 返回长度
def removeDuplicates(self, nums):
if not nums or len(nums) <= 2:
return len(nums)
... | [
"739400043@qq.com"
] | 739400043@qq.com |
92b8dcf42e561b54e05cf5af56c3214e80f833be | c0b363bd6353f1241fa7240deff8e25dbc44cb7e | /backend/task/migrations/0001_initial.py | a45934ca24ef7fb44968665565b1268ebd5c29f5 | [] | no_license | crowdbotics-apps/homehunt-27506 | ab181f9c30f0837c807f00b7174033c45477f97a | 172a27d716d70473e1d3d86486ecbd1b0164bd18 | refs/heads/master | 2023-05-06T00:00:59.863694 | 2021-05-28T02:57:34 | 2021-05-28T02:57:34 | 371,562,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | # Generated by Django 2.2.20 on 2021-05-28 02:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task_category', '0001_initial'),
('location', '0001_initial'),
('task_profile', '0001_i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
21710ae9f3eb62a6cfdc436c153b838fa9d90b5a | 46f2834ae92da9e17463def0c635f75bf05886a1 | /arc/arc001/B/main.py | c1c22098bd338a6365a20ca68b459e9c13797a8e | [] | no_license | replu/atcoder | bf3da10c937c955ca1bc3fa33b8f24c74d2d6c50 | a6183d03355058bccc2b89db5e07b7f72598fea3 | refs/heads/master | 2023-03-30T15:03:47.879783 | 2021-03-28T17:08:19 | 2021-03-28T17:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/env python3
import sys
def solve(A: int, B: int):
ans = 0
C = abs(A-B)
ans += C // 10
D = C % 10
if D == 5 or D == 1:
ans += 1
elif D == 9 or D == 6 or D == 4 or D == 2:
ans += 2
elif D == 8 or D == 7 or D == 3:
ans += 3
print(ans)
return
# Gen... | [
"n.small.island@gmail.com"
] | n.small.island@gmail.com |
a048d7c45d0c5cbfb8b922c5b1ddb619b38e67b5 | c49ba441a2f4fc94e54358a7436b9c12d538279a | /agent/src/agent/pipeline/config/stages/expression_evaluator.py | 04182bb98e376d3f063bbc41046f285408a78e64 | [
"Apache-2.0"
] | permissive | anodot/daria | 86523a9f699577c8cf61120e2c27589a4ade48bb | 4aa800e26b585a8582ec2e088384a474148d114d | refs/heads/master | 2023-07-20T11:36:58.353251 | 2023-07-17T17:33:57 | 2023-07-17T17:33:57 | 224,878,130 | 16 | 6 | Apache-2.0 | 2023-07-12T13:07:25 | 2019-11-29T15:23:32 | Python | UTF-8 | Python | false | false | 4,149 | py | import csv
from agent.modules.tools import escape_quotes
from .base import Stage
from agent.modules.expression_parser import condition
from agent.pipeline import pipeline, Pipeline
class AddProperties(Stage):
@classmethod
def _get_dimension_field_path(cls, key) -> str:
return f'/properties/{key}'
... | [
"noreply@github.com"
] | anodot.noreply@github.com |
5093f64149ff5bb90178acb4761a273c3301b212 | c55aedc3479a4d311fb406d8133b0e0ceb99d2df | /example/glumpy_3_synthesis_road/glumpy_3_google_roadMap.py | ffd9aaea447aad692a585ad66b5de1fc2e112f84 | [] | no_license | tarwcz111111111/DashCam_python | 4a33cdb3e5a8368b81ddc7c0596d4f0802b7c9d6 | 6e025ff49261c146205eb56bbbf4175f1d413f54 | refs/heads/master | 2020-08-25T04:55:16.695561 | 2017-08-28T04:34:59 | 2017-08-28T04:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,730 | py | #!/usr/bin/python3
import numpy as np
import cv2
from glumpy import app, gloo, gl, glm
from glumpy.transforms import Rotate
import os
import json
import shader
import sys
sys.path.append('module') # use the module under Module
import google_parse
import base_process
import timeit
'''
ID = '000731';
fileDir = 'src/pano... | [
"ydnaandy123@gmail.com"
] | ydnaandy123@gmail.com |
0d4781082606de148626050a79450b2e8cd3a6ab | 89b9b5a41f1d79f3b8e2949cc4390ecf9d23993b | /venv/bin/scrapy | 80ef8129f5f1ff7e4951da2f61ac3969c701759f | [] | no_license | yasin007/ArticleSpider | 738c6507208282128f770d6a561062be6e958b15 | 1e31cf22288482cd947624a70df89b30176a5d75 | refs/heads/master | 2020-03-22T17:05:53.001149 | 2018-07-25T10:25:39 | 2018-07-25T10:25:39 | 140,057,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/yiyang/Desktop/ArticleSpider/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from scrapy.cmdline import execute
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute())
| [
"yangyi@gogopay.cn"
] | yangyi@gogopay.cn | |
8e33f3777be6b54a8167511990e8cc7bd5928a13 | 577f03954ec69ed82eaea32c62c8eba9ba6a01c1 | /py/testdir_multi_jvm/test_KMeansGrid_basic_fvec.py | d090785e7cab02a6e893021ac7cac45879bbd02b | [
"Apache-2.0"
] | permissive | ledell/h2o | 21032d784a1a4bb3fe8b67c9299f49c25da8146e | 34e271760b70fe6f384e106d84f18c7f0adb8210 | refs/heads/master | 2020-02-26T13:53:01.395087 | 2014-12-29T04:14:29 | 2014-12-29T04:14:29 | 24,823,632 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | import unittest
import random, sys, time
sys.path.extend(['.','..','../..','py'])
import json
import h2o, h2o_cmd
import h2o_kmeans, h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
global SEED
S... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
0483e2746b6f51d9736e5c88fb6883f3dc1b1689 | e4cd32ba26abb1db0c435c7025491fc5e917e98c | /bot-config/code_utils/SwarmCmdControllers/UpdateCmdController.py | 0140c9e21f25b58efee1da93e6277b33956bd4e5 | [] | no_license | hjlloveff/k8yaml | bc3a402505129509dc4f3b5df39a156e9ccbd20f | 1310f35032cf43f684df415306abd3f701127996 | refs/heads/master | 2020-03-21T02:04:16.233102 | 2018-06-20T04:10:19 | 2018-06-20T04:10:19 | 137,977,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | import os
import subprocess
from code_utils import check_host, query_service_config, get_service_env_variables, get_host_name
from code_utils.SwarmCmdControllers import RootCmdController, BaseCmdController
from cement.core.controller import CementBaseController, expose
CONTROLLER_DESCRIPTION = 'update a docker swarm s... | [
"you@example.com"
] | you@example.com |
59c1e0f12338d2e11d1612954b23baaf349c5ccd | 1d35b22e6f4deb4bf21be330bcf9ec2bc41b3c78 | /utils/u_darrays.py | 153de18bca69e4d1a5aaaae4be0c1783bcf75704 | [] | no_license | adambamba/proj_CEH | 076dc5107bfaa04c9ec9920a58a0e55709a6161c | 471a45740f19a8b6b776f2daa2a9a8fb52658553 | refs/heads/master | 2020-04-03T12:33:38.037350 | 2018-10-29T18:04:38 | 2018-10-29T18:04:38 | 155,256,136 | 0 | 0 | null | 2018-10-29T17:51:36 | 2018-10-29T17:51:36 | null | UTF-8 | Python | false | false | 3,255 | py | import numpy as np
import xarray as xr
from utils import u_mann_kendall as mk
from scipy import stats
import matplotlib.pyplot as plt
import bottleneck
import scipy
import pdb
def shift_lons(ds, lon_dim='lon'):
""" Shift longitudes from [0, 360] to [-180, 180] """
lons = ds[lon_dim].values
new_lons = np.e... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
72f991d02f0249a7228537ed7882863d3727274c | 1f42ca6bbe600eefbf80cbe5c1b8485003b2cb35 | /session_09_working_files/inclass_exercises/inclass_9.23.py | 7c6835f60b91fee7be9240d65fbfc42c8101ec21 | [] | no_license | jongiles/python_data_apy | a4589e39b3a3eaed850d0177ee79f649dd3a0ee1 | 343bd649635e98897d3924041374e9ad58eb345d | refs/heads/master | 2023-05-12T22:43:16.299571 | 2021-06-07T22:00:27 | 2021-06-07T22:00:27 | 374,784,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # 9.23: MultiIndex: use .query('Manager == "Debra Henley"')
# to select rows.
import pandas as pd
import numpy as np
df = pd.read_excel("../sales-funnel.xlsx")
table = pd.pivot_table(df, index=['Manager', 'SalesRep'],
aggfunc=np.sum)
print(table.query(# your code here))
| [
"jgiles@MacBook-Pro.local"
] | jgiles@MacBook-Pro.local |
baf08442dd1d2aebda08671a87a0c25287ac8e64 | 5c0ae0c4b2a492819fa15b3f5e85c3fd4f286a8d | /crawler/crawler/spiders/utils.py | 56e36ad9ded3c703eac8817133a8b08b267cb9b4 | [
"BSD-3-Clause",
"MIT"
] | permissive | picopoco/all-about-critics | 2f3a964008a392024f4abaccddc8f2ae3839f92e | 3695c1c038af08fe2ea7c2e64b05e75759d6777e | refs/heads/master | 2021-05-28T12:28:15.254999 | 2015-03-03T09:06:27 | 2015-03-03T09:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
get_movie = lambda movies, mid: [movie for movie in movies if movie.mid == mid]
get_soup = lambda url: BeautifulSoup(requests.get(url).text)
CINE = "http://www.cine21.com"
NAVER_INFO = "http://movie.naver.com/movie/bi/mi/basic.nhn?code="
NAVER_AUTO = "... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
c31c1b11f3b3ac0e16714b9cdbcd539bd520ea61 | 85e7e023baee44aefa5a578d1747d982141fd00c | /setup.py | 59e292a6747c879b97afd8a2336e476db3d332b4 | [] | no_license | paultag/sunlightfdw | e4da3adcd02727edaba09dcd7c756a3d3aa30b07 | a2dd343d3fee8abd06975fdeff5991a23c591a2d | refs/heads/master | 2020-06-06T14:51:10.390597 | 2014-09-02T23:49:22 | 2014-09-02T23:49:22 | 23,599,644 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python
from setuptools import setup
from sunlightfdw import __version__
long_description = "Sunlight FDW"
setup(
name="sunlightfdw",
version=__version__,
packages=['sunlightfdw',],
author="Paul Tagliamonte",
author_email="paultag@debian.org",
long_description=long_description,
... | [
"tag@pault.ag"
] | tag@pault.ag |
38420346ac8e87bc4fee7e229097e22289c95452 | 6a1922c177f31da8fba0c8cc05161d6ae3257272 | /agent/actor2critic.py | ad84d28a897586886ee1d86b9e22754f216c86fc | [] | no_license | verystrongjoe/RL_pysc2 | 40616f4d3558a2fb475b79f1ed74f167dbabbfc4 | fbe367cb51d0c705fc476ce194fe59e35fa79f1a | refs/heads/master | 2020-08-13T22:49:55.017898 | 2019-10-15T12:29:23 | 2019-10-15T12:29:23 | 209,054,550 | 0 | 0 | null | 2019-09-17T12:58:17 | 2019-09-17T12:58:17 | null | UTF-8 | Python | false | false | 3,945 | py | import torch
import numpy as np
import shutil
import copy
from utils import arglist
from pysc2.lib import actions as Actions
class LearnerSeperatedAC:
def __init__(self, actor, critic, memory):
"""
DDPG learning for seperated actor & critic networks.
"""
self.device = arglist.DEVIC... | [
"verystrongjoe@gmail.com"
] | verystrongjoe@gmail.com |
6d2947adab64a91dfba55fdefeacf5b673d3053b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/AdaFM-Net_ID1101_for_PyTorch/codes/scripts/extract_subimgs_single.py | 7ae403522f77956e99c1fdd84c1d5d148ffa3fd7 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,802 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
fe40ec04828b84179580f0a685e5f21bfa683ba3 | 560df0c3f859ae2d4c279f4669f9ab8758c486fb | /old/Euler106.py | 8882c7b09de88c9ed69f407663fbca7e1ef73abb | [] | no_license | gronkyzog/Puzzles | 0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a | cdc145857f123a98f1323c95b5744d36ce50355f | refs/heads/master | 2021-03-13T00:01:17.715403 | 2015-02-22T11:59:03 | 2015-02-22T11:59:03 | 17,100,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import itertools
def powerset(iterable):
"powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
s = list(iterable)
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(1,len(s)+1))
n = 12
A = [i for i in range(n)]
B = [x for x in powerset(A)]
#C = [z for z i... | [
"smcnicol@gmail.com"
] | smcnicol@gmail.com |
92105fa9b8617bab1a804221f70cdf2fc528de93 | ee6074aad7bef8b8279130fa561b6eb0a6e66b1e | /modules/lib/server/httpservercore.py | 3a9cc5ca7fd0c88b82a7bf9702c537cacf1c0bb8 | [
"MIT"
] | permissive | antiquefu/pycameresp | 23ca208c2a19d445d164fbdc25303d4be040f381 | d86814625a7cd2f7e5fa01b8e1652efc811cef3a | refs/heads/main | 2023-08-01T01:40:04.384937 | 2021-09-19T17:30:48 | 2021-09-19T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | # Distributed under MIT License
# Copyright (c) 2021 Remi BERTHOLET
# historically based on :
# https://github.com/jczic/MicroWebSrv/blob/master/microWebSocket.py
# but I have modified a lot, there must still be some original functions.
"""
Http server core, it instanciated only if a connection is done to the asynchron... | [
"remi_bertholet@yahoo.fr"
] | remi_bertholet@yahoo.fr |
440b73e4d4fcdee1abcfdd279baf3426342f8ced | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/mellanox/onyx/tests/unit/modules/test_onyx_ospf.py | bb35e6e8864dbe4bbf39313cd88c4cc569ef6250 | [
"MIT",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 4,532 | py | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from unittest.mock import patch
from ansible_collections.mellanox.onyx.plug... | [
"sifang@cisco.com"
] | sifang@cisco.com |
506dbc952905150783f94f49ec49afbce94212c5 | 33a241752e412c70a87600afe8faadf01dac8ef4 | /Tasks/ORT-War-System/WAR/Codehelper/urls.py | 9211da13ba557bb99cbb77ea74e9bbe04f132afe | [] | no_license | singh-amits/Django_Projects | 3e70050e3a8481462b0e094bf7a378ee23e47692 | 658cf87ffdda5e1b75fe63c635ae259c4a372397 | refs/heads/main | 2023-08-22T16:37:55.103743 | 2021-10-17T09:32:06 | 2021-10-17T09:32:06 | 418,077,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.contrib import admin
from django.urls import path, include
from . import views as v
urlpatterns = [
path('admin/', admin.site.urls),
path('codehelper/', v.codehelper, name='codehelper'),
]
| [
"mailmeamit27@gmail.com"
] | mailmeamit27@gmail.com |
c8a359b1eb07722767fa3fed7cb0595955493e13 | a3ef30842498e4768c799770649ea003e4f5702e | /app_blog/urls.py | 13b73e1a37ff541e48b0351a8f5aff6c0417b19a | [] | no_license | eflipe/portfolio | 82bb26060b1b179cfa09707b787e0f62dc098495 | 8b323d67a37fd308a92f97d238d3abf135e4145a | refs/heads/eflipe | 2023-06-24T10:39:34.841078 | 2021-07-16T21:06:38 | 2021-07-16T21:06:38 | 322,098,635 | 0 | 0 | null | 2021-05-12T23:37:47 | 2020-12-16T20:50:22 | Python | UTF-8 | Python | false | false | 386 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
path("", views.BlogListView.as_view(), name="blog_index"),
path("<int:year>/<int:month>/<int:day>/<slug:post>/", views.blog_detail, name="blog_detail"),
path("<category>/", views.blog_category, name="blog_category"),
pa... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
dc3a653fc36282f55b24719888ca4dad2f470dc1 | c8f97a4b077bfe5e436b1bc9211aabdf624e524f | /post/urls.py | f89e3de669f22d523de5b4aef6fc4072969459c5 | [] | no_license | Dimas4/REST-API-DJANGO | 2ea8d253b4b7b004f753620be2d3ac7032f7123e | 11e9efea3784ab37946edced4fe5dad8fe31b036 | refs/heads/master | 2020-03-19T19:09:08.021480 | 2018-06-26T15:53:48 | 2018-06-26T15:53:48 | 136,841,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.conf.urls import url
from .views import PostApiView, PostDetaokAPIView, LangApiView, LangDetaokAPIView
urlpatterns = [
url(r'^post/$', PostApiView.as_view(), name='list'),
url(r'^post/(?P<pk>[0-9]+)/$', PostDetaokAPIView.as_view(), name='list'),
url(r'^lang/$', LangApiView.as_view(), name='li... | [
"vaniashatuhomail@mail.ru"
] | vaniashatuhomail@mail.ru |
f9ba4427db77757056cefdcec6ff61135bd8128c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/agreements/views.py | 1f4b3c68281024587efc0a50435add43ffe3adc8 | [
"MIT",
"AGPL-3.0-only",
"AGPL-3.0-or-later"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 4,337 | py | """
Views served by the Agreements app
"""
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.authentication import SessionAuthentication
from res... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
d004a1ff6660c26de515dc9eca69f08d5018ad50 | 68a4fda57dd90dd6b6b96f687c5ca2a51482c062 | /app/core/migrations/0053_split_issue_event.py | 4be3d0888d0a6620ca567a3828d669c3e54474ec | [] | no_license | AnikaLegal/clerk | f9474887a95e6fc815fe7beb12c522347390db45 | 42c93b042502b9fa04f749739dff64e17b8220ca | refs/heads/develop | 2023-08-22T08:18:54.051407 | 2023-08-11T11:57:58 | 2023-08-11T11:57:58 | 158,532,187 | 28 | 10 | null | 2023-08-11T11:57:59 | 2018-11-21T10:39:32 | Python | UTF-8 | Python | false | false | 2,078 | py | # Generated by Django 4.0.10 on 2023-07-03 09:16
from django.db import migrations, models
def split_issue_event(apps, schema_editor):
IssueEvent = apps.get_model("core", "IssueEvent")
IssueNote = apps.get_model("core", "IssueNote")
events = list(IssueEvent.objects.all())
for e in events:
not... | [
"mattdsegal@gmail.com"
] | mattdsegal@gmail.com |
deff213223a41cabc675d3f062d5f8ccff9d411d | 77d2afae698c9101f1875c575dbc4b9290e5bbd9 | /aspects/pipelines/parallel.py | 57f2985749704170c8db3d8488e1fbc0ee35f608 | [] | no_license | BrainEditor/discourse_summarization | f0d56e1b81357c680920ad3e259e72b6b7581d0a | 338dbb948a5cb69d2ecc648852b73ae3697868fd | refs/heads/master | 2023-04-09T00:16:49.958399 | 2021-04-24T20:40:34 | 2021-04-24T20:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import multiprocessing
from concurrent.futures.process import ProcessPoolExecutor
from typing import Sequence, Callable, List
from tqdm import tqdm
def parallelized_job(
elements: Sequence,
fn: Callable,
desc: str = 'Running in parallel',
batch_size: int = 1000,
jobs: int = No... | [
"luk.augustyniak@gmail.com"
] | luk.augustyniak@gmail.com |
34bd2ba52d9093564f21c6e9659691d44891526f | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /Baekjoon/baekjoon_omok.py | f41bb2c2060e3c3b36a96ef1c2f381bc8a7eed91 | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import sys
sys.stdin = open('./input/input_omok.txt','r')
o_map = []
for _ in range(19):
line = list(map(int,input().split()))
o_map.append(line)
dx = [1, 0, 1, 1]
dy = [0, 1, -1, 1]
result = 0
flag = True
for y in range(len(o_map)):
for x in range(len(o_map[y])):
if o_map[y][x] == 0:
... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
fde163ad301cc0b9d03d1ae63c126460aff425e3 | fc9005c2d671744ff2ecf970dfa8a1d7dc52850f | /api/product/migrations/0002_alter_product_stock.py | 54c6fc1abf4598e7efd9ddc48a2a63a2a77b0ac9 | [
"CC0-1.0"
] | permissive | entirelymagic/E-Commerce-API- | 7721cccda1e8945a1b9d1f948554d91240e38d45 | bb6695c5d97aa23d2b2d3794e145a3dc33022e48 | refs/heads/develop | 2023-07-01T05:57:55.741054 | 2021-08-09T07:48:36 | 2021-08-09T08:27:43 | 392,206,463 | 0 | 0 | CC0-1.0 | 2021-08-05T08:30:41 | 2021-08-03T05:53:08 | Python | UTF-8 | Python | false | false | 462 | py | # Generated by Django 3.2.6 on 2021-08-04 06:33
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
... | [
"entirelymagic@gmail.com"
] | entirelymagic@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.