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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56b18ca46d98919f0d96d158d3f17edeb2a2ad5e | 3d6974270949de1a2fd2d6319fc99d6b78f591b9 | /Hsctf/regulusRegulus_hsctf.py | 29db12653b600780ca466612e16825db266e1f56 | [] | no_license | Necron3574/CTF-Challenges | 4b698bd222eefcad082541913c9acd23e4890802 | 7e34bef431e2344cbef2a7c78ccdeb6173575145 | refs/heads/master | 2023-06-05T02:59:34.852799 | 2021-06-19T12:16:46 | 2021-06-19T12:16:46 | 276,405,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import numpy as np
import sympy
from Crypto.Util.number import long_to_bytes,inverse
from pwn import *
import math
ans_list = []
def gcd(p, q):
if q == 0:
return p
return gcd(q, p % q)
def lcm(p, q):
return p * q // gcd(p, q)
r = remote("regulus-regulus.hsc.tf",1337)
print(r.rec... | [
"noreply@github.com"
] | noreply@github.com |
702e2678b812860fd99d5d5961d919bb4fd981e8 | 6b033e3dddc280417bb97500f72e68d7378c69d6 | /V. Algorithm/ii. Site/D. BOJ/Dynamic Programming/2193.py | 4b960384965a4371013ee1182733e2531ed328a8 | [] | no_license | inyong37/Study | e5cb7c23f7b70fbd525066b6e53b92352a5f00bc | e36252a89b68a5b05289196c03e91291dc726bc1 | refs/heads/master | 2023-08-17T11:35:01.443213 | 2023-08-11T04:02:49 | 2023-08-11T04:02:49 | 128,149,085 | 11 | 0 | null | 2022-10-07T02:03:09 | 2018-04-05T02:17:17 | Jupyter Notebook | UTF-8 | Python | false | false | 267 | py | # n = 0: cnt = 0
# n = 1: 1 cnt = 1
# n = 2: 10 cnt = 1
# n = 3: 100, 101 cnt = 2
# n = 4: 1010, 1001, 1000 cnt =3
# n = 5: 10000, 10001, 10010, 10101, 10100 cnt =5
n = int(input())
dp = [0, 1, 1]
for i in range(3, n+1):
dp.append(dp[i-2] + dp[i-1])
print(dp[n])
| [
"inyong1020@gmail.com"
] | inyong1020@gmail.com |
47c6b92399de2246c4e93fa4ef8ac55e20cc10bd | ab4e2883680fd0ab576d9b30be88c08f38e9562b | /examples/causalrec_clothing.py | 011036ed7d2d4fb0335efe82bcd5d637c395b016 | [
"Apache-2.0"
] | permissive | PreferredAI/cornac | 6b2ac4589dfe38a41128b0d00b7fc642a5ae41ba | b0d6fe83e9c99bfe41312059ae849ca1009a179f | refs/heads/master | 2023-08-17T18:17:52.745292 | 2023-08-13T04:51:13 | 2023-08-13T04:51:13 | 141,242,285 | 806 | 150 | Apache-2.0 | 2023-09-14T09:19:15 | 2018-07-17T06:31:35 | Python | UTF-8 | Python | false | false | 2,208 | py | # Copyright 2018 The Cornac Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"noreply@github.com"
] | noreply@github.com |
ef0fde3342528da0960d780262d15269aad0afbf | bbffa308bee71735e27987be37a574a38694d3a1 | /ex08/ex08.py | 52fbeae895a4ee9c1a5535ab3b30ad4db9603f7c | [] | no_license | jppiri1/16PF-C-jppiri1-2- | 03414b545bc4f1e05e92d6ccbc5ba326a9725277 | 68afbe01a5f8a1e55a114bd38f5ea2a4a2fb6595 | refs/heads/master | 2021-01-21T04:47:22.266089 | 2016-06-07T03:58:14 | 2016-06-07T03:58:14 | 54,304,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | formatter = "%r %r %r %r"
print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, False, False, True)
print formatter % (formatter, formatter, formatter, formatter)
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn`t sin... | [
"CAD Client"
] | CAD Client |
0bac063d3a631ce56e9092d9b9ec1bbbc00858ec | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /katas/kyu_7/zip_it.py | 733c9415236cc72574804bc9a23e8b2577159867 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def lstzip(a, b, fn):
return [fn(*c) for c in zip(a, b)]
| [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
d73ccf2d39aaf193831dac92f62a3d44013949eb | 0d661d1a81535d36934046ceb483a44dd7e6f8dd | /Cosine.py | 068ef081b92b159ba688b0aca95a1f2b870ae1aa | [] | no_license | cassiyemay/Text_Analytics | 38e2712c68712267629670e7fe9af3641843c0c6 | ad9d50667dfe320302a8c97a995ea122345fd239 | refs/heads/master | 2021-08-23T20:40:04.153178 | 2017-12-06T12:52:52 | 2017-12-06T12:52:52 | 113,315,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | import math
from collections import Counter
vector_dict = {}
def load_docs():
doc1 = ('d1', 'semantic analysis for building model')
doc2 = ('d2', 'learning latent semantic indexing')
doc3 = ('d3', 'analysis of latent structures and semantic analysis of structures')
doc4 = ('d4', 'books on latent stru... | [
"chen.zeng@ucdconnect.ie"
] | chen.zeng@ucdconnect.ie |
32d8b8cb24a7c119f56ac9c2052b990ff43d6860 | f057b4b94d6c1d3ce6a45cdc8c799469cbe00119 | /code/trace_regression/trace_regression.py | 63a730cbc003d3ab1c74a0c78a6303d99da5088d | [] | no_license | sellamiakrem/deep-multi-view-representation-learning | 16afa3f61bb27eb86c483c8ba03af63a2747acc1 | 9b34c297b0a173400aa87bc04208b709aac9b0fb | refs/heads/master | 2022-10-03T23:58:46.291789 | 2020-06-08T06:24:04 | 2020-06-08T06:24:04 | 259,261,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,642 | py | import numpy as np
import convexminimization as cvm
import pickle
import scipy.sparse as ssp
from sklearn.model_selection import KFold
from sklearn.metrics import mean_squared_error
from sklearn.metrics import r2_score
# import matplotlib.pyplot as plt
def load_data(fold):
# Les données dans une liste (pour com... | [
"noreply@github.com"
] | noreply@github.com |
28d3d1162f07d7328b3463ee4a62994322b6de5c | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/Thesis/Forced/GaussianBumpoverPeriodicBed/o3fix/Run.py | 9587f565efe9f1d699e85365195fd1c81d45552c | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,675 | py | from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
import csv
import os
from Serre3 import *
from numpy.linalg import norm
from time import time
from scipy.special import erf
def copyarraytoC(a):
n = len(a)
b = mallocPy(n)
for i in range(n):
w... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
b13a24e3823a24c4e424b74499e043a1dba98a3f | de65c8e672e5b620619f90ce3aa7e7ec80ef2d84 | /0035_type_hinting/usage/demo2_class_as_type.py | 7f3301b9a8a79971966b42f93f965191310f37bf | [
"MIT"
] | permissive | tukeyone/jupyter_demos | 123ee76a79cff8924df015a50199c371f81fcad1 | 8aa8a0320545c0ea09e05e94aea82bc8aa537750 | refs/heads/master | 2022-11-06T20:29:20.513301 | 2020-07-04T17:25:36 | 2020-07-04T17:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | class Person:
pass
def f(p: Person):
pass
f(Person())
f(1)
f('aaa')
| [
"cai.junjie@synyi.com"
] | cai.junjie@synyi.com |
c73f34c67db7b5d63bd10104628abd4397a24505 | aed48b8de71d95ae3c1cadb72f1ef7efe7193d0d | /bin/flask | df25fe987fb2dfbb170c2fc373ec646a1c40ae20 | [] | no_license | frknltrk/videohub | 7bc77c1603803046cb182e418b1dcc990fa1d2be | d3f5fb73941abb8a38305f30d0ced3d3ffbee82a | refs/heads/main | 2023-02-05T16:46:05.929642 | 2020-12-27T22:35:25 | 2020-12-27T22:35:25 | 324,857,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/data/data/com.termux/files/home/video-project/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"furkan.unluturk@outlook.com"
] | furkan.unluturk@outlook.com | |
c015b2d10e279ef05a81006e31cb65634e6aa98d | f5f12848f4cb6985a355b501ba05b1cb4d0cc41c | /python/hello_world/test.py | 995959f9c7520895e937e8ed5812031692939760 | [] | no_license | dshinzie-zz/exercism | 499c0774c2b95a05befa1ce2aab94eb54cce99ae | 73addedfb578b7e591aeda6d79b3161a48b1d3e7 | refs/heads/master | 2021-06-14T05:29:43.764935 | 2017-03-31T18:31:45 | 2017-03-31T18:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def init__(self, year):
self.year = year
def is_leap_year(self):
return self._is_divisble_by(4) and not self._is_divisble_by(100) or self._is_divisble_by(400)
def _is_divisble_by(self, num):
return self.year % num == 0
| [
"shin.daniel.d@gmail.com"
] | shin.daniel.d@gmail.com |
b1ad9c2926085229d85f7dca89dc2f96939499e2 | ca9a9b1c9ec8508ba4a6d64ee4309a8d87469fee | /web/admin.py | bca04d8cc757a4035af64900e2c3f7f06f9b1c24 | [] | no_license | nagadeepsharma/vmegLibrary | 8ff37a37d945405e7409b57cfb4a60e8c7217e86 | 24eb5faf3ce1fdd1aa3e715b0329732ebd03e0e0 | refs/heads/master | 2023-03-11T12:34:47.712250 | 2021-02-26T11:59:10 | 2021-02-26T11:59:10 | 267,079,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from .models import Memo
from .models import Cse,Ece,Civil,Eee,Mech,Cart,All
# Register your models here.
admin.site.register(Cse)
admin.site.register(Ece)
admin.site.register(Civil)
admin.site.register(Eee)
admin.site.register(Mech)
admin.site.register(Cart)
# Register your... | [
"nagadeepchandragiri@gmail.com"
] | nagadeepchandragiri@gmail.com |
d3ced68266685dd36f55b315a30e3b253a75301c | ed9fe8d7168da525f49d5854c3fcef688a530c9f | /Emotes.py | e407437a1561c30a6dc283704e213effaf92401d | [] | no_license | jsmall53/ThunBot | 2cb36f0ec30accb56581d167911052e846a13e8a | 6b565d081c33aeda825d65937b0ac4575d22a70d | refs/heads/master | 2021-01-11T20:11:32.058158 | 2017-08-05T17:02:28 | 2017-08-05T17:02:28 | 79,062,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # This class will store emotes as well has contain methods for choosing and comparing emotes
import random
import DBInterface
class Emotes:
'''This class stores emotes usable through twitch.tv chat interface'''
# first we need to open the file containing the emotes
# its in a .txt file and each emotes is separate... | [
"jsmall53@ymail.com"
] | jsmall53@ymail.com |
61abe9787e2e68147c620f0f6ec3363dec771ddf | f3eb2a9f8b9cd43cf1c9776426c9a4ca35413e66 | /DyMRI-image_space_reg/datasets/kmnist.py | b8db44c4ed1247c8a3f8be1e37ee19e9046d1b8f | [] | no_license | danieldemarch/yang_mri | 52fc024d4c0fbb17a6950b8877f779ef1c7ba25a | 602fd2b2c28f4067d818ee401a98c6687bcf663d | refs/heads/main | 2023-02-11T22:27:18.343768 | 2021-01-09T02:20:38 | 2021-01-09T02:20:38 | 328,050,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | import os
import numpy as np
import torch
import tensorflow as tf
image_shape = [32, 32, 2]
data_path = './data/mnist/'
train_x, train_y = torch.load(data_path + 'training.pt')
train_x, train_y = train_x.numpy(), train_y.numpy()
train_x = np.pad(train_x, ((0, 0), (2, 2), (2, 2)), mode='constant')
train_x = train_x.ast... | [
"noreply@github.com"
] | noreply@github.com |
074edb539567d10307ee6bb96543626e7a203e6b | e29361c8249bc8f37e84f72c24ebb76cfc02728d | /ServerTeset.py | 235340b5e1b744407b6283e9d826393d557b199b | [] | no_license | homayoonSoft/DMP | 0a2287ff02016976c4dbea715f9f9b3d1e7762c4 | ac2a22640475a9eed840b0df8933a5857919374f | refs/heads/master | 2020-05-19T13:18:14.465809 | 2015-08-25T19:44:53 | 2015-08-25T19:44:53 | 41,367,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # Echo server program
import socket
HOST = '192.168.0.5' # Symbolic name meaning all available interfaces
PORT = 50008 # Arbitrary non-privileged port
ac = 5
tamp = 6
bat= 21
in1 = 13
in2 = 19
in3 = 26
fAc= "AcFailuer"
fTamp= "Tamper"
fBat= "BatteryFailuer"
fInput= "Input"
fdata= fTamp ... | [
"homayoon.ezabadi@gmail.com"
] | homayoon.ezabadi@gmail.com |
ad9c89bd8e79b7e53932b5fb45189b072c1993ae | 961c0931d62563ad41d1380dfb7191eb8a518ff2 | /test/test_remove_contact_from_group.py | 3823b8fdb22464d937e0fee95cd26cb0a330e2e1 | [
"Apache-2.0"
] | permissive | GatskevichVika/python_training | bc71155239921629bd753350a489f01b8525b995 | 80d639223fc66e5d537d490c014f2b23907a32ab | refs/heads/main | 2023-06-05T01:21:47.636918 | 2021-07-02T15:05:16 | 2021-07-02T15:05:16 | 349,970,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from model.contact import Contact
from model.group import Group
from fixture.orm import ORMFixture
import random
db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
def test_add_contact_in_group(app):
contact_list = db.get_contact_list()
if len(contact_list) == 0:
app.con... | [
"gatskevich.vika@gmail.com"
] | gatskevich.vika@gmail.com |
f34846e33b05fcd5dbd1d5dbc9edaf47e587cbd5 | 15ec207a9ffaf4834ac18379a9cd67d08f7553a7 | /cleanpkgcache | fc4d6f0f95ac60579f6b5c355d2b698f0518f813 | [
"MIT"
] | permissive | adamk33n3r/bin | 115042e1beb995174baa2e8b07cbb01293f81132 | 7757e087741f30bbeb7c5574af28a59b2873643f | refs/heads/master | 2023-04-05T12:09:17.258837 | 2021-04-12T14:33:14 | 2021-04-12T14:33:14 | 17,489,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | #!/usr/bin/python3
import os, sys, re
from itertools import groupby
if not os.geteuid() is 0:
sys.exit('Must execute as root')
def identifier(text):
return (re.findall('.+?(?=-\d)', text) + [text])[0]
if len(sys.argv) > 1:
num = int(sys.argv[1])
else:
num = 1
for root, dirs, files in os.walk('/var/... | [
"adam.g.keenan@gmail.com"
] | adam.g.keenan@gmail.com | |
6daa97e53ba7862d1bb5c814075b310eb5a81670 | 4b00a2fd9f926bab452ede4319ee948dddc84215 | /nys/fieldCreator.py | 3b2a7eaa5016999b9ad06df8737edada013718ba | [] | no_license | maketubu7/make_python3 | 64c00b37600f90d6543f919446cfe7479e883841 | 70405be146cfb83250c51d7211c06a4b6db6db93 | refs/heads/master | 2020-11-29T17:15:46.312929 | 2020-07-27T09:45:29 | 2020-07-27T09:45:29 | 230,176,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | # -*- coding:utf-8 -*-
# @Time : 2020/1/2 15:59
# @Author : dengwenxing
# @Software: PyCharm
import faker
from collections import OrderedDict
import time
from datetime import datetime, date
from random import randint
f = faker.Faker(locale='zh_CN')
'''类似的字段,调用相同的函数,前者为主函数,后者的字段都调用前者的标准函数'''
like_link_func = Ord... | [
"zhengxing@d-bigdata.com"
] | zhengxing@d-bigdata.com |
71973edce3476ef0427aade214f188a11ec6a1e7 | c03c3668af6e39b4822c2e9afa6f14795d40a32b | /tests/Eva_data_test.py | c45a7428b69f4854bb35c11ca961ceeb0a2edbb7 | [
"Apache-2.0"
] | permissive | automata-tech/eva_python_sdk | eb034b765d954c5f23882a8ac695d7cb0ca4d297 | 9197dbfc5fbe22ba42bea44be0f7560426aeca72 | refs/heads/development | 2023-08-09T18:16:56.689951 | 2021-11-08T13:37:14 | 2021-11-08T13:37:14 | 174,977,213 | 17 | 15 | NOASSERTION | 2023-07-25T20:07:46 | 2019-03-11T10:29:01 | Python | UTF-8 | Python | false | false | 818 | py | from evasdk import EvaError
import pytest
@pytest.mark.robot_required
class TestEva_Data:
# TODO: we may want to check the structure of the snapshot JSON object
def test_snapshot(self, eva):
snapshot = eva.data_snapshot()
assert(snapshot)
assert(snapshot['control']['loop_count'] >= 0)
... | [
"ch.c@automata.tech"
] | ch.c@automata.tech |
5b6840976a35753859a84449e8b8048a8decffe4 | 2946333b30057db971de3f73172c97e21389968b | /Script/Question_2.py | 0d26ec90b5c50a5556cb24ccc646fcd448731644 | [] | no_license | sailepradh/Python_practise | ef274602480e146ca65f9f154d4a583e16055e10 | 9609c32a3245107e0007e23241d5eadadb65cf7f | refs/heads/master | 2021-06-14T08:49:04.460713 | 2017-04-21T15:13:06 | 2017-04-21T15:13:06 | 54,280,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
'''
In the following task we use GTF file to find further manipulation from the course as given in the website "https://nbisweden.github.io/PythonCourse/vt17/project"
'''
# Question 1 ) How many transcripts
with open ('/Users/salendrapradh/Downloads/Homo_sapiens.GRCh38... | [
"sailepradh@gmailcom"
] | sailepradh@gmailcom |
22f069322c7030e297109b7c43d5b9d3f201ba12 | aced5223f045cafde773bd408c1b84f998f26ff5 | /detect/ws.py | 91893d2365f5df8eaef8d5f31d3b0056bfe57b1c | [] | no_license | FacelessManipulator/face-detect | c219442baa28e1130d353c2ad86f454164e24a52 | 3add475663ca4d5f98d4509fc7cb7763b6cfc3cc | refs/heads/master | 2021-06-19T09:50:09.961819 | 2017-07-12T02:10:47 | 2017-07-12T02:10:47 | 74,874,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | #coding=utf-8
import tornado.web
import tornado.ioloop
import tornado.websocket
import time
from taskpool import FacedetectPool
import json
class BaseSocketHandler(tornado.websocket.WebSocketHandler):
def on_message(self, message):
detector.detect(message,self)
def on_close(self):
print 'clo... | [
"miller_maxwell@outlook.com"
] | miller_maxwell@outlook.com |
5cd0cfe9fac8e2bc399ea057c6a9695b6a68d405 | 0c7de663a777604e8aa4e79b57540b1b228b6c92 | /part1/mysite/mysite/settings.py | 85d0b56d596ce3fe4fe389bcea7916fd3151bc9f | [] | no_license | ogra/django-tutorial | 39bf8abf8831bfc1cf4da5785839188397229683 | 2d5f519a1185a6b6ab2c0e3beed7bc5a3627b36b | refs/heads/master | 2016-09-08T01:12:59.528743 | 2014-08-04T02:01:13 | 2014-08-04T02:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"tos.ogura@gmail.com"
] | tos.ogura@gmail.com |
ab38fa82d9b8cf396b4f0b59f0d022fcc182afad | ef2471b1fe707df713ea2b42f9fde65459da53fd | /python-src/nulllayout.py | 700a0e093efb49a5d92c2d33390ce38a82d73caa | [] | no_license | d3vgru/tgs-dist | ca617ee96d5de05b4f3ce243f291feeab77c0899 | ae25725eaad3f4deba0e4cc28594331d9d1d3857 | refs/heads/master | 2020-05-18T11:29:57.626193 | 2013-03-19T22:52:54 | 2013-03-19T22:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #__all__ = ('NullLayout', )
from kivy.uix.layout import Layout
class NullLayout(Layout):
def __init__(self, **kwargs):
super(NullLayout, self).__init__(**kwargs)
| [
"knutsoned@gmail.com"
] | knutsoned@gmail.com |
b72639fefb186348b900a58c7e765b4f198fea4c | f8d0e0358cfc7774e2ade30fb041a7227f72f696 | /Project/MNIST/Actual_Picture/mnist_generate_dataset.py | 7fad26b687d9e1f1ecda401e1fd57dbd54d78c55 | [] | no_license | KimDaeUng/DeepLearningPractice | e01c99d868e7a472ca5ec9c863990e0ab4b48529 | 811f26e0859f0f7cb73d9a0ce3529fb8db867442 | refs/heads/master | 2023-04-01T02:26:14.670687 | 2021-04-03T14:08:48 | 2021-04-03T14:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import tensorflow as tf
import numpy as np
from PIL import Image
import os
# Generate standard tfrecord of training or testing set
image_train_path = './mnist_data_jpg/mnist_train_jpg_60000/'
label_train_path = './mnist_data_jpg/mnist_train_jpg_60000.txt'
image_test_path = './mnist_data_jpg/mnist_test_jpg_10000/'
labe... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
1fbaaa37c9e7d4d0e2c6deac7bbb8cc540139e05 | 7f42b09c84b72477284a57fcef18b322b35ef676 | /src/wres.policy/wres/policy/cmedstat.py | d5272bd13d50c153fb304dc493695011eac36354 | [] | no_license | luizferreira/cmed | f054bec365ecf04124fb4593f8613269265f6826 | a276663fe1df45d0326744e161bdd239873d6c26 | refs/heads/master | 2021-01-19T00:52:25.005971 | 2020-12-02T14:45:43 | 2020-12-02T14:45:43 | 4,264,885 | 12 | 3 | null | 2019-10-25T20:14:12 | 2012-05-08T20:01:36 | Python | UTF-8 | Python | false | false | 726 | py | # As requisicoes ao cstat agora sao assincronas. Retirar a partir de DEZ/2013
# import requests
# from Products.CMFCore.utils import getToolByName
# def request_stat_registration(context):
# prefix = 'cmed_'
# site = "http://cstat.communi.com.br/cmed_stat"
# mt = getToolByName(context, 'portal_membershi... | [
"lgustavo.fonseca@gmail.com"
] | lgustavo.fonseca@gmail.com |
de2a5e9123899c4d2aa008f270bed4e1523f7c76 | 2ba65a65140e818787ab455ca374f99348ade844 | /hashmap_and_heap/q004_longest_consecutive_sequence.py | 30fea9fc4eba2b9a20ea220cdbe5bcb49156643d | [] | no_license | samyakjain101/DSA | 9e917f817a1cf69553b5f8ca5b739bc6f0c81307 | 632a605150704ceb5238cb77289785eb5a58201c | refs/heads/main | 2023-05-06T06:31:09.401315 | 2021-06-01T13:37:59 | 2021-06-01T13:37:59 | 340,645,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def longest_consecutive_sequence(arr: list):
hashmap = dict()
for num in arr:
hashmap[num] = True
for key in hashmap.keys():
if key - 1 in hashmap:
hashmap[key] = False
max_streak_start_point = 0
max_streak = 0
for key, value in hashmap.items():
if value:
... | [
"samyakjain101@gmail.com"
] | samyakjain101@gmail.com |
6d6ea4a6da71a4dd55b9827ed63099c095f2893a | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/config/configurations/list.py | 31105c5866eaeddb88a441350c50f64724d0caa9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,213 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3349d97d66f23100f093b22aec74b65a021064ea | 2a5d4ab9d498e413fc69212c615fbb6c6a2c6540 | /week05/exercise1.py | 6525a0b222ed14224ddbe48ec8d68c3f8ff264d5 | [] | no_license | lumengyu/python123 | 6f985f9fb75e6a08d08ebef50058c4f632c27ead | 32dc37234c90502d83f08fd50a452c5781f04c47 | refs/heads/master | 2022-02-05T12:00:39.655111 | 2019-07-29T08:49:06 | 2019-07-29T08:49:06 | 198,126,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import random
def genpwd(length):
a = pow(10, length - 1)
b = pow(10, length) - 1
return "{}".format(random.randint(a, b))
length = eval(input())
random.seed(17)
for i in range(3):
print(genpwd(length))
| [
"zgshwp@aliyun.com"
] | zgshwp@aliyun.com |
0d0ffda577ccb37780d4868464ca1a94879b1103 | 0a0e622f955b548e23bf5f974c58b5a6dde714d1 | /tensorflow_estimator/python/estimator/canned/linear.py | 3ebd5d8cb98f65d917286769627a53af1050eae3 | [
"Apache-2.0"
] | permissive | brettkoonce/estimator | 7a4172542d9ec67359147c07df252632ea1c2a4e | ba2f4a069bc0ee4a96f87f4d1c1688fb9121e297 | refs/heads/master | 2020-04-09T05:18:47.974913 | 2018-12-02T00:16:26 | 2018-12-02T00:16:46 | 160,059,700 | 0 | 0 | null | 2018-12-02T15:11:38 | 2018-12-02T15:11:38 | null | UTF-8 | Python | false | false | 48,684 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
62aaac7b8b391f9dedc441286abfd1b735d64e50 | 56a98ae2419cffec3ba6b6c9cfec8ff75657f451 | /insta/forms.py | ed02a46dba72e1e5b12c74c2b864d8a2d79cae6c | [
"MIT"
] | permissive | kamransumar/instagram | 1e07db4e8ec2ec1f397f3cdf5dbebf16bbb0ee97 | 7feb8fe989654bad6785348e6b927b7d884bef0d | refs/heads/master | 2020-04-05T21:20:23.436394 | 2018-11-20T10:04:21 | 2018-11-20T10:04:21 | 157,216,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django import forms
from .models import Post,Location,Profile,Comment
class LocationForm(forms.ModelForm):
class Meta:
model=Location
fields='__all__'
class PostForm(forms.ModelForm):
class Meta:
model=Post
exclude=['username','post_date','likes','profile_pic']
class Pro... | [
"kamransumar@gmail.com"
] | kamransumar@gmail.com |
9f61c533e7a05a5b9f615270c3551bd6d0379f0d | d86e14d97e3d5d7e47fc79dafbf23007b55bd4cd | /make_test_conv.py | e5ea5528de0091ef8b2837e17b7057238a514d14 | [] | no_license | baholman/Neural-Network-for-Device-Detection | ddb3806a8bd412df4321446260c4e9b0f28e82f1 | edab6b6237fbaf6b5b296ed632c917f569e04700 | refs/heads/main | 2023-02-17T22:36:05.162474 | 2021-01-14T17:05:31 | 2021-01-14T17:05:31 | 329,644,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,416 | py | #!/bin/python
import sys
# Ignore Future warning error
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
# Check that the python version being used is Python3
major_python_version = sys.version_info[0]
if major_python_version != 3:
print("ERROR: You need to use Python 3 to run ... | [
"baholman@ksu.edu"
] | baholman@ksu.edu |
a52be340b6e6941cb775fd9f43ea853958806772 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/render/show_all_std_line_types.py | e9df274fed178676f291164a7d5210d8cc1bb535 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 726 | py | # Copyright (c) 2019-2021, Manfred Moitzi
# License: MIT License
import ezdxf
from ezdxf.math import Vec3
from ezdxf.tools.standards import linetypes
doc = ezdxf.new("R2007", setup=True)
msp = doc.modelspace()
# How to change the global linetype scaling:
doc.header["$LTSCALE"] = 0.5
p1 = Vec3(0, 0)
p2 = Vec3(9, 0)
... | [
"me@mozman.at"
] | me@mozman.at |
8b9c582e5efa3d024b5ecea10ddf5049c4bdefaa | 178ead986696961c4df5597487893a4110c8ada4 | /config/urls.py | 15ad10e0e4ac4f3efee48bfbcd51b2fe2319a680 | [] | no_license | Donkey-1028/MyFirstSite | c71a129f5b2d03ccbca84202310871fb2ae0d8ec | efe7cf68df64e0e4b070cf0100abc0dd0eb33eec | refs/heads/master | 2020-11-25T10:07:30.889875 | 2019-12-18T02:53:45 | 2019-12-18T02:53:45 | 228,611,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"anbo10283182@gmail.com"
] | anbo10283182@gmail.com |
00c31c1bf5fe7b0c1adc3db697364b3a593cc6f0 | 067ff93b7775baf5d17db0be508569e3447449c8 | /test/test_sensors_operation_request.py | 72050312888bc3b1bc9217d7f98a2e0598186109 | [] | no_license | UBTEDU/Yan_ADK | c1053d307d9ef39cb1e38ad84a59cf14cb818226 | a650cafc1f6369f6c39a0ac5905d7de564b038df | refs/heads/develop | 2020-05-22T13:52:00.655169 | 2020-05-19T02:32:29 | 2020-05-19T02:32:29 | 186,366,245 | 4 | 4 | null | 2020-05-19T02:32:31 | 2019-05-13T07:19:40 | Python | UTF-8 | Python | false | false | 2,291 | py | # coding: utf-8
"""
Yanshee RESTful API
## Overview Yanshee RESTful APIs are generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server. The API service uses the [Connexion](htt... | [
"cygnus.yang@ubtrobot.com"
] | cygnus.yang@ubtrobot.com |
969f83a6e72d90a907287749647e75d734c37fce | 4ec3965ee31407ae4a5fd2d26abf81728d346bf4 | /AULAS/módulos e pacotes/úteis.py | 83ed19a48eb51e5637c20eefd421c38c2d9c9a62 | [] | no_license | Gporfs/Python-s-projects | fe0fd560ef46846a2be904b7c89e618eecdacbbc | 2b427eb894284d894483de566fb54cef105afa44 | refs/heads/main | 2023-04-12T08:39:27.762486 | 2021-05-17T12:39:52 | 2021-05-17T12:39:52 | 368,177,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def fatorial(n):
f = 1
for c in range(1, n+1):
f *= c
return f
def dobro(n):
return n * 2
def triplo(n):
return n * 3
| [
"noreply@github.com"
] | noreply@github.com |
4244494da1dca6c072ce9d1be6b847fe28b4ccd6 | 723d94bc07bf41bb93ba82b9d3f1d6f21ddd6825 | /login_register/asgi.py | b55b2d88a8a06f5fbae0732e0f9f42c8c2daa913 | [] | no_license | Tanmoy07tech/login_register | a18952de12166e4bea476079137ad464207975ee | eee17e4469bc41dd974707a43040c3ec156649b7 | refs/heads/master | 2023-08-03T15:44:11.174299 | 2021-09-15T12:49:58 | 2021-09-15T12:49:58 | 406,653,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for login_register project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"Tanmoy07tech@users.noreply.github.com"
] | Tanmoy07tech@users.noreply.github.com |
4be3f9d640f24034aee811f67aaff5db7f7c4544 | b7f3ff4c288c4f74155167b3b6988d74996e776a | /config/settings/test.py | 8bc402d49cd20bda381524c6ea0441d546bb2611 | [] | no_license | Bazinga0426/Jiffyticket | 2a543259de853194c089b94747368f0c1e91a6ba | 912d6c9af0a88c63a19c682d3da69a780f529abb | refs/heads/master | 2020-09-07T15:18:39.069080 | 2019-12-02T11:16:24 | 2019-12-02T11:16:24 | 220,825,077 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="7vSf1A9ya... | [
"whg0426@users.noreply.github.com"
] | whg0426@users.noreply.github.com |
ea84e1a4422f760c7b19067d981e6eaf323da1e0 | 51fa47e988b6736a0eb962f8c1fa51d32622f848 | /tests/core/test_quadratic.py | 8dda3e61f379d006ff66e36e90c9998b179d0680 | [
"MIT"
] | permissive | thirionjl/chains | 09b3081f45d9bf05d12a1e5944699803701cf14f | 31bd4b85744fd56096fcc08027e8d20ce145bf0b | refs/heads/master | 2023-08-31T20:30:02.715641 | 2020-07-24T11:17:44 | 2020-07-24T11:17:44 | 152,436,731 | 3 | 0 | MIT | 2023-09-14T15:30:38 | 2018-10-10T14:25:07 | Python | UTF-8 | Python | false | false | 993 | py | import numpy as np
import chains.core.node_factory as nf
import chains.core.optimizers as gd
from chains.core.graph import Graph
def test_quadratic():
x = nf.initialized_var('x', np.array([[0.07], [0.4], [0.1]]))
A = nf.constant(np.array([[2, -1, -2], [-1, 1, 0], [-2, 0, 4]]))
B = nf.constant(np.array([[... | [
"thirion.jl@gmail.com"
] | thirion.jl@gmail.com |
1f9535c24de4ade3dac2a8f1172ea8d42b4c276f | 95089cc3d7b128b9114dce54aee39c1f3f2f348b | /article/views.py | 2ac5f9f4e7c6ad8c00661050cbaa47459de15256 | [] | no_license | Froptt/esnafCoinn | 4c672f42a860ad479ed6364b29017ae061ec5710 | 6156ea7f96683cbbe8b370ee18dc507ff04a271a | refs/heads/main | 2023-08-16T10:12:05.468815 | 2021-09-27T11:47:01 | 2021-09-27T11:47:01 | 410,757,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from django.shortcuts import render,redirect,get_object_or_404,reverse
from .forms import ContactForm
from django.contrib import messages
from django.contrib.auth.decorators import login_required
def index(request):
return render(request,"homepage.html")
def about(request):
return render(request,"about.html... | [
"fropt07@gmail.com"
] | fropt07@gmail.com |
1fa28b0aa65aed60b432edff5dfd326be09701ad | 6da51a4b693d47d812cfbb1ee2b1d743ae1794c1 | /geoscript/feature/io/json.py | fa29a79500f4f5312b5964cd4e7285f7ac59cb57 | [
"MIT"
] | permissive | geoscript/geoscript-py | 412e2af097f65b4f339ed2bfd773959aca67ea5b | 28f97e7851f6d8b79712f785ef5f65ec5bf19267 | refs/heads/master | 2023-01-19T13:00:53.649044 | 2022-12-30T19:05:42 | 2022-12-30T19:05:42 | 275,684 | 24 | 16 | MIT | 2020-08-10T01:22:03 | 2009-08-12T02:26:26 | Python | UTF-8 | Python | false | false | 795 | py | from geoscript.feature import Feature
from org.geotools.geojson.feature import FeatureJSON
_fjson = FeatureJSON()
def writeJSON(f):
"""
Writes a :class:`Feature <geoscript.feature.Feature>` object as GeoJSON.
>>> from geoscript.geom import Point
>>> writeJSON(Feature({'geom':Point(1,1),'name':'one'},'1'))
... | [
"jdeolive@gmail.com"
] | jdeolive@gmail.com |
0f33e3681f7db699c764447e50f04a6ef5d0e019 | 789f98624dcb32987ff5570c6bcd5e40b86ea433 | /FileSender.py | fcf0fbba7d85a274d60f1a159d80a6e9bbee008d | [] | no_license | youssef-itanii/Messaging-App | 2c79c5644fd64836000e5a7d43777e18bae9e15f | 6ad18b5adf224035a3cab2c418149577bc331b30 | refs/heads/master | 2022-09-22T09:54:04.949335 | 2020-05-30T01:05:04 | 2020-05-30T01:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | from Commands import Commands
import socket
from os import path
from Loggers.FileLogger import FileLogger
from Loggers.ConsoleLogger import ConsoleLogger
from inspect import currentframe, getframeinfo
from MessageSender import MessageSender
class FileSender(Commands):
def __init__(self,client):
s... | [
"noreply@github.com"
] | noreply@github.com |
67a2de749330143d6065e6a18baef586cd3f37ba | e63850d17ce9981492f1ef90d7b99f4099f9760e | /configs/sknet_v2/retinanet_sknetv2_50_fpn_1x_coco.py | 0f234195315fb7fe444617e4f3375c4c03c607c7 | [
"Apache-2.0"
] | permissive | JHuang-CV/mmdetectionV2 | 992ff7b4ea3cfcbdd466c897e9162f277ecd11ce | 0daebd72302a52769d45372e26f772a942db9982 | refs/heads/master | 2023-02-24T01:33:24.230177 | 2021-01-25T09:20:51 | 2021-01-25T09:20:51 | 298,575,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | _base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py'
model = dict(
pretrained='torchvision://resnet50',
backbone=dict(
type='SKNetV2',
depth=50,
# groups=32,
# base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(typ... | [
"3222726703@qq.com"
] | 3222726703@qq.com |
d8d26f7f459c57d52e0de598befe3a4d27204ee8 | f0564014bb53555a1f0fdcc09f3e18a3c30e333d | /py/chapter_5.py | 0e93088b12cf0901ae375b5465c4cac05edebbed | [] | no_license | cyanlime/StudyPython | 1c14701f65e3ea7c50591ebf42d8a01addd0e105 | 79aadd282f06f7725dc7de9a6ce8c80871c09554 | refs/heads/master | 2021-01-01T03:59:08.683508 | 2017-11-18T12:05:18 | 2017-11-18T12:05:18 | 97,099,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | #!/usr/bin/env python 3.1
a=10
b=20
print ("a added to b is %d" % (a+b))
def in_fridge():
try:
count= fridge[wanted_food]
except keyError:
count=0
return count
def make_omelet(omelet_type):
if type(omelet_type)==type({}):
print("omelet_type is a dictionary with ingredients")
... | [
"codemeow@icloud.com"
] | codemeow@icloud.com |
eae8195e54b4ac035b92a081b49d11393bc03d3f | 693a7e0554d0d7f19453023cdde2ad1127ccebb5 | /character_model/simulation.py | 666792fdf45f48623c29cdc3b775ae55d32eaada | [] | no_license | tesseradecades/dnd_character_generator | 4f466adde88ca5d52d449cef41cc4226a8278328 | 9501e5e6e1370b513881e4bac3d3ab7e30f12d54 | refs/heads/main | 2023-05-31T09:49:13.716695 | 2021-06-06T01:09:58 | 2021-06-06T01:09:58 | 373,984,244 | 0 | 0 | null | 2021-06-06T01:09:58 | 2021-06-04T23:58:28 | Python | UTF-8 | Python | false | false | 1,459 | py | from random import getrandbits
from typing import List
from character_model.character import Character
from gene_model.chromosome import Chromosome, Individual
from gene_model.simulation import Simulation
class DndSimulation(Simulation):
def __init__(self, mutation_rate=0.5, population_size=4, starting_populatio... | [
"noreply@github.com"
] | noreply@github.com |
a4c0f7cac515fab2dde43dae019bf1f9f9359d98 | e000416c89725db514ed5c01d7b9ef8e37c5355f | /backend/wallet/migrations/0001_initial.py | 42f6e380119fb0d9602b441bb339d9aa4929f923 | [] | no_license | crowdbotics-apps/click-time-28533 | 376f4d34b10ca3050fde3f43df51233e5b612c2d | 89f4f7e05bf04623b2822899677b6c3606968151 | refs/heads/master | 2023-06-19T06:37:55.564153 | 2021-07-07T06:12:26 | 2021-07-07T06:12:26 | 383,692,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Generated by Django 2.2.20 on 2021-07-07 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cd7e960b609e7bd09f05f15573c42dcc430c91db | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /otp/speedchat/SCConstants.py | 2be1e5050c9f147748d69e0013a2c2d587f0b00e | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 59 | py | SCMenuFinalizePriority = 48
SCElementFinalizePriority = 47
| [
"jwcotejr@gmail.com"
] | jwcotejr@gmail.com |
df398393aea5d0bd7445abc5140d3c360b258e60 | 973713f993166b1d0c2063f6e84361f05803886d | /Day01-15/02_variableTest_3.py | 0a1660b15ed013535066fbed5471a61876d4a6c4 | [
"MIT"
] | permissive | MaoningGuan/Python-100-Days | 20ad669bcc0876b5adfbf2c09b4d25fd4691061a | d36e49d67a134278455438348efc41ffb28b778a | refs/heads/master | 2022-11-17T12:24:45.436100 | 2020-07-18T02:24:42 | 2020-07-18T02:24:42 | 275,157,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
使用input()函数获取键盘输入(字符串)
使用int()函数将输入的字符串转换成整数
使用print()函数输出带占位符的字符串
"""
a = int(input('a = '))
b = int(input('b = '))
print('%d + %d = %d' % (a, b, a + b)) # 加
print('%d - %d = %d' % (a, b, a - b)) # 减
print('%d * %d = %d' % (a, b, a * b)) # 乘
print('%d / %d = %f' % ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
72af1bda3289f0881af24ea6518357125307aacc | 61b6e904a9e3d0bdf9cab361a08bd028b4ab0c77 | /tutorials/slu/train_stack_propagation_slu.py | 67399d9cbfb4af1aa1bc19c642ee71a67ba29ef5 | [
"MIT"
] | permissive | bo-ke/cybo | 81c5e94ca7c6c78fa8342b35384d6e7cacc22140 | 612f30b0466b4ed6d04f5c2128b133367b55e576 | refs/heads/master | 2023-06-04T11:46:37.612829 | 2021-06-22T13:22:34 | 2021-06-22T13:22:34 | 321,707,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | # -*- coding: utf-8 -*-
'''
@author: kebo
@contact: kebo0912@outlook.com
@version: 1.0
@file: demo.py
@time: 2021/03/02 21:19:27
这一行开始写关于本文件的说明与解释
'''
import tensorflow as tf
from cybo.data.dataloader import Dataloader
from cybo.data.vocabulary import Vocabulary
from cybo.models.stack_propagation_slu import StackP... | [
"itachi971009@gmail.com"
] | itachi971009@gmail.com |
b1b89d27acde49ab2be9babcf4237350e3e3e901 | 9fcfc5d38cbc42436f643ba972b838bfa7a39ab1 | /FAHAD.PY | e9f383b930cb8a50e838752de607c46989d23086 | [] | no_license | sheikh123713/FAHADXHLA | a21464fefe174c72d0e86e167084bb49cbdb7959 | 788c4a3d4e03ff643067a0d8638a446b9d721abc | refs/heads/master | 2022-11-09T17:06:54.419099 | 2020-06-27T00:21:13 | 2020-06-27T00:21:13 | 275,270,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,290 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
fcbd61892093b56028d5617ccab23d3aca729c0a | ed12b604e0626c1393406d3495ef5bbaef136e8a | /Iniciante/Python/exercises from 1000 to 1099/exercise_1038.py | 8acf7316aa83808418ceec78f9e872c26c2019c0 | [] | no_license | NikolasMatias/urionlinejudge-exercises | 70200edfd2f9fc3889e024dface2579b7531ba65 | ca658ee8b2100e2b687c3a081555fa0770b86198 | refs/heads/main | 2023-09-01T20:33:53.150414 | 2023-08-21T07:07:32 | 2023-08-21T07:07:32 | 361,160,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Lanche:
def __init__(self, codigo, especificacao, preco):
self.codigo = codigo
self.especificacao = especificacao
self.preco = preco
def getCodigo(self):
return self.codigo
def totalPorQtde(self, qtde):
return self.preco*qtde
lanches = [
Lanche(1, 'Cachor... | [
"nikolas.matias500@gmail.com"
] | nikolas.matias500@gmail.com |
d82527097eb6be0cd16ee1cb897870311ae2ecc9 | 34706f974615d45ed74b9e5ea7b64bf30cdbb6b5 | /lib/data_util.py | 1310ad9172c24580098411b2fd67a40e786de168 | [] | no_license | Leechung/RNN-chinese-poetry-talkback-machine | 92237d9439522829d71c5eb83be2b77fdb4bf9f7 | e739483266f1a59b2cfb628c918c532d5ca596df | refs/heads/master | 2021-01-11T23:31:01.572608 | 2017-02-20T10:28:31 | 2017-02-20T10:28:31 | 78,592,541 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import config
from random import randint
from config import BUCKETS
'''
author: lee chung
description: this is a project for computer linguitics course.
i used cells from https://github.com/NickShahML/tensorflow_with_latest_papers, many thanks to those hardcore coders
'''
_PAD = "_PAD"
_GO = "_GO"
_EOS = ... | [
"tongleechung86@gmail.com"
] | tongleechung86@gmail.com |
2765443d9dab3cb470fb4a2a844eff84e6645762 | 3a51e7173c1b5a5088ac57f668ecb531e514e0fe | /m11_feature_importances5_diabets.py | e18b4753ce0bb3c9ed11c5bde334cc898d0c903c | [] | no_license | marattang/ml_basic | 83a167324317178701ae0ee0e2e2046293eafacc | e8e6b8c9ab7d866377eb01e50ac94ff5b1ea7a73 | refs/heads/main | 2023-07-05T03:30:24.663574 | 2021-08-22T07:06:58 | 2021-08-22T07:06:58 | 394,574,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # 피처 = 컬럼 = 열
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from sklearn.datasets import load_iris, load_boston, load_diabetes
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import n... | [
"tlawlfp0322@gmail.com"
] | tlawlfp0322@gmail.com |
38d6b581a50ccb565f5a070b44d17e86cecfea2e | 2366117992e8e58c400e539b8932a7aab11a1371 | /auth/views.py | 638cab47a4b004b7a0ea190d4b1d38d603fc6aff | [] | no_license | Sandeep-Das-og/LMS | 124138c4e7996ff753b34ce9b7b5be7aeca0050a | 939f9bd3ae43ef24f4f9b6705867e734b68bb96f | refs/heads/master | 2023-07-15T02:24:27.694491 | 2021-08-29T10:05:02 | 2021-08-29T10:05:02 | 397,580,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from django.contrib.auth.views import LoginView, LogoutView
from django.views.generic.base import View
from django.shortcuts import redirect, render
from auth import forms
from django.contrib.auth import login
class Login(LoginView):
template_name = 'auth/login.html'
class Logout(LogoutView):
pass
class Sig... | [
"das2106sandeep@gmail.com"
] | das2106sandeep@gmail.com |
c0d9a9c9c899c8c181a31cbf7c2581c7873d55c1 | 314d269dfb9ce64385527faa23b81244ee6a8d4a | /Testing/Demoapp/migrations/0018_movieimg.py | 34dab44342ac0156f9e897ddcd0504fa98285c8e | [] | no_license | tomahawk9628/Web_project | 811b2c8bf02f86e5c2308462d28275db72f72d62 | 699613d19561dab7837fc0d96f027ccb138bfc4f | refs/heads/main | 2023-04-18T05:28:11.291503 | 2021-04-29T09:30:31 | 2021-04-29T09:30:31 | 362,853,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Generated by Django 3.1.2 on 2020-11-02 17:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Demoapp', '0017_movie'),
]
operations = [
migrations.CreateModel(
name='MovieImg',
fields=[
('id', m... | [
"36316973+tomahawk9628@users.noreply.github.com"
] | 36316973+tomahawk9628@users.noreply.github.com |
5008ef68e146e2b1c04934fcf0a2e09ed44c04c9 | d4c0ffd2e597c33b29e0c070b10d2e3dd34ec7f8 | /simpleFirstApp/apiViews.py | a75857db29c60af1e6df2df5e8eed8f87445c294 | [] | no_license | WONGANM/simpleDjangoProject | 4d84f2df1ad20b6fa8422583bc0ce7b5a9018dba | 02bdd4f5954606645215ddd297a2df0aae93448b | refs/heads/master | 2023-05-24T21:15:32.642123 | 2021-04-05T13:14:36 | 2021-04-05T13:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from django.core import serializers
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from simpleFirstApp.models import Subjects, Students
@csrf_exempt
def getSubjects(request):
subject=Subjects.objects.filter(course_id=request.POST.get('course_id',''))
subject_obj=ser... | [
"supercoders.tech@gmail.com"
] | supercoders.tech@gmail.com |
964774c497ccdc6f209f0c90dd01515835d847ed | 5feca008033cd5deb6c882388f615f6193b9bf10 | /basics/class_example.py | e0b8d6dc8df4a608d47ebc09cee5a1477ee80ec0 | [] | no_license | LotusBro98/Lanat2019 | 604974f9afa8391cbd137a4f765dc071a41ebd3d | 6bf9437a47c13e061ce191411c994a6cb4de9a38 | refs/heads/master | 2020-06-23T02:30:16.471861 | 2019-07-29T20:57:24 | 2019-07-29T20:57:24 | 198,478,278 | 0 | 2 | null | 2019-07-27T15:49:51 | 2019-07-23T17:29:23 | Jupyter Notebook | UTF-8 | Python | false | false | 756 | py | class Human:
def __init__(self, name, surname, age):
self.name = name
self.surname = surname
self.age = age
def __str__(self):
return self.name + " " + self.surname + " (" + str(self.age) + ")"
def is_graduated(self):
return self.age >= 18
def grow_up(self):
... | [
"noreply@github.com"
] | noreply@github.com |
4ebc0fe364653bcef0ddfc6fb1701ec2680f4745 | f33c52fe05115fb31f80b4f4e4a3e06a20ae1b9d | /03_Button widget/main.py | ab5b67e6a449b4ce089d48474df231f3118dd15a | [] | no_license | shubham25kr07/Tkinter-Basically | ef27520140cffe06fca50e07ccddeae074fa412f | 69a87076b78bb17ac16c208029573b8a28694f92 | refs/heads/master | 2022-11-09T08:58:17.798050 | 2020-06-23T15:05:24 | 2020-06-23T15:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from tkinter import *
master = Tk()
def ok():
print("Button on click!")
f = Frame(master, width=20, height=25)
f.pack_propagate(0)
f.pack(padx=10,pady=5)
x = Button(f, text="ok", fg="white", bg="lightgreen", command=ok, state=DISABLED)
x.pack(fill=BOTH,expand=1)
master.mainloop() | [
"juliaodejesusmartins@gmail.com"
] | juliaodejesusmartins@gmail.com |
185272721fe366dc387ebf324cad6dcf29b245f2 | 00067ae175736cbe447189a3f74159ef41e9c679 | /src/nubip/migrations/0048_auto_20210120_1957.py | f4e99f5240553ed5c6b3463d4640df38c1b64e2b | [] | no_license | dmitruyk/crm_nubip_jurnal | 0a2f713fec32ea8022e28ae55c2f4dc1ef661fc8 | ae9eacef12fddf9cce48fa74b0f286ca1e10ed80 | refs/heads/master | 2023-08-07T13:01:03.180293 | 2021-09-21T21:39:54 | 2021-09-21T21:39:54 | 305,634,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | # Generated by Django 3.1.5 on 2021-01-20 19:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nubip', '0047_auto_20210117_2200'),
]
operations = [
migrations.AlterField(
model_name='academicgroup',
name='name',... | [
"dmitruy54865792"
] | dmitruy54865792 |
350f16fb7c61863a03cce34c59fb19fd7d332c07 | 2356beb3c448ae295fa3bf3c60e4abedde473f5a | /accounts/backup/views.py | 5f3cb1f1dedbd6f5b1487fbf9671c942b8954640 | [] | no_license | steven0seagal/PhD | 645edbe39183bd8865b42558c7e0c12f63f23aef | 6e24e6f46c261e9da083c39306017b5ff934e9fa | refs/heads/master | 2023-01-20T23:19:03.551075 | 2020-11-25T16:31:31 | 2020-11-25T16:31:31 | 310,092,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from neighborhood_analysis.models import NeighAnalyzDatabase
from alignments_tools.models import ColapserDatabase, StretcherDatabase
from hmmer_fixer.models import HmmerFixerDatabase
from ... | [
"djangoadmin@vultr.guest"
] | djangoadmin@vultr.guest |
ca7c676816df7c6bc5642fab94ccb3dd2df087aa | c217a0d5c074bd58e2048bc48ad53da58286d60c | /Management software-1/nameout.py | 43ae655396c0bc317d7a0167c3ba4b0363130265 | [
"MIT"
] | permissive | Afdrif-K/py | c0768547840d5bef5039ddd317471417c291b42e | f685370236f211b9c09b8593c823dfc9a43d42ce | refs/heads/master | 2020-04-18T01:49:07.631508 | 2019-06-14T03:33:14 | 2019-06-14T03:33:14 | 167,135,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | #encoding=utf-8
import xlrd
import pymysql
from xlutils.copy import copy
import os
def out():
conn=pymysql.connect(host='localhost',user='root',passwd='12345678',db='wk')
cursor=conn.cursor()
count = cursor.execute('select Studentname from eng;')
print('has %s record' % count )
#重置游标位置
... | [
"noreply@github.com"
] | noreply@github.com |
b49118760b76d3b6d16d1b8d4647f94411267478 | 7ee3dd01b27b2e40913d8af95ca324b6e0a1839b | /leetcode/array/removeElement.py | bb6d4bbc8605895bad047fdc54e0b883146bc56e | [] | no_license | rodrigo-r-martins/programming-problems | 5c026a5788c2b8e47cd2b4f6809d1194a9473d9e | 1a080d0059d33bf97ee90cdc3a0d367ac3211ad6 | refs/heads/master | 2023-02-28T01:18:56.238453 | 2021-02-11T01:20:00 | 2021-02-11T01:20:00 | 271,599,071 | 0 | 0 | null | 2021-01-24T22:17:03 | 2020-06-11T16:48:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,818 | py | """
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn't matter what you leave beyond the ... | [
"50893308+rmartins85@users.noreply.github.com"
] | 50893308+rmartins85@users.noreply.github.com |
ccc1485ff378cd8a01318c69439b9c274655ec55 | 1e150f6b708ff8e140801d9f42f3bf68573e8266 | /mywebsite/views.py | a5e62e809c0439614fbfba9db5f4ac9e96139327 | [] | no_license | sherlayualinda/mywebsite | 6c2a455bcc3532ef0b02b8e2c896f06552f9df02 | a7d9ffb66b4db5f4ca86e7b03c1cadbc72734531 | refs/heads/master | 2021-04-16T13:17:20.950100 | 2020-03-23T10:01:33 | 2020-03-23T10:01:33 | 249,358,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User,auth
from django.core.files.storage import FileSystemStorage
from django.contrib import messages
from data.forms ... | [
"syualinda@gmail.com"
] | syualinda@gmail.com |
5d9d12fe158aa1d46fd56059a5dd930cb2828ca2 | a7cf8fdf9618ac464c12f0af804de248579c34fd | /ex23.1.py | 4de9c8c5c0374c081fe938cd909f5c752ed4f4ca | [] | no_license | bradyborkowski/LPTHW | d4c62450f6481da1ed6c2e4b2ce675af705e8598 | aa3e5282c0a568447103c09e64dfcc310f6c11e5 | refs/heads/master | 2020-03-27T13:53:48.543475 | 2018-08-29T17:13:33 | 2018-08-29T17:13:33 | 146,633,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import sys
script, one, two, three = sys.argv
print(f"{one}, {two}, and {three}")
| [
"41759710+bradyborkowski@users.noreply.github.com"
] | 41759710+bradyborkowski@users.noreply.github.com |
2e14dd2b46c12ca4b93d9cf358ff4e12baf474d5 | 4c648201d5f87210d89a39a0c029f9ecae206781 | /app/module/functions.py | 59ffad2d5c38e4fac73a1f6084a735dffca27d80 | [] | no_license | samhvw8/python-fastapi-boilerplate | 2f36924ec0ce7a233fa3e37fd6683aa9f5b80432 | c9c9a2235a6fd9d1ef4af4365878fe7ce06a943c | refs/heads/master | 2021-02-15T13:35:11.840751 | 2020-03-04T13:15:09 | 2020-03-04T13:15:09 | 244,903,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from loguru import logger
from .model import ResultModel
class Functions:
def __init__(self):
pass
@logger.catch
def preprocess_bizlogic(self, queryStr: str) -> str:
# bizlogic for preprocess here
return queryStr.lower()
@logger.catch
def postprocess_bizlogic(self, respo... | [
"samhv.ict@gmail.com"
] | samhv.ict@gmail.com |
247883e246f87ab8ead43cd0dbb5cd36b565e83e | e4adf6d5161daf5403e3dff6070d786c2bb2fdc2 | /serverSide/migrations/0014_auto_20210328_2154.py | 2bb24a1079363141475d10a3ec2d71a0a03c3023 | [] | no_license | Kubvv/Mimuw_WWW | 3ff16cfdd4c60b2630e36f9442a4af1a49f3d783 | 182807d70e191afda0644dee91dec5536247b931 | refs/heads/main | 2023-05-19T14:29:32.662702 | 2021-06-10T20:55:51 | 2021-06-10T20:55:51 | 375,826,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.1.7 on 2021-03-28 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('serverSide', '0013_auto_20210328_2152'),
]
operations = [
migrations.AlterField(
model_name='filesection',
... | [
"noreply@github.com"
] | noreply@github.com |
e65f465ef6ae0973650e4711aa3f8175f6a0dde4 | 514624f859d435cbd40d21e10dddfb200c6f5f30 | /turbo_cloud/pipes/find_event.py | ada2b815ba73c551956fcc17ed42811abef45fe3 | [] | no_license | rtraas/turboCLOUD | fde038c23ef8bbedef83a22bccffb04e8cca7dcf | a63c53a08e20f64d8ab81ee94b67a2e62ba78f06 | refs/heads/master | 2023-06-01T22:37:54.185436 | 2021-06-16T22:41:58 | 2021-06-16T22:41:58 | 272,525,516 | 0 | 0 | null | 2020-08-09T16:55:42 | 2020-06-15T19:25:48 | HTML | UTF-8 | Python | false | false | 22,471 | py | #!/usr/bin/env python
"""
Part of the Breakthrough Listen software package turboSETI
Backend script to find drifting, narrowband events in a generalized cadence of
radio SETI observations (any number of ons, any number of offs, any pattern -
streamlined for alternating on-off sequences).
In this code, the following t... | [
"noreply@github.com"
] | noreply@github.com |
e629e09a5d66dd7ea91ae970e1e3681a49b0efd3 | 7fcfdd773ee43f8f7e18efc46cac4db1a45bc738 | /server.py | bf8701c768b482033c1b87dc4d08905cd6b8027c | [] | no_license | br1n/ninjagold | 64196a55f6be14a9dee7a7a656e265a3c4f87009 | bd13156370a547ef21d45924dc7847d196607161 | refs/heads/master | 2020-03-27T05:30:34.425393 | 2018-08-24T18:31:53 | 2018-08-24T18:31:53 | 146,026,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from flask import Flask, render_template, redirect, request, session
request
import random
app = Flask(__name__)
app.secret_key = 'henlobilo'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['POST'])
def process():
loc = request.form['location']
location_ma... | [
"frettbishel@gmail.com"
] | frettbishel@gmail.com |
985f9dfd45878d49f2e724d04ef753cd229efaca | 4b97fd778f3f1775eaa3ba5c42853b709f9031e9 | /src/rob1514/scripts/navigate_to_point.py | 63383e7038b67c578777c12c5c36b280933307d8 | [] | no_license | qingqingkzhou/autobot | 01ade8d02bf23a3066f1c2eed8bd61c20d9616a5 | 88277f658cb72899195d118da00a714bd088bd9e | refs/heads/master | 2022-04-19T20:30:32.715182 | 2020-04-14T03:27:45 | 2020-04-14T03:27:45 | 239,151,806 | 0 | 0 | null | 2020-04-13T03:22:36 | 2020-02-08T15:10:37 | Python | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
# TurtleBot must have minimal.launch & amcl_demo.launch
# running prior to starting this script
# For simulation: launch gazebo world & amcl_demo prior to run this script
import rospy
import json
from std_msgs.msg import String
from rob1514.srv import NavPoint
from move_base_msgs.msg import Move... | [
"qingqing.k.zhou@gmail.com"
] | qingqing.k.zhou@gmail.com |
2e41564f963a34098d5290f20737dfeb9a220688 | 987598b6c407f23d1626fb960c1c1fd06eddbcc1 | /simpleImagesAndIcons.py | 87e1e4a21366bc46d87d3f009188e8b5594d644e | [] | no_license | lilhamad/py-desktop | 86749ffbbe8d502593619eeec6ba2d2523769d1e | 383f6ac9cb8f397c6191df80a60d73d407022fa5 | refs/heads/master | 2021-01-01T17:53:00.176170 | 2017-07-24T11:45:45 | 2017-07-24T11:45:45 | 98,184,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from tkinter import *
from tkinter import messagebox
window = Tk()
photo = PhotoImage(file="ad.png", width=1000, height=500)
image = Label(window, image=photo)
image.pack()
def pressOne():
messagebox.showinfo("", "list.count(x) Return the number of times x appears in the list.list.sort(cmp=None, key=None, revers... | [
"lilhamad8@gmail.com"
] | lilhamad8@gmail.com |
98e071d695e583e7aa3eb14b22d820750d37afb9 | ae69715f440336711802c919166a18b806a56f7a | /parse-ground-truth-by-frame.py | 5a7f731b4c645bb0de248b6898f53ab0ac0d2dbd | [] | no_license | muddge/springboard_capstone | 87ac3f4929b236442d8f18e2cda8a064d59618b6 | 3faf995364d8e8fb72780ca8503722f6b22cde6a | refs/heads/main | 2023-02-09T07:11:07.000199 | 2020-12-22T00:29:13 | 2020-12-22T00:29:13 | 322,063,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import os,csv
import pandas as pd
load_path = '/Users/jason/Desktop/springboard/capstone-datasets/VIRAT/virat-annotations-v2/ground-truth-in-yolo-format'
save_path_root = '/Users/jason/Desktop/springboard/capstone-datasets/VIRAT/transfer-learning/data/ground-truth'
files = os.listdir(load_path)
for f in files:
... | [
"noreply@github.com"
] | noreply@github.com |
c486477f0f3ca9f5b5fbe9ddb63029459afe07c7 | bf9fdf83400a6d00187d59b8aa7b2a44953c5cc0 | /name_cleanup.py | 855d222f2326b4ffd8e29821975e652b52c0df09 | [] | no_license | eouai/swimming_app_dash | 72ae5cad9a423638c2e14f943919cd8c9ec284a2 | ab9e0a803845b546da9c0dab22dd15f467198c75 | refs/heads/master | 2020-03-09T20:43:08.525702 | 2019-06-18T20:55:08 | 2019-06-18T20:55:08 | 128,991,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,892 | py | import pandas as pd
# import numpy as np
# from datetime import datetime
dtypes = {'Unnamed: 0': 'int', '100 Split': 'str', '150 Split': 'str', '200 Split': 'str',
'250 Split': 'str', '300 Split': 'str', '350 Split': 'str', '400 Split': 'str',
'450 Split': 'str', '50 Split': 'str', '500 Split': 's... | [
"burtgwilliam@byu.net"
] | burtgwilliam@byu.net |
1881278971cb81899913d230dcf869725398ad0e | 5924e50190c2c914a2bba463272f699cd2ec8686 | /recipes/crashpad/all/test_package/conanfile.py | e0b20d0f49610b3e09fbdd2cff81531bad900ae5 | [
"MIT"
] | permissive | robert-shade/conan-center-index | db980b0a7aee3bab6960daec3e9e368c14f349ce | 9583988d1522777900b2b810da116ecddb2407e5 | refs/heads/master | 2021-06-21T19:20:31.647828 | 2021-06-01T14:31:32 | 2021-06-01T14:31:32 | 221,762,700 | 0 | 0 | MIT | 2019-11-14T18:33:41 | 2019-11-14T18:33:40 | null | UTF-8 | Python | false | false | 1,108 | py | from conans import ConanFile, CMake, tools
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_build... | [
"noreply@github.com"
] | noreply@github.com |
1ebb7382e258c4abf52348f5f8cdcbf3ae69437d | 1500fe9ea062152becc85a01577cced0465cde52 | /landacademy/urls.py | d6983faca141d85dce6130a0e3056d9ab11c126d | [] | no_license | Xednom/gpg-ams | afe4da92384f2de1b7b69ce28e13becb103009b3 | 7c87ab639b140873dfc90ac43c7aec349aec6436 | refs/heads/master | 2022-11-06T15:22:34.761321 | 2021-05-11T03:48:08 | 2021-05-11T03:48:08 | 239,904,632 | 0 | 1 | null | 2022-11-03T02:21:18 | 2020-02-12T01:50:16 | JavaScript | UTF-8 | Python | false | false | 465 | py | from django.urls import path
from . import views
app_name="landacademy"
urlpatterns = [
path('add-land-academy-inventory', views.AddLandAcademyView.as_view(), name="add_landacademy"),
path('view-land-academy-inventory', views.LandAcademyView.as_view(), name="view_landacademy"),
path('view-o2o-smart-pricin... | [
"monde.lacanlalay@gmail.com"
] | monde.lacanlalay@gmail.com |
51eaa2b68c4692d29a87735ad13e73c72f14a1f9 | 3f566aff07d248d20a7be95849041ecd221d52ca | /ShangAn/LongestSubstringwithAtMostKDistinct Characters.py | 17d7d6d26401e3cc3867b951ab60473a35e1c8cc | [] | no_license | s87217647/PyCharm_Projects | 44f800f8434f250c2d3b324fcf8eb85759bf3b1a | a5f5a9b529c6f971b71caf58f0baf3f09ac3ea69 | refs/heads/master | 2023-07-16T14:32:04.143458 | 2021-08-26T05:58:06 | 2021-08-26T05:58:06 | 393,215,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from typing import Set
class LongestSubstringwithAtMostKDistinctCharacters:
# clarify: sorted? What if no ans
def lengthOfLongestSubstringKDistinct(self, s: str) -> int:
ans = 0
# how do I know if it's distinct or not?
# set? dict?
# lemme try using set aye?
left = righ... | [
"none@gmail.com"
] | none@gmail.com |
76932cd1b6b43895415a527d17b4c0e8cb38af66 | 832852c679816673f708860929a36a20ca8d3e32 | /Configurations/ssww/wz_2016/aliases.py | a756db225a536ee8ec45575ec6dd07cef7eb15b0 | [] | no_license | UniMiBAnalyses/PlotsConfigurations | c4ec7376e2757b838930dfb2615e1dc99a64e542 | 578fe518cfc608169d3418bcb63a8342d3a24390 | refs/heads/master | 2023-08-31T17:57:45.396325 | 2022-09-01T10:13:14 | 2022-09-01T10:13:14 | 172,092,793 | 0 | 13 | null | 2023-04-27T10:26:52 | 2019-02-22T15:52:44 | Python | UTF-8 | Python | false | false | 12,366 | py | import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # Full2017
configurations = os.path.dirname(configurations) # ggH
configurations = os.path.dirname(configurations) # Configurations
#aliases = {}
bAlgo = 'DeepB'
bWP =... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
1fe034fc8c1f9dced00f457ca3565a12163aadba | 55151f8975072beabbb5bab83e5beaa61f56238f | /HW 7 Miller Rabin.py | 31a5ed599067f84501d55e0bc3478e8b3af52690 | [] | no_license | WuTang94/Cryptography-programs | e8b5d9037864c26040edcec4093fd50eb637e612 | 54c07890bb3c3e6f7e559e26381af3e68d650408 | refs/heads/master | 2021-04-30T13:25:01.850234 | 2018-03-28T16:36:34 | 2018-03-28T16:36:34 | 121,294,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 18 09:36:05 2017
@author: Justin Tang unless otherwise stated;
methods that I borrowed online and modified are denoted
"""
import random
#import math
"""
I borrowed this method of Miller Rabin from a website, but I replaced the pow()
function with the Square and Multiply... | [
"jzt5@case.edu"
] | jzt5@case.edu |
2756fcc1318ee3b25519b98466838cb1c7a3c76d | 8ef13554e75823423e6592fa15423ac0f4f6ed7b | /VideoResNetCycleGan/ImagetoVideo2.py | 1fd4158ab1ce50c3ff9d9742c71b786eecc4d6da | [] | no_license | Sevak987/ResNetCycleGan | 7a66bcf2b32afddec0094bfac02c01f980c76922 | 618eb40c04ff732d5205250843273499f12e0adf | refs/heads/main | 2023-03-26T01:38:47.381079 | 2021-03-21T16:43:34 | 2021-03-21T16:43:34 | 346,688,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | from tensorflow.keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
import os
import numpy as np
import cv2
from numpy import expand_dims
import tensorflow as tf
from matplotlib import pyplot
import natsort
pathout='videoAtoB(part2).avi'
fps=25
folderEvros="/data2/kazarian/Pycharm... | [
"noreply@github.com"
] | noreply@github.com |
0cc430d7621bfaae1f6b6a655566642dd758c4bf | 1333a965058e926649652ea55154bd73b6f05edd | /4_advanced/modules/userinput.py | bf7135098c2c79a045d6ce0bbf207f42b97ecacc | [
"MIT"
] | permissive | grecoe/teals | 42ebf114388b9f3f1580a41d5d03da39eb083082 | ea00bab4e90d3f71e3ec2d202ce596abcf006f37 | refs/heads/main | 2021-06-21T20:12:03.108427 | 2021-05-10T19:34:40 | 2021-05-10T19:34:40 | 223,172,099 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | '''
This file allows you to hide all of the implementation details of asking
a user for input for your program. It will verify that the correct data is
returned.
Externally, we want to expose the getUserInput().
'''
'''
__parseInt
Parameters
userInput : Input string from user
... | [
"grecoe@microsoft.com"
] | grecoe@microsoft.com |
d00082b9d952290823f31d6614763614c28c25d5 | 1c1961f8ed56c6852fd2a43a5c47283eb930767c | /Python/RanjanPaudel/task1/store_result.py | 55ec2305ec033417dea7c74084cb465bd897bbeb | [] | no_license | leapfrogtechnology/lf-training | 4a2c22d06519c4b49638e5f7519268c9e8f2347a | 6d18c6d152a1dddfa6e5711c91321a4d7a745517 | refs/heads/master | 2023-01-28T16:00:52.805472 | 2020-09-14T11:40:02 | 2020-09-14T11:40:02 | 283,126,079 | 1 | 15 | null | 2020-11-30T07:55:02 | 2020-07-28T06:48:44 | Python | UTF-8 | Python | false | false | 3,554 | py | #!/usr/bin/env python
import csv
import argparse
import datetime
import pathlib
from text_constants import (
STORE_RESULT_USAGE_EXAMPLE,
STORE_RESULT_NAME_HELP,
STORE_RESULT_DOB_HELP,
STORE_RESULT_SUBJECT_HELP,
STORE_RESULT_TOTAL_HELP,
STORE_RESULT_SCORE_HELP,
STORE_RESULT_STORE_HELP... | [
"paudeljimrranjan@gmail.com"
] | paudeljimrranjan@gmail.com |
27104a744c874c71d5916e37b398277acf2b845a | 0c427b2b8b7960bf3c1e727984532c6731328066 | /APP/forms.py | 1e073b90096a2c7b3a8ab029ca583f02c05bf928 | [] | no_license | Master-cai/flask_library | c7c3910c6f989b7f0f90a3b32eb53d421b7f431d | ebc86cbfbac67b199d06a3ec1e789b0d3fec1488 | refs/heads/master | 2020-11-24T03:34:42.063453 | 2019-12-20T09:30:01 | 2019-12-20T09:30:01 | 227,948,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, TextAreaField, ValidationError, HiddenField, \
BooleanField, PasswordField, IntegerField, DateTimeField, DateField
from wtforms.validators import DataRequired, Email, Length, Optional, URL, EqualTo
class LoginForm(FlaskForm... | [
"719591339@qq.com"
] | 719591339@qq.com |
ed02706c8203b78c812b8159c71208e1e7196960 | 597b888dca4e9add7acdf449f8c3d8d716826ff2 | /gui/demos/listbox.py | 105c3d631bc9eb579543eeadf5002fcfc4aee71b | [
"MIT"
] | permissive | alsor62/micropython-micro-gui | a7cad669d69358599feb84011c23ac5d767adfda | 5c7d6c96b30e4936a2a4315b09e98a730f14c6db | refs/heads/main | 2023-09-04T09:54:10.946964 | 2021-11-09T11:46:59 | 2021-11-09T11:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # listbox.py micro-gui demo of Listbox class
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# hardware_setup must be imported before other modules because of RAM use.
from hardware_setup import ssd # Create a display instance
from gui.core.ugui import Screen
from gui.core.write... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
b22c006c066846d679904ece442ff35ffce2ff2c | 0e114f7df2b112511785e21626bb6bdb220b5a6c | /ModelImporter/readers.py | 53245dcc930049f51e32b8c1183b280b6d1439f3 | [] | no_license | monkeyman192/NMSDK | 020c580bc7b0517bdef5b28d167924fde51dfa7f | c94bb9071e576fd16650f0b26fc5d681181976af | refs/heads/master | 2023-08-09T09:08:40.453170 | 2023-07-26T23:28:53 | 2023-07-26T23:28:53 | 73,231,820 | 25 | 6 | null | 2023-07-26T23:10:29 | 2016-11-08T22:13:48 | Python | UTF-8 | Python | false | false | 12,902 | py | from collections import namedtuple
import struct
from typing import Tuple
# TODO: move to the serialization folder?
from ..serialization.utils import (read_list_header, read_string, # noqa pylint: disable=relative-beyond-top-level
bytes_to_quat, read_bool)
from ..serialization.list_... | [
"monkey_man_192@yahoo.com.au"
] | monkey_man_192@yahoo.com.au |
e70e2960eedcee45fd5d6d45ebeed1eb919df85b | b6a98492c2e18c58cf70f0e4e308cf2efe6f505b | /Atividades/Lista1/Jokenpo.py | 52f058edec0616398ac37357087b8708ab8cba33 | [] | no_license | jrcamelo/IF968-Projetos-e-Listas | 4ee4141964534f611308f3522fa042268bb55d74 | 08e419acbbe7ada05323c643dad63cd50ae6de89 | refs/heads/master | 2021-06-24T20:00:42.477808 | 2020-10-28T05:12:13 | 2020-10-28T05:12:13 | 139,345,905 | 0 | 1 | null | 2020-10-28T05:12:14 | 2018-07-01T16:51:17 | Python | UTF-8 | Python | false | false | 1,179 | py | #João Rafael
print("Bem-vindo ao Jokenpo, Jogador 1!\n")
print("Digite 'pedra', 'papel' ou 'tesoura' para continuar\n\n")
while(True):
jogador1 = (input("\nSua jogada: ").lower())
if(jogador1 == "pedra" or jogador1 == "papel" or jogador1 == "tesoura"):
break
print("\n" * 100)
#---------------------... | [
"jrsc2@cin.ufpe.br"
] | jrsc2@cin.ufpe.br |
5c87b7f53356a3353ddc962324f0e7a6c497e0c9 | d1025cd05371af3cd659ebce1e3b7be4a718f574 | /easy/5-2.py | f489f8b8e6c068fdb4c8c65d0570c2a422f6bdcd | [] | no_license | Enhydra-xun/Book-problems | ea5a3e44e918e94f37aa97f842437ac7853bab19 | 04bb64075e2299f2d0e826687797297683a087ce | refs/heads/master | 2021-01-23T00:15:46.355647 | 2017-07-12T11:03:55 | 2017-07-12T11:03:55 | 85,711,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/5-2
print 'input two num'
def foo1():
a= int(raw_input())
b= int(raw_input())
print a*b
def foo2(a,b):
print a*b
def foo3():
a= input()
b= input()
return a*b
if __name__== '__main__':
print 'executing foo1:'
foo1()
print 'executing foo2:'
foo2(2,3)
print 'executing foo3:'
return_value = foo3()
pri... | [
"1092821680@qq.com"
] | 1092821680@qq.com |
1fed10ee22a8b3c9d54a1490df94abef0441b3e5 | 3cf7bab6574f0c85ed2c437f3f146d40fdc646aa | /examples/test.py | 91be43f5b786d04225b56a0dce4568d02711ecd6 | [] | no_license | Zumbalamambo/visiontransformers | 99db90a1ada08793e75d7c759b5687b842511609 | 6a9597f9b2fec860a575485f5d1c66be8c1353ba | refs/heads/master | 2023-05-26T05:12:39.662537 | 2021-06-08T07:47:12 | 2021-06-08T07:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py |
import torch
from visiontransformers.formers.vit import ViT_b16
def test():
model = ViT_b16(
image_size=512,
num_classes=10)
print(model)
a = torch.randn([1, 3, 512, 512])
o = model(a)
print(o.shape)
if __name__ == '__main__':
test()
| [
"fagangjin@autox.ai"
] | fagangjin@autox.ai |
00a7d4bb8e564e8e4d36756ce801d18ce4fdfecc | b87389aa0d6595c8b649ac899e8ade4226309739 | /manage.py | f53d707f83062edaaf89cd56b7fde370fb63af16 | [] | no_license | bussiere/ImageIp | be3797d2fdd57b78d35de2111eb67b269f7df104 | bc3e7b3d4edabde5353f9fadfc46253b7407ba5a | refs/heads/master | 2020-12-24T15:23:03.255370 | 2013-08-23T10:52:46 | 2013-08-23T10:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "imageip.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"bussiere@gmail.com"
] | bussiere@gmail.com |
e6ed56fd3df5070e61ae811df3ed3d5638f8db41 | e1312afff90dbe1cdcd500541e29097da19fee97 | /inference/infer_with_pb_1capture.py | 83e9ad60c4b8ca47ef4676152e1dd42c7059bd70 | [] | no_license | andreiqv/github_detector_scale | af6115caff6ca6c73c934dc1fa6673ccd69b71fa | 329d32a4d26b2bfb2f902f876bb9b8eb35bd9e2a | refs/heads/master | 2020-04-08T12:30:36.966069 | 2019-01-30T22:21:34 | 2019-01-30T22:21:34 | 159,350,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Using TF for inference, and TensorRT for compress a graph.
import sys
import os
import argparse
import tensorflow as tf
import numpy as np
from tensorflow.python.platform import gfile
from PIL import Image
import timer
from time import sleep
import io
from picamera imp... | [
"phxv@mail.ru"
] | phxv@mail.ru |
dc93b89f7e841b512d47ecff109941a4fd9c59cb | a7a13ca32072bb27ce2dceb87c414767b3751ec5 | /src/gthnk/__init__.py | f8ee1ab5a2ed24607ff10461411e9f764b139904 | [] | no_license | SocioProphet/gthnk | 36e50338d5f3df19f84620ff9a337f3cf8e9e362 | fc3d21090c2de10cfd74650436536999e5c65d7c | refs/heads/master | 2022-12-13T18:55:00.610073 | 2020-09-14T14:50:21 | 2020-09-14T14:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
db = SQLAlchemy()
login_manager = LoginManager()
bcrypt = Bcrypt()
| [
"ian@iandennismiller.com"
] | ian@iandennismiller.com |
469d0d303137c4f92fbe51ff68b5e211f5f358dd | 782e480a0f07ec1dcf4b6649179cf8a5700fc254 | /docs/conf.py | f6a4ac3c9ce7a24bf03cab5e9a6ccb3d6716800c | [
"MIT"
] | permissive | janash/quantumMLdev | a480d580d7d7fb63de7dd75b10ceda7958b0ba46 | 0e5faee372ce7de695e8821398a97a3bfcfbf9e0 | refs/heads/main | 2023-03-26T10:06:48.048390 | 2021-02-12T20:27:35 | 2021-02-12T20:27:35 | 339,519,279 | 0 | 0 | MIT | 2021-02-16T20:15:27 | 2021-02-16T20:15:26 | null | UTF-8 | Python | false | false | 5,278 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"jasongibson@ufl.edu"
] | jasongibson@ufl.edu |
6814731a27a9e839f6a1c80a0ff63258fb7972dc | 102ac858b3f4a451b85876bb8e32f78719fb7c2a | /Tareas/T3/codificacion.py | 91cc12391a3db5f710b3632f8a05e582a820e45b | [] | no_license | IIC2233/syllabus-2021-1 | 5a144beda185414115ef5280470e095e1502d55c | 49f1b87a3cd41115f916127192f796a7b50b0818 | refs/heads/main | 2023-06-16T03:49:43.277561 | 2021-07-20T00:11:37 | 2021-07-20T00:12:20 | 347,768,721 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | """
Modulo para funciones de codificacion y decodificacion para envio de mensajes.
Recuerda, no debes modificar los argumentos que recibe cada funcion,
y debes entregar exactamente lo que esta pide en el enunciado.
"""
# Codificar un mensaje a un bytearray segun el protocolo especificado.
def codificar_mensaje(mensaj... | [
"faibarra1@uc.cl"
] | faibarra1@uc.cl |
232479298bbe4ef09814cca689632ce9f4d22613 | b04197cb45a9cdaef06ac260e0493e94a07e99b6 | /PyBank/main.py | 1e883c89d50821dcf41078b41e8c18029c3bb7bf | [] | no_license | EricMadigan44/python-challenge | 89ade3a306f183d1494c9aacc836156aab98d186 | e8e21a964f66d103be30c09ec686b5dbc2d468eb | refs/heads/master | 2021-04-26T23:28:17.463083 | 2018-03-11T23:07:32 | 2018-03-11T23:07:32 | 124,000,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | import csv
import os
#Eric Madigan = PyBank for Python-Challenge
# Here we are creating our file path and saving it as a file
file = os.path.join('budget_data2.csv')
# Creating empty list for our data in the columns
months = []
revenue = []
#Read csv with csv.reader and parse csv into lines
with open(... | [
"noreply@github.com"
] | noreply@github.com |
6316921d5a730a75520c488a376f5c7511ae0bb4 | c25739d4a3b04589f4439a98be88d0bf15370ac6 | /fooddelivery/dto/CustomersDto.py | e1a560f65cc1c8f4990f5af18cbbf977dff076f8 | [] | no_license | Gbemileke123/MyFoodapp | 7dd4511d6fabbdae998b510b9433287fc258bdbf | bc34b3ce7829fd78d3554c7f0622468254908ae8 | refs/heads/master | 2023-06-08T11:10:03.896194 | 2021-06-20T16:41:40 | 2021-06-20T16:41:40 | 300,335,142 | 0 | 0 | null | 2021-06-20T16:41:40 | 2020-10-01T15:50:01 | CSS | UTF-8 | Python | false | false | 573 | py | class CreateCustomersDto:
username: str
user_first_name: str
user_last_name: str
password: str
email: str
address: str
contact: str
class EditCustomersDto:
id: int
user_first_name: str
user_last_name: str
email: str
address: str
contact: str
class ListCustomersDto... | [
"sodiyaleke18@gmail.com"
] | sodiyaleke18@gmail.com |
2b173c9d14198de5e4a1e14858a00ff2a9eadc15 | 83098ec0320c49c649c8b0b781fa2037f0cba7e1 | /data_structure/stack_infix_to_postfix.py | f0dbfcc7dad483885af5dc9ce817075208445ac2 | [] | no_license | lelong03/python_algorithm | 15214f980154565af4b4a2c2bd8f0015524d0a3c | a5fe28cfeff1d07becf2bbf95b9b7f39a0e47131 | refs/heads/master | 2021-07-07T17:04:22.090856 | 2020-07-11T06:28:08 | 2020-07-11T06:28:08 | 133,847,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from stack import Stack
def infixToPostfix(infixexpr):
prec = {}
prec["*"] = 3
prec["/"] = 3
prec["+"] = 2
prec["-"] = 2
prec["("] = 1
opStack = Stack()
postfixList = []
tokenList = infixexpr.split()
for token in tokenList:
if token in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or t... | [
"lelong03@gmail.com"
] | lelong03@gmail.com |
5ad1c174ef11481211eccd3c9a071aaebf6e217e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1268.py | 9e45fefd2245fc74e784ff57dba4a16de3dd55a5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | def read_case(line):
return int(line)
def read_input(path):
f = open(path, 'r')
g = open(path + '_res.txt', 'w')
T = int(f.readline())
for i in xrange(T):
line = f.readline()
g.write('Case #%d: ' % (i+1))
n = read_case(line)
g.write(str(solve(n)))
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ea9cb6af6472d76c58d80685599298f8e4a6f15e | 439cda44ba6d5d8061a134875736a9efcd4bf22c | /trakt_tools/tasks/profile/backup/create/handlers/playback.py | 746491bfc433fc6a3dc4ee210ef1164e29330dbc | [] | no_license | fuzeman/trakt-tools | 28a0fcb2c2efe88371bba1892777be75236fdc5c | 8bdcb117b6092733cc50f87d4f943fc23340da90 | refs/heads/master | 2023-01-07T06:16:46.716517 | 2022-12-27T22:57:03 | 2022-12-27T22:57:03 | 68,256,616 | 31 | 4 | null | 2022-12-27T22:41:57 | 2016-09-15T01:11:54 | Python | UTF-8 | Python | false | false | 801 | py | from __future__ import print_function
import logging
log = logging.getLogger(__name__)
class PlaybackHandler(object):
def run(self, backup, profile):
print('Playback Progress')
# Request ratings
response = profile.get('/sync/playback')
if response.status_code != 200:
... | [
"me@dgardiner.net"
] | me@dgardiner.net |
36c50d4a8abe022531909cdf4af974d7dd4cc0da | 1131139c9d5ca7220cd4e37de8dad0740f269fd0 | /node_modules/fsevents/build/config.gypi | 64039196469aa0a04697905d1ac9947279b9b481 | [
"MIT"
] | permissive | Analova/Packman | 52b5f3bc31bca0bb1a806a44d1f89aa97922a92c | e862bda34aca1353af38566c86b22c29786c8a96 | refs/heads/main | 2023-01-05T14:55:23.751017 | 2020-10-30T05:56:54 | 2020-10-30T05:56:54 | 305,265,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | 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",
"debug_ngh... | [
"ani.nik19@gmail.com"
] | ani.nik19@gmail.com |
ed1a68bd23e55267272ccb15c26fdaf535f0fab6 | a880374275045f9363e6bba69b125e83f8625f3c | /package/loggingwindow.py | 36f11d3cf522a032d2e7c141ab90a1ba11e379c1 | [] | no_license | hoefler02/itc-qemu-gui | 1eb0299c5d00bf6dba6c22f3167d12fd6e769779 | 64811f7db0b07ca4e09ec3b4c2a0708c48248231 | refs/heads/master | 2022-11-24T09:28:17.085068 | 2020-07-08T19:51:55 | 2020-07-08T19:51:55 | 265,439,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | from PySide2.QtWidgets import QWidget, QLabel, QShortcut, QRadioButton, QVBoxLayout, QMainWindow, QHBoxLayout, QAction, QFileDialog, QScrollArea
from PySide2.QtGui import QFont, QKeySequence
from PySide2.QtCore import Qt, QTimer
import os, re
class LoggingWindow(QMainWindow):
def __init__(self, qmp):
... | [
"hoefler2002@gmail.com"
] | hoefler2002@gmail.com |
9e7d53d434689b421ffa72dca3bee89e65b90818 | 0a981e8af000e199097ccc5ddcd7bb1c689f2d94 | /24_MapFilterandReduceFunctions/24_example4.py | 58d0f9166f363f224592219eeed37737afdf4906 | [] | no_license | lightrao/SocraticaPython | 66c90d2059ccad0ec43c2b26cfc5e7579ca36f35 | 6d9b653e274aa8e805ae4abc6c479269370a9f3b | refs/heads/master | 2020-08-06T13:33:55.930884 | 2019-10-27T09:26:57 | 2019-10-27T09:26:57 | 212,993,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # Remove missing data
countries = ["", "Argentian", "", "Brazil", "Chile", "", "Colombia", "", "Ecuador", "", "", "Venezuela"]
rm = list(filter(None,countries))
print(rm) | [
"lightrao@hotmail.com"
] | lightrao@hotmail.com |
de0053232ef4997db3778f395cf264635d939382 | 15f6e61d9ee8542d9feda70c3cf17d8c5028ef44 | /interfacetracer.py | 8482bb30b3c3b81ad41a92a94dba34a794954561 | [] | no_license | pniewiadowski/learing_python | e6446783dbef6105d026b94ec4b1ac8ce5c46ae9 | ef12d299da40ec99b1d4550e1e2c2264c6c4dea5 | refs/heads/master | 2020-06-18T15:19:01.172124 | 2018-02-21T20:24:35 | 2018-02-21T20:24:35 | 94,167,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | def Tracer(aClass):
class Wrapper:
def __init__(self, *args, **kwargs):
self.fetches = 0
self.wrapped = aClass(*args, **kwargs)
def __getattr__(self, item):
print('Trace: ' + item)
self.fetches += 1
return getattr(self.wrapped, item)
... | [
"niewiadowski@gmail.com"
] | niewiadowski@gmail.com |
988af6eea7b269f2741dbeb99676deef6e6735b1 | 2e6e82c292b59d7d325d63a41b94622d5c3f055e | /Level1rev03/online_align.py | 161708cb146144a166de812717a7431b1c3c37c3 | [] | no_license | henls/Level1 | 2f0f5a71c1e6b329bec9033a02dd751e90ba93bb | 470386859ba4a2dfe10bb20cce99f769068f30ff | refs/heads/master | 2022-09-25T17:02:47.283519 | 2020-06-07T07:27:56 | 2020-06-07T07:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,754 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 11:26:23 2020
rev01
@author: wangxinhua
2020/1/9 data cache in GPU in one circle
"""
import numpy as np
from astropy.io import fits
import scipy.fftpack as fft
import cupy as cp
from xyy_lib import xyy_lib as xyy
import os
from skimage import ... | [
"879951213@qq.com"
] | 879951213@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.