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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe5b37ccd855ee6b445798c4539aaf393b818090 | 619e8253a0228a0574907c242d56870472296eb0 | /CodingWithMitchBlog-REST-API-master/codem/bin/pip3.6 | face2994356fd3358c40c3d286a03fcca6c21d2a | [] | no_license | Ttdon/python_django | 15c85e28076ccaf266107a692c1b099ed62019e9 | 30dbde3b0b5c0217d531d9f8d118972ff2c2cd7c | refs/heads/master | 2022-12-03T02:31:01.245574 | 2020-08-07T18:32:26 | 2020-08-07T18:32:26 | 285,895,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | 6 | #!/home/tushar/CodingWithMitchBlog-REST-API-master/codem/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tushartewari1303@gmail.com"
] | tushartewari1303@gmail.com |
c6ba60821ce47c6a8c6718843dce74a3fc5d4319 | 90d13ffb6fa1988242886c3e55e4b555fa7d8ad1 | /Three_Part_Dev_Michael/MIDCA1.01_Exogenous_Goal_Gen/midca_exogenous_goal_II/goalgen/Tree_3_Scen/__init__.py | 24be2d17181daeb853905d56df03562ea077f820 | [] | no_license | mclumd/erewhon_systems | 2c798cd303ca2cb19e80c93c88303af8b9aed5a6 | 93655a96415a01d8f5e49a1f2c244cbfd22b65f2 | refs/heads/master | 2021-01-17T16:22:53.528996 | 2016-08-03T19:35:52 | 2016-08-03T19:35:52 | 64,771,684 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import Internal_Node_001
import Internal_Node_002
import Leaf_001
import Leaf_002
import Leaf_003
| [
"cmaxey@payday.cs.umd.edu"
] | cmaxey@payday.cs.umd.edu |
27652f84bc76ef1f6812f44d29ea37bf2bb6b443 | fa99ad8197e9accce25ae31a197e11c84683daaf | /venv/Scripts/pip3.7-script.py | 2188d0d67c6f3b300b1dd3e06df1818959730cac | [] | no_license | vxda7/HomeAlgorithm | 933c3afae5fb81dce2707790544c0f4c3cdc44f9 | 9a8437913ba579b9a584f16048be81ae1d17d3e6 | refs/heads/master | 2020-09-08T16:37:02.089305 | 2020-07-10T06:58:58 | 2020-07-10T06:58:58 | 221,185,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!C:\Users\vxda77\HomeAlgorithm\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"vxda77@gmail.com"
] | vxda77@gmail.com |
2568181fde20bb83a9f7a33fb2090d8119de6ec3 | 9cc76b1b1dd0064ab6613cbca6ce93bc179db355 | /ros_ws/build/learning_ros/Part_5/baxter/baxter_playfile_nodes/catkin_generated/pkg.installspace.context.pc.py | 2e56c2a223ee9ec076119eee9d3a16d56eae8dd9 | [] | no_license | ABCaps35/learning_ros_ready_ws | 1131c32b2ecadffa8dd186c9ebcfdba7284f30ad | 1aa9c512d5006584e8bc84101a715e16a222a47d | refs/heads/main | 2023-04-03T20:32:58.671255 | 2021-04-13T23:41:13 | 2021-04-13T23:41:13 | 357,715,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;baxter_trajectory_streamer;baxter_core_msgs;actionlib_msgs;actionlib;message_runtime".replac... | [
"acapelli345@gmail.com"
] | acapelli345@gmail.com |
51d8568490a1781ef7ca2fa74c0aef9d3c9f5ec0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch48_2020_04_12_21_24_01_061638.py | 9c1f6cfd8b3898f2c2a4cc3ef540bcb5e2ab118e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | def eh_crescente(lista):
i=0
while i<len(lista)+1:
if lista[i]>lista[i+1]:
return False
else:
i=i+1
return True | [
"you@example.com"
] | you@example.com |
c7536023e9486893ec16d5707de7ac063969e19b | b8b26feac86b66b0b534996cf9c3fbf7ec660240 | /aoc/2017/p4-1.py | be141d4c2566c509ad300a44a0e19e7e434f8d0d | [
"MIT"
] | permissive | neizod/problems | 775fffe32166c5b124d0e4c973b8d0aba7f3900b | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | refs/heads/master | 2021-07-08T12:30:31.100320 | 2021-05-26T09:34:19 | 2021-05-26T09:34:19 | 6,245,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/env python3
try:
count_valid = 0
while True:
words = input().split()
if len(words) == len(set(words)):
count_valid += 1
except EOFError:
print(count_valid)
| [
"neizod@gmail.com"
] | neizod@gmail.com |
cde6c585d670f66bf5a084cb7aec810097077915 | 1bb3c20ce5a53889eac280826d7d54194c7db33f | /for/2439.py | b1333e23a6387266851abaadc0f09354c94b77b0 | [] | no_license | yejiiha/BaekJoon_step | bd2c040597766613985ae8d3a943999cb35d6671 | 3eaedbb832f14c51f3fb990e7e140f00d732df1e | refs/heads/master | 2023-03-24T06:36:28.851139 | 2021-03-21T14:15:40 | 2021-03-21T14:15:40 | 285,825,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Print triangle of star("*") pattern in Python-2
n = int(input())
if(1 <= n <= 100):
for i in range(n):
print(" "*(n-i-1), end="")
print("*"*(i+1))
| [
"1126yezy@gmail.com"
] | 1126yezy@gmail.com |
9cd58086bf97e69c46d9c3544b7e8ceb6649658f | 9cf05d16fc60ed8435f9ddcf56206c855e4dc6d4 | /00-4-all-time/general-ref/python/other/game_of_life.py | 4239a2fb32e943ca979fcbfa4f1cf55f6c4ad69e | [] | no_license | ArjunBEG/WEB-DEV-NOTES | cfc31cb2c23be872b27574fa4cd0efef6a895bc3 | 77f1c62f92277ab4ae2f6c9f6e7683229b89506a | refs/heads/master | 2023-02-24T03:17:50.730192 | 2021-02-06T05:38:24 | 2021-02-06T05:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """Conway's Game Of Life, Author Anurag Kumar(mailto:anuragkumarak95@gmail.com)
Requirements:
- numpy
- random
- time
- matplotlib
Python:
- 3.5
Usage:
- $python3 game_o_life <canvas_size:int>
Game-Of-Life Rules:
1.
Any live cell with fewer than two live neighbours
dies, as if caus... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
7764b46689940609ecddf536816e202883b393c4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2087/60870/312566.py | 3c871a0b3807a2d9cdc87e29d5b7f948df2d3fd0 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | num = int(input())
num_list = []
for i in range(num):
num_input = int(input())
num_list.append(num_input)
res = num * num_list[0]
if res == 233:
res = 1
elif res == 20:
res = 10
elif res == 2911:
res = 22
elif res == 9999999999999999990:
res = 5
elif res == 12100:
res = 100
elif res == 7448... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e85866d104fc7426f7b8a5a34b36a8e5e05492a4 | 3fa4a77e75738d00835dcca1c47d4b99d371b2d8 | /backend/pyrogram/raw/functions/account/report_peer.py | 7057bf2fd9d04791dc0cdeae8a39faaac5345ce3 | [
"Apache-2.0"
] | permissive | appheap/social-media-analyzer | 1711f415fcd094bff94ac4f009a7a8546f53196f | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | refs/heads/master | 2023-06-24T02:13:45.150791 | 2021-07-22T07:32:40 | 2021-07-22T07:32:40 | 287,000,778 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 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... | [
"taleb.zarhesh@gmail.com"
] | taleb.zarhesh@gmail.com |
4d7d1707d3378b01d0792b503d72b0b4aa7a2285 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/486/usersdata/303/114105/submittedfiles/AvF_Parte2.py | fc585c168e2c335395a59217dd7f2eb7645309a1 | [] | 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 | 214 | py | # -*- coding: utf-8 -*-
lista_idade=[]
idade=int(input('Digite a idade:'))
while idade!= -1:
idade=int(input('Digite a idade:'))
for i in range(0,idade,1):
lista.append(i)
print(lista_idade) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8b516bb647c466fd7efd3f098ab67748adb1c8e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/arty/A.py | dc0b912ceda06892bff4cadd222d6566cfd8ed86 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | __author__ = 'artiom'
from fractions import gcd
def is_power_of_two(x):
while (x % 2 == 0 and x > 0):
x /= 2
if (x != 1):
return False
else:
return True
def solve(p, q):
if (not is_power_of_two(q)):
return -1
result = 1
while p < q / 2:
result += 1
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
92b45bcc186cfd616c1e870cb5e7d6701c55a8bc | 2275b8467f22335fd2168f77586239b2a16ea07d | /hearthstone/entities.py | 8c7138373f3bafb7dabfeec9b15cd74d0999f4ff | [
"MIT"
] | permissive | beheh/python-hearthstone | 2b48d28799a908e0c8671c697d3395e5925108cb | 2b27da2ae091c97ec41ddc2264cc59d2ea860a9c | refs/heads/master | 2021-01-17T14:10:35.168665 | 2016-09-10T21:48:32 | 2016-09-10T21:48:32 | 68,319,747 | 0 | 0 | null | 2016-09-15T18:21:19 | 2016-09-15T18:21:18 | null | UTF-8 | Python | false | false | 3,212 | py | from .enums import CardType, GameTag, Step, Zone
class Entity(object):
_args = ()
def __init__(self, id):
self.id = id
self.game = None
self.tags = {}
def __repr__(self):
return "%s(id=%r, %s)" % (
self.__class__.__name__, self.id,
", ".join("%s=%r" % (k, getattr(self, k)) for k in self._args)
)
... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
7640fe03f455e0fd8a253760137f96e089165d0d | da3d35e7f381d3ff7d3acbf4c2142a3af464aeac | /cgi-bin/getjsfile.cgi | 18a876cead7d933775923665a4dcce994f68cb46 | [] | no_license | ranjithtenz/wnframework | 3d0b781a2da0ad3f91225829306a233e0bad2ac9 | fcd5dd0636bea30b5ee2584aea456a073158629f | refs/heads/master | 2020-04-08T13:02:21.405095 | 2011-06-20T10:39:42 | 2011-06-20T10:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | cgi | #!/usr/bin/python
import cgi
import datetime
import os
try:
form = cgi.FieldStorage()
out = ''
out_buf, str_out = '', ''
# Traceback
# ---------
def getTraceback():
import sys, traceback, string
type, value, tb = sys.exc_info()
body = "Traceback (innermost last):\n"
list = traceback.format_tb(tb, None... | [
"pdvyas@erpnext.com"
] | pdvyas@erpnext.com |
1d6a130d090e75a77bd547897433175e2107288a | 6821355bf5b255dccef9df2d6239b06bc3c28f72 | /blog_website/blog_website/apps/photo/migrations/0002_auto_20201109_1740.py | fddd3531690fcd27f1a15ecb68bc0c711844398c | [] | no_license | ltfred/blog_website | 76327e7adc8090db8754129d938040678cc03cff | 9cd0e1a644a4f99d9eea13b8e88f1faa20c38c2f | refs/heads/master | 2022-12-13T21:52:35.357980 | 2021-02-24T02:45:27 | 2021-02-24T02:45:27 | 209,324,876 | 6 | 1 | null | 2022-12-08T06:40:41 | 2019-09-18T14:09:24 | Python | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2020-11-09 17:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('photo', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
... | [
"ltfred@163.com"
] | ltfred@163.com |
848aacbb7fce373419b775fcebe7c949120adf66 | fdbd22dfdb9ae06896e24aa83cfa86aa1299efba | /The-Python-Workbook-Solutions/Section 4/Ex93.py | aad774859aec88bae2f1c88f2d5daccd3d0e353a | [] | no_license | CodedQuen/The-Python-Workbook-A-Brief-Introduction | 6450a16d8dbcf721885c1dc98907e3e16ac465a7 | 6c9f134223a343d5b8b9c529cd613c18dbf0f59d | refs/heads/master | 2022-06-21T06:37:33.459795 | 2020-05-05T10:48:50 | 2020-05-05T10:48:50 | 261,429,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 17:15:08 2019
@author: meyerhof
"""
def nextPrime(n):
while True:
if n < 0:
print("www")
print("El número no es un entero positivo")
n = float(input("Ingrese un número entero positiv... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
ea2648e09c6561379f3a1bcdaaf3dd4eb2260bb4 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/leet_20200615171650.py | 0fb9aa27f1496d4a51a52e9e583dbf751915e04f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # how a binary tree works is the smaller numbers are
# on the left then the bigger ones are on the right
# returning the node also returns the children which is what
# you want
def search(root,val):
if root is None:
return []
elif root.val == val:
print(root)
return root
else... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7aa0aeedc4f2a54ec5dbebcd7de1f5fe1fe6536e | b97729ad528be0cd211c1fe75bd43cca5ef65d2e | /api_test.py | 80ec608952d0999cab383dfa466a043be01245ad | [
"MIT"
] | permissive | chakki-works/CoARiJ-search | 04781459892da918f3dc902b9f6e91c036232fa0 | 9b2d3b4a1a40d45152effaab3b2b5ea9c5ed8cd3 | refs/heads/master | 2022-12-22T09:37:09.167277 | 2019-12-25T08:34:36 | 2019-12-25T08:34:36 | 227,003,986 | 0 | 0 | MIT | 2022-12-11T16:37:37 | 2019-12-10T01:40:03 | Python | UTF-8 | Python | false | false | 225 | py | import requests
import numpy as np
url = "http://127.0.0.1:8080/vectorize"
params = {"q": "僕の名前はみつりん", "lang": "jp"}
resp = requests.get(url=url, params=params).json()
print(resp["embedding"])
print(params)
| [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
bd24faf52a88f81bf4bbe7fd5c2eb461d025b3cb | 0bdaf322a5be633aa70827ae87d50f86c49c7a76 | /thread_sample/threads.py | adbac40eefb34a51fbe6a264de920168c227ce14 | [] | no_license | jasonwee/alertThreshold | 714cff391adf5b2052d61b29e13ac35e63662e89 | 2a67e0a2dff9b57474f0cdb1f55bc8512386c81d | refs/heads/master | 2022-12-10T23:40:04.409024 | 2019-12-19T08:45:57 | 2019-12-19T08:45:57 | 198,440,856 | 0 | 0 | null | 2022-12-08T05:55:11 | 2019-07-23T13:52:29 | Python | UTF-8 | Python | false | false | 1,353 | py | from Queue import Queue
from threading import Thread
class Worker(Thread):
"""Thread executing tasks from a given tasks queue"""
def __init__(self, tasks):
Thread.__init__(self)
self.tasks = tasks
self.daemon = True
self.start()
def run(self):
while True:
... | [
"peichieh@gmail.com"
] | peichieh@gmail.com |
c5a173cef68d31868a5a23da6978d6f9e279fcf2 | d400c32010a414a2f536c5c0a3490c8b8e2e9d5a | /modules/chirico/views/page/index.py | 5ec44c1ad092ae53649fa6ce6640f16f5a53a142 | [
"LicenseRef-scancode-public-domain"
] | permissive | CarlosCorreiaM16e/chirico_cms | 3e521eae8f38b732497a2b808950c6a534e69d4f | 73897cbddb230630e13f22333b9094d0a047acb3 | refs/heads/master | 2020-12-30T07:59:04.100330 | 2020-05-02T12:26:58 | 2020-05-02T12:26:58 | 238,917,321 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,239 | py | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
from m16e.db import db_tables
from gluon import current
from m16e import term
from m16e.kommon import ACT_UNCHECK_ALL, ACT_CHECK_ALL, storagize, KDT_INT, KDT_CHAR, ACT_DELETE_ALL_CHECKED
from m16e.ktfact import K_CH... | [
"carlos@memoriapersistente.pt"
] | carlos@memoriapersistente.pt |
4aa40243fee1ae9b616616912857ce1bd8a165ab | 5792baf9e18ad91816cc42f4725b099a4dce7b7b | /Pluralsight/Python Getting Started/lambda.py | d1d354e4a536026854064d2c2ec249fcdeea8034 | [] | no_license | deepakorantak/Python | 83b6782db0b5428d47fbc29193076e8ed5f5e285 | 9781133ce5a5c6f87efb5d4aa132a63ba1290f76 | refs/heads/master | 2020-03-23T19:55:30.075700 | 2019-02-19T06:24:42 | 2019-02-19T06:24:42 | 142,010,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | add = lambda x,y:x+y
def calculate(function,x,y):
return function(x,y)
def print_result(item):
for i in item:
yield i
res = 1
list_res = []
for i in range(1,6):
list_res.append(res)
res = calculate(add,res,i)
| [
"DeepaNKorantak@Gmail.com"
] | DeepaNKorantak@Gmail.com |
dd4bff3240df7045db9c77a29448844c22d0fbcd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2652486_0/Python/icedingo/C.py | 256f90f72e67faf11853c5b2d01520146d3c82d0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import itertools
raw_input()
R, N, M, K = map(int, raw_input().split())
numbers = range(2, M+1)
products = {}
for i in xrange(N):
i += 1
for comb in itertools.combinations_with_replacement(numbers, i):
prod = reduce(lambda x,y : x*y, comb)
if prod not in products:
products[prod] = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
675902d101f7a0327f4a906b89de3ce888c28bbd | b13e6b86c609a662adc6a33d8beab22f71864613 | /src/flynt/string_concat/__init__.py | 51542b8e37c724eda5fbbaca087f9d7eff83daa4 | [
"MIT"
] | permissive | admdev8/flynt | c7dd4ae961a99520b4670ba5b67dbe7f8eba5ebd | 9ec53b1ae8fcf62272a297e533626a54ed27f46f | refs/heads/+master+master+master+ | 2023-04-14T00:36:28.917483 | 2020-08-12T20:19:17 | 2020-08-12T20:19:17 | 292,904,249 | 0 | 0 | MIT | 2023-04-03T23:19:22 | 2020-09-04T17:09:20 | null | UTF-8 | Python | false | false | 122 | py | from flynt.string_concat.candidates import concat_candidates
from flynt.string_concat.transformer import transform_concat
| [
"ikkamens@amazon.com"
] | ikkamens@amazon.com |
59da0441dfdae546f6978a77dfa30809a9f016a4 | 3b604fe8f03f25859991cdab37804bcda51a4f18 | /dublyou/apps/competitions/migrations/0021_auto_20170208_1327.py | c209926f116eddd90b1a739362c65439c98c3d97 | [] | no_license | dublyou/matchup-games | e6238cbca7c30c6d4b4ddd161b84dfd5cc1bbacd | 07b2db2e7d52ac6590ab55a1a05e6076d8c9d680 | refs/heads/master | 2020-03-11T11:10:10.506719 | 2018-04-17T20:41:30 | 2018-04-17T20:41:30 | 129,956,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-08 19:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('competitions', '0020_auto_20170208_1326'),
]
operations = [
migrations.AlterUniqueT... | [
"jgriff@Calebs-MacBook-Pro.local"
] | jgriff@Calebs-MacBook-Pro.local |
38858d47bfbc0f344c5abb3b33b16dce0d4a44ba | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/AppStreamGlib/BundleClass.py | fff38c1582b8c4b940d7ee23fbf282772b0e6321 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,784 | py | # encoding: utf-8
# module gi.repository.AppStreamGlib
# from /usr/lib64/girepository-1.0/AppStreamGlib-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing at... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
31aa1f2ab88183a3c6820e7325e5564f79a2bf2a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/numberMumbler/pancakes.py | 9e56f0b9a08a2b46aec3e868ba27265b17453014 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,521 | py | #!/usr/bin/env python
import sys
__outputTemplate = 'Case #{0}: {1}\n'
def flip(pancakes):
return [not p for p in reversed(pancakes)]
def flipAfter(stack, i):
return flip(stack[:i+1]) + stack[i+1:]
def flipPoint(stack):
for i in range(len(stack) - 1):
if stack[i] != stack[i+1]:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d8f9c8c7ac57c4d2f0c1d2537727eab4815a6813 | 5d5a2511fd5f408437265a3bd94529730f4f357e | /latency/lib/atlasclient.py | 7b80a080a13f1efff3f8b017861849e903cb19d4 | [] | no_license | wwwiretap/atlas | 50f89006c6adec146c8e6039531610ba97e34185 | 409daba5e08c1b089580c81531fdf848376e1e90 | refs/heads/master | 2022-04-20T16:42:12.348475 | 2020-04-14T14:25:11 | 2020-04-14T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | from datetime import datetime
import time
from ripe.atlas.cousteau import (
AtlasSource,
AtlasStream,
AtlasCreateRequest,
AtlasLatestRequest,
# Measurement,
Ping
)
import urllib.request
from urllib.error import HTTPError, URLError
import json
class AtlasClient:
def _... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
a7fba9ff5e2ef35f0c5b1435cd717b762c34ce13 | 622183f2069a84508e87d0ceebfd203d0ec9332a | /notes/07-03.py | 60681b0e07c2f2ae5b0f36b0649ae51a8b70f3de | [] | no_license | kasrasadeghi/cs373 | f4ff92fa8c472242fe9df10f6d5a022cba6fcdd9 | 7036f22db3e2830bf79395a3aef3c7bed4e58887 | refs/heads/master | 2021-01-01T18:23:57.473050 | 2017-07-25T15:58:55 | 2017-07-25T15:58:55 | 98,325,040 | 0 | 0 | null | 2017-07-25T15:59:32 | 2017-07-25T15:59:32 | null | UTF-8 | Python | false | false | 2,077 | py | # -----------
# Mon, 3 Jul
# -----------
"""
Java has 4 access directives
public
protected: descendents and package
private
nothing: package
class A {
private static int _ci;
private int _i;
public A (...) {
...}}
class T {
public static void main (...) {
s.o.... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
5d2b249842e4c8208f1359651391dcf5dffdf187 | 41063557c9a004ca49077c6042bba3cb8521e853 | /jobsapp/graphql/sub_mutations.py | 9de270f6dd14ce1679d3bb8056d116c405d2c5aa | [
"MIT"
] | permissive | manjurulhoque/django-job-portal | d71c17741cdb69fb7df49e20533a0c2e1e8ed2f1 | 01f2b7f77511e99cd5e6286ffa1abf36688f486c | refs/heads/master | 2023-08-03T01:01:52.878771 | 2023-07-24T07:40:06 | 2023-07-24T10:46:59 | 180,424,218 | 497 | 211 | MIT | 2023-09-02T10:13:37 | 2019-04-09T18:12:52 | Python | UTF-8 | Python | false | false | 1,722 | py | import graphene
from jobsapp.graphql.graphql_mixins import (
DynamicArgsMixin,
MutationMixin,
CreateNewJobMixin,
UpdateJobMixin,
SingleObjectMixin,
)
from jobsapp.graphql.input_types import TagInput
from jobsapp.graphql.permissions import IsAuthenticated, IsEmployer
from graphene.types import Int
... | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
f303a9e09a3956b04d5f9691accff86ee31bd814 | 807305b8aefbd7aac4f44c67deed06c059ca02d9 | /src/stk/ea/fitness_calculators/fitness_function.py | eab7958c485551e3c41ce83d3121cf7008ec9cfe | [
"MIT"
] | permissive | supramolecular-toolkit/stk | c40103b4820c67d110cbddc7be30d9b58d85f7af | 46f70cd000890ca7c2312cc0fdbab306565f1400 | refs/heads/master | 2022-11-27T18:22:25.187588 | 2022-11-16T13:23:11 | 2022-11-16T13:23:11 | 129,884,045 | 22 | 5 | MIT | 2019-08-19T18:16:41 | 2018-04-17T09:58:28 | Python | UTF-8 | Python | false | false | 8,325 | py | """
Fitness Calculator
==================
"""
from .fitness_calculator import FitnessCalculator
class FitnessFunction(FitnessCalculator):
"""
Takes a function and uses it as a fitness calculator.
Examples
--------
*Calculating Fitness Values*
.. testcode:: calculating-fitness-values
... | [
"noreply@github.com"
] | supramolecular-toolkit.noreply@github.com |
9f426550c3767ef67dac51e54f6d0d7937baeae8 | e2e188297b0ef47f0e7e935290f3b7a175376f8f | /contact_form/views.py | becd3867b41ead2c81f7b00bb2a8d6edaa837672 | [] | no_license | shubham1560/contact-us-backend | 77b615021f0db2a48444424a654cf3c61522c7d8 | c7ef2d3024ab3f3b6f077648d6f6f5357f01eebc | refs/heads/master | 2022-12-30T13:05:00.950702 | 2020-10-02T19:47:19 | 2020-10-02T19:47:19 | 296,075,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | from django_countries import Countries
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework import serializers, status
from .models import ContactForm
from rest_framework.response import Response
from .services import insert_contact_data, get_related_forms_... | [
"shubhamsinha2050@gmail.com"
] | shubhamsinha2050@gmail.com |
d622a74280f26b8cdea5b8e0085fb5ccdde31172 | 234c46d1249c9209f268417a19018afc12e378b4 | /tests/data/instance_test.py | 73e85d9f649992b50ec46216aed782120454611e | [
"Apache-2.0"
] | permissive | allenai/allennlp | 1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf | 80fb6061e568cb9d6ab5d45b661e86eb61b92c82 | refs/heads/main | 2023-07-07T11:43:33.781690 | 2022-11-22T00:42:46 | 2022-11-22T00:42:46 | 91,356,408 | 12,257 | 2,712 | Apache-2.0 | 2022-11-22T00:42:47 | 2017-05-15T15:52:41 | Python | UTF-8 | Python | false | false | 2,588 | py | import numpy
from allennlp.common.testing import AllenNlpTestCase
from allennlp.data import Instance
from allennlp.data.fields import TextField, LabelField, TensorField
from allennlp.data.token_indexers import PretrainedTransformerIndexer
from allennlp.data.tokenizers import Token
class TestInstance(AllenNlpTestCase)... | [
"noreply@github.com"
] | allenai.noreply@github.com |
929a08ae553a84c21973df60cd0d91dc9e526d53 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /nemo_text_processing/text_normalization/en/taggers/word.py | fa6a965aab2e4d802e2bfd8d001356c128d04cb5 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 3,999 | py | # Copyright (c) 2021, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
43828f5474ff42399bbff1723cd7221e5eef2dbd | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /python_modules/libraries/dagster-mlflow/setup.py | 552314aa025f85b9bf1cad2666fbd2c3b17c9277 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 1,182 | py | from pathlib import Path
from typing import Dict
from setuptools import find_packages, setup
def get_version() -> str:
version: Dict[str, str] = {}
with open(Path(__file__).parent / "dagster_mlflow/version.py", encoding="utf8") as fp:
exec(fp.read(), version)
return version["__version__"]
ver ... | [
"noreply@github.com"
] | dagster-io.noreply@github.com |
4e6c7fc37d96589973c336770f2c0e6558b4a563 | 3b2867636844ab4b402ef091b61222a5870bae6e | /year2017/day11.py | 75e64438afc7810775e932d8cd33d43f4edb59b7 | [] | no_license | feigaoxyz/adventofcode | f992478ff6518930a60b9d4e15e5902d1f208f06 | 18918e16709eef833544f48d8c1a46c93d950000 | refs/heads/master | 2021-06-21T18:33:45.229440 | 2021-01-12T16:10:03 | 2021-01-12T16:10:03 | 51,060,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from common import load_input
import math
import collections
PART1_DOC = """Part 1:
"""
PART2_DOC = """Part 2:
"""
example = """
"""
input_data = load_input(__file__.split('.')[0] + '_in.txt').strip()
dir2pos = {
'ne': (1, 0),
'n': (0, 1),
'nw': (-1, 1),
's': (0, -1),
'sw': (-1, 0),
'se': ... | [
"contact@feigao.org"
] | contact@feigao.org |
ae4b7f7157b4d2db0c88c8dc2ca34403c999109b | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /090_logging/_exercises/_templates/github/_python-logging-examples-master(1)/python-logging-examples-master/simplelogging.py | f557ad857ecc4355d986269d2a0513a869a4214a | [] | 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 | 365 | py | """ uses logging instead of prints, but no explicit logging config"""
______ verboselib
______ ?
__ -n __ '__main__':
vl _ verboselib.Noisy()
?.i..("This, and the logging from Noisy, will not be output.")
?.i..("because the default level is w..")
vl.do_debug()
vl.do_info()
?.w..("Watch out! ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
396b9355988ee6e7eaf7adba310ca1b98eda3d28 | 53384d9322bc867dc55e1c057052e6a65101fde5 | /project-addons/alg_custom/product.py | 57835f451306b0b17a1098b2f076b60525f28211 | [] | no_license | Comunitea/PXGO_00015_2014_alg | ce80059a843e2eb76c7eee889fb64d45729add84 | 83026b9eab791dd8892dfb39cd0b07ada23aa2ab | refs/heads/master | 2020-12-26T01:16:18.482404 | 2019-05-20T12:36:18 | 2019-05-20T12:36:18 | 58,064,428 | 0 | 0 | null | 2016-05-04T15:47:27 | 2016-05-04T15:47:26 | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2014 Pexego (<http://www.pexego.es>).
# $Omar Castiñeira Saavedra$
#
# This program is free software: you can redistribute it and/or modify... | [
"javierjcf@gmail.com"
] | javierjcf@gmail.com |
c437147abe11532977bc856b8a12cd72feafb324 | ec7591c3f478c43e76257aaa500d8f6a2e763d74 | /stanza/tests/pipeline/test_pipeline_constituency_processor.py | 9a5372063a5f6a995ccdbd1378abb6c219a5306c | [
"Apache-2.0"
] | permissive | stanfordnlp/stanza | 5cc3dbe70a96dd565639b7dae1efde6b4fa76985 | c530c9af647d521262b56b717bcc38b0cfc5f1b8 | refs/heads/main | 2023-09-01T12:01:38.980322 | 2023-03-14T16:10:05 | 2023-03-14T16:10:05 | 104,854,615 | 4,281 | 599 | NOASSERTION | 2023-09-10T00:31:36 | 2017-09-26T08:00:56 | Python | UTF-8 | Python | false | false | 2,678 | py |
import pytest
import stanza
from stanza.models.common.foundation_cache import FoundationCache
from stanza.tests import *
pytestmark = [pytest.mark.pipeline, pytest.mark.travis]
# data for testing
TEST_TEXT = "This is a test. Another sentence. Are these sorted?"
TEST_TOKENS = [["This", "is", "a", "test", "."], ["... | [
"horatio@gmail.com"
] | horatio@gmail.com |
04f239e41086ce3397abfacce7557e7b91529a04 | 9e31cabea36b122be02fa778264a5c9a313a7a3c | /chapter_17/p17_11.py | cfa8e8e01bd74d21fe5d43746d650b0967a3060a | [] | no_license | anywhere1234/CTCI_python | b1c27997fe20d17f48b423e647fed600811ab015 | 6c7e71f4829708da397867dd9b2cec61a654d3f9 | refs/heads/master | 2023-02-09T14:02:29.710006 | 2021-01-06T00:04:58 | 2021-01-06T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # idea: Reverse index
# create mapping from key: word , value: sorted set of occurences (count words in book)
# when looking for shortest distance between 2 words, run 2 pointers in the sorted arr, find min diff
import re
from typing import List
from collections import defaultdict
import os
def build_reverse_index(... | [
"bogdan.stoicescu95@gmail.com"
] | bogdan.stoicescu95@gmail.com |
c1cb502b18baa9d3b28238e40b364115d4dcf14d | e57d7785276053332c633b57f6925c90ad660580 | /sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/asynctestcase.py | 8893eeede181712ff1d1c85e0b584844f1b1b35e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 1,383 | 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.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
697a2797b172121b01fb5d02a0a072ac5454aa70 | b41ae9e761a6b4606e128f9572c6f1a896ccfbdc | /migrations/versions/6e71f302e270_thought_table.py | 3b1330909e82e551eaf52ad38b025266c1fd7b15 | [] | no_license | chrishaining/Flask-Stoic-Thoughts | 9e8a4d2be4eb66ecd95b363812ccc289daefbdfd | d31b52d8844fb325825c76674387a88c42ba6a70 | refs/heads/master | 2021-02-07T02:45:33.235475 | 2020-03-01T15:59:37 | 2020-03-01T15:59:37 | 243,973,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """thought table
Revision ID: 6e71f302e270
Revises:
Create Date: 2020-02-29 12:19:12.158186
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6e71f302e270'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"chrishaining@yahoo.co.uk"
] | chrishaining@yahoo.co.uk |
330a6979ee3a64de179f3b718dcb8e9c5940b492 | faa1a9f8bfa60c6f3c1543ddf5c01ea8d6ec5898 | /CSAW-2019/Pwn/GOT Milk/exploit2.py | b66230aec1df4cf08fba47718917a204d01fb896 | [] | no_license | LJP-TW/CTF | afe0873029072da256b591c96a0b2a97df6644b2 | f9c30cf270130120bfe4ddf957299fb60ddf8c27 | refs/heads/master | 2023-05-27T17:08:56.579815 | 2023-05-22T10:33:42 | 2023-05-22T10:33:42 | 123,657,738 | 30 | 5 | null | 2023-05-22T10:32:56 | 2018-03-03T04:08:05 | Smali | UTF-8 | Python | false | false | 385 | py | from pwn import *
from struct import *
# r = remote('localhost', 5566)
r = remote('pwn.chal.csaw.io', 1004)
addrLosePlt = 0x804a010
offsetLose = 0x11f8
offsetWin = 0x1189
raw_input('>')
payload = ''
payload += pack('<I', addrLosePlt) # Will write 4 bytes
payload += '%133x' # Write bytes for %n 0x89
payl... | [
"accr94238@gmail.com"
] | accr94238@gmail.com |
212f9b17955794bd81c62f8b978ca434ee3f7fa5 | 46613bd910e3e07fb92d6b65f6e75dd8db49c39f | /tests/test_graphql.py | 46ff320637fa69c1c63415bd7b28b087354c3744 | [
"MIT"
] | permissive | heathercreech/webob-graphql | b8af37f75391de6249a09fec2c0763a70aa7b3f8 | 1c3fa10a4db24e0ef0aa4839b0b13e1a14c7cd0e | refs/heads/master | 2021-04-26T22:46:32.357139 | 2018-03-06T22:23:20 | 2018-03-06T22:23:20 | 124,146,016 | 0 | 0 | null | 2018-03-06T22:22:05 | 2018-03-06T22:22:05 | null | UTF-8 | Python | false | false | 15,347 | py | import pytest
import json
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
from .schema import schema
from .utils import url_string, response_json, j, jl, Client
@pytest.fixture
de... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
66c8f43291c37439cb67bb146852b74f5ae5d297 | 019e125f8b893512e252aaf27ff6b957c2cc302d | /src/blueshed/fling/request.py | b5acbf2d18d41495e27914684bf74ce67d45c85c | [
"MIT"
] | permissive | blueshed/blueshed-py | 62523beae9e43a8f8ef065a627cae58b238e7244 | 61be378d8e24e60775cc2b8a6f17c6e959098fa2 | refs/heads/master | 2021-01-10T21:29:38.244214 | 2015-09-25T18:16:08 | 2015-09-25T18:16:08 | 38,447,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | '''
Created on Nov 2, 2013
@author: peterb
'''
class Request(object):
def __init__(self, name, options=None, callback=None, request_id=None):
self.name = name
self.options = options
self.request_id = request_id
self._callback = callback
self._handled = False
s... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
ce7b219f9a39eb4862625197e86d97bb10c3f8d3 | 6221ffae1ba52c8cbf12795e8696383248aae108 | /tf_agents/train/utils/strategy_utils.py | d2e5caf3763ecbe7d75ddd3b5b99917bfbb73cef | [
"Apache-2.0"
] | permissive | minsukchang/agents | c7a7be5d87d56b56048ec1dee7dcd3b45816d68b | 5b8dd0e589dab4c7d8ef28c3dfb99ba46d7d0f7d | refs/heads/master | 2022-02-13T21:30:30.093985 | 2022-01-25T15:52:09 | 2022-01-25T15:52:36 | 205,996,831 | 0 | 0 | Apache-2.0 | 2019-09-03T05:36:05 | 2019-09-03T05:36:05 | null | UTF-8 | Python | false | false | 2,113 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
ec84607554daf8ed75b3f772e636a1ca9442b18b | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200510_python2/day16_py200708/sample/dict_sorting_value.py | 7dbd9333db5eb252d818d16c62b84d787fe96cb9 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | """
Python dictionary
Sorting by value
references:
https://blog.csdn.net/buster2014/article/details/50939892
"""
def sort_by_value(mydict):
"""
:param mydict:
:return: sorted dict by value, displaying key
"""
items = mydict.items()
backitems = [[v[1],v[0]] for v in items]
# backitems.sort... | [
"lada314@gmail.com"
] | lada314@gmail.com |
7cf7f5c4346b0099010615deb804191de5ce1ce1 | 007757253fc06e1478fff7e9a4d9e096975cafb1 | /venv/Lib/site-packages/auto_py_to_exe-2.7.8.dist-info/top_level.txt | 128712f385577bc60658f4bc6fe25de29d218e34 | [
"MIT"
] | permissive | titusowuor30/arenadreamblog | 76cb2615c82c22cbf3d72c78b5f2c485bd0d5ff8 | 299cee35650ea1ee44e4beb7865761205f751687 | refs/heads/master | 2023-07-11T13:24:25.972717 | 2021-08-16T12:59:33 | 2021-08-16T12:59:33 | 395,559,314 | 0 | 1 | MIT | 2021-08-14T21:41:49 | 2021-08-13T07:36:12 | Python | UTF-8 | Python | false | false | 15 | txt | auto_py_to_exe
| [
"titusowuor30@gmail.com"
] | titusowuor30@gmail.com |
a6328125f2e33c7fe8aafdd399b36292cbebb8ed | 0e0ce88c886370df9af51855115c99dfc003e5da | /2020/10_flask_vs_django/Flask/env/bin/easy_install | 909cde2602450eb918d56c6e6290c2b82844f9ba | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | #!/home/miguel/Apps/Python_Git/2020/10_flask_vs_django/Flask/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com | |
bcb5f25ce5e10170fb1f81e674fb1c249cd299e2 | a81c07a5663d967c432a61d0b4a09de5187be87b | /components/signin/ios/browser/DEPS | 1cbae6d899d540a81f026f8560d662d4b42aac35 | [
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | Python | false | false | 391 | specific_include_rules = {
"account_consistency_service.mm": [
"+components/signin/core/browser/account_reconcilor.h",
"+components/signin/core/browser/signin_header_helper.h",
],
"account_consistency_service_unittest.mm": [
"+components/signin/core/browser/account_reconcilor.h",
"+c... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
927172dc4b01dc551644430da94791877e55426f | 86f725b8c2d5be364c70ee959215d7dd7a904767 | /SMTP_Subaddress/test_cases/2domains_on_same_host/2-subAddressAllowedIPs_localhost_running_on_10.49.58.240_2domains_same_server.py | 1affb6f0f31ef8ce6a1fce3c560bd5b7b8795e27 | [] | no_license | whsasf/python | 676a917835d94eb577e6313a56594e761e79f84f | 98344ee5afc4ef92022c36943e08361a241b2c9e | refs/heads/master | 2021-01-24T23:24:05.120031 | 2018-07-18T05:33:45 | 2018-07-18T05:33:45 | 123,283,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,189 | py | #!/usr/bin/env python3
from modules.sendmails import send_mail
from modules.remote_operations import remote_operation
import time
#reate summary file and debug files:
#sumfile = 'sumary.log'
#dbgfile = 'debug.log'
#with open(sumfile, 'a') as file_object:
# file_object.write(attdata)
mtahost = '10.49.58.239'
mtapor... | [
"whsasf@126.com"
] | whsasf@126.com |
e94da9aee7f4ec4c88a7830ea7b688d7c02f3c68 | 8ac3fcdd9647b8898d1f7cf941465e906853b299 | /calc/coulomb_short/phase_shift/dvr/e05/plot_r0.py | 73943a5d28bcf251fa3a06f80c1f38ab797bbacf | [] | no_license | ReiMatsuzaki/rescol | a8589eb624782d081fa8f3d884d8ddee2993ed80 | 46c205a3228423f5be97eeaa68bcb7a4b0f31888 | refs/heads/master | 2021-05-04T10:36:11.090876 | 2016-11-01T11:12:04 | 2016-11-01T11:12:04 | 43,137,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import matplotlib.pyplot as plt
import numpy as np
data = np.loadtxt("r0_phase.dat")
plt.plot(data.T[0], data.T[1], "o")
print data.T[0]
print data.T[1]
plt.savefig("r0_phase.png")
| [
"matsuzaki.rei@gmail.com"
] | matsuzaki.rei@gmail.com |
bf676fd203fb557be112829a2870713943ec00ef | b385fc2f18bbb43ec1bca1606b62ae83f33dcb2d | /Python_OOP/Polymorphism_and_Magic_Methods/account.py | fd2b8dd878864a03c63b1f47773ec814a67ff7f5 | [] | no_license | rishinkaku/Software-University---Software-Engineering | d9bee36de12affc9aed7fcc0b8b6616768340e51 | b798a0c6927ef461491c8327451dd00561d836e4 | refs/heads/master | 2023-06-10T19:52:51.016630 | 2021-07-08T00:45:06 | 2021-07-08T00:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | class Account:
def __init__(self, owner, amount=0):
self.owner = owner
self.amount = amount
self._transactions = []
def __add__(self, other):
account = Account(f'{self.owner}&{other.owner}', self.amount + other.amount)
account._transactions = self._transactions + other._... | [
"66394357+DimAntDim@users.noreply.github.com"
] | 66394357+DimAntDim@users.noreply.github.com |
f8ddbafef1773f98c0b8602eb3236035455186d4 | 975ecceab70eb4d75b1fe1b61a14c8375c291adb | /3.2_introduction_to_python_II/in_class/05-Ins_BasicRead/readFile.py | 201d1a6792fb077315b8defad7a519207985bb6c | [] | no_license | carlabeltran/data_analytics_visualization | 82306b44570ba89ef298d8cf07f9151e0d7cb031 | 7985138ff3fbbdcf077c08aaea6dcb64f12b9a22 | refs/heads/master | 2020-12-09T17:38:34.458647 | 2020-01-12T03:03:35 | 2020-01-12T03:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # relative path to file:
file = "Resources/input.txt"
# with is the english equivalent of "assume"
with open(file, 'r') as text:
lines = text.read()
print(lines)
| [
"philipstubbs13@gmail.com"
] | philipstubbs13@gmail.com |
c6671ddad1c1408fa6e63bb336ac6a38fbfebca5 | b22e46198a95af0ce1db91a213fbc14ae00f47fc | /src/components/panel.py | bb6eef62b0e582a40c31491ed2c284a29effc3c6 | [
"MIT"
] | permissive | JacobLondon/pyngine | 5ec081e353782a348ddad3160ac52670e16fa20a | a37bea65fdd15642753dd8f8bcaf8899a03f4e1d | refs/heads/master | 2023-06-09T10:05:24.228411 | 2023-06-02T17:25:32 | 2023-06-02T17:25:32 | 164,152,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from .component import Component
class Panel(Component):
"""@brief A simple component used for displaying color.
"""
def __init__(self, controller, parent: Component=None, z: int=0):
Component.__init__(self, controller, parent, z)
self.text = 'Panel'
def load(self):
"""@brief ... | [
"jelondon12@gmail.com"
] | jelondon12@gmail.com |
9459d1e86280da943d06e10f518ad4725c6afbf0 | aa49120740b051eed9b7199340b371a9831c3050 | /islands_1.py | 67e0da76de1096b354edc4f7f43090becf714bf7 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | #!/usr/bin/env python
'''
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands.
An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically.
You may assume all four edges of the grid are all surrounded by water.
Example 1:
11110
11010
11000
000... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
2571ba54d5df7e4aaba53e2be4dbca35119a8bb9 | 34031146608b92d4c8a5b9d36c36cb2ba2752acb | /python/bs4/scraper_projects.py | f662645c1dcd4a48de416200148254a0ed37aa78 | [
"MIT"
] | permissive | zkan/100DaysOfCode | a2f98f32771321f024e65d6f763b46b4db47a40c | 3c713ead94a9928e2d0f8d794e49ec202dc64ba3 | refs/heads/master | 2023-01-24T01:14:37.798862 | 2020-04-11T09:21:09 | 2020-04-11T09:21:09 | 159,088,331 | 3 | 0 | MIT | 2023-01-04T01:31:36 | 2018-11-26T00:28:10 | JavaScript | UTF-8 | Python | false | false | 813 | py | import bs4
import requests
BASE_URL = 'https://www.prontotools.io/'
PROJECTS_URL = f'{BASE_URL}projects/'
def pull_site():
raw_site_page = requests.get(PROJECTS_URL)
raw_site_page.raise_for_status()
return raw_site_page
def scrape(site):
project_list = []
soup = bs4.BeautifulSoup(site.text, '... | [
"kan@prontomarketing.com"
] | kan@prontomarketing.com |
1d198bc94bcb5339e093384625828c4160e44524 | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Scripts/Archives/render/prepare_render | d595184ba70aaf3645a8425e37a21c1f137070a6 | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 525 | #!/usr/bin/python
# usage: prepare_render data_source render_directory
import os
import re
import shutil
import sys
# source of data first argument, render directory second argument
src,render=sys.argv[1:]
abs_src=os.path.abspath(src)
os.mkdir(render)
os.chdir(render)
os.symlink(abs_src,"Input")
os.mkdir("Output")
... | [
"quhang@stanford.edu"
] | quhang@stanford.edu | |
554142b656d8d5deec0f4d124eee6bcdead0ba1c | 4b89a7de426fb53b999b5f3834404215a90817df | /pyobjc-framework-CoreWLAN/setup.py | db8e3f9acc3da261aabacbd644018c0cb483c4cc | [] | no_license | peeyush-tm/pyobjc | a1f3ec167482566ddc7c895cfa2aca436109cf66 | da488946f6cc67a83dcc26c04484ca4f10fabc82 | refs/heads/master | 2021-01-20T19:26:06.015044 | 2016-05-22T14:53:37 | 2016-05-22T14:53:37 | 60,502,688 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | '''
Wrappers for the "CoreWLAN" framework on MacOS X.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
'''
import os
fro... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
4927f0567834e6f5706c9a64a772fcd7bd34f7b1 | bd0cabc8f76d6861e6cc13c72eb178d3e9b697b7 | /adwords_python3_examples_10.1.0/v201710/basic_operations/update_campaign.py | d2404134ccd5503d6b237c63298f3e9146d0a651 | [
"MIT"
] | permissive | xyla-io/hazel | 4d8334766b6176bda21c99fefd4cfb64f05ffc5d | 260ce906761d8b808c21ca61b44cc71ca3329e8c | refs/heads/main | 2022-12-27T13:57:07.421062 | 2020-10-14T19:01:16 | 2020-10-14T19:01:16 | 304,109,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!/usr/bin/env python
#
# Copyright 2016 Google Inc. 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 requir... | [
"gregory@incipia.co"
] | gregory@incipia.co |
533f0946b24008dd61bcc13df296b0ba6c623059 | b85de5b2a65baa6b67666c65b4e059bf6caaaf6a | /CodeKata/BetweenRange.py | 11e7a801b3d26fb459047a4e980df8ef473e2dd4 | [] | no_license | ar95314/Guvi-1 | 319189d4317aa0c2075e02ca71777c8587eb847b | ef6da1cfd18714adc3acf023314e481ebe326d4e | refs/heads/master | 2020-07-07T02:35:49.526732 | 2019-07-17T18:03:44 | 2019-07-17T18:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | num=int(input())
sr,er=map(int,input().split())
for i in range (sr+1,er):
if num==i:
print('yes')
break
else:
print('no')
| [
"noreply@github.com"
] | ar95314.noreply@github.com |
eab6dc3cbf21c0c830a8a59d2b7a7cec4fc073f4 | 003372621424577306aff35de88f7366fcc4baa0 | /sa_tools_core/libs/qcloud/qcloudsdkbmlb/DescribeBmForwardRulesRequest.py | 8f21d2009e66002bf33ae7d5ef23a2bc5d1b1ae4 | [] | no_license | stoensin/sa-tools-core | ab28ca5f7a8d5703952db9e6554b104682507964 | c0faeef4de8ba677817384d88cb107ad2308c03e | refs/heads/master | 2020-07-11T06:59:33.224305 | 2019-08-22T07:36:46 | 2019-08-22T07:36:46 | 204,472,284 | 1 | 0 | null | 2019-08-26T12:36:18 | 2019-08-26T12:36:18 | null | UTF-8 | Python | false | false | 826 | py | # -*- coding: utf-8 -*-
from ..qcloudsdkcore.request import Request
class DescribeBmForwardRulesRequest(Request):
def __init__(self):
super(DescribeBmForwardRulesRequest, self).__init__(
'bmlb', 'qcloudcliV1', 'DescribeBmForwardRules', 'bmlb.api.qcloud.com')
def get_domainIds(self):
... | [
"tclh123@gmail.com"
] | tclh123@gmail.com |
cf2d19b4928717ef00cf356b37153917f6e9fbcf | 621a40fa363dc0c32c96a4c8fdfe9142877e2ff1 | /ietf/wsgi.py | d82a32446861073c43c2f4d1a7d2e60d4fd0ab64 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | omunroe-com/ietfdb2 | d9c40bebe4b25059f810c70dd1370cca30cb3c36 | aeaae292fbd55aca1b6043227ec105e67d73367f | refs/heads/master | 2020-04-04T21:05:56.067430 | 2018-11-05T09:08:27 | 2018-11-05T09:08:27 | 156,273,382 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | """
WSGI configuration for the datatracker.
The following apache datatracker configuration has been used together with a
datatracker checkout of trunk@ under /srv/www/ietfdb/ to run this on a development
server using mod_wsgi under apache. For a production server, additional access
restrictions are needed for the sec... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
f533ae7916cf74894cb0ece8950764f06b0f5adc | b04791ac170876f94cfe9a021512916296e088ba | /reddit/management/commands/populate_test_data.py | c4156f7579ed585873b595b6c89f8eeb18acf392 | [
"Apache-2.0"
] | permissive | imapex/suggestions | 6cb88856f11b6ba2ecac9cde89f8a829a099ba10 | 292c04e72023269075ce1dba7af0314f2adf3785 | refs/heads/master | 2023-01-10T11:32:58.301709 | 2020-06-10T14:49:36 | 2020-06-10T14:49:36 | 65,758,745 | 0 | 0 | Apache-2.0 | 2022-12-26T20:14:50 | 2016-08-15T19:27:17 | Python | UTF-8 | Python | false | false | 3,742 | py | from random import choice, randint
from string import ascii_letters as letters
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from reddit.models import Comment
from reddit.models import Submission
from users.models import RedditUser
class Command(BaseCommand):
he... | [
"kecorbin@cisco.com"
] | kecorbin@cisco.com |
5260fa0a6723d36ec984dccb197382d2f047b7b0 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/cluster/metricsconfiguration/_delete.py | 571d8251f68cc3f61f8f9fe63aa571dd843e1012 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 6,008 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
63cff687d76aaf00d18be6d51f31afe48a5829e0 | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/lib/python3.7/site-packages/geometry/manifolds/translation_group.py | e130e22128d84c5fe827461ccc4e730831887428 | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 2,334 | py | # coding=utf-8
from contracts import contract
from geometry.poses import extract_pieces, pose_from_rotation_translation, \
rotation_translation_from_pose
from geometry.utils.numpy_backport import assert_allclose
import numpy as np
from .differentiable_manifold import DifferentiableManifold
from .euclidean import R... | [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch |
0de8c0b935ae6683187554cf72eba6595cdaa7c6 | c68310a6f4a424445081df96a4674da69baf26d6 | /8.- Functions/greet_users.py | 3cc961a85b706c6e3d6736adcbae3fc2a4d96c69 | [] | no_license | martincastro1575/python | d955fcbe300d3e47961ee2e194b815ac8a691d8e | 2d170eb03ef562f2cc10399a5291790138a6ba0b | refs/heads/main | 2023-02-15T17:25:33.233133 | 2021-01-15T15:30:09 | 2021-01-15T15:30:09 | 321,970,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | def greet_users(names):
'''Print a simple greeting to each user in the list '''
for name in names:
msg = f"Hello, {name.title()}!!!"
print(msg)
usernames = ['martin', 'maria', 'ines','pedro','carlos','marita']
greet_users(usernames) | [
"martin.castro1575@gmail.com"
] | martin.castro1575@gmail.com |
09f1f32060b30f3d31ee10840ebbf8c3e82c6fad | 606431d6a2ff8f9d589e71c4f17813a094a169dc | /user_management/migrations/0005_userprofile.py | 9c7772d71ba570e18e914bf34741f253783e5566 | [] | no_license | kumar109-beep/Analytica | 057f71a1ac7ff2408c5d3f0e9dd04cf26581101b | 0270b0f52f4711c0d800f2591793fb2310f4437e | refs/heads/main | 2023-08-12T14:25:54.722446 | 2021-09-26T15:44:13 | 2021-09-26T15:44:13 | 410,265,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Generated by Django 2.2.1 on 2019-12-10 13:05
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),
('user... | [
"rk468335@gmail.com"
] | rk468335@gmail.com |
9f8f1c53af5aa38f6cda7ad07e16813879a9098e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CAREL-ug40cdz-MIB.py | b095de4efa752fccf97399505cbcceda9f582c77 | [
"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 | 43,178 | py | #
# PySNMP MIB module CAREL-ug40cdz-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CAREL-ug40cdz-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:29:25 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 |
90c1cdf8950b6acf443223a67548294405a3c392 | 3cedc7c1519d3b013aad9ec4e6a6ee7834da7589 | /python_code/需求实践/0009/s1.py | c11e05606eaace80e31655dcaad195d382a79373 | [] | no_license | hzrg/songqin_course | 53437100669ee93d2ac5ecae5de938b1a4007d7f | 05e422ce34a42fd6d3819722a19252f8005e79ed | refs/heads/master | 2022-02-09T13:27:59.871400 | 2019-06-13T06:08:45 | 2019-06-13T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | from random import randint
import time,os
import threading
class Tiger:
classname = 'tiger'
def __init__(self):
self.weight = 200
def roar(self):
print('wow!!!')
self.weight -= 5
def feed(self,food):
if food == 'meat':
self.weight += 10
... | [
"1174497735@qq.com"
] | 1174497735@qq.com |
10521b84e52cdff6f2ef557b34b83273d4874d18 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/core/sims4/log.py | fe7bf0cafc9bab236d45d1037b763c994673b2e9 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,403 | py | import _trace
import builtins
import datetime
import inspect
import os
import re
import sys
import textwrap
import traceback
from sims4.console_colors import ConsoleColor
from singletons import DEFAULT
import debug_breakpoint
import macros
import sims4.console_colors
ERROR_DIALOG_MESSAGE_LINELENGTH = 120
TYPE_ASSERT = ... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
ba9fdc8a9c428a06447e06ac290ad3850f306c47 | c21bb569e67bedc7aa49052f3847a14a30ba7a34 | /request-response/connects-reconnects.py | 3cd39b1453501a8f383b4f41a5e1d9da4d303708 | [] | no_license | jdavid54/mqtt | b268ba44b02a7ce3da98c8fe2c8d460f2afa3466 | 9cbb62dd1cba67e37111b7f60cfd163127023225 | refs/heads/main | 2023-03-26T22:00:44.030664 | 2021-03-25T12:51:24 | 2021-03-25T12:51:24 | 351,430,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | #! python3.4
###demo code provided by Steve Cope at www.steves-internet-guide.com
##email steve@steves-internet-guide.com
###Free to use for any purpose
"""
demo connect and reconnect scipt
"""
import paho.mqtt.client as mqtt
import time
import logging
import sys
def on_connect(client, userdata, flags, rc)... | [
"noreply@github.com"
] | jdavid54.noreply@github.com |
8a8c8fb458ebd30685be185e7c17605ae2080f24 | d591bb7008596b8f6ca1e8cf371c47c3132f805a | /factory/turnoverZNQ/apps.py | 6467dea4eed4899cb3bcbe7c4dd8a0b50180d6d9 | [] | no_license | RockJohnson503/factory-python | 755d898e3676ef649e1b66633c9e65a8b3a0f45a | 02a61e92fb6be190c24a6a12a27dc4ec707a82d9 | refs/heads/master | 2020-05-17T18:02:25.139307 | 2020-01-11T09:45:23 | 2020-01-11T09:45:23 | 183,872,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class TurnoverConfig(AppConfig):
name = 'turnoverZNQ'
| [
"836867547@qq.com"
] | 836867547@qq.com |
a060c6575714e291ae36cdd14ad5c48804650a45 | 8955dfe19f98cd9302480159adc63700adaeb498 | /middle/210 Course Schedule II.py | c65770d106091d22ccf1794ca816d0b06f2145b7 | [] | no_license | VRER1997/leetcode_python | 9e8c30433f2d304290cfb6e782513c8eceee5d4f | 43f392286ee01c7a229a3a12c3ff04e9f4fc7ddc | refs/heads/master | 2020-04-22T09:25:30.802846 | 2019-08-16T07:19:25 | 2019-08-16T07:19:25 | 170,271,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from typing import List
class Solution:
def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]:
indegrees = [0 for i in range(numCourses)]
edges = [[] for i in range(numCourses)]
for front, tail in prerequisites:
indegrees[front] += 1
edges... | [
"1216778435@qq.com"
] | 1216778435@qq.com |
6a805fc5ea0fbab49b44d56ddf37fa7800c1fb7c | af497bbfe8c3131c235df1b3087a90c28c89891e | /ocr.py | d844c329aa7c4854cb984e402728abf8eaaf9163 | [
"blessing"
] | permissive | snwhd/retrotracker | 48e8c2286534f3c2a5057b936c4e39c3082860cd | ad0ce011e2e8a0d13f3479085b2c4e0fecbe5712 | refs/heads/master | 2023-09-01T22:49:45.452343 | 2021-11-19T11:39:22 | 2021-11-19T11:39:22 | 428,159,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | #!/usr/bin/env python3
from __future__ import annotations
from PIL import Image, ImageFilter
import PIL.ImageOps
import pyscreenshot as ImageGrab
import pytesseract
import unidecode
import logging
import re
from typing import (
Generator,
List,
Optional,
Tuple,
)
import warnings
warnings.filterwarning... | [
"none@none"
] | none@none |
13c83e704be21926ea5bc174a5765b317dd2f572 | bc2cdb1e438efaf67131e975ac4db80b4dc43385 | /src/private/code_publish/migrations/0035_auto_20190820_1620.py | 8ede163f1e401882d63da5678df8b7718aec6268 | [] | no_license | Shadow-linux/ops-for-study | cf4d55409ebc6f27d454bea60886cd154c994484 | 115b567948d25a64e423a6cdc89bc8337896afe2 | refs/heads/master | 2023-01-14T13:35:56.880896 | 2019-09-23T05:01:31 | 2019-09-23T05:01:31 | 209,781,758 | 2 | 0 | null | 2023-01-04T10:55:45 | 2019-09-20T12:08:11 | Python | UTF-8 | Python | false | false | 582 | py | # Generated by Django 2.0.1 on 2019-08-20 16:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('code_publish', '0034_auto_20190820_1542'),
]
operations = [
migrations.RemoveField(
model_name='codepublishlockenvapp',
... | [
"liangyedong@qipeipu.com"
] | liangyedong@qipeipu.com |
2d87b7dc3bd7a65fa908062504c72c3ce7cd675d | c5276ac07e88486a54c63eb323324998c09577df | /Week-06/double-linked-list.py | f58183e1dd94c1e13620d8bcb0c3fce212b052fa | [] | no_license | PWA-GouldA/Advanced-Programming-Python | c4831d414ffa80fae22b8fc338f28752f98fecee | 144c9ee8adf732d441e45cf5fd0edaee6362e9b0 | refs/heads/master | 2022-12-10T17:28:04.484910 | 2019-05-21T11:16:43 | 2019-05-21T11:16:43 | 172,685,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,194 | py | # for Garbage collection
import gc
class Node:
def __init__(self, next=None, prev=None, data=None):
self.next = next # reference to next node in DLL
self.prev = prev # reference to previous node in DLL
self.data = data
class DoublyLinkedList:
def __init__(self):
... | [
"Adrian.Gould@nmtafe.wa.edu.au"
] | Adrian.Gould@nmtafe.wa.edu.au |
1768e183d070071c2b91c9f32da2a06fa66c06cd | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0921+161/sdB_PG_0921+161_coadd.py | b87a80c0a5c0fa3529741039dad7d6fea6e532c4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[141.158875,15.888608], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_0921+161/sdB_PG_0921+161_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
10c66a03d36f6b880b761caf0e85aae4b93527e4 | 1698b29429675292393f294ad554dac8efed3e6b | /03_Web/Django/9_16/posts/urls.py | 23f991e0df302dd0302c78804e752a34b1a3676e | [] | no_license | bcking92/TIL | 3daa87e95b6c39413f9c62787c35987804e8dd89 | 60b99cac73820d8af3e050d54f26f1f22a32748d | refs/heads/master | 2023-01-12T10:07:36.042506 | 2021-04-12T22:55:10 | 2021-04-12T22:55:10 | 195,767,319 | 0 | 0 | null | 2023-01-05T00:40:55 | 2019-07-08T08:17:14 | Jupyter Notebook | UTF-8 | Python | false | false | 595 | py | from django.urls import path
from . import views
app_name = 'posts'
urlpatterns = [
path('', views.index, name='home'),
path('create/', views.create, name='create'),
path('detail/<int:num>/', views.detail, name='detail'),
path('update/<int:num>/', views.update, name='update'),
path('delete/<int:nu... | [
"bcking92@gmail.com"
] | bcking92@gmail.com |
b200b6b34858f1c775663ce36035ce4a1cd60ddd | e87aec694108cb1f76716260daf569bcb8091958 | /fluo/management/commands/initdb.py | 2218dbebe83cc324702648674b438d6b2643add4 | [
"MIT"
] | permissive | rsalmaso/django-fluo | a283b8f75769ac6e57fa321c607819899e0c31c8 | 340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b | refs/heads/master | 2023-01-12T01:37:06.975318 | 2020-12-01T17:13:11 | 2020-12-01T17:13:11 | 48,948,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | # Copyright (C) 2007-2020, Raffaele Salmaso <raffaele@salmaso.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | [
"raffaele@salmaso.org"
] | raffaele@salmaso.org |
7a8f3b331abb0388558fef49ee6fc8e4700bb9a0 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_1745.py | 8be3774af3fd8986d303c185e1cec8b0ab238544 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | # How to check if a page is displaying a specific <img> tag
<img>
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
fba96643b6ce7ca44beb319570113d6db4766071 | 85744222aed3e2d77d7c01d037839804f857db95 | /SWEA/1940.py | 49ad1f61622bce45b29bde22394ef214751da4ad | [] | no_license | porciuscato/study_algorithm | 7c86367afab75943cf2de9f0bccc62659fdc6aae | fecf67f8028410c7d59fcc9a037667a169684cf4 | refs/heads/master | 2023-08-21T17:55:39.179551 | 2021-10-22T03:57:50 | 2021-10-22T03:57:50 | 195,784,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import sys
sys.stdin = open('1940.txt', 'r')
for T in range(1, int(input()) + 1):
N = int(input())
answer = 0
velocity = 0
for n in range(N):
inputs = list(map(int, input().split()))
state = inputs[0]
if state == 1:
velocity += inputs[1]
elif state == 2:
... | [
"mpcato@naver.com"
] | mpcato@naver.com |
77d095fcd57cbf06b3de67806420aa9c3b4b53d4 | c56c153e90fa7ae04e8e84410fc6cb3aef1bc800 | /base.R | 5ce8b978749c7f7ac5143b46e420fc5fdba80d0f | [] | no_license | yiyusheng/TC_koubei | 7215d483f9e09982a59c90a9836100e56abb9e25 | a02cee69fb49bd89cd561b64d73c47ddde5a2f57 | refs/heads/master | 2021-01-11T22:33:38.949377 | 2017-02-17T09:01:47 | 2017-02-17T09:01:47 | 78,988,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | r | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Filename: base.R
#
# Description: commenly used function in this project
#
# Copyright (c) 2017, Yusheng Yi <yiyusheng.hust@gmail.com>
#
# Version 1.0
#
# Initial created: 2017-01-16 21:44:43
#
# Last modified: 2017-01-19 11:23:32
#
#
#
get_shop <- function(id,sp = sh... | [
"yiyusheng.hust@gmail.com"
] | yiyusheng.hust@gmail.com |
e8ee10c0cb8e27441f73f177ccfd1b2e8b699934 | f7d2114152ec5c8e283b6bfbb9feeb5a4337eb71 | /ACL054400-python37/samples/CH10/object_serialization/dvdlib_pickle.py | fb242f95931ac4828b258ec9149bac400dcd4d4c | [] | no_license | faustfu/hello_python | f5759ff6bf87694e6ba472349f4263bc8ad479b0 | 1487e60e2d9307e1a0ebffbf26d8e075da806a39 | refs/heads/master | 2021-02-10T18:01:50.450295 | 2020-11-20T02:17:18 | 2020-11-20T02:17:18 | 244,406,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import pickle
class DVD:
def __init__(self, title: str, year: int, duration: int, director: str) -> None:
self.title = title
self.year = year
self.duration = duration
self.director = director
self.filename = self.title.replace(' ', '_') + '.pickle'
def save(se... | [
"faust.fu@gmail.com"
] | faust.fu@gmail.com |
a01a1ee288b6cd45c7e9248a7c0527e5b595153e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QB6kPXQkFgMkzcc2h_16.py | 3ac2d588f5b7c292966309deac97e107d2c7f2c0 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
def remove_abc(txt):
if "a" in txt.lower() or "b" in txt.lower() or "c" in txt.lower():
return txt.replace("a", "").replace("b", "").replace("c", "")
else:
return None
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7e39932d9b6d14371a3a3a197aaff1225753b296 | 8200c609ae9c78af2848237f1c43e54b8560e87b | /tests/test_minres.py | 80012f3468411040939b76c6609ecd9259e1600f | [
"MIT"
] | permissive | christian-cahig/krylov | ecf07f50000ac6c8441f0713693f52df337240db | b6bb7e01e0d3409dbd506ec8d232a5da19e3e7ca | refs/heads/main | 2023-04-28T16:52:50.887796 | 2021-05-21T18:54:08 | 2021-05-21T18:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import pytest
import krylov
from .helpers import assert_consistent
from .linear_problems import hermitian_indefinite, hpd
from .linear_problems import spd_dense as spd
from .linear_problems import spd_rhs_0, spd_rhs_0sol0, symmetric_indefinite
@pytest.mark.parametrize(
"A_b",
[
spd((5,)),
sp... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
21044048461cf0140e43fca4b8b0dbbcda7b32d9 | c31c8095ce4d4e9686e3e7ad6b004342e49671fa | /forum/migrations/0086_auto_20190124_1403.py | d90ca9f50c660347e4e531ec4f61dbeda976fe51 | [] | no_license | Lionalisk/arrakambre | 7bcc96dea2ca2a471572bfb1646256f1382ce25b | 2caece9be5eebf21ddfa87a6c821c32b5d5019a2 | refs/heads/master | 2020-12-07T19:31:24.471090 | 2020-01-09T10:14:29 | 2020-01-09T10:14:29 | 232,782,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # Generated by Django 2.1.3 on 2019-01-24 13:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forum', '0085_auto_20190124_1221'),
]
operations = [
migrations.AddField(
model_name='perso',
... | [
"lionel.varaire@free.fr"
] | lionel.varaire@free.fr |
3ec923644ba27f03e70f29eba4ecb470b4167106 | 6df9a960c0a4e2049b5932938a83ee82d4516412 | /databases_2/m2m-relations/articles/views.py | 1ceee601e7e1fec92b9fb7cad031c5bb5f236bf9 | [] | no_license | alekseykonotop/dj_hw | 9585f0d42ec95d31f5eeae09b953e5f195bc9ee7 | 6752361d007d777127eb77445d45da58332e0223 | refs/heads/master | 2021-07-19T06:30:04.333018 | 2019-09-21T18:12:38 | 2019-09-21T18:12:38 | 177,439,677 | 0 | 0 | null | 2020-06-05T22:56:52 | 2019-03-24T16:24:46 | Python | UTF-8 | Python | false | false | 223 | py | from django.views.generic import ListView
from .models import Article, Category, Compilation
class ArticleListView(ListView):
template_name = 'articles/news.html'
model = Article
ordering = '-published_at'
| [
"alekseykonotop@gmail.com"
] | alekseykonotop@gmail.com |
041df02d4c1cb214bc633d627071a694b88f2500 | 99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa | /src/pytezos/michelson/instructions/__init__.py | ab84dc488ef90063a0ec8975b4ef10d992552b94 | [
"MIT"
] | permissive | baking-bad/pytezos | c4248bde49a5b05521b8cc51eeca588b1a721660 | 19747e3acec2141f06e812025673f497fc07e2d4 | refs/heads/master | 2023-07-06T21:57:09.572985 | 2023-07-05T11:45:27 | 2023-07-05T11:45:27 | 169,243,460 | 115 | 43 | MIT | 2023-07-04T16:28:09 | 2019-02-05T13:12:50 | Python | UTF-8 | Python | false | false | 8,126 | py | from pytezos.michelson.instructions.adt import CarInstruction
from pytezos.michelson.instructions.adt import CdrInstruction
from pytezos.michelson.instructions.adt import GetnInstruction
from pytezos.michelson.instructions.adt import LeftInstruction
from pytezos.michelson.instructions.adt import PairInstruction
from py... | [
"noreply@github.com"
] | baking-bad.noreply@github.com |
f2e5aa16489de06496939150e81354951081ef4a | 7615cb2a3d19a998ada9ed7994a5c304b65ad760 | /HandlingButtonClicks.py | e0a4f00751140ac3392837403b1d7f2c5920d2f8 | [] | no_license | sadiqulislam/GUI-Tkinter | 61ae812443f51a21b84033b31997c9a50f8d78cf | ab37e78c9f5f27f9b79b5908055391d3dd923c58 | refs/heads/master | 2021-01-02T09:55:01.743688 | 2020-02-11T16:55:21 | 2020-02-11T16:55:21 | 239,565,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from tkinter import *
root = Tk()
def click():
print("You Clicked Here")
button1 = Button(root,text="Click Here",command=click)
button1.pack()
root.mainloop() | [
"sishishir2015@gmail.com"
] | sishishir2015@gmail.com |
6a79b2cad508e9b03721168440cfa6c8f0590b3f | 41a3baf733d7b701bdd3600bf4f7aa227060785f | /q7_8.py | 316c41be5d7362b1017efed0e21cae99d30f8a4d | [] | no_license | domspad/ctci_solutions | 7a8264ef26fd2209adaed005cc0c8f0d6538ab05 | 6a3af811732f62a613f7fa884f5ae0e0a9e64132 | refs/heads/master | 2021-01-02T09:38:05.278621 | 2015-03-11T05:28:29 | 2015-03-11T05:28:29 | 30,838,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | """
# Chapter 7: Object-oriented Design
# Problem 2:
Othello is played as follows: Each Othello piece is white on one side and black on the other
When a piece is surrounded by its opponents on both the left and right sides, or both the top and bottom,
it is said to be captured and its color is flipped On your turn,... | [
"domspad@umich.edu"
] | domspad@umich.edu |
9c03847e0d6865a99ca8a01dffb1c2d0f7edd4db | 184d8b600b66ceed4e065878447fd3b99d137a48 | /SAN/san_eval.py | 60938ea99585b075c384a071f438c62d9397c7a0 | [
"MIT"
] | permissive | arnoldjair/landmark-detection | 10d45bcdfbb469a3f59fb7d3916fe508fc0b150f | 1ad9db7d94397d81898f6f7c05abe76806d3d85e | refs/heads/master | 2023-03-07T20:06:57.594994 | 2021-02-15T02:56:49 | 2021-02-15T02:57:44 | 261,280,519 | 0 | 0 | MIT | 2020-05-04T19:48:14 | 2020-05-04T19:48:13 | null | UTF-8 | Python | false | false | 4,894 | py | ##############################################################
### Copyright (c) 2018-present, Xuanyi Dong ###
### Style Aggregated Network for Facial Landmark Detection ###
### Computer Vision and Pattern Recognition, 2018 ###
##############################################################
from ... | [
"280835372@qq.com"
] | 280835372@qq.com |
2a3797f3bed09887087024272f762da60f75cf0c | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Data Structures/Disjoint Data Structures/Basics of Disjoint Data Structures/Utkarsh and Sub Array Xor/test.py | 27983cd92535eaaa15d7a1cf008205989e6f294e | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 587 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('sys.stdin.readline', side_effect=[
'5 3',
'1 1',
'2 3',
'5 5',
])
def test_case_0(self, input_mock=None):
text_trap = io.StringIO... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
f310095a1ac0eb8cfb8178e08cc8ef0bc17261cd | 70f564990215f47b139a777826f211477e9b44f6 | /plan2vec/plotting/visualize_pairs_2d.py | baba4ce4a5bc3ae7fadfd4c5f4a7a5b08a1d0a2a | [] | no_license | geyang/plan2vec | de87f2d77732c4aacdefd00067ebebacb7cd763f | aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1 | refs/heads/master | 2022-11-16T03:40:42.638239 | 2022-10-28T04:01:29 | 2022-10-28T04:01:29 | 261,273,420 | 65 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,191 | py | import numpy.ma as ma
def visualize_neighbors(xs, ns, key=None):
"""
Visualizing points, and their neighbors in the dataset
:param xs: Size(batch_n, 2)
:param ns: Size(batch_n, k, 2), k being the number of neighbors to show
:param key: The path to save the figure to
:return:
"""
impor... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
0dec8f63058472db6eff1fc379f5f8579e6dab45 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/interactions/picker/picker_pie_menu_interaction.py | 8769291d17aacc068029716f6b93552f0757e5f9 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | from event_testing.results import TestResult
from objects.base_interactions import ProxyInteraction
from sims4.utils import flexmethod, classproperty
from singletons import DEFAULT
class _PickerPieMenuProxyInteraction(ProxyInteraction):
INSTANCE_SUBCLASSES_ONLY = True
@classproperty
def proxy_name(cl... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
0f6ed1a800cc6996f60226a18705142f486db303 | 21b07f788809bce4bc7d917b429018b53d71a5b1 | /esp32/ioboard-test-sparkfun/network_rtc_2.py | cbc831f221eb08ca88a785b316fbdade9e06d1b2 | [] | no_license | pascal1062/micropython | f4008b87b7addfb0908b90dac2f12f67b9feb411 | 1968240d15f4a046e5ba71308ab46a927457685f | refs/heads/main | 2023-07-17T17:59:18.893905 | 2021-08-29T15:23:10 | 2021-08-29T15:23:10 | 401,066,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py |
def set_time():
import network
import urequests
import ujson
from machine import RTC
url = "http://192.168.0.90:1880/currenttime"
wifi = network.WLAN(network.STA_IF)
rtc = RTC()
if wifi.isconnected():
response = urequests.get(url)
if response.status_code == 200: # quer... | [
"noreply@github.com"
] | pascal1062.noreply@github.com |
942731729f219217e64b0c6be4991e8bfd33277f | 7e2529fec680006e01d3688bb33115e9a97ee1ac | /hackerrank/cutTheSticks.py | e62c609436c1bd910f791d9e510f2136d8c6cc9f | [] | no_license | JamesWo/Algorithms | d3c6155e655e40704d42084b7d2236eb01ccb91c | e4a13f06b3902f23389e89f00832886a495ced42 | refs/heads/master | 2021-01-17T06:09:35.968583 | 2016-08-03T17:05:54 | 2016-08-03T17:05:54 | 36,084,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #https://www.hackerrank.com/challenges/cut-the-sticks
# Enter your code here. Read input from STDIN. Print output to STDOUT
numSticks = input()
print numSticks
remainingSticks = numSticks
sticks = map(int, raw_input().split(" "))
sticks.sort()
index = 0
while (index+1) < len(sticks):
index += 1
remainingSticks... | [
"jameswo@berkeley.edu"
] | jameswo@berkeley.edu |
6ee04f7cced2a9753d6e71a556a2acec738e5dd2 | 68fda43868893bbc11a27a95f2d5d2670757a90e | /FitHome_monitor/config/test_config.py | e19093250441b744fa9b286c6fc6817229a1e6ee | [] | no_license | BitKnitting/energy_monitor_firmware | ad08da322a6fb514ec6bc95489874c32630cca69 | 6ec2d6e44a6aaf9350222146e82cef8c9798b636 | refs/heads/master | 2020-06-16T16:57:45.682787 | 2019-12-30T00:14:11 | 2019-12-30T00:14:11 | 195,643,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from config import read_config, add_creds
monitor_name = read_config('monitor')
print(monitor_name)
add_creds('ssid', 'pwd') | [
"farmerrobbie@freshsalad.today"
] | farmerrobbie@freshsalad.today |
64de19db9c16d1cb37f188e8734ed6bc7a683bc3 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/l10n_ar/models/res_partner_bank.py | 5f5104c356fdebe62bc9b36b803cb5a652bb8da7 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 1,675 | py | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api, _
from odoo.exceptions import ValidationError
import logging
_logger = logging.getLogger(__name__)
try:
from stdnum.ar.cbu import validate as validate_cbu
except ImportError:
import stdnum
_logger.warn... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
5aae22ecc57ea7a2762bc110ed3a55a913519a92 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03206/s703219007.py | 7f5518d8fe01a2da04eacbbfed3dad911913847c | [] | 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 | 77 | py | d=int(input())
s="Christmas"
for i in range(25,d,-1):
s=s+" Eve"
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f20051d3520c006f6e93f0dd5d0c2b82242fdb65 | 8633ec7985ffd7f849210b93bc20e632f8ae8707 | /rereco/additional_rereco/EvtGeneration/conf_files_cmsdr/SingleEl/SingleElectronPt10_RECO.py | 9580777303bf223fbc588f75970dc744677249b6 | [] | no_license | liis/el_track | 2ed5b3b7a64d57473328df0e5faf28808bab6166 | cd7978e5fa95d653bab5825b940911b465172c1a | refs/heads/master | 2016-09-10T20:09:07.882261 | 2015-01-08T14:41:59 | 2015-01-08T14:41:59 | 14,494,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,851 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --conditions PRE_STA71_V4::All -s RAW2DIGI,L1Reco,RECO --d... | [
"polaarrebane@gmail.com"
] | polaarrebane@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.