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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a2a55a993186bacf8fed7bada23f6ab0264b6b5 | 8e55b122aa7b18b1734aafc3699b477c1e85cb91 | /pippy/fx/experimental/refinement_types.py | 665c9d0d651b4ed929e974d822a447809f3d26dd | [
"BSD-3-Clause"
] | permissive | yunxing/tau | 0a7a641db49da795de70e8db9748d93205be31ac | c679248814a76c915e651806f1b4f30a3de9fe92 | refs/heads/main | 2023-03-17T01:02:23.222622 | 2022-09-30T23:18:25 | 2022-09-30T23:18:25 | 543,822,164 | 0 | 0 | BSD-3-Clause | 2022-09-30T23:13:57 | 2022-09-30T23:13:56 | null | UTF-8 | Python | false | false | 457 | py | # Copyright (c) Meta Platforms, Inc. and affiliates
class Equality:
def __init__(self, lhs, rhs):
self.lhs = lhs
self.rhs = rhs
def __str__(self):
return f'{self.lhs} = {self.rhs}'
def __repr__(self):
return f'{self.lhs} = {self.rhs}'
def __eq__(self, other):
i... | [
"noreply@github.com"
] | yunxing.noreply@github.com |
fd99bf3d3c0e15b0191184e3ac916eff8f0f70d2 | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psgreet.py | 23cec5ae7e9d198ceaf39575804a96c85a4837e3 | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | name = input('enter the name :')
city = input('enter the city :')
zip_code = int(input('enter the postal code :'))
print('name :', name)
print('city :', city)
print(zip_code)
print(type(zip_code))
| [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
e095bb08830df4cb39df6e6f8c0f7a370cf6d071 | 524baf7de05bd3fc5b9d08083cbb0b7b47a67979 | /40.py | d5ffe3d133240d1686dcb26040a6492346e80813 | [] | no_license | gk90731/100-questions-practice | 1356dd577516567a5c51a4257f59fe01b123e7ff | f855549e037b9924dd6f0370dc2f2a53765d9227 | refs/heads/master | 2020-05-25T14:04:59.642819 | 2019-05-21T12:49:04 | 2019-05-21T12:49:04 | 187,835,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | '''Question: Please try to guess what is missing in the following code and add the missing part so that the code works fine.
import math
print(math.pow(2))'''
import math
print(math.pow(2,3))
| [
"gk90731@gmail.com"
] | gk90731@gmail.com |
d8c1268253a55b552a1766dca9855a16bb18ab78 | df489fddec1ffa936f0223efca3a35a22df36dc0 | /99_backup/25_各国历年二氧化碳CO2排放量统计分析/challenge7_1.py | 7c9a6e07c6db0eee678564cc8f73ddede36755f8 | [] | no_license | echo-xr/pc | 3af106530815956feb458889408085285b3fd8f5 | 03160675e912b4e4ad4642e14b5ab0230b973f6c | refs/heads/master | 2020-04-26T16:54:03.408688 | 2019-03-03T11:27:34 | 2019-03-03T11:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | def co2():
import pandas as pd
# 读取 Data 表
data = pd.read_excel('ClimateChange.xlsx')
# 取 'Series code' 这列中值为 'EN.ATM.CO2E.KT' 的行并设置索引
data = data[data['Series code']=='EN.ATM.CO2E.KT'].set_index('Country code')
# 刪掉多余的前五列,只留各年排量数据
data.drop(data.columns[:5], axis=1, inplace=True)
# 把数组中... | [
"1195581533@qq.com"
] | 1195581533@qq.com |
cd7f37a9b936647ac196bbd22cf1e6cb455cb8de | acec0a3d2220bbd0531ab44159e20bf28a9dd71b | /src/moviesapp/migrations/0001_initial.py | fcd20ded5a642116b0df6b114cd73f280a471420 | [] | no_license | desecho/movies | ad48c262f836a65902e7135fe7d3e3dde9e5c69c | 04141e4cfc885ba6c53328e1222980b85d9828ef | refs/heads/master | 2023-06-22T23:06:53.114491 | 2023-06-10T14:20:55 | 2023-06-10T14:21:35 | 8,838,721 | 14 | 4 | null | 2022-10-01T15:00:05 | 2013-03-17T18:00:49 | Python | UTF-8 | Python | false | false | 8,907 | py | import annoying.fields
import django.core.validators
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0001_initial"),
]
operations = [
migrations.CreateModel(
... | [
"desecho@gmail.com"
] | desecho@gmail.com |
ca60ffe0443bb07e494632fa5f39f6372218f4ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/125/usersdata/172/29042/submittedfiles/ap1.py | 683a565ff52ea8deb8c87ed40b155d4040448259 | [] | 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 | 274 | py | # -*- coding: utf-8 -*-
a=float(input('digite o 1° número:'))
b=float(input('digite o 2° número:'))
c=float(input('digite o 3° número:'))
if a<=b and a<=c:
print(a)
if b<=c:
print(b)
print(c)
else :
print(c)
print(b)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9b875b0f2099e0bfd6817014a1288c30d4e9b0be | c4ce3e9115cd393eca4152dadf0178ab813c7851 | /13.자연어 처리 기술-16T/course/nlp/applications/named_entity_recognition/tf_train.py | 70ef05e7ed576081df65a147faad777a7a78158d | [] | no_license | ckiekim/TIL | 2314cbfd304d60240ece879a0e405ec4dd73e386 | bc77e2c9e8d10757ee07c6c6c4d3c08f8539d376 | refs/heads/master | 2023-02-20T16:59:54.805208 | 2023-02-08T09:00:49 | 2023-02-08T09:00:49 | 188,774,191 | 0 | 2 | null | 2019-05-27T05:28:57 | 2019-05-27T05:05:51 | null | UTF-8 | Python | false | false | 12,606 | py | """
Named Entity Recognition
Author : Sangkeun Jung (2017)
- using Tensorflow
"""
import sys, os, inspect
# add common to path
from pathlib import Path
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
common_path = str(Path(currentdir).parent.parent)
sys.pat... | [
"ckiekim@naver.com"
] | ckiekim@naver.com |
7ccbfdbf9eb671918f8f2d2beca9b69a75d10e8d | a3e1e797acb16bf4d1e298271545927df8eaeae7 | /tests/unit/services/storage/test_base.py | 81a39a0af33497a1293be5621915105e9b1b977e | [
"MIT"
] | permissive | totem/cluster-deployer | 481b11b2953a3e195c46762659c97fceca75945a | 75160f051250fd782af42af472f965d50f721ff5 | refs/heads/develop | 2022-10-12T09:09:30.417412 | 2017-06-30T22:32:56 | 2017-06-30T22:32:56 | 23,778,754 | 0 | 2 | MIT | 2022-09-13T21:48:32 | 2014-09-08T04:03:06 | Python | UTF-8 | Python | false | false | 2,592 | py | import datetime
from freezegun import freeze_time
from mock import MagicMock
from nose.tools import raises
import pytz
from deployer.services.storage.base import AbstractStore
from tests.helper import dict_compare
NOW = datetime.datetime(2022, 01, 01, tzinfo=pytz.UTC)
NOW_NOTZ = datetime.datetime(2022, 01, 01)
clas... | [
"sukrit007@gmail.com"
] | sukrit007@gmail.com |
d4e55b4a3c1058d466250a81fc43250a26f6e81e | 79f541042e4b4d6bb443e7a758ca918817ea0f33 | /PythonGTK/Examples/19_cellRendererPixbuf.py | 075ed4f57dca6d57224051e634c8867f76537d47 | [] | no_license | ashutoshm1771/Source-Code-from-Tutorials | d5f950db8f5f648e87303835e9558eeba404939a | f5552d4bd0f4bebcf5c674ff730fcb61f2d7a1ce | refs/heads/master | 2020-09-15T06:08:31.777622 | 2019-11-22T09:08:31 | 2019-11-22T09:08:31 | 223,364,275 | 4 | 0 | null | 2019-11-22T09:01:51 | 2019-11-22T09:01:48 | null | UTF-8 | Python | false | false | 962 | py | from gi.repository import Gtk
class CellRendererPixbufWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="CellRendererPixbuf Example")
self.set_default_size(200, 200)
self.liststore = Gtk.ListStore(str, str)
self.liststore.append(["New", "document-new"])
... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
f7fb4d9a7d5027b2266d958ce939e45c3c255fd8 | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /past202010/h/main.py | 3b515938a65636dfb734674b57c922c04b987390 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N, M, K = map(int, input().split())
S = [list(input()) for _ in ran... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
555768f7f3294b960854d8e29e515027c5aefc09 | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /Щелчок/15_поляков/22.py | 23cd2689e5ef0c8d8a5c67a9dc002aa76f830d5a | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | for i in range(101, 1000):
x = i
L = x - 21
M = x + 12
while L != M:
if L > M:
L = L - M
else:
M = M - L
if M == 11:
print(i) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
0d2cb05f03c5148d545df139b233bb65df55f7c4 | 21d1d0cade05ae0ab3dff1598d64f80cef9a411d | /Python/Programmers/Level3/리틀프렌즈사천성.py | 7aabad1adc691ca74efc1da5c8df28984e00bf84 | [] | no_license | louisuss/Algorithms-Code-Upload | 56d1a140a1674a53c13bcec5be96ea6da7c35219 | 6c97c713858b075162d5d86f124c0555f383c5b0 | refs/heads/master | 2023-01-08T21:37:19.702276 | 2020-11-09T04:03:50 | 2020-11-09T04:03:50 | 258,399,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,352 | py | def find_route(m1, n1, m2, n2, c):
up, down, left, right = check_edges(m1, n1, m2, n2, c)
case = (m1-m2)*(n1-n2)
if case == 0:
return (m1 == m2 and up) or (n1 == n2 and left)
elif case > 0:
return (up and right) or (down and left)
else:
return (up and left) or (down and right... | [
"dobi1115@gmail.com"
] | dobi1115@gmail.com |
3997d4051e2df12bf21d542ce8da6bd90be8e2b3 | 1c25798a9ae17ca228383fcd04a1e801415a78e7 | /Chapter 3 Math, Function, Strings and Objects/commonPythonFunction.py | 25618b0b6296236322877889a7f2286192eceb02 | [] | no_license | padamcs36/Introduction_to_Python_By_Daniel | 688c56fff598617e979a5f71e9a48e50844ad7ea | 8b8f00c9d93428c58df9c90e5edd8f75a1662647 | refs/heads/main | 2023-02-22T08:11:01.450054 | 2021-01-28T09:45:01 | 2021-01-28T09:45:01 | 333,700,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | '''
abs(), max(), min(), pow(), round() these are python built in functions
there is no need to import separate module for them
'''
print(abs(-3)) #return the value in positive always
print(max(4,5,-8,0,7))
print(min(0,4,6,3,-4))
print(pow(4,3))
print(round(4.535))
print(round(5.554667, 2)) | [
"noreply@github.com"
] | padamcs36.noreply@github.com |
785a0e838d2086e476faf98a5ab30824e7268acd | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/learningCurve/tenPercent/lrClassifierN.py | 5b2e407f3df56718ee1c0db2c70f5c4f024f8ad3 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | # 9 September 2019
# Kiyoto Aramis Tanemura
# I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
bd9ed5751eee1c211f209fe86a475e63d9c97c2d | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/chapter 8/Ex.02 pass 7-04-2016.py | b2e97a34f99d78980e9dea2a41e658df9a7c41ee | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | ''' ’
(GRADED) Write a function analyze_text that receives a string as input.
Your function should count the number of alphabetic characters (a through z, or A through Z)
in the text and also keep track of how many are the letter 'e' (upper or lowercase).
Your function should return an analysis of the text, somet... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
59d4c01d5cfcf4ed342790fd1274876e93dd8832 | 26b0a513571a68576687b98de61d24be609b7595 | /problem_set_7/NewsStory.py | 350dd691a2f84602fbf6138df49edbbbe8c487c1 | [] | no_license | sirajmuneer123/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | ea487447e119d9f1a23d49b9d6ddbe3a27b6f972 | 757c8087005bebb0fb250526d0caf7b79e3d1973 | refs/heads/master | 2021-01-10T03:21:53.565688 | 2015-11-07T17:57:26 | 2015-11-07T17:57:26 | 45,476,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Enter your code for NewsStory in this box
#Part 1: Data Structure Design
class NewsStory(object):
def __init__(self, guid, title, subject, summary, link):
self.guid = guid
self.title = title
self.subject = subject
self.summary = summary
self.link = link
def g... | [
"sirajmuneer4@gmail.com"
] | sirajmuneer4@gmail.com |
8c7528abac71136cad54131e9a41c7e5a0de6109 | 573d470c9fcb3799e8822e6953e1259b74e0672c | /Course/syntax/example_37.py | 4dec6e18ca446e0776f554d3f82b7f877eb2a471 | [
"Apache-2.0"
] | permissive | zevgenia/Python_shultais | e6f35773e54a72477ea5ee83520dbecfbee7ff48 | e51c31de221c5e7f36ede857a960138009ec8a05 | refs/heads/master | 2020-03-31T21:46:25.061571 | 2018-10-11T13:43:47 | 2018-10-11T13:43:47 | 152,593,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | """
Модуль демонстрации строк документации.
Пример использования смотрите в файле example_38.py
"""
def square(x):
"""
Функция принимает число и возвращает квадрат этого числа.
"""
return x ** 2
| [
"zatonskaya@yandex.ru"
] | zatonskaya@yandex.ru |
e8b3a1c00a0adcbb6c45e0613c18c21c3c1a2f8b | 1bc7456240639a4fac54c411fbcb562cdbcc420c | /20.valid-parenthesis.py | 505f4e6def7acd2d3df87521451cf3e681bda834 | [] | no_license | Manash-git/CP-LeetCode-Solve | bdbb9f13946faee5da24e191a3d593b99da61ed2 | 45052c7613345c76f8a12bac780ffb899062dea9 | refs/heads/master | 2022-11-29T13:16:03.474242 | 2020-08-11T19:06:07 | 2020-08-11T19:06:07 | 275,853,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def isValid(s):
stack=[]
pairs={
'(':')',
'[':']',
'{':'}'
}
for char in s:
if char in pairs:
# storing corresponding closing parenthesis
stack.append(pairs[char])
# print(stack)
else:
if not stack or ... | [
"emailatmanash@gmail.com"
] | emailatmanash@gmail.com |
99712e5994e4f62c535cc123f5dee3ae5e41dc7c | b3a2e683ca82de3758fd62a8dea16bf2be7ebb78 | /sequences/sorting.py | eb8a7a548068d777b5de382221deaa3f25e1f0d2 | [] | no_license | jschnab/data-structures-algos-python | dc60f4e26d4d86470039bab1f4422e86a6da736b | 7b7821d5fc5378c8c7a4be088aadd6c95b154312 | refs/heads/master | 2022-12-27T17:56:34.622558 | 2020-10-24T19:47:37 | 2020-10-24T19:47:37 | 265,121,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import random
def select(seq, start):
min_idx = start
for j in range(start + 1, len(seq)):
if seq[j] < seq[min_idx]:
min_idx = j
return min_idx
def selection_sort(seq):
for i in range(len(seq) - 1):
min_idx = select(seq, i)
tmp = seq[i]
seq[i] = seq[min_id... | [
"jonathan.schnabel31@gmail.com"
] | jonathan.schnabel31@gmail.com |
be19e49ff8ca50f044aa74a299385f507daf7c95 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/785.py | 9c28392c2800225546e52dd464a7bb364a89ea2b | [] | 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 | 378 | py | import sys
import re
firstline = sys.stdin.readline()
(L, D, N) = map(int, firstline.split())
lex = []
for x in range(D):
lex.append(sys.stdin.readline())
lex = ''.join(lex)
for (i, pattern) in enumerate(sys.stdin.readlines()):
pattern = pattern.replace('(','[').replace(')',']')
matches = re.findall(pat... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c886d026554eb02a740ba2ff1fe41d5cda414774 | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao08/exercicio29.py | ebaee4355b5c1a1ef226ff1e088f5a6abccb4523 | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from math import factorial, radians
def sinh(graus: float) -> float:
soma: float = 0.0
x: float = radians(graus)
for n in range(6):
soma += (x ** (2 * n + 1)) / factorial(2 * n + 1)
return soma
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
6b49473abce39f0169294f832573d958ed264e27 | c7a404e6fe1861c90ff8dc9cbc69462ebcbb744c | /app.py | 7c2a34914a0512a254d56cb7547873a693cb3975 | [
"MIT"
] | permissive | bossnode/rufo-mp3-fetcher | b40ced257b7127456b5fbdd27b19cb5ce9f6289e | ed14c44c27761e4d2b2625da17a62c036f38dafd | refs/heads/master | 2020-06-10T04:11:09.257754 | 2019-06-26T20:25:12 | 2019-06-26T20:25:12 | 193,578,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
import os, sys
from soundspider import SoundSpider
from time import sleep
import threading
class Handler:
def onDestroy(self, *args):
try:
download_thread._stop()
except:
pass
Gtk.main_quit()
def onToggleDownload(self, button):
s... | [
"="
] | = |
d08d566fec8e6362ded5eced9937d5449872b30a | 613d0766a36a0354ed8b7be4c8a552068afe5e71 | /08 Linked List/15 Reverse Linked List/02.py | 45530e293097a676b12012d31b88a5d9f2c7ec75 | [] | no_license | HYLee1008/Python | e9fb2109ed29d11faa37b0a823e603134d85dc28 | 04900b6de1d56c11fbb98d518c9b4cdd37772490 | refs/heads/master | 2022-12-12T12:07:49.198551 | 2020-09-05T12:41:55 | 2020-09-05T12:41:55 | 280,879,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | ### Reverse linked list by iterative
### Iterative consumes 70% memory of the recursive method. And slightly faster.
from datastructure import *
def reverse_list(head):
node, prev = head, None
while node:
next, node.next = node.next, prev
node, prev = next, node
return prev
input = List... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
d32bdac865b53dfa2b0b6159cd89f731b1be54c7 | 1565d4f012622c98dd519d5f6feedf7d5a67a70b | /etc/openshift_clean.py | a05d4c5f52a0c98d4598cac6d152eb7475f82f94 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | doaa-altarawy/quokka | 6862da8e3f0f3583350ca4faf2bc7133a7aa9d6b | 3730008100266569d1fab47c7dfa765650e2a346 | refs/heads/development | 2021-01-16T17:46:22.983206 | 2015-12-21T22:15:15 | 2015-12-21T22:15:15 | 48,460,112 | 1 | 0 | null | 2015-12-23T00:14:31 | 2015-12-23T00:14:31 | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/python
"""
THIS SCRIPT CLEANS ALL DATA IN YOUR QUOKKA DB
RUN ONLY IN OPENSHIFT DEMO DEPLOY
OR AT YOUR OWN RISK!!!!
"""
from quokka import create_app
from quokka.core.models.content import Content
from quokka.core.models.config import Config
from quokka.core.models.channel import Channel
from quokka.modules.a... | [
"rochacbruno@gmail.com"
] | rochacbruno@gmail.com |
bc38759d351f6ebdfac3b69fb0061f1b382afdaf | 37a0cd9ed68558c7302f6effc44d5e970416441d | /ivona_speak/__init__.py | d813a2f48657a2b5555092851ff556be9f9e1007 | [
"Python-2.0",
"MIT"
] | permissive | MagnetonBora/ivona-speak | 00eced9ee2231069c9b0fb8e818ba6191209e6fa | d0ced823d28c0026bb685d5a321ed11fdbab9ad8 | refs/heads/master | 2021-01-20T14:36:15.293070 | 2017-01-21T12:39:10 | 2017-01-21T12:39:10 | 82,699,158 | 0 | 0 | null | 2017-02-21T16:01:37 | 2017-02-21T16:01:37 | null | UTF-8 | Python | false | false | 105 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
__version__ = '0.2.0'
| [
"pawel.ad@gmail.com"
] | pawel.ad@gmail.com |
8aeea72b7d8a05fcd367ad2245993782dde02fba | 3330944ef9af811ed59e3f40721e6b7da754e1e7 | /setup.py | 1d70fdd49af304dc6bdae85abbb3f2671b9bf919 | [] | no_license | loum/baip-loader | 8ee6ad184f4cb557437ed92590b591eaa0032956 | 68a4b1556b8d745e51a1502092cd1d54bfd96c76 | refs/heads/master | 2021-01-25T07:39:34.190887 | 2015-05-05T00:15:21 | 2015-05-05T00:15:21 | 30,627,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | """:mod:docutils` setup.py file to generate Python compatible sources in
build/ directory
"""
import os
import glob
import fnmatch
import shutil
from setuptools import setup
VERSION = '0.0.0'
def opj(*args):
path = os.path.join(*args)
return os.path.normpath(path)
def find_data_files(srcdir, *wildcards, **... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
02d2bcf9f1aaaee3aff4b006298d5417e5d9fecb | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/grant_management/migrations/0030_renames_media_to_medium.py | f3c44d48ea456f3b94289c02f7b305bf53d2dd0b | [
"CC-BY-NC-SA-4.0",
"CC-BY-SA-4.0",
"CC-BY-4.0",
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.5 on 2020-05-12 10:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0118_calls_need_to_be_part_of_a_funding_instrument'),
('grant_management', '0029_signed_by_multiple_people'),
]
operations =... | [
"carles@pina.cat"
] | carles@pina.cat |
7bcce88caf756bb58b5c86d24a41dfc8e635fa25 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/omninote/testcase/firstcases/testcase10_018.py | bb43949dc1a984d35d229ba18c38794740f1bd50 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,301 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
d8a67dd3fc7ad483dcc1c079ddf71657300fe471 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/account/tests/test_tax.py | 62e63e8bb07a770a7428d5bb811ee52b406f5201 | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,285 | py | from gerp.addons.account.tests.account_test_users import AccountTestUsers
import time
class TestTax(AccountTestUsers):
def setUp(self):
super(TestTax, self).setUp()
self.fixed_tax = self.tax_model.create({
'name': "Fixed tax",
'amount_type': 'fixed',
'amount':... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
1ff24ffb45f8546c93fbec4517976b96ca01b0bc | b8ed71f3d1a36c119d846e97f1aa7d8ba6774f52 | /680_Valid_Palindrome_II.py | 5dd32bf280843101a247fdd621ab833fcc2b7d1b | [] | no_license | imjaya/Leetcode_solved | 0831c4114dd919864452430c4e46d3f69b4bd0cd | 374eb0f23ae14d9638d20bbfe622209f71397ae0 | refs/heads/master | 2023-05-24T17:57:56.633611 | 2023-05-16T06:31:42 | 2023-05-16T06:31:42 | 284,203,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | def helper(s,l,r):
while l<r:
if(s[l]!=s[r]):
return False
l+=1
r-=1
return True
class Solution:
def validPalindrome(self, s: str) -> bool:
left=0
right=len(s)-1
while(left<right):
if(s[left]!=s[right... | [
"smjayasurya1997@gmail.com"
] | smjayasurya1997@gmail.com |
c335ae67050596c16c4e388d411d18e7b88ca797 | 863a7b075963c2882d9fe5df66af16c6e52576a9 | /deepiu/textsim/evaluate/evaluate-sim.py | 2079a1cc158d696d4cf173579d1afde74c720102 | [] | no_license | buptpriswang/hasky | 3c3510d43821bbdfdfa216a337cde6e0747b3423 | 93afdc32956643fe191fcf1a5aa635570e219ab0 | refs/heads/master | 2021-06-30T19:45:03.329238 | 2017-09-22T15:41:58 | 2017-09-22T15:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file evaluate-sim-score.py
# \author chenghuige
# \date 2016-09-25 00:46:53.890615
# \Description
# =====================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
8b7320fbb782d353ece0bf32dd2977b744b8acd8 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_2side/bce_s001_tv_s0p1_L8/step11_L2345678.py | c03824dab2e889ccb93f4ca311d98915db768bee | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
930d498a17db90721c75d65299f8f10b0549e799 | 4a88daea1741ed6b5b5088b8d1f2787093abdf80 | /tests/test_gen_couroutine.py | 16e6479cc1bbc400493e0975a2f4a4ccec8b11d3 | [
"MIT"
] | permissive | Nigelzhf/torweb | 8e0bfeb6793ae9e50230e6b7b6284ec5e6da0d57 | 6859a878c126addb74410e872307ac9399f20eb7 | refs/heads/master | 2021-01-12T14:16:10.474945 | 2016-10-03T20:47:25 | 2016-10-03T20:47:25 | 69,928,142 | 0 | 1 | null | 2016-10-04T02:25:34 | 2016-10-04T02:25:33 | null | UTF-8 | Python | false | false | 414 | py | #encoding:utf-8
import sys, os
sys.path.append(os.path.dirname(sys.path[0]))
from tornado.httpclient import AsyncHTTPClient
from tornado import gen
import tornado.ioloop
@gen.coroutine
def fetch_coroutine(url):
http_client = AsyncHTTPClient()
response = yield http_client.fetch(url)
print('test')
pri... | [
"jmpews@gmail.com"
] | jmpews@gmail.com |
8edd25a05553c2dfeaaf20dd6357cab4c4a87d07 | 4b5173af602439cdca0db985dcbdd25aef9b7a6b | /bin/topology-json-connector.py | fb1c33926b316f0d4ed9f1c45d8fbaeac5353af5 | [] | no_license | kevangel79/argo-egi-connectors | a3d4bf502708cdce08acf01b5c58812042e4d201 | dff42c3d4e5e7ea31ca839dd93f975ea27f4ffda | refs/heads/master | 2022-02-23T15:01:13.081358 | 2022-02-15T14:54:05 | 2022-02-15T14:54:05 | 250,012,827 | 0 | 0 | null | 2020-03-25T15:14:01 | 2020-03-25T15:14:00 | null | UTF-8 | Python | false | false | 7,746 | py | #!/usr/bin/python3
import argparse
import os
import sys
import json
import uvloop
import asyncio
from argo_egi_connectors.io.http import SessionWithRetry
from argo_egi_connectors.exceptions import ConnectorHttpError, ConnectorParseError
from argo_egi_connectors.io.webapi import WebAPI
from argo_egi_connectors.io.avr... | [
"daniel.vrcic@gmail.com"
] | daniel.vrcic@gmail.com |
9db8984e6ebf73d18d04cec93f522f942fae5520 | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_Mchi-30_Mphi-100_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_40000_0_cff.py | 05fe9e736ba8add5e80e5b30edd2c2a3536e5193 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,387 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:133', '1:356', '1:341', '1:357', '1:34613', '1:36531', '1:3685... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
8dd0e8db5c106dc0a4a867b92314ee3975bfac32 | ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7 | /syntactic_mutations/cifar/mutants/mutant85.py | 36cc2dc7a92ebacc6a2c035d43c75d2a8980ffb9 | [] | no_license | dlfaults/mutation_operators_evaluation | ea7f33459ba7bcf7d70092d9db8b40f9b338d516 | 7d1ff30e901931a46bf8908e9bb05cae3daa5f0f | refs/heads/master | 2020-12-27T15:45:07.262012 | 2020-02-03T12:22:01 | 2020-02-03T12:22:01 | 237,955,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | import keras
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D
from keras.datasets import cifar10
from keras.layers import Dense, Activation, Flatten, Dropout, BatchNormalization
from keras.layers import Conv2D, MaxPooling2D
def train_model(x_train, y_train, x_test, y_test, model_name):... | [
"gunel71@gmail.com"
] | gunel71@gmail.com |
a8a7d2bf186db9e87192d299ecfbb8586f09ef41 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/pax.py | 6ddd75e25638bed8cf1f184a2bb9f8a5d8e723e8 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('DaltJMA.py', 1), ('MereHHB.py', 1), ('BrewDTO.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
b707e83ed214fca7294e5bb95202740e88d02f5a | 8065409913cc84af9cab97703e9928700a7d6ee9 | /physix/bodyeditor/tools/transform/__init__.py | 062ea8e6e6be0c24ddefd2cb465bb620a8173151 | [] | no_license | 2xR/legacy | 678b6d77a11fe9705e6156589e67504e710d42de | 56099d07bdbc6feb7ebc848a37d5940cbd5f5552 | refs/heads/master | 2021-01-16T22:13:34.380662 | 2016-07-07T17:47:14 | 2016-07-07T17:47:14 | 62,826,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from physix.bodyeditor.tools.transform.tool import TransformTool
| [
"rui.jorge.rei@googlemail.com"
] | rui.jorge.rei@googlemail.com |
00ba0a6e6947133adc26d002b22be559066ae5c3 | daf9b136e9f55f3f24e0e6b4ca93ae8bcd0c4b94 | /3puntos1.py | 03866df81eb300ff22fa2e5932df8cc4a24d96e0 | [] | no_license | jorszs/computacion_grafica | 432b60a87eceff2e50b86c8a27568621b9e27c1b | 4b60639beab3410b1349af749efd09f32d657412 | refs/heads/master | 2021-04-12T11:29:40.929664 | 2018-05-14T07:50:47 | 2018-05-14T07:50:47 | 126,243,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py |
def mostrar():
print "esta es la prueba"
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3f867e03ffc111fa3e897382bcaacef5230d16eb | 5442e70e9a68b0a76601082e9aa307674fd4fb95 | /evaluation/draw.py | a8f5d430416dfc0ae686c2c9b91b4ba0ed113967 | [] | no_license | sycophant-stone/mmdetection_2.0 | 1871e85311fee3b81d3b1415787c837aadf6b543 | 6caabdcf81e7b003e612d053c94bd6c993dd5c3e | refs/heads/master | 2020-09-09T10:49:42.961409 | 2019-12-18T14:01:57 | 2019-12-18T14:01:57 | 221,426,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | import cv2
def drawline(img, pt1, pt2, color, thickness=1, style='dotted', gap=10):
dist = ((pt1[0] - pt2[0]) ** 2 + (pt1[1] - pt2[1]) ** 2) ** .5
pts= []
for i in np.arange(0, dist, gap):
r = i / dist
x = int((pt1[0] * (1 - r) + pt2[0] * r) + .5)
y = int((pt1[1] * (1 - r) +... | [
"kawayi_rendroid@163.com"
] | kawayi_rendroid@163.com |
b7883cd4b78b7653e74b59d2049a25ba4db5e551 | 5355d2e8576ed3afdc0b13f330ab38eda00a84e0 | /odin/ml/decompositions.py | a0d4c9ebb37857726bd7f7c0022f68966e95cdc4 | [
"MIT"
] | permissive | johndpope/odin-ai | 63ee1d6e5c8dc11c72d04c7cc7350b3d4e3208ec | b6eb0c7b89c50620fe88f41f421330a50965c88e | refs/heads/master | 2020-06-24T21:30:24.388734 | 2019-07-13T12:49:55 | 2019-07-13T12:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,660 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import math
from numbers import Number
from six import string_types
import numpy as np
from scipy import linalg
from multiprocessing import Value, Array
from sklearn.decomposition import IncrementalPCA, PCA
from sklearn.utils im... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
d534ae28d3aa0734296825c043a748eb4545a4d6 | 0f0f8b3b027f412930ca1890b0666538358a2807 | /dotop/osv/__init__.py | 8de54bfa5a534d8654b634c43bd9062f8c573ddc | [] | no_license | konsoar/dotop_pos_v11 | 741bd5ca944dfd52eb886cab6f4b17b6d646e131 | 576c860917edd25661a72726d0729c769977f39a | refs/heads/master | 2021-09-06T13:25:34.783729 | 2018-02-07T02:11:12 | 2018-02-07T02:11:12 | 111,168,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # -*- coding: utf-8 -*-
# Part of dotop. See LICENSE file for full copyright and licensing details.
import osv
| [
"Administrator@20nuo003-PC"
] | Administrator@20nuo003-PC |
b8db0ef08fd5c0b20c1bdbe3988364316d66243b | 35044ecc79fad5d1ad35a4f713ff22849c17212c | /hw1/hw1_1/part2/main_3.py | d54310ff19a1bb2f192f12e9c432975f5330478e | [] | no_license | pohanchi/MLDS2018SPRING | 8235f9bfe38eb861be24b9cdb2c0a7d30afdea21 | 694e5f07911ba0f780fb01bb47701dac90eeb7d2 | refs/heads/master | 2020-05-09T09:55:38.257016 | 2019-04-12T16:23:17 | 2019-04-12T16:23:17 | 166,774,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | from tensorflow.examples.tutorials.mnist import input_data
import matplotlib.pyplot as plt
import numpy as np
import pickle
import random
from model_2 import *
def unpickle(file):
with open(file, 'rb') as fo:
dict_ = pickle.load(fo, encoding='bytes')
return dict_
def calculate():
vars = t... | [
"aapp1420@gmail.com"
] | aapp1420@gmail.com |
ecad6018c8e035a3d71ffae5d67fa4943aa1843e | decefb13f8a603c1f5cc7eb00634b4649915204f | /packages/node-mobile/deps/uv/uv.gyp | a9a3635570161b275e12e9ebd1d75699f599bba9 | [
"Zlib",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-sc... | permissive | open-pwa/open-pwa | f092b377dc6cb04123a16ef96811ad09a9956c26 | 4c88c8520b4f6e7af8701393fd2cedbe1b209e8f | refs/heads/master | 2022-05-28T22:05:19.514921 | 2022-05-20T07:27:10 | 2022-05-20T07:27:10 | 247,925,596 | 24 | 1 | Apache-2.0 | 2021-08-10T07:38:42 | 2020-03-17T09:13:00 | C++ | UTF-8 | Python | false | false | 10,599 | gyp | {
'variables': {
'conditions': [
['OS=="win"', {
'shared_unix_defines': [ ],
}, 'OS=="android" and target_arch in ("arm","ia32")', {
# Android on API < 24 will miss function definitions for
#_FILE_OFFSET_BITS=64
'shared_unix_defines': [
'_LARGEFILE_SOURCE',
... | [
"frank@lemanschik.com"
] | frank@lemanschik.com |
9f5d7e03d338bcee649e0798c30ea3227c1c60cc | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/bridge/circle.py | cd3638d219be793d909728245bf9ccdec57095a8 | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # pylint: disable=too-few-public-methods
"A Circle Abstraction"
from interface_shape import IShape
class Circle(IShape):
"The Circle is a Refined Abstraction"
def __init__(self, implementer):
self.implementer = implementer()
def draw(self):
self.implementer.draw_implementatio... | [
"noreply@github.com"
] | gohils.noreply@github.com |
7098d0bd349101c9033469adeb130241fc910b6c | f88f900c0384f6da82eeb749371ad44115527700 | /course-book/04-basic-comp/0410-img-copy2.py | 2688bf316082da1a8c629fe6e1a12eaf1bf4b44d | [] | no_license | aaron-kr/learning-opencv | eff382e8f0c822400f765451d57b192a63cd1b74 | 158239f0140569aec519fc1fbf255c54ef2567d2 | refs/heads/main | 2023-08-21T11:02:49.775425 | 2021-10-27T00:04:01 | 2021-10-27T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # 0410.py
import cv2
import numpy as np
src = cv2.imread('../../img/spirit-week.jpg', cv2.IMREAD_GRAYSCALE)
shape = src.shape[0], src.shape[1], 3
dst = np.zeros(shape, dtype = np.uint8)
# dst[:,:,0] = src # B - Blue channel
# dst[:,:,1] = src # G - Green channel
dst[:,:,2] = src # R - Red channel
dst[100:400, 200:... | [
"jekkilekki@gmail.com"
] | jekkilekki@gmail.com |
76f963318fc279d6b0842011b2404e059f5081d7 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /simlm/misc/compute_metrics_marco.py | 02ac181cd1a10310b7a44ccad6784c96a3b8f2b3 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 1,162 | py | import json
import sys
import argparse
sys.path.insert(0, './src')
from logger_config import logger
from metrics import compute_mrr, trec_eval
from utils import save_json_to_file
from data_utils import load_qrels, load_msmarco_predictions
parser = argparse.ArgumentParser(description='compute metrics for ms-marco pred... | [
"wangliangpeking@gmail.com"
] | wangliangpeking@gmail.com |
e8034ae0e9e03f800a93d0b36f2691dfbdee9972 | f34e34e4a1fc4b606781633370ff5b9493446b89 | /HackerRank/Problems/HR python staircase.py | fffe84b83deb2d0878b9309965bbbe9c1da7a0fa | [] | no_license | YeasirArafatRatul/problem_solving | b44deddb63dc9ff5ec285e03c13720523473906d | 98267865a90483489f792bdb448319dbf0cc9a81 | refs/heads/master | 2023-02-13T17:59:35.863750 | 2021-01-05T04:01:13 | 2021-01-05T04:01:13 | 219,266,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | def staircase(n):
for i in range(1,n+1):
#print the #, i times. so it will increase with each iteration
print(('#'*i).rjust(n,' '))
n = int(input())
staircase(n)
# str.rjust(width[, fillchar])
#Parameters
# width − This is the string length in total after padding.
# fillchar ... | [
"yeasirarafat.ratul@gmail.com"
] | yeasirarafat.ratul@gmail.com |
7c60be6add65fa3c6fee396f4fe5cbaf2ea6b95d | 94f8d393536a38136420b299555a47989cb95e06 | /shengsai/shengsailianxi/shengsailianxi/run.py | 772b13443311bf140c5a90309ca8d32b3d97648c | [] | no_license | nolan0536/weizhiBigDataPython | 9164ddc50cd0b850ec7536270d690dd0848b9f06 | ef4ab9d749159166fcfe48883d680ac058b12425 | refs/heads/main | 2023-04-21T21:15:11.235258 | 2021-05-08T01:28:51 | 2021-05-08T01:28:51 | 361,971,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl xiaolianxi".split()) | [
"1552696515@qq.com"
] | 1552696515@qq.com |
dc5dbbd6e1de02ad6f948712a49636c56ba0f5a5 | a5af610fa01a2a77a99f094ceb6fa882df783139 | /core/deps/tornado/web.py | af5ea5127fe268df3a90ea1e7bd7cf616e22e112 | [
"MIT"
] | permissive | imclab/tilde | 87ee93449a18249a58712527b5164c506b2c7df9 | a9f9fec7be08d5a1647973c6b2b9a9816b347041 | refs/heads/master | 2021-01-24T00:53:21.601833 | 2014-09-02T22:55:27 | 2014-09-02T22:55:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,332 | py | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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... | [
"eb@tilde.pro"
] | eb@tilde.pro |
47a70babb3db84356361acf60b5e6d54a50c94ce | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/Watcher.py | 19ea6b0adbe54c634a51182074af580ff6b54745 | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import nibbler.trading.collectors.futures_collector as futures
class MyHandler(FileSystemEventHandler):
def on_modified(self, event):
event_list = event.src_path.split('\\')
filename = event_list... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
fde45c72b38be988de28cfb02d09ce268e6a0ac8 | c29ee57cdba30d0099c55d7b138a361a4964af4b | /apps/blogs/urls.py | a6a724f8cca29d67b19a8b9d2ed788dfe37cdafc | [] | no_license | bakker4444/django_app | ea26be5fa7789a083b199d5094767e16ec0fa63e | 6b1cd0cfc55be11f31cdc5970d4787f15828ac94 | refs/heads/master | 2020-03-10T10:06:17.177952 | 2018-04-13T00:30:54 | 2018-04-13T00:30:54 | 129,322,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^new/', views.new),
url(r'^create/', views.create),
url(r'^(?P<number>[0-9]+)/$', views.show),
url(r'^(?P<number>[0-9]+)/edit/', views.edit),
url(r'^(?P<number>[0-9]+)/del... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
cdf12814d08e0941202a5da5abdf6a067a3b34f7 | 36126f91a2d5903483b84ba2d8be77e160803058 | /examples/python/empirical_transition_matrix.py | 61c92ac81e1bbe433c6a5a7ec9d083e8e9e8aaca | [
"Apache-2.0"
] | permissive | open-risk/transitionMatrix | 9962bb2656eb637ba56afc3adecf42bbe68f9593 | d05e75cbc251f01842dd8c5ce225894b988f4d99 | refs/heads/master | 2023-03-05T08:01:20.816425 | 2023-02-22T20:46:38 | 2023-02-22T20:46:38 | 110,365,127 | 73 | 29 | Apache-2.0 | 2022-12-08T11:37:12 | 2017-11-11T17:25:08 | Python | UTF-8 | Python | false | false | 5,000 | py | # encoding: utf-8
# (c) 2017-2022 Open Risk, all rights reserved
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
0cef33f9b804fb8d06480356283a48afa11a4d9c | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Карточные расклады.py | 1853c600b2cf5ef636e2296518a51051750b2fef | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import itertools
nominals = ['2','3','4','5','6','7','8','9','10','валет','дама','король','туз']
suits = ['пик','треф','бубен','червей']
allcomb = list(itertools.product(nominals,suits))
comb = []
for elem in allcomb:
if (elem not in comb) and (list(elem).reverse() not in comb):
comb.append(' '.joi... | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
2c735c06acb15668edfe36a3cf848f1a07cb956b | a418afb0ec01cb8f41d9fcaf167f59b0f05aea90 | /Hackerrank/Python Problems/itertools.combinations.py | 221a322634997b5c9b8b4e304a3db940458757d5 | [] | no_license | manjurulhoque/problem-solving | 95d05960e83edde5721b73348270b6123fd3bf12 | e5547a8f5593141ac87f9797ddb25b2467c44e57 | refs/heads/master | 2022-08-08T06:44:21.839224 | 2022-07-25T09:32:26 | 2022-07-25T09:32:26 | 209,125,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import itertools
x, y = input().split()
for i in range(1, int(y) + 1):
out = list(itertools.combinations(sorted(x), i))
for n in out:
print(*n, sep='') | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
9e27115696afc8fea8212d51a643e9d1c2702dc1 | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/flyweight/client.py | b7714e4c7fe83aaeb7505226e720f0509797c36d | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | "The Flyweight Use Case Example"
from table import Table
from flyweight_factory import FlyweightFactory
TABLE = Table(3, 3)
TABLE.rows[0].columns[0].data = "abra"
TABLE.rows[0].columns[1].data = "112233"
TABLE.rows[0].columns[2].data = "cadabra"
TABLE.rows[1].columns[0].data = "racadab"
TABLE.rows[1].colu... | [
"noreply@github.com"
] | gohils.noreply@github.com |
3c959eed8a79ca30fbcb647176095c291b99e320 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /linux/FinalKeyPress/smallplane.py | c63ffce47aa72b6d465ad959c7dcf92fe5873091 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import tkinter
import mover
import config
class SmallPlane(mover.BaseMover):
'''
移动的敌机 - 大飞机
'''
def __init__(self, root, canvas, position, x, y, tags):
super().__init__(root, canvas, position, x, y, tags,
config.image_smallplane_width, config.image_smal... | [
"764375224@qq.com"
] | 764375224@qq.com |
974ce89e9bb593af97847898b2977b214a4b7980 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/autograph/pyct/testing/decorators 2.py | 9e47729bef44976b842be804899c28aafffda65b | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bc496cdd81c37eb5f9cddd2250b6ebe37eae2739e5ee1b3228a97b6571bfaac1
size 1298
| [
"business030301@gmail.com"
] | business030301@gmail.com |
01eaa69624efccb456e86f8cfdcca70c39f9f0e4 | d81bbc8ef3e7916b0dd89bfe9fe32ea4f37aa0c6 | /jobs/ts3_ppump/v0/ts3_ppump.schema | 5d9771a3ee22f16fb2d27ebbc9e593d48ea0a27d | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lsst-camera-dh/ts3-analysis | 9fb16b2245f390b5518e67c18f0a549e12bc4018 | bf3400f286876c5ed4368e2dafe730a8598d0bf7 | refs/heads/master | 2016-09-05T21:14:10.599337 | 2015-09-10T22:27:47 | 2015-09-10T22:27:47 | 30,820,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | schema | # -*- python -*-
{
'schema_name' : 'ts3_ppump',
'schema_version' : 0,
}
| [
"jchiang@slac.stanford.edu"
] | jchiang@slac.stanford.edu |
f74f457ca2d73374d4fecada0faf53f0825cedef | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/ctrlrp.py | 7652ab3889aff4c21b3f159b874656994a53d27a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,396 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
9f4459a0e78eb6578c2a9bc931224ac195ef575f | edf79f6964b15ea61faa9ecd70871d1ce776eda2 | /Jupyter/first-python-notebook/lib/python3.6/site-packages/pandas/tseries/util.py | 5934f5843736cc9afbff1a5dcc1c59f9eb8f2180 | [
"MIT"
] | permissive | Roychenlei/LearnPython | 326bf7d59ebec904623ea7102a1e07f1d7cb112b | eaf44787b86fe6da69dc9ba4e4c907884db57fda | refs/heads/master | 2022-10-09T07:23:39.410429 | 2018-04-28T02:35:07 | 2018-04-28T02:35:07 | 115,184,834 | 0 | 1 | MIT | 2022-10-01T15:18:43 | 2017-12-23T09:19:47 | Python | UTF-8 | Python | false | false | 3,286 | py | import warnings
from pandas.compat import lrange
import numpy as np
from pandas.core.dtypes.common import _ensure_platform_int
from pandas.core.frame import DataFrame
import pandas.core.algorithms as algorithms
def pivot_annual(series, freq=None):
"""
Deprecated. Use ``pivot_table`` instead.
Group a ser... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
fcf5c448f6224169e2c92e0176375a92af21de67 | 59359e4821554f559c9ffc5bf1a7f52fff0c6051 | /descarteslabs/core/common/geo/geocontext.py | 965f6dfb85170924e722895c3fe498ef27177a2e | [
"Apache-2.0"
] | permissive | descarteslabs/descarteslabs-python | 706acfc594721a1087872744c9cb72fe2b3d2e5b | a8a3859b8ced6d4478b93ff205caad06d508501d | refs/heads/master | 2023-08-23T12:01:36.802085 | 2023-08-21T14:57:22 | 2023-08-21T15:20:01 | 84,609,153 | 176 | 49 | NOASSERTION | 2023-05-02T15:54:37 | 2017-03-10T23:27:12 | Python | UTF-8 | Python | false | false | 53,135 | py | # Copyright 2018-2023 Descartes Labs.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"support@descarteslabs.com"
] | support@descarteslabs.com |
bce7d775325fcad89567eb94275ce095229d738a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02832/s307251036.py | 36c65bb99ff02d537361c6ecedc39e7b50f138b1 | [] | 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 | 198 | py | n = int(input())
a = list(map(int,input().split()))
if 1 not in a:
print(-1)
exit()
x = 1
cnt = 0
for i in range(n):
if a[i] == x:
x += 1
else:
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a4711d2854fc4a7a832a3fb5083a348ad0af491 | 84d581219b8065cf8936070a7f1e1766000378df | /vdj/__init__.py | f80e58d17b35d19c93aa96a3ab5bb85e8774f385 | [
"MIT",
"CC-BY-4.0"
] | permissive | RPGroup-PBoC/vdj_recombination | 939e72539a134a61cc5aa8386b3a31f6de954d26 | a59214f878968e5958915b56983b0f52a0a0483e | refs/heads/publication | 2023-07-18T22:52:07.149767 | 2020-05-19T18:12:11 | 2020-05-19T18:12:11 | 187,516,995 | 0 | 0 | MIT | 2023-07-06T21:42:29 | 2019-05-19T19:05:04 | HTML | UTF-8 | Python | false | false | 169 | py | """Top level package for VDJ utilities"""
from . import viz
from . import bayes
from . import io
__author__ = "Soichi Hirokawa and Griffin Chure"
__version__ = "0.1.9" | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
e906d748fcf7530f9052fc37543b97a85ee771eb | 183fa1746e80102391926064c1628bf63690026c | /Order/migrations/0001_initial.py | ae12317b8af5a2d9fa16a2af4e2549debe7875c4 | [] | no_license | redbull2003/StoreMarketPlace | 7454fdf06a27f754f33b41532ef2d717f313eb1a | b9e915da32f23ca087bd29e5d10fa9b9299f81d2 | refs/heads/master | 2023-06-06T03:53:22.766012 | 2021-06-24T16:30:37 | 2021-06-24T16:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Generated by Django 3.1.1 on 2021-06-24 06:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Prod... | [
"shayan.aimoradii@gmail.com"
] | shayan.aimoradii@gmail.com |
eefa2607d573abc7a8823d3be4870930c3cdb7ca | 09fa0b270697652f8322cda88ff867ecfc460117 | /docs/conf.py | 4d8d1790aa39c933dc8b9cac5d7b6a32b0c470f3 | [
"MIT"
] | permissive | metapix/django-paypal | c9a4711bed5bef7b0529d5a73210f738afe7f766 | 0a94b253e376bde5ce2bd2a8d876e8c3eb56bb49 | refs/heads/master | 2020-12-26T15:59:03.653470 | 2015-06-10T15:48:24 | 2015-06-10T16:09:25 | 37,200,887 | 0 | 0 | null | 2015-06-10T14:06:49 | 2015-06-10T14:06:49 | null | UTF-8 | Python | false | false | 7,619 | py | # -*- coding: utf-8 -*-
#
# documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All config... | [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
bb8ce98a689bc611fa0e0b27ab24b5b275fbf940 | 3d29d2dbb45ff0f2a66395e59acfee6c5762b2fc | /spider/58_tc/sell_car/jiangsu/58_sell_car_nanjing.py | d0e24e3f97849672dbcc551531bef647a5bc3731 | [] | no_license | southwolf/carinfo_spider | c1d3ffa2fda545028c72444624ddf199f2fb07df | 55065b43e0e08188675506a2d1d7bb2d9db07c7d | refs/heads/master | 2021-01-21T01:26:59.638174 | 2015-04-20T00:29:23 | 2015-04-20T00:29:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,801 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import urllib
import urllib2
import re
import MySQLdb
import threading
from pyvirtualdisplay import Display
from selenium import webdriver
import socket
#socket.setdefaulttimeout(30)
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from bs4 import BeautifulSoup
def ... | [
"root@tc5u.cn"
] | root@tc5u.cn |
e6cb4be5d1e990d0282b7cc658324aaed21af371 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/run_20210414104418.py | 19fc6bf93bf6fcf7f02737538f9ee64f112f19a1 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,308 | py | """
Project 4 - CNNs
CS1430 - Computer Vision
Brown University
"""
import os
import sys
import argparse
import re
from datetime import datetime
import tensorflow as tf
from tensorflow import keras
import hyperparameters as hp
from models import SimpleModel, ComplexModel
from preprocess import Datasets
from skimage.tra... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
a86ce8417607db70a904b3ff9754c6950ed06c89 | faabe34af6297530617395bcc6811350765da847 | /platforms/leetcode/NthDigit.py | 6e67cbfe78c483aff5ee596ef9b57abc3fd7bb68 | [] | no_license | pqnguyen/CompetitiveProgramming | 44a542aea299bd553dd022a9e737e087285b8b6d | 27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78 | refs/heads/master | 2021-07-21T12:15:47.366599 | 2021-06-27T14:58:48 | 2021-06-27T14:58:48 | 132,837,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Solution:
def findNthDigit(self, n: int) -> int:
length, start, count = 1, 1, 9
while n > length * count:
n -= length * count
length += 1
count *= 10
start *= 10
start += (n - 1) // length
return int(str(start)[(n - 1) % length])... | [
"pqnguyen1996@gmail.com"
] | pqnguyen1996@gmail.com |
00a759bd71d11f942a7195e2ce3a0f9237ad4f89 | eb91f8764a466c20d3ed53f0df43e2e91fc095ea | /HFhtml/migrations/0007_auto_20210106_2045.py | efdaed8cb955a4052bb217f5edcee04b059ca0bf | [] | no_license | blackw00d/HappyFamily | 61733c46a2f2c26919a532e5c07ea143fabd14a9 | 6b0d99a498c7a92170de0bbdb18907d6d951da31 | refs/heads/master | 2023-03-08T21:20:41.481293 | 2021-02-27T04:13:39 | 2021-02-27T04:13:39 | 291,481,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 3.0.8 on 2021-01-06 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HFhtml', '0006_auto_20210106_1951'),
]
operations = [
migrations.AlterField(
model_name='orders',
name='pay',
... | [
"email"
] | email |
5497982226fc1fd6f795a09becbbfa23349d3f38 | 7000895fad6f4c23084122ef27b3292d5e57df9f | /tests/core/test_ChainManager.py | b9d94e4c26c5c584e44b7f9d86c8c5184b4ec985 | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258,142 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from unittest import TestCase
from os import urandom
from mock import Mock, patch, PropertyMock, MagicMock
from pyxrdlib.pyxrdlib import hstr2bin
from pyqryptonight.py... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.com |
175362d65ed956693d742ed37d75ce17e75b88dc | 01361e80df13a173264c369f63dc42f5fb1eb9b5 | /carts/migrations/0002_initial.py | 642b8aa58314767eaafc395fd7cdd75fb278ce99 | [] | no_license | Angshumaan/greatkart-django | cb63cf1cc1c094f504adb7ff8fea347c43a6fa81 | 3ff1ac8fc7e7f23bdc3185167e2d8b678256a82c | refs/heads/main | 2023-06-05T10:05:21.408371 | 2021-06-12T06:53:15 | 2021-06-12T06:53:15 | 363,017,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.2 on 2021-05-22 03:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('store', '0001_initial'),
('carts', '0001_initial'),
]
operations = [
migrations.A... | [
"="
] | = |
ebbd48730fbd9939ec1d72fb2ef3df5c198e09f2 | 1eb72c0482efd06e1b06a7f3af8f6a5250b82584 | /code/lang/complex_if.py | 707a5937eca1f84dfba9e07c8e611c1bd8536da4 | [] | no_license | Bubujka/python-learning | dcb8e5f8fc40600b431a2ec1f4a16814fbbfa5c9 | 79bbe16bec01d429c34f9c36f1d15b4f77c811bf | refs/heads/master | 2021-09-07T15:31:54.822139 | 2018-02-25T03:08:06 | 2018-02-25T03:08:06 | 109,488,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #!/usr/bin/env python3
"""
Комплексные условия в if (and, or)
"""
if True and True and False:
print("NOPE")
if not True or False:
print("NOPE")
if None or None or 1:
print("yeeep")
| [
"zendzirou@gmail.com"
] | zendzirou@gmail.com |
edfde233b9fd6e03f085f971ebe3dd9459d23689 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py | d27e5d49e658fa08f7750ab5a048c24f6badf3ae | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 66,522 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
f6f83d8fcc21b13c0e3b8d60e21349fc3e1accdd | eb40dce4039d528b9cd06dbeda75da09d09d7fc5 | /need_install/Django-1.8.17/tests/admin_changelist/models.py | c01bf320621803e3f82fa4938596e56fe61caefe | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MulticsYin/MulticsSH | 39b62189446787c7f0f037b1640c9c780bd1dddd | 5837a0bff0e7da0e8535e4e0b31ef6baf24274b4 | refs/heads/master | 2021-08-28T07:53:51.759679 | 2017-12-11T15:31:03 | 2017-12-11T15:31:03 | 82,428,902 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
class Event(models.Model):
# Oracle can have problems with a column named "date"
date = models.DateField(db_column="event_date")
class Parent(models.Model):
name = models.CharField(max_length=128)
class Child(mo... | [
"multics_luo@163.com"
] | multics_luo@163.com |
e8364f58a88fcdb2c10225d9f1521f10130693d9 | 083558f27c674112dc0811eed9915a91d99fa0a0 | /Строковый тип данных/Методы строк часть 2/Очень странные дела.py | c2e22fcf82e03e35667efe7d4a215fca71dcd999 | [] | no_license | Kanres-GH/Pokolenie-Python-Stepik | e677639af1eabfd29635b792192b4fd5f107f5bb | 54b8d0ae7dbf7aaf2ea97300e643e1787b87ac7f | refs/heads/main | 2023-04-23T04:42:59.662055 | 2021-05-01T17:42:25 | 2021-05-01T17:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | n = int(input())
cnt = 0
for i in range(n):
s = input()
if s.count('11')>=3:
cnt+=1
print(cnt) | [
"noreply@github.com"
] | Kanres-GH.noreply@github.com |
9f5fd565d7ba9817e9f3eaa0b4c21caf0e3a5c5b | 157efc8223be28882fff6e6d64b04a549b16e84e | /MODULES_DATA/DefenseEvasion_CodeSigning_StolenMircosoftWindowsSignature/sigthief.py | 5f73f13dfddf5630caa3eaadf39563fb4d0db16e | [
"BSD-3-Clause"
] | permissive | qq529952515/viperpython | e44161494ce23b4e1515f8c1a651865855467f03 | af277c1f1008332c0e99e507851c3c50758baf4c | refs/heads/main | 2023-07-14T14:11:46.965259 | 2021-08-24T12:29:09 | 2021-08-24T12:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,636 | py | #!/usr/bin/env python3
# LICENSE: BSD-3
# Copyright: Josh Pitts @midnite_runr
import io
import shutil
import struct
import sys
from optparse import OptionParser
def gather_file_info_win(binary):
"""
Borrowed from BDF...
I could just skip to certLOC... *shrug*
"""
flItms = {}
binary = open(bin... | [
"none"
] | none |
5e6ee8b555a309e5ce5e7845954d392ab41207eb | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010/I_w_M_to_W_pyr/pyr_0s/L7/step10_a.py | 985e11f6a4a139c0e01e9166d0f6ff8d31fb4b6d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
1b5f7970359cd50efcaeb24cab8c592711e3bd4d | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /test/test_forecaster_entrypoints.py | 90ba5d0e6c33b7c209c70ac83d0eba7bdfead759 | [
"Apache-2.0"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 746 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
50f104e0f6bb819ed7e3260cd1671e57d0744183 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003381.py | 5237a05fd13b91ed25973d14234596c3dec60fd5 | [] | 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,655 | 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 |
8baa9d2d34c28cf039e89bca5f34422e62280386 | e488d6d5300b84065ddb50320aa3930d64798047 | /mkt/constants/__init__.py | 5c29991237eb8686d3066ac298329ca61909b66c | [] | no_license | potch/zamboni | 81b2bf01a1d93bbf933a0b3f30db56b438b7b75f | 4e0bfa8be5af334e2c4be3917e3794216498291c | refs/heads/master | 2021-01-15T21:15:25.102909 | 2013-01-02T17:07:02 | 2013-01-02T20:16:10 | 634,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from .platforms import DEVICE_LOOKUP, FREE_PLATFORMS, PAID_PLATFORMS
from .submit import (APP_IMAGE_SIZES, APP_PREVIEW_MINIMUMS, APP_PREVIEW_SIZES,
MAX_PACKAGED_APP_SIZE)
| [
"me@mattbasta.com"
] | me@mattbasta.com |
d4b70a9017046975bcd5e5d8feeaa0247d6923b0 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/slim/nets/resnet_v2_test.py | d06cbde94299ddd2b49f48504dd4119a6f6083ca | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 20,270 | py | # Copyright 2016 The TensorFlow 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 ... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
2b74909d2d1d7762214f31b2628489b91f3c0436 | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/passlib/utils/_blowfish/__init__.py | 16b85443b77e5ba7fccc0601e0d5299282f0083b | [
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 6,509 | py | """passlib.utils._blowfish - pure-python eks-blowfish implementation for bcrypt
This is a pure-python implementation of the EKS-Blowfish algorithm described by
Provos and Mazieres in `A Future-Adaptable Password Scheme
<http://www.openbsd.org/papers/bcrypt-paper.ps>`_.
This package contains two submodules:
* ``_blow... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
50af0ba1fe035e61753c470d57f2f6ec17a41e80 | 7fc26864e08354acb64d75047ccf8f3d0d0e206d | /dryadic/learning/kbtl/__init__.py | 691319ac52de1e0bf79a30e043a48aa7953865d1 | [
"MIT"
] | permissive | ohsu-comp-bio/dryads | ad56f5655cba87adfa800ff30850e0810d3cc2e2 | 015f6d3186a5146809334e2490c072e675b22891 | refs/heads/master | 2023-03-28T02:52:32.920200 | 2021-03-27T16:30:34 | 2021-03-27T16:30:34 | 142,361,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
from .multi_domain import MultiDomain
__all__ = ['MultiDomain']
| [
"mgrzad@gmail.com"
] | mgrzad@gmail.com |
816522a328e2247a1e43e6f0537dd652c8266d33 | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Double Breasted.py | 01a6ae3e0307df77a4447697a686b3f1c6324fc1 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Double Breasted" in genus:
print(row)
CGP.iat[row,3] = genus.replace("Double Breasted ","")
CGP.iat[row,Species] = "... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
5e7fd79ebbe73607afa51ba6a52d8e1ee3a6c9b5 | 2579f37a13cfbb47944c5b81c6e83ca710b29f88 | /Client/config/Client_config_info.py | 4f407858ee9bb1f511c54d87662edd44d4154b42 | [] | no_license | YangQian1992/FTP | 932f32d5ed934bae295bd674757f7af23d0ad1ba | 87d3a78522e7eb8058def1d74d7f32f0f61f1b86 | refs/heads/master | 2020-03-31T16:28:35.146329 | 2018-10-10T06:53:12 | 2018-10-10T06:53:12 | 152,376,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | personal_config_info = {
'SERVER_IP':'127.0.0.1',
'SERVER_PORT':8082,
'CODING':'utf-8',#编码方式
'BLOCK_SIZE':1024
} | [
"1289089651@qq.com"
] | 1289089651@qq.com |
0c4aa77a3094093376053b5f19d0e964a4b1427a | 9e15ada895e90d033bc3b65c2666065bddd62605 | /12/12.1/Path_test1.py | 3093e21b3c397c3f1a090b05e991c3d7de8b5f0f | [] | no_license | zhyErick/fengkuang_python | b0f0c78273420fd862691799bfd7e4f1b6eadf80 | 6d50ad3b7d4ae05d06379c2dc87d91081964ec6d | refs/heads/master | 2021-02-14T08:23:26.616211 | 2020-05-06T13:08:07 | 2020-05-06T13:08:07 | 244,788,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from pathlib import *
# 获取当前目录
p = Path('../')
# 遍历当前目录下的所有文件和子目录
for x in p.iterdir():
print(x)
# 获取上一级目录
p = Path('../')
# 获取上级目录及其所有子目录的.py文件
for x in p.glob('**/*.py'):
print(x)
# 获取C:\python\oldboy_python对应的目录
p = Path('C:\python\oldboy_python')
# 获取当前目录及其所有子目录下的.py文件
for x in p.glob('*/*.py'):
pri... | [
"xingzhishangyang@163.com"
] | xingzhishangyang@163.com |
16333d2fe48ad23cc47270a1b8fc53973efafdf3 | 90dc57404ea2e98006adba91f53ea9cc92124bb4 | /spare_parts/forms.py | a6679136c699e7b1b3cdd28e55c4d7b38fcc7460 | [] | no_license | AndreySkryl/flask-test | e57409c779f113980a9acf1c6f9a37be5106e119 | 8979e15789160e65a7ef6123e3ba638e764d8131 | refs/heads/main | 2023-04-24T18:33:59.675028 | 2021-05-10T15:16:56 | 2021-05-10T15:16:56 | 365,334,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from wtforms import Form, StringField, TextAreaField, IntegerField
class SparePartForm(Form):
title = StringField('Заголовок')
price = IntegerField('Цена')
amount = IntegerField('Количество')
description = TextAreaField('Описание')
| [
"ya.skryl@yandex.ru"
] | ya.skryl@yandex.ru |
f1cd67923e90294c3a5c457d1925664b58b06270 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/Python_Hand-on_Solve_200_Problems/Section 7 Dictionary/check_key_exist_solution.py | 637344c193288ad01e3c9e4394cbd7653b485f05 | [] | 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 | 753 | py | # # To add a new cell, type '# %%'
# # To add a new markdown cell, type '# %% [markdown]'
# # %%
# # ---------------------------------------------------------------
# # python best courses https://courses.tanpham.org/
# # ---------------------------------------------------------------
# # Check if a given key already e... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b0dad98cc918993b31888c8234bf8e6d804cb304 | 40eb94673bb2e015c1640665a639c508279e3df4 | /cursos/_flask/flask/ejemplos/u29/aplicacion/models.py | defde3e73d247258609be8cc99c0eaf13f0671aa | [] | no_license | josedom24/plataforma_pledin | 3ab5c59abd87c90f066ba9164d6d0cbc02ea816f | e0521eb103013e0f8d9e2b2ea50e6acac0d09784 | refs/heads/master | 2023-07-20T15:43:30.796223 | 2023-07-17T19:07:51 | 2023-07-17T19:07:51 | 138,278,487 | 2 | 0 | null | 2023-05-01T20:05:34 | 2018-06-22T08:44:58 | Python | UTF-8 | Python | false | false | 2,007 | py | from sqlalchemy import Boolean, Column , ForeignKey
from sqlalchemy import DateTime, Integer, String, Text, Float
from sqlalchemy.orm import relationship
from aplicacion.app import db
from werkzeug.security import generate_password_hash, check_password_hash
class Categorias(db.Model):
"""Categorías de los artículos""... | [
"josedom24@gmail.com"
] | josedom24@gmail.com |
10da254f4b916fe94485339bbb590bc46404c718 | 46e271e27afe50b8b62be0651d78164490911bb3 | /ws_moveit/src/example/example_pkg/scripts/red.py | 1ec501210d7051649bb4e99b72defa0eede3bac3 | [] | no_license | Nidhiks2000/Vargi-bot | 8a43af1e470b6fc84d468003f67471a1e1f47aad | 3e2e7be310ed7372cb6960eea8faabec75d9fbcf | refs/heads/master | 2023-07-24T01:05:10.049800 | 2021-09-08T16:31:08 | 2021-09-08T16:31:08 | 403,935,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | #!/usr/bin/env python
import rospy
import cv2
import sys
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
class Camera1:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/eyrc/vb/camera_1/image... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
5e1380e7e83fc9ec185495578654737b55934163 | 13f836eb4770d3d2b0e4be27067411a9d71b8e0d | /__init__.py | f61e61e171dabbbe82865b96ec71b02b37e4a5a4 | [
"ISC"
] | permissive | willsion/push_api | b6f5395178543a6139bffa2406a8955b69c8b393 | 91b5ab8f15029a698216791365b2f589dc340d5c | refs/heads/master | 2021-01-15T14:23:45.981417 | 2016-09-07T02:41:35 | 2016-09-07T02:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# FileName: __init__.py
# Desc: 2015-15/1/7:下午1:32
# Author: 苦咖啡
# Email: voilet@qq.com
# HomePage: http://blog.kukafei520.net
# History:
# ===================... | [
"voilet@voiletdeMacBook-Pro-2.local"
] | voilet@voiletdeMacBook-Pro-2.local |
1d5d22515ceb69a934cb6bae79eabbf50bc1f463 | 47744b621bd0bc03f2eb6c0fead3ad2347a70aac | /ud120-projects/k_means/k_means_3_features.py | 54960b687f087c22669e3e9627fb3600a5022b27 | [] | no_license | shivam04/udacity-intro-to-machine-learning | 55be33ab1c426d7578bac4cf6c23486feca52c0d | 5e3a535bc31ec3d29088db832a0fa921a6b4b467 | refs/heads/master | 2020-04-06T04:20:40.663517 | 2017-06-24T07:46:43 | 2017-06-24T07:46:43 | 82,966,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/python
"""
Skeleton code for k-means clustering mini-project.
"""
import pickle
import numpy
import matplotlib.pyplot as plt
import sys
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
def Draw(pred, features, poi, mark_poi=False, name="image.png", f1_n... | [
"sinhahsivam04@gmail.com"
] | sinhahsivam04@gmail.com |
8bb8872a18f1c5eafc368fbb1198a76a957a0687 | 9a41558b414f404c119e504df8b3627e37c8b8d0 | /nappy/mkcell/cell_maker.py | 1f0d2845cb9176af52414be290c4d573aef49319 | [
"MIT"
] | permissive | medgbb/nap | c5dfd099d301d72c87006b436376ed862df566b2 | 6e7b5c47fd33fed1ebf7a8c3890b2a7921101213 | refs/heads/master | 2022-12-10T01:26:12.329772 | 2020-09-10T02:50:49 | 2020-09-10T02:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,797 | py | #!/usr/bin/env python
"""
Make typical crystalline structures of conventional cell.
Usage:
cell_maker.py (sc|bcc|fcc|hcp|dia|nacl|zb|wz) [options]
Options:
-h, --help Show this help message and exit.
-s, --size=SIZE
Number of copies of the unit cell, in comma-separated format, nx,ny,nz. [default:... | [
"ryo.kbys@gmail.com"
] | ryo.kbys@gmail.com |
75ae57ff4ee114e75afc618e0e52b41489e7628d | f6e2744ba52b0655d82071edc741d36cb840e1ff | /Lab1/DataGenerator/CsvParser.py | 50f2e1699047b5e143d5ee2e059879b9de1ecd62 | [] | no_license | PinarTurkyilmaz/SDM-Lab1 | abb77192cf4c85b1751263e1939434cb2de8d3c2 | 0df7b8d2c47d588e15633a684c857ddda5ebefa7 | refs/heads/master | 2020-04-28T18:15:46.867738 | 2019-03-13T18:28:40 | 2019-03-13T18:28:40 | 175,473,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import csv
with open('Populate.csv', 'r') as csv_file:
csv_reader = csv.DictReader(csv_file)
with open('Cititation.csv', 'w') as new_file:
fieldnames = ['title']
csv_writer = csv.DictWriter(new_file, fieldnames)
csv_writer.writeheader()
for line in csv_reader:
del li... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
ec1ff974949d84acfe1277e786b564a0462c7d31 | c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2 | /OJ/LeetCode/74. Search a 2D Matrix.py | bafc00d5a9be337a73709ca26357f10eba16536e | [] | no_license | Nobody0321/MyCodes | 08dbc878ae1badf82afaf0c9fc608b70dfce5cea | b60e2b7a8f2ad604c7d28b21498991da60066dc3 | refs/heads/master | 2023-08-19T14:34:23.169792 | 2023-08-15T15:50:24 | 2023-08-15T15:50:24 | 175,770,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # 剑指offer出现过
# 矩阵每一行都是左到右递增,每一列都是上到下递增,所以从左下角开始,类似二分查找
class Solution:
def searchMatrix(self, matrix, target):
if matrix == []:
return False
height, width = len(matrix), len(matrix[0])
i, j= height-1, 0
while 0<=i<=height-1 and 0<=j<=width-1:
if 0<=i<=height-1... | [
"cyk19951@gmail.com"
] | cyk19951@gmail.com |
07d0b39146ea6065f2b0c58807ac66f5d96a0bdf | 568af6a97c4dab00c8ff2a3c9e608fc8f912e2c1 | /207.py | 6339a2b201d487598fa68a3aeab974e43718e875 | [] | no_license | Deepakdk7/PlayerSet21 | b619e51ce2b601f3b5b46d188417a9a5a377a4ad | c01a6d69108cc8ce099b09c5d025e4828b6dab71 | refs/heads/master | 2020-06-08T16:22:08.421915 | 2019-06-25T16:19:15 | 2019-06-25T16:19:15 | 193,262,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | ax=list(map(int,input().split()))
print((ax[0]*ax[1])//2)
| [
"noreply@github.com"
] | Deepakdk7.noreply@github.com |
7035acb8a40194eba9b97b8e70803602562936bc | a13ffbab0f24047e43f003131b06052c4a29adff | /Chapter_07/shop/admin.py | c416b49b87b43f83b8f9e5857d303c64c142eaee | [
"Unlicense"
] | permissive | codingEzio/code_py_book_django2_by_example | 58a02b7b8e6a549804834d28488412243df94ea2 | d215d0c87a557685824286822186966b06fa8d59 | refs/heads/master | 2020-04-09T18:24:58.821192 | 2019-01-24T08:49:26 | 2019-01-24T08:49:26 | 160,511,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from django.contrib import admin
from parler.admin import TranslatableAdmin
from .models import Category, Product
@admin.register(Category)
class CategoryAdmin(TranslatableAdmin):
"""
For the "translated_fields", you need to
use `get_prepopulated_fields` instead of `prepopulated_fields`
... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
ea590224b5586f898dbc17f6cb755bd3676f56a1 | ee01a1f16e63483ebfd304b838f015f9f2d168b7 | /streamtools/web/main.py | 0188e48a1b050926b6b4c97b32e5a60899ae5eef | [
"MIT"
] | permissive | mariocesar/stream-tools | 284aa494676d27204d71da3a0bdb9a196bcab861 | 384c10d364d8b40b9dfa15eeebed15da6f90ed31 | refs/heads/master | 2022-12-22T14:52:01.033784 | 2021-07-19T01:32:17 | 2021-07-19T01:32:17 | 250,092,686 | 1 | 1 | MIT | 2022-12-12T08:22:55 | 2020-03-25T21:14:04 | Python | UTF-8 | Python | false | false | 867 | py | import asyncio
from asyncio import Queue
from aiohttp import web
from streamtools.relay.main import fetch_events
routes = web.RouteTableDef()
@routes.get("/ws/")
async def websocket_handler(request):
ws = web.WebSocketResponse()
await ws.prepare(request)
task = asyncio.create_task(fetch_events(request.... | [
"mariocesar.c50@gmail.com"
] | mariocesar.c50@gmail.com |
636e89e816adde63d47a7c4d4e3d83e62438d8d6 | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-133/paulo-custodio/python/ch-1.py | 0c9b9ec563b3fa36246755408c816a2874d78618 | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 760 | py | #!/usr/bin/env python3
# Challenge 133
#
# TASK #1 > Integer Square Root
# Submitted by: Mohammad S Anwar
# You are given a positive integer $N.
#
# Write a script to calculate the integer square root of the given number.
#
# Please avoid using built-in function. Find out more about it here.
#
# Examples
# Input: $N =... | [
"pauloscustodio@gmail.com"
] | pauloscustodio@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.