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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f21b83ad722ceb1b046532aaa66c353ff2d81b99 | 2337351b228818e41be3002bd38f68f77c2aa074 | /sa/profiles/Eltex/DSLAM/get_ifindexes.py | 1daf655961d379978c1d13de48ccb37a501d5fc5 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 2,202 | py | # ---------------------------------------------------------------------
# Generic.get_ifindexes
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modul... | [
"sysfar@gmail.com"
] | sysfar@gmail.com |
bcabb2d06c6b47a73408802b88e9b6b5fc03df2c | bf737e40779d88bdc04697c02c9a217a48dd17e3 | /JulyExercise/python/HiAnalysis_cff.py | 0ff0ef46679aca788223aadb661bd4f11e986bab | [] | no_license | CmsHI/CVS_ASYoon | 1184ae5008f670d67c3a1ac112571b706b04e924 | daf724324bb485505bc4b06bdec9b695f647720c | refs/heads/master | 2021-01-18T13:57:24.890599 | 2012-05-11T01:19:34 | 2012-05-11T01:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import FWCore.ParameterSet.Config as cms
from edwenger.Skims.HiAnalyzers_cff import *
hiAnalysisSeq = cms.Sequence(hipxltrackAna*
hipxltrackAnaMult*
hipxltrkEffAna*
(hitrackAna + hirefitTrackAna)*
hitra... | [
""
] | |
a371b1ae938e01f94ccf06da23741e62ead224ba | 63d9a1584a0b483efc4bb6d188ff7d9aab758f38 | /aproximacion.py | c189ed5f340ca8f09b5d51c0633624d71cd719d7 | [] | no_license | angest1000/PensamientoComputPython | fa0a1fec88b467a704eaa959503a76d7891540d8 | 08f9a17eb4da1ee8cf2bc45d9014a405b6589263 | refs/heads/master | 2022-12-06T22:34:38.934476 | 2020-08-15T13:22:18 | 2020-08-15T13:22:18 | 285,401,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import time
start_time = time.time()
objetivo = int(input('Escoge un numero: '))
epsilon = 0.0001
paso = epsilon**2
respuesta = 0.0
while abs(respuesta **2- objetivo) >= epsilon and respuesta <=objetivo:
print(abs(respuesta **2- objetivo),respuesta)
respuesta += paso
if abs(respuesta**2 - objetivo) >= epsilo... | [
"angest1000@gmail.com"
] | angest1000@gmail.com |
4a8d8d979b3c76330ac0c60977e1583af04011b5 | 6c93d85f5b2c36a3288b0c4a2db1c255a14e2c77 | /test/test_image.py | 290a33c6e4aabe0b4e999ea1ed3130a4b6aaa110 | [] | no_license | TANG-Kai/pyfx | af30bfc8e0f5c93132f02916eb1f9ea95c13d4b7 | 9fa4bd738ce90a8d40e68c4e0490601df78cceba | refs/heads/master | 2021-01-25T06:49:22.308713 | 2013-11-12T22:58:10 | 2013-11-12T22:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | import vrendtest
import math
from pyfx import *
class TestImage(vrendtest.VrendTestCase):
def setUp(self):
self.im = Image(2, 2, 1)
self.im.setChannel(0, 0, 0, 1)
self.p00 = Vector2D(0,0)
self.p01 = Vector2D(0,1)
self.p10 = Vector2D(1,0)
self.p11 = Vector2D(1,1)
def test_read(self):... | [
"paulkilgo@gmail.com"
] | paulkilgo@gmail.com |
f75d9363d3f58cb2e0d6affc103f3d42ab2fe867 | 340df4cb3e8d07b15ac1d99ebd63cf2150c9a415 | /zentral/contrib/inventory/utils.py | daf58bf7ae1bca65fcae0d8177729d8259c2fe72 | [
"Apache-2.0"
] | permissive | dekoder/zentral | 8e7bd2b51932a42ba3106a1d0ead2c43bfc51227 | 54cb7be31f8d8731f3a99bf0bd1c0f167404c58e | refs/heads/master | 2023-01-20T03:43:05.282387 | 2020-11-18T18:55:00 | 2020-11-18T18:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,008 | py | from collections import OrderedDict
import csv
from datetime import datetime
from itertools import chain
import logging
import os
import re
import tempfile
import urllib.parse
import zipfile
from django import forms
from django.db import connection
from django.http import QueryDict
from django.utils.text import slugify... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
7d361aed8d1e9d99ca9876bd309ba325632a1499 | 8463214c8e1e529e7c615e4356fdcf2384dc686f | /term1/DM sorting/MergeSort.py | f53d9791c97e0346ae2979122c51022f683e793d | [] | no_license | AntonZamyatin/bio-python-course | e2edd8dfc9d41c5eef1b5ad063a07f83c5b363ba | a15162eff22c8235b7d8e8f1c10ba70db8f1d98c | refs/heads/master | 2020-03-31T13:00:10.824788 | 2019-09-13T14:25:27 | 2019-09-13T14:25:27 | 149,007,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | def merge(M:list, left, right, middle):
"""
merge algorithm
"""
A = M[left:middle:]
B = M[middle:right:]
print(A)
print(B)
C = [0]*(len(A)+len(B))
i = k = n = 0
while i < len(A) and k < len(B):
if A[i] <= B[k]: # <= гарантирует устойчивость
C[n] = A[i]
... | [
"zamyatin.anton@gmail.com"
] | zamyatin.anton@gmail.com |
9cde3609b4873f5f1930f5ef0b8e1d83aa0e3e6c | c0462f7f7e0c16530196edc8459b39d25d68a8be | /hashit/hashit/wsgi.py | 286247f7d2cf5cd4db392ce61c3854beb6a63c00 | [
"MIT"
] | permissive | andyeschultheiss/Django-TDD-Course | 3f8d59f134dc107359e12be740dd32ee83ffb390 | 5b7861ed41396f51e138b4749f01cc848a623d3b | refs/heads/main | 2023-03-09T01:25:46.711365 | 2021-02-18T17:57:30 | 2021-02-18T17:57:30 | 340,133,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for hashit 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"61433811+andyeschultheiss@users.noreply.github.com"
] | 61433811+andyeschultheiss@users.noreply.github.com |
abfcb6ae38b31fedf3ccdaec4581894c308c59d0 | 27e6d774bd6c6201b6b5442f1b0d1cbfb98ff88b | /data_tf.py | c796c748f9412fd94d867a44ad15715bf25de97b | [] | no_license | kkxkkx/tensorflow_caption | 6e5c3039148bc8d1b70e3224e69d7d813fc5c8bf | 1f49a1691f5b93584cb989cb3e03003b9c3ad690 | refs/heads/main | 2023-04-18T20:24:21.467174 | 2021-05-09T11:06:53 | 2021-05-09T11:06:53 | 365,301,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | import tensorflow as tf
import pickle as plk
import numpy as np
from utils_tf import vocab
from tensorflow.keras.preprocessing.image import load_img, img_to_array
import pdb
class Dataloader():
def __init__(self, sent, sent_len, conv_len, img, img_len, batch_size, vocab, mode):
self.sent = sent
se... | [
"445359738@qq.com"
] | 445359738@qq.com |
e5ffaab39ad77dd5b0abdeb5919929dfd6678b9b | 8d6a6d3aceb5ccf0285037db1f59064ddd8479ac | /北京理工Python/hannio.py | 6c1e56fe03c559561338007d649eba17b292770e | [] | no_license | dxhxy1983/Python | 53896ec51d7ab2820758cd3b3e557d311ee57339 | 68e78594ae2c8639161be5755d52c9ade45511aa | refs/heads/master | 2023-08-29T12:41:27.133947 | 2023-08-04T01:20:04 | 2023-08-04T01:20:04 | 202,273,327 | 0 | 0 | null | 2019-11-04T04:06:26 | 2019-08-14T04:15:12 | Python | UTF-8 | Python | false | false | 194 | py | def hanoi(n, a, b, c):
if n == 1:
print(a, '-->', c)
else:
hanoi(n - 1, a, c, b)
print(a, '-->', c)
hanoi(n - 1, b, a, c)
# 调用
hanoi(5, 'A', 'B', 'C') | [
"dxhxy1983@foxmail.com"
] | dxhxy1983@foxmail.com |
edd9d190611d86c93ad2a0c1bd2e9ba947c8e046 | 52c5b78f3afab4573926dd6d0a49e10ee1a77e26 | /project_4/app1/migrations/0001_initial.py | 31865ddbc05d99f2596e900e8cbe2b3c4fa2036f | [] | no_license | zime-py/eight | d9eefc28a00a8411f3a58b0e931807492bc5bfc2 | 2138b2a8884dea299654ff7c41060c72f183486c | refs/heads/master | 2023-01-11T23:03:53.062441 | 2020-11-14T14:43:04 | 2020-11-14T14:43:04 | 312,831,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.1.1 on 2020-09-05 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='cool',
fields=[
('id', models.AutoField(aut... | [
"mahmudhossain836@gmail.com"
] | mahmudhossain836@gmail.com |
d2f5d8b2b0ea556ad46ab77baa3b509f51227fc3 | 34d07928f8227893b2257c0950b224ee83f52a14 | /백준 10799번 쇠막대기.py | 6a84c71fee5e38f60c5940307f29cbfe0d2288e6 | [] | no_license | gorani6/Algorithm | 6b2492c28c9a47882498349b8e5c18f9fb5aa982 | f3bea4ada3b671a32ca6e93390f61dc3b728aaaa | refs/heads/main | 2023-08-06T12:09:06.725472 | 2021-09-24T12:28:39 | 2021-09-24T12:28:39 | 379,312,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | s = list(input())
li_cnt = []
sum_cnt = 0
for i in range(len(s)):
cnt = 0
if s[i] == "(" and s[i+1] == ")":
cnt += len(li_cnt)
cnt += -1
if s[i] == '(':
li_cnt.append("(")
elif s[i] == ")":
li_cnt.pop()
cnt += 1
sum_cnt += cnt
print(sum_c... | [
"noreply@github.com"
] | noreply@github.com |
a1fa9e4770076b4f3ba132b4cfc556ace2c43d3c | 301fae61ca0448973f30837ca7e13463d41c25c1 | /Monografia/figuras/fragDevices.py | 97cd8b9714c6ef180d2e34b0278a8ab7146cb39b | [] | no_license | campeloal/latex | 86feb6e3a2cd3aa4fc500ff840854a1cc47f9f3b | f22efab54753258293b073c0679cfd0c45260605 | refs/heads/master | 2021-06-24T00:15:59.391213 | 2015-05-11T15:14:10 | 2015-05-11T15:14:10 | 34,579,433 | 0 | 1 | null | 2015-05-14T13:18:20 | 2015-04-25T17:56:11 | TeX | UTF-8 | Python | false | false | 1,247 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
font = {'family' : 'normal',
'weight' : 'normal',
'size' : 20}
plt.rc('font', **font)
xVertAxis = [1000, 5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 55000, 60000]
gouraud = [1943258160.0, 1944383760.0,... | [
"chevalier.beaumont@gmail.com"
] | chevalier.beaumont@gmail.com |
0cbca552ac46d5ff810627de47fd32c725cb9f9b | 7738e950c103fb23b48d5e004eddcf108ea71fa1 | /Cursoemvideo/Mundo3/exercise106.py | ee09831fdf4985b1abe94c9121e775d495431ca2 | [] | no_license | pedrottoni/Studies-Python | c9bdbaf4b4aaa209bf32aa93d6ee4814a0a39c53 | f195bcb4c6868689ec0cf05c34cd4d5a6c7b3ea1 | refs/heads/master | 2021-09-26T05:23:02.398552 | 2020-02-12T04:48:23 | 2020-02-12T04:48:23 | 203,452,221 | 0 | 0 | null | 2021-09-22T18:21:51 | 2019-08-20T20:48:07 | Python | UTF-8 | Python | false | false | 835 | py | """
Faça um mini-sistema que utilize o Interactive Help do Python. O usuário vai digitar o comando e o manual vai aparecer. Quando o usuário digitar a palavra 'FIM', o programa se encerrará. Importante: use cores.
"""
colors = (
'\033[m', # Defaut
'\033[0;30;41m', # red
'\033[0;30;42m', # green
... | [
"pedrottoni@outlook.com"
] | pedrottoni@outlook.com |
2a26001d443cb6b58b8139b330be87998641c886 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/21. Merge Two Sorted Lists/solution2.py | c0c75749ec0249059072e52b316690eeb23bd917 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1 and not l2: return None
if not l1: return l2
if no... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
dec11ec7a2863075d815ac6c10dd7bbe3acbb0ff | ffa0fee76ed52c9fa0471b888bdc3af6632ac8d9 | /inception/inception/inception_distributed_train.py | 75e39211abbf24f9a522169e60e1f2fe6c3b41cd | [] | no_license | abdasgupta/tf-automated-serving | 407c0d60b0b9aa292cb319f9c81ef0e80f885516 | fb5f3b2174b107352eb59b8ba2cb628c53cf6ff0 | refs/heads/master | 2020-12-30T16:27:40.055704 | 2017-05-15T15:33:11 | 2017-05-15T15:33:11 | 90,986,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,026 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"abdasgupta@in.ibm.com"
] | abdasgupta@in.ibm.com |
3bfe8561268459da6f00fece955b503d03c776ef | 8ae8c4ab4ec7d33d31b55d4678e5e40d555ee24e | /node.py | 115960529e2c6188bb926873641d0f2588a03382 | [] | no_license | firefirer1983/python_programing | 23229b2ae201310752dd919d3757717c96473662 | dfe49b9cace0639e49a9e67295e3d76110103103 | refs/heads/master | 2020-05-30T17:33:59.099549 | 2019-06-04T12:40:44 | 2019-06-04T12:40:44 | 189,877,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | from collections import defaultdict
class Node:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
def __str__(self):
return self._name
class Edge:
def __init__(self, src, dst):
self._src = src
self._dst = dst
... | [
"fyman.zhang@gmail.com"
] | fyman.zhang@gmail.com |
be6efdac7b8c19e02de4aae801e0423401d88808 | bef93432b7745ba5492f11e709e47a5a372590f0 | /modules/dxtbx/format/FormatCBFMiniPilatusXXX.py | 10e642a2bb5e1094c4d7b1d60ad3896600e1a1e7 | [
"BSD-3-Clause"
] | permissive | BlenderCN-Org/dials-dev20190819 | 939378744d546692e3de33d106a1b5218a584c2a | 1b719b88a1642c13a5a8d488addbb215d0fa290c | refs/heads/master | 2020-07-19T17:00:06.944870 | 2019-08-19T21:36:25 | 2019-08-19T21:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # Copyright (C) 2014 Diamond Light Source, Graeme Winter
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# An implementation of the CBF image reader for Pilatus images, from the Pilatus
# 6M SN 100 currently on Diamond I04.
from __future_... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
11c9d96ac88c75d50f08b56272f13957e89b5e41 | 9067e5c4c1400e38d9cb2555af41273dd37c6fa3 | /news/models.py | 7b6369723150bd0de5ea463dcf68e84737e03bcb | [] | no_license | getonini/portal_news | ab681820283d496dc538f1c706373c9ab0b108cf | 19eb8f99f828108709b883bf98ec881dfb3eea4a | refs/heads/main | 2023-07-12T19:42:14.744567 | 2021-08-20T20:46:45 | 2021-08-20T20:46:45 | 397,968,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from django.db import models
class DateTimeDBOps(models.Model):
created_at = models.DateTimeField(
auto_now_add=True,
db_column='dt_cadastro'
)
updated_at = models.DateTimeField(
auto_now=True, null=True, blank=True,
db_column='dt_atualizacao'
)
class Meta:
... | [
"guilherme.tonini@nexxera.com"
] | guilherme.tonini@nexxera.com |
ea82d58aa35d5bfcadac78bb24a37e12a4d434e3 | b9f9e6cc8430a632c6b9698ff6d38f5a11765136 | /Statistical.py | b4bb958745ba9cd3257a382188ccad36f4742c2f | [] | no_license | schneiderl/stochastic-simulation-engine | ee019364782a841ff6a60f5e497e87dbdfe8cb66 | 95450557e4d72c6430659ee26b70ce8fd3821df9 | refs/heads/master | 2023-06-08T19:06:52.035711 | 2021-06-22T13:15:18 | 2021-06-22T13:15:18 | 370,729,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import matplotlib.pyplot as plt
class Statistical(object):
def __init__(self):
self.resource_allocation = {}
self.dict_statistics = {}
self.queueSizes = {}
def appendStatisticalData(self, time, resources, queues):
self.__appendResourceAllocation__(time, resources)
self.__appendQueueSizes__(time, queues)
... | [
"lucas.schneider@sap.com"
] | lucas.schneider@sap.com |
929fbf0d19280efeac69297da2bd57367f849f81 | 631a04fadc655cae759b60cdea0bb06e0795784a | /ccdimport/calaccess_processed_import/apps.py | e0e427a7f00dce38e310bfe9d4c33d82292ab6b8 | [] | no_license | andrewch8o/californiacivicdata-import | b3d2f6ad9001ce669e967030289a42913e300c46 | c957618921261bc7343be8568808d1ac583730e9 | refs/heads/master | 2020-03-18T08:30:10.105705 | 2018-07-31T15:25:16 | 2018-07-31T15:25:16 | 134,512,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.apps import AppConfig
class CalaccessProcessedImportConfig(AppConfig):
name = 'calaccess_processed_import'
| [
"andc.gm@gmail.com"
] | andc.gm@gmail.com |
7c758c3c2ecd7a1495c7c31199952e9b7354063c | ef4e55bcbf49d160f420012ef5cda0e4ebe36136 | /Sudoku.py | d3748820ad5097cf7988ccd0be94cb99371e158e | [] | no_license | vamsivulisi/pythonpractise | 8cc02c3ded918c781d9e6884aa8511c7ad9b4726 | ea7a3f0445afc68398cb767365205789150df31e | refs/heads/master | 2020-11-27T18:39:17.862996 | 2019-12-24T17:30:37 | 2019-12-24T17:30:37 | 229,564,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,866 | py | Board =['-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
'-','-','-','-','-','-','-','-','-',
... | [
"vamsivulisi@gmail.com"
] | vamsivulisi@gmail.com |
9beb42c6e420b941453f36cf988c1de2743692c3 | 6631eb594a157686f45190142534f67c2a9d513e | /count_letters2.py | 27ce7248dd05203e3ed97b038ccde89e8f692712 | [] | no_license | Dsecim/intern-challenge2-daniela-secim | 440e8a5ccddc794b6f6d9138580581f121370734 | d6da4c5d64228e7bdc5cf9e70d98f8e46ba0d401 | refs/heads/master | 2021-05-20T12:13:15.153586 | 2020-04-01T21:33:53 | 2020-04-01T21:33:53 | 252,290,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | #funções de validaçao
def valida_frase(f):
tam=len(f)
if f.isalpha() and tam>0 and tam<=100:
return True
return False
def valida_char(char):
if char.isalpha() and len(char)==1:
return True
return False
def valida_num(n):
if n.isdigit():
return True
return False
def ... | [
"noreply@github.com"
] | noreply@github.com |
efd34f3ae858a097e04c23b32332f992e79ad7ab | 502625adb6cee0ccaa9e5cf1f6f28eeb72ab7ef2 | /siftflow-fcnResNet152-skip-distilled/continue.py | 760cb09c44468e170c0d74d17a1b26c77f2bd3da | [] | no_license | Mohammadamin-Barekatain/fcn.berkeleyvision.org | 59727fba97d64905b5b8207ea2c29668052188b5 | 329f005b5d706fb9566c80294309f965aba91f57 | refs/heads/master | 2021-01-11T17:35:59.564510 | 2017-03-07T04:57:15 | 2017-03-07T04:57:15 | 79,796,396 | 2 | 0 | null | 2017-01-23T10:59:06 | 2017-01-23T10:59:06 | null | UTF-8 | Python | false | false | 1,019 | py | import caffe
import surgery, score
import numpy as np
import os
import sys
try:
import setproctitle
setproctitle.setproctitle(os.path.basename(os.getcwd()))
except:
pass
weights = 'log1_iter_250000.caffemodel'
state = 'log1_iter_250000.solverstate'
# init
caffe.set_device(int(sys.argv[1]))
caffe.set_mode_... | [
"m.barekatain@tum.de"
] | m.barekatain@tum.de |
2ca79f1e0dccae04d467f40e6cd762e3be1897c0 | caba1abfbd49515c3df3fcbbb03a8ea8acfcbf2c | /Teller/migrations/0005_auto__add_field_talepart_is_start.py | 38318c88b31a536b60a3438e0bd27b88e6ddcb00 | [] | no_license | berkersonmez/TaleHouse | 46f36083536ae67538994dab266708d7c036c69f | ee2cef191ea43c330b1abc862da3d04849db92e7 | refs/heads/master | 2021-06-03T09:46:16.302497 | 2015-04-04T16:16:38 | 2015-04-04T16:16:38 | 21,621,562 | 0 | 0 | null | 2015-04-04T16:16:42 | 2014-07-08T17:02:49 | Python | UTF-8 | Python | false | false | 6,990 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'TalePart.is_start'
db.add_column(u'Teller_talepart', 'is_... | [
"brkrsnmz@gmail.com"
] | brkrsnmz@gmail.com |
4737eef0ca6c6fdfd92481a63b27dcf3526b6c5c | c1aa1195f6dc17de24822ec0e6bd3392ac2c8c60 | /nexus_constructor/geometry/__init__.py | 244fa3719c2d2bcbd8a13d6542b217ec80b27392 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | trnielsen/nexus-constructor | 348f86bf05cd800503a0a6fef942e0444e58cb18 | 65efb6eedca30250b75f142dd29a46bc909958df | refs/heads/master | 2021-02-22T21:38:40.906197 | 2020-03-06T10:02:55 | 2020-03-06T10:02:55 | 245,385,382 | 0 | 0 | BSD-2-Clause | 2020-03-06T09:58:56 | 2020-03-06T09:58:55 | null | UTF-8 | Python | false | false | 249 | py | from .cylindrical_geometry import CylindricalGeometry
from .off_geometry import (
OFFGeometry,
OFFGeometryNoNexus,
OFFGeometryNexus,
record_faces_in_file,
record_vertices_in_file,
)
from .no_shape_geometry import NoShapeGeometry
| [
"matthew.d.jones@tessella.com"
] | matthew.d.jones@tessella.com |
0160d01605e12839890511fbf17140b88de72886 | b9cdd8ec12c0eebabd62d25b9a80173133860756 | /apps/operation/adminx.py | 5d76fe48ef0e00b0f9c6e1139677e794c49cf7af | [] | no_license | hackfengJam/HFOnline | a339729f0e059ed17e676ae3931cb018a41b5ad4 | 725b991339e2f3f5a466427665a52a328bc294d0 | refs/heads/master | 2022-12-17T23:11:05.566775 | 2021-06-01T07:09:07 | 2021-06-01T07:09:07 | 125,163,650 | 11 | 2 | null | 2022-12-07T23:47:20 | 2018-03-14T06:07:44 | Python | UTF-8 | Python | false | false | 1,772 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__Author__ = "HackFun"
__Date__ = '2017/9/11 8:54'
import xadmin
from .models import UserAsk, CourseComments, UserFavorite, UserMessage, UserCourse
class UserAskAdmin(object):
# 显示列
list_display = ['name', 'mobile', 'course_name', 'add_time']
#... | [
"jianghaifeng@jiagouyun.com"
] | jianghaifeng@jiagouyun.com |
8084823e7afe6292276f9258b535ab3c1c0b37ea | a69119426eab874bcee56e3a96efe1582570d073 | /tests/test_price_exercise.py | 050075dbbd22a74200f4e58ed4d25b71f965921a | [
"MIT"
] | permissive | nsteinhilber/dev-bootcamp-brownie | 5bc4b91ac2e78d651a63c15927bfe329a9b3e0e2 | 90ac999bf408b2fc41691f29a8eba388bfe15f59 | refs/heads/master | 2023-06-18T18:33:21.852534 | 2021-07-16T21:49:13 | 2021-07-16T21:49:13 | 386,771,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import time
import pytest
from brownie import PriceExercise, network
from scripts.helpful_scripts import LOCAL_BLOCKCHAIN_ENVIRONMENTS, get_account
from scripts.helpful_scripts import get_contract
@pytest.fixture
def deploy_price_exercise(get_job_id, chainlink_fee):
# Arrange / Act
price_exercise = PriceExer... | [
"nsteinhilber@gmail.com"
] | nsteinhilber@gmail.com |
ec06410ce2adc7455ba1077d79d2470120d5230a | fb0e82ab4b4d15965cce2396fd9ae31ed2de1080 | /file2.py | 7b8e4b69230dec1d4849187abac9ca76554623e8 | [] | no_license | flerchy/My-1-PyProj | 477a1ed212d2f4721b1048f43033f1803eda7302 | e95973dd424d2bb3557d5475501dafdc3fa46317 | refs/heads/master | 2020-12-03T04:10:09.120252 | 2017-06-29T22:55:23 | 2017-06-29T22:55:23 | 95,823,795 | 0 | 2 | null | 2017-08-24T11:05:43 | 2017-06-29T22:04:25 | Python | UTF-8 | Python | false | false | 847 | py | #import math
class vect:
x = 0
y = 0
def Multiply(self, v):
v2 = vect(0, 0)
v2.x = v.x * self.x
v2.y = v.y * self.y
return v2
def __init__(self, x: object, y: object) -> object:
self.x = x
self.y = y
class dot:
x = 0
y = 0
def Add(self, d)... | [
"flerchy@gmail.com"
] | flerchy@gmail.com |
0c214f2ace2263674086bf60d6c70c0426980126 | 90b184f87ec1e1b4c45400960b98c92908783263 | /Sum Average assignment.py | e5b14ed1989193a38427f79570b8596781458f55 | [] | no_license | s1062753/CS104-03 | adfa559ab4326d42adec8499df57fa6b22214a7b | e13ee93b7eca5676dd2220b70920c849c50e8b0d | refs/heads/master | 2020-07-27T16:53:42.284517 | 2019-10-31T21:23:00 | 2019-10-31T21:23:00 | 209,162,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #Sum/Average Program
#Your first and last name:Sarina Jones
#Your student ID:s1062753
#Build on what you did in the 'List of Names' program
#Instead of entering 10 names, enter 20 numbers (integers)
#Instead of searching for a name in the list
# Compute the sum of all 20 numbers
# Compute the average for a... | [
"noreply@github.com"
] | noreply@github.com |
643c54f219b0b003ff6b91d773c41664a52e8126 | 0a444052ff45f5c81587d23bf4ca70190c399db7 | /gen_tasks.py | 8e9990a008ee49ff58037288764dc15aa4161a36 | [] | no_license | AndreaCrotti/rt-simulate | c29e64e9cdbdca9dd39ec098006d4b94bafba9b3 | f68260d3eb7139b1010c148fae4f6b8778afe448 | refs/heads/master | 2021-01-10T19:22:33.870957 | 2009-09-10T11:53:49 | 2009-09-10T11:53:49 | 221,653 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python
from getopt import getopt, GetoptError
from random import randrange
from sys import argv, exit
from math import ceil
from rt_simulate import taskset_toini
from schedu import Scheduler, Task
MAXOFF = 5
def gen_taskset(density, rate_monotonic, schedulable, harmonic):
""" Generates a task set ... | [
"kerny404@gmail.com"
] | kerny404@gmail.com |
2f6f8c01c299a7d7a86ece4ee68dcb98a798662d | ad530f49a78a6f0ff44ad0e03b7889a5550c4e13 | /data-engineering/import-python/xls-file.py | eff643beccb3d0bf6d5567b4842880281d6c0c8c | [] | no_license | tuyen-nnt/datacamp | 6ff4ff9b3b176ebeac7ad2e64b056e5fb167bd1d | 4275296970932eaf66e3e858e8c6a4bf03e90c3b | refs/heads/master | 2023-06-27T00:39:33.059082 | 2021-08-01T19:10:46 | 2021-08-01T19:10:46 | 368,813,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Import package
import pandas as pd
# Assign url of file: url
url = 'http://s3.amazonaws.com/assets.datacamp.com/course/importing_data_into_r/latitude.xls'
# Read in all sheets of Excel file: xls
dict = pd.read_excel(url, sheet_name=None)
# Print the sheetnames to the shell
print(dict.keys())
# Print the head of ... | [
"tuyenthanh9116@gmail.com"
] | tuyenthanh9116@gmail.com |
c65cbd1d49b58eb5e45338c066389961851291d7 | e54241082c938de78161158f144ec1623b9a5212 | /data/breastCancer/乳腺癌.py | 761a095b29d158fd420f85ba073b268d4f253987 | [] | no_license | HappyCode8/machine_learning | 3f4070056a1af04e94bd7963bc613b342bdf7132 | 9ebde011803de2e55c2ba47cce506a5b8ac067c1 | refs/heads/master | 2022-04-27T15:03:04.628583 | 2018-05-22T07:25:00 | 2018-05-22T07:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | __author__ = 'wyj'
#encoding=utf-8
'''
说明:breast_cancer数据集包含569条乳腺癌记录,属性有30个, 类标1条,无缺失值。
详细见https://goo.gl/U2Uwz2
data:30个属性
feature_names:属性名
DESCR:作者信息等
target:569的类标,与data相对应,0,1区分良性恶性
'''
from sklearn import datasets
cancer = datasets.load_breast_cancer()
print u"字典keys:",cancer.keys()
print u"data属性名:",canc... | [
"32866135+github20131983@users.noreply.github.com"
] | 32866135+github20131983@users.noreply.github.com |
140c36e514ac1e06b410d5e548d03c864a0c432c | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /wicd/rev519-537/wicdMerge/wicd/backend.py | 2cd969a4f2227e3f956a033686a6a1581ac2fd22 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | """ Backend manager for wicd.
Manages and loads the pluggable backends for wicd.
"""
import sys
import os
import wicd.wpath as wpath
from baseinterface import BaseInterface
class BackendManager (object) :
def __init__(self):
""" Initialize the backend manager. """
self.backend_dir = "backends"
... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
aee4e131264b5d27d46d822fe76f03cb01a6462b | 02ca18f81c635f45910e6fcc2eea16e511487bbb | /ex5.py | e5542643e2a350dd1ff036f06d023a4f74bc8f00 | [] | no_license | bakboter/bugfree-spice | 2e69c378dbdb6e45975c933f769097a0b61a8784 | eaf221cc0b17f0e1551dfbc929296c584d11a0bb | refs/heads/master | 2016-09-06T20:00:22.801261 | 2015-12-20T23:56:11 | 2015-12-20T23:56:11 | 37,561,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | name = 'Benoit .G.A.R Prick'
age = 24 #echt waar
height = 184 # centimeter
wieght = 102 # KG
eyes = 'brown'
teeth = 'wit'
hair = "black"
# Metric to iprail conversion basic math's
wieght_pounds = wieght * 2.20462262
heigh_inches = height * 0.393700787
print "let's talk about %s" % name
print "he's %d centimeter t... | [
"007tech@gmail.com"
] | 007tech@gmail.com |
a4481207ded4c63a734ea0ddc032c645e9be175d | 288d641777ed1cfe74608e970898256268021537 | /Labs/Lab1_AWS/s3_download.py | 8eabe055851b8e47a0203da1476a0557b1a17a23 | [] | no_license | rishvita/Big-Data-Systems-and-Intelligence-Analytics | fbd4a4196616048d3ba716eea31022a21c8e7dc8 | a4cfa6e534f354c39f44f34fc214b6455cb5c21a | refs/heads/main | 2023-05-14T05:31:03.513210 | 2021-05-31T05:25:06 | 2021-05-31T05:25:06 | 334,040,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import boto3
# Connect to Boto3
s3 = boto3.resource(
service_name='s3',
region_name='us-east-1')
# Your Bucket goes here
bucket_name = ''
# Your S3 Path goes here
filename = ''
def download_from_s3(filename):
s3.Bucket(bucket_name).download_file(Filename='my_downloaded_file', Key=filename)
print('D... | [
"rishvita@gmail.com"
] | rishvita@gmail.com |
b8abacf6f61942fb56bf780992960ebc9038b128 | 1acab4e741709f1e80963e17bdca6cadb1c17606 | /gu_rest_api/__init__.py | a44c33937dac1b18246e9877a1bdc5260f7da384 | [] | no_license | mplebanski/gu-python-client | 1e6206bbc2317681234864793b95349a3a268222 | 45407db6573916cc7d3d7a8f22fbf74d5adce199 | refs/heads/master | 2020-05-07T19:51:29.653868 | 2019-04-05T16:23:04 | 2019-04-05T16:23:04 | 180,832,449 | 0 | 0 | null | 2019-04-11T16:25:36 | 2019-04-11T16:25:36 | null | UTF-8 | Python | false | false | 1,919 | py | # coding: utf-8
# flake8: noqa
"""
Golem unlimited low level hub API
API description in Markdown. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
__version__ = "1.0.0"
# import apis into sdk package
from gu_rest_ap... | [
"przemyslaw.rekucki@golem.network"
] | przemyslaw.rekucki@golem.network |
2ffbf7d653bd456bbb85e3583121e27cfae48944 | d2439c0a9a7cbcd3d2e74072f7eb7690df6ad7c3 | /Movie Recommender Flask/ModelPickle.py | 9f86834abb8baf4a185d04fb5ddaac984a1058e6 | [] | no_license | CharlesZufferey/MovieRecommender | 42fcf1e596ddd82faea38141735b3338d8650776 | f3180daeb98bf106f5d602a8a6aa3dfb75df6a4e | refs/heads/master | 2022-04-03T14:46:37.545807 | 2020-02-14T13:17:52 | 2020-02-14T13:17:52 | 222,471,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 29 15:10:36 2020
@author: Charles
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 27 09:26:44 2020
@author: Charles
"""
from sqlalchemy import create_engine
import pandas as pd
import pickle
import numpy as np
from sklearn.decomposition import NMF
import pandas as pd... | [
"57898338+CharlesZufferey@users.noreply.github.com"
] | 57898338+CharlesZufferey@users.noreply.github.com |
850d09c0f348c17d5cf4d4f63e9c595609e66659 | 8364e4d23191ee535c163debffafa8418d705843 | /test/test_v1beta1_cron_job_status.py | 0240f917290f60dc3c62a8ed58c7e06548496912 | [
"Apache-2.0"
] | permissive | olitheolix/aiokubernetes | 2bb6499030e2e6e9b7ca0db63c4441293d70a09b | 266718b210dff2a9b2212183261ea89adf89115e | refs/heads/master | 2020-03-21T23:02:30.484410 | 2018-10-20T19:33:01 | 2018-10-22T05:52:42 | 139,162,905 | 28 | 3 | Apache-2.0 | 2018-10-22T05:52:51 | 2018-06-29T15:02:59 | Python | UTF-8 | Python | false | false | 982 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
45bca23a6ef9d24fca6aae8566d120036237ddfb | e754fd34d40b41cd56adc947309832574094e0b6 | /jiajun_experiment/cifar10_experiment/cifar10.py | 0cc9f2f34dea255f2751c7d028bd33e60afa1d25 | [] | no_license | yaliamit/Python | 7d071fe76eba14c78540b5008d616080bca78ed9 | d0e441212a9f86a91723a99f8bfc89d245992a2e | refs/heads/master | 2021-01-11T05:01:07.293444 | 2020-05-28T01:27:20 | 2020-05-28T01:27:20 | 71,490,136 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,688 | py | import lasagne
import numpy as np
import theano.tensor as T
import theano
import os, sys, gzip
from six.moves import urllib
import tarfile
import pickle
import cifar10_input
import lasagne
from lasagne.layers import LocalResponseNormalization2DLayer, DenseLayer, Conv2DLayer, MaxPool2DLayer, InputLayer, DimshuffleLayer,... | [
"shenjiajun90@gmail.com"
] | shenjiajun90@gmail.com |
033abb54b63cad52d09e4b1c36d687b162fcc319 | 0b83010ce37aba20b0d1dc0eb7b29eadc8ebe69e | /learnPythonTheHardWay/vehicle42.py | 1961a78f044a5ebbd58a87c47e214223756355a6 | [] | no_license | Thadishi/PythonPrac | b5994b16815714cd0b02e6886bb595e30338b459 | d5bc57da508696bf07c50aad11295b4e35a0638d | refs/heads/master | 2020-04-02T21:23:04.547656 | 2018-10-26T07:49:51 | 2018-10-26T07:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | from playsound import playsound
from PIL import Image
class Vehicle(object):
pass
class Aircraft(Vehicle):
def __init__(self, type):
self.type=type;
class Landcraft(Vehicle):
def __init__(self, type):
self.type=type;
class Watercraft(Vehicle):
def __init__(self, type):
self.type=type;
class FixedWing(Airc... | [
"kpntha001@myuct.ac.za"
] | kpntha001@myuct.ac.za |
75a5ec813821b7205fb5db2c1ff865688cba1888 | 58eac78008d5efd3f2f176f821d0349875f61e57 | /lib/python3.7/site-packages/django/forms/widgets.py | cc687ea1b4a69ee235a32c7bcc0533238e974292 | [] | no_license | briankehm/django-src | f029939e01bdeb70994d9e70e2db588a5fd61db0 | 6db98a4fbc20f8d57e3568204b39303223c87d74 | refs/heads/master | 2020-06-23T05:44:57.407347 | 2019-07-24T01:45:26 | 2019-07-24T01:45:26 | 198,532,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,761 | py | """
HTML Widget classes
"""
import copy
import datetime
import re
import warnings
from itertools import chain
from django.conf import settings
from django.forms.utils import to_current_timezone
from django.templatetags.static import static
from django.utils import datetime_safe, formats
from django.utils.dates import... | [
"briankehm@outlook.com"
] | briankehm@outlook.com |
165cab5c40f49ff674b4d822d6ce98cf4a91d964 | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/script/get_cpu_mem_info_20191222113543.py | a4ddcbbcc1043433a45c3289e4fc9c9a263e6935 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | #! python3
#coding=utf-8
import sys,os,re
print(sys.path)
sys.path.append('.')
from public import publicfunction as util
PATH = lambda p: os.path.abspath(p)
#获取当前应用包名
package_name = util.get_current_packagename()
# print('本次测试APP为:%s' %(package_name))
#获取men cpu 占用情况
def top():
print('Starting get mem cpu inform... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
15582a600419c68a758e402516de885339df7676 | c4ff2de29b56a66663ed6702d7d66842d482ce35 | /library/__init__.py | b4200bf995e0c9011464cb14c0861c340c96e492 | [] | no_license | Daradris/Spotify2Local | 4ccf9a6e0e5e553aa9f978cf3117d5063add4d0e | ee1984522e3fd402f8f98c8da5692508cb7d0a0c | refs/heads/main | 2023-07-17T09:03:14.426451 | 2021-09-05T14:11:26 | 2021-09-05T14:11:26 | 403,118,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | from .spotify import Spotify
from .music_library import MusicLibrary | [
"32861928+Daradris@users.noreply.github.com"
] | 32861928+Daradris@users.noreply.github.com |
731c60ac11e13721e6a93743ada9af4811db31aa | 3c5c4c4fb296d08e9e984c4a60ae4fa147293e9a | /ceres/util/block_cache.py | 54f514b4d7f2add3e596a58e06bcca9279fe65af | [
"Apache-2.0"
] | permissive | signingup/ceres-combineharvester | a8874ab11145e7ba2223b85483b96dea01054ad0 | aad918a03a4a522e0e2f3bac104d19d693d6bf79 | refs/heads/main | 2023-07-25T04:11:13.765471 | 2021-09-09T14:59:48 | 2021-09-09T14:59:48 | 404,918,382 | 1 | 0 | Apache-2.0 | 2021-09-10T01:22:20 | 2021-09-10T01:22:20 | null | UTF-8 | Python | false | false | 3,732 | py | import logging
from typing import Dict, List, Optional
from ceres.consensus.block_record import BlockRecord
from ceres.consensus.blockchain_interface import BlockchainInterface
from ceres.types.blockchain_format.sized_bytes import bytes32
from ceres.types.blockchain_format.sub_epoch_summary import SubEpochSummary
from... | [
"hulatang_eric@163.com"
] | hulatang_eric@163.com |
398c376ff293cbc87f903cf550d370c7b9e17209 | fcf8591a18d2bb472a9406de5aec680cbdec5c20 | /PythonApplication1/Beladonna.py | 77572f4ab3ee0daadb4b4aec664e76a13d62309c | [] | no_license | yuriykis/simple-python-project | 1e73554f52c92089d634b7a29ad54a107e3a2493 | 85c8c311023ee496c4b7e9f09cabc6229bcc6b2d | refs/heads/master | 2020-07-18T22:22:35.687785 | 2019-09-04T13:18:27 | 2019-09-04T13:18:27 | 206,324,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from tkinter import*
from World import*
from Coords import*
from Organism import*
from random import*
from Plant import*
class Beladonna(Plant):
def __init__(self, world, name, strength, location, color):
return super().__init__(world, name, strength, location, color)
| [
"yurakis9@gmail.com"
] | yurakis9@gmail.com |
dec0cbdaff15cf52f02a752766150453b00671af | 7a0f6da9a84265789ac527ddce727b7a96563db3 | /src/blockdset.py | 3002425fd7a4a076abe6c7765eb489ab6e8a6709 | [] | no_license | dbisk/bmcn | 4855b497dc34d0030df510c0b7914c4ebfad829e | c6a09b6d60ff8408844ef4e3e6ae8f08a0ffad27 | refs/heads/main | 2023-02-01T12:18:46.807644 | 2020-12-12T06:38:34 | 2020-12-12T06:40:00 | 312,090,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | # blockdset.py
# dataset class that premakes the matched blocks for network training
import os.path
import glob
from PIL import Image
import numpy as np
import torch
from torch.utils.data import Dataset
from tqdm import tqdm
import bmnn
class BlockDataset(Dataset):
def __init__(self, root_dir, sigma=40, transform... | [
"16860792+dbisk@users.noreply.github.com"
] | 16860792+dbisk@users.noreply.github.com |
80a022c70c227756798958efbf315cc6f514b166 | 0c6332a4ab51a2b762d74c6a73b321838637fa06 | /booking/migrations/0014_auto_20190529_2325.py | 29f286f9cba935243cf3386aa22c6a22414ede85 | [] | no_license | bopopescu/Haystome | 58d097125506a35b4ded60f52d8ab9ff28060c25 | 9242f96a17fdd63696179e9015f54f7b1e000d9b | refs/heads/master | 2022-11-20T01:33:20.999462 | 2019-12-05T01:31:41 | 2019-12-05T01:31:41 | 280,994,289 | 0 | 0 | null | 2020-07-20T02:33:35 | 2020-07-20T02:33:34 | null | UTF-8 | Python | false | false | 824 | py | # Generated by Django 2.2.1 on 2019-05-29 16:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('booking', '0013_auto_20190529_2210'),
]
operations = [
migrations.AlterModelOptions(
name='book... | [
"tan.rathanah@gmail.com"
] | tan.rathanah@gmail.com |
b0c36703950d6c12151ca5149dff452c3190ec04 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/138/usersdata/201/53117/submittedfiles/volumeTV.py | 8edb280ea7ea90acf2183f107078000ec0dd653e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | -*- coding: utf-8 -*-
V=int(input('Volume inicial:'))
T=int(input('Variação do volume:'))
soma=V
for i in range(1,T+1,1):
n=int(input('Muudança de volume:'))
soma=soma+1
if soma>100:
soma=100
elif soma<0:
soma=0
print(soma) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
686c326af67789bb0fcb274b11057a4ce9800dfa | 6eb69ed988eb4ce236fd2b10b2ca25f995a3e3a1 | /polls_venv/bin/pip2.7 | 12e98d42f7ed77b56525b640b845ff4f96fa531a | [] | no_license | Anamika97/pollsapi | deb6533a0c34781b3e08860d6266ddba13e3959d | 0f3cbd0a41a67713e24a94ed8ef407f7556395fe | refs/heads/master | 2022-12-08T19:47:51.744414 | 2018-08-08T07:41:24 | 2018-08-08T07:41:24 | 143,829,507 | 0 | 0 | null | 2022-12-08T02:20:57 | 2018-08-07T06:26:27 | Python | UTF-8 | Python | false | false | 247 | 7 | #!/home/anamika/pollsapi/polls_venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anamika@voiro.com"
] | anamika@voiro.com |
582c1cd75d4190a9f93d91afabe8cf156fbb5b91 | aeca33ce28263d652a6874935556fd49f34dc724 | /blog/migrations/0001_initial.py | e132d2e5f2fbf1c6204f989da057248d15291af6 | [] | no_license | AustinMH/my-first-blog | 225cedfb58f0be02eb8f119404ee80f9e814db50 | 10efdb0000910176817ba8743d7a42c0b626b7a7 | refs/heads/master | 2020-06-24T04:21:13.195737 | 2017-07-19T21:20:57 | 2017-07-19T21:20:57 | 96,919,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-11 16:20
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"austinmunschhayhurst@gmail.com"
] | austinmunschhayhurst@gmail.com |
1f70459ea85ab60a21e1e53ca018529d17c80c6b | 0a0051fe72ce1de6c84e933a45366cf6ab0c4359 | /src/Client_seq.py | 7a954767ef95f0422ac19efb55b811218046fab9 | [] | no_license | FATESAIKOU/IoTSFC | 27814b8ee8a1413192234dd170797fcaac11e0ba | 169672e7d77c50a844cd55d74c7ec0fcf9c55676 | refs/heads/master | 2022-01-18T12:04:21.222599 | 2019-05-30T08:41:47 | 2019-05-30T08:41:47 | 173,868,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | """
The experiment client.
@author: FATESAIKOU
@date: 03/24/2019
@argv[1]: experiment config path
@argv[2]: service config path
@argv[3]: nnlogs path
@argv[4]: env config path
@agrv[5]: env load path
@argv[6]: loop_num
"""
import sys
from ExperimentBackground import LoadConfig, LoadNNLog, GenerateSequentialRequestSe... | [
"qzsecftbhhhh@gmail.com"
] | qzsecftbhhhh@gmail.com |
6627c1fd5240b1d6685864258f4a23d51dd70dda | dc8152dc858111104cdb8f108c77538de2642f4c | /blog/models.py | 190129d07a0eda294dc01eb2c2457648fa369a52 | [] | no_license | ezgikocak/ilk-blogum | b2e5cd78f1df5672b2538a22b168b4706e92c468 | a1e63036110fac659ce59665bff5df4912a5fea0 | refs/heads/master | 2016-08-11T06:42:27.884598 | 2016-04-09T15:12:55 | 2016-04-09T15:12:55 | 55,842,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
yazar = models.ForeignKey('auth.User')
baslik = models.CharField(max_length=200)
yazi = models.TextField()
yaratilis_tarihi = models.DateTimeField(
default=timezone.now)
yayinlama_tarihi = models.Da... | [
"ezgii_kck@hotmail.com"
] | ezgii_kck@hotmail.com |
c8680ec489bda84c40d7445755b6172273408d8c | 063f201c8e149f3852aeebf71b50042c1d73563b | /class9/ex2/mytest/__init__.py | 66e1173ca2f334e580b35694bd28c938317a2d38 | [] | no_license | jerry-bonner/pynet | 7b2f8043923d5e44a37bf5015dbc1c4b1430a0f5 | 764ec4201c90324f00062f069f49e8536eac4d51 | refs/heads/master | 2021-07-18T16:53:55.781886 | 2017-10-26T18:18:14 | 2017-10-26T18:18:14 | 103,035,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from world import func1
from simple import func2
from whatever import func3
| [
"jerry.bonner@gmail.com"
] | jerry.bonner@gmail.com |
c1c872ea5483dedef457abfc5ff962fffd593aaa | aff84a40c15e603e8f9cb1557554f59e89820ddb | /Human_Player.py | 8c796d168d045d20d05173f710a3b4f2aa5cd0be | [] | no_license | phelipecomph/Jogo-da-velha-IA | e4a93360310b74de20614bdc41d886e199e97d83 | 62e1c34f806b91837c8cb1599938c1f12ecd0041 | refs/heads/main | 2023-04-30T22:54:31.086990 | 2021-05-20T08:46:43 | 2021-05-20T08:46:43 | 368,351,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | class Player():
def __init__(self, id):
self.id = id
self.piece = ['X','O']
print('Você é o {}'.format(self.piece[self.id]))
print('No seu turno digite a linha e a coluna nessa ordem e com um espaço entre eles. Assim:')
print('0 0')
def play(self, board):
return ... | [
"phelipeanm@algartelecom.com.br"
] | phelipeanm@algartelecom.com.br |
22dcce3268a296da9cf97e93600758801ec48a51 | d790ee748ede440d0a999072c17166299777ed9d | /devel/lib/python2.7/dist-packages/mavros/msg/_RadioStatus.py | f67423a6c074036a45f87f9a44051223e73208f5 | [] | no_license | mit-uav/pixhawk | 01fc7059a03ae2dc07d2a56c7503a156869d3a1d | f80fb9df6a85b622feaea7d4ef0a77d8e6561ab0 | refs/heads/master | 2016-08-04T16:35:15.408735 | 2015-09-18T21:02:57 | 2015-09-18T21:02:57 | 42,746,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,345 | py | """autogenerated by genpy from mavros/RadioStatus.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class RadioStatus(genpy.Message):
_md5sum = "04e4a879bb2687140da50a1a821e2190"
_type = "mavros/RadioStatus"
_has_header = True... | [
"sudotong@gmail.com"
] | sudotong@gmail.com |
1e096c10f0ddc73e26ec1a420756126de8e80dd0 | f126f56b23151d19c7953f34f564f93bb1bc659c | /sean-key/output/printing_1.py | c0fbbba1afcf8d1cdc82372ac5ffcec00507b1bd | [] | no_license | HKUST-KnowComp/Social-Explorative-Attention-Networks | a01dab2071a8c41128e8c5a8d754ed1abe0bef30 | 87ccff0221d0c0b8b21986768e6ff082d5e77da5 | refs/heads/master | 2021-12-02T09:18:23.484067 | 2021-11-27T03:23:48 | 2021-11-27T03:23:48 | 187,168,008 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 4,534 | py | import sys
import json
from collections import Counter
import numpy as np
def load_daily_data(sample_dir, day_id):
out_file_user = sample_dir + 'day_user_' + str(day_id) + '.npy'
out_file_label = sample_dir + 'day_label_' + str(day_id) + '.npy'
out_file_creator = sample_dir + 'day_creator_' + str(day_id) + '.npy'
... | [
"noreply@github.com"
] | noreply@github.com |
bf4e6a9b72b8b1cee5d0d58cf0b216e1dba1c243 | cff529b50ab0eddc0df5a5f929170ebb823b6a87 | /Heaps/MaxPriorityQueue/mpq_ds.py | 62d0545d30367a9851e56cd37900b51db0617c0b | [] | no_license | kprashant94/Codes | 4a4ee26a5f127db94f3473459e3843c9245b2846 | ba239475a2d77ca8247e5c9685714372b5311a6c | refs/heads/master | 2021-01-11T07:27:23.480847 | 2017-08-14T11:02:02 | 2017-08-14T11:02:02 | 69,662,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py |
##################################################################
# Title: Max Heaps
# Sub-Title: Max Priority Queue
#
# Description:
# A priority queue is a data structure for maintaining a set S of
# elements, each with an associated value called a key.
# A max-priority queue supports the following operations:
# I... | [
"pkgjnv@gmail.com"
] | pkgjnv@gmail.com |
77aa658e02bb132300c8e65d1c3916d6b8025cbd | 0956319ecf55da86b05237e2a26a0ebae41fe884 | /scrape-circuit-patch-share.py | d8b01153c1d2393e0658f7d14b0b738e04634d4a | [
"LicenseRef-scancode-public-domain"
] | permissive | SpotlightKid/personal-scripts | 65492ea919ec3634daa40eac6803067e390ffa79 | 8e93005e740987adc5a8403ab80e0049998bfbbe | refs/heads/master | 2023-08-20T16:27:25.717092 | 2023-08-19T11:48:42 | 2023-08-19T12:37:26 | 167,387,617 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | #!/usr/bin/env python2
"""Scrape Novation Circuit SysEx patch data from HTML saved from Circuit Patch Share site."""
import argparse
import logging
import os
import re
import sys
from os.path import exists, join
from base64 import b64decode
log = logging.getLogger('scrape-circuit-patch-share')
def safe_name(name):... | [
"chris@chrisarndt.de"
] | chris@chrisarndt.de |
eaf6148c96fe35b04b6f81511e0332938d9bc63a | e0eae8879da31003c4a0880fea537b0fad9f13ff | /src/treatimage/manage.py | 9524c1f413a0c1faa8e26b3d46673bc4fc9f0be3 | [] | no_license | BONITA-KWKim/treat-image | d796a46c27953581d895be5ec84adfce317c251b | 7bc5855e6f252b7b70cad012634d92f4a9ed758e | refs/heads/master | 2022-09-25T13:02:00.404887 | 2020-06-08T08:39:01 | 2020-06-08T08:39:01 | 268,451,973 | 0 | 0 | null | 2020-06-03T06:58:36 | 2020-06-01T07:18:23 | Python | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'treatimage.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"kyungwon9010@hanmail.net"
] | kyungwon9010@hanmail.net |
bd4e50e62ed495af0a4484d328d66b49d939ea86 | 4a7748ff317b15e096e1b8eaa8e2fc6c5c7aa47e | /cqrs_es/command/command.py | 661921a864e7e44627cf8ae29cc184e4a1c13ea7 | [] | no_license | AnandVishnu/cqrs-with-event-sourcing | 43b6dbcb087c827b7f39b59c6e35463315d79776 | 42ec10da64f2943d9e0f32a69d3db78914a059fc | refs/heads/master | 2020-07-31T02:39:03.243994 | 2019-09-23T21:28:20 | 2019-09-23T21:28:20 | 210,455,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | from abc import ABC, abstractmethod
import attr
from cqrs_es.events import *
import uuid
class Command:
def __init__(self, version):
self.expected_version = version
self.name = 'Command'
def __str__(self):
return self.name
def to_event(self):
raise NotImplementedError()
... | [
"anandvishnu666@gmail.com"
] | anandvishnu666@gmail.com |
7ba408440175583a04f5ddfecad72af437ec7a58 | e833fac3f174cae7b4cd16fb299c7997c957d9a6 | /FetchCovidIndia19Data.py | eeea5d1f650488b8f868b8789c9adb0885625623 | [] | no_license | chetandekate1/CovidIndiaData | 87a1b23b6b0b1667b269daa39ee702a90c72ed8b | b68d232ab19f85afb5cde39cb9fd15138e17df7c | refs/heads/master | 2022-12-14T23:19:08.230169 | 2020-09-07T19:11:15 | 2020-09-07T19:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | import pandas as pd
from fetchCovidIndiadata import Covid19IndiaData as Covid19
import os
class CovidIndiaData( Covid19 ):
def __init__(self):
Covid19.__init__( self )
def init_display(self):
pd.set_option( 'display.max_rows', None )
pd.set_option( 'display.max_columns', N... | [
"noreply@github.com"
] | noreply@github.com |
b52d48c974cd6f49debadd0ccd7b5b2e6f8a3a96 | 1ac42b2d6bdc7b633220bf8871ff5fee3c542cb9 | /Login.pyw | 83e216eb0b538314b49132f6d17f4df16b865a7d | [] | no_license | LucasRangelSSouza/Gestor_de_compras | 42138bd050696e26ab171413c48e28747a479529 | 17c57b4b966f772f5b0905fe915cfa9a9b5e8273 | refs/heads/main | 2022-12-19T21:35:58.322080 | 2020-10-17T17:46:17 | 2020-10-17T17:46:17 | 304,935,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | pyw | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Login.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from Licitacoes import Ui_Dialog as Ui_PDV
class Ui_TelaLogin(object):
def Login... | [
"lucas.rangel@outlook.com"
] | lucas.rangel@outlook.com |
6c273ee43289136c63fef4d30a3e486b766456d9 | 7e32902fc5ea2762e6a0eabbcbfae2263537624c | /beautifulsoup.py | dccb3438119f538b7c69dbc3aabef5abba1ee6c6 | [] | no_license | akhileshgowda7/Python-specialization-course-assignments | 1de331477eab6d3c0309e52105ef5d5d1cf01ce0 | ef490603de9f3446edcc2dbd3dd5d5773e3fa2c6 | refs/heads/master | 2023-01-03T09:25:16.097247 | 2020-10-29T18:23:37 | 2020-10-29T18:23:37 | 269,140,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup
import ssl
url = input('Enter - ')
html = urllib.request.urlopen(url).read()
soup = BeautifulSoup(html)
tag = soup("span")
count=0
sum=0
for i in tag:
x=int(i.text)
count+=1
sum = sum + x
print (count)
print (sum)
| [
"noreply@github.com"
] | noreply@github.com |
7eae3ef8067a3cc87fcd6653a95219bccc38b901 | 5686554cc6ab64a31b66347dbebaa1d9035a8809 | /frontend/mobile/migrations/0001_initial.py | d0609ded60b0a9d56f5218934e3d5458c944fcae | [] | no_license | tuanh610/WebScraper | 966a5a5a3fe077123a8ded68724c11b98b3929aa | fe139b576672ca45dc9fe769bfcb2fe454093a9a | refs/heads/master | 2020-11-25T15:20:44.035014 | 2020-01-16T11:53:24 | 2020-01-16T11:53:24 | 228,737,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # Generated by Django 3.0.2 on 2020-01-11 03:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Query',
fields=[
('id', models.AutoField(au... | [
"58834452+tuanh610@users.noreply.github.com"
] | 58834452+tuanh610@users.noreply.github.com |
e3467e56dfe1d363533eb609f952782fbea3dedb | 76c8c64d0b224abb42e060f68f77cb368252c239 | /Aprendizaje-automatico/unsupervised-learning/dbscan.py | 1f75e749c9eb0d290d774a61b1fae9bf7ef18c2e | [] | no_license | DiegoMont/ITC | 4bd96440681d179f5a5377427bc21ff04adb85ab | 8d7637960b62e612912ad642ec9d0c409ebafec4 | refs/heads/master | 2023-01-23T14:45:15.280846 | 2022-10-10T03:02:43 | 2022-10-10T03:02:43 | 146,383,929 | 0 | 1 | null | 2023-01-08T18:12:36 | 2018-08-28T02:58:57 | HTML | UTF-8 | Python | false | false | 5,589 | py | from typing import Counter
from sklearn.cluster import DBSCAN
from sklearn.decomposition import PCA
from numpy import average
import pandas as pd
import matplotlib.pyplot as plt
import itertools
import numpy as np
MAY_DATASET_FILENAME = "cepea-mayo.csv"
JULY_DATASET_FILENAME = "cepea-julio.csv"
COLUMN_NAMES = ["Sexo"... | [
"31603020+DiegoMont@users.noreply.github.com"
] | 31603020+DiegoMont@users.noreply.github.com |
fde44d5d006e5ec5248ff47a658973924c676d68 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L36/36-35_MD_NVT_rerun/set_1ns_equi_1.py | 0ea1c77d5e2d79791410687f4e64ca8b29dd7c03 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L36/MD_NVT_rerun/ti_one-step/36_35/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
4ea429fb0979407907d6336d069e7fbbe0fd2e87 | 8cde806e824208949fd9e34806445d05114860cc | /detools/compression/heatshrink.py | c7f535d58b3d9ff41dbd3c60cd647beae73eb8f7 | [
"BSD-2-Clause",
"MIT"
] | permissive | tips367/detools | 80003facc744147c39f339cfe20b2d3eb8dccd70 | 21092202cdefc3358f450801be0e1855ea06a18d | refs/heads/master | 2022-12-29T14:33:08.882316 | 2020-10-16T15:20:08 | 2020-10-16T15:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | """Heatshrink wrapper.
"""
import bitstruct
from heatshrink2.core import Writer
from heatshrink2.core import Reader
from heatshrink2.core import Encoder
def pack_header(window_sz2, lookahead_sz2):
return bitstruct.pack('u4u4', window_sz2 - 4, lookahead_sz2 - 3)
def unpack_header(data):
window_sz2, lookah... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
f2cf8ef3b591143a7ae5a54fc0340c3e885061bd | 59abb588d6172f6266f3deb305025f2fbf2b4bc8 | /ENV/lib/python2.7/site-packages/sentlex/stopwords.py | 5f9d978939b81cf55d768e502b30e85477ba0a04 | [] | no_license | aczapata/twitter_elections_deploy | 4d0a4186f17ca138e4ebe0ccffba1a64f5bdbece | 6902b0ad3c010952c3ca40ad8a0a44a2b8f34351 | refs/heads/master | 2016-09-13T05:49:56.908549 | 2016-05-31T06:06:05 | 2016-05-31T06:06:05 | 59,134,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | '''
Stopwords class - part of sentlex
This class responds to True/False queries about whether a word is a stop word, based on a source file.
The default stop words file is derived from Cornell Univ. SMART information system, and van Rijsbergen:
http://nlp.uned.es/~ircourse/examples/stoplist.html
http://www.l... | [
"andreaczapata@gmail.com"
] | andreaczapata@gmail.com |
4e7f60a0275bdcfe3703e3ac63914ff611e793df | 1c9abb4b27517d99d579a4284035f39e092033e5 | /0x11-python-network_1/2-post_email.py | d0dc27e1da547b11f12ea8805e2802503a9fc511 | [] | no_license | 95ktsmith/holbertonschool-higher_level_programming | 15160e6e76f7f6f7e4ddfd2266cf9bf60fddbcb5 | c845402a9b4c7ad9d1c1b1a983f9fb7a4727209d | refs/heads/master | 2022-12-19T05:56:00.288537 | 2020-09-24T23:32:20 | 2020-09-24T23:32:20 | 259,328,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #!/usr/bin/python3
""" POST an email """
if __name__ == "__main__":
from urllib import request
from urllib import parse
from sys import argv
data = parse.urlencode({'email': argv[2]}).encode('ascii')
req = request.Request(argv[1], data)
with request.urlopen(req) as response:
print(respo... | [
"95ktsmith@gmail.com"
] | 95ktsmith@gmail.com |
30b541f28560789857cdbefb5caf10b27c596f26 | 31bcc1c01a83c954cb69a5f76b9787a2403bdc34 | /src/dataset.py | ca0197766ef7b3b231a4307fe8c8b4ad55b789be | [
"MIT"
] | permissive | qianrenjian/NewsRecommendation-2 | 4c48710145766ba30b0566989b0d0e7398e044ae | f6879d0a3a5e3e45db16b16e9d88cc442bfb9f20 | refs/heads/master | 2022-12-01T19:57:37.496276 | 2020-08-06T01:54:48 | 2020-08-06T01:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,438 | py | from torch.utils.data import Dataset
import os
import pandas as pd
from ast import literal_eval
import torch
class MyDataset(Dataset):
def __init__(self, args, type):
super(MyDataset, self).__init__()
self.args = args
self.type = type
self.empty_news = {
'category': 0,
... | [
"yflyl613@mail.ustc.edu.cn"
] | yflyl613@mail.ustc.edu.cn |
656009c0aefccd5f4f4c7d86de1d87d72c05cd93 | 9bb4632e50ea846b898d580430590b850e7dd290 | /trees-/construct_tree_from_inorder_preordrer.py | d5afa4ba50e51f21f4f937d6d7ae4528a3119aa4 | [] | no_license | vikramaditya-battina/Mission_RnD_PythonCourse | 89b1cd6da52b3fe7a890efb18f73023b1a101ff2 | b9ae4c8b6d50fe3be5429af2ffd11f7bab56d459 | refs/heads/master | 2020-09-09T23:50:57.627459 | 2016-09-11T17:22:07 | 2016-09-11T17:22:07 | 67,943,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from treeutils import *
#construction of the tree from preorder and inorder traversal
#done two methods using 1...slicing the given pre and in order list
#2...passing indexs also to the functions that index may be boundary index
def constructtree(inorder,preorder): #using slicing of the
if inorder:
root=T... | [
"vikramaditya.battina@gmail.com"
] | vikramaditya.battina@gmail.com |
5226b1f41f04ac77a049d211af76f2e57c43105c | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/dtypes/test_concat.py | 02daa185b1cdb687219a6be79e0400731acdfc72 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,435 | py | import pytest
import pandas.core.dtypes.concat as _concat
from pandas import DatetimeIndex, Period, PeriodIndex, Series, TimedeltaIndex
@pytest.mark.parametrize(
"to_concat, expected",
[
# int/float/str
([["a"], [1, 2]], ["i", "object"]),
([[3, 4], [1, 2]], ["i"]),
([[3, 4], ... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
fa1b8dd2c5c5d52eb24c24a8d293b35c86edfe04 | 13c111d2c405fef3b074fd7f7ed7cd06cc05084a | /graphql_start/migrations/0003_auto_20181101_1259.py | 516bc9625590708dfdd411fe9a0b44ec7caf73ea | [] | no_license | Dimas4/GraphQL-Django | 7da5f73cb0427f4e7bbf5a48e1c4bd45fc35cfb6 | 3fb6919cd2c30848e08e251279e0445dab6f8247 | refs/heads/master | 2020-04-04T09:48:38.987618 | 2018-11-09T09:33:15 | 2018-11-09T09:33:15 | 155,831,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # Generated by Django 2.1.2 on 2018-11-01 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('graphql_start', '0002_auto_20181101_1259'),
]
operations = [
migrations.Ad... | [
"ivanshatukho@yandex.ru"
] | ivanshatukho@yandex.ru |
81d9bccb85c20f5d24b03a02a767cd52d7b8fa38 | 3f72339e9f81d6febb566d1b217cd5fba1bffec2 | /computer-vision/multithread/thread_demo.py | 8cee8d7f4e534917e514991465d635963c304534 | [
"MIT"
] | permissive | wkrlee/FYP | 91ec9a6c47aa77b8efadad708a9fe5490dfc486a | dc483781620c93b73c47b215e9f0616c36b186f1 | refs/heads/main | 2023-03-29T10:02:07.482208 | 2021-04-03T09:18:18 | 2021-04-03T09:18:18 | 344,067,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | import argparse
import os
import cv2
from CountsPerSec import CountsPerSec
from VideoGet import VideoGet
from VideoShow import VideoShow
def putIterationsPerSec(frame, iterations_per_sec):
"""
Add iterations per second text to lower-left corner of a frame.
"""
cv2.putText(frame, "{:.0f} iterations/sec... | [
"noreply@github.com"
] | noreply@github.com |
4a48214e141c1196f9adee9a2dfa231fed0ac1f1 | 472e9b30ff4fa46a7c6decf58b03401e4586a837 | /changeComputerLoop.py | 0c070894312aa742d792d43ac91e4e6b73320742 | [] | no_license | CDC24/unit3 | 5adfb2aac04863c5cf7d87267d6c6215a3cf96a1 | 4efeaeac535aab5f43e50217f47f0dc84f596812 | refs/heads/master | 2021-04-30T03:08:48.031386 | 2018-03-05T13:28:05 | 2018-03-05T13:28:05 | 121,511,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | #Caleb Callaway
#3/2/18
#computerLoop.py- converts money amount to coins
| [
"noreply@github.com"
] | noreply@github.com |
660777ad459353040d03f7c8fd222d48d387a0ef | 3e0ada8eb938a7ea18571bcd59377eef1629906d | /scripts/mcwebcheck.py | aa0597734b76ecf05c0c11e518038df85fd318f5 | [] | no_license | sulama/azure-minecraft | af99515717f37ba0695703568ed3a5e8288b2c66 | 61e6340cff004211cd1d5dba88b98c47f9fe48e5 | refs/heads/main | 2022-11-08T12:31:27.167281 | 2020-04-28T01:02:00 | 2020-04-28T01:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python3
'''mcwebcheck.py
- script to check the Java server version of Minecraft
- designed to be run regularly to verify Minecraft server download version
To do: Add exception handling
'''
import os
import requests
def main():
# constants
SERVER_URL = "https://minecraft.net/en... | [
"guybo@outlook.com"
] | guybo@outlook.com |
48bd9280efa0de89650a0336d76d194c09989518 | dd949f215d968f2ee69bf85571fd63e4f085a869 | /systems/css-2011-teams/blue/subarchitectures/planner.sa/src/base_planners/downward/plan.py | b98bbe87d41a3acc5beeb19f1f35a0306dfed8db | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | #! /usr/bin/env python2.5
import os
import subprocess
import sys
import shutil
path = os.path.abspath(os.path.dirname(__file__)) # where this file resides
def main():
def run(*args, **kwargs):
input = kwargs.pop("input", None)
output = kwargs.pop("output", None)
assert not kwargs
redirections = {}
if inpu... | [
"marc@hanheide.net"
] | marc@hanheide.net |
87d539feff1c1a1de2c0a589f30bbf9f8563d755 | 055581f9d6c81eda2f73ea05b90b7a2256da1219 | /parts/zodiac/pyramid/tests/pkgs/forbiddenapp/__init__.py | 62e9ac8ce0495f112404a61b8044172505e83eb9 | [] | no_license | Tosti770/zodiac | 488a91c3e872a62d09a3ebb22a951dadcbd1c2df | af0380e20eb90699a84e3b7c6cb2085a1fb81667 | refs/heads/master | 2020-04-13T06:54:26.333228 | 2014-03-03T20:10:11 | 2014-03-03T20:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | /home/ruben/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/pkgs/forbiddenapp/__init__.py | [
"ruben_tc@hotmail.es"
] | ruben_tc@hotmail.es |
b6eda6d9af89cc588c92adedcf03af637e7d7da5 | af0bd5563906227ca506a3f0e66d024295f05850 | /Algorithmic Thinking Part 1/project1.py | 6015c727cf98379a332dadea17491f9fe1fb9846 | [
"Apache-2.0"
] | permissive | rghv16/FundamentalsofComputingSpecialization | 590a35ec26167c415ce00694d4139718820ebd6b | 5ec029f39ee465f5ef2d1588cf160882babc34da | refs/heads/master | 2022-02-26T02:57:33.689338 | 2019-10-26T11:09:44 | 2019-10-26T11:09:44 | 208,957,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | '''
Algorithmn part 1
Project 1
Author Raghav Atreya
Email raghavatreya16@gmail.com
https://py3.codeskulptor.org/#user303_16xSIjUxqZ_5.py
'''
import alg_module1_graphs
EX_GRAPH0 = {0: set([1, 2]),
1: set(),
2: set()
}
EX_GRAPH1 = {0 : set([1, 4, 5]),
1 : set([2, 6... | [
"pythonraghav@gmail.com"
] | pythonraghav@gmail.com |
c65f1abb5a53c4cd127b36179a9397dbb9797578 | 93f200a88e6084be9dad4422195f5e7af6eecb68 | /src/pymor/analyticalproblems/text.py | d1bb4d4fe6c8f6bfa6f6d941c81d83651fca99de | [
"BSD-2-Clause"
] | permissive | mahgadalla/pymor | dfc163b396c15dec05ea519ee0e9b3277ba5c84f | ee2806b4c93748e716294c42454d611415da7b5e | refs/heads/master | 2020-03-21T13:08:00.819939 | 2018-06-15T12:19:00 | 2018-06-18T08:08:07 | 138,589,646 | 1 | 0 | null | 2018-06-25T12:05:39 | 2018-06-25T12:05:39 | null | UTF-8 | Python | false | false | 3,275 | py | # -*- coding: utf-8 -*-
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2017 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from pymor.analyticalproblems.elliptic import StationaryProblem
from pymor... | [
"stephanrave@uni-muenster.de"
] | stephanrave@uni-muenster.de |
26bfbb24032cf354fd60984032b13348260b30c3 | 5ef3ebd9f9a44503e6ecc6d55013237572ee8e30 | /cann_n_mach.py | 58240cc8a20183da66aefa78c365a016c70492be | [] | no_license | oneamitj/missionaries_and_cannibals-py | be0f6ebc4520200720d169e4bdbdcb67531551de | 170a8787ee527e6965577d8e2caf283d1dd40bd2 | refs/heads/master | 2021-05-29T05:04:24.255881 | 2015-01-07T06:23:28 | 2015-01-07T06:23:28 | 28,901,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,226 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import Queue
'''
@Author Amit Joshi
'''
class bcolors:
VIOLET = '\033[95m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
BLACK = '\033[0m'
class objects:
def __init__(self, start, end):
self.start = star... | [
"wannamit@gmail.com"
] | wannamit@gmail.com |
780579126036c02b5bf21ecfacde0b18f22d4450 | 63aa21965dbe34e24943a2bcc98a7ef810587b37 | /PatentDetail/items.py | 153e778be875afa7ebf047582c9ab24e7fabd54b | [] | no_license | sky94520/PatentDetail | 23859f86ae7f8e5b69271cd54cd6da83cd5ecbe6 | cf12fb07f824c6a2aab9901c70a3f17fa7e62072 | refs/heads/master | 2022-12-10T06:26:09.518049 | 2020-04-09T02:54:56 | 2020-04-09T02:54:56 | 238,147,031 | 1 | 0 | null | 2022-12-08T03:33:19 | 2020-02-04T07:22:16 | Python | UTF-8 | Python | false | false | 1,832 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class PatentItem(scrapy.Item):
# TODO:数据库集合名称 发明授权专利
collection = 'invention_patent'
mapping = {
'申请号': 'application_number', '申请日... | [
"541052067@qq.com"
] | 541052067@qq.com |
a0b1a53bf37229ba5ceaf948561f91aeed0a5774 | abf66e6b662ca09df0cdafd48db1a6f70a6c7f8a | /polls/migrations/0001_initial.py | 4f89046ca033f5091dfcd5a3acaec65c79727e9d | [] | no_license | aditisneh/Django-Polls | 3f3c379af1bb948fe2a5a8ca09bd161d87752db0 | df69154d1457deab354d7770528d2569c6e26aa5 | refs/heads/master | 2022-12-13T11:42:58.419532 | 2020-09-09T17:06:39 | 2020-09-09T17:06:39 | 293,025,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # Generated by Django 2.2.16 on 2020-09-05 06:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"aditisneh.272gmail.com"
] | aditisneh.272gmail.com |
21933b8e501280f37f9c4e23f6de798ebad071ec | 869d3c0e85009e3f132f9633f6e70a67094f395d | /auto/middlewares.py | cbde4f5d4d88f718e38bbdaa662c86e794b7c7b4 | [] | no_license | skirmantasjanuskas/auto_scrapy | 0e6b93e7a487a4906a5723fcfdf837cbae5ea36b | d129bb44401d717ce9edf0e41b11241f6bbde03f | refs/heads/master | 2021-06-17T04:53:41.751880 | 2017-05-20T12:40:57 | 2017-05-20T12:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class AutoSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy acts... | [
"skirmantas.januskas@gmail.com"
] | skirmantas.januskas@gmail.com |
986576fea2470a7c79037f9f2e1ec6d1f08251f2 | b83a23fa50e8f1ca6ce1fb3b550e6ceb1b513261 | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddCasterComponentRequest.py | c939357ca0b2390c92cbbcb114802eddb670e807 | [
"Apache-2.0"
] | permissive | sunfuze/aliyun-openapi-python-sdk | c9f8143cf1ceac1bdd09f36d5f4493a510f48a0b | 09910c57081f207da294d6d2fe981f7f913bc501 | refs/heads/master | 2021-03-24T12:01:12.107284 | 2018-01-18T06:32:06 | 2018-01-18T06:32:06 | 118,209,677 | 1 | 0 | null | 2018-01-20T04:41:58 | 2018-01-20T04:41:58 | null | UTF-8 | Python | false | false | 2,951 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
cbfb28a0ff2a7dc02cda434cb8e5612436ef8b3a | 1f37c8e19f76afd8a619c6c9d2ceba3f98a6f049 | /python/test_tools/ec2_stubber.py | 9b114c25491337add5799de1d6805cf3f21cdf5f | [
"Apache-2.0",
"MIT"
] | permissive | YannMjl/aws-doc-sdk-examples | 3cf7f32f986cce6fcd957c492c2cde9e156b7337 | 555b6c06e31e4dd1337d04ecdbe82ca3528c8a5f | refs/heads/master | 2023-02-24T10:51:22.302987 | 2023-02-08T19:10:18 | 2023-02-08T19:10:18 | 233,693,693 | 0 | 1 | Apache-2.0 | 2020-01-13T21:06:54 | 2020-01-13T21:06:53 | null | UTF-8 | Python | false | false | 12,582 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Stub functions that are used by the Amazon Elastic Compute Cloud (Amazon EC2)
unit tests.
When tests are run against an actual AWS account, the stubber class does not
set up stubs and passes all calls throug... | [
"larencra@amazon.com"
] | larencra@amazon.com |
fc3eba5655c37242694d5edf322b69901acdf26a | 8d26c4dbd2c97cef48b0d1be4b6ee50519039abb | /extraction.py | 3734f2ba323670cb3024db3c927e55bbd2689e9c | [] | no_license | WeiminXiong/Classifier-of-45-kinds-cats | 63baedca8fafd409e8111d823960a2a3cb6eb7f8 | 5889c793f00a5dec576f1fcd7c4e5a1db639a149 | refs/heads/main | 2023-06-26T02:40:32.765491 | 2021-06-09T03:47:00 | 2021-06-09T03:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | import os
import time
import json
import torch
import torchvision
from PIL import Image
import matplotlib.pyplot as plt
from torchvision import transforms
from network_files import FasterRCNN, FastRCNNPredictor, AnchorsGenerator
from backbone import resnet50_fpn_backbone
from draw_box_utils import draw_bo... | [
"noreply@github.com"
] | noreply@github.com |
1bb43287055a38322aa45b840646ff015c025e09 | 9b2aadb2045fa304c24314367fbfd77ab21611e0 | /cardinal/handlers/vm/gce.py | 506cd3e1186472091b8004098082b1dc62a75bf3 | [
"MIT"
] | permissive | multiparty/cardinal | c4c9390c06b6ccbadf83dec3728ca052abbb9e71 | 912bae64e1317114faaf89456a978ee172fca7a0 | refs/heads/main | 2023-07-13T06:36:48.833787 | 2021-08-31T15:20:38 | 2021-08-31T15:20:38 | 341,619,346 | 0 | 0 | MIT | 2021-08-31T15:00:36 | 2021-02-23T16:35:51 | Python | UTF-8 | Python | false | false | 210 | py | from cardinal.handlers.vm import VmHandler
class GceHandler(VmHandler):
def __init__(self, app):
super(GceHandler, self).__init__(app)
def fetch_available_ip_address(self):
return ""
| [
"bengetch@gmail.com"
] | bengetch@gmail.com |
cbb6d9426ac5dddb4ae24f566fff3cc857d9374a | 61f48247d2205e90e0733aef9818e83bc2addcb7 | /KerasVGG/KerasVGG3.py | a13168439dd0249b167aa08d1a86128159532f1f | [] | no_license | kimiaoi/Bat_Yubinaga | 30a2a94def4aaa2bdcd4c10716ea829c8c217198 | b667b57e65da172b1406d038413ed6adf539e7e3 | refs/heads/master | 2020-03-27T04:28:33.565058 | 2018-08-24T06:45:33 | 2018-08-24T06:45:33 | 145,943,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import numpy as np
from keras.layers.core import Dense, Dropout, Flatten, Activation
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers import Adam
from keras.callbacks import ModelCheckp... | [
"vincent@kiki-iMac-Mid2011.local"
] | vincent@kiki-iMac-Mid2011.local |
ebfaf75b30a2d6567ad81f68cbcb39f771d2292b | cb89342e264ceef48912f519aaf2607e0dbabf29 | /src/scripts/generate_masks.py | 733a25b737f31675d4840d210698abe9153fb7b9 | [] | no_license | filipovskid/image-inpainting | fe88060d5fc8f38de205a40e732d749fcf37fef4 | 42cf7eb5fab436c73ac791a3cbc97a65be6d1a1f | refs/heads/master | 2023-08-20T00:02:18.905585 | 2021-09-17T08:27:01 | 2021-09-17T08:27:01 | 238,697,567 | 0 | 0 | null | 2021-02-20T10:01:19 | 2020-02-06T13:40:14 | Jupyter Notebook | UTF-8 | Python | false | false | 2,009 | py | from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from ..mask_generator import MaskGenerator
from PIL import Image
import numpy as np
import pathlib
def parse_args():
parser = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
parser.add_argument('-o', '--output-path', dest='output... | [
"darkofilipovski0@gmail.com"
] | darkofilipovski0@gmail.com |
50d9cff387db161bf67b82c28973a6503f199b43 | 99594b3dfe1d1c04284af04d7dccb3bbfd19e53a | /data/_patch_aug_visualisation.py | efe69cba2fa19a3e7b05c6e7fde4b86ef726d779 | [
"MIT"
] | permissive | vanditsharma02/CPCV2-PyTorch | 4516ca08675da3abfdae709c8e94ea5d61cb55b2 | d90cf47df25152182f8d242e6a027f3ec360d2b7 | refs/heads/master | 2023-05-26T03:48:44.120761 | 2023-05-15T10:25:01 | 2023-05-15T10:25:01 | 635,957,567 | 0 | 0 | MIT | 2023-05-12T19:43:55 | 2023-05-03T20:27:56 | Python | UTF-8 | Python | false | false | 2,819 | py | import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import torch
import torchvision.transforms as transforms
import PIL.Image as Image
import PIL.ImageOps as PIO
import PIL.ImageEnhance as PIE
import random
import time
from image_preprocessing import Patchify... | [
"r.schwarz2015@gmail.com"
] | r.schwarz2015@gmail.com |
33bc8e665c39d965552bdabaa5afd9d26ffb2492 | d2ef7f165b420f8af0e373d930af091bff7a65fb | /venv/Scripts/pip3.7-script.py | af0e52f26ebdd5b486992455626d5944c76881eb | [] | no_license | sun-lm/oop | 7b671940fdbebfb3e5844542ae764db813e38b93 | ea4d9f20dc1d34842e12b74138048c7f2973f6b2 | refs/heads/master | 2021-08-07T01:34:03.122764 | 2019-02-22T08:38:47 | 2019-02-22T08:38:47 | 162,655,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!F:\Python36\workspace\oop\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"sun-lm@neusoft.com"
] | sun-lm@neusoft.com |
35cd04bb3f177356416e72553a8d8a0023d2559f | d2d767abb87242f03f0bacc11e4a1c24d7b83247 | /venv/bin/easy_install-3.7 | a001cacfb69372f752c9359c3578e70b904c1aa2 | [] | no_license | notandrewsimpson/unit_1_assignment | 29390c14c907e4276603f49280929598693792df | e01b908d90bdc5687be33db1488d1f35e1872c8a | refs/heads/master | 2020-08-10T05:07:35.682624 | 2019-10-10T19:09:52 | 2019-10-10T19:09:52 | 214,264,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | 7 | #!/Users/andrewsimpson1010/PycharmProjects/unit_1_assignment/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(... | [
"andrew.simpson@greenwoodcollege.com"
] | andrew.simpson@greenwoodcollege.com |
b02d8859dd67eda2b94b836759e74f0f6b0f2722 | 06affab81573cdcbb8286ff54836487961532d0e | /eeg_project/app/migrations/0008_auto_20180918_1138.py | 24c3228d2b7823db3f70c48d6cb565228a337399 | [] | no_license | olavblj/thesis-api | b8501eac0b88f68831062ab13d63f0c7d576e45e | af385b201dcd7ecf0077525cd866592629058877 | refs/heads/master | 2020-03-26T11:58:29.511866 | 2018-12-23T13:24:32 | 2018-12-23T13:24:32 | 144,868,919 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.1 on 2018-09-18 11:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0007_auto_20180918_1135'),
]
operations = [
migrations.AlterField(
model_name='label',
name='value',
... | [
"olavlj@me.com"
] | olavlj@me.com |
3649a19187e99312bb72a3053bf3a71b48a7d331 | 3b4f2fa89914a5c39e38374ca3db63ebf61886fb | /new.py | 8917eef7ae165ec80c1de5a491dd33007d9fef04 | [
"MIT"
] | permissive | zhouliang666/py18 | d50ce152f2a01f5e33f8d99429fc570627eba01c | 33ccbaf5cd8705bc28858ee0bee37bd73a72b8ff | refs/heads/master | 2020-03-29T21:55:47.798523 | 2018-09-26T10:51:46 | 2018-09-26T10:51:46 | 150,394,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | new1 = 10
new2 = 20
new3 = 30
| [
"1249971562@qq.com"
] | 1249971562@qq.com |
889ce45eca60c76bf425faf276b51f5453a7c957 | f73944d48606cb4e19a72309aac7d570d0f0384e | /oneflow/python/test/modules/test_image_normalize.py | d164fbf1cc37a828679bc82cb662e22ff0a2548a | [
"Apache-2.0"
] | permissive | wxyhv/oneflow | 2177592f41b76099f5ee526aedfaf353c2d0b094 | 2a597c2cd4411b421242614f06cec3f1f1ac337a | refs/heads/master | 2023-06-26T01:26:30.829487 | 2021-07-15T13:28:39 | 2021-07-15T13:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
4aeda119191e5cde0b24d2341ee0e5ead025f370 | 85b593aa6c28e88354b48833940b85149f576d74 | /SaC.py | b9f12fc878f9910f0a10362ce036e30d71b9d2f8 | [] | no_license | Anabadier/MineHantee | f08bd6f440e3228ff19129406c7159740cb455b2 | d6d2f00b6f99aa7352872d1a6b5efde9e9b27c19 | refs/heads/master | 2020-08-18T06:23:12.371527 | 2020-03-04T14:58:37 | 2020-03-04T14:58:37 | 215,757,633 | 0 | 1 | null | 2019-12-09T16:36:49 | 2019-10-17T09:45:37 | Python | UTF-8 | Python | false | false | 3,904 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 14:28:20 2019
@author: eliot
"""
import os
from tkinter import filedialog as tkfd
class Save_and_Charge(object):
def __init__(self, _scalers = None, _ref_launcher = None):
self.scalers = _scalers
self.ref_launcher = _ref_launcher
def set... | [
"56084809+LittleCoinCoin@users.noreply.github.com"
] | 56084809+LittleCoinCoin@users.noreply.github.com |
289828103541b131df57d2a0cf1bdd251cb1e129 | df83484a274475528930c44c2a623a5ec6a049f3 | /niconvert_gtk.py | 5a46de9d360fb9af1b2ce8ad71c15ced737e07d1 | [] | no_license | jacobke/niconvert | 398cfd9a0eaaa194245fd20b7831396f2a1e3333 | ab7025e207ce918070a2237da886e85bbdd96234 | refs/heads/master | 2021-01-18T09:56:40.473816 | 2012-10-06T15:35:15 | 2012-10-06T15:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import webbrowser
from gi.repository import Gtk
from niconvert import create_website
__folder__ = os.path.dirname(os.path.abspath(__file__))
class NiconvertGtk:
def __init__(self):
ui_file_path = os.path.join(__folder__, 'niconvert_gtk.ui')
... | [
"muzuiget@gmail.com"
] | muzuiget@gmail.com |
8af674762170235860dd817c8fdc3b8e8bc26a8e | f0d673ad5432e1b073d6cddcf05ec7d48d9d9c10 | /6.5_kruskal.py | 061239e6d0613c1d91538e4f96dd1a438fd2c4cf | [] | no_license | kpsc/DataStructure | a99f565aae67d36f306d743323c4e6d01c6cccc4 | a6bc413963400a91779ff4dbf928112a99ab8f2d | refs/heads/master | 2020-11-25T18:37:08.779737 | 2020-05-16T07:51:13 | 2020-05-16T07:51:13 | 228,795,875 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # Minimum Cost Spanning Tree 最小生成树
# 一个连通图的生成树是一个极小的连通子图,它含有图中全部的奇点,但只有足以构成一棵树的 n-1 条边
# kruskal: 通过对边进行排序,每次选择权值最小的边的两个节点加入到最小生成树中,且不能构成环,直到所有节点加入到最小生成树中
import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
graph = [('v0', 'v1', 10), ('v0', 'v5', 11),
('v1', 'v2', 18), ('v1', 'v6', 1... | [
"shuangyangsc@163.com"
] | shuangyangsc@163.com |
b548121d1bdde5836f7a4a846c7841648d2592bc | e29f8c29a993156b7de7b0451d63ad8cca51c9a6 | /zajecia10/czas_godzina1.py | cd07774d76e7b37bd5bcebda52c33b00869cbffd | [] | no_license | remekwilk/python_basic | d898ad26aba809eb14ebed9d94bd93db69154ffa | af145a9711dabca232dc5f5be8fe4c407a5fda54 | refs/heads/master | 2020-05-03T14:42:19.523070 | 2020-04-11T20:42:03 | 2020-04-11T20:42:03 | 176,701,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from datetime import time
samo_poludnie = time(12)
print(samo_poludnie)
kwadrans_po_osmej = time(8, 15)
print(kwadrans_po_osmej)
usain_bolt_na_100m = time(0, 0, 9, 580000) # ostatni argument jest w mikrosekundach
usain_bolt_na_100m = time(second=9, microsecond=580000) # ostatni argument jest w mikrosekundach
pr... | [
"remekwilk@gmail.com"
] | remekwilk@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.