blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
832a298328bc29b34d0110a3029f906ad483a34d | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /Baekjoon/boj_20055_컨베이어 벨트 위의 로봇.py | dfdb3152402dc2cfac4c545e7cd087fba933dcf0 | [] | 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 | 751 | py | def work():
global cnt
while True:
board.rotate(1)
robot.rotate(1)
robot[N-1] = 0
for i in range(N-2, -1, -1):
if robot[i] and not robot[i+1] and board[i+1] > 0:
board[i+1] -= 1
robot[i+1] = 1
robot[i] = 0
robot[... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
7477820069e7127b7679f7bebbb2f0d9efd1638d | 3c5044c77a6c01e1a70b1722e8a860851056f28c | /16-1.py | 97b5250c34e13ea99567b0f0574dcb5660117bae | [] | no_license | MANAkudo/pyhton | 2f8c10bbf0b98babb5fea2ecdc4c2c430668e6fd | 90fa56fb44e7e02d05250543375a292dfef28eca | refs/heads/master | 2023-08-03T19:57:48.436313 | 2021-09-22T01:50:32 | 2021-09-22T01:50:32 | 409,027,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | f = open("16_1_read.txt",'w')
f.write("1\n")
f.write("2\n")
f.write("3\n")
f.write("4\n")
f.write("5\n")
f.close() | [
"ykh2135248@stu.o-hara.ac.jp"
] | ykh2135248@stu.o-hara.ac.jp |
fe69d824ce277807f6d3e0d5eaaff8a66490ae4b | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /otp/src/level/ModelEntity.py | 5850215d12244dd9e104ca4eebaf6cf5fd012828 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | from toontown.toonbase.ToontownGlobals import *
from direct.directnotify import DirectNotifyGlobal
import BasicEntities
class ModelEntity(BasicEntities.NodePathEntity):
LoadFuncs = {
'loadModelCopy': loader.loadModelCopy,
'loadModel': loader.loadModel,
'loadModelOnce': loader.loadModelOnce,... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
9305c3a78026026cae6e03d11b5982d9cee7f094 | 0617c812e9bf58a2dbc1c1fef35e497b054ed7e4 | /venv/Lib/site-packages/pyrogram/raw/functions/stats/get_megagroup_stats.py | 320398dd3f9fb86f271aeb14aaca77b3bc298f8c | [] | no_license | howei5163/my_framework | 32cf510e19a371b6a3a7c80eab53f10a6952f7b2 | 492c9af4ceaebfe6e87df8425cb21534fbbb0c61 | refs/heads/main | 2023-01-27T14:33:56.159867 | 2020-12-07T10:19:33 | 2020-12-07T10:19:33 | 306,561,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"houwei5163"
] | houwei5163 |
572850f5eb177b3a39baee3d35b40e3eda54643a | 4e879398eaecdc19f056ee538d0732b2e92aa84f | /SistemaDiscusiones/urls.py | 7c2bedce1ec87129887c060f542029d86a8b4848 | [] | no_license | acamposruiz/localdevask | 9311566ab2526e2b6966374e43e7d198fe24045a | 867cfafff33fc214d68c499bd7e97b4f77dcd3b0 | refs/heads/master | 2021-01-25T04:01:16.308722 | 2014-04-28T03:53:46 | 2014-04-28T03:53:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'SistemaDiscusiones.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('apps.home.urls', namespace="home")),
... | [
"acamposruiz@gmail.com"
] | acamposruiz@gmail.com |
2a2f1f71c97c0e8e03c4f0bcc38faa88410be7f6 | 7e2aefac7b540f4d4bad0fa6dd94dbcdad34d6a3 | /modular/app.py | f7b681f53f3b0400a266359154603d66d9fc1cbf | [] | no_license | imajaydwivedi/Python-BootCamp | ade3a3557d51b7b25a7b2ba3b79952a622896b29 | 2f5e1629a160a33017c9ab548b9d7c88ad57c917 | refs/heads/master | 2023-06-29T04:48:20.744027 | 2023-06-13T15:11:36 | 2023-06-13T15:11:36 | 250,841,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import services.directory as directory
if __name__ == "__main__":
directory.add({"name":"Krishna", "phone": 1234})
directory.add({"name":"Mohan", "phone": 2345})
directory.add({"name":"Koyya", "phone": 3456})
print(directory.list())
print(directory.count())
print(directory.find_by(1))
print... | [
"dwivedaj@arcesium.com"
] | dwivedaj@arcesium.com |
892e7b51d8d330acc1612ca799d59c9a0d25beb4 | 4b2450b65f5802f524ddb8701baa0e71c929889b | /listanelement.py | 873b5eef153b5eefbef4658036e49176c3427331 | [] | no_license | joedave1/python | 21e89dd0638156a3600bfb7fbf7422c73a79fc51 | ae51152a663aa2e512c5be7f6134c4b35d78e88d | refs/heads/master | 2020-06-29T11:22:05.627400 | 2019-08-16T08:51:14 | 2019-08-16T08:51:14 | 200,520,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | x=input("Enter a commc seperated list values: ").split(",")
color=list(x)
print("The first color is %s and the last color is %s"%(color[0],color[-1]))x=input("Enter a commc seperated list values: ").split(",")
color=list(x)
print("The first color is %s and the last color is %s"%(color[0],color[-1]))
| [
"noreply@github.com"
] | joedave1.noreply@github.com |
e34b387068ca8ec0ce9a89b18f694f3e87b653fb | b220bd0c6c7fe6fcea00ac2ae5195c1887b8a37e | /database/dbconn.py | fa05f16ecbde4cfecc85dfd3b816446e8a13ae57 | [] | no_license | itwastheband/AO3rdr-backend | 8f624ddeefbc09995f1784c3092fc1ebcbedbff7 | 19c1ed8ecdeea3250a958006d260207c582cb371 | refs/heads/master | 2022-06-17T03:47:45.741986 | 2020-05-03T23:34:14 | 2020-05-03T23:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,198 | py | import os
import boto
from boto.dynamodb2.fields import GlobalAllIndex, HashKey, RangeKey
from boto.dynamodb2.items import Item
from boto.dynamodb2.layer1 import DynamoDBConnection
from boto.dynamodb2.table import Table
from boto.dynamodb2.exceptions import ItemNotFound
from decimal import Decimal
from flask import ... | [
"darthkrallt@gmail.com"
] | darthkrallt@gmail.com |
ef9b5b666e8749d77a7b64d744affbcd8a64a543 | 963cac9e78c4b742f7e7800200de8d1582799955 | /test/veetou/parserTests.py | 797c7be4f0f217a2fd7bbe13910a3ec1cd8fde32 | [] | no_license | ptomulik/veetou | c79ceb3ca3d7ef7b261b2219489b6f0a7a83e1fa | b30be2a604f4426f832ec9805547ecd6cc9083fe | refs/heads/master | 2021-01-22T17:28:57.271251 | 2019-01-05T01:46:43 | 2020-05-04T16:23:44 | 85,016,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | #!/usr/bin/env python3
# -*- coding: utf8 -*-
import unittest
import veetou.parser as parser
class Test__Parser(unittest.TestCase):
def test__funcions_symbols__1(self):
self.assertIs(parser.dictmatcher , parser.functions_.dictmatcher)
self.assertIs(parser.fullmatch , parser.functions_... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
3e43c121fa98f0c8fd7478f5ac8cd4cfe08fcd43 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/sql/azure-mgmt-sql/generated_samples/transparent_data_encryption_list.py | 3e2275f884eabc284c7627538174b4de0a236e32 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,661 | 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"
] | Azure.noreply@github.com |
9b2f6cdd33b203db499cf006e77db48474b4b153 | 2b240306722b3fba53caf25fc62fd599bb70f082 | /lectures/cs532-s19/assignments/A6/toPush/Python/driver.py | d42194c508f4364eb0d9d53e7a3c25d83dddcea9 | [] | no_license | bayardd/anwala.github.io | cac62b5d13a3e57106aff60f846a2a322938ceaf | 3d3b23f78813aff39760232f68d0b2043722a342 | refs/heads/master | 2020-04-20T04:09:07.304978 | 2019-04-30T17:27:35 | 2019-04-30T17:27:35 | 168,619,026 | 0 | 0 | null | 2019-02-01T00:38:51 | 2019-02-01T00:38:51 | null | UTF-8 | Python | false | false | 5,014 | py | import recommendations
allSimilar = []
file = open("data.txt", 'a')
newline = '\n'
tab = '\t'
file.write(f'First User Chosen: {tab} 368{newline}')
file.write(f'Second User Chosen: {tab} 81 {newline}')
file.write(f'Third User Chosen: {tab} 135 {newline}{newline}')
pref = recommendations.loadMovieLens()
# Get sorted ... | [
"dbaya001@odu.edu"
] | dbaya001@odu.edu |
9cc95780a34d3bb2c8acb0cde93d72a744ba1ce1 | 5f596cf8fc95e72caa87fcd51aa2446f9e6fc0d4 | /tasks.py | 01c26b63c44c8cec31f1ad19c349b4ea31ffa67d | [
"MIT"
] | permissive | jakobzeitler/causalinfo | 265f34f79a13c6ee9ce1173aae202e960766327f | a8e6b6e9dae8dfd4d2e18010908c4905089538a1 | refs/heads/master | 2020-03-23T17:24:25.087306 | 2017-01-05T08:07:40 | 2017-01-05T08:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | # -*- coding: utf-8 -*-
from invoke import task, run
import os
import sys
@task
def test(cover=False):
"""Run tests (use --cover for coverage tests)"""
if cover:
run('py.test --cov-report term-missing --cov=causalinfo tests', pty=True)
else:
run('py.test -v', pty=True)
@task
def clean():
... | [
"brett.calcott@gmail.com"
] | brett.calcott@gmail.com |
0abd56daa2dfc8f450f36161ccbb0d4530572899 | 13d384f7eb991b7fe901468f1967f7b2952499a6 | /day-23 turtle-crossing-start/car_manager.py | 1f23d9f92ae79bb4124d80476d54b7f7eac0db84 | [] | no_license | miloscomplex/100_Days_of_Python | f31638fc5a3913dc32850b61c51d2cecac7cdbdf | 6ac67472627867d8bf9cccb496e6395d979b8c89 | refs/heads/main | 2023-08-25T03:00:49.216040 | 2021-10-07T03:32:19 | 2021-10-07T03:32:19 | 395,512,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import random
from turtle import Turtle
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
STARTING_MOVE_DISTANCE = 5
MOVE_INCREMENT = 10
TOP_MAX = 250
BOTTOM_MAX = -250
LEFT_DISTANCE = -320
class CarManager(Turtle):
def __init__(self):
super().__init__()
self.all_cars = []
s... | [
"hicallmesutton@gmail.com"
] | hicallmesutton@gmail.com |
28e33303b4a8e6d06e0a3ae120f751b62b91b62b | e6a3835a1d1f4d7f6318dfd7047c3b527e994537 | /src/utils/utils.py | b353b1889ce8b210b94356a55dc40562aad8e40d | [] | no_license | MMichels/DeepCars | 9f8faec7b547c585888469202859d317e5d28526 | 327a604faa80d476cafb438b82af6537443670e0 | refs/heads/master | 2023-04-13T03:58:01.503567 | 2019-12-17T20:50:44 | 2019-12-17T20:50:44 | 228,690,108 | 0 | 0 | null | 2023-03-25T00:21:00 | 2019-12-17T19:48:14 | Python | UTF-8 | Python | false | false | 471 | py | import os
from pygame import image, error
from pygame.locals import RLEACCEL
def load_image(path, colorkey=None):
try:
img = image.load(path)
except error as message:
print('Não foi possivel abrir a imagem: ', path)
raise SystemExit(message)
img = img.convert_alpha()
if color... | [
"michels09@hotmail.com"
] | michels09@hotmail.com |
f7cfc720c7204254c708dca38c4f7baee6ae12b1 | dd126d6b82eb47d90950a355d4948047ae119f9c | /fixture/db.py | 92f71b61a9231f7c5f9209c0af7120114c85c768 | [] | no_license | Korinsky/Python4QA_B24 | 9382c178a7e564272e2628426946ae087ec4ccdc | 0c5d5f812a6cb858a3bf59e45745a7fce206fd7e | refs/heads/main | 2023-07-14T05:36:57.307809 | 2021-08-18T13:05:14 | 2021-08-18T13:05:14 | 377,419,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | import pymysql
from model.group import Group
from model.contact import Contact
class DbFixture:
def __init__(self, host, name, user, password):
self.host = host
self.name = name
self.user = user
self.password = password
self.connection = pymysql.connect(host=host, database... | [
"72462941+Korinsky@users.noreply.github.com"
] | 72462941+Korinsky@users.noreply.github.com |
1a701ab367bd7353d683543ba01c68dafb9c47e1 | 3536b829b5733807ffca9849e7ad463c43979c09 | /sc2bot/agents/battle_agent.py | 22e9a7bbc1b8d9e4a1550ce87856884d6aaf1e26 | [] | no_license | alanxzhou/sc2bot | 9b8d33dacc32074a70b8b4007f60801d6ff8037c | 0eb2a3f733ea31250e29a123213b407ad9189a40 | refs/heads/master | 2020-09-04T17:40:32.608263 | 2020-03-16T23:32:59 | 2020-03-16T23:32:59 | 219,835,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,381 | py | from abc import ABC, abstractmethod
import copy
from collections import deque
import pickle
import matplotlib.pyplot as plt
import numpy as np
import os
import time
from pysc2.agents.scripted_agent import _xy_locs
from pysc2.agents.base_agent import BaseAgent
from pysc2.lib import actions
from pysc2.lib import feature... | [
"alanzhou93@gmail.com"
] | alanzhou93@gmail.com |
5c59103c775af199dd22c783d6c67d60fb97d5d3 | 49e0b6094a6841efd74ba57cd01913b465223333 | /data_structures_and_algorithms_python/challenges/tree_fizz_buzz/tree_fizz_buzz.py | 5883a22406f14bb3defa4c58189abd1927c6c06e | [] | no_license | HamzaQahoush/data-structures-and-algorithms--Python | 1c2fdfc8b90efc190108ed139372591741d5acc7 | 81bc4424065bc6b7ef99ab4dbba60524a75058a4 | refs/heads/master | 2023-07-15T04:03:05.158576 | 2021-08-05T17:34:47 | 2021-08-05T17:34:47 | 376,792,369 | 0 | 1 | null | 2021-08-05T17:29:16 | 2021-06-14T11:00:05 | Python | UTF-8 | Python | false | false | 1,647 | py | class Node :
def __init__(self,value):
self.value = value
self.child = []
def __str__(self):
return str(self.value)
class KAryTree :
def __init__(self):
self.root= None
"""This code done with help from Ahmad Zatar"""
def fizz_Buzz_Tree(KAryTree):
def traverse(n... | [
"hamza.qah@gmail.com"
] | hamza.qah@gmail.com |
8b0d58ef495a25ef7a5bac1d8320f8430110b81a | 4bdb484b1aaf38f38e512042e249c26bb8cb181c | /v-server/shopspider/diy/configs.py | 3e57d1d8796addaa9191b063104920b91f3dcb92 | [] | no_license | fan1018wen/scrapy-spider | 593ec2b6e02724e185e135ecc107400eeb7aec37 | 97d7ea1ce63d6c84ef9e01fb55e9376dbd7b8e83 | refs/heads/master | 2021-01-15T22:14:57.787123 | 2013-09-27T03:59:55 | 2013-09-27T03:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | ##coding=utf-8
# Define some diy functions here
table_prefix = 'P1_WJ_TEST_LANG' #数据表前缀 #pipeline eg TEST --> TEST_SHOP TEST_PRODUCT TEST_PRODUCT_IMAGE
show_messages = True #是否打印相关调试信息 True / False
#-数据库配置---如需修改端口 请移步至 pipeline
db_type = 'oracle' #数据库类型 oracle / mysql #pipeline
db_host = '172... | [
"wj922@qq.com"
] | wj922@qq.com |
bb35ccd3ccfc92a049807e3711182d740eb677b8 | eab2dc435028b2548554d97b24eb7b7e3576b953 | /iblrig/check_sync_pulses.py | b53097729443914a5879f7b454f1900b4316e049 | [
"MIT"
] | permissive | k1o0/iblrig | 35edd8570215ca591b1f1e26e47439e633aa587a | 9177b852b344a9bbc26e4a4aeb5f0182bd8a9b25 | refs/heads/master | 2021-05-24T12:58:47.552912 | 2020-02-25T20:19:59 | 2020-02-25T20:19:59 | 253,573,669 | 0 | 0 | MIT | 2020-04-06T17:48:28 | 2020-04-06T17:48:28 | null | UTF-8 | Python | false | false | 2,875 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Monday, February 25th 2019, 2:10:38 pm
import logging
import sys
from pathlib import Path
import ibllib.io.raw_data_loaders as raw
import matplotlib.pyplot as plt
import numpy as np
from iblrig.misc import get_port_events
log = logging... | [
"nbonacchi@gmail.com"
] | nbonacchi@gmail.com |
ddf50e75e79b2fdf8f47933f714c83b2eaa89e66 | 09d3b183035824f990946cdd8faa11e8bd729e6f | /geo-data/osmgeojson.py | cc3bfcb2ff891030f189c4724e3ddec70e74dbe7 | [] | no_license | srravya/data-greed | 78d20066acef11c2a56f03fca18975227102832d | 566d2c5ad521fd9ffd01df4fd77476bd3cc18c79 | refs/heads/master | 2021-01-11T09:27:46.965503 | 2016-06-22T17:11:28 | 2016-06-22T17:11:28 | 57,985,117 | 0 | 0 | null | 2016-06-08T05:19:22 | 2016-05-03T16:44:09 | Python | UTF-8 | Python | false | false | 2,349 | py | from geojson import Point
from geojson import Feature, FeatureCollection
from geojson import dump, load
from osmapi import OsmApi
import os
def degree_decimal(dms_list):
return dms_list[0] + (dms_list[1] / 60.0) + (dms_list[2] / 3600.0)
DATAFILE='libraries_new.geojson'
TESTFILE='libraries_test.geojson'
# Change ... | [
"eternaltyro@gmail.com"
] | eternaltyro@gmail.com |
4748aa5750dba7b48af7c65f6b08a0be79ebbcb4 | 563c1d3093a047d7185c34557345eadf60d0dcd1 | /reservoir-id/classifier_apply.py | b886278192ca1926597017c7d814da1eb2ac04a2 | [
"GPL-3.0-only"
] | permissive | kysolvik/reservoir-id | ea930cbd93199bf6f3bcda58fd5971d3402eb8bc | f3a25d0750d96f369a699547584d7db97b2cb43d | refs/heads/master | 2021-01-19T03:30:41.006479 | 2018-01-17T14:38:42 | 2018-01-17T14:38:42 | 87,315,930 | 0 | 0 | MIT | 2018-01-07T16:53:26 | 2017-04-05T13:59:18 | Python | UTF-8 | Python | false | false | 3,065 | py | #!/usr/bin/env python
"""
Apply classifier exported by classifier_train.py
Inputs: Classifier pkl path, small area cutoff
Outputs: CSV with classified regions
Notes:
1. Make sure that all columns in the apply csv match the train_csv
2. exclude_att_patterns must match
@authors: Kylen Solvik
Date Create: 5/27/17
"""
# ... | [
"kysolvik@gmail.com"
] | kysolvik@gmail.com |
7a4a7b2829526271df0ee298213f785025e1cafc | a473fdce56e422137f0f14514081bf7c10e9aa90 | /source/data_processing.py | f58589cc42ed19b0dfa0cd0c580dc9171fd81ec2 | [] | no_license | mrandic/Bike-Rental-Case | bc264d02d115db178ff35d67b0c98d4644dbf954 | 79d29a5a5a1a914e5936e688d2b1ed850373b301 | refs/heads/main | 2023-08-15T02:10:52.483478 | 2021-09-21T23:34:44 | 2021-09-21T23:34:44 | 409,000,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,767 | py | import pandas as pd
import numpy as np
from dateutil.parser import parse
def processHubwayTripsData(hubway_trips_df):
"""
Create initial features from hubway trips data
:param hubway_trips_df: Hubway trips data
:return: Feature engineered dataframe
"""
hubway_trips_df['start_date'] = hubway_t... | [
"milos.randic@telenor.no"
] | milos.randic@telenor.no |
39ef41ca372b8c23e5a544cffabddd8ade50fad0 | bb462a56300aff06f6265e500804a4ecc7e290c4 | /mod_int.py | 74edcf9d02e8596531719f955e0156a7cf5b6c2b | [
"CC0-1.0"
] | permissive | nohtaray/competitive-programming.py | 6d4f0b5b6dde3dfee5a12674a1d0143d760b3644 | 7d38884007541061ddd69d617a69a0d9bc6176fa | refs/heads/master | 2023-06-15T01:17:41.744771 | 2023-05-27T14:37:04 | 2023-05-27T14:37:04 | 180,506,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | def ModInt(mod):
class _ModInt:
def __init__(self, value):
self.value = value % mod
def __add__(self, other):
if isinstance(other, _ModInt):
return _ModInt(self.value + other.value)
else:
return _ModInt(self.value + other)
... | [
"ydt.hran2@gmail.com"
] | ydt.hran2@gmail.com |
fb7248f9ab1b81c3bee297715b6eed6deb7193f3 | b2f6b65cba891f3a86e507d4dd312936517ab139 | /utils/modelsize.py | 213406ce9a9a0c028c54e6939f32b41239f2d85d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leeesangwon/CGNet | 2822d288355e8a535a780c4a6e850608467465dc | d07c0e84d252bed9cbc28e66da4b85bdcc4c6293 | refs/heads/master | 2020-04-14T04:48:48.532572 | 2019-05-09T13:08:26 | 2019-05-09T13:08:26 | 163,646,131 | 1 | 0 | MIT | 2019-05-09T13:08:28 | 2018-12-31T06:45:11 | Python | UTF-8 | Python | false | false | 2,602 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
class SizeEstimator(object):
def __init__(self, model, input_size=(1,1,32,32), bits=32):
'''
Estimates the size of PyTorch models in memory
for a given input size
'''
self.model = mode... | [
"874314714@qq.com"
] | 874314714@qq.com |
c43dee062a7499d04b64507171d861b11b09912e | df3c8c521a51f2b412118bd9d0e477da06a3b7cc | /build/view_environments/post_create_/create_post/create_post.py | 2a6a13f8a1551a30e01dd4e643e8f14b345f9bfd | [] | no_license | bharatmudragada/fb_post | c30b900731db5844df6b438e5d38a0dfb607412a | c5e7bb185a561bdcfcd7b2e30264554b07106044 | refs/heads/master | 2020-06-21T04:05:22.296755 | 2019-07-17T07:48:22 | 2019-07-17T07:48:22 | 197,339,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | from django_swagger_utils.drf_server.decorators.request_response import request_response
from django_swagger_utils.drf_server.default.parser_mapping import PARSER_MAPPING
from django_swagger_utils.drf_server.default.renderer_mapping import RENDERER_MAPPING
from fb_post.build.serializers.definitions.PostContent.PostCont... | [
"bharathmudragada123@gmail.com"
] | bharathmudragada123@gmail.com |
98afb32b4a54532746127c0a78d01a693fc7d98a | 21899ea0e94cb58f8ac99b7c731f59e0232839eb | /src/python/T0/WMBS/Oracle/Subscriptions/HaveJobGroup.py | 59ece2561182f2a6ec7589262150c04280d86513 | [
"Apache-2.0"
] | permissive | dmwm/T0 | a6ee9d61abc05876fc24f8af69fe932a2f542d21 | 1af91d0b1971b7d45ea7378e754f2218ff9a8474 | refs/heads/master | 2023-08-16T10:55:27.493160 | 2023-08-11T09:38:03 | 2023-08-11T09:38:03 | 4,423,801 | 9 | 54 | Apache-2.0 | 2023-09-14T11:43:30 | 2012-05-23T18:33:56 | Python | UTF-8 | Python | false | false | 687 | py | """
_HaveJobGroup_
Oracle implementation of HaveJobGroup
For a given subscription check if there is an existing job group
"""
from WMCore.Database.DBFormatter import DBFormatter
class HaveJobGroup(DBFormatter):
sql = """SELECT 1
FROM wmbs_jobgroup
WHERE wmbs_jobgroup.subscription = :s... | [
"Dirk.Hufnagel@cern.ch"
] | Dirk.Hufnagel@cern.ch |
f64548cc59fb2b2294373d25879cdab04e508e9f | d121775327c0c2e1d7210eab0f52d1818c56aa0c | /Wikipedia_Scraper/venv/bin/wheel | 12e896c57139377e445ecb2d018a31e72715bb96 | [] | no_license | shmoss/Python-Backend-TownSounds | f396d8fbd55b08730286109dc27c1e948a33c9c8 | ba38bed2894ac45eb344c8fa2a23a49daa6fd3f0 | refs/heads/master | 2021-07-15T07:52:05.267561 | 2021-07-08T21:28:37 | 2021-07-08T21:28:37 | 180,048,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/starrmoss/PycharmProjects/hi/Wikipedia_Scraper/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shmoss@wisc.edu"
] | shmoss@wisc.edu | |
b14adaf5a89b66b23c4ea53b5a93cd242caca777 | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /test_utilities/src/d1_test/mock_api/tests/test_get.py | d1eaef95d18355fd89576cc41c693343b6516ba0 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 2,721 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
bec7c5ea5c678a589efad67a06df92c0335711e2 | dc29b57b9a025287574117a4e7c7fc27663d6063 | /pydemo/src/wxdemo/gridbagdemo.py | 3dc34973c575305cf8cc3a71ddc85a57d34b5233 | [] | no_license | bspeng922/pyutils | e4d0e988d5c168a3a9e97da2d09c6b714faa2c9a | 4fa6c75a7159e03383c0f89d67d1ca37f3d0f0a5 | refs/heads/master | 2020-04-11T09:59:19.089455 | 2017-01-06T07:42:20 | 2017-01-06T07:42:20 | 7,434,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import wx
class Example(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, "", size=(320,130))
self.InitUI()
def InitUI(self):
panel = wx.Panel(self)
text = wx.StaticText(panel, label="Rename To")
tc = wx.TextCtrl(... | [
"bspeng922@gmail.com"
] | bspeng922@gmail.com |
4ee39fb041156b51bf7fa191a298758ceaab2ef0 | bcda171a045e86f8437c9dd5f37a0a1ac2316063 | /anonymization/newtest.py | 1ed85056501ce83aeffe09c6b85218895595e2aa | [] | no_license | blackfeathering/CommunityDeception-master | f1127a9d22869a3bbc8db40ca99c89c0e98279d5 | c49dafd8774e029c0d57aa4f63ad192aacafa07f | refs/heads/master | 2023-04-03T03:41:13.651533 | 2021-03-15T06:16:28 | 2021-03-15T06:16:28 | 255,219,882 | 0 | 0 | null | 2021-03-29T22:52:54 | 2020-04-13T03:13:20 | Python | UTF-8 | Python | false | false | 4,824 | py | import logging.config
import sys
import cmath
from typing import List
from settings import master
from igraph import Graph
from igraph.clustering import VertexClustering
from utils.counter_pre import count_security_index_by_pre
from utils.pre_counter import count_pre_security_index
from utils.counter import count_secur... | [
"1960554271@qq.com"
] | 1960554271@qq.com |
4f2cdd1eb56bda921db71669d39b4bbdaf4062e4 | 82dafd9b89abdf334420e50f9d7562984aed8a7d | /cifar10_models/senet.py | a6f47305812f4ead441c3208f43d2a499c2c5841 | [] | no_license | mostafaelhoushi/tensor-decompositions | 844aaed58abeb1e17923860a5e9aebed64465030 | 8c3186dfc4d5d2eb22b0a673e3eaf1bcaa872feb | refs/heads/master | 2020-07-09T03:51:30.214582 | 2020-05-02T12:46:00 | 2020-05-02T12:46:00 | 203,867,675 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,086 | py | '''SENet in PyTorch.
SENet is the winner of ImageNet-2017. The paper is not released yet.
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
__all__ = ['senet18']
class BasicBlock(nn.Module):
def __init__(self, in_planes, planes, stride=1):
super(BasicBlock, self).__init__()
s... | [
"m.elhoushi@ieee.org"
] | m.elhoushi@ieee.org |
d2f27c55bbc9eed109b72828c5be2aad86fb4cd3 | 3cd680e0372f942affeb948eedca8e08d9bfb743 | /22.py | c9a9f60726386d6ffe5ecf4bcdc7f5f02fe04839 | [] | no_license | ug2454/PythonPractice | cb507e380b32ecba14b355a3bd60769a4682b4ab | cbf7211e00d46f166246d5932661a6f110cc1cf0 | refs/heads/master | 2022-11-09T03:52:57.971095 | 2020-06-14T12:11:51 | 2020-06-14T12:11:51 | 272,194,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | import max
numbers=[19,20,30]
print(max.max(numbers)) | [
"u.garg14@gmail.com"
] | u.garg14@gmail.com |
f312f96e09ae162f71d13541059405e61729ea52 | 34d99bff51f26c03fcf05141589f51abeae2ff98 | /HTJK/venv/Lib/site-packages/wqrfnium/wqrfnium.py | 11297b7b76430aef3371b426153664074192804d | [] | no_license | zmbhza/appui | d5b31c60122eabe4d8d484d0d15e333b46a9d46f | 7a5b1072245c53b5a227943b41ef0b54420c7107 | refs/heads/master | 2022-12-21T14:00:41.509390 | 2020-09-27T03:34:15 | 2020-09-27T03:34:15 | 297,602,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,096 | py | # -*- coding: utf-8 -*-
import os,sys
import re,time
import Levenshtein
import xlrd,xlwt
from xlutils.copy import copy
import os,platform
import configparser
try:
reload(sys)
sys.setdefaultencoding('utf-8')
except:
pass
#----------------------------------
# diy your elements_xls_path
def create_xls(elemen... | [
"847160625@qq.com"
] | 847160625@qq.com |
8608678850cf6031586f8b1bce7e8531244232c5 | 7869035b72807394154285d307e0597ee16f11d8 | /src/data_loader.py | 2a23407ac8c03daa931088d7b07b81b5ff04a48b | [] | no_license | tiffany70072/TokenPositioning | cb74edae92e19c16f8ca763935e56b0f2e698b85 | a2ab63640a2aff1abfccaa1c1486d8a97026ef0b | refs/heads/master | 2022-07-19T11:21:04.716882 | 2020-04-17T06:02:18 | 2020-04-17T06:02:18 | 254,995,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | import numpy as np
import os
from sklearn.model_selection import train_test_split
def load_data(task, data_name, data_type):
if task == "autoenc-last" or task == 'token-posi':
assert data_type == "train" or data_type == "valid", "no this data type."
data_path = os.path.join("../data", data_name)
... | [
"tiffany70072@gmail.com"
] | tiffany70072@gmail.com |
a4eb444e3bee4d492386c1d33f6ce720fe415054 | c862c18ea1097ec54df04e09debae9e68d0c9897 | /edit_note_dialog.py | 38cc02deab7901e90daae048cc7d898d15833112 | [] | no_license | YoungTeurus/Organiser_Qt | 605e8428e15f155c77edeb036d23133e22104365 | 499fcb9259f496adbecfc21730bdc9de33dc04dd | refs/heads/master | 2021-02-05T16:30:57.451874 | 2020-03-01T17:43:14 | 2020-03-01T17:43:14 | 243,803,353 | 0 | 0 | null | 2020-03-01T17:43:16 | 2020-02-28T16:12:47 | Python | UTF-8 | Python | false | false | 2,775 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Work\Organiser_Qt\edit_note_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, D... | [
"ilya.elfimow@yandex.ru"
] | ilya.elfimow@yandex.ru |
13a4f3ce6cf13557eb0b81be5c554c8af70bd323 | 6984724d0466d477635b23d073affa9b00f01f67 | /Tasks/Ramanenka_Tasks/HT6/app_Calc.py | 139762ac73cc6b004c125c7310934ab7e8c2ccb9 | [] | no_license | RomanPutsilouski/M-PT1-37-21 | 202414fac782e6c68f741e55f9b7697f0c974f45 | ceef9b4e6bcff2a9033615ec761f0e2e73c9467e | refs/heads/main | 2023-05-30T21:10:22.404817 | 2021-06-30T00:26:29 | 2021-06-30T00:26:29 | 348,462,785 | 1 | 0 | null | 2021-06-05T15:44:27 | 2021-03-16T19:06:57 | Python | UTF-8 | Python | false | false | 257 | py | from ht6_calculator_with_brackets import recurs
"""Enter the expression or continue with default expression"""
expression = '(25 -(5- (1-2))/(5-8))'
# equation = input('Expression is: \n')
results = float(recurs(expression))
print(f'Result is: {results}') | [
"margoroma2010@gmail.com"
] | margoroma2010@gmail.com |
22e5a66e84c47b3691015f299972b4f9e43427f4 | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/firestore/v1/firestore_v1_client.py | ac370070865d488484aa602c2024b65bf41079fa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,606 | py | """Generated client library for firestore version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.firestore.v1 import firestore_v1_messages as messages
class FirestoreV1(base_api.BaseApiClient):
"""Generated clien... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
5a3a47716a461cf0fbff4da09be385c1328fc34e | 66d915e0d9c0016d5bbb22946539b81866fecb45 | /Soma de numeros1.py | 75775660ac4254c3804a653dfe04dfded9325d39 | [
"MIT"
] | permissive | SricardoSdSouza/Curso-da-USP | 62e00a820b218cce24fb46ef89debd8f786ce66a | 6198c509c52bf6132f904cded2e12ae941f2b973 | refs/heads/main | 2023-06-02T00:19:53.006210 | 2021-06-14T19:57:30 | 2021-06-14T19:57:30 | 376,927,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import math
numero = int(input('numero: '))
n=int(numero)
if numero > 0:
soma = 0
while numero != 0:
resto = numero % 10
numero = (numero - resto) // 10
soma = soma + resto
print("A soma dos números(",n,")é = ",soma)
else:
print('Número invalido...')
| [
"SricardoSdSouza@yahoo.com.br"
] | SricardoSdSouza@yahoo.com.br |
46b305d71e12ec7393424848fdb3b864a16ff25c | c2a168ec9e91415eeadd53ba6042e614c3e8460c | /benchmark_features/hpopt_1/hpop_test_1/ht_13.py | c6733fb7f930bc4ee0b82563d4b43470ae436f78 | [] | no_license | LiYanChalmers/BoschProductionLine | 530098a9de0d08332511b24a31cdd4b4ec5473fb | de864e55be0e8cd174ccacb06afc77e3dc9ec42a | refs/heads/master | 2020-03-21T20:29:14.134812 | 2018-09-03T08:10:08 | 2018-09-03T08:10:08 | 139,010,159 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | # -*- coding: utf-8 -*-
"""
Template for CV parameter search
Tasks:
1. CV
2. Train model
3. Predict on test set
4. Save
a. CV results
b. models trained in CV
c. model trained on the whole train set
d. predictions on test set
To-do:
1. Use models in CV to predict on ... | [
"li.yan.chalmers@gmail.com"
] | li.yan.chalmers@gmail.com |
badbe251c1d5142ea01e96e916591f5b6330a6ca | 202b1b82a2b7a70250415ba5d9bd1f6b277a6e84 | /share/qt/extract_strings_qt.py | acf54d0b19bbf49be33497e58552501d9f56933d | [
"MIT"
] | permissive | cmkcoin/cmkcore | 92cc4dcaf63b1d282ea2c2aa15ede822c9c7b0e7 | 5c2a3222ef901d1c6d9315177ba79e3f5094f2a6 | refs/heads/master | 2020-03-15T04:26:42.979962 | 2019-10-19T03:55:45 | 2019-10-19T03:55:45 | 131,965,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/dashstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' format... | [
"cmkdev@vps.cmk.io"
] | cmkdev@vps.cmk.io |
b676c5cba48c2e1efd64286543f5f6aadfef51fd | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/wotdecorators.py | 1554469a75cbd2eab8d57565f8457da484b5051a | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,832 | py | # 2017.08.29 21:52:48 Střední Evropa (letní čas)
# Embedded file name: scripts/common/wotdecorators.py
import inspect
from functools import update_wrapper
from debug_utils import LOG_WRAPPED_CURRENT_EXCEPTION, CRITICAL_ERROR
from time_tracking import LOG_TIME_WARNING
import time
import time_tracking
def noexcept(func)... | [
"info@webium.sk"
] | info@webium.sk |
864f6c8e44747b438bdd00945bd88e7a810108db | 6cd4d2923292004390a1b23dc26d0a7a4a7df223 | /DjangoRedis/manage.py | 9a25fcc6109e9b625d9a5bb7fcfab9c54f637263 | [] | no_license | Lyle101/docker_redis | 4cc85b6c5c5784c3d032d129810ce49a0e4b09cc | f3b9db02ce65794d84220286c805ba799c0e79dd | refs/heads/master | 2020-04-09T07:11:30.999829 | 2018-12-03T08:07:50 | 2018-12-03T08:07:50 | 160,144,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoPrj.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"Chris.Lyle101@gmail.com"
] | Chris.Lyle101@gmail.com |
84fdc9040b3bcc55c94270233da3cce4c9b669d5 | babc56e88a3b5f5038be70ad676d5bd8f1bbf0d2 | /wind_direction_byo.py | 94bc6600dd5986d16cb2cf6d96ba20ac2a7f7738 | [] | no_license | VicenteYago/CustomWeatherStation | 873405ca16aa0b6f4f291cbc0068a6ea10aef745 | c655f947cca2cd0f8827c18f6f7a7c4c11ef4d43 | refs/heads/master | 2022-11-13T06:48:05.736830 | 2020-06-30T00:43:07 | 2020-06-30T00:43:07 | 269,812,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | from gpiozero import MCP3008
import time
import math
adc = MCP3008(channel=0)
count = 0
values = []
volts = [0.4, 1.4, 1.2, 2.8,
2.9, 2.2, 2.5, 1.8,
2.0, 0.7, 0.8, 0.1,
0.3, 0.2, 0.6, 2.7]
volts_dic = {
0.4: 0.0,
1.4: 22.5,
1.2: 45.0,
2.8: 67.5,
2.7: 90.5,
2.9:... | [
"="
] | = |
8da0a0f25fb1f42f41d710abf1ca39dc617b67dc | 5e4a1d08d199722fde585723d06644e9999c144e | /input.py | af348c0972728af30a24ce077b2d8f0d4bcd81bf | [] | no_license | JustDoIT83/CTI110 | ca30948cd5dc4e30103a4adfb681f5090363462d | 3817c2b935eb166f0086026f0cf73c7e96b2bb8d | refs/heads/master | 2020-04-02T10:14:06.081690 | 2018-10-23T13:25:33 | 2018-10-23T13:25:33 | 154,330,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # get the users name, age, and income
name = input('What is your name?: ')
age = input('What is your age?: ')
income = input('What is your income?: ')
# display the date
print('here is the data you entered')
print('Name:', name)
print('Age:', age)
print('Income:', income)
| [
"noreply@github.com"
] | JustDoIT83.noreply@github.com |
18d5a691ca86297e0db6536e331fc046f0aedd4b | 9d53da8fbd6d6760fb652e84687cf73ef1f3034d | /model/EventPointNetpp/nets.py | b5fdb7fc10cad171466eb6ce22481815099f0d63 | [] | no_license | HowoongJun/localfeature | 8a944256738e7f10f5e0564c499bf88afaf006ba | 0d17fca75d2f67c33652710250c3d0f07d7c8970 | refs/heads/main | 2023-08-27T19:57:10.071631 | 2021-10-28T06:53:30 | 2021-10-28T06:53:30 | 340,907,081 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | ###
#
# @Brief nets.py
# @Details EventPointNetPP network
# @Org Robot Learning Lab(https://rllab.snu.ac.kr), Seoul National University
# @Author Howoong Jun (howoong.jun@rllab.snu.ac.kr)
# @Date Sep. 01, 2021
# @Version v0.1
#
###... | [
"prestoxic@gmail.com"
] | prestoxic@gmail.com |
3d6c10f42425778b851063b600ddb7ceddf3622d | 161e4fad71b23ac5514f8cc8c04b97ff29039cf2 | /Array/Buy_Sell_Stock.py | 7ca3171b5ee36527ea4e438f7ffb002bbdda2c3b | [] | no_license | yash872/PyDsa | 726d43a0730e9143593327f180fab3eb3367d281 | a3046231c466f2ec5cae94129d2c15d21a082b86 | refs/heads/main | 2023-03-06T12:12:49.731899 | 2021-02-04T17:14:28 | 2021-02-04T17:14:28 | 332,211,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | '''
Best Time to Buy and Sell Stock
You are given an array prices where prices[i] is the price of a given stock on the ith day.
You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.
Return the maximum profit you can achieve from this tr... | [
"noreply@github.com"
] | yash872.noreply@github.com |
c177f0da14bb7731c15a9e25ad35b2bb78f5ca63 | 3d2192385e65889d20b74742755f5369d0d09161 | /stock_colis/models/__init__.py | da8dece232489928427446f10dfd1d1af8ea259d | [] | no_license | FIDINGSARL/audoune | 9ba746a9d7424a41f8775a6e30f42f2a97224edf | 39cecd44497d5fa227cc594a6bf5807eb14976d3 | refs/heads/main | 2023-06-18T09:49:13.778878 | 2021-06-30T15:06:51 | 2021-06-30T15:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | # -*- coding: utf-8 -*-
from . import stock_colis, stock_colis_request
| [
"macbook@MacBook-Pro-de-MacBook.local"
] | macbook@MacBook-Pro-de-MacBook.local |
3ff18915969da0e6505bd95f4d68b34cfdb72eb5 | e2cb95d74ff13247a706a4a949e22fb397efe7b7 | /A2 - Digital Makeup Transfer/src/faceWarp.py | 9a20045a0b4934f6294b0a14c9d6558b1da7a672 | [] | no_license | Aditi-Singla/Digital-Image-Analysis | 945beb48bfbd1f7bb75d76059d5faafcfe88881f | 8fc08ee86c5a168e3dc6d3b22c4be5bf2195458d | refs/heads/master | 2020-04-01T00:36:28.232484 | 2018-07-18T18:45:20 | 2018-07-18T18:45:20 | 152,704,480 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/env python
import numpy as np
import cv2
import sys
import scipy.spatial
# Read points from text file
def readPoints(path) :
points = [];
with open(path) as file :
for line in file :
x, y = line.split()
points.append((np.float32(x), np.float32(y)))
... | [
"aditisksingla@gmail.com"
] | aditisksingla@gmail.com |
defbb28049ad7d422477ecaaabdf790640d21b17 | c5e6a4e0264409f4dc5db9993c8c0cc058d4365a | /8_juego_ahorcado.py | c36c4f69dcc49dcd6f1cc0a09e02d34d9823de2c | [] | no_license | carlosafdz/programacion_python | 05c91eb858ce12b9fd2e9e3fd4e902c66ea2ee2d | 17b0db4dcf923d6de3fdfd9c9e78b1d1a50651ea | refs/heads/master | 2023-05-24T20:32:22.614224 | 2020-03-21T18:26:30 | 2020-03-21T18:26:30 | 248,345,937 | 0 | 0 | null | 2023-05-22T23:22:23 | 2020-03-18T21:22:31 | Python | UTF-8 | Python | false | false | 2,486 | py | import random
IMAGENES = [
'''
+=======+
| |
|
|
|
|
======
''',
'''
+=======+
| |
O |
|
|
|
======
''',
'''
+=======+
| |
... | [
"carlos.afdzf@hotmail.com"
] | carlos.afdzf@hotmail.com |
016e33094e39966281d2775ad6be6442e4a27330 | 63e06ef221242c2c614750df02b4283989e13052 | /projeto_da_roca/users/migrations/0002_auto_20210521_1213.py | b49e9079706612918bcb18961c11420541017361 | [] | no_license | amandacl/Da_Roca | 97ada3b6abe6df25258a34f82954c07c597daae6 | b6187d62b91f06e0afb523a84194ad12467a89b4 | refs/heads/master | 2023-06-21T11:59:14.891738 | 2021-06-02T02:13:02 | 2021-06-02T02:13:02 | 368,898,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Generated by Django 3.2.3 on 2021-05-21 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='address',
name='house_number',
... | [
"matheus.noronha@solyd.com.br"
] | matheus.noronha@solyd.com.br |
ecb41fb56f8890f13f0b34b3b3a1c309800192b5 | a4957a563bbd3ce322e0cd0fec8e0a37650b5092 | /calculatorv2.py | 289ec6ac8e829cd174995e3ee1cb013560bce9ea | [] | no_license | CodingFluent/Simple-CalculatorV2-Py | 66632717a94d0b27a5c1994b6d5eaf062ee793f7 | 3af99215b4eb8b40cabdc840172506825e27f4e0 | refs/heads/master | 2022-12-10T19:00:53.607598 | 2020-08-31T06:01:54 | 2020-08-31T06:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | a = float(input("Enter First Number => "))
op = str(input("Enter Operation (+, -, *, /, %) => "))
b = float(input("Enter Second Number => "))
if op == "+":
sum = a + b
total = str(f"The sum of {a} + {b} is {sum}")
elif op == "-":
diff = a - b
total = str(f"The difference of {a} - {b} is {diff}... | [
"noreply@github.com"
] | CodingFluent.noreply@github.com |
6d27c8039a8ce6ca14e65e11999fb3c5304f2563 | ef4a4c8de95516700134a45800238de9298e1485 | /zadacha3.py | ccb6d7317053767af297787dfcc42f5ddf4e9f3a | [] | no_license | nikolaj74-hub/lessons | a45d67d380982d245f5950fe6eef3041c7ffbd2e | 54437b8e8063668017d7e29612c0623adb8fce94 | refs/heads/master | 2023-01-23T19:11:18.680790 | 2020-12-04T13:46:02 | 2020-12-04T13:46:02 | 311,939,032 | 1 | 0 | null | 2020-12-04T13:42:39 | 2020-11-11T10:38:48 | Python | UTF-8 | Python | false | false | 1,624 | py | # Реализовать базовый класс Worker (работник), в котором определить атрибуты: name,
# surname, position (должность), income (доход). Последний атрибут должен быть
# защищенным и ссылаться на словарь, содержащий элементы: оклад и премия, например,
# {"wage": wage, "bonus": bonus}. Создать класс Position (должность) н... | [
"noreply@github.com"
] | nikolaj74-hub.noreply@github.com |
218046a18f59c8cc6a566f6a16807e74d5250298 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /packages/pyre/platforms/PackageManager.py | 0877270914d7a2f1326787f57abfbb1ac0125b31 | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
# the framework
import pyre
# declaration
class PackageManager(pyre.protocol, family='pyre.platforms.packagers'):
"""
Encapsulation of host specific information
"""
# requirements
@pyre.provides... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
c8fc1b630938f22c3762d543e169f25db756d2bd | fb23a842c99f9a5238a9c6dfb3ffa6eee5c3e47d | /Salt-api/python版示例/V2/diaoyong.py | f2f32adde67640cdb991d2d8e8fc1ff6f921dc29 | [] | no_license | nanzhushan/Saltstack | 45a492855860a5664f1c0a2099935ae95a17d0de | d9fc85a7be1861b13e6de55de9b6951e405fffb7 | refs/heads/master | 2021-05-31T16:37:09.928023 | 2016-04-11T07:04:10 | 2016-04-11T07:04:10 | 39,339,839 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/python
#coding:utf8
from saltapi import *
#import saltapi
sapi = saltAPI()
#params = {'client':'local', 'fun':'test.ping', 'tgt':'*'}
#params = {'client':'local','tgt':'*', 'fun':'cmd.run', 'arg1':'hello'}
#arg1也可以写成arg
#params = {'client':'local','tgt':'*', 'fun':'cmd.run', 'arg1':'hostname'}
params = {'... | [
"624867243@qq.com"
] | 624867243@qq.com |
e05f09d686cf4fc1af26ff93dd112cabeaac5381 | 60e2b0f728bf7b497e241afdacffaa8ee9203213 | /breast_cancer/breast_cancer_load.py | c7e6f6f48a1be53f7a7d856378b2b85efd42ffca | [] | no_license | yamadayoshi/deep_learning | 43897d59dc3f89ecd4820050b96acacbf653408e | 78bbf5b12011a5d17375b50b75203251003cb3d0 | refs/heads/master | 2021-02-19T01:02:57.934801 | 2020-03-10T20:02:45 | 2020-03-10T20:02:45 | 245,260,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import numpy as np
from keras.models import model_from_json
#read json file
file = open('breast_model.json', 'r')
network = file.read()
file.close()
#load model from json and weights
model = model_from_json(network)
model.load_weights('breast_weights.h5')
novo = np.array([[10.2,5.6,155.0,15.4,18.5,75.5,15.9,79.4,56.... | [
"andre.yamada@digiage.com"
] | andre.yamada@digiage.com |
d5408abdee9094c62381748340a424756eef3c8c | 9d61daee8ec86d1c3b85ab577c4d0ffc5c4c4a7c | /code kata/summm.py | d8927006714e70f2f8448e2ce4032b3d9075ff48 | [] | no_license | Bhuvaneswaribai/guvi | ec3d2a922059859c778b78920d52936a44edbca8 | ab6bb1193af49dbc431d5eb7ae19050d11aa622c | refs/heads/master | 2020-06-03T00:11:14.636796 | 2019-07-04T11:30:00 | 2019-07-04T11:30:00 | 191,355,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py |
nuumber=int(input())
a=list(map(int,input().split()))
sum=0
for i in a:
sum+=i
print(sum)
| [
"noreply@github.com"
] | Bhuvaneswaribai.noreply@github.com |
425be2dac09edaf397a3412fc17709976e67201f | de7a39129bf471d4d4be25c65174916a505146e6 | /book/examples/weave_examples_simple.py | 1dc25d425bcf85bc9a527aca248b38e6572a0caa | [] | no_license | jdh2358/py4science | a6da01de9cb16709828bfd801bf7faf847f346bb | a56c742ec2e0a31c2251468d9947ebaf707346d7 | refs/heads/master | 2016-09-05T22:18:38.520426 | 2009-12-05T17:47:26 | 2009-12-05T17:47:26 | 1,418,846 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """Some simple examples of weave.inline use"""
from weave import inline,converters
import Numeric as nx
from pylab import rand
#-----------------------------------------------------------------------------
# Returning a scalar quantity computed from a Numeric array.
def trace(mat):
"""Return the trace of a matrix... | [
"jdh2358@gmail.com"
] | jdh2358@gmail.com |
2e9d8f40ea73bf3323400de1ac413068f242e213 | 313978a9a5a1f0824a6f2bfb948e1a4ec0225213 | /4-iteração/lazy iterable e iterator.py | 7337513a1d77423de94a8c51d7d35f8de1e0a3f6 | [] | no_license | wallacex19/python | 71ae310a6a6ec2f1c8c80d4ad2bee7db2d391d13 | 99f11249fec5e001e10b2a155c2608e9b8b420ec | refs/heads/master | 2023-04-08T22:41:34.259091 | 2021-04-23T20:58:18 | 2021-04-23T20:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | # O objeto range em Python 3 (xrange em Python 2) pode ser executado em loop como qualquer outro iterável:
for n in range(3):
print(n)
# E como o range é iterável, podemos obter um iterador a partir dele:
iter(range(3))
# R:<range_iterator object at 0x7fe173542ed0>
# mas objetos range não sao 6-iteradores por... | [
"pedromadureira000@gmail.com"
] | pedromadureira000@gmail.com |
acc5c7355bf61f8fbde46568884e95f5b124e22c | 4cfb9d75361f3c7f50744878e645073e3a8fc8d4 | /sinx+sinx fft.py | ab1696136d9a7c9f87d523e156f07203ab760d85 | [] | no_license | mychenyoke/gwwave1 | ac99c982b5037e8afff42e3055de366ddd8543dd | 7520846ab848ac2434db11ceb66a271d5ab68270 | refs/heads/master | 2020-03-18T13:47:02.888171 | 2018-05-28T15:18:36 | 2018-05-28T15:18:36 | 134,808,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import numpy as np
import matplotlib.pyplot as plt
omega1=0.1
omega2=0.2
sample_rate=20
a=np.arange(0,100)
sina=np.sin(omega1*a)
sinb=np.sin(omega2*a)+np.sin(omega1*a)
plt.figure(figsize=(10,24))
plt.subplot(4,1,1)
plt.title("sinax")
plt.plot(a,sina)
plt.savefig("sinax")
plt.subplot(4,1,2)
plt.t... | [
"noreply@github.com"
] | mychenyoke.noreply@github.com |
21a7d146b5d95f1fee3c58b4e611dd502e854c74 | 83fb26fc9fe96c5821c7a13468f205ca6eb4fcda | /ICP exercise and assignment/A01/A01_exercise1.py | 2662b1fc38669910f481aa07bc1481af8bf91817 | [] | no_license | zc2214/Introduction-to-Computer-Programming | e58355fc732a2eacf29aa5141573e64ef1c3f27e | 95f5e36f102c5ebeeb628b61c3fdad416082ab4f | refs/heads/main | 2023-08-11T23:44:54.766836 | 2021-09-22T14:45:54 | 2021-09-22T14:45:54 | 323,836,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # PROGRAMMING ASSIGNMENT 01
# Filename: 'exercise1.py'
#
# Write a program that does the following (in the specified order):
# 1. asks the user to input his family name
# 2. asks the user to input his given name
# 3. then, prints the message Hello <given name> <family name> !!!
#
# WRITE YOUR CODE AFTER THIS LI... | [
"noreply@github.com"
] | zc2214.noreply@github.com |
71c917f941655f147f642dba17548ed3889df18d | 3328e95f5a8498ab366aec380f0e1822826ba7a9 | /puppy.py | 5ecb1fddd03ca00ec9d69d3d7ed91e3934b08270 | [] | no_license | Abhiram1214/opencv | 6e9dd53cc08c54a8e1ce6f0c297fda451ddb7c31 | 653a9ccddbc188679bc9afe8f83d98a93b47cf3d | refs/heads/main | 2022-12-26T12:03:41.308652 | 2020-10-11T12:01:53 | 2020-10-11T12:01:53 | 301,957,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import cv2
import numpy as np
'''
img = cv2.imread(r'C:\Users\cvenkatanagasatya\Pictures\Open CV\Computer-Vision-with-Python\DATA\puppy.jpg')
while True:
cv2.imshow('puppy', img)
#if we waited for milli second and we pressed the esc key
if cv2.waitKey(1) & 0xFF == 27:
break
cv2.destroyAllWindows(... | [
"noreply@github.com"
] | Abhiram1214.noreply@github.com |
941b70169ea0201bf4913ade211f0567886e5ca5 | 4c85452e12ad3d8ca08f91df21ff4c6812a9e3b7 | /tests/invalid_boards.py | 7ca7cb9830cd75f57154384786df9870880d65b6 | [
"MIT"
] | permissive | lesander/takuzu | 452ad7b0b8abc76647b8542118c91be6e3cb8ee7 | d0a913ce57a3234eaf17afd3c858f17c3f1e31e5 | refs/heads/master | 2022-07-05T17:01:48.117658 | 2020-05-21T23:00:25 | 2020-05-21T23:00:25 | 265,910,685 | 1 | 0 | MIT | 2022-06-22T02:06:48 | 2020-05-21T17:28:17 | Python | UTF-8 | Python | false | false | 299 | py | from takuzu import Takuzu
boards = [ [], [None], [1, 0, None], [ [], [] ], [ [1,0] ], [ [1,0], [1] ] ]
for b in boards:
try:
t = Takuzu(board=b, debug=True)
except AssertionError as e:
pass
else:
raise Exception('board={} should throw AssertionError'.format(b))
| [
"lesander@users.noreply.github.com"
] | lesander@users.noreply.github.com |
820708161506216faa57b389f2f0890d60afef5d | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible/modules/cron.py | 2424f5c065543ddd96be359b69a92e58495389fd | [
"MIT"
] | 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 | 26,537 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2012, Dane Summers <dsummers@pinedesk.biz>
# Copyright: (c) 2013, Mike Grozak <mike.grozak@gmail.com>
# Copyright: (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>
# Copyright: (c) 2015, Evan Kaufman <evan@digitalflophouse.com>
# Copyright: (c) 2015, Luca... | [
"sifang@cisco.com"
] | sifang@cisco.com |
68caed12611a8b789a1964a22fb49575eca70c7f | 76d388b5d2e74ff0eda748c7868fadf0704cf700 | /tensorpack/utils/develop.py | 496de1dd245db766c3e4ba256ddb638d5e621b48 | [
"Apache-2.0"
] | permissive | jooyounghun/tensorpack | eebf0867e5a82ffd52660dccfbd34879b8d0f5af | 90cdae380c40a1e91f627520c4a739bd6ee3f18b | refs/heads/master | 2020-03-23T23:24:41.651089 | 2018-07-27T02:57:19 | 2018-07-27T02:57:19 | 142,232,523 | 1 | 0 | Apache-2.0 | 2018-07-25T01:45:06 | 2018-07-25T01:45:05 | null | UTF-8 | Python | false | false | 4,773 | py | # -*- coding: utf-8 -*-
# File: develop.py
# Author: tensorpack contributors
""" Utilities for developers only.
These are not visible to users (not automatically imported). And should not
appeared in docs."""
import os
import functools
from datetime import datetime
import importlib
import types
import six
from . imp... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
311ba855cf35a4765fce0410377fb7f5eb4aa8a4 | c56448aa3553d1a5ab71099e741fa71c15d539cb | /stations/urls.py | 817356c4760a4af8560f60d4abb533fc1d2a9d3e | [] | no_license | Jack11709/django-underground | 8591cba5fbcd9e2202fbaefa1a95057d4258477d | 60b868ce5dcb5001761c5207cfd764474ec8f19a | refs/heads/master | 2022-06-04T04:11:14.667519 | 2019-10-31T09:50:46 | 2019-10-31T09:50:46 | 218,318,167 | 0 | 0 | null | 2022-05-25T03:24:00 | 2019-10-29T15:19:03 | Python | UTF-8 | Python | false | false | 588 | py | from django.urls import path
from .views import StationList, StationDetail, ZoneList, ZoneDetail, LineList, LineDetail # import our DRF views
urlpatterns = [
path('stations', StationList.as_view(), name='stations-list'),
path('stations/<int:pk>/', StationDetail.as_view(), name='stations-detail'),
path('zo... | [
"jack.may@generalassemb.ly"
] | jack.may@generalassemb.ly |
d86cb55284f9ec406e508cb0da30cb1564736a7e | 919fd48a34ca200086f51905d64c21c3b31b6739 | /CodeMixed-Text-Generator/cm_text_generator/grammar_inference.py | 0449999d7ffce757d92333a845762acfcc6197a9 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"BSD-2-Clause",
"MIT",
"Python-2.0",
"PSF-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | mohdsanadzakirizvi/CodeMixed-Text-Generator | e89b758ad88a622c058bf1465003ae3c23a55b88 | 47740eeff3ecb46f5294711f4fe5d3a03a6e0b54 | refs/heads/main | 2023-06-15T22:43:21.578533 | 2021-04-13T09:16:24 | 2021-04-27T12:46:19 | 384,061,885 | 0 | 0 | MIT | 2021-07-08T08:54:14 | 2021-07-08T08:54:14 | null | UTF-8 | Python | false | false | 1,853 | py | ###GRAMMAR INFERENCE
from .data_structure_definitions import *
def ruleEnlister(root, grammar):
if root.token=="XXXXX":
cond=False
for rule in grammar: ##check false/true
if (rule.lhs.nonTerminal==root.label and len(rule.rhs)==len(root.children)):
#print "Using old rule!"
con... | [
"mohdsanadzakirizvi@gmail.com"
] | mohdsanadzakirizvi@gmail.com |
a4c71809c35378bb39dbbce97d55d2a122ab4dcd | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/05_tictactoe/02grid_plot.py | b2fb6cbc7f65ddac4fc048c6664f6bdd82dfb227 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | #!/usr/bin/env python
import numpy as np
import itertools
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
class gameboard(object):
def __init__(self):
#player 1 puts a "X", player 2 puts a "O"
self.g = [[1,0,1],[0,0,2],[0,2,0]]
self.grid = np.arr... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
622914c9a6c8f38dd5339009d187c1a23ea57bf5 | 6bd1aa6b80fd93fd65f3e3f9c6b4cc743fabc076 | /Laboratorios-Big-Data/MOOC/KMeans/KMeansHackers.py | 94bd8290cb1a8e974ee767a073e4064bc5d47159 | [] | no_license | RAricardo/Laboratorios-Big-Data | 617a7adc5531d29653b65af0a3a3e885a0aa42e8 | 04ebc65ae83007407e9e14f38774ef77a21cbe31 | refs/heads/master | 2020-04-29T05:09:51.189057 | 2019-04-08T17:00:46 | 2019-04-08T17:00:46 | 175,872,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | # Databricks notebook source
from pyspark.sql import SparkSession
# COMMAND ----------
spark = SparkSession.builder.appName("Kmeans").getOrCreate()
# COMMAND ----------
data = spark.read.csv("/FileStore/tables/hack_data.csv", inferSchema=True, header=True)
# COMMAND ----------
data.printSchema()
# COMMAND ------... | [
"rrazopardc@eafit.edu.co"
] | rrazopardc@eafit.edu.co |
96eb58da2807780f7f78eb49453cd03e2e4a57bb | 33f30925224a7db3e3bf6948c6c569ad850e9c76 | /Server/bin/rst2xml.py | 6a7fab179644d60c2959331900cdea30a7350337 | [] | no_license | duelle/CTT | 2bc64fffaf4b2eb3976fedd7aea231a51da8fbe9 | e2da2ab9c599833cc8409728b456a9e37825986b | refs/heads/master | 2022-04-06T15:25:06.747919 | 2020-02-19T14:04:37 | 2020-02-19T14:04:37 | 237,939,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/home/duelle/Repositories/git/RadonCTT/Server/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import l... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
bcded7ca3347b631cb06ccb49aa49c5ef2291909 | 6cb18c62758bfbf783d3fabe851d1c4d9f323483 | /setup.py | 9319f44e05f51de89cc40224949e07be98a9e018 | [
"MIT"
] | permissive | bruinxiong/performer-pytorch | 68e505ff5e59d35e339b23661feef377795fd2df | c368b5e4efd46f72e2abaa655dc813021f911014 | refs/heads/main | 2023-01-04T02:25:42.898296 | 2020-10-26T22:41:09 | 2020-10-26T22:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from setuptools import setup, find_packages
setup(
name = 'performer-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.1.4',
license='MIT',
description = 'Performer - Pytorch',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.com/lucidrains/perform... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
c514c9650b93f135aac41cc8d73c464420d4b318 | f7e1ada65e270fe2961df46179798ba522949e5c | /main1.py | 37d1622998e259cd937474a1130d59c95377e6c3 | [] | no_license | fabian6768/WebsiteManager | 36fad06af38298f25592fd2680837c6a1eb6a9b9 | d10148e83e5533bbb3ece9018fd75db33a036138 | refs/heads/master | 2021-01-12T08:29:55.355610 | 2016-12-15T21:49:31 | 2016-12-15T21:49:31 | 76,597,511 | 0 | 1 | null | 2020-10-01T11:34:14 | 2016-12-15T21:28:28 | Python | UTF-8 | Python | false | false | 3,578 | py | #This Is A Program
from csv import *
from tkinter import *
from tkinter import messagebox
import webbrowser as wb
a=1
class Second(object):
def __init__(self):
self.t = Tk()
self.t.title("Website Library")
self.t.geometry("500x350")
self.t.configure(background="#ddaf7e")
... | [
"fabian6768@yahoo.com"
] | fabian6768@yahoo.com |
9cc2c3e325d074bfd93da7cd26d488883eadd91a | dd83f3a356278cd5ede9efa5ab25a93e258ef6b7 | /slowfast/models/vit_helper.py | afa96024b9244b5160c7ff9fba7708ce3beda16c | [
"Apache-2.0"
] | permissive | XrosLiang/Motionformer | 9debfcaed5c68cce27ec3d1f5ebc409ae81066c5 | 890bded4139dc4b17e344ea9c090bf2de4dd2678 | refs/heads/main | 2023-06-02T16:50:06.222720 | 2021-06-12T11:38:24 | 2021-06-12T11:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,425 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# Copyright 2020 Ross Wightman
# Modified Model definition
"""Video models."""
from einops import rearrange, repeat
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torc... | [
"mandelapatrick@devfair0297.h2.fair"
] | mandelapatrick@devfair0297.h2.fair |
1697ff12097d074fe9a08b7e8cfbf1ecd1348016 | cca89a7bbe2da907a38eb00e9a083f57597273f0 | /162. 寻找峰值/pythonCode.py | ecfc5d414241c3d0b4d2b4aac3531e9ced628696 | [] | no_license | xerprobe/LeetCodeAnswer | cc87941ef2a25c6aa1366e7a64480dbd72750670 | ea1822870f15bdb1a828a63569368b7cd10c6ab8 | refs/heads/master | 2022-09-23T09:15:42.628793 | 2020-06-06T16:29:59 | 2020-06-06T16:29:59 | 270,215,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from typing import List
class Solution:
def findPeakElement(self, nums: List[int]) -> int:
def binarySearch(l:int,r:int) -> int:
if(l == r): return l
mid = (l + r) // 2
if(nums[mid] > nums[mid + 1]):
return binarySearch(l,mid)
else:
... | [
"changwenhao1@qq.com"
] | changwenhao1@qq.com |
d5e7ae3bd1017599518278f12c78a1b1a2662ff3 | 4138376af721c583944882b68235746cd9637fd6 | /7/sunjiayin/cpNbnet.py | 305e2c1c4681006598eb80310af7c334d54f7acb | [] | no_license | hulaoan/homework-arch-5 | 9df792281b7ac92abc166ad80e69a5c2a59b2c9e | 1c1b07f8ebb1b2f9906c0cd29cef8227fed3c7fd | refs/heads/master | 2021-01-14T13:58:05.883628 | 2015-12-25T05:05:16 | 2015-12-25T05:05:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,361 | py | #!/usr/bin/env python
# coding:utf-8
import socket
import select
import time
import pdb
__all__ = ["nbNet"]
from nbNetUtils import *
class STATE:
def __init__(self):
self.state = "accept" #定义状态
self.have_read = 0 #记录读了的字节
self.need_read = 10 #头文件需要读取10个字节
self.have_wri... | [
"sunjiayin@teach.works"
] | sunjiayin@teach.works |
45b76c5185d0e6d5434ffd0717722d4e1b9aa0c1 | c744b20f4d5f4035dd81bf515f6e969a67299309 | /lists/migrations/0006_auto_20150825_1407.py | 34243587e4fd8a04e03184790c2e99036ba5781f | [] | no_license | jian-en/flyingjay-superlists-project | 14c94e16658e6aef76019847423b6fd0ac01eebe | 2c8ad9dfd26d68237b065797f3132872eb0cdaa5 | refs/heads/master | 2021-01-02T09:43:37.631559 | 2015-11-03T03:55:03 | 2015-11-03T03:55:03 | 40,744,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('lists', '0005_auto_20150823_0227'),
]
operations = [
migrations.AlterField(
model_name='item',
name=... | [
"fujian_en@126.com"
] | fujian_en@126.com |
55c5e4126f52501d3ab1f9cd4f9c49c47dc30d18 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ZXR10-MACPING-MIB.py | 805cbd59b0fb3a90dcafa3b37ef03e6abdf405d0 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,798 | py | #
# PySNMP MIB module ZXR10-MACPING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MACPING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:42:08 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
e8f79267ba52969b4af0a0f02f9340977750ba24 | 5002ec313e12d6e5f58d5ef41ea265084ff96373 | /信息收集工具/modular/Subdomain_name_query.py | ff3d469ff26e6418b763ef974be8e1beb300a2bd | [] | no_license | IVorder/python | 9a8dc46d69fb9b5c3d65509348595623b8d47a8a | 6b60a13dda471ed3f1380b6bf014a33f185e6033 | refs/heads/master | 2020-06-21T22:43:41.838924 | 2019-07-18T10:21:28 | 2019-07-18T10:21:28 | 197,569,599 | 10 | 4 | null | 2019-07-18T10:55:49 | 2019-07-18T10:55:47 | null | UTF-8 | Python | false | false | 2,369 | py | # @author:九世
# @time:2019/7/2
# @file:mian.py
from gevent import monkey;monkey.patch_all()
import requests
import config.config
import warnings
import gevent
from multiprocessing import Process
import dns.resolver
from bs4 import BeautifulSoup
from gevent.lock import RLock
warnings.simplefilter("ignore"... | [
"noreply@github.com"
] | IVorder.noreply@github.com |
f716de44a80a10f01bfaa8b3a8d58b4ec092c945 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.71/bluedon/monitor/sbin/checkproc.py | cd3521785adb14ce48baf65ec961b05655ab0e50 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import os, re, sys
rexplogstart = re.compile(r'grep logstart.pl')
rexpwebvisit = re.compile(r'grep webvisit.pl')
def checklogstart():
if not os.path.exists("/usr/local/bdwaf/logs_bridge/data"):
os.popen("mkdir -p /usr/local/bdwaf/logs_bridge/data")
if not os.path.exists("/usr/local/bdwaf/logs_proxy/da... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
98d80763957c0adf4a839f4d123400647c1b2d7f | 950fd350aba8c7584b8f362b2e5079b5010a1f6a | /lib/Sockets.py | aeb577b91be8e75da756909611e728e080dff370 | [] | no_license | entr0pist/fakeircd | 96814755b0b2041bc14db8f942680c47f5ea56b0 | 43a88be91aa6337e1eacaeadaa20dcdb2bccd3a2 | refs/heads/master | 2020-06-07T10:34:36.562878 | 2015-11-10T04:02:38 | 2015-11-10T04:02:38 | 42,418,758 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | from lib import config
from lib import linechat
from lib.User import User
class Sockets:
def __init__(self):
self.server = linechat.Serve()
def add_sock(self, sock):
self.server.add_sock(sock)
def rm_sock(self, sock):
self.server.rm_sock(sock)
def serve(self):
self.s... | [
"entr0pist@users.noreply.github.com"
] | entr0pist@users.noreply.github.com |
672f47dbc06ff7e663a43bfdf34432fe9a92e2f4 | 5875c68d4e34193b9e565a6f34469612cfdc649c | /pyMap_0.9.4/pyCursors.py | a63f9c2bdf12abc465b5df4d587e61b1599a645e | [] | no_license | Naxs-me/Software_development_tycoon | 59d7059fb21b1655b05ad0057e17033603ec7377 | b8a6166589a6231e607001ef84f927d2d15792c0 | refs/heads/master | 2020-12-15T00:13:25.496993 | 2020-01-19T16:01:03 | 2020-01-19T16:01:03 | 234,924,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | #31 lines of code (7/21/2012)
import pygame
import os
#the images size must be a multiple of 8
#the image must contain only 3 colors
#(0,0,0)black, (255,255,255)white, (255,0,255)tranparent(pink)
def set_cursor_from_image(image, hotspot = (0,0)):
#if os.path.isfile((cwd+'/'+image)):
img = pygame.image.load(ima... | [
"naxs.me@gmail.com"
] | naxs.me@gmail.com |
7ef2579880b9b7ec614ed66ecd323b2e3604e749 | 6eaca1b3ada96264bdad964652c19365f982025a | /QPainter/__init__.py | 0a9a28d278c61ebd50c91b5166dc7748582e2115 | [] | no_license | RahulARanger/My_Qt-Py_Book | 4c7e4dfc9a1d1ec8a587d3bbb722fc64f6de1008 | 396280e9110d11c9c297bf83f332411b98c98453 | refs/heads/master | 2023-08-15T01:42:33.415854 | 2021-10-01T19:44:50 | 2021-10-01T19:44:50 | 320,230,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import RashSetup.__RashModules__.Rash.ApplicationManager
from .MemeGen import *
class UTIL(TabWindow):
def __init__(self, shared: dict):
Rash: RashSetup.__RashModules__.Rash.ApplicationManager.RashMain = shared["RASH"]
super().__init__(Rash)
self.Generator = MemeGenerator(self)
se... | [
"saihanumarahul66@gmail.com"
] | saihanumarahul66@gmail.com |
9d15855256587b846eda68310ac6b8af5d598e25 | eb91e8711243b70b14c38f17dbc7951dab430d2a | /run.py | 8e560403e372b20fd1127318b95c7d69ec841267 | [
"MIT"
] | permissive | LittlePanic/Flask-Vue-Singlepage-Project | 718d96390df99ee0f3654f8578073501ce5e3092 | 3d8ddad9dd2a4a41e76e3e248f31a4505801ea83 | refs/heads/master | 2022-12-23T19:36:06.992444 | 2018-07-05T03:38:59 | 2018-07-05T03:38:59 | 139,595,156 | 0 | 1 | MIT | 2022-12-16T22:20:15 | 2018-07-03T14:26:41 | Python | UTF-8 | Python | false | false | 80 | py | from backend.app import app
if __name__ == "__main__":
app.run(debug=True)
| [
"2177890574@qq.com"
] | 2177890574@qq.com |
185a3393a192094de5e11ae5133799e98d58a651 | 9b04206109e36d5f4f7cc4820546546ac239c5e0 | /greedy/ATM_problem.py | 39cc9ea015a03ed7d3442b6e7512c88cda49fc4d | [] | no_license | joon3007/Algorithm | 28417fffde40a79aac54375b57b31071dcf6bc4d | e45b6379f67272db0997156deca5713aa2113348 | refs/heads/master | 2022-12-14T01:33:25.050675 | 2020-09-09T12:36:02 | 2020-09-09T12:36:02 | 291,960,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | '''
description
인하은행에는 ATM이 1대밖에 없다. 지금 이 ATM앞에 N명의 사람들이 줄을 서있다.
사람은 1번부터 N번까지 번호가 매겨져 있으며, i번 사람이 돈을 인출하는데 걸리는 시간은 Pi분이다.
사람들이 줄을 서는 순서에 따라서, 돈을 인출하는데 필요한 시간의 합이 달라지게 된다.
예를 들어, 총 5명이 있고, P1 = 3, P2 = 1, P3 = 4, P4 = 3, P5 = 2 인 경우를 생각해보자.
[1, 2, 3, 4, 5] 순서로 줄을 선다면, 1번 사람은 3분만에 돈을 뽑을 수 있다.
2번 사람은 1번 사람이 돈을 뽑을 때 까지 기다... | [
"joon4141@gmail.com"
] | joon4141@gmail.com |
d732b74a12857a9cfedd5615c35c20fd705c8355 | b05e271e498ab231c8e6fd650826cb98a1887c5f | /main.py | 59838bcf3d74bddadd669b317a56301dacea99a9 | [
"MIT"
] | permissive | tian409/joint-computation-offloading-and-resource-allocation | 1074e6bee92303757561a0b6a6dfee8663584f3f | 13e68b71c8e9ae7347a82294a355266c3ce28a81 | refs/heads/master | 2023-04-03T15:08:49.180165 | 2021-04-04T05:37:46 | 2021-04-04T05:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | # -*- coding: utf-8 -*-
import copy, json, argparse
import torch
from scenario import Scenario
from agent import Agent
from dotdic import DotDic
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
def create_agents(opt, sce, scenario, device):
agents = [] # Vector of agents
for i in range(opt.... | [
"fenghao2018@bupt.edu.cn"
] | fenghao2018@bupt.edu.cn |
dc95cfc1d53773ef74245ed5c8a5b6bbbf3ce933 | 65e076e4fcc00a67faa0932b3f3a3d3a3a11e2aa | /sdk/python/pulumi_google_native/datastore/v1/_enums.py | 15df09472641b2ebbeb23bd87aeab08fb357fbf9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | TheJaySmith-Google/pulumi-google-native | 816babe5c7316724e02d5b8b9d789df00262bb8e | 566c295a39fe8c3dd16e4a7894ff6de72423e5da | refs/heads/master | 2023-06-05T06:45:19.979837 | 2021-06-23T11:42:27 | 2021-06-23T11:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'GoogleDatastoreAdminV1IndexedPropertyDirection',
'IndexAncestor',
]
class GoogleDatastoreAdminV1IndexedPr... | [
"noreply@github.com"
] | TheJaySmith-Google.noreply@github.com |
7bf8347897e39eb95aac73a02b6b6f56d93586c6 | d2fb817130e9d8f40dc25fec5e8e5e7d42f91ec7 | /scons_gbd_docs/Gbd/Docs/Mkdocs/MkdocsBuild.py | a54edcf9ea65abd0a9e048337b5f47f23b444f26 | [
"MIT"
] | permissive | ASoftTech/Scons.Gbd.Docs | 1d8a32aed7a4b43186ea661baee6fef1832eb266 | 4d9fb7585d9565f57306774efb4342fe9b8822f2 | refs/heads/master | 2020-03-08T12:58:35.290077 | 2018-05-28T20:48:23 | 2018-05-28T20:48:23 | 128,145,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | """
This tool will generate the documentation output as html
using markdown files as an input via mkdocs to an output directory
"""
from __future__ import (division, print_function,
absolute_import, unicode_literals)
import SCons.Script
from SCons.Environment import Environment
import os
impor... | [
"garlicbready@googlemail.com"
] | garlicbready@googlemail.com |
aafbc6488301d7e48ce363affc42a6a4fdd24a02 | 5fa4b8a36eec770bd740b6016030d2843cac8329 | /trial_scripts/do_multiprocessing.py | e3269fc1eac7ab4e43440377e0b0e23ed103b1c8 | [] | no_license | sysang/word-prepresentation-training | 79ffe4355b2f66dfd7c09625cc430dd65815c937 | 79565d8f69c31f4938f079517db7ff7c53ec54aa | refs/heads/master | 2022-12-22T10:22:52.649259 | 2020-10-03T17:04:08 | 2020-10-03T17:04:08 | 293,590,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from multiprocessing import Process
from multiprocessing.sharedctypes import RawValue
import ctypes
def f(n):
n.value = 'hello!!'
if __name__ == '__main__':
num = RawValue(ctypes.c_wchar_p, 'abc')
p = Process(target=f, args=(num,))
p.start()
p.join()
print(num.value)
| [
"daosysang@gmail.com"
] | daosysang@gmail.com |
20dcb6e05c6420b481455112a093bca40a513956 | a219c9b0f3ccd1b35c3bb7bb3c7b50e1d9d8ef93 | /arasınav_tbb_s4.py | ce88476ccc8238735b3aadf7d040888c661fa98e | [] | no_license | f0xmulder/python_ornekleri | 3293541b5d4e594dc39e6df623e47ecd4e5e94c2 | d1ebbcefdd7390a4e20a61864b150097f9919e29 | refs/heads/master | 2022-11-04T07:12:20.766931 | 2017-06-22T13:30:45 | 2017-06-22T13:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # Soru 4
element = ""
tur = -1
cikti = ""
def turOgren(deger):#okunan karakterlerin büyük,küçük veya sayı olup olmadığını bu fonksiyon saysinde anlıyoruz.
if ord(deger) >= 65 and ord(deger) < 91:#karakterin ascii kodu bu değer aralığındaysa büyük harf
return 2
elif ord(deger) >= 97 and ord(deger) < 123:... | [
"noreply@github.com"
] | f0xmulder.noreply@github.com |
ea6bb392af9c9e6b8d6c5ecb56a68b0cb11577a6 | 7040d642877f70360ca88a065ccf92b3c63dfd7b | /剑指 Offer 18. 删除链表的节点.py | f351503d1cc241f162b76a62e9ddfe892195285b | [
"BSD-2-Clause"
] | permissive | YuLili-git/leetcode_offer | 077fb1864f1c8e3258f5b9f065b7c0e71c8ccf8f | 268940aa4e57a02fe635b7d6f6038f2b204ca968 | refs/heads/main | 2023-08-24T19:07:37.650616 | 2021-10-13T16:07:28 | 2021-10-13T16:07:28 | 370,324,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | #给定单向链表的头指针和一个要删除的节点的值,定义一个函数删除该节点。
#返回删除后的链表的头节点。
#注意:此题对比原题有改动
#示例 1:
#输入: head = [4,5,1,9], val = 5
#输出: [4,1,9]
#解释: 给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9.
#示例 2:
#输入: head = [4,5,1,9], val = 1
#输出: [4,5,9]
#解释: 给定你链表中值为 1 的第三个节点,那么在调用了你的函数之后,该链表应变为 4 -> 5 -> 9.
#说明:
#题目保证链表中节点的值互不相同
# Definition for si... | [
"noreply@github.com"
] | YuLili-git.noreply@github.com |
37307f0abd5565002723b66dd7bdb750cebcbf2a | 69a4e83cad7b3d5e5f35761e7223002a6940d061 | /2/2.py | 98627f4f26b66f99efa3bfbffdaddc29b90b2d8d | [] | no_license | c0mr4d3/adventofcode2020 | 408d01863b1b94872c77ab1b75e210c7b975574c | 6e506d4b170e045643ffdbd095b4a209721670ec | refs/heads/main | 2023-01-21T15:25:22.486170 | 2020-12-04T07:38:13 | 2020-12-04T07:38:13 | 317,858,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | arr = [x[:-1] for x in open("/home/comrade/Funstuff/adventofcode2020/2/input.txt").readlines()]
count = 0
for s in arr:
maxm = int(s[s.index("-")+1:s.index(" ")])
minm = int(s[:s.index("-")])
chrr = s[s.index(" ")+1]
pas = s[s.index(": ")+2:]
if (pas[minm-1]==chrr) != (pas[maxm-1]==chrr):
... | [
"siddharthsingh.17june@gmail.com"
] | siddharthsingh.17june@gmail.com |
ad6320700a9871fd710ca5dc3b06b8878292f571 | 45a5c06c89d84e689b528ebd05f982914dc9f0f2 | /rl_bolts/buffers.py | a53f82d1a6403bd000f4ecf561fe9bcbc8924a79 | [
"Apache-2.0"
] | permissive | jfpettit/rl_bolts | be0f2e56af3bab2effd5c0a0723b5eb13050fa2a | c3c3b3f91ee192048912fd48f2655b46526918a7 | refs/heads/master | 2022-11-30T15:53:32.316481 | 2020-08-14T05:45:47 | 2020-08-14T05:45:47 | 285,760,715 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,576 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_buffers.ipynb (unless otherwise specified).
__all__ = ['PGBuffer', 'ReplayBuffer']
# Cell
import numpy as np
from scipy.signal import lfilter
from typing import Optional, Any, Union
import torch
import gym
# Cell
class PGBuffer:
"""
A buffer for storing traj... | [
"jfpettit@gmail.com"
] | jfpettit@gmail.com |
39042a14dedf3d1a3d6e06d5f15a0915493b8514 | 66a967fac0bc5dfdfe28ad0fd5464ed9113429bd | /HobbyCoding/src/ListPermutation.py | 6e6d6a9ef2a7a7f0a2211dc22bed93437611220c | [
"Apache-2.0"
] | permissive | inspectorG4dget/Hobby-Coding | a37430320e7a74805bc7740933e217d004fa9714 | 41e82dbcc73e328b43bebd037b2df414f0837ca6 | refs/heads/master | 2020-12-24T17:17:37.589058 | 2012-07-10T05:18:56 | 2012-07-10T05:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | '''
Created on Oct 4, 2010
@author: ashwin
Licensed to Ashwin Panchapakesan under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
Ashwin licenses this file to You under the Apache License, Version 2.0
(the "Lice... | [
"topgunzurhero@gmail.com"
] | topgunzurhero@gmail.com |
ce978aea403ff050f84bd8c5e869fff0a69f22c8 | fc22d8e8178aa4a47d360f1c83990ee8be1fc20e | /tools/md5_function.py | d2ce3e93b1ac9467b50883af0188b3663e7af8bb | [] | no_license | moujiangliu/interface | a13b5ebe86439f2bae55cbecd02ab5e65a77288b | b6e968271cb9bd1287a9b4950a6ccb69a7720036 | refs/heads/master | 2023-02-03T08:56:43.205534 | 2020-12-25T17:05:02 | 2020-12-25T17:05:02 | 323,383,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # -*- coding:utf-8 -*-
import base64
import hashlib
class Secret(object):
'''
实现各种加密方式
'''
def __init__(self, string):
self._string = string.encode('utf-8')
def md5(self):
'''
md5加密方法
:return:
'''
try:
sign = hashlib.md5(self._string).he... | [
"moujiang.liu@aliyun.com"
] | moujiang.liu@aliyun.com |
90f284e04501a00ff62afab5f4d11a2ad546a865 | 54dbbf0b3dd9ace6e3b51cb2632ae1d9302ea529 | /编程小白的第一本 Python 入门书/类.py | d34cba3071a14e5a5166c402a9777084329ebe7a | [] | no_license | zzxmona/pythontrain | c42f0bb89f31fea3149b21db38f74f03f3872946 | afcfa9ba533b52adef86d51e98cc96abb3a627d5 | refs/heads/master | 2023-04-30T20:28:44.239500 | 2021-05-31T01:27:49 | 2021-05-31T01:27:49 | 364,789,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | # 类的实例化最好加()以免报错
class z:
con = [1, 2, 3, 4]
name = 'zzx'
__name = 'zzx'
abc = z()
print(abc.con)
print(z.name)
class two:
def __init__(self, final):
self.x = final
def name2(self):
print('zzx', '22')
def name3(self):
return 'zzx'
def name4(self, name5):
... | [
"2577625924@qq.com"
] | 2577625924@qq.com |
fb2e193a24ae586d0c3d286e0fec5f4ca52eaf14 | 674f1ecdd8a196b5a271b556ed7e4d274fde63a1 | /article/migrations/0002_auto_20161129_2304.py | 65e17784a9ab696ab9749961108d38c587c88ee8 | [] | no_license | baby5/Django-Blog | fc57c06bac110c56662bcea20eb9c18579d20827 | 1e2f1a8b0589d87dea023d7e6d78376d0880ca27 | refs/heads/master | 2021-01-13T13:19:13.836449 | 2016-12-20T10:49:23 | 2016-12-20T10:49:23 | 72,647,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-29 15:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
... | [
"zxnzysj@163.com"
] | zxnzysj@163.com |
04ae589706bee6d73d70525a05dd97e1c16387fc | bf45d6fe3d0c6ee6e74c0c63c4206eee72361383 | /sketchit/draw.py | 58ebbb85db158fb5ff66bb82afb2a06c4ddb2b3d | [
"MIT"
] | permissive | tambibhavika2000/sketchme | 00d6273b5b4523dc8a1e5f3d22fd58790af80896 | 00c7ccff4531d48fb5ef2c403c4bb0e0b1c749bd | refs/heads/main | 2023-07-13T06:32:13.071137 | 2021-09-01T12:58:01 | 2021-09-01T12:58:01 | 402,060,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import cv2
def sketchit(path):
image=cv2.imread(path)
grey_img=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
invert=cv2.bitwise_not(grey_img)
blur=cv2.GaussianBlur(invert,(21,21),0)
invertedblur=cv2.bitwise_not(blur)
sketch=cv2.divide(grey_img , invertedblur,scale=256.0)
cv2.imwrite('sketch... | [
"noreply@github.com"
] | tambibhavika2000.noreply@github.com |
ef168493665590dfa9c2c362d6e87e14550a7162 | 1e1ab6aba8ab3d05fe61df3b6a5fabbcdd00676a | /e_commerce_app/api/migrations/0002_remove_event_redundancy.py | 86c973a2de49034f1f646a2664d9eaf5bda0ec1e | [] | no_license | Batuhanipekci/E-Commerce | 4f548f3e59cfa68c422f91419a53dadf175dcad3 | 45350d74e344686f619c1f9c50dac08e8c6eebe2 | refs/heads/master | 2023-06-02T01:05:44.647508 | 2021-06-22T20:19:13 | 2021-06-22T20:19:13 | 378,535,014 | 1 | 0 | null | 2021-06-22T20:19:14 | 2021-06-20T01:26:24 | Python | UTF-8 | Python | false | false | 533 | py | # Generated by Django 3.0.7 on 2021-06-20 22:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='krdetailsview',
name='event',
),
... | [
"batuhanipekci@hotmail.com"
] | batuhanipekci@hotmail.com |
246ec729ab0710529af7fd9594413b7242ed91fb | aba0b5002c040fa1b20bae5d7ac81c601395901f | /vistrails/packages/pandas/identifiers.py | 63685ce6e7907a39552e23085e227ce9fd8bac89 | [
"BSD-3-Clause"
] | permissive | skylogic004/VisTrails | 2673ca04160e776db17811d98b070f70e1d2e385 | bc0d95ceac6e75d6ffb083e8cdab8c62a90d4b00 | refs/heads/master | 2021-06-23T01:16:16.697903 | 2017-08-24T21:28:33 | 2017-08-24T21:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from __future__ import division, print_function
identifier = 'org.vistrails.vistrails.pandas'
name = 'pandas'
version = '0.0.1' | [
"matt@skylogic.ca"
] | matt@skylogic.ca |
aa1a467cc3e72429fddfc6663939baa04bc9e374 | bc073560803464da166d661e916d21ad51b2c80e | /files/scripts/contact_detector.py | 5ac2e00abc742896c576349cf11dd4b994ec5bc7 | [] | no_license | SDU-Embedded/event_processors | 680edb4a8107a2661407f43be933795ef0a1e987 | bdea5bbcab7d39f7b1746d1f391c494ffa0fd39d | refs/heads/master | 2021-07-26T21:41:26.831474 | 2020-05-04T07:03:53 | 2020-05-04T07:03:53 | 165,830,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from event_processors import EventProcessor
from event_listeners import PerchEventListener
from state_monitors import LinearStateMonitor
from metric_processors import ProbabilityProcessor
from thresholders import Thresholder
from event_builders import EventBuilder
from eve... | [
"lelar09@student.sdu.dk"
] | lelar09@student.sdu.dk |
eba5e24cb7ae539f05831d88b27d99b2346a8f0a | ec9129d3eb1880df9f0b54c76510352a7e004b0c | /tools/make_vps_tarball.py | b03537feaa59ec1a6a93c522cfd621963bf12eba | [] | no_license | eugen-don/vps | 4057e6ddb1db274dbd8d78fa926376cfc3a40aa7 | 6a16569868241b35d8137b7f2b2f8db0cf67ff55 | refs/heads/master | 2021-01-11T16:29:53.109075 | 2014-05-14T09:20:33 | 2014-05-14T09:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/env python
import sys
import os
import _env
import ops.os_init as os_init
import conf
assert conf.OS_IMAGE_DIR and os.path.isdir(conf.OS_IMAGE_DIR)
def usage():
print """usage: \n%s [image_path/partion_path] [tarball_dir]
""" % (sys.argv[0])
def main():
if len(sys.argv) < 3:
usage()
... | [
"frostyplanet@gmail.com"
] | frostyplanet@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.