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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2e7773d9265fed85bc1657e7b3f54bf72cd654d | 231f2dca688c2b1690ea23be467d035a9f38223a | /metadata/model.py | 39bd5af740f361f1b9da0f8963e2b350527bb8cc | [] | no_license | peternortonuk/projects | f525bc9717b1c7d81156cdfe7f4164dd826618a2 | 29c6ac829952f8fedb05935bebddc60d0bb7adb9 | refs/heads/master | 2021-08-22T13:03:31.503001 | 2021-07-21T15:33:12 | 2021-07-21T15:33:12 | 147,948,752 | 0 | 1 | null | 2021-06-14T13:28:25 | 2018-09-08T16:06:17 | Python | UTF-8 | Python | false | false | 503 | py | from __future__ import unicode_literals, print_function
from atom.api import Atom, List, Int, observe
import enaml
from enaml.qt.qt_application import QtApplication
class Metadata(Atom):
curve_id = Int()
attributes = List()
def main():
with enaml.imports():
from view import MetaDataView
curv... | [
"peter.norton@gazprom-mt.com"
] | peter.norton@gazprom-mt.com |
28e61427879ca0fe867f77ca8c925cb1d322851b | 8b0991e44dc5e10dc361bfa6afaad600fe04a212 | /modules/reactor/reactions.py | 11e8123378524674869ba99268ccb5e7ec603ecb | [] | no_license | Cubiss/discord_bot | f3fd52eed075434bdd22de8e3ce1cdc42e0ba592 | 08686e067c4f9e0d2dc15c2c710c4eaf68694704 | refs/heads/master | 2023-06-24T08:37:32.900290 | 2023-06-11T22:20:50 | 2023-06-11T22:20:50 | 187,587,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from classes.entity import Entity, EntityItem, Column
import sqlite3
import datetime
class Reactions(Entity):
def __init__(self, db: sqlite3.Connection):
super().__init__(db,
"Reactor",
[Column('ID', int, nullable=False, primary_key=True, auto_increment=Tr... | [
"solin.jakub@gmail.com"
] | solin.jakub@gmail.com |
f5007ffa39258aef482e33fb6f05392ebada382d | d85fbf635ae8991bd582888d3ab95f436f81187f | /lib/ult/vcoco_diagnose.py | dd276e9215a1369fbbca14cf4aacab069eb7cbd5 | [
"MIT"
] | permissive | issac8huxleg/iCAN | 72cd1703b9d08ad9d4dced28b647617c9fb08d50 | dc95e334f341a610813f1bbd8deafd99f5c0253d | refs/heads/master | 2020-03-27T17:28:13.596579 | 2018-08-31T00:23:36 | 2018-08-31T00:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,797 | py | # AUTORIGHTS
# ---------------------------------------------------------
# Copyright (c) 2017, Saurabh Gupta
#
# This file is part of the VCOCO dataset hooks and is available
# under the terms of the Simplified BSD License provided in
# LICENSE. Please retain this notice and LICENSE if you use
# this file (or any ... | [
"gaochen315@gmail.com"
] | gaochen315@gmail.com |
bfb5f46ecdf6fdd6cb6130db410bc9e8959f3a84 | 34bf67017440fe47658559f91fe153c153a359f4 | /150.py | e06cd68c244078e41d68a49e8dfabaa9969b2e62 | [] | no_license | KevinWangTHU/LeetCode | 1be5f8f1ab587eea5365abb940785c9fe26f5214 | a7916e0818b0853ec75e24724bde94c49234c7dc | refs/heads/master | 2021-05-04T10:16:26.666260 | 2017-08-09T04:17:12 | 2017-08-09T04:18:49 | 53,427,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
stack = []
for c in tokens:
if c in "+-*/":
b = stack.pop()
a = stack.pop()
if c == "+":
stac... | [
"KevinWangTHU@gmail.com"
] | KevinWangTHU@gmail.com |
3a38ab9548c6903b0635947c7a3563676b080554 | d8ec574895259179e644281782f96578068cde59 | /df_goods/views.py | 1c721d8f9df6d7be3f90d30bb3935d81eccb105d | [] | no_license | zhenglihui007/djangolianxi | bcdc878854ffa4524ace7f03d8fd9b6e17b0bc7a | 98b7bcf42cbe9d93ff5b4784c6a84707b4caa1f8 | refs/heads/master | 2020-03-29T16:10:29.565775 | 2018-09-24T12:48:45 | 2018-09-24T12:48:45 | 150,101,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,982 | py | from django.shortcuts import render
from .models import *
from django.core.paginator import Paginator
# 主页
def index(request):
"""
index函数负责查询页面中需要展示的商品内容,
主要是每类最新的4种商品和4中点击率最高的商品,
每类商品需要查询2次
"""
count = request.session.get('count')
fruit = GoodsInfo.objects.filter(gtype__id=6)... | [
"695408566@qq.com"
] | 695408566@qq.com |
c0842d41794965ae90e16e12027140df0fc36516 | 4b2450b65f5802f524ddb8701baa0e71c929889b | /tuple.py | 823939b2e562231311ac67244932724f7b3b8ffa | [] | no_license | joedave1/python | 21e89dd0638156a3600bfb7fbf7422c73a79fc51 | ae51152a663aa2e512c5be7f6134c4b35d78e88d | refs/heads/master | 2020-06-29T11:22:05.627400 | 2019-08-16T08:51:14 | 2019-08-16T08:51:14 | 200,520,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | tuplex=input("enter the values ").split(",")
tup=tuple(tuplex)
print(tup)
a=int(input("enter the location "))
print(tup[a])
| [
"noreply@github.com"
] | joedave1.noreply@github.com |
7bebdced4f0b553045fdc19a3922805cfcdb4f5d | 4b3dab00da26675eb3eeedd87707d4dafd440f9c | /recipe_fio_aging_comparator/image.py | 3e7aab0155b14098d95ad288fcc0e3a915b53372 | [] | no_license | spetrovi/thesis | d4b5234b1191124650b4112e9279f647407ecb2a | 062b356efe14d376976a00fdbf9f92862baf394e | refs/heads/master | 2020-12-20T23:47:31.476635 | 2017-05-29T07:45:51 | 2017-05-29T07:45:51 | 40,310,459 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | import free_space_frag as fsf
import glob
from random import randint
def read_file(_file, op):
f = open(_file,op)
s = f.read()
f.close()
return s
def tr(val):
if val.find('i') >= 0:
suf = val[-3:]
val = int(val.split('-')[0][:-3])
else:
suf = val[-1:]
val = int(val.split('-')[0][:-1])
if suf.find('K') ... | [
"spetrovi@redhat.com"
] | spetrovi@redhat.com |
38f44da197420d879fc5d5e663f1ba9656c8ff3a | 6f0af0259ebb33bde4c15ee50b28025f74bf8b08 | /lesson5/task3/if_statement.py | 9c4d1e40499e178efa5a038f79b8a61e6304c619 | [] | no_license | passlonis/SUMMER_BOOTCAMP_2018_Python | 05c9125b1b1645a62fad40321a6b06469433cda0 | fe48298efabb16d54e4869cfb7c9b93ee3217fd4 | refs/heads/master | 2021-09-06T14:43:45.273006 | 2018-02-07T17:38:24 | 2018-02-07T17:38:24 | 119,430,976 | 0 | 0 | null | 2018-01-29T19:32:48 | 2018-01-29T19:32:48 | null | UTF-8 | Python | false | false | 874 | py | """
La palabra reservada if se usa para formar una instruccion condicional
que ejecuta algun codigo
especificado despues de verificar si su expresion es True.
Python usa indentacion para definir bloques de codigo.
"""
print("::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::")
name = "John"
age = 17
if nam... | [
"passlonis@hotmail.com"
] | passlonis@hotmail.com |
b284b019485d89e8d8b321e7650a3c146d3e3b5c | a9ce90c1cfec804f7b1af02d3dfd1adc22dc48f0 | /mysite/mysite/settings.py | 74746d25770f0948bf48cb4e1dcb5d6918dfb882 | [] | no_license | tejksat/django-tutorial-app | 27f9bd14744e3b1c8f2b7c6493bcb0373ddd1f24 | 9504eaa48586b8e8df11909d9aa31a86799f547c | refs/heads/master | 2022-12-20T08:15:17.529004 | 2020-09-21T08:55:54 | 2020-09-21T08:55:54 | 297,277,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"Alexander.Koshevoy@jetbrains.com"
] | Alexander.Koshevoy@jetbrains.com |
eea3717e170b2c3269b11a3c59a00d878666df77 | 74d1b81f220f3320b83b252b446b2db0e4a7905a | /menu_manager/settings.py | 5ef25e944bb618fc3bba9018bb88e589b3ebb6cd | [] | no_license | codejasz/emenu | c2d85c707e442a1cc536e68c567d215a1502bd9c | 770e0559758140d10580b2617853265a8099503e | refs/heads/master | 2023-03-24T17:22:18.521256 | 2021-03-13T13:56:00 | 2021-03-13T13:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | """
Django settings for menu_manager project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"adrian.kodjasz@gmail.com"
] | adrian.kodjasz@gmail.com |
a081bb8cb3ab13b0bfabc885921a8c8896e257f9 | a67c77720e270e70add2f8adaa2fb4b27ea43416 | /segmentation/model_305153142.py | f3aba997883b9efea799ed1884d9a4ebd709ce5d | [] | no_license | petrama/diplomski | 901a7b5f15a0e0f42746fcb727e4251666c1a8e2 | da6d77ad4a415a377ddf126311b640f61e38f297 | refs/heads/master | 2021-06-19T05:23:25.259712 | 2017-07-17T19:51:28 | 2017-07-17T19:51:28 | 97,515,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,636 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
from model_helper import read_vgg_init
import losses
FLAGS = tf.app.flags.FLAGS
def total_loss_sum(losses):
# Assemble all of the losses for the current tower only.
# Calculate the total loss for the current tower.
regularization_losses... | [
"petra.marce@gmail.com"
] | petra.marce@gmail.com |
80338a31f9a035ae8ce994b2933a16956197f272 | c5cad31bfc771d3261d1eead8e31856c19eb5e74 | /publishTool/treeDrag_test3.py | 96c3522a302df8e4e789c41a03f4afe63e02c445 | [] | no_license | alpha0080/mayaTool | 61b649825d85b88de2d24e9260e23f5c5aa559cb | 153da6e987d13fb7311ee55a2a3e635bc8c7afde | refs/heads/master | 2021-01-19T11:52:03.715437 | 2018-05-07T10:30:23 | 2018-05-07T10:30:23 | 88,001,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,834 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:/alphaOnly/github/mayaTool/publishTool/treeDrag_test.ui'
#
# Created: Tue Sep 26 10:42:52 2017
# by: pyside2-uic running on PySide2 2.0.0~alpha0
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore, Qt... | [
"alpha@mail.chungyo.net"
] | alpha@mail.chungyo.net |
d7cd9767b1cab8dbbc155381145988de64bd8bda | 0fb0ae31119aeed77529a08f41390c46a2384093 | /datasets/data_configs.py | 8e856b310ad8900834eb17b1bff7bf45d58e1410 | [
"MIT"
] | permissive | templeblock/TF_Slim_Framework | 5a8710c717c16a4c4ef493cfe98641ffae5aa189 | 46c9cf8da258b9b9abfd780965548add70c2d268 | refs/heads/master | 2020-05-09T12:48:05.678347 | 2019-04-11T15:37:14 | 2019-04-11T15:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | class DatasetConfig():
def __init__(self, file_pattern, split_sizes):
self.file_pattern = file_pattern
self.split_sizes = split_sizes
icdar2013 = DatasetConfig(
file_pattern = '*_%s.tfrecord',
split_sizes = {
'train': 229,
'test': 233
}
)
icdar2015 =... | [
"546043882@qq.com"
] | 546043882@qq.com |
244cefbda8f2204ebdf6393288d58ecfef864398 | 805db436ed08bc263839f926b2ff065bdbef5d31 | /1-Basics/4-Repetition/02-For-Loop/05-Reverse/bot.py | d825eb68ed2196618f060d6306c5ecd006457a25 | [] | no_license | 4angua71/Com404 | 7e152d16c7f3d0591d5e068d58b463f36cb24c53 | e467cc31c3e14a49ff183c69723d7c42bf6a0445 | refs/heads/master | 2020-07-31T09:14:05.386679 | 2019-12-03T12:17:50 | 2019-12-03T12:17:50 | 210,556,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py |
user_word = str(input("What phrase do you see?"))
print("Reversing...\n")
print("The Phrase is: ",end="")
for position in range(len(user_word)-1, -1, -1):
print(user_word[position],end="")
print() | [
"4angua71@solent.ac.uk"
] | 4angua71@solent.ac.uk |
9c4e33b32a95d44e7d7ca4298866cc4c147abce9 | 90b2dd2feba8c080378d3a8c40cbe4dd43f0e6ee | /bsp/bsp_moj.py | f53e8434995f6e359f20b3e74c033050fb7e631f | [] | no_license | Doireidh/DungeonGen | d05bfbb1f1b2df5aa3462a45c3081f22e9a99cdf | 86b92570a9e8e6545886131380dbb370ff1ef6e2 | refs/heads/master | 2021-01-21T19:51:49.721922 | 2017-06-07T10:39:20 | 2017-06-07T10:39:20 | 92,170,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | # -*- coding: UTF-8 -*-
import random
import time
from itertools import chain
class leaf():
MIN_LEAF_SIZE = 80
MAX_DEPTH = 5
def __init__(self, origin, width, height, depth = 1):
self.x, self.y = origin
self.height = height
self.width = width
self.l = None
self.r = None
self.depth = depth
self.room ... | [
"djoletaien@gmail.com"
] | djoletaien@gmail.com |
683aa5e2ae120f865163cdfa0014eb79dcc3b0b3 | a66937154323988a6e05958ca1acc9c3f70af51c | /dia3/3numbers.py | 8e18178c0eab02ede843ebcf882fc767ad7bddcd | [] | no_license | mariadelmarr/Python | f783ec4232e3ca09e1598a2f419169df3890e8ef | 07b76ea80d24dbedc7b3bcb734b234ce88bce6f6 | refs/heads/master | 2022-12-05T14:49:49.598249 | 2020-08-01T03:13:33 | 2020-08-01T03:13:33 | 262,640,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | number1 = int(input('Ingrese el primer numero. '))
number2 = int(input('Ingrese el segundo numero. '))
number3 = int(input('Ingrese el tercer numero. '))
if number1 > number2:
if number1 > number3:
print('El primer numero es mayor')
else:
print('El tercer numero es mayor')
else:
if number2 ... | [
"maria1.22dm@gmail.com"
] | maria1.22dm@gmail.com |
87e8ff2c23fba05bd5e8ab680a87c994fce96645 | 06fa646a51a30e07203352c2fc60cea64e798d0a | /practice9.py | aab2de86fa956989be143fa3f7d615e08721bbcc | [] | no_license | maciejpajkowski/python-training | e48f60240357199ecc4a69b54a1a4c11d0e1e8a2 | ad95f31857e9035f1b53a5486381ff7b53544645 | refs/heads/master | 2020-03-28T20:05:47.450060 | 2018-10-12T13:32:42 | 2018-10-12T13:32:42 | 149,038,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # https://www.practicepython.org/exercise/2014/04/02/09-guessing-game-one.html
import random
import os
def clear():
os.system('cls' if os.name=='nt' else 'clear')
clear()
print("Welcome to the number guessing game!")
print("------------------------------------")
tries = 0
while True:
if tries is 0:
n... | [
"32037952+maciejpajkowski@users.noreply.github.com"
] | 32037952+maciejpajkowski@users.noreply.github.com |
e011acb2a124eea64a9f2578db61d929b87c7b5f | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /SWEA/모의문제/벽돌 깨기.py | b7a3377810ef044255053ef97963de47f9b49836 | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import sys
sys.stdin = open('벽돌 깨기.txt', 'r')
from copy import deepcopy
from collections import deque
def chk(matrix, n, cnt):
global ans
if cnt == 0:
ans = 0
return
if n == N:
cnt = 0
for i in matrix:
cnt += W - i.count(0)
ans = min(cnt, ans)
re... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
7b40d06cd25c05ce2cb560e0219372a7fef2e0a7 | 945aa2cd771d1f7daf2218ba3acac2f34dd4114a | /util/pwncheck.py | 50dadbbf625d8eccf0a57ca58c70cd7ffe616cab | [
"MIT"
] | permissive | ghsinfosec/pwncheck-flask | 24c32750494e10c5dc03bf71dfa4bfa8b4ed4743 | 158c7128fee408bd97b132e0cf0ff1a50f25f583 | refs/heads/master | 2023-08-22T11:07:10.708896 | 2021-09-29T19:24:29 | 2021-09-29T19:24:29 | 411,006,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import hashlib
import requests
def pwncheck(password):
# get the sha1 hash of submitted pw
sha1 = hashlib.sha1(password.encode('utf-8'))
pw_hash = sha1.hexdigest().upper() # convert to upper case
prefix = pw_hash[0:5] # necessary for the api, ref above
url = f'https://api.pwnedpasswords.com/ran... | [
"heath.stewart1@gmail.com"
] | heath.stewart1@gmail.com |
9511317e7351349a784222017a0f118e2414330e | 153b9f3fd7994747978e5e03cd49930f5bb694ea | /recipeproject/urls.py | c73d3ffa5a529e4112b986cdc775cd24f1606c04 | [] | no_license | hartnetl/lord-of-the-recipes | 6153bc081bcf97a8e4017d3c81c31bfd28b2ab43 | 38628dcf21968bae6db2923e1d155e9ee4467e73 | refs/heads/main | 2023-09-05T08:31:03.829261 | 2021-11-02T11:53:53 | 2021-11-02T11:53:53 | 415,848,829 | 0 | 2 | null | 2021-10-15T10:45:37 | 2021-10-11T08:53:49 | Python | UTF-8 | Python | false | false | 989 | py | """recipeproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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... | [
"laura.hartnett@outlook.com"
] | laura.hartnett@outlook.com |
b02c518a46b33bf006790e9b15e644866c155642 | a7ccf8dd608646a6abd0e6b78d35ae23fafb920d | /robot.py | 776a5e6240efabfd5468c60ddce530e5c35c2ca2 | [
"BSD-2-Clause"
] | permissive | QinjieLin-NU/Visual-Push-Grasp | 1b9d0297f0ac67416bbc7a36ddc6b2fcefce80e8 | 93a959fa45b80b407baa72c5c5d68e1fb07a255f | refs/heads/master | 2022-12-21T20:37:24.518248 | 2020-09-21T00:06:59 | 2020-09-21T00:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,434 | py | import socket
import select
import struct
import time
import os
import numpy as np
import utils
from simulation import vrep
class Robot(object):
def __init__(self, is_sim, obj_mesh_dir, num_obj, workspace_limits,
tcp_host_ip, tcp_port, rtc_host_ip, rtc_port,
is_testing, test_prese... | [
"qinjielin2018@u.northwestern.edu"
] | qinjielin2018@u.northwestern.edu |
fb3a4f022d9c577cdc0450c21233f475b207d0f5 | 3d238bcd230dcf8ede2b6d93a6bae426d44fc438 | /model.py | 0653f8f7882f1d93b1f97b789b26b6633fa437bf | [] | no_license | hamzaelanssari/XOR-Problem | 6f79ef21fb9ed709dfff801014b0e2e987f7f19d | 08e3f01fbb07d218681c7b7099654161782c0eb1 | refs/heads/main | 2023-03-05T05:01:36.453581 | 2021-02-10T16:08:23 | 2021-02-10T16:08:23 | 337,770,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,760 | py | import numpy as np
from sklearn.metrics import confusion_matrix, f1_score, recall_score, precision_score, accuracy_score
from leaky_relu import leaky_relu
from relu import relu
from sigmoid import sigmoid
from sign import sign
from softmax import softmax
from step import step
from tanh import tanh
''' MultiLayerNN Cl... | [
"elanssarihamza@gmail.com"
] | elanssarihamza@gmail.com |
77b3624d8526e4ef07358cac1da8fe1215ecf7f2 | d6d30580241c1ae081d5744785ee6e71eeb38e7e | /Varnit/urls.py | 99739e8bfb58a719a3f09a3faa410306569f4df0 | [] | no_license | Varun-Sam/Django_rest_basic | 71c3f0329496d9636cb6edb86ec5448dd64e7d50 | 72751fe9c235dde392b7b16a2192fc2c8d6f5716 | refs/heads/main | 2023-03-20T08:10:48.416173 | 2021-03-12T12:55:33 | 2021-03-12T12:55:33 | 347,065,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from django.urls import path, include
from posts import views
urlpatterns = [
path('admin/', admin.site.urls),
path('api/posts', views.PostList.as_view()),
path('api/posts/<int:pk>', views.PostRetrieveDestroy.as_view()),
path('api/posts/<int:pk>/vote', views.VoteCreate.... | [
"varunsam9900@gmail.com"
] | varunsam9900@gmail.com |
d1a4b7c8435c09dd195a6f429c1a2e09a0089e14 | 0fde65201e7a853a9c8c599acc2201c50223bed7 | /file_read_write/read_xml.py | cb5441f44f492c5852804e4bab6974749a6169a0 | [] | no_license | coryeleven/learn_python | 4fb1818093427332835cb74f277041902091fa5c | d5d303c1d9dae54cca6a716f285484f7ec3e0c4d | refs/heads/master | 2023-07-12T06:48:24.447528 | 2021-08-24T08:36:57 | 2021-08-24T08:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import xml.sax
class MenuHandler(xml.sax.ContentHandler):
def __init__(self):
self.CurrentDate = ""
self.name = ""
self.price = ""
self.description = ""
self.calories = ""
def startElement(self,tag,attributes):
if tag == "breakfast_menu":
print("这是一个... | [
"coryeleven@gmail.com"
] | coryeleven@gmail.com |
0eda24f9c8ef5263c0629852ddd731e0c7123d59 | 4066aa884c79854d31f1b8acab56f2262ca9a936 | /mypython.py | a57a735db5fdafac4f079128bdd3764fc11024da | [] | no_license | atingupta2005/practice_1 | 1be5f0db848aa03d776a7f95f5894c40a32ed365 | 8b4c72665333c3231b1e731c55329150fcc919fd | refs/heads/main | 2022-12-20T11:04:02.437258 | 2020-10-06T04:48:36 | 2020-10-06T04:48:36 | 301,612,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | print("Hello World - v7")
print("It's Me")
print("Hello World - v6")
print("It's Me")
print("My another hello 1") | [
"atingupta2005@gmail.com"
] | atingupta2005@gmail.com |
b2e6ba7b932bbc26515ee5ba1b2b6011c99c011b | a76cd3e9e90cc835e5937d66e5e6ec9a2e64b9c9 | /src/match.py | c915d13b486564fd1c74b4ff869ce704ecc394f1 | [
"MIT"
] | permissive | cgmv123/CS-534 | 0b7e0b3a81ca370cb5169b7fad3470f241be62b0 | 32c13454eb8b7fc7b5c733eae5d4144805671544 | refs/heads/master | 2020-03-29T07:45:05.165180 | 2018-12-13T18:39:50 | 2018-12-13T18:39:50 | 149,677,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import numpy as np
import cv2
REPROJ_THRESH = 4
RATIO = .75
def get_matches(lkp, rkp, Lfeatures, Rfeatures):
matcher = cv2.DescriptorMatcher_create("BruteForce")
rawMatches = matcher.knnMatch(Lfeatures, Rfeatures, 2)
matches = []
for m in rawMatches:
if len(m) == 2 and m[0].distance < m[1].di... | [
"jasonmohoney@gmail.com"
] | jasonmohoney@gmail.com |
267b05aca90dd4a5b14ed14a893605455e9c1816 | dba783d28d233ff9885235663ddcbc97a3bcf209 | /preambles.py | a26352550aec5e7a9e806c67f8af834fd6e78986 | [] | no_license | micaleel/explanations | 7b2e49a4c5032b2d3cd71620267b4d5c9d356e13 | 0d4821e6af217b1b4ce300fb1a984789f522e7fe | refs/heads/master | 2021-06-19T20:10:25.018679 | 2017-07-12T16:27:35 | 2017-07-12T16:27:35 | 76,404,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import os
import logging
from glob import glob
from pprint import pprint
import pandas as pd
import numpy as np
from scipy import stats
import matplotlib as mpl
from IPython.display import display, set_matplotlib_formats
import matplotlib.pyplot as plt
LOG_FORMAT = '[%(asctime)s] %(levelname)s: %(message)s \n\t%(modul... | [
"micaleel@gmail.com"
] | micaleel@gmail.com |
470b4a3e314832b2df1c3c664a216cdd98694203 | 32e85c664d2fd2eae8a21f5bb9f44e328f20ea74 | /ozonesondes_ndacc_ObsPack_plotoutput_v2.py | 124e5ab168a4ee39fddf383bec3916a8b7da993d | [] | no_license | rgryan92/UCL | 87e930dc8e716ea5f688c7baac986e3c8a79626d | 428e87e98827b5ee9c19d075621d0b22402081b4 | refs/heads/main | 2023-04-02T03:24:09.484969 | 2021-04-14T16:32:57 | 2021-04-14T16:32:57 | 323,225,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,437 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 8 11:33:24 2020
@author: rgryan
"""
import pandas as pd
from netCDF4 import Dataset
import matplotlib.pyplot as plt
import glob
## Path to ozonesondes
path = '/Volumes/GoogleDrive/My Drive/Documents/Postdoc/rockets/'
osp = path+'ozonesondes/ndacc... | [
"noreply@github.com"
] | rgryan92.noreply@github.com |
5613ca4e8a5bcecfff6560fcc92ef64b58fdb49d | 5d97fcb1fffff6837e943c3b50353090531158b5 | /ipToSenseHATBinary.py | 9cc0e3079b37806de5b08b5f635bdfc6e4706df8 | [] | no_license | FrogletApps/Pi_IP_To_Sense_HAT | be818f5adec5f1fa92ee97f538b17de6088504a8 | 68ee9855345bf769359c9b639b98cd8bd9ffa1a0 | refs/heads/master | 2021-10-21T11:32:13.203520 | 2021-10-19T17:45:17 | 2021-10-19T17:45:17 | 121,801,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import socket
import time
from sense_hat import SenseHat
sense = SenseHat()
ipArray = []
ipBinary = []
# Create the binary digits, dot and blank
#Power of the LED (between 0 and 255)
P = 255
# G = Green, R = Red, B = Blue, N = off
G = [0,P,0]
R = [P,0,0]
B = [0,0,P]
N = [0,0... | [
"james_pearson@outlook.com"
] | james_pearson@outlook.com |
a4ce18bccfb3dd46c680d0f8683373cba42c5757 | 7f8b1ddd8894592f514ddb7b818880cb27bf5697 | /range.py | c7d364d6b4572833c2d18872de8bb8699836b437 | [] | no_license | code-with-Aravind/Python | f4642ae3ce6ab735562ee7cdcf5b19670e0d7085 | dbdbdb92e4c5083779d1fffd3ec6a61e9f945882 | refs/heads/main | 2023-07-31T23:17:39.234882 | 2021-09-07T04:06:57 | 2021-09-07T04:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | '#'"This program is used to check the no is there in range(0-200)"
x: int = int(input("Enter a number from 0-2000 : "))
if x > 0 or x >= 2000:
print(bool(x))
else:
print(bool())
| [
"noreply@github.com"
] | code-with-Aravind.noreply@github.com |
cb6868cba60e06c785107f454989117d7090dced | 3ee1ba0ffdd8f478c261233c1e38783aec1faf4e | /data.py | 292ac1940780d927584a6cccc0074c5f6c1983d4 | [] | no_license | Wispik/salesfinder_admin | a65b666010c32325319800fc343e1e8f0e5f2819 | 3250f204b16050bc9279520222f6e58d492677a7 | refs/heads/master | 2023-07-23T07:09:13.317680 | 2021-09-03T09:16:09 | 2021-09-03T09:16:09 | 402,712,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | catalog_items = [
{
'c_name': 'Женщинам',
'c_id': 1,
'c_has_product':0
},
{
'c_name': 'Бытовая техника',
'c_id': 2,
'c_has_product':0
... | [
"wispik71@yandex.ru"
] | wispik71@yandex.ru |
c0877e9a0ede9a94b1a0f1346969e05be4a567a3 | 20ec676e682da3155ba76d6c45b4109f2e7044bb | /Lab7/lab7assignmentEvenstad.py | e56bafdc35cd1097c88d460ddcd45bc7ce4fedd6 | [] | no_license | ryane22/CS160 | 159e50ff9751a2f74796cbb85d8a88bed07b1106 | 785a28f3c1c09aeaa09a00ef9df2f2fda9feae86 | refs/heads/master | 2016-09-08T01:55:57.694357 | 2014-02-04T03:04:33 | 2014-02-04T03:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | #need things in (here)
def menuChoice():
choice = raw_input("Enter your choice: ")
if choice == "s" or choice == "o" or choice == "n" or choice == "a":
return choice
def confirm():
areYouSure = raw_input("Are you sure you want to choose", choice + "(yes or no):")
areYouSure = areYouSure.strip(... | [
"ryan.evenstad22@gmail.com"
] | ryan.evenstad22@gmail.com |
c5d36dfa0ef5a51485fc9cdfad31cd0cf1297aa1 | fe2d6311f38922633eba5f0dfb7c3f23b5fa14fc | /blogproject/blog/migrations/0001_initial.py | 9602aa268363bf0302f0b2684e543b016bc64972 | [] | no_license | sakura1357/django-blog-learning | ec4a38a5bc69e184c8d954dcb5293a67e0f3c283 | 6490f021a8fd748165aeb0ee5b53a3369b1f4b97 | refs/heads/master | 2020-12-10T03:25:24.680467 | 2017-08-01T08:36:50 | 2017-08-01T08:36:50 | 95,524,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-21 02:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"sakura1357@126.com"
] | sakura1357@126.com |
41dffe4b35b7d4e2173df0741091741647a618b5 | 4a30357a12371e20817968ee1e66ffb294fdd41d | /django_admin_rq/models.py | 40517f280240075151408475736849bb677a210b | [
"MIT"
] | permissive | Proper-Job/django-admin-rq | 42ddade8ce61ed7beeb2b100ffc4e8e63244f7a3 | ca7c62ada8f20de9e4635486d6ba5299d5514e8b | refs/heads/master | 2021-01-01T05:43:32.834250 | 2017-11-02T13:15:40 | 2017-11-02T13:15:40 | 56,675,158 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import uuid
from django.core.urlresolvers import reverse
from django.db import models
from django.utils import six
from django.utils.six import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
STATUS_QUEUED = 'QUEUED'... | [
"moritz.pfeiffer@alp-phone.ch"
] | moritz.pfeiffer@alp-phone.ch |
fb9d79f2cad9fe16907f5b71389cc6c45915d5ba | 32fc5355d73a5098140ca404b139bde7434de947 | /LGTK.py | 745d43ac92b76bda63e4705bfa7149168ec4d7e1 | [] | no_license | Mreza-84/stiran | 1516b20df613e6d15793768190d4321d02e553e1 | b08c5609ce1bd38ef5f08951e50444e6f7db982d | refs/heads/master | 2020-09-25T21:56:41.924997 | 2019-12-05T12:54:28 | 2019-12-05T12:54:28 | 226,097,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | '''
for change byte format to str we can use :
str.encode("str")
'''
from tkinter import *
import dbm
import pickle
import os
def Login ():
#Tk
Sc.destroy()
Ls = Tk()
Ls.resizable(0, 0)
Ls.geometry("500x500")
Ls.title("STIRAN")
Ls.configure(background='black')
Label(Ls,... | [
"noreply@github.com"
] | Mreza-84.noreply@github.com |
78e042f96edcae4e0a847c8e8e83cd9fc8227a79 | 9a5f3bf9bb9dcbc8d827a7cadb4be282f96fda66 | /tools/wafcheck/wafw00f/plugins/wzb360.py | 2c06013deda04f4061c938724877b157b7a227b2 | [] | no_license | M3g4Byt3/AUTO-EARN | 484a6d30204f8d7db235730ca0fcde6d0b608025 | 0ae4a5a670a3cfd9a06bf2ee2fa3675348789139 | refs/heads/master | 2022-08-29T14:54:09.849417 | 2020-05-25T14:20:15 | 2020-05-25T14:20:15 | 270,321,724 | 1 | 0 | null | 2020-06-07T13:54:12 | 2020-06-07T13:54:12 | null | UTF-8 | Python | false | false | 409 | py | #!/usr/bin/env python
NAME = '360WangZhanBao (360 Technologies)'
def is_waf(self):
if self.matchheader(('X-Powered-By-360WZB', '.+')):
return True
for attack in self.attacks:
r = attack(self)
if r is None:
return
response, responsepage = r
if response.stat... | [
"394103765@qq.com"
] | 394103765@qq.com |
eee5d28a6868969b487511275ba079d06d1b2115 | 1b0a583725122fdecb444b19c69193043e291a12 | /lib/tests/streamlit/text_input_test.py | c269928213b1a322cae8fffb8984517b9586bc4c | [] | no_license | monchier/streamlit | 016f269d1890dc548f2fc5a8606edc09d0ee4464 | 01c57e1d1cd87d7265b3fefcc9de47481189a8a4 | refs/heads/master | 2020-07-11T10:35:35.049030 | 2019-08-24T00:49:20 | 2019-08-24T00:49:20 | 204,515,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # Copyright 2019 Streamlit Inc. All rights reserved.
"""text_input unit test."""
import re
from tests import testutil
import streamlit as st
class TextInputTest(testutil.DeltaGeneratorTestCase):
"""Test ability to marshall text_input protos."""
def test_just_label(self):
"""Test that it can be cal... | [
"noreply@github.com"
] | monchier.noreply@github.com |
04ac76de2d84ceff4a6fb695071ff71b08cd5714 | 28129a9c44f3891eb5b3ce8c7fc530252b1c3840 | /codewars.com/openOrSenior.py | 2c97938ac775e6af76f13b0bd65400cce18da053 | [] | no_license | ngocyen3006/learn-python | 55eeb221f5a836ebee8c197fc3fddf6c585f02a6 | ec2f35a87f846385f7353e7ef4900e5f80cfdb0a | refs/heads/master | 2020-03-26T16:35:59.151230 | 2019-05-08T07:26:50 | 2019-05-08T07:26:50 | 145,112,258 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # https://www.codewars.com/kata/5502c9e7b3216ec63c0001aa/train/python
def openOrSenior(data):
res = []
for element in data:
if element[0] >= 55 and element[1] > 7:
res.append("Senior")
else:
res.append("Open")
return res
| [
"ngocyen300693@gmail.com"
] | ngocyen300693@gmail.com |
82f0b626024a3995576eaa4543e9340d049bcf38 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Kk5Ku4CtipaFtATPT_15.py | 165030897c712ef9ea7845e18fbdf381cb522de3 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | """
* "coconuts" has 8 letters.
* A byte in binary has 8 bits.
* A byte can represent a character.
We can use the word "coconuts" to communicate with each other in binary if we
use upper case letters as 1s and lower case letters as 0s.
**Create a function that translates a word in plain text, into Coconut.*... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
50873a19625f685c0a0edd8193f0b37020193385 | b923fa34a18562cb565557111d4a14805121643a | /flo_core/src/tty_keyboard_teleop.py | b77ecf1266cbea47c08b40853505c87153ca88ee | [] | no_license | nattapas/LilFloSystem | ce9d7d4f69af613968c1dbc47cb3d968fcf3be85 | 014ac48543b2d26ebb1952a821b0613635adf828 | refs/heads/master | 2023-06-14T13:14:30.158653 | 2021-06-23T03:25:42 | 2021-06-23T03:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #!/usr/bin/env python
# pylint: skip-file
import rospy
import actionlib
from tts.msg import SpeechGoal, SpeechAction
import json
if __name__ == '__main__':
rospy.init_node('tts_keyboard_teleop')
rospy.loginfo('Node Up')
client = actionlib.SimpleActionClient('tts', SpeechAction)
client.wait_for_server(... | [
"mjsobrep@live.com"
] | mjsobrep@live.com |
c371e404237fccd6bcdc3502904805dcc0fb1ffa | 5ba7d312159aae12958c83322448230b400a31ce | /mysite/urls.py | ffd5f87a68f2460a02e6255886aa3703fcb183ae | [] | no_license | vetrys/IntelliDress | 645ae02228e4048a0f27db25175d3c656ab05261 | 6218a0794290a7f535e7fb1354811a630a1cb8ee | refs/heads/master | 2021-04-06T06:05:20.272851 | 2018-03-13T16:47:44 | 2018-03-13T16:47:44 | 124,891,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """mysite 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-bas... | [
"vetrys@allegheny.edu"
] | vetrys@allegheny.edu |
53edc9350df1a12d13aaf7e0da8c5ffd34c8aefb | 246b1cf80e464e68b1b1a2b80f90de65fff2fc4f | /transformer_pytorch/model/embedding/position.py | 87b511c08dc6c8788ec1580747c83d08b9ea536e | [
"Apache-2.0"
] | permissive | walkacross/transformer-pytorch | 42b9f74dcf79be80b42b7c323de7042c8518b182 | 6aa06889f6d10fceb5587b47aba15e65fa305074 | refs/heads/master | 2020-07-26T20:34:16.006426 | 2020-07-11T01:27:24 | 2020-07-11T01:27:24 | 208,758,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import torch.nn as nn
import torch
import math
class PositionalEmbedding(nn.Module):
def __init__(self, d_model, max_len=512):
super().__init__()
# Compute the positional encodings once in log space.
pe = torch.zeros(max_len, d_model).float()
pe.require_grad = False
posi... | [
"yujiangallen@126.com"
] | yujiangallen@126.com |
5d165bbd60983180c3a5a4a697818d2f46eba03a | 3a7d1b8898cde33dfa140f595a51868dc7734719 | /0x11-python-network_1/1-hbtn_header.py | ef51d9f31d496ad64c3b867756f4ca6d8c5f6581 | [] | no_license | nickuchida/holbertonschool-higher_level_programming | c27a5e259d90f4b1f43d69e1b3cefcdafca4cc83 | 92f8c5c3e178475b8e6c1098915ddbb88175253c | refs/heads/master | 2020-09-29T04:53:19.048770 | 2020-04-14T01:30:20 | 2020-04-14T01:30:20 | 226,956,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/python3
''' takes in a URL, sends a request to the URL and displays the
value of the X-Request-Id variable found in the header of the response'''
import sys
from urllib.request import urlopen
if __name__ == '__main__':
url = sys.argv[1]
with urlopen(url) as response:
print(response.headers['... | [
"nicholas.y.uchida@gmail.com"
] | nicholas.y.uchida@gmail.com |
24bc2c05a04779de581841f8c5d183ee95b83081 | dae2deea56610239e84213d4de8ff5b183b6b639 | /DeepLearningStudy/day_02/test01.py | 1d822a6d20a1d940ea0e19425c494fe278e8a9b9 | [] | no_license | 852251748/pytorchStudy | f76fbd0529d1197535b0ffe7a6a75d5a64d755eb | 3b865c814bf51a1946d628bb75c7cec10fe12590 | refs/heads/master | 2022-12-05T18:14:00.549552 | 2020-09-03T06:27:20 | 2020-09-03T06:27:20 | 274,569,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import torch
from torch import nn
if __name__ == '__main__':
# # 二维数据就是图像
# conv = nn.Conv2d(3, 16, 3, 1, padding=1)
# x = torch.randn(1, 3, 10, 10) # 格式是NCHW
# # print(x)
# print(conv(x).shape, conv(x))
loss = nn.CrossEntropyLoss()
input = torch.randn(3, 5, requires_grad=True)
target... | [
"123456789@qq.com"
] | 123456789@qq.com |
54408b4b27ec1d2509fea9290864d04954e06d4c | 5354b0689486628abff90e60541226aafe6d2d0c | /behav/WanderIM_hddm_stimcoding_behavonly_probes_vig_nolocalseep.py | 41273e2e6ca7fa3842aaa025c0f87e1329a50c1b | [] | no_license | aung2phyowai/wanderIM | cf0380163d2bef2773c256143a112bf022bb1b44 | 176724bde9258d3a28d7ceea5aa0843928239130 | refs/heads/master | 2023-05-31T15:54:22.842039 | 2021-06-16T09:46:17 | 2021-06-16T09:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,175 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 23 16:36:16 2018
@author: tand0009
"""
## Import required packages
import hddm
import numpy as np
import scipy as sp
import pandas as pd
import matplotlib.pyplot as plt
from kabuki.analyze import gelman_rubin
# Load data from csv ... | [
"thomas.andrillon@gmail.com"
] | thomas.andrillon@gmail.com |
e9192700af5f53c65fcd0c80bf92e8642eaf558c | 40ae40afbb4fc2032f9dfefa2bae3b4d095ca8db | /SummaryUpdate/src/fio.py | d6a9ae44249743bd43f07d3717f3d90f05274e7a | [] | no_license | wencanluo/Summarization | 96d554b3727aceda0ba0dd9bb42d632a1e418cb5 | 81e7ed0bbb99c07c4f567b86296777764f718538 | refs/heads/master | 2021-01-22T07:18:12.221313 | 2017-05-21T02:06:23 | 2017-05-21T02:06:23 | 21,334,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,781 | py | ## @package fio
# Package for I/O
# @file fio.py
# @author Wencan Luo (wencan@cs.pitt.edu)
# @date 2011-09-25
import types as Types
import sys
import os
import shutil
def NewPath(path):
if not os.path.exists(path):
os.makedirs(path)
def IsExist(file):
return os.path.isfile(file)
def IsExistPath(path):
return o... | [
"wencanluo.cn@gmail.com"
] | wencanluo.cn@gmail.com |
4604728d9a1cc6dd473d690be807b9be988187c1 | a0c23ea4d487d692ff68b0c7c4ed665ecdbf4904 | /Cajero.py | c625412af352d94aed4ffbfa86856ecf24140c49 | [] | no_license | SJCP2004/Banco | 1704dd68e707cfd4f703b05915c4069b8aaf5541 | 78b374a20ca8f28dba82afa4e2fd8c3b15748be1 | refs/heads/master | 2022-12-25T04:52:24.543786 | 2020-09-28T13:39:22 | 2020-09-28T13:39:22 | 291,343,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,170 | py | import os
from datetime import datetime
from io import open
def feho():
nowx = datetime.now()
mome = nowx.strftime("%d/%m/%Y %H:%M:%S")
return mome
def limpiar():
os.system('clear')
def imp(texto, forma='p', tab=8):
mens = "\t"*tab + texto
if forma == 'p':
print(mens)
... | [
"sebastiancuevas490@gmail.com"
] | sebastiancuevas490@gmail.com |
d96d874e54be40673bda01e051fe010ee2f295f6 | bd033a3ad478ac7eb92ab1b2f56f5fc02c42583c | /spo/tools/spotify_write_playlist.py | 3ff404892b2687005d931c9bc7b98293f4ba4b81 | [
"MIT"
] | permissive | akx/spotify-tools | 85841853757dc950fa8d9e95622752e1357009ef | ee9980e79eb88506cf1e4df619e360037e6b05d8 | refs/heads/master | 2021-01-20T05:08:22.568509 | 2015-10-31T20:43:24 | 2015-10-31T20:43:24 | 15,848,156 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | # -- encoding: UTF-8 --
from __future__ import print_function
import click
from spo.spotify import Spotify
from spo.util import batch
import re
TRACK_RE = re.compile("^(?:https://api.spotify.com/v1/tracks/|spotify:track:)(.+?)$")
@click.command(u"spotify-write-pl", short_help="Create a Spotify playlist based on a lis... | [
"akx@iki.fi"
] | akx@iki.fi |
e3c28ee319199963a142f4d19b4fb708793b1caa | f84d94b75b32afd64e8bd80fd6e0a308a4ee563e | /tarea1.py | 1f032ef719944ac427a5dc090364676ad071ad6f | [] | no_license | roykelvin/SpeechRecognition | d98378114558aab38605126ffb05f357b8b8de10 | ff022e0b87049b3e0191bd7123cec9a26c485d06 | refs/heads/master | 2023-03-11T11:05:52.663311 | 2021-02-24T00:01:13 | 2021-02-24T00:01:13 | 341,721,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from flask import Flask, render_template, request, redirect
import speech_recognition as sr
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def index():
transcript = ""
if request.method == "POST":
print("FORM DATA RECEIVED")
if "file" not in request.files:
return r... | [
"roy.melendez@hotmail.com"
] | roy.melendez@hotmail.com |
24af3f24219cfe2112021f1d51f9f728e92de5cf | df38459227aa7ce400bb63e54eb3375a3fd4a6ba | /basic programs/evenodd.py | e1fc71ff192992344b45e91fb0fed8b5b9803b00 | [] | no_license | saurabh0307meher/Python-Programs | 028d9d74ed79fb11f0597d603a595644cf10c942 | d27bae33f33bdcfab33a122d6af99bd71f8a6fbe | refs/heads/master | 2020-05-02T04:20:58.803631 | 2019-05-26T15:52:07 | 2019-05-26T15:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | #even odd
a=int(input("Enter a no"))
if (a%2==0):
print(a,"is even")
else:
print(a,"is odd")
| [
"noreply@github.com"
] | saurabh0307meher.noreply@github.com |
6c76e9633b05624cf3a23b6dc29fa05a0e1fb1cc | 54c55dae302bc6cc761c8fd63e33a886d4c09e9d | /src/fr/tagc/rainet/core/templates/template_simple_script.py | f189710276c036e196da9210436452629967abbd | [] | no_license | diogomribeiro/RAINET | 66f41e21da73dc4ace8184b8785f144abc70799a | 4d2f919a4554c45f5d5b8ddc9d35bc83b4bc2925 | refs/heads/master | 2021-09-14T02:11:49.965465 | 2018-05-07T13:50:19 | 2018-05-07T13:50:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,892 | py | import sys
import os
import argparse
# import numpy as np
# import pandas as pd
from fr.tagc.rainet.core.util.exception.RainetException import RainetException
from fr.tagc.rainet.core.util.log.Logger import Logger
from fr.tagc.rainet.core.util.time.Timer import Timer
# from fr.tagc.rainet.core.util.subprocess.Subpro... | [
"diogo_ribeiro@bd239c00-765f-4708-9f37-acd49598262a"
] | diogo_ribeiro@bd239c00-765f-4708-9f37-acd49598262a |
5f0a944ab77f3193111f57d8b77359464e1b2fba | 68b78cbb47a5823340cd9ff8863831cd4882d29c | /extract_candidates.py | 363d23e453b88a9e11b144049f8e93bf6d1480c8 | [] | no_license | RPSeq/meistro | 91f58ba4798cd0c11b34fb1b5a31c3d895550450 | 6fa75e4f28a38c1922461feda4f25ebefab2d740 | refs/heads/master | 2021-01-10T16:10:30.168348 | 2016-05-03T08:28:49 | 2016-05-03T08:28:49 | 48,070,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,177 | py | #!/usr/bin/env python
import sys
from argparse import RawTextHelpFormatter, ArgumentParser
from itertools import izip
from string import maketrans
#installed modules
import pysam
from intervaltree import IntervalTree
from ssw_wrap import Aligner
__author__ = "Ryan Smith (ryanpsmith@wustl.edu)"
__version__ = "$Revisi... | [
"ryan.smith.p@gmail.com"
] | ryan.smith.p@gmail.com |
dcc63f8e35bbed90cb915611a35fc5d5aac0d679 | dbcb887c6c64c983d0775c23283976b2d49ab2ca | /Week_07/212. 单词搜索 II.py | dc0fadc357cd9e3de7fe823dee2036c12eb63e71 | [] | no_license | thewayonly/algorithm008-class02 | 4bf29dfe78e1ca71159777b2758310a2f341ce50 | 14f58fef8fd1e9dd9071c62d90cadbae562d9e81 | refs/heads/master | 2022-11-11T06:34:21.952715 | 2020-07-05T16:03:11 | 2020-07-05T16:03:11 | 256,760,532 | 0 | 0 | null | 2020-04-18T13:28:33 | 2020-04-18T13:28:33 | null | UTF-8 | Python | false | false | 1,001 | py | class Solution:
def findWords(self, board: List[List[str]], words: List[str]) -> List[str]:
trie = {}
for word in words:
t = trie
for w in word:
t = t.setdefault(w, {})
t["end"] = 1
res = []
row = len(board)
col = len(board[... | [
"noreply@github.com"
] | thewayonly.noreply@github.com |
7443e4de700cdd0989980dae21ce4a3eab131be0 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_2512.py | 882530706da7975403f43d82d608dbb898f6dfdd | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # Tkinter Spinbox Widget
Tkinter.Spinbox(values=(1,2,3,4))
sb.delete(0,"end")
sb.insert(0,2)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
25077ba81aed6aa5c1b4298eaadfe78e0772cad2 | 2d384897041940fb1863c9e64d0966f7fa9d6418 | /highs_lows.py | 13ec8d9c46d10afab39c1c01e3b41f548828445f | [] | no_license | violet-zilan/basic | acd401e0ad7648ea90735a109c534d489c8bc4a5 | 50e2d26d0d282188a55e6b705ce5a56986ecf463 | refs/heads/master | 2020-06-03T00:08:15.381503 | 2019-06-18T13:46:01 | 2019-06-18T13:46:01 | 191,355,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import csv
from datetime import datetime
from matplotlib import pyplot as plt
filename = 'death_valley_2014.csv'
with open(filename) as f:
reader = csv.reader(f)
header_row = next(reader)
dates, highs, lows = [], [], []
for row in reader:
try:
current_date = datetime.strptime(row[0], "%Y-%m-%d")
high = ... | [
"172874168@qq.com"
] | 172874168@qq.com |
306dfa12b32bb329c2df429c8ee04b42881c7573 | 390d19c3159133d8c688396cb11b4ed3f8178d09 | /SWExpertAcademy/LEARN/02. Array(2)/4836_색칠하기.py | bde1b13cfa11471faa7938d0f4a9a7d77298f7b5 | [] | no_license | JJayeee/CodingPractice | adba64cbd1d030b13a877f0b2e5ccc1269cb2e11 | 60f8dce48c04850b9b265a9a31f49eb6d9fc13c8 | refs/heads/master | 2021-08-16T17:14:01.161390 | 2021-07-16T00:42:18 | 2021-07-16T00:42:18 | 226,757,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | for tc in range(1, int(input()) + 1):
zero = [[0 for i in range(10)] for j in range(10)]
for i in range(int(input())):
s_x, s_y, e_x, e_y, num = map(int, input().split())
for x in range(s_x, e_x + 1):
for y in range(s_y, e_y + 1):
if num == 1:
if z... | [
"jay.hyundong@gmail.com"
] | jay.hyundong@gmail.com |
c412389603f3d984cffe1558f7a28b8d99a6f763 | 018fff4376ba900d419618c991a6e1c749da02f3 | /helpmeunpack.py | d9f871216df6f627b7fea91ce588fce25793f779 | [] | no_license | bragon9/hack_attic | 114db19b655e713c3652aae0849dab16870ba6fa | b184cda1cd8a2c3e51ad1b623ce14e186cd2c202 | refs/heads/master | 2020-06-26T16:47:20.245799 | 2019-08-02T05:12:32 | 2019-08-02T05:12:32 | 199,689,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import requests
from base64 import b64decode
import struct
# Get input data.
response = requests.get('https://hackattic.com/challenges/help_me_unpack/problem?access_token=96d50621d8c2e08d')
response_dict = response.json()
# Get the base64 encoded string and decode.
encoded_string = response_dict['bytes']
decoded_str... | [
"bspagon@iofficecorp.com"
] | bspagon@iofficecorp.com |
609451b9560cf108d967f113bcf2b50c0fc344c1 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/Lumber-Mill/Vert_Collections.py | 137d401450d899a55d7dcb7f686913f3674f335d | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | """----------------------------------------------------
Create mesh
----------------------------------------------------"""
import bpy
from bpy.types import Operator
from bpy.props import FloatVectorProperty
from bpy_extras.object_utils import AddObjectHelper
from mathutils import Vector
from Lumber_Mill_add_on imp... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9c6aab143e4a2a732bae263e9f1dba5b5a3201b0 | 1581f1d66d6835b2c271295e3251c2dde239fec8 | /product/migrations/0019_productartist.py | af350b245e6c9a2697a285bbe93a709662ffdeff | [] | no_license | abinash-kumar/pythod | 527659e3bdd161f9abcaaa9182dfe58044b3ff66 | 1469dc0cd9d6d72b2fe2e69f99542e470bea807b | refs/heads/master | 2023-01-30T02:54:10.729606 | 2020-02-24T07:18:51 | 2020-02-24T07:18:51 | 242,670,715 | 0 | 0 | null | 2023-01-25T13:57:52 | 2020-02-24T07:16:02 | Python | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2017-08-06 18:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customer', '0008_remove_customer_is_designer'),
('pr... | [
"abinashlv@AbinashSymboMac.local"
] | abinashlv@AbinashSymboMac.local |
f8fb6a8ce2182c21de8ba794aab5c567f4e9de86 | 6f7b37dd5876dad69fd259cd91c8e00db23b0912 | /examples/catalog_delete.py | a653bc6d7c8514ac70711a3574b659f7b977453b | [
"BSD-3-Clause"
] | permissive | zackster/HipHopGoblin | 78f98e161124f487a784e505dcddd26cfdbfc170 | d994759906e581f365fd954837c3f29a5266dcd8 | refs/heads/master | 2021-01-16T20:55:24.877152 | 2011-08-23T01:42:11 | 2011-08-23T01:42:11 | 2,250,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # Uncomment to set the API key explicitly. Otherwise Pyechonest will
# look in the ECHO_NEST_API_KEY environment variable for the key.
#from pyechonest import config
#config.ECHO_NEST_API_KEY='YOUR API KEY'
from pyechonest import catalog, song
import time
c = catalog.Catalog('example_songs', type='song')
items = [{ ... | [
"hiphopgoblin@web146.webfaction.com"
] | hiphopgoblin@web146.webfaction.com |
36a72381739f42955ca9c2e0d66f68e96de81a78 | 8bd7d66e7bfb28496a63fcaddaa5ce0d109dc854 | /DataFrame.py | 283e738d752f943ee60fa0ca2ae5ee196c341de4 | [] | no_license | nandda/PySparkExamples | f2904d61454a91409cab5537f7ff62a8ab0c6a33 | f888285af34f8080455f0e3bc32bd2551e3a6881 | refs/heads/main | 2023-01-02T09:48:37.992494 | 2020-10-23T07:34:18 | 2020-10-23T07:34:18 | 306,562,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from pyspark.sql import SparkSession
spark = SparkSession.builder.master("local[1]").appName("DataFrame").getOrCreate()
data = [("Finance", 10), ("Marketing", 20), ("Sales", 30), ("IT", 40)]
rdd1 = spark.sparkContext.parallelize(data)
# DF1 = rdd1.toDF()
# DF1.printSchema()
# DF1.show()
columns = ["DeptName", "Dep... | [
"ext-nanda.govind@handaten.com"
] | ext-nanda.govind@handaten.com |
7f24cdd401f508a41686afc457fd0714637e52af | bc505ccef7512334301500557138b20fc7a7bf03 | /script/get_image.py | 547ae63237007393fdc41bb81cd3c0b970eaa835 | [] | no_license | nanigasi-san/Image_manipulation | 4b2d6b38ac292fe71a6a895394e10375878d50a1 | c7a8781c0aaea8498783c808d2d120b50126f5ac | refs/heads/master | 2020-04-29T06:34:42.158899 | 2019-03-24T12:56:13 | 2019-03-24T12:56:13 | 175,920,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import requests
IMAGE_URL = "http://img.moeimg.net/wp-content/uploads/archives10/10658/46_e4ejovby8g.jpg"
responce = requests.get(IMAGE_URL)
with open("image/megane.jpg","wb") as f:
f.write(responce.content)
| [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
5c32be7d766d6cfaed4dbea6c2ceecbc77ca44eb | 0d7f112c0f6337cd543bfe6a720e7f50629faa57 | /Evidencia52_lista_mayor.py | 801a3d7790622fd26744d92c70087bf1c7be42c5 | [] | no_license | DanielJmz12/Evidenicas-Programacion-avanzada | 40023b1367fd883136e7c0bf089f931a506b8cc5 | 117e31acb5c05a142434319087b325f705030499 | refs/heads/main | 2023-01-12T20:44:23.403714 | 2020-11-19T23:54:07 | 2020-11-19T23:54:07 | 314,397,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | lista = []
for x in range(5):
valor = int(input("ingresa valor: "))
lista.append(valor)
mayor = lista[0]
for x in range(1,5):
if lista[x]>mayor:
mayor = lista[x]
print("lista: ")
print(lista)
print("numero mayor de la lista: ")
print(mayor)
| [
"noreply@github.com"
] | DanielJmz12.noreply@github.com |
5079d0edd8954b896b9d0c197a55d776cc64356a | c0e3f6ed152434fdce6d7e6336a556f1a2f1a255 | /Seq2SeqBot/bot.pyw | 2b68e271727349841d93fda9e0555c6e9906ad4e | [] | no_license | BasantHussein/MovieChatbot | 2511104cb746c9ab5f5625434726b7ef6df13e31 | 424ca3b36853e99651bd958a86f28bff089b36db | refs/heads/main | 2023-02-01T08:57:06.046230 | 2020-12-14T21:38:07 | 2020-12-14T21:38:07 | 303,817,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | pyw | import _thread
from bot_util import *
import tensorflow as tf
import execute
sess = tf.Session()
sess, model, enc_vocab, rev_dec_vocab = execute.init_session(sess, conf='seq2seq_serve.ini')
def ClickMe():
# Write message to chat window
EntryText = FilteredMessage(EntryBox.get("0.0", END))
LoadMyEntry(Chat... | [
"basant_husseinn@yahoo.com"
] | basant_husseinn@yahoo.com |
a429e2412429883abf369f2da30c67d52fb74a76 | dd77440f5b07774106c7713d229f121335808972 | /venv/bin/pip | 6787b8b74e62633e8c3ebadc76d340c0e907dde1 | [] | no_license | SOUFIANE-AIT-TALEB/Project-SONDAGE | fb09922fc8e85d4bbe1d740e609b72ed65e8097a | 0c86492c394f5e64cb7dcb65d5d14011c4d6664f | refs/heads/master | 2022-04-14T03:24:45.014064 | 2020-03-18T15:26:46 | 2020-03-18T15:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | #!/home/abdelaziz/PycharmProjects/Django1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"Abdelaziz.59140@gmail.com"
] | Abdelaziz.59140@gmail.com | |
55fd036ec13741608e24a0b72ebb2d381c4b2e36 | e85f9c4d8cf8150416942d7b47a727aaab252e01 | /s2/src/download_s2.py | 37af00a6f539b9ad9a1254a87e7bc6d47a962437 | [] | no_license | iluvcoding/maslulcz | 27a7ab93e9a94e569b38689432050419b3aa8db4 | 34db15cfe63b19856885fe66b1568de148bdbc57 | refs/heads/master | 2020-06-10T15:06:56.467101 | 2019-06-25T07:51:54 | 2019-06-25T07:51:54 | 193,660,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 18:42:32 2018
@author: tomer
"""
from sentinelsat.sentinel import SentinelAPI
#import datetime as dt
import os
def download_s2(user, password, dir_raw, dir_nc, start_date, end_date, footprint, pr_status):
api = SentinelAPI(user, password,... | [
"rishabh@satyukt.com"
] | rishabh@satyukt.com |
5909c96e2b27a998bfca09db38f626d1454c4745 | 41586d36dd07c06860b9808c760e2b0212ed846b | /network/analyzer/nmap/actions.py | e2261e6377d3b22612de116e41001eef1ab405d0 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get
shellto... | [
"you@example.com"
] | you@example.com |
666fd1780ab7db7c0255218adbf27ecaf72478b6 | 8d6390acd2b4758df5613b2257c990b3c37aad0b | /tareas/migrations/0002_auto_20210316_1205.py | 2f034cd1ff5f33ee15727dda9099a9926b7cc0e9 | [] | no_license | BossDuck/escuela | 2f5833da253db5eedee624eef10f82718532e9eb | 9716df271d0d35d3cdd94293279e910af6f4c05c | refs/heads/master | 2023-04-04T23:16:05.326835 | 2021-04-19T01:21:31 | 2021-04-19T01:21:31 | 359,282,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 3.1.6 on 2021-03-16 18:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('materias', '0002_auto_20210314_1529'),
('tareas', '0001_initial'),
]
operations = [
migrations.Remo... | [
"fauchis741@gmail.com"
] | fauchis741@gmail.com |
1126d4c7b56e50b4bff490faffef1d41697fae11 | 91a1a60570d5533e82f421d0548852170d4dc047 | /nexus/actions/scitech.py | f4ac23fed434242377114f728f00e9584222597d | [
"Unlicense"
] | permissive | MrHamdu/hyperboria | 2b666618799f1664b1223b05a197c1fc826a1046 | 7db858386f1a20e8d49bc16f53bfd7f1e4d03f7e | refs/heads/master | 2023-04-27T16:57:47.593150 | 2021-05-03T12:01:34 | 2021-05-03T12:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | from html import unescape
from bs4 import BeautifulSoup
from nexus.actions.common import canonize_doi
from nexus.models.proto.operation_pb2 import \
DocumentOperation as DocumentOperationPb
from nexus.models.proto.operation_pb2 import UpdateDocument as UpdateDocumentPb
from nexus.models.proto.scitech_pb2 import Sc... | [
"fist.of.the.first.pirates@gmail.com"
] | fist.of.the.first.pirates@gmail.com |
5cee1d96d0e7c3221e47c53745f82ceff4c14a14 | 78099e90f5224623f58db79e6e1f91fe8d44a0b3 | /sumn.py | a77ba09bf07ef1c117aed4753c64931ce1c34c35 | [] | no_license | savitadevi/function | 8151d6e79657d086f9c095f94cd0706e12cbea8f | 4d521dc546fd8c9b037cb78185e69a2bfbf6aa06 | refs/heads/main | 2023-06-14T14:13:15.493256 | 2021-07-13T06:55:23 | 2021-07-13T06:55:23 | 382,122,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # sum of number
def add_number(num1,num2):
a=num1+num2
print(a)
add_number(56,12)
# list a sum of number
def add_number_list(a,b):
i=0
sum=0
c=[]
while i<len(a):
sum=a[i]+b[i]
c.append(sum)
i=i+1
print(c)
add_number_list([50,60,10],[10,20,13])
| [
"savitadevi20@navgurukul.org"
] | savitadevi20@navgurukul.org |
e3cb32c489d6ffd15cae53410f28b69ca1abe807 | 2736148bac05093d94a560577cec5ec02ca7482d | /GlyphDataTest.py | b970be09f7b9a6117b05547c3f5322118fdae6c7 | [
"MIT"
] | permissive | NewcastleRSE/ADV-PowerBI | e0a069e7ce0d654b226e82616b2a671bc12b7921 | 151349759c32eb546bbcb31cec1162c4e519dadf | refs/heads/master | 2023-04-09T11:19:00.651385 | 2023-03-15T11:52:04 | 2023-03-15T11:52:04 | 219,758,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,677 | py | import bpy
import bmesh
from mathutils import Vector
import csv
import os
import glob
import math
import sys
import json
from random import *
# code to help Blender find local python modules
filepath = bpy.data.filepath
dir = os.path.dirname(filepath)
if not dir in sys.path:
sys.path.append(dir)
dir = dir+... | [
"mike.simpson@ncl.ac.uk"
] | mike.simpson@ncl.ac.uk |
6032bb2815e2ccb9627f20da9565907b213c4353 | 9bf1b1298f1e67d62005b40824317107c43a7f3f | /node3python/python/app.py | b7ee7493b95723ef53635d4fb050f38e201609e3 | [] | no_license | mashuq/bluewhale | e4a1b5871b0c9f9b4fb125c83de4e0a367028b92 | 6f2b2576c818f5cf900b3efc81976f8eab37f798 | refs/heads/master | 2020-05-03T01:36:36.784367 | 2019-04-28T14:37:34 | 2019-04-28T14:37:34 | 178,342,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from flask import Flask
from flask import jsonify
import urllib.request
import ssl
import socket
app = Flask(__name__)
@app.route('/')
def index():
ssl._create_default_https_context = ssl._create_unverified_context
data = {
'app': 'python flask',
'host': socket.gethostname(),
'php': urllib.request.url... | [
"mashuq@gmail.com"
] | mashuq@gmail.com |
8e4886ce4ec3a9fc22685d74ae9ed159945f095e | 1f3435e0698c062bebec79af4c2ed7bf5f865000 | /demo/oop/employees.py | f43c14f006685fdb848f59e57e47c2291b7b1e29 | [] | no_license | srikanthpragada/PYTHON_02_FEB_2021 | d879f5aadc3717d342e21e69d56f74b1a3967ca6 | c900b5745cf8343d5b00c345c0c13c9c7656cb5a | refs/heads/master | 2023-03-07T11:57:09.199601 | 2021-03-01T03:18:07 | 2021-03-01T03:18:07 | 335,815,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from abc import ABC, abstractmethod
# Abstract class
class Employee(ABC):
def __init__(self, id, name, desg):
self.id = id
self.name = name
self.desg = desg
def __str__(self):
return f"{self.id} - {self.name} - {self.desg}"
@abstractmethod
def get_salary(self):
... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
95a860805752e65a0e7fa8e1ef22c28833231a4a | c8aa81def7b496eeeaa1d81e01602704576247bf | /Python-Practice-With-Nana/projects/github-api-requests/main.py | 86e611b8cf46eaeb7e11e934d8c59a49d2412f32 | [] | no_license | chaitanyatekane/python-practised | e6169c4e7be996e290a710234d534ced0954c0f0 | cad6308fc94189fff819487f43fd8d03ee9add82 | refs/heads/main | 2023-06-09T12:49:24.779144 | 2021-06-22T14:59:28 | 2021-06-22T14:59:28 | 377,890,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # Step 01: in terminal run command - pip install requests
import requests
response = requests.get("https://api.github.com/users/chaitanyatekane/repos")
my_repos = response.json()
# print the whole objects list
# print(my_projects)
# print(type(my_projects)) # will return list
# print just the names and ur... | [
"noreply@github.com"
] | chaitanyatekane.noreply@github.com |
64bc2e9d03fe38dd247eaddfab53f3e1310a2ad8 | 27a0d1de27012e2c0de5714ca17534feb1d13187 | /report/revenueReport.py | b082459f3f9902001065cce8de282a10c75e56ea | [] | no_license | purva15/parking-lot | 8aed4d5ba1e9431865ccda88913f8286b26cd4f7 | c3b5222b0b6bb368d4b3805dd68d9e71389432fc | refs/heads/main | 2023-08-24T17:19:49.882137 | 2021-10-17T18:24:05 | 2021-10-17T18:24:05 | 416,379,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import json
from db.db import Sqlite
class RevenueReport:
""" All the revenue reports are generated through this class"""
def __init__(self):
self._db = Sqlite()
def generateReport(self):
totalCars, revenue = self._db.getAllCarsRevenue()
totalParkedCars = self._db.getNoOfParkedC... | [
"agrawalpurva15@gmail.com"
] | agrawalpurva15@gmail.com |
e4150cba0135d971e6853074f976f87d7b92d219 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/t93/c.py | 19a67e6d30da8a0a722d5585f4d89b53e9b3141e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import math
import random
full_proof_lim = 100
rand_proof_count = 100
def main():
random.seed(1)
t = int(raw_input())
for i in xrange(t):
n, j = map(int, raw_input().split(" "))
found = set([])
print "Case #%d:" % (i + 1)
while len(found) < j:
s = gen(n)
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
085edaf9b9ec6ceac6dfd453698944d792c7fffb | cd1f1949a886b7fcd0d5b286ae735c212ad14cde | /pro/settings.py | eb4a4d0f44b4e6267569ec1149ff7e7b2271e7ff | [] | no_license | KavyaHB/pro234 | 0403ef2cb4c4d84cd7affc896bfa8798a7fff77e | dc98208b7e0df2c7126b6151a560321cc920a337 | refs/heads/main | 2023-04-07T04:51:59.338479 | 2021-04-14T16:34:36 | 2021-04-14T16:34:36 | 357,973,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
Django settings for pro project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib impor... | [
"kavyahbgowda1998@gmail.com"
] | kavyahbgowda1998@gmail.com |
2b6868700d215277a89edaf88b8ae7d53c31616d | a0db3713e9e9914fab3ddf80186ce71f530133c2 | /restProject/bookstore4/books/urls.py | 95eb99137d22a4d7e266d21ee8349fb63ed6ca0e | [] | no_license | liddyv/RestfulAPI | ba2821eb8e408b4e7ed527bb9a59abba155f03a7 | 9b1bb441197e77ccaf19ba12c6b2252b668eb1d9 | refs/heads/master | 2020-09-06T04:26:44.532378 | 2019-11-20T20:04:37 | 2019-11-20T20:04:37 | 220,318,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.conf.urls import url
from books.views import BookList, BookDetail
urlpatterns = [
url(
r'^books$',
BookList.as_view()
),
url(
r'^books/(?P<pk>[0-9]+)$',
BookDetail.as_view()
)
] | [
"liddyv@gmail.com"
] | liddyv@gmail.com |
be1d0bee1cce30d31d2a0411e9818233fb4d9d1d | bcc57de6f93224cd643108ee9ebe9a6faa726482 | /spark/test.py | 15a77de0c77c04220f2a2f6be55926d077b03fa6 | [] | no_license | doubaoa/taxi | 6f42ade6914995a584bf4d48e4d4346084f6ab44 | 6f313ce7f04bb746f8a20de10142ff04b89b7500 | refs/heads/master | 2020-06-15T05:24:27.192403 | 2019-07-24T09:38:11 | 2019-07-24T09:38:11 | 195,213,638 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | py | import os
from pyspark.sql import SparkSession
from pyspark.sql import Window
from pyspark.sql import Row,functions as F
from pyspark.sql.functions import desc, from_unixtime
import datetime
import time
start_time =time.time()
os.environ['JAVA_HOME'] = '/root/jdk1.8.0_141'
spark = SparkSession \
.builder \
.ap... | [
"nianax_2587@163.com"
] | nianax_2587@163.com |
106b0d7e068ea42ebaa6e75cc7067b6ec54dd898 | c2afceefd7eb9066f83b1cedc29e23d28c2a6243 | /10-OOP/01-Activities/08-Stu_TDD-Dissect/node_modules/fsevents/build/config.gypi | b607e9be49e08d3cdae9552e09e14685b9694a5e | [
"MIT"
] | permissive | Simon-Xu-Lan/classcode | c390960cc640e73e79c3b645d2476d7d80b6e0c7 | d226d443fec46cb2032c5854ac863ccb4ca2aaf0 | refs/heads/master | 2022-12-05T16:08:28.580180 | 2020-08-25T18:55:49 | 2020-08-25T18:55:49 | 255,445,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,656 | 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... | [
"xulan20907@gmail.com"
] | xulan20907@gmail.com |
6683bad167caeb8a0b9f59825d8eea3848f215f8 | 4db5cc1d080d7a61d51bd2b80451df2c92e15345 | /Maximum Depth of Binary Tree-Recursive.py | 62aad59578efaac4df688395a34714c79421903c | [] | no_license | thumarrushik/Leetcode | fe6eb76885fa0ff50afc21a496186a6537cbd897 | f11747b5a02e5787dd250451e639519d1170f4a3 | refs/heads/master | 2021-09-03T20:35:41.709620 | 2018-01-11T20:41:47 | 2018-01-11T20:41:47 | 110,296,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def maxDepth(self, root, height = 0):
"""
:type root: TreeNode
:rtype: int
"""
... | [
"noreply@github.com"
] | thumarrushik.noreply@github.com |
703ed9032d2a1f150c17020ddbae111e7b19897a | 4b072f5a123d3052ce27e7651602fb9a3bbde784 | /legacy_router.py | 3976f0450b84a77b4befc87f89c589798381c01b | [] | no_license | juhipark/PA3 | 8334a45cc7c0cef1b258ffc65890b422f4f02f2c | 588362e73bc78015067c1f9c6fcc117c83282bcb | refs/heads/master | 2022-04-19T11:29:16.622353 | 2020-04-20T04:47:17 | 2020-04-20T04:47:17 | 257,127,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | #!/usr/bin/python
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import IVSSwitch
from mininet.cli import CLI
from mininet.log import setLogLe... | [
"None"
] | None |
6f875664e9bb3a39bb5169595763940fb2368fe7 | 71666a3dc7654fbde3be7f05aa3784aa16826619 | /installers/migrations/0007_auto_20200929_1305.py | 214f939cb0befc3937e119274e3f3a79747b3b6a | [] | no_license | Elias-Cz/Capstone | 5e3e5d40e133eb9bcf6d833ae2fd43b469301588 | 33c1c24167b113a149ba31d4c54887c7379a9c94 | refs/heads/master | 2023-01-24T18:55:53.002851 | 2020-12-10T05:39:45 | 2020-12-10T05:39:45 | 291,141,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Generated by Django 3.0.8 on 2020-09-29 20:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('installers', '0006_auto_20200929_1110'),
]
operations = [
migrations.Creat... | [
"cazessus.elias@gmail.com"
] | cazessus.elias@gmail.com |
f6a5f5338ec97a20ca77320ba1f5344d605b32d6 | 4c93ff48983bb8475f6be4001811ba2b91d7a0b5 | /places/migrations/0003_auto_20151202_0600.py | c21336fb63aec7cd67d18565f1f8c3144fa38210 | [] | no_license | SoccerStatsUS/s3 | dfca61c7ac4e05987e77a992a482ffe9a69f3e16 | 44b4b8bc14cb580aa9d7683f72fbaa75d1e43d70 | refs/heads/master | 2021-01-10T15:42:58.832834 | 2017-03-01T22:29:25 | 2017-03-01T22:29:25 | 47,239,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-02 06:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0002_country_confederation'),
]
operations = [
migrations.AlterModelOptions(... | [
"chrisedgemon@gmail.com"
] | chrisedgemon@gmail.com |
7a6658a8b04485f5a471d94fdf45802965465468 | 63daf225819636397fda6ef7e52783331c27f295 | /taobao_apis/top/api/rest/SellercatsListUpdateRequest.py | 9e0e466ff8c7fdec1ac966165669f807faeb22af | [] | no_license | cash2one/language-Python | e332ecfb4e9321a11407b29987ee64d44e552b15 | 8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab | refs/heads/master | 2021-06-16T15:15:08.346420 | 2017-04-20T02:44:16 | 2017-04-20T02:44:16 | 112,173,361 | 1 | 0 | null | 2017-11-27T09:08:57 | 2017-11-27T09:08:57 | null | UTF-8 | Python | false | false | 377 | py | '''
Created by auto_sdk on 2016.04.13
'''
from top.api.base import RestApi
class SellercatsListUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.cid = None
self.name = None
self.pict_url = None
self.sort_order = None
def geta... | [
"tangzhihui@Tom.local"
] | tangzhihui@Tom.local |
315ff3fd72a86295c5be5e98ad1185eb62793fe1 | 0f2223a9af08237145247879253d609f9a43d6a7 | /NQubitALU.py | 33e1e29df63a78f7d2a0e0ef2906d9fc484c0839 | [] | no_license | AlejandroGomezFrieiro/NQubitALU | 07898c1c0325ba9fcfc5057b72a333a680954a07 | cdcaa38f2b252a261977865739b0eb56e95461f0 | refs/heads/main | 2023-03-07T21:32:32.077402 | 2021-02-22T11:06:35 | 2021-02-22T11:06:35 | 340,795,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,271 | py | import numpy as np
import qiskit
from qiskit.visualization import plot_state_city
# import qiskit.circuits.library as lib
from qiskit import QuantumRegister
from typing import Optional, List
class HalfAdder(qiskit.circuit.Gate):
def __init__(self) -> None:
super().__init__('halfAdder', 4, [])
de... | [
"alejandrogomezfrieiro@gmail.com"
] | alejandrogomezfrieiro@gmail.com |
f3e5c94ed58ecc7af879b344bf90b7450799daaf | 47190e816dffcf5d20b3562f8d0d13e7ad08b3c4 | /jwt_auth/migrations/0007_auto_20200816_1542.py | 68780e6d865b5174239cba9f87f0c9ba85348053 | [] | no_license | RobSero/Home-Companion | d426098d9aa91862d8663db50d64f6e005e44ea0 | 6a6c2c06bf485aa2ea36a843aa7e15a0d01eb505 | refs/heads/master | 2022-12-18T18:24:42.121052 | 2020-09-04T19:59:36 | 2020-09-04T19:59:36 | 287,741,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 3.1 on 2020-08-16 15:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jwt_auth', '0006_auto_20200612_1005'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='experience',
... | [
"robert.serowka@hotmail.co.uk"
] | robert.serowka@hotmail.co.uk |
4ee4554388d49f1860538799a4bfc141e77e5456 | d9c2c3cd1831ac8cbacce15ac83d6939c8dc346d | /Array/Max and min in array.py | 3be80024a7b24f21e117d31ed62d184b3d5e12be | [] | no_license | pratyusa98/Compitative_Programme | ce36821b2bcff5e641bc4ff07941126ac21fd8db | 4fe2117947b832f7c66cfdf6a1df13fd02e0633f | refs/heads/master | 2023-01-20T11:49:07.857168 | 2020-11-21T17:46:42 | 2020-11-21T17:46:42 | 310,860,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py |
a = [1000, 11, 445, 1, 330, 3000]
print(max(a),min(a)) | [
"noreply@github.com"
] | pratyusa98.noreply@github.com |
ff75f85ee5895f6816dc235222eadff15eed35a1 | 9147d00c4dc03b6a64bc8c9278139e7d5936a74e | /mmm.py | d5a8ed375e0d6348fda2aaa07a69b17feae6bdc9 | [] | no_license | charuj/MultinomialMixtureModel | af0c58388fb04ace70dc09df5b42c9a03cf95045 | 1ae7bcc2ceccacc9d7e3b554e7c00ddb5087708c | refs/heads/master | 2020-12-24T19:28:17.881628 | 2016-11-18T04:06:00 | 2016-11-18T04:06:00 | 55,998,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | import numpy as np
import scipy as sc
import matplotlib.pyplot as plt
from scipy.misc import logsumexp
from collections import Counter
# load the data
import csv
with open ('train_data.csv', 'rb') as csvfile:
datareader = csv.reader(csvfile, delimiter=',')
training=[]
for row in datareader:
traini... | [
"clmjaiswal@gmail.com"
] | clmjaiswal@gmail.com |
78ff1c6556730e18b33126f71c863b99cb64a8b0 | dd8e3100f723cd5a14bcdeaff33cd46b7f4cb905 | /application/auth/views.py | ac717dd8b3d025992a08f80b29dc2583a452f90a | [] | no_license | ValheKouneli/SkrolliEditor | 3e329b7dd1965d0f8985caf163684691c3274d08 | e3e34813b27c70bc8c44bf5d0198667ced6303c8 | refs/heads/master | 2020-03-23T23:56:09.203709 | 2018-09-01T19:11:34 | 2018-09-01T19:11:34 | 142,264,394 | 0 | 0 | null | 2018-08-31T17:31:10 | 2018-07-25T07:33:29 | Python | UTF-8 | Python | false | false | 6,303 | py | from flask import render_template, request, redirect, url_for
from flask_login import login_user, logout_user, current_user
from application import app, db, login_required
from application.auth.models import User
from application.auth.forms import LoginForm, RegisterForm, UpdateAccountForm
from application.articles.vi... | [
"valhe.kouneli@gmail.com"
] | valhe.kouneli@gmail.com |
6db1aba520cc16f1a2008f85bb487b78c64eb5e0 | fd97c7a1a8a732f77ff53d41c50abfcf48ae8647 | /test_partal_data/method.py | 2cf0b8c76ae72ca4142cf0c5029ce99c4d138599 | [] | no_license | Zhaokun-max/workspaces | eb922902fa4762051f2e8660a70d95ce08c1b70b | 87d713a5c8d3763b3dfa191cd7a00933899679b9 | refs/heads/master | 2023-03-21T00:42:06.451609 | 2021-03-20T15:20:26 | 2021-03-20T15:20:26 | 329,214,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import requests
class Requests:
def request(self,url, method='get', **kwargs):
if method=='get':
return requests.request(url=url, method=method, **kwargs)
elif method=='post':
return requests.request(url=url, method=method, **kwargs)
def get(self, url, **kwargs):
... | [
"18701079606@163.com"
] | 18701079606@163.com |
b118bf0d9a361e044b62795aff56710301e2645d | 55f4c952c1745e3dc7ffd32859034560dbfe6be5 | /greedy.py | bfec83335f8422be2976f04f467e4f1d5e8abd4d | [] | no_license | banacer/interview_prep | d8832e4f990e21fb3694c5f4701b31c6fb7a711e | 1379fbd54e1accbe8e281c2310d166b028069ee5 | refs/heads/master | 2021-05-10T10:39:27.443393 | 2018-02-16T17:24:42 | 2018-02-16T17:24:42 | 118,390,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | import heapq
import collections
def compute_optimum_task_assignment(l, N):
l.sort(reverse=True)
h = [0 for _ in range(N)]
for i in l:
e = heapq.heappop(h)
heapq.heappush(h,e+i)
return max(h)
def schedule_minimize_time(l):
l.sort()
count = 0
sum = 0
for i in l:
su... | [
"nacerkhalil@gmail.com"
] | nacerkhalil@gmail.com |
47a0c2b54d4735dc376b96849ebeaf4711f5542f | 94ebb695b0a3045fc628b59e8479654ce6b7a85d | /spanner/tests/system/utils/streaming_utils.py | 0e30827d951fce3937ecef862593fc41580c1148 | [
"Apache-2.0"
] | permissive | alexwelcing/google-cloud-python | 9b668fe3d9efdb6c29dbb7b0ce1a54a0c1eda829 | bdda0d94469ddf7daefaf714dcc1268a83fc0377 | refs/heads/master | 2023-02-04T21:50:54.649436 | 2019-11-11T14:33:22 | 2019-11-11T14:33:22 | 104,496,968 | 0 | 0 | Apache-2.0 | 2023-02-03T04:22:05 | 2017-09-22T16:42:22 | Python | UTF-8 | Python | false | false | 1,212 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tseaver@palladion.com"
] | tseaver@palladion.com |
9874b62bd0a68ce2db4ef04ac9e7178f0c1f426c | 1c8a7407888c76248d52c0bb3ac478f755e60acb | /models/fully_connected_model.py | c3a75d4b517eab6e63e54b68e468151d1c468046 | [] | no_license | NumberChiffre/neurips2020-flatland-baselines | ce8e827ecbd0326afd625c9ef3aab5f67b8eac8c | 88e5a8f157d8b2a7b849ba8fa694b5f43e98aa19 | refs/heads/master | 2022-12-14T08:09:00.248906 | 2020-05-20T18:39:26 | 2020-05-20T18:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import sys
import gym
import tensorflow as tf
import numpy as np
from ray.rllib.models.tf.tf_modelv2 import TFModelV2
from models.common.models import FullyConnected
class FullyConnectedModel(TFModelV2):
def __init__(self, obs_space, action_space, num_outputs, model_config, name):
super().__init__(obs_s... | [
"ch.scheller@hotmail.com"
] | ch.scheller@hotmail.com |
9bfaa585d624e4dac8b2ed1d45882b79d9b3415b | 6937225781f872faf06385987be44636fb1122a2 | /DSA_Assignment/Full Project/logic.py | 3735ed2ea81603e5017c07634406901c7bb38b81 | [] | no_license | Moss89/Data_Structures_Algorithms | e3cab0a69652c381727113761d8fb375bc3f06eb | a7d77baafe8d425abbb4561fde9c3fc79aae4b6e | refs/heads/master | 2020-12-22T07:20:02.838870 | 2020-01-28T10:36:38 | 2020-01-28T10:36:38 | 236,709,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | import pandas as pd
import DataStructures
import os
import sys
csv = ["test.csv",
"airport.csv",
"countrycurrency.csv",
"currencyrates.csv",
"currencyrates.csv",
"aircraft.csv"]
missingFiles = []
filesPresent = True
for file in csv:
if not os.path.isfile(file):
missingF... | [
"noreply@github.com"
] | Moss89.noreply@github.com |
c27c9cb6efded93a2eb21abacf8ec5774cd91f3c | f1230362b9ca480dfdcbabfa114d73f16e08ed39 | /graph.py | 06f5016b1852cc700d87e974c29904be6f60217a | [] | no_license | goatgoose/ranker | aac51db5ecfcc0770147676e054b0f631bfe5887 | fd3c68141bba95c4b49faca596925df520548183 | refs/heads/master | 2022-09-20T22:07:16.400103 | 2020-05-24T13:22:41 | 2020-05-24T13:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | from typing import Hashable
class Node:
def __init__(self, id_: Hashable):
self.id: Hashable = id_
self.edges: dict[Hashable: Edge] = {}
def __str__(self):
return str(self.id)
def __repr__(self):
return str(self)
class Edge:
def __init__(self, tail: Node, head: Node)... | [
"jhchilds@uvm.edu"
] | jhchilds@uvm.edu |
30e9e67b6cfcd5076857587426ea7ce6b7b1784e | b4fcfcd018934c02b4a3d0dd28175c16e79674ce | /books/store/migrations/0006_alter_userbookrelation_rate.py | 31b843cd9179b435fa8ba6411c18ed5605d06613 | [] | no_license | ChebuRashkaRF/DRF_book | aac141733cb135e4ea9ca469e73cd47c3b896866 | dc58812f167446a9f2b399fd2edfce0e28f9b6f0 | refs/heads/main | 2023-07-25T08:05:10.535255 | 2021-08-29T22:11:36 | 2021-08-29T22:11:36 | 401,151,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 3.2.6 on 2021-08-24 13:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0005_auto_20210824_1307'),
]
operations = [
migrations.AlterField(
model_name='userbookrelation',
name='rat... | [
"50379603+ChebuRashkaRF@users.noreply.github.com"
] | 50379603+ChebuRashkaRF@users.noreply.github.com |
b244985f81429915c2950b9834cfdbbaff95b0e6 | 68b68ebccdfd9cf59c910f6d80264eeee9ac8b17 | /run_match.py | 60f5bf6e8ea51393a96033aed6e759b13487c2e6 | [] | no_license | alan-turing-institute/rl_tournament | 611eba63c7da2906790c351148c5c36727f7c8ae | 8fa247d3e448b3d3db24a4e075d6a6c8cef75085 | refs/heads/main | 2023-03-13T13:13:28.001193 | 2021-03-11T15:50:52 | 2021-03-11T15:50:52 | 330,745,876 | 6 | 3 | null | 2021-03-11T15:50:53 | 2021-01-18T17:55:56 | Python | UTF-8 | Python | false | false | 340 | py | import os
from battleground.battleground import Battleground
if __name__ == "__main__":
if "MATCH_ID" not in os.environ.keys():
raise RuntimeError("MATCH_ID not found in environment")
match_id = os.environ["MATCH_ID"]
bg = Battleground(match_id=match_id)
bg.setup_games()
bg.listen_for_re... | [
"nbarlow@turing.ac.uk"
] | nbarlow@turing.ac.uk |
7bc0d8cccf91009e4d128c0b2b933bf59d4eac50 | 8496aa090624d599e7790453784e38e46cfa51e5 | /modules/texify.py | f0aa8c8f67e3242088ef94296766f43b0cadb644 | [] | no_license | dafyddcrosby/phenny | e4e2f05f262ef608a48f73c412ee9a94eae7e7cc | e7abfd8a2c69d7998b3cb4cbbc24f1313e11fac5 | refs/heads/master | 2021-01-18T13:33:09.545060 | 2012-06-06T23:33:29 | 2012-06-06T23:33:29 | 1,837,916 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
"""
texify.py - Phenny Texify Module
"""
import urllib
TEXIFY = '{nick}: http://texify.com/${tex}$'
def tex(phenny, input):
"""Gives a link of rendered LaTeX"""
query = input.group(2)
if not query:
return phenny.reply('.tex what?')
query = query.encode('utf-8')
query = u... | [
"alexalemi@gmail.com"
] | alexalemi@gmail.com |
4d141a71e15b22c552798c4df2ca3132387ac149 | eb4e2391664239873225cd94774c1244f172341b | /user/views.py | cca4f05d66169f7eb41aff1c5dc85441009c86a1 | [] | no_license | AKL-FIRE/mysite | f4dbedcfab6f35fa0e9966ddcc244907d7ae84b5 | 1369cc8fc6598097482f915e7271de40c94288e9 | refs/heads/master | 2021-07-23T20:44:56.310813 | 2020-05-11T00:42:06 | 2020-05-11T00:42:06 | 167,659,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,131 | py | import string
import time
from django.shortcuts import render, redirect
from django.contrib import auth
from django.contrib.auth.models import User
from django.urls import reverse
from django.http import JsonResponse
from django.core.mail import send_mail
from .forms import LoginForm, RegForm, ChangeNicknameForm, Bind... | [
"lcy19961018@163.com"
] | lcy19961018@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.