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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24d47ac4ca8378babe954e43126c1e0381473304 | b19bc472fcbd636a3c169144ec358fe8f4c1f206 | /encapsulation/calculatorStatic.py | 4f1e37a3cd151a2a4fcbfc3150cc2b853d3582dd | [] | no_license | stellapark401/python-oop | b471f86b877503620c515f972b64b9c9e64826d6 | 7a2e923dc6b0718b16b5a1b27b5e837421897d31 | refs/heads/master | 2023-04-27T00:08:54.463086 | 2021-05-28T10:30:53 | 2021-05-28T10:30:53 | 368,100,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | class CalculatorStatic(object):
def __init__(self, first, second):
self.first = first
self.second = second
def add(self):
return self.first + self.second
def sub(self):
return self.first - self.second
def mul(self):
return self.first * self.second
def div(... | [
"stellapark401@gmail.com"
] | stellapark401@gmail.com |
d6791080322a2b56b63de5ea3f1504caa713340c | d226fea1b2220616141600fb8bc5b251f5c9c460 | /.ipynb_checkpoints/parse-checkpoint.py | a9dccd2d2735498c011d9802382f7274a1c1d237 | [] | no_license | colobas/track-and-field-data | 25210572dedb59871352c7eae19b4523011ea1ca | 94239ef440b1b7cae3dc68332169fedcfb06a6f4 | refs/heads/master | 2020-05-22T20:51:27.284444 | 2019-08-03T16:37:29 | 2019-08-03T16:37:29 | 186,515,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # %%
with open("parsed.txt") as f:
txt = f.read()
# %%
print(txt)
# %%
| [
"mail@gpir.es"
] | mail@gpir.es |
a570bfa4558c82748471c60e1e492652bbd4c4b6 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_vlan_pool.py | 41bc3c7d07d911e29c5a39ab423b1aaf06d43a9d | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 10,592 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Dag Wieers <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1'... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
00fabe3ab510b8ce79191b5b18d581764060b961 | b7c5fef61e8c1752286e01c9cf99db81108aa5c4 | /유형/구현/상하좌우/상하좌우.py | 232c193f91611c8e88f820639bc8d32cbdc681b5 | [] | no_license | hyena0608/CoTe | bb12cee08c2be4d63b1ecbefd232384fc1c536aa | 4b2ed46a926e7f1ca90aa2ae07485bc4061869b6 | refs/heads/master | 2023-08-18T10:24:47.616765 | 2021-10-04T11:57:30 | 2021-10-04T11:57:30 | 395,150,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | n = int(input())
plans = input().split()
x, y = 1, 1
move_types = ['L', 'R', 'U', 'D']
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
for plan in plans:
for i in range(len(move_types)):
if move_types[i] == plan:
x += dx[i]
y += dy[i]
if x < 1 or y < 1 or x > n or y >n:
x -= dx[i]
y -= dy[i]
p... | [
"82203978+hyena0608@users.noreply.github.com"
] | 82203978+hyena0608@users.noreply.github.com |
eef83d995d71d7cfa84e901c195269cede28bfb4 | df93acce3d8157243e0bbd22779de2084b634ce8 | /utility.py | 9fc94ad43772ec30deffde115e3a11bf7a1a9972 | [] | no_license | endy-see/PaddleEast | 70be10759220f78bb00efd6126055d63c1d8f927 | e80e6be9f708401e2c044c5a3a7e30aef4b3518d | refs/heads/master | 2022-03-22T07:40:41.652741 | 2019-12-09T03:16:33 | 2019-12-09T03:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,454 | py | """
Contains common utility functions.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import distutils.util
import argparse
import functools
from config import *
import collections
from collections import deque
import datetime
import paddle.f... | [
"luyang13@baidu.com"
] | luyang13@baidu.com |
144507f6e4c79f36c38c7b5f1c05dda29b7d318a | c938d1dec12a773cf97d847bdfd2c969af038731 | /day-02/part-1/david.py | 76def08c1d5052be393bb6678a66e9631e36f2f3 | [
"MIT"
] | permissive | SilvestrePerret/adventofcode-2020 | c35ffac8271bc40d8e8e5522a30970708c86e250 | c73ab4f03a66153dca5f8f0d9a7d5d010bb9eb22 | refs/heads/master | 2023-08-25T16:00:04.539307 | 2021-10-20T13:40:16 | 2021-10-20T13:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from tool.runners.python import SubmissionPy
class DavidSubmission(SubmissionPy):
def parse_line(self, line):
rule, password = line.split(": ")
count, letter = rule.split(" ")
lower_bound, upper_bound = map(int, count.split("-"))
return lower_bound, upper_bound, letter, password
... | [
"david-ds@users.noreply.github.com"
] | david-ds@users.noreply.github.com |
92279c565a333bce578b68e5b5ad1f260f4c7b8d | 0160b7f33574c59b5a835cf88945c8c20485c17f | /clothes/migrations/0010_auto_20181224_1001.py | 166b2d27ab63fab08b80741798ee40166b7c3f71 | [] | no_license | Caebixus/ComfyPenguin | a7731e8a8e96223c659963087817941873c4543a | b9e3ef5ab1a335b04897f572644db5d9987a379a | refs/heads/master | 2022-03-02T01:33:47.671335 | 2019-11-13T20:21:13 | 2019-11-13T20:21:13 | 166,684,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | # Generated by Django 2.1.3 on 2018-12-24 10:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clothes', '0009_auto_20181224_1000'),
]
operations = [
migrations.AlterField(
model_name='product_clothes',
name='it... | [
"ma.davidlangr@gmail.com"
] | ma.davidlangr@gmail.com |
6987d8b64af2daa1596f4ec3babc18a794df0226 | 060818af56141e5e352606179422fe1c25e86c0b | /pipe.py | 9fde0a3848d52b43b5949f9aacb467f3cdf91e03 | [] | no_license | xxchaosxx210/TextureGame | 7d5d2cad65a9f59ca3707f41065f74a9e712ebe0 | 25f33d6e615ce60c8affae737a3c63013402e444 | refs/heads/master | 2023-02-22T13:14:13.266687 | 2021-01-28T09:58:24 | 2021-01-28T09:58:24 | 332,324,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | from kivy.uix.widget import Widget
from kivy.uix.image import Image
from kivy.properties import NumericProperty
from kivy.properties import ObjectProperty
from kivy.properties import ListProperty
from kivy.clock import Clock
class Pipe(Widget):
# Numeric Attributes
GAP_SIZE = NumericProperty(100)
CAP_SIZE ... | [
"pmillar1279@googlemail.com"
] | pmillar1279@googlemail.com |
8c1c4700fb5c07dad874faed9390600a71797e7e | 698bf0c7e447184a921ead50b6a3cb2d35d63549 | /store/urls.py | 675ae2bd4c6e6ef8e41b87c58901d3b33d213c02 | [] | no_license | sherzod1997/ecommerce | 5bec9ebbcb8dd4d12e989c7a68e10a2b095f2814 | b916ca4a1bc42c4f36b8215c3d94c001aef90cbd | refs/heads/main | 2023-08-10T23:30:37.135813 | 2021-09-15T12:19:15 | 2021-09-15T12:19:15 | 397,697,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from django.urls import path
from . import views
urlpatterns=[
path('',views.store,name="store"),
path('cart/',views.cart,name="cart"),
path('checkout/',views.checkout,name="checkout"),
path('update_item/',views.updateItem,name="update_item"),
path('process_order/',views.processOrder,name="proce... | [
"mr.sherzod1997@gmail.com"
] | mr.sherzod1997@gmail.com |
658951e0e2912cb0850ebd0ce917ab88204143f9 | 30940f44a2800ef0200fbd1b19f354864e980e05 | /Python/과제/201632023_14/lab5_11.py | 25baaec9f7ad67f4eea625caf4b40d6933c055f5 | [] | no_license | H2SU/skhu-report | 942ca8cfd93d77595588d0e5e84355bceded9143 | 533a6f31b52cb7dd7617b4b3da41f116cf468d22 | refs/heads/master | 2021-01-20T22:24:07.326121 | 2018-06-25T05:57:43 | 2018-06-25T05:57:43 | 101,819,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | """lab5_11
주제 : 분수
작성일 : 17. 11. 05.
작성자 : 201632023 이지훈
"""
class fraction:
def __init__(self,numer,denom):
"""
분수 초기화
:param numer: 분모
:param denom: 분자
"""
self.numer = numer
self.denom = denom
def prnt(self):
"""
출력하는 메소드
:retu... | [
"hisu138@gmail.com"
] | hisu138@gmail.com |
59fc04f65d00227209003ea2836478c904403fdb | 34f365117eb1d846fa922c24f3fc650188ce9746 | /bin/bed2countString.py | a029e30899b4529ca74ab313a5ed6655280c54f6 | [
"MIT"
] | permissive | PinarSiyah/NGStoolkit | 53ac6d87a572c498414a246ae051785b40fbc80d | b360da965c763de88c9453c4fd3d3eb7a61c935d | refs/heads/master | 2021-10-22T04:49:51.153970 | 2019-03-08T08:03:28 | 2019-03-08T08:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python
import os
import sys
import bed
import generalUtils
import argparse
import random
parser = argparse.ArgumentParser(description='count strings')
parser.add_argument('-i', required= True, help='input')
parser.add_argument('-o', required= True, help='output')
parser.add_argument('-fasta', required= ... | [
"adebali@users.noreply.github.com"
] | adebali@users.noreply.github.com |
436dc03754786b630e14afac489c70e306ef75a0 | ff67c6f021a303c657273a51e46903527438efda | /eahub-fight-service/fights/tests.py | 44520ddcb5f16b619fd1f0455bb4ef76b9454920 | [] | no_license | bsmi021/aws_rpggame | 4f7192319c0d3a5f4d9924ccb41b25f71de44c57 | 618c275abc244dbe8eb0ab7c5948a2330debbc29 | refs/heads/master | 2023-02-14T21:35:31.201624 | 2019-09-05T09:01:19 | 2019-09-05T09:01:19 | 198,040,288 | 0 | 0 | null | 2021-01-05T13:16:24 | 2019-07-21T09:57:58 | Python | UTF-8 | Python | false | false | 4,936 | py | from datetime import datetime
from models import FightModel, Enemy, Character, AttackModel, CharacterFightModel
from utils import ModelEncoder
import json
import multiprocessing
import os
from uuid import uuid4
import random
import time
os.environ['REGION'] = 'us-east-2'
os.environ['ENV'] = '1'
def calc_dodge(dodge_c... | [
"bsmi021@gmail.com"
] | bsmi021@gmail.com |
6eb0ec8e8aa7e761bcb11d41fee80a92377d7ab6 | ab0b09a351a76591be563a8b44c1b3969cf6de3b | /entity_extract/model/loss_function/cross_entropy_loss.py | 8f8ae4d7c95c551da9672302b8bf7738377a8f44 | [
"MIT"
] | permissive | 2019hong/PyTorch_BERT_Pipeline_IE | 617c8f4eca11fe496558760fb97e3b0b4da8aa48 | 9ee66bc9ceaed42e996e9b2414612de3fc0b23bb | refs/heads/main | 2023-04-20T22:16:16.178337 | 2021-05-09T15:21:42 | 2021-05-09T15:21:42 | 366,223,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | import torch
from torch import nn
from utils.arguments_parse import args
class cross_entropy(nn.Module):
def __init__(self):
super().__init__()
self.loss_func = torch.nn.CrossEntropyLoss(reduction="none")
def forward(self,start_logits,end_logits,start_label, end_label,seq_mask):
start_... | [
"suolyer@qq.com"
] | suolyer@qq.com |
1cf3355e7a1f66058f64474f928216d3bb0a873d | dcdcd6f2ba42ea1be06885a7bf1cf15a277e5aa6 | /daya/Roomate_Notebook/backup/roomate_db.py | b973917b6c7da479d80127c12701c0d669dd084a | [] | no_license | dayanand18/Eagle_eye | 9abfe9953c2c9214a8821fa44d1364ecd5a43bec | 2f94b160ca76aa3515d57d6e1164ee661733748b | refs/heads/master | 2021-05-21T20:23:40.910983 | 2020-04-03T19:37:34 | 2020-04-03T19:37:34 | 252,787,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,302 | py | import sqlite3
import os
from datetime import datetime
class rommate_db:
def __init__(self):
self.db = sqlite3.connect('Roomates.db')
def create_roomates_table(self):
try:
query = "CREATE TABLE roomates(user_mail text PRIMARY KEY NOT NULL,full_name VARCHAR(200) NOT NU... | [
"noreply@github.com"
] | noreply@github.com |
d6fc728012cdfc6a1f03ddba580a8d01a63504c5 | e3c8d2997a425bfd22e33cb074229b563ad7c0eb | /EXOSIMS/PlanetPopulation/JupiterTwin.py | c22e8a587d0bad1122903246625861e0973e5819 | [
"BSD-3-Clause"
] | permissive | semaphoreP/EXOSIMS | 3a5f9722a0fdfdf3d233bef398488fb920f6fba9 | 9b2c25ff0bf1e6378af08a95b04c9e51ef4f1340 | refs/heads/master | 2020-04-04T11:55:05.258189 | 2019-05-27T18:19:23 | 2019-05-27T18:19:23 | 155,907,999 | 0 | 0 | BSD-3-Clause | 2018-11-03T23:49:47 | 2018-11-02T18:41:34 | Python | UTF-8 | Python | false | false | 3,339 | py | from EXOSIMS.Prototypes.PlanetPopulation import PlanetPopulation
import numpy as np
import astropy.units as u
class JupiterTwin(PlanetPopulation):
"""
Population of Jupiter twins (11.209 R_Earth, 317.83 M_Eearth, 1 p_Earth)
On eccentric orbits (0.7 to 1.5 AU)*5.204.
Numbers pulled from nssdc.gsfc.nasa.... | [
"drk94@cornell.edu"
] | drk94@cornell.edu |
213892dd324e13ace2fbf3794ad46a2d864cd2cf | 4ae6a7123cae3fbca4b23d9691fe066e2807f91d | /mitapa/wsgi.py | dde4ec1bd0c953a35384256ae8f0995ce6efcb85 | [] | no_license | wolvelopez/mitapa2 | 910667aa77b2194e5fab323b5e93bc41adc7842b | 47c191007d09e2412284381c861dbcfe2fb988d4 | refs/heads/master | 2021-01-22T23:58:59.373786 | 2012-10-09T11:30:30 | 2012-10-09T11:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | """
WSGI config for mitapa project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` s... | [
"wolvelopez@gmail.com"
] | wolvelopez@gmail.com |
ee11cd3dba463874062b05e9d15b89031fff7f5d | 2ac0c7162faf05bd20fe3123dd654861b529069d | /web scraping3 | 9030ab9e54f915db1edf99a1366654d7659946c0 | [] | no_license | deep141997/web-scraping | 04caf47c5b9ad310f2854c30a0a87a06bee28775 | 385b8b6793245c968102145d4de810652a0a8ec7 | refs/heads/master | 2020-03-31T07:10:41.931575 | 2018-10-14T21:17:53 | 2018-10-14T21:17:53 | 152,010,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 13 02:05:15 2018
@author: deepak
"""
import requests
from bs4 import BeautifulSoup
# when we run request.get it return a response object
page=requests.get("http://dataquestio.github.io/web-scraping-pages/simple.html")
print(page.status_code) #res... | [
"noreply@github.com"
] | noreply@github.com | |
d777370b107b7228ee335378e703d909a421f3be | 41b75966f379fee64b8b5ccf999423025a7fa327 | /todoapp/urls.py | 2ffce4223ad72fcd7d69302f52268b0967f37ba0 | [] | no_license | varshadesaimath/heroku_django | d206219ca1e422fd1328bc6349059a08b4e244cc | bb93e63cc66e73f7b03990e91c2ce6774fd01740 | refs/heads/master | 2023-08-15T09:04:52.023736 | 2020-07-16T20:56:13 | 2020-07-16T20:56:13 | 279,820,987 | 0 | 0 | null | 2021-09-22T19:26:58 | 2020-07-15T09:11:19 | Python | UTF-8 | Python | false | false | 954 | py | """todoapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"54346850+varshadesaimath@users.noreply.github.com"
] | 54346850+varshadesaimath@users.noreply.github.com |
ce1273390252530299cbc324c115e5978b11087a | 41e660c3f0f30480cbd813f7c0f11922e1ad2cd4 | /Desafio43.py | 7679ef41040dc3bdf6a65a76ad37364e880c5e21 | [] | no_license | emersonsemidio/python | a5fd973d7d66a4cd76d6a159997045aa615de495 | 84f3bda7bd52f348d7f754618f07a7f02fb4e3fe | refs/heads/master | 2023-05-06T23:50:14.163639 | 2021-05-29T16:34:05 | 2021-05-29T16:34:05 | 263,699,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | a = float(input('Digite seu peso em KG '))
b = float(input('Digite sua altura em metros '))
c = a / b**2
if c > 0 and c <= 18.5:
print('Abaixo do peso ')
elif c > 18.5 and c <= 25:
print('Peso ideal ')
elif c > 25 and c <=30:
print('Sobrepeso ')
elif c > 30 and c <=40:
print('Obesidade ')
elif c > 40:
... | [
"emersonsemidio.01@gmail.com"
] | emersonsemidio.01@gmail.com |
e1dc4656c4add693f2dbb8e3c9a87990852101c8 | dccdb71dd75560ffeb076cedbd78b36e33b3adf2 | /EstruturaSequencial/ex02_numero.py | 5a2f85ce99f95f27163e7a478296cece3c9b0762 | [] | no_license | IngridFCosta/exerciciosPythonBrasil | 6fa669896cae135142101c522be7a919bda583b7 | 5c84d70f720b45a260320b08a5103bad5ce78339 | refs/heads/master | 2023-04-22T02:34:40.206350 | 2021-05-06T17:14:50 | 2021-05-06T17:14:50 | 291,265,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | """2-Faça um Programa que peça um número e então mostre a mensagem O número informado foi [número]."""
numero=int(input('Escreva um número: '))
print(f'O número informado foi {numero}') | [
"49729290+IngridFCosta@users.noreply.github.com"
] | 49729290+IngridFCosta@users.noreply.github.com |
b442cc230d11c9178077d54f985460362a855a1f | 332b31b3dcc06ab377dfc726ba28b08ff3c7f8ea | /manage.py | 4ce1ada190976a8a47b5bab4df880ccd8c27c038 | [] | no_license | AlfiyaZi/Secret_Santa | 2763427e564ac872a23425038446d43f9f926809 | d57478b26b29244e3139f635eddf5adef983ca3e | refs/heads/master | 2020-07-27T22:12:28.262118 | 2016-02-17T00:42:48 | 2016-02-17T00:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Secret_Santa.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"eugenemu55@gmail.com"
] | eugenemu55@gmail.com |
4fef97dd30ffbae5b485f9ef8ad01ff1307e6aba | 6667cb2a98799830d63c41603534eb5616084e0f | /addfaces.py | d65b449af92e501fadcd4a43ac2c9d58ea09204c | [] | no_license | milan0410/Smart-Lab | e5d50743a30555f62e7f7b92199714d06849da1a | 7e115fbd1e6756de4d62d8f037f8d93519b55542 | refs/heads/main | 2023-08-02T00:57:41.213997 | 2021-09-26T13:15:37 | 2021-09-26T13:15:37 | 410,556,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import boto3
import time
import cv2
bucket = 'facesmit'
cam=cv2.VideoCapture(0)
count=0
name=input("Enter the name of person:")
idno=input("Enter the id no:")
s3=boto3.client('s3',aws_access_key_id='<AWS_ACCESS_ID>',aws_secret_access_key='<AWS_SECRET_ACCESS_KEY>',
region_name='ap-south-1')
while count<... | [
"milan.vish10@gmail.com"
] | milan.vish10@gmail.com |
6c236271f1bc427a86e7a260cf99dc4942db983b | 9496bbf93018bed9cab7766b9983e37122f24a1d | /see_data_shape.py | 6e80e478a991942963f3074f59cdee0d430223c7 | [] | no_license | ioyy900205/Transform-your-data | 453fe83af235ff0c392edcd8da161083dd3e6363 | d19176444407df50f091cf4b4da14bc59564c198 | refs/heads/main | 2023-01-06T23:10:38.668075 | 2020-11-12T01:48:08 | 2020-11-12T01:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import cv2
# 修改为你的图片地址
img_path = ' 修改为你的图片地址 '
img = cv2.imread(img_path)
size = img.shape
print(size)
print('width:',size[1])
print('height:',size[0])
| [
"603329354@qq.com"
] | 603329354@qq.com |
4ac4d7c107972f26cee6658eebc94261410509f9 | 8471c456a81c33acee32247ebcd681b60a316791 | /tests/arp/test_arpall.py | e8c60dd659bb6eb7656d21baffb6bf10b27a5775 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | lguohan/sonic-mgmt | cd8df9249af447ce268ca541a552dcf2c61f57ab | 2eaea7c823ef224b7bd7553f91f27fe9d9160b2a | refs/heads/master | 2021-11-11T01:44:59.393111 | 2021-01-28T03:14:02 | 2021-01-28T03:14:02 | 66,689,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,634 | py | import logging
import pytest
import time
from datetime import datetime
from tests.arp.arp_utils import clear_dut_arp_cache
from tests.ptf_runner import ptf_runner
from tests.common.helpers.assertions import pytest_assert
from tests.common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-impor... | [
"noreply@github.com"
] | noreply@github.com |
d81066e451cb0e509457c9eddf1945cfcadf946c | b6efc7ef83f51c31a218064a4c2fd05ecdc318ad | /util.py | 72b9b6a64795121eafffed4db2f522f76b5affbf | [] | no_license | FRC3184/frc2018 | 12000bab0c9608ef339cd53dfaee28aa3b584df1 | 19846ebf27c99d58075e9f2085e87512c3f67023 | refs/heads/master | 2021-03-27T16:32:32.763553 | 2018-05-16T05:06:56 | 2018-05-16T05:06:56 | 116,581,979 | 3 | 0 | null | 2018-05-09T21:44:18 | 2018-01-07T16:43:21 | Python | UTF-8 | Python | false | false | 154 | py | import wpilib
def get_basedir():
if wpilib.hal.isSimulation():
basedir = ""
else:
basedir = "/home/lvuser/py"
return basedir | [
"nick@nickschatz.com"
] | nick@nickschatz.com |
0db0f6433a05f9f4ea5f7ba64cb24c7302c6043a | 403139e10b660e325992ab9ac556ea2c74308b7a | /inbound_scanning.py | dbe04da13596a9a35ab119d85c2c60a3cda6307b | [] | no_license | timking451/inbound | 5c95344ff45f94f089738dd3d03223bb99e0ef81 | a54c19daaeced69c9de1ff5f49009916b99b9423 | refs/heads/master | 2023-07-13T10:51:32.045976 | 2021-01-05T16:18:42 | 2021-01-05T16:18:42 | 251,129,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | # Import dependencies
import time
import csv
import collections as col
import pandas as pd
import re
import shelve
import pprint
import os
#from playsound import playsound
os.system("rclone copy dropbox:inbound ~/dropbox")
# Create and format the dataframe
df = pd.read_csv("~/dropbox/MasterCrossReference.txt")
df['Or... | [
"timking451@gmail.com"
] | timking451@gmail.com |
9f7eadf31ab3bbe42dc462af256cd2a22ab92657 | 8435d1a2de86e4d9a4ca834ba59661975b7b573f | /UnrealMinesweeper/Main/ImageLoader.py | 6b917b1a7d0dd4650590ada06ad9b48f9662767c | [] | no_license | DominiqueDevinci/UnrealMinesweeper | c32cacb419bee6ef0fa2cd93b49ee2e3cb4a292a | 8ba92437029ea87c7c19d44b2a7382f65ca8c311 | refs/heads/master | 2022-01-06T14:23:38.337013 | 2019-06-12T09:35:56 | 2019-06-12T09:35:56 | 113,218,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from PyQt4.QtGui import *
from PyQt4.QtCore import *
class ImageLoader:
iconFlag=None
iconMine=None
@staticmethod
def init():
ImageLoader.iconFlag=QIcon(QPixmap("flag.png"))
ImageLoader.iconMine=QIcon(QPixmap("mine.png"))
| [
"dominique.blaze@devinci.fr"
] | dominique.blaze@devinci.fr |
f67140e2667ebecdc52c29d6f61ed211346dc736 | e0c92a1688e633e0d65c2b5c5844856626fa5116 | /problems/st.py | deb6f9ea1d8b76c7a7e10d1940ddedf74ed158b9 | [] | no_license | avee137/interview | 9bf4ac9fe09909ed0b25a5f24e075e58442d1491 | 5435a7ed21a407bff3abdea8bbc29689f9cb5ea0 | refs/heads/master | 2021-09-06T19:12:42.895486 | 2018-02-10T06:55:08 | 2018-02-10T06:55:08 | 115,280,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import sys
class stack():
st = []
def __init__(self):
self.st = []
def push(self, num):
self.st.append(num)
def pop(self):
return self.st.pop()
def print_alternate(self):
p = 1
while len(self.st) != 0:
n = self.st.pop()
... | [
"avee137@gmail.com"
] | avee137@gmail.com |
ffa90cad695dc1a89745ab2dd5a57a1006b45f38 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Forest/BackwoodsFork.py | f295233eb6d3ecd0680e498a956ebd483a4ff8fb | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 818 | py | # https://codecombat.com/play/level/backwoods-fork
# Incoming ogres!
# Use the checkAndAttack function to make your code easy to read.
# This function has a parameter.
# An parameter is a way of passing information into a function.
def checkAndAttack(target):
# The 'target' parameter is just a variable!
# It c... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
7c01e4cf91496b5e1526475731e737f0d9e39a5b | ee9d6a53eb2f4f506f02b553cf397e0570a37540 | /qa/rpc-tests/listtransactions.py | 155381b39f22465072f24113a4bec855f0a02845 | [
"MIT"
] | permissive | adcoin-project/AdCoin-old | 399f7091810defd742f0370435dea60a559feefe | ab202457b17ec7014e0afc862edfc3f6da88fb67 | refs/heads/master | 2021-09-26T11:02:02.943144 | 2018-10-29T20:04:13 | 2018-10-29T20:04:13 | 97,236,000 | 3 | 0 | MIT | 2019-02-18T00:09:45 | 2017-07-14T13:21:52 | C++ | UTF-8 | Python | false | false | 10,252 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the listtransactions API
from test_framework.test_framework import BitcoinTestFramework
from ... | [
"peter@codebuffet.co"
] | peter@codebuffet.co |
71ef43c37a39aabf11677782c933b7f2ca517fd1 | c20950b60480f927764400bd243722214f611213 | /nplus1_nomore/example_1/urls.py | 2dd0242100df105b2a1d0956006a4b9a204628e1 | [] | no_license | samuelmovi/nplus1_nomore | ad77d02c0ca7537307f86380064291e0cc7186f1 | 1f3811069c394d9fc213a75d5be380be0a607212 | refs/heads/master | 2023-07-07T21:59:57.364048 | 2021-08-30T17:45:10 | 2021-08-30T17:45:10 | 400,259,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.urls import path
from . import views
app_name = 'example_1'
urlpatterns = [
path('report_list_bad/', views.ReportsListBadView.as_view(), name='reports-bad'),
path('report_list_good/', views.ReportsListGoodView.as_view(), name='reports-good'),
path('report_list_best/', views.ReportsListBestVie... | [
"samuel.molina@enreda.coop"
] | samuel.molina@enreda.coop |
7a1cb814c241270232d1ad276289e7b8c9a49cbb | af06f557d31fdfb6ef948dd5acebf74aa8144e2a | /jun/models.py | 4014db1d69cd55e1de9e1b0baba7e5695d95eff2 | [] | no_license | junkwon-dev/NET_Comm_web | 1d7c6921460830973b972c24536252dd9f591890 | c1549efaa2cf2288ca5b9f0f1fa4a4af2131069e | refs/heads/master | 2022-12-17T02:58:18.058715 | 2021-06-09T14:18:34 | 2021-06-09T14:18:34 | 225,137,248 | 0 | 0 | null | 2022-12-08T03:15:06 | 2019-12-01T09:39:11 | JavaScript | UTF-8 | Python | false | false | 372 | py | from django.db import models
# Create your models here.
class Blog_jun(models.Model):
title = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
body = models.TextField()
files =models.FileField(null=True,upload_to='files/')
isFile=models.BooleanField(default=False)
... | [
"jun@junui-MacBookPro.local"
] | jun@junui-MacBookPro.local |
a4d90d95aa7d47485090ac92009ccbef391cdfec | 5dfb9ca5e0c8cb4cb7a7a92d6f6a34b34a841869 | /LeetCodeSolutions/python/513_Find_Bottom_Left_Tree_Value.py | 808427669e6aa627ab9f1b0b0ec2c32986e01b6e | [
"MIT"
] | permissive | ChuanleiGuo/AlgorithmsPlayground | 2f71d29e697a656562e3d2a2de783d964dc6a325 | 90b6287b742c8bfd3797540c408d679be2821a40 | refs/heads/master | 2021-01-11T18:30:43.218959 | 2018-11-19T02:20:31 | 2018-11-19T02:20:31 | 79,550,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def findBottomLeftValue(self, root):
"""
:type root: TreeNode
:rtype: int
"""
queue = [root... | [
"chuanleiguo@gmail.com"
] | chuanleiguo@gmail.com |
e5f11a25aafb0f4285218d90725715b8808028b1 | f3539368956788ccd1ec21ac3889b3cdb1302555 | /EDA.py | 7919fed58ea224555d8fdbb5b7b721fd22458d56 | [] | no_license | tcwhalen/UrbanSoundPS | 440854eac903ac6fe77143e54bfa5128a33cd604 | fb2f7d82c369c99773ea780065e4430ef446c92c | refs/heads/master | 2023-02-04T23:50:58.932680 | 2020-12-24T05:31:42 | 2020-12-24T05:31:42 | 324,072,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.5.2
# kernelspec:
# display_name: Python 3.6.9 64-bit
# name: python36964bit56390c8b731a4898893e0d66a8b6194d
# ---
# +
venv = "urbsound8k/bin/a... | [
"timcwhalen@gmail.com"
] | timcwhalen@gmail.com |
cb85e2e2c3443015432d4914f2efa2bbb155f8ab | 77625e7e13e23b6422aaa9f0d0e4edfa38d3c972 | /oca/tests/test_user_pool.py | a6daad4ce3388b4ef4872869097896350f241b76 | [
"Apache-2.0"
] | permissive | lukaszo/python-oca | 82809870b233a7b119e29f20421404fda94df632 | b2bb79ea0badc8e54fee6e09a185c3576a9808b3 | refs/heads/master | 2021-01-10T20:23:00.839900 | 2015-06-19T20:53:36 | 2015-06-19T20:53:36 | 1,144,937 | 6 | 6 | null | 2015-06-21T20:58:15 | 2010-12-06T23:53:07 | Python | UTF-8 | Python | false | false | 475 | py | # -*- coding: UTF-8 -*-
import os
from mock import Mock
import oca
class TestUserPool:
def setUp(self):
self.client = oca.Client('test:test')
self.xml = open(os.path.join(os.path.dirname(oca.__file__),
'tests/fixtures/userpool.xml')).read()
def test_info... | [
"lukaszoles@gmail.com"
] | lukaszoles@gmail.com |
ad93028a480b94013dd1f453bba7655d76b70bee | e97db3e24252eedf9fc85d9093c320e39822025e | /defensa/img/aprendizaje/clases3.py | c5632f6dcc6812c9eadd194dbc35504e4c54184c | [] | no_license | facundoq/thesis-writeup | 5217c84b6bf6e80d590dd92fd930522a9688f135 | fdea6c2b6c15ce0dea4f988df20fe9556e77d657 | refs/heads/master | 2021-01-22T08:53:12.896185 | 2017-12-11T15:29:31 | 2017-12-11T15:29:31 | 14,572,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import sys
import os
sys.path.append(os.path.realpath('../'))
from base_plot import *
from pylab import *
from math import exp,sqrt
import numpy as np
import matplotlib as mp
def gaussian2d(ux,uy,sx,sy,samples):
cov = array([[sx,0],[0,sy]])
x,y = np.random.multivariate_normal([ux,uy],cov ,size=samples).... | [
"facundoq@gmail.com"
] | facundoq@gmail.com |
29a9f7ca66d7a1f7db10087bb7a92e53f63d1578 | 9f2eb69625bd0204f2e7d39b56592c92afe5e07b | /photos/templatetags/photos_carousel.py | 4abdcc1b232221d1e5a4af2442141d9859331e42 | [] | no_license | Cris123m/machtecBeta | f8b426a0f996b189a8595ef179639facf77c0056 | 7c01653d5876c34974e0e8b6beb8e93da86604c8 | refs/heads/master | 2020-09-06T23:11:45.904167 | 2020-03-09T00:22:45 | 2020-03-09T00:22:45 | 220,584,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django import template
from photos.models import Photo
register=template.Library()
@register.simple_tag
def get_photo_list():
photos=Photo.objects.all()
return photos | [
"cristofer123mach@gmail.com"
] | cristofer123mach@gmail.com |
200995910948f77d1809031eabf7ce748480c34b | 32f7e4300e36b2a280daf94e6b887f02887c0c8f | /ref_impl/demo_tiny_ctc.py | 012434e6cc018306f5fdf0a64ef9dda9c1f726d3 | [
"MIT"
] | permissive | isaziconsulting/rnn2d | e09fe095ffb576c49c618f313cee70e5368ac1cf | e983bc441a4e3a5fb5f632ae30a3b4b20c5a63e1 | refs/heads/master | 2021-01-20T12:28:00.628269 | 2017-05-05T12:19:56 | 2017-05-05T12:19:56 | 90,363,724 | 0 | 0 | null | 2017-05-05T10:11:49 | 2017-05-05T10:11:49 | null | UTF-8 | Python | false | false | 1,396 | py | import numpy as np
import theano
import theano.tensor as T
from scipy.ndimage import imread
from returnn import Model, Collapse, Loss, SGD
np.random.seed(1234)
img_list = [ imread('../assets/a.png').astype(np.float32),
imread('../assets/ab.png').astype(np.float32) ]
y = np.array([1, 1, 2], dtype=np.in... | [
"joapuipe@gmail.com"
] | joapuipe@gmail.com |
e3feca8063a41c8988af243eef5ea642b26fe9c5 | 4a74875c7366a19b7189fcb89fa0fa27abc4309e | /data_pipeline/processor/oracle_where_parser.py | 60562db03590c59c92acd5b85aa9bc775183f86c | [
"Apache-2.0"
] | permissive | saubury-iag/data_pipeline | d865d66d25eeb4ea6c6a655ae934bfe83c0efa06 | 4ad04198ed48c643045113c6e2c3e0848adbdec6 | refs/heads/master | 2021-07-23T08:43:46.754162 | 2017-11-01T05:05:23 | 2017-11-01T05:05:23 | 108,808,749 | 0 | 0 | null | 2017-10-30T06:06:41 | 2017-10-30T06:06:41 | null | UTF-8 | Python | false | false | 5,101 | 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... | [
"simon.aubury@iag.com.au"
] | simon.aubury@iag.com.au |
64d2caa1c34922afd36e3cf82f53d1a0d89456f7 | 3f90c218ebcef6826808b7fd7ec3bd41a457074e | /thade/migrations/0019_auto_20210727_1606.py | 911404e5911de8808506abd0726637a7279da178 | [] | no_license | webclinic017/ProjectThade | a698b057a27046633a3d5f066732d4ac45a91b2a | 4c9d8ef7db9fa733910a4043748f8fba9724baba | refs/heads/main | 2023-08-19T04:56:20.898792 | 2021-07-31T09:18:11 | 2021-07-31T09:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # Generated by Django 3.2.5 on 2021-07-27 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('thade', '0018_alter_botlog_signal'),
]
operations = [
migrations.RemoveField(
model_name='bot',
name='investment_vnd... | [
"55542012+Khoa-bit@users.noreply.github.com"
] | 55542012+Khoa-bit@users.noreply.github.com |
555e33f4e61e3d7eb4e039e106af5677c3baf2fc | 128bf9519a131483776c07adbf868e4efb0a42f8 | /ex_02.1_fatorial_com_for.py | 286f49c39254f3be5d377fa06a9d1d7cd3a404c3 | [] | no_license | SydPedro/Exercicios_Sidney_Univesp | 8feb9142c24d1f81ec8c60b74cdf3596a36c48a5 | ede520b0947115a2b56c3b7b1a0c5502403a1cef | refs/heads/main | 2023-06-23T19:51:17.107918 | 2021-07-26T13:32:08 | 2021-07-26T13:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # Programa que calcula n!
n = int(input("Digite o número: "))
fatorial = 1
aux = 0
for i in range(1,n+1):
fatorial = fatorial*i
print("O fatorial de", n, "é",fatorial)
| [
"noreply@github.com"
] | noreply@github.com |
13d583aeb3e77a61c3d17a1da5edf9c4f1182864 | 9515eb99a4108c4ef18f3ff6ef7ccd2713bb990d | /djangotest/settings.py | 616c48544d154cb41884301790883aca11fede43 | [] | no_license | EARad/DjangoTest | 64baab6de43e1eb02f98f289f18b4838fd4d9fb0 | 40dc8d12ba9b9c94001c10a48880bb3fd03be902 | refs/heads/main | 2023-08-08T01:10:03.135560 | 2021-09-19T15:18:58 | 2021-09-19T15:18:58 | 408,159,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,497 | py | """
Django settings for djangotest project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os... | [
"Lezikmail@gmail.com"
] | Lezikmail@gmail.com |
8ca49f178eb6ef50c6e90616f3fdceecf2c9f828 | a4c78931b5b8ee4a1d5394ee101f25448360944c | /venv/bin/easy_install-2.7 | 1cc2c0ab549e298b771169578f2bdbd592c3cc7f | [] | no_license | igorvinnicius/python_ddd_flask | aeeade48cddbb163bbb89a5038e56cc4d15a5307 | 3ff861211caffe5855b9c4c859553982949945fa | refs/heads/master | 2020-04-02T03:50:51.945846 | 2016-07-19T01:50:35 | 2016-07-19T01:50:35 | 63,641,757 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | 7 | #!/home/igor/igorvinicius/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ondasdechoque@cursopilatesbrasil.com.br"
] | ondasdechoque@cursopilatesbrasil.com.br |
b6a4f9b7cbadd66159005b0291e79b5af56cca7c | d257a407a570710c809ee3d448ee47becb91dc30 | /Longest Palindromic Substring/lps.py | 4ead72f44181d491d05d6b290ebb78971e300c48 | [] | no_license | SuerpX/SuperX_leetcode | aa934651143f8e199a6a1d09d7e2630036ca4b22 | b45747c4270643136eccfe4dc70dbd77256b1c71 | refs/heads/master | 2020-03-13T16:23:07.186244 | 2018-08-03T08:40:16 | 2018-08-03T08:40:16 | 131,196,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | class Solution(object):
def longestPalindrome(self, s):
"""
:type s: str
:rtype: str
"""
maxS = 0
maxE = 0
longest = -1
l = len(s)
for i in range(l):
'''
if i == 0 or i == l - 1:
continue
'''
... | [
"SuerpX@users.noreply.github.com"
] | SuerpX@users.noreply.github.com |
3665f21a557fabf7fa2f88468985df0174088928 | f4ef2be443dbb19d8da787fb7c3c0296db8c5306 | /environments/informationtechnology-205813/jenkins/webhook/webhooks.py | 82249e7aab836c53dd9dd288b3e76c1199bb1b94 | [
"MIT"
] | permissive | NarrativeCompany/narrative-infrastructure | 16f76fe86dbffacddcfa948a7f58412ac53cd0b3 | 6e656296dda84f6ebbdefbc8179624a6061788fd | refs/heads/master | 2020-12-05T16:13:58.306768 | 2020-01-07T16:59:33 | 2020-01-07T16:59:33 | 232,168,829 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,984 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014, 2015, 2016 Carlos Jenkins <carlos@jenkins.co.cr>
#
# 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... | [
"brian@socialstrata.com"
] | brian@socialstrata.com |
f59f3f27e0a792a148ccd1c41537d50bd23ab19e | fc65aa5bf399ba8e762ac63e3886d6f21e7898b0 | /graphical_101pong/graph_pong.py | 1793455a99bc6cd31d81f55e9c462d32585b4ca6 | [] | no_license | pastequeninja/101_pong | 5d8cfc7cd7f2517f627b8baa7db2ef54249becb7 | 08a1b929ba70a298bffe99245c56039f99a8fa5d | refs/heads/master | 2021-07-03T20:23:45.625176 | 2020-10-08T15:07:27 | 2020-10-08T15:07:27 | 185,639,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,920 | py | import pygame
from pygame.locals import *
from sys import exit
pygame.init()
white = (255, 255, 255)
SCREEN_SIZE = (1920, 1080)
screen = pygame.display.set_mode(SCREEN_SIZE, 0, 32)
pygame.display.set_caption("Pygame Demo")
background = pygame.image.load("medias/fond_noir.jpg").convert()
bat_1 = pygame.image.load("medi... | [
"Pasteque@localhost.localdomain"
] | Pasteque@localhost.localdomain |
dbf2facb2076d5ef35376878f876e8055cc06a3b | 4dfacb9653c3a72b45361b4df5827cb6117e86e0 | /app.py | 97dacf5a43285932944a289e1849358c2965d14d | [] | no_license | srahulkumar8380/final_major_project | a53ac368e73a3a4c3b08f404c02586bb5351e201 | 388e1bf3aea25530073bf488cd036ea5282e1c45 | refs/heads/master | 2023-03-23T14:43:59.853393 | 2020-06-06T08:06:07 | 2020-06-06T08:06:07 | 269,910,598 | 0 | 0 | null | 2021-03-20T04:14:08 | 2020-06-06T07:55:30 | Python | UTF-8 | Python | false | false | 2,796 | py |
from flask import Flask, render_template, request
# libraries for making count matrix and similarity matrix
import numpy as np
import pandas as pd
from scipy.spatial import distance
from sklearn.neighbors import NearestNeighbors
from sklearn.externals import joblib
import pickle
app = Flask(__name__)
m... | [
"noreply@github.com"
] | noreply@github.com |
b15f2abae8cd733f498374b1a2d0c477cd073e9a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/482/usersdata/309/110136/submittedfiles/Av2_Parte4.py | 4caf25849b6aea491973c78fc097c44d88370f19 | [] | 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 | 320 | py | # -*- coding: utf-8 -*-
mt=[]
lin=int(input("Digite a quantidade de linhas da matriz:"))
colu=int(input("Digite a quantidade de colunas da matriz:"))
for i in range (lin,0,-1):
lista=[]
for j in range (colu,0,-1):
lista[j]=(int(input("Digite um elemento para sua matriz:")))
mt[i]=lista
print(mt)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
77ff1c2b53c17c875b84bb4f6b5a2944e786527e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_207/ch136_2020_04_01_11_57_23_991207.py | d8760caf5639fb9f950467abccac43d652a78617 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | import random
dinheiros = 10
d1 = random.randint(1,6)
d2 = random.randint(1,6)
d3 = random.randint(1,6)
soma = d1+d2+d3
print (soma)
JOGO = False
#fase de DICAS
print ("DICAS: \n Você possui {0} dinheiros." .format(dinheiros))
if dinheiros <=0:
print ("Você perdeu!")
pergunta1 = input("Você quer uma dica? ")... | [
"you@example.com"
] | you@example.com |
630a999276d7e52a67c87f6a994dcbbd59c24900 | bc862ae748617c3035382d2313b487880d80c132 | /70_climbing_stairs.py | bbfc9bc600d0143edd73db75d332be95ba9bd93d | [] | no_license | jfbeyond/Coding-Practice-Python | 31fba612d92807ed3c473c0613e9e708e5d813d7 | 92f10fafb35d7d10e3c15e4d28c8f25d93dd8077 | refs/heads/master | 2020-05-22T10:17:55.789521 | 2019-05-12T22:11:34 | 2019-05-12T22:11:34 | 186,307,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py |
# 70 Climbing stairs
# Fibonacci series
def climbingStairs(5):
a,b = 1,2
for i in range(n-1):
a, b = b, a+b
return a
# O(n) O(1) | [
"noreply@github.com"
] | noreply@github.com |
6af1771661cfd3bc1ef147fed8d2917bac5edd6f | e06aa5b21204f037d0e505724aa2d1779708ec6f | /Pendulum/Utils.py | 18a19e6f857ee0283b8b974a3bf4cc8c37bd41a9 | [] | no_license | GreenWizard2015/openai-gym-exercise | bd745a8df6df00db404bf94db246084792fd87ec | b61438daab023637e5f1cfd3165a585e553ba394 | refs/heads/master | 2023-04-14T11:21:09.704888 | 2021-05-01T22:34:42 | 2021-05-01T22:34:42 | 315,734,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from Pendulum.PendulumEnvironment import PendulumEnvironment
import time
from Utils import emulateBatch
def showAgentPlay(agent, speed=.01, env=PendulumEnvironment):
env = env()
env.reset()
while not env.done:
env.apply(agent.process(env.state))
env.render()
time.sleep(speed)
env.hid... | [
"sizeof.2011@gmail.com"
] | sizeof.2011@gmail.com |
91c9f763be41a1796d8ed796786b9dcee2e2c73f | f8e8faa75bb5dbae436c3dfba4040daf47bbce2c | /dosagelib/plugins/arcamax.py | a1c0b16597d65d72ae043795a956699c1d7bacb6 | [
"MIT"
] | permissive | acaranta/dosage | 784e00b1de8dd10e9664614ca32df67f6249e05e | 6e14e8709b3b213fdc07a2106464860e1cb99481 | refs/heads/master | 2021-01-12T16:16:52.813816 | 2020-01-12T23:36:46 | 2020-01-12T23:36:46 | 71,962,021 | 0 | 0 | MIT | 2018-12-27T09:48:37 | 2016-10-26T03:17:58 | Python | UTF-8 | Python | false | false | 6,345 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2019 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
from ..scraper import _ParserScraper
class Arcamax(_ParserScraper):
... | [
"tobias-git@23.gs"
] | tobias-git@23.gs |
78a68bd9736199f2bd1d9890aa96ee623dcf42aa | ae9ec0383abbd32afc903cdbcba7be76e876dfd0 | /community/community/wsgi.py | bc1aa0feb1eb231dbe6d910b83b64a80afd789f7 | [
"MIT"
] | permissive | aeikenberry/community | 3f3ddf111259017826912345f9328b74026252e4 | 89434cc053c2d90d4ab495669dedc186f1926f71 | refs/heads/master | 2021-01-01T05:41:07.405013 | 2015-01-14T20:49:12 | 2015-01-14T20:49:12 | 29,264,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | """
WSGI config for community project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"aaron@Aarons-Mac-Pro.local"
] | aaron@Aarons-Mac-Pro.local |
39345363d19292552026ee086e433fd56e66706d | b7a395e4ceb1ccb858f29840c5f52fcc64cd114a | /aletheialib/options/tools.py | 6847434e6c1bc5cfb87737056334d6364f00a2d7 | [
"MIT"
] | permissive | daniellerch/aletheia | d9805a0fffea675ea3ae941c22771db842c5f898 | bf7aa3aee145a667fdca6178b8365d9f8fa76ab2 | refs/heads/master | 2023-09-01T11:53:46.699484 | 2023-08-30T06:06:30 | 2023-08-30T06:06:30 | 101,512,532 | 148 | 42 | MIT | 2022-08-09T07:41:49 | 2017-08-26T20:50:34 | Python | UTF-8 | Python | false | false | 6,973 | py | import os
import sys
doc = "\n" \
" Tools:\n" \
" - hpf: High-pass filter.\n" \
" - print-diffs: Differences between two images.\n" \
" - print-dct-diffs: Differences between the DCT coefficients of two JPEG images.\n" \
" - print-pixels: Print a range of píxels.\n" \
" ... | [
"dlerch@gmail.com"
] | dlerch@gmail.com |
83f565b10fbddf2f16dfcf1bde0e4d1c5c45b7cc | 551c036552a3654069f2dfabaf426e3a7cd244c5 | /core/inference.py | c63ffe2e0f4a726ffb923a6caa3fb319918c5912 | [] | no_license | afterimagex/CRNN-Tensorflow | 4fc0ca4e87578e8f39087a5be68195ebb9cf040a | 30e752ae72e7bce9a04f39e790c25dd3a486bbd8 | refs/heads/master | 2020-05-23T13:55:56.320013 | 2019-06-27T07:03:00 | 2019-06-27T07:03:00 | 186,789,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# ... | [
"563853580@qq.com"
] | 563853580@qq.com |
d3db2ba962d1265de8c6accd504465761e870948 | ece123467d071eb3e993760fd53ee86ab03f33f1 | /tutorapp/main.py | 1206cb9f7fa9c19508267c7d0991eccb3e0dd025 | [
"MIT"
] | permissive | wann100/tutorapp | 69411bfb20795b2af7a4e44031180a82069e6230 | 27da5846cc36776c8d48d0db828c7e362b140da2 | refs/heads/master | 2020-03-28T20:26:25.031422 | 2018-09-17T05:09:30 | 2018-09-17T05:09:30 | 149,070,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | [
"mwann@kognos.co"
] | mwann@kognos.co |
261911e7285a2cf4b2af737b3088a3fd77239733 | 2766aad9e5fc28665071b5555cb5beef5ddcf065 | /test.py | 9df2b8dc2145ec627b37dbcd8546aa1231458d55 | [] | no_license | ymewangyc/awesome-python3-webapp | edd0d3ec648b0e2357d53366718f195468f4d656 | 926f2f745972dbecb6a71848adeb4df46d14ef9c | refs/heads/master | 2021-08-30T18:53:25.824964 | 2017-12-19T02:22:16 | 2017-12-19T02:22:16 | 114,316,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
from MysqlHelper import MysqlHelper
mh = MysqlHelper('10.100.1.142', 'test', '123456', 'testDB', 'utf8')
sql = "select * from user where name=%s"
print(mh.find(sql, '小明'))
print(mh.find(sql, '张三'))
# mh = MysqlHelper('localhost', 'root', '123456', 'test', 'utf8')
# mh = MysqlHelper('10.100.1.... | [
"wyc@example.com"
] | wyc@example.com |
75cc871b353ebfbbb4ced6e65e8a1a38d99c10a6 | 1a217021d8ff5f7530107f1576b538953e154124 | /AlllMyCats2.py | 828a412d04b229b8b1f38062d955ad5d3ea7f4f7 | [] | no_license | BinThani/PYTHON | a25c802ba174aab2d39ffaa6aa9a9607d632e649 | e3682d85c73290538a1faf4b69507436a3f3e8df | refs/heads/master | 2021-04-23T18:58:35.307144 | 2020-08-15T07:58:49 | 2020-08-15T07:58:49 | 249,974,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | catNames = []
while True:
print('Enter the name of cat ' + str(len(catNames) + 1) + # Everytime it loops increases by 1 and so on.
' (Or enter nothing to stop.):')
name = input()
if name == "":
break
catNames = catNames + [name] # List Concatenation
# Names.
print("The cat names are:... | [
"noreply@github.com"
] | noreply@github.com |
eddb4a31230e835db275730ea4226babb1806507 | 2fd64c8d1710f6a482a3227cbc9553b883768167 | /15/getdata.py | aca792a3885db98773a8a0614f43fd819170c242 | [] | no_license | wangweihao/Python | e0938cbf67afcbc031a855ee439937ced53c8446 | 9de7f0479edbe2cef4c1db868bdaa15239d121b3 | refs/heads/master | 2021-01-10T20:26:38.825549 | 2015-05-03T17:27:20 | 2015-05-03T17:27:20 | 33,823,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | #!/usr/bin/env python
#coding:UTF-8
from random import randint, choice
from string import lowercase
from sys import maxint
from time import ctime
from sys import argv
f = open(argv[1], 'w+')
doms = ('com', 'edu', 'net', 'org', 'gov')
for i in range(randint(5,10)):
dtint = randint(0, 2^32-1)
dtstr = ctime(dt... | [
"578867817@qq.com"
] | 578867817@qq.com |
bdea108d4883de1a13f2c75224bc83113c52d55d | 20ff9c30344ba1c43ba6b3fe862a5894737fcd9f | /mongopy/mongoconn.py | e403317346411855b92ae6220fd496449f38fd73 | [] | no_license | jzorrof/mongopy | c36bc4b2592cc983438e4dcbddedfca694b7815e | 4b1270c6936c664e4b1e670756f43ab0ca0e38e0 | refs/heads/master | 2021-01-18T13:59:25.101572 | 2015-05-15T10:35:59 | 2015-05-15T10:35:59 | 34,641,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | __author__ = 'joe_fan'
# -*- coding: utf-8 -*-
from pymongo import MongoClient
"""
connection demo
"""
client = MongoClient()
client = MongoClient("mongodb://mongodb0.example.net:27019")
"""
access db objects
"""
db = client.primer
db = client['primer']
"""
access collection Objects
"""
coll = db.dataset
coll = db['d... | [
"jzorrof@gmail.com"
] | jzorrof@gmail.com |
0c9daec6558d9de88338199192f4e5d1dad32639 | 8dca64dd11b23a7d59413ac8e28e92a0ab80c49c | /832. Flipping an Image/solution.py | 25b69e5fc050245a58bc16a757d3ea451316a7c4 | [] | no_license | huangruihaocst/leetcode-python | f854498c0a1d257698e10889531c526299d47e39 | 8f88cae7cc982ab8495e185914b1baeceb294060 | refs/heads/master | 2020-03-21T20:52:17.668477 | 2018-10-08T20:29:35 | 2018-10-08T20:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Solution:
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
return self.invert(self.reverse(A))
@staticmethod
def reverse(A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
3a3a2bda3c9dc71fb5f213b93e4215892c92b19a | 354e2dede869a32e57c66c2e1b71bbd61d2cc36d | /widgets/pad.py | 17d2e11a21f2a29919b0d0f7268c7bfef1cc107d | [
"MIT"
] | permissive | hiddenvs/micropython_ra8875 | 5abf906d95c0c997ceb9638b8785c4cc2f803cf6 | a61314d62d6add831f6618c857b01d1a5b7ce388 | refs/heads/master | 2023-04-09T22:37:23.097440 | 2021-04-16T13:13:34 | 2021-04-16T13:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | # pad.py Extension to lcd160gui providing the invisible touchpad class
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2020 Peter Hinch
# Usage: import classes as required:
# from gui.widgets.pad import Pad
import uasyncio as asyncio
from micropython_ra8875.py.ugui import Touchable
from micropy... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
9bb10c134aacfcf074a9013fd4da4be138bf44d6 | 6fda9b7b57523caa5f3791b707765593fa30cde0 | /project/product/migrations/0001_initial.py | 9b5256e2031c8495af53f54fbfbb0852e84b4f2c | [] | no_license | orhan1616/Django-Eticaret | 4ccce641baf5cd5b310f9573f99a2881c120040d | 253d991cb7eab922afee9e6d5b23592ed28fa337 | refs/heads/main | 2023-03-22T12:50:31.632204 | 2021-03-05T19:42:08 | 2021-03-05T19:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | # Generated by Django 3.0.5 on 2020-04-12 18:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"yigitcakmak.dev@gmail.com"
] | yigitcakmak.dev@gmail.com |
6462cb96855447582dafdd84cfd45d9866a3fa4c | 6169f8975558e0b25f1d32cced3d8ca9d9871c9f | /algorithms/kmp_matching.py | 8db41ffb7288d0d4d7dcba70e6a1fc26b77d3b02 | [] | no_license | jm2242/interviewPrep | adba832c4bbde60e55af619389e15e8f139b41c1 | b9fac886894746fd0f7432cfac449fe62cfdefbb | refs/heads/master | 2021-03-27T09:16:35.975042 | 2017-02-05T18:41:14 | 2017-02-05T18:41:14 | 77,166,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py |
'''
Implementation of Knuth-Morris-Pratt string matching.
Run time: O(n+m)
'''
class KmpMatching(object):
"""
Build the prefix table for pattern pat
:type pat: str
:rtype: List[int]
"""
def prefix_table(self, pat):
# table to store the longest prefix
table = [0] * len(pat)
j = 0... | [
"jmares93@gmail.com"
] | jmares93@gmail.com |
c70dceb58a15043f0b75dc4cc2d0bd5bb1d898ed | 96b1ab3013dd770501171369b1a7d6dd2c52511d | /week6/coffeehouse/coffeehouse/urls.py | af1976f7fd9788278faec48b7fe258eb19e5affc | [] | no_license | dfreshreed/class_notes | 851e4e2b484ab827abc2f57336427f50922e2524 | 730ebada646a57818304bd0a0bf5837175e82d09 | refs/heads/master | 2021-06-17T20:35:43.519063 | 2016-11-17T15:40:56 | 2016-11-17T15:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | """coffeehouse URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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... | [
"delisestanton@gmail.com"
] | delisestanton@gmail.com |
b938e7c532cfe60e760b8a0b87abee91e54e4942 | 549f6aeee12b66189d6e30b448a656fe55bc3eca | /tensorflow/python/distribute/strategy_combinations.py | d66c7acba7776ce0478f7d6e7076a2bf5ddace66 | [
"Apache-2.0"
] | permissive | thomkallor/tensorflow | 2f6973b95a3fbaa41b6a4d03edb7ae665398865b | fb03bc60fe90d332e357aafa8359a44369ff8caf | refs/heads/master | 2022-11-10T20:25:03.224037 | 2020-06-26T23:39:44 | 2020-06-26T23:49:42 | 275,148,424 | 0 | 0 | Apache-2.0 | 2020-06-26T12:15:14 | 2020-06-26T12:15:13 | null | UTF-8 | Python | false | false | 16,830 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5c1aa0b9ba494cfce668a282f75867e3a9ea4d0d | f48a10a555b69ea078113a6227a76fd25839468d | /indexGenerator.py | 510ed818e920c328221d59bfd90686ec07276c13 | [] | no_license | ShakoHo/Hasal-Core | 88afea63a37bb3cc1d71a0d0e43af75b6dc900d7 | 0b9f5001af4435c90cf68e3d704f455efd7ad9e6 | refs/heads/master | 2021-01-11T17:27:55.520478 | 2017-01-26T09:38:43 | 2017-01-26T09:38:43 | 79,775,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | import pp
import os
import time
import subprocess
import shutil
import cv2
import numpy
import argparse
from argparse import ArgumentDefaultsHelpFormatter
class IndexGenerator(object):
def __init__(self, input_video_fp, input_sample_dp, output_img_dp='tmp'):
self.result_data = {}
self.input_video... | [
"!amshakoinmozillatw"
] | !amshakoinmozillatw |
c64bab437cf48005a6c77d4c91f47a8da2e52e5a | 6f8acb1d8aa9758cc5663725bdf230995e362e6f | /station_manager.py | 44b02f0fa7916fbfbf5b0dff5afd37eb72b584c7 | [] | no_license | liadkeller/PickupScheduler | 1a09f156f4820628b6c201d707806c2e5090d4fd | 73a5872bc88919858bd20d65a8463cd00f6f6dab | refs/heads/master | 2022-11-30T05:43:26.200062 | 2020-08-17T20:20:07 | 2020-08-17T20:20:07 | 287,816,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from csv_loadable import CSVLoadable
class StationManager:
def __init__(self):
self._stations_to_manager = SingleDirectionStationsManager('data/stations_to.csv')
self._stations_back_manager = SingleDirectionStationsManager('data/stations_back.csv')
def get_stations(self, is_sunday):
... | [
"liadkeller@gmail.com"
] | liadkeller@gmail.com |
3fc2dbb3e16a2861f18b339ee15022a85d67550f | 6b7bdeff133c37245698e450a01f75bb6a97c2a4 | /28.colordialog.py | 4a47f37fbfa2e3611337d803621896fb32a462cf | [] | no_license | HardPlant/PyQT | 9bb4f8e53417ede638bddd63571ade506785d2fb | fae0315620b3005ead451a170214c1334bac7fab | refs/heads/master | 2020-03-24T23:49:47.248763 | 2018-08-05T07:59:17 | 2018-08-05T07:59:17 | 143,155,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from PyQt5.QtWidgets import (QWidget, QPushButton, QFrame,
QColorDialog, QApplication)
from PyQt5.QtGui import QColor
import sys
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
col = QColor(0, 0, ... | [
"abc7988se@naver.com"
] | abc7988se@naver.com |
097ab129b8cef6b5640d70cae31e5546bfea0ef8 | 74970207d288128116f524e391f3289751bd7c2c | /nodetype/ntcompiler.py | c582073448ea2c15b171120552211251a90b4920 | [] | no_license | locha0305/NodeType | c8b50ad093fe4da2c2ecb49816fcb73b888b23dd | f0f13d0a7f65671b006bec22bdeb59d7267591cb | refs/heads/main | 2023-02-03T19:02:37.829436 | 2020-12-19T08:30:08 | 2020-12-19T08:30:08 | 314,925,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | import sys
import os
import essentials.datatype as dt
def init():
version = 0.1
author = "locha"
github = "https://github.com/locha0305"
email = "locha0305@naver.com"
print("NodeType v{}".format(version))
print("developed by {}".format(author))
print("github : {}".format(... | [
"noreply@github.com"
] | noreply@github.com |
8957329d0d8ff6f99b71d40d998f8fc8936ea358 | f355c9bec04b07072416a8c8a225f4bca9710eda | /Simple_Calculator.py | 4a0e986e090ff4a91314bc7921925cd28168db7f | [] | no_license | ramyadevisetty/St07 | 37be0ef873104f13621b914d75569aed44d815c4 | 981df79e572c15b4f4448a797800eeb1ac135bd7 | refs/heads/main | 2023-03-20T21:53:01.658961 | 2021-03-13T21:27:53 | 2021-03-13T21:27:53 | 347,480,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | class Calculator:
def add(self,x, y):
"""This function adds two numbers"""
return x + y
def subtract(self,x, y):
"""This function subtracts two numbers"""
return x - y
def multiply(self,x, y):
"""This function multiplies two numbers"""
retur... | [
"noreply@github.com"
] | noreply@github.com |
1883005efee9489e335963b21d681e133037c0b4 | f2da6fa4b7bc6bc7f1287bc3627aaab03a32d75b | /mindaffectBCI/decoder/scoreOutput.py | c2a5ab80b98341d7195c97f97a6cb5e60ede8e5a | [
"MIT"
] | permissive | wozu-dichter/pymindaffectBCI | 0591f6100bc5091a03934ffa4a0d4924f7fd324e | f9ba5391c70bf08a5f3c198471c91ebaaa1e51e9 | refs/heads/master | 2023-02-05T16:32:37.668123 | 2020-08-18T10:40:00 | 2020-08-18T10:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,783 | py | import numpy as np
from .utils import window_axis
#@function
def scoreOutput(Fe, Ye, dedup0=None, R=None, offset=0, outputscore='ip'):
'''
score each output given information on which stim-sequences corrospend to which inputs
Inputs:
Fe = (nM,nTrl,nSamp,nE) similarity score for each event type for ea... | [
"jadref@gmail.com"
] | jadref@gmail.com |
fbbd0793087768772b3bee556b1c90f6bc381436 | f54f92b59fec69618d5dac838a11c70d1f8b1dc3 | /shiboqi_main.py | c236d2e9178091d00bff85d3b6744ef144bac00e | [] | no_license | TobinZuo/Accelerometer-Show | 80e52eff9d89992278e2f0d6654371abae16a8b8 | cd9b9b829e8912f7cb7b24d0eb3c2035dedfb466 | refs/heads/main | 2023-02-26T03:21:21.347404 | 2021-01-25T09:27:48 | 2021-01-25T09:27:48 | 332,691,345 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,315 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'shiboqi_main.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
M... | [
"zuotongbin@gmail.com"
] | zuotongbin@gmail.com |
122930506c28e46e8f3824cd3c587a495af5f7d0 | c52a0cc3980a677c9ee800b0b6be1e2b3cc34a8c | /food/migrations/0002_food_image.py | a87ae57e521015e4b5a5951ccd3ab8e5906e26a1 | [] | no_license | ilonajulczuk/pierogi | 91669d0b1f2c4f2f7866dbb93c1925f97a1142f9 | c1aa7042b6747186cde09341da36cebba4dcc059 | refs/heads/master | 2021-01-10T10:17:53.071708 | 2015-11-28T16:54:28 | 2015-11-28T16:54:31 | 47,017,910 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('food', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='food',
name='image',
... | [
"justyna.janczyszyn@10clouds.com"
] | justyna.janczyszyn@10clouds.com |
a2fc957ea31628458121317a6f5f24ed91d611ed | dfe4e50a8b30a992df1183d82ffc4c16484f70fb | /deep_learning/deep-learning-from-scratch-8ca57dea36b05ffe6bc4486069e5ffb9bd444285/ch01/image_practice.py | e5a2a2f9dcdb3b2f75d3706d9869f11dd15ab78a | [
"MIT"
] | permissive | TaeSanKIM/python | 9ce68cbfebc14afd9c33ccfc4ce2c96635eb607a | e90e811787332a6b2157c2387ec59070ddaa4b38 | refs/heads/master | 2021-04-27T00:11:37.910593 | 2018-03-04T07:43:35 | 2018-03-04T07:43:35 | 123,766,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import numpy as np
import sys, os
sys.path.append(os.pardir)
from dataset.mnist import load_mnist
from PIL import image
def img_show(img):
pil_img = Image.fromarray(np.unit8(img))
pil_img.show()
(x_train, t_train), (x_test, t_test) = load_mnist(flatten=True, normalize=False)
img = x_train[0]
label = t_train... | [
"ktmountain@naver.com"
] | ktmountain@naver.com |
99acaf4d8d8b122af0d5303d0ea2bdd629a4d952 | 56c02cf652971b366c05b7a77db0292467cf331e | /src/kegg.py | fdb2c12f5549e5da1c3bc2d8f9a252f3c98f4749 | [] | no_license | mlorthiois/gene-annotation-summary | d3d44898c86b214ab15e245689c54cfe0f15d6bf | 47ea082dbdc8af27fa4d8c67016f3344d9316954 | refs/heads/master | 2022-04-11T12:19:38.082993 | 2020-03-04T19:42:54 | 2020-03-04T19:42:54 | 236,598,278 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | import requests
import re
def kegg(ncbi, output_file):
"""Find pathway in the Go database from NCBI Gene ID.
Find KEGG pathways of a protein (from NCBI Gene ID),
and write them in a column of a HTML table.
Args:
ncbi (str) : NCBI Gene ID. For example : '5888'.
output_file (open file... | [
"matthias.lts@gmail.com"
] | matthias.lts@gmail.com |
9e131733e27c3f1393787522057b146c61ee6e8e | 152cd8c6a11243f47287cc9e19feacc0e803778f | /meiduo_mall/apps/areas/migrations/0001_initial.py | 0f0e3632eb0eacc2980daebdbda86bc384f88f0e | [
"MIT"
] | permissive | MarioKarting/Django_meiduo_project | dfc21ab75996f4f58d5050d9e3bc173eaa625d13 | ef06e70b1ddb6709983ebb644452c980afc29000 | refs/heads/master | 2020-07-03T23:06:01.877057 | 2019-08-13T07:13:04 | 2019-08-13T07:13:04 | 202,080,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-06-07 02:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"429325776@qq.com"
] | 429325776@qq.com |
f3fcc8e1a040d4f9f545a1d0c68f148c8eb6bebc | 202ce29f510e451d407e9aef34daf8e21eefcd3d | /data-mining-assignments/hw5/hw5.py | 6e5561f5244ac2876bea097f339f6d466c035c36 | [] | no_license | DragonZ/college-work | 754e9a6d077794cc7858bdac668c9b2264b79ab6 | d4100eef4f0079cf6340e14952ace6b558ffe595 | refs/heads/master | 2021-01-10T17:07:42.786312 | 2016-03-09T00:58:59 | 2016-03-09T00:58:59 | 53,442,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,633 | py | import collections, csv, random, sys, re, time, ast, pickle, operator
from scipy import stats
def extract_top_2000_words(file_table):
allwords = []
# here traversal the first level
for row in file_table:
allwords += row
top2000_words_withcount = collections.Counter(allwords).most_common()[100:2... | [
"lzhen@Longs-MBP.attlocal.net"
] | lzhen@Longs-MBP.attlocal.net |
8655a86f4d99e4dc3d21d0a740e200eda1cd4269 | 66643f48950453dd1cc408a763360db2be9942f6 | /tests/validation/test_executable_definitions.py | 4a21c63b65e4397cb38e995fa01b69400852109f | [
"MIT"
] | permissive | khasbilegt/graphql-core | ac958b5a68c27acd0c7f96429deeca7f7f8736b3 | fc76d01a2a134ba2cebd863bf48773fd44c2645b | refs/heads/main | 2023-08-05T06:03:56.299244 | 2021-09-19T10:31:30 | 2021-09-19T10:31:30 | 408,735,141 | 1 | 0 | MIT | 2021-09-21T08:00:36 | 2021-09-21T08:00:35 | null | UTF-8 | Python | false | false | 2,234 | py | from functools import partial
from graphql.validation import ExecutableDefinitionsRule
from .harness import assert_validation_errors
assert_errors = partial(assert_validation_errors, ExecutableDefinitionsRule)
assert_valid = partial(assert_errors, errors=[])
def describe_validate_executable_definitions():
def... | [
"cito@online.de"
] | cito@online.de |
a35fc58e8d48e6b0306595b3c3cdc5d79273a1aa | dba8d5e1e290192221e7b297e1303253a10fb24d | /wandb/sdk/internal/handler.py | e84b8c046944ced72437961a2fdfb76c81edcf81 | [
"MIT"
] | permissive | haenara-shin/wandb_client | 9c916f84e253cf68e4f37ef54ff30b006a8852f3 | 94c226afc4925535e6301c9bc9b9ee36061d99d4 | refs/heads/master | 2023-04-18T13:51:43.411681 | 2021-05-11T02:16:33 | 2021-05-11T02:16:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,507 | py | #
# -*- coding: utf-8 -*-
"""Handle Manager."""
from __future__ import print_function
import json
import logging
import math
import numbers
import os
import six
import wandb
from wandb.proto import wandb_internal_pb2
from . import meta, sample, stats
from . import tb_watcher
from ..lib import handler_util, proto_ut... | [
"noreply@github.com"
] | noreply@github.com |
74566c72ad1bf535d7b33226ee11c151e31b808f | 3bee14adad765f2193915326a474e6594ff91ec7 | /old/lr_finder.py | ae306cd594f9285219ebdeac7a6245c01a0afb14 | [] | no_license | Cirets0h/atml19 | 77bbb71cb11a64a24746987242e09aeee0ec2758 | 3d2740b1018a1adc648699b203133f04b5bffbe1 | refs/heads/master | 2020-04-28T09:57:46.993136 | 2019-05-21T05:45:55 | 2019-05-21T05:45:55 | 175,186,055 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,809 | py | from __future__ import print_function, with_statement, division
import numpy as np
import copy
import os
import torch
#from tqdm.autonotebook import tqdm
from torch.optim.lr_scheduler import _LRScheduler
import matplotlib.pyplot as plt
class LRFinder(object):
"""Learning rate range test.
The learning rate ra... | [
"andre.ryser@gmail.com"
] | andre.ryser@gmail.com |
d95fb552556fe37b61378dbfef21dcd4b15356dd | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Vue.js/juejin_2910.py | 433d99a184537f0048d01e9b65145675a9d3cc65 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,851 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6919726191666528263", "article_info": {"article_id": "6919726191666528263", "user_id": "2400989127905352", "category_id": "6809637767543259144", "tag_ids": [6809640369764958215], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "vu... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
021e27b295aa1e58939d5d8842368e01465b03e1 | 746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99 | /android/external/adt-infra/build/scripts/slave/recipes/skia/skia.py | c27eafe8ca462660a9cd4d803724a7fb4193b04d | [] | no_license | binsys/BPI-A64-Android7 | c49b0d3a785811b7f0376c92100c6ac102bb858c | 751fadaacec8493a10461661d80fce4b775dd5de | refs/heads/master | 2023-05-11T18:31:41.505222 | 2020-07-13T04:27:40 | 2020-07-13T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,098 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Recipe module for Skia builders.
DEPS = [
'json',
'path',
'platform',
'properties',
'raw_io',
'skia',
]
TEST_BUILDERS = {
'client.skia':... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
6d8b0b5732d62a9cf3767687b8e8763bebd74f0c | 0c154919a427bad71598bae69a8b5b6b94bc2627 | /Posts/migrations/0008_post_vote.py | 1f9c7557cad3250dbbcd9af07789b7d0075280aa | [] | no_license | MichalDrosio/blog | b7b56ffd35ef82d2a5c3c791eff8d326644f5627 | ebb7c07f29ea9de1f872bfeea79ae6d0c4822766 | refs/heads/master | 2020-12-22T13:02:54.573249 | 2020-07-27T11:25:16 | 2020-07-27T11:25:16 | 236,775,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 3.0.8 on 2020-07-24 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Posts', '0007_auto_20200723_1357'),
]
operations = [
migrations.AddField(
model_name='post',
name='vote',
... | [
"drosio.michal@gmail.com"
] | drosio.michal@gmail.com |
0f2b6251b864a2798282730b3fa7e054c2bdbc3b | 795d7860d6c58b06cd935ce858594af14f8b3d79 | /django/analysis/views/__init__.py | aa24512d5af029858e00e8c12f98f88d8a096031 | [] | no_license | sbhr/narou | d18e81af74bb4c83a99f8deb2f318750824c50f2 | 2601b6fb3bc49aebd5455d7c85ebf58a853829b9 | refs/heads/master | 2021-03-27T12:31:11.022019 | 2017-10-01T07:01:21 | 2017-10-01T07:01:21 | 54,224,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import index
import about
import ranking
import RankingList
import search_letter
import search_title
import detail_letter
import detail_title
| [
"sbhr.123@gmail.com"
] | sbhr.123@gmail.com |
629bb2ace85054f0e0e1bf16e25f739810db624e | 0e834094f5e4274b279939b81caedec7d8ef2c73 | /m3/django_/mysite3/book/migrations/0003_auto_20200115_1745.py | e90a76a3af2a4b4753b0bf2a493db5ffb36cf7a9 | [] | no_license | SpringSnowB/All-file | b74eaebe1d54e1410945eaca62c70277a01ef0bf | 03485c60e7c07352aee621df94455da3d466b872 | refs/heads/master | 2020-11-27T23:54:36.984555 | 2020-01-21T08:42:21 | 2020-01-21T08:42:21 | 229,651,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2020-01-15 09:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0002_auto_20200115_1603'),
]
operations = [
migrations.CreateModel(... | [
"tszxwsb@163.com"
] | tszxwsb@163.com |
37b2b85da6f95fe407e802ee89f5b1e8d5f1697d | 4e068621a6103ff66b74c60a66086877f26b8021 | /personal_portfolio/settings.py | 4ffd76d84e947e36cbade636d018841f79fe90e6 | [] | no_license | rohit-1305/Dajngo-Personal_Portfolio | 955cc9803c6330e2253a55bf8bce3c6d86b4a004 | 2ad60ba2eab45b8c09d48a2f75c242b27fd7dfe1 | refs/heads/master | 2022-12-31T02:04:57.313260 | 2020-10-20T06:02:29 | 2020-10-20T06:02:29 | 283,790,669 | 1 | 2 | null | 2020-10-20T06:02:30 | 2020-07-30T14:00:15 | Python | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for personal_portfolio project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"rohitsav1305@gmail.com"
] | rohitsav1305@gmail.com |
23b3a98920da0a1ec1e67bcbc3edf4adf756c662 | e36b3e56576c398aabf7dfe5a82b9f4950eb707a | /UI/Graduation/inputNewResult.py | 18d6e731c1bbf8bf19696edb807a96fb244c604f | [
"Apache-2.0"
] | permissive | Biggig/xlnet | 7e69f94c3de9a7d50b8b019d99528fac18b440b4 | 8f69d95f92c5b0bbc26920d8d6f62f2362a5738c | refs/heads/master | 2021-02-07T05:07:20.422637 | 2020-04-08T17:43:44 | 2020-04-08T17:43:44 | 243,985,965 | 0 | 0 | Apache-2.0 | 2020-02-29T14:45:06 | 2020-02-29T14:45:06 | null | UTF-8 | Python | false | false | 895 | py | import json
import django
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Graduation.settings")
django.setup()
def main():
from ReadingTest.models import Reading, Q_A
data_path = os.getcwd() + '\predict_result_new\\'
all_path = os.walk(data_path)
for path, dir_list, file_list in all_path:... | [
"756983026@qq.com"
] | 756983026@qq.com |
0f2d47b13afc8cda18a4ff436ac94aa01541396e | 111bb49dd6b335940b557d7ca77f4776baf719c1 | /bin/python-config | 4405b857a5d58dede91b54d337bd769e5acf5e1e | [] | no_license | venigreat/Tests | f8e942b95c1a575c5ac1ff8d18d2ef9a425dd5d5 | aadb8f855f1b0533a681060615510bbf3a53f5ae | refs/heads/master | 2020-03-19T11:32:56.396082 | 2018-06-09T13:27:51 | 2018-06-09T13:27:51 | 136,461,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | #!/Users/andrey.belyaev/PycharmProjects/Apium/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
... | [
"asbelyaew@gmail.com"
] | asbelyaew@gmail.com | |
231fa35f3981bdd6928277558e138bcd4a06c5ea | 9e4e134f0a7ed5896c72ed68a4f8ce1de6853616 | /pages/account_page.py | 41778ad449d5fabfafd6486fe0645598da5a5686 | [] | no_license | G4beXYZ/ProjetoMantisAuto | b066098802e2a6f87b8c5cea1217248d4afc93de | 1a66295a4f3e7e9c79c5b8c2572902f86a9a9a03 | refs/heads/main | 2023-05-30T09:21:38.522654 | 2021-06-18T00:04:16 | 2021-06-18T00:04:16 | 377,928,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,947 | py | from browser import Browser,Keys
# Classe especial para armazenar algumas variáveis com um valor fixo de uma pagina (facilita o acesso)
class AccountPageElement(object):
WARN = '//*[@id="main-container"]/div/div/div/div/div[4]/p/text()'
WARN_PHRASE = "Você está visitando uma página segura, e sua sessão expirou... | [
"gabricanu@terra.com.br"
] | gabricanu@terra.com.br |
49e1451854a1eb87e9c642d56cd742a849dfe9e2 | 36934ac28f41c8c64c78bcea2fb3e496ec39675f | /day_12/p2.py | 1ec9098e9d1e651a802bb826dc2b8401edd562bc | [] | no_license | drew-ellingson/advent_of_code_2017 | c30b641523ee515e717e3cae1771312b110cd575 | ceae49dc173813e681cfb410015d3d17927457a0 | refs/heads/master | 2020-07-10T05:54:31.756676 | 2019-09-22T15:04:07 | 2019-09-22T15:04:07 | 204,184,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | with open('input.txt') as my_file:
lines = [line.strip('\n').split(' <-> ') for line in my_file.readlines()]
graph_dict = {int(line[0]):[int(pipe) for pipe in line[1].split(', ')] for line in lines}
in_a_group = []
""" thinking of this as a walk on a graph, adds the nodes one step further"""
def add_... | [
"noreply@github.com"
] | noreply@github.com |
6267d925f4ba5879b734a6dcba1640ccedeb8b48 | a2eaa3decc385dea227da8a99203f767f32cf941 | /electronic_station/ascending_list.py | 98a5261f1acf37986d291eb1cd62bca1a61480d4 | [] | no_license | vlad-bezden/py.checkio | 94db32111eeeb2cd90c7b3c4606ea72cf2bb6678 | 6cd870ca3056cc9dcdce0ad520c27e92311719b3 | refs/heads/master | 2021-07-01T18:39:35.955671 | 2020-10-05T00:56:38 | 2020-10-05T00:56:38 | 93,111,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | """Ascending List
https://py.checkio.org/en/mission/ascending-list/
Determine whether the sequence of elements items is ascending so that its
each element is strictly larger than (and not merely equal to) the
element that precedes it.
Input: Iterable with ints.
Output: bool
Output:
i... | [
"vlad.bezden@gmail.com"
] | vlad.bezden@gmail.com |
9d79a11f4f78e82aa7f30a57486d44d4a7f7df4c | 20bcae34d9010ee67e8c77d64f8afec1ec6b7465 | /Code/Models.py | c4225bed7a5afb97b42253df087fd083de9c1c4a | [] | no_license | siyukenny/ExpO | ead6e810458bc443468ee2b75f0bd36a454e6504 | fdc80bdd09d02c3345a17365105d2fda804eb40b | refs/heads/master | 2022-12-30T16:29:37.170818 | 2020-10-16T20:23:43 | 2020-10-16T20:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py |
import tensorflow as tf
class MLP():
# shape[0] = input dimension
# shape[end] = output dimension
def __init__(self, shape):
self.shape = shape
self.weight_init = tf.contrib.layers.xavier_initializer()
self.bias_init = tf.constant_initializer(0.0)
def layer(self, input, in... | [
"plumbdg@gmail.com"
] | plumbdg@gmail.com |
11734eca3d5b6ed18f796550d760ff9fcc2c83e7 | 7ec29c87b2220aa8c20d5be3465eda00cf072f4d | /lib/command/remove_command.py | 27e0cf701f5ea26d4fd5246dbdbd03ce9efa1c89 | [] | no_license | mdlugajczyk/computing-infrastructure-assignment | 63146f264e14d34a47e5c9dd333c00d93d8550cd | ca9198ea01d991e803947043604d9c267ed5b7e5 | refs/heads/master | 2020-04-01T14:45:21.991556 | 2014-04-07T14:36:46 | 2014-04-07T14:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/env python
import argparse
from lib.saga_service.filesystem_service import FilesystemService
from lib.command.command_template import CommandTemplate
class RemoveCommand(CommandTemplate):
"""
A UNIX like rm command for removing files.
Directories are not supported.
"""
def parse_args(... | [
"dlugajczykmarcin@gmail.com"
] | dlugajczykmarcin@gmail.com |
c92452059858097f6e7e9190c803bb425c49d0b9 | f0c6d2bd80d29da8a273fde37c3932438275b57c | /ihealthdata/utils/SwitchCase.py | 9cc5f34b5748049a99e7dd79fe49c38a1489e70b | [] | no_license | ofsinnovation/hls-sparkojfapp-shield | fd1acb9ab37037a1bac066e9dbc752a0ce7160d3 | 4421efef45f32693bf1d40a68c10c16267292c54 | refs/heads/master | 2021-01-20T06:42:45.546791 | 2017-05-16T20:58:28 | 2017-05-16T20:58:28 | 89,911,980 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | class SwitchCase(object):
def __init__(self, value):
self.value = value
self.fall = False
def __iter__(self):
"""Return the match method once, then stop"""
yield self.match
raise StopIteration
def match(self, *args):
"""Indicate whether or not to enter a case ... | [
"ganapathy.subramanian@object-frontier.com"
] | ganapathy.subramanian@object-frontier.com |
b03c20c06b007718fdc3396885410fb6db0e19f2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hQRuQguN4bKyM2gik_21.py | d59885f89bac86c7d6d3eae679f0d6dbfb33395c | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py |
def simple_check(a, b):
lo, hi = min(a,b), max(a,b)
cnt = 0
for i in range(lo):
if hi % lo == 0:
cnt += 1
hi = hi - 1
lo = lo - 1
return cnt
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
45c599cf13145968e7cb58b46e7dfb9b36b32daa | 289d212e958384d86af0f98996ce73fde882bd85 | /bloch.py | 1859f51272d67730946a0b832cda34f27658d575 | [] | no_license | mouehab/MRI-Task-1 | 2912a77dd1e795fc08ec28e873695ec4dc8bb031 | c6bb380890a43d78fa77f694d9340a2d59448dd0 | refs/heads/master | 2021-05-21T08:43:09.165432 | 2020-04-06T16:59:02 | 2020-04-06T16:59:02 | 252,623,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import math
import enum
import sys
class Modes(enum.Enum):
recovery = 1
decay = 2
precession = 3
magVector=[1,1,1]
magVector1=[None]*2
xVector=[]
yVector=[]
fig, ax = plt.subplots()
line, = ax.plot([], [], lw... | [
"mooehab988@gmail.com"
] | mooehab988@gmail.com |
960758d8355d39ceceed1951181ddf3b7bd0da22 | e569c41ec81382630693d3bc0a163c06a6a23d52 | /PythonProgramming/ICP7/exercise.py | 4b88a65c0f4c3a600d0e725387a35a2241175a01 | [] | no_license | Sravanthi-Gogadi/PythonDeeplearningCourse | 20a074763283c3bdbcbc3846576509c5e7a733e9 | 037e94f19362635dd6911cdbd70f60830ec51f5c | refs/heads/master | 2020-03-19T08:21:18.901163 | 2018-07-28T04:39:00 | 2018-07-28T04:39:00 | 136,197,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | # import beautifulsoap package to get the data from url
from bs4 import BeautifulSoup
import urllib.request
#import nltk package
import nltk
# import stemmer and lemmatizer
from nltk.stem import PorterStemmer
from nltk.stem import WordNetLemmatizer
from nltk.util import trigrams
from nltk import ne_chunk
'''Get the tex... | [
"sravanthigogadi@gmail.com"
] | sravanthigogadi@gmail.com |
614225b8073e6d76f809b652caf54b6e2dc2d2fc | 1e249b27001dafb2ac73f34c9f271c444c618252 | /node_modules/glob-watcher/node_modules/fsevents/build/config.gypi | a3fd4588eb69535868aa65a6968067cbd48da0a0 | [
"MIT"
] | permissive | hsin-yunn/hex_school_week6 | e78c593060b9e7fb0578c2fe8a440d057f573df9 | 916af5e8412be0dd364cc62cf4d30ab8317bd139 | refs/heads/master | 2023-07-07T23:34:02.420434 | 2021-08-24T14:36:01 | 2021-08-24T14:36:01 | 393,963,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"ruby8941@gmail.com"
] | ruby8941@gmail.com |
850a3418ed0f61a65a90ea5281ae98f2f44ada75 | f278ad99e0df2c4d6832f20fa8a6df54cc65e2a0 | /src/python/greenhaus-cli/src/greenhaus-cli | 9ec1041da9ba7a406242a1e2d2e40e5c5d337482 | [
"MIT"
] | permissive | stefanadelbert/greenhaus | 5fcb31a520e978717d5f19c9bb8c1b98e155a66b | 776a6b78addb09ac7d59ab6dace077f52e7aa8dc | refs/heads/master | 2020-12-29T18:46:30.154126 | 2016-04-17T11:47:57 | 2016-04-17T11:47:57 | 56,431,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | #!/usr/bin/env python
import logging
import logging.handlers
import cmd2
import redis
LOG = logging.getLogger(__name__)
class App(cmd2.Cmd):
use_rawinput = True
doc_header = "Shell commands (type help <topic>):"
app_cmd_header = "Application commands (type help <topic>):"
def __init__(self)... | [
"stef@vivcourt.com"
] | stef@vivcourt.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.