blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b74102cf22e7a28f20c16800aba96074db765c05 | 0fb3f3ef4f7c0401db58808636a760963008fb33 | /Google Speech to Text/audiofile.py | 057d91cba4ea27910c41c0431f550f678121b9d4 | [] | no_license | oakhtar147/natural-language-processing | a21c7d0c262559103544ef7e5ff8277944a2a726 | 4ea8cb75e0419ab6b4cadf77fe24ff37df9fd6ad | refs/heads/master | 2023-05-09T17:28:40.140940 | 2021-06-07T17:32:59 | 2021-06-07T17:32:59 | 312,867,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | import wave
import contextlib
from pydub import AudioSegment
import os
import PyWave as pw
import warnings
warnings.filterwarnings('ignore')
DIR = r"C:\Users\Dell\Desktop\speech"
class AudioFile:
def __init__(self, path_to_file):
self.path_to_file = path_to_file
def stereo_to_mono(self):
wf ... | [
"osamaakhtar15@gmail.com"
] | osamaakhtar15@gmail.com |
667126335d017e1ff1e6261de7d42831d6d38615 | d4c5986ad77426d955b6f1a6d9be182cfab3a5ec | /insercion.py | 9a0d653b37fd67fca82f2d14c874aee62266aeb6 | [] | no_license | JuanL-Code/python_3 | ca113f3add2486a6ed663a8ee44e579a93d3578a | 520557f7b35bc354dd88357e4ef087ef2ef7f0fa | refs/heads/main | 2023-03-27T12:51:12.802810 | 2021-03-19T02:33:11 | 2021-03-19T02:33:11 | 331,846,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import random
def ordenamiento_insercion(lista):
n = len(lista)
for i in range(1, n):
valor_actual = i
for j in range(i, 0, -1):
if valor_actual < lista[j]:
lista[j], lista[j + 1] = lista[j + 1], lista[j-1]
return lista
if __name__ == '__main__':
... | [
"noreply@github.com"
] | noreply@github.com |
1852a6f04efd2e58b4849af81462264ed56fb27c | 30126b67203a026f86c77d3a91a6d755eee7fbea | /lib/sites/siteFile_COLW4.py | 58ebc289f13965e4e343e0d7891b7e5636620598 | [] | no_license | NWS-NRC/CCOOP-XBee | 5fc0f2a9e79f0bd6ab9a57f35d1e8c39933543bf | 3a8c3d5bf0d23042c6249228a60538908fea391e | refs/heads/master | 2023-03-03T15:32:53.493213 | 2021-02-15T12:22:41 | 2021-02-15T12:22:41 | 278,868,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import time
import sys
class pubTopic:
#-----topics
SUB_TOPIC = "NWS/ALL/ALL/COOP/ALL/COMMAND"
COMMAND_TOPIC = "NWS/CRH/UNR/COOP/COLW4/COMMAND"
TEMP_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/TEMP"
PRECIP_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/PRECIP"
DAILY_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/DAILY"
... | [
"noreply@github.com"
] | noreply@github.com |
0085c6cb9a123ccabfdf39b59ffea34d56255b69 | cab7d583b24b27964d607761b22b4ac9c1ee3694 | /27_exception.py | 3ccfb4e9c3417ee383ae1d5087365c87f176c583 | [] | no_license | prafful/python_jan_2020 | 9a4e25dc71b55cd900f5f6990489c1443a7ded06 | 122aa65c98ab12ca4416f24c500a444d742e18b9 | refs/heads/master | 2020-12-08T12:05:27.918050 | 2020-01-31T07:31:03 | 2020-01-31T07:31:03 | 232,977,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """
try:
execute code block 1
except expression as identifier:
execute if code block 1 get error
else:
execute if code bloack 1 is success!
"""
try:
fh = open("check.txt", "w")
print(fh.write("Hello from Exception!"))
except BaseException as exception:
print("Error while working with file: ", e... | [
"prraful@gmail.com"
] | prraful@gmail.com |
711d20148707a29c563aab2785e74a754b4ec6c2 | acd1120e5a476130793adaae120aaa85a686d4cd | /api_edu/api_edu/apps/course/migrations/0002_course_course_video.py | a3a29ed3482e72c03afa18bea3b79e6e91668684 | [] | no_license | Zhangzhenyu-Anyuer/webproject | 6ba19a0ff37a8b8c75919fa3a570f7610d884ddb | 48b6eb956b1e4e0af2887cba108dbea48bfafecf | refs/heads/master | 2023-02-03T00:54:03.210282 | 2020-12-21T10:36:30 | 2020-12-21T10:36:30 | 323,305,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.0.6 on 2020-11-10 12:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='course',
name='course_video',
... | [
"aaazzzppppo@163.com"
] | aaazzzppppo@163.com |
3206f80ebb7cd794ba25b8f13f14e0c5a68d2477 | 6f8c5d58ccd771d1ba92dc053b54caa44be9515c | /inst_fluid_en/models.py | 7fba96ece1c1d3dfd9ed2d96070362bda8abf302 | [
"MIT"
] | permissive | manumunoz/8004 | b6f32cf446a3d0d66988d34a03a252ba4d885da1 | 06b5a5a8cdea53294ff85c4bedb6be163d2da25a | refs/heads/master | 2020-03-24T22:24:37.155460 | 2019-03-28T07:02:18 | 2019-03-28T07:02:18 | 143,083,725 | 0 | 0 | NOASSERTION | 2018-12-07T15:17:27 | 2018-08-01T00:29:45 | HTML | UTF-8 | Python | false | false | 4,478 | py | from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
import itertools
author = 'Manu Munoz'
doc = """
Identity Switch - Networks: Instructions FLUID
"""
class Constants(BaseConstants):
#------------------------------------------
... | [
"manumunozh@gmail.com"
] | manumunozh@gmail.com |
328588836d307293f0d666768429a1b18e4e1007 | 3a1c5ae00324fc26728ad9549cd4cf710a6dfcca | /trackmeapp/serializers.py | ecb9872ce6f7e0f07739fb553cc72ca93c734d99 | [] | no_license | EnockOMONDI/TRACK-ME | c39b3f6ed04957a011c96735526475dae596941c | aff6704f2ce1645a6b7f044a52abf0769de7d604 | refs/heads/master | 2021-06-24T22:26:49.841861 | 2019-06-24T07:19:22 | 2019-06-24T07:19:22 | 193,167,979 | 0 | 0 | null | 2021-06-10T21:37:58 | 2019-06-21T22:46:08 | Python | UTF-8 | Python | false | false | 309 | py | from rest_framework import serializers
from trackmeapp.models import Task
# transforming objects to JSON and vice versa
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = ('item_id', 'title', 'description', 'created_at', 'comp_date', 'status')
| [
"enockomondike@gmail.com"
] | enockomondike@gmail.com |
e0e2a52c3f51e155e15a246020e053b44f99966e | ec3e832f3ac44efca57869336f485924e5dda862 | /onthisday/urls.py | 07a0082537be53c57d37ef9a38ee72d1128dcf7c | [] | no_license | harvard-lil/thinkingcap | 1409d852bfbd93d9ebc5676ac0909cb8370a48af | 3bbc1e2415fc93714898affdffde0c80f530ca97 | refs/heads/master | 2021-01-22T17:22:28.712570 | 2017-12-19T02:42:34 | 2017-12-19T02:42:34 | 100,726,963 | 1 | 2 | null | 2017-12-19T02:42:35 | 2017-08-18T15:42:26 | Python | UTF-8 | Python | false | false | 757 | py | """thinkingcap URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"anastasia.aizman@gmail.com"
] | anastasia.aizman@gmail.com |
4835bc6e70d40dff4467464c94615a922a6eeb0d | 82ef9a0dd1618a28770597227acfc0150b948af2 | /wearnow/tex/plug/_plugin.py | dd765acd80043d80efc8cafe2aca871e1af2e00f | [] | no_license | bmcage/wearnow | ef32a7848472e79e56763b38551835aa97864b21 | c8dfa75e1ea32b0c021d71c4f366ab47104c207e | refs/heads/master | 2021-01-16T00:27:59.597812 | 2016-01-19T11:55:03 | 2016-01-19T11:55:03 | 37,195,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | #
# WearNow - a GTK+/GNOME based program
#
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
#
# 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 versi... | [
"benny.malengier@gmail.com"
] | benny.malengier@gmail.com |
cfe59ff5a54944d27e16b6052faadb365a8fcf0f | 973d64c074ffda22eec7f191963037d484426c93 | /lib/basicTransform.py | 4809175481f0462597589ca9483a802499d994aa | [] | no_license | 4xpl0r3r/Maltego-TransformR | 7bd35e379fe652180a92f42fa97b40569f0dd25c | 310af140d9a2016d707398bfc2f73b24ce158c7f | refs/heads/master | 2023-07-31T14:19:06.217347 | 2021-09-11T03:31:30 | 2021-09-11T03:31:30 | 397,311,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from lib import csvIO
from lib.objectFactory import ObjectFactory
class BasicTransform:
entities=[]
links=[]
objectFactory=None
inputFiles = None
outputFile = None
transformConfig = None
def __init__(self,inputFiles,outputFile,transformConfig):
print('[*] Initializing Transform')... | [
"kanowillz@gmail.com"
] | kanowillz@gmail.com |
af43c669459f8dd1c60ac2dae04418f9744f6a29 | 44a7b4879c1da661cc2e8aa51c7fcc24cfb0fd3b | /tests/psu/psu_version_test.py | b3942b4c3523ed8b6ec2b0b234eb1705e2bb042b | [
"MIT"
] | permissive | seoss/scs_core | 21cd235c9630c68f651b9a8c88120ab98fe5f513 | a813f85f86b6973fa77722a7d61cc93762ceba09 | refs/heads/master | 2021-08-08T08:09:56.905078 | 2020-04-16T19:46:52 | 2020-04-16T19:46:52 | 156,239,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python3
"""
Created on 13 Nov 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import json
from scs_core.data.json import JSONify
from scs_core.psu.psu_version import PSUVersion
# ---------------------------------------------------------------------------------------------------... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
6def3fc6f810fa8c0be9d90523ed85167895b9a9 | 36b331a9cc7dc5e0b74c0c3c7a98aa87653c55a7 | /Main.py | 50104cb2b16850318e7016a1379c37e246b36945 | [] | no_license | Lazar-source/MEMS-projektmunka | 53497488cd02a768c7fa477a155086c6b6333ee7 | 0c3dd02711fa2e06e3a8e4c95fe1df6143a9d988 | refs/heads/master | 2020-08-29T14:01:25.470322 | 2020-01-15T09:42:10 | 2020-01-15T09:42:10 | 218,054,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | from sense_hat import SenseHat
import insertdatabase
import globals
import Gyroscope
import Arrows
import sys
import tweepy
from ISStreamer.Streamer import Streamer
sense=SenseHat()
sense.set_imu_config(False,False,True)
logger= Streamer(bucket_name="Sense Hat Sensor Data", access_key="ist_QsJ_mdh5bnHzduJDFhorX59W811C6... | [
"talazar3@gmail.com"
] | talazar3@gmail.com |
98e7a95ea82b26272885ee73662f48e35c6a707d | 87152c554687b972b1c951bd93ae27603d66d801 | /94.py | b000d3874d0fcec6dd6e0d7f5a0e027f04ea881e | [] | no_license | logeswari-j/python | a983cfcd1b7791f827e3aa47e711fd358b41a49a | 6e965a60468bfab28bd81ce898978af3fbf191a1 | refs/heads/master | 2020-06-07T14:27:02.918526 | 2019-08-03T04:54:44 | 2019-08-03T04:54:44 | 193,041,241 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | hh3,pp=input().strip().split()
pp=int(pp)
h=0
while h<len(hh3)-1 and pp:
if(hh3[h]>hh3[h+1]):
pp-=1
hh3=hh3[:h]+hh3[h+1:]
if(h!=0):
h-=1
else:
h+=1
lk=hh3[:len(hh3)-pp]
print(lk)
| [
"noreply@github.com"
] | noreply@github.com |
389d80a51e57aab9b9e90dd9cf236befa5c6cd93 | 457c673c8c8d704ec150322e4eeee2fde4f827ca | /Python Fundamentals - January 2020/Functions/03_Repeat_string.py | e36aa36cc0812058b32ec3f857f6917eeb7e1787 | [] | no_license | xMrShadyx/SoftUni | 13c08d56108bf8b1ff56d17bb2a4b804381e0d4e | ce4adcd6e8425134d138fd8f4b6101d4eb1c520b | refs/heads/master | 2023-08-02T03:10:16.205251 | 2021-06-20T05:52:15 | 2021-06-20T05:52:15 | 276,562,926 | 5 | 1 | null | 2021-09-22T19:35:25 | 2020-07-02T06:07:35 | Python | UTF-8 | Python | false | false | 94 | py | def repeat(s, rep):
return s * rep
s = input()
rep = int(input())
print(repeat(s, rep))
| [
"daredevil91138@gmail.com"
] | daredevil91138@gmail.com |
35d145eae9baf5f65b192fdad8fad0e7408f07eb | 9eff544e604f9cff4384d4154204ab3276a56a23 | /mpsci/distributions/gumbel_max.py | c6080c33985af06b004adc47893c0f19297ed96c | [
"BSD-2-Clause"
] | permissive | WarrenWeckesser/mpsci | 844d22b0230bc8fb5bf2122e7705c6fd1f0744d9 | cd4626ee34680627abd820d9a80860b45de1e637 | refs/heads/main | 2023-08-31T11:01:11.412556 | 2023-08-25T20:30:43 | 2023-08-25T20:30:43 | 159,705,639 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,575 | py | """
Gumbel probability distribution (for maxima)
--------------------------------------------
This is the same distribution as:
* `scipy.stats.gumbel_r`;
* NumPy's `numpy.random.Generator.gumbel`;
* the Gumbel distribution discussed in the wikipedia article
"Gumbel distribtion" (https://en.wikipedia.org/wiki/Gumbel... | [
"warren.weckesser@gmail.com"
] | warren.weckesser@gmail.com |
4937dc1421edfb4d04c5fe8aa2cc6b2d141e6ac8 | f50b7f18de9531a2fd4f716761c2aeac46d85993 | /Graven/Game/projectile.py | 10bfdad8ca3f3317da2bfe6aa8e0af902738892c | [] | no_license | novenopatch/Youtube_formation | 991171198940715725c3e9076648120b6145852a | 81228baad47c0dcd65790ef47ecb9543ac55fa53 | refs/heads/master | 2023-07-05T16:53:30.851717 | 2021-08-19T11:47:19 | 2021-08-19T11:47:19 | 400,950,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | import pygame
class Projectile(pygame.sprite.Sprite):
def __init__(self, player):
super().__init__()
self.velocity = 5
self.image = pygame.image.load("assets/projectile.png")
self.image = pygame.transform.scale(self.image, (50,50))
self.rect = self.image.get_rect()
... | [
"homawoojoseph@gmail.com"
] | homawoojoseph@gmail.com |
125486c5294f6b5bdc3af4c93f6f66479361f318 | 2760494bc6ea8628a2c401bd4b55dd8cc5536a97 | /2020/06/06.py | 6b4323e3a71ee712d7c10d1b10fb97be10a4f3b6 | [] | no_license | lysrt/aoc | e38bb3db9d14b410549b2a1b24337b9e608940e2 | 2e7578f458721206e798793fbc9cf74701ae0033 | refs/heads/master | 2023-02-02T16:39:34.349900 | 2020-12-19T13:33:53 | 2020-12-19T13:33:53 | 116,025,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from functools import reduce
class Group():
def __init__(self, raw):
self.persons = [set(x) for x in raw.split("\n")]
def get_answers_count(self, aggregation):
return len(reduce(aggregation, self.persons))
with open('input', 'r') as f:
groups = [Group(x) for x in f.read().split("\n\n")]
... | [
"lucas.sartore@gmail.com"
] | lucas.sartore@gmail.com |
14ec5db1f7857cc5deafd345308627f2ac36c34f | 9dd5e3efed36ba551acc6f329618c4561130d8ac | /photosorter.py | c1c11bcf6f2983eca31baa6a8ba63d0588829ddb | [
"MIT"
] | permissive | 0W3N/eve-course | ed6c0b67fc74800c19f79e6cf348a65cc85c166e | 0699aa6fb514fa5b45f05bc612a422dd8d3a2632 | refs/heads/master | 2020-03-13T10:59:35.494160 | 2018-04-29T04:46:57 | 2018-04-29T04:46:57 | 131,093,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from PIL import Image
import dhash
import pybktree
import os
def filecleanup(scrpth):
imagedict = {}
tree = pybktree.BKTree(pybktree.hamming_distance)
for ff in os.listdir(scrpth):
#print(os.path.join(scrpth,ff))
filename = os.path.join(scrpth,ff)
if filename[-3:] == "jpg":
... | [
"owenmerrick@hotmail.com"
] | owenmerrick@hotmail.com |
d820bb3d8f45cad1fd542c191c3dbdfccf9d1299 | 5a8c988bd0b0b5685c43de2aed6c1906890a07b7 | /crudappl/models.py | f594eacc41a7b801210805c40148f2d0feaa6ca5 | [] | no_license | Sreelakshmi-Unnikrishnan/crud_app | dd34c3374afc93be7303aa706c54d4a9d8ae5e29 | 000ed9e8a95613a59313df4e614634a280fb0690 | refs/heads/main | 2023-08-22T21:37:48.453515 | 2021-10-16T07:30:38 | 2021-10-16T07:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py |
from django.db import models
# Create your models here.
class users(models.Model):
first_name=models.CharField(max_length=30)
last_name=models.CharField(max_length=30)
email_id=models.CharField(max_length=30)
password=models.CharField(max_length=30)
user_name=models.CharField(max_length=30)
| [
"sreelakshmialeesha@gmail.com"
] | sreelakshmialeesha@gmail.com |
2844fd4dfc902e122c8fdfa03d6d205b5459185f | 3a64b795d236ce888364977fc0a7555e9b1edc78 | /pi/artnet.py | c56990f14fff7489822e45b0c388b014f691aeb9 | [] | no_license | woodward54/lightcaster | 5e880144d55ed30cf6aca8cf66b43b45299ea891 | f47af6778b0d5ecb2c609b396e8512fa67be10d4 | refs/heads/master | 2022-07-06T07:57:05.622083 | 2020-05-13T17:20:20 | 2020-05-13T17:20:20 | 263,695,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | #!/usr/bin/env python3
# NeoPixel library strandtest example
# Author: Tony DiCola (tony@tonydicola.com)
#
# Direct port of the Arduino NeoPixel library strandtest example. Showcases
# various animations on a strip of NeoPixels.
import time,socket,sys
from neopixel import *
import argparse
# LED strip configuration:... | [
"root@INSTARPi.home"
] | root@INSTARPi.home |
bd80ae0e6566b794e9582c482160a6d7e6a338b3 | 92002647998beb70f0be2f400af23d010082e230 | /main.py | 9128c39b80ad666e50570a68e30c005e0e97baad | [] | no_license | davguest/computer_vision_3 | 52f54bd735cdbaa333d93de6a39349864abccc2e | 974b28d9495c90139b0089f03b491663c1534ab8 | refs/heads/master | 2021-08-30T01:02:47.615349 | 2017-12-15T13:01:38 | 2017-12-15T13:01:38 | 113,990,517 | 0 | 0 | null | 2017-12-12T12:57:34 | 2017-12-12T12:57:34 | null | UTF-8 | Python | false | false | 1,342 | py | import numpy as np
import matplotlib as mp
import sklearn as sk
from sklearn.cluster import KMeans
import cv2
import glob
from PIL import Image
from sklearn import preprocessing
k = 8
n = 4
number_of_clusters = 8
x_linear_regression = []
y_linear_regression = []
# the big big loop
#for filename in glob.glob('testing... | [
"yustiks@gmail.com"
] | yustiks@gmail.com |
b1a13e75d1f8817d3f898b6dddb043fc3a5e5ef4 | 61b8693ad9ee9cf563ec83c9d6d35ea0f5f14221 | /python/thomas_theis_einstieg_in_python/7.1.6_spiel_zeit.py | d619ed19ceb3c6ead2e74e3552e9c4dfb64332db | [] | no_license | erolneuhauss/studies | 9fd7bf56cf686ee0f5d1d23436cd1add0e3bc4e2 | aa6aafbb32c6a9de3a0a0073ad1493fcbee6552c | refs/heads/master | 2023-06-11T05:44:44.450137 | 2022-10-31T15:05:26 | 2022-11-03T11:01:21 | 82,448,245 | 1 | 0 | null | 2023-02-08T01:14:47 | 2017-02-19T09:28:35 | Jupyter Notebook | UTF-8 | Python | false | false | 908 | py | #!/usr/bin/python
# Modul import importieren
import random,time
# initialisieren
random.seed()
# Anzahl richtiger Ergebnisse
richtig = 0
startzeit = time.time()
# Schleife mit "anzahl" Aufgaben
print "Start des Rechenspiels:",\
time.strftime("%d.%m.%Y %H:%M:%S")
print
for aufgabe in range(5):
# Aufgabe mit ... | [
"eneuhauss@Corinnas-iMac.fritz.box"
] | eneuhauss@Corinnas-iMac.fritz.box |
9c2f9431c2f0534b5102ff353a164ddd36f192cd | cc5bdc851cc48050c869fced9373d8d5ff2af375 | /env/bin/blackd | 27925768ed945efeec7806234c78399a017c656a | [
"BSD-3-Clause"
] | permissive | vivekgupta1mg/miniprojectapp | fa6e4b8fd4565529b0c693a15abda5e5ce346dc4 | 2584a1696cc847767998c4fb5cf3413b006d6f67 | refs/heads/master | 2023-08-24T12:57:51.653656 | 2021-10-12T16:15:25 | 2021-10-12T16:15:25 | 416,296,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/vivek/Desktop/sanic_3/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from blackd import patched_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(patched_main())
| [
"cons-vivek.gupta@1mg.com"
] | cons-vivek.gupta@1mg.com | |
a2b7c653fd891ea1e97531e4a84ddaa5ccce602b | d9a7800e5dc3d79c038e81c396e9ddb277b64b17 | /gpflow/expectations/quadratures.py | 7e716c0c926d0fb86c43ab8fe2411148a2655bd2 | [
"Apache-2.0"
] | permissive | elvijs/GPflow | 9274804a8096c2da5274c977c2bdccb121b2ef7e | 056e59f2c5aa2b5021de9b7b91ce1cee2ea0bb92 | refs/heads/develop | 2020-05-03T16:58:00.187709 | 2020-02-06T17:06:04 | 2020-02-06T17:06:04 | 178,735,650 | 0 | 0 | Apache-2.0 | 2020-02-07T18:15:20 | 2019-03-31T19:58:37 | Python | UTF-8 | Python | false | false | 5,127 | py | import numpy as np
import tensorflow as tf
from .. import kernels
from .. import mean_functions as mfn
from ..covariances import Kuf
from ..inducing_variables import InducingVariables
from ..probability_distributions import DiagonalGaussian, Gaussian, MarkovGaussian
from ..quadrature import mvnquad
from . import dispa... | [
"art.art.v@gmail.com"
] | art.art.v@gmail.com |
b1a7b240bbf7f17341177d6f03acfd50f21dbac8 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc094/B/4253154.py | 6d7383b45734c25c5fe494a308375919ce98d92e | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
def solve(a, b):
a, b = min(a, b), max(a, b)
if a == b:
return 2 * a - 2
c = int(math.sqrt(a * b)) + 2
while True:
if c * c < a * b:
if c * (c + 1) >= a * b:
return 2 * c - 2
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
63a81ae4e923ce800616af2fae0237f6c5fd8ed4 | e0f469a686dd6a82ff1e1b492152ba28d1d7a759 | /tests/test_grid.py | b5f261aabd4f5ac31fc39719b40e9c0574e763b4 | [
"MIT"
] | permissive | agentultra/Horton | 6bfc8ba2bd87bf287ae493064a83ad9461442f13 | 69d90f6bd18593f30cf497964201a3ad239a0f30 | refs/heads/master | 2018-12-29T02:11:07.689115 | 2014-01-17T03:49:21 | 2014-01-17T03:49:21 | 4,150,628 | 0 | 1 | null | 2013-08-18T14:59:16 | 2012-04-26T18:13:52 | Python | UTF-8 | Python | false | false | 5,575 | py | import unittest
import weakref
from horton import grid
class TestGridSliceProxy(unittest.TestCase):
def setUp(self):
self.g = grid.Grid(5, 5)
self.proxy = grid.GridSliceProxy(self.g, slice(1, 1), slice(3, 3))
def test_getitem(self):
self.g[3, 3] = 1
self.assertEqual(self.pro... | [
"james@agentultra.com"
] | james@agentultra.com |
764e69de63f66f28c1c4b8cba0cf2cb7e716b0e3 | d20f406bd076ac4ec94dd0eae0dcec0fd551e90b | /main.py | 3f54c808c0bae506d51a399715f9a025bd618d03 | [] | no_license | utsavdarlami/NepalLicensePlateRecognition | 7e0b413b671e05e3ae142b001ee1579655f311c6 | afbbe8a95c14f93deaac9c9e5b8d595067fb7110 | refs/heads/master | 2023-01-24T10:29:44.442014 | 2020-12-02T15:13:42 | 2020-12-02T15:13:42 | 225,912,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,842 | py | """
Usage:
python main.py --img imgPath //for image
python main.py --video videoPath //for video
"""
import tensorflow as tf
# Darkflow
from darkflow.net.build import TFNet
import os
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import cv2
import sys
from datetime imp... | [
"j.babin411@gmail.com"
] | j.babin411@gmail.com |
9bf4b4bfca39743b3d62904cf92db88751a9a4c1 | d20e8b55ed5db7222fc2552f7527744000596a17 | /contrib/bitrpc/bitrpc.py | 00e78ddc4da53d68a65b31059bbac96d92bcebf6 | [
"MIT"
] | permissive | doceer/fundin | 352dcb6d440776091bc654aefab2a8c98a33061b | 11105b8e74f294562c94b06400693bc6e186b971 | refs/heads/master | 2020-04-05T18:18:34.200577 | 2018-11-06T04:43:16 | 2018-11-06T04:43:16 | 157,096,227 | 0 | 0 | MIT | 2018-11-11T16:04:29 | 2018-11-11T16:04:29 | null | UTF-8 | Python | false | false | 9,663 | py | from jsonrpc import ServiceProxy
import sys
import string
import getpass
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:7077")
e... | [
"43293249+fundin@users.noreply.github.com"
] | 43293249+fundin@users.noreply.github.com |
9a4a7ce6a670e6dfb5a8c9baa17ddc0a3582041a | 57c00ba0521cc0be6b36bb82e1a2729a10e90c3f | /constant/tweet_message.py | 181be3726bf9d1763160b308618cebb357a4bb3a | [
"Apache-2.0"
] | permissive | balemessenger/twitter_bale_bot | 1eeade6654162cefa6d2ce1898e4586643946dcb | f00f954a348c723bcf11ccca20a45d5f4f9ee69c | refs/heads/master | 2020-06-20T17:06:42.181715 | 2019-05-13T18:20:09 | 2019-05-13T18:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | import datetime
import persian as persian
from constant.message import ReadyText
from main_config import BotConfig
from khayyam3 import *
# def make_tweet_message(user_name, text, profile_image_url, favorite_count, retweet_count):
# message = TextMessage(
# ReadyText.tweet_message.format(text, user_name,... | [
"dr.enyacc@gmail.com"
] | dr.enyacc@gmail.com |
9d441ee6318b2553430e476e4c3127a09500df46 | 401f1e80c367f1e909986a60e0fbe087ab82c700 | /event_log_filter.py | acf90f659e1a73092e71c9c34219b730a943e887 | [] | no_license | karuppaiya/process_mining- | ab1ba43de6ea0adaf533fea52f7768814f0ec46f | 52ce1eba8c5dc2f373b6df000c61e9c29a85d90d | refs/heads/main | 2023-06-05T11:23:45.241201 | 2021-07-01T14:40:38 | 2021-07-01T14:40:38 | 316,505,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
# In[2]:
df = pd.read_csv("trace.csv")
# In[3]:
df.columns
# In[4]:
df.shape
# In[35]:
len(df['concept:name'].unique())
# In[27]:
first_last_event = []
for i in df['case:concept:name'].unique():
sub = df[df['case:concept:name'... | [
"noreply@github.com"
] | noreply@github.com |
049e4a9ab11ab90ed899286b280e96eef25db4de | cadd27a5c72644fe87940e156e4f40f1131b9a57 | /udemy/_internal.py | 0cc13463a4fdad5b5c127e648080b4c565dc88a2 | [
"MIT"
] | permissive | mrbrazzi/udemy-dl | 1ef576800bd01ed2724911144a1fd8bad70b18f9 | 0f0a3ff00167b3b4614d5afc0d4dc6461e46be97 | refs/heads/master | 2022-11-13T17:41:38.170496 | 2020-07-01T18:17:24 | 2020-07-01T18:17:24 | 274,795,490 | 1 | 0 | MIT | 2020-06-25T00:16:33 | 2020-06-25T00:16:32 | null | UTF-8 | Python | false | false | 6,961 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
License : MIT
Copyright (c) 2020 Nasir Khan (r0ot h3x49)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft... | [
"r0oth3x49@gmail.com"
] | r0oth3x49@gmail.com |
d943c91cab88a3b86bdd8960634c7db6251aac8e | d5e28d1c6d1db6dd2fed762e95e15e471578ca26 | /funciones_2.py | f23bc9147e01240db754944f29121dd843991a8b | [] | no_license | keilacenal18/Maraton-UNDAV-python- | 05c3c54f7f4329397bba03f8db87730952a5b066 | 755bf316135eb729cfe895645fc1e52beabec307 | refs/heads/master | 2020-03-25T18:37:14.996038 | 2018-08-08T18:09:29 | 2018-08-08T18:09:29 | 144,040,710 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 1,627 | py | # -*- coding: cp1252 -*-
from funciones_3 import convert_seg_hms, convert_hms_seg
def calc_marca (h_lar,m_lar,s_lar,h_lleg,m_lleg,s_lleg):
'''toma por parametro los valores ingresados en la funcion principal,
invoca a la funcion del modulo Echegaray y realiza la resta entre los
dos horarios para luego devol... | [
"38932958+keila1088@users.noreply.github.com"
] | 38932958+keila1088@users.noreply.github.com |
92b1ccac2bd3b68d0b912e8b0108da4b9e39b639 | ad7fafe71647269b63268d8ba43e007c12761e87 | /day-1-to-10/d4/treasure-map.py | 00123a17e0831287b43bab256dc6ff36e27b02d2 | [] | no_license | un-ro/python-100-days | cd6753ea9158bbceccf0fe2a3ca4e798fd226103 | 75f818fd4105ed2a0f65525e4f2f45cec29c2bca | refs/heads/main | 2023-09-01T09:54:13.252111 | 2021-11-21T08:03:17 | 2021-11-21T08:03:17 | 425,699,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Day 4 Exercise: Treasure Map
row1 = ["⬜️", "⬜️", "⬜️"]
row2 = ["⬜️", "⬜️", "⬜️"]
row3 = ["⬜️", "⬜️", "⬜️"]
map = [row1, row2, row3]
print(f"{row1}\n{row2}\n{row3}")
position = input("Where do you want to put the treasure ?")
col = int(position[0])-1
row = int(position[1])-1
map[row][col] = "💎"
print(f"{row1}\n{... | [
"20809454+un-ro@users.noreply.github.com"
] | 20809454+un-ro@users.noreply.github.com |
4fb8d15b366ab3a2ac674ac5243cd2d47dcddc12 | 2624ff0625bd8ff2460a6c2a24f9ef7b74eba790 | /GUI/dev/drawing_mockup.py | e8de9bc5f38b363756f6892186113b105638d706 | [] | no_license | Harnesser/wxDebuggy | 0e17a58fe14d1f7a23a829128079de912a0104af | 09f1997e87883975c7b14f4c0422d0cd74ce915e | refs/heads/master | 2021-01-23T09:51:23.869515 | 2012-10-11T04:48:48 | 2012-10-11T04:48:48 | 1,133,532 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,935 | py | # A Drawing Mockup for vv.Debuggy.
#
# * Reads in verilog files and displays schematics and hierarchy -DONE
# * A splitter window, left = hier tree, right = autogen schematics -DONE
# * Status bar shows current hierarchy path -DONE
# * Window title shows name of module on view -DONE
# * Schematic to be displayed i... | [
"harnesser+marty@gmail.com"
] | harnesser+marty@gmail.com |
b5aa8a920de266e4b7fb60ea573ed638ecf93516 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/python/ops/spectral_ops.py | 101e33656cb9435c28ff2b5093959cbdf275dfad | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/python/ops/spectral_ops.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
4fab3fbb759c5158c14ade7f81434ccb24339085 | eeeffe693078a77f84ec7821081182e6b12043c9 | /narendra/settings.py | 159af370051040c80f2c00db9cd921f1901a7574 | [] | no_license | Narendra-Rathore/narendra | e05328178e1e475481d76a56460d824053f0c501 | 6a46b9f5d0ae3146c8f81ab7b630bc485afa4e7c | refs/heads/main | 2023-03-03T13:21:42.356874 | 2021-02-10T10:20:28 | 2021-02-10T10:20:28 | 337,432,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | """
Django settings for narendra project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"npsdudsi007@gmail.com"
] | npsdudsi007@gmail.com |
41b5440e07e8716b838f36fcbe7349b339868d83 | c6ddc6e07d691333ac7de36f9dfc9b0f1ddd7a66 | /CS1/Hw1_divsub/div.py | b4c10498bb9e9e0103db9eaef9226d7b86f7ee6e | [] | no_license | janat-t/titech_comp | c239d2badb135138f794cc1db41a39b2a48a0f3a | df0882d33b826fa3d5d5bb71454c30600e9cf5f6 | refs/heads/master | 2023-02-17T01:49:45.408051 | 2021-01-13T12:01:10 | 2021-01-13T12:01:10 | 230,982,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | x = int(input("?x = ")) # user input
y = int(input("?y = ")) # user input
quotient = 0 # quotient
remainder = x # remainder
while remainder >= y:
quotient += 1
remainder -= y
print("x div y =", quotient)
print("x mod y =", remainder) | [
"janat.taerakul@gmail.com"
] | janat.taerakul@gmail.com |
0ca34fab292798a669c8de348004e6a44c9e7507 | 2172fdab53b2a0b79f75ba0cd57f32be8984f28e | /docs/conf.py | 41f86a2505b84b4719e39051a48d9c2305e3953d | [
"BSD-2-Clause"
] | permissive | ckot/python-news | 9bb9a80a452bd8ef8c673f265fcc3cb21b5c947f | 0c7c2ec420208fe2f835955d3ce73faec4844931 | refs/heads/master | 2020-04-07T19:28:22.016310 | 2018-11-22T06:28:41 | 2018-11-22T06:28:41 | 158,649,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.coverage',
'sphinx.ext.doctest',
'sphinx.ext.extlinks',
'sphinx.ext.ifconfig',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx.ext... | [
"ssilliman@pitt.edu"
] | ssilliman@pitt.edu |
f02baa1a15a4adfaff7695ebfebc0b1f113161d6 | 28093e725d3723af6567e641f6f5b8c236e5c7b9 | /getscore.py | 18f560dab82d9bb9e365f83592f7f8aae2b4ef7d | [] | no_license | uhgg459/shortcontentsentment | 65d5ca82d5fd1b8f0d5b7af2d7c04b964757afe6 | a87b800d6666c3ff79d6d8b494b037fcce290fb8 | refs/heads/master | 2021-07-22T15:43:58.312126 | 2017-11-07T04:14:24 | 2017-11-07T04:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | import copy
import pandas as pd
df_testrain=pd.read_csv('getmodel1.csv',encoding="gbk")
df_train = pd.read_excel('泰一指尚训练集.xlsx')
#要评的文件 df_testrain = pd.read_excel('***.xlsx')
# a) 情感匹配正确数量:tp
# b) 情感匹配错误数量:fp
# c) 情感匹配漏判数量:fn1
# d) 情感匹配多判数量:fn2
tp,fp,fn1,fn2=0,0,0,0
for i in range(0,df_train.shape[0]):
theme=d... | [
"751761610@qq.com"
] | 751761610@qq.com |
69910e59f102ba32155314739d6b79edc1ef6e2f | b2aaa6491f43587a1be4a187d90f35bbd98b40fd | /ip.py | 8a740593da60789e74977ceb7ba139007d109ec2 | [] | no_license | burlakaann/Web-Applications | 0beccd242877c66a94607d9531ca5c4d15f8a478 | ad6f584f3094802a10460882aef5c904af76661c | refs/heads/master | 2020-08-26T14:55:12.591464 | 2019-10-23T13:06:23 | 2019-10-23T13:06:23 | 217,046,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import socket
'''
try:
socket.inet_aton('127.0.0.1')
except socket.error:
print('niepoprawny ip')
host = socket.gethostbyaddr('127.0.0.1')
print(host)
'''
'''
TCP_IP = 'google.com'
TCP_PORT = 8080
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
res = s.connect_ex((TCP_IP, TCP_PORT))
if ... | [
"annaburlaka2016@gmail.com"
] | annaburlaka2016@gmail.com |
3b29475196e55b01c9672bfe50448f45d59c16f9 | 9ffd8754679f363f7c03fa2873dfd3b1f5af41a7 | /UserRegistration/admin.py | 90d6d157eb401162e4d94faa6e1e2727258d82ca | [] | no_license | cmrajib/django_fashion_ecommerce | 54848c7f3f1ede349bad77533647cd161d86c413 | 141e87ad77f4a4503e487de8ad360789a9e272f4 | refs/heads/main | 2023-02-21T12:31:07.457942 | 2021-01-19T17:58:31 | 2021-01-19T17:58:31 | 331,065,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.contrib import admin
# Register your models here.
from UserRegistration.models import User, Coupon
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'full_name')
list_display_links = ('email', 'full_name')
# list_filter = ('user__email','full_name','city')
# list_editable = ('i... | [
"cmrajib@gmail.com"
] | cmrajib@gmail.com |
4fcfa6677e4bbb3ad6648913c19083caf294f174 | 276ae1fa90ac2f11be7cbffe7f787b0810c38429 | /flipsale/products/utils.py | d423fece6000b880038b5262849e7f6710848338 | [] | no_license | sneha-lohana/django-project | 15524470b08a21a4747e92334cd5d392f87eeef5 | 7df857fe8903b305ac28dfb25df6a5ad90f1425c | refs/heads/master | 2020-11-27T16:37:42.297896 | 2020-02-18T06:16:13 | 2020-02-18T06:16:13 | 229,531,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import random, string
from django.utils.text import slugify
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
#code comp
# s = ""
# for i in range(size):
# s = s+random.choice(chars)
# return s
def ... | [
"sneha.lohana16@gmail.com"
] | sneha.lohana16@gmail.com |
4dd6abce27312bede65ef9f29a7d675967b34fe5 | 0f799b88204d002d655f48894a3095bf006f9d1f | /chapter12/file_pickle.py | 282b759494246bb4280bf6f94244a262ea552c48 | [] | no_license | liuyuzhou/pythonsourcecode | 4008b4adf0342e61a1b6c03f12ab55ad04252e7e | 476c75ff6b83953565175a66e21cad3139f06ad2 | refs/heads/master | 2020-05-16T01:39:20.518816 | 2019-04-22T02:48:49 | 2019-04-22T02:48:49 | 182,607,905 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import pickle
d = dict(name='xiao zhi', num=1002)
print(pickle.dumps(d))
| [
"liuyuzhou@banggood.com"
] | liuyuzhou@banggood.com |
4049996983313e176aa4972cf259096df6168fe7 | eee6dd18897d3118f41cb5e6f93f830e06fbfe2f | /venv/lib/python3.6/site-packages/scipy/sparse/spfuncs.py | a5aeb7d325475944cf4927075b955f7bbfa4a436 | [] | no_license | georgeosodo/ml | 2148ecd192ce3d9750951715c9f2bfe041df056a | 48fba92263e9295e9e14697ec00dca35c94d0af0 | refs/heads/master | 2020-03-14T11:39:58.475364 | 2018-04-30T13:13:01 | 2018-04-30T13:13:01 | 131,595,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | """ Functions that operate on sparse matrices
"""
__all__ = ['count_blocks','estimate_blocksize']
from .csr import isspmatrix_csr, csr_matrix
from .csc import isspmatrix_csc
from ._sparsetools import csr_count_blocks
def extract_diagonal(A):
raise NotImplementedError('use .diagonal() instead')
#def extract_d... | [
"georgeosodo2010@gmail.com"
] | georgeosodo2010@gmail.com |
c6797b273d4f47176fbabce82051b22717ecd28e | b61d5815a060dad9de0e4597f3a858359cf6b666 | /venv/bin/dotenv | 93a75e4a6f2953ec049124bd2dce3d41a97e8d5e | [] | no_license | thomasjpagonis/flask | 5c47201a046b8a58ddf908985191451b65214cbd | 041e0e78e9ce1ea37c0c3713b90490d786541cce | refs/heads/master | 2022-11-23T12:00:45.466406 | 2020-07-28T21:54:34 | 2020-07-28T21:54:34 | 280,446,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/pi/Documents/microblog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from dotenv.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"thomasjpagonis@gmail.com"
] | thomasjpagonis@gmail.com | |
3962f0dfe398f256afad9af62257fa997b33b941 | 4ec99265f150cd836b5131d2ef8852f6eee7d7df | /service/server/views.py | 30b519e726b1c72162928fa7b0761c00e442d1de | [] | no_license | RabbitScorpion/pacs-tutorial | bc75c03d850cbe1fe247c8341fea6be4f0246e31 | fb95e166a4c37606978893c50629701538c00ca9 | refs/heads/master | 2023-03-16T07:52:49.541549 | 2020-08-07T16:17:56 | 2020-08-07T16:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | from django.shortcuts import render
from django.http import FileResponse
from server import models
import json
import uuid
from django.core import serializers
from django.core.serializers.json import DjangoJSONEncoder
# Create your views here.
def read0(request):
file = open('./testdcm/ImageFileName0080.dcm', 'rb')... | [
"1336700531@qq.com"
] | 1336700531@qq.com |
10682582ea1863fd922d5da0927d22778286f60e | 38c35956be6343855914b1c58b8fbd2e40c6e615 | /Grafos/2131.py | 2dd6d299343e38504e64253ea933e1dd5ba17cd3 | [] | no_license | LucasBarbosaRocha/URI | b43e4f4a6b3beed935f24839001bea354411c4bd | 2c9bcc13300a9f6243242e483c8f9ec3296a88ad | refs/heads/master | 2020-06-25T05:06:51.297824 | 2019-08-22T04:50:11 | 2019-08-22T04:50:11 | 199,210,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # -*- coding: utf-8 -*-
# Funcao que cria um grafo
def cria_grafo(lista_de_vs, lista_de_arestas):
grafo = {}
for v in lista_de_vs:
grafo[v] = []
for aresta in lista_de_arestas:
grafo[aresta[0]].append(aresta[1])
return grafo
# Busca em profundidade personalizada
def dfs_iterative(grafo... | [
"lucas.lb.rocha@gmail.com"
] | lucas.lb.rocha@gmail.com |
621d2aad3eb42bb8dbd059d46d0a17ff7f170215 | a8f6a8afd6b3609a947cafad5988d025454b4f9c | /datesFromLogs_Test.py | c15388862c6f16360d4caae0cd5764dee4ff4481 | [] | no_license | andreodendaal/100DaysOfCode | aede59a6e1f3f3ada30a1a534548939a7b9b375f | 282bf21c2d75fcd562ae935fa23e41a7c4c0cb45 | refs/heads/master | 2020-03-20T17:21:44.649611 | 2019-02-27T17:22:56 | 2019-02-27T17:22:56 | 137,557,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import unittest
from datesFromLogs_d2 import datetime, timedelta
from datesFromLogs_d2 import loglines, convert_to_datetime, time_between_shutdowns
class TestDatesFromLogs(unittest.TestCase):
def test_convert_to_datetime(self):
line1 = 'ERROR 2014-07-03T23:24:31 supybot Invalid user dictionary file'
... | [
"aodendaal.direct@gmail.com"
] | aodendaal.direct@gmail.com |
9f27b8d82f33985ee0d62c3f0ac924016808512a | a2f462f31aa0e23aa2f9e61c266b83a04de1b6ee | /Normal.py | 82408f222cf336621bcd7a5ee7872162cdc2e906 | [] | no_license | agneet42/Word-Spotting | 099b75f1ce7997854698128ca573a67a2842f27d | 48e3e9164eb76c2d895ab739ec155c7105c0b083 | refs/heads/master | 2021-01-19T12:37:13.168082 | 2017-05-16T17:42:18 | 2017-05-16T17:42:18 | 82,327,162 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import cv2 as cv
img = cv.imread('path')
img = cv.resize(img, (800,800))
cv.normalize(img, img, 0, 255, cv.NORM_MINMAX)
cv.imwrite("filename",img)
cv.waitKey(0)
cv.destroyAllWindows()
| [
"noreply@github.com"
] | noreply@github.com |
6d9aa23aac7fc83f966804c5d25d3a1d9096f76b | 81f9d88a560edb2b92997855c6445628cf0e6eaa | /homura/__init__.py | 53bd57eca602723adbb53d18674e93be0451c1cd | [
"Apache-2.0"
] | permissive | haiyan-he/homura | e1de6e0162a0a3d5c2f2ce142f551562dc30f4c3 | 2b98d4e0071b926233869e5396a02e70638d19f7 | refs/heads/master | 2023-02-06T18:25:15.557698 | 2020-10-01T07:54:23 | 2020-10-01T07:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from .register import Registry
from .utils import TensorDataClass, TensorTuple, distributed_print, enable_accimage, get_args, get_environ, \
get_git_hash, get_global_rank, get_local_rank, get_num_nodes, get_world_size, if_is_master, init_distributed, \
is_accimage_available, is_distributed, is_distributed_avail... | [
"hataya@keio.jp"
] | hataya@keio.jp |
984013456f56ade2cc7f39f24b3237704702d1fe | 96b4408dc8943b34521f3ab1959aacb23616fa8e | /adjust_results4_isadog.py | d04393a5386aadf9dea6104e0710bd840558260e | [] | no_license | c-mcdonnell/Dog-Breed-Classifier | 50caa265aea7c34a703ec762d130bb820033fda5 | 8ce7c55d24a78cd0e81c9a8f4c9917e5e2e60b51 | refs/heads/master | 2022-12-18T22:50:18.178749 | 2020-09-19T15:02:47 | 2020-09-19T15:02:47 | 283,799,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/adjust_results4_isadog.py
#
# PROGRAMMER: Cassidy M
# DATE CREATED: 19 July 2020
# REVISED DATE:
# PURPOSE: C... | [
"cmcd724@gmail.com"
] | cmcd724@gmail.com |
707325ccfbf17f557db71e91864a6c41af9291f1 | fbd0d0bd05c1709cd698cc98b58e9347132bed7c | /tests/conftest.py | d7e2e9192a6137e32fa4b47378ddeb888c856007 | [] | no_license | StanfordSocialNeuroscienceLab/communities-ema-feedback | 0d01d1eac151158b20c3a505ffe13231144f5775 | 5408848e11956a11ba0aa03bffb258c9f3092e2c | refs/heads/master | 2022-05-01T06:13:20.182496 | 2019-12-07T22:25:11 | 2019-12-07T22:25:11 | 223,049,350 | 0 | 0 | null | 2022-04-22T22:45:16 | 2019-11-20T23:50:57 | HTML | UTF-8 | Python | false | false | 1,468 | py | import os
import tempfile
import pytest
from feedback import create_app
from feedback.db import get_db
from feedback.db import init_db
# read in SQL for populating test data
with open(os.path.join(os.path.dirname(__file__), "data.sql"), "rb") as f:
_data_sql = f.read().decode("utf8")
@pytest.fixture
def app():... | [
"everett.wetchler@gmail.com"
] | everett.wetchler@gmail.com |
9ef9dbfe322cea184ea1b923582145a95b484653 | 1033655e5f67446fd6447beb0d26988841780f22 | /src/dataset_characterization.py | 721c530b72a15ce0dc1e81e795e9fc0e13902ca2 | [] | no_license | marta-seq/enzymeClassification | b4f3fe875d790aae65cc9466edba676f13cc0021 | 43beafabd87dae9c4e4d815cd0622e52dd92b8fa | refs/heads/master | 2023-05-06T04:55:39.821269 | 2021-05-24T16:40:23 | 2021-05-24T16:40:23 | 370,350,413 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,981 | py | import pandas as pd
from collections import Counter
import matplotlib.pyplot as plt
import seaborn as sns
from get_ec import get_ec_1_level
def get_counts(column):
counts = Counter(x for xs in column for x in set(xs))
counts.most_common()
# df = pd.DataFrame.from_dict(counts, orient='index').reset_index()... | [
"anamartasequeira94@gmail.com"
] | anamartasequeira94@gmail.com |
fa00dc55b7191039833d1a3dea845bcd117e6125 | 55e9f3b00fc2e488597bab5225ed321c86efbd4b | /sdk/yapily/configuration.py | e060bb0c81cb4f122ad71cd083264392d20f804d | [
"MIT"
] | permissive | bs-yapily/yapily-sdk-python | ad9d04c28f3d744830734c3444c1cef8215206fd | 0bba45e351b674eb655425a51190f539c4e9896f | refs/heads/master | 2020-08-26T17:18:53.156429 | 2019-10-22T11:01:16 | 2019-10-22T11:01:16 | 217,085,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,451 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
OpenAPI spec version: 0.0.155
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __fu... | [
"systems@yapily.com"
] | systems@yapily.com |
b445646c7e1f29286068c2429fbfaa45543701b8 | 7e480f50756cfc9b9f68ce6ad49176734405b4df | /function_to_ask.py | 7fbc4545a2abf2ac150ecea0238d9f640172d357 | [] | no_license | dotrung1998/Basic_Python_Dunglai | df98cbbb629830aafb00031125557f06ecf7795a | 53feb27d9e301674d2d7ff7f0c76fdc55a49ed78 | refs/heads/master | 2023-04-13T05:26:35.634889 | 2021-04-26T21:14:55 | 2021-04-26T21:14:55 | 361,883,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import datetime
'''
1: Use "main"
2: "While" loop using function
3: change type direct in "input"
4: Muss have "return" to take back the value
5: Just need to have "height_meter" because feet has already calculated with "METER_TO_FEET"
6: Muss: certain order
7: Defind also in "main"
8: Python is atomatically know the... | [
"dotrung1998@gmail.com"
] | dotrung1998@gmail.com |
ee0538a702b3f1d5225111d1b0386cf826b19e09 | 6e1887eaa730ff764e6cff692a07e85cc2713e83 | /aster_gui_tests.py | 3b0d6f5f3161b09ddbd1db26bac7f2be424bb9e2 | [] | no_license | zhanxiangqian/salome | 145759ec75698d49ab686ed196f78b815f42414d | 62592c0f17be823caad8ea71cd52841acbab6185 | refs/heads/master | 2021-01-23T07:44:50.832028 | 2017-04-14T09:29:47 | 2017-04-14T09:29:47 | 86,442,922 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,903 | py | # -*- coding: utf-8 -*-
"""Tools for easing Salomé tests on the GUI side
"""
import os
import os.path as osp
import subprocess as SP
import unittest as UT
from cStringIO import StringIO
from tempfile import mkstemp
from time import sleep
from PyQt4 import QtGui as qt
from PyQt4 import QtCore as qtc
connect = qtc.QObje... | [
"1074919969@qq.com"
] | 1074919969@qq.com |
9ebcd2e77d1f286145916c7713b83a5fe4f9d261 | 5ee2c0e9b457be178e9c197d0d92037d356de53c | /model.py | 5347a8d28729b4807e6b38e293ae85b38c911a01 | [
"MIT"
] | permissive | klitile/oaps | b067a835b1850d9981b3c626899999681834ab3f | 9cf423bf884151402e7fd861b32e3abe2518eefe | refs/heads/master | 2020-09-12T10:57:00.158074 | 2019-12-08T07:21:30 | 2019-12-08T07:21:30 | 222,401,560 | 0 | 0 | MIT | 2019-11-18T08:41:48 | 2019-11-18T08:41:47 | null | UTF-8 | Python | false | false | 2,753 | py | from app import db
class Article(db.Model):
__tablename__ = 'article'
id = db.Column(db.Integer,primary_key=True)
title = db.Column(db.Text)
user_id = db.Column(db.Text,db.ForeignKey('user.id'))
subject_id = db.Column(db.Integer,db.ForeignKey('subject.id'))
abstract = db.Column(db.Text)
hi... | [
"2912607882@qq.com"
] | 2912607882@qq.com |
1d4fbdd1accac08faf4e709ae7bd693cb92cf97b | 6d6fad815dda6bc622559e0f39590b342008939f | /rnn-tensor.py | 88b6407948fe4833348ce268a6db7a4f096e6a62 | [] | no_license | pushpankar/ML-projects | 93368bfc137a1b5096ddfa2d4f9beaf0a0f8561e | 87b619479a5cb7d9647f96da930541e5d0817677 | refs/heads/master | 2021-01-11T15:42:55.986664 | 2017-03-22T09:33:32 | 2017-03-22T09:33:32 | 79,908,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | from __future__ import print_function, division
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
num_epoch = 100
total_series_length = 50000
truncated_backprop_length = 15
state_size = 4
num_classes = 2
echo_step = 3
batch_size = 5
num_batches = total_series_length//batch_size//truncated_back... | [
"pushpankark@gmail.com"
] | pushpankark@gmail.com |
5e46bc761055167ebad6fd4ddfafcf2a93b274cb | a7a3863acaf31d0fb679a482000c6ff89636a55c | /python/main_test_lfads_old.py | 64bb6d1eb50d2a138072ffea80eb887c69bcd805 | [] | no_license | gviejo/SWR_factors | 313280926b3e1f895578ca453c474900e1a3f320 | 87c74106c26b7c7ec03a197858b8013f10f74780 | refs/heads/master | 2021-11-10T02:57:39.280051 | 2021-11-05T01:37:58 | 2021-11-05T01:37:58 | 176,997,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,639 | py | # Copyright 2017 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 required by applicable law or a... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
de64568098f0ef926aea923729b2c449aa7f9a78 | 157ccf908516e0707d88a30aa7048cdb68180154 | /Experiment/FeatureExtraction.py | b4196b490e969fc0c3928f0181a282241b33e762 | [] | no_license | BhuiyanMH/Python3 | bed45ba55a7d0b71eec9b59da24e1ad01410e4ac | ef1615fd46e8b9793467a427c61eea9d161b75e3 | refs/heads/master | 2021-08-24T10:31:04.166448 | 2017-12-09T06:54:46 | 2017-12-09T06:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from sklearn.feature_extraction.text import CountVectorizer
vectorizer = CountVectorizer(min_df=1)
#print(vectorizer)
corpus = ['This is the first document.', 'This is the second second document.',
'And the third one.', 'Is this the first document?',]
X = vectorizer.fit_transform(corpus)
#print(X)
print(vect... | [
"rony.cse.cu.13@gmaail.com"
] | rony.cse.cu.13@gmaail.com |
f431aa9fb04a4e8ef737094d288b77167678c161 | 46019bbd09c3d705889106d15f0467244e19576d | /gendiff/arg_parse.py | 67a0d2148353eb4a32bd58bede541c182f72a8b4 | [] | no_license | mjh-sakh/python-project-lvl2 | 60299a9e6d48f912f7464012f99592a4c0c5a3da | 71ffc9f5573d26096b23b25067a27c46d8c4e783 | refs/heads/main | 2023-04-20T10:53:29.999740 | 2021-06-02T09:25:40 | 2021-06-02T09:25:40 | 359,762,288 | 0 | 0 | null | 2021-05-10T06:38:04 | 2021-04-20T09:43:05 | Python | UTF-8 | Python | false | false | 856 | py | import argparse
DESCRIPTION = r"""
files:
file_one: {"key1": 1, "key2" : 2}
file_two: {"key1": 10, "key3" : 3}
run command:
gendiff file_one file_two
result:
{
- key1: 1,
+ key1: 10,
key2: 2,
+ key3: 3
}
""" # noqa: W291, W293
def get_parser():
parser = arg... | [
"48555070+mjh-sakh@users.noreply.github.com"
] | 48555070+mjh-sakh@users.noreply.github.com |
18aa237008c1e5f001473ff301022c74ef848946 | a944870030badd3dc63545966026cbecb9e3c1dc | /booking/serializers.py | 9ec10d884d0a330146254176b9f4f9e8b559ce9b | [] | no_license | Kwojtanek/django-SPA-booking | 7c444a12df575d0b4b2300093abd727c756b4eac | 8e95c2667e1e4bf26cbb6c527ab20d34bd1c4faa | refs/heads/master | 2020-06-26T21:00:42.111161 | 2017-04-25T19:17:57 | 2017-04-25T19:17:57 | 66,871,860 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import Booking, BookingRoom, BookingPerson, RoomPhoto, BookingHouse, BookingRoomAdditional, Employee
class RoomPhotoSerializer(serializers.ModelSerializer):
class Meta:
fields = '__all__'
model = Roo... | [
"kwojtanek@gmail.cmo"
] | kwojtanek@gmail.cmo |
60f3d4c8128a3b02d149f833739567729c2cae61 | 25190804d9fa6fd54823f599420b383c80188dec | /fase3/gamma/management/migrations/0001_initial.py | ba9421f8bea36b3db0beaf37a904950c71b7c7c6 | [] | no_license | MAC0350/Projeto | 2ca8989746a560832ca34331df2d9a953801876d | 83360badd1a5753fccd89ef8595caedd1565954e | refs/heads/master | 2021-05-15T11:25:38.541495 | 2017-12-05T00:07:44 | 2017-12-05T00:16:45 | 108,330,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,942 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-01 18:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Admini... | [
"leonardo.macedo@usp.br"
] | leonardo.macedo@usp.br |
7edf2c6e44d0fda5bd7ac4076553502cd8b88700 | 77be34cca78bf5418036f2f483aef8ac005fe1d7 | /segnet.py | bf98efc701a100274ac178818a3a3e5e6dfb5eac | [] | no_license | sunbrown/thyroid_nodule | b1642f0750f24d4cc942eaf50426cb4b7094791e | 836b79519ad212813dc85a9ce9847e732dd823bc | refs/heads/master | 2020-07-06T00:09:52.420750 | 2019-08-17T02:41:23 | 2019-08-17T02:41:23 | 202,826,024 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,801 | py | import os
from utils import Trainer, StepLR
import numpy as np
import torch
import torchvision
import torch.nn as nn
import torchvision.models as models
from torch import nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
im... | [
"sunbrown007@gmail.com"
] | sunbrown007@gmail.com |
aa8d5d425f8c8c07e9aa8bd8b01d8c38944a0232 | 295ecf4f254c42e9201657ef0a13ec2c68c40c9b | /buy/forms.py | c80566d1a697136ed495d48bc28f1acb92a3c021 | [] | no_license | zwolf21/StockAdmin-pre2 | 0236061284a6fe8801591608591d21129d4ea7c0 | b21d069ff215c17ce3bca040ecf9b8f48b452ed4 | refs/heads/master | 2021-05-01T09:28:59.818469 | 2016-11-30T17:33:30 | 2016-11-30T17:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from django import forms
from .models import BuyItem, Buy
from datetime import date
class CreateBuyForm(forms.ModelForm):
date = forms.DateField(initial=date.today(), widget=forms.TextInput(attrs={'tabindex':'-1','readonly':'readonly'}))
class Meta:
model = Buy
fields = ['date']
class BuyItemAddForm(forms.Mod... | [
"pbr112@naver.com"
] | pbr112@naver.com |
8cb8c49456273a357e9400352e3b69659ff7f887 | 45601f95bf680c9fb92a05bd3b3b718923994da2 | /tests/json.py | 326468b43b671a322e5a16e03927909665d01244 | [
"MIT"
] | permissive | orktes/influunt | 011a50ea5f3eb27f2f80ac7192f1db4fd5ece175 | f4b9961a4dc464e891650fea8ea6d9ea1b7cad0b | refs/heads/master | 2020-03-23T06:59:34.118666 | 2018-08-12T11:59:35 | 2018-08-12T11:59:35 | 141,242,305 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import influunt
with influunt.Graph() as graph:
m = influunt.parse_json('{"foo": {"bar": "biz"}, "biz": ["foo", "bar"]}')
biz = m.foo.bar
fooboo = m[biz].map(lambda item, i : item + biz)
r = graph.executor().run({}, [biz, fooboo])
print(r)
assert r == ("biz", ['foobiz', 'barbiz']) | [
"jaakko@unity3d.com"
] | jaakko@unity3d.com |
6841d2869574d75ea8820174825240cdb69b4887 | 0eec2b1f9b17859261dccc983eeb0b13479062d5 | /scripts/python/write_pvs | ec0bda78f5770f1332e4c5b145d3c2e1d8a97523 | [] | no_license | lnls-dig/bpm-app | 07cd0c633de38e38697555124ffe0c927182583a | e4c72d6075078fca6e79b2dc9125390ca67384e0 | refs/heads/master | 2023-08-30T21:11:56.823405 | 2023-08-14T20:10:47 | 2023-08-24T19:04:37 | 39,036,119 | 2 | 0 | null | 2023-09-12T15:32:51 | 2015-07-13T20:40:42 | Python | UTF-8 | Python | false | false | 583 | #!/usr/bin/env python3
'''Read a file whose lines are formatted as "PV: value" and write those values
into those PVs. Run as:
./write_pvs input
Author: Érico Nogueira
'''
import sys
from bpm_app.pvs import create_pv, wait_for_pv_connection, put_pv, wait_pv
file_name = sys.argv[1]
pv_and_value = []
with open(... | [
"34201958+ericonr@users.noreply.github.com"
] | 34201958+ericonr@users.noreply.github.com | |
d17a1fa7b5c455140cc82071b73faff6e2b9c72a | 666efc879c309d2571bf758a170f08d45b4b08e9 | /paddle.py | a70d942437b9d98ee6a4d208111092f5e3c537d9 | [] | no_license | TadeeshaNithesh/A-Pong-game | 7c50b46add9a5db375d3cc944f42348f7e24f665 | 7904bb23cd013e4d5c936d65bcdf9ca8ddd94e29 | refs/heads/master | 2023-08-13T17:50:53.419618 | 2021-09-18T07:11:38 | 2021-09-18T07:11:38 | 404,953,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import pygame
Blue = (15,31,52)
class Paddle(pygame.sprite.Sprite):
def __init__(self, color, width, height):
super().__init__()
self.image = pygame.Surface([width, height])
self.image.fill(Blue)
self.image.set_colorkey(Blue)
pygame.draw.rect(self.image, color, [0,0, width... | [
"tadeeshabinuditha@gmail.com"
] | tadeeshabinuditha@gmail.com |
9ff5823ad1d9e10406521fe2bad6433c1b387432 | 5c37f21a5ec6ec668a502ffbcd3d601f50416ee8 | /main.py | 7e898c33ea4615c38239e0c5b2cf626ec56479e1 | [] | no_license | wazeerzulfikar/progressivegan3d | 29e4539d219e16b38371b600defaa13a031c62e8 | 2ab686122557243e26988a1f74216c5a56df875e | refs/heads/master | 2022-06-07T16:20:13.663670 | 2020-05-02T15:52:53 | 2020-05-02T15:52:53 | 264,702,812 | 0 | 1 | null | 2020-05-17T15:51:20 | 2020-05-17T15:51:20 | null | UTF-8 | Python | false | false | 690 | py | import os
import tensorflow as tf
from opts import Opts
from trainer import PGGAN
import dataset
import tests
def main(config):
if config.task == 'prepare':
dataset.prepare_tf_record_dataset(
dataset_dir=config.dataset_dir,
tf_record_save_dir=config.tf_record_save_dir,
... | [
"wazeer.zulfikar@gmail.com"
] | wazeer.zulfikar@gmail.com |
c6ab3e4068fda9c8202f9017c37654175a68e019 | 393a387cdb286cde75b4b7d760625d5851b6b080 | /Sorting items from user in alphabetical and reverse.py | 90a60ccf36cb5d37082e64d25c13965862512f11 | [] | no_license | nami-h/Python | b57f12ae48d5bc17a3de72ec7c5abb5622ba0cd2 | 7b067950da29df705237405742564d2f127f1446 | refs/heads/master | 2021-06-27T16:00:10.113762 | 2020-09-22T19:59:05 | 2020-09-22T19:59:05 | 136,550,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | lis=[]
num=int(input("How many animals do you want to enter? "))
for add in range(num):
add=input("Enter animal: ")
lis.append(add)
animals=['horse','cat','mouse']
s=lis+animals
print("Our list consists of: ", s)
s.sort()
print("Alphabetically ordered: ", s)
s.reverse()
print("Reverse ordered: ",s)
| [
"noreply@github.com"
] | noreply@github.com |
321601e669030d76e6ffabe9f40d6d1a6f4b960c | 60af36cff75b1efc607c87a426af7980e8263693 | /werewolf_project/werewolf_project/wsgi.py | e21be592b30f204b5456994da8c9d6b9d22b9571 | [] | no_license | orbtl/werewolf | e6cec720d2017bede2e1a67020096cf85409c02f | 76fbbb6fe09ac92c83807b822710c05059ac3711 | refs/heads/master | 2020-10-01T06:32:15.790202 | 2020-02-09T00:19:37 | 2020-02-09T00:19:37 | 227,478,504 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for werewolf_project 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"twinsendude@gmail.com"
] | twinsendude@gmail.com |
5247ef6a0c34c03411ec0682c751eb89215bfc10 | 9d73473ab0b7778e8d81523608356fa5cb629229 | /run.py | f223ed91d833ed961f6f64036ecb9f3f4456504c | [] | no_license | edgarcuevas/TESTGUIASR | 6469713f48eb869af231f638609412d05790127d | 24f40a8cdb98645ccbfa867aa5b3737e23a8b86c | refs/heads/master | 2020-04-07T22:19:00.867758 | 2018-11-23T01:16:15 | 2018-11-23T01:16:15 | 158,764,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flaskblog import app
#runs the application in debug mode for developer updates
if __name__ == '__main__':
app.run(debug=True)
| [
"31939249+shifterchi@users.noreply.github.com"
] | 31939249+shifterchi@users.noreply.github.com |
328bf46fdbf281e741bc30e4e8b85e2ce9b45279 | fcd3f4c2da5e75943d0fb45d5ffb95b2891e2f15 | /drf_spectacular/__init__.py | 97f30d1228e9cefa5f899e2bac40ad016f4a2909 | [
"BSD-3-Clause"
] | permissive | MissiaL/drf-spectacular | c7706db4e48917835f22837e3bfb42b62b98873c | 0852defc36eb012cc670c4598881466759c50252 | refs/heads/master | 2021-03-07T11:28:31.704660 | 2020-07-19T10:35:33 | 2020-07-19T12:10:35 | 246,262,368 | 1 | 0 | BSD-3-Clause | 2020-03-10T09:45:44 | 2020-03-10T09:45:44 | null | UTF-8 | Python | false | false | 23 | py | __version__ = '0.9.11'
| [
"13507857+tfranzel@users.noreply.github.com"
] | 13507857+tfranzel@users.noreply.github.com |
6442d5d114a05f5f281018923c2b59cda5dcfc57 | 85c4eaf3d57ebaf9d58f83d5a1cbcc45e2c1dc8f | /A4-1.py | d232591b4f6890f2b928569e8f3b9bbd6a7e4cae | [] | no_license | maheravi/Assignment-4 | e5c1162666a4c3ac1f78706022cd75f061abcd08 | 510da590986334bd99af3b55ef5dabe59f16931d | refs/heads/main | 2023-03-27T17:39:56.125236 | 2021-04-01T13:55:01 | 2021-04-01T13:55:01 | 353,456,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import random
import time
import termcolor
import colorama
colorama.init()
Run_Time = time.time()
def show():
for i in range(3):
for j in range(3):
if game[i][j] == 'X':
print(termcolor.colored('X', color='blue'), end=" ")
elif game[i][j] == 'O':
... | [
"noreply@github.com"
] | noreply@github.com |
9da34f0b3fd562aed0b2ac5c47e6855098406832 | c05b35398f89a98792bb1033e2bed76b86a9f769 | /parkingmotel.ie/parkingmotel/parkingmotel/wsgi.py | 3affb505ce079bc12e35006341ca6ffc3dc28b01 | [
"MIT"
] | permissive | ProfessionalIT/customers | c4510960c4b0816f68d2e2a73269adb4fd205c3a | 3dbc1989bb3494fb6de7edad67dc59b7b0385ac3 | refs/heads/master | 2021-01-10T19:40:29.547508 | 2016-02-18T00:57:51 | 2016-02-18T00:57:51 | 27,883,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for parkingmotel 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"leandro@professionalit.com.br"
] | leandro@professionalit.com.br |
0d407c74a0804f33092ae5081966b235afb792ae | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/main/views_20210917182108.py | d005f72ddffca35d5f73dcabbfaf88c494a9bda0 | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from django.http.response import HttpResponseRedirect
from django.shortcuts import render,redirect
from .models import ToDoList,Item
from django.contrib.auth import login,authenticate
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
from django.http import HttpResponse
from .forms import... | [
""
] | |
bf6093ab5b6c8a259cdefdd3eac9c627d2a82514 | 1c3ed902cd9ffc863ca1e9014824dfc80ca05212 | /criptolibertad/urls.py | b32474c9635cee58272d9ba20870a5086921f74a | [] | no_license | Alejoss/CrHisoka | d8b727d420f43640c6762c809e2b028c2746b7e0 | 97a3ba2e25ac719c20bcbd9a50dfddddef7a6802 | refs/heads/master | 2020-12-24T07:43:24.103551 | 2016-08-03T22:31:42 | 2016-08-03T22:31:42 | 48,620,813 | 0 | 1 | null | 2020-11-17T20:52:07 | 2015-12-26T19:05:18 | HTML | UTF-8 | Python | false | false | 2,787 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views
from django.core.urlresolvers import reverse_lazy
from inicio import views
# from hisoka import urls as hisoka_urls
... | [
"alejoveintimilla@gmail.com"
] | alejoveintimilla@gmail.com |
75abc5b6b01a6dcbb9c8d615f21e672899c50936 | f9e3a0fb511470561d3d94bc984dafaee06000cb | /PP4E-Examples-1.4/Examples/PP4E/Preview/person_start.py | c1ba77cd5ea9c9f2d7400fccde6645dfcf752e38 | [] | no_license | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Person:
def __init__(self, name, age, pay=0, job=None):
self.name = name
self.age = age
self.pay = pay
self.job = job
if __name__ == '__main__':
bob = Person('Bob Smith', 42, 30000, 'software')
sue = Person('Sue Jones', 45, 40000, 'hardware')
print(bob... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
80059e7d76a2a2b10b10b3d32aa842d9836055fc | 141a13299fe2f1872af9f81d55334b2a5af2beb1 | /Kinect/main.py | f26bbe0e1bdff08a1a39c2feaea5e174cc19ea3e | [] | no_license | kivicode/Sketchbook | f4a19f9d95462e8f6e2775043580b9669678a714 | 55de7c588f8b948fd2f98a40428827aea2c35b1d | refs/heads/master | 2020-03-22T22:53:13.432710 | 2018-07-24T12:15:55 | 2018-07-24T12:15:55 | 140,776,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | commands = []
from Detection.DepthDetection import *
from Detection.MarkerDetection import *
from Detection.QRCodeDetection import *
from Detection.BarcodeDetection import *
from Detection.ColorDetection import *
from Detection.ObjectDetection import *
from Detection.ContourDetection import *
from Detection.EllipseDet... | [
"31818467+kivicode@users.noreply.github.com"
] | 31818467+kivicode@users.noreply.github.com |
27939d25dbaea3bb3ed348d8dc434c5c1942490d | c3b022a4633586cce66835a9d2b0ab2c12edcabc | /backend/core/mechanics/crypto/bitcoin.py | 17e447bdbe17984c57b511ecf22fab357d0ad157 | [] | no_license | amosov00/simba | 9898899b1ed1efc86ca605e9c2774e743c29132a | d07682c2a3071dcf5045d3781876f8d81cb24775 | refs/heads/master | 2023-08-09T19:28:37.656338 | 2021-03-25T19:07:52 | 2021-03-25T19:07:52 | 395,107,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | from http import HTTPStatus
from typing import Optional, List, Tuple
from fastapi import HTTPException
from pycoin.coins.tx_utils import create_signed_tx
from sentry_sdk import capture_message
from config import BTC_FEE, settings
from core.integrations.bitcoin import BitcoinPriceWrapper
from core.integrations.blockcy... | [
"nikita@elastoo.com"
] | nikita@elastoo.com |
54a8129722c6a8f8bb293fff27a8b679f1855bfd | 477c9b671be83cf11e1a68b7d7414c39d3df5377 | /Example code/01 - print.py | af8dfc5463222ea875988723c0453b37728a8d34 | [] | no_license | Christopher-Cannon/python-docs | 27f6b3c855953ca23b6dd5b8efc09e930df9a2be | eca3f4e59e31f51b498c05a9edd5216096f05bcb | refs/heads/master | 2021-01-23T16:21:38.395916 | 2017-09-21T17:29:55 | 2017-09-21T17:29:55 | 93,295,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print("This is my first program!")
| [
"Christopher-Cannon@users.noreply.github.com"
] | Christopher-Cannon@users.noreply.github.com |
2d2b2d1d569d131db631eabcdb4ec83cb90fe22f | 30909ac5beddf4e4d5109ee8b2cd3ea9cc711411 | /Sample_Run/path_attn/Config.py | 6c1259def900a578d5e6894509e94a6bceb4d785 | [
"MIT"
] | permissive | yashchandak/GNN | c3f0b8f8a894e0aa1920501ca80100e0b51c2912 | 818d1aa25bd50a65bff3577758306d2e6c591100 | refs/heads/master | 2021-01-11T17:04:52.096030 | 2017-05-12T09:53:30 | 2017-05-12T09:53:30 | 79,713,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,900 | py | import tensorflow as tf
import sys, os, shutil
class Config(object):
def __init__(self, args):
self.codebase_root_path = args.path
sys.path.insert(0, self.codebase_root_path)
#### Directory paths ####
# Folder name and project name is the same
self.project_name = args.pro... | [
"yashchandak@yahoo.in"
] | yashchandak@yahoo.in |
83c7d94c9223617493fa9162a58e518ded6fbd10 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_price_response.py | 437f28d12f863bbca7d3ec3c11acd04386c74027 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,513 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowPriceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
590cfcaabe088e2752d7ab4d2c2d7de8327142e1 | 8bbe33929727a250b4d826bd96411a8a212ace01 | /OCR.py | 98d01ae3441410dc03450b1c1a3662ea09a79c5a | [] | no_license | cuongnguyentan2501/translateMaachine | 6a939d464ef6ea488df8877aed9830fd1fee3f04 | 98581a2bdd26ddffd7c31ba0391cab6e66deb243 | refs/heads/master | 2022-11-10T18:15:08.709702 | 2020-07-07T10:01:29 | 2020-07-07T10:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import pytesseract
from pytesseract import Output
import cv2
import random
import string
def randomString(stringLength=8):
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(stringLength))
def ocrTextDetect(img):
img = cv2.imread(img, 0)
custom_config = r'--oem 3 --ps... | [
"1610373@hcmut.edu.vn"
] | 1610373@hcmut.edu.vn |
105664a23d3e6f51bf753428f2bf0073baa60746 | 674aec007a0e7f600300a88c5032a805284cd35a | /part2/tacocat/urls.py | 6675afe8748b3f22d40f266cf90fac519480c86e | [
"MIT"
] | permissive | ChmlGr/python-exercise | 7af5a02345fb1af8a60d70407e018c9cf0ff867d | f232a18597e467a713a9b618d3cce83725ce6449 | refs/heads/master | 2020-07-29T17:14:23.861767 | 2019-09-24T11:27:07 | 2019-09-24T11:27:07 | 209,896,664 | 0 | 0 | MIT | 2019-09-20T23:26:19 | 2019-09-20T23:26:19 | null | UTF-8 | Python | false | false | 801 | py | """tacocat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"xgarcia32@gmail.com"
] | xgarcia32@gmail.com |
2940503764898b98082340170692f4e10443826b | 8e59a43de9d427865c5d67fef39e9a50e44f07ce | /ppocr/modeling/heads/rec_multi_head.py | 0b4fa939eecad15c79f5e37384944720b1879205 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleOCR | af87db8a804b9a4f4eac8a0b2faf80d1dd71633a | 15963b0d242867a4cc4d76445626dc8965509b2f | refs/heads/release/2.7 | 2023-09-01T04:53:37.561932 | 2023-08-30T02:22:15 | 2023-08-30T02:22:15 | 262,296,122 | 34,195 | 7,338 | Apache-2.0 | 2023-09-14T06:08:11 | 2020-05-08T10:38:16 | Python | UTF-8 | Python | false | false | 4,301 | py | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
a52bc78e9d3b3e11b7cddbd0d97869f5a2a6bec2 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/828005040.py | 4a6d507aea18f617baa5083c1e25b5d6ed822f7a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 823 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'DA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BAU', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 1},
{ID: 'N2', MIN: 0, MAX: 99999},
{ID: 'N3', MIN: 0, MAX: 99... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
4a538cff9ad6cd0890340bd264318ca2cc7dc8c3 | cc9a0d5608b2209b02591ceace0a7416823a9de5 | /config/settings/local.py | cc31fc60988cb0f8692e336882a572a81a46a794 | [
"MIT"
] | permissive | morwen1/hack_your_body | 240838e75dd4447c944d47d37635d2064d4210fd | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | refs/heads/master | 2020-11-24T01:55:46.323849 | 2019-12-15T18:15:51 | 2019-12-15T18:15:51 | 226,505,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... | [
"morwen901@gmail.com"
] | morwen901@gmail.com |
2ef5963b4a240d3b93eaa7afcb829146d287c03e | 513e69e120a844b8b6afee9979a6365ffb6e77e6 | /scc_data_prep_alt.py | e5413126d98b164e3435903defd52a40488bf151 | [
"Apache-2.0"
] | permissive | burcgokden/CoulGAT-Graph-Attention-Interpretability | 94c9912b439390d2c1a7e1d2d98821a778aba691 | f0fb5dcf83bc94b00e5addc6636c0f4be3bf3b84 | refs/heads/master | 2020-11-24T17:12:53.921753 | 2019-12-23T00:13:52 | 2019-12-23T00:13:52 | 228,267,023 | 5 | 2 | Apache-2.0 | 2020-11-13T17:41:12 | 2019-12-15T23:20:55 | Python | UTF-8 | Python | false | false | 28,264 | py | '''
CHAMPS Dataset preprocessing Class Alternative Implementation.
(atom_index_1, type) tuple version.
'''
import numpy as np
import pandas as pd
import os
import random
import common as cm
class CHAMPSData:
def __init__(self, dataset_folder, trainfn, structuresfn, testfn=None, set_features=False, N=None, p=N... | [
"burc@fromtheskyresearchlabs.com"
] | burc@fromtheskyresearchlabs.com |
0ef930f62f7f5e56569b51c0b009e523809c0b89 | da17922416741a79f1d82addce2c1537e85323fd | /my_pytest.py | e3b022fe88182d954a68456bd3150814a5729b08 | [] | no_license | prydzkow/DevNet_1 | 477b05ce7563df10fdf2c748aa89a3b26eb600ed | a1a2321dc5b9f2c2a019ee9c25852093ae532b19 | refs/heads/master | 2023-02-10T21:30:58.881768 | 2021-01-08T17:50:50 | 2021-01-08T17:50:50 | 271,976,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #!/usr/bin/env python
"""
Author: Pawel Rydzkowski
Purpose: A test case file for the get_greetings.py.
Used to illustrate Test Driven Development (TDD) and DevOps CI/CD.
"""
import pytest
import get_greetings
#from get_greetings import get_hello
#from get_greetings import get_good_morning
#from get_greetings import g... | [
"pawel.rydzkowski@gmail.com"
] | pawel.rydzkowski@gmail.com |
d6e02e0227d363fddf1d9c6d50a450aeb2888976 | 475cb17451b414aa0a01efd422f63c2180f94a29 | /ISR/general_class.py | b027c710746ec56c1adb617cb70425035c2401e1 | [] | no_license | bioliyezhang/ISR | 6f4bb450c314213eec1bc5899544f47f4524b72a | bbc84f5a19bcc3ad70bd0768fab5a494effea6f3 | refs/heads/master | 2021-01-13T04:48:02.090985 | 2017-02-25T21:56:44 | 2017-02-25T21:56:44 | 78,700,885 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 37,098 | py | #!/usr/bin/env python
'''
V2015-05-03
'''
import os
import csv
from itertools import ifilter
import sys
"""
COMMON FUNCTIONS
"""
def output_header_file_old(infile,skip,output_handle,sup_list=[],eliminate=0):
##Version1.0
##write header into files
reader=csv.reader(open(infile,"rU"),delimite... | [
"bioliyezhang@gmail.com"
] | bioliyezhang@gmail.com |
d97a40c0c7db08ddaca4e67dad4ce3a176caeafd | a2d38a706798cdc7b34a34536ab788cc2eb73dea | /code/02-OOP/03-milk-impact.py | 657092966a44fa95feb334036659813a26142112 | [] | no_license | ehsanyousefzadehasl/APP | d63e47ca6e43bfc2f862a3c8e8e7eeb3029d61d9 | a49354db51d62cc401f6dc8617adc97db8bc067a | refs/heads/main | 2023-06-13T22:36:01.254464 | 2021-07-24T05:50:32 | 2021-07-24T05:50:32 | 334,229,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | class s_class:
def __init__(self, number, ages, heights, weights):
self.number = number
self.ages = ages
self.heights = heights
self.weights = weights
def get_average_age(self):
return sum(self.ages)/ len(self.ages)
def get_average_height(self):
return sum(s... | [
"ehsanyusefzadehasl@gmail.com"
] | ehsanyusefzadehasl@gmail.com |
47c310bae1e4abdaa6b75569a117b14e0647509e | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /基础课/jichu/day16/seek.py | 9bc56e0f93452a501443ed06d36a8a5bd659e588 | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | fr = open('20bytes.txt','rb')
print('当前读写位置是:',fr.tell())#0
b = fr.reed(2)
print(b)#b'AB'
print('当前读写位置是:',fe.tell())#2
#读写abcde这五个字节
fr.seek(5,0)#
# fr.seek(3,1)
# fr.seek(-15,2)
b = fr.read(5)#b'abcde'
print(b) | [
"zh_en520@163.com"
] | zh_en520@163.com |
4e09e79e650236e8bd4928cddefe2f4f9fa43986 | 82af5f9755cdc691c30eac5379ca8725979a5dfe | /utils.py | 9dd1d7e947cd03628f791a920d8459f14920c545 | [] | no_license | smdp2000/STATENet_Time_Aware_Suicide_Assessment | f7cf02c995af43d28583ca10c4ba452188ac45ba | 4438e132e359ec05c20708c6b74cc45792bbfd26 | refs/heads/master | 2023-01-11T23:33:54.163700 | 2020-11-16T20:14:53 | 2020-11-16T20:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import datetime
import numpy as np
import torch
import torch.nn as nn
import transformers
#from sentence_transformers import SentenceTransformer
from tqdm import tqdm
def argmax(vec):
# return the argmax as a python int
_, idx = torch.max(vec, 1)
return idx.item()
def pad_collate(batch):
target = [i... | [
"ramitsawhney27@gmail.com"
] | ramitsawhney27@gmail.com |
99d0ac28141598ba1ef6bfbd8c5c3b1865a6e825 | 7dd41c115996e4c565eed06d9604adb1279b2488 | /blog/urls.py | 374424895d4b51893a615af79c291072d0a79b4a | [] | no_license | aneeshpanoli/pyzyme-do-backup | 34a5646652e81fcfd426f708f2919b6406b275a7 | bfd1ae9391992ac4c84125e09605f73bc83ad7d3 | refs/heads/master | 2023-01-06T05:14:42.239715 | 2020-11-01T00:59:13 | 2020-11-01T00:59:13 | 284,555,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^blog/$', views.blogView, name='blogView'),
url(r'^blog/1$', views.blog1View, name='a_bright_future'),
url(r'^blog/2$', views.blog2View, name='gene_drive'),
]
| [
"pypanoli@pyzyme.com"
] | pypanoli@pyzyme.com |
16e941bc3173af4fa930218df8f03509d0805796 | 4dfa2afa16cf0019bd2f85a2272ea86efc8a820e | /algoritmo_1/tools/__init__.py | f1f3a46c1d2e4793fd37fef36f8f2f83dcfebe1f | [
"MIT"
] | permissive | cinai/identification-algorithms | aa6062f214dd7b4a4fa90475cefb5061f4aa0366 | e7e540ee06746bb3d556736043989a773757ee36 | refs/heads/master | 2020-04-06T07:18:48.644206 | 2016-11-22T18:19:09 | 2016-11-22T18:19:09 | 55,170,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | __all__ =['tpm_identification','auxiliar_functions']
| [
"catta.ugs@gmail.com"
] | catta.ugs@gmail.com |
5bb59878227653ce8f756294ee28a329772a73fe | 93f149e9e990c5d169c1ddfe6a853f7ad703e96f | /Examples/calculate_pi.py | 64177798799bb447d321904e5587f33a9da7981c | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | peter1000/PySpeedIT | 170939f2040d048736800547b95409a39e33f2e1 | 8dcd79745c0895a4e4c5b4eee2bdf25f1e1bdac6 | refs/heads/master | 2021-01-02T04:53:26.127883 | 2014-10-04T13:39:52 | 2014-10-04T13:39:52 | 23,665,846 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | """ Example: calculate_pi.py
"""
def recip_square(i_):
return 1.0 / (i_ ** 2)
# need to supply a n_ in the `speed_it modules__func_tuples`
# noinspection PyUnusedLocal
def approx_pi(n_=100000):
val = 0.
for k_ in range(1, n_ + 1):
val += recip_square(k_)
to_be_returned = (6 * val) ** 0.5
| [
"peter.margo@gmx.de"
] | peter.margo@gmx.de |
2d58887a5bc0c0cb774fd7263b4e0970d297b347 | 85ec16d071a972ca14331d99d1f0f468002a35cc | /friendster/settings.py | cf97a2930b194b84e63b00aec1f8ea256519a6e8 | [
"MIT"
] | permissive | sai29/friendster | 3567f580adbbdca59265de5ee7dc188c1d74c2fe | f89bb0c27a29b7fc35c3c3746ccb2a51fabe2286 | refs/heads/master | 2021-01-22T10:40:39.705775 | 2017-05-28T09:40:13 | 2017-05-28T09:40:13 | 92,651,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | """
Django settings for friendster project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"saiprashanth93@gmail.com"
] | saiprashanth93@gmail.com |
92f67bc660a2b6734ef9a99081d25fe5f59e8868 | 0020d9b77f4b396f25d4c6460195abab2079104e | /tests/algo/test_caesar.py | 36039bb49f4cd40f2259c31ef8dd7f72fdca91bd | [
"MIT"
] | permissive | dkushche/Crypto | 516424a6c9a56db9a74947cf7ddb6e17b45655ba | cd66d951330b408f091609bde3deb001d1320523 | refs/heads/master | 2023-02-22T18:58:03.722068 | 2022-08-21T15:51:46 | 2022-08-21T16:18:25 | 239,361,173 | 4 | 0 | MIT | 2023-02-08T02:48:34 | 2020-02-09T19:27:12 | Python | UTF-8 | Python | false | false | 191 | py | """
Caesar algorithm tests
"""
import pytest
from algo import caesar
@pytest.mark.standard_set
def test_caesar_success():
assert caesar.processor("ЛОЛ", "russian", 1) == "МПМ"
| [
"d.kushchevskyi@sirinsoftware.com"
] | d.kushchevskyi@sirinsoftware.com |
ab0fb788f0a4d856750383d838a4a13af01ae9d4 | aec775b7ca9f2587840ce8bd88d5dcf5fbd0dfb8 | /analyze_r1_skill_vs_luck.py | 5b84d8dc23825f707a09715f73b6b1a65cbc237e | [] | no_license | uvafan/tfm-analysis | 721dbfd2fe4233cb56909a554a2faecf147350c0 | 81f4c34b67632c979eddea79271546d67055561e | refs/heads/main | 2023-06-17T12:09:15.085391 | 2021-07-17T18:26:12 | 2021-07-17T18:26:12 | 385,825,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | import pandas as pd
import pydantic
import random
import statistics
import numpy as np
class Player(pydantic.BaseModel):
elo: int
points: int = 0
games_played: int = 0
def make_player_pool(skill_dist: str="all_luck", skill_dist_params: dict = None, num_players: int=63) -> list[Player]:
if skill_dist ... | [
"eli.d.lifland@gmail.com"
] | eli.d.lifland@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.