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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7eb9891d94332915a61055017b11d4b686f01514 | 9a0a49b2e3f37f0b1a940085fdb08a5b19e680ab | /app/models/user.py | 84faf52f2b4459867b73ba844ed6ad4aea131c15 | [] | no_license | FVATE/FVATE-web | 8d4e3cefa33575be409e48da10dc8b71967912f1 | fb3d781e3bdbf87530c1839e854125e753cc45d5 | refs/heads/develop | 2023-07-19T23:57:46.455167 | 2019-11-03T14:18:57 | 2019-11-03T14:18:57 | 47,968,752 | 0 | 0 | null | 2022-03-26T01:14:25 | 2015-12-14T10:45:02 | JavaScript | UTF-8 | Python | false | false | 812 | py | """
app.models.user
~~~~~~~~~~~~~~~
:copyright: (c) 2016 by gregorynicholas.
"""
from __future__ import unicode_literals
from app.models import db
__all__ = ['User']
class User(db.Document):
"""
User model.
"""
key = db.StringField()
active = db.BooleanField(default=True)
roles = db.ListField(db... | [
"nicholas.g.gregory@gmail.com"
] | nicholas.g.gregory@gmail.com |
e56792cbb398fa012c64d2825824f02755479a8c | dfe134b793e8a3503273b9a07318ec6ce92d7972 | /app/api/api_v1/api.py | 57beba35253a87dbd1bfdb266897629a60f33962 | [] | no_license | QuocDung0209/marketing-online-python-backend | a6fa9fea43c22dfa0b85d8b5a290f9581a9b2fd9 | 8297f9700be65ec61d47a58d7be573d99cb17018 | refs/heads/master | 2023-05-15T01:53:38.774801 | 2021-05-31T11:40:44 | 2021-05-31T11:40:44 | 372,190,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from fastapi import APIRouter
from .auth.endpoints import router as auth
api_router = APIRouter()
api_router.include_router(auth, prefix="/auth", tags=["auth"])
| [
"kenjisunnycloudy@gmail.com"
] | kenjisunnycloudy@gmail.com |
779e7b1fc2bfe837f10a8070b3600f71ae8cdf3a | ece7ba486d29d4bc3e87c2046db2c31140e2d86a | /suitcase/mongo_normalized/tests/tests.py | 75f4046965a77899a78b88195844aeadf0dfc188 | [] | no_license | ke-zhang-rd/suitcase-mongo | 31b97bb13b9e6089248f888a6c33824b835de141 | c938bae589ab2fba301814c846c5d5339eb90fb8 | refs/heads/master | 2020-05-31T10:29:15.458932 | 2019-10-18T17:33:03 | 2019-10-18T17:33:03 | 190,241,607 | 0 | 0 | null | 2019-06-04T16:38:12 | 2019-06-04T16:38:11 | null | UTF-8 | Python | false | false | 451 | py | # Tests should generate (and then clean up) any files they need for testing. No
# binary files should be included in the repository.
from suitcase.mongo_normalized import Serializer
def test_export(db_factory, example_data):
documents = example_data()
metadatastore_db = db_factory()
asset_registry_db = ... | [
"dallan@bnl.gov"
] | dallan@bnl.gov |
c8e26e30e21138ec04c30db6579b6bd98a620898 | 55de20ff6a7b3e07cffae42d2d9b24178f65daf3 | /dockerhub_show_tags.py | 8c0568a7f12d0b05a91faf4c381b10a296ff8bb3 | [] | no_license | srjayep/pytools | 35f803f1adcc1e93f489475ee12c72ec10161649 | c96b752c7d8679e7dde1657914fa56bd9b4f2cfd | refs/heads/master | 2020-05-29T08:51:34.003012 | 2016-10-05T15:09:05 | 2016-10-05T15:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,117 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2016-05-10 11:26:49 +0100 (Tue, 10 May 2016)
#
# https://github.com/harisekhon/pytools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optionally s... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
3e4c700160e79c2275b1ee502223708bd8fcd9af | bdc0afc39a7ae530bc66f2d907aaa9d0624cf892 | /tester3.py | 5ec4855b3dac70b54ba58ba2b44f5055e77d23ad | [] | no_license | SaifJamal/Test | fc1297c6e5cdbe0d8959916a45f8332621a94fd9 | f602da5223c0cf07eb5bd319f373d297d7d0f1c2 | refs/heads/master | 2021-09-06T15:22:58.383111 | 2018-02-08T01:34:29 | 2018-02-08T01:34:29 | 120,032,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | # This is the meaning of life
print('Meaning of life!!!')
| [
"saifj@name134p08.engin.umich.edu"
] | saifj@name134p08.engin.umich.edu |
bf0b68b1a9dcd5ee671f47a1a2abb6d4f54d7744 | d02b5fa06d6c37a977599019fb58b5d62760a6fa | /models/ctpn_tf.py | 223f409ba7b1157fb32ebdc423c3392a0ff50041 | [] | no_license | xinsuinizhuan/paddle.ctpn | ba4d45318ab1271e88316e251ee85b43ef0fbbf6 | 7bef0a8e4855cc88d0e56a4337a0eee9679ed3ff | refs/heads/main | 2023-07-05T22:13:27.970056 | 2021-08-16T12:11:34 | 2021-08-16T12:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | import paddle
import paddle.nn as nn
from models.vgg import vgg16
from models.vggmy import vgg16_bn
import paddle.nn.functional as F
class BasicConv(nn.Layer):
def __init__(self,
in_planes,
out_planes,
kernel_size,
stride=1,
paddi... | [
"15671628547@163.COM"
] | 15671628547@163.COM |
ba6464a34af3507fb206e03804836f85e2f1cec5 | 505275cedcbaf8e7a044979c1ba3da02a5428533 | /트리순회.py | ceebf764f8168118e28cd3c0c49449a415ddcac4 | [] | no_license | firstep710/baekjoon | a42c95c27e775a205bde4b8d0ba84b430ac87f03 | b7384f941efe80ac8e101164d6f31d538d6de54d | refs/heads/main | 2023-06-05T17:57:46.517304 | 2021-06-21T14:41:30 | 2021-06-21T14:41:30 | 370,252,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | def preorder(root):
if root != ".":
print(root,end='')
preorder(tree[root][0])
preorder(tree[root][1])
def inorder(root):
if root != ".":
inorder(tree[root][0])
print(root,end='')
inorder(tree[root][1])
def postorder(root):
if root != ".":
postorder(... | [
"84698380+firstep710@users.noreply.github.com"
] | 84698380+firstep710@users.noreply.github.com |
9ae559ed24c07ed4a08b4ae782bccb3637f700c7 | 66b9e0f5bb64869014062c561179486aa85b7738 | /shapeCheckmark.py | c7f01c189b22ad2cb8483a54370f4bab67d522aa | [] | no_license | jainsimran/creating-shapes-python | 8fc247f465ebfe3fd98c661afeb83bb1b0e99c70 | a3fffc09593628b8d0fb8ce38e390025c2bd2c3f | refs/heads/master | 2023-02-13T04:58:46.940388 | 2021-01-06T21:19:26 | 2021-01-06T21:19:26 | 327,115,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import turtle
window = turtle.Screen()
window.bgcolor('lightgreen')
leo = turtle.Turtle()
leo.pencolor('blue')
leo.right(45)
leo.forward(70)
leo.left(90)
leo.forward(150)
window.exitonclick() | [
"itsimmi5@gmail.com"
] | itsimmi5@gmail.com |
a225fe7ee8be173055a27f059f7cf1d154e96644 | c7c772d5900c1352d6ae1d392bddc5e061060d62 | /post/migrations/0001_initial.py | a132844072ab55c988b82303d22055d650b640ef | [] | no_license | gabrielhdez41/blog-test | b11fead309fe80d7247dca598dae23c3c20fd61d | e39cec4bd8361d5137ce88e94650dcc0d84d8181 | refs/heads/master | 2022-12-28T09:49:10.828691 | 2020-10-07T01:37:19 | 2020-10-07T01:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # Generated by Django 3.0.8 on 2020-08-07 22:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"gabrielghg95@gmail.com"
] | gabrielghg95@gmail.com |
4bf7b0860054cb16f805325b58829ae3231735aa | 5a8bc4219384d11645f96baf54c7d50e65962ca3 | /main.py | e641694713e55e86b92f475468127839727ec541 | [] | no_license | ajaydev17/Ping-Pong | d21b1076b2c302a81e70fb9a53f5bd99fc8491cd | ec143c121f64c082e28d3d89515f457505febf9e | refs/heads/main | 2023-03-26T14:12:05.539624 | 2021-03-16T19:16:36 | 2021-03-16T19:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from turtle import Screen
from paddle import Paddle
from ball import Ball
from scoreboard import Scoreboard
import time
screen = Screen()
screen.title("Ping Pong")
screen.bgcolor("black")
screen.setup(width=800, height=600)
screen.tracer(0)
right_paddle = Paddle(350, 0)
left_paddle = Paddle(-350, 0)
ball = Ball()... | [
"rogerthat1729@gmail.com"
] | rogerthat1729@gmail.com |
e01adaee84f82114314f03c60f964781241c70ad | 6d9a29bd76cdfcda472eccccc16a5d2f4478ac25 | /jinhuiz2-hw6.py | 8848729034b97043df180e276352930b9f7698d1 | [] | no_license | Jinhuiz2/IE598_F18_HW6 | 0c16af3d60f4fa41cdac73999286df5a7b96cb6d | a44e21aa600085d1747feef4bb38e82381ee4275 | refs/heads/master | 2020-03-31T07:03:57.205667 | 2018-10-08T02:21:44 | 2018-10-08T02:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py | from sklearn import datasets
from sklearn.tree import DecisionTreeClassifier
from sklearn.cross_validation import train_test_split
from sklearn import preprocessing
from sklearn.metrics import accuracy_score
import numpy as np
from sklearn.model_selection import cross_val_score
#From Iris dataset get iris data, spli... | [
"noreply@github.com"
] | Jinhuiz2.noreply@github.com |
39ac82b5900d8bff567825bc91b455a0be5074b1 | 4a7804ee05485c345b4e3c39a0c96ed4012542ac | /system/base/less/actions.py | fd506df396c789af3c5b6f73302212caf721a16d | [] | no_license | Erick-Pardus/Pardus | 1fef143c117c62a40e3779c3d09f5fd49b5a6f5c | 2693e89d53304a216a8822978e13f646dce9b1d3 | refs/heads/master | 2020-12-31T02:49:33.189799 | 2013-03-17T06:29:33 | 2013-03-17T06:29:33 | 17,247,989 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
b327a3211d631a84607b97fdcdf51a868070f337 | 34ff00df4e369bb9d4843a8f7bbc74449e95103c | /snake/snake_script.py | 2696e2f6f543122d9e6866660e4afb2cf94450e1 | [] | no_license | Coritiba019/Jogos-Pygame | f3ad6d1a7cb95eb3c4569c0411f7476905225f8e | 33d4d63ef25bfcb0d826d87c08d1a4e5f1045349 | refs/heads/main | 2023-04-02T07:55:27.702739 | 2021-04-09T02:26:09 | 2021-04-09T02:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,699 | py | import pygame
import random
from pygame.locals import *
from snake.snake import Snake
from snake.apple import Apple
"""
Created by Igor Lovatto Resende
N USP 10439099
"""
class SnakeGame:
FONT_SIZE = 18
PRIME_NUMBERS = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
BLOCK_SIZE = 20... | [
"noreply@github.com"
] | Coritiba019.noreply@github.com |
eda2d7a7d548e568bc5fb77caddeb16bfc3b87a0 | 861c248aab85784542fab84eeccedda6c90682d9 | /msgtracker/apps/collector.py | 57d9013ce26b082eb333ef71a105496cc2632ede | [
"MIT"
] | permissive | daleysoftware/msg-tracker | c91cd67e7466c04574c2ed5256a2a0f931dd8647 | 16edb9d555795d0eec625dd954e14f914cbbbe2b | refs/heads/master | 2022-05-16T02:58:44.083469 | 2017-03-01T23:43:24 | 2017-03-01T23:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import sched
import time
import sys
import logging
import msgtracker
import datetime
import signal
scheduler = sched.scheduler(time.time, time.sleep)
def _collect_and_log_forever(slack_client):
"""
Collect data from slack API and log in redis. Backend handles logging format. Run forever.
"""
wait_mi... | [
"matt@aerofs.com"
] | matt@aerofs.com |
0dfec56cd4d62e01e54c239df360ace22c6352bb | 28fad446fac04f7f0b3c828fad1c3c2f808c2c62 | /weak_deepards/models/base/resnet.py | e5c6e322bca3db1a49f01459e71dd2734269d403 | [] | no_license | hahnicity/weak_deepards | b1f82db3b598a146360ef0691ae94c1dd52a7b79 | e4a51901865587281cbc687737fbf7b645747087 | refs/heads/master | 2023-02-26T12:29:56.172484 | 2021-01-30T11:16:34 | 2021-01-30T11:16:34 | 242,019,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,570 | py | import torch.nn as nn
import math
def conv2x2(in_planes, out_planes, stride=1):
"""2x2 convolution with padding"""
return nn.Conv1d(in_planes, out_planes, kernel_size=3, stride=stride,
padding=1, bias=False)
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, inplanes... | [
"grehm87@gmail.com"
] | grehm87@gmail.com |
557e31ccc682fe60039353e6fdbdaf4edcd480da | e7c685a9ddc21186678c665eab4f8803c5711766 | /emil/Nauka1 - podstawy-kolekcje-listy/Basic1/Zad12 - Calendar.py | 569e21b4f578f373a849b9e4104627f7e4250fb0 | [] | no_license | emillo8905/nauka-2 | 543a7249eeb4c3913d3595d59c5b628d186bd061 | b3a14e254bdf589dee23aef8418a373da7e5d362 | refs/heads/master | 2023-07-05T01:53:33.352764 | 2021-08-29T10:16:03 | 2021-08-29T10:16:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import calendar
y = int(input("Podaj rok dla kalendarza: "))
m = int(input("podaj miesiac dla kalendarza: "))
print(calendar.month(y,m)) | [
"emil.szczesniak@pollub.edu.pl"
] | emil.szczesniak@pollub.edu.pl |
ae5054662c31c4460f0dca8585dcffb3f9c504a2 | 954ac3c7e9c4b3b49a212dd1f848ee6024c1a7a8 | /test_logica.py | ff588f8575b7a3c15c3f5980e6435431b4e99288 | [] | no_license | denilsonsa/pythonlogica | bfb50264266ecf18e5212fdbcd64023d8638bdbc | 0ebe4ea3e6d99cda522fc59e8c29408d63dd5216 | refs/heads/master | 2022-11-09T02:45:34.365248 | 2020-07-01T07:32:01 | 2020-07-01T07:35:48 | 275,635,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,570 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4 sw=4 et foldmethod=indent foldlevel=1
import unittest
import string
import sys
from logica import *
ascii_uppercase = string.ascii_uppercase if sys.version_info.major >= 3 else string.uppercase
# Este arquivo executa dois tipos de teste:
# * testes unitários, u... | [
"denilsonsa@gmail.com"
] | denilsonsa@gmail.com |
1809a83312bcf86b533baa9b5a500fa91fcb2a47 | dcadd6029501cbd457616ee4b0db31f2d9c88006 | /fullyconvolutional/run_training.py | dab748cbe4fb056f8ac835c185b50355bb633a2d | [] | no_license | tpostadjian/pytorch | 59769f587fdb78ce24aea48bc348eb4b3324f4e3 | 93ec3c5989d5ab1066739772273d64dba716c295 | refs/heads/master | 2018-10-07T02:31:28.816419 | 2018-06-13T08:36:07 | 2018-06-13T08:36:07 | 113,600,046 | 0 | 0 | null | 2018-08-01T09:36:10 | 2017-12-08T17:27:22 | Python | UTF-8 | Python | false | false | 2,926 | py | from fullyconvolutional.training.train.fcn_dataset_loader import SPOT_dataset
from fullyconvolutional.training.train.fcn_trainer import Trainer
from fullyconvolutional.training.train.fcn_tester import Tester
from fullyconvolutional.models.fcn_net import fcn
from glob import glob as glob
import random
import torch
impor... | [
"tristanpostadjian@gmail.com"
] | tristanpostadjian@gmail.com |
19520d1850d303ee6d8e756f5a39b0610c647846 | c6a3b8362673ef847d8bd2445205f5a361b473fb | /HW-4/sigm.py | e88037ff7dfbfaf2f59aac7bbda0b9a8fe9582f2 | [] | no_license | nursultanbolel/Introduction-To-Deep-Learning-Homeworks | 1b231be8f4001f7093986b1c7016e4eef35a8ab1 | c50514b8a1eda735445e0880ba1ed03aa1612b76 | refs/heads/master | 2020-12-15T22:24:27.143947 | 2020-01-22T11:28:29 | 2020-01-22T11:28:29 | 235,272,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 12 16:48:28 2019
@Name-Surname: NUR SULTAN BOLEL
@Homework: Homework-4
"""
import numpy as np
def sigm(X):
h,w=X.shape
O=np.zeros((h,w))
for i in range(h):
for j in range(w):
X[i,j]=(-1)*X[i,j]
O[i,j]= 1 / (1 + np.exp( X[i,j]))... | [
"nursultanbolel@gmail.com"
] | nursultanbolel@gmail.com |
f4b3889382cdd5b77a494efbc572bb3692fd6ba3 | 08484bb0dc0a4e55efd9a10b42ddb943c4964536 | /concept_of_head_tail.py | a7b137bc5e77cf2a79e7614f4b977e44a2e3f584 | [] | no_license | akjain96/PythonBasics | ebc1bbafe323129575a1e8d774eda5a3b5f495cb | c4a8b2db44f72f0f455a860aeef1ea05a8afeac6 | refs/heads/main | 2023-05-17T17:44:08.660633 | 2021-06-08T06:48:10 | 2021-06-08T06:48:10 | 374,908,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | var = [1,2,3,4,5,6,7,8,9]
head, *tail = var
print(head)
print(tail)
*head, tail = var
print(head)
print(tail) | [
"akhiljain26845@gmail.com"
] | akhiljain26845@gmail.com |
54e45b5adf5e30e8719f78c545a9e56a6627a681 | cf84ca819873ec61fcc3411316681b0900de75e8 | /UriOnlineJudge/uri1001.py | f80cb6b915d1a3bc490b7dc643d3471b3b055942 | [] | no_license | gabriellll00/hello-world | 8d563e78be14b006d2064bbd298514eacb1afdb7 | fc258b99f43c70bfd0811db0176a534d026eb83e | refs/heads/main | 2023-07-21T20:08:19.009397 | 2021-09-04T20:37:25 | 2021-09-04T20:37:25 | 388,102,882 | 0 | 0 | null | 2021-07-21T12:21:41 | 2021-07-21T12:02:57 | null | UTF-8 | Python | false | false | 62 | py | a = int(input())
b = int(input())
x = a + b
print(f'X = {x}')
| [
"noreply@github.com"
] | gabriellll00.noreply@github.com |
35ec94a0efb364b71563a9825181042bbbee0d61 | a9191be8d25279708f3f11d21c8ad993870f2a63 | /ex33.py | 5263a1cb286c757c7210e2bf6410bb0008563bc9 | [] | no_license | moog2009/Python | d64075d64fcc2ac3c40afe731ed9d1661ab21e13 | 73501ef9f2f3e07a0e6b428d5818e9cd7581984a | refs/heads/master | 2020-05-22T13:38:27.716616 | 2014-03-03T16:20:45 | 2014-03-03T16:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
i=0
numbers=[]
while i<6:
print "At the top i is %d" %i
numbers.append(i)
i=i+1
print "Numbers now:",numbers
print "At the bottom i is %d" %i
print "The numbers:"
for num in numbers:
print num | [
"moog2009@163.com"
] | moog2009@163.com |
977aa0a76af026f61c509844bb37c9a7e0e2603a | eb7c15f59f0863b457b272849930dce4ef92e58c | /znc/run | 09e03a3c11edded93c1dd153409c21e45d5db281 | [] | no_license | dozymoe/runit-init-scripts | 40492bc11b9a7f5f974088e7b5e870d97f54354a | ddb8915c6f2da8a5c2acdb5e09f33bc6c027ccdb | refs/heads/master | 2021-01-22T07:06:29.736090 | 2014-06-19T01:32:08 | 2014-06-19T01:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | #!/usr/bin/env python
import logging
import os
import sys
from time import sleep
# import external library
sys.path.append('/var/service')
from runit_helper import (
MAXIMUM_CRASHES_DELAY,
check_crash_quota,
check_dependencies,
get_logger,
run,
)
service_name = 'znc'
log = get_logger(service_nam... | [
"dozymoe@gmail.com"
] | dozymoe@gmail.com | |
8d00421a892e2caa7e04f1e4fde7bed021bdc058 | 93b12e31b85ae36345b47d29301e999480d13515 | /blog/blog/tests.py | a6618c02aa7ba4e59711ef801e7a438a30e0e6de | [] | no_license | bo858585/MyBlog | d3b61e7e4bd424a945789c2644909a5ab3314142 | 7a136b5ce043d584aa1327c59e39e8b534cbdf68 | refs/heads/master | 2016-08-03T00:27:51.631197 | 2013-08-30T08:17:17 | 2013-08-30T08:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # coding: utf-8
from django.core.urlresolvers import reverse
from django.test import TestCase
from .models import Post
from .views import PostCreate
import json
class PostTest(TestCase):
def setUp(self):
"""
Creates two posts in blog and gets two urls:
url of the posts list and url of ... | [
"bo858585@gmail.com"
] | bo858585@gmail.com |
c3b00d8278236a95e20ebb3af7fd9f50c93b373f | 8be4473603fb3319f2cab2aa335a2887fced78eb | /src/juego/accion_jugador.py | 5925da1b1ae9a3871ebea57e644d1797f4cedd08 | [] | no_license | ericbrandwein/tapada | e3d7e3a0120c98d90b1fc3c92c791e7e3184341d | 7bcfc76ef51d70ca89b15523e96528c79c4598da | refs/heads/master | 2020-04-23T01:23:13.730971 | 2019-03-14T19:29:36 | 2019-03-14T19:29:36 | 170,810,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from enum import Enum
class Fuente(Enum):
MANO = 0
TAPADA = 1
PILON = 2
class Destino(Enum):
PILON = 0
ESCALERA = 1
TAPADA_CONTRARIA = 2
class AccionJugador:
def __init__(self, fuente, destino, indice_fuente=0, indice_destino=0):
"""
Si el destino es ESCALERA y el indic... | [
"brandweineric@gmail.com"
] | brandweineric@gmail.com |
cf4bdcc6d6b65f2338db2ae85b995b624c1c46a6 | b14aeb73518d00af9b4425b73fd4c82e8e36cbee | /Sorting Algo/912SortanArray.py | 1dc0f586b560a5ed8b88fe091f9b022f0ce6b0c4 | [] | no_license | jli124/leetcodeprac | 86020e22668be0b63b4a062d897c03f304336b81 | 8d23bc6c0084d405c5e9b22fb713d48835e17f9e | refs/heads/master | 2021-01-05T02:09:03.526693 | 2020-07-07T05:33:53 | 2020-07-07T05:33:53 | 240,839,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #912. Sort an array
#-------------------------------------------------------------------------------
# Approach
#-------------------------------------------------------------------------------
"""
use merge sort
"""
#-------------------------------------------------------------------------------
# Implementa... | [
"lijiayue906@gmail.com"
] | lijiayue906@gmail.com |
e4f7bb62b715cc2aa5f7fcf50a0dc14727350e14 | aacd105bee07aa613ae24d568e1bec0c04a70094 | /app/api/auth.py | 277f5e0ad80104df0f1599e366d6c1ef5b8bc478 | [
"MIT"
] | permissive | Tert0/MT-Trainer | 2155c156ce780604d241ed6beeac65fd7e7b5ceb | d1895b2d22ed88f2abca0d35b65bea868fa436d8 | refs/heads/master | 2023-04-12T01:05:57.199064 | 2021-05-02T17:09:40 | 2021-05-02T17:10:02 | 349,793,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | from fastapi import APIRouter, HTTPException, Response, Depends
from app.models import User
from app.database import db
from app.auth import pwd_context, create_access_token, bearer_scheme, get_user
from datetime import timedelta
from redis import Redis
import os
import jwt
SECRET_KEY = os.getenv("JWT_SECRET_KEY")
ALG... | [
"62036464+Tert0@users.noreply.github.com"
] | 62036464+Tert0@users.noreply.github.com |
cd3f87f5e2e89356e2ca0b12e50553e9a48169a8 | 8d11a3316e2c8eac08ae11afb6c697393b557414 | /SpaceShip/ShipModule.py | 0508239565c56725c1614ad7c395daa6e12aabd7 | [] | no_license | dahou83/SpaceShip | 24548b7ac368448fe24ae118940cd289a455ef96 | d8c3df1eb36f9cfac7aeb7078afe7ef02c59cd85 | refs/heads/master | 2022-11-11T14:51:06.884969 | 2020-07-05T03:38:56 | 2020-07-05T03:38:56 | 277,225,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import pygame
class Ship :
'''def __init__(self , s):
self.screen = s .screen
self.ship = pygame.image.load('spaceship1.png')
self.move_horiz = 305
self.move_vert = 150'''
def __init__(self , ai_game):
self.screen = ai_game.screen
self.screen_rect = ai_game.screen... | [
"abdoallahe@ymail.com"
] | abdoallahe@ymail.com |
a8a885675b9305d63335322a7f85ca78e17ab456 | 4b2c1372c54dc069d08393397d8324c8dd1fcaf5 | /project2/urls.py | c9b6c7b9b7c392064b32f2ca43564b3bc7159aa9 | [] | no_license | gurashish1singh/project2 | 3af1a74392a70732d824f060597ba263eff5baf6 | 7931d50491b45471ff7276b7276d589ad18bacab | refs/heads/master | 2020-06-01T03:00:42.284709 | 2019-06-06T15:46:23 | 2019-06-06T15:46:23 | 190,607,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """project2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"gurashish1singh@gmail.com"
] | gurashish1singh@gmail.com |
3a6b715cdd8aef01e1c7c299a0bc0119b452646f | 6431ca9c0e429878c544a9c8f65611af2054e342 | /backend/migrations/0006_auto_20161026_1348.py | 367ac1a737c379344187742a5bc77ba49e5089f5 | [] | no_license | ZhangYiJiang/jublia-agenda | 8306f6e434e6558234010e1b2d2704905de583fe | dab19b3569018020e69050ecc173a69d9b26d9ec | refs/heads/master | 2021-04-30T22:52:23.468620 | 2016-12-29T09:55:12 | 2016-12-29T09:55:12 | 69,541,616 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-26 13:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0005_auto_20161024_1045'),
]
operations = [
migrations.AlterFiel... | [
"mediumdeviation@gmail.com"
] | mediumdeviation@gmail.com |
4b64a051e30b954139e58857c0e08c141725d3be | 8f1d6f17d3bdad867518b7b0a164adfe6aeeed95 | /recognition/vpl/backbones/iresnet.py | c6d3b9c240c24687d432197f976ee01fbf423216 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | xwyangjshb/insightface | 2c7f030a5d1f5a24b18967bd0d775ee33933d37f | ae233babaf7614ef4ef28dac0171205835d78d64 | refs/heads/master | 2022-09-29T07:49:22.944700 | 2022-09-22T11:36:12 | 2022-09-22T11:36:12 | 221,020,460 | 1 | 0 | MIT | 2019-11-11T16:16:56 | 2019-11-11T16:16:55 | null | UTF-8 | Python | false | false | 7,149 | py | import torch
from torch import nn
__all__ = ['iresnet18', 'iresnet34', 'iresnet50', 'iresnet100', 'iresnet200']
def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes,
out_planes,
kernel_size=... | [
"guojia@gmail.com"
] | guojia@gmail.com |
f58da75f082920984c3ece191ce425e489425a4d | 76cb1f74513ae6fc071888cb130e07f8b49c38c7 | /editor/grid_functions.py | 87a3570f662dc1f66666021d6a66fbeb084bd9cf | [] | no_license | allenmrazek/super-mario | 0bb2719f5dcf8638a8dca6dd7fd9a2fc8e8d0972 | 0ca16f5516825aac1139a534fae4da3c5358777a | refs/heads/master | 2023-09-01T23:53:52.246187 | 2021-09-24T01:23:31 | 2021-09-24T01:23:31 | 394,555,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | import pygame
import pygame.gfxdraw
import config
from util import pixel_coords_to_tile_coords, tile_coords_to_pixel_coords, make_vector
def draw_grid(screen, line_color, grid_size, view_rect):
w, h = grid_size
ox, oy = (view_rect.left % grid_size[0], view_rect.top % grid_size[1]) if view_rect is not None els... | [
"amrazek@csu.fullerton.edu"
] | amrazek@csu.fullerton.edu |
1cfadceb2486f1f384a0c83db90308ba1f2c3811 | aba3c6a5d7c4146ac54084c8d50c9a696f9c8b0a | /starting_out_with_python_code/Source Code/Chapter 12/factorial.py | 3b8c0a520e11b3ec379aedb6dc1107701a6f5d31 | [] | no_license | amonik/pythonnet | 53297c918c07a0d80fc8872939a60c3d19aa276c | 7d3eb37fbead4c344db6bdc357f6e17d11a189c2 | refs/heads/master | 2023-08-31T08:50:03.233930 | 2023-08-21T04:16:11 | 2023-08-21T04:16:11 | 24,205,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # This program uses recursion to calculate
# the factorial of a number.
def main():
# Get a number from the user.
number = int(input('Enter a nonnegative integer: '))
# Get the factorial of the number.
fact = factorial(number)
# Display the factorial.
print('The factorial of', numb... | [
"aikpaha@us.ibm.com"
] | aikpaha@us.ibm.com |
b65b8f7c48e21d63843b88ce2832a2d666bf33d7 | 32f1d0e9c2fbce7f4682b9f79cae5f3df0480de0 | /brevets/flask_brevets.py | ff59123f5a991747db42de10588f90ef1a270ae0 | [
"Artistic-2.0"
] | permissive | UO-CIS-322/proj4-brevets | b0546b3e47db78c74b4c35b52c5527c811eb8ad0 | a1600206886d324eaa3975f561ae6c7fff601b82 | refs/heads/master | 2021-01-21T21:32:21.088892 | 2017-10-13T21:29:38 | 2017-10-13T21:29:38 | 43,849,637 | 0 | 75 | null | 2017-10-22T04:51:19 | 2015-10-07T23:01:01 | Python | UTF-8 | Python | false | false | 1,854 | py | """
Replacement for RUSA ACP brevet time calculator
(see https://rusa.org/octime_acp.html)
"""
import flask
from flask import request
import arrow # Replacement for datetime, based on moment.js
import acp_times # Brevet time calculations
import config
import logging
###
# Globals
###
app = flask.Flask(__name__)
C... | [
"michal.young@gmail.com"
] | michal.young@gmail.com |
9edca9a33a5b48adfc520b2af32140732c8097cf | b0411270ba3d7b59793524885f23f4ee9840797c | /starterbot/bin/wsdump.py | 48d7bed7fb5664b0def49dcba14bfc6726ca2e6d | [] | no_license | articuno12/megathon | 7cfffe808c05881379363956d37934240c881daa | 504730da3586fd702a51404de4661b516381d9f4 | refs/heads/master | 2021-07-13T20:21:56.044143 | 2017-10-08T14:52:58 | 2017-10-08T14:52:58 | 106,181,954 | 0 | 0 | null | 2017-10-08T14:18:32 | 2017-10-08T14:18:32 | null | UTF-8 | Python | false | false | 5,936 | py | #!/home/fundamentaleq/megathon/starterbot/bin/python
import argparse
import code
import sys
import threading
import time
import ssl
import six
from six.moves.urllib.parse import urlparse
import websocket
try:
import readline
except ImportError:
pass
def get_encoding():
encoding = getattr(sys.stdin, "e... | [
"bloodspain@gmail.com"
] | bloodspain@gmail.com |
cc4a708de2750423d0a29590b9866e9cb81f1acd | 28809dbb9d3a1901af0d2a6ea71eff0cee4c545d | /project_scripts/hrra/rnaseq_chap_altogether_plot.py | 0f204e3133aef9e78ac4d252eebf1f8561d5bb58 | [] | no_license | afilipch/afp | 6088f3375741c8a837006e9d4b3e716dfffc0b2a | b941a3eeb4d8447b3628c79a528c60cb540537e3 | refs/heads/master | 2021-06-28T00:57:37.869912 | 2020-10-14T16:50:20 | 2020-10-14T16:50:20 | 155,242,147 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,654 | py | #! /home/a_filipchyk/soft/home/a_filipchyk/anaconda3/bin/python
'''Draws a plot for a figure 3'''
import argparse
import os
import sys
from collections import defaultdict, namedtuple
import math
import numpy as np;
import pandas as pd;
from matplotlib import pyplot as plt;
from matplotlib.patches import Rectangle, Ar... | [
"filipchyk@ibt077.ibt.kfa-juelich.de"
] | filipchyk@ibt077.ibt.kfa-juelich.de |
6e29d18f72a1d40a4e52fe2a92279c2aee522198 | fcee0731ce523e65399abaf93586465fdd31f1ba | /PGML_V1/config/copy_yaml_files.py | b41e4ae4dc3639cdf1b9d2ca18ffe6610487f4d5 | [] | no_license | surajp92/2D_Turbulence | 2bf6c1d7373f0d6d04006284837777dc8f18ac99 | 06443024e7366cd84ab4b313f03bc90a22a2c68f | refs/heads/master | 2021-12-15T05:39:59.837009 | 2021-12-11T17:36:18 | 2021-12-11T17:36:18 | 194,935,492 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 30 13:30:01 2021
@author: suraj
"""
import yaml
nx = 1024
re = 8000
filename = f'input_{nx}_{re}.yaml'
with open(filename) as file:
input_data = yaml.load(file, Loader=yaml.FullLoader)
file.close()
for i in range(1,11):
seedn = int(i*10... | [
"pawarsuraj92@gmail.com"
] | pawarsuraj92@gmail.com |
b24260d2fbde15d982901d41caeb8488dd6afe56 | dd079ce185597bf8fcb30103fd74d554f98373cd | /jupyter_notebooks/select_data/preprocessing_bq_data_import.py | 4bef60a39d1409a0a872826a048cd9d01315868f | [] | no_license | YoByron/UNICEF_CATS | 3bc93ae175fb75295c46e20d5ce941c72616a52c | 3d664e2a75675c0cf80f0d4bb1c93fe029d82868 | refs/heads/main | 2023-06-03T21:06:05.491795 | 2021-06-21T19:34:52 | 2021-06-21T19:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | """ This Script is designed to verify the connection between PyCharm Py dash_dashboard and Google BigQuery """
# set the OS environment to BigQuery
import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "../../../Desktop/UNICEF/unicef-gdelt-bq_conn.json"
# connect to big query client
from google.cloud import bigque... | [
"emily.schoof@gmail.com"
] | emily.schoof@gmail.com |
2ec3eebdb91c2cb26fa25dcf2f58788b5a9e3955 | c1a6f1fec51863ca3c9d0eca7172fa548658e450 | /bin/lib/python3.8/site-packages/ccxt/async_support/__init__.py | f0e78a6f23051c35376770ead420c8badf592050 | [] | no_license | marcellinamichie291/py | c38f68f10e54b5544d5580f1043100175e1bad50 | b8a8d5b3a4aaf23ba021e2bf16b2ed6409b16825 | refs/heads/main | 2023-06-19T22:51:56.202809 | 2021-07-22T03:19:48 | 2021-07-22T03:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,909 | py | # -*- coding: utf-8 -*-
"""CCXT: CryptoCurrency eXchange Trading Library (Async)"""
# -----------------------------------------------------------------------------
__version__ = '1.51.40'
# -----------------------------------------------------------------------------
from ccxt.async_support.base.exchange import Ex... | [
"root@marrakesh.space"
] | root@marrakesh.space |
f157860d5bc5dbe0ee3079c2fb9d2bb350ce8099 | 532fc2a40cf66d91a5eb036f351d29fc99f26e5c | /6 objectSwarmObserverAgents_AESOP_turtleLib_NetworkX/$$slapp$$/ModelSwarm.py | 3003879e43b487f0baa93ab61d2f88e7f9371537 | [
"CC0-1.0"
] | permissive | jefferychenPKU/SLAPP | 40cdd6ec2cbcf7e85e4f07129a1f35e342af479d | 7c57436d3ef76c05695e1e72f6e5040ac5f41b73 | refs/heads/v.1.11 | 2020-12-24T21:54:51.222962 | 2016-01-31T18:54:01 | 2016-01-31T18:54:01 | 50,984,545 | 0 | 1 | null | 2016-02-03T08:11:44 | 2016-02-03T08:11:44 | null | UTF-8 | Python | false | false | 14,429 | py | #ModelSwarm.py
import Tools
from Agent import *
from WorldState import *
from ActionGroup import *
import random
import os
from mActions import *
from turtle import *
# in this module, a few of the try/except structures are not cotrolled
# for debug
# these try/except constucts, indeed, are not intended ... | [
"pietro.terna@unito.it"
] | pietro.terna@unito.it |
387575509aa4d79b183e9aab89214994f4aa8615 | 31c22696e8fffd9016e2f11a6ac7aa104a17c5f7 | /bitcoin.py | f047394ab01f60c44f5eed79167304643d843784 | [] | no_license | stiipast/bitcoin-analyzer | a33f14a523d14a02855a6ada185bf50103c63775 | f1bec29da55d725ee0424145230348fe1cb669b3 | refs/heads/master | 2020-04-10T13:05:09.769392 | 2018-03-07T18:26:19 | 2018-03-07T18:26:19 | 124,274,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | #!/usr/bin/python
import urllib, json, time, sys
import mysql.connector
def obtindre_block(block_index):
# Guardarem els valors en llistes per despres poder utilitzar els valors per fer estadistiques (encara no els he utilitzat)
in_tx=[]
out_tx=[]
fee=[]
temps=[]
conndb = mysql.connector.conn... | [
"noreply@github.com"
] | stiipast.noreply@github.com |
998c4faf4a8619b9f980f1c65b082673dc189e49 | 1233af220e9fb80b80c6abdbe7583c473f8e25f8 | /CodeWars/002_241120_RomanNumerals.py | 7aef8cfcb8648242e198012b9bf367a846900585 | [] | no_license | olegbrz/coding_every_day | c3eca7150c3e0f542e7284da7551f9975922d88a | f9ff12588c494ff8b79176e22f889864b3f4c120 | refs/heads/master | 2023-03-13T18:52:52.844473 | 2021-03-19T00:24:16 | 2021-03-19T00:24:16 | 315,709,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """TODO: create a RomanNumerals helper object
| Symbol | Value |
|----------------|
| I | 1 |
| V | 5 |
| X | 10 |
| L | 50 |
| C | 100 |
| D | 500 |
| M | 1000 |
"""
ld = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,
'D': 500,
'M': 100... | [
"brezitskyyoleg@gmail.com"
] | brezitskyyoleg@gmail.com |
bb3dfd9df63b6070250b5a1f41319060fe55f689 | 3569e041632d827c93ff87bd164f19142d5772aa | /Cloud_Vision/text-test.py | eb851c7fbb4f9b4004112209c613bdc961e020e4 | [] | no_license | JoonasMattila95/GoPiGo3_PanttiBotti | af6533ded9b16e4285944aced557fd10063c9d45 | 8ca67cb324d27ba1f3354567d09bf948150a3ac9 | refs/heads/master | 2020-04-03T17:11:58.759199 | 2018-12-05T07:34:14 | 2018-12-05T07:34:14 | 155,435,668 | 0 | 0 | null | 2018-12-17T10:44:39 | 2018-10-30T18:22:09 | PHP | UTF-8 | Python | false | false | 1,742 | py |
def pantti(input_text):
if input_text == "0,15":
sum = sum + 0.15
print(input_text)
return
elif input_text == "0,20":
sum = sum + 0.20
print(input_text)
if input_text == "Pantti":
print(input_text)
elif input_text == "Pant":
print(input_te... | [
"tuomas.isoniemi@outlook.com"
] | tuomas.isoniemi@outlook.com |
859f53a675da269d458e7153e908f2527223ac15 | bf534da18426b49dbee0a0b1870f5f3a85922855 | /ex023.py | 81005cc6e332246276e30c09bd341672794200b7 | [] | no_license | kcpedrosa/Python-exercises | 0d20a72e7e68d9fc9714e3aabf4850fdbeb7d1f8 | ae35dfad869ceb3aac186fce5161cef8a77a7579 | refs/heads/master | 2021-05-20T08:46:29.318242 | 2020-04-01T15:44:36 | 2020-04-01T15:44:36 | 252,205,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | num = int(input('Digite um numero qualquer: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print('Analisando o numero {}'.format(num))
print('A unidade vale {}'.format(u))
print('A dezena vale {}'.format(d))
print('A centena vale {}'.format(c))
print('A milhar vale {}'.format(m)) | [
"kattine.costa@gmail.com"
] | kattine.costa@gmail.com |
951e199ec32cab031e99f50017e8b9a574d1eb53 | 874227c96fa1f09160103299a84c34a6bd388cab | /Algorithms/Chap04/hello.txt | 691dda3b6a4e1ef4a64fec7a74fd5204e7dc9b24 | [] | no_license | seyoungnam/python_basics | 4be59f3c92d81c5a505d764ce10e3f7c66c30fe0 | 4ff6c7068f6de49e3f47311c42e1efc47c089443 | refs/heads/master | 2022-11-07T17:02:34.027796 | 2020-06-17T14:42:04 | 2020-06-17T14:42:04 | 257,255,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | txt | hello = "hello"
def world():
return "world"
if __name__ == "__main__":
print("{0} 직접 실행됨".format(__name__))
else:
print("{0} 임포트됨".format(__name__)) | [
"seyoung.nam@gmail.com"
] | seyoung.nam@gmail.com |
3b4075e9e8f1c8e8e2fd9272c916f22110f4e4f3 | 6cf2b60805184697fdac6693167845c5c8a65572 | /App_play.py | b7ec476f80f8388fe2b765c1a40208183c28250e | [] | no_license | eniche-akim/ChessAI | 760492036e6a13ae28f83a26d9b48599aec79148 | a2ebc7dac87de1312a41969386589ed2d09a671f | refs/heads/master | 2023-07-13T09:40:20.115471 | 2021-08-29T15:19:48 | 2021-08-29T15:19:48 | 401,072,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from flask import Flask, render_template
import chess
from play_chess import Valuator
from state import State
app = Flask(__name__)
evaluation = Valuator()
@app.route('/')
def index():
return render_template("index.html")
@app.route('/move/<path:fen>/')
def get_move(fen):
#print(depth)
print("Calculatin... | [
"hakim.heniche@gmail.com"
] | hakim.heniche@gmail.com |
161b1e11dcd515c9e213774de876e7e35c7198e9 | 74e75430e4ca2bf422017c7035580ae973c2c42e | /test/functional/wallet_bumpfee.py | 1907c874cc0841502d473005c080449aad105cf8 | [
"MIT"
] | permissive | j00v/Lightcoin | 9e55bad2d3e38f4c3781f62f915828cde0e51bc9 | a8555320bebbf95545bc8c2841f1fadc38f5bd53 | refs/heads/main | 2023-05-09T07:13:28.031313 | 2021-06-08T22:11:45 | 2021-06-08T22:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,553 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the bumpfee RPC.
Verifies that the bumpfee RPC creates replacement transactions successfully when... | [
"Lightcoindev@gmail.com"
] | Lightcoindev@gmail.com |
593b77c458fd3098153bf81b83f5082c7d467aa2 | 968555a63995eef023a61586de85ab43145a71ad | /Clase04/busqueda_en_listas.py | c3ad5b3c9d38e0938fe171b85c9816e568e78674 | [] | no_license | sanchez-17/ejercicios-python-UNSAM | eba5160c9561572d8989177d6de68a421c6d292b | 055169d636746b7ae737e3bfaff45cba067c4405 | refs/heads/main | 2023-06-10T22:41:10.817147 | 2021-07-04T00:56:36 | 2021-07-04T00:56:36 | 382,734,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 12 02:00:14 2021
@author: Gaston
"""
'''
Ejercicio 4.3
'''
def buscar_u_elemento(lista, e):
'''Si e está en la lista devuelve su posición, de lo
contrario devuelve -1.
'''
pos = -1 # comenzamos suponiendo que e no está
for i, z in reversed(list(enu... | [
"sanchez-17@outlook.com"
] | sanchez-17@outlook.com |
8fea38c27fcc878bfe3485c0023f45a5d12743af | fa7db1cca780471a0300c4a27213323513ad27d5 | /chapter6/batch_norm_gradient_check.py | 0d23d1482d9e8ceacc88f36dc9f5e6e7913c269a | [] | no_license | 772594536wang/Deep-Learning-From-Scratch | e3a9f0aaf48104d33f30c903be113887d68370b5 | 2cff7999196062fd98372aece42fab2eedc47299 | refs/heads/master | 2020-05-07T11:58:21.735124 | 2018-08-13T09:55:31 | 2018-08-13T09:55:31 | 180,483,924 | 2 | 0 | null | 2019-04-10T02:15:21 | 2019-04-10T02:15:21 | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
# @Time : 2018-08-10 22:58
# @Author : Jayce Wong
# @ProjectName : Deep_Learning_From_Scratch
# @FileName : batch_norm_gradient_check.py
# @Blog : http://blog.51cto.com/jayce1111
# @Github : https://github.com/SysuJayce
import numpy as np
from common.mnist impo... | [
"sysusshyj@gmail.com"
] | sysusshyj@gmail.com |
dc76be437385dbad81055255bec2af7a8df87938 | b9005dd010b3d073f95d88df94813dec7580dd90 | /mongodb.py | 5b773bd956b67f4554ed01c892619339edc7bdd3 | [] | no_license | HORSESUNICE/webscraping | 33829e9a33089bec398284471414d7c03d6cce96 | f2e22273e9fb9a3fb5b4016f9591b49025fefc6c | refs/heads/master | 2021-01-18T22:39:49.144652 | 2018-03-01T01:56:29 | 2018-03-01T01:56:29 | 87,064,281 | 0 | 1 | null | 2018-03-01T01:56:30 | 2017-04-03T10:54:02 | Python | UTF-8 | Python | false | false | 2,120 | py | import requests
from bs4 import BeautifulSoup
import pymongo
client = pymongo.MongoClient('localhost',27017)
xiaozhu = client['xiaozhu']
bnb_info = xiaozhu['bnb_info']
# ====================================================== <<<< 单页行为 >>>> =============================================
url = 'http://bj.xiaozhu.com/s... | [
"mathmyb@gmail.com"
] | mathmyb@gmail.com |
994c0795da16cdc04ade8acbce51229b95fa4e8e | 5527d3854ad0840fb4a0a9893447535cd5e6ad0f | /python/ThirteenTeV/QstarToQW_M_1200_TuneCUETP8M1_13TeV_pythia8_cfi.py | 58d9d33c62bab8fd0ee915374feb779697103556 | [] | no_license | danbarto/genproductionsSummer16 | ecf2309c1627b4db3e4a1b8785ca612d9a59426f | 655ef31aa5f05d0117aeef82d107f07a1fd5d822 | refs/heads/master | 2020-03-26T23:12:37.115369 | 2018-08-21T14:23:30 | 2018-08-21T14:23:30 | 145,520,233 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(65.84),
filterEfficiency ... | [
"daniel.spitzbart@cern.ch"
] | daniel.spitzbart@cern.ch |
5711678503f71af49eab52cf70f07cb27cd48a3c | 3bd2d2d66c30241b63f0fd64a7cae8584e593428 | /blog/admin.py | b80fb51b5e9260c1cb25e555e0fe69e53f554946 | [] | no_license | startcode01/my-first-blog | dfe9f5fe05204e30e7eb73c42f9ea5ec17c7aa8c | 0d7d1574837b7c100a822fb63435062adf49e488 | refs/heads/master | 2020-04-16T08:06:03.323443 | 2019-01-12T15:20:47 | 2019-01-12T15:20:47 | 165,405,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import Post
admin.site.register(Post)
# Register your models here.
| [
"willywally80@gmail.com"
] | willywally80@gmail.com |
7248ab453e1a86b06b69a7d02263f0431915da01 | ac01dec84e77323a9c67439f92bf3a9f1a496e61 | /django_app/motif/apps.py | 22b8a8dfd1b0066ff4cb659b0007eb98dbb7d374 | [] | no_license | Monaegi/Julia-WordyGallery | d8c970e8bd25d7cad69254a876a216fecf97e367 | 4031afe1b5d45865a61f4ff4136a8314258a917a | refs/heads/master | 2021-01-23T16:18:09.876372 | 2017-10-13T08:08:25 | 2017-10-13T08:08:25 | 102,736,537 | 1 | 0 | null | 2017-10-13T08:08:26 | 2017-09-07T12:51:47 | Python | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class MotifConfig(AppConfig):
name = 'motif'
| [
"qufskan9396@gmail.com"
] | qufskan9396@gmail.com |
ddc32b1926560d046349ee35ff5707643abd8afe | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/_exercises/_templates/temp/Mastering GUI Programming with Python/Chapter 3 Handling Events with Signals and Slots/signal_slots_demo.py | f79d2febefd50d50434b21a86eb7d099cee6be09 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,488 | py | # ______ ___
# ____ ? ______ ?W.. __ qtw
# ____ ? ______ ?C.. __ qtc
#
#
# c_ MainWindow ?.?W..
#
# ___ -
# s_. -
# sL.. ?.?VBL..
#
# # connecting a signal to a slot
# quitbutton _ ?.?PB.. Quit
# ?.c__.c.. cl..
# la__ .aW.. ?
#
# # connecting a signal with da... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
388a6eb4b8b486a5c9c706692097b3b4c38187c7 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/pandas/_config/display.py | 57b7af184346cd2f68442d22a2bd7a489047ecad | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f6ba130797f4f1ce2395562efa48f788ebd3a352e26f7c79209f476a3d300866
size 1756
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
1fadd9b1dcb925ea1e7e6b4598b9551cb9704bb1 | 0285ec106e21d5fab9b16a10da9023bcd82f930d | /src/pylhe.py | a2bece618e6c535d3b1e46b1b8f6b73f7dbeda68 | [
"MIT"
] | permissive | christopher-w-murphy/Class-Imbalance-in-WW-Polarization | 099918a4709e5607da36ac3b6b65b7fcb907ea49 | 30fcbb21775e1a67d3b0739147657fd5f6ceb498 | refs/heads/master | 2020-04-13T01:01:59.308918 | 2019-11-23T22:25:09 | 2019-11-23T22:25:09 | 162,861,893 | 0 | 2 | MIT | 2019-11-23T22:18:03 | 2018-12-23T04:23:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,801 | py | # https://github.com/lukasheinrich/pylhe
from xml.etree import ElementTree
class LHEEvent(object):
def __init__(self, eventinfo, particles):
self.eventinfo = eventinfo
self.particles = particles
for p in self.particles:
p.event = self
class LHEEventInfo(object):
fieldnam... | [
"murphtron5000@gmail.com"
] | murphtron5000@gmail.com |
5705fd2fedee9caeaeaa41e9e65f89a975c95792 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/convolutional.py | 1688b79891c2bcd3cce1b6bb7355c216736014a3 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 182 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/convolutional.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
1c129ddb3ef50cd3b69ac689a889b667c11ec1d7 | b04b22018fd377bd899c19161272d72bbfa828f2 | /snippets/code/betmain2.py | 86de8edc6de634ce538b11bc32e2951c1e957462 | [] | no_license | jpmit/betman | f4f05f52db82bbf89de15531576623ee32e5ad00 | 058d69d7365b771eaaa8f77dead173a1262cccf0 | refs/heads/master | 2021-01-21T09:53:52.091499 | 2014-05-24T13:20:23 | 2014-05-24T13:20:23 | 83,349,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,112 | py | # betmain2.py
# James Mithen
# jamesmithen@gmail.com
"""Main betting program."""
import time, datetime
import betman
from betman import const, database, order
from betman.api.bf import bfapi
from betman.api.bdaq import bdaqapi
from betman.all import betlog
import betutil
import multi
# in practicemode, we won't plac... | [
"jamesmithen@gmail.com"
] | jamesmithen@gmail.com |
1e71df78ffaddd0cc93f895ade53620ca92ad1fe | 3e89632dfc1f7f0b992002869cd5416033357cd3 | /model.py | 3b7e276f3748734112952754be4cf24316b0dacc | [] | no_license | freebugssss/DEAP | c97ca917910e87d5453357e224c72f3e41dec235 | e4802d6195691dd13c2a2ced89d3e056713bab61 | refs/heads/master | 2023-04-24T09:53:38.992657 | 2021-05-23T08:01:49 | 2021-05-23T08:01:49 | 369,991,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # Create first network with Keras
from keras.models import Sequential
from keras.layers import Dense
import keras
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from matplotlib import pyplot
df=pd.read_csv('./dataset/dataset.csv',header=0, index_col=0)
dataset=df.... | [
"939577620@qq.com"
] | 939577620@qq.com |
5d595b4de93f1e9d12f91a988cbcee8784d4310a | da20785e29f159a59747e0b86729a52ffbf0f8d7 | /app/perimeter/perimeter_webapp/perimeter_dashboard/views/reports/html.py | f193bdce4cf87e68b665f2b1884c7e529e9c6181 | [] | no_license | neet-lord/perimeter | eab622671dcf6e504b8c30baf0f494e3564bc192 | 47e21f009991b776b3e2a75845365dfda7e72c05 | refs/heads/master | 2022-12-29T09:42:03.924282 | 2020-10-19T14:46:36 | 2020-10-19T14:46:36 | 181,716,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.shortcuts import loader
from django.http import HttpResponse
from perimeter.perimeter_core.models.networks import Network
from perimeter.perimeter_core.models.clusters import Cluster
from perimeter.perimeter_core.models.nodes import Node
def index(request):
template = loader.get_template('peri... | [
"neetlord@fpoint.tech"
] | neetlord@fpoint.tech |
5b8806c5816b969ef781ecc7efd146fd3438c4fe | 0872781c14769f972c141c54578990488a23ef97 | /Fewshotchestmotion/Draw_DifferentTrainSet.py | 0616d6297a54a765a978c72f4766cf362127f78d | [] | no_license | MrWang98/ChestLive | 9dcb84e128038d3bbe5eef6586f50dc55b32cbc1 | 94df5f99f1a9c68bf18206bae67542fdbaa71e61 | refs/heads/master | 2023-07-11T06:01:14.511016 | 2021-08-15T06:38:14 | 2021-08-15T06:38:14 | 339,718,379 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pylab as pl
import scipy.io as scio
ChestTrainResultPath = 'ChestLiveTrainingSet.mat'
ChestTrainResult = scio.loadmat(ChestTrainResultPath)
print(ChestTrainResult.keys())
User1 = ChestTrainResult['U1']
User2 = ChestTrai... | [
"w1968953844@163.com"
] | w1968953844@163.com |
b35ccc9994ce54f39ce1781c925b783dfcee3c12 | e20e027fc4bc03bdcda6c73a77e07eab7ce9d4e9 | /Numpy Assignment 1.py | 38490e0ef83da9c619c925fad6a64132fef4e599 | [] | no_license | aparna31ar/Numpy-Assignment-1 | 47eae1bbe741e3e2cbfb439aa5c761b552eb85fe | 2d674587a85470a841d41d0335120902fbdcd566 | refs/heads/main | 2023-07-17T14:13:29.917923 | 2021-08-30T19:21:40 | 2021-08-30T19:21:40 | 401,460,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | #!/usr/bin/env python
# coding: utf-8
# ### Q1. Use numpy to generate array of 25 random numbers sampled from a standard normal distribution
#
# In[4]:
import numpy as np
a=np.random.normal(0,1,25)
print("25 random numbers from a standard normal distribution:")
print(a)
# ### Q2. Create a random vector of size 3... | [
"noreply@github.com"
] | aparna31ar.noreply@github.com |
a2b3241503da8be5bc7d9e319094cdac96c4489c | 34f55a8fda280e7dc1fe2f5f12cae4656edae708 | /python/direct_mail_result.py | cce468706cb05e44a4a2da010c12787fa41100a6 | [] | no_license | accuzip-opensource/direct-mail | 58a28c20892471d7c407674f6d78777519074f1e | c32e25b5bcf07647502ef24c0cf041bd071ceac6 | refs/heads/master | 2021-01-12T07:51:43.320289 | 2017-02-28T14:00:24 | 2017-02-28T14:00:24 | 77,045,264 | 1 | 1 | null | 2017-02-01T13:50:44 | 2016-12-21T11:18:39 | PHP | UTF-8 | Python | false | false | 220 | py | # http POST
import requests
import sys
r = requests.get( "http://cloud2.iaccutrace.com/ws_360_webapps/v2_0/download.jsp?guid="+sys.argv[1]+"&ftype=prev.csv" )
with open("prev.csv", "wb") as code:
code.write(r.content) | [
"cassapi@accuzip.com"
] | cassapi@accuzip.com |
6c14d18a91a50a9c37ac43de179ee729a11704fa | 546f4c1e4c3e8298d82328667ded4d46eacab3b5 | /openwx/client.py | b2c6a2dcf169e41baec8c3de96934d7232654955 | [] | no_license | suchennuo/book-example | 3a2f9759a899d425546be925b4794da6d27c8dad | 044ad0110c85fdd024e4650dd3ae66cb22c66dcb | refs/heads/master | 2022-12-14T10:16:44.885594 | 2019-11-08T08:52:11 | 2019-11-08T08:52:11 | 81,738,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | import time
import requests
from requests.compat import json as _json
from openwx.utils import to_text
"""
requests
"""
class ClientException(Exception):
pass
def check_error(json):
if "errcode" in json and json["errcode"] != 0:
raise ClientException("{}: {}".format(json["errcode"], json["errmsg"])... | [
"yongchao1006@gmail.com"
] | yongchao1006@gmail.com |
4592366353bb1a72dfd875e0dfdbd622612baa2b | ef84f06e845d5c42aae2faee84c263f9eb42d92d | /keen/web/views/api/user.py | 46bd2b750294c76a1ca60d1ba6b84a5b3139654b | [] | no_license | beforebeta/keensmb | 0921473df4e92e366695cc03c9fdef96a3be4075 | 5408a42a16c83558229f62c88eec011231a0a797 | refs/heads/master | 2016-09-16T00:37:08.907191 | 2014-03-24T15:31:11 | 2014-03-24T15:31:11 | 14,530,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | import logging
from uuid import uuid1
from django.http import HttpResponseBadRequest, HttpResponseRedirect
from django.contrib.auth import authenticate, login, logout
from django.core.urlresolvers import reverse
from django.views.decorators.csrf import ensure_csrf_cookie
from rest_framework.decorators import api_view... | [
"a.kulakov@mail.ru"
] | a.kulakov@mail.ru |
1357ba73d00221123a4df957e5fb2229a2b6f843 | 33c9398eb53301cc3e3a71e29f610e8ab0fc8c55 | /colorann.py | af7da25012968e3b99ae9f4fbe8414174e4dcffd | [] | no_license | denzel-bogues/python-color-project | 2cc45acf358812c798a607f8de73c7e0e4067113 | c510512b4af73f544fb9859a483791f0deef649c | refs/heads/master | 2020-06-26T22:05:04.605705 | 2019-08-13T23:53:17 | 2019-08-13T23:53:17 | 199,769,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import sys
import pandas as p
from pandas.api.types import is_string_dtype
from pandas.api.types import is_numeric_dtype
import AppWindow
AppWindow.call_ui()
data_read = p.read_csv("colors.csv", delimiter = ',', names=['Color names', 'Hex', 'R', 'G', 'B',])
# data_red = data_read[['R', 'G', 'B']]
R = input(... | [
"noreply@github.com"
] | denzel-bogues.noreply@github.com |
c3eb31bfb07ff76ae317c2d91ec0b1541e01c7c7 | 687fed3e95103b20b804a78659ea79e7918b6aa6 | /maec/bundle/capability.py | 481691ff26e4dd189d834fbd4d0658cf1b75d172 | [
"BSD-3-Clause"
] | permissive | geliefan/python-maec | 02886af1dd3fc07bd89a5323a81920e126a960b4 | dd539b1214f5cf1f445cd5989ce3f93e4fb3b2a8 | refs/heads/master | 2021-01-18T13:04:26.768906 | 2014-07-07T17:16:56 | 2014-07-07T17:16:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,716 | py | #MAEC Capability Class
#Copyright (c) 2014, The MITRE Corporation
#All rights reserved
#Compatible with MAEC v4.1
#Last updated 02/18/2014
import maec
import maec.bindings.maec_bundle as bundle_binding
from maec.bundle.behavior_reference import BehaviorReference
from cybox.common import VocabString, String
class C... | [
"ikirillov@mitre.org"
] | ikirillov@mitre.org |
369b9da392cd388ba088dbbcc071c86251091562 | e11d75549243eefa3332c0ee37be645f45dba337 | /Homework/homework_10_kirchoffs_rules/non-ideal_battery.py | 1e76c93fecb20d77abe215e31be488a35993c66e | [] | no_license | esemeniuc/phys121 | 142c3668228689204e45c0698432afe5e3a25a38 | be70590e1c32bc8c6038797bfc2bb0cc7e20c12b | refs/heads/master | 2021-09-09T11:42:05.932932 | 2018-03-15T19:51:50 | 2018-03-15T19:51:50 | 50,221,953 | 37 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from sympy import *
V = 12.0
v_b = 11.8
r_1 = r_3 = 43.0
r_4 = r_5 = 84.0
r_2 = 150.0
i_1, i_2, i_3, i_4, i_5, r = symbols('i_1 i_2 i_3 i_4 i_5 r')
# 1) What is i_1, the current that flows through the resistor r_1?
r_equiv = r_1 + 1/(1/r_2 + 1/(r_3 + r_4 + r_5))
print( solve( V - (V * r)/(r_equiv) - v_b, r))
# Y... | [
"rudolph.kurt@rudyindustries.com"
] | rudolph.kurt@rudyindustries.com |
f456b65143adce6b77f50922eb465da68100c038 | 4f88840e80027503da667e8f73b6babfd1ec118b | /tests/simple_sql_test.py | 5feace18a9742c2360a4a62af0592f9edabf9118 | [] | no_license | fuyjcnbr/analyzeSQL | a29fcf97d602f63917e1ad211fba84f9381a7700 | 05ba80b360832ff3a67ac876ebff73eef2300f74 | refs/heads/master | 2023-07-04T06:14:24.940255 | 2021-08-01T17:25:10 | 2021-08-01T17:25:10 | 391,296,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from unittest import TestCase, main
from analyzeSQL.main import SqlParser, SimplifySimpleSqlTree
from lark import Lark, Transformer, v_args, Tree, Token
class SqlParserTest(TestCase):
def test_simple_join(self):
sql = """
select a.asd, b.asf
from prod.foo a
inner join dev.bar b
on a.id = b.id
where a.x =... | [
"paall@rambler.ru"
] | paall@rambler.ru |
60dd8feecd68873824798a6ebff2b541ebdfc7ea | bfc38b283e2307d3cfb0b817209b7692bb602b16 | /source/wtables/io_tasks/GenerateTriples.py | 1257faae0bee6974a5a697f400ecef2d1c2a1766 | [] | no_license | wikitables/web-of-data-tables | 6fbc22293de088efd1bac39bee693fe03d5e1fed | 75891034e9ffa15a9e484ac741cb8d2197da0af7 | refs/heads/master | 2022-04-13T15:20:19.309330 | 2020-03-05T03:24:01 | 2020-03-05T03:24:01 | 116,946,910 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,555 | py | # -*- coding: utf-8 -*-
import pandas as pd
from wtables.wikidata_db.ConfigProperties import ConfigProperties
from wtables.wikidata_db.WikidataDAO import *
import sys
import time
from wtables.preprocessing.TextProcessing import TextProcessing
from nltk.stem.snowball import SnowballStemmer
import gzip
import logging
d... | [
"jhomaralc@gmail.com"
] | jhomaralc@gmail.com |
1aef2eefec3ad88d9b7f8e6eeba325b3603c0c46 | 603488a6cde44b30732260010afe12b089d01c3d | /useful_functions.py | f355b0c3bc4eb97f054038f97c85f98621d7ff92 | [] | no_license | Zahra-Kader/ksz_21cm_signal | 172707ccda3aa4b61b7de4e046c8af9e2d3c034d | 897a5e36a493f0282fb1d72acee7b0425e0f4a41 | refs/heads/master | 2021-07-09T05:22:18.673237 | 2021-03-26T18:14:01 | 2021-03-26T18:14:01 | 231,374,552 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 22 12:53:47 2018
@author: zahra
"""
import distance as cd
from scipy.interpolate import interp1d
import numpy as np
import perturbation as cp
import density as den
import constants as cc
import matplotlib.pyplot as plt
import scipy as sp
import pylab
from matplotlib.colo... | [
"noreply@github.com"
] | Zahra-Kader.noreply@github.com |
a471721363e20e32661f35d9d756a88f94319b21 | aa288318cb22e25c0cb19e9f189a2f3351b8e8c1 | /manage.py | ea8ad7c432c038931edd0828af9957fa3481701f | [] | no_license | preethibaskar/ReferApp | 6adadbbb7c55f7f9927a9b148c1ac9468a273340 | d888299a627fd4b61775d128435c0b0e6f5001c7 | refs/heads/master | 2021-01-12T10:48:47.145340 | 2016-11-06T02:18:09 | 2016-11-06T02:18:09 | 72,710,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ReferApp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"preethibaskar90@gmail.com"
] | preethibaskar90@gmail.com |
b99727124520efc1555a5d51225f48be9156a9ec | d8e4dece3a4c35c30ec6a90f6dc7bcf4ff43b4b4 | /searcher/server/query.py | 7e74d75d9f400b0199527b5f3e37b231f9a95987 | [] | no_license | wikty/MiniSearchEngine | c17160a9b65f462fa0690723aa860c6092dea97e | 63f7ef576f48b780fb8cf7fd3f6d955bc0037efd | refs/heads/master | 2021-01-13T02:44:39.591042 | 2018-09-13T06:40:47 | 2018-09-13T06:40:47 | 77,355,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from searcher.indexer.pipelines import Pipeline
from .ranker import rank
from .extractor import extract
def process(db, query):
[terms, _] = Pipeline.preprocess(query)
doc_info = db.get_doc_info(terms)
doc_list = rank(db, doc_info, terms)
return extract(doc_list) | [
"xiaowenbin_999@163.com"
] | xiaowenbin_999@163.com |
49c6f0b8a1e7e95ba13f0ae9a3eb23fcb4aa89c6 | bcb4adead20dd054a8a408037abe7a658fd7e631 | /UF3/calc.py | cc64540f83d9f58c6ca387a09cf0375ee353f4d8 | [] | no_license | nessx/Programacion-1 | 0b0e38621696dcaaaff3c26afe9e8f337fabcb75 | 2b32373e0455685201416b9b455cf3067f2823fa | refs/heads/master | 2023-03-25T13:13:34.283174 | 2021-03-19T23:01:49 | 2021-03-19T23:01:49 | 233,480,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #! /usr/bin/env python
# encoding: utf-8
import sys
import os
import math
def suma(num1,num2):
num1+=num2
return num1
def resta(num1,num2):
num1-=num2
return num1
def mult(num1,num2):
num1*=num2
return num1
def div(num1,num2):
num1/=num2
return num1
opc = ""
while opc != "0":
pr... | [
"cf17nestor.santana@iesjoandaustria.org"
] | cf17nestor.santana@iesjoandaustria.org |
aead48ff3d505783f0b9a2d0eb4d0d3131c26a05 | d3f41351d9068f631bf3d6953ba0f004191c3631 | /MBD_system/remove_duplicate.py | 5662cffcca9990eb88f714d19d00474718688dbd | [] | no_license | xupeiwust/DyS | 471c5c3757fccfd4553ff72194e1347b56a1553d | 5e6a54dee662206664dde022ccca372f966b1789 | refs/heads/master | 2022-03-01T05:10:31.118284 | 2018-02-28T16:57:13 | 2018-02-28T16:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | '''
Created on 9. mar. 2015
@author: lskrinjar
'''
import numpy as np
def remove_duplicate(nodes):
"""
Remove duplicate node vectors from matrix of nodes
Args:
nodes - a 2d array (or matrix) of nodes
Raises:
None
Returns:
unique_nodes - a 2d array (or matrix) of nodes wit... | [
"skrinjar.luka@gmail.com"
] | skrinjar.luka@gmail.com |
eae5c7e381d3463e30033e379a629f9d06f562cb | 1de66a8d0efb90cf7b8d461729f6f287d6b66346 | /MySocketExp/old_west_final/Game/Game/ClientControl.py | 073040f1795c4640469b236f198aa43cfd08f789 | [] | no_license | KhorAMus/course-project | ede14f3e67358267b92cc8fc3e47e1aff2ff4b55 | a3a99385639a410cf1b8a5da978f8ef6ba07c741 | refs/heads/master | 2021-01-20T22:23:47.843404 | 2016-06-22T15:20:58 | 2016-06-22T15:20:58 | 61,729,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | class ClientControl:
key_codes = {'w': '87',
'a': '65',
's': '83',
'd': '68'}
def __init__(self, shooter, client):
self.keys = {}
self.shooter = shooter
self.client = client
#libGDX Box2D
def press(self, key):
print("us... | [
"khoramus@yandex.ru"
] | khoramus@yandex.ru |
47b129f352e4fa6c43d2569a27328004ab5b8e7f | 9a6ff88fb3bf3f69ade803105ee9f401ef57b11f | /Lab. 9/Лаб.9 Завд. 2.py | 0003202d2b180beaab4707e490b9b8ca49bf1ebe | [] | no_license | IvanyukAndrew/Labs | 4647ce455742ed12a96bb132c48350e96ce636ee | 4c358ebb7072444229f161579f30d6080e7ba0b0 | refs/heads/main | 2023-02-05T10:48:41.189068 | 2021-01-03T09:18:41 | 2021-01-03T09:18:41 | 320,326,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | array_of_CookDict = []
def serch(choose, criterial):
if choose == 1:
for i in range(len(array_of_CookDict)):
if array_of_CookDict[i]["Name_of_dish"] == criterial:
print(array_of_CookDict[i])
if choose == 2:
for i in range(len(array_of_CookDict)):
... | [
"noreply@github.com"
] | IvanyukAndrew.noreply@github.com |
e2070525c866d5c13ea17979887ad320706aefe9 | b3e7a3d1e5d50af82b60e6d7b8afa4a077a040ad | /main2.py | 5f83b2d48ceebcd188e66f2ed0f7efb1c605281a | [] | no_license | Namenaro/cheini | d317fb0a6396bf038629490231a175c62e2e6011 | 3b14b58030d1f910265da8c1b859742149df4f6f | refs/heads/master | 2021-05-10T12:30:26.042569 | 2018-02-18T20:03:49 | 2018-02-18T20:03:49 | 118,442,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # -*- coding: utf-8 -*
import itertools
import one_experiment_report
import utils
import simple_nets
from math import floor, ceil
import matplotlib.pyplot as plt
import numpy as np
import os
import _pickle as pickle
from keras.callbacks import EarlyStopping
from keras.callbacks import TensorBoard
from keras import op... | [
"nanenaro@gmail.com"
] | nanenaro@gmail.com |
6f7095e9a5365184be1851ffbd1229da8d44bed7 | feb0b131af56e0e95d9808f5a92b0fc267a54d5a | /src/human_movement_identifier/classifier.py | 15be2acfc84865a7f7e956f93dae66b09addf0f0 | [] | no_license | ferdianjovan/human_movement_identifier | e5fdffc97dabd0250d129041bd3521e9ffb6d0ff | a73bf7a5f59139d9a98095f3d2f629f29002791f | refs/heads/master | 2020-06-04T22:18:14.216524 | 2015-03-20T06:21:27 | 2015-03-20T06:21:27 | 31,667,986 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,372 | py | #!/usr/bin/env python
import sys
import random
import rospy
import math
import pymongo
import pylab
import matplotlib.pyplot as plt
from collections import namedtuple
from mpl_toolkits.axes_grid.axislines import SubplotZero
from human_trajectory.trajectory import Trajectory
from geometry_msgs.msg import Point, Quatern... | [
"fxj345@cs.bham.ac.uk"
] | fxj345@cs.bham.ac.uk |
5b3b3aa4586919012b05a07fefa8087dd34de097 | d0d45247209d3eabc1cb6bc0b01a8c23f807820d | /tests/test_utility.py | 8c0fd5031a9c46032e233084a2dbabffcb1e5ae4 | [
"MIT"
] | permissive | yw5aj/trimesh | 2b102c5e265108ebd089023bb1c32b3217c35059 | f7dc490f7431ced7cc121369e96b9b2eeb17490d | refs/heads/master | 2021-01-20T03:25:26.772416 | 2017-04-27T16:15:10 | 2017-04-27T16:15:10 | 89,539,048 | 0 | 0 | null | 2017-04-27T00:37:43 | 2017-04-27T00:37:43 | null | UTF-8 | Python | false | false | 8,140 | py | import trimesh
import unittest
import logging
import time
import os
import sys
import inspect
import numpy as np
import json
from collections import deque
import generic as g
TEST_DIM = (100, 3)
TOL_ZERO = 1e-9
TOL_CHECK = 1e-2
log = logging.getLogger('trimesh')
log.addHandler(logging.NullHandler())
_QUICK = '-q' i... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
05ec4db57777e9607c55cd7a78b8bdf8c9c1c38a | 08a711031b12e75235b49b48d74069ae14ecf53a | /school_api/urls.py | 77e18e37a85402dd49688b9db004153d2ab0a384 | [] | no_license | dhivya-hub/old_django-assignment | 0b74ea94e070757fcce9518016e5b64b5da5086b | f647fac70e338871f990b89e3960ec3ca05a4858 | refs/heads/master | 2023-01-14T10:54:42.897946 | 2020-11-10T17:40:17 | 2020-11-10T17:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.urls import path
from .views import *
urlpatterns = [
path('', home, name='home'),
path('student/', student_detail, name='detail'),
path('teacher_update/<int:pk>/', teacher_update, name='update'),
path('teacher_detail/', teacher_detail, name='teacher'),
path('create/', CreateUserAPIVie... | [
"dhivyakrishnan@Dhivyas-MacBook-Air.local"
] | dhivyakrishnan@Dhivyas-MacBook-Air.local |
7938828e76d7687b0c2f5c59462e415ef42d7e42 | a91319cc56856499700b517da763f2143ba3fd26 | /scripts/manjaro.py | 6b7ef253936f35d629700ce8cc2630c10798ddf1 | [] | no_license | albertlincoln/dotfiles | d8fd11f53884197e0d2fe550dcd2af4ec1c52f61 | 41c027aa4748516fe285873c58cfde8416d54834 | refs/heads/master | 2021-06-05T12:23:40.516400 | 2021-04-29T11:42:41 | 2021-04-29T11:42:41 | 101,452,839 | 0 | 1 | null | 2019-11-29T22:41:34 | 2017-08-26T00:55:28 | Vim script | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python3
import sys
import os
import json
import argparse
from subprocess import call
parser = argparse.ArgumentParser(description='Process some packages.')
parser.add_argument('--file', required=False, default='packages.json',
help='a custom json file')
args = parser.parse_args()
... | [
"albert.lash@gmail.com"
] | albert.lash@gmail.com |
e516aab52cfdc48890b5e3c8aa32812a43a1a189 | c523eff326b8bc6c0c903bf7fe16ec3b98605bff | /AejiJeon/ThisIsCT/sortingProblem/안테나/24.py | f1de39b4fc188cf214333107ab773354d6c40b55 | [] | no_license | IgoAlgo/Problem-Solving | c76fc157c4dd2afeeb72a7e4a1833b730a0b441d | 5cc57d532b2887cf4eec8591dafc5ef611c3c409 | refs/heads/master | 2023-06-26T05:12:02.449706 | 2021-07-14T06:57:00 | 2021-07-14T06:57:00 | 328,959,557 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | n = int(input())
data = list(map(int, input().split()))
data.sort()
print(data[(n-1)//2])
| [
"aejijeon@DESKTOP-GJJ769O.localdomain"
] | aejijeon@DESKTOP-GJJ769O.localdomain |
63c0bda45a2d089fa1b76c00cf8722998a78e1cd | 7ae07277c259d645585d125827a1b34984216cde | /id_to_matrix.py | bd6d4e5e83e7b6c126b166e0fa98b6b14d4880a7 | [] | no_license | MonsieurTapir/fast-cfc | c523cf645ad8dd09b4023db0ac7d493100781868 | 4d135d9306db9d4b2da8823a588e11c72027a437 | refs/heads/master | 2020-03-20T19:32:31.676016 | 2018-06-28T16:18:30 | 2018-06-28T16:18:30 | 137,642,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import sys
if __name__ == "__main__":
if len(sys.argv)<3:
print("First argument: dimension")
print("Second argument: instance id")
exit(1)
dim=int(sys.argv[1])
inst=int(sys.argv[2])
size=(dim*(dim-1))/2
formatter='0'+str(int(size))+'b'
mat_string=format(inst,formatter)
... | [
"pollet@lirmm.fr"
] | pollet@lirmm.fr |
06005fb2c3ba90f593ed444f209cd6a808e3114b | 907cb7612ede31418997ce7b2813c9f2192e6a30 | /phase_cells/focal_evaluate/printout_network.py | a7d12f6f8ac0762947ad20ae88fc7d697979018f | [
"MIT"
] | permissive | shenghh2015/segmentation_models | c3a6f9f0a7fc2ac52d0d1f6b2beef1c69133bae2 | 473c528c724f62ff38ac127747dd8babb7de6b85 | refs/heads/master | 2023-08-14T05:52:36.290536 | 2021-10-19T03:02:46 | 2021-10-19T03:02:46 | 276,793,700 | 0 | 0 | null | 2020-07-03T02:57:39 | 2020-07-03T02:57:38 | null | UTF-8 | Python | false | false | 648 | py | import os
import sys
sys.path.append('../')
import segmentation_models as sm
from segmentation_models import Unet
os.environ["CUDA_VISIBLE_DEVICES"] = '1'
backbone = 'efficientnetb4'
model = Unet(backbone, input_shape = (736,736,3))
network_layers = model.layers
feature_layers = ['block6a_expand_activation', 'block4a... | [
"shenghh2015@gmail.com"
] | shenghh2015@gmail.com |
e1f53e9d9c414baf21fc8962f20c6b2c150b910c | ee45e6de7188d0cc961cf24085183c95c9e325f6 | /scraper/crawl_runner.py | 21adb00ca6f86122a9fba2106a9645e96dd3cf57 | [] | no_license | ersel/catching-falling-knives | 775339fe97893c403db46dd8119048b9e93c02cd | 77cd59f015e3d5b4a7a66a354b365117bb1d6293 | refs/heads/master | 2022-12-09T12:00:10.468345 | 2018-02-22T21:02:24 | 2018-02-22T21:02:24 | 121,079,713 | 2 | 0 | null | 2022-12-08T00:53:22 | 2018-02-11T03:22:43 | Python | UTF-8 | Python | false | false | 1,297 | py | # taken from https://stackoverflow.com/a/37270442/1124076
from scrapy import signals
from scrapy.crawler import CrawlerRunner
class MyCrawlerRunner(CrawlerRunner):
"""
Crawler object that collects items and returns output after finishing crawl.
"""
def crawl(self, crawler_or_spidercls, *args, **kwargs)... | [
"erselaker@gmail.com"
] | erselaker@gmail.com |
2bdfcc5083faff926e98630920724f687f0fda04 | 5fd31292a63ce10df8918dafa96ddae4092b3a4f | /server/manage.py | 8c20708b0b96ade7c72542bbf8d2dc444607c525 | [] | no_license | nagkumar91/masters_project | b6279b892ac6e721c669e9b5cd2e4580bc05b8ab | 94a999e73aed2da1a6e975d5bc9aa8bb7f4fe408 | refs/heads/master | 2021-01-10T06:55:47.599003 | 2016-04-20T22:36:29 | 2016-04-20T22:36:29 | 45,661,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "saferide.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@nagkumar.com"
] | me@nagkumar.com |
d7285d374c07a17aa751fce925cb59371bbdded4 | 605a05e9ea73648cb10e79ed4c0075671e4bc974 | /BeamPlot/Satpass.py | 803789768322d6c47dd23f76f8cf27d0ff171182 | [] | no_license | lishere/mwa_beam_measurement | 7872b9e0f978775d328df1b0675c75bc576aca88 | b4262fc835689aa19fdb84a2c027b848a0e90deb | refs/heads/master | 2021-06-21T13:52:06.047869 | 2017-08-22T12:13:21 | 2017-08-22T12:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,801 | py | #############################################################
################### SATELLITE PASSES ######################
#############################################################
import csv, ephem, numpy as np
from collections import namedtuple
from BeamPlot.TLE import TLE_config
from BeamPlot.Se... | [
"benjyman1024@gmail.com"
] | benjyman1024@gmail.com |
37c30cf51a0914c9689b287a43a9c935afd849a0 | cbb6c6244cb815ab5850aa23f08a7aacee8ff57b | /belt_exam/urls.py | 1f17dc1f2c3a8588ad03ec6249237b0a8da40db9 | [] | no_license | tehtertot/wishlist | 93bf2e2fca50c464822d8a9974d9053c4de51c8d | 38e2a10b362e1c92f9995fe54d911677da635adb | refs/heads/master | 2021-01-23T01:21:14.212459 | 2017-05-30T23:39:42 | 2017-05-30T23:39:42 | 92,867,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | """belt_exam URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"noelle.teh@gmail.com"
] | noelle.teh@gmail.com |
f56c695bb54f42f48fa411b078e127ed990ed482 | 9e68c9dc1cdbd3de4a86e2bfb7f08c0f3fbeebd8 | /shaw/18/sol.py | 179af80e74c17afd450e0a1bdbfed9c6bfbe2f6a | [
"MIT"
] | permissive | swong225/advent-of-code-2017 | 9e09fdf06cf05d3366dfbaf1fa43f01e61386ebb | 79cc548a33150f7dd5589a996258985892c1d3b6 | refs/heads/master | 2021-09-01T11:47:28.376128 | 2017-12-26T19:53:31 | 2017-12-26T19:53:31 | 113,112,747 | 0 | 0 | null | 2017-12-05T00:52:57 | 2017-12-05T00:52:56 | null | UTF-8 | Python | false | false | 4,232 | py | with open("input") as f:
lines = f.readlines()
regs = {}
code = []
# create registers and code
for line in lines:
inst = line.strip().split()
# for each param, try and change to int
# if it fails, it's a register name
for i in range(1, len(inst)):
try:
inst[i] = in... | [
"github@ballsandshaft.net"
] | github@ballsandshaft.net |
2eeb4a4b87fc3241161976de505becfb413273f1 | cb4aa4cab1fb3264c8a58cd1b1ae81600bed38fb | /src/test/test_search.py | 62e589adbe824ec97f7320aaf71b024678354389 | [] | no_license | fabigato/address_lookup | b3c9271612de061a66b3d7dc4101a8fe1326df2c | db88159eb15f18590070e8145468b1464c058fbe | refs/heads/main | 2023-05-19T12:08:12.087743 | 2021-06-10T13:47:21 | 2021-06-10T13:47:21 | 374,792,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | from deepdiff import DeepDiff # type: ignore
from unittest import TestCase
from app.util import Address
from app.search import query_db
class TestSearch(TestCase):
def test_query_db(self):
tests = [
"abaigar 4, navarra",
"calle josé maría 2, Pamplona",
"unexisting"
... | [
"fabian.guevara.melendez@dpgmedia.nl"
] | fabian.guevara.melendez@dpgmedia.nl |
28bb95097e2e572270acd99938a592bbc769272d | 123b437b8419a07282a79f8b0991f5bdb3523a9d | /tips 2.py | 5e64995c0af538d9c5c23d34ca32444613140648 | [] | no_license | carriegrossman/week_one | c27d7191381cda847e00042e005daf611ae6d935 | 9761bc0d1bd015874a460eb0bdedf7ab8c55883a | refs/heads/master | 2022-11-23T03:51:53.510383 | 2020-06-10T17:38:16 | 2020-06-10T17:38:16 | 269,654,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #ex2
bill_amount = 0
while bill_amount == 0:
try:
bill_amount = float(input("How much was the bill?\n"))
except ValueError:
print('You did not give a valid number.')
service_level = input("How was the service? Good, Fair, Bad\n")
#tip = 0
tip = bill_amount*.2
if service_level == "good":
ti... | [
"carriegrossman@Carries-MacBook-Pro.local"
] | carriegrossman@Carries-MacBook-Pro.local |
bae7db4680fc0354a644d46c840930244f86ed2a | b10b88230493c89cba76077c1593ca035dc1b2b2 | /NaiveBayes.py | 9f5ad4ad59fb08bd6f1e48faf2d160b51a257a07 | [] | no_license | rohandeb24/Text-Classification | ebea371bcd34a95375273ee41b5654251dec671e | 366a5622373f6f4dad4cfd47aab2203912d6c001 | refs/heads/master | 2020-03-23T18:27:06.333094 | 2018-07-22T16:21:58 | 2018-07-22T16:21:58 | 141,909,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import accuracy_score
import Data
x_train, x_test, y_train, y_test = Data.process()
vec1 = Data.tfidf(x_train)
x_train1 = vec1.transform(x_train)
model1 = MultinomialNB()
model1.fit(x_train1,y_train)
vec2 = Data.bag_of_words(x_train)
x_train2... | [
"noreply@github.com"
] | rohandeb24.noreply@github.com |
3a40a1e42f60c1c9f14a8869461d90cc62d7f560 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_rand_affine.py | 1e1a23bc0915f7025bb7fdc388ed9593b196b866 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 5,638 | py | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
f84368ce393ae46d76fceba737d6f61b44883dda | e9de9860f48eb2b96abdf8fd2facafe18248cf2b | /pasteleria_app/models.py | 40456361c2c6d7bd9369553510adfc6ee5520b75 | [] | no_license | josebernal321/api_basica_pasteleria | c148125c8c1f54cd1a1fc234051ccc8b03dc01ca | 2c624607e9666c4deed6fe741c47ad23802974e4 | refs/heads/main | 2023-06-23T14:57:33.401927 | 2021-07-28T04:58:51 | 2021-07-28T04:58:51 | 390,192,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Pasteles(models.Model):
id = models.AutoField(primary_key=True)
nombre = models.CharField(max_length=100)
descripcion = models.CharField(max_length=250)
dificultad = models.CharField(max_length=50)
fech... | [
"jose@pop-os.localdomain"
] | jose@pop-os.localdomain |
2fdb3dfb7bc74e4888d21e09f8b2150b787d0ab2 | b40a73ab5bba51ef15b272a08642bd091ee820b8 | /botostictactoe.py | 01aff5872f8b7a8fd7f86f390037839a2ce26cb2 | [] | no_license | Matyko/codecool | 1b82829c0a099487c77fad6914a05012926eccaf | 69e72c4f9307b9557767fab17bd44e92f0e67920 | refs/heads/master | 2021-01-10T22:53:48.025571 | 2016-12-06T10:46:15 | 2016-12-06T10:46:15 | 70,338,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,659 | py | import random
import os
#Lena and Matyi TicTacToe
board = [" "] * 10
winvalues = ([7, 8, 9], [4, 5, 6], [1, 2, 3], [7, 4, 1,], [8, 5, 2], [9, 6, 3], [7, 5, 3], [9, 5, 1])
playermove = 0
#Draws the table
def table():
print("\n")
print(board[7], "|", board[8], "|", board[9])
print("---------")
print(bo... | [
"nincs.matyas@gmail.com"
] | nincs.matyas@gmail.com |
a43db7b03f7c69fdc8431e4a0733ef8ede7afd24 | 31f422747ef95fff5b443b1489cfd3c893c0e623 | /HashWrapper.py | 0745f5dccbc54bcae88440b1ba684b1a0acbc657 | [] | no_license | jlp1701/fbHash | 50f745b24c7fc627195d4e62edbbd47aaba3aaa1 | c2c587e5f235a71996dbf2f66a94ad1ac9cb199e | refs/heads/master | 2022-11-26T11:20:04.493474 | 2020-07-30T08:02:36 | 2020-07-30T08:02:36 | 283,619,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | import os
import subprocess
import random
import re
import ssdeep
class HashWrapper(object):
"""docstring for HashWrapper"""
def __init__(self, path_bin, args_hash, args_compare, compare_regex):
super(HashWrapper, self).__init__()
self.path_bin = path_bin
self.args_hash = args_hash
... | [
"brunner.343@gmail.com"
] | brunner.343@gmail.com |
d99c64f3835d5a6f6e22da70c1a3608d401f8a9a | 764dca2d680311f1b08b124f2bac4e5a018ed103 | /DailyChallenge/2020/April/17.py | 20a03609fe5fe7763e59b9d16b662fcc3658b4ed | [] | no_license | mohithvegi/Leetcode | cae4a915e7ffcee69681791ab663eec769b2abb5 | 4273ad308f025579178dc177441b71c3053f0417 | refs/heads/main | 2023-06-05T14:58:30.926908 | 2021-06-24T17:40:53 | 2021-06-24T17:40:53 | 350,000,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # https://leetcode.com/explore/challenge/card/april-leetcoding-challenge-2021/595/week-3-april-15th-april-21st/3711/
class Solution:
def numSubmatrixSumTarget(self, matrix: List[List[int]], target: int) -> int:
rows, cols = len(matrix) + 1, len(matrix[0]) + 1
preSum = [[0] * cols for _ in range(ro... | [
"mohithvegi@gmail.com"
] | mohithvegi@gmail.com |
4d6aebe278852de65f0041f199223a3b0802050b | 4bb0b11893b5c80e77bef80f866fbee3ec77fdf9 | /moziotest/asgi.py | eb6b345e514e65dcc36e3a73ac3921d9a409a4c2 | [] | no_license | philaser/gistest | 23ea14729126584178c85847053b7debc59f9a74 | ff1d9554d8ef740a798153164f05e0f5197b2eab | refs/heads/main | 2023-07-17T09:57:31.585646 | 2021-08-03T05:34:43 | 2021-08-03T05:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for moziotest 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('DJANGO_SET... | [
"philemonjo@gmail.com"
] | philemonjo@gmail.com |
4290f33117641c516843aeaf64025823ad951026 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f8052e4261238ff6c93465b3f0d0f22457f127ce-<container_run>-fix.py | d32a173f5a709bd873f8aaaa81b4fc29a4a7aeb0 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | def container_run(platform: str, nvidia_runtime: bool, docker_registry: str, shared_memory_size: str, local_ccache_dir: str, command: List[str], cleanup: Cleanup, dry_run: bool=False) -> int:
'Run command in a container'
container_wait_s = 600
environment = {
'CCACHE_MAXSIZE': '500G',
'CCACH... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.