blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bbd6c656d8161a8b8be3d02844a8220aa9d5b9f | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /onos_id_bug_fixed_ids_file_blackbox_mcs2/interreplay_10_l_3/replay_config.py | 82595f379760b10766728d353bd972790e96556f | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.replayer import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cm... | [
"a.hassany@gmail.com"
] | a.hassany@gmail.com |
522ca045013c70ddf30198f05b93ecc0ea09d608 | 33524b5c049f934ce27fbf046db95799ac003385 | /Дистанционная_подготовка/Программирование_на_python/11_Арифметика/zadacha_G.py | dab1de67ae08f8d442d48ab597d13da15fe422b7 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
'''
Сумма двух квадратов
'''
n = int(input())
def square(n):
return n*n
for i in range(1, 20):
x1 = square(i)
if x1 > n:
break
for j in range(1, 20):
value = x1 + square(j)
if value == n:
print (i,j)
elif value > n:
print ('Imposible')
break
| [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
cf3aef8d67017da08e3ac0f4469803969c4c23ce | 71c0121fb47df8ce11f33e7617dd262525ffea81 | /commandline/manager.py | 34727999ac0f2d6dedbde1132e0ac273ca1b4085 | [] | no_license | igor35hh/PythonTraining | 33d09b045b0f8676f23a5b43410aaa6a7c6a5631 | 020bc274bba0ffb70f1cdc45e18ea8b6467110fb | refs/heads/master | 2021-05-01T23:46:54.919344 | 2018-03-11T21:30:30 | 2018-03-11T21:30:30 | 77,922,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py |
from Person import Person
class Manager(Person):
def __init__(self, name, age, pay):
Person.__init__(self, name, age, pay, 'mahager')
def giveRaise(self, percent, bonus=0.1):
Person.giveRaise(self, percent + bonus)
if __name__ == '__main__':
tom = Manager(name='Tom Doe',... | [
"igor35hh@gmail.com"
] | igor35hh@gmail.com |
37415d93e5786fda13e764919a9b90057f5fdbdc | db1dcf7cf7218e0de8eb7fa0da709effa507c3bf | /Mastering matplotlib/SF_MM/02-architecture/lib/modfind.py | dfc21e7e0c2b219c2e391cba3fd0d5ae28ad14d4 | [] | no_license | AaronCHH/B_PYTHON_matplotlib | a65da48771ce8248d51ee054eab91eeb3ce50e74 | 84c809800b3b797a09a5abfc76860ca7f7df8b80 | refs/heads/master | 2021-01-19T10:17:05.132372 | 2017-04-10T19:29:54 | 2017-04-10T19:29:54 | 87,849,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | from collections import Counter, OrderedDict
from modulefinder import Module, ModuleFinder
from typecheck import typecheck
import typecheck as tc
class CustomFinder(ModuleFinder):
def __init__(self, include: list=None, exclude: list=None,
*args, **kwargs):
super().__init__(*args, **kwarg... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
41f0e0207d7368fe936b6b7dd33c3d5918255fc7 | 744594f30c5e283f6252909fc68102dd7bc61091 | /2017/13/13b_solution.py | de65bf6b0591cf4c57cbfdbf892acb60bc33e3ad | [
"MIT"
] | permissive | vScourge/Advent_of_Code | 84f40c76e5dc13977876eea6dbea7d05637de686 | 36e4f428129502ddc93c3f8ba7950aed0a7314bb | refs/heads/master | 2022-12-20T22:12:28.646102 | 2022-12-15T22:16:28 | 2022-12-15T22:16:28 | 160,765,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | """
Advent of Code 2017
input is: input.txt
"""
DIR_DOWN = 0
DIR_UP = 1
class Layer( ):
def __init__( self, depth, range ):
self.depth = depth
self.range = range
self.scan_pos = 0
self.scan_dir = DIR_DOWN
def move( self ):
if self.scan_dir == DIR_DOWN:
self.scan_pos += 1
if self.scan_pos ==... | [
"adam.pletcher@gmail.com"
] | adam.pletcher@gmail.com |
e9cab789778a120d62afba5b2378b2ea14e862b2 | 0af18096e2d024cc1e069b16e7c17d944c6f96e8 | /backend/naiosh_4776/wsgi.py | 70f7738558b87649acf9f02b276b15f0b7d28243 | [] | no_license | crowdbotics-apps/naiosh-4776 | 7ed8ee5c42efa74da842a36d55fb5acb68e68291 | 27386cc9d311d965e87b086ff10b44f469dd2a96 | refs/heads/master | 2022-12-12T03:43:11.995902 | 2019-06-17T10:09:09 | 2019-06-17T10:09:09 | 192,322,848 | 0 | 0 | null | 2022-12-03T14:01:00 | 2019-06-17T10:09:03 | JavaScript | UTF-8 | Python | false | false | 400 | py | """
WSGI config for naiosh_4776 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7b0cb2d2f3dee1ab0cc39a99d8091729a0a93698 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/ndxkee009/question4.py | 5473e314c72caf0b2087d06f5bbfde1e8a2e5a5d | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #Keegan Naidoo
#NDXKEE009
import math
s=eval(input("Enter the starting point N: \n"))
e=eval(input("Enter the ending point M: \n"))
s1=str(s)
e1=str(e)
c=1
print("The palindromic primes are:")
for i in range(s+1,e):
a=s+c
#print(a)
a1=str(a)
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
8a3ae0b145000c2ff07323b20a3e821a08a00604 | b500996a0b29829fde6afe8b23178ca9df4a239d | /rydinfap/src/procdata/procxml.py | 85d8990856b92ff7752484b6827873e33fa16a25 | [] | no_license | eocampo2000/test-code | 48c4d444e323eef5e6fe7e61b018952ef3cd4134 | 49328664243e1a9daf9c567d1aaaa19fd4654c02 | refs/heads/master | 2016-08-11T07:35:31.346464 | 2016-02-13T12:33:55 | 2016-02-13T12:33:55 | 51,642,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | '''
Created on May 15, 2012
@author: eocampo
XML files parser. Please specify the main LAYOUT.
TODO encapsulate it into a class
EO 20150313 : Added parseCanCPI, _parseCanCPITable methods.
'''
__version__ = '20150313'
import utils.fileutils as fu
import xml.etree.ElementTree as ET
import sys
im... | [
"eocampo1000@hotmail.com"
] | eocampo1000@hotmail.com |
bb2a5c272cb0c24dd423ee814a9a892c61bfe4e2 | 1c40857067b4d92e4efe161d154927c928548a7d | /workery/tenant_api/views/staff_comment.py | 168d92c62878ef8fe2ef89a2cc6ead80bac6836b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rahulyhg/workery-django | 9331eb1b87b02407a721e9d512e3d60cb22af314 | 73fd500fefcf4212cf07071e16cf676e173ddea6 | refs/heads/master | 2020-06-29T08:34:03.529503 | 2019-08-03T21:18:09 | 2019-08-03T21:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | # -*- coding: utf-8 -*-
from ipware import get_client_ip
from django_filters.rest_framework import DjangoFilterBackend
from django.conf.urls import url, include
from django.shortcuts import get_list_or_404, get_object_or_404
from rest_framework import filters
from rest_framework import generics
from rest_framework impo... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
144328a1ef2d6268d21d76ba311a8ab52315f9e7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/fa45c44026ed471714d0383fd2731911d16a1271-<main>-fix.py | c47982491f786ea4edc3a9e39524947a6f75ebe6 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | def main():
args = parse_args()
try:
sys.stdout = StringIO()
config_files = (cloud_config.CONFIG_FILES + CONFIG_FILES)
sdk.enable_logging(debug=args.debug)
inventory_args = dict(refresh=args.refresh, config_files=config_files, private=args.private, cloud=args.cloud)
if ha... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
20e2fa8b1ace352e52ea0894f8e32dc5c436ddab | 9cf6b31876b6fe3652e9d2613afff41793cc7d49 | /apps/cpa/forms.py | aab6be6e553718cf8eca57f5b85acd26ba63747a | [] | no_license | amyard/findinshopGit | 2a3b56c845691573b33ccc66b036cab0effa0e8e | b642bc81cf633c95ccd978d5e9fb4177eee38be4 | refs/heads/master | 2022-12-13T19:17:45.031095 | 2019-10-31T13:08:51 | 2019-10-31T13:08:51 | 213,323,148 | 0 | 0 | null | 2022-12-10T04:48:01 | 2019-10-07T07:44:13 | Roff | UTF-8 | Python | false | false | 3,269 | py | # -*- coding: utf-8 -*-
#Python imports
from datetime import timedelta
#Django imports
from django import forms
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.core.cache import cache
#Findinshop
from apps.cpa.models import CostSetting, OwnAndUserCategory
from apps.cpa.va... | [
"maksymturenko@gmail.com"
] | maksymturenko@gmail.com |
ae516920a922dc54aabf018db891dd22f8e371f0 | 34cb685d3340cb59c2f3639b3b5ca42ff3812338 | /pptx/shapes/__init__.py | 99f249ecc8e51d468e8c571d0f1aa09118457441 | [
"MIT"
] | permissive | handwriter/python-pptx | 6b435b6c9c95fcc00cd2aa0923ca15e211228a8b | 22351c6f9fe637cadddca3461c4899af7d439711 | refs/heads/master | 2021-04-05T00:27:20.870352 | 2020-03-19T13:20:28 | 2020-03-19T13:20:28 | 248,506,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # encoding: utf-8
"""
Objects used across sub-package
"""
class Subshape(object):
"""
Provides common services for drawing elements that occur below a shape
but may occasionally require an ancestor object to provide a service,
such as add or drop a relationship. Provides ``self._parent`` a... | [
"62296664+handwriter@users.noreply.github.com"
] | 62296664+handwriter@users.noreply.github.com |
ceaa8c09f078a8c7e8371072a72da1225db7cfa5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_gigolos.py | ef7c72c0482e98e0450b0486f04f9aea27e380da | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _GIGOLOS():
def __init__(self,):
self.name = "GIGOLOS"
self.definitions = gigolo
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['gigolo']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5748810f922be1440a1298e49a103ac06d55a06e | a5747577f1f4b38823f138ec0fbb34a0380cd673 | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM4000_R_0-6.py | 910fd4a43e6bc2485a23bcac0657f0fb8a30f1a0 | [] | no_license | xdlyu/fullRunII_ntuple | 346fc1da4cec9da4c404aa1ec0bfdaece6df1526 | aa00ca4ce15ae050c3096d7af779de44fc59141e | refs/heads/master | 2020-08-03T07:52:29.544528 | 2020-01-22T14:18:12 | 2020-01-22T14:18:12 | 211,673,739 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M4000_R0-6_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Fall17... | [
"XXX@cern.ch"
] | XXX@cern.ch |
08c5e949442ecbfec52341e878dee28f49e30e0f | 6fb8892e0455043b4776e331f8176ab1139f1fd9 | /backend/home/migrations/0001_load_initial_data.py | c1927313a664726ec8d191be309891da27b452b7 | [] | no_license | crowdbotics-apps/gozle-browser-28537 | c5bc1dc800c0b9836f3cd067d1d421fdb447def2 | fd0ee4d32ca575df2422506894f9380d11b76533 | refs/heads/master | 2023-06-07T04:50:52.183276 | 2021-07-07T15:26:51 | 2021-07-07T15:26:51 | 383,841,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "gozle-browser-28537.botics.co"
site_params = {
"name": "Gozle browser",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
60e0a38ac1246955d613e358f11c89163d652506 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_54/686.py | 4511b8d1827a6633638de3b13f1f24900abf7196 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
def gcd(a,b):
if b == 0:
return a
return gcd(b,a%b)
f = open("input.txt","r")
T = int(f.readline())
for i in range(T):
nums = f.readline().split()
nums = [int(x) for x in nums]
diff = [abs(nums[k+1] - nums[k]) for k in range(1,len(nums)-1)]
d... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bc9c3ebea8a6a5642bd542c11bcc86389e7463ea | f3d38d0e1d50234ce5f17948361a50090ea8cddf | /백준/Bronze/Bronze 4/2530번 ; 인공지능 시계 아직 안품.py | 01ea7bdd693da5cd63b5c982f15fcf886091b6d1 | [] | no_license | bright-night-sky/algorithm_study | 967c512040c183d56c5cd923912a5e8f1c584546 | 8fd46644129e92137a62db657187b9b707d06985 | refs/heads/main | 2023-08-01T10:27:33.857897 | 2021-10-04T14:36:21 | 2021-10-04T14:36:21 | 323,322,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | # https://www.acmicpc.net/problem/2530
# 현재 시각 시 A, 분 B, 초 C 입력
# 0 <= A <= 23
# 0 <= B <= 59
# 0 <= C <= 59
A, B, C = map(int, input().split(' '))
# 요리하는데 필요한 시간 D : 초 단위 입력
# 0 <= D <= 500,000
D = int(input())
# 요리하는 데 필요한 시간은 초 단위로 입력 받으므로 이것을 시, 분, 초 단위로 쪼개준다.
plus_hour = D // 3600
D = D - plus_hour * 3600
plus_... | [
"bright_night_sky@naver.com"
] | bright_night_sky@naver.com |
929aec9c56cc8ca4c570af9cd6043c4d9256e2da | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /smallestRepunitDivByK.py | 3071d89089c335e92fa7eb56b3efbec7c1ac437c | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | class Solution:
def smallestRepunitDivByK(self, k: int) -> int:
if k == 1:
return 1
a = [1]
seen = set(a)
while True:
a.append((a[-1] * 10 + 1) % k)
if a[-1] == 0:
return len(a)
if a[-1] in seen:
retur... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
fe9981ffe57faaf1b5ac9e27c981810646f19b43 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_odieatla_sheep.py | 8de3f71090aece5636ed89940641042f89fa0783 | [] | 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 | 743 | py | #!/usr/bin/env python
t = int(raw_input()) # read a line with a single integer
for i in xrange(1, t + 1):
#n = [int(s) for s in raw_input().split(" ")]
n = int(raw_input())
limit = 100
result = range(0, 10)
m = n
to_break = False
for l in xrange(1, limit+1):
num_str = str(n*l)
#print "curren... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f2f1dabe7a5b575b5074614f8cad0c656ff69e8b | 982194a86c5a11185bb55a653ba1730807b9f67f | /source-builder/sb/log.py | 8e4602311574c32458949df50ebd0837b23593a3 | [] | no_license | jeffmurphy/rtems-source-builder | f476ef158d3a4103168e70731bbad6d5ea521d04 | 539c48a40543193fc088fd8a67b3ab0ef5308c24 | refs/heads/master | 2020-12-25T13:23:57.017108 | 2015-02-09T22:37:43 | 2015-02-09T22:37:43 | 30,490,786 | 0 | 0 | null | 2015-02-08T12:48:18 | 2015-02-08T12:48:17 | null | UTF-8 | Python | false | false | 6,078 | py | #
# RTEMS Tools Project (http://www.rtems.org/)
# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-testing'.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, p... | [
"chrisj@rtems.org"
] | chrisj@rtems.org |
60b32cb26774747a827fb99ec828f7caeb007fd8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_86/264.py | 47c4d9f5b59ad9d3d7dc6bc03f717392097e26ce | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #!/usr/bin/env python
def solves(n, freqs):
if all(map(lambda a: a%n==0 or n%a==0 or a==1, freqs)):
return True
else:
return False
def print_solution(freqs, n, l, h):
for i in xrange(l, h+1):
if solves(i, freqs):
return str(i)
return 'NO'
def main():
T = i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e67bf271c819e68a36805a80819c5935dc3a5ec8 | 946062524e1995a33cc9de01dc1766da27cba16b | /py_ad_3_3.py | f0ed5c35114fb0d58b178c1b4dcdf44ee11d0342 | [
"MIT"
] | permissive | seopbo/con-par-python | 87f684332d6a72969bb5d1759143d7374c2454b1 | e74cb9c30acfdd78c12c9f7aba039d16ed1f7e78 | refs/heads/main | 2023-05-29T03:27:33.564631 | 2021-06-16T12:51:44 | 2021-06-16T12:51:44 | 372,824,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """
Section 3
Concurrency, CPU Bound vs I/O Bound - Multiprocessing vs Threading vs AsyncIO
Keyword - CPU Bound, I/O Bound, AsyncIO
"""
"""
CPU Bound vs I/O Bound
CPU Bound
- 프로세스 진행 -> CPU 속도에 의해 제한(결정) -> 행렬 곱, 고속 연산, 압축 파일, 집합 연산 등
- CPU 연산 위주 작업
I/O Bound
- 파일쓰기, 디스크 작업, 네트워크 통신, 시리얼 포트 송수... | [
"bsk0130@gmail.com"
] | bsk0130@gmail.com |
14433120dd972d49171446aa029b1e37702465bc | 46afa2d7d3c531c898d1ade4f9e8f896661b8db3 | /interpolate.py | 8ce445555f6323405a6d9072f48bf3612941f121 | [
"Apache-2.0"
] | permissive | Guymer/PyGuymer | b07062e9464ec134e1c83122ee1734d8bff6b4ad | 7970659645f363788d371d00e2128f0cc3a47362 | refs/heads/master | 2021-01-19T13:19:39.797501 | 2020-11-28T08:26:27 | 2020-11-28T08:26:27 | 82,384,393 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # -*- coding: utf-8 -*-
##############################################################################################
# This file is deprecated because Python 2.x is deprecated #
# A Python 3.x version of this file can be found at: #
# ... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
6de16e882d54b189cd4432684fe408fb63810100 | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /trex/widgets/variableexplorer/tests/test_utils.py | f441a93f49aee22028a0bd2c3efe39bcbaa31376 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # -*- coding: utf-8 -*-
#
# Copyright © TRex Project Contributors
# Licensed under the terms of the MIT License
"""
Tests for utils.py
"""
# Third party imports
import pytest
# Local imports
from trex.widgets.variableexplorer.utils import sort_against
# --- Tests
# -------------------------------------------------... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
3c41a57cd18183f8d1d971ce71b94d38243f5a85 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/cdn/v20161002/get_profile_supported_optimization_types.py | c7c51e915af6ec616d256f41b35028165f4f7fb8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
fb337d2f93cb7bc1c230ac5ee85b0ae6153d1a2b | 673bf701a310f92f2de80b687600cfbe24612259 | /misoclib/mem/litesata/test/scrambler_tb.py | 20c4045c45769c09a380c0ad879bb473df375f0a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mogorman/misoc | d78340a9bf67feaede20e8cac473bcfddbd186a3 | 4ec49e2aadcff0c3ca34ebd0d35013d88f4d3e1f | refs/heads/master | 2021-01-18T05:38:39.670977 | 2015-03-10T05:37:52 | 2015-03-10T05:37:52 | 30,672,191 | 1 | 0 | null | 2015-02-11T22:05:05 | 2015-02-11T22:05:05 | null | UTF-8 | Python | false | false | 1,291 | py | import subprocess
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.scrambler import *
from misoclib.mem.litesata.test.common import *
class TB(Module):
def __init__(self, length):
self.submodules.scrambler = InsertReset(Scrambler())
self.length = length
def get_c_values(self, le... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
f0d1d5adff2ca0f3f278aaf8ad723ec45be24682 | d28a65d23c204a9736b597ae510d9dd54d2ffd0f | /tests/testRF2Namespace.py | 9c77dd12cc6eaf93924009005bcb02f414c7cd61 | [
"BSD-3-Clause"
] | permissive | cts2/rf2db | 99ba327611e620fc5533245064afcc1daff7c164 | 985cd7ad84c8907306a0d7d309d4a1c0fb422ba4 | refs/heads/master | 2020-05-17T22:37:25.476553 | 2015-08-24T22:18:19 | 2015-08-24T22:18:19 | 15,264,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Mayo Clinic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list of ... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu |
6a2ffbb56766a47705ad8233ad60ec4b258bb9d7 | dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7 | /Character/25.Milim/Milim_O.py | 8c2045b511085f6a3595ca72e7b3ac72960686d2 | [] | no_license | Lastation/RenewalAniChaos | d12a8423f4b83cb019495c59ed059451e67e0483 | c3edb29af58925de55c11110ccaf927d2b5d1b39 | refs/heads/master | 2023-08-24T11:28:35.614844 | 2023-08-22T21:23:14 | 2023-08-22T21:23:14 | 246,617,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,766 | py | import Function as f;
const s = StringBuffer();
function main(cp)
{
if (f.count[cp] == 1)
{
MoveLocation("25.Milim_Bozo", f.heroID[cp], cp, "Anywhere");
}
f.HoldPosition(cp);
f.BanReturn(cp);
if (f.delay[cp] == 0)
{
if (f.count[cp] == 0)
{
if (f.loop[cp] == 0)
... | [
"ghtjd000129@naver.com"
] | ghtjd000129@naver.com |
80bb3d72b5be850cf02eca31d0d3c0b58fe08313 | 3d3f629105b0a350c011976cae02cb10b385d873 | /keras_180112/klab-10-2-mnist_nn.py | 36d1418056f2ff3caacf1143ea13e15413242fbf | [] | no_license | vt0311/acorn_tensor | fbe7a9507db15161f029f297df64bfe0c937764f | eb9d94c5f28d673b82becb31abe6640cbd18cf89 | refs/heads/master | 2021-09-07T00:32:33.819768 | 2018-02-14T07:45:06 | 2018-02-14T07:45:06 | 114,960,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout
batch_size = 128
num_classes = 10
epochs = 12
# ==============================================================================
# prepare data
(X_train, y_t... | [
"hsw0311@nate.com"
] | hsw0311@nate.com |
9e4713c9b200c4824571edd9a6992ce2fe3ae3a1 | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-ml-quant-rl/pandas_ml_quant_rl/renderer/wrappers.py | 3fb96c84205231b00a6dece0e609e87c5eba87bc | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | import time
from queue import Empty
from multiprocessing import Process, Event, Queue
from .abstract_renderer import Renderer
def render_frame(data_q: Queue, finish_e: Event, renderer_provider):
renderer = renderer_provider()
while True:
try:
old_state, action, new_state, reward, done = d... | [
"kic@kic.kic"
] | kic@kic.kic |
1c69983d542daa4862fc550a96058d269e269317 | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/top_interview_questions/SingleNumber.py | 946e7f04b71da2dfe1ffc065803ebed6b32acc7d | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | '''
Given a non-empty array of integers nums,
every element appears twice except for one.
Find that single one.
Follow up: Could you implement a solution with a
linear runtime complexity and without using extra memory?
'''
nums = [2,2,1]
def singleNumber(num):
countDict = {}
for i in nums:
if i... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
6fa21b8ade431f7c3d86510e7d9f2ccc1c8b4271 | efbe970cb374d4416c2c500a495994397ea18dd5 | /utils/db.py | 7a8018cd56adb2b0f4ac8c2920dbbc8cbbb04e43 | [
"MIT"
] | permissive | void-being/bepis-bot | f7d9fbc7663bb8a28c70e312fa4fb20c53c406c7 | 491b8de94b94384df6b26fa6a1325ee578020b7e | refs/heads/master | 2020-07-11T17:28:10.080879 | 2018-11-15T23:44:06 | 2018-11-15T23:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,845 | py | from datetime import datetime, timedelta
from logging import getLogger
from hashlib import md5
from os import environ
from uuid import uuid4
from threading import Thread
from queue import Queue
from pymongo import mongo_client
class EventHandler(Thread):
def __init__(self):
self.q = Queue()
supe... | [
"zwork101@gmail.com"
] | zwork101@gmail.com |
386fd37b61525c2096f4a65d5ec83bd686be6528 | d68ca034018d66f73024223d4b2266b3c3c901d7 | /prev/myworks/lennys/chainxy/spiders/lennys.py | 16da51425667364402f6e451a3adb30645e65cd6 | [] | no_license | GoodyIT/scrapy | caff30d26660f778008ad50532e364ab36aba4c2 | 5ae80cf83dc62c4e1bd2bfa11049ca39a3ca3488 | refs/heads/master | 2021-01-20T10:10:18.365194 | 2017-07-22T13:09:07 | 2017-07-22T13:09:07 | 90,330,210 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | import scrapy
import json
import csv
from scrapy.spiders import Spider
from scrapy.http import FormRequest
from scrapy.http import Request
from scrapy.selector import HtmlXPathSelector
from chainxy.items import ChainItem
import pdb
class Lennys(scrapy.Spider):
name = "lennys"
domain = "http://www.lennys.com/... | [
"johnsondavid489@yahoo.com"
] | johnsondavid489@yahoo.com |
52d9885475a54a1a940aad89d53e0ad69b4ede67 | 3dbc74df3a97ce8254935a08608e8a7966a1bba6 | /math/0x00-linear_algebra/12-bracin_the_elements.py | eb3480dcce06fe9737c77707f4fb45cfa3363dd2 | [] | no_license | s0m35h1t/holbertonschool-machine_learning | 9c0475da64eea87565dd90d70eeb23016ef17600 | 2eb7965900fd018f4092d2fb1e2055d35ba4899e | refs/heads/master | 2023-02-28T21:57:50.558030 | 2021-02-07T20:44:01 | 2021-02-07T20:44:01 | 279,866,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #!/usr/bin/env python3
"""Array operations"""
def np_elementwise(mat1, mat2):
"""+. -. *, / operations between matrix.
Args:
mat1 (numpy.ndarray): M1 matrix.
mat2 (numpy.ndarray): M2 matrix.
Returns:
numpy.ndarray: M1+M2 M1-M2, M1*M2 M1/M2
"""
return mat1 + mat2, mat1 - mat... | [
"adib.grouz@gmail.com"
] | adib.grouz@gmail.com |
4d3e7de00e12814dd0c68c0dde2ce72c7722b95b | 6aee7149a16a71389e0916de1854f4edea026c2b | /test/download.py | 85081f5885c05233a84be7bdecbb5551a69b5b5b | [
"BSD-2-Clause"
] | permissive | orionzhou/maize | d5e3c66af285d5d3a490fe09e85f840bd033240a | 605c895c397c9f614955a6df8eed0edc553f543d | refs/heads/main | 2022-12-27T02:08:26.747564 | 2022-11-24T07:57:30 | 2022-11-24T07:57:30 | 11,537,821 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import os.path as op
import wget
if sys.version_info[0] < 3:
int_types = (int, long)
urlopen = urllib.urlopen
else:
int_types = (int,)
basestring = str
from urllib.request import urlopen
def download_file(src_ftp, dst_file, prt=sys... | [
"zhoupenggeni@gmail.com"
] | zhoupenggeni@gmail.com |
b99beec62cc60a55e6c46768b861059a9b5a6843 | 147648c6b25ecc33e82a36b36de6623df9340e62 | /examples/hacker_news_assets/hacker_news_assets_tests/test_sensors/test_slack_on_pipeline_failure_sensor.py | 285174018e5397b10ae037b9f992ed283ee06718 | [
"Apache-2.0"
] | permissive | asdlei99/dagster | be81009ff00dbad02f7cec974650388a5cc2af59 | bbfd1a22e85a10881d7dbbcc888957a487f0c3e5 | refs/heads/master | 2023-08-28T07:18:23.838943 | 2021-11-08T23:09:07 | 2021-11-08T23:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from dagster import repository
from hacker_news_assets.sensors.slack_on_pipeline_failure_sensor import make_pipeline_failure_sensor
def test_slack_on_pipeline_failure_def():
@repository
def my_repo_local():
return [
make_pipeline_failure_sensor("localhost"),
]
@repository
... | [
"noreply@github.com"
] | asdlei99.noreply@github.com |
c4c5dc4c7c52ced3d2aac3855ae1ca3b733e6aec | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/research/delf/delf/python/feature_extractor.py | 9545337f18724520e260af4e36ffa6ee35bce4c6 | [
"MIT",
"Apache-2.0"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 6,181 | py | # Copyright 2017 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
c49aed0557e05e299c3be8527df443644b2e2241 | a8a2491a21ee53066f42ed3cd8c1d5169858790b | /pizzaria/pizzaria/entrega/fixtures/db-update.py | 6bfbb3d7608012395bcf9d9712af49c49baaeb69 | [] | no_license | huogerac/acpy_pizzaria | 80c7236f7c9d8bf58bcf4a9f45e2bfeacd8e4d38 | eec5f88478a424ed3b193c0a6ed4f31d88b1d0e5 | refs/heads/master | 2016-09-05T18:07:14.555495 | 2012-04-13T02:04:53 | 2012-04-13T02:04:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | #!/usr/bin/env python
# coding: utf-8
import json
import argparse
import os
"""
atualiza estrutura de um arquivo json
>>> json = [{'pk': 1, 'model': 'entrega.cliente', 'fields': { 'nome': 'Juca' } }]
>>> updater = JsonUpdate( json )
>>> updater.json()
[{'pk': 1, 'model': 'entrega.cliente', 'field... | [
"huogerac@gmail.com"
] | huogerac@gmail.com |
9aa34dbf85f69d40cc103e7934a8361b0e268c80 | 39e1e256acae3fe9be4434024d42b9bb47bdd02f | /analysis/submissions/34b1ef17e6625ba2350f6f1c169591a1_task7-2_1595553510/task7-2/main.py | 57e71b6a83e9ecb3955d6e56748da540dc53cbbf | [] | no_license | neulab/tranx-study | 9fb67b9a2181f0b362e4f97316c502eee4539b19 | e2a7089689f7f95e773e19c8f19513abe4fb8b9b | refs/heads/master | 2023-06-14T04:46:01.010892 | 2021-07-08T09:29:05 | 2021-07-08T09:29:05 | 250,357,553 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | # Example code, write your program here
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
def autolabel(rects, i):
for rect in rects:
h = rect.get_height()
axs[i].text(rect.get_x()+rect.get_width()/2., h+1, '%.2f' % h, ha='center', va='bottom')
df = pd.read... | [
"frankxu2004@gmail.com"
] | frankxu2004@gmail.com |
496b5d2ed0eedb526dbcbefe24d68668eb530bb8 | 757132ddc333fdabf4b183ac59a232228f9d3f44 | /dict_os_play.py | a9fbc765161e07770a85ba4a0d51353d5fd57eca | [] | no_license | rjcmarkelz/RNAseq_rename_script | d9f6ebebbf80c6b36dd554d2bc5a7e4d731c586e | ebb40f61cbdcefc321aae9f7b2f4ffa489e03705 | refs/heads/master | 2021-01-19T22:13:50.149084 | 2013-04-27T05:57:02 | 2013-04-27T05:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/usr/bin/python
import os
import re
RN_Dict = {
'RIL_360' :'RIL_1.rn',
'RIL_73' :'RIL_1.rn',
'RIL_259' :'RIL_103.rn',
'RIL_251' :'RIL_104.rn',
'RIL_113' :'RIL_113.rn',
'RIL_265' :'RIL_113.rn',
}
print RN_Dict
# Open a file
#cody_2 path
#path = "/Users/Cody_2/git.repos/RILS/Block1/project.maloof/"
#cody_1 path
pa... | [
"rjmarkelz@ucdavis.edu"
] | rjmarkelz@ucdavis.edu |
be3a8630c86bf4562819caacf591832785f84592 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/pal_navigation_msgs/lib/python2.7/dist-packages/pal_navigation_msgs/msg/__init__.py | d75a255b3ed14cbd6bca1f6eef3c4d8666bc8d6a | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | from ._AvailableMaps import *
from ._Emergency import *
from ._EulerAngles import *
from ._EulerAnglesStamped import *
from ._GoToAction import *
from ._GoToActionFeedback import *
from ._GoToActionGoal import *
from ._GoToActionResult import *
from ._GoToFeedback import *
from ._GoToGoal import *
from ._GoToPOIAction ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
9da351c36861948347a97f559f18e3c7d0507905 | 3292017df3ff6c7190d5c5a60ecf5f8936cb7b90 | /checkio/Elementary/Index Power/index_power.py | e293ee43d262aad903dab773ab170bca99681aeb | [
"MIT"
] | permissive | KenMercusLai/checkio | 1e9cdfe70ccaf5315db36391c4710533d99cf9aa | 5082ab0c6a7ae2d97963568a6f41589332e88029 | refs/heads/master | 2022-05-12T18:22:22.604531 | 2022-05-11T09:00:28 | 2022-05-11T09:00:28 | 22,260,056 | 39 | 22 | NOASSERTION | 2022-05-11T08:42:05 | 2014-07-25T14:40:06 | Python | UTF-8 | Python | false | false | 528 | py | def index_power(array, n):
# Find Nth power of the element with index N.
if n > len(array) - 1:
return -1
else:
return array[n] ** n
if __name__ == '__main__': # pragma: no cover
# These "asserts" using only for self-checking and not necessary for
# auto-testing
assert index_p... | [
"ken.mercus.lai@gmail.com"
] | ken.mercus.lai@gmail.com |
93f43ffd58185a4000535c395d163b5c91f6ebdd | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/1330/codes/1595_1446.py | ae1ff47705f5df6b8f4503beaa1b154e0044a419 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
q = float(input())
f = q/3
print(round(f, 3)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a7062d038bf0fc26a95efe6d963427056ee70d87 | cd18e8900018afb643c44286a8d4db5d8d1c87c1 | /likelihood.py | 6bfaac5b749d06bd419e94daf5f6ed584a395940 | [] | no_license | pbizimis/score_sde_pytorch | 064a0bf9b2f116b2f0a2e9c7e129a8c38f7aa0b6 | cb0e019fc7f1262724877730d64f75eb16aab1b0 | refs/heads/main | 2023-04-18T21:15:31.753968 | 2021-03-21T22:48:36 | 2021-03-21T22:48:36 | 349,578,514 | 1 | 0 | null | 2021-03-19T23:18:21 | 2021-03-19T23:18:20 | null | UTF-8 | Python | false | false | 4,713 | py | # coding=utf-8
# Copyright 2020 The Google Research 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"yang-song@live.cn"
] | yang-song@live.cn |
2e21c92d54845d183d2aaebd0eee1a77a39208fc | f6bba50fccc6fb0dae2f046193434cfb4b9d32d5 | /m-solutions2020/c/main.py | 0bc2f50f93f9895ce3d48877d517d39eb5471a3e | [] | no_license | seven320/AtCoder | 4c26723d20004fe46ce118b882faabc05066841c | 45e301e330e817f1ace4be4088d3babe18588170 | refs/heads/master | 2021-11-22T22:57:32.290504 | 2021-10-24T09:15:12 | 2021-10-24T09:15:12 | 162,827,473 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python3
# encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
from decimal import Decimal # 10進数で考慮できる
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI()... | [
"yosyuaomenw@yahoo.co.jp"
] | yosyuaomenw@yahoo.co.jp |
01b21899501be1f686675a277d7c04a97b49c2a6 | 9c019fe81794fdecd027c9f3b6d57fb95dc646e7 | /waters/dev/pep3d_writer2.py | 6c67eadbcf283419d104844264604eb0845ffb4d | [] | no_license | MatteoLacki/waters | e29c3def911d494df5240ead114239082181f149 | 767d7d45fbe62acf0af75bbefc9bdeb4f65889e6 | refs/heads/master | 2021-07-07T11:47:25.758922 | 2020-09-20T11:24:36 | 2020-09-20T11:24:36 | 192,311,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | %load_ext autoreload
%autoreload 2
from pathlib import Path
import pandas as pd
pd.set_option('display.max_columns', 100)
pd.set_option('display.max_rows', 5)
import numpy as np
import numpy as np
from platform import system
from waters.parsers import XMLparser, iaDBsXMLparser, Pep3Dparser, Apex3Dparser, df2text, col2... | [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
ce1cbee1c8760bed1f92f6c835a5075202aaff8c | 6f8de50a5b51e938aca5ffe9b33bc312d68b2de0 | /tests/test_sleeping.py | 0014f207b373c6b2f459a14c16295cd8501ed1e6 | [
"MIT"
] | permissive | pawelkopka/kopf | 0621150d9cdf286a2763c1482082d4868293c6c3 | 51a3a70e09a17cf3baec2946b64b125a90595cf4 | refs/heads/master | 2021-02-27T09:42:19.108740 | 2020-02-20T16:05:16 | 2020-02-20T16:05:16 | 245,597,653 | 0 | 0 | MIT | 2020-03-07T08:46:33 | 2020-03-07T08:46:33 | null | UTF-8 | Python | false | false | 1,222 | py | import asyncio
from kopf.engines.sleeping import sleep_or_wait
async def test_sleep_or_wait_by_delay_reached(timer):
event = asyncio.Event()
with timer:
unslept = await asyncio.wait_for(sleep_or_wait(0.10, event), timeout=1.0)
assert 0.10 <= timer.seconds < 0.11
assert unslept is None
async... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
a0277aef821c0c0df03be709cad993832130f137 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /test/test_incident_clery_geography_item.py | a2e42aee295d69416c816a915582b860257990dd | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
bb558e12b38a611e6ef8ebb0b193f6cc9978081e | a74216bf9183c9124b900e2c49aed9c2df324fab | /conversion/hinter_merge_gt_poses.py | c37362ae75e4363c7bab06107b23815c702c6e5c | [
"MIT"
] | permissive | EricCousineau-TRI/sixd_toolkit | 1900bef231024ccc1b528202f01c40ac398b96ec | dd610c46ae75d09aa68d21e56505936de05d44bb | refs/heads/master | 2020-06-06T03:13:37.924124 | 2019-06-18T23:01:36 | 2019-06-18T23:01:36 | 192,622,561 | 0 | 0 | MIT | 2019-06-18T22:52:22 | 2019-06-18T22:52:22 | null | UTF-8 | Python | false | false | 1,255 | py | # Author: Tomas Hodan (hodantom@cmp.felk.cvut.cz)
# Center for Machine Perception, Czech Technical University in Prague
# Copies a selected part of a dataset.
import os
import sys
import yaml
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
gt_poses_1_path = '/local/datasets/tlod/hinters... | [
"tom.hodan@gmail.com"
] | tom.hodan@gmail.com |
2ede47e112d7ee53b28b6b8ed26381669043ab46 | dddd89637373f455a476431f4fcb7e17b4e9dd57 | /py/mymodule.py | 7ee8fd4f09f5ecb889c7703003fa5ef98e954cfa | [] | no_license | DhirManish/Python | 35304eb47dea61934426fb6fc5094e1a83517cf3 | 10df7245d0964340d6c8d14cf26a9cf8f93ecf5d | refs/heads/master | 2020-06-05T07:09:41.856780 | 2015-03-07T12:53:10 | 2015-03-07T12:53:10 | 20,372,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# mymodule.py
#
# Copyright 2014 Ajay Bhatia <ajay@dumb-box>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | [
"prof.ajaybhatia@gmail.com"
] | prof.ajaybhatia@gmail.com |
a00358f8ab1fa0c2fdc688d9b88603e9d41fb568 | 95a1f698b1d8b7c2578d5306481f506751b0452e | /dino_history/heritage/views.py | d89f40459cc1c9e5951c7eacf0e1b85138f2b91b | [] | no_license | hyesungoh/dino_history | 45130bf8aa984282c90fa2b241401d0c038968e6 | e5f50a8b83ff445c627302af2e6ca893ef8a4af2 | refs/heads/master | 2023-01-07T14:43:28.643160 | 2020-10-26T12:48:01 | 2020-10-26T12:48:01 | 284,934,718 | 0 | 0 | null | 2020-08-24T12:10:33 | 2020-08-04T09:26:13 | Python | UTF-8 | Python | false | false | 4,231 | py | from django.shortcuts import render
from .models import Heritage
from user.models import Student
# from django.contrib.staticfiles.templatetags.staticfiles import static
# from django.contrib.staticfiles.storage import staticfiles_storage
import os
# Create your views here.
def main(request):
if request.user.is_au... | [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
f8bbfce20a767ccc811dab546f25a1739002b4c9 | 8d4c6f902880f5f6b792c12a78d09afcb3cdd3d7 | /KafkaProducer.py | 2aea02ccb7d84c882c0fcad279c58b6fb77f3237 | [] | no_license | DataMarvel/DataFury | e1ae14a66253a2b67b60de8babf4e6d3fc08ea2d | 553023a8bb0a5f1f01f32d463563a39425cff21d | refs/heads/master | 2020-04-06T17:30:22.752209 | 2018-11-26T10:18:57 | 2018-11-26T10:18:57 | 157,661,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,550 | py | # -*- coding: UTF-8 -*-
"""
Created on 2018年11月20日
@author: Leo
@file: KafkaProducer
"""
# Python内部库
import json
from collections import OrderedDict
# Python第三方库
import pykafka
# 项目内部库
from DataVision.LoggerHandler.logger import VisionLogger
from DataFury.MessagePipe.KafkaPipe import KafkaMessageClient
# 日志路径
LOGGER... | [
"379978424@qq.com"
] | 379978424@qq.com |
a4225989c567f4133e52a90ae410c30dfee20c2e | 1bd2e09ce498c6bbb63e1854471941b777096bdb | /paleomix/tools/zonkey/parts/admixture.py | 8df7bd212c985e38798e8df5f83a3e60dfc8a063 | [] | no_license | muslih14/paleomix | 3f1e6f43178a132b05525b5eb296d8cf1c5d72c4 | 254fb1c4151e03217c19715a6e989dc79b1edcc5 | refs/heads/master | 2021-01-21T08:33:04.995061 | 2016-04-05T14:32:21 | 2016-04-05T14:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | #!/usr/bin/python
#
# Copyright (c) 2016 Mikkel Schubert <MSchubert@snm.ku.dk>
#
# 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
#... | [
"MikkelSch@gmail.com"
] | MikkelSch@gmail.com |
4a095744e7e81eb74d3e2a32b8d9364eb64bc23f | 41608dcb12ce6b16ad70d55bf0f155c1877de3a5 | /src/Utils/Valuator/BSM.py | ae17d6a56f9da1e637fd97e0c594cc5dadf048f8 | [] | no_license | frankma/Finance | eb68567e827e9045e1f4f3baaead6757aefb5168 | c6fe293895e1c295b7625f051625ba0b64efada1 | refs/heads/master | 2021-01-17T03:21:14.146946 | 2017-11-25T16:49:39 | 2017-11-25T16:49:39 | 33,056,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,669 | py | import logging
from math import log, exp, sqrt
import numpy as np
from scipy.stats import norm
from src.Utils.Solver.Brent import Brent
from src.Utils.Solver.IVariateFunction import IUnivariateFunction
from src.Utils.Solver.NewtonRaphson import NewtonRaphson
from src.Utils.Types import OptionType
__author__ = 'frank... | [
"guang.y.ma@gmail.com"
] | guang.y.ma@gmail.com |
fd13356be0081170ae569dea23537c4688c513f0 | c77c10d8c6ef24f0dfa64a9824d584d723711f6c | /python/rest-client-samples/image/image_tagging_batch.py | eef3a11ce81454b6c0fc4dfdd5dcde8d206c2c14 | [
"Apache-2.0"
] | permissive | zhd/ais-sdk | daf2e3b3e61740e105cbdbd709a24a7ffd48ead8 | 9976a9595dd72d189b5f63e511e055251ab4e61f | refs/heads/master | 2020-04-02T01:59:44.053044 | 2018-10-20T08:47:24 | 2018-10-20T08:47:24 | 153,885,712 | 1 | 0 | Apache-2.0 | 2018-10-20T08:34:38 | 2018-10-20T08:34:37 | null | UTF-8 | Python | false | false | 2,112 | py | # -*- coding:utf-8 -*-
import sys
import urllib2
import json
import ssl
import base64
from urllib2 import HTTPError, URLError
from gettoken import get_token
reload(sys)
sys.setdefaultencoding('utf8')
def download_url_base64(url):
try:
r = urllib2.urlopen(url)
except HTTPError, e:
resp = e.rea... | [
"17091412@qq.com"
] | 17091412@qq.com |
66a0abc924d8b12ab7931ec064ca79c6f391ae16 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /r8lib/r8_mod.py | 658d59050a45420aa01faa0175bd7e9e59f4f220 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | #! /usr/bin/env python3
#
def r8_mod ( x, y ):
#*****************************************************************************80
#
## R8_MOD returns the remainder of R8 division.
#
# Formula:
#
# If
# REM = R8_MOD ( X, Y )
# RMULT = ( X - REM ) / Y
# then
# X = Y * RMULT + REM
# where REM has t... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
c45a9cdc1199bbada87416704b20196c0de40f81 | bf534da18426b49dbee0a0b1870f5f3a85922855 | /ex049tabparaqlqrnumero.py | 7a82f9bdfefab90ed265b895293c51a526aed53e | [] | no_license | kcpedrosa/Python-exercises | 0d20a72e7e68d9fc9714e3aabf4850fdbeb7d1f8 | ae35dfad869ceb3aac186fce5161cef8a77a7579 | refs/heads/master | 2021-05-20T08:46:29.318242 | 2020-04-01T15:44:36 | 2020-04-01T15:44:36 | 252,205,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | tabuada = int(input('Digite o numero da tabuada: '))
n = int(input('Digite o inicio da tabuada: '))
print ("Tabuada de %d" %tabuada)
if n <= 10:
while n <= 10:
print ("%d x %d = %d" %(tabuada, n, tabuada * n))
n = n + 1
else : print ('Você está de brincadeira. Digite um numero m... | [
"kattine.costa@gmail.com"
] | kattine.costa@gmail.com |
32f32044f17e55e730595c1e880cbc6ad0dc5ede | c9f9a4efae174ef89071f4e3cdbb4f4bba3b2eac | /test7/test7/settings.py | 9859d2eaaa1e565ac1b6b019161a100bc6717fdf | [] | no_license | rj8928/projects | 8618bf40392a140bdf6b6264fd86cae3c6321ede | 5fe78f839b918a5cf1d0db52c9b6237ffdae08c9 | refs/heads/master | 2021-01-01T18:40:12.316231 | 2017-08-06T02:24:08 | 2017-08-06T02:24:08 | 98,400,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | """
Django settings for test7 project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths ... | [
"rj8928@gmail.com"
] | rj8928@gmail.com |
4087256ac94244ef67a6445e2c928565d99a813d | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201113172600.py | 40f5096e93ababd00b378c44b61e32e0bdd41f54 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_New_User(request):
errors = User.objects.basic_validator(request.POST)
if len(errors) > 0:
for key, value in errors.items(... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
5031fbd2b72ba7e0b98fd3e398eeba981cd8543b | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/yamlext/bluepy.py | 6741b4f1dd254b01051e099a6668754eb6d323ab | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 4,483 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\yamlext\bluepy.py
from collections import OrderedDict
import yaml
from . import PyIO
cyaml_supported = hasattr(yaml, 'CLoader')
def isNumber(string):
try:
int(string)
return True
except ValueE... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
dd1efcc51937fbd3a8a07281534017d5801039fb | 38efe804f2a070737984b5f4306ef9f09cbdf9c2 | /clusterDist.py | 1b14885ba62ef3ddc5e7485a39c7ad778ea9cb43 | [] | no_license | krm9c/HierarchicalDimensionReduction | 0bd59248035159c3d9fb8c9c407a3cecba7635d8 | 6af1455be32abf2e06667e7c264f52c76329ffee | refs/heads/master | 2020-05-27T21:10:03.027472 | 2018-02-04T22:49:25 | 2018-02-04T22:49:25 | 83,605,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,605 | py | #!/usr/bin/env python
# kmeans.py using any of the 20-odd metrics in scipy.spatial.distance
# kmeanssample 2 pass, first sample sqrt(N)
from __future__ import division
import random
import numpy as np
from scipy.spatial.distance import cdist # $scipy/spatial/distance.py
# http://docs.scipy.org/doc/scipy/reference... | [
"krm9c@mst.edu"
] | krm9c@mst.edu |
5a821ae3b4527b4c618c4a37daee6aa675cb2fde | 2ee8b831f228791ce5f5bb02298ce399b301e5f5 | /virtual/bin/markdown2 | 26877791374b6c569706f45e02b86bb59f0afe02 | [
"MIT"
] | permissive | amoskipz/Blog-App | 7865c7cc5e9fcafdbe9593b4a912a8f7663315c2 | 16c2ac60cd61a1240ec32a00cafb16491be4be3a | refs/heads/master | 2023-03-15T03:59:26.140437 | 2021-03-14T09:38:25 | 2021-03-14T09:38:25 | 346,115,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | #!/home/moringa/moringa/Blog-app/virtual/bin/python3
import sys
from os.path import join, dirname, exists
# Use the local markdown2.py if we are in the source tree.
source_tree_markdown2 = join(dirname(__file__), "..", "lib", "markdown2.py")
if exists(source_tree_markdown2):
sys.path.insert(0, dirname(source_tree... | [
"oduorthomas14@gmail.com"
] | oduorthomas14@gmail.com | |
4e6f9e02a2bc25af9974e264a2cb211510c04cb5 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0219_hospitaltiming.py | 141550a13b01289578de2f6301c2d453fb57bf04 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | # Generated by Django 2.0.5 on 2019-03-11 10:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('doctor', '0218_hospitalimage_cover_image'),
]
operations = [
migrations.CreateModel(
name='Hosp... | [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
b4c92b2d75d4f543d8df6161ea6c2627d29c7cb9 | 56fd2d92b8327cfb7d8f95b89c52e1700343b726 | /odin/utilities/odin_init.py | f1c8be660e7bc9f44f1ebd0eed2725426c4967c8 | [
"MIT"
] | permissive | stjordanis/Odin | fecb640ccf4f2e6eb139389d25cbe37da334cdb6 | e2e9d638c68947d24f1260d35a3527dd84c2523f | refs/heads/master | 2020-04-15T09:13:17.850126 | 2017-02-09T00:25:55 | 2017-02-09T00:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | import os
from .params import IOFiles
def odin_init(sname):
"""This function creates a directory with the necessary substructure for
Odin to run a trading algorithm within it. Specifically, it creates a folder
with the desired strategy name within the current directory. It then creates
a subdirectory ... | [
"jamesbrofos@gmail.com"
] | jamesbrofos@gmail.com |
1541f0cc0729432960694e2a393e12af4eeb2c20 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /opencv/opencv-2.4.13.6/modules/python/test/test_houghcircles.py | 32b474fc855db5f85cd7a31f56d2dcec13488b95 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | Python | false | false | 2,165 | py | #!/usr/bin/python
'''
This example illustrates how to use cv2.HoughCircles() function.
'''
# Python 2/3 compatibility
from __future__ import print_function
import cv2
import numpy as np
import sys
from numpy import pi, sin, cos
from tests_common import NewOpenCVTests
def circleApproximation(circle):
nPoints =... | [
"lihuibin705@163.com"
] | lihuibin705@163.com |
dbb633ad70ce2edee54c8cc9d8267977bf5cd330 | b23c6c02d9b54c987bca2e36c3506cf80fa28239 | /Python GUI samples progs/bind()_3.py | a45558950b7943b21048f81da502bed094207d39 | [] | no_license | nishikaverma/Python_progs | 21190c88460a79f5ce20bb25d1b35f732fadd642 | 78f0cadde80b85356b4cb7ba518313094715aaa5 | refs/heads/master | 2022-06-12T14:54:03.442837 | 2020-05-08T10:28:58 | 2020-05-08T10:28:58 | 262,293,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from tkinter import *
def fun(e):
key = e.char
if key=="r":
obj['bg']="red"
if key=="b":
obj['bg']="blue"
if key=="g":
obj['bg']="green"
obj=Tk()
obj.geometry("400x400")
obj.bind("<Key>",fun)
#obj.bind("r",lambda e:obj.config(bg="red"))
#obj.bind("b",lambda e:obj.config(bg="blue... | [
"nishika.verma@live.com"
] | nishika.verma@live.com |
fac0664e6843c613d99bfe54a34977ea1d1fb7f6 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20cec02a-5cc5-11e4-af55-00155d01fe08.py | 43c152203e7fd04e7a2001b174788fa197d466ee | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/python
################################################################################
# 20cec02a-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
ab812bb7efcb5ea4da28c1482e801a1d9950ffff | d32bc79eb8631d6bc4ab20498631ba516db4d5f7 | /654_constructMaximumBinaryTree.py | e748b488968487a50b8649fc0aaa22486be027d1 | [] | no_license | Anirban2404/LeetCodePractice | 059f382d17f71726ad2d734b9579f5bab2bba93c | 786075e0f9f61cf062703bc0b41cc3191d77f033 | refs/heads/master | 2021-10-08T04:41:36.163328 | 2021-09-28T02:16:47 | 2021-09-28T02:16:47 | 164,513,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 20 13:14:08 2019
@author: anirban-mac
"""
"""
654. Maximum Binary Tree
Given an integer array with no duplicates. A maximum tree building on this
array is defined as follow:
The root is the maximum number in the array.
The left subtree is the max... | [
"anirban-mac@Anirbans-MacBook-Pro.local"
] | anirban-mac@Anirbans-MacBook-Pro.local |
821a27a6f20fe9d4a2cfabbae9f68ed0bca88dfd | b4972d81804f0095c72da5d08574afecdc4725f1 | /config/wsgi.py | 94ac6fdcac7ec32ff53473877f00d63276533ccf | [] | no_license | NLPDev/Solar_gentelella | edf2ae9c919ad91603e2661b0d251567d4a44486 | b9414990da148687b56fe4564ae933378c22ca5c | refs/heads/master | 2022-10-08T19:57:52.268335 | 2020-06-12T03:02:06 | 2020-06-12T03:02:06 | 271,695,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | """
WSGI config for solar project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | [
"vasile123andronic@gmail.com"
] | vasile123andronic@gmail.com |
d2cdfeaa05389cfeef257de3aa9711d8a69f9f6f | d7da288db4fd9fc0bb1c60c5074f290b5f70c8ef | /Aulas Python/Conteúdo das Aulas/020/Exercícios/Exercício 2.py | 185ddecbe92dcd8251ec5a48a006df70f0350f8b | [] | no_license | luizdefranca/Curso-Python-IgnoranciaZero | dbf4cf342b3f3efea6fb3b8cf27bf39ed92927e9 | 9fbf2f25e3e6fce1f1582af0bd6bc7dbc5b9f588 | refs/heads/master | 2020-04-09T07:17:00.735378 | 2016-09-12T10:51:37 | 2016-09-12T10:51:37 | 67,999,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """
Faça um programa que calcule as raízes de uma equação do segundo grau,
na forma ax2 + bx + c. O programa deverá pedir os valores de a, b e c e fazer
as consistências, informando ao usuário nas seguintes situações:
a. Se o usuário informar o valor de A igual a zero, a equação não é do
segundo grau e o progr... | [
"luizramospe@hotmail.com"
] | luizramospe@hotmail.com |
bb87629628ed14fb42b26c5249d5785feefed7b6 | 8d3fd439c6d5a52eda578847545234b2ebdc4f3b | /机器学习百科/pycode/ML-NLP/MachineLearning/Linear Regression/housing_price.py | 44536b78d7158b6ca2a4262ab10c88fedf26ab6e | [] | no_license | gm-p/practice_demo | d1530dcdb3de95832f1fa5b6e30c75e7ca6acc05 | 7eaa825fc634ad21aea48713133c0266a44ac54a | refs/heads/main | 2023-03-31T23:01:02.302579 | 2021-04-04T13:29:50 | 2021-04-04T13:29:50 | 354,193,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import os
import numpy as np
import pandas as pd
np.random.seed(36)
import matplotlib
import seaborn
import matplotlib.pyplot as plt
from sklearn import datasets
housing = pd.read_csv('kc_train.csv', header=None)
target = housing.iloc[:, 1]
housing.drop([1], inplace=True, axis=1)
housing.columns = range(housing.sh... | [
"abc"
] | abc |
e5a016a9d7842de12cf1230ba542c4a962e9c79d | 10b3f8b1bb2d43a053558e2974b1190ec5af9ab3 | /test/functional/rpc_bind.py | 5add6e40b9cff94c7002a194b59a6b71906076cc | [
"MIT"
] | permissive | Satoex/Sato | ff4683226c2cedb14203a86af68ae168e3c45400 | fda51ccc241ca426e838e1ba833c7eea26f1aedd | refs/heads/master | 2022-07-27T23:30:32.734477 | 2022-01-29T17:44:00 | 2022-01-29T17:44:00 | 346,001,467 | 6 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Copyright (c) 2017-2020 The Sato Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test running satod with the -rpcbind and -rpcallowi... | [
"78755872+Satoex@users.noreply.github.com"
] | 78755872+Satoex@users.noreply.github.com |
990e8157dbaa6f55997fe8deb4a9f13dc4544538 | 0061e0c95b8068568a4cfe575748bb188296ccc1 | /backend/users/migrations/0002_auto_20210219_1532.py | e86be94450eb2a079af956aaa4949e1d756b8d34 | [] | no_license | crowdbotics-apps/dimelo-24619 | cd7f1fb3693a8f48ae09f3815478723853d34dab | e17433535325b344128c7dfec7f3b79ae44d9db6 | refs/heads/master | 2023-03-07T00:05:14.598992 | 2021-02-19T15:33:15 | 2021-02-19T15:33:15 | 340,406,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.19 on 2021-02-19 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
708d0a15a49ca80a634e116056ef0ecf75446bac | 71012df2815a4666203a2d574f1c1745d5a9c6dd | /4 Django/solutions/blogproj/users/views.py | d1bf844a9039d17be4df416bcd6fbf344ced543f | [] | no_license | PdxCodeGuild/class_mouse | 6c3b85ccf5ed4d0c867aee70c46af1b22d20a9e8 | 40c229947260134a1f9da6fe3d7073bee3ebb3f7 | refs/heads/main | 2023-03-23T14:54:39.288754 | 2021-03-20T01:48:21 | 2021-03-20T01:48:21 | 321,429,925 | 1 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | from django.contrib.auth.models import User
from django.contrib.auth import login, authenticate, logout
from django.http.response import HttpResponseRedirect
from django.shortcuts import render
from django.urls.base import reverse
from blog.models import BlogPost
# Create your views here.
def signup_user(request):
... | [
"anthony@Anthonys-MBP.lan"
] | anthony@Anthonys-MBP.lan |
37088948ab97d7b4ad95cae9fe4ab71c0642f49b | 10d98fecb882d4c84595364f715f4e8b8309a66f | /hal/experiment_config/__init__.py | 7e2101a9f156beed9225c586e2942ebe94a987af | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 985 | py | # coding=utf-8
# Copyright 2021 The Google Research 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e057bda25b33a7f25156d496ddf7aa29c3c7caf3 | 6782a4d4c4406982a66d98466d448b5b8ea2d366 | /tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py | f7aceee1484d7f21224427847ada64eccd1b1b91 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | MaiKuraki/tensorflow | 7afc33f4bc505c794f51dd6cbbfc44a3233ea986 | 46c4751f554e5e7f249cbe6642f5f874ad7614a4 | refs/heads/master | 2022-07-31T20:48:39.704555 | 2022-06-29T18:01:02 | 2022-06-29T18:06:10 | 183,984,120 | 0 | 0 | Apache-2.0 | 2019-04-29T02:11:07 | 2019-04-29T02:11:07 | null | UTF-8 | Python | false | false | 1,261 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
66f7a3f8de66cba4398c75fddb4dd631c1d28890 | 888f65551bb3fe1b8e84c205796b24678669a649 | /venv/lib/python3.7/site-packages/series/db.py | 19240d5a1c920be0fd897e64a552f1e28e07b4c9 | [] | no_license | chunharrison/NBA-Predictor | e6514c70f2cf26d6db4c14aee225cfbd9d5984a7 | 967951ba34debee012385af63f2bf8031dee51ca | refs/heads/master | 2022-05-04T22:02:03.374496 | 2019-05-15T05:55:34 | 2019-05-15T05:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | import os
import threading
from pkg_resources import resource_filename
from sqlpharmacy.core import Database as SPDatabase
from sqlalchemy import Column, Integer, Boolean, String, Float
import alembic
from alembic.config import Config
from series.logging import Logging
from series.errors import InvalidDBError
cl... | [
"wjsdntjr@hotmail.com"
] | wjsdntjr@hotmail.com |
991b6836fb9e29cd210ef5db268f2febb4e34bbb | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /vedat/dist/python-egenix-mx-base/actions.py | c1faa95bac5817768dc6a725b7a2096051d0a330 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
MX_DIR = "/usr/lib/%s/site-packages/mx" % get.curPY... | [
"vedat@pisi_linux1.0"
] | vedat@pisi_linux1.0 |
8d69b25e44042226f07ebb909716a8ce394a4844 | 91e810849c5680311ce51c9e66289afb0a76336c | /docs/source/conf.py | 2241ae833fcd4f0e8d257f2c255164791026f69e | [
"MIT"
] | permissive | zhanglixixi/pytool | 307b0505dfa6312223239d34c0dc6a03904e1df3 | 35fb633149b663e6a0fe69c666e5883172223b45 | refs/heads/master | 2022-03-13T08:43:27.572958 | 2019-12-16T07:54:13 | 2019-12-16T07:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,947 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"zhiliu.mind@gmail.com"
] | zhiliu.mind@gmail.com |
692da999c2b06adfee50cf10ed6fcc7a977ca421 | 70aa3a1cefde69909fd9a2ede9a4bdfbb7e434ad | /sobel.py | 36ea7cd7ce655d9c20410d4d2e870acffa768b1a | [] | no_license | cflin-cjcu/opencvttt | 512cf2ba70cc9d30cb97e733172d94396cfff56f | 07add34638fc043d02f09459246aa47975c5a9c7 | refs/heads/master | 2023-06-27T16:00:20.070365 | 2021-07-30T08:54:14 | 2021-07-30T08:54:14 | 389,538,395 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
img = cv.imread('./images/test1.jpg',0)
sobel = cv.Sobel(img,cv.CV_8U,1,1,ksize=3)
sobelx = cv.Sobel(img,cv.CV_32F,1,0,ksize=3)
sobely = cv.Sobel(img,cv.CV_32F,0,1,ksize=3)
sobel2 = cv.Sobel(img,cv.CV_8U,1,1,ksize=5)
cv.imshow('img',img)
cv.imsho... | [
"cflin@mail.cjcu.edu.tw"
] | cflin@mail.cjcu.edu.tw |
7dd64a3c50ed789c5881b6291252c71d5b8ced14 | 91d7987874dcfa0d8dbbd9a3a3831ed9b67691f8 | /yamaxun/yamaxun/pipelines.py | 8013054e6fa3e4bd1a8179243b752ee656e01dd5 | [] | no_license | lsz1995/amazon | c9388cc78f8465804b53e8759940ebc9625cbdd6 | e648ff21f642632e30925ffab1d3a4608eb201ca | refs/heads/master | 2020-03-19T05:55:23.726649 | 2018-06-04T05:31:22 | 2018-06-04T05:31:22 | 135,974,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from pymongo import MongoClient
from yamaxun.items import YamaxunItem
class YamaxunPipeline(object):
def process_item(self,... | [
"qqlsz87@126.com"
] | qqlsz87@126.com |
ed5ee8aa6d39cf4b84696afef021cd774a662000 | edfb435ee89eec4875d6405e2de7afac3b2bc648 | /branches/os_x_native_events/py/selenium/webdriver/firefox/webdriver.py | bcd92df9ba2c6fe70e1a5d3cb1a663660412ab26 | [
"Apache-2.0"
] | permissive | Escobita/selenium | 6c1c78fcf0fb71604e7b07a3259517048e584037 | f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1 | refs/heads/master | 2021-01-23T21:01:17.948880 | 2012-12-06T22:47:50 | 2012-12-06T22:47:50 | 8,271,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,145 | py | # Copyright 2008-2009 WebDriver committers
# Copyright 2008-2009 Google Inc.
#
# 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 requ... | [
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] | simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9 |
9e4b4043b10db5279e165da2fd0224214758405e | 8b2e795c3040a2ef1d3f0c21752bec57a0614bd6 | /venv/Scripts/pilfont.py | bbb82dc78d2a2729dce7cbeafae8e6fb6cfc97ae | [] | no_license | harshit8858/NHDO | c75e244dfdc91817b3047d65c7be610f3e18aba3 | 6a5ea2de4ba607c20c0b9bd241e6b1c82090eba9 | refs/heads/master | 2023-01-06T20:18:33.795898 | 2018-01-03T07:39:04 | 2018-01-03T07:39:04 | 105,629,451 | 1 | 3 | null | 2022-12-20T22:32:34 | 2017-10-03T08:26:57 | Python | UTF-8 | Python | false | false | 1,057 | py | #!c:\users\harshi~1\nhdo\venv\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFontFile
from PIL import PcfFo... | [
"harshit8858@gmail.com"
] | harshit8858@gmail.com |
df9a72c962406e7277fb7cc77a71ebf225417ea8 | 635e0b896b75b7d496f60368ae4e1a8b8b41546a | /api/v1/views/index.py | 703b0f26519138ec448b84b06203f7aa84340147 | [
"LicenseRef-scancode-public-domain"
] | permissive | SimonBr017/AirBnB_clone_v3 | 3add07db83b11b606084c27ce271ece9f5e255ff | 9427f89680c12fdc9f2b4b30f3a7a2ad2405cbb4 | refs/heads/main | 2023-08-28T10:29:58.841924 | 2021-09-20T17:57:33 | 2021-09-20T17:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/python3
""" Blueprint routes """
from api.v1.views import app_views
from flask import jsonify
from models import storage
@app_views.route('/status', strict_slashes=False)
def status():
""" Return the status in JSON format """
return jsonify({'status': 'OK'})
@app_views.route('/stats', strict_slas... | [
"etiennebrxv@gmail.com"
] | etiennebrxv@gmail.com |
43363719bdcfc095aafb427a6bd230358c843e28 | 8b53a8b9803d92003f3a3a9e1b08def7642ba35d | /TALLERES/TAL3_while_for_20210217_cur/2_while_1hastan.py | 61c8e9c8dec335c9e77d6c5eca291edc005ba68a | [] | no_license | smarulan613/fundamentos_prog_20211_sebasmc | 637cdf9e1f61de0f876fe74530df4e6a5b40d6a6 | 0a87d81dae2bd5656a3e6a521585da661efe6cf6 | refs/heads/main | 2023-05-02T04:26:47.035698 | 2021-05-27T03:37:05 | 2021-05-27T03:37:05 | 356,059,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 17 19:38:09 2021
@author: R005
"""
#Codificar un programa que solicite la carga de un valor positivo y nos muestre desde
#1 hasta el valor ingresado de uno en uno
n=int(input("Ingrese el valor final:"))
x=1
while x<=n:
print(x)
x=x+1
... | [
"noreply@github.com"
] | smarulan613.noreply@github.com |
b19873da3ddd42c1513de7fe80fb969ef2c415d5 | db6b79665d35eb6a44c81c68b01e947b534e308d | /code/setup.py | ca4507f4acf8084c73ad663dd5573ebaa1eae431 | [] | no_license | davidwhogg/crushinator | ffe4536b04a1239dcf04334ea6975d367c2ac0ca | 4f0f11503af6bab5ee4498cb6981ddf8b8307339 | refs/heads/master | 2018-12-29T00:38:20.145527 | 2014-01-11T19:47:42 | 2014-01-11T19:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # python setup.py build_ext --inplace --rpath=...
import os
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
ext = [Extension('interpolation', ['./crushinator/interpolation.pyx'],
libraries=['gsl', 'gslcblas'],
library_dirs=['/home/rfadely/local/lib/... | [
"rossfadely@gmail.com"
] | rossfadely@gmail.com |
2367b8d14a26b5f8da01129ea04dcd71079fae39 | 6aab2d11b3ab7619ee26319886dcfc771cbcaba5 | /0x08-python-more_classes/2-rectangle.py | c7653413c47b30e26a5abc2a2c2a3e0c806a6936 | [] | no_license | IhebChatti/holbertonschool-higher_level_programming | ef592f25eb077e182a0295cb5f2f7d69c7a8ab67 | ca58262c6f82f98b2022344818e20d382cf82592 | refs/heads/master | 2022-12-18T10:06:30.443550 | 2020-09-24T17:31:30 | 2020-09-24T17:31:30 | 259,174,423 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | #!/usr/bin/python3
"""Defining a rectangle
"""
class Rectangle:
"""Rectangle
"""
def __init__(self, width=0, height=0):
"""initializing a Rectangle
Keyword Arguments:
width {int} -- [width of rectangle] (default: {0})
height {int} -- [height of rectangle] (default:... | [
"iheb.chatti@holbertonschool.com"
] | iheb.chatti@holbertonschool.com |
5ea3fa316976d2ea5d4af97f47e4e3e72025754f | 5a424888b89eb2b480cbe1bc484e5ed95427f2e1 | /plot/a_dzliu_code_Plot_CSFRD.py | 07a6c14b8fb5e0fb20988373719e910d55cf8b27 | [] | no_license | 1054/DeepFields.GalaxyModelling | 07f7d33b987613d01a900126d4720f96b3964414 | 5cd31e80782f079040577d94d046ab0728f0c3bc | refs/heads/master | 2023-01-01T09:18:27.188092 | 2020-10-25T22:48:33 | 2020-10-25T22:48:33 | 107,806,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,771 | py | #!/usr/bin/env python
#
import os, sys, re, json, numpy, astropy, matplotlib, subprocess
#matplotlib.use('Qt5Agg')
from astropy.table import Table
from astropy import units as u
from matplotlib import pyplot as plt
from matplotlib import ticker as ticker
import numpy as np
from pprint import pprint
from astropy.co... | [
"liudz1054@gmail.com"
] | liudz1054@gmail.com |
fd846adca759b0c9b2a65e2e835dc49ca3f384b1 | 0bb4e169444ae71b3d64522f94141a7a00054111 | /userid_to_slug.py | 2b7b1f25806f1a8740f94cc3c660ca6b7d14e5ad | [
"CC0-1.0"
] | permissive | riceissa/ea-forum-reader | 5cf02f52f767c28417a64b4b76fc57c07ab0f011 | 4c8b76b8947b41bc8f3b3067e75ef7870eb4fa6b | refs/heads/master | 2022-05-05T22:21:48.011316 | 2022-03-12T19:01:36 | 2022-03-12T19:01:36 | 156,928,401 | 11 | 3 | NOASSERTION | 2018-11-24T07:06:07 | 2018-11-09T23:16:13 | Python | UTF-8 | Python | false | false | 308 | py | #!/usr/bin/env python3
import sys
import util
# For some reason, the Algolia search result JSON only has the user ID and
# username, not the user slug. So to be able to link to the user page from
# search results, we need to conver the userid to a user slug.
print(util.userid_to_userslug(sys.argv[1]))
| [
"riceissa@gmail.com"
] | riceissa@gmail.com |
f2ca82e1a1bd182480593aac57fe76d0675b56f5 | e45d2faad9389886a82ff5176853b1ff6e37caae | /argparse/047_argparse_conflict_handler.py | 4098c31734537ec1c7e84ff61f17359e57119df6 | [] | no_license | allenmo/python_study | 6320aa4cd80fe46ccf73076015c67bdcb6338d30 | 7aff5d810ca6e791d62235d57c072a8dc14457ca | refs/heads/master | 2021-03-24T12:00:33.079530 | 2016-11-22T23:35:58 | 2016-11-22T23:35:58 | 55,770,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import argparse
parser = argparse.ArgumentParser(prog='PROG', conflict_handler='resolve')
parser.add_argument('-f', '--foo', help='old foo help')
parser.add_argument('--foo', help='new foo help')
parser.print_help()
| [
"allen02403@gmail.com"
] | allen02403@gmail.com |
65daa93551bf2b8891afdd05edfb2d723e291f96 | f188379dc9c1e5b63e432d434c782a4d6997872b | /5_List Advanced/Lab/03. Palindrome Strings.py | 59d10bcd5a3064551f8fafa8f18d719c67768992 | [] | no_license | GalyaBorislavova/SoftUni_Python_Fundamentals_January_2021 | 39d7eb8c28f60ff3c293855b074c49ac622a6036 | 7d479fd6c8e4136fb07b765458cc00088e09767a | refs/heads/main | 2023-06-15T04:16:17.084825 | 2021-06-30T18:05:42 | 2021-06-30T18:05:42 | 381,785,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | words = input().split(" ")
searched_palindrome = input()
palindromes = [p for p in words if p == p[::-1]]
print(palindromes)
print(f"Found palindrome {palindromes.count(searched_palindrome)} times") | [
"galyaborislavova888@gmail.com"
] | galyaborislavova888@gmail.com |
db618d8285a21d6d5d76d68ec2af44087c421572 | 1725fddc758271af6ce911dfe7dcca3f2bb3233d | /service/workflow/workflow_custom_notice_service.py | e8f59ece0a9ac0dd4f12bc77c9fbd59998e0775c | [
"MIT"
] | permissive | blackholll/loonflow | 7948018324664d6a88df0616275ad4ce28400745 | b0e236b314286c5f6cc6959622c9c8505e776443 | refs/heads/master | 2023-08-22T21:32:08.223136 | 2023-06-04T13:39:27 | 2023-06-04T13:39:27 | 120,720,556 | 1,864 | 733 | MIT | 2023-07-05T23:24:18 | 2018-02-08T06:26:53 | Python | UTF-8 | Python | false | false | 5,191 | py | import json
from django.db.models import Q
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from apps.workflow.models import CustomNotice
from service.base_service import BaseService
from service.common.constant_service import constant_service_ins
from service.common.log_service import auto_log
... | [
"blackholll@163.com"
] | blackholll@163.com |
483133ff3733c8c7954f199313fc21a841f27a54 | ad38b9a924911b3249b9ffec01d78a2b1048fa0d | /动态调试/Immunity Debugger v1.73/Lib/test/test_class.py | 97e262adbfbd6054364005f392020d097da930ce | [] | no_license | h3len/HackerToolBox | 77c5a45553784d20104db21ac5fe8f840ca519a6 | 4397b0c25cfd0eb3f92484f396745cc664af2531 | refs/heads/master | 2020-04-04T22:57:47.376773 | 2018-10-10T15:43:06 | 2018-10-10T15:50:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,813 | py | "Test the functionality of Python classes implementing operators."
from test.test_support import TestFailed
testmeths = [
# Binary operations
"add",
"radd",
"sub",
"rsub",
"mul",
"rmul",
"div",
"rdiv",
"mod",
"rmod",
"divmod",
"rdivmod",
"pow",
... | [
"redleavessun@gmail.com"
] | redleavessun@gmail.com |
307765967f950baa6009e7ca57e4b343db27a692 | 17f122497a3fb90105cb35b08b8ba4d2379831b5 | /papyrobot/utils/answer.py | 799e31d5ed4b7e2f9affa095110742d0a317dc8e | [] | no_license | Zepmanbc/oc_dapython_pr7 | 198084d7e9c37a8949186c3ff4f89d59eaf54d2f | dc2d38ba2164669167423c80d94b52d7257a548e | refs/heads/master | 2020-04-25T17:39:01.008881 | 2019-04-17T20:33:16 | 2019-04-17T20:33:16 | 172,956,325 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | #! /usr/bin/env python
"""Random Answer module"""
import json
from random import randint
class Answer():
"""Answer class.
answer = Amswer()
print(answer.response(category))
return: str
Categories:
intro
introduce_story
no_result
sentences are in 'papyrob... | [
"zepman@gmail.com"
] | zepman@gmail.com |
df182ed949bc897da31a5f60c843f4350b9ca785 | 9d7d69178c6f1f1db6ed6767e0af32bfe836549c | /new_workspace/Gumtree_Workspace/UsefulPythonScripts/plexi_flux_v_lambda.py | 9ddf49092d9dae358e8d1a007d8d733b52982742 | [] | no_license | Gumtree/Quokka_scripts | 217958288b59adbdaf00a9a13ece42f169003889 | c9687d963552023d7408a8530005a99aabea1697 | refs/heads/master | 2023-08-30T20:47:32.142903 | 2023-08-18T03:38:09 | 2023-08-18T03:38:09 | 8,191,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | from time import sleep
from gumpy.commons import sics
##driveAtt(270)
sics.drive('nvs_lambda', 4.505)
sleep(0.1)
print 'start scanning for '
quokka.scan("time", 120)
sleep(0.1)
sics.drive('nvs_lambda', 4.6)
sleep(0.1)
print 'start scanning for '
quokka.scan("time", 120)
sleep(0.1)
sics.... | [
"quokka@DAV1-QUOKKA.nbi.ansto.gov.au"
] | quokka@DAV1-QUOKKA.nbi.ansto.gov.au |
0685786ef1c40ebd5e6c8ea6eed8236dd947972b | 5e7cacad2e9c0b6cc8677412b8d1bce92d01f197 | /realefforttask/pages.py | 47cd26df58797bd8b62258f2483729039e32b526 | [] | no_license | chapkovski/real-effort-several-rounds | 3acb55a8396aae82a8e8609641f38e16e546df64 | 8df230066aa4d085b7d1dfcc36774749348bf038 | refs/heads/master | 2018-12-24T17:30:44.617345 | 2018-05-10T16:06:20 | 2018-05-10T16:06:20 | 117,924,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from otree.api import Currency as c, currency_range
from . import models
from ._builtin import Page, WaitPage
from .models import Constants
class WorkPage(Page):
timer_text = 'Time left to complete this round:'
timeout_seconds = Constants.task_time
def before_next_page(self):
self.player.dump_tas... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
6c4ba86895231e56bc3c8162d45342e283b07bdb | 0a1f8957a798006deaa53d10d09f733fab1e6b05 | /analysis_tools/iFAB/psu_python_library/ifab_cost_surrogate_steel.py | 707fafbbb492bfb3fb23b3c9e4ed5146c8fd1915 | [
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/meta-core | a89504ccb1ed2f97cc6e792ba52e3a6df349efef | bc7a05e04c7901f477fe553c59e478a837116d92 | refs/heads/master | 2023-03-07T02:52:57.262506 | 2023-03-01T18:49:49 | 2023-03-01T18:49:49 | 40,361,476 | 25 | 15 | NOASSERTION | 2023-01-13T16:54:30 | 2015-08-07T13:21:24 | Python | UTF-8 | Python | false | false | 756 | py | import json
from sys import argv
from sys import stderr
try:
with open("testbench_manifest.json", "r+") as j:
manifest = json.load(j)
except IOError:
manifest={"Parameters":[], "Metrics":[]}
mass = None
for param in manifest["Parameters"]:
if param["Name"] == "MassInput":
mass... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
6432db83cc0fcd16c5619e9d4e0a4e53f18d699b | ffbfb86db9dac89c1cc24e648b199a8d3db9850f | /python/python_split.py | 5c303afc89c76d0523735efbb2f7ea483c3279d4 | [] | no_license | attikis/programming | e7ecef5c2bf2af71a3e89e6156a4a934fb2ed724 | 4b6215021d6ca1effd0f18ecfe8afc67056b7098 | refs/heads/master | 2021-05-09T21:51:40.425627 | 2019-02-19T07:22:56 | 2019-02-19T07:22:56 | 118,735,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #!/usr/bin/env python
# Permissions : chmod +x fileName.py
# To launch : python fileName.py OR ./fileName.py
# Definition : split() command used to split up a string
string1 = "pt1,pt2,pt3,pt4"
print "+++ string1 = ", string1
print '+++ string1.split(",") = %s' % (string1.split(","))
print
string2 = "pt1|pt... | [
"attikis@cern.ch"
] | attikis@cern.ch |
695a3b083fd4b572001864fc33c6a61d4be8573d | b523cbb45c34e9c0f1d94fce9f03d654e18f57ab | /instance_manager.py | bef0fed7e98b69508cc10e4b5957e689b5b26358 | [] | no_license | brittainhard/gpuci-scripts | 0d2d27156486724dbe80a73f31b5076bcef4324b | 27429a89b3a3564acf372fe30d6de2f59c9997c0 | refs/heads/master | 2020-03-26T00:16:38.664253 | 2018-08-29T17:29:19 | 2018-08-29T17:29:19 | 144,313,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,250 | py | import os, json, argparse, time
import datetime, dateutil
from jenkinsapi import jenkins
import requests
import boto3
NON_GPU_JOBS = [
"goai-docker-container-builder",
"gpu-instance-manager",
"gpu-instance-spawner"
]
def get_instances():
return list(rs.instances.iterator())
def instance_is_runnin... | [
"brittainhard@gmail.com"
] | brittainhard@gmail.com |
7aea99a375d5f22517415ab30c8a1a7ada5ba817 | 58aade23413d23f0d4666d7da3766ccbf820d0e1 | /bk/script/summarize_script/summary_phs.py | 1f480209775dfd6bf6a9fff5eb203d679377c5dc | [] | no_license | friend1ws/PDL1_pipeline | 661837ad4f3c791439fcbae3ca32db47b2b6e8a2 | 79bb55297dac04c808577d51f8714a34fe9dad74 | refs/heads/master | 2020-04-15T02:32:43.931129 | 2016-05-04T06:47:20 | 2016-05-04T06:47:20 | 41,615,248 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #! /usr/bin/env python
import sys, glob
sampleList = sys.argv[1]
expDir = sys.argv[2]
fusionDir = sys.argv[3]
hIN = open(sampleList, 'r')
for line in hIN:
F = line.rstrip('\n').split('\t')
sample = F[0]
targetExpDir = glob.glob(expDir + "/" + sample + "*")
targetFusionDir = glob.glob(fusionDir + "/"... | [
"friend1ws@gmail.com"
] | friend1ws@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.