blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09e93c96494e49a2d86292c5fba4b0ca5dd942cb | bda539dedce550a3242cd9a2a4bb61782a924c12 | /git/training/runTraining.py | 26cb6e270bf3928f7bc110871628979131099a59 | [] | no_license | joohwankim/deepgazekickoff | 37222c937faca070a848bf97b1d85df518659d48 | b30cc51de247be75cee510240868e6a31e08a815 | refs/heads/master | 2020-03-18T10:17:21.847000 | 2018-05-29T14:31:21 | 2018-05-29T14:31:21 | 134,605,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | """
Copyright (C) 2017 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-ND 4.0 license (https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode).
"""
import argparse, logging, os, dlcore.train, sys
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('-j',... | [
"sckim@nvidia.com"
] | sckim@nvidia.com |
4ec4d34dab5f7644e361280ca777fc5fb41fdb92 | 782efe22f3251a701796e68e82fbce27c2ce2d8f | /Discussion/migrations/0042_auto_20200515_1217.py | 0b9097e87756d35dd0f7ac9dcbb9599753393a94 | [] | no_license | Escalation99/Workev | ffc10e64776bf90d206a4a7a8ef3655c22f0223b | c2312c54c152b823e991ef5955b5d2df7ff58222 | refs/heads/main | 2023-03-13T05:36:54.386719 | 2021-03-06T10:27:06 | 2021-03-06T10:27:06 | 310,613,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-05-15 05:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Discussion', '0041_auto_20200513_1402'),
]
operations = [
migrations.Alter... | [
"raytommy1234@gmail.com"
] | raytommy1234@gmail.com |
5827494e28c8324f3fe91b182ec76744a95c029b | aef02ad0a2b36e763af4b6de84399fcbfb788faf | /LPHW/ex6.py | 4d116c7b7f3dba9e3e1cb77c6d4b06c35e1b0fbb | [] | no_license | kanishkd4/Python_Learning_code | 98cf74cbbeef34f594804b515438f24775feddbf | 62a6b1745f4c8624ed4207ab38c83f0a7ead99c9 | refs/heads/master | 2020-04-15T12:44:52.828258 | 2018-04-05T09:56:35 | 2018-04-05T09:56:35 | 61,795,436 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 410 | py |
x = "there are %d types of people." %10
binary = "binary"
do_not = "don't"
y = "those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I said %r" % x
print "I also said: '%s'" % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print joke_evaluation % hilario... | [
"noreply@github.com"
] | kanishkd4.noreply@github.com |
1d539066706ca4f69d3130d49688deb922c477b3 | 98311c7b2b2257f14f0f4a0657363e893872798e | /project/src/python/practicum.py | e3f1dfcf9ef76f4b71a4dd1106d26832dc48802f | [
"MIT"
] | permissive | aslupin/Yak-Ngaen-Project | fed9a264a863e1174c00ec8ad360f1c03422f393 | c91b3cc83d2eda22b62fe877276bdd1a8a1b24fd | refs/heads/master | 2022-01-28T02:44:39.385903 | 2019-05-09T13:36:04 | 2019-05-09T13:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | import usb
# RQ_SET_LED = 0
# RQ_SET_LED_VALUE = 1
# RQ_GET_SWITCH = 2
# RQ_GET_LIGHT = 3
RQ_GET_SOUND_PLAYER_I = 1
RQ_GET_SOUND_PLAYER_II = 2
####################################
def find_mcu_boards():
'''
Find all Practicum MCU boards attached to the machine, then return a list
of USB device handles for a... | [
"poon_arsene_lupin@hotmail.com"
] | poon_arsene_lupin@hotmail.com |
0d5612bcf83e90343b35f237bfbb6536fe5a32fc | 99dbc0388a1396d9d0f636ba6ad4e7ce6b646637 | /app/frontend/views.py | 4ae6ddaba7060c91bb981e1d735c5289f1895cb6 | [] | no_license | thefedoration/tracker-widgets | 9469f27a023cc6c4f3cb1161f39452deb58ce282 | 47bd08030a8ced3b6ddf2c48cc41f8f0b705aa79 | refs/heads/master | 2021-06-22T04:44:47.565674 | 2017-05-15T13:32:27 | 2017-05-15T13:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django.shortcuts import render, redirect
# serves up frontend bundle
def index(request):
# if user is logged in, fire up the frontend app
if request.user.is_authenticated():
return render(request, 'frontend/index.html')
# otherwise not logged in, send them to login screen
pat... | [
"fedor@pymetrics.com"
] | fedor@pymetrics.com |
a921a15b368f2785bb530b40113b34630061be52 | 0974dd03a2c169c9186d74bb9c4f80ea68802331 | /bin/f2py2 | 3f101a41698295cedc62c9ebc308c351e8e37718 | [] | no_license | devashah7/instameme | edb4a0cf8e80560eef54e0aa40a19fd4deb0c99c | 8ba27800dc5624f80672fae3f727ece5fcd779a2 | refs/heads/master | 2020-08-09T06:25:03.011987 | 2019-10-09T20:42:57 | 2019-10-09T20:42:57 | 214,018,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/dshah/Desktop/insta/insta/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dshah@hcn-inc.com"
] | dshah@hcn-inc.com | |
8951afe2b51d654fd469ed7fd936879e3610aa30 | 35894bca47cf0c9a51a05caf7b56a0d69c05b033 | /04_subrotinas_numpy/25_fibonacci.py | 1067f8b8abc1c15bc44a985e9b4f892471d34f46 | [] | no_license | alcebytes/Phyton-Estudo | 0a2d33f5f3e668e6ab2f99e5e4499545a3bc1273 | a3f9a0b3e0a91d71a9359480d6ec17e692572694 | refs/heads/master | 2023-01-14T17:24:16.486956 | 2020-10-08T02:02:02 | 2020-10-08T02:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | import time as time
num_iter = int(input("Digitar o valor do número máximo para a sequência de Fibonacci = "))
tempo_inicio = time.time()
#tempo_inicio_CPU = time.clock() #ABSOLETO
tempo_inicio_CPU = time.process_time()
tempo_inicio_CPU_2 = time.perf_counter()
# f(0)
f = []
f.append(0)
print(f)
# f(1)
f.append(1)... | [
"x_kata@hotmail.com"
] | x_kata@hotmail.com |
d1963e7cc009082ee066bf6e7b3db7e2a3f62383 | 6472cd640341f4bcc3867c3579a87ee8b763ae15 | /conventionalAI/venv/lib/python3.6/site-packages/rivescript/rivescript.py | 95fdae4013df4e458c3448a8cef0dfdd83a16f8e | [] | no_license | iafjayoza/Machine_Learning | 7e9664cb6da6e0521e3475c9f80acd3ff15d1fc8 | aba8fd939194b839da03f4c1ebd9eac8331d0b90 | refs/heads/master | 2023-06-01T14:28:59.391643 | 2021-06-25T17:12:57 | 2021-06-25T17:12:57 | 380,303,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103,656 | py | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2016 Noah Petherbridge
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... | [
"jaykumar.oza@jeppesen.com"
] | jaykumar.oza@jeppesen.com |
9da01c5fe4850d89d6df0c28383d6624f962e764 | 83179abbad0032fd3c8c38a54260ac4239ba9df3 | /2021/python/day15/day15.py | 24a8f0e5bd6154fc5d2140e760a2d5b58031e146 | [] | no_license | yulrizka/adventofcode | 448ac89ae543c8a7ee46bb5f86abc62887e3a9ee | 74b89528e07ae6282763968d5bb3d8eea38e07ba | refs/heads/master | 2023-01-13T03:57:20.688851 | 2022-12-22T11:11:59 | 2022-12-22T11:11:59 | 225,181,497 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | import queue
import unittest
# with open("../../input/day15-sample") as f:
with open("../../input/day15") as f:
raw = [[int(x) for x in y] for y in f.read().strip().split("\n")]
def wrap(x):
while x > 9:
x = x - 9
return x
data2 = raw.copy()
for i in range(4):
row = list(map(lambda x: list(... | [
"yulrizka@users.noreply.github.com"
] | yulrizka@users.noreply.github.com |
ebb0ee33e3d8bde61a40935c59eb8b4e2c250d40 | 9e8a90e8c9bc90d9ea34b79e7553a7ba2fd4e6bf | /models/networkSwitch.py | bded10111bfacc3b5285280e628f5a076988367a | [] | no_license | lwyanne/CPAE | ddae51affcca8db0266bf66f091f165d95bd7837 | e155dfecf3f38ed7121a8a446dc4eeb4067b7e46 | refs/heads/master | 2023-07-28T13:12:22.372796 | 2021-08-27T15:09:58 | 2021-08-27T15:09:58 | 353,564,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,346 | py | from __future__ import print_function
from torch.nn.utils.rnn import pack_padded_sequence
import inspect
import os, sys
import logging
# add the top-level directory of this project to sys.path so that we can import modules without error
from models.loss import Chimera_loss, record_loss, mask_where, mapping_where, mas... | [
"anonymousparti28@gmail.com"
] | anonymousparti28@gmail.com |
86c976754fbba24178415faffcb3f295036aef07 | b4e9c9927f4839dcf2e03b26d51cc08f1ad5c362 | /el7toel8/acme/actors/acmestoragemigrator/actor.py | 9a312a6f0840ebb57cf8e6aa7e8d83031aa43db0 | [] | no_license | shaded-enmity/isv-repositories | cbde5baacf49029a4122541987ec30f634c9c85f | 8f52c44cc6c0d663c5ceef2eea92aea759d20899 | refs/heads/master | 2022-06-21T00:11:25.417412 | 2020-05-06T15:05:18 | 2020-05-06T15:05:18 | 261,727,873 | 0 | 0 | null | 2020-05-06T15:05:19 | 2020-05-06T10:39:07 | null | UTF-8 | Python | false | false | 1,380 | py | from leapp.actors import Actor
from leapp.models import Report, AcmeStorageInfo
from leapp.tags import FirstBootPhaseTag, IPUWorkflowTag
from leapp import reporting
import os
class AcmeStorageMigrator(Actor):
"""
Migrate ACME Storage device from old location to the new one
"""
name = 'acme_storage... | [
"noreply@github.com"
] | shaded-enmity.noreply@github.com |
ee4ec4d60d0e2809301b28150cd9934a01d330c6 | bffa0938e70732e992a5d5dc5fb30559fd0ceb7b | /Zadanie9/main.py | 7be093c8309014ad5a6351c1465cc96dc7c501d2 | [] | no_license | LenovoDobrynin/zadanie9.py | 281d5d4850dfb374a273701f588a323f0c524b48 | 54d75ff2645d447b6f31a9327feaadb1fbf0f21e | refs/heads/master | 2023-08-28T00:35:01.091714 | 2021-10-14T20:38:18 | 2021-10-14T20:38:18 | 417,274,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | a1 = float(input('Введите число а1: '))
a2 = float(input('Введите число a2: '))
a3 = float(input('Введите число a3: '))
b1 = float(input('Введите число b1: '))
b2 = float(input('Введите число b2: '))
b3 = float(input('Введите число b3: '))
c1 = float(input('Введите число c1: '))
c2 = float(input('Введите число c... | [
"noreply@github.com"
] | LenovoDobrynin.noreply@github.com |
d008e616c943f18e5f7f5c090bc112e713db99cf | c4b7b5a9c56a9b6394a14704d2faf76754175473 | /rooms/templatetags/is_booked.py | da615b5d82465d9cb146e16beb8eeaefaf53bbc4 | [] | no_license | seungjinhan/airbnb_clone_django | 71a15e5242bad28fd96d5f47652a049a77f12f61 | 4c38780746409ea1ed9b4f5b02abca60326752c2 | refs/heads/master | 2022-12-02T15:14:39.341441 | 2020-08-23T13:50:42 | 2020-08-23T13:50:42 | 280,878,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import datetime
from django import template
from reservations import models as reservation_model
register = template.Library()
@register.simple_tag
def is_booked(room, day):
if day.number == 0:
return False
try:
date = datetime.datetime(
year=day.year, month=day.month, day=day.numb... | [
"hanblues@gmail.com"
] | hanblues@gmail.com |
a6d6d50572836ba4614154dce36cf5e2c21f9c51 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02679/s613915096.py | fec86a56bc93ae2efcf62264eb570f7a448a4ed4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | import math, collections
N = int(input())
AB = [[int(_) for _ in input().split()] for _ in range(N)]
mod = 10**9 + 7
C = collections.Counter()
gcd = math.gcd
a0 = 0
for a, b in AB:
if a == b == 0:
a0 += 1
elif a == 0:
C[0, -1] += 1
else:
g = gcd(a, b)
a //= g
b //= g
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8bb434118d8a33e713f63403eaff1c739d22dc81 | 144c0ec2098c1a79f277729550262ab953a34aed | /logisticka.py | 32ff6f38f03be4fd21104c731494fc99743dc6be | [] | no_license | mkonjikovac/logistickaRegresija | ad7142d38824c70e992213ae8d4f6bb6ab2d74c7 | 37e58a40526a3679aeeaacbe49d5ad0e06d8881c | refs/heads/master | 2022-03-07T03:30:00.813775 | 2019-11-08T13:57:02 | 2019-11-08T13:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,989 | py | # logisticka
import pandas as pd
import numpy as np
import math
import matplotlib.pyplot as plt
import seaborn as sn
def standardization(x):
xs = np.copy(x)
for i in range(1, n):
xa = np.average(xs[:, i])
std = np.std(xs[:, i])
for j in range(m):
xs[j, i] = (xs[j, i] - xa)... | [
"mkonjikovac12@gmail.com"
] | mkonjikovac12@gmail.com |
e9811e3794478cb96fb7f9d5165286664ef1e3d4 | 67b8c98b89f45780b1a153b2a06ed9b76626df23 | /pyparrot_modified/pyparrot/networking/bleConnection.py | 95cec165f89ea2033ec44f380e408329ea22c022 | [
"MIT"
] | permissive | Hollyqui/PyStalk | fe37dccb583f083b284134d0787dc9ef5dfeee5e | 98abdaeb6194e79b402304a619182cec63074f2d | refs/heads/master | 2020-06-02T15:51:40.106253 | 2020-02-11T08:00:47 | 2020-02-11T08:00:47 | 191,217,500 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 27,229 | py | from bluepy.btle import Peripheral, UUID, DefaultDelegate, BTLEException
from pyparrot_modified.pyparrot.utils.colorPrint import color_print
import struct
import time
from pyparrot_modified.pyparrot.commandsandsensors.DroneSensorParser import get_data_format_and_size
from datetime import datetime
class MinidroneDelega... | [
"noreply@github.com"
] | Hollyqui.noreply@github.com |
a34d40955607245d7cd5152f6173d3ba1d85f7cd | 0e867a76d0263d40f78a643d466ebfc10b0ac4f0 | /activities/nmz/nmz_setup.py | bd9401b72f5fcf89e245c9ae516efefd4d687f25 | [
"MIT"
] | permissive | anordin95/replay_mouse | b49d29b0ce0c72ed347e178b982c96b93af678b9 | 569abe771cac3b639317b1ca97c98b0c486a4714 | refs/heads/master | 2022-07-04T18:28:57.299865 | 2020-05-16T14:33:41 | 2020-05-16T14:33:41 | 259,782,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | from pathlib import Path
from primitives.potion_tracker import setup_potions_tracker
from primitives.get_quick_pray_location import get_quick_pray_location
from primitives.record import record
PICKLE_FOLDER = Path('pickled_objects')
PRAYER_POTS_FILENAME = PICKLE_FOLDER / 'prayer_pots.pkl'
RANGE_POTS_FILENAME = PICKLE... | [
"anordin@butterflynetinc.com"
] | anordin@butterflynetinc.com |
428efb464a06b53657e381f76bf9e07b3382ba40 | 6fddeb3fb4be07e4c1063a0c49d1f25606fa78c2 | /WebProject1/primeiroPrograma.py | a6f6ef9bb480d32170e34644221afe8968666b18 | [] | no_license | RuanNunes/Logica-de-Programa-o-com-Python | d3f663881c2e51888608d9cf5f51c0956cdd10dd | 18b2b41e485d3e58ce2d5cf923e389cd146d7f18 | refs/heads/master | 2020-03-17T16:27:40.661667 | 2018-06-03T20:06:29 | 2018-06-03T20:06:29 | 133,749,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | class primeiroPrograma(object):
print('Meu Primeiro Programa')
num1 = int(input('Digite Um Numero:'))
num2 = int(input('Digite o Segundo Numero:'))
print('A soma dos numeros é:', num1 + num2)
pass
| [
"ruan.nunes@el.com.br"
] | ruan.nunes@el.com.br |
c77f59e3b90ce19c50bd0a77c092b148f74acab0 | 9d30a8c8620640b5e18c6aa5aa4bca6c01a60182 | /Code/utils/inference1.py | 13954a3246b767b1a5ad098f07456a4cfcff6c9b | [
"MIT"
] | permissive | zhouzhiyuan1/RADANet | 00ed5e2380007b53f918788d9e44fcec26c9ce21 | f0db67e5b16b5b566efd40402b7b2b2a5342d5ad | refs/heads/main | 2023-08-31T18:50:05.560253 | 2021-11-02T11:37:59 | 2021-11-02T11:37:59 | 423,765,661 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,803 | py | #!/usr/bin/env python3
# coding: utf-8
__author__ = 'cleardusk'
import numpy as np
from math import sqrt
import scipy.io as sio
import matplotlib.pyplot as plt
from .ddfa import reconstruct_vertex
def get_suffix(filename):
"""a.jpg -> jpg"""
pos = filename.rfind('.')
if pos == -1:
return ''
r... | [
"zy980203123@163.com"
] | zy980203123@163.com |
344ac01479164503dbab03b95cd598cba2744ea4 | 047ddbf7dc154786da48f4b5ab8968a7abcad24b | /genprimo.py | 51c4484a5e8c896c48e9515a294848b3c6413007 | [] | no_license | algoritmos-2019-2/clase-1-JAAD300 | ecea409136bcc63e4c778b43c5b339cbb4a718de | 0ab81d11a6532956636e8999a2f9ae11d75b8977 | refs/heads/master | 2020-04-19T20:03:19.553368 | 2019-04-01T05:40:22 | 2019-04-01T05:40:22 | 168,404,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #!/usr/bin/env python3
def checador(n):
for i in range(2, n):
if (n % i) == 0:
return print(n, "no es primo")
else:
return print(n, "es primo")
print("ingrese núm... | [
"jorge@Jorge-PC.localdomain"
] | jorge@Jorge-PC.localdomain |
6a27868511bae2d8a9d10a768aa6fea1b3b93397 | 7e246c308597762dccb129883706fb5f827b1f05 | /examples/cli_debug.py | 7cf1bec440e4396e14220a1389a6e98210f17e55 | [] | no_license | NGnius/casl | b54bdd26003e582d77bb04b4e80e13c34074b4ad | db5bc4fbf6819ba89d0258e4c24a7fa85273d145 | refs/heads/master | 2023-03-01T08:52:31.681391 | 2021-02-05T03:12:43 | 2021-02-05T03:12:43 | 330,711,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/python3
import sys
import json
data = input()
payload = json.loads(data)
response = json.dumps({"error": "debug error", "action": {"type": "Custom"}})
print(response)
| [
"ngniusness@gmail.com"
] | ngniusness@gmail.com |
ac65b404dace4784df733dfdfafadcc28eb379aa | c135da511684bfb267a8bac5a84b3f032b2d7b26 | /algorithms/delete-columns-to-make-sorted/DeleteColumnsToMakeSorted.py | b25bbcf217bb13ce0ca196ee9f751ee7ef66193b | [] | no_license | hieudtrinh/coursera_python | 0bc9841a8be7ea38b5fdf9bf1d2bcd6e40387e60 | 6bd01f898eca617ec3c6ad215f47f7f41265dd4f | refs/heads/main | 2023-02-16T20:59:46.617531 | 2021-01-19T19:05:35 | 2021-01-19T19:05:35 | 319,189,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import sys
from typing import List
class DeleteColumnsToMakeSorted:
def minDeletionSize(self, A: List[str]) -> int:
return sum(col != tuple(sorted(col)) for col in zip(*A))
def minDeletionSize1(self, A: List[str]) -> int:
res = 0
for pos in range(len(A[0])):
for word in r... | [
"user.namecd"
] | user.namecd |
d1716fb4ec493d1b89f08262b63cd4a0ccee5a05 | af8cb7ec280573b58a16ae6e92a938828ffc052d | /Recurrent_network/Recurrent_network2.py | d0ec9b7584d15643b4ca53b345c7e20dda0a2df4 | [] | no_license | ninetailskim/Tensorflow_Tutorial | 65e44ecce976fdd469fc8c34b0d1ed975e5b9989 | cb7d8fcd12e57de80f5cded091e014b425e3467f | refs/heads/master | 2021-07-02T22:46:55.503318 | 2017-09-23T08:31:03 | 2017-09-23T08:31:03 | 104,552,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | '''
static_rnn
input :A length T list of inputs, each a Tensor of shape [batch_size, input_size], or a nested tuple of such elements.
x = tf.unstack(x, timesteps, 1)
output : A list of outputs (one for each input), or a nested tuple of such elements.
output[-1]
'''
import tensorflow as tf
fr... | [
"ninetailsyeon@163.com"
] | ninetailsyeon@163.com |
e5f7852757d20d9217562defb3d22da0c1893cb6 | 5e809acc62b080f1adad2c34e647241cdc5ad297 | /myenv/bin/markdown_py | fa2c63491a1647ccda5e1725538898c521cfc6a8 | [
"MIT"
] | permissive | RootenberG/My-blog-project | f520af79a2f3eb416b3dadee46813a812ce9d53d | 7ef4670cfa9d54d9345d52ca008aae5fed5605bc | refs/heads/master | 2020-08-15T20:04:29.478049 | 2020-02-08T21:57:46 | 2020-02-08T21:57:46 | 215,400,930 | 0 | 0 | MIT | 2019-10-30T20:54:38 | 2019-10-15T21:34:30 | Python | UTF-8 | Python | false | false | 255 | #!/home/den/devspace/My-blog-project/myenv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"savichevdenis244@gmail.com"
] | savichevdenis244@gmail.com | |
ed8716a26481360b16a530a1bada6c0c07139b62 | b7dc309c2870431ea90710daf829fd364cf2d578 | /牛客聪明编辑.py | aa96c3286b912ed9c91a11d94b2d70ef75d0fcfe | [] | no_license | KaGen1999/Leetcode-by-Python | 7d65e7890279a2910aae297929a33f52001ad287 | ef10b1aa9b7060f949dcd392d62ddaba5fbcdbb8 | refs/heads/master | 2021-05-20T21:02:44.904731 | 2020-09-13T16:23:50 | 2020-09-13T16:23:50 | 252,415,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | n = int(input())
for i in range(n):
s = input()
b = ''
new_s = ''
count = 1
state = 0
for each in s:
if each != b:
if state == 1:
new_s = new_s + each
state = 2
elif state == 2:
new_s = new_s + each
s... | [
"1032336124@qq.com"
] | 1032336124@qq.com |
5dcf1531f3266b5a1c867bd6a62ba36a36b2bbc2 | 7b08ceb8c901a09e41d4a67804e2adf94142cb17 | /description2process/__init__.py | 2f99a8019b7c0dace78658a646cc5d28bfb7d318 | [] | no_license | simrit1/Description2Process | 1e7cfcc4dc6bb762d69f27bbe1eedd4e0cef6a38 | 223372f3588f7ac67537eae3012667951b5543e0 | refs/heads/master | 2023-08-25T23:12:50.838804 | 2019-05-16T16:51:51 | 2019-05-16T16:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,370 | py | import tensorflow as tf
# We need to enable eager execution for inference at the end of this notebook.
tfe = tf.contrib.eager
tfe.enable_eager_execution()
TFVERSION='1.13'
import os
os.environ['TFVERSION'] = TFVERSION
# Import library
from description2process import data_generation
from description2process import c... | [
"noreply@github.com"
] | simrit1.noreply@github.com |
886183df918841571dc3a1914dbf86b3af70ee3d | 9ce345af50e58596564a942471c19b17fec5b1b7 | /venv/Scripts/pip-script.py | 8ff319223bd8fc27e410ac0fa90fd31b50f27fd7 | [] | no_license | ArsenTrynko/Python_lab10 | 2f6a4379a53c66f365a85f9db6c818128690d17f | 8da5281ef60e40e43b31e7a38e1d3739d926b552 | refs/heads/master | 2020-05-31T00:47:41.813171 | 2019-06-03T16:26:38 | 2019-06-03T16:26:38 | 190,041,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!C:\Users\MI\PycharmProjects\Lab10\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"jarkodara@gmail.com"
] | jarkodara@gmail.com |
ff06d12c1f57c1abcc60e770b2ba9375591bfd04 | 7ba5e9e271f1199582500bc40334ce4dfff03698 | /manage.py | e1e56792c1b390bb6ae5ff85c7019e487c5a3838 | [] | no_license | R1Ng0-1488/four-a-docker | 9ffc0cd2004b06ea9b9871eb2aad778854083bf5 | 2b66ed5baa6df777391343f82c5512b90689b981 | refs/heads/master | 2023-04-13T05:04:34.600023 | 2021-04-27T09:23:25 | 2021-04-27T09:23:25 | 357,534,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | 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', 'fourArest.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"57253219+R1Ng0-1488@users.noreply.github.com"
] | 57253219+R1Ng0-1488@users.noreply.github.com |
d3d6757ce1df376dff4c92caaad8942329c824b0 | 801e30ca6313e09ae19c2109604325556edf7e11 | /validate_hcp_release.py | 295ec2b714eeaf5286237d8780121fdcfc0be382 | [] | no_license | MHouse/validate_hcp_release | 5335dbb531564e52e38b10bf538cced6bc2b1265 | 0c9f98fcd51b5c7e7c64f962c6393019b67790ec | refs/heads/master | 2021-01-16T18:18:22.110563 | 2013-02-22T21:17:38 | 2013-02-22T21:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,747 | py | #! /usr/bin/env python
__author__ = 'mhouse01'
import requests
import json
import os
import csv
from lxml import etree
from sys import exit
from operator import itemgetter, attrgetter
import argparse
import ConfigParser
from seriesDetails import seriesDetails, csvOrder, seriesLabels, scanIsPackage
# Declare the XNAT ... | [
"mdhouse@gmail.com"
] | mdhouse@gmail.com |
fecb95f2df1a15ec0d1133aa0f186e37532e7f1c | 357ce8dbb7e2ebab438ae90a8f598ba625ee74a1 | /perticks/api/models.py | b2bf85e2e850ce59d32e170e83561f33d1a78fcd | [] | no_license | HealthHackAu2016/per-ticks | 899870f0c3915bb8d0aed9fcfe609674934b1a76 | 03eeaf57ea7e8c1efc07a8ff48c59edc058f7b4d | refs/heads/master | 2021-01-11T02:50:00.246122 | 2016-10-16T07:07:42 | 2016-10-16T07:07:42 | 70,917,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | from django.db import models
from django.contrib import admin
from django.core.validators import RegexValidator, EmailValidator
class BiteReport(models.Model):
# Validators
alphanumeric = RegexValidator(r'^[0-9]*$', 'Only numeric characters are allowed.')
validate_email = EmailValidator()
# Fields
... | [
"mail@trisreed.com"
] | mail@trisreed.com |
af319737ac47b4c0bdc71afb813cb1635135868b | 8e8f09667b7aae2e8e35e6c130e426aedbe3d565 | /apps/destination/migrations/0005_auto_20170719_1338.py | 251620743aee30278a95641ae10effdf2bac21ae | [] | no_license | TripHub/_API | c33e8b08f43cc45b5d7ed788aaaaed714fdcf802 | dad85e34e826d951a971088bc77c8e63b403f01f | refs/heads/master | 2021-06-24T05:50:28.964085 | 2017-08-06T11:01:50 | 2017-08-06T11:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-19 13:38
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('destination', '0004_auto_20170705_1325'),
]
opera... | [
"Ben@hadfieldfamily.co.uk"
] | Ben@hadfieldfamily.co.uk |
1af07f337196fda10e15701549e6243804b7e233 | 9467b65606bdeb2ff1417267728f95aac96e2bd9 | /p24.py | ab13db0c38f7d99139ac1511ae52bfb7916bcb43 | [] | no_license | prince3453/python | a7d1e46f0669f50ac4ca74aa11a393a3f69c9471 | ca31d46dd885b619e4d7cefbf83b813684afad93 | refs/heads/master | 2020-12-06T13:31:13.314451 | 2020-05-16T05:53:00 | 2020-05-16T05:53:00 | 232,474,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | class Bank:
def __init__(self, balance):
self.balance = balance
self.methods = [self.printBalance,self.deposite,self.withdraw]
def printBalance(self):
print("Current Balance:",self.balance)
def inputAmount(self):
return float(input("Enter Amount:"))
def depo... | [
"noreply@github.com"
] | prince3453.noreply@github.com |
9800c7757cdf7213dc56c1006e976f8cfdd3b3f5 | 19e84b3ea7944811b6fd113309b8a7c7b5ae33ba | /oec/db_data/views.py | cf69e179543b30faae5c5f12887affeaeba22e82 | [] | no_license | fxcebx/oec | cf9c4cfaa3b4d92d4cbd3539ff94b7f910209167 | cbba5d7513f63cdb5dc761146db784f2a9879ea7 | refs/heads/master | 2020-12-06T20:41:17.105920 | 2015-10-10T03:01:56 | 2015-10-10T03:01:56 | 44,028,188 | 0 | 0 | null | 2015-10-25T22:06:13 | 2015-10-10T21:01:46 | CSS | UTF-8 | Python | false | false | 5,007 | py | from flask import Blueprint, request, jsonify, make_response, g
from oec import db
from oec.utils import make_query
from oec.db_attr.models import Yo as Attr_yo
from oec.db_data import hs92_models
from oec.db_data import hs96_models
from oec.db_data import hs02_models
from oec.db_data import hs07_models
from oec.db_da... | [
"alexandersimoes@gmail.com"
] | alexandersimoes@gmail.com |
a3832a608ada34da7f6cc1b6ee7f96711396596b | 00b2e5b0e600dccf0857e00b5710005062df92e3 | /Fatima/fatima_raman.py | 3abb8f47a90baebde4c4833d5c9befe4a28ee767 | [] | no_license | NMI-BMNT/auswertung | bf933046df3db729a3769fc50ce8c047d8a86177 | b9017ac6745764fc4ddf63c9d982a21e30777885 | refs/heads/master | 2022-01-10T12:41:10.416401 | 2018-05-23T11:48:55 | 2018-05-23T11:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,036 | py | import os
import numpy as np
import scipy.ndimage as ndimage
import scipy.ndimage.filters as filters
import scipy.optimize as opt
from scipy.optimize import curve_fit, basinhopping
import scipy.sparse as sparse
from scipy.special import *
from plotsettings import *
import matplotlib.pyplot as plt
from matplotlib.patch... | [
"Simon.Dickreuter@uni-tuebingen.de"
] | Simon.Dickreuter@uni-tuebingen.de |
c35a45aa07d805a1a36b6c9ba503f843f82fe68e | 3554cedeca0e21a015534290a95d0a3930ff1cc1 | /spider/spideOnDelegation.py | f6be5c0879481f57b3fb6d95aa692fb56bf285b8 | [] | no_license | baolintian/EZTrade | 27d2329468f44bbedc610e0f8ab75be05ccfb247 | 72ee63fdcbfd37574a7734bd0991cff114481f79 | refs/heads/main | 2023-09-01T04:08:20.086976 | 2021-09-23T08:47:32 | 2021-09-23T08:47:32 | 390,328,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,650 | py | import requests
import json
import time
import datetime
def get_token():
url = "http://i-2o0wkhxv.cloud.nelbds.org.cn:8180/api/app//dwf/v1/app/login?password=31c15919&userName=admin"
payload = {}
headers = {
'accept': '*/*',
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cC... | [
"tianbaolin1@gmail.com"
] | tianbaolin1@gmail.com |
bcaf5aa98c8edf969dc67d07dbc2b241654d3d1d | fb7f04ffbdcdf4f5aa7c0e6ccf83f7671ef10770 | /server.py | cadfd74d1f7a4b805332831f5238f54f81f48b2d | [] | no_license | Bthelisma/LandingPage | 8ce348ece186c57e98d00cb5fdde8149587accae | 87fdf0bed1ad0e7a978095c47d9ba3ea860b74b7 | refs/heads/master | 2020-03-22T18:59:26.266574 | 2018-07-10T23:14:03 | 2018-07-10T23:14:03 | 140,496,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
@app.route('/ninjas')
def ninjas():
return render_template("ninjas.html")
@app.route('/dojos')
def dojos():
return render_template("dojos.html")
app.run(debug=True)
| [
"contactjerseysure@gmail.com"
] | contactjerseysure@gmail.com |
dfab9c98e6e8c2274dad941069669ae7f05d9833 | 15f438d029528a978383f24f85035c911e314b72 | /scripts/tile.py | 4265e245943caf8bebb807cdee81181b01d0187c | [
"MIT"
] | permissive | rg314/autoballs | 91d11315a61d4c088b099744301b3f1b68eecc93 | 21fab5c810f18c0d50c23051928d3bb86fbc6941 | refs/heads/main | 2023-05-30T11:48:52.901933 | 2021-06-23T14:48:27 | 2021-06-23T14:48:27 | 341,683,921 | 1 | 0 | MIT | 2021-03-18T23:28:23 | 2021-02-23T20:39:55 | Python | UTF-8 | Python | false | false | 2,397 | py | import os
import glob
import cv2
import matplotlib.pyplot as plt
import numpy as np
import math
size = 512
tile_size = (size, size)
offset = (size, size)
image_types = 'data'
origin_path = os.path.abspath(os.path.join(f'train_data/{image_types}/*', os.pardir))
images = glob.glob(origin_path+'/imgs/*.... | [
"ryan.greenhalgh@hotmail.co.uk"
] | ryan.greenhalgh@hotmail.co.uk |
50317930bb9698c10a56bf2f5e1c9bf9b3f6f36b | 38f619c6210d77d156c6a9ae2850b30b1d96fd79 | /gen_winning_paths.py | 3a4c2ee73521727270a7dd6a1f62200d8b43fc07 | [] | no_license | ofraam/GTTT | 3c2d0fc55e17c794b9e4f7078640e86d73b780fc | 83e4c4f0d4c667bc719239d79daa1ab9417e7d1e | refs/heads/master | 2021-01-20T04:46:15.095923 | 2019-08-08T15:57:04 | 2019-08-08T15:57:04 | 89,724,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | if __name__ == "__main__":
dimension = 10
streak = 5
filename = "examples/board_"+str(dimension)+"_"+str(streak)+".txt"
row = 1
col = 1
winning_paths = []
#check horizontal
for row in range(1,dimension+1):
for col in range(1, dimension + 1):
i = (row-1)*dimension+co... | [
"oamir@seas.harvard.edu"
] | oamir@seas.harvard.edu |
cb87f2390f4328b284144e4fa1564341cb8bdcf7 | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/nova-2013.2/nova/tests/api/ec2/test_faults.py | 36cee0663bf4ff4b4c640f0b081a869d016d26a6 | [
"Apache-2.0"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 1,914 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 applicabl... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
49ef89ed9847f6370bab12ee14d5b37c98c4382f | 8cf211cabe8c5169b2c9c3c6b38f69ac6c93b93e | /flask_bootcamp/section_6/venv/lib/python3.6/os.py | ac0bdb84664fdfc380e6a61aeee8932f5167c92b | [] | no_license | bopopescu/Python_Personal_Projects | 020256cb6835438b1b776eacb1a39d4cb5bc2efc | 025145130da5ac846b8aa14764783739ff68f64c | refs/heads/master | 2022-11-21T04:47:17.253558 | 2018-10-25T22:12:07 | 2018-10-25T22:12:07 | 281,146,690 | 0 | 0 | null | 2020-07-20T14:57:05 | 2020-07-20T14:57:04 | null | UTF-8 | Python | false | false | 44 | py | /home/vinicius/anaconda3/lib/python3.6/os.py | [
"vinicius.yosiura@live.com"
] | vinicius.yosiura@live.com |
68e6812af340c1592f989fbc771b1033a152cf91 | 582660ae9d3c21010042bd6262e421a2a6e94e61 | /python/introduction/python_if-else/python_if_else.py | a8c09703dd210c9a51a596580200c33614db93c6 | [] | no_license | tim-mccabe/hacker-rank | 5e12bcd9baabb94c98bca8ef906063092279f4a2 | 61480d2f7b4d567ac48d526417afd7dbc5a2329e | refs/heads/master | 2023-01-30T11:57:23.041756 | 2020-12-10T20:50:52 | 2020-12-10T20:50:52 | 320,064,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input().strip())
if int(n) % 2 == 1:
print('Weird')
if 2 <= int(n) <= 5 and int(n) % 2 == 0:
print('Not Weird')
if 6 <= int(n) <= 20 and int(n) % 2 == 0:
print('Wei... | [
"timmccabe44@gmail.com"
] | timmccabe44@gmail.com |
79dbeaf0b944d391662e5119f73dae9367fe504f | bd26284c804ded76f21d25b9c7a355304428e4d7 | /2/2-4. Cartpole.py | e5c1e31c1bf0433c30db2eb054cf87b7c840057f | [
"Apache-2.0"
] | permissive | Wonjuseo/Project101 | 0c93171bbd6ab86dfbc32f474e12e7b7229db4da | 8c49601e34f56035acd198a09428fa71f6606ca7 | refs/heads/master | 2021-01-19T23:25:40.658736 | 2018-07-02T13:45:03 | 2018-07-02T13:45:03 | 88,979,764 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # Cart Pole example
import gym
# Environment
env = gym.make('CartPole-v0')
env.reset()
# Parameters
random_episodes = 0
reward_sum = 0
while random_episodes < 10:
# Rendering
env.render()
# Get action
action = env.action_space.sample()
# Update state, reward, done
observation... | [
"noreply@github.com"
] | Wonjuseo.noreply@github.com |
4da9c1e6ca004b93d1f275e2bd86ea3be8e69b31 | 52bb1d25a8c146b81b876343f861025e034fa964 | /roglick/dungeon/utils.py | fcf6a2a864c5ae7cc6c50f2c302b33b63529bf23 | [
"MIT"
] | permissive | Kromey/roglick | b3fc7a6bce7e60a150c9a9ed1cc825ef3988cf8a | b76202af71df0c30be0bd5f06a3428c990476e0e | refs/heads/master | 2020-12-14T15:49:53.163385 | 2016-05-24T16:29:06 | 2016-05-24T16:29:06 | 21,549,421 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | from roglick.engine import random
from roglick.utils import clamp
def smoothstep(a, b, x):
"""Basic S-curve interpolation function.
Based on reference implementation available at
https://en.wikipedia.org/wiki/Smoothstep
"""
x = clamp((x - a)/(b - a), 0.0, 1.0)
return x*x*(3 - 2*x)
def smooth... | [
"travisvz@gmail.com"
] | travisvz@gmail.com |
955bb168de6e1ab256033fbf68a95eb968b92146 | 180d93304e80e485be81dd06dbbc8a3be0c34365 | /exporter/opentelemetry-exporter-opencensus/tests/test_otcollector_trace_exporter.py | 222a94d60b3b85e025d4607da7ff392a7c43b338 | [
"Apache-2.0"
] | permissive | marcosflobo/opentelemetry-python | dbb26b04dbbc813696dbc3f8b3db4543af8cf68c | 81d80aab5d4fd23d0d75b223d482d491ac86f006 | refs/heads/main | 2023-05-04T21:51:24.754989 | 2021-05-06T01:51:26 | 2021-05-06T01:51:26 | 365,263,246 | 1 | 0 | Apache-2.0 | 2021-05-07T14:40:16 | 2021-05-07T14:40:15 | null | UTF-8 | Python | false | false | 11,824 | py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | marcosflobo.noreply@github.com |
e62a576701748974d99d413ad69f0fa9b0b33e9b | 21c77c2ff4d5fbb982943a22abd46a18a804621c | /flow_control/your_name.py | 68fec85da56a05006fdeaef5eb410d09972eb812 | [] | no_license | foleymd/boring-stuff | 56592f576da19238de5c742b78c34d86688b6319 | d81f10f801a512c38a713344a2fe1d8b5b7e5a09 | refs/heads/main | 2023-01-05T19:21:31.248420 | 2020-10-22T20:24:10 | 2020-10-22T20:24:10 | 302,201,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # break example
name = ''
while True:
print('Please type your name.')
name = input()
if name == 'your name':
break
print('Thank you!')
# continue example
spam = 0
while spam < 5:
spam = spam + 1
if spam == 3:
continue
print('spam is ' + str(spam))
| [
"foleymd@gmail.com"
] | foleymd@gmail.com |
ed3e3d70a1fd13a1e41fa4985818c02092340a95 | 413fb29b62fe9ba07362d614ba49e7200482216d | /fraud_detection/src/com/mr/data_analysis_python/sampleFraudData.py | 4a77df03d96dbcfeca3f64da411e6f1ddb5ee5a5 | [] | no_license | cash2one/fraud_detection | ff2cc0a151b16cd3151c584839a227a384716ca7 | 6097e47800394f8659c5d14ab6a6538b2af8d444 | refs/heads/master | 2021-01-19T04:46:32.710395 | 2016-07-09T11:58:05 | 2016-07-09T11:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | __author__ = 'TakiyaHideto'
import sys
import random
class SampleFraudData:
def __init__(self, input, output):
self.input = input
self.output = output
self.sampleRatio = float(sys.argv[3])/float(sys.argv[4])
def __sample(self):
with open(self.output, "w") as fileOut:
... | [
"TakiyaHideto@iekoumatoMacBook-Pro.local"
] | TakiyaHideto@iekoumatoMacBook-Pro.local |
9ae24c0c1c39be6cfa372b401d1b1ebdd5bd2035 | d15be7017a8d28ad351d2872fdf36b8638a60abd | /Solutions/week01/word_counter.py | a35bc79b42b58ad6bf3ccc3b99120b527f4f46df | [] | no_license | shadydealer/Python-101 | 60ebdd098d38de45bede35905a378e8311e6891a | 9ec2dccd61f54f4ff8f86fe6dd26cd7dd06f570d | refs/heads/master | 2021-04-15T11:42:57.712723 | 2018-06-04T10:32:30 | 2018-06-04T10:32:30 | 126,197,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py |
word = input()
rows, cols = map(int, input().split())
def get_input():
"""get_input() -> 2D array"""
matrix = []
for i in range(rows):
matrix.append(input().split())
# for subset in matrix:
# print(subset)
return matrix
move_x =[-1,0,1]
move_y =[-1,0,1]
def is_valid_index(x,y):
"""is_valid_index(int, i... | [
"shady"
] | shady |
bf4f8be8ccdd998f8098cbf3f6605a7b524c9816 | f92722620b74644ee0f2e1a7461d4330ea3374da | /blog/migrations/0001_initial.py | 7ade040810ee75b4aa619f2bb513df02743ad060 | [] | no_license | designwithabhishek/mywebsite | c01e2784b733a681f215cac1c449a98554ca8cb0 | 4aa0593cb750330921de4367e2a389c4918845a1 | refs/heads/master | 2023-05-11T10:12:24.617089 | 2019-06-25T17:36:08 | 2019-06-25T17:36:08 | 200,085,766 | 0 | 0 | null | 2023-04-21T20:35:26 | 2019-08-01T16:37:09 | HTML | UTF-8 | Python | false | false | 835 | py | # Generated by Django 2.2.2 on 2019-06-23 04:53
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
... | [
"designwithabhishek1996.com"
] | designwithabhishek1996.com |
019e5dd75cb9ff5d93826aea9822c1224063626a | 3a7b0262d408c8faad77d0710d0bee91e27643b9 | /Major_Requirements.py | a91f9661064cb93b0d8670f6a5c2951172039976 | [] | no_license | fmixson/testfulldegree | c1a13eb89001b017e7800304a3197d042a7e234b | de013a7f2171d66ab6a9fd4ed6a1604b53ef79d5 | refs/heads/main | 2023-06-27T23:08:22.016373 | 2021-08-08T20:07:37 | 2021-08-08T20:07:37 | 394,053,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,400 | py | import pandas as pd
class MajorRequirements:
# major_requirements_dataframe = pd.read_csv("C:/Users/family/Desktop/Programming/English_PlanA_GE.csv")
# major_requirements_dataframe = pd.read_csv("C:/Users/family/Desktop/Programming/Copy of COMM_AA.csv")
# major_requirements_dict = {}
def __in... | [
"noreply@github.com"
] | fmixson.noreply@github.com |
4e303dd29190aa0d67c81ae34f62c8efeeaa0d0a | b17af89152a7305efb915da7c856c744e7dbd4f0 | /Dict_Project01_NumericIntegrasjon/F6_SendData.py | da51e5ba8dbeb3ed8133bee03f93e93dbcebc84e | [] | no_license | EspenEig/Bachelor2021-vedlegg | 6bb8e9efa84710500855f6129ce8f706b16bd690 | 2893f41e9e92f757360fe7d85dc03fd51d497f39 | refs/heads/main | 2023-05-01T12:34:45.403503 | 2021-05-12T16:31:59 | 2021-05-12T16:31:59 | 358,355,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import json
def SendData(robot, measurements, online):
data = {}
for key in measurements:
if key == "zeroTime" or key == "ts":
continue
data[key] = (measurements[key][-1])
if online:
msg = json.dumps(data)
robot["connection"].send(msg)
if not robot["c... | [
"54357741+EspenEig@users.noreply.github.com"
] | 54357741+EspenEig@users.noreply.github.com |
31c16a62d12f6538275dc374ce02c654b07ba690 | 582b93ca3747f7ec4ce8c00464c26698b0b8b229 | /DevExa/settings.py | 658b53ef61b015873d139dc62dd14ca2e8e29f93 | [] | no_license | BeToOxX/Final | 7615e0e37c4ca8858687f0293b5058dc75d79a9c | f4371207836b4f7cd856c7237ada3cd60a597bce | refs/heads/master | 2023-08-23T18:06:00.585583 | 2021-10-07T06:01:50 | 2021-10-07T06:01:50 | 414,474,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | """
Django settings for DevExa project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"rubengza.98@gmail.com"
] | rubengza.98@gmail.com |
8de31727528745859574b0a71d4d7f4265c46740 | 2718b6f68a717b24cd6238a20d4116b3dea3201b | /BlogTemplate/mysite_env/mysite/apps/blog/views.py | 39b584eea388bcf248d6a6d595bae4840b4bf60b | [] | no_license | tminlun/BlogTemplate | e94654e01e170f27c97c197c898c102518ad13ab | d475587fdd9e111961bbfa56666255d38cfdc056 | refs/heads/master | 2022-12-11T00:51:53.019391 | 2018-12-05T14:54:04 | 2018-12-05T14:54:04 | 138,825,320 | 0 | 0 | null | 2022-12-08T02:25:29 | 2018-06-27T03:30:20 | Python | UTF-8 | Python | false | false | 4,519 | py | from django.shortcuts import render,get_object_or_404
from django.core.paginator import Paginator
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db.models.aggregates import Count
from read_statistics.utils import read_statistics_once_read
from comment.models impo... | [
"1272443075@qq.com"
] | 1272443075@qq.com |
18c4b876571211b4d59ba56578c12df35106481c | 5f08d36d8cf92bff8c778eb4fa04e0df4b5768b1 | /Week10/CurveFitting.py | f1719852ab0bba0e27a75c1874c86a835d44f949 | [] | no_license | npilgram/PHYS202-S13 | ae22e5ced93fdedfe757187c8a364a9c3cb359a9 | 8ed9162d820e61aae624f5e646b894e83ce5faca | refs/heads/master | 2021-01-02T23:13:38.342579 | 2013-06-15T02:47:14 | 2013-06-15T02:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import numpy as np
def LinearLeastSquaresFit(x,y):
"""Take in arrays representing (x,y) values for set of linearly varying data and perform
a linear least squares regression. Return the resulting slope and intercept parameters of
the best fit line with their uncertainties."""
x_ave = np.sum(x)/len(x)
... | [
"npilgram@calpoly.edu"
] | npilgram@calpoly.edu |
94885939895e110e0050528f9b92b238256a9c00 | 39efbd67fa02ef628bd86051781145b77b8244d9 | /PLXs/086-01173-00 ok/CSVReader.py | 2965cac991750f4034087c8861c66e11bd242ba1 | [] | no_license | hbenr/ProjectBender | 9df2326df01ec04db93d2311e0107a5ac2706802 | c0432ae0a9ceaf6442f92f59805bdfbdddc2fd14 | refs/heads/master | 2021-05-29T19:36:07.437213 | 2015-09-17T20:02:07 | 2015-09-17T20:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: MAT.TE
#
# Created: 20/08/2015
# Copyright: (c) MAT.TE 2015
# Licence: <your licence>
#-------------------------------------------------------------------------------
import csv
... | [
"MAT.TE@CTLMAT0301D.Robertshaw.com"
] | MAT.TE@CTLMAT0301D.Robertshaw.com |
b29d6c67789222e938357e11fa5b9b8b77863402 | 6bbe91ea2ebc098b7b7ea5179761f7852875b3f6 | /pugbot.py | 12aea378d489f64a42a51b0e33ce7a3006854f7e | [] | no_license | dpyro/pugbot | 531c1c83ceac8d8ae937247af2d1221752c35f13 | 1e8f1b30de11f98be9ee53c2128104758f997799 | refs/heads/master | 2021-01-20T13:49:58.008215 | 2010-08-27T19:33:28 | 2010-08-27T19:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,453 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# vim: enc=utf-8
from __future__ import print_function
from sys import stderr
import logging
import re
from twisted.words.protocols import irc
from twisted.internet import reactor, protocol, task
from pugdata import *
from pugserver import public_ip
de... | [
"darkpyro@gmail.com"
] | darkpyro@gmail.com |
beff39c0b7dcb6bdf841867e852ac3a4d5057438 | 42dc79035b8488b59374a44ee87136d9fd56bdb3 | /30-Day-Challange/Day-7/count_negative_sorted-2.py | 1903e4b1dc070af2101c398bcd4be981714a4312 | [
"Apache-2.0"
] | permissive | EashanKaushik/LeetCode | f8e655b8a52fa01ef5def44b18b2352875bb7ab8 | 8ee2a61cefa42b332b6252fafff4a2772d25aa31 | refs/heads/main | 2023-06-06T17:15:54.218097 | 2021-07-06T11:46:35 | 2021-07-06T11:46:35 | 371,109,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | class Solution:
def countNegatives(self, grid):
m = len(grid)
n = len(grid[0])
current = 0
row = 0
col = n - 1
while row < m and col >= 0:
curr = grid[row][col]
if curr < 0:
current += m - row
col -= 1
... | [
"EashanK16@gmail.com"
] | EashanK16@gmail.com |
341fc6379af0b753834833efa91503520488d7fa | a3aaf7bb73471c67d4adc40aee159e60e7fc964b | /face_pic.py | f2573255284ef455f037aef1a2398b61799bfee2 | [] | no_license | muskaankularia/Gaze-tracker | 29360516efbe94a8ef19aeefa8805db7224b15df | dcae52f85d486ce0f8ec1566814be7136c97df38 | refs/heads/master | 2021-08-22T05:53:12.770849 | 2017-11-29T12:09:06 | 2017-11-29T12:09:06 | 112,461,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | import numpy as np
import cv2
import sys
import os
import shutil
import timm
if os.path.exists('./data'):
shutil.rmtree('./data')
dirname = 'data'
os.mkdir(dirname)
face_cascade = cv2.CascadeClassifier('/usr/local/Cellar/opencv/3.3.0_3/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml')
eye_cascade = cv... | [
"noreply@github.com"
] | muskaankularia.noreply@github.com |
ee56c5923d4e412ecef2b0e9a6abc6e9db42e260 | 1f60222696b27d1a0f93282c73f72f6870c0c7d6 | /alpha_transform/AlphaTransformUtility.py | 6c4cbca2cb07bcccddf7a558df7b93567d90c79c | [
"MIT"
] | permissive | dedale-fet/alpha-transform | 7ff3d5859ccf4924170894a9eb030fa8ac4da099 | 41b4fb0b28b908391f9ddf17cdcde8b956d3d064 | refs/heads/master | 2021-01-13T14:28:57.702914 | 2020-08-04T15:40:22 | 2020-08-04T15:40:22 | 72,874,669 | 14 | 7 | null | 2020-07-19T18:47:18 | 2016-11-04T18:26:33 | Python | UTF-8 | Python | false | false | 11,097 | py | r"""
This module contains several utility functions which can be used e.g.
for thresholding the alpha-shearlet coefficients or for using the
alpha-shearlet transform for denoising.
Finally, it also contains the functions :func:`my_ravel` and :func:`my_unravel`
which can be used to convert the alpha-shearlet coefficien... | [
"felix.voigtlaender@gmail.com"
] | felix.voigtlaender@gmail.com |
113b1426d9036aee80c7202882206d1f33646a46 | fa1e90dedb7f9b84cd210420215ff6a9bf7e6f2d | /airmozilla/suggest/forms.py | 605254a63fff168bd1e667a2ed8a5f5f55e9866b | [] | no_license | sara-mansouri/airmozilla | f7bdf6aeafa9a7a299fc69c506e186ba47be7ccb | 8f93162be46044798df1e6d0ce80c8407fc41995 | refs/heads/master | 2021-01-16T18:28:35.569244 | 2014-03-28T02:59:31 | 2014-03-28T02:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,080 | py | from django import forms
from django.conf import settings
from django.template.defaultfilters import filesizeformat
from django.utils.timesince import timesince
from django.utils.safestring import mark_safe
from django.db.models import Q
from slugify import slugify
import requests
from funfactory.urlresolvers import r... | [
"mail@peterbe.com"
] | mail@peterbe.com |
c10ea4aaf707b2472d05f5082eeeb2cded2d7235 | e69aa8050bced4e625928e3e18e14e892ba860dc | /Partial_Permutations.py | 5886fbe97a1612b6882017146363daf371f01eae | [
"MIT"
] | permissive | Esprit-Nobel/ROSALIND | e65cf85f1fbe0660cda547926d91be3f109edce9 | ec964f6d9cc5d97339106c89df865fb105251928 | refs/heads/master | 2021-01-12T18:16:19.768656 | 2016-11-02T14:06:50 | 2016-11-02T14:06:50 | 71,357,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 18 18:18:43 2016
@author: yannick
"""
import sys
import math
with open(sys.argv[1], "r") as fichier_lu:
CONTENU = fichier_lu.readlines()
NUM = CONTENU[0].strip("\n\r\t ").split()
TOT = ( math.factorial( long(NUM[0]) ) / \
math.fac... | [
"esprit.nobel@orange.fr"
] | esprit.nobel@orange.fr |
07a5041034955e430ae5f1723511345940c3a5b6 | 1f4e6b4045df3a0313880da83e69f10d44c8bab4 | /4 Data types 3listpy.py | 15a8f1cd8c2ab2129144c106420c4f510286c828 | [] | no_license | AhmedAliGhanem/PythonForNetowrk-Cisco | daee76b17cc271b56516d559a8fb4184656a15b0 | f71b2325db69cb5eb9c6a9fe0c6f04a217468875 | refs/heads/master | 2022-01-12T09:26:25.338980 | 2019-06-22T16:18:23 | 2019-06-22T16:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | #List
years = [2000, 2001, 2002]
print(years)
Repeatable = [2000, 2001, 2000]
print(Repeatable)
mix = [2000, "yasser", 2002]
print(mix)
x = ["A", "B", "C"]
y = ["D", "E"]
z = x + y
print(z)
z = x * 3
print(z)
z = "A" in y
print(z)
fastethernet_speed=['auto', '10', '100']
print(fastethernet_speed)
... | [
"noreply@github.com"
] | AhmedAliGhanem.noreply@github.com |
bc48ed3a69d6249ded7e941d7d465964d67fa3dc | 4d946b12fa07bb4375b687e74bbc785d35c5175b | /DIO-intro-python.py | 1e8c1c1014ebc5344d98c14d8f69b35db3e45730 | [] | no_license | Thalitachargel/100daysofCode | c4994bdc48870fc6b702387fe9ec004148ac73b0 | 0333a3f0358d1309368a4f93fec6759e307d7dba | refs/heads/main | 2023-07-05T02:14:00.105793 | 2021-08-18T22:28:21 | 2021-08-18T22:28:21 | 363,527,384 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,648 | py | #!/usr/bin/env python
# coding: utf-8
# # Introdução a programação em Python 🐱💻
# ## Digital Inovation One
# ## Modulo 6
# 🐍 Organizando conjuntos e subconjuntos de elementos em Python
#
# In[3]:
# O que é conjunto:
conjunto = {1, 2, 3, 4}
print(type(conjunto))
# In[4]:
# Conjunto não permite duplicid... | [
"noreply@github.com"
] | Thalitachargel.noreply@github.com |
ce9628165675f68be35472bfb365504846ce6053 | 9f078f64c86af7425d32c5e498b0af4458543a8b | /bin/owl | 084c37efcdf13305ac24c9f84df33c20cb7572e6 | [] | no_license | lucassmagal/Owl | 7252ba86f7b4a1deea1be10d1f1a715476585712 | 40272bdc03415d6073ea62da39399e5a2ace1344 | refs/heads/master | 2021-01-01T20:17:36.396245 | 2013-05-12T14:43:09 | 2013-05-12T14:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from owl.cli import run
run(sys.argv[1:])
| [
"magal.lucas@gmail.com"
] | magal.lucas@gmail.com | |
d1c81821046b2be4b5a8b0c06ec25dac7c3a6841 | cc33d6045e08be160dcae36dc9e9e24d190878d8 | /visualization/visualizer2d.py | 84f60383c873dd67276d11a3c1b07c0329de4ffb | [
"Apache-2.0"
] | permissive | StanfordVL/visualization | 66ca20a2d7d435b1fc950dfbed4e205488418e3a | 06a179c550a608a548f3cad70f06dd0c8610fa66 | refs/heads/master | 2021-06-23T01:54:16.414594 | 2017-08-30T01:05:43 | 2017-08-30T01:05:43 | 105,830,187 | 0 | 0 | null | 2017-10-04T23:35:12 | 2017-10-04T23:35:12 | null | UTF-8 | Python | false | false | 5,636 | py | """
Common 2D visualizations using pyplot
Author: Jeff Mahler
"""
import numpy as np
import IPython
import matplotlib.pyplot as plt
import matplotlib.tri as mtri
from autolab_core import Box, Contour
from perception import BinaryImage, ColorImage, DepthImage, GrayscaleImage, RgbdImage, GdImage, SegmentationImage
cl... | [
"jmahler@berkeley.edu"
] | jmahler@berkeley.edu |
b391859b94fd32af4b40bd699c1b6acde8391faf | edb884e3f639261f36bbb8f444e2200bb879a9a2 | /diagfi_compare_singlemonth.py | baa02ec94263fd6a9e083e4dbd41e800d3960a62 | [] | no_license | draelsaid/MGCM-python | 7df36a783829fadb1d89ec9e54f92470d54c0493 | 9ee1491f009bed5f092c21a9235d61e9612f32f0 | refs/heads/master | 2020-06-21T22:41:09.556055 | 2017-05-31T12:22:45 | 2017-05-31T12:22:45 | 74,768,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,806 | py | # Compares NetCDF data from the Mars GCM for Full Mars Year by combining monthly output of diagfi.nc files
# Adam El-Said 08/2016
import matplotlib as mpl
#mpl.use('Agg') # removes need for X-Server (graphics in linux). For qsub only.
import numpy as np
import pylab as py
import matplotlib.colors as colors
import mat... | [
"adam.el-said@open.ac.uk"
] | adam.el-said@open.ac.uk |
4ceac2bc4f9946d9f2573cc41ecd8880bc8d7375 | d200aee203cb0d384213747d5fd3934c80c9728a | /Python/First Exercise.py | 5632cb72b27aebec64b0d76abd7f701832a9d8de | [] | no_license | Dmiller2599/BFOR206 | 1ab1b43e38423926080f15f2b7d50c44612906f3 | a8cae7cc8fe60f63175e3abc6ed4b4f7a68ac247 | refs/heads/main | 2023-03-20T19:17:18.063724 | 2021-03-21T03:29:53 | 2021-03-21T03:29:53 | 335,765,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a block comment.
I can type whatever I desire here.
This script will demonstarte basic variables,
if statements, and for loops with Python.
"""
# this is a normal comment.
"""
The comment below defines a chunck that spyder can
use to separate parts of code into smal... | [
"david.miller2599@gmail.com"
] | david.miller2599@gmail.com |
99aaac368b5a91c9ccdea2dd36758013b517c21f | 03db4adc692a989a0dbc90d1175bdabaaa5341b3 | /Lab-9-hhu14.py | 2af4c479900e134d179c8572e04c55d197cc93ab | [] | no_license | MeloHu/CS128 | e70d18668238533cd0e8b42588e5d7b0e88c8766 | e2595aea14f150efce25816b1215f35ef319b751 | refs/heads/master | 2021-05-05T10:06:35.993342 | 2017-09-19T04:24:44 | 2017-09-19T04:24:44 | 104,021,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py |
# coding: utf-8
# In[ ]:
## Honglie Hu,hhu14@earlham.edu,Saturday&8:00 at 66.5486,-18.0233,Lab9-M&M
# In[1]:
## Part A
def main():
filename = input("file_name:")
file = open(filename,"r")
text = file.read()
length = text.split()
count=len(length)
print("Count:",count)
TheNumber... | [
"noreply@github.com"
] | MeloHu.noreply@github.com |
791732e7600f99bd887cc9a3ffddbe99e5bf9c14 | fe7feafddd2b03814046039411afbaafd1cdcd43 | /b7/b7.py | 7b38e13986d44c3e30b1ada5028f64862afafad0 | [] | no_license | vamsikrishna2421/Scripting-Languages | d87e668eb8d0d9002cd32bed301a7795d4477908 | 89fc94ff6d0e77a4e75bbee3a127ac0b3e16cb51 | refs/heads/master | 2020-06-25T20:14:41.082900 | 2017-12-26T21:09:37 | 2017-12-26T21:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import pandas as pd
import matplotlib.pyplot as plt
fname=raw_input("Enter filename: ")
df=pd.read_csv(fname)
print "Headers of the Dataset are :-"
#print df.columns.values
print df.head(0)
print "**Dataset Description**"
print df.info()
print df.describe()
df=df.drop(["Pclass","PassengerId","Parch","Name"],ax... | [
"noreply@github.com"
] | vamsikrishna2421.noreply@github.com |
26edd3c2bede88520759eec09c94b180a897f414 | 58579a68a94967abb1b8d74cab06f687f4a79a7b | /PythonStyle/code_sample_test.py | fee48cead8af0cc166df1e5fd80a4ff6024f53bc | [] | no_license | imdsoho/python | 3c65cb9b19c2b2299d5bca67ebcde7d7f2f8bec2 | eed1ef3e835f2ab77e4e197a689a9595bd93243e | refs/heads/master | 2020-04-16T06:38:49.089727 | 2020-02-05T09:11:44 | 2020-02-05T09:11:44 | 165,355,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | class cust_slice(object):
"""
slice(stop)
slice(start, stop[, step])
Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
"""
def indices(self, len): # real signature unknown; restored from __doc__
"""
S.indices(len) -> (start, stop, stride)
Ass... | [
"imdsoho@gmail.com"
] | imdsoho@gmail.com |
1e65771ae50c232198a15764de8fa56266b68719 | 646c30e512e7ead3de33974e856f1a0ef242fec8 | /Educational Codeforces Round 73/C. Perfect Team.py | b972a3b41cc05690f80a2878cd9c667420188aad | [] | no_license | Hybrid-Skills/Codeforces | 2194f6d78186b8f6af5389ae6eccdd45c724ee23 | 68f281ba3d14ee039aa89238f3545bf06b90bc74 | refs/heads/master | 2020-06-03T02:38:24.502731 | 2019-11-16T16:30:25 | 2019-11-16T16:30:25 | 191,399,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | for _ in range(int(input())):
c, m, x = map(int, input().split())
maxi = (c + m + x)//3
if c >= m:
if m <= maxi:
print(m)
elif m > maxi:
print(maxi)
else:
if c <= maxi:
print(c)
else:
print(maxi) | [
"ankurgoyal616@gmail.com"
] | ankurgoyal616@gmail.com |
9cff0f2a316ca7bb8e9daefe0127a1a8ef5609ea | 90177443dddd57dc7a8ad2cfb0758b0abb2a10f2 | /currency_converter.py | d786177fbbec6974fdfcfcaa260732194b7bc02b | [] | no_license | Tengtiantian/data-analytics | 18181d6d17d4077f503f505500f50b1fdb6efe44 | ac63bde80a4355c2d0911f60fd8f55683ae026bf | refs/heads/main | 2023-07-10T15:53:32.334067 | 2021-08-17T09:19:25 | 2021-08-17T09:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
作者:梁斌
功能:汇率兑换
版本:1.0
日期:01/08/2017
"""
# 汇率
USD_VS_RMB = 6.77
# 人民币的输入
rmb_str_value = input('请输入人民币(CNY)金额:')
# 将字符串转换为数字
rmb_value = eval(rmb_str_value)
# 汇率计算
usd_value = rmb_value / USD_VS_RMB
# 输出结果
print('美元(USD)金额是:', usd_value)
| [
"wangsiyuan_id@126.com"
] | wangsiyuan_id@126.com |
eeb85c0763b4b58838c030ceccd1de9ec42a82e6 | 5cea11c9373d997430b523227ce81b61972ad1e3 | /tests/test_client_events.py | bd3bc8ac4bf3a96cd62673408ee09427626646ff | [
"BSD-3-Clause"
] | permissive | tinylambda/grpclib | fcc0d4f5723fe36359ceb9655764e9a37c87ebc1 | 948e32a29a4ad82ebbfdbb681f7a797f6233bff3 | refs/heads/master | 2023-07-15T16:19:59.776603 | 2021-08-25T19:56:10 | 2021-08-25T19:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | import pytest
from multidict import MultiDict
from google.rpc.error_details_pb2 import ResourceInfo
from grpclib.const import Status
from grpclib.events import listen, SendRequest, SendMessage, RecvMessage
from grpclib.events import RecvInitialMetadata, RecvTrailingMetadata
from grpclib.testing import ChannelFor
from... | [
"vladimir@magamedov.com"
] | vladimir@magamedov.com |
c2a6d24f20bb1c2478b4feea8182623aca53bac4 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14413.py | 5e67c83692878ae8becbb59fe8019e05781959d1 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # changing type of a entry in dictionary throws error
d = {'today': datetime.today()}
d['today'] = d['today'].strftime(<your format>)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
504975487133379c5ad90d41e592ecc7584e58ac | f69af7fb96d29edc5d7bd7424acfa9078ba5047d | /models/networks.py | 95fbfab2f1a59fdeb3945ea0396ea30a6b8e80dc | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TrendingTechnology/PeeledHuman | ece77dcf3eef81990be720fd4a8e72db2cb5f6d9 | ab7bff2c03b22774ecea4bc4ec3ae214da654dd5 | refs/heads/master | 2023-05-08T09:53:23.413879 | 2021-05-21T12:22:20 | 2021-05-21T12:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,561 | py | import torch
import torch.nn as nn
from torch.nn import init
import functools
import copy
from torch.optim import lr_scheduler
###############################################################################
# Helper Functions
###############################################################################
class Ident... | [
"rohanchacko007@gmail.com"
] | rohanchacko007@gmail.com |
0239f50106a25909870229a9b49d17ca773a5c68 | d125a7467b815ea3027567b0a6976c8ad730beb9 | /src/itsmservice/itsmservice/conf/product.py | 82ef0f132d7f11c4ceea13a01500a1df5a454f0f | [] | no_license | sunyaxiong/itsmservice | 06a1cb38b7314695613e2432f2e1d56c86aad815 | e50fccae9ae536ac520337ec79b1d1c985e49aa4 | refs/heads/master | 2022-12-12T11:14:03.838601 | 2018-10-31T06:17:25 | 2018-10-31T06:17:25 | 137,029,391 | 0 | 0 | null | 2022-12-08T00:58:47 | 2018-06-12T06:50:01 | JavaScript | UTF-8 | Python | false | false | 1,765 | py | # cas conf
SUCC_REDIRECT_URL = "itsm.ecscloud.com"
CAS_SERVER_URL = "http://cas.ecscloud.com/cas/"
CMP_URL = "http://cmp.ecscloud.com"
# CAS_REDIRECT_URL = "http://www.baidu.com"
# databases conf
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'itsm',
'USER': 'root... | [
"sunyaxiong"
] | sunyaxiong |
d9b3198dc97ae3d100c2537f1a374cc313ba3383 | 0e22ce0913d3f0f7a7404a3add796533df10ffd2 | /code_exam_student_grade.py | db18cc99d9d2ae1c6cf6534b6d0b6f0c95625ef4 | [] | no_license | Bhuvan1696/PythoN | 714e98717d277c81d8a6d0a83873af0ff6f45df3 | 685eddd9cb7132867519f9dff71ed3a55502cca6 | refs/heads/master | 2020-12-09T18:05:57.724508 | 2020-02-22T17:51:06 | 2020-02-22T17:51:06 | 233,379,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | """ Student Mark Statement """
def grade(percentage, eng, sci, mat):
if ( eng >= 25 and sci >= 35 and mat >= 35):
if (percentage > 90):
print ("Grade A")
elif (percentage > 75 and percentage <= 90):
print ("Grafe B")
else:
print ("Average")
else:
... | [
"noreply@github.com"
] | Bhuvan1696.noreply@github.com |
ee39967cfee84345c3f981e0d983d21bfa8dc82f | dbe86e522bf7c0fa58531e13bed3dd97051e1b79 | /cognitoLogin.py | 4ab85e5d4802764ca7ab75cbd00e13fa51ba772e | [] | no_license | Asteriw/CMPT473-AWSApp | e214281bbae59f9319efe423f55745e0a10dddb1 | 9d30543439913259a5e88fdf5b8913d3cac5acb4 | refs/heads/master | 2023-04-25T05:39:35.352531 | 2021-04-09T05:57:31 | 2021-04-09T05:57:31 | 369,430,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | import boto3
import botocore.exceptions
import hmac
import hashlib
import base64
import json
USER_POOL_ID = 'us-east-1_b6HnaK2eM'
CLIENT_ID = '4tnka15q9dfg2si6rd9d44mncc'
CLIENT_SECRET = '1i3e81c7nqnjqkl9dcnd48ebmn629ieivs3umi37ib3lv9907n8r'
def get_secret_hash(username):
msg = username + CLIENT_ID
dig = hmac... | [
"zhiqi_qiao@sfu.ca"
] | zhiqi_qiao@sfu.ca |
479f083fa79fc3fdc8c1cf6c85a8c0a00641158c | a62b70e3eed1bee2b2214f1f78be131d9485f370 | /codes/app.py | 3794515aeaaa27242abe484bc055afe523041a2a | [] | no_license | nileshvarshney/restful_database | 53a12a68f40d142021c30d155d9b67bc3fab99aa | 2a16b74c2ab99804158d9eeb23fec0ada33292aa | refs/heads/master | 2020-12-03T07:50:35.017918 | 2020-01-03T07:30:52 | 2020-01-03T07:30:52 | 231,248,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import RegisterUser
from resources.item import ItemList, Items
app = Flask(__name__)
api = Api(app)
app.secret_key='sanjose'
jwt = JWT(app, authentication_handler=authenticat... | [
"nilvarshney@stubhub.com"
] | nilvarshney@stubhub.com |
31dd5fd0705bfebccf299f10eb6ba594038b885d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /5ejvPTQeiioTTA9xZ_0.py | 9b5d0b04aa8e5dca2af5037100305f74b9f4c108 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
Create a function that checks if the argument is an integer or a string.
Return `"int"` if it's an integer and `"str"` if it's a string.
### Examples
int_or_string(8) ➞ "int"
int_or_string("Hello") ➞ "str"
int_or_string(9843532) ➞ "int"
### Notes
Input will either be an integer or a str... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7b288b67b9fa3473f2fb3c72085b6de7ea893109 | 6cecdc007a3aafe0c0d0160053811a1197aca519 | /apps/receiver/management/commands/generate_submissions.py | ae672ba20a318c1fc46d7ecce22a17363b20c062 | [] | no_license | commtrack/temp-aquatest | 91d678c927cc4b2dce6f709afe7faf2768b58157 | 3b10d179552b1e9d6a0e4ad5e91a92a05dba19c7 | refs/heads/master | 2016-08-04T18:06:47.582196 | 2010-09-29T13:20:13 | 2010-09-29T13:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """ This script generates all the necessary data to
synchronize with a remote CommCareHQ server on that server.
This is only really useful if you intend to manually
scp/rsync data to your local server, which requires a
login to the remote server. So this is not the standard
synchronization workflow (but is necess... | [
"allen.machary@gmail.com"
] | allen.machary@gmail.com |
5a5a5583911ddb9db5402f6b3d6030070b115f57 | 1e50f1643376039ca988d909e79f528e01fa1371 | /leetcode/editor/cn/292.nim-游戏.py | 174da887a6b080c9b99b41e140bf445662a9f611 | [] | no_license | mahatmaWM/leetcode | 482a249e56e2121f4896e34c58d9fa44d6d0034b | 4f41dad6a38d3cac1c32bc1f157e20aa14eab9be | refs/heads/master | 2022-09-04T17:53:54.832210 | 2022-08-06T07:29:46 | 2022-08-06T07:29:46 | 224,415,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | #
# @lc app=leetcode.cn id=292 lang=python3
#
# [292] Nim 游戏
#
# https://leetcode-cn.com/problems/nim-game/description/
#
# algorithms
# Easy (69.45%)
# Likes: 326
# Dislikes: 0
# Total Accepted: 50K
# Total Submissions: 71.9K
# Testcase Example: '4'
#
# 你和你的朋友,两个人一起玩 Nim 游戏:桌子上有一堆石头,每次你们轮流拿掉 1 - 3 块石头。 拿掉最后一块石头... | [
"chrismwang@tencent.com"
] | chrismwang@tencent.com |
d4a33c08e35fe6ddedc4fee59d98a62a0b60cb31 | 1493997bb11718d3c18c6632b6dd010535f742f5 | /particles/particles_point_sprites.py | 34a1996efb93c10ffe497379fab53cf8acfd7ca9 | [] | no_license | kovrov/scrap | cd0cf2c98a62d5af6e4206a2cab7bb8e4560b168 | b0f38d95dd4acd89c832188265dece4d91383bbb | refs/heads/master | 2021-01-20T12:21:34.742007 | 2010-01-12T19:53:23 | 2010-01-12T19:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | from pyglet.gl import gl_info
assert gl_info.have_extension("GL_ARB_point_sprite"), "ARB_point_sprite not available"
from pyglet.gl import *
import random
# see:
# http://www.opengl.org/registry/specs/ARB/point_sprite.txt
# http://www.opengl.org/registry/specs/ARB/point_parameters.txt
g_slowdown = 2.0
#... | [
"kovrov@gmail.com"
] | kovrov@gmail.com |
56b0c048589ed3ef8f13303160de9e5ae6e672df | 9701287f1cc7734d31c898708581b15a41916e36 | /backend/app/crud/inventory.py | 5dc66359f2914fdfc5f4b7ef88503d0e6e4b1ba9 | [] | no_license | cedric0306/fastERP | a40c6d3bd3f07f65d2d8c1a440d8930f20bf4aee | d87824e945b01bc1969c9e2fdea3f243f6240a2f | refs/heads/main | 2023-07-27T07:44:58.711211 | 2021-08-27T15:14:08 | 2021-08-27T15:14:08 | 564,331,443 | 1 | 0 | null | 2022-11-10T13:44:17 | 2022-11-10T13:44:16 | null | UTF-8 | Python | false | false | 1,833 | py | from sqlalchemy.orm import Session
from fastapi import Depends
from ..models import Inventory as InventoryModel, User
from ..schemas.inventory import InventoryCreate, InventoryDelete, InventoryUpdate
from ..dependencies import get_current_user
# CASH
def get_inventory(db: Session, inventory_id: int):
ret... | [
"wasuaje@shorecg.com"
] | wasuaje@shorecg.com |
282e63fed4ef69cb10987c6e83a4b406b3ef4bf6 | f0316e656767cf505b32c83eef4df13bb9f6b60c | /Kattis/cups.py | 4789de27f116b754ca591f250e6577a087e0b6a9 | [] | no_license | AkshdeepSharma/Classroom | 70ec46b35fab5fc4a9d2eac430659d7dafba93da | 4e55799466c101c736de6c7e07d716ff147deb83 | refs/heads/master | 2022-06-13T18:14:03.236503 | 2022-05-17T20:16:28 | 2022-05-17T20:16:28 | 94,828,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | N = int(input())
cups = []
for i in range(N):
a, b = input().split()
try:
cups.append([int(b), a])
except:
cups.append([int(a) // 2, b])
cups = sorted(cups, key=lambda x: x[0])
for k in range(len(cups)):
print(cups[k][1])
| [
"akshdeep.s@live.com"
] | akshdeep.s@live.com |
22f4ffa79f304c929e6c0680c0a2228d0e15dd2b | dbf2d3f8eb11d04123894e398446b56ca791c9f6 | /examples/02.py | c9847666ba51a1574e379280d847d651e7982b21 | [] | no_license | podhmo/nendo | ed8d9a62ab23f7409a8ce519f28deff7d3642942 | 841ec7a990019596c769a2f581a1190aeb8cbd56 | refs/heads/master | 2021-01-22T17:47:58.964323 | 2015-06-28T11:37:38 | 2015-06-28T11:37:38 | 37,828,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding:utf-8 -*-
import logging
logger = logging.getLogger(__name__)
"""
-- select explicitly
SELECT open_emp_id, product_cd
FROM account
ORDER BY open_emp_id, product_cd;
"""
from nendo import Query, make_record, render
from nendo.value import List
Account = make_record("account", "account_id product_cd open_... | [
"podhmo+altair@beproud.jp"
] | podhmo+altair@beproud.jp |
e5ae86739f26139d2a56b19277ea7832e21d41bd | f74dd098c3e665d8f605af5ebe7e2874ac31dd2f | /aiogithubapi/namespaces/user.py | 1d1bd8b8cab4928b70f10f1d9836568e6cc2db64 | [
"MIT"
] | permissive | ludeeus/aiogithubapi | ce87382698827939aaa127b378b9a11998f13c06 | 90f3fc98e5096300269763c9a5857481b2dec4d2 | refs/heads/main | 2023-08-20T19:30:05.309844 | 2023-08-14T20:24:21 | 2023-08-14T20:24:21 | 198,505,021 | 21 | 20 | MIT | 2023-09-11T06:12:10 | 2019-07-23T20:39:53 | Python | UTF-8 | Python | false | false | 2,993 | py | """
Methods for the authenticated user namespace
https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
"""
from __future__ import annotations
from typing import Any, Dict
from ..const import GitHubRequestKwarg
from ..models.organization import GitHubOrganizationMinimalModel
from ..models.reposit... | [
"noreply@github.com"
] | ludeeus.noreply@github.com |
adf625842636ccc75d545aa5f1e107a48d4ec5cb | f8d753a822047a68e417ba58d17f754789e2af93 | /migrations/versions/ad4acce05428_.py | 182a439446f9e08a2fd3cbe43752625d82ba13eb | [] | no_license | daronjp/travel_blog | 113eba826ccabcc18c51fc169e3b2ae359365b77 | 2a016ec840ebb468112a79c52605404d2ac1aa72 | refs/heads/master | 2023-05-10T19:39:34.713528 | 2022-09-13T03:47:57 | 2022-09-13T03:47:57 | 211,604,162 | 0 | 0 | null | 2023-05-01T22:49:07 | 2019-09-29T04:39:32 | Python | UTF-8 | Python | false | false | 798 | py | """empty message
Revision ID: ad4acce05428
Revises: 07c5566941d1
Create Date: 2019-09-30 14:09:13.551393
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad4acce05428'
down_revision = '07c5566941d1'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"daronjp@gmail.com"
] | daronjp@gmail.com |
d4eb0b65a8e727748c9d78004d51c636bf799cf0 | 6aea393423a0f840c5d28e903726c1fc82dd0544 | /System_class.py | 4b9ee2d8eebe3fa193ecc2a20d2e3af9fc762a77 | [] | no_license | markrsteiner/markosim_reloaded | 7ea4e9ed6d3403a2e560e055f89ab359c69519be | 96ce8d534c9e59feb79ed1e80a52ef55e88a7749 | refs/heads/master | 2020-04-10T18:09:24.717592 | 2019-02-28T16:28:55 | 2019-02-28T16:28:55 | 161,195,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,260 | py | import math
import numpy as np
import format__output
class System:
def __init__(self, user_input_file: dict, simulation_instance) -> None: # should take simulator instance or something
self.input_bus_voltage = float(user_input_file['Vcc [V]'])
self.input_ic_peak = float(user_input_file['Io [Apk... | [
"calarmy1"
] | calarmy1 |
6dadb8446146a85cfb8ae39894b3b97d9a46708d | 24108066b4b5b6ecd02c7fb499d970eab1877380 | /codeforces/queueatschool.py | b500a8dde8579bfc2827cd50ca3f5685bf164946 | [] | no_license | vishu1994/Datastructures-And-Algorithms | 93fc7e1d1f5fac775b6c50cb8cafd1a4f3060544 | 35bfc28edd8ebf1c1724be41402b1befd478aed4 | refs/heads/master | 2020-03-30T19:26:36.413735 | 2019-07-27T10:31:47 | 2019-07-27T10:31:47 | 151,542,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | nt=list(map(int,input().split()))
n=nt[0]
t=nt[1]
myqueue=list(input())
for i in range(t):
j=0
while j<len(myqueue)-1:
if myqueue[j]=="B" and myqueue[j+1]=="G":
myqueue[j],myqueue[j+1]="G","B"
j=j+2
else:
j=j+1
for i in myqueue:
print(i,end=... | [
"vishalpandey801@gmail.com"
] | vishalpandey801@gmail.com |
4f7ae60a8596d2b441a4ff0da86b405f6c80aba6 | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk.staging/lib/googlecloudsdk/calliope/arg_parsers.py | 106bfe82ce32e1f5504ba759ff9f2da633c36cc4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,962 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
25758d4020776fdb429b99cd383fb2251ca42ea7 | cbbc0c95e367932e962f8d9e6175a5150d0c6570 | /coursera/algorithmic_toolbox/Greedy Algorithms/Maximum Salary/maximum_salary.py | 2ebcd8633f3620ee15e42cef0dfecc8f14bbe780 | [] | no_license | chobostar/education_and_training | 1369ab98f28b93651bb861a40c1fa0603973519e | fcec324a1b92916401ba8de5c61f6d7b1ee69c68 | refs/heads/master | 2023-08-04T04:36:16.217908 | 2023-07-22T08:09:54 | 2023-07-22T08:09:54 | 216,988,123 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # python3
from itertools import permutations
import random
def if_greater(x, y: str) -> bool:
return (x + y) > (y + x)
def sort(items):
less = []
equal = []
greater = []
if len(items) > 1:
pivot = random.choice(items)
for x in items:
if not if_greater(x, pivot) and ... | [
"yakutskkirill@mail.ru"
] | yakutskkirill@mail.ru |
d556f5c5b3363e7fc2bbc713413256455f6f53d3 | 7b6e3c5e6b963c749da9f946275661ae0e67dbd2 | /src/model/test/yolo_v2_test.py | f12f453a1da9ecff535acc2209d498da9c687322 | [] | no_license | WeiZongqi/yolo-tensorflow | c8237295b41beb61943207d8511c80a0f33507f2 | 53eaa2ad779918ced2ded2834e09abf2e0ed7202 | refs/heads/master | 2021-01-25T14:26:58.371334 | 2017-12-28T08:18:59 | 2017-12-28T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,688 | py | # -*- coding: utf8 -*-
# author: ronniecao
from __future__ import print_function
import sys
import os
import time
import numpy
import matplotlib.pyplot as plt
import tensorflow as tf
from src.data.image import ImageProcessor
from src.model.yolo_v2 import TinyYolo
class TinyYoloTestor:
def test... | [
"caocao7066@outlook.com"
] | caocao7066@outlook.com |
449a5b4d464ce12c138b35ee87635fe1817540fc | 13d3a44447f6a7d8b0d61c2fb445fa6aa76c2f95 | /stackdio/core/viewsets.py | 3708da69f32348e2a5e6effb26d7be236dfe77f5 | [
"Apache-2.0"
] | permissive | stackdio/stackdio | 6ba4ad6c2ef10a323cbd955e6d6d5bd7917c17c2 | 84be621705031d147e104369399b872d5093ef64 | refs/heads/master | 2021-04-09T16:36:38.220557 | 2018-08-13T18:25:29 | 2018-08-13T18:25:29 | 17,679,603 | 9 | 11 | Apache-2.0 | 2020-03-19T17:21:45 | 2014-03-12T19:02:06 | Python | UTF-8 | Python | false | false | 13,461 | py | # -*- coding: utf-8 -*-
# Copyright 2017, Digital Reasoning
#
# 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... | [
"clark.perkins@digitalreasoning.com"
] | clark.perkins@digitalreasoning.com |
fabcbe720fa7f9586321ad3d1884bd8c89a35a95 | fa701904e59a94510a5c4fa3e1e64a8fe4135fd6 | /mysite/mysite/settings.py | 887b16718fbb0754f36a99c8116988166e0bd302 | [] | no_license | pr0mila/django_practice | 6c4c29987d94d7d838fe6f5378862f266203d97f | 64ab8181f053d158ed1c5d47d459e8771cc4681a | refs/heads/master | 2020-08-18T09:27:01.351518 | 2019-10-18T21:04:18 | 2019-10-18T21:04:18 | 215,774,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
# Build... | [
"me@promila.info"
] | me@promila.info |
26435cad8b4f6e3701b33caaa53babbe68372fcd | 122db49900adae3d25bf6a17db54699086593f94 | /klimplot_fetch.py | 7bbb62ddb847248ee839f7ceb18b007e5ac29816 | [] | no_license | geoenvo/klimplot | 77a63296ad85b5e1e2a2fa391ab3904d289860ea | 0c70b350c5dca155211f2e4089b7765f34ef7101 | refs/heads/master | 2021-01-10T11:19:06.675854 | 2016-02-16T03:41:42 | 2016-02-16T03:41:42 | 51,801,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Klimplot
# Fetch Script
# (c) 2015 Mohammad Fadli
# Geo Enviro Omega, PT
# KlimPlot digunakan untuk memvisualisasikan dan mempublikasikan data Iklim menjadi bentuk Map Services.
# Script ini digunakan untuk me
#HOWTO
# Jalankan di background: python klimplot.py &
# Taruh di cron, atau jalankan sebagai servi... | [
"mf4dl1@gmail.com"
] | mf4dl1@gmail.com |
282cc009f6f0e3ea9db0caeb7c910203e582bc4d | 13df9ce30c3b6999f38ccf46ea9a85f3fa9f44a9 | /reports/forms.py | 75e02c96731b1abb0eb6f31b575fa2e133c1e6a8 | [] | no_license | PavelM87/tf_idf_app | 37b5598f7f46af308f24733a145b8308610a0797 | 6b36e516b2daefd89b52765f1244857d16a4efcd | refs/heads/master | 2023-07-26T16:03:33.165133 | 2021-09-13T16:04:20 | 2021-09-13T16:04:20 | 405,765,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django import forms
from .models import File
class FileForm(forms.ModelForm):
class Meta:
model = File
fields = 'file', | [
"mospv87@gmail.com"
] | mospv87@gmail.com |
33e88efe4e627f6559fbe2ae3e666d6cd80bb96a | 25db8b32ecda47a22a8a1ae4551e2378e4d576cf | /rest/serializers.py | 48d3eeebe7c5ac11184608c3cbe7c1f91bd0730c | [] | no_license | viperfx/ng-forum | 4754ca69d699ad466e836b28bda68d9d84e0cd34 | 5a55692122b91876104c209a73bab05f7318c3ff | refs/heads/master | 2021-01-01T19:42:18.879573 | 2013-11-08T15:27:32 | 2013-11-08T15:27:32 | 13,254,263 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from rest.models import Forum, Thread, Post
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('url', 'username', 'email', 'groups')
class GroupSerializer(seria... | [
"tharshan09@gmail.com"
] | tharshan09@gmail.com |
88c38efa8ff0a8056b6fc309011e034888426fa0 | 26acc7e23024098661a42da37e2cb4ed56c21b44 | /dgp/genera/load/loader.py | daf5ca8acee012f9dd328fd48ef0fb2baf85a38a | [
"MIT"
] | permissive | dataspot/dgp | 80536c0e296570c109511de3dae6e0297bb8b0fd | e86d604c8af5534985f9b788ba809facbc325152 | refs/heads/master | 2023-03-16T05:15:38.362702 | 2023-03-09T07:07:28 | 2023-03-09T07:07:28 | 169,378,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | import os
import json
import requests
from hashlib import md5
from dataflows import Flow, load, dump_to_path
from dataflows.base.schema_validator import ignore
from ...core import BaseDataGenusProcessor, Required, Validator, ConfigurableDGP
from .analyzers import FileFormatDGP, StructureDGP
from ...config.consts impo... | [
"adam.kariv@gmail.com"
] | adam.kariv@gmail.com |
0176c8e8f9f456d2c8194d846412d68db7679af2 | e9552e0e7960a8b04ec2f3e4889d51ffb1e5318c | /td/client.py | 5732f13556e75132f0fc37d1b75f711f90dcd8fc | [] | no_license | webclinic017/ethan_trade_bot | 32d76270f18f339c7a116b83128a4954669711f6 | 9b78e216be38dc9dd709d5e0bcc936ea8886b751 | refs/heads/main | 2023-06-14T19:45:38.614865 | 2021-07-03T07:10:34 | 2021-07-03T07:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,843 | py | import os
import time
import json
import datetime
import requests
import urllib.parse
import dateutil.parser
from td.stream import TDStreamerClient
class TDClient():
'''
TD Ameritrade API Client Class.
Implements OAuth 2.0 Authorization Code Grant workflow, handles configuration
and stat... | [
"lovetrading09@yahoo.com"
] | lovetrading09@yahoo.com |
7dbe960a1c9a8e1e356ad75deab3f1df4abc7aac | 4a0c3f5f697ab694067f5fc59486707440593856 | /python/20_Slots.py | b95795f1ef5714b1713849c16c00279e4745897a | [] | no_license | shweb360/Python | 4cfe5e1e12d0bad02217ccd1bded7815a1c192e9 | dd589674ed22ebd835efb21954ed0a96430002f8 | refs/heads/master | 2021-06-24T17:04:22.378895 | 2019-12-01T06:06:51 | 2019-12-01T06:06:51 | 102,442,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #1.1创建一个类:
class Student(object):
pass
#1.2给实例绑定一个属性:
s=Student()
s.name="Wushuang"
print(s.name);
#1.3给实例绑定一个方法
def set_age(self,age):
self.age=age
from types import MethodType
#给实例绑定一个方法
s.set_age=MethodType(set_age,s)
#调用实例方法
s.set_age(25)
print(s.age)
#2.0使用__slots_
#但是,如果我们想要限制实例的属性怎么办?
#比如,只允许对Student实例添加na... | [
"785132826@qq.com"
] | 785132826@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.